PageSourceSearch

https://langfinity.ai/assets/index-Cne_BKYv.js

js langfinity.ai collected 2026-10-05 12:09:22 UTC 3,348,279 bytes, 1,670 lines download raw bytes

vendor: 6,504 bytes, lines 1-9
1var _Pe=Object.defineProperty;var CPe=(e,t,n)=>t in e?_Pe(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var ot=(e,t,n)=>CPe(e,typeof t!="symbol"?t+"":t,n);try{let e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="86e23fd1-0baf-4b46-92fd-e9577f168388",e._sentryDebugIdIdentifier="sentry-dbid-86e23fd1-0baf-4b46-92fd-e9577f168388")}catch{}function Fle(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&&!Array.isArray(r)){for(const i in r)if(i!=="default"&&!(i in e)){const o=Object.getOwnPropertyDescriptor(r,i);o&&Object.defineProperty(e,i,o.get?o:{enumerable:!0,get:()=>r[i]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}{let e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{};e.SENTRY_RELEASE={id:"c97c775560ba6a06bc1dc20910142fc87be01669"}}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const o of i)if(o.type==="childList")for(const s of o.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&r(s)}).observe(document,{childList:!0,subtree:!0});function n(i){const o={};return i.integrity&&(o.integrity=i.integrity),i.referrerPolicy&&(o.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?o.credentials="include":i.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function r(i){if(i.ep)return;i.ep=!0;const o=n(i);fetch(i.href,o)}})();var Tf=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function io(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var jle={exports:{}},D3={},Ule={exports:{}},bn={};/**
2 * @license React
3 * react.production.min.js
4 *
5 * Copyright (c) Facebook, Inc. and its affiliates.
6 *
7 * This source code is licensed under the MIT license found in the
8 * LICENSE file in the root directory of this source tree.
9 */var XC=Symbol.for("react.element"),EPe=Symbol.for("react.portal"),TPe=Symbol.for("react.fragment"),kPe=Symbol.for("react.strict_mode"),xPe=Symbol.for("react.profiler"),APe=Symbol.for("react.provider"),IPe=Symbol.for("react.context"),RPe=Symbol.for("react.forward_ref"),PPe=Symbol.for("react.suspense"),OPe=Symbol.for("react.memo"),NPe=Symbol.for("react.lazy"),nY=Symbol.iterator;function MPe(e){return e===null||typeof e!="object"?null:(e=nY&&e[nY]||e["@@iterator"],typeof e=="function"?e:null)}var Ble={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},$le=Object.assign,Hle={};function ub(e,t,n){this.props=e,this.context=t,this.refs=Hle,this.updater=n||Ble}ub.prototype.isReactComponent={};ub.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};ub.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function zle(){}zle.prototype=ub.prototype;function qU(e,t,n){this.props=e,this.context=t,this.refs=Hle,this.updater=n||Ble}var GU=qU.prototype=new zle;GU.constructor=qU;$le(GU,ub.prototype);GU.isPureReactComponent=!0;var rY=Array.isArray,Vle=Object.prototype.hasOwnProperty,KU={current:null},Wle={key:!0,ref:!0,__self:!0,__source:!0};function qle(e,t,n){var r,i={},o=null,s=null;if(t!=null)for(r in t.ref!==void 0&&(s=t.ref),t.key!==void 0&&(o=""+t.key),t)Vle.call(t,r)&&!Wle.hasOwnProperty(r)&&(i[r]=t[r]);var a=arguments.length-2;if(a===1)i.children=n;else if(1<a){for(var c=Array(a),l=0;l<a;l++)c[l]=arguments[l+2];i.children=c}if(e&&e.defaultProps)for(r in a=e.defaultProps,a)i[r]===void 0&&(i[r]=a[r]);return{$$typeof:XC,type:e,key:o,ref:s,props:i,_owner:KU.current}}function DPe(e,t){return{$$typeof:XC,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function YU(e){return typeof e=="object"&&e!==null&&e.$$typeof===XC}function LPe(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var iY=/\/+/g;function L5(e,t){return typeof e=="object"&&e!==null&&e.key!=null?LPe(""+e.key):t.toString(36)}function Jk(e,t,n,r,i){var o=typeof e;(o==="undefined"||o==="boolean")&&(e=null);var s=!1;if(e===null)s=!0;else switch(o){case"string":case"number":s=!0;break;case"object":switch(e.$$typeof){case XC:case EPe:s=!0}}if(s)return s=e,i=i(s),e=r===""?"."+L5(s,0):r,rY(i)?(n="",e!=null&&(n=e.replace(iY,"$&/")+"/"),Jk(i,t,n,"",function(l){return l})):i!=null&&(YU(i)&&(i=DPe(i,n+(!i.key||s&&s.key===i.key?"":(""+i.key).replace(iY,"$&/")+"/")+e)),t.push(i)),1;if(s=0,r=r===""?".":r+":",rY(e))for(var a=0;a<e.length;a++){o=e[a];var c=r+L5(o,a);s+=Jk(o,t,n,c,i)}else if(c=MPe(e),typeof c=="function")for(e=c.call(e),a=0;!(o=e.next()).done;)o=o.value,c=r+L5(o,a++),s+=Jk(o,t,n,c,i);else if(o==="object")throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return s}function Z2(e,t,n){if(e==null)return e;var r=[],i=0;return Jk(e,r,"","",function(o){return t.call(n,o,i++)}),r}function FPe(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(n){(e._status===0||e._status===-1)&&(e._status=1,e._result=n)},function(n){(e._status===0||e._status===-1)&&(e._status=2,e._result=n)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var oa={current:null},Zk={transition:null},jPe={ReactCurrentDispatcher:oa,ReactCurrentBatchConfig:Zk,ReactCurrentOwner:KU};function Gle(){throw Error("act(...) is not supported in production builds of React.")}bn.Children={map:Z2,forEach:function(e,t,n){Z2(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return Z2(e,function(){t++}),t},toArray:function(e){return Z2(e,function(t){return t})||[]},only:function(e){if(!YU(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};bn.Component=ub;bn.Fragment=TPe;bn.Profiler=xPe;bn.PureComponent=qU;bn.StrictMode=kPe;bn.Suspense=PPe;
vendor: 5,165 bytes, lines 9-25
9bn.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=jPe;bn.act=Gle;bn.cloneElement=function(e,t,n){if(e==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var r=$le({},e.props),i=e.key,o=e.ref,s=e._owner;if(t!=null){if(t.ref!==void 0&&(o=t.ref,s=KU.current),t.key!==void 0&&(i=""+t.key),e.type&&e.type.defaultProps)var a=e.type.defaultProps;for(c in t)Vle.call(t,c)&&!Wle.hasOwnProperty(c)&&(r[c]=t[c]===void 0&&a!==void 0?a[c]:t[c])}var c=arguments.length-2;if(c===1)r.children=n;else if(1<c){a=Array(c);for(var l=0;l<c;l++)a[l]=arguments[l+2];r.children=a}return{$$typeof:XC,type:e.type,key:i,ref:o,props:r,_owner:s}};bn.createContext=function(e){return e={$$typeof:IPe,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:APe,_context:e},e.Consumer=e};bn.createElement=qle;bn.createFactory=function(e){var t=qle.bind(null,e);return t.type=e,t};bn.createRef=function(){return{current:null}};bn.forwardRef=function(e){return{$$typeof:RPe,render:e}};bn.isValidElement=YU;bn.lazy=function(e){return{$$typeof:NPe,_payload:{_status:-1,_result:e},_init:FPe}};bn.memo=function(e,t){return{$$typeof:OPe,type:e,compare:t===void 0?null:t}};bn.startTransition=function(e){var t=Zk.transition;Zk.transition={};try{e()}finally{Zk.transition=t}};bn.unstable_act=Gle;bn.useCallback=function(e,t){return oa.current.useCallback(e,t)};bn.useContext=function(e){return oa.current.useContext(e)};bn.useDebugValue=function(){};bn.useDeferredValue=function(e){return oa.current.useDeferredValue(e)};bn.useEffect=function(e,t){return oa.current.useEffect(e,t)};bn.useId=function(){return oa.current.useId()};bn.useImperativeHandle=function(e,t,n){return oa.current.useImperativeHandle(e,t,n)};bn.useInsertionEffect=function(e,t){return oa.current.useInsertionEffect(e,t)};bn.useLayoutEffect=function(e,t){return oa.current.useLayoutEffect(e,t)};bn.useMemo=function(e,t){return oa.current.useMemo(e,t)};bn.useReducer=function(e,t,n){return oa.current.useReducer(e,t,n)};bn.useRef=function(e){return oa.current.useRef(e)};bn.useState=function(e){return oa.current.useState(e)};bn.useSyncExternalStore=function(e,t,n){return oa.current.useSyncExternalStore(e,t,n)};bn.useTransition=function(){return oa.current.useTransition()};bn.version="18.3.1";Ule.exports=bn;var b=Ule.exports;const Ae=io(b),k_=Fle({__proto__:null,default:Ae},[b]);/**
10 * @license React
11 * react-jsx-runtime.production.min.js
12 *
13 * Copyright (c) Facebook, Inc. and its affiliates.
14 *
15 * This source code is licensed under the MIT license found in the
16 * LICENSE file in the root directory of this source tree.
17 */var UPe=b,BPe=Symbol.for("react.element"),$Pe=Symbol.for("react.fragment"),HPe=Object.prototype.hasOwnProperty,zPe=UPe.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,VPe={key:!0,ref:!0,__self:!0,__source:!0};function Kle(e,t,n){var r,i={},o=null,s=null;n!==void 0&&(o=""+n),t.key!==void 0&&(o=""+t.key),t.ref!==void 0&&(s=t.ref);for(r in t)HPe.call(t,r)&&!VPe.hasOwnProperty(r)&&(i[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)i[r]===void 0&&(i[r]=t[r]);return{$$typeof:BPe,type:e,key:o,ref:s,props:i,_owner:zPe.current}}D3.Fragment=$Pe;D3.jsx=Kle;D3.jsxs=Kle;jle.exports=D3;var h=jle.exports;const WPe=io(h),qPe=Fle({__proto__:null,default:WPe},[h]);var A8={},Yle={exports:{}},pc={},Qle={exports:{}},Xle={};/**
18 * @license React
19 * scheduler.production.min.js
20 *
21 * Copyright (c) Facebook, Inc. and its affiliates.
22 *
23 * This source code is licensed under the MIT license found in the
24 * LICENSE file in the root directory of this source tree.
25 */(function(e){function t(X,Z){var G=X.length;X.push(Z);e:for(;0<G;){var Q=G-1>>>1,q=X[Q];if(0<i(q,Z))X[Q]=Z,X[G]=q,G=Q;else break e}}function n(X){return X.length===0?null:X[0]}function r(X){if(X.length===0)return null;var Z=X[0],G=X.pop();if(G!==Z){X[0]=G;e:for(var Q=0,q=X.length,z=q>>>1;Q<z;){var ue=2*(Q+1)-1,ge=X[ue],ae=ue+1,j=X[ae];if(0>i(ge,G))ae<q&&0>i(j,ge)?(X[Q]=j,X[ae]=G,Q=ae):(X[Q]=ge,X[ue]=G,Q=ue);else if(ae<q&&0>i(j,G))X[Q]=j,X[ae]=G,Q=ae;else break e}}return Z}function i(X,Z){var G=X.sortIndex-Z.sortIndex;return G!==0?G:X.id-Z.id}if(typeof performance=="object"&&typeof performance.now=="function"){var o=performance;e.unstable_now=function(){return o.now()}}else{var s=Date,a=s.now();e.unstable_now=function(){return s.now()-a}}var c=[],l=[],u=1,d=null,f=3,p=!1,g=!1,m=!1,y=typeof setTimeout=="function"?setTimeout:null,v=typeof clearTimeout=="function"?clearTimeout:null,w=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function S(X){for(var Z=n(l);Z!==null;){if(Z.callback===null)r(l);else if(Z.startTime<=X)r(l),Z.sortIndex=Z.expirationTime,t(c,Z);else break;Z=n(l)}}function C(X){if(m=!1,S(X),!g)if(n(c)!==null)g=!0,ee(E);else{var Z=n(l);Z!==null&&Y(C,Z.startTime-X)}}function E(X,Z){g=!1,m&&(m=!1,v(O),O=-1),p=!0;var G=f;try{for(S(Z),d=n(c);d!==null&&(!(d.expirationTime>Z)||X&&!U());){var Q=d.callback;
vendor: 9,180 bytes, lines 25-34
25if(typeof Q=="function"){d.callback=null,f=d.priorityLevel;var q=Q(d.expirationTime<=Z);Z=e.unstable_now(),typeof q=="function"?d.callback=q:d===n(c)&&r(c),S(Z)}else r(c);d=n(c)}if(d!==null)var z=!0;else{var ue=n(l);ue!==null&&Y(C,ue.startTime-Z),z=!1}return z}finally{d=null,f=G,p=!1}}var T=!1,x=null,O=-1,A=5,L=-1;function U(){return!(e.unstable_now()-L<A)}function I(){if(x!==null){var X=e.unstable_now();L=X;var Z=!0;try{Z=x(!0,X)}finally{Z?F():(T=!1,x=null)}}else T=!1}var F;if(typeof w=="function")F=function(){w(I)};else if(typeof MessageChannel<"u"){var P=new MessageChannel,W=P.port2;P.port1.onmessage=I,F=function(){W.postMessage(null)}}else F=function(){y(I,0)};function ee(X){x=X,T||(T=!0,F())}function Y(X,Z){O=y(function(){X(e.unstable_now())},Z)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(X){X.callback=null},e.unstable_continueExecution=function(){g||p||(g=!0,ee(E))},e.unstable_forceFrameRate=function(X){0>X||125<X?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):A=0<X?Math.floor(1e3/X):5},e.unstable_getCurrentPriorityLevel=function(){return f},e.unstable_getFirstCallbackNode=function(){return n(c)},e.unstable_next=function(X){switch(f){case 1:case 2:case 3:var Z=3;break;default:Z=f}var G=f;f=Z;try{return X()}finally{f=G}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(X,Z){switch(X){case 1:case 2:case 3:case 4:case 5:break;default:X=3}var G=f;f=X;try{return Z()}finally{f=G}},e.unstable_scheduleCallback=function(X,Z,G){var Q=e.unstable_now();switch(typeof G=="object"&&G!==null?(G=G.delay,G=typeof G=="number"&&0<G?Q+G:Q):G=Q,X){case 1:var q=-1;break;case 2:q=250;break;case 5:q=1073741823;break;case 4:q=1e4;break;default:q=5e3}return q=G+q,X={id:u++,callback:Z,priorityLevel:X,startTime:G,expirationTime:q,sortIndex:-1},G>Q?(X.sortIndex=G,t(l,X),n(c)===null&&X===n(l)&&(m?(v(O),O=-1):m=!0,Y(C,G-Q))):(X.sortIndex=q,t(c,X),g||p||(g=!0,ee(E))),X},e.unstable_shouldYield=U,e.unstable_wrapCallback=function(X){var Z=f;return function(){var G=f;f=Z;try{return X.apply(this,arguments)}finally{f=G}}}})(Xle);Qle.exports=Xle;var GPe=Qle.exports;/**
26 * @license React
27 * react-dom.production.min.js
28 *
29 * Copyright (c) Facebook, Inc. and its affiliates.
30 *
31 * This source code is licensed under the MIT license found in the
32 * LICENSE file in the root directory of this source tree.
33 */var KPe=b,fc=GPe;function tt(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var Jle=new Set,x_={};function Mv(e,t){Jy(e,t),Jy(e+"Capture",t)}function Jy(e,t){for(x_[e]=t,e=0;e<t.length;e++)Jle.add(t[e])}var Kf=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),I8=Object.prototype.hasOwnProperty,YPe=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,oY={},sY={};function QPe(e){return I8.call(sY,e)?!0:I8.call(oY,e)?!1:YPe.test(e)?sY[e]=!0:(oY[e]=!0,!1)}function XPe(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function JPe(e,t,n,r){if(t===null||typeof t>"u"||XPe(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function sa(e,t,n,r,i,o,s){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=s}var cs={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){cs[e]=new sa(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];cs[t]=new sa(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){cs[e]=new sa(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){cs[e]=new sa(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){cs[e]=new sa(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){cs[e]=new sa(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){cs[e]=new sa(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){cs[e]=new sa(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){cs[e]=new sa(e,5,!1,e.toLowerCase(),null,!1,!1)});var QU=/[\-:]([a-z])/g;function XU(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(QU,XU);cs[t]=new sa(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(QU,XU);cs[t]=new sa(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(QU,XU);cs[t]=new sa(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){cs[e]=new sa(e,1,!1,e.toLowerCase(),null,!1,!1)});cs.xlinkHref=new sa("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){cs[e]=new sa(e,1,!1,e.toLowerCase(),null,!0,!0)});function JU(e,t,n,r){var i=cs.hasOwnProperty(t)?cs[t]:null;(i!==null?i.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(JPe(t,n,i,r)&&(n=null),r||i===null?QPe(t)&&(n===null?e.removeAttribute(t):e.setAttribute(t,""+n)):i.mustUseProperty?e[i.propertyName]=n===null?i.type===3?!1:"":n:(t=i.attributeName,r=i.attributeNamespace,n===null?e.removeAttribute(t):(i=i.type,n=i===3||i===4&&n===!0?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}var gh=KPe.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,eT=Symbol.for("react.element"),z0=Symbol.for("react.portal"),V0=Symbol.for("react.fragment"),ZU=Symbol.for("react.strict_mode"),R8=Symbol.for("react.profiler"),Zle=Symbol.for("react.provider"),eue=Symbol.for("react.context"),eB=Symbol.for("react.forward_ref"),P8=Symbol.for("react.suspense"),O8=Symbol.for("react.suspense_list"),tB=Symbol.for("react.memo"),Xh=Symbol.for("react.lazy"),tue=Symbol.for("react.offscreen"),aY=Symbol.iterator;function Ew(e){return e===null||typeof e!="object"?null:(e=aY&&e[aY]||e["@@iterator"],typeof e=="function"?e:null)}var gi=Object.assign,F5;function gS(e){if(F5===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);F5=t&&t[1]||""}return`
34`+F5+e}var j5=!1;function U5(e,t){if(!e||j5)return"";j5=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(l){var r=l}Reflect.construct(e,[],t)}else{try{t.call()}catch(l){r=l}e.call(t.prototype)}else{try{throw Error()}catch(l){r=l}e()}}
vendor: 28,796 bytes, lines 34-37
34catch(l){if(l&&r&&typeof l.stack=="string"){for(var i=l.stack.split(`
35`),o=r.stack.split(`
36`),s=i.length-1,a=o.length-1;1<=s&&0<=a&&i[s]!==o[a];)a--;for(;1<=s&&0<=a;s--,a--)if(i[s]!==o[a]){if(s!==1||a!==1)do if(s--,a--,0>a||i[s]!==o[a]){var c=`
37`+i[s].replace(" at new "," at ");return e.displayName&&c.includes("<anonymous>")&&(c=c.replace("<anonymous>",e.displayName)),c}while(1<=s&&0<=a);break}}}finally{j5=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?gS(e):""}function ZPe(e){switch(e.tag){case 5:return gS(e.type);case 16:return gS("Lazy");case 13:return gS("Suspense");case 19:return gS("SuspenseList");case 0:case 2:case 15:return e=U5(e.type,!1),e;case 11:return e=U5(e.type.render,!1),e;case 1:return e=U5(e.type,!0),e;default:return""}}function N8(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case V0:return"Fragment";case z0:return"Portal";case R8:return"Profiler";case ZU:return"StrictMode";case P8:return"Suspense";case O8:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case eue:return(e.displayName||"Context")+".Consumer";case Zle:return(e._context.displayName||"Context")+".Provider";case eB:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case tB:return t=e.displayName||null,t!==null?t:N8(e.type)||"Memo";case Xh:t=e._payload,e=e._init;try{return N8(e(t))}catch{}}return null}function eOe(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return N8(t);case 8:return t===ZU?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function tm(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function nue(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function tOe(e){var t=nue(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var i=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(s){r=""+s,o.call(this,s)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(s){r=""+s},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function tT(e){e._valueTracker||(e._valueTracker=tOe(e))}function rue(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=nue(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function wA(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function M8(e,t){var n=t.checked;return gi({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function cY(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=tm(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function iue(e,t){t=t.checked,t!=null&&JU(e,"checked",t,!1)}function D8(e,t){iue(e,t);var n=tm(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?L8(e,t.type,n):t.hasOwnProperty("defaultValue")&&L8(e,t.type,tm(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function lY(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function L8(e,t,n){(t!=="number"||wA(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var vS=Array.isArray;function yy(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t["$"+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty("$"+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&r&&(e[n].defaultSelected=!0)}else{for(n=""+tm(n),t=null,i=0;i<e.length;i++){if(e[i].value===n){e[i].selected=!0,r&&(e[i].defaultSelected=!0);return}t!==null||e[i].disabled||(t=e[i])}t!==null&&(t.selected=!0)}}function F8(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(tt(91));return gi({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function uY(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(tt(92));if(vS(n)){if(1<n.length)throw Error(tt(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:tm(n)}}function oue(e,t){var n=tm(t.value),r=tm(t.defaultValue);n!=null&&(n=""+n,n!==e.value&&(e.value=n),t.defaultValue==null&&e.defaultValue!==n&&(e.defaultValue=n)),r!=null&&(e.defaultValue=""+r)}function dY(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function sue(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function j8(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?sue(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var nT,aue=(function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,n,r,i){MSApp.execUnsafeLocalFunction(function(){return e(t,n,r,i)})}:e})(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(nT=nT||document.createElement("div"),nT.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=nT.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function A_(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var OS={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},nOe=["Webkit","ms","Moz","O"];Object.keys(OS).forEach(function(e){nOe.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),OS[t]=OS[e]})});function cue(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||OS.hasOwnProperty(e)&&OS[e]?(""+t).trim():t+"px"}function lue(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,i=cue(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}var rOe=gi({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function U8(e,t){if(t){if(rOe[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(tt(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(tt(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(tt(61))}if(t.style!=null&&typeof t.style!="object")throw Error(tt(62))}}function B8(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var $8=null;function nB(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var H8=null,by=null,wy=null;function fY(e){if(e=eE(e)){if(typeof H8!="function")throw Error(tt(280));var t=e.stateNode;t&&(t=B3(t),H8(e.stateNode,e.type,t))}}function uue(e){by?wy?wy.push(e):wy=[e]:by=e}function due(){if(by){var e=by,t=wy;if(wy=by=null,fY(e),t)for(e=0;e<t.length;e++)fY(t[e])}}function fue(e,t){return e(t)}function hue(){}var B5=!1;function pue(e,t,n){if(B5)return e(t,n);B5=!0;try{return fue(e,t,n)}finally{B5=!1,(by!==null||wy!==null)&&(hue(),due())}}function I_(e,t){var n=e.stateNode;if(n===null)return null;var r=B3(n);if(r===null)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(e=e.type,r=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!r;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(tt(231,t,typeof n));return n}var z8=!1;if(Kf)try{var Tw={};Object.defineProperty(Tw,"passive",{get:function(){z8=!0}}),window.addEventListener("test",Tw,Tw),window.removeEventListener("test",Tw,Tw)}catch{z8=!1}function iOe(e,t,n,r,i,o,s,a,c){var l=Array.prototype.slice.call(arguments,3);try{t.apply(n,l)}catch(u){this.onError(u)}}var NS=!1,SA=null,_A=!1,V8=null,oOe={onError:function(e){NS=!0,SA=e}};function sOe(e,t,n,r,i,o,s,a,c){NS=!1,SA=null,iOe.apply(oOe,arguments)}function aOe(e,t,n,r,i,o,s,a,c){if(sOe.apply(this,arguments),NS){if(NS){var l=SA;NS=!1,SA=null}else throw Error(tt(198));_A||(_A=!0,V8=l)}}function Dv(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function mue(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function hY(e){if(Dv(e)!==e)throw Error(tt(188))}function cOe(e){var t=e.alternate;if(!t){if(t=Dv(e),t===null)throw Error(tt(188));return t!==e?null:e}for(var n=e,r=t;;){var i=n.return;if(i===null)break;var o=i.alternate;if(o===null){if(r=i.return,r!==null){n=r;continue}break}if(i.child===o.child){for(o=i.child;o;){if(o===n)return hY(i),e;if(o===r)return hY(i),t;o=o.sibling}throw Error(tt(188))}if(n.return!==r.return)n=i,r=o;else{for(var s=!1,a=i.child;a;){if(a===n){s=!0,n=i,r=o;break}if(a===r){s=!0,r=i,n=o;break}a=a.sibling}if(!s){for(a=o.child;a;){if(a===n){s=!0,n=o,r=i;break}if(a===r){s=!0,r=o,n=i;break}a=a.sibling}if(!s)throw Error(tt(189))}}if(n.alternate!==r)throw Error(tt(190))}if(n.tag!==3)throw Error(tt(188));return n.stateNode.current===n?e:t}function gue(e){return e=cOe(e),e!==null?vue(e):null}function vue(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=vue(e);if(t!==null)return t;e=e.sibling}return null}var yue=fc.unstable_scheduleCallback,pY=fc.unstable_cancelCallback,lOe=fc.unstable_shouldYield,uOe=fc.unstable_requestPaint,ji=fc.unstable_now,dOe=fc.unstable_getCurrentPriorityLevel,rB=fc.unstable_ImmediatePriority,bue=fc.unstable_UserBlockingPriority,CA=fc.unstable_NormalPriority,fOe=fc.unstable_LowPriority,wue=fc.unstable_IdlePriority,L3=null,id=null;function hOe(e){if(id&&typeof id.onCommitFiberRoot=="function")try{id.onCommitFiberRoot(L3,e,void 0,(e.current.flags&128)===128)}catch{}}var Kl=Math.clz32?Math.clz32:gOe,pOe=Math.log,mOe=Math.LN2;function gOe(e){return e>>>=0,e===0?32:31-(pOe(e)/mOe|0)|0}var rT=64,iT=4194304;function yS(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function EA(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,i=e.suspendedLanes,o=e.pingedLanes,s=n&268435455;if(s!==0){var a=s&~i;a!==0?r=yS(a):(o&=s,o!==0&&(r=yS(o)))}else s=n&~i,s!==0?r=yS(s):o!==0&&(r=yS(o));if(r===0)return 0;if(t!==0&&t!==r&&(t&i)===0&&(i=r&-r,o=t&-t,i>=o||i===16&&(o&4194240)!==0))return t;if((r&4)!==0&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0<t;)n=31-Kl(t),i=1<<n,r|=e[n],t&=~i;return r}function vOe(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function yOe(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,o=e.pendingLanes;0<o;){var s=31-Kl(o),a=1<<s,c=i[s];c===-1?((a&n)===0||(a&r)!==0)&&(i[s]=vOe(a,t)):c<=t&&(e.expiredLanes|=a),o&=~a}}function W8(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function Sue(){var e=rT;return rT<<=1,(rT&4194240)===0&&(rT=64),e}function $5(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function JC(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Kl(t),e[t]=n}function bOe(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var i=31-Kl(n),o=1<<i;t[i]=0,r[i]=-1,e[i]=-1,n&=~o}}function iB(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-Kl(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}var rr=0;function _ue(e){return e&=-e,1<e?4<e?(e&268435455)!==0?16:536870912:4:1}var Cue,oB,Eue,Tue,kue,q8=!1,oT=[],Ip=null,Rp=null,Pp=null,R_=new Map,P_=new Map,up=[],wOe="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function mY(e,t){switch(e){case"focusin":case"focusout":Ip=null;break;case"dragenter":case"dragleave":Rp=null;break;case"mouseover":case"mouseout":Pp=null;break;case"pointerover":case"pointerout":R_.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":P_.delete(t.pointerId)}}function kw(e,t,n,r,i,o){return e===null||e.nativeEvent!==o?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:o,targetContainers:[i]},t!==null&&(t=eE(t),t!==null&&oB(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function SOe(e,t,n,r,i){switch(t){case"focusin":return Ip=kw(Ip,e,t,n,r,i),!0;case"dragenter":return Rp=kw(Rp,e,t,n,r,i),!0;case"mouseover":return Pp=kw(Pp,e,t,n,r,i),!0;case"pointerover":var o=i.pointerId;return R_.set(o,kw(R_.get(o)||null,e,t,n,r,i)),!0;case"gotpointercapture":return o=i.pointerId,P_.set(o,kw(P_.get(o)||null,e,t,n,r,i)),!0}return!1}function xue(e){var t=pg(e.target);if(t!==null){var n=Dv(t);if(n!==null){if(t=n.tag,t===13){if(t=mue(n),t!==null){e.blockedOn=t,kue(e.priority,function(){Eue(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function ex(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=G8(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);$8=r,n.target.dispatchEvent(r),$8=null}else return t=eE(n),t!==null&&oB(t),e.blockedOn=n,!1;t.shift()}return!0}function gY(e,t,n){ex(e)&&n.delete(t)}function _Oe(){q8=!1,Ip!==null&&ex(Ip)&&(Ip=null),Rp!==null&&ex(Rp)&&(Rp=null),Pp!==null&&ex(Pp)&&(Pp=null),R_.forEach(gY),P_.forEach(gY)}function xw(e,t){e.blockedOn===t&&(e.blockedOn=null,q8||(q8=!0,fc.unstable_scheduleCallback(fc.unstable_NormalPriority,_Oe)))}function O_(e){function t(i){return xw(i,e)}if(0<oT.length){xw(oT[0],e);for(var n=1;n<oT.length;n++){var r=oT[n];r.blockedOn===e&&(r.blockedOn=null)}}for(Ip!==null&&xw(Ip,e),Rp!==null&&xw(Rp,e),Pp!==null&&xw(Pp,e),R_.forEach(t),P_.forEach(t),n=0;n<up.length;n++)r=up[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<up.length&&(n=up[0],n.blockedOn===null);)xue(n),n.blockedOn===null&&up.shift()}var Sy=gh.ReactCurrentBatchConfig,TA=!0;function COe(e,t,n,r){var i=rr,o=Sy.transition;Sy.transition=null;try{rr=1,sB(e,t,n,r)}finally{rr=i,Sy.transition=o}}function EOe(e,t,n,r){var i=rr,o=Sy.transition;Sy.transition=null;try{rr=4,sB(e,t,n,r)}finally{rr=i,Sy.transition=o}}function sB(e,t,n,r){if(TA){var i=G8(e,t,n,r);if(i===null)X5(e,t,r,kA,n),mY(e,r);else if(SOe(i,e,t,n,r))r.stopPropagation();else if(mY(e,r),t&4&&-1<wOe.indexOf(e)){for(;i!==null;){var o=eE(i);if(o!==null&&Cue(o),o=G8(e,t,n,r),o===null&&X5(e,t,r,kA,n),o===i)break;i=o}i!==null&&r.stopPropagation()}else X5(e,t,r,null,n)}}var kA=null;function G8(e,t,n,r){if(kA=null,e=nB(r),e=pg(e),e!==null)if(t=Dv(e),t===null)e=null;else if(n=t.tag,n===13){if(e=mue(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return kA=e,null}function Aue(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(dOe()){case rB:return 1;case bue:return 4;case CA:case fOe:return 16;case wue:return 536870912;default:return 16}default:return 16}}var bp=null,aB=null,tx=null;function Iue(){if(tx)return tx;var e,t=aB,n=t.length,r,i="value"in bp?bp.value:bp.textContent,o=i.length;for(e=0;e<n&&t[e]===i[e];e++);var s=n-e;for(r=1;r<=s&&t[n-r]===i[o-r];r++);return tx=i.slice(e,1<r?1-r:void 0)}function nx(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function sT(){return!0}function vY(){return!1}function mc(e){function t(n,r,i,o,s){this._reactName=n,this._targetInst=i,this.type=r,this.nativeEvent=o,this.target=s,this.currentTarget=null;for(var a in e)e.hasOwnProperty(a)&&(n=e[a],this[a]=n?n(o):o[a]);return this.isDefaultPrevented=(o.defaultPrevented!=null?o.defaultPrevented:o.returnValue===!1)?sT:vY,this.isPropagationStopped=vY,this}return gi(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=sT)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=sT)},persist:function(){},isPersistent:sT}),t}var db={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},cB=mc(db),ZC=gi({},db,{view:0,detail:0}),TOe=mc(ZC),H5,z5,Aw,F3=gi({},ZC,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:lB,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==Aw&&(Aw&&e.type==="mousemove"?(H5=e.screenX-Aw.screenX,z5=e.screenY-Aw.screenY):z5=H5=0,Aw=e),H5)},movementY:function(e){return"movementY"in e?e.movementY:z5}}),yY=mc(F3),kOe=gi({},F3,{dataTransfer:0}),xOe=mc(kOe),AOe=gi({},ZC,{relatedTarget:0}),V5=mc(AOe),IOe=gi({},db,{animationName:0,elapsedTime:0,pseudoElement:0}),ROe=mc(IOe),POe=gi({},db,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),OOe=mc(POe),NOe=gi({},db,{data:0}),bY=mc(NOe),MOe={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},DOe={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},LOe={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function FOe(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=LOe[e])?!!t[e]:!1}function lB(){return FOe}var jOe=gi({},ZC,{key:function(e){if(e.key){var t=MOe[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=nx(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?DOe[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:lB,charCode:function(e){return e.type==="keypress"?nx(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?nx(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),UOe=mc(jOe),BOe=gi({},F3,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),wY=mc(BOe),$Oe=gi({},ZC,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:lB}),HOe=mc($Oe),zOe=gi({},db,{propertyName:0,elapsedTime:0,pseudoElement:0}),VOe=mc(zOe),WOe=gi({},F3,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),qOe=mc(WOe),GOe=[9,13,27,32],uB=Kf&&"CompositionEvent"in window,MS=null;Kf&&"documentMode"in document&&(MS=document.documentMode);var KOe=Kf&&"TextEvent"in window&&!MS,Rue=Kf&&(!uB||MS&&8<MS&&11>=MS),SY=" ",_Y=!1;function Pue(e,t){switch(e){case"keyup":return GOe.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Oue(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var W0=!1;function YOe(e,t){switch(e){case"compositionend":return Oue(t);case"keypress":return t.which!==32?null:(_Y=!0,SY);case"textInput":return e=t.data,e===SY&&_Y?null:e;default:return null}}function QOe(e,t){if(W0)return e==="compositionend"||!uB&&Pue(e,t)?(e=Iue(),tx=aB=bp=null,W0=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Rue&&t.locale!=="ko"?null:t.data;default:return null}}var XOe={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function CY(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!XOe[e.type]:t==="textarea"}function Nue(e,t,n,r){uue(r),t=xA(t,"onChange"),0<t.length&&(n=new cB("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var DS=null,N_=null;function JOe(e){Vue(e,0)}function j3(e){var t=K0(e);if(rue(t))return e}function ZOe(e,t){if(e==="change")return t}var Mue=!1;if(Kf){var W5;if(Kf){var q5="oninput"in document;if(!q5){var EY=document.createElement("div");EY.setAttribute("oninput","return;"),q5=typeof EY.oninput=="function"}W5=q5}else W5=!1;Mue=W5&&(!document.documentMode||9<document.documentMode)}function TY(){DS&&(DS.detachEvent("onpropertychange",Due),N_=DS=null)}function Due(e){if(e.propertyName==="value"&&j3(N_)){var t=[];Nue(t,N_,e,nB(e)),pue(JOe,t)}}function eNe(e,t,n){e==="focusin"?(TY(),DS=t,N_=n,DS.attachEvent("onpropertychange",Due)):e==="focusout"&&TY()}function tNe(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return j3(N_)}function nNe(e,t){if(e==="click")return j3(t)}function rNe(e,t){if(e==="input"||e==="change")return j3(t)}function iNe(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Zl=typeof Object.is=="function"?Object.is:iNe;function M_(e,t){if(Zl(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var i=n[r];if(!I8.call(t,i)||!Zl(e[i],t[i]))return!1}return!0}function kY(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function xY(e,t){var n=kY(e);e=0;for(var r;n;){if(n.nodeType===3){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=kY(n)}}function Lue(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Lue(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Fue(){for(var e=window,t=wA();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=wA(e.document)}return t}function dB(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function oNe(e){var t=Fue(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Lue(n.ownerDocument.documentElement,n)){if(r!==null&&dB(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var i=n.textContent.length,o=Math.min(r.start,i);r=r.end===void 0?o:Math.min(r.end,i),!e.extend&&o>r&&(i=r,r=o,o=i),i=xY(n,o);var s=xY(n,r);i&&s&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==s.node||e.focusOffset!==s.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),o>r?(e.addRange(t),e.extend(s.node,s.offset)):(t.setEnd(s.node,s.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n<t.length;n++)e=t[n],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var sNe=Kf&&"documentMode"in document&&11>=document.documentMode,q0=null,K8=null,LS=null,Y8=!1;function AY(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Y8||q0==null||q0!==wA(r)||(r=q0,"selectionStart"in r&&dB(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focu
vendor: 4,535 bytes, line 37
37sNode:r.focusNode,focusOffset:r.focusOffset}),LS&&M_(LS,r)||(LS=r,r=xA(K8,"onSelect"),0<r.length&&(t=new cB("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=q0)))}function aT(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var G0={animationend:aT("Animation","AnimationEnd"),animationiteration:aT("Animation","AnimationIteration"),animationstart:aT("Animation","AnimationStart"),transitionend:aT("Transition","TransitionEnd")},G5={},jue={};Kf&&(jue=document.createElement("div").style,"AnimationEvent"in window||(delete G0.animationend.animation,delete G0.animationiteration.animation,delete G0.animationstart.animation),"TransitionEvent"in window||delete G0.transitionend.transition);function U3(e){if(G5[e])return G5[e];if(!G0[e])return e;var t=G0[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in jue)return G5[e]=t[n];return e}var Uue=U3("animationend"),Bue=U3("animationiteration"),$ue=U3("animationstart"),Hue=U3("transitionend"),zue=new Map,IY="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function Tm(e,t){zue.set(e,t),Mv(t,[e])}for(var K5=0;K5<IY.length;K5++){var Y5=IY[K5],aNe=Y5.toLowerCase(),cNe=Y5[0].toUpperCase()+Y5.slice(1);Tm(aNe,"on"+cNe)}Tm(Uue,"onAnimationEnd");Tm(Bue,"onAnimationIteration");Tm($ue,"onAnimationStart");Tm("dblclick","onDoubleClick");Tm("focusin","onFocus");Tm("focusout","onBlur");Tm(Hue,"onTransitionEnd");Jy("onMouseEnter",["mouseout","mouseover"]);Jy("onMouseLeave",["mouseout","mouseover"]);Jy("onPointerEnter",["pointerout","pointerover"]);Jy("onPointerLeave",["pointerout","pointerover"]);Mv("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));Mv("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));Mv("onBeforeInput",["compositionend","keypress","textInput","paste"]);Mv("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));Mv("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));Mv("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var bS="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),lNe=new Set("cancel close invalid load scroll toggle".split(" ").concat(bS));function RY(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,aOe(r,t,void 0,e),e.currentTarget=null}function Vue(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var r=e[n],i=r.event;r=r.listeners;e:{var o=void 0;if(t)for(var s=r.length-1;0<=s;s--){var a=r[s],c=a.instance,l=a.currentTarget;if(a=a.listener,c!==o&&i.isPropagationStopped())break e;RY(i,a,l),o=c}else for(s=0;s<r.length;s++){if(a=r[s],c=a.instance,l=a.currentTarget,a=a.listener,c!==o&&i.isPropagationStopped())break e;RY(i,a,l),o=c}}}if(_A)throw e=V8,_A=!1,V8=null,e}function Dr(e,t){var n=t[eF];n===void 0&&(n=t[eF]=new Set);var r=e+"__bubble";n.has(r)||(Wue(t,e,2,!1),n.add(r))}function Q5(e,t,n){var r=0;t&&(r|=4),Wue(n,e,r,t)}var cT="_reactListening"+Math.random().toString(36).slice(2);function D_(e){if(!e[cT]){e[cT]=!0,Jle.forEach(function(n){n!=="selectionchange"&&(lNe.has(n)||Q5(n,!1,e),Q5(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[cT]||(t[cT]=!0,Q5("selectionchange",!1,t))}}function Wue(e,t,n,r){switch(Aue(t)){case 1:var i=COe;break;case 4:i=EOe;break;default:i=sB}n=i.bind(null,t,n,e),i=void 0,!z8||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(i=!0),r?i!==void 0?e.addEventListener(t,n,{capture:!0,passive:i}):e.addEventListener(t,n,!0):i!==void 0?e.addEventListener(t,n,{passive:i}):e.addEventListener(t,n,!1)}function X5(e,t,n,r,i){var o=r;if((t&1)===0&&(t&2)===0&&r!==null)e:for(;;){if(r===null)return;var s=r.tag;if(s===3||s===4){var a=r.stateNode.containerInfo;
vendor: 8,957 bytes, lines 37-38
37if(a===i||a.nodeType===8&&a.parentNode===i)break;if(s===4)for(s=r.return;s!==null;){var c=s.tag;if((c===3||c===4)&&(c=s.stateNode.containerInfo,c===i||c.nodeType===8&&c.parentNode===i))return;s=s.return}for(;a!==null;){if(s=pg(a),s===null)return;if(c=s.tag,c===5||c===6){r=o=s;continue e}a=a.parentNode}}r=r.return}pue(function(){var l=o,u=nB(n),d=[];e:{var f=zue.get(e);if(f!==void 0){var p=cB,g=e;switch(e){case"keypress":if(nx(n)===0)break e;case"keydown":case"keyup":p=UOe;break;case"focusin":g="focus",p=V5;break;case"focusout":g="blur",p=V5;break;case"beforeblur":case"afterblur":p=V5;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":p=yY;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":p=xOe;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":p=HOe;break;case Uue:case Bue:case $ue:p=ROe;break;case Hue:p=VOe;break;case"scroll":p=TOe;break;case"wheel":p=qOe;break;case"copy":case"cut":case"paste":p=OOe;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":p=wY}var m=(t&4)!==0,y=!m&&e==="scroll",v=m?f!==null?f+"Capture":null:f;m=[];for(var w=l,S;w!==null;){S=w;var C=S.stateNode;if(S.tag===5&&C!==null&&(S=C,v!==null&&(C=I_(w,v),C!=null&&m.push(L_(w,C,S)))),y)break;w=w.return}0<m.length&&(f=new p(f,g,null,n,u),d.push({event:f,listeners:m}))}}if((t&7)===0){e:{if(f=e==="mouseover"||e==="pointerover",p=e==="mouseout"||e==="pointerout",f&&n!==$8&&(g=n.relatedTarget||n.fromElement)&&(pg(g)||g[Yf]))break e;if((p||f)&&(f=u.window===u?u:(f=u.ownerDocument)?f.defaultView||f.parentWindow:window,p?(g=n.relatedTarget||n.toElement,p=l,g=g?pg(g):null,g!==null&&(y=Dv(g),g!==y||g.tag!==5&&g.tag!==6)&&(g=null)):(p=null,g=l),p!==g)){if(m=yY,C="onMouseLeave",v="onMouseEnter",w="mouse",(e==="pointerout"||e==="pointerover")&&(m=wY,C="onPointerLeave",v="onPointerEnter",w="pointer"),y=p==null?f:K0(p),S=g==null?f:K0(g),f=new m(C,w+"leave",p,n,u),f.target=y,f.relatedTarget=S,C=null,pg(u)===l&&(m=new m(v,w+"enter",g,n,u),m.target=S,m.relatedTarget=y,C=m),y=C,p&&g)t:{for(m=p,v=g,w=0,S=m;S;S=a0(S))w++;for(S=0,C=v;C;C=a0(C))S++;for(;0<w-S;)m=a0(m),w--;for(;0<S-w;)v=a0(v),S--;for(;w--;){if(m===v||v!==null&&m===v.alternate)break t;m=a0(m),v=a0(v)}m=null}else m=null;p!==null&&PY(d,f,p,m,!1),g!==null&&y!==null&&PY(d,y,g,m,!0)}}e:{if(f=l?K0(l):window,p=f.nodeName&&f.nodeName.toLowerCase(),p==="select"||p==="input"&&f.type==="file")var E=ZOe;else if(CY(f))if(Mue)E=rNe;else{E=tNe;var T=eNe}else(p=f.nodeName)&&p.toLowerCase()==="input"&&(f.type==="checkbox"||f.type==="radio")&&(E=nNe);if(E&&(E=E(e,l))){Nue(d,E,n,u);break e}T&&T(e,f,l),e==="focusout"&&(T=f._wrapperState)&&T.controlled&&f.type==="number"&&L8(f,"number",f.value)}switch(T=l?K0(l):window,e){case"focusin":(CY(T)||T.contentEditable==="true")&&(q0=T,K8=l,LS=null);break;case"focusout":LS=K8=q0=null;break;case"mousedown":Y8=!0;break;case"contextmenu":case"mouseup":case"dragend":Y8=!1,AY(d,n,u);break;case"selectionchange":if(sNe)break;case"keydown":case"keyup":AY(d,n,u)}var x;if(uB)e:{switch(e){case"compositionstart":var O="onCompositionStart";break e;case"compositionend":O="onCompositionEnd";break e;case"compositionupdate":O="onCompositionUpdate";break e}O=void 0}else W0?Pue(e,n)&&(O="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(O="onCompositionStart");O&&(Rue&&n.locale!=="ko"&&(W0||O!=="onCompositionStart"?O==="onCompositionEnd"&&W0&&(x=Iue()):(bp=u,aB="value"in bp?bp.value:bp.textContent,W0=!0)),T=xA(l,O),0<T.length&&(O=new bY(O,e,null,n,u),d.push({event:O,listeners:T}),x?O.data=x:(x=Oue(n),x!==null&&(O.data=x)))),(x=KOe?YOe(e,n):QOe(e,n))&&(l=xA(l,"onBeforeInput"),0<l.length&&(u=new bY("onBeforeInput","beforeinput",null,n,u),d.push({event:u,listeners:l}),u.data=x))}Vue(d,t)})}function L_(e,t,n){return{instance:e,listener:t,currentTarget:n}}function xA(e,t){for(var n=t+"Capture",r=[];e!==null;){var i=e,o=i.stateNode;i.tag===5&&o!==null&&(i=o,o=I_(e,n),o!=null&&r.unshift(L_(e,o,i)),o=I_(e,t),o!=null&&r.push(L_(e,o,i))),e=e.return}return r}function a0(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function PY(e,t,n,r,i){for(var o=t._reactName,s=[];n!==null&&n!==r;){var a=n,c=a.alternate,l=a.stateNode;if(c!==null&&c===r)break;a.tag===5&&l!==null&&(a=l,i?(c=I_(n,o),c!=null&&s.unshift(L_(n,c,a))):i||(c=I_(n,o),c!=null&&s.push(L_(n,c,a)))),n=n.return}s.length!==0&&e.push({event:t,listeners:s})}var uNe=/\r\n?/g,dNe=/\u0000|\uFFFD/g;function OY(e){return(typeof e=="string"?e:""+e).replace(uNe,`
38`).replace(dNe,"")}function lT(e,t,n){if(t=OY(t),OY(e)!==t&&n)throw Error(tt(425))}function AA(){}var Q8=null,X8=null;function J8(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var Z8=typeof setTimeout=="function"?setTimeout:void 0,fNe=typeof clearTimeout=="function"?clearTimeout:void 0,NY=typeof Promise=="function"?Promise:void 0,hNe=typeof queueMicrotask=="function"?queueMicrotask:typeof NY<"u"?function(e){return NY.resolve(null).then(e).catch(pNe)}:Z8;function pNe(e){setTimeout(function(){throw e})}function J5(e,t){var n=t,r=0;do{var i=n.nextSibling;if(e.removeChild(n),i&&i.nodeType===8)if(n=i.data,n==="/$"){if(r===0){e.removeChild(i),O_(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=i}while(n);O_(t)}function Op(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?")break;if(t==="/$")return null}}return e}function MY(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"){if(t===0)return e;t--}else n==="/$"&&t++}e=e.previousSibling}return null}var fb=Math.random().toString(36).slice(2),Vu="__reactFiber$"+fb,F_="__reactProps$"+fb,Yf="__reactContainer$"+fb,eF="__reactEvents$"+fb,mNe="__reactListeners$"+fb,gNe="__reactHandles$"+fb;function pg(e){var t=e[Vu];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Yf]||n[Vu]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=MY(e);e!==null;){if(n=e[Vu])return n;e=MY(e)}return t}e=n,n=e.parentNode}return null}function eE(e){return e=e[Vu]||e[Yf],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function K0(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(tt(33))}function B3(e){return e[F_]||null}var tF=[],Y0=-1;function km(e){return{current:e}}function Hr(e){0>Y0||(e.current=tF[Y0],tF[Y0]=null,Y0--)}function Tr(e,t){Y0++,tF[Y0]=e.current,e.current=t}var nm={},Cs=km(nm),Ca=km(!1),Jg=nm;function Zy(e,t){var n=e.type.contextTypes;if(!n)return nm;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i={},o;for(o in n)i[o]=t[o];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function Ea(e){return e=e.childContextTypes,e!=null}function IA(){Hr(Ca),Hr(Cs)}function DY(e,t,n){if(Cs.current!==nm)throw Error(tt(168));Tr(Cs,t),Tr(Ca,n)}function que(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var i in r)if(!(i in t))throw Error(tt(108,eOe(e)||"Unknown",i));return gi({},n,r)}function RA(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||nm,Jg=Cs.current,Tr(Cs,e),Tr(Ca,Ca.current),!0}function LY(e,t,n){var r=e.stateNode;if(!r)throw Error(tt(169));n?(e=que(e,t,Jg),r.__reactInternalMemoizedMergedChildContext=e,Hr(Ca),Hr(Cs),Tr(Cs,e)):Hr(Ca),Tr(Ca,n)}var ff=null,$3=!1,Z5=!1;function Gue(e){ff===null?ff=[e]:ff.push(e)}function vNe(e){$3=!0,Gue(e)}function xm(){if(!Z5&&ff!==null){Z5=!0;var e=0,t=rr;try{var n=ff;for(rr=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}ff=null,$3=!1}catch(i){throw ff!==null&&(ff=ff.slice(e+1)),yue(rB,xm),i}finally{rr=t,Z5=!1}}return null}var Q0=[],X0=0,PA=null,OA=0,Rc=[],Pc=0,Zg=null,kf=1,xf="";function ig(e,t){Q0[X0++]=OA,Q0[X0++]=PA,PA=e,OA=t}function Kue(e,t,n){Rc[Pc++]=kf,Rc[Pc++]=xf,Rc[Pc++]=Zg,Zg=e;var r=kf;e=xf;var i=32-Kl(r)-1;r&=~(1<<i),n+=1;var o=32-Kl(t)+i;if(30<o){var s=i-i%5;o=(r&(1<<s)-1).toString(32),r>>=s,i-=s,kf=1<<32-Kl(t)+i|n<<i|r,xf=o+e}else kf=1<<o|n<<i|r,xf=e}function fB(e){e.return!==null&&(ig(e,1),Kue(e,1,0))}function hB(e){for(;e===PA;)PA=Q0[--X0],Q0[X0]=null,OA=Q0[--X0],Q0[X0]=null;for(;e===Zg;)Zg=Rc[--Pc],Rc[Pc]=null,xf=Rc[--Pc],Rc[Pc]=null,kf=Rc[--Pc],Rc[Pc]=null}var cc=null,rc=null,ni=!1,Nl=null;function Yue(e,t){var n=Uc(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,t=e.deletions,t===null?(e.deletions=[n],e.flags|=16):t.push(n)}function FY(e,t){switch(e.tag){case 5:var n=e.type;
vendor: 6,818 bytes, line 38
38return t=t.nodeType!==1||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,cc=e,rc=Op(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,cc=e,rc=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=Zg!==null?{id:kf,overflow:xf}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=Uc(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,cc=e,rc=null,!0):!1;default:return!1}}function nF(e){return(e.mode&1)!==0&&(e.flags&128)===0}function rF(e){if(ni){var t=rc;if(t){var n=t;if(!FY(e,t)){if(nF(e))throw Error(tt(418));t=Op(n.nextSibling);var r=cc;t&&FY(e,t)?Yue(r,n):(e.flags=e.flags&-4097|2,ni=!1,cc=e)}}else{if(nF(e))throw Error(tt(418));e.flags=e.flags&-4097|2,ni=!1,cc=e}}}function jY(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;cc=e}function uT(e){if(e!==cc)return!1;if(!ni)return jY(e),ni=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!J8(e.type,e.memoizedProps)),t&&(t=rc)){if(nF(e))throw Que(),Error(tt(418));for(;t;)Yue(e,t),t=Op(t.nextSibling)}if(jY(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(tt(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){rc=Op(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}rc=null}}else rc=cc?Op(e.stateNode.nextSibling):null;return!0}function Que(){for(var e=rc;e;)e=Op(e.nextSibling)}function e1(){rc=cc=null,ni=!1}function pB(e){Nl===null?Nl=[e]:Nl.push(e)}var yNe=gh.ReactCurrentBatchConfig;function Iw(e,t,n){if(e=n.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(n._owner){if(n=n._owner,n){if(n.tag!==1)throw Error(tt(309));var r=n.stateNode}if(!r)throw Error(tt(147,e));var i=r,o=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===o?t.ref:(t=function(s){var a=i.refs;s===null?delete a[o]:a[o]=s},t._stringRef=o,t)}if(typeof e!="string")throw Error(tt(284));if(!n._owner)throw Error(tt(290,e))}return e}function dT(e,t){throw e=Object.prototype.toString.call(t),Error(tt(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function UY(e){var t=e._init;return t(e._payload)}function Xue(e){function t(v,w){if(e){var S=v.deletions;S===null?(v.deletions=[w],v.flags|=16):S.push(w)}}function n(v,w){if(!e)return null;for(;w!==null;)t(v,w),w=w.sibling;return null}function r(v,w){for(v=new Map;w!==null;)w.key!==null?v.set(w.key,w):v.set(w.index,w),w=w.sibling;return v}function i(v,w){return v=Lp(v,w),v.index=0,v.sibling=null,v}function o(v,w,S){return v.index=S,e?(S=v.alternate,S!==null?(S=S.index,S<w?(v.flags|=2,w):S):(v.flags|=2,w)):(v.flags|=1048576,w)}function s(v){return e&&v.alternate===null&&(v.flags|=2),v}function a(v,w,S,C){return w===null||w.tag!==6?(w=sM(S,v.mode,C),w.return=v,w):(w=i(w,S),w.return=v,w)}function c(v,w,S,C){var E=S.type;return E===V0?u(v,w,S.props.children,C,S.key):w!==null&&(w.elementType===E||typeof E=="object"&&E!==null&&E.$$typeof===Xh&&UY(E)===w.type)?(C=i(w,S.props),C.ref=Iw(v,w,S),C.return=v,C):(C=lx(S.type,S.key,S.props,null,v.mode,C),C.ref=Iw(v,w,S),C.return=v,C)}function l(v,w,S,C){return w===null||w.tag!==4||w.stateNode.containerInfo!==S.containerInfo||w.stateNode.implementation!==S.implementation?(w=aM(S,v.mode,C),w.return=v,w):(w=i(w,S.children||[]),w.return=v,w)}function u(v,w,S,C,E){return w===null||w.tag!==7?(w=Og(S,v.mode,C,E),w.return=v,w):(w=i(w,S),w.return=v,w)}function d(v,w,S){if(typeof w=="string"&&w!==""||typeof w=="number")return w=sM(""+w,v.mode,S),w.return=v,w;if(typeof w=="object"&&w!==null){switch(w.$$typeof){case eT:return S=lx(w.type,w.key,w.props,null,v.mode,S),S.ref=Iw(v,null,w),S.return=v,S;case z0:return w=aM(w,v.mode,S),w.return=v,w;case Xh:var C=w._init;return d(v,C(w._payload),S)}if(vS(w)||Ew(w))return w=Og(w,v.mode,S,null),w.return=v,w;dT(v,w)}return null}function f(v,w,S,C){var E=w!==null?w.key:null;if(typeof S=="string"&&S!==""||typeof S=="number")return E!==null?null:a(v,w,""+S,C);if(typeof S=="object"&&S!==null){switch(S.$$typeof){case eT:return S.key===E?c(v,w,S,C):null;case z0:return S.key===E?l(v,w,S,C):null;case Xh:return E=S._init,f(v,w,E(S._payload),C)}if(vS(S)||Ew(S))return E!==null?null:u(v,w,S,C,null);dT(v,S)}return null}function p(v,w,S,C,E){if(typeof C=="string"&&C!==""||typeof C=="number")return v=v.get(S)||null,a(w,v,""+C,E);if(typeof C=="object"&&C!==null){switch(C.$$typeof){case eT:return v=v.get(C.key===null?S:C.key)||null,c(w,v,C,E);case z0:return v=v.get(C.key===null?S:C.key)||null,l(w,v,C,E);case Xh:var T=C._init;return p(v,w,S,T(C._payload),E)}if(vS(C)||Ew(C))return v=v.get(S)||null,u(w,v,C,E,null);dT(w,C)}return null}function g(v,w,S,C){for(var E=null,T=null,x=w,O=w=0,A=null;x!==null&&O<S.length;O++){x.index>O?(A=x,x=null):A=x.sibling;var L=f(v,x,S[O],C);if(L===null){x===null&&(x=A);break}e&&x&&L.alternate===null&&t(v,x),w=o(L,w,O),T===null?E=L:T.sibling=L,T=L,x=A}if(O===S.length)return n(v,x),ni&&ig(v,O),E;if(x===null){for(;O<S.length;O++)x=d(v,S[O],C),x!==null&&(w=o(x,w,O),T===null?E=x:T.sibling=x,T=x);return ni&&ig(v,O),E}for(x=r(v,x);O<S.length;O++)A=p(x,v,O,S[O],C),A!==null&&(e&&A.alternate!==null&&x.delete(A.key===null?O:A.key),w=o(A,w,O),T===null?E=A:T.sibling=A,T=A);return e&&x.forEach(function(U){return t(v,U)}),ni&&ig(v,O),E}function m(v,w,S,C){var E=Ew(S);if(typeof E!="function")throw Error(tt(150));if(S=E.call(S),S==null)throw Error(tt(151));for(var T=E=null,x=w,O=w=0,A=null,L=S.next();x!==null&&!L.done;O++,L=S.next()){x.index>O?(A=x,x=null):A=x.sibling;var U=f(v,x,L.value,C);if(U===null){x===null&&(x=A);break}e&&x&&U.alternate===null&&t(v,x),w=o(U,w,O),T===null?E=U:T.sibling=U,T=U,x=A}if(L.done)return n(v,x),ni&&ig(v,O),E;if(x===null){for(;!L.done;O++,L=S.next())L=d(v,L.value,C),L!==null&&(w=o(L,w,O),T===null?E=L:T.sibling=L,T=L);return ni&&ig(v,O),E}for(x=r(v,x);!L.done;O++,L=S.next())L=p(x,v,O,L.value,C),L!==null&&(e&&L.alternate!==null&&x.delete(L.key===null?O:L.key),w=o(L,w,O),T===null?E=L:T.sibling=L,T=L);return e&&x.forEach(function(I){return t(v,I)}),ni&&ig(v,O),E}function y(v,w,S,C){if(typeof S=="object"&&S!==null&&S.type===V0&&S.key===null&&(S=S.props.children),typeof S=="object"&&S!==null){switch(S.$$typeof){case eT:e:{for(var E=S.key,T=w;T!==null;){if(T.key===E){if(E=S.type,E===V0){if(T.tag===7){n(v,T.sibling),w=i(T,S.props.children),w.return=v,v=w;break e}}else if(T.elementType===E||typeof E=="object"&&E!==null&&E.$$typeof===Xh&&UY(E)===T.type){n(v,T.sibling),w=i(T,S.props),w.ref=Iw(v,T,S),w.return=v,v=w;break e}n(v,T);break}else t(v,T);T=T.sibling}S.type===V0?(w=Og(S.props.children,v.mode,C,S.key),w.return=v,v=w):(C=lx(S.type,S.key,S.props,null,v.mode,C),C.ref=Iw(v,w,S),C.return=v,v=C)}return s(v);case z0:e:{for(T=S.key;w!==null;
vendor: 8,417 bytes, line 38
38){if(w.key===T)if(w.tag===4&&w.stateNode.containerInfo===S.containerInfo&&w.stateNode.implementation===S.implementation){n(v,w.sibling),w=i(w,S.children||[]),w.return=v,v=w;break e}else{n(v,w);break}else t(v,w);w=w.sibling}w=aM(S,v.mode,C),w.return=v,v=w}return s(v);case Xh:return T=S._init,y(v,w,T(S._payload),C)}if(vS(S))return g(v,w,S,C);if(Ew(S))return m(v,w,S,C);dT(v,S)}return typeof S=="string"&&S!==""||typeof S=="number"?(S=""+S,w!==null&&w.tag===6?(n(v,w.sibling),w=i(w,S),w.return=v,v=w):(n(v,w),w=sM(S,v.mode,C),w.return=v,v=w),s(v)):n(v,w)}return y}var t1=Xue(!0),Jue=Xue(!1),NA=km(null),MA=null,J0=null,mB=null;function gB(){mB=J0=MA=null}function vB(e){var t=NA.current;Hr(NA),e._currentValue=t}function iF(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function _y(e,t){MA=e,mB=J0=null,e=e.dependencies,e!==null&&e.firstContext!==null&&((e.lanes&t)!==0&&(wa=!0),e.firstContext=null)}function Gc(e){var t=e._currentValue;if(mB!==e)if(e={context:e,memoizedValue:t,next:null},J0===null){if(MA===null)throw Error(tt(308));J0=e,MA.dependencies={lanes:0,firstContext:e}}else J0=J0.next=e;return t}var mg=null;function yB(e){mg===null?mg=[e]:mg.push(e)}function Zue(e,t,n,r){var i=t.interleaved;return i===null?(n.next=n,yB(t)):(n.next=i.next,i.next=n),t.interleaved=n,Qf(e,r)}function Qf(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var Jh=!1;function bB(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function ede(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function jf(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Np(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,(Nn&2)!==0){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,Qf(e,n)}return i=r.interleaved,i===null?(t.next=t,yB(r)):(t.next=i.next,i.next=t),r.interleaved=t,Qf(e,n)}function rx(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,iB(e,n)}}function BY(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,o=null;if(n=n.firstBaseUpdate,n!==null){do{var s={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};o===null?i=o=s:o=o.next=s,n=n.next}while(n!==null);o===null?i=o=t:o=o.next=t}else i=o=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:o,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function DA(e,t,n,r){var i=e.updateQueue;Jh=!1;var o=i.firstBaseUpdate,s=i.lastBaseUpdate,a=i.shared.pending;if(a!==null){i.shared.pending=null;var c=a,l=c.next;c.next=null,s===null?o=l:s.next=l,s=c;var u=e.alternate;u!==null&&(u=u.updateQueue,a=u.lastBaseUpdate,a!==s&&(a===null?u.firstBaseUpdate=l:a.next=l,u.lastBaseUpdate=c))}if(o!==null){var d=i.baseState;s=0,u=l=c=null,a=o;do{var f=a.lane,p=a.eventTime;if((r&f)===f){u!==null&&(u=u.next={eventTime:p,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:{var g=e,m=a;switch(f=t,p=n,m.tag){case 1:if(g=m.payload,typeof g=="function"){d=g.call(p,d,f);break e}d=g;break e;case 3:g.flags=g.flags&-65537|128;case 0:if(g=m.payload,f=typeof g=="function"?g.call(p,d,f):g,f==null)break e;d=gi({},d,f);break e;case 2:Jh=!0}}a.callback!==null&&a.lane!==0&&(e.flags|=64,f=i.effects,f===null?i.effects=[a]:f.push(a))}else p={eventTime:p,lane:f,tag:a.tag,payload:a.payload,callback:a.callback,next:null},u===null?(l=u=p,c=d):u=u.next=p,s|=f;if(a=a.next,a===null){if(a=i.shared.pending,a===null)break;f=a,a=f.next,f.next=null,i.lastBaseUpdate=f,i.shared.pending=null}}while(!0);if(u===null&&(c=d),i.baseState=c,i.firstBaseUpdate=l,i.lastBaseUpdate=u,t=i.shared.interleaved,t!==null){i=t;do s|=i.lane,i=i.next;while(i!==t)}else o===null&&(i.shared.lanes=0);tv|=s,e.lanes=s,e.memoizedState=d}}function $Y(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var r=e[t],i=r.callback;if(i!==null){if(r.callback=null,r=n,typeof i!="function")throw Error(tt(191,i));i.call(r)}}}var tE={},od=km(tE),j_=km(tE),U_=km(tE);function gg(e){if(e===tE)throw Error(tt(174));return e}function wB(e,t){switch(Tr(U_,t),Tr(j_,e),Tr(od,tE),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:j8(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=j8(t,e)}Hr(od),Tr(od,t)}function n1(){Hr(od),Hr(j_),Hr(U_)}function tde(e){gg(U_.current);var t=gg(od.current),n=j8(t,e.type);t!==n&&(Tr(j_,e),Tr(od,n))}function SB(e){j_.current===e&&(Hr(od),Hr(j_))}var di=km(0);function LA(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if((t.flags&128)!==0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var eM=[];function _B(){for(var e=0;e<eM.length;e++)eM[e]._workInProgressVersionPrimary=null;eM.length=0}var ix=gh.ReactCurrentDispatcher,tM=gh.ReactCurrentBatchConfig,ev=0,pi=null,mo=null,Mo=null,FA=!1,FS=!1,B_=0,bNe=0;function fs(){throw Error(tt(321))}function CB(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Zl(e[n],t[n]))return!1;return!0}function EB(e,t,n,r,i,o){if(ev=o,pi=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,ix.current=e===null||e.memoizedState===null?CNe:ENe,e=n(r,i),FS){o=0;do{if(FS=!1,B_=0,25<=o)throw Error(tt(301));o+=1,Mo=mo=null,t.updateQueue=null,ix.current=TNe,e=n(r,i)}while(FS)}if(ix.current=jA,t=mo!==null&&mo.next!==null,ev=0,Mo=mo=pi=null,FA=!1,t)throw Error(tt(300));return e}function TB(){var e=B_!==0;return B_=0,e}function Pu(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Mo===null?pi.memoizedState=Mo=e:Mo=Mo.next=e,Mo}function Kc(){if(mo===null){var e=pi.alternate;e=e!==null?e.memoizedState:null}else e=mo.next;var t=Mo===null?pi.memoizedState:Mo.next;if(t!==null)Mo=t,mo=e;else{if(e===null)throw Error(tt(310));mo=e,e={memoizedState:mo.memoizedState,baseState:mo.baseState,baseQueue:mo.baseQueue,queue:mo.queue,next:null},Mo===null?pi.memoizedState=Mo=e:Mo=Mo.next=e}return Mo}function $_(e,t){return typeof t=="function"?t(e):t}function nM(e){var t=Kc(),n=t.queue;if(n===null)throw Error(tt(311));n.lastRenderedReducer=e;var r=mo,i=r.baseQueue,o=n.pending;if(o!==null){if(i!==null){var s=i.next;i.next=o.next,o.next=s}r.baseQueue=i=o,n.pending=null}if(i!==null){o=i.next,r=r.baseState;var a=s=null,c=null,l=o;do{var u=l.lane;if((ev&u)===u)c!==null&&(c=c.next={lane:0,action:l.action,hasEagerState:l.hasEagerState,eagerState:l.eagerState,next:null}),r=l.hasEagerState?l.eagerState:e(r,l.action);else{var d={lane:u,action:l.action,hasEagerState:l.hasEagerState,eagerState:l.eagerState,next:null};c===null?(a=c=d,s=r):c=c.next=d,pi.lanes|=u,tv|=u}l=l.next}while(l!==null&&l!==o);c===null?s=r:c.next=a,Zl(r,t.memoizedState)||(wa=!0),t.memoizedState=r,t.baseState=s,t.baseQueue=c,n.lastRenderedState=r}if(e=n.interleaved,e!==null){i=e;do o=i.lane,pi.lanes|=o,tv|=o,i=i.next;while(i!==e)}else i===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function rM(e){var t=Kc(),n=t.queue;if(n===null)throw Error(tt(311));n.lastRenderedReducer=e;var r=n.dispatch,i=n.pending,o=t.memoizedState;if(i!==null){n.pending=null;var s=i=i.next;do o=e(o,s.action),s=s.next;while(s!==i);Zl(o,t.memoizedState)||(wa=!0),t.memoizedState=o,t.baseQueue===null&&(t.baseState=o),n.lastRenderedState=o}return[o,r]}function nde(){}function rde(e,t){var n=pi,r=Kc(),i=t(),o=!Zl(r.memoizedState,i);if(o&&(r.memoizedState=i,wa=!0),r=r.queue,kB(sde.bind(null,n,r,e),[e]),r.getSnapshot!==t||o||Mo!==null&&Mo.memoizedState.tag&1){if(n.flags|=2048,H_(9,ode.bind(null,n,r,i,t),void 0,null),$o===null)throw Error(tt(349));
vendor: 4,286 bytes, line 38
38(ev&30)!==0||ide(n,t,i)}return i}function ide(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=pi.updateQueue,t===null?(t={lastEffect:null,stores:null},pi.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function ode(e,t,n,r){t.value=n,t.getSnapshot=r,ade(t)&&cde(e)}function sde(e,t,n){return n(function(){ade(t)&&cde(e)})}function ade(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Zl(e,n)}catch{return!0}}function cde(e){var t=Qf(e,1);t!==null&&Yl(t,e,1,-1)}function HY(e){var t=Pu();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:$_,lastRenderedState:e},t.queue=e,e=e.dispatch=_Ne.bind(null,pi,e),[t.memoizedState,e]}function H_(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=pi.updateQueue,t===null?(t={lastEffect:null,stores:null},pi.updateQueue=t,t.lastEffect=e.next=e):(n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e)),e}function lde(){return Kc().memoizedState}function ox(e,t,n,r){var i=Pu();pi.flags|=e,i.memoizedState=H_(1|t,n,void 0,r===void 0?null:r)}function H3(e,t,n,r){var i=Kc();r=r===void 0?null:r;var o=void 0;if(mo!==null){var s=mo.memoizedState;if(o=s.destroy,r!==null&&CB(r,s.deps)){i.memoizedState=H_(t,n,o,r);return}}pi.flags|=e,i.memoizedState=H_(1|t,n,o,r)}function zY(e,t){return ox(8390656,8,e,t)}function kB(e,t){return H3(2048,8,e,t)}function ude(e,t){return H3(4,2,e,t)}function dde(e,t){return H3(4,4,e,t)}function fde(e,t){if(typeof t=="function")return e=e(),t(e),function(){t(null)};if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function hde(e,t,n){return n=n!=null?n.concat([e]):null,H3(4,4,fde.bind(null,t,e),n)}function xB(){}function pde(e,t){var n=Kc();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&CB(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function mde(e,t){var n=Kc();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&CB(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function gde(e,t,n){return(ev&21)===0?(e.baseState&&(e.baseState=!1,wa=!0),e.memoizedState=n):(Zl(n,t)||(n=Sue(),pi.lanes|=n,tv|=n,e.baseState=!0),t)}function wNe(e,t){var n=rr;rr=n!==0&&4>n?n:4,e(!0);var r=tM.transition;tM.transition={};try{e(!1),t()}finally{rr=n,tM.transition=r}}function vde(){return Kc().memoizedState}function SNe(e,t,n){var r=Dp(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},yde(e))bde(t,n);else if(n=Zue(e,t,n,r),n!==null){var i=Ys();Yl(n,e,r,i),wde(n,t,r)}}function _Ne(e,t,n){var r=Dp(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(yde(e))bde(t,i);else{var o=e.alternate;if(e.lanes===0&&(o===null||o.lanes===0)&&(o=t.lastRenderedReducer,o!==null))try{var s=t.lastRenderedState,a=o(s,n);if(i.hasEagerState=!0,i.eagerState=a,Zl(a,s)){var c=t.interleaved;c===null?(i.next=i,yB(t)):(i.next=c.next,c.next=i),t.interleaved=i;return}}catch{}finally{}n=Zue(e,t,i,r),n!==null&&(i=Ys(),Yl(n,e,r,i),wde(n,t,r))}}function yde(e){var t=e.alternate;return e===pi||t!==null&&t===pi}function bde(e,t){FS=FA=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function wde(e,t,n){if((n&4194240)!==0){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,iB(e,n)}}var jA={readContext:Gc,useCallback:fs,useContext:fs,useEffect:fs,useImperativeHandle:fs,useInsertionEffect:fs,useLayoutEffect:fs,useMemo:fs,useReducer:fs,useRef:fs,useState:fs,useDebugValue:fs,useDeferredValue:fs,useTransition:fs,useMutableSource:fs,useSyncExternalStore:fs,useId:fs,unstable_isNewReconciler:!1},CNe={readContext:Gc,useCallback:function(e,t){return Pu().memoizedState=[e,t===void 0?null:t],e},useContext:Gc,useEffect:zY,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,ox(4194308,4,fde.bind(null,t,e),n)},useLayoutEffect:function(e,t){return ox(4194308,4,e,t)},useInsertionEffect:function(e,t){return ox(4,2,e,t)},useMemo:function(e,t){var n=Pu();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Pu();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=SNe.bind(null,pi,e),[r.memoizedState,e]}
vendor: 5,818 bytes, lines 38-40
38,useRef:function(e){var t=Pu();return e={current:e},t.memoizedState=e},useState:HY,useDebugValue:xB,useDeferredValue:function(e){return Pu().memoizedState=e},useTransition:function(){var e=HY(!1),t=e[0];return e=wNe.bind(null,e[1]),Pu().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=pi,i=Pu();if(ni){if(n===void 0)throw Error(tt(407));n=n()}else{if(n=t(),$o===null)throw Error(tt(349));(ev&30)!==0||ide(r,t,n)}i.memoizedState=n;var o={value:n,getSnapshot:t};return i.queue=o,zY(sde.bind(null,r,o,e),[e]),r.flags|=2048,H_(9,ode.bind(null,r,o,n,t),void 0,null),n},useId:function(){var e=Pu(),t=$o.identifierPrefix;if(ni){var n=xf,r=kf;n=(r&~(1<<32-Kl(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=B_++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=bNe++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},ENe={readContext:Gc,useCallback:pde,useContext:Gc,useEffect:kB,useImperativeHandle:hde,useInsertionEffect:ude,useLayoutEffect:dde,useMemo:mde,useReducer:nM,useRef:lde,useState:function(){return nM($_)},useDebugValue:xB,useDeferredValue:function(e){var t=Kc();return gde(t,mo.memoizedState,e)},useTransition:function(){var e=nM($_)[0],t=Kc().memoizedState;return[e,t]},useMutableSource:nde,useSyncExternalStore:rde,useId:vde,unstable_isNewReconciler:!1},TNe={readContext:Gc,useCallback:pde,useContext:Gc,useEffect:kB,useImperativeHandle:hde,useInsertionEffect:ude,useLayoutEffect:dde,useMemo:mde,useReducer:rM,useRef:lde,useState:function(){return rM($_)},useDebugValue:xB,useDeferredValue:function(e){var t=Kc();return mo===null?t.memoizedState=e:gde(t,mo.memoizedState,e)},useTransition:function(){var e=rM($_)[0],t=Kc().memoizedState;return[e,t]},useMutableSource:nde,useSyncExternalStore:rde,useId:vde,unstable_isNewReconciler:!1};function Al(e,t){if(e&&e.defaultProps){t=gi({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}function oF(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:gi({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var z3={isMounted:function(e){return(e=e._reactInternals)?Dv(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=Ys(),i=Dp(e),o=jf(r,i);o.payload=t,n!=null&&(o.callback=n),t=Np(e,o,i),t!==null&&(Yl(t,e,i,r),rx(t,e,i))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=Ys(),i=Dp(e),o=jf(r,i);o.tag=1,o.payload=t,n!=null&&(o.callback=n),t=Np(e,o,i),t!==null&&(Yl(t,e,i,r),rx(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Ys(),r=Dp(e),i=jf(n,r);i.tag=2,t!=null&&(i.callback=t),t=Np(e,i,r),t!==null&&(Yl(t,e,r,n),rx(t,e,r))}};function VY(e,t,n,r,i,o,s){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,o,s):t.prototype&&t.prototype.isPureReactComponent?!M_(n,r)||!M_(i,o):!0}function Sde(e,t,n){var r=!1,i=nm,o=t.contextType;return typeof o=="object"&&o!==null?o=Gc(o):(i=Ea(t)?Jg:Cs.current,r=t.contextTypes,o=(r=r!=null)?Zy(e,i):nm),t=new t(n,o),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=z3,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=o),t}function WY(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&z3.enqueueReplaceState(t,t.state,null)}function sF(e,t,n,r){var i=e.stateNode;i.props=n,i.state=e.memoizedState,i.refs={},bB(e);var o=t.contextType;typeof o=="object"&&o!==null?i.context=Gc(o):(o=Ea(t)?Jg:Cs.current,i.context=Zy(e,o)),i.state=e.memoizedState,o=t.getDerivedStateFromProps,typeof o=="function"&&(oF(e,t,o,n),i.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof i.getSnapshotBeforeUpdate=="function"||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(t=i.state,typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount(),t!==i.state&&z3.enqueueReplaceState(i,i.state,null),DA(e,n,i,r),i.state=e.memoizedState),typeof i.componentDidMount=="function"&&(e.flags|=4194308)}function r1(e,t){try{var n="",r=t;do n+=ZPe(r),r=r.return;while(r);var i=n}catch(o){i=`
39Error generating stack: `+o.message+`
40`+o.stack}return{value:e,source:t,stack:i,digest:null}}function iM(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function aF(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var kNe=typeof WeakMap=="function"?WeakMap:Map;function _de(e,t,n){n=jf(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){BA||(BA=!0,vF=r),aF(e,t)},n}function Cde(e,t,n){n=jf(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var i=t.value;n.payload=function(){return r(i)},n.callback=function(){aF(e,t)}}var o=e.stateNode;return o!==null&&typeof o.componentDidCatch=="function"&&(n.callback=function(){aF(e,t),typeof r!="function"&&(Mp===null?Mp=new Set([this]):Mp.add(this));var s=t.stack;this.componentDidCatch(t.value,{componentStack:s!==null?s:""})}),n}function qY(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new kNe;var i=new Set;r.set(t,i)}else i=r.get(t),i===void 0&&(i=new Set,r.set(t,i));i.has(n)||(i.add(n),e=BNe.bind(null,e,t,n),t.then(e,e))}function GY(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function KY(e,t,n,r,i){return(e.mode&1)===0?(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=jf(-1,1),t.tag=2,Np(n,t,1))),n.lanes|=1),e):(e.flags|=65536,e.lanes=i,e)}
vendor: 7,001 bytes, line 40
40var xNe=gh.ReactCurrentOwner,wa=!1;function Ls(e,t,n,r){t.child=e===null?Jue(t,null,n,r):t1(t,e.child,n,r)}function YY(e,t,n,r,i){n=n.render;var o=t.ref;return _y(t,i),r=EB(e,t,n,r,o,i),n=TB(),e!==null&&!wa?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Xf(e,t,i)):(ni&&n&&fB(t),t.flags|=1,Ls(e,t,r,i),t.child)}function QY(e,t,n,r,i){if(e===null){var o=n.type;return typeof o=="function"&&!DB(o)&&o.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=o,Ede(e,t,o,r,i)):(e=lx(n.type,null,r,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(o=e.child,(e.lanes&i)===0){var s=o.memoizedProps;if(n=n.compare,n=n!==null?n:M_,n(s,r)&&e.ref===t.ref)return Xf(e,t,i)}return t.flags|=1,e=Lp(o,r),e.ref=t.ref,e.return=t,t.child=e}function Ede(e,t,n,r,i){if(e!==null){var o=e.memoizedProps;if(M_(o,r)&&e.ref===t.ref)if(wa=!1,t.pendingProps=r=o,(e.lanes&i)!==0)(e.flags&131072)!==0&&(wa=!0);else return t.lanes=e.lanes,Xf(e,t,i)}return cF(e,t,n,r,i)}function Tde(e,t,n){var r=t.pendingProps,i=r.children,o=e!==null?e.memoizedState:null;if(r.mode==="hidden")if((t.mode&1)===0)t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Tr(ey,Ka),Ka|=n;else{if((n&1073741824)===0)return e=o!==null?o.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Tr(ey,Ka),Ka|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=o!==null?o.baseLanes:n,Tr(ey,Ka),Ka|=r}else o!==null?(r=o.baseLanes|n,t.memoizedState=null):r=n,Tr(ey,Ka),Ka|=r;return Ls(e,t,i,n),t.child}function kde(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function cF(e,t,n,r,i){var o=Ea(n)?Jg:Cs.current;return o=Zy(t,o),_y(t,i),n=EB(e,t,n,r,o,i),r=TB(),e!==null&&!wa?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Xf(e,t,i)):(ni&&r&&fB(t),t.flags|=1,Ls(e,t,n,i),t.child)}function XY(e,t,n,r,i){if(Ea(n)){var o=!0;RA(t)}else o=!1;if(_y(t,i),t.stateNode===null)sx(e,t),Sde(t,n,r),sF(t,n,r,i),r=!0;else if(e===null){var s=t.stateNode,a=t.memoizedProps;s.props=a;var c=s.context,l=n.contextType;typeof l=="object"&&l!==null?l=Gc(l):(l=Ea(n)?Jg:Cs.current,l=Zy(t,l));var u=n.getDerivedStateFromProps,d=typeof u=="function"||typeof s.getSnapshotBeforeUpdate=="function";d||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(a!==r||c!==l)&&WY(t,s,r,l),Jh=!1;var f=t.memoizedState;s.state=f,DA(t,r,s,i),c=t.memoizedState,a!==r||f!==c||Ca.current||Jh?(typeof u=="function"&&(oF(t,n,u,r),c=t.memoizedState),(a=Jh||VY(t,n,a,r,f,c,l))?(d||typeof s.UNSAFE_componentWillMount!="function"&&typeof s.componentWillMount!="function"||(typeof s.componentWillMount=="function"&&s.componentWillMount(),typeof s.UNSAFE_componentWillMount=="function"&&s.UNSAFE_componentWillMount()),typeof s.componentDidMount=="function"&&(t.flags|=4194308)):(typeof s.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=c),s.props=r,s.state=c,s.context=l,r=a):(typeof s.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{s=t.stateNode,ede(e,t),a=t.memoizedProps,l=t.type===t.elementType?a:Al(t.type,a),s.props=l,d=t.pendingProps,f=s.context,c=n.contextType,typeof c=="object"&&c!==null?c=Gc(c):(c=Ea(n)?Jg:Cs.current,c=Zy(t,c));var p=n.getDerivedStateFromProps;(u=typeof p=="function"||typeof s.getSnapshotBeforeUpdate=="function")||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(a!==d||f!==c)&&WY(t,s,r,c),Jh=!1,f=t.memoizedState,s.state=f,DA(t,r,s,i);var g=t.memoizedState;a!==d||f!==g||Ca.current||Jh?(typeof p=="function"&&(oF(t,n,p,r),g=t.memoizedState),(l=Jh||VY(t,n,l,r,f,g,c)||!1)?(u||typeof s.UNSAFE_componentWillUpdate!="function"&&typeof s.componentWillUpdate!="function"||(typeof s.componentWillUpdate=="function"&&s.componentWillUpdate(r,g,c),typeof s.UNSAFE_componentWillUpdate=="function"&&s.UNSAFE_componentWillUpdate(r,g,c)),typeof s.componentDidUpdate=="function"&&(t.flags|=4),typeof s.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof s.componentDidUpdate!="function"||a===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=g),s.props=r,s.state=g,s.context=c,r=l):(typeof s.componentDidUpdate!="function"||a===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),r=!1)}return lF(e,t,n,r,o,i)}function lF(e,t,n,r,i,o){kde(e,t);var s=(t.flags&128)!==0;if(!r&&!s)return i&&LY(t,n,!1),Xf(e,t,o);r=t.stateNode,xNe.current=t;var a=s&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&s?(t.child=t1(t,e.child,null,o),t.child=t1(t,null,a,o)):Ls(e,t,a,o),t.memoizedState=r.state,i&&LY(t,n,!0),t.child}function xde(e){var t=e.stateNode;t.pendingContext?DY(e,t.pendingContext,t.pendingContext!==t.context):t.context&&DY(e,t.context,!1),wB(e,t.containerInfo)}function JY(e,t,n,r,i){return e1(),pB(i),t.flags|=256,Ls(e,t,n,r),t.child}var uF={dehydrated:null,treeContext:null,retryLane:0};function dF(e){return{baseLanes:e,cachePool:null,transitions:null}}function Ade(e,t,n){var r=t.pendingProps,i=di.current,o=!1,s=(t.flags&128)!==0,a;if((a=s)||(a=e!==null&&e.memoizedState===null?!1:(i&2)!==0),a?(o=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(i|=1),Tr(di,i&1),e===null)return rF(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?((t.mode&1)===0?t.lanes=1:e.data==="$!"?t.lanes=8:t.lanes=1073741824,null):(s=r.children,e=r.fallback,o?(r=t.mode,o=t.child,s={mode:"hidden",children:s},(r&1)===0&&o!==null?(o.childLanes=0,o.pendingProps=s):o=q3(s,r,0,null),e=Og(e,r,n,null),o.return=t,e.return=t,o.sibling=e,t.child=o,t.child.memoizedState=dF(n),t.memoizedState=uF,e):AB(t,s));if(i=e.memoizedState,i!==null&&(a=i.dehydrated,a!==null))return ANe(e,t,s,r,a,i,n);if(o){o=r.fallback,s=t.mode,i=e.child,a=i.sibling;var c={mode:"hidden",children:r.children};return(s&1)===0&&t.child!==i?(r=t.child,r.childLanes=0,r.pendingProps=c,t.deletions=null):(r=Lp(i,c),r.subtreeFlags=i.subtreeFlags&14680064),a!==null?o=Lp(a,o):(o=Og(o,s,n,null),o.flags|=2),o.return=t,r.return=t,r.sibling=o,t.child=r,r=o,o=t.child,s=e.child.memoizedState,s=s===null?dF(n):{baseLanes:s.baseLanes|n,cachePool:null,transitions:s.transitions},o.memoizedState=s,o.childLanes=e.childLanes&~n,t.memoizedState=uF,r}return o=e.child,e=o.sibling,r=Lp(o,{mode:"visible",children:r.children}),(t.mode&1)===0&&(r.lanes=n),r.return=t,r.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=r,t.memoizedState=null,r}function AB(e,t){return t=q3({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function fT(e,t,n,r){return r!==null&&pB(r),t1(t,e.child,null,n),e=AB(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}
vendor: 10,204 bytes, line 40
40function ANe(e,t,n,r,i,o,s){if(n)return t.flags&256?(t.flags&=-257,r=iM(Error(tt(422))),fT(e,t,s,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(o=r.fallback,i=t.mode,r=q3({mode:"visible",children:r.children},i,0,null),o=Og(o,i,s,null),o.flags|=2,r.return=t,o.return=t,r.sibling=o,t.child=r,(t.mode&1)!==0&&t1(t,e.child,null,s),t.child.memoizedState=dF(s),t.memoizedState=uF,o);if((t.mode&1)===0)return fT(e,t,s,null);if(i.data==="$!"){if(r=i.nextSibling&&i.nextSibling.dataset,r)var a=r.dgst;return r=a,o=Error(tt(419)),r=iM(o,r,void 0),fT(e,t,s,r)}if(a=(s&e.childLanes)!==0,wa||a){if(r=$o,r!==null){switch(s&-s){case 4:i=2;break;case 16:i=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:i=32;break;case 536870912:i=268435456;break;default:i=0}i=(i&(r.suspendedLanes|s))!==0?0:i,i!==0&&i!==o.retryLane&&(o.retryLane=i,Qf(e,i),Yl(r,e,i,-1))}return MB(),r=iM(Error(tt(421))),fT(e,t,s,r)}return i.data==="$?"?(t.flags|=128,t.child=e.child,t=$Ne.bind(null,e),i._reactRetry=t,null):(e=o.treeContext,rc=Op(i.nextSibling),cc=t,ni=!0,Nl=null,e!==null&&(Rc[Pc++]=kf,Rc[Pc++]=xf,Rc[Pc++]=Zg,kf=e.id,xf=e.overflow,Zg=t),t=AB(t,r.children),t.flags|=4096,t)}function ZY(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),iF(e.return,t,n)}function oM(e,t,n,r,i){var o=e.memoizedState;o===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=n,o.tailMode=i)}function Ide(e,t,n){var r=t.pendingProps,i=r.revealOrder,o=r.tail;if(Ls(e,t,r.children,n),r=di.current,(r&2)!==0)r=r&1|2,t.flags|=128;else{if(e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&ZY(e,n,t);else if(e.tag===19)ZY(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(Tr(di,r),(t.mode&1)===0)t.memoizedState=null;else switch(i){case"forwards":for(n=t.child,i=null;n!==null;)e=n.alternate,e!==null&&LA(e)===null&&(i=n),n=n.sibling;n=i,n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),oM(t,!1,i,n,o);break;case"backwards":for(n=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&LA(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}oM(t,!0,n,null,o);break;case"together":oM(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function sx(e,t){(t.mode&1)===0&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Xf(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),tv|=t.lanes,(n&t.childLanes)===0)return null;if(e!==null&&t.child!==e.child)throw Error(tt(153));if(t.child!==null){for(e=t.child,n=Lp(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=Lp(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function INe(e,t,n){switch(t.tag){case 3:xde(t),e1();break;case 5:tde(t);break;case 1:Ea(t.type)&&RA(t);break;case 4:wB(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,i=t.memoizedProps.value;Tr(NA,r._currentValue),r._currentValue=i;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(Tr(di,di.current&1),t.flags|=128,null):(n&t.child.childLanes)!==0?Ade(e,t,n):(Tr(di,di.current&1),e=Xf(e,t,n),e!==null?e.sibling:null);Tr(di,di.current&1);break;case 19:if(r=(n&t.childLanes)!==0,(e.flags&128)!==0){if(r)return Ide(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),Tr(di,di.current),r)break;return null;case 22:case 23:return t.lanes=0,Tde(e,t,n)}return Xf(e,t,n)}var Rde,fF,Pde,Ode;Rde=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}};fF=function(){};Pde=function(e,t,n,r){var i=e.memoizedProps;if(i!==r){e=t.stateNode,gg(od.current);var o=null;switch(n){case"input":i=M8(e,i),r=M8(e,r),o=[];break;case"select":i=gi({},i,{value:void 0}),r=gi({},r,{value:void 0}),o=[];break;case"textarea":i=F8(e,i),r=F8(e,r),o=[];break;default:typeof i.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=AA)}U8(n,r);var s;n=null;for(l in i)if(!r.hasOwnProperty(l)&&i.hasOwnProperty(l)&&i[l]!=null)if(l==="style"){var a=i[l];for(s in a)a.hasOwnProperty(s)&&(n||(n={}),n[s]="")}else l!=="dangerouslySetInnerHTML"&&l!=="children"&&l!=="suppressContentEditableWarning"&&l!=="suppressHydrationWarning"&&l!=="autoFocus"&&(x_.hasOwnProperty(l)?o||(o=[]):(o=o||[]).push(l,null));for(l in r){var c=r[l];if(a=i!=null?i[l]:void 0,r.hasOwnProperty(l)&&c!==a&&(c!=null||a!=null))if(l==="style")if(a){for(s in a)!a.hasOwnProperty(s)||c&&c.hasOwnProperty(s)||(n||(n={}),n[s]="");for(s in c)c.hasOwnProperty(s)&&a[s]!==c[s]&&(n||(n={}),n[s]=c[s])}else n||(o||(o=[]),o.push(l,n)),n=c;else l==="dangerouslySetInnerHTML"?(c=c?c.__html:void 0,a=a?a.__html:void 0,c!=null&&a!==c&&(o=o||[]).push(l,c)):l==="children"?typeof c!="string"&&typeof c!="number"||(o=o||[]).push(l,""+c):l!=="suppressContentEditableWarning"&&l!=="suppressHydrationWarning"&&(x_.hasOwnProperty(l)?(c!=null&&l==="onScroll"&&Dr("scroll",e),o||a===c||(o=[])):(o=o||[]).push(l,c))}n&&(o=o||[]).push("style",n);var l=o;(t.updateQueue=l)&&(t.flags|=4)}};Ode=function(e,t,n,r){n!==r&&(t.flags|=4)};function Rw(e,t){if(!ni)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function hs(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags&14680064,r|=i.flags&14680064,i.return=e,i=i.sibling;else for(i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function RNe(e,t,n){var r=t.pendingProps;switch(hB(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return hs(t),null;case 1:return Ea(t.type)&&IA(),hs(t),null;case 3:return r=t.stateNode,n1(),Hr(Ca),Hr(Cs),_B(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(uT(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,Nl!==null&&(wF(Nl),Nl=null))),fF(e,t),hs(t),null;case 5:SB(t);var i=gg(U_.current);if(n=t.type,e!==null&&t.stateNode!=null)Pde(e,t,n,r,i),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(tt(166));return hs(t),null}if(e=gg(od.current),uT(t)){r=t.stateNode,n=t.type;var o=t.memoizedProps;switch(r[Vu]=t,r[F_]=o,e=(t.mode&1)!==0,n){case"dialog":Dr("cancel",r),Dr("close",r);break;case"iframe":case"object":case"embed":Dr("load",r);break;case"video":case"audio":for(i=0;i<bS.length;i++)Dr(bS[i],r);break;case"source":Dr("error",r);break;case"img":case"image":case"link":Dr("error",r),Dr("load",r);break;case"details":Dr("toggle",r);break;case"input":cY(r,o),Dr("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!o.multiple},Dr("invalid",r);break;case"textarea":uY(r,o),Dr("invalid",r)}U8(n,o),i=null;for(var s in o)if(o.hasOwnProperty(s)){var a=o[s];s==="children"?typeof a=="string"?r.textContent!==a&&(o.suppressHydrationWarning!==!0&&lT(r.textContent,a,e),i=["children",a]):typeof a=="number"&&r.textContent!==""+a&&(o.suppressHydrationWarning!==!0&&lT(r.textContent,a,e),i=["children",""+a]):x_.hasOwnProperty(s)&&a!=null&&s==="onScroll"&&Dr("scroll",r)}switch(n){case"input":tT(r),lY(r,o,!0);break;case"textarea":tT(r),dY(r);break;case"select":case"option":break;default:typeof o.onClick=="function"&&(r.onclick=AA)}r=i,t.updateQueue=r,r!==null&&(t.flags|=4)}else{s=i.nodeType===9?i:i.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=sue(n)),e==="http://www.w3.org/1999/xhtml"?n==="script"?(e=s.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=s.createElement(n,{is:r.is}):(e=s.createElement(n),n==="select"&&(s=e,r.multiple?s.multiple=!0:r.size&&(s.size=r.size))):e=s.createElementNS(e,n),e[Vu]=t,e[F_]=r,Rde(e,t,!1,!1),t.stateNode=e;e:{switch(s=B8(n,r),n){case"dialog":Dr("cancel",e),Dr("close",e),i=r;break;case"iframe":case"object":case"embed":Dr("load",e),i=r;break;case"video":case"audio":for(i=0;i<bS.length;i++)Dr(bS[i],e);i=r;break;case"source":Dr("error",e),i=r;break;case"img":case"image":case"link":Dr("error",e),Dr("load",e),i=r;break;case"details":Dr("toggle",e),i=r;break;case"input":cY(e,r),i=M8(e,r),Dr("invalid",e);break;case"option":i=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},i=gi({},r,{value:void 0}),Dr("invalid",e);break;case"textarea":uY(e,r),i=F8(e,r),Dr("invalid",e);break;default:i=r}U8(n,i),a=i;for(o in a)if(a.hasOwnProperty(o)){var c=a[o];o==="style"?lue(e,c):o==="dangerouslySetInnerHTML"?(c=c?c.__html:void 0,c!=null&&aue(e,c)):o==="children"?typeof c=="string"?(n!=="textarea"||c!=="")&&A_(e,c):typeof c=="number"&&A_(e,""+c):o!=="suppressContentEditableWarning"&&o!=="suppressHydrationWarning"&&o!=="autoFocus"&&(x_.hasOwnProperty(o)?c!=null&&o==="onScroll"&&Dr("scroll",e):c!=null&&JU(e,o,c,s))}switch(n){case"input":tT(e),lY(e,r,!1);break;case"textarea":tT(e),dY(e);break;case"option":r.value!=null&&e.setAttribute("value",""+tm(r.value));break;case"select":e.multiple=!!r.multiple,o=r.value,o!=null?yy(e,!!r.multiple,o,!1):r.defaultValue!=null&&yy(e,!!r.multiple,r.defaultValue,!0);break;default:typeof i.onClick=="function"&&(e.onclick=AA)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}
vendor: 22,177 bytes, line 40
40return hs(t),null;case 6:if(e&&t.stateNode!=null)Ode(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(tt(166));if(n=gg(U_.current),gg(od.current),uT(t)){if(r=t.stateNode,n=t.memoizedProps,r[Vu]=t,(o=r.nodeValue!==n)&&(e=cc,e!==null))switch(e.tag){case 3:lT(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&lT(r.nodeValue,n,(e.mode&1)!==0)}o&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[Vu]=t,t.stateNode=r}return hs(t),null;case 13:if(Hr(di),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(ni&&rc!==null&&(t.mode&1)!==0&&(t.flags&128)===0)Que(),e1(),t.flags|=98560,o=!1;else if(o=uT(t),r!==null&&r.dehydrated!==null){if(e===null){if(!o)throw Error(tt(318));if(o=t.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(tt(317));o[Vu]=t}else e1(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;hs(t),o=!1}else Nl!==null&&(wF(Nl),Nl=null),o=!0;if(!o)return t.flags&65536?t:null}return(t.flags&128)!==0?(t.lanes=n,t):(r=r!==null,r!==(e!==null&&e.memoizedState!==null)&&r&&(t.child.flags|=8192,(t.mode&1)!==0&&(e===null||(di.current&1)!==0?bo===0&&(bo=3):MB())),t.updateQueue!==null&&(t.flags|=4),hs(t),null);case 4:return n1(),fF(e,t),e===null&&D_(t.stateNode.containerInfo),hs(t),null;case 10:return vB(t.type._context),hs(t),null;case 17:return Ea(t.type)&&IA(),hs(t),null;case 19:if(Hr(di),o=t.memoizedState,o===null)return hs(t),null;if(r=(t.flags&128)!==0,s=o.rendering,s===null)if(r)Rw(o,!1);else{if(bo!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(s=LA(e),s!==null){for(t.flags|=128,Rw(o,!1),r=s.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;n!==null;)o=n,e=r,o.flags&=14680066,s=o.alternate,s===null?(o.childLanes=0,o.lanes=e,o.child=null,o.subtreeFlags=0,o.memoizedProps=null,o.memoizedState=null,o.updateQueue=null,o.dependencies=null,o.stateNode=null):(o.childLanes=s.childLanes,o.lanes=s.lanes,o.child=s.child,o.subtreeFlags=0,o.deletions=null,o.memoizedProps=s.memoizedProps,o.memoizedState=s.memoizedState,o.updateQueue=s.updateQueue,o.type=s.type,e=s.dependencies,o.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return Tr(di,di.current&1|2),t.child}e=e.sibling}o.tail!==null&&ji()>i1&&(t.flags|=128,r=!0,Rw(o,!1),t.lanes=4194304)}else{if(!r)if(e=LA(s),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Rw(o,!0),o.tail===null&&o.tailMode==="hidden"&&!s.alternate&&!ni)return hs(t),null}else 2*ji()-o.renderingStartTime>i1&&n!==1073741824&&(t.flags|=128,r=!0,Rw(o,!1),t.lanes=4194304);o.isBackwards?(s.sibling=t.child,t.child=s):(n=o.last,n!==null?n.sibling=s:t.child=s,o.last=s)}return o.tail!==null?(t=o.tail,o.rendering=t,o.tail=t.sibling,o.renderingStartTime=ji(),t.sibling=null,n=di.current,Tr(di,r?n&1|2:n&1),t):(hs(t),null);case 22:case 23:return NB(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&(t.mode&1)!==0?(Ka&1073741824)!==0&&(hs(t),t.subtreeFlags&6&&(t.flags|=8192)):hs(t),null;case 24:return null;case 25:return null}throw Error(tt(156,t.tag))}function PNe(e,t){switch(hB(t),t.tag){case 1:return Ea(t.type)&&IA(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return n1(),Hr(Ca),Hr(Cs),_B(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 5:return SB(t),null;case 13:if(Hr(di),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(tt(340));e1()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Hr(di),null;case 4:return n1(),null;case 10:return vB(t.type._context),null;case 22:case 23:return NB(),null;case 24:return null;default:return null}}var hT=!1,bs=!1,ONe=typeof WeakSet=="function"?WeakSet:Set,pt=null;function Z0(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){Ti(e,t,r)}else n.current=null}function hF(e,t,n){try{n()}catch(r){Ti(e,t,r)}}var eQ=!1;function NNe(e,t){if(Q8=TA,e=Fue(),dB(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var i=r.anchorOffset,o=r.focusNode;r=r.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break e}var s=0,a=-1,c=-1,l=0,u=0,d=e,f=null;t:for(;;){for(var p;d!==n||i!==0&&d.nodeType!==3||(a=s+i),d!==o||r!==0&&d.nodeType!==3||(c=s+r),d.nodeType===3&&(s+=d.nodeValue.length),(p=d.firstChild)!==null;)f=d,d=p;for(;;){if(d===e)break t;if(f===n&&++l===i&&(a=s),f===o&&++u===r&&(c=s),(p=d.nextSibling)!==null)break;d=f,f=d.parentNode}d=p}n=a===-1||c===-1?null:{start:a,end:c}}else n=null}n=n||{start:0,end:0}}else n=null;for(X8={focusedElem:e,selectionRange:n},TA=!1,pt=t;pt!==null;)if(t=pt,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,pt=e;else for(;pt!==null;){t=pt;try{var g=t.alternate;if((t.flags&1024)!==0)switch(t.tag){case 0:case 11:case 15:break;case 1:if(g!==null){var m=g.memoizedProps,y=g.memoizedState,v=t.stateNode,w=v.getSnapshotBeforeUpdate(t.elementType===t.type?m:Al(t.type,m),y);v.__reactInternalSnapshotBeforeUpdate=w}break;case 3:var S=t.stateNode.containerInfo;S.nodeType===1?S.textContent="":S.nodeType===9&&S.documentElement&&S.removeChild(S.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(tt(163))}}catch(C){Ti(t,t.return,C)}if(e=t.sibling,e!==null){e.return=t.return,pt=e;break}pt=t.return}return g=eQ,eQ=!1,g}function jS(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var i=r=r.next;do{if((i.tag&e)===e){var o=i.destroy;i.destroy=void 0,o!==void 0&&hF(t,n,o)}i=i.next}while(i!==r)}}function V3(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function pF(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function Nde(e){var t=e.alternate;t!==null&&(e.alternate=null,Nde(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Vu],delete t[F_],delete t[eF],delete t[mNe],delete t[gNe])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function Mde(e){return e.tag===5||e.tag===3||e.tag===4}function tQ(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Mde(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function mF(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=AA));else if(r!==4&&(e=e.child,e!==null))for(mF(e,t,n),e=e.sibling;e!==null;)mF(e,t,n),e=e.sibling}function gF(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(gF(e,t,n),e=e.sibling;e!==null;)gF(e,t,n),e=e.sibling}var Jo=null,Il=!1;function Nh(e,t,n){for(n=n.child;n!==null;)Dde(e,t,n),n=n.sibling}function Dde(e,t,n){if(id&&typeof id.onCommitFiberUnmount=="function")try{id.onCommitFiberUnmount(L3,n)}catch{}switch(n.tag){case 5:bs||Z0(n,t);case 6:var r=Jo,i=Il;Jo=null,Nh(e,t,n),Jo=r,Il=i,Jo!==null&&(Il?(e=Jo,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Jo.removeChild(n.stateNode));break;case 18:Jo!==null&&(Il?(e=Jo,n=n.stateNode,e.nodeType===8?J5(e.parentNode,n):e.nodeType===1&&J5(e,n),O_(e)):J5(Jo,n.stateNode));break;case 4:r=Jo,i=Il,Jo=n.stateNode.containerInfo,Il=!0,Nh(e,t,n),Jo=r,Il=i;break;case 0:case 11:case 14:case 15:if(!bs&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){i=r=r.next;do{var o=i,s=o.destroy;o=o.tag,s!==void 0&&((o&2)!==0||(o&4)!==0)&&hF(n,t,s),i=i.next}while(i!==r)}Nh(e,t,n);break;case 1:if(!bs&&(Z0(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(a){Ti(n,t,a)}Nh(e,t,n);break;case 21:Nh(e,t,n);break;case 22:n.mode&1?(bs=(r=bs)||n.memoizedState!==null,Nh(e,t,n),bs=r):Nh(e,t,n);break;default:Nh(e,t,n)}}function nQ(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new ONe),t.forEach(function(r){var i=HNe.bind(null,e,r);n.has(r)||(n.add(r),r.then(i,i))})}}function _l(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var i=n[r];try{var o=e,s=t,a=s;e:for(;a!==null;){switch(a.tag){case 5:Jo=a.stateNode,Il=!1;break e;case 3:Jo=a.stateNode.containerInfo,Il=!0;break e;case 4:Jo=a.stateNode.containerInfo,Il=!0;break e}a=a.return}if(Jo===null)throw Error(tt(160));Dde(o,s,i),Jo=null,Il=!1;var c=i.alternate;c!==null&&(c.return=null),i.return=null}catch(l){Ti(i,t,l)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)Lde(t,e),t=t.sibling}function Lde(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(_l(t,e),Su(e),r&4){try{jS(3,e,e.return),V3(3,e)}catch(m){Ti(e,e.return,m)}try{jS(5,e,e.return)}catch(m){Ti(e,e.return,m)}}break;case 1:_l(t,e),Su(e),r&512&&n!==null&&Z0(n,n.return);break;case 5:if(_l(t,e),Su(e),r&512&&n!==null&&Z0(n,n.return),e.flags&32){var i=e.stateNode;try{A_(i,"")}catch(m){Ti(e,e.return,m)}}if(r&4&&(i=e.stateNode,i!=null)){var o=e.memoizedProps,s=n!==null?n.memoizedProps:o,a=e.type,c=e.updateQueue;if(e.updateQueue=null,c!==null)try{a==="input"&&o.type==="radio"&&o.name!=null&&iue(i,o),B8(a,s);var l=B8(a,o);for(s=0;s<c.length;s+=2){var u=c[s],d=c[s+1];u==="style"?lue(i,d):u==="dangerouslySetInnerHTML"?aue(i,d):u==="children"?A_(i,d):JU(i,u,d,l)}switch(a){case"input":D8(i,o);break;case"textarea":oue(i,o);break;case"select":var f=i._wrapperState.wasMultiple;i._wrapperState.wasMultiple=!!o.multiple;var p=o.value;p!=null?yy(i,!!o.multiple,p,!1):f!==!!o.multiple&&(o.defaultValue!=null?yy(i,!!o.multiple,o.defaultValue,!0):yy(i,!!o.multiple,o.multiple?[]:"",!1))}i[F_]=o}catch(m){Ti(e,e.return,m)}}break;case 6:if(_l(t,e),Su(e),r&4){if(e.stateNode===null)throw Error(tt(162));i=e.stateNode,o=e.memoizedProps;try{i.nodeValue=o}catch(m){Ti(e,e.return,m)}}break;case 3:if(_l(t,e),Su(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{O_(t.containerInfo)}catch(m){Ti(e,e.return,m)}break;case 4:_l(t,e),Su(e);break;case 13:_l(t,e),Su(e),i=e.child,i.flags&8192&&(o=i.memoizedState!==null,i.stateNode.isHidden=o,!o||i.alternate!==null&&i.alternate.memoizedState!==null||(PB=ji())),r&4&&nQ(e);break;case 22:if(u=n!==null&&n.memoizedState!==null,e.mode&1?(bs=(l=bs)||u,_l(t,e),bs=l):_l(t,e),Su(e),r&8192){if(l=e.memoizedState!==null,(e.stateNode.isHidden=l)&&!u&&(e.mode&1)!==0)for(pt=e,u=e.child;u!==null;){for(d=pt=u;pt!==null;){switch(f=pt,p=f.child,f.tag){case 0:case 11:case 14:case 15:jS(4,f,f.return);break;case 1:Z0(f,f.return);var g=f.stateNode;if(typeof g.componentWillUnmount=="function"){r=f,n=f.return;try{t=r,g.props=t.memoizedProps,g.state=t.memoizedState,g.componentWillUnmount()}catch(m){Ti(r,n,m)}}break;case 5:Z0(f,f.return);break;case 22:if(f.memoizedState!==null){iQ(d);continue}}p!==null?(p.return=f,pt=p):iQ(d)}u=u.sibling}e:for(u=null,d=e;;){if(d.tag===5){if(u===null){u=d;try{i=d.stateNode,l?(o=i.style,typeof o.setProperty=="function"?o.setProperty("display","none","important"):o.display="none"):(a=d.stateNode,c=d.memoizedProps.style,s=c!=null&&c.hasOwnProperty("display")?c.display:null,a.style.display=cue("display",s))}catch(m){Ti(e,e.return,m)}}}else if(d.tag===6){if(u===null)try{d.stateNode.nodeValue=l?"":d.memoizedProps}catch(m){Ti(e,e.return,m)}}else if((d.tag!==22&&d.tag!==23||d.memoizedState===null||d===e)&&d.child!==null){d.child.return=d,d=d.child;continue}if(d===e)break e;for(;d.sibling===null;){if(d.return===null||d.return===e)break e;u===d&&(u=null),d=d.return}u===d&&(u=null),d.sibling.return=d.return,d=d.sibling}}break;case 19:_l(t,e),Su(e),r&4&&nQ(e);break;case 21:break;default:_l(t,e),Su(e)}}function Su(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(Mde(n)){var r=n;break e}n=n.return}throw Error(tt(160))}switch(r.tag){case 5:var i=r.stateNode;r.flags&32&&(A_(i,""),r.flags&=-33);var o=tQ(e);gF(e,o,i);break;case 3:case 4:var s=r.stateNode.containerInfo,a=tQ(e);mF(e,a,s);break;default:throw Error(tt(161))}}catch(c){Ti(e,e.return,c)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function MNe(e,t,n){pt=e,Fde(e)}function Fde(e,t,n){for(var r=(e.mode&1)!==0;pt!==null;){var i=pt,o=i.child;if(i.tag===22&&r){var s=i.memoizedState!==null||hT;if(!s){var a=i.alternate,c=a!==null&&a.memoizedState!==null||bs;a=hT;var l=bs;if(hT=s,(bs=c)&&!l)for(pt=i;pt!==null;)s=pt,c=s.child,s.tag===22&&s.memoizedState!==null?oQ(i):c!==null?(c.return=s,pt=c):oQ(i);for(;o!==null;)pt=o,Fde(o),o=o.sibling;pt=i,hT=a,bs=l}rQ(e)}else(i.subtreeFlags&8772)!==0&&o!==null?(o.return=i,pt=o):rQ(e)}}function rQ(e){for(;pt!==null;){var t=pt;if((t.flags&8772)!==0){var n=t.alternate;try{if((t.flags&8772)!==0)switch(t.tag){case 0:case 11:case 15:bs||V3(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!bs)if(n===null)r.componentDidMount();else{var i=t.elementType===t.type?n.memoizedProps:Al(t.type,n.memoizedProps);r.componentDidUpdate(i,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var o=t.updateQueue;o!==null&&$Y(t,o,r);break;case 3:var s=t.updateQueue;if(s!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}$Y(t,s,n)}break;case 5:var a=t.stateNode;if(n===null&&t.flags&4){n=a;var c=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":c.autoFocus&&n.focus();break;case"img":c.src&&(n.src=c.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var l=t.alternate;if(l!==null){var u=l.memoizedState;if(u!==null){var d=u.dehydrated;d!==null&&O_(d)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(tt(163))}bs||t.flags&512&&pF(t)}catch(f){Ti(t,t.return,f)}}if(t===e){pt=null;break}if(n=t.sibling,n!==null){n.return=t.return,pt=n;break}pt=t.return}}function iQ(e){for(;pt!==null;){var t=pt;if(t===e){pt=null;break}var n=t.sibling;if(n!==null){n.return=t.return,pt=n;break}pt=t.return}}function oQ(e){for(;pt!==null;){var t=pt;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{V3(4,t)}catch(c){Ti(t,n,c)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var i=t.return;try{r.componentDidMount()}catch(c){Ti(t,i,c)}}var o=t.return;try{pF(t)}catch(c){Ti(t,o,c)}break;case 5:var s=t.return;try{pF(t)}catch(c){Ti(t,s,c)}}}catch(c){Ti(t,t.return,c)}if(t===e){pt=null;break}var a=t.sibling;if(a!==null){a.return=t.return,pt=a;break}pt=t.return}}var DNe=Math.ceil,UA=gh.ReactCurrentDispatcher,IB=gh.ReactCurrentOwner,zc=gh.ReactCurrentBatchConfig,Nn=0,$o=null,to=null,ss=0,Ka=0,ey=km(0),bo=0,z_=null,tv=0,W3=0,RB=0,US=null,ga=null,PB=0,i1=1/0,af=null,BA=!1,vF=null,Mp=null,pT=!1,wp=null,$A=0,BS=0,yF=null,ax=-1,cx=0;function Ys(){return(Nn&6)!==0?ji():ax!==-1?ax:ax=ji()}function Dp(e){return(e.mode&1)===0?1:(Nn&2)!==0&&ss!==0?ss&-ss:yNe.transition!==null?(cx===0&&(cx=Sue()),cx):(e=rr,e!==0||(e=window.event,e=e===void 0?16:Aue(e.type)),e)}function Yl(e,t,n,r){if(50<BS)throw BS=0,yF=null,Error(tt(185));JC(e,n,r),((Nn&2)===0||e!==$o)&&(e===$o&&((Nn&2)===0&&(W3|=n),bo===4&&dp(e,ss)),Ta(e,r),n===1&&Nn===0&&(t.mode&1)===0&&(i1=ji()+500,$3&&xm()))}function Ta(e,t){var n=e.callbackNode;yOe(e,t);var r=EA(e,e===$o?ss:0);if(r===0)n!==null&&pY(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&pY(n),t===1)e.tag===0?vNe(sQ.bind(null,e)):Gue(sQ.bind(null,e)),hNe(function(){(Nn&6)===0&&xm()}),n=null;else{switch(_ue(r)){case 1:n=rB;break;case 4:n=bue;break;case 16:n=CA;break;case 536870912:n=wue;break;default:n=CA}n=Wde(n,jde.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function jde(e,t){if(ax=-1,cx=0,(Nn&6)!==0)throw Error(tt(327));var n=e.callbackNode;if(Cy()&&e.callbackNode!==n)return null;var r=EA(e,e===$o?ss:0);if(r===0)return null;if((r&30)!==0||(r&e.expiredLanes)!==0||t)t=HA(e,r);else{t=r;var i=Nn;Nn|=2;var o=Bde();($o!==e||ss!==t)&&(af=null,i1=ji()+500,Pg(e,t));do try{jNe();break}catch(a){Ude(e,a)}while(!0);gB(),UA.current=o,Nn=i,to!==null?t=0:($o=null,ss=0,t=bo)}if(t!==0){if(t===2&&(i=W8(e),i!==0&&(r=i,t=bF(e,i))),t===1)throw n=z_,Pg(e,0),dp(e,r),Ta(e,ji()),n;if(t===6)dp(e,r);else{if(i=e.current.alternate,(r&30)===0&&!LNe(i)&&(t=HA(e,r),t===2&&(o=W8(e),o!==0&&(r=o,t=bF(e,o))),t===1))throw n=z_,Pg(e,0),dp(e,r),Ta(e,ji()),n;switch(e.finishedWork=i,e.finishedLanes=r,t){case 0:case 1:throw Error(tt(345));case 2:og(e,ga,af);break;case 3:if(dp(e,r),(r&130023424)===r&&(t=PB+500-ji(),10<t)){if(EA(e,0)!==0)break;if(i=e.suspendedLanes,(i&r)!==r){Ys(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=Z8(og.bind(null,e,ga,af),t);break}og(e,ga,af);break;case 4:if(dp(e,r),(r&4194240)===r)break;for(t=e.eventTimes,i=-1;0<r;){var s=31-Kl(r);o=1<<s,s=t[s],s>i&&(i=s),r&=~o}if(r=i,r=ji()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*DNe(r/1960))-r,10<r){e.timeoutHandle=Z8(og.bind(null,e,ga,af),r);break}og(e,ga,af);break;case 5:og(e,ga,af);break;default:throw Error(tt(329))}}}return Ta(e,ji()),e.callbackNode===n?jde.bind(null,e):null}function bF(e,t){var n=US;return e.current.memoizedState.isDehydrated&&(Pg(e,t).flags|=256),e=HA(e,t),e!==2&&(t=ga,ga=n,t!==null&&wF(t)),e}function wF(e){ga===null?ga=e:ga.push.apply(ga,e)}function LNe(e){for(var t=e;;){if(t.flags&16384){var n=t.updateQueue;if(n!==null&&(n=n.stores,n!==null))for(var r=0;r<n.length;r++){var i=n[r],o=i.getSnapshot;i=i.value;try{if(!Zl(o(),i))return!1}catch{return!1}}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function dp(e,t){for(t&=~RB,t&=~W3,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-Kl(t),r=1<<n;e[n]=-1,t&=~r}}function sQ(e){if((Nn&6)!==0)throw Error(tt(327));Cy();var t=EA(e,0);if((t&1)===0)return Ta(e,ji()),null;var n=HA(e,t);if(e.tag!==0&&n===2){var r=W8(e);r!==0&&(t=r,n=bF(e,r))}if(n===1)throw n=z_,Pg(e,0),dp(e,t),Ta(e,ji()),n;if(n===6)throw Error(tt(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,og(e,ga,af),Ta(e,ji()),null}function OB(e,t){var n=Nn;Nn|=1;try{return e(t)}finally{Nn=n,Nn===0&&(i1=ji()+500,$3&&xm())}}function nv(e){wp!==null&&wp.tag===0&&(Nn&6)===0&&Cy();var t=Nn;Nn|=1;var n=zc.transition,r=rr;try{if(zc.transition=null,rr=1,e)return e()}finally{rr=r,zc.transition=n,Nn=t,(Nn&6)===0&&xm()}}function NB(){Ka=ey.current,Hr(ey)}function Pg(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,fNe(n)),to!==null)for(n=to.return;n!==null;){var r=n;switch(hB(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&IA();break;case 3:n1(),Hr(Ca),Hr(Cs),_B();break;case 5:SB(r);break;case 4:n1();break;case 13:Hr(di);break;case 19:Hr(di);break;case 10:vB(r.type._context);break;case 22:case 23:NB()}n=n.return}if($o=e,to=e=Lp(e.current,null),ss=Ka=t,bo=0,z_=null,RB=W3=tv=0,ga=US=null,mg!==null){for(t=0;t<mg.length;t++)if(n=mg[t],r=n.interleaved,r!==null){n.interleaved=null;var i=r.next,o=n.pending;if(o!==null){var s=o.next;o.next=i,r.next=s}n.pending=r}mg=null}return e}function Ude(e,t){do{var n=to;try{if(gB(),ix.current=jA,FA){for(var r=pi.memoizedState;r!==null;){var i=r.queue;i!==null&&(i.pending=null),r=r.next}FA=!1}if(ev=0,Mo=mo=pi=null,FS=!1,B_=0,IB.current=null,n===null||n.return===null){bo=1,z_=t,to=null;break}e:{var o=e,s=n.return,a=n,c=t;if(t=ss,a.flags|=32768,c!==null&&typeof c=="object"&&typeof c.then=="function"){var l=c,u=a,d=u.tag;if((u.mode&1)===0&&(d===0||d===11||d===15)){var f=u.alternate;f?(u.updateQueue=f.updateQueue,u.memoizedState=f.memoizedState,u.lanes=f.lanes):(u.updateQueue=null,u.memoizedState=null)}var p=GY(s);if(p!==null){p.flags&=-257,KY(p,s,a,o,t),p.mode&1&&qY(o,l,t),t=p,c=l;var g=t.updateQueue;if(g===null){var m=new Set;m.add(c),t.updateQueue=m}else g.add(c);break e}else{if((t&1)===0){qY(o,l,t),MB();break e}c=Error(tt(426))}}else if(ni&&a.mode&1){var y=GY(s);if(y!==null){(y.flags&65536)===0&&(y.flags|=256),KY(y,s,a,o,t),pB(r1(c,a));break e}}o=c=r1(c,a),bo!==4&&(bo=2),US===null?US=[o]:US.push(o),o=s;do{switch(o.tag){case 3:o.flags|=65536,t&=-t,o.lanes|=t;var v=_de(o,c,t);BY(o,v);break e;case 1:a=c;var w=o.type,S=o.stateNode;if((o.flags&128)===0&&(typeof w.getDerivedStateFromError=="function"||S!==null&&typeof S.componentDidCatch=="function"&&(Mp===null||!Mp.has(S)))){o.flags|=65536,t&=-t,o.lanes|=t;var C=Cde(o,a,t);BY(o,C);break e}}o=o.return}while(o!==null)}Hde(n)}catch(E){t=E,to===n&&n!==null&&(to=n=n.return);continue}break}while(!0)}function Bde(){var e=UA.current;return UA.current=jA,e===null?jA:e}function MB(){(bo===0||bo===3||bo===2)&&(bo=4),$o===null||(tv&268435455)===0&&(W3&268435455)===0||dp($o,ss)}function HA(e,t){var n=Nn;Nn|=2;var r=Bde();($o!==e||ss!==t)&&(af=null,Pg(e,t));do try{FNe();break}catch(i){Ude(e,i)}while(!0);if(gB(),Nn=n,UA.current=r,to!==null)throw Error(tt(261));return $o=null,ss=0,bo}function FNe(){for(;to!==null;)$de(to)}function jNe(){for(;to!==null&&!lOe();)$de(to)}function $de(e){var t=Vde(e.alternate,e,Ka);e.memoizedProps=e.pendingProps,t===null?Hde(e):to=t,IB.current=null}function Hde(e){var t=e;do{var n=t.alternate;if(e=t.return,(t.flags&32768)===0){if(n=RNe(n,t,Ka),n!==null){to=n;return}}else{if(n=PNe(n,t),n!==null){n.flags&=32767,to=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{bo=6,to=null;return}}if(t=t.sibling,t!==null){to=t;return}to=t=e}while(t!==null);bo===0&&(bo=5)}function og(e,t,n){var r=rr,i=zc.transition;try{zc.transition=null,rr=1,UNe(e,t,n,r)}finally{zc.transition=i,rr=r}return null}function UNe(e,t,n,r){do Cy();while(wp!==null);if((Nn&6)!==0)throw Error(tt(327));
vendor: 4,680 bytes, line 40
40n=e.finishedWork;var i=e.finishedLanes;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(tt(177));e.callbackNode=null,e.callbackPriority=0;var o=n.lanes|n.childLanes;if(bOe(e,o),e===$o&&(to=$o=null,ss=0),(n.subtreeFlags&2064)===0&&(n.flags&2064)===0||pT||(pT=!0,Wde(CA,function(){return Cy(),null})),o=(n.flags&15990)!==0,(n.subtreeFlags&15990)!==0||o){o=zc.transition,zc.transition=null;var s=rr;rr=1;var a=Nn;Nn|=4,IB.current=null,NNe(e,n),Lde(n,e),oNe(X8),TA=!!Q8,X8=Q8=null,e.current=n,MNe(n),uOe(),Nn=a,rr=s,zc.transition=o}else e.current=n;if(pT&&(pT=!1,wp=e,$A=i),o=e.pendingLanes,o===0&&(Mp=null),hOe(n.stateNode),Ta(e,ji()),t!==null)for(r=e.onRecoverableError,n=0;n<t.length;n++)i=t[n],r(i.value,{componentStack:i.stack,digest:i.digest});if(BA)throw BA=!1,e=vF,vF=null,e;return($A&1)!==0&&e.tag!==0&&Cy(),o=e.pendingLanes,(o&1)!==0?e===yF?BS++:(BS=0,yF=e):BS=0,xm(),null}function Cy(){if(wp!==null){var e=_ue($A),t=zc.transition,n=rr;try{if(zc.transition=null,rr=16>e?16:e,wp===null)var r=!1;else{if(e=wp,wp=null,$A=0,(Nn&6)!==0)throw Error(tt(331));var i=Nn;for(Nn|=4,pt=e.current;pt!==null;){var o=pt,s=o.child;if((pt.flags&16)!==0){var a=o.deletions;if(a!==null){for(var c=0;c<a.length;c++){var l=a[c];for(pt=l;pt!==null;){var u=pt;switch(u.tag){case 0:case 11:case 15:jS(8,u,o)}var d=u.child;if(d!==null)d.return=u,pt=d;else for(;pt!==null;){u=pt;var f=u.sibling,p=u.return;if(Nde(u),u===l){pt=null;break}if(f!==null){f.return=p,pt=f;break}pt=p}}}var g=o.alternate;if(g!==null){var m=g.child;if(m!==null){g.child=null;do{var y=m.sibling;m.sibling=null,m=y}while(m!==null)}}pt=o}}if((o.subtreeFlags&2064)!==0&&s!==null)s.return=o,pt=s;else e:for(;pt!==null;){if(o=pt,(o.flags&2048)!==0)switch(o.tag){case 0:case 11:case 15:jS(9,o,o.return)}var v=o.sibling;if(v!==null){v.return=o.return,pt=v;break e}pt=o.return}}var w=e.current;for(pt=w;pt!==null;){s=pt;var S=s.child;if((s.subtreeFlags&2064)!==0&&S!==null)S.return=s,pt=S;else e:for(s=w;pt!==null;){if(a=pt,(a.flags&2048)!==0)try{switch(a.tag){case 0:case 11:case 15:V3(9,a)}}catch(E){Ti(a,a.return,E)}if(a===s){pt=null;break e}var C=a.sibling;if(C!==null){C.return=a.return,pt=C;break e}pt=a.return}}if(Nn=i,xm(),id&&typeof id.onPostCommitFiberRoot=="function")try{id.onPostCommitFiberRoot(L3,e)}catch{}r=!0}return r}finally{rr=n,zc.transition=t}}return!1}function aQ(e,t,n){t=r1(n,t),t=_de(e,t,1),e=Np(e,t,1),t=Ys(),e!==null&&(JC(e,1,t),Ta(e,t))}function Ti(e,t,n){if(e.tag===3)aQ(e,e,n);else for(;t!==null;){if(t.tag===3){aQ(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(Mp===null||!Mp.has(r))){e=r1(n,e),e=Cde(t,e,1),t=Np(t,e,1),e=Ys(),t!==null&&(JC(t,1,e),Ta(t,e));break}}t=t.return}}function BNe(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=Ys(),e.pingedLanes|=e.suspendedLanes&n,$o===e&&(ss&n)===n&&(bo===4||bo===3&&(ss&130023424)===ss&&500>ji()-PB?Pg(e,0):RB|=n),Ta(e,t)}function zde(e,t){t===0&&((e.mode&1)===0?t=1:(t=iT,iT<<=1,(iT&130023424)===0&&(iT=4194304)));var n=Ys();e=Qf(e,t),e!==null&&(JC(e,t,n),Ta(e,n))}function $Ne(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),zde(e,n)}function HNe(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,i=e.memoizedState;i!==null&&(n=i.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(tt(314))}r!==null&&r.delete(t),zde(e,n)}var Vde;Vde=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Ca.current)wa=!0;else{if((e.lanes&n)===0&&(t.flags&128)===0)return wa=!1,INe(e,t,n);wa=(e.flags&131072)!==0}else wa=!1,ni&&(t.flags&1048576)!==0&&Kue(t,OA,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;sx(e,t),e=t.pendingProps;var i=Zy(t,Cs.current);_y(t,n),i=EB(null,t,r,e,i,n);var o=TB();return t.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Ea(r)?(o=!0,RA(t)):o=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,bB(t),i.updater=z3,t.stateNode=i,i._reactInternals=t,sF(t,r,e,n),t=lF(null,t,r,!0,o,n)):(t.tag=0,ni&&o&&fB(t),Ls(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(sx(e,t),e=t.pendingProps,i=r._init,r=i(r._payload),t.type=r,i=t.tag=VNe(r),e=Al(r,e),i){case 0:t=cF(null,t,r,e,n);break e;case 1:t=XY(null,t,r,e,n);break e;case 11:t=YY(null,t,r,e,n);break e;case 14:t=QY(null,t,r,Al(r.type,e),n);break e}throw Error(tt(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Al(r,i),cF(e,t,r,i,n);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Al(r,i),XY(e,t,r,i,n);case 3:e:{if(xde(t),e===null)throw Error(tt(387));
vendor: 4,752 bytes, line 40
40r=t.pendingProps,o=t.memoizedState,i=o.element,ede(e,t),DA(t,r,null,n);var s=t.memoizedState;if(r=s.element,o.isDehydrated)if(o={element:r,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){i=r1(Error(tt(423)),t),t=JY(e,t,r,n,i);break e}else if(r!==i){i=r1(Error(tt(424)),t),t=JY(e,t,r,n,i);break e}else for(rc=Op(t.stateNode.containerInfo.firstChild),cc=t,ni=!0,Nl=null,n=Jue(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(e1(),r===i){t=Xf(e,t,n);break e}Ls(e,t,r,n)}t=t.child}return t;case 5:return tde(t),e===null&&rF(t),r=t.type,i=t.pendingProps,o=e!==null?e.memoizedProps:null,s=i.children,J8(r,i)?s=null:o!==null&&J8(r,o)&&(t.flags|=32),kde(e,t),Ls(e,t,s,n),t.child;case 6:return e===null&&rF(t),null;case 13:return Ade(e,t,n);case 4:return wB(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=t1(t,null,r,n):Ls(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Al(r,i),YY(e,t,r,i,n);case 7:return Ls(e,t,t.pendingProps,n),t.child;case 8:return Ls(e,t,t.pendingProps.children,n),t.child;case 12:return Ls(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,i=t.pendingProps,o=t.memoizedProps,s=i.value,Tr(NA,r._currentValue),r._currentValue=s,o!==null)if(Zl(o.value,s)){if(o.children===i.children&&!Ca.current){t=Xf(e,t,n);break e}}else for(o=t.child,o!==null&&(o.return=t);o!==null;){var a=o.dependencies;if(a!==null){s=o.child;for(var c=a.firstContext;c!==null;){if(c.context===r){if(o.tag===1){c=jf(-1,n&-n),c.tag=2;var l=o.updateQueue;if(l!==null){l=l.shared;var u=l.pending;u===null?c.next=c:(c.next=u.next,u.next=c),l.pending=c}}o.lanes|=n,c=o.alternate,c!==null&&(c.lanes|=n),iF(o.return,n,t),a.lanes|=n;break}c=c.next}}else if(o.tag===10)s=o.type===t.type?null:o.child;else if(o.tag===18){if(s=o.return,s===null)throw Error(tt(341));s.lanes|=n,a=s.alternate,a!==null&&(a.lanes|=n),iF(s,n,t),s=o.sibling}else s=o.child;if(s!==null)s.return=o;else for(s=o;s!==null;){if(s===t){s=null;break}if(o=s.sibling,o!==null){o.return=s.return,s=o;break}s=s.return}o=s}Ls(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,_y(t,n),i=Gc(i),r=r(i),t.flags|=1,Ls(e,t,r,n),t.child;case 14:return r=t.type,i=Al(r,t.pendingProps),i=Al(r.type,i),QY(e,t,r,i,n);case 15:return Ede(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Al(r,i),sx(e,t),t.tag=1,Ea(r)?(e=!0,RA(t)):e=!1,_y(t,n),Sde(t,r,i),sF(t,r,i,n),lF(null,t,r,!0,e,n);case 19:return Ide(e,t,n);case 22:return Tde(e,t,n)}throw Error(tt(156,t.tag))};function Wde(e,t){return yue(e,t)}function zNe(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Uc(e,t,n,r){return new zNe(e,t,n,r)}function DB(e){return e=e.prototype,!(!e||!e.isReactComponent)}function VNe(e){if(typeof e=="function")return DB(e)?1:0;if(e!=null){if(e=e.$$typeof,e===eB)return 11;if(e===tB)return 14}return 2}function Lp(e,t){var n=e.alternate;return n===null?(n=Uc(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function lx(e,t,n,r,i,o){var s=2;if(r=e,typeof e=="function")DB(e)&&(s=1);else if(typeof e=="string")s=5;else e:switch(e){case V0:return Og(n.children,i,o,t);case ZU:s=8,i|=8;break;case R8:return e=Uc(12,n,t,i|2),e.elementType=R8,e.lanes=o,e;case P8:return e=Uc(13,n,t,i),e.elementType=P8,e.lanes=o,e;case O8:return e=Uc(19,n,t,i),e.elementType=O8,e.lanes=o,e;case tue:return q3(n,i,o,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Zle:s=10;break e;case eue:s=9;break e;case eB:s=11;break e;case tB:s=14;break e;case Xh:s=16,r=null;break e}throw Error(tt(130,e==null?e:typeof e,""))}return t=Uc(s,n,t,i),t.elementType=e,t.type=r,t.lanes=o,t}function Og(e,t,n,r){return e=Uc(7,e,r,t),e.lanes=n,e}function q3(e,t,n,r){return e=Uc(22,e,r,t),e.elementType=tue,e.lanes=n,e.stateNode={isHidden:!1},e}function sM(e,t,n){return e=Uc(6,e,null,t),e.lanes=n,e}
vendor: 5,672 bytes, line 40
40function aM(e,t,n){return t=Uc(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function WNe(e,t,n,r,i){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=$5(0),this.expirationTimes=$5(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=$5(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function LB(e,t,n,r,i,o,s,a,c){return e=new WNe(e,t,n,a,c),t===1?(t=1,o===!0&&(t|=8)):t=0,o=Uc(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},bB(o),e}function qNe(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:z0,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function qde(e){if(!e)return nm;e=e._reactInternals;e:{if(Dv(e)!==e||e.tag!==1)throw Error(tt(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Ea(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(tt(171))}if(e.tag===1){var n=e.type;if(Ea(n))return que(e,n,t)}return t}function Gde(e,t,n,r,i,o,s,a,c){return e=LB(n,r,!0,e,i,o,s,a,c),e.context=qde(null),n=e.current,r=Ys(),i=Dp(n),o=jf(r,i),o.callback=t??null,Np(n,o,i),e.current.lanes=i,JC(e,i,r),Ta(e,r),e}function G3(e,t,n,r){var i=t.current,o=Ys(),s=Dp(i);return n=qde(n),t.context===null?t.context=n:t.pendingContext=n,t=jf(o,s),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=Np(i,t,s),e!==null&&(Yl(e,i,s,o),rx(e,i,s)),s}function zA(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function cQ(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function FB(e,t){cQ(e,t),(e=e.alternate)&&cQ(e,t)}function GNe(){return null}var Kde=typeof reportError=="function"?reportError:function(e){console.error(e)};function jB(e){this._internalRoot=e}K3.prototype.render=jB.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(tt(409));G3(e,t,null,null)};K3.prototype.unmount=jB.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;nv(function(){G3(null,e,null,null)}),t[Yf]=null}};function K3(e){this._internalRoot=e}K3.prototype.unstable_scheduleHydration=function(e){if(e){var t=Tue();e={blockedOn:null,target:e,priority:t};for(var n=0;n<up.length&&t!==0&&t<up[n].priority;n++);up.splice(n,0,e),n===0&&xue(e)}};function UB(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function Y3(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function lQ(){}function KNe(e,t,n,r,i){if(i){if(typeof r=="function"){var o=r;r=function(){var l=zA(s);o.call(l)}}var s=Gde(t,r,e,0,null,!1,!1,"",lQ);return e._reactRootContainer=s,e[Yf]=s.current,D_(e.nodeType===8?e.parentNode:e),nv(),s}for(;i=e.lastChild;)e.removeChild(i);if(typeof r=="function"){var a=r;r=function(){var l=zA(c);a.call(l)}}var c=LB(e,0,!1,null,null,!1,!1,"",lQ);return e._reactRootContainer=c,e[Yf]=c.current,D_(e.nodeType===8?e.parentNode:e),nv(function(){G3(t,c,n,r)}),c}function Q3(e,t,n,r,i){var o=n._reactRootContainer;if(o){var s=o;if(typeof i=="function"){var a=i;i=function(){var c=zA(s);a.call(c)}}G3(t,s,e,i)}else s=KNe(n,t,e,i,r);return zA(s)}Cue=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=yS(t.pendingLanes);n!==0&&(iB(t,n|1),Ta(t,ji()),(Nn&6)===0&&(i1=ji()+500,xm()))}break;case 13:nv(function(){var r=Qf(e,1);if(r!==null){var i=Ys();Yl(r,e,1,i)}}),FB(e,1)}};oB=function(e){if(e.tag===13){var t=Qf(e,134217728);if(t!==null){var n=Ys();Yl(t,e,134217728,n)}FB(e,134217728)}};Eue=function(e){if(e.tag===13){var t=Dp(e),n=Qf(e,t);if(n!==null){var r=Ys();Yl(n,e,t,r)}FB(e,t)}};Tue=function(){return rr};kue=function(e,t){var n=rr;try{return rr=e,t()}finally{rr=n}};H8=function(e,t,n){switch(t){case"input":if(D8(e,n),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var i=B3(r);if(!i)throw Error(tt(90));rue(r),D8(r,i)}}}break;case"textarea":oue(e,n);break;case"select":t=n.value,t!=null&&yy(e,!!n.multiple,t,!1)}};fue=OB;hue=nv;var YNe={usingClientEntryPoint:!1,Events:[eE,K0,B3,uue,due,OB]},Pw={findFiberByHostInstance:pg,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},QNe={bundleType:Pw.bundleType,version:Pw.version,rendererPackageName:Pw.rendererPackageName,rendererConfig:Pw.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:gh.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=gue(e),e===null?null:e.stateNode},findFiberByHostInstance:Pw.findFiberByHostInstance||GNe,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};
40if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var mT=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!mT.isDisabled&&mT.supportsFiber)try{L3=mT.inject(QNe),id=mT}catch{}}pc.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=YNe;pc.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!UB(t))throw Error(tt(200));return qNe(e,t,null,n)};pc.createRoot=function(e,t){if(!UB(e))throw Error(tt(299));var n=!1,r="",i=Kde;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(i=t.onRecoverableError)),t=LB(e,1,!1,null,null,n,!1,r,i),e[Yf]=t.current,D_(e.nodeType===8?e.parentNode:e),new jB(t)};pc.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(tt(188)):(e=Object.keys(e).join(","),Error(tt(268,e)));return e=gue(t),e=e===null?null:e.stateNode,e};pc.flushSync=function(e){return nv(e)};pc.hydrate=function(e,t,n){if(!Y3(t))throw Error(tt(200));return Q3(null,e,t,!0,n)};pc.hydrateRoot=function(e,t,n){if(!UB(e))throw Error(tt(405));var r=n!=null&&n.hydratedSources||null,i=!1,o="",s=Kde;if(n!=null&&(n.unstable_strictMode===!0&&(i=!0),n.identifierPrefix!==void 0&&(o=n.identifierPrefix),n.onRecoverableError!==void 0&&(s=n.onRecoverableError)),t=Gde(t,null,e,1,n??null,i,!1,o,s),e[Yf]=t.current,D_(e),r)for(e=0;e<r.length;e++)n=r[e],i=n._getVersion,i=i(n._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[n,i]:t.mutableSourceEagerHydrationData.push(n,i);return new K3(t)};pc.render=function(e,t,n){if(!Y3(t))throw Error(tt(200));return Q3(null,e,t,!1,n)};pc.unmountComponentAtNode=function(e){if(!Y3(e))throw Error(tt(40));return e._reactRootContainer?(nv(function(){Q3(null,null,e,!1,function(){e._reactRootContainer=null,e[Yf]=null})}),!0):!1};pc.unstable_batchedUpdates=OB;pc.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!Y3(n))throw Error(tt(200));if(e==null||e._reactInternals===void 0)throw Error(tt(38));return Q3(e,t,n,!1,r)};pc.version="18.3.1-next-f1338f8080-20240426";function Yde(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Yde)}catch(e){console.error(e)}}Yde(),Yle.exports=pc;var Am=Yle.exports;const BB=io(Am);var uQ=Am;A8.createRoot=uQ.createRoot,A8.hydrateRoot=uQ.hydrateRoot;var dQ={};/**
41 * @license
42 * Copyright 2017 Google LLC
43 *
44 * Licensed under the Apache License, Version 2.0 (the "License");
45 * you may not use this file except in compliance with the License.
46 * You may obtain a copy of the License at
47 *
48 *   http://www.apache.org/licenses/LICENSE-2.0
49 *
50 * Unless required by applicable law or agreed to in writing, software
51 * distributed under the License is distributed on an "AS IS" BASIS,
52 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
53 * See the License for the specific language governing permissions and
54 * limitations under the License.
55 */const Qde=function(e){const t=[];let n=0;for(let r=0;r<e.length;r++){let i=e.charCodeAt(r);i<128?t[n++]=i:i<2048?(t[n++]=i>>6|192,t[n++]=i&63|128):(i&64512)===55296&&r+1<e.length&&(e.charCodeAt(r+1)&64512)===56320?(i=65536+((i&1023)<<10)+(e.charCodeAt(++r)&1023),t[n++]=i>>18|240,t[n++]=i>>12&63|128,t[n++]=i>>6&63|128,t[n++]=i&63|128):(t[n++]=i>>12|224,t[n++]=i>>6&63|128,t[n++]=i&63|128)}return t},XNe=function(e){const t=[];let n=0,r=0;for(;n<e.length;){const i=e[n++];if(i<128)t[r++]=String.fromCharCode(i);else if(i>191&&i<224){const o=e[n++];t[r++]=String.fromCharCode((i&31)<<6|o&63)}else if(i>239&&i<365){const o=e[n++],s=e[n++],a=e[n++],c=((i&7)<<18|(o&63)<<12|(s&63)<<6|a&63)-65536;t[r++]=String.fromCharCode(55296+(c>>10)),t[r++]=String.fromCharCode(56320+(c&1023))}else{const o=e[n++],s=e[n++];t[r++]=String.fromCharCode((i&15)<<12|(o&63)<<6|s&63)}}return t.join("")},Xde={byteToCharMap_:null,charToByteMap_:null,byteToCharMapWebSafe_:null,charToByteMapWebSafe_:null,ENCODED_VALS_BASE:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",get ENCODED_VALS(){return this.ENCODED_VALS_BASE+"+/="},get ENCODED_VALS_WEBSAFE(){return this.ENCODED_VALS_BASE+"-_."},HAS_NATIVE_SUPPORT:typeof atob=="function",encodeByteArray(e,t){if(!Array.isArray(e))throw Error("encodeByteArray takes an array as a parameter");this.init_();const n=t?this.byteToCharMapWebSafe_:this.byteToCharMap_,r=[];for(let i=0;i<e.length;i+=3){const o=e[i],s=i+1<e.length,a=s?e[i+1]:0,c=i+2<e.length,l=c?e[i+2]:0,u=o>>2,d=(o&3)<<4|a>>4;let f=(a&15)<<2|l>>6,p=l&63;c||(p=64,s||(f=64)),r.push(n[u],n[d],n[f],n[p])}return r.join("")},encodeString(e,t){return this.HAS_NATIVE_SUPPORT&&!t?btoa(e):this.encodeByteArray(Qde(e),t)},decodeString(e,t){return this.HAS_NATIVE_SUPPORT&&!t?atob(e):XNe(this.decodeStringToByteArray(e,t))},decodeStringToByteArray(e,t){this.init_();const n=t?this.charToByteMapWebSafe_:this.charToByteMap_,r=[];for(let i=0;i<e.length;){const o=n[e.charAt(i++)],a=i<e.length?n[e.charAt(i)]:0;++i;const l=i<e.length?n[e.charAt(i)]:64;++i;const d=i<e.length?n[e.charAt(i)]:64;if(++i,o==null||a==null||l==null||d==null)throw new JNe;const f=o<<2|a>>4;if(r.push(f),l!==64){const p=a<<4&240|l>>2;if(r.push(p),d!==64){const g=l<<6&192|d;r.push(g)}}}return r},init_(){if(!this.byteToCharMap_){this.byteToCharMap_={},this.charToByteMap_={},this.byteToCharMapWebSafe_={},this.charToByteMapWebSafe_={};for(let e=0;e<this.ENCODED_VALS.length;e++)this.byteToCharMap_[e]=this.ENCODED_VALS.charAt(e),this.charToByteMap_[this.byteToCharMap_[e]]=e,this.byteToCharMapWebSafe_[e]=this.ENCODED_VALS_WEBSAFE.charAt(e),this.charToByteMapWebSafe_[this.byteToCharMapWebSafe_[e]]=e,e>=this.ENCODED_VALS_BASE.length&&(this.charToByteMap_[this.ENCODED_VALS_WEBSAFE.charAt(e)]=e,this.charToByteMapWebSafe_[this.ENCODED_VALS.charAt(e)]=e)}}};
55class JNe extends Error{constructor(){super(...arguments),this.name="DecodeBase64StringError"}}const ZNe=function(e){const t=Qde(e);return Xde.encodeByteArray(t,!0)},Jde=function(e){return ZNe(e).replace(/\./g,"")},Zde=function(e){try{return Xde.decodeString(e,!0)}catch(t){console.error("base64Decode failed: ",t)}return null};/**
56 * @license
57 * Copyright 2022 Google LLC
58 *
59 * Licensed under the Apache License, Version 2.0 (the "License");
60 * you may not use this file except in compliance with the License.
61 * You may obtain a copy of the License at
62 *
63 *   http://www.apache.org/licenses/LICENSE-2.0
64 *
65 * Unless required by applicable law or agreed to in writing, software
66 * distributed under the License is distributed on an "AS IS" BASIS,
67 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
68 * See the License for the specific language governing permissions and
69 * limitations under the License.
70 */function e4e(){if(typeof self<"u")return self;if(typeof window<"u")return window;if(typeof global<"u")return global;throw new Error("Unable to locate global object.")}/**
71 * @license
72 * Copyright 2022 Google LLC
73 *
74 * Licensed under the Apache License, Version 2.0 (the "License");
75 * you may not use this file except in compliance with the License.
76 * You may obtain a copy of the License at
77 *
78 *   http://www.apache.org/licenses/LICENSE-2.0
79 *
80 * Unless required by applicable law or agreed to in writing, software
81 * distributed under the License is distributed on an "AS IS" BASIS,
82 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
83 * See the License for the specific language governing permissions and
84 * limitations under the License.
85 */const t4e=()=>e4e().__FIREBASE_DEFAULTS__,n4e=()=>{if(typeof process>"u"||typeof dQ>"u")return;const e=dQ.__FIREBASE_DEFAULTS__;if(e)return JSON.parse(e)},r4e=()=>{if(typeof document>"u")return;let e;try{e=document.cookie.match(/__FIREBASE_DEFAULTS__=([^;]+)/)}catch{return}const t=e&&Zde(e[1]);return t&&JSON.parse(t)},$B=()=>{try{return t4e()||n4e()||r4e()}catch(e){console.info(`Unable to get __FIREBASE_DEFAULTS__ due to: ${e}`);return}},i4e=e=>{var t,n;return(n=(t=$B())===null||t===void 0?void 0:t.emulatorHosts)===null||n===void 0?void 0:n[e]},efe=()=>{var e;return(e=$B())===null||e===void 0?void 0:e.config},tfe=e=>{var t;return(t=$B())===null||t===void 0?void 0:t[`_${e}`]};/**
86 * @license
87 * Copyright 2017 Google LLC
88 *
89 * Licensed under the Apache License, Version 2.0 (the "License");
90 * you may not use this file except in compliance with the License.
91 * You may obtain a copy of the License at
92 *
93 *   http://www.apache.org/licenses/LICENSE-2.0
94 *
95 * Unless required by applicable law or agreed to in writing, software
96 * distributed under the License is distributed on an "AS IS" BASIS,
97 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
98 * See the License for the specific language governing permissions and
99 * limitations under the License.
100 */class o4e{constructor(){this.reject=()=>{},this.resolve=()=>{},this.promise=new Promise((t,n)=>{this.resolve=t,this.reject=n})}wrapCallback(t){return(n,r)=>{n?this.reject(n):this.resolve(r),typeof t=="function"&&(this.promise.catch(()=>{}),t.length===1?t(n):t(n,r))}}}/**
101 * @license
102 * Copyright 2017 Google LLC
103 *
104 * Licensed under the Apache License, Version 2.0 (the "License");
105 * you may not use this file except in compliance with the License.
106 * You may obtain a copy of the License at
107 *
108 *   http://www.apache.org/licenses/LICENSE-2.0
109 *
110 * Unless required by applicable law or agreed to in writing, software
111 * distributed under the License is distributed on an "AS IS" BASIS,
112 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
113 * See the License for the specific language governing permissions and
114 * limitations under the License.
115 */function ea(){return typeof navigator<"u"&&typeof navigator.userAgent=="string"?navigator.userAgent:""}function s4e(){return typeof window<"u"&&!!(window.cordova||window.phonegap||window.PhoneGap)&&/ios|iphone|ipod|ipad|android|blackberry|iemobile/i.test(ea())}function a4e(){return typeof navigator<"u"&&navigator.userAgent==="Cloudflare-Workers"}function c4e(){const e=typeof chrome=="object"?chrome.runtime:typeof browser=="object"?browser.runtime:void 0;return typeof e=="object"&&e.id!==void 0}function l4e(){return typeof navigator=="object"&&navigator.product==="ReactNative"}function u4e(){const e=ea();return e.indexOf("MSIE ")>=0||e.indexOf("Trident/")>=0}function d4e(){try{return typeof indexedDB=="object"}catch{return!1}}function f4e(){return new Promise((e,t)=>
115{try{let n=!0;const r="validate-browser-context-for-indexeddb-analytics-module",i=self.indexedDB.open(r);i.onsuccess=()=>{i.result.close(),n||self.indexedDB.deleteDatabase(r),e(!0)},i.onupgradeneeded=()=>{n=!1},i.onerror=()=>{var o;t(((o=i.error)===null||o===void 0?void 0:o.message)||"")}}catch(n){t(n)}})}/**
116 * @license
117 * Copyright 2017 Google LLC
118 *
119 * Licensed under the Apache License, Version 2.0 (the "License");
120 * you may not use this file except in compliance with the License.
121 * You may obtain a copy of the License at
122 *
123 *   http://www.apache.org/licenses/LICENSE-2.0
124 *
125 * Unless required by applicable law or agreed to in writing, software
126 * distributed under the License is distributed on an "AS IS" BASIS,
127 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
128 * See the License for the specific language governing permissions and
129 * limitations under the License.
130 */const h4e="FirebaseError";class pd extends Error{constructor(t,n,r){super(n),this.code=t,this.customData=r,this.name=h4e,Object.setPrototypeOf(this,pd.prototype),Error.captureStackTrace&&Error.captureStackTrace(this,nE.prototype.create)}}class nE{constructor(t,n,r){this.service=t,this.serviceName=n,this.errors=r}create(t,...n){const r=n[0]||{},i=`${this.service}/${t}`,o=this.errors[t],s=o?p4e(o,r):"Error",a=`${this.serviceName}: ${s} (${i}).`;return new pd(i,a,r)}}function p4e(e,t){return e.replace(m4e,(n,r)=>{const i=t[r];return i!=null?String(i):`<${r}?>`})}const m4e=/\{\$([^}]+)}/g;function g4e(e){for(const t in e)if(Object.prototype.hasOwnProperty.call(e,t))return!1;return!0}function VA(e,t){if(e===t)return!0;const n=Object.keys(e),r=Object.keys(t);for(const i of n){if(!r.includes(i))return!1;const o=e[i],s=t[i];if(fQ(o)&&fQ(s)){if(!VA(o,s))return!1}else if(o!==s)return!1}for(const i of r)if(!n.includes(i))return!1;return!0}function fQ(e){return e!==null&&typeof e=="object"}/**
131 * @license
132 * Copyright 2017 Google LLC
133 *
134 * Licensed under the Apache License, Version 2.0 (the "License");
135 * you may not use this file except in compliance with the License.
136 * You may obtain a copy of the License at
137 *
138 *   http://www.apache.org/licenses/LICENSE-2.0
139 *
140 * Unless required by applicable law or agreed to in writing, software
141 * distributed under the License is distributed on an "AS IS" BASIS,
142 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
143 * See the License for the specific language governing permissions and
144 * limitations under the License.
145 */function rE(e){const t=[];for(const[n,r]of Object.entries(e))Array.isArray(r)?r.forEach(i=>{t.push(encodeURIComponent(n)+"="+encodeURIComponent(i))}):t.push(encodeURIComponent(n)+"="+encodeURIComponent(r));return t.length?"&"+t.join("&"):""}function v4e(e,t){const n=new y4e(e,t);return n.subscribe.bind(n)}class y4e{constructor(t,n){this.observers=[],this.unsubscribes=[],this.observerCount=0,this.task=Promise.resolve(),this.finalized=!1,this.onNoObservers=n,this.task.then(()=>{t(this)}).catch(r=>{this.error(r)})}next(t){this.forEachObserver(n=>{n.next(t)})}error(t){this.forEachObserver(n=>{n.error(t)}),this.close(t)}complete(){this.forEachObserver(t=>{t.complete()}),this.close()}subscribe(t,n,r){let i;if(t===void 0&&n===void 0&&r===void 0)throw new Error("Missing Observer.");b4e(t,["next","error","complete"])?i=t:i={next:t,error:n,complete:r},i.next===void 0&&(i.next=cM),i.error===void 0&&(i.error=cM),i.complete===void 0&&(i.complete=cM);const o=this.unsubscribeOne.bind(this,this.observers.length);return this.finalized&&this.task.then(()=>{try{this.finalError?i.error(this.finalError):i.complete()}catch{}}),this.observers.push(i),o}unsubscribeOne(t){this.observers===void 0||this.observers[t]===void 0||(delete this.observers[t],this.observerCount-=1,this.observerCount===0&&this.onNoObservers!==void 0&&this.onNoObservers(this))}forEachObserver(t){if(!this.finalized)for(let n=0;n<this.observers.length;n++)this.sendOne(n,t)}sendOne(t,n){this.task.then(()=>{if(this.observers!==void 0&&this.observers[t]!==void 0)try{n(this.observers[t])}catch(r){typeof console<"u"&&console.error&&console.error(r)}})}close(t){this.finalized||(this.finalized=!0,t!==void 0&&(this.finalError=t),this.task.then(()=>{this.observers=void 0,this.onNoObservers=void 0}))}}function b4e(e,t){if(typeof e!="object"||e===null)return!1;for(const n of t)if(n in e&&typeof e[n]=="function")return!0;return!1}function cM(){}/**
146 * @license
147 * Copyright 2021 Google LLC
148 *
149 * Licensed under the Apache License, Version 2.0 (the "License");
150 * you may not use this file except in compliance with the License.
151 * You may obtain a copy of the License at
152 *
153 *   http://www.apache.org/licenses/LICENSE-2.0
154 *
155 * Unless required by applicable law or agreed to in writing, software
156 * distributed under the License is distributed on an "AS IS" BASIS,
157 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
158 * See the License for the specific language governing permissions and
159 * limitations under the License.
160 */function hb(e){return e&&e._delegate?e._delegate:e}class o1{constructor(t,n,r){this.name=t,this.instanceFactory=n,this.type=r,this.multipleInstances=!1,this.serviceProps={},this.instantiationMode="LAZY",this.onInstanceCreated=null}setInstantiationMode(t){return this.instantiationMode=t,this}setMultipleInstances(t){return this.multipleInstances=t,this}setServiceProps(t){return this.serviceProps=t,this}setInstanceCreatedCallback(t){return this.onInstanceCreated=t,this}}/**
161 * @license
162 * Copyright 2019 Google LLC
163 *
164 * Licensed under the Apache License, Version 2.0 (the "License");
165 * you may not use this file except in compliance with the License.
166 * You may obtain a copy of the License at
167 *
168 *   http://www.apache.org/licenses/LICENSE-2.0
169 *
170 * Unless required by applicable law or agreed to in writing, software
171 * distributed under the License is distributed on an "AS IS" BASIS,
172 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
173 * See the License for the specific language governing permissions and
174 * limitations under the License.
175 */const sg="[DEFAULT]";/**
176 * @license
177 * Copyright 2019 Google LLC
178 *
179 * Licensed under the Apache License, Version 2.0 (the "License");
180 * you may not use this file except in compliance with the License.
181 * You may obtain a copy of the License at
182 *
183 *   http://www.apache.org/licenses/LICENSE-2.0
184 *
185 * Unless required by applicable law or agreed to in writing, software
186 * distributed under the License is distributed on an "AS IS" BASIS,
187 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
188 * See the License for the specific language governing permissions and
189 * limitations under the License.
190 */let w4e=class{constructor(t,n){this.name=t,this.container=n,this.component=null,this.instances=new Map,this.instancesDeferred=new Map,this.instancesOptions=new Map,this.onInitCallbacks=new Map}get(t){const n=this.normalizeInstanceIdentifier(t);if(!this.instancesDeferred.has(n)){const r=new o4e;if(this.instancesDeferred.set(n,r),this.isInitialized(n)||this.shouldAutoInitialize())try{const i=this.getOrInitializeService({instanceIdentifier:n});i&&r.resolve(i)}catch{}}return this.instancesDeferred.get(n).promise}getImmediate(t){var n;const r=this.normalizeInstanceIdentifier(t==null?void 0:t.identifier),i=(n=t==null?void 0:t.optional)!==null&&n!==void 0?n:!1;if(this.isInitialized(r)||this.shouldAutoInitialize())try{return this.getOrInitializeService({instanceIdentifier:r})}catch(o){if(i)return null;throw o}else{if(i)return null;throw Error(`Service ${this.name} is not available`)}}getComponent(){return this.component}setComponent(t){if(t.name!==this.name)throw Error(`Mismatching Component ${t.name} for Provider ${this.name}.`);if(this.component)throw Error(`Component for ${this.name} has already been provided`);if(this.component=t,!!this.shouldAutoInitialize()){if(_4e(t))try{this.getOrInitializeService({instanceIdentifier:sg})}catch{}for(const[n,r]of this.instancesDeferred.entries()){const i=this.normalizeInstanceIdentifier(n);try{const o=this.getOrInitializeService({instanceIdentifier:i});r.resolve(o)}catch{}}}}clearInstance(t=sg){this.instancesDeferred.delete(t),this.instancesOptions.delete(t),this.instances.delete(t)}async delete(){const t=Array.from(this.instances.values());await Promise.all([...t.filter(n=>"INTERNAL"in n).map(n=>n.INTERNAL.delete()),...t.filter(n=>"_delete"in n).map(n=>n._delete())])}isComponentSet(){return this.component!=null}isInitialized(t=sg){return this.instances.has(t)}getOptions(t=sg){return this.instancesOptions.get(t)||{}}initialize(t={}){const{options:n={}}=t,r=this.normalizeInstanceIdentifier(t.instanceIdentifier);if(this.isInitialized(r))throw Error(`${this.name}(${r}) has already been initialized`);if(!this.isComponentSet())throw Error(`Component ${this.name} has not been registered yet`);const i=this.getOrInitializeService({instanceIdentifier:r,options:n});for(const[o,s]of this.instancesDeferred.entries()){const a=this.normalizeInstanceIdentifier(o);r===a&&s.resolve(i)}return i}onInit(t,n){var r;const i=this.normalizeInstanceIdentifier(n),o=(r=this.onInitCallbacks.get(i))!==null&&r!==void 0?r:new Set;o.add(t),this.onInitCallbacks.set(i,o);const s=this.instances.get(i);return s&&t(s,i),()=>{o.delete(t)}}invokeOnInitCallbacks(t,n){const r=this.onInitCallbacks.get(n);if(r)for(const i of r)try{i(t,n)}catch{}}getOrInitializeService({instanceIdentifier:t,options:n={}}){let r=this.instances.get(t);if(!r&&this.component&&(r=this.component.instanceFactory(this.container,{instanceIdentifier:S4e(t),options:n}),this.instances.set(t,r),this.instancesOptions.set(t,n),this.invokeOnInitCallbacks(r,t),this.component.onInstanceCreated))try{this.component.onInstanceCreated(this.container,t,r)}catch{}return r||null}normalizeInstanceIdentifier(t=sg){return this.component?this.component.multipleInstances?t:sg:t}shouldAutoInitialize(){return!!this.component&&this.component.instantiationMode!=="EXPLICIT"}};function S4e(e){return e===sg?void 0:e}function _4e(e){return e.instantiationMode==="EAGER"}/**
191 * @license
192 * Copyright 2019 Google LLC
193 *
194 * Licensed under the Apache License, Version 2.0 (the "License");
195 * you may not use this file except in compliance with the License.
196 * You may obtain a copy of the License at
197 *
198 *   http://www.apache.org/licenses/LICENSE-2.0
199 *
200 * Unless required by applicable law or agreed to in writing, software
201 * distributed under the License is distributed on an "AS IS" BASIS,
202 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
203 * See the License for the specific language governing permissions and
204 * limitations under the License.
205 */class C4e{constructor(t){this.name=t,this.providers=new Map}addComponent(t){const n=this.getProvider(t.name);if(n.isComponentSet())throw new Error(`Component ${t.name} has already been registered with ${this.name}`);n.setComponent(t)}addOrOverwriteComponent(t){this.getProvider(t.name).isComponentSet()&&this.providers.delete(t.name),this.addComponent(t)}getProvider(t){if(this.providers.has(t))return this.providers.get(t);const n=new w4e(t,this);return this.providers.set(t,n),n}getProviders(){return Array.from(this.providers.values())}}/**
206 * @license
207 * Copyright 2017 Google LLC
208 *
209 * Licensed under the Apache License, Version 2.0 (the "License");
210 * you may not use this file except in compliance with the License.
211 * You may obtain a copy of the License at
212 *
213 *   http://www.apache.org/licenses/LICENSE-2.0
214 *
215 * Unless required by applicable law or agreed to in writing, software
216 * distributed under the License is distributed on an "AS IS" BASIS,
217 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
218 * See the License for the specific language governing permissions and
219 * limitations under the License.
220 */var pr;(function(e){e[e.DEBUG=0]="DEBUG",e[e.VERBOSE=1]="VERBOSE",e[e.INFO=2]="INFO",e[e.WARN=3]="WARN",e[e.ERROR=4]="ERROR",e[e.SILENT=5]="SILENT"})(pr||(pr={}));const E4e={debug:pr.DEBUG,verbose:pr.VERBOSE,info:pr.INFO,warn:pr.WARN,error:pr.ERROR,silent:pr.SILENT},T4e=pr.INFO,k4e={[pr.DEBUG]:"log",[pr.VERBOSE]:"log",[pr.INFO]:"info",[pr.WARN]:"warn",[pr.ERROR]:"error"},x4e=(e,t,...n)=>{if(t<e.logLevel)return;const r=new Date().toISOString(),i=k4e[t];if(i)console[i](`[${r}]  ${e.name}:`,...n);else throw new Error(`Attempted to log a message with an invalid logType (value: ${t})`)};let nfe=class{constructor(t){this.name=t,this._logLevel=T4e,this._logHandler=x4e,this._userLogHandler=null}get logLevel(){return this._logLevel}set logLevel(t){if(!(t in pr))throw new TypeError(`Invalid value "${t}" assigned to \`logLevel\``);this._logLevel=t}setLogLevel(t){this._logLevel=typeof t=="string"?E4e[t]:t}get logHandler(){return this._logHandler}set logHandler(t){if(typeof t!="function")throw new TypeError("Value assigned to `logHandler` must be a function");this._logHandler=t}get userLogHandler(){return this._userLogHandler}set userLogHandler(t){this._userLogHandler=t}debug(...t){this._userLogHandler&&this._userLogHandler(this,pr.DEBUG,...t),this._logHandler(this,pr.DEBUG,...t)}log(...t){this._userLogHandler&&this._userLogHandler(this,pr.VERBOSE,...t),this._logHandler(this,pr.VERBOSE,...t)}info(...t){this._userLogHandler&&this._userLogHandler(this,pr.INFO,...t),this._logHandler(this,pr.INFO,...t)}warn(...t){this._userLogHandler&&this._userLogHandler(this,pr.WARN,...t),this._logHandler(this,pr.WARN,...t)}error(...t){this._userLogHandler&&this._userLogHandler(this,pr.ERROR,...t),this._logHandler(this,pr.ERROR,...t)}};const A4e=(e,t)=>t.some(n=>e instanceof n);let hQ,pQ;function I4e(){return hQ||(hQ=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction])}function R4e(){return pQ||(pQ=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])}const rfe=new WeakMap,SF=new WeakMap,ife=new WeakMap,lM=new WeakMap,HB=new WeakMap;function P4e(e){const t=new Promise((n,r)=>{const i=()=>{e.removeEventListener("success",o),e.removeEventListener("error",s)},o=()=>{n(Fp(e.result)),i()},s=()=>{r(e.error),i()};e.addEventListener("success",o),e.addEventListener("error",s)});return t.then(n=>{n instanceof IDBCursor&&rfe.set(n,e)}).catch(()=>{}),HB.set(t,e),t}function O4e(e){if(SF.has(e))return;const t=new Promise((n,r)=>{const i=()=>{e.removeEventListener("complete",o),e.removeEventListener("error",s),e.removeEventListener("abort",s)},o=()=>{n(),i()},s=()=>{r(e.error||new DOMException("AbortError","AbortError")),i()};e.addEventListener("complete",o),e.addEventListener("error",s),e.addEventListener("abort",s)});SF.set(e,t)}let _F={get(e,t,n){if(e instanceof IDBTransaction){if(t==="done")return SF.get(e);if(t==="objectStoreNames")return e.objectStoreNames||ife.get(e);if(t==="store")return n.objectStoreNames[1]?void 0:n.objectStore(n.objectStoreNames[0])}return Fp(e[t])},set(e,t,n){return e[t]=n,!0},has(e,t){return e instanceof IDBTransaction&&(t==="done"||t==="store")?!0:t in e}};function N4e(e){_F=e(_F)}function M4e(e){return e===IDBDatabase.prototype.transaction&&!("objectStoreNames"in IDBTransaction.prototype)?function(t,...n){const r=e.call(uM(this),t,...n);return ife.set(r,t.sort?t.sort():[t]),Fp(r)}:R4e().includes(e)?function(...t){return e.apply(uM(this),t),Fp(rfe.get(this))}:function(...t){return Fp(e.apply(uM(this),t))}}function D4e(e){return typeof e=="function"?M4e(e):(e instanceof IDBTransaction&&O4e(e),A4e(e,I4e())?new Proxy(e,_F):e)}function Fp(e){if(e instanceof IDBRequest)return P4e(e);
220if(lM.has(e))return lM.get(e);const t=D4e(e);return t!==e&&(lM.set(e,t),HB.set(t,e)),t}const uM=e=>HB.get(e);function L4e(e,t,{blocked:n,upgrade:r,blocking:i,terminated:o}={}){const s=indexedDB.open(e,t),a=Fp(s);return r&&s.addEventListener("upgradeneeded",c=>{r(Fp(s.result),c.oldVersion,c.newVersion,Fp(s.transaction),c)}),n&&s.addEventListener("blocked",c=>n(c.oldVersion,c.newVersion,c)),a.then(c=>{o&&c.addEventListener("close",()=>o()),i&&c.addEventListener("versionchange",l=>i(l.oldVersion,l.newVersion,l))}).catch(()=>{}),a}const F4e=["get","getKey","getAll","getAllKeys","count"],j4e=["put","add","delete","clear"],dM=new Map;function mQ(e,t){if(!(e instanceof IDBDatabase&&!(t in e)&&typeof t=="string"))return;if(dM.get(t))return dM.get(t);const n=t.replace(/FromIndex$/,""),r=t!==n,i=j4e.includes(n);if(!(n in(r?IDBIndex:IDBObjectStore).prototype)||!(i||F4e.includes(n)))return;const o=async function(s,...a){const c=this.transaction(s,i?"readwrite":"readonly");let l=c.store;return r&&(l=l.index(a.shift())),(await Promise.all([l[n](...a),i&&c.done]))[0]};return dM.set(t,o),o}N4e(e=>({...e,get:(t,n,r)=>mQ(t,n)||e.get(t,n,r),has:(t,n)=>!!mQ(t,n)||e.has(t,n)}));/**
221 * @license
222 * Copyright 2019 Google LLC
223 *
224 * Licensed under the Apache License, Version 2.0 (the "License");
225 * you may not use this file except in compliance with the License.
226 * You may obtain a copy of the License at
227 *
228 *   http://www.apache.org/licenses/LICENSE-2.0
229 *
230 * Unless required by applicable law or agreed to in writing, software
231 * distributed under the License is distributed on an "AS IS" BASIS,
232 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
233 * See the License for the specific language governing permissions and
234 * limitations under the License.
235 */class U4e{constructor(t){this.container=t}getPlatformInfoString(){return this.container.getProviders().map(n=>{if(B4e(n)){const r=n.getImmediate();return`${r.library}/${r.version}`}else return null}).filter(n=>n).join(" ")}}function B4e(e){const t=e.getComponent();return(t==null?void 0:t.type)==="VERSION"}const CF="@firebase/app",gQ="0.10.13";/**
236 * @license
237 * Copyright 2019 Google LLC
238 *
239 * Licensed under the Apache License, Version 2.0 (the "License");
240 * you may not use this file except in compliance with the License.
241 * You may obtain a copy of the License at
242 *
243 *   http://www.apache.org/licenses/LICENSE-2.0
244 *
245 * Unless required by applicable law or agreed to in writing, software
246 * distributed under the License is distributed on an "AS IS" BASIS,
247 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
248 * See the License for the specific language governing permissions and
249 * limitations under the License.
250 */const Jf=new nfe("@firebase/app"),$4e="@firebase/app-compat",H4e="@firebase/analytics-compat",z4e="@firebase/analytics",V4e="@firebase/app-check-compat",W4e="@firebase/app-check",q4e="@firebase/auth",G4e="@firebase/auth-compat",K4e="@firebase/database",Y4e="@firebase/data-connect",Q4e="@firebase/database-compat",X4e="@firebase/functions",J4e="@firebase/functions-compat",Z4e="@firebase/installations",e5e="@firebase/installations-compat",t5e="@firebase/messaging",n5e="@firebase/messaging-compat",r5e="@firebase/performance",i5e="@firebase/performance-compat",o5e="@firebase/remote-config",s5e="@firebase/remote-config-compat",a5e="@firebase/storage",c5e="@firebase/storage-compat",l5e="@firebase/firestore",u5e="@firebase/vertexai-preview",d5e="@firebase/firestore-compat",f5e="firebase",h5e="10.14.1";/**
251 * @license
252 * Copyright 2019 Google LLC
253 *
254 * Licensed under the Apache License, Version 2.0 (the "License");
255 * you may not use this file except in compliance with the License.
256 * You may obtain a copy of the License at
257 *
258 *   http://www.apache.org/licenses/LICENSE-2.0
259 *
260 * Unless required by applicable law or agreed to in writing, software
261 * distributed under the License is distributed on an "AS IS" BASIS,
262 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
263 * See the License for the specific language governing permissions and
264 * limitations under the License.
265 */const EF="[DEFAULT]",p5e={[CF]:"fire-core",[$4e]:"fire-core-compat",[z4e]:"fire-analytics",[H4e]:"fire-analytics-compat",[W4e]:"fire-app-check",[V4e]:"fire-app-check-compat",[q4e]:"fire-auth",[G4e]:"fire-auth-compat",[K4e]:"fire-rtdb",[Y4e]:"fire-data-connect",[Q4e]:"fire-rtdb-compat",[X4e]:"fire-fn",[J4e]:"fire-fn-compat",[Z4e]:"fire-iid",[e5e]:"fire-iid-compat",[t5e]:"fire-fcm",[n5e]:"fire-fcm-compat",[r5e]:"fire-perf",[i5e]:"fire-perf-compat",[o5e]:"fire-rc",[s5e]:"fire-rc-compat",[a5e]:"fire-g
265cs",[c5e]:"fire-gcs-compat",[l5e]:"fire-fst",[d5e]:"fire-fst-compat",[u5e]:"fire-vertex","fire-js":"fire-js",[f5e]:"fire-js-all"};/**
266 * @license
267 * Copyright 2019 Google LLC
268 *
269 * Licensed under the Apache License, Version 2.0 (the "License");
270 * you may not use this file except in compliance with the License.
271 * You may obtain a copy of the License at
272 *
273 *   http://www.apache.org/licenses/LICENSE-2.0
274 *
275 * Unless required by applicable law or agreed to in writing, software
276 * distributed under the License is distributed on an "AS IS" BASIS,
277 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
278 * See the License for the specific language governing permissions and
279 * limitations under the License.
280 */const WA=new Map,m5e=new Map,TF=new Map;function vQ(e,t){try{e.container.addComponent(t)}catch(n){Jf.debug(`Component ${t.name} failed to register with FirebaseApp ${e.name}`,n)}}function V_(e){const t=e.name;if(TF.has(t))return Jf.debug(`There were multiple attempts to register component ${t}.`),!1;TF.set(t,e);for(const n of WA.values())vQ(n,e);for(const n of m5e.values())vQ(n,e);return!0}function ofe(e,t){const n=e.container.getProvider("heartbeat").getImmediate({optional:!0});return n&&n.triggerHeartbeat(),e.container.getProvider(t)}function Af(e){return e.settings!==void 0}/**
281 * @license
282 * Copyright 2019 Google LLC
283 *
284 * Licensed under the Apache License, Version 2.0 (the "License");
285 * you may not use this file except in compliance with the License.
286 * You may obtain a copy of the License at
287 *
288 *   http://www.apache.org/licenses/LICENSE-2.0
289 *
290 * Unless required by applicable law or agreed to in writing, software
291 * distributed under the License is distributed on an "AS IS" BASIS,
292 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
293 * See the License for the specific language governing permissions and
294 * limitations under the License.
295 */const g5e={"no-app":"No Firebase App '{$appName}' has been created - call initializeApp() first","bad-app-name":"Illegal App name: '{$appName}'","duplicate-app":"Firebase App named '{$appName}' already exists with different options or config","app-deleted":"Firebase App named '{$appName}' already deleted","server-app-deleted":"Firebase Server App has been deleted","no-options":"Need to provide options, when not being deployed to hosting via source.","invalid-app-argument":"firebase.{$appName}() takes either no argument or a Firebase App instance.","invali
295d-log-argument":"First argument to `onLog` must be null or a function.","idb-open":"Error thrown when opening IndexedDB. Original error: {$originalErrorMessage}.","idb-get":"Error thrown when reading from IndexedDB. Original error: {$originalErrorMessage}.","idb-set":"Error thrown when writing to IndexedDB. Original error: {$originalErrorMessage}.","idb-delete":"Error thrown when deleting from IndexedDB. Original error: {$originalErrorMessage}.","finalization-registry-not-supported":"FirebaseServerApp deleteOnDeref field defined but the JS runtime does not support FinalizationRegistry.","invalid-server-app-environment":"FirebaseServerApp is not for use in browser environments."},jp=new nE("app","Firebase",g5e);/**
296 * @license
297 * Copyright 2019 Google LLC
298 *
299 * Licensed under the Apache License, Version 2.0 (the "License");
300 * you may not use this file except in compliance with the License.
301 * You may obtain a copy of the License at
302 *
303 *   http://www.apache.org/licenses/LICENSE-2.0
304 *
305 * Unless required by applicable law or agreed to in writing, software
306 * distributed under the License is distributed on an "AS IS" BASIS,
307 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
308 * See the License for the specific language governing permissions and
309 * limitations under the License.
310 */class v5e{constructor(t,n,r){this._isDeleted=!1,this._options=Object.assign({},t),this._config=Object.assign({},n),this._name=n.name,this._automaticDataCollectionEnabled=n.automaticDataCollectionEnabled,this._container=r,this.container.addComponent(new o1("app",()=>this,"PUBLIC"))}get automaticDataCollectionEnabled(){return this.checkDestroyed(),this._automaticDataCollectionEnabled}set automaticDataCollectionEnabled(t){this.checkDestroyed(),this._automaticDataCollectionEnabled=t}get name(){return this.checkDestroyed(),this._name}get options(){return this.checkDestroyed(),this._options}get config(){return this.checkDestroyed(),this._config}get container(){return this._container}get isDeleted(){return this._isDeleted}set isDeleted(t){this._isDeleted=t}checkDestroyed(){if(this.isDeleted)throw jp.create("app-deleted",{appName:this._name})}}/**
311 * @license
312 * Copyright 2019 Google LLC
313 *
314 * Licensed under the Apache License, Version 2.0 (the "License");
315 * you may not use this file except in compliance with the License.
316 * You may obtain a copy of the License at
317 *
318 *   http://www.apache.org/licenses/LICENSE-2.0
319 *
320 * Unless required by applicable law or agreed to in writing, software
321 * distributed under the License is distributed on an "AS IS" BASIS,
322 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
323 * See the License for the specific language governing permissions and
324 * limitations under the License.
325 */const iE=h5e;function sfe(e,t={}){let n=e;typeof t!="object"&&(t={name:t});const r=Object.assign({name:EF,automaticDataCollectionEnabled:!1},t),i=r.name;if(typeof i!="string"||!i)throw jp.create("bad-app-name",{appName:String(i)});if(n||(n=efe()),!n)throw jp.create("no-options");const o=WA.get(i);if(o){if(VA(n,o.options)&&VA(r,o.config))return o;throw jp.create("duplicate-app",{appName:i})}const s=new C4e(i);for(const c of TF.values())s.addComponent(c);const a=new v5e(n,r,s);return WA.set(i,a),a}function y5e(e=EF){const t=WA.get(e);if(!t&&e===EF&&efe())return sfe();if(!t)throw jp.create("no-app",{appName:e});return t}function Ey(e,t,n){var r;let i=(r=p5e[e])!==null&&r!==void 0?r:e;n&&(i+=`-${n}`);const o=i.match(/\s|\//),s=t.match(/\s|\//);if(o||s){const a=[`Unable to register library "${i}" with version "${t}":`];o&&a.push(`library name "${i}" contains illegal characters (whitespace or "/")`),o&&s&&a.push("and"),s&&a.push(`version name "${t}" contains illegal characters (whitespace or "/")`),Jf.warn(a.join(" "));return}V_(new o1(`${i}-version`,()=>({library:i,version:t}),"VERSION"))}/**
326 * @license
327 * Copyright 2021 Google LLC
328 *
329 * Licensed under the Apache License, Version 2.0 (the "License");
330 * you may not use this file except in compliance with the License.
331 * You may obtain a copy of the License at
332 *
333 *   http://www.apache.org/licenses/LICENSE-2.0
334 *
335 * Unless required by applicable law or agreed to in writing, softw
335are
336 * distributed under the License is distributed on an "AS IS" BASIS,
337 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
338 * See the License for the specific language governing permissions and
339 * limitations under the License.
340 */const b5e="firebase-heartbeat-database",w5e=1,W_="firebase-heartbeat-store";let fM=null;function afe(){return fM||(fM=L4e(b5e,w5e,{upgrade:(e,t)=>{switch(t){case 0:try{e.createObjectStore(W_)}catch(n){console.warn(n)}}}}).catch(e=>{throw jp.create("idb-open",{originalErrorMessage:e.message})})),fM}async function S5e(e){try{const n=(await afe()).transaction(W_),r=await n.objectStore(W_).get(cfe(e));return await n.done,r}catch(t){if(t instanceof pd)Jf.warn(t.message);else{const n=jp.create("idb-get",{originalErrorMessage:t==null?void 0:t.message});Jf.warn(n.message)}}}async function yQ(e,t){try{const r=(await afe()).transaction(W_,"readwrite");await r.objectStore(W_).put(t,cfe(e)),await r.done}catch(n){if(n instanceof pd)Jf.warn(n.message);else{const r=jp.create("idb-set",{originalErrorMessage:n==null?void 0:n.message});Jf.warn(r.message)}}}function cfe(e){return`${e.name}!${e.options.appId}`}/**
341 * @license
342 * Copyright 2021 Google LLC
343 *
344 * Licensed under the Apache License, Version 2.0 (the "License");
345 * you may not use this file except in compliance with the License.
346 * You may obtain a copy of the License at
347 *
348 *   http://www.apache.org/licenses/LICENSE-2.0
349 *
350 * Unless required by applicable law or agreed to in writing, software
351 * distributed under the License is distributed on an "AS IS" BASIS,
352 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
353 * See the License for the specific language governing permissions and
354 * limitations under the License.
355 */const _5e=1024,C5e=720*60*60*1e3;class E5e{constructor(t){this.container=t,this._heartbeatsCache=null;const n=this.container.getProvider("app").getImmediate();this._storage=new k5e(n),this._heartbeatsCachePromise=this._storage.read().then(r=>(this._heartbeatsCache=r,r))}async triggerHeartbeat(){var t,n;try{const i=this.container.getProvider("platform-logger").getImmediate().getPlatformInfoString(),o=bQ();return((t=this._heartbeatsCache)===null||t===void 0?void 0:t.heartbeats)==null&&(this._heartbeatsCache=await this._heartbeatsCachePromise,((n=this._heartbeatsCache)===null||n===void 0?void 0:n.heartbeats)==null)||this._heartbeatsCache.lastSentHeartbeatDate===o||this._heartbeatsCache.heartbeats.some(s=>s.date===o)?void 0:(this._heartbeatsCache.heartbeats.push({date:o,agent:i}),this._heartbeatsCache.heartbeats=this._heartbeatsCache.heartbeats.filter(s=>{const a=new Date(s.date).valueOf();return Date.now()-a<=C5e}),this._storage.overwrite(this._heartbeatsCache))}catch(r){Jf.warn(r)}}async getHeartbeatsHeader(){var t;try{if(this._heartbeatsCache===null&&await this._heartbeatsCachePromise,((t=this._heartbeatsCache)===null||t===void 0?void 0:t.heartbeats)==null||this._heartbeatsCache.heartbeats.length===0)return"";const n=bQ(),{heartbeatsToSend:r,unsentEntries:i}=T5e(this._heartbeatsCache.heartbeats),o=Jde(JSON.stringify({version:2,heartbeats:r}));return this._heartbeatsCache.lastSentHeartbeatDate=n,i.length>0?(this._heartbeatsCache.heartbeats=i,await this._storage.overwrite(this._heartbeatsCache)):(this._heartbeatsCache.heartbeats=[],this._storage.overwrite(this._heartbeatsCache)),o}catch(n){return Jf.warn(n),""}}}function bQ(){return new Date().toISOString().substring(0,10)}function T5e(e,t=_5e){const n=[];let r=e.slice();for(const i of e){const o=n.find(s=>s.agent===i.agent);if(o){if(o.dates.push(i.date),wQ(n)>t){o.dates.pop();break}}else if(n.push({agent:i.agent,dates:[i.date]}),wQ(n)>t){n.pop();break}r=r.slice(1)}return{heartbeatsToSend:n,unsentEntries:r}}class k5e{constructor(t){this.app=t,this._canUseIndexedDBPromise=this.runIndexedDBEnvironmentCheck()}async runIndexedDBEnvironmentCheck(){return d4e()?f4e().then(()=>!0).catch(()=>!1):!1}async read(){if(await this._canUseIndexedDBPromise){const n=await S5e(this.app);return n!=null&&n.heartbeats?n:{heartbeats:[]}}else return{heartbeats:[]}}async overwrite(t){var n;if(await this._canUseIndexedDBPromise){const i=await this.read();return yQ(this.app,{lastSentHeartbeatDate:(n=t.lastSentHeartbeatDate)!==null&&n!==void 0?n:i.lastSentHeartbeatDate,heartbeats:t.heartbeats})}else return}async add(t){var n;if(await this._canUseIndexedDBPromise){const i=await this.read();return yQ(this.app,{lastSentHeartbeatDate:(n=t.lastSentHeartbeatDate)!==null&&n!==void 0?n:i.lastSentHeartbeatDate,heartbeats:[...i.heartbeats,...t.heartbeats]})}else return}}function wQ(e){return Jde(JSON.stringify({version:2,heartbeats:e})).length}/**
356 * @license
357 * Copyright 2019 Google LLC
358 *
359 * Licensed under the Apache License, Version 2.0 (the "License");
360 * you may not use this file except in compliance with the License.
361 * You may obtain a copy of the License at
362 *
363 *   http://www.apache.org/licenses/LICENSE-2.0
364 *
365 * Unless required by applicable law or agreed to in writing, software
366 * distributed under the License is distributed on an "AS IS" BASIS,
367 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
368 * See the License for the specific language governing permissions and
369 * limitations under the License.
370 */function x5e(e){V_(new o1("platform-logger",t=>new U4e(t),"PRIVATE")),V_(new o1("heartbeat",t=>new E5e(t),"PRIVATE")),Ey(CF,gQ,e),Ey(CF,gQ,"esm2017"),Ey("fire-js","")}x5e("");var A5e="firebase",I5e="10.14.1";/**
371 * @license
372 * Copyright 2020 Google LLC
373 *
374 * Licensed under the Apache License, Version 2.0 (the "License");
375 * you may not use this file except in compliance with the License.
376 * You may obtain a copy of the License at
377 *
378 *   http://www.apache.org/licenses/LICENSE-2.0
379 *
380 * Unless required by applicable law or agreed to in writing, software
381 * distributed under the License is distributed on an "AS IS" BASIS,
382 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
383 * See the License for the specific language governing permissions and
384 * limitations under the License.
385 */Ey(A5e,I5e,"app");const R5e={apiKey:"AIzaSyA4uqxa9vOOMY7B1RcLWxxots4Idye9lnE",authDomain:"byrdhouseprod.firebaseapp.com",projectId:"byrdhouseprod",storageBucket:"byrdhouseprod.appspot.com",messagingSenderId:"359239151138",appId:"1:359239151138:web:197225f406b5252a65247b",measurementId:"G-54QBH4H6C0"};function P5e(){sfe(R5e)}function ua(e){const t=typeof e=="string"?e.charCodeAt(0):e;return t>=97&&t<=122||t>=65&&t<=90}function M0(e){const t=typeof e=="string"?e.charCodeAt(0):e;return t>=48&&t<=57}function Mh(e){return ua(e)||M0(e)}const O5e=["art-lojban","cel-gaulish","no-bok","no-nyn","zh-guoyu","zh-hakka","zh-min","zh-min-nan","zh-xiang"],SQ={"en-gb-oed":"en-GB-oxendict","i-ami":"ami","i-bnn":"bnn","i-default":null,"i-enochian":null,"i-hak":"hak","i-klingon":"tlh","i-lux":"lb","i-mingo":null,"i-navajo":"nv","i-pwn":"pwn","i-tao":"tao","i-tay":"tay","i-tsu":"tsu","sgn-be-fr":"sfb","sgn-be-nl":"vgt","sgn-ch-de":"sgg","art-lojban":"jbo","cel-gaulish":null,"no-bok":"nb","no-nyn":"nn","zh-guoyu":"cmn","zh-hakka":"hak","zh-min":null,"zh-min-nan":"nan","zh-xiang":"hsn"},N5e={}.hasOwnProperty;function lfe(e,t={}){const n=_Q(),r=String(e),i=r.toLowerCase();let o=0;if(e==null)throw new Error("Expected string, got `"+e+"`");if(N5e.call(SQ,i)){const a=SQ[i];return(t.normalize===void 0||t.normalize===null||t.normalize)&&typeof a=="string"?lfe(a):(n[O5e.includes(i)?"regular":"irregular"]=r,n)}for(;ua(i.charCodeAt(o))&&o<9;)o++;if(o>1&&o<9){if(n.language=r.slice(0,o),o<4){let a=0;for(;i.charCodeAt(o)===45&&ua(i.charCodeAt(o+1))&&ua(i.charCodeAt(o+2))&&ua(i.charCodeAt(o+3))&&!ua(i.charCodeAt(o+4));){if(a>2)return s(o,3,"Too many extended language subtags, expected at most 3 subtags");n.extendedLanguageSubtags.push(r.slice(o+1,o+4)),o+=4,a++}}for(i.charCodeAt(o)===45&&ua(i.charCodeAt(o+1))&&ua(i.charCodeAt(o+2))&&ua(i.charCodeAt(o+3))&&ua(i.charCodeAt(o+4))&&!ua(i.charCodeAt(o+5))&&(n.script=r.slice(o+1,o+5),o+=5),i.charCodeAt(o)===45&&(ua(i.charCodeAt(o+1))&&ua(i.charCodeAt(o+2))&&!ua(i.charCodeAt(o+3))?(n.region=r.slice(o+1,o+3),o+=3):M0(i.charCodeAt(o+1))&&M0(i.charCodeAt(o+2))&&M0(i.charCodeAt(o+3))&&!M0(i.charCodeAt(o+4))&&(n.region=r.slice(o+1,o+4),o+=4));i.charCodeAt(o)===45;){const a=o+1;let c=a;for(;Mh(i.charCodeAt(c));){if(c-a>7)return s(c,1,"Too long variant, expected at most 8 characters");c++}if(c-a>4||c-a>3&&M0(i.charCodeAt(a)))n.variants.push(r.slice(a,c)),o=c;else break}for(;i.charCodeAt(o)===45&&!(i.charCodeAt(o+1)===120||!Mh(i.charCodeAt(o+1))||i.charCodeAt(o+2)!==45||!Mh(i.charCodeAt(o+3)));){let a=o+2,c=0;for(;i.charCodeAt(a)===45&&Mh(i.charCodeAt(a+1))&&Mh(i.charCodeAt(a+2));){const l=a+1;for(a=l+2,c++;Mh(i.charCodeAt(a));){if(a-l>7)return s(a,2,"Too long extension, expected at most 8 characters");a++}}if(!c)return s(a,4,"Empty extension, extensions must have at least 2 characters of content");n.extensions.push({singleton:r.charAt(o+1),extensions:r.slice(o+3,a).split("-")}
385),o=a}}else o=0;if(o===0&&i.charCodeAt(o)===120||i.charCodeAt(o)===45&&i.charCodeAt(o+1)===120){o=o?o+2:1;let a=o;for(;i.charCodeAt(a)===45&&Mh(i.charCodeAt(a+1));){const c=o+1;for(a=c;Mh(i.charCodeAt(a));){if(a-c>7)return s(a,5,"Too long private-use area, expected at most 8 characters");a++}n.privateuse.push(r.slice(o+1,a)),o=a}}if(o!==r.length)return s(o,6,"Found superfluous content after tag");return n;function s(a,c,l){return t.warning&&t.warning(l,c,a),t.forgiving?n:_Q()}}function _Q(){return{language:null,extendedLanguageSubtags:[],script:null,region:null,variants:[],extensions:[],privateuse:[],irregular:null,regular:null}}const M5e=[{code:"AD",emoji:"🇦🇩",unicode:"U+1F1E6 U+1F1E9",name:"Andorra",title:"flag for Andorra",dialCode:"+376"},{code:"AE",emoji:"🇦🇪",unicode:"U+1F1E6 U+1F1EA",name:"United Arab Emirates",title:"flag for United Arab Emirates",dialCode:"+971"},{code:"AF",emoji:"🇦🇫",unicode:"U+1F1E6 U+1F1EB",name:"Afghanistan",title:"flag for Afghanistan",dialCode:"+93"},{code:"AG",emoji:"🇦🇬",unicode:"U+1F1E6 U+1F1EC",name:"Antigua and Barbuda",title:"flag for Antigua and Barbuda",dialCode:"+1268"},{code:"AI",emoji:"🇦🇮",unicode:"U+1F1E6 U+1F1EE",name:"Anguilla",title:"flag for Anguilla",dialCode:"+1 264"},{code:"AL",emoji:"🇦🇱",unicode:"U+1F1E6 U+1F1F1",name:"Albania",title:"flag for Albania",dialCode:"+355"},{code:"AM",emoji:"🇦🇲",unicode:"U+1F1E6 U+1F1F2",name:"Armenia",title:"flag for Armenia",dialCode:"+374"},{code:"AO",emoji:"🇦🇴",unicode:"U+1F1E6 U+1F1F4",name:"Angola",title:"flag for Angola",dialCode:"+244"},{code:"AQ",emoji:"🇦🇶",unicode:"U+1F1E6 U+1F1F6",name:"Antarctica",title:"flag for Antarctica",dialCode:null},{code:"AR",emoji:"🇦🇷",unicode:"U+1F1E6 U+1F1F7",name:"Argentina",title:"flag for Argentina",dialCode:"+54"},{code:"AS",emoji:"🇦🇸",unicode:"U+1F1E6 U+1F1F8",name:"American Samoa",title:"flag for American Samoa",dialCode:"+1 684"},{code:"AT",emoji:"🇦🇹",unicode:"U+1F1E6 U+1F1F9",name:"Austria",title:"flag for Austria",dialCode:"+43"},{code:"AU",emoji:"🇦🇺",unicode:"U+1F1E6 U+1F1FA",name:"Australia",title:"flag for Australia",dialCode:"+61"},{code:"AW",emoji:"🇦🇼",unicode:"U+1F1E6 U+1F1FC",name:"Aruba",title:"flag for Aruba",dialCode:"+297"},{code:"AX",emoji:"🇦🇽",unicode:"U+1F1E6 U+1F1FD",name:"Åland Islands",title:"flag for Åland Islands",dialCode:""},{code:"AZ",emoji:"🇦🇿",unicode:"U+1F1E6 U+1F1FF",name:"Azerbaijan",title:"flag for Azerbaijan",dialCode:"+994"},{code:"BA",emoji:"🇧🇦",unicode:"U+1F1E7 U+1F1E6",name:"Bosnia and Herzegovina",title:"flag for Bosnia and Herzegovina",dialCode:"+387"},{code:"BB",emoji:"🇧🇧",unicode:"U+1F1E7 U+1F1E7",name:"Barbados",title:"flag for Barbados",dialCode:"+1 246"},{code:"BD",emoji:"🇧🇩",unicode:"U+1F1E7 U+1F1E9",name:"Bangladesh",title:"flag for Bangladesh",dialCode:"+880"},{code:"BE",emoji:"🇧🇪",unicode:"U+1F1E7 U+1F1EA",name:"Belgium",title:"flag for Belgium",dialCode:"+32"},{code:"BF",emoji:"🇧🇫",unicode:"U+1F1E7 U+1F1EB",name:"Burkina Faso",title:"flag for Burkina Faso",dialCode:"+226"},{code:"BG",emoji:"🇧🇬",unicode:"U+1F1E7 U+1F1EC",name:"Bulgaria",title:"flag for Bulgaria",dialCode:"+359"},{code:"BH",emoji:"🇧🇭",unicode:"U+1F1E7 U+1F1ED",name:"Bahrain",title:"flag for Bahrain",dialCode:"+973"},{code:"BI",emoji:"🇧🇮",unicode:"U+1F1E7 U+1F1EE",name:"Burundi",title:"flag for Burundi",dialCode:"+257"},{code:"BJ",emoji:"🇧🇯",unicode:"U+1F1E7 U+1F1EF",name:"Benin",title:"flag for Benin",dialCode:"+229"},{code:"BL",emoji:"🇧🇱",unicode:"U+1F1E7 U+1F1F1",name:"Saint Barthélemy",title:"flag for Saint Barthélemy",dialCode:"+590"},{code:"BM",emoji:"🇧🇲",unicode:"U+1F1E7 U+1F1F2",name:"Bermuda",title:"flag for Bermuda",dialCode:"+1 441"},{code:"BN",emoji:"🇧🇳",unicode:"U+1F1E7 U+1F1F3",name:"Brunei Darussalam",title:"flag for Brunei Darussalam",dialCode:"+673"},{code:"BO",emoji:"🇧🇴",unicode:"U+1F1E7 U+1F1F4",name:"Bolivia",title:"flag for Bolivia",dialCode:"+591"},{code:"BQ",emoji:"🇧🇶",unicode:"U+1F1E7 U+1F1F6",name:"Bonaire, Sint Eustatius and Saba",title:"flag for Bonaire, Sint Eustatius and Saba"},{code:"BR",emoji:"🇧🇷",unicode:"U+1F1E7 U+1F1F7",name:"Brazil",title:"flag for Brazil",dialCode:"+55"},{code:"BS",emoji:"🇧🇸",unicode:"U+1F1E7 U+1F1F8",name:"Bahamas",title:"flag for Bahamas",dialCode:"+1 242"},{code:"BT",emoji:"🇧🇹",unicode:"U+1F1E7 U+1F1F9",name:"Bhutan",title:"flag for Bhutan",dialCode:"+975"},{code:"BV",emoji:"🇧🇻",unicode:"U+1F1E7 U+1F1FB",name:"Bouvet Island",title:"flag for Bouvet Island"},{code:"BW",emoji:"🇧🇼",unicode:"U+1F1E7 U+1F1FC",name:"Botswana",title:"flag for Botswana",dialCode:"+267"},{code:"BY",emoji:"🇧🇾",unicode:"U+1F1E7 U+1F1FE",name:"Belarus",title:"flag for Belarus",dialCode:"+375"},{code:"BZ",emoji:"🇧🇿",unicode:"U+1F1E7 U+1F1FF",name:"Belize",title:"flag for Belize",dialCode:"+501"},{code:"CA",emoji:"🇨🇦",unicode:"U+1F1E8 U+1F1E6",name:"Canada",title:"flag for Canada",dialCode:"+1"},{code:"CC",emoji:"🇨🇨",unicode:"U+1F1E8 U+1F1E8",name:"Cocos (Keeling) Islands",title:"flag for Cocos (Keeling) Islands",dialCode:"+61"},{code:"CD",emoji:"🇨🇩",unicode:"U+1F1E8 U+1F1E9",name:"Congo",title:"flag for Congo",dialCode:"+243"},{code:"CF",emoji:"🇨🇫",unicode:"U+1F1E8 U+1F1EB",name:"Central African Republic",title:"flag for Central African Republic",dialCode:"+236"},{code:"CG",emoji:"🇨🇬",unicode:"U+1F1E8 U+1F1EC",name:"Congo",title:"flag for Congo",dialCode:"+242"},{code:"CH",emoji:"🇨🇭",unicode:"U+1F1E8 U+1F1ED",name:"Switzerland",title:"flag for Switzerland",dialCode:"+41"},{code:"CI",emoji:"🇨🇮",unicode:"U+1F1E8 U+1F1EE",name:"Côte D'Ivoire",title:"flag for Côte D'Ivoire",dialCode:"+225"},{code:"CK",emoji:"🇨🇰",unicode:"U+1F1E8 U+1F1F0",name:"Cook Islands",title:"flag for Cook Islands",dialCode:"+682"},{code:"CL",emoji:"🇨🇱",unicode:"U+1F1E8 U+1F1F1",name:"Chile",title:"flag for Chile",dialCode:"+56"},{code:"CM",emoji:"🇨🇲",unicode:"U+1F1E8 U+1F1F2",name:"Cameroon",title:"flag for Cameroon",dialCode:"+237"},{code:"CN",emoji:"🇨🇳",unicode:"U+1F1E8 U+1F1F3",name:"China",title:"flag for China",dialCode:"+86"},{code:"CO",emoji:"🇨🇴",unicode:"U+1F1E8 U+1F1F4",name:"Colombia",title:"flag for Colombia",dialCode:"+57"},{code:"CR",emoji:"🇨🇷",unicode:"U+1F1E8 U+1F1F7",name:"Costa Rica",title:"flag for Costa Rica",dialCode:"+506"},{code:"CU",emoji:"🇨🇺",unicode:"U+1F1E8 U+1F1FA",name:"Cuba",title:"flag for Cuba",dialCode:"+53"},{code:"CV",emoji:"🇨🇻",unicode:"U+1F1E8 U+1F1FB",name:"Cape Verde",title:"flag for Cape Verde",dialCode:"+238"},{code:"CW",emoji:"🇨🇼",unicode:"U+1F1E8 U+1F1FC",name:"Curaçao",title:"flag for Curaçao"},{code:"CX",emoji:"🇨🇽",unicode:"U+1F1E8 U+1F1FD",name:"Christmas Island",title:"flag for Christmas Island",dialCode:"+61"},{code:"CY",emoji:"🇨🇾",unicode:"U+1F1E8 U+1F1FE",name:"Cyprus",title:"flag for Cyprus",dialCode:"+537"},{code:"CZ",emoji:"🇨🇿",unicode:"U+1F1E8 U+1F1FF",name:"Czech Republic",title:"flag for Czech Republic",dialCode:"+420"},{code:"DE",emoji:"🇩🇪",unicode:"U+1F1E9 U+1F1EA",name:"Germany",title:"flag for Germany",dialCode:"+49"},{code:"DJ",emoji:"🇩🇯",unicode:"U+1F1E9 U+1F1EF",name:"Djibouti",title:"flag for Djibouti",dialCode:"+253"},{code:"DK",emoji:"🇩🇰",unicode:"U+1F1E9 U+1F1F0",name:"Denmark",title:"flag for Denmark",dialCode:"+45"},{code:"DM",emoji:"🇩🇲",unicode:"U+1F1E9 U+1F1F2",name:"Dominica",title:"flag for Dominica",dialCode:"+1 767"},{code:"DO",emoji:"🇩🇴",unicode:"U+1F1E9 U+1F1F4",name:"Dominican Republic",title:"flag for Dominican Republic",dialCode:"+1 849"},{code:"DZ",emoji:"🇩🇿",unicode:"U+1F1E9 U+1F1FF",name:"Algeria",title:"flag for Algeria",dialCode:"+213"},{code:"EC",emoji:"🇪🇨",unicode:"U+1F1EA U+1F1E8",name:"Ecuador",title:"flag for Ecuador",dialCode:"+593"},{code:"EE",emoji:"🇪🇪",unicode:"U+1F1EA U+1F1EA",name:"Estonia",title:"flag for Estonia",dialCode:"+372"},{code:"EG",emoji:"🇪🇬",unicode:"U+1F1EA U+1F1EC",name:"Egypt",title:"flag for Egypt",dialCode:"+20"},{code:"EH",emoji:"🇪🇭",unicode:"U+1F1EA U+1F1ED",name:"Western Sahara",title:"flag for Western Sahara"},{code:"ER",emoji:"🇪🇷",unicode:"U+1F1EA U+1F1F7",name:"Eritrea",title:"flag for Eritrea",dialCode:"+291"},{code:"ES",emoji:"🇪🇸",unicode:"U+1F1EA U+1F1F8",name:"Spain",title:"flag for Spain",dialCode:"+34"},{code:"ET",emoji:"🇪🇹",unicode:"U+1F1EA U+1F1F9",name:"Ethiopia",title:"flag for Ethiopia",dialCode:"+251"},{code:"EU",emoji:"🇪🇺",unicode:"U+1F1EA U+1F1FA",name:"European Union",title:"flag for European Union"},{code:"FI",emoji:"🇫🇮",unicode:"U+1F1EB U+1F1EE",name:"Finland",title:"flag for Finland",dialCode:"+358"},{code:"FJ",emoji:"🇫🇯",unicode:"U+1F1EB U+1F1EF",name:"Fiji",title:"flag for Fiji",dialCode:"+679"},{code:"FK",emoji:"🇫🇰",unicode:"U+1F1EB U+1F1F0",name:"Falkland Islands (Malvinas)",title:"flag for Falkland Islands (Malvinas)",dialCode:"+500"},{code:"FM",emoji:"🇫🇲",unicode:"U+1F1EB U+1F1F2",name:"Micronesia",title:"flag for Micronesia",dialCode:"+691"},{code:"FO",emoji:"🇫🇴",unicode:"U+1F1EB U+1F1F4",name:"Faroe Islands",title:"flag for Faroe Islands",dialCode:"+298"},{code:"FR",emoji:"🇫🇷",unicode:"U+1F1EB U+1F1F7",name:"France",title:"flag for France",dialCode:"+33"},{code:"GA",emoji:"🇬🇦",unicode:"U+1F1EC U+1F1E6",name:"Gabon",title:"flag for Gabon",dialCode:"+241"},{code:"GB",emoji:"🇬🇧",unicode:"U+1F1EC U+1F1E7",name:"United Kingdom",title:"flag for United Kingdom",dialCode:"+44"},{code:"GD",emoji:"🇬🇩",unicode:"U+1F1EC U+1F1E9",name:"Grenada",title:"flag for Grenada",dialCode:"+1 473"},{code:"GE",emoji:"🇬🇪",unicode:"U+1F1EC U+1F1EA",name:"Georgia",title:"flag for Georgia",dialCode:"+995"},{code:"GF",emoji:"🇬🇫",unicode:"U+1F1EC U+1F1EB",name:"French Guiana",title:"flag for French Guiana",dialCode:"+594"},{code:"GG",emoji:"🇬🇬",unicode:"U+1F1EC U+1F1EC",name:"Guernsey",t
385itle:"flag for Guernsey",dialCode:"+44"},{code:"GH",emoji:"🇬🇭",unicode:"U+1F1EC U+1F1ED",name:"Ghana",title:"flag for Ghana",dialCode:"+233"},{code:"GI",emoji:"🇬🇮",unicode:"U+1F1EC U+1F1EE",name:"Gibraltar",title:"flag for Gibraltar",dialCode:"+350"},{code:"GL",emoji:"🇬🇱",unicode:"U+1F1EC U+1F1F1",name:"Greenland",title:"flag for Greenland",dialCode:"+299"},{code:"GM",emoji:"🇬🇲",unicode:"U+1F1EC U+1F1F2",name:"Gambia",title:"flag for Gambia",dialCode:"+220"},{code:"GN",emoji:"🇬🇳",unicode:"U+1F1EC U+1F1F3",name:"Guinea",title:"flag for Guinea",dialCode:"+224"},{code:"GP",emoji:"🇬🇵",unicode:"U+1F1EC U+1F1F5",name:"Guadeloupe",title:"flag for Guadeloupe",dialCode:"+590"},{code:"GQ",emoji:"🇬🇶",unicode:"U+1F1EC U+1F1F6",name:"Equatorial Guinea",title:"flag for Equatorial Guinea",dialCode:"+240"},{code:"GR",emoji:"🇬🇷",unicode:"U+1F1EC U+1F1F7",name:"Greece",title:"flag for Greece",dialCode:"+30"},{code:"GS",emoji:"🇬🇸",unicode:"U+1F1EC U+1F1F8",name:"South Georgia",title:"flag for South Georgia",dialCode:"+500"},{code:"GT",emoji:"🇬🇹",unicode:"U+1F1EC U+1F1F9",name:"Guatemala",title:"flag for Guatemala",dialCode:"+502"},{code:"GU",emoji:"🇬🇺",unicode:"U+1F1EC U+1F1FA",name:"Guam",title:"flag for Guam",dialCode:"+1 671"},{code:"GW",emoji:"🇬🇼",unicode:"U+1F1EC U+1F1FC",name:"Guinea-Bissau",title:"flag for Guinea-Bissau",dialCode:"+245"},{code:"GY",emoji:"🇬🇾",unicode:"U+1F1EC U+1F1FE",name:"Guyana",title:"flag for Guyana",dialCode:"+595"},{code:"HK",emoji:"🇭🇰",unicode:"U+1F1ED U+1F1F0",name:"Hong Kong",title:"flag for Hong Kong",dialCode:"+852"},{code:"HM",emoji:"🇭🇲",unicode:"U+1F1ED U+1F1F2",name:"Heard Island and Mcdonald Islands",title:"flag for Heard Island and Mcdonald Islands"},{code:"HN",emoji:"🇭🇳",unicode:"U+1F1ED U+1F1F3",name:"Honduras",title:"flag for Honduras",dialCode:"+504"},{code:"HR",emoji:"🇭🇷",unicode:"U+1F1ED U+1F1F7",name:"Croatia",title:"flag for Croatia",dialCode:"+385"},{code:"HT",emoji:"🇭🇹",unicode:"U+1F1ED U+1F1F9",name:"Haiti",title:"flag for Haiti",dialCode:"+509"},{code:"HU",emoji:"🇭🇺",unicode:"U+1F1ED U+1F1FA",name:"Hungary",title:"flag for Hungary",dialCode:"+36"},{code:"ID",emoji:"🇮🇩",unicode:"U+1F1EE U+1F1E9",name:"Indonesia",title:"flag for Indonesia",dialCode:"+62"},{code:"IE",emoji:"🇮🇪",unicode:"U+1F1EE U+1F1EA",name:"Ireland",title:"flag for Ireland",dialCode:"+353"},{code:"IL",emoji:"🇮🇱",unicode:"U+1F1EE U+1F1F1",name:"Israel",title:"flag for Israel",dialCode:"+972"},{code:"IM",emoji:"🇮🇲",unicode:"U+1F1EE U+1F1F2",name:"Isle of Man",title:"flag for Isle of Man",dialCode:"+44"},{code:"IN",emoji:"🇮🇳",unicode:"U+1F1EE U+1F1F3",name:"India",title:"flag for India",dialCode:"+91"},{code:"IO",emoji:"🇮🇴",unicode:"U+1F1EE U+1F1F4",name:"British Indian Ocean Territory",title:"flag for British Indian Ocean Territory",dialCode:"+246"},{code:"IQ",emoji:"🇮🇶",unicode:"U+1F1EE U+1F1F6",name:"Iraq",title:"flag for Iraq",dialCode:"+964"},{code:"IR",emoji:"🇮🇷",unicode:"U+1F1EE U+1F1F7",name:"Iran",title:"flag for Iran",dialCode:"+98"},{code:"IS",emoji:"🇮🇸",unicode:"U+1F1EE U+1F1F8",name:"Iceland",title:"flag for Iceland",dialCode:"+354"},{code:"IT",emoji:"🇮🇹",unicode:"U+1F1EE U+1F1F9",name:"Italy",title:"flag for Italy",dialCode:"+39"},{code:"JE",emoji:"🇯🇪",unicode:"U+1F1EF U+1F1EA",name:"Jersey",title:"flag for Jersey",dialCode:"+44"},{code:"JM",emoji:"🇯🇲",unicode:"U+1F1EF U+1F1F2",name:"Jamaica",title:"flag for Jamaica",dialCode:"+1 876"},{code:"JO",emoji:"🇯🇴",unicode:"U+1F1EF U+1F1F4",name:"Jordan",title:"flag for Jordan",dialCode:"+962"},{code:"JP",emoji:"🇯🇵",unicode:"U+1F1EF U+1F1F5",name:"Japan",title:"flag for Japan",dialCode:"+81"},{code:"KE",emoji:"🇰🇪",unicode:"U+1F1F0 U+1F1EA",name:"Kenya",title:"flag for Kenya",dialCode:"+254"},{code:"KG",emoji:"🇰🇬",unicode:"U+1F1F0 U+1F1EC",name:"Kyrgyzstan",title:"flag for Kyrgyzstan",dialCode:"+996"},{code:"KH",emoji:"🇰🇭",unicode:"U+1F1F0 U+1F1ED",name:"Cambodia",title:"flag for Cambodia",dialCode:"+855"},{code:"KI",emoji:"🇰🇮",unicode:"U+1F1F0 U+1F1EE",name:"Kiribati",title:"flag for Kiribati",dialCode:"+686"},{code:"KM",emoji:"🇰🇲",unicode:"U+1F1F0 U+1F1F2",name:"Comoros",title:"flag for Comoros",dialCode:"+269"},{code:"KN",emoji:"🇰🇳",unicode:"U+1F1F0 U+1F1F3",name:"Saint Kitts and Nevis",title:"flag for Saint Kitts and Nevis",dialCode:"+1 869"},{code:"KP",emoji:"🇰🇵",unicode:"U+1F1F0 U+1F1F5",name:"North Korea",title:"flag for North Korea",dialCode:"+850"},{code:"KR",emoji:"🇰🇷",unicode:"U+1F1F0 U+1F1F7",name:"South Korea",title:"flag for South Korea",dialCode:"+82"},{code:"KW",emoji:"🇰🇼",unicode:"U+1F1F0 U+1F1FC",name:"Kuwait",title:"flag for Kuwait",dialCode:"+965"},{code:"KY",emoji:"🇰🇾",unicode:"U+1F1F0 U+1F1FE",name:"Cayman Islands",title:"flag for Cayman Islands",dialCode:"+ 345"},{code:"KZ",emoji:"🇰🇿",unicode:"U+1F1F0 U+1F1FF",name:"Kazakhstan",title:"flag for Kazakhstan",dialCode:"+7 7"},{code:"LA",emoji:"🇱🇦",unicode:"U+1F1F1 U+1F1E6",name:"Lao People's Democratic Republic",title:"flag for Lao People's Democratic Republic",dialCode:"+856"},{code:"LB",emoji:"🇱🇧",unicode:"U+1F1F1 U+1F1E7",name:"Lebanon",title:"flag for Lebanon",dialCode:"+961"},{code:"LC",emoji:"🇱🇨",unicode:"U+1F1F1 U+1F1E8",name:"Saint Lucia",title:"flag for Saint Lucia",dialCode:"+1 758"},{code:"LI",emoji:"🇱🇮",unicode:"U+1F1F1 U+1F1EE",name:"Liechtenstein",title:"flag for Liechtenstein",dialCode:"+423"},{code:"LK",emoji:"🇱🇰",unicode:"U+1F1F1 U+1F1F0",name:"Sri Lanka",title:"flag for Sri Lanka",dialCode:"+94"},{code:"LR",emoji:"🇱🇷",unicode:"U+1F1F1 U+1F1F7",name:"Liberia",title:"flag for Liberia",dialCode:"+231"},{code:"LS",emoji:"🇱🇸",unicode:"U+1F1F1 U+1F1F8",name:"Lesotho",title:"flag for Les
385otho",dialCode:"+266"},{code:"LT",emoji:"🇱🇹",unicode:"U+1F1F1 U+1F1F9",name:"Lithuania",title:"flag for Lithuania",dialCode:"+370"},{code:"LU",emoji:"🇱🇺",unicode:"U+1F1F1 U+1F1FA",name:"Luxembourg",title:"flag for Luxembourg",dialCode:"+352"},{code:"LV",emoji:"🇱🇻",unicode:"U+1F1F1 U+1F1FB",name:"Latvia",title:"flag for Latvia",dialCode:"+371"},{code:"LY",emoji:"🇱🇾",unicode:"U+1F1F1 U+1F1FE",name:"Libya",title:"flag for Libya",dialCode:"+218"},{code:"MA",emoji:"🇲🇦",unicode:"U+1F1F2 U+1F1E6",name:"Morocco",title:"flag for Morocco",dialCode:"+212"},{code:"MC",emoji:"🇲🇨",unicode:"U+1F1F2 U+1F1E8",name:"Monaco",title:"flag for Monaco",dialCode:"+377"},{code:"MD",emoji:"🇲🇩",unicode:"U+1F1F2 U+1F1E9",name:"Moldova",title:"flag for Moldova",dialCode:"+373"},{code:"ME",emoji:"🇲🇪",unicode:"U+1F1F2 U+1F1EA",name:"Montenegro",title:"flag for Montenegro",dialCode:"+382"},{code:"MF",emoji:"🇲🇫",unicode:"U+1F1F2 U+1F1EB",name:"Saint Martin (French Part)",title:"flag for Saint Martin (French Part)",dialCode:"+590"},{code:"MG",emoji:"🇲🇬",unicode:"U+1F1F2 U+1F1EC",name:"Madagascar",title:"flag for Madagascar",dialCode:"+261"},{code:"MH",emoji:"🇲🇭",unicode:"U+1F1F2 U+1F1ED",name:"Marshall Islands",title:"flag for Marshall Islands",dialCode:"+692"},{code:"MK",emoji:"🇲🇰",unicode:"U+1F1F2 U+1F1F0",name:"Macedonia",title:"flag for Macedonia",dialCode:"+389"},{code:"ML",emoji:"🇲🇱",unicode:"U+1F1F2 U+1F1F1",name:"Mali",title:"flag for Mali",dialCode:"+223"},{code:"MM",emoji:"🇲🇲",unicode:"U+1F1F2 U+1F1F2",name:"Myanmar",title:"flag for Myanmar",dialCode:"+95"},{code:"MN",emoji:"🇲🇳",unicode:"U+1F1F2 U+1F1F3",name:"Mongolia",title:"flag for Mongolia",dialCode:"+976"},{code:"MO",emoji:"🇲🇴",unicode:"U+1F1F2 U+1F1F4",name:"Macao",title:"flag for Macao",dialCode:"+853"},{code:"MP",emoji:"🇲🇵",unicode:"U+1F1F2 U+1F1F5",name:"Northern Mariana Islands",title:"flag for Northern Mariana Islands",dialCode:"+1 670"},{code:"MQ",emoji:"🇲🇶",unicode:"U+1F1F2 U+1F1F6",name:"Martinique",title:"flag for Martinique",dialCode:"+596"},{code:"MR",emoji:"🇲🇷",unicode:"U+1F1F2 U+1F1F7",name:"Mauritania",title:"flag for Mauritania",dialCode:"+222"},{code:"MS",emoji:"🇲🇸",unicode:"U+1F1F2 U+1F1F8",name:"Montserrat",title:"flag for Montserrat",dialCode:"+1664"},{code:"MT",emoji:"🇲🇹",unicode:"U+1F1F2 U+1F1F9",name:"Malta",title:"flag for Malta",dialCode:"+356"},{code:"MU",emoji:"🇲🇺",unicode:"U+1F1F2 U+1F1FA",name:"Mauritius",title:"flag for Mauritius",dialCode:"+230"},{code:"MV",emoji:"🇲🇻",unicode:"U+1F1F2 U+1F1FB",name:"Maldives",title:"flag for Maldives",dialCode:"+960"},{code:"MW",emoji:"🇲🇼",unicode:"U+1F1F2 U+1F1FC",name:"Malawi",title:"flag for Malawi",dialCode:"+265"},{code:"MX",emoji:"🇲🇽",unicode:"U+1F1F2 U+1F1FD",name:"Mexico",title:"flag for Mexico",dialCode:"+52"},{code:"MY",emoji:"🇲🇾",unicode:"U+1F1F2 U+1F1FE",name:"Malaysia",title:"flag for Malaysia",dialCode:"+60"},{code:"MZ",emoji:"🇲🇿",unicode:"U+1F1F2 U+1F1FF",name:"Mozambique",title:"flag for Mozambique",dialCode:"+258"},{code:"NA",emoji:"🇳🇦",unicode:"U+1F1F3 U+1F1E6",name:"Namibia",title:"flag for Namibia",dialCode:"+264"},{code:"NC",emoji:"🇳🇨",unicode:"U+1F1F3 U+1F1E8",name:"New Caledonia",title:"flag for New Caledonia",dialCode:"+687"},{code:"NE",emoji:"🇳🇪",unicode:"U+1F1F3 U+1F1EA",name:"Niger",title:"flag for Niger",dialCode:"+227"},{code:"NF",emoji:"🇳🇫",unicode:"U+1F1F3 U+1F1EB",name:"Norfolk Island",title:"flag for Norfolk Island",dialCode:"+672"},{code:"NG",emoji:"🇳🇬",unicode:"U+1F1F3 U+1F1EC",name:"Nigeria",title:"flag for Nigeria",dialCode:"+234"},{code:"NI",emoji:"🇳🇮",unicode:"U+1F1F3 U+1F1EE",name:"Nicaragua",title:"flag for Nicaragua",dialCode:"+505"},{code:"NL",emoji:"🇳🇱",unicode:"U+1F1F3 U+1F1F1",name:"Netherlands",title:"flag for Netherlands",dialCode:"+31"},{code:"NO",emoji:"🇳🇴",unicode:"U+1F1F3 U+1F1F4",name:"Norway",title:"flag for Norway",dialCode:"+47"},{code:"NP",emoji:"🇳🇵",unicode:"U+1F1F3 U+1F1F5",name:"Nepal",title:"flag for Nepal",dialCode:"+977"},{code:"NR",emoji:"🇳🇷",unicode:"U+1F1F3 U+1F1F7",name:"Nauru",title:"flag for Nauru",dialCode:"+674"},{code:"NU",emoji:"🇳🇺",unicode:"U+1F1F3 U+1F1FA",name:"Niue",title:"flag for Niue",dialCode:"+683"},{code:"NZ",emoji:"🇳🇿",unicode:"U+1F1F3 U+1F1FF",name:"New Zealand",title:"flag for New Zealand",dialCode:"+64"},{code:"OM",emoji:"🇴🇲",unicode:"U+1F1F4 U+1F1F2",name:"Oman",title:"flag for Oman",dialCode:"+968"},{code:"PA",emoji:"🇵🇦",unicode:"U+1F1F5 U+1F1E6",name:"Panama",title:"flag for Panama",dialCode:"+507"},{code:"PE",emoji:"🇵🇪",unicode:"U+1F1F5 U+1F1EA",name:"Peru",title:"flag for Peru",dialCode:"+51"},{code:"PF",emoji:"🇵🇫",unicode:"U+1F1F5 U+1F1EB",name:"French Polynesia",title:"flag for French Polynesia",dialCode:"+689"},{code:"PG",emoji:"🇵🇬",unicode:"U+1F1F5 U+1F1EC",name:"Papua New Guinea",title:"flag for Papua New Guinea",dialCode:"+675"},{code:"PH",emoji:"🇵🇭",unicode:"U+1F1F5 U+1F1ED",name:"Philippines",title:"flag for Philippines",dialCode:"+63"},{code:"PK",emoji:"🇵🇰",unicode:"U+1F1F5 U+1F1F0",name:"Pakistan",title:"flag for Pakistan",dialCode:"+92"},{code:"PL",emoji:"🇵🇱",unicode:"U+1F1F5 U+1F1F1",name:"Poland",title:"flag for Poland",dialCode:"+48"},{code:"PM",emoji:"🇵🇲",unicode:"U+1F1F5 U+1F1F2",name:"Saint Pierre and Miquelon",title:"flag for Saint Pierre and Miquelon",dialCode:"+508"},{code:"PN",emoji:"🇵🇳",unicode:"U+1F1F5 U+1F1F3",name:"Pitcairn",title:"flag for Pitcairn",dialCode:"+872"},{code:"PR",emoji:"🇵🇷",unicode:"U+1F1F5 U+1F1F7",name:"Puerto Rico",title:"flag for Puerto Rico",dialCode:"+1 939"},{code:"PS",emoji:"🇵🇸",unicode:"U+1F1F5 U+1F1F8",name:"Palestinian Territory",title:"flag for Palestinian Territory",dialCode:"+970"},{code:"PT",emoji:"🇵🇹",unicode:"U+1F1F5 U+1F1F9",name:"Portugal",title:"flag for Portugal",dialCode:"+351"},{code:"PW",emoji:"🇵🇼",unicode:"U+1F1F5 U+1F1FC",name:"Palau",title:"flag for Palau",dialCode:"+680"},{code:"PY",emoji:"🇵🇾",unicode:"U+1F1F5 U+1F1FE",name:"Paraguay",title:"flag for Paraguay",dialCode:"+595"},{code:"QA",emoji:"🇶🇦",unicode:"U+1F1F6 U+1F1E6",name:"Qatar",title:"flag for Qatar",dialCode:"+974"},{code:"RE",emoji:"🇷🇪",unicode:"U+1F1F7 U+1F1EA",name:"Réunion",title:"flag for Réunion",dialCode:"+262"},{code:"RO",emoji:"🇷🇴",unicode:"U+1F1F7 U+1F1F4",name:"Romania",title:"flag for Romania",dialCode:"+40"},{code:"RS",emoji:"🇷🇸",unicode:"U+1F1F7 U+1F1F8",name:"Serbia",title:"flag for Serbia",dialCode:"+381"},{code:"RU",emoji:"🇷🇺",unicode:"U+1F1F7 U+1F1FA",name:"Russia",title:"flag for Russia",dialCode:"+7"},{code:"RW",emoji:"🇷🇼",unicode:"U+1F1F7 U+1F1FC",name:"Rwanda",t
385itle:"flag for Rwanda",dialCode:"+250"},{code:"SA",emoji:"🇸🇦",unicode:"U+1F1F8 U+1F1E6",name:"Saudi Arabia",title:"flag for Saudi Arabia",dialCode:"+966"},{code:"SB",emoji:"🇸🇧",unicode:"U+1F1F8 U+1F1E7",name:"Solomon Islands",title:"flag for Solomon Islands",dialCode:"+677"},{code:"SC",emoji:"🇸🇨",unicode:"U+1F1F8 U+1F1E8",name:"Seychelles",title:"flag for Seychelles",dialCode:"+248"},{code:"SD",emoji:"🇸🇩",unicode:"U+1F1F8 U+1F1E9",name:"Sudan",title:"flag for Sudan",dialCode:"+249"},{code:"SE",emoji:"🇸🇪",unicode:"U+1F1F8 U+1F1EA",name:"Sweden",title:"flag for Sweden",dialCode:"+46"},{code:"SG",emoji:"🇸🇬",unicode:"U+1F1F8 U+1F1EC",name:"Singapore",title:"flag for Singapore",dialCode:"+65"},{code:"SH",emoji:"🇸🇭",unicode:"U+1F1F8 U+1F1ED",name:"Saint Helena, Ascension and Tristan Da Cunha",title:"flag for Saint Helena, Ascension and Tristan Da Cunha",dialCode:"+290"},{code:"SI",emoji:"🇸🇮",unicode:"U+1F1F8 U+1F1EE",name:"Slovenia",title:"flag for Slovenia",dialCode:"+386"},{code:"SJ",emoji:"🇸🇯",unicode:"U+1F1F8 U+1F1EF",name:"Svalbard and Jan Mayen",title:"flag for Svalbard and Jan Mayen",dialCode:"+47"},{code:"SK",emoji:"🇸🇰",unicode:"U+1F1F8 U+1F1F0",name:"Slovakia",title:"flag for Slovakia",dialCode:"+421"},{code:"SL",emoji:"🇸🇱",unicode:"U+1F1F8 U+1F1F1",name:"Sierra Leone",title:"flag for Sierra Leone",dialCode:"+232"},{code:"SM",emoji:"🇸🇲",unicode:"U+1F1F8 U+1F1F2",name:"San Marino",title:"flag for San Marino",dialCode:"+378"},{code:"SN",emoji:"🇸🇳",unicode:"U+1F1F8 U+1F1F3",name:"Senegal",title:"flag for Senegal",dialCode:"+221"},{code:"SO",emoji:"🇸🇴",unicode:"U+1F1F8 U+1F1F4",name:"Somalia",title:"flag for Somalia",dialCode:"+252"},{code:"SR",emoji:"🇸🇷",unicode:"U+1F1F8 U+1F1F7",name:"Suriname",title:"flag for Suriname",dialCode:"+597"},{code:"SS",emoji:"🇸🇸",unicode:"U+1F1F8 U+1F1F8",name:"South Sudan",title:"flag for South Sudan"},{code:"ST",emoji:"🇸🇹",unicode:"U+1F1F8 U+1F1F9",name:"Sao Tome and Principe",title:"flag for Sao Tome and Principe",dialCode:"+239"},{code:"SV",emoji:"🇸🇻",unicode:"U+1F1F8 U+1F1FB",name:"El Salvador",title:"flag for El Salvador",dialCode:"+503"},{code:"SX",emoji:"🇸🇽",unicode:"U+1F1F8 U+1F1FD",name:"Sint Maarten (Dutch Part)",title:"flag for Sint Maarten (Dutch Part)"},{code:"SY",emoji:"🇸🇾",unicode:"U+1F1F8 U+1F1FE",name:"Syrian Arab Republic",title:"flag for Syrian Arab Republic",dialCode:"+963"},{code:"SZ",emoji:"🇸🇿",unicode:"U+1F1F8 U+1F1FF",name:"Swaziland",title:"flag for Swaziland",dialCode:"+268"},{code:"TC",emoji:"🇹🇨",unicode:"U+1F1F9 U+1F1E8",name:"Turks and Caicos Islands",title:"flag for Turks and Caicos Islands",dialCode:"+1 649"},{code:"TD",emoji:"🇹🇩",unicode:"U+1F1F9 U+1F1E9",name:"Chad",title:"flag for Chad",dialCode:"+235"},{code:"TF",emoji:"🇹🇫",unicode:"U+1F1F9 U+1F1EB",name:"French Southern Territories",title:"flag for French Southern Territories"},{code:"TG",emoji:"🇹🇬",unicode:"U+1F1F9 U+1F1EC",name:"Togo",title:"flag for Togo",dialCode:"+228"},{code:"TH",emoji:"🇹🇭",unicode:"U+1F1F9 U+1F1ED",name:"Thailand",title:"flag for Thailand",dialCode:"+66"},{code:"TJ",emoji:"🇹🇯",unicode:"U+1F1F9 U+1F1EF",name:"Tajikistan",title:"flag for Tajikistan",dialCode:"+992"},{code:"TK",emoji:"🇹🇰",unicode:"U+1F1F9 U+1F1F0",name:"Tokelau",title:"flag for Tokelau",dialCode:"+690"},{code:"TL",emoji:"🇹🇱",unicode:"U+1F1F9 U+1F1F1",name:"Timor-Leste",title:"flag for Timor-Leste",dialCode:"+670"},{code:"TM",emoji:"🇹🇲",unicode:"U+1F1F9 U+1F1F2",name:"Turkmenistan",title:"flag for Turkmenistan",dialCode:"+993"},{code:"TN",emoji:"🇹🇳",unicode:"U+1F1F9 U+1F1F3",name:"Tunisia",title:"flag for Tunisia",dialCode:"+216"},{code:"TO",emoji:"🇹🇴",unicode:"U+1F1F9 U+1F1F4",name:"Tonga",title:"flag for Tonga",dialCode:"+676"},{code:"TR",emoji:"🇹🇷",unicode:"U+1F1F9 U+1F1F7",name:"Turkey",title:"flag for Turkey",dialCode:"+90"},{code:"TT",emoji:"🇹🇹",unicode:"U+1F1F9 U+1F1F9",name:"Trinidad and Tobago",title:"flag for Trinidad and Tobago",dialCode:"+1 868"},{code:"TV",emoji:"🇹🇻",unicode:"U+1F1F9 U+1F1FB",name:"Tuvalu",title:"flag for Tuvalu",dialCode:"+688"},{code:"TW",emoji:"🇹🇼",unicode:"U+1F1F9 U+1F1FC",name:"Taiwan",title:"flag for Taiwan",dialCode:"+886"},{code:"TZ",emoji:"🇹🇿",unicode:"U+1F1F9 U+1F1FF",name:"Tanzania",title:"flag for Tanzania",dialCode:"+255"},{code:"UA",emoji:"🇺🇦",unicode:"U+1F1FA U+1F1E6",name:"Ukraine",title:"flag for Ukraine",dialCode:"+380"},{code:"UG",emoji:"🇺🇬",unicode:"U+1F1FA U+1F1EC",name:"Uganda",title:"flag for Uganda",dialCode:"+256"},{code:"UM",emoji:"🇺🇲",unicode:"U+1F1FA U+1F1F2",name:"United States Minor Outlying Islands",title:"flag for United States Minor Outlying Islands"},{code:"US",emoji:"🇺🇸",unicode:"U+1F1FA U+1F1F8",name:"United States",title:"flag for United States",dialCode:"+1"},{code:"UY",emoji:"🇺🇾",unicode:"U+1F1FA U+1F1FE",name:"Uruguay",title:"flag for Uruguay",dialCode:"+598"},{code:"UZ",emoji:"🇺🇿",unicode:"U+1F1FA U+1F1FF",name:"Uzbekistan",title:"flag for Uzbekistan",dialCode:"+998"},{code:"VA",emoji:"🇻🇦",unicode:"U+1F1FB U+1F1E6",name:"Vatican City",title:"flag for Vatican City",dialCode:"+379"},{code:"VC",emoji:"🇻🇨",unicode:"U+1F1FB U+1F1E8",name:"Saint Vincent and The Grenadines",title:"flag for Saint Vincent and The Grenadines",dialCode:"+1 784"},{code:"VE",emoji:"🇻🇪",unicode:"U+1F1FB U+1F1EA",name:"Venezuela",title:"flag for Venezuela",dialCode:"+58"},{code:"VG",emoji:"🇻🇬",unicode:"U+1F1FB U+1F1EC",name:"Virgin Islands, British",t
385itle:"flag for Virgin Islands, British",dialCode:"+1 284"},{code:"VI",emoji:"🇻🇮",unicode:"U+1F1FB U+1F1EE",name:"Virgin Islands, U.S.",title:"flag for Virgin Islands, U.S.",dialCode:"+1 340"},{code:"VN",emoji:"🇻🇳",unicode:"U+1F1FB U+1F1F3",name:"Viet Nam",title:"flag for Viet Nam",dialCode:"+84"},{code:"VU",emoji:"🇻🇺",unicode:"U+1F1FB U+1F1FA",name:"Vanuatu",title:"flag for Vanuatu",dialCode:"+678"},{code:"WF",emoji:"🇼🇫",unicode:"U+1F1FC U+1F1EB",name:"Wallis and Futuna",title:"flag for Wallis and Futuna",dialCode:"+681"},{code:"WS",emoji:"🇼🇸",unicode:"U+1F1FC U+1F1F8",name:"Samoa",title:"flag for Samoa",dialCode:"+685"},{code:"XK",emoji:"🇽🇰",unicode:"U+1F1FD U+1F1F0",name:"Kosovo",title:"flag for Kosovo",dialCode:"+383"},{code:"YE",emoji:"🇾🇪",unicode:"U+1F1FE U+1F1EA",name:"Yemen",title:"flag for Yemen",dialCode:"+967"},{code:"YT",emoji:"🇾🇹",unicode:"U+1F1FE U+1F1F9",name:"Mayotte",title:"flag for Mayotte",dialCode:"+262"},{code:"ZA",emoji:"🇿🇦",unicode:"U+1F1FF U+1F1E6",name:"South Africa",title:"flag for South Africa",dialCode:"+27"},{code:"ZM",emoji:"🇿🇲",unicode:"U+1F1FF U+1F1F2",name:"Zambia",title:"flag for Zambia",dialCode:"+260"},{code:"ZW",emoji:"🇿🇼",unicode:"U+1F1FF U+1F1FC",name:"Zimbabwe",title:"flag for Zimbabwe",dialCode:"+263"}];var D5e="[object Array]",L5e="[object Function]",F5e=/^\[object .+?Constructor\]$/;function ufe(e){return!!e&&typeof e=="object"}var dfe=Object.prototype,ffe=Function.prototype.toString,j5e=dfe.hasOwnProperty,hfe=dfe.toString,U5e=RegExp("^"+ffe.call(j5e).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),B5e=H5e(Array,"isArray"),$5e=9007199254740991;function H5e(e,t){var n=e==null?void 0:e[t];return G5e(n)?n:void 0}function z5e(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=$5e}var V5e=B5e||function(e){return ufe(e)&&z5e(e.length)&&hfe.call(e)==D5e};function W5e(e){return q5e(e)&&hfe.call(e)==L5e}function q5e(e){var t=typeof e;return!!e&&(t=="object"||t=="function")}function G5e(e){return e==null?!1:W5e(e)?U5e.test(ffe.call(e)):ufe(e)&&F5e.test(e)}var X3=V5e,K5e=9007199254740991,Y5e="[object Arguments]",Q5e="[object Array]",X5e="[object Boolean]",J5e="[object Date]",Z5e="[object Error]",eMe="[object Function]",tMe="[object Map]",nMe="[object Number]",rMe="[object Object]",iMe="[object RegExp]",oMe="[object Set]",sMe="[object String]",aMe="[object WeakMap]",cMe="[object ArrayBuffer]",lMe="[object DataView]",uMe="[object Float32Array]",dMe="[object Float64Array]",fMe="[object Int8Array]",hMe="[object Int16Array]",pMe="[object Int32Array]",mMe="[object Uint8Array]",gMe="[object Uint8ClampedArray]",vMe="[object Uint16Array]",yMe="[object Uint32Array]",Fr={};Fr[uMe]=Fr[dMe]=Fr[fMe]=Fr[hMe]=Fr[pMe]=Fr[mMe]=Fr[gMe]=Fr[vMe]=Fr[yMe]=!0;Fr[Y5e]=Fr[Q5e]=Fr[cMe]=Fr[X5e]=Fr[lMe]=Fr[J5e]=Fr[Z5e]=Fr[eMe]=Fr[tMe]=Fr[nMe]=Fr[rMe]=Fr[iMe]=Fr[oMe]=Fr[sMe]=Fr[aMe]=!1;var bMe=Object.prototype,wMe=bMe.toString;function SMe(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=K5e}function _Me(e){return!!e&&typeof e=="object"}function CMe(e){return _Me(e)&&SMe(e.length)&&!!Fr[wMe.call(e)]}var EMe=CMe,TMe="[object Function]",kMe=/^\[object .+?Constructor\]$/;function xMe(e){return!!e&&typeof e=="object"}var pfe=Object.prototype,mfe=Function.prototype.toString,AMe=pfe.hasOwnProperty,IMe=pfe.toString,RMe=RegExp("^"+mfe.call(AMe).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function PMe(e,t){var n=e==null?void 0:e[t];return MMe(n)?n:void 0}function OMe(e){return NMe(e)&&IMe.call(e)==TMe}function NMe(e){var t=typeof e;return!!e&&(t=="object"||t=="function")}function MMe(e){return e==null?!1:OMe(e)?RMe.test(mfe.call(e)):xMe(e)&&kMe.test(e)}var DMe=PMe,LMe=9007199254740991,FMe="[object Arguments]",jMe="[object Function]",UMe="[object GeneratorFunction]",zB=Object.prototype,BMe=zB.hasOwnProperty,gfe=zB.toString,$Me=zB.propertyIsEnumerable;function HMe(e){return VMe(e)&&BMe.call(e,"callee")&&(!$Me.call(e,"callee")||gfe.call(e)==FMe)}function zMe(e){return e!=null&&qMe(e.length)&&!WMe(e)}
385function VMe(e){return KMe(e)&&zMe(e)}function WMe(e){var t=GMe(e)?gfe.call(e):"";return t==jMe||t==UMe}function qMe(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=LMe}function GMe(e){var t=typeof e;return!!e&&(t=="object"||t=="function")}function KMe(e){return!!e&&typeof e=="object"}var YMe=HMe,QMe=DMe,vfe=YMe,yfe=X3,XMe=/^\d+$/,JMe=Object.prototype,bfe=JMe.hasOwnProperty,CQ=QMe(Object,"keys"),wfe=9007199254740991;function ZMe(e){return function(t){return t==null?void 0:t[e]}}var e6e=ZMe("length");function t6e(e){return e!=null&&VB(e6e(e))}function Sfe(e,t){return e=typeof e=="number"||XMe.test(e)?+e:-1,t=t??wfe,e>-1&&e%1==0&&e<t}function VB(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=wfe}function EQ(e){for(var t=r6e(e),n=t.length,r=n&&e.length,i=!!r&&VB(r)&&(yfe(e)||vfe(e)),o=-1,s=[];++o<n;){var a=t[o];(i&&Sfe(a,r)||bfe.call(e,a))&&s.push(a)}return s}function _fe(e){var t=typeof e;return!!e&&(t=="object"||t=="function")}var n6e=CQ?function(e){var t=e==null?void 0:e.constructor;return typeof t=="function"&&t.prototype===e||typeof e!="function"&&t6e(e)?EQ(e):_fe(e)?CQ(e):[]}:EQ;function r6e(e){if(e==null)return[];_fe(e)||(e=Object(e));var t=e.length;t=t&&VB(t)&&(yfe(e)||vfe(e))&&t||0;for(var n=e.constructor,r=-1,i=typeof n=="function"&&n.prototype===e,o=Array(t),s=t>0;++r<t;)o[r]=r+"";for(var a in e)!(s&&Sfe(a,t))&&!(a=="constructor"&&(i||!bfe.call(e,a)))&&o.push(a);return o}var WB=n6e,TQ=X3,kQ=EMe,xQ=WB,AQ="[object Arguments]",IQ="[object Array]",i6e="[object Boolean]",o6e="[object Date]",s6e="[object Error]",a6e="[object Number]",c0="[object Object]",c6e="[object RegExp]",l6e="[object String]";function u6e(e){return!!e&&typeof e=="object"}var Cfe=Object.prototype,kF=Cfe.hasOwnProperty,RQ=Cfe.toString;function d6e(e,t){for(var n=-1,r=e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}function Efe(e,t,n,r,i,o){return e===t?!0:e==null||t==null||!g6e(e)&&!u6e(t)?e!==e&&t!==t:f6e(e,t,Efe,n,r,i,o)}function f6e(e,t,n,r,i,o,s){var a=TQ(e),c=TQ(t),l=IQ,u=IQ;a||(l=RQ.call(e),l==AQ?l=c0:l!=c0&&(a=kQ(e))),c||(u=RQ.call(t),u==AQ?u=c0:u!=c0&&(c=kQ(t)));var d=l==c0,f=u==c0,p=l==u;if(p&&!(a||d))return p6e(e,t,l);if(!i){var g=d&&kF.call(e,"__wrapped__"),m=f&&kF.call(t,"__wrapped__");
385if(g||m)return n(g?e.value():e,m?t.value():t,r,i,o,s)}if(!p)return!1;o||(o=[]),s||(s=[]);for(var y=o.length;y--;)if(o[y]==e)return s[y]==t;o.push(e),s.push(t);var v=(a?h6e:m6e)(e,t,n,r,i,o,s);return o.pop(),s.pop(),v}function h6e(e,t,n,r,i,o,s){var a=-1,c=e.length,l=t.length;if(c!=l&&!(i&&l>c))return!1;for(;++a<c;){var u=e[a],d=t[a],f=r?r(i?d:u,i?u:d,a):void 0;if(f!==void 0){if(f)continue;return!1}if(i){if(!d6e(t,function(p){return u===p||n(u,p,r,i,o,s)}))return!1}else if(!(u===d||n(u,d,r,i,o,s)))return!1}return!0}function p6e(e,t,n){switch(n){case i6e:case o6e:return+e==+t;case s6e:return e.name==t.name&&e.message==t.message;case a6e:return e!=+e?t!=+t:e==+t;case c6e:case l6e:return e==t+""}return!1}function m6e(e,t,n,r,i,o,s){var a=xQ(e),c=a.length,l=xQ(t),u=l.length;if(c!=u&&!i)return!1;for(var d=c;d--;){var f=a[d];if(!(i?f in t:kF.call(t,f)))return!1}for(var p=i;++d<c;){f=a[d];var g=e[f],m=t[f],y=r?r(i?m:g,i?g:m,f):void 0;if(!(y===void 0?n(g,m,r,i,o,s):y))return!1;p||(p=f=="constructor")}if(!p){var v=e.constructor,w=t.constructor;if(v!=w&&"constructor"in e&&"constructor"in t&&!(typeof v=="function"&&v instanceof v&&typeof w=="function"&&w instanceof w))return!1}return!0}function g6e(e){var t=typeof e;return!!e&&(t=="object"||t=="function")}var v6e=Efe;function y6e(e,t,n){if(typeof e!="function")return b6e;if(t===void 0)return e;switch(n){case 1:return function(r){return e.call(t,r)};case 3:return function(r,i,o){return e.call(t,r,i,o)};case 4:return function(r,i,o,s){return e.call(t,r,i,o,s)};case 5:return function(r,i,o,s,a){return e.call(t,r,i,o,s,a)}}return function(){return e.apply(t,arguments)}}function b6e(e){return e}var w6e=y6e,S6e=WB;function _6e(e){return C6e(e)?e:Object(e)}function C6e(e){var t=typeof e;return!!e&&(t=="object"||t=="function")}function E6e(e){e=_6e(e);for(var t=-1,n=S6e(e),r=n.length,i=Array(r);++t<r;){var o=n[t];i[t]=[o,e[o]]}return i}var T6e=E6e,Tfe=v6e,k6e=w6e,qB=X3,x6e=T6e,A6e=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\n\\]|\\.)*?\1)\]/,I6e=/^\w*$/,R6e=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\n\\]|\\.)*?)\2)\]/g,P6e=/\\(\\)?/g;function O6e(e){return e==null?"":e+""}function N6e(e,t,n){var r=typeof e;return r=="function"?t===void 0?e:k6e(e,t,n):e==null?H6e:r=="object"?D6e(e):t===void 0?z6e(e):L6e(e,t)}function kfe(e,t,n){if(e!=null){n!==void 0&&n in s1(e)&&(t=[n]);for(var r=0,i=t.length;e!=null&&r<i;)e=e[t[r++]];return r&&r==i?e:void 0}}function M6e(e,t,n){var r=t.length,i=r;if(e==null)return!i;for(e=s1(e);r--;){var o=t[r];if(o[2]?o[1]!==e[o[0]]:!(o[0]in e))return!1}for(;++r<i;){o=t[r];var s=o[0],a=e[s],c=o[1];if(o[2]){if(a===void 0&&!(s in e))return!1}else{var l=void 0;if(!(l===void 0?Tfe(c,a,n,!0):l))return!1}}return!0}function D6e(e){var t=B6e(e);if(t.length==1&&t[0][2]){var n=t[0][0],r=t[0][1];return function(i){return i==null?!1:i[n]===r&&(r!==void 0||n in s1(i))}}return function(i){return M6e(i,t)}}function L6e(e,t){var n=qB(e),r=xfe(e)&&Afe(t),i=e+"";return e=Ife(e),function(o){if(o==null)return!1;var s=i;if(o=s1(o),(n||!r)&&!(s in o)){if(o=e.length==1?o:kfe(o,U6e(e,0,-1)),o==null)return!1;s=$6e(e),o=s1(o)}return o[s]===t?t!==void 0||s in o:Tfe(t,o[s],void 0,!0)}}function F6e(e){return function(t){return t==null?void 0:t[e]}}function j6e(e){var t=e+"";return e=Ife(e),function(n){return kfe(n,e,t)}}function U6e(e,t,n){var r=-1,i=e.length;t=t==null?0:+t||0,t<0&&(t=-t>i?0:i+t),n=n===void 0||n>i?i:+n||0,n<0&&(n+=i),i=t>n?0:n-t>>>0,t>>>=0;for(var o=Array(i);++r<i;)o[r]=e[r+t];return o}function B6e(e){for(var t=x6e(e),n=t.length;n--;)t[n][2]=Afe(t[n][1]);return t}function xfe(e,t){var n=typeof e;if(n=="string"&&I6e.test(e)||n=="number")return!0;if(qB(e))return!1;var r=!A6e.test(e);return r||t!=null&&e in s1(t)}function Afe(e){return e===e&&!Rfe(e)}function s1(e){return Rfe(e)?e:Object(e)}function Ife(e){if(qB(e))return e;var t=[];return O6e(e).replace(R6e,function(n,r,i,o){t.push(i?o.replace(P6e,"$1"):r||n)}),t}function $6e(e){var t=e?e.length:0;return t?e[t-1]:void 0}function Rfe(e){var t=typeof e;return!!e&&(t=="object"||t=="function")}function H6e(e){return e}function z6e(e){return xfe(e)?F6e(e):j6e(e)}var V6e=N6e,W6e=WB,q6e=9007199254740991,G6e=X6e(Y6e),K6e=J6e();function Y6e(e,t){return K6e(e,t,W6e)}function Q6e(e){return function(t){return t==null?void 0:t[e]}}function X6e(e,t){return function(n,r){var i=n?Z6e(n):0;if(!eDe(i))return e(n,r);for(var o=-1,s=Pfe(n);++o<i&&r(s[o],o,s)!==!1;);return n}}function J6e(e){return function(t,n,r){for(var i=Pfe(t),o=r(t),s=o.length,a=-1;++a<s;){var c=o[a];if(n(i[c],c,i)===!1)break}return t}}var Z6e=Q6e("length");function eDe(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=q6e}function Pfe(e){return tDe(e)?e:Object(e)}function tDe(e){var t=typeof e;return!!e&&(t=="object"||t=="function")}var nDe=G6e;function rDe(e,t,n,r){var i;return n(e,function(o,s,a){if(t(o,s,a))return i=r?s:o,!1}),i}var iDe=rDe;function oDe(e,t,n){for(var r=e.length,i=n?r:-1;n?i--:++i<r;)if(t(e[i],i,e))return i;return-1}var sDe=oDe,aDe=V6e,cDe=nDe,lDe=iDe,uDe=sDe,dDe=X3;function fDe(e,t){return function(n,r,i){if(r=aDe(r,i,3),dDe(n)){var o=uDe(n,r,t);return o>-1?n[o]:void 0}return lDe(n,r,e)}}var hDe=fDe(cDe),pDe=hDe,q_=M5e,mDe=pDe,GB={countryCode:function(e){if(!e)throw new Error("Expected 1 country code as the first argument");return mDe(q_,function(t){return t.code===e.toUpperCase()})},get data(){return q_}};["emoji","code","name","unicode"].forEach(function(e){Object.defineProperty(GB,e+"s",{get:function(){return q_.map(function(t){return t[e]})}})});q_.forEach(function(e,t){GB[e.code]=q_[t]});var gDe=GB;const vDe=io(gDe),rv={af:new Set(["af-ZA"]),sq:new Set(["sq-AL"]),am:new Set(["am-ET"]),ar:new Set(["ar-AE","ar-BH","ar-DZ","ar-EG","ar-IL","ar-IQ","ar-JO","ar-KW","ar-LB","ar-LY","ar-MA","ar-OM","ar-PS","ar-QA","ar-SA","ar-SY","ar-TN","ar-YE"]),hy:new Set(["hy-AM"]),as:new Set(["as-IN"]),az:new Set(["az-AZ"]),bs:new Set(["bs-BA"]),bg:new Set(["bg-BG"]),c
385a:new Set(["ca-ES"]),"zh-Hant":new Set(["zh-TW"]),yue:new Set(["zh-HK"]),"zh-Hans":new Set(["yue-CN","zh-CN"]),hr:new Set(["hr-HR"]),cs:new Set(["cs-CZ"]),da:new Set(["da-DK"]),nl:new Set(["nl-BE","nl-NL"]),en:new Set(["en-AU","en-CA","en-GB","en-GH","en-HK","en-IE","en-IN","en-KE","en-NG","en-NZ","en-PH","en-SG","en-TZ","en-US","en-ZA"]),et:new Set(["et-EE"]),fil:new Set(["fil-PH"]),fi:new Set(["fi-FI"]),fr:new Set(["fr-BE","fr-CH","fr-FR"]),"fr-ca":new Set(["fr-CA"]),de:new Set(["de-AT","de-CH","de-DE"]),el:new Set(["el-GR"]),gu:new Set(["gu-IN"]),he:new Set(["he-IL"]),hi:new Set(["hi-IN"]),hu:new Set(["hu-HU"]),is:new Set(["is-IS"]),id:new Set(["id-ID"]),ga:new Set(["ga-IE"]),it:new Set(["it-IT"]),ja:new Set(["ja-JP"]),kn:new Set(["kn-IN"]),kk:new Set(["kk-KZ"]),km:new Set(["km-KH"]),ko:new Set(["ko-KR"]),lo:new Set(["lo-LA"]),lv:new Set(["lv-LV"]),lt:new Set(["lt-LT"]),ms:new Set(["ms-MY"]),ml:new Set(["ml-IN"]),mt:new Set(["mt-MT"]),mr:new Set(["mr-IN"]),my:new Set(["my-MM"]),ne:new Set(["ne-NP"]),nb:new Set(["nb-NO"]),or:new Set(["or-IN"]),ps:new Set(["ps-AF"]),fa:new Set(["fa-IR"]),pl:new Set(["pl-PL"]),pt:new Set(["pt-BR"]),"pt-pt":new Set(["pt-PT"]),pa:new Set(["pa-IN"]),ro:new Set(["ro-RO"]),ru:new Set(["ru-RU"]),"sr-Cyrl":new Set(["sr-RS"]),sk:new Set(["sk-SK"]),sl:new Set(["sl-SI"]),es:new Set(["es-AR","es-BO","es-CL","es-CO","es-CR","es-CU","es-DO","es-EC","es-ES","es-GQ","es-GT","es-HN","es-MX","es-NI","es-PA","es-PE","es-PR","es-PY","es-SV","es-US","es-UY","es-VE"]),sw:new Set(["sw-KE","sw-TZ"]),sv:new Set(["sv-SE"]),ta:new Set(["ta-IN"]),te:new Set(["te-IN"]),th:new Set(["th-TH"]),tr:new Set(["tr-TR"]),uk:new Set(["uk-UA"]),ur:new Set(["ur-IN"]),vi:new Set(["vi-VN"]),cy:new Set(["cy-GB"])},yDe={af:"Afrikaans",sq:"Shqip",am:"አማርኛ",ar:"العربية",hy:"Հայերեն",as:"অসমীয়া",az:"Azərbaycanca",bs:"Bosanski",bg:"Български",ca:"Català","zh-Hant":"繁體中文",yue:"粵語","zh-Hans":"简体中文",hr:"Hrvatski",cs:"Čeština",da:"Dansk",nl:"Nederlands",en:"English",et:"Eesti",fil:"Filipino",fi:"Suomi",fr:"Français","fr-ca":"Français (Canada)",de:"Deutsch",el:"Ελληνικά",gu:"ગુજરાતી",he:"עברית",hi:"हिन्दी",hu:"Magyar",is:"Íslenska",id:"Bahasa Indonesia",ga:"Gaeilge",it:"Italiano",ja:"日本語",kn:"ಕನ್ನಡ",kk:"Қазақша",km:"ខ្មែរ",ko:"한국어",lo:"ລາວ",lv:"Latviešu",lt:"Lietuvių",ms:"Bahasa Melayu",ml:"മലയാളം",mt:"Malti",mr:"मराठी",my:"မြန်မာဘာသာ",ne:"नेपाली",nb:"Norsk Bokmål",or:"ଓଡ଼ିଆ",ps:"پښتو",fa:"فارسی",pl:"Polski",pt:"Português (Brasil)","pt-pt":"Português (Portugal)",pa:"ਪੰਜਾਬੀ",ro:"Română",ru:"Русский","sr-Cyrl":"Српски (Ћирилица)",sk:"Slovenčina",sl:"Slovenščina",es:"Español",sw:"Kiswahili",sv:"Svenska",ta:"தமிழ்",te:"తెలుగు",th:"ไทย",tr:"Türkçe",uk:"Українська",ur:"اردو",vi:"Tiếng Việt",cy:"Cymraeg"},bDe={"af-ZA":"Afrikaans (Suid-Afrika)","sq-AL":"Shqip (Shqipëri)","am-ET":"አማርኛ (ኢትዮጵያ)","ar-AE":"العربية (الإمارات العربية المتحدة)","ar-BH":"العربية (البحرين)","ar-DZ":"العربية (الجزائر)","ar-EG":"العربية (مصر)","ar-IL":"العربية (إسرائيل)","ar-IQ":"العربية (العراق)","ar-JO":"العربية (الأردن)","ar-KW":"العربية (الكويت)","ar-LB":"العربية (لبنان)","ar-LY":"العربية (ليبيا)","ar-MA":"العربية (المغرب)","ar-OM":"العربية (عمان)","ar-PS":"العربية (فلسطين)","ar-QA":"العربية (قطر)","ar-SA":"العربية (السعودية)","ar-SY":"العربية (سوريا)","ar-TN":"العربية (تونس)","ar-YE":"العربية (اليمن)","hy-AM":"Հայերեն (Հայաստան)","as-IN":"অসমীয়া (ভাৰত)","az-AZ":"Azərbaycanca (Azərbaycan)","bs-BA":"Bosanski (Bosna i Hercegovina)","bg-BG":"Български (България)","ca-ES":"Català (Espanya)","zh-TW":"繁體中文 (台灣)","zh-HK":"粵語 (香港)","yue-CN":"粵語 (中國)","zh-CN":"简体中文 (中国)","hr-HR":"Hrvatski (Hrvatska)","cs-CZ":"Čeština (Česko)","da-DK":"Dansk (Danmark)","nl-BE":"Nederlands (België)","
385nl-NL":"Nederlands (Nederland)","en-AU":"English (Australia)","en-CA":"English (Canada)","en-GB":"English (United Kingdom)","en-GH":"English (Ghana)","en-HK":"English (Hong Kong)","en-IE":"English (Ireland)","en-IN":"English (India)","en-KE":"English (Kenya)","en-NG":"English (Nigeria)","en-NZ":"English (New Zealand)","en-PH":"English (Philippines)","en-SG":"English (Singapore)","en-TZ":"English (Tanzania)","en-US":"English (United States)","en-ZA":"English (South Africa)","et-EE":"Eesti (Eesti)","fil-PH":"Filipino (Pilipinas)","fi-FI":"Suomi (Suomi)","fr-BE":"Français (Belgique)","fr-CH":"Français (Suisse)","fr-FR":"Français (France)","fr-CA":"Français (Canada)","de-AT":"Deutsch (Österreich)","de-CH":"Deutsch (Schweiz)","de-DE":"Deutsch (Deutschland)","el-GR":"Ελληνικά (Ελλάδα)","gu-IN":"ગુજરાતી (ભારત)","he-IL":"עברית (ישראל)","hi-IN":"हिन्दी (भारत)","hu-HU":"Magyar (Magyarország)","is-IS":"Íslenska (Ísland)","id-ID":"Bahasa Indonesia (Indonesia)","ga-IE":"Gaeilge (Éire)","it-IT":"Italiano (Italia)","ja-JP":"日本語 (日本)","kn-IN":"ಕನ್ನಡ (ಭಾರತ)","kk-KZ":"Қазақ тілі (Қазақстан)","km-KH":"ភាសាខ្មែរ (កម្ពុជា)","ko-KR":"한국어 (대한민국)","lo-LA":"ລາວ (ປະເທດລາວ)","lv-LV":"Latviešu (Latvija)","lt-LT":"Lietuvių (Lietuva)","ms-MY":"Bahasa Melayu (Malaysia)","ml-IN":"മലയാളം (ഇന്ത്യ)","mt-MT":"Malti (Malta)","mr-IN":"मराठी (भारत)","my-MM":"မြန်မာဘာသာ (မြန်မာ)","ne-NP":"नेपाली (नेपाल)","nb-NO":"Norsk Bokmål (Norge)","or-IN":"ଓଡ଼ିଆ (ଭାରତ)","ps-AF":"پښتو (افغانستان)","fa-IR":"فارسی (ایران)","pl-PL":"Polski (Polska)","pt-BR":"Português (Brasil)","pt-PT":"Português (Portugal)","pa-IN":"ਪੰਜਾਬੀ (ਭਾਰਤ)","ro-RO":"Română (România)","ru-RU":"Русский (Россия)","sr-RS":"Српски (Србија)","sk-SK":"Slovenčina (Slovensko)","sl-SI":"Slovenščina (Slovenija)","es-AR":"Español (Argentina)","es-BO":"Español (Bolivia)","es-CL":"Español (Chile)","es-CO":"Español (Colombia)","es-CR":"Español (Costa Rica)","es-CU":"Español (Cuba)","es-DO":"Español (República Dominicana)","es-EC":"Español (Ecuador)","es-ES":"Español (España)","es-GQ":"Español (Guinea Ecuatorial)","es-GT":"Español (Guatemala)","es-HN":"Español (Honduras)","es-MX":"Español (México)","es-NI":"Español (Nicaragua)","es-PA":"Español (Panamá)","es-PE":"Español (Perú)","es-PR":"Español (Puerto Rico)","es-PY":"Español (Paraguay)","es-SV":"Español (El Salvador)","es-US":"Español (Estados Unidos)","es-UY":"Español (Uruguay)","es-VE":"Español (Venezuela)","sw-KE":"Kiswahili (Kenya)","sw-TZ":"Kiswahili (Tanzania)","sv-SE":"Svenska (Sverige)","ta-IN":"தமிழ் (இந்தியா)","te-IN":"తెలుగు (భారతదేశం)","th-TH":"ไทย (ประเทศไทย)","tr-TR":"Türkçe (Türkiye)","uk-UA":"Українська (Україна)","ur-IN":"اردو (بھارت)","vi-VN":"Tiếng Việt (Việt Nam)","cy-GB":"Cymraeg (Y Deyrnas Unedig)"},PQ={"af-ZA":["afrikaans"],"sq-AL":["albanian"],"am-ET":["amharic"],"ar-AE":["arabic"],"ar-BH":["arabic"],"ar-DZ":["arabic"],"ar-EG":["arabic"],"ar-IL":["arabic"],"ar-IQ":["arabic"],"ar-JO":["arabic"],"ar-KW":["arabic"],"ar-LB":["arabic"],"ar-LY":["arabic"],"ar-MA":["arabic"],"ar-OM":["arabic"],"ar-PS":["arabic"],"ar-QA":["arabic"],"ar-SA":["arabic"],"ar-SY":["arabic"],"ar-TN":["arabic"],"ar-YE":["arabic"],"hy-AM":["armenian"],"as-IN":["assamese"],"az-AZ":["azerbaijani"],"bs-BA":["bosnian"],"bg-BG":["bulgarian"],"ca-ES":["catalan"],"zh-TW":["traditional chinese"],"zh-HK":["cantonese"],"yue-CN":["cantonese"],"zh-CN":["simplified chinese"],"hr-HR":["croatian"],"cs-CZ":["czech"],"da-DK":["danish"],"nl-BE":["dutch"],"nl-NL":["dutch"],"en-AU":["english"],"en-CA":["english"],"en-GB":["english"],"en-GH":["english"],"en-HK":["english"],"en-IE":["english"],"en-IN":["english"],"en-KE":["english"],"en-NG":["english"],"en-NZ":["english"],"en-PH":["english"],"en-SG":["english"],"en-TZ":["english"],"en-US":["english"],"en-ZA":["english"],"et-EE":["estonian"],"fil-PH":["filipino","tagalog"],"fi-FI":["finnish"],"fr-BE":["french"],"fr-CH":["french"],"fr-FR":["french"],"fr-CA":["french"],"de-AT":["german"],"de-CH":["german"],"de-DE":["german"],"el-GR":["greek"],"gu-IN":["gujarati"],"he-IL":["hebrew"],"hi-IN":["hindi"],"hu-HU":["hungarian"],"is-IS":["icelandic"],"id-ID":["bahasa"],"ga-IE":["irish"],"it-IT":["italian"],"ja-JP":["j
385apanese"],"kn-IN":["kannada"],"kk-KZ":["kazhak"],"km-KH":["khmer","cambodian"],"ko-KR":["korean"],"lo-LA":["lao"],"lv-LV":["latvian"],"lt-LT":["lithuanian"],"ms-MY":["bahasa"],"ml-IN":["malayalam"],"mt-MT":["maltese"],"mr-IN":["marathi"],"my-MM":["burmese"],"ne-NP":["nepali"],"nb-NO":["norsk"],"or-IN":["odia"],"ps-AF":["pashto"],"fa-IR":["persian"],"pl-PL":["polish"],"pt-BR":["brazilian portuguese"],"pt-PT":["portuguese"],"pa-IN":["punjabi"],"ro-RO":["romanian"],"ru-RU":["russian"],"sr-RS":["serbian"],"sk-SK":["slovak"],"sl-SI":["slovene"],"es-AR":["spanish"],"es-BO":["spanish"],"es-CL":["spanish"],"es-CO":["spanish"],"es-CR":["spanish"],"es-CU":["spanish"],"es-DO":["spanish"],"es-EC":["spanish"],"es-ES":["spanish"],"es-GQ":["spanish"],"es-GT":["spanish"],"es-HN":["spanish"],"es-MX":["spanish"],"es-NI":["spanish"],"es-PA":["spanish"],"es-PE":["spanish"],"es-PR":["spanish"],"es-PY":["spanish"],"es-SV":["spanish"],"es-US":["spanish"],"es-UY":["spanish"],"es-VE":["spanish"],"sw-KE":["swahili"],"sw-TZ":["swahili"],"sv-SE":["swedish"],"ta-IN":["tamil"],"te-IN":["telugu"],"th-TH":["thai"],"tr-TR":["turkish"],"uk-UA":["ukrainian"],"ur-IN":["urdu"],"vi-VN":["vietnamese"],"cy-GB":["welsh"]},wS=["autodetect","en-US","zh-CN","es-MX","ja-JP","ko-KR","es-CO","ru-RU","pt-B
385R","fr-FR","sw-KE","id-ID","zh-HK"];function Kr(e){return e==="autodetect"?"Auto-Detect":bDe[e]}const eu=e=>{if(e==="autodetect")return"✨";const t=lfe(e);return t.region?vDe.countryCode(t.region).emoji:" "};function a1(e){for(const t in rv)if(rv[t].has(e))return t}var Vn=(e=>(e.EXPECT_LOGIN="EXPECT_LOGIN",e.LANGFINITY_TOKEN="LANGFINITY_TOKEN",e.SITE_LANGUAGE="SITE_LANGUAGE",e.USER_METADATA_NAME="USER_METADATA_NAME",e.USER_METADATA_LANGUAGE="USER_METADATA_LANGUAGE",e.CAPTIONS="CAPTIONS",e.CAPTIONS_LAST_ACCESS="CAPTIONS_LAST_ACCESS",e.MEETING_ID="MEETING_ID",e.LAYOUT_SETTINGS="LAYOUT_SETTINGS",e.VOICE_AVATAR="VOICE_AVATAR",e.VIDEO_BACKGROUND="VIDEO_BACKGROUND",e.TOP_LANGUAGES="TOP_LANGUAGES",e))(Vn||{});const OQ={male:{"en-US":["voice1","voice2","voice3"],"zh-CN":["voice1","voice2","voice3"],"es-MX":["voice1","voice2","voice3"],"es-CO":["voice1"],"ru-RU":["voice1"],"ja-JP":["voice1","voice2","voice3"],"fr-FR":["voice1","voice2","voice3"],"sw-KE":["voice1"],"id-ID":["voice1"],"ko-KR":["voice1","voice2","voice3"]},female:{"en-US":["voice1","voice2","voice3"],"zh-CN":["voice1","voice2","voice3"],"es-MX":["voice1","voice2","voice3"],"es-CO":["voice1"],"ru-RU":["voice1","voice2"],"ja-JP":["voice1","voice2","voice3"],"fr-FR":["voice1","voice2","voice3"],"sw-KE":["voice1"],"id-ID":["voice1"],"ko-KR":["voice1","voice2","voice3"]}}
385,xF="https://byrdhouse-public-prod.s3.us-west-1.amazonaws.com/",G_={metadata:{selectedLanguage:localStorage.getItem("USER_METADATA_LANGUAGE")||(Object.values(rv).flatMap(e=>Array.from(e)).includes(navigator.language)?navigator.language:"en-US"),aiVoiceGender:"female",aiVoice:"anyVoice",timezone:Intl.DateTimeFormat().resolvedOptions().timeZone||Intl.DateTimeFormat().resolvedOptions().timeZoneName},livekitId:crypto.randomUUID().toString()},wDe={settings:localStorage.getItem("LAYOUT_SETTINGS")?{...JSON.parse(localStorage.getItem("LAYOUT_SETTINGS")),textTranslationEnabled:!0}:{textSize:14,textColor:"#101010",textBackgroundColor:"#fff",textSpeed:0,textTranslationEnabled:!0}},SDe=[void 0,"blur"],_De={joined:!1,layout:{participantsGridHeightInPercent:60,overlayOpen:!1},media:{videoBackground:void 0}},KB={joined:!1,layout:{participantsGridHeightInPercent:70,rightSidePanelWidthInPercent:20,panels:{participants:!0,captions:!0}},overlayOpen:!1,media:{videoBackground:localStorage.getItem("VIDEO_BACKGROUND")??void 0,applyingBackground:!1}},CDe={siteLanguage:localStorage.getItem("SITE_LANGUAGE")||a1(navigator.language)||navigator.language},EDe={},J3={};function ux(e){const t=window.location.origin;return e.length&&e.charAt(0)!=="/"&&(e="/"+e),new URL(e,t).toString()}var NQ={};function TDe(e,t){return t.forEach(function(n){n&&typeof n!="string"&&!Array.isArray(n)&&Object.keys(n).forEach(function(r){if(r!=="default"&&!(r in e)){var i=Object.getOwnPropertyDescriptor(n,r);Object.defineProperty(e,r,i.get?i:{enumerable:!0,get:function(){return n[r]}})}})}),Object.freeze(e)}var kDe=Object.defineProperty,xDe=(e,t,n)=>t in e?kDe(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,MQ=(e,t,n)=>xDe(e,typeof t!="symbol"?t+"":t,n);let Qs=class{constructor(){MQ(this,"_locking"),MQ(this,"_locks"),this._locking=Promise.resolve(),this._locks=0}isLocked(){return this._locks>0}lock(){this._locks+=1;let t;const n=new Promise(i=>t=()=>{this._locks-=1,i()}),r=this._locking.then(()=>t);return this._locking=this._locking.then(()=>n),r}};function ki(e,t){if(!e)throw new Error(t)}const ADe=34028234663852886e22,IDe=-34028234663852886e22,RDe=4294967295,PDe=2147483647,ODe=-2147483648;function dx(e){if(typeof e!="number")throw new Error("invalid int 32: "+typeof e);if(!Number.isInteger(e)||e>PDe||e<ODe)throw new Error("invalid int 32: "+e)}function AF(e){if(typeof e!="number")throw new Error("invalid uint 32: "+typeof e);if(!Number.isInteger(e)||e>RDe||e<0)throw new Error("invalid uint 32: "+e)}function Ofe(e){if(typeof e!="number")throw new Error("invalid float 32: "+typeof e);if(Number.isFinite(e)&&(e>ADe||e<IDe))throw new Error("invalid float 32: "+e)}const Nfe=Symbol("@bufbuild/protobuf/enum-type");function NDe(e){const t=e[Nfe];return ki(t,"missing enum type on enum object"),t}function Mfe(e,t,n,r){e[Nfe]=Dfe(t,n.map(i=>({no:i.no,name:i.name,localName:e[i.no]})))}function Dfe(e,t,n){const r=Object.create(null),i=Object.create(null),o=[];for(const s of t){const a=Lfe(s);o.push(a),r[s.name]=a,i[s.no]=a}return{typeName:e,values:o,findName(s){return r[s]},findNumber(s){return i[s]}}}function MDe(e,t,n){const r={};for(const i of t){const o=Lfe(i);r[o.localName]=o.no,r[o.no]=o.localName}return Mfe(r,e,t),r}function Lfe(e){return"localName"in e?e:Object.assign(Object.assign({},e),{localName:e.name})}class YB{equals(t){return this.getType().runtime.util.equals(this.getType(),this,t)}clone(){return this.getType().runtime.util.clone(this)}fromBinary(t,n){const r=this.getType(),i=r.runtime.bin,o=i.makeReadOptions(n);return i.readMessage(this,o.readerFactory(t),t.byteLength,o),this}fromJson(t,n){const r=this.getType(),i=r.runtime.json,o=i.makeReadOptions(n);return i.readMessage(r,t,o,this),this}fromJsonString(t,n){let r;try{r=JSON.parse(t)}catch(i){throw new Error("cannot decode ".concat(this.getType().typeName," from JSON: ").concat(i instanceof Error?i.message:String(i)))}return this.fromJson(r,n)}toBinary(t){const n=this.getType(),r=n.runtime.bin,i=r.makeWriteOptions(t),o=i.writerFactory();return r.writeMessage(this,o,i),o.finish()}toJson(t){const n=this.getType(),r=n.runtime.json,i=r.makeWriteOptions(t);return r.writeMessage(this,i)}toJsonString(t){var n;const r=this.toJson(t);return JSON.stringify(r,null,(n=t==null?void 0:t.prettySpaces)!==null&&n!==void 0?n:0)}toJSON(){return this.toJson({emitDefaultValues:!0})}getType(){return Object.getPrototypeOf(this).constructor}}function DDe(e,t,n,r){var i;const o=(i=r==null?void 0:r.localName)!==null&&i!==void 0?i:t.substring(t.lastIndexOf(".")+1),s={[o]:function(a){e.util.initFields(this),e.util.initPartial(a,this)}}[o];return Object.setPrototypeOf(s.prototype,new YB),Object.assign(s,{runtime:e,typeName:t,fields:e.util.newFieldList(n),fromBinary(a,c){return new s().fromBinary(a,c)},fromJson(a,c){return new s().fromJson(a,c)},fromJsonString(a,c){return new s().fromJsonString(a,c)},equals(a,c){return e.util.equals(s,a,c)}}),s}function LDe(){let e=0,t=0;for(let r=0;r<28;r+=7){let i=this.buf[this.pos++];if(e|=(i&127)<<r,(i&128)==0)return this.assertBounds(),[e,t]}let n=this.buf[this.pos++];if(e|=(n&15)<<28,t=(n&112)>>4,(n&128)==0)return this.assertBounds(),[e,t];for(let r=3;r<=31;r+=7){let i=this.buf[this.pos++];if(t|=(i&127)<<r,(i&128)==0)return this.assertBounds(),[e,t]}throw new Error("invalid varint")}
vendor: 9,340 bytes, line 385
385function hM(e,t,n){for(let o=0;o<28;o=o+7){const s=e>>>o,a=!(!(s>>>7)&&t==0),c=(a?s|128:s)&255;if(n.push(c),!a)return}const r=e>>>28&15|(t&7)<<4,i=t>>3!=0;if(n.push((i?r|128:r)&255),!!i){for(let o=3;o<31;o=o+7){const s=t>>>o,a=!!(s>>>7),c=(a?s|128:s)&255;if(n.push(c),!a)return}n.push(t>>>31&1)}}const fx=4294967296;function DQ(e){const t=e[0]==="-";t&&(e=e.slice(1));const n=1e6;let r=0,i=0;function o(s,a){const c=Number(e.slice(s,a));i*=n,r=r*n+c,r>=fx&&(i=i+(r/fx|0),r=r%fx)}return o(-24,-18),o(-18,-12),o(-12,-6),o(-6),t?jfe(r,i):QB(r,i)}function FDe(e,t){let n=QB(e,t);const r=n.hi&2147483648;r&&(n=jfe(n.lo,n.hi));const i=Ffe(n.lo,n.hi);return r?"-"+i:i}function Ffe(e,t){if({lo:e,hi:t}=jDe(e,t),t<=2097151)return String(fx*t+e);const n=e&16777215,r=(e>>>24|t<<8)&16777215,i=t>>16&65535;let o=n+r*6777216+i*6710656,s=r+i*8147497,a=i*2;const c=1e7;return o>=c&&(s+=Math.floor(o/c),o%=c),s>=c&&(a+=Math.floor(s/c),s%=c),a.toString()+LQ(s)+LQ(o)}function jDe(e,t){return{lo:e>>>0,hi:t>>>0}}function QB(e,t){return{lo:e|0,hi:t|0}}function jfe(e,t){return t=~t,e?e=~e+1:t+=1,QB(e,t)}const LQ=e=>{const t=String(e);return"0000000".slice(t.length)+t};function FQ(e,t){if(e>=0){for(;e>127;)t.push(e&127|128),e=e>>>7;t.push(e)}else{for(let n=0;n<9;n++)t.push(e&127|128),e=e>>7;t.push(1)}}function UDe(){let e=this.buf[this.pos++],t=e&127;if((e&128)==0)return this.assertBounds(),t;if(e=this.buf[this.pos++],t|=(e&127)<<7,(e&128)==0)return this.assertBounds(),t;if(e=this.buf[this.pos++],t|=(e&127)<<14,(e&128)==0)return this.assertBounds(),t;if(e=this.buf[this.pos++],t|=(e&127)<<21,(e&128)==0)return this.assertBounds(),t;e=this.buf[this.pos++],t|=(e&15)<<28;for(let n=5;(e&128)!==0&&n<10;n++)e=this.buf[this.pos++];if((e&128)!=0)throw new Error("invalid varint");return this.assertBounds(),t>>>0}function BDe(){const e=new DataView(new ArrayBuffer(8));if(typeof BigInt=="function"&&typeof e.getBigInt64=="function"&&typeof e.getBigUint64=="function"&&typeof e.setBigInt64=="function"&&typeof e.setBigUint64=="function"&&(typeof process!="object"||typeof NQ!="object"||NQ.BUF_BIGINT_DISABLE!=="1")){const i=BigInt("-9223372036854775808"),o=BigInt("9223372036854775807"),s=BigInt("0"),a=BigInt("18446744073709551615");return{zero:BigInt(0),supported:!0,parse(c){const l=typeof c=="bigint"?c:BigInt(c);if(l>o||l<i)throw new Error("int64 invalid: ".concat(c));return l},uParse(c){const l=typeof c=="bigint"?c:BigInt(c);if(l>a||l<s)throw new Error("uint64 invalid: ".concat(c));return l},enc(c){return e.setBigInt64(0,this.parse(c),!0),{lo:e.getInt32(0,!0),hi:e.getInt32(4,!0)}},uEnc(c){return e.setBigInt64(0,this.uParse(c),!0),{lo:e.getInt32(0,!0),hi:e.getInt32(4,!0)}},dec(c,l){return e.setInt32(0,c,!0),e.setInt32(4,l,!0),e.getBigInt64(0,!0)},uDec(c,l){return e.setInt32(0,c,!0),e.setInt32(4,l,!0),e.getBigUint64(0,!0)}}}const n=i=>ki(/^-?[0-9]+$/.test(i),"int64 invalid: ".concat(i)),r=i=>ki(/^[0-9]+$/.test(i),"uint64 invalid: ".concat(i));return{zero:"0",supported:!1,parse(i){return typeof i!="string"&&(i=i.toString()),n(i),i},uParse(i){return typeof i!="string"&&(i=i.toString()),r(i),i},enc(i){return typeof i!="string"&&(i=i.toString()),n(i),DQ(i)},uEnc(i){return typeof i!="string"&&(i=i.toString()),r(i),DQ(i)},dec(i,o){return FDe(i,o)},uDec(i,o){return Ffe(i,o)}}}const ri=BDe();var We;(function(e){e[e.DOUBLE=1]="DOUBLE",e[e.FLOAT=2]="FLOAT",e[e.INT64=3]="INT64",e[e.UINT64=4]="UINT64",e[e.INT32=5]="INT32",e[e.FIXED64=6]="FIXED64",e[e.FIXED32=7]="FIXED32",e[e.BOOL=8]="BOOL",e[e.STRING=9]="STRING",e[e.BYTES=12]="BYTES",e[e.UINT32=13]="UINT32",e[e.SFIXED32=15]="SFIXED32",e[e.SFIXED64=16]="SFIXED64",e[e.SINT32=17]="SINT32",e[e.SINT64=18]="SINT64"})(We||(We={}));var rm;(function(e){e[e.BIGINT=0]="BIGINT",e[e.STRING=1]="STRING"})(rm||(rm={}));function Dh(e,t,n){if(t===n)return!0;if(e==We.BYTES){if(!(t instanceof Uint8Array)||!(n instanceof Uint8Array)||t.length!==n.length)return!1;for(let r=0;r<t.length;r++)if(t[r]!==n[r])return!1;return!0}switch(e){case We.UINT64:case We.FIXED64:case We.INT64:case We.SFIXED64:case We.SINT64:return t==n}return!1}function c1(e,t){switch(e){case We.BOOL:return!1;case We.UINT64:case We.FIXED64:case We.INT64:case We.SFIXED64:case We.SINT64:return t==0?ri.zero:"0";case We.DOUBLE:case We.FLOAT:return 0;case We.BYTES:return new Uint8Array(0);case We.STRING:return"";default:return 0}}function Ufe(e,t){switch(e){case We.BOOL:return t===!1;case We.STRING:return t==="";case We.BYTES:return t instanceof Uint8Array&&!t.byteLength;default:return t==0}}var Ui;(function(e){e[e.Varint=0]="Varint",e[e.Bit64=1]="Bit64",e[e.LengthDelimited=2]="LengthDelimited",e[e.StartGroup=3]="StartGroup",e[e.EndGroup=4]="EndGroup",e[e.Bit32=5]="Bit32"})(Ui||(Ui={}));class $De{constructor(t){this.stack=[],this.textEncoder=t??new TextEncoder,this.chunks=[],this.buf=[]}finish(){this.chunks.push(new Uint8Array(this.buf));let t=0;for(let i=0;i<this.chunks.length;i++)t+=this.chunks[i].length;let n=new Uint8Array(t),r=0;for(let i=0;i<this.chunks.length;i++)n.set(this.chunks[i],r),r+=this.chunks[i].length;return this.chunks=[],n}fork(){return this.stack.push({chunks:this.chunks,buf:this.buf}),this.chunks=[],this.buf=[],this}join(){let t=this.finish(),n=this.stack.pop();if(!n)throw new Error("invalid state, fork stack empty");return this.chunks=n.chunks,this.buf=n.buf,this.uint32(t.byteLength),this.raw(t)}tag(t,n){return this.uint32((t<<3|n)>>>0)}raw(t){return this.buf.length&&(this.chunks.push(new Uint8Array(this.buf)),this.buf=[]),this.chunks.push(t),this}uint32(t){for(AF(t);t>127;)this.buf.push(t&127|128),t=t>>>7;return this.buf.push(t),this}int32(t){return dx(t),FQ(t,this.buf),this}bool(t){return this.buf.push(t?1:0),this}bytes(t){return this.uint32(t.byteLength),this.raw(t)}string(t){let n=this.textEncoder.encode(t);return this.uint32(n.byteLength),this.raw(n)}float(t){Ofe(t);let n=new Uint8Array(4);return new DataView(n.buffer).setFloat32(0,t,!0),this.raw(n)}double(t){let n=new Uint8Array(8);return new DataView(n.buffer).setFloat64(0,t,!0),this.raw(n)}fixed32(t){AF(t);let n=new Uint8Array(4);return new DataView(n.buffer).setUint32(0,t,!0),this.raw(n)}sfixed32(t){dx(t);let n=new Uint8Array(4);return new DataView(n.buffer).setInt32(0,t,!0),this.raw(n)}sint32(t){return dx(t),t=(t<<1^t>>31)>>>0,FQ(t,this.buf),this}sfixed64(t){let n=new Uint8Array(8),r=new DataView(n.buffer),i=ri.enc(t);return r.setInt32(0,i.lo,!0),r.setInt32(4,i.hi,!0),this.raw(n)}fixed64(t){let n=new Uint8Array(8),r=new DataView(n.buffer),i=ri.uEnc(t);return r.setInt32(0,i.lo,!0),r.setInt32(4,i.hi,!0),this.raw(n)}int64(t){let n=ri.enc(t);return hM(n.lo,n.hi,this.buf),this}sint64(t){let n=ri.enc(t),r=n.hi>>31,i=n.lo<<1^r,o=(n.hi<<1|n.lo>>>31)^r;return hM(i,o,this.buf),this}uint64(t){let n=ri.uEnc(t);return hM(n.lo,n.hi,this.buf),this}}class HDe{constructor(t,n){this.varint64=LDe,this.uint32=UDe,this.buf=t,this.len=t.length,this.pos=0,this.view=new DataView(t.buffer,t.byteOffset,t.byteLength),this.textDecoder=n??new TextDecoder}tag(){let t=this.uint32(),n=t>>>3,r=t&7;if(n<=0||r<0||r>5)throw new Error("illegal tag: field no "+n+" wire type "+r);return[n,r]}skip(t,n){let r=this.pos;switch(t){case Ui.Varint:for(;this.buf[this.pos++]&128;);break;case Ui.Bit64:this.pos+=4;case Ui.Bit32:this.pos+=4;break;case Ui.LengthDelimited:let i=this.uint32();this.pos+=i;break;case Ui.StartGroup:for(;;){const[o,s]=this.tag();if(s===Ui.EndGroup){if(n!==void 0&&o!==n)throw new Error("invalid end group tag");break}this.skip(s,o)}break;default:throw new Error("cant skip wire type "+t)}return this.assertBounds(),this.buf.subarray(r,this.pos)}assertBounds(){if(this.pos>this.len)throw new RangeError("premature EOF")}int32(){return this.uint32()|0}sint32(){let t=this.uint32();return t>>>1^-(t&1)}int64(){return ri.dec(...this.varint64())}uint64(){return ri.uDec(...this.varint64())}sint64(){let[t,n]=this.varint64(),r=-(t&1);return t=(t>>>1|(n&1)<<31)^r,n=n>>>1^r,ri.dec(t,n)}bool(){let[t,n]=this.varint64();return t!==0||n!==0}fixed32(){return this.view.getUint32((this.pos+=4)-4,!0)}sfixed32(){return this.view.getInt32((this.pos+=4)-4,!0)}fixed64(){return ri.uDec(this.sfixed32(),this.sfixed32())}sfixed64(){return ri.dec(this.sfixed32(),this.sfixed32())}float(){return this.view.getFloat32((this.pos+=4)-4,!0)}double(){return this.view.getFloat64((this.pos+=8)-8,!0)}bytes(){let t=this.uint32(),n=this.pos;return this.pos+=t,this.assertBounds(),this.buf.subarray(n,n+t)}string(){return this.textDecoder.decode(this.bytes())}}function zDe(e,t,n,r){let i;return{typeName:t,extendee:n,get field(){if(!i){const o=typeof r=="function"?r():r;o.name=t.split(".").pop(),o.jsonName="[".concat(t,"]"),i=e.util.newFieldList([o]).list()[0]}return i},runtime:e}}function Bfe(e){const t=e.field.localName,n=Object.create(null);return n[t]=VDe(e),[n,()=>n[t]]}function VDe(e){const t=e.field;if(t.repeated)return[];if(t.default!==void 0)return t.default;switch(t.kind){case"enum":return t.T.values[0].no;case"scalar":return c1(t.T,t.L);case"message":const n=t.T,r=new n;return n.fieldWrapper?n.fieldWrapper.unwrapField(r):r;case"map":throw"map fields are not allowed to be extensions"}}function WDe(e,t){if(!t.repeated&&(t.kind=="enum"||t.kind=="scalar")){for(let n=e.length-1;n>=0;--n)if(e[n].no==t.no)return[e[n]];return[]}return e.filter(n=>n.no===t.no)}let yf="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789
385+/".split(""),Z3=[];for(let e=0;e<yf.length;e++)Z3[yf[e].charCodeAt(0)]=e;Z3[45]=yf.indexOf("+");Z3[95]=yf.indexOf("/");const $fe={dec(e){let t=e.length*3/4;e[e.length-2]=="="?t-=2:e[e.length-1]=="="&&(t-=1);let n=new Uint8Array(t),r=0,i=0,o,s=0;for(let a=0;a<e.length;a++){if(o=Z3[e.charCodeAt(a)],o===void 0)switch(e[a]){case"=":i=0;case`
386`:case"\r":case"	":case" ":continue;default:throw Error("invalid base64 string.")}switch(i){case 0:s=o,i=1;break;case 1:n[r++]=s<<2|(o&48)>>4,s=o,i=2;break;case 2:n[r++]=(s&15)<<4|(o&60)>>2,s=o,i=3;break;case 3:n[r++]=(s&3)<<6|o,i=0;break}}if(i==1)throw Error("invalid base64 string.");return n.subarray(0,r)},enc(e){let t="",n=0,r,i=0;for(let o=0;o<e.length;o++)switch(r=e[o],n){case 0:t+=yf[r>>2],i=(r&3)<<4,n=1;break;case 1:t+=yf[i|r>>4],i=(r&15)<<2,n=2;break;case 2:t+=yf[i|r>>6],t+=yf[r&63],n=0;break}return n&&(t+=yf[i],t+="=",n==1&&(t+="=")),t}};function qDe(e,t,n){zfe(t,e);const r=t.runtime.bin.makeReadOptions(n),i=WDe(e.getType().runtime.bin.listUnknownFields(e),t.field),[o,s]=Bfe(t);for(const a of i)t.runtime.bin.readField(o,r.readerFactory(a.data),t.field,a.wireType,r);return s()}function GDe(e,t,n,r){zfe(t,e);const i=t.runtime.bin.makeReadOptions(r),o=t.runtime.bin.makeWriteOptions(r);if(Hfe(e,t)){const l=e.getType().runtime.bin.listUnknownFields(e).filter(u=>u.no!=t.field.no);e.getType().runtime.bin.discardUnknownFields(e);for(const u of l)e.getType().runtime.bin.onUnknownField(e,u.no,u.wireType,u.data)}const s=o.writerFactory();let a=t.field;!a.opt&&!a.repeated&&(a.kind=="enum"||a.kind=="scalar")&&(a=Object.assign(Object.assign({},t.field),{opt:!0})),t.runtime.bin.writeField(a,n,s,o);const c=i.readerFactory(s.finish());for(;c.pos<c.len;){const[l,u]=c.tag(),d=c.skip(u,l);e.getType().runtime.bin.onUnknownField(e,l,u,d)}}function Hfe(e,t){const n=e.getType();return t.extendee.typeName===n.typeName&&!!n.runtime.bin.listUnknownFields(e).find(r=>r.no==t.field.no)}function zfe(e,t){ki(e.extendee.typeName==t.getType().typeName,"extension ".concat(e.typeName," can only be applied to message ").concat(e.extendee.typeName))}function Vfe(e,t){const n=e.localName;if(e.repeated)return t[n].length>0;if(e.oneof)return t[e.oneof.localName].case===n;switch(e.kind){case"enum":case"scalar":return e.opt||e.req?t[n]!==void 0:e.kind=="enum"?t[n]!==e.T.values[0].no:!Ufe(e.T,t[n]);case"message":return t[n]!==void 0;case"map":return Object.keys(t[n]).length>0}}function jQ(e,t){const n=e.localName,r=!e.opt&&!e.req;if(e.repeated)t[n]=[];else if(e.oneof)t[e.oneof.localName]={case:void 0};else switch(e.kind){case"map":t[n]={};break;case"enum":t[n]=r?e.T.values[0].no:void 0;break;case"scalar":t[n]=r?c1(e.T,e.L):void 0;break;case"message":t[n]=void 0;break}}function bf(e,t){if(e===null||typeof e!="object"||!Object.getOwnPropertyNames(YB.prototype).every(r=>r in e&&typeof e[r]=="function"))return!1;const n=e.getType();return n===null||typeof n!="function"||!("typeName"in n)||typeof n.typeName!="string"?!1:t===void 0?!0:n.typeName==t.typeName}function Wfe(e,t){return bf(t)||!e.fieldWrapper?t:e.fieldWrapper.wrapField(t)}We.DOUBLE,We.FLOAT,We.INT64,We.UINT64,We.INT32,We.UINT32,We.BOOL,We.STRING,We.BYTES;const UQ={ignoreUnknownFields:!1},BQ={emitDefaultValues:!1,enumAsInteger:!1,useProtoFieldName:!1,prettySpaces:0};function KDe(e){return e?Object.assign(Object.assign({},UQ),e):UQ}function YDe(e){return e?Object.assign(Object.assign({},BQ),e):BQ}const qA=Symbol(),hx=Symbol();function QDe(){return{makeReadOptions:KDe,makeWriteOptions:YDe,readMessage(e,t,n,r){if(t==null||Array.isArray(t)||typeof t!="object")throw new Error("cannot decode message ".concat(e.typeName," from JSON: ").concat(Lu(t)));r=r??new e;const i=new Map,o=n.typeRegistry;for(const[s,a]of Object.entries(t)){const c=e.fields.findJsonName(s);if(c){if(c.oneof){if(a===null&&c.kind=="scalar")continue;const l=i.get(c.oneof);if(l!==void 0)throw new Error("cannot decode message ".concat(e.typeName,' from JSON: multiple keys for oneof "').concat(c.oneof.name,'" present: "').concat(l,'", "').concat(s,'"'));i.set(c.oneof,s)}$Q(r,a,c,n,e)}else{let l=!1;if(o!=null&&o.findExtension&&s.startsWith("[")&&s.endsWith("]")){const u=o.findExtension(s.substring(1,s.length-1));if(u&&u.extendee.typeName==e.typeName){l=!0;const[d,f]=Bfe(u);$Q(d,a,u.field,n,u),GDe(r,u,f(),n)}}if(!l&&!n.ignoreUnknownFields)throw new Error("cannot decode message ".concat(e.typeName,' from JSON: key "').concat(s,'" is unknown'))}}return r},writeMessage(e,t){const n=e.getType(),r={};let i;try{for(i of n.fields.byNumber()){if(!Vfe(i,e)){if(i.req)throw"required field not set";if(!t.emitDefaultValues||!JDe(i))continue}
vendor: 18,030 bytes, line 386
386const s=i.oneof?e[i.oneof.localName].value:e[i.localName],a=HQ(i,s,t);a!==void 0&&(r[t.useProtoFieldName?i.name:i.jsonName]=a)}const o=t.typeRegistry;if(o!=null&&o.findExtensionFor)for(const s of n.runtime.bin.listUnknownFields(e)){const a=o.findExtensionFor(n.typeName,s.no);if(a&&Hfe(e,a)){const c=qDe(e,a,t),l=HQ(a.field,c,t);l!==void 0&&(r[a.field.jsonName]=l)}}}catch(o){const s=i?"cannot encode field ".concat(n.typeName,".").concat(i.name," to JSON"):"cannot encode message ".concat(n.typeName," to JSON"),a=o instanceof Error?o.message:String(o);throw new Error(s+(a.length>0?": ".concat(a):""))}return r},readScalar(e,t,n){return $S(e,t,n??rm.BIGINT,!0)},writeScalar(e,t,n){if(t!==void 0&&(n||Ufe(e,t)))return px(e,t)},debug:Lu}}function Lu(e){if(e===null)return"null";switch(typeof e){case"object":return Array.isArray(e)?"array":"object";case"string":return e.length>100?"string":'"'.concat(e.split('"').join('\\"'),'"');default:return String(e)}}function $Q(e,t,n,r,i){let o=n.localName;if(n.repeated){if(ki(n.kind!="map"),t===null)return;if(!Array.isArray(t))throw new Error("cannot decode field ".concat(i.typeName,".").concat(n.name," from JSON: ").concat(Lu(t)));const s=e[o];for(const a of t){if(a===null)throw new Error("cannot decode field ".concat(i.typeName,".").concat(n.name," from JSON: ").concat(Lu(a)));switch(n.kind){case"message":s.push(n.T.fromJson(a,r));break;case"enum":const c=pM(n.T,a,r.ignoreUnknownFields,!0);c!==hx&&s.push(c);break;case"scalar":try{s.push($S(n.T,a,n.L,!0))}catch(l){let u="cannot decode field ".concat(i.typeName,".").concat(n.name," from JSON: ").concat(Lu(a));throw l instanceof Error&&l.message.length>0&&(u+=": ".concat(l.message)),new Error(u)}break}}}else if(n.kind=="map"){if(t===null)return;if(typeof t!="object"||Array.isArray(t))throw new Error("cannot decode field ".concat(i.typeName,".").concat(n.name," from JSON: ").concat(Lu(t)));const s=e[o];for(const[a,c]of Object.entries(t)){if(c===null)throw new Error("cannot decode field ".concat(i.typeName,".").concat(n.name," from JSON: map value null"));let l;try{l=XDe(n.K,a)}catch(u){let d="cannot decode map key for field ".concat(i.typeName,".").concat(n.name," from JSON: ").concat(Lu(t));throw u instanceof Error&&u.message.length>0&&(d+=": ".concat(u.message)),new Error(d)}switch(n.V.kind){case"message":s[l]=n.V.T.fromJson(c,r);break;case"enum":const u=pM(n.V.T,c,r.ignoreUnknownFields,!0);u!==hx&&(s[l]=u);break;case"scalar":try{s[l]=$S(n.V.T,c,rm.BIGINT,!0)}catch(d){let f="cannot decode map value for field ".concat(i.typeName,".").concat(n.name," from JSON: ").concat(Lu(t));throw d instanceof Error&&d.message.length>0&&(f+=": ".concat(d.message)),new Error(f)}break}}}else switch(n.oneof&&(e=e[n.oneof.localName]={case:o},o="value"),n.kind){case"message":const s=n.T;if(t===null&&s.typeName!="google.protobuf.Value")return;let a=e[o];bf(a)?a.fromJson(t,r):(e[o]=a=s.fromJson(t,r),s.fieldWrapper&&!n.oneof&&(e[o]=s.fieldWrapper.unwrapField(a)));break;case"enum":const c=pM(n.T,t,r.ignoreUnknownFields,!1);switch(c){case qA:jQ(n,e);break;case hx:break;default:e[o]=c;break}break;case"scalar":try{const l=$S(n.T,t,n.L,!1);switch(l){case qA:jQ(n,e);break;default:e[o]=l;break}}catch(l){let u="cannot decode field ".concat(i.typeName,".").concat(n.name," from JSON: ").concat(Lu(t));throw l instanceof Error&&l.message.length>0&&(u+=": ".concat(l.message)),new Error(u)}break}}function XDe(e,t){if(e===We.BOOL)switch(t){case"true":t=!0;break;case"false":t=!1;break}return $S(e,t,rm.BIGINT,!0).toString()}function $S(e,t,n,r){if(t===null)return r?c1(e,n):qA;switch(e){case We.DOUBLE:case We.FLOAT:if(t==="NaN")return Number.NaN;if(t==="Infinity")return Number.POSITIVE_INFINITY;if(t==="-Infinity")return Number.NEGATIVE_INFINITY;if(t===""||typeof t=="string"&&t.trim().length!==t.length||typeof t!="string"&&typeof t!="number")break;const i=Number(t);if(Number.isNaN(i)||!Number.isFinite(i))break;return e==We.FLOAT&&Ofe(i),i;case We.INT32:case We.FIXED32:case We.SFIXED32:case We.SINT32:case We.UINT32:let o;if(typeof t=="number"?o=t:typeof t=="string"&&t.length>0&&t.trim().length===t.length&&(o=Number(t)),o===void 0)break;return e==We.UINT32||e==We.FIXED32?AF(o):dx(o),o;case We.INT64:case We.SFIXED64:case We.SINT64:if(typeof t!="number"&&typeof t!="string")break;const s=ri.parse(t);return n?s.toString():s;case We.FIXED64:case We.UINT64:if(typeof t!="number"&&typeof t!="string")break;const a=ri.uParse(t);return n?a.toString():a;case We.BOOL:if(typeof t!="boolean")break;return t;case We.STRING:if(typeof t!="string")break;try{encodeURIComponent(t)}catch{throw new Error("invalid UTF8")}return t;case We.BYTES:if(t==="")return new Uint8Array(0);if(typeof t!="string")break;return $fe.dec(t)}throw new Error}function pM(e,t,n,r){if(t===null)return e.typeName=="google.protobuf.NullValue"?0:r?e.values[0].no:qA;switch(typeof t){case"number":if(Number.isInteger(t))return t;break;case"string":const i=e.findName(t);if(i!==void 0)return i.no;if(n)return hx;break}throw new Error("cannot decode enum ".concat(e.typeName," from JSON: ").concat(Lu(t)))}function JDe(e){return e.repeated||e.kind=="map"?!0:!(e.oneof||e.kind=="message"||e.opt||e.req)}function HQ(e,t,n){if(e.kind=="map"){ki(typeof t=="object"&&t!=null);const r={},i=Object.entries(t);switch(e.V.kind){case"scalar":for(const[s,a]of i)r[s.toString()]=px(e.V.T,a);break;case"message":for(const[s,a]of i)r[s.toString()]=a.toJson(n);break;case"enum":const o=e.V.T;for(const[s,a]of i)r[s.toString()]=mM(o,a,n.enumAsInteger);break}return n.emitDefaultValues||i.length>0?r:void 0}if(e.repeated){ki(Array.isArray(t));const r=[];switch(e.kind){case"scalar":for(let i=0;i<t.length;i++)r.push(px(e.T,t[i]));break;case"enum":for(let i=0;i<t.length;i++)r.push(mM(e.T,t[i],n.enumAsInteger));break;case"message":for(let i=0;i<t.length;i++)r.push(t[i].toJson(n));break}return n.emitDefaultValues||r.length>0?r:void 0}switch(e.kind){case"scalar":return px(e.T,t);case"enum":return mM(e.T,t,n.enumAsInteger);case"message":return Wfe(e.T,t).toJson(n)}}function mM(e,t,n){var r;if(ki(typeof t=="number"),e.typeName=="google.protobuf.NullValue")return null;if(n)return t;const i=e.findNumber(t);return(r=i==null?void 0:i.name)!==null&&r!==void 0?r:t}function px(e,t){switch(e){case We.INT32:case We.SFIXED32:case We.SINT32:case We.FIXED32:case We.UINT32:return ki(typeof t=="number"),t;case We.FLOAT:case We.DOUBLE:return ki(typeof t=="number"),Number.isNaN(t)?"NaN":t===Number.POSITIVE_INFINITY?"Infinity":t===Number.NEGATIVE_INFINITY?"-Infinity":t;case We.STRING:return ki(typeof t=="string"),t;case We.BOOL:return ki(typeof t=="boolean"),t;case We.UINT64:case We.FIXED64:case We.INT64:case We.SFIXED64:case We.SINT64:return ki(typeof t=="bigint"||typeof t=="string"||typeof t=="number"),t.toString();case We.BYTES:return ki(t instanceof Uint8Array),$fe.enc(t)}}const l0=Symbol("@bufbuild/protobuf/unknown-fields"),zQ={readUnknownFields:!0,readerFactory:e=>new HDe(e)},VQ={writeUnknownFields:!0,writerFactory:()=>new $De};function ZDe(e){return e?Object.assign(Object.assign({},zQ),e):zQ}function eLe(e){return e?Object.assign(Object.assign({},VQ),e):VQ}function tLe(){return{makeReadOptions:ZDe,makeWriteOptions:eLe,listUnknownFields(e){var t;return(t=e[l0])!==null&&t!==void 0?t:[]},discardUnknownFields(e){delete e[l0]},writeUnknownFields(e,t){const r=e[l0];if(r)for(const i of r)t.tag(i.no,i.wireType).raw(i.data)},onUnknownField(e,t,n,r){const i=e;Array.isArray(i[l0])||(i[l0]=[]),i[l0].push({no:t,wireType:n,data:r})},readMessage(e,t,n,r,i){const o=e.getType(),s=i?t.len:t.pos+n;let a,c;for(;t.pos<s&&([a,c]=t.tag(),!(i===!0&&c==Ui.EndGroup));){const l=o.fields.find(a);if(!l){const u=t.skip(c,a);r.readUnknownFields&&this.onUnknownField(e,a,c,u);continue}WQ(e,t,l,c,r)}if(i&&(c!=Ui.EndGroup||a!==n))throw new Error("invalid end group tag")},readField:WQ,writeMessage(e,t,n){const r=e.getType();for(const i of r.fields.byNumber()){if(!Vfe(i,e)){if(i.req)throw new Error("cannot encode field ".concat(r.typeName,".").concat(i.name," to binary: required field not set"));continue}const o=i.oneof?e[i.oneof.localName].value:e[i.localName];qQ(i,o,t,n)}return n.writeUnknownFields&&this.writeUnknownFields(e,t),t},writeField(e,t,n,r){t!==void 0&&qQ(e,t,n,r)}}}function WQ(e,t,n,r,i){let{repeated:o,localName:s}=n;switch(n.oneof&&(e=e[n.oneof.localName],e.case!=s&&delete e.value,e.case=s,s="value"),n.kind){case"scalar":case"enum":const a=n.kind=="enum"?We.INT32:n.T;let c=GA;if(n.kind=="scalar"&&n.L>0&&(c=rLe),o){let f=e[s];if(r==Ui.LengthDelimited&&a!=We.STRING&&a!=We.BYTES){let g=t.uint32()+t.pos;for(;t.pos<g;)f.push(c(t,a))}else f.push(c(t,a))}else e[s]=c(t,a);break;case"message":const l=n.T;o?e[s].push(mx(t,new l,i,n)):bf(e[s])?mx(t,e[s],i,n):(e[s]=mx(t,new l,i,n),l.fieldWrapper&&!n.oneof&&!n.repeated&&(e[s]=l.fieldWrapper.unwrapField(e[s])));break;case"map":let[u,d]=nLe(n,t,i);e[s][u]=d;break}}function mx(e,t,n,r){const i=t.getType().runtime.bin,o=r==null?void 0:r.delimited;return i.readMessage(t,e,o?r.no:e.uint32(),n,o),t}function nLe(e,t,n){const r=t.uint32(),i=t.pos+r;let o,s;for(;t.pos<i;){const[a]=t.tag();switch(a){case 1:o=GA(t,e.K);break;case 2:switch(e.V.kind){case"scalar":s=GA(t,e.V.T);break;case"enum":s=t.int32();break;case"message":s=mx(t,new e.V.T,n,void 0);break}break}}if(o===void 0&&(o=c1(e.K,rm.BIGINT)),typeof o!="string"&&typeof o!="number"&&(o=o.toString()),s===void 0)switch(e.V.kind){case"scalar":s=c1(e.V.T,rm.BIGINT);break;case"enum":s=e.V.T.values[0].no;break;case"message":s=new e.V.T;break}return[o,s]}function rLe(e,t){const n=GA(e,t);return typeof n=="bigint"?n.toString():n}function GA(e,t){switch(t){case We.STRING:return e.string();case We.BOOL:return e.bool();case We.DOUBLE:return e.double();case We.FLOAT:return e.float();case We.INT32:return e.int32();case We.INT64:return e.int64();case We.UINT64:return e.uint64();case We.FIXED64:return e.fixed64();case We.BYTES:return e.bytes();case We.FIXED32:return e.fixed32();case We.SFIXED32:return e.sfixed32();case We.SFIXED64:return e.sfixed64();case We.SINT64:return e.sint64();case We.UINT32:return e.uint32();case We.SINT32:return e.sint32()}}function qQ(e,t,n,r){ki(t!==void 0);const i=e.repeated;switch(e.kind){case"scalar":case"enum":let o=e.kind=="enum"?We.INT32:e.T;if(i)if(ki(Array.isArray(t)),e.packed)oLe(n,o,e.no,t);else for(const s of t)HS(n,o,e.no,s);else HS(n,o,e.no,t);break;case"message":if(i){ki(Array.isArray(t));for(const s of t)GQ(n,r,e,s)}else GQ(n,r,e,t);break;case"map":ki(typeof t=="object"&&t!=null);for(const[s,a]of Object.entries(t))iLe(n,r,e,s,a);break}}function iLe(e,t,n,r,i){e.tag(n.no,Ui.LengthDelimited),e.fork();let o=r;switch(n.K){case We.INT32:case We.FIXED32:case We.UINT32:case We.SFIXED32:case We.SINT32:o=Number.parseInt(r);break;case We.BOOL:ki(r=="true"||r=="false"),o=r=="true";break}switch(HS(e,n.K,1,o),n.V.kind){case"scalar":HS(e,n.V.T,2,i);break;case"enum":HS(e,We.INT32,2,i);break;case"message":ki(i!==void 0),e.tag(2,Ui.LengthDelimited).bytes(i.toBinary(t));break}e.join()}function GQ(e,t,n,r){const i=Wfe(n.T,r);n.delimited?e.tag(n.no,Ui.StartGroup).raw(i.toBinary(t)).tag(n.no,Ui.EndGroup):e.tag(n.no,Ui.LengthDelimited).bytes(i.toBinary(t))}function HS(e,t,n,r){ki(r!==void 0);let[i,o]=qfe(t);e.tag(n,i)[o](r)}function oLe(e,t,n,r){if(!r.length)return;e.tag(n,Ui.LengthDelimited).fork();let[,i]=qfe(t);for(let o=0;o<r.length;o++)e[i](r[o]);e.join()}function qfe(e){let t=Ui.Varint;switch(e){case We.BYTES:case We.STRING:t=Ui.LengthDelimited;break;case We.DOUBLE:case We.FIXED64:case We.SFIXED64:t=Ui.Bit64;break;case We.FIXED32:case We.SFIXED32:case We.FLOAT:t=Ui.Bit32;break}const n=We[e].toLowerCase();return[t,n]}function sLe(){return{setEnumType:Mfe,initPartial(e,t){if(e===void 0)return;const n=t.getType();for(const r of n.fields.byMember()){const i=r.localName,o=t,s=e;if(s[i]!=null)switch(r.kind){case"oneof":const a=s[i].case;if(a===void 0)continue;const c=r.findField(a);let l=s[i].value;c&&c.kind=="message"&&!bf(l,c.T)?l=new c.T(l):c&&c.kind==="scalar"&&c.T===We.BYTES&&(l=Ow(l)),o[i]={case:a,value:l};break;case"scalar":case"enum":let u=s[i];r.T===We.BYTES&&(u=r.repeated?u.map(Ow):Ow(u)),o[i]=u;break;case"map":switch(r.V.kind){case"scalar":case"enum":if(r.V.T===We.BYTES)for(const[p,g]of Object.entries(s[i]))o[i][p]=Ow(g);else Object.assign(o[i],s[i]);break;case"message":const f=r.V.T;for(const p of Object.keys(s[i])){let g=s[i][p];f.fieldWrapper||(g=new f(g)),o[i][p]=g}break}break;case"message":const d=r.T;if(r.repeated)o[i]=s[i].map(f=>bf(f,d)?f:new d(f));else{const f=s[i];d.fieldWrapper?d.typeName==="google.protobuf.BytesValue"?o[i]=Ow(f):o[i]=f:o[i]=bf(f,d)?f:new d(f)}break}}},equals(e,t,n){return t===n?!0:!t||!n?!1:e.fields.byMember().every(r=>{const i=t[r.localName],o=n[r.localName];if(r.repeated){if(i.length!==o.length)return!1;switch(r.kind){case"message":return i.every((s,a)=>r.T.equals(s,o[a]));case"scalar":return i.every((s,a)=>Dh(r.T,s,o[a]));case"enum":return i.every((s,a)=>Dh(We.INT32,s,o[a]))}throw new Error("repeated cannot contain ".concat(r.kind))}switch(r.kind){case"message":let s=i,a=o;return r.T.fieldWrapper&&(s!==void 0&&!bf(s)&&(s=r.T.fieldWrapper.wrapField(s)),a!==void 0&&!bf(a)&&(a=r.T.fieldWrapper.wrapField(a))),r.T.equals(s,a);case"enum":return Dh(We.INT32,i,o);case"scalar":return Dh(r.T,i,o);case"oneof":if(i.case!==o.case)return!1;const c=r.findField(i.case);if(c===void 0)return!0;switch(c.kind){case"message":return c.T.equals(i.value,o.value);case"enum":return Dh(We.INT32,i.value,o.value);case"scalar":return Dh(c.T,i.value,o.value)}throw new Error("oneof cannot contain ".concat(c.kind));case"map":const l=Object.keys(i).concat(Object.keys(o));switch(r.V.kind){case"message":const u=r.V.T;return l.every(f=>u.equals(i[f],o[f]));case"enum":return l.every(f=>Dh(We.INT32,i[f],o[f]));case"scalar":const d=r.V.T;return l.every(f=>Dh(d,i[f],o[f]))}break}})},clone(e){const t=e.getType(),n=new t,r=n;for(const i of t.fields.byMember()){const o=e[i.localName];let s;if(i.repeated)s=o.map(gT);else if(i.kind=="map"){s=r[i.localName];for(const[a,c]of Object.entries(o))s[a]=gT(c)}else i.kind=="oneof"?s=i.findField(o.case)?{case:o.case,value:gT(o.value)}:{case:void 0}:s=gT(o);r[i.localName]=s}for(const i of t.runtime.bin.listUnknownFields(e))t.runtime.bin.onUnknownField(r,i.no,i.wireType,i.data);return n}}}function gT(e){if(e===void 0)return e;if(bf(e))return e.clone();if(e instanceof Uint8Array){const t=new Uint8Array(e.byteLength);return t.set(e),t}return e}function Ow(e){return e instanceof Uint8Array?e:new Uint8Array(e)}function aLe(e,t,n){return{syntax:e,json:QDe(),bin:tLe(),util:Object.assign(Object.assign({},sLe()),{newFieldList:t,initFields:n}),makeMessageType(r,i,o){return DDe(this,r,i,o)},makeEnum:MDe,makeEnumType:Dfe,getEnumType:NDe,makeExtension(r,i,o){return zDe(this,r,i,o)}}}class cLe{constructor(t,n){this._fields=t,this._normalizer=n}findJsonName(t){if(!this.jsonNames){const n={};for(const r of this.list())n[r.jsonName]=n[r.name]=r;this.jsonNames=n}return this.jsonNames[t]}find(t){if(!this.numbers){const n={};for(const r of this.list())n[r.no]=r;this.numbers=n}return this.numbers[t]}list(){return this.all||(this.all=this._normalizer(this._fields)),this.all}byNumber(){return this.numbersAsc||(this.numbersAsc=this.list().concat().sort((t,n)=>t.no-n.no)),this.numbersAsc}byMember(){if(!this.members){this.members=[];const t=this.members;let n;for(const r of this.list())r.oneof?r.oneof!==n&&(n=r.oneof,t.push(n)):t.push(r)}return this.members}}function Gfe(e,t){const n=Kfe(e);return t?n:pLe(hLe(n))}function lLe(e){return Gfe(e,!1)}const uLe=Kfe;function Kfe(e){let t=!1;const n=[];for(let r=0;r<e.length;r++){let i=e.charAt(r);switch(i){case"_":t=!0;break;case"0":case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":n.push(i),t=!1;break;default:t&&(t=!1,i=i.toUpperCase()),n.push(i);break}}return n.join("")}const dLe=new Set(["constructor","toString","toJSON","valueOf"]),fLe=new Set(["getType","clone","equals","fromBinary","fromJson","fromJsonString","toBinary","toJson","toJsonString","toObject"]),Yfe=e=>"".concat(e,"$"),hLe=e=>fLe.has(e)?Yfe(e):e,pLe=e=>dLe.has(e)?Yfe(e):e;class mLe{constructor(t){this.kind="oneof",this.repeated=!1,this.packed=!1,this.opt=!1,this.req=!1,this.default=void 0,this.fields=[],this.name=t,this.localName=lLe(t)}addField(t){ki(t.oneof===this,"field ".concat(t.name," not one of ").concat(this.name)),this.fields.push(t)}findField(t){if(!this._lookup){this._lookup=Object.create(null);for(let n=0;n<this.fields.length;n++)this._lookup[this.fields[n].localName]=this.fields[n]}return this._lookup[t]}}function gLe(e,t){var n,r,i,o,s,a;const c=[];let l;for(const u of typeof e=="function"?e():e){const d=u;if(d.localName=Gfe(u.name,u.oneof!==void 0),d.jsonName=(n=u.jsonName)!==null&&n!==void 0?n:uLe(u.name),d.repeated=(r=u.repeated)!==null&&r!==void 0?r:!1,u.kind=="scalar"&&(d.L=(i=u.L)!==null&&i!==void 0?i:rm.BIGINT),d.delimited=(o=u.delimited)!==null&&o!==void 0?o:!1,d.req=(s=u.req)!==null&&s!==void 0?s:!1,d.opt=(a=u.opt)!==null&&a!==void 0?a:!1,u.packed===void 0&&(d.packed=u.kind=="enum"||u.kind=="scalar"&&u.T!=We.BYTES&&u.T!=We.STRING),u.oneof!==void 0){const f=typeof u.oneof=="string"?u.oneof:u.oneof.name;(!l||l.name!=f)&&(l=new mLe(f)),d.oneof=l,l.addField(d)}c.push(d)}return c}const Oe=aLe("proto3",e=>new cLe(e,t=>gLe(t)),e=>{for(const t of e.getType().fields.byMember()){if(t.opt)continue;const n=t.localName,r=e;if(t.repeated){r[n]=[];continue}switch(t.kind){case"oneof":r[n]={case:void 0};break;case"enum":r[n]=0;break;case"map":r[n]={};break;case"scalar":r[n]=c1(t.T,t.L);break}}});class va extends YB{constructor(t){super(),this.seconds=ri.zero,this.nanos=0,Oe.util.initPartial(t,this)}fromJson(t,n){if(typeof t!="string")throw new Error("cannot decode google.protobuf.Timestamp from JSON: ".concat(Oe.json.debug(t)));const r=t.match(/^([0-9]{4})-([0-9]{2})-([0-9]{2})T([0-9]{2}):([0-9]{2}):([0-9]{2})(?:Z|\.([0-9]{3,9})Z|([+-][0-9][0-9]:[0-9][0-9]))$/);if(!r)throw new Error("cannot decode google.protobuf.Timestamp from JSON: invali
386d RFC 3339 string");const i=Date.parse(r[1]+"-"+r[2]+"-"+r[3]+"T"+r[4]+":"+r[5]+":"+r[6]+(r[8]?r[8]:"Z"));if(Number.isNaN(i))throw new Error("cannot decode google.protobuf.Timestamp from JSON: invalid RFC 3339 string");if(i<Date.parse("0001-01-01T00:00:00Z")||i>Date.parse("9999-12-31T23:59:59Z"))throw new Error("cannot decode message google.protobuf.Timestamp from JSON: must be from 0001-01-01T00:00:00Z to 9999-12-31T23:59:59Z inclusive");return this.seconds=ri.parse(i/1e3),this.nanos=0,r[7]&&(this.nanos=parseInt("1"+r[7]+"0".repeat(9-r[7].length))-1e9),this}toJson(t){const n=Number(this.seconds)*1e3;if(n<Date.parse("0001-01-01T00:00:00Z")||n>Date.parse("9999-12-31T23:59:59Z"))throw new Error("cannot encode google.protobuf.Timestamp to JSON: must be from 0001-01-01T00:00:00Z to 9999-12-31T23:59:59Z inclusive");if(this.nanos<0)throw new Error("cannot encode google.protobuf.Timestamp to JSON: nanos must not be negative");let r="Z";if(this.nanos>0){const i=(this.nanos+1e9).toString().substring(1);i.substring(3)==="000000"?r="."+i.substring(0,3)+"Z":i.substring(6)==="000"?r="."+i.substring(0,6)+"Z":r="."+i+"Z"}return new Date(n).toISOString().replace(".000Z",r)}toDate(){return new Date(Number(this.seconds)*1e3+Math.ceil(this.nanos/1e6))}static now(){return va.fromDate(new Date)}static fromDate(t){const n=t.getTime();return new va({seconds:ri.parse(Math.floor(n/1e3)),nanos:n%1e3*1e6})}static fromBinary(t,n){return new va().fromBinary(t,n)}static fromJson(t,n){return new va().fromJson(t,n)}static fromJsonString(t,n){return new va().fromJsonString(t,n)}static equals(t,n){return Oe.util.equals(va,t,n)}}va.runtime=Oe;va.typeName="google.protobuf.Timestamp";va.fields=Oe.util.newFieldList(()=>[{no:1,name:"seconds",kind:"scalar",T:3},{no:2,name:"nanos",kind:"scalar",T:5}]);const vLe=Oe.makeMessageType("livekit.MetricsBatch",()=>[{no:1,name:"timestamp_ms",kind:"scalar",T:3},{no:2,name:"normalized_timestamp",kind:"message",T:va},{no:3,name:"str_data",kind:"scalar",T:9,repeated:!0},{no:4,name:"time_series",kind:"message",T:yLe,repeated:!0},{no:5,name:"events",kind:"message",T:wLe,repeated:!0}]),yLe=Oe.makeMessageType("livekit.TimeSeriesMetric",()=>[{no:1,name:"label",kind:"scalar",T:13},{no:2,name:"participant_identity",kind:"scalar",T:13},{no:3,name:"track_sid",kind:"scalar",T:13},{no:4,name:"samples",kind:"message",T:bLe,repeated:!0},{no:5,name:"rid",kind:"scalar",T:13}]),bLe=Oe.makeMessageType("livekit.MetricSample",()=>[{no:1,name:"timestamp_ms",kind:"scalar",T:3},{no:2,name:"normalized_timestamp",kind:"message",T:va},{no:3,name:"value",kind:"scalar",T:2}]),wLe=Oe.makeMessageType("livekit.EventMetric",()=>[{no:1,name:"label",kind:"scalar",T:13},{no:2,name:"participant_identity",kind:"scalar",T:13},{no:3,name:"track_sid",kind:"scalar",T:13},{no:4,name:"start_timestamp_ms",kind:"scalar",T:3},{no:5,name:"end_timestamp_ms",kind:"scalar",T:3,opt:!0},{no:6,name:"normalized_start_timestamp",kind:"message",T:va},{no:7,name:"normalized_end_timestamp",kind:"message",T:va,opt:!0},{no:8,name:"metadata",kind:"scalar",T:9},{no:9,name:"rid",kind:"scalar",T:13}]),Qfe=Oe.makeEnum("livekit.BackupCodecPolicy",[{no:0,name:"PREFER_REGRESSION"},{no:1,name:"SIMULCAST"},{no:2,name:"REGRESSION"}]),Fl=Oe.makeEnum("livekit.TrackType",[{no:0,name:"AUDIO"},{no:1,name:"VIDEO"},{no:2,name:"DATA"}]),Zi=Oe.makeEnum("livekit.TrackSource",[{no:0,name:"UNKNOWN"},{no:1,name:"CAMERA"},{no:2,name:"MICROPHONE"},{no:3,name:"SCREEN_SHARE"},{no:4,name:"SCREEN_SHARE_AUDIO"}]),XB=Oe.makeEnum("livekit.VideoQuality",[{no:0,name:"LOW"},{no:1,name:"MEDIUM"},{no:2,name:"HIGH"},{no:3,name:"OFF"}]),SS=Oe.makeEnum("livekit.ConnectionQuality",[{no:0,name:"POOR"},{no:1,name:"GOOD"},{no:2,name:"EXCELLENT"},{no:3,name:"LOST"}]),K_=Oe.makeEnum("livekit.ClientConfigSetting",[{no:0,name:"UNSET"},{no:1,name:"DISABLED"},{no:2,name:"ENABLED"}]),Vl=Oe.makeEnum("livekit.DisconnectReason",[{no:0,name:"UNKNOWN_REASON"},{no:1,name:"CLIENT_INITIATED"},{no:2,name:"DUPLICATE_IDENTITY"},{no:3,name:"SERVER_SHUTDOWN"},{no:4,name:"PARTICIPANT_REMOVED"},{no:5,name:"ROOM_DELETED"},{no:6,name:"STATE_MISMATCH"},{no:7,name:"JOIN_FAILURE"},{no:8,name:"MIGRATION"},{no:9,name:"SIGNAL_CLOSE"},{no:10,name:"ROOM_CLOSED"},{no:11,name:"USER_UNAVAILABLE"},{no:12,name:"USER_REJECTED"},{no:13,name:"SIP_TRUNK_FAILURE"},{no:14,name:"CONNECTION_TIMEOUT"},{no:15,name:"MEDIA_FAILURE"}]),u0=Oe.makeEnum("livekit.ReconnectReason",[{no:0,name:"RR_UNKNOWN"},{no:1,name:"RR_SIGNAL_DISCONNECTED"},{no:2,name:"RR_PUBLISHER_FAILED"},{no:3,name:"RR_SUBSCRIBER_FAILED"},{no:4,name:"RR_SWITCH_CANDIDATE"}]),SLe=Oe.makeEnum("livekit.SubscriptionError",[{no:0,name:"SE_UNKNOWN"},{no:1,name:"SE_CODEC_UNSUPPORTED"},{no:2,name:"SE_TRACK_NOTFOUND"}]),Do=Oe.makeEnum("livekit.AudioTrackFeature",[{no:0,name:"TF_STEREO"},{no:1,name:"TF_NO_DTX"},{no:2,name:"TF_AUTO_GAIN_CONTROL"},{no:3,name:"TF_ECHO_CANCELLATION"},{no:4,name:"TF_NOISE_SUPPRESSION"},{no:5,name:"TF_ENHANCED_NOISE_CANCELLATION"},{no:6,name:"TF_PRECONNECT_BUFFER"}]),eP=Oe.makeMessageType("livekit.Room",()=>[{no:1,name:"sid",kind:"scalar",T:9},{no:2,name:"name",kind:"scalar",T:9},{no:3,name:"empty_timeout",kind:"scalar",T:13},{no:14,name:"departure_timeout",kind:"scalar",T:13},{no:4,name:"max_participants",kind:"scalar",T:13},{no:5,name:"creation_time",kind:"scalar",T:3},{no:15,name:"creation_time_ms",kind:"scalar",T:3},{no:6,name:"turn_password",kind:"scalar",T:9},{no:7,name:"enabled_codecs",kind:"message",T:KA,repeated:!0},{no:8,name:"metadata",kind:"scalar",T:9},{no:9,name:"num_participants",kind:"scalar",T:13},{no:11,name:"num_publishers",kind:"scalar",T:13},{no:10,name:"active_recording",kind:"scalar",T:8},{no:13,name:"version",kind:"message",T:lhe}]),KA=Oe.makeMessageType("livekit.Codec",()=>[{no:1,name:"mime",kind:"scalar",T:9},{no:2,name:"fmtp_line",kind:"scalar",T:9}]),_Le=Oe.makeMessageType("livekit.ParticipantPermission",()=>[{no:1,name:"can_subscribe",kind:"scalar",T:8},{no:2,name:"can_publish",kind:"scalar",T:8},{no:3,name:"can_publish_data",kind:"scalar",T:8},{no:9,name:"can_publish_sources",kind:"enum",T:Oe.getEnumType(Zi),repeated:!0},{no:7,name:"hidden",kind:"scalar",T:8},{no:8,name:"recorder",kind:"scalar",T:8},{no:10,name:"can_update_metadata",kind:"scalar",T:8},{no:11,name:"agent",kind:"scalar",T:8},{no:12,name:"can_subscribe_metrics",kind:"scalar",T:8}]),iv=Oe.makeMessageType("livekit.ParticipantInfo",()=>[{no:1,name:"sid",kind:"scalar",T:9},{no:2,name:"identity",kind:"scalar",T:9},{no:3,name:"state",kind:"enum",T:Oe.getEnumType(Ty)},{no:4,name:"tracks",kind:"message",T:ty,repeated:!0},{no:5,name:"metadata",kind:"scalar",T:9},{no:6,name:"joined_at",kind:"scalar",T:3},{no:17,name:"joined_at_ms",kind:"scalar",T:3},{no:9,name:"name",kind:"scalar",T:9},{no:10,name:"version",kind:"scalar",T:13},{no:11,name:"permission",kind:"message",T:_Le},{no:12,name:"region",kind:"scalar",T:9},{no:13,name:"is_publisher",kind:"scalar",T:8},{no:14,name:"kind",kind:"enum",T:Oe.getEnumType(Y_)},{no:15,name:"attributes",kind:"map",K:9,V:{kind:"scalar",T:9}},{no:16,name:"disconnect_reason",kind:"enum",T:Oe.getEnumType(Vl)},{no:18,name:"kind_details",kind:"enum",T:Oe.getEnumType(CLe),repeated:!0}]),Ty=Oe.makeEnum("livekit.ParticipantInfo.State",[{no:0,name:"JOINING"},{no:1,name:"JOINED"},{no:2,name:"ACTIVE"},{no:3,name:"DISCONNECTED"}]),Y_=Oe.makeEnum("livekit.ParticipantInfo.Kind",[{no:0,name:"STANDARD"},{no:1,name:"INGRESS"},{no:2,name:"EGRESS"},{no:3,name:"SIP"},{no:4,name:"AGENT"}]),CLe=Oe.makeEnum("livekit.ParticipantInfo.KindDetail",[{no:0,name:"CLOUD_AGENT"},{no:1,name:"FORWARDED"}]),Za=Oe.makeEnum("livekit.Encryption.Type",[{no:0,name:"NONE"},{no:1,name:"GCM"},{no:2,name:"CUSTOM"}]),ELe=Oe.makeMessageType("livekit.SimulcastCodecInfo",()=>[{no:1,name:"mime_type",kind:"scalar",T:9},{no:2,name:"mid",kind:"scalar",T:9},{no:3,name:"cid",kind:"scalar",T:9},{no:4,name:"layers",kind:"message",T:Ng,repeated:!0}]),ty=Oe.makeMessageType("livekit.TrackInfo",()=>[{no:1,name:"sid",kind:"scalar",T:9},{no:2,name:"type",kind:"enum",T:Oe.getEnumType(Fl)},{no:3,name:"name",kind:"scalar",T:9},{no:4,name:"muted",kind:"scalar",T:8},{no:5,name:"width",kind:"scalar",T:13},{no:6,name:"height",kind:"scalar",T:13},{no:7,name:"simulcast",kind:"scalar",T:8},{no:8,name:"disable_dtx",kind:"scalar",T:8},{no:9,name:"source",kind:"enum",T:Oe.getEnumType(Zi)},{no:10,name:"layers",kind:"message",T:Ng,repeated:!0},{no:11,name:"mime_type",kind:"scalar",T:9},{no:12,name:"mid",kind:"scalar",T:9},{no:13,name:"codecs",kind:"message",T:ELe,repeated:!0},{no:14,name:"stereo",kind:"scalar",T:8},{no:15,name:"disable_red",kind:"scalar",T:8},{no:16,name:"encryption",kind:"enum",T:Oe.getEnumType(Za)},{no:17,name:"stream",kind:"scalar",T:9},{no:18,name:"version",kind:"message",T:lhe},{no:19,name:"audio_features",kind:"enum",T:Oe.getEnumType(Do),repeated:!0},{no:20,name:"backup_codec_policy",kind:"enum",T:Oe.getEnumType(Qfe)}]),Ng=Oe.makeMessageType("livekit.VideoLayer",()=>[{no:1,name:"quality",kind:"enum",T:Oe.getEnumType(XB)},{no:2,name:"width",kind:"scalar",T:13},{no:3,name:"height",kind:"scalar",T:13},{no:4,name:"bitrate",kind:"scalar",T:13},{no:5,name:"ssrc",kind:"scalar",T:13},{no:6,name:"spatial_layer",kind:"scalar",T:5},{no:7,name:"rid",kind:"scalar",T:9}]),ya=Oe.makeMessageType("livekit.DataPacket",()=>[{no:1,name:"kind",kind:"enum",T:Oe.getEnumType(hn)},{no:4,name:"participant_identity",kind:"scalar",T:9},{no:5,name:"destination_identities",kind:"scalar",T:9,repeated:!0},{no:2,name:"user",kind:"message",T:Jfe,oneof:"value"},{no:3,name:"speaker",kind:"message",T:TLe,oneof:"value"},{no:6,name:"sip_dtmf",kind:"message",T:Zfe,oneof:"value"},{no:7,name:"transcription",kind:"message",T:kLe,oneof:"value"},{no:8,name:"metrics",kind:"message",T:vLe,oneof:"value"},{no:9,name:"chat_message",kind:"message",T:IF,oneof:"value"},{no:10,name:"rpc_request",kind:"message",T:ehe,oneof:"value"},{no:11,name:"rpc_ack",kind:"message",T:the,oneof:"value"},{no:12,name:"rpc_response",kind:"message",T:nhe,oneof:"value"},{no:13,name:"stream_header",kind:"message",T:PF,oneof:"value"},{no:14,name:"stream_chunk",kind:"message",T:OF,oneof:"value"},{no:15,name:"stream_trailer",kind:"message",T:NF,oneof:"value"},{no:16,name:"sequence",kind:"scalar",T:13},{no:17,name:"participant_sid",kind:"scalar",T:9}]),hn=Oe.makeEnum("livekit.DataPacket.Kind",[{no:0,name:"RELIABLE"},{no:1,name:"LOSSY"}]),TLe=Oe.makeMessageType("livekit.ActiveSpeakerUpdate",()=>[{no:1,name:"speakers",kind:"message",T:Xfe,repeated:!0}]),Xfe=Oe.makeMessageType("livekit.SpeakerInfo",()=>[{no:1,name:"sid",kind:"scalar",T:9},{no:2,name:"level",kind:"scalar",T:2},{no:3,name:"active",kind:"scalar",T:8}]),Jfe=Oe.makeMessageType("livekit.UserPacket",()=>[{no:1,name:"participant_sid",kind:"scalar",T:9},{no:5,name:"participant_identity",kind:"scalar",T:9},{no:2,name:"payload",kind:"scalar",T:12},{no:3,name:"destination_sids",kind:"scalar",T:9,repeated:!0},{no:6,name:"destination_identities",kind:"scalar",T:9,repeated:!0},{no:4,name:"topic",kind:"scalar",T:9,opt:!0},{no:8,name:"id",kind:"scalar",T:9,opt:!0},{no:9,name:"start_time",kind:"scalar",T:4,opt:!0},{no:10,name:"end_time",kind:"scalar",T:4,opt:!0},{no:11,name:"nonce",kind:"scalar",T:12}]),Zfe=Oe.makeMessageType("livekit.SipDTMF",()=>[{no:3,name:"code",kind:"scalar",T:13},{no:4,name:"digit",kind:"scalar",T:9}]),kLe=Oe.makeMessageType("livekit.Transcription",()=>[{no:2,name:"transcribed_participant_identity",kind:"scalar",T:9},{no:3,name:"track_id",kind:"scalar",T:9},{no:4,name:"segments",kind:"message",T:xLe,repeated:!0}]),xLe=Oe.makeMessageType("livekit.TranscriptionSegment",()=>[{no:1,name:"id",kind:"scalar",T:9},{no:2,name:"text",kind:"scalar",T:9},{no:3,name:"start_time",kind:"scalar",T:4},{no:4,name:"end_time",kind:"scalar",T:4},{no:5,name:"final",kind:"scalar",T:8},{no:6,name:"language",kind:"scalar",T:9}]),IF=Oe.makeMessageType("livekit.ChatMessage",()=>[{no:1,name:"id",kind:"scalar",T:9},{no:2,name:"timestamp",kind:"scalar",T:3},{no:3,name:"edit_timestamp",kind:"scalar",T:3,opt:!0},{no:4,name:"message",kind:"scalar",T:9},{no:5,name:"deleted",kind:"scalar",T:8},{no:6,name:"generated",kind:"scalar",T:8}]),ehe=Oe.makeMessageType("livekit.RpcRequest",()=>[{no:1,name:"id",kind:"scalar",T:9},{no:2,name:"method",kind:"scalar",T:9},{no:3,name:"payload",kind:"scalar",T:9},{no:4,name:"response_timeout_ms",kind:"scalar",T:13},{no:5,name:"version",kind:"scalar",T:13}]),the=Oe.makeMessageType("livekit.RpcAck",()=>[{no:1,name:"request_id",kind:"scalar",T:9}]),nhe=Oe.makeMessageType("livekit.RpcResponse",()=>[{no:1,name:"request_id",kind:"scalar",T:9},{no:2,name:"payload",kind:"scalar",T:9,oneof:"value"},{no:3,name:"error",kind:"message",T:rhe,oneof:"value"}]),rhe=Oe.makeMessageType("livekit.RpcError",()=>[{no:1,name:"code",kind:"scalar",T:13},{no:2,name:"message",kind:"scalar",T:9},{no:3,name:"data",kind:"scalar",T:9}]),ihe=Oe.makeMessageType("livekit.ParticipantTracks",()=>[{no:1,name:"participant_sid",kind:"scalar",T:9},{no:2,name:"track_sids",kind:"scalar",T:9,repeated:!0}]),ohe=Oe.makeMessageType("livekit.ServerInfo",()=>[{no:1,name:"edition",kind:"enum",T:Oe.getEnumType(she)},{no:2,name:"version",kind:"scalar",T:9},{no:3,name:"protocol",kind:"scalar",T:5},{no:4,name:"region",kind:"scalar",T:9},{no:5,name:"node_id",kind:"scalar",T:9},{no:6,name:"debug_info",kind:"scalar",T:9},{no:7,name:"agent_protocol",kind:"scalar",T:5}]),she=Oe.makeEnum("livekit.ServerInfo.Edition",[{no:0,name:"Standard"},{no:1,name:"Cloud"}]),ALe=Oe.makeMessageType("livekit.ClientInfo",()=>[{no:1,name:"sdk",kind:"enum",T:Oe.getEnumType(ahe)},{no:2,name:"version",kind:"scalar",T:9},{no:3,name:"protocol",kind:"scalar",T:5},{no:4,name:"os",kind:"scalar",T:9},{no:5,name:"os_version",kind:"scalar",T:9},{no:6,name:"device_model",kind:"scalar",T:9},{no:7,name:"browser",kind:"scalar",T:9},{no:8,name:"browser_version",kind:"scalar",T:9},{no:9,name:"address",kind:"scalar",T:9},{no:10,name:"network",kind:"scalar",T:9},{no:11,name:"other_sdks",kind:"scalar",T:9}]),ahe=Oe.makeEnum("livekit.ClientInfo.SDK",[{no:0,name:"UNKNOWN"},{no:1,name:"JS"},{no:2,name:"SWIFT"},{no:3,name:"ANDROID"},{no:4,name:"FLUTTER"},{no:5,name:"GO"},{no:6,name:"UNITY"},{no:7,name:"REACT_NATIVE"},{no:8,name:"RUST"},{no:9,name:"PYTHON"},{no:10,name:"CPP"},{no:11,name:"UNITY_WEB"},{no:12,name:"NODE"},{no:13,name:"UNREAL"},{no:14,name:"ESP32"}]),che=Oe.makeMessageType("livekit.ClientConfiguration",()=>[{no:1,name:"video",kind:"message",T:KQ},{no:2,name:"screen",kind:"message",T:KQ},{no:3,name:"resume_connection",kind:"enum",T:Oe.getEnumType(K_)},{no:4,name:"disabled_codecs",kind:"message",T:ILe},{no:5,name:"force_relay",kind:"enum",T:Oe.getEnumType(K_)}]),KQ=Oe.makeMessageType("livekit.VideoConfiguration",()=>[{no:1,name:"hardware_encoder",kind:"enum",T:Oe.getEnumType(K_)}]),ILe=Oe.makeMessageType("livekit.DisabledCodecs",()=>[{no:1,name:"codecs",kind:"message",T:KA,repeated:!0},{no:2,name:"publish",kind:"message",T:KA,repeated:!0}]),lhe=Oe.makeMessageType("livekit.TimedVersion",()=>[{no:1,name:"unix_micro",kind:"scalar",T:3},{no:2,name:"ticks",kind:"scalar",T:5}]),RF=Oe.makeEnum("livekit.DataStream.OperationType",[{no:0,name:"CREATE"},{no:1,name:"UPDATE"},{no:2,name:"DELETE"},{no:3,name:"REACTION"}]),uhe=Oe.makeMessageType("livekit.DataStream.TextHeader",()=>[{no:1,name:"operation_type",kind:"enum",T:Oe.getEnumType(RF)},{no:2,name:"version",kind:"scalar",T:5},{no:3,name:"reply_to_stream_id",kind:"scalar",T:9},{no:4,name:"attached_stream_ids",kind:"scalar",T:9,repeated:!0},{no:5,name:"generated",kind:"scalar",T:8}],{localName:"DataStream_TextHeader"}),dhe=Oe.makeMessageType("livekit.DataStream.ByteHeader",()=>[{no:1,name:"name",kind:"scalar",T:9}],{localName:"DataStream_ByteHeader"}),PF=Oe.makeMessageType("livekit.DataStream.Header",()=>[{no:1,name:"stream_id",kind:"scalar",T:9},{no:2,name:"timestamp",kind:"scalar",T:3},{no:3,name:"topic",kind:"scalar",T:9},{no:4,name:"mime_type",kind:"scalar",T:9},{no:5,name:"total_length",kind:"scalar",T:4,opt:!0},{no:7,name:"encryption_type",kind:"enum",T:Oe.getEnumType(Za)},{no:8,name:"attributes",kind:"map",K:9,V:{kind:"scalar",T:9}},{no:9,name:"text_header",kind:"message",T:uhe,oneof:"content_header"},{no:10,name:"byte_header",kind:"message",T:dhe,oneof:"content_header"}],{localName:"DataStream_Header"}),OF=Oe.makeMessageType("livekit.DataStream.Chunk",()=>[{no:1,name:"stream_id",kind:"scalar",T:9},{no:2,name:"chunk_index",kind:"sc
386alar",T:4},{no:3,name:"content",kind:"scalar",T:12},{no:4,name:"version",kind:"scalar",T:5},{no:5,name:"iv",kind:"scalar",T:12,opt:!0}],{localName:"DataStream_Chunk"}),NF=Oe.makeMessageType("livekit.DataStream.Trailer",()=>[{no:1,name:"stream_id",kind:"scalar",T:9},{no:2,name:"reason",kind:"scalar",T:9},{no:3,name:"attributes",kind:"map",K:9,V:{kind:"scalar",T:9}}],{localName:"DataStream_Trailer"}),jl=Oe.makeEnum("livekit.SignalTarget",[{no:0,name:"PUBLISHER"},{no:1,name:"SUBSCRIBER"}]),MF=Oe.makeEnum("livekit.StreamState",[{no:0,name:"ACTIVE"},{no:1,name:"PAUSED"}]),RLe=Oe.makeEnum("livekit.CandidateProtocol",[{no:0,name:"UDP"},{no:1,name:"TCP"},{no:2,name:"TLS"}]),PLe=Oe.makeMessageType("livekit.SignalRequest",()=>[{no:1,name:"offer",kind:"message",T:ov,oneof:"message"},{no:2,name:"answer",kind:"message",T:ov,oneof:"message"},{no:3,name:"trickle",kind:"message",T:JB,oneof:"message"},{no:4,name:"add_track",kind:"message",T:LF,oneof:"message"},{no:5,name:"mute",kind:"message",T:ZB,oneof:"message"},{no:6,name:"subscription",kind:"message",T:tP,oneof:"message"},{no:7,name:"track_setting",kind:"message",T:fhe,oneof:"message"},{no:8,name:"leave",kind:"message",T:nP,oneof:"message"},{no:10,name:"update_layers",kind:"message",T:phe,oneof:"message"},{no:11,name:"subscription_permission",kind:"message",T:yhe,oneof:"message"},{no:12,name:"sync_state",kind:"message",T:bhe,oneof:"message"},{no:13,name:"simulate",kind:"message",T:Iu,oneof:"message"},{no:14,name:"ping",kind:"scalar",T:3,oneof:"message"},{no:15,name:"update_metadata",kind:"message",T:mhe,oneof:"message"},{no:16,name:"ping_req",kind:"message",T:_he,oneof:"message"},{no:17,name:"update_audio_track",kind:"message",T:hhe,oneof:"message"},{no:18,name:"update_video_track",kind:"message",T:LLe,oneof:"message"}]),YQ=Oe.makeMessageType("livekit.SignalResponse",()=>[{no:1,name:"join",kind:"message",T:OLe,oneof:"message"},{no:2,name:"answer",kind:"message",T:ov,oneof:"message"},{no:3,name:"offer",kind:"message",T:ov,oneof:"message"},{no:4,name:"trickle",kind:"message",T:JB,oneof:"message"},{no:5,name:"update",kind:"message",T:DLe,oneof:"message"},{no:6,name:"track_published",kind:"message",T:e$,oneof:"message"},{no:8,name:"leave",kind:"message",T:nP,oneof:"message"},{no:9,name:"mute",kind:"message",T:ZB,oneof:"message"},{no:10,name:"speakers_changed",kind:"message",T:FLe,oneof:"message"},{no:11,name:"room_update",kind:"message",T:jLe,oneof:"message"},{no:12,name:"connection_quality",kind:"message",T:BLe,oneof:"message"},{no:13,name:"stream_state_update",kind:"message",T:HLe,oneof:"message"},{no:14,name:"subscribed_quality_update",kind:"message",T:VLe,oneof:"message"},{no:15,name:"subscription_permission_update",kind:"message",T:WLe,oneof:"message"},{no:16,name:"refresh_token",kind:"scalar",T:9,oneof:"message"},{no:17,name:"track_unpublished",kind:"message",T:MLe,oneof:"message"},{no:18,name:"pong",kind:"scalar",T:3,oneof:"message"},{no:19,name:"reconnect",kind:"message",T:NLe,oneof:"message"},{no:20,name:"pong_resp",kind:"message",T:GLe,oneof:"message"},{no:21,name:"subscription_response",kind:"message",T:QLe,oneof:"message"},{no:22,name:"request_response",kind:"message",T:XLe,oneof:"message"},{no:23,name:"track_subscribed",kind:"message",T:JLe,oneof:"message"},{no:24,name:"room_moved",kind:"message",T:qLe,oneof:"message"}]),DF=Oe.makeMessageType("livekit.SimulcastCodec",()=>[{no:1,name:"codec",kind:"scalar",T:9},{no:2,name:"cid",kind:"scalar",T:9}]),LF=Oe.makeMessageType("livekit.AddTrackRequest",()=>[{no:1,name:"cid",kind:"scalar",T:9},{no:2,name:"name",kind:"scalar",T:9},{no:3,name:"type",kind:"enum",T:Oe.getEnumType(Fl)},{no:4,name:"width",kind:"scalar",T:13},{no:5,name:"height",kind:"scalar",T:13},{no:6,name:"muted",kind:"scalar",T:8},{no:7,name:"disable_dtx",kind:"scalar",T:8},{no:8,name:"source",kind:"enum",T:Oe.getEnumType(Zi)},{no:9,name:"layers",kind:"message",T:Ng,repeated:!0},{no:10,name:"simulcast_codecs",kind:"message",T:DF,repeated:!0},{no:11,name:"sid",kind:"scalar",T:9},{no:12,name:"stereo",kind:"scalar",T:8},{no:13,name:"disable_red",kind:"scalar",T:8},{no:14,name:"encryption",kind:"enum",T:Oe.getEnumType(Za)},{no:15,name:"stream",kind:"scalar",T:9},{no:16,name:"backup_codec_policy",kind:"enum",T:Oe.getEnumType(Qfe)},{no:17,name:"audio_features",kind:"enum",T:Oe.getEnumType(Do),repeated:!0}]),JB=Oe.makeMessageType("livekit.TrickleRequest",()=>[{no:1,name:"candidateInit",kind:"scalar",T:9},{no:2,name:"target",kind:"enum",T:Oe.getEnumType(jl)},{no:3,name:"final",kind:"scalar",T:8}]),ZB=Oe.makeMessageType("livekit.MuteTrackRequest",()=>[{no:1,name:"sid",kind:"scalar",T:9},{no:2,name:"muted",kind:"scalar",T:8}]),OLe=Oe.makeMessageType("livekit.JoinResponse",()=>[{no:1,name:"room",kind:"message",T:eP},{no:2,name:"participant",kind:"message",T:iv},{no:3,name:"other_participants",kind:"message",T:iv,repeated:!0},{no:4,name:"server_version",kind:"scalar",T:9},{no:5,name:"ice_servers",kind:"message",T:ghe,repeated:!0},{no:6,name:"subscriber_primary",kind:"scalar",T:8},{no:7,name:"alternative_url",kind:"scalar",T:9},{no:8,name:"client_configuration",kind:"message",T:che},{no:9,name:"server_region",kind:"scalar",T:9},{no:10,name:"ping_timeout",kind:"scalar",T:5},{no:11,name:"ping_interval",kind:"scalar",T:5},{no:12,name:"server_info",kind:"message",T:ohe},{no:13,name:"sif_trailer",kind:"scalar",T:12},{no:14,name:"enabled_publish_codecs",kind:"message",T:KA,repeated:!0},{no:15,name:"fast_publish",kind:"scalar",T:8}]),NLe=Oe.makeMessageType("livekit.ReconnectResponse",()=>[{no:1,name:"ice_servers",kind:"message",T:ghe,repeated:!0},{no:2,name:"client_configuration",kind:"message",T:che},{no:3,name:"server_info",kind:"message",T:ohe},{no:4,name:"last_message_seq",kind:"scalar",T:13}]),e$=Oe.makeMessageType("livekit.TrackPublishedResponse",()=>[{no:1,name:"cid",kind:"scalar",T:9},{no:2,name:"track",kind:"message",T:ty}]),MLe=Oe.makeMessageType("livekit.TrackUnpublishedResponse",()=>[{no:1,name:"track_sid",kind:"scalar",T:9}]),ov=Oe.makeMessageType("livekit.SessionDescription",()=>[{no:1,name:"type",kind:"scalar",T:9},{no:2,name:"sdp",kind:"scalar",T:9},{no:3,name:"id",kind:"scalar",T:13}]),DLe=Oe.makeMessageType("livekit.ParticipantUpdate",()=>[{no:1,name:"participants",kind:"message",T:iv,repeated:!0}]),tP=Oe.makeMessageType("livekit.UpdateSubscription",()=>[{no:1,name:"track_sids",kind:"scalar",T:9,repeated:!0},{no:2,name:"subscribe",kind:"scalar",T:8},{no:3,name:"participant_tracks",kind:"message",T:ihe,repeated:!0}]),fhe=Oe.makeMessageType("livekit.UpdateTrackSettings",()=>[{no:1,name:"track_sids",kind:"scalar",T:9,repeated:!0},{no:3,name:"disabled",kind:"scalar",T:8},{no:4,name:"quality",kind:"enum",T:Oe.getEnumType(XB)},{no:5,name:"width",kind:"scalar",T:13},{no:6,name:"height",kind:"scalar",T:13},{no:7,name:"fps",kind:"scalar",T:13},{no:8,name:"priority",kind:"scalar",T:13}]),hhe=Oe.makeMessageType("livekit.UpdateLocalAudioTrack",()=>[{no:1,name:"track_sid",kind:"scalar",T:9},{no:2,name:"features",kind:"enum",T:Oe.getEnumType(Do),repeated:!0}]),LLe=Oe.makeMessageType("livekit.UpdateLocalVideoTrack",()=>[{no:1,name:"track_sid",kind:"scalar",T:9},{no:2,name:"width",kind:"scalar",T:13},{no:3,name:"height",kind:"scalar",T:13}]),nP=Oe.makeMessageType("livekit.LeaveRequest",()=>[{no:1,name:"can_reconnect",kind:"scalar",T:8},{no:2,name:"reason",kind:"enum",T:Oe.getEnumType(Vl)},{no:3,name:"action",kind:"enum",T:Oe.getEnumType(ky)},{no:4,name:"regions",kind:"message",T:KLe}]),ky=Oe.makeEnum("livekit.LeaveRequest.Action",[{no:0,name:"DISCONNECT"},{no:1,name:"RESUME"},{no:2,name:"RECONNECT"}]),phe=Oe.makeMessageType("livekit.UpdateVideoLayers",()=>[{no:1,name:"track_sid",kind:"scalar",T:9},{no:2,name:"layers",kind:"message",T:Ng,repeated:!0}]),mhe=Oe.makeMessageType("livekit.UpdateParticipantMetadata",()=>[{no:1,name:"metadata",kind:"scalar",T:9},{no:2,name:"name",kind:"scalar",T:9},{no:3,name:"attributes",kind:"map",K:9,V:{kind:"scalar",T:9}},{no:4,name:"request_id",kind:"scalar",T:13}]),ghe=Oe.makeMessageType("livekit.ICEServer",()=>[{no:1,name:"urls",kind:"scalar",T:9,repeated:!0},{no:2,name:"username",kind:"scalar",T:9},{no:3,name:"credential",kind:"scalar",T:9}]),FLe=Oe.makeMessageType("livekit.SpeakersChanged",()=>[{no:1,name:"speakers",kind:"message",T:Xfe,repeated:!0}]),jLe=Oe.makeMessageType("livekit.RoomUpdate",()=>[{no:1,name:"room",kind:"message",T:eP}]),ULe=Oe.makeMessageType("livekit.ConnectionQualityInfo",()=>[{no:1,name:"participant_sid",kind:"scalar",T:9},{no:2,name:"quality",kind:"enum",T:Oe.getEnumType(SS)},{no:3,name:"score",kind:"scalar",T:2}]),BLe=Oe.makeMessageType("livekit.ConnectionQualityUpdate",()=>[{no:1,name:"updates",kind:"message",T:ULe,repeated:!0}]),$Le=Oe.makeMessageType("livekit.StreamStateInfo",()=>[{no:1,name:"participant_sid",kind:"scalar",T:9},{no:2,name:"track_sid",kind:"scalar",T:9},{no:3,name:"state",kind:"enum",T:Oe.getEnumType(MF)}
vendor: 4,154 bytes, line 386
386]),HLe=Oe.makeMessageType("livekit.StreamStateUpdate",()=>[{no:1,name:"stream_states",kind:"message",T:$Le,repeated:!0}]),t$=Oe.makeMessageType("livekit.SubscribedQuality",()=>[{no:1,name:"quality",kind:"enum",T:Oe.getEnumType(XB)},{no:2,name:"enabled",kind:"scalar",T:8}]),zLe=Oe.makeMessageType("livekit.SubscribedCodec",()=>[{no:1,name:"codec",kind:"scalar",T:9},{no:2,name:"qualities",kind:"message",T:t$,repeated:!0}]),VLe=Oe.makeMessageType("livekit.SubscribedQualityUpdate",()=>[{no:1,name:"track_sid",kind:"scalar",T:9},{no:2,name:"subscribed_qualities",kind:"message",T:t$,repeated:!0},{no:3,name:"subscribed_codecs",kind:"message",T:zLe,repeated:!0}]),vhe=Oe.makeMessageType("livekit.TrackPermission",()=>[{no:1,name:"participant_sid",kind:"scalar",T:9},{no:2,name:"all_tracks",kind:"scalar",T:8},{no:3,name:"track_sids",kind:"scalar",T:9,repeated:!0},{no:4,name:"participant_identity",kind:"scalar",T:9}]),yhe=Oe.makeMessageType("livekit.SubscriptionPermission",()=>[{no:1,name:"all_participants",kind:"scalar",T:8},{no:2,name:"track_permissions",kind:"message",T:vhe,repeated:!0}]),WLe=Oe.makeMessageType("livekit.SubscriptionPermissionUpdate",()=>[{no:1,name:"participant_sid",kind:"scalar",T:9},{no:2,name:"track_sid",kind:"scalar",T:9},{no:3,name:"allowed",kind:"scalar",T:8}]),qLe=Oe.makeMessageType("livekit.RoomMovedResponse",()=>[{no:1,name:"room",kind:"message",T:eP},{no:2,name:"token",kind:"scalar",T:9},{no:3,name:"participant",kind:"message",T:iv},{no:4,name:"other_participants",kind:"message",T:iv,repeated:!0}]),bhe=Oe.makeMessageType("livekit.SyncState",()=>[{no:1,name:"answer",kind:"message",T:ov},{no:2,name:"subscription",kind:"message",T:tP},{no:3,name:"publish_tracks",kind:"message",T:e$,repeated:!0},{no:4,name:"data_channels",kind:"message",T:She,repeated:!0},{no:5,name:"offer",kind:"message",T:ov},{no:6,name:"track_sids_disabled",kind:"scalar",T:9,repeated:!0},{no:7,name:"datachannel_receive_states",kind:"message",T:whe,repeated:!0}]),whe=Oe.makeMessageType("livekit.DataChannelReceiveState",()=>[{no:1,name:"publisher_sid",kind:"scalar",T:9},{no:2,name:"last_seq",kind:"scalar",T:13}]),She=Oe.makeMessageType("livekit.DataChannelInfo",()=>[{no:1,name:"label",kind:"scalar",T:9},{no:2,name:"id",kind:"scalar",T:13},{no:3,name:"target",kind:"enum",T:Oe.getEnumType(jl)}]),Iu=Oe.makeMessageType("livekit.SimulateScenario",()=>[{no:1,name:"speaker_update",kind:"scalar",T:5,oneof:"scenario"},{no:2,name:"node_failure",kind:"scalar",T:8,oneof:"scenario"},{no:3,name:"migration",kind:"scalar",T:8,oneof:"scenario"},{no:4,name:"server_leave",kind:"scalar",T:8,oneof:"scenario"},{no:5,name:"switch_candidate_protocol",kind:"enum",T:Oe.getEnumType(RLe),oneof:"scenario"},{no:6,name:"subscriber_bandwidth",kind:"scalar",T:3,oneof:"scenario"},{no:7,name:"disconnect_signal_on_resume",kind:"scalar",T:8,oneof:"scenario"},{no:8,name:"disconnect_signal_on_resume_no_messages",kind:"scalar",T:8,oneof:"scenario"},{no:9,name:"leave_request_full_reconnect",kind:"scalar",T:8,oneof:"scenario"}]),_he=Oe.makeMessageType("livekit.Ping",()=>[{no:1,name:"timestamp",kind:"scalar",T:3},{no:2,name:"rtt",kind:"scalar",T:3}]),GLe=Oe.makeMessageType("livekit.Pong",()=>[{no:1,name:"last_ping_timestamp",kind:"scalar",T:3},{no:2,name:"timestamp",kind:"scalar",T:3}]),KLe=Oe.makeMessageType("livekit.RegionSettings",()=>[{no:1,name:"regions",kind:"message",T:YLe,repeated:!0}]),YLe=Oe.makeMessageType("livekit.RegionInfo",()=>[{no:1,name:"region",kind:"scalar",T:9},{no:2,name:"url",kind:"scalar",T:9},{no:3,name:"distance",kind:"scalar",T:3}]),QLe=Oe.makeMessageType("livekit.SubscriptionResponse",()=>[{no:1,name:"track_sid",kind:"scalar",T:9},{no:2,name:"err",kind:"enum",T:Oe.getEnumType(SLe)}]),XLe=Oe.makeMessageType("livekit.RequestResponse",()=>[{no:1,name:"request_id",kind:"scalar",T:13},{no:2,name:"reason",kind:"enum",T:Oe.getEnumType(n$)},{no:3,name:"message",kind:"scalar",T:9}]),n$=Oe.makeEnum("livekit.RequestResponse.Reason",[{no:0,name:"OK"},{no:1,name:"NOT_FOUND"},{no:2,name:"NOT_ALLOWED"},{no:3,name:"LIMIT_EXCEEDED"}]),JLe=Oe.makeMessageType("livekit.TrackSubscribed",()=>[{no:1,name:"track_sid",kind:"scalar",T:9}]);
vendor: 9,362 bytes, line 386
386function ZLe(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var gx={exports:{}},e8e=gx.exports,QQ;function t8e(){return QQ||(QQ=1,(function(e){(function(t,n){e.exports?e.exports=n():t.log=n()})(e8e,function(){var t=function(){},n="undefined",r=typeof window!==n&&typeof window.navigator!==n&&/Trident\/|MSIE /.test(window.navigator.userAgent),i=["trace","debug","info","warn","error"],o={},s=null;function a(m,y){var v=m[y];if(typeof v.bind=="function")return v.bind(m);try{return Function.prototype.bind.call(v,m)}catch{return function(){return Function.prototype.apply.apply(v,[m,arguments])}}}function c(){console.log&&(console.log.apply?console.log.apply(console,arguments):Function.prototype.apply.apply(console.log,[console,arguments])),console.trace&&console.trace()}function l(m){return m==="debug"&&(m="log"),typeof console===n?!1:m==="trace"&&r?c:console[m]!==void 0?a(console,m):console.log!==void 0?a(console,"log"):t}function u(){for(var m=this.getLevel(),y=0;y<i.length;y++){var v=i[y];this[v]=y<m?t:this.methodFactory(v,m,this.name)}if(this.log=this.debug,typeof console===n&&m<this.levels.SILENT)return"No console available for logging"}function d(m){return function(){typeof console!==n&&(u.call(this),this[m].apply(this,arguments))}}function f(m,y,v){return l(m)||d.apply(this,arguments)}function p(m,y){var v=this,w,S,C,E="loglevel";typeof m=="string"?E+=":"+m:typeof m=="symbol"&&(E=void 0);function T(U){var I=(i[U]||"silent").toUpperCase();if(!(typeof window===n||!E)){try{window.localStorage[E]=I;return}catch{}try{window.document.cookie=encodeURIComponent(E)+"="+I+";"}catch{}}}function x(){var U;if(!(typeof window===n||!E)){try{U=window.localStorage[E]}catch{}if(typeof U===n)try{var I=window.document.cookie,F=encodeURIComponent(E),P=I.indexOf(F+"=");P!==-1&&(U=/^([^;]+)/.exec(I.slice(P+F.length+1))[1])}catch{}return v.levels[U]===void 0&&(U=void 0),U}}function O(){if(!(typeof window===n||!E)){try{window.localStorage.removeItem(E)}catch{}try{window.document.cookie=encodeURIComponent(E)+"=; expires=Thu, 01 Jan 1970 00:00:00 UTC"}catch{}}}function A(U){var I=U;if(typeof I=="string"&&v.levels[I.toUpperCase()]!==void 0&&(I=v.levels[I.toUpperCase()]),typeof I=="number"&&I>=0&&I<=v.levels.SILENT)return I;throw new TypeError("log.setLevel() called with invalid level: "+U)}v.name=m,v.levels={TRACE:0,DEBUG:1,INFO:2,WARN:3,ERROR:4,SILENT:5},v.methodFactory=y||f,v.getLevel=function(){return C??S??w},v.setLevel=function(U,I){return C=A(U),I!==!1&&T(C),u.call(v)},v.setDefaultLevel=function(U){S=A(U),x()||v.setLevel(U,!1)},v.resetLevel=function(){C=null,O(),u.call(v)},v.enableAll=function(U){v.setLevel(v.levels.TRACE,U)},v.disableAll=function(U){v.setLevel(v.levels.SILENT,U)},v.rebuild=function(){if(s!==v&&(w=A(s.getLevel())),u.call(v),s===v)for(var U in o)o[U].rebuild()},w=A(s?s.getLevel():"WARN");var L=x();L!=null&&(C=A(L)),u.call(v)}s=new p,s.getLogger=function(y){if(typeof y!="symbol"&&typeof y!="string"||y==="")throw new TypeError("You must supply a name when creating a logger.");var v=o[y];return v||(v=o[y]=new p(y,s.methodFactory)),v};var g=typeof window!==n?window.log:void 0;return s.noConflict=function(){return typeof window!==n&&window.log===s&&(window.log=g),s},s.getLoggers=function(){return o},s.default=s,s})})(gx)),gx.exports}var rP=t8e(),FF;(function(e){e[e.trace=0]="trace",e[e.debug=1]="debug",e[e.info=2]="info",e[e.warn=3]="warn",e[e.error=4]="error",e[e.silent=5]="silent"})(FF||(FF={}));var tu;(function(e){e.Default="livekit",e.Room="livekit-room",e.Participant="livekit-participant",e.Track="livekit-track",e.Publication="livekit-track-publication",e.Engine="livekit-engine",e.Signal="livekit-signal",e.PCManager="livekit-pc-manager",e.PCTransport="livekit-pc-transport",e.E2EE="lk-e2ee"})(tu||(tu={}));let gn=rP.getLogger("livekit");Object.values(tu).map(e=>rP.getLogger(e));gn.setDefaultLevel(FF.info);function Zf(e){const t=rP.getLogger(e);return t.setDefaultLevel(gn.getLevel()),t}const n8e=rP.getLogger("lk-e2ee"),Nw=7e3,r8e=[0,300,4*300,9*300,16*300,Nw,Nw,Nw,Nw,Nw];class i8e{constructor(t){this._retryDelays=t!==void 0?[...t]:r8e}nextRetryDelayInMs(t){if(t.retryCount>=this._retryDelays.length)return null;const n=this._retryDelays[t.retryCount];return t.retryCount<=1?n:n+Math.random()*1e3}}function o8e(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}function ye(e,t,n,r){function i(o){return o instanceof n?o:new n(function(s){s(o)})}return new(n||(n=Promise))(function(o,s){function a(u){try{l(r.next(u))}catch(d){s(d)}}function c(u){try{l(r.throw(u))}catch(d){s(d)}}function l(u){u.done?o(u.value):i(u.value).then(a,c)}l((r=r.apply(e,t||[])).next())})}function XQ(e){var t=typeof Symbol=="function"&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function wf(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],n;return t?t.call(e):(e=typeof XQ=="function"?XQ(e):e[Symbol.iterator](),n={},r("next"),r("throw"),r("return"),n[Symbol.asyncIterator]=function(){return this},n);function r(o){n[o]=e[o]&&function(s){return new Promise(function(a,c){s=e[o](s),i(a,c,s.done,s.value)})}}function i(o,s,a,c){Promise.resolve(c).then(function(l){o({value:l,done:a})},s)}}var vT={exports:{}},JQ;function s8e(){if(JQ)return vT.exports;JQ=1;var e=typeof Reflect=="object"?Reflect:null,t=e&&typeof e.apply=="function"?e.apply:function(E,T,x){return Function.prototype.apply.call(E,T,x)},n;e&&typeof e.ownKeys=="function"?n=e.ownKeys:Object.getOwnPropertySymbols?n=function(E){return Object.getOwnPropertyNames(E).concat(Object.getOwnPropertySymbols(E))}:n=function(E){return Object.getOwnPropertyNames(E)};function r(C){console&&console.warn&&console.warn(C)}var i=Number.isNaN||function(E){return E!==E};function o(){o.init.call(this)}vT.exports=o,vT.exports.once=v,o.EventEmitter=o,o.prototype._events=void 0,o.prototype._eventsCount=0,o.prototype._maxListeners=void 0;var s=10;function a(C){if(typeof C!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof C)}Object.defineProperty(o,"defaultMaxListeners",{enumerable:!0,get:function(){return s},set:function(C){if(typeof C!="number"||C<0||i(C))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+C+".");s=C}}),o.init=function(){(this._events===void 0||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},o.prototype.setMaxListeners=function(E){if(typeof E!="number"||E<0||i(E))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+E+".");return this._maxListeners=E,this};function c(C){return C._maxListeners===void 0?o.defaultMaxListeners:C._maxListeners}o.prototype.getMaxListeners=function(){return c(this)},o.prototype.emit=function(E){for(var T=[],x=1;x<arguments.length;x++)T.push(arguments[x]);var O=E==="error",A=this._events;if(A!==void 0)O=O&&A.error===void 0;else if(!O)return!1;if(O){var L;if(T.length>0&&(L=T[0]),L instanceof Error)throw L;var U=new Error("Unhandled error."+(L?" ("+L.message+")":""));throw U.context=L,U}var I=A[E];if(I===void 0)return!1;if(typeof I=="function")t(I,this,T);else for(var F=I.length,P=g(I,F),x=0;x<F;++x)t(P[x],this,T);return!0};function l(C,E,T,x){var O,A,L;if(a(T),A=C._events,A===void 0?(A=C._events=Object.create(null),C._eventsCount=0):(A.newListener!==void 0&&(C.emit("newListener",E,T.listener?T.listener:T),A=C._events),L=A[E]),L===void 0)L=A[E]=T,++C._eventsCount;else if(typeof L=="function"?L=A[E]=x?[T,L]:[L,T]:x?L.unshift(T):L.push(T),O=c(C),O>0&&L.length>O&&!L.warned){L.warned=!0;var U=new Error("Possible EventEmitter memory leak detected. "+L.length+" "+String(E)+" listeners added. Use emitter.setMaxListeners() to increase limit");U.name="MaxListenersExceededWarning",U.emitter=C,U.type=E,U.count=L.length,r(U)}return C}o.prototype.addListener=function(E,T){return l(this,E,T,!1)},o.prototype.on=o.prototype.addListener,o.prototype.prependListener=function(E,T){return l(this,E,T,!0)};function u(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function d(C,E,T){var x={fired:!1,wrapFn:void 0,target:C,type:E,listener:T},O=u.bind(x);return O.listener=T,x.wrapFn=O,O}o.prototype.once=function(E,T){return a(T),this.on(E,d(this,E,T)),this},o.prototype.prependOnceListener=function(E,T){return a(T),this.prependListener(E,d(this,E,T)),this},o.prototype.removeListener=function(E,T){var x,O,A,L,U;if(a(T),O=this._events,O===void 0)return this;if(x=O[E],x===void 0)return this;if(x===T||x.listener===T)--this._eventsCount===0?this._events=Object.create(null):(delete O[E],O.removeListener&&this.emit
vendor: 45,129 bytes, lines 386-417
386("removeListener",E,x.listener||T));else if(typeof x!="function"){for(A=-1,L=x.length-1;L>=0;L--)if(x[L]===T||x[L].listener===T){U=x[L].listener,A=L;break}if(A<0)return this;A===0?x.shift():m(x,A),x.length===1&&(O[E]=x[0]),O.removeListener!==void 0&&this.emit("removeListener",E,U||T)}return this},o.prototype.off=o.prototype.removeListener,o.prototype.removeAllListeners=function(E){var T,x,O;if(x=this._events,x===void 0)return this;if(x.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):x[E]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete x[E]),this;if(arguments.length===0){var A=Object.keys(x),L;for(O=0;O<A.length;++O)L=A[O],L!=="removeListener"&&this.removeAllListeners(L);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if(T=x[E],typeof T=="function")this.removeListener(E,T);else if(T!==void 0)for(O=T.length-1;O>=0;O--)this.removeListener(E,T[O]);return this};function f(C,E,T){var x=C._events;if(x===void 0)return[];var O=x[E];return O===void 0?[]:typeof O=="function"?T?[O.listener||O]:[O]:T?y(O):g(O,O.length)}o.prototype.listeners=function(E){return f(this,E,!0)},o.prototype.rawListeners=function(E){return f(this,E,!1)},o.listenerCount=function(C,E){return typeof C.listenerCount=="function"?C.listenerCount(E):p.call(C,E)},o.prototype.listenerCount=p;function p(C){var E=this._events;if(E!==void 0){var T=E[C];if(typeof T=="function")return 1;if(T!==void 0)return T.length}return 0}o.prototype.eventNames=function(){return this._eventsCount>0?n(this._events):[]};function g(C,E){for(var T=new Array(E),x=0;x<E;++x)T[x]=C[x];return T}function m(C,E){for(;E+1<C.length;E++)C[E]=C[E+1];C.pop()}function y(C){for(var E=new Array(C.length),T=0;T<E.length;++T)E[T]=C[T].listener||C[T];return E}function v(C,E){return new Promise(function(T,x){function O(L){C.removeListener(E,A),x(L)}function A(){typeof C.removeListener=="function"&&C.removeListener("error",O),T([].slice.call(arguments))}S(C,E,A,{once:!0}),E!=="error"&&w(C,O,{once:!0})})}function w(C,E,T){typeof C.on=="function"&&S(C,"error",E,T)}function S(C,E,T,x){if(typeof C.on=="function")x.once?C.once(E,T):C.on(E,T);else if(typeof C.addEventListener=="function")C.addEventListener(E,function O(A){x.once&&C.removeEventListener(E,O),T(A)});else throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof C)}return vT.exports}var Pd=s8e();let Che=!0,Ehe=!0;function _S(e,t,n){const r=e.match(t);return r&&r.length>=n&&parseFloat(r[n],10)}function Lv(e,t,n){if(!e.RTCPeerConnection)return;const r=e.RTCPeerConnection.prototype,i=r.addEventListener;r.addEventListener=function(s,a){if(s!==t)return i.apply(this,arguments);const c=l=>{const u=n(l);u&&(a.handleEvent?a.handleEvent(u):a(u))};return this._eventMap=this._eventMap||{},this._eventMap[t]||(this._eventMap[t]=new Map),this._eventMap[t].set(a,c),i.apply(this,[s,c])};const o=r.removeEventListener;r.removeEventListener=function(s,a){if(s!==t||!this._eventMap||!this._eventMap[t])return o.apply(this,arguments);if(!this._eventMap[t].has(a))return o.apply(this,arguments);const c=this._eventMap[t].get(a);return this._eventMap[t].delete(a),this._eventMap[t].size===0&&delete this._eventMap[t],Object.keys(this._eventMap).length===0&&delete this._eventMap,o.apply(this,[s,c])},Object.defineProperty(r,"on"+t,{get(){return this["_on"+t]},set(s){this["_on"+t]&&(this.removeEventListener(t,this["_on"+t]),delete this["_on"+t]),s&&this.addEventListener(t,this["_on"+t]=s)},enumerable:!0,configurable:!0})}function a8e(e){return typeof e!="boolean"?new Error("Argument type: "+typeof e+". Please use a boolean."):(Che=e,e?"adapter.js logging disabled":"adapter.js logging enabled")}function c8e(e){return typeof e!="boolean"?new Error("Argument type: "+typeof e+". Please use a boolean."):(Ehe=!e,"adapter.js deprecation warnings "+(e?"disabled":"enabled"))}function The(){if(typeof window=="object"){if(Che)return;typeof console<"u"&&typeof console.log=="function"&&console.log.apply(console,arguments)}}function r$(e,t){Ehe&&console.warn(e+" is deprecated, please use "+t+" instead.")}function l8e(e){const t={browser:null,version:null};if(typeof e>"u"||!e.navigator||!e.navigator.userAgent)return t.browser="Not a browser.",t;const{navigator:n}=e;if(n.userAgentData&&n.userAgentData.brands){const r=n.userAgentData.brands.find(i=>i.brand==="Chromium");if(r)return{browser:"chrome",version:parseInt(r.version,10)}}if(n.mozGetUserMedia)t.browser="firefox",t.version=parseInt(_S(n.userAgent,/Firefox\/(\d+)\./,1));else if(n.webkitGetUserMedia||e.isSecureContext===!1&&e.webkitRTCPeerConnection)t.browser="chrome",t.version=parseInt(_S(n.userAgent,/Chrom(e|ium)\/(\d+)\./,2));else if(e.RTCPeerConnection&&n.userAgent.match(/AppleWebKit\/(\d+)\./))t.browser="safari",t.version=parseInt(_S(n.userAgent,/AppleWebKit\/(\d+)\./,1)),t.supportsUnifiedPlan=e.RTCRtpTransceiver&&"currentDirection"in e.RTCRtpTransceiver.prototype,t._safariVersion=_S(n.userAgent,/Version\/(\d+(\.?\d+))/,1);else return t.browser="Not a supported browser.",t;return t}function ZQ(e){return Object.prototype.toString.call(e)==="[object Object]"}function khe(e){return ZQ(e)?Object.keys(e).reduce(function(t,n){const r=ZQ(e[n]),i=r?khe(e[n]):e[n],o=r&&!Object.keys(i).length;return i===void 0||o?t:Object.assign(t,{[n]:i})},{}):e}function jF(e,t,n){!t||n.has(t.id)||(n.set(t.id,t),Object.keys(t).forEach(r=>{r.endsWith("Id")?jF(e,e.get(t[r]),n):r.endsWith("Ids")&&t[r].forEach(i=>{jF(e,e.get(i),n)})}))}function eX(e,t,n){const r=n?"outbound-rtp":"inbound-rtp",i=new Map;if(t===null)return i;const o=[];return e.forEach(s=>{s.type==="track"&&s.trackIdentifier===t.id&&o.push(s)}),o.forEach(s=>{e.forEach(a=>{a.type===r&&a.trackId===s.id&&jF(e,a,i)})}),i}const tX=The;function xhe(e,t){const n=e&&e.navigator;if(!n.mediaDevices)return;const r=function(a){if(typeof a!="object"||a.mandatory||a.optional)return a;const c={};return Object.keys(a).forEach(l=>{if(l==="require"||l==="advanced"||l==="mediaSource")return;const u=typeof a[l]=="object"?a[l]:{ideal:a[l]};u.exact!==void 0&&typeof u.exact=="number"&&(u.min=u.max=u.exact);const d=function(f,p){return f?f+p.charAt(0).toUpperCase()+p.slice(1):p==="deviceId"?"sourceId":p};if(u.ideal!==void 0){c.optional=c.optional||[];let f={};typeof u.ideal=="number"?(f[d("min",l)]=u.ideal,c.optional.push(f),f={},f[d("max",l)]=u.ideal,c.optional.push(f)):(f[d("",l)]=u.ideal,c.optional.push(f))}u.exact!==void 0&&typeof u.exact!="number"?(c.mandatory=c.mandatory||{},c.mandatory[d("",l)]=u.exact):["min","max"].forEach(f=>{u[f]!==void 0&&(c.mandatory=c.mandatory||{},c.mandatory[d(f,l)]=u[f])})}),a.advanced&&(c.optional=(c.optional||[]).concat(a.advanced)),c},i=function(a,c){if(t.version>=61)return c(a);if(a=JSON.parse(JSON.stringify(a)),a&&typeof a.audio=="object"){const l=function(u,d,f){d in u&&!(f in u)&&(u[f]=u[d],delete u[d])};a=JSON.parse(JSON.stringify(a)),l(a.audio,"autoGainControl","googAutoGainControl"),l(a.audio,"noiseSuppression","googNoiseSuppression"),a.audio=r(a.audio)}if(a&&typeof a.video=="object"){let l=a.video.facingMode;l=l&&(typeof l=="object"?l:{ideal:l});const u=t.version<66;if(l&&(l.exact==="user"||l.exact==="environment"||l.ideal==="user"||l.ideal==="environment")&&!(n.mediaDevices.getSupportedConstraints&&n.mediaDevices.getSupportedConstraints().facingMode&&!u)){delete a.video.facingMode;let d;if(l.exact==="environment"||l.ideal==="environment"?d=["back","rear"]:(l.exact==="user"||l.ideal==="user")&&(d=["front"]),d)return n.mediaDevices.enumerateDevices().then(f=>{f=f.filter(g=>g.kind==="videoinput");let p=f.find(g=>d.some(m=>g.label.toLowerCase().includes(m)));return!p&&f.length&&d.includes("back")&&(p=f[f.length-1]),p&&(a.video.deviceId=l.exact?{exact:p.deviceId}:{ideal:p.deviceId}),a.video=r(a.video),tX("chrome: "+JSON.stringify(a)),c(a)})}a.video=r(a.video)}return tX("chrome: "+JSON.stringify(a)),c(a)},o=function(a){return t.version>=64?a:{name:{PermissionDeniedError:"NotAllowedError",PermissionDismissedError:"NotAllowedError",InvalidStateError:"NotAllowedError",DevicesNotFoundError:"NotFoundError",ConstraintNotSatisfiedError:"OverconstrainedError",TrackStartError:"NotReadableError",MediaDeviceFailedDueToShutdown:"NotAllowedError",MediaDeviceKillSwitchOn:"NotAllowedError",TabCaptureError:"AbortError",ScreenCaptureError:"AbortError",DeviceCaptureError:"AbortError"}[a.name]||a.name,message:a.message,constraint:a.constraint||a.constraintName,toString(){return this.name+(this.message&&": ")+this.message}}},s=function(a,c,l){i(a,u=>{n.webkitGetUserMedia(u,c,d=>{l&&l(o(d))})})};if(n.getUserMedia=s.bind(n),n.mediaDevices.getUserMedia){const a=n.mediaDevices.getUserMedia.bind(n.mediaDevices);n.mediaDevices.getUserMedia=function(c){return i(c,l=>a(l).then(u=>{if(l.audio&&!u.getAudioTracks().length||l.video&&!u.getVideoTracks().length)throw u.getTracks().forEach(d=>{d.stop()}),new DOMException("","NotFoundError");return u},u=>Promise.reject(o(u))))}}}function Ahe(e){e.MediaStream=e.MediaStream||e.webkitMediaStream}function Ihe(e){if(typeof e=="object"&&e.RTCPeerConnection&&!("ontrack"in e.RTCPeerConnection.prototype)){Object.defineProperty(e.RTCPeerConnection.prototype,"ontrack",{get(){return this._ontrack},set(n){this._ontrack&&this.removeEventListener("track",this._ontrack),this.addEventListener("track",this._ontrack=n)},enumerable:!0,configurable:!0});const t=e.RTCPeerConnection.prototype.setRemoteDescription;e.RTCPeerConnection.prototype.setRemoteDescription=function(){return this._ontrackpoly||(this._ontrackpoly=r=>{r.stream.addEventListener("addtrack",i=>{let o;e.RTCPeerConnection.prototype.getReceivers?o=this.getReceivers().find(a=>a.track&&a.track.id===i.track.id):o={track:i.track};const s=new Event("track");s.track=i.track,s.receiver=o,s.transceiver={receiver:o},s.streams=[r.stream],this.dispatchEvent(s)}),r.stream.getTracks().forEach(i=>{let o;e.RTCPeerConnection.prototype.getReceivers?o=this.getReceivers().find(a=>a.track&&a.track.id===i.id):o={track:i};const s=new Event("track");s.track=i,s.receiver=o,s.transceiver={receiver:o},s.streams=[r.stream],this.dispatchEvent(s)})},this.addEventListener("addstream",this._ontrackpoly)),t.apply(this,arguments)}}else Lv(e,"track",t=>(t.transceiver||Object.defineProperty(t,"transceiver",{value:{receiver:t.receiver}}),t))}function Rhe(e){if(typeof e=="object"&&e.RTCPeerConnection&&!("getSenders"in e.RTCPeerConnection.prototype)&&"createDTMFSender"in e.RTCPeerConnection.prototype){const t=function(i,o){return{track:o,get dtmf(){return this._dtmf===void 0&&(o.kind==="audio"?this._dtmf=i.createDTMFSender(o):this._dtmf=null),this._dtmf},_pc:i}};if(!e.RTCPeerConnection.prototype.getSenders){e.RTCPeerConnection.prototype.getSenders=function(){return this._senders=this._senders||[],this._senders.slice()};const i=e.RTCPeerConnection.prototype.addTrack;e.RTCPeerConnection.prototype.addTrack=function(a,c){let l=i.apply(this,arguments);return l||(l=t(this,a),this._senders.push(l)),l};const o=e.RTCPeerConnection.prototype.removeTrack;e.RTCPeerConnection.prototype.removeTrack=function(a){o.apply(this,arguments);const c=this._senders.indexOf(a);c!==-1&&this._senders.splice(c,1)}}const n=e.RTCPeerConnection.prototype.addStream;e.RTCPeerConnection.prototype.addStream=function(o){this._senders=this._senders||[],n.apply(this,[o]),o.getTracks().forEach(s=>{this._senders.push(t(this,s))})};const r=e.RTCPeerConnection.prototype.removeStream;e.RTCPeerConnection.prototype.removeStream=function(o){this._senders=this._senders||[],r.apply(this,[o]),o.getTracks().forEach(s=>{const a=this._senders.find(c=>c.track===s);a&&this._senders.splice(this._senders.indexOf(a),1)})}}else if(typeof e=="object"&&e.RTCPeerConnection&&"getSenders"in e.RTCPeerConnection.prototype&&"createDTMFSender"in e.RTCPeerConnection.prototype&&e.RTCRtpSender&&!("dtmf"in e.RTCRtpSender.prototype)){const t=e.RTCPeerConnection.prototype.getSenders;e.RTCPeerConnection.prototype.getSenders=function(){const r=t.apply(this,[]);return r.forEach(i=>i._pc=this),r},Object.defineProperty(e.RTCRtpSender.prototype,"dtmf",{get(){return this._dtmf===void 0&&(this.track.kind==="audio"?this._dtmf=this._pc.createDTMFSender(this.track):this._dtmf=null),this._dtmf}})}}function Phe(e){if(!(typeof e=="object"&&e.RTCPeerConnection&&e.RTCRtpSender&&e.RTCRtpReceiver))return;if(!("getStats"in e.RTCRtpSender.prototype)){const n=e.RTCPeerConnection.prototype.getSenders;n&&(e.RTCPeerConnection.prototype.getSenders=function(){const o=n.apply(this,[]);return o.forEach(s=>s._pc=this),o});const r=e.RTCPeerConnection.prototype.addTrack;r&&(e.RTCPeerConnection.prototype.addTrack=function(){const o=r.apply(this,arguments);return o._pc=this,o}),e.RTCRtpSender.prototype.getStats=function(){const o=this;return this._pc.getStats().then(s=>eX(s,o.track,!0))}}if(!("getStats"in e.RTCRtpReceiver.prototype)){const n=e.RTCPeerConnection.prototype.getReceivers;n&&(e.RTCPeerConnection.prototype.getReceivers=function(){const i=n.apply(this,[]);return i.forEach(o=>o._pc=this),i}),Lv(e,"track",r=>(r.receiver._pc=r.srcElement,r)),e.RTCRtpReceiver.prototype.getStats=function(){const i=this;return this._pc.getStats().then(o=>eX(o,i.track,!1))}}if(!("getStats"in e.RTCRtpSender.prototype&&"getStats"in e.RTCRtpReceiver.prototype))return;const t=e.RTCPeerConnection.prototype.getStats;e.RTCPeerConnection.prototype.getStats=function(){if(arguments.length>0&&arguments[0]instanceof e.MediaStreamTrack){const r=arguments[0];let i,o,s;return this.getSenders().forEach(a=>{a.track===r&&(i?s=!0:i=a)}),this.getReceivers().forEach(a=>(a.track===r&&(o?s=!0:o=a),a.track===r)),s||i&&o?Promise.reject(new DOMException("There are more than one sender or receiver for the track.","InvalidAccessError")):i?i.getStats():o?o.getStats():Promise.reject(new DOMException("There is no sender or receiver for the track.","InvalidAccessError"))}return t.apply(this,arguments)}}function Ohe(e){e.RTCPeerConnection.prototype.getLocalStreams=function(){return this._shimmedLocalStreams=this._shimmedLocalStreams||{},Object.keys(this._shimmedLocalStreams).map(s=>this._shimmedLocalStreams[s][0])};const t=e.RTCPeerConnection.prototype.addTrack;e.RTCPeerConnection.prototype.addTrack=function(s,a){if(!a)return t.apply(this,arguments);this._shimmedLocalStreams=this._shimmedLocalStreams||{};const c=t.apply(this,arguments);return this._shimmedLocalStreams[a.id]?this._shimmedLocalStreams[a.id].indexOf(c)===-1&&this._shimmedLocalStreams[a.id].push(c):this._shimmedLocalStreams[a.id]=[a,c],c};const n=e.RTCPeerConnection.prototype.addStream;e.RTCPeerConnection.prototype.addStream=function(s){this._shimmedLocalStreams=this._shimmedLocalStreams||{},s.getTracks().forEach(l=>{if(this.getSenders().find(d=>d.track===l))throw new DOMException("Track already exists.","InvalidAccessError")});const a=this.getSenders();n.apply(this,arguments);const c=this.getSenders().filter(l=>a.indexOf(l)===-1);this._shimmedLocalStreams[s.id]=[s].concat(c)};const r=e.RTCPeerConnection.prototype.removeStream;e.RTCPeerConnection.prototype.removeStream=function(s){return this._shimmedLocalStreams=this._shimmedLocalStreams||{},delete this._shimmedLocalStreams[s.id],r.apply(this,arguments)};const i=e.RTCPeerConnection.prototype.removeTrack;e.RTCPeerConnection.prototype.removeTrack=function(s){return this._shimmedLocalStreams=this._shimmedLocalStreams||{},s&&Object.keys(this._shimmedLocalStreams).forEach(a=>{const c=this._shimmedLocalStreams[a].indexOf(s);c!==-1&&this._shimmedLocalStreams[a].splice(c,1),this._shimmedLocalStreams[a].length===1&&delete this._shimmedLocalStreams[a]}),i.apply(this,arguments)}}function Nhe(e,t){if(!e.RTCPeerConnection)return;if(e.RTCPeerConnection.prototype.addTrack&&t.version>=65)return Ohe(e);const n=e.RTCPeerConnection.prototype.getLocalStreams;e.RTCPeerConnection.prototype.getLocalStreams=function(){const u=n.apply(this);return this._reverseStreams=this._reverseStreams||{},u.map(d=>this._reverseStreams[d.id])};const r=e.RTCPeerConnection.prototype.addStream;e.RTCPeerConnection.prototype.addStream=function(u){if(this._streams=this._streams||{},this._reverseStreams=this._reverseStreams||{},u.getTracks().forEach(d=>{if(this.getSenders().find(p=>p.track===d))throw new DOMException("Track already exists.","InvalidAccessError")}),!this._reverseStreams[u.id]){const d=new e.MediaStream(u.getTracks());this._streams[u.id]=d,this._reverseStreams[d.id]=u,u=d}r.apply(this,[u])};const i=e.RTCPeerConnection.prototype.removeStream;e.RTCPeerConnection.prototype.removeStream=function(u){this._streams=this._streams||{},this._reverseStreams=this._reverseStreams||{},i.apply(this,[this._streams[u.id]||u]),delete this._reverseStreams[this._streams[u.id]?this._streams[u.id].id:u.id],delete this._streams[u.id]},e.RTCPeerConnection.prototype.addTrack=function(u,d){if(this.signalingState==="closed")throw new DOMException("The RTCPeerConnection's signalingState is 'closed'.","InvalidStateError");const f=[].slice.call(arguments,1);if(f.length!==1||!f[0].getTracks().find(m=>m===u))throw new DOMException("The adapter.js addTrack polyfill only supports a single  stream which is associated with the specified track.","NotSupportedError");if(this.getSenders().find(m=>m.track===u))throw new DOMException("Track already exists.","InvalidAccessError");this._streams=this._streams||{},this._reverseStreams=this._reverseStreams||{};const g=this._streams[d.id];if(g)g.addTrack(u),Promise.resolve().then(()=>{this.dispatchEvent(new Event("negotiationneeded"))});else{const m=new e.MediaStream([u]);this._streams[d.id]=m,this._reverseStreams[m.id]=d,this.addStream(m)}return this.getSenders().find(m=>m.track===u)};function o(l,u){let d=u.sdp;return Object.keys(l._reverseStreams||[]).forEach(f=>{const p=l._reverseStreams[f],g=l._streams[p.id];d=d.replace(new RegExp(g.id,"g"),p.id)}),new RTCSessionDescription({type:u.type,sdp:d})}function s(l,u){let d=u.sdp;return Object.keys(l._reverseStreams||[]).forEach(f=>{const p=l._reverseStreams[f],g=l._streams[p.id];d=d.replace(new RegExp(p.id,"g"),g.id)}),new RTCSessionDescription({type:u.type,sdp:d})}["createOffer","createAnswer"].forEach(function(l){const u=e.RTCPeerConnection.prototype[l],d={[l](){const f=arguments;return arguments.length&&typeof arguments[0]=="function"?u.apply(this,[g=>{const m=o(this,g);f[0].apply(null,[m])},g=>{f[1]&&f[1].apply(null,g)},arguments[2]]):u.apply(this,arguments).then(g=>o(this,g))}};e.RTCPeerConnection.prototype[l]=d[l]});const a=e.RTCPeerConnection.prototype.setLocalDescription;e.RTCPeerConnection.prototype.setLocalDescription=function(){return!arguments.length||!arguments[0].type?a.apply(this,arguments):(arguments[0]=s(this,arguments[0]),a.apply(this,arguments))};const c=Object.getOwnPropertyDescriptor(e.RTCPeerConnection.prototype,"localDescription");Object.defineProperty(e.RTCPeerConnection.prototype,"localDescription",{get(){const l=c.get.apply(this);return l.type===""?l:o(this,l)}}),e.RTCPeerConnection.prototype.removeTrack=function(u){if(this.signalingState==="closed")throw new DOMException("The RTCPeerConnection's signalingState is 'closed'.","InvalidStateError");if(!u._pc)throw new DOMException("Argument 1 of RTCPeerConnection.removeTrack does not implement interface RTCRtpSender.","TypeError");if(!(u._pc===this))throw new DOMException("Sender was not created by this connection.","InvalidAccessError");this._streams=this._streams||{};let f;Object.keys(this._streams).forEach(p=>{this._streams[p].getTracks().find(m=>u.track===m)&&(f=this._streams[p])}),f&&(f.getTracks().length===1?this.removeStream(this._reverseStreams[f.id]):f.removeTrack(u.track),this.dispatchEvent(new Event("negotiationneeded")))}}function UF(e,t){!e.RTCPeerConnection&&e.webkitRTCPeerConnection&&(e.RTCPeerConnection=e.webkitRTCPeerConnection),e.RTCPeerConnection&&t.version<53&&["setLocalDescription","setRemoteDescription","addIceCandidate"].forEach(function(n){const r=e.RTCPeerConnection.prototype[n],i={[n](){return arguments[0]=new(n==="addIceCandidate"?e.RTCIceCandidate:e.RTCSessionDescription)(arguments[0]),r.apply(this,arguments)}};e.RTCPeerConnection.prototype[n]=i[n]})}function Mhe(e,t){Lv(e,"negotiationneeded",n=>{const r=n.target;if(!((t.version<72||r.getConfiguration&&r.getConfiguration().sdpSemantics==="plan-b")&&r.signalingState!=="stable"))return n})}var nX=Object.freeze({__proto__:null,fixNegotiationNeeded:Mhe,shimAddTrackRemoveTrack:Nhe,shimAddTrackRemoveTrackWithNative:Ohe,shimGetSendersWithDtmf:Rhe,shimGetUserMedia:xhe,shimMediaStream:Ahe,shimOnTrack:Ihe,shimPeerConnection:UF,shimSenderReceiverGetStats:Phe});function Dhe(e,t){const n=e&&e.navigator,r=e&&e.MediaStreamTrack;if(n.getUserMedia=function(i,o,s){r$("navigator.getUserMedia","navigator.mediaDevices.getUserMedia"),n.mediaDevices.getUserMedia(i).then(o,s)},!(t.version>55&&"autoGainControl"in n.mediaDevices.getSupportedConstraints())){const i=function(s,a,c){a in s&&!(c in s)&&(s[c]=s[a],delete s[a])},o=n.mediaDevices.getUserMedia.bind(n.mediaDevices);if(n.mediaDevices.getUserMedia=function(s){return typeof s=="object"&&typeof s.audio=="object"&&(s=JSON.parse(JSON.stringify(s)),i(s.audio,"autoGainControl","mozAutoGainControl"),i(s.audio,"noiseSuppression","mozNoiseSuppression")),o(s)},r&&r.prototype.getSettings){const s=r.prototype.getSettings;r.prototype.getSettings=function(){const a=s.apply(this,arguments);return i(a,"mozAutoGainControl","autoGainControl"),i(a,"mozNoiseSuppression","noiseSuppression"),a}}if(r&&r.prototype.applyConstraints){const s=r.prototype.applyConstraints;r.prototype.applyConstraints=function(a){return this.kind==="audio"&&typeof a=="object"&&(a=JSON.parse(JSON.stringify(a)),i(a,"autoGainControl","mozAutoGainControl"),i(a,"noiseSuppression","mozNoiseSuppression")),s.apply(this,[a])}}}}function u8e(e,t){e.navigator.mediaDevices&&"getDisplayMedia"in e.navigator.mediaDevices||e.navigator.mediaDevices&&(e.navigator.mediaDevices.getDisplayMedia=function(r){if(!(r&&r.video)){const i=new DOMException("getDisplayMedia without video constraints is undefined");return i.name="NotFoundError",i.code=8,Promise.reject(i)}return r.video===!0?r.video={mediaSource:t}:r.video.mediaSource=t,e.navigator.mediaDevices.getUserMedia(r)})}function Lhe(e){typeof e=="object"&&e.RTCTrackEvent&&"receiver"in e.RTCTrackEvent.prototype&&!("transceiver"in e.RTCTrackEvent.prototype)&&Object.defineProperty(e.RTCTrackEvent.prototype,"transceiver",{get(){return{receiver:this.receiver}}})}function BF(e,t){if(typeof e!="object"||!(e.RTCPeerConnection||e.mozRTCPeerConnection))return;!e.RTCPeerConnection&&e.mozRTCPeerConnection&&(e.RTCPeerConnection=e.mozRTCPeerConnection),t.version<53&&["setLocalDescription","setRemoteDescription","addIceCandidate"].forEach(function(i){const o=e.RTCPeerConnection.prototype[i],s={[i](){return arguments[0]=new(i==="addIceCandidate"?e.RTCIceCandidate:e.RTCSessionDescription)(arguments[0]),o.apply(this,arguments)}};e.RTCPeerConnection.prototype[i]=s[i]});const n={inboundrtp:"inbound-rtp",outboundrtp:"outbound-rtp",candidatepair:"candidate-pair",localcandidate:"local-candidate",remotecandidate:"remote-candidate"},r=e.RTCPeerConnection.prototype.getStats;e.RTCPeerConnection.prototype.getStats=function(){const[o,s,a]=arguments;return r.apply(this,[o||null]).then(c=>{if(t.version<53&&!s)try{c.forEach(l=>{l.type=n[l.type]||l.type})}catch(l){if(l.name!=="TypeError")throw l;c.forEach((u,d)=>{c.set(d,Object.assign({},u,{type:n[u.type]||u.type}))})}return c}).then(s,a)}}function Fhe(e){if(!(typeof e=="object"&&e.RTCPeerConnection&&e.RTCRtpSender)||e.RTCRtpSender&&"getStats"in e.RTCRtpSender.prototype)return;const t=e.RTCPeerConnection.prototype.getSenders;t&&(e.RTCPeerConnection.prototype.getSenders=function(){const i=t.apply(this,[]);return i.forEach(o=>o._pc=this),i});const n=e.RTCPeerConnection.prototype.addTrack;n&&(e.RTCPeerConnection.prototype.addTrack=function(){const i=n.apply(this,arguments);return i._pc=this,i}),e.RTCRtpSender.prototype.getStats=function(){return this.track?this._pc.getStats(this.track):Promise.resolve(new Map)}}function jhe(e){if(!(typeof e=="object"&&e.RTCPeerConnection&&e.RTCRtpSender)||e.RTCRtpSender&&"getStats"in e.RTCRtpReceiver.prototype)return;const t=e.RTCPeerConnection.prototype.getReceivers;t&&(e.RTCPeerConnection.prototype.getReceivers=function(){const r=t.apply(this,[]);return r.forEach(i=>i._pc=this),r}),Lv(e,"track",n=>(n.receiver._pc=n.srcElement,n)),e.RTCRtpReceiver.prototype.getStats=function(){return this._pc.getStats(this.track)}}function Uhe(e){!e.RTCPeerConnection||"removeStream"in e.RTCPeerConnection.prototype||(e.RTCPeerConnection.prototype.removeStream=function(n){r$("removeStream","removeTrack"),this.getSenders().forEach(r=>{r.track&&n.getTracks().includes(r.track)&&this.removeTrack(r)})})}function Bhe(e){e.DataChannel&&!e.RTCDataChannel&&(e.RTCDataChannel=e.DataChannel)}function $he(e){if(!(typeof e=="object"&&e.RTCPeerConnection))return;const t=e.RTCPeerConnection.prototype.addTransceiver;t&&(e.RTCPeerConnection.prototype.addTransceiver=function(){this.setParametersPromises=[];let r=arguments[1]&&arguments[1].sendEncodings;r===void 0&&(r=[]),r=[...r];const i=r.length>0;i&&r.forEach(s=>{if("rid"in s&&!/^[a-z0-9]{0,16}$/i.test(s.rid))throw new TypeError("Invalid RID value provided.");if("scaleResolutionDownBy"in s&&!(parseFloat(s.scaleResolutionDownBy)>=1))throw new RangeError("scale_resolution_down_by must be >= 1.0");if("maxFramerate"in s&&!(parseFloat(s.maxFramerate)>=0))throw new RangeError("max_framerate must be >= 0.0")});const o=t.apply(this,arguments);if(i){const{sender:s}=o,a=s.getParameters();(!("encodings"in a)||a.encodings.length===1&&Object.keys(a.encodings[0]).length===0)&&(a.encodings=r,s.sendEncodings=r,this.setParametersPromises.push(s.setParameters(a).then(()=>{delete s.sendEncodings}).catch(()=>{delete s.sendEncodings})))}return o})}function Hhe(e){if(!(typeof e=="object"&&e.RTCRtpSender))return;const t=e.RTCRtpSender.prototype.getParameters;t&&(e.RTCRtpSender.prototype.getParameters=function(){const r=t.apply(this,arguments);return"encodings"in r||(r.encodings=[].concat(this.sendEncodings||[{}])),r})}function zhe(e){if(!(typeof e=="object"&&e.RTCPeerConnection))return;const t=e.RTCPeerConnection.prototype.createOffer;e.RTCPeerConnection.prototype.createOffer=function(){return this.setParametersPromises&&this.setParametersPromises.length?Promise.all(this.setParametersPromises).then(()=>t.apply(this,arguments)).finally(()=>{this.setParametersPromises=[]}):t.apply(this,arguments)}}function Vhe(e){if(!(typeof e=="object"&&e.RTCPeerConnection))return;const t=e.RTCPeerConnection.prototype.createAnswer;e.RTCPeerConnection.prototype.createAnswer=function(){return this.setParametersPromises&&this.setParametersPromises.length?Promise.all(this.setParametersPromises).then(()=>t.apply(this,arguments)).finally(()=>{this.setParametersPromises=[]}):t.apply(this,arguments)}}var rX=Object.freeze({__proto__:null,shimAddTransceiver:$he,shimCreateAnswer:Vhe,shimCreateOffer:zhe,shimGetDisplayMedia:u8e,shimGetParameters:Hhe,shimGetUserMedia:Dhe,shimOnTrack:Lhe,shimPeerConnection:BF,shimRTCDataChannel:Bhe,shimReceiverGetStats:jhe,shimRemoveStream:Uhe,shimSenderGetStats:Fhe});function Whe(e){if(!(typeof e!="object"||!e.RTCPeerConnection)){if("getLocalStreams"in e.RTCPeerConnection.prototype||(e.RTCPeerConnection.prototype.getLocalStreams=function(){return this._localStreams||(this._localStreams=[]),this._localStreams}),!("addStream"in e.RTCPeerConnection.prototype)){const t=e.RTCPeerConnection.prototype.addTrack;e.RTCPeerConnection.prototype.addStream=function(r){this._localStreams||(this._localStreams=[]),this._localStreams.includes(r)||this._localStreams.push(r),r.getAudioTracks().forEach(i=>t.call(this,i,r)),r.getVideoTracks().forEach(i=>t.call(this,i,r))},e.RTCPeerConnection.prototype.addTrack=function(r){for(var i=arguments.length,o=new Array(i>1?i-1:0),s=1;s<i;s++)o[s-1]=arguments[s];return o&&o.forEach(a=>{this._localStreams?this._localStreams.includes(a)||this._localStreams.push(a):this._localStreams=[a]}),t.apply(this,arguments)}}"removeStream"in e.RTCPeerConnection.prototype||(e.RTCPeerConnection.prototype.removeStream=function(n){this._localStreams||(this._localStreams=[]);const r=this._localStreams.indexOf(n);if(r===-1)return;this._localStreams.splice(r,1);const i=n.getTracks();this.getSenders().forEach(o=>{i.includes(o.track)&&this.removeTrack(o)})})}}function qhe(e){if(!(typeof e!="object"||!e.RTCPeerConnection)&&("getRemoteStreams"in e.RTCPeerConnection.prototype||(e.RTCPeerConnection.prototype.getRemoteStreams=function(){return this._remoteStreams?this._remoteStreams:[]}),!("onaddstream"in e.RTCPeerConnection.prototype))){Object.defineProperty(e.RTCPeerConnection.prototype,"onaddstream",{get(){return this._onaddstream},set(n){this._onaddstream&&(this.removeEventListener("addstream",this._onaddstream),this.removeEventListener("track",this._onaddstreampoly)),this.addEventListener("addstream",this._onaddstream=n),this.addEventListener("track",this._onaddstreampoly=r=>{r.streams.forEach(i=>{if(this._remoteStreams||(this._remoteStreams=[]),this._remoteStreams.includes(i))return;this._remoteStreams.push(i);const o=new Event("addstream");o.stream=i,this.dispatchEvent(o)})})}});const t=e.RTCPeerConnection.prototype.setRemoteDescription;e.RTCPeerConnection.prototype.setRemoteDescription=function(){const r=this;return this._onaddstreampoly||this.addEventListener("track",this._onaddstreampoly=function(i){i.streams.forEach(o=>{if(r._remoteStreams||(r._remoteStreams=[]),r._remoteStreams.indexOf(o)>=0)return;r._remoteStreams.push(o);const s=new Event("addstream");s.stream=o,r.dispatchEvent(s)})}),t.apply(r,arguments)}}}function Ghe(e){if(typeof e!="object"||!e.RTCPeerConnection)return;const t=e.RTCPeerConnection.prototype,n=t.createOffer,r=t.createAnswer,i=t.setLocalDescription,o=t.setRemoteDescription,s=t.addIceCandidate;t.createOffer=function(l,u){const d=arguments.length>=2?arguments[2]:arguments[0],f=n.apply(this,[d]);return u?(f.then(l,u),Promise.resolve()):f},t.createAnswer=function(l,u){const d=arguments.length>=2?arguments[2]:arguments[0],f=r.apply(this,[d]);return u?(f.then(l,u),Promise.resolve()):f};let a=function(c,l,u){const d=i.apply(this,[c]);return u?(d.then(l,u),Promise.resolve()):d};t.setLocalDescription=a,a=function(c,l,u){const d=o.apply(this,[c]);return u?(d.then(l,u),Promise.resolve()):d},t.setRemoteDescription=a,a=function(c,l,u){const d=s.apply(this,[c]);return u?(d.then(l,u),Promise.resolve()):d},t.addIceCandidate=a}function Khe(e){const t=e&&e.navigator;if(t.mediaDevices&&t.mediaDevices.getUserMedia){const n=t.mediaDevices,r=n.getUserMedia.bind(n);t.mediaDevices.getUserMedia=i=>r(Yhe(i))}!t.getUserMedia&&t.mediaDevices&&t.mediaDevices.getUserMedia&&(t.getUserMedia=(function(r,i,o){t.mediaDevices.getUserMedia(r).then(i,o)}).bind(t))}function Yhe(e){return e&&e.video!==void 0?Object.assign({},e,{video:khe(e.video)}):e}function Qhe(e){if(!e.RTCPeerConnection)return;const t=e.RTCPeerConnection;e.RTCPeerConnection=function(r,i){if(r&&r.iceServers){const o=[];for(let s=0;s<r.iceServers.length;s++){let a=r.iceServers[s];a.urls===void 0&&a.url?(r$("RTCIceServer.url","RTCIceServer.urls"),a=JSON.parse(JSON.stringify(a)),a.urls=a.url,delete a.url,o.push(a)):o.push(r.iceServers[s])}r.iceServers=o}return new t(r,i)},e.RTCPeerConnection.prototype=t.prototype,"generateCertificate"in t&&Object.defineProperty(e.RTCPeerConnection,"generateCertificate",{get(){return t.generateCertificate}})}function Xhe(e){typeof e=="object"&&e.RTCTrackEvent&&"receiver"in e.RTCTrackEvent.prototype&&!("transceiver"in e.RTCTrackEvent.prototype)&&Object.defineProperty(e.RTCTrackEvent.prototype,"transceiver",{get(){return{receiver:this.receiver}}})}function Jhe(e){const t=e.RTCPeerConnection.prototype.createOffer;e.RTCPeerConnection.prototype.createOffer=function(r){if(r){typeof r.offerToReceiveAudio<"u"&&(r.offerToReceiveAudio=!!r.offerToReceiveAudio);const i=this.getTransceivers().find(s=>s.receiver.track.kind==="audio");r.offerToReceiveAudio===!1&&i?i.direction==="sendrecv"?i.setDirection?i.setDirection("sendonly"):i.direction="sendonly":i.direction==="recvonly"&&(i.setDirection?i.setDirection("inactive"):i.direction="inactive"):r.offerToReceiveAudio===!0&&!i&&this.addTransceiver("audio",{direction:"recvonly"}),typeof r.offerToReceiveVideo<"u"&&(r.offerToReceiveVideo=!!r.offerToReceiveVideo);const o=this.getTransceivers().find(s=>s.receiver.track.kind==="video");r.offerToReceiveVideo===!1&&o?o.direction==="sendrecv"?o.setDirection?o.setDirection("sendonly"):o.direction="sendonly":o.direction==="recvonly"&&(o.setDirection?o.setDirection("inactive"):o.direction="inactive"):r.offerToReceiveVideo===!0&&!o&&this.addTransceiver("video",{direction:"recvonly"})}return t.apply(this,arguments)}}function Zhe(e){typeof e!="object"||e.AudioContext||(e.AudioContext=e.webkitAudioContext)}var iX=Object.freeze({__proto__:null,shimAudioContext:Zhe,shimCallbacksAPI:Ghe,shimConstraints:Yhe,shimCreateOfferLegacy:Jhe,shimGetUserMedia:Khe,shimLocalStreamsAPI:Whe,shimRTCIceServerUrls:Qhe,shimRemoteStreamsAPI:qhe,shimTrackEventTransceiver:Xhe}),gM={exports:{}},oX;function d8e(){return oX||(oX=1,(function(e){const t={};t.generateIdentifier=function(){return Math.random().toString(36).substring(2,12)},t.localCName=t.generateIdentifier(),t.splitLines=function(n){return n.trim().split(`
387`).map(r=>r.trim())},t.splitSections=function(n){return n.split(`
388m=`).map((i,o)=>(o>0?"m="+i:i).trim()+`\r
389`)},t.getDescription=function(n){const r=t.splitSections(n);return r&&r[0]},t.getMediaSections=function(n){const r=t.splitSections(n);return r.shift(),r},t.matchPrefix=function(n,r){return t.splitLines(n).filter(i=>i.indexOf(r)===0)},t.parseCandidate=function(n){let r;n.indexOf("a=candidate:")===0?r=n.substring(12).split(" "):r=n.substring(10).split(" ");const i={foundation:r[0],component:{1:"rtp",2:"rtcp"}[r[1]]||r[1],protocol:r[2].toLowerCase(),priority:parseInt(r[3],10),ip:r[4],address:r[4],port:parseInt(r[5],10),type:r[7]};for(let o=8;o<r.length;o+=2)switch(r[o]){case"raddr":i.relatedAddress=r[o+1];break;case"rport":i.relatedPort=parseInt(r[o+1],10);break;case"tcptype":i.tcpType=r[o+1];break;case"ufrag":i.ufrag=r[o+1],i.usernameFragment=r[o+1];break;default:i[r[o]]===void 0&&(i[r[o]]=r[o+1]);break}return i},t.writeCandidate=function(n){const r=[];r.push(n.foundation);const i=n.component;i==="rtp"?r.push(1):i==="rtcp"?r.push(2):r.push(i),r.push(n.protocol.toUpperCase()),r.push(n.priority),r.push(n.address||n.ip),r.push(n.port);const o=n.type;return r.push("typ"),r.push(o),o!=="host"&&n.relatedAddress&&n.relatedPort&&(r.push("raddr"),r.push(n.relatedAddress),r.push("rport"),r.push(n.relatedPort)),n.tcpType&&n.protocol.toLowerCase()==="tcp"&&(r.push("tcptype"),r.push(n.tcpType)),(n.usernameFragment||n.ufrag)&&(r.push("ufrag"),r.push(n.usernameFragment||n.ufrag)),"candidate:"+r.join(" ")},t.parseIceOptions=function(n){return n.substring(14).split(" ")},t.parseRtpMap=function(n){let r=n.substring(9).split(" ");const i={payloadType:parseInt(r.shift(),10)};return r=r[0].split("/"),i.name=r[0],i.clockRate=parseInt(r[1],10),i.channels=r.length===3?parseInt(r[2],10):1,i.numChannels=i.channels,i},t.writeRtpMap=function(n){let r=n.payloadType;n.preferredPayloadType!==void 0&&(r=n.preferredPayloadType);const i=n.channels||n.numChannels||1;return"a=rtpmap:"+r+" "+n.name+"/"+n.clockRate+(i!==1?"/"+i:"")+`\r
390`},t.parseExtmap=function(n){const r=n.substring(9).split(" ");return{id:parseInt(r[0],10),direction:r[0].indexOf("/")>0?r[0].split("/")[1]:"sendrecv",uri:r[1],attributes:r.slice(2).join(" ")}},t.writeExtmap=function(n){return"a=extmap:"+(n.id||n.preferredId)+(n.direction&&n.direction!=="sendrecv"?"/"+n.direction:"")+" "+n.uri+(n.attributes?" "+n.attributes:"")+`\r
391`},t.parseFmtp=function(n){const r={};let i;const o=n.substring(n.indexOf(" ")+1).split(";");for(let s=0;s<o.length;s++)i=o[s].trim().split("="),r[i[0].trim()]=i[1];return r},t.writeFmtp=function(n){let r="",i=n.payloadType;if(n.preferredPayloadType!==void 0&&(i=n.preferredPayloadType),n.parameters&&Object.keys(n.parameters).length){const o=[];Object.keys(n.parameters).forEach(s=>{n.parameters[s]!==void 0?o.push(s+"="+n.parameters[s]):o.push(s)}),r+="a=fmtp:"+i+" "+o.join(";")+`\r
392`}return r},t.parseRtcpFb=function(n){const r=n.substring(n.indexOf(" ")+1).split(" ");return{type:r.shift(),parameter:r.join(" ")}},t.writeRtcpFb=function(n){let r="",i=n.payloadType;return n.preferredPayloadType!==void 0&&(i=n.preferredPayloadType),n.rtcpFeedback&&n.rtcpFeedback.length&&n.rtcpFeedback.forEach(o=>{r+="a=rtcp-fb:"+i+" "+o.type+(o.parameter&&o.parameter.length?" "+o.parameter:"")+`\r
393`}),r},t.parseSsrcMedia=function(n){const r=n.indexOf(" "),i={ssrc:parseInt(n.substring(7,r),10)},o=n.indexOf(":",r);return o>-1?(i.attribute=n.substring(r+1,o),i.value=n.substring(o+1)):i.attribute=n.substring(r+1),i},t.parseSsrcGroup=function(n){const r=n.substring(13).split(" ");return{semantics:r.shift(),ssrcs:r.map(i=>parseInt(i,10))}},t.getMid=function(n){const r=t.matchPrefix(n,"a=mid:")[0];if(r)return r.substring(6)},t.parseFingerprint=function(n){const r=n.substring(14).split(" ");return{algorithm:r[0].toLowerCase(),value:r[1].toUpperCase()}},t.getDtlsParameters=function(n,r){return{role:"auto",fingerprints:t.matchPrefix(n+r,"a=fingerprint:").map(t.parseFingerprint)}},t.writeDtlsParameters=function(n,r){let i="a=setup:"+r+`\r
394`;return n.fingerprints.forEach(o=>{i+="a=fingerprint:"+o.algorithm+" "+o.value+`\r
395`}),i},t.parseCryptoLine=function(n){const r=n.substring(9).split(" ");return{tag:parseInt(r[0],10),cryptoSuite:r[1],keyParams:r[2],sessionParams:r.slice(3)}},t.writeCryptoLine=function(n){return"a=crypto:"+n.tag+" "+n.cryptoSuite+" "+(typeof n.keyParams=="object"?t.writeCryptoKeyParams(n.keyParams):n.keyParams)+(n.sessionParams?" "+n.sessionParams.join(" "):"")+`\r
396`},t.parseCryptoKeyParams=function(n){if(n.indexOf("inline:")!==0)return null;const r=n.substring(7).split("|");return{keyMethod:"inline",keySalt:r[0],lifeTime:r[1],mkiValue:r[2]?r[2].split(":")[0]:void 0,mkiLength:r[2]?r[2].split(":")[1]:void 0}},t.writeCryptoKeyParams=function(n){return n.keyMethod+":"+n.keySalt+(n.lifeTime?"|"+n.lifeTime:"")+(n.mkiValue&&n.mkiLength?"|"+n.mkiValue+":"+n.mkiLength:"")},t.getCryptoParameters=function(n,r){return t.matchPrefix(n+r,"a=crypto:").map(t.parseCryptoLine)},t.getIceParameters=function(n,r){const i=t.matchPrefix(n+r,"a=ice-ufrag:")[0],o=t.matchPrefix(n+r,"a=ice-pwd:")[0];return i&&o?{usernameFragment:i.substring(12),password:o.substring(10)}:null},t.writeIceParameters=function(n){let r="a=ice-ufrag:"+n.usernameFragment+`\r
397a=ice-pwd:`+n.password+`\r
398`;return n.iceLite&&(r+=`a=ice-lite\r
399`),r},t.parseRtpParameters=function(n){const r={codecs:[],headerExtensions:[],fecMechanisms:[],rtcp:[]},o=t.splitLines(n)[0].split(" ");r.profile=o[2];for(let a=3;a<o.length;a++){const c=o[a],l=t.matchPrefix(n,"a=rtpmap:"+c+" ")[0];if(l){const u=t.parseRtpMap(l),d=t.matchPrefix(n,"a=fmtp:"+c+" ");switch(u.parameters=d.length?t.parseFmtp(d[0]):{},u.rtcpFeedback=t.matchPrefix(n,"a=rtcp-fb:"+c+" ").map(t.parseRtcpFb),r.codecs.push(u),u.name.toUpperCase()){case"RED":case"ULPFEC":r.fecMechanisms.push(u.name.toUpperCase());break}}}t.matchPrefix(n,"a=extmap:").forEach(a=>{r.headerExtensions.push(t.parseExtmap(a))});const s=t.matchPrefix(n,"a=rtcp-fb:* ").map(t.parseRtcpFb);return r.codecs.forEach(a=>{s.forEach(c=>{a.rtcpFeedback.find(u=>u.type===c.type&&u.parameter===c.parameter)||a.rtcpFeedback.push(c)})}),r},t.writeRtpDescription=function(n,r){let i="";i+="m="+n+" ",i+=r.codecs.length>0?"9":"0",i+=" "+(r.profile||"UDP/TLS/RTP/SAVPF")+" ",i+=r.codecs.map(s=>s.preferredPayloadType!==void 0?s.preferredPayloadType:s.payloadType).join(" ")+`\r
400`,i+=`c=IN IP4 0.0.0.0\r
401`,i+=`a=rtcp:9 IN IP4 0.0.0.0\r
402`,r.codecs.forEach(s=>{i+=t.writeRtpMap(s),i+=t.writeFmtp(s),i+=t.writeRtcpFb(s)});let o=0;return r.codecs.forEach(s=>{s.maxptime>o&&(o=s.maxptime)}),o>0&&(i+="a=maxptime:"+o+`\r
403`),r.headerExtensions&&r.headerExtensions.forEach(s=>{i+=t.writeExtmap(s)}),i},t.parseRtpEncodingParameters=function(n){const r=[],i=t.parseRtpParameters(n),o=i.fecMechanisms.indexOf("RED")!==-1,s=i.fecMechanisms.indexOf("ULPFEC")!==-1,a=t.matchPrefix(n,"a=ssrc:").map(f=>t.parseSsrcMedia(f)).filter(f=>f.attribute==="cname"),c=a.length>0&&a[0].ssrc;let l;const u=t.matchPrefix(n,"a=ssrc-group:FID").map(f=>f.substring(17).split(" ").map(g=>parseInt(g,10)));u.length>0&&u[0].length>1&&u[0][0]===c&&(l=u[0][1]),i.codecs.forEach(f=>{if(f.name.toUpperCase()==="RTX"&&f.parameters.apt){let p={ssrc:c,codecPayloadType:parseInt(f.parameters.apt,10)};c&&l&&(p.rtx={ssrc:l}),r.push(p),o&&(p=JSON.parse(JSON.stringify(p)),p.fec={ssrc:c,mechanism:s?"red+ulpfec":"red"},r.push(p))}}),r.length===0&&c&&r.push({ssrc:c});let d=t.matchPrefix(n,"b=");return d.length&&(d[0].indexOf("b=TIAS:")===0?d=parseInt(d[0].substring(7),10):d[0].indexOf("b=AS:")===0?d=parseInt(d[0].substring(5),10)*1e3*.95-2e3*8:d=void 0,r.forEach(f=>{f.maxBitrate=d})),r},t.parseRtcpParameters=function(n){const r={},i=t.matchPrefix(n,"a=ssrc:").map(a=>t.parseSsrcMedia(a)).filter(a=>a.attribute==="cname")[0];i&&(r.cname=i.value,r.ssrc=i.ssrc);const o=t.matchPrefix(n,"a=rtcp-rsize");r.reducedSize=o.length>0,r.compound=o.length===0;const s=t.matchPrefix(n,"a=rtcp-mux");return r.mux=s.length>0,r},t.writeRtcpParameters=function(n){let r="";return n.reducedSize&&(r+=`a=rtcp-rsize\r
404`),n.mux&&(r+=`a=rtcp-mux\r
405`),n.ssrc!==void 0&&n.cname&&(r+="a=ssrc:"+n.ssrc+" cname:"+n.cname+`\r
406`),r},t.parseMsid=function(n){let r;const i=t.matchPrefix(n,"a=msid:");if(i.length===1)return r=i[0].substring(7).split(" "),{stream:r[0],track:r[1]};const o=t.matchPrefix(n,"a=ssrc:").map(s=>t.parseSsrcMedia(s)).filter(s=>s.attribute==="msid");if(o.length>0)return r=o[0].value.split(" "),{stream:r[0],track:r[1]}},t.parseSctpDescription=function(n){const r=t.parseMLine(n),i=t.matchPrefix(n,"a=max-message-size:");let o;i.length>0&&(o=parseInt(i[0].substring(19),10)),isNaN(o)&&(o=65536);const s=t.matchPrefix(n,"a=sctp-port:");if(s.length>0)return{port:parseInt(s[0].substring(12),10),protocol:r.fmt,maxMessageSize:o};const a=t.matchPrefix(n,"a=sctpmap:");if(a.length>0){const c=a[0].substring(10).split(" ");return{port:parseInt(c[0],10),protocol:c[1],maxMessageSize:o}}},t.writeSctpDescription=function(n,r){let i=[];return n.protocol!=="DTLS/SCTP"?i=["m="+n.kind+" 9 "+n.protocol+" "+r.protocol+`\r
407`,`c=IN IP4 0.0.0.0\r
408`,"a=sctp-port:"+r.port+`\r
409`]:i=["m="+n.kind+" 9 "+n.protocol+" "+r.port+`\r
410`,`c=IN IP4 0.0.0.0\r
411`,"a=sctpmap:"+r.port+" "+r.protocol+` 65535\r
412`],r.maxMessageSize!==void 0&&i.push("a=max-message-size:"+r.maxMessageSize+`\r
413`),i.join("")},t.generateSessionId=function(){return Math.random().toString().substr(2,22)},t.writeSessionBoilerplate=function(n,r,i){let o;const s=r!==void 0?r:2;return n?o=n:o=t.generateSessionId(),`v=0\r
414o=`+(i||"thisisadapterortc")+" "+o+" "+s+` IN IP4 127.0.0.1\r
415s=-\r
416t=0 0\r
417`},t.getDirection=function(n,r){const i=t.splitLines(n);for(let o=0;o<i.length;o++)switch(i[o]){case"a=sendrecv":case"a=sendonly":case"a=recvonly":case"a=inactive":return i[o].substring(2)}return r?t.getDirection(r):"sendrecv"},t.getKind=function(n){return t.splitLines(n)[0].split(" ")[0].substring(2)},t.isRejected=function(n){return n.split(" ",2)[1]==="0"},t.parseMLine=function(n){const i=t.splitLines(n)[0].substring(2).split(" ");return{kind:i[0],port:parseInt(i[1],10),protocol:i[2],fmt:i.slice(3).join(" ")}},t.parseOLine=function(n){const i=t.matchPrefix(n,"o=")[0].substring(2).split(" ");return{username:i[0],sessionId:i[1],sessionVersion:parseInt(i[2],10),netType:i[3],addressType:i[4],address:i[5]}},t.isValidSDP=function(n){if(typeof n!="string"||n.length===0)return!1;const r=t.splitLines(n);for(let i=0;i<r.length;i++)if(r[i].length<2||r[i].charAt(1)!=="=")return!1;return!0},e.exports=t})(gM)),gM.exports}var epe=d8e(),xy=ZLe(epe),f8e=TDe({__proto__:null,default:xy},[epe]);function vx(e){if(!e.RTCIceCandidate||e.RTCIceCandidate&&"foundation"in e.RTCIceCandidate.prototype)return;const t=e.RTCIceCandidate;e.RTCIceCandidate=function(r){if(typeof r=="object"&&r.candidate&&r.candidate.indexOf("a=")===0&&(r=JSON.parse(JSON.stringify(r)),r.candidate=r.candidate.substring(2)),r.candidate&&r.candidate.length){const i=new t(r),o=xy.parseCandidate(r.candidate);for(const s in o)s in i||Object.defineProperty(i,s,{value:o[s]});return i.toJSON=function(){return{candidate:i.candidate,sdpMid:i.sdpMid,sdpMLineIndex:i.sdpMLineIndex,usernameFragment:i.usernameFragment}},i}return new t(r)},e.RTCIceCandidate.prototype=t.prototype,Lv(e,"icecandidate",n=>(n.candidate&&Object.defineProperty(n,"candidate",{value:new e.RTCIceCandidate(n.candidate),writable:"false"}),n))}function $F(e){!e.RTCIceCandidate||e.RTCIceCandidate&&"relayProtocol"in e.RTCIceCandidate.prototype||Lv(e,"icecandidate",t=>{if(t.candidate){const n=xy.parseCandidate(t.candidate.candidate);n.type==="relay"&&(t.candidate.relayProtocol={0:"tls",1:"tcp",2:"udp"}[n.priority>>24])}return t})}function yx(e,t){if(!e.RTCPeerConnection)return;
vendor: 17,944 bytes, lines 417-420
417"sctp"in e.RTCPeerConnection.prototype||Object.defineProperty(e.RTCPeerConnection.prototype,"sctp",{get(){return typeof this._sctp>"u"?null:this._sctp}});const n=function(a){if(!a||!a.sdp)return!1;const c=xy.splitSections(a.sdp);return c.shift(),c.some(l=>{const u=xy.parseMLine(l);return u&&u.kind==="application"&&u.protocol.indexOf("SCTP")!==-1})},r=function(a){const c=a.sdp.match(/mozilla...THIS_IS_SDPARTA-(\d+)/);if(c===null||c.length<2)return-1;const l=parseInt(c[1],10);return l!==l?-1:l},i=function(a){let c=65536;return t.browser==="firefox"&&(t.version<57?a===-1?c=16384:c=2147483637:t.version<60?c=t.version===57?65535:65536:c=2147483637),c},o=function(a,c){let l=65536;t.browser==="firefox"&&t.version===57&&(l=65535);const u=xy.matchPrefix(a.sdp,"a=max-message-size:");return u.length>0?l=parseInt(u[0].substring(19),10):t.browser==="firefox"&&c!==-1&&(l=2147483637),l},s=e.RTCPeerConnection.prototype.setRemoteDescription;e.RTCPeerConnection.prototype.setRemoteDescription=function(){if(this._sctp=null,t.browser==="chrome"&&t.version>=76){const{sdpSemantics:c}=this.getConfiguration();c==="plan-b"&&Object.defineProperty(this,"sctp",{get(){return typeof this._sctp>"u"?null:this._sctp},enumerable:!0,configurable:!0})}if(n(arguments[0])){const c=r(arguments[0]),l=i(c),u=o(arguments[0],c);let d;l===0&&u===0?d=Number.POSITIVE_INFINITY:l===0||u===0?d=Math.max(l,u):d=Math.min(l,u);const f={};Object.defineProperty(f,"maxMessageSize",{get(){return d}}),this._sctp=f}return s.apply(this,arguments)}}function bx(e){if(!(e.RTCPeerConnection&&"createDataChannel"in e.RTCPeerConnection.prototype))return;function t(r,i){const o=r.send;r.send=function(){const a=arguments[0],c=a.length||a.size||a.byteLength;if(r.readyState==="open"&&i.sctp&&c>i.sctp.maxMessageSize)throw new TypeError("Message too large (can send a maximum of "+i.sctp.maxMessageSize+" bytes)");return o.apply(r,arguments)}}const n=e.RTCPeerConnection.prototype.createDataChannel;e.RTCPeerConnection.prototype.createDataChannel=function(){const i=n.apply(this,arguments);return t(i,this),i},Lv(e,"datachannel",r=>(t(r.channel,r.target),r))}function HF(e){if(!e.RTCPeerConnection||"connectionState"in e.RTCPeerConnection.prototype)return;const t=e.RTCPeerConnection.prototype;Object.defineProperty(t,"connectionState",{get(){return{completed:"connected",checking:"connecting"}[this.iceConnectionState]||this.iceConnectionState},enumerable:!0,configurable:!0}),Object.defineProperty(t,"onconnectionstatechange",{get(){return this._onconnectionstatechange||null},set(n){this._onconnectionstatechange&&(this.removeEventListener("connectionstatechange",this._onconnectionstatechange),delete this._onconnectionstatechange),n&&this.addEventListener("connectionstatechange",this._onconnectionstatechange=n)},enumerable:!0,configurable:!0}),["setLocalDescription","setRemoteDescription"].forEach(n=>{const r=t[n];t[n]=function(){return this._connectionstatechangepoly||(this._connectionstatechangepoly=i=>{const o=i.target;if(o._lastConnectionState!==o.connectionState){o._lastConnectionState=o.connectionState;const s=new Event("connectionstatechange",i);o.dispatchEvent(s)}return i},this.addEventListener("iceconnectionstatechange",this._connectionstatechangepoly)),r.apply(this,arguments)}})}function zF(e,t){if(!e.RTCPeerConnection||t.browser==="chrome"&&t.version>=71||t.browser==="safari"&&t._safariVersion>=13.1)return;const n=e.RTCPeerConnection.prototype.setRemoteDescription;e.RTCPeerConnection.prototype.setRemoteDescription=function(i){if(i&&i.sdp&&i.sdp.indexOf(`
418a=extmap-allow-mixed`)!==-1){const o=i.sdp.split(`
419`).filter(s=>s.trim()!=="a=extmap-allow-mixed").join(`
420`);e.RTCSessionDescription&&i instanceof e.RTCSessionDescription?arguments[0]=new e.RTCSessionDescription({type:i.type,sdp:o}):i.sdp=o}return n.apply(this,arguments)}}function wx(e,t){if(!(e.RTCPeerConnection&&e.RTCPeerConnection.prototype))return;const n=e.RTCPeerConnection.prototype.addIceCandidate;!n||n.length===0||(e.RTCPeerConnection.prototype.addIceCandidate=function(){return arguments[0]?(t.browser==="chrome"&&t.version<78||t.browser==="firefox"&&t.version<68||t.browser==="safari")&&arguments[0]&&arguments[0].candidate===""?Promise.resolve():n.apply(this,arguments):(arguments[1]&&arguments[1].apply(null),Promise.resolve())})}function Sx(e,t){if(!(e.RTCPeerConnection&&e.RTCPeerConnection.prototype))return;const n=e.RTCPeerConnection.prototype.setLocalDescription;!n||n.length===0||(e.RTCPeerConnection.prototype.setLocalDescription=function(){let i=arguments[0]||{};if(typeof i!="object"||i.type&&i.sdp)return n.apply(this,arguments);if(i={type:i.type,sdp:i.sdp},!i.type)switch(this.signalingState){case"stable":case"have-local-offer":case"have-remote-pranswer":i.type="offer";break;default:i.type="answer";break}return i.sdp||i.type!=="offer"&&i.type!=="answer"?n.apply(this,[i]):(i.type==="offer"?this.createOffer:this.createAnswer).apply(this).then(s=>n.apply(this,[s]))})}var h8e=Object.freeze({__proto__:null,removeExtmapAllowMixed:zF,shimAddIceCandidateNullOrEmpty:wx,shimConnectionState:HF,shimMaxMessageSize:yx,shimParameterlessSetLocalDescription:Sx,shimRTCIceCandidate:vx,shimRTCIceCandidateRelayProtocol:$F,shimSendThrowTypeError:bx});function p8e(){let{window:e}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{shimChrome:!0,shimFirefox:!0,shimSafari:!0};const n=The,r=l8e(e),i={browserDetails:r,commonShim:h8e,extractVersion:_S,disableLog:a8e,disableWarnings:c8e,sdp:f8e};switch(r.browser){case"chrome":if(!nX||!UF||!t.shimChrome)return n("Chrome shim is not included in this adapter release."),i;if(r.version===null)return n("Chrome shim can not determine version, not shimming."),i;n("adapter.js shimming chrome."),i.browserShim=nX,wx(e,r),Sx(e),xhe(e,r),Ahe(e),UF(e,r),Ihe(e),Nhe(e,r),Rhe(e),Phe(e),Mhe(e,r),vx(e),$F(e),HF(e),yx(e,r),bx(e),zF(e,r);break;case"firefox":if(!rX||!BF||!t.shimFirefox)return n("Firefox shim is not included in this adapter release."),i;n("adapter.js shimming firefox."),i.browserShim=rX,wx(e,r),Sx(e),Dhe(e,r),BF(e,r),Lhe(e),Uhe(e),Fhe(e),jhe(e),Bhe(e),$he(e),Hhe(e),zhe(e),Vhe(e),vx(e),HF(e),yx(e,r),bx(e);break;case"safari":if(!iX||!t.shimSafari)return n("Safari shim is not included in this adapter release."),i;n("adapter.js shimming safari."),i.browserShim=iX,wx(e,r),Sx(e),Qhe(e),Jhe(e),Ghe(e),Whe(e),qhe(e),Xhe(e),Khe(e),Zhe(e),vx(e),$F(e),yx(e,r),bx(e),zF(e,r);break;default:n("Unsupported browser!");break}return i}p8e({window:typeof window>"u"?void 0:window});const m8e=10,Mw="lk_e2ee",g8e="LKFrameEncryptionKey",v8e={sharedKey:!1,ratchetSalt:g8e,ratchetWindowSize:8,failureTolerance:m8e,keyringSize:16};var Up;(function(e){e.SetKey="setKey",e.RatchetRequest="ratchetRequest",e.KeyRatcheted="keyRatcheted"})(Up||(Up={}));var sX;(function(e){e.KeyRatcheted="keyRatcheted"})(sX||(sX={}));var Sp;(function(e){e.ParticipantEncryptionStatusChanged="participantEncryptionStatusChanged",e.EncryptionError="encryptionError"})(Sp||(Sp={}));var aX;(function(e){e.Error="cryptorError"})(aX||(aX={}));function y8e(){return b8e()||VF()}function VF(){return typeof window.RTCRtpScriptTransform<"u"}function b8e(){return typeof window.RTCRtpSender<"u"&&typeof window.RTCRtpSender.prototype.createEncodedStreams<"u"}class ein extends Pd.EventEmitter{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};super(),this.onKeyRatcheted=(n,r,i)=>{gn.debug("key ratcheted event received",{ratchetResult:n,participantId:r,keyIndex:i})},this.keyInfoMap=new Map,this.options=Object.assign(Object.assign({},v8e),t),this.on(Up.KeyRatcheted,this.onKeyRatcheted)}onSetEncryptionKey(t,n,r){const i={key:t,participantIdentity:n,keyIndex:r};if(!this.options.sharedKey&&!n)throw new Error("participant identity needs to be passed for encryption key if sharedKey option is false");this.keyInfoMap.set("".concat(n??"shared","-").concat(r??0),i),this.emit(Up.SetKey,i)}getKeys(){return Array.from(this.keyInfoMap.values())}getOptions(){return this.options}ratchetKey(t,n){this.emit(Up.RatchetRequest,t,n)}}class vh extends Error{constructor(t,n){super(n||"an error has occured"),this.name="LiveKitError",this.code=t}}var xn;(function(e){e[e.NotAllowed=0]="NotAllowed",e[e.ServerUnreachable=1]="ServerUnreachable",e[e.InternalError=2]="InternalError",e[e.Cancelled=3]="Cancelled",e[e.LeaveRequest=4]="LeaveRequest",e[e.Timeout=5]="Timeout"})(xn||(xn={}));class mr extends vh{constructor(t,n,r,i){super(1,t),this.name="ConnectionError",this.status=r,this.reason=n,this.context=i,this.reasonName=xn[n]}}class i$ extends vh{constructor(t){super(21,t??"device is unsupported"),this.name="DeviceUnsupportedError"}}class Sf extends vh{constructor(t){super(20,t??"track is invalid"),this.name="TrackInvalidError"}}class w8e extends vh{constructor(t){super(10,t??"unsupported server"),this.name="UnsupportedServer"}}class fo extends vh{constructor(t){super(12,t??"unexpected connection state"),this.name="UnexpectedConnectionState"}}class WF extends vh{constructor(t){super(13,t??"unable to negotiate"),this.name="NegotiationError"}}class cX extends vh{constructor(t,n){super(15,t),this.name="PublishTrackError",this.status=n}}class lX extends vh{constructor(t,n){super(15,t),this.reason=n,this.reasonName=typeof n=="string"?n:n$[n]}}var Ul;(function(e){e[e.AlreadyOpened=0]="AlreadyOpened",e[e.AbnormalEnd=1]="AbnormalEnd",e[e.DecodeFailed=2]="DecodeFailed",e[e.LengthExceeded=3]="LengthExceeded",e[e.Incomplete=4]="Incomplete",e[e.HandlerAlreadyRegistered=7]="HandlerAlreadyRegistered"})(Ul||(Ul={}));class fp extends vh{constructor(t,n){super(16,t),this.name="DataStreamError",this.reason=n,this.reasonName=Ul[n]}}var Q_;(function(e){e.PermissionDenied="PermissionDenied",e.NotFound="NotFound",e.DeviceInUse="DeviceInUse",e.Other="Other"})(Q_||(Q_={}));(function(e){function t(n){if(n&&"name"in n)return n.name==="NotFoundError"||n.name==="DevicesNotFoundError"?e.NotFound:n.name==="NotAllowedError"||n.name==="PermissionDeniedError"?e.PermissionDenied:n.name==="NotReadableError"||n.name==="TrackStartError"?e.DeviceInUse:e.Other}e.getFailure=t})(Q_||(Q_={}));var uX;(function(e){e[e.InvalidKey=0]="InvalidKey",e[e.MissingKey=1]="MissingKey",e[e.InternalError=2]="InternalError"})(uX||(uX={}));var Ne;(function(e){e.Connected="connected",e.Reconnecting="reconnecting",e.SignalReconnecting="signalReconnecting",e.Reconnected="reconnected",e.Disconnected="disconnected",e.ConnectionStateChanged="connectionStateChanged",e.Moved="moved",e.MediaDevicesChanged="mediaDevicesChanged",e.ParticipantConnected="participantConnected",e.ParticipantDisconnected="participantDisconnected",e.TrackPublished="trackPublished",e.TrackSubscribed="trackSubscribed",e.TrackSubscriptionFailed="trackSubscriptionFailed",e.TrackUnpublished="trackUnpublished",e.TrackUnsubscribed="trackUnsubscribed",e.TrackMuted="trackMuted",e.TrackUnmuted="trackUnmuted",e.LocalTrackPublished="localTrackPublished",e.LocalTrackUnpublished="localTrackUnpublished",e.LocalAudioSilenceDetected="localAudioSilenceDetected",e.ActiveSpeakersChanged="activeSpeakersChanged",e.ParticipantMetadataChanged="participantMetadataChanged",e.ParticipantNameChanged="participantNameChanged",e.ParticipantAttributesChanged="participantAttributesChanged",e.ParticipantActive="participantActive",e.RoomMetadataChanged="roomMetadataChanged",e.DataReceived="dataReceived",e.SipDTMFReceived="sipDTMFReceived",e.TranscriptionReceived="transcriptionReceived",e.ConnectionQualityChanged="connectionQualityChanged",e.TrackStreamStateChanged="trackStreamStateChanged",e.TrackSubscriptionPermissionChanged="trackSubscriptionPermissionChanged",e.TrackSubscriptionStatusChanged="trackSubscriptionStatusChanged",e.AudioPlaybackStatusChanged="audioPlaybackChanged",e.VideoPlaybackStatusChanged="videoPlaybackChanged",e.MediaDevicesError="mediaDevicesError",e.ParticipantPermissionsChanged="participantPermissionsChanged",e.SignalConnected="signalConnected",e.RecordingStatusChanged="recordingStatusChanged",e.ParticipantEncryptionStatusChanged="participantEncryptionStatusChanged",e.EncryptionError="encryptionError",e.DCBufferStatusChanged="dcBufferStatusChanged",e.ActiveDeviceChanged="activeDeviceChanged",e.ChatMessage="chatMessage",e.LocalTrackSubscribed="localTrackSubscribed",e.MetricsReceived="metricsReceived"})(Ne||(Ne={}));var je;(function(e){e.TrackPublished="trackPublished",e.TrackSubscribed="trackSubscribed",e.TrackSubscriptionFailed="trackSubscriptionFailed",e.TrackUnpublished="trackUnpublished",e.TrackUnsubscribed="trackUnsubscribed",e.TrackMuted="trackMuted",e.TrackUnmuted="trackUnmuted",e.LocalTrackPublished="localTrackPublished",e.LocalTrackUnpublished="localTrackUnpublished",e.LocalTrackCpuConstrained="localTrackCpuConstrained",e.LocalSenderCreated="localSenderCreated",e.ParticipantMetadataChanged="participantMetadataChanged",e.ParticipantNameChanged="participantNameChanged",e.DataReceived="dataReceived",e.SipDTMFReceived="sipDTMFReceived",e.TranscriptionReceived="transcriptionReceived",e.IsSpeakingChanged="isSpeakingChanged",e.ConnectionQualityChanged="connectionQualityChanged",e.TrackStreamStateChanged="trackStreamStateChanged",e.TrackSubscriptionPermissionChanged="trackSubscriptionPermissionChanged",e.TrackSubscriptionStatusChanged="trackSubscriptionStatusChanged",e.TrackCpuConstrained="trackCpuConstrained",e.MediaDevicesError="mediaDevicesError",e.AudioStreamAcquired="audioStreamAcquired",e.ParticipantPermissionsChanged="participantPermissionsChanged",e.PCTrackAdded="pcTrackAdded",e.AttributesChanged="attributesChanged",e.LocalTrackSubscribed="localTrackSubscribed",e.ChatMessage="chatMessage",e.Active="active"})(je||(je={}));var ct;(function(e){e.TransportsCreated="transportsCreated",e.Connected="connected",e.Disconnected="disconnected",e.Resuming="resuming",e.Resumed="resumed",e.Restarting="restarting",e.Restarted="restarted",e.SignalResumed="signalResumed",e.SignalRestarted="signalRestarted",e.Closing="closing",e.MediaTrackAdded="mediaTrackAdded",e.ActiveSpeakersUpdate="activeSpeakersUpdate",e.DataPacketReceived="dataPacketReceived",e.RTPVideoMapUpdate="rtpVideoMapUpdate",e.DCBufferStatusChanged="dcBufferStatusChanged",e.ParticipantUpdate="participantUpdate",e.RoomUpdate="roomUpdate",e.SpeakersChanged="speakersChanged",e.StreamStateChanged="streamStateChanged",e.ConnectionQualityUpdate="connectionQualityUpdate",e.SubscriptionError="subscriptionError",e.SubscriptionPermissionUpdate="subscriptionPermissionUpdate",e.RemoteMute="remoteMute",e.SubscribedQualityUpdate="subscribedQualityUpdate",e.LocalTrackUnpublished="localTrackUnpublished",e.LocalTrackSubscribed="localTrackSubscribed",e.Offline="offline",e.SignalRequestResponse="signalRequestResponse",e.SignalConnected="signalConnected",e.RoomMoved="roomMoved"})(ct||(ct={}));var it;(function(e){e.Message="message",e.Muted="muted",e.Unmuted="unmuted",e.Restarted="restarted",e.Ended="ended",e.Subscribed="subscribed",e.Unsubscribed="unsubscribed",e.CpuConstrained="cpuConstrained",e.UpdateSettings="updateSettings",e.UpdateSubscription="updateSubscription",e.AudioPlaybackStarted="audioPlaybackStarted",e.AudioPlaybackFailed="audioPlaybackFailed",e.AudioSilenceDetected="audioSilenceDetected",e.VisibilityChanged="visibilityChanged",e.VideoDimensionsChanged="videoDimensionsChanged",e.VideoPlaybackStarted="videoPlaybackStarted",e.VideoPlaybackFailed="videoPlaybackFailed",e.ElementAttached="elementAttached",e.ElementDetached="elementDetached",e.UpstreamPaused="upstreamPaused",e.UpstreamResumed="upstreamResumed",e.SubscriptionPermissionChanged="subscriptionPermissionChanged",e.SubscriptionStatusChanged="subscriptionStatusChanged",e.SubscriptionFailed="subscriptionFailed",e.TrackProcessorUpdate="trackProcessorUpdate",e.AudioTrackFeatureUpdate="audioTrackFeatureUpdate",e.TranscriptionReceived="transcriptionReceived",e.TimeSyncUpdate="timeSyncUpdate",e.PreConnectBufferFlushed="preConnectBufferFlushed"})(it||(it={}));function S8e(e){return typeof e>"u"?e:typeof structuredClone=="function"?typeof e=="object"&&e!==null?structuredClone(Object.assign({},e)):structuredClone(e):JSON.parse(JSON.stringify(e))}const _8e=/version\/(\d+(\.?_?\d+)+)/i;let vM;function Xs(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;if(typeof navigator>"u")return;const n=navigator.userAgent.toLowerCase();if(vM===void 0||t){const r=C8e.find(i=>{let{test:o}=i;return o.test(n)});vM=r==null?void 0:r.describe(n)}return vM}const C8e=[{test:/firefox|iceweasel|fxios/i,describe(e){return{name:"Firefox",version:_x(/(?:firefox|iceweasel|fxios)[\s/](\d+(\.?_?\d+)+)/i,e),os:e.toLowerCase().includes("fxios")?"iOS":void 0,osVersion:yM(e)}}},{test:/chrom|crios|crmo/i,describe(e){return{name:"Chrome",version:_x(/(?:chrome|chromium|crios|crmo)\/(\d+(\.?_?\d+)+)/i,e),os:e.toLowerCase().includes("crios")?"iOS":void 0,osVersion:yM(e)}}},{test:/safari|applewebkit/i,describe(e){return{name:"Safari",version:_x(_8e,e),os:e.includes("mobile/")?"iOS":"macOS",osVersion:yM(e)}}}];function _x(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1;const r=t.match(e);return r&&r.length>=n&&r[n]||""}function yM(e){return e.includes("mac os")?_x(/\(.+?(\d+_\d+(:?_\d+)?)/,e,1).replace(/_/g,"."):void 0}var E8e="2.15.6";const T8e=E8e,k8e=16;class os{}os.setTimeout=function(){return setTimeout(...arguments)};os.setInterval=function(){return setInterval(...arguments)};os.clearTimeout=function(){return clearTimeout(...arguments)};os.clearInterval=function(){return clearInterval(...arguments)};const x8e=5e3,Dw=[];var ic;(function(e){e[e.LOW=0]="LOW",e[e.MEDIUM=1]="MEDIUM",e[e.HIGH=2]="HIGH"})(ic||(ic={}));let Re=class D0 extends Pd.EventEmitter{get streamState(){return this._streamState}setStreamState(t){this._streamState=t}constructor(t,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};var i;super(),this.attachedElements=[],this.isMuted=!1,this._streamState=D0.StreamState.Active,this.isInBackgroun
vendor: 6,059 bytes, line 420
420d=!1,this._currentBitrate=0,this.log=gn,this.appVisibilityChangedListener=()=>{this.backgroundTimeout&&clearTimeout(this.backgroundTimeout),document.visibilityState==="hidden"?this.backgroundTimeout=setTimeout(()=>this.handleAppVisibilityChanged(),x8e):this.handleAppVisibilityChanged()},this.log=Zf((i=r.loggerName)!==null&&i!==void 0?i:tu.Track),this.loggerContextCb=r.loggerContextCb,this.setMaxListeners(100),this.kind=n,this._mediaStreamTrack=t,this._mediaStreamID=t.id,this.source=D0.Source.Unknown}get logContext(){var t;return Object.assign(Object.assign({},(t=this.loggerContextCb)===null||t===void 0?void 0:t.call(this)),yn(this))}get currentBitrate(){return this._currentBitrate}get mediaStreamTrack(){return this._mediaStreamTrack}get mediaStreamID(){return this._mediaStreamID}attach(t){let n="audio";this.kind===D0.Kind.Video&&(n="video"),this.attachedElements.length===0&&this.kind===D0.Kind.Video&&this.addAppVisibilityListener(),t||(n==="audio"&&(Dw.forEach(o=>{o.parentElement===null&&!t&&(t=o)}),t&&Dw.splice(Dw.indexOf(t),1)),t||(t=document.createElement(n))),this.attachedElements.includes(t)||this.attachedElements.push(t),ny(this.mediaStreamTrack,t);const r=t.srcObject.getTracks(),i=r.some(o=>o.kind==="audio");return t.play().then(()=>{this.emit(i?it.AudioPlaybackStarted:it.VideoPlaybackStarted)}).catch(o=>{o.name==="NotAllowedError"?this.emit(i?it.AudioPlaybackFailed:it.VideoPlaybackFailed,o):o.name==="AbortError"?gn.debug("".concat(i?"audio":"video"," playback aborted, likely due to new play request")):gn.warn("could not playback ".concat(i?"audio":"video"),o),i&&t&&r.some(s=>s.kind==="video")&&o.name==="NotAllowedError"&&(t.muted=!0,t.play().catch(()=>{}))}),this.emit(it.ElementAttached,t),t}detach(t){try{if(t){Ay(this.mediaStreamTrack,t);const r=this.attachedElements.indexOf(t);return r>=0&&(this.attachedElements.splice(r,1),this.recycleElement(t),this.emit(it.ElementDetached,t)),t}const n=[];return this.attachedElements.forEach(r=>{Ay(this.mediaStreamTrack,r),n.push(r),this.recycleElement(r),this.emit(it.ElementDetached,r)}),this.attachedElements=[],n}finally{this.attachedElements.length===0&&this.removeAppVisibilityListener()}}stop(){this.stopMonitor(),this._mediaStreamTrack.stop()}enable(){this._mediaStreamTrack.enabled=!0}disable(){this._mediaStreamTrack.enabled=!1}stopMonitor(){this.monitorInterval&&clearInterval(this.monitorInterval),this.timeSyncHandle&&cancelAnimationFrame(this.timeSyncHandle)}updateLoggerOptions(t){t.loggerName&&(this.log=Zf(t.loggerName)),t.loggerContextCb&&(this.loggerContextCb=t.loggerContextCb)}recycleElement(t){if(t instanceof HTMLAudioElement){let n=!0;t.pause(),Dw.forEach(r=>{r.parentElement||(n=!1)}),n&&Dw.push(t)}}handleAppVisibilityChanged(){return ye(this,void 0,void 0,function*(){this.isInBackground=document.visibilityState==="hidden",!this.isInBackground&&this.kind===D0.Kind.Video&&setTimeout(()=>this.attachedElements.forEach(t=>t.play().catch(()=>{})),0)})}addAppVisibilityListener(){Sa()?(this.isInBackground=document.visibilityState==="hidden",document.addEventListener("visibilitychange",this.appVisibilityChangedListener)):this.isInBackground=!1}removeAppVisibilityListener(){Sa()&&document.removeEventListener("visibilitychange",this.appVisibilityChangedListener)}};function ny(e,t){let n;t.srcObject instanceof MediaStream?n=t.srcObject:n=new MediaStream;let r;e.kind==="audio"?r=n.getAudioTracks():r=n.getVideoTracks(),r.includes(e)||(r.forEach(i=>{n.removeTrack(i)}),n.addTrack(e)),(!av()||!(t instanceof HTMLVideoElement))&&(t.autoplay=!0),t.muted=n.getAudioTracks().length===0,t instanceof HTMLVideoElement&&(t.playsInline=!0),t.srcObject!==n&&(t.srcObject=n,(av()||sv())&&t instanceof HTMLVideoElement&&setTimeout(()=>{t.srcObject=n,t.play().catch(()=>{})},0))}function Ay(e,t){if(t.srcObject instanceof MediaStream){const n=t.srcObject;n.removeTrack(e),n.getTracks().length>0?t.srcObject=n:t.srcObject=null}}(function(e){let t;(function(l){l.Audio="audio",l.Video="video",l.Unknown="unknown"})(t=e.Kind||(e.Kind={}));let n;(function(l){l.Camera="camera",l.Microphone="microphone",l.ScreenShare="screen_share",l.ScreenShareAudio="screen_share_audio",l.Unknown="unknown"})(n=e.Source||(e.Source={}));let r;(function(l){l.Active="active",l.Paused="paused",l.Unknown="unknown"})(r=e.StreamState||(e.StreamState={}));function i(l){switch(l){case t.Audio:return Fl.AUDIO;case t.Video:return Fl.VIDEO;default:return Fl.DATA}}e.kindToProto=i;function o(l){switch(l){case Fl.AUDIO:return t.Audio;case Fl.VIDEO:return t.Video;default:return t.Unknown}}e.kindFromProto=o;function s(l){switch(l){case n.Camera:return Zi.CAMERA;case n.Microphone:return Zi.MICROPHONE;case n.ScreenShare:return Zi.SCREEN_SHARE;case n.ScreenShareAudio:return Zi.SCREEN_SHARE_AUDIO;default:return Zi.UNKNOWN}}e.sourceToProto=s;function a(l){switch(l){case Zi.CAMERA:return n.Camera;case Zi.MICROPHONE:return n.Microphone;case Zi.SCREEN_SHARE:return n.ScreenShare;case Zi.SCREEN_SHARE_AUDIO:return n.ScreenShareAudio;default:return n.Unknown}}e.sourceFromProto=a;function c(l){switch(l){case MF.ACTIVE:return r.Active;case MF.PAUSED:return r.Paused;default:return r.Unknown}}e.streamStateFromProto=c})(Re||(Re={}));class cr{constructor(t,n,r,i,o){if(typeof t=="object")this.width=t.width,this.height=t.height,this.aspectRatio=t.aspectRatio,this.encoding={maxBitrate:t.maxBitrate,maxFramerate:t.maxFramerate,priority:t.priority};else if(n!==void 0&&r!==void 0)this.width=t,this.height=n,this.aspectRatio=t/n,this.encoding={maxBitrate:r,maxFramerate:i,priority:o};else throw new TypeError("Unsupported options: provide at least width, height and maxBitrate")}get resolution(){return{width:this.width,height:this.height,frameRate:this.encoding.maxFramerate,aspectRatio:this.aspectRatio}}}const A8e=["vp8","h264"],I8e=["vp8","h264","vp9","av1","h265"];function R8e(e){return!!A8e.find(t=>t===e)}var dX;(function(e){e[e.PREFER_REGRESSION=0]="PREFER_REGRESSION",e[e.SIMULCAST=1]="SIMULCAST",e[e.REGRESSION=2]="REGRESSION"})(dX||(dX={}));var qF;(function(e){e.telephone={maxBitrate:12e3}
420,e.speech={maxBitrate:24e3},e.music={maxBitrate:48e3},e.musicStereo={maxBitrate:64e3},e.musicHighQuality={maxBitrate:96e3},e.musicHighQualityStereo={maxBitrate:128e3}})(qF||(qF={}));const X_={h90:new cr(160,90,9e4,20),h180:new cr(320,180,16e4,20),h216:new cr(384,216,18e4,20),h360:new cr(640,360,45e4,20),h540:new cr(960,540,8e5,25),h720:new cr(1280,720,17e5,30),h1080:new cr(1920,1080,3e6,30),h1440:new cr(2560,1440,5e6,30),h2160:new cr(3840,2160,8e6,30)},GF={h120:new cr(160,120,7e4,20),h180:new cr(240,180,125e3,20),h240:new cr(320,240,14e4,20),h360:new cr(480,360,33e4,20),h480:new cr(640,480,5e5,20),h540:new cr(720,540,6e5,25),h720:new cr(960,720,13e5,30),h1080:new cr(1440,1080,23e5,30),h1440:new cr(1920,1440,38e5,30)},o$={h360fps3:new cr(640,360,2e5,3,"medium"),h360fps15:new cr(640,360,4e5,15,"medium"),h720fps5:new cr(1280,720,8e5,5,"medium"),h720fps15:new cr(1280,720,15e5,15,"medium"),h720fps30:new cr(1280,720,2e6,30,"medium"),h1080fps15:new cr(1920,1080,25e5,15,"medium"),h1080fps30:new cr(1920,1080,5e6,30,"medium"),original:new cr(0,0,7e6,30,"medium")},P8e="|",fX="https://aomediacodec.github.io/av1-rtp-spec/#dependency-descriptor-rtp-header-extension";function O8e(e){const t=e.split(P8e);return t.length>1?[t[0],e.substr(t[0].length+1)]:[e,""]}function ka(e){return ye(this,void 0,void 0,function*(){return new Promise(t=>os.setTimeout(t,e))})}function KF(){return"addTransceiver"in RTCPeerConnection.prototype}function YF(){return"addTrack"in RTCPeerConnection.prototype}function N8e(){if(!("getCapabilities"in RTCRtpSender)||av()||sv())return!1;const e=RTCRtpSender.getCapabilities("video");let t=!1;if(e){for(const n of e.codecs)if(n.mimeType==="video/AV1"){t=!0;break}}return t}function M8e(){if(!("getCapabilities"in RTCRtpSender)||sv())return!1;if(av()){const n=Xs();if(n!=null&&n.version&&gd(n.version,"16")<0||(n==null?void 0:n.os)==="iOS"&&(n!=null&&n.osVersion)&&gd(n.osVersion,"16")<0)return!1}const e=RTCRtpSender.getCapabilities("video");let t=!1;if(e){for(const n of e.codecs)if(n.mimeType==="video/VP9"){t=!0;break}}return t}function Wu(e){return e==="av1"||e==="vp9"}function QF(e){return!document||J_()?!1:(e||(e=document.createElement("audio")),"setSinkId"in e)}function D8e(){return typeof RTCPeerConnection>"u"?!1:KF()||YF()}function sv(){var e;return((e=Xs())===null||e===void 0?void 0:e.name)==="Firefox"}function av(){var e;return((e=Xs())===null||e===void 0?void 0:e.name)==="Safari"}function J_(){const e=Xs();return(e==null?void 0:e.name)==="Safari"||(e==null?void 0:e.os)==="iOS"}function L8e(){const e=Xs();return(e==null?void 0:e.name)==="Safari"&&e.version.startsWith("17.")||(e==null?void 0:e.os)==="iOS"&&!!(e!=null&&e.osVersion)&&gd(e.osVersion,"17")>=0}function F8e(e){return e||(e=Xs()),(e==null?void 0:e.name)==="Safari"&&gd(e.version,"18.3")>0||(e==null?void 0:e.os)==="iOS"&&!!(e!=null&&e.osVersion)&&gd(e.osVersion,"18.3")>0}function tpe(){var e,t;return Sa()?(t=(e=navigator.userAgentData)===null||e===void 0?void 0:e.mobile)!==null&&t!==void 0?t:/Tablet|iPad|Mobile|Android|BlackBerry/.test(navigator.userAgent):!1}function j8e(){const e=Xs(),t="17.2";if(e)return e.name!=="Safari"&&e.os!=="iOS"||e.os==="iOS"&&e.osVersion&&gd(e.osVersion,t)>=0?!0:e.name==="Safari"&&gd(e.version,t)>=0}function Sa(){return typeof document<"u"}function md(){return navigator.product=="ReactNative"}function XF(e){return e.hostname.endsWith(".livekit.cloud")||e.hostname.endsWith(".livekit.run")}function npe(){if(global&&global.LiveKitReactNativeGlobal)return global.LiveKitReactNativeGlobal}function rpe(){if(!md())return;let e=npe();if(e)return e.platform}function hX(){if(Sa())return window.devicePixelRatio;if(md()){let e=npe();if(e)return e.devicePixelRatio}return 1}function gd(e,t){const n=e.split("."),r=t.split("."),i=Math.min(n.length,r.length);for(let o=0;o<i;++o){const s=parseInt(n[o],10),a=parseInt(r[o],10);if(s>a)return 1;if(s<a)return-1;if(o===i-1&&s===a)return 0}return e===""&&t!==""?-1:t===""?1:n.length==r.length?0:n.length<r.length?-1:1}function U8e(e){for(const t of e)t.target.handleResize(t)}function B8e(e){for(const t of e)t.target.handleVisibilityChanged(t)}let bM=null;const pX=()=>(bM||(bM=new ResizeObserver(U8e)),bM);let wM=null;const mX=()=>(wM||(wM=new IntersectionObserver(B8e,{root:null,rootMargin:"0px"})),wM);function $8e(){var e;
vendor: 21,972 bytes, line 420
420const t=new ALe({sdk:ahe.JS,protocol:k8e,version:T8e});return md()&&(t.os=(e=rpe())!==null&&e!==void 0?e:""),t}function gX(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:16,t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:16,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;const i=document.createElement("canvas");i.width=e,i.height=t;const o=i.getContext("2d");o==null||o.fillRect(0,0,i.width,i.height),r&&o&&(o.beginPath(),o.arc(e/2,t/2,50,0,Math.PI*2,!0),o.closePath(),o.fillStyle="grey",o.fill());const s=i.captureStream(),[a]=s.getTracks();if(!a)throw Error("Could not get empty media stream video track");return a.enabled=n,a}let Lw;function SM(){if(!Lw){const e=new AudioContext,t=e.createOscillator(),n=e.createGain();n.gain.setValueAtTime(0,0);const r=e.createMediaStreamDestination();if(t.connect(n),n.connect(r),t.start(),[Lw]=r.stream.getAudioTracks(),!Lw)throw Error("Could not get empty media stream audio track");Lw.enabled=!1}return Lw.clone()}class Ju{get isResolved(){return this._isResolved}constructor(t,n){this._isResolved=!1,this.onFinally=n,this.promise=new Promise((r,i)=>ye(this,void 0,void 0,function*(){this.resolve=r,this.reject=i,t&&(yield t(r,i))})).finally(()=>{var r;this._isResolved=!0,(r=this.onFinally)===null||r===void 0||r.call(this)})}}function H8e(e){return I8e.includes(e)}function Bp(e){if(typeof e=="string"||typeof e=="number")return e;if(Array.isArray(e))return e[0];if(e.exact!==void 0)return Array.isArray(e.exact)?e.exact[0]:e.exact;if(e.ideal!==void 0)return Array.isArray(e.ideal)?e.ideal[0]:e.ideal;throw Error("could not unwrap constraint")}function z8e(e){return e.startsWith("http")?e.replace(/^(http)/,"ws"):e}function JF(e){return e.startsWith("ws")?e.replace(/^(ws)/,"http"):e}function V8e(e,t){return e.segments.map(n=>{let{id:r,text:i,language:o,startTime:s,endTime:a,final:c}=n;var l;const u=(l=t.get(r))!==null&&l!==void 0?l:Date.now(),d=Date.now();return c?t.delete(r):t.set(r,u),{id:r,text:i,startTime:Number.parseInt(s.toString()),endTime:Number.parseInt(a.toString()),final:c,language:o,firstReceivedTime:u,lastReceivedTime:d}})}function W8e(e){const{id:t,timestamp:n,message:r,editTimestamp:i}=e;return{id:t,timestamp:Number.parseInt(n.toString()),editTimestamp:i?Number.parseInt(i.toString()):void 0,message:r}}function vX(e){switch(e.reason){case xn.LeaveRequest:return e.context;case xn.Cancelled:return Vl.CLIENT_INITIATED;case xn.NotAllowed:return Vl.USER_REJECTED;case xn.ServerUnreachable:return Vl.JOIN_FAILURE;default:return Vl.UNKNOWN_REASON}}function Cx(e){return e!==void 0?Number(e):void 0}function ag(e){return e!==void 0?BigInt(e):void 0}function Mg(e){return!!e&&!(e instanceof MediaStreamTrack)&&e.isLocal}function sd(e){return!!e&&e.kind==Re.Kind.Audio}function Im(e){return!!e&&e.kind==Re.Kind.Video}function Lh(e){return Mg(e)&&Im(e)}function rf(e){return Mg(e)&&sd(e)}function ZF(e){return!!e&&!e.isLocal}function q8e(e){return!!e&&!e.isLocal}function _M(e){return ZF(e)&&Im(e)}function G8e(e){return e.isLocal}function K8e(e,t){const n=[];let r=new TextEncoder().encode(e);for(;r.length>t;){let i=t;for(;i>0;){const o=r[i];if(o!==void 0&&(o&192)!==128)break;i--}n.push(r.slice(0,i)),r=r.slice(i)}return r.length>0&&n.push(r),n}function ipe(e,t,n){var r,i,o,s;const{optionsWithoutProcessor:a,audioProcessor:c,videoProcessor:l}=ape(e??{}),u=t==null?void 0:t.processor,d=n==null?void 0:n.processor,f=a??{};return f.audio===!0&&(f.audio={}),f.video===!0&&(f.video={}),f.audio&&(ej(f.audio,t),(r=(o=f.audio).deviceId)!==null&&r!==void 0||(o.deviceId={ideal:"default"}),(c||u)&&(f.audio.processor=c??u)),f.video&&(ej(f.video,n),(i=(s=f.video).deviceId)!==null&&i!==void 0||(s.deviceId={ideal:"default"}),(l||d)&&(f.video.processor=l??d)),f}function ej(e,t){return Object.keys(t).forEach(n=>{e[n]===void 0&&(e[n]=t[n])}),e}function s$(e){var t,n,r,i;const o={};if(e.video)if(typeof e.video=="object"){const s={},a=s,c=e.video;Object.keys(c).forEach(l=>{switch(l){case"resolution":ej(a,c.resolution);break;default:a[l]=c[l]}}),o.video=s,(t=(r=o.video).deviceId)!==null&&t!==void 0||(r.deviceId={ideal:"default"})}else o.video=e.video?{deviceId:{ideal:"default"}}:!1;else o.video=!1;return e.audio?typeof e.audio=="object"?(o.audio=e.audio,(n=(i=o.audio).deviceId)!==null&&n!==void 0||(i.deviceId={ideal:"default"})):o.audio={deviceId:{ideal:"default"}}:o.audio=!1,o}function ope(e){return ye(this,arguments,void 0,function(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:200;return(function*(){const r=spe();if(r){const i=r.createAnalyser();i.fftSize=2048;const o=i.frequencyBinCount,s=new Uint8Array(o);r.createMediaStreamSource(new MediaStream([t.mediaStreamTrack])).connect(i),yield ka(n),i.getByteTimeDomainData(s);const c=s.some(l=>l!==128&&l!==0);return r.close(),!c}return!1})()})}function spe(){var e;const t=typeof window<"u"&&(window.AudioContext||window.webkitAudioContext);if(t){const n=new t({latencyHint:"interactive"});if(n.state==="suspended"&&typeof window<"u"&&(!((e=window.document)===null||e===void 0)&&e.body)){const r=()=>ye(this,void 0,void 0,function*(){var i;try{n.state==="suspended"&&(yield n.resume())}catch(o){console.warn("Error trying to auto-resume audio context",o)}(i=window.document.body)===null||i===void 0||i.removeEventListener("click",r)});window.document.body.addEventListener("click",r)}return n}}function Y8e(e){return e==="audioinput"?Re.Source.Microphone:e==="videoinput"?Re.Source.Camera:Re.Source.Unknown}function tj(e){return e===Re.Source.Microphone?"audioinput":e===Re.Source.Camera?"videoinput":void 0}function Q8e(e){var t,n;let r=(t=e.video)!==null&&t!==void 0?t:!0;return e.resolution&&e.resolution.width>0&&e.resolution.height>0&&(r=typeof r=="boolean"?{}:r,av()?r=Object.assign(Object.assign({},r),{width:{max:e.resolution.width},height:{max:e.resolution.height},frameRate:e.resolution.frameRate}):r=Object.assign(Object.assign({},r),{width:{ideal:e.resolution.width},height:{ideal:e.resolution.height},frameRate:e.resolution.frameRate})),{audio:(n=e.audio)!==null&&n!==void 0?n:!1,video:r,controller:e.controller,selfBrowserSurface:e.selfBrowserSurface,surfaceSwitching:e.surfaceSwitching,systemAudio:e.systemAudio,preferCurrentTab:e.preferCurrentTab}}function zS(e){return e.split("/")[1].toLowerCase()}function X8e(e){const t=[];return e.forEach(n=>{n.track!==void 0&&t.push(new e$({cid:n.track.mediaStreamID,track:n.trackInfo}))}),t}function yn(e){return"mediaStreamTrack"in e?{trackID:e.sid,source:e.source,muted:e.isMuted,enabled:e.mediaStreamTrack.enabled,kind:e.kind,streamID:e.mediaStreamID,streamTrackID:e.mediaStreamTrack.id}:{trackID:e.trackSid,enabled:e.isEnabled,muted:e.isMuted,trackInfo:Object.assign({mimeType:e.mimeType,name:e.trackName,encrypted:e.isEncrypted,kind:e.kind,source:e.source},e.track?yn(e.track):{})}}function J8e(){return typeof RTCRtpReceiver<"u"&&"getSynchronizationSources"in RTCRtpReceiver}function Z8e(e,t){var n;e===void 0&&(e={}),t===void 0&&(t={});const r=[...Object.keys(t),...Object.keys(e)],i={};for(const o of r)e[o]!==t[o]&&(i[o]=(n=t[o])!==null&&n!==void 0?n:"");return i}function ape(e){const t=Object.assign({},e);let n,r;return typeof t.audio=="object"&&t.audio.processor&&(n=t.audio.processor,t.audio=Object.assign(Object.assign({},t.audio),{processor:void 0})),typeof t.video=="object"&&t.video.processor&&(r=t.video.processor,t.video=Object.assign(Object.assign({},t.video),{processor:void 0})),{audioProcessor:n,videoProcessor:r,optionsWithoutProcessor:S8e(t)}}function eFe(e){switch(e){case Zi.CAMERA:return Re.Source.Camera;case Zi.MICROPHONE:return Re.Source.Microphone;case Zi.SCREEN_SHARE:return Re.Source.ScreenShare;case Zi.SCREEN_SHARE_AUDIO:return Re.Source.ScreenShareAudio;default:return Re.Source.Unknown}}function yX(e,t){return e.width*e.height<t.width*t.height}function tFe(e,t){var n;return(n=e.layers)===null||n===void 0?void 0:n.find(r=>r.quality===t)}class nFe extends Pd.EventEmitter{constructor(t){super(),this.onWorkerMessage=n=>{var r,i;const{kind:o,data:s}=n.data;switch(o){case"error":gn.error(s.error.message),this.emit(Sp.EncryptionError,s.error);break;case"initAck":s.enabled&&this.keyProvider.getKeys().forEach(a=>{this.postKey(a)});break;case"enable":if(s.enabled&&this.keyProvider.getKeys().forEach(a=>{this.postKey(a)}),this.encryptionEnabled!==s.enabled&&s.participantIdentity===((r=this.room)===null||r===void 0?void 0:r.localParticipant.identity))this.emit(Sp.ParticipantEncryptionStatusChanged,s.enabled,this.room.localParticipant),this.encryptionEnabled=s.enabled;else if(s.participantIdentity){const a=(i=this.room)===null||i===void 0?void 0:i.getParticipantByIdentity(s.participantIdentity);if(!a)throw TypeError("couldn't set encryption status, participant not found".concat(s.participantIdentity));this.emit(Sp.ParticipantEncryptionStatusChanged,s.enabled,a)}break;case"ratchetKey":this.keyProvider.emit(Up.KeyRatcheted,s.ratchetResult,s.participantIdentity,s.keyIndex);break}},this.onWorkerError=n=>{gn.error("e2ee worker encountered an error:",{error:n.error}),this.emit(Sp.EncryptionError,n.error)},this.keyProvider=t.keyProvider,this.worker=t.worker,this.encryptionEnabled=!1}setup(t){if(!y8e())throw new i$("tried to setup end-to-end encryption on an unsupported browser");if(gn.info("setting up e2ee"),t!==this.room){this.room=t,this.setupEventListeners(t,this.keyProvider);const n={kind:"init",data:{keyProviderOptions:this.keyProvider.getOptions(),loglevel:n8e.getLevel()}};this.worker&&(gn.info("initializing worker",{worker:this.worker}),this.worker.onmessage=this.onWorkerMessage,this.worker.onerror=this.onWorkerError,this.worker.postMessage(n))}}setParticipantCryptorEnabled(t,n){gn.debug("set e2ee to ".concat(t," for participant ").concat(n)),this.postEnable(t,n)}setSifTrailer(t){!t||t.length===0?gn.warn("ignoring server sent trailer as it's empty"):this.postSifTrailer(t)}setupEngine(t){t.on(ct.RTPVideoMapUpdate,n=>{this.postRTPMap(n)})}setupEventListeners(t,n){t.on(Ne.TrackPublished,(r,i)=>this.setParticipantCryptorEnabled(r.trackInfo.encryption!==Za.NONE,i.identity)),t.on(Ne.ConnectionStateChanged,r=>{r===Bn.Connected&&t.remoteParticipants.forEach(i=>{i.trackPublications.forEach(o=>{this.setParticipantCryptorEnabled(o.trackInfo.encryption!==Za.NONE,i.identity)})})}).on(Ne.TrackUnsubscribed,(r,i,o)=>{var s;const a={kind:"removeTransform",data:{participantIdentity:o.identity,trackId:r.mediaStreamID}};(s=this.worker)===null||s===void 0||s.postMessage(a)}).on(Ne.TrackSubscribed,(r,i,o)=>{this.setupE2EEReceiver(r,o.identity,i.trackInfo)}).on(Ne.SignalConnected,()=>{if(!this.room)throw new TypeError("expected room to be present on signal connect");n.getKeys().forEach(r=>{this.postKey(r)}),this.setParticipantCryptorEnabled(this.room.localParticipant.isE2EEEnabled,this.room.localParticipant.identity)}),t.localParticipant.on(je.LocalSenderCreated,(r,i)=>ye(this,void 0,void 0,function*(){this.setupE2EESender(i,r)})),t.localParticipant.on(je.LocalTrackPublished,r=>{if(!Im(r.track)||!J_())return;const i={kind:"updateCodec",data:{trackId:r.track.mediaStreamID,codec:zS(r.trackInfo.codecs[0].mimeType),participantIdentity:this.room.localParticipant.identity}};this.worker.postMessage(i)}),n.on(Up.SetKey,r=>this.postKey(r)).on(Up.RatchetRequest,(r,i)=>this.postRatchetRequest(r,i))}postRatchetRequest(t,n){if(!this.worker)throw Error("could not ratchet key, worker is missing");const r={kind:"ratchetRequest",data:{participantIdentity:t,keyIndex:n}};this.worker.postMessage(r)}postKey(t){let{key:n,participantIdentity:r,keyIndex:i}=t;var o;if(!this.worker)throw Error("could not set key, worker is missing");const s={kind:"setKey",data:{participantIdentity:r,isPublisher:r===((o=this.room)===null||o===void 0?void 0:o.localParticipant.identity),key:n,keyIndex:i}};this.worker.postMessage(s)}postEnable(t,n){if(this.worker){const r={kind:"enable",data:{enabled:t,participantIdentity:n}};this.worker.postMessage(r)}else throw new ReferenceError("failed to enable e2ee, worker is not ready")}postRTPMap(t){var n;if(!this.worker)throw TypeError("could not post rtp map, worker is missing");if(!(!((n=this.room)===null||n===void 0)&&n.localParticipant.identity))throw TypeError("could not post rtp map, local participant identity is missing");const r={kind:"setRTPMap",data:{map:t,participantIdentity:this.room.localParticipant.identity}};this.worker.postMessage(r)}postSifTrailer(t){if(!this.worker)throw Error("could not post SIF trailer, worker is missing");const n={kind:"setSifTrailer",data:{trailer:t}};this.worker.postMessage(n)}setupE2EEReceiver(t,n,r){if(t.receiver){if(!(r!=null&&r.mimeType)||r.mimeType==="")throw new TypeError("MimeType missing from trackInfo, cannot set up E2EE cryptor");this.handleReceiver(t.receiver,t.mediaStreamID,n,t.kind==="video"?zS(r.mimeType):void 0)}}setupE2EESender(t,n){if(!Mg(t)||!n){n||gn.warn("early return because sender is not ready");return}this.handleSender(n,t.mediaStreamID,void 0)}handleReceiver(t,n,r,i){return ye(this,void 0,void 0,function*(){if(this.worker){if(VF()){const o={kind:"decode",participantIdentity:r,trackId:n,codec:i};t.transform=new RTCRtpScriptTransform(this.worker,o)}else{if(Mw in t&&i){const c={kind:"updateCodec",data:{trackId:n,codec:i,participantIdentity:r}};this.worker.postMessage(c);return}let o=t.writableStream,s=t.readableStream;if(!o||!s){const c=t.createEncodedStreams();t.writableStream=c.writable,o=c.writable,t.readableStream=c.readable,s=c.readable}const a={kind:"decode",data:{readableStream:s,writableStream:o,trackId:n,codec:i,participantIdentity:r,isReuse:Mw in t}};this.worker.postMessage(a,[s,o])}t[Mw]=!0}})}handleSender(t,n,r){var i;if(!(Mw in t||!this.worker)){if(!(!((i=this.room)===null||i===void 0)&&i.localParticipant.identity)||this.room.localParticipant.identity==="")throw TypeError("local identity needs to be known in order to set up encrypted sender");if(VF()){gn.info("initialize script transform");const o={kind:"encode",participantIdentity:this.room.localParticipant.identity,trackId:n,codec:r};t.transform=new RTCRtpScriptTransform(this.worker,o)}else{gn.info("initialize encoded streams");const o=t.createEncodedStreams(),s={kind:"encode",data:{readableStream:o.readable,writableStream:o.writable,codec:r,trackId:n,participantIdentity:this.room.localParticipant.identity,isReuse:!1}};this.worker.postMessage(s,[o.readable,o.writable])}t[Mw]=!0}}}const CM="default";class Lo{constructor(){this._previousDevices=[]}static getInstance(){return this.instance===void 0&&(this.instance=new Lo),this.instance}get previousDevices(){return this._previousDevices}getDevices(t){return ye(this,arguments,void 0,function(n){var r=this;let i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return(function*(){var o;if(((o=Lo.userMediaPromiseMap)===null||o===void 0?void 0:o.size)>0){gn.debug("awaiting getUserMedia promise");try{n?yield Lo.userMediaPromiseMap.get(n):yield Promise.all(Lo.userMediaPromiseMap.values())}catch{gn.warn("error waiting for media permissons")}}let s=yield navigator.mediaDevices.enumerateDevices();if(i&&!(av()&&r.hasDeviceInUse(n))&&(s.filter(c=>c.kind===n).length===0||s.some(c=>{const l=c.label==="",u=n?c.kind===n:!0;return l&&u}))){const c={video:n!=="audioinput"&&n!=="audiooutput",audio:n!=="videoinput"&&{deviceId:{ideal:"default"}}},l=yield navigator.mediaDevices.getUserMedia(c);s=yield navigator.mediaDevices.enumerateDevices(),l.getTracks().forEach(u=>{u.stop()})}return r._previousDevices=s,n&&(s=s.filter(a=>a.kind===n)),s})()})}normalizeDeviceId(t,n,r){return ye(this,void 0,void 0,function*(){if(n!==CM)return n;const i=yield this.getDevices(t),o=i.find(a=>a.deviceId===CM);if(!o){gn.warn("could not reliably determine default device");return}const s=i.find(a=>a.deviceId!==CM&&a.groupId===(r??o.groupId));if(!s){gn.warn("could not reliably determine default device");return}return s==null?void 0:s.deviceId})}hasDeviceInUse(t){return t?Lo.userMediaPromiseMap.has(t):Lo.userMediaPromiseMap.size>0}}Lo.mediaDeviceKinds=["audioinput","audiooutput","videoinput"];Lo.userMediaPromiseMap=new Map;var VS;(function(e){e[e.WAITING=0]="WAITING",e[e.RUNNING=1]="RUNNING",e[e.COMPLETED=2]="COMPLETED"})(VS||(VS={}));class rFe{constructor(){this.pendingTasks=new Map,this.taskMutex=new Qs,this.nextTaskIndex=0}run(t){return ye(this,void 0,void 0,function*(){const n={id:this.nextTaskIndex++,enqueuedAt:Date.now(),status:VS.WAITING};this.pendingTasks.set(n.id,n);const r=yield this.taskMutex.lock();try{return n.executedAt=Date.now(),n.status=VS.RUNNING,yield t()}finally{n.status=VS.COMPLETED,this.pendingTasks.delete(n.id),r()}})}flush(){return ye(this,void 0,void 0,function*(){return this.run(()=>ye(this,void 0,void 0,function*(){}))})}snapshot(){return Array.from(this.pendingTasks.values())}}function iFe(e,t){const n=new URL(z8e(e));return t.forEach((r,i)=>{n.searchParams.set(i,r)}),cpe(n,"rtc")}function oFe(e){const t=new URL(JF(e));return cpe(t,"validate")}function sFe(e){return e.endsWith("/")?e:"".concat(e,"/")}function cpe(e,t){return e.pathname="".concat(sFe(e.pathname)).concat(t),e.toString()}const aFe=["syncState","trickle","offer","answer","simulate","leave"];function cFe(e){const t=aFe.indexOf(e.case)>=0;return gn.trace("request allowed to bypass queue:",{canPass:t,req:e}),t}var Lr;(function(e){e[e.CONNECTING=0]="CONNECTING",e[e.CONNECTED=1]="CONNECTED",e[e.RECONNECTING=2]="RECONNECTING",e[e.DISCONNECTING=3]="DISCONNECTING",e[e.DISCONNECTED=4]="DISCONNECTED"})(Lr||(Lr={}));class a${get currentState(){return this.state}get isDisconnected(){return this.state===Lr.DISCONNECTING||this.state===Lr.DISCONNECTED}get isEstablishingConnection(){return this.state===Lr.CONNECTING||this.state===Lr.RECONNECTING}getNextRequestId(){return this._requestId+=1,this._requestId}constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};var r;this.rtt=0,this.state=Lr.DISCONNECTED,this.log=gn,this._requestId=0,this.resetCallbacks=()=>{this.onAnswer=void 0,this.onLeave=void 0,this.onLocalTrackPublished=void 0,this.onLocalTrackUnpublished=void 0,this.onNegotiateRequested=void 0,this.onOffer=void 0,this.onRemoteMuteChanged=void 0,this.onSubscribedQualityUpdate=void 0,this.onTokenRefresh=void 0,this.onTrickle=void 0,this.onClose=void 0},this.log=Zf((r=n.loggerName)!==null&&r!==void 0?r:tu.Signal),this.loggerContextCb=n.loggerContextCb,this.useJSON=t,this.requestQueue=new rFe,this.queuedRequests=[],this.closingLock=new Qs,this.connectionLock=new Qs,this.state=Lr.DISCONNECTED}get logContext(){var t,n;return(n=(t=this.loggerContextCb)===null||t===void 0?void 0:t.call(this))!==null&&n!==void 0?n:{}}join(t,n,r,i){return ye(this,void 0,void 0,function*(){return this.state=Lr.CONNECTING,this.options=r,yield this.connect(t,n,r,i)})}reconnect(t,n,r,i){return ye(this,void 0,void 0,function*(){if(!this.options){this.log.warn("attempted to reconnect without signal options being set, ignoring",this.logContext);return}return this.state=Lr.RECONNECTING,this.clearPingInterval(),yield this.connect(t,n,Object.assign(Object.assign({},this.options),{reconnect:!0,sid:r,reconnectReason:i}))})}connect(t,n,r,i){this.connectOptions=r;const o=$8e(),s=lFe(n,o,r),a=iFe(t,s),c=oFe(a);return new Promise((l,u)=>ye(this,void 0,void 0,function*(){const d=yield this.connectionLock.lock();try{const f=()=>ye(this,void 0,void 0,function*(){this.close(),clearTimeout(p),u(new mr("room connection has been cancelled (signal)",xn.Cancelled))}),p=setTimeout(()=>{this.close(),u(new mr("room connection has timed out (signal)",xn.ServerUnreachable))},r.websocketTimeout);i!=null&&i.aborted&&f(),i==null||i.addEventListener("abort",f);const g=new URL(a);g.searchParams.has("access_token")&&g.searchParams.set("access_token","<redacted>"),this.log.debug("connecting to ".concat(g),Object.assign({reconnect:r.reconnect,reconnectReason:r.reconnectReason},this.logContext)),this.ws&&(yield this.close(!1)),this.ws=new WebSocket(a),this.ws.binaryType="arraybuffer",this.ws.onopen=()=>{clearTimeout(p)},this.ws.onerror=m=>ye(this,void 0,void 0,function*(){if(this.state!==Lr.CONNECTED){this.state=Lr.DISCONNECTED,clearTimeout(p);try{const y=yield fetch(c);if(y.status.toFixed(0).startsWith("4")){const v=yield y.text();u(new mr(v,xn.NotAllowed,y.status))}else u(new mr("Encountered unknown websocket error during connection: ".concat(m.toString()),xn.InternalError,y.status))}catch(y){u(new mr(y instanceof Error?y.message:"server was not reachable",xn.ServerUnreachable))}return}this.handleWSError(m)}),this.ws.onmessage=m=>ye(this,void 0,void 0,function*(){var y,v,w;let S;if(typeof m.data=="string"){const C=JSON.parse(m.data);S=YQ.fromJson(C,{ignoreUnknownFields:!0})}else if(m.data instanceof ArrayBuffer)S=YQ.fromBinary(new Uint8Array(m.data));else{this.log.error("could not decode websocket message: ".concat(typeof m.data),this.logContext);return}if(this.state!==Lr.CONNECTED){let C=!1;if(((y=S.message)===null||y===void 0?void 0:y.case)==="join"?(this.state=Lr.CONNECTED,i==null||i.removeEventListener("abort",f),this.pingTimeoutDuration=S.message.value.pingTimeout,this.pingIntervalDuration=S.message.value.pingInterval,this.pingTimeoutDuration&&this.pingTimeoutDuration>0&&(this.log.debug("ping config",Object.assign(Object.assign({},this.logContext),{timeout:this.pingTimeoutDuration,interval:this.pingIntervalDuration})),this.startPingInterval()),l(S.message.value)):this.state===Lr.RECONNECTING&&S.message.case!=="leave"?(this.state=Lr.CONNECTED,i==null||i.removeEventListener("abort",f),this.startPingInterval(),((v=S.message)===null||v===void 0?void 0:v.case)==="reconnect"?l(S.message.value):(this.log.debug("declaring signal reconnected without reconnect response received",this.logContext),l(void 0),C=!0)):this.isEstablishingConnection&&S.message.case==="leave"?u(new mr("Received leave request while trying to (re)connect",xn.LeaveRequest,void 0,S.message.value.reason)):r.re
420connect||u(new mr("did not receive join response, got ".concat((w=S.message)===null||w===void 0?void 0:w.case," instead"),xn.InternalError)),!C)return}this.signalLatency&&(yield ka(this.signalLatency)),this.handleSignalResponse(S)}),this.ws.onclose=m=>{this.isEstablishingConnection&&u(new mr("Websocket got closed during a (re)connection attempt",xn.InternalError)),this.log.warn("websocket closed",Object.assign(Object.assign({},this.logContext),{reason:m.reason,code:m.code,wasClean:m.wasClean,state:this.state})),this.handleOnClose(m.reason)}}finally{d()}}))}close(){return ye(this,arguments,void 0,function(){var t=this;let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;return(function*(){const r=yield t.closingLock.lock();try{if(t.clearPingInterval(),n&&(t.state=Lr.DISCONNECTING),t.ws){t.ws.onmessage=null,t.ws.onopen=null,t.ws.onclose=null;const i=new Promise(o=>{t.ws?t.ws.onclose=()=>{o()}:o()});t.ws.readyState<t.ws.CLOSING&&(t.ws.close(),yield Promise.race([i,ka(250)])),t.ws=void 0}}finally{n&&(t.state=Lr.DISCONNECTED),r()}})()})}sendOffer(t,n){this.log.debug("sending offer",Object.assign(Object.assign({},this.logContext),{offerSdp:t.sdp})),this.sendRequest({case:"offer",value:YA(t,n)})}sendAnswer(t,n){return this.log.debug("sending answer",Object.assign(Object.assign({},this.logContext),{answerSdp:t.sdp})),this.sendRequest({case:"answer",value:YA(t,n)})}sendIceCandidate(t,n){return this.log.debug("sending ice candidate",Object.assign(Object.assign({},this.logContext),{candidate:t})),this.sendRequest({case:"trickle",value:new JB({candidateInit:JSON.stringify(t),target:n})})}sendMuteTrack(t,n){return this.sendRequest({case:"mute",value:new ZB({sid:t,muted:n})})}sendAddTrack(t){return this.sendRequest({case:"addTrack",value:t})}sendUpdateLocalMetadata(t,n){return ye(this,arguments,void 0,function(r,i){var o=this;let s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return(function*(){const a=o.getNextRequestId();return yield o.sendRequest({case:"updateMetadata",value:new mhe({requestId:a,metadata:r,name:i,attributes:s})}),a})()})}sendUpdateTrackSettings(t){this.sendRequest({case:"trackSetting",value:t})}sendUpdateSubscription(t){return this.sendRequest({case:"subscription",value:t})}sendSyncState(t){return this.sendRequest({case:"syncState",value:t})}sendUpdateVideoLayers(t,n){return this.sendRequest({case:"updateLayers",value:new phe({trackSid:t,layers:n})})}sendUpdateSubscriptionPermissions(t,n){return this.sendRequest({case:"subscriptionPermission",value:new yhe({allParticipants:t,trackPermissions:n})})}sendSimulateScenario(t){return this.sendRequest({case:"simulate",value:t})}sendPing(){return Promise.all([this.sendRequest({case:"ping",value:ri.parse(Date.now())}),this.sendRequest({case:"pingReq",value:new _he({timestamp:ri.parse(Date.now()),rtt:ri.parse(this.rtt)})})])}sendUpdateLocalAudioTrack(t,n){return this.sendRequest({case:"updateAudioTrack",value:new hhe({trackSid:t,features:n})})}sendLeave(){return this.sendRequest({case:"leave",value:new nP({reason:Vl.CLIENT_INITIATED,action:ky.DISCONNECT})})}sendRequest(t){return ye(this,arguments,void 0,function(n){var r=this;let i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return(function*(){if(!i&&!cFe(n)&&r.state===Lr.RECONNECTING){r.queuedRequests.push(()=>ye(r,void 0,void 0,function*(){yield this.sendRequest(n,!0)}));return}if(i||(yield r.requestQueue.flush()),r.signalLatency&&(yield ka(r.signalLatency)),r.isDisconnected){r.log.debug("skipping signal request (type: ".concat(n.case,") - SignalClient disconnected"));return}if(!r.ws||r.ws.readyState!==r.ws.OPEN){r.log.error("cannot send signal request before connected, type: ".concat(n==null?void 0:n.case),r.logContext);return}const s=new PLe({message:n});try{r.useJSON?r.ws.send(s.toJsonString()):r.ws.send(s.toBinary())}catch(a){r.log.error("error sending signal message",Object.assign(Object.assign({},r.logContext),{error:a}))}})()})}handleSignalResponse(t){var n,r;const i=t.message;if(i==null){this.log.debug("received unsupported message",this.logContext);return}let o=!1;if(i.case==="answer"){const s=bX(i.value);this.onAnswer&&this.onAnswer(s,i.value.id)}else if(i.case==="offer"){const s=bX(i.value);this.onOffer&&this.onOffer(s,i.value.id)}else if(i.case==="trickle"){const s=JSON.parse(i.value.candidateInit);this.onTrickle&&this.onTrickle(s,i.value.target)}else i.case==="update"?this.onParticipantUpdate&&this.onParticipantUpdate((n=i.value.participants)!==null&&n!==void 0?n:[]):i.case==="trackPublished"?this.onLocalTrackPublished&&this.onLocalTrackPublished(i.value):i.case==="speakersChanged"?this.onSpeakersChanged&&this.onSpeakersChanged((r=i.value.speakers)!==null&&r!==void 0?r:[]):i.case==="leave"?this.onLeave&&this.onLeave(i.value):i.case==="mute"?this.onRemoteMuteChanged&&this.onRemoteMuteChanged(i.value.sid,i.value.muted):i.case==="roomUpdate"?this.onRoomUpdate&&i.value.room&&this.onRoomUpdate(i.value.room):i.case==="connectionQuality"?this.onConnectionQuality&&this.onConnectionQuality(i.value):i.case==="streamStateUpdate"?this.onStreamStateUpdate&&this.onStreamStateUpdate(i.value):i.case==="subscribedQualityUpdate"?this.onSubscribedQualityUpdate&&this.onSubscribedQualityUpdate(i.value):i.case==="subscriptionPermissionUpdate"?this.onSubscriptionPermissionUpdate&&this.onSubscriptionPermissionUpdate(i.value):i.case==="refreshToken"?this.onTokenRefresh&&this.onTokenRefresh(i.value):i.case==="trackUnpublished"?this.onLocalTrackUnpublished&&this.onLocalTrackUnpublished(i.value):i.case==="subscriptionResponse"?this.onSubscriptionError&&this.onSubscriptionError(i.value):i.case==="pong"||(i.case==="pongResp"?(this.rtt=Date.now()-Number.parseInt(i.value.lastPingTimestamp.toString()),this.resetPingTimeout(),o=!0):i.case==="requestResponse"?this.onRequestResponse&&this.onRequestResponse(i.value):i.case==="trackSubscribed"?this.onLocalTrackSubscribed&&this.onLocalTrackSubscribed(i.value.trackSid):i.case==="roomMoved"?(this.onTokenRefresh&&this.onTokenRefresh(i.value.token),this.onRoomMoved&&this.onRoomMoved(i.value)):this.log.debug("unsupported message",Object.assign(Object.assign({},this.logContext),{msgCase:i.case})));o||this.resetPingTimeout()}setReconnected(){for(;this.queuedRequests.length>0;){const t=this.queuedRequests.shift();t&&this.requestQueue.run(t)}}handleOnClose(t){return ye(this,void 0,void 0,function*(){if(this.state===Lr.DISCONNECTED)return;const n=this.onClose;yield this.close(),this.log.debug("websocket connection closed: ".concat(t),Object.assign(Object.assign({},this.logContext),{reason:t})),n&&n(t)})}handleWSError(t){this.log.error("websocket error",Object.assign(Object.assign({},this.logContext),{error:t}))}resetPingTimeout(){if(this.clearPingTimeout(),!this.pingTimeoutDuration){this.log.warn("ping timeout duration not set",this.logContext);return}this.pingTimeout=os.setTimeout(()=>{this.log.warn("ping timeout triggered. last pong received at: ".concat(new Date(Date.now()-this.pingTimeoutDuration*1e3).toUTCString()),this.logContext),this.handleOnClose("ping timeout")},this.pingTimeoutDuration*1e3)}clearPingTimeout(){this.pingTimeout&&os.clearTimeout(this.pingTimeout)}startPingInterval(){if(this.clearPingInterval(),this.resetPingTimeout(),!this.pingIntervalDuration){this.log.warn("ping interval duration not set",this.logContext);return}this.log.debug("start ping interval",this.logContext),this.pingInterval=os.setInterval(()=>{this.sendPing()},this.pingIntervalDuration*1e3)}clearPingInterval(){this.log.debug("clearing ping interval",this.logContext),this.clearPingTimeout(),this.pingInterval&&os.clearInterval(this.pingInterval)}}function bX(e){const t={type:"offer",sdp:e.sdp};switch(e.type){case"answer":case"offer":case"pranswer":case"rollback":t.type=e.type;break}return t}function YA(e,t){return new ov({sdp:e.sdp,type:e.type,id:t})}function lFe(e,t,n){var r;const i=new URLSearchParams;return i.set("access_token",e),n.reconnect&&(i.set("reconnect","1"),n.sid&&i.set("sid",n.sid)),i.set("auto_subscribe",n.autoSubscribe?"1":"0"),i.set("sdk",md()?"reactnative":"js"),i.set("version",t.version),i.set("protocol",t.protocol.toString()),t.deviceModel&&i.set("device_model",t.deviceModel),t.os&&i.set("os",t.os),t.osVersion&&i.set("os_version",t.osVersion),t.browser&&i.set("browser",t.browser),t.browserVersion&&i.set("browser_version",t.browserVersion),n.adaptiveStream&&i.set("adaptive_stream","1"),n.reconnectReason&&i.set("reconnect_reason",n.reconnectReason.toString()),!((r=navigator.connection)===null||r===void 0)&&r.type&&i.set("network",navigator.connection.type),i}class wX{constructor(){this.buffer=[],this._totalSize=0}push(t){this.buffer.push(t),this._totalSize+=t.data.byteLength}pop(){const t=this.buffer.shift();return t&&(this._totalSize-=t.data.byteLength),t}getAll(){return this.buffer.slice()}popToSequence(t){for(;this.buffer.length>0&&this.buffer[0].sequence<=t;)this.pop()}alignBufferedAmount(t){for(;this.buffer.length>0;){const n=this.buffer[0];if(this._totalSize-n.data.byteLength<=t)break;this.pop()}}get length(){return this.buffer.length}}class uFe{constructor(t){this._map=new Map,this._lastCleanup=0,this.ttl=t}set(t,n){const r=Date.now();r-this._lastCleanup>this.ttl/2&&this.cleanup();const i=r+this.ttl;return this._map.set(t,{value:n,expiresAt:i}),this}get(t){const n=this._map.get(t);if(n){if(n.expiresAt<Date.now()){this._map.delete(t);return}return n.value}}has(t){const n=this._map.get(t);return n?n.expiresAt<Date.now()?(this._map.delete(t),!1):!0:!1}delete(t){return this._map.delete(t)}clear(){this._map.clear()}cleanup(){const t=Date.now();for(const[n,r]of this._map.entries())r.expiresAt<t&&this._map.delete(n);this._lastCleanup=t}get size(){return this.cleanup(),this._map.size}forEach(t){this.cleanup();for(const[n,r]of this._map.entries())r.expiresAt>=Date.now()&&t(r.value,n,this.asValueMap())}map(t){this.cleanup();const n=[],r=this.asValueMap();for(const[i,o]of r.entries())n.push(t(o,i,r));return n}asValueMap(){const t=new Map;for(const[n,r]of this._map.entries())r.expiresAt>=Date.now()&&t.set(n,r.value);return t}}var Cl={},EM={},TM={exports:{}},SX;function c$(){if(SX)return TM.exports;SX=1;var e=TM.exports={v:[{name:"version",reg:/^(\d*)$/}],o:[{name:"origin",reg:/^(\S*) (\d*) (\d*) (\S*) IP(\d) (\S*)/,names:["username","sessionId","sessionVersion","netType","ipVer","address"],format:"%s %s %d %s IP%d %s"}],s:[{name:"name"}],i:[{name:"description"}],u:[{name:"uri"}],e:[{name:"email"}],p:[{name:"phone"}],z:[{name:"timezones"}],r:[{name:"repeats"}],t:[{name:"timing",reg:/^(\d*) (\d*)/,names:["start","stop"],format:"%d %d"}],c:[{name:"connection",reg:/^IN IP(\d) (\S*)/,names:["version","ip"],format:"IN IP%d %s"}],b:[{push:"bandwidth",reg:/^(TIAS|AS|CT|RR|RS):(\d*)/,names:["type","limit"],format:"%s:%s"}],m:[{reg:/^(\w*) (\d*) ([\w/]*)(?: (.*))?/,names:["type","port","protocol","payloads"],format:"%s %d %s %s"}],a:[{push:"rtp",reg:/^rtpmap:(\d*) ([\w\-.]*)(?:\s*\/(\d*)(?:\s*\/(\S*))?)?/,names:["payload","codec","rate","encoding"],format:function(t){return t.encoding?"rtpmap:%d %s/%s/%s":t.rate?"rtpmap:%d %s/%s":"rtpmap:%d %s"}},{push:"fmtp",reg:/^fmtp:(\d*) ([\S| ]*)/,names:["payload","config"],format:"fmtp:%d %s"},{name:"control",reg:/^control:(.*)/,format:"control:%s"},{name:"rtcp",reg:/^rtcp:(\d*)(?: (\S*) IP(\d) (\S*))?/,names:["port","netType","ipVer","address"],format:function(t){return t.address!=null?"rtcp:%d %s IP%d %s":"rtcp:%d"}},{push:"rtcpFbTrrInt",reg:/^rtcp-fb:(\*|\d*) trr-int (\d*)/,names:["payload","value"],format:"rtcp-fb:%s trr-int %d"},{push:"rtcpFb",reg:/^rtcp-fb:(\*|\d*) ([\w-_]*)(?: ([\w-_]*))?/,names:["payload","type","subtype"],format:function(t){return t.subtype!=null?"rtcp-fb:%s %s %s":"rtcp-fb:%s %s"}},{push:"ext",reg:/^extmap:(\d+)(?:\/(\w+))?(?: (urn:ietf:params:rtp-hdrext:encrypt))? (\S
420*)(?: (\S*))?/,names:["value","direction","encrypt-uri","uri","config"],format:function(t){return"extmap:%d"+(t.direction?"/%s":"%v")+(t["encrypt-uri"]?" %s":"%v")+" %s"+(t.config?" %s":"")}},{name:"extmapAllowMixed",reg:/^(extmap-allow-mixed)/},{push:"crypto",reg:/^crypto:(\d*) ([\w_]*) (\S*)(?: (\S*))?/,names:["id","suite","config","sessionConfig"],format:function(t){return t.sessionConfig!=null?"crypto:%d %s %s %s":"crypto:%d %s %s"}},{name:"setup",reg:/^setup:(\w*)/,format:"setup:%s"},{name:"connectionType",reg:/^connection:(new|existing)/,format:"connection:%s"},{name:"mid",reg:/^mid:([^\s]*)/,format:"mid:%s"},{name:"msid",reg:/^msid:(.*)/,format:"msid:%s"},{name:"ptime",reg:/^ptime:(\d*(?:\.\d*)*)/,format:"ptime:%d"},{name:"maxptime",reg:/^maxptime:(\d*(?:\.\d*)*)/,format:"maxptime:%d"},{name:"direction",reg:/^(sendrecv|recvonly|sendonly|inactive)/},{name:"icelite",reg:/^(ice-lite)/},{name:"iceUfrag",reg:/^ice-ufrag:(\S*)/,format:"ice-ufrag:%s"},{name:"icePwd",reg:/^ice-pwd:(\S*)/,format:"ice-pwd:%s"},{name:"fingerprint",reg:/^fingerprint:(\S*) (\S*)/,names:["type","hash"],format:"fingerprint:%s %s"},{push:"candidates",reg:/^candidate:(\S*) (\d*) (\S*) (\d*) (\S*) (\d*) typ (\S*)(?: raddr (\S*) rport (\d*))?(?: tcptype (\S*))?(?: generation (\d*))?(?: network-id (\d*))?(?: network-cost (\d*))?/,names:["foundation","component","transport","priority","ip","port","type","raddr","rport","tcptype","generation","network-id","network-cost"],format:function(t){var n="candidate:%s %d %s %d %s %d typ %s";return n+=t.raddr!=null?" raddr %s rport %d":"%v%v",n+=t.tcptype!=null?" tcptype %s":"%v",t.generation!=null&&(n+=" generation %d"),n+=t["network-id"]!=null?" network-id %d":"%v",n+=t["network-cost"]!=null?" network-cost %d":"%v",n}},{name:"endOfCandidates",reg:/^(end-of-candidates)/},{name:"remoteCandidates",reg:/^remote-candidates:(.*)/,format:"remote-candidates:%s"},{name:"iceOptions",reg:/^ice-options:(\S*)/,format:"ice-options:%s"},{push:"ssrcs",reg:/^ssrc:(\d*) ([\w_-]*)(?::(.*))?/,names:["id","attribute","value"],format:function(t){var n="ssrc:%d";return t.attribute!=null&&(n+=" %s",t.value!=null&&(n+=":%s")),n}},{push:"ssrcGroups",reg:/^ssrc-group:([\x21\x23\x24\x25\x26\x27\x2A\x2B\x2D\x2E\w]*) (.*)/,names:["semantics","ssrcs"],format:"ssrc-group:%s %s"},{name:"msidSemantic",reg:/^msid-semantic:\s?(\w*) (\S*)/,names:["semantic","token"],format:"msid-semantic: %s %s"},{push:"groups",reg:/^group:(\w*) (.*)/,names:["type","mids"],format:"group:%s %s"},{name:"rtcpMux",reg:/^(rtcp-mux)/},{name:"rtcpRsize",reg:/^(rtcp-rsize)/},{name:"sctpmap",reg:/^sctpmap:([\w_/]*) (\S*)(?: (\S*))?/,names:["sctpmapNumber","app","maxMessageSize"],format:function(t){return t.maxMessageSize!=null?"sctpmap:%s %s %s":"sctpmap:%s %s"}},{name:"xGoogleFlag",reg:/^x-google-flag:([^\s]*)/,format:"x-google-flag:%s"},{push:"rids",reg:/^rid:([\d\w]+) (\w+)(?: ([\S| ]*))?/,names:["id","direction","params"],format:function(t){return t.params?"rid:%s %s %s":"rid:%s %s"}},{push:"imageattrs",reg:new RegExp("^imageattr:(\\d+|\\*)[\\s\\t]+(send|recv)[\\s\\t]+(\\*|\\[\\S+\\](?:[\\s\\t]+\\[\\S+\\])*)(?:[\\s\\t]+(recv|send)[\\s\\t]+(\\*|\\[\\S+\\](?:[\\s\\t]+\\[\\S+\\])*))?"),names:["pt","dir1","attrs1","dir2","attrs2"],format:function(t){return"imageattr:%s %s %s"+(t.dir2?" %s %s":"")}},{name:"simulcast",reg:new RegExp("^simulcast:(send|recv) ([a-zA-Z0-9\\-_~;,]+)(?:\\s?(send|recv) ([a-zA-Z0-9\\-_~;,]+))?$"),names:["dir1","list1","dir2","list2"],format:function(t){return"simulcast:%s %s"+(t.dir2?" %s %s":"")}},{name:"simulcast_03",reg:/^simulcast:[\s\t]+([\S+\s\t]+)$/,names:["value"],format:"simulcast: %s"},{name:"framerate",reg:/^framerate:(\d+(?:$|\.\d+))/,format:"framerate:%s"},{name:"sourceFilter",reg:/^source-filter: *(excl|incl) (\S*) (IP4|IP6|\*) (\S*) (.*)/,names:["filterMode","netType","addressTypes","destAddress","srcList"],format:"source-filter: %s %s %s %s %s"},{name:"bundleOnly",reg:/^(bundle-only)/},{name:"label",reg:/^label:(.+)/,format:"label:%s"},{name:"sctpPort",reg:/^sctp-port:(\d+)$/,format:"sctp-port:%s"},{name:"maxMessageSize",reg:/^max-message-size:(\d+)$/,format:"max-message-size:%s"}
vendor: 3,629 bytes, line 420
420,{push:"tsRefClocks",reg:/^ts-refclk:([^\s=]*)(?:=(\S*))?/,names:["clksrc","clksrcExt"],format:function(t){return"ts-refclk:%s"+(t.clksrcExt!=null?"=%s":"")}},{name:"mediaClk",reg:/^mediaclk:(?:id=(\S*))? *([^\s=]*)(?:=(\S*))?(?: *rate=(\d+)\/(\d+))?/,names:["id","mediaClockName","mediaClockValue","rateNumerator","rateDenominator"],format:function(t){var n="mediaclk:";return n+=t.id!=null?"id=%s %s":"%v%s",n+=t.mediaClockValue!=null?"=%s":"",n+=t.rateNumerator!=null?" rate=%s":"",n+=t.rateDenominator!=null?"/%s":"",n}},{name:"keywords",reg:/^keywds:(.+)$/,format:"keywds:%s"},{name:"content",reg:/^content:(.+)/,format:"content:%s"},{name:"bfcpFloorCtrl",reg:/^floorctrl:(c-only|s-only|c-s)/,format:"floorctrl:%s"},{name:"bfcpConfId",reg:/^confid:(\d+)/,format:"confid:%s"},{name:"bfcpUserId",reg:/^userid:(\d+)/,format:"userid:%s"},{name:"bfcpFloorId",reg:/^floorid:(.+) (?:m-stream|mstrm):(.+)/,names:["id","mStream"],format:"floorid:%s mstrm:%s"},{push:"invalid",names:["value"]}]};return Object.keys(e).forEach(function(t){var n=e[t];n.forEach(function(r){r.reg||(r.reg=/(.*)/),r.format||(r.format="%s")})}),TM.exports}var _X;function dFe(){return _X||(_X=1,(function(e){var t=function(a){return String(Number(a))===a?Number(a):a},n=function(a,c,l,u){if(u&&!l)c[u]=t(a[1]);else for(var d=0;d<l.length;d+=1)a[d+1]!=null&&(c[l[d]]=t(a[d+1]))},r=function(a,c,l){var u=a.name&&a.names;a.push&&!c[a.push]?c[a.push]=[]:u&&!c[a.name]&&(c[a.name]={});var d=a.push?{}:u?c[a.name]:c;n(l.match(a.reg),d,a.names,a.name),a.push&&c[a.push].push(d)},i=c$(),o=RegExp.prototype.test.bind(/^([a-z])=(.*)/);e.parse=function(a){var c={},l=[],u=c;return a.split(/(\r\n|\r|\n)/).filter(o).forEach(function(d){var f=d[0],p=d.slice(2);f==="m"&&(l.push({rtp:[],fmtp:[]}),u=l[l.length-1]);for(var g=0;g<(i[f]||[]).length;g+=1){var m=i[f][g];if(m.reg.test(p))return r(m,u,p)}}),c.media=l,c};var s=function(a,c){var l=c.split(/=(.+)/,2);return l.length===2?a[l[0]]=t(l[1]):l.length===1&&c.length>1&&(a[l[0]]=void 0),a};e.parseParams=function(a){return a.split(/;\s?/).reduce(s,{})},e.parseFmtpConfig=e.parseParams,e.parsePayloads=function(a){return a.toString().split(" ").map(Number)},e.parseRemoteCandidates=function(a){for(var c=[],l=a.split(" ").map(t),u=0;u<l.length;u+=3)c.push({component:l[u],ip:l[u+1],port:l[u+2]});return c},e.parseImageAttributes=function(a){return a.split(" ").map(function(c){return c.substring(1,c.length-1).split(",").reduce(s,{})})},e.parseSimulcastStreamList=function(a){return a.split(";").map(function(c){return c.split(",").map(function(l){var u,d=!1;return l[0]!=="~"?u=t(l):(u=t(l.substring(1,l.length)),d=!0),{scid:u,paused:d}})})}})(EM)),EM}var kM,CX;function fFe(){if(CX)return kM;CX=1;var e=c$(),t=/%[sdv%]/g,n=function(s){var a=1,c=arguments,l=c.length;return s.replace(t,function(u){if(a>=l)return u;var d=c[a];switch(a+=1,u){case"%%":return"%";case"%s":return String(d);case"%d":return Number(d);case"%v":return""}})},r=function(s,a,c){var l=a.format instanceof Function?a.format(a.push?c:c[a.name]):a.format,u=[s+"="+l];if(a.names)for(var d=0;d<a.names.length;d+=1){var f=a.names[d];a.name?u.push(c[a.name][f]):u.push(c[a.names[d]])}else u.push(c[a.name]);return n.apply(null,u)},i=["v","o","s","i","u","e","p","c","b","t","r","z","a"],o=["i","c","b","a"];return kM=function(s,a){a=a||{},s.version==null&&(s.version=0),s.name==null&&(s.name=" "),s.media.forEach(function(d){d.payloads==null&&(d.payloads="")});var c=a.outerOrder||i,l=a.innerOrder||o,u=[];return c.forEach(function(d){e[d].forEach(function(f){f.name in s&&s[f.name]!=null?u.push(r(d,f,s)):f.push in s&&s[f.push]!=null&&s[f.push].forEac
vendor: 4,365 bytes, lines 420-422
420h(function(p){u.push(r(d,f,p))})})}),s.media.forEach(function(d){u.push(r("m",e.m[0],d)),l.forEach(function(f){e[f].forEach(function(p){p.name in d&&d[p.name]!=null?u.push(r(f,p,d)):p.push in d&&d[p.push]!=null&&d[p.push].forEach(function(g){u.push(r(f,p,g))})})})}),u.join(`\r
421`)+`\r
422`},kM}var EX;function hFe(){if(EX)return Cl;EX=1;var e=dFe(),t=fFe(),n=c$();return Cl.grammar=n,Cl.write=t,Cl.parse=e.parse,Cl.parseParams=e.parseParams,Cl.parseFmtpConfig=e.parseFmtpConfig,Cl.parsePayloads=e.parsePayloads,Cl.parseRemoteCandidates=e.parseRemoteCandidates,Cl.parseImageAttributes=e.parseImageAttributes,Cl.parseSimulcastStreamList=e.parseSimulcastStreamList,Cl}var qh=hFe();function l$(e,t,n){var r,i,o;t===void 0&&(t=50),n===void 0&&(n={});var s=(r=n.isImmediate)!=null&&r,a=(i=n.callback)!=null&&i,c=n.maxWait,l=Date.now(),u=[];function d(){if(c!==void 0){var p=Date.now()-l;if(p+t>=c)return c-p}return t}var f=function(){var p=[].slice.call(arguments),g=this;return new Promise(function(m,y){var v=s&&o===void 0;if(o!==void 0&&clearTimeout(o),o=setTimeout(function(){if(o=void 0,l=Date.now(),!s){var S=e.apply(g,p);a&&a(S),u.forEach(function(C){return(0,C.resolve)(S)}),u=[]}},d()),v){var w=e.apply(g,p);return a&&a(w),m(w)}u.push({resolve:m,reject:y})})};return f.cancel=function(p){o!==void 0&&clearTimeout(o),u.forEach(function(g){return(0,g.reject)(p)}),u=[]},f}const pFe=.7,mFe=20,Iy={NegotiationStarted:"negotiationStarted",NegotiationComplete:"negotiationComplete",RTPVideoPayloadTypes:"rtpVideoPayloadTypes"};class TX extends Pd.EventEmitter{get pc(){return this._pc||(this._pc=this.createPC()),this._pc}constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};var r;super(),this.log=gn,this.ddExtID=0,this.latestOfferId=0,this.pendingCandidates=[],this.restartingIce=!1,this.renegotiate=!1,this.trackBitrates=[],this.remoteStereoMids=[],this.remoteNackMids=[],this.negotiate=l$(i=>ye(this,void 0,void 0,function*(){this.emit(Iy.NegotiationStarted);try{yield this.createAndSendOffer()}catch(o){if(i)i(o);else throw o}}),mFe),this.close=()=>{this._pc&&(this._pc.close(),this._pc.onconnectionstatechange=null,this._pc.oniceconnectionstatechange=null,this._pc.onicegatheringstatechange=null,this._pc.ondatachannel=null,this._pc.onnegotiationneeded=null,this._pc.onsignalingstatechange=null,this._pc.onicecandidate=null,this._pc.ondatachannel=null,this._pc.ontrack=null,this._pc.onconnectionstatechange=null,this._pc.oniceconnectionstatechange=null,this._pc=null)},this.log=Zf((r=n.loggerName)!==null&&r!==void 0?r:tu.PCTransport),this.loggerOptions=n,this.config=t,this._pc=this.createPC(),this.offerLock=new Qs}createPC(){const t=new RTCPeerConnection(this.config);return t.onicecandidate=n=>{var r;n.candidate&&((r=this.onIceCandidate)===null||r===void 0||r.call(this,n.candidate))},t.onicecandidateerror=n=>{var r;(r=this.onIceCandidateError)===null||r===void 0||r.call(this,n)},t.oniceconnectionstatechange=()=>{var n;(n=this.onIceConnectionStateChange)===null||n===void 0||n.call(this,t.iceConnectionState)},t.onsignalingstatechange=()=>{var n;(n=this.onSignalingStatechange)===null||n===void 0||n.call(this,t.signalingState)},t.onconnectionstatechange=()=>{var n;(n=this.onConnectionStateChange)===null||n===void 0||n.call(this,t.connectionState)},t.ondatachannel=n=>{var r;(r=this.onDataChannel)===null||r===void 0||r.call(this,n)},t.ontrack=n=>{var r;(r=this.onTrack)===null||r===void 0||r.call(this,n)},t}get logContext(){var t,n;return Object.assign({},(n=(t=this.loggerOptions).loggerContextCb)===null||n===void 0?void 0:n.call(t))}get isICEConnected(){return this._pc!==null&&(this.pc.iceConnectionState==="connected"||this.pc.iceConnectionState==="completed")}addIceCandidate(t){return ye(this,void 0,void 0,function*(){if(this.pc.remoteDescription&&!this.restartingIce)return this.pc.addIceCandidate(t);this.pendingCandidates.push(t)})}setRemoteDescription(t,n){return ye(this,void 0,void 0,function*(){var r;if(t.type==="answer"&&this.latestOfferId>0&&n>0&&n!==this.latestOfferId)return this.log.warn("ignoring answer for old offer",Object.assign(Object.assign({},this.logContext),{offerId:n,latestOfferId:this.latestOfferId})),!1;let i;if(t.type==="offer"){let{stereoMids:o,nackMids:s}=gFe(t);this.remoteStereoMids=o,this.remoteNackMids=s}else if(t.type==="answer"){const o=qh.parse((r=t.sdp)!==null&&r!==void 0?r:"");
vendor: 12,035 bytes, line 422
422o.media.forEach(s=>{s.type==="audio"&&this.trackBitrates.some(a=>{if(!a.transceiver||s.mid!=a.transceiver.mid)return!1;let c=0;if(s.rtp.some(u=>u.codec.toUpperCase()===a.codec.toUpperCase()?(c=u.payload,!0):!1),c===0)return!0;let l=!1;for(const u of s.fmtp)if(u.payload===c){u.config=u.config.split(";").filter(d=>!d.includes("maxaveragebitrate")).join(";"),a.maxbr>0&&(u.config+=";maxaveragebitrate=".concat(a.maxbr*1e3)),l=!0;break}return l||a.maxbr>0&&s.fmtp.push({payload:c,config:"maxaveragebitrate=".concat(a.maxbr*1e3)}),!0})}),i=qh.write(o)}return yield this.setMungedSDP(t,i,!0),this.pendingCandidates.forEach(o=>{this.pc.addIceCandidate(o)}),this.pendingCandidates=[],this.restartingIce=!1,this.renegotiate?(this.renegotiate=!1,yield this.createAndSendOffer()):t.type==="answer"&&(this.emit(Iy.NegotiationComplete),t.sdp&&qh.parse(t.sdp).media.forEach(s=>{s.type==="video"&&this.emit(Iy.RTPVideoPayloadTypes,s.rtp)})),!0})}createAndSendOffer(t){return ye(this,void 0,void 0,function*(){var n;const r=yield this.offerLock.lock();try{if(this.onOffer===void 0)return;if(t!=null&&t.iceRestart&&(this.log.debug("restarting ICE",this.logContext),this.restartingIce=!0),this._pc&&this._pc.signalingState==="have-local-offer"){const a=this._pc.remoteDescription;if(t!=null&&t.iceRestart&&a)yield this._pc.setRemoteDescription(a);else{this.renegotiate=!0;return}}else if(!this._pc||this._pc.signalingState==="closed"){this.log.warn("could not createOffer with closed peer connection",this.logContext);return}this.log.debug("starting to negotiate",this.logContext);const i=this.latestOfferId+1;this.latestOfferId=i;const o=yield this.pc.createOffer(t);this.log.debug("original offer",Object.assign({sdp:o.sdp},this.logContext));const s=qh.parse((n=o.sdp)!==null&&n!==void 0?n:"");if(s.media.forEach(a=>{xX(a),a.type==="audio"?kX(a,[],[]):a.type==="video"&&this.trackBitrates.some(c=>{if(!a.msid||!c.cid||!a.msid.includes(c.cid))return!1;let l=0;if(a.rtp.some(d=>d.codec.toUpperCase()===c.codec.toUpperCase()?(l=d.payload,!0):!1),l===0||(Wu(c.codec)&&!av()&&this.ensureVideoDDExtensionForSVC(a,s),c.codec!=="av1"))return!0;const u=Math.round(c.maxbr*pFe);for(const d of a.fmtp)if(d.payload===l){d.config.includes("x-google-start-bitrate")||(d.config+=";x-google-start-bitrate=".concat(u));break}return!0})}),this.latestOfferId>i){this.log.warn("latestOfferId mismatch",Object.assign(Object.assign({},this.logContext),{latestOfferId:this.latestOfferId,offerId:i}));return}yield this.setMungedSDP(o,qh.write(s)),this.onOffer(o,this.latestOfferId)}finally{r()}})}createAndSetAnswer(){return ye(this,void 0,void 0,function*(){var t;const n=yield this.pc.createAnswer(),r=qh.parse((t=n.sdp)!==null&&t!==void 0?t:"");return r.media.forEach(i=>{xX(i),i.type==="audio"&&kX(i,this.remoteStereoMids,this.remoteNackMids)}),yield this.setMungedSDP(n,qh.write(r)),n})}createDataChannel(t,n){return this.pc.createDataChannel(t,n)}addTransceiver(t,n){return this.pc.addTransceiver(t,n)}addTrack(t){if(!this._pc)throw new fo("PC closed, cannot add track");return this._pc.addTrack(t)}setTrackCodecBitrate(t){this.trackBitrates.push(t)}setConfiguration(t){var n;if(!this._pc)throw new fo("PC closed, cannot configure");return(n=this._pc)===null||n===void 0?void 0:n.setConfiguration(t)}canRemoveTrack(){var t;return!!(!((t=this._pc)===null||t===void 0)&&t.removeTrack)}removeTrack(t){var n;return(n=this._pc)===null||n===void 0?void 0:n.removeTrack(t)}getConnectionState(){var t,n;return(n=(t=this._pc)===null||t===void 0?void 0:t.connectionState)!==null&&n!==void 0?n:"closed"}getICEConnectionState(){var t,n;return(n=(t=this._pc)===null||t===void 0?void 0:t.iceConnectionState)!==null&&n!==void 0?n:"closed"}getSignallingState(){var t,n;return(n=(t=this._pc)===null||t===void 0?void 0:t.signalingState)!==null&&n!==void 0?n:"closed"}getTransceivers(){var t,n;return(n=(t=this._pc)===null||t===void 0?void 0:t.getTransceivers())!==null&&n!==void 0?n:[]}getSenders(){var t,n;return(n=(t=this._pc)===null||t===void 0?void 0:t.getSenders())!==null&&n!==void 0?n:[]}getLocalDescription(){var t;return(t=this._pc)===null||t===void 0?void 0:t.localDescription}getRemoteDescription(){var t;return(t=this.pc)===null||t===void 0?void 0:t.remoteDescription}getStats(){return this.pc.getStats()}getConnectedAddress(){return ye(this,void 0,void 0,function*(){var t;if(!this._pc)return;let n="";const r=new Map,i=new Map;if((yield this._pc.getStats()).forEach(a=>{switch(a.type){case"transport":n=a.selectedCandidatePairId;break;case"candidate-pair":n===""&&a.selected&&(n=a.id),r.set(a.id,a);break;case"remote-candidate":i.set(a.id,"".concat(a.address,":").concat(a.port));break}}),n==="")return;const s=(t=r.get(n))===null||t===void 0?void 0:t.remoteCandidateId;if(s!==void 0)return i.get(s)})}setMungedSDP(t,n,r){return ye(this,void 0,void 0,function*(){if(n){const i=t.sdp;t.sdp=n;try{this.log.debug("setting munged ".concat(r?"remote":"local"," description"),this.logContext),r?yield this.pc.setRemoteDescription(t):yield this.pc.setLocalDescription(t);return}catch(o){this.log.warn("not able to set ".concat(t.type,", falling back to unmodified sdp"),Object.assign(Object.assign({},this.logContext),{error:o,sdp:n})),t.sdp=i}}try{r?yield this.pc.setRemoteDescription(t):yield this.pc.setLocalDescription(t)}catch(i){let o="unknown error";i instanceof Error?o=i.message:typeof i=="string"&&(o=i);const s={error:o,sdp:t.sdp};throw!r&&this.pc.remoteDescription&&(s.remoteSdp=this.pc.remoteDescription),this.log.error("unable to set ".concat(t.type),Object.assign(Object.assign({},this.logContext),{fields:s})),new WF(o)}})}ensureVideoDDExtensionForSVC(t,n){var r,i;if(!((r=t.ext)===null||r===void 0?void 0:r.some(s=>s.uri===fX))){if(this.ddExtID===0){let s=0;n.media.forEach(a=>{var c;a.type==="video"&&((c=a.ext)===null||c===void 0||c.forEach(l=>{l.value>s&&(s=l.value)}))}),this.ddExtID=s+1}(i=t.ext)===null||i===void 0||i.push({value:this.ddExtID,uri:fX})}}}function kX(e,t,n){let r=0;e.rtp.some(i=>i.codec==="opus"?(r=i.payload,!0):!1),r>0&&(e.rtcpFb||(e.rtcpFb=[]),n.includes(e.mid)&&!e.rtcpFb.some(i=>i.payload===r&&i.type==="nack")&&e.rtcpFb.push({payload:r,type:"nack"}),t.includes(e.mid)&&e.fmtp.some(i=>i.payload===r?(i.config.includes("stereo=1")||(i.config+=";stereo=1"),!0):!1))}function gFe(e){var t;const n=[],r=[],i=qh.parse((t=e.sdp)!==null&&t!==void 0?t:"");let o=0;return i.media.forEach(s=>{var a;s.type==="audio"&&(s.rtp.some(c=>c.codec==="opus"?(o=c.payload,!0):!1),!((a=s.rtcpFb)===null||a===void 0)&&a.some(c=>c.payload===o&&c.type==="nack")&&r.push(s.mid),s.fmtp.some(c=>c.payload===o?(c.config.includes("sprop-stereo=1")&&n.push(s.mid),!0):!1))}),{stereoMids:n,nackMids:r}}function xX(e){if(e.connection){const t=e.connection.ip.indexOf(":")>=0;(e.connection.version===4&&t||e.connection.version===6&&!t)&&(e.connection.ip="0.0.0.0",e.connection.version=4)}}const nj="vp8",vFe={audioPreset:qF.music,dtx:!0,red:!0,forceStereo:!1,simulcast:!0,screenShareEncoding:o$.h1080fps15.encoding,stopMicTrackOnMute:!1,videoCodec:nj,backupCodec:!0,preConnectBuffer:!1},lpe={deviceId:{ideal:"default"},autoGainControl:!0,echoCancellation:!0,noiseSuppression:!0,voiceIsolation:!0},upe={deviceId:{ideal:"default"},resolution:X_.h720.resolution},yFe={adaptiveStream:!1,dynacast:!1,stopLocalTrackOnUnpublish:!0,reconnectPolicy:new i8e,disconnectOnPageLeave:!0,webAudioMix:!1},u$={autoSubscribe:!0,maxRetries:1,peerConnectionTimeout:15e3,websocketTimeout:15e3};var Ei;(function(e){e[e.NEW=0]="NEW",e[e.CONNECTING=1]="CONNECTING",e[e.CONNECTED=2]="CONNECTED",e[e.FAILED=3]="FAILED",e[e.CLOSING=4]="CLOSING",e[e.CLOSED=5]="CLOSED"})(Ei||(Ei={}));class bFe{get needsPublisher(){return this.isPublisherConnectionRequired}get needsSubscriber(){return this.isSubscriberConnectionRequired}get currentState(){return this.state}constructor(t,n,r){var i;this.peerConnectionTimeout=u$.peerConnectionTimeout,this.log=gn,this.updateState=()=>{var o;const s=this.state,a=this.requiredTransports.map(c=>c.getConnectionState());a.every(c=>c==="connected")?this.state=Ei.CONNECTED:a.some(c=>c==="failed")?this.state=Ei.FAILED:a.some(c=>c==="connecting")?this.state=Ei.CONNECTING:a.every(c=>c==="closed")?this.state=Ei.CLOSED:a.some(c=>c==="closed")?this.state=Ei.CLOSING:a.every(c=>c==="new")&&(this.state=Ei.NEW),s!==this.state&&(this.log.debug("pc state change: from ".concat(Ei[s]," to ").concat(Ei[this.state]),this.logContext),(o=this.onStateChange)===null||o===void 0||o.call(this,this.state,this.publisher.getConnectionState(),this.subscriber.getConnectionState()))},this.log=Zf((i=r.loggerName)!==null&&i!==void 0?i:tu.PCManager),this.loggerOptions=r,this.isPublisherConnectionRequired=!n,this.isSubscriberConnectionRequired=n,this.publisher=new TX(t,r),this.subscriber=new TX(t,r),this.publisher.onConnectionStateChange=this.updateState,this.subscriber.onConnectionStateChange=this.updateState,this.publisher.onIceConnectionStateChange=this.updateState,this.subscriber.onIceConnectionStateChange=this.updateState,this.publisher.onSignalingStatechange=this.updateState,this.subscriber.onSignalingStatechange=this.updateState,this.publisher.onIceCandidate=o=>{var s;(s=this.onIceCandidate)===null||s===void 0||s.call(this,o,jl.PUBLISHER)},this.subscriber.onIceCandidate=o=>{var s;(s=this.onIceCandidate)===null||s===void 0||s.call(this,o,jl.SUBSCRIBER)},this.subscriber.onDataChannel=o=>{var s;(s=this.onDataChannel)===null||s===void 0||s.call(this,o)},this.subscriber.onTrack=o=>{var s;(s=this.onTrack)===null||s===void 0||s.call(this,o)},this.publisher.onOffer=(o,s)=>{var a;(a=this.onPublisherOffer)===null||a===void 0||a.call(this,o,s)},this.state=Ei.NEW,this.connectionLock=new Qs,this.remoteOfferLock=new Qs}get logContext(){var t,n;return Object.assign({},(n=(t=this.loggerOptions).loggerContextCb)===null||n===void 0?void 0:n.call(t))}requirePublisher(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;this.isPublisherConnectionRequired=t,this.updateState()}requireSubscriber(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;this.isSubscriberConnectionRequired=t,this.updateState()}createAndSendPublisherOffer(t){return this.publisher.createAndSendOffer(t)}setPublisherAnswer(t,n){return this.publisher.setRemoteDescription(t,n)}removeTrack(t){return this.publisher.removeTrack(t)}close(){return ye(this,void 0,void 0,function*(){if(this.publisher&&this.publisher.getSignallingState()!=="closed"){const t=this.publisher;for(const n of t.getSenders())try{t.canRemoveTrack()&&t.removeTrack(n)}catch(r){this.log.warn("could not removeTrack",Object.assign(Object.assign({},this.logContext),{error:r}))}}yield Promise.all([this.publisher.close(),this.subscriber.close()]),this.updateState()})}triggerIceRestart(){return ye(this,void 0,void 0,function*(){this.subscriber.restartingIce=!0,this.needsPublisher&&(yield this.createAndSendPublisherOffer({iceRestart:!0}))})}addIceCandidate(t,n){return ye(this,void 0,void 0,function*(){n===jl.PUBLISHER?yield this.publisher.addIceCandidate(t):yield this.subscriber.addIceCandidate(t)})}createSubscriberAnswerFromOffer(t,n){return ye(this,void 0,void 0,function*(){this.log.debug("received server offer",Object.assign(Object.assign({},this.logContext),{RTCSdpType:t.type,sdp:t.sdp,signalingState:this.subscriber.getSignallingState().toString()}));const r=yield this.remoteOfferLock.lock();try{return(yield this.subscriber.setRemoteDescription(t,n))?yield this.subscriber.createAndSetAnswer():void 0}finally{r()}})}updateConfiguration(t,n){this.publisher.setConfiguration(t),this.subscriber.setConfiguration(t),n&&this.triggerIceRestart()}ensurePCTransportConnection(t,n){return ye(this,void 0,void 0,function*(){var r;const i=yield this.connectionLock.lock();try{this.isPublisherConnectionRequired&&this.publisher.getConnectionState()!=="connected"&&this.publisher.getConnectionState()!=="connecting"&&(this.log.debug("negotiation required, start negotiating",this.logContext),this.publisher.negotiate()),yield Promise.all((r=this.requiredTransports)===null||r===void 0?void 0:r.map(o=>
422this.ensureTransportConnected(o,t,n)))}finally{i()}})}negotiate(t){return ye(this,void 0,void 0,function*(){return new Promise((n,r)=>ye(this,void 0,void 0,function*(){const i=setTimeout(()=>{r("negotiation timed out")},this.peerConnectionTimeout),o=()=>{clearTimeout(i),r("negotiation aborted")};t.signal.addEventListener("abort",o),this.publisher.once(Iy.NegotiationStarted,()=>{t.signal.aborted||this.publisher.once(Iy.NegotiationComplete,()=>{clearTimeout(i),n()})}),yield this.publisher.negotiate(s=>{clearTimeout(i),r(s)})}))})}addPublisherTransceiver(t,n){return this.publisher.addTransceiver(t,n)}addPublisherTrack(t){return this.publisher.addTrack(t)}createPublisherDataChannel(t,n){return this.publisher.createDataChannel(t,n)}getConnectedAddress(t){return t===jl.PUBLISHER?this.publisher.getConnectedAddress():t===jl.SUBSCRIBER?this.publisher.getConnectedAddress():this.requiredTransports[0].getConnectedAddress()}get requiredTransports(){const t=[];return this.isPublisherConnectionRequired&&t.push(this.publisher),this.isSubscriberConnectionRequired&&t.push(this.subscriber),t}ensureTransportConnected(t,n){return ye(this,arguments,void 0,function(r,i){var o=this;let s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:this.peerConnectionTimeout;return(function*(){if(r.getConnectionState()!=="connected")return new Promise((c,l)=>ye(o,void 0,void 0,function*(){const u=()=>{this.log.warn("abort transport connection",this.logContext),os.clearTimeout(d),l(new mr("room connection has been cancelled",xn.Cancelled))};i!=null&&i.signal.aborted&&u(),i==null||i.signal.addEventListener("abort",u);const d=os.setTimeout(()=>{i==null||i.signal.removeEventListener("abort",u),l(new mr("could not establish pc connection",xn.InternalError))},s);for(;this.state!==Ei.CONNECTED;)if(yield ka(50),i!=null&&i.signal.aborted){l(new mr("room connection has been cancelled",xn.Cancelled));return}os.clearTimeout(d),i==null||i.signal.removeEventListener("abort",u),c()}))})()})}}class xi extends Error{constructor(t,n,r){super(n),this.code=t,this.message=AX(n,xi.MAX_MESSAGE_BYTES),this.data=r?AX(r,xi.MAX_DATA_BYTES):void 0}static fromProto(t){return new xi(t.code,t.message,t.data)}toProto(){return new rhe({code:this.code,message:this.message,data:this.data})}static builtIn(t,n){return new xi(xi.ErrorCode[t],xi.ErrorMessage[t],n)}}xi.MAX_MESSAGE_BYTES=256;xi.MAX_DATA_BYTES=15360;xi.ErrorCode={APPLICATION_ERROR:1500,CONNECTION_TIMEOUT:1501,RESPONSE_TIMEOUT:1502,RECIPIENT_DISCONNECTED:1503,RESPONSE_PAYLOAD_TOO_LARGE:1504,SEND_FAILED:1505,UNSUPPORTED_METHOD:1400,RECIPIENT_NOT_FOUND:1401,REQUEST_PAYLOAD_TOO_LARGE:1402,UNSUPPORTED_SERVER:1403,UNSUPPORTED_VERSION:1404};xi.ErrorMessage={APPLICATION_ERROR:"Application error in method handler",CONNECTION_TIMEOUT:"Connection timeout",RESPONSE_TIMEOUT:"Response timeout",RECIPIENT_DISCONNECTED:"Recipient disconnected",RESPONSE_PAYLOAD_TOO_LARGE:"Response payload too large",SEND_FAILED:"Failed to send",UNSUPPORTED_METHOD:"Method not supported at destination",RECIPIENT_NOT_FOUND:"Recipient not found",REQUEST_PAYLOAD_TOO_LARGE:"Request payload too large",UNSUPPORTED_SERVER:"RPC not supported by server",UNSUPPORTED_VERSION:"Unsupported RPC version"};const dpe=15360;function d$(e){return new TextEncoder().encode(e).length}function AX(e,t){if(d$(e)<=t)return e;let n=0,r=e.length;const i=new TextEncoder;for(;n<r;){const o=Math.floor((n+r+1)/2);i.encode(e.slice(0,o)).length<=t?n=o:r=o-1}return e.slice(0,n)}const f$=2e3;function iP(e,t){if(!t)return 0;let n,r;return"bytesReceived"in e?(n=e.bytesReceived,r=t.bytesReceived):"bytesSent"in e&&(n=e.bytesSent,r=t.bytesSent),n===void 0||r===void 0||e.timestamp===void 0||t.timestamp===void 0?0:(n-r)*8*1e3/(e.timestamp-t.timestamp)}const h$=typeof MediaRecorder<"u";class wFe{constructor(){throw new Error("MediaRecorder is not available in this environment")}}const SFe=h$?MediaRecorder:wFe;class _Fe extends SFe{constructor(t,n){if(!h$)throw new Error("MediaRecorder is not available in this environment");super(new MediaStream([t.mediaStreamTrack]),n);let r,i;const o=()=>i===void 0,s=()=>{this.removeEventListener("dataavailable",r),this.removeEventListener("stop",s),this.removeEventListener("error",a),i==null||i.close(),i=void 0},a=c=>{i==null||i.error(c),this.removeEventListener("dataavailable",r),this.removeEventListener("stop",s),this.removeEventListener("error",a),i=void 0};this.byteStream=new ReadableStream({start:c=>{i=c,r=l=>ye(this,void 0,void 0,function*(){let u;if(l.data.arrayBuffer){const d=yield l.data.arrayBuffer();u=new Uint8Array(d)}else if(l.data.byteArray)u=l.data.byteArray;else throw new Error("no data available!");o()||c.enqueue(u)}),this.addEventListener("dataavailable",r)},cancel:()=>{s()}}),this.addEventListener("stop",s),this.addEventListener("error",a)}}function CFe(){return h$}const EFe=1e3,TFe=1e4;class fpe extends Re{get sender(){return this._sender}set sender(t){this._sender=t}get constraints(){return this._constraints}get hasPreConnectBuffer(){return!!this.localTrackRecorder}constructor(t,n,r){let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,o=arguments.length>4?arguments[4]:void 0;super(t,n,o),this.manuallyStopped=!1,this._isUpstreamPaused=!1,this.handleTrackMuteEvent=()=>this.debouncedTrackMuteHandler().catch(()=>this.log.debug("track mute bounce got cancelled by an unmute event",this.logContext)),this.debouncedTrackMuteHandler=l$(()=>ye(this,void 0,void 0,function*(){yield this.pauseUpstream()}),5e3),this.handleTrackUnmuteEvent=()=>ye(this,void 0,void 0,function*(){this.debouncedTrackMuteHandler.cancel("unmute"),yield this.resumeUpstream()}),this.handleEnded=()=>
vendor: 10,317 bytes, line 422
422{this.isInBackground&&(this.reacquireTrack=!0),this._mediaStreamTrack.removeEventListener("mute",this.handleTrackMuteEvent),this._mediaStreamTrack.removeEventListener("unmute",this.handleTrackUnmuteEvent),this.emit(it.Ended,this)},this.reacquireTrack=!1,this.providedByUser=i,this.muteLock=new Qs,this.pauseUpstreamLock=new Qs,this.trackChangeLock=new Qs,this.trackChangeLock.lock().then(s=>ye(this,void 0,void 0,function*(){try{yield this.setMediaStreamTrack(t,!0)}finally{s()}})),this._constraints=t.getConstraints(),r&&(this._constraints=r)}get id(){return this._mediaStreamTrack.id}get dimensions(){if(this.kind!==Re.Kind.Video)return;const{width:t,height:n}=this._mediaStreamTrack.getSettings();if(t&&n)return{width:t,height:n}}get isUpstreamPaused(){return this._isUpstreamPaused}get isUserProvided(){return this.providedByUser}get mediaStreamTrack(){var t,n;return(n=(t=this.processor)===null||t===void 0?void 0:t.processedTrack)!==null&&n!==void 0?n:this._mediaStreamTrack}get isLocal(){return!0}getSourceTrackSettings(){return this._mediaStreamTrack.getSettings()}setMediaStreamTrack(t,n){return ye(this,void 0,void 0,function*(){var r;if(t===this._mediaStreamTrack&&!n)return;this._mediaStreamTrack&&(this.attachedElements.forEach(o=>{Ay(this._mediaStreamTrack,o)}),this.debouncedTrackMuteHandler.cancel("new-track"),this._mediaStreamTrack.removeEventListener("ended",this.handleEnded),this._mediaStreamTrack.removeEventListener("mute",this.handleTrackMuteEvent),this._mediaStreamTrack.removeEventListener("unmute",this.handleTrackUnmuteEvent)),this.mediaStream=new MediaStream([t]),t&&(t.addEventListener("ended",this.handleEnded),t.addEventListener("mute",this.handleTrackMuteEvent),t.addEventListener("unmute",this.handleTrackUnmuteEvent),this._constraints=t.getConstraints());let i;if(this.processor&&t){if(this.log.debug("restarting processor",this.logContext),this.kind==="unknown")throw TypeError("cannot set processor on track of unknown kind");this.processorElement&&(ny(t,this.processorElement),this.processorElement.muted=!0),yield this.processor.restart({track:t,kind:this.kind,element:this.processorElement}),i=this.processor.processedTrack}this.sender&&((r=this.sender.transport)===null||r===void 0?void 0:r.state)!=="closed"&&(yield this.sender.replaceTrack(i??t)),!this.providedByUser&&this._mediaStreamTrack!==t&&this._mediaStreamTrack.stop(),this._mediaStreamTrack=t,t&&(this._mediaStreamTrack.enabled=!this.isMuted,yield this.resumeUpstream(),this.attachedElements.forEach(o=>{ny(i??t,o)}))})}waitForDimensions(){return ye(this,arguments,void 0,function(){var t=this;let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:EFe;return(function*(){var r;if(t.kind===Re.Kind.Audio)throw new Error("cannot get dimensions for audio tracks");((r=Xs())===null||r===void 0?void 0:r.os)==="iOS"&&(yield ka(10));const i=Date.now();for(;Date.now()-i<n;){const o=t.dimensions;if(o)return o;yield ka(50)}throw new Sf("unable to get track dimensions after timeout")})()})}setDeviceId(t){return ye(this,void 0,void 0,function*(){return this._constraints.deviceId===t&&this._mediaStreamTrack.getSettings().deviceId===Bp(t)||(this._constraints.deviceId=t,this.isMuted)?!0:(yield this.restartTrack(),Bp(t)===this._mediaStreamTrack.getSettings().deviceId)})}getDeviceId(){return ye(this,arguments,void 0,function(){var t=this;let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;return(function*(){if(t.source===Re.Source.ScreenShare)return;const{deviceId:r,groupId:i}=t._mediaStreamTrack.getSettings(),o=t.kind===Re.Kind.Audio?"audioinput":"videoinput";return n?Lo.getInstance().normalizeDeviceId(o,r,i):r})()})}mute(){return ye(this,void 0,void 0,function*(){return this.setTrackMuted(!0),this})}unmute(){return ye(this,void 0,void 0,function*(){return this.setTrackMuted(!1),this})}replaceTrack(t,n){return ye(this,void 0,void 0,function*(){const r=yield this.trackChangeLock.lock();try{if(!this.sender)throw new Sf("unable to replace an unpublished track");let i,o;return typeof n=="boolean"?i=n:n!==void 0&&(i=n.userProvidedTrack,o=n.stopProcessor),this.providedByUser=i??!0,this.log.debug("replace MediaStreamTrack",this.logContext),yield this.setMediaStreamTrack(t),o&&this.processor&&(yield this.internalStopProcessor()),this}finally{r()}})}restart(t){return ye(this,void 0,void 0,function*(){this.manuallyStopped=!1;const n=yield this.trackChangeLock.lock();try{t||(t=this._constraints);const{deviceId:r,facingMode:i}=t,o=o8e(t,["deviceId","facingMode"]);this.log.debug("restarting track with constraints",Object.assign(Object.assign({},this.logContext),{constraints:t}));const s={audio:!1,video:!1};this.kind===Re.Kind.Video?s.video=r||i?{deviceId:r,facingMode:i}:!0:s.audio=r?Object.assign({deviceId:r},o):!0,this.attachedElements.forEach(l=>{Ay(this.mediaStreamTrack,l)}),this._mediaStreamTrack.removeEventListener("ended",this.handleEnded),this._mediaStreamTrack.stop();const c=(yield navigator.mediaDevices.getUserMedia(s)).getTracks()[0];return this.kind===Re.Kind.Video&&(yield c.applyConstraints(o)),c.addEventListener("ended",this.handleEnded),this.log.debug("re-acquired MediaStreamTrack",this.logContext),yield this.setMediaStreamTrack(c),this._constraints=t,this.emit(it.Restarted,this),this.manuallyStopped&&(this.log.warn("track was stopped during a restart, stopping restarted track",this.logContext),this.stop()),this}finally{n()}})}setTrackMuted(t){this.log.debug("setting ".concat(this.kind," track ").concat(t?"muted":"unmuted"),this.logContext),!(this.isMuted===t&&this._mediaStreamTrack.enabled!==t)&&(this.isMuted=t,this._mediaStreamTrack.enabled=!t,this.emit(t?it.Muted:it.Unmuted,this))}get needsReAcquisition(){return this._mediaStreamTrack.readyState!=="live"||this._mediaStreamTrack.muted||!this._mediaStreamTrack.enabled||this.reacquireTrack}handleAppVisibilityChanged(){const t=Object.create(null,{handleAppVisibilityChanged:{get:()=>super.handleAppVisibilityChanged}});return ye(this,void 0,void 0,function*(){yield t.handleAppVisibilityChanged.call(this),tpe()&&(this.log.debug("visibility changed, is in Background: ".concat(this.isInBackground),this.logContext),!this.isInBackground&&this.needsReAcquisition&&!this.isUserProvided&&!this.isMuted&&(this.log.debug("track needs to be reacquired, restarting ".concat(this.source),this.logContext),yield this.restart(),this.reacquireTrack=!1))})}stop(){var t;this.manuallyStopped=!0,super.stop(),this._mediaStreamTrack.removeEventListener("ended",this.handleEnded),this._mediaStreamTrack.removeEventListener("mute",this.handleTrackMuteEvent),this._mediaStreamTrack.removeEventListener("unmute",this.handleTrackUnmuteEvent),(t=this.processor)===null||t===void 0||t.destroy(),this.processor=void 0}pauseUpstream(){return ye(this,void 0,void 0,function*(){var t;const n=yield this.pauseUpstreamLock.lock();try{if(this._isUpstreamPaused===!0)return;if(!this.sender){this.log.warn("unable to pause upstream for an unpublished track",this.logContext);return}this._isUpstreamPaused=!0,this.emit(it.UpstreamPaused,this);const r=Xs();if((r==null?void 0:r.name)==="Safari"&&gd(r.version,"12.0")<0)throw new i$("pauseUpstream is not supported on Safari < 12.");((t=this.sender.transport)===null||t===void 0?void 0:t.state)!=="closed"&&(yield this.sender.replaceTrack(null))}finally{n()}})}resumeUpstream(){return ye(this,void 0,void 0,function*(){var t;const n=yield this.pauseUpstreamLock.lock();try{if(this._isUpstreamPaused===!1)return;if(!this.sender){this.log.warn("unable to resume upstream for an unpublished track",this.logContext);return}this._isUpstreamPaused=!1,this.emit(it.UpstreamResumed,this),((t=this.sender.transport)===null||t===void 0?void 0:t.state)!=="closed"&&(yield this.sender.replaceTrack(this.mediaStreamTrack))}finally{n()}})}getRTCStatsReport(){return ye(this,void 0,void 0,function*(){var t;return!((t=this.sender)===null||t===void 0)&&t.getStats?yield this.sender.getStats():void 0})}setProcessor(t){return ye(this,arguments,void 0,function(n){var r=this;let i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return(function*(){var o;const s=yield r.trackChangeLock.lock();try{r.log.debug("setting up processor",r.logContext);const a=document.createElement(r.kind),c={kind:r.kind,track:r._mediaStreamTrack,element:a,audioContext:r.audioContext};if(yield n.init(c),r.log.debug("processor initialized",r.logContext),r.processor&&(yield r.internalStopProcessor()),r.kind==="unknown")throw TypeError("cannot set processor on track of unknown kind");if(ny(r._mediaStreamTrack,a),a.muted=!0,a.play().catch(l=>{l instanceof DOMException&&l.name==="AbortError"?(r.log.warn("failed to play processor element, retrying",Object.assign(Object.assign({},r.logContext),{error:l})),setTimeout(()=>{a.play().catch(u=>{r.log.error("failed to play processor element",Object.assign(Object.assign({},r.logContext),{err:u}))})},100)):r.log.error("failed to play processor element",Object.assign(Object.assign({},r.logContext),{error:l}))}),r.processor=n,r.processorElement=a,r.processor.processedTrack){for(const l of r.attachedElements)l!==r.processorElement&&i&&(Ay(r._mediaStreamTrack,l),ny(r.processor.processedTrack,l));yield(o=r.sender)===null||o===void 0?void 0:o.replaceTrack(r.processor.processedTrack)}r.emit(it.TrackProcessorUpdate,r.processor)}finally{s()}})()})}getProcessor(){return this.processor}stopProcessor(){return ye(this,arguments,void 0,function(){var t=this;let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;return(function*(){const r=yield t.trackChangeLock.lock();try{yield t.internalStopProcessor(n)}finally{r()}})()})}internalStopProcessor(){return ye(this,arguments,void 0,function(){var t=this;let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;return(function*(){var r,i;t.processor&&(t.log.debug("stopping processor",t.logContext),(r=t.processor.processedTrack)===null||r===void 0||r.stop(),yield t.processor.destroy(),t.processor=void 0,n||((i=t.processorElement)===null||i===void 0||i.remove(),t.processorElement=void 0),yield t._mediaStreamTrack.applyConstraints(t._constraints),yield t.setMediaStreamTrack(t._mediaStreamTrack,!0),t.emit(it.TrackProcessorUpdate))})()})}startPreConnectBuffer(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:100;if(!CFe()){this.log.warn("MediaRecorder is not available, cannot start prec
422onnect buffer",this.logContext);return}if(this.localTrackRecorder){this.log.warn("preconnect buffer already started");return}else{let n="audio/webm;codecs=opus";MediaRecorder.isTypeSupported(n)||(n="video/mp4"),this.localTrackRecorder=new _Fe(this,{mimeType:n})}this.localTrackRecorder.start(t),this.autoStopPreConnectBuffer=setTimeout(()=>{this.log.warn("preconnect buffer timed out, stopping recording automatically",this.logContext),this.stopPreConnectBuffer()},TFe)}stopPreConnectBuffer(){clearTimeout(this.autoStopPreConnectBuffer),this.localTrackRecorder&&(this.localTrackRecorder.stop(),this.localTrackRecorder=void 0)}getPreConnectBuffer(){var t;return(t=this.localTrackRecorder)===null||t===void 0?void 0:t.byteStream}getPreConnectBufferMimeType(){var t;return(t=this.localTrackRecorder)===null||t===void 0?void 0:t.mimeType}}class QA extends fpe{get enhancedNoiseCancellation(){return this.isKrispNoiseFilterEnabled}constructor(t,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,i=arguments.length>3?arguments[3]:void 0,o=arguments.length>4?arguments[4]:void 0;super(t,Re.Kind.Audio,n,r,o),this.stopOnMute=!1,this.isKrispNoiseFilterEnabled=!1,this.monitorSender=()=>ye(this,void 0,void 0,function*(){if(!this.sender){this._currentBitrate=0;return}let s;try{s=yield this.getSenderStats()}catch(a){this.log.error("could not get audio sender stats",Object.assign(Object.assign({},this.logContext),{error:a}));return}s&&this.prevStats&&(this._currentBitrate=iP(s,this.prevStats)),this.prevStats=s}),this.handleKrispNoiseFilterEnable=()=>{this.isKrispNoiseFilterEnabled=!0,this.log.debug("Krisp noise filter enabled",this.logContext),this.emit(it.AudioTrackFeatureUpdate,this,Do.TF_ENHANCED_NOISE_CANCELLATION,!0)},this.handleKrispNoiseFilterDisable=()=>{this.isKrispNoiseFilterEnabled=!1,this.log.debug("Krisp noise filter disabled",this.logContext),this.emit(it.AudioTrackFeatureUpdate,this,Do.TF_ENHANCED_NOISE_CANCELLATION,!1)},this.audioContext=i,this.checkForSilence()}mute(){const t=Object.create(null,{mute:{get:()=>super.mute}});return ye(this,void 0,void 0,function*(){const n=yield this.muteLock.lock();try{return this.isMuted?(this.log.debug("Track already muted",this.logContext),this):(this.source===Re.Source.Microphone&&this.stopOnMute&&!this.isUserProvided&&(this.log.debug("stopping mic track",this.logContext),this._mediaStreamTrack.stop()),yield t.mute.call(this),this)}finally{n()}})}unmute(){const t=Object.create(null,{unmute:{get:()=>super.unmute}});return ye(this,void 0,void 0,function*(){const n=yield this.muteLock.lock();try{if(!this.isMuted)return this.log.debug("Track already unmuted",this.logContext),this;const r=this._constraints.deviceId&&this._mediaStreamTrack.getSettings().deviceId!==Bp(this._constraints.deviceId);return this.source===Re.Source.Microphone&&(this.stopOnMute||this._mediaStreamTrack.readyState==="ended"||r)&&!this.isUserProvided&&(this.log.debug("reacquiring mic track",this.logContext),yield this.restartTrack()),yield t.unmute.call(this),this}finally{n()}})}restartTrack(t){return ye(this,void 0,void 0,function*(){let n;if(t){const r=s$({audio:t});typeof r.audio!="boolean"&&(n=r.audio)}yield this.restart(n)})}restart(t){const n=Object.create(null,{restart:{get:()=>super.restart}});return ye(this,void 0,void 0,function*(){const r=yield n.restart.call(this,t);return this.checkForSilence(),r})}startMonitor(){Sa()&&(this.monitorInterval||(this.monitorInterval=setInterval(()=>{this.monitorSender()},f$)))}setProcessor(t){return ye(this,void 0,void 0,function*(){var n;const r=yield this.trackChangeLock.lock();try{if(!md()&&!this.audioContext)throw Error("Audio context needs to be set on LocalAudioTrack in order to enable processors");this.processor&&(yield this.internalStopProcessor());const i={kind:this.kind,track:this._mediaStreamTrack,audioContext:this.audioContext};this.log.debug("setting up audio processor ".concat(t.name),this.logContext),yield t.init(i),this.processor=t,this.processor.processedTrack&&(yield(n=this.sender)===null||n===void 0?void 0:n.replaceTrack(this.processor.processedTrack),this.processor.processedTrack.addEventListener("enable-lk-krisp-noise-filter",this.handleKrispNoiseFilterEnable),this.processor.processedTrack.addEventListener("disable-lk-krisp-noise-filter",this.handleKrispNoiseFilterDisable)),this.emit
vendor: 15,176 bytes, line 422
422(it.TrackProcessorUpdate,this.processor)}finally{r()}})}setAudioContext(t){this.audioContext=t}getSenderStats(){return ye(this,void 0,void 0,function*(){var t;if(!(!((t=this.sender)===null||t===void 0)&&t.getStats))return;const n=yield this.sender.getStats();let r;return n.forEach(i=>{i.type==="outbound-rtp"&&(r={type:"audio",streamId:i.id,packetsSent:i.packetsSent,packetsLost:i.packetsLost,bytesSent:i.bytesSent,timestamp:i.timestamp,roundTripTime:i.roundTripTime,jitter:i.jitter})}),r})}checkForSilence(){return ye(this,void 0,void 0,function*(){const t=yield ope(this);return t&&(this.isMuted||this.log.warn("silence detected on local audio track",this.logContext),this.emit(it.AudioSilenceDetected)),t})}}function kFe(e,t,n){switch(e.kind){case"audio":return new QA(e,t,!1,void 0,n);case"video":return new XA(e,t,!1,n);default:throw new Sf("unsupported track type: ".concat(e.kind))}}const xFe=Object.values(X_),AFe=Object.values(GF),IFe=Object.values(o$),RFe=[X_.h180,X_.h360],PFe=[GF.h180,GF.h360],OFe=e=>[{scaleResolutionDownBy:2,fps:e.encoding.maxFramerate}].map(n=>{var r,i;return new cr(Math.floor(e.width/n.scaleResolutionDownBy),Math.floor(e.height/n.scaleResolutionDownBy),Math.max(15e4,Math.floor(e.encoding.maxBitrate/(Math.pow(n.scaleResolutionDownBy,2)*(((r=e.encoding.maxFramerate)!==null&&r!==void 0?r:30)/((i=n.fps)!==null&&i!==void 0?i:30))))),n.fps,e.encoding.priority)}),rj=["q","h","f"];function ij(e,t,n,r){var i,o;let s=r==null?void 0:r.videoEncoding;e&&(s=r==null?void 0:r.screenShareEncoding);const a=r==null?void 0:r.simulcast,c=r==null?void 0:r.scalabilityMode,l=r==null?void 0:r.videoCodec;if(!s&&!a&&!c||!t||!n)return[{}];s||(s=MFe(e,t,n,l),gn.debug("using video encoding",s));const u=s.maxFramerate,d=new cr(t,n,s.maxBitrate,s.maxFramerate,s.priority);if(c&&Wu(l)){const g=new hpe(c),m=[];if(g.spatial>3)throw new Error("unsupported scalabilityMode: ".concat(c));const y=Xs();if(J_()||md()||(y==null?void 0:y.name)==="Chrome"&&gd(y==null?void 0:y.version,"113")<0){const v=g.suffix=="h"?2:3,w=F8e(y);for(let S=0;S<g.spatial;S+=1)m.push({rid:rj[2-S],maxBitrate:s.maxBitrate/Math.pow(v,S),maxFramerate:d.encoding.maxFramerate,scaleResolutionDownBy:w?Math.pow(2,S):void 0});m[0].scalabilityMode=c}else m.push({maxBitrate:s.maxBitrate,maxFramerate:d.encoding.maxFramerate,scalabilityMode:c});return d.encoding.priority&&(m[0].priority=d.encoding.priority,m[0].networkPriority=d.encoding.priority),gn.debug("using svc encoding",{encodings:m}),m}if(!a)return[s];let f=[];e?f=(i=RX(r==null?void 0:r.screenShareSimulcastLayers))!==null&&i!==void 0?i:IX(e,d):f=(o=RX(r==null?void 0:r.videoSimulcastLayers))!==null&&o!==void 0?o:IX(e,d);let p;if(f.length>0){const g=f[0];f.length>1&&([,p]=f);const m=Math.max(t,n);if(m>=960&&p)return xM(t,n,[g,p,d],u);if(m>=480)return xM(t,n,[g,d],u)}return xM(t,n,[d])}function NFe(e,t,n){var r,i,o,s;if(!n.backupCodec||n.backupCodec===!0||n.backupCodec.codec===n.videoCodec)return;t!==n.backupCodec.codec&&gn.warn("requested a different codec than specified as backup",{serverRequested:t,backup:n.backupCodec.codec}),n.videoCodec=t,n.videoEncoding=n.backupCodec.encoding;const a=e.mediaStreamTrack.getSettings(),c=(r=a.width)!==null&&r!==void 0?r:(i=e.dimensions)===null||i===void 0?void 0:i.width,l=(o=a.height)!==null&&o!==void 0?o:(s=e.dimensions)===null||s===void 0?void 0:s.height;return e.source===Re.Source.ScreenShare&&n.simulcast&&(n.simulcast=!1),ij(e.source===Re.Source.ScreenShare,c,l,n)}function MFe(e,t,n,r){const i=DFe(e,t,n);let{encoding:o}=i[0];const s=Math.max(t,n);for(let a=0;a<i.length;a+=1){const c=i[a];if(o=c.encoding,c.width>=s)break}if(r)switch(r){case"av1":case"h265":o=Object.assign({},o),o.maxBitrate=o.maxBitrate*.7;break;case"vp9":o=Object.assign({},o),o.maxBitrate=o.maxBitrate*.85;break}return o}function DFe(e,t,n){if(e)return IFe;const r=t>n?t/n:n/t;return Math.abs(r-16/9)<Math.abs(r-4/3)?xFe:AFe}function IX(e,t){if(e)return OFe(t);const{width:n,height:r}=t,i=n>r?n/r:r/n;return Math.abs(i-16/9)<Math.abs(i-4/3)?RFe:PFe}function xM(e,t,n,r){const i=[];if(n.forEach((o,s)=>{if(s>=rj.length)return;const a=Math.min(e,t),l={rid:rj[s],scaleResolutionDownBy:Math.max(1,a/Math.min(o.width,o.height)),maxBitrate:o.encoding.maxBitrate},u=r&&o.encoding.maxFramerate?Math.min(r,o.encoding.maxFramerate):o.encoding.maxFramerate;u&&(l.maxFramerate=u);const d=sv()||s===0;o.encoding.priority&&d&&(l.priority=o.encoding.priority,l.networkPriority=o.encoding.priority),i.push(l)}),md()&&rpe()==="ios"){let o;i.forEach(a=>{o?a.maxFramerate&&a.maxFramerate>o&&(o=a.maxFramerate):o=a.maxFramerate});let s=!0;i.forEach(a=>{var c;a.maxFramerate!=o&&(s&&(s=!1,gn.info("Simulcast on iOS React-Native requires all encodings to share the same framerate.")),gn.info('Setting framerate of encoding "'.concat((c=a.rid)!==null&&c!==void 0?c:"",'" to ').concat(o)),a.maxFramerate=o)})}return i}function RX(e){if(e)return e.sort((t,n)=>{const{encoding:r}=t,{encoding:i}=n;return r.maxBitrate>i.maxBitrate?1:r.maxBitrate<i.maxBitrate?-1:r.maxBitrate===i.maxBitrate&&r.maxFramerate&&i.maxFramerate?r.maxFramerate>i.maxFramerate?1:-1:0})}class hpe{constructor(t){const n=t.match(/^L(\d)T(\d)(h|_KEY|_KEY_SHIFT){0,1}$/);if(!n)throw new Error("invalid scalability mode");if(this.spatial=parseInt(n[1]),this.temporal=parseInt(n[2]),n.length>3)switch(n[3]){case"h":case"_KEY":case"_KEY_SHIFT":this.suffix=n[3]}}toString(){var t;return"L".concat(this.spatial,"T").concat(this.temporal).concat((t=this.suffix)!==null&&t!==void 0?t:"")}}function LFe(e){return e.source===Re.Source.ScreenShare||e.constraints.height&&Bp(e.constraints.height)>=1080?"maintain-resolution":"balanced"}const FFe=5e3;class XA extends fpe{get sender(){return this._sender}set sender(t){this._sender=t,this.degradationPreference&&this.setDegradationPreference(this.degradationPreference)}constructor(t,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,i=arguments.length>3?arguments[3]:void 0;super(t,Re.Kind.Video,n,r,i),this.simulcastCodecs=new Map,this.degradationPreference="balanced",this.isCpuConstrained=!1,this.optimizeForPerformance=!1,this.monitorSender=()=>ye(this,void 0,void 0,function*(){if(!this.sender){this._currentBitrate=0;return}let o;try{o=yield this.getSenderStats()}catch(c){this.log.error("could not get video sender stats",Object.assign(Object.assign({},this.logContext),{error:c}));return}const s=new Map(o.map(c=>[c.rid,c])),a=o.some(c=>c.qualityLimitationReason==="cpu");if(a!==this.isCpuConstrained&&(this.isCpuConstrained=a,this.isCpuConstrained&&this.emit(it.CpuConstrained)),this.prevStats){let c=0;s.forEach((l,u)=>{var d;const f=(d=this.prevStats)===null||d===void 0?void 0:d.get(u);c+=iP(l,f)}),this._currentBitrate=c}this.prevStats=s}),this.senderLock=new Qs}get isSimulcast(){return!!(this.sender&&this.sender.getParameters().encodings.length>1)}startMonitor(t){var n;if(this.signalClient=t,!Sa())return;const r=(n=this.sender)===null||n===void 0?void 0:n.getParameters();r&&(this.encodings=r.encodings),!this.monitorInterval&&(this.monitorInterval=setInterval(()=>{this.monitorSender()},f$))}stop(){this._mediaStreamTrack.getConstraints(),this.simulcastCodecs.forEach(t=>{t.mediaStreamTrack.stop()}),super.stop()}pauseUpstream(){const t=Object.create(null,{pauseUpstream:{get:()=>super.pauseUpstream}});return ye(this,void 0,void 0,function*(){var n,r,i,o,s;yield t.pauseUpstream.call(this);try{for(var a=!0,c=wf(this.simulcastCodecs.values()),l;l=yield c.next(),n=l.done,!n;a=!0)o=l.value,a=!1,yield(s=o.sender)===null||s===void 0?void 0:s.replaceTrack(null)}catch(u){r={error:u}}finally{try{!a&&!n&&(i=c.return)&&(yield i.call(c))}finally{if(r)throw r.error}}})}resumeUpstream(){const t=Object.create(null,{resumeUpstream:{get:()=>super.resumeUpstream}});return ye(this,void 0,void 0,function*(){var n,r,i,o,s;yield t.resumeUpstream.call(this);try{for(var a=!0,c=wf(this.simulcastCodecs.values()),l;l=yield c.next(),n=l.done,!n;a=!0){o=l.value,a=!1;const u=o;yield(s=u.sender)===null||s===void 0?void 0:s.replaceTrack(u.mediaStreamTrack)}}catch(u){r={error:u}}finally{try{!a&&!n&&(i=c.return)&&(yield i.call(c))}finally{if(r)throw r.error}}})}mute(){const t=Object.create(null,{mute:{get:()=>super.mute}});return ye(this,void 0,void 0,function*(){const n=yield this.muteLock.lock();try{return this.isMuted?(this.log.debug("Track already muted",this.logContext),this):(this.source===Re.Source.Camera&&!this.isUserProvided&&(this.log.debug("stopping camera track",this.logContext),this._mediaStreamTrack.stop()),yield t.mute.call(this),this)}finally{n()}})}unmute(){const t=Object.create(null,{unmute:{get:()=>super.unmute}});return ye(this,void 0,void 0,function*(){const n=yield this.muteLock.lock();try{return this.isMuted?(this.source===Re.Source.Camera&&!this.isUserProvided&&(this.log.debug("reacquiring camera track",this.logContext),yield this.restartTrack()),yield t.unmute.call(this),this):(this.log.debug("Track already unmuted",this.logContext),this)}finally{n()}})}setTrackMuted(t){super.setTrackMuted(t);for(const n of this.simulcastCodecs.values())n.mediaStreamTrack.enabled=!t}getSenderStats(){return ye(this,void 0,void 0,function*(){var t;if(!(!((t=this.sender)===null||t===void 0)&&t.getStats))return[];const n=[],r=yield this.sender.getStats();return r.forEach(i=>{var o;if(i.type==="outbound-rtp"){const s={type:"video",streamId:i.id,frameHeight:i.frameHeight,frameWidth:i.frameWidth,framesPerSecond:i.framesPerSecond,framesSent:i.framesSent,firCount:i.firCount,pliCount:i.pliCount,nackCount:i.nackCount,packetsSent:i.packetsSent,bytesSent:i.bytesSent,qualityLimitationReason:i.qualityLimitationReason,qualityLimitationDurations:i.qualityLimitationDurations,qualityLimitationResolutionChanges:i.qualityLimitationResolutionChanges,rid:(o=i.rid)!==null&&o!==void 0?o:i.id,retransmittedPacketsSent:i.retransmittedPacketsSent,targetBitrate:i.targetBitrate,timestamp:i.timestamp},a=r.get(i.remoteId);a&&(s.jitter=a.jitter,s.packetsLost=a.packetsLost,s.roundTripTime=a.roundTripTime),n.push(s)}}),n.sort((i,o)=>{var s,a;return((s=o.frameWidth)!==null&&s!==void 0?s:0)-((a=i.frameWidth)!==null&&a!==void 0?a:0)}),n})}setPublishingQuality(t){const n=[];for(let r=ic.LOW;r<=ic.HIGH;r+=1)n.push(new t$({quality:r,enabled:r<=t}));this.log.debug("setting publishing quality. max quality ".concat(t),this.logContext),this.setPublishingLayers(Wu(this.codec),n)}restartTrack(t){return ye(this,void 0,void 0,function*(){var n,r,i,o,s;let a;if(t){const d=s$({video:t});typeof d.video!="boolean"&&(a=d.video)}yield this.restart(a),this.isCpuConstrained=!1;try{for(var c=!0,l=wf(this.simulcastCodecs.values()),u;u=yield l.next(),n=u.done,!n;c=!0){o=u.value,c=!1;const d=o;d.sender&&((s=d.sender.transport)===null||s===void 0?void 0:s.state)!=="closed"&&(d.mediaStreamTrack=this.mediaStreamTrack.clone(),yield d.sender.replaceTrack(d.mediaStreamTrack))}}catch(d){r={error:d}}finally{try{!c&&!n&&(i=l.return)&&(yield i.call(l))}finally{if(r)throw r.error}}})}setProcessor(t){const n=Object.create(null,{setProcessor:{get:()=>super.setProcessor}});return ye(this,arguments,void 0,function(r){var i=this;let o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return(function*(){var s,a,c,l,u,d;if(yield n.setProcessor.call(i,r,o),!((u=i.processor)===null||u===void 0)&&u.processedTrack)try{for(var f=!0,p=wf(i.simulcastCodecs.values()),g;g=yield p.next(),s=g.done,!s;f=!0)l=g.value,f=!1,yield(d=l.sender)===null||d===void 0?void 0:d.replaceTrack(i.processor.processedTrack)}catch(m){a={error:m}}finally{try{!f&&!s&&(c=p.return)&&(yield c.call(p))}finally{if(a)throw a.error}}})()})}setDegradationPreference(t){return ye(this,void 0,void 0,function*(){if(this.degradationPreference=t,this.sender)try{this.log.debug("setting degradationPreference to ".concat(t),this.logContext);const n=this.sender.getParameters();n.degradationPreference=t,this.sender.setParameters(n)}catch(n){this.log.warn("failed to set degradationPreference",Object.assign({error:n},this.logContext))}})}addSimulcastTrack(t,n){if(this.simulcastCodecs.has(t)){this.log.error("".concat(t," already added, skipping adding simulcast codec"),this.logContext);return}const r={codec:t,mediaStreamTrack:this.mediaStreamTrack.clone(),sender:void 0,encodings:n};return this.simulcastCodecs.set(t,r),r}setSimulcastTrackSender(t,n){const r=this.simulcastCodecs.get(t);r&&(r.sender=n,setTimeout(()=>{this.subscribedCodecs&&this.setPublishingCodecs(this.subscribedCodecs)},FFe))}setPublishingCodecs(t){return ye(this,void 0,void 0,function*(){var n,r,i,o,s,a,c;if(this.log.debug("setting publishing codecs",Object.assign(Object.assign({},this.logContext),{codecs:t,currentCodec:this.codec})),!this.codec&&t.length>0)return yield this.setPublishingLayers(Wu(t[0].codec),t[0].qualities),[];this.subscribedCodecs=t;const l=[];try{for(n=!0,r=wf(t);i=yield r.next(),o=i.done,!o;n=!0){c=i.value,n=!1;const u=c;if(!this.codec||this.codec===u.codec)yield this.setPublishingLayers(Wu(u.codec),u.qualities);else{const d=this.simulcastCodecs.get(u.codec);if(this.log.debug("try setPublishingCodec for ".concat(u.codec),Object.assign(Object.assign({},this.logContext),{simulcastCodecInfo:d})),!d||!d.sender){for(const f of u.qualities)if(f.enabled){l.push(u.codec);break}}else d.encodings&&(this.log.debug("try setPublishingLayersForSender ".concat(u.codec),this.logContext),yield PX(d.sender,d.encodings,u.qualities,this.senderLock,Wu(u.codec),this.log,this.logContext))}}}catch(u){s={error:u}}finally{try{!n&&!o&&(a=r.return)&&(yield a.call(r))}finally{if(s)throw s.error}}return l})}setPublishingLayers(t,n){return ye(this,void 0,void 0,function*(){if(this.optimizeForPerformance){this.log.info("skipping setPublishingLayers due to optimized publishing performance",Object.assign(Object.assign({},this.logContext),{qualities:n}));return}this.log.debug("setting publishing layers",Object.assign(Object.assign({},this.logContext),{qualities:n})),!(!this.sender||!this.encodings)&&(yield PX(this.sender,this.encodings,n,this.senderLock,t,this.log,this.logContext))})}prioritizePerformance(){return ye(this,void 0,void 0,function*(){if(!this.sender)throw new Error("sender not found");const t=yield this.senderLock.lock();try{this.optimizeForPerformance=!0;const n=this.sender.getParameters();n.encodings=n.encodings.map((r,i)=>{var o;return Object.assign(Object.assign({},r),{active:i===0,scaleResolutionDownBy:Math.max(1,Math.ceil(((o=this.mediaStreamTrack.getSettings().height)!==null&&o!==void 0?o:360)/360)),scalabilityMode:i===0&&Wu(this.codec)?"L1T3":void 0,maxFramerate:i===0?15:0,maxBitrate:i===0?r.maxBitrate:0})}),this.log.debug("setting performance optimised encodings",Object.assign(Object.assign({},this.logContext),{encodings:n.encodings})),this.encodings=n.encodings,yield this.sender.setParameters(n)}catch(n){this.log.error("failed to set performance optimised encodings",Object.assign(Object.assign({},this.logContext),{error:n})),this.optimizeForPerformance=!1}finally{t()}})}handleAppVisibilityChanged(){const t=Object.create(null,{handleAppVisibilityChanged:{get:()=>super.handleAppVisibilityChanged}});return ye(this,void 0,void 0,function*(){yield t.handleAppVisibilityChanged.call(this),tpe()&&this.isInBackgroun
vendor: 4,878 bytes, line 422
422d&&this.source===Re.Source.Camera&&(this._mediaStreamTrack.enabled=!1)})}}function PX(e,t,n,r,i,o,s){return ye(this,void 0,void 0,function*(){const a=yield r.lock();o.debug("setPublishingLayersForSender",Object.assign(Object.assign({},s),{sender:e,qualities:n,senderEncodings:t}));try{const c=e.getParameters(),{encodings:l}=c;if(!l)return;if(l.length!==t.length){o.warn("cannot set publishing layers, encodings mismatch",Object.assign(Object.assign({},s),{encodings:l,senderEncodings:t}));return}let u=!1;!1&&l[0].scalabilityMode||(i&&n.some(p=>p.enabled)&&n.forEach(p=>p.enabled=!0),l.forEach((f,p)=>{var g;let m=(g=f.rid)!==null&&g!==void 0?g:"";m===""&&(m="q");const y=ppe(m),v=n.find(w=>w.quality===y);v&&f.active!==v.enabled&&(u=!0,f.active=v.enabled,o.debug("setting layer ".concat(v.quality," to ").concat(f.active?"enabled":"disabled"),s),sv()&&(v.enabled?(f.scaleResolutionDownBy=t[p].scaleResolutionDownBy,f.maxBitrate=t[p].maxBitrate,f.maxFrameRate=t[p].maxFrameRate):(f.scaleResolutionDownBy=4,f.maxBitrate=10,f.maxFrameRate=2)))})),u&&(c.encodings=l,o.debug("setting encodings",Object.assign(Object.assign({},s),{encodings:c.encodings})),yield e.setParameters(c))}finally{a()}})}function ppe(e){switch(e){case"f":return ic.HIGH;case"h":return ic.MEDIUM;case"q":return ic.LOW;default:return ic.HIGH}}function OX(e,t,n,r){if(!n)return[new Ng({quality:ic.HIGH,width:e,height:t,bitrate:0,ssrc:0})];if(r){const i=n[0].scalabilityMode,o=new hpe(i),s=[],a=o.suffix=="h"?1.5:2,c=o.suffix=="h"?2:3;for(let l=0;l<o.spatial;l+=1)s.push(new Ng({quality:Math.min(ic.HIGH,o.spatial-1)-l,width:Math.ceil(e/Math.pow(a,l)),height:Math.ceil(t/Math.pow(a,l)),bitrate:n[0].maxBitrate?Math.ceil(n[0].maxBitrate/Math.pow(c,l)):0,ssrc:0}));return s}return n.map(i=>{var o,s,a;const c=(o=i.scaleResolutionDownBy)!==null&&o!==void 0?o:1;let l=ppe((s=i.rid)!==null&&s!==void 0?s:"");return new Ng({quality:l,width:Math.ceil(e/c),height:Math.ceil(t/c),bitrate:(a=i.maxBitrate)!==null&&a!==void 0?a:0,ssrc:0})})}const NX="_lossy",MX="_reliable",jFe=2*1e3,AM="leave-reconnect",UFe=3e4;var xl;(function(e){e[e.New=0]="New",e[e.Connected=1]="Connected",e[e.Disconnected=2]="Disconnected",e[e.Reconnecting=3]="Reconnecting",e[e.Closed=4]="Closed"})(xl||(xl={}));class BFe extends Pd.EventEmitter{get isClosed(){return this._isClosed}get pendingReconnect(){return!!this.reconnectTimeout}constructor(t){var n;super(),this.options=t,this.rtcConfig={},this.peerConnectionTimeout=u$.peerConnectionTimeout,this.fullReconnectOnNext=!1,this.latestRemoteOfferId=0,this.subscriberPrimary=!1,this.pcState=xl.New,this._isClosed=!0,this.pendingTrackResolvers={},this.reconnectAttempts=0,this.reconnectStart=0,this.attemptingReconnect=!1,this.joinAttempts=0,this.maxJoinAttempts=1,this.shouldFailNext=!1,this.log=gn,this.reliableDataSequence=1,this.reliableMessageBuffer=new wX,this.reliableReceivedState=new uFe(UFe),this.handleDataChannel=r=>ye(this,[r],void 0,function(i){var o=this;let{channel:s}=i;return(function*(){if(s){if(s.label===MX)o.reliableDCSub=s;else if(s.label===NX)o.lossyDCSub=s;else return;o.log.debug("on data channel ".concat(s.id,", ").concat(s.label),o.logContext),s.onmessage=o.handleDataMessage}})()}),this.handleDataMessage=r=>ye(this,void 0,void 0,function*(){var i,o;const s=yield this.dataProcessLock.lock();try{let a;if(r.data instanceof ArrayBuffer)a=r.data;else if(r.data instanceof Blob)a=yield r.data.arrayBuffer();else{this.log.error("unsupported data type",Object.assign(Object.assign({},this.logContext),{data:r.data}));return}const c=ya.fromBinary(new Uint8Array(a));if(c.sequence>0&&c.participantSid!==""){const l=this.reliableReceivedState.get(c.participantSid);if(l&&c.sequence<=l)return;this.reliableReceivedState.set(c.participantSid,c.sequence)}((i=c.value)===null||i===void 0?void 0:i.case)==="speaker"?this.emit(ct.ActiveSpeakersUpdate,c.value.value.speakers):(((o=c.value)===null||o===void 0?void 0:o.case)==="user"&&HFe(c,c.value.value),this.emit(ct.DataPacketReceived,c))}finally{s()}}),this.handleDataError=r=>{const o=r.currentTarget.maxRetransmits===0?"lossy":"reliable";if(r instanceof ErrorEvent&&r.error){const{error:s}=r.error;this.log.error("DataChannel error on ".concat(o,": ").concat(r.message),Object.assign(Object.assign({},this.logContext),{error:s}))}else this.log.error("Unknown DataChannel error on ".concat(o),Object.assign(Object.assign({},this.logContext),{event:r}))},this.handleBufferedAmountLow=r=>{const o=r.currentTarget.maxRetransmits===0?hn.LOSSY:hn.RELIABLE;this.updateAndEmitDCBufferStatus(o)},this.handleDisconnect=(r,i)=>{if(this._isClosed)return;this.log.warn("".concat(r," disconnected"),this.logContext),this.reconnectAttempts===0&&(this.reconnectStart=Date.now());const o=c=>{this.log.warn("could not recover connection after ".concat(this.reconnectAttempts," attempts, ").concat(c,"ms. giving up"),this.logContext),this.emit
vendor: 15,657 bytes, line 422
422(ct.Disconnected),this.close()},s=Date.now()-this.reconnectStart;let a=this.getNextRetryDelay({elapsedMs:s,retryCount:this.reconnectAttempts});if(a===null){o(s);return}r===AM&&(a=0),this.log.debug("reconnecting in ".concat(a,"ms"),this.logContext),this.clearReconnectTimeout(),this.token&&this.regionUrlProvider&&this.regionUrlProvider.updateToken(this.token),this.reconnectTimeout=os.setTimeout(()=>this.attemptReconnect(i).finally(()=>this.reconnectTimeout=void 0),a)},this.waitForRestarted=()=>new Promise((r,i)=>{this.pcState===xl.Connected&&r();const o=()=>{this.off(ct.Disconnected,s),r()},s=()=>{this.off(ct.Restarted,o),i()};this.once(ct.Restarted,o),this.once(ct.Disconnected,s)}),this.updateAndEmitDCBufferStatus=r=>{const i=this.isBufferStatusLow(r);typeof i<"u"&&i!==this.dcBufferStatus.get(r)&&(this.dcBufferStatus.set(r,i),this.emit(ct.DCBufferStatusChanged,i,r))},this.isBufferStatusLow=r=>{const i=this.dataChannelForKind(r);if(i)return r===hn.RELIABLE&&this.reliableMessageBuffer.alignBufferedAmount(i.bufferedAmount),i.bufferedAmount<=i.bufferedAmountLowThreshold},this.handleBrowserOnLine=()=>{this.client.currentState===Lr.RECONNECTING&&(this.clearReconnectTimeout(),this.attemptReconnect(u0.RR_SIGNAL_DISCONNECTED))},this.log=Zf((n=t.loggerName)!==null&&n!==void 0?n:tu.Engine),this.loggerOptions={loggerName:t.loggerName,loggerContextCb:()=>this.logContext},this.client=new a$(void 0,this.loggerOptions),this.client.signalLatency=this.options.expSignalLatency,this.reconnectPolicy=this.options.reconnectPolicy,this.registerOnLineListener(),this.closingLock=new Qs,this.dataProcessLock=new Qs,this.dcBufferStatus=new Map([[hn.LOSSY,!0],[hn.RELIABLE,!0]]),this.client.onParticipantUpdate=r=>this.emit(ct.ParticipantUpdate,r),this.client.onConnectionQuality=r=>this.emit(ct.ConnectionQualityUpdate,r),this.client.onRoomUpdate=r=>this.emit(ct.RoomUpdate,r),this.client.onSubscriptionError=r=>this.emit(ct.SubscriptionError,r),this.client.onSubscriptionPermissionUpdate=r=>this.emit(ct.SubscriptionPermissionUpdate,r),this.client.onSpeakersChanged=r=>this.emit(ct.SpeakersChanged,r),this.client.onStreamStateUpdate=r=>this.emit(ct.StreamStateChanged,r),this.client.onRequestResponse=r=>this.emit(ct.SignalRequestResponse,r)}get logContext(){var t,n,r,i,o,s;return{room:(n=(t=this.latestJoinResponse)===null||t===void 0?void 0:t.room)===null||n===void 0?void 0:n.name,roomID:(i=(r=this.latestJoinResponse)===null||r===void 0?void 0:r.room)===null||i===void 0?void 0:i.sid,participant:(s=(o=this.latestJoinResponse)===null||o===void 0?void 0:o.participant)===null||s===void 0?void 0:s.identity,pID:this.participantSid}}join(t,n,r,i){return ye(this,void 0,void 0,function*(){this.url=t,this.token=n,this.signalOpts=r,this.maxJoinAttempts=r.maxRetries;try{this.joinAttempts+=1,this.setupSignalClientCallbacks();const o=yield this.client.join(t,n,r,i);return this._isClosed=!1,this.latestJoinResponse=o,this.subscriberPrimary=o.subscriberPrimary,this.pcManager||(yield this.configure(o)),(!this.subscriberPrimary||o.fastPublish)&&this.negotiate(),this.clientConfiguration=o.clientConfiguration,this.emit(ct.SignalConnected,o),o}catch(o){if(o instanceof mr&&o.reason===xn.ServerUnreachable&&(this.log.warn("Couldn't connect to server, attempt ".concat(this.joinAttempts," of ").concat(this.maxJoinAttempts),this.logContext),this.joinAttempts<this.maxJoinAttempts))return this.join(t,n,r,i);throw o}})}close(){return ye(this,void 0,void 0,function*(){const t=yield this.closingLock.lock();if(this.isClosed){t();return}try{this._isClosed=!0,this.joinAttempts=0,this.emit(ct.Closing),this.removeAllListeners(),this.deregisterOnLineListener(),this.clearPendingReconnect(),yield this.cleanupPeerConnections(),yield this.cleanupClient()}finally{t()}})}cleanupPeerConnections(){return ye(this,void 0,void 0,function*(){var t;yield(t=this.pcManager)===null||t===void 0?void 0:t.close(),this.pcManager=void 0;const n=r=>{r&&(r.close(),r.onbufferedamountlow=null,r.onclose=null,r.onclosing=null,r.onerror=null,r.onmessage=null,r.onopen=null)};n(this.lossyDC),n(this.lossyDCSub),n(this.reliableDC),n(this.reliableDCSub),this.lossyDC=void 0,this.lossyDCSub=void 0,this.reliableDC=void 0,this.reliableDCSub=void 0,this.reliableMessageBuffer=new wX,this.reliableDataSequence=1,this.reliableReceivedState.clear()})}cleanupClient(){return ye(this,void 0,void 0,function*(){yield this.client.close(),this.client.resetCallbacks()})}addTrack(t){if(this.pendingTrackResolvers[t.cid])throw new Sf("a track with the same ID has already been published");return new Promise((n,r)=>{const i=setTimeout(()=>{delete this.pendingTrackResolvers[t.cid],r(new mr("publication of local track timed out, no response from server",xn.Timeout))},1e4);this.pendingTrackResolvers[t.cid]={resolve:o=>{clearTimeout(i),n(o)},reject:()=>{clearTimeout(i),r(new Error("Cancelled publication by calling unpublish"))}},this.client.sendAddTrack(t)})}removeTrack(t){if(t.track&&this.pendingTrackResolvers[t.track.id]){const{reject:n}=this.pendingTrackResolvers[t.track.id];n&&n(),delete this.pendingTrackResolvers[t.track.id]}try{return this.pcManager.removeTrack(t),!0}catch(n){this.log.warn("failed to remove track",Object.assign(Object.assign({},this.logContext),{error:n}))}return!1}updateMuteStatus(t,n){this.client.sendMuteTrack(t,n)}get dataSubscriberReadyState(){var t;return(t=this.reliableDCSub)===null||t===void 0?void 0:t.readyState}getConnectedServerAddress(){return ye(this,void 0,void 0,function*(){var t;return(t=this.pcManager)===null||t===void 0?void 0:t.getConnectedAddress()})}setRegionUrlProvider(t){this.regionUrlProvider=t}configure(t){return ye(this,void 0,void 0,function*(){var n,r;if(this.pcManager&&this.pcManager.currentState!==Ei.NEW)return;this.participantSid=(n=t.participant)===null||n===void 0?void 0:n.sid;const i=this.makeRTCConfiguration(t);this.pcManager=new bFe(i,t.subscriberPrimary,this.loggerOptions),this.emit(ct.TransportsCreated,this.pcManager.publisher,this.pcManager.subscriber),this.pcManager.onIceCandidate=(o,s)=>{this.client.sendIceCandidate(o,s)},this.pcManager.onPublisherOffer=(o,s)=>{this.client.sendOffer(o,s)},this.pcManager.onDataChannel=this.handleDataChannel,this.pcManager.onStateChange=(o,s,a)=>ye(this,void 0,void 0,function*(){if(this.log.debug("primary PC state changed ".concat(o),this.logContext),["closed","disconnected","failed"].includes(s)&&(this.publisherConnectionPromise=void 0),o===Ei.CONNECTED){const u=this.pcState===xl.New;this.pcState=xl.Connected,u&&this.emit(ct.Connected,t)}else o===Ei.FAILED&&this.pcState===xl.Connected&&(this.pcState=xl.Disconnected,this.handleDisconnect("peerconnection failed",a==="failed"?u0.RR_SUBSCRIBER_FAILED:u0.RR_PUBLISHER_FAILED));const c=this.client.isDisconnected||this.client.currentState===Lr.RECONNECTING,l=[Ei.FAILED,Ei.CLOSING,Ei.CLOSED].includes(o);c&&l&&!this._isClosed&&this.emit(ct.Offline)}),this.pcManager.onTrack=o=>{this.emit(ct.MediaTrackAdded,o.track,o.streams[0],o.receiver)},$Fe((r=t.serverInfo)===null||r===void 0?void 0:r.protocol)||this.createDataChannels()})}setupSignalClientCallbacks(){this.client.onAnswer=(t,n)=>ye(this,void 0,void 0,function*(){this.pcManager&&(this.log.debug("received server answer",Object.assign(Object.assign({},this.logContext),{RTCSdpType:t.type})),yield this.pcManager.setPublisherAnswer(t,n))}),this.client.onTrickle=(t,n)=>{this.pcManager&&(this.log.debug("got ICE candidate from peer",Object.assign(Object.assign({},this.logContext),{candidate:t,target:n})),this.pcManager.addIceCandidate(t,n))},this.client.onOffer=(t,n)=>ye(this,void 0,void 0,function*(){if(this.latestRemoteOfferId=n,!this.pcManager)return;const r=yield this.pcManager.createSubscriberAnswerFromOffer(t,n);r&&this.client.sendAnswer(r,n)}),this.client.onLocalTrackPublished=t=>{var n;if(this.log.debug("received trackPublishedResponse",Object.assign(Object.assign({},this.logContext),{cid:t.cid,track:(n=t.track)===null||n===void 0?void 0:n.sid})),!this.pendingTrackResolvers[t.cid]){this.log.error("missing track resolver for ".concat(t.cid),Object.assign(Object.assign({},this.logContext),{cid:t.cid}));return}const{resolve:r}=this.pendingTrackResolvers[t.cid];delete this.pendingTrackResolvers[t.cid],r(t.track)},this.client.onLocalTrackUnpublished=t=>{this.emit(ct.LocalTrackUnpublished,t)},this.client.onLocalTrackSubscribed=t=>{this.emit(ct.LocalTrackSubscribed,t)},this.client.onTokenRefresh=t=>{this.token=t},this.client.onRemoteMuteChanged=(t,n)=>{this.emit(ct.RemoteMute,t,n)},this.client.onSubscribedQualityUpdate=t=>{this.emit(ct.SubscribedQualityUpdate,t)},this.client.onRoomMoved=t=>{var n;this.participantSid=(n=t.participant)===null||n===void 0?void 0:n.sid,this.latestJoinResponse&&(this.latestJoinResponse.room=t.room),this.emit(ct.RoomMoved,t)},this.client.onClose=()=>{this.handleDisconnect("signal",u0.RR_SIGNAL_DISCONNECTED)},this.client.onLeave=t=>{switch(this.log.debug("client leave request",Object.assign(Object.assign({},this.logContext),{reason:t==null?void 0:t.reason})),t.regions&&this.regionUrlProvider&&(this.log.debug("updating regions",this.logContext),this.regionUrlProvider.setServerReportedRegions(t.regions)),t.action){case ky.DISCONNECT:this.emit(ct.Disconnected,t==null?void 0:t.reason),this.close();break;case ky.RECONNECT:this.fullReconnectOnNext=!0,this.handleDisconnect(AM);break;case ky.RESUME:this.handleDisconnect(AM)}}}makeRTCConfiguration(t){var n;const r=Object.assign({},this.rtcConfig);if(!((n=this.signalOpts)===null||n===void 0)&&n.e2eeEnabled&&(this.log.debug("E2EE - setting up transports with insertable streams",this.logContext),r.encodedInsertableStreams=!0),t.iceServers&&!r.iceServers){const i=[];t.iceServers.forEach(o=>{const s={urls:o.urls};o.username&&(s.username=o.username),o.credential&&(s.credential=o.credential),i.push(s)}),r.iceServers=i}return t.clientConfiguration&&t.clientConfiguration.forceRelay===K_.ENABLED&&(r.iceTransportPolicy="relay"),r.sdpSemantics="unified-plan",r.continualGatheringPolicy="gather_continually",r}createDataChannels(){this.pcManager&&(this.lossyDC&&(this.lossyDC.onmessage=null,this.lossyDC.onerror=null),this.reliableDC&&(this.reliableDC.onmessage=null,this.reliableDC.onerror=null),this.lossyDC=this.pcManager.createPublisherDataChannel(NX,{ordered:!1,maxRetransmits:0}),this.reliableDC=this.pcManager.createPublisherDataChannel(MX,{ordered:!0}),this.lossyDC.onmessage=this.handleDataMessage,this.reliableDC.onmessage=this.handleDataMessage,this.lossyDC.onerror=this.handleDataError,this.reliableDC.onerror=this.handleDataError,this.lossyDC.bufferedAmountLowThreshold=65535,this.reliableDC.bufferedAmountLowThreshold=65535,this.lossyDC.onbufferedamountlow=this.handleBufferedAmountLow,this.reliableDC.onbufferedamountlow=this.handleBufferedAmountLow)}createSender(t,n,r){return ye(this,void 0,void 0,function*(){if(KF())return yield this.createTransceiverRTCRtpSender(t,n,r);if(YF())return this.log.warn("using add-track fallback",this.logContext),yield this.createRTCRtpSender(t.mediaStreamTrack);throw new fo("Required webRTC APIs not supported on this device")})}createSimulcastSender(t,n,r,i){return ye(this,void 0,void 0,function*(){if(KF())return this.createSimulcastTransceiverSender(t,n,r,i);if(YF())return this.log.debug("using add-track fallback",this.logContext),this.createRTCRtpSender(t.mediaStreamTrack);throw new fo("Cannot stream on this device")})}createTransceiverRTCRtpSender(t,n,r){return ye(this,void 0,void 0,function*(){if(!this.pcManager)throw new fo("publisher is closed");const i=[];t.mediaStream&&i.push(t.mediaStream),Im(t)&&(t.codec=n.videoCodec);const o={direction:"sendonly",streams:i};return r&&(o.sendEncodings=r),(yield this.pcManager.addPublisherTransceiver(t.mediaStreamTrack,o)).sender})}createSimulcastTransceiverSender(t,n,r,i){return ye(this,void 0,void 0,function*(){if(!this.pcManager)throw new fo("publisher is closed");const o={direction:"sendonly"};i&&(o.sendEncodings=i);const s=yield this.pcManager.addPublisherTransceiver(n.mediaStreamTrack,o);if(r.videoCodec)return t.setSimulcastTrackSender(r.videoCodec,s.sender),s.sender})}createRTCRtpSender(t){return ye(this,void 0,void 0,function*(){if(!this.pcManager)throw new fo("publisher is closed");return this.pcManager.addPublisherTrack(t)})}attemptReconnect(t){return ye(this,void 0,void 0,function*(){var n,r,i;if(!this._isClosed){if(this.attemptingReconnect){gn.warn("already attempting reconnect, returning early",this.logContext);return}(((n=this.clientConfiguration)===null||n===void 0?void 0:n.resumeConnection)===K_.DISABLED||((i=(r=this.pcManager)===null||r===void 0?void 0:r.currentState)!==null&&i!==void 0?i:Ei.NEW)===Ei.NEW)&&(this.fullReconnectOnNext=!0);try{this.attemptingReconnect=!0,this.fullReconnectOnNext?yield this.restartConnection():yield this.resumeConnection(t),this.clearPendingReconnect(),this.fullReconnectOnNext=!1}catch(o){this.reconnectAttempts+=1;let s=!0;o instanceof fo?(this.log.debug("received unrecoverable error",Object.assign(Object.assign({},this.logContext),{error:o})),s=!1):o instanceof d0||(this.fullReconnectOnNext=!0),s?this.handleDisconnect("reconnect",u0.RR_UNKNOWN):(this.log.info("could not recover connection after ".concat(this.reconnectAttempts," attempts, ").concat(Date.now()-this.reconnectStart,"ms. giving up"),this.logContext),this.emit(ct.Disconnected),yield this.close())}finally{this.attemptingReconnect=!1}}})}getNextRetryDelay(t){try{return this.reconnectPolicy.nextRetryDelayInMs(t)}catch(n){this.log.warn("encountered error in reconnect policy",Object.assign(Object.assign({},this.logContext),{error:n}))}return null}restartConnection(t){return ye(this,void 0,void 0,function*(){var n,r,i;try{if(!this.url||!this.token)throw new fo("could not reconnect, url or token not saved");this.log.info("reconnecting, attempt: ".concat(this.reconnectAttempts),this.logContext),this.emit(ct.Restarting),this.client.isDisconnected||(yield this.client.sendLeave()),yield this.cleanupPeerConnections(),yield this.cleanupClient();let o;try{if(!this.signalOpts)throw this.log.warn("attempted connection restart, without signal options present",this.logContext),new d0;o=yield this.join(t??this.url,this.token,this.signalOpts)}catch(s){throw s instanceof mr&&s.reason===xn.NotAllowed?new fo("could not reconnect, token might be expired"):new d0}if(this.shouldFailNext)throw this.shouldFailNext=!1,new Error("simulated failure");if(this.client.setReconnected(),this.emit(ct.SignalRestarted,o),yield this.waitForPCReconnected(),this.client.currentState!==Lr.CONNECTED)throw new d0("Signal connection got severed during reconnect");(n=this.regionUrlProvider)===null||n===void 0||n.resetAttempts(),this.emit(ct.Restarted)}catch(o){const s=yield(r=this.regionUrlProvider)===null||r===void 0?void 0:r.getNextBestRegionUrl();if(s){yield this.restartConnection(s);return}else throw(i=this.regionUrlProvider)===null||i===void 0||i.resetAttempts(),o}})}resumeConnection(t){return ye(this,void 0,void 0,function*(){var n;if(!this.url||!this.token)throw new fo("could not reconnect, url or token not saved");if(!this.pcManager)throw new fo("publisher and subscriber connections unset");this.log.info("resuming signal connection, attempt ".concat(this.reconnectAttempts),this.logContext),this.emit(ct.Resuming);let r;try{this.setupSignalClientCallbacks(),r=yield this.client.reconnect(this.url,this.token,this.participantSid,t)}catch(i){let o="";throw i instanceof Error&&(o=i.message,this.log.error(i.message,Object.assign(Object.assign({},this.logContext),{error:i}))),i instanceof mr&&i.reason===xn.NotAllowed?new fo("could not reconnect, token might be expired"):i instanceof mr&&i.reason===xn.LeaveRequest?i:new d0(o)}
vendor: 4,955 bytes, line 422
422if(this.emit(ct.SignalResumed),r){const i=this.makeRTCConfiguration(r);this.pcManager.updateConfiguration(i),this.latestJoinResponse&&(this.latestJoinResponse.serverInfo=r.serverInfo)}else this.log.warn("Did not receive reconnect response",this.logContext);if(this.shouldFailNext)throw this.shouldFailNext=!1,new Error("simulated failure");if(yield this.pcManager.triggerIceRestart(),yield this.waitForPCReconnected(),this.client.currentState!==Lr.CONNECTED)throw new d0("Signal connection got severed during reconnect");this.client.setReconnected(),((n=this.reliableDC)===null||n===void 0?void 0:n.readyState)==="open"&&this.reliableDC.id===null&&this.createDataChannels(),r!=null&&r.lastMessageSeq&&this.resendReliableMessagesForResume(r.lastMessageSeq),this.emit(ct.Resumed)})}waitForPCInitialConnection(t,n){return ye(this,void 0,void 0,function*(){if(!this.pcManager)throw new fo("PC manager is closed");yield this.pcManager.ensurePCTransportConnection(n,t)})}waitForPCReconnected(){return ye(this,void 0,void 0,function*(){this.pcState=xl.Reconnecting,this.log.debug("waiting for peer connection to reconnect",this.logContext);try{if(yield ka(jFe),!this.pcManager)throw new fo("PC manager is closed");yield this.pcManager.ensurePCTransportConnection(void 0,this.peerConnectionTimeout),this.pcState=xl.Connected}catch(t){throw this.pcState=xl.Disconnected,new mr("could not establish PC connection, ".concat(t.message),xn.InternalError)}})}publishRpcResponse(t,n,r,i){return ye(this,void 0,void 0,function*(){const o=new ya({destinationIdentities:[t],kind:hn.RELIABLE,value:{case:"rpcResponse",value:new nhe({requestId:n,value:i?{case:"error",value:i.toProto()}:{case:"payload",value:r??""}})}});yield this.sendDataPacket(o,hn.RELIABLE)})}publishRpcAck(t,n){return ye(this,void 0,void 0,function*(){const r=new ya({destinationIdentities:[t],kind:hn.RELIABLE,value:{case:"rpcAck",value:new the({requestId:n})}});yield this.sendDataPacket(r,hn.RELIABLE)})}sendDataPacket(t,n){return ye(this,void 0,void 0,function*(){yield this.ensurePublisherConnected(n),n===hn.RELIABLE&&(t.sequence=this.reliableDataSequence,this.reliableDataSequence+=1);const r=t.toBinary(),i=this.dataChannelForKind(n);if(i){if(n===hn.RELIABLE&&this.reliableMessageBuffer.push({data:r,sequence:t.sequence}),this.attemptingReconnect)return;i.send(r)}this.updateAndEmitDCBufferStatus(n)})}resendReliableMessagesForResume(t){return ye(this,void 0,void 0,function*(){yield this.ensurePublisherConnected(hn.RELIABLE);const n=this.dataChannelForKind(hn.RELIABLE);n&&(this.reliableMessageBuffer.popToSequence(t),this.reliableMessageBuffer.getAll().forEach(r=>{n.send(r.data)})),this.updateAndEmitDCBufferStatus(hn.RELIABLE)})}waitForBufferStatusLow(t){return new Promise((n,r)=>ye(this,void 0,void 0,function*(){if(this.isBufferStatusLow(t))n();else{const i=()=>r("Engine closed");for(this.once(ct.Closing,i);!this.dcBufferStatus.get(t);)yield ka(10);this.off(ct.Closing,i),n()}}))}ensureDataTransportConnected(t){return ye(this,arguments,void 0,function(n){var r=this;let i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.subscriberPrimary;return(function*(){var o;if(!r.pcManager)throw new fo("PC manager is closed");const s=i?r.pcManager.subscriber:r.pcManager.publisher,a=i?"Subscriber":"Publisher";if(!s)throw new mr("".concat(a," connection not set"),xn.InternalError);let c=!1;!i&&!r.dataChannelForKind(n,i)&&(r.createDataChannels(),c=!0),!c&&!i&&!r.pcManager.publisher.isICEConnected&&r.pcManager.publisher.getICEConnectionState()!=="checking"&&(c=!0),c&&r.negotiate();const l=r.dataChannelForKind(n,i);if((l==null?void 0:l.readyState)==="open")return;const u=new Date().getTime()+r.peerConnectionTimeout;for(;new Date().getTime()<u;){if(s.isICEConnected&&((o=r.dataChannelForKind(n,i))===null||o===void 0?void 0:o.readyState)==="open")return;yield ka(50)}throw new mr("could not establish ".concat(a," connection, state: ").concat(s.getICEConnectionState()),xn.InternalError)})()})}ensurePublisherConnected(t){return ye(this,void 0,void 0,function*(){this.publisherConnectionPromise||(this.publisherConnectionPromise=this.ensureDataTransportConnected(t,!1)),yield this.publisherConnectionPromise})}verifyTransport(){return!(!this.pcManager||this.pcManager.currentState!==Ei.CONNECTED||!this.client.ws||this.client.ws.readyState===WebSocket.CLOSED)}negotiate(){return ye(this,void 0,void 0,function*(){return new Promise((t,n)=>ye(this,void 0,void 0,function*(){if(!this.pcManager){n(new WF("PC manager is closed"));return}this.pcManager.requirePublisher(),this.pcManager.publisher.getTransceivers().length==0&&!this.lossyDC&&!this.reliableDC&&this.createDataChannels();const r=new AbortController,i=()=>{r.abort(),this.log.debug("engine disconnected while negotiation was ongoing",this.logContext),t()};this.isClosed&&n("cannot negotiate on closed engine"),this.on(ct.Closing,i),this.pcManager.publisher.once(Iy.RTPVideoPayloadTypes,o=>{const s=new Map;o.forEach(a=>
vendor: 4,202 bytes, line 422
422{const c=a.codec.toLowerCase();H8e(c)&&s.set(a.payload,c)}),this.emit(ct.RTPVideoMapUpdate,s)});try{yield this.pcManager.negotiate(r),t()}catch(o){o instanceof WF&&(this.fullReconnectOnNext=!0),this.handleDisconnect("negotiation",u0.RR_UNKNOWN),n(o)}finally{this.off(ct.Closing,i)}}))})}dataChannelForKind(t,n){if(n){if(t===hn.LOSSY)return this.lossyDCSub;if(t===hn.RELIABLE)return this.reliableDCSub}else{if(t===hn.LOSSY)return this.lossyDC;if(t===hn.RELIABLE)return this.reliableDC}}sendSyncState(t,n){var r,i;if(!this.pcManager){this.log.warn("sync state cannot be sent without peer connection setup",this.logContext);return}const o=this.pcManager.subscriber.getLocalDescription(),s=this.pcManager.subscriber.getRemoteDescription(),a=(i=(r=this.signalOpts)===null||r===void 0?void 0:r.autoSubscribe)!==null&&i!==void 0?i:!0,c=new Array,l=new Array;t.forEach(u=>{u.isDesired!==a&&c.push(u.trackSid),u.isEnabled||l.push(u.trackSid)}),this.client.sendSyncState(new bhe({answer:o?YA({sdp:o.sdp,type:o.type}):void 0,offer:s?YA({sdp:s.sdp,type:s.type}):void 0,subscription:new tP({trackSids:c,subscribe:!a,participantTracks:[]}),publishTracks:X8e(n),dataChannels:this.dataChannelsInfo(),trackSidsDisabled:l,datachannelReceiveStates:this.reliableReceivedState.map((u,d)=>new whe({publisherSid:d,lastSeq:u}))}))}failNext(){this.shouldFailNext=!0}dataChannelsInfo(){const t=[],n=(r,i)=>{(r==null?void 0:r.id)!==void 0&&r.id!==null&&t.push(new She({label:r.label,id:r.id,target:i}))};return n(this.dataChannelForKind(hn.LOSSY),jl.PUBLISHER),n(this.dataChannelForKind(hn.RELIABLE),jl.PUBLISHER),n(this.dataChannelForKind(hn.LOSSY,!0),jl.SUBSCRIBER),n(this.dataChannelForKind(hn.RELIABLE,!0),jl.SUBSCRIBER),t}clearReconnectTimeout(){this.reconnectTimeout&&os.clearTimeout(this.reconnectTimeout)}clearPendingReconnect(){this.clearReconnectTimeout(),this.reconnectAttempts=0}registerOnLineListener(){Sa()&&window.addEventListener("online",this.handleBrowserOnLine)}deregisterOnLineListener(){Sa()&&window.removeEventListener("online",this.handleBrowserOnLine)}}class d0 extends Error{}function $Fe(e){return e!==void 0&&e>13}function HFe(e,t){const n=e.participantIdentity?e.participantIdentity:t.participantIdentity;e.participantIdentity=n,t.participantIdentity=n;const r=e.destinationIdentities.length!==0?e.destinationIdentities:t.destinationIdentities;e.destinationIdentities=r,t.destinationIdentities=r}class oj{constructor(t,n){this.lastUpdateAt=0,this.settingsCacheTime=3e3,this.attemptedRegions=[],this.serverUrl=new URL(t),this.token=n}updateToken(t){this.token=t}isCloud(){return XF(this.serverUrl)}getServerUrl(){return this.serverUrl}getNextBestRegionUrl(t){return ye(this,void 0,void 0,function*(){if(!this.isCloud())throw Error("region availability is only supported for LiveKit Cloud domains");(!this.regionSettings||Date.now()-this.lastUpdateAt>this.settingsCacheTime)&&(this.regionSettings=yield this.fetchRegionSettings(t));const n=this.regionSettings.regions.filter(r=>!this.attemptedRegions.find(i=>i.url===r.url));if(n.length>0){const r=n[0];return this.attemptedRegions.push(r),gn.debug("next region: ".concat(r.region)),r.url}else return null})}resetAttempts(){this.attemptedRegions=[]}fetchRegionSettings(t){return ye(this,void 0,void 0,function*(){const n=yield fetch("".concat(zFe(this.serverUrl),"/regions"),{headers:{authorization:"Bearer ".concat(this.token)},signal:t});if(n.ok){const r=yield n.json();return this.lastUpdateAt=Date.now(),r}else throw new mr("Could not fetch region settings: ".concat(n.statusText),n.status===401?xn.NotAllowed:xn.InternalError,n.status)})}setServerReportedRegions(t){this.regionSettings=t,this.lastUpdateAt=Date.now()}}function zFe(e){return"".concat(e.protocol.replace("ws","http"),"//").concat(e.host,"/settings")}class mpe{get info(){return this._info}validateBytesReceived(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;if(!(typeof this.totalByteSize!="number"||this.totalByteSize===0)){if(t&&this.bytesReceived<this.totalByteSize)throw new fp("Not enough chunk(s) received - expected ".concat(this.totalByteSize," bytes of data total, only received ").concat(this.bytesReceived," bytes"),Ul.Incomplete);if(this.bytesReceived>
422this.totalByteSize)throw new fp("Extra chunk(s) received - expected ".concat(this.totalByteSize," bytes of data total, received ").concat(this.bytesReceived," bytes"),Ul.LengthExceeded)}}constructor(t,n,r,i){this.reader=n,this.totalByteSize=r,this._info=t,this.bytesReceived=0,this.outOfBandFailureRejectingFuture=i}}class VFe extends mpe{handleChunkReceived(t){var n;this.bytesReceived+=t.content.byteLength,this.validateBytesReceived();const r=this.totalByteSize?this.bytesReceived/this.totalByteSize:void 0;(n=this.onProgress)===null||n===void 0||n.call(this,r)}[Symbol.asyncIterator](){const t=this.reader.getReader();let n=new Ju,r=null,i=null;if(this.signal){const s=this.signal;i=()=>{var a;(a=n.reject)===null||a===void 0||a.call(n,s.reason)},s.addEventListener("abort",i),r=s}const o=()=>{t.releaseLock(),r&&i&&r.removeEventListener("abort",i),this.signal=void 0};return{next:()=>ye(this,void 0,void 0,function*(){var s,a;try{const{done:c,value:l}=yield Promise.race([t.read(),n.promise,(a=(s=this.outOfBandFailureRejectingFuture)===null||s===void 0?void 0:s.promise)!==null&&a!==void 0?a:new Promise(()=>{})]);return c?(this.validateBytesReceived(!0),{done:!0,value:void 0}):(this.handleChunkReceived(l),{done:!1,value:l.content})}catch(c){throw o(),c}}),return(){return ye(this,void 0,void 0,function*(){return o(),{done:!0,value:void 0}})}}}withAbortSignal(t){return this.signal=t,this}readAll(){return ye(this,arguments,void 0,function(){var t=this;let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return(function*(){var r,i,o,s;let a=new Set;const c=n.signal?t.withAbortSignal(n.signal):t;try{for(var l=!0,u=wf(c),d;d=yield u.next(),r=d.done,!r;l=!0){s=d.value,l=!1;const f=s;a.add(f)}}catch(f){i={error:f}}finally{try{!l&&!r&&(o=u.return)&&(yield o.call(u))}finally{if(i)throw i.error}}return Array.from(a)})()})}}class WFe extends mpe{constructor(t,n,r,i){super(t,n,r,i),this.receivedChunks=new Map}handleChunkReceived(t){var n;const r=Cx(t.chunkIndex),i=this.receivedChunks.get(r);if(i&&i.version>t.version)return;this.receivedChunks.set(r,t),this.bytesReceived+=t.content.byteLength,this.validateBytesReceived();const o=this.totalByteSize?this.bytesReceived/this.totalByteSize:void 0;(n=this.onProgress)===null||n===void 0||n.call(this,o)}[Symbol.asyncIterator](){const t=this.reader.getReader(),n=new TextDecoder("utf-8",{fatal:!0});let r=new Ju,i=null,o=null;if(this.signal){const a=this.signal;o=()=>{var c;(c=r.reject)===null||c===void 0||c.call(r,a.reason)},a.addEventListener("abort",o),i=a}const s=()=>{t.releaseLock(),i&&o&&i.removeEventListener("abort",o),this.signal=void 0};return{next:()=>ye(this,void 0,void 0,function*(){var a,c;try{const{done:l,value:u}=yield Promise.race([t.read(),r.promise,(c=(a=this.outOfBandFailureRejectingFuture)===null||a===void 0?void 0:a.promise)!==null&&c!==void 0?c:new Promise(()=>{})]);if(l)return this.validateBytesReceived(!0),{done:!0,value:void 0};{this.handleChunkReceived(u);let d;try{d=n.decode(u.content)}catch(f){throw new fp("Cannot decode datastream chunk ".concat(u.chunkIndex," as text: ").concat(f),Ul.DecodeFailed)}return{done:!1,value:d}}}catch(l){throw s(),l}}),return(){return ye(this,void 0,void 0,function*(){return s(),{done:!0,value:void 0}})}}}withAbortSignal(t){return this.signal=t,this}readAll(){return ye(this,arguments,void 0,function(){var t=this;let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return(function*(){var r,i,o,s;let a="";const c=n.signal?t.withAbortSignal(n.signal):t;try{for(var l=!0,u=wf(c),d;d=yield u.next(),r=d.done,!r;l=!0)s=d.value,l=!1,a+=s}catch(f){i={error:f}}finally{try{!l&&!r&&(o=u.return)&&(yield o.call(u))}finally{if(i)throw i.error}}return a})()})}}class qFe{constructor(){this.log=gn,this.byteStreamControllers=new Map,this.textStreamControllers=new Map,this.byteStreamHandlers=new Map,this.textStreamHandlers=new Map}registerTextStreamHandler(t,n){if(this.textStreamHandlers.has(t))throw new fp('A text stream handler for topic "'.concat(t,'" has already been set.'),Ul.HandlerAlreadyRegistered);this.textStreamHandlers.set(t,n)}unregisterTextStreamHandler(t){this.textStreamHandlers.delete(t)}registerByteStreamHandler(t,n){if(this.byteStreamHandlers.has(t))throw new fp('A byte stream handler for topic "'.concat(t,'" has already been set.'),Ul.HandlerAlreadyRegistered);this.byteStreamHandlers.set(t,n)}unregisterByteStreamHandler(t){this.byteStreamHandlers.delete(t)}clearHandlersAndControllers(){this.byteStreamControllers.clear(),this.textStreamControllers.clear(),this.byteStreamHandlers.clear(),this.textStreamHandlers.clear()}
422validateParticipantHasNoActiveDataStreams(t){var n,r,i,o;const s=Array.from(this.textStreamControllers.entries()).filter(c=>c[1].sendingParticipantIdentity===t),a=Array.from(this.byteStreamControllers.entries()).filter(c=>c[1].sendingParticipantIdentity===t);if(s.length>0||a.length>0){const c=new fp("Participant ".concat(t," unexpectedly disconnected in the middle of sending data"),Ul.AbnormalEnd);for(const[l,u]of a)(r=(n=u.outOfBandFailureRejectingFuture).reject)===null||r===void 0||r.call(n,c),this.byteStreamControllers.delete(l);for(const[l,u]of s)(o=(i=u.outOfBandFailureRejectingFuture).reject)===null||o===void 0||o.call(i,c),this.textStreamControllers.delete(l)}}handleDataStreamPacket(t){return ye(this,void 0,void 0,function*(){switch(t.value.case){case"streamHeader":return this.handleStreamHeader(t.value.value,t.participantIdentity);case"streamChunk":return this.handleStreamChunk(t.value.value);case"streamTrailer":return this.handleStreamTrailer(t.value.value);default:throw new Error('DataPacket of value "'.concat(t.value.case,'" is not data stream related!'))}})}handleStreamHeader(t,n){return ye(this,void 0,void 0,function*(){var r;if(t.contentHeader.case==="byteHeader"){const i=this.byteStreamHandlers.get(t.topic);if(!i){this.log.debug("ignoring incoming byte stream due to no handler for topic",t.topic);return}let o;const s=new Ju,a={id:t.streamId,name:(r=t.contentHeader.value.name)!==null&&r!==void 0?r:"unknown",mimeType:t.mimeType,size:t.totalLength?Number(t.totalLength):void 0,topic:t.to
vendor: 46,837 bytes, line 422
422pic,timestamp:Cx(t.timestamp),attributes:t.attributes},c=new ReadableStream({start:l=>{if(o=l,this.textStreamControllers.has(t.streamId))throw new fp("A data stream read is already in progress for a stream with id ".concat(t.streamId,"."),Ul.AlreadyOpened);this.byteStreamControllers.set(t.streamId,{info:a,controller:o,startTime:Date.now(),sendingParticipantIdentity:n,outOfBandFailureRejectingFuture:s})}});i(new VFe(a,c,Cx(t.totalLength),s),{identity:n})}else if(t.contentHeader.case==="textHeader"){const i=this.textStreamHandlers.get(t.topic);if(!i){this.log.debug("ignoring incoming text stream due to no handler for topic",t.topic);return}let o;const s=new Ju,a={id:t.streamId,mimeType:t.mimeType,size:t.totalLength?Number(t.totalLength):void 0,topic:t.topic,timestamp:Number(t.timestamp),attributes:t.attributes},c=new ReadableStream({start:l=>{if(o=l,this.textStreamControllers.has(t.streamId))throw new fp("A data stream read is already in progress for a stream with id ".concat(t.streamId,"."),Ul.AlreadyOpened);this.textStreamControllers.set(t.streamId,{info:a,controller:o,startTime:Date.now(),sendingParticipantIdentity:n,outOfBandFailureRejectingFuture:s})}});i(new WFe(a,c,Cx(t.totalLength),s),{identity:n})}})}handleStreamChunk(t){const n=this.byteStreamControllers.get(t.streamId);n&&t.content.length>0&&n.controller.enqueue(t);const r=this.textStreamControllers.get(t.streamId);r&&t.content.length>0&&r.controller.enqueue(t)}handleStreamTrailer(t){const n=this.textStreamControllers.get(t.streamId);n&&(n.info.attributes=Object.assign(Object.assign({},n.info.attributes),t.attributes),n.controller.close(),this.textStreamControllers.delete(t.streamId));const r=this.byteStreamControllers.get(t.streamId);r&&(r.info.attributes=Object.assign(Object.assign({},r.info.attributes),t.attributes),r.controller.close(),this.byteStreamControllers.delete(t.streamId))}}class gpe{constructor(t,n,r){this.writableStream=t,this.defaultWriter=t.getWriter(),this.onClose=r,this.info=n}write(t){return this.defaultWriter.write(t)}close(){return ye(this,void 0,void 0,function*(){var t;yield this.defaultWriter.close(),this.defaultWriter.releaseLock(),(t=this.onClose)===null||t===void 0||t.call(this)})}}class GFe extends gpe{}class KFe extends gpe{}const DX=15e3;class YFe{constructor(t,n){this.engine=t,this.log=n}setupEngine(t){this.engine=t}sendText(t,n){return ye(this,void 0,void 0,function*(){var r;const i=crypto.randomUUID(),s=new TextEncoder().encode(t).byteLength,a=(r=n==null?void 0:n.attachments)===null||r===void 0?void 0:r.map(()=>crypto.randomUUID()),c=new Array(a?a.length+1:1).fill(0),l=(d,f)=>{var p;c[f]=d;const g=c.reduce((m,y)=>m+y,0);(p=n==null?void 0:n.onProgress)===null||p===void 0||p.call(n,g)},u=yield this.streamText({streamId:i,totalSize:s,destinationIdentities:n==null?void 0:n.destinationIdentities,topic:n==null?void 0:n.topic,attachedStreamIds:a,attributes:n==null?void 0:n.attributes});return yield u.write(t),l(1,0),yield u.close(),n!=null&&n.attachments&&a&&(yield Promise.all(n.attachments.map((d,f)=>ye(this,void 0,void 0,function*(){return this._sendFile(a[f],d,{topic:n.topic,mimeType:d.type,onProgress:p=>{l(p,f+1)}})})))),u.info})}streamText(t){return ye(this,void 0,void 0,function*(){var n,r;const i=(n=t==null?void 0:t.streamId)!==null&&n!==void 0?n:crypto.randomUUID(),o={id:i,mimeType:"text/plain",timestamp:Date.now(),topic:(r=t==null?void 0:t.topic)!==null&&r!==void 0?r:"",size:t==null?void 0:t.totalSize,attributes:t==null?void 0:t.attributes},s=new PF({streamId:i,mimeType:o.mimeType,topic:o.topic,timestamp:ag(o.timestamp),totalLength:ag(t==null?void 0:t.totalSize),attributes:o.attributes,contentHeader:{case:"textHeader",value:new uhe({version:t==null?void 0:t.version,attachedStreamIds:t==null?void 0:t.attachedStreamIds,replyToStreamId:t==null?void 0:t.replyToStreamId,operationType:(t==null?void 0:t.type)==="update"?RF.UPDATE:RF.CREATE})}}),a=t==null?void 0:t.destinationIdentities,c=new ya({destinationIdentities:a,value:{case:"streamHeader",value:s}});yield this.engine.sendDataPacket(c,hn.RELIABLE);let l=0;const u=this.engine,d=new WritableStream({write(g){return ye(this,void 0,void 0,function*(){for(const m of K8e(g,DX)){yield u.waitForBufferStatusLow(hn.RELIABLE);const y=new OF({content:m,streamId:i,chunkIndex:ag(l)}),v=new ya({destinationIdentities:a,value:{case:"streamChunk",value:y}});yield u.sendDataPacket(v,hn.RELIABLE),l+=1}})},close(){return ye(this,void 0,void 0,function*(){const g=new NF({streamId:i}),m=new ya({destinationIdentities:a,value:{case:"streamTrailer",value:g}});yield u.sendDataPacket(m,hn.RELIABLE)})},abort(g){console.log("Sink error:",g)}});let f=()=>ye(this,void 0,void 0,function*(){yield p.close()});u.once(ct.Closing,f);const p=new GFe(d,o,()=>this.engine.off(ct.Closing,f));return p})}sendFile(t,n){return ye(this,void 0,void 0,function*(){const r=crypto.randomUUID();return yield this._sendFile(r,t,n),{id:r}})}_sendFile(t,n,r){return ye(this,void 0,void 0,function*(){var i;const o=yield this.streamBytes({streamId:t,totalSize:n.size,name:n.name,mimeType:(i=r==null?void 0:r.mimeType)!==null&&i!==void 0?i:n.type,topic:r==null?void 0:r.topic,destinationIdentities:r==null?void 0:r.destinationIdentities}),s=n.stream().getReader();for(;;){const{done:a,value:c}=yield s.read();if(a)break;yield o.write(c)}return yield o.close(),o.info})}streamBytes(t){return ye(this,void 0,void 0,function*(){var n,r,i,o,s;const a=(n=t==null?void 0:t.streamId)!==null&&n!==void 0?n:crypto.randomUUID(),c=t==null?void 0:t.destinationIdentities,l={id:a,mimeType:(r=t==null?void 0:t.mimeType)!==null&&r!==void 0?r:"application/octet-stream",topic:(i=t==null?void 0:t.topic)!==null&&i!==void 0?i:"",timestamp:Date.now(),attributes:t==null?void 0:t.attributes,size:t==null?void 0:t.totalSize,name:(o=t==null?void 0:t.name)!==null&&o!==void 0?o:"unknown"},u=new PF({totalLength:ag((s=l.size)!==null&&s!==void 0?s:0),mimeType:l.mimeType,streamId:a,topic:l.topic,timestamp:ag(Date.now()),attributes:l.attributes,contentHeader:{case:"byteHeader",value:new dhe({name:l.name})}}),d=new ya({destinationIdentities:c,value:{case:"streamHeader",value:u}});yield this.engine.sendDataPacket(d,hn.RELIABLE);let f=0;const p=new Qs,g=this.engine,m=this.log,y=new WritableStream({write(w){return ye(this,void 0,void 0,function*(){const S=yield p.lock();let C=0;try{for(;C<w.byteLength;){const E=w.slice(C,C+DX);yield g.waitForBufferStatusLow(hn.RELIABLE);const T=new ya({destinationIdentities:c,value:{case:"streamChunk",value:new OF({content:E,streamId:a,chunkIndex:ag(f)})}});yield g.sendDataPacket(T,hn.RELIABLE),f+=1,C+=E.byteLength}}finally{S()}})},close(){return ye(this,void 0,void 0,function*(){const w=new NF({streamId:a}),S=new ya({destinationIdentities:c,value:{case:"streamTrailer",value:w}});yield g.sendDataPacket(S,hn.RELIABLE)})},abort(w){m.error("Sink error:",w)}});return new KFe(y,l)})}}class vpe extends Re{constructor(t,n,r,i,o){super(t,r,o),this.sid=n,this.receiver=i}get isLocal(){return!1}setMuted(t){this.isMuted!==t&&(this.isMuted=t,this._mediaStreamTrack.enabled=!t,this.emit(t?it.Muted:it.Unmuted,this))}setMediaStream(t){this.mediaStream=t;const n=r=>{r.track===this._mediaStreamTrack&&(t.removeEventListener("removetrack",n),this.receiver&&"playoutDelayHint"in this.receiver&&(this.receiver.playoutDelayHint=void 0),this.receiver=void 0,this._currentBitrate=0,this.emit(it.Ended,this))};t.addEventListener("removetrack",n)}start(){this.startMonitor(),super.enable()}stop(){this.stopMonitor(),super.disable()}getRTCStatsReport(){return ye(this,void 0,void 0,function*(){var t;return!((t=this.receiver)===null||t===void 0)&&t.getStats?yield this.receiver.getStats():void 0})}setPlayoutDelay(t){this.receiver?"playoutDelayHint"in this.receiver?this.receiver.playoutDelayHint=t:this.log.warn("Playout delay not supported in this browser"):this.log.warn("Cannot set playout delay, track already ended")}getPlayoutDelay(){if(this.receiver){if("playoutDelayHint"in this.receiver)return this.receiver.playoutDelayHint;this.log.warn("Playout delay not supported in this browser")}else this.log.warn("Cannot get playout delay, track already ended");return 0}startMonitor(){this.monitorInterval||(this.monitorInterval=setInterval(()=>this.monitorReceiver(),f$)),J8e()&&this.registerTimeSyncUpdate()}registerTimeSyncUpdate(){const t=()=>{var n;this.timeSyncHandle=requestAnimationFrame(()=>t());const r=(n=this.receiver)===null||n===void 0?void 0:n.getSynchronizationSources()[0];if(r){const{timestamp:i,rtpTimestamp:o}=r;o&&this.rtpTimestamp!==o&&(this.emit(it.TimeSyncUpdate,{timestamp:i,rtpTimestamp:o}),this.rtpTimestamp=o)}};t()}}class ype extends vpe{constructor(t,n,r,i,o,s){super(t,n,Re.Kind.Audio,r,s),this.monitorReceiver=()=>ye(this,void 0,void 0,function*(){if(!this.receiver){this._currentBitrate=0;return}const a=yield this.getReceiverStats();a&&this.prevStats&&this.receiver&&(this._currentBitrate=iP(a,this.prevStats)),this.prevStats=a}),this.audioContext=i,this.webAudioPluginNodes=[],o&&(this.sinkId=o.deviceId)}setVolume(t){var n;for(const r of this.attachedElements)this.audioContext?(n=this.gainNode)===null||n===void 0||n.gain.setTargetAtTime(t,0,.1):r.volume=t;md()&&this._mediaStreamTrack._setVolume(t),this.elementVolume=t}getVolume(){if(this.elementVolume)return this.elementVolume;if(md())return 1;let t=0;return this.attachedElements.forEach(n=>{n.volume>t&&(t=n.volume)}),t}setSinkId(t){return ye(this,void 0,void 0,function*(){this.sinkId=t,yield Promise.all(this.attachedElements.map(n=>{if(QF(n))return n.setSinkId(t)}))})}attach(t){const n=this.attachedElements.length===0;return t?super.attach(t):t=super.attach(),this.sinkId&&QF(t)&&t.setSinkId(this.sinkId).catch(r=>{this.log.error("Failed to set sink id on remote audio track",r,this.logContext)}),this.audioContext&&n&&(this.log.debug("using audio context mapping",this.logContext),this.connectWebAudio(this.audioContext,t),t.volume=0,t.muted=!0),this.elementVolume&&this.setVolume(this.elementVolume),t}detach(t){let n;return t?(n=super.detach(t),this.audioContext&&(this.attachedElements.length>0?this.connectWebAudio(this.audioContext,this.attachedElements[0]):this.disconnectWebAudio())):(n=super.detach(),this.disconnectWebAudio()),n}setAudioContext(t){this.audioContext=t,t&&this.attachedElements.length>0?this.connectWebAudio(t,this.attachedElements[0]):t||this.disconnectWebAudio()}setWebAudioPlugins(t){this.webAudioPluginNodes=t,this.attachedElements.length>0&&this.audioContext&&this.connectWebAudio(this.audioContext,this.attachedElements[0])}connectWebAudio(t,n){this.disconnectWebAudio(),this.sourceNode=t.createMediaStreamSource(n.srcObject);let r=this.sourceNode;this.webAudioPluginNodes.forEach(i=>{r.connect(i),r=i}),this.gainNode=t.createGain(),r.connect(this.gainNode),this.gainNode.connect(t.destination),this.elementVolume&&this.gainNode.gain.setTargetAtTime(this.elementVolume,0,.1),t.state!=="running"&&t.resume().then(()=>{t.state!=="running"&&this.emit(it.AudioPlaybackFailed,new Error("Audio Context couldn't be started automatically"))}).catch(i=>{this.emit(it.AudioPlaybackFailed,i)})}disconnectWebAudio(){var t,n;(t=this.gainNode)===null||t===void 0||t.disconnect(),(n=this.sourceNode)===null||n===void 0||n.disconnect(),this.gainNode=void 0,this.sourceNode=void 0}getReceiverStats(){return ye(this,void 0,void 0,function*(){if(!this.receiver||!this.receiver.getStats)return;const t=yield this.receiver.getStats();let n;return t.forEach(r=>{r.type==="inbound-rtp"&&(n={type:"audio",streamId:r.id,timestamp:r.timestamp,jitter:r.jitter,bytesReceived:r.bytesReceived,concealedSamples:r.concealedSamples,concealmentEvents:r.concealmentEvents,silentConcealedSamples:r.silentConcealedSamples,silentConcealmentEvents:r.silentConcealmentEvents,totalAudioEnergy:r.totalAudioEnergy,totalSamplesDuration:r.totalSamplesDuration})}),n})}}const IM=100;class QFe extends vpe{constructor(t,n,r,i,o){super(t,n,Re.Kind.Video,r,o),this.elementInfos=[],this.monitorReceiver=()=>ye(this,void 0,void 0,function*(){if(!this.receiver){this._currentBitrate=0;return}const s=yield this.getReceiverStats();s&&this.prevStats&&this.receiver&&(this._currentBitrate=iP(s,this.prevStats)),this.prevStats=s}),this.debouncedHandleResize=l$(()=>{this.updateDimensions()},IM),this.adaptiveStreamSettings=i}get isAdaptiveStream(){return this.adaptiveStreamSettings!==void 0}setStreamState(t){super.setStreamState(t),console.log("setStreamState",t),t===Re.StreamState.Active&&this.updateVisibility()}get mediaStreamTrack(){return this._mediaStreamTrack}setMuted(t){super.setMuted(t),this.attachedElements.forEach(n=>{t?Ay(this._mediaStreamTrack,n):ny(this._mediaStreamTrack,n)})}attach(t){if(t?super.attach(t):t=super.attach(),this.adaptiveStreamSettings&&this.elementInfos.find(n=>n.element===t)===void 0){const n=new XFe(t);this.observeElementInfo(n)}return t}observeElementInfo(t){this.adaptiveStreamSettings&&this.elementInfos.find(n=>n===t)===void 0?(t.handleResize=()=>{this.debouncedHandleResize()},t.handleVisibilityChanged=()=>{this.updateVisibility()},this.elementInfos.push(t),t.observe(),this.debouncedHandleResize(),this.updateVisibility()):this.log.warn("visibility resize observer not triggered",this.logContext)}stopObservingElementInfo(t){if(!this.isAdaptiveStream){this.log.warn("stopObservingElementInfo ignored",this.logContext);return}const n=this.elementInfos.filter(r=>r===t);for(const r of n)r.stopObserving();this.elementInfos=this.elementInfos.filter(r=>r!==t),this.updateVisibility(),this.debouncedHandleResize()}detach(t){let n=[];if(t)return this.stopObservingElement(t),super.detach(t);n=super.detach();for(const r of n)this.stopObservingElement(r);return n}getDecoderImplementation(){var t;return(t=this.prevStats)===null||t===void 0?void 0:t.decoderImplementation}getReceiverStats(){return ye(this,void 0,void 0,function*(){if(!this.receiver||!this.receiver.getStats)return;const t=yield this.receiver.getStats();let n,r="",i=new Map;return t.forEach(o=>{o.type==="inbound-rtp"?(r=o.codecId,n={type:"video",streamId:o.id,framesDecoded:o.framesDecoded,framesDropped:o.framesDropped,framesReceived:o.framesReceived,packetsReceived:o.packetsReceived,packetsLost:o.packetsLost,frameWidth:o.frameWidth,frameHeight:o.frameHeight,pliCount:o.pliCount,firCount:o.firCount,nackCount:o.nackCount,jitter:o.jitter,timestamp:o.timestamp,bytesReceived:o.bytesReceived,decoderImplementation:o.decoderImplementation}):o.type==="codec"&&i.set(o.id,o)}),n&&r!==""&&i.get(r)&&(n.mimeType=i.get(r).mimeType),n})}stopObservingElement(t){const n=this.elementInfos.filter(r=>r.element===t);for(const r of n)this.stopObservingElementInfo(r)}handleAppVisibilityChanged(){const t=Object.create(null,{handleAppVisibilityChanged:{get:()=>super.handleAppVisibilityChanged}});return ye(this,void 0,void 0,function*(){yield t.handleAppVisibilityChanged.call(this),this.isAdaptiveStream&&this.updateVisibility()})}updateVisibility(t){var n,r;const i=this.elementInfos.reduce((c,l)=>Math.max(c,l.visibilityChangedAt||0),0),o=!((r=(n=this.adaptiveStreamSettings)===null||n===void 0?void 0:n.pauseVideoInBackground)!==null&&r!==void 0)||r?this.isInBackground:!1,s=this.elementInfos.some(c=>c.pictureInPicture),a=this.elementInfos.some(c=>c.visible)&&!o||s;if(!(this.lastVisible===a&&!t)){if(!a&&Date.now()-i<IM){os.setTimeout(()=>{this.updateVisibility()},IM);return}this.lastVisible=a,this.emit(it.VisibilityChanged,a,this)}}updateDimensions(){var t,n;let r=0,i=0;const o=this.getPixelDensity();for(const s of this.elementInfos){const a=s.width()*o,c=s.height()*o;a+c>r+i&&(r=a,i=c)}((t=this.lastDimensions)===null||t===void 0?void 0:t.width)===r&&((n=this.lastDimensions)===null||n===void 0?void 0:n.height)===i||(this.lastDimensions={width:r,height:i},this.emit(it.VideoDimensionsChanged,this.lastDimensions,this))}getPixelDensity(){var t;const n=(t=this.adaptiveStreamSettings)===null||t===void 0?void 0:t.pixelDensity;return n==="screen"?hX():n||(hX()>2?2:1)}}class XFe{get visible(){return this.isPiP||this.isIntersecting}get pictureInPicture(){return this.isPiP}constructor(t,n){this.onVisibilityChanged=r=>{var i;const{target:o,isIntersecting:s}=r;o===this.element&&(this.isIntersecting=s,this.isPiP=Fw(this.element),this.visibilityChangedAt=Date.now(),(i=this.handleVisibilityChanged)===null||i===void 0||i.call(this))},this.onEnterPiP=()=>{var r,i,o;(i=(r=window.documentPictureInPicture)===null||r===void 0?void 0:r.window)===null||i===void 0||i.addEventListener("pagehide",this.onLeavePiP),this.isPiP=Fw(this.element),(o=this.handleVisibilityChanged)===null||o===void 0||o.call(this)},this.onLeavePiP=()=>{var r;this.isPiP=Fw(this.element),(r=this.handleVisibilityChanged)===null||r===void 0||r.call(this)},this.element=t,this.isIntersecting=n??sj(t),this.isPiP=Sa()&&Fw(t),this.visibilityChangedAt=0}width(){return this.element.clientWidth}height(){return this.element.clientHeight}observe(){var t,n,r;this.isIntersecting=sj(this.element),this.isPiP=Fw(this.element),this.element.handleResize=()=>{var i;(i=this.handleResize)===null||i===void 0||i.call(this)},this.element.handleVisibilityChanged=this.onVisibilityChanged,mX().observe(this.element),pX().observe(this.element),this.element.addEventListener("enterpictureinpicture",this.onEnterPiP),this.element.addEventListener("leavepictureinpicture",this.onLeavePiP),(t=window.documentPictureInPicture)===null||t===void 0||t.addEventListener("enter",this.onEnterPiP),(r=(n=window.documentPictureInPicture)===null||n===void 0?void 0:n.window)===null||r===void 0||r.addEventListener("pagehide",this.onLeavePiP)}stopObserving(){var t,n,r,i,o;(t=mX())===null||t===void 0||t.unobserve(this.element),(n=pX())===null||n===void 0||n.unobserve(this.element),this.element.removeEventListener("enterpictureinpicture",this.onEnterPiP),this.element.removeEventListener("leavepictureinpicture",this.onLeavePiP),(r=window.documentPictureInPicture)===null||r===void 0||r.removeEventListener("enter",this.onEnterPiP),(o=(i=window.documentPictureInPicture)===null||i===void 0?void 0:i.window)===null||o===void 0||o.removeEventListener("pagehide",this.onLeavePiP)}}function Fw(e){var t,n;return document.pictureInPictureElement===e?!0:!((t=window.documentPictureInPicture)===null||t===void 0)&&t.window?sj(e,(n=window.documentPictureInPicture)===null||n===void 0?void 0:n.window):!1}function sj(e,t){const n=t||window;let r=e.offsetTop,i=e.offsetLeft;const o=e.offsetWidth,s=e.offsetHeight,{hidden:a}=e,{display:c}=getComputedStyle(e);for(;e.offsetParent;)e=e.offsetParent,r+=e.offsetTop,i+=e.offsetLeft;return r<n.pageYOffset+n.innerHeight&&i<n.pageXOffset+n.innerWidth&&r+s>n.pageYOffset&&i+o>n.pageXOffset&&!a&&c!=="none"}class hf extends Pd.EventEmitter{constructor(t,n,r,i){var o;super(),this.metadataMuted=!1,this.encryption=Za.NONE,this.log=gn,this.handleMuted=()=>{this.emit(it.Muted)},this.handleUnmuted=()=>{this.emit(it.Unmuted)},this.log=Zf((o=i==null?void 0:i.loggerName)!==null&&o!==void 0?o:tu.Publication),this.loggerContextCb=this.loggerContextCb,this.setMaxListeners(100),this.kind=t,this.trackSid=n,this.trackName=r,this.source=Re.Source.Unknown}setTrack(t){this.track&&(this.track.off(it.Muted,this.handleMuted),this.track.off(it.Unmuted,this.handleUnmuted)),this.track=t,t&&(t.on(it.Muted,this.handleMuted),t.on(it.Unmuted,this.handleUnmuted))}get logContext(){var t;return Object.assign(Object.assign({},(t=this.loggerContextCb)===null||t===void 0?void 0:t.call(this)),yn(this))}get isMuted(){return this.metadataMuted}get isEnabled(){return!0}get isSubscribed(){return this.track!==void 0}get isEncrypted(){return this.encryption!==Za.NONE}get audioTrack(){if(sd(this.track))return this.track}get videoTrack(){if(Im(this.track))return this.track}updateInfo(t){this.trackSid=t.sid,this.trackName=t.name,this.source=Re.sourceFromProto(t.source),this.mimeType=t.mimeType,this.kind===Re.Kind.Video&&t.width>0&&(this.dimensions={width:t.width,height:t.height},this.simulcasted=t.simulcast),this.encryption=t.encryption,this.trackInfo=t,this.log.debug("update publication info",Object.assign(Object.assign({},this.logContext),{info:t}))}}(function(e){(function(t){t.Desired="desired",t.Subscribed="subscribed",t.Unsubscribed="unsubscribed"})(e.SubscriptionStatus||(e.SubscriptionStatus={})),(function(t){t.Allowed="allowed",t.NotAllowed="not_allowed"})(e.PermissionStatus||(e.PermissionStatus={}))})(hf||(hf={}));class JA extends hf{get isUpstreamPaused(){var t;return(t=this.track)===null||t===void 0?void 0:t.isUpstreamPaused}constructor(t,n,r,i){super(t,n.sid,n.name,i),this.track=void 0,this.handleTrackEnded=()=>{this.emit(it.Ended)},this.handleCpuConstrained=()=>{this.track&&Im(this.track)&&this.emit(it.CpuConstrained,this.track)},this.updateInfo(n),this.setTrack(r)}setTrack(t){this.track&&(this.track.off(it.Ended,this.handleTrackEnded),this.track.off(it.CpuConstrained,this.handleCpuConstrained)),super.setTrack(t),t&&(t.on(it.Ended,this.handleTrackEnded),t.on(it.CpuConstrained,this.handleCpuConstrained))}get isMuted(){return this.track?this.track.isMuted:super.isMuted}get audioTrack(){return super.audioTrack}get videoTrack(){return super.videoTrack}get isLocal(){return!0}mute(){return ye(this,void 0,void 0,function*(){var t;return(t=this.track)===null||t===void 0?void 0:t.mute()})}unmute(){return ye(this,void 0,void 0,function*(){var t;return(t=this.track)===null||t===void 0?void 0:t.unmute()})}pauseUpstream(){return ye(this,void 0,void 0,function*(){var t;yield(t=this.track)===null||t===void 0?void 0:t.pauseUpstream()})}resumeUpstream(){return ye(this,void 0,void 0,function*(){var t;yield(t=this.track)===null||t===void 0?void 0:t.resumeUpstream()})}getTrackFeatures(){var t;if(sd(this.track)){const n=this.track.getSourceTrackSettings(),r=new Set;return n.autoGainControl&&r.add(Do.TF_AUTO_GAIN_CONTROL),n.echoCancellation&&r.add(Do.TF_ECHO_CANCELLATION),n.noiseSuppression&&r.add(Do.TF_NOISE_SUPPRESSION),n.channelCount&&n.channelCount>1&&r.add(Do.TF_STEREO),!((t=this.options)===null||t===void 0)&&t.dtx||r.add(Do.TF_NO_DTX),this.track.enhancedNoiseCancellation&&r.add(Do.TF_ENHANCED_NOISE_CANCELLATION),Array.from(r.values())}else return[]}}function oE(e,t){return ye(this,void 0,void 0,function*(){e??(e={});let n=!1;const{audioProcessor:r,videoProcessor:i,optionsWithoutProcessor:o}=ape(e);let s=o.audio,a=o.video;if(r&&typeof o.audio=="object"&&(o.audio.processor=r),i&&typeof o.video=="object"&&(o.video.processor=i),e.audio&&typeof o.audio=="object"&&typeof o.audio.deviceId=="string"){const d=o.audio.deviceId;o.audio.deviceId={exact:d},n=!0,s=Object.assign(Object.assign({},o.audio),{deviceId:{ideal:d}})}if(o.video&&typeof o.video=="object"&&typeof o.video.deviceId=="string"){const d=o.video.deviceId;o.video.deviceId={exact:d},n=!0,a=Object.assign(Object.assign({},o.video),{deviceId:{ideal:d}})}(o.audio===!0||typeof o.audio=="object"&&!o.audio.deviceId)&&(o.audio={deviceId:"default"}),o.video===!0?o.video={deviceId:"default"}:typeof o.video=="object"&&!o.video.deviceId&&(o.video.deviceId="default");const c=ipe(o,lpe,upe),l=s$(c),u=navigator.mediaDevices.getUserMedia(l);o.audio&&(Lo.userMediaPromiseMap.set("audioinput",u),u.catch(()=>Lo.userMediaPromiseMap.delete("audioinput"))),o.video&&(Lo.userMediaPromiseMap.set("videoinput",u),u.catch(()=>Lo.userMediaPromiseMap.delete("videoinput")));try{const d=yield u;return yield Promise.all(d.getTracks().map(f=>ye(this,void 0,void 0,function*(){const p=f.kind==="audio";let g=p?c.audio:c.video;(typeof g=="boolean"||!g)&&(g={});let m;const y=p?l.audio:l.video;typeof y!="boolean"&&(m=y);const v=f.getSettings().deviceId;m!=null&&m.deviceId&&Bp(m.deviceId)!==v?m.deviceId=v:m||(m={deviceId:v});const w=kFe(f,m,t);return w.kind===Re.Kind.Video?w.source=Re.Source.Camera:w.kind===Re.Kind.Audio&&(w.source=Re.Source.Microphone),w.mediaStream=d,sd(w)&&r?yield w.setProcessor(r):Im(w)&&i&&(yield w.setProcessor(i)),w})))}catch(d){if(!n)throw d;return oE(Object.assign(Object.assign({},e),{audio:s,video:a}),t)}})}function JFe(e){return ye(this,void 0,void 0,function*(){return(yield oE({audio:!1,video:!0}))[0]})}function ZFe(e){return ye(this,void 0,void 0,function*(){return(yield oE({audio:!0,video:!1}))[0]})}var Bl;(function(e){e.Excellent="excellent",e.Good="good",e.Poor="poor",e.Lost="lost",e.Unknown="unknown"})(Bl||(Bl={}));function eje(e){switch(e){case SS.EXCELLENT:return Bl.Excellent;case SS.GOOD:return Bl.Good;case SS.POOR:return Bl.Poor;case SS.LOST:return Bl.Lost;default:return Bl.Unknown}}class bpe extends Pd.EventEmitter{get logContext(){var t,n;return Object.assign({},(n=(t=this.loggerOptions)===null||t===void 0?void 0:t.loggerContextCb)===null||n===void 0?void 0:n.call(t))}get isEncrypted(){return this.trackPublications.size>0&&Array.from(this.trackPublications.values()).every(t=>t.isEncrypted)}get isAgent(){var t;return((t=this.permissions)===null||t===void 0?void 0:t.agent)||this.kind===Y_.AGENT}get isActive(){var t;return((t=this.participantInfo)===null||t===void 0?void 0:t.state)===Ty.ACTIVE}get kind(){return this._kind}get attributes(){return Object.freeze(Object.assign({},this._attributes))}constructor(t,n,r,i,o,s){let a=arguments.length>6&&arguments[6]!==void 0?arguments[6]:Y_.STANDARD;var c;super(),this.audioLevel=0,this.isSpeaking=!1,this._connectionQuality=Bl.Unknown,this.log=gn,this.log=Zf((c=s==null?void 0:s.loggerName)!==null&&c!==void 0?c:tu.Participant),this.loggerOptions=s,this.setMaxListeners(100),this.sid=t,this.identity=n,this.name=r,this.metadata=i,this.audioTrackPublications=new Map,this.videoTrackPublications=new Map,this.trackPublications=new Map,this._kind=a,this._attributes=o??{}}getTrackPublications(){return Array.from(this.trackPublications.values())}getTrackPublication(t){for(const[,n]of this.trackPublications)if(n.source===t)return n}getTrackPublicationByName(t){for(const[,n]of this.trackPublications)if(n.trackName===t)return n}waitUntilActive(){return this.isActive?Promise.resolve():this.activeFuture?this.activeFuture.promise:(this.activeFuture=new Ju,this.once(je.Active,()=>{var t,n;(n=(t=this.activeFuture)===null||t===void 0?void 0:t.resolve)===null||n===void 0||n.call(t),this.activeFuture=void 0}),this.activeFuture.promise)}get connectionQuality(){return this._connectionQuality}get isCameraEnabled(){var t;const n=this.getTrackPublication(Re.Source.Camera);return!(!((t=n==null?void 0:n.isMuted)!==null&&t!==void 0)||t)}get isMicrophoneEnabled(){var t;const n=this.getTrackPublication(Re.Source.Microphone);return!(!((t=n==null?void 0:n.isMuted)!==null&&t!==void 0)||t)}get isScreenShareEnabled(){return!!this.getTrackPublication(Re.Source.ScreenShare)}get isLocal(){return!1}get joinedAt(){return this.participantInfo?new Date(Number.parseInt(this.participantInfo.joinedAt.toString())*1e3):new Date}updateInfo(t){var n;return this.participantInfo&&this.participantInfo.sid===t.sid&&this.participantInfo.version>t.version?!1:(this.identity=t.identity,this.sid=t.sid,this._setName(t.name),this._setMetadata(t.metadata),this._setAttributes(t.attributes),t.state===Ty.ACTIVE&&((n=this.participantInfo)===null||n===void 0?void 0:n.state)!==Ty.ACTIVE&&this.emit(je.Active),t.permission&&this.setPermissions(t.permission),this.participantInfo=t,!0)}_setMetadata(t){const n=this.metadata!==t,r=this.metadata;this.metadata=t,n&&this.emit(je.ParticipantMetadataChanged,r)}_setName(t){const n=this.name!==t;this.name=t,n&&this.emit(je.ParticipantNameChanged,t)}_setAttributes(t){const n=Z8e(this.attributes,t);this._attributes=t,Object.keys(n).length>0&&this.emit(je.AttributesChanged,n)}setPermissions(t){var n,r,i,o,s,a;const c=this.permissions,l=t.canPublish!==((n=this.permissions)===null||n===void 0?void 0:n.canPublish)||t.canSubscribe!==((r=this.permissions)===null||r===void 0?void 0:r.canSubscribe)||t.canPublishData!==((i=this.permissions)===null||i===void 0?void 0:i.canPublishData)||t.hidden!==((o=this.permissions)===null||o===void 0?void 0:o.hidden)||t.recorder!==((s=this.permissions)===null||s===void 0?void 0:s.recorder)||t.canPublishSources.length!==this.permissions.canPublishSources.length||t.canPublishSources.some((u,d)=>{var f;return u!==((f=this.permissions)===null||f===void 0?void 0:f.canPublishSources[d])})||t.canSubscribeMetrics!==((a=this.permissions)===null||a===void 0?void 0:a.canSubscribeMetrics);return this.permissions=t,l&&this.emit(je.ParticipantPermissionsChanged,c),l}setIsSpeaking(t){t!==this.isSpeaking&&(this.isSpeaking=t,t&&(this.lastSpokeAt=new Date),this.emit(je.IsSpeakingChanged,t))}setConnectionQuality(t){const n=this._connectionQuality;this._connectionQuality=eje(t),n!==this._connectionQuality&&this.emit(je.ConnectionQualityChanged,this._connectionQuality)}setDisconnected(){var t,n;this.activeFuture&&((n=(t=this.activeFuture).reject)===null||n===void 0||n.call(t,new Error("Participant disconnected")),this.activeFuture=void 0)}setAudioContext(t){this.audioContext=t,this.audioTrackPublications.forEach(n=>sd(n.track)&&n.track.setAudioContext(t))}addTrackPublication(t){t.on(it.Muted,()=>{this.emit(je.TrackMuted,t)}),t.on(it.Unmuted,()=>{this.emit(je.TrackUnmuted,t)});const n=t;switch(n.track&&(n.track.sid=t.trackSid),this.trackPublications.set(t.trackSid,t),t.kind){case Re.Kind.Audio:this.audioTrackPublications.set(t.trackSid,t);break;case Re.Kind.Video:this.videoTrackPublications.set(t.trackSid,t);break}}}function tje(e){var t,n,r;if(!e.participantSid&&!e.participantIdentity)throw new Error("Invalid track permission, must provide at least one of participantIdentity and participantSid");return new vhe({participantIdentity:(t=e.participantIdentity)!==null&&t!==void 0?t:"",participantSid:(n=e.participantSid)!==null&&n!==void 0?n:"",allTracks:(r=e.allowAll)!==null&&r!==void 0?r:!1,trackSids:e.allowedTrackSids||[]})}class nje extends bpe{constructor(t,n,r,i,o,s){super(t,n,void 0,void 0,void 0,{loggerName:i.loggerName,loggerContextCb:()=>this.engine.logContext}),this.pendingPublishing=new Set,this.pendingPublishPromises=new Map,this.participantTrackPermissions=[],this.allParticipantsAllowedToSubscribe=!0,this.encryptionType=Za.NONE,this.enabledPublishVideoCodecs=[],this.pendingAcks=new Map,this.pendingResponses=new Map,this.handleReconnecting=()=>{this.reconnectFuture||(this.reconnectFuture=new Ju)},this.handleReconnected=()=>{var a,c;(c=(a=this.reconnectFuture)===null||a===void 0?void 0:a.resolve)===null||c===void 0||c.call(a),this.reconnectFuture=void 0,this.updateTrackSubscriptionPermissions()},this.handleClosing=()=>{var a,c,l,u,d,f;this.reconnectFuture&&(this.reconnectFuture.promise.catch(p=>this.log.warn(p.message,this.logContext)),(c=(a=this.reconnectFuture)===null||a===void 0?void 0:a.reject)===null||c===void 0||c.call(a,"Got disconnected during reconnection attempt"),this.reconnectFuture=void 0),this.signalConnectedFuture&&((u=(l=this.signalConnectedFuture).reject)===null||u===void 0||u.call(l,"Got disconnected without signal connected"),this.signalConnectedFuture=void 0),(f=(d=this.activeAgentFuture)===null||d===void 0?void 0:d.reject)===null||f===void 0||f.call(d,"Got disconnected without active agent present"),this.activeAgentFuture=void 0,this.firstActiveAgent=void 0},this.handleSignalConnected=a=>{var c,l;a.participant&&this.updateInfo(a.participant),this.signalConnectedFuture||(this.signalConnectedFuture=new Ju),(l=(c=this.signalConnectedFuture).resolve)===null||l===void 0||l.call(c)},this.handleSignalRequestResponse=a=>{const{requestId:c,reason:l,message:u}=a,d=this.pendingSignalRequests.get(c);d&&(l!==n$.OK&&d.reject(new lX(u,l)),this.pendingSignalRequests.delete(c))},this.handleDataPacket=a=>{switch(a.value.case){case"rpcResponse":let c=a.value.value,l=null,u=null;c.value.case==="payload"?l=c.value.value:c.value.case==="error"&&(u=xi.fromProto(c.value.value)),this.handleIncomingRpcResponse(c.requestId,l,u);break;case"rpcAck":let d=a.value.value;this.handleIncomingRpcAck(d.requestId);break}},this.updateTrackSubscriptionPermissions=()=>{this.log.debug("updating track subscription permissions",Object.assign(Object.assign({},this.logContext),{allParticipantsAllowed:this.allParticipantsAllowedToSubscribe,participantTrackPermissions:this.participantTrackPermissions})),this.engine.client.sendUpdateSubscriptionPermissions(this.allParticipantsAllowedToSubscribe,this.participantTrackPermissions.map(a=>tje(a)))},this.onTrackUnmuted=a=>{this.onTrackMuted(a,a.isUpstreamPaused)},this.onTrackMuted=(a,c)=>{if(c===void 0&&(c=!0),!a.sid){this.log.error("could not update mute status for unpublished track",Object.assign(Object.assign({},this.logContext),yn(a)));return}this.engine.updateMuteStatus(a.sid,c)},this.onTrackUpstreamPaused=a=>{this.log.debug("upstream paused",Object.assign(Object.assign({},this.logContext),yn(a))),this.onTrackMuted(a,!0)},this.onTrackUpstreamResumed=a=>{this.log.debug("upstream resumed",Object.assign(Object.assign({},this.logContext),yn(a))),this.onTrackMuted(a,a.isMuted)},this.onTrackFeatureUpdate=a=>{const c=this.audioTrackPublications.get(a.sid);if(!c){this.log.warn("Could not update local audio track settings, missing publication for track ".concat(a.sid),this.logContext);return}this.engine.client.sendUpdateLocalAudioTrack(c.trackSid,c.getTrackFeatures())},this.onTrackCpuConstrained=(a,c)=>{this.log.debug("track cpu constrained",Object.assign(Object.assign({},this.logContext),yn(c))),this.emit(je.LocalTrackCpuConstrained,a,c)},this.handleSubscribedQualityUpdate=a=>ye(this,void 0,void 0,function*(){var c,l,u,d,f;if(!(!((f=this.roomOptions)===null||f===void 0)&&f.dynacast))return;const p=this.videoTrackPublications.get(a.trackSid);if(!p){this.log.warn("received subscribed quality update for unknown track",Object.assign(Object.assign({},this.logContext),{trackSid:a.trackSid}));return}if(!p.videoTrack)return;const g=yield p.videoTrack.setPublishingCodecs(a.subscribedCodecs);try{for(var m=!0,y=wf(g),v;v=yield y.next(),c=v.done,!c;m=!0){d=v.value,m=!1;const w=d;R8e(w)&&(this.log.debug("publish ".concat(w," for ").concat(p.videoTrack.sid),Object.assign(Object.assign({},this.logContext),yn(p))),yield this.publishAdditionalCodecForTrack(p.videoTrack,w,p.options))}}catch(w){l={error:w}}finally{try{!m&&!c&&(u=y.return)&&(yield u.call(y))}finally{if(l)throw l.error}}}),this.handleLocalTrackUnpublished=a=>{const c=this.trackPublications.get(a.trackSid);if(!c){this.log.warn("received unpublished event for unknown track",Object.assign(Object.assign({},this.logContext),{trackSid:a.trackSid}));return}this.unpublishTrack(c.track)},this.handleTrackEnded=a=>ye(this,void 0,void 0,function*(){if(a.source===Re.Source.ScreenShare||a.source===Re.Source.ScreenShareAudio)this.log.debug("unpublishing local track due to TrackEnded",Object.assign(Object.assign({},this.logContext),yn(a))),this.unpublishTrack(a);else if(a.isUserProvided)yield a.mute();else if(rf(a)||Lh(a))try{if(Sa())try{const c=yield navigator==null?void 0:navigator.permissions.query({name:a.source===Re.Source.Camera?"camera":"microphone"});if(c&&c.state==="denied")throw this.log.warn("user has revoked access to ".concat(a.source),Object.assign(Object.assign({},this.logContext),yn(a))),c.onchange=()=>{c.state!=="denied"&&(a.isMuted||a.restartTrack(),c.onchange=null)},new Error("GetUserMedia Permission denied")}catch{}a.isMuted||(this.log.debug("track ended, attempting to use a different device",Object.assign(Object.assign({},this.logContext),yn(a))),rf(a)?yield a.restartTrack({deviceId:"default"}):yield a.restartTrack())}catch{this.log.warn("could not restart track, muting instead",Object.assign(Object.assign({},this.logContext),yn(a))),yield a.mute()}}),this.audioTrackPublications=new Map,this.videoTrackPublications=new Map,this.trackPublications=new Map,this.engine=r,this.roomOptions=i,this.setupEngine(r),this.activeDeviceMap=new Map([["audioinput","default"],["videoinput","default"],["audiooutput","default"]]),this.pendingSignalRequests=new Map,this.rpcHandlers=o,this.roomOutgoingDataStreamManager=s}get lastCameraError(){return this.cameraError}get lastMicrophoneError(){return this.microphoneError}get isE2EEEnabled(){return this.encryptionType!==Za.NONE}getTrackPublication(t){const n=super.getTrackPublication(t);if(n)return n}getTrackPublicationByName(t){const n=super.getTrackPublicationByName(t);if(n)return n}setupEngine(t){var n;this.engine=t,this.engine.on(ct.RemoteMute,(r,i)=>{const o=this.trackPublications.get(r);!o||!o.track||(i?o.mute():o.unmute())}),!((n=this.signalConnectedFuture)===null||n===void 0)&&n.isResolved&&(this.signalConnectedFuture=void 0),this.engine.on(ct.Connected,this.handleReconnected).on(ct.SignalConnected,this.handleSignalConnected).on(ct.SignalRestarted,this.handleReconnected).on(ct.SignalResumed,this.handleReconnected).on(ct.Restarting,this.handleReconnecting).on(ct.Resuming,this.handleReconnecting).on(ct.LocalTrackUnpublished,this.handleLocalTrackUnpublished).on(ct.SubscribedQualityUpdate,this.handleSubscribedQualityUpdate).on(ct.Closing,this.handleClosing).on(ct.SignalRequestResponse,this.handleSignalRequestResponse).on(ct.DataPacketReceived,this.handleDataPacket)}setMetadata(t){return ye(this,void 0,void 0,function*(){yield this.requestMetadataUpdate({metadata:t})})}setName(t){return ye(this,void 0,void 0,function*(){yield this.requestMetadataUpdate({name:t})})}setAttributes(t){return ye(this,void 0,void 0,function*(){yield this.requestMetadataUpdate({attributes:t})})}requestMetadataUpdate(t){return ye(this,arguments,void 0,function(n){var r=this;let{metadata:i,name:o,attributes:s}=n;return(function*(){return new Promise((a,c)=>ye(r,void 0,void 0,function*(){var l,u;try{let d=!1;const f=yield this.engine.client.sendUpdateLocalMetadata((l=i??this.metadata)!==null&&l!==void 0?l:"",(u=o??this.name)!==null&&u!==void 0?u:"",s),p=performance.now();for(this.pendingSignalRequests.set(f,{resolve:a,reject:g=>{c(g),d=!0},values:{name:o,metadata:i,attributes:s}});performance.now()-p<5e3&&!d;){if((!o||this.name===o)&&(!i||this.metadata===i)&&(!s||Object.entries(s).every(g=>{let[m,y]=g;return this.attributes[m]===y||y===""&&!this.attributes[m]}))){this.pendingSignalRequests.delete(f),a();return}yield ka(50)}c(new lX("Request to update local metadata timed out","TimeoutError"))}catch(d){d instanceof Error&&c(d)}}))})()})}setCameraEnabled(t,n,r){return this.setTrackEnabled(Re.Source.Camera,t,n,r)}setMicrophoneEnabled(t,n,r){return this.setTrackEnabled(Re.Source.Microphone,t,n,r)}setScreenShareEnabled(t,n,r){return this.setTrackEnabled(Re.Source.ScreenShare,t,n,r)}setPermissions(t){const n=this.permissions,r=super.setPermissions(t);return r&&n&&this.emit(je.ParticipantPermissionsChanged,n),r}setE2EEEnabled(t){return ye(this,void 0,void 0,function*(){this.encryptionType=t?Za.GCM:Za.NONE,yield this.republishAllTracks(void 0,!1)})}setTrackEnabled(t,n,r,i){return ye(this,void 0,void 0,function*(){var o,s;this.log.debug("setTrackEnabled",Object.assign(Object.assign({},this.logContext),{source:t,enabled:n})),this.republishPromise&&(yield this.republishPromise);let a=this.getTrackPublication(t);if(n)if(a)yield a.unmute();else{let c;if(this.pendingPublishing.has(t)){const l=yield this.waitForPendingPublicationOfSource(t);return l||this.log.info("waiting for pending publication promise timed out",Object.assign(Object.assign({},this.logContext),{source:t})),yield l==null?void 0:l.unmute(),l}this.pendingPublishing.add(t);try{switch(t){case Re.Source.Camera:c=yield this.createTracks({video:(o=r)!==null&&o!==void 0?o:!0});break;case Re.Source.Microphone:c=yield this.createTracks({audio:(s=r)!==null&&s!==void 0?s:!0});break;case Re.Source.ScreenShare:c=yield this.createScreenTracks(Object.assign({},r));break;default:throw new Sf(t)}}catch(l){throw c==null||c.forEach(u=>{u.stop()}),l instanceof Error&&this.emit(je.MediaDevicesError,l,tj(t)),this.pendingPublishing.delete(t),l}for(const l of c){const u=Object.assign(Object.assign({},this.roomOptions.publishDefaults),r);t===Re.Source.Microphone&&sd(l)&&u.preConnectBuffer&&(this.log.info("starting preconnect buffer for microphone",Object.assign({},this.logContext)),l.startPreConnectBuffer())}try{const l=[];for(const d of c)this.log.info("publishing track",Object.assign(Object.assign({},this.logContext),yn(d))),l.push(this.publishTrack(d,i));[a]=yield Promise.all(l)}catch(l){throw c==null||c.forEach(u=>{u.stop()}),l}finally{this.pendingPublishing.delete(t)}}else if(!(a!=null&&a.track)&&this.pendingPublishing.has(t)&&(a=yield this.waitForPendingPublicationOfSource(t),a||this.log.info("waiting for pending publication promise timed out",Object.assign(Object.assign({},this.logContext),{source:t}))),a&&a.track)if(t===Re.Source.ScreenShare){a=yield this.unpublishTrack(a.track);const c=this.getTrackPublication(Re.Source.ScreenShareAudio);c&&c.track&&this.unpublishTrack(c.track)}else yield a.mute();return a})}enableCameraAndMicrophone(){return ye(this,void 0,void 0,function*(){if(!(this.pendingPublishing.has(Re.Source.Camera)||this.pendingPublishing.has(Re.Source.Microphone))){this.pendingPublishing.add(Re.Source.Camera),this.pendingPublishing.add(Re.Source.Microphone);try{const t=yield this.createTracks({audio:!0,video:!0});yield Promise.all(t.map(n=>this.publishTrack(n)))}finally{this.pendingPublishing.delete(Re.Source.Camera),this.pendingPublishing.delete(Re.Source.Microphone)}}})}createTracks(t){return ye(this,void 0,void 0,function*(){var n,r;t??(t={});const i=ipe(t,(n=this.roomOptions)===null||n===void 0?void 0:n.audioCaptureDefaults,(r=this.roomOptions)===null||r===void 0?void 0:r.videoCaptureDefaults);try{return(yield oE(i,{loggerName:this.roomOptions.loggerName,loggerContextCb:()=>this.logContext})).map(a=>(sd(a)&&(this.microphoneError=void 0,a.setAudioContext(this.audioContext),a.source=Re.Source.Microphone,this.emit(je.AudioStreamAcquired)),Im(a)&&(this.cameraError=void 0,a.source=Re.Source.Camera),a))}catch(o){throw o instanceof Error&&(t.audio&&(this.microphoneError=o),t.video&&(this.cameraError=o)),o}})}createScreenTracks(t){return ye(this,void 0,void 0,function*(){if(t===void 0&&(t={}),navigator.mediaDevices.getDisplayMedia===void 0)throw new i$("getDisplayMedia not supported");t.resolution===void 0&&!L8e()&&(t.resolution=o$.h1080fps30.resolution);const n=Q8e(t),r=yield navigator.mediaDevices.getDisplayMedia(n),i=r.getVideoTracks();if(i.length===0)throw new Sf("no video track found");const o=new XA(i[0],void 0,!1,{loggerName:this.roomOptions.loggerName,loggerContextCb:()=>this.logContext});o.source=Re.Source.ScreenShare,t.contentHint&&(o.mediaStreamTrack.contentHint=t.contentHint);const s=[o];if(r.getAudioTracks().length>0){this.emit(je.AudioStreamAcquired);const a=new QA(r.getAudioTracks()[0],void 0,!1,this.audioContext,{loggerName:this.roomOptions.loggerName,loggerContextCb:()=>this.logContext});a.source=Re.Source.ScreenShareAudio,s.push(a)}return s})}publishTrack(t,n){return ye(this,void 0,void 0,function*(){return this.publishOrRepublishTrack(t,n)})}publishOrRepublishTrack(t,n){return ye(this,arguments,void 0,function(r,i){var o=this;let s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return(function*(){var a,c,l,u;rf(r)&&r.setAudioContext(o.audioContext),yield(a=o.reconnectFuture)===null||a===void 0?void 0:a.promise,o.republishPromise&&!s&&(yield o.republishPromise),Mg(r)&&o.pendingPublishPromises.has(r)&&(yield o.pendingPublishPromises.get(r));let d;if(r instanceof MediaStreamTrack)d=r.getConstraints();else{d=r.constraints;let v;switch(r.source){case Re.Source.Microphone:v="audioinput";break;case Re.Source.Camera:v="videoinput"}v&&o.activeDeviceMap.has(v)&&(d=Object.assign(Object.assign({},d),{deviceId:o.activeDeviceMap.get(v)}))}if(r instanceof MediaStreamTrack)switch(r.kind){case"audio":r=new QA(r,d,!0,o.audioContext,{loggerName:o.roomOptions.loggerName,loggerContextCb:()=>o.logContext});break;case"video":r=new XA(r,d,!0,{loggerName:o.roomOptions.loggerName,loggerContextCb:()=>o.logContext});break;default:throw new Sf("unsupported MediaStreamTrack kind ".concat(r.kind))}else r.updateLoggerOptions({loggerName:o.roomOptions.loggerName,loggerContextCb:()=>o.logContext});let f;if(o.trackPublications.forEach(v=>{v.track&&v.track===r&&(f=v)}),f)return o.log.warn("track has already been published, skipping",Object.assign(Object.assign({},o.logContext),yn(f))),f;const p="channelCount"in r.mediaStreamTrack.getSettings()&&r.mediaStreamTrack.getSettings().channelCount===2||r.mediaStreamTrack.getConstraints().channelCount===2,g=(c=i==null?void 0:i.forceStereo)!==null&&c!==void 0?c:p;g&&(i||(i={}),i.dtx===void 0&&o.log.info("Opus DTX will be disabled for stereo tracks by default. Enable them explicitly to make it work.",Object.assign(Object.assign({},o.logContext),yn(r))),i.red===void 0&&o.log.info("Opus RED will be disabled for stereo tracks by default. Enable them explicitly to make it work."),(l=i.dtx)!==null&&l!==void 0||(i.dtx=!1),(u=i.red)!==null&&u!==void 0||(i.red=!1));const m=Object.assign(Object.assign({},o.roomOptions.publishDefaults),i);!j8e()&&o.roomOptions.e2ee&&(o.log.info("End-to-end encryption is set up, simulcast publishing will be disabled on Safari versions and iOS browsers running iOS < v17.2",Object.assign({},o.logContext)),m.simulcast=!1),m.source&&(r.source=m.source);const y=new Promise((v,w)=>ye(o,void 0,void 0,function*(){try{if(this.engine.client.currentState!==Lr.CONNECTED){this.log.debug("deferring track publication until signal is connected",Object.assign(Object.assign({},this.logContext),{track:yn(r)}));const S=setTimeout(()=>{w(new cX("publishing rejected as engine not connected within timeout",408))},15e3);yield this.waitUntilEngineConnected(),clearTimeout(S);const C=yield this.publish(r,m,g);v(C)}else try{const S=yield this.publish(r,m,g);v(S)}catch(S){w(S)}}catch(S){w(S)}}));o.pendingPublishPromises.set(r,y);try{return yield y}catch(v){throw v}finally{o.pendingPublishPromises.delete(r)}})()})}waitUntilEngineConnected(){return this.signalConnectedFuture||(this.signalConnectedFuture=new Ju),this.signalConnectedFuture.promise}hasPermissionsToPublish(t){if(!this.permissions)return this.log.warn("no permissions present for publishing track",Object.assign(Object.assign({},this.logContext),yn(t))),!1;const{canPublish:n,canPublishSources:r}=this.permissions;return n&&(r.length===0||r.map(i=>eFe(i)).includes(t.source))?!0:(this.log.warn("insufficient permissions to publish",Object.assign(Object.assign({},this.logContext),yn(t))),!1)}publish(t,n,r){return ye(this,void 0,void 0,function*(){var i,o,s,a,c,l,u,d,f,p;if(!this.hasPermissionsToPublish(t))throw new cX("failed to publish track, insufficient permissions",403);Array.from(this.trackPublications.values()).find(A=>Mg(t)&&A.source===t.source)&&t.source!==Re.Source.Unknown&&this.log.info("publishing a second track with the same source: ".concat(t.source),Object.assign(Object.assign({},this.logContext),yn(t))),n.stopMicTrackOnMute&&sd(t)&&(t.stopOnMute=!0),t.source===Re.Source.ScreenShare&&sv()&&(n.simulcast=!1),n.videoCodec==="av1"&&!N8e()&&
422(n.videoCodec=void 0),n.videoCodec==="vp9"&&!M8e()&&(n.videoCodec=void 0),n.videoCodec===void 0&&(n.videoCodec=nj),this.enabledPublishVideoCodecs.length>0&&(this.enabledPublishVideoCodecs.some(A=>n.videoCodec===zS(A.mime))||(n.videoCodec=zS(this.enabledPublishVideoCodecs[0].mime)));const m=n.videoCodec;t.on(it.Muted,this.onTrackMuted),t.on(it.Unmuted,this.onTrackUnmuted),t.on(it.Ended,this.handleTrackEnded),t.on(it.UpstreamPaused,this.onTrackUpstreamPaused),t.on(it.UpstreamResumed,this.onTrackUpstreamResumed),t.on(it.AudioTrackFeatureUpdate,this.onTrackFeatureUpdate);const y=[],v=!(!((i=n.dtx)!==null&&i!==void 0)||i),w=t.getSourceTrackSettings();w.autoGainControl&&y.push(Do.TF_AUTO_GAIN_CONTROL),w.echoCancellation&&y.push(Do.TF_ECHO_CANCELLATION),w.noiseSuppression&&y.push(Do.TF_NOISE_SUPPRESSION),w.channelCount&&w.channelCount>1&&y.push(Do.TF_STEREO),v&&y.push(Do.TF_NO_DTX),rf(t)&&t.hasPreConnectBuffer&&y.push(Do.TF_PRECONNECT_BUFFER);const S=new LF({cid:t.mediaStreamTrack.id,name:n.name,type:Re.kindToProto(t.kind),muted:t.isMuted,source:Re.sourceToProto(t.source),disableDtx:v,encryption:this.encryptionType,stereo:r,disableRed:this.isE2EEEnabled||!(!((o=n.red)!==null&&o!==void 0)||o),stream:n==null?void 0:n.stream,backupCodecPolicy:n==null?void 0:n.backupCodecPolicy,audioFeatures:y});let C;if(t.kind===Re.Kind.Video){let A={width:0,height:0};try{A=yield t.waitForDimensions()}catch{const U=(a=(s=this.roomOptions.videoCaptureDefaults)===null||s===void 0?void 0:s.resolution)!==null&&a!==void 0?a:X_.h720.resolution;A={width:U.width,height:U.height},this.log.error("could not determine track dimensions, using defaults",Object.assign(Object.assign(Object.assign({},this.logContext),yn(t)),{dims:A}))}S.width=A.width,S.height=A.height,Lh(t)&&(Wu(m)&&(t.source===Re.Source.ScreenShare&&(n.scalabilityMode="L1T3","contentHint"in t.mediaStreamTrack&&(t.mediaStreamTrack.contentHint="motion",this.log.info("forcing contentHint to motion for screenshare with SVC codecs",Object.assign(Object.assign({},this.logContext),yn(t))))),n.scalabilityMode=(c=n.scalabilityMode)!==null&&c!==void 0?c:"L3T3_KEY"),S.simulcastCodecs=[new DF({codec:m,cid:t.mediaStreamTrack.id})],n.backupCodec===!0&&(n.backupCodec={codec:nj}),n.backupCodec&&m!==n.backupCodec.codec&&S.encryption===Za.NONE&&(this.roomOptions.dynacast||(this.roomOptions.dynacast=!0),S.simulcastCodecs.push(new DF({codec:n.backupCodec.codec,cid:""})))),C=ij(t.source===Re.Source.ScreenShare,S.width,S.height,n),S.layers=OX(S.width,S.height,C,Wu(n.videoCodec))}else t.kind===Re.Kind.Audio&&(C=[{maxBitrate:(l=n.audioPreset)===null||l===void 0?void 0:l.maxBitrate,priority:(d=(u=n.audioPreset)===null||u===void 0?void 0:u.priority)!==null&&d!==void 0?d:"high",networkPriority:(p=(f=n.audioPreset)===null||f===void 0?void 0:f.priority)!==null&&p!==void 0?p:"high"}]);if(!this.engine||this.engine.isClosed)throw new fo("cannot publish track when not connected");const E=()=>ye(this,void 0,void 0,function*(){var A,L,U;if(!this.engine.pcManager)throw new fo("pcManager is not ready");if(t.sender=yield this.engine.createSender(t,n,C),this.emit(je.LocalSenderCreated,t.sender,t),Lh(t)&&((A=n.degradationPreference)!==null&&A!==void 0||(n.degradationPreference=LFe(t)),t.setDegradationPreference(n.degradationPreference)),C)if(sv()&&t.kind===Re.Kind.Audio){let I;for(const F of this.engine.pcManager.publisher.getTransceivers())if(F.sender===t.sender){I=F;break}I&&this.engine.pcManager.publisher.setTrackCodecBitrate({transceiver:I,codec:"opus",maxbr:!((L=C[0])===null||L===void 0)&&L.maxBitrate?C[0].maxBitrate/1e3:0})}else t.codec&&Wu(t.codec)&&(!((U=C[0])===null||U===void 0)&&U.maxBitrate)&&this.engine.pcManager.publisher.setTrackCodecBitrate({cid:S.cid,codec:t.codec,maxbr:C[0].maxBitrate/1e3});yield this.engine.negotiate()});let T;const x=new Promise((A,L)=>ye(this,void 0,void 0,function*(){var U;try{T=yield this.engine.addTrack(S),A(T)}catch(I){t.sender&&(!((U=this.engine.pcManager)===null||U===void 0)&&U.publisher)&&(this.engine.pcManager.publisher.removeTrack(t.sender),yield this.engine.negotiate().catch(F=>
vendor: 5,769 bytes, line 422
422{this.log.error("failed to negotiate after removing track due to failed add track request",Object.assign(Object.assign(Object.assign({},this.logContext),yn(t)),{error:F}))})),L(I)}}));if(this.enabledPublishVideoCodecs.length>0)T=(yield Promise.all([x,E()]))[0];else{T=yield x;let A;if(T.codecs.forEach(L=>{A===void 0&&(A=L.mimeType)}),A&&t.kind===Re.Kind.Video){const L=zS(A);L!==m&&(this.log.debug("falling back to server selected codec",Object.assign(Object.assign(Object.assign({},this.logContext),yn(t)),{codec:L})),n.videoCodec=L,C=ij(t.source===Re.Source.ScreenShare,S.width,S.height,n))}yield E()}const O=new JA(t.kind,T,t,{loggerName:this.roomOptions.loggerName,loggerContextCb:()=>this.logContext});if(O.on(it.CpuConstrained,A=>this.onTrackCpuConstrained(A,O)),O.options=n,t.sid=T.sid,this.log.debug("publishing ".concat(t.kind," with encodings"),Object.assign(Object.assign({},this.logContext),{encodings:C,trackInfo:T})),Lh(t)?t.startMonitor(this.engine.client):rf(t)&&t.startMonitor(),this.addTrackPublication(O),this.emit(je.LocalTrackPublished,O),rf(t)&&T.audioFeatures.includes(Do.TF_PRECONNECT_BUFFER)){const A=t.getPreConnectBuffer(),L=t.getPreConnectBufferMimeType();this.on(je.LocalTrackSubscribed,U=>{if(U.trackSid===T.sid){if(!t.hasPreConnectBuffer){this.log.warn("subscribe event came to late, buffer already closed",this.logContext);return}this.log.debug("finished recording preconnect buffer",Object.assign(Object.assign({},this.logContext),yn(t))),t.stopPreConnectBuffer()}}),A&&new Promise((I,F)=>ye(this,void 0,void 0,function*(){var P,W,ee,Y,X,Z;try{this.log.debug("waiting for agent",Object.assign(Object.assign({},this.logContext),yn(t)));const z=setTimeout(()=>{F(new Error("agent not active within 10 seconds"))},1e4),ue=yield this.waitUntilActiveAgentPresent();clearTimeout(z),this.log.debug("sending preconnect buffer",Object.assign(Object.assign({},this.logContext),yn(t)));const ge=yield this.streamBytes({name:"preconnect-buffer",mimeType:L,topic:"lk.agent.pre-connect-audio-buffer",destinationIdentities:[ue.identity],attributes:{trackId:O.trackSid,sampleRate:String((X=w.sampleRate)!==null&&X!==void 0?X:"48000"),channels:String((Z=w.channelCount)!==null&&Z!==void 0?Z:"1")}});try{for(var G=!0,Q=wf(A),q;q=yield Q.next(),P=q.done,!P;G=!0){Y=q.value,G=!1;const ae=Y;yield ge.write(ae)}}catch(ae){W={error:ae}}finally{try{!G&&!P&&(ee=Q.return)&&(yield ee.call(Q))}finally{if(W)throw W.error}}yield ge.close(),I()}catch(z){F(z)}})).then(()=>{this.log.debug("preconnect buffer sent successfully",Object.assign(Object.assign({},this.logContext),yn(t)))}).catch(I=>{this.log.error("error sending preconnect buffer",Object.assign(Object.assign(Object.assign({},this.logContext),yn(t)),{error:I}))})}return O})}get isLocal(){return!0}publishAdditionalCodecForTrack(t,n,r){return ye(this,void 0,void 0,function*(){var i;if(this.encryptionType!==Za.NONE)return;let o;if(this.trackPublications.forEach(p=>{p.track&&p.track===t&&(o=p)}),!o)throw new Sf("track is not published");if(!Lh(t))throw new Sf("track is not a video track");const s=Object.assign(Object.assign({},(i=this.roomOptions)===null||i===void 0?void 0:i.publishDefaults),r),a=NFe(t,n,s);if(!a){this.log.info("backup codec has been disabled, ignoring request to add additional codec for track",Object.assign(Object.assign({},this.logContext),yn(t)));return}const c=t.addSimulcastTrack(n,a);if(!c)return;const l=new LF({cid:c.mediaStreamTrack.id,type:Re.kindToProto(t.kind),muted:t.isMuted,source:Re.sourceToProto(t.source),sid:t.sid,simulcastCodecs:[{codec:s.videoCodec,cid:c.mediaStreamTrack.id}]});if(l.layers=OX(l.width,l.height,a),!this.engine||this.engine.isClosed)throw new fo("cannot publish track when not connected");const u=()=>ye(this,void 0,void 0,function*(){yield this.engine.createSimulcastSender(t,c,s,a),yield this.engine.negotiate()}),f=(yield Promise.all([this.engine.addTrack(l),u()]))[0];this.log.debug("published ".concat(n," for track ").concat(t.sid),Object.assign(Object.assign({},this.logContext),{encodings:a,trackInfo:f}))})}unpublishTrack(t,n){return ye(this,void 0,void 0,function*(){var r,i;if(Mg(t)){const l=this.pendingPublishPromises.get(t);l&&(this.log.info("awaiting publish promise before attempting to unpublish",Object.assign(Object.assign({},this.logContext),yn(t))),yield l)}const o=this.getPublicationForTrack(t),s=o?yn(o):void 0;if(this.log.debug("unpublishing track",Object.assign(Object.assign({},this.logContext),s)),!o||!o.track){this.log.warn("track was not unpublished because no publication was found",Object.assign(Object.assign({},this.logContext),s));return}t=o.track,t.off(it.Muted,this.onTrackMuted),t.off(it.Unmuted,this.onTrackUnmuted),t.off(it.Ended,this.handleTrackEnded),t.off(it.UpstreamPaused,this.onTrackUpstreamPaused),t.off(it.UpstreamResumed,this.onTrackUpstreamResumed),t.off(it.AudioTrackFeatureUpdate,this.onTrackFeatureUpdate),n===void 0&&(n=(i=(r=this.roomOptions)===null||r===void 0?void 0:r.stopLocalTrackOnUnpublish)!==null&&i!==void 0?i:!0),n?t.stop():t.stopMonitor();let a=!1;const c=t.sender;if(t.sender=void 0,this.engine.pcManager&&this.engine.pcManager.currentState<Ei.FAILED&&c)try{for(const l of this.engine.pcManager.publisher.getTransceivers())l.sender===c&&(l.direction="inactive",a=!0);if(this.engine.removeTrack(c)&&(a=!0),Lh(t)){for(const[,l]of t.simulcastCodecs)l.sender&&(this.engine.removeTrack(l.sender)&&(a=!0),l.sender=void 0);t.simulcastCodecs.clear()}}catch(l){this.log.warn("failed to unpublish track",Object.assign(Object.assign(Object.assign({},this.logContext),s),{error:l}))}switch(this.trackPublications.delete(o.trackSid),o.kind){case Re.Kind.Audio:this.audioTrackPublications.delete(o.trackSid);break;case Re.Kind.Video:this.videoTrackPublications.delete(o.trackSid);break}
vendor: 9,762 bytes, line 422
422return this.emit(je.LocalTrackUnpublished,o),o.setTrack(void 0),a&&(yield this.engine.negotiate()),o})}unpublishTracks(t){return ye(this,void 0,void 0,function*(){return(yield Promise.all(t.map(r=>this.unpublishTrack(r)))).filter(r=>!!r)})}republishAllTracks(t){return ye(this,arguments,void 0,function(n){var r=this;let i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return(function*(){r.republishPromise&&(yield r.republishPromise),r.republishPromise=new Promise((o,s)=>ye(r,void 0,void 0,function*(){try{const a=[];this.trackPublications.forEach(c=>{c.track&&(n&&(c.options=Object.assign(Object.assign({},c.options),n)),a.push(c))}),yield Promise.all(a.map(c=>ye(this,void 0,void 0,function*(){const l=c.track;yield this.unpublishTrack(l,!1),i&&!l.isMuted&&l.source!==Re.Source.ScreenShare&&l.source!==Re.Source.ScreenShareAudio&&(rf(l)||Lh(l))&&!l.isUserProvided&&(this.log.debug("restarting existing track",Object.assign(Object.assign({},this.logContext),{track:c.trackSid})),yield l.restartTrack()),yield this.publishOrRepublishTrack(l,c.options,!0)}))),o()}catch(a){s(a)}finally{this.republishPromise=void 0}})),yield r.republishPromise})()})}publishData(t){return ye(this,arguments,void 0,function(n){var r=this;let i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return(function*(){const o=i.reliable?hn.RELIABLE:hn.LOSSY,s=i.destinationIdentities,a=i.topic,c=new ya({kind:o,value:{case:"user",value:new Jfe({participantIdentity:r.identity,payload:n,destinationIdentities:s,topic:a})}});yield r.engine.sendDataPacket(c,o)})()})}publishDtmf(t,n){return ye(this,void 0,void 0,function*(){const r=new ya({kind:hn.RELIABLE,value:{case:"sipDtmf",value:new Zfe({code:t,digit:n})}});yield this.engine.sendDataPacket(r,hn.RELIABLE)})}sendChatMessage(t,n){return ye(this,void 0,void 0,function*(){const r={id:crypto.randomUUID(),message:t,timestamp:Date.now(),attachedFiles:n==null?void 0:n.attachments},i=new ya({value:{case:"chatMessage",value:new IF(Object.assign(Object.assign({},r),{timestamp:ri.parse(r.timestamp)}))}});return yield this.engine.sendDataPacket(i,hn.RELIABLE),this.emit(je.ChatMessage,r),r})}editChatMessage(t,n){return ye(this,void 0,void 0,function*(){const r=Object.assign(Object.assign({},n),{message:t,editTimestamp:Date.now()}),i=new ya({value:{case:"chatMessage",value:new IF(Object.assign(Object.assign({},r),{timestamp:ri.parse(r.timestamp),editTimestamp:ri.parse(r.editTimestamp)}))}});return yield this.engine.sendDataPacket(i,hn.RELIABLE),this.emit(je.ChatMessage,r),r})}sendText(t,n){return ye(this,void 0,void 0,function*(){return this.roomOutgoingDataStreamManager.sendText(t,n)})}streamText(t){return ye(this,void 0,void 0,function*(){return this.roomOutgoingDataStreamManager.streamText(t)})}sendFile(t,n){return ye(this,void 0,void 0,function*(){return this.roomOutgoingDataStreamManager.sendFile(t,n)})}streamBytes(t){return ye(this,void 0,void 0,function*(){return this.roomOutgoingDataStreamManager.streamBytes(t)})}performRpc(t){return ye(this,arguments,void 0,function(n){var r=this;let{destinationIdentity:i,method:o,payload:s,responseTimeout:a=1e4}=n;return(function*(){return new Promise((l,u)=>ye(r,void 0,void 0,function*(){var d,f,p,g;if(d$(s)>dpe){u(xi.builtIn("REQUEST_PAYLOAD_TOO_LARGE"));return}if(!((f=(d=this.engine.latestJoinResponse)===null||d===void 0?void 0:d.serverInfo)===null||f===void 0)&&f.version&&gd((g=(p=this.engine.latestJoinResponse)===null||p===void 0?void 0:p.serverInfo)===null||g===void 0?void 0:g.version,"1.8.0")<0){u(xi.builtIn("UNSUPPORTED_SERVER"));return}const m=crypto.randomUUID();yield this.publishRpcRequest(i,m,o,s,a-2e3);const y=setTimeout(()=>{this.pendingAcks.delete(m),u(xi.builtIn("CONNECTION_TIMEOUT")),this.pendingResponses.delete(m),clearTimeout(v)},2e3);this.pendingAcks.set(m,{resolve:()=>{clearTimeout(y)},participantIdentity:i});const v=setTimeout(()=>{this.pendingResponses.delete(m),u(xi.builtIn("RESPONSE_TIMEOUT"))},a);this.pendingResponses.set(m,{resolve:(w,S)=>{clearTimeout(v),this.pendingAcks.has(m)&&(console.warn("RPC response received before ack",m),this.pendingAcks.delete(m),clearTimeout(y)),S?u(S):l(w??"")},participantIdentity:i})}))})()})}registerRpcMethod(t,n){this.rpcHandlers.has(t)&&this.log.warn("you're overriding the RPC handler for method ".concat(t,", in the future this will throw an error")),this.rpcHandlers.set(t,n)}unregisterRpcMethod(t){this.rpcHandlers.delete(t)}setTrackSubscriptionPermissions(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];this.participantTrackPermissions=n,this.allParticipantsAllowedToSubscribe=t,this.engine.client.isDisconnected||this.updateTrackSubscriptionPermissions()}handleIncomingRpcAck(t){const n=this.pendingAcks.get(t);n?(n.resolve(),this.pendingAcks.delete(t)):console.error("Ack received for unexpected RPC request",t)}handleIncomingRpcResponse(t,n,r){const i=this.pendingResponses.get(t);i?(i.resolve(n,r),this.pendingResponses.delete(t)):console.error("Response received for unexpected RPC request",t)}publishRpcRequest(t,n,r,i,o){return ye(this,void 0,void 0,function*(){const s=new ya({destinationIdentities:[t],kind:hn.RELIABLE,value:{case:"rpcRequest",value:new ehe({id:n,method:r,payload:i,responseTimeoutMs:o,version:1})}});yield this.engine.sendDataPacket(s,hn.RELIABLE)})}handleParticipantDisconnected(t){for(const[n,{participantIdentity:r}]of this.pendingAcks)r===t&&this.pendingAcks.delete(n);for(const[n,{participantIdentity:r,resolve:i}]of this.pendingResponses)r===t&&(i(null,xi.builtIn("RECIPIENT_DISCONNECTED")),this.pendingResponses.delete(n))}setEnabledPublishCodecs(t){this.enabledPublishVideoCodecs=t.filter(n=>n.mime.split("/")[0].toLowerCase()==="video")}updateInfo(t){return super.updateInfo(t)?(t.tracks.forEach(n=>{var r,i;const o=this.trackPublications.get(n.sid);if(o){const s=o.isMuted||((i=(r=o.track)===null||r===void 0?void 0:r.isUpstreamPaused)!==null&&i!==void 0?i:!1);s!==n.muted&&(this.log.debug("updating server mute state after reconcile",Object.assign(Object.assign(Object.assign({},this.logContext),yn(o)),{mutedOnServer:s})),this.engine.client.sendMuteTrack(n.sid,s))}}),!0):!1}setActiveAgent(t){var n,r,i,o;this.firstActiveAgent=t,t&&!this.firstActiveAgent&&(this.firstActiveAgent=t),t?(r=(n=this.activeAgentFuture)===null||n===void 0?void 0:n.resolve)===null||r===void 0||r.call(n,t):(o=(i=this.activeAgentFuture)===null||i===void 0?void 0:i.reject)===null||o===void 0||o.call(i,"Agent disconnected"),this.activeAgentFuture=void 0}waitUntilActiveAgentPresent(){return this.firstActiveAgent?Promise.resolve(this.firstActiveAgent):(this.activeAgentFuture||(this.activeAgentFuture=new Ju),this.activeAgentFuture.promise)}getPublicationForTrack(t){let n;return this.trackPublications.forEach(r=>{const i=r.track;i&&(t instanceof MediaStreamTrack?(rf(i)||Lh(i))&&i.mediaStreamTrack===t&&(n=r):t===i&&(n=r))}),n}waitForPendingPublicationOfSource(t){return ye(this,void 0,void 0,function*(){const r=Date.now();for(;Date.now()<r+1e4;){const i=Array.from(this.pendingPublishPromises.entries()).find(o=>{let[s]=o;return s.source===t});if(i)return i[1];yield ka(20)}})}}class ZA extends hf{constructor(t,n,r,i){super(t,n.sid,n.name,i),this.track=void 0,this.allowed=!0,this.requestedDisabled=void 0,this.visible=!0,this.handleEnded=o=>{this.setTrack(void 0),this.emit(it.Ended,o)},this.handleVisibilityChange=o=>{this.log.debug("adaptivestream video visibility ".concat(this.trackSid,", visible=").concat(o),this.logContext),this.visible=o,this.emitTrackUpdate()},this.handleVideoDimensionsChange=o=>{this.log.debug("adaptivestream video dimensions ".concat(o.width,"x").concat(o.height),this.logContext),this.videoDimensionsAdaptiveStream=o,this.emitTrackUpdate()},this.subscribed=r,this.updateInfo(n)}setSubscribed(t){const n=this.subscriptionStatus,r=this.permissionStatus;this.subscribed=t,t&&(this.allowed=!0);const i=new tP({trackSids:[this.trackSid],subscribe:this.subscribed,participantTracks:[new ihe({participantSid:"",trackSids:[this.trackSid]})]});this.emit(it.UpdateSubscription,i),this.emitSubscriptionUpdateIfChanged(n),this.emitPermissionUpdateIfChanged(r)}get subscriptionStatus(){return this.subscribed===!1?hf.SubscriptionStatus.Unsubscribed:super.isSubscribed?hf.SubscriptionStatus.Subscribed:hf.SubscriptionStatus.Desired}get permissionStatus(){return this.allowed?hf.PermissionStatus.Allowed:hf.PermissionStatus.NotAllowed}get isSubscribed(){return this.subscribed===!1?!1:super.isSubscribed}get isDesired(){return this.subscribed!==!1}get isEnabled(){return this.requestedDisabled!==void 0?!this.requestedDisabled:this.isAdaptiveStream?this.visible:!0}get isLocal(){return!1}setEnabled(t){!this.isManualOperationAllowed()||this.requestedDisabled===!t||(this.requestedDisabled=!t,this.emitTrackUpdate())}setVideoQuality(t){!this.isManualOperationAllowed()||this.requestedMaxQuality===t||(this.requestedMaxQuality=t,this.requestedVideoDimensions=void 0,this.emitTrackUpdate())}setVideoDimensions(t){var n,r;this.isManualOperationAllowed()&&(((n=this.requestedVideoDimensions)===null||n===void 0?void 0:n.width)===t.width&&((r=this.requestedVideoDimensions)===null||r===void 0?void 0:r.height)===t.height||(_M(this.track)&&(this.requestedVideoDimensions=t),this.requestedMaxQuality=void 0,this.emitTrackUpdate()))}setVideoFPS(t){this.isManualOperationAllowed()&&_M(this.track)&&this.fps!==t&&(this.fps=t,this.emitTrackUpdate())}get videoQuality(){var t;return(t=this.requestedMaxQuality)!==null&&t!==void 0?t:ic.HIGH}setTrack(t){const n=this.subscriptionStatus,r=this.permissionStatus,i=this.track;i!==t&&(i&&(i.off(it.VideoDimensionsChanged,this.handleVideoDimensionsChange),i.off(it.VisibilityChanged,this.handleVisibilityChange),i.off(it.Ended,this.handleEnded),i.detach(),i.stopMonitor(),this.emit
vendor: 4,732 bytes, line 422
422(it.Unsubscribed,i)),super.setTrack(t),t&&(t.sid=this.trackSid,t.on(it.VideoDimensionsChanged,this.handleVideoDimensionsChange),t.on(it.VisibilityChanged,this.handleVisibilityChange),t.on(it.Ended,this.handleEnded),this.emit(it.Subscribed,t)),this.emitPermissionUpdateIfChanged(r),this.emitSubscriptionUpdateIfChanged(n))}setAllowed(t){const n=this.subscriptionStatus,r=this.permissionStatus;this.allowed=t,this.emitPermissionUpdateIfChanged(r),this.emitSubscriptionUpdateIfChanged(n)}setSubscriptionError(t){this.emit(it.SubscriptionFailed,t)}updateInfo(t){super.updateInfo(t);const n=this.metadataMuted;this.metadataMuted=t.muted,this.track?this.track.setMuted(t.muted):n!==t.muted&&this.emit(t.muted?it.Muted:it.Unmuted)}emitSubscriptionUpdateIfChanged(t){const n=this.subscriptionStatus;t!==n&&this.emit(it.SubscriptionStatusChanged,n,t)}emitPermissionUpdateIfChanged(t){this.permissionStatus!==t&&this.emit(it.SubscriptionPermissionChanged,this.permissionStatus,t)}isManualOperationAllowed(){return this.isDesired?!0:(this.log.warn("cannot update track settings when not subscribed",this.logContext),!1)}get isAdaptiveStream(){return _M(this.track)&&this.track.isAdaptiveStream}emitTrackUpdate(){const t=new fhe({trackSids:[this.trackSid],disabled:!this.isEnabled,fps:this.fps});if(this.kind===Re.Kind.Video){let n=this.requestedVideoDimensions;if(this.videoDimensionsAdaptiveStream!==void 0)if(n)yX(this.videoDimensionsAdaptiveStream,n)&&(this.log.debug("using adaptive stream dimensions instead of requested",Object.assign(Object.assign({},this.logContext),this.videoDimensionsAdaptiveStream)),n=this.videoDimensionsAdaptiveStream);else if(this.requestedMaxQuality!==void 0&&this.trackInfo){const r=tFe(this.trackInfo,this.requestedMaxQuality);r&&yX(this.videoDimensionsAdaptiveStream,r)&&(this.log.debug("using adaptive stream dimensions instead of max quality layer",Object.assign(Object.assign({},this.logContext),this.videoDimensionsAdaptiveStream)),n=this.videoDimensionsAdaptiveStream)}else this.log.debug("using adaptive stream dimensions",Object.assign(Object.assign({},this.logContext),this.videoDimensionsAdaptiveStream)),n=this.videoDimensionsAdaptiveStream;n?(t.width=Math.ceil(n.width),t.height=Math.ceil(n.height)):this.requestedMaxQuality!==void 0?(this.log.debug("using requested max quality",Object.assign(Object.assign({},this.logContext),{quality:this.requestedMaxQuality})),t.quality=this.requestedMaxQuality):(this.log.debug("using default quality",Object.assign(Object.assign({},this.logContext),{quality:ic.HIGH})),t.quality=ic.HIGH)}this.emit(it.UpdateSettings,t)}}class eI extends bpe{static fromParticipantInfo(t,n,r){return new eI(t,n.sid,n.identity,n.name,n.metadata,n.attributes,r,n.kind)}get logContext(){return Object.assign(Object.assign({},super.logContext),{rpID:this.sid,remoteParticipant:this.identity})}constructor(t,n,r,i,o,s,a){let c=arguments.length>7&&arguments[7]!==void 0?arguments[7]:Y_.STANDARD;super(n,r||"",i,o,s,a,c),this.signalClient=t,this.trackPublications=new Map,this.audioTrackPublications=new Map,this.videoTrackPublications=new Map,this.volumeMap=new Map}addTrackPublication(t){super.addTrackPublication(t),t.on(it.UpdateSettings,n=>{this.log.debug("send update settings",Object.assign(Object.assign(Object.assign({},this.logContext),yn(t)),{settings:n})),this.signalClient.sendUpdateTrackSettings(n)}),t.on(it.UpdateSubscription,n=>{n.participantTracks.forEach(r=>{r.participantSid=this.sid}),this.signalClient.sendUpdateSubscription(n)}),t.on(it.SubscriptionPermissionChanged,n=>{this.emit(je.TrackSubscriptionPermissionChanged,t,n)}),t.on(it.SubscriptionStatusChanged,n=>{this.emit(je.TrackSubscriptionStatusChanged,t,n)}),t.on(it.Subscribed,n=>{this.emit(je.TrackSubscribed,n,t)}),t.on(it.Unsubscribed,n=>{this.emit(je.TrackUnsubscribed,n,t)}),t.on(it.SubscriptionFailed,n=>{this.emit(je.TrackSubscriptionFailed,t.trackSid,n)})}getTrackPublication(t){const n=super.getTrackPublication(t);if(n)return n}getTrackPublicationByName(t){const n=super.getTrackPublicationByName(t);if(n)return n}setVolume(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Re.Source.Microphone;this.volumeMap.set(n,t);const r=this.getTrackPublication(n);r&&r.track&&r.track.setVolume(t)}getVolume(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Re.Source.Microphone;const n=this.getTrackPublication(t);return n&&n.track?n.track.getVolume():this.volumeMap.get(t)}addSubscribedMediaTrack(t,n,r,i,o,s){let a=this.getTrackPublicationBySid(n);if(a||n.startsWith("TR")||this.trackPublications.forEach(u=>{!a&&t.kind===u.kind.toString()&&(a=u)}),!a){if(s===0){this.log.error("could not find published track",Object.assign(Object.assign({},this.logContext),{trackSid:n}
vendor: 57,074 bytes, line 422
422)),this.emit(je.TrackSubscriptionFailed,n);return}s===void 0&&(s=20),setTimeout(()=>{this.addSubscribedMediaTrack(t,n,r,i,o,s-1)},150);return}if(t.readyState==="ended"){this.log.error("unable to subscribe because MediaStreamTrack is ended. Do not call MediaStreamTrack.stop()",Object.assign(Object.assign({},this.logContext),yn(a))),this.emit(je.TrackSubscriptionFailed,n);return}const c=t.kind==="video";let l;return c?l=new QFe(t,n,i,o):l=new ype(t,n,i,this.audioContext,this.audioOutput),l.source=a.source,l.isMuted=a.isMuted,l.setMediaStream(r),l.start(),a.setTrack(l),this.volumeMap.has(a.source)&&ZF(l)&&sd(l)&&l.setVolume(this.volumeMap.get(a.source)),a}get hasMetadata(){return!!this.participantInfo}getTrackPublicationBySid(t){return this.trackPublications.get(t)}updateInfo(t){if(!super.updateInfo(t))return!1;const n=new Map,r=new Map;return t.tracks.forEach(i=>{var o,s;let a=this.getTrackPublicationBySid(i.sid);if(a)a.updateInfo(i);else{const c=Re.kindFromProto(i.type);if(!c)return;a=new ZA(c,i,(o=this.signalClient.connectOptions)===null||o===void 0?void 0:o.autoSubscribe,{loggerContextCb:()=>this.logContext,loggerName:(s=this.loggerOptions)===null||s===void 0?void 0:s.loggerName}),a.updateInfo(i),r.set(i.sid,a);const l=Array.from(this.trackPublications.values()).find(u=>u.source===(a==null?void 0:a.source));l&&a.source!==Re.Source.Unknown&&this.log.debug("received a second track publication for ".concat(this.identity," with the same source: ").concat(a.source),Object.assign(Object.assign({},this.logContext),{oldTrack:yn(l),newTrack:yn(a)})),this.addTrackPublication(a)}n.set(i.sid,a)}),this.trackPublications.forEach(i=>{n.has(i.trackSid)||(this.log.trace("detected removed track on remote participant, unpublishing",Object.assign(Object.assign({},this.logContext),yn(i))),this.unpublishTrack(i.trackSid,!0))}),r.forEach(i=>{this.emit(je.TrackPublished,i)}),!0}unpublishTrack(t,n){const r=this.trackPublications.get(t);if(!r)return;const{track:i}=r;switch(i&&(i.stop(),r.setTrack(void 0)),this.trackPublications.delete(t),r.kind){case Re.Kind.Audio:this.audioTrackPublications.delete(t);break;case Re.Kind.Video:this.videoTrackPublications.delete(t);break}n&&this.emit(je.TrackUnpublished,r)}setAudioOutput(t){return ye(this,void 0,void 0,function*(){this.audioOutput=t;const n=[];this.audioTrackPublications.forEach(r=>{var i;sd(r.track)&&ZF(r.track)&&n.push(r.track.setSinkId((i=t.deviceId)!==null&&i!==void 0?i:"default"))}),yield Promise.all(n)})}emit(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return this.log.trace("participant event",Object.assign(Object.assign({},this.logContext),{event:t,args:r})),super.emit(t,...r)}}var Bn;(function(e){e.Disconnected="disconnected",e.Connecting="connecting",e.Connected="connected",e.Reconnecting="reconnecting",e.SignalReconnecting="signalReconnecting"})(Bn||(Bn={}));const rje=4*1e3;class eh extends Pd.EventEmitter{constructor(t){var n,r,i,o;if(super(),n=this,this.state=Bn.Disconnected,this.activeSpeakers=[],this.isE2EEEnabled=!1,this.audioEnabled=!0,this.isVideoPlaybackBlocked=!1,this.log=gn,this.bufferedEvents=[],this.isResuming=!1,this.rpcHandlers=new Map,this.connect=(s,a,c)=>ye(this,void 0,void 0,function*(){var l;if(!D8e())throw md()?Error("WebRTC isn't detected, have you called registerGlobals?"):Error("LiveKit doesn't seem to be supported on this browser. Try to update your browser and make sure no browser extensions are disabling webRTC.");const u=yield this.disconnectLock.lock();if(this.state===Bn.Connected)return this.log.info("already connected to room ".concat(this.name),this.logContext),u(),Promise.resolve();if(this.connectFuture)return u(),this.connectFuture.promise;this.setAndEmitConnectionState(Bn.Connecting),((l=this.regionUrlProvider)===null||l===void 0?void 0:l.getServerUrl().toString())!==s&&(this.regionUrl=void 0,this.regionUrlProvider=void 0),XF(new URL(s))&&(this.regionUrlProvider===void 0?this.regionUrlProvider=new oj(s,a):this.regionUrlProvider.updateToken(a),this.regionUrlProvider.fetchRegionSettings().then(p=>{var g;(g=this.regionUrlProvider)===null||g===void 0||g.setServerReportedRegions(p)}).catch(p=>{this.log.warn("could not fetch region settings",Object.assign(Object.assign({},this.logContext),{error:p}))}));const d=(p,g,m)=>ye(this,void 0,void 0,function*(){var y,v;this.abortController&&this.abortController.abort();const w=new AbortController;this.abortController=w,u==null||u();try{yield this.attemptConnection(m??s,a,c,w),this.abortController=void 0,p()}catch(S){if(this.regionUrlProvider&&S instanceof mr&&S.reason!==xn.Cancelled&&S.reason!==xn.NotAllowed){let C=null;try{C=yield this.regionUrlProvider.getNextBestRegionUrl((y=this.abortController)===null||y===void 0?void 0:y.signal)}catch(E){if(E instanceof mr&&(E.status===401||E.reason===xn.Cancelled)){this.handleDisconnect(this.options.stopLocalTrackOnUnpublish),g(E);return}}C&&!(!((v=this.abortController)===null||v===void 0)&&v.signal.aborted)?(this.log.info("Initial connection failed with ConnectionError: ".concat(S.message,". Retrying with another region: ").concat(C),this.logContext),this.recreateEngine(),yield d(p,g,C)):(this.handleDisconnect(this.options.stopLocalTrackOnUnpublish,vX(S)),g(S))}else{let C=Vl.UNKNOWN_REASON;S instanceof mr&&(C=vX(S)),this.handleDisconnect(this.options.stopLocalTrackOnUnpublish,C),g(S)}}}),f=this.regionUrl;return this.regionUrl=void 0,this.connectFuture=new Ju((p,g)=>{d(p,g,f)},()=>{this.clearConnectionFutures()}),this.connectFuture.promise}),this.connectSignal=(s,a,c,l,u,d)=>ye(this,void 0,void 0,function*(){var f,p,g;const m=yield c.join(s,a,{autoSubscribe:l.autoSubscribe,adaptiveStream:typeof u.adaptiveStream=="object"?!0:u.adaptiveStream,maxRetries:l.maxRetries,e2eeEnabled:!!this.e2eeManager,websocketTimeout:l.websocketTimeout},d.signal);let y=m.serverInfo;if(y||(y={version:m.serverVersion,region:m.serverRegion}),this.serverInfo=y,this.log.debug("connected to Livekit Server ".concat(Object.entries(y).map(v=>{let[w,S]=v;return"".concat(w,": ").concat(S)}).join(", ")),{room:(f=m.room)===null||f===void 0?void 0:f.name,roomSid:(p=m.room)===null||p===void 0?void 0:p.sid,identity:(g=m.participant)===null||g===void 0?void 0:g.identity}),!y.version)throw new w8e("unknown server version");return y.version==="0.15.1"&&this.options.dynacast&&(this.log.debug("disabling dynacast due to server version",this.logContext),u.dynacast=!1),m}),this.applyJoinResponse=s=>{const a=s.participant;if(this.localParticipant.sid=a.sid,this.localParticipant.identity=a.identity,this.localParticipant.setEnabledPublishCodecs(s.enabledPublishCodecs),this.options.e2ee&&this.e2eeManager)try{this.e2eeManager.setSifTrailer(s.sifTrailer)}catch(c){this.log.error(c instanceof Error?c.message:"Could not set SifTrailer",Object.assign(Object.assign({},this.logContext),{error:c}))}this.handleParticipantUpdates([a,...s.otherParticipants]),s.room&&this.handleRoomUpdate(s.room)},this.attemptConnection=(s,a,c,l)=>ye(this,void 0,void 0,function*(){var u,d;this.state===Bn.Reconnecting||this.isResuming||!((u=this.engine)===null||u===void 0)&&u.pendingReconnect?(this.log.info("Reconnection attempt replaced by new connection attempt",this.logContext),this.recreateEngine()):this.maybeCreateEngine(),!((d=this.regionUrlProvider)===null||d===void 0)&&d.isCloud()&&this.engine.setRegionUrlProvider(this.regionUrlProvider),this.acquireAudioContext(),this.connOptions=Object.assign(Object.assign({},u$),c),this.connOptions.rtcConfig&&(this.engine.rtcConfig=this.connOptions.rtcConfig),this.connOptions.peerConnectionTimeout&&(this.engine.peerConnectionTimeout=this.connOptions.peerConnectionTimeout);try{const f=yield this.connectSignal(s,a,this.engine,this.connOptions,this.options,l);this.applyJoinResponse(f),this.setupLocalParticipantEvents(),this.emit(Ne.SignalConnected)}catch(f){yield this.engine.close(),this.recreateEngine();const p=new mr("could not establish signal connection",xn.ServerUnreachable);throw f instanceof Error&&(p.message="".concat(p.message,": ").concat(f.message)),f instanceof mr&&(p.reason=f.reason,p.status=f.status),this.log.debug("error trying to establish signal connection",Object.assign(Object.assign({},this.logContext),{error:f})),p}if(l.signal.aborted)throw yield this.engine.close(),this.recreateEngine(),new mr("Connection attempt aborted",xn.Cancelled);try{yield this.engine.waitForPCInitialConnection(this.connOptions.peerConnectionTimeout,l)}catch(f){throw yield this.engine.close(),this.recreateEngine(),f}Sa()&&this.options.disconnectOnPageLeave&&(window.addEventListener("pagehide",this.onPageLeave),window.addEventListener("beforeunload",this.onPageLeave)),Sa()&&document.addEventListener("freeze",this.onPageLeave),this.setAndEmitConnectionState(Bn.Connected),this.emit(Ne.Connected),this.registerConnectionReconcile()}),this.disconnect=function(){for(var s=arguments.length,a=new Array(s),c=0;c<s;c++)a[c]=arguments[c];return ye(n,[...a],void 0,function(){var l=this;let u=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;return(function*(){var d,f,p,g;const m=yield l.disconnectLock.lock();try{if(l.state===Bn.Disconnected){l.log.debug("already disconnected",l.logContext);return}l.log.info("disconnect from room",Object.assign({},l.logContext)),(l.state===Bn.Connecting||l.state===Bn.Reconnecting||l.isResuming)&&(l.log.warn("abort connection attempt",l.logContext),(d=l.abortController)===null||d===void 0||d.abort(),(p=(f=l.connectFuture)===null||f===void 0?void 0:f.reject)===null||p===void 0||p.call(f,new mr("Client initiated disconnect",xn.Cancelled)),l.connectFuture=void 0),!((g=l.engine)===null||g===void 0)&&g.client.isDisconnected||(yield l.engine.client.sendLeave()),l.engine&&(yield l.engine.close()),l.handleDisconnect(u,Vl.CLIENT_INITIATED),l.engine=void 0}finally{m()}})()})},this.onPageLeave=()=>ye(this,void 0,void 0,function*(){this.log.info("Page leave detected, disconnecting",this.logContext),yield this.disconnect()}),this.startAudio=()=>ye(this,void 0,void 0,function*(){const s=[],a=Xs();if(a&&a.os==="iOS"){const c="livekit-dummy-audio-el";let l=document.getElementById(c);if(!l){l=document.createElement("audio"),l.id=c,l.autoplay=!0,l.hidden=!0;const u=SM();u.enabled=!0;const d=new MediaStream([u]);l.srcObject=d,document.addEventListener("visibilitychange",()=>{l&&(l.srcObject=document.hidden?null:d,document.hidden||(this.log.debug("page visible again, triggering startAudio to resume playback and update playback status",this.logContext),this.startAudio()))}),document.body.append(l),this.once(Ne.Disconnected,()=>{l==null||l.remove(),l=null})}s.push(l)}this.remoteParticipants.forEach(c=>{c.audioTrackPublications.forEach(l=>{l.track&&l.track.attachedElements.forEach(u=>{s.push(u)})})});try{yield Promise.all([this.acquireAudioContext(),...s.map(c=>(c.muted=!1,c.play()))]),this.handleAudioPlaybackStarted()}catch(c){throw this.handleAudioPlaybackFailed(c),c}}),this.startVideo=()=>ye(this,void 0,void 0,function*(){const s=[];for(const a of this.remoteParticipants.values())a.videoTrackPublications.forEach(c=>{var l;(l=c.track)===null||l===void 0||l.attachedElements.forEach(u=>{s.includes(u)||s.push(u)})});yield Promise.all(s.map(a=>a.play())).then(()=>{this.handleVideoPlaybackStarted()}).catch(a=>{a.name==="NotAllowedError"?this.handleVideoPlaybackFailed():this.log.warn("Resuming video playback failed, make sure you call `startVideo` directly in a user gesture handler",this.logContext)})}),this.handleRestarting=()=>{this.clearConnectionReconcile(),this.isResuming=!1;for(const s of this.remoteParticipants.values())this.handleParticipantDisconnected(s.identity,s);this.setAndEmitConnectionState(Bn.Reconnecting)&&this.emit(Ne.Reconnecting)},this.handleSignalRestarted=s=>ye(this,void 0,void 0,function*(){this.log.debug("signal reconnected to server, region ".concat(s.serverRegion),Object.assign(Object.assign({},this.logContext),{region:s.serverRegion})),this.bufferedEvents=[],this.applyJoinResponse(s);try{yield this.localParticipant.republishAllTracks(void 0,!0)}catch(a){this.log.error("error trying to re-publish tracks after reconnection",Object.assign(Object.assign({},this.logContext),{error:a}))}try{yield this.engine.waitForRestarted(),this.log.debug("fully reconnected to server",Object.assign(Object.assign({},this.logContext),{region:s.serverRegion}))}catch{return}this.setAndEmitConnectionState(Bn.Connected),this.emit(Ne.Reconnected),this.registerConnectionReconcile(),this.emitBufferedEvents()}),this.handleParticipantUpdates=s=>{s.forEach(a=>{var c;if(a.identity===this.localParticipant.identity){this.localParticipant.updateInfo(a);return}a.identity===""&&(a.identity=(c=this.sidToIdentity.get(a.sid))!==null&&c!==void 0?c:"");let l=this.remoteParticipants.get(a.identity);a.state===Ty.DISCONNECTED?this.handleParticipantDisconnected(a.identity,l):l=this.getOrCreateParticipant(a.identity,a)})},this.handleActiveSpeakersUpdate=s=>{const a=[],c={};s.forEach(l=>{if(c[l.sid]=!0,l.sid===this.localParticipant.sid)this.localParticipant.audioLevel=l.level,this.localParticipant.setIsSpeaking(!0),a.push(this.localParticipant);else{const u=this.getRemoteParticipantBySid(l.sid);u&&(u.audioLevel=l.level,u.setIsSpeaking(!0),a.push(u))}}),c[this.localParticipant.sid]||(this.localParticipant.audioLevel=0,this.localParticipant.setIsSpeaking(!1)),this.remoteParticipants.forEach(l=>{c[l.sid]||(l.audioLevel=0,l.setIsSpeaking(!1))}),this.activeSpeakers=a,this.emitWhenConnected(Ne.ActiveSpeakersChanged,a)},this.handleSpeakersChanged=s=>{const a=new Map;this.activeSpeakers.forEach(l=>{const u=this.remoteParticipants.get(l.identity);u&&u.sid!==l.sid||a.set(l.sid,l)}),s.forEach(l=>{let u=this.getRemoteParticipantBySid(l.sid);l.sid===this.localParticipant.sid&&(u=this.localParticipant),u&&(u.audioLevel=l.level,u.setIsSpeaking(l.active),l.active?a.set(l.sid,u):a.delete(l.sid))});const c=Array.from(a.values());c.sort((l,u)=>u.audioLevel-l.audioLevel),this.activeSpeakers=c,this.emitWhenConnected(Ne.ActiveSpeakersChanged,c)},this.handleStreamStateUpdate=s=>{s.streamStates.forEach(a=>{const c=this.getRemoteParticipantBySid(a.participantSid);if(!c)return;const l=c.getTrackPublicationBySid(a.trackSid);if(!l||!l.track)return;const u=Re.streamStateFromProto(a.state);l.track.setStreamState(u),u!==l.track.streamState&&(c.emit(je.TrackStreamStateChanged,l,l.track.streamState),this.emitWhenConnected(Ne.TrackStreamStateChanged,l,l.track.streamState,c))})},this.handleSubscriptionPermissionUpdate=s=>{const a=this.getRemoteParticipantBySid(s.participantSid);if(!a)return;const c=a.getTrackPublicationBySid(s.trackSid);c&&c.setAllowed(s.allowed)},this.handleSubscriptionError=s=>{const a=Array.from(this.remoteParticipants.values()).find(l=>l.trackPublications.has(s.trackSid));if(!a)return;const c=a.getTrackPublicationBySid(s.trackSid);c&&c.setSubscriptionError(s.err)},this.handleDataPacket=s=>{const a=this.remoteParticipants.get(s.participantIdentity);if(s.value.case==="user")this.handleUserPacket(a,s.value.value,s.kind);else if(s.value.case==="transcription")this.handleTranscription(a,s.value.value);else if(s.value.case==="sipDtmf")this.handleSipDtmf(a,s.value.value);else if(s.value.case==="chatMessage")this.handleChatMessage(a,s.value.value);else if(s.value.case==="metrics")this.handleMetrics(s.value.value,a);else if(s.value.case==="streamHeader"||s.value.case==="streamChunk"||s.value.case==="streamTrailer")this.handleDataStream(s);else if(s.value.case==="rpcRequest"){const c=s.value.value;this.handleIncomingRpcRequest(s.participantIdentity,c.id,c.method,c.payload,c.responseTimeoutMs,c.version)}},this.handleUserPacket=(s,a,c)=>{this.emit(Ne.DataReceived,a.payload,s,c,a.topic),s==null||s.emit(je.DataReceived,a.payload,c)},this.handleSipDtmf=(s,a)=>{this.emit(Ne.SipDTMFReceived,a,s),s==null||s.emit(je.SipDTMFReceived,a)},this.handleTranscription=(s,a)=>{const c=a.transcribedParticipantIdentity===this.localParticipant.identity?this.localParticipant:this.getParticipantByIdentity(a.transcribedParticipantIdentity),l=c==null?void 0:c.trackPublications.get(a.trackId),u=V8e(a,this.transcriptionReceivedTimes);l==null||l.emit(it.TranscriptionReceived,u),c==null||c.emit(je.TranscriptionReceived,u,l),this.emit(Ne.TranscriptionReceived,u,c,l)},this.handleChatMessage=(s,a)=>{const c=W8e(a);this.emit(Ne.ChatMessage,c,s)},this.handleMetrics=(s,a)=>{this.emit(Ne.MetricsReceived,s,a)},this.handleDataStream=s=>{this.incomingDataStreamManager.handleDataStreamPacket(s)},this.bufferedSegments=new Map,this.handleAudioPlaybackStarted=()=>{this.canPlaybackAudio||(this.audioEnabled=!0,this.emit(Ne.AudioPlaybackStatusChanged,!0))},this.handleAudioPlaybackFailed=s=>{this.log.warn("could not playback audio",Object.assign(Object.assign({},this.logContext),{error:s})),this.canPlaybackAudio&&(this.audioEnabled=!1,this.emit(Ne.AudioPlaybackStatusChanged,!1))},this.handleVideoPlaybackStarted=()=>{this.isVideoPlaybackBlocked&&(this.isVideoPlaybackBlocked=!1,this.emit(Ne.VideoPlaybackStatusChanged,!0))},this.handleVideoPlaybackFailed=()=>{this.isVideoPlaybackBlocked||(this.isVideoPlaybackBlocked=!0,this.emit(Ne.VideoPlaybackStatusChanged,!1))},this.handleDeviceChange=()=>ye(this,void 0,void 0,function*(){var s;((s=Xs())===null||s===void 0?void 0:s.os)!=="iOS"&&(yield this.selectDefaultDevices()),this.emit(Ne.MediaDevicesChanged)}),this.handleRoomUpdate=s=>{const a=this.roomInfo;this.roomInfo=s,a&&a.metadata!==s.metadata&&this.emitWhenConnected(Ne.RoomMetadataChanged,s.metadata),(a==null?void 0:a.activeRecording)!==s.activeRecording&&this.emitWhenConnected(Ne.RecordingStatusChanged,s.activeRecording)},this.handleConnectionQualityUpdate=s=>{s.updates.forEach(a=>{if(a.participantSid===this.localParticipant.sid){this.localParticipant.setConnectionQuality(a.quality);return}const c=this.getRemoteParticipantBySid(a.participantSid);c&&c.setConnectionQuality(a.quality)})},this.onLocalParticipantMetadataChanged=s=>{this.emit(Ne.ParticipantMetadataChanged,s,this.localParticipant)},this.onLocalParticipantNameChanged=s=>{this.emit(Ne.ParticipantNameChanged,s,this.localParticipant)},this.onLocalAttributesChanged=s=>{this.emit(Ne.ParticipantAttributesChanged,s,this.localParticipant)},this.onLocalTrackMuted=s=>{this.emit(Ne.TrackMuted,s,this.localParticipant)},this.onLocalTrackUnmuted=s=>{this.emit(Ne.TrackUnmuted,s,this.localParticipant)},this.onTrackProcessorUpdate=s=>{var a;(a=s==null?void 0:s.onPublish)===null||a===void 0||a.call(s,this)},this.onLocalTrackPublished=s=>ye(this,void 0,void 0,function*(){var a,c,l,u,d,f;(a=s.track)===null||a===void 0||a.on(it.TrackProcessorUpdate,this.onTrackProcessorUpdate),(c=s.track)===null||c===void 0||c.on(it.Restarted,this.onLocalTrackRestarted),(d=(u=(l=s.track)===null||l===void 0?void 0:l.getProcessor())===null||u===void 0?void 0:u.onPublish)===null||d===void 0||d.call(u,this),this.emit(Ne.LocalTrackPublished,s,this.localParticipant),rf(s.track)&&(yield s.track.checkForSilence())&&this.emit(Ne.LocalAudioSilenceDetected,s);const p=yield(f=s.track)===null||f===void 0?void 0:f.getDeviceId(!1),g=tj(s.source);g&&p&&p!==this.localParticipant.activeDeviceMap.get(g)&&(this.localParticipant.activeDeviceMap.set(g,p),this.emit(Ne.ActiveDeviceChanged,g,p))}),this.onLocalTrackUnpublished=s=>{var a,c;(a=s.track)===null||a===void 0||a.off(it.TrackProcessorUpdate,this.onTrackProcessorUpdate),(c=s.track)===null||c===void 0||c.off(it.Restarted,this.onLocalTrackRestarted),this.emit(Ne.LocalTrackUnpublished,s,this.localParticipant)},this.onLocalTrackRestarted=s=>ye(this,void 0,void 0,function*(){const a=yield s.getDeviceId(!1),c=tj(s.source);c&&a&&a!==this.localParticipant.activeDeviceMap.get(c)&&(this.log.debug("local track restarted, setting ".concat(c," ").concat(a," active"),this.logContext),this.localParticipant.activeDeviceMap.set(c,a),this.emit(Ne.ActiveDeviceChanged,c,a))}),this.onLocalConnectionQualityChanged=s=>{this.emit(Ne.ConnectionQualityChanged,s,this.localParticipant)},this.onMediaDevicesError=(s,a)=>{this.emit(Ne.MediaDevicesError,s,a)},this.onLocalParticipantPermissionsChanged=s=>{this.emit(Ne.ParticipantPermissionsChanged,s,this.localParticipant)},this.onLocalChatMessageSent=s=>{this.emit(Ne.ChatMessage,s,this.localParticipant)},this.setMaxListeners(100),this.remoteParticipants=new Map,this.sidToIdentity=new Map,this.options=Object.assign(Object.assign({},yFe),t),this.log=Zf((r=this.options.loggerName)!==null&&r!==void 0?r:tu.Room),this.transcriptionReceivedTimes=new Map,this.options.audioCaptureDefaults=Object.assign(Object.assign({},lpe),t==null?void 0:t.audioCaptureDefaults),this.options.videoCaptureDefaults=Object.assign(Object.assign({},upe),t==null?void 0:t.videoCaptureDefaults),this.options.publishDefaults=Object.assign(Object.assign({},vFe),t==null?void 0:t.publishDefaults),this.maybeCreateEngine(),this.incomingDataStreamManager=new qFe,this.outgoingDataStreamManager=new YFe(this.engine,this.log),this.disconnectLock=new Qs,this.localParticipant=new nje("","",this.engine,this.options,this.rpcHandlers,this.outgoingDataStreamManager),this.options.videoCaptureDefaults.deviceId&&this.localParticipant.activeDeviceMap.set("videoinput",Bp(this.options.videoCaptureDefaults.deviceId)),this.options.audioCaptureDefaults.deviceId&&this.localParticipant.activeDeviceMap.set("audioinput",Bp(this.options.audioCaptureDefaults.deviceId)),!((i=this.options.audioOutput)===null||i===void 0)&&i.deviceId&&this.switchActiveDevice("audiooutput",Bp(this.options.audioOutput.deviceId)).catch(s=>this.log.warn("Could not set audio output: ".concat(s.message),this.logContext)),this.options.e2ee&&this.setupE2EE(),Sa()){const s=new AbortController;(o=navigator.mediaDevices)===null||o===void 0||o.addEventListener("devicechange",this.handleDeviceChange,{signal:s.signal}),eh.cleanupRegistry&&eh.cleanupRegistry.register(this,()=>{s.abort()})}}registerTextStreamHandler(t,n){return this.incomingDataStreamManager.registerTextStreamHandler(t,n)}unregisterTextStreamHandler(t){return this.incomingDataStreamManager.unregisterTextStreamHandler(t)}registerByteStreamHandler(t,n){return this.incomingDataStreamManager.registerByteStreamHandler(t,n)}unregisterByteStreamHandler(t){return this.incomingDataStreamManager.unregisterByteStreamHandler(t)}registerRpcMethod(t,n){if(this.rpcHandlers.has(t))throw Error("RPC handler already registered for method ".concat(t,", unregisterRpcMethod before trying to register again"));this.rpcHandlers.set(t,n)}unregisterRpcMethod(t){this.rpcHandlers.delete(t)}setE2EEEnabled(t){return ye(this,void 0,void 0,function*(){if(this.e2eeManager)yield Promise.all([this.localParticipant.setE2EEEnabled(t)]),this.localParticipant.identity!==""&&this.e2eeManager.setParticipantCryptorEnabled(t,this.localParticipant.identity);else throw Error("e2ee not configured, please set e2ee settings within the room options")})}setupE2EE(){var t;this.options.e2ee&&("e2eeManager"in this.options.e2ee?this.e2eeManager=this.options.e2ee.e2eeManager:this.e2eeManager=new nFe(this.options.e2ee),this.e2eeManager.on(Sp.ParticipantEncryptionStatusChanged,(n,r)=>{G8e(r)&&(this.isE2EEEnabled=n),this.emit(Ne.ParticipantEncryptionStatusChanged,n,r)}),this.e2eeManager.on(Sp.EncryptionError,n=>this.emit(Ne.EncryptionError,n)),(t=this.e2eeManager)===null||t===void 0||t.setup(this))}get logContext(){var t;return{room:this.name,roomID:(t=this.roomInfo)===null||t===void 0?void 0:t.sid,participant:this.localParticipant.identity,pID:this.localParticipant.sid}}get isRecording(){var t,n;return(n=(t=this.roomInfo)===null||t===void 0?void 0:t.activeRecording)!==null&&n!==void 0?n:!1}getSid(){return ye(this,void 0,void 0,function*(){return this.state===Bn.Disconnected?"":this.roomInfo&&this.roomInfo.sid!==""?this.roomInfo.sid:new Promise((t,n)=>{const r=i=>{i.sid!==""&&(this.engine.off(ct.RoomUpdate,r),t(i.sid))};this.engine.on(ct.RoomUpdate,r),this.once(Ne.Disconnected,()=>{this.engine.off(ct.RoomUpdate,r),n("Room disconnected before room server id was available")})})})}get name(){var t,n;return(n=(t=this.roomInfo)===null||t===void 0?void 0:t.name)!==null&&n!==void 0?n:""}get metadata(){var t;return(t=this.roomInfo)===null||t===void 0?void 0:t.metadata}get numParticipants(){var t,n;return(n=(t=this.roomInfo)===null||t===void 0?void 0:t.numParticipants)!==null&&n!==void 0?n:0}get numPublishers(){var t,n;return(n=(t=this.roomInfo)===null||t===void 0?void 0:t.numPublishers)!==null&&n!==void 0?n:0}maybeCreateEngine(){this.engine&&!this.engine.isClosed||(this.engine=new BFe(this.options),this.engine.on(ct.ParticipantUpdate,this.handleParticipantUpdates).on(ct.RoomUpdate,this.handleRoomUpdate).on(ct.SpeakersChanged,this.handleSpeakersChanged).on(ct.StreamStateChanged,this.handleStreamStateUpdate).on(ct.ConnectionQualityUpdate,this.handleConnectionQualityUpdate).on(ct.SubscriptionError,this.handleSubscriptionError).on(ct.SubscriptionPermissionUpdate,this.handleSubscriptionPermissionUpdate).on(ct.MediaTrackAdded,(t,n,r)=>{this.onTrackAdded(t,n,r)}).on(ct.Disconnected,t=>{this.handleDisconnect(this.options.stopLocalTrackOnUnpublish,t)}).on(ct.ActiveSpeakersUpdate,this.handleActiveSpeakersUpdate).on(ct.DataPacketReceived,this.handleDataPacket).on(ct.Resuming,()=>{this.clearConnectionReconcile(),this.isResuming=!0,this.log.info("Resuming signal connection",this.logContext),this.setAndEmitConnectionState(Bn.SignalReconnecting)&&this.emit(Ne.SignalReconnecting)}).on(ct.Resumed,()=>{this.registerConnectionReconcile(),this.isResuming=!1,this.log.info("Resumed signal connection",this.logContext),this.updateSubscriptions(),this.emitBufferedEvents(),this.setAndEmitConnectionState(Bn.Connected)&&this.emit(Ne.Reconnected)}).on(ct.SignalResumed,()=>{this.bufferedEvents=[],(this.state===Bn.Reconnecting||this.isResuming)&&this.sendSyncState()}).on(ct.Restarting,this.handleRestarting).on(ct.SignalRestarted,this.handleSignalRestarted).on(ct.Offline,()=>{this.setAndEmitConnectionState(Bn.Reconnecting)&&this.emit(Ne.Reconnecting)}).on(ct.DCBufferStatusChanged,(t,n)=>{this.emit(Ne.DCBufferStatusChanged,t,n)}).on(ct.LocalTrackSubscribed,t=>{const n=this.localParticipant.getTrackPublications().find(r=>{let{trackSid:i}=r;return i===t});if(!n){this.log.warn("could not find local track subscription for subscribed event",this.logContext);return}this.localParticipant.emit(je.LocalTrackSubscribed,n),this.emitWhenConnected(Ne.LocalTrackSubscribed,n,this.localParticipant)}).on(ct.RoomMoved,t=>{this.log.debug("room moved",t),t.room&&this.handleRoomUpdate(t.room),this.remoteParticipants.forEach((n,r)=>{this.handleParticipantDisconnected(r,n)}),this.emit(Ne.Moved,t.room.name),t.participant?this.handleParticipantUpdates([t.participant,...t.otherParticipants]):this.handleParticipantUpdates(t.otherParticipants)}),this.localParticipant&&this.localParticipant.setupEngine(this.engine),this.e2eeManager&&this.e2eeManager.setupEngine(this.engine),this.outgoingDataStreamManager&&this.outgoingDataStreamManager.setupEngine(this.engine))}static getLocalDevices(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return Lo.getInstance().getDevices(t,n)}prepareConnection(t,n){return ye(this,void 0,void 0,function*(){if(this.state===Bn.Disconnected){this.log.debug("prepareConnection to ".concat(t),this.logContext);try{if(XF(new URL(t))&&n){this.regionUrlProvider=new oj(t,n);const r=yield this.regionUrlProvider.getNextBestRegionUrl();r&&this.state===Bn.Disconnected&&(this.regionUrl=r,yield fetch(JF(r),{method:"HEAD"}),this.log.debug("prepared connection to ".concat(r),this.logContext))}else yield fetch(JF(t),{method:"HEAD"})}catch(r){this.log.warn("could not prepare connection",Object.assign(Object.assign({},this.logContext),{error:r}))}}})}getParticipantByIdentity(t){return this.localParticipant.identity===t?this.localParticipant:this.remoteParticipants.get(t)}clearConnectionFutures(){this.connectFuture=void 0}simulateScenario(t,n){return ye(this,void 0,void 0,function*(){let r=()=>{},i;switch(t){case"signal-reconnect":yield this.engine.client.handleOnClose("simulate disconnect");break;case"speaker":i=new Iu({scenario:{case:"speakerUpdate",value:3}});break;case"node-failure":i=new Iu({scenario:{case:"nodeFailure",value:!0}});break;case"server-leave":i=new Iu({scenario:{case:"serverLeave",value:!0}});break;case"migration":i=new Iu({scenario:{case:"migration",value:!0}});break;case"resume-reconnect":this.engine.failNext(),yield this.engine.client.handleOnClose("simulate resume-disconnect");break;case"disconnect-signal-on-resume":r=()=>ye(this,void 0,void 0,function*(){yield this.engine.client.handleOnClose("simulate resume-disconnect")}),i=new Iu({scenario:{case:"disconnectSignalOnResume",value:!0}});break;case"disconnect-signal-on-resume-no-messages":r=()=>ye(this,void 0,void 0,function*(){yield this.engine.client.handleOnClose("simulate resume-disconnect")}),i=new Iu({scenario:{case:"disconnectSignalOnResumeNoMessages",value:!0}});break;case"full-reconnect":this.engine.fullReconnectOnNext=!0,yield this.engine.client.handleOnClose("simulate full-reconnect");break;case"force-tcp":case"force-tls":i=new Iu({scenario:{case:"switchCandidateProtocol",value:t==="force-tls"?2:1}}),r=()=>ye(this,void 0,void 0,function*(){const o=this.engine.client.onLeave;o&&o(new nP({reason:Vl.CLIENT_INITIATED,action:ky.RECONNECT}))});break;case"subscriber-bandwidth":if(n===void 0||typeof n!="number")throw new Error("subscriber-bandwidth requires a number as argument");i=new Iu({scenario:{case:"subscriberBandwidth",value:ag(n)}});break;case"leave-full-reconnect":i=new Iu({scenario:{case:"leaveRequestFullReconnect",value:!0}})}i&&(yield this.engine.client.sendSimulateScenario(i),yield r())})}get canPlaybackAudio(){return this.audioEnabled}get canPlaybackVideo(){return!this.isVideoPlaybackBlocked}getActiveDevice(t){return this.localParticipant.activeDeviceMap.get(t)}switchActiveDevice(t,n){return ye(this,arguments,void 0,function(r,i){var o=this;let s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;return(function*(){var a,c,l,u,d,f,p;let g=!0,m=!1;const y=s?{exact:i}:i;if(r==="audioinput"){m=o.localParticipant.audioTrackPublications.size===0;const v=(a=o.getActiveDevice(r))!==null&&a!==void 0?a:o.options.audioCaptureDefaults.deviceId;o.options.audioCaptureDefaults.deviceId=y;const w=Array.from(o.localParticipant.audioTrackPublications.values()).filter(C=>C.source===Re.Source.Microphone);try{g=(yield Promise.all(w.map(C=>{var E;return(E=C.audioTrack)===null||E===void 0?void 0:E.setDeviceId(y)}))).every(C=>C===!0)}catch(C){throw o.options.audioCaptureDefaults.deviceId=v,C}const S=w.some(C=>{var E,T;return(T=(E=C.track)===null||E===void 0?void 0:E.isMuted)!==null&&T!==void 0?T:!1});g&&S&&(m=!0)}else if(r==="videoinput"){m=o.localParticipant.videoTrackPublications.size===0;const v=(c=o.getActiveDevice(r))!==null&&c!==void 0?c:o.options.videoCaptureDefaults.deviceId;o.options.videoCaptureDefaults.deviceId=y;const w=Array.from(o.localParticipant.videoTrackPublications.values()).filter(C=>C.source===Re.Source.Camera);try{g=(yield Promise.all(w.map(C=>{var E;return(E=C.videoTrack)===null||E===void 0?void 0:E.setDeviceId(y)}))).every(C=>C===!0)}catch(C){throw o.options.videoCaptureDefaults.deviceId=v,C}const S=w.some(C=>{var E,T;return(T=(E=C.track)===null||E===void 0?void 0:E.isMuted)!==null&&T!==void 0?T:!1});g&&S&&(m=!0)}else if(r==="audiooutput"){if(m=!0,!QF()&&!o.options.webAudioMix||o.options.webAudioMix&&o.audioContext&&!("setSinkId"in o.audioContext))throw new Error("cannot switch audio output, the current browser does not support it");o.options.webAudioMix&&(i=(l=yield Lo.getInstance().normalizeDeviceId("audiooutput",i))!==null&&l!==void 0?l:""),(u=(p=o.options).audioOutput)!==null&&u!==void 0||(p.audioOutput={});const v=(d=o.getActiveDevice(r))!==null&&d!==void 0?d:o.options.audioOutput.deviceId;o.options.audioOutput.deviceId=i;try{o.options.webAudioMix&&((f=o.audioContext)===null||f===void 0||f.setSinkId(i)),yield Promise.all(Array.from(o.remoteParticipants.values()).map(w=>w.setAudioOutput({deviceId:i})))}catch(w){throw o.options.audioOutput.deviceId=v,w}}return m&&(o.localParticipant.activeDeviceMap.set(r,i),o.emit(Ne.ActiveDeviceChanged,r,i)),g})()})}setupLocalParticipantEvents(){this.localParticipant.on(je.ParticipantMetadataChanged,this.onLocalParticipantMetadataChanged).on(je.ParticipantNameChanged,this.onLocalParticipantNameChanged).on(je.AttributesChanged,this.onLocalAttributesChanged).on(je.TrackMuted,this.onLocalTrackMuted).on(je.TrackUnmuted,this.onLocalTrackUnmuted).on(je.LocalTrackPublished,this.onLocalTrackPublished).on(je.LocalTrackUnpublished,this.onLocalTrackUnpublished).on(je.ConnectionQualityChanged,this.onLocalConnectionQualityChanged).on(je.MediaDevicesError,this.onMediaDevicesError).on(je.AudioStreamAcquired,this.startAudio).on(je.ChatMessage,this.onLocalChatMessageSent).on(je.ParticipantPermissionsChanged,this.onLocalParticipantPermissionsChanged)}recreateEngine(){var t;(t=this.engine)===null||t===void 0||t.close(),this.engine=void 0,this.isResuming=!1,this.remoteParticipants.clear(),this.sidToIdentity.clear(),this.bufferedEvents=[],this.maybeCreateEngine()}onTrackAdded(t,n,r){if(this.state===Bn.Connecting||this.state===Bn.Reconnecting){const d=()=>{this.onTrackAdded(t,n,r),f()},f=()=>{this.off(Ne.Reconnected,d),this.off(Ne.Connected,d),this.off(Ne.Disconnected,f)};this.once(Ne.Reconnected,d),this.once(Ne.Connected,d),this.once(Ne.Disconnected,f);return}if(this.state===Bn.Disconnected){this.log.warn("skipping incoming track after Room disconnected",this.logContext);return}if(t.readyState==="ended"){this.log.info("skipping incoming track as it already ended",this.logContext);return}const i=O8e(n.id),o=i[0];let s=i[1],a=t.id;if(s&&s.startsWith("TR")&&(a=s),o===this.localParticipant.sid){this.log.warn("tried to create RemoteParticipant for local participant",this.logContext);return}const c=Array.from(this.remoteParticipants.values()).find(d=>d.sid===o);if(!c){this.log.error("Tried to add a track for a participant, that's not present. Sid: ".concat(o),this.logContext);return}let l;this.options.adaptiveStream&&(typeof this.options.adaptiveStream=="object"?l=this.options.adaptiveStream:l={});const u=c.addSubscribedMediaTrack(t,a,n,r,l);u!=null&&u.isEncrypted&&!this.e2eeManager&&this.emit(Ne.EncryptionError,new Error("Encrypted ".concat(u.source," track received from participant ").concat(c.sid,", but room does not have encryption enabled!")))}handleDisconnect(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0,n=arguments.length>1?arguments[1]:void 0;var r;if(this.clearConnectionReconcile(),this.isResuming=!1,this.bufferedEvents=[],this.transcriptionReceivedTimes.clear(),this.incomingDataStreamManager.clearHandlersAndControllers(),this.state!==Bn.Disconnected){this.regionUrl=void 0;try{this.remoteParticipants.forEach(i=>{i.trackPublications.forEach(o=>{i.unpublishTrack(o.trackSid)})}),this.localParticipant.trackPublications.forEach(i=>{var o,s,a;i.track&&this.localParticipant.unpublishTrack(i.track,t),t?((o=i.track)===null||o===void 0||o.detach(),(s=i.track)===null||s===void 0||s.stop()):(a=i.track)===null||a===void 0||a.stopMonitor()}),this.localParticipant.off(je.ParticipantMetadataChanged,this.onLocalParticipantMetadataChanged).off(je.ParticipantNameChanged,this.onLocalParticipantNameChanged).off(je.AttributesChanged,this.onLocalAttributesChanged).off(je.TrackMuted,this.onLocalTrackMuted).off(je.TrackUnmuted,this.onLocalTrackUnmuted).off(je.LocalTrackPublished,this.onLocalTrackPublished).off(je.LocalTrackUnpublished,this.onLocalTrackUnpublished).off(je.ConnectionQualityChanged,this.onLocalConnectionQualityChanged).off(je.MediaDevicesError,this.onMediaDevicesError).off(je.AudioStreamAcquired,this.startAudio).off(je.ChatMessage,this.onLocalChatMessageSent).off(je.ParticipantPermissionsChanged,this.onLocalParticipantPermissionsChanged),this.localParticipant.trackPublications.clear(),this.localParticipant.videoTrackPublications.clear(),this.localParticipant.audioTrackPublications.clear(),this.remoteParticipants.clear(),this.sidToIdentity.clear(),this.activeSpeakers=[],this.audioContext&&typeof this.options.webAudioMix=="boolean"&&(this.audioContext.close(),this.audioContext=void 0),Sa()&&(window.removeEventListener("beforeunload",this.onPageLeave),window.removeEventListener("pagehide",this.onPageLeave),window.removeEventListener("freeze",this.onPageLeave),(r=navigator.mediaDevices)===null||r===void 0||r.removeEventListener("devicechange",this.handleDeviceChange))}finally{this.setAndEmitConnectionState(Bn.Disconnected),this.emit(Ne.Disconnected,n)}}}handleParticipantDisconnected(t,n){var r;this.remoteParticipants.delete(t),n&&(this.incomingDataStreamManager.validateParticipantHasNoActiveDataStreams(t),n.trackPublications.forEach(i=>{n.unpublishTrack(i.trackSid,!0)}),this.emit(Ne.ParticipantDisconnected,n),n.setDisconnected(),(r=this.localParticipant)===null||r===void 0||r.handleParticipantDisconnected(n.identity))}handleIncomingRpcRequest(t,n,r,i,o,s){return ye(this,void 0,void 0,function*(){if(yield this.engine.publishRpcAck(t,n),s!==1){yield this.engine.publishRpcResponse(t,n,null,xi.builtIn("UNSUPPORTED_VERSION"));return}const a=this.rpcHandlers.get(r);if(!a){yield this.engine.publishRpcResponse(t,n,null,xi.builtIn("UNSUPPORTED_METHOD"));return}let c=null,l=null;try{const u=yield a({requestId:n,callerIdentity:t,payload:i,responseTimeout:o});d$(u)>dpe?(c=xi.builtIn("RESPONSE_PAYLOAD_TOO_LARGE"),console.warn("RPC Response payload too large for ".concat(r))):l=u}catch(u){u instanceof xi?c=u:(console.warn("Uncaught error returned by RPC handler for ".concat(r,". Returning APPLICATION_ERROR instead."),u),c=xi.builtIn("APPLICATION_ERROR"))}yield this.engine.publishRpcResponse(t,n,l,c)})}selectDefaultDevices(){return ye(this,void 0,void 0,function*(){var t,n,r;const i=Lo.getInstance().previousDevices,o=yield Lo.getInstance().getDevices(void 0,!1),s=Xs();if((s==null?void 0:s.name)==="Chrome"&&s.os!=="iOS")for(let c of o){const l=i.find(u=>u.deviceId===c.deviceId);l&&l.label!==""&&l.kind===c.kind&&l.label!==c.label&&this.getActiveDevice(c.kind)==="default"&&this.emit(Ne.ActiveDeviceChanged,c.kind,c.deviceId)}const a=["audiooutput","audioinput","videoinput"];for(let c of a){const l=Y8e(c),u=this.localParticipant.getTrackPublication(l);if(u&&(!((t=u.track)===null||t===void 0)&&t.isUserProvided))continue;const d=o.filter(p=>p.kind===c),f=this.getActiveDevice(c);if(f===((n=i.filter(p=>p.kind===c)[0])===null||n===void 0?void 0:n.deviceId)&&d.length>0&&((r=d[0])===null||r===void 0?void 0:r.deviceId)!==f){yield this.switchActiveDevice(c,d[0].deviceId);continue}c==="audioinput"&&!J_()||c==="videoinput"||d.length>0&&!d.find(p=>p.deviceId===this.getActiveDevice(c))&&(c!=="audiooutput"||!J_())&&(yield this.switchActiveDevice(c,d[0].deviceId))}})}acquireAudioContext(){return ye(this,void 0,void 0,function*(){var t,n;if(typeof this.options.webAudioMix!="boolean"&&this.options.webAudioMix.audioContext?this.audioContext=this.options.webAudioMix.audioContext:(!this.audioContext||this.audioContext.state==="closed")&&(this.audioContext=(t=spe())!==null&&t!==void 0?t:void 0),this.options.webAudioMix&&this.remoteParticipants.forEach(i=>i.setAudioContext(this.audioContext)),this.localParticipant.setAudioContext(this.audioContext),this.audioContext&&this.audioContext.state==="suspended")try{yield Promise.race([this.audioContext.resume(),ka(200)])}catch(i){this.log.warn("Could not resume audio context",Object.assign(Object.assign({},this.logContext),{error:i}))}const r=((n=this.audioContext)===null||n===void 0?void 0:n.state)==="running";r!==this.canPlaybackAudio&&(this.audioEnabled=r,this.emit(Ne.AudioPlaybackStatusChanged,r))})}createParticipant(t,n){var r;let i;return n?i=eI.fromParticipantInfo(this.engine.client,n,{loggerContextCb:()=>this.logContext,loggerName:this.options.loggerName}):i=new eI(this.engine.client,"",t,void 0,void 0,void 0,{loggerContextCb:()=>this.logContext,loggerName:this.options.loggerName}),this.options.webAudioMix&&i.setAudioContext(this.audioContext),!((r=this.options.audioOutput)===null||r===void 0)&&r.deviceId&&i.setAudioOutput(this.options.audioOutput).catch(o=>this.log.warn("Could not set audio output: ".concat(o.message),this.logContext)),i}getOrCreateParticipant(t,n){if(this.remoteParticipants.has(t)){const i=this.remoteParticipants.get(t);return n&&i.updateInfo(n)&&this.sidToIdentity.set(n.sid,n.identity),i}const r=this.createParticipant(t,n);return this.remoteParticipants.set(t,r),this.sidToIdentity.set(n.sid,n.identity),this.emitWhenConnected(Ne.ParticipantConnected,r),r.on(je.TrackPublished,i=>{this.emitWhenConnected(Ne.TrackPublished,i,r)}).on(je.TrackSubscribed,(i,o)=>{i.kind===Re.Kind.Audio?(i.on(it.AudioPlaybackStarted,this.handleAudioPlaybackStarted),i.on(it.AudioPlaybackFailed,this.handleAudioPlaybackFailed)):i.kind===Re.Kind.Video&&(i.on(it.VideoPlaybackFailed,this.handleVideoPlaybackFailed),i.on(it.VideoPlaybackStarted,this.handleVideoPlaybackStarted)),this.emit(Ne.TrackSubscribed,i,o,r)}).on(je.TrackUnpublished,i=>{this.emit(Ne.TrackUnpublished,i,r)}).on(je.TrackUnsubscribed,(i,o)=>{this.emit(Ne.TrackUnsubscribed,i,o,r)}).on(je.TrackMuted,i=>{this.emitWhenConnected(Ne.TrackMuted,i,r)}).on(je.TrackUnmuted,i=>{this.emitWhenConnected(Ne.TrackUnmuted,i,r)}).on(je.ParticipantMetadataChanged,i=>{this.emitWhenConnected(Ne.ParticipantMetadataChanged,i,r)}).on(je.ParticipantNameChanged,i=>{this.emitWhenConnected(Ne.ParticipantNameChanged,i,r)}).on(je.AttributesChanged,i=>{this.emitWhenConnected(Ne.ParticipantAttributesChanged,i,r)}).on(je.ConnectionQualityChanged,i=>{this.emitWhenConnected(Ne.ConnectionQualityChanged,i,r)}).on(je.ParticipantPermissionsChanged,i=>{this.emitWhenConnected(Ne.ParticipantPermissionsChanged,i,r)}).on(je.TrackSubscriptionStatusChanged,(i,o)=>{this.emitWhenConnected(Ne.TrackSubscriptionStatusChanged,i,o,r)}).on(je.TrackSubscriptionFailed,(i,o)=>{this.emit(Ne.TrackSubscriptionFailed,i,r,o)}).on(je.TrackSubscriptionPermissionChanged,(i,o)=>{this.emitWhenConnected(Ne.TrackSubscriptionPermissionChanged,i,o,r)}).on(je.Active,()=>{this.emitWhenConnected(Ne.ParticipantActive,r),r.kind===Y_.AGENT&&this.localParticipant.setActiveAgent(r)}),n&&r.updateInfo(n),r}sendSyncState(){const t=Array.from(this.remoteParticipants.values()).reduce((r,i)=>(r.push(...i.getTrackPublications()),r),[]),n=this.localParticipant.getTrackPublications();this.engine.sendSyncState(t,n)}updateSubscriptions(){for(const t of this.remoteParticipants.values())for(const n of t.videoTrackPublications.values())n.isSubscribed&&q8e(n)&&n.emitTrackUpdate()}getRemoteParticipantBySid(t){const n=this.sidToIdentity.get(t);if(n)return this.remoteParticipants.get(n)}registerConnectionReconcile(){this.clearConnectionReconcile();let t=0;this.connectionReconcileInterval=os.setInterval(()=>{!this.engine||this.engine.isClosed||!this.engine.verifyTransport()?(t++,this.log.warn("detected connection state mismatch",Object.assign(Object.assign({},this.logContext),{numFailures:t,engine:this.engine?{closed:this.engine.isClosed,transportsConnected:this.engine.verifyTransport()}:void 0})),t>=3&&(this.recreateEngine(),this.handleDisconnect(this.options.stopLocalTrackOnUnpublish,Vl.STATE_MISMATCH))):t=0},rje)}clearConnectionReconcile(){this.connectionReconcileInterval&&os.clearInterval(this.connectionReconcileInterval)}setAndEmitConnectionState(t){return t===this.state?!1:(this.state=t,this.emit(Ne.ConnectionStateChanged,this.state),!0)}emitBufferedEvents(){this.bufferedEvents.forEach(t=>{let[n,r]=t;this.emit(n,...r)}),this.bufferedEvents=[]}emitWhenConnected(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];if(this.state===Bn.Reconnecting||this.isResuming||!this.engine||this.engine.pendingReconnect)this.bufferedEvents.push([t,r]);else if(this.state===Bn.Connected)return this.emit(t,...r);return!1}simulateParticipants(t){return ye(this,void 0,void 0,function*(){var n,r;const i=Object.assign({audio:!0,video:!0,useRealTracks:!1},t.publish),o=Object.assign({count:9,audio:!1,video:!0,aspectRatios:[1.66,1.7,1.3]},t.participants);if(this.handleDisconnect(),this.roomInfo=new eP({sid:"RM_SIMULATED",name:"simulated-room",emptyTimeout:0,maxParticipants:0,creationTime:ri.parse(new Date().getTime()),metadata:"",numParticipants:1,numPublishers:1,turnPassword:"",enabledCodecs:[],activeRecording:!1}),this.localParticipant.updateInfo(new iv({identity:"simulated-local",name:"local-name"})),this.setupLocalParticipantEvents(),this.emit(Ne.SignalConnected),this.emit(Ne.Connected),this.setAndEmitConnectionState(Bn.Connected),i.video){const s=new JA(Re.Kind.Video,new ty({source:Zi.CAMERA,sid:Math.floor(Math.random()*1e4).toString(),type:Fl.AUDIO,name:"video-dummy"}),new XA(i.useRealTracks?(yield window.navigator.mediaDevices.getUserMedia({video:!0})).getVideoTracks()[0]:gX(160*((n=o.aspectRatios[0])!==null&&n!==void 0?n:1),160,!0,!0),void 0,!1,{loggerName:this.options.loggerName,loggerContextCb:()=>this.logContext}),{loggerName:this.options.loggerName,loggerContextCb:()=>this.logContext});this.localParticipant.addTrackPublication(s),this.localParticipant.emit(je.LocalTrackPublished,s)}if(i.audio){const s=new JA(Re.Kind.Audio,new ty({source:Zi.MICROPHONE,sid:Math.floor(Math.random()*1e4).toString(),type:Fl.AUDIO}),new QA(i.useRealTracks?(yield navigator.mediaDevices.getUserMedia({audio:!0})).getAudioTracks()[0]:SM(),void 0,!1,this.audioContext,{loggerName:this.options.loggerName,loggerContextCb:()=>this.logContext}),{loggerName:this.options.loggerName,loggerContextCb:()=>this.logContext});this.localParticipant.addTrackPublication(s),this.localParticipant.emit(je.LocalTrackPublished,s)}for(let s=0;s<o.count-1;s+=1){let a=new iv({sid:Math.floor(Math.random()*1e4).toString(),identity:"simulated-".concat(s),state:Ty.ACTIVE,tracks:[],joinedAt:ri.parse(Date.now())});const c=this.getOrCreateParticipant(a.identity,a);if(o.video){const l=gX(160*((r=o.aspectRatios[s%o.aspectRatios.length])!==null&&r!==void 0?r:1),160,!1,!0),u=new ty({source:Zi.CAMERA,sid:Math.floor(Math.random()*1e4).toString(),type:Fl.AUDIO});c.addSubscribedMediaTrack(l,u.sid,new MediaStream([l]),new RTCRtpReceiver),a.tracks=[...a.tracks,u]}if(o.audio){const l=SM(),u=new ty({source:Zi.MICROPHONE,sid:Math.floor(Math.random()*1e4).toString(),type:Fl.AUDIO});c.addSubscribedMediaTrack(l,u.sid,new MediaStream([l]),new RTCRtpReceiver),a.tracks=[...a.tracks,u]}c.updateInfo(a)}})}emit(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];if(t!==Ne.ActiveSpeakersChanged&&t!==Ne.TranscriptionReceived){const o=wpe(r).filter(s=>s!==void 0);this.log.debug("room event ".concat(t),Object.assign(Object.assign({},this.logContext),{event:t,args:o}))}return super.emit(t,...r)}}eh.cleanupRegistry=typeof FinalizationRegistry<"u"&&new FinalizationRegistry(e=>{e()});function wpe(e){return e.map(t=>{if(t)return Array.isArray(t)?wpe(t):typeof t=="object"?"logContext"in t?t.logContext:void 0:t})}var Rl;(function(e){e[e.IDLE=0]="IDLE",e[e.RUNNING=1]="RUNNING",e[e.SKIPPED=2]="SKIPPED",e[e.SUCCESS=3]="SUCCESS",e[e.FAILED=4]="FAILED"})(Rl||(Rl={}));class Rm extends Pd.EventEmitter{constructor(t,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};super(),this.status=Rl.IDLE,this.logs=[],this.options={},this.url=t,this.token=n,this.name=this.constructor.name,this.room=new eh(r.roomOptions),this.connectOptions=r.connectOptions,this.options=r}run(t){return ye(this,void 0,void 0,function*(){if(this.status!==Rl.IDLE)throw Error("check is running already");this.setStatus(Rl.RUNNING);try{yield this.perform()}catch(n){n instanceof Error&&(this.options.errorsAsWarnings?this.appendWarning(n.message):this.appendError(n.message))}return yield this.disconnect(),yield new Promise(n=>setTimeout(n,500)),this.status!==Rl.SKIPPED&&this.setStatus(this.isSuccess()?Rl.SUCCESS:Rl.FAILED),t&&t(),this.getInfo()})}isSuccess(){return!this.logs.some(t=>t.level==="error")}connect(t){return ye(this,void 0,void 0,function*(){return this.room.state===Bn.Connected?this.room:(t||(t=this.url),yield this.room.connect(t,this.token,this.connectOptions),this.room)})}disconnect(){return ye(this,void 0,void 0,function*(){this.room&&this.room.state!==Bn.Disconnected&&(yield this.room.disconnect(),yield new Promise(t=>setTimeout(t,500)))})}skip(){this.setStatus(Rl.SKIPPED)}switchProtocol(t){return ye(this,void 0,void 0,function*(){let n=!1,r=!1;if(this.room.on(Ne.Reconnecting,()=>{n=!0}),this.room.once(Ne.Reconnected,()=>{r=!0}),this.room.simulateScenario("force-".concat(t)),yield new Promise(o=>setTimeout(o,1e3)),!n)return;const i=Date.now()+1e4;for(;Date.now()<i;){if(r)return;yield ka(100)}throw new Error("Could not reconnect using ".concat(t," protocol after 10 seconds"))})}appendMessage(t){this.logs.push({level:"info",message:t}),this.emit("update",this.getInfo())}appendWarning(t){this.logs.push({level:"warning",message:t}),this.emit("update",this.getInfo())}appendError(t){this.logs.push({level:"error",message:t}),this.emit("update",this.getInfo())}setStatus(t){this.status=t,this.emit("update",this.getInfo())}get engine(){var t;return(t=this.room)===null||t===void 0?void 0:t.engine}getInfo(){return{logs:this.logs,name:this.name,status:this.status,description:this.description}}}class ije extends Rm{get description(){return"Cloud regions"}perform(){return ye(this,void 0,void 0,function*(){const t=new oj(this.url,this.token);if(!t.isCloud()){this.skip();return}const n=[],r=new Set;for(let o=0;o<3;o++){const s=yield t.getNextBestRegionUrl();if(!s)break;if(r.has(s))continue;r.add(s);const a=yield this.checkCloudRegion(s);this.appendMessage("".concat(a.region," RTT: ").concat(a.rtt,"ms, duration: ").concat(a.duration,"ms")),n.push(a)}n.sort((o,s)=>(o.duration-s.duration)*.5+(o.rtt-s.rtt)*.5);const i=n[0];this.bestStats=i,this.appendMessage("best Cloud region: ".concat(i.region))})}getInfo(){const t=super.getInfo();return t.data=this.bestStats,t}checkCloudRegion(t){return ye(this,void 0,void 0,function*(){var n,r;yield this.connect(t),this.options.protocol==="tcp"&&(yield this.switchProtocol("tcp"));const i=(n=this.room.serverInfo)===null||n===void 0?void 0:n.region;if(!i)throw new Error("Region not found");const o=yield this.room.localParticipant.streamText({topic:"test"}),s=1e3,c=1e6/s,l="A".repeat(s),u=Date.now();for(let g=0;g<c;g++)yield o.write(l);yield o.close();const d=Date.now(),f=yield(r=this.room.engine.pcManager)===null||r===void 0?void 0:r.publisher.getStats(),p={region:i,rtt:1e4,duration:d-u};return f==null||f.forEach(g=>{g.type==="candidate-pair"&&g.nominated&&(p.rtt=g.currentRoundTripTime*1e3)}),yield this.disconnect(),p})}}const RM=1e4;class oje extends Rm{get description(){return"Connection via UDP vs TCP"}perform(){return ye(this,void 0,void 0,function*(){const t=yield this.checkConnectionProtocol("udp"),n=yield this.checkConnectionProtocol("tcp");this.bestStats=t,t.qualityLimitationDurations.bandwidth-n.qualityLimitationDurations.bandwidth>.5||(t.packetsLost-n.packetsLost)/t.packetsSent>.01?(this.appendMessage("best connection quality via tcp"),this.bestStats=n):this.appendMessage("best connection quality via udp");const r=this.bestStats;this.appendMessage("upstream bitrate: ".concat((r.bitrateTotal/r.count/1e3/1e3).toFixed(2)," mbps")),this.appendMessage("RTT: ".concat((r.rttTotal/r.count*1e3).toFixed(2)," ms")),this.appendMessage("jitter: ".concat((r.jitterTotal/r.count*1e3).toFixed(2)," ms")),r.packetsLost>0&&this.appendWarning("packets lost: ".concat((r.packetsLost/r.packetsSent*100).toFixed(2),"%")),r.qualityLimitationDurations.bandwidth>1&&this.appendWarning("bandwidth limited ".concat((r.qualityLimitationDurations.bandwidth/(RM/1e3)*100).toFixed(2),"%")),r.qualityLimitationDurations.cpu>0&&this.appendWarning("cpu limited ".concat((r.qualityLimitationDurations.cpu/(RM/1e3)*100).toFixed(2),"%"))})}getInfo(){const t=super.getInfo();return t.data=this.bestStats,t}checkConnectionProtocol(t){return ye(this,void 0,void 0,function*(){yield this.connect(),t==="tcp"?yield this.switchProtocol("tcp"):yield this.switchProtocol("udp");const n=document.createElement("canvas");n.width=1280,n.height=720;const r=n.getContext("2d");if(!r)throw new Error("Could not get canvas context");let i=0;const o=()=>{i=(i+1)%360,r.fillStyle="hsl(".concat(i,", 100%, 50%)"),r.fillRect(0,0,n.width,n.height),requestAnimationFrame(o)};o();const a=n.captureStream(30).getVideoTracks()[0],l=(yield this.room.localParticipant.publishTrack(a,{simulcast:!1,degradationPreference:"maintain-resolution",videoEncoding:{maxBitrate:2e6}})).track,u={protocol:t,packetsLost:0,packetsSent:0,qualityLimitationDurations:{},rttTotal:0,jitterTotal:0,bitrateTotal:0,count:0},d=setInterval(()=>ye(this,void 0,void 0,function*(){const f=yield l.getRTCStatsReport();f==null||f.forEach(p=>{p.type==="outbound-rtp"?(u.packetsSent=p.packetsSent,u.qualityLimitationDurations=p.qualityLimitationDurations,u.bitrateTotal+=p.targetBitrate,u.count++):p.type==="remote-inbound-rtp"&&(u.packetsLost=p.packetsLost,u.rttTotal+=p.roundTripTime,u.jitterTotal+=p.jitter)})}),1e3);return yield new Promise(f=>setTimeout(f,RM)),clearInterval(d),a.stop(),n.remove(),yield this.disconnect(),u})}}class sje extends Rm{get description(){return"Can publish audio"}perform(){return ye(this,void 0,void 0,function*(){var t;const n=yield this.connect(),r=yield ZFe();if(yield ope(r,1e3))throw new Error("unable to detect audio from microphone");this.appendMessage("detected audio from microphone"),n.localParticipant.publishTrack(r),yield new Promise(a=>setTimeout(a,3e3));const o=yield(t=r.sender)===null||t===void 0?void 0:t.getStats();if(!o)throw new Error("Could not get RTCStats");let s=0;if(o.forEach(a=>{a.type==="outbound-rtp"&&(a.kind==="audio"||!a.kind&&a.mediaType==="audio")&&(s=a.packetsSent)}),s===0)throw new Error("Could not determine packets are sent");this.appendMessage("published ".concat(s," audio packets"))})}}class aje extends Rm{get description(){return"Can publish video"}perform(){return ye(this,void 0,void 0,function*(){var t;const n=yield this.connect(),r=yield JFe();yield this.checkForVideo(r.mediaStreamTrack),n.localParticipant.publishTrack(r),yield new Promise(s=>setTimeout(s,5e3));const i=yield(t=r.sender)===null||t===void 0?void 0:t.getStats();if(!i)throw new Error("Could not get RTCStats");let o=0;if(i.forEach(s=>{s.type==="outbound-rtp"&&(s.kind==="video"||!s.kind&&s.mediaType==="video")&&(o+=s.packetsSent)}),o===0)throw new Error("Could not determine packets are sent");this.appendMessage("published ".concat(o," video packets"))})}checkForVideo(t){return ye(this,void 0,void 0,function*(){const n=new MediaStream;n.addTrack(t.clone());const r=document.createElement("video");r.srcObject=n,r.muted=!0,yield new Promise(i=>{r.onplay=()=>{setTimeout(()=>{var o,s,a,c;const l=document.createElement("canvas"),u=t.getSettings(),d=(s=(o=u.width)!==null&&o!==void 0?o:r.videoWidth)!==null&&s!==void 0?s:1280,f=(c=(a=u.height)!==null&&a!==void 0?a:r.videoHeight)!==null&&c!==void 0?c:720;l.width=d,l.height=f;const p=l.getContext("2d");p.drawImage(r,0,0);const m=p.getImageData(0,0,l.width,l.height).data;let y=!0;for(let v=0;v<m.length;v+=4)if(m[v]!==0||m[v+1]!==0||m[v+2]!==0){y=!1;break}y?this.appendError("camera appears to be producing only black frames"):this.appendMessage("received video frames"),i()},1e3)},r.play()}),n.getTracks().forEach(i=>i.stop()),r.remove()})}}class cje extends Rm{get description(){return"Resuming connection after interruption"}perform(){return ye(this,void 0,void 0,function*(){var t;const n=yield this.connect();let r=!1,i=!1,o;const s=new Promise(l=>{setTimeout(l,5e3),o=l}),a=()=>{r=!0};n.on(Ne.SignalReconnecting,a).on(Ne.Reconnecting,a).on(Ne.Reconnected,()=>{i=!0,o(!0)}),(t=n.engine.client.ws)===null||t===void 0||t.close();const c=n.engine.client.onClose;if(c&&c(""),yield s,r){if(!i||n.state!==Bn.Connected)throw this.appendWarning("reconnection is only possible in Redis-based configurations"),new Error("Not able to reconnect")}else throw new Error("Did not attempt to reconnect")})}}class lje extends Rm{get description(){return"Can connect via TURN"}perform(){return ye(this,void 0,void 0,function*(){var t,n;const r=new a$,i=yield r.join(this.url,this.token,{autoSubscribe:!0,maxRetries:0,e2eeEnabled:!1,websocketTimeout:15e3});let o=!1,s=!1,a=!1;for(let c of i.iceServers)for(let l of c.urls)l.startsWith("turn:")?(s=!0,a=!0):l.startsWith("turns:")&&(s=!0,a=!0,o=!0),l.startsWith("stun:")&&(a=!0);a?s&&!o&&this.appendWarning("TURN is configured server side, but TURN/TLS is unavailable."):this.appendWarning("No STUN servers configured on server side."),yield r.close(),!((n=(t=this.connectOptions)===null||t===void 0?void 0:t.rtcConfig)===null||n===void 0)&&n.iceServers||s?yield this.room.connect(this.url,this.token,{rtcConfig:{iceTransportPolicy:"relay"}}):(this.appendWarning("No TURN servers configured."),this.skip(),yield new Promise(c=>setTimeout(c,0)))})}}class uje extends Rm{get description(){return"Establishing WebRTC connection"}perform(){return ye(this,void 0,void 0,function*(){let t=!1,n=!1;
422this.room.on(Ne.SignalConnected,()=>{const r=this.room.engine.client.onTrickle;this.room.engine.client.onTrickle=(i,o)=>{if(i.candidate){const s=new RTCIceCandidate(i);let a="".concat(s.protocol," ").concat(s.address,":").concat(s.port," ").concat(s.type);s.address&&(dje(s.address)?a+=" (private)":s.protocol==="tcp"&&s.tcpType==="passive"?(t=!0,a+=" (passive)"):s.protocol==="udp"&&(n=!0)),this.appendMessage(a)}r&&r(i,o)},this.room.engine.pcManager&&(this.room.engine.pcManager.subscriber.onIceCandidateError=i=>{i instanceof RTCPeerConnectionIceErrorEvent&&this.appendWarning("error with ICE candidate: ".concat(i.errorCode," ").concat(i.errorText," ").concat(i.url))})});try{yield this.connect(),gn.info("now the room is connected")}catch(r){throw this.appendWarning("ports need to be open on firewall in order to connect."),r}t||this.appendWarning("Server is not configured for ICE/TCP"),n||this.appendWarning("No public IPv4 UDP candidates were found. Your server is likely not configured correctly")})}}function dje(e){const t=e.split(".");if(t.length===4){if(t[0]==="10")return!0;if(t[0]==="192"&&t[1]==="168")return!0;if(t[0]==="172"){const n=parseInt(t[1],10);if(n>=16&&n<=31)return!0}}return!1}class fje extends Rm{get description(){return"Connecting to signal connection via WebSocket"}perform(){return ye(this,void 0,void 0,function*(){var t,n,r;(this.url.startsWith("ws:")||this.url.startsWith("http:"))&&this.appendWarning("Server is insecure, clients may block connections to it");let i=new a$;const o=yield i.join(this.url,this.token,{autoSubscribe:!0,maxRetries:0,e2eeEnabled:!1,websocketTimeout:15e3});this.appendMessage("Connected to server, version ".concat(o.serverVersion,".")),((t=o.serverInfo)===null||t===void 0?void 0:t.edition)===she.Cloud&&(!((n=o.serverInfo)===null||n===void 0)&&n.region)&&this.appendMessage("LiveKit Cloud: ".concat((r=o.serverInfo)===null||r===void 0?void 0:r.region)),yield i.close()})}}class tin extends Pd.EventEmitter{constructor(t,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};super(),this.options={},this.checkResults=new Map,this.url=t,this.token=n,this.options=r}getNextCheckId(){const t=this.checkResults.size;return this.checkResults.set(t,{logs:[],status:Rl.IDLE,name:"",description:""}),t}updateCheck(t,n){this.checkResults.set(t,n),this.emit("checkUpdate",t,n)}isSuccess(){return Array.from(this.checkResults.values()).every(t=>t.status!==Rl.FAILED)}getResults(){return Array.from(this.checkResults.values())}createAndRunCheck(t){return ye(this,void 0,void 0,function*(){const n=this.getNextCheckId(),r=new t(this.url,this.token,this.options),i=s=>{this.updateCheck(n,s)};r.on("update",i);const o=yield r.run();return r.off("update",i),o})}checkWebsocket(){return ye(this,void 0,void 0,function*(){return this.createAndRunCheck(fje)})}checkWebRTC(){return ye(this,void 0,void 0,function*(){return this.createAndRunCheck(uje)})}checkTURN(){return ye(this,void 0,void 0,function*(){return this.createAndRunCheck(lje)})}checkReconnect(){return ye(this,void 0,void 0,function*(){return this.createAndRunCheck(cje)})}checkPublishAudio(){return ye(this,void 0,void 0,function*(){return this.createAndRunCheck(sje)})}checkPublishVideo(){return ye(this,void 0,void 0,function*(){return this.createAndRunCheck(aje)})}checkConnectionProtocol(){return ye(this,void 0,void 0,function*(){const t=yield this.createAndRunCheck(oje);if(t.data&&"protocol"in t.data){const n=t.data;this.options.protocol=n.protocol}return t})}checkCloudRegion(){return ye(this,void 0,void 0,function*(){return this.createAndRunCheck(ije)})}}function hje(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};var n;const r=Mg(e)?e.mediaStreamTrack:e,i=r.getSettings();let o={facingMode:(n=t.defaultFacingMode)!==null&&n!==void 0?n:"user",confidence:"low"};if("facingMode"in i){const s=i.facingMode;gn.trace("rawFacingMode",{rawFacingMode:s}),s&&typeof s=="string"&&gje(s)&&(o={facingMode:s,confidence:"high"})}if(["low","medium"].includes(o.confidence)){gn.trace("Try to get facing mode from device label: (".concat(r.label,")"));const s=mje(r.label);s!==void 0&&(o=s)}return o}const LX=new Map([["obs virtual camera",{facingMode:"environment",confidence:"medium"}]]),pje=new Map([["iphone",{facingMode:"environment",confidence:"medium"}],["ipad",{facingMode:"environment",confidence:"medium"}]]);function mje(e){var t;const n=e.trim().toLowerCase();if(n!=="")return LX.has(n)?LX.get(n):(t=Array.from(pje.entries()).find(r=>{let[i]=r;return n.includes(i)}))===null||t===void 0?void 0:t[1]}function gje(e){return e===void 0||["user","environment","left","right"].includes(e)}const tI=Math.min,Dg=Math.max,nI=Math.round,yT=Math.floor,ad=e=>({x:e,y:e}
vendor: 5,377 bytes, line 422
422),vje={left:"right",right:"left",bottom:"top",top:"bottom"},yje={start:"end",end:"start"};function FX(e,t,n){return Dg(e,tI(t,n))}function oP(e,t){return typeof e=="function"?e(t):e}function cv(e){return e.split("-")[0]}function sP(e){return e.split("-")[1]}function Spe(e){return e==="x"?"y":"x"}function _pe(e){return e==="y"?"height":"width"}function l1(e){return["top","bottom"].includes(cv(e))?"y":"x"}function Cpe(e){return Spe(l1(e))}function bje(e,t,n){n===void 0&&(n=!1);const r=sP(e),i=Cpe(e),o=_pe(i);let s=i==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[o]>t.floating[o]&&(s=rI(s)),[s,rI(s)]}function wje(e){const t=rI(e);return[aj(e),t,aj(t)]}function aj(e){return e.replace(/start|end/g,t=>yje[t])}function Sje(e,t,n){const r=["left","right"],i=["right","left"],o=["top","bottom"],s=["bottom","top"];switch(e){case"top":case"bottom":return n?t?i:r:t?r:i;case"left":case"right":return t?o:s;default:return[]}}function _je(e,t,n,r){const i=sP(e);let o=Sje(cv(e),n==="start",r);return i&&(o=o.map(s=>s+"-"+i),t&&(o=o.concat(o.map(aj)))),o}function rI(e){return e.replace(/left|right|bottom|top/g,t=>vje[t])}function Cje(e){return{top:0,right:0,bottom:0,left:0,...e}}function Eje(e){return typeof e!="number"?Cje(e):{top:e,right:e,bottom:e,left:e}}function iI(e){const{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}function jX(e,t,n){let{reference:r,floating:i}=e;const o=l1(t),s=Cpe(t),a=_pe(s),c=cv(t),l=o==="y",u=r.x+r.width/2-i.width/2,d=r.y+r.height/2-i.height/2,f=r[a]/2-i[a]/2;let p;switch(c){case"top":p={x:u,y:r.y-i.height};break;case"bottom":p={x:u,y:r.y+r.height};break;case"right":p={x:r.x+r.width,y:d};break;case"left":p={x:r.x-i.width,y:d};break;default:p={x:r.x,y:r.y}}switch(sP(t)){case"start":p[s]-=f*(n&&l?-1:1);break;case"end":p[s]+=f*(n&&l?-1:1);break}return p}const Tje=async(e,t,n)=>{const{placement:r="bottom",strategy:i="absolute",middleware:o=[],platform:s}=n,a=o.filter(Boolean),c=await(s.isRTL==null?void 0:s.isRTL(t));let l=await s.getElementRects({reference:e,floating:t,strategy:i}),{x:u,y:d}=jX(l,r,c),f=r,p={},g=0;for(let m=0;m<a.length;m++){const{name:y,fn:v}=a[m],{x:w,y:S,data:C,reset:E}=await v({x:u,y:d,initialPlacement:r,placement:f,strategy:i,middlewareData:p,rects:l,platform:s,elements:{reference:e,floating:t}});u=w??u,d=S??d,p={...p,[y]:{...p[y],...C}},E&&g<=50&&(g++,typeof E=="object"&&(E.placement&&(f=E.placement),E.rects&&(l=E.rects===!0?await s.getElementRects({reference:e,floating:t,strategy:i}):E.rects),{x:u,y:d}=jX(l,f,c)),m=-1)}return{x:u,y:d,placement:f,strategy:i,middlewareData:p}};async function Epe(e,t){var n;t===void 0&&(t={});const{x:r,y:i,platform:o,rects:s,elements:a,strategy:c}=e,{boundary:l="clippingAncestors",rootBoundary:u="viewport",elementContext:d="floating",altBoundary:f=!1,padding:p=0}=oP(t,e),g=Eje(p),m=a[f?d==="floating"?"reference":"floating":d],y=iI(await o.getClippingRect({element:(n=await(o.isElement==null?void 0:o.isElement(m)))==null||n?m:m.contextElement||await(o.getDocumentElement==null?void 0:o.getDocumentElement(a.floating)),boundary:l,rootBoundary:u,strategy:c})),v=d==="floating"?{x:r,y:i,width:s.floating.width,height:s.floating.height}:s.reference,w=await(o.getOffsetParent==null?void 0:o.getOffsetParent(a.floating)),S=await(o.isElement==null?void 0:o.isElement(w))?await(o.getScale==null?void 0:o.getScale(w))||{x:1,y:1}:{x:1,y:1},C=iI(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:v,offsetParent:w,strategy:c}):v);return{top:(y.top-C.top+g.top)/S.y,bottom:(C.bottom-y.bottom+g.bottom)/S.y,left:(y.left-C.left+g.left)/S.x,right:(C.right-y.right+g.right)/S.x}}const kje=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:i,middlewareData:o,rects:s,initialPlacement:a,platform:c,elements:l}=t,{mainAxis:u=!0,crossAxis:d=!0,fallbackPlacements:f,fallbackStrategy:p="bestFit",fallbackAxisSideDirection:g="none",flipAlignment:m=!0,...y}=oP(e,t);if((n=o.arrow)!=null&&n.alignmentOffset)return{};const v=cv(i),w=l1(a),S=cv(a)===a,C=await(c.isRTL==null?void 0:c.isRTL(l.floating)),E=f||(S||!m?[rI(a)]:wje(a)),T=g!=="none";!f&&T&&E.push(..._je(a,m,g,C));const x=[a,...E],O=await Epe(t,y),A=[];let L=((r=o.flip)==null?void 0:r.overflows)||[];if(u&&A.push(O[v]),d){const P=bje(i,s,C);A.push(O[P[0]],O[P[1]])}if(L=[...L,{placement:i,overflows:A}],!A.every(P=>P<=0)){var U,I;const P=(((U=o.flip)==null?void 0:U.index)||0)+1,W=x[P];if(W)return{data:{index:P,overflows:L},reset:{placement:W}};let ee=(I=L.filter(Y=>Y.overflows[0]<=0).sort((Y,X)=>Y.overflows[1]-X.overflows[1])[0])==null?void 0:I.placement;if(!ee)switch(p){case"bestFit":{var F;const Y=(F=L.filter(X=>{if(T){const Z=l1(X.placement);return Z===w||Z==="y"}return!0}).map(X=>[X.placement,X.overflows.filter(Z=>Z>0).reduce((Z,G)=>Z+G,0)]).sort((X,Z)=>X[1]-Z[1])[0])==null?void 0:F[0];Y&&(ee=Y);break}case"initialPlacement":ee=a;break}if(i!==ee)return{reset:{placement:ee}}}return{}}}};async function xje(e,t){const{placement:n,platform:r,elements:i}=e,o=await(r.isRTL==null?void 0:r.isRTL(i.floating)),s=cv(n),a=sP(n),c=l1(n)==="y",l=["left","top"].includes(s)?-1:1,u=o&&c?-1:1,d=oP(t,e);let{mainAxis:f,crossAxis:p,alignmentAxis:g}=typeof d=="number"?{mainAxis:d,crossAxis:0,alignmentAxis:null}
vendor: 10,667 bytes, line 422
422:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return a&&typeof g=="number"&&(p=a==="end"?g*-1:g),c?{x:p*u,y:f*l}:{x:f*l,y:p*u}}const Aje=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:i,y:o,placement:s,middlewareData:a}=t,c=await xje(t,e);return s===((n=a.offset)==null?void 0:n.placement)&&(r=a.arrow)!=null&&r.alignmentOffset?{}:{x:i+c.x,y:o+c.y,data:{...c,placement:s}}}}},Ije=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:i}=t,{mainAxis:o=!0,crossAxis:s=!1,limiter:a={fn:y=>{let{x:v,y:w}=y;return{x:v,y:w}}},...c}=oP(e,t),l={x:n,y:r},u=await Epe(t,c),d=l1(cv(i)),f=Spe(d);let p=l[f],g=l[d];if(o){const y=f==="y"?"top":"left",v=f==="y"?"bottom":"right",w=p+u[y],S=p-u[v];p=FX(w,p,S)}if(s){const y=d==="y"?"top":"left",v=d==="y"?"bottom":"right",w=g+u[y],S=g-u[v];g=FX(w,g,S)}const m=a.fn({...t,[f]:p,[d]:g});return{...m,data:{x:m.x-n,y:m.y-r,enabled:{[f]:o,[d]:s}}}}}};function aP(){return typeof window<"u"}function pb(e){return Tpe(e)?(e.nodeName||"").toLowerCase():"#document"}function lc(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Od(e){var t;return(t=(Tpe(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Tpe(e){return aP()?e instanceof Node||e instanceof lc(e).Node:!1}function nu(e){return aP()?e instanceof Element||e instanceof lc(e).Element:!1}function vd(e){return aP()?e instanceof HTMLElement||e instanceof lc(e).HTMLElement:!1}function UX(e){return!aP()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof lc(e).ShadowRoot}function sE(e){const{overflow:t,overflowX:n,overflowY:r,display:i}=ru(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(i)}function Rje(e){return["table","td","th"].includes(pb(e))}function cP(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch{return!1}})}function p$(e){const t=m$(),n=nu(e)?ru(e):e;return["transform","translate","scale","rotate","perspective"].some(r=>n[r]?n[r]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||["transform","translate","scale","rotate","perspective","filter"].some(r=>(n.willChange||"").includes(r))||["paint","layout","strict","content"].some(r=>(n.contain||"").includes(r))}function Pje(e){let t=im(e);for(;vd(t)&&!u1(t);){if(p$(t))return t;if(cP(t))return null;t=im(t)}return null}function m$(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function u1(e){return["html","body","#document"].includes(pb(e))}function ru(e){return lc(e).getComputedStyle(e)}function lP(e){return nu(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function im(e){if(pb(e)==="html")return e;const t=e.assignedSlot||e.parentNode||UX(e)&&e.host||Od(e);return UX(t)?t.host:t}function kpe(e){const t=im(e);return u1(t)?e.ownerDocument?e.ownerDocument.body:e.body:vd(t)&&sE(t)?t:kpe(t)}function Z_(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const i=kpe(e),o=i===((r=e.ownerDocument)==null?void 0:r.body),s=lc(i);if(o){const a=cj(s);return t.concat(s,s.visualViewport||[],sE(i)?i:[],a&&n?Z_(a):[])}return t.concat(i,Z_(i,[],n))}function cj(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function xpe(e){const t=ru(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const i=vd(e),o=i?e.offsetWidth:n,s=i?e.offsetHeight:r,a=nI(n)!==o||nI(r)!==s;return a&&(n=o,r=s),{width:n,height:r,$:a}}function g$(e){return nu(e)?e:e.contextElement}function Ry(e){const t=g$(e);if(!vd(t))return ad(1);const n=t.getBoundingClientRect(),{width:r,height:i,$:o}=xpe(t);let s=(o?nI(n.width):n.width)/r,a=(o?nI(n.height):n.height)/i;return(!s||!Number.isFinite(s))&&(s=1),(!a||!Number.isFinite(a))&&(a=1),{x:s,y:a}}const Oje=ad(0);function Ape(e){const t=lc(e);return!m$()||!t.visualViewport?Oje:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Nje(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==lc(e)?!1:t}function lv(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const i=e.getBoundingClientRect(),o=g$(e);let s=ad(1);t&&(r?nu(r)&&(s=Ry(r)):s=Ry(e));const a=Nje(o,n,r)?Ape(o):ad(0);let c=(i.left+a.x)/s.x,l=(i.top+a.y)/s.y,u=i.width/s.x,d=i.height/s.y;if(o){const f=lc(o),p=r&&nu(r)?lc(r):r;let g=f,m=cj(g);for(;m&&r&&p!==g;){const y=Ry(m),v=m.getBoundingClientRect(),w=ru(m),S=v.left+(m.clientLeft+parseFloat(w.paddingLeft))*y.x,C=v.top+(m.clientTop+parseFloat(w.paddingTop))*y.y;c*=y.x,l*=y.y,u*=y.x,d*=y.y,c+=S,l+=C,g=lc(m),m=cj(g)}}return iI({width:u,height:d,x:c,y:l})}function v$(e,t){const n=lP(e).scrollLeft;return t?t.left+n:lv(Od(e)).left+n}function Ipe(e,t,n){n===void 0&&(n=!1);const r=e.getBoundingClientRect(),i=r.left+t.scrollLeft-(n?0:v$(e,r)),o=r.top+t.scrollTop;return{x:i,y:o}}function Mje(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e;const o=i==="fixed",s=Od(r),a=t?cP(t.floating):!1;if(r===s||a&&o)return n;let c={scrollLeft:0,scrollTop:0},l=ad(1);const u=ad(0),d=vd(r);if((d||!d&&!o)&&((pb(r)!=="body"||sE(s))&&(c=lP(r)),vd(r))){const p=lv(r);l=Ry(r),u.x=p.x+r.clientLeft,u.y=p.y+r.clientTop}const f=s&&!d&&!o?Ipe(s,c,!0):ad(0);return{width:n.width*l.x,height:n.height*l.y,x:n.x*l.x-c.scrollLeft*l.x+u.x+f.x,y:n.y*l.y-c.scrollTop*l.y+u.y+f.y}}function Dje(e){return Array.from(e.getClientRects())}function Lje(e){const t=Od(e),n=lP(e),r=e.ownerDocument.body,i=Dg(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),o=Dg(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let s=-n.scrollLeft+v$(e);const a=-n.scrollTop;return ru(r).direction==="rtl"&&(s+=Dg(t.clientWidth,r.clientWidth)-i),{width:i,height:o,x:s,y:a}}function Fje(e,t){const n=lc(e),r=Od(e),i=n.visualViewport;let o=r.clientWidth,s=r.clientHeight,a=0,c=0;if(i){o=i.width,s=i.height;const l=m$();(!l||l&&t==="fixed")&&(a=i.offsetLeft,c=i.offsetTop)}return{width:o,height:s,x:a,y:c}}function jje(e,t){const n=lv(e,!0,t==="fixed"),r=n.top+e.clientTop,i=n.left+e.clientLeft,o=vd(e)?Ry(e):ad(1),s=e.clientWidth*o.x,a=e.clientHeight*o.y,c=i*o.x,l=r*o.y;return{width:s,height:a,x:c,y:l}}function BX(e,t,n){let r;if(t==="viewport")r=Fje(e,n);else if(t==="document")r=Lje(Od(e));else if(nu(t))r=jje(t,n);else{const i=Ape(e);r={x:t.x-i.x,y:t.y-i.y,width:t.width,height:t.height}}return iI(r)}function Rpe(e,t){const n=im(e);return n===t||!nu(n)||u1(n)?!1:ru(n).position==="fixed"||Rpe(n,t)}function Uje(e,t){const n=t.get(e);if(n)return n;let r=Z_(e,[],!1).filter(a=>nu(a)&&pb(a)!=="body"),i=null;const o=ru(e).position==="fixed";let s=o?im(e):e;for(;nu(s)&&!u1(s);){const a=ru(s),c=p$(s);!c&&a.position==="fixed"&&(i=null),(o?!c&&!i:!c&&a.position==="static"&&i&&["absolute","fixed"].includes(i.position)||sE(s)&&!c&&Rpe(e,s))?r=r.filter(l=>l!==s):i=a,s=im(s)}return t.set(e,r),r}function Bje(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e;const o=[...n==="clippingAncestors"?cP(t)?[]:Uje(t,this._c):[].concat(n),r],s=o[0],a=o.reduce((c,l)=>{const u=BX(t,l,i);return c.top=Dg(u.top,c.top),c.right=tI(u.right,c.right),c.bottom=tI(u.bottom,c.bottom),c.left=Dg(u.left,c.left),c},BX(t,s,i));return{width:a.right-a.left,height:a.bottom-a.top,x:a.left,y:a.top}}function $je(e){const{width:t,height:n}=xpe(e);return{width:t,height:n}}function Hje(e,t,n){const r=vd(t),i=Od(t),o=n==="fixed",s=lv(e,!0,o,t);let a={scrollLeft:0,scrollTop:0};const c=ad(0);if(r||!r&&!o)if((pb(t)!=="body"||sE(i))&&(a=lP(t)),r){const f=lv(t,!0,o,t);c.x=f.x+t.clientLeft,c.y=f.y+t.clientTop}else i&&(c.x=v$(i));const l=i&&!r&&!o?Ipe(i,a):ad(0),u=s.left+a.scrollLeft-c.x-l.x,d=s.top+a.scrollTop-c.y-l.y;return{x:u,y:d,width:s.width,height:s.height}}function PM(e){return ru(e).position==="static"}function $X(e,t){if(!vd(e)||ru(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return Od(e)===n&&(n=n.ownerDocument.body),n}function Ppe(e,t){const n=lc(e);if(cP(e))return n;if(!vd(e)){let i=im(e);for(;i&&!u1(i);){if(nu(i)&&!PM(i))return i;i=im(i)}return n}let r=$X(e,t);for(;r&&Rje(r)&&PM(r);)r=$X(r,t);return r&&u1(r)&&PM(r)&&!p$(r)?n:r||Pje(e)||n}const zje=async function(e){const t=this.getOffsetParent||Ppe,n=this.getDimensions,r=await n(e.floating);return{reference:Hje(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function Vje(e){return ru(e).direction==="rtl"}const Wje={convertOffsetParentRelativeRectToViewportRelativeRect:Mje,getDocumentElement:Od,getClippingRect:Bje,getOffsetParent:Ppe,getElementRects:zje,getClientRects:Dje,getDimensions:$je,getScale:Ry,isElement:nu,isRTL:Vje};function Ope(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function qje(e,t){let n=null,r;const i=Od(e);function o(){var a;clearTimeout(r),(a=n)==null||a.disconnect(),n=null}function s(a,c){a===void 0&&(a=!1),c===void 0&&(c=1),o();const l=e.getBoundingClientRect(),{left:u,top:d,width:f,height:p}=l;if(a||t(),!f||!p)return;const g=yT(d),m=yT(i.clientWidth-(u+f)),y=yT(i.clientHeight-(d+p)),v=yT(u),w={rootMargin:-g+"px "+-m+"px "+-y+"px "+-v+"px",threshold:Dg(0,tI(1,c))||1};let S=!0;function C(E){const T=E[0].intersectionRatio;if(T!==c){if(!S)return s();T?s(!1,T):r=setTimeout(()=>{s(!1,1e-7)},1e3)}T===1&&!Ope(l,e.getBoundingClientRect())&&s(),S=!1}try{n=new IntersectionObserver(C,{...w,root:i.ownerDocument})}catch{n=new IntersectionObserver(C,w)}n.observe(e)}return s(!0),o}function Gje(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:i=!0,ancestorResize:o=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:c=!1}=r,l=g$(e),u=i||o?[...l?Z_(l):[],...Z_(t)]:[];u.forEach(v=>{i&&v.addEventListener("scroll",n,{passive:!0}),o&&v.addEventListener("resize",n)});const d=l&&a?qje(l,n):null;let f=-1,p=null;s&&(p=new ResizeObserver(v=>{let[w]=v;w&&w.target===l&&p&&(p.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var S;(S=p)==null||S.observe(t)})),n()}),l&&!c&&p.observe(l),p.observe(t));let g,m=c?lv(e):null;c&&y();function y(){const v=lv(e);m&&!Ope(m,v)&&n(),m=v,g=requestAnimationFrame(y)}return n(),()=>{var v;u.forEach(w=>{i&&w.removeEventListener("scroll",n),o&&w.removeEventListener("resize",n)}),d==null||d(),(v=p)==null||v.disconnect(),p=null,c&&cancelAnimationFrame(g)}}const Kje=Aje,Yje=Ije,Qje=kje,Xje=(e,t,n)=>{const r=new Map,i={platform:Wje,...n},o={...i.platform,_c:r};return Tje(e,t,{...i,platform:o})};var bT=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};
vendor: 5,377 bytes, line 422
422function Npe(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var lj={exports:{}},Jje=lj.exports,HX;function Zje(){return HX||(HX=1,(function(e){(function(t,n){e.exports?e.exports=n():t.log=n()})(Jje,function(){var t=function(){},n="undefined",r=typeof window!==n&&typeof window.navigator!==n&&/Trident\/|MSIE /.test(window.navigator.userAgent),i=["trace","debug","info","warn","error"],o={},s=null;function a(m,y){var v=m[y];if(typeof v.bind=="function")return v.bind(m);try{return Function.prototype.bind.call(v,m)}catch{return function(){return Function.prototype.apply.apply(v,[m,arguments])}}}function c(){console.log&&(console.log.apply?console.log.apply(console,arguments):Function.prototype.apply.apply(console.log,[console,arguments])),console.trace&&console.trace()}function l(m){return m==="debug"&&(m="log"),typeof console===n?!1:m==="trace"&&r?c:console[m]!==void 0?a(console,m):console.log!==void 0?a(console,"log"):t}function u(){for(var m=this.getLevel(),y=0;y<i.length;y++){var v=i[y];this[v]=y<m?t:this.methodFactory(v,m,this.name)}if(this.log=this.debug,typeof console===n&&m<this.levels.SILENT)return"No console available for logging"}function d(m){return function(){typeof console!==n&&(u.call(this),this[m].apply(this,arguments))}}function f(m,y,v){return l(m)||d.apply(this,arguments)}function p(m,y){var v=this,w,S,C,E="loglevel";typeof m=="string"?E+=":"+m:typeof m=="symbol"&&(E=void 0);function T(U){var I=(i[U]||"silent").toUpperCase();if(!(typeof window===n||!E)){try{window.localStorage[E]=I;return}catch{}try{window.document.cookie=encodeURIComponent(E)+"="+I+";"}catch{}}}function x(){var U;if(!(typeof window===n||!E)){try{U=window.localStorage[E]}catch{}if(typeof U===n)try{var I=window.document.cookie,F=encodeURIComponent(E),P=I.indexOf(F+"=");P!==-1&&(U=/^([^;]+)/.exec(I.slice(P+F.length+1))[1])}catch{}return v.levels[U]===void 0&&(U=void 0),U}}function O(){if(!(typeof window===n||!E)){try{window.localStorage.removeItem(E)}catch{}try{window.document.cookie=encodeURIComponent(E)+"=; expires=Thu, 01 Jan 1970 00:00:00 UTC"}catch{}}}function A(U){var I=U;if(typeof I=="string"&&v.levels[I.toUpperCase()]!==void 0&&(I=v.levels[I.toUpperCase()]),typeof I=="number"&&I>=0&&I<=v.levels.SILENT)return I;throw new TypeError("log.setLevel() called with invalid level: "+U)}v.name=m,v.levels={TRACE:0,DEBUG:1,INFO:2,WARN:3,ERROR:4,SILENT:5},v.methodFactory=y||f,v.getLevel=function(){return C??S??w},v.setLevel=function(U,I){return C=A(U),I!==!1&&T(C),u.call(v)},v.setDefaultLevel=function(U){S=A(U),x()||v.setLevel(U,!1)},v.resetLevel=function(){C=null,O(),u.call(v)},v.enableAll=function(U){v.setLevel(v.levels.TRACE,U)},v.disableAll=function(U){v.setLevel(v.levels.SILENT,U)},v.rebuild=function(){if(s!==v&&(w=A(s.getLevel())),u.call(v),s===v)for(var U in o)o[U].rebuild()},w=A(s?s.getLevel():"WARN");var L=x();L!=null&&(C=A(L)),u.call(v)}s=new p,s.getLogger=function(m){if(typeof m!="symbol"&&typeof m!="string"||m==="")throw new TypeError("You must supply a name when creating a logger.");var y=o[m];return y||(y=o[m]=new p(m,s.methodFactory)),y};var g=typeof window!==n?window.log:void 0;return s.noConflict=function(){return typeof window!==n&&window.log===s&&(window.log=g),s},s.getLoggers=function(){return o},s.default=s,s})})(lj)),lj.exports}var e7e=Zje();const t7e=Npe(e7e);var uj=function(e,t){return uj=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(n[i]=r[i])},uj(e,t)};function yh(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");uj(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}function n7e(e,t,n,r){function i(o){return o instanceof n?o:new n(function(s){s(o)})}return new(n||(n=Promise))(function(o,s){function a(u){try{l(r.next(u))}catch(d){s(d)}}function c(u){try{l(r.throw(u))}catch(d){s(d)}}function l(u){u.done?o(u.value):i(u.value).then(a,c)}l((r=r.apply(e,[])).next())})}function Mpe(e,t){var n={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},r,i,o,s=Object.create((typeof Iterator=="function"?Iterator:Object).prototype);return s.next=a(0),s.throw=a(1),s.return=a(2),typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function a(l){return function(u){return c([l,u])}}function c(l){if(r)throw new TypeError("Generator is already executing.");for(;s&&(s=0,l[0]&&(n=0)),n;)try{if(r=1,i&&(o=l[0]&2?i.return:l[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,l[1])).done)return o;switch(i=0,o&&(l=[l[0]&2,o.value]),l[0]){case 0:case 1:o=l;break;case 4:return n.label++,{value:l[1],done:!1};case 5:n.label++,i=l[1],l=[0];continue;case 7:l=n.ops.pop(),n.trys.pop();continue;default:if(o=n.trys,!(o=o.length>0&&o[o.length-1])&&(l[0]===6||l[0]===2)){n=0;continue}if(l[0]===3&&(!o||l[1]>o[0]&&l[1]<o[3])){n.label=l[1];break}if(l[0]===6&&n.label<o[1]){n.label=o[1],o=l;break}if(o&&n.label<o[2]){n.label=o[2],n.ops.push(l);break}o[2]&&n.ops.pop(),n.trys.pop();continue}l=t.call(e,n)}catch(u){l=[6,u],i=0}finally{r=o=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}}function d1(e){var t=typeof Symbol=="function"&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);
vendor: 12,161 bytes, lines 422-424
422if(e&&typeof e.length=="number")return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function oI(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,o=[],s;try{for(;(t===void 0||t-- >0)&&!(i=r.next()).done;)o.push(i.value)}catch(a){s={error:a}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(s)throw s.error}}return o}function sI(e,t,n){if(arguments.length===2)for(var r=0,i=t.length,o;r<i;r++)(o||!(r in t))&&(o||(o=Array.prototype.slice.call(t,0,r)),o[r]=t[r]);return e.concat(o||Array.prototype.slice.call(t))}function Py(e){return this instanceof Py?(this.v=e,this):new Py(e)}function r7e(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r=n.apply(e,t||[]),i,o=[];return i=Object.create((typeof AsyncIterator=="function"?AsyncIterator:Object).prototype),a("next"),a("throw"),a("return",s),i[Symbol.asyncIterator]=function(){return this},i;function s(p){return function(g){return Promise.resolve(g).then(p,d)}}function a(p,g){r[p]&&(i[p]=function(m){return new Promise(function(y,v){o.push([p,m,y,v])>1||c(p,m)})},g&&(i[p]=g(i[p])))}function c(p,g){try{l(r[p](g))}catch(m){f(o[0][3],m)}}function l(p){p.value instanceof Py?Promise.resolve(p.value.v).then(u,d):f(o[0][2],p)}function u(p){c("next",p)}function d(p){c("throw",p)}function f(p,g){p(g),o.shift(),o.length&&c(o[0][0],o[0][1])}}function i7e(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],n;return t?t.call(e):(e=typeof d1=="function"?d1(e):e[Symbol.iterator](),n={},r("next"),r("throw"),r("return"),n[Symbol.asyncIterator]=function(){return this},n);function r(o){n[o]=e[o]&&function(s){return new Promise(function(a,c){s=e[o](s),i(a,c,s.done,s.value)})}}function i(o,s,a,c){Promise.resolve(c).then(function(l){o({value:l,done:a})},s)}}function So(e){return typeof e=="function"}function y$(e){var t=function(r){Error.call(r),r.stack=new Error().stack},n=e(t);return n.prototype=Object.create(Error.prototype),n.prototype.constructor=n,n}var OM=y$(function(e){return function(t){e(this),this.message=t?t.length+` errors occurred during unsubscription:
423`+t.map(function(n,r){return r+1+") "+n.toString()}).join(`
424  `):"",this.name="UnsubscriptionError",this.errors=t}});function aI(e,t){if(e){var n=e.indexOf(t);0<=n&&e.splice(n,1)}}var aE=(function(){function e(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}return e.prototype.unsubscribe=function(){var t,n,r,i,o;if(!this.closed){this.closed=!0;var s=this._parentage;if(s)if(this._parentage=null,Array.isArray(s))try{for(var a=d1(s),c=a.next();!c.done;c=a.next()){var l=c.value;l.remove(this)}}catch(m){t={error:m}}finally{try{c&&!c.done&&(n=a.return)&&n.call(a)}finally{if(t)throw t.error}}else s.remove(this);var u=this.initialTeardown;if(So(u))try{u()}catch(m){o=m instanceof OM?m.errors:[m]}var d=this._finalizers;if(d){this._finalizers=null;try{for(var f=d1(d),p=f.next();!p.done;p=f.next()){var g=p.value;try{zX(g)}catch(m){o=o??[],m instanceof OM?o=sI(sI([],oI(o)),oI(m.errors)):o.push(m)}}}catch(m){r={error:m}}finally{try{p&&!p.done&&(i=f.return)&&i.call(f)}finally{if(r)throw r.error}}}if(o)throw new OM(o)}},e.prototype.add=function(t){var n;if(t&&t!==this)if(this.closed)zX(t);else{if(t instanceof e){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=(n=this._finalizers)!==null&&n!==void 0?n:[]).push(t)}},e.prototype._hasParent=function(t){var n=this._parentage;return n===t||Array.isArray(n)&&n.includes(t)},e.prototype._addParent=function(t){var n=this._parentage;this._parentage=Array.isArray(n)?(n.push(t),n):n?[n,t]:t},e.prototype._removeParent=function(t){var n=this._parentage;n===t?this._parentage=null:Array.isArray(n)&&aI(n,t)},e.prototype.remove=function(t){var n=this._finalizers;n&&aI(n,t),t instanceof e&&t._removeParent(this)},e.EMPTY=(function(){var t=new e;return t.closed=!0,t})(),e})(),Dpe=aE.EMPTY;function Lpe(e){return e instanceof aE||e&&"closed"in e&&So(e.remove)&&So(e.add)&&So(e.unsubscribe)}function zX(e){So(e)?e():e.unsubscribe()}var o7e={Promise:void 0},s7e={setTimeout:function(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];return setTimeout.apply(void 0,sI([e,t],oI(n)))},clearTimeout:function(e){return clearTimeout(e)},delegate:void 0};function Fpe(e){s7e.setTimeout(function(){throw e})}function VX(){}function Ex(e){e()}var b$=(function(e){yh(t,e);function t(n){var r=e.call(this)||this;return r.isStopped=!1,n?(r.destination=n,Lpe(n)&&n.add(r)):r.destination=l7e,r}return t.create=function(n,r,i){return new dj(n,r,i)},t.prototype.next=function(n){this.isStopped||this._next(n)},t.prototype.error=function(n){this.isStopped||(this.isStopped=!0,this._error(n))},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(n){this.destination.next(n)},t.prototype._error=function(n){try{this.destination.error(n)}finally{this.unsubscribe()}},t.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},t})(aE),a7e=(function(){function e(t){this.partialObserver=t}return e.prototype.next=function(t){var n=this.partialObserver;if(n.next)try{n.next(t)}catch(r){wT(r)}},e.prototype.error=function(t){var n=this.partialObserver;if(n.error)try{n.error(t)}catch(r){wT(r)}else wT(t)},e.prototype.complete=function(){var t=this.partialObserver;if(t.complete)try{t.complete()}catch(n){wT(n)}},e})(),dj=(function(e){yh(t,e);function t(n,r,i){var o=e.call(this)||this,s;return So(n)||!n?s={next:n??void 0,error:r??void 0,complete:i??void 0}:s=n,o.destination=new a7e(s),o}return t})(b$);function wT(e){Fpe(e)}function c7e(e){throw e}var l7e={closed:!0,next:VX,error:c7e,complete:VX},w$=(function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"})();function jpe(e){return e}function u7e(e){return e.length===0?jpe:e.length===1?e[0]:function(t){return e.reduce(function(n,r){return r(n)},t)}}var Co=(function(){function e(t){t&&(this._subscribe=t)}return e.prototype.lift=function(t){var n=new e;return n.source=this,n.operator=t,n},e.prototype.subscribe=function(t,n,r){var i=this,o=f7e(t)?t:new dj(t,n,r);return Ex(function(){var s=i,a=s.operator,c=s.source;o.add(a?a.call(o,c):c?i._subscribe(o):i._trySubscribe(o))}),o},e.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(n){t.error(n)}},e.prototype.forEach=function(t,n){var r=this;return n=WX(n),new n(function(i,o){var s=new dj({next:function(a){try{t(a)}catch(c){o(c),s.unsubscribe()}},error:o,complete:i});r.subscribe(s)})},e.prototype._subscribe=function(t){var n;return(n=this.source)===null||n===void 0?void 0:n.subscribe(t)},e.prototype[w$]=function(){return this},e.prototype.pipe=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return u7e(t)(this)},e.prototype.toPromise=function(t){var n=this;return t=WX(t),new t(function(r,i){var o;n.subscribe(function(s){return o=s},function(s){return i(s)},function(){return r(o)})})},e.create=function(t){return new e(t)},e})();function WX(e){var t;return(t=e??o7e.Promise)!==null&&t!==void 0?t:Promise}function d7e(e){return e&&So(e.next)&&So(e.error)&&So(e.complete)}function f7e(e){return e&&e instanceof b$||d7e(e)&&Lpe(e)}function h7e(e){return So(e==null?void 0:e.lift)}function mb(e){return function(t){if(h7e(t))return t.lift(function(n){try{return e(n,this)}catch(r){this.error(r)}});throw new TypeError("Unable to lift unknown Observable type")}}function eC(e,t,n,r,i){return new p7e(e,t,n,r,i)}var p7e=(function(e){yh(t,e);function t(n,r,i,o,s,a){var c=e.call(this,n)||this;return c.onFinalize=s,c.shouldUnsubscribe=a,c._next=r?function(l){try{r(l)}catch(u){n.error(u)}}:e.prototype._next,c._error=o?function(l){try{o(l)}catch(u){n.error(u)}finally{this.unsubscribe()}}:e.prototype._error,c._complete=i?function(){try{i()}catch(l){n.error(l)}finally{this.unsubscribe()}}:e.prototype._complete,c}return t.prototype.unsubscribe=function(){var n;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){var r=this.closed;e.prototype.unsubscribe.call(this),!r&&((n=this.onFinalize)===null||n===void 0||n.call(this))}},t})(b$),m7e=y$(function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),tC=(function(e){yh(t,e);function t(){var n=e.call(this)||this;return n.closed=!1,n.currentObservers=null,n.observers=[],n.isStopped=!1,n.hasError=!1,n.thrownError=null,n}return t.prototype.lift=function(n){var r=new qX(this,this);return r.operator=n,r},t.prototype._throwIfClosed=function(){if(this.closed)throw new m7e},t.prototype.next=function(n){var r=this;Ex(function(){var i,o;if(r._throwIfClosed(),!r.isStopped){r.currentObservers||(r.currentObservers=Array.from(r.observers));try{for(var s=d1(r.currentObservers),a=s.next();!a.done;a=s.next()){var c=a.value;c.next(n)}}catch(l){i={error:l}}finally{try{a&&!a.done&&(o=s.return)&&o.call(s)}finally{if(i)throw i.error}}}})},t.prototype.error=function(n){var r=this;Ex(function(){if(r._throwIfClosed(),!r.isStopped){r.hasError=r.isStopped=!0,r.thrownError=n;for(var i=r.observers;i.length;)i.shift().error(n)}})},t.prototype.complete=function(){var n=this;Ex(function(){if(n._throwIfClosed(),!n.isStopped){n.isStopped=!0;for(var r=n.observers;r.length;)r.shift().complete()}})},t.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(t.prototype,"observed",{get:function(){var n;return((n=this.observers)===null||n===void 0?void 0:n.length)>0},enumerable:!1,configurable:!0}),t.prototype._trySubscribe=function(n){return this._throwIfClosed(),e.prototype._trySubscribe.call(this,n)},t.prototype._subscribe=function(n){return this._throwIfClosed(),this._checkFinalizedStatuses(n),this._innerSubscribe(n)},t.prototype._innerSubscribe=function(n){var r=this,i=this,o=i.hasError,s=i.isStopped,a=i.observers;return o||s?Dpe:(this.currentObservers=null,a.push(n),new aE(function(){r.currentObservers=null,aI(a,n)}))},t.prototype._checkFinalizedStatuses=function(n){var r=this,i=r.hasError,o=r.thrownError,s=r.isStopped;i?n.error(o):s&&n.complete()},t.prototype.asObservable=function(){var n=new Co;return n.source=this,n},t.create=function(n,r){return new qX(n,r)},t})(Co),qX=(function(e){yh(t,e);function t(n,r){var i=e.call(this)||this;return i.destination=n,i.source=r,i}return t.prototype.next=function(n){var r,i;(i=(r=this.destination)===null||r===void 0?void 0:r.next)===null||i===void 0||i.call(r,n)},t.prototype.error=function(n){var r,i;(i=(r=this.destination)===null||r===void 0?void 0:r.error)===null||i===void 0||i.call(r,n)},t.prototype.complete=function(){var n,r;(r=(n=this.destination)===null||n===void 0?void 0:n.complete)===null||r===void 0||r.call(n)},t.prototype._subscribe=function(n){var r,i;return(i=(r=this.source)===null||r===void 0?void 0:r.subscribe(n))!==null&&i!==void 0?i:Dpe},t})(tC),g7e=(function(e){yh(t,e);function t(n){var r=e.call(this)||this;return r._value=n,r}return Object.defineProperty(t.prototype,"value",{get:function(){return this.getValue()},enumerable:!1,configurable:!0}),t.prototype._subscribe=function(n){var r=e.prototype._subscribe.call(this,n);return!r.closed&&n.next(this._value),r},t.prototype.getValue=function(){var n=this,r=n.hasError,i=n.thrownError,o=n._value;if(r)throw i;return this._throwIfClosed(),o},t.prototype.next=function(n){e.prototype.next.call(this,this._value=n)},t})(tC),v7e={now:function(){return Date.now()}},y7e=(function(e){yh(t,e);function t(n,r){return e.call(this)||this}return t.prototype.schedule=function(n,r){return this},t})(aE),GX={setInterval:function(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];return setInterval.apply(void 0,sI([e,t],oI(n)))},clearInterval:function(e){return clearInterval(e)},delegate:void 0},b7e=(function(e){yh(t,e);function t(n,r){var i=e.call(this,n,r)||this;
vendor: 4,764 bytes, line 424
424return i.scheduler=n,i.work=r,i.pending=!1,i}return t.prototype.schedule=function(n,r){var i;if(r===void 0&&(r=0),this.closed)return this;this.state=n;var o=this.id,s=this.scheduler;return o!=null&&(this.id=this.recycleAsyncId(s,o,r)),this.pending=!0,this.delay=r,this.id=(i=this.id)!==null&&i!==void 0?i:this.requestAsyncId(s,this.id,r),this},t.prototype.requestAsyncId=function(n,r,i){return i===void 0&&(i=0),GX.setInterval(n.flush.bind(n,this),i)},t.prototype.recycleAsyncId=function(n,r,i){if(i===void 0&&(i=0),i!=null&&this.delay===i&&this.pending===!1)return r;r!=null&&GX.clearInterval(r)},t.prototype.execute=function(n,r){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var i=this._execute(n,r);if(i)return i;this.pending===!1&&this.id!=null&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))},t.prototype._execute=function(n,r){var i=!1,o;try{this.work(n)}catch(s){i=!0,o=s||new Error("Scheduled action threw falsy error")}if(i)return this.unsubscribe(),o},t.prototype.unsubscribe=function(){if(!this.closed){var n=this,r=n.id,i=n.scheduler,o=i.actions;this.work=this.state=this.scheduler=null,this.pending=!1,aI(o,this),r!=null&&(this.id=this.recycleAsyncId(i,r,null)),this.delay=null,e.prototype.unsubscribe.call(this)}},t})(y7e),KX=(function(){function e(t,n){n===void 0&&(n=e.now),this.schedulerActionCtor=t,this.now=n}return e.prototype.schedule=function(t,n,r){return n===void 0&&(n=0),new this.schedulerActionCtor(this,t).schedule(r,n)},e.now=v7e.now,e})(),w7e=(function(e){yh(t,e);function t(n,r){r===void 0&&(r=KX.now);var i=e.call(this,n,r)||this;return i.actions=[],i._active=!1,i}return t.prototype.flush=function(n){var r=this.actions;if(this._active){r.push(n);return}var i;this._active=!0;do if(i=n.execute(n.state,n.delay))break;while(n=r.shift());if(this._active=!1,i){for(;n=r.shift();)n.unsubscribe();throw i}},t})(KX);new w7e(b7e);function S7e(e){return e&&So(e.schedule)}function _7e(e){return e[e.length-1]}function Upe(e){return S7e(_7e(e))?e.pop():void 0}var Bpe=function(e){return e&&typeof e.length=="number"&&typeof e!="function"};function $pe(e){return So(e==null?void 0:e.then)}function Hpe(e){return So(e[w$])}function zpe(e){return Symbol.asyncIterator&&So(e==null?void 0:e[Symbol.asyncIterator])}function Vpe(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.")}function C7e(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var Wpe=C7e();function qpe(e){return So(e==null?void 0:e[Wpe])}function Gpe(e){return r7e(this,arguments,function(){var t,n,r,i;return Mpe(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,Py(t.read())];case 3:return n=o.sent(),r=n.value,i=n.done,i?[4,Py(void 0)]:[3,5];case 4:return[2,o.sent()];case 5:return[4,Py(r)];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 Kpe(e){return So(e==null?void 0:e.getReader)}function cE(e){if(e instanceof Co)return e;if(e!=null){if(Hpe(e))return E7e(e);if(Bpe(e))return T7e(e);if($pe(e))return k7e(e);if(zpe(e))return Ype(e);if(qpe(e))return x7e(e);if(Kpe(e))return A7e(e)}throw Vpe(e)}function E7e(e){return new Co(function(t){var n=e[w$]();if(So(n.subscribe))return n.subscribe(t);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function T7e(e){return new Co(function(t){for(var n=0;n<e.length&&!t.closed;n++)t.next(e[n]);t.complete()})}function k7e(e){return new Co(function(t){e.then(function(n){t.closed||(t.next(n),t.complete())},function(n){return t.error(n)}).then(null,Fpe)})}function x7e(e){return new Co(function(t){var n,r;try{for(var i=d1(e),o=i.next();!o.done;o=i.next()){var s=o.value;if(t.next(s),t.closed)return}}catch(a){n={error:a}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}t.complete()})}function Ype(e){return new Co(function(t){I7e(e,t).catch(function(n){return t.error(n)})})}function A7e(e){return Ype(Gpe(e))}function I7e(e,t){var n,r,i,o;return n7e(this,void 0,void 0,function(){var s,a;return Mpe(this,function(c){switch(c.label){case 0:c.trys.push([0,5,6,11]),n=i7e(e),c.label=1;case 1:return[4,n.next()];case 2:if(r=c.sent(),!!r.done)return[3,4];if(s=r.value,t.next(s),t.closed)return[2];c.label=3;case 3:return[3,1];case 4:return[3,11];case 5:return a=c.sent(),i={error:a},[3,11];case 6:return c.trys.push([6,,9,10]),r&&!r.done&&(o=n.return)?[4,o.call(n)]:[3,8];case 7:c.sent(),c.label=8;case 8:return[3,10];case 9:if(i)throw i.error;return[7];
424case 10:return[7];case 11:return t.complete(),[2]}})})}function Lg(e,t,n,r,i){r===void 0&&(r=0),i===void 0&&(i=!1);var o=t.schedule(function(){n(),i?e.add(this.schedule(null,r)):this.unsubscribe()},r);if(e.add(o),!i)return o}function Qpe(e,t){return t===void 0&&(t=0),mb(function(n,r){n.subscribe(eC(r,function(i){return Lg(r,e,function(){return r.next(i)},t)},function(){return Lg(r,e,function(){return r.complete()},t)},function(i){return Lg(r,e,function(){return r.error(i)},t)}))})}function Xpe(e,t){return t===void 0&&(t=0),mb(function(n,r){r.add(e.schedule(function(){return n.subscribe(r)},t))})}function R7e(e,t){return cE(e).pipe(Xpe(t),Qpe(t))}function P7e(e,t){return cE(e).pipe(Xpe(t),Qpe(t))}function O7e(e,t){return new Co(function(n){var r=0;return t.schedule(function(){r===e.length?n.complete():(n.next(e[r++]),n.closed||this.schedule())})})}function N7e(e,t){return new Co(function(n){var r;return Lg(n,t,function(){r=e[Wpe](),Lg(n,t,function(){var i,o,s;try{i=r.next(),o=i.value,s=i.done}catch(a){n.error(a);return}s?n.complete():n.next(o)},0,!0)}),function(){return So(r==null?void 0:r.return)&&r.return()}})}function Jpe(e,t){if(!e)throw new Error("Iterable cannot be null");return new Co(function(n){Lg(n,t,function(){var r=e[Symbol.asyncIterator]();Lg(n,t,function(){r.next().then(function(i){i.done?n.complete():n.next(i.value)})},0,!0)})})}function M7e(e,t){return Jpe(Gpe(e),t)}function D7e(e,t){if(e!=null){if(Hpe(e))return R7e(e,t);if(Bpe(e))return O7e(e,t);if($pe(e))return P7e(e,t);if(zpe(e))return Jpe(e,t);if(qpe(e))return N7e(e,t);if(Kpe(e))return M7e(e,t)}throw Vpe(e)}function L7e(e,t){return t?D7e(e,t):cE(e)}y$(function(e){return function(t){t===void 0&&(t=null),e(this),this.message="Timeout has occurred",this.name="TimeoutError",this.info=t}});function Oa(e,t){return mb(function(n,r){var i=0;n.subscribe(eC(r,function(o){r.next(e.call(t,o,i++))}))})}function F7e(e,t,n,r,i,o,s,a){var c=[],l=0,u=0,d=!1,f=function(){d&&!c.length&&!l&&t.complete()},p=function(m){return l<r?g(m):c.push(m)},g=function(m){l++;var y=!1;cE(n(m,u++)).subscribe(eC(t,function(v){t.next(v)},function(){y=!0},void 0,function(){if(y)try{l--;for(var v=function(){var w=c.shift();s||g(w)};c.length&&l<r;)v();f()}catch(w){t.error(w)}}))};return e.subscribe(eC(t,p,function(){d=!0,f()})),function(){}}function Zpe(e,t,n){return n===void 0&&(n=1/0),So(t)?Zpe(function(r,i){return Oa(function(o,s){return t(r,o,i,s)})(cE(e(r,i)))},n):(typeof t=="number"&&(n=t),mb(function(r,i){return F7e(r,i,e,n)}))}function j7e(e){return Zpe(jpe,e)}function U7e(){return j7e(1)}function fj(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return U7e()(L7e(e,Upe(e)))}function S$(e,t){return mb(function(n,r){var i=0;n.subscribe(eC(r,function(o){return e.call(t,o,i++)&&r.next(o)}))})}function rl(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=Upe(e);return mb(function(r,i){(n?fj(e,r,n):fj(e,r)).subscribe(i)})}var B7e=Object.defineProperty,YX=Object.getOwnPropertySymbols,$7e=Object.prototype.hasOwnProperty,H7e=Object.prototype.propertyIsEnumerable,QX=(e,t,n)=>t in e?B7e(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,hj=(e,t)=>{for(var n in t||(t={}))$7e.call(t,n)&&QX(e,n,t[n]);if(YX)for(var n of YX(t))H7e.call(t,n)&&QX(e,n,t[n]);return e},Fv=(e,t,n)=>new Promise((r,i)=>{var o=c=>{try{a(n.next(c))}catch(l){i(l)}},s=c=>{try{a(n.throw(c))}catch(l){i(l)}},a=c=>c.done?r(c.value):Promise.resolve(c.value).then(o,s);a((n=n.apply(e,t)).next())}),eme="lk";function xa(e){return typeof e>"u"?!1:z7e(e)||V7e(e)}function z7e(e){var t;return e?e.hasOwnProperty("participant")&&e.hasOwnProperty("source")&&e.hasOwnProperty("track")&&typeof((t=e.publication)==null?void 0:t.track)<"u":!1}function V7e(e){return e?e.hasOwnProperty("participant")&&e.hasOwnProperty("source")&&e.hasOwnProperty("publication")&&typeof e.publication<"u":!1}function nC(e){return e?e.hasOwnProperty("participant")&&e.hasOwnProperty("source")&&typeof e.publication>"u":!1}function Ws(e){if(typeof e=="string"||typeof e=="number")return`${e}`;if(nC(e))return`${e.participant.identity}_${e.source}_placeholder`;if(xa(e))return`${e.participant.identity}_${e.publication.source}_${e.publication.trackSid}`;throw new Error(`Can't generate a id for the given track reference: ${e}`)}function tme(e,t){return typeof t>"u"?!1:xa(e)?t.some(n=>n.participant.identity===e.participant.identity&&xa(n)&&n.publication.trackSid===e.publication.trackSid):nC(e)?t.some(n=>n.participant.identity===e.participant.identity&&nC(n)&&n.source===e.source):!1}function W7e(e,t){return nC(e)&&xa(t)&&t.participant.identity===e.participant.identity&&t.source===e.source}function q7e(e,t,n){return Gje(e,t,()=>Fv(this,null,function*(){const{x:r,y:i}=yield Xje(e,t,{placement:"top",middleware:[Kje(6),Qje(),Yje({padding:5})]});n==null||n(r,i)}))}function G7e(e,t){return!e.contains(t.target)}var K7e=[Ne.ConnectionStateChanged,Ne.RoomMetadataChanged,Ne.ActiveSpeakersChanged,Ne.ConnectionQualityChanged,Ne.ParticipantConnected,Ne.ParticipantDisconnected,Ne.ParticipantPermissionsChanged,Ne.ParticipantMetadataChanged,Ne.ParticipantNameChanged,Ne.ParticipantAttributesChanged,Ne.TrackMuted,Ne.TrackUnmuted,Ne.TrackPublished,Ne.TrackUnpublished,Ne.TrackStreamStateChanged,Ne.TrackSubscriptionFailed,Ne.TrackSubscriptionPermissionChanged,Ne.TrackSubscriptionStatusChanged],nme=[...K7e,Ne.LocalTrackPublished,Ne.LocalTrackUnpublished],Y7e=[je.TrackPublished,je.TrackUnpublished,je.TrackMuted,je.TrackUnmuted,je.TrackStreamStateChanged,je.TrackSubscribed,je.TrackUnsubscribed,je.TrackSubscriptionPermissionChanged,je.TrackSubscriptionFailed,je.LocalTrackPublished,je.LocalTrackUnpublished],Q7e=[je.ConnectionQualityChanged,je.IsSpeakingChanged,je.ParticipantMetadataChanged,je.ParticipantPermissionsChanged,je.TrackMuted,je.TrackUnmuted,je.TrackPublished,je.TrackUnpublished,je.TrackStreamStateChanged,je.TrackSubscriptionFailed,je.TrackSubscriptionPermissionChanged,je.TrackSubscriptionStatusChanged];[...Q7e,je.LocalTrackPublished,je.LocalTrackUnpublished];var Hn=t7e.getLogger("lk-components-js");Hn.setDefaultLevel("WARN");function rme(e){return typeof e=="object"}function ime(e){return Array.isArray(e)&&e.filter(rme).length>0}function X7e(e,t){return t.audioLevel-e.audioLevel}function J7e(e,t){return e.isSpeaking===t.isSpeaking?0:e.isSpeaking?-1:1}function Z7e(e,t){var n,r,i,o;return e.lastSpokeAt!==void 0||t.lastSpokeAt!==void 0?((r=(n=t.lastSpokeAt)==null?void 0:n.getTime())!=null?r:0)-((o=(i=e.lastSpokeAt)==null?void 0:i.getTime())!=null?o:0):0}function pj(e,t){var n,r,i,o;return((r=(n=e.joinedAt)==null?void 0:n.getTime())!=null?r:0)-((o=(i=t.joinedAt)==null?void 0:i.getTime())!=null?o:0)}function e9e(e,t){return xa(e)?xa(t)?0:-1:xa(t)?1:0}function t9e(e,t){const n=e.participant.isCameraEnabled,r=t.participant.isCameraEnabled;return n!==r?n?-1:1:0}function n9e(e){const t=[],n=[],r=[],i=[];e.forEach(a=>{a.participant.isLocal&&a.source===Re.Source.Camera?t.push(a):a.source===Re.Source.ScreenShare?n.push(a):a.source===Re.Source.Camera?r.push(a):i.push(a)});const o=r9e(n),s=i9e(r);return[...t,...o,...s,...i]}function r9e(e){const t=[],n=[];return e.forEach(r=>{r.participant.isLocal?t.push(r):n.push(r)}),t.sort((r,i)=>pj(r.participant,i.participant)),n.sort((r,i)=>pj(r.participant,i.participant)),[...n,...t]}function i9e(e){const t=[],n=[];return e.forEach(r=>{r.participant.isLocal?t.push(r):n.push(r)}),n.sort((r,i)=>r.participant.isSpeaking&&i.participant.isSpeaking?X7e(r.participant,i.participant):r.participant.isSpeaking!==i.participant.isSpeaking?J7e(r.participant,i.participant):r.participant.lastSpokeAt!==i.participant.lastSpokeAt?Z7e(r.participant,i.participant):xa(r)!==xa(i)?e9e(r,i):r.participant.isCameraEnabled!==i.participant.isCameraEnabled?t9e(r,i):pj(r.participant,i.participant)),[...t,...n]}function o9e(e,t){return e.reduce((n,r,i)=>i%t===0?[...n,[r]]:[...n.slice(0,-1),[...n.slice(-1)[0],r]],[])}function XX(e,t){const n=Math.max(e.length,t.length);return new Array(n).fill([]).map((r,i)=>[e[i],t[i]])}function cI(e,t,n){return e.filter(r=>!t.map(i=>n(i)).includes(n(r)))}function mj(e){return e.map(t=>typeof t=="string"||typeof t=="number"?`${t}`:Ws(t))}function s9e(e,t){return{dropped:cI(e,t,Ws),added:cI(t,e,Ws)}}function a9e(e){return e.added.length!==0||e.dropped.length!==0}function gj(e,t){const n=t.findIndex(r=>Ws(r)===Ws(e));if(n===-1)throw new Error(`Element not part of the array: ${Ws(e)} not in ${mj(t)}`);return n}
424function c9e(e,t,n){const r=gj(e,n),i=gj(t,n);return n.splice(r,1,t),n.splice(i,1,e),n}function l9e(e,t){const n=gj(e,t);return t.splice(n,1),t}function u9e(e,t){return[...t,e]}function NM(e,t){return o9e(e,t)}function d9e(e,t,n){let r=f9e(e,t);if(r.length<t.length){const s=cI(t,r,Ws);r=[...r,...s]}const i=NM(r,n),o=NM(t,n);if(XX(i,o).forEach(([s,a],c)=>{if(s&&a){const l=NM(r,n)[c],u=s9e(l,a);a9e(u)&&(Hn.debug(`Detected visual changes on page: ${c}, current: ${mj(s)}, next: ${mj(a)}`,{changes:u}),u.added.length===u.dropped.length&&XX(u.added,u.dropped).forEach(([d,f])=>{if(d&&f)r=c9e(d,f,r);else throw new Error(`For a swap action we need a addition and a removal one is missing: ${d}, ${f}`)}),u.added.length===0&&u.dropped.length>0&&u.dropped.forEach(d=>{r=l9e(d,r)}),u.added.length>0&&u.dropped.length===0&&u.added.forEach(d=>{r=u9e(d,r)}))}}),r.length>t.length){const s=cI(r,t,Ws);r=r.filter(a=>!s.map(Ws).includes(Ws(a)))}return r}function f9e(e,t){return e.map(n=>t.find(i=>Ws(n)===Ws(i)||typeof n!="number"&&nC(n)&&xa(i)&&W7e(n,i))??n)}function th(e){return`${eme}-${e}`}function h9e(e){const t=vj(e),n=_$(e.participant).pipe(Oa(()=>vj(e)),rl(t));return{className:th(e.source===Re.Source.Camera||e.source===Re.Source.ScreenShare?"participant-media-video":"participant-media-audio"),trackObserver:n}}function vj(e){if(xa(e))return e.publication;{const{source:t,name:n,participant:r}=e;if(t&&n)return r.getTrackPublications().find(i=>i.source===t&&i.trackName===n);if(n)return r.getTrackPublicationByName(n);if(t)return r.getTrackPublication(t);throw new Error("At least one of source and name needs to be defined")}}function ome(e,...t){return new Co(n=>{const r=()=>{n.next(e)};return t.forEach(i=>{e.on(i,r)}),()=>{t.forEach(i=>{e.off(i,r)})}}).pipe(rl(e))}function uP(e,t){return new Co(n=>{const r=(...i)=>{n.next(i)};return e.on(t,r),()=>{e.off(t,r)}})}function p9e(e){return uP(e,Ne.ConnectionStateChanged).pipe(Oa(([t])=>t),rl(e.state))}function m9e(e,t,n=!0){const r=new Co(o=>{eh.getLocalDevices(e,n).then(s=>{o.next(s),o.complete()}).catch(s=>{t==null||t(s),o.next([]),o.complete()})}),i=new Co(o=>{var s;const a=()=>Fv(this,null,function*(){try{const c=yield eh.getLocalDevices(e,n);o.next(c)}catch(c){t==null||t(c)}});if(typeof window<"u"){if(!window.isSecureContext)throw new Error("Accessing media devices is available only in secure contexts (HTTPS and localhost), in some or all supporting browsers. See: https://developer.mozilla.org/en-US/docs/Web/API/Navigator/mediaDevices");(s=navigator==null?void 0:navigator.mediaDevices)==null||s.addEventListener("devicechange",a)}return()=>{var c;(c=navigator==null?void 0:navigator.mediaDevices)==null||c.removeEventListener("devicechange",a)}});return fj(r,i)}function g9e(e){return uP(e,Ne.DataReceived)}function v9e(e,t){return uP(e,Ne.ActiveDeviceChanged).pipe(S$(([n])=>n===t),Oa(([n,r])=>(Hn.debug("activeDeviceObservable | RoomEvent.ActiveDeviceChanged",{kind:n,deviceId:r}),r)))}function y9e(e,t){return uP(e,Ne.ParticipantEncryptionStatusChanged).pipe(S$(([,n])=>(t==null?void 0:t.identity)===(n==null?void 0:n.identity)||!n&&(t==null?void 0:t.identity)===e.localParticipant.identity),Oa(([n])=>n),rl(t!=null&&t.isLocal?t.isE2EEEnabled:!!(t!=null&&t.isEncrypted)))}function dP(e,...t){return new Co(n=>{const r=()=>{n.next(e)};return t.forEach(i=>{e.on(i,r)}),()=>{t.forEach(i=>{e.off(i,r)})}}).pipe(rl(e))}function _$(e){return dP(e,je.TrackMuted,je.TrackUnmuted,je.ParticipantPermissionsChanged,je.TrackPublished,je.TrackUnpublished,je.LocalTrackPublished,je.LocalTrackUnpublished,je.MediaDevicesError,je.TrackSubscriptionStatusChanged).pipe(Oa(t=>{const{isMicrophoneEnabled:n,isCameraEnabled:r,isScreenShareEnabled:i}=t,o=t.getTrackPublication(Re.Source.Microphone),s=t.getTrackPublication(Re.Source.Camera);return{isCameraEnabled:r,isMicrophoneEnabled:n,isScreenShareEnabled:i,cameraTrack:s,microphoneTrack:o,participant:t}}))}function b9e(e){return e?dP(e,je.ParticipantMetadataChanged,je.ParticipantNameChanged).pipe(Oa(({name:t,identity:n,metadata:r})=>({name:t,identity:n,metadata:r})),rl({name:e.name,identity:e.identity,metadata:e.metadata})):void 0}function w9e(e){return sme(e,je.ConnectionQualityChanged).pipe(Oa(([t])=>t),rl(e.connectionQuality))}function sme(e,t){return new Co(n=>{const r=(...i)=>{n.next(i)};return e.on(t,r),()=>{e.off(t,r)}})}function ame(e){var t,n,r,i;return dP(e.participant,je.TrackMuted,je.TrackUnmuted,je.TrackSubscribed,je.TrackUnsubscribed,je.LocalTrackPublished,je.LocalTrackUnpublished).pipe(Oa(o=>{var s,a;const c=(s=e.publication)!=null?s:o.getTrackPublication(e.source);return(a=c==null?void 0:c.isMuted)!=null?a:!0}),rl((i=(r=(t=e.publication)==null?void 0:t.isMuted)!=null?r:(n=e.participant.getTrackPublication(e.source))==null?void 0:n.isMuted)!=null?i:!0))}function S9e(e){return sme(e,je.IsSpeakingChanged).pipe(Oa(([t])=>t))}function _9e(e,t={}){var n;let r;const i=new Co(c=>(r=c,()=>a.unsubscribe())).pipe(rl(Array.from(e.remoteParticipants.values())
424)),o=(n=t.additionalRoomEvents)!=null?n:nme,s=Array.from(new Set([Ne.ParticipantConnected,Ne.ParticipantDisconnected,Ne.ConnectionStateChanged,...o])),a=ome(e,...s).subscribe(c=>r==null?void 0:r.next(Array.from(c.remoteParticipants.values())));return e.remoteParticipants.size>0&&(r==null||r.next(Array.from(e.remoteParticipants.values()))),i}function C9e(e,t,n,r,i){const{localParticipant:o}=t,s=(u,d)=>{let f=!1;switch(u){case Re.Source.Camera:f=d.isCameraEnabled;break;case Re.Source.Microphone:f=d.isMicrophoneEnabled;break;case Re.Source.ScreenShare:f=d.isScreenShareEnabled;break}return f},a=_$(o).pipe(Oa(u=>s(e,u.participant)),rl(s(e,o))),c=new tC,l=(u,d)=>Fv(this,null,function*(){try{switch(d??(d=n),c.next(!0),e){case Re.Source.Camera:return yield o.setCameraEnabled(u??!o.isCameraEnabled,d,r),o.isCameraEnabled;case Re.Source.Microphone:return yield o.setMicrophoneEnabled(u??!o.isMicrophoneEnabled,d,r),o.isMicrophoneEnabled;case Re.Source.ScreenShare:return yield o.setScreenShareEnabled(u??!o.isScreenShareEnabled,d,r),o.isScreenShareEnabled;default:throw new TypeError("Tried to toggle unsupported source")}}catch(f){if(i&&f instanceof Error){i==null||i(f);return}else throw f}finally{c.next(!1)}});return{className:th("button"),toggle:l,enabledObserver:a,pendingObserver:c.asObservable()}}function E9e(){let e=!1;const t=new tC,n=new tC,r=i=>Fv(this,null,function*(){n.next(!0),e=i??!e,t.next(e),n.next(!1)});return{className:th("button"),toggle:r,enabledObserver:t.asObservable(),pendingObserver:n.asObservable()}}function T9e(e,t,n){const r=new g7e(void 0),i=v9e(t,e),o=(s,...a)=>Fv(this,[s,...a],function*(c,l={}){var u,d,f;if(t){Hn.debug(`Switching active device of kind "${e}" with id ${c}.`),yield t.switchActiveDevice(e,c,l.exact);const p=(u=t.getActiveDevice(e))!=null?u:c;p!==c&&c!=="default"&&Hn.info(`We tried to select the device with id (${c}), but the browser decided to select the device with id (${p}) instead.`);let g;e==="audioinput"?g=(d=t.localParticipant.getTrackPublication(Re.Source.Microphone))==null?void 0:d.track:e==="videoinput"&&(g=(f=t.localParticipant.getTrackPublication(Re.Source.Camera))==null?void 0:f.track);const m=c==="default"&&!g||c==="default"&&(g==null?void 0:g.mediaStreamTrack.label.startsWith("Default"));r.next(m?c:p)}});return{className:th("media-device-select"),activeDeviceObservable:i,setActiveMediaDevice:o}}function k9e(e){const t=th("connection-quality"),n=w9e(e);return{className:t,connectionQualityObserver:n}}function x9e(e){let t="track-muted-indicator-camera";switch(e.source){case Re.Source.Camera:t="track-muted-indicator-camera";break;case Re.Source.Microphone:t="track-muted-indicator-microphone";break}const n=th(t),r=ame(e);return{className:n,mediaMutedObserver:r}}function A9e(e){return{className:"lk-participant-name",infoObserver:b9e(e)}}function I9e(){return{className:th("participant-tile")}}function R9e(e,t){return Fv(this,arguments,function*(n,r,i={}){const{reliable:o,destinationIdentities:s,topic:a}=i;yield n.publishData(r,{destinationIdentities:s,topic:a,reliable:o})})}function P9e(e,t,n){const r=Array.isArray(t)?t:[t],i=g9e(e).pipe(S$(([,,,a])=>t===void 0||a!==void 0&&r.includes(a)),Oa(([a,c,,l])=>{const u={payload:a,topic:l,from:c};return n==null||n(u),u}));let o;const s=new Co(a=>{o=a});return{messageObservable:i,isSendingObservable:s,send:(a,...c)=>Fv(this,[a,...c],function*(l,u={}){o.next(!0);try{yield R9e(e.localParticipant,l,hj({topic:r[0]},u))}finally{o.next(!1)}})}}function O9e(){return{className:[th("button"),th("focus-toggle-button")].join(" ")}}function N9e(){return{className:"lk-room-container"}}function JX(e,t,n=!0){const r=[e.localParticipant,...Array.from(e.remoteParticipants.values())],i=[];return r.forEach(o=>{t.forEach(s=>{const a=Array.from(o.trackPublications.values()).filter(c=>c.source===s&&(!n||c.track)).map(c=>({participant:o,publication:c,source:c.source}));i.push(...a)})}),{trackReferences:i,participants:r}}function ZX(e,t,n=!1){const{sources:r,kind:i,name:o}=t;return Array.from(e.trackPublications.values()).filter(s=>(!r||r.includes(s.source))&&(!i||s.kind===i)&&(!o||s.trackName===o)&&(!n||s.track)).map(s=>({participant:e,publication:s,source:s.source}))}function M9e(e,t,n){var r,i;const o=(r=n.additionalRoomEvents)!=null?r:nme,s=(i=n.onlySubscribed)!=null?i:!0,a=Array.from(new Set([Ne.ParticipantConnected,Ne.ParticipantDisconnected,Ne.ConnectionStateChanged,Ne.LocalTrackPublished,Ne.LocalTrackUnpublished,Ne.TrackPublished,Ne.TrackUnpublished,Ne.TrackSubscriptionStatusChanged,...o]).values());return ome(e,...a).pipe(Oa(c=>{const l=JX(c,t,s);return Hn.debug(`TrackReference[] was updated. (length ${l.trackReferences.length})`,l),l}
424),rl(JX(e,t,s)))}function D9e(e,t){return dP(e,...Y7e).pipe(Oa(n=>{const r=ZX(n,t);return Hn.debug(`TrackReference[] was updated. (length ${r.length})`,r),r}),rl(ZX(e,t)))}function L9e(e,t){if(typeof localStorage>"u"){Hn.error("Local storage is not available.");return}try{if(t){const n=Object.fromEntries(Object.entries(t).filter(([,r])=>r!==""));localStorage.setItem(e,JSON.stringify(n))}}catch(n){Hn.error(`Error setting item to local storage: ${n}`)}}function F9e(e){if(typeof localStorage>"u"){Hn.error("Local storage is not available.");return}try{const t=localStorage.getItem(e);if(!t){Hn.warn(`Item with key ${e} does not exist in local storage.`);return}return JSON.parse(t)}catch(t){Hn.error(`Error getting item from local storage: ${t}`);return}}function j9e(e){return{load:()=>F9e(e),save:t=>L9e(e,t)}}var U9e=`${eme}-user-choices`,jw={videoEnabled:!0,audioEnabled:!0,videoDeviceId:"default",audioDeviceId:"default",username:""},{load:B9e,save:$9e}=j9e(U9e);function H9e(e,t=!1){t!==!0&&$9e(e)}function z9e(e,t=!1){var n,r,i,o,s;const a={videoEnabled:(n=e==null?void 0:e.videoEnabled)!=null?n:jw.videoEnabled,audioEnabled:(r=e==null?void 0:e.audioEnabled)!=null?r:jw.audioEnabled,videoDeviceId:(i=e==null?void 0:e.videoDeviceId)!=null?i:jw.videoDeviceId,audioDeviceId:(o=e==null?void 0:e.audioDeviceId)!=null?o:jw.audioDeviceId,username:(s=e==null?void 0:e.username)!=null?s:jw.username};if(t)return a;{const c=B9e();return hj(hj({},a),c??{})}}const cme=b.createContext(void 0);function lme(){return b.useContext(cme)}const ume=b.createContext(void 0);function fP(){return b.useContext(ume)}function gb(e){const t=fP(),n=e??t;if(!n)throw new Error("No TrackRef, make sure you are inside a TrackRefContext or pass the TrackRef explicitly");return n}const dme=b.createContext(void 0);function C$(){return b.useContext(dme)}function lE(e){const t=C$(),n=fP(),r=e??t??(n==null?void 0:n.participant);if(!r)throw new Error("No participant provided, make sure you are inside a participant context or pass the participant explicitly");return r}const E$=b.createContext(void 0);function bh(){const e=b.useContext(E$);if(!e)throw Error("tried to access room context outside of livekit room component");return e}function hP(){return b.useContext(E$)}function uE(e){const t=hP(),n=e??t;if(!n)throw new Error("No room provided, make sure you are inside a Room context or pass the room explicitly");return n}const fme=b.createContext(void 0);function V9e(e){return b.useContext(fme)}function hme(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=hme(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function W9e(){for(var e,t,n=0,r="",i=arguments.length;n<i;n++)(e=arguments[n])&&(t=hme(e))&&(r&&(r+=" "),r+=t);return r}function q9e(...e){return(...t)=>{for(const n of e)if(typeof n=="function")try{n(...t)}catch(r){console.error(r)}}}function dE(...e){const t={...e[0]};for(let n=1;n<e.length;n++){const r=e[n];for(const i in r){const o=t[i],s=r[i];typeof o=="function"&&typeof s=="function"&&i[0]==="o"&&i[1]==="n"&&i.charCodeAt(2)>=65&&i.charCodeAt(2)<=90?t[i]=q9e(o,s):(i==="className"||i==="UNSAFE_className")&&typeof o=="string"&&typeof s=="string"?t[i]=W9e(o,s):t[i]=s!==void 0?s:o}}return t}function G9e(e){return e!==void 0}function fE(...e){return dE(...e.filter(G9e))}function pme(e,t){return e==="processor"&&t&&typeof t=="object"&&"name"in t?t.name:e==="e2ee"&&t?"e2ee-enabled":t}const K9e={connect:!0,audio:!1,video:!1};function Y9e(e){const{token:t,serverUrl:n,options:r,room:i,connectOptions:o,connect:s,audio:a,video:c,screen:l,onConnected:u,onDisconnected:d,onError:f,onMediaDeviceFailure:p,onEncryptionError:g,simulateParticipants:m,...y}={...K9e,...e};r&&i&&Hn.warn("when using a manually created room, the options object will be ignored. set the desired options directly when creating the room instead.");const[v,w]=b.useState(),S=b.useRef(s);b.useEffect(()=>{w(i??new eh(r))},[i,JSON.stringify(r,pme)]);const C=b.useMemo(()=>{const{className:E}=N9e();return dE(y,{className:E})},[y]);return b.useEffect(()=>{if(!v)return;const E=()=>{const L=v.localParticipant;Hn.debug("trying to publish local tracks"),Promise.all([L.setMicrophoneEnabled(!!a,typeof a!="boolean"?a:void 0),L.setCameraEnabled(!!c,typeof c!="boolean"?c:void 0),L.setScreenShareEnabled(!!l,typeof l!="boolean"?l:void 0)]).catch(U=>{Hn.warn(U),f==null||f(U)})},T=(L,U)=>{const I=Q_.getFailure(L);p==null||p(I,U)},x=L=>
424{g==null||g(L)},O=L=>{d==null||d(L)},A=()=>{u==null||u()};return v.on(Ne.SignalConnected,E).on(Ne.MediaDevicesError,T).on(Ne.EncryptionError,x).on(Ne.Disconnected,O).on(Ne.Connected,A),()=>{v.off(Ne.SignalConnected,E).off(Ne.MediaDevicesError,T).off(Ne.EncryptionError,x).off(Ne.Disconnected,O).off(Ne.Connected,A)}},[v,a,c,l,f,g,p,u,d]),b.useEffect(()=>{if(v){if(m){v.simulateParticipants({participants:{count:m},publish:{audio:!0,useRealTracks:!0}});return}if(s){if(S.current=!0,Hn.debug("connecting"),!t){Hn.debug("no token yet");return}if(!n){Hn.warn("no livekit url provided"),f==null||f(Error("no livekit url provided"));return}v.connect(n,t,o).catch(E=>{Hn.warn(E),S.current===!0&&(f==null||f(E))})}else Hn.debug("disconnecting because connect is false"),S.current=!1,v.disconnect()}},[s,t,JSON.stringify(o),v,f,n,m]),b.useEffect(()=>{if(v)return()=>{Hn.info("disconnecting on onmount"),v.disconnect()}},[v]),{room:v,htmlProps:C}}const vb=b.forwardRef(function(e,t){const{room:n,htmlProps:r}=Y9e(e);return b.createElement("div",{ref:t,...r},n&&b.createElement(E$.Provider,{value:n},b.createElement(fme.Provider,{value:e.featureFlags},e.children)))});function Yc(e,t,n=!0){const[r,i]=b.useState(t);return b.useEffect(()=>{if(n&&i(t),typeof window>"u"||!e)return;const o=e.subscribe(i);return()=>o.unsubscribe()},[e,n]),r}function Q9e(e={}){const t=lE(e.participant),{className:n,connectionQualityObserver:r}=b.useMemo(()=>k9e(t),[t]),i=Yc(r,t.connectionQuality);return{className:n,quality:i}}function pP(e){const t=uE(e),n=b.useMemo(()=>p9e(t),[t]);return Yc(n,t.state)}function hE(e,t){const n=typeof e=="function"?e:t,r=typeof e=="string"?e:void 0,i=bh(),{send:o,messageObservable:s,isSendingObservable:a}=b.useMemo(()=>P9e(i,r,n),[i,r,n]),c=Yc(s,void 0),l=Yc(a,!1);return{message:c,send:o,isSending:l}}function X9e(e){if(e.publication instanceof JA){const t=e.publication.track;if(t){const{facingMode:n}=hje(t);return n}}return"undefined"}function J9e({trackRef:e,props:t}){const n=gb(e),r=lme(),{className:i}=b.useMemo(()=>O9e(),[]),o=b.useMemo(()=>tme(n,r==null?void 0:r.pin.state),[n,r==null?void 0:r.pin.state]);return{mergedProps:b.useMemo(()=>dE(t,{className:i,onClick:s=>{var a,c,l,u,d;(a=t.onClick)==null||a.call(t,s),o?(l=r==null?void 0:(c=r.pin).dispatch)==null||l.call(c,{msg:"clear_pin"}):(d=r==null?void 0:(u=r.pin).dispatch)==null||d.call(u,{msg:"set_pin",trackReference:n})}}),[t,i,n,o,r==null?void 0:r.pin]),inFocus:o}}function eJ(e,t={}){var n,r;const i=typeof e=="string"?t.participant:e.participant,o=lE(i),s=typeof e=="string"?{participant:o,source:e}:e,[a,c]=b.useState(!!((n=s.publication)!=null&&n.isMuted||(r=o.getTrackPublication(s.source))!=null&&r.isMuted));return b.useEffect(()=>{const l=ame(s).subscribe(c);return()=>l.unsubscribe()},[Ws(s)]),a}function Z9e(e){const t=lE(e),n=b.useMemo(()=>S9e(t),[t]);return Yc(n,t.isSpeaking)}function wh(e={}){const t=uE(e.room),[n,r]=b.useState(t.localParticipant),[i,o]=b.useState(n.isMicrophoneEnabled),[s,a]=b.useState(n.isCameraEnabled),[c,l]=b.useState(n.isScreenShareEnabled),[u,d]=b.useState(n.lastMicrophoneError),[f,p]=b.useState(n.lastCameraError),[g,m]=b.useState(void 0),[y,v]=b.useState(void 0),w=S=>{a(S.isCameraEnabled),o(S.isMicrophoneEnabled),l(S.isScreenShareEnabled),v(S.cameraTrack),m(S.microphoneTrack),d(S.participant.lastMicrophoneError),p(S.participant.lastCameraError),r(S.participant)};return b.useEffect(()=>{const S=_$(t.localParticipant).subscribe(w);return()=>S.unsubscribe()},[t]),{isMicrophoneEnabled:i,isScreenShareEnabled:c,isCameraEnabled:s,microphoneTrack:g,cameraTrack:y,lastMicrophoneError:u,lastCameraError:f,localParticipant:n}}function T$({kind:e,room:t,track:n,requestPermissions:r,onError:i}){const o=hP(),s=b.useMemo(()=>t??o??new eh,[t,o]),a=b.useMemo(()=>m9e(e,i,r),[e,r,i]),c=Yc(a,[]),[l,u]=b.useState((s==null?void 0:s.getActiveDevice(e))??"default"),{className:d,activeDeviceObservable:f,setActiveMediaDevice:p}=b.useMemo(()=>T9e(e,s),[e,s,n]);return b.useEffect(()=>{const g=f.subscribe(m=>{m&&(Hn.info("setCurrentDeviceId",m),u(m))});return()=>{g==null||g.unsubscribe()}},[f]),{devices:c,className:d,activeDeviceId:l,setActiveMediaDevice:p}}function eUe(e,t,n={}){const r=b.useRef([]),i=b.useRef(-1),o=t!==i.current,s=typeof n.customSortFunction=="function"?n.customSortFunction(e):n9e(e);let a=[...s];if(o===!1)try{a=d9e(r.current,s,t)}catch(c){Hn.error("Error while running updatePages(): ",c)}return o?r.current=s:r.current=a,i.current=t,a}function tUe(e,t){const[n,r]=b.useState(1),i=Math.max(Math.ceil(t.length/e),1);n>i&&r(i);const o=n*e,s=o-e,a=u=>{r(d=>u==="next"?d===i?d:d+1:d===1?d:d-1)},c=u=>{u>i?r(i):u<1?r(1):r(u)},l=eUe(t,e).slice(s,o);return{totalPageCount:i,nextPage:()=>a("next"),prevPage:()=>a("previous"),setPage:c,firstItemIndex:s,lastItemIndex:o,tracks:l,currentPage:n}}function nUe({trackRef:e,onParticipantClick:t,disableSpeakingIndicator:n,htmlProps:r}){const i=gb(e),o=b.useMemo(()=>{const{className:f}=I9e();return dE(r,{className:f,onClick:p=>{var g;if((g=r.onClick)==null||g.call(r,p),typeof t=="function"){const m=i.publication??i.participant.getTrackPublication(i.source);t({participant:i.participant,track:m})}}})},[r,t,i.publication,i.source,i.participant]),s=i.participant.getTrackPublication(Re.Source.Microphone),a=b.useMemo(()=>({participant:i.participant,source:Re.Source.Microphone,publication:s}),[s,i.participant]),c=eJ(i),l=eJ(a),u=Z9e(i.participant),d=X9e(i);return{elementProps:{"data-lk-audio-muted":l,"data-lk-video-muted":c,"data-lk-speaking":n===!0?!1:u,"data-lk-local-participant":i.participant.isLocal,"data-lk-source":i.source,"data-lk-facing-mode":d,...o}}}function pE(e={}){const t=uE(e.room),[n,r]=b.useState([]);return b.useEffect(()=>{const i=_9e(t,{additionalRoomEvents:e.updateOnlyOn}).subscribe(r);return()=>i.unsubscribe()},[t,JSON.stringify(e.updateOnlyOn)]),n}function mme(e={}){const t=pE(e),{localParticipant:n}=wh(e);return b.useMemo(()=>[n,...t],[n,t])}function rUe(e){var t,n;const r=gb(e),{className:i,mediaMutedObserver:o}=b.useMemo(()=>x9e(r),[Ws(r)]);return{isMuted:Yc(o,!!((t=r.publication)!=null&&t.isMuted||(n=r.participant.getTrackPublication(r.source))!=null&&n.isMuted)),className:i}}function iUe({source:e,onChange:t,initialState:n,captureOptions:r,publishOptions:i,onDeviceError:o,...s}){var a;const c=hP(),l=(a=c==null?void 0:c.localParticipant)==null?void 0:a.getTrackPublication(e),u=b.useRef(!1),{toggle:d,className:f,pendingObserver:p,enabledObserver:g}=b.useMemo(()=>c?C9e(e,c,r,i,o):E9e(),[c,e,JSON.stringify(r),i]),m=Yc(p,!1),y=Yc(g,n??!!(l!=null&&l.isEnabled));b.useEffect(()=>{t==null||t(y,u.current),u.current=!1},[y,t]),b.useEffect(()=>{n!==void 0&&(Hn.debug("forcing initial toggle state",e,n),d(n))},[]);const v=b.useMemo(()=>dE(s,{className:f}),[s,f]),w=b.useCallback(S=>{var C;u.current=!0,d().catch(()=>u.current=!1),(C=s.onClick)==null||C.call(s,S)},[s,d]);return{toggle:d,enabled:y,pending:m,track:l,buttonProps:{...v,"aria-pressed":y,"data-lk-source":e,"data-lk-enabled":y,disabled:m,onClick:w}}}function f1(e=[Re.Source.Camera,Re.Source.Microphone,Re.Source.ScreenShare,Re.Source.ScreenShareAudio,Re.Source.Unknown],t={}){const n=uE(t.room),[r,i]=b.useState([]),[o,s]=b.useState([]),a=b.useMemo(()=>e.map(c=>rme(c)?c.source:c),[JSON.stringify(e)]);return b.useEffect(()=>{const c=M9e(n,a,{additionalRoomEvents:t.updateOnlyOn,onlySubscribed:t.onlySubscribed}).subscribe(({trackReferences:l,participants:u})=>{Hn.debug("setting track bundles",l,u),i(l),s(u)});return()=>c.unsubscribe()},[n,JSON.stringify(t.onlySubscribed),JSON.stringify(t.updateOnlyOn),JSON.stringify(e)]),b.useMemo(()=>
424{if(ime(e)){const c=sUe(e,o),l=Array.from(r);return o.forEach(u=>{c.has(u.identity)&&(c.get(u.identity)??[]).forEach(d=>{if(r.find(({participant:p,publication:g})=>u.identity===p.identity&&g.source===d))return;Hn.debug(`Add ${d} placeholder for participant ${u.identity}.`);const f={participant:u,source:d};l.push(f)})}),l}else return r},[r,o,e])}function oUe(e,t){const n=new Set(e);for(const r of t)n.delete(r);return n}function sUe(e,t){const n=new Map;if(ime(e)){const r=e.filter(i=>i.withPlaceholder).map(i=>i.source);t.forEach(i=>{const o=i.getTrackPublications().map(a=>{var c;return(c=a.track)==null?void 0:c.source}).filter(a=>a!==void 0),s=Array.from(oUe(new Set(r),new Set(o)));s.length>0&&n.set(i.identity,s)})}return n}function uv(e={}){const[t,n]=b.useState(z9e(e.defaults,e.preventLoad??!1)),r=b.useCallback(c=>{n(l=>({...l,audioEnabled:c}))},[]),i=b.useCallback(c=>{n(l=>({...l,videoEnabled:c}))},[]),o=b.useCallback(c=>{n(l=>({...l,audioDeviceId:c}))},[]),s=b.useCallback(c=>{n(l=>({...l,videoDeviceId:c}))},[]),a=b.useCallback(c=>{n(l=>({...l,username:c}))},[]);return b.useEffect(()=>{H9e(t,e.preventSave??!1)},[t,e.preventSave]),{userChoices:t,saveAudioInputEnabled:r,saveVideoInputEnabled:i,saveAudioInputDeviceId:o,saveVideoInputDeviceId:s,saveUsername:a}}function aUe(e,t={}){const n=lE(e),r=uE(t.room),i=b.useMemo(()=>y9e(r,n),[r,n]);return Yc(i,n.isLocal?n.isE2EEEnabled:!!(n!=null&&n.isEncrypted))}function cUe(e,t){const n=C$(),r=pE({updateOnlyOn:[]}),i=b.useMemo(()=>t?r.find(s=>s.identity===t):n,[t,r,n]),o=b.useMemo(()=>{if(i)return D9e(i,{sources:e})},[i,JSON.stringify(e)]);return Yc(o,[])}const lUe=e=>b.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"currentColor",...e},b.createElement("path",{d:"M1.354.646a.5.5 0 1 0-.708.708l14 14a.5.5 0 0 0 .708-.708L11 10.293V4.5A1.5 1.5 0 0 0 9.5 3H3.707zM0 4.5a1.5 1.5 0 0 1 .943-1.393l9.532 9.533c-.262.224-.603.36-.975.36h-8A1.5 1.5 0 0 1 0 11.5z"}),b.createElement("path",{d:"m15.2 3.6-2.8 2.1a1 1 0 0 0-.4.8v3a1 1 0 0 0 .4.8l2.8 2.1a.5.5 0 0 0 .8-.4V4a.5.5 0 0 0-.8-.4z"})),uUe=e=>b.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"currentColor",...e},b.createElement("path",{d:"M0 4.5A1.5 1.5 0 0 1 1.5 3h8A1.5 1.5 0 0 1 11 4.5v7A1.5 1.5 0 0 1 9.5 13h-8A1.5 1.5 0 0 1 0 11.5zM15.2 3.6l-2.8 2.1a1 1 0 0 0-.4.8v3a1 1 0 0 0 .4.8l2.8 2.1a.5.5 0 0 0 .8-.4V4a.5.5 0 0 0-.8-.4z"})),dUe=e=>b.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",...e},b.createElement("g",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5},b.createElement("path",{d:"M10 1.75h4.25m0 0V6m0-4.25L9 7M6 14.25H1.75m0 0V10m0 4.25L7 9"}))),fUe=e=>b.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",...e},b.createElement("path",{fill:"currentcolor",fillRule:"evenodd",d:"M4 6.104V4a4 4 0 1 1 8 0v2.104c1.154.326 2 1.387 2 2.646v4.5A2.75 2.75 0 0 1 11.25 16h-6.5A2.75 2.75 0 0 1 2 13.25v-4.5c0-1.259.846-2.32 2-2.646ZM5.5 4a2.5 2.5 0 0 1 5 0v2h-5V4Z",clipRule:"evenodd"})),hUe=e=>b.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"currentColor",...e},b.createElement("path",{d:"M12.227 11.52a5.477 5.477 0 0 0 1.246-2.97.5.5 0 0 0-.995-.1 4.478 4.478 0 0 1-.962 2.359l-1.07-1.07C10.794 9.247 11 8.647 11 8V3a3 3 0 0 0-6 0v1.293L1.354.646a.5.5 0 1 0-.708.708l14 14a.5.5 0 0 0 .708-.708zM8 12.5c.683 0 1.33-.152 1.911-.425l.743.743c-.649.359-1.378.59-2.154.66V15h2a.5.5 0 0 1 0 1h-5a.5.5 0 0 1 0-1h2v-1.522a5.502 5.502 0 0 1-4.973-4.929.5.5 0 0 1 .995-.098A4.5 4.5 0 0 0 8 12.5z"}),b.createElement("path",{d:"M8.743 10.907 5 7.164V8a3 3 0 0 0 3.743 2.907z"})),pUe=e=>b.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"currentColor",...e},b.createElement("path",{fillRule:"evenodd",d:"M2.975 8.002a.5.5 0 0 1 .547.449 4.5 4.5 0 0 0 8.956 0 .5.5 0 1 1 .995.098A5.502 5.502 0 0 1 8.5 13.478V15h2a.5.5 0 0 1 0 1h-5a.5.5 0 0 1 0-1h2v-1.522a5.502 5.502 0 0 1-4.973-4.929.5.5 0 0 1 .448-.547z",clipRule:"evenodd"}),b.createElement("path",{d:"M5 3a3 3 0 1 1 6 0v5a3 3 0 0 1-6 0z"})),mUe=e=>b.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"currentcolor",...e},b.createElement("path",{d:"M0 11.5a.5.5 0 0 1 .5-.5h3a.5.5 0 0 1 .5.5v4a.5.5 0 0 1-.5.5h-3a.5.5 0 0 1-.5-.5zm6-5a.5.5 0 0 1 .5-.5h3a.5.5 0 0 1 .5.5v9a.5.5 0 0 1-.5.5h-3a.5.5 0 0 1-.5-.5zm6-6a.5.5 0 0 1 .5-.5h3a.5.5 0 0 1 .5.5v15a.5.5 0 0 1-.5.5h-3a.5.5 0 0 1-.5-.5z"}),b.createElement("path",{d:"M0 11.5a.5.5 0 0 1 .5-.5h3a.5.5 0 0 1 .5.5v4a.5.5 0 0 1-.5.5h-3a.5.5 0 0 1-.5-.5zm6-5a.5.5 0 0 1 .5-.5h3a.5.5 0 0 1 .5.5v9a.5.5 0 0 1-.5.5h-3a.5.5 0 0 1-.5-.5zm6-6a.5.5 0 0 1 .5-.5h3a.5.5 0 0 1 .5.5v15a.5.5 0 0 1-.5.5h-3a.5.5 0 0 1-.5-.5z"})),gUe=e=>b.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"currentcolor",...e},b.createElement("path",{d:"M0 11.5a.5.5 0 0 1 .5-.5h3a.5.5 0 0 1 .5.5v4a.5.5 0 0 1-.5.5h-3a.5.5 0 0 1-.5-.5zm6-5a.5.5 0 0 1 .5-.5h3a.5.5 0 0 1 .5.5v9a.5.5 0 0 1-.5.5h-3a.5.5 0 0 1-.5-.5z"}),b.createElement("path",{d:"M0 11.5a.5.5 0 0 1 .5-.5h3a.5.5 0 0 1 .5.5v4a.5.5 0 0 1-.5.5h-3a.5.5 0 0 1-.5-.5zm6-5a.5.5 0 0 1 .5-.5h3a.5.5 0 0 1 .5.5v9a.5.5 0 0 1-.5.5h-3a.5.5 0 0 1-.5-.5z"}),b.createElement("g",{opacity:.25},b.createElement("path",{d:"M12 .5a.5.5 0 0 1 .5-.5h3a.5.5 0 0 1 .5.5v15a.5.5 0 0 1-.5.5h-3a.5.5 0 0 1-.5-.5z"}),b.createElement("path",{d:"M12 .5a.5.5 0 0 1 .5-.5h3a.5.5 0 0 1 .5.5v15a.5.5 0 0 1-.5.5h-3a.5.5 0 0 1-.5-.5z"}))),vUe=e=>b.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"currentcolor",...e},b.createElement("path",{d:"M0 11.5a.5.5 0 0 1 .5-.5h3a.5.5 0 0 1 .5.5v4a.5.5 0 0 1-.5.5h-3a.5.5 0 0 1-.5-.5z"}),b.createElement("path",{d:"M0 11.5a.5.5 0 0 1 .5-.5h3a.5.5 0 0 1 .5.5v4a.5.5 0 0 1-.5.5h-3a.5.5 0 0 1-.5-.5z"}),b.createElement("g",{opacity:.25},b.createElement("path",{d:"M6 6.5a.5.5 0 0 1 .5-.5h3a.5.5 0 0 1 .5.5v9a.5.5 0 0 1-.5.5h-3a.5.5 0 0 1-.5-.5z"}),b.createElement("path",{d:"M6 6.5a.5.5 0 0 1 .5-.5h3a.5.5 0 0 1 .5.5v9a.5.5 0 0 1-.5.5h-3a.5.5 0 0 1-.5-.5zm6-6a.5.5 0 0 1 .5-.5h3a.5.5 0 0 1 .5.5v15a.5.5 0 0 1-.5.5h-3a.5.5 0 0 1-.5-.5z"}),b.createElement("path",{d:"M12 .5a.5.5 0 0 1 .5-.5h3a.5.5 0 0 1 .5.5v15a.5.5 0 0 1-.5.5h-3a.5.5 0 0 1-.5-.5z"}))),yUe=e=>b.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"currentColor",...e},b.createElement("g",{opacity:.25},b.createElement("path",{d:"M0 11.5a.5.5 0 0 1 .5-.5h3a.5.5 0 0 1 .5.5v4a.5.5 0 0 1-.5.5h-3a.5.5 0 0 1-.5-.5v-4Zm6-5a.5.5 0 0 1 .5-.5h3a.5.5 0 0 1 .5.5v9a.5.5 0 0 1-.5.5h-3a.5.5 0 0 1-.5-.5v-9Zm6-6a.5.5 0 0 1 .5-.5h3a.5.5 0 0 1 .5.5v15a.5.5 0 0 1-.5.5h-3a.5.5 0 0 1-.5-.5V.5Z"}),b.createElement("path",{d:"M0 11.5a.5.5 0 0 1 .5-.5h3a.5.5 0 0 1 .5.5v4a.5.5 0 0 1-.5.5h-3a.5.5 0 0 1-.5-.5v-4Zm6-5a.5.5 0 0 1 .5-.5h3a.5.5 0 0 1 .5.5v9a.5.5 0 0 1-.5.5h-3a.5.5 0 0 1-.5-.5v-9Zm6-6a.5.5 0 0 1 .5-.5h3a.5.5 0 0 1 .5.5v15a.5.5 0 0 1-.5.5h-3a.5.5 0 0 1-.5-.5V.5Z"}))),gme=e=>b.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:20,height:16,fill:"none",...e},b.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M0 2.75A2.75 2.75 0 0 1 2.75 0h14.5A2.75 2.75 0 0 1 20 2.75v10.5A2.75 2.75 0 0 1 17.25 16H2.75A2.75 2.75 0 0 1 0 13.25V2.75ZM2.75 1.5c-.69 0-1.25.56-1.25 1.25v10.5c0 .69.56 1.25 1.25 1.25h14.5c.69 0 1.25-.56 1.25-1.25V2.75c0-.69-.56-1.25-1.25-1.25H2.75Z",clipRule:"evenodd"}),b.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M9.47 4.22a.75.75 0 0 1 1.06 0l2.25 2.25a.75.75 0 0 1-1.06 1.06l-.97-.97v4.69a.75.75 0 0 1-1.5 0V6.56l-.97.97a.75.75 0 0 1-1.06-1.06l2.25-2.25Z",clipRule:"evenodd"})),bUe=e=>b.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:20,height:16,fill:"none",...e},b.createElement("g",{fill:"currentColor"},b.createElement("path",{d:"M7.28 4.22a.75.75 0 0 0-1.06 1.06L8.94 8l-2.72 2.72a.75.75 0 1 0 1.06 1.06L10 9.06l2.72 2.72a.75.75 0 1 0 1.06-1.06L11.06 8l2.72-2.72a.75.75 0 0 0-1.06-1.06L10 6.94z"}),b.createElement("path",{fillRule:"evenodd",d:"M2.75 0A2.75 2.75 0 0 0 0 2.75v10.5A2.75 2.75 0 0 0 2.75 16h14.5A2.75 2.75 0 0 0 20 13.25V2.75A2.75 2.75 0 0 0 17.25 0zM1.5 2.75c0-.69.56-1.25 1.25-1.25h14.5c.69 0 1.25.56 1.25 1.25v10.5c0 .69-.56 1.25-1.25 1.25H2.75c-.69 0-1.25-.56-1.25-1.25z",clipRule:"evenodd"}))),wUe=e=>b.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",...e},b.createElement("g",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5},b.createElement("path",{d:"M13.25 7H9m0 0V2.75M9 7l5.25-5.25M2.75 9H7m0 0v4.25M7 9l-5.25 5.25"}))),SUe=b.forwardRef(function({trackRef:e,...t},n){const r=fP(),{mergedProps:i,inFocus:o}=J9e({trackRef:e??r,props:t});return b.createElement(cme.Consumer,null,s=>s!==void 0&&b.createElement("button",{ref:n,...i},t.children?t.children:o?b.createElement(wUe,null):b.createElement(dUe,null)))}),MM=b.forwardRef(function({kind:e,initialSelection:t,onActiveDeviceChange:n,onDeviceListChange:r,onDeviceSelectError:i,exactMatch:o,track:s,requestPermissions:a,onError:c,...l},u){const d=hP(),f=b.useRef("default"),p=b.useCallback(T=>{d&&d.emit(Ne.MediaDevicesError,T),c==null||c(T)},[d,c]),{devices:g,activeDeviceId:m,setActiveMediaDevice:y,className:v}=T$({kind:e,room:d,track:s,requestPermissions:a,onError:p});b.useEffect(()=>{t!==void 0&&y(t)},[y]),b.useEffect(()=>{typeof r=="function"&&r(g)}
424,[r,g]),b.useEffect(()=>{m!==f.current&&(n==null||n(m)),f.current=m},[m]);const w=async T=>{try{await y(T,{exact:o??!0})}catch(x){if(x instanceof Error)i==null||i(x);else throw x}},S=b.useMemo(()=>fE(l,{className:v},{className:"lk-list"}),[v,l]),C=!!g.find(T=>T.label.toLowerCase().startsWith("default"));function E(T,x,O){return T===x||!C&&O===0&&x==="default"}return b.createElement("ul",{ref:u,...S},g.map((T,x)=>b.createElement("li",{key:T.deviceId,id:T.deviceId,"data-lk-active":E(T.deviceId,m,x),"aria-selected":E(T.deviceId,m,x),role:"option"},b.createElement("button",{className:"lk-button",onClick:()=>w(T.deviceId)},T.label))))});function vme(e,t){switch(e){case Re.Source.Microphone:return t?b.createElement(pUe,null):b.createElement(hUe,null);case Re.Source.Camera:return t?b.createElement(uUe,null):b.createElement(lUe,null);case Re.Source.ScreenShare:return t?b.createElement(bUe,null):b.createElement(gme,null);default:return}}function _Ue(e){switch(e){case Bl.Excellent:return b.createElement(mUe,null);case Bl.Good:return b.createElement(gUe,null);case Bl.Poor:return b.createElement(vUe,null);default:return b.createElement(yUe,null)}}const mP=b.forwardRef(function({showIcon:e,...t},n){const{buttonProps:r,enabled:i}=iUe(t),[o,s]=b.useState(!1);return b.useEffect(()=>{s(!0)},[]),o&&b.createElement("button",{ref:n,...r},(e??!0)&&vme(t.source,i),t.children)}),CUe=b.forwardRef(function(e,t){const{className:n,quality:r}=Q9e(e),i=b.useMemo(()=>({...fE(e,{className:n}),"data-lk-quality":r}),[r,e,n]);return b.createElement("div",{ref:t,...i},e.children??_Ue(r))}),tJ=b.forwardRef(function({participant:e,...t},n){const r=lE(e),{className:i,infoObserver:o}=b.useMemo(()=>A9e(r),[r]),{identity:s,name:a}=Yc(o,{name:r.name,identity:r.identity,metadata:r.metadata}),c=b.useMemo(()=>fE(t,{className:i,"data-lk-participant-name":a}),[t,i,a]);return b.createElement("span",{ref:n,...c},a!==""?a:s,t.children)}),EUe=b.forwardRef(function({trackRef:e,show:t="always",...n},r){const{className:i,isMuted:o}=rUe(e),s=t==="always"||t==="muted"&&o||t==="unmuted"&&!o,a=b.useMemo(()=>fE(n,{className:i}),[i,n]);return s?b.createElement("div",{ref:r,...a,"data-lk-muted":o},n.children??vme(e.source,!o)):null}),TUe=e=>b.createElement("svg",{width:320,height:320,viewBox:"0 0 320 320",preserveAspectRatio:"xMidYMid meet",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},b.createElement("path",{d:"M160 180C204.182 180 240 144.183 240 100C240 55.8172 204.182 20 160 20C115.817 20 79.9997 55.8172 79.9997 100C79.9997 144.183 115.817 180 160 180Z",fill:"white",fillOpacity:.25}
vendor: 3,275 bytes, line 424
424),b.createElement("path",{d:"M97.6542 194.614C103.267 191.818 109.841 192.481 115.519 195.141C129.025 201.466 144.1 205 159.999 205C175.899 205 190.973 201.466 204.48 195.141C210.158 192.481 216.732 191.818 222.345 194.614C262.703 214.719 291.985 253.736 298.591 300.062C300.15 310.997 291.045 320 280 320H39.9997C28.954 320 19.8495 310.997 21.4087 300.062C28.014 253.736 57.2966 214.72 97.6542 194.614Z",fill:"white",fillOpacity:.25}));function yme(e,t={}){const[n,r]=b.useState(vj(e)),[i,o]=b.useState(n==null?void 0:n.isMuted),[s,a]=b.useState(n==null?void 0:n.isSubscribed),[c,l]=b.useState(n==null?void 0:n.track),[u,d]=b.useState("landscape"),f=b.useRef(),{className:p,trackObserver:g}=b.useMemo(()=>h9e(e),[e.participant.sid??e.participant.identity,e.source,xa(e)&&e.publication.trackSid]);return b.useEffect(()=>{const m=g.subscribe(y=>{Hn.debug("update track",y),r(y),o(y==null?void 0:y.isMuted),a(y==null?void 0:y.isSubscribed),l(y==null?void 0:y.track)});return()=>m==null?void 0:m.unsubscribe()},[g]),b.useEffect(()=>{var m,y;return c&&(f.current&&c.detach(f.current),(m=t.element)!=null&&m.current&&!(e.participant.isLocal&&(c==null?void 0:c.kind)==="audio")&&c.attach(t.element.current)),f.current=(y=t.element)==null?void 0:y.current,()=>{f.current&&(c==null||c.detach(f.current))}},[c,t.element]),b.useEffect(()=>{var m,y;if(typeof((m=n==null?void 0:n.dimensions)==null?void 0:m.width)=="number"&&typeof((y=n==null?void 0:n.dimensions)==null?void 0:y.height)=="number"){const v=n.dimensions.width>n.dimensions.height?"landscape":"portrait";d(v)}},[n]),{publication:n,isMuted:i,isSubscribed:s,track:c,elementProps:fE(t.props,{className:p,"data-lk-local-participant":e.participant.isLocal,"data-lk-source":n==null?void 0:n.source,...(n==null?void 0:n.kind)==="video"&&{"data-lk-orientation":u}})}}var DM,nJ;function kUe(){if(nJ)return DM;nJ=1;var e="Expected a function",t=NaN,n="[object Symbol]",r=/^\s+|\s+$/g,i=/^[-+]0x[0-9a-f]+$/i,o=/^0b[01]+$/i,s=/^0o[0-7]+$/i,a=parseInt,c=typeof bT=="object"&&bT&&bT.Object===Object&&bT,l=typeof self=="object"&&self&&self.Object===Object&&self,u=c||l||Function("return this")(),d=Object.prototype,f=d.toString,p=Math.max,g=Math.min,m=function(){return u.Date.now()};function y(E,T,x){var O,A,L,U,I,F,P=0,W=!1,ee=!1,Y=!0;if(typeof E!="function")throw new TypeError(e);T=C(T)||0,v(x)&&(W=!!x.leading,ee="maxWait"in x,L=ee?p(C(x.maxWait)||0,T):L,Y="trailing"in x?!!x.trailing:Y);function X(j){var B=O,re=A;return O=A=void 0,P=j,U=E.apply(re,B),U}function Z(j){return P=j,I=setTimeout(q,T),W?X(j):U}function G(j){var B=j-F,re=j-P,oe=T-B;return ee?g(oe,L-re):oe}function Q(j){var B=j-F,re=j-P;return F===void 0||B>=T||B<0||ee&&re>=L}function q(){var j=m();if(Q(j))return z(j);I=setTimeout(q,G(j))}function z(j){return I=void 0,Y&&O?X(j):(O=A=void 0,U)}function ue(){I!==void 0&&clearTimeout(I),P=0,O=F=A=I=void 0}function ge(){return I===void 0?U:z(m())}function ae(){var j=m(),B=Q(j);if(O=arguments,A=this,F=j,B){if(I===void 0)return Z(F);if(ee)return I=setTimeout(q,T),X(F)}return I===void 0&&(I=setTimeout(q,T)),U}return ae.cancel=ue,ae.flush=ge,ae}function v(E){var T=typeof E;return!!E&&(T=="object"||T=="function")}function w(E){return!!E&&typeof E=="object"}function S(E){return typeof E=="symbol"||w(E)&&f.call(E)==n}
424function C(E){if(typeof E=="number")return E;if(S(E))return t;if(v(E)){var T=typeof E.valueOf=="function"?E.valueOf():E;E=v(T)?T+"":T}if(typeof E!="string")return E===0?E:+E;E=E.replace(r,"");var x=o.test(E);return x||s.test(E)?a(E.slice(2),x?2:8):i.test(E)?t:+E}return DM=y,DM}var xUe=kUe();const rJ=Npe(xUe);function AUe(e){const t=b.useRef(e);t.current=e,b.useEffect(()=>()=>{t.current()},[])}function IUe(e,t=500,n){const r=b.useRef();AUe(()=>{r.current&&r.current.cancel()});const i=b.useMemo(()=>{const o=rJ(e,t,n),s=(...a)=>o(...a);return s.cancel=()=>{o.cancel()},s.isPending=()=>!!r.current,s.flush=()=>o.flush(),s},[e,t,n]);return b.useEffect(()=>{r.current=rJ(e,t,n)},[e,t,n]),i}function RUe(e,t,n){const r=(l,u)=>l===u,i=e instanceof Function?e():e,[o,s]=b.useState(i),a=b.useRef(i),c=IUe(s,t,n);return r(a.current,i)||(c(i),a.current=i),[o,c]}function PUe({threshold:e=0,root:t=null,rootMargin:n="0%",freezeOnceVisible:r=!1,initialIsIntersecting:i=!1,onChange:o}={}){var s;const[a,c]=b.useState(null),[l,u]=b.useState(()=>({isIntersecting:i,entry:void 0})),d=b.useRef();d.current=o;const f=((s=l.entry)==null?void 0:s.isIntersecting)&&r;b.useEffect(()=>{if(!a||!("IntersectionObserver"in window)||f)return;const m=new IntersectionObserver(y=>{const v=Array.isArray(m.thresholds)?m.thresholds:[m.thresholds];y.forEach(w=>{const S=w.isIntersecting&&v.some(C=>w.intersectionRatio>=C);u({isIntersecting:S,entry:w}),d.current&&d.current(S,w)})},{threshold:e,root:t,rootMargin:n});return m.observe(a),()=>{m.disconnect()}},[a,JSON.stringify(e),t,n,f,r]);const p=b.useRef(null);b.useEffect(()=>{var m;!a&&(m=l.entry)!=null&&m.target&&!r&&!f&&p.current!==l.entry.target&&(p.current=l.entry.target,u({isIntersecting:i,entry:void 0}))},[a,l.entry,r,f,i]);const g=[c,!!l.isIntersecting,l.entry];return g.ref=g[0],g.isIntersecting=g[1],g.entry=g[2],g}const OUe=b.forwardRef(function({onTrackClick:e,onClick:t,onSubscriptionStatusChanged:n,trackRef:r,manageSubscription:i,...o},s){const a=gb(r),c=b.useRef(null);b.useImperativeHandle(s,()=>c.current);const l=PUe({root:c.current}),[u]=RUe(l,3e3);b.useEffect(()=>{i&&a.publication instanceof ZA&&(u==null?void 0:u.isIntersecting)===!1&&(l==null?void 0:l.isIntersecting)===!1&&a.publication.setSubscribed(!1)},[u,a,i]),b.useEffect(()=>{i&&a.publication instanceof ZA&&(l==null?void 0:l.isIntersecting)===!0&&a.publication.setSubscribed(!0)},[l,a,i]);const{elementProps:d,publication:f,isSubscribed:p}=yme(a,{element:c,props:o});b.useEffect(()=>{n==null||n(!!p)},[p,n]);const g=m=>{t==null||t(m),e==null||e({participant:a==null?void 0:a.participant,track:f})};return b.createElement("video",{ref:c,...d,muted:!0,onClick:g})}),bme=b.forwardRef(function({trackRef:e,onSubscriptionStatusChanged:t,volume:n,...r},i){const o=gb(e),s=b.useRef(null);b.useImperativeHandle(i,()=>s.current);const{elementProps:a,isSubscribed:c,track:l,publication:u}=yme(o,{element:s,props:r});return b.useEffect(()=>{t==null||t(!!c)},[c,t]),b.useEffect(()=>{l===void 0||n===void 0||(l instanceof ype?l.setVolume(n):Hn.warn("Volume can only be set on remote audio tracks."))},[n,l]),b.useEffect(()=>{u===void 0||r.muted===void 0||(u instanceof ZA?u.setEnabled(!r.muted):Hn.warn("Can only call setEnabled on remote track publications."))},[r.muted,u,l]),b.createElement("audio",{ref:s,...a})});function NUe(e){const t=!!C$();return e.participant&&!t?b.createElement(dme.Provider,{value:e.participant},e.children):b.createElement(b.Fragment,null,e.children)}function MUe(e){const t=!!fP();return e.trackRef&&!t?b.createElement(ume.Provider,{value:e.trackRef},e.children):b.createElement(b.Fragment,null,e.children)}const DUe=b.forwardRef(function({trackRef:e,children:t,onParticipantClick:n,disableSpeakingIndicator:r,...i},o){var s,a;const c=gb(e),{elementProps:l}=nUe({htmlProps:i,disableSpeakingIndicator:r,onParticipantClick:n,trackRef:c}),u=aUe(c.participant),d=lme(),f=(s=V9e())==null?void 0:s.autoSubscription,p=b.useCallback(g=>{c.source&&!g&&d&&d.pin.dispatch&&tme(c,d.pin.state)&&d.pin.dispatch({msg:"clear_pin"})},[c,d]);return b.createElement("div",{ref:o,style:{position:"relative"},...l},b.createElement(MUe,{trackRef:c},b.createElement(NUe,{participant:c.participant},t??b.createElement(b.Fragment,null,xa(c)&&(((a=c.publication)==null?void 0:a.kind)==="video"||c.source===Re.Source.Camera||c.source===Re.Source.ScreenShare)?b.createElement(OUe,{trackRef:c,onSubscriptionStatusChanged:p,manageSubscription:f}):xa(c)&&b.createElement(bme,{trackRef:c,onSubscriptionStatusChanged:p}),b.createElement("div",{className:"lk-participant-placeholder"},b.createElement(TUe,null)),b.createElement("div",{className:"lk-participant-metadata"},b.createElement("div",{className:"lk-participant-metadata-item"},c.source===Re.Source.Camera?b.createElement(b.Fragment,null,u&&b.createElement(fUe,{style:{marginRight:"0.25rem"}}),b.createElement(EUe,{trackRef:{participant:c.participant,source:Re.Source.Microphone},show:"muted"}),b.createElement(tJ,null)):b.createElement(b.Fragment,null,b.createElement(gme,{style:{marginRight:"0.25rem"}}),b.createElement(tJ,null,"'s screen"))),b.createElement(CUe,{className:"lk-participant-metadata-item"}))),b.createElement(SUe,{trackRef:c}))))});function k$({volume:e,muted:t}){const n=f1([Re.Source.Microphone,Re.Source.ScreenShareAudio,Re.Source.Unknown],{updateOnlyOn:[],onlySubscribed:!0}).filter(r=>!r.participant.isLocal&&r.publication.kind===Re.Kind.Audio);return b.createElement("div",{style:{display:"none"}},n.map(r=>b.createElement(bme,{key:Ws(r),trackRef:r,volume:e,muted:t})))}function wme({kind:e,initialSelection:t,onActiveDeviceChange:n,tracks:r,requestPermissions:i=!1,...o}){const[s,a]=b.useState(!1),[c,l]=b.useState([]),[u,d]=b.useState(!0),[f,p]=b.useState(i),g=(w,S)=>{Hn.debug("handle device change"),a(!1),n==null||n(w,S)},m=b.useRef(null),y=b.useRef(null);b.useLayoutEffect(()=>{s&&p(!0)},[s]),b.useLayoutEffect(()=>{let w;return m.current&&y.current&&(c||u)&&(w=q7e(m.current,y.current,(S,C)=>{y.current&&Object.assign(y.current.style,{left:`${S}px`,top:`${C}px`})})),d(!1),()=>{w==null||w()}},[m,y,c,u]);const v=b.useCallback(w=>{y.current&&w.target!==m.current&&s&&G7e(y.current,w)&&a(!1)},[s,y,m]);return b.useEffect(()=>(document.addEventListener("click",v),()=>{document.removeEventListener("click",v)}),[v]),b.createElement(b.Fragment,null,b.createElement("button",{className:"lk-button lk-button-menu","aria-pressed":s,...o,onClick:()=>a(!s),ref:m},o.children),!o.disabled&&b.createElement("div",{className:"lk-device-menu",ref:y,style:{visibility:s?"visible":"hidden"}},e?b.createElement(MM,{initialSelection:t,onActiveDeviceChange:w=>g(e,w),onDeviceListChange:l,kind:e,track:r==null?void 0:r[e],requestPermissions:f}):b.createElement(b.Fragment,null,b.createElement("div",{className:"lk-device-menu-heading"},"Audio inputs"),b.createElement(MM,{kind:"audioinput",onActiveDeviceChange:w=>g("audioinput",w),onDeviceListChange:l,track:r==null?void 0:r.audioinput,requestPermissions:f}),b.createElement("div",{className:"lk-device-menu-heading"},"Video inputs"),b.createElement(MM,{kind:"videoinput",onActiveDeviceChange:w=>g("videoinput",w),onDeviceListChange:l,track:r==null?void 0:r.videoinput,requestPermissions:f}))))}function LUe(e,t){const[n,r]=b.useState(),i=b.useMemo(()=>new Qs,[]);return b.useEffect(()=>{let o=!1,s=[];return i.lock().then(async a=>
424{try{(e.audio||e.video)&&(s=await oE(e),o?s.forEach(c=>c.stop()):r(s))}catch(c){t&&c instanceof Error?t(c):Hn.error(c)}finally{a()}}),()=>{o=!0,s.forEach(a=>{a.stop()})}},[JSON.stringify(e,pme),t,i]),n}const Na=b.createContext({});function FUe(e){const t=G_,[n,r]=b.useState(t),[i,o]=b.useState(wDe),[s,a]=b.useState(CDe),[c,l]=b.useState(J3),[u,d]=b.useState(KB),[f,p]=b.useState(_De),[g,m]=b.useState([]),{userChoices:y}=uv(),[v,w]=b.useState(!0),[S,C]=b.useState(y.audioDeviceId),[E,T]=b.useState(!0),[x,O]=b.useState(y.videoDeviceId),[A,L]=b.useState([]),[U,I]=b.useState(EDe);return h.jsx(Na.Provider,{value:{user:n,setUser:r,layout:i,setLayout:o,localization:s,setLocalization:a,captions:c,setCaptions:l,meeting:u,setMeeting:d,eventViewer:f,setEventViewer:p,audioEnabled:v,setAudioEnabled:w,audioDeviceId:S,setAudioDeviceId:C,videoEnabled:E,setVideoEnabled:T,videoDeviceId:x,setVideoDeviceId:O,emojis:g,setEmojis:m,redirectAfterLogin:U,setRedirectAfterLogin:I,messages:A,setMessages:L},children:e.children})}/**
425 * @remix-run/router v1.23.3
426 *
427 * Copyright (c) Remix Software Inc.
428 *
429 * This source code is licensed under the MIT license found in the
430 * LICENSE.md file in the root directory of this source tree.
431 *
432 * @license MIT
433 */function rC(){return rC=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},rC.apply(null,arguments)}var _p;(function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"})(_p||(_p={}));const iJ="popstate";function jUe(e){e===void 0&&(e={});function t(r,i){let{pathname:o,search:s,hash:a}=r.location;return lI("",{pathname:o,search:s,hash:a},i.state&&i.state.usr||null,i.state&&i.state.key||"default")}function n(r,i){return typeof i=="string"?i:iC(i)}return Sme(t,n,null,e)}function UUe(e){e===void 0&&(e={});function t(i,o){let{pathname:s="/",search:a="",hash:c=""}=jv(i.location.hash.substr(1));return!s.startsWith("/")&&!s.startsWith(".")&&(s="/"+s),lI("",{pathname:s,search:a,hash:c},o.state&&o.state.usr||null,o.state&&o.state.key||"default")}function n(i,o){let s=i.document.querySelector("base"),a="";if(s&&s.getAttribute("href")){let c=i.location.href,l=c.indexOf("#");a=l===-1?c:c.slice(0,l)}return a+"#"+(typeof o=="string"?o:iC(o))}function r(i,o){gP(i.pathname.charAt(0)==="/","relative pathnames are not supported in hash history.push("+JSON.stringify(o)+")")}return Sme(t,n,r,e)}function mi(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function gP(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function BUe(){return Math.random().toString(36).substr(2,8)}function oJ(e,t){return{usr:e.state,key:e.key,idx:t}}function lI(e,t,n,r){return n===void 0&&(n=null),rC({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?jv(t):t,{state:n,key:t&&t.key||r||BUe()})}function iC(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(t+=r.charAt(0)==="#"?r:"#"+r),t}function jv(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function Sme(e,t,n,r){r===void 0&&(r={});let{window:i=document.defaultView,v5Compat:o=!1}=r,s=i.history,a=_p.Pop,c=null,l=u();l==null&&(l=0,s.replaceState(rC({},s.state,{idx:l}),""));function u(){return(s.state||{idx:null}).idx}function d(){a=_p.Pop;let y=u(),v=y==null?null:y-l;l=y,c&&c({action:a,location:m.location,delta:v})}function f(y,v){a=_p.Push;let w=lI(m.location,y,v);n&&n(w,y),l=u()+1;let S=oJ(w,l),C=m.createHref(w);try{s.pushState(S,"",C)}catch(E){if(E instanceof DOMException&&E.name==="DataCloneError")throw E;i.location.assign(C)}o&&c&&c({action:a,location:m.location,delta:1})}function p(y,v){a=_p.Replace;let w=lI(m.location,y,v);n&&n(w,y),l=u();let S=oJ(w,l),C=m.createHref(w);s.replaceState(S,"",C),o&&c&&c({action:a,location:m.location,delta:0})}function g(y){let v=i.location.origin!=="null"?i.location.origin:i.location.href,w=typeof y=="string"?y:iC(y);return w=w.replace(/ $/,"%20"),mi(v,"No window.location.(origin|href) available to create URL for href: "+w),new URL(w,v)}let m={get action(){return a},get location(){return e(i,s)},listen(y){if(c)throw new Error("A history only accepts one active listener");return i.addEventListener(iJ,d),c=y,()=>{i.removeEventListener(iJ,d),c=null}},createHref(y){return t(i,y)},createURL:g,encodeLocation(y){let v=g(y);return{pathname:v.pathname,search:v.search,hash:v.hash}},push:f,replace:p,go(y){return s.go(y)}};return m}var sJ;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(sJ||(sJ={}));function $Ue(e,t,n){return n===void 0&&(n="/"),HUe(e,t,n)}function HUe(e,t,n,r){let i=typeof t=="string"?jv(t):t,o=h1(i.pathname||"/",n);if(o==null)return null;let s=_me(e);zUe(s);let a=null,c=Eme(o);for(let l=0;a==null&&l<s.length;++l)a=JUe(s[l],c);return a}function _me(e,t,n,r){t===void 0&&(t=[]),n===void 0&&(n=[]),r===void 0&&(r="");let i=(o,s,a)=>{let c={relativePath:a===void 0?o.path||"":a,caseSensitive:o.caseSensitive===!0,childrenIndex:s,route:o};c.relativePath.startsWith("/")&&(mi(c.relativePath.startsWith(r),'Absolute route path "'+c.relativePath+'" nested under path '+('"'+r+'" is not val
433id. An absolute child route path ')+"must start with the combined path of all its parent routes."),c.relativePath=c.relativePath.slice(r.length));let l=$p([r,c.relativePath]),u=n.concat(c);o.children&&o.children.length>0&&(mi(o.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+l+'".')),_me(o.children,t,u,l)),!(o.path==null&&!o.index)&&t.push({path:l,score:QUe(l,o.index),routesMeta:u})};return e.forEach((o,s)=>{var a;if(o.path===""||!((a=o.path)!=null&&a.includes("?")))i(o,s);else for(let c of Cme(o.path))i(o,s,c)}),t}function Cme(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,i=n.endsWith("?"),o=n.replace(/\?$/,"");if(r.length===0)return i?[o,""]:[o];let s=Cme(r.join("/")),a=[];return a.push(...s.map(c=>c===""?o:[o,c].join("/"))),i&&a.push(...s),a.map(c=>e.startsWith("/")&&c===""?"/":c)}function zUe(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:XUe(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const VUe=/^:[\w-]+$/,WUe=3,qUe=2,GUe=1,KUe=10,YUe=-2,aJ=e=>e==="*";function QUe(e,t){let n=e.split("/"),r=n.length;return n.some(aJ)&&(r+=YUe),t&&(r+=qUe),n.filter(i=>!aJ(i)).reduce((i,o)=>i+(VUe.test(o)?WUe:o===""?GUe:KUe),r)}function XUe(e,t){return e.length===t.length&&e.slice(0,-1).every((r,i)=>r===t[i])?e[e.length-1]-t[t.length-1]:0}function JUe(e,t,n){let{routesMeta:r}=e,i={},o="/",s=[];for(let a=0;a<r.length;++a){let c=r[a],l=a===r.length-1,u=o==="/"?t:t.slice(o.length)||"/",d=uI({path:c.relativePath,caseSensitive:c.caseSensitive,end:l},u),f=c.route;if(!d)return null;
vendor: 4,928 bytes, lines 433-442
433Object.assign(i,d.params),s.push({params:i,pathname:$p([o,d.pathname]),pathnameBase:iBe($p([o,d.pathnameBase])),route:f}),d.pathnameBase!=="/"&&(o=$p([o,d.pathnameBase]))}return s}function uI(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=ZUe(e.path,e.caseSensitive,e.end),i=t.match(n);if(!i)return null;let o=i[0],s=o.replace(/(.)\/+$/,"$1"),a=i.slice(1);return{params:r.reduce((l,u,d)=>{let{paramName:f,isOptional:p}=u;if(f==="*"){let m=a[d]||"";s=o.slice(0,o.length-m.length).replace(/(.)\/+$/,"$1")}const g=a[d];return p&&!g?l[f]=void 0:l[f]=(g||"").replace(/%2F/g,"/"),l},{}),pathname:o,pathnameBase:s,pattern:e}}function ZUe(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),gP(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let r=[],i="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(s,a,c)=>(r.push({paramName:a,isOptional:c!=null}),c?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),i+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?i+="\\/*$":e!==""&&e!=="/"&&(i+="(?:(?=\\/|$))"),[new RegExp(i,t?void 0:"i"),r]}function Eme(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return gP(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function h1(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}const eBe=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,tBe=e=>eBe.test(e);function nBe(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:i=""}=typeof e=="string"?jv(e):e,o;if(n)if(tBe(n))o=n;else{if(n.includes("//")){let s=n;n=xme(n),gP(!1,"Pathnames cannot have embedded double slashes - normalizing "+(s+" -> "+n))}n.startsWith("/")?o=cJ(n.substring(1),"/"):o=cJ(n,t)}else o=t;return{pathname:o,search:oBe(r),hash:sBe(i)}}function cJ(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(i=>{i===".."?n.length>1&&n.pop():i!=="."&&n.push(i)}),n.length>1?n.join("/"):"/"}function LM(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(r)+"].  Please separate it out to the ")+("`to."+n+"` field. Alternatively you may provide the full path as ")+'a string in <Link to="..."> and the router will parse it for you.'}function rBe(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function Tme(e,t){let n=rBe(e);return t?n.map((r,i)=>i===n.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function kme(e,t,n,r){r===void 0&&(r=!1);let i;typeof e=="string"?i=jv(e):(i=rC({},e),mi(!i.pathname||!i.pathname.includes("?"),LM("?","pathname","search",i)),mi(!i.pathname||!i.pathname.includes("#"),LM("#","pathname","hash",i)),mi(!i.search||!i.search.includes("#"),LM("#","search","hash",i)));let o=e===""||i.pathname==="",s=o?"/":i.pathname,a;if(s==null)a=n;else{let d=t.length-1;if(!r&&s.startsWith("..")){let f=s.split("/");for(;f[0]==="..";)f.shift(),d-=1;i.pathname=f.join("/")}a=d>=0?t[d]:"/"}let c=nBe(i,a),l=s&&s!=="/"&&s.endsWith("/"),u=(o||s===".")&&n.endsWith("/");return!c.pathname.endsWith("/")&&(l||u)&&(c.pathname+="/"),c}const xme=e=>e.replace(/\/\/+/g,"/"),$p=e=>xme(e.join("/")),iBe=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),oBe=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,sBe=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function aBe(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const Ame=["post","put","patch","delete"];new Set(Ame);const cBe=["get",...Ame];new Set(cBe);/**
434 * React Router v6.30.4
435 *
436 * Copyright (c) Remix Software Inc.
437 *
438 * This source code is licensed under the MIT license found in the
439 * LICENSE.md file in the root directory of this source tree.
440 *
441 * @license MIT
442 */function oC(){return oC=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},oC.apply(null,arguments)}const vP=b.createContext(null),Ime=b.createContext(null),Pm=b.createContext(null),yP=b.createContext(null),Om=b.createContext({outlet:null,matches:[],isDataRoute:!1}),Rme=b.createContext(null);function lBe(e,t){let{relative:n}=t===void 0?{}:t;yb()||mi(!1);let{basename:r,navigator:i}=b.useContext(Pm),{hash:o,pathname:s,search:a}=bP(e,{relative:n}),c=s;return r!=="/"&&(c=s==="/"?r:$p([r,s])),i.createHref({pathname:c,search:a,hash:o})}function yb(){return b.useContext(yP)!=null}
vendor: 4,739 bytes, line 442
442function il(){return yb()||mi(!1),b.useContext(yP).location}function uBe(e){yb()||mi(!1);let{pathname:t}=il();return b.useMemo(()=>uI(e,Eme(t)),[t,e])}function Pme(e){b.useContext(Pm).static||b.useLayoutEffect(e)}function Ts(){let{isDataRoute:e}=b.useContext(Om);return e?CBe():dBe()}function dBe(){yb()||mi(!1);let e=b.useContext(vP),{basename:t,future:n,navigator:r}=b.useContext(Pm),{matches:i}=b.useContext(Om),{pathname:o}=il(),s=JSON.stringify(Tme(i,n.v7_relativeSplatPath)),a=b.useRef(!1);return Pme(()=>{a.current=!0}),b.useCallback(function(l,u){if(u===void 0&&(u={}),!a.current)return;if(typeof l=="number"){r.go(l);return}let d=kme(l,JSON.parse(s),o,u.relative==="path");e==null&&t!=="/"&&(d.pathname=d.pathname==="/"?t:$p([t,d.pathname])),(u.replace?r.replace:r.push)(d,u.state,u)},[t,r,s,o,e])}function mE(){let{matches:e}=b.useContext(Om),t=e[e.length-1];return t?t.params:{}}function bP(e,t){let{relative:n}=t===void 0?{}:t,{future:r}=b.useContext(Pm),{matches:i}=b.useContext(Om),{pathname:o}=il(),s=JSON.stringify(Tme(i,r.v7_relativeSplatPath));return b.useMemo(()=>kme(e,JSON.parse(s),o,n==="path"),[e,s,o,n])}function fBe(e,t){return hBe(e,t)}function hBe(e,t,n,r){yb()||mi(!1);let{navigator:i}=b.useContext(Pm),{matches:o}=b.useContext(Om),s=o[o.length-1],a=s?s.params:{};s&&s.pathname;let c=s?s.pathnameBase:"/";s&&s.route;let l=il(),u;if(t){var d;let y=typeof t=="string"?jv(t):t;c==="/"||(d=y.pathname)!=null&&d.startsWith(c)||mi(!1),u=y}else u=l;let f=u.pathname||"/",p=f;if(c!=="/"){let y=c.replace(/^\//,"").split("/");p="/"+f.replace(/^\//,"").split("/").slice(y.length).join("/")}let g=$Ue(e,{pathname:p}),m=yBe(g&&g.map(y=>Object.assign({},y,{params:Object.assign({},a,y.params),pathname:$p([c,i.encodeLocation?i.encodeLocation(y.pathname).pathname:y.pathname]),pathnameBase:y.pathnameBase==="/"?c:$p([c,i.encodeLocation?i.encodeLocation(y.pathnameBase).pathname:y.pathnameBase])})),o,n,r);return t&&m?b.createElement(yP.Provider,{value:{location:oC({pathname:"/",search:"",hash:"",state:null,key:"default"},u),navigationType:_p.Pop}},m):m}function pBe(){let e=_Be(),t=aBe(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,i={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return b.createElement(b.Fragment,null,b.createElement("h2",null,"Unexpected Application Error!"),b.createElement("h3",{style:{fontStyle:"italic"}},t),n?b.createElement("pre",{style:i},n):null,null)}const mBe=b.createElement(pBe,null);class gBe extends b.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,n){return n.location!==t.location||n.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:n.error,location:n.location,revalidation:t.revalidation||n.revalidation}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error!==void 0?b.createElement(Om.Provider,{value:this.props.routeContext},b.createElement(Rme.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function vBe(e){let{routeContext:t,match:n,children:r}=e,i=b.useContext(vP);return i&&i.static&&i.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=n.route.id),b.createElement(Om.Provider,{value:t},r)}function yBe(e,t,n,r){var i;if(t===void 0&&(t=[]),n===void 0&&(n=null),r===void 0&&(r=null),e==null){var o;if(!n)return null;if(n.errors)e=n.matches;else if((o=r)!=null&&o.v7_partialHydration&&t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let s=e,a=(i=n)==null?void 0:i.errors;if(a!=null){let u=s.findIndex(d=>d.route.id&&(a==null?void 0:a[d.route.id])!==void 0);u>=0||mi(!1),s=s.slice(0,Math.min(s.length,u+1))}let c=!1,l=-1;if(n&&r&&r.v7_partialHydration)for(let u=0;u<s.length;u++){let d=s[u];if((d.route.HydrateFallback||d.route.hydrateFallbackElement)&&(l=u),d.route.id){let{loaderData:f,errors:p}=n,g=d.route.loader&&f[d.route.id]===void 0&&(!p||p[d.route.id]===void 0);if(d.route.lazy||g){c=!0,l>=0?s=s.slice(0,l+1):s=[s[0]];break}}}return s.reduceRight((u,d,f)=>{let p,g=!1,m=null,y=null;n&&(p=a&&d.route.id?a[d.route.id]:void 0,m=d.route.errorElement||mBe,c&&(l<0&&f===0?(EBe("route-fallback"),g=!0,y=null):l===f&&(g=!0,y=d.route.hydrateFallbackElement||null)));let v=t.concat(s.slice(0,f+1)),w=()=>{let S;return p?S=m:g?S=y:d.route.Component?S=b.createElement(d.route.Component,null):d.route.element?S=d.route.element:S=u,b.createElement(vBe,{match:d,routeC
442ontext:{outlet:u,matches:v,isDataRoute:n!=null},children:S})};return n&&(d.route.ErrorBoundary||d.route.errorElement||f===0)?b.createElement(gBe,{location:n.location,revalidation:n.revalidation,component:m,error:p,children:w(),routeContext:{outlet:null,matches:v,isDataRoute:!0}}):w()},null)}var Ome=(function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e})(Ome||{}),Nme=(function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e})(Nme||{});function bBe(e){let t=b.useContext(vP);return t||mi(!1),t}function wBe(e){let t=b.useContext(Ime);return t||mi(!1),t}function SBe(e){let t=b.useContext(Om);return t||mi(!1),t}function Mme(e){let t=SBe(),n=t.matches[t.matches.length-1];return n.route.id||mi(!1),n.route.id}function _Be(){var e;let t=b.useContext(Rme),n=wBe(),r=Mme();return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function CBe(){let{router:e}=bBe(Ome.UseNavigateStable),t=Mme(Nme.UseNavigateStable),n=b.useRef(!1);return Pme(()=>{n.current=!0}),b.useCallback(function(i,o){o===void 0&&(o={}),n.current&&(typeof i=="number"?e.navigate(i):e.navigate(i,oC({fromRouteId:t},o)))},[e,t])}const lJ={};function EBe(e,t,n){lJ[e]||(lJ[e]=!0)}function Dme(e,t){e==null||e.v7_startTransition,e==null||e.v7_relativeSplatPath}function nn(e){mi(!1)}function Lme(e){let{basename:t="/",children:n=null,location:r,navigationType:i=_p.Pop,navigator:o,static:s=!1,future:a}=e;yb()&&mi(!1);let c=t.replace(/^\/*/,"/"),l=b.useMemo(()=>({basename:c,navigator:o,static:s,future:oC({v7_relativeSplatPath:!1},a)}),[c,a,o,s]);typeof r=="string"&&(r=jv(r));let{pathname:u="/",search:d="",hash:f="",state:p=null,key:g="default"}=r,m=b.useMemo(()=>{let y=h1(u,c);return y==null?null:{location:{pathname:y,search:d,hash:f,state:p,key:g},navigationType:i}},[c,u,d,f,p,g,i]);return m==null?null:b.createElement(Pm.Provider,{value:l},b.createElement(yP.Provider,{children:n,value:m}))}function gE(e){let{children:t,location:n}=e;return fBe(yj(t),n)}new Promise(()=>{});function yj(e,t){t===void 0&&(t=[]);let n=[];return b.Children.forEach(e,(r,i)=>{if(!b.isValidElement(r))return;let o=[...t,i];if(r.type===b.Fragment){n.push.apply(n,yj(r.props.children,o));return}r.type!==nn&&mi(!1),!r.props.index||!r.props.children||mi(!1);let s={id:r.props.id||o.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,loader:r.props.loader,action:r.props.action,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(s.children=yj(r.props.children,o)),n.push(s)}),n}/**
443 * React Router DOM v6.30.4
444 *
445 * Copyright (c) Remix Software Inc.
446 *
447 * This source code is licensed under the MIT license found in the
448 * LICENSE.md file in the root directory of this source tree.
449 *
450 * @license MIT
451 */function dI(){return dI=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},dI.apply(null,arguments)}function Fme(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function TBe(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function kBe(e,t){return e.button===0&&(!t||t==="_self")&&!TBe(e)}function bj(e){return e===void 0&&(e=""),new URLSearchParams(typeof e=="string"||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce((t,n)=>{let r=e[n];return t.concat(Array.isArray(r)?r.map(i=>[n,i]):[[n,r]])},[]))}function xBe(e,t){let n=bj(e);return t&&t.forEach((r,i)=>{n.has(i)||t.getAll(i).forEach(o=>{n.append(i,o)})}),n}const ABe=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"],IBe=["aria-current","caseSensitive","className","end","style","to","viewTransition","children"],RBe="6";try{window.__reactRouterVersion=RBe}catch{}const PBe=b.createContext({isTransitioning:!1}),OBe="startTransition",fI=k_[OBe];function NBe(e){let{basename:t,children:n,future:r,window:i}=e,o=b.useRef();o.current==null&&(o.current=jUe({window:i,v5Compat:!0}));let s=o.current,[a,c]=b.useState({action:s.action,location:s.location}),{v7_startTransition:l}=r||{},u=b.useCallback(d=>{l&&fI?fI(()=>c(d)):c(d)},[c,l]);return b.useLayoutEffect(()=>s.listen(u),[s,u]),b.useEffect(()=>Dme(r),[r]),b.createElement(Lme,{basename:t,children:n,location:a.location,navigationType:a.action,navigator:s,future:r})}function MBe(e){let{basename:t,children:n,future:r,window:i}=e,o=b.useRef();o.current==null&&(o.current=UUe({window:i,v5Compat:!0}));let s=o.current,[a,c]=b.useState({action:s.action,location:s.location}),{v7_startTransition:l}=r||{},u=b.useCallback(d=>{l&&fI?fI(()=>c(d)):c(d)},[c,l]);return b.useLayoutEffect(()=>s.listen(u),[s,u]),b.useEffect(()=>Dme(r),[r]),b.createElement(Lme,{basename:t,children:n,location:a.location,navigationType:a.action,navigator:s,future:r})}const DBe=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",LBe=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,It=b.forwardRef(function(t,n){let{onClick:r,relative:i,reloadDocument:o,replace:s,state:a,target:c,to:l,preventScrollReset:u,viewTransition:d}=t,f=Fme(t,ABe),{basename:p}=b.useContext(Pm),g,m=!1;if(typeof l=="string"&&LBe.test(l)&&(g=l,DBe))try{let S=new URL(window.location.href),C=l.startsWith("//")?new URL(S.protocol+l):new URL(l),E=h1(C.pathname,p);C.origin===S.origin&&E!=null?l=E+C.search+C.hash:m=!0}catch{}let y=lBe(l,{relative:i}),v=jBe(l,{replace:s,state:a,target:c,preventScrollReset:u,relative:i,viewTransition:d});function w(S){r&&r(S),S.defaultPrevented||v(S)}return b.createElement("a",dI({},f,{href:g||y,onClick:m||o?r:w,ref:n,target:c}))}),Ps=b.forwardRef(function(t,n){let{"aria-current":r="page",caseSensitive:i=!1,className:o="",end:s=!1,style:a,to:c,viewTransition:l,children:u}=t,d=Fme(t,IBe),f=bP(c,{relative:d.relative}),p=il(),g=b.useContext(Ime),{navigator:m,basename:y}=b.useContext(Pm),v=g!=null&&UBe(f)&&l===!0,w=m.encodeLocation?m.encodeLocation(f).pathname:f.pathname,S=p.pathname,C=g&&g.navigation&&g.navigation.location?g.navigation.location.pathname:null;i||(S=S.toLowerCase(),C=C?C.toLowerCase():null,w=w.toLowerCase()),C&&y&&(C=h1(C,y)||C);const E=w!=="/"&&w.endsWith("/")?w.length-1:w.length;let T=S===w||!s&&S.startsWith(w)&&S.charAt(E)==="/",x=C!=null&&(C===w||!s&&C.startsWith(w)&&C.charAt(w.length)==="/"),O={isActive:T,isPending:x,isTransitioning:v},A=T?r:void 0,L;typeof o=="function"?L=o(O):L=[o,T?"active":null,x?"pending":null,v?"transitioning":null].filter(
451Boolean).join(" ");let U=typeof a=="function"?a(O):a;return b.createElement(It,dI({},d,{"aria-current":A,className:L,ref:n,style:U,to:c,viewTransition:l}),typeof u=="function"?u(O):u)});var wj;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(wj||(wj={}));var uJ;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(uJ||(uJ={}));function FBe(e){let t=b.useContext(vP);return t||mi(!1),t}function jBe(e,t){let{target:n,replace:r,state:i,preventScrollReset:o,relative:s,viewTransition:a}=t===void 0?{}:t,c=Ts(),l=il(),u=bP(e,{relative:s});return b.useCallback(d=>{if(kBe(d,n)){d.preventDefault();let f=r!==void 0?r:iC(l)===iC(u);c(e,{replace:f,state:i,preventScrollReset:o,relative:s,viewTransition:a})}},[l,c,u,r,i,n,e,o,s,a])}function x$(e){let t=b.useRef(bj(e)),n=b.useRef(!1),r=il(),i=b.useMemo(()=>xBe(r.search,n.current?null:t.current),[r.search]),o=Ts(),s=b.useCallback((a,c)=>{const l=bj(typeof a=="function"?a(i):a);n.current=!0,o("?"+l,c)},[o,i]);return[i,s]}function UBe(e,t){t===void 0&&(t={});let n=b.useContext(PBe);n==null&&mi(!1);let{basename:r}=FBe(wj.useViewTransitionState),i=bP(e,{relative:t.relative});if(!n.isTransitioning)return!1;let o=h1(n.currentLocation.pathname,r)||n.currentLocation.pathname,s=h1(n.nextLocation.pathname,r)||n.nextLocation.pathname;return uI(i.pathname,s)!=null||uI(i.pathname,o)!=null}const BBe="_EventSpeaker_j71if_1",$Be="_Titles_j71if_9",HBe="_Panels_j71if_15",zBe="_TitlesAndCaptions_j71if_25",VBe="_CaptionsAndAdd_j71if_34",WBe="_Captions_j71if_34",qBe="_CaptionTitle_j71if_64",GBe="_Qna_j71if_79",KBe="_Controls_j71if_85",YBe="_MicToggle_j71if_94",QBe="_AddLanguageDialogContent_j71if_109",XBe="_UnreadMessages_j71if_126",JBe="_InputNameDialog_j71if_141",ZBe="_RecordingAndUsage_j71if_158",Ms={EventSpeaker:BBe,Titles:$Be,Panels:HBe,TitlesAndCaptions:zBe,CaptionsAndAdd:VBe,Captions:WBe,CaptionTitle:qBe,Qna:GBe,Controls:KBe,MicToggle:YBe,AddLanguageDialogContent:QBe,UnreadMessages:XBe,InputNameDialog:JBe,RecordingAndUsage:ZBe},wP=b.createContext({teamsUserCredential:void 0});function jme(e,t){return function(){return e.apply(t,arguments)}}const{toString:e$e}=Object.prototype,{getPrototypeOf:p1}=Object,{iterator:vE,toStringTag:Ume}=Symbol,hI=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),sC=(e,t)=>{let n=e;const r=[];for(;n!=null&&n!==Object.prototype;){if(r.indexOf(n)!==-1)return!1;if(r.push(n),hI(n,t))return!0;n=p1(n)}return!1},t$e=(e,t)=>e!=null&&sC(e,t)?e[t]:void 0,A$=(e=>t=>{const n=e$e.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),ol=e=>(e=e.toLowerCase(),t=>A$(t)===e),SP=e=>t=>typeof t===e,{isArray:dv}=Array,fv=SP("undefined");function bb(e){return e!==null&&!fv(e)&&e.constructor!==null&&!fv(e.constructor)&&Aa(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const Bme=ol("ArrayBuffer");function n$e(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&Bme(e.buffer),t}const r$e=SP("string"),Aa=SP("function"),$me=SP("number"),wb=e=>e!==null&&typeof e=="object",i$e=e=>e===!0||e===!1,Tx=e=>{if(!wb(e))return!1;const t=p1(e);return(t===null||t===Object.prototype||p1(t)===null)&&!sC(e,Ume)&&!sC(e,vE)},o$e=e=>{if(!wb(e)||bb(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},s$e=ol("Date"),a$e=ol("File"),c$e=e=>!!(e&&typeof e.uri<"u"),l$e=e=>e&&typeof e.getParts<"u",u$e=ol("Blob"),d$e=ol("FileList"),f$e=ol("Set"),h$e=e=>wb(e)&&Aa(e.pipe);function p$e(){return typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{}}const dJ=p$e(),fJ=typeof dJ.FormData<"u"?dJ.FormData:void 0,m$e=e=>{if(!e)return!1;if(fJ&&e instanceof fJ)return!0;const t=p1(e);if(!t||t===Object.prototype||!Aa(e.append))return!1;const n=A$(e);return n==="formdata"||n==="object"&&Aa(e.toString)&&e.toString()==="[object FormData]"},g$e=ol("URLSearchParams"),[v$e,y$e,b$e,w$e]=["ReadableStream","Request","Response","Headers"].map(ol),S$e=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function yE(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,i;if(typeof e!="object"&&(e=[e]),dv(e))for(r=0,i=e.length;r<i;r++)t.call(null,e[r],r,e);else{if(bb(e))return;const o=n?Object.getOwnPropertyNames(e):Object.keys(e),s=o.length;let a;for(r=0;r<s;r++)a=o[r],t.call(null,e[a],a,e)}}function Hme(e,t){if(bb(e))return null;t=t.toLowerCase();const n=Object.keys(e);let r=n.length,i;for(;r-- >0;)if(i=n[r],t===i.toLowerCase())return i;return null}const vg=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,zme=e=>!fv(e)&&e!==vg;function Sj(...e){const{caseless:t,skipUndefined:n}=zme(this)&&this||{},r={},i=(o,s)=>{if(s==="__proto__"||s==="constructor"||s==="prototype")return;const a=t&&typeof s=="string"&&Hme(r,s)||s,c=hI(r,a)?r[a]:void 0;Tx(c)&&Tx(o)?r[a]=Sj(c,o):Tx(o)?r[a]=Sj({},o):dv(o)?r[a]=o.slice():(!n||!fv(o))&&(r[a]=o)};for(let o=0,s=e.length;o<s;o++){const a=e[o];if(!a||bb(a)||(yE(a,i),typeof a!="object"||dv(a)))continue;const c=Object.getOwnPropertySymbols(a);for(let l=0;l<c.length;l++){const u=c[l];N$e.call(a,u)&&i(a[u],u)}}return r}const _$e=(e,t,n,{allOwnKeys:r}={})=>(yE(t,(i,o)=>{n&&Aa(i)?Object.defineProperty(e,o,{__proto__:null,value:jme(i,n),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(e,o,{__proto__:null,value:i,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:r}),e),C$e=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),E$e=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),Object.defineProperty(e.prototype,"constructor",{__proto__:null,value:e,writable:!0,enumerable:!1,
vendor: 17,433 bytes, lines 451-453
451configurable:!0}),Object.defineProperty(e,"super",{__proto__:null,value:t.prototype}),n&&Object.assign(e.prototype,n)},T$e=(e,t,n,r)=>{let i,o,s;const a={};if(t=t||{},e==null)return t;do{for(i=Object.getOwnPropertyNames(e),o=i.length;o-- >0;)s=i[o],(!r||r(s,e,t))&&!a[s]&&(t[s]=e[s],a[s]=!0);e=n!==!1&&p1(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},k$e=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},x$e=e=>{if(!e)return null;if(dv(e))return e;let t=e.length;if(!$me(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},A$e=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&p1(Uint8Array)),I$e=(e,t)=>{const r=(e&&e[vE]).call(e);let i;for(;(i=r.next())&&!i.done;){const o=i.value;t.call(e,o[0],o[1])}},R$e=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},P$e=ol("HTMLFormElement"),O$e=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,i){return r.toUpperCase()+i}),{propertyIsEnumerable:N$e}=Object.prototype,M$e=ol("RegExp"),Vme=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};yE(n,(i,o)=>{let s;(s=t(i,o,e))!==!1&&(r[o]=s||i)}),Object.defineProperties(e,r)},D$e=e=>{Vme(e,(t,n)=>{if(Aa(e)&&["arguments","caller","callee"].includes(n))return!1;const r=e[n];if(Aa(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},L$e=(e,t)=>{const n={},r=i=>{i.forEach(o=>{n[o]=!0})};return dv(e)?r(e):r(String(e).split(t)),n},F$e=()=>{},j$e=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function U$e(e){return!!(e&&Aa(e.append)&&e[Ume]==="FormData"&&e[vE])}const B$e=e=>{const t=new WeakSet,n=r=>{if(wb(r)){if(t.has(r))return;if(bb(r))return r;if(!("toJSON"in r)){t.add(r);let i;if(f$e(r)){i=[];for(const o of r){const s=n(o);!fv(s)&&i.push(s)}}else i=dv(r)?[]:{},yE(r,(o,s)=>{const a=n(o);!fv(a)&&(i[s]=a)});return t.delete(r),i}}return r};return n(e)},$$e=ol("AsyncFunction"),H$e=e=>e&&(wb(e)||Aa(e))&&Aa(e.then)&&Aa(e.catch),Wme=((e,t)=>e?setImmediate:t?((n,r)=>(vg.addEventListener("message",({source:i,data:o})=>{i===vg&&o===n&&r.length&&r.shift()()},!1),i=>{r.push(i),vg.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",Aa(vg.postMessage)),z$e=typeof queueMicrotask<"u"?queueMicrotask.bind(vg):typeof process<"u"&&process.nextTick||Wme,qme=e=>e!=null&&Aa(e[vE]),V$e=e=>e!=null&&sC(e,vE)&&qme(e),Te={isArray:dv,isArrayBuffer:Bme,isBuffer:bb,isFormData:m$e,isArrayBufferView:n$e,isString:r$e,isNumber:$me,isBoolean:i$e,isObject:wb,isPlainObject:Tx,isEmptyObject:o$e,isReadableStream:v$e,isRequest:y$e,isResponse:b$e,isHeaders:w$e,isUndefined:fv,isDate:s$e,isFile:a$e,isReactNativeBlob:c$e,isReactNative:l$e,isBlob:u$e,isRegExp:M$e,isFunction:Aa,isStream:h$e,isURLSearchParams:g$e,isTypedArray:A$e,isFileList:d$e,forEach:yE,merge:Sj,extend:_$e,trim:S$e,stripBOM:C$e,inherits:E$e,toFlatObject:T$e,kindOf:A$,kindOfTest:ol,endsWith:k$e,toArray:x$e,forEachEntry:I$e,matchAll:R$e,isHTMLForm:P$e,hasOwnProperty:hI,hasOwnProp:hI,hasOwnInPrototypeChain:sC,getSafeProp:t$e,reduceDescriptors:Vme,freezeMethods:D$e,toObjectSet:L$e,toCamelCase:O$e,noop:F$e,toFiniteNumber:j$e,findKey:Hme,global:vg,isContextDefined:zme,isSpecCompliantForm:U$e,toJSONObject:B$e,isAsyncFn:$$e,isThenable:H$e,setImmediate:Wme,asap:z$e,isIterable:qme,isSafeIterable:V$e},W$e=Te.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),q$e=e=>{const t={};let n,r,i;return e&&e.split(`
452`).forEach(function(s){i=s.indexOf(":"),n=s.substring(0,i).trim().toLowerCase(),r=s.substring(i+1).trim();const a=Te.hasOwnProp(t,n);!n||a&&Te.hasOwnProp(W$e,n)||(n==="set-cookie"?a?t[n].push(r):t[n]=[r]:t[n]=a?t[n]+", "+r:r)}),t};function G$e(e){let t=0,n=e.length;for(;t<n;){const r=e.charCodeAt(t);if(r!==9&&r!==32)break;t+=1}for(;n>t;){const r=e.charCodeAt(n-1);if(r!==9&&r!==32)break;n-=1}return t===0&&n===e.length?e:e.slice(t,n)}const K$e=new RegExp("[\\u0000-\\u0008\\u000a-\\u001f\\u007f]+","g"),Y$e=new RegExp("[^\\u0009\\u0020-\\u007e\\u0080-\\u00ff]+","g");function I$(e,t){return Te.isArray(e)?e.map(n=>I$(n,t)):G$e(String(e).replace(t,""))}const Q$e=e=>I$(e,K$e),X$e=e=>I$(e,Y$e);function Gme(e){const t=Object.create(null);return Te.forEach(e.toJSON(),(n,r)=>{t[r]=X$e(n)}),t}const hJ=Symbol("internals");function Uw(e){return e&&String(e).trim().toLowerCase()}function kx(e){return e===!1||e==null?e:Te.isArray(e)?e.map(kx):Q$e(String(e))}function J$e(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}const Z$e=/^[!#$%&'*+\-.^_`|~0-9A-Za-z]+$/;function FM(e){let t=0,n=e.length;for(;t<n;){const r=e.charCodeAt(t);if(r!==9&&r!==32)break;t+=1}for(;n>t;){const r=e.charCodeAt(n-1);if(r!==9&&r!==32)break;n-=1}return t===0&&n===e.length?e:e.slice(t,n)}function eHe(e){const t=e.length-1;if(t<1||e.charCodeAt(0)!==34||e.charCodeAt(t)!==34)return e;let n="";for(let r=1;r<t;r++){const i=e.charCodeAt(r);if(i===34||i===92&&(r+=1,r>=t))return e;n+=e[r]}return n}function tHe(e){const t=Object.create(null),n=String(e);let r=0,i=!1,o=!1;function s(a){const c=FM(n.slice(r,a)),l=c.indexOf("=");if(l<1)return;const u=FM(c.slice(0,l));if(!Z$e.test(u))return;const d=u.toLowerCase();if(d==="__proto__"||d==="constructor"||d==="prototype")return;const f=FM(c.slice(l+1));t[d]=eHe(f)}for(let a=0;a<n.length;a++){const c=n.charCodeAt(a);i?o?o=!1:c===92?o=!0:c===34&&(i=!1):c===34?i=!0:(c===44||c===59)&&(s(a),r=a+1)}return s(n.length),t}const nHe=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function jM(e,t,n,r,i){if(Te.isFunction(r))return r.call(this,t,n);if(i&&(t=n),!!Te.isString(t)){if(Te.isString(r))return t.indexOf(r)!==-1;if(Te.isRegExp(r))return r.test(t)}}function rHe(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function iHe(e,t){const n=Te.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{__proto__:null,value:function(i,o,s){return this[r].call(this,t,i,o,s)},configurable:!0})})}let _s=class{constructor(t){t&&this.set(t)}set(t,n,r){const i=this;function o(a,c,l){const u=Uw(c);if(!u)return;const d=Te.findKey(i,u);(!d||i[d]===void 0||l===!0||l===void 0&&i[d]!==!1)&&(i[d||c]=kx(a))}const s=(a,c)=>Te.forEach(a,(l,u)=>o(l,u,c));if(Te.isPlainObject(t)||t instanceof this.constructor)s(t,n);else if(Te.isString(t)&&(t=t.trim())&&!nHe(t))s(q$e(t),n);else if(Te.isObject(t)&&Te.isSafeIterable(t)){let a=Object.create(null),c,l;for(const u of t){if(!Te.isArray(u))throw new TypeError("Object iterator must return a key-value pair");l=u[0],Te.hasOwnProp(a,l)?(c=a[l],a[l]=Te.isArray(c)?[...c,u[1]]:[c,u[1]]):a[l]=u[1]}s(a,n)}else t!=null&&o(n,t,r);return this}get(t,n){if(t=Uw(t),t){const r=Te.findKey(this,t);if(r){const i=this[r];if(!n)return i;if(n===!0)return J$e(i);if(Te.isFunction(n))return n.call(this,i,r);if(Te.isRegExp(n))return n.exec(i);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=Uw(t),t){const r=Te.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||jM(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let i=!1;function o(s){if(s=Uw(s),s){const a=Te.findKey(r,s);a&&(!n||jM(r,r[a],a,n))&&(delete r[a],i=!0)}}return Te.isArray(t)?t.forEach(o):o(t),i}clear(t){const n=Object.keys(this);let r=n.length,i=!1;for(;r--;){const o=n[r];(!t||jM(this,this[o],o,t,!0))&&(delete this[o],i=!0)}return i}normalize(t){const n=this,r={};return Te.forEach(this,(i,o)=>{const s=Te.findKey(r,o);if(s){n[s]=kx(i),delete n[o];return}const a=t?rHe(o):String(o).trim();a!==o&&delete n[o],n[a]=kx(i),r[a]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return Te.forEach(this,(r,i)=>{r!=null&&r!==!1&&(n[i]=t&&Te.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(`
453`)}getSetCookie(){const t=this.get("set-cookie");return Te.isArray(t)?t:t==null||t===!1?[]:[t]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static parseParameters(t){return tHe(t)}static concat(t,...n){const r=new this(t);return n.forEach(i=>r.set(i)),r}static accessor(t){const r=(this[hJ]=this[hJ]={accessors:{}}).accessors,i=this.prototype;function o(s){const a=Uw(s);r[a]||(iHe(i,s),r[a]=!0)}return Te.isArray(t)?t.forEach(o):o(t),this}};_s.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);Te.reduceDescriptors(_s.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});Te.freezeMethods(_s);const pI="[REDACTED ****]";function oHe(e){if(Te.hasOwnProp(e,"toJSON"))return!0;let t=Object.getPrototypeOf(e);for(;t&&t!==Object.prototype;){if(Te.hasOwnProp(t,"toJSON"))return!0;t=Object.getPrototypeOf(t)}return!1}function sHe(e,t){const n=new Set(t.map(o=>String(o).toLowerCase())),r=[],i=o=>{if(o===null||typeof o!="object"||Te.isBuffer(o))return o;if(r.indexOf(o)!==-1)return;o instanceof _s&&(o=o.toJSON()),r.push(o);let s;if(Te.isArray(o))s=[],o.forEach((a,c)=>{const l=i(a);Te.isUndefined(l)||(s[c]=l)});else{if(!Te.isPlainObject(o)&&oHe(o))return r.pop(),o;s=Object.create(null);for(const[a,c]of Object.entries(o)){const l=n.has(a.toLowerCase())?pI:i(c);Te.isUndefined(l)||(s[a]=l)}}return r.pop(),s};return i(e)}function pJ(e){try{return String(e)}catch{return""}}function aHe(e){return e.errors.map(n=>{try{return n&&n.message?pJ(n.message):pJ(n)}catch{return""}}).filter(Boolean).join("; ")||e.name||"AggregateError"}let lt=class Kme extends Error{static from(t,n,r,i,o,s){let a=t.message;!a&&Te.isArray(t.errors)&&t.errors.length&&(a=aHe(t));const c=new Kme(a,n||t.code,r,i,o);return Object.defineProperty(c,"cause",{__proto__:null,value:t,writable:!0,enumerable:!1,configurable:!0}),c.name=t.name,t.status!=null&&c.status==null&&(c.status=t.status),s&&Object.assign(c,s),c}constructor(t,n,r,i,o){super(t),Object.defineProperty(this,"message",{__proto__:null,value:t,enumerable:!0,writable:!0,configurable:!0}),this.name="AxiosError",this.isAxiosError=!0,n&&(this.code=n),r&&(this.config=r),i&&(this.request=i),o&&(this.response=o,this.status=o.status)}toJSON(){const t=this.config,n=t&&Te.hasOwnProp(t,"redact")?t.redact:void 0,r=Te.isArray(n)&&n.length>0?sHe(t,n):Te.toJSONObject(t);return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:r,code:this.code,status:this.status}}};lt.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE";lt.ERR_BAD_OPTION="ERR_BAD_OPTION";lt.ECONNABORTED="ECONNABORTED";lt.ETIMEDOUT="ETIMEDOUT";lt.ECONNREFUSED="ECONNREFUSED";lt.ERR_NETWORK="ERR_NETWORK";lt.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS";lt.ERR_DEPRECATED="ERR_DEPRECATED";lt.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE";lt.ERR_BAD_REQUEST="ERR_BAD_REQUEST";lt.ERR_CANCELED="ERR_CANCELED";lt.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT";lt.ERR_INVALID_URL="ERR_INVALID_URL";lt.ERR_FORM_DATA_DEPTH_EXCEEDED="ERR_FORM_DATA_DEPTH_EXCEEDED";const cHe=null,Yme=100;function _j(e){return Te.isPlainObject(e)||Te.isArray(e)}function Qme(e){return Te.endsWith(e,"[]")?e.slice(0,-2):e}function UM(e,t,n){return e?e.concat(t).map(function(i,o){return i=Qme(i),!n&&o?"["+i+"]":i}).join(n?".":""):t}function lHe(e){return Te.isArray(e)&&!e.some(_j)}const uHe=Te.toFlatObject(Te,{},null,function(t){return/^is[A-Z]/.test(t)});function _P(e,t,n){if(!Te.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=Te.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(w,S){return!Te.isUndefined(S[w])});const r=n.metaTokens,i=n.visitor||g,o=n.dots,s=n.indexes,a=n.Blob||typeof Blob<"u"&&Blob,c=n.maxDepth===void 0?Yme:n.maxDepth,l=a&&Te.isSpecCompliantForm(t),u=[];if(!Te.isFunction(i))throw new TypeError("visitor must be a function");function d(v){if(v===null)return"";if(Te.isDate(v))return v.toISOString();if(Te.isBoolean(v))return v.toString();if(!l&&Te.isBlob(v))throw new lt("Blob is not supported. Use a Buffer instead.");if(Te.isArrayBuffer(v)||Te.isTypedArray(v)){if(l&&typeof a=="function")return new a([v]);throw new lt("Blob is not supported. Use a Buffer instead.",lt.ERR_NOT_SUPPORT)}return v}function f(v){if(v>c)throw new lt("Object is too deeply nested ("+v+" levels). Max depth: "+c,lt.ERR_FORM_DATA_DEPTH_EXCEEDED)}function p(v,w){if(c===1/0)return JSON.stringify(v);const S=[];return JSON.stringify(v,function(E,T){if(!Te.isObject(T))return T;for(;S.length&&S[S.length-1]!==this;)S.pop();return S.push(T),f(w+S.length-1),T})}function g(v,w,S){let C=v;if(Te.isReactNative(t)&&Te.isReactNativeBlob(v))return t.append(UM(S,w,o),d(v)),!1;if(v&&!S&&typeof v=="object"){if(Te.endsWith(w,"{}"))w=r?w:w.slice(0,-2),v=p(v,1);else if(Te.isArray(v)&&lHe(v)||(Te.isFileList(v)||Te.endsWith(w,"[]"))&&(C=Te.toArray(v)))return w=Qme(w),C.forEach(function(T,x){!(Te.isUndefined(T)||T===null)&&t.append(s===!0?UM([w],x,o):s===null?w:w+"[]",d(T))}),!1}return _j(v)?!0:(t.append(UM(S,w,o),d(v)),!1)}const m=Object.assign(uHe,{defaultVisitor:g,convertValue:d,isVisitable:_j});function y(v,w,S=0){if(!Te.isUndefined(v)){if(f(S),u.indexOf(v)!==-1)throw new Error("Circular reference detected in "+w.join("."));u.push(v),Te.forEach(v,function(E,T){(!(Te.isUndefined(E)||E===null)&&i.call(t,E,Te.isString(T)?T.trim():T,w,m))===!0&&y(E,w?w.concat(T):[T],S+1)}),u.pop()}}if(!Te.isObject(e))throw new TypeError("data must be an object");return y(e),t}function mJ(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"};return encodeURIComponent(e).replace(/[!'()~]|%20/g,function(r){return t[r]})}function R$(e,t){this._pairs=[],e&&_P(e,this,t)}const Xme=R$.prototype;Xme.append=function(t,n){this._pairs.push([t,n])};Xme.toString=function(t){const n=t?r=>t.call(this,r,mJ):mJ;return this._pairs.map(function(i){return n(i[0])+"="+n(i[1])},"").join("&")};function dHe(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function Jme(e,t,n){if(!t)return e;e=e||"";const r=Te.isFunction(n)?{serialize:n}:n,i=Te.getSafeProp(r,"encode")||dHe,o=Te.getSafeProp(r,"serialize");let s;if(o?s=o(t,r):s=Te.isURLSearchParams(t)?t.toString():new R$(t,r).toString(i),s){const a=e.indexOf("#");a!==-1&&(e=e.slice(0,a)),e+=(e.indexOf("?")===-1?"?":"&")+s}return e}class gJ{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){Te.forEach(this.handlers,function(r){r!==null&&t(r)})}}const P$={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0,advertiseZstdAcceptEncoding:!1,validateStatusUndefinedResolves:!0},fHe=typeof URLSearchParams<"u"?URLSearchParams:R$,hHe=typeof FormData<"u"?FormData:null,pHe=typeof Blob<"u"?Blob:null,mHe={isBrowser:!0,classes:{URLSearchParams:fHe,FormData:hHe,Blob:pHe},protocols:["http","https","file","blob","url","data"]},O$=typeof window<"u"&&typeof document<"u",Cj=typeof navigator=="object"&&navigator||void 0,gHe=O$&&(!Cj||["ReactNative","NativeScript","NS"].indexOf(Cj.product)<0),vHe=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",yHe=O$&&window.location.href||"http://localhost",bHe=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:O$,hasStandardBrowserEnv:gHe,hasStandardBrowserWebWorkerEnv:vHe,navigator:Cj,origin:yHe},Symbol.toStringTag,{value:"Module"})),is={...bHe,...mHe};function wHe(e,t){return _P(e,new is.classes.URLSearchParams,{visitor:function(n,r,i,o){return is.isNode&&Te.isBuffer(n)?(this.append(r,n.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)},...t})}const vJ=Yme;function Zme(e){if(e>vJ)throw new lt("FormData field is too deeply nested ("+e+" levels). Max depth: "+vJ,lt.ERR_FORM_DATA_DEPTH_EXCEEDED)}function SHe(e){const t=[],n=/[^.[\]]+|\[([^.[\]]*)]/g;let r;for(;(r=n.exec(e))!==null;)Zme(t.length),t.push(r[0]==="[]"?"":r[1]||r[0]);return t}function _He(e){const t={},n=Object.keys(e);let r;const i=n.length;let o;for(r=0;r<i;r++)o=n[r],t[o]=e[o];return t}function ege(e){function t(n,r,i,o){Zme(o);let s=n[o++];if(s==="__proto__")return!0;const a=Number.isFinite(+s),c=o>=n.length;return s=!s&&Te.isArray(i)?i.length:s,c?(Te.hasOwnProp(i,s)?i[s]=Te.isArray(i[s])?i[s].concat(r):[i[s],r]:i[s]=r,!a):((!Te.hasOwnProp(i,s)||!Te.isObject(i[s]))&&(i[s]=[]),t(n,r,i[s],o)&&Te.isArray(i[s])&&(i[s]=_He(i[s])),!a)}if(Te.isFormData(e)&&Te.isFunction(e.entries)){const n={};return Te.forEachEntry(e,(r,i)=>{t(SHe(r),i,n,0)}),n}return null}const f0=(e,t)=>e!=null&&Te.hasOwnProp(e,t)?e[t]:void 0;function CHe(e,t,n){if(Te.isString(e))try{return(t||JSON.parse)(e),Te.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const bE={transitional:P$,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const r=n.getContentType()||"",i=r.indexOf("application/json")>-1,o=Te.isObject(t);
vendor: 11,922 bytes, line 453
453if(o&&Te.isHTMLForm(t)&&(t=new FormData(t)),Te.isFormData(t))return i?JSON.stringify(ege(t)):t;if(Te.isArrayBuffer(t)||Te.isBuffer(t)||Te.isStream(t)||Te.isFile(t)||Te.isBlob(t)||Te.isReadableStream(t))return t;if(Te.isArrayBufferView(t))return t.buffer;if(Te.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let a;if(o){const c=f0(this,"formSerializer");if(r.indexOf("application/x-www-form-urlencoded")>-1)return wHe(t,c).toString();if((a=Te.isFileList(t))||r.indexOf("multipart/form-data")>-1){const l=f0(this,"env"),u=l&&l.FormData;return _P(a?{"files[]":t}:t,u&&new u,c)}}return o||i?(n.setContentType("application/json",!1),CHe(t)):t}],transformResponse:[function(t){const n=f0(this,"transitional")||bE.transitional,r=n&&n.forcedJSONParsing,i=f0(this,"responseType"),o=i==="json";if(Te.isResponse(t)||Te.isReadableStream(t))return t;if(t&&Te.isString(t)&&(r&&!i||o)){const a=!(n&&n.silentJSONParsing)&&o;try{return JSON.parse(t,f0(this,"parseReviver"))}catch(c){if(a)throw c.name==="SyntaxError"?lt.from(c,lt.ERR_BAD_RESPONSE,this,null,f0(this,"response")):c}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:is.classes.FormData,Blob:is.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};Te.forEach(["delete","get","head","post","put","patch","query"],e=>{bE.headers[e]={}});function BM(e,t){const n=this||bE,r=t||n,i=_s.from(r.headers);let o=r.data;return Te.forEach(e,function(a){o=a.call(n,o,i.normalize(),t?t.status:void 0)}),i.normalize(),o}function tge(e){return!!(e&&e.__CANCEL__)}let wE=class extends lt{constructor(t,n,r){super(t??"canceled",lt.ERR_CANCELED,n,r),this.name="CanceledError",this.__CANCEL__=!0}};function nge(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new lt("Request failed with status code "+n.status,n.status>=400&&n.status<500?lt.ERR_BAD_REQUEST:lt.ERR_BAD_RESPONSE,n.config,n.request,n))}function EHe(e){const t=/^([-+\w]{1,25}):(?:\/\/)?/.exec(e);return t&&t[1]||""}function THe(e,t){e=e||10;const n=new Array(e),r=new Array(e);let i=0,o=0,s;return t=t!==void 0?t:1e3,function(c){const l=Date.now(),u=r[o];s||(s=l),n[i]=c,r[i]=l;let d=o,f=0;for(;d!==i;)f+=n[d++],d=d%e;if(i=(i+1)%e,i===o&&(o=(o+1)%e),l-s<t)return;const p=u&&l-u;return p?Math.round(f*1e3/p):void 0}}function kHe(e,t){let n=0,r=1e3/t,i,o;const s=(l,u=Date.now())=>{n=u,i=null,o&&(clearTimeout(o),o=null),e(...l)};return[(...l)=>{const u=Date.now(),d=u-n;d>=r?s(l,u):(i=l,o||(o=setTimeout(()=>{o=null,s(i)},r-d)))},()=>i&&s(i)]}const mI=(e,t,n=3)=>{let r=0;const i=THe(50,250);return kHe(o=>{if(!o||typeof o.loaded!="number")return;const s=o.loaded,a=o.lengthComputable?o.total:void 0,c=Math.max(0,a!=null?Math.min(s,a):s),l=Math.max(0,c-r),u=i(l);r=Math.max(r,c);const d={loaded:c,total:a,progress:a?c/a:void 0,bytes:l,rate:u||void 0,estimated:u&&a?(a-c)/u:void 0,event:o,lengthComputable:a!=null,[t?"download":"upload"]:!0};e(d)},n)},yJ=(e,t)=>{const n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},bJ=(e,t=Te.asap)=>(...n)=>t(()=>e(...n)),xHe=is.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,is.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(is.origin),is.navigator&&/(msie|trident)/i.test(is.navigator.userAgent)):()=>!0,AHe=is.hasStandardBrowserEnv?{write(e,t,n,r,i,o,s){if(typeof document>"u")return;const a=[`${e}=${encodeURIComponent(t)}`];Te.isNumber(n)&&a.push(`expires=${new Date(n).toUTCString()}`),Te.isString(r)&&a.push(`path=${r}`),Te.isString(i)&&a.push(`domain=${i}`),o===!0&&a.push("secure"),Te.isString(s)&&a.push(`SameSite=${s}`),document.cookie=a.join("; ")},read(e){if(typeof document>"u")return null;const t=document.cookie.split(";");for(let n=0;n<t.length;n++){const r=t[n].replace(/^\s+/,""),i=r.indexOf("=");if(i!==-1&&r.slice(0,i)===e)try{return decodeURIComponent(r.slice(i+1))}catch{return r.slice(i+1)}}return null},remove(e){this.write(e,"",Date.now()-864e5,"/")}}:{write(){},read(){return null},remove(){}};function IHe(e){return typeof e!="string"?!1:/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function RHe(e,t){if(!t)return e;let n=e.length;for(;n>0&&e.charCodeAt(n-1)===47;)n--;return e.slice(0,n)+"/"+t.replace(/^\/+/,"")}const PHe=/^https?:(?!\/\/)/i,OHe=/[\t\n\r]/g;function NHe(e){let t=0;for(;t<e.length&&e.charCodeAt(t)<=32;)t++;return e.slice(t)}function MHe(e){return NHe(e).replace(OHe,"")}function DHe(e){return e&&e.replace(/(^|&)([^=&]*=)?[^&]+/g,(t,n,r="")=>`${n}${r}${pI}`)}function LHe(e){const t=e.replace(/^(https?:\/{0,2})[^/?#]*@/i,`$1${pI}@`),n=t.indexOf("#"),i=(n===-1?t:t.slice(0,n)).replace(/([?&][^=&#]*=)[^&#]*/g,`$1${pI}`);return n===-1?i:`${i}#${DHe(t.slice(n+1))}`}function wJ(e,t){if(typeof e=="string"){const n=MHe(e);if(PHe.test(n))throw new lt(`Invalid URL ${JSON.stringify(LHe(n))}: missing "//" after protocol`,lt.ERR_INVALID_URL,t)}}function rge(e,t,n,r){wJ(t,r);let i=!IHe(t);return e&&(i||n===!1)?(wJ(e,r),RHe(e,t)):t}const SJ=e=>e instanceof _s?{...e}:e,FHe=e=>Object.getOwnPropertySymbols&&Object.getOwnPropertyDescriptor?Object.keys(e).concat(Object.getOwnPropertySymbols(e).filter(t=>Object.getOwnPropertyDescriptor(e,t).enumerable)):Object.keys(e);function hv(e,t){e=e||{},t=t||{};const n=Object.create(null);Object.defineProperty(n,"hasOwnProperty",{__proto__:null,value:Object.prototype.hasOwnProperty,enumerable:!1,writable:!0,configurable:!0});function r(u,d,f,p){return Te.isPlainObject(u)&&Te.isPlainObject(d)?Te.merge.call({caseless:p},u,d):Te.isPlainObject(d)?Te.merge({},d):Te.isArray(d)?d.slice():d}function i(u,d,f,p){if(Te.isUndefined(d)){if(!Te.isUndefined(u))return r(void 0,u,f,p)}else return r(u,d,f,p)}function o(u,d){if(!Te.isUndefined(d))return r(void 0,d)}function s(u,d){if(Te.isUndefined(d)){if(!Te.isUndefined(u))return r(void 0,u)}else return r(void 0,d)}function a(u){const d=Te.hasOwnProp(t,"transitional")?t.transitional:void 0;if(!Te.isUndefined(d))if(Te.isPlainObject(d)){if(Te.hasOwnProp(d,u))return d[u]}else return;const f=Te.hasOwnProp(e,"transitional")?e.transitional:void 0;if(Te.isPlainObject(f)&&Te.hasOwnProp(f,u))return f[u]}function c(u,d,f){if(Te.hasOwnProp(t,f))return r(u,d);if(Te.hasOwnProp(e,f))return r(void 0,u)}const l={url:o,method:o,data:o,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,withXSRFToken:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,allowedSocketPaths:s,responseEncoding:s,validateStatus:c,headers:(u,d,f)=>i(SJ(u),SJ(d),f,!0)};return Te.forEach(FHe({...e,...t}),function(d){if(d==="__proto__"||d==="constructor"||d==="prototype")return;const f=Te.hasOwnProp(l,d)?l[d]:i,p=Te.hasOwnProp(e,d)?e[d]:void 0,g=Te.hasOwnProp(t,d)?t[d]:void 0,m=f(p,g,d);Te.isUndefined(m)&&f!==c||(n[d]=m)}),Te.hasOwnProp(t,"validateStatus")&&Te.isUndefined(t.validateStatus)&&a("validateStatusUndefinedResolves")===!1&&(Te.hasOwnProp(e,"validateStatus")?n.validateStatus=r(void 0,e.validateStatus):delete n.validateStatus),n}const jHe=["content-type","content-length"];function UHe(e,t,n){if(n!=="content-only"){e.set(t);return}Object.entries(t||{}).forEach(([r,i])=>{jHe.includes(r.toLowerCase())&&e.set(r,i)})}const BHe=e=>encodeURIComponent(e).replace(/%([0-9A-F]{2})/gi,(t,n)=>String.fromCharCode(parseInt(n,16)));function ige(e){const t=hv({},e),n=f=>Te.hasOwnProp(t,f)?t[f]:void 0,r=n("data");let i=n("withXSRFToken");const o=n("xsrfHeaderName"),s=n("xsrfCookieName");let a=n("headers");const c=n("auth"),l=n("baseURL"),u=n("allowAbsoluteUrls"),d=n("url");if(t.headers=a=_s.from(a),t.url=Jme(rge(l,d,u,t),n("params"),n("paramsSerializer")),c){const f=Te.getSafeProp(c,"username")||"",p=Te.getSafeProp(c,"password")||"";try{a.set("Authorization","Basic "+btoa(f+":"+(p?BHe(p):"")))}catch(g){throw lt.from(g,lt.ERR_BAD_OPTION_VALUE,e)}}if(Te.isFormData(r)&&(is.hasStandardBrowserEnv||is.hasStandardBrowserWebWorkerEnv||Te.isReactNative(r)?a.setContentType(void 0):Te.isFunction(r.getHeaders)&&UHe(a,r.getHeaders(),n("formDataHeaderPolicy"))),is.hasStandardBrowserEnv&&(Te.isFunction(i)&&(i=i(t)),i===!0||i==null&&xHe(t.url))){const p=o&&s&&AHe.read(s);p&&a.set(o,p)}return t}const $He=typeof XMLHttpRequest<"u",HHe=$He&&function(e){return new Promise(function(n,r){const i=ige(e);let o=i.data;const s=_s.from(i.headers).normalize();let{responseType:a,onUploadProgress:c,onDownloadProgress:l}=i,u,d,f,p,g;function m(){p&&p(),g&&g(),i.cancelToken&&i.cancelToken.unsubscribe(u),i.signal&&i.signal.removeEventListener("abort",u)}let y=new XMLHttpRequest;y.open(i.method.toUpperCase(),i.url,!0),y.timeout=i.timeout;function v(){if(!y)return;const S=_s.from("getAllResponseHeaders"in y&&y.getAllResponseHeaders()),E={data:!a||a==="text"||a==="json"?y.responseText:y.response,status:y.status,statusText:y.statusText,headers:S,config:e,request:y};nge(function(x){n(x),m()},function(x){r(x),m()},E),y=null}"onloadend"in y?y.onloadend=v:y.onreadystatechange=function(){!y||y.readyState!==4||y.status===0&&!(y.responseURL&&y.responseURL.startsWith("file:"))||setTimeout(v)},y.onabort=function(){y&&(r(new lt("Request aborted",lt.ECONNABORTED,e,y)),m(),y=null)},y.onerror=function(C){const E=C&&C.message?C.message:"Network Error",T=new lt(E,lt.ERR_NETWORK,e,y);T.event=C||null,r(T),m(),y=null},y.ontimeout=function(){let C=i.timeout?"timeout of "+i.timeout+"ms exceeded":"timeout exceeded";const E=i.transitional||P$;i.timeoutErrorMessage&&(C=i.timeoutErrorMessage),r(new lt(C,E.clarifyTimeoutError?lt.ETIMEDOUT:lt.ECONNABORTED,e,y)),m(),y=null},o===void 0&&s.setContentType(null),"setRequestHeader"in y&&Te.forEach(Gme(s),function(C,E){y.setRequestHeader(E,C)}),Te.isUndefined(i.withCredentials)||(y.withCredentials=!!i.withCredentials),a&&a!=="json"&&(y.responseType=i.responseType),l&&([f,g]=mI(l,!0),y.addEventListener("progress",f)),c&&y.upload&&([d,p]=mI(c),y.upload.addEventListener("progress",d),y.upload.addEventListener("loadend",p)),(i.cancelToken||i.signal)&&(u=S=>{y&&(r(!S||S.type?new wE(null,e,y):S),y.abort(),m(),y=null)},i.cancelToken&&i.cancelToken.subscribe(u),i.signal&&(i.signal.aborted?u():i.signal.addEventListener("abort",u)));const w=EHe(i.url);if(w&&!is.protocols.includes(w)){r(new lt("Unsupported protocol "+w+":",lt.ERR_BAD_REQUEST,e)),m();return}y.send(o||null)})},zHe=(e,t)=>{if(e=e?e.filter(Boolean):[],!t&&!e.length)return;const n=new AbortController;let r=!1;const i=function(c){if(!r){r=!0,s();const l=c instanceof Error?c:this.reason;n.abort(l instanceof lt?l:new wE(l instanceof Error?l.message:l))}};let o=t&&setTimeout(()=>{o=null,i(new lt(`timeout of ${t}ms exceeded`,lt.ETIMEDOUT))},t);const s=()=>{e&&(o&&clearTimeout(o),o=null,e.forEach(c=>{c.unsubscribe?c.unsubscribe(i):c.removeEventListener("abort",i)}),e=null)};e.forEach(c=>{if(!r){if(c.aborted){i.call(c);return}c.addEventListener("abort",i,{once:!0})}});const{signal:a}=n;return a.unsubscribe=()=>Te.asap(s),a},VHe=function*(e,t){let n=e.byteLength;if(n<t){yield e;return}let r=0,i;for(;r<n;)i=r+t,yield e.slice(r,i),r=i},WHe=async function*(e,t){for await(const n of qHe(e))yield*VHe(n,t)},qHe=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const t=e.getReader();try{for(;;){const{done:n,value:r}=await t.read();if(n)break;yield r}}finally{await t.cancel()}},_J=(e,t,n,r)=>{const i=WHe(e,t);let o=0,s,a=c=>{s||(s=!0,r&&r(c))};return new ReadableStream({async pull(c){try{const{done:l,value:u}=await i.next();if(l){a(),c.close();return}let d=u.byteLength;if(n){let f=o+=d;n(f)}c.enqueue(new Uint8Array(u))}catch(l){throw a(l),l}},cancel(c){return a(c),i.return()}},{highWaterMark:2})},CJ=e=>e>=48&&e<=57||e>=65&&e<=70||e>
453=97&&e<=102,oge=(e,t,n)=>t+2<n&&CJ(e.charCodeAt(t+1))&&CJ(e.charCodeAt(t+2)),EJ=e=>e<=57?e-48:(e&223)-55,GHe=e=>e>=65&&e<=90||e>=97&&e<=122||e>=48&&e<=57||e===43||e===47||e===45||e===95,KHe=e=>e===9||e===10||e===12||e===13||e===32,YHe=e=>{const t=Math.floor(e/4),n=e%4;return t*3+(n===2?1:n===3?2:0)},QHe=e=>{const t=e.length;let n=0;return t>0&&e.charCodeAt(t-1)===61&&(n++,t>1&&e.charCodeAt(t-2)===61&&n++),Math.floor((t-n)*3/4)},XHe=e=>{const t=e.length;let n=0,r=0,i=!1;for(let o=0;o<t;o++){let s=e.charCodeAt(o);if(s===37&&oge(e,o,t)&&(s=EJ(e.charCodeAt(o+1))*16+EJ(e.charCodeAt(o+2)),o+=2),!KHe(s)){if(s===61){r++;continue}if(!GHe(s)||r>0){i=!0;continue}n++}}return i||r>2||r>0&&(n+r)%4!==0||n%4===1?QHe(e):YHe(n)},JHe=(e,t)=>{if(!e||typeof e!="string"||!e.startsWith("data:"))return 0;const n=e.indexOf(",");if(n<0)return 0;const r=e.slice(5,n),i=e.slice(n+1);if(/;base64/i.test(r))return t(i);let s=0;for(let a=0,c=i.length;a<c;a++){const l=i.charCodeAt(a);if(l===37&&oge(i,a,c))s+=1,a+=2;else if(l<128)s+=1;else if(l<2048)s+=2;else if(l>=55296&&l<=56319&&a+1<c){const u=i.charCodeAt(a+1);u>=56320&&u<=57343?(s+=4,a++):s+=3}else s+=3}return s};function ZHe(e){const t=typeof e=="string"?e.indexOf("#"):-1;return JHe(t===-1?e:e.slice(0,t),XHe)}const N$="1.19.0",TJ=64*1024,{isFunction:ST}=Te,eze=e=>encodeURIComponent(e).replace(/%([0-9A-F]{2})/gi,(t,n)=>String.fromCharCode(parseInt(n,16))),kJ=e=>{if(!Te.isString(e))return e;try{return decodeURIComponent(e)}catch{return e}},xJ=(e,...t)=>{try{return!!e(...t)}catch{return!1}},tze=e=>{const t=e.indexOf("://");let n=e;return t!==-1&&(n=n.slice(t+3)),n.includes("@")||n.includes(":")},nze=e=>{const t=Te.global!==void 0&&Te.global!==null?Te.global:globalThis,{ReadableStream:n,TextEncoder:r}=t;e=Te.merge.call({skipUndefined:!0},{Request:t.Request,Response:t.Response},e);const{fetch:i,Request:o,Response:s}=e,a=i?ST(i):typeof fetch=="function",c=ST(o),l=ST(s);if(!a)return!1;const u=a&&ST(n),d=a&&(typeof r=="function"?(v=>w=>v.encode(w))(new r):async v=>new Uint8Array(await new o(v).arrayBuffer())),f=c&&u&&xJ(()=>{let v=!1;const w=new o(is.origin,{body:new n,method:"POST",get duplex(){return v=!0,"half"}}),S=w.headers.has("Content-Type");return w.body!=null&&w.body.cancel(),v&&!S}),p=l&&u&&xJ(()=>Te.isReadableStream(new s("").body)),g={stream:p&&(v=>v.body)};a&&["text","arrayBuffer","blob","formData","stream"].forEach(v=>{!g[v]&&(g[v]=(w,S)=>{let C=w&&w[v];if(C)return C.call(w);throw new lt(`Response type '${v}' is not supported`,lt.ERR_NOT_SUPPORT,S)})});const m=async v=>{if(v==null)return 0;if(Te.isBlob(v))return v.size;if(Te.isSpecCompliantForm(v))return(await new o(is.origin,{method:"POST",body:v}).arrayBuffer()).byteLength;if(Te.isArrayBufferView(v)||Te.isArrayBuffer(v))return v.byteLength;if(Te.isURLSearchParams(v)&&(v=v+""),Te.isString(v))return(await d(v)).byteLength},y=async(v,w)=>{const S=Te.toFiniteNumber(v.getContentLength());return S??m(w)};return async v=>{let{url:w,method:S,data:C,signal:E,cancelToken:T,timeout:x,onDownloadProgress:O,onUploadProgress:A,responseType:L,headers:U,withCredentials:I="same-origin",fetchOptions:F,maxContentLength:P,maxBodyLength:W}=ige(v);const ee=Te.isNumber(P)&&P>-1,Y=Te.isNumber(W)&&W>-1,X=ae=>Te.hasOwnProp(v,ae)?v[ae]:void 0;let Z=i||fetch;L=L?(L+"").toLowerCase():"text";let G=zHe([E,T&&T.toAbortSignal()],x),Q=null;const q=G&&G.unsubscribe&&(()=>{G.unsubscribe()});let z,ue=null;const ge=()=>new lt("Request body larger than maxBodyLength limit",lt.ERR_BAD_REQUEST,v,Q);try{let ae;const j=X("auth");if(j){const V=Te.getSafeProp(j,"username")||"",M=Te.getSafeProp(j,"password")||"";ae={username:V,password:M}}if(tze(w)){const V=new URL(w,is.origin);if(!ae&&(V.username||V.password)){const M=kJ(V.username),N=kJ(V.password);ae={username:M,password:N}}(V.username||V.password)&&(V.username="",V.password="",w=V.href)}if(ae&&(U.delete("authorization"),U.set("Authorization","Basic "+btoa(eze((ae.username||"")+":"+(ae.password||""))))),ee&&typeof w=="string"&&w.startsWith("data:")&&ZHe(w)>P)throw new lt("maxContentLength size of "+P+" exceeded",lt.ERR_BAD_RESPONSE,v,Q);if(Y&&S!=="get"&&S!=="head"){const V=await m(C);if(typeof V=="number"&&isFinite(V)&&(z=V,V>W))throw ge()}const B=Y&&(Te.isReadableStream(C)||Te.isStream(C)),re=(V,M,N)=>
vendor: 4,806 bytes, lines 453-455
453_J(V,TJ,$=>{if(Y&&$>W)throw ue=ge();M&&M($)},N);if(f&&S!=="get"&&S!=="head"&&(A||B)){if(z=z??await y(U,C),z!==0||B){let V=new o(w,{method:"POST",body:C,duplex:"half"}),M;if(Te.isFormData(C)&&(M=V.headers.get("content-type"))&&U.setContentType(M),V.body){const[N,$]=A&&yJ(z,mI(bJ(A)))||[];C=re(V.body,N,$)}}}else if(B&&!c&&u&&S!=="get"&&S!=="head")C=re(C);else if(B&&c&&!f&&S!=="get"&&S!=="head")throw new lt("Stream request bodies are not supported by the current fetch implementation",lt.ERR_NOT_SUPPORT,v,Q);Te.isString(I)||(I=I?"include":"omit");const oe=c&&"credentials"in o.prototype;if(Te.isFormData(C)){const V=U.getContentType();V&&/^multipart\/form-data/i.test(V)&&!/boundary=/i.test(V)&&U.delete("content-type")}U.set("User-Agent","axios/"+N$,!1);const ne={...F,signal:G,method:S.toUpperCase(),headers:Gme(U.normalize()),body:C,duplex:"half",credentials:oe?I:void 0};Q=c&&new o(w,ne);let J=await(c?Z(Q,F):Z(w,ne));const Se=_s.from(J.headers);if(ee){const V=Te.toFiniteNumber(Se.getContentLength());if(V!=null&&V>P)throw new lt("maxContentLength size of "+P+" exceeded",lt.ERR_BAD_RESPONSE,v,Q)}const H=p&&(L==="stream"||L==="response");if(p&&J.body&&(O||ee||H&&q)){const V={};["status","statusText","headers"].forEach(fe=>{V[fe]=J[fe]});const M=Te.toFiniteNumber(Se.getContentLength()),[N,$]=O&&yJ(M,mI(bJ(O),!0))||[];let ce=0;const pe=fe=>{if(ee&&(ce=fe,ce>P))throw new lt("maxContentLength size of "+P+" exceeded",lt.ERR_BAD_RESPONSE,v,Q);N&&N(fe)};J=new s(_J(J.body,TJ,pe,()=>{$&&$(),q&&q()}),V)}L=L||"text";let be=await g[Te.findKey(g,L)||"text"](J,v);if(ee&&!p&&!H){let V;if(be!=null&&(typeof be.byteLength=="number"?V=be.byteLength:typeof be.size=="number"?V=be.size:typeof be=="string"&&(V=typeof r=="function"?new r().encode(be).byteLength:be.length)),typeof V=="number"&&V>P)throw new lt("maxContentLength size of "+P+" exceeded",lt.ERR_BAD_RESPONSE,v,Q)}return!H&&q&&q(),await new Promise((V,M)=>{nge(V,M,{data:be,headers:_s.from(J.headers),status:J.status,statusText:J.statusText,config:v,request:Q})})}catch(ae){if(q&&q(),G&&G.aborted&&G.reason instanceof lt){const j=G.reason;throw j.config=v,Q&&(j.request=Q),ae!==j&&Object.defineProperty(j,"cause",{__proto__:null,value:ae,writable:!0,enumerable:!1,configurable:!0}),j}if(ue)throw Q&&!ue.request&&(ue.request=Q),ue;if(ae instanceof lt)throw Q&&!ae.request&&(ae.request=Q),ae;if(ae&&ae.name==="TypeError"&&/Load failed|fetch/i.test(ae.message)){const j=new lt("Network Error",lt.ERR_NETWORK,v,Q,ae&&ae.response);throw Object.defineProperty(j,"cause",{__proto__:null,value:ae.cause||ae,writable:!0,enumerable:!1,configurable:!0}),j}throw lt.from(ae,ae&&ae.code,v,Q,ae&&ae.response)}}},rze=new Map,sge=e=>{let t=e&&e.env||{};const{fetch:n,Request:r,Response:i}=t,o=[r,i,n];let s=o.length,a=s,c,l,u=rze;for(;a--;)c=o[a],l=u.get(c),l===void 0&&u.set(c,l=a?new Map:nze(t)),u=l;return l};sge();const M$={http:cHe,xhr:HHe,fetch:{get:sge}};Te.forEach(M$,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{__proto__:null,value:t})}catch{}Object.defineProperty(e,"adapterName",{__proto__:null,value:t})}});const AJ=e=>`- ${e}`,ize=e=>Te.isFunction(e)||e===null||e===!1;function oze(e,t){e=Te.isArray(e)?e:[e];const{length:n}=e;let r,i;const o={};for(let s=0;s<n;s++){r=e[s];let a;if(i=r,!ize(r)&&(i=M$[(a=String(r)).toLowerCase()],i===void 0))throw new lt(`Unknown adapter '${a}'`);if(i&&(Te.isFunction(i)||(i=i.get(t))))break;o[a||"#"+s]=i}if(!i){const s=Object.entries(o).map(([c,l])=>`adapter ${c} `+(l===!1?"is not supported by the environment":"is not available in the build"));let a=n?s.length>1?`since :
454`+s.map(AJ).join(`
455`):" "+AJ(s[0]):"as no adapter specified";throw new lt("There is no suitable adapter to dispatch the request "+a,lt.ERR_NOT_SUPPORT)}return i}const age={getAdapter:oze,adapters:M$};function $M(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new wE(null,e)}function HM(e){return $M(e),e.headers=_s.from(e.headers),e.data=BM.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),age.getAdapter(e.adapter||bE.adapter,e)(e).then(function(r){$M(e),e.response=r;try{r.data=BM.call(e,e.transformResponse,r)}finally{delete e.response}return r.headers=_s.from(r.headers),r},function(r){if(!tge(r)&&($M(e),r&&r.response)){e.response=r.response;try{r.response.data=BM.call(e,e.transformResponse,r.response)}finally{delete e.response}r.response.headers=_s.from(r.response.headers)}return Promise.reject(r)})}const CP={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{CP[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const IJ={};CP.transitional=function(t,n,r){function i(o,s){return"[Axios v"+N$+"] Transitional option '"+o+"'"+s+(r?". "+r:"")}return(o,s,a)=>
vendor: 8,629 bytes, lines 455-469
455{if(t===!1)throw new lt(i(s," has been removed"+(n?" in "+n:"")),lt.ERR_DEPRECATED);return n&&!IJ[s]&&(IJ[s]=!0,console.warn(i(s," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(o,s,a):!0}};CP.spelling=function(t){return(n,r)=>(console.warn(`${r} is likely a misspelling of ${t}`),!0)};function sze(e,t,n){if(typeof e!="object"||e===null)throw new lt("options must be an object",lt.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let i=r.length;for(;i-- >0;){const o=r[i],s=Object.prototype.hasOwnProperty.call(t,o)?t[o]:void 0;if(s){const a=e[o],c=a===void 0||s(a,o,e);if(c!==!0)throw new lt("option "+o+" must be "+c,lt.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new lt("Unknown option "+o,lt.ERR_BAD_OPTION)}}const xx={assertOptions:sze,validators:CP},ps=xx.validators;let Fg=class{constructor(t){this.defaults=t||{},this.interceptors={request:new gJ,response:new gJ}}async request(t,n){try{return await this._request(t,n)}catch(r){if(r instanceof Error){let i={};Error.captureStackTrace?Error.captureStackTrace(i):i=new Error;const o=(()=>{if(!i.stack)return"";const s=i.stack.indexOf(`
456`);return s===-1?"":i.stack.slice(s+1)})();try{if(!r.stack)r.stack=o;else if(o){const s=o.indexOf(`
457`),a=s===-1?-1:o.indexOf(`
458`,s+1),c=a===-1?"":o.slice(a+1);String(r.stack).endsWith(c)||(r.stack+=`
459`+o)}}catch{}}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=hv(this.defaults,n);const{transitional:r,paramsSerializer:i,headers:o}=n;r!==void 0&&xx.assertOptions(r,{silentJSONParsing:ps.transitional(ps.boolean),forcedJSONParsing:ps.transitional(ps.boolean),clarifyTimeoutError:ps.transitional(ps.boolean),legacyInterceptorReqResOrdering:ps.transitional(ps.boolean),advertiseZstdAcceptEncoding:ps.transitional(ps.boolean),validateStatusUndefinedResolves:ps.transitional(ps.boolean)},!1),i!=null&&(Te.isFunction(i)?n.paramsSerializer={serialize:i}:xx.assertOptions(i,{encode:ps.function,serialize:ps.function},!0)),n.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?n.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:n.allowAbsoluteUrls=!0),xx.assertOptions(n,{baseUrl:ps.spelling("baseURL"),withXsrfToken:ps.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let s=o&&Te.merge(o.common,o[n.method]);o&&Te.forEach(["delete","get","head","post","put","patch","query","common"],g=>{delete o[g]}),n.headers=_s.concat(s,o);const a=[];let c=!0;this.interceptors.request.forEach(function(m){if(typeof m.runWhen=="function"&&m.runWhen(n)===!1)return;c=c&&m.synchronous;const y=n.transitional||P$;y&&y.legacyInterceptorReqResOrdering?a.unshift(m.fulfilled,m.rejected):a.push(m.fulfilled,m.rejected)});const l=[];this.interceptors.response.forEach(function(m){l.push(m.fulfilled,m.rejected)});let u,d=0,f;if(!c){const g=[HM.bind(this),void 0];for(g.unshift(...a),g.push(...l),f=g.length,u=Promise.resolve(n);d<f;)u=u.then(g[d++],g[d++]);return u}f=a.length;let p=n;for(;d<f;){const g=a[d++],m=a[d++];try{p=g?g(p):p}catch(y){if(!m){u=Promise.reject(y);break}try{const v=m.call(this,y);Te.isThenable(v)&&(u=Promise.resolve(v).then(()=>HM.call(this,p)))}catch(v){u=Promise.reject(v)}break}}if(!u)try{u=HM.call(this,p)}catch(g){u=Promise.reject(g)}for(d=0,f=l.length;d<f;)u=u.then(l[d++],l[d++]);return u}getUri(t){t=hv(this.defaults,t);const n=rge(t.baseURL,t.url,t.allowAbsoluteUrls,t);return Jme(n,t.params,t.paramsSerializer)}};Te.forEach(["delete","get","head","options"],function(t){Fg.prototype[t]=function(n,r){return this.request(hv(r||{},{method:t,url:n,data:r&&Te.hasOwnProp(r,"data")?r.data:void 0}))}});Te.forEach(["post","put","patch","query"],function(t){function n(r){return function(o,s,a){return this.request(hv(a||{},{method:t,headers:r?{"Content-Type":"multipart/form-data"}:{},url:o,data:s}))}}Fg.prototype[t]=n(),t!=="query"&&(Fg.prototype[t+"Form"]=n(!0))});let aze=class cge{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(o){n=o});const r=this;this.promise.then(i=>{if(!r._listeners)return;let o=r._listeners.length;for(;o-- >0;)r._listeners[o](i);r._listeners=null}),this.promise.then=i=>{let o;const s=new Promise(a=>{r.subscribe(a),o=a}).then(i);return s.cancel=function(){r.unsubscribe(o)},s},t(function(o,s,a){r.reason||(r.reason=new wE(o,s,a),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const t=new AbortController,n=r=>{t.abort(r)};return this.subscribe(n),t.signal.unsubscribe=()=>this.unsubscribe(n),t.signal}static source(){let t;return{token:new cge(function(i){t=i}),cancel:t}}};function cze(e){return function(n){return e.apply(null,n)}}function lze(e){return Te.isObject(e)&&e.isAxiosError===!0}const Ej={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerReturnsAnUnknownError:520,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(Ej).forEach(([e,t])=>{Ej[t]=e});function lge(e){const t=new Fg(e),n=jme(Fg.prototype.request,t);return Te.extend(n,Fg.prototype,t,{allOwnKeys:!0}),Te.extend(n,t,null,{allOwnKeys:!0}),n.create=function(i){return lge(hv(e,i))},n}const Wi=lge(bE);Wi.Axios=Fg;Wi.CanceledError=wE;Wi.CancelToken=aze;Wi.isCancel=tge;Wi.VERSION=N$;Wi.toFormData=_P;Wi.AxiosError=lt;Wi.Cancel=Wi.CanceledError;Wi.all=function(t){return Promise.all(t)};Wi.spread=cze;Wi.isAxiosError=lze;Wi.mergeConfig=hv;Wi.AxiosHeaders=_s;Wi.formToJSON=e=>ege(Te.isHTMLForm(e)?new FormData(e):e);Wi.getAdapter=age.getAdapter;Wi.HttpStatusCode=Ej;Wi.default=Wi;const{Axios:oin,AxiosError:Sb,CanceledError:sin,isCancel:ain,CancelToken:cin,VERSION:lin,all:uin,Cancel:din,isAxiosError:D$,spread:fin,toFormData:hin,AxiosHeaders:pin,HttpStatusCode:Tj,formToJSON:min,getAdapter:gin,mergeConfig:vin,create:yin}=Wi;var Fc=function(){return Fc=Object.assign||function(t){for(var n,r=1,i=arguments.length;r<i;r++){n=arguments[r];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t},Fc.apply(this,arguments)};function SE(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}function uze(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,o;r<i;r++)(o||!(r in t))&&(o||(o=Array.prototype.slice.call(t,0,r)),o[r]=t[r]);return e.concat(o||Array.prototype.slice.call(t))}function uge(){return{"dependent-sdk-initialized-before-auth":"Another Firebase SDK was initialized and is trying to use Auth before Auth is initialized. Please be sure to call `initializeAuth` or `getAuth` before starting any other Firebase SDK."}}const dze=uge,dge=new nE("auth","Firebase",uge());/**
460 * @license
461 * Copyright 2020 Google LLC
462 *
463 * Licensed under the Apache License, Version 2.0 (the "License");
464 * you may not use this file except in compliance with the License.
465 * You may obtain a copy of the License at
466 *
467 *   http://www.apache.org/licenses/LICENSE-2.0
468 *
469 * Unless required by applicable law or agreed to in writing, softw
469are
470 * distributed under the License is distributed on an "AS IS" BASIS,
471 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
472 * See the License for the specific language governing permissions and
473 * limitations under the License.
474 */const gI=new nfe("@firebase/auth");function fze(e,...t){gI.logLevel<=pr.WARN&&gI.warn(`Auth (${iE}): ${e}`,...t)}function Ax(e,...t){gI.logLevel<=pr.ERROR&&gI.error(`Auth (${iE}): ${e}`,...t)}/**
475 * @license
476 * Copyright 2020 Google LLC
477 *
478 * Licensed under the Apache License, Version 2.0 (the "License");
479 * you may not use this file except in compliance with the License.
480 * You may obtain a copy of the License at
481 *
482 *   http://www.apache.org/licenses/LICENSE-2.0
483 *
484 * Unless required by applicable law or agreed to in writing, software
485 * distributed under the License is distributed on an "AS IS" BASIS,
486 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
487 * See the License for the specific language governing permissions and
488 * limitations under the License.
489 */function yd(e,...t){throw F$(e,...t)}function Ql(e,...t){return F$(e,...t)}function L$(e,t,n){const r=Object.assign(Object.assign({},dze()),{[t]:n});return new nE("auth","Firebase",r).create(t,{appName:e.name})}function jg(e){return L$(e,"operation-not-supported-in-this-environment","Operations that alter the current user are not supported in conjunction with FirebaseServerApp")}function hze(e,t,n){const r=n;if(!(t instanceof r))throw r.name!==t.constructor.name&&yd(e,"argument-error"),L$(e,"argument-error",`Type of ${t.constructor.name} does not match expected instance.Did you pass a reference from a different Auth SDK?`)}function F$(e,...t){if(typeof e!="string"){const n=t[0],r=[...t.slice(1)];return r[0]&&(r[0].appName=e.name),e._errorFactory.create(n,...r)}return dge.create(e,...t)}function Nt(e,t,...n){if(!e)throw F$(t,...n)}function If(e){const t="INTERNAL ASSERTION FAILED: "+e;throw Ax(t),new Error(t)}function nh(e,t){e||If(t)}/**
490 * @license
491 * Copyright 2020 Google LLC
492 *
493 * Licensed under the Apache License, Version 2.0 (the "License");
494 * you may not use this file except in compliance with the License.
495 * You may obtain a copy of the License at
496 *
497 *   http://www.apache.org/licenses/LICENSE-2.0
498 *
499 * Unless required by applicable law or agreed to in writing, software
500 * distributed under the License is distributed on an "AS IS" BASIS,
501 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
502 * See the License for the specific language governing permissions and
503 * limitations under the License.
504 */function kj(){var e;return typeof self<"u"&&((e=self.location)===null||e===void 0?void 0:e.href)||""}function pze(){return RJ()==="http:"||RJ()==="https:"}function RJ(){var e;return typeof self<"u"&&((e=self.location)===null||e===void 0?void 0:e.protocol)||null}/**
505 * @license
506 * Copyright 2020 Google LLC
507 *
508 * Licensed under the Apache License, Version 2.0 (the "License");
509 * you may not use this file except in compliance with the License.
510 * You may obtain a copy of the License at
511 *
512 *   http://www.apache.org/licenses/LICENSE-2.0
513 *
514 * Unless required by applicable law or agreed to in writing, software
515 * distributed under the License is distributed on an "AS IS" BASIS,
516 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
517 * See the License for the specific language governing permissions and
518 * limitations under the License.
519 */function mze(){return typeof navigator<"u"&&navigator&&"onLine"in navigator&&typeof navigator.onLine=="boolean"&&(pze()||c4e()||"connection"in navigator)?navigator.onLine:!0}function gze(){if(typeof navigator>"u")return null;const e=navigator;return e.languages&&e.languages[0]||e.language||null}/**
520 * @license
521 * Copyright 2020 Google LLC
522 *
523 * Licensed under the Apache License, Version 2.0 (the "License");
524 * you may not use this file except in compliance with the License.
525 * You may obtain a copy of the License at
526 *
527 *   http://www.apache.org/licenses/LICENSE-2.0
528 *
529 * Unless required by applicable law or agreed to in writing, softw
529are
530 * distributed under the License is distributed on an "AS IS" BASIS,
531 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
532 * See the License for the specific language governing permissions and
533 * limitations under the License.
534 */class _E{constructor(t,n){this.shortDelay=t,this.longDelay=n,nh(n>t,"Short delay should be less than long delay!"),this.isMobile=s4e()||l4e()}get(){return mze()?this.isMobile?this.longDelay:this.shortDelay:Math.min(5e3,this.shortDelay)}}/**
535 * @license
536 * Copyright 2020 Google LLC
537 *
538 * Licensed under the Apache License, Version 2.0 (the "License");
539 * you may not use this file except in compliance with the License.
540 * You may obtain a copy of the License at
541 *
542 *   http://www.apache.org/licenses/LICENSE-2.0
543 *
544 * Unless required by applicable law or agreed to in writing, software
545 * distributed under the License is distributed on an "AS IS" BASIS,
546 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
547 * See the License for the specific language governing permissions and
548 * limitations under the License.
549 */function j$(e,t){nh(e.emulator,"Emulator should always be set here");const{url:n}=e.emulator;return t?`${n}${t.startsWith("/")?t.slice(1):t}`:n}/**
550 * @license
551 * Copyright 2020 Google LLC
552 *
553 * Licensed under the Apache License, Version 2.0 (the "License");
554 * you may not use this file except in compliance with the License.
555 * You may obtain a copy of the License at
556 *
557 *   http://www.apache.org/licenses/LICENSE-2.0
558 *
559 * Unless required by applicable law or agreed to in writing, software
560 * distributed under the License is distributed on an "AS IS" BASIS,
561 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
562 * See the License for the specific language governing permissions and
563 * limitations under the License.
564 */class fge{static initialize(t,n,r){this.fetchImpl=t,n&&(this.headersImpl=n),r&&(this.responseImpl=r)}static fetch(){if(this.fetchImpl)return this.fetchImpl;if(typeof self<"u"&&"fetch"in self)return self.fetch;if(typeof globalThis<"u"&&globalThis.fetch)return globalThis.fetch;if(typeof fetch<"u")return fetch;If("Could not find fetch implementation, make sure you call FetchProvider.initialize() with an appropriate polyfill")}static headers(){if(this.headersImpl)return this.headersImpl;if(typeof self<"u"&&"Headers"in self)return self.Headers;if(typeof globalThis<"u"&&globalThis.Headers)return globalThis.Headers;if(typeof Headers<"u")return Headers;If("Could not find Headers implementation, make sure you call FetchProvider.initialize() with an appropriate polyfill")}static response(){if(this.responseImpl)return this.responseImpl;if(typeof self<"u"&&"Response"in self)return self.Response;if(typeof globalThis<"u"&&globalThis.Response)return globalThis.Response;if(typeof Response<"u")return Response;If("Could not find Response implementation, make sure you call FetchProvider.initialize() with an appropriate polyfill")}}/**
565 * @license
566 * Copyright 2020 Google LLC
567 *
568 * Licensed under the Apache License, Version 2.0 (the "License");
569 * you may not use this file except in compliance with the License.
570 * You may obtain a copy of the License at
571 *
572 *   http://www.apache.org/licenses/LICENSE-2.0
573 *
574 * Unless required by applicable law or agreed to in writing, software
575 * distributed under the License is distributed on an "AS IS" BASIS,
576 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
577 * See the License for the specific language governing permissions and
578 * limitations under the License.
579 */const vze={CREDENTIAL_MISMATCH:"custom-token-mismatch",MISSING_CUSTOM_TOKEN:"internal-error",INVALID_IDENTIFIER:"invalid-email",MISSING_CONTINUE_URI:"internal-error",INVALID_PASSWORD:"wrong-password",MISSING_PASSWORD:"missing-password",INVALID_LOGIN_CREDENTIALS:"invalid-credential",EMAIL_EXISTS:"email-already-in-use",PASSWORD_LOGIN_DISABLED:"operation-not-allowed",INVALID_IDP_RESPONSE:"invalid-credential",INVALID_PENDING_TOKEN:"invalid-credential",FEDERATED_USER_ID_ALREADY_LINKED:"credential-already-in-use",MISSING_REQ_TYPE:"internal-error",EMAIL_NOT_FOUND:"user-not-found",RESET_PASSWORD_EXCEED_LIMIT:"too-many-requests",EXPIRED_OOB_CODE:"expired-action-code",INVALID_OOB_CODE:"invalid-action-code",MISSING_OOB_CODE:"internal-error",CREDENTIAL_TOO_OLD_LOGIN_AGAIN:"requires-recent-login",INVALID_ID_TOKEN:"invalid-user-token",TOKEN_EXPIRED:"user-token-expired",USER_NOT_FOUND:"user-token-expired",TOO_MANY_ATTEMPTS_TRY_LATER:"too-many-requests",PASSWORD_DOES_NOT_MEET_REQUIREMENTS:"password-does-not-meet-requirements",INVALID_CODE:"invalid-verification-code",INVALID_SESSION_INFO:"invalid-verification-id",INVALID_TEMPORARY_PROOF:"invalid-credential",MISSING_SESSION_INFO:"missing-verification-id",SESSION_EXPIRED:"code-expired",MISSING_ANDROID_PACKAGE_NAME:"missing-android-pkg-name",UNAUTHORIZED_DOMAIN:"unauthorized-continue-uri",INVALID_OAUTH_CLIENT_ID:"invalid-oauth-client-id",ADMIN_ONLY_OPERATION:"admin-restricted-operation",INVALID_MFA_PENDING_CREDENTIAL:"invalid-multi-factor-session",MFA_ENROLLMENT_NOT_FOUND:"multi-factor-info-not-found",MISSING_MFA_ENROLLMENT_ID:"missing-multi-factor-info",MISSING_MFA_PENDING_CREDENTIAL:"missing-multi-factor-session",SECOND_FACTOR_EXISTS:"second-factor-already-in-use",SECOND_FACTOR_LIMIT_EXCEEDED:"maximum-second-factor-count-exceeded",BLOCKING_FUNCTION_ERROR_RESPONSE:"internal-error",RECAPTCHA_NOT_ENABLED:"recaptcha-not-enabled",MISSING_RECAPTCHA_TOKEN:"missing-rec
579aptcha-token",INVALID_RECAPTCHA_TOKEN:"invalid-recaptcha-token",INVALID_RECAPTCHA_ACTION:"invalid-recaptcha-action",MISSING_CLIENT_TYPE:"missing-client-type",MISSING_RECAPTCHA_VERSION:"missing-recaptcha-version",INVALID_RECAPTCHA_VERSION:"invalid-recaptcha-version",INVALID_REQ_TYPE:"invalid-req-type"};/**
580 * @license
581 * Copyright 2020 Google LLC
582 *
583 * Licensed under the Apache License, Version 2.0 (the "License");
584 * you may not use this file except in compliance with the License.
585 * You may obtain a copy of the License at
586 *
587 *   http://www.apache.org/licenses/LICENSE-2.0
588 *
589 * Unless required by applicable law or agreed to in writing, software
590 * distributed under the License is distributed on an "AS IS" BASIS,
591 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
592 * See the License for the specific language governing permissions and
593 * limitations under the License.
594 */const yze=new _E(3e4,6e4);function U$(e,t){return e.tenantId&&!t.tenantId?Object.assign(Object.assign({},t),{tenantId:e.tenantId}):t}async function _b(e,t,n,r,i={}){return hge(e,i,async()=>{let o={},s={};r&&(t==="GET"?s=r:o={body:JSON.stringify(r)});const a=rE(Object.assign({key:e.config.apiKey},s)).slice(1),c=await e._getAdditionalHeaders();c["Content-Type"]="application/json",e.languageCode&&(c["X-Firebase-Locale"]=e.languageCode);const l=Object.assign({method:t,headers:c},o);return a4e()||(l.referrerPolicy="no-referrer"),fge.fetch()(pge(e,e.config.apiHost,n,a),l)})}async function hge(e,t,n){e._canInitEmulator=!1;const r=Object.assign(Object.assign({},vze),t);try{const i=new wze(e),o=await Promise.race([n(),i.promise]);i.clearNetworkTimeout();const s=await o.json();if("needConfirmation"in s)throw _T(e,"account-exists-with-different-credential",s);if(o.ok&&!("errorMessage"in s))return s;{const a=o.ok?s.errorMessage:s.error.message,[c,l]=a.split(" : ");if(c==="FEDERATED_USER_ID_ALREADY_LINKED")throw _T(e,"credential-already-in-use",s);if(c==="EMAIL_EXISTS")throw _T(e,"email-already-in-use",s);if(c==="USER_DISABLED")throw _T(e,"user-disabled",s);const u=r[c]||c.toLowerCase().replace(/[_\s]+/g,"-");if(l)throw L$(e,u,l);yd(e,u)}}catch(i){if(i instanceof pd)throw i;yd(e,"network-request-failed",{message:String(i)})}}async function bze(e,t,n,r,i={}){const o=await _b(e,t,n,r,i);return"mfaPendingCredential"in o&&yd(e,"multi-factor-auth-required",{_serverResponse:o}),o}function pge(e,t,n,r){const i=`${t}${n}?${r}`;return e.config.emulator?j$(e.config,i):`${e.config.apiScheme}://${i}`}class wze{constructor(t){this.auth=t,this.timer=null,this.promise=new Promise((n,r)=>{this.timer=setTimeout(()=>r(Ql(this.auth,"network-request-failed")),yze.get())})}clearNetworkTimeout(){clearTimeout(this.timer)}}function _T(e,t,n){const r={appName:e.name};n.email&&(r.email=n.email),n.phoneNumber&&(r.phoneNumber=n.phoneNumber);const i=Ql(e,t,r);return i.customData._tokenResponse=n,i}/**
595 * @license
596 * Copyright 2020 Google LLC
597 *
598 * Licensed under the Apache License, Version 2.0 (the "License");
599 * you may not use this file except in compliance with the License.
600 * You may obtain a copy of the License at
601 *
602 *   http://www.apache.org/licenses/LICENSE-2.0
603 *
604 * Unless required by applicable law or agreed to in writing, software
605 * distributed under the License is distributed on an "AS IS" BASIS,
606 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
607 * See the License for the specific language governing permissions and
608 * limitations under the License.
609 */async function Sze(e,t){return _b(e,"POST","/v1/accounts:delete",t)}async function mge(e,t){return _b(e,"POST","/v1/accounts:lookup",t)}/**
610 * @license
611 * Copyright 2020 Google LLC
612 *
613 * Licensed under the Apache License, Version 2.0 (the "License");
614 * you may not use this file except in compliance with the License.
615 * You may obtain a copy of the License at
616 *
617 *   http://www.apache.org/licenses/LICENSE-2.0
618 *
619 * Unless required by applicable law or agreed to in writing, software
620 * distributed under the License is distributed on an "AS IS" BASIS,
621 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
622 * See the License for the specific language governing permissions and
623 * limitations under the License.
624 */function WS(e){if(e)try{const t=new Date(Number(e));if(!isNaN(t.getTime()))return t.toUTCString()}catch{}}async function _ze(e,t=!1){const n=hb(e),r=await n.getIdToken(t),i=B$(r);Nt(i&&i.exp&&i.auth_time&&i.iat,n.auth,"internal-error");const o=typeof i.firebase=="object"?i.firebase:void 0,s=o==null?void 0:o.sign_in_provider;return{claims:i,token:r,authTime:WS(zM(i.auth_time)),issuedAtTime:WS(zM(i.iat)),expirationTime:WS(zM(i.exp)),signInProvider:s||null,signInSecondFactor:(o==null?void 0:o.sign_in_second_factor)||null}}function zM(e){return Number(e)*1e3}function B$(e){const[t,n,r]=e.split(".");if(t===void 0||n===void 0||r===void 0)return Ax("JWT malformed, contained fewer than 3 sections"),null;try{const i=Zde(n);return i?JSON.parse(i):(Ax("Failed to decode base64 JWT payload"),null)}catch(i){return Ax("Caught error parsing JWT payload as JSON",i==null?void 0:i.toString()),null}}function PJ(e){const t=B$(e);
624return Nt(t,"internal-error"),Nt(typeof t.exp<"u","internal-error"),Nt(typeof t.iat<"u","internal-error"),Number(t.exp)-Number(t.iat)}/**
625 * @license
626 * Copyright 2020 Google LLC
627 *
628 * Licensed under the Apache License, Version 2.0 (the "License");
629 * you may not use this file except in compliance with the License.
630 * You may obtain a copy of the License at
631 *
632 *   http://www.apache.org/licenses/LICENSE-2.0
633 *
634 * Unless required by applicable law or agreed to in writing, software
635 * distributed under the License is distributed on an "AS IS" BASIS,
636 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
637 * See the License for the specific language governing permissions and
638 * limitations under the License.
639 */async function aC(e,t,n=!1){if(n)return t;try{return await t}catch(r){throw r instanceof pd&&Cze(r)&&e.auth.currentUser===e&&await e.auth.signOut(),r}}function Cze({code:e}){return e==="auth/user-disabled"||e==="auth/user-token-expired"}/**
640 * @license
641 * Copyright 2020 Google LLC
642 *
643 * Licensed under the Apache License, Version 2.0 (the "License");
644 * you may not use this file except in compliance with the License.
645 * You may obtain a copy of the License at
646 *
647 *   http://www.apache.org/licenses/LICENSE-2.0
648 *
649 * Unless required by applicable law or agreed to in writing, software
650 * distributed under the License is distributed on an "AS IS" BASIS,
651 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
652 * See the License for the specific language governing permissions and
653 * limitations under the License.
654 */class Eze{constructor(t){this.user=t,this.isRunning=!1,this.timerId=null,this.errorBackoff=3e4}_start(){this.isRunning||(this.isRunning=!0,this.schedule())}_stop(){this.isRunning&&(this.isRunning=!1,this.timerId!==null&&clearTimeout(this.timerId))}getInterval(t){var n;if(t){const r=this.errorBackoff;return this.errorBackoff=Math.min(this.errorBackoff*2,96e4),r}else{this.errorBackoff=3e4;const i=((n=this.user.stsTokenManager.expirationTime)!==null&&n!==void 0?n:0)-Date.now()-3e5;return Math.max(0,i)}}schedule(t=!1){if(!this.isRunning)return;const n=this.getInterval(t);this.timerId=setTimeout(async()=>{await this.iteration()},n)}async iteration(){try{await this.user.getIdToken(!0)}catch(t){(t==null?void 0:t.code)==="auth/network-request-failed"&&this.schedule(!0);return}this.schedule()}}/**
655 * @license
656 * Copyright 2020 Google LLC
657 *
658 * Licensed under the Apache License, Version 2.0 (the "License");
659 * you may not use this file except in compliance with the License.
660 * You may obtain a copy of the License at
661 *
662 *   http://www.apache.org/licenses/LICENSE-2.0
663 *
664 * Unless required by applicable law or agreed to in writing, software
665 * distributed under the License is distributed on an "AS IS" BASIS,
666 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
667 * See the License for the specific language governing permissions and
668 * limitations under the License.
669 */class xj{constructor(t,n){this.createdAt=t,this.lastLoginAt=n,this._initializeTime()}_initializeTime(){this.lastSignInTime=WS(this.lastLoginAt),this.creationTime=WS(this.createdAt)}_copy(t){this.createdAt=t.createdAt,this.lastLoginAt=t.lastLoginAt,this._initializeTime()}toJSON(){return{createdAt:this.createdAt,lastLoginAt:this.lastLoginAt}}}/**
670 * @license
671 * Copyright 2019 Google LLC
672 *
673 * Licensed under the Apache License, Version 2.0 (the "License");
674 * you may not use this file except in compliance with the License.
675 * You may obtain a copy of the License at
676 *
677 *   http://www.apache.org/licenses/LICENSE-2.0
678 *
679 * Unless required by applicable law or agreed to in writing, software
680 * distributed under the License is distributed on an "AS IS" BASIS,
681 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
682 * See the License for the specific language governing permissions and
683 * limitations under the License.
684 */async function vI(e){var t;const n=e.auth,r=await e.getIdToken(),i=await aC(e,mge(n,{idToken:r}));Nt(i==null?void 0:i.users.length,n,"internal-error");const o=i.users[0];e._notifyReloadListener(o);const s=!((t=o.providerUserInfo)===null||t===void 0)&&t.length?gge(o.providerUserInfo):[],a=kze(e.providerData,s),c=e.isAnonymous,l=!(e.email&&o.passwordHash)&&!(a!=null&&a.length),u=c?l:!1,d={uid:o.localId,displayName:o.displayName||null,photoURL:o.photoUrl||null,email:o.email||null,emailVerified:o.emailVerified||!1,phoneNumber:o.phoneNumber||null,tenantId:o.tenantId||null,providerData:a,metadata:new xj(o.createdAt,o.lastLoginAt),isAnonymous:u};Object.assign(e,d)}async function Tze(e){const t=hb(e);await vI(t),await t.auth._persistUserIfCurrent(t),t.auth._notifyListenersIfCurrent(t)}function kze(e,t){return[...e.filter(r=>!t.some(i=>i.providerId===r.providerId)),...t]}function gge(e){return e.map(t=>{var{providerId:n}=t,r=SE(t,["providerId"]);
684return{providerId:n,uid:r.rawId||"",displayName:r.displayName||null,email:r.email||null,phoneNumber:r.phoneNumber||null,photoURL:r.photoUrl||null}})}/**
685 * @license
686 * Copyright 2020 Google LLC
687 *
688 * Licensed under the Apache License, Version 2.0 (the "License");
689 * you may not use this file except in compliance with the License.
690 * You may obtain a copy of the License at
691 *
692 *   http://www.apache.org/licenses/LICENSE-2.0
693 *
694 * Unless required by applicable law or agreed to in writing, software
695 * distributed under the License is distributed on an "AS IS" BASIS,
696 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
697 * See the License for the specific language governing permissions and
698 * limitations under the License.
699 */async function xze(e,t){const n=await hge(e,{},async()=>{const r=rE({grant_type:"refresh_token",refresh_token:t}).slice(1),{tokenApiHost:i,apiKey:o}=e.config,s=pge(e,i,"/v1/token",`key=${o}`),a=await e._getAdditionalHeaders();return a["Content-Type"]="application/x-www-form-urlencoded",fge.fetch()(s,{method:"POST",headers:a,body:r})});return{accessToken:n.access_token,expiresIn:n.expires_in,refreshToken:n.refresh_token}}async function Aze(e,t){return _b(e,"POST","/v2/accounts:revokeToken",U$(e,t))}/**
700 * @license
701 * Copyright 2020 Google LLC
702 *
703 * Licensed under the Apache License, Version 2.0 (the "License");
704 * you may not use this file except in compliance with the License.
705 * You may obtain a copy of the License at
706 *
707 *   http://www.apache.org/licenses/LICENSE-2.0
708 *
709 * Unless required by applicable law or agreed to in writing, software
710 * distributed under the License is distributed on an "AS IS" BASIS,
711 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
712 * See the License for the specific language governing permissions and
713 * limitations under the License.
714 */class Oy{constructor(){this.refreshToken=null,this.accessToken=null,this.expirationTime=null}get isExpired(){return!this.expirationTime||Date.now()>this.expirationTime-3e4}updateFromServerResponse(t){Nt(t.idToken,"internal-error"),Nt(typeof t.idToken<"u","internal-error"),Nt(typeof t.refreshToken<"u","internal-error");const n="expiresIn"in t&&typeof t.expiresIn<"u"?Number(t.expiresIn):PJ(t.idToken);this.updateTokensAndExpiration(t.idToken,t.refreshToken,n)}updateFromIdToken(t){Nt(t.length!==0,"internal-error");const n=PJ(t);this.updateTokensAndExpiration(t,null,n)}async getToken(t,n=!1){return!n&&this.accessToken&&!this.isExpired?this.accessToken:(Nt(this.refreshToken,t,"user-token-expired"),this.refreshToken?(await this.refresh(t,this.refreshToken),this.accessToken):null)}clearRefreshToken(){this.refreshToken=null}async refresh(t,n){const{accessToken:r,refreshToken:i,expiresIn:o}=await xze(t,n);this.updateTokensAndExpiration(r,i,Number(o))}updateTokensAndExpiration(t,n,r){this.refreshToken=n||null,this.accessToken=t||null,this.expirationTime=Date.now()+r*1e3}static fromJSON(t,n){const{refreshToken:r,accessToken:i,expirationTime:o}=n,s=new Oy;return r&&(Nt(typeof r=="string","internal-error",{appName:t}),s.refreshToken=r),i&&(Nt(typeof i=="string","internal-error",{appName:t}),s.accessToken=i),o&&(Nt(typeof o=="number","internal-error",{appName:t}),s.expirationTime=o),s}toJSON(){return{refreshToken:this.refreshToken,accessToken:this.accessToken,expirationTime:this.expirationTime}}_assign(t){this.accessToken=t.accessToken,this.refreshToken=t.refreshToken,this.expirationTime=t.expirationTime}_clone(){return Object.assign(new Oy,this.toJSON())}_performRefresh(){return If("not implemented")}}/**
715 * @license
716 * Copyright 2020 Google LLC
717 *
718 * Licensed under the Apache License, Version 2.0 (the "License");
719 * you may not use this file except in compliance with the License.
720 * You may obtain a copy of the License at
721 *
722 *   http://www.apache.org/licenses/LICENSE-2.0
723 *
724 * Unless required by applicable law or agreed to in writing, software
725 * distributed under the License is distributed on an "AS IS" BASIS,
726 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
727 * See the License for the specific language governing permissions and
728 * limitations under the License.
729 */function Fh(e,t){Nt(typeof e=="string"||typeof e>"u","internal-error",{appName:t})}class Rf{constructor(t){var{uid:n,auth:r,stsTokenManager:i}=t,o=SE(t,["uid","auth","stsTokenManager"]);this.providerId="firebase",this.proactiveRefresh=new Eze(this),this.reloadUserInfo=null,this.reloadListener=null,this.uid=n,this.auth=r,this.stsTokenManager=i,this.accessToken=i.accessToken,this.displayName=o.displayName||null,this.email=o.email||null,this.emailVerified=o.emailVerified||!1,this.phoneNumber=o.phoneNumber||null,this.photoURL=o.photoURL||null,this.isAnonymous=o.isAnonymous||!1,this.tenantId=o.tenantId||null,this.providerData=o.providerData?[...o.providerData]:[],this.metadata=new xj(o.createdAt||void 0,o.lastLoginAt||void 0)}async getIdToken(t){const n=await aC(this,this.stsTokenManager.getToken(this.auth,t));return Nt(n,this.auth,"internal-error"),this.accessToken!==n&&(this.accessToken=n,await this.auth._persistUserIfCurrent(this),this.auth._notifyListenersIfCurrent(this)),n}getIdTokenResult(t){return _ze(this,t)}reload(){return Tze(this)}_assign(t){this!==t&&(Nt(this.uid===t.uid,this.auth,"internal-error"),this.displayName=t.displayName,this.photoURL=t.photoURL,this.email=t.email,this.emailVerified=t.emailVerified,this.phoneNumber=t.phoneNumber,this.isAnonymous=t.isAnonymous,this.tenantId=t.tenantId,this.providerData=t.providerData.map(n=>Object.assign({},n)),this.metadata._copy(t.metadata),this.stsTokenManager._assign(t.stsTokenManager))}_clone(t){const n=new Rf(Object.assign(Object.assign({},this),{auth:t,stsTokenManager:this.stsTokenManager._clone()}));return n.metadata._copy(this.metadata),n}_onReload(t){Nt(!this.reloadListener,this.auth,"internal-error"),this.reloadListener=t,this.reloadUserInfo&&(this._notifyReloadListener(this.reloadUserInfo),this.reloadUserInfo=null)}_notifyReloadListener(t){this.reloadListener?this.reloadListener(t):this.reloadUserInfo=t}_startProactiveRefresh(){this.proactiveRefresh._start()}_stopProactiveRefresh(){this.proactiveRefresh._stop()}async _updateTokensIfNecessary(t,n=!1){let r=!1;t.idToken&&t.idToken!==this.stsTokenManager.accessToken&&(this.stsTokenManager.updateFromServerResponse(t),r=!0),n&&await vI(this),await this.auth._persistUserIfCurrent(this),r&&this.auth._notifyListenersIfCurrent(this)}async delete(){if(Af(this.auth.app))return Promise.reject(jg(this.auth));const t=await this.getIdToken();return await aC(this,Sze(this.auth,{idToken:t})),this.stsTokenManager.clearRefreshToken(),this.auth.signOut()}toJSON(){return Object.assign(Object.assign({uid:this.uid,email:this.email||void 0,emailVerified:this.emailVerified,displayName:this.displayName||void 0,isA
729nonymous:this.isAnonymous,photoURL:this.photoURL||void 0,phoneNumber:this.phoneNumber||void 0,tenantId:this.tenantId||void 0,providerData:this.providerData.map(t=>Object.assign({},t)),stsTokenManager:this.stsTokenManager.toJSON(),_redirectEventId:this._redirectEventId},this.metadata.toJSON()),{apiKey:this.auth.config.apiKey,appName:this.auth.name})}get refreshToken(){return this.stsTokenManager.refreshToken||""}static _fromJSON(t,n){var r,i,o,s,a,c,l,u;const d=(r=n.displayName)!==null&&r!==void 0?r:void 0,f=(i=n.email)!==null&&i!==void 0?i:void 0,p=(o=n.phoneNumber)!==null&&o!==void 0?o:void 0,g=(s=n.photoURL)!==null&&s!==void 0?s:void 0,m=(a=n.tenantId)!==null&&a!==void 0?a:void 0,y=(c=n._redirectEventId)!==null&&c!==void 0?c:void 0,v=(l=n.createdAt)!==null&&l!==void 0?l:void 0,w=(u=n.lastLoginAt)!==null&&u!==void 0?u:void 0,{uid:S,emailVerified:C,isAnonymous:E,providerData:T,stsTokenManager:x}=n;Nt(S&&x,t,"internal-error");const O=Oy.fromJSON(this.name,x);Nt(typeof S=="string",t,"internal-error"),Fh(d,t.name),Fh(f,t.name),Nt(typeof C=="boolean",t,"internal-error"),Nt(typeof E=="boolean",t,"internal-error"),Fh(p,t.name),Fh(g,t.name),Fh(m,t.name),Fh(y,t.name),Fh(v,t.name),Fh(w,t.name);const A=new Rf({uid:S,auth:t,email:f,emailVerified:C,displayName:d,isAnonymous:E,photoURL:g,phoneNumber:p,tenantId:m,stsTokenManager:O,createdAt:v,lastLoginAt:w});return T&&Array.isArray(T)&&(A.providerData=T.map(L=>Object.assign({},L))),y&&(A._redirectEventId=y),A}static async _fromIdTokenResponse(t,n,r=!1){const i=new Oy;i.updateFromServerResponse(n);const o=new Rf({uid:n.localId,auth:t,stsTokenManager:i,isAnonymous:r});return await vI(o),o}static async _fromGetAccountInfoResponse(t,n,r){const i=n.users[0];Nt(i.localId!==void 0,"internal-error");const o=i.providerUserInfo!==void 0?gge(i.providerUserInfo):[],s=!(i.email&&i.passwordHash)&&!(o!=null&&o.length),a=new Oy;a.updateFromIdToken(r);const c=new Rf({uid:i.localId,auth:t,stsTokenManager:a,isAnonymous:s}),l={uid:i.localId,displayName:i.displayName||null,photoURL:i.photoUrl||null,email:i.email||null,emailVerified:i.emailVerified||!1,phoneNumber:i.phoneNumber||null,tenantId:i.tenantId||null,providerData:o,metadata:new xj(i.createdAt,i.lastLoginAt),isAnonymous:!(i.email&&i.passwordHash)&&!(o!=null&&o.length)};return Object.assign(c,l),c}}/**
730 * @license
731 * Copyright 2020 Google LLC
732 *
733 * Licensed under the Apache License, Version 2.0 (the "License");
734 * you may not use this file except in compliance with the License.
735 * You may obtain a copy of the License at
736 *
737 *   http://www.apache.org/licenses/LICENSE-2.0
738 *
739 * Unless required by applicable law or agreed to in writing, software
740 * distributed under the License is distributed on an "AS IS" BASIS,
741 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
742 * See the License for the specific language governing permissions and
743 * limitations under the License.
744 */const OJ=new Map;function Pf(e){nh(e instanceof Function,"Expected a class definition");let t=OJ.get(e);return t?(nh(t instanceof e,"Instance stored in cache mismatched with class"),t):(t=new e,OJ.set(e,t),t)}/**
745 * @license
746 * Copyright 2019 Google LLC
747 *
748 * Licensed under the Apache License, Version 2.0 (the "License");
749 * you may not use this file except in compliance with the License.
750 * You may obtain a copy of the License at
751 *
752 *   http://www.apache.org/licenses/LICENSE-2.0
753 *
754 * Unless required by applicable law or agreed to in writing, software
755 * distributed under the License is distributed on an "AS IS" BASIS,
756 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
757 * See the License for the specific language governing permissions and
758 * limitations under the License.
759 */class vge{constructor(){this.type="NONE",this.storage={}}async _isAvailable(){return!0}async _set(t,n){this.storage[t]=n}async _get(t){const n=this.storage[t];return n===void 0?null:n}async _remove(t){delete this.storage[t]}_addListener(t,n){}_removeListener(t,n){}}vge.type="NONE";const NJ=vge;/**
760 * @license
761 * Copyright 2019 Google LLC
762 *
763 * Licensed under the Apache License, Version 2.0 (the "License");
764 * you may not use this file except in compliance with the License.
765 * You may obtain a copy of the License at
766 *
767 *   http://www.apache.org/licenses/LICENSE-2.0
768 *
769 * Unless required by applicable law or agreed to in writing, software
770 * distributed under the License is distributed on an "AS IS" BASIS,
771 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
772 * See the License for the specific language governing permissions and
773 * limitations under the License.
774 */function Ix(e,t,n){return`firebase:${e}:${t}:${n}`}class Ny{constructor(t,n,r){this.persistence=t,this.auth=n,this.userKey=r;const{config:i,name:o}=this.auth;this.fullUserKey=Ix(this.userKey,i.apiKey,o),this.fullPersistenceKey=Ix("persistence",i.apiKey,o),this.boundEventHandler=n._onStorageEvent.bind(n),this.persistence._addListener(this.fullUserKey,this.boundEventHandler)}setCurrentUser(t){return this.persistence._set(this.fullUserKey,t.toJSON())}async getCurrentUser(){const t=await this.persistence._get(this.fullUserKey);return t?Rf._fromJSON(this.auth,t):null}removeCurrentUser(){return this.persistence._remove(this.fullUserKey)}savePersistenceForRedirect(){return this.persistence._set(this.fullPersistenceKey,this.persistence.type)}async setPersistence(t){if(this.persistence===t)return;const n=await this.getCurrentUser();if(await this.removeCurrentUser(),this.persistence=t,n)return this.setCurrentUser(n)}delete(){this.persistence._removeListener(this.fullUserKey,this.boundEventHandler)}static async create(t,n,r="authUser"){if(!n.length)return new Ny(Pf(NJ),t,r);const i=(await Promise.all(n.map(async l=>{if(await l._isAvailable())return l}))).filter(l=>l);let o=i[0]||Pf(NJ);const s=Ix(r,t.config.apiKey,t.name);let a=null;for(const l of n)try{const u=await l._get(s);if(u){const d=Rf._fromJSON(t,u);l!==o&&(a=d),o=l;break}}catch{}const c=i.filter(l=>l._shouldAllowMigration);return!o._shouldAllowMigration||!c.length?new Ny(o,t,r):(o=c[0],a&&await o._set(s,a.toJSON()),await Promise.all(n.map(async l=>{if(l!==o)try{await l._remove(s)}catch{}})),new Ny(o,t,r))}}/**
775 * @license
776 * Copyright 2020 Google LLC
777 *
778 * Licensed under the Apache License, Version 2.0 (the "License");
779 * you may not use this file except in compliance with the License.
780 * You may obtain a copy of the License at
781 *
782 *   http://www.apache.org/licenses/LICENSE-2.0
783 *
784 * Unless required by applicable law or agreed to in writing, software
785 * distributed under the License is distributed on an "AS IS" BASIS,
786 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
787 * See the License for the specific language governing permissions and
788 * limitations under the License.
789 */function MJ(e){const t=e.toLowerCase();if(t.includes("opera/")||t.includes("opr/")||t.includes("opios/"))return"Opera";if(Sge(t))return"IEMobile";if(t.includes("msie")||t.includes("trident/"))return"IE";if(t.includes("edge/"))return"Edge";if(yge(t))return"Firefox";if(t.includes("silk/"))return"Silk";if(Cge(t))return"Blackberry";if(Ege(t))return"Webos";if(bge(t))return"Safari";if((t.includes("chrome/")||wge(t))&&!t.includes("edge/"))return"Chrome";if(_ge(t))return"Android";{const n=/([a-zA-Z\d\.]+)\/[a-zA-Z\d\.]*$/,r=e.match(n);if((r==null?void 0:r.length)===2)return r[1]}return"Other"}function yge(e=ea()){return/firefox\//i.test(e)}function bge(e=ea()){const t=e.toLowerCase();return t.includes("safari/")&&!t.includes("chrome/")&&!t.includes("crios/")&&!t.includes("android")}function wge(e=ea()){return/crios\//i.test(e)}function Sge(e=ea()){return/iemobile/i.test(e)}function _ge(e=ea()){return/android/i.test(e)}function Cge(e=ea()){return/blackberry/i.test(e)}function Ege(e=ea()){return/webos/i.test(e)}function $$(e=ea()){return/iphone|ipad|ipod/i.test(e)||/macintosh/i.test(e)&&/mobile/i.test(e)}function Ize(e=ea()){var t;return $$(e)&&!!(!((t=window.navigator)===null||t===void 0)&&t.standalone)}function Rze(){return u4e()&&document.documentMode===10}function Tge(e=ea()){return $$(e)||_ge(e)||Ege(e)||Cge(e)||/windows phone/i.test(e)||Sge(e)}/**
790 * @license
791 * Copyright 2020 Google LLC
792 *
793 * Licensed under the Apache License, Version 2.0 (the "License");
794 * you may not use this file except in compliance with the License.
795 * You may obtain a copy of the License at
796 *
797 *   http://www.apache.org/licenses/LICENSE-2.0
798 *
799 * Unless required by applicable law or agreed to in writing, software
800 * distributed under the License is distributed on an "AS IS" BASIS,
801 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
802 * See the License for the specific language governing permissions and
803 * limitations under the License.
804 */function kge(e,t=[]){let n;switch(e){case"Browser":n=MJ(ea());break;case"Worker":n=`${MJ(ea())}-${e}`;break;default:n=e}const r=t.length?t.join(","):"FirebaseCore-web";return`${n}/JsCore/${iE}/${r}`}/**
805 * @license
806 * Copyright 2022 Google LLC
807 *
808 * Licensed under the Apache License, Version 2.0 (the "License");
809 * you may not use this file except in compliance with the License.
810 * You may obtain a copy of the License at
811 *
812 *   http://www.apache.org/licenses/LICENSE-2.0
813 *
814 * Unless required by applicable law or agreed to in writing, software
815 * distributed under the License is distributed on an "AS IS" BASIS,
816 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
817 * See the License for the specific language governing permissions and
818 * limitations under the License.
819 */class Pze{constructor(t){this.auth=t,this.queue=[]}pushCallback(t,n){const r=o=>new Promise((s,a)=>{try{const c=t(o);s(c)}catch(c){a(c)}});r.onAbort=n,this.queue.push(r);const i=this.queue.length-1;return()=>{this.queue[i]=()=>Promise.resolve()}}async runMiddleware(t){if(this.auth.currentUser===t)return;const n=[];try{for(const r of this.queue)await r(t),r.onAbort&&n.push(r.onAbort)}catch(r){n.reverse();for(const i of n)try{i()}catch{}throw this.auth._errorFactory.create("login-blocked",{originalMessage:r==null?void 0:r.message})}}}/**
820 * @license
821 * Copyright 2023 Google LLC
822 *
823 * Licensed under the Apache License, Version 2.0 (the "License");
824 * you may not use this file except in compliance with the License.
825 * You may obtain a copy of the License at
826 *
827 *   http://www.apache.org/licenses/LICENSE-2.0
828 *
829 * Unless required by applicable law or agreed to in writing, software
830 * distributed under the License is distributed on an "AS IS" BASIS,
831 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
832 * See the License for the specific language governing permissions and
833 * limitations under the License.
834 */async function Oze(e,t={}){return _b(e,"GET","/v2/passwordPolicy",U$(e,t))}/**
835 * @license
836 * Copyright 2023 Google LLC
837 *
838 * Licensed under the Apache License, Version 2.0 (the "License");
839 * you may not use this file except in compliance with the License.
840 * You may obtain a copy of the License at
841 *
842 *   http://www.apache.org/licenses/LICENSE-2.0
843 *
844 * Unless required by applicable law or agreed to in writing, software
845 * distributed under the License is distributed on an "AS IS" BASIS,
846 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
847 * See the License for the specific language governing permissions and
848 * limitations under the License.
849 */const Nze=6;class Mze{constructor(t){var n,r,i,o;const s=t.customStrengthOptions;this.customStrengthOptions={},this.customStrengthOptions.minPasswordLength=(n=s.minPasswordLength)!==null&&n!==void 0?n:Nze,s.maxPasswordLength&&(this.customStrengthOptions.maxPasswordLength=s.maxPasswordLength),s.containsLowercaseCharacter!==void 0&&(this.customStrengthOptions.containsLowercaseLetter=s.containsLowercaseCharacter),s.containsUppercaseCharacter!==void 0&&(this.customStrengthOptions.containsUppercaseLetter=s.containsUppercaseCharacter),s.containsNumericCharacter!==void 0&&(this.customStrengthOptions.containsNumericCharacter=s.containsNumericCharacter),s.containsNonAlphanumericCharacter!==void 0&&(this.customStrengthOptions.containsNonAlphanumericCharacter=s.containsNonAlphanumericCharacter),this.enforcementState=t.enforcementState,this.enforcementState==="ENFORCEMENT_STATE_UNSPECIFIED"&&(this.enforcementState="OFF"),this.allowedNonAlphanumericCharacters=(i=(r=t.allowedNonAlphanumericCharacters)===null||r===void 0?void 0:r.join(""))!==null&&i!==void 0?i:"",this.forceUpgradeOnSignin=(o=t.forceUpgradeOnSignin)!==null&&o!==void 0?o:!1,this.schemaVersion=t.schemaVersion}validatePassword(t){var n,r,i,o,s,a;const c={isValid:!0,passwordPolicy:this};return this.validatePasswordLengthOptions(t,c),this.validatePasswordCharacterOptions(t,c),c.isValid&&
849(c.isValid=(n=c.meetsMinPasswordLength)!==null&&n!==void 0?n:!0),c.isValid&&(c.isValid=(r=c.meetsMaxPasswordLength)!==null&&r!==void 0?r:!0),c.isValid&&(c.isValid=(i=c.containsLowercaseLetter)!==null&&i!==void 0?i:!0),c.isValid&&(c.isValid=(o=c.containsUppercaseLetter)!==null&&o!==void 0?o:!0),c.isValid&&(c.isValid=(s=c.containsNumericCharacter)!==null&&s!==void 0?s:!0),c.isValid&&(c.isValid=(a=c.containsNonAlphanumericCharacter)!==null&&a!==void 0?a:!0),c}validatePasswordLengthOptions(t,n){const r=this.customStrengthOptions.minPasswordLength,i=this.customStrengthOptions.maxPasswordLength;r&&(n.meetsMinPasswordLength=t.length>=r),i&&(n.meetsMaxPasswordLength=t.length<=i)}validatePasswordCharacterOptions(t,n){this.updatePasswordCharacterOptionsStatuses(n,!1,!1,!1,!1);let r;for(let i=0;i<t.length;i++)r=t.charAt(i),this.updatePasswordCharacterOptionsStatuses(n,r>="a"&&r<="z",r>="A"&&r<="Z",r>="0"&&r<="9",this.allowedNonAlphanumericCharacters.includes(r))}updatePasswordCharacterOptionsStatuses(t,n,r,i,o){this.customStrengthOptions.containsLowercaseLetter&&(t.containsLowercaseLetter||(t.containsLowercaseLetter=n)),this.customStrengthOptions.containsUppercaseLetter&&(t.containsUppercaseLetter||(t.containsUppercaseLetter=r)),this.customStrengthOptions.containsNumericCharacter&&(t.containsNumericCharacter||(t.containsNumericCharacter=i)),this.customStrengthOptions.containsNonAlphanumericCharacter&&(t.containsNonAlphanumericCharacter||(t.containsNonAlphanumericCharacter=o))}}/**
850 * @license
851 * Copyright 2020 Google LLC
852 *
853 * Licensed under the Apache License, Version 2.0 (the "License");
854 * you may not use this file except in compliance with the License.
855 * You may obtain a copy of the License at
856 *
857 *   http://www.apache.org/licenses/LICENSE-2.0
858 *
859 * Unless required by applicable law or agreed to in writing, software
860 * distributed under the License is distributed on an "AS IS" BASIS,
861 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
862 * See the License for the specific language governing permissions and
863 * limitations under the License.
864 */class Dze{constructor(t,n,r,i){this.app=t,this.heartbeatServiceProvider=n,this.appCheckServiceProvider=r,this.config=i,this.currentUser=null,this.emulatorConfig=null,this.operations=Promise.resolve(),this.authStateSubscription=new DJ(this),this.idTokenSubscription=new DJ(this),this.beforeStateQueue=new Pze(this),this.redirectUser=null,this.isProactiveRefreshEnabled=!1,this.EXPECTED_PASSWORD_POLICY_SCHEMA_VERSION=1,this._canInitEmulator=!0,this._isInitialized=!1,this._deleted=!1,this._initializationPromise=null,this._popupRedirectResolver=null,this._errorFactory=dge,this._agentRecaptchaConfig=null,this._tenantRecaptchaConfigs={},this._projectPasswordPolicy=null,this._tenantPasswordPolicies={},this.lastNotifiedUid=void 0,this.languageCode=null,this.tenantId=null,this.settings={appVerificationDisabledForTesting:!1},this.frameworks=[],this.name=t.name,this.clientVersion=i.sdkClientVersion}_initializeWithPersistence(t,n){return n&&(this._popupRedirectResolver=Pf(n)),this._initializationPromise=this.queue(async()=>{var r,i;if(!this._deleted&&(this.persistenceManager=await Ny.create(this,t),!this._deleted)){if(!((r=this._popupRedirectResolver)===null||r===void 0)&&r._shouldInitProactively)try{await this._popupRedirectResolver._initialize(this)}catch{}await this.initializeCurrentUser(n),this.lastNotifiedUid=((i=this.currentUser)===null||i===void 0?void 0:i.uid)||null,!this._deleted&&(this._isInitialized=!0)}}),this._initializationPromise}async _onStorageEvent(){if(this._deleted)return;const t=await this.assertedPersistence.getCurrentUser();if(!(!this.currentUser&&!t)){if(this.currentUser&&t&&this.currentUser.uid===t.uid){this._currentUser._assign(t),await this.currentUser.getIdToken();return}await this._updateCurrentUser(t,!0)}}async initializeCurrentUserFromIdToken(t){try{const n=await mge(this,{idToken:t}),r=await Rf._fromGetAccountInfoResponse(this,n,t);await this.directlySetCurrentUser(r)}catch(n){console.warn("FirebaseServerApp could not login user with provided authIdToken: ",n),await this.directlySetCurrentUser(null)}}async initializeCurrentUser(t){var n;if(Af(this.app)){const s=this.app.settings.authIdToken;return s?new Promise(a=>{setTimeout(()=>this.initializeCurrentUserFromIdToken(s).then(a,a))}):this.directlySetCurrentUser(null)}const r=await this.assertedPersistence.getCurrentUser();let i=r,o=!1;if(t&&this.config.authDomain){await this.getOrInitRedirectPersistenceManager();const s=(n=this.redirectUser)===null||n===void 0?void 0:n._redirectEventId,a=i==null?void 0:i._redirectEventId,c=await this.tryRedirectSignIn(t);(!s||s===a)&&(c!=null&&c.user)&&(i=c.user,o=!0)}if(!i)return this.directlySetCurrentUser(null);
864if(!i._redirectEventId){if(o)try{await this.beforeStateQueue.runMiddleware(i)}catch(s){i=r,this._popupRedirectResolver._overrideRedirectResult(this,()=>Promise.reject(s))}return i?this.reloadAndSetCurrentUserOrClear(i):this.directlySetCurrentUser(null)}return Nt(this._popupRedirectResolver,this,"argument-error"),await this.getOrInitRedirectPersistenceManager(),this.redirectUser&&this.redirectUser._redirectEventId===i._redirectEventId?this.directlySetCurrentUser(i):this.reloadAndSetCurrentUserOrClear(i)}async tryRedirectSignIn(t){let n=null;try{n=await this._popupRedirectResolver._completeRedirectFn(this,t,!0)}catch{await this._setRedirectUser(null)}return n}async reloadAndSetCurrentUserOrClear(t){try{await vI(t)}catch(n){if((n==null?void 0:n.code)!=="auth/network-request-failed")return this.directlySetCurrentUser(null)}return this.directlySetCurrentUser(t)}useDeviceLanguage(){this.languageCode=gze()}async _delete(){this._deleted=!0}async updateCurrentUser(t){if(Af(this.app))return Promise.reject(jg(this));const n=t?hb(t):null;return n&&Nt(n.auth.config.apiKey===this.config.apiKey,this,"invalid-user-token"),this._updateCurrentUser(n&&n._clone(this))}async _updateCurrentUser(t,n=!1){if(!this._deleted)return t&&Nt(this.tenantId===t.tenantId,this,"tenant-id-mismatch"),n||await this.beforeStateQueue.runMiddleware(t),this.queue(async()=>{await this.directlySetCurrentUser(t),this.notifyAuthListeners()})}async signOut(){return Af(this.app)?Promise.reject(jg(this)):(await this.beforeStateQueue.runMiddleware(null),(this.redirectPersistenceManager||this._popupRedirectResolver)&&await this._setRedirectUser(null),this._updateCurrentUser(null,!0))}setPersistence(t){return Af(this.app)?Promise.reject(jg(this)):this.queue(async()=>{await this.assertedPersistence.setPersistence(Pf(t))})}_getRecaptchaConfig(){return this.tenantId==null?this._agentRecaptchaConfig:this._tenantRecaptchaConfigs[this.tenantId]}async validatePassword(t){this._getPasswordPolicyInternal()||await this._updatePasswordPolicy();const n=this._getPasswordPolicyInternal();return n.schemaVersion!==this.EXPECTED_PASSWORD_POLICY_SCHEMA_VERSION?Promise.reject(this._errorFactory.create("unsupported-password-policy-schema-version",{})):n.validatePassword(t)}_getPasswordPolicyInternal(){return this.tenantId===null?this._projectPasswordPolicy:this._tenantPasswordPolicies[this.tenantId]}async _updatePasswordPolicy(){const t=await Oze(this),n=new Mze(t);this.tenantId===null?this._projectPasswordPolicy=n:this._tenantPasswordPolicies[this.tenantId]=n}_getPersistence(){return this.assertedPersistence.persistence.type}_updateErrorMap(t){this._errorFactory=new nE("auth","Firebase",t())}onAuthStateChanged(t,n,r){return this.registerStateListener(this.authStateSubscription,t,n,r)}beforeAuthStateChanged(t,n){return this.beforeStateQueue.pushCallback(t,n)}onIdTokenChanged(t,n,r){return this.registerStateListener(this.idTokenSubscription,t,n,r)}authStateReady(){return new Promise((t,n)=>{if(this.currentUser)t();else{const r=this.onAuthStateChanged(()=>{r(),t()},n)}})}async revokeAccessToken(t){if(this.currentUser){const n=await this.currentUser.getIdToken(),r={providerId:"apple.com",tokenType:"ACCESS_TOKEN",token:t,idToken:n};this.tenantId!=null&&(r.tenantId=this.tenantId),await Aze(this,r)}}toJSON(){var t;return{apiKey:this.config.apiKey,authDomain:this.config.authDomain,appName:this.name,currentUser:(t=this._currentUser)===null||t===void 0?void 0:t.toJSON()}}async _setRedirectUser(t,n){const r=await this.getOrInitRedirectPersistenceManager(n);return t===null?r.removeCurrentUser():r.setCurrentUser(t)}async getOrInitRedirectPersistenceManager(t){if(!this.redirectPersistenceManager){const n=t&&Pf(t)||this._popupRedirectResolver;Nt(n,this,"argument-error"),this.redirectPersistenceManager=await Ny.create(this,[Pf(n._redirectPersistence)],"redirectUser"),this.redirectUser=await this.redirectPersistenceManager.getCurrentUser()}return this.redirectPersistenceManager}async _redirectUserForId(t){var n,r;return this._isInitialized&&await this.queue(async()=>{}),((n=this._currentUser)===null||n===void 0?void 0:n._redirectEventId)===t?this._currentUser:((r=this.redirectUser)===null||r===void 0?void 0:r._redirectEventId)===t?this.redirectUser:null}async _persistUserIfCurrent(t){if(t===this.currentUser)return this.queue(async()=>this.directlySetCurrentUser(t))}_notifyListenersIfCurrent(t){t===this.currentUser&&this.notifyAuthListeners()}_key(){return`${this.config.authDomain}:${this.config.apiKey}:${this.name}`}_startProactiveRefresh(){this.isProactiveRefreshEnabled=!0,this.currentUser&&this._currentUser._startProactiveRefresh()}_stopProactiveRefresh(){this.isProactiveRefreshEnabled=!1,this.currentUser&&this._currentUser._stopProactiveRefresh()}get _currentUser(){return this.currentUser}notifyAuthListeners(){var t,n;if(!this._isInitialized)return;this.idTokenSubscription.next(this.currentUser);const r=(n=(t=this.currentUser)===null||t===void 0?void 0:t.uid)!==null&&n!==void 0?n:null;this.lastNotifiedUid!==r&&(this.lastNotifiedUid=r,this.authStateSubscription.next(this.currentUser))}registerStateListener(t,n,r,i){if(this._deleted)return()=>{};const o=typeof n=="function"?n:n.next.bind(n);let s=!1;const a=this._isInitialized?Promise.resolve():this._initializationPromise;if(Nt(a,this,"internal-error"),a.then(()=>{s||o(this.currentUser)}),typeof n=="function"){const c=t.addObserver(n,r,i);return()=>{s=!0,c()}}else{const c=t.addObserver(n);return()=>{s=!0,c()}}}async directlySetCurrentUser(t){this.currentUser&&this.currentUser!==t&&this._currentUser._stopProactiveRefresh(),t&&this.isProactiveRefreshEnabled&&t._startProactiveRefresh(),this.currentUser=t,t?await this.assertedPersistence.setCurrentUser(t):await this.assertedPersistence.removeCurrentUser()}queue(t){return this.operations=this.operations.then(t,t),this.operations}get assertedPersistence(){return Nt(this.persistenceManager,this,"internal-error"),this.persistenceManager}_logFramework(t){!t||this.frameworks.includes(t)||(this.frameworks.push(t),this.frameworks.sort(),this.clientVersion=kge(this.config.clientPlatform,this._getFrameworks()))}_getFrameworks(){return this.frameworks}async _getAdditionalHeaders(){var t;const n={"X-Client-Version":this.clientVersion};this.app.options.appId&&(n["X-Firebase-gmpid"]=this.app.options.appId);const r=await((t=this.heartbeatServiceProvider.getImmediate({optional:!0}))===null||t===void 0?void 0:t.getHeartbeatsHeader());r&&(n["X-Firebase-Client"]=r);const i=await this._getAppCheckToken();return i&&(n["X-Firebase-AppCheck"]=i),n}async _getAppCheckToken(){var t;const n=await((t=this.appCheckServiceProvider.getImmediate({optional:!0}))===null||t===void 0?void 0:t.getToken());return n!=null&&n.error&&fze(`Error while retrieving App Check token: ${n.error}`),n==null?void 0:n.token}}function EP(e){return hb(e)}class DJ{constructor(t){this.auth=t,this.observer=null,this.addObserver=v4e(n=>this.observer=n)}get next(){return Nt(this.observer,this.auth,"internal-error"),this.observer.next.bind(this.observer)}}/**
865 * @license
866 * Copyright 2020 Google LLC
867 *
868 * Licensed under the Apache License, Version 2.0 (the "License");
869 * you may not use this file except in compliance with the License.
870 * You may obtain a copy of the License at
871 *
872 *   http://www.apache.org/licenses/LICENSE-2.0
873 *
874 * Unless required by applicable law or agreed to in writing, software
875 * distributed under the License is distributed on an "AS IS" BASIS,
876 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
877 * See the License for the specific language governing permissions and
878 * limitations under the License.
879 */let H$={async loadJS(){throw new Error("Unable to load external scripts")},recaptchaV2Script:"",recaptchaEnterpriseScript:"",gapiScript:""};function Lze(e){H$=e}function Fze(e){return H$.loadJS(e)}function jze(){return H$.gapiScript}function Uze(e){return`__${e}${Math.floor(Math.random()*1e6)}`}/**
880 * @license
881 * Copyright 2020 Google LLC
882 *
883 * Licensed under the Apache License, Version 2.0 (the "License");
884 * you may not use this file except in compliance with the License.
885 * You may obtain a copy of the License at
886 *
887 *   http://www.apache.org/licenses/LICENSE-2.0
888 *
889 * Unless required by applicable law or agreed to in writing, software
890 * distributed under the License is distributed on an "AS IS" BASIS,
891 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
892 * See the License for the specific language governing permissions and
893 * limitations under the License.
894 */function Bze(e,t){const n=ofe(e,"auth");if(n.isInitialized()){const i=n.getImmediate(),o=n.getOptions();if(VA(o,t??{}))return i;yd(i,"already-initialized")}return n.initialize({options:t})}function $ze(e,t){const n=(t==null?void 0:t.persistence)||[],r=(Array.isArray(n)?n:[n]).map(Pf);t!=null&&t.errorMap&&e._updateErrorMap(t.errorMap),e._initializeWithPersistence(r,t==null?void 0:t.popupRedirectResolver)}function Hze(e,t,n){const r=EP(e);Nt(r._canInitEmulator,r,"emulator-config-failed"),Nt(/^https?:\/\//.test(t),r,"invalid-emulator-scheme");const i=!1,o=xge(t),{host:s,port:a}=zze(t),c=a===null?"":`:${a}`;r.config.emulator={url:`${o}//${s}${c}/`},r.settings.appVerificationDisabledForTesting=!0,r.emulatorConfig=Object.freeze({host:s,port:a,protocol:o.replace(":",""),options:Object.freeze({disableWarnings:i})}),Vze()}function xge(e){const t=e.indexOf(":");return t<0?"":e.substr(0,t+1)}function zze(e){const t=xge(e),n=/(\/\/)?([^?#/]+)/.exec(e.substr(t.length));if(!n)return{host:"",port:null};const r=n[2].split("@").pop()||"",i=/^(\[[^\]]+\])(:|$)/.exec(r);if(i){const o=i[1];return{host:o,port:LJ(r.substr(o.length+1))}}else{const[o,s]=r.split(":");return{host:o,port:LJ(s)}}}function LJ(e){if(!e)return null;const t=Number(e);return isNaN(t)?null:t}function Vze(){function e(){const t=document.createElement("p"),n=t.style;t.innerText="Running in emulator mode. Do not use with production credentials.",n.position="fixed",n.width="100%",n.backgroundColor="#ffffff",n.border=".1em solid #000000",n.color="#b50000",n.bottom="0px",n.left="0px",n.margin="0px",n.zIndex="10000",n.textAlign="center",t.classList.add("firebase-emulator-warning"),document.body.appendChild(t)}typeof console<"u"&&typeof console.info=="function"&&console.info("WARNING: You are using the Auth Emulator, which is intended for local testing only.  Do not use with production credentials."),typeof window<"u"&&typeof document<"u"&&(document.readyState==="loading"?window.addEventListener("DOMContentLoaded",e):e())}/**
895 * @license
896 * Copyright 2020 Google LLC
897 *
898 * Licensed under the Apache License, Version 2.0 (the "License");
899 * you may not use this file except in compliance with the License.
900 * You may obtain a copy of the License at
901 *
902 *   http://www.apache.org/licenses/LICENSE-2.0
903 *
904 * Unless required by applicable law or agreed to in writing, software
905 * distributed under the License is distributed on an "AS IS" BASIS,
906 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
907 * See the License for the specific language governing permissions and
908 * limitations under the License.
909 */class Age{constructor(t,n){this.providerId=t,this.signInMethod=n}toJSON(){return If("not implemented")}_getIdTokenResponse(t){return If("not implemented")}_linkToIdToken(t,n){return If("not implemented")}_getReauthenticationResolver(t){return If("not implemented")}}/**
910 * @license
911 * Copyright 2020 Google LLC
912 *
913 * Licensed under the Apache License, Version 2.0 (the "License");
914 * you may not use this file except in compliance with the License.
915 * You may obtain a copy of the License at
916 *
917 *   http://www.apache.org/licenses/LICENSE-2.0
918 *
919 * Unless required by applicable law or agreed to in writing, software
920 * distributed under the License is distributed on an "AS IS" BASIS,
921 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
922 * See the License for the specific language governing permissions and
923 * limitations under the License.
924 */async function My(e,t){return bze(e,"POST","/v1/accounts:signInWithIdp",U$(e,t))}/**
925 * @license
926 * Copyright 2020 Google LLC
927 *
928 * Licensed under the Apache License, Version 2.0 (the "License");
929 * you may not use this file except in compliance with the License.
930 * You may obtain a copy of the License at
931 *
932 *   http://www.apache.org/licenses/LICENSE-2.0
933 *
934 * Unless required by applicable law or agreed to in writing, software
935 * distributed under the License is distributed on an "AS IS" BASIS,
936 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
937 * See the License for the specific language governing permissions and
938 * limitations under the License.
939 */const Wze="http://localhost";class rh extends Age{constructor(){super(...arguments),this.pendingToken=null}static _fromParams(t){const n=new rh(t.providerId,t.signInMethod);return t.idToken||t.accessToken?(t.idToken&&(n.idToken=t.idToken),t.accessToken&&(n.accessToken=t.accessToken),t.nonce&&!t.pendingToken&&(n.nonce=t.nonce),t.pendingToken&&(n.pendingToken=t.pendingToken)):t.oauthToken&&t.oauthTokenSecret?(n.accessToken=t.oauthToken,n.secret=t.oauthTokenSecret):yd("argument-error"),n}toJSON(){return{idToken:this.idToken,accessToken:this.accessToken,secret:this.secret,n
939once:this.nonce,pendingToken:this.pendingToken,providerId:this.providerId,signInMethod:this.signInMethod}}static fromJSON(t){const n=typeof t=="string"?JSON.parse(t):t,{providerId:r,signInMethod:i}=n,o=SE(n,["providerId","signInMethod"]);if(!r||!i)return null;const s=new rh(r,i);return s.idToken=o.idToken||void 0,s.accessToken=o.accessToken||void 0,s.secret=o.secret,s.nonce=o.nonce,s.pendingToken=o.pendingToken||null,s}_getIdTokenResponse(t){const n=this.buildRequest();return My(t,n)}_linkToIdToken(t,n){const r=this.buildRequest();return r.idToken=n,My(t,r)}_getReauthenticationResolver(t){const n=this.buildRequest();return n.autoCreate=!1,My(t,n)}buildRequest(){const t={requestUri:Wze,returnSecureToken:!0};if(this.pendingToken)t.pendingToken=this.pendingToken;else{const n={};this.idToken&&(n.id_token=this.idToken),this.accessToken&&(n.access_token=this.accessToken),this.secret&&(n.oauth_token_secret=this.secret),n.providerId=this.providerId,this.nonce&&!this.pendingToken&&(n.nonce=this.nonce),t.postBody=rE(n)}return t}}/**
940 * @license
941 * Copyright 2020 Google LLC
942 *
943 * Licensed under the Apache License, Version 2.0 (the "License");
944 * you may not use this file except in compliance with the License.
945 * You may obtain a copy of the License at
946 *
947 *   http://www.apache.org/licenses/LICENSE-2.0
948 *
949 * Unless required by applicable law or agreed to in writing, software
950 * distributed under the License is distributed on an "AS IS" BASIS,
951 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
952 * See the License for the specific language governing permissions and
953 * limitations under the License.
954 */class z${constructor(t){this.providerId=t,this.defaultLanguageCode=null,this.customParameters={}}setDefaultLanguage(t){this.defaultLanguageCode=t}setCustomParameters(t){return this.customParameters=t,this}getCustomParameters(){return this.customParameters}}/**
955 * @license
956 * Copyright 2019 Google LLC
957 *
958 * Licensed under the Apache License, Version 2.0 (the "License");
959 * you may not use this file except in compliance with the License.
960 * You may obtain a copy of the License at
961 *
962 *   http://www.apache.org/licenses/LICENSE-2.0
963 *
964 * Unless required by applicable law or agreed to in writing, software
965 * distributed under the License is distributed on an "AS IS" BASIS,
966 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
967 * See the License for the specific language governing permissions and
968 * limitations under the License.
969 */class Cb extends z${constructor(){super(...arguments),this.scopes=[]}addScope(t){return this.scopes.includes(t)||this.scopes.push(t),this}getScopes(){return[...this.scopes]}}class qS extends Cb{static credentialFromJSON(t){const n=typeof t=="string"?JSON.parse(t):t;return Nt("providerId"in n&&"signInMethod"in n,"argument-error"),rh._fromParams(n)}credential(t){return this._credential(Object.assign(Object.assign({},t),{nonce:t.rawNonce}))}_credential(t){return Nt(t.idToken||t.accessToken,"argument-error"),rh._fromParams(Object.assign(Object.assign({}
969,t),{providerId:this.providerId,signInMethod:this.providerId}))}static credentialFromResult(t){return qS.oauthCredentialFromTaggedObject(t)}static credentialFromError(t){return qS.oauthCredentialFromTaggedObject(t.customData||{})}static oauthCredentialFromTaggedObject({_tokenResponse:t}){if(!t)return null;const{oauthIdToken:n,oauthAccessToken:r,oauthTokenSecret:i,pendingToken:o,nonce:s,providerId:a}=t;if(!r&&!i&&!n&&!o||!a)return null;try{return new qS(a)._credential({idToken:n,accessToken:r,nonce:s,pendingToken:o})}catch{return null}}}/**
970 * @license
971 * Copyright 2020 Google LLC
972 *
973 * Licensed under the Apache License, Version 2.0 (the "License");
974 * you may not use this file except in compliance with the License.
975 * You may obtain a copy of the License at
976 *
977 *   http://www.apache.org/licenses/LICENSE-2.0
978 *
979 * Unless required by applicable law or agreed to in writing, software
980 * distributed under the License is distributed on an "AS IS" BASIS,
981 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
982 * See the License for the specific language governing permissions and
983 * limitations under the License.
984 */class hp extends Cb{constructor(){super("facebook.com")}static credential(t){return rh._fromParams({providerId:hp.PROVIDER_ID,signInMethod:hp.FACEBOOK_SIGN_IN_METHOD,accessToken:t})}static credentialFromResult(t){return hp.credentialFromTaggedObject(t)}static credentialFromError(t){return hp.credentialFromTaggedObject(t.customData||{})}static credentialFromTaggedObject({_tokenResponse:t}){if(!t||!("oauthAccessToken"in t)||!t.oauthAccessToken)return null;try{return hp.credential(t.oauthAccessToken)}catch{return null}}}hp.FACEBOOK_SIGN_IN_METHOD="facebook.com";hp.PROVIDER_ID="facebook.com";/**
985 * @license
986 * Copyright 2020 Google LLC
987 *
988 * Licensed under the Apache License, Version 2.0 (the "License");
989 * you may not use this file except in compliance with the License.
990 * You may obtain a copy of the License at
991 *
992 *   http://www.apache.org/licenses/LICENSE-2.0
993 *
994 * Unless required by applicable law or agreed to in writing, software
995 * distributed under the License is distributed on an "AS IS" BASIS,
996 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
997 * See the License for the specific language governing permissions and
998 * limitations under the License.
999 */class _f extends Cb{constructor(){super("google.com"),this.addScope("profile")}static credential(t,n){return rh._fromParams({providerId:_f.PROVIDER_ID,signInMethod:_f.GOOGLE_SIGN_IN_METHOD,idToken:t,accessToken:n})}static credentialFromResult(t){return _f.credentialFromTaggedObject(t)}static credentialFromError(t){return _f.credentialFromTaggedObject(t.customData||{})}static credentialFromTaggedObject({_tokenResponse:t}){if(!t)return null;const{oauthIdToken:n,oauthAccessToken:r}=t;if(!n&&!r)return null;try{return _f.credential(n,r)}catch{return null}}}_f.GOOGLE_SIGN_IN_METHOD="google.com";_f.PROVIDER_ID="google.com";/**
1000 * @license
1001 * Copyright 2020 Google LLC
1002 *
1003 * Licensed under the Apache License, Version 2.0 (the "License");
1004 * you may not use this file except in compliance with the License.
1005 * You may obtain a copy of the License at
1006 *
1007 *   http://www.apache.org/licenses/LICENSE-2.0
1008 *
1009 * Unless required by applicable law or agreed to in writing, software
1010 * distributed under the License is distributed on an "AS IS" BASIS,
1011 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1012 * See the License for the specific language governing permissions and
1013 * limitations under the License.
1014 */class pp extends Cb{constructor(){super("github.com")}static credential(t){return rh._fromParams({providerId:pp.PROVIDER_ID,signInMethod:pp.GITHUB_SIGN_IN_METHOD,accessToken:t})}static credentialFromResult(t){return pp.credentialFromTaggedObject(t)}static credentialFromError(t){return pp.credentialFromTaggedObject(t.customData||{})}static credentialFromTaggedObject({_tokenResponse:t}){if(!t||!("oauthAccessToken"in t)||!t.oauthAccessToken)return null;try{return pp.credential(t.oauthAccessToken)}catch{return null}}}pp.GITHUB_SIGN_IN_METHOD="github.com";pp.PROVIDER_ID="github.com";/**
1015 * @license
1016 * Copyright 2020 Google LLC
1017 *
1018 * Licensed under the Apache License, Version 2.0 (the "License");
1019 * you may not use this file except in compliance with the License.
1020 * You may obtain a copy of the License at
1021 *
1022 *   http://www.apache.org/licenses/LICENSE-2.0
1023 *
1024 * Unless required by applicable law or agreed to in writing, software
1025 * distributed under the License is distributed on an "AS IS" BASIS,
1026 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1027 * See the License for the specific language governing permissions and
1028 * limitations under the License.
1029 */class mp extends Cb{constructor(){super("twitter.com")}static credential(t,n){return rh._fromParams({providerId:mp.PROVIDER_ID,signInMethod:mp.TWITTER_SIGN_IN_METHOD,oauthToken:t,oauthTokenSecret:n})}static credentialFromResult(t){return mp.credentialFromTaggedObject(t)}static credentialFromError(t){return mp.credentialFromTaggedObject(t.customData||{})}static credentialFromTaggedObject({_tokenResponse:t}){if(!t)return null;const{oauthAccessToken:n,oauthTokenSecret:r}=t;if(!n||!r)return null;try{return mp.credential(n,r)}catch{return null}}}mp.TWITTER_SIGN_IN_METHOD="twitter.com";mp.PROVIDER_ID="twitter.com";/**
1030 * @license
1031 * Copyright 2020 Google LLC
1032 *
1033 * Licensed under the Apache License, Version 2.0 (the "License");
1034 * you may not use this file except in compliance with the License.
1035 * You may obtain a copy of the License at
1036 *
1037 *   http://www.apache.org/licenses/LICENSE-2.0
1038 *
1039 * Unless required by applicable law or agreed to in writing, software
1040 * distributed under the License is distributed on an "AS IS" BASIS,
1041 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1042 * See the License for the specific language governing permissions and
1043 * limitations under the License.
1044 */class m1{constructor(t){this.user=t.user,this.providerId=t.providerId,this._tokenResponse=t._tokenResponse,this.operationType=t.operationType}static async _fromIdTokenResponse(t,n,r,i=!1){const o=await Rf._fromIdTokenResponse(t,r,i),s=FJ(r);return new m1({user:o,providerId:s,_tokenResponse:r,operationType:n})}static async _forOperation(t,n,r){await t._updateTokensIfNecessary(r,!0);const i=FJ(r);return new m1({user:t,providerId:i,_tokenResponse:r,operationType:n})}}function FJ(e){return e.providerId?e.providerId:"phoneNumber"in e?"phone":null}/**
1045 * @license
1046 * Copyright 2020 Google LLC
1047 *
1048 * Licensed under the Apache License, Version 2.0 (the "License");
1049 * you may not use this file except in compliance with the License.
1050 * You may obtain a copy of the License at
1051 *
1052 *   http://www.apache.org/licenses/LICENSE-2.0
1053 *
1054 * Unless required by applicable law or agreed to in writing, software
1055 * distributed under the License is distributed on an "AS IS" BASIS,
1056 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1057 * See the License for the specific language governing permissions and
1058 * limitations under the License.
1059 */class yI extends pd{constructor(t,n,r,i){var o;super(n.code,n.message),this.operationType=r,this.user=i,Object.setPrototypeOf(this,yI.prototype),this.customData={appName:t.name,tenantId:(o=t.tenantId)!==null&&o!==void 0?o:void 0,_serverResponse:n.customData._serverResponse,operationType:r}}static _fromErrorAndOperation(t,n,r,i){return new yI(t,n,r,i)}}function Ige(e,t,n,r){return(t==="reauthenticate"?n._getReauthenticationResolver(e):n._getIdTokenResponse(e)).catch(o=>{throw o.code==="auth/multi-factor-auth-required"?yI._fromErrorAndOperation(e,o,t,r):o})}async function qze(e,t,n=!1){const r=await aC(e,t._linkToIdToken(e.auth,await e.getIdToken()),n);return m1._forOperation(e,"link",r)}/**
1060 * @license
1061 * Copyright 2019 Google LLC
1062 *
1063 * Licensed under the Apache License, Version 2.0 (the "License");
1064 * you may not use this file except in compliance with the License.
1065 * You may obtain a copy of the License at
1066 *
1067 *   http://www.apache.org/licenses/LICENSE-2.0
1068 *
1069 * Unless required by applicable law or agreed to in writing, software
1070 * distributed under the License is distributed on an "AS IS" BASIS,
1071 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1072 * See the License for the specific language governing permissions and
1073 * limitations under the License.
1074 */async function Gze(e,t,n=!1){const{auth:r}=e;if(Af(r.app))return Promise.reject(jg(r));const i="reauthenticate";try{const o=await aC(e,Ige(r,i,t,e),n);Nt(o.idToken,r,"internal-error");const s=B$(o.idToken);Nt(s,r,"internal-error");const{sub:a}=s;return Nt(e.uid===a,r,"user-mismatch"),m1._forOperation(e,i,o)}catch(o){throw(o==null?void 0:o.code)==="auth/user-not-found"&&yd(r,"user-mismatch"),o}}/**
1075 * @license
1076 * Copyright 2020 Google LLC
1077 *
1078 * Licensed under the Apache License, Version 2.0 (the "License");
1079 * you may not use this file except in compliance with the License.
1080 * You may obtain a copy of the License at
1081 *
1082 *   http://www.apache.org/licenses/LICENSE-2.0
1083 *
1084 * Unless required by applicable law or agreed to in writing, software
1085 * distributed under the License is distributed on an "AS IS" BASIS,
1086 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1087 * See the License for the specific language governing permissions and
1088 * limitations under the License.
1089 */async function Kze(e,t,n=!1){if(Af(e.app))return Promise.reject(jg(e));const r="signIn",i=await Ige(e,r,t),o=await m1._fromIdTokenResponse(e,r,i);return n||await e._updateCurrentUser(o.user),o}function Yze(e,t,n,r){return hb(e).onIdTokenChanged(t,n,r)}function Qze(e,t,n){return hb(e).beforeAuthStateChanged(t,n)}const bI="__sak";/**
1090 * @license
1091 * Copyright 2019 Google LLC
1092 *
1093 * Licensed under the Apache License, Version 2.0 (the "License");
1094 * you may not use this file except in compliance with the License.
1095 * You may obtain a copy of the License at
1096 *
1097 *   http://www.apache.org/licenses/LICENSE-2.0
1098 *
1099 * Unless required by applicable law or agreed to in writing, software
1100 * distributed under the License is distributed on an "AS IS" BASIS,
1101 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1102 * See the License for the specific language governing permissions and
1103 * limitations under the License.
1104 */class Rge{constructor(t,n){this.storageRetriever=t,this.type=n}_isAvailable(){try{return this.storage?(this.storage.setItem(bI,"1"),this.storage.removeItem(bI),Promise.resolve(!0)):Promise.resolve(!1)}catch{return Promise.resolve(!1)}}_set(t,n){return this.storage.setItem(t,JSON.stringify(n)),Promise.resolve()}_get(t){const n=this.storage.getItem(t);return Promise.resolve(n?JSON.parse(n):null)}_remove(t){return this.storage.removeItem(t),Promise.resolve()}get storage(){return this.storageRetriever()}}/**
1105 * @license
1106 * Copyright 2020 Google LLC
1107 *
1108 * Licensed under the Apache License, Version 2.0 (the "License");
1109 * you may not use this file except in compliance with the License.
1110 * You may obtain a copy of the License at
1111 *
1112 *   http://www.apache.org/licenses/LICENSE-2.0
1113 *
1114 * Unless required by applicable law or agreed to in writing, software
1115 * distributed under the License is distributed on an "AS IS" BASIS,
1116 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1117 * See the License for the specific language governing permissions and
1118 * limitations under the License.
1119 */const Xze=1e3,Jze=10;class Pge extends Rge{constructor(){super(()=>window.localStorage,"LOCAL"),this.boundEventHandler=(t,n)=>this.onStorageEvent(t,n),this.listeners={},this.localCache={},this.pollTimer=null,this.fallbackToPolling=Tge(),this._shouldAllowMigration=!0}forAllChangedKeys(t){for(const n of Object.keys(this.listeners)){const r=this.storage.getItem(n),i=this.localCache[n];r!==i&&t(n,i,r)}}onStorageEvent(t,n=!1){if(!t.key){this.forAllChangedKeys((s,a,c)=>{this.notifyListeners(s,c)});return}const r=t.key;n?this.detachListener():this.stopPolling();const i=()=>{const s=this.storage.getItem(r);!n&&this.localCache[r]===s||this.notifyListeners(r,s)},o=this.storage.getItem(r);Rze()&&o!==t.newValue&&t.newValue!==t.oldValue?setTimeout(i,Jze):i()}notifyListeners(t,n){this.localCache[t]=n;const r=this.listeners[t];if(r)for(const i of Array.from(r))i(n&&JSON.parse(n))}startPolling(){this.stopPolling(),this.pollTimer=setInterval(()=>{this.forAllChangedKeys((t,n,r)=>{this.onStorageEvent(new StorageEvent("storage",{key:t,oldValue:n,newValue:r}),!0)})},Xze)}stopPolling(){this.pollTimer&&(clearInterval(this.pollTimer),this.pollTimer=null)}attachListener(){window.addEventListener("storage",this.boundEventHandler)}detachListener(){window.removeEventListener("storage",this.boundEventHandler)}_addListener(t,n){Object.keys(this.listeners).length===0&&(this.fallbackToPolling?this.startPolling():this.attachListener()),this.listeners[t]||(this.listeners[t]=new Set,this.localCache[t]=this.storage.getItem(t)),this.listeners[t].add(n)}_removeListener(t,n){this.listeners[t]&&(this.listeners[t].delete(n),this.listeners[t].size===0&&delete this.listeners[t]),Object.keys(this.listeners).length===0&&(this.detachListener(),this.stopPolling())}async _set(t,n){await super._set(t,n),this.localCache[t]=JSON.stringify(n)}async _get(t){const n=await super._get(t);return this.localCache[t]=JSON.stringify(n),n}async _remove(t){await super._remove(t),delete this.localCache[t]}}Pge.type="LOCAL";const Oge=Pge;/**
1120 * @license
1121 * Copyright 2020 Google LLC
1122 *
1123 * Licensed under the Apache License, Version 2.0 (the "License");
1124 * you may not use this file except in compliance with the License.
1125 * You may obtain a copy of the License at
1126 *
1127 *   http://www.apache.org/licenses/LICENSE-2.0
1128 *
1129 * Unless required by applicable law or agreed to in writing, software
1130 * distributed under the License is distributed on an "AS IS" BASIS,
1131 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1132 * See the License for the specific language governing permissions and
1133 * limitations under the License.
1134 */class Nge extends Rge{constructor(){super(()=>window.sessionStorage,"SESSION")}_addListener(t,n){}_removeListener(t,n){}}Nge.type="SESSION";const Mge=Nge;/**
1135 * @license
1136 * Copyright 2019 Google LLC
1137 *
1138 * Licensed under the Apache License, Version 2.0 (the "License");
1139 * you may not use this file except in compliance with the License.
1140 * You may obtain a copy of the License at
1141 *
1142 *   http://www.apache.org/licenses/LICENSE-2.0
1143 *
1144 * Unless required by applicable law or agreed to in writing, software
1145 * distributed under the License is distributed on an "AS IS" BASIS,
1146 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1147 * See the License for the specific language governing permissions and
1148 * limitations under the License.
1149 */function Zze(e){return Promise.all(e.map(async t=>{try{return{fulfilled:!0,value:await t}}catch(n){return{fulfilled:!1,reason:n}}}))}/**
1150 * @license
1151 * Copyright 2019 Google LLC
1152 *
1153 * Licensed under the Apache License, Version 2.0 (the "License");
1154 * you may not use this file except in compliance with the License.
1155 * You may obtain a copy of the License at
1156 *
1157 *   http://www.apache.org/licenses/LICENSE-2.0
1158 *
1159 * Unless required by applicable law or agreed to in writing, software
1160 * distributed under the License is distributed on an "AS IS" BASIS,
1161 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1162 * See the License for the specific language governing permissions and
1163 * limitations under the License.
1164 */class TP{constructor(t){this.eventTarget=t,this.handlersMap={},this.boundEventHandler=this.handleEvent.bind(this)}static _getInstance(t){const n=this.receivers.find(i=>i.isListeningto(t));if(n)return n;const r=new TP(t);return this.receivers.push(r),r}isListeningto(t){return this.eventTarget===t}async handleEvent(t){const n=t,{eventId:r,eventType:i,data:o}=n.data,s=this.handlersMap[i];if(!(s!=null&&s.size))return;n.ports[0].postMessage({status:"ack",eventId:r,eventType:i});const a=Array.from(s).map(async l=>l(n.origin,o)),c=await Zze(a);n.ports[0].postMessage({status:"done",eventId:r,eventType:i,response:c})}_subscribe(t,n){Object.keys(this.handlersMap).length===0&&this.eventTarget.addEventListener("message",this.boundEventHandler),this.handlersMap[t]||(this.handlersMap[t]=new Set),this.handlersMap[t].add(n)}_unsubscribe(t,n){this.handlersMap[t]&&n&&this.handlersMap[t].delete(n),(!n||this.handlersMap[t].size===0)&&delete this.handlersMap[t],Object.keys(this.handlersMap).length===0&&this.eventTarget.removeEventListener("message",this.boundEventHandler)}}TP.receivers=[];/**
1165 * @license
1166 * Copyright 2020 Google LLC
1167 *
1168 * Licensed under the Apache License, Version 2.0 (the "License");
1169 * you may not use this file except in compliance with the License.
1170 * You may obtain a copy of the License at
1171 *
1172 *   http://www.apache.org/licenses/LICENSE-2.0
1173 *
1174 * Unless required by applicable law or agreed to in writing, software
1175 * distributed under the License is distributed on an "AS IS" BASIS,
1176 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1177 * See the License for the specific language governing permissions and
1178 * limitations under the License.
1179 */function V$(e="",t=10){let n="";for(let r=0;r<t;r++)n+=Math.floor(Math.random()*10);return e+n}/**
1180 * @license
1181 * Copyright 2019 Google LLC
1182 *
1183 * Licensed under the Apache License, Version 2.0 (the "License");
1184 * you may not use this file except in compliance with the License.
1185 * You may obtain a copy of the License at
1186 *
1187 *   http://www.apache.org/licenses/LICENSE-2.0
1188 *
1189 * Unless required by applicable law or agreed to in writing, softw
1189are
1190 * distributed under the License is distributed on an "AS IS" BASIS,
1191 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1192 * See the License for the specific language governing permissions and
1193 * limitations under the License.
1194 */class eVe{constructor(t){this.target=t,this.handlers=new Set}removeMessageHandler(t){t.messageChannel&&(t.messageChannel.port1.removeEventListener("message",t.onMessage),t.messageChannel.port1.close()),this.handlers.delete(t)}async _send(t,n,r=50){const i=typeof MessageChannel<"u"?new MessageChannel:null;if(!i)throw new Error("connection_unavailable");let o,s;return new Promise((a,c)=>{const l=V$("",20);i.port1.start();const u=setTimeout(()=>{c(new Error("unsupported_event"))},r);s={messageChannel:i,onMessage(d){const f=d;if(f.data.eventId===l)switch(f.data.status){case"ack":clearTimeout(u),o=setTimeout(()=>{c(new Error("timeout"))},3e3);break;case"done":clearTimeout(o),a(f.data.response);break;default:clearTimeout(u),clearTimeout(o),c(new Error("invalid_response"));break}}},this.handlers.add(s),i.port1.addEventListener("message",s.onMessage),this.target.postMessage({eventType:t,eventId:l,data:n},[i.port2])}).finally(()=>{s&&this.removeMessageHandler(s)})}}/**
1195 * @license
1196 * Copyright 2020 Google LLC
1197 *
1198 * Licensed under the Apache License, Version 2.0 (the "License");
1199 * you may not use this file except in compliance with the License.
1200 * You may obtain a copy of the License at
1201 *
1202 *   http://www.apache.org/licenses/LICENSE-2.0
1203 *
1204 * Unless required by applicable law or agreed to in writing, software
1205 * distributed under the License is distributed on an "AS IS" BASIS,
1206 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1207 * See the License for the specific language governing permissions and
1208 * limitations under the License.
1209 */function cd(){return window}function tVe(e){cd().location.href=e}/**
1210 * @license
1211 * Copyright 2020 Google LLC.
1212 *
1213 * Licensed under the Apache License, Version 2.0 (the "License");
1214 * you may not use this file except in compliance with the License.
1215 * You may obtain a copy of the License at
1216 *
1217 *   http://www.apache.org/licenses/LICENSE-2.0
1218 *
1219 * Unless required by applicable law or agreed to in writing, software
1220 * distributed under the License is distributed on an "AS IS" BASIS,
1221 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1222 * See the License for the specific language governing permissions and
1223 * limitations under the License.
1224 */function Dge(){return typeof cd().WorkerGlobalScope<"u"&&typeof cd().importScripts=="function"}async function nVe(){if(!(navigator!=null&&navigator.serviceWorker))return null;try{return(await navigator.serviceWorker.ready).active}catch{return null}}function rVe(){var e;return((e=navigator==null?void 0:navigator.serviceWorker)===null||e===void 0?void 0:e.controller)||null}function iVe(){return Dge()?self:null}/**
1225 * @license
1226 * Copyright 2019 Google LLC
1227 *
1228 * Licensed under the Apache License, Version 2.0 (the "License");
1229 * you may not use this file except in compliance with the License.
1230 * You may obtain a copy of the License at
1231 *
1232 *   http://www.apache.org/licenses/LICENSE-2.0
1233 *
1234 * Unless required by applicable law or agreed to in writing, software
1235 * distributed under the License is distributed on an "AS IS" BASIS,
1236 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1237 * See the License for the specific language governing permissions and
1238 * limitations under the License.
1239 */const Lge="firebaseLocalStorageDb",oVe=1,wI="firebaseLocalStorage",Fge="fbase_key";class CE{constructor(t){this.request=t}toPromise(){return new Promise((t,n)=>{this.request.addEventListener("success",()=>{t(this.request.result)}),this.request.addEventListener("error",()=>{n(this.request.error)})})}}function kP(e,t){return e.transaction([wI],t?"readwrite":"readonly").objectStore(wI)}function sVe(){const e=indexedDB.deleteDatabase(Lge);return new CE(e).toPromise()}function Aj(){const e=indexedDB.open(Lge,oVe);return new Promise((t,n)=>{e.addEventListener("error",()=>{n(e.error)}),e.addEventListener("upgradeneeded",()=>{const r=e.result;try{r.createObjectStore(wI,{keyPath:Fge})}catch(i){n(i)}}),e.addEventListener("success",async()=>{const r=e.result;r.objectStoreNames.contains(wI)?t(r):(r.close(),await sVe(),t(await Aj()))})})}async function jJ(e,t,n){const r=kP(e,!0).put({[Fge]:t,value:n});
1239return new CE(r).toPromise()}async function aVe(e,t){const n=kP(e,!1).get(t),r=await new CE(n).toPromise();return r===void 0?null:r.value}function UJ(e,t){const n=kP(e,!0).delete(t);return new CE(n).toPromise()}const cVe=800,lVe=3;class jge{constructor(){this.type="LOCAL",this._shouldAllowMigration=!0,this.listeners={},this.localCache={},this.pollTimer=null,this.pendingWrites=0,this.receiver=null,this.sender=null,this.serviceWorkerReceiverAvailable=!1,this.activeServiceWorker=null,this._workerInitializationPromise=this.initializeServiceWorkerMessaging().then(()=>{},()=>{})}async _openDb(){return this.db?this.db:(this.db=await Aj(),this.db)}async _withRetries(t){let n=0;for(;;)try{const r=await this._openDb();return await t(r)}catch(r){if(n++>lVe)throw r;this.db&&(this.db.close(),this.db=void 0)}}async initializeServiceWorkerMessaging(){return Dge()?this.initializeReceiver():this.initializeSender()}async initializeReceiver(){this.receiver=TP._getInstance(iVe()),this.receiver._subscribe("keyChanged",async(t,n)=>({keyProcessed:(await this._poll()).includes(n.key)}
1239)),this.receiver._subscribe("ping",async(t,n)=>["keyChanged"])}async initializeSender(){var t,n;if(this.activeServiceWorker=await nVe(),!this.activeServiceWorker)return;this.sender=new eVe(this.activeServiceWorker);const r=await this.sender._send("ping",{},800);r&&!((t=r[0])===null||t===void 0)&&t.fulfilled&&!((n=r[0])===null||n===void 0)&&n.value.includes("keyChanged")&&(this.serviceWorkerReceiverAvailable=!0)}async notifyServiceWorker(t){if(!(!this.sender||!this.activeServiceWorker||rVe()!==this.activeServiceWorker))try{await this.sender._send("keyChanged",{key:t},this.serviceWorkerReceiverAvailable?800:50)}catch{}}async _isAvailable(){try{if(!indexedDB)return!1;const t=await Aj();return await jJ(t,bI,"1"),await UJ(t,bI),!0}catch{}return!1}async _withPendingWrite(t){this.pendingWrites++;try{await t()}finally{this.pendingWrites--}}async _set(t,n){return this._withPendingWrite(async()=>(await this._withRetries(r=>jJ(r,t,n)),this.localCache[t]=n,this.notifyServiceWorker(t)))}async _get(t){const n=await this._withRetries(r=>aVe(r,t));return this.localCache[t]=n,n}async _remove(t){return this._withPendingWrite(async()=>(await this._withRetries(n=>UJ(n,t)),delete this.localCache[t],this.notifyServiceWorker(t)))}async _poll(){const t=await this._withRetries(i=>{const o=kP(i,!1).getAll();return new CE(o).toPromise()});if(!t)return[];if(this.pendingWrites!==0)return[];const n=[],r=new Set;if(t.length!==0)for(const{fbase_key:i,value:o}of t)r.add(i),JSON.stringify(this.localCache[i])!==JSON.stringify(o)&&(this.notifyListeners(i,o),n.push(i));for(const i of Object.keys(this.localCache))this.localCache[i]&&!r.has(i)&&(this.notifyListeners(i,null),n.push(i));return n}notifyListeners(t,n){this.localCache[t]=n;const r=this.listeners[t];if(r)for(const i of Array.from(r))i(n)}startPolling(){this.stopPolling(),this.pollTimer=setInterval(async()=>this._poll(),cVe)}stopPolling(){this.pollTimer&&(clearInterval(this.pollTimer),this.pollTimer=null)}_addListener(t,n){Object.keys(this.listeners).length===0&&this.startPolling(),this.listeners[t]||(this.listeners[t]=new Set,this._get(t)),this.listeners[t].add(n)}_removeListener(t,n){this.listeners[t]&&(this.listeners[t].delete(n),this.listeners[t].size===0&&delete this.listeners[t]),Object.keys(this.listeners).length===0&&this.stopPolling()}}jge.type="LOCAL";const uVe=jge;new _E(3e4,6e4);/**
1240 * @license
1241 * Copyright 2021 Google LLC
1242 *
1243 * Licensed under the Apache License, Version 2.0 (the "License");
1244 * you may not use this file except in compliance with the License.
1245 * You may obtain a copy of the License at
1246 *
1247 *   http://www.apache.org/licenses/LICENSE-2.0
1248 *
1249 * Unless required by applicable law or agreed to in writing, software
1250 * distributed under the License is distributed on an "AS IS" BASIS,
1251 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1252 * See the License for the specific language governing permissions and
1253 * limitations under the License.
1254 */function Uge(e,t){return t?Pf(t):(Nt(e._popupRedirectResolver,e,"argument-error"),e._popupRedirectResolver)}/**
1255 * @license
1256 * Copyright 2019 Google LLC
1257 *
1258 * Licensed under the Apache License, Version 2.0 (the "License");
1259 * you may not use this file except in compliance with the License.
1260 * You may obtain a copy of the License at
1261 *
1262 *   http://www.apache.org/licenses/LICENSE-2.0
1263 *
1264 * Unless required by applicable law or agreed to in writing, software
1265 * distributed under the License is distributed on an "AS IS" BASIS,
1266 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1267 * See the License for the specific language governing permissions and
1268 * limitations under the License.
1269 */class W$ extends Age{constructor(t){super("custom","custom"),this.params=t}_getIdTokenResponse(t){return My(t,this._buildIdpRequest())}_linkToIdToken(t,n){return My(t,this._buildIdpRequest(n))}_getReauthenticationResolver(t){return My(t,this._buildIdpRequest())}_buildIdpRequest(t){const n={requestUri:this.params.requestUri,sessionId:this.params.sessionId,postBody:this.params.postBody,tenantId:this.params.tenantId,pendingToken:this.params.pendingToken,returnSecureToken:!0,returnIdpCredential:!0};return t&&(n.idToken=t),n}}function dVe(e){return Kze(e.auth,new W$(e),e.bypassAuthState)}function fVe(e){const{auth:t,user:n}=e;return Nt(n,t,"internal-error"),Gze(n,new W$(e),e.bypassAuthState)}async function hVe(e){const{auth:t,user:n}=e;return Nt(n,t,"internal-error"),qze(n,new W$(e),e.bypassAuthState)}/**
1270 * @license
1271 * Copyright 2020 Google LLC
1272 *
1273 * Licensed under the Apache License, Version 2.0 (the "License");
1274 * you may not use this file except in compliance with the License.
1275 * You may obtain a copy of the License at
1276 *
1277 *   http://www.apache.org/licenses/LICENSE-2.0
1278 *
1279 * Unless required by applicable law or agreed to in writing, software
1280 * distributed under the License is distributed on an "AS IS" BASIS,
1281 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1282 * See the License for the specific language governing permissions and
1283 * limitations under the License.
1284 */class Bge{constructor(t,n,r,i,o=!1){this.auth=t,this.resolver=r,this.user=i,this.bypassAuthState=o,this.pendingPromise=null,this.eventManager=null,this.filter=Array.isArray(n)?n:[n]}execute(){return new Promise(async(t,n)=>{this.pendingPromise={resolve:t,reject:n};try{this.eventManager=await this.resolver._initialize(this.auth),await this.onExecution(),this.eventManager.registerConsumer(this)}catch(r){this.reject(r)}})}async onAuthEvent(t){const{urlResponse:n,sessionId:r,postBody:i,tenantId:o,error:s,type:a}=t;if(s){this.reject(s);return}const c={auth:this.auth,requestUri:n,sessionId:r,tenantId:o||void 0,postBody:i||void 0,user:this.user,bypassAuthState:this.bypassAuthState};try{this.resolve(await this.getIdpTask(a)(c))}catch(l){this.reject(l)}}onError(t){this.reject(t)}getIdpTask(t){switch(t){case"signInViaPopup":case"signInViaRedirect":return dVe;case"linkViaPopup":case"linkViaRedirect":return hVe;case"reauthViaPopup":case"reauthViaRedirect":return fVe;default:yd(this.auth,"internal-error")}}resolve(t){nh(this.pendingPromise,"Pending promise was never set"),this.pendingPromise.resolve(t),this.unregisterAndCleanUp()}reject(t){nh(this.pendingPromise,"Pending promise was never set"),this.pendingPromise.reject(t),this.unregisterAndCleanUp()}unregisterAndCleanUp(){this.eventManager&&this.eventManager.unregisterConsumer(this),this.pendingPromise=null,this.cleanUp()}}/**
1285 * @license
1286 * Copyright 2020 Google LLC
1287 *
1288 * Licensed under the Apache License, Version 2.0 (the "License");
1289 * you may not use this file except in compliance with the License.
1290 * You may obtain a copy of the License at
1291 *
1292 *   http://www.apache.org/licenses/LICENSE-2.0
1293 *
1294 * Unless required by applicable law or agreed to in writing, software
1295 * distributed under the License is distributed on an "AS IS" BASIS,
1296 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1297 * See the License for the specific language governing permissions and
1298 * limitations under the License.
1299 */const pVe=new _E(2e3,1e4);async function mVe(e,t,n){if(Af(e.app))return Promise.reject(Ql(e,"operation-not-supported-in-this-environment"));const r=EP(e);hze(e,t,z$);const i=Uge(r,n);return new yg(r,"signInViaPopup",t,i).executeNotNull()}class yg extends Bge{constructor(t,n,r,i,o){super(t,n,i,o),this.provider=r,this.authWindow=null,this.pollId=null,yg.currentPopupAction&&yg.currentPopupAction.cancel(),yg.currentPopupAction=this}async executeNotNull(){const t=await this.execute();return Nt(t,this.auth,"internal-error"),t}async onExecution(){nh(this.filter.length===1,"Popup operations only handle one event");const t=V$();this.authWindow=await this.resolver._openPopup(this.auth,this.provider,this.filter[0],t),this.authWindow.associatedEvent=t,this.resolver._originValidation(this.auth).catch(n=>{this.reject(n)}),this.resolver._isIframeWebStorageSupported(this.auth,n=>{n||this.reject(Ql(this.auth,"web-storage-unsupported"))}),this.pollUserCancellation()}get eventId(){var t;return((t=this.authWindow)===null||t===void 0?void 0:t.associatedEvent)||null}cancel(){this.reject(Ql(this.auth,"cancelled-popup-request"))}cleanUp(){this.authWindow&&this.authWindow.close(),this.pollId&&window.clearTimeout(this.pollId),this.authWindow=null,this.pollId=null,yg.currentPopupAction=null}pollUserCancellation(){const t=()=>{var n,r;if(!((r=(n=this.authWindow)===null||n===void 0?void 0:n.window)===null||r===void 0)&&r.closed){this.pollId=window.setTimeout(()=>{this.pollId=null,this.reject(Ql(this.auth,"popup-closed-by-user"))},8e3);return}this.pollId=window.setTimeout(t,pVe.get())};t()}}yg.currentPopupAction=null;/**
1300 * @license
1301 * Copyright 2020 Google LLC
1302 *
1303 * Licensed under the Apache License, Version 2.0 (the "License");
1304 * you may not use this file except in compliance with the License.
1305 * You may obtain a copy of the License at
1306 *
1307 *   http://www.apache.org/licenses/LICENSE-2.0
1308 *
1309 * Unless required by applicable law or agreed to in writing, software
1310 * distributed under the License is distributed on an "AS IS" BASIS,
1311 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1312 * See the License for the specific language governing permissions and
1313 * limitations under the License.
1314 */const gVe="pendingRedirect",Rx=new Map;class vVe extends Bge{constructor(t,n,r=!1){super(t,["signInViaRedirect","linkViaRedirect","reauthViaRedirect","unknown"],n,void 0,r),this.eventId=null}async execute(){let t=Rx.get(this.auth._key());if(!t){try{const r=await yVe(this.resolver,this.auth)?await super.execute():null;t=()=>Promise.resolve(r)}catch(n){t=()=>Promise.reject(n)}Rx.set(this.auth._key(),t)}return this.bypassAuthState||Rx.set(this.auth._key(),()=>Promise.resolve(null)),t()}async onAuthEvent(t){if(t.type==="signInViaRedirect")return super.onAuthEvent(t);if(t.type==="unknown"){this.resolve(null);return}if(t.eventId){const n=await this.auth._redirectUserForId(t.eventId);if(n)return this.user=n,super.onAuthEvent(t);this.resolve(null)}}async onExecution(){}cleanUp(){}}async function yVe(e,t){const n=SVe(t),r=wVe(e);if(!await r._isAvailable())return!1;const i=await r._get(n)==="true";return await r._remove(n),i}function bVe(e,t){Rx.set(e._key(),t)}function wVe(e){return Pf(e._redirectPersistence)}function SVe(e){return Ix(gVe,e.config.apiKey,e.name)}async function _Ve(e,t,n=!1){if(Af(e.app))return Promise.reject(jg(e));const r=EP(e),i=Uge(r,t),s=await new vVe(r,i,n).execute();return s&&!n&&(delete s.user._redirectEventId,await r._persistUserIfCurrent(s.user),await r._setRedirectUser(null,t)),s}/**
1315 * @license
1316 * Copyright 2020 Google LLC
1317 *
1318 * Licensed under the Apache License, Version 2.0 (the "License");
1319 * you may not use this file except in compliance with the License.
1320 * You may obtain a copy of the License at
1321 *
1322 *   http://www.apache.org/licenses/LICENSE-2.0
1323 *
1324 * Unless required by applicable law or agreed to in writing, software
1325 * distributed under the License is distributed on an "AS IS" BASIS,
1326 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1327 * See the License for the specific language governing permissions and
1328 * limitations under the License.
1329 */const CVe=600*1e3;class EVe{constructor(t){this.auth=t,this.cachedEventUids=new Set,this.consumers=new Set,this.queuedRedirectEvent=null,this.hasHandledPotentialRedirect=!1,this.lastProcessedEventTime=Date.now()}registerConsumer(t){this.consumers.add(t),this.queuedRedirectEvent&&this.isEventForConsumer(this.queuedRedirectEvent,t)&&(this.sendToConsumer(this.queuedRedirectEvent,t),this.saveEventToCache(this.queuedRedirectEvent),this.queuedRedirectEvent=null)}unregisterConsumer(t){this.consumers.delete(t)}onEvent(t){if(this.hasEventBeenHandled(t))return!1;let n=!1;return this.consumers.forEach(r=>{this.isEventForConsumer(t,r)&&(n=!0,this.sendToConsumer(t,r),this.saveEventToCache(t))}),this.hasHandledPotentialRedirect||!TVe(t)||(this.hasHandledPotentialRedirect=!0,n||(this.queuedRedirectEvent=t,n=!0)),n}sendToConsumer(t,n){var r;if(t.error&&!$ge(t)){const i=((r=t.error.code)===null||r===void 0?void 0:r.split("auth/")[1])||"internal-error";n.onError(Ql(this.auth,i))}else n.onAuthEvent(t)}isEventForConsumer(t,n){const r=n.eventId===null||!!t.eventId&&t.eventId===n.eventId;return n.filter.includes(t.type)&&r}hasEventBeenHandled(t){return Date.now()-this.lastProcessedEventTime>=CVe&&this.cachedEventUids.clear(),this.cachedEventUids.has(BJ(t))}saveEventToCache(t){this.cachedEventUids.add(BJ(t)),this.lastProcessedEventTime=Date.now()}}function BJ(e){return[e.type,e.eventId,e.sessionId,e.tenantId].filter(t=>t).join("-")}function $ge({type:e,error:t}){return e==="unknown"&&(t==null?void 0:t.code)==="auth/no-auth-event"}function TVe(e){switch(e.type){case"signInViaRedirect":case"linkViaRedirect":case"reauthViaRedirect":return!0;case"unknown":return $ge(e);default:return!1}}/**
1330 * @license
1331 * Copyright 2020 Google LLC
1332 *
1333 * Licensed under the Apache License, Version 2.0 (the "License");
1334 * you may not use this file except in compliance with the License.
1335 * You may obtain a copy of the License at
1336 *
1337 *   http://www.apache.org/licenses/LICENSE-2.0
1338 *
1339 * Unless required by applicable law or agreed to in writing, software
1340 * distributed under the License is distributed on an "AS IS" BASIS,
1341 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1342 * See the License for the specific language governing permissions and
1343 * limitations under the License.
1344 */async function kVe(e,t={}){return _b(e,"GET","/v1/projects",t)}/**
1345 * @license
1346 * Copyright 2020 Google LLC
1347 *
1348 * Licensed under the Apache License, Version 2.0 (the "License");
1349 * you may not use this file except in compliance with the License.
1350 * You may obtain a copy of the License at
1351 *
1352 *   http://www.apache.org/licenses/LICENSE-2.0
1353 *
1354 * Unless required by applicable law or agreed to in writing, software
1355 * distributed under the License is distributed on an "AS IS" BASIS,
1356 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1357 * See the License for the specific language governing permissions and
1358 * limitations under the License.
1359 */const xVe=/^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$/,AVe=/^https?/;async function IVe(e){if(e.config.emulator)return;const{authorizedDomains:t}=await kVe(e);for(const n of t)try{if(RVe(n))return}catch{}yd(e,"unauthorized-domain")}function RVe(e){const t=kj(),{protocol:n,hostname:r}=new URL(t);if(e.startsWith("chrome-extension://")){const s=new URL(e);return s.hostname===""&&r===""?n==="chrome-extension:"&&e.replace("chrome-extension://","")===t.replace("chrome-extension://",""):n==="chrome-extension:"&&s.hostname===r}if(!AVe.test(n))return!1;if(xVe.test(e))return r===e;const i=e.replace(/\./g,"\\.");return new RegExp("^(.+\\."+i+"|"+i+")$","i").test(r)}/**
1360 * @license
1361 * Copyright 2020 Google LLC.
1362 *
1363 * Licensed under the Apache License, Version 2.0 (the "License");
1364 * you may not use this file except in compliance with the License.
1365 * You may obtain a copy of the License at
1366 *
1367 *   http://www.apache.org/licenses/LICENSE-2.0
1368 *
1369 * Unless required by applicable law or agreed to in writing, software
1370 * distributed under the License is distributed on an "AS IS" BASIS,
1371 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1372 * See the License for the specific language governing permissions and
1373 * limitations under the License.
1374 */const PVe=new _E(3e4,6e4);function $J(){const e=cd().___jsl;if(e!=null&&e.H){for(const t of Object.keys(e.H))if(e.H[t].r=e.H[t].r||[],e.H[t].L=e.H[t].L||[],e.H[t].r=[...e.H[t].L],e.CP)for(let n=0;n<e.CP.length;n++)e.CP[n]=null}}function OVe(e){return new Promise((t,n)=>{var r,i,o;function s(){$J(),gapi.load("gapi.iframes",{callback:()=>{t(gapi.iframes.getContext())},ontimeout:()=>{$J(),n(Ql(e,"network-request-failed"))},timeout:PVe.get()})}if(!((i=(r=cd().gapi)===null||r===void 0?void 0:r.iframes)===null||i===void 0)&&i.Iframe)t(gapi.iframes.getContext());else if(!((o=cd().gapi)===null||o===void 0)&&o.load)s();else{const a=Uze("iframefcb");return cd()[a]=()=>{gapi.load?s():n(Ql(e,"network-request-failed"))},Fze(`${jze()}?onload=${a}`).catch(c=>n(c))}}).catch(t=>{throw Px=null,t})}let Px=null;function NVe(e){return Px=Px||OVe(e),Px}/**
1375 * @license
1376 * Copyright 2020 Google LLC.
1377 *
1378 * Licensed under the Apache License, Version 2.0 (the "License");
1379 * you may not use this file except in compliance with the License.
1380 * You may obtain a copy of the License at
1381 *
1382 *   http://www.apache.org/licenses/LICENSE-2.0
1383 *
1384 * Unless required by applicable law or agreed to in writing, software
1385 * distributed under the License is distributed on an "AS IS" BASIS,
1386 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1387 * See the License for the specific language governing permissions and
1388 * limitations under the License.
1389 */const MVe=new _E(5e3,15e3),DVe="__/auth/iframe",LVe="emulator/auth/iframe",FVe={style:{position:"absolute",top:"-100px",width:"1px",height:"1px"},"aria-hidden":"true",tabindex:"-1"},jVe=new Map([["identitytoolkit.googleapis.com","p"],["staging-identitytoolkit.sandbox.googleapis.com","s"],["test-identitytoolkit.sandbox.googleapis.com","t"]]);function UVe(e){const t=e.config;Nt(t.authDomain,e,"auth-domain-config-required");const n=t.emulator?j$(t,LVe):`https://${e.config.authDomain}/${DVe}
1389`,r={apiKey:t.apiKey,appName:e.name,v:iE},i=jVe.get(e.config.apiHost);i&&(r.eid=i);const o=e._getFrameworks();return o.length&&(r.fw=o.join(",")),`${n}?${rE(r).slice(1)}`}async function BVe(e){const t=await NVe(e),n=cd().gapi;return Nt(n,e,"internal-error"),t.open({where:document.body,url:UVe(e),messageHandlersFilter:n.iframes.CROSS_ORIGIN_IFRAMES_FILTER,attributes:FVe,dontclear:!0},r=>new Promise(async(i,o)=>{await r.restyle({setHideOnLeave:!1});const s=Ql(e,"network-request-failed"),a=cd().setTimeout(()=>{o(s)},MVe.get());function c(){cd().clearTimeout(a),i(r)}r.ping(c).then(c,()=>{o(s)})}))}/**
1390 * @license
1391 * Copyright 2020 Google LLC.
1392 *
1393 * Licensed under the Apache License, Version 2.0 (the "License");
1394 * you may not use this file except in compliance with the License.
1395 * You may obtain a copy of the License at
1396 *
1397 *   http://www.apache.org/licenses/LICENSE-2.0
1398 *
1399 * Unless required by applicable law or agreed to in writing, software
1400 * distributed under the License is distributed on an "AS IS" BASIS,
1401 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1402 * See the License for the specific language governing permissions and
1403 * limitations under the License.
1404 */const $Ve={location:"yes",resizable:"yes",statusbar:"yes",toolbar:"no"},HVe=500,zVe=600,VVe="_blank",WVe="http://localhost";class HJ{constructor(t){this.window=t,this.associatedEvent=null}close(){if(this.window)try{this.window.close()}catch{}}}function qVe(e,t,n,r=HVe,i=zVe){const o=Math.max((window.screen.availHeight-i)/2,0).toString(),s=Math.max((window.screen.availWidth-r)/2,0).toString();let a="";const c=Object.assign(Object.assign({},$Ve),{width:r.toString(),height:i.toString(),top:o,left:s}),l=ea().toLowerCase();n&&(a=wge(l)?VVe:n),yge(l)&&(t=t||WVe,c.scrollbars="yes");const u=Object.entries(c).reduce((f,[p,g])=>`${f}${p}=${g},`,"");if(Ize(l)&&a!=="_self")return GVe(t||"",a),new HJ(null);const d=window.open(t||"",a,u);Nt(d,e,"popup-blocked");try{d.focus()}catch{}return new HJ(d)}function GVe(e,t){const n=document.createElement("a");n.href=e,n.target=t;const r=document.createEvent("MouseEvent");r.initMouseEvent("click",!0,!0,window,1,0,0,0,0,!1,!1,!1,!1,1,null),n.dispatchEvent(r)}/**
1405 * @license
1406 * Copyright 2021 Google LLC
1407 *
1408 * Licensed under the Apache License, Version 2.0 (the "License");
1409 * you may not use this file except in compliance with the License.
1410 * You may obtain a copy of the License at
1411 *
1412 *   http://www.apache.org/licenses/LICENSE-2.0
1413 *
1414 * Unless required by applicable law or agreed to in writing, software
1415 * distributed under the License is distributed on an "AS IS" BASIS,
1416 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1417 * See the License for the specific language governing permissions and
1418 * limitations under the License.
1419 */const KVe="__/auth/handler",YVe="emulator/auth/handler",QVe=encodeURIComponent("fac");async function zJ(e,t,n,r,i,o){Nt(e.config.authDomain,e,"auth-domain-config-required"),Nt(e.config.apiKey,e,"invalid-api-key");const s={apiKey:e.config.apiKey,appName:e.name,authType:n,redirectUrl:r,v:iE,eventId:i};if(t instanceof z$){t.setDefaultLanguage(e.languageCode),s.providerId=t.providerId||"",g4e(t.getCustomParameters())||(s.customParameters=JSON.stringify(t.getCustomParameters()));for(const[u,d]of Object.entries({}))s[u]=d}if(t instanceof Cb){const u=t.getScopes().filter(d=>d!=="");u.length>0&&(s.scopes=u.join(","))}e.tenantId&&(s.tid=e.tenantId);const a=s;for(const u of Object.keys(a))a[u]===void 0&&delete a[u];const c=await e._getAppCheckToken(),l=c?`#${QVe}=${encodeURIComponent(c)}`:"";return`${XVe(e)}?${rE(a).slice(1)}${l}`}function XVe({config:e}){return e.emulator?j$(e,YVe):`https://${e.authDomain}/${KVe}`}/**
1420 * @license
1421 * Copyright 2020 Google LLC
1422 *
1423 * Licensed under the Apache License, Version 2.0 (the "License");
1424 * you may not use this file except in compliance with the License.
1425 * You may obtain a copy of the License at
1426 *
1427 *   http://www.apache.org/licenses/LICENSE-2.0
1428 *
1429 * Unless required by applicable law or agreed to in writing, software
1430 * distributed under the License is distributed on an "AS IS" BASIS,
1431 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1432 * See the License for the specific language governing permissions and
1433 * limitations under the License.
1434 */const VM="webStorageSupport";class JVe{constructor(){this.eventManagers={},this.iframes={},this.originValidationPromises={},this._redirectPersistence=Mge,this._completeRedirectFn=_Ve,this._overrideRedirectResult=bVe}async _openPopup(t,n,r,i){var o;nh((o=this.eventManagers[t._key()])===null||o===void 0?void 0:o.manager,"_initialize() not called before _openPopup()");const s=await zJ(t,n,r,kj(),i);return qVe(t,s,V$())}async _openRedirect(t,n,r,i){await this._originValidation(t);const o=await zJ(t,n,r,kj(),i);return tVe(o),new Promise(()=>{})}_initialize(t){const n=t._key();if(this.eventManagers[n]){const{manager:i,promise:o}=this.eventManagers[n];return i?Promise.resolve(i):(nh(o,"If manager is not set, promise should be"),o)}const r=this.initAndGetManager(t);return this.eventManagers[n]={promise:r},r.catch(()=>{delete this.eventManagers[n]}),r}async initAndGetManager(t){const n=await BVe(t),r=new EVe(t);return n.register("authEvent",i=>
1434(Nt(i==null?void 0:i.authEvent,t,"invalid-auth-event"),{status:r.onEvent(i.authEvent)?"ACK":"ERROR"}),gapi.iframes.CROSS_ORIGIN_IFRAMES_FILTER),this.eventManagers[t._key()]={manager:r},this.iframes[t._key()]=n,r}_isIframeWebStorageSupported(t,n){this.iframes[t._key()].send(VM,{type:VM},i=>{var o;const s=(o=i==null?void 0:i[0])===null||o===void 0?void 0:o[VM];s!==void 0&&n(!!s),yd(t,"internal-error")},gapi.iframes.CROSS_ORIGIN_IFRAMES_FILTER)}_originValidation(t){const n=t._key();return this.originValidationPromises[n]||(this.originValidationPromises[n]=IVe(t)),this.originValidationPromises[n]}get _shouldInitProactively(){return Tge()||bge()||$$()}}const ZVe=JVe;var VJ="@firebase/auth",WJ="1.7.9";/**
1435 * @license
1436 * Copyright 2020 Google LLC
1437 *
1438 * Licensed under the Apache License, Version 2.0 (the "License");
1439 * you may not use this file except in compliance with the License.
1440 * You may obtain a copy of the License at
1441 *
1442 *   http://www.apache.org/licenses/LICENSE-2.0
1443 *
1444 * Unless required by applicable law or agreed to in writing, software
1445 * distributed under the License is distributed on an "AS IS" BASIS,
1446 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1447 * See the License for the specific language governing permissions and
1448 * limitations under the License.
1449 */class eWe{constructor(t){this.auth=t,this.internalListeners=new Map}getUid(){var t;return this.assertAuthConfigured(),((t=this.auth.currentUser)===null||t===void 0?void 0:t.uid)||null}async getToken(t){return this.assertAuthConfigured(),await this.auth._initializationPromise,this.auth.currentUser?{accessToken:await this.auth.currentUser.getIdToken(t)}:null}addAuthTokenListener(t){if(this.assertAuthConfigured(),this.internalListeners.has(t))return;const n=this.auth.onIdTokenChanged(r=>{t((r==null?void 0:r.stsTokenManager.accessToken)||null)});this.internalListeners.set(t,n),this.updateProactiveRefresh()}removeAuthTokenListener(t){this.assertAuthConfigured();const n=this.internalListeners.get(t);n&&(this.internalListeners.delete(t),n(),this.updateProactiveRefresh())}assertAuthConfigured(){Nt(this.auth._initializationPromise,"dependent-sdk-initialized-before-auth")}updateProactiveRefresh(){this.internalListeners.size>0?this.auth._startProactiveRefresh():this.auth._stopProactiveRefresh()}}/**
1450 * @license
1451 * Copyright 2020 Google LLC
1452 *
1453 * Licensed under the Apache License, Version 2.0 (the "License");
1454 * you may not use this file except in compliance with the License.
1455 * You may obtain a copy of the License at
1456 *
1457 *   http://www.apache.org/licenses/LICENSE-2.0
1458 *
1459 * Unless required by applicable law or agreed to in writing, software
1460 * distributed under the License is distributed on an "AS IS" BASIS,
1461 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1462 * See the License for the specific language governing permissions and
1463 * limitations under the License.
1464 */function tWe(e){switch(e){case"Node":return"node";case"ReactNative":return"rn";case"Worker":return"webworker";case"Cordova":return"cordova";case"WebExtension":return"web-extension";default:return}}function nWe(e){V_(new o1("auth",(t,{options:n})=>{const r=t.getProvider("app").getImmediate(),i=t.getProvider("heartbeat"),o=t.getProvider("app-check-internal"),{apiKey:s,authDomain:a}=r.options;Nt(s&&!s.includes(":"),"invalid-api-key",{appName:r.name});const c={apiKey:s,authDomain:a,clientPlatform:e,apiHost:"identitytoolkit.googleapis.com",tokenApiHost:"securetoken.googleapis.com",apiScheme:"https",sdkClientVersion:kge(e)},l=new Dze(r,i,o,c);return $ze(l,n),l},"PUBLIC").setInstantiationMode("EXPLICIT").setInstanceCreatedCallback((t,n,r)=>{t.getProvider("auth-internal").initialize()})),V_(new o1("auth-internal",t=>{const n=EP(t.getProvider("auth").getImmediate());return(r=>new eWe(r))(n)},"PRIVATE").setInstantiationMode("EXPLICIT")),Ey(VJ,WJ,tWe(e)),Ey(VJ,WJ,"esm2017")}/**
1465 * @license
1466 * Copyright 2021 Google LLC
1467 *
1468 * Licensed under the Apache License, Version 2.0 (the "License");
1469 * you may not use this file except in compliance with the License.
1470 * You may obtain a copy of the License at
1471 *
1472 *   http://www.apache.org/licenses/LICENSE-2.0
1473 *
1474 * Unless required by applicable law or agreed to in writing, softw
1474are
1475 * distributed under the License is distributed on an "AS IS" BASIS,
1476 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1477 * See the License for the specific language governing permissions and
1478 * limitations under the License.
1479 */const rWe=300,iWe=tfe("authIdTokenMaxAge")||rWe;let qJ=null;const oWe=e=>async t=>{const n=t&&await t.getIdTokenResult(),r=n&&(new Date().getTime()-Date.parse(n.issuedAtTime))/1e3;if(r&&r>iWe)return;const i=n==null?void 0:n.token;qJ!==i&&(qJ=i,await fetch(e,{method:i?"POST":"DELETE",headers:i?{Authorization:`Bearer ${i}`}:{}}))};function xP(e=y5e()){const t=ofe(e,"auth");if(t.isInitialized())return t.getImmediate();const n=Bze(e,{popupRedirectResolver:ZVe,persistence:[uVe,Oge,Mge]}),r=tfe("authTokenSyncURL");if(r&&typeof isSecureContext=="boolean"&&isSecureContext){const o=new URL(r,location.origin);if(location.origin===o.origin){const s=oWe(o.toString());Qze(n,s,()=>s(n.currentUser)),Yze(n,a=>s(a))}}const i=i4e("auth");return i&&Hze(n,`http://${i}`),n}function sWe(){var e,t;return(t=(e=document.getElementsByTagName("head"))===null||e===void 0?void 0:e[0])!==null&&t!==void 0?t:document}Lze({loadJS(e){return new Promise((t,n)=>{const r=document.createElement("script");r.setAttribute("src",e),r.onload=t,r.onerror=i=>{const o=Ql("internal-error");o.customData=i,n(o)},r.type="text/javascript",r.charset="UTF-8",sWe().appendChild(r)})},gapiScript:"https://apis.google.com/js/api.js",recaptchaV2Script:"https://www.google.com/recaptcha/api.js",recaptchaEnterpriseScript:"https://www.google.com/recaptcha/enterprise.js?render="});nWe("Browser");const rn=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,Ug="8.55.2",En=globalThis;function AP(e,t,n){const r=n||En,i=r.__SENTRY__=r.__SENTRY__||{},o=i[Ug]=i[Ug]||{};return o[e]||(o[e]=t())}const Nm=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,aWe="Sentry Logger ",Ij=["debug","info","warn","error","log","assert","trace"],SI={};function Mm(e){if(!("console"in En))return e();const t=En.console,n={},r=Object.keys(SI);r.forEach(i=>{const o=SI[i];n[i]=t[i],t[i]=o});try{return e()}finally{r.forEach(i=>{t[i]=n[i]})}}function cWe(){let e=!1;const t={enable:()=>{e=!0},disable:()=>{e=!1},isEnabled:()=>e};return Nm?Ij.forEach(n=>{t[n]=(...r)=>{e&&Mm(()=>{En.console[n](`${aWe}[${n}]:`,...r)})}}):Ij.forEach(n=>{t[n]=()=>{}}),t}const ut=AP("logger",cWe),Hge=50,pv="?",GJ=/\(error: (.*)\)/,KJ=/captureMessage|captureException/;function zge(...e){const t=e.sort((n,r)=>n[0]-r[0]).map(n=>n[1]);return(n,r=0,i=0)=>{const o=[],s=n.split(`
1480`);for(let a=r;a<s.length;a++){const c=s[a];if(c.length>1024)continue;const l=GJ.test(c)?c.replace(GJ,"$1"):c;if(!l.match(/\S*Error: /)){for(const u of t){const d=u(l);if(d){o.push(d);break}}if(o.length>=Hge+i)break}}return uWe(o.slice(i))}}function lWe(e){return Array.isArray(e)?zge(...e):e}function uWe(e){if(!e.length)return[];const t=Array.from(e);return/sentryWrapped/.test(CT(t).function||"")&&t.pop(),t.reverse(),KJ.test(CT(t).function||"")&&(t.pop(),KJ.test(CT(t).function||"")&&t.pop()),t.slice(0,Hge).map(n=>({...n,filename:n.filename||CT(t).filename,function:n.function||pv}))}function CT(e){return e[e.length-1]||{}}const WM="<anonymous>";function ih(e){try{return!e||typeof e!="function"?WM:e.name||WM}catch{return WM}}function YJ(e){const t=e.exception;if(t){const n=[];try{return t.values.forEach(r=>{r.stacktrace.frames&&n.push(...r.stacktrace.frames)}),n}catch{return}}}const Ox={},QJ={};function Dm(e,t){Ox[e]=Ox[e]||[],Ox[e].push(t)}function Lm(e,t){if(!QJ[e]){QJ[e]=!0;try{t()}catch(n){Nm&&ut.error(`Error while instrumenting ${e}`,n)}}}function Vc(e,t){const n=e&&Ox[e];if(n)for(const r of n)try{r(t)}catch(i){Nm&&ut.error(`Error while triggering instrumentation handler.
1481Type: ${e}
1482Name: ${ih(r)}
1483Error:`,i)}}let qM=null;function Vge(e){const t="error";Dm(t,e),Lm(t,dWe)}function dWe(){qM=En.onerror,En.onerror=function(e,t,n,r,i){return Vc("error",{column:r,error:i,line:n,msg:e,url:t}),qM?qM.apply(this,arguments):!1},En.onerror.__SENTRY_INSTRUMENTED__=!0}let GM=null;function Wge(e){const t="unhandledrejection";Dm(t,e),Lm(t,fWe)}function fWe(){GM=En.onunhandledrejection,En.onunhandledrejection=function(e){return Vc("unhandledrejection",e),GM?GM.apply(this,arguments):!0},En.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0}function Uv(){return q$(En),En}function q$(e){const t=e.__SENTRY__=e.__SENTRY__||{};return t.version=t.version||Ug,t[Ug]=t[Ug]||{}}const qge=Object.prototype.toString;function G$(e){switch(qge.call(e)){case"[object Error]":case"[object E
1483xception]":case"[object DOMException]":case"[object WebAssembly.Exception]":return!0;default:return oh(e,Error)}}function Eb(e,t){return qge.call(e)===`[object ${t}]`}function Gge(e){return Eb(e,"ErrorEvent")}function XJ(e){return Eb(e,"DOMError")}function hWe(e){return Eb(e,"DOMException")}function Uf(e){return Eb(e,"String")}function K$(e){return typeof e=="object"&&e!==null&&"__sentry_template_string__"in e&&"__sentry_template_values__"in e}function Y$(e){return e===null||K$(e)||typeof e!="object"&&typeof e!="function"}function g1(e){return Eb(e,"Object")}function IP(e){return typeof Event<"u"&&oh(e,Event)}function pWe(e){return typeof Element<"u"&&oh(e,Element)}function mWe(e){return Eb(e,"RegExp")}function RP(e){return!!(e&&e.then&&typeof e.then=="function")}function gWe(e){return g1(e)&&"nativeEvent"in e&&"preventDefault"in e&&"stopPropagation"in e}function oh(e,t){try{return e instanceof t}catch{return!1}}function Kge(e){return!!(typeof e=="object"&&e!==null&&(e.__isVue||e._isVue))}const Dy=En,vWe=80;function sh(e,t={}){if(!e)return"<unknown>";try{let n=e;const r=5,i=[];let o=0,s=0;const a=" > ",c=a.length;let l;const u=Array.isArray(t)?t:t.keyAttrs,d=!Array.isArray(t)&&t.maxStringLength||vWe;for(;n&&o++<r&&(l=yWe(n,u),!(l==="html"||o>1&&s+i.length*c+l.length>=d));)i.push(l),s+=l.length,n=n.parentNode;return i.reverse().join(a)}catch{return"<unknown>"}}function yWe(e,t){const n=e,r=[];if(!n||!n.tagName)return"";if(Dy.HTMLElement&&n instanceof HTMLElement&&n.dataset){if(n.dataset.sentryComponent)return n.dataset.sentryComponent;if(n.dataset.sentryElement)return n.dataset.sentryElement}r.push(n.tagName.toLowerCase());const i=t&&t.length?t.filter(s=>n.getAttribute(s)).map(s=>[s,n.getAttribute(s)]):null;if(i&&i.length)i.forEach(s=>{r.push(`[${s[0]}="${s[1]}"]`)});else{n.id&&r.push(`#${n.id}`);const s=n.className;if(s&&Uf(s)){const a=s.split(/\s+/);for(const c of a)r.push(`.${c}`)}}const o=["aria-label","type","name","title","alt"];for(const s of o){const a=n.getAttribute(s);a&&r.push(`[${s}="${a}"]`)}return r.join("")}function Yge(){try{return Dy.document.location.href}catch{return""}}function bWe(e){return Dy.document&&Dy.document.querySelector?Dy.document.querySelector(e):null}function Qge(e){if(!Dy.HTMLElement)return null;let t=e;const n=5;for(let r=0;r<n;r++){if(!t)return null;if(t instanceof HTMLElement){if(t.dataset.sentryComponent)return t.dataset.sentryComponent;if(t.dataset.sentryElement)return t.dataset.sentryElement}t=t.parentNode}return null}function Ly(e,t=0){return typeof e!="string"||t===0||e.length<=t?e:`${e.slice(0,t)}...`}function JJ(e,t){if(!Array.isArray(e))return"";const n=[];for(let r=0;r<e.length;r++){const i=e[r];try{Kge(i)?n.push("[VueViewModel]"):n.push(String(i))}catch{n.push("[value cannot be serialized]")}}return n.join(t)}function wWe(e,t,n=!1){return Uf(e)?mWe(t)?t.test(e):Uf(t)?n?e===t:e.includes(t):!1:!1}function Hp(e,t=[],n=!1){return t.some(r=>wWe(e,r,n))}function _a(e,t,n){if(!(t in e))return;const r=e[t],i=n(r);typeof i=="function"&&Xge(i,r);try{e[t]=i}catch{Nm&&ut.log(`Failed to replace method "${t}" in object`,e)}}function Qc(e,t,n){try{Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0})}catch{Nm&&ut.log(`Failed to add non-enumerable property "${t}" to object`,e)}}function Xge(e,t){try{const n=t.prototype||{};e.prototype=t.prototype=n,Qc(e,"__sentry_original__",t)}catch{}}function Q$(e){return e.__sentry_original__}function Jge(e){if(G$(e))return{message:e.message,name:e.name,stack:e.stack,...eZ(e)};if(IP(e)){const t={type:e.type,target:ZJ(e.target),currentTarget:ZJ(e.currentTarget),...eZ(e)};return typeof CustomEvent<"u"&&oh(e,CustomEvent)&&(t.detail=e.detail),t}else return e}function ZJ(e){try{return pWe(e)?sh(e):Object.prototype.toString.call(e)}catch{return"<unknown>"}}function eZ(e){if(typeof e=="object"&&e!==null){const t={};for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t}else return{}}function SWe(e,t=40){const n=Object.keys(Jge(e));n.sort();const r=n[0];if(!r)return"[object has no keys]";if(r.length>=t)return Ly(r,t);for(let i=n.length;i>0;i--){const o=n.slice(0,i).join(", ");
1483if(!(o.length>t))return i===n.length?o:Ly(o,t)}return""}function wo(e){return Rj(e,new Map)}function Rj(e,t){if(_We(e)){const n=t.get(e);if(n!==void 0)return n;const r={};t.set(e,r);for(const i of Object.getOwnPropertyNames(e))typeof e[i]<"u"&&(r[i]=Rj(e[i],t));return r}if(Array.isArray(e)){const n=t.get(e);if(n!==void 0)return n;const r=[];return t.set(e,r),e.forEach(i=>{r.push(Rj(i,t))}),r}return e}function _We(e){if(!g1(e))return!1;try{const t=Object.getPrototypeOf(e).constructor.name;return!t||t==="Object"}catch{return!0}}const Zge=1e3;function EE(){return Date.now()/Zge}function CWe(){const{performance:e}=En;if(!e||!e.now)return EE;const t=Date.now()-e.now(),n=e.timeOrigin==null?t:e.timeOrigin;return()=>(n+e.now())/Zge}const Js=CWe(),ta=(()=>{const{performance:e}=En;if(!e||!e.now)return;const t=3600*1e3,n=e.now(),r=Date.now(),i=e.timeOrigin?Math.abs(e.timeOrigin+n-r):t,o=i<t,s=e.timing&&e.timing.navigationStart,c=typeof s=="number"?Math.abs(s+n-r):t,l=c<t;return o||l?i<=c?e.timeOrigin:s:r})();function uc(){const e=En,t=e.crypto||e.msCrypto;let n=()=>Math.random()*16;try{if(t&&t.randomUUID)return t.randomUUID().replace(/-/g,"");t&&t.getRandomValues&&(n=()=>{const r=new Uint8Array(1);return t.getRandomValues(r),r[0]})}catch{}return("10000000100040008000"+1e11).replace(/[018]/g,r=>(r^(n()&15)>>r/4).toString(16))}function eve(e){return e.exception&&e.exception.values?e.exception.values[0]:void 0}function Zh(e){const{message:t,event_id:n}=e;if(t)return t;const r=eve(e);return r?r.type&&r.value?`${r.type}: ${r.value}`:r.type||r.value||n||"<unknown>":n||"<unknown>"}function Pj(e,t,n){const r=e.exception=e.exception||{},i=r.values=r.values||[],o=i[0]=i[0]||{};o.value||(o.value=t||""),o.type||(o.type="Error")}function v1(e,t){const n=eve(e);if(!n)return;const r={type:"generic",handled:!0},i=n.mechanism;if(n.mechanism={...r,...i,...t},t&&"data"in t){const o={...i&&i.data,...t.data};n.mechanism.data=o}}function tZ(e){if(EWe(e))return!0;try{Qc(e,"__sentry_captured__",!0)}catch{}return!1}function EWe(e){try{return e.__sentry_captured__}catch{}}var cf;(function(e){e[e.PENDING=0]="PENDING";const n=1;e[e.RESOLVED=n]="RESOLVED";const r=2;e[e.REJECTED=r]="REJECTED"})(cf||(cf={}));function ah(e){return new Oc(t=>{t(e)})}function _I(e){return new Oc((t,n)=>{n(e)})}class Oc{constructor(t){Oc.prototype.__init.call(this),Oc.prototype.__init2.call(this),Oc.prototype.__init3.call(this),Oc.prototype.__init4.call(this),this._state=cf.PENDING,this._handlers=[];try{t(this._resolve,this._reject)}catch(n){this._reject(n)}}then(t,n){return new Oc((r,i)=>{this._handlers.push([!1,o=>{if(!t)r(o);else try{r(t(o))}catch(s){i(s)}},o=>{if(!n)i(o);else try{r(n(o))}catch(s){i(s)}}]),this._executeHandlers()})}catch(t){return this.then(n=>n,t)}finally(t){return new Oc((n,r)=>{let i,o;return this.then(s=>{o=!1,i=s,t&&t()},s=>{o=!0,i=s,t&&t()}).then(()=>{if(o){r(i);return}n(i)})})}__init(){this._resolve=t=>{this._setResult(cf.RESOLVED,t)}}__init2(){this._reject=t=>{this._setResult(cf.REJECTED,t)}}__init3(){this._setResult=(t,n)=>{if(this._state===cf.PENDING){if(RP(n)){n.then(this._resolve,this._reject);return}this._state=t,this._value=n,this._executeHandlers()}}}__init4(){this._executeHandlers=()=>{if(this._state===cf.PENDING)return;const t=this._handlers.slice();this._handlers=[],t.forEach(n=>{n[0]||(this._state===cf.RESOLVED&&n[1](this._value),this._state===cf.REJECTED&&n[2](this._value),n[0]=!0)})}}}function TWe(e){const t=Js(),n={sid:uc(),init:!0,timestamp:t,started:t,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>xWe(n)};return e&&y1(n,e),n}function y1(e,t={}){if(t.user&&(!e.ipAddress&&t.user.ip_address&&(e.ipAddress=t.user.ip_address),!e.did&&!t.did&&(e.did=t.user.id||t.user.email||t.user.username)),e.timestamp=t.timestamp||Js(),t.abnormal_mechanism&&(e.abnormal_mechanism=t.abnormal_mechanism),t.ignoreDuration&&(e.ignoreDuration=t.ignoreDuration),t.sid&&(e.sid=t.sid.length===32?t.sid:uc()),t.init!==void 0&&(e.init=t.init),!e.did&&t.did&&(e.did=`${t.did}`),typeof t.started=="number"&&(e.started=t.started),e.ignoreDuration)e.duration=void 0;else if(typeof t.duration=="number")e.duration=t.duration;else{const n=e.timestamp-e.started;e.duration=n>=0?n:0}t.release&&(e.release=t.release),t.environment&&(e.environment=t.environment),!e.ipAddress&&t.ipAddress&&(e.ipAddress=t.ipAddress),!e.userAgent&&t.userAgent&&(e.userAgent=t.userAgent),t
vendor: 4,372 bytes, line 1483
1483ypeof t.errors=="number"&&(e.errors=t.errors),t.status&&(e.status=t.status)}function kWe(e,t){let n={};e.status==="ok"&&(n={status:"exited"}),y1(e,n)}function xWe(e){return wo({sid:`${e.sid}`,init:e.init,started:new Date(e.started*1e3).toISOString(),timestamp:new Date(e.timestamp*1e3).toISOString(),status:e.status,errors:e.errors,did:typeof e.did=="number"||typeof e.did=="string"?`${e.did}`:void 0,duration:e.duration,abnormal_mechanism:e.abnormal_mechanism,attrs:{release:e.release,environment:e.environment,ip_address:e.ipAddress,user_agent:e.userAgent}})}function om(){return uc()}function sm(){return uc().substring(16)}function PP(e,t,n=2){if(!t||typeof t!="object"||n<=0)return t;if(e&&t&&Object.keys(t).length===0)return e;const r={...e};for(const i in t)Object.prototype.hasOwnProperty.call(t,i)&&(r[i]=PP(r[i],t[i],n-1));return r}const Oj="_sentrySpan";function cC(e,t){t?Qc(e,Oj,t):delete e[Oj]}function CI(e){return e[Oj]}const AWe=100;class X${constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext={traceId:om(),spanId:sm()}}clone(){const t=new X$;return t._breadcrumbs=[...this._breadcrumbs],t._tags={...this._tags},t._extra={...this._extra},t._contexts={...this._contexts},this._contexts.flags&&(t._contexts.flags={values:[...this._contexts.flags.values]}),t._user=this._user,t._level=this._level,t._session=this._session,t._transactionName=this._transactionName,t._fingerprint=this._fingerprint,t._eventProcessors=[...this._eventProcessors],t._requestSession=this._requestSession,t._attachments=[...this._attachments],t._sdkProcessingMetadata={...this._sdkProcessingMetadata},t._propagationContext={...this._propagationContext},t._client=this._client,t._lastEventId=this._lastEventId,cC(t,CI(this)),t}setClient(t){this._client=t}setLastEventId(t){this._lastEventId=t}getClient(){return this._client}lastEventId(){return this._lastEventId}addScopeListener(t){this._scopeListeners.push(t)}addEventProcessor(t){return this._eventProcessors.push(t),this}setUser(t){return this._user=t||{email:void 0,id:void 0,ip_address:void 0,username:void 0},this._session&&y1(this._session,{user:t}),this._notifyScopeListeners(),this}getUser(){return this._user}getRequestSession(){return this._requestSession}setRequestSession(t){return this._requestSession=t,this}setTags(t){return this._tags={...this._tags,...t},this._notifyScopeListeners(),this}setTag(t,n){return this._tags={...this._tags,[t]:n},this._notifyScopeListeners(),this}setExtras(t){return this._extra={...this._extra,...t},this._notifyScopeListeners(),this}setExtra(t,n){return this._extra={...this._extra,[t]:n},this._notifyScopeListeners(),this}setFingerprint(t){return this._fingerprint=t,this._notifyScopeListeners(),this}setLevel(t){return this._level=t,this._notifyScopeListeners(),this}setTransactionName(t){return this._transactionName=t,this._notifyScopeListeners(),this}setContext(t,n){return n===null?delete this._contexts[t]:this._contexts[t]=n,this._notifyScopeListeners(),this}setSession(t){return t?this._session=t:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(t){if(!t)return this;const n=typeof t=="function"?t(this):t,[r,i]=n instanceof mv?[n.getScopeData(),n.getRequestSession()]:g1(n)?[t,t.requestSession]:[],{tags:o,extra:s,user:a,contexts:c,level:l,fingerprint:u=[],propagationContext:d}=r||{};return this._tags={...this._tags,...o},this._extra={...this._extra,...s},this._contexts={...this._contexts,...c},a&&Object.keys(a).length&&(this._user=a),l&&(this._level=l),u.length&&(this._fingerprint=u),d&&(this._propagationContext=d),i&&(this._requestSession=i),this}clear(){return this._breadcrumbs=[],this._tags={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._requestSession=void 0,this._session=void 0,cC(this,void 0),this._attachments=[],this.setPropagationContext({traceId:om()}),this._notifyScopeListeners(),this}addBreadcrumb(t,n){const r=typeof n=="number"?n:AWe;if(r<=0)return this;const i={timestamp:EE(),...t};return this._breadcrumbs.push(i),this._breadcrumbs.length>r&&(this._breadcrumbs=this._breadcrumbs.slice(-r),this._client&&this._client.re
1483cordDroppedEvent("buffer_overflow","log_item")),this._notifyScopeListeners(),this}getLastBreadcrumb(){return this._breadcrumbs[this._breadcrumbs.length-1]}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(t){return this._attachments.push(t),this}clearAttachments(){return this._attachments=[],this}getScopeData(){return{breadcrumbs:this._breadcrumbs,attachments:this._attachments,contexts:this._contexts,tags:this._tags,extra:this._extra,user:this._user,level:this._level,fingerprint:this._fingerprint||[],eventProcessors:this._eventProcessors,propagationContext:this._propagationContext,sdkProcessingMetadata:this._sdkProcessingMetadata,transactionName:this._transactionName,span:CI(this)}}setSDKProcessingMetadata(t){return this._sdkProcessingMetadata=PP(this._sdkProcessingMetadata,t,2),this}setPropagationContext(t){return this._propagationContext={spanId:sm(),...t},this}getPropagationContext(){return this._propagationContext}captureException(t,n){const r=n&&n.event_id?n.event_id:uc();if(!this._client)return ut.warn("No client configured on scope - will not capture exception!"),r;const i=new Error("Sentry syntheticException");return this._client.captureException(t,{originalException:t,syntheticException:i,...n,event_id:r},this),r}captureMessage(t,n,r){const i=r&&r.event_id?r.event_id:uc();if(!this._client)return ut.warn("No client configured on scope - will not capture message!"),i;const o=new Error(t);return this._client.captureMessage(t,n,{originalException:t,syntheticException:o,...r,event_id:i},this),i}captureEvent(t,n){const r=n&&n.event_id?n.event_id:uc();return this._client?(this._client.captureEvent(t,{...n,event_id:r},this),r):(ut.warn("No client configured on scope - will not capture event!"),r)}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach(t=>{t(this)}),this._notifyingListeners=!1)}}const mv=X$;function IWe(){return AP("defaultCurrentScope",()=>new mv)}function RWe(){return AP("defaultIsolationScope",()=>new mv)}class PWe{constructor(t,n){let r;t?r=t:r=new mv;let i;n?i=n:i=new mv,this._stack=[{scope:r}],this._isolationScope=i}withScope(t){const n=this._pushScope();let r;try{r=t(n)}catch(i){throw this._popScope(),i}return RP(r)?r.then(i=>(this._popScope(),i),i=>{throw this._popScope(),i}):(this._popScope(),r)}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getIsolationScope(){return this._isolationScope}getStackTop(){return this._stack[this._stack.length-1]}_pushScope(){const t=this.getScope().clone();return this._stack.push({client:this.getClient(),scope:t}),t}_popScope(){return this._stack.length<=1?!1:!!this._stack.pop()}}function b1(){const e=Uv(),t=q$(e);return t.stack=t.stack||new PWe(IWe(),RWe())}function OWe(e){return b1().withScope(e)}function NWe(e,t){const n=b1();return n.withScope(()=>(n.getStackTop().scope=e,t(e)))}function nZ(e){return b1().withScope(()=>e(b1().getIsolationScope()))}function MWe(){return{withIsolationScope:nZ,withScope:OWe,withSetScope:NWe,withSetIsolationScope:(e,t)=>nZ(t),getCurrentScope:()=>b1().getScope(),getIsolationScope:()=>b1().getIsolationScope()}}function Tb(e){const t=q$(e);return t.acs?t.acs:MWe()}function Ir(){const e=Uv();return Tb(e).getCurrentScope()}function sl(){const e=Uv();return Tb(e).getIsolationScope()}function DWe(){return AP("globalScope",()=>new mv)}function J$(...e){const t=Uv(),n=Tb(t);if(e.length===2){const[r,i]=e;return r?n.withSetScope(r,i):n.withScope(i)}return n.withScope(e[0])}function _n(){return Ir().getClient()}function LWe(e){const t=e.getPropagationContext(),{traceId:n,spanId:r,parentSpanId:i}=t;return wo({trace_id:n,span_id:r,parent_span_id:i})}const FWe="_sentryMetrics";function Nj(e){const t=e[FWe];if(!t)return;const n={};for(const[,[r,i]]of t)(n[r]||(n[r]=[])).push(wo(i));return n}const Zu="sentry.source",tve="sentry.sample_rate",gv="sentry.op",zo="sentry.origin",Mj="sentry.idle_span_finish_reason",OP="sentry.measurement_unit",NP="sentry.measurement_value",rZ="sentry.custom_span_name",jWe="sentry.profile_id",Z$="sentry.exclusive_time",UWe=0,nve=1,No=2;function BWe(e){if(e<400&&e>=100)return{code:nve};if(e>=400&&e<500)switch(e){case 401:return{code:No,message:"unauthenticated"};case 403:return{code:No,message:"permission_denied"};case 404:return{code:No,message:"not_found"};case 409:return{code:No,message:"already_exists"};case 413:return{code:No,message:"failed_precondition"};case 429:return{code:No,message:"resource_exhausted"};case 499:return{code:No,message:"cancelled"};default:return{code:No,message:"invalid_argument"}}if(e>=500&&e<600)switch(e){case 501:return{code:No,message:"unimplemented"};case 503:return{code:No,message:"unavailable"};case 504:return{code:No,message:"deadline_exceeded"};default:return{code:No,message:"internal_error"}}return{code:No,message:"unknown_error"}}function rve(e,t){e.setAttribute("http.response.status_code",t);const n=BWe(t);n.message!=="unknown_error"&&e.setStatus(n)}const eH="sentry-",$We=/^sentry-/,HWe=8192;function ive(e){const t=VWe(e);if(!t)return;const n=Object.entries(t).reduce((r,[i,o])=>{if(i.match($We)){const s=i.slice(eH.length);r[s]=o}return r},{});if(Object.keys(n).length>0)return n}function zWe(e){if(!e)return;const t=Object.entries(e).reduce((n,[r,i])=>(i&&(n[`${eH}${r}`]=i),n),{});return WWe(t)}function VWe(e){if(!(!e||!Uf(e)&&!Array.isArray(e)))return Array.isArray(e)?e.reduce((t,n)=>{const r=iZ(n);return Object.entries(r).forEach(([i,o])=>{t[i]=o}),t},{}):iZ(e)}function iZ(e){return e.split(",").map(t=>t.split("=").map(n=>decodeURIComponent(n.trim()))).reduce((t,[n,r])=>(n&&r&&(t[n]=r),t),{})}function WWe(e){if(Object.keys(e).length!==0)return Object.entries(e).reduce((t,[n,r],i)=>{const o=`${encodeURIComponent(n)}=${encodeURIComponent(r)}`,s=i===0?o:`${t},${o}`;return s.length>HWe?(Nm&&ut.warn(`Not adding key: ${n} with val: ${r} to baggage header due to exceeding baggage size limits.`),t):s},"")}
1483const ove=new RegExp("^[ \\t]*([0-9a-f]{32})?-?([0-9a-f]{16})?-?([01])?[ \\t]*$");function qWe(e){if(!e)return;const t=e.match(ove);if(!t)return;let n;return t[3]==="1"?n=!0:t[3]==="0"&&(n=!1),{traceId:t[1],parentSampled:n,parentSpanId:t[2]}}function GWe(e,t){const n=qWe(e),r=ive(t);if(!n||!n.traceId)return{traceId:om(),spanId:sm()};const{traceId:i,parentSpanId:o,parentSampled:s}=n,a=sm();return{traceId:i,parentSpanId:o,spanId:a,sampled:s,dsc:r||{}}}function sve(e=om(),t=sm(),n){let r="";return n!==void 0&&(r=n?"-1":"-0"),`${e}-${t}${r}`}const ave=0,cve=1;let oZ=!1;function KWe(e){const{spanId:t,traceId:n}=e.spanContext(),{data:r,op:i,parent_span_id:o,status:s,origin:a}=Ln(e);return wo({parent_span_id:o,span_id:t,trace_id:n,data:r,op:i,status:s,origin:a})}function YWe(e){const{spanId:t,traceId:n,isRemote:r}=e.spanContext(),i=r?t:Ln(e).parent_span_id,o=r?sm():t;return wo({parent_span_id:i,span_id:o,trace_id:n})}function QWe(e){const{traceId:t,spanId:n}=e.spanContext(),r=Bv(e);return sve(t,n,r)}function Bg(e){return typeof e=="number"?sZ(e):Array.isArray(e)?e[0]+e[1]/1e9:e instanceof Date?sZ(e.getTime()):Js()}function sZ(e){return e>9999999999?e/1e3:e}function Ln(e){if(JWe(e))return e.getSpanJSON();try{const{spanId:t,traceId:n}=e.spanContext();if(XWe(e)){const{attributes:r,startTime:i,name:o,endTime:s,parentSpanId:a,status:c}=e;return wo({span_id:t,trace_id:n,data:r,description:o,parent_span_id:a,start_timestamp:Bg(i),timestamp:Bg(s)||void 0,status:lve(c),op:r[gv],origin:r[zo],_metrics_summary:Nj(e)})}return{span_id:t,trace_id:n}}catch{return{}}}function XWe(e){const t=e;return!!t.attributes&&!!t.startTime&&!!t.name&&!!t.endTime&&!!t.status}function JWe(e){return typeof e.getSpanJSON=="function"}function Bv(e){const{traceFlags:t}=e.spanContext();return t===cve}function lve(e){if(!(!e||e.code===UWe))return e.code===nve?"ok":e.message||"unknown_error"}const $g="_sentryChildSpans",Dj="_sentryRootSpan";function uve(e,t){const n=e[Dj]||e;Qc(t,Dj,n),e[$g]?e[$g].add(t):Qc(e,$g,new Set([t]))}function ZWe(e,t){e[$g]&&e[$g].delete(t)}function Nx(e){const t=new Set;function n(r){if(!t.has(r)&&Bv(r)){t.add(r);const i=r[$g]?Array.from(r[$g]):[];for(const o of i)n(o)}}return n(e),Array.from(t)}function as(e){return e[Dj]||e}function Vo(){const e=Uv(),t=Tb(e);return t.getActiveSpan?t.getActiveSpan():CI(Ir())}function dve(){oZ||(Mm(()=>{console.warn("[Sentry] Deprecation warning: Returning null from `beforeSendSpan` will be disallowed from SDK version 9.0.0 onwards. The callback will only support mutating spans. To drop certain spans, configure the respective integrations directly.")}),oZ=!0)}let aZ=!1;function eqe(){aZ||(aZ=!0,Vge(Lj),Wge(Lj))}function Lj(){const e=Vo(),t=e&&as(e);if(t){const n="internal_error";rn&&ut.log(`[Tracing] Root span: ${n} -> Global error occurred`),t.setStatus({code:No,message:n})}}Lj.tag="sentry_tracingErrorCallback";const fve="_sentryScope",hve="_sentryIsolationScope";function tqe(e,t,n){e&&(Qc(e,hve,n),Qc(e,fve,t))}function cZ(e){return{scope:e[fve],isolationScope:e[hve]}}function am(e){if(typeof __SENTRY_TRACING__=="boolean"&&!__SENTRY_TRACING__)return!1;const t=_n(),n=e||t&&t.getOptions();return!!n&&(n.enableTracing||"tracesSampleRate"in n||"tracesSampler"in n)}class kb{constructor(t={}){this._traceId=t.traceId||om(),this._spanId=t.spanId||sm()}spanContext(){return{spanId:this._spanId,traceId:this._traceId,traceFlags:ave}}end(t){}setAttribute(t,n){return this}setAttributes(t){return this}setStatus(t){return this}updateName(t){return this}isRecording(){return!1}addEvent(t,n,r){return this}addLink(t){return this}addLinks(t){return this}recordException(t,n){}}const tH="production",pve="_frozenDsc";function lZ(e,t){Qc(e,pve,t)}function mve(e,t){const n=t.getOptions(),{publicKey:r}=t.getDsn()||{},i=wo({environment:n.environment||tH,release:n.release,public_key:r,trace_id:e});return t.emit("createDsc",i),i}function gve(e,t){const n=t.getPropagationContext();return n.dsc||mve(n.traceId,e)}function $v(e){const t=_n();if(!t)return{};const n=as(e),r=n[pve];if(r)return r;const i=n.spanContext().traceState,o=i&&i.get("sentry.dsc"),s=o&&ive(o);if(s)return s;const a=mve(e.spanContext().traceId,t),c=Ln(n),l=c.data||{},u=l[tve];u!=null&&(a.sample_rate=`${u}`);const d=l[Zu],f=c.description;return d!=="url"&&f&&(a.transaction=f),am()&&(a.sampled=String(Bv(n))),t.emit("createDsc",a,n),a}
1483function nqe(e){if(!rn)return;const{description:t="< unknown name >",op:n="< unknown op >",parent_span_id:r}=Ln(e),{spanId:i}=e.spanContext(),o=Bv(e),s=as(e),a=s===e,c=`[Tracing] Starting ${o?"sampled":"unsampled"} ${a?"root ":""}span`,l=[`op: ${n}`,`name: ${t}`,`ID: ${i}`];if(r&&l.push(`parent ID: ${r}`),!a){const{op:u,description:d}=Ln(s);l.push(`root ID: ${s.spanContext().spanId}`),u&&l.push(`root op: ${u}`),d&&l.push(`root description: ${d}`)}ut.log(`${c}
1484  ${l.join(`
1485  `)}`)}function rqe(e){if(!rn)return;const{description:t="< unknown name >",op:n="< unknown op >"}=Ln(e),{spanId:r}=e.spanContext(),o=as(e)===e,s=`[Tracing] Finishing "${n}" ${o?"root ":""}span "${t}" with ID ${r}`;ut.log(s)}function EI(e){if(typeof e=="boolean")return Number(e);const t=typeof e=="string"?parseFloat(e):e;if(typeof t!="number"||isNaN(t)||t<0||t>1){rn&&ut.warn(`[Tracing] Given sample rate is invalid. Sample rate must be a boolean or a number between 0 and 1. Got ${JSON.stringify(e)} of type ${JSON.stringify(typeof e)}.`);return}return t}function iqe(e,t){if(!am(e))return[!1];const n=sl().getScopeData().sdkProcessingMetadata.normalizedRequest,r={...t,normalizedRequest:t.normalizedRequest||n};let i;typeof e.tracesSampler=="function"?i=e.tracesSampler(r):r.parentSampled!==void 0?i=r.parentSampled:typeof e.tracesSampleRate<"u"?i=e.tracesSampleRate:i=1;const o=EI(i);return o===void 0?(rn&&ut.warn("[Tracing] Discarding transaction because of invalid sample rate."),[!1]):o?Math.random()<o?[!0,o]:(rn&&ut.log(`[Tracing] Discarding transaction because it's not included in the random sample (sampling rate = ${Number(i)})`),[!1,o]):(rn&&ut.log(`[Tracing] Discarding transaction because ${typeof e.tracesSampler=="function"?"tracesSampler returned 0 or false":"a negative sampling decision was inherited or tracesSampleRate is set to 0"}`),[!1,o])}const oqe=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)([\w.-]+)(?::(\d+))?\/(.+)/;function sqe(e){return e==="http"||e==="https"}function TE(e,t=!1){const{host:n,path:r,pass:i,port:o,projectId:s,protocol:a,publicKey:c}=e;return`${a}://${c}${t&&i?`:${i}`:""}@${n}${o?`:${o}`:""}/${r&&`${r}/`}${s}`}function aqe(e){const t=oqe.exec(e);if(!t){Mm(()=>{console.error(`Invalid Sentry Dsn: ${e}`)});return}const[n,r,i="",o="",s="",a=""]=t.slice(1);let c="",l=a;const u=l.split("/");if(u.length>1&&(c=u.slice(0,-1).join("/"),l=u.pop()),l){const d=l.match(/^\d+/);d&&(l=d[0])}return vve({host:o,pass:i,path:c,projectId:l,port:s,protocol:n,publicKey:r})}function vve(e){return{protocol:e.protocol,publicKey:e.publicKey||"",pass:e.pass||"",host:e.host,port:e.port||"",path:e.path||"",projectId:e.projectId}}function cqe(e){if(!Nm)return!0;const{port:t,projectId:n,protocol:r}=e;return["protocol","publicKey","host","projectId"].find(s=>e[s]?!1:(ut.error(`Invalid Sentry Dsn: ${s} missing`),!0))?!1:n.match(/^\d+$/)?sqe(r)?t&&isNaN(parseInt(t,10))?(ut.error(`Invalid Sentry Dsn: Invalid port ${t}`),!1):!0:(ut.error(`Invalid Sentry Dsn: Invalid protocol ${r}`),!1):(ut.error(`Invalid Sentry Dsn: Invalid projectId ${n}`),!1)}function lqe(e){const t=typeof e=="string"?aqe(e):vve(e);if(!(!t||!cqe(t)))return t}function uqe(){const e=typeof WeakSet=="function",t=e?new WeakSet:[];function n(i){if(e)return t.has(i)?!0:(t.add(i),!1);for(let o=0;o<t.length;o++)if(t[o]===i)return!0;return t.push(i),!1}function r(i){if(e)t.delete(i);else for(let o=0;o<t.length;o++)if(t[o]===i){t.splice(o,1);break}}return[n,r]}function Pl(e,t=100,n=1/0){try{return Fj("",e,t,n)}catch(r){return{ERROR:`**non-serializable** (${r})`}}}function yve(e,t=3,n=100*1024){const r=Pl(e,t);return pqe(r)>n?yve(e,t-1,n):r}function Fj(e,t,n=1/0,r=1/0,i=uqe()){const[o,s]=i;if(t==null||["boolean","string"].includes(typeof t)||typeof t=="number"&&Number.isFinite(t))return t;const a=dqe(e,t);if(!a.startsWith("[object "))return a;if(t.__sentry_skip_normalization__)return t;const c=typeof t.__sentry_override_normalization_depth__=="number"?t.__sentry_override_normalization_depth__:n;if(c===0)return a.replace("object ","");if(o(t))return"[Circular ~]";const l=t;if(l&&typeof l.toJSON=="function")try{const p=l.toJSON();return Fj("",p,c-1,r,i)}catch{}const u=Array.isArray(t)?[]:{};let d=0;const f=Jge(t);for(const p in f){if(!Object.prototype.hasOwnProperty.call(f,p))continue;if(d>=r){u[p]="[MaxProperties ~]";break}const g=f[p];u[p]=Fj(p,g,c-1,r,i),d++}return s(t),u}function dqe(e,t){try{if(e==="domain"&&t&&typeof t=="object"&&t._events)return"[Domain]";if(e==="domainEmitter")return"[DomainEmitter]";if(typeof global<"u"&&t===global)return"[Global]";if(typeof window<"u"&&t===window)return"[Window]";if(typeof document<"u"&&t===document)return"[Document]";if(Kge(t))return"[VueViewModel]";if(gWe(t))return"[SyntheticEvent]";if(typeof t=="number"&&!Number.isFinite(t))return`[${t}]`;if(typeof t=="function")return`[Function: ${ih(t)}]`;if(typeof t=="symbol")return`[${String(t)}]`;if(typeof t=="bigint")return`[BigInt: ${String(t)}]`;const n=fqe(t);return/^HTML(\w*)Element$/.test(n)?`[HTMLElement: ${n}]`:`[object ${n}]`}catch(n){return`**non-serializable** (${n})`}}function fqe(e){const t=Object.getPrototypeOf(e);return t?t.constructor.name:"null prototype"}function hqe(e){return~-encodeURI(e).split(/%..|./).length}function pqe(e){return hqe(JSON.stringify(e))}function Hv(e,t=[]){return[e,t]}function mqe(e,t){const[n,r]=e;return[n,[...r,t]]}function uZ(e,t){const n=e[1];for(const r of n){const i=r[0].type;if(t(r,i))return!0}return!1}function jj(e){return En.__SENTRY__&&En.__SENTRY__.encodePolyfill?En.__SENTRY__.encodePolyfill(e):new TextEncoder().encode(e)}function gqe(e){const[t,n]=e;let r=JSON.stringify(t);
1485function i(o){typeof r=="string"?r=typeof o=="string"?r+o:[jj(r),o]:r.push(typeof o=="string"?jj(o):o)}for(const o of n){const[s,a]=o;if(i(`
1486${JSON.stringify(s)}
1487`),typeof a=="string"||a instanceof Uint8Array)i(a);else{let c;try{c=JSON.stringify(a)}catch{c=JSON.stringify(Pl(a))}i(c)}}return typeof r=="string"?r:vqe(r)}function vqe(e){const t=e.reduce((i,o)=>i+o.length,0),n=new Uint8Array(t);let r=0;for(const i of e)n.set(i,r),r+=i.length;return n}function yqe(e){return[{type:"span"},e]}function bqe(e){const t=typeof e.data=="string"?jj(e.data):e.data;return[wo({type:"attachment",length:t.length,filename:e.filename,content_type:e.contentType,attachment_type:e.attachmentType}),t]}const wqe={session:"session",sessions:"session",attachment:"attachment",transaction:"transaction",event:"error",client_report:"internal",user_report:"default",profile:"profile",profile_chunk:"profile",replay_event:"replay",replay_recording:"replay",check_in:"monitor",feedback:"feedback",span:"span",statsd:"metric_bucket",raw_security:"security"};function dZ(e){return wqe[e]}function nH(e){if(!e||!e.sdk)return;const{name:t,version:n}=e.sdk;return{name:t,version:n}}function bve(e,t,n,r){const i=e.sdkProcessingMetadata&&e.sdkProcessingMetadata.dynamicSamplingContext;return{event_id:e.event_id,sent_at:new Date().toISOString(),...t&&{sdk:t},...!!n&&r&&{dsn:TE(r)},...i&&{trace:wo({...i})}}}function Sqe(e,t){return t&&(e.sdk=e.sdk||{},e.sdk.name=e.sdk.name||t.name,e.sdk.version=e.sdk.version||t.version,e.sdk.integrations=[...e.sdk.integrations||[],...t.integrations||[]],e.sdk.packages=[...e.sdk.packages||[],...t.packages||[]]),e}function _qe(e,t,n,r){const i=nH(n),o={sent_at:new Date().toISOString(),...i&&{sdk:i},...!!r&&t&&{dsn:TE(t)}},s="aggregates"in e?[{type:"sessions"},e]:[{type:"session"},e.toJSON()];return Hv(o,[s])}function Cqe(e,t,n,r){const i=nH(n),o=e.type&&e.type!=="replay_event"?e.type:"event";Sqe(e,n&&n.sdk);const s=bve(e,i,r,t);return delete e.sdkProcessingMetadata,Hv(s,[[{type:o},e]])}function Eqe(e,t){function n(u){return!!u.trace_id&&!!u.public_key}const r=$v(e[0]),i=t&&t.getDsn(),o=t&&t.getOptions().tunnel,s={sent_at:new Date().toISOString(),...n(r)&&{trace:r},...!!o&&i&&{dsn:TE(i)}},a=t&&t.getOptions().beforeSendSpan,c=a?u=>{const d=a(Ln(u));return d||dve(),d}:u=>Ln(u),l=[];for(const u of e){const d=c(u);d&&l.push(yqe(d))}return Hv(s,l)}function Tqe(e,t,n,r=Vo()){const i=r&&as(r);i&&(rn&&ut.log(`[Measurement] Setting measurement on root span: ${e} = ${t} ${n}`),i.addEvent(e,{[NP]:t,[OP]:n}))}function fZ(e){if(!e||e.length===0)return;const t={};return e.forEach(n=>{const r=n.attributes||{},i=r[OP],o=r[NP];typeof i=="string"&&typeof o=="number"&&(t[n.name]={value:o,unit:i})}),t}const hZ=1e3;class rH{constructor(t={}){this._traceId=t.traceId||om(),this._spanId=t.spanId||sm(),this._startTime=t.startTimestamp||Js(),this._attributes={},this.setAttributes({[zo]:"manual",[gv]:t.op,...t.attributes}),this._name=t.name,t.parentSpanId&&(this._parentSpanId=t.parentSpanId),"sampled"in t&&(this._sampled=t.sampled),t.endTimestamp&&(this._endTime=t.endTimestamp),this._events=[],this._isStandaloneSpan=t.isStandalone,this._endTime&&this._onSpanEnded()}addLink(t){return this}addLinks(t){return this}recordException(t,n){}spanContext(){const{_spanId:t,_traceId:n,_sampled:r}=this;return{spanId:t,traceId:n,traceFlags:r?cve:ave}}setAttribute(t,n){return n===void 0?delete this._attributes[t]:this._attributes[t]=n,this}setAttributes(t){return Object.keys(t).forEach(n=>this.setAttribute(n,t[n])),this}updateStartTime(t){this._startTime=Bg(t)}setStatus(t){return this._status=t,this}updateName(t){return this._name=t,this.setAttribute(Zu,"custom"),this}end(t){this._endTime||(this._endTime=Bg(t),rqe(this),this._onSpanEnded())}getSpanJSON(){return wo({data:this._attributes,description:this._name,op:this._attributes[gv],parent_span_id:this._parentSpanId,span_id:this._spanId,start_timestamp:this._startTime,status:lve(this._status),timestamp:this._endTime,trace_id:this._traceId,origin:this._attributes[zo],_metrics_summary:Nj(this),profile_id:this._attributes[jWe],exclusive_time:this._attributes[Z$],measurements:fZ(this._events),is_segment:this._isStandaloneSpan&&as(this)===this||void 0,segment_id:this._isStandaloneSpan?as(this).spanContext().spanId:void 0})}isRecording(){return!this._endTime&&!!this._sampled}addEvent(t,n,r){rn&&ut.log("[Tracing] Adding an event to span:",t);const i=pZ(n)?n:r||Js(),o=pZ(n)?{}:n||{}
1487,s={name:t,time:Bg(i),attributes:o};return this._events.push(s),this}isStandaloneSpan(){return!!this._isStandaloneSpan}_onSpanEnded(){const t=_n();if(t&&t.emit("spanEnd",this),!(this._isStandaloneSpan||this===as(this)))return;if(this._isStandaloneSpan){this._sampled?xqe(Eqe([this],t)):(rn&&ut.log("[Tracing] Discarding standalone span because its trace was not chosen to be sampled."),t&&t.recordDroppedEvent("sample_rate","span"));return}const r=this._convertSpanToTransaction();r&&(cZ(this).scope||Ir()).captureEvent(r)}_convertSpanToTransaction(){if(!mZ(Ln(this)))return;this._name||(rn&&ut.warn("Transaction has no name, falling back to `<unlabeled transaction>`."),this._name="<unlabeled transaction>");const{scope:t,isolationScope:n}=cZ(this),i=(t||Ir()).getClient()||_n();if(this._sampled!==!0){rn&&ut.log("[Tracing] Discarding transaction because its trace was not chosen to be sampled."),i&&i.recordDroppedEvent("sample_rate","transaction");return}const s=Nx(this).filter(d=>d!==this&&!kqe(d)).map(d=>Ln(d)).filter(mZ),a=this._attributes[Zu];delete this._attributes[rZ],s.forEach(d=>{d.data&&delete d.data[rZ]});const c={contexts:{trace:KWe(this)},spans:s.length>hZ?s.sort((d,f)=>d.start_timestamp-f.start_timestamp).slice(0,hZ):s,start_timestamp:this._startTime,timestamp:this._endTime,transaction:this._name,type:"transaction",sdkProcessingMetadata:{capturedSpanScope:t,capturedSpanIsolationScope:n,...wo({dynamicSamplingContext:$v(this)})},_metrics_summary:Nj(this),...a&&{transaction_info:{source:a}}},l=fZ(this._events);return l&&Object.keys(l).length&&(rn&&ut.log("[Measurements] Adding measurements to transaction event",JSON.stringify(l,void 0,2)),c.measurements=l),c}}function pZ(e){return e&&typeof e=="number"||e instanceof Date||Array.isArray(e)}function mZ(e){return!!e.start_timestamp&&!!e.timestamp&&!!e.span_id&&!!e.trace_id}function kqe(e){return e instanceof rH&&e.isStandaloneSpan()}function xqe(e){const t=_n();if(!t)return;const n=e[1];if(!n||n.length===0){t.recordDroppedEvent("before_send","span");return}t.sendEnvelope(e)}const wve="__SENTRY_SUPPRESS_TRACING__";function kE(e){const t=_ve();if(t.startInactiveSpan)return t.startInactiveSpan(e);const n=Iqe(e),{forceTransaction:r,parentSpan:i}=e;return(e.scope?s=>J$(e.scope,s):i!==void 0?s=>Sve(i,s):s=>s())(()=>{const s=Ir(),a=Pqe(s);return e.onlyIfParent&&!a?new kb:Aqe({parentSpan:a,spanArguments:n,forceTransaction:r,scope:s})})}function Sve(e,t){const n=_ve();return n.withActiveSpan?n.withActiveSpan(e,t):J$(r=>(cC(r,e||void 0),t(r)))}function Aqe({parentSpan:e,spanArguments:t,forceTransaction:n,scope:r}){if(!am())return new kb;const i=sl();let o;if(e&&!n)o=Rqe(e,r,t),uve(e,o);else if(e){const s=$v(e),{traceId:a,spanId:c}=e.spanContext(),l=Bv(e);o=gZ({traceId:a,parentSpanId:c,...t},r,l),lZ(o,s)}else{const{traceId:s,dsc:a,parentSpanId:c,sampled:l}={...i.getPropagationContext(),...r.getPropagationContext()};o=gZ({traceId:s,parentSpanId:c,...t},r,l),a&&lZ(o,a)}return nqe(o),tqe(o,r,i),o}function Iqe(e){const n={isStandalone:(e.experimental||{}).standalone,...e};if(e.startTime){const r={...n};return r.startTimestamp=Bg(e.startTime),delete r.startTime,r}return n}function _ve(){const e=Uv();return Tb(e)}function gZ(e,t,n){const r=_n(),i=r&&r.getOptions()||{},{name:o="",attributes:s}=e,[a,c]=t.getScopeData().sdkProcessingMetadata[wve]?[!1]:iqe(i,{name:o,parentSampled:n,attributes:s,transactionContext:{name:o,parentSampled:n}}),l=new rH({...e,attributes:{[Zu]:"custom",...e.attributes},sampled:a});return c!==void 0&&l.setAttribute(tve,c),r&&r.emit("spanStart",l),l}function Rqe(e,t,n){const{spanId:r,traceId:i}=e.spanContext(),o=t.getScopeData().sdkProcessingMetadata[wve]?!1:Bv(e),s=o?new rH({...n,parentSpanId:r,traceId:i,sampled:o}):new kb({traceId:i});uve(e,s);const a=_n();return a&&(a.emit("spanStart",s),n.endTimestamp&&a.emit("spanEnd",s)),s}function Pqe(e){const t=CI(e);if(!t)return;const n=_n();return(n?n.getOptions():{}).parentSpanIsAlwaysRootSpan?as(t):t}const Mx={idleTimeout:1e3,finalTimeout:3e4,childSpanTimeout:15e3},Oqe="heartbeatFailed",Nqe="idleTimeout",Mqe="finalTimeout",Dqe="externalFinish";function Cve(e,t={}){const n=new Map;let r=!1,i,o=Dqe,s=!t.disableAutoFinish;const a=[],{idleTimeout:c=Mx.idleTimeout,finalTimeout:l=Mx.finalTimeout,childSpanTimeout:u=Mx.childSpanTimeout,beforeSpanEnd:d}=t,f=_n();if(!f||!am())return new kb;const p=Ir(),g=Vo(),m=Lqe(e);m.end=new Proxy(m.end,{apply(T,x,O){d&&d(m);const[A,...L]=O,U=A||Js(),I=Bg(U),F=Nx(m).filter(X=>X!==m);if(!F.length)return E(I),Reflect.apply(T,x,[I,...L]);const P=F.map(X=>Ln(X).timestamp).filter(X=>!!X),W=P.length?Math.max(...P):void 0,ee=Ln(m).start_timestamp,Y=Math.min(ee?ee+l/1e3:1/0,Math.max(ee||-1/0,Math.min(I,W||1/0)));return E(Y),Reflect.apply(T,x,[Y,...L])}});function y(){i&&(clearTimeout(i),i=void 0)}function v(T){y(),i=setTimeout(()=>{!r&&n.size===0&&s&&(o=Nqe,m.end(T))}
1487,c)}function w(T){i=setTimeout(()=>{!r&&s&&(o=Oqe,m.end(T))},u)}function S(T){y(),n.set(T,!0);const x=Js();w(x+u/1e3)}function C(T){if(n.has(T)&&n.delete(T),n.size===0){const x=Js();v(x+c/1e3)}}function E(T){r=!0,n.clear(),a.forEach(I=>I()),cC(p,g);const x=Ln(m),{start_timestamp:O}=x;if(!O)return;(x.data||{})[Mj]||m.setAttribute(Mj,o),ut.log(`[Tracing] Idle span "${x.op}" finished`);const L=Nx(m).filter(I=>I!==m);let U=0;L.forEach(I=>{I.isRecording()&&(I.setStatus({code:No,message:"cancelled"}),I.end(T),rn&&ut.log("[Tracing] Cancelling span since span ended early",JSON.stringify(I,void 0,2)));const F=Ln(I),{timestamp:P=0,start_timestamp:W=0}=F,ee=W<=T,Y=(l+c)/1e3,X=P-W<=Y;if(rn){const Z=JSON.stringify(I,void 0,2);ee?X||ut.log("[Tracing] Discarding span since it finished after idle span final timeout",Z):ut.log("[Tracing] Discarding span since it happened after idle span was finished",Z)}(!X||!ee)&&(ZWe(m,I),U++)}),U>0&&m.setAttribute("sentry.idle_span_discarded_spans",U)}return a.push(f.on("spanStart",T=>{if(r||T===m||Ln(T).timestamp)return;Nx(m).includes(T)&&S(T.spanContext().spanId)})),a.push(f.on("spanEnd",T=>{r||C(T.spanContext().spanId)})),a.push(f.on("idleSpanEnableAutoFinish",T=>{T===m&&(s=!0,v(),n.size&&w())})),t.disableAutoFinish||v(),setTimeout(()=>{r||(m.setStatus({code:No,message:"deadline_exceeded"}),o=Mqe,m.end())},l),m}function Lqe(e){const t=kE(e);return cC(Ir(),t),rn&&ut.log("[Tracing] Started span is an idle span"),t}function Uj(e,t,n,r=0){return new Oc((i,o)=>{const s=e[r];if(t===null||typeof s!="function")i(t);else{const a=s({...t},n);rn&&s.id&&a===null&&ut.log(`Event processor "${s.id}" dropped event`),RP(a)?a.then(c=>Uj(e,c,n,r+1).then(i)).then(null,o):Uj(e,a,n,r+1).then(i).then(null,o)}})}let ET,vZ,TT;function Fqe(e){const t=En._sentryDebugIds;if(!t)return{};const n=Object.keys(t);return TT&&n.length===vZ||(vZ=n.length,TT=n.reduce((r,i)=>{ET||(ET={});const o=ET[i];if(o)r[o[0]]=o[1];else{const s=e(i);for(let a=s.length-1;a>=0;a--){const c=s[a],l=c&&c.filename,u=t[i];if(l&&u){r[l]=u,ET[i]=[l,u];break}}}return r},{})),TT}function jqe(e,t){const{fingerprint:n,span:r,breadcrumbs:i,sdkProcessingMetadata:o}=t;Uqe(e,t),r&&Hqe(e,r),zqe(e,n),Bqe(e,i),$qe(e,o)}function yZ(e,t){const{extra:n,tags:r,user:i,contexts:o,level:s,sdkProcessingMetadata:a,breadcrumbs:c,fingerprint:l,eventProcessors:u,attachments:d,propagationContext:f,transactionName:p,span:g}=t;kT(e,"extra",n),kT(e,"tags",r),kT(e,"user",i),kT(e,"contexts",o),e.sdkProcessingMetadata=PP(e.sdkProcessingMetadata,a,2),s&&(e.level=s),p&&(e.transactionName=p),g&&(e.span=g),c.length&&(e.breadcrumbs=[...e.breadcrumbs,...c]),l.length&&(e.fingerprint=[...e.fingerprint,...l]),u.length&&(e.eventProcessors=[...e.eventProcessors,...u]),d.length&&(e.attachments=[...e.attachments,...d]),e.propagationContext={...e.propagationContext,...f}}function kT(e,t,n){e[t]=PP(e[t],n,1)}function Uqe(e,t){const{extra:n,tags:r,user:i,contexts:o,level:s,transactionName:a}=t,c=wo(n);c&&Object.keys(c).length&&(e.extra={...c,...e.extra});const l=wo(r);l&&Object.keys(l).length&&(e.tags={...l,...e.tags});const u=wo(i);u&&Object.keys(u).length&&(e.user={...u,...e.user});const d=wo(o);d&&Object.keys(d).length&&(e.contexts={...d,...e.contexts}),s&&(e.level=s),a&&e.type!=="transaction"&&(e.transaction=a)}function Bqe(e,t){const n=[...e.breadcrumbs||[],...t];e.breadcrumbs=n.length?n:void 0}function $qe(e,t){e.sdkProcessingMetadata={...e.sdkProcessingMetadata,...t}}function Hqe(e,t){e.contexts={trace:YWe(t),...e.contexts},e.sdkProcessingMetadata={dynamicSamplingContext:$v(t),...e.sdkProcessingMetadata};const n=as(t),r=Ln(n).description;r&&!e.transaction&&e.type==="transaction"&&(e.transaction=r)}function zqe(e,t){e.fingerprint=e.fingerprint?Array.isArray(e.fingerprint)?e.fingerprint:[e.fingerprint]:[],t&&(e.fingerprint=e.fingerprint.concat(t)),e.fingerprint&&!e.fingerprint.length&&delete e.fingerprint}function Eve(e,t,n,r,i,o){const{normalizeDepth:s=3,normalizeMaxBreadth:a=1e3}=e,c={...t,event_id:t.event_id||n.event_id||uc(),timestamp:t.timestamp||EE()},l=n.integrations||e.integrations.map(y=>y.name);Vqe(c,e),Gqe(c,l),i&&i.emit("applyFrameMetadata",t),t.type===void 0&&Wqe(c,e.stackParser);const u=Yqe(r,n.captureContext);n.mechanism&&v1(c,n.mechanism);const d=i?i.getEventProcessors():[],f=DWe().getScopeData();if(o){const y=o.getScopeData();yZ(f,y)}if(u){const y=u.getScopeData();yZ(f,y)}const p=[...n.attachments||[],...f.attachments];p.length&&(n.attachments=p),jqe(c,f);const g=[...d,...f.eventProcessors];return Uj(g,c,n).then(y=>(y&&qqe(y),typeof s=="number"&&s>0?Kqe(y,s,a):y))}function Vqe(e,t){const{environment:n,release:r,dist:i,maxValueLength:o=250}=t;e.environment=e.environment||n||tH,!e.release&&r&&(e.release=r),!e.dist&&i&&(e.dist=i),e.message&&(e.message=Ly(e.message,o));const s=e.exception&&e.exception.values&&e.exception.values[0];s&&s.value&&(s.value=Ly(s.value,o));const a=e.request;a&&a.url&&(a.url=Ly(a.url,o))}function Wqe(e,t){const n=Fqe(t);
1487try{e.exception.values.forEach(r=>{r.stacktrace.frames.forEach(i=>{n&&i.filename&&(i.debug_id=n[i.filename])})})}catch{}}function qqe(e){const t={};try{e.exception.values.forEach(r=>{r.stacktrace.frames.forEach(i=>{i.debug_id&&(i.abs_path?t[i.abs_path]=i.debug_id:i.filename&&(t[i.filename]=i.debug_id),delete i.debug_id)})})}catch{}if(Object.keys(t).length===0)return;e.debug_meta=e.debug_meta||{},e.debug_meta.images=e.debug_meta.images||[];const n=e.debug_meta.images;Object.entries(t).forEach(([r,i])=>{n.push({type:"sourcemap",code_file:r,debug_id:i})})}function Gqe(e,t){t.length>0&&(e.sdk=e.sdk||{},e.sdk.integrations=[...e.sdk.integrations||[],...t])}function Kqe(e,t,n){if(!e)return null;const r={...e,...e.breadcrumbs&&{breadcrumbs:e.breadcrumbs.map(i=>({...i,...i.data&&{data:Pl(i.data,t,n)}}))},...e.user&&{user:Pl(e.user,t,n)},...e.contexts&&{contexts:Pl(e.contexts,t,n)},...e.extra&&{extra:Pl(e.extra,t,n)}};return e.contexts&&e.contexts.trace&&r.contexts&&(r.contexts.trace=e.contexts.trace,e.contexts.trace.data&&(r.contexts.trace.data=Pl(e.contexts.trace.data,t,n))),e.spans&&(r.spans=e.spans.map(i=>({...i,...i.data&&{data:Pl(i.data,t,n)}}))),e.contexts&&e.contexts.flags&&r.contexts&&(r.contexts.flags=Pl(e.contexts.flags,3,n)),r}function Yqe(e,t){if(!t)return e;const n=e?e.clone():new mv;return n.update(t),n}function zp(e,t){return Ir().captureException(e,void 0)}function Tve(e,t){return Ir().captureEvent(e,t)}function kve(e,t){sl().setContext(e,t)}function xve(e){sl().setUser(e)}function Qqe(){const e=_n();return!!e&&e.getOptions().enabled!==!1&&!!e.getTransport()}function Xqe(e){sl().addEventProcessor(e)}function bZ(e){const t=_n(),n=sl(),r=Ir(),{release:i,environment:o=tH}=t&&t.getOptions()||{},{userAgent:s}=En.navigator||{},a=TWe({release:i,environment:o,user:r.getUser()||n.getUser(),...s&&{userAgent:s},...e}),c=n.getSession();return c&&c.status==="ok"&&y1(c,{status:"exited"}),Ave(),n.setSession(a),r.setSession(a),a}function Ave(){const e=sl(),t=Ir(),n=t.getSession()||e.getSession();n&&kWe(n),Ive(),e.setSession(),t.setSession()}function Ive(){const e=sl(),t=Ir(),n=_n(),r=t.getSession()||e.getSession();r&&n&&n.captureSession(r)}function wZ(e=!1){if(e){Ave();return}Ive()}const Jqe="7";function Zqe(e){const t=e.protocol?`${e.protocol}:`:"",n=e.port?`:${e.port}`:"";return`${t}//${e.host}${n}${e.path?`/${e.path}`:""}/api/`}function eGe(e){return`${Zqe(e)}${e.projectId}/envelope/`}function tGe(e,t){const n={sentry_version:Jqe};return e.publicKey&&(n.sentry_key=e.publicKey),t&&(n.sentry_client=`${t.name}/${t.version}`),new URLSearchParams(n).toString()}function nGe(e,t,n){return t||`${eGe(e)}?${tGe(e,n)}`}const SZ=[];function rGe(e){const t={};return e.forEach(n=>{const{name:r}=n,i=t[r];
1487i&&!i.isDefaultInstance&&n.isDefaultInstance||(t[r]=n)}),Object.values(t)}function iGe(e){const t=e.defaultIntegrations||[],n=e.integrations;t.forEach(s=>{s.isDefaultInstance=!0});let r;if(Array.isArray(n))r=[...t,...n];else if(typeof n=="function"){const s=n(t);r=Array.isArray(s)?s:[s]}else r=t;const i=rGe(r),o=i.findIndex(s=>s.name==="Debug");if(o>-1){const[s]=i.splice(o,1);i.push(s)}return i}function oGe(e,t){const n={};return t.forEach(r=>{r&&Rve(e,r,n)}),n}function _Z(e,t){for(const n of t)n&&n.afterAllSetup&&n.afterAllSetup(e)}function Rve(e,t,n){if(n[t.name]){rn&&ut.log(`Integration skipped because it was already installed: ${t.name}`);return}if(n[t.name]=t,SZ.indexOf(t.name)===-1&&typeof t.setupOnce=="function"&&(t.setupOnce(),SZ.push(t.name)),t.setup&&typeof t.setup=="function"&&t.setup(e),typeof t.preprocessEvent=="function"){const r=t.preprocessEvent.bind(t);e.on("preprocessEvent",(i,o)=>r(i,o,e))}if(typeof t.processEvent=="function"){const r=t.processEvent.bind(t),i=Object.assign((o,s)=>r(o,s,e),{id:t.name});e.addEventProcessor(i)}rn&&ut.log(`Integration installed: ${t.name}`)}function sGe(e,t,n){const r=[{type:"client_report"},{timestamp:EE(),discarded_events:e}];return Hv(t?{dsn:t}:{},[r])}class Ml extends Error{constructor(t,n="warn"){super(t),this.message=t,this.logLevel=n}}const CZ="Not capturing exception because it's already been captured.";let aGe=class{constructor(t){if(this._options=t,this._integrations={},this._numProcessing=0,this._outcomes={},this._hooks={},this._eventProcessors=[],t.dsn?this._dsn=lqe(t.dsn):rn&&ut.warn("No DSN provided, client will not send events."),this._dsn){const i=nGe(this._dsn,t.tunnel,t._metadata?t._metadata.sdk:void 0);this._transport=t.transport({tunnel:this._options.tunnel,recordDroppedEvent:this.recordDroppedEvent.bind(this),...t.transportOptions,url:i})}const r=["enableTracing","tracesSampleRate","tracesSampler"].find(i=>i in t&&t[i]==null);r&&Mm(()=>{console.warn(`[Sentry] Deprecation warning: \`${r}\` is set to undefined, which leads to tracing being enabled. In v9, a value of \`undefined\` will result in tracing being disabled.`)})}captureException(t,n,r){const i=uc();if(tZ(t))return rn&&ut.log(CZ),i;const o={event_id:i,...n};return this._process(this.eventFromException(t,o).then(s=>this._captureEvent(s,o,r))),o.event_id}captureMessage(t,n,r,i){const o={event_id:uc(),...r},s=K$(t)?t:String(t),a=Y$(t)?this.eventFromMessage(s,n,o):this.eventFromException(t,o);return this._process(a.then(c=>this._captureEvent(c,o,i))),o.event_id}captureEvent(t,n,r){const i=uc();if(n&&n.originalException&&tZ(n.originalException))return rn&&ut.log(CZ),i;const o={event_id:i,...n},a=(t.sdkProcessingMetadata||{}).capturedSpanScope;return this._process(this._captureEvent(t,o,a||r)),o.event_id}captureSession(t){typeof t.release!="string"?rn&&ut.warn("Discarded session because of missing or non-string release"):(this.sendSession(t),y1(t,{init:!1}))}getDsn(){return this._dsn}getOptions(){return this._options}getSdkMetadata(){return this._options._metadata}getTransport(){return this._transport}flush(t){const n=this._transport;
1487return n?(this.emit("flush"),this._isClientDoneProcessing(t).then(r=>n.flush(t).then(i=>r&&i))):ah(!0)}close(t){return this.flush(t).then(n=>(this.getOptions().enabled=!1,this.emit("close"),n))}getEventProcessors(){return this._eventProcessors}addEventProcessor(t){this._eventProcessors.push(t)}init(){(this._isEnabled()||this._options.integrations.some(({name:t})=>t.startsWith("Spotlight")))&&this._setupIntegrations()}getIntegrationByName(t){return this._integrations[t]}addIntegration(t){const n=this._integrations[t.name];Rve(this,t,this._integrations),n||_Z(this,[t])}sendEvent(t,n={}){this.emit("beforeSendEvent",t,n);let r=Cqe(t,this._dsn,this._options._metadata,this._options.tunnel);for(const o of n.attachments||[])r=mqe(r,bqe(o));const i=this.sendEnvelope(r);i&&i.then(o=>this.emit("afterSendEvent",t,o),null)}sendSession(t){const n=_qe(t,this._dsn,this._options._metadata,this._options.tunnel);this.sendEnvelope(n)}recordDroppedEvent(t,n,r){if(this._options.sendClientReports){const i=typeof r=="number"?r:1,o=`${t}:${n}`;rn&&ut.log(`Recording outcome: "${o}"${i>1?` (${i} times)`:""}`),this._outcomes[o]=(this._outcomes[o]||0)+i}}on(t,n){const r=this._hooks[t]=this._hooks[t]||[];return r.push(n),()=>{const i=r.indexOf(n);i>-1&&r.splice(i,1)}}emit(t,...n){const r=this._hooks[t];r&&r.forEach(i=>i(...n))}sendEnvelope(t){return this.emit("beforeEnvelope",t),this._isEnabled()&&this._transport?this._transport.send(t).then(null,n=>(rn&&ut.error("Error while sending envelope:",n),n)):(rn&&ut.error("Transport disabled"),ah({}))}_setupIntegrations(){const{integrations:t}=this._options;this._integrations=oGe(this,t),_Z(this,t)}_updateSessionFromEvent(t,n){let r=n.level==="fatal",i=!1;const o=n.exception&&n.exception.values;if(o){i=!0;for(const c of o){const l=c.mechanism;if(l&&l.handled===!1){r=!0;break}}}const s=t.status==="ok";(s&&t.errors===0||s&&r)&&(y1(t,{...r&&{status:"crashed"},errors:t.errors||Number(i||r)}),this.captureSession(t))}_isClientDoneProcessing(t){return new Oc(n=>{let r=0;const i=1,o=setInterval(()=>{this._numProcessing==0?(clearInterval(o),n(!0)):(r+=i,t&&r>=t&&(clearInterval(o),n(!1)))},i)})}_isEnabled(){return this.getOptions().enabled!==!1&&this._transport!==void 0}_prepareEvent(t,n,r=Ir(),i=sl()){const o=this.getOptions(),s=Object.keys(this._integrations);return!n.integrations&&s.length>0&&(n.integrations=s),this.emit("preprocessEvent",t,n),t.type||i.setLastEventId(t.event_id||n.event_id),Eve(o,t,n,r,this,i).then(a=>{if(a===null)return a;a.contexts={trace:LWe(r),...a.contexts};const c=gve(this,r);return a.sdkProcessingMetadata={dynamicSamplingContext:c,...a.sdkProcessingMetadata},a})}_captureEvent(t,n={},r){return this._processEvent(t,n,r).then(i=>i.event_id,i=>{rn&&(i instanceof Ml&&i.logLevel==="log"?ut.log(i.message):ut.warn(i))})}_processEvent(t,n,r){const i=this.getOptions(),{sampleRate:o}=i,s=Ove(t),a=Pve(t),c=t.type||"error",l=`before send for type \`${c}\``,u=typeof o>"u"?void 0:EI(o);if(a&&typeof u=="number"&&Math.random()>u)return this.recordDroppedEvent("sample_rate","error",t),_I(new Ml(`Discarding event because it's not included in the random sample (sampling rate = ${o})`,"log"));const d=c==="replay_event"?"replay":c,p=(t.sdkProcessingMetadata||{}).capturedSpanIsolationScope;return this._prepareEvent(t,n,r,p).then(g=>{if(g===null)throw this.recordDroppedEvent("event_processor",d,t),new Ml("An event processor returned `null`, will not send event.","log");if(n.data&&n.data.__sentry__===!0)return g;const y=lGe(this,i,g,n);return cGe(y,l)}).then(g=>{if(g===null){if(this.recordDroppedEvent("before_send",d,t),s){const w=1+(t.spans||[]).length;this.recordDroppedEvent("before_send","span",w)}throw new Ml(`${l} returned \`null\`, will not send event.`,"log")}const m=r&&r.getSession();if(!s&&m&&this._updateSessionFromEvent(m,g),s){const v=g.sdkProcessingMetadata&&g.sdkProcessingMetadata.spanCountBeforeProcessing||0,w=g.spans?g.spans.length:0,S=v-w;S>0&&this.recordDroppedEvent("before_send","span",S)}const y=g.transaction_info;if(s&&y&&g.transaction!==t.transaction){const v="custom";g.transaction_info={...y,source:v}}return this.sendEvent(g,n),g}).then(null,g=>{throw g instanceof Ml?g:(this.captureException(g,{data:{__sentry__:!0},originalException:g}),new Ml(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.
1488Reason: ${g}`))})}_process(t){this._numProcessing++,t.then(n=>(this._numProcessing--,n),n=>(this._numProcessing--,n))}_clearOutcomes(){const t=this._outcomes;return this._outcomes={},Object.entries(t).map(([n,r])=>{const[i,o]=n.split(":");return{reason:i,category:o,quantity:r}})}_flushOutcomes(){rn&&ut.log("Flushing outcomes...");const t=this._clearOutcomes();if(t.length===0){rn&&ut.log("No outcomes to send");return}if(!this._dsn){rn&&ut.log("No dsn provided, will not send outcomes");return}rn&&ut.log("Sending outcomes:",t);const n=sGe(t,this._options.tunnel&&TE(this._dsn));this.sendEnvelope(n)}};function cGe(e,t){const n=`${t} must return \`null\` or a valid event.`;if(RP(e))return e.then(r=>{if(!g1(r)&&r!==null)throw new Ml(n);return r},r=>{throw new Ml(`${t} rejected with ${r}`)});if(!g1(e)&&e!==null)throw new Ml(n);return e}function lGe(e,t,n,r){const{beforeSend:i,beforeSendTransaction:o,beforeSendSpan:s}=t;if(Pve(n)&&i)return i(n,r);
1488if(Ove(n)){if(n.spans&&s){const a=[];for(const c of n.spans){const l=s(c);l?a.push(l):(dve(),e.recordDroppedEvent("before_send","span"))}n.spans=a}if(o){if(n.spans){const a=n.spans.length;n.sdkProcessingMetadata={...n.sdkProcessingMetadata,spanCountBeforeProcessing:a}}return o(n,r)}}return n}function Pve(e){return e.type===void 0}function Ove(e){return e.type==="transaction"}function uGe(e,t){t.debug===!0&&(rn?ut.enable():Mm(()=>{console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle.")})),Ir().update(t.initialScope);const r=new e(t);return dGe(r),r.init(),r}function dGe(e){Ir().setClient(e)}function fGe(e){const t=[];function n(){return e===void 0||t.length<e}function r(s){return t.splice(t.indexOf(s),1)[0]||Promise.resolve(void 0)}function i(s){if(!n())return _I(new Ml("Not adding Promise because buffer limit was reached."));const a=s();return t.indexOf(a)===-1&&t.push(a),a.then(()=>r(a)).then(null,()=>r(a).then(null,()=>{})),a}function o(s){return new Oc((a,c)=>{let l=t.length;if(!l)return a(!0);const u=setTimeout(()=>{s&&s>0&&a(!1)},s);t.forEach(d=>{ah(d).then(()=>{--l||(clearTimeout(u),a(!0))},c)})})}return{$:t,add:i,drain:o}}const hGe=60*1e3;function pGe(e,t=Date.now()){const n=parseInt(`${e}`,10);if(!isNaN(n))return n*1e3;const r=Date.parse(`${e}`);return isNaN(r)?hGe:r-t}function mGe(e,t){return e[t]||e.all||0}function Nve(e,t,n=Date.now()){return mGe(e,t)>n}function Mve(e,{statusCode:t,headers:n},r=Date.now()){const i={...e},o=n&&n["x-sentry-rate-limits"],s=n&&n["retry-after"];if(o)for(const a of o.trim().split(",")){const[c,l,,,u]=a.split(":",5),d=parseInt(c,10),f=(isNaN(d)?60:d)*1e3;if(!l)i.all=r+f;else for(const p of l.split(";"))p==="metric_bucket"?(!u||u.split(";").includes("custom"))&&(i[p]=r+f):i[p]=r+f}else s?i.all=r+pGe(s,r):t===429&&(i.all=r+60*1e3);return i}const gGe=64;function vGe(e,t,n=fGe(e.bufferSize||gGe)){let r={};const i=s=>n.drain(s);function o(s){const a=[];if(uZ(s,(d,f)=>{const p=dZ(f);if(Nve(r,p)){const g=EZ(d,f);e.recordDroppedEvent("ratelimit_backoff",p,g)}else a.push(d)}),a.length===0)return ah({});const c=Hv(s[0],a),l=d=>{uZ(c,(f,p)=>{const g=EZ(f,p);e.recordDroppedEvent(d,dZ(p),g)})},u=()=>t({body:gqe(c)}).then(d=>(d.statusCode!==void 0&&(d.statusCode<200||d.statusCode>=300)&&rn&&ut.warn(`Sentry responded with status code ${d.statusCode} to sent event.`),r=Mve(r,d),d),d=>{throw l("network_error"),d});return n.add(u).then(d=>d,d=>{if(d instanceof Ml)return rn&&ut.error("Skipped sending event because buffer is full."),l("queue_overflow"),ah({});throw d})}return{send:o,flush:i}}function EZ(e,t){if(!(t!=="event"&&t!=="transaction"))return Array.isArray(e)?e[1]:void 0}function yGe(e,t){const n=t&&t.getDsn(),r=t&&t.getOptions().tunnel;return wGe(e,n)||bGe(e,r)}function bGe(e,t){return t?TZ(e)===TZ(t):!1}function wGe(e,t){return t?e.includes(t.host):!1}function TZ(e){return e[e.length-1]==="/"?e.slice(0,-1):e}function Dve(e,t,n=[t],r="npm"){const i=e._metadata||{};i.sdk||(i.sdk={name:`sentry.javascript.${t}`,packages:n.map(o=>({name:`${r}:@sentry/${o}`,version:Ug})),version:Ug}),e._metadata=i}function Lve(e={}){const t=_n();if(!Qqe()||!t)return{};const n=Uv(),r=Tb(n);if(r.getTraceData)return r.getTraceData(e);const i=Ir(),o=e.span||Vo(),s=o?QWe(o):SGe(i),a=o?$v(o):gve(t,i),c=zWe(a);return ove.test(s)?{"sentry-trace":s,baggage:c}:(ut.warn("Invalid sentry-trace data. Cannot generate trace data"),{})}function SGe(e){const{traceId:t,sampled:n,spanId:r}=e.getPropagationContext();return sve(t,r,n)}const _Ge=100;function cm(e,t){const n=_n(),r=sl();if(!n)return;const{beforeBreadcrumb:i=null,maxBreadcrumbs:o=_Ge}=n.getOptions();if(o<=0)return;const a={timestamp:EE(),...e},c=i?Mm(()=>i(a,t)):a;c!==null&&(n.emit&&n.emit("beforeAddBreadcrumb",c,t),r.addBreadcrumb(c,o))}let kZ;const CGe="FunctionToString",xZ=new WeakMap,EGe=(()=>({name:CGe,setupOnce(){kZ=Function.prototype.toString;try{Function.prototype.toString=function(...e){const t=Q$(this),n=xZ.has(_n())&&t!==void 0?t:this;return kZ.apply(n,e)}}catch{}},setup(e){xZ.set(e,!0)}})),TGe=EGe,kGe=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/,/^ResizeObserver loop completed with undelivered notifications.$/,/^Cannot redefine property: googletag$/,/^Can't find variable: gmo$/,"undefined is not an object (evaluating 'a.L')",`can't redefine non-configurable property "solana"`,"vv().getRestrictions is not a function. (In 'vv().getRestrictions(1,a)', 'vv().getRestrictions' is undefined)","Can't find variable: _AutofillCallbackHandler",/^Non-Error promise rejection captured with value: Object Not Found Matching Id:\d+, MethodName:simulateEvent, ParamCount:\d+$/,/^Java exception was raised during method invocation$/],xGe="InboundFilters",AGe=((e={})=>({name:xGe,processEvent(t,n,r){const i=r.getOptions(),o=RGe(e,i);return PGe(t,o)?null:t}})),IGe=AGe;function RGe(e={},t={}){return{allowUrls:[...e.allowUrls||[],...t.allowUrls||[]],denyUrls:[...e.denyUrls||[],...t.denyUrls||[]],ignoreErrors:[...e.ignoreErrors||[],...t.ignoreErrors||[],...e.disableErrorDefaults?[]:kGe],ignoreTransactions:[...e.ignoreTransactions||[],...t.ignoreTransactions||[]],ignoreInternal:e.ignoreInternal!==void 0?e.ignoreInternal:!0}}function PGe(e,t){return t.ignoreInternal&&FGe(e)?(rn&&ut.warn(`Event dropped due to being internal Sentry Error.
1489Event: ${Zh(e)}`),!0):OGe(e,t.ignoreErrors)?(rn&&ut.warn(`Event dropped due to being matched by \`ignoreErrors\` option.
1490Event: ${Zh(e)}`),!0):UGe(e)?(rn&&ut.warn(`Event dropped due to not having an error message, error type or stacktrace.
1491Event: ${Zh(e)}`),!0):NGe(e,t.ignoreTransactions)?(rn&&ut.warn(`Event dropped due to being matched by \`ignoreTransactions\` option.
1492Event: ${Zh(e)}`),!0):MGe(e,t.denyUrls)?(rn&&ut.warn(`Event dropped due to being matched by \`denyUrls\` option.
1493Event: ${Zh(e)}.
1494Url: ${TI(e)}`),!0):DGe(e,t.allowUrls)?!1:(rn&&ut.warn(`Event dropped due to not being matched by \`allowUrls\` option.
1495Event: ${Zh(e)}.
1496Url: ${TI(e)}`),!0)}function OGe(e,t){return e.type||!t||!t.length?!1:LGe(e).some(n=>Hp(n,t))}function NGe(e,t){if(e.type!=="transaction"||!t||!t.length)return!1;const n=e.transaction;return n?Hp(n,t):!1}function MGe(e,t){if(!t||!t.length)return!1;const n=TI(e);return n?Hp(n,t):!1}function DGe(e,t){if(!t||!t.length)return!0;const n=TI(e);return n?Hp(n,t):!0}function LGe(e){const t=[];e.message&&t.push(e.message);let n;try{n=e.exception.values[e.exception.values.length-1]}catch{}return n&&n.value&&(t.push(n.value),n.type&&t.push(`${n.type}: ${n.value}`)),t}function FGe(e){try{return e.exception.values[0].type==="SentryError"}catch{}return!1}function jGe(e=[]){for(let t=e.length-1;t>=0;t--){const n=e[t];if(n&&n.filename!=="<anonymous>"&&n.filename!=="[native code]")return n.filename||null}return null}function TI(e){try{let t;try{t=e.exception.values[0].stacktrace.frames}catch{}return t?jGe(t):null}catch{return rn&&ut.error(`Cannot extract url for event ${Zh(e)}`),null}}function UGe(e){return e.type||!e.exception||!e.exception.values||e.exception.values.length===0?!1:!e.message&&!e.exception.values.some(t=>t.stacktrace||t.type&&t.type!=="Error"||t.value)}
1496function BGe(e,t,n=250,r,i,o,s){if(!o.exception||!o.exception.values||!s||!oh(s.originalException,Error))return;const a=o.exception.values.length>0?o.exception.values[o.exception.values.length-1]:void 0;a&&(o.exception.values=$Ge(Bj(e,t,i,s.originalException,r,o.exception.values,a,0),n))}function Bj(e,t,n,r,i,o,s,a){if(o.length>=n+1)return o;let c=[...o];if(oh(r[i],Error)){AZ(s,a);const l=e(t,r[i]),u=c.length;IZ(l,i,u,a),c=Bj(e,t,n,r[i],i,[l,...c],l,u)}return Array.isArray(r.errors)&&r.errors.forEach((l,u)=>{if(oh(l,Error)){AZ(s,a);const d=e(t,l),f=c.length;IZ(d,`errors[${u}]`,f,a),c=Bj(e,t,n,l,i,[d,...c],d,f)}}),c}function AZ(e,t){e.mechanism=e.mechanism||{type:"generic",handled:!0},e.mechanism={...e.mechanism,...e.type==="AggregateError"&&{is_exception_group:!0},exception_id:t}}function IZ(e,t,n,r){e.mechanism=e.mechanism||{type:"generic",handled:!0},e.mechanism={...e.mechanism,type:"chained",source:t,exception_id:n,parent_id:r}}function $Ge(e,t){return e.map(n=>(n.value&&(n.value=Ly(n.value,t)),n))}function Hg(e){if(!e)return{};const t=e.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!t)return{};const n=t[6]||"",r=t[8]||"";return{host:t[4],path:t[5],protocol:t[2],search:n,hash:r,relative:t[5]+n+r}}function HGe(e){const t="console";Dm(t,e),Lm(t,zGe)}function zGe(){"console"in En&&Ij.forEach(function(e){e in En.console&&_a(En.console,e,function(t){return SI[e]=t,function(...n){Vc("console",{args:n,level:e});const i=SI[e];i&&i.apply(En.console,n)}})})}function Fve(e){return e==="warn"?"warning":["fatal","error","warning","log","info","debug"].includes(e)?e:"log"}const VGe="Dedupe",WGe=(()=>{let e;return{name:VGe,processEvent(t){if(t.type)return t;try{if(GGe(t,e))return rn&&ut.warn("Event dropped due to being a duplicate of previously captured event."),null}catch{}return e=t}}}),qGe=WGe;function GGe(e,t){return t?!!(KGe(e,t)||YGe(e,t)):!1}function KGe(e,t){const n=e.message,r=t.message;return!(!n&&!r||n&&!r||!n&&r||n!==r||!Uve(e,t)||!jve(e,t))}function YGe(e,t){const n=RZ(t),r=RZ(e);return!(!n||!r||n.type!==r.type||n.value!==r.value||!Uve(e,t)||!jve(e,t))}function jve(e,t){let n=YJ(e),r=YJ(t);if(!n&&!r)return!0;if(n&&!r||!n&&r||(n=n,r=r,r.length!==n.length))return!1;for(let i=0;i<r.length;i++){const o=r[i],s=n[i];if(o.filename!==s.filename||o.lineno!==s.lineno||o.colno!==s.colno||o.function!==s.function)return!1}return!0}function Uve(e,t){let n=e.fingerprint,r=t.fingerprint;if(!n&&!r)return!0;if(n&&!r||!n&&r)return!1;n=n,r=r;try{return n.join("")===r.join("")}catch{return!1}}function RZ(e){return e.exception&&e.exception.values&&e.exception.values[0]}function QGe(e,t,n,r,i="auto.http.browser"){if(!e.fetchData)return;const o=am()&&t(e.fetchData.url);if(e.endTimestamp&&o){const f=e.fetchData.__span;if(!f)return;const p=r[f];p&&(ZGe(p,e),delete r[f]);return}const{method:s,url:a}=e.fetchData,c=JGe(a),l=c?Hg(c).host:void 0,u=!!Vo(),d=o&&u?kE({name:`${s} ${a}`,attributes:{url:a,type:"fetch","http.method":s,"http.url":c,"server.address":l,[zo]:i,[gv]:"http.client"}}):new kb;if(e.fetchData.__span=d.spanContext().spanId,r[d.spanContext().spanId]=d,n(e.fetchData.url)){const f=e.args[0],p=e.args[1]||{},g=XGe(f,p,am()&&u?d:void 0);g&&(e.args[1]=p,p.headers=g)}return d}function XGe(e,t,n){const r=Lve({span:n}),i=r["sentry-trace"],o=r.baggage;if(!i)return;const s=t.headers||(eKe(e)?e.headers:void 0);if(s)if(tKe(s)){const a=new Headers(s);if(a.set("sentry-trace",i),o){const c=a.get("baggage");if(c){const l=xT(c);a.set("baggage",l?`${l},${o}`:o)}else a.set("baggage",o)}return a}else if(Array.isArray(s)){const a=[...s.filter(c=>!(Array.isArray(c)&&c[0]==="sentry-trace")).map(c=>{if(Array.isArray(c)&&c[0]==="baggage"&&typeof c[1]=="string"){const[l,u,...d]=c;return[l,xT(u),...d]}else return c}),["sentry-trace",i]];return o&&a.push(["baggage",o]),a}else{const a="baggage"in s?s.baggage:void 0;let c=[];return Array.isArray(a)?c=a.map(l=>typeof l=="string"?xT(l):l).filter(l=>l===""):a&&c.push(xT(a)),o&&c.push(o),{...s,"sentry-trace":i,baggage:c.length>0?c.join(","):void 0}}else return{...r}}function JGe(e){try{return new URL(e).href}catch{return}}function ZGe(e,t){if(t.response){rve(e,t.response.status);const n=t.response&&t.response.headers&&t.response.headers.get("content-length");if(n){const r=parseInt(n);r>0&&e.setAttribute("http.response_content_length",r)}}else t.error&&e.setStatus({code:No,message:"internal_error"});e.end()}function xT(e){return e.split(",").filter(t=>!t.split("=")[0].startsWith(eH)).join(",")}function eKe(e){return typeof Request<"u"&&oh(e,Request)}function tKe(e){return typeof Headers<"u"&&oh(e,Headers)}function Bve(e){if(e!==void 0)return e>=400&&e<500?"warning":e>=500?"error":void 0}const $j=En;function $ve(){if(!("fetch"in $j))return!1;
1496try{return new Headers,new Request("http://www.example.com"),new Response,!0}catch{return!1}}function Hj(e){return e&&/^function\s+\w+\(\)\s+\{\s+\[native code\]\s+\}$/.test(e.toString())}function nKe(){if(typeof EdgeRuntime=="string")return!0;if(!$ve())return!1;if(Hj($j.fetch))return!0;let e=!1;const t=$j.document;if(t&&typeof t.createElement=="function")try{const n=t.createElement("iframe");n.hidden=!0,t.head.appendChild(n),n.contentWindow&&n.contentWindow.fetch&&(e=Hj(n.contentWindow.fetch)),t.head.removeChild(n)}catch(n){Nm&&ut.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",n)}return e}function Hve(e,t){const n="fetch";Dm(n,e),Lm(n,()=>zve(void 0,t))}function rKe(e){const t="fetch-body-resolved";Dm(t,e),Lm(t,()=>zve(oKe))}function zve(e,t=!1){t&&!nKe()||_a(En,"fetch",function(n){return function(...r){const i=new Error,{method:o,url:s}=sKe(r),a={args:r,fetchData:{method:o,url:s},startTimestamp:Js()*1e3,virtualError:i};return e||Vc("fetch",{...a}),n.apply(En,r).then(async c=>(e?e(c):Vc("fetch",{...a,endTimestamp:Js()*1e3,response:c}),c),c=>{throw Vc("fetch",{...a,endTimestamp:Js()*1e3,error:c}),G$(c)&&c.stack===void 0&&(c.stack=i.stack,Qc(c,"framesToPop",1)),c})}})}async function iKe(e,t){if(e&&e.body){const n=e.body,r=n.getReader(),i=setTimeout(()=>{n.cancel().then(null,()=>{})},90*1e3);let o=!0;for(;o;){let s;try{s=setTimeout(()=>{n.cancel().then(null,()=>{})},5e3);const{done:a}=await r.read();clearTimeout(s),a&&(t(),o=!1)}catch{o=!1}finally{clearTimeout(s)}}clearTimeout(i),r.releaseLock(),n.cancel().then(null,()=>{})}}function oKe(e){let t;try{t=e.clone()}catch{return}iKe(t,()=>{Vc("fetch-body-resolved",{endTimestamp:Js()*1e3,response:e})})}function zj(e,t){return!!e&&typeof e=="object"&&!!e[t]}function PZ(e){return typeof e=="string"?e:e?zj(e,"url")?e.url:e.toString?e.toString():"":""}function sKe(e){if(e.length===0)return{method:"GET",url:""};if(e.length===2){const[n,r]=e;return{url:PZ(n),method:zj(r,"method")?String(r.method).toUpperCase():"GET"}}const t=e[0];return{url:PZ(t),method:zj(t,"method")?String(t.method).toUpperCase():"GET"}}function aKe(){return typeof __SENTRY_BROWSER_BUNDLE__<"u"&&!!__SENTRY_BROWSER_BUNDLE__}function cKe(){return"npm"}function lKe(){return!aKe()&&Object.prototype.toString.call(typeof process<"u"?process:0)==="[object process]"}function OZ(){return typeof window<"u"&&(!lKe()||uKe())}function uKe(){const e=En.process;return!!e&&e.type==="renderer"}const AT=En;function dKe(){const e=AT.chrome,t=e&&e.app&&e.app.runtime,n="history"in AT&&!!AT.history.pushState&&!!AT.history.replaceState;return!t&&n}function fKe(e,t){return e??t()}function Dx(e){let t,n=e[0],r=1;for(;r<e.length;){const i=e[r],o=e[r+1];if(r+=2,(i==="optionalAccess"||i==="optionalCall")&&n==null)return;i==="access"||i==="optionalAccess"?(t=n,n=o(n)):(i==="call"||i==="optionalCall")&&(n=o((...s)=>n.call(t,...s)),t=void 0)}return n}const Qt=En;let Vj=0;function Vve(){return Vj>0}function hKe(){Vj++,setTimeout(()=>{Vj--})}function w1(e,t={}){function n(i){return typeof i=="function"}if(!n(e))return e;try{const i=e.__sentry_wrapped__;if(i)return typeof i=="function"?i:e;if(Q$(e))return e}catch{return e}const r=function(...i){try{const o=i.map(s=>w1(s,t));return e.apply(this,o)}catch(o){throw hKe(),J$(s=>{s.addEventProcessor(a=>(t.mechanism&&(Pj(a,void 0),v1(a,t.mechanism)),a.extra={...a.extra,arguments:i},a)),zp(o)}),o}};try{for(const i in e)Object.prototype.hasOwnProperty.call(e,i)&&(r[i]=e[i])}catch{}Xge(r,e),Qc(e,"__sentry_wrapped__",r);try{Object.getOwnPropertyDescriptor(r,"name").configurable&&Object.defineProperty(r,"name",{get(){return e.name}})}catch{}return r}const bd=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__;function iH(e,t){const n=oH(e,t),r={type:yKe(t),value:bKe(t)};return n.length&&(r.stacktrace={frames:n}),r.type===void 0&&r.value===""&&(r.value="Unrecoverable error caught"),r}function pKe(e,t,n,r){const i=_n(),o=i&&i.getOptions().normalizeDepth,s=EKe(t),a={__serialized__:yve(t,o)};if(s)return{exception:{values:[iH(e,s)]},extra:a};const c={exception:{values:[{type:IP(t)?t.constructor.name:r?"UnhandledRejection":"Error",value:_Ke(t,{isUnhandledRejection:r})}]},extra:a};if(n){const l=oH(e,n);l.length&&(c.exception.values[0].stacktrace={frames:l})}return c}function KM(e,t){return{exception:{values:[iH(e,t)]}}}function oH(e,t){const n=t.stacktrace||t.stack||"",r=gKe(t),i=vKe(t);try{return e(n,r,i)}catch{}return[]}const mKe=/Minified React error #\d+;/i;function gKe(e){return e&&mKe.test(e.message)?1:0}function vKe(e){return typeof e.framesToPop=="number"?e.framesToPop:0}function Wve(e){return typeof WebAssembly<"u"&&typeof WebAssembly.Exception<"u"?e instanceof WebAssembly.Exception:!1}function yKe(e){const t=e&&e.name;return!t&&Wve(e)?e.message&&Array.isArray(e.message)&&e.message.length==2?e.message[0]:"WebAssembly.Exception":t}function bKe(e){const t=e&&e.message;return t?t.error&&typeof t.error.message=="string"?t.error.message:Wve(e)&&Array.isArray(e.message)&&e.message.length==2?e.message[1]:t:"No error message"}function wKe(e,t,n,r){const i=n&&n.syntheticException||void 0,o=sH(e,t,i,r);return v1(o),o.level="error",n&&n.event_id&&(o.event_id=n.event_id),ah(o)}function SKe(e,t,n="info",r,i){const o=r&&r.syntheticException||void 0,s=Wj(e,t,o,i);return s.level=n,r&&r.event_id&&(s.event_id=r.event_id),ah(s)}function sH(e,t,n,r,i){let o;if(Gge(t)&&t.error)return KM(e,t.error);if(XJ(t)||hWe(t)){const s=t;if("stack"in t)o=KM(e,t);else{const a=s.name||(XJ(s)?"DOMError":"DOMException"),c=s.message?`${a}: ${s.message}`:a;o=Wj(e,c,n,r),Pj(o,c)}return"code"in s&&(o.tags={...o.tags,"DOMException.code":`${s.code}`}),o}return G$(t)?KM(e,t):g1(t)||IP(t)?(o=pKe(e,t,n,i),v1(o,{synthetic:!0}),o):(o=Wj(e,t,n,r),Pj(o,`${t}`),v1(o,{synthetic:!0}),o)}function Wj(e,t,n,r){const i={};
1496if(r&&n){const o=oH(e,n);o.length&&(i.exception={values:[{value:t,stacktrace:{frames:o}}]}),v1(i,{synthetic:!0})}if(K$(t)){const{__sentry_template_string__:o,__sentry_template_values__:s}=t;return i.logentry={message:o,params:s},i}return i.message=t,i}function _Ke(e,{isUnhandledRejection:t}){const n=SWe(e),r=t?"promise rejection":"exception";return Gge(e)?`Event \`ErrorEvent\` captured as ${r} with message \`${e.message}\``:IP(e)?`Event \`${CKe(e)}\` (type=${e.type}) captured as ${r}`:`Object captured as ${r} with keys: ${n}`}function CKe(e){try{const t=Object.getPrototypeOf(e);return t?t.constructor.name:void 0}catch{}}function EKe(e){for(const t in e)if(Object.prototype.hasOwnProperty.call(e,t)){const n=e[t];if(n instanceof Error)return n}}function TKe(e,{metadata:t,tunnel:n,dsn:r}){const i={event_id:e.event_id,sent_at:new Date().toISOString(),...t&&t.sdk&&{sdk:{name:t.sdk.name,version:t.sdk.version}},...!!n&&!!r&&{dsn:TE(r)}},o=kKe(e);return Hv(i,[o])}function kKe(e){return[{type:"user_report"},e]}class xKe extends aGe{constructor(t){const n={parentSpanIsAlwaysRootSpan:!0,...t},r=Qt.SENTRY_SDK_SOURCE||cKe();Dve(n,"browser",["browser"],r),super(n),n.sendClientReports&&Qt.document&&Qt.document.addEventListener("visibilitychange",()=>{Qt.document.visibilityState==="hidden"&&this._flushOutcomes()})}eventFromException(t,n){return wKe(this._options.stackParser,t,n,this._options.attachStacktrace)}eventFromMessage(t,n="info",r){return SKe(this._options.stackParser,t,n,r,this._options.attachStacktrace)}captureUserFeedback(t){if(!this._isEnabled()){bd&&ut.warn("SDK not enabled, will not capture user feedback.");return}const n=TKe(t,{metadata:this.getSdkMetadata(),dsn:this.getDsn(),tunnel:this.getOptions().tunnel});this.sendEnvelope(n)}_prepareEvent(t,n,r){return t.platform=t.platform||"javascript",super._prepareEvent(t,n,r)}}const aH=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,AKe=(e,t)=>e>t[1]?"poor":e>t[0]?"needs-improvement":"good",xb=(e,t,n,r)=>{let i,o;return s=>{t.value>=0&&(s||r)&&(o=t.value-(i||0),(o||i===void 0)&&(i=t.value,t.delta=o,t.rating=AKe(t.value,n),e(t)))}},Rt=En,IKe=()=>`v4-${Date.now()}-${Math.floor(Math.random()*(9e12-1))+1e12}`,xE=(e=!0)=>{const t=Rt.performance&&Rt.performance.getEntriesByType&&Rt.performance.getEntriesByType("navigation")[0];if(!e||t&&t.responseStart>0&&t.responseStart<performance.now())return t},AE=()=>{const e=xE();return e&&e.activationStart||0},Ab=(e,t)=>{const n=xE();let r="navigate";return n&&(Rt.document&&Rt.document.prerendering||AE()>0?r="prerender":Rt.document&&Rt.document.wasDiscarded?r="restore":n.type&&(r=n.type.replace(/_/g,"-"))),{name:e,value:typeof t>"u"?-1:t,rating:"good",delta:0,entries:[],id:IKe(),navigationType:r}},zv=(e,t,n)=>{try{if(PerformanceObserver.supportedEntryTypes.includes(e)){const r=new PerformanceObserver(i=>{Promise.resolve().then(()=>{t(i.getEntries())})});return r.observe(Object.assign({type:e,buffered:!0},n||{})),r}}catch{}},Ib=e=>{const t=n=>{(n.type==="pagehide"||Rt.document&&Rt.document.visibilityState==="hidden")&&e(n)};Rt.document&&(addEventListener("visibilitychange",t,!0),addEventListener("pagehide",t,!0))},MP=e=>{let t=!1;return()=>{t||(e(),t=!0)}};let GS=-1;const RKe=()=>Rt.document.visibilityState==="hidden"&&!Rt.document.prerendering?0:1/0,kI=e=>{Rt.document.visibilityState==="hidden"&&GS>-1&&(GS=e.type==="visibilitychange"?e.timeStamp:0,OKe())},PKe=()=>{addEventListener("visibilitychange",kI,!0),addEventListener("prerenderingchange",kI,!0)},OKe=()=>{removeEventListener("visibilitychange",kI,!0),removeEventListener("prerenderingchange",kI,!0)},DP=()=>(Rt.document&&GS<0&&(GS=RKe(),PKe()),{get firstHiddenTime(){return GS}}),IE=e=>{Rt.document&&Rt.document.prerendering?addEventListener("prerenderingchange",()=>e(),!0):e()},NKe=[1800,3e3],MKe=(e,t={})=>{IE(()=>{const n=DP(),r=Ab("FCP");let i;const s=zv("paint",a=>{a.forEach(c=>{c.name==="first-contentful-paint"&&(s.disconnect(),c.startTime<n.firstHiddenTime&&(r.value=Math.max(c.startTime-AE(),0),r.entries.push(c),i(!0)))})});s&&(i=xb(e,r,NKe,t.reportAllChanges))})},DKe=[.1,.25],LKe=(e,t={})=>{MKe(MP(()=>{const n=Ab("CLS",0);let r,i=0,o=[];const s=c=>
1496{c.forEach(l=>{if(!l.hadRecentInput){const u=o[0],d=o[o.length-1];i&&u&&d&&l.startTime-d.startTime<1e3&&l.startTime-u.startTime<5e3?(i+=l.value,o.push(l)):(i=l.value,o=[l])}}),i>n.value&&(n.value=i,n.entries=o,r())},a=zv("layout-shift",s);a&&(r=xb(e,n,DKe,t.reportAllChanges),Ib(()=>{s(a.takeRecords()),r(!0)}),setTimeout(r,0))}))},FKe=[100,300],jKe=(e,t={})=>{IE(()=>{const n=DP(),r=Ab("FID");let i;const o=c=>{c.startTime<n.firstHiddenTime&&(r.value=c.processingStart-c.startTime,r.entries.push(c),i(!0))},s=c=>{c.forEach(o)},a=zv("first-input",s);i=xb(e,r,FKe,t.reportAllChanges),a&&Ib(MP(()=>{s(a.takeRecords()),a.disconnect()}))})};let qve=0,YM=1/0,IT=0;const UKe=e=>{e.forEach(t=>{t.interactionId&&(YM=Math.min(YM,t.interactionId),IT=Math.max(IT,t.interactionId),qve=IT?(IT-YM)/7+1:0)})};let qj;const BKe=()=>qj?qve:performance.interactionCount||0,$Ke=()=>{"interactionCount"in performance||qj||(qj=zv("event",UKe,{type:"event",buffered:!0,durationThreshold:0}))},lf=[],QM=new Map,HKe=40;let zKe=0;const VKe=()=>BKe()-zKe,WKe=()=>{const e=Math.min(lf.length-1,Math.floor(VKe()/50));return lf[e]},XM=10,qKe=[],GKe=e=>{if(qKe.forEach(r=>r(e)),!(e.interactionId||e.entryType==="first-input"))return;const t=lf[lf.length-1],n=QM.get(e.interactionId);if(n||lf.length<XM||t&&e.duration>t.latency){if(n)e.duration>n.latency?(n.entries=[e],n.latency=e.duration):e.duration===n.latency&&e.startTime===(n.entries[0]&&n.entries[0].startTime)&&n.entries.push(e);else{const r={id:e.interactionId,latency:e.duration,entries:[e]};QM.set(r.id,r),lf.push(r)}lf.sort((r,i)=>i.latency-r.latency),lf.length>XM&&lf.splice(XM).forEach(r=>QM.delete(r.id))}},Gve=e=>{const t=Rt.requestIdleCallback||Rt.setTimeout;let n=-1;return e=MP(e),Rt.document&&Rt.document.visibilityState==="hidden"?e():(n=t(e),Ib(e)),n},KKe=[200,500],YKe=(e,t={})=>{"PerformanceEventTiming"in Rt&&"interactionId"in PerformanceEventTiming.prototype&&IE(()=>{$Ke();const n=Ab("INP");let r;const i=s=>{Gve(()=>{s.forEach(GKe);const a=WKe();a&&a.latency!==n.value&&(n.value=a.latency,n.entries=a.entries,r())})},o=zv("event",i,{durationThreshold:t.durationThreshold!=null?t.durationThreshold:HKe});r=xb(e,n,KKe,t.reportAllChanges),o&&(o.observe({type:"first-input",buffered:!0}),Ib(()=>{i(o.takeRecords()),r(!0)}))})},QKe=[2500,4e3],NZ={},XKe=(e,t={})=>{IE(()=>{const n=DP(),r=Ab("LCP");let i;const o=a=>{t.reportAllChanges||(a=a.slice(-1)),a.forEach(c=>{c.startTime<n.firstHiddenTime&&(r.value=Math.max(c.startTime-AE(),0),r.entries=[c],i())})},s=zv("largest-contentful-paint",o);if(s){i=xb(e,r,QKe,t.reportAllChanges);
1496const a=MP(()=>{NZ[r.id]||(o(s.takeRecords()),s.disconnect(),NZ[r.id]=!0,i(!0))});["keydown","click"].forEach(c=>{Rt.document&&addEventListener(c,()=>Gve(a),{once:!0,capture:!0})}),Ib(a)}})},JKe=[800,1800],Gj=e=>{Rt.document&&Rt.document.prerendering?IE(()=>Gj(e)):Rt.document&&Rt.document.readyState!=="complete"?addEventListener("load",()=>Gj(e),!0):setTimeout(e,0)},ZKe=(e,t={})=>{const n=Ab("TTFB"),r=xb(e,n,JKe,t.reportAllChanges);Gj(()=>{const i=xE();i&&(n.value=Math.max(i.responseStart-AE(),0),n.entries=[i],r(!0))})},KS={},xI={};let Kve,Yve,Qve,Xve,Jve;function cH(e,t=!1){return RE("cls",e,tYe,Kve,t)}function Zve(e,t=!1){return RE("lcp",e,rYe,Qve,t)}function e0e(e){return RE("fid",e,nYe,Yve)}function eYe(e){return RE("ttfb",e,iYe,Xve)}function t0e(e){return RE("inp",e,oYe,Jve)}function S1(e,t){return n0e(e,t),xI[e]||(sYe(e),xI[e]=!0),r0e(e,t)}function Rb(e,t){const n=KS[e];if(!(!n||!n.length))for(const r of n)try{r(t)}catch(i){aH&&ut.error(`Error while triggering instrumentation handler.
1497Type: ${e}
1498Name: ${ih(r)}
1499Error:`,i)}}function tYe(){return LKe(e=>{Rb("cls",{metric:e}),Kve=e},{reportAllChanges:!0})}function nYe(){return jKe(e=>{Rb("fid",{metric:e}),Yve=e})}function rYe(){return XKe(e=>{Rb("lcp",{metric:e}),Qve=e},{reportAllChanges:!0})}function iYe(){return ZKe(e=>{Rb("ttfb",{metric:e}),Xve=e})}function oYe(){return YKe(e=>{Rb("inp",{metric:e}),Jve=e})}function RE(e,t,n,r,i=!1){n0e(e,t);let o;return xI[e]||(o=n(),xI[e]=!0),r&&t({metric:r}),r0e(e,t,i?o:void 0)}function sYe(e){const t={};e==="event"&&(t.durationThreshold=0),zv(e,n=>{Rb(e,{entries:n})},t)}function n0e(e,t){KS[e]=KS[e]||[],KS[e].push(t)}function r0e(e,t,n){return()=>{n&&n();const r=KS[e];if(!r)return;const i=r.indexOf(t);i!==-1&&r.splice(i,1)}}function aYe(e){return"duration"in e}function JM(e){return typeof e=="number"&&isFinite(e)}function ch(e,t,n,{...r}){const i=Ln(e).start_timestamp;return i&&i>t&&typeof e.updateStartTime=="function"&&e.updateStartTime(t),Sve(e,()=>{const o=kE({startTime:t,...r});return o&&o.end(n),o})}function i0e(e){const t=_n();if(!t)return;const{name:n,transaction:r,attributes:i,startTime:o}=e,{release:s,environment:a}=t.getOptions(),c=t.getIntegrationByName("Replay"),l=c&&c.getReplayId(),u=Ir(),d=u.getUser(),f=d!==void 0?d.email||d.id||d.ip_address:void 0;let p;try{p=u.getScopeData().contexts.profile.profile_id}catch{}const g={release:s,environment:a,user:f||void 0,profile_id:p||void 0,replay_id:l||void 0,transaction:r,"user_agent.original":Rt.navigator&&Rt.navigator.userAgent,...i};return kE({name:n,attributes:g,startTime:o,experimental:{standalone:!0}})}function lH(){return Rt&&Rt.addEventListener&&Rt.performance}function $i(e){return e/1e3}function o0e(e){let t="unknown",n="unknown",r="";for(const i of e){if(i==="/"){[t,n]=e.split("/");break}if(!isNaN(Number(i))){t=r==="h"?"http":r,n=e.split(r)[1];break}r+=i}return r===e&&(t=r),{name:t,version:n}}function cYe(){let e=0,t,n;if(!uYe())return;let r=!1;function i(){r||(r=!0,n&&lYe(e,t,n),o())}const o=cH(({metric:s})=>{const a=s.entries[s.entries.length-1];a&&(e=s.value,t=a)},!0);Ib(()=>{i()}),setTimeout(()=>{const s=_n();if(!s)return;const a=s.on("startNavigationSpan",()=>{i(),a&&a()}),c=Vo(),l=c&&as(c),u=l&&Ln(l);u&&u.op==="pageload"&&(n=l.spanContext().spanId)},0)}function lYe(e,t,n){aH&&ut.log(`Sending CLS span (${e})`);const r=$i((ta||0)+(t&&t.startTime||0)),i=Ir().getScopeData().transactionName,o=t?sh(t.sources[0]&&t.sources[0].node):"Layout shift",s=wo({[zo]:"auto.http.browser.cls",[gv]:"ui.webvital.cls",[Z$]:t&&t.duration||0,"sentry.pageload.span_id":n}),a=i0e({name:o,transaction:i,attributes:s,startTime:r});a&&(a.addEvent("cls",{[OP]:"",[NP]:e}),a.end(r))}function uYe(){try{return PerformanceObserver.supportedEntryTypes.includes("layout-shift")}catch{return!1}}const dYe=2147483647;let MZ=0,Zo={},fa,YS;function fYe({recordClsStandaloneSpans:e}){const t=lH();if(t&&ta){t.mark&&Rt.performance.mark("sentry-tracing-init");const n=yYe(),r=vYe(),i=bYe(),o=e?cYe():gYe();return()=>{n(),r(),i(),o&&o()}}return()=>{}}function hYe(){S1("longtask",({entries:e})=>{const t=Vo();if(!t)return;const{op:n,start_timestamp:r}=Ln(t);for(const i of e){const o=$i(ta+i.startTime),s=$i(i.duration);n==="navigation"&&r&&o<r||ch(t,o,o+s,{name:"Main UI thread blocked",op:"ui.long-task",attributes:{[zo]:"auto.ui.browser.metrics"}})}})}function pYe(){new PerformanceObserver(t=>{const n=Vo();if(n)for(const r of t.getEntries()){if(!r.scripts[0])continue;const i=$i(ta+r.startTime),{start_timestamp:o,op:s}=Ln(n);if(s==="navigation"&&o&&i<o)continue;const a=$i(r.duration),c={[zo]:"auto.ui.browser.metrics"},l=r.scripts[0],{invoker:u,invokerType:d,sourceURL:f,sourceFunctionName:p,sourceCharPosition:g}=l;c["browser.script.invoker"]=u,c["browser.script.invoker_type"]=d,f&&(c["code.filepath"]=f),p&&(c["code.function"]=p),g!==-1&&(c["browser.script.source_char_position"]=g),ch(n,i,i+a,{name:"Main UI thread blocked",op:"ui.long-animation-frame",attributes:c})}}).observe({type:"long-animation-frame",buffered:!0})}function mYe(){S1("event",({entries:e})=>{const t=Vo();if(t){for(const n of e)if(n.name==="click"){const r=$i(ta+n.startTime),i=$i(n.duration),o={name:sh(n.target),op:`ui.interaction.${n.name}`,startTime:r,attributes:{[zo]:"auto.ui.browser.metrics"}},s=Qge(n.target);s&&(o.attributes["ui.component_name"]=s),ch(t,r,r+i,o)}}})}function gYe(){return cH(({metric:e})=>{const t=e.entries[e.entries.length-1];t&&(Zo.cls={value:e.value,unit:""},YS=t)},!0)}
1499function vYe(){return Zve(({metric:e})=>{const t=e.entries[e.entries.length-1];t&&(Zo.lcp={value:e.value,unit:"millisecond"},fa=t)},!0)}function yYe(){return e0e(({metric:e})=>{const t=e.entries[e.entries.length-1];if(!t)return;const n=$i(ta),r=$i(t.startTime);Zo.fid={value:e.value,unit:"millisecond"},Zo["mark.fid"]={value:n+r,unit:"second"}})}function bYe(){return eYe(({metric:e})=>{e.entries[e.entries.length-1]&&(Zo.ttfb={value:e.value,unit:"millisecond"})})}function wYe(e,t){const n=lH();if(!n||!n.getEntries||!ta)return;const r=$i(ta),i=n.getEntries(),{op:o,start_timestamp:s}=Ln(e);if(i.slice(MZ).forEach(a=>{const c=$i(a.startTime),l=$i(Math.max(0,a.duration));if(!(o==="navigation"&&s&&r+c<s))switch(a.entryType){case"navigation":{_Ye(e,a,r);break}case"mark":case"paint":case"measure":{SYe(e,a,c,l,r);const u=DP(),d=a.startTime<u.firstHiddenTime;a.name==="first-paint"&&d&&(Zo.fp={value:a.startTime,unit:"millisecond"}),a.name==="first-contentful-paint"&&d&&(Zo.fcp={value:a.startTime,unit:"millisecond"});break}case"resource":{TYe(e,a,a.name,c,l,r);break}}}),MZ=Math.max(i.length-1,0),kYe(e),o==="pageload"){AYe(Zo);const a=Zo["mark.fid"];a&&Zo.fid&&(ch(e,a.value,a.value+$i(Zo.fid.value),{name:"first input delay",op:"ui.action",attributes:{[zo]:"auto.ui.browser.metrics"}}),delete Zo["mark.fid"]),(!("fcp"in Zo)||!t.recordClsOnPageloadSpan)&&delete Zo.cls,Object.entries(Zo).forEach(([c,l])=>{Tqe(c,l.value,l.unit)}),e.setAttribute("performance.timeOrigin",r),e.setAttribute("performance.activationStart",AE()),xYe(e)}fa=void 0,YS=void 0,Zo={}}function SYe(e,t,n,r,i){const o=xE(!1),s=$i(o?o.requestStart:0),a=i+Math.max(n,s),c=i+n,l=c+r,u={[zo]:"auto.resource.browser.metrics"};a!==c&&(u["sentry.browser.measure_happened_before_request"]=!0,u["sentry.browser.measure_start_time"]=a),a<=l&&ch(e,a,l,{name:t.name,op:t.entryType,attributes:u})}function _Ye(e,t,n){["unloadEvent","redirect","domContentLoadedEvent","loadEvent","connect"].forEach(r=>{RT(e,t,r,n)}),RT(e,t,"secureConnection",n,"TLS/SSL"),RT(e,t,"fetch",n,"cache"),RT(e,t,"domainLookup",n,"DNS"),EYe(e,t,n)}function RT(e,t,n,r,i=n){const o=CYe(n),s=t[o],a=t[`${n}Start`];!a||!s||ch(e,r+$i(a),r+$i(s),{op:`browser.${i}`,name:t.name,attributes:{[zo]:"auto.ui.browser.metrics"}})}function CYe(e){return e==="secureConnection"?"connectEnd":e==="fetch"?"domainLookupStart":`${e}End`}function EYe(e,t,n){const r=n+$i(t.requestStart),i=n+$i(t.responseEnd),o=n+$i(t.responseStart);t.responseEnd&&(ch(e,r,i,{op:"browser.request",name:t.name,attributes:{[zo]:"auto.ui.browser.metrics"}}),ch(e,o,i,{op:"browser.response",name:t.name,attributes:{[zo]:"auto.ui.browser.metrics"}}))}function TYe(e,t,n,r,i,o){if(t.initiatorType==="xmlhttprequest"||t.initiatorType==="fetch")return;const s=Hg(n),a={[zo]:"auto.resource.browser.metrics"};ZM(a,t,"transferSize","http.response_transfer_size"),ZM(a,t,"encodedBodySize","http.response_content_length"),ZM(a,t,"decodedBodySize","http.decoded_response_content_length");const c=t.deliveryType;c!=null&&(a["http.response_delivery_type"]=c);const l=t.renderBlockingStatus;l&&(a["resource.render_blocking_status"]=l),s.protocol&&(a["url.scheme"]=s.protocol.split(":").pop()),s.host&&(a["server.address"]=s.host),a["url.same_origin"]=n.includes(Rt.location.origin);const{name:u,version:d}=o0e(t.nextHopProtocol);a["network.protocol.name"]=u,a["network.protocol.version"]=d;const f=o+r,p=f+i;ch(e,f,p,{name:n.replace(Rt.location.origin,""),op:t.initiatorType?`resource.${t.initiatorType}`:"resource.other",attributes:a})}function kYe(e){const t=Rt.navigator;if(!t)return;const n=t.connection;n&&(n.effectiveType&&e.setAttribute("effectiveConnectionType",n.effectiveType),n.type&&e.setAttribute("connectionType",n.type),JM(n.rtt)&&(Zo["connection.rtt"]={value:n.rtt,unit:"millisecond"})),JM(t.deviceMemory)&&e.setAttribute("deviceMemory",`${t.deviceMemory} GB`),JM(t.hardwareConcurrency)&&e.setAttribute("hardwareConcurrency",String(t.hardwareConcurrency))}function xYe(e){fa&&(fa.element&&e.setAttribute("lcp.element",sh(fa.element)),fa.id&&e.setAttribute("lcp.id",fa.id),fa.url&&e.setAttribute("lcp.url",fa.url.trim().slice(0,200)),fa.loadTime!=null&&e.setAttribute("lcp.loadTime",fa.loadTime),fa.renderTime!=null&&e.setAttribute("lcp.renderTime",fa.renderTime),e.setAttribute("lcp.size",fa.size)),YS&&YS.sources&&YS.sources.forEac
1499h((t,n)=>e.setAttribute(`cls.source.${n+1}`,sh(t.node)))}function ZM(e,t,n,r){const i=t[n];i!=null&&i<dYe&&(e[r]=i)}function AYe(e){const t=xE(!1);if(!t)return;const{responseStart:n,requestStart:r}=t;r<=n&&(e["ttfb.requestTime"]={value:n-r,unit:"millisecond"})}const IYe=1e3;let DZ,Kj,Yj;function s0e(e){Dm("dom",e),Lm("dom",RYe)}function RYe(){if(!Rt.document)return;const e=Vc.bind(null,"dom"),t=LZ(e,!0);Rt.document.addEventListener("click",t,!1),Rt.document.addEventListener("keypress",t,!1),["EventTarget","Node"].forEach(n=>{const i=Rt[n],o=i&&i.prototype;!o||!o.hasOwnProperty||!o.hasOwnProperty("addEventListener")||(_a(o,"addEventListener",function(s){return function(a,c,l){if(a==="click"||a=="keypress")try{const u=this.__sentry_instrumentation_handlers__=this.__sentry_instrumentation_handlers__||{},d=u[a]=u[a]||{refCount:0};if(!d.handler){const f=LZ(e);d.handler=f,s.call(this,a,f,l)}d.refCount++}catch{}return s.call(this,a,c,l)}}),_a(o,"removeEventListener",function(s){return function(a,c,l){if(a==="click"||a=="keypress")try{const u=this.__sentry_instrumentation_handlers__||{},d=u[a];d&&(d.refCount--,d.refCount<=0&&(s.call(this,a,d.handler,l),d.handler=void 0,delete u[a]),Object.keys(u).length===0&&delete this.__sentry_instrumentation_handlers__)}catch{}return s.call(this,a,c,l)}}))})}function PYe(e){if(e.type!==Kj)return!1;try{if(!e.target||e.target._sentryId!==Yj)return!1}catch{}return!0}function OYe(e,t){return e!=="keypress"?!1:!t||!t.tagName?!0:!(t.tagName==="INPUT"||t.tagName==="TEXTAREA"||t.isContentEditable)}function LZ(e,t=!1){return n=>{if(!n||n._sentryCaptured)return;const r=NYe(n);if(OYe(n.type,r))return;Qc(n,"_sentryCaptured",!0),r&&!r._sentryId&&Qc(r,"_sentryId",uc());
1499const i=n.type==="keypress"?"input":n.type;PYe(n)||(e({event:n,name:i,global:t}),Kj=n.type,Yj=r?r._sentryId:void 0),clearTimeout(DZ),DZ=Rt.setTimeout(()=>{Yj=void 0,Kj=void 0},IYe)}}function NYe(e){try{return e.target}catch{return null}}let PT;function LP(e){const t="history";Dm(t,e),Lm(t,MYe)}function MYe(){if(!dKe())return;const e=Rt.onpopstate;Rt.onpopstate=function(...n){const r=Rt.location.href,i=PT;if(PT=r,Vc("history",{from:i,to:r}),e)try{return e.apply(this,n)}catch{}};function t(n){return function(...r){const i=r.length>2?r[2]:void 0;if(i){const o=PT,s=String(i);PT=s,Vc("history",{from:o,to:s})}return n.apply(this,r)}}_a(Rt.history,"pushState",t),_a(Rt.history,"replaceState",t)}const Lx={};function a0e(e){const t=Lx[e];if(t)return t;let n=Rt[e];if(Hj(n))return Lx[e]=n.bind(Rt);const r=Rt.document;if(r&&typeof r.createElement=="function")try{const i=r.createElement("iframe");i.hidden=!0,r.head.appendChild(i);const o=i.contentWindow;o&&o[e]&&(n=o[e]),r.head.removeChild(i)}catch(i){aH&&ut.warn(`Could not create sandbox iframe for ${e} check, bailing to window.${e}: `,i)}return n&&(Lx[e]=n.bind(Rt))}function FZ(e){Lx[e]=void 0}function _1(...e){return a0e("setTimeout")(...e)}const bg="__sentry_xhr_v3__";function c0e(e){Dm("xhr",e),Lm("xhr",DYe)}function DYe(){if(!Rt.XMLHttpRequest)return;const e=XMLHttpRequest.prototype;e.open=new Proxy(e.open,{apply(t,n,r){const i=new Error,o=Js()*1e3,s=Uf(r[0])?r[0].toUpperCase():void 0,a=LYe(r[1]);if(!s||!a)return t.apply(n,r);n[bg]={method:s,url:a,request_headers:{}},s==="POST"&&a.match(/sentry_key/)&&(n.__sentry_own_request__=!0);const c=()=>{const l=n[bg];if(l&&n.readyState===4){try{l.status_code=n.status}catch{}const u={endTimestamp:Js()*1e3,startTimestamp:o,xhr:n,virtualError:i};Vc("xhr",u)}};return"onreadystatechange"in n&&typeof n.onreadystatechange=="function"?n.onreadystatechange=new Proxy(n.onreadystatechange,{apply(l,u,d){return c(),l.apply(u,d)}}):n.addEventListener("readystatechange",c),n.setRequestHeader=new Proxy(n.setRequestHeader,{apply(l,u,d){const[f,p]=d,g=u[bg];return g&&Uf(f)&&Uf(p)&&(g.request_headers[f.toLowerCase()]=p),l.apply(u,d)}}),t.apply(n,r)}}),e.send=new Proxy(e.send,{apply(t,n,r){const i=n[bg];if(!i)return t.apply(n,r);r[0]!==void 0&&(i.body=r[0]);const o={startTimestamp:Js()*1e3,xhr:n};return Vc("xhr",o),t.apply(n,r)}})}function LYe(e){if(Uf(e))return e;try{return e.toString()}catch{}}const e6=[],Fx=new Map;function FYe(){if(lH()&&ta){const t=jYe();return()=>{t()}}return()=>{}}const jZ={click:"click",pointerdown:"click",pointerup:"click",mousedown:"click",mouseup:"click",touchstart:"click",touchend:"click",mouseover:"hover",mouseout:"hover",mouseenter:"hover",mouseleave:"hover",pointerover:"hover",pointerout:"hover",pointerenter:"hover",pointerleave:"hover",dragstart:"drag",dragend:"drag",drag:"drag",dragenter:"drag",dragleave:"drag",dragover:"drag",drop:"drag",keydown:"press",keyup:"press",keypress:"press",input:"press"};function jYe(){return t0e(({metric:e})=>{if(e.value==null)return;const t=e.entries.find(g=>g.duration===e.value&&jZ[g.name]);if(!t)return;const{interactionId:n}=t,r=jZ[t.name],i=$i(ta+t.startTime),o=$i(e.value),s=Vo(),a=s?as(s):void 0,l=(n!=null?Fx.get(n):void 0)||a,u=l?Ln(l).description:Ir().getScopeData().transactionName,d=sh(t.target),f=wo({[zo]:"auto.http.browser.inp",[gv]:`ui.interaction.${r}`,[Z$]:t.duration}),p=i0e({name:d,transaction:u,attributes:f,startTime:i});p&&(p.addEvent("inp",{[OP]:"millisecond",[NP]:e.value}),p.end(i+o))})}function UYe(e){const t=({entries:n})=>{const r=Vo(),i=r&&as(r);n.forEach(o=>{if(!aYe(o)||!i)return;const s=o.interactionId;if(s!=null&&!Fx.has(s)){if(e6.length>10){const a=e6.shift();Fx.delete(a)}e6.push(s),Fx.set(s,i)}})};S1("event",t),S1("first-input",t)}function BYe(e,t=a0e("fetch")){let n=0,r=0;function i(o){const s=o.body.length;n+=s,r++;const a={body:o.body,method:"POST",referrerPolicy:"origin",headers:e.headers,keepalive:n<=6e4&&r<15,...e.fetchOptions};if(!t)return FZ("fetch"),_I("No fetch implementation available");try{return t(e.url,a).then(c=>(n-=s,r--,{statusCode:c.status,headers:{"x-sentry-rate-limits":c.headers.get("X-Sentry-Rate-Limits"),"retry-after":c.headers.get("Retry-After")}}))}catch(c){return FZ("fetch"),n-=s,r--,_I(c)}}return vGe(e,i)}const $Ye=30,HYe=50;function Qj(e,t,n,r){const i={filename:e,function:t==="<anonymous>"?pv:t,in_app:!0};return n!==void 0&&(i.lineno=n),r!==void 0&&(i.colno=r),i}const zYe=/^\s*at (\S+?)(?::(\d+))(?::(\d+))\s*$/i,VYe=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,WYe=/\((\S*)(?::(\d+))(?::(\d+))\)/,qYe=e=>{const t=zYe.exec(e);if(t){const[,r,i,o]=t;return Qj(r,pv,+i,+o)}const n=VYe.exec(e);if(n){if(n[2]&&n[2].indexOf("eval")===0){const s=WYe.exec(n[2]);s&&(n[2]=s[1],n[3]=s[2],n[4]=s[3])}const[i,o]=l0e(n[1]||pv,n[2]);return Qj(o,i,n[3]?+n[3]:void 0,n[4]?+n[4]:void 0)}},GYe=[$Ye,qYe],KYe=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,YYe=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,QYe=e=>{const t=KYe.exec(e);if(t){if(t[3]&&t[3].indexOf(" > eval")>-1){const o=YYe.exec(t[3]);o&&(t[1]=t[1]||"eval",t[3]=o[1],t[4]=o[2],t[5]="")}let r=t[3],i=t[1]||pv;return[i,r]=l0e(i,r),Qj(r,i,t[4]?+t[4]:void 0,t[5]?+t[5]:void 0)}},XYe=[HYe,QYe],JYe=[GYe,XYe],ZYe=zge(...JYe),l0e=(e,t)=>{const n=e.indexOf("safari-extension")!==-1,r=e.indexOf("safari-web-extension")!==-1;return n||r?[e.indexOf("@")!==-1?e.split("@")[0]:pv,n?`safari-extension:${t}`:`safari-web-extension:${t}`]:[e,t]},OT=1024,eQe="Breadcrumbs",tQe=((e={})=>{const t={console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0,...e};return{name:eQe,setup(n){t.console&&HGe(oQe(n)),t.dom&&s0e(iQe(n,t.dom)),t.xhr&&c0e(sQe(n)),t.fetch&&Hve(aQe(n)),t.history&&LP(cQe(n)),t.sentry&&n.on("beforeSendEvent",rQe(n))}}}),nQe=tQe;function rQe(e){return function(n){_n()===e&&cm({category:`sentry.${n.type==="transaction"?"transaction":"event"}`,event_id:n.event_id,level:n.level,message:Zh(n)},{event:n})}}function iQe(e,t){return function(r){if(_n()!==e)return;let i,o,s=typeof t=="object"?t.serializeAttribute:void 0,a=typeof t=="object"&&typeof t.maxStringLength=="number"?t.maxStringLength:void 0;a&&a>OT&&(bd&&ut.warn(`\`dom.maxStringLength\` cannot exceed ${OT}, but a value of ${a} was configured. Sentry will use ${OT} instead.`),a=OT),typeof s=="string"&&(s=[s]);try{const l=r.event,u=lQe(l)?l.target:l;i=sh(u,{keyAttrs:s,maxStringLength:a}),o=Qge(u)}catch{i="<unknown>"}if(i.length===0)return;const c={category:`ui.${r.name}`,message:i};o&&(c.data={"ui.component_name":o}),cm(c,{event:r.event,name:r.name,global:r.global})}}function oQe(e){return function(n){if(_n()!==e)return;const r={category:"console",data:{arguments:n.args,logger:"console"},level:Fve(n.level),message:JJ(n.args," ")};if(n.level==="assert")if(n.args[0]===!1)r.message=`Assertion failed: ${JJ(n.args.slice(1)," ")||"console.assert"}`,r.data.arguments=n.args.slice(1);else return;cm(r,{input:n.args,level:n.level})}}function sQe(e){return function(n){if(_n()!==e)return;const{startTimestamp:r,endTimestamp:i}=n,o=n.xhr[bg];if(!r||!i||!o)return;const{method:s,url:a,status_code:c,body:l}=o,u={method:s,url:a,status_code:c},d={xhr:n.xhr,input:l,startTimestamp:r,endTimestamp:i},f=Bve(c);cm({category:"xhr",data:u,type:"http",level:f},d)}}function aQe(e){return function(n){if(_n()!==e)return;const{startTimestamp:r,endTimestamp:i}=n;
vendor: 4,587 bytes, line 1499
1499if(i&&!(n.fetchData.url.match(/sentry_key/)&&n.fetchData.method==="POST"))if(n.error){const o=n.fetchData,s={data:n.error,input:n.args,startTimestamp:r,endTimestamp:i};cm({category:"fetch",data:o,level:"error",type:"http"},s)}else{const o=n.response,s={...n.fetchData,status_code:o&&o.status},a={input:n.args,response:o,startTimestamp:r,endTimestamp:i},c=Bve(s.status_code);cm({category:"fetch",data:s,type:"http",level:c},a)}}}function cQe(e){return function(n){if(_n()!==e)return;let r=n.from,i=n.to;const o=Hg(Qt.location.href);let s=r?Hg(r):void 0;const a=Hg(i);(!s||!s.path)&&(s=o),o.protocol===a.protocol&&o.host===a.host&&(i=a.relative),o.protocol===s.protocol&&o.host===s.host&&(r=s.relative),cm({category:"navigation",data:{from:r,to:i}})}}function lQe(e){return!!e&&!!e.target}const uQe=["EventTarget","Window","Node","ApplicationCache","AudioTrackList","BroadcastChannel","ChannelMergerNode","CryptoOperation","EventSource","FileReader","HTMLUnknownElement","IDBDatabase","IDBRequest","IDBTransaction","KeyOperation","MediaController","MessagePort","ModalWindow","Notification","SVGElementInstance","Screen","SharedWorker","TextTrack","TextTrackCue","TextTrackList","WebSocket","WebSocketWorker","Worker","XMLHttpRequest","XMLHttpRequestEventTarget","XMLHttpRequestUpload"],dQe="BrowserApiErrors",fQe=((e={})=>{const t={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,...e};return{name:dQe,setupOnce(){t.setTimeout&&_a(Qt,"setTimeout",UZ),t.setInterval&&_a(Qt,"setInterval",UZ),t.requestAnimationFrame&&_a(Qt,"requestAnimationFrame",pQe),t.XMLHttpRequest&&"XMLHttpRequest"in Qt&&_a(XMLHttpRequest.prototype,"send",mQe);const n=t.eventTarget;n&&(Array.isArray(n)?n:uQe).forEach(gQe)}}}),hQe=fQe;function UZ(e){return function(...t){const n=t[0];return t[0]=w1(n,{mechanism:{data:{function:ih(e)},handled:!1,type:"instrument"}}),e.apply(this,t)}}function pQe(e){return function(t){return e.apply(this,[w1(t,{mechanism:{data:{function:"requestAnimationFrame",handler:ih(e)},handled:!1,type:"instrument"}})])}}function mQe(e){return function(...t){const n=this;return["onload","onerror","onprogress","onreadystatechange"].forEach(i=>{i in n&&typeof n[i]=="function"&&_a(n,i,function(o){const s={mechanism:{data:{function:i,handler:ih(o)},handled:!1,type:"instrument"}},a=Q$(o);return a&&(s.mechanism.data.handler=ih(a)),w1(o,s)})}),e.apply(this,t)}}function gQe(e){const n=Qt[e],r=n&&n.prototype;!r||!r.hasOwnProperty||!r.hasOwnProperty("addEventListener")||(_a(r,"addEventListener",function(i){return function(o,s,a){try{vQe(s)&&(s.handleEvent=w1(s.handleEvent,{mechanism:{data:{function:"handleEvent",handler:ih(s),target:e},handled:!1,type:"instrument"}}))}catch{}return i.apply(this,[o,w1(s,{mechanism:{data:{function:"addEventListener",handler:ih(s),target:e},handled:!1,type:"instrument"}}),a])}}),_a(r,"removeEventListener",function(i){return function(o,s,a){try{const c=s.__sentry_wrapped__;c&&i.call(this,o,c,a)}catch{}return i.call(this,o,s,a)}}))}function vQe(e){return typeof e.handleEvent=="function"}const yQe=()=>({name:"BrowserSession",setupOnce(){if(typeof Qt.document>"u"){bd&&ut.warn("Using the `browserSessionIntegration` in non-browser environments is not supported.");return}bZ({ignoreDuration:!0}),wZ(),LP(({from:e,to:t})=>{e!==void 0&&e!==t&&(bZ({ignoreDuration:!0}),wZ())})}}),bQe="GlobalHandlers",wQe=((e={})=>{const t={onerror:!0,onunhandledrejection:!0,...e};return{name:bQe,setupOnce(){Error.stackTraceLimit=50},setup(n){t.onerror&&(_Qe(n),BZ("onerror")),t.onunhandledrejection&&(CQe(n),BZ("onunhandledrejection"))}}}),SQe=wQe;function _Qe(e){Vge(t=>{const{stackParser:n,attachStacktrace:r}=u0e();if(_n()!==e||Vve())return;const{msg:i,url:o,line:s,column:a,error:c}=t,l=kQe(sH(n,c||i,void 0,r,!1),o,s,a);l.level="error",Tve(l,{originalException:c,mechanism:{handled:!1,type:"onerror"}})})}function CQe(e){Wge(t=>{const{stackParser:n,attachStacktrace:r}=u0e();if(_n()!==e||Vve())return;const i=EQe(t),o=Y$(i)?TQe(i):sH(n,i,void 0,r,!0);o.level="error",Tve(o,{originalException:i,mechanism:{handled:!1,type:"onunhandledrejection"}})})}function EQe(e){if(Y$(e))return e;try{if("reason"in e)return e.reason;if("detail"in e&&"reason"in e.detail)return e.detail.reason}catch{}return e}function TQe(e){return{exception:{values:[{type:"UnhandledRejection",value:`Non-Error promise rejection captured with value: ${String(e)}`}]}}}function kQe(e,t,n,r){const i=e.exception=e.exception||{},o=i.values=i.values||[],s=o[0]=o[0]||{},a=s.stacktrace=s.stacktrace||{},c=a.frames=a.frames||[],l=r,u=n,d=Uf(t)&&t.length>0?t:Yge();
1499return c.length===0&&c.push({colno:l,filename:d,function:pv,in_app:!0,lineno:u}),e}function BZ(e){bd&&ut.log(`Global Handler attached: ${e}`)}function u0e(){const e=_n();return e&&e.getOptions()||{stackParser:()=>[],attachStacktrace:!1}}const xQe=()=>({name:"HttpContext",preprocessEvent(e){if(!Qt.navigator&&!Qt.location&&!Qt.document)return;const t=e.request&&e.request.url||Qt.location&&Qt.location.href,{referrer:n}=Qt.document||{},{userAgent:r}=Qt.navigator||{},i={...e.request&&e.request.headers,...n&&{Referer:n},...r&&{"User-Agent":r}},o={...e.request,...t&&{url:t},headers:i};e.request=o}}),AQe="cause",IQe=5,RQe="LinkedErrors",PQe=((e={})=>{const t=e.limit||IQe,n=e.key||AQe;return{name:RQe,preprocessEvent(r,i,o){const s=o.getOptions();BGe(iH,s.stackParser,s.maxValueLength,n,t,r,i)}}}),OQe=PQe;function NQe(e){const t=[IGe(),TGe(),hQe(),nQe(),SQe(),OQe(),qGe(),xQe()];return e.autoSessionTracking!==!1&&t.push(yQe()),t}function MQe(e={}){const t={defaultIntegrations:NQe(e),release:typeof __SENTRY_RELEASE__=="string"?__SENTRY_RELEASE__:Qt.SENTRY_RELEASE&&Qt.SENTRY_RELEASE.id?Qt.SENTRY_RELEASE.id:void 0,autoSessionTracking:!0,sendClientReports:!0};return e.defaultIntegrations==null&&delete e.defaultIntegrations,{...t,...e}}function DQe(){const e=typeof Qt.window<"u"&&Qt;if(!e)return!1;const t=e.chrome?"chrome":"browser",n=e[t],r=n&&n.runtime&&n.runtime.id,i=Qt.location&&Qt.location.href||"",o=["chrome-extension:","moz-extension:","ms-browser-extension:","safari-web-extension:"],s=!!r&&Qt===Qt.top&&o.some(c=>i.startsWith(`${c}//`)),a=typeof e.nw<"u";return!!r&&!s&&!a}function LQe(e={}){const t=MQe(e);if(!t.skipBrowserExtensionCheck&&DQe()){Mm(()=>{console.error("[Sentry] You cannot run Sentry this way in a browser extension, check: https://docs.sentry.io/platforms/javascript/best-practices/browser-extensions/")});return}bd&&($ve()||ut.warn("No Fetch API detected. The Sentry SDK requires a Fetch API compatible environment to send events. Please add a Fetch API polyfill."));const n={...t,stackParser:lWe(t.stackParser||ZYe),integrations:iGe(t),transport:t.transport||BYe};return uGe(xKe,n)}const Er=En,uH="sentryReplaySession",FQe="replay_event",dH="Unable to send Replay",jQe=3e5,UQe=9e5,BQe=5e3,$Qe=5500,HQe=6e4,zQe=5e3,VQe=3,$Z=15e4,NT=5e3,WQe=3e3,qQe=300,fH=2e7,GQe=4999,KQe=15e3,HZ=36e5;function Xj(e,t){return e??t()}function lC(e){let t,n=e[0],r=1;for(;r<e.length;){const i=e[r],o=e[r+1];if(r+=2,(i==="optionalAccess"||i==="optionalCall")&&n==null)return;i==="access"||i==="optionalAccess"?(t=n,n=o(n)):(i==="call"||i==="optionalCall")&&(n=o((...s)=>n.call(t,...s)),t=void 0)}return n}var vo;(function(e){e[e.Document=0]="Document",e[e.DocumentType=1]="DocumentType",e[e.Element=2]="Element",e[e.Text=3]="Text",e[e.CDATA=4]="CDATA",e[e.Comment=5]="Comment"})(vo||(vo={}));function YQe(e){return e.nodeType===e.ELEMENT_NODE}function QS(e){const t=lC([e,"optionalAccess",n=>n.host]);return lC([t,"optionalAccess",n=>n.shadowRoot])===e}function XS(e){return Object.prototype.toString.call(e)==="[object ShadowRoot]"}function QQe(e){return e.includes(" background-clip: text;")&&!e.includes(" -webkit-background-clip: text;")&&(e=e.replace(/\sbackground-clip:\s*text;/g," -webkit-background-clip: text; background-clip: text;")),e}function XQe(e){const{cssText:t}=e;if(t.split('"').length<3)return t;const n=["@import",`url(${JSON.stringify(e.href)})`];return e.layerName===""?n.push("layer"):e.layerName&&n.push(`layer(${e.layerName})`),e.supportsText&&n.push(`supports(${e.supportsText})`),e.media.length&&n.push(e.media.mediaText),n.join(" ")+";"}function AI(e){try{const t=e.rules||e.cssRules;return t?QQe(Array.from(t,d0e).join("")):null}catch{return null}}function JQe(e){let t="";for(let n=0;n<e.style.length;n++){const r=e.style,i=r[n],o=r.getPropertyPriority(i);t+=`${i}:${r.getPropertyValue(i)}${o?" !important":""};`}return`${e.selectorText} { ${t} }`}function d0e(e){let t;if(eXe(e))try{t=AI(e.styleSheet)||XQe(e)}catch{}else if(tXe(e)){let n=e.cssText;const r=e.selectorText.includes(":"),i=typeof e.style.all=="string"&&e.style.all;if(i&&(n=JQe(e)),r&&(n=ZQe(n)),r||i)return n}return t||e.cssText}function ZQe(e){const t=/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm;return e.replace(t,"$1\\$2")}function eXe(e){return"styleSheet"in e}function tXe(e){return"selectorText"in e}class f0e{constructor(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}getId(t){if(!t)return-1;const n=lC([this,"access",r=>r.getMeta,"call",r=>r(t),"optionalAccess",r=>r.id]);
1499return Xj(n,()=>-1)}getNode(t){return this.idNodeMap.get(t)||null}getIds(){return Array.from(this.idNodeMap.keys())}getMeta(t){return this.nodeMetaMap.get(t)||null}removeNodeFromMap(t){const n=this.getId(t);this.idNodeMap.delete(n),t.childNodes&&t.childNodes.forEach(r=>this.removeNodeFromMap(r))}has(t){return this.idNodeMap.has(t)}hasNode(t){return this.nodeMetaMap.has(t)}add(t,n){const r=n.id;this.idNodeMap.set(r,t),this.nodeMetaMap.set(t,n)}replace(t,n){const r=this.getNode(t);if(r){const i=this.nodeMetaMap.get(r);i&&this.nodeMetaMap.set(n,i)}this.idNodeMap.set(t,n)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}}function nXe(){return new f0e}function FP({maskInputOptions:e,tagName:t,type:n}){return t==="OPTION"&&(t="SELECT"),!!(e[t.toLowerCase()]||n&&e[n]||n==="password"||t==="INPUT"&&!n&&e.text)}function uC({isMasked:e,element:t,value:n,maskInputFn:r}){let i=n||"";return e?(r&&(i=r(i,t)),"*".repeat(i.length)):i}function C1(e){return e.toLowerCase()}function Jj(e){return e.toUpperCase()}const zZ="__rrweb_original__";function rXe(e){const t=e.getContext("2d");if(!t)return!0;const n=50;for(let r=0;r<e.width;r+=n)for(let i=0;i<e.height;i+=n){const o=t.getImageData,s=zZ in o?o[zZ]:o;if(new Uint32Array(s.call(t,r,i,Math.min(n,e.width-r),Math.min(n,e.height-i)).data.buffer).some(c=>c!==0))return!1}return!0}function hH(e){const t=e.type;return e.hasAttribute("data-rr-is-password")?"password":t?C1(t):null}function II(e,t,n){return t==="INPUT"&&(n==="radio"||n==="checkbox")?e.getAttribute("value")||"":e.value}function h0e(e,t){let n;try{n=new URL(e,Xj(t,()=>window.location.href))}catch{return null}const r=/\.([0-9a-z]+)(?:$)/i,i=n.pathname.match(r);return Xj(lC([i,"optionalAccess",o=>o[1]]),()=>null)}const VZ={};function p0e(e){const t=VZ[e];if(t)return t;const n=window.document;let r=window[e];if(n&&typeof n.createElement=="function")try{const i=n.createElement("iframe");i.hidden=!0,n.head.appendChild(i);const o=i.contentWindow;o&&o[e]&&(r=o[e]),n.head.removeChild(i)}catch{}return VZ[e]=r.bind(window)}function Zj(...e){return p0e("setTimeout")(...e)}function m0e(...e){return p0e("clearTimeout")(...e)}function g0e(e){try{return e.contentDocument}catch{}}let iXe=1;const oXe=new RegExp("[^a-z0-9-_:]"),dC=-2;function pH(){return iXe++}function sXe(e){if(e instanceof HTMLFormElement)return"form";const t=C1(e.tagName);return oXe.test(t)?"div":t}function aXe(e){let t="";return e.indexOf("//")>-1?t=e.split("/").slice(0,3).join("/"):t=e.split("/")[0],t=t.split("?")[0],t}let h0,WZ;const cXe=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,lXe=/^(?:[a-z+]+:)?\/\//i,uXe=/^www\..*/i,dXe=/^(data:)([^,]*),(.*)/i;function RI(e,t){return(e||"").replace(cXe,(n,r,i,o,s,a)=>{const c=i||s||a,l=r||o||"";if(!c)return n;if(lXe.test(c)||uXe.test(c))return`url(${l}${c}${l})`;if(dXe.test(c))return`url(${l}${c}${l})`;if(c[0]==="/")return`url(${l}${aXe(t)+c}${l})`;const u=t.split("/"),d=c.split("/");u.pop();for(const f of d)f!=="."&&(f===".."?u.pop():u.push(f));return`url(${l}${u.join("/")}${l})`})}const fXe=/^[^ \t\n\r\u000c]+/,hXe=/^[, \t\n\r\u000c]+/;function pXe(e,t){if(t.trim()==="")return t;let n=0;function r(o){let s;const a=o.exec(t.substring(n));return a?(s=a[0],n+=s.length,s):""}const i=[];for(;r(hXe),!(n>=t.length);){let o=r(fXe);if(o.slice(-1)===",")o=ry(e,o.substring(0,o.length-1)),i.push(o);else{let s="";o=ry(e,o);let a=!1;for(;;){const c=t.charAt(n);if(c===""){i.push((o+s).trim());break}else if(a)c===")"&&(a=!1);else if(c===","){n+=1,i.push((o+s).trim());break}else c==="("&&(a=!0);s+=c,n+=1}}}return i.join(", ")}const qZ=new WeakMap;function ry(e,t){return!t||t.trim()===""?t:jP(e,t)}function mXe(e){return!!(e.tagName==="svg"||e.ownerSVGElement)}function jP(e,t){let n=qZ.get(e);if(n||(n=e.createElement("a"),qZ.set(e,n)),!t)t="";else if(t.startsWith("blob:")||t.startsWith("data:"))return t;return n.setAttribute("href",t),n.href}function v0e(e,t,n,r,i,o){return r&&(n==="src"||n==="href"&&!(t==="use"&&r[0]==="#")||n==="xlink:href"&&r[0]!=="#"||n==="background"&&(t==="table"||t==="td"||t==="th")?ry(e,r):n==="srcset"?pXe(e,r):n==="style"?RI(r,jP(e)):t==="object"&&n==="data"?ry(e,r):typeof o=="function"?o(n,r,i):r)}
1499function y0e(e,t,n){return(e==="video"||e==="audio")&&t==="autoplay"}function gXe(e,t,n,r){try{if(r&&e.matches(r))return!1;if(typeof t=="string"){if(e.classList.contains(t))return!0}else for(let i=e.classList.length;i--;){const o=e.classList[i];if(t.test(o))return!0}if(n)return e.matches(n)}catch{}return!1}function vXe(e,t){for(let n=e.classList.length;n--;){const r=e.classList[n];if(t.test(r))return!0}return!1}function wg(e,t,n=1/0,r=0){return!e||e.nodeType!==e.ELEMENT_NODE||r>n?-1:t(e)?r:wg(e.parentNode,t,n,r+1)}function iy(e,t){return n=>{const r=n;if(r===null)return!1;try{if(e){if(typeof e=="string"){if(r.matches(`.${e}`))return!0}else if(vXe(r,e))return!0}return!!(t&&r.matches(t))}catch{return!1}}}function E1(e,t,n,r,i,o){try{const s=e.nodeType===e.ELEMENT_NODE?e:e.parentElement;if(s===null)return!1;if(s.tagName==="INPUT"){const l=s.getAttribute("autocomplete");if(["current-password","new-password","cc-number","cc-exp","cc-exp-month","cc-exp-year","cc-csc"].includes(l))return!0}let a=-1,c=-1;if(o){if(c=wg(s,iy(r,i)),c<0)return!0;a=wg(s,iy(t,n),c>=0?c:1/0)}else{if(a=wg(s,iy(t,n)),a<0)return!1;c=wg(s,iy(r,i),a>=0?a:1/0)}return a>=0?c>=0?a<=c:!0:c>=0?!1:!!o}catch{}return!!o}function yXe(e,t,n){const r=e.contentWindow;if(!r)return;let i=!1,o;try{o=r.document.readyState}catch{return}if(o!=="complete"){const a=Zj(()=>{i||(t(),i=!0)},n);e.addEventListener("load",()=>{m0e(a),i=!0,t()});return}const s="about:blank";if(r.location.href!==s||e.src===s||e.src==="")return Zj(t,0),e.addEventListener("load",t);e.addEventListener("load",t)}function bXe(e,t,n){let r=!1,i;try{i=e.sheet}catch{return}if(i)return;const o=Zj(()=>{r||(t(),r=!0)},n);e.addEventListener("load",()=>{m0e(o),r=!0,t()})}function wXe(e,t){const{doc:n,mirror:r,blockClass:i,blockSelector:o,unblockSelector:s,maskAllText:a,maskAttributeFn:c,maskTextClass:l,unmaskTextClass:u,maskTextSelector:d,unmaskTextSelector:f,inlineStylesheet:p,maskInputOptions:g={},maskTextFn:m,maskInputFn:y,dataURLOptions:v={},inlineImages:w,recordCanvas:S,keepIframeSrcFn:C,newlyAddedElement:E=!1}=t,T=SXe(n,r);switch(e.nodeType){case e.DOCUMENT_NODE:return e.compatMode!=="CSS1Compat"?{type:vo.Document,childNodes:[],compatMode:e.compatMode}:{type:vo.Document,childNodes:[]};case e.DOCUMENT_TYPE_NODE:return{type:vo.DocumentType,name:e.name,publicId:e.publicId,systemId:e.systemId,rootId:T};case e.ELEMENT_NODE:return CXe(e,{doc:n,blockClass:i,blockSelector:o,unblockSelector:s,inlineStylesheet:p,maskAttributeFn:c,maskInputOptions:g,maskInputFn:y,dataURLOptions:v,inlineImages:w,recordCanvas:S,keepIframeSrcFn:C,newlyAddedElement:E,rootId:T,maskTextClass:l,unmaskTextClass:u,maskTextSelector:d,unmaskTextSelector:f});case e.TEXT_NODE:return _Xe(e,{doc:n,maskAllText:a,maskTextClass:l,unmaskTextClass:u,maskTextSelector:d,unmaskTextSelector:f,maskTextFn:m,maskInputOptions:g,maskInputFn:y,rootId:T});case e.CDATA_SECTION_NODE:return{type:vo.CDATA,textContent:"",rootId:T};case e.COMMENT_NODE:return{type:vo.Comment,textContent:e.textContent||"",rootId:T};default:return!1}}function SXe(e,t){if(!t.hasNode(e))return;const n=t.getId(e);return n===1?void 0:n}function _Xe(e,t){const{maskAllText:n,maskTextClass:r,unmaskTextClass:i,maskTextSelector:o,unmaskTextSelector:s,maskTextFn:a,maskInputOptions:c,maskInputFn:l,rootId:u}=t,d=e.parentNode&&e.parentNode.tagName;let f=e.textContent;const p=d==="STYLE"?!0:void 0,g=d==="SCRIPT"?!0:void 0,m=d==="TEXTAREA"?!0:void 0;if(p&&f){try{e.nextSibling||e.previousSibling||lC([e,"access",v=>v.parentNode,"access",v=>v.sheet,"optionalAccess",v=>v.cssRules])&&(f=AI(e.parentNode.sheet))}catch(v){console.warn(`Cannot get CSS styles from text's parentNode. Error: ${v}`,e)}f=RI(f,jP(t.doc))}g&&(f="SCRIPT_PLACEHOLDER");const y=E1(e,r,o,i,s,n);if(!p&&!g&&!m&&f&&y&&(f=a?a(f,e.parentElement):f.replace(/[\S]/g,"*")),m&&f&&(c.textarea||y)&&(f=l?l(f,e.parentNode):f.replace(/[\S]/g,"*")),d==="OPTION"&&f){const v=FP({type:null,tagName:d,maskInputOptions:c});f=uC({isMasked:E1(e,r,o,i,s,v),element:e,value:f,maskInputFn:l})}return{type:vo.Text,textContent:f||"",isStyle:p,rootId:u}}function CXe(e,t){const{doc:n,blockClass:r,blockSelector:i,unblockSelector:o,inlineStylesheet:s,maskInputOptions:a={},maskAttributeFn:c,maskInputFn:l,dataURLOptions:u={},inlineImages:d,recordCanvas:f,keepIframeSrcFn:p,newlyAddedElement:g=!1,rootId:m,maskTextClass:y,unmaskTextClass:v,maskTextSelector:w,unmaskTextSelector:S}=t,C=gXe(e,r,i,o),E=sXe(e);let T={};const x=e.attributes.length;for(let A=0;A<x;A++){const L=e.attributes[A];L.name&&!y0e(E,L.name,L.value)&&(T[L.name]=v0e(n,E,C1(L.name),L.value,e,c))}if(E==="link"&&s){const A=Array.from(n.styleSheets).find(U=>U.href===e.href);let L=null;A&&(L=AI(A)),L&&(T.rel=null,T.href=null,T.crossorigin=null,T._cssText=RI(L,A.href))}if(E==="style"&&e.sheet&&!(e.innerText||e.textContent||"").trim().length){const A=AI(e.sheet);A&&(T._cssText=RI(A,jP(n)))}if(E==="input"||E==="textarea"||E==="select"||E==="option"){const A=e,L=hH(A),U=II(A,Jj(E),L),I=A.checked;if(L!=="submit"&&L!=="button"&&U){const F=E1(A,y,w,v,S,FP({type:L,tagName:Jj(E),maskInputOptions:a}));T.value=uC({isMasked:F,element:A,value:U,maskInputFn:l})}
vendor: 7,087 bytes, line 1499
1499I&&(T.checked=I)}if(E==="option"&&(e.selected&&!a.select?T.selected=!0:delete T.selected),E==="canvas"&&f){if(e.__context==="2d")rXe(e)||(T.rr_dataURL=e.toDataURL(u.type,u.quality));else if(!("__context"in e)){const A=e.toDataURL(u.type,u.quality),L=n.createElement("canvas");L.width=e.width,L.height=e.height;const U=L.toDataURL(u.type,u.quality);A!==U&&(T.rr_dataURL=A)}}if(E==="img"&&d){h0||(h0=n.createElement("canvas"),WZ=h0.getContext("2d"));const A=e,L=A.currentSrc||A.getAttribute("src")||"<unknown-src>",U=A.crossOrigin,I=()=>{A.removeEventListener("load",I);try{h0.width=A.naturalWidth,h0.height=A.naturalHeight,WZ.drawImage(A,0,0),T.rr_dataURL=h0.toDataURL(u.type,u.quality)}catch(F){if(A.crossOrigin!=="anonymous"){A.crossOrigin="anonymous",A.complete&&A.naturalWidth!==0?I():A.addEventListener("load",I);return}else console.warn(`Cannot inline img src=${L}! Error: ${F}`)}A.crossOrigin==="anonymous"&&(U?T.crossOrigin=U:A.removeAttribute("crossorigin"))};A.complete&&A.naturalWidth!==0?I():A.addEventListener("load",I)}if((E==="audio"||E==="video")&&(T.rr_mediaState=e.paused?"paused":"played",T.rr_mediaCurrentTime=e.currentTime),g||(e.scrollLeft&&(T.rr_scrollLeft=e.scrollLeft),e.scrollTop&&(T.rr_scrollTop=e.scrollTop)),C){const{width:A,height:L}=e.getBoundingClientRect();T={class:T.class,rr_width:`${A}px`,rr_height:`${L}px`}}E==="iframe"&&!p(T.src)&&(!C&&!g0e(e)&&(T.rr_src=T.src),delete T.src);let O;try{customElements.get(E)&&(O=!0)}catch{}return{type:vo.Element,tagName:E,attributes:T,childNodes:[],isSVG:mXe(e)||void 0,needBlock:C,rootId:m,isCustom:O}}function Sr(e){return e==null?"":e.toLowerCase()}function EXe(e,t){if(t.comment&&e.type===vo.Comment)return!0;if(e.type===vo.Element){if(t.script&&(e.tagName==="script"||e.tagName==="link"&&(e.attributes.rel==="preload"||e.attributes.rel==="modulepreload")||e.tagName==="link"&&e.attributes.rel==="prefetch"&&typeof e.attributes.href=="string"&&h0e(e.attributes.href)==="js"))return!0;if(t.headFavicon&&(e.tagName==="link"&&e.attributes.rel==="shortcut icon"||e.tagName==="meta"&&(Sr(e.attributes.name).match(/^msapplication-tile(image|color)$/)||Sr(e.attributes.name)==="application-name"||Sr(e.attributes.rel)==="icon"||Sr(e.attributes.rel)==="apple-touch-icon"||Sr(e.attributes.rel)==="shortcut icon")))return!0;if(e.tagName==="meta"){if(t.headMetaDescKeywords&&Sr(e.attributes.name).match(/^description|keywords$/))return!0;if(t.headMetaSocial&&(Sr(e.attributes.property).match(/^(og|twitter|fb):/)||Sr(e.attributes.name).match(/^(og|twitter):/)||Sr(e.attributes.name)==="pinterest"))return!0;if(t.headMetaRobots&&(Sr(e.attributes.name)==="robots"||Sr(e.attributes.name)==="googlebot"||Sr(e.attributes.name)==="bingbot"))return!0;if(t.headMetaHttpEquiv&&e.attributes["http-equiv"]!==void 0)return!0;if(t.headMetaAuthorship&&(Sr(e.attributes.name)==="author"||Sr(e.attributes.name)==="generator"||Sr(e.attributes.name)==="framework"||Sr(e.attributes.name)==="publisher"||Sr(e.attributes.name)==="progid"||Sr(e.attributes.property).match(/^article:/)||Sr(e.attributes.property).match(/^product:/)))return!0;if(t.headMetaVerification&&(Sr(e.attributes.name)==="google-site-verification"||Sr(e.attributes.name)==="yandex-verification"||Sr(e.attributes.name)==="csrf-token"||Sr(e.attributes.name)==="p:domain_verify"||Sr(e.attributes.name)==="verify-v1"||Sr(e.attributes.name)==="verification"||Sr(e.attributes.name)==="shopify-checkout-api-token"))return!0}}return!1}function oy(e,t){const{doc:n,mirror:r,blockClass:i,blockSelector:o,unblockSelector:s,maskAllText:a,maskTextClass:c,unmaskTextClass:l,maskTextSelector:u,unmaskTextSelector:d,skipChild:f=!1,inlineStylesheet:p=!0,maskInputOptions:g={},maskAttributeFn:m,maskTextFn:y,maskInputFn:v,slimDOMOptions:w,dataURLOptions:S={},inlineImages:C=!1,recordCanvas:E=!1,onSerialize:T,onIframeLoad:x,iframeLoadTimeout:O=5e3,onStylesheetLoad:A,stylesheetLoadTimeout:L=5e3,keepIframeSrcFn:U=()=>!1,newlyAddedElement:I=!1}=t;let{preserveWhiteSpace:F=!0}=t;const P=wXe(e,{doc:n,mirror:r,blockClass:i,blockSelector:o,maskAllText:a,unblockSelector:s,maskTextClass:c,unmaskTextClass:l,maskTextSelector:u,unmaskTextSelector:d,inlineStylesheet:p,maskInputOptions:g,maskAttributeFn:m,maskTextFn:y,maskInputFn:v,dataURLOptions:S,inlineImages:C,recordCanvas:E,keepIframeSrcFn:U,newlyAddedElement:I});if(!P)return console.warn(e,"not serialized"),null;let W;r.hasNode(e)?W=r.getId(e):EXe(P,w)||!F&&P.type===vo.Text&&!P.isStyle&&!P.textContent.replace(/^\s+|\s+$/gm,"").length?W=dC:W=pH();const ee=Object.assign(P,{id:W});if(r.add(e,ee),W===dC)return null;T&&T(e);let Y=!f;if(ee.type===vo.Element){Y=Y&&!ee.needBlock,delete ee.needBlock;const X=e.shadowRoot;X&&XS(X)&&(ee.isShadowHost=!0)}if((ee.type===vo.Document||ee.type===vo.Element)&&Y){w.headWhitespace&&ee.type===vo.Element&&ee.tagName==="head"&&(F=!1);const X={doc:n,mirror:r,blockClass:i,blockSelector:o,maskAllText:a,unblockSelector:s,maskTextClass:c,unmaskTextClass:l,maskTextSelector:u,unmaskTextSelector:d,skipChild:f,inlineStylesheet:p,maskInputOptions:g,maskAttributeFn:m,maskTextFn:y,maskInputFn:v,slimDOMOptions:w,dataURLOptions:S,inlineImages:C,recordCanvas:E,preserveWhiteSpace:F,onSerialize:T,onIframeLoad:x,iframeLoadTimeout:O,onStylesheetLoad:A,stylesheetLoadTimeout:L,keepIframeSrcFn:U};for(const Z of Array.from(e.childNodes)){const G=oy(Z,X);G&&ee.childNodes.push(G)}if(YQe(e)&&e.shadowRoot)for(const Z of Array.from(e.shadowRoot.childNodes)){const G=oy(Z,X);G&&(XS(e.shadowRoot)&&(G.isShadow=!0),ee.childNodes.push(G))}}return e.parentNode&&QS(e.parentNode)&&XS(e.parentNode)&&(ee.isShadow=!0),ee.type===vo.Element&&ee.tagName==="iframe"&&yXe(e,()=>{const X=g0e(e);if(X&&x){const Z=oy(X,{doc:X,mirror:r,blockClass:i,blockSelector:o,unblockSelector:s,maskAllText:a,maskTextClass:c,unmaskTextClass:l,maskTextSelector:u,unmaskTextSelector:d,skipChild:!1,inlineStylesheet:p,maskInputOptions:g,maskAttributeFn:m,maskTextFn:y,maskInputFn:v,slimDOMOptions:w,dataURLOptions:S,inlineImages:C,recordCanvas:E,preserveWhiteSpace:F,onSerialize:T,onIframeLoad:x,iframeLoadTimeout:O,onStylesheetLoad:A,stylesheetLoadTimeout:L,keepIframeSrcFn:U});Z&&x(e,Z)}},O),ee.type===vo.Element&&ee.tagName==="link"&&typeof ee.attributes.rel=="string"&&(ee.attributes.rel==="stylesheet"||ee.attributes.rel==="preload"&&typeof ee.attributes.href=="string"&&h0e(ee.attributes.href)==="css")&&bXe(e,()=>{if(A){const X=oy(e,{doc:n,mirror:r,blockClass:i,blockSelector:o,unblockSelector:s,maskAllText:a,maskTextClass:c,unmaskTextClass:l,maskTextSelector:u,unmaskTextSelector:d,skipChild:!1,inlineStylesheet:p,maskInputOptions:g,maskAttributeFn:m,maskTextFn:y,maskInputFn:v,slimDOMOptions:w,dataURLOptions:S,inlineImages:C,recordCanvas:E,preserveWhiteSpace:F,onSerialize:T,onIframeLoad:x,iframeLoadTimeout:O,onStylesheetLoad:A,stylesheetLoadTimeout:L,keepIframeSrcFn:U});X&&A(e,X)}},L),ee}function TXe(e,t){const{mirror:n=new f0e,blockClass:r="rr-block",blockSelector:i=null,unblockSelector:o=null,maskAllText:s=!1,maskTextClass:a="rr-mask",unmaskTextClass:c=null,maskTextSelector:l=null,unmaskTextSelector:u=null,inlineStylesheet:d=!0,inl
1499ineImages:f=!1,recordCanvas:p=!1,maskAllInputs:g=!1,maskAttributeFn:m,maskTextFn:y,maskInputFn:v,slimDOM:w=!1,dataURLOptions:S,preserveWhiteSpace:C,onSerialize:E,onIframeLoad:T,iframeLoadTimeout:x,onStylesheetLoad:O,stylesheetLoadTimeout:A,keepIframeSrcFn:L=()=>!1}=t||{};return oy(e,{doc:e,mirror:n,blockClass:r,blockSelector:i,unblockSelector:o,maskAllText:s,maskTextClass:a,unmaskTextClass:c,maskTextSelector:l,unmaskTextSelector:u,skipChild:!1,inlineStylesheet:d,maskInputOptions:g===!0?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0}:g===!1?{}:g,maskAttributeFn:m,maskTextFn:y,maskInputFn:v,slimDOMOptions:w===!0||w==="all"?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaDescKeywords:w==="all",headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaAuthorship:!0,headMetaVerification:!0}:w===!1?{}:w,dataURLOptions:S,inlineImages:f,recordCanvas:p,preserveWhiteSpace:C,onSerialize:E,onIframeLoad:T,iframeLoadTimeout:x,onStylesheetLoad:O,stylesheetLoadTimeout:A,keepIframeSrcFn:L,newlyAddedElement:!1})}function ep(e){let t,n=e[0],r=1;for(;r<e.length;){const i=e[r],o=e[r+1];if(r+=2,(i==="optionalAccess"||i==="optionalCall")&&n==null)return;i==="access"||i==="optionalAccess"?(t=n,n=o(n)):(i==="call"||i==="optionalCall")&&(n=o((...s)=>n.call(t,...s)),t=void 0)}return n}function Hs(e,t,n=document){const r={capture:!0,passive:!0};return n.addEventListener(e,t,r),()=>n.removeEventListener(e,t,r)}const L0=`Please stop import mirror directly. Instead of that,\r
1500now you can use replayer.getMirror() to access the mirror instance of a replayer,\r
1501or you can use record.mirror to access the mirror instance during recording.`;let GZ={map:{},getId(){return console.error(L0),-1},getNode(){return console.error(L0),null},removeNodeFromMap(){console.error(L0)},has(){return console.error(L0),!1},reset(){console.error(L0)}};typeof window<"u"&&window.Proxy&&window.Reflect&&(GZ=new Proxy(GZ,{get(e,t,n){return t==="map"&&console.error(L0),Reflect.get(e,t,n)}}));function fC(e,t,n={}){let r=null,i=0;return function(...o){const s=Date.now();!i&&n.leading===!1&&(i=s);const a=t-(s-i),c=this;a<=0||a>t?(r&&(OXe(r),r=null),i=s,e.apply(c,o)):!r&&n.trailing!==!1&&(r=UP(()=>{i=n.leading===!1?0:Date.now(),r=null,e.apply(c,o)},a))}}function b0e(e,t,n,r,i=window){const o=i.Object.getOwnPropertyDescriptor(e,t);return i.Object.defineProperty(e,t,r?n:{set(s){UP(()=>{n.set.call(this,s)},0),o&&o.set&&o.set.call(this,s)}}),()=>b0e(e,t,o||{},!0)}function mH(e,t,n){try{if(!(t in e))return()=>{};const r=e[t],i=n(r);return typeof i=="function"&&(i.prototype=i.prototype||{},Object.defineProperties(i,{__rrweb_original__:{enumerable:!1,value:r}})),e[t]=i,()=>{e[t]=r}}catch{return()=>{}}}let PI=Date.now;/[1-9][0-9]{12}/.test(Date.now().toString())||(PI=()=>new Date().getTime());function w0e(e){const t=e.document;return{left:t.scrollingElement?t.scrollingElement.scrollLeft:e.pageXOffset!==void 0?e.pageXOffset:ep([t,"optionalAccess",n=>n.documentElement,"access",n=>n.scrollLeft])||ep([t,"optionalAccess",n=>n.body,"optionalAccess",n=>n.parentElement,"optionalAccess",n=>n.scrollLeft])||ep([t,"optionalAccess",n=>n.body,"optionalAccess",n=>n.scrollLeft])||0,top:t.scrollingElement?t.scrollingElement.scrollTop:e.pageYOffset!==void 0?e.pageYOffset:ep([t,"optionalAccess",n=>n.documentElement,"access",n=>n.scrollTop])||ep([t,"optionalAccess",n=>n.body,"optionalAccess",n=>n.parentElement,"optionalAccess",n=>n.scrollTop])||ep([t,"optionalAccess",n=>n.body,"optionalAccess",n=>n.scrollTop])||0}}function S0e(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight}function _0e(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth}function C0e(e){return e?e.nodeType===e.ELEMENT_NODE?e:e.parentElement:null}function Xa(e,t,n,r,i){if(!e)return!1;const o=C0e(e);if(!o)return!1;const s=iy(t,n);if(!i){const l=r&&o.matches(r);return s(o)&&!l}const a=wg(o,s);let c=-1;return a<0?!1:(r&&(c=wg(o,iy(null,r))),a>-1&&c<0?!0:a<c)}function kXe(e,t){return t.getId(e)!==-1}function t6(e,t){return t.getId(e)===dC}function E0e(e,t){if(QS(e))return!1;const n=t.getId(e);return t.has(n)?e.parentNode&&e.parentNode.nodeType===e.DOCUMENT_NODE?!1:e.parentNode?E0e(e.parentNode,t):!0:!0}function e7(e){return!!e.changedTouches}function xXe(e=window){"NodeList"in e&&!e.NodeList.prototype.forEach&&(e.NodeList.prototype.forEach=Array.prototype.forEach),"DOMTokenList"in e&&!e.DOMTokenList.prototype.forEach&&(e.DOMTokenList.prototype.forEach=Array.prototype.forEach),Node.prototype.contains||(Node.prototype.contains=(...t)=>{let n=t[0];if(!(0 in t))throw new TypeError("1 argument is required");do if(this===n)return!0;while(n=n&&n.parentNode);return!1})}function T0e(e,t){return!!(e.nodeName==="IFRAME"&&t.getMeta(e))}function k0e(e,t){return!!(e.nodeName==="LINK"&&e.nodeType===e.ELEMENT_NODE&&e.getAttribute&&e.getAttribute("rel")==="stylesheet"&&t.getMeta(e))}function t7(e){return!!ep([e,"optionalAccess",t=>t.shadowRoot])}class AXe{constructor(){this.id=1,this.styleIDMap=new WeakMap,this.idStyleMap=new Map}getId(t){return fKe(this.styleIDMap.get(t),()=>-1)}has(t){return this.styleIDMap.has(t)}add(t,n){if(this.has(t))return this.getId(t);let r;return n===void 0?r=this.id++:r=n,this.styleIDMap.set(t,r),this.idStyleMap.set(r,t),r}getStyle(t){return this.idStyleMap.get(t)||null}reset(){this.styleIDMap=new WeakMap,this.idStyleMap=new Map,this.id=1}generateId(){return this.id++}}function x0e(e){let t=null;return ep([e,"access",n=>n.getRootNode,"optionalCall",n=>n(),"optionalAccess",n=>n.nodeType])===Node.DOCUMENT_FRAGMENT_NODE&&e.getRootNode().host&&(t=e.getRootNode().host),t}function IXe(e){let t=e,n;for(;n=x0e(t);)t=n;return t}function RXe(e){const t=e.ownerDocument;if(!t)return!1;const n=IXe(e);return t.contains(n)}function A0e(e){const t=e.ownerDocument;return t?t.contains(e)||RXe(e):!1}const KZ={};function gH(e){const t=KZ[e];if(t)return t;const n=window.document;let r=window[e];if(n&&typeof n.createElement=="function")try{const i=n.createElement("iframe");i.hidden=!0,n.head.appendChild(i);const o=i.contentWindow;o&&o[e]&&(r=o[e]),n.head.removeChild(i)}catch{}return KZ[e]=r.bind(window)}function PXe(...e){return gH("requestAnimationFrame")(...e)}
1501function UP(...e){return gH("setTimeout")(...e)}function OXe(...e){return gH("clearTimeout")(...e)}var dn=(e=>(e[e.DomContentLoaded=0]="DomContentLoaded",e[e.Load=1]="Load",e[e.FullSnapshot=2]="FullSnapshot",e[e.IncrementalSnapshot=3]="IncrementalSnapshot",e[e.Meta=4]="Meta",e[e.Custom=5]="Custom",e[e.Plugin=6]="Plugin",e))(dn||{}),Vt=(e=>(e[e.Mutation=0]="Mutation",e[e.MouseMove=1]="MouseMove",e[e.MouseInteraction=2]="MouseInteraction",e[e.Scroll=3]="Scroll",e[e.ViewportResize=4]="ViewportResize",e[e.Input=5]="Input",e[e.TouchMove=6]="TouchMove",e[e.MediaInteraction=7]="MediaInteraction",e[e.StyleSheetRule=8]="StyleSheetRule",e[e.CanvasMutation=9]="CanvasMutation",e[e.Font=10]="Font",e[e.Log=11]="Log",e[e.Drag=12]="Drag",e[e.StyleDeclaration=13]="StyleDeclaration",e[e.Selection=14]="Selection",e[e.AdoptedStyleSheet=15]="AdoptedStyleSheet",e[e.CustomElement=16]="CustomElement",e))(Vt||{}),Ns=(e=>(e[e.MouseUp=0]="MouseUp",e[e.MouseDown=1]="MouseDown",e[e.Click=2]="Click",e[e.ContextMenu=3]="ContextMenu",e[e.DblClick=4]="DblClick",e[e.Focus=5]="Focus",e[e.Blur=6]="Blur",e[e.TouchStart=7]="TouchStart",e[e.TouchMove_Departed=8]="TouchMove_Departed",e[e.TouchEnd=9]="TouchEnd",e[e.TouchCancel=10]="TouchCancel",e))(Ns||{}),of=(e=>(e[e.Mouse=0]="Mouse",e[e.Pen=1]="Pen",e[e.Touch=2]="Touch",e))(of||{}),YZ;(function(e){e[e.Document=0]="Document",e[e.DocumentType=1]="DocumentType",e[e.Element=2]="Element",e[e.Text=3]="Text",e[e.CDATA=4]="CDATA",e[e.Comment=5]="Comment"})(YZ||(YZ={}));var QZ;(function(e){e[e.PLACEHOLDER=0]="PLACEHOLDER",e[e.ELEMENT_NODE=1]="ELEMENT_NODE",e[e.ATTRIBUTE_NODE=2]="ATTRIBUTE_NODE",e[e.TEXT_NODE=3]="TEXT_NODE",e[e.CDATA_SECTION_NODE=4]="CDATA_SECTION_NODE",e[e.ENTITY_REFERENCE_NODE=5]="ENTITY_REFERENCE_NODE",e[e.ENTITY_NODE=6]="ENTITY_NODE",e[e.PROCESSING_INSTRUCTION_NODE=7]="PROCESSING_INSTRUCTION_NODE",e[e.COMMENT_NODE=8]="COMMENT_NODE",e[e.DOCUMENT_NODE=9]="DOCUMENT_NODE",e[e.DOCUMENT_TYPE_NODE=10]="DOCUMENT_TYPE_NODE",e[e.DOCUMENT_FRAGMENT_NODE=11]="DOCUMENT_FRAGMENT_NODE"})(QZ||(QZ={}));function vH(e){try{return e.contentDocument}catch{}}function NXe(e){try{return e.contentWindow}catch{}}function MXe(e){let t,n=e[0],r=1;for(;r<e.length;){const i=e[r],o=e[r+1];if(r+=2,(i==="optionalAccess"||i==="optionalCall")&&n==null)return;i==="access"||i==="optionalAccess"?(t=n,n=o(n)):(i==="call"||i==="optionalCall")&&(n=o((...s)=>n.call(t,...s)),t=void 0)}return n}function XZ(e){return"__ln"in e}class DXe{constructor(){this.length=0,this.head=null,this.tail=null}get(t){if(t>=this.length)throw new Error("Position outside of list range");let n=this.head;for(let r=0;r<t;r++)n=MXe([n,"optionalAccess",i=>i.next])||null;return n}addNode(t){const n={value:t,previous:null,next:null};if(t.__ln=n,t.previousSibling&&XZ(t.previousSibling)){const r=t.previousSibling.__ln.next;n.next=r,n.previous=t.previousSibling.__ln,t.previousSibling.__ln.next=n,r&&(r.previous=n)}else if(t.nextSibling&&XZ(t.nextSibling)&&t.nextSibling.__ln.previous){const r=t.nextSibling.__ln.previous;n.previous=r,n.next=t.nextSibling.__ln,t.nextSibling.__ln.previous=n,r&&(r.next=n)}else this.head&&(this.head.previous=n),n.next=this.head,this.head=n;n.next===null&&(this.tail=n),this.length++}removeNode(t){const n=t.__ln;this.head&&(n.previous?(n.previous.next=n.next,n.next?n.next.previous=n.previous:this.tail=n.previous):(this.head=n.next,this.head?this.head.previous=null:this.tail=null),t.__ln&&delete t.__ln,this.length--)}}const JZ=(e,t)=>`${e}@${t}`;class LXe{constructor(){this.frozen=!1,this.locked=!1,this.texts=[],this.attributes=[],this.attributeMap=new WeakMap,this.removes=[],this.mapRemoves=[],this.movedMap={},this.addedSet=new Set,this.movedSet=new Set,this.droppedSet=new Set,this.processMutations=t=>{t.forEach(this.processMutation),this.emit()},this.emit=()=>{if(this.frozen||this.locked)return;const t=[],n=new Set,r=new DXe,i=c=>{let l=c,u=dC;for(;u===dC;)l=l&&l.nextSibling,u=l&&this.mirror.getId(l);return u},o=c=>{if(!c.parentNode||!A0e(c))return;const l=QS(c.parentNode)?this.mirror.getId(x0e(c)):this.mirror.getId(c.parentNode),u=i(c);if(l===-1||u===-1)return r.addNode(c);const d=oy(c,{doc:this.doc,mirror:this.mirror,blockClass:this.blockClass,blockSelector:this.blockSelector,maskAllText:this.maskAllText,unblockSelector:this.unblockSelector,maskTextClass:this.maskTextClass,unmaskTextClass:this.unmaskTextClass,maskTextSelector:this.maskTextSelector,unmaskTextSelector:this.unmaskTextSelector,skipChild:!0,newlyAddedElement:!0,inlineStylesheet:this.inl
vendor: 4,546 bytes, line 1501
1501ineStylesheet,maskInputOptions:this.maskInputOptions,maskAttributeFn:this.maskAttributeFn,maskTextFn:this.maskTextFn,maskInputFn:this.maskInputFn,slimDOMOptions:this.slimDOMOptions,dataURLOptions:this.dataURLOptions,recordCanvas:this.recordCanvas,inlineImages:this.inlineImages,onSerialize:f=>{T0e(f,this.mirror)&&!Xa(f,this.blockClass,this.blockSelector,this.unblockSelector,!1)&&this.iframeManager.addIframe(f),k0e(f,this.mirror)&&this.stylesheetManager.trackLinkElement(f),t7(c)&&this.shadowDomManager.addShadowRoot(c.shadowRoot,this.doc)},onIframeLoad:(f,p)=>{Xa(f,this.blockClass,this.blockSelector,this.unblockSelector,!1)||(this.iframeManager.attachIframe(f,p),f.contentWindow&&this.canvasManager.addWindow(f.contentWindow),this.shadowDomManager.observeAttachShadow(f))},onStylesheetLoad:(f,p)=>{this.stylesheetManager.attachLinkElement(f,p)}});d&&(t.push({parentId:l,nextId:u,node:d}),n.add(d.id))};for(;this.mapRemoves.length;)this.mirror.removeNodeFromMap(this.mapRemoves.shift());for(const c of this.movedSet)ZZ(this.removes,c,this.mirror)&&!this.movedSet.has(c.parentNode)||o(c);for(const c of this.addedSet)!eee(this.droppedSet,c)&&!ZZ(this.removes,c,this.mirror)||eee(this.movedSet,c)?o(c):this.droppedSet.add(c);let s=null;for(;r.length;){let c=null;if(s){const l=this.mirror.getId(s.value.parentNode),u=i(s.value);l!==-1&&u!==-1&&(c=s)}if(!c){let l=r.tail;for(;l;){const u=l;if(l=l.previous,u){const d=this.mirror.getId(u.value.parentNode);if(i(u.value)===-1)continue;if(d!==-1){c=u;break}else{const p=u.value;if(p.parentNode&&p.parentNode.nodeType===Node.DOCUMENT_FRAGMENT_NODE){const g=p.parentNode.host;if(this.mirror.getId(g)!==-1){c=u;break}}}}}}if(!c){for(;r.head;)r.removeNode(r.head.value);break}s=c.previous,r.removeNode(c.value),o(c.value)}const a={texts:this.texts.map(c=>({id:this.mirror.getId(c.node),value:c.value})).filter(c=>!n.has(c.id)).filter(c=>this.mirror.has(c.id)),attributes:this.attributes.map(c=>{const{attributes:l}=c;if(typeof l.style=="string"){const u=JSON.stringify(c.styleDiff),d=JSON.stringify(c._unchangedStyles);u.length<l.style.length&&(u+d).split("var(").length===l.style.split("var(").length&&(l.style=c.styleDiff)}return{id:this.mirror.getId(c.node),attributes:l}}).filter(c=>!n.has(c.id)).filter(c=>this.mirror.has(c.id)),removes:this.removes,adds:t};!a.texts.length&&!a.attributes.length&&!a.removes.length&&!a.adds.length||(this.texts=[],this.attributes=[],this.attributeMap=new WeakMap,this.removes=[],this.addedSet=new Set,this.movedSet=new Set,this.droppedSet=new Set,this.movedMap={},this.mutationCb(a))},this.processMutation=t=>{if(!t6(t.target,this.mirror))switch(t.type){case"characterData":{const n=t.target.textContent;!Xa(t.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)&&n!==t.oldValue&&this.texts.push({value:E1(t.target,this.maskTextClass,this.maskTextSelector,this.unmaskTextClass,this.unmaskTextSelector,this.maskAllText)&&n?this.maskTextFn?this.maskTextFn(n,C0e(t.target)):n.replace(/[\S]/g,"*"):n,node:t.target});break}case"attributes":{const n=t.target;let r=t.attributeName,i=t.target.getAttribute(r);if(r==="value"){const s=hH(n),a=n.tagName;i=II(n,a,s);const c=FP({maskInputOptions:this.maskInputOptions,tagName:a,type:s}),l=E1(t.target,this.maskTextClass,this.maskTextSelector,this.unmaskTextClass,this.unmaskTextSelector,c);i=uC({isMasked:l,element:n,value:i,maskInputFn:this.maskInputFn})}if(Xa(t.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||i===t.oldValue)return;let o=this.attributeMap.get(t.target);if(n.tagName==="IFRAME"&&r==="src"&&!this.keepIframeSrcFn(i))if(!vH(n))r="rr_src";else return;if(o||(o={node:t.target,attributes:{},styleDiff:{},_unchangedStyles:{}},this.attributes.push(o),this.attributeMap.set(t.target,o)),r==="type"&&n.tagName==="INPUT"&&(t.oldValue||"").toLowerCase()==="password"&&n.setAttribute("data-rr-is-password","true"),!y0e(n.tagName,r)&&(o.attributes[r]=v0e(this.doc,C1(n.tagName),C1(r),i,n,this.maskAttributeFn),r==="style")){if(!this.unattachedDoc)try{this.unattachedDoc=document.implementation.createHTMLDocument()}catch{this.unattachedDoc=this.doc}const s=this.unattachedDoc.createElement("span");t.oldValue&&s.setAttribute("style",t.oldValue);for(const a of Array.from(n.style)){const c=n.style.getPropertyValue(a),l=n.style.getPropertyPriority(a);c!==s.style.getPropertyValue(a)||l!==s.style.getPropertyPriority(a)?l===""?o.styleDiff[a]=c:o.styleDiff[a]=[c,l]:o._unchangedStyles[a]=[c,l]}for(const a of Array.from(s.style))n.style.getPropertyValue(a)===""&&(o.styleDiff[a]=!1)}break}
1501case"childList":{if(Xa(t.target,this.blockClass,this.blockSelector,this.unblockSelector,!0))return;t.addedNodes.forEach(n=>this.genAdds(n,t.target)),t.removedNodes.forEach(n=>{const r=this.mirror.getId(n),i=QS(t.target)?this.mirror.getId(t.target.host):this.mirror.getId(t.target);Xa(t.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||t6(n,this.mirror)||!kXe(n,this.mirror)||(this.addedSet.has(n)?(n7(this.addedSet,n),this.droppedSet.add(n)):this.addedSet.has(t.target)&&r===-1||E0e(t.target,this.mirror)||(this.movedSet.has(n)&&this.movedMap[JZ(r,i)]?n7(this.movedSet,n):this.removes.push({parentId:i,id:r,isShadow:QS(t.target)&&XS(t.target)?!0:void 0})),this.mapRemoves.push(n))});break}}},this.genAdds=(t,n)=>{if(!this.processedNodeManager.inOtherBuffer(t,this)&&!(this.addedSet.has(t)||this.movedSet.has(t))){if(this.mirror.hasNode(t)){if(t6(t,this.mirror))return;this.movedSet.add(t);let r=null;n&&this.mirror.hasNode(n)&&(r=this.mirror.getId(n)),r&&r!==-1&&(this.movedMap[JZ(this.mirror.getId(t),r)]=!0)}else this.addedSet.add(t),this.droppedSet.delete(t);Xa(t,this.blockClass,this.blockSelector,this.unblockSelector,!1)||(t.childNodes.forEach(r=>this.genAdds(r)),t7(t)&&t.shadowRoot.childNodes.forEach(r=>{this.processedNodeManager.add(r,this),this.genAdds(r,t)}))}}}init(t){["mutationCb","blockClass","blockSelector","unblockSelector","maskAllText","maskTextClass","unmaskTextClass","maskTextSelector","unmaskTextSelector","inlineStylesheet","maskInputOptions","maskAttributeFn","maskTextFn","maskInputFn","keepIframeSrcFn","recordCanvas","inlineImages","slimDOMOptions","dataURLOptions","doc","mirror","iframeManager","stylesheetManager","shadowDomManager","canvasManager","processedNodeManager"].forEach(n=>{this[n]=t[n]})}freeze(){this.frozen=!0,this.canvasManager.freeze()}unfreeze(){this.frozen=!1,this.canvasManager.unfreeze(),this.emit()}isFrozen(){return this.frozen}lock(){this.locked=!0,this.canvasManager.lock()}unlock(){this.locked=!1,this.canvasManager.unlock(),this.emit()}reset(){this.shadowDomManager.reset(),this.canvasManager.reset()}}function n7(e,t){e.delete(t),t.childNodes.forEach(n=>n7(e,n))}function ZZ(e,t,n){return e.length===0?!1:FXe(e,t,n)}function FXe(e,t,n){let r=t.parentNode;for(;r;){const i=n.getId(r);if(e.some(o=>o.id===i))return!0;r=r.parentNode}return!1}function eee(e,t){return e.size===0?!1:I0e(e,t)}function I0e(e,t){const{parentNode:n}=t;return n?e.has(n)?!0:I0e(e,n):!1}let JS;function jXe(e){JS=e}function UXe(){JS=void 0}const In=e=>JS?((...n)=>{try{return e(...n)}catch(r){if(JS&&JS(r)===!0)return()=>{};throw r}}):e;function Dl(e){let t,n=e[0],r=1;for(;r<e.length;){const i=e[r],o=e[r+1];if(r+=2,(i==="optionalAccess"||i==="optionalCall")&&n==null)return;i==="access"||i==="optionalAccess"?(t=n,n=o(n)):(i==="call"||i==="optionalCall")&&(n=o((...s)=>n.call(t,...s)),t=void 0)}return n}const sy=[];function PE(e){try{if("composedPath"in e){const t=e.composedPath();if(t.length)return t[0]}else if("path"in e&&e.path.length)return e.path[0]}catch{}return e&&e.target}function R0e(e,t){const n=new LXe;sy.push(n),n.init(e);let r=window.MutationObserver||window.__rrMutationObserver;const i=Dl([window,"optionalAccess",s=>s.Zone,"optionalAccess",s=>s.__symbol__,"optionalCall",s=>s("MutationObserver")]);i&&window[i]&&(r=window[i]);const o=new r(In(s=>{e.onMutation&&e.onMutation(s)===!1||n.processMutations.bind(n)(s)}));return o.observe(t,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),o}function BXe({mousemoveCb:e,sampling:t,doc:n,mirror:r}){if(t.mousemove===!1)return()=>{};const i=typeof t.mousemove=="number"?t.mousemove:50,o=typeof t.mousemoveCallback=="number"?t.mousemoveCallback:500;let s=[],a;const c=fC(In(d=>{const f=Date.now()-a;e(s.map(p=>(p.timeOffset-=f,p)),d),s=[],a=null}),o),l=In(fC(In(d=>{const f=PE(d),{clientX:p,clientY:g}=e7(d)?d.changedTouches[0]:d;a||(a=PI()),s.push({x:p,y:g,id:r.getId(f),timeOffset:PI()-a}),c(typeof DragEvent<"u"&&d instanceof DragEvent?Vt.Drag:d instanceof MouseEvent?Vt.MouseMove:Vt.TouchMove)}),i,{trailing:!1})),u=[Hs("mousemove",l,n),Hs("touchmove",l,n),Hs("drag",l,n)];return In(()=>{u.forEach(d=>d())})}function $Xe({mouseInteractionCb:e,doc:t,mirror:n,blockClass:r,blockSelector:i,unblockSelector:o,sampling:s}){if(s.mouseInteraction===!1)return()=>{};const a=s.mouseInteraction===!0||s.mouseInteraction===void 0?{}:s.mouseInteraction,c=[];let l=null;const u=d=>f=>{const p=PE(f);
1501if(Xa(p,r,i,o,!0))return;let g=null,m=d;if("pointerType"in f){switch(f.pointerType){case"mouse":g=of.Mouse;break;case"touch":g=of.Touch;break;case"pen":g=of.Pen;break}g===of.Touch?Ns[d]===Ns.MouseDown?m="TouchStart":Ns[d]===Ns.MouseUp&&(m="TouchEnd"):of.Pen}else e7(f)&&(g=of.Touch);g!==null?(l=g,(m.startsWith("Touch")&&g===of.Touch||m.startsWith("Mouse")&&g===of.Mouse)&&(g=null)):Ns[d]===Ns.Click&&(g=l,l=null);const y=e7(f)?f.changedTouches[0]:f;if(!y)return;const v=n.getId(p),{clientX:w,clientY:S}=y;In(e)({type:Ns[m],id:v,x:w,y:S,...g!==null&&{pointerType:g}})};return Object.keys(Ns).filter(d=>Number.isNaN(Number(d))&&!d.endsWith("_Departed")&&a[d]!==!1).forEach(d=>{let f=C1(d);const p=u(d);if(window.PointerEvent)switch(Ns[d]){case Ns.MouseDown:case Ns.MouseUp:f=f.replace("mouse","pointer");break;case Ns.TouchStart:case Ns.TouchEnd:return}c.push(Hs(f,p,t))}),In(()=>{c.forEach(d=>d())})}function P0e({scrollCb:e,doc:t,mirror:n,blockClass:r,blockSelector:i,unblockSelector:o,sampling:s}){const a=In(fC(In(c=>{const l=PE(c);if(!l||Xa(l,r,i,o,!0))return;const u=n.getId(l);if(l===t&&t.defaultView){const d=w0e(t.defaultView);e({id:u,x:d.left,y:d.top})}else e({id:u,x:l.scrollLeft,y:l.scrollTop})}),s.scroll||100));return Hs("scroll",a,t)}function HXe({viewportResizeCb:e},{win:t}){let n=-1,r=-1;const i=In(fC(In(()=>{const o=S0e(),s=_0e();(n!==o||r!==s)&&(e({width:Number(s),height:Number(o)}),n=o,r=s)}),200));return Hs("resize",i,t)}const zXe=["INPUT","TEXTAREA","SELECT"],tee=new WeakMap;function VXe({inputCb:e,doc:t,mirror:n,blockClass:r,blockSelector:i,unblockSelector:o,ignoreClass:s,ignoreSelector:a,maskInputOptions:c,maskInputFn:l,sampling:u,userTriggeredOnInput:d,maskTextClass:f,unmaskTextClass:p,maskTextSelector:g,unmaskTextSelector:m}){function y(x){let O=PE(x);const A=x.isTrusted,L=O&&Jj(O.tagName);if(L==="OPTION"&&(O=O.parentElement),!O||!L||zXe.indexOf(L)<0||Xa(O,r,i,o,!0))return;const U=O;if(U.classList.contains(s)||a&&U.matches(a))return;const I=hH(O);let F=II(U,L,I),P=!1;const W=FP({maskInputOptions:c,tagName:L,type:I}),ee=E1(O,f,g,p,m,W);(I==="radio"||I==="checkbox")&&(P=O.checked),F=uC({isMasked:ee,element:O,value:F,maskInputFn:l}),v(O,d?{text:F,isChecked:P,userTriggered:A}:{text:F,isChecked:P});const Y=O.name;I==="radio"&&Y&&P&&t.querySelectorAll(`input[type="radio"][name="${Y}"]`).forEach(X=>{if(X!==O){const Z=uC({isMasked:ee,element:X,value:II(X,L,I),maskInputFn:l});v(X,d?{text:Z,isChecked:!P,userTriggered:!1}:{text:Z,isChecked:!P})}})}function v(x,O){const A=tee.get(x);if(!A||A.text!==O.text||A.isChecked!==O.isChecked){tee.set(x,O);const L=n.getId(x);In(e)({...O,id:L})}}
vendor: 4,160 bytes, line 1501
1501const S=(u.input==="last"?["change"]:["input","change"]).map(x=>Hs(x,In(y),t)),C=t.defaultView;if(!C)return()=>{S.forEach(x=>x())};const E=C.Object.getOwnPropertyDescriptor(C.HTMLInputElement.prototype,"value"),T=[[C.HTMLInputElement.prototype,"value"],[C.HTMLInputElement.prototype,"checked"],[C.HTMLSelectElement.prototype,"value"],[C.HTMLTextAreaElement.prototype,"value"],[C.HTMLSelectElement.prototype,"selectedIndex"],[C.HTMLOptionElement.prototype,"selected"]];return E&&E.set&&S.push(...T.map(x=>b0e(x[0],x[1],{set(){In(y)({target:this,isTrusted:!1})}},!1,C))),In(()=>{S.forEach(x=>x())})}function OI(e){const t=[];function n(r,i){if(MT("CSSGroupingRule")&&r.parentRule instanceof CSSGroupingRule||MT("CSSMediaRule")&&r.parentRule instanceof CSSMediaRule||MT("CSSSupportsRule")&&r.parentRule instanceof CSSSupportsRule||MT("CSSConditionRule")&&r.parentRule instanceof CSSConditionRule){const s=Array.from(r.parentRule.cssRules).indexOf(r);i.unshift(s)}else if(r.parentStyleSheet){const s=Array.from(r.parentStyleSheet.cssRules).indexOf(r);i.unshift(s)}return i}return n(e,t)}function tp(e,t,n){let r,i;return e?(e.ownerNode?r=t.getId(e.ownerNode):i=n.getId(e),{styleId:i,id:r}):{}}function WXe({styleSheetRuleCb:e,mirror:t,stylesheetManager:n},{win:r}){if(!r.CSSStyleSheet||!r.CSSStyleSheet.prototype)return()=>{};const i=r.CSSStyleSheet.prototype.insertRule;r.CSSStyleSheet.prototype.insertRule=new Proxy(i,{apply:In((u,d,f)=>{const[p,g]=f,{id:m,styleId:y}=tp(d,t,n.styleMirror);return(m&&m!==-1||y&&y!==-1)&&e({id:m,styleId:y,adds:[{rule:p,index:g}]}),u.apply(d,f)})});const o=r.CSSStyleSheet.prototype.deleteRule;r.CSSStyleSheet.prototype.deleteRule=new Proxy(o,{apply:In((u,d,f)=>{const[p]=f,{id:g,styleId:m}=tp(d,t,n.styleMirror);return(g&&g!==-1||m&&m!==-1)&&e({id:g,styleId:m,removes:[{index:p}]}),u.apply(d,f)})});let s;r.CSSStyleSheet.prototype.replace&&(s=r.CSSStyleSheet.prototype.replace,r.CSSStyleSheet.prototype.replace=new Proxy(s,{apply:In((u,d,f)=>{const[p]=f,{id:g,styleId:m}=tp(d,t,n.styleMirror);return(g&&g!==-1||m&&m!==-1)&&e({id:g,styleId:m,replace:p}),u.apply(d,f)})}));let a;r.CSSStyleSheet.prototype.replaceSync&&(a=r.CSSStyleSheet.prototype.replaceSync,r.CSSStyleSheet.prototype.replaceSync=new Proxy(a,{apply:In((u,d,f)=>{const[p]=f,{id:g,styleId:m}=tp(d,t,n.styleMirror);return(g&&g!==-1||m&&m!==-1)&&e({id:g,styleId:m,replaceSync:p}),u.apply(d,f)})}));const c={};DT("CSSGroupingRule")?c.CSSGroupingRule=r.CSSGroupingRule:(DT("CSSMediaRule")&&(c.CSSMediaRule=r.CSSMediaRule),DT("CSSConditionRule")&&(c.CSSConditionRule=r.CSSConditionRule),DT("CSSSupportsRule")&&(c.CSSSupportsRule=r.CSSSupportsRule));const l={};return Object.entries(c).forEach(([u,d])=>{l[u]={insertRule:d.prototype.insertRule,deleteRule:d.prototype.deleteRule},d.prototype.insertRule=new Proxy(l[u].insertRule,{apply:In((f,p,g)=>{const[m,y]=g,{id:v,styleId:w}=tp(p.parentStyleSheet,t,n.styleMirror);return(v&&v!==-1||w&&w!==-1)&&e({id:v,styleId:w,adds:[{rule:m,index:[...OI(p),y||0]}]}),f.apply(p,g)})}),d.prototype.deleteRule=new Proxy(l[u].deleteRule,{apply:In((f,p,g)=>{const[m]=g,{id:y,styleId:v}=tp(p.parentStyleSheet,t,n.styleMirror);return(y&&y!==-1||v&&v!==-1)&&e({id:y,styleId:v,removes:[{index:[...OI(p),m]}]}),f.apply(p,g)})})}),In(()=>{r.CSSStyleSheet.prototype.insertRule=i,r.CSSStyleSheet.prototype.deleteRule=o,s&&(r.CSSStyleSheet.prototype.replace=s),a&&(r.CSSStyleSheet.prototype.replaceSync=a),Object.entries(c).forEach(([u,d])=>{d.prototype.insertRule=l[u].insertRule,d.prototype.deleteRule=l[u].deleteRule})})}function O0e({mirror:e,stylesheetManager:t},n){let r=null;n.nodeName==="#document"?r=e.getId(n):r=e.getId(n.host);const i=n.nodeName==="#document"?Dl([n,"access",s=>s.defaultView,"optionalAccess",s=>s.Document]):Dl([n,"access",s=>s.ownerDocument,"optionalAccess",s=>s.defaultView,"optionalAccess",s=>s.ShadowRoot]),o=Dl([i,"optionalAccess",s=>s.prototype])?Object.getOwnPropertyDescriptor(Dl([i,"optionalAccess",s=>s.prototype]),"adoptedStyleSheets"):void 0;return r===null||r===-1||!i||!o?()=>{}:(Object.defineProperty(n,"adoptedStyleSheets",{configurable:o.configurable,enumerable:o.enumerable,get(){return Dl([o,"access",
1501s=>s.get,"optionalAccess",s=>s.call,"call",s=>s(this)])},set(s){const a=Dl([o,"access",c=>c.set,"optionalAccess",c=>c.call,"call",c=>c(this,s)]);if(r!==null&&r!==-1)try{t.adoptStyleSheets(s,r)}catch{}return a}}),In(()=>{Object.defineProperty(n,"adoptedStyleSheets",{configurable:o.configurable,enumerable:o.enumerable,get:o.get,set:o.set})}))}function qXe({styleDeclarationCb:e,mirror:t,ignoreCSSAttributes:n,stylesheetManager:r},{win:i}){const o=i.CSSStyleDeclaration.prototype.setProperty;i.CSSStyleDeclaration.prototype.setProperty=new Proxy(o,{apply:In((a,c,l)=>{const[u,d,f]=l;if(n.has(u))return o.apply(c,[u,d,f]);const{id:p,styleId:g}=tp(Dl([c,"access",m=>m.parentRule,"optionalAccess",m=>m.parentStyleSheet]),t,r.styleMirror);return(p&&p!==-1||g&&g!==-1)&&e({id:p,styleId:g,set:{property:u,value:d,priority:f},index:OI(c.parentRule)}),a.apply(c,l)})});const s=i.CSSStyleDeclaration.prototype.removeProperty;return i.CSSStyleDeclaration.prototype.removeProperty=new Proxy(s,{apply:In((a,c,l)=>{const[u]=l;if(n.has(u))return s.apply(c,[u]);const{id:d,styleId:f}=tp(Dl([c,"access",p=>p.parentRule,"optionalAccess",p=>p.parentStyleSheet]),t,r.styleMirror);return(d&&d!==-1||f&&f!==-1)&&e({id:d,styleId:f,remove:{property:u},index:OI(c.parentRule)}),a.apply(c,l)})}),In(()=>{i.CSSStyleDeclaration.prototype.setProperty=o,i.CSSStyleDeclaration.prototype.removeProperty=s})}function GXe({mediaInteractionCb:e,blockClass:t,blockSelector:n,unblockSelector:r,mirror:i,sampling:o,doc:s}){const a=In(l=>fC(In(u=>{const d=PE(u);if(!d||Xa(d,t,n,r,!0))return;const{currentTime:f,volume:p,muted:g,playbackRate:m}=d;e({type:l,id:i.getId(d),currentTime:f,volume:p,muted:g,playbackRate:m})}),o.media||500)),c=[Hs("play",a(0),s),Hs("pause",a(1),s),Hs("seeked",a(2),s),Hs("volumechange",a(3),s),Hs("ratechange",a(4),s)];return In(()=>{c.forEach(l=>l())})}function KXe({fontCb:e,doc:t}){const n=t.defaultView;if(!n)return()=>{};const r=[],i=new WeakMap,o=n.FontFace;n.FontFace=function(c,l,u){const d=new o(c,l,u);return i.set(d,{family:c,buffer:typeof l!="string",descriptors:u,fontSource:typeof l=="string"?l:JSON.stringify(Array.from(new Uint8Array(l)))}),d};const s=mH(t.fonts,"add",function(a){return function(c){return UP(In(()=>{const l=i.get(c);l&&(e(l),i.delete(c))}),0),a.apply(this,[c])}});return r.push(()=>{n.FontFace=o}),r.push(s),In(()=>{r.forEach(a=>a())})}function YXe(e){const{doc:t,mirror:n,blockClass:r,blockSelector:i,unblockSelector:o,selectionCb:s}=e;let a=!0;const c=In(()=>{const l=t.getSelection();if(!l||a&&Dl([l,"optionalAccess",f=>f.isCollapsed]))return;a=l.isCollapsed||!1;const u=[],d=l.rangeCount||0;for(let f=0;f<d;f++){const p=l.getRangeAt(f),{startContainer:g,startOffset:m,endContainer:y,endOffset:v}=p;Xa(g,r,i,o,!0)||Xa(y,r,i,o,!0)||u.push({start:n.getId(g),startOffset:m,end:n.getId(y),endOffset:v})}s({ranges:u})});return c(),Hs("selectionchange",c)}function QXe({doc:e,customElementCb:t}){const n=e.defaultView;return!n||!n.customElements?()=>{}:mH(n.customElements,"define",function(i){return function(o,s,a){try{t({define:{name:o}})}catch{}return i.apply(this,[o,s,a])}})}function XXe(e,t={}){const n=e.doc.defaultView;if(!n)return()=>{};let r;e.recordDOM&&(r=R0e(e,e.doc));const i=BXe(e),o=$Xe(e),s=P0e(e),a=HXe(e,{win:n}),c=VXe(e),l=GXe(e);let u=()=>{},d=()=>{},f=()=>{},p=()=>{};e.recordDOM&&(u=WXe(e,{win:n}),d=O0e(e,e.doc),f=qXe(e,{win:n}),e.collectFonts&&(p=KXe(e)));const g=YXe(e),m=QXe(e),y=[];for(const v of e.plugins)y.push(v.observer(v.callback,n,v.options));return In(()=>{sy.forEach(v=>v.reset()),Dl([r,"optionalAccess",v=>v.disconnect,"call",v=>v()]),i(),o(),s(),a(),c(),l(),u(),d(),f(),p(),g(),m(),y.forEach(v=>v())})}function MT(e){return typeof window[e]<"u"}function DT(e){return!!(typeof window[e]<"u"&&window[e].prototype&&"insertRule"in window[e].prototype&&"deleteRule"in window[e].prototype)}class r7{constructor(t){this.generateIdFn=t,this.iframeIdToRemoteIdMap=new WeakMap,this.iframeRemoteIdToIdMap=new WeakMap}getId(t,n,r,i){const o=r||this.getIdToRemoteIdMap(t),s=i||this.getRemoteIdToIdMap(t);let a=o.get(n);return a||(a=this.generateIdFn(),o.set(n,a),s.set(a,n)),a}getIds(t,n){const r=this.getIdToRemoteIdMap(t),i=this.getRemoteIdToIdMap(t);return n.map(o=>this.getId(t,o,r,i))}getRemoteId(t,n,r){const i=r||this.getRemoteIdToIdMap(t);if(typeof n!="number")return n;const o=i.get(n);return o||-1}getRemoteIds(t,n){const r=this.getRemoteIdToIdMap(t);return n.map(i=>this.getRemoteId(t,i,r))}reset(t){if(!t){this.iframeIdToRemoteIdMap=new WeakMap,this.iframeRemoteIdToIdMap=new WeakMap;return}this.iframeIdToRemoteIdMap.delete(t),this.iframeRemoteIdToIdMap.delete(t)}getIdToRemoteIdMap(t){let n=this.iframeIdToRemoteIdMap.get(t);return n||(n=new Map,this.iframeIdToRemoteIdMap.set(t,n)),n}getRemoteIdToIdMap(t){let n=this.iframeRemoteIdToIdMap.get(t);return n||(n=new Map,this.iframeRemoteIdToIdMap.set(t,n)),n}}function nee(e){let t,n=e[0],r=1;for(;r<e.length;){const i=e[r],o=e[r+1];if(r+=2,(i==="optionalAccess"||i==="optionalCall")&&n==null)return;i==="access"||i==="optionalAccess"?(t=n,n=o(n)):(i==="call"||i==="optionalCall")&&(n=o((...s)=>n.call(t,...s)),t=void 0)}return n}
vendor: 5,224 bytes, line 1501
1501class JXe{constructor(){this.crossOriginIframeMirror=new r7(pH),this.crossOriginIframeRootIdMap=new WeakMap}addIframe(){}addLoadListener(){}attachIframe(){}}class ZXe{constructor(t){this.iframes=new WeakMap,this.crossOriginIframeMap=new WeakMap,this.crossOriginIframeMirror=new r7(pH),this.crossOriginIframeRootIdMap=new WeakMap,this.mutationCb=t.mutationCb,this.wrappedEmit=t.wrappedEmit,this.stylesheetManager=t.stylesheetManager,this.recordCrossOriginIframes=t.recordCrossOriginIframes,this.crossOriginIframeStyleMirror=new r7(this.stylesheetManager.styleMirror.generateId.bind(this.stylesheetManager.styleMirror)),this.mirror=t.mirror,this.recordCrossOriginIframes&&window.addEventListener("message",this.handleMessage.bind(this))}addIframe(t){this.iframes.set(t,!0),t.contentWindow&&this.crossOriginIframeMap.set(t.contentWindow,t)}addLoadListener(t){this.loadListener=t}attachIframe(t,n){this.mutationCb({adds:[{parentId:this.mirror.getId(t),nextId:null,node:n}],removes:[],texts:[],attributes:[],isAttachIframe:!0}),nee([this,"access",i=>i.loadListener,"optionalCall",i=>i(t)]);const r=vH(t);r&&r.adoptedStyleSheets&&r.adoptedStyleSheets.length>0&&this.stylesheetManager.adoptStyleSheets(r.adoptedStyleSheets,this.mirror.getId(r))}handleMessage(t){const n=t;if(n.data.type!=="rrweb"||n.origin!==n.data.origin||!t.source)return;const i=this.crossOriginIframeMap.get(t.source);if(!i)return;const o=this.transformCrossOriginEvent(i,n.data.event);o&&this.wrappedEmit(o,n.data.isCheckout)}transformCrossOriginEvent(t,n){switch(n.type){case dn.FullSnapshot:{this.crossOriginIframeMirror.reset(t),this.crossOriginIframeStyleMirror.reset(t),this.replaceIdOnNode(n.data.node,t);const r=n.data.node.id;return this.crossOriginIframeRootIdMap.set(t,r),this.patchRootIdOnNode(n.data.node,r),{timestamp:n.timestamp,type:dn.IncrementalSnapshot,data:{source:Vt.Mutation,adds:[{parentId:this.mirror.getId(t),nextId:null,node:n.data.node}],removes:[],texts:[],attributes:[],isAttachIframe:!0}}}case dn.Meta:case dn.Load:case dn.DomContentLoaded:return!1;case dn.Plugin:return n;case dn.Custom:return this.replaceIds(n.data.payload,t,["id","parentId","previousId","nextId"]),n;case dn.IncrementalSnapshot:switch(n.data.source){case Vt.Mutation:return n.data.adds.forEach(r=>{this.replaceIds(r,t,["parentId","nextId","previousId"]),this.replaceIdOnNode(r.node,t);const i=this.crossOriginIframeRootIdMap.get(t);i&&this.patchRootIdOnNode(r.node,i)}),n.data.removes.forEach(r=>{this.replaceIds(r,t,["parentId","id"])}),n.data.attributes.forEach(r=>{this.replaceIds(r,t,["id"])}),n.data.texts.forEach(r=>{this.replaceIds(r,t,["id"])}),n;case Vt.Drag:case Vt.TouchMove:case Vt.MouseMove:return n.data.positions.forEach(r=>{this.replaceIds(r,t,["id"])}),n;case Vt.ViewportResize:return!1;case Vt.MediaInteraction:case Vt.MouseInteraction:case Vt.Scroll:case Vt.CanvasMutation:case Vt.Input:return this.replaceIds(n.data,t,["id"]),n;case Vt.StyleSheetRule:case Vt.StyleDeclaration:return this.replaceIds(n.data,t,["id"]),this.replaceStyleIds(n.data,t,["styleId"]),n;case Vt.Font:return n;case Vt.Selection:return n.data.ranges.forEach(r=>{this.replaceIds(r,t,["start","end"])}),n;case Vt.AdoptedStyleSheet:return this.replaceIds(n.data,t,["id"]),this.replaceStyleIds(n.data,t,["styleIds"]),nee([n,"access",r=>r.data,"access",r=>r.styles,"optionalAccess",r=>r.forEach,"call",r=>r(i=>{this.replaceStyleIds(i,t,["styleId"])})]),n}}return!1}replace(t,n,r,i){for(const o of i)!Array.isArray(n[o])&&typeof n[o]!="number"||(Array.isArray(n[o])?n[o]=t.getIds(r,n[o]):n[o]=t.getId(r,n[o]));return n}replaceIds(t,n,r){return this.replace(this.crossOriginIframeMirror,t,n,r)}replaceStyleIds(t,n,r){return this.replace(this.crossOriginIframeStyleMirror,t,n,r)}replaceIdOnNode(t,n){this.replaceIds(t,n,["id","rootId"]),"childNodes"in t&&t.childNodes.forEach(r=>{this.replaceIdOnNode(r,n)})}patchRootIdOnNode(t,n){t.type!==vo.Document&&!t.rootId&&(t.rootId=n),"childNodes"in t&&t.childNodes.forEach(r=>{this.patchRootIdOnNode(r,n)})}}class eJe{init(){}addShadowRoot(){}observeAttachShadow(){}reset(){}}class tJe{constructor(t){this.shadowDoms=new WeakSet,this.restoreHandlers=[],this.mutationCb=t.mutationCb,this.scrollCb=t.scrollCb,this.bypassOptions=t.bypassOptions,this.mirror=t.mirror,this.init()}init(){this.reset(),this.patchAttachShadow(Element,document)}addShadowRoot(t,n){if(!XS(t)||this.shadowDoms.has(t))return;this.shadowDoms.add(t),this.bypassOptions.canvasManager.addShadowRoot(t);const r=R0e({...this.bypassOptions,doc:n,mutationCb:this.mutationCb,mirror:this.mirror,shadowDomManager:this},t);this.restoreHandlers.push(()=>r.disconnect()),this.restoreHandlers.push(P0e({...this.bypassOptions,scrollCb:this.scrollCb,doc:t,mirror:this.mirror})),UP(()=>{t.adoptedStyleSheets&&t.adoptedStyleSheets.length>0&&this.bypassOptions.stylesheetManager.adoptStyleSheets(t.adoptedStyleSheets,this.mirror.getId(t.host)),this.restoreHandlers.push(O0e({mirror:this.mirror,stylesheetManager:this.bypassOptions.stylesheetManager},t))},0)}observeAttachShadow(t){const n=vH(t),r=NXe(t);!n||!r||this.patchAttachShadow(r.Element,n)}patchAttachShadow(t,n){const r=this;this.restoreHandlers.push(mH(t.prototype,"attachShadow",function(i){return function(o){const s=i.
1501call(this,o);return this.shadowRoot&&A0e(this)&&r.addShadowRoot(this.shadowRoot,n),s}}))}reset(){this.restoreHandlers.forEach(t=>{try{t()}catch{}}),this.restoreHandlers=[],this.shadowDoms=new WeakSet,this.bypassOptions.canvasManager.resetShadowRoots()}}class ree{reset(){}freeze(){}unfreeze(){}lock(){}unlock(){}snapshot(){}addWindow(){}addShadowRoot(){}resetShadowRoots(){}}class nJe{constructor(t){this.trackedLinkElements=new WeakSet,this.styleMirror=new AXe,this.mutationCb=t.mutationCb,this.adoptedStyleSheetCb=t.adoptedStyleSheetCb}attachLinkElement(t,n){"_cssText"in n.attributes&&this.mutationCb({adds:[],removes:[],texts:[],attributes:[{id:n.id,attributes:n.attributes}]}),this.trackLinkElement(t)}trackLinkElement(t){this.trackedLinkElements.has(t)||(this.trackedLinkElements.add(t),this.trackStylesheetInLinkElement(t))}adoptStyleSheets(t,n){if(t.length===0)return;const r={id:n,styleIds:[]},i=[];for(const o of t){let s;this.styleMirror.has(o)?s=this.styleMirror.getId(o):(s=this.styleMirror.add(o),i.push({styleId:s,rules:Array.from(o.rules||CSSRule,(a,c)=>({rule:d0e(a),index:c}))})),r.styleIds.push(s)}i.length>0&&(r.styles=i),this.adoptedStyleSheetCb(r)}reset(){this.styleMirror.reset(),this.trackedLinkElements=new WeakSet}trackStylesheetInLinkElement(t){}}class rJe{constructor(){this.nodeMap=new WeakMap,this.active=!1}inOtherBuffer(t,n){const r=this.nodeMap.get(t);return r&&Array.from(r).some(i=>i!==n)}add(t,n){this.active||(this.active=!0,PXe(()=>{this.nodeMap=new WeakMap,this.active=!1})),this.nodeMap.set(t,(this.nodeMap.get(t)||new Set).add(n))}destroy(){}}let yi,NI;try{if(Array.from([1],e=>e*2)[0]!==2){const e=document.createElement("iframe");document.body.appendChild(e),Array.from=Dx([e,"access",t=>t.contentWindow,"optionalAccess",t=>t.Array,"access",t=>t.from])||Array.from,document.body.removeChild(e)}}catch(e){console.debug("Unable to override Array.from",e)}const kl=nXe();function Bf(e={}){const{emit:t,checkoutEveryNms:n,checkoutEveryNth:r,blockClass:i="rr-block",blockSelector:o=null,unblockSelector:s=null,ignoreClass:a="rr-ignore",ignoreSelector:c=null,maskAllText:l=!1,maskTextClass:u="rr-mask",unmaskTextClass:d=null,maskTextSelector:f=null,unmaskTextSelector:p=null,inlineStylesheet:g=!0,maskAllInputs:m,maskInputOptions:y,slimDOMOptions:v,maskAttributeFn:w,maskInputFn:S,maskTextFn:C,maxCanvasSize:E=null,packFn:T,sampling:x={},dataURLOptions:O={},mousemoveWait:A,recordDOM:L=!0,recordCanvas:U=!1,recordCrossOriginIframes:I=!1,recordAfter:F=e.recordAfter==="DOMContentLoaded"?e.recordAfter:"load",userTriggeredOnInput:P=!1,collectFonts:W=!1,inlineImages:ee=!1,plugins:Y,keepIframeSrcFn:X=()=>!1,ignoreCSSAttributes:Z=new Set([]),errorHandler:G,onMutation:Q,getCanvasManager:q}=e;jXe(G);const z=I?window.parent===window:!0;let ue=!1;if(!z)try{window.parent.document&&(ue=!1)}catch{ue=!0}if(z&&!t)throw new Error("emit function is required");if(!z&&!ue)return()=>{};A!==void 0&&x.mousemove===void 0&&(x.mousemove=A),kl.reset();const ge=m===!0?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0,radio:!0,checkbox:!0}:y!==void 0?y:{},ae=v===!0||v==="all"?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaVerification:!0,headMetaAuthorship:v==="all",headMetaDescKeywords:v==="all"}:v||{};xXe();let j,B=0;const re=ce=>{for(const pe of Y||[])pe.eventProcessor&&(ce=pe.eventProcessor(ce));return T&&!ue&&(ce=T(ce)),ce};yi=(ce,pe)=>{const fe=ce;if(fe.timestamp=PI(),Dx([sy,"access",we=>we[0],"optionalAccess",we=>we.isFrozen,"call",we=>we()])&&fe.type!==dn.FullSnapshot&&!(fe.type===dn.IncrementalSnapshot&&fe.data.source===Vt.Mutation)&&sy.forEach(we=>we.unfreeze()),z)Dx([t,"optionalCall",we=>we(re(fe),pe)]);else if(ue){const we={type:"rrweb",event:re(fe),origin:window.location.origin,isCheckout:pe};window.parent.postMessage(we,"*")}if(fe.type===dn.FullSnapshot)j=fe,B=0;else if(fe.type===dn.IncrementalSnapshot){if(fe.data.source===Vt.Mutation&&fe.data.isAttachIframe)return;B++;const we=r&&B>=r,Ee=n&&j&&fe.timestamp-j.timestamp>n;(we||Ee)&&$(!0)}};const oe=ce=>{yi({type:dn.IncrementalSnapshot,data:{source:Vt.Mutation,...ce}})},ne=ce=>yi({type:dn.IncrementalSnapshot,data:{source:Vt.Scroll,...ce}}),J=ce=>yi({type:dn.IncrementalSnapshot,data:{source:Vt.CanvasMutation,...ce}}),Se=ce=>yi({type:dn.IncrementalSnapshot,data:{source:Vt.AdoptedStyleSheet,...ce}}),H=new nJe({mutationCb:oe,adoptedStyleSheetCb:Se}),be=typeof __RRWEB_EXCLUDE_IFRAME__=="boolean"&&__RRWEB_EXCLUDE_IFRAME__?new JXe:new ZXe({mirror:kl,mutationCb:oe,stylesheetManager:H,recordCrossOriginIframes:I,wrappedEmit:yi});for(const ce of Y||[])ce.getMirror&&ce.getMirror({nodeMirror:kl,crossOriginIframeMirror:be.crossOriginIframeMirror,crossOriginIframeStyleMirror:be.crossOriginIframeStyleMirror});const V=new rJe,M=oJe(q,{mirror:kl,win:window,mutationCb:ce=>yi({type:dn.IncrementalSnapshot,data:{source:Vt.CanvasMutation,...ce}}),recordCanvas:U,blockClass:i,blockSelector:o,unblockSelector:s,maxCanvasSize:E,sampling:x.canvas,dataURLOptions:O,errorHandler:G}),N=typeof __RRWEB_EXCLUDE_SHADOW_DOM__=="boolean"&&__RRWEB_EXCLUDE_SHADOW_DOM__?new eJe:new tJe({mutationCb:oe,scrollCb:ne,bypassOptions:{onMutation:Q,blockClass:i,blockSelector:o,unblockSelector:s,maskAllText:l,maskTextClass:u,unmaskTextClass:d,maskTextSelector:f,unmaskTextSelector:p,inlineStylesheet:g,maskInputOptions:ge,dataURLOptions:O,maskAttributeFn:w,maskTextFn:C,maskInputFn:S,recordCanvas:U,inlineImages:ee,sampling:x,slimDOMOptions:ae,iframeManager:be,
1501stylesheetManager:H,canvasManager:M,keepIframeSrcFn:X,processedNodeManager:V},mirror:kl}),$=(ce=!1)=>{if(!L)return;yi({type:dn.Meta,data:{href:window.location.href,width:_0e(),height:S0e()}},ce),H.reset(),N.init(),sy.forEach(fe=>fe.lock());const pe=TXe(document,{mirror:kl,blockClass:i,blockSelector:o,unblockSelector:s,maskAllText:l,maskTextClass:u,unmaskTextClass:d,maskTextSelector:f,unmaskTextSelector:p,inlineStylesheet:g,maskAllInputs:ge,maskAttributeFn:w,maskInputFn:S,maskTextFn:C,slimDOM:ae,dataURLOptions:O,recordCanvas:U,inlineImages:ee,onSerialize:fe=>{T0e(fe,kl)&&be.addIframe(fe),k0e(fe,kl)&&H.trackLinkElement(fe),t7(fe)&&N.addShadowRoot(fe.shadowRoot,document)},onIframeLoad:(fe,we)=>{be.attachIframe(fe,we),fe.contentWindow&&M.addWindow(fe.contentWindow),N.observeAttachShadow(fe)},onStylesheetLoad:(fe,we)=>{H.attachLinkElement(fe,we)},keepIframeSrcFn:X});if(!pe)return console.warn("Failed to snapshot the document");yi({type:dn.FullSnapshot,data:{node:pe,initialOffset:w0e(window)}}),sy.forEach(fe=>fe.unlock()),document.adoptedStyleSheets&&document.adoptedStyleSheets.length>0&&H.adoptStyleSheets(document.adoptedStyleSheets,kl.getId(document))};NI=$;try{const ce=[],pe=we=>In(XXe)({onMutation:Q,mutationCb:oe,mousemoveCb:(Ee,xe)=>yi({type:dn.IncrementalSnapshot,data:{source:xe,positions:Ee}}),mouseInteractionCb:Ee=>yi({type:dn.IncrementalSnapshot,data:{source:Vt.MouseInteraction,...Ee}}),scrollCb:ne,viewportResizeCb:Ee=>yi({type:dn.IncrementalSnapshot,data:{source:Vt.ViewportResize,...Ee}}),inputCb:Ee=>yi({type:dn.IncrementalSnapshot,data:{source:Vt.Input,...Ee}}),mediaInteractionCb:Ee=>yi({type:dn.IncrementalSnapshot,data:{source:Vt.MediaInteraction,...Ee}}),styleSheetRuleCb:Ee=>yi({type:dn.IncrementalSnapshot,data:{source:Vt.StyleSheetRule,...Ee}}),styleDeclarationCb:Ee=>yi({type:dn.IncrementalSnapshot,data:{source:Vt.StyleDeclaration,...Ee}}),canvasMutationCb:J,fontCb:Ee=>yi({type:dn.IncrementalSnapshot,data:{source:Vt.Font,...Ee}}),selectionCb:Ee=>{yi({type:dn.IncrementalSnapshot,data:{source:Vt.Selection,...Ee}})},customElementCb:Ee=>{yi({type:dn.IncrementalSnapshot,data:{source:Vt.CustomElement,...Ee}})},blockClass:i,ignoreClass:a,ignoreSelector:c,maskAllText:l,maskTextClass:u,unmaskTextClass:d,maskTextSelector:f,unmaskTextSelector:p,maskInputOptions:ge,inlineStylesheet:g,sampling:x,recordDOM:L,recordCanvas:U,inlineImages:ee,userTriggeredOnInput:P,collectFonts:W,doc:we,maskAttributeFn:w,maskInputFn:S,maskTextFn:C,keepIframeSrcFn:X,blockSelector:o,unblockSelector:s,slimDOMOptions:ae,dataURLOptions:O,mirror:kl,iframeManager:be,stylesheetManager:H,shadowDomManager:N,processedNodeManager:V,canvasManager:M,ignoreCSSAttributes:Z,plugins:Dx([Y,"optionalAccess",Ee=>Ee.filter,"call",Ee=>Ee(xe=>xe.observer),"optionalAccess",Ee=>Ee.map,"call",Ee=>Ee(xe=>({observer:xe.observer,options:xe.options,callback:ve=>yi({type:dn.Plugin,data:{plugin:xe.name,payload:ve}})}))])||[]},{});be.addLoadListener(we=>{try{ce.push(pe(we.contentDocument))}catch(Ee){console.warn(Ee)}});const fe=()=>{$(),ce.push(pe(document))};return document.readyState==="interactive"||document.readyState==="complete"?fe():(ce.push(Hs("DOMContentLoaded",()=>{yi({type:dn.DomContentLoaded,data:{}}),F==="DOMContentLoaded"&&fe()})),ce.push(Hs("load",()=>{yi({type:dn.Load,data:{}}),F==="load"&&fe()},window))),()=>{ce.forEach(we=>we()),V.destroy(),NI=void 0,UXe()}}catch(ce){console.warn(ce)}}function iJe(e){if(!NI)throw new Error("please take full snapshot after start recording");NI(e)}Bf.mirror=kl;Bf.takeFullSnapshot=iJe;function oJe(e,t){try{return e?e(t):new ree}catch{return console.warn("Unable to initialize CanvasManager"),new ree}}const sJe=3,aJe=5;function yH(e){return e>9999999999?e:e*1e3}function n6(e){return e>9999999999?e/1e3:e}function OE(e,t){t.category!=="sentry.transaction"&&(["ui.click","ui.input"].includes(t.category)?e.triggerUserActivity():e.checkAndHandleExpiredSession(),e.addUpdate(()=>(e.throttledAddEvent({type:dn.Custom,timestamp:(t.timestamp||0)*1e3,data:{tag:"breadcrumb",payload:Pl(t,10,1e3)}}),t.category==="console")))}const cJe="button,a";function N0e(e){return e.closest(cJe)||e}function M0e(e){const t=D0e(e);return!t||!(t instanceof Element)?t:N0e(t)}function D0e(e){return lJe(e)?e.target:e}function lJe(e){return typeof e=="object"&&!!e&&"target"in e}let np;function uJe(e){return np||(np=[],dJe()),np.push(e),()=>{const t=np?np.indexOf(e):-1;t>-1&&np.splice(t,1)}}function dJe(){_a(Er,"open",function(e){return function(...t){if(np)try{np.forEac
1501h(n=>n())}catch{}return e.apply(Er,t)}})}const fJe=new Set([Vt.Mutation,Vt.StyleSheetRule,Vt.StyleDeclaration,Vt.AdoptedStyleSheet,Vt.CanvasMutation,Vt.Selection,Vt.MediaInteraction]);function hJe(e,t,n){e.handleClick(t,n)}class pJe{constructor(t,n,r=OE){this._lastMutation=0,this._lastScroll=0,this._clicks=[],this._timeout=n.timeout/1e3,this._threshold=n.threshold/1e3,this._scrollTimeout=n.scrollTimeout/1e3,this._replay=t,this._ignoreSelector=n.ignoreSelector,this._addBreadcrumbEvent=r}addListeners(){const t=uJe(()=>{this._lastMutation=iee()});this._teardown=()=>{t(),this._clicks=[],this._lastMutation=0,this._lastScroll=0}}removeListeners(){this._teardown&&this._teardown(),this._checkClickTimeout&&clearTimeout(this._checkClickTimeout)}handleClick(t,n){if(gJe(n,this._ignoreSelector)||!vJe(t))return;const r={timestamp:n6(t.timestamp),clickBreadcrumb:t,clickCount:0,node:n};this._clicks.some(i=>i.node===r.node&&Math.abs(i.timestamp-r.timestamp)<1)||(this._clicks.push(r),this._clicks.length===1&&this._scheduleCheckClicks())}registerMutation(t=Date.now()){this._lastMutation=n6(t)}registerScroll(t=Date.now()){this._lastScroll=n6(t)}registerClick(t){const n=N0e(t);this._handleMultiClick(n)}_handleMultiClick(t){this._getClicks(t).forEach(n=>{n.clickCount++})}_getClicks(t){return this._clicks.filter(n=>n.node===t)}_checkClicks(){const t=[],n=iee();this._clicks.forEach(r=>{!r.mutationAfter&&this._lastMutation&&(r.mutationAfter=r.timestamp<=this._lastMutation?this._lastMutation-r.timestamp:void 0),!r.scrollAfter&&this._lastScroll&&(r.scrollAfter=r.timestamp<=this._lastScroll?this._lastScroll-r.timestamp:void 0),r.timestamp+this._timeout<=n&&t.push(r)});for(const r of t){const i=this._clicks.indexOf(r);i>-1&&(this._generateBreadcrumbs(r),this._clicks.splice(i,1))}this._clicks.length&&this._scheduleCheckClicks()}_generateBreadcrumbs(t){const n=this._replay,r=t.scrollAfter&&t.scrollAfter<=this._scrollTimeout,i=t.mutationAfter&&t.mutationAfter<=this._threshold,o=!r&&!i,{clickCount:s,clickBreadcrumb:a}=t;if(o){const c=Math.min(t.mutationAfter||this._timeout,this._timeout)*1e3,l=c<this._timeout*1e3?"mutation":"timeout",u={type:"default",message:a.message,timestamp:a.timestamp,category:"ui.slowClickDetected",data:{...a.data,url:Er.location.href,route:n.getCurrentRoute(),timeAfterClickMs:c,endReason:l,clickCount:s||1}};this._addBreadcrumbEvent(n,u);return}if(s>1){const c={type:"default",message:a.message,timestamp:a.timestamp,category:"ui.multiClick",data:{...a.data,url:Er.location.href,route:n.getCurrentRoute(),clickCount:s,metric:!0}};this._addBreadcrumbEvent(n,c)}}_scheduleCheckClicks(){this._checkClickTimeout&&clearTimeout(this._checkClickTimeout),this._checkClickTimeout=_1(()=>this._checkClicks(),1e3)}}const mJe=["A","BUTTON","INPUT"];function gJe(e,t){return!!(!mJe.includes(e.tagName)||e.tagName==="INPUT"&&!["submit","button"].includes(e.getAttribute("type")||"")||e.tagName==="A"&&(e.hasAttribute("download")||e.hasAttribute("target")&&e.getAttribute("target")!=="_self")||t&&e.matches(t))}function vJe(e){return!!(e.data&&typeof e.data.nodeId=="number"&&e.timestamp)}function iee(){return Date.now()/1e3}function yJe(e,t){try{if(!bJe(t))return;const{source:n}=t.data;if(fJe.has(n)&&e.registerMutation(t.timestamp),n===Vt.Scroll&&e.registerScroll(t.timestamp),wJe(t)){const{type:r,id:i}=t.data,o=Bf.mirror.getNode(i);o instanceof HTMLElement&&r===Ns.Click&&e.registerClick(o)}}catch{}}function bJe(e){return e.type===sJe}function wJe(e){return e.data.source===Vt.MouseInteraction}function ed(e){return{timestamp:Date.now()/1e3,type:"default",...e}}var MI;(function(e){e[e.Document=0]="Document",e[e.DocumentType=1]="DocumentType",e[e.Element=2]="Element",e[e.Text=3]="Text",e[e.CDATA=4]="CDATA",e[e.Comment=5]="Comment"})(MI||(MI={}));const SJe=new Set(["id","class","aria-label","role","name","alt","title","data-test-id","data-testid","disabled","aria-disabled","data-sentry-component"]);function _Je(e){const t={};!e["data-sentry-component"]&&e["data-sentry-element"]&&(e["data-sentry-component"]=e["data-sentry-element"]);for(const n in e)if(SJe.has(n)){let r=n;(n==="data-testid"||n==="data-test-id")&&(r="testId"),t[r]=e[n]}return t}const CJe=e=>t=>{if(!e.isEnabled())return;const n=EJe(t);if(!n)return;const r=t.name==="click",i=r?t.event:void 0;r&&e.clickDetector&&i&&i.target&&!i.altKey&&!i.metaKey&&!i.ctrlKey&&!i.shiftKey&&hJe(e.clickDetector,n,M0e(t.event)),OE(e,n)};function L0e(e,t){const n=Bf.mirror.getId(e),r=n&&Bf.mirror.getNode(n),i=r&&Bf.mirror.getMeta(r),o=i&&kJe(i)?i:null;return{message:t,data:o?{nodeId:n,node:{id:n,tagName:o.tagName,textContent:Array.from(o.childNodes).map(s=>
1501s.type===MI.Text&&s.textContent).filter(Boolean).map(s=>s.trim()).join(""),attributes:_Je(o.attributes)}}:{}}}function EJe(e){const{target:t,message:n}=TJe(e);return ed({category:`ui.${e.name}`,...L0e(t,n)})}function TJe(e){const t=e.name==="click";let n,r=null;try{r=t?M0e(e.event):D0e(e.event),n=sh(r,{maxStringLength:200})||"<unknown>"}catch{n="<unknown>"}return{target:r,message:n}}function kJe(e){return e.type===MI.Element}function xJe(e,t){if(!e.isEnabled())return;e.updateUserActivity();const n=AJe(t);n&&OE(e,n)}function AJe(e){const{metaKey:t,shiftKey:n,ctrlKey:r,altKey:i,key:o,target:s}=e;if(!s||IJe(s)||!o)return null;const a=t||r||i,c=o.length===1;if(!a&&c)return null;const l=sh(s,{maxStringLength:200})||"<unknown>",u=L0e(s,l);return ed({category:"ui.keyDown",message:l,data:{...u.data,metaKey:t,shiftKey:n,ctrlKey:r,altKey:i,key:o}})}function IJe(e){return e.tagName==="INPUT"||e.tagName==="TEXTAREA"||e.isContentEditable}const RJe={resource:DJe,paint:NJe,navigation:MJe};function LT(e,t){return({metric:n})=>void t.replayPerformanceEntries.push(e(n))}function PJe(e){return e.map(OJe).filter(Boolean)}function OJe(e){const t=RJe[e.entryType];return t?t(e):null}function T1(e){return((ta||Er.performance.timeOrigin)+e)/1e3}function NJe(e){const{duration:t,entryType:n,name:r,startTime:i}=e,o=T1(i);return{type:n,name:r,start:o,end:o+t,data:void 0}}function MJe(e){const{entryType:t,name:n,decodedBodySize:r,duration:i,domComplete:o,encodedBodySize:s,domContentLoadedEventStart:a,domContentLoadedEventEnd:c,domInteractive:l,loadEventStart:u,loadEventEnd:d,redirectCount:f,startTime:p,transferSize:g,type:m}=e;return i===0?null:{type:`${t}.${m}`,start:T1(p),end:T1(o),name:n,data:{size:g,decodedBodySize:r,encodedBodySize:s,duration:i,domInteractive:l,domContentLoadedEventStart:a,domContentLoadedEventEnd:c,loadEventStart:u,loadEventEnd:d,domComplete:o,redirectCount:f}}}function DJe(e){const{entryType:t,initiatorType:n,name:r,responseEnd:i,startTime:o,decodedBodySize:s,encodedBodySize:a,responseStatus:c,transferSize:l}=e;return["fetch","xmlhttprequest"].includes(n)?null:{type:`${t}.${n}`,start:T1(o),end:T1(i),name:r,data:{size:l,statusCode:c,decodedBodySize:s,encodedBodySize:a}}}function LJe(e){const t=e.entries[e.entries.length-1],n=t&&t.element?[t.element]:void 0;return BP(e,"largest-contentful-paint",n)}function FJe(e){return e.sources!==void 0}function jJe(e){const t=[],n=[];for(const r of e.entries)if(FJe(r)){const i=[];for(const o of r.sources)if(o.node){n.push(o.node);const s=Bf.mirror.getId(o.node);s&&i.push(s)}t.push({value:r.value,nodeIds:i.length?i:void 0})}return BP(e,"cumulative-layout-shift",n,t)}function UJe(e){const t=e.entries[e.entries.length-1],n=t&&t.target?[t.target]:void 0;return BP(e,"first-input-delay",n)}function BJe(e){const t=e.entries[e.entries.length-1],n=t&&t.target?[t.target]:void 0;return BP(e,"interaction-to-next-paint",n)}function BP(e,t,n,r){const i=e.value,o=e.rating,s=T1(i);return{type:"web-vital",name:t,start:s,end:s,data:{value:i,size:i,rating:o,nodeIds:n?n.map(a=>Bf.mirror.getId(a)):void 0,attributions:r}}}function $Je(e){function t(i){e.performanceEntries.includes(i)||e.performanceEntries.push(i)}function n({entries:i}){i.forEach(t)}const r=[];return["navigation","paint","resource"].forEach(i=>{r.push(S1(i,n))}),r.push(Zve(LT(LJe,e)),cH(LT(jJe,e)),e0e(LT(UJe,e)),t0e(LT(BJe,e))),()=>{r.forEach(i=>i())}}const Ot=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,HJe='var t=Uint8Array,n=Uint16Array,r=Int32Array,e=new t([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),i=new t([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),a=new t([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),s=function(t,e){for(var i=new n(31),a=0;a<31;++a)i[a]=e+=1<<t[a-1];var s=new r(i[30]);for(a=1;a<30;++a)for(var o=i[a];o<i[a+1];++o)s[o]=o-i[a]<<5|a;return{b:i,r:s}},o=s(e,2),f=o.b,h=o.r;f[28]=258,h[258]=28;for(var l=s(i,0).r,u=new n(32768),c=0;c<32768;++c){var v=(43690&c)>>1|(21845&c)<<1;v=(61680&(v=(52428&v)>>2|(13107&v)<<2))>>4|(3855&v)<<4,u[c]=((65280&v)>>8|(255&v)<<8)>>1}var d=function(t,r,e){for(var i=t.length,a=0,s=new n(r);a<i;++a)t[a]&&++s[t[a]-1];var o,f=new n(r);for(a=1;a<r;++a)f[a]=f[a-1]+s[a-1]<<1;if(e){o=new n(1<<r);var h=15-r;for(a=0;a<i;++a)if(t[a])for(var l=a<<4|t[a],c=r-t[a],v=f[t[a]-1]++<<c,d=v|(1<<c)-1;v<=d;++v)o[u[v]>>h]=l}else for(o=new n(i),a=0;a<i;++a)t[a]&&(o[a]=u[f[t[a]-1]++]>>15-t[a]);return o},g=new t(288);for(c=0;c<144;++c)g[c]=8;for(c=144;c<256;++c)g[c]=9;for(c=256;c<280;++c)g[c]=7;for(c=280;c<288;++c)g[c]=8;var w=new t(32);for(c=0;c<32;++c)w[c]=5;var p=d(g,9,0),y=d(w,5,0),m=function(t){return(t+7)/8|0},b=function(n,r,e){return(null==e||e>n.length)&&(e=n.length),new t(n.subarray(r,e))}
vendor: 4,591 bytes, line 1501
1501,M=["unexpected EOF","invalid block type","invalid length/literal","invalid distance","stream finished","no stream handler",,"no callback","invalid UTF-8 data","extra field too long","date not in range 1980-2099","filename too long","stream finishing","invalid zip data"],E=function(t,n,r){var e=new Error(n||M[t]);if(e.code=t,Error.captureStackTrace&&Error.captureStackTrace(e,E),!r)throw e;return e},z=function(t,n,r){r<<=7&n;var e=n/8|0;t[e]|=r,t[e+1]|=r>>8},_=function(t,n,r){r<<=7&n;var e=n/8|0;t[e]|=r,t[e+1]|=r>>8,t[e+2]|=r>>16},x=function(r,e){for(var i=[],a=0;a<r.length;++a)r[a]&&i.push({s:a,f:r[a]});var s=i.length,o=i.slice();if(!s)return{t:F,l:0};if(1==s){var f=new t(i[0].s+1);return f[i[0].s]=1,{t:f,l:1}}i.sort((function(t,n){return t.f-n.f})),i.push({s:-1,f:25001});var h=i[0],l=i[1],u=0,c=1,v=2;for(i[0]={s:-1,f:h.f+l.f,l:h,r:l};c!=s-1;)h=i[i[u].f<i[v].f?u++:v++],l=i[u!=c&&i[u].f<i[v].f?u++:v++],i[c++]={s:-1,f:h.f+l.f,l:h,r:l};var d=o[0].s;for(a=1;a<s;++a)o[a].s>d&&(d=o[a].s);var g=new n(d+1),w=A(i[c-1],g,0);if(w>e){a=0;var p=0,y=w-e,m=1<<y;for(o.sort((function(t,n){return g[n.s]-g[t.s]||t.f-n.f}));a<s;++a){var b=o[a].s;if(!(g[b]>e))break;p+=m-(1<<w-g[b]),g[b]=e}for(p>>=y;p>0;){var M=o[a].s;g[M]<e?p-=1<<e-g[M]++-1:++a}for(;a>=0&&p;--a){var E=o[a].s;g[E]==e&&(--g[E],++p)}w=e}return{t:new t(g),l:w}},A=function(t,n,r){return-1==t.s?Math.max(A(t.l,n,r+1),A(t.r,n,r+1)):n[t.s]=r},D=function(t){for(var r=t.length;r&&!t[--r];);for(var e=new n(++r),i=0,a=t[0],s=1,o=function(t){e[i++]=t},f=1;f<=r;++f)if(t[f]==a&&f!=r)++s;else{if(!a&&s>2){for(;s>138;s-=138)o(32754);s>2&&(o(s>10?s-11<<5|28690:s-3<<5|12305),s=0)}else if(s>3){for(o(a),--s;s>6;s-=6)o(8304);s>2&&(o(s-3<<5|8208),s=0)}for(;s--;)o(a);s=1,a=t[f]}return{c:e.subarray(0,i),n:r}},T=function(t,n){for(var r=0,e=0;e<n.length;++e)r+=t[e]*n[e];return r},k=function(t,n,r){var e=r.length,i=m(n+2);t[i]=255&e,t[i+1]=e>>8,t[i+2]=255^t[i],t[i+3]=255^t[i+1];for(var a=0;a<e;++a)t[i+a+4]=r[a];return 8*(i+4+e)},U=function(t,r,s,o,f,h,l,u,c,v,m){z(r,m++,s),++f[256];for(var b=x(f,15),M=b.t,E=b.l,A=x(h,15),U=A.t,C=A.l,F=D(M),I=F.c,S=F.n,L=D(U),O=L.c,j=L.n,q=new n(19),B=0;B<I.length;++B)++q[31&I[B]];for(B=0;B<O.length;++B)++q[31&O[B]];for(var G=x(q,7),H=G.t,J=G.l,K=19;K>4&&!H[a[K-1]];--K);var N,P,Q,R,V=v+5<<3,W=T(f,g)+T(h,w)+l,X=T(f,M)+T(h,U)+l+14+3*K+T(q,H)+2*q[16]+3*q[17]+7*q[18];if(c>=0&&V<=W&&V<=X)return k(r,m,t.subarray(c,c+v));if(z(r,m,1+(X<W)),m+=2,X<W){N=d(M,E,0),P=M,Q=d(U,C,0),R=U;var Y=d(H,J,0);z(r,m,S-257),z(r,m+5,j-1),z(r,m+10,K-4),m+=14;for(B=0;B<K;++B)z(r,m+3*B,H[a[B]]);m+=3*K;for(var Z=[I,O],$=0;$<2;++$){var tt=Z[$];for(B=0;B<tt.length;++B){var nt=31&tt[B];z(r,m,Y[nt]),m+=H[nt],nt>15&&(z(r,m,tt[B]>>5&127),m+=tt[B]>>12)}}}else N=p,P=g,Q=y,R=w;for(B=0;B<u;++B){var rt=o[B];if(rt>255){_(r,m,N[(nt=rt>>18&31)+257]),m+=P[nt+257],nt>7&&(z(r,m,rt>>23&31),m+=e[nt]);var et=31&rt;_(r,m,Q[et]),m+=R[et],et>3&&(_(r,m,rt>>5&8191),m+=i[et])}else _(r,m,N[rt]),m+=P[rt]}return _(r,m,N[256]),m+P[256]},C=new r([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),F=new t(0),I=function(){for(var t=new Int32Array(256),n=0;n<256;++n){for(var r=n,e=9;--e;)r=(1&r&&-306674912)^r>>>1;t[n]=r}return t}(),S=function(){var t=-1;return{p:function(n){for(var r=t,e=0;e<n.length;++e)r=I[255&r^n[e]]^r>>>8;t=r},d:function(){return~t}}},L=function(){var t=1,n=0;return{p:function(r){for(var e=t,i=n,a=0|r.length,s=0;s!=a;){for(var o=Math.min(s+2655,a);s<o;++s)i+=e+=r[s];e=(65535&e)+15*(e>>16),i=(65535&i)+15*(i>>16)}t=e,n=i},d:function(){return(255&(t%=65521))<<24|(65280&t)<<8|(255&(n%=65521))<<8|n>>8}}},O=function(a,s,o,f,u){if(!u&&(u={l:1},s.dictionary)){var c=s.dictionary.subarray(-32768),v=new t(c.length+a.length);v.set(c),v.set(a,c.length),a=v,u.w=c.length}return function(a,s,o,f,u,c){var v=c.z||a.length,d=new t(f+v+5*(1+Math.ceil(v/7e3))+u),g=d.subarray(f,d.length-u),w=c.l,p=7&(c.r||0);if(s){p&&(g[0]=c.r>>3);for(var y=C[s-1],M=y>>13,E=8191&y,z=(1<<o)-1,_=c.p||new n(32768),x=c.h||new n(z+1),A=Math.ceil(o/3),D=2*A,T=function(t){return(a[t]^a[t+1]<<A^a[t+2]<<D)&z},F=new r(25e3),I=new n(288),S=new n(32),L=0,O=0,j=c.i||0,q=0,B=c.w||0,G=0;j+2<v;++j){var H=T(j),J=32767&j,K=x[H];if(_[J]=K,x[H]=J,B<=j){var N=v-j;if((L>7e3||q>24576)&&(N>423||!w)){p=U(a,g,0,F,I,S,O,q,G,j-G,p),q=L=O=0,G=j;for(var P=0;P<286;++P)I[P]=0;for(P=0;P<30;++P)S[P]=0}var Q=2,R=0,V=E,W=J-K&32767;if(N>2&&H==T(j-W))for(var X=Math.min(M,N)-1,Y=Math.min(32767,j),Z=Math.min(258,N);W<=Y&&--V&&J!=K;){if(a[j+Q]==a[j+Q-W]){for(var $=0;$<Z&&a[j+$]==a[j+$-W];++$);if($>Q){if(Q=$,R=W,$>X)break;var tt=Math.min(W,$-2),nt=0;for(P=0;P<tt;
1501++P){var rt=j-W+P&32767,et=rt-_[rt]&32767;et>nt&&(nt=et,K=rt)}}}W+=(J=K)-(K=_[J])&32767}if(R){F[q++]=268435456|h[Q]<<18|l[R];var it=31&h[Q],at=31&l[R];O+=e[it]+i[at],++I[257+it],++S[at],B=j+Q,++L}else F[q++]=a[j],++I[a[j]]}}for(j=Math.max(j,B);j<v;++j)F[q++]=a[j],++I[a[j]];p=U(a,g,w,F,I,S,O,q,G,j-G,p),w||(c.r=7&p|g[p/8|0]<<3,p-=7,c.h=x,c.p=_,c.i=j,c.w=B)}else{for(j=c.w||0;j<v+w;j+=65535){var st=j+65535;st>=v&&(g[p/8|0]=w,st=v),p=k(g,p+1,a.subarray(j,st))}c.i=v}return b(d,0,f+m(p)+u)}(a,null==s.level?6:s.level,null==s.mem?Math.ceil(1.5*Math.max(8,Math.min(13,Math.log(a.length)))):12+s.mem,o,f,u)},j=function(t,n,r){for(;r;++n)t[n]=r,r>>>=8},q=function(t,n){var r=n.filename;if(t[0]=31,t[1]=139,t[2]=8,t[8]=n.level<2?4:9==n.level?2:0,t[9]=3,0!=n.mtime&&j(t,4,Math.floor(new Date(n.mtime||Date.now())/1e3)),r){t[3]=8;for(var e=0;e<=r.length;++e)t[e+10]=r.charCodeAt(e)}},B=function(t){return 10+(t.filename?t.filename.length+1:0)},G=function(){function n(n,r){if("function"==typeof n&&(r=n,n={}),this.ondata=r,this.o=n||{},this.s={l:0,i:32768,w:32768,z:32768},this.b=new t(98304),this.o.dictionary){var e=this.o.dictionary.subarray(-32768);this.b.set(e,32768-e.length),this.s.i=32768-e.length}}return n.prototype.p=function(t,n){this.ondata(O(t,this.o,0,0,this.s),n)},n.prototype.push=function(n,r){this.ondata||E(5),this.s.l&&E(4);var e=n.length+this.s.z;if(e>this.b.length){if(e>2*this.b.length-32768){var i=new t(-32768&e);i.set(this.b.subarray(0,this.s.z)),this.b=i}var a=this.b.length-this.s.z;a&&(this.b.set(n.subarray(0,a),this.s.z),this.s.z=this.b.length,this.p(this.b,!1)),this.b.set(this.b.subarray(-32768)),this.b.set(n.subarray(a),32768),this.s.z=n.length-a+32768,this.s.i=32766,this.s.w=32768}else this.b.set(n,this.s.z),this.s.z+=n.length;this.s.l=1&r,(this.s.z>this.s.w+8191||r)&&(this.p(this.b,r||!1),this.s.w=this.s.i,this.s.i-=2)},n}();var H=function(){function t(t,n){this.c=L(),this.v=1,G.call(this,t,n)}return t.prototype.push=function(t,n){this.c.p(t),G.prototype.push.call(this,t,n)},t.prototype.p=function(t,n){var r=O(t,this.o,this.v&&(this.o.dictionary?6:2),n&&4,this.s);this.v&&(function(t,n){var r=n.level,e=0==r?0:r<6?1:9==r?3:2;if(t[0]=120,t[1]=e<<6|(n.dictionary&&32),t[1]|=31-(t[0]<<8|t[1])%31,n.dictionary){var i=L();i.p(n.dictionary),j(t,2,i.d())}}(r,this.o),this.v=0),n&&j(r,r.length-4,this.c.d()),this.ondata(r,n)},t}(),J="undefined"!=typeof TextEncoder&&new TextEncoder,K="undefined"!=typeof TextDecoder&&new TextDecoder;try{K.decode(F,{stream:!0})}catch(t){}var N=function(){function t(t){this.ondata=t}return t.prototype.push=function(t,n){this.ondata||E(5),this.d&&E(4),this.ondata(P(t),this.d=n||!1)},t}();function P(n,r){if(J)return J.encode(n);for(var e=n.length,i=new t(n.length+(n.length>>1)),a=0,s=function(t){i[a++]=t},o=0;o<e;++o){if(a+5>i.length){var f=new t(a+8+(e-o<<1));f.set(i),i=f}var h=n.charCodeAt(o);h<128||r?s(h):h<2048?(s(192|h>>6),s(128|63&h)):h>55295&&h<57344?(s(240|(h=65536+(1047552&h)|1023&n.charCodeAt(++o))>>18),s(128|h>>12&63),s(128|h>>6&63),s(128|63&h)):(s(224|h>>12),s(128|h>>6&63),s(128|63&h))}return b(i,0,a)}function Q(t){return function(t,n){n||(n={});var r=S(),e=t.length;r.p(t);var i=O(t,n,B(n),8),a=i.length;return q(i,n),j(i,a-8,r.d()),j(i,a-4,e),i}(P(t))}const R=new class{constructor(){this._init()}clear(){this._init()}addEvent(t){if(!t)throw new Error("Adding invalid event");const n=this._hasEvents?",":"";this.stream.push(n+t),this._hasEvents=!0}finish(){this.stream.push("]",!0);const t=function(t){let n=0;for(const r of t)n+=r.length;const r=new Uint8Array(n);for(let n=0,e=0,i=t.length;n<i;n++){const i=t[n];r.set(i,e),e+=i.length}return r}(this._deflatedData);return this._init(),t}_init(){this._hasEvents=!1,this._deflatedData=[],this.deflate=new H,this.deflate.ondata=(t,n)=>{this._deflatedData.push(t)},this.stream=new N(((t,n)=>{this.deflate.push(t,n)})),this.stream.push("[")}},V={clear:()=>{R.clear()},addEvent:t=>R.addEvent(t),finish:()=>R.finish(),compress:t=>Q(t)};addEventListener("message",(function(t){const n=t.data.method,r=t.data.id,e=t.data.arg;if(n in V&&"function"==typeof V[n])try{const t=V[n](e);postMessage({id:r,method:n,success:!0,response:t})}catch(t){postMessage({id:r,method:n,success:!1,response:t.message}),console.error(t)}})),postMessage({id:void 0,method:"init",success:!0,response:void 0});';function zJe(){const e=new Blob([HJe]);return URL.createObjectURL(e)}const oee=["info","warn","error","log"],jx="[Replay] ";function r6(e,t="info"){cm({category:"console",data:{logger:"replay"},level:t,message:`${jx}${e}`},{level:t})}function VJe(){let e=!1,t=!1;const n={exception:()=>{},infoTick:()=>{},setConfig:r=>{e=r.captureExceptions,t=r.traceInternals}};return Ot?(oee.forEach(r=>{n[r]=(...i)=>{ut[r](jx,...i),t&&r6(i.join(""),Fve(r))}}),n.exception=(r,...i)=>{i.length&&n.error&&n.error(...i),ut.error(jx,r),e?zp(r):t&&r6(r,"error")},n.infoTick=(...r)=>{ut.info(jx,...r),t&&setTimeout(()=>r6(r[0]),0)}):oee.forEach(r=>{n[r]=()=>{}}),n}const Ft=VJe();
1501class bH extends Error{constructor(){super(`Event buffer exceeded maximum size of ${fH}.`)}}class F0e{constructor(){this.events=[],this._totalSize=0,this.hasCheckout=!1,this.waitForCheckout=!1}get hasEvents(){return this.events.length>0}get type(){return"sync"}destroy(){this.events=[]}async addEvent(t){const n=JSON.stringify(t).length;if(this._totalSize+=n,this._totalSize>fH)throw new bH;this.events.push(t)}finish(){return new Promise(t=>{const n=this.events;this.clear(),t(JSON.stringify(n))})}clear(){this.events=[],this._totalSize=0,this.hasCheckout=!1}getEarliestTimestamp(){const t=this.events.map(n=>n.timestamp).sort()[0];return t?yH(t):null}}class WJe{constructor(t){this._worker=t,this._id=0}ensureReady(){return this._ensureReadyPromise?this._ensureReadyPromise:(this._ensureReadyPromise=new Promise((t,n)=>{this._worker.addEventListener("message",({data:r})=>{r.success?t():n()},{once:!0}),this._worker.addEventListener("error",r=>{n(r)},{once:!0})}),this._ensureReadyPromise)}destroy(){Ot&&Ft.info("Destroying compression worker"),this._worker.terminate()}postMessage(t,n){const r=this._getAndIncrementId();return new Promise((i,o)=>{const s=({data:a})=>{const c=a;if(c.method===t&&c.id===r){if(this._worker.removeEventListener("message",s),!c.success){Ot&&Ft.error("Error in compression worker: ",c.response),o(new Error("Error in compression worker"));return}i(c.response)}};this._worker.addEventListener("message",s),this._worker.postMessage({id:r,method:t,arg:n})})}_getAndIncrementId(){return this._id++}}class qJe{constructor(t){this._worker=new WJe(t),this._earliestTimestamp=null,this._totalSize=0,this.hasCheckout=!1,this.waitForCheckout=!1}get hasEvents(){return!!this._earliestTimestamp}get type(){return"worker"}ensureReady(){return this._worker.ensureReady()}destroy(){this._worker.destroy()}addEvent(t){const n=yH(t.timestamp);(!this._earliestTimestamp||n<this._earliestTimestamp)&&(this._earliestTimestamp=n);const r=JSON.stringify(t);return this._totalSize+=r.length,this._totalSize>fH?Promise.reject(new bH):this._sendEventToWorker(r)}finish(){return this._finishRequest()}clear(){this._earliestTimestamp=null,this._totalSize=0,this.hasCheckout=!1,this._worker.postMessage("clear").then(null,t=>{Ot&&Ft.exception(t,'Sending "clear" message to worker failed',t)})}getEarliestTimestamp(){return this._earliestTimestamp}_sendEventToWorker(t){return this._worker.postMessage("addEvent",t)}async _finishRequest(){const t=await this._worker.postMessage("finish");return this._earliestTimestamp=null,this._totalSize=0,t}}class GJe{constructor(t){this._fallback=new F0e,this._compression=new qJe(t),this._used=this._fallback,this._ensureWorkerIsLoadedPromise=this._ensureWorkerIsLoaded()}get waitForCheckout(){return this._used.waitForCheckout}get type(){return this._used.type}get hasEvents(){return this._used.hasEvents}get hasCheckout(){return this._used.hasCheckout}set hasCheckout(t){this._used.hasCheckout=t}set waitForCheckout(t){this._used.waitForCheckout=t}destroy(){this._fallback.destroy(),this._compression.destroy()}clear(){return this._used.clear()}getEarliestTimestamp(){return this._used.getEarliestTimestamp()}addEvent(t){return this._used.addEvent(t)}async finish(){return await this.ensureWorkerIsLoaded(),this._used.finish()}ensureWorkerIsLoaded(){return this._ensureWorkerIsLoadedPromise}async _ensureWorkerIsLoaded(){try{await this._compression.ensureReady()}catch(t){Ot&&Ft.exception(t,"Failed to load the compression worker, falling back to simple buffer");return}await this._switchToCompressionWorker()}async _switchToCompressionWorker(){const{events:t,hasCheckout:n,waitForCheckout:r}=this._fallback,i=[];for(const o of t)i.push(this._compression.addEvent(o));this._compression.hasCheckout=n,this._compression.waitForCheckout=r,this._used=this._compression;try{await Promise.all(i),this._fallback.clear()}catch(o){Ot&&Ft.exception(o,"Failed to add events when switching buffers.")}}}function KJe({useCompression:e,workerUrl:t}){if(e&&window.Worker){const n=YJe(t);if(n)return n}return Ot&&Ft.info("Using simple buffer"),new F0e}function YJe(e){try{const t=e||QJe();if(!t)return;Ot&&Ft.info(`Using compression worker${e?` from ${e}`:""}`);const n=new Worker(t);return new GJe(n)}catch(t){Ot&&Ft.exception(t,"Failed to create compression worker")}}function QJe(){return typeof __SENTRY_EXCLUDE_REPLAY_WORKER__>"u"||!__SENTRY_EXCLUDE_REPLAY_WORKER__?zJe():""}function wH(){try{return"sessionStorage"in Er&&!!Er.sessionStorage}catch{return!1}}function XJe(e){JJe(),e.session=void 0}function JJe(){if(wH())try{Er.sessionStorage.removeItem(uH)}catch{}}function j0e(e){return e===void 0?!1:Math.random()<e}function U0e(e){const t=Date.now(),n=e.id||uc(),r=e.started||t,i=e.lastActivity||t,o=e.segmentId||0,s=e.sampled,a=e.previousSessionId;return{id:n,started:r,lastActivity:i,segmentId:o,sampled:s,previousSessionId:a}}function SH(e){if(wH())try{Er.sessionStorage.setItem(uH,JSON.stringify(e))}catch{}}function ZJe(e,t){return j0e(e)?"session":t?"buffer":!1}function see({sessionSampleRate:e,allowBuffering:t,stickySession:n=!1},{previousSessionId:r}={}){const i=ZJe(e,t),o=U0e({sampled:i,previousSessionId:r});return n&&SH(o),o}function eZe(){if(!wH())return null;try{const e=Er.sessionStorage.getItem(uH);if(!e)return null;const t=JSON.parse(e);return Ot&&Ft.infoTick("Loading existing session"),U0e(t)}catch{return null}}function i7(e,t,n=+new Date){return e===null||t===void 0||t<0?!0:t===0?!1:e+t<=n}function B0e(e,{maxReplayDuration:t,sessionIdleExpire:n,targetTime:r=Date.now()}){return i7(e.started,t,r)||i7(e.lastActivity,n,r)}function $0e(e,{sessionIdleExpire:t,maxReplayDuration:n}){return!(!B0e(e,{sessionIdleExpire:t,maxReplayDuration:n})||e.sampled==="buffer"&&e.segmentId===0)}function i6({sessionIdleExpire:e,maxReplayDuration:t,previousSessionId:n},r){const i=r.stickySession&&eZe();return i?$0e(i,{sessionIdleExpire:e,maxReplayDuration:t})?(Ot&&Ft.infoTick("Session in sessionStorage is expired, creating new one..."),see(r,{previousSessionId:i.id})):i:(Ot&&Ft.infoTick("Creating new session"),see(r,{previousSessionId:n}))}function tZe(e){return e.type===dn.Custom}function _H(e,t,n){return z0e(e,t)?(H0e(e,t,n),!0):!1}function nZe(e,t,n){return z0e(e,t)?H0e(e,t,n):Promise.resolve(null)}async function H0e(e,t,n){const{eventBuffer:r}=e;if(!r||r.waitForCheckout&&!n)return null;const i=e.recordingMode==="buffer";
1501try{n&&i&&r.clear(),n&&(r.hasCheckout=!0,r.waitForCheckout=!1);const o=e.getOptions(),s=rZe(t,o.beforeAddRecordingEvent);return s?await r.addEvent(s):void 0}catch(o){const s=o&&o instanceof bH,a=s?"addEventSizeExceeded":"addEvent";if(s&&i)return r.clear(),r.waitForCheckout=!0,null;e.handleException(o),await e.stop({reason:a});const c=_n();c&&c.recordDroppedEvent("internal_sdk_error","replay")}}function z0e(e,t){if(!e.eventBuffer||e.isPaused()||!e.isEnabled())return!1;const n=yH(t.timestamp);return n+e.timeouts.sessionIdlePause<Date.now()?!1:n>e.getContext().initialTimestamp+e.getOptions().maxReplayDuration?(Ot&&Ft.infoTick(`Skipping event with timestamp ${n} because it is after maxReplayDuration`),!1):!0}function rZe(e,t){try{if(typeof t=="function"&&tZe(e))return t(e)}catch(n){return Ot&&Ft.exception(n,"An error occurred in the `beforeAddRecordingEvent` callback, skipping the event..."),null}return e}function CH(e){return!e.type}function o7(e){return e.type==="transaction"}function iZe(e){return e.type==="replay_event"}function aee(e){return e.type==="feedback"}function oZe(e){return(t,n)=>{if(!e.isEnabled()||!CH(t)&&!o7(t))return;const r=n&&n.statusCode;if(!(!r||r<200||r>=300)){if(o7(t)){sZe(e,t);return}aZe(e,t)}}}function sZe(e,t){const n=e.getContext();t.contexts&&t.contexts.trace&&t.contexts.trace.trace_id&&n.traceIds.size<100&&n.traceIds.add(t.contexts.trace.trace_id)}function aZe(e,t){const n=e.getContext();if(t.event_id&&n.errorIds.size<100&&n.errorIds.add(t.event_id),e.recordingMode!=="buffer"||!t.tags||!t.tags.replayId)return;const{beforeErrorSampling:r}=e.getOptions();typeof r=="function"&&!r(t)||_1(async()=>{try{await e.sendBufferedReplayOrFlush()}catch(i){e.handleException(i)}})}function cZe(e){return t=>{!e.isEnabled()||!CH(t)||lZe(e,t)}}function lZe(e,t){const n=t.exception&&t.exception.values&&t.exception.values[0]&&t.exception.values[0].value;if(typeof n=="string"&&(n.match(/(reactjs\.org\/docs\/error-decoder\.html\?invariant=|react\.dev\/errors\/)(418|419|422|423|425)/)||n.match(/(does not match server-rendered HTML|Hydration failed because)/i))){const r=ed({category:"replay.hydrate-error",data:{url:Yge()}});OE(e,r)}}function uZe(e){const t=_n();t&&t.on("beforeAddBreadcrumb",n=>dZe(e,n))}function dZe(e,t){if(!e.isEnabled()||!V0e(t))return;const n=fZe(t);n&&OE(e,n)}function fZe(e){return!V0e(e)||["fetch","xhr","sentry.event","sentry.transaction"].includes(e.category)||e.category.startsWith("ui.")?null:e.category==="console"?hZe(e):ed(e)}function hZe(e){const t=e.data&&e.data.arguments;if(!Array.isArray(t)||t.length===0)return ed(e);let n=!1;const r=t.map(i=>{if(!i)return i;if(typeof i=="string")return i.length>NT?(n=!0,`${i.slice(0,NT)}…`):i;if(typeof i=="object")try{const o=Pl(i,7);return JSON.stringify(o).length>NT?(n=!0,`${JSON.stringify(o,null,2).slice(0,NT)}…`):o}catch{}return i});return ed({...e,data:{...e.data,arguments:r,...n?{_meta:{warnings:["CONSOLE_ARG_TRUNCATED"]}}:{}}})}function V0e(e){return!!e.category}function pZe(e,t){return e.type||!e.exception||!e.exception.values||!e.exception.values.length?!1:!!(t.originalException&&t.originalException.__rrweb__)}function W0e(){const e=Ir().getPropagationContext().dsc;e&&delete e.replay_id;const t=Vo();if(t){const n=$v(t);delete n.replay_id}}function mZe(e,t){e.triggerUserActivity(),e.addUpdate(()=>t.timestamp?(e.throttledAddEvent({type:dn.Custom,timestamp:t.timestamp*1e3,data:{tag:"breadcrumb",payload:{timestamp:t.timestamp,type:"default",category:"sentry.feedback",data:{feedbackId:t.event_id}}}}),!1):!0)}function gZe(e,t){return e.recordingMode!=="buffer"||t.message===dH||!t.exception||t.type?!1:j0e(e.getOptions().errorSampleRate)}function vZe(e){return Object.assign((t,n)=>!e.isEnabled()||e.isPaused()?t:iZe(t)?(delete t.breadcrumbs,t):!CH(t)&&!o7(t)&&!aee(t)?t:e.checkAndHandleExpiredSession()?aee(t)?(e.flush(),t.contexts.feedback.replay_id=e.getSessionId(),mZe(e,t),t):pZe(t,n)&&!e.getOptions()._experiments.captureExceptions?(Ot&&Ft.log("Ignoring error from rrweb internals",t),null):((gZe(e,t)||e.recordingMode==="session")&&(t.tags={...t.tags,replayId:e.getSessionId()}),t):(W0e(),t),{id:"Replay"})}function $P(e,t){return t.map(({type:n,start:r,end:i,name:o,data:s})=>{const a=e.throttledAddEvent({type:dn.Custom,timestamp:r,data:{tag:"performanceSpan",payload:{op:n,description:o,startTimestamp:r,endTimestamp:i,data:s}}});
1501return typeof a=="string"?Promise.resolve(null):a})}function yZe(e){const{from:t,to:n}=e,r=Date.now()/1e3;return{type:"navigation.push",start:r,end:r,name:n,data:{previous:t}}}function bZe(e){return t=>{if(!e.isEnabled())return;const n=yZe(t);n!==null&&(e.getContext().urls.push(n.name),e.triggerUserActivity(),e.addUpdate(()=>($P(e,[n]),!1)))}}function wZe(e,t){return Ot&&e.getOptions()._experiments.traceInternals?!1:yGe(t,_n())}function q0e(e,t){e.isEnabled()&&t!==null&&(wZe(e,t.name)||e.addUpdate(()=>($P(e,[t]),!0)))}function HP(e){if(!e)return;const t=new TextEncoder;try{if(typeof e=="string")return t.encode(e).length;if(e instanceof URLSearchParams)return t.encode(e.toString()).length;if(e instanceof FormData){const n=Q0e(e);return t.encode(n).length}if(e instanceof Blob)return e.size;if(e instanceof ArrayBuffer)return e.byteLength}catch{}}function G0e(e){if(!e)return;const t=parseInt(e,10);return isNaN(t)?void 0:t}function K0e(e){try{if(typeof e=="string")return[e];if(e instanceof URLSearchParams)return[e.toString()];if(e instanceof FormData)return[Q0e(e)];if(!e)return[void 0]}catch(t){return Ot&&Ft.exception(t,"Failed to serialize body",e),[void 0,"BODY_PARSE_ERROR"]}return Ot&&Ft.info("Skipping network body because of body type",e),[void 0,"UNPARSEABLE_BODY_TYPE"]}function DI(e,t){if(!e)return{headers:{},size:void 0,_meta:{warnings:[t]}};const n={...e._meta},r=n.warnings||[];return n.warnings=[...r,t],e._meta=n,e}function Y0e(e,t){if(!t)return null;const{startTimestamp:n,endTimestamp:r,url:i,method:o,statusCode:s,request:a,response:c}=t;return{type:e,start:n/1e3,end:r/1e3,name:i,data:wo({method:o,statusCode:s,request:a,response:c})}}function hC(e){return{headers:{},size:e,_meta:{warnings:["URL_SKIPPED"]}}}function Vp(e,t,n){if(!t&&Object.keys(e).length===0)return;if(!t)return{headers:e};if(!n)return{headers:e,size:t};const r={headers:e,size:t},{body:i,warnings:o}=SZe(n);return r.body=i,o&&o.length>0&&(r._meta={warnings:o}),r}function s7(e,t){return Object.entries(e).reduce((n,[r,i])=>{const o=r.toLowerCase();return t.includes(o)&&e[r]&&(n[o]=i),n},{})}function Q0e(e){return new URLSearchParams(e).toString()}function SZe(e){if(!e||typeof e!="string")return{body:e};const t=e.length>$Z,n=_Ze(e);if(t){const r=e.slice(0,$Z);return n?{body:r,warnings:["MAYBE_JSON_TRUNCATED"]}:{body:`${r}…`,warnings:["TEXT_TRUNCATED"]}}if(n)try{return{body:JSON.parse(e)}}catch{}return{body:e}}function _Ze(e){const t=e[0],n=e[e.length-1];return t==="["&&n==="]"||t==="{"&&n==="}"}function LI(e,t){const n=CZe(e);return Hp(n,t)}function CZe(e,t=Er.document.baseURI){if(e.startsWith("http://")||e.startsWith("https://")||e.startsWith(Er.location.origin))return e;const n=new URL(e,t);if(n.origin!==new URL(t).origin)return e;const r=n.href;return!e.endsWith("/")&&r.endsWith("/")?r.slice(0,-1):r}async function EZe(e,t,n){try{const r=await kZe(e,t,n),i=Y0e("resource.fetch",r);q0e(n.replay,i)}catch(r){Ot&&Ft.exception(r,"Failed to capture fetch breadcrumb")}}function TZe(e,t){const{input:n,response:r}=t,i=n?X0e(n):void 0,o=HP(i),s=r?G0e(r.headers.get("content-length")):void 0;o!==void 0&&(e.data.request_body_size=o),s!==void 0&&(e.data.response_body_size=s)}async function kZe(e,t,n){const r=Date.now(),{startTimestamp:i=r,endTimestamp:o=r}=t,{url:s,method:a,status_code:c=0,request_body_size:l,response_body_size:u}=e.data,d=LI(s,n.networkDetailAllowUrls)&&!LI(s,n.networkDetailDenyUrls),f=d?xZe(n,t.input,l):hC(l),p=await AZe(d,n,t.response,u);return{startTimestamp:i,endTimestamp:o,url:s,method:a,statusCode:c,request:f,response:p}}function xZe({networkCaptureBodies:e,networkRequestHeaders:t},n,r){const i=n?PZe(n,t):{};if(!e)return Vp(i,r,void 0);const o=X0e(n),[s,a]=K0e(o),c=Vp(i,r,s);return a?DI(c,a):c}async function AZe(e,{networkCaptureBodies:t,networkResponseHeaders:n},r,i){if(!e&&i!==void 0)return hC(i);const o=r?J0e(r.headers,n):{};if(!r||!t&&i!==void 0)return Vp(o,i,void 0);const[s,a]=await RZe(r),c=IZe(s,{networkCaptureBodies:t,responseBodySize:i,captureDetails:e,headers:o});return a?DI(c,a):c}function IZe(e,{networkCaptureBodies:t,responseBodySize:n,captureDetails:r,headers:i}){try{const o=e&&e.length&&n===void 0?HP(e):n;return r?t?Vp(i,o,e):Vp(i,o,void 0):hC(o)}catch(o){return Ot&&Ft.exception(o,"Failed to serialize response body"),Vp(i,n,void 0)}}async function RZe(e){const t=OZe(e);if(!t)return[void 0,"BODY_PARSE_ERROR"];try{return[await NZe(t)]}catch(n){return n instanceof Error&&n.message.indexOf("Timeout")>-1?(Ot&&Ft.warn("Parsing text body from response timed out"),[void 0,"BODY_PARSE_TIMEOUT"]):(Ot&&Ft.exception(n,"Failed to get text body from response"),[void 0,"BODY_PARSE_ERROR"])}}function X0e(e=[]){if(!(e.length!==2||typeof e[1]!="object"))return e[1].body}function J0e(e,t){const n={};return t.forEach(r=>{e.get(r)&&(n[r]=e.get(r))}),n}
1501function PZe(e,t){return e.length===1&&typeof e[0]!="string"?cee(e[0],t):e.length===2?cee(e[1],t):{}}function cee(e,t){if(!e)return{};const n=e.headers;return n?n instanceof Headers?J0e(n,t):Array.isArray(n)?{}:s7(n,t):{}}function OZe(e){try{return e.clone()}catch(t){Ot&&Ft.exception(t,"Failed to clone response body")}}function NZe(e){return new Promise((t,n)=>{const r=_1(()=>n(new Error("Timeout while trying to read response body")),500);MZe(e).then(i=>t(i),i=>n(i)).finally(()=>clearTimeout(r))})}async function MZe(e){return await e.text()}async function DZe(e,t,n){try{const r=FZe(e,t,n),i=Y0e("resource.xhr",r);q0e(n.replay,i)}catch(r){Ot&&Ft.exception(r,"Failed to capture xhr breadcrumb")}}function LZe(e,t){const{xhr:n,input:r}=t;if(!n)return;const i=HP(r),o=n.getResponseHeader("content-length")?G0e(n.getResponseHeader("content-length")):$Ze(n.response,n.responseType);i!==void 0&&(e.data.request_body_size=i),o!==void 0&&(e.data.response_body_size=o)}function FZe(e,t,n){const r=Date.now(),{startTimestamp:i=r,endTimestamp:o=r,input:s,xhr:a}=t,{url:c,method:l,status_code:u=0,request_body_size:d,response_body_size:f}=e.data;if(!c)return null;if(!a||!LI(c,n.networkDetailAllowUrls)||LI(c,n.networkDetailDenyUrls)){const T=hC(d),x=hC(f);return{startTimestamp:i,endTimestamp:o,url:c,method:l,statusCode:u,request:T,response:x}}const p=a[bg],g=p?s7(p.request_headers,n.networkRequestHeaders):{},m=s7(jZe(a),n.networkResponseHeaders),[y,v]=n.networkCaptureBodies?K0e(s):[void 0],[w,S]=n.networkCaptureBodies?UZe(a):[void 0],C=Vp(g,d,y),E=Vp(m,f,w);return{startTimestamp:i,endTimestamp:o,url:c,method:l,statusCode:u,request:v?DI(C,v):C,response:S?DI(E,S):E}}function jZe(e){const t=e.getAllResponseHeaders();return t?t.split(`\r
1502`).reduce((n,r)=>{const[i,o]=r.split(": ");return o&&(n[i.toLowerCase()]=o),n},{}):{}}function UZe(e){const t=[];try{return[e.responseText]}catch(n){t.push(n)}try{return BZe(e.response,e.responseType)}catch(n){t.push(n)}return Ot&&Ft.warn("Failed to get xhr response body",...t),[void 0]}function BZe(e,t){try{if(typeof e=="string")return[e];if(e instanceof Document)return[e.body.outerHTML];if(t==="json"&&e&&typeof e=="object")return[JSON.stringify(e)];if(!e)return[void 0]}catch(n){return Ot&&Ft.exception(n,"Failed to serialize body",e),[void 0,"BODY_PARSE_ERROR"]}return Ot&&Ft.info("Skipping network body because of body type",e),[void 0,"UNPARSEABLE_BODY_TYPE"]}function $Ze(e,t){try{const n=t==="json"&&e&&typeof e=="object"?JSON.stringify(e):e;return HP(n)}catch{return}}function HZe(e){const t=_n();try{const{networkDetailAllowUrls:n,networkDetailDenyUrls:r,networkCaptureBodies:i,networkRequestHeaders:o,networkResponseHeaders:s}=e.getOptions(),a={replay:e,networkDetailAllowUrls:n,networkDetailDenyUrls:r,networkCaptureBodies:i,networkRequestHeaders:o,networkResponseHeaders:s};t&&t.on("beforeAddBreadcrumb",(c,l)=>zZe(a,c,l))}catch{}}function zZe(e,t,n){if(t.data)try{VZe(t)&&qZe(n)&&(LZe(t,n),DZe(t,n,e)),WZe(t)&&GZe(n)&&(TZe(t,n),EZe(t,n,e))}catch(r){Ot&&Ft.exception(r,"Error when enriching network breadcrumb")}}function VZe(e){return e.category==="xhr"}function WZe(e){return e.category==="fetch"}function qZe(e){return e&&e.xhr}function GZe(e){return e&&e.response}function KZe(e){const t=_n();s0e(CJe(e)),LP(bZe(e)),uZe(e),HZe(e);const n=vZe(e);Xqe(n),t&&(t.on("beforeSendEvent",cZe(e)),t.on("afterSendEvent",oZe(e)),t.on("createDsc",r=>{const i=e.getSessionId();i&&e.isEnabled()&&e.recordingMode==="session"&&e.checkAndHandleExpiredSession()&&(r.replay_id=i)}),t.on("spanStart",r=>{e.lastActiveSpan=r}),t.on("spanEnd",r=>{e.lastActiveSpan=r}),t.on("beforeSendFeedback",(r,i)=>{const o=e.getSessionId();i&&i.includeReplay&&e.isEnabled()&&o&&r.contexts&&r.contexts.feedback&&(r.contexts.feedback.replay_id=o)}))}async function YZe(e){try{return Promise.all($P(e,[QZe(Er.performance.memory)]))}catch{return[]}}function QZe(e){const{jsHeapSizeLimit:t,totalJSHeapSize:n,usedJSHeapSize:r}=e,i=Date.now()/1e3;return{type:"memory",name:"memory",start:i,end:i,data:{memory:{jsHeapSizeLimit:t,totalJSHeapSize:n,usedJSHeapSize:r}}}}function XZe(e,t,n){let r,i,o;const s=n&&n.maxWait?Math.max(n.maxWait,t):0;function a(){return c(),r=e(),r}function c(){i!==void 0&&clearTimeout(i),o!==void 0&&clearTimeout(o),i=o=void 0}function l(){return i!==void 0||o!==void 0?a():r}function u(){return i&&clearTimeout(i),i=_1(a,t),s&&o===void 0&&(o=_1(a,s)),r}return u.cancel=c,u.flush=l,u}const Qm=En.navigator;function JZe(){return/iPhone|iPad|iPod/i.test(Qm&&Qm.userAgent||"")||/Macintosh/i.test(Qm&&Qm.userAgent||"")&&Qm&&Qm.maxTouchPoints&&Qm.maxTouchPoints>1?{sampling:{mousemove:!1}}:{}}function ZZe(e){let t=!1;return(n,r)=>{if(!e.checkAndHandleExpiredSession()){Ot&&Ft.warn("Received replay event after session expired.");return}const i=r||!t;t=!0,e.clickDetector&&yJe(e.clickDetector,n),e.addUpdate(()=>{if(e.recordingMode==="buffer"&&i&&e.setInitialState(),!_H(e,n,i))return!0;
1502if(!i)return!1;const o=e.session;if(tet(e,i),e.recordingMode==="buffer"&&o&&e.eventBuffer){const s=e.eventBuffer.getEarliestTimestamp();s&&(Ot&&Ft.info(`Updating session start time to earliest event in buffer to ${new Date(s)}`),o.started=s,e.getOptions().stickySession&&SH(o))}return o&&o.previousSessionId||e.recordingMode==="session"&&e.flush(),!0})}}function eet(e){const t=e.getOptions();return{type:dn.Custom,timestamp:Date.now(),data:{tag:"options",payload:{shouldRecordCanvas:e.isRecordingCanvas(),sessionSampleRate:t.sessionSampleRate,errorSampleRate:t.errorSampleRate,useCompressionOption:t.useCompression,blockAllMedia:t.blockAllMedia,maskAllText:t.maskAllText,maskAllInputs:t.maskAllInputs,useCompression:e.eventBuffer?e.eventBuffer.type==="worker":!1,networkDetailHasUrls:t.networkDetailAllowUrls.length>0,networkCaptureBodies:t.networkCaptureBodies,networkRequestHasHeaders:t.networkRequestHeaders.length>0,networkResponseHasHeaders:t.networkResponseHeaders.length>0}}}}function tet(e,t){!t||!e.session||e.session.segmentId!==0||_H(e,eet(e),!1)}function net(e,t,n,r){return Hv(bve(e,nH(e),r,n),[[{type:"replay_event"},e],[{type:"replay_recording",length:typeof t=="string"?new TextEncoder().encode(t).length:t.length},t]])}function ret({recordingData:e,headers:t}){let n;const r=`${JSON.stringify(t)}
1503`;if(typeof e=="string")n=`${r}${e}`;else{const o=new TextEncoder().encode(r);n=new Uint8Array(o.length+e.length),n.set(o),n.set(e,o.length)}return n}async function iet({client:e,scope:t,replayId:n,event:r}){const i=typeof e._integrations=="object"&&e._integrations!==null&&!Array.isArray(e._integrations)?Object.keys(e._integrations):void 0,o={event_id:n,integrations:i};e.emit("preprocessEvent",r,o);const s=await Eve(e.getOptions(),r,o,t,e,sl());if(!s)return null;s.platform=s.platform||"javascript";const a=e.getSdkMetadata(),{name:c,version:l}=a&&a.sdk||{};return s.sdk={...s.sdk,name:c||"sentry.javascript.unknown",version:l||"0.0.0"},s}async function oet({recordingData:e,replayId:t,segmentId:n,eventContext:r,timestamp:i,session:o}){const s=ret({recordingData:e,headers:{segment_id:n}}),{urls:a,errorIds:c,traceIds:l,initialTimestamp:u}=r,d=_n(),f=Ir(),p=d&&d.getTransport(),g=d&&d.getDsn();if(!d||!p||!g||!o.sampled)return ah({});const m={type:FQe,replay_start_timestamp:u/1e3,timestamp:i/1e3,error_ids:c,trace_ids:l,urls:a,replay_id:t,segment_id:n,replay_type:o.sampled},y=await iet({scope:f,client:d,replayId:t,event:m});if(!y)return d.recordDroppedEvent("event_processor","replay",m),Ot&&Ft.info("An event processor returned `null`, will not send event."),ah({});delete y.sdkProcessingMetadata;const v=net(y,s,g,d.getOptions().tunnel);let w;try{w=await p.send(v)}catch(C){const E=new Error(dH);try{E.cause=C}catch{}throw E}if(typeof w.statusCode=="number"&&(w.statusCode<200||w.statusCode>=300))throw new Z0e(w.statusCode);const S=Mve({},w);if(Nve(S,"replay"))throw new EH(S);return w}class Z0e extends Error{constructor(t){super(`Transport returned status code ${t}`)}}class EH extends Error{constructor(t){super("Rate limit hit"),this.rateLimits=t}}async function eye(e,t={count:0,interval:zQe}){const{recordingData:n,onError:r}=e;if(n.length)try{return await oet(e),!0}catch(i){if(i instanceof Z0e||i instanceof EH)throw i;if(kve("Replays",{_retryCount:t.count}),r&&r(i),t.count>=VQe){const o=new Error(`${dH} - max retries exceeded`);try{o.cause=i}catch{}throw o}return t.interval*=++t.count,new Promise((o,s)=>{_1(async()=>{try{await eye(e,t),o(!0)}catch(a){s(a)}},t.interval)})}}const tye="__THROTTLED",set="__SKIPPED";function aet(e,t,n){const r=new Map,i=a=>{const c=a-n;r.forEach((l,u)=>{u<c&&r.delete(u)})},o=()=>[...r.values()].reduce((a,c)=>a+c,0);let s=!1;return(...a)=>{const c=Math.floor(Date.now()/1e3);if(i(c),o()>=t){const u=s;return s=!0,u?set:tye}s=!1;const l=r.get(c)||0;return r.set(c,l+1),e(...a)}}class rp{constructor({options:t,recordingOptions:n}){rp.prototype.__init.call(this),rp.prototype.__init2.call(this),rp.prototype.__init3.call(this),rp.prototype.__init4.call(this),rp.prototype.__init5.call(this),rp.prototype.__init6.call(this),this.eventBuffer=null,this.performanceEntries=[],this.replayPerformanceEntries=[],this.recordingMode="session",this.timeouts={sessionIdlePause:jQe,sessionIdleExpire:UQe},this._lastActivity=Date.now(),this._isEnabled=!1,this._isPaused=!1,this._requiresManualStart=!1,this._hasInitializedCoreListeners=!1,this._context={errorIds:new Set,traceIds:new Set,urls:[],initialTimestamp:Date.now(),initialUrl:""},this._recordingOptions=n,this._options=t,this._debouncedFlush=XZe(()=>this._flush(),this._options.flushMinDelay,{maxWait:this._options.flushMaxDelay}),this._throttledAddEvent=aet((s,a)=>nZe(this,s,a),300,5);const{slowClickTimeout:r,slowClickIgnoreSelectors:i}=this.getOptions(),o=r?{threshold:Math.min(WQe,r),timeout:r,scrollTimeout:qQe,ignoreSelector:i?i.join(","):""}:void 0;if(o&&(this.clickDetector=new pJe(this,o)),Ot){const s=t._experiments;Ft.setConfig({captureExceptions:!!s.captureExceptions,traceInternals:!!s.traceInternals})}}getContext(){return this._context}isEnabled(){return this._isEnabled}isPaused(){return this._isPaused}isRecordingCanvas(){return!!this._canvas}getOptions(){return this._options}handleException(t){Ot&&Ft.exception(t),this._options.onError&&this._options.onError(t)}initializeSampling(t){const{errorSampleRate:n,sessionSampleRate:r}=this._options,i=n<=0&&r<=0;if(this._requiresManualStart=i,!i){if(this._initializeSessionForSampling(t),!this.session){Ot&&Ft.exception(new Error("Unable to initialize and create session"));return}this.session.sampled!==!1&&(this.recordingMode=this.session.sampled==="buffer"&&this.session.segmentId===0?"buffer":"session",Ot&&Ft.infoTick(`Starting replay in ${this.recordingMode} mode`),this._initializeRecording())}}
1503start(){if(this._isEnabled&&this.recordingMode==="session"){Ot&&Ft.info("Recording is already in progress");return}if(this._isEnabled&&this.recordingMode==="buffer"){Ot&&Ft.info("Buffering is in progress, call `flush()` to save the replay");return}Ot&&Ft.infoTick("Starting replay in session mode"),this._updateUserActivity();const t=i6({maxReplayDuration:this._options.maxReplayDuration,sessionIdleExpire:this.timeouts.sessionIdleExpire},{stickySession:this._options.stickySession,sessionSampleRate:1,allowBuffering:!1});this.session=t,this._initializeRecording()}startBuffering(){if(this._isEnabled){Ot&&Ft.info("Buffering is in progress, call `flush()` to save the replay");return}Ot&&Ft.infoTick("Starting replay in buffer mode");const t=i6({sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration},{stickySession:this._options.stickySession,sessionSampleRate:0,allowBuffering:!0});this.session=t,this.recordingMode="buffer",this._initializeRecording()}startRecording(){try{const t=this._canvas;this._stopRecording=Bf({...this._recordingOptions,...this.recordingMode==="buffer"?{checkoutEveryNms:HQe}:this._options._experiments.continuousCheckout&&{checkoutEveryNms:Math.max(36e4,this._options._experiments.continuousCheckout)},emit:ZZe(this),...JZe(),onMutation:this._onMutationHandler,...t?{recordCanvas:t.recordCanvas,getCanvasManager:t.getCanvasManager,sampling:t.sampling,dataURLOptions:t.dataURLOptions}:{}})}catch(t){this.handleException(t)}}stopRecording(){try{return this._stopRecording&&(this._stopRecording(),this._stopRecording=void 0),!0}catch(t){return this.handleException(t),!1}}async stop({forceFlush:t=!1,reason:n}={}){if(this._isEnabled){this._isEnabled=!1;try{Ot&&Ft.info(`Stopping Replay${n?` triggered by ${n}`:""}`),W0e(),this._removeListeners(),this.stopRecording(),this._debouncedFlush.cancel(),t&&await this._flush({force:!0}),this.eventBuffer&&this.eventBuffer.destroy(),this.eventBuffer=null,XJe(this)}catch(r){this.handleException(r)}}}pause(){this._isPaused||(this._isPaused=!0,this.stopRecording(),Ot&&Ft.info("Pausing replay"))}resume(){!this._isPaused||!this._checkSession()||(this._isPaused=!1,this.startRecording(),Ot&&Ft.info("Resuming replay"))}async sendBufferedReplayOrFlush({continueRecording:t=!0}={}){if(this.recordingMode==="session")return this.flushImmediate();const n=Date.now();Ot&&Ft.info("Converting buffer to session"),await this.flushImmediate();const r=this.stopRecording();!t||!r||this.recordingMode!=="session"&&(this.recordingMode="session",this.session&&(this._updateUserActivity(n),this._updateSessionActivity(n),this._maybeSaveSession()),this.startRecording())}addUpdate(t){const n=t();this.recordingMode!=="buffer"&&n!==!0&&this._debouncedFlush()}triggerUserActivity(){if(this._updateUserActivity(),!this._stopRecording){if(!this._checkSession())return;this.resume();return}this.checkAndHandleExpiredSession(),this._updateSessionActivity()}updateUserActivity(){this._updateUserActivity(),this._updateSessionActivity()}conditionalFlush(){return this.recordingMode==="buffer"?Promise.resolve():this.flushImmediate()}flush(){return this._debouncedFlush()}flushImmediate(){return this._debouncedFlush(),this._debouncedFlush.flush()}cancelFlush(){this._debouncedFlush.cancel()}getSessionId(){return this.session&&this.session.id}checkAndHandleExpiredSession(){if(this._lastActivity&&i7(this._lastActivity,this.timeouts.sessionIdlePause)&&this.session&&this.session.sampled==="session"){this.pause();return}return!!this._checkSession()}setInitialState(){const t=`${Er.location.pathname}${Er.location.hash}${Er.location.search}`,n=`${Er.location.origin}${t}`;this.performanceEntries=[],this.replayPerformanceEntries=[],this._clearContext(),this._context.initialUrl=n,this._context.initialTimestamp=Date.now(),this._context.urls.push(n)}throttledAddEvent(t,n){const r=this._throttledAddEvent(t,n);if(r===tye){const i=ed({category:"replay.throttled"});this.addUpdate(()=>!_H(this,{type:aJe,timestamp:i.timestamp||0,data:{tag:"breadcrumb",payload:i,metric:!0}}))}return r}getCurrentRoute(){const t=this.lastActiveSpan||Vo(),n=t&&as(t),i=(n&&Ln(n).data||{})[Zu];if(!(!n||!i||!["route","custom"].includes(i)))return Ln(n).description}_initializeRecording(){this.setInitialState(),this._updateSessionActivity(),this.eventBuffer=KJe({useCompression:this._options.useCompression,workerUrl:this._options.workerUrl}),this._removeListeners(),this._addListeners(),this._isEnabled=!0,this._isPaused=!1,this.startRecording()}_initializeSessionForSampling(t){const n=this._options.errorSampleRate>0,r=i6({sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration,previousSessionId:t},{stickySession:this._options.stickySession,sessionSampleRate:this._options.sessionSampleRate,allowBuffering:n});this.session=r}_checkSession(){if(!this.session)return!1;const t=this.session;return $0e(t,{sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration})?(this._refreshSession(t),!1):!0}async _refreshSession(t){this._isEnabled&&(await this.stop({reason:"refresh session"}),this.initializeSampling(t.id))}_addListeners(){try{Er.document.addEventListener("visibilitychange",this._handleVisibilityChange),Er.addEventListener("blur",this._handleWindowBlur),Er.addEventListener("focus",this._handleWindowFocus),Er.addEventListener("keydown",this._handleKeyboardEvent),this.clickDetector&&this.clickDetector.addListeners(),this._hasInitializedCoreListeners||(KZe(this),this._hasInitializedCoreListeners=!0)}catch(t){this.handleException(t)}this._performanceCleanupCallback=$Je(this)}_removeListeners(){try{Er.document.removeEventListener("visibilitychange",this._handleVisibilityChange),Er.removeEventListener("blur",this._handleWindowBlur),Er.removeEventListener("focus",this._handleWindowFocus),Er.removeEventListener("keydown",this._handleKeyboardEvent),this.clickDetector&&this.clickDetector.removeListeners(),this._performanceCleanupCallback&&this._performanceCleanupCallback()}catch(t){this.handleException(t)}}__init(){this._handleVisibilityChange=()=>{Er.document.visibilityState==="visible"?this._doChangeToForegroundTasks():this._doChangeToBackgroun
1503dTasks()}}__init2(){this._handleWindowBlur=()=>{const t=ed({category:"ui.blur"});this._doChangeToBackgroundTasks(t)}}__init3(){this._handleWindowFocus=()=>{const t=ed({category:"ui.focus"});this._doChangeToForegroundTasks(t)}}__init4(){this._handleKeyboardEvent=t=>{xJe(this,t)}}_doChangeToBackgroundTasks(t){!this.session||B0e(this.session,{maxReplayDuration:this._options.maxReplayDuration,sessionIdleExpire:this.timeouts.sessionIdleExpire})||(t&&this._createCustomBreadcrumb(t),this.conditionalFlush())}_doChangeToForegroundTasks(t){if(!this.session)return;if(!this.checkAndHandleExpiredSession()){Ot&&Ft.info("Document has become active, but session has expired");return}t&&this._createCustomBreadcrumb(t)}_updateUserActivity(t=Date.now()){this._lastActivity=t}_updateSessionActivity(t=Date.now()){this.session&&(this.session.lastActivity=t,this._maybeSaveSession())}_createCustomBreadcrumb(t){this.addUpdate(()=>{this.throttledAddEvent({type:dn.Custom,timestamp:t.timestamp||0,data:{tag:"breadcrumb",payload:t}})})}_addPerformanceEntries(){let t=PJe(this.performanceEntries).concat(this.replayPerformanceEntries);if(this.performanceEntries=[],this.replayPerformanceEntries=[],this._requiresManualStart){const n=this._context.initialTimestamp/1e3;t=t.filter(r=>r.start>=n)}return Promise.all($P(this,t))}_clearContext(){this._context.errorIds.clear(),this._context.traceIds.clear(),this._context.urls=[]}_updateInitialTimestampFromEventBuffer(){const{session:t,eventBuffer:n}=this;if(!t||!n||this._requiresManualStart||t.segmentId)return;const r=n.getEarliestTimestamp();r&&r<this._context.initialTimestamp&&(this._context.initialTimestamp=r)}_popEventContext(){const t={initialTimestamp:this._context.initialTimestamp,initialUrl:this._context.initialUrl,errorIds:Array.from(this._context.errorIds),traceIds:Array.from(this._context.traceIds),urls:this._context.urls};return this._clearContext(),t}async _runFlush(){const t=this.getSessionId();if(!this.session||!this.eventBuffer||!t){Ot&&Ft.error("No session or eventBuffer found to flush.");return}if(await this._addPerformanceEntries(),!(!this.eventBuffer||!this.eventBuffer.hasEvents)&&(await YZe(this),!!this.eventBuffer&&t===this.getSessionId()))try{this._updateInitialTimestampFromEventBuffer();const n=Date.now();if(n-this._context.initialTimestamp>this._options.maxReplayDuration+3e4)throw new Error("Session is too long, not sending replay");const r=this._popEventContext(),i=this.session.segmentId++;this._maybeSaveSession();const o=await this.eventBuffer.finish();await eye({replayId:t,recordingData:o,segmentId:i,eventContext:r,session:this.session,timestamp:n,onError:s=>this.handleException(s)})}catch(n){this.handleException(n),this.stop({reason:"sendReplay"});const r=_n();if(r){const i=n instanceof EH?"ratelimit_backoff":"send_error";r.recordDroppedEvent(i,"replay")}}}__init5(){this._flush=async({force:t=!1}={})=>{if(!this._isEnabled&&!t)return;if(!this.checkAndHandleExpiredSession()){Ot&&Ft.error("Attempting to finish replay event after session expired.");return}if(!this.session)return;const n=this.session.started,i=Date.now()-n;this._debouncedFlush.cancel();const o=i<this._options.minReplayDuration,s=i>this._options.maxReplayDuration+5e3;if(o||s){Ot&&Ft.info(`Session duration (${Math.floor(i/1e3)}s) is too ${o?"short":"long"}, not sending replay.`),o&&this._debouncedFlush();return}const a=this.eventBuffer;a&&this.session.segmentId===0&&!a.hasCheckout&&Ot&&Ft.info("Flushing initial segment without checkout.");const c=!!this._flushLock;this._flushLock||(this._flushLock=this._runFlush());try{await this._flushLock}catch(l){this.handleException(l)}finally{this._flushLock=void 0,c&&this._debouncedFlush()}}}_maybeSaveSession(){this.session&&this._options.stickySession&&SH(this.session)}__init6(){this._onMutationHandler=t=>{const n=t.length,r=this._options.mutationLimit,i=this._options.mutationBreadcrumbLimit,o=r&&n>r;if(n>i||o){const s=ed({category:"replay.mutations",data:{count:n,limit:o}});this._createCustomBreadcrumb(s)}return o?(this.stop({reason:"mutationLimit",forceFlush:this.recordingMode==="session"}),!1):!0}}}function Bw(e,t){return[...e,...t].join(",")}function cet({mask:e,unmask:t,block:n,unblock:r,ignore:i}
1503){const o=["base","iframe[srcdoc]:not([src])"],s=Bw(e,[".sentry-mask","[data-sentry-mask]"]),a=Bw(t,[]);return{maskTextSelector:s,unmaskTextSelector:a,blockSelector:Bw(n,[".sentry-block","[data-sentry-block]",...o]),unblockSelector:Bw(r,[]),ignoreSelector:Bw(i,[".sentry-ignore","[data-sentry-ignore]",'input[type="file"]'])}}function uet({el:e,key:t,maskAttributes:n,maskAllText:r,privacyOptions:i,value:o}){return!r||i.unmaskTextSelector&&e.matches(i.unmaskTextSelector)?o:n.includes(t)||t==="value"&&e.tagName==="INPUT"&&["submit","button"].includes(e.getAttribute("type")||"")?o.replace(/[\S]/g,"*"):o}const lee='img,image,svg,video,object,picture,embed,map,audio,link[rel="icon"],link[rel="apple-touch-icon"]',det=["content-length","content-type","accept"];let uee=!1;const fet=(e=>new zP(e));class zP{static __initStatic(){this.id="Replay"}constructor({flushMinDelay:t=BQe,flushMaxDelay:n=$Qe,minReplayDuration:r=GQe,maxReplayDuration:i=HZ,stickySession:o=!0,useCompression:s=!0,workerUrl:a,_experiments:c={},maskAllText:l=!0,maskAllInputs:u=!0,blockAllMedia:d=!0,mutationBreadcrumbLimit:f=750,mutationLimit:p=1e4,slowClickTimeout:g=7e3,slowClickIgnoreSelectors:m=[],networkDetailAllowUrls:y=[],networkDetailDenyUrls:v=[],networkCaptureBodies:w=!0,networkRequestHeaders:S=[],networkResponseHeaders:C=[],mask:E=[],maskAttributes:T=["title","placeholder"],unmask:x=[],block:O=[],unblock:A=[],ignore:L=[],maskFn:U,beforeAddRecordingEvent:I,beforeErrorSampling:F,onError:P}={}){this.name=zP.id;const W=cet({mask:E,unmask:x,block:O,unblock:A,ignore:L});if(this._recordingOptions={maskAllInputs:u,maskAllText:l,maskInputOptions:{password:!0},maskTextFn:U,maskInputFn:U,maskAttributeFn:(ee,Y,X)=>uet({maskAttributes:T,maskAllText:l,privacyOptions:W,key:ee,value:Y,el:X}),...W,slimDOMOptions:"all",inlineStylesheet:!0,inlineImages:!1,collectFonts:!0,errorHandler:ee=>{try{ee.__rrweb__=!0}catch{}}},this._initialOptions={flushMinDelay:t,flushMaxDelay:n,minReplayDuration:Math.min(r,KQe),maxReplayDuration:Math.min(i,HZ),stickySession:o,useCompression:s,workerUrl:a,blockAllMedia:d,maskAllInputs:u,maskAllText:l,mutationBreadcrumbLimit:f,mutationLimit:p,slowClickTimeout:g,slowClickIgnoreSelectors:m,networkDetailAllowUrls:y,networkDetailDenyUrls:v,networkCaptureBodies:w,networkRequestHeaders:dee(S),networkResponseHeaders:dee(C),beforeAddRecordingEvent:I,beforeErrorSampling:F,onError:P,_experiments:c},this._initialOptions.blockAllMedia&&(this._recordingOptions.blockSelector=this._recordingOptions.blockSelector?`${this._recordingOptions.blockSelector},${lee}`:lee),this._isInitialized&&OZ())throw new Error("Multiple Sentry Session Replay instances are not supported");this._isInitialized=!0}get _isInitialized(){return uee}set _isInitialized(t){uee=t}afterAllSetup(t){!OZ()||this._replay||(this._setup(t),this._initialize(t))}start(){this._replay&&this._replay.start()}startBuffering(){this._replay&&this._replay.startBuffering()}stop(){return this._replay?this._replay.stop({forceFlush:this._replay.recordingMode==="session"}):Promise.resolve()}flush(t){return this._replay?this._replay.isEnabled()?this._replay.sendBufferedReplayOrFlush(t):(this._replay.start(),Promise.resolve()):Promise.resolve()}getReplayId(){if(!(!this._replay||!this._replay.isEnabled()))return this._replay.getSessionId()}getRecordingMode(){if(!(!this._replay||!this._replay.isEnabled()))return this._replay.recordingMode}_initialize(t){this._replay&&(this._maybeLoadFromReplayCanvasIntegration(t),this._replay.initializeSampling())}_setup(t){const n=het(this._initialOptions,t);this._replay=new rp({options:n,recordingOptions:this._recordingOptions})}_maybeLoadFromReplayCanvasIntegration(t){try{const n=t.getIntegrationByName("ReplayCanvas");if(!n)return;this._replay._canvas=n.getOptions()}catch{}}}zP.__initStatic();function het(e,t){const n=t.getOptions(),r={sessionSampleRate:0,errorSampleRate:0,...wo(e)},i=EI(n.replaysSessionSampleRate),o=EI(n.replaysOnErrorSampleRate);return i==null&&o==null&&Mm(()=>{console.warn("Replay is disabled because neither `replaysSessionSampleRate` nor `replaysOnErrorSampleRate` are set.")}),i!=null&&(r.sessionSampleRate=i),o!=null&&(r.errorSampleRate=o),r}function dee(e){return[...det,...e.map(t=>t.toLowerCase())]}const fee=new WeakMap,o6=new Map,Ux={traceFetch:!0,traceXHR:!0,enableHTTPTimings:!0,trackFetchStreamPerformance:!1};function pet(e,t){const{traceFetch:n,traceXHR:r,trackFetchStreamPerformance:i,shouldCreateSpanForRequest:o,enableHTTPTimings:s,tracePropagationTargets:a}={traceFetch:Ux.traceFetch,traceXHR:Ux.traceXHR,trackFetchStreamPerformance:Ux.trackFetchStreamPerformance,...t},c=typeof o=="function"?o:d=>!0,l=d=>vet(d,a),u={};
1503n&&(e.addEventProcessor(d=>(d.type==="transaction"&&d.spans&&d.spans.forEach(f=>{if(f.op==="http.client"){const p=o6.get(f.span_id);p&&(f.timestamp=p/1e3,o6.delete(f.span_id))}}),d)),i&&rKe(d=>{if(d.response){const f=fee.get(d.response);f&&d.endTimestamp&&o6.set(f,d.endTimestamp)}}),Hve(d=>{const f=QGe(d,c,l,u);if(d.response&&d.fetchData.__span&&fee.set(d.response,d.fetchData.__span),f){const p=nye(d.fetchData.url),g=p?Hg(p).host:void 0;f.setAttributes({"http.url":p,"server.address":g})}s&&f&&hee(f)})),r&&c0e(d=>{const f=yet(d,c,l,u);s&&f&&hee(f)})}function met(e){return e.entryType==="resource"&&"initiatorType"in e&&typeof e.nextHopProtocol=="string"&&(e.initiatorType==="fetch"||e.initiatorType==="xmlhttprequest")}function hee(e){const{url:t}=Ln(e).data||{};if(!t||typeof t!="string")return;const n=S1("resource",({entries:r})=>{r.forEach(i=>{met(i)&&i.name.endsWith(t)&&(get(i).forEach(s=>e.setAttribute(...s)),setTimeout(n))})})}function _u(e=0){return((ta||performance.timeOrigin)+e)/1e3}function get(e){const{name:t,version:n}=o0e(e.nextHopProtocol),r=[];return r.push(["network.protocol.version",n],["network.protocol.name",t]),ta?[...r,["http.request.redirect_start",_u(e.redirectStart)],["http.request.fetch_start",_u(e.fetchStart)],["http.request.domain_lookup_start",_u(e.domainLookupStart)],["http.request.domain_lookup_end",_u(e.domainLookupEnd)],["http.request.connect_start",_u(e.connectStart)],["http.request.secure_connection_start",_u(e.secureConnectionStart)],["http.request.connection_end",_u(e.connectEnd)],["http.request.request_start",_u(e.requestStart)],["http.request.response_start",_u(e.responseStart)],["http.request.response_end",_u(e.responseEnd)]]:r}function vet(e,t){const n=Qt.location&&Qt.location.href;if(n){let r,i;try{r=new URL(e,n),i=new URL(n).origin}catch{return!1}const o=r.origin===i;return t?Hp(r.toString(),t)||o&&Hp(r.pathname,t):o}else{const r=!!e.match(/^\/(?!\/)/);return t?Hp(e,t):r}}function yet(e,t,n,r){const i=e.xhr,o=i&&i[bg];if(!i||i.__sentry_own_request__||!o)return;const s=am()&&t(o.url);if(e.endTimestamp&&s){const d=i.__sentry_xhr_span_id__;if(!d)return;const f=r[d];f&&o.status_code!==void 0&&(rve(f,o.status_code),f.end(),delete r[d]);return}const a=nye(o.url),c=a?Hg(a).host:void 0,l=!!Vo(),u=s&&l?kE({name:`${o.method} ${o.url}`,attributes:{type:"xhr","http.method":o.method,"http.url":a,url:o.url,"server.address":c,[zo]:"auto.http.browser",[gv]:"http.client"}}):new kb;return i.__sentry_xhr_span_id__=u.spanContext().spanId,r[i.__sentry_xhr_span_id__]=u,n(o.url)&&bet(i,am()&&l?u:void 0),u}function bet(e,t){const{"sentry-trace":n,baggage:r}=Lve({span:t});n&&wet(e,n,r)}function wet(e,t,n){try{e.setRequestHeader("sentry-trace",t),n&&e.setRequestHeader("baggage",n)}catch{}}function nye(e){try{return new URL(e,Qt.location.origin).href}catch{return}}function _et(){Qt&&Qt.document?Qt.document.addEventListener("visibilitychange",()=>{const e=Vo();if(!e)return;const t=as(e);if(Qt.document.hidden&&t){const n="cancelled",{op:r,status:i}=Ln(t);bd&&ut.log(`[Tracing] Transaction: ${n} -> since tab moved to the background, op: ${r}`),i||t.setStatus({code:No,message:n}),t.setAttribute("sentry.cancellation_reason","document.hidden"),t.end()}}):bd&&ut.warn("[Tracing] Could not set up background tab detection due to lack of global document")}const Cet="BrowserTracing",Eet={...Mx,instrumentNavigation:!0,instrumentPageLoad:!0,markBackgroundSpan:!0,enableLongTask:!0,enableLongAnimationFrame:!0,enableInp:!0,_experiments:{},...Ux},Tet=((e={})=>{eqe();const{enableInp:t,enableLongTask:n,enableLongAnimationFrame:r,_experiments:{enableInteractions:i,enableStandaloneClsSpans:o},beforeStartSpan:s,idleTimeout:a,finalTimeout:c,childSpanTimeout:l,markBackgroundSpan:u,traceFetch:d,traceXHR:f,trackFetchStreamPerformance:p,shouldCreateSpanForRequest:g,enableHTTPTimings:m,instrumentPageLoad:y,instrumentNavigation:v}={...Eet,...e},w=fYe({recordClsStandaloneSpans:o||!1});t&&FYe(),r&&En.PerformanceObserver&&PerformanceObserver.supportedEntryTypes&&PerformanceObserver.supportedEntryTypes.includes("long-animation-frame")?pYe():n&&hYe(),i&&mYe();
1503const S={name:void 0,source:void 0};function C(E,T){const x=T.op==="pageload",O=s?s(T):T,A=O.attributes||{};T.name!==O.name&&(A[Zu]="custom",O.attributes=A),S.name=O.name,S.source=A[Zu];const L=Cve(O,{idleTimeout:a,finalTimeout:c,childSpanTimeout:l,disableAutoFinish:x,beforeSpanEnd:I=>{w(),wYe(I,{recordClsOnPageloadSpan:!o})}});function U(){["interactive","complete"].includes(Qt.document.readyState)&&E.emit("idleSpanEnableAutoFinish",L)}return x&&Qt.document&&(Qt.document.addEventListener("readystatechange",()=>{U()}),U()),L}return{name:Cet,afterAllSetup(E){let T,x=Qt.location&&Qt.location.href;function O(){T&&!Ln(T).timestamp&&(bd&&ut.log(`[Tracing] Finishing current active span with op: ${Ln(T).op}`),T.end())}E.on("startNavigationSpan",A=>{_n()===E&&(O(),T=C(E,{op:"navigation",...A}))}),E.on("startPageLoadSpan",(A,L={})=>{if(_n()!==E)return;O();const U=L.sentryTrace||pee("sentry-trace"),I=L.baggage||pee("baggage"),F=GWe(U,I);Ir().setPropagationContext(F),T=C(E,{op:"pageload",...A})}),E.on("spanEnd",A=>{const L=Ln(A).op;if(A!==as(A)||L!=="navigation"&&L!=="pageload")return;const U=Ir(),I=U.getPropagationContext();U.setPropagationContext({...I,sampled:I.sampled!==void 0?I.sampled:Bv(A),dsc:I.dsc||$v(A)})}),Qt.location&&(y&&ket(E,{name:Qt.location.pathname,startTime:ta?ta/1e3:void 0,attributes:{[Zu]:"url",[zo]:"auto.pageload.browser"}}),v&&LP(({to:A,from:L})=>{if(L===void 0&&x&&x.indexOf(A)!==-1){x=void 0;return}L!==A&&(x=void 0,xet(E,{name:Qt.location.pathname,attributes:{[Zu]:"url",[zo]:"auto.navigation.browser"}}))})),u&&_et(),i&&Aet(a,c,l,S),t&&UYe(),pet(E,{traceFetch:d,traceXHR:f,trackFetchStreamPerformance:p,tracePropagationTargets:E.getOptions().tracePropagationTargets,shouldCreateSpanForRequest:g,enableHTTPTimings:m})}}});function ket(e,t,n){e.emit("startPageLoadSpan",t,n),Ir().setTransactionName(t.name);const r=Vo();return(r&&Ln(r).op)==="pageload"?r:void 0}function xet(e,t){sl().setPropagationContext({traceId:om()}),Ir().setPropagationContext({traceId:om()}),e.emit("startNavigationSpan",t),Ir().setTransactionName(t.name);const n=Vo();return(n&&Ln(n).op)==="navigation"?n:void 0}function pee(e){const t=bWe(`meta[name=${e}]`);return t?t.getAttribute("content"):void 0}function Aet(e,t,n,r){let i;const o=()=>{const s="ui.action.click",a=Vo(),c=a&&as(a);if(c){const l=Ln(c).op;if(["navigation","pageload"].includes(l)){bd&&ut.warn(`[Tracing] Did not create ${s} span because a pageload or navigation span is in progress.`);return}}if(i&&(i.setAttribute(Mj,"interactionInterrupted"),i.end(),i=void 0),!r.name){bd&&ut.warn(`[Tracing] Did not create ${s} transaction because _latestRouteName is missing.`);return}i=Cve({name:r.name,op:s,attributes:{[Zu]:r.source||"url"}},{idleTimeout:e,finalTimeout:t,childSpanTimeout:n})};Qt.document&&addEventListener("click",o,{once:!1,capture:!0})}function Iet(e){const t={...e};return Dve(t,"react"),kve("react",{version:b.version}),LQe(t)}var rye={exports:{}};(function(e,t){var n={};(function(r,i){e.exports=i()})(typeof self<"u"?self:Tf,(()=>(()=>{var r={933:(a,c)=>{c.byteLength=function(w){var S=g(w),C=S[0],E=S[1];return 3*(C+E)/4-E},c.toByteArray=function(w){var S,C,E=g(w),T=E[0],x=E[1],O=new d(m(w,T,x)),A=0,L=x>0?T-4:T;for(C=0;C<L;C+=4)S=u[w.charCodeAt(C)]<<18|u[w.charCodeAt(C+1)]<<12|u[w.charCodeAt(C+2)]<<6|u[w.charCodeAt(C+3)],O[A++]=S>>16&255,O[A++]=S>>8&255,O[A++]=255&S;return x===2&&(S=u[w.charCodeAt(C)]<<2|u[w.charCodeAt(C+1)]>>4,O[A++]=255&S),x===1&&(S=u[w.charCodeAt(C)]<<10|u[w.charCodeAt(C+1)]<<4|u[w.charCodeAt(C+2)]>>2,O[A++]=S>>8&255,O[A++]=255&S),O},c.fromByteArray=function(w){for(var S,C=w.length,E=C%3,T=[],x=16383,O=0,A=C-E;O<A;O+=x)T.push(v(w,O,O+x>A?A:O+x));return E===1?(S=w[C-1],T.push(l[S>>2]+l[S<<4&63]+"==")):E===2&&(S=(w[C-2]<<8)+w[C-1],T.push(l[S>>10]+l[S>>4&63]+l[S<<2&63]+"=")),T.join("")};for(var l=[],u=[],d=typeof Uint8Array<"u"?Uint8Array:Array,f="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",p=0;p<64;++p)l[p]=f[p],u[f.charCodeAt(p)]=p;function g(w){var S=w.length;if(S%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var C=w.indexOf("=");return C===-1&&(C=S),[C,C===S?0:4-C%4]}function m(w,S,C){return 3*(S+C)/4-C}function y(w){return l[w>>18&63]+l[w>>12&63]+l[w>>6&63]+l[63&w]}function v(w,S,C){for(var E,T=[],x=S;x<C;x+=3)E=(w[x]<<16&16711680)+(w[x+1]<<8&65280)+(255&w[x+2]),T.push(y(E));return T.join("")}u[45]=62,u[95]=63},815:(a,c,l)=>{c.formatArgs=function(d){if(d[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+d[0]+(this.useColors?"%c ":" ")+"+"+a.exports.humanize(this.diff),!this.useColors)return;const f="color: "+this.color;d.splice(1,0,f,"color: inherit");let p=0,g=0;d[0].replace(/%[a-zA-Z%]/g,(m=>{m!=="%%"&&(p++,m==="%c"&&(g=p))})),d.splice(g,0,f)},c.save=function(d){try{d?c.storage.setItem("debug",d):c.storage.removeItem("debug")}catch{}},c.load=function(){let d;try{d=c.storage.getItem("debug")}catch{}return!d&&typeof process<"u"&&"env"in process&&(d=n.DEBUG),d},c.useColors=function(){return typeof window<"u"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs)?!0:typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/)?!1:typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)},c.storage=(function(){try{return localStorage}catch{}})(),c.destroy=(()=>{let d=!1;return()=>{d||(d=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),c.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33
1503CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],c.log=console.debug||console.log||(()=>{}),a.exports=l(530)(c);const{formatters:u}=a.exports;u.j=function(d){try{return JSON.stringify(d)}catch(f){return"[UnexpectedJSONParseError]: "+f.message}}},530:(a,c,l)=>{a.exports=function(u){function d(g){let m,y,v,w=null;function S(...C){if(!S.enabled)return;const E=S,T=Number(new Date),x=T-(m||T);E.diff=x,E.prev=m,E.curr=T,m=T,C[0]=d.coerce(C[0]),typeof C[0]!="string"&&C.unshift("%O");let O=0;C[0]=C[0].replace(/%([a-zA-Z%])/g,((A,L)=>{if(A==="%%")return"%";O++;const U=d.formatters[L];if(typeof U=="function"){const I=C[O];A=U.call(E,I),C.splice(O,1),O--}return A})),d.formatArgs.call(E,C),(E.log||d.log).apply(E,C)}return S.namespace=g,S.useColors=d.useColors(),S.color=d.selectColor(g),S.extend=f,S.destroy=d.destroy,Object.defineProperty(S,"enabled",{enumerable:!0,configurable:!1,get:()=>w!==null?w:(y!==d.namespaces&&(y=d.namespaces,v=d.enabled(g)),v),set:C=>{w=C}}),typeof d.init=="function"&&d.init(S),S}function f(g,m){const y=d(this.namespace+(m===void 0?":":m)+g);return y.log=this.log,y}function p(g){return g.toString().substring(2,g.toString().length-2).replace(/\.\*\?$/,"*")}return d.debug=d,d.default=d,d.coerce=function(g){return g instanceof Error?g.stack||g.message:g},d.disable=function(){const g=[...d.names.map(p),...d.skips.map(p).map((m=>"-"+m))].join(",");return d.enable(""),g},d.enable=function(g){let m;d.save(g),d.namespaces=g,d.names=[],d.skips=[];const y=(typeof g=="string"?g:"").split(/[\s,]+/),v=y.length;for(m=0;m<v;m++)y[m]&&((g=y[m].replace(/\*/g,".*?"))[0]==="-"?d.skips.push(new RegExp("^"+g.slice(1)+"$")):d.names.push(new RegExp("^"+g+"$")))},d.enabled=function(g){if(g[g.length-1]==="*")return!0;let m,y;for(m=0,y=d.skips.length;m<y;m++)if(d.skips[m].test(g))return!1;for(m=0,y=d.names.length;m<y;m++)if(d.names[m].test(g))return!0;return!1},d.humanize=l(821),d.destroy=function(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")},Object.keys(u).forEach((g=>{d[g]=u[g]})),d.names=[],d.skips=[],d.formatters={},d.selectColor=function(g){let m=0;for(let y=0;y<g.length;y++)m=(m<<5)-m+g.charCodeAt(y),m|=0;return d.colors[Math.abs(m)%d.colors.length]},d.enable(d.load()),d}},821:a=>{var c=1e3,l=60*c,u=60*l,d=24*u,f=7*d;function p(v){if(!((v=String(v)).length>100)){var w=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(v);if(w){var S=parseFloat(w[1]);switch((w[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return 315576e5*S;case"weeks":case"week":case"w":return S*f;case"days":case"day":case"d":return S*d;case"hours":case"hour":case"hrs":case"hr":case"h":return S*u;case"minutes":case"minute":case"mins":case"min":case"m":return S*l;case"seconds":case"second":case"secs":case"sec":case"s":return S*c;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return S;default:return}}}}function g(v){var w=Math.abs(v);return w>=d?Math.round(v/d)+"d":w>=u?Math.round(v/u)+"h":w>=l?Math.round(v/l)+"m":w>=c?Math.round(v/c)+"s":v+"ms"}function m(v){var w=Math.abs(v);return w>=d?y(v,w,d,"day"):w>=u?y(v,w,u,"hour"):w>=l?y(v,w,l,"minute"):w>=c?y(v,w,c,"second"):v+" ms"}function y(v,w,S,C){var E=w>=1.5*S;return Math.round(v/S)+" "+C+(E?"s":"")}a.exports=function(v,w){w=w||{};var S=typeof v;if(S==="string"&&v.length>0)return p(v);if(S==="number"&&isFinite(v))return w.long?m(v):g(v);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(v))}}},i={};function o(a){var c=i[a];if(c!==void 0)return c.exports;var l=i[a]={exports:{}};return r[a](l,l.exports,o),l.exports}(()=>{var a,c=Object.getPrototypeOf?l=>Object.getPrototypeOf(l):l=>l.__proto__;o.t=function(l,u){if(1&u&&(l=this(l)),8&u||typeof l=="object"&&l&&(4&u&&l.__esMo
1503dule||16&u&&typeof l.then=="function"))return l;var d=Object.create(null);o.r(d);var f={};a=a||[null,c({}),c([]),c(c)];for(var p=2&u&&l;typeof p=="object"&&!~a.indexOf(p);p=c(p))Object.getOwnPropertyNames(p).forEach((g=>f[g]=()=>l[g]));return f.default=()=>l,o.d(d,f),d}})(),o.d=(a,c)=>{for(var l in c)o.o(c,l)&&!o.o(a,l)&&Object.defineProperty(a,l,{enumerable:!0,get:c[l]})},o.o=(a,c)=>Object.prototype.hasOwnProperty.call(a,c),o.r=a=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(a,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(a,"__esModule",{value:!0})};var s={};return(()=>{o.r(s),o.d(s,{ActionObjectType:()=>_t,AppId:()=>k3e,ChannelType:()=>ci,ChildAppWindow:()=>GK,DialogDimension:()=>Nr,ErrorCode:()=>Je,FileOpenPreference:()=>ai,FrameContexts:()=>ie,HostClientType:()=>bt,HostName:()=>Or,LiveShareHost:()=>N5,NotificationTypes:()=>$4,ParentAppWindow:()=>$3e,SecondaryM365ContentIdName:()=>wn,TaskModuleDimension:()=>yr,TeamType:()=>Xr,UserSettingTypes:()=>z4,UserTeamRole:()=>ca,ViewerActionTypes:()=>H4,app:()=>bl,appEntity:()=>e5,appInitialization:()=>A5,appInstallDialog:()=>i5,authentication:()=>N2,barCode:()=>c5,calendar:()=>v5,call:()=>x5,chat:()=>l5,clipboard:()=>u5,conversations:()=>V4,copilot:()=>W4,dialog:()=>yu,enablePrintCapability:()=>q3e,executeDeepLink:()=>cPe,externalAppAuthentication:()=>q4,externalAppCardActions:()=>G4,externalAppCommands:()=>K4,files:()=>Y4,geoLocation:()=>f5,getAdaptiveCardSchemaVersion:()=>B3e,getContext:()=>K3e,getMruTabInstances:()=>sPe,getTabInstances:()=>oPe,hostEntity:()=>D5,initialize:()=>W3e,initializeWithFrameContext:()=>uPe,liveShare:()=>K2,location:()=>p5,logs:()=>B4,mail:()=>y5,marketplace:()=>X2,media:()=>Ph,meeting:()=>m5,meetingRoom:()=>Q4,menus:()=>M2,messageChannels:()=>hw,monetization:()=>g5,navigateBack:()=>pPe,navigateCrossDomain:()=>hPe,navigateToTab:()=>fPe,nestedAppAuth:()=>d5,notifications:()=>X4,openFilePreview:()=>p3e,otherAppStateChange:()=>J4,pages:()=>ao,people:()=>b5,print:()=>G3e,profile:()=>w5,registerAppButtonClickHandler:()=>X3e,registerAppButtonHoverEnterHandler:()=>J3e,registerAppButtonHoverLeaveHandler:()=>Z3e,registerBackButtonHandler:()=>ePe,registerBeforeUnloadHandler:()=>nPe,registerChangeSettingsHandler:()=>iPe,registerCustomHandler:()=>f3e,registerFocusEnterHandler:()=>rPe,registerFullScreenHandler:()=>Q3e,registerOnLoadHandler:()=>tPe,registerOnThemeChangeHandler:()=>Y3e,registerUserSettingsChangeHandler:()=>h3e,remoteCamera:()=>Z4,returnFocus:()=>dPe,search:()=>S5,secondaryBrowser:()=>h5,sendCustomEvent:()=>d3e,sendCustomMessage:()=>u3e,setFrameContext:()=>lPe,settings:()=>R5,shareDeepLink:()=>aPe,sharing:()=>_5,stageView:()=>C5,tasks:()=>O5,teams:()=>t5,teamsCore:()=>Ym,thirdPartyCloudStorage:()=>I5,uploadCustomApp:()=>l3e,version:()=>R2,videoEffects:()=>Rh,videoEffectsEx:()=>r5,visualMedia:()=>E5,webStorage:()=>T5});const a=(0,o(815).debug)("teamsJs");function c(_){return a.extend(_)}function l(_,R){return`${_}_${R}`}function u(_){return/^v\d+_[\w.]+$/.test(_)}const d=JSON.parse('{"validOrigins":["teams.microsoft.com","teams.microsoft.us","gov.teams.microsoft.us","dod.teams.microsoft.us","int.teams.microsoft.com","outlook.office.com","outlook-sdf.office.com","outlook.office365.com","outlook-sdf.office365.com","outlook.live.com","outlook-sdf.live.com","teams.live.com","local.teams.live.com","local.teams.live.com:8080","local.teams.office.com","local.teams.office.com:8080","devspaces.skype.com","*.www.office.com","www.office.com","word.office.com","excel.office.com","powerpoint.office.com","www.officeppe.com","*.www.microsoft365.com","www.microsoft365.com","bing.com","edgeservices.bing.com","www.bing.com","www.staging-bing-int.com","*.cloud.microsoft","*.m365.cloud.microsoft","copilot.microsoft.com","windows.msn.com","fa000000125.resources.office.net","fa000000129.resources.office.net","fa000000124.resources.office.net","fa000000128.resources.office.net","fa000000136.resources.office.net"]}'),f="2.0.1",p="2.0.3",g="1.9.0",m="1.8.0",y=o.t(d,2).validOrigins,v=new URL("https://res.cdn.office.net/teams-js/validDomains/json/validDomains.json"),w=/^https:\/\//,S="https",C="teams.microsoft.com",E="The library has not yet been initialized",T="The runtime has not yet been initialized",x="The runtime version is not supported";class O{}O.initializeCalled=!1,O.initializeCompleted=!1,O.additionalValidOrigins=[],O.initializePromise=void 0,O.isFramelessWindow=!1,O.frameContext=void 0,O.hostClientType=void 0,O.printCapabilityEnabled=!1;var A=o(933);const L=I,U=2147483647;
1503function I(_,R,k){if(typeof _=="number"){if(typeof R=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return P(_)}return F(_,R,k)}function F(_,R,k){if(typeof _=="string")return X(_,R);if(ArrayBuffer.isView(_))return ge(_);if(_==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof _);if(G(_,ArrayBuffer)||_&&G(_.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(G(_,SharedArrayBuffer)||_&&G(_.buffer,SharedArrayBuffer)))return ae(_,R,k);if(typeof _=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');const D=_.valueOf&&_.valueOf();if(D!=null&&D!==_)return I.from(D,R,k);const K=ke(_);if(K)return K;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof _[Symbol.toPrimitive]=="function")return I.from(_[Symbol.toPrimitive]("string"),R,k);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof _)}function P(_){return W(_),ee(_<0?0:0|Y(_))}function W(_){if(typeof _!="number")throw new TypeError('"size" argument must be of type number');if(_<0)throw new RangeError('The value "'+_+'" is invalid for option "size"')}function ee(_){if(_>U)throw new RangeError('The value "'+_+'" is invalid for option "size"');const R=new Uint8Array(_);return Object.setPrototypeOf(R,I.prototype),R}function Y(_){if(_>=U)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+U.toString(16)+" bytes");return 0|_}function X(_,R){if(typeof R=="string"&&R!==""||(R="utf8"),!I.isEncoding(R))throw new TypeError("Unknown encoding: "+R);const k=0|Z(_,R);let D=ee(k);const K=D.write(_,R);return K!==k&&(D=D.slice(0,K)),D}function Z(_,R){if(I.isBuffer(_))return _.length;if(ArrayBuffer.isView(_)||G(_,ArrayBuffer))return _.byteLength;if(typeof _!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof _);const k=_.length,D=arguments.length>2&&arguments[2]===!0;if(!D&&k===0)return 0;let K=!1;for(;;)switch(R){case"ascii":case"latin1":case"binary":return k;case"utf8":case"utf-8":return Q(_).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*k;case"hex":return k>>>1;case"base64":return q(_).length;default:if(K)return D?-1:Q(_).length;R=(""+R).toLowerCase(),K=!0}}function G(_,R){return _ instanceof R||_!=null&&_.constructor!=null&&_.constructor.name!=null&&_.constructor.name===R.name}function Q(_,R){let k;R=R||1/0;const D=_.length;let K=null;const te=[];for(let de=0;de<D;++de){if(k=_.charCodeAt(de),k>55295&&k<57344){if(!K){if(k>56319){(R-=3)>-1&&te.push(239,191,189);continue}if(de+1===D){(R-=3)>-1&&te.push(239,191,189);continue}K=k;continue}if(k<56320){(R-=3)>-1&&te.push(239,191,189),K=k;continue}k=65536+(K-55296<<10|k-56320)}else K&&(R-=3)>-1&&te.push(239,191,189);if(K=null,k<128){if((R-=1)<0)break;te.push(k)}else if(k<2048){if((R-=2)<0)break;te.push(k>>6|192,63&k|128)}else if(k<65536){if((R-=3)<0)break;te.push(k>>12|224,k>>6&63|128,63&k|128)}else{if(!(k<1114112))throw new Error("Invalid code point");if((R-=4)<0)break;te.push(k>>18|240,k>>12&63|128,k>>6&63|128,63&k|128)}}return te}function q(_){return A.toByteArray(ue(_))}I.TYPED_ARRAY_SUPPORT=(function(){try{const _=new Uint8Array(1),R={foo:function(){return 42}};return Object.setPrototypeOf(R,Uint8Array.prototype),Object.setPrototypeOf(_,R),_.foo()===42}catch{return!1}})(),I.TYPED_ARRAY_SUPPORT||typeof console>"u"||typeof console.error!="function"||console.error("This browser lacks typed array (Uint8Array) support which is required"),I.from=function(_,R,k){return F(_,R,k)},Object.setPrototypeOf(I.prototype,Uint8Array.prototype),Object.setPrototypeOf(I,Uint8Array),I.isEncoding=function(_){switch(String(_).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},I.isBuffer=function(_){return _!=null&&_._isBuffer===!0&&_!==I.prototype};const z=/[^+/0-9A-Za-z-_]/g;function ue(_){if((_=(_=_.split("=")[0]).trim().replace(z,"")).length<2)return"";for(;_.length%4!=0;)_+="=";return _}function ge(_){if(G(_,Uint8Array)){const R=new Uint8Array(_);return ae(R.buffer,R.byteOffset,R.byteLength)}return j(_)}function ae(_,R,k){if(R<0||_.byteLength<R)throw new RangeError('"offset" is outside of buffer bounds');if(_.byteLength<R+(k||0))throw new RangeError('"length" is outside of buffer bounds');let D;return D=R===void 0&&k===void 0?new Uint8Array(_):k===void 0?new Uint8Array(_,R):new Uint8Array(_,R,k
1503),Object.setPrototypeOf(D,I.prototype),D}function j(_){const R=_.length<0?0:0|Y(_.length),k=ee(R);for(let D=0;D<R;D+=1)k[D]=255&_[D];return k}function B(_,R,k){k=Math.min(_.length,k);const D=[];let K=R;for(;K<k;){const te=_[K];let de=null,he=te>239?4:te>223?3:te>191?2:1;if(K+he<=k){let le,_e,Ce,Fe;switch(he){case 1:te<128&&(de=te);break;case 2:le=_[K+1],(192&le)==128&&(Fe=(31&te)<<6|63&le,Fe>127&&(de=Fe));break;case 3:le=_[K+1],_e=_[K+2],(192&le)==128&&(192&_e)==128&&(Fe=(15&te)<<12|(63&le)<<6|63&_e,Fe>2047&&(Fe<55296||Fe>57343)&&(de=Fe));break;case 4:le=_[K+1],_e=_[K+2],Ce=_[K+3],(192&le)==128&&(192&_e)==128&&(192&Ce)==128&&(Fe=(15&te)<<18|(63&le)<<12|(63&_e)<<6|63&Ce,Fe>65535&&Fe<1114112&&(de=Fe))}}de===null?(de=65533,he=1):de>65535&&(de-=65536,D.push(de>>>10&1023|55296),de=56320|1023&de),D.push(de),K+=he}return ne(D)}function re(_,R,k){let D=!1;if((R===void 0||R<0)&&(R=0),R>this.length||((k===void 0||k>this.length)&&(k=this.length),k<=0)||(k>>>=0)<=(R>>>=0))return"";for(_||(_="utf8");;)switch(_){case"hex":return J(this,R,k);case"utf8":case"utf-8":return B(this,R,k);case"ascii":return Se(this,R,k);case"latin1":case"binary":return H(this,R,k);case"base64":return be(this,R,k);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return V(this,R,k);default:if(D)throw new TypeError("Unknown encoding: "+_);_=(_+"").toLowerCase(),D=!0}}I.prototype.toString=function(){const _=this.length;return _===0?"":arguments.length===0?B(this,0,_):re.apply(this,arguments)};const oe=4096;function ne(_){const R=_.length;if(R<=oe)return String.fromCharCode.apply(String,_);let k="",D=0;for(;D<R;)k+=String.fromCharCode.apply(String,_.slice(D,D+=oe));return k}function J(_,R,k){const D=_.length;(!R||R<0)&&(R=0),(!k||k<0||k>D)&&(k=D);let K="";for(let te=R;te<k;++te)K+=ve[_[te]];return K}function Se(_,R,k){let D="";k=Math.min(_.length,k);for(let K=R;K<k;++K)D+=String.fromCharCode(127&_[K]);return D}function H(_,R,k){let D="";k=Math.min(_.length,k);for(let K=R;K<k;++K)D+=String.fromCharCode(_[K]);return D}function be(_,R,k){return R===0&&k===_.length?A.fromByteArray(_):A.fromByteArray(_.slice(R,k))}function V(_,R,k){const D=_.slice(R,k);let K="";for(let te=0;te<D.length-1;te+=2)K+=String.fromCharCode(D[te]+256*D[te+1]);return K}function M(_,R,k,D){k=Number(k)||0;const K=_.length-k;D?(D=Number(D))>K&&(D=K):D=K;const te=R.length;let de;for(D>te/2&&(D=te/2),de=0;de<D;++de){const he=parseInt(R.substr(2*de,2),16);if(xe(he))return de;_[k+de]=he}return de}function N(_,R,k,D){return Ee(Q(R,_.length-k),_,k,D)}function $(_,R,k,D){return Ee(fe(R),_,k,D)}function ce(_,R,k,D){return Ee(q(R),_,k,D)}function pe(_,R,k,D){return Ee(we(R,_.length-k),_,k,D)}function fe(_){const R=[];for(let k=0;k<_.length;++k)R.push(255&_.charCodeAt(k));return R}function we(_,R){let k,D,K;const te=[];for(let de=0;de<_.length&&!((R-=2)<0);++de)k=_.charCodeAt(de),D=k>>8,K=k%256,te.push(K),te.push(D);return te}function Ee(_,R,k,D){let K;for(K=0;K<D&&!(K+k>=R.length||K>=_.length);++K)R[K+k]=_[K];return K}function xe(_){return _!=_}I.prototype.write=function(_,R,k,D){if(R===void 0)D="utf8",k=this.length,R=0;else if(k===void 0&&typeof R=="string")D=R,k=this.length,R=0;else{if(!isFinite(R))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");R>>>=0,isFinite(k)?(k>>>=0,D===void 0&&(D="utf8")):(D=k,k=void 0)}const K=this.length-R;if((k===void 0||k>K)&&(k=K),_.length>0&&(k<0||R<0)||R>this.length)throw new RangeError("Attempt to write outside buffer bounds");D||(D="utf8");let te=!1;for(;;)switch(D){case"hex":return M(this,_,R,k);case"utf8":case"utf-8":return N(this,_,R,k);case"ascii":case"latin1":case"binary":return $(this,_,R,k);case"base64":return ce(this,_,R,k);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return pe(this,_,R,k);default:if(te)throw new TypeError("Unknown encoding: "+D);D=(""+D).toLowerCase(),te=!0}};const ve=(function(){const _="0123456789abcdef",R=new Array(256);for(let k=0;k<16;++k){const D=16*k;for(let K=0;K<16;++K)R[D+K]=_[k]+_[K]}return R})();function ke(_){if(I.isBuffer(_)){const R=0|Y(_.length),k=ee(R);return k.length===0||_.copy(k,0,0,R),k}return _.length!==void 0?typeof _.length!="number"||xe(_.length)?ee(0):j(_):_.type==="Buffer"&&Array.isArray(_.data)?j(_.data):void 0}const He={randomUUID:typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};let Ge;const vt=new Uint8Array(16);function Lt(){if(!Ge&&(Ge=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!Ge))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return Ge(vt)}const $t=[];for(let _=0;_<256;++_)$t.push((_+256).toString(16).slice(1));function Yt(_,R=0){return $t[_[R+0]]+$t[_[R+1]]+$t[_[R+2]]+$t[_[R+3]]+"-"+$t[_[R+4]
1503]+$t[_[R+5]]+"-"+$t[_[R+6]]+$t[_[R+7]]+"-"+$t[_[R+8]]+$t[_[R+9]]+"-"+$t[_[R+10]]+$t[_[R+11]]+$t[_[R+12]]+$t[_[R+13]]+$t[_[R+14]]+$t[_[R+15]]}const xo=function(_,R,k){if(He.randomUUID&&!R&&!_)return He.randomUUID();const D=(_=_||{}).random||(_.rng||Lt)();return D[6]=15&D[6]|64,D[8]=63&D[8]|128,Yt(D)},ir=/^(?:[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,sn=function(_){return typeof _=="string"&&ir.test(_)};var ai,_t,wn,Je,Un,Oi,ur,Ni,Ua,Go,bt,Or,ie,Xr,ca,Nr;function dr(_){return(_==null?void 0:_.errorCode)!==void 0}(function(_){_.Inline="inline",_.Desktop="desktop",_.Web="web"})(ai||(ai={})),(function(_){_.M365Content="m365content"})(_t||(_t={})),(function(_){_.DriveId="driveId",_.GroupId="groupId",_.SiteId="siteId",_.UserId="userId"})(wn||(wn={})),(function(_){_[_.NOT_SUPPORTED_ON_PLATFORM=100]="NOT_SUPPORTED_ON_PLATFORM",_[_.INTERNAL_ERROR=500]="INTERNAL_ERROR",_[_.NOT_SUPPORTED_IN_CURRENT_CONTEXT=501]="NOT_SUPPORTED_IN_CURRENT_CONTEXT",_[_.PERMISSION_DENIED=1e3]="PERMISSION_DENIED",_[_.NETWORK_ERROR=2e3]="NETWORK_ERROR",_[_.NO_HW_SUPPORT=3e3]="NO_HW_SUPPORT",_[_.INVALID_ARGUMENTS=4e3]="INVALID_ARGUMENTS",_[_.UNAUTHORIZED_USER_OPERATION=5e3]="UNAUTHORIZED_USER_OPERATION",_[_.INSUFFICIENT_RESOURCES=6e3]="INSUFFICIENT_RESOURCES",_[_.THROTTLE=7e3]="THROTTLE",_[_.USER_ABORT=8e3]="USER_ABORT",_[_.OPERATION_TIMED_OUT=8001]="OPERATION_TIMED_OUT",_[_.OLD_PLATFORM=9e3]="OLD_PLATFORM",_[_.FILE_NOT_FOUND=404]="FILE_NOT_FOUND",_[_.SIZE_EXCEEDED=1e4]="SIZE_EXCEEDED"})(Je||(Je={})),(function(_){_.GeoLocation="geolocation",_.Media="media"})(Un||(Un={})),(function(_){_.BCAIS="bcais",_.BCWAF="bcwaf",_.BCWBF="bcwbf"})(Oi||(Oi={})),(function(_){_.Faculty="faculty",_.Student="student",_.Other="other"})(ur||(ur={})),(function(_){_.Adult="adult",_.MinorNoParentalConsentRequired="minorNoParentalConsentRequired",_.MinorWithoutParentalConsent="minorWithoutParentalConsent",_.MinorWithParentalConsent="minorWithParentalConsent",_.NonAdult="nonAdult"})(Ni||(Ni={})),(function(_){_.HigherEducation="higherEducation",_.K12="k12",_.Other="other"})(Ua||(Ua={})),(function(_){_.TextPlain="text/plain",_.TextHtml="text/html",_.ImagePNG="image/png",_.ImageJPEG="image/jpeg"})(Go||(Go={})),(function(_){_.desktop="desktop",_.web="web",_.android="android",_.ios="ios",_.ipados="ipados",_.macos="macos",_.rigel="rigel",_.surfaceHub="surfaceHub",_.teamsRoomsWindows="teamsRoomsWindows",_.teamsRoomsAndroid="teamsRoomsAndroid",_.teamsPhones="teamsPhones",_.teamsDisplays="teamsDisplays"})(bt||(bt={})),(function(_){_.office="Office",_.outlook="Outlook",_.outlookWin32="OutlookWin32",_.orange="Orange",_.places="Places",_.teams="Teams",_.teamsModern="TeamsModern"})(Or||(Or={})),(function(_){_.settings="settings",_.content="content",_.authentication="authentication",_.remove="remove",_.task="task",_.sidePanel="sidePanel",_.stage="stage",_.meetingStage="meetingStage"})(ie||(ie={})),(function(_){_[_.Standard=0]="Standard",_[_.Edu=1]="Edu",_[_.Class=2]="Class",_[_.Plc=3]="Plc",_[_.Staff=4]="Staff"})(Xr||(Xr={})),(function(_){_[_.Admin=0]="Admin",_[_.User=1]="User",_[_.Guest=2]="Guest"})(ca||(ca={})),(function(_){_.Large="large",_.Medium="medium",_.Small="small"})(Nr||(Nr={}));var ci,yr=Nr;(function(_){_.Regular="Regular",_.Private="Private",_.Shared="Shared"})(ci||(ci={}));const Me={errorCode:Je.NOT_SUPPORTED_ON_PLATFORM},vu=1,Hd=5,C2={adaptiveCardSchemaVersion:{majorVersion:1,minorVersion:5}},E2=new Error("Invalid input count: Must supply a valid image count (limit of 10)."),k4=new Error("Invalid response: Received more images than the specified max limit in the response.");function ml(_){return(R,k)=>{if(!R)throw new Error(k)}}function qm(_,R){if(typeof _!="string"||typeof R!="string")return NaN;const k=_.split("."),D=R.split(".");function K(te){return/^\d+$/.test(te)}if(!k.every(K)||!D.every(K))return NaN;for(;k.length<D.length;)k.push("0");for(;D.length<k.length;)D.push("0");for(let te=0;te<k.length;++te)if(Number(k[te])!=Number(D[te]))return Number(k[te])>Number(D[te])?1:-1;return 0}function dw(){return xo()}function T2(_){return Object.keys(_).forEach((R=>{_[R]!==null&&_[R]!==void 0&&typeof _[R]=="object"&&T2(_[R])})),Object.freeze(_)}function Ut(_,R,...k){const D=_(...k);return D.then((K=>
1503{R&&R(void 0,K)})).catch((K=>{R&&R(K)})),D}function Zt(_,R,...k){const D=_(...k);return D.then((()=>{R&&R(null)})).catch((K=>{R&&R(K)})),D}function Mr(_,R,...k){const D=_(...k);return D.then((K=>{R&&R(null,K)})).catch((K=>{R&&R(K,null)})),D}function br(_,R,k){return new Promise(((D,K)=>{const te=setTimeout(K,R,k);_().then((de=>{clearTimeout(te),D(de)})).catch((de=>{clearTimeout(te),K(de)}))}))}function or(_){const R=new URL("https://teams.microsoft.com/l/entity/"+encodeURIComponent(_.appId)+"/"+encodeURIComponent(_.pageId));return _.webUrl&&R.searchParams.append("webUrl",_.webUrl),(_.chatId||_.channelId||_.subPageId)&&R.searchParams.append("context",JSON.stringify({chatId:_.chatId,channelId:_.channelId,subEntityId:_.subPageId})),R.toString()}function us(_){return!(qm(`${_.majorVersion}.${_.minorVersion}`,`${vu}.${Hd}`)>=0)}function Jr(_){return _.protocol==="https:"}function Mi(_,R){return new Promise(((k,D)=>{if(_||D("MimeType cannot be null or empty."),R||D("Base64 string cannot be null or empty."),_.startsWith("image/")){const te=atob(R),de=new Uint8Array(te.length);for(let he=0;he<te.length;he++)de[he]=te.charCodeAt(he);k(new Blob([de],{type:_}))}const K=L.from(R,"base64").toString();k(new Blob([K],{type:_}))}))}function x4(_){return new Promise(((R,k)=>{_.size===0&&k(new Error("Blob cannot be empty."));const D=new FileReader;D.onloadend=()=>{D.result?R(D.result.toString().split(",")[1]):k(new Error("Failed to read the blob"))},D.onerror=()=>{k(D.error)},D.readAsDataURL(_)}))}function zd(){if(Is())throw new Error("window object undefined at SSR check");return window}function Is(){return typeof window>"u"}function gl(_,R){if(x2(_)||!A2(_)||!vl(_))throw R||new Error("id is not valid.")}function fw(_,R){const k=_.toString().toLocaleLowerCase();if(x2(k))throw new Error("Invalid Url");if(k.length>2048)throw new Error("Url exceeds the maximum size of 2048 characters");if(!Jr(_))throw new Error("Url should be a valid https url")}function k2(_){const R=document.createElement("a");return R.href=_,new URL(R.href)}function x2(_){let R;try{const k=A4(_);R=decodeURIComponent(k)}catch{R=_}return/<script[^>]*>[\s\S]*?<\/script[^>]*>/gi.test(R)}function A4(_){return new Map([["&lt;","<"],["&gt;",">"],["&amp;","&"],["&quot;",'"'],["&#39;","'"],["&#x2F;","/"]]).forEach(((R,k)=>{_=_.replace(new RegExp(k,"gi"),R)})),_}function A2(_){return _.length<256&&_.length>4}function vl(_){for(let R=0;R<_.length;R++){const k=_.charCodeAt(R);if(k<32||k>126)return!1}return!0}function nRe(_){if(!_)throw new Error("id must not be empty");if(sn(_)===!1)throw new Error("id must be a valid UUID")}var rRe=function(_,R){var k={};for(var D in _)Object.prototype.hasOwnProperty.call(_,D)&&R.indexOf(D)<0&&(k[D]=_[D]);if(_!=null&&typeof Object.getOwnPropertySymbols=="function"){var K=0;for(D=Object.getOwnPropertySymbols(_);K<D.length;K++)R.indexOf(D[K])<0&&Object.prototype.propertyIsEnumerable.call(_,D[K])&&(k[D[K]]=_[D[K]])}return k};const zG=c("runtime"),I2=4;function VG(_){return _.apiVersion===I2}const iRe={apiVersion:-1,supports:{}};function oRe(_){if(VG(_))return!0;throw _.apiVersion===-1?new Error(T):new Error(x)}let se=iRe;const sRe={supports:{appInstallDialog:{},appEntity:{},call:{},chat:{},conversations:{},dialog:{card:{bot:{}},url:{bot:{},parentCommunication:{}},update:{}},interactive:{},logs:{},meetingRoom:{},menus:{},monetization:{},notifications:{},pages:{config:{},backStack:{},fullTrust:{}},remoteCamera:{},teams:{fullTrust:{}},teamsCore:{},video:{sharedFrame:{}}}},WG=[bt.desktop,bt.web,bt.rigel,bt.surfaceHub,bt.teamsRoomsWindows,bt.teamsRoomsAndroid,bt.team
1503sPhones,bt.teamsDisplays],aRe=[bt.android,bt.ios,bt.ipados],qG=[...WG,...aRe];function cRe(_){let R=_;if(R.apiVersion<I2&&lRe.forEach((k=>{R.apiVersion===k.versionToUpgradeFrom&&(R=k.upgradeToNextVersion(R))})),VG(R))return R;throw new Error("Received a runtime that could not be upgraded to the latest version")}const lRe=[{versionToUpgradeFrom:1,upgradeToNextVersion:_=>{var R;return{apiVersion:2,hostVersionsInfo:void 0,isLegacyTeams:_.isLegacyTeams,supports:Object.assign(Object.assign({},_.supports),{dialog:_.supports.dialog?{card:void 0,url:_.supports.dialog,update:(R=_.supports.dialog)===null||R===void 0?void 0:R.update}:void 0})}}},{versionToUpgradeFrom:2,upgradeToNextVersion:_=>{const R=_.supports,{appNotification:k}=R,D=rRe(R,["appNotification"]);return Object.assign(Object.assign({},_),{apiVersion:3,supports:D})}},{versionToUpgradeFrom:3,upgradeToNextVersion:_=>{var R,k,D,K,te;return{apiVersion:4,hostVersionsInfo:_.hostVersionsInfo,isNAAChannelRecommended:_.isNAAChannelRecommended,isLegacyTeams:_.isLegacyTeams,supports:Object.assign(Object.assign({},_.supports),{dialog:_.supports.dialog?{card:(R=_.supports.dialog)===null||R===void 0?void 0:R.card,url:{bot:(D=(k=_.supports.dialog)===null||k===void 0?void 0:k.url)===null||D===void 0?void 0:D.bot,parentCommunication:!((K=_.supports.dialog)===null||K===void 0)&&K.url?{}:void 0},update:(te=_.supports.dialog)===null||te===void 0?void 0:te.update}:void 0})}}}],uRe={"1.0.0":[{capability:{pages:{appButton:{},tabs:{}},stageView:{}},hostClientTypes:WG}],"1.9.0":[{capability:{location:{}},hostClientTypes:qG}],"2.0.0":[{capability:{people:{}},hostClientTypes:qG},{capability:{sharing:{}},hostClientTypes:[bt.desktop,bt.web]}],"2.0.1":[{capability:{teams:{fullTrust:{joinedTeams:{}}}},hostClientTypes:[bt.android,bt.desktop,bt.ios,bt.teamsRoomsAndroid,bt.team
1503sPhones,bt.teamsDisplays,bt.web]},{capability:{webStorage:{}},hostClientTypes:[bt.desktop]}],"2.0.5":[{capability:{webStorage:{}},hostClientTypes:[bt.android,bt.ios]}],"2.0.8":[{capability:{sharing:{}},hostClientTypes:[bt.android,bt.ios]}]},I4=zG.extend("generateBackCompatRuntimeConfig");function GG(_,R){const k=Object.assign({},_);for(const D in R)Object.prototype.hasOwnProperty.call(R,D)&&(typeof R[D]!="object"||Array.isArray(R[D])?D in _||(k[D]=R[D]):k[D]=GG(_[D]||{},R[D]));return k}function dRe(_,R,k){I4("generating back compat runtime config for %s",_);let D=Object.assign({},R.supports);I4("Supported capabilities in config before updating based on highestSupportedVersion: %o",D),Object.keys(k).forEach((te=>{qm(_,te)>=0&&k[te].forEach((de=>{O.hostClientType!==void 0&&de.hostClientTypes.includes(O.hostClientType)&&(D=GG(D,de.capability))}))}));const K={apiVersion:I2,hostVersionsInfo:C2,isLegacyTeams:!0,supports:D};return I4("Runtime config after updating based on highestSupportedVersion: %o",K),K}const R4=zG.extend("applyRuntimeConfig");function P4(_){typeof _.apiVersion=="string"&&(R4("Trying to apply runtime with string apiVersion, processing as v1: %o",_),_=Object.assign(Object.assign({},_),{apiVersion:1})),R4("Fast-forwarding runtime %o",_);const R=cRe(_);R4("Applying runtime %o",R),se=T2(R)}const R2="2.28.0",KG=c("internal"),fRe=KG.extend("ensureInitializeCalled"),hRe=KG.extend("ensureInitialized");function Vd(){if(!O.initializeCalled)throw fRe(E),new Error(E)}function me(_,...R){if(!O.initializeCompleted)throw hRe("%s. initializeCalled: %s",E,O.initializeCalled.toString()),new Error(E);if(R&&R.length>0){let k=!1;for(let D=0;D<R.length;D++)if(R[D]===O.frameContext){k=!0;break}if(!k)throw new Error(`This call is only allowed in following contexts: ${JSON.stringify(R)}. Current context: "${O.frameContext}".`)}return oRe(_)}function yl(_=f){const R=qm(O.clientSupportedSDKVersion,_);return!isNaN(R)&&R>=0}function pRe(){return O.hostClientType==bt.android||O.hostClientType==bt.ios||O.hostClientType==bt.ipados}function P2(_=f){if(!pRe())throw{errorCode:Je.NOT_SUPPORTED_ON_PLATFORM};if(!yl(_))throw{errorCode:Je.OLD_PLATFORM}}function mRe(_){let R=O.additionalValidOrigins.concat(_.filter((D=>
1503typeof D=="string"&&w.test(D))));const k={};R=R.filter((D=>!k[D]&&(k[D]=!0,!0))),O.additionalValidOrigins=R}function wr(_){return _==null}var YG=function(_,R,k,D){function K(te){return te instanceof k?te:new k((function(de){de(te)}))}return new(k||(k=Promise))((function(te,de){function he(Ce){try{_e(D.next(Ce))}catch(Fe){de(Fe)}}function le(Ce){try{_e(D.throw(Ce))}catch(Fe){de(Fe)}}function _e(Ce){Ce.done?te(Ce.value):K(Ce.value).then(he,le)}_e((D=D.apply(_,[])).next())}))};let Gm=[];const O2=c("validateOrigin");function QG(){return YG(this,void 0,void 0,(function*(){yield XG()}))}function gRe(){return Gm.length===0}function XG(){return YG(this,void 0,void 0,(function*(){return gRe()?Is()?(Gm=y,y):fetch(v).then((_=>{if(!_.ok)throw new Error("Invalid Response from Fetch Call");return _.json().then((R=>{if(vRe(JSON.stringify(R)))return Gm=R.validOrigins,Gm;throw new Error("Valid Origins List Is Invalid")}))})).catch((_=>(O2("validOrigins fetch call to CDN failed with error: %s. Defaulting to fallback list",_),Gm=y,Gm))):Gm}))}function vRe(_){let R=JSON.parse(_);try{R=JSON.parse(_)}catch{return!1}if(!R.validOrigins)return!1;for(const k of R.validOrigins)try{new URL("https://"+k)}catch{return O2("isValidOriginsFromCDN call failed to validate origin: %s",k),!1}return!0}function JG(_,R){if(_.substring(0,2)==="*."){const k=_.substring(1);if(R.length>k.length&&R.split(".").length===k.split(".").length&&R.substring(R.length-k.length)===k)return!0}else if(_===R)return!0;return!1}function yRe(_){return XG().then((R=>{if(!Jr(_))return O2("Origin %s is invalid because it is not using https protocol. Protocol being used: %s",_,_.protocol),!1;const k=_.host;if(R.some((D=>JG(D,k))))return!0;for(const D of O.additionalValidOrigins)if(JG(D.substring(0,8)==="https://"?D.substring(8):D,k))return!0;return O2(`Origin %s is invalid because it is not an origin approved by this library or included in the call to app.initialize.
1504Origins approved by this library: %o
1505Origins included in app.initialize: %o`,_,R,O.additionalValidOrigins),!1}))}var hw,ZG=function(_,R,k,D){function K(te){return te instanceof k?te:new k((function(de){de(te)}))}return new(k||(k=Promise))((function(te,de){function he(Ce){try{_e(D.next(Ce))}catch(Fe){de(Fe)}}function le(Ce){try{_e(D.throw(Ce))}catch(Fe){de(Fe)}}function _e(Ce){Ce.done?te(Ce.value):K(Ce.value).then(he,le)}_e((D=D.apply(_,[])).next())}))};(function(_){(function(R){let k;const D=c("messageChannels.telemetry");function K(){var te;return!(!me(se)||!(!((te=se.supports.messageChannels)===null||te===void 0)&&te.telemetry))}R.getTelemetryPort=function(){return ZG(this,void 0,void 0,(function*(){if(k)return D("Returning telemetry port from cache"),k;if(!K())throw Me;return k=yield TK(l("v1","messageChannels.telemetry.getTelemetryPort"),"messageChannels.telemetry.getTelemetryPort"),k}))},R.isSupported=K,R._clearTelemetryPort=function(){k=void 0}})(_.telemetry||(_.telemetry={})),(function(R){let k;const D=c("messageChannels.dataLayer");function K(){var te;return!(!me(se)||!(!((te=se.supports.messageChannels)===null||te===void 0)&&te.dataLayer))}R.getDataLayerPort=function(){return ZG(this,void 0,void 0,(function*(){if(k)return D("Returning dataLayer port from cache"),k;if(!K())throw Me;return k=yield TK(l("v1","messageChannels.dataLayer.getDataLayerPort"),"messageChannels.dataLayer.getDataLayerPort"),k}))},R.isSupported=K,R._clearDataLayerPort=function(){k=void 0}})(_.dataLayer||(_.dataLayer={})),_.isSupported=function(){return!(!me(se)||!se.supports.messageChannels)}})(hw||(hw={}));const Wd="v1",pw="v2";var N2;(function(_){let R,k,D;function K(Be,Ze){return new Promise(((kt,lo)=>{if(O.hostClientType!==bt.web){const Cw=k2(Ze.url);fw(Cw),kt(Di(Be,"authentication.authenticate",[Cw.href,Ze.width,Ze.height,Ze.isExternal]).then((([J2,tY])=>{if(J2)return tY;throw new Error(tY)})))}else R={success:kt,fail:lo},le(Ze)}))}function te(Be,Ze){return new Promise((kt=>{kt(Di(Be,"authentication.getAuthToken",[Ze==null?void 0:Ze.resources,Ze==null?void 0:Ze.claims,Ze==null?void 0:Ze.silent,Ze==null?void 0:Ze.tenantId]))})).then((([kt,lo])=>{if(kt)return lo;throw new Error(lo)}))}function de(Be){return new Promise((Ze=>{Ze(Di(Be,"authentication.getUser"))})).then((([Ze,kt])=>{if(Ze)return kt;throw kt}))}function he(){_e();try{Ue.childWindow&&Ue.childWindow.close()}finally{Ue.childWindow=null,Ue.childOrigin=null}}function le(Be){he();let Ze=Be.width||600,kt=Be.height||400;Ze=Math.min(Ze,Ue.currentWindow.outerWidth-400),kt=Math.min(kt,Ue.currentWindow.outerHeight-200);const lo=k2(Be.url.replace("{oauthRedirectMethod}","web"));fw(lo);let Cw=Ue.currentWindow.screenLeft!==void 0?Ue.currentWindow.screenLeft:Ue.currentWindow.screenX,J2=Ue.currentWindow.screenTop!==void 0?Ue.currentWindow.screenTop:Ue.currentWindow.screenY;Cw+=Ue.currentWindow.outerWidth/2-Ze/2,J2+=Ue.currentWindow.outerHeight/2-kt/2,Ue.childWindow=Ue.currentWindow.open(lo.href,"_blank","toolbar=no, location=yes, status=no, menubar=no, scrollbars=yes, top="+J2+", left="+Cw+", width="+Ze+", height="+kt),Ue.childWindow?Ce():nt("FailedToOpenWindow")}function _e(){k&&(clearInterval(k),k=0),Ao("initialize"),Ao("navigateCrossDomain")}function Ce(){_e(),k=Ue.currentWindow.setInterval((()=>
1505{if(!Ue.childWindow||Ue.childWindow.closed)nt("CancelledByUser");else{const Be=Ue.childOrigin;try{Ue.childOrigin="*",wl("ping")}finally{Ue.childOrigin=Be}}}),100),At(l(Wd,"authentication.authenticationWindow.registerInitializeHandler"),"initialize",(()=>[ie.authentication,O.hostClientType])),At(l(Wd,"authentication.authenticationWindow.registerNavigateCrossDomainHandler"),"navigateCrossDomain",(()=>!1))}function Fe(Be){try{R&&R.success(Be)}finally{R=void 0,he()}}function nt(Be){try{R&&R.fail(new Error(Be))}finally{R=void 0,he()}}_.initialize=function(){At(l(Wd,"authentication.registerAuthenticateSuccessHandler"),"authentication.authenticate.success",Fe,!1),At(l(Wd,"authentication.registerAuthenticateFailureHandler"),"authentication.authenticate.failure",nt,!1)},_.registerAuthenticationHandlers=function(Be){D=Be},_.authenticate=function(Be){const Ze=Be!==void 0,kt=Ze?Be:D;if(!kt)throw new Error("No parameters are provided for authentication");return me(se,ie.content,ie.sidePanel,ie.settings,ie.remove,ie.task,ie.stage,ie.meetingStage),K(kt.successCallback||kt.failureCallback?l(Wd,"authentication.authenticate"):l(pw,"authentication.authenticate"),kt).then((lo=>{try{return kt&&kt.successCallback?(kt.successCallback(lo),""):lo}finally{Ze||(D=void 0)}})).catch((lo=>{try{if(kt&&kt.failureCallback)return kt.failureCallback(lo.message),"";throw lo}finally{Ze||(D=void 0)}}))},_.getAuthToken=function(Be){return Vd(),te(Be&&(Be.successCallback||Be.failureCallback)?l(Wd,"authentication.getAuthToken"):l(pw,"authentication.getAuthToken"),Be).then((Ze=>Be&&Be.successCallback?(Be.successCallback(Ze),""):Ze)).catch((Ze=>{if(Be&&Be.failureCallback)return Be.failureCallback(Ze.message),"";throw Ze}))},_.getUser=function(Be){return Vd(),de(Be&&(Be.successCallback||Be.failureCallback)?l(Wd,"authentication.getUser"):l(pw,"authentication.getUser")).then((Ze=>Be&&Be.successCallback?(Be.successCallback(Ze),null):Ze)).catch((Ze=>{const kt=`Error returned, code = ${Ze.errorCode}, message = ${Ze.message}`;if(Be&&Be.failureCallback)return Be.failureCallback(kt),null;throw new Error(kt)}))},_.notifySuccess=function(Be,Ze){me(se,ie.authentication),Le(l(Ze?Wd:pw,"authentication.notifySuccess"),"authentication.authenticate.success",[Be]),OK(Ue.parentWindow,(()=>setTimeout((()=>Ue.currentWindow.close()),200)))},_.notifyFailure=function(Be,Ze){me(se,ie.authentication),Le(l(Ze?Wd:pw,"authentication.notifyFailure"),"authentication.authenticate.failure",[Be]),OK(Ue.parentWindow,(()=>setTimeout((()=>Ue.currentWindow.close()),200)))},(function(Be){Be.Public="public",Be.EUDB="eudb",Be.Other="other"})(_.DataResidency||(_.DataResidency={}))})(N2||(N2={}));const vc="v2";function eK(_,R){if(me(se,ie.content,ie.sidePanel,ie.task,ie.meetingStage),!yu.update.isSupported())throw Me;Le(_,"tasks.updateTask",[R])}function tK(_,R,k,D){if(me(se,ie.content,ie.sidePanel,ie.meetingStage),!yu.url.isSupported())throw Me;D&&At(l(vc,"dialog.url.registerMessageForParentHandler"),"messageForParent",D),Le(_,"tasks.startTask",[yu.url.getDialogInfoFromUrlDialogInfo(R)],((K,te)=>{k==null||k({err:K,result:te}),Ao("messageForParent")}))}function nK(_,R,k,D){if(me(se,ie.content,ie.sidePanel,ie.meetingStage),!yu.url.bot.isSupported())throw Me;D&&At(l(vc,"dialog.url.bot.registerMessageForParentHandler"),"messageForParent",D),Le(_,"tasks.startTask",[yu.url.getDialogInfoFromBotUrlDialogInfo(R)],((K,te)=>{k==null||k({err:K,result:te}),Ao("messageForParent")}))}function rK(_,R,k){if(me(se,ie.task),!yu.url.isSupported())throw Me;Le(_,"tasks.completeTask",[R,k?Array.isArray(k)?k:[k]:[]])}var yu;(function(_){const R=[];function k(D){O.frameContext&&(O.frameContext===ie.task?R.push(D):Ao("messageForChild"))}_.initialize=function(){At(l(vc,"dialog.registerMessageForChildHandler"),"messageForChild",k,!1)},(function(D){function K(te){return{url:te.url,height:te.size?te.size.height:Nr.Small,width:te.size?te.size.width:Nr.Small,title:te.title,fallbackUrl:te.fallbackUrl}}D.open=function(te,de,he){tK(l(vc,"dialog.url.open"),te,de,he)},D.submit=function(te,de){rK(l(vc,"dialog.url.submit"),te,de)},(function(te){function de(){var he,le;return me(se)&&!!(!((le=(he=se.supports.dialog)===null||he===void 0?void 0:he.url)===null||le===void 0)&&le.parentCommunication)}te.sendMessageToParentFromDialog=function(he){if(me(se,ie.task),!de())throw Me;Le(l(vc,"dialog.url.parentCommunication.sendMessageToParentFromDialog"),"messageForParent",[he])},te.sendMessageToDialog=function(he){if(me(se,ie.content,ie.sidePanel,ie.meetingStage),!de())throw Me;Le(l(vc,"dialog.url.parentCommunication.sendMessageToDialog"),"messageForChild",[he])},te.registerOnMessageFromParent=function(he){if(me(se,ie.task),!de())throw Me;for(Ao("messageForChild"),At(l(vc,"dialog.url.parentCommunication.registerMessageForChildHandler"),"messageForChild",he),R.reverse();R.length>0;)he(R.pop())},te.isSupported=de})(D.parentCommunication||(D.parentCommunication={})),D.isSupported=function(){return me(se)&&(se.supports.dialog&&se.supports.dialog.url)!==void 0},(function(te){te.open=function(de,he,le){nK(l(vc,"dialog.url.bot.open"),de,he,le)},te.isSupported=function(){return me(se)&&(se.supports.dialog&&se.supports.dialog.url&&se.supports.dialog.url.bot)!==void 0}})(D.bot||(D.bot={})),D.getDialogInfoFromUrlDialogInfo=K,D.getDialogInfoFromBotUrlDialogInfo=function(te){const de=K(te);return de.completionBotId=te.completionBotId,de}})(_.url||(_.url={}
1505)),_.isSupported=function(){return!(!me(se)||!se.supports.dialog)},(function(D){D.resize=function(K){eK(l(vc,"dialog.update.resize"),K)},D.isSupported=function(){return!(!me(se)||!se.supports.dialog)&&!!se.supports.dialog.update}})(_.update||(_.update={})),(function(D){function K(){const he=se.hostVersionsInfo&&se.hostVersionsInfo.adaptiveCardSchemaVersion&&!us(se.hostVersionsInfo.adaptiveCardSchemaVersion);return me(se)&&(he&&se.supports.dialog&&se.supports.dialog.card)!==void 0}function te(he){return{card:he.card,height:he.size?he.size.height:Nr.Small,width:he.size?he.size.width:Nr.Small,title:he.title}}function de(he){const le=te(he);return le.completionBotId=he.completionBotId,le}D.open=function(he,le){if(me(se,ie.content,ie.sidePanel,ie.meetingStage),!K())throw Me;const _e=te(he);Le(l(vc,"dialog.adaptiveCard.open"),"tasks.startTask",[_e],((Ce,Fe)=>{le==null||le({err:Ce,result:Fe})}))},D.isSupported=K,(function(he){function le(){const _e=se.hostVersionsInfo&&se.hostVersionsInfo.adaptiveCardSchemaVersion&&!us(se.hostVersionsInfo.adaptiveCardSchemaVersion);return me(se)&&(_e&&se.supports.dialog&&se.supports.dialog.card&&se.supports.dialog.card.bot)!==void 0}he.open=function(_e,Ce){if(me(se,ie.content,ie.sidePanel,ie.meetingStage),!le())throw Me;const Fe=de(_e);Le(l(vc,"dialog.adaptiveCard.bot.open"),"tasks.startTask",[Fe],((nt,Be)=>{Ce==null||Ce({err:nt,result:Be})}))},he.isSupported=le})(D.bot||(D.bot={}))})(_.adaptiveCard||(_.adaptiveCard={}))})(yu||(yu={}));const qd="v2";var M2;(function(_){let R,k,D;(function(le){le[le.ifRoom=0]="ifRoom",le[le.overflowOnly=1]="overflowOnly"})(_.DisplayMode||(_.DisplayMode={}));function K(le){D&&D(le)||(me(se),Le(l(qd,"menus.handleViewConfigItemPress"),"viewConfigItemPress",[le]))}function te(le){R&&R(le)||(me(se),Le(l(qd,"menus.handleNavBarMenuItemPress"),"handleNavBarMenuItemPress",[le]))}function de(le){k&&k(le)||(me(se),Le(l(qd,"menus.handleActionMenuItemPress"),"handleActionMenuItemPress",[le]))}function he(){return!(!me(se)||!se.supports.menus)}_.MenuItem=class{constructor(){this.enabled=!0,this.selected=!1}},(function(le){le.dropDown="dropDown",le.popOver="popOver"})(_.MenuListType||(_.MenuListType={}
1505)),_.initialize=function(){At(l(qd,"menus.registerNavBarMenuItemPressHandler"),"navBarMenuItemPress",te,!1),At(l(qd,"menus.registerActionMenuItemPressHandler"),"actionMenuItemPress",de,!1),At(l(qd,"menus.registerSetModuleViewHandler"),"setModuleView",K,!1)},_.setUpViews=function(le,_e){if(me(se),!he())throw Me;D=_e,Le(l(qd,"menus.setUpViews"),"setUpViews",[le])},_.setNavBarMenu=function(le,_e){if(me(se),!he())throw Me;R=_e,Le(l(qd,"menus.setNavBarMenu"),"setNavBarMenu",[le])},_.showActionMenu=function(le,_e){if(me(se),!he())throw Me;k=_e,Le(l(qd,"menus.showActionMenu"),"showActionMenu",[le])},_.isSupported=he})(M2||(M2={}));const xh="v2",bRe=5e3,iK=c("app");function D2(_,R){return Is()?(iK.extend("initialize")("window object undefined at initialization"),Promise.resolve()):br((()=>wRe(_,R)),bRe,new Error("SDK initialization timed out."))}function oK(_){Le(_,bl.Messages.AppLoaded,[R2])}function sK(_,R){Le(_,bl.Messages.ExpectedFailure,[R.reason,R.message])}function aK(_,R){Le(_,bl.Messages.Failure,[R.reason,R.message])}function cK(_){Le(_,bl.Messages.Success,[R2])}const mw=iK.extend("initializeHelper");function wRe(_,R){return new Promise((k=>{O.initializeCalled||(O.initializeCalled=!0,TRe(),O.initializePromise=zRe(R,_).then((({context:D,clientType:K,runtimeConfig:te,clientSupportedSDKVersion:de=f})=>{O.frameContext=D,O.hostClientType=K,O.clientSupportedSDKVersion=de;try{mw("Parsing %s",te);const he=JSON.parse(te);if(mw("Checking if %o is a valid runtime object",he??"null"),!he||!he.apiVersion)throw new Error("Received runtime config is invalid");te&&P4(he)}catch(he){if(!(he instanceof SyntaxError))throw he;try{mw("Attempting to parse %s as an SDK version",te),isNaN(qm(te,f))||(O.clientSupportedSDKVersion=te);const le=JSON.parse(de);if(mw("givenRuntimeConfig parsed to %o",le??"null"),!le)throw new Error("givenRuntimeConfig string was successfully parsed. However, it parsed to value of null");P4(le)}catch(le){if(!(le instanceof SyntaxError))throw le;P4(dRe(O.clientSupportedSDKVersion,sRe,uRe))}}O.initializeCompleted=!0})),N2.initialize(),M2.initialize(),ao.config.initialize(),yu.initialize()),Array.isArray(R)&&mRe(R),O.initializePromise!==void 0?k(O.initializePromise):mw("GlobalVars.initializePromise is unexpectedly undefined")}))}function lK(_,R){!wr(R)&&Vd(),xRe(_,R)}function uK(_,R){return new Promise((k=>{me(se,ie.content,ie.sidePanel,ie.settings,ie.task,ie.stage,ie.meetingStage),k(ds(_,"executeDeepLink",R))}))}var bl;function SRe(_){var R;return{actionInfo:_.actionInfo,app:{locale:_.locale,sessionId:_.appSessionId?_.appSessionId:"",theme:_.theme?_.theme:"default",iconPositionVertical:_.appIconPosition,osLocaleInfo:_.osLocaleInfo,parentMessageId:_.parentMessageId,userClickTime:_.userClickTime,userFileOpenPreference:_.userFileOpenPreference,host:{name:_.hostName?_.hostName:Or.teams,clientType:_.hostClientType?_.hostClientType:bt.web,sessionId:_.sessionId?_.sessionId:"",ringId:_.ringId},appLaunchId:_.appLaunchId},page:{id:_.entityId,frameContext:_.frameContext?_.frameContext:O.frameContext,subPageId:_.subEntityId,isFullScreen:_.isFullScreen,isMultiWindow:_.isMultiWindow,isBackgroundLoad:_.isBackgroundLoad,sourceOrigin:_.sourceOrigin},user:{id:(R=_.userObjectId)!==null&&R!==void 0?R:"",displayName:_.userDisplayName,isCallingAllowed:_.isCallingAllowed,isPSTNCallingAllowed:_.isPSTNCallingAllowed,licenseType:_.userLicenseType,loginHint:_.loginHint,userPrincipalName:_.userPrincipalName,tenant:_.tid?{id:_.tid,teamsSku:_.tenantSKU}:void 0},channel:_.channelId?{id:_.channelId,displayName:_.channelName,relativeUrl:_.channelRelativeUrl,membershipType:_.channelType,defaultOneNoteSectionId:_.defaultOneNoteSectionId,ownerGroupId:_.hostTeamGroupId,ownerTenantId:_.hostTeamTenantId}:void 0,chat:_.chatId?{id:_.chatId}:void 0,meeting:_.meetingId?{id:_.meetingId}:void 0,sharepoint:_.sharepoint,team:_.teamId?{internalId:_.teamId,displayName:_.teamName,type:_.teamType,groupId:_.groupId,templateId:_.teamTemplateId,isArchived:_.isTeamArchived,userRole:_.userTeamRole}:void 0,sharePointSite:_.teamSiteUrl||_.teamSiteDomain||_.teamSitePath||_.mySitePath||_.mySiteDomain?{teamSiteUrl:_.teamSiteUrl,teamSiteDomain:_.teamSiteDomain,teamSitePath:_.teamSitePath,teamSiteId:_.teamSiteId,mySitePath:_.mySitePath,mySiteDomain:_.mySiteDomain}:void 0,dialogParameters:_.dialogParameters||{}}}(function(_){const R=c("app");_.Messages={AppLoaded:"appInitialization.appLoaded",Success:"appInitialization.success",Failure:"appInitialization.failure",ExpectedFailure:"appInitialization.expectedFailure"},(function(k){k.AuthFailed="AuthFailed",k.Timeout="Timeout",k.Other="Other"})(_.FailedReason||(_.FailedReason={})),(function(k){k.PermissionError="PermissionError",k.NotFound="NotFound",k.Throttling="Throttling",k.Offline="Offline",k.Other="Other"})(_.ExpectedFailureReason||(_.ExpectedFailureReason={})),_.isInitialized=function(){return O.initializeCompleted},_.getFrameContext=function(){return O.frameContext},(function(){if(Is())return;const k=document.getElementsByTagName("script"),D=k&&k[k.length-1]&&k[k.length-1].src,K="Today, teamsjs can only be used from a single script or you may see undefined behavior. This log line is used to help detect cases where teamsjs is loaded multiple times -- it is always written. The presence of the log itself does not indicate a multi-load situation, but multiples of these log lines will. If you would like to use teamjs from more than one script at the same time, please open an issue at https://github.com/OfficeDev/microsoft-teams-library-js/issues";D&&D.length!==0?R("teamsjs is being used from %s. %s",D,K):R("teamsjs is being used from a script tag embedded directly in your html. %s",K)})(),_.initialize=function(k){return QG(),D2(l(xh,"app.initialize"),k)},_._initialize=function(k){Ue.currentWindow=k},_._uninitialize=function(){O.initializeCalled&&(kRe(),O.initializeCalled=!1,O.initializeCompleted=!1,O.initializePromise=void 0,O.additionalValidOrigins=[],O.frameContext=void 0,O.hostClientType=void 0,O.isFramelessWindow=!1,hw.telemetry._clearTelemetryPort(),hw.dataLayer._clearDataLayerPort(),VRe())},_.getContext=function(){return new Promise((k=>{Vd(),k(Gd(l(xh,"app.getContext"),"getContext"))})).then((k=>SRe(k)))},_.notifyAppLoaded=function(){Vd(),oK(l(xh,"app.notifyAppLoaded"))},_.notifySuccess=function(){Vd(),cK(l(xh,"app.notifySuccess"))},_.notifyFailure=function(k){Vd(),aK(l(xh,"app.notifyFailure"),k)},_.notifyExpectedFailure=function(k){Vd(),sK(l(xh,"app.notifyExpectedFailure"),k)},_.registerOnThemeChangeHandler=function(k){lK(l(xh,"app.registerOnThemeChangeHandler"),k)},_.openLink=function(k){return uK(l(xh,"app.openLink"),k)},(function(k){k.registerBeforeSuspendOrTerminateHandler=function(D){if(!D)throw new Error("[app.lifecycle.registerBeforeSuspendOrTerminateHandler] Handler cannot be null");me(se),MRe(D)},k.registerOnResumeHandler=function(D){if(!D)throw new Error("[app.lifecycle.registerOnResumeHandler] Handler cannot be null");me(se),DRe(D)}})(_.lifecycle||(_.lifecycle={}))})(bl||(bl={}));const Rn="v2";function dK(_,R){return new Promise((k=>{if(me(se,ie.content,ie.sidePanel,ie.settings,ie.remove,ie.task,ie.stage,ie.meetingStage),!ao.isSupported())throw Me;k(M4(_,"navigateCrossDomain","Cross-origin navigation is only supported for URLs matching the pattern registered in the manifest.",R))}))}function fK(_){return new Promise((R=>{if(me(se),!ao.backStack.isSupported())throw Me;R(M4(_,"navigateBack","Back navigation is not supported in the current client or context."))}))}function hK(_,R){return new Promise((k=>{if(me(se),!ao.tabs.isSupported())throw Me;k(M4(_,"navigateToTab","Invalid internalTabInstanceId and/or channelId were/was provided",R))}))}function _Re(_,R){if(me(se),!ao.isSupported())throw Me;Le(_,"returnFocus",[R])}function pK(_,R){return new Promise((k=>{if(me(se),!ao.tabs.isSupported())throw Me;k(Gd(_,"getTabInstances",R))}))}function mK(_,R){return new Promise((k=>{if(me(se),!ao.tabs.isSupported())throw Me;k(Gd(_,"getMruTabInstances",R))}))}function gK(_,R){if(me(se,ie.content,ie.sidePanel,ie.meetingStage),!ao.isSupported())throw Me;Le(_,"shareDeepLink",[R.subPageId,R.subPageLabel,R.subPageWebUrl])}function O4(_,R){if(me(se,ie.content),!ao.isSupported())throw Me;Le(_,"setFrameContext",[R])}function vK(_,R){if(me(se,ie.settings,ie.remove),!ao.config.isSupported())throw Me;Le(_,"settings.setValidityState",[R])}function yK(_){return new Promise((R=>{if(me(se,ie.content,ie.settings,ie.remove,ie.sidePanel),!ao.isSupported())throw Me;R(Gd(_,"settings.getSettings"))}))}function bK(_,R){return new Promise((k=>{if(me(se,ie.content,ie.settings,ie.sidePanel),!ao.config.isSupported())throw Me;k(ds(_,"settings.setSettings",R))}))}var ao;(function(_){function R(D){O4(l(Rn,"pages.setCurrentFrame"),D)}function k(){return!(!me(se)||!se.supports.pages)}(function(D){D[D.PreviousLandmark=0]="PreviousLandmark",D[D.NextLandmark=1]="NextLandmark",D[D.Read=2]="Read",D[D.Compose=3]="Compose"})(_.EnterFocusType||(_.EnterFocusType={})),(function(D){D[D.PreviousLandmark=0]="PreviousLandmark",D[D.NextLandmark=1]="NextLandmark",D[D.GoToActivityFeed=2]="GoToActivityFeed"})(_.ReturnFocusType||(_.ReturnFocusType={})),_.returnFocus=function(D){const K=l(Rn,"pages.returnFocus");if(me(se),!_.isSupported())throw Me;if(D===void 0&&Le(K,"returnFocus",[!1]),typeof D=="boolean")Le(K,"returnFocus",[D]);else switch(D){case _.ReturnFocusType.PreviousLandmark:case _.ReturnFocusType.GoToActivityFeed:Le(K,"returnFocus",[!1,D]);break;case _.ReturnFocusType.NextLandmark:Le(K,"returnFocus",[!0,D])}},_.registerFocusEnterHandler=function(D){yc(l(Rn,"pages.registerFocusEnterHandler"),"focusEnter",D,[],(()=>{if(!k())throw Me}))},_.setCurrentFrame=R,_.initializeWithFrameContext=function(D,K,te){QG(),D2(l(Rn,"pages.initializeWithFrameContext"),te).then((()=>
1505K&&K())),R(D)},_.getConfig=function(){return yK(l(Rn,"pages.getConfig."))},_.navigateCrossDomain=function(D){return dK(l(Rn,"pages.navigateCrossDomain"),D)},_.navigateToApp=function(D){return new Promise((K=>{if(me(se,ie.content,ie.sidePanel,ie.settings,ie.task,ie.stage,ie.meetingStage),!k())throw Me;const te=l(Rn,"pages.navigateToApp");se.isLegacyTeams?K(ds(te,"executeDeepLink",or(D))):K(ds(te,"pages.navigateToApp",D))}))},_.shareDeepLink=function(D){return gK(l(Rn,"pages.shareDeepLink"),D)},_.registerFullScreenHandler=function(D){yc(l(Rn,"pages.registerFullScreenHandler"),"fullScreenChange",D,[],(()=>{if(!wr(D)&&!k())throw Me}))},_.isSupported=k,(function(D){D.navigateToTab=function(K){return hK(l(Rn,"pages.tabs.navigateToTab"),K)},D.getTabInstances=function(K){return pK(l(Rn,"pages.tabs.getTabInstances"),K)},D.getMruTabInstances=function(K){return mK(l(Rn,"pages.tabs.getMruTabInstances"),K)},D.isSupported=function(){return!(!me(se)||!se.supports.pages)&&!!se.supports.pages.tabs}})(_.tabs||(_.tabs={})),(function(D){let K,te;function de(Be,Ze,kt){!wr(Ze)&&me(se,ie.settings),kt&&kt(),K=Ze,!wr(Ze)&&Le(Be,"registerHandler",["save"])}function he(Be,Ze,kt){!wr(Ze)&&me(se,ie.remove,ie.settings),kt&&kt(),te=Ze,!wr(Ze)&&Le(Be,"registerHandler",["remove"])}function le(Be){const Ze=new _e(Be);K?K(Ze):Ue.childWindow?wl("settings.save",[Be]):Ze.notifySuccess()}D.initialize=function(){At(l(Rn,"pages.config.registerSettingsSaveHandler"),"settings.save",le,!1),At(l(Rn,"pages.config.registerSettingsRemoveHandler"),"settings.remove",Ce,!1)},D.setValidityState=function(Be){return vK(l(Rn,"pages.config.setValidityState"),Be)},D.setConfig=function(Be){return bK(l(Rn,"pages.config.setConfig"),Be)},D.registerOnSaveHandler=function(Be){de(l(Rn,"pages.config.registerOnSaveHandler"),Be,(()=>{if(!wr(Be)&&!nt())throw Me}))},D.registerOnSaveHandlerHelper=de,D.registerOnRemoveHandler=function(Be){he(l(Rn,"pages.config.registerOnRemoveHandler"),Be,(()=>{if(!wr(Be)&&!nt())throw Me}))},D.registerOnRemoveHandlerHelper=he,D.registerChangeConfigHandler=function(Be){yc(l(Rn,"pages.config.registerChangeConfigHandler"),"changeSettings",Be,[ie.content],(()=>{if(!nt())throw Me}))};class _e{constructor(Ze){this.notified=!1,this.result=Ze||{}}notifySuccess(){this.ensureNotNotified(),Le(l(Rn,"pages.saveEvent.notifySuccess"),"settings.save.success"),this.notified=!0}notifyFailure(Ze){this.ensureNotNotified(),Le(l(Rn,"pages.saveEvent.notifyFailure"),"settings.save.failure",[Ze]),this.notified=!0}ensureNotNotified(){if(this.notified)throw new Error("The SaveEvent may only notify success or failure once.")}}function Ce(){const Be=new Fe;te?te(Be):Ue.childWindow?wl("settings.remove",[]):Be.notifySuccess()}class Fe{constructor(){this.notified=!1}notifySuccess(){this.ensureNotNotified(),Le(l(Rn,"pages.removeEvent.notifySuccess"),"settings.remove.success"),this.notified=!0}notifyFailure(Ze){this.ensureNotNotified(),Le(l(Rn,"pages.removeEvent.notifyFailure"),"settings.remove.failure",[Ze]),this.notified=!0}ensureNotNotified(){if(this.notified)throw new Error("The removeEventType may only notify success or failure once.")}}function nt(){return!(!me(se)||!se.supports.pages)&&!!se.supports.pages.config}D.isSupported=nt})(_.config||(_.config={})),(function(D){let K;function te(){return fK(l(Rn,"pages.backStack.navigateBack"))}function de(_e,Ce,Fe){!wr(Ce)&&me(se),Fe&&Fe(),K=Ce,!wr(Ce)&&Le(_e,"registerHandler",["backButton"])}function he(){K&&K()||(Ue.childWindow?wl("backButtonPress",[]):te())}function le(){return!(!me(se)||!se.supports.pages)&&!!se.supports.pages.backStack}D._initialize=function(){At(l(Rn,"pages.backStack.registerBackButtonPressHandler"),"backButtonPress",he,!1)},D.navigateBack=te,D.registerBackButtonHandler=function(_e){de(l(Rn,"pages.backStack.registerBackButtonHandler"),_e,(()=>{if(!wr(_e)&&!le())throw Me}))},D.registerBackButtonHandlerHelper=de,D.isSupported=le})(_.backStack||(_.backStack={})),(function(D){function K(){return!(!me(se)||!se.supports.pages)&&!!se.supports.pages.fullTrust}D.enterFullscreen=function(){if(me(se,ie.content),!K())throw Me;Le(l(Rn,"pages.fullTrust.enterFullscreen"),"enterFullscreen",[])},D.exitFullscreen=function(){if(me(se,ie.content),!K())throw Me;Le(l(Rn,"pages.fullTrust.exitFullscreen"),"exitFullscreen",[])},D.isSupported=K})(_.fullTrust||(_.fullTrust={})),(function(D){function K(){return!(!me(se)||!se.supports.pages)&&!!se.supports.pages.appButton}D.onClick=function(te){yc(l(Rn,"pages.appButton.onClick"),"appButtonClick",te,[ie.content],(()=>{if(!K())throw Me}))}
1505,D.onHoverEnter=function(te){yc(l(Rn,"pages.appButton.onHoverEnter"),"appButtonHoverEnter",te,[ie.content],(()=>{if(!K())throw Me}))},D.onHoverLeave=function(te){yc(l(Rn,"pages.appButton.onHoverLeave"),"appButtonHoverLeave",te,[ie.content],(()=>{if(!K())throw Me}))},D.isSupported=K})(_.appButton||(_.appButton={})),(function(D){function K(){return!(!me(se)||!se.supports.pages)&&!!se.supports.pages.currentApp}D.navigateTo=function(te){return new Promise((de=>{if(me(se,ie.content,ie.sidePanel,ie.settings,ie.task,ie.stage,ie.meetingStage),!K())throw Me;de(en(l(Rn,"pages.currentApp.navigateTo"),"pages.currentApp.navigateTo",te))}))},D.navigateToDefaultPage=function(){return new Promise((te=>{if(me(se,ie.content,ie.sidePanel,ie.settings,ie.task,ie.stage,ie.meetingStage),!K())throw Me;te(en(l(Rn,"pages.currentApp.navigateToDefaultPage"),"pages.currentApp.navigateToDefaultPage"))}))},D.isSupported=K})(_.currentApp||(_.currentApp={}))})(ao||(ao={}));var CRe=function(_,R,k,D){function K(te){return te instanceof k?te:new k((function(de){de(te)}))}return new(k||(k=Promise))((function(te,de){function he(Ce){try{_e(D.next(Ce))}catch(Fe){de(Fe)}}function le(Ce){try{_e(D.throw(Ce))}catch(Fe){de(Fe)}}function _e(Ce){Ce.done?te(Ce.value):K(Ce.value).then(he,le)}_e((D=D.apply(_,[])).next())}))};const ERe=c("handlers");class mn{static initializeHandlers(){mn.handlers.themeChange=ARe,mn.handlers.load=RRe,mn.handlers.beforeUnload=NRe,ao.backStack._initialize()}static uninitializeHandlers(){mn.handlers={},mn.themeChangeHandler=null,mn.loadHandler=null,mn.beforeUnloadHandler=null,mn.beforeSuspendOrTerminateHandler=null,mn.resumeHandler=null}}function TRe(){mn.initializeHandlers()}function kRe(){mn.uninitializeHandlers()}mn.handlers={},mn.themeChangeHandler=null,mn.loadHandler=null,mn.beforeUnloadHandler=null,mn.beforeSuspendOrTerminateHandler=null,mn.resumeHandler=null;const wK=ERe.extend("callHandler");function SK(_,R){const k=mn.handlers[_];return k?(wK("Invoking the registered handler for message %s with arguments %o",_,R),[!0,k.apply(this,R)]):Ue.childWindow?(wl(_,R),[!1,void 0]):(wK("Handler for action message %s not found.",_),[!1,void 0])}function At(_,R,k,D=!0,K=[]){k?(mn.handlers[R]=k,D&&Le(_,"registerHandler",[R,...K])):delete mn.handlers[R]}function Ao(_){delete mn.handlers[_]}function _K(_){return mn.handlers[_]!=null}function yc(_,R,k,D,K){k&&me(se,...D),K&&K(),At(_,R,k)}function xRe(_,R){mn.themeChangeHandler=R,!wr(R)&&Le(_,"registerHandler",["themeChange"])}function ARe(_){mn.themeChangeHandler&&mn.themeChangeHandler(_),Ue.childWindow&&wl("themeChange",[_])}function IRe(_,R){mn.loadHandler=R,!wr(R)&&Le(_,"registerHandler",["load"])}function RRe(_){const R=PRe(_);mn.resumeHandler?(mn.resumeHandler(R),Ue.childWindow&&wl("load",[R])):mn.loadHandler&&(mn.loadHandler(_),Ue.childWindow&&wl("load",[_]))}function PRe(_){return{entityId:_.entityId,contentUrl:new URL(_.contentUrl)}}function ORe(_,R){mn.beforeUnloadHandler=R,!wr(R)&&Le(_,"registerHandler",["beforeUnload"])}function NRe(){return CRe(this,void 0,void 0,(function*(){const _=()=>{Le(l("v2","handleBeforeUnload"),"readyToUnload",[])};mn.beforeSuspendOrTerminateHandler?(yield mn.beforeSuspendOrTerminateHandler(),Ue.childWindow?wl("beforeUnload"):_()):mn.beforeUnloadHandler&&mn.beforeUnloadHandler(_)||(Ue.childWindow?wl("beforeUnload"):_())}))}function MRe(_){mn.beforeSuspendOrTerminateHandler=_,!wr(_)&&Le(l("v2","registerBeforeSuspendOrTerminateHandler"),"registerHandler",["beforeUnload"])}function DRe(_){mn.resumeHandler=_,!wr(_)&&Le(l("v2","registerOnResumeHandler"),"registerHandler",["load"])}class L2{constructor(R=dw()){this.uuid=R,nRe(R)}toString(){return this.uuid}}var F2=function(_,R){var k={};for(var D in _)Object.prototype.hasOwnProperty.call(_,D)&&R.indexOf(D)<0&&(k[D]=_[D]);if(_!=null&&typeof Object.getOwnPropertySymbols=="function"){var K=0;for(D=Object.getOwnPropertySymbols(_);K<D.length;K++)R.indexOf(D[K])<0&&Object.prototype.propertyIsEnumerable.call(_,D[K])&&(k[D[K]]=_[D[K]])}return k};const CK=_=>{const{uuid:R}=_,k=F2(_,["uuid"]),D=R==null?void 0:R.toString();return Object.assign(Object.assign({},k),{uuidAsString:D})},LRe=_=>{const{uuidAsString:R}=_,k=F2(_,["uuidAsString"]);return Object.assign(Object.assign({},k),{uuid:R?new L2(R):void 0})},FRe=_=>{const{uuidAsString:R}=_,k=F2(_,["uuidAsString"]);return Object.assign(Object.assign({},k),{uuid:R?new L2(R):void 0})},jRe=_=>{const{uuid:R}=_,k=F2(_,["uuid"]),D=R==null?void 0:R.toString();return Object.assign(Object.assign({},k),{uuidAsString:D})},EK=c("nestedAppAuthUtils"),URe=EK.extend("tryPolyfillWithNestedAppAuthBridge");function BRe(_,R,k){var D;const K=URe;if(O.isFramelessWindow)return void K("Cannot polyfill nestedAppAuthBridge as current window is frameless");if(!R)return void K("Cannot polyfill nestedAppAuthBridge as current window does not exist");const te=(()=>{try{return JSON.parse(_)}catch{return null}})();if(!te||!(!((D=te.supports)===null||D===void 0)&&D.nestedAppAuth))return void K("Cannot polyfill nestedAppAuthBridge as current hub does not support nested app auth");const de=R;if(de.nestedAppAuthBridge)return void K("nestedAppAuthBridge already exists on current window, skipping pol
1505yfill");const he=HRe(de,k);he&&(de.nestedAppAuthBridge=he)}const $Re=EK.extend("createNestedAppAuthBridge");function HRe(_,R){const k=$Re;if(!_)return k("nestedAppAuthBridge cannot be created as current window does not exist"),null;const{onMessage:D,sendPostMessage:K}=R,te=de=>he=>D(he,de);return{addEventListener:(de,he)=>{de==="message"?_.addEventListener(de,te(he)):k(`Event ${de} is not supported by nestedAppAuthBridge`)},postMessage:de=>{const he=(()=>{try{return JSON.parse(de)}catch{return null}})();he&&typeof he=="object"&&he.messageType==="NestedAppAuthRequest"?K(de):k("Unrecognized data format received by app, message being ignored. Message: %o",de)},removeEventListener:(de,he)=>{_.removeEventListener(de,te(he))}}}var N4=function(_,R,k,D){function K(te){return te instanceof k?te:new k((function(de){de(te)}))}return new(k||(k=Promise))((function(te,de){function he(Ce){try{_e(D.next(Ce))}catch(Fe){de(Fe)}}function le(Ce){try{_e(D.throw(Ce))}catch(Fe){de(Fe)}}function _e(Ce){Ce.done?te(Ce.value):K(Ce.value).then(
1505he,le)}_e((D=D.apply(_,[])).next())}))};const Ah=c("communication");class Ue{}class an{}function zRe(_,R){if(an.messageListener=k=>N4(this,void 0,void 0,(function*(){return yield XRe(k)})),Ue.currentWindow=Ue.currentWindow||zd(),Ue.parentWindow=Ue.currentWindow.parent!==Ue.currentWindow.self?Ue.currentWindow.parent:Ue.currentWindow.opener,Ue.topWindow=Ue.currentWindow.top,(Ue.parentWindow||_)&&Ue.currentWindow.addEventListener("message",an.messageListener,!1),!Ue.parentWindow){const k=Ue.currentWindow;if(!k.nativeInterface)return Promise.reject(new Error("Initialization Failed. No Parent window found."));O.isFramelessWindow=!0,k.onNativeMessage=RK}try{return Ue.parentOrigin="*",Di(R,"initialize",[R2,I2,_]).then((([k,D,K,te])=>(BRe(te,Ue.currentWindow,{onMessage:ZRe,sendPostMessage:KRe}),{context:k,clientType:D,runtimeConfig:K,clientSupportedSDKVersion:te})))}finally{Ue.parentOrigin=null}}function VRe(){Ue.currentWindow&&Ue.currentWindow.removeEventListener("message",an.messageListener,!1),Ue.currentWindow=null,Ue.parentWindow=null,Ue.parentOrigin=null,Ue.childWindow=null,Ue.childOrigin=null,an.parentMessageQueue=[],an.childMessageQueue=[],an.nextMessageId=0,an.callbacks.clear(),an.promiseCallbacks.clear(),an.portCallbacks.clear(),an.legacyMessageIdsToUuidMap={}}function Gd(_,R,...k){return Di(_,R,k).then((([D])=>D))}function ds(_,R,...k){return Di(_,R,k).then((([D,K])=>{if(!D)throw new Error(K)}))}function M4(_,R,k,...D){return Di(_,R,D).then((([K,te])=>{if(!K)throw new Error(te||k)}))}function en(_,R,...k){return Di(_,R,k).then((([D,K])=>{if(D)throw D;return K}))}function Di(_,R,k=void 0){if(!u(_))throw Error(`apiVersionTag: ${_} passed in doesn't follow the pattern starting with 'v' followed by digits, then underscore with words, please check.`);return new Promise((D=>{D(qRe(D4(_,R,k).uuid))}))}function TK(_,R,k=void 0){if(!u(_))throw Error(`apiVersionTag: ${_} passed in doesn't follow the pattern starting with 'v' followed by digits, then underscore with words, please check.`);return WRe(D4(_,R,k).uuid)}function WRe(_){return new Promise(((R,k)=>{an.portCallbacks.set(_,((D,K)=>{D instanceof MessagePort?R(D):k(K&&K.length>0?K[0]:new Error("Host responded without port or error details."))}))}))}function qRe(_){return new Promise((R=>{an.promiseCallbacks.set(_,R)}))}function Le(_,R,k,D){let K;if(k instanceof Function?D=k:k instanceof Array&&(K=k),!u(_))throw Error(`apiVersionTag: ${_} passed in doesn't follow the pattern starting with 'v' followed by digits, then underscore with words, please check.`);const te=D4(_,R,K);D&&an.callbacks.set(te.uuid,D)}an.parentMessageQueue=[],an.childMessageQueue=[],an.topMessageQueue=[],an.nextMessageId=0,an.callbacks=new Map,an.promiseCallbacks=new Map,an.portCallbacks=new Map,an.legacyMessageIdsToUuidMap={};const GRe=Ah.extend("sendNestedAuthRequestToTopWindow");function KRe(_){const R=GRe,k=Ue.topWindow,D=s3e(_);return R("Message %i information: %o",D.uuid,{actionName:D.func}),kK(k,D)}const YRe=Ah.extend("sendRequestToTargetWindowHelper");function kK(_,R){const k=YRe,D=PK(_),K=CK(R);if(O.isFramelessWindow)Ue.currentWindow&&Ue.currentWindow.nativeInterface&&(k(`Sending message %i to ${D} via framelessPostMessage interface`,K.uuidAsString),Ue.currentWindow.nativeInterface.framelessPostMessage(JSON.stringify(K)));else{const te=B2(_);_&&te?(k(`Sending message %i to ${D} via postMessage`,K.uuidAsString),_.postMessage(K,te)):(k(`Adding message %i to ${D} message queue`,K.uuidAsString),U2(_).push(R))}return R}const QRe=Ah.extend("sendMessageToParentHelper");function D4(_,R,k){const D=QRe,K=Ue.parentWindow,te=o3e(_,R,k);return D("Message %i information: %o",te.uuid,{actionName:R,args:k}),kK(K,te)}const xK=Ah.extend("processMessage");function XRe(_){return N4(this,void 0,void 0,(function*(){if(!_||!_.data||typeof _.data!="object")return void xK("Unrecognized message format received by app, message being ignored. Message: %o",_);const R=_.source||_.originalEvent&&_.originalEvent.source,k=_.origin||_.originalEvent&&_.originalEvent.origin;return AK(R,k).then((D=>{D?(e3e(R,k),R===Ue.parentWindow?RK(_):R===Ue.childWindow&&r3e(_)):xK("Message being ignored by app because it is either coming from the current window or a different window with an invali
1505d origin")}))}))}const JRe=Ah.extend("processAuthBridgeMessage");function ZRe(_,R){var k,D;const K=JRe;if(!_||!_.data||typeof _.data!="object")return void K("Unrecognized message format received by app, message being ignored. Message: %o",_);const{args:te}=_.data,[,de]=te??[],he=(()=>{try{return JSON.parse(de)}catch{return null}})();if(!he||typeof he!="object"||he.messageType!=="NestedAppAuthResponse")return void K("Unrecognized data format received by app, message being ignored. Message: %o",_);const le=_.source||((k=_==null?void 0:_.originalEvent)===null||k===void 0?void 0:k.source),_e=_.origin||((D=_==null?void 0:_.originalEvent)===null||D===void 0?void 0:D.origin);le?AK(le,_e)?(Ue.topWindow&&!Ue.topWindow.closed&&le!==Ue.topWindow||(Ue.topWindow=le,Ue.topOrigin=_e),Ue.topWindow&&Ue.topWindow.closed&&(Ue.topWindow=null,Ue.topOrigin=null),U4(Ue.topWindow),R(de)):K("Message being ignored by app because it is either coming from the current window or a different window with an invalid origin"):K("Message being ignored by app because it is coming for a target that is null")}const L4=Ah.extend("shouldProcessMessage");function AK(_,R){return N4(this,void 0,void 0,(function*(){if(Ue.currentWindow&&_===Ue.currentWindow)return L4("Should not process message because it is coming from the current window"),!1;if(Ue.currentWindow&&Ue.currentWindow.location&&R&&R===Ue.currentWindow.location.origin)return!0;{let k;try{k=new URL(R)}catch{return L4("Message has an invalid origin of %s",R),!1}const D=yield yRe(k);return D||L4("Message has an invalid origin of %s",R),D}}))}function e3e(_,R){O.isFramelessWindow||Ue.parentWindow&&!Ue.parentWindow.closed&&_!==Ue.parentWindow?Ue.childWindow&&!Ue.childWindow.closed&&_!==Ue.childWindow||(Ue.childWindow=_,Ue.childOrigin=R):(Ue.parentWindow=_,Ue.parentOrigin=R),Ue.parentWindow&&Ue.parentWindow.closed&&(Ue.parentWindow=null,Ue.parentOrigin=null),Ue.childWindow&&Ue.childWindow.closed&&(Ue.childWindow=null,Ue.childOrigin=null),U4(Ue.parentWindow),U4(Ue.childWindow)}const IK=Ah.extend("handleParentMessage");function t3e(_){var R;const k=IK;if(!_.uuid)return an.legacyMessageIdsToUuidMap[_.id];{const D=_.uuid,K=j2(an.callbacks,D);if(K)return K;const te=j2(an.promiseCallbacks,D);if(te)return te;const de=j2(an.portCallbacks,D);if(de)return de}k(`Received a message with uuid: ${(R=_.uuid)===null||R===void 0?void 0:R.toString()} and legacyId: %i that failed to produce a callbackId`,_.id)}function j2(_,R){if(R){const k=[..._].find((([D,K])=>D.toString()===R.toString()));if(k)return k[0]}}function F4(_,R){const k=j2(R,_.uuid);k&&R.delete(k),_.uuid?an.legacyMessageIdsToUuidMap={}:delete an.legacyMessageIdsToUuidMap[_.id]}function RK(_){const R=IK;if("id"in _.data&&typeof _.data.id=="number"){const k=_.data,D=FRe(k),K=t3e(D);if(K){const te=an.callbacks.get(K);R("Received a response from parent for message %i",K),te&&(R("Invoking the registered callback for message %i with arguments %o",K,D.args),te.apply(null,[...D.args,D.isPartialResponse]),n3e(_)||(R("Removing registered callback for message %i",K),F4(D,an.callbacks)));const de=an.promiseCallbacks.get(K);de&&(R("Invoking the registered promise callback for message %i with arguments %o",K,D.args),de(D.args),R("Removing registered promise callback for message %i",K),F4(D,an.promiseCallbacks));const he=an.portCallbacks.get(K);if(he){let le;R("Invoking the registered port callback for message %i with arguments %o",K,D.args),_.ports&&_.ports[0]instanceof MessagePort&&(le=_.ports[0]),he(le,D.args),R("Removing registered port callback for message %i",K),F4(D,an.portCallbacks)}D.uuid&&(an.legacyMessageIdsToUuidMap={})}}else if("func"in _.data&&typeof _.data.func=="string"){const k=_.data;R("Received an action message %s from parent",k.func),SK(k.func,k.args)}else R("Received an unknown message: %O",_)}function n3e(_){return _.data.isPartialResponse===!0}function r3e(_){if("id"in _.data&&"func"in _.data){const R=LRe(_.data),[k,D]=SK(R.func,R.args);k&&D!==void 0?NK(R.id,R.uuid,Array.isArray(D)?D:[D]):Le(l("v2","tasks.startTask"),R.func,R.args,((...K)=>{if(Ue.childWindow){const te=K.pop();NK(R.id,R.uuid,K,te)}}))}}function j4(){return Ue.topWindow!==Ue.parentWindow}function U2(_){return _===Ue.topWindow&&j4()?an.topMessageQueue:_===Ue.parentWindow?an.parentMessageQueue:_===Ue.childWindow?an.childMessageQueue:[]}function B2(_){return _===Ue.topWindow&&j4()?Ue.topOrigin:_===Ue.parentWindow?Ue.parentOrigin:_===Ue.childWindow?Ue.childOrigin:null}function PK(_){return _===Ue.topWindow&&j4()?"top":_===Ue.parentWindow?"parent":_===Ue.childWindow?"child":null}const i3e=Ah.extend("flushMessageQueue");function U4(_){const R=B2(_),k=U2(_),D=PK(_);for(;_&&R&&k.length>0;){const K=k.shift();if(K){const te=CK(K);i3e("Flushing message %i from "+D+" message queue via postMessage.",te==null?void 0:te.uuidAsString),_.postMessage(te,R)}}}function OK(_,R){let k;k=Ue.currentWindow.setInterval((()=>{U2(_).length===0&&(clearInterval(k),R())}),100)}function NK(_,R,k,D){const K=Ue.childWindow,te=a3e(_,R,k,D),de=jRe(te),he=B2(K);K&&he&&K.postMessage(de,he)}function wl(_,R){const k=Ue.childWindow,D=c3e(_,R),K=B2(k);k&&K?k.postMessage(D,K):U2(k).push(D)}function o3e(_,R,k){const D=an.nextMessageId++,K=new L2;return an.legacyMessageIdsToUuidMap[D]=K,{id:D,uuid:K,func:R,timestamp:Date.now(),args:k||[],apiVersionTag:_}}function s3e(_){const R=an.nextMessageId++,k=new L2;return an.legacyMessageIdsToUuidMap[R]=k,{id:R,uuid:k,func:"nestedAppAuth.execute",timestamp:Date.now(),args:[],data:_}}function a3e(_,R,k,D){return{id:_,uuid:R,args:k||[],isPartialResponse:D}}function c3e(_,R){return{func:_,args:R||[]}}var B4,$4,H4,z4;(function(_){function R(){return!(!me(se)||!se.supports.logs)}_.registerGetLogHandler=function(k){if(!wr(k)&&me(se),!wr(k)&&!R())throw Me;k?At(l("v1","log.request"),"log.request",(()=>{const D=k();Le(l("v1","log.receive"),"log.receive",[D])})):Ao("log.request")},_.isSupported=R})(B4||(B4={})),(function(_){_.fileDownloadStart="fileDownloadStart",_.fileDownloadComplete="fileDownloadComplete"})($4||($4={})),(function(_){_.view="view",_.edit="edit",_.editNew="editNew"})(H4||(H4={})),(function(_){_.fileOpenPreference="fileOpenPreference",_.theme="theme"})(z4||(z4={}));const gw="v1";function l3e(_,R){me(se),Le(l(gw,"uploadCustomApp"),"uploadCustomApp",[_],R||ml())}function u3e(_,R,k){me(se),Le(l(gw,"sendCustomMessage"),_,R,k)}function d3e(_,R){if(me(se),!Ue.childWindow)throw new Error("The child window has not yet been initialized or is not present");wl(_,R)}function f3e(_,R){me(se),At(l(gw,"registerCustomHandler"),_,((...k)=>R.apply(this,k)))}function h3e(_,R){me(se),At(l(gw,"registerUserSettingsChangeHandler"),"userSettingsChange",R,!0,[_])}function p3e(_){me(se,ie.content,ie.task);const R=[_.entityId,_.title,_.description,_.type,_.objectUrl,_.downloadUrl,_.webPreviewUrl,_.webEditUrl,_.baseUrl,_.editFile,_.
1505subEntityId,_.viewerAction,_.fileOpenPreference,_.conversationId,_.sizeInBytes];Le(l(gw,"openFilePreview"),"openFilePreview",R)}const vw="v1";var V4,W4;(function(_){function R(){return!(!me(se)||!se.supports.conversations)}_.openConversation=function(k){return new Promise((D=>{if(me(se,ie.content),!R())throw Me;const K=ds(l(vw,"conversations.openConversation"),"conversations.openConversation",{title:k.title,subEntityId:k.subEntityId,conversationId:k.conversationId,channelId:k.channelId,entityId:k.entityId});k.onStartConversation&&At(l(vw,"conversations.registerStartConversationHandler"),"startConversation",((te,de,he,le)=>{var _e;return(_e=k.onStartConversation)===null||_e===void 0?void 0:_e.call(k,{subEntityId:te,conversationId:de,channelId:he,entityId:le})})),k.onCloseConversation&&At(l(vw,"conversations.registerCloseConversationHandler"),"closeConversation",((te,de,he,le)=>{var _e;return(_e=k.onCloseConversation)===null||_e===void 0?void 0:_e.call(k,{subEntityId:te,conversationId:de,channelId:he,entityId:le})})),D(K)}))},_.closeConversation=function(){if(me(se,ie.content),!R())throw Me;Le(l(vw,"conversations.closeConversation"),"conversations.closeConversation"),Ao("startConversation"),Ao("closeConversation")},_.getChatMembers=function(){return new Promise((k=>{if(me(se),!R())throw Me;k(Gd(l(vw,"conversations.getChatMember"),"getChatMembers"))}))},_.isSupported=R})(V4||(V4={})),(function(_){(function(R){function k(){var D;return me(se)&&!!(!((D=se.hostVersionsInfo)===null||D===void 0)&&D.appEligibilityInformation)}R.isSupported=k,R.getEligibilityInfo=function(){if(me(se),!k())throw Me;return se.hostVersionsInfo.appEligibilityInformation}})(_.eligibility||(_.eligibility={}))})(W4||(W4={}));const yw="v2";var q4;(function(_){const R="Action.Execute";let k,D;function K(de){if(de.requestType===k.ActionExecuteInvokeRequest){const he=de;if(he.type!==R)throw{errorCode:D.INTERNAL_ERROR,message:`Invalid action type ${he.type}. Action type must be "${R}"`}}else if(de.requestType===k.QueryMessageExtensionRequest){if(de.commandId.length>64)throw new Error("originalRequestInfo.commandId exceeds the maximum size of 64 characters");if(de.parameters.length>5)throw new Error("originalRequestInfo.parameters exceeds the maximum size of 5");for(const he of de.parameters){if(he.name.length>64)throw new Error("originalRequestInfo.parameters.name exceeds the maximum size of 64 characters");if(he.value.length>512)throw new Error("originalRequestInfo.parameters.value exceeds the maximum size of 512 characters")}}}function te(){return!(!me(se)||!se.supports.externalAppAuthentication)}(function(de){de.ActionExecuteInvokeRequest="ActionExecuteInvokeRequest",de.QueryMessageExtensionRequest="QueryMessageExtensionRequest"})(k=_.OriginalRequestType||(_.OriginalRequestType={})),(function(de){de.ActionExecuteInvokeResponse="ActionExecuteInvokeResponse",de.QueryMessageExtensionResponse="QueryMessageExtensionResponse"})(_.InvokeResponseType||(_.InvokeResponseType={})),(function(de){de.INTERNAL_ERROR="INTERNAL_ERROR"})(D=_.InvokeErrorCode||(_.InvokeErrorCode={})),_.authenticateAndResendRequest=function(de,he,le){if(me(se,ie.content),!te())throw Me;return gl(de,new Error("App id is not valid.")),K(le),Di(l(yw,"externalAppAuthentication.authenticateAndResendRequest"),"externalAppAuthentication.authenticateAndResendRequest",[de,le,he.url.href,he.width,he.height,he.isExternal]).then((([_e,Ce])=>{if(_e&&Ce.responseType!=null)return Ce;throw Ce}))},_.authenticateWithSSO=function(de,he){if(me(se,ie.content),!te())throw Me;return gl(de,new Error("App id is not valid.")),Di(l(yw,"externalAppAuthentication.authenticateWithSSO"),"externalAppAuthentication.authenticateWithSSO",[de,he.claims,he.silent]).then((([le,_e])=>{if(!le)throw _e}))},_.authenticateWithSSOAndResendRequest=function(de,he,le){if(me(se,ie.content),!te())throw Me;return gl(de,new Error("App id is not valid.")),K(le),Di(l(yw,"externalAppAuthentication.authenticateWithSSOAndResendRequest"),"externalAppAuthentication.authenticateWithSSOAndResendRequest",[de,le,he.claims,he.silent]).then((([_e,Ce])=>
1505{if(_e&&Ce.responseType!=null)return Ce;throw Ce}))},_.authenticateWithOauth2=function(de,he,le){if(me(se,ie.content),!te())throw Me;return gl(de,new Error("titleId is Invalid.")),gl(he,new Error("oauthConfigId is Invalid.")),Di(l(yw,"externalAppAuthentication.authenticateWithOauth2"),"externalAppAuthentication.authenticateWithOauth2",[de,he,le.width,le.height,le.isExternal]).then((([_e,Ce])=>{if(!_e)throw Ce}))},_.authenticateWithPowerPlatformConnectorPlugins=function(de,he,le){if(me(se,ie.content),!te())throw Me;return gl(de,new Error("titleId is Invalid.")),he&&fw(he),Di(l(yw,"externalAppAuthentication.authenticateWithPowerPlatformConnectorPlugins"),"externalAppAuthentication.authenticateWithPowerPlatformConnectorPlugins",[de,he==null?void 0:he.toString(),le==null?void 0:le.width,le==null?void 0:le.height,le==null?void 0:le.isExternal]).then((([_e,Ce])=>{if(!_e)throw Ce}))},_.isSupported=te})(q4||(q4={}));var G4;(function(_){function R(){return!(!me(se)||!se.supports.externalAppCardActions)}(function(k){k.DeepLinkDialog="DeepLinkDialog",k.DeepLinkOther="DeepLinkOther",k.DeepLinkStageView="DeepLinkStageView",k.GenericUrl="GenericUrl"})(_.ActionOpenUrlType||(_.ActionOpenUrlType={})),(function(k){k.INTERNAL_ERROR="INTERNAL_ERROR",k.INVALID_LINK="INVALID_LINK",k.NOT_SUPPORTED="NOT_SUPPORTED"})(_.ActionOpenUrlErrorCode||(_.ActionOpenUrlErrorCode={})),_.processActionSubmit=function(k,D){if(me(se,ie.content),!R())throw Me;return gl(k,new Error("App id is not valid.")),Di(l("v2","externalAppCardActions.processActionSubmit"),"externalAppCardActions.processActionSubmit",[k,D]).then((([K,te])=>{if(!K)throw te}))},_.processActionOpenUrl=function(k,D,K){if(me(se,ie.content),!R())throw Me;return gl(k,new Error("App id is not valid.")),Di(l("v2","externalAppCardActions.processActionOpenUrl"),"externalAppCardActions.processActionOpenUrl",[k,D.href,K]).then((([te,de])=>{if(te)throw te;return de}))},_.isSupported=R})(G4||(G4={}));var m3e=function(_,R,k,D){function K(te){return te instanceof k?te:new k((function(de){de(te)}))}return new(k||(k=Promise))((function(te,de){function he(Ce){try{_e(D.next(Ce))}catch(Fe){de(Fe)}}function le(Ce){try{_e(D.throw(Ce))}catch(Fe){de(Fe)}}function _e(Ce){Ce.done?te(Ce.value):K(Ce.value).then(he,le)}_e((D=D.apply(_,[])).next())}))},K4;(function(_){function R(){return!(!me(se)||!se.supports.externalAppCommands)}_.processActionCommand=function(k,D,K){return m3e(this,void 0,void 0,(function*(){if(me(se,ie.content),!R())throw Me;gl(k,new Error("App id is not valid."));const[te,de]=yield Di(l("v2","externalAppCommands.processActionCommand"),"externalAppCommands.processActionCommand",[k,D,K]);if(te)throw te;return de}))},_.isSupported=R})(K4||(K4={}));const Io="v1";var Y4;(function(_){function R(k,D){return{errorCode:k,message:D}}(function(k){k.Dropbox="DROPBOX",k.Box="BOX",k.Sharefile="SHAREFILE",k.GoogleDrive="GOOGLEDRIVE",k.Egnyte="EGNYTE",k.SharePoint="SharePoint"})(_.CloudStorageProvider||(_.CloudStorageProvider={})),(function(k){k[k.Sharepoint=0]="Sharepoint",k[k.WopiIntegration=1]="WopiIntegration",k[k.Google=2]="Google",k[k.OneDrive=3]="OneDrive",k[k.Recent=4]="Recent",k[k.Aggregate=5]="Aggregate",k[k.FileSystem=6]="FileSystem",k[k.Search=7]="Search",k[k.AllFiles=8]="AllFiles",k[k.SharedWithMe=9]="SharedWithMe"})(_.CloudStorageProviderType||(_.CloudStorageProviderType={})),(function(k){k.ClassMaterials="classMaterials"})(_.SpecialDocumentLibraryType||(_.SpecialDocumentLibraryType={})),(function(k){k.Readonly="readonly"})(_.DocumentLibraryAccessType||(_.DocumentLibraryAccessType={})),(function(k){k.Downloaded="Downloaded",k.Downloading="Downloading",k.Failed="Failed"})(_.FileDownloadStatus||(_.FileDownloadStatus={})),(function(k){k.Download="DOWNLOAD",k.Upload="UPLOAD",k.Delete="DELETE"})(_.CloudStorageProviderFileAction||(_.CloudStorageProviderFileAction={})),_.getCloudStorageFolders=function(k,D){if(me(se,ie.content),!k||k.length===0)throw new Error("[files.getCloudStorageFolders] channelId name cannot be null or empty");if(!D)throw new Error("[files.getCloudStorageFolders] Callback cannot be null");Le(l(Io,"files.getCloudStorageFolders"),"files.getCloudStorageFolders",[k],D)},_.addCloudStorageFolder=function(k,D){if(me(se,ie.content),!k||k.length===0)throw new Error("[files.addCloudStorageFolder] channelId name cannot be null or empty");if(!D)throw new Error("[files.addCloudStorageFolder] Callback cannot be null");Le(l(Io,"files.addCloudStorageFolder"),"files.addCloudStorageFolder",[k],D)},_.deleteCloudStorageFolder=function(k,D,K){if(me(se,ie.content),!k)throw new Error("[files.deleteCloudStorageFolder] channelId name cannot be null or empty");if(!D)throw new Error("[files.deleteCloudStorageFolder] folderToDelete cannot be null or empty");if(!K)throw new Error("[files.deleteCloudStorageFolder] Callback cannot be null");Le(l(Io,"files.deleteCloudStorageFolder"),"files.deleteCloudStorageFolder",[k,D],K)},_.getCloudStorageFolderContents=function(k,D,K){if(me(se,ie.content),!k||!D)throw new Error("[files.getCloudStorageFolderContents] folder/providerCode name cannot be null or empty");if(!K)throw new Error("[files.getCloudStorageFolderContents] Callback cannot be null");if("isSubdirectory"in k&&!k.isSubdirectory)throw new Error("[files.getCloudStorageFolderContents] provided folder is not a subDirectory");Le(l(Io,"files.getCloudStorageFolderContents"),"files.getCloudStorageFolderContents",[k,D],K)},_.openCloudStorageFile=function(k,D,K){if(me(se,ie.content),!k||!D)throw new Error("[files.openCloudStorageFile] file/providerCode cannot be null or empty");if(k.isSubdirectory)throw new Error("[files.openCloudStorageFile] provided file is a subDirectory");Le(l(Io,"files.openCloudStorageFile"),"files.openCloudStorageFile",[k,D,K])},_.getExternalProviders=function(k=!1,D){if(me(se,ie.content),!D)throw new Error("[files.getExternalProviders] Callback cannot be null");Le(l(Io,"files.getExternalProviders"),"files.getExternalProviders",[k],D)},_.copyMoveFiles=function(k,D,K,te,de=!1,he){if(me(se,ie.content),!k||k.length===0)throw new Error("[files.copyMoveFiles] selectedFiles cannot be null or empty");if(!D)throw new Error("[files.copyMoveFiles] providerCode cannot be null or empty");if(!K)throw new Error("[files.copyMoveFiles] destinationFolder cannot be null or empty");if(!te)throw new Error("[files.copyMoveFiles] destinationProviderCode cannot be null or empty");if(!he)throw new Error("[files.copyMoveFiles] callback cannot be null");Le(l(Io,"files.copyMoveFiles"),"files.copyMoveFiles",[k,D,K,te,de],he)},_.getFileDownloads=function(k){if(me(se,ie.content),!k)throw new Error("[files.getFileDownloads] Callback cannot be null");Le(l(Io,"files.getFileDownloads"),"files.getFileDownloads",[],k)},_.openDownloadFolder=function(k=void 0,D){if(me(se,ie.content),!D)throw new Error("[files.openDownloadFolder] Callback cannot be null");Le(l(Io,"files.openDownloadFolder"),"files.openDownloadFolder",[k],D)},_.addCloudStorageProvider=function(k){if(me(se,ie.content),!k)throw R(Je.INVALID_ARGUMENTS,"[files.addCloudStorageProvider] callback cannot be null");Le(l(Io,"files.addCloudStorageProvider"),"files.addCloudStorageProvider",[],k)},_.removeCloudStorageProvider=function(k,D){if(me(se,ie.content),!D)throw R(Je.INVALID_ARGUMENTS,"[files.removeCloudStorageProvider] callback cannot be null");if(!k||!k.content)throw R(Je.INVALID_ARGUMENTS,"[files.removeCloudStorageProvider] 3P cloud storage provider request content is missing");Le(l(Io,"files.removeCloudStorageProvider"),"files.removeCloudStorageProvider",[k],D)},_.addCloudStorageProviderFile=function(k,D){if(me(se,ie.content),!D)throw R(Je.INVALID_ARGUMENTS,"[files.addCloudStorageProviderFile] callback cannot be null");if(!k||!k.content)throw R(Je.INVALID_ARGUMENTS,"[files.addCloudStorageProviderFile] 3P cloud storage provider request content is missing");Le(l(Io,"files.addCloudStorageProviderFile"),"files.addCloudStorageProviderFile",[k],D)},_.renameCloudStorageProviderFile=function(k,D){if(me(se,ie.content),!D)throw R(Je.INVALID_ARGUMENTS,"[files.renameCloudStorageProviderFile] callback cannot be null");if(!k||!k.content)throw R(Je.INVALID_ARGUMENTS,"[files.renameCloudStorageProviderFile] 3P cloud storage provider request content is missing");Le(l(Io,"files.renameCloudStorageProviderFile"),"files.renameCloudStorageProviderFile",[k],D)},_.deleteCloudStorageProviderFile=function(k,D){if(me(se,ie.content),!D)throw R(Je.INVALID_ARGUMENTS,"[files.deleteCloudStorageProviderFile] callback cannot be null");if(!(k&&k.content&&k.content.itemList&&k.content.itemList.length>0))throw R(Je.INVALID_ARGUMENTS,"[files.deleteCloudStorageProviderFile] 3P cloud storage provider request content details are missing");Le(l(Io,"files.deleteCloudStorageProviderFile"),"files.deleteCloudStorageProviderFile",[k],D)},_.downloadCloudStorageProviderFile=function(k,D){if(me(se,ie.content),!D)throw R(Je.INVALID_ARGUMENTS,"[files.downloadCloudStorageProviderFile] callback cannot be null");if(!(k&&k.content&&k.content.itemList&&k.content.itemList.length>0))throw R(Je.INVALID_ARGUMENTS,"[files.downloadCloudStorageProviderFile] 3P cloud storage provider request content details are missing");Le(l(Io,"files.downloadCloudStorageProviderFile"),"files.downloadCloudStorageProviderFile",[k],D)},_.uploadCloudStorageProviderFile=function(k,D){if(me(se,ie.content),!D)throw R(Je.INVALID_ARGUMENTS,"[files.uploadCloudStorageProviderFile] callback cannot be null");if(!(k&&k.content&&k.content.itemList&&k.content.itemList.length>0))throw R(Je.INVALID_ARGUMENTS,"[files.uploadCloudStorageProviderFile] 3P cloud storage provider request content details are missing");if(!k.content.destinationFolder)throw R(Je.INVALID_ARGUMENTS,"[files.uploadCloudStorageProviderFile] Invalid destination folder details");Le(l(Io,"files.uploadCloudStorageProviderFile"),"files.uploadCloudStorageProviderFile",[k],D)},_.registerCloudStorageProviderListChangeHandler=function(k){if(me(se),!k)throw new Error("[registerCloudStorageProviderListChangeHandler] Handler cannot be null");At(l(Io,"files.registerCloudStorageProviderListChangeHandler"),"files.cloudStorageProviderListChange",k)},_.registerCloudStorageProviderContentChangeHandler=function(k){if(me(se),!k)throw new Error("[registerCloudStorageProviderContentChangeHandler] Handler cannot be null");At(l(Io,"files.registerCloudStorageProviderContentChangeHandler"),"files.cloudStorageProviderContentChange",k)}})(Y4||(Y4={}));const $2="v1";var Q4;(function(_){function R(){return!(!me(se)||!se.supports.meetingRoom)}_.getPairedMeetingRoomInfo=function(){return new Promise((k=>{if(me(se),!R())throw Me;k(en(l($2,"meetingRoom.getPairedMeetingRoomInfo"),"meetingRoom.getPairedMeetingRoomInfo"))}))},_.sendCommandToPairedMeetingRoom=function(k){return new Promise((D=>
1505{if(!k||k.length==0)throw new Error("[meetingRoom.sendCommandToPairedMeetingRoom] Command name cannot be null or empty");if(me(se),!R())throw Me;D(en(l($2,"meetingRoom.sendCommandToPairedMeetingRoom"),"meetingRoom.sendCommandToPairedMeetingRoom",k))}))},_.registerMeetingRoomCapabilitiesUpdateHandler=function(k){if(!k)throw new Error("[meetingRoom.registerMeetingRoomCapabilitiesUpdateHandler] Handler cannot be null");if(me(se),!R())throw Me;At(l($2,"meetingRoom.registerMeetingRoomCapabilitiesUpdateHandler"),"meetingRoom.meetingRoomCapabilitiesUpdate",(D=>{me(se),k(D)}))},_.registerMeetingRoomStatesUpdateHandler=function(k){if(!k)throw new Error("[meetingRoom.registerMeetingRoomStatesUpdateHandler] Handler cannot be null");if(me(se),!R())throw Me;At(l($2,"meetingRoom.registerMeetingRoomStatesUpdateHandler"),"meetingRoom.meetingRoomStatesUpdate",(D=>{me(se),k(D)}))},_.isSupported=R})(Q4||(Q4={}));var X4,J4;(function(_){function R(){return!(!me(se)||!se.supports.notifications)}_.showNotification=function(k){if(me(se,ie.content),!R())throw Me;Le(l("v1","notifications.showNotification"),"notifications.showNotification",[k])},_.isSupported=R})(X4||(X4={})),(function(_){function R(){return!(!me(se)||!se.supports.otherAppStateChange)}_.registerAppInstallationHandler=function(k){if(!R())throw new Error(Je.NOT_SUPPORTED_ON_PLATFORM.toString());if(wr(k))throw new Error(Je.INVALID_ARGUMENTS.toString());At(l("v2","otherApp.install"),"otherApp.install",k)},_.unregisterAppInstallationHandler=function(){if(!R())throw new Error(Je.NOT_SUPPORTED_ON_PLATFORM.toString());Le(l("v2","otherApp.unregisterInstall"),"otherApp.unregisterInstall"),Ao("otherApp.install")},_.isSupported=R})(J4||(J4={}));const Ih="v1";var Z4;(function(_){function R(){return!(!me(se)||!se.supports.remoteCamera)}(function(k){k.Reset="Reset",k.ZoomIn="ZoomIn",k.ZoomOut="ZoomOut",k.PanLeft="PanLeft",k.PanRight="PanRight",k.TiltUp="TiltUp",k.TiltDown="TiltDown"})(_.ControlCommand||(_.ControlCommand={})),(function(k){k[k.CommandResetError=0]="CommandResetError",k[k.CommandZoomInError=1]="CommandZoomInError",k[k.CommandZoomOutError=2]="CommandZoomOutError",k[k.CommandPanLeftError=3]="CommandPanLeftError",k[k.CommandPanRightError=4]="CommandPanRightError",k[k.CommandTiltUpError=5]="CommandTiltUpError",k[k.CommandTiltDownError=6]="CommandTiltDownError",k[k.SendDataError=7]="SendDataError"})(_.ErrorReason||(_.ErrorReason={})),(function(k){k[k.None=0]="None",k[k.ControlDenied=1]="ControlDenied",k[k.ControlNoResponse=2]="ControlNoResponse",k[k.ControlBusy=3]="ControlBusy",k[k.AckTimeout=4]="AckTimeout",k[k.ControlTerminated=5]="ControlTerminated",k[k.ControllerTerminated=6]="ControllerTerminated",k[k.DataChannelError=7]="DataChannelError",k[k.ControllerCancelled=8]="ControllerCancelled",k[k.ControlDisabled=9]="ControlDisabled",k[k.ControlTerminatedToAllowOtherController=10]="ControlTerminatedToAllowOtherController"})(_.SessionTerminatedReason||(_.SessionTerminatedReason={})),_.getCapableParticipants=function(k){if(!k)throw new Error("[remoteCamera.getCapableParticipants] Callback cannot be null");if(me(se,ie.sidePanel),!R())throw Me;Le(l(Ih,"remoteCamera.getCapableParticipants"),"remoteCamera.getCapableParticipants",k)},_.requestControl=function(k,D){if(!k)throw new Error("[remoteCamera.requestControl] Participant cannot be null");if(!D)throw new Error("[remoteCamera.requestControl] Callback cannot be null");if(me(se,ie.sidePanel),!R())throw Me;Le(l(Ih,"remoteCamera.requestControl"),"remoteCamera.requestControl",[k],D)},_.sendControlCommand=function(k,D){if(!k)throw new Error("[remoteCamera.sendControlCommand] ControlCommand cannot be null");if(!D)throw new Error("[remoteCamera.sendControlCommand] Callback cannot be null");if(me(se,ie.sidePanel),!R())throw Me;Le(l(Ih,"remoteCamera.sendControlCommand"),"remoteCamera.sendControlCommand",[k],D)},_.terminateSession=function(k){if(!k)throw new Error("[remoteCamera.terminateSession] Callback cannot be null");if(me(se,ie.sidePanel),!R())throw Me;Le(l(Ih,"remoteCamera.terminateSession"),"remoteCamera.terminateSession",k)},_.registerOnCapableParticipantsChangeHandler=function(k){if(!k)throw new Error("[remoteCamera.registerOnCapableParticipantsChangeHandler] Handler cannot be null");if(me(se,ie.sidePanel),!R())throw Me;At(l(Ih,"remoteCamera.registerOnCapableParticipantsChangeHandler"),"remoteCamera.capableParticipantsChange",k)},_.registerOnErrorHandler=function(k){if(!k)throw new Error("[remoteCamera.registerOnErrorHandler] Handler cannot be null");if(me(se,ie.sidePanel),!R())throw Me;At(l(Ih,"remoteCamera.registerOnErrorHandler"),"remoteCamera.handlerError",k)},_.registerOnDeviceStateChangeHandler=function(k){if(!k)throw new Error("[remoteCamera.registerOnDeviceStateChangeHandler] Handler cannot be null");if(me(se,ie.sidePanel),!R())throw Me;At(l(Ih,"remoteCamera.registerOnDeviceStateChangeHandler"),"remoteCamera.deviceStateChange",k)},_.registerOnSessionStatusChangeHandler=function(k){if(!k)throw new Error("[remoteCamera.registerOnSessionStatusChangeHandler] Handler cannot be null");if(me(se,ie.sidePanel),!R())throw Me;At(l(Ih,"remoteCamera.registerOnSessionStatusChangeHandler"),"remoteCamera.sessionStatusChange",k)},_.isSupported=R})(Z4||(Z4={}));var e5;(function(_){function R(){return!(!me(se)||!se.supports.appEntity)}
1505_.selectAppEntity=function(k,D,K,te){if(me(se,ie.content),!R())throw Me;if(!k||k.length==0)throw new Error("[appEntity.selectAppEntity] threadId name cannot be null or empty");if(!te)throw new Error("[appEntity.selectAppEntity] Callback cannot be null");Le(l("v1","appEntity.selectAppEntity"),"appEntity.selectAppEntity",[k,D,K],te)},_.isSupported=R})(e5||(e5={}));const H2="v1";var t5;(function(_){function R(){return!(!me(se)||!se.supports.teams)}(function(k){k[k.Regular=0]="Regular",k[k.Private=1]="Private",k[k.Shared=2]="Shared"})(_.ChannelType||(_.ChannelType={})),_.getTeamChannels=function(k,D){if(me(se,ie.content),!R())throw Me;if(!k)throw new Error("[teams.getTeamChannels] groupId cannot be null or empty");if(!D)throw new Error("[teams.getTeamChannels] Callback cannot be null");Le(l(H2,"teams.getTeamChannels"),"teams.getTeamChannels",[k],D)},_.refreshSiteUrl=function(k,D){if(me(se),!R())throw Me;if(!k)throw new Error("[teams.refreshSiteUrl] threadId cannot be null or empty");if(!D)throw new Error("[teams.refreshSiteUrl] Callback cannot be null");Le(l(H2,"teams.refreshSiteUrl"),"teams.refreshSiteUrl",[k],D)},_.isSupported=R,(function(k){function D(){return!(!me(se)||!se.supports.teams)&&!!se.supports.teams.fullTrust}(function(K){function te(){return!(!me(se)||!se.supports.teams)&&!!se.supports.teams.fullTrust&&!!se.supports.teams.fullTrust.joinedTeams}K.getUserJoinedTeams=function(de){return new Promise((he=>{if(me(se),!te())throw Me;if((O.hostClientType===bt.android||O.hostClientType===bt.teamsRoomsAndroid||O.hostClientType===bt.teamsPhones||O.hostClientType===bt.teamsDisplays)&&!yl("2.0.1")){const le={errorCode:Je.OLD_PLATFORM};throw new Error(JSON.stringify(le))}he(Gd(l(H2,"teams.fullTrust.joinedTeams.getUserJoinedTeams"),"getUserJoinedTeams",de))}))},K.isSupported=te})(k.joinedTeams||(k.joinedTeams={})),k.getConfigSetting=function(K){return new Promise((te=>{if(me(se),!D())throw Me;te(Gd(l(H2,"teams.fullTrust.getConfigSetting"),"getConfigSetting",K))}))},k.isSupported=D})(_.fullTrust||(_.fullTrust={}))})(t5||(t5={}));class Rs{static setTimeout(R,k){const D=performance.now(),K=dw();return Rs.setTimeoutCallbacks[K]={callback:R,timeoutInMs:k,startedAtInMs:D},K}static clearTimeout(R){delete Rs.setTimeoutCallbacks[R]}static setInterval(R,k){Rs.setTimeout((function D(){R(),Rs.setTimeout(D,k)}),k)}static tick(){const R=performance.now(),k=[];for(const D in Rs.setTimeoutCallbacks){const K=Rs.setTimeoutCallbacks[D];R-K.startedAtInMs>=K.timeoutInMs&&k.push(D)}for(const D of k)Rs.setTimeoutCallbacks[D].callback(),delete Rs.setTimeoutCallbacks[D]}}Rs.setTimeoutCallbacks={};class o0{constructor(R,k){this.reportStatisticsResult=k,this.sampleCount=0,this.distributionBins=new Uint32Array(R)}processStarts(R,k,D,K){Rs.tick(),this.suitableForThisSession(R,k,D,K)||this.reportAndResetSession(this.getStatistics(),R,K,k,D),this.start()}processEnds(){const R=performance.now()-this.frameProcessingStartedAt,k=Math.floor(Math.max(0,Math.min(this.distributionBins.length-1,R)));this.distributionBins[k]+=1,this.sampleCount+=1}getStatistics(){return this.currentSession?{effectId:this.currentSession.effectId,effectParam:this.currentSession.effectParam,frameHeight:this.currentSession.frameHeight,frameWidth:this.currentSession.frameWidth,duration:performance.now()-this.currentSession.startedAtInMs,sampleCount:this.sampleCount,distributionBins:this.distributionBins.slice()}:null}start(){this.frameProcessingStartedAt=performance.now()}suitableForThisSession(R,k,D,K){return this.currentSession&&this.currentSession.effectId===R&&this.currentSession.effectParam
1505===K&&this.currentSession.frameWidth===k&&this.currentSession.frameHeight===D}reportAndResetSession(R,k,D,K,te){R&&this.reportStatisticsResult(R),this.resetCurrentSession(this.getNextTimeout(k,this.currentSession),k,D,K,te),this.timeoutId&&Rs.clearTimeout(this.timeoutId),this.timeoutId=Rs.setTimeout((()=>this.reportAndResetSession(this.getStatistics(),k,D,K,te)).bind(this),this.currentSession.timeoutInMs)}resetCurrentSession(R,k,D,K,te){this.currentSession={startedAtInMs:performance.now(),timeoutInMs:R,effectId:k,effectParam:D,frameWidth:K,frameHeight:te},this.sampleCount=0,this.distributionBins.fill(0)}getNextTimeout(R,k){return k&&k.effectId===R?Math.min(o0.maxSessionTimeoutInMs,2*k.timeoutInMs):o0.initialSessionTimeoutInMs}}o0.initialSessionTimeoutInMs=1e3,o0.maxSessionTimeoutInMs=3e4;const z2="v2";class Km{constructor(R){this.reportPerformanceEvent=R,this.isFirstFrameProcessed=!1,this.frameProcessTimeLimit=100,this.frameProcessingStartedAt=0,this.frameProcessingTimeCost=0,this.processedFrameCount=0,this.performanceStatistics=new o0(Km.distributionBinSize,(k=>this.reportPerformanceEvent(l(z2,"videoPerformanceMonitor.performanceDataGenerated"),"video.performance.performanceDataGenerated",[k])))}startMonitorSlowFrameProcessing(){Rs.setInterval((()=>{if(this.processedFrameCount===0)return;const R=this.frameProcessingTimeCost/this.processedFrameCount;R>this.frameProcessTimeLimit&&this.reportPerformanceEvent(l(z2,"videoPerformanceMonitor.startMonitorSlowFrameProcessing"),"video.performance.frameProcessingSlow",[R]),this.frameProcessingTimeCost=0,this.processedFrameCount=0}),Km.calculateFPSInterval)}setFrameProcessTimeLimit(R){this.frameProcessTimeLimit=R}reportApplyingVideoEffect(R,k){var D,K;((D=this.applyingEffect)===null||D===void 0?void 0:D.effectId)===R&&((K=this.applyingEffect)===null||K===void 0?void 0:K.effectParam)===k||(this.applyingEffect={effectId:R,effectParam:k},this.appliedEffect=void 0)}reportVideoEffectChanged(R,k){this.applyingEffect===void 0||this.applyingEffect.effectId!==R&&this.applyingEffect.effectParam!==k||(this.appliedEffect={effectId:R,effectParam:k},this.applyingEffect=void 0,this.isFirstFrameProcessed=!1)}reportStartFrameProcessing(R,k){Rs.tick(),this.appliedEffect&&(this.frameProcessingStartedAt=performance.now(),this.performanceStatistics.processStarts(this.appliedEffect.effectId,R,k,this.appliedEffect.effectParam))}reportFrameProcessed(){var R;this.appliedEffect&&(this.processedFrameCount++,this.frameProcessingTimeCost+=performance.now()-this.frameProcessingStartedAt,this.performanceStatistics.processEnds(),this.isFirstFrameProcessed||(this.isFirstFrameProcessed=!0,this.reportPerformanceEvent(l(z2,"videoPerformanceMonitor.reportFrameProcessed"),"video.performance.firstFrameProcessed",[Date.now(),this.appliedEffect.effectId,(R=this.appliedEffect)===null||R===void 0?void 0:R.effectParam])))}reportGettingTextureStream(R){this.gettingTextureStreamStartedAt=performance.now(),this.currentStreamId=R}reportTextureStreamAcquired(){if(this.gettingTextureStreamStartedAt!==void 0){const R=performance.now()-this.gettingTextureStreamStartedAt;this.reportPerformanceEvent(l(z2,"videoPerformanceMonitor.reportTextureStreamAcquired"),"video.performance.textureStreamAcquired",[this.currentStreamId,R])}}}Km.distributionBinSize=1e3,Km.calculateFPSInterval=1e3;var MK=function(_,R,k,D){function K(te){return te instanceof k?te:new k((function(de){de(te)}))}return new(k||(k=Promise))((function(te,de){function he(Ce){try{_e(D.next(Ce))}catch(Fe){de(Fe)}}function le(Ce){try{_e(D.throw(Ce))}catch(Fe){de(Fe)}}function _e(Ce){Ce.done?te(Ce.value):K(Ce.value).then(he,le)}_e((D=D.apply(_,[])).next())}))},g3e=function(_,R){var k={};for(var D in _)Object.prototype.hasOwnProperty.call(_,D)&&R.indexOf(D)<0&&(k[D]=_[D]);if(_!=null&&typeof Object.getOwnPropertySymbols=="function"){var K=0;for(D=Object.getOwnPropertySymbols(_);K<D.length;K++)R.indexOf(D[K])<0&&Object.prototype.propertyIsEnumerable.call(_,D[K])&&(k[D[K]]=_[D[K]])}return k};const bu="v2";var Rh;(function(_){const R=Is()?void 0:new Km(Le);function k(nt){Le(l(bu,"videoEffects.notifyVideoFrameProcessed"),"video.videoFrameProcessed",[nt])}function D(nt){Le(l(bu,"videoEffects.notifyError"),"video.notifyError",[nt])}function K(){return me(se)&&!!se.supports.video&&(!!se.supports.video.mediaStream||!!se.supports.video.sharedFrame)}function te(nt,Be){if(me(se,ie.sidePanel),!K()||!_e())throw Me;At(l(bu,"videoEffects.startVideoExtensibilityVideoStreamHandler"),"video.startVideoExtensibilityVideoStream",(Ze=>MK(this,void 0,void 0,(function*(){const{streamId:kt}=Ze,lo=de(nt,R);yield DK(kt,lo,D,R)}))),!1),Le(l(bu,"videoEffects.mediaStream.registerForVideoFrame"),"video.mediaStream.registerForVideoFrame",[Be])}function de(nt,Be){return Ze=>MK(this,void 0,void 0,(function*(){const kt=Ze.videoFrame;Be==null||Be.reportStartFrameProcessing(kt.codedWidth,kt.codedHeight);const lo=yield nt(Ze);return Be==null||Be.reportFrameProcessed(),lo}))}function he(nt,Be){if(me(se,ie.sidePanel),!K()||!Fe())throw Me;At(l(bu,"videoEffects.registerForVideoBufferHandler"),"video.newVideoFrame",(Ze=>{if(Ze){const kt=Ze.timestamp;R==null||R.reportStartFrameProcessing(Ze.width,Ze.height),nt(le(Ze),(()=>{R==null||R.reportFrameProcessed(),k(kt)}),D)}}),!1),Le(l(bu,"videoEffects.registerForVideoFrame"),"video.registerForVideoFrame",[Be])}function le(nt){if("videoFrameBuffer"in nt)return nt;{const{data:Be}=nt,Ze=g3e(nt,["data"]);return Object.assign(Object.assign({},Ze),{videoFrameBuffer:Be})}}function _e(){var nt;return me(se,ie.sidePanel)&&Ce()&&!!(!((nt=se.supports.video)===null||nt===void 0)&&nt.mediaStream)}function Ce(){var nt,Be,Ze,kt;return!(!(!((Be=(nt=zd().chrome)===null||nt===void 0?void 0:nt.webview)===null||Be===void 0)&&Be.getTextureStream)||!(!((kt=(Ze=zd().chrome)===null||Ze===void 0?void 0:Ze.webview)===null||kt===void 0)&&kt.registerTextureStream))}function Fe(){var nt;return me(se,ie.sidePanel)&&!!(!((nt=se.supports.video)===null||nt===void 0)&&nt.sharedFrame)}(function(nt){nt.NV12="NV12"})(_.VideoFrameFormat||(_.VideoFrameFormat={})),(function(nt){nt.EffectChanged="EffectChanged",nt.EffectDisabled="EffectDisabled"})(_.EffectChangeType||(_.EffectChangeType={})),(function(nt){nt.InvalidEffectId="InvalidEffectId",nt.InitializationFailure="InitializationFailure"})(_.EffectFailureReason||(_.EffectFailureReason={})),_.registerForVideoFrame=function(nt){if(me(se,ie.sidePanel),!K())throw Me;if(!nt.videoFrameHandler||!nt.videoBufferHandler)throw new Error("Both videoFrameHandler and videoBufferHandler must be provided");
1505if(At(l(bu,"videoEffects.setFrameProcessTimeLimitHandler"),"video.setFrameProcessTimeLimit",(Be=>R==null?void 0:R.setFrameProcessTimeLimit(Be.timeLimit)),!1),_e())te(nt.videoFrameHandler,nt.config);else{if(!Fe())throw Me;he(nt.videoBufferHandler,nt.config)}R==null||R.startMonitorSlowFrameProcessing()},_.notifySelectedVideoEffectChanged=function(nt,Be){if(me(se,ie.sidePanel),!K())throw Me;Le(l(bu,"videoEffects.notifySelectedVideoEffectChanged"),"video.videoEffectChanged",[nt,Be])},_.registerForVideoEffect=function(nt){if(me(se,ie.sidePanel),!K())throw Me;At(l(bu,"videoEffects.registerEffectParameterChangeHandler"),"video.effectParameterChange",UK(nt,R),!1),Le(l(bu,"videoEffects.registerForVideoEffect"),"video.registerForVideoEffect")},_.isSupported=K})(Rh||(Rh={}));var s0=function(_,R,k,D){function K(te){return te instanceof k?te:new k((function(de){de(te)}))}return new(k||(k=Promise))((function(te,de){function he(Ce){try{_e(D.next(Ce))}catch(Fe){de(Fe)}}function le(Ce){try{_e(D.throw(Ce))}catch(Fe){de(Fe)}}function _e(Ce){Ce.done?te(Ce.value):K(Ce.value).then(he,le)}_e((D=D.apply(_,[])).next())}))};const n5="v2";function DK(_,R,k,D){var K,te;return s0(this,void 0,void 0,(function*(){const de=FK();!Is()&&((te=(K=window.chrome)===null||K===void 0?void 0:K.webview)===null||te===void 0||te.registerTextureStream(_,de)),jK(yield LK(_,k,D),new y3e(k,R),de.writable)}))}function v3e(_,R,k,D){var K,te;return s0(this,void 0,void 0,(function*(){const de=FK();!Is()&&((te=(K=window.chrome)===null||K===void 0?void 0:K.webview)===null||te===void 0||te.registerTextureStream(_,de)),jK(yield LK(_,k,D),new S3e(k,R),de.writable)}))}function LK(_,R,k){return s0(this,void 0,void 0,(function*(){if(Is())throw Me;const D=zd().chrome;try{k==null||k.reportGettingTextureStream(_);const K=(yield D.webview.getTextureStream(_)).getVideoTracks();if(K.length===0)throw new Error(`No video track in stream ${_}`);return k==null||k.reportTextureStreamAcquired(),K[0]}catch(K){throw R(`Failed to get video track from stream ${_}, error: ${K}`),new Error(`Internal error: can't get video track from stream ${_}`)}}))}function FK(){if(Is())throw Me;const _=window.MediaStreamTrackGenerator;if(!_)throw Me;return new _({kind:"video"})}function jK(_,R,k){new(zd()).MediaStreamTrackProcessor({track:_}).readable.pipeThrough(new TransformStream(R)).pipeTo(k)}class y3e{constructor(R,k){this.notifyError=R,this.videoFrameHandler=k,this.transform=(D,K)=>s0(this,void 0,void 0,(function*(){const te=D.timestamp;if(te!==null)try{const de=yield this.videoFrameHandler({videoFrame:D}),he=new VideoFrame(de,{timestamp:te});K.enqueue(he),D.close(),de.close()}catch(de){D.close(),this.notifyError(de)}else this.notifyError("timestamp of the original video frame is null")}))}}class b3e{constructor(R,k){if(this.headerBuffer=R,this.notifyError=k,this.ONE_TEXTURE_INPUT_ID=1869900081,this.INVALID_HEADER_ERROR="Invalid video frame header",this.UNSUPPORTED_LAYOUT_ERROR="Unsupported texture layout",this.headerDataView=new Uint32Array(R),this.headerDataView.length<8)throw this.notifyError(this.INVALID_HEADER_ERROR),new Error(this.INVALID_HEADER_ERROR);if(this.headerDataView[0]!==this.ONE_TEXTURE_INPUT_ID)throw this.notifyError(this.UNSUPPORTED_LAYOUT_ERROR),new Error(this.UNSUPPORTED_LAYOUT_ERROR)}get oneTextureLayoutId(){return this.headerDataView[0]}get version(){return this.headerDataView[1]}get frameRowOffset(){return this.headerDataView[2]}get frameFormat(){return this.headerDataView[3]}get frameWidth(){return this.headerDataView[4]}get frameHeight(){return this.headerDataView[5]}get multiStreamHeaderRowOffset(){return this.headerDataView[6]}get multiStreamCount(){return this.headerDataView[7]}}class w3e{constructor(R,k){this.metadataMap=new Map,this.AUDIO_INFERENCE_RESULT_STREAM_ID=828664161,this.ATTRIBUTE_ID_MAP_STREAM_ID=1296320833;const D=new Uint32Array(R);for(let K=0,te=0;K<k;K++){const de=D[te++],he=D[te++],le=D[te++],_e=new Uint8Array(R,he,le);this.metadataMap.set(de,_e)}}get audioInferenceResult(){return this.metadataMap.get(this.AUDIO_INFERENCE_RESULT_STREAM_ID)}get attributes(){const R=this.metadataMap.get(this.ATTRIBUTE_ID_MAP_STREAM_ID);if(R===void 0)return;const k=new Map,D=new TextDecoder("utf-8");let K=0;const te=R[K]+(R[++K]<<8)+(R[++K]<<16)+(R[++K]<<24);for(let de=0;de<te&&K<R.length-1;de++){const he=R[++K]+(R[++K]<<8)+(R[++K]<<16)+(R[++K]<<24),le=R.findIndex(((Fe,nt,Be)=>Fe==0&&nt>K)),_e=D.decode(R.slice(++K,le)),Ce=this.metadataMap.get(he);Ce!==void 0&&k.set(_e,Ce),K=le+(4-(le-K)%4-1)}return k}}class S3e{constructor(R,k){this.notifyError=R,this.videoFrameHandler=k,this.shouldDiscardAudioInferenceResult=!1,this.transform=(D,K)=>s0(this,void 0,void 0,(function*(){const te=D.timestamp;if(te!==null)try{const{videoFrame:de,metadata:{audioInferenceResult:he,attributes:le}={}}=yield this.extractVideoFrameAndMetadata(D),_e=yield this.videoFrameHandler({videoFrame:de,audioInferenceResult:he,attributes:le}),Ce=new VideoFrame(_e,{timestamp:te});K.enqueue(Ce),de.close(),D.close(),_e.close()}catch(de){D.close(),this.notifyError(de)}else this.notifyError("timestamp of the original video frame is null")})),this.extractVideoFrameAndMetadata=D=>s0(this,void 0,void 0,(function*(){if(Is())throw Me;if(D.format!=="NV12")throw this.notifyError("Unsupported video frame pixel format"),new Error("Unsupported video frame pixel format");const K={x:0,y:0,width:D.codedWidth,height:2},te=new ArrayBuffer(K.width*K.height*3/2);yield D.copyTo(te,{rect:K});const de=new b3e(te,this.notifyError),he={x:0,y:de.multiStreamHeaderRowOffset,width:D.codedWidth,height:D.codedHeight-de.multiStreamHeaderRowOffset},le=new ArrayBuffer(he.width*he.height*3/2);yield D.copyTo(le,{rect:he});const _e=new w3e(le,de.multiStreamCount);return{videoFrame:new VideoFrame(D,{timestamp:D.timestamp,visibleRect:{x:0,y:de.frameRowOffset,width:de.frameWidth,height:de.frameHeight}}),metadata:{audioInferenceResult:this.shouldDiscardAudioInferenceResult?void 0:_e.audioInferenceResult,attributes:_e.attributes}}})),At(l(n5,"videoEffectsUtils.transformerWithMetadata.constructor"),"video.mediaStream.audioInferenceDiscardStatusChange",(({discardAudioInferenceResult:D})=>{this.shouldDiscardAudioInferenceResult=D}))}}function UK(_,R){return(k,D)=>{R==null||R.reportApplyingVideoEffect(k||"",D),_(k,D).then((()=>{R==null||R.reportVideoEffectChanged(k||"",D),Le(l(n5,"videoEffectsUtils.reportVideoEffectChanged"),"video.videoEffectReadiness",[!0,k,void 0,D])})).catch((K=>
1505{const te=K in Rh.EffectFailureReason?K:Rh.EffectFailureReason.InitializationFailure;Le(l(n5,"videoEffectsUtils.effectFailure"),"video.videoEffectReadiness",[!1,k,te,D])}))}}var BK=function(_,R,k,D){function K(te){return te instanceof k?te:new k((function(de){de(te)}))}return new(k||(k=Promise))((function(te,de){function he(Ce){try{_e(D.next(Ce))}catch(Fe){de(Fe)}}function le(Ce){try{_e(D.throw(Ce))}catch(Fe){de(Fe)}}function _e(Ce){Ce.done?te(Ce.value):K(Ce.value).then(he,le)}_e((D=D.apply(_,[])).next())}))};const Sl="v2";var r5;function _3e(_){if(C3e(_))throw new Error(`Potential app id (${_}) is invalid; it contains script tags.`);if(!E3e(_))throw new Error(`Potential app id (${_}) is invalid; its length ${_.length} is not within the length limits (${$K}-${HK}).`);if(T3e(_))throw new Error(`Potential app id (${_}) is invalid; it contains non-printable characters.`)}function C3e(_){return/<script[^>]*>[\s\S]*?<\/script[^>]*>/gi.test(_)}(function(_){_.frameProcessingTimeoutInMs=2e3;const R=Is()?void 0:new Km(Le);let k;function D(){const _e=setTimeout((()=>{le(`Frame not processed in ${_.frameProcessingTimeoutInMs}ms`,k.Warn)}),_.frameProcessingTimeoutInMs);return function(){clearTimeout(_e)}}function K(_e,Ce){return Fe=>BK(this,void 0,void 0,(function*(){const nt=Fe.videoFrame;Ce.reportStartFrameProcessing(nt.codedWidth,nt.codedHeight);const Be=D(),Ze=yield _e(Fe);return Be(),Ce.reportFrameProcessed(),Ze}))}function te(_e){return _e.videoFrameBuffer=_e.videoFrameBuffer||_e.data,delete _e.data,_e}function de(){return me(se),Rh.isSupported()}function he(_e){Le(l(Sl,"videoEffectsEx.notifyVideoFrameProcessed"),"video.videoFrameProcessed",[_e])}function le(_e,Ce=k.Warn){Le(l(Sl,"videoEffectsEx.notifyError"),"video.notifyError",[_e,Ce])}(function(_e){_e.Fatal="fatal",_e.Warn="warn"})(k=_.ErrorLevel||(_.ErrorLevel={})),_.registerForVideoFrame=function(_e){var Ce,Fe;if(!de())throw Me;if(!_e.videoFrameHandler||!_e.videoBufferHandler)throw new Error("Both videoFrameHandler and videoBufferHandler must be provided");if(me(se,ie.sidePanel)){if(At(l(Sl,"videoEffectsEX.registerSetFrameProcessTimeLimitHandler"),"video.setFrameProcessTimeLimit",(nt=>R==null?void 0:R.setFrameProcessTimeLimit(nt)),!1),(Ce=se.supports.video)===null||Ce===void 0?void 0:Ce.mediaStream)At(l(Sl,"videoEffectsEX.registerStartVideoExtensibilityVideoStreamHandler"),"video.startVideoExtensibilityVideoStream",(nt=>BK(this,void 0,void 0,(function*(){const{streamId:Be,metadataInTexture:Ze}=nt,kt=R?K(_e.videoFrameHandler,R):_e.videoFrameHandler;Ze?yield v3e(Be,kt,le,R):yield DK(Be,kt,le,R)}))),!1),Le(l(Sl,"videoEffectsEX.mediaStream.registerForVideoFrame"),"video.mediaStream.registerForVideoFrame",[_e.config]);else{if(!(!((Fe=se.supports.video)===null||Fe===void 0)&&Fe.sharedFrame))throw Me;At(l(Sl,"videoEffectsEx.registerNewVideoFrameHandler"),"video.newVideoFrame",(nt=>{if(nt){R==null||R.reportStartFrameProcessing(nt.width,nt.height);const Be=D(),Ze=nt.timestamp;_e.videoBufferHandler(te(nt),(()=>{Be(),R==null||R.reportFrameProcessed(),he(Ze)}),le)}}),!1),Le(l(Sl,"videoEffectsEx.registerForVideoFrame"),"video.registerForVideoFrame",[_e.config])}R==null||R.startMonitorSlowFrameProcessing()}},_.notifySelectedVideoEffectChanged=function(_e,Ce,Fe){if(me(se,ie.sidePanel),!de())throw Me;Le(l(Sl,"videoEffectsEx.notifySelectedVideoEffectChanged"),"video.videoEffectChanged",[_e,Ce,Fe])},_.registerForVideoEffect=function(_e){if(me(se,ie.sidePanel),!de())throw Me;At(l(Sl,"videoEffectsEx.registerEffectParamterChangeHandler"),"video.effectParameterChange",UK(_e,R),!1),Le(l(Sl,"videoEffectsEx.registerForVideoEffect"),"video.registerForVideoEffect")},_.updatePersonalizedEffects=function(_e){if(me(se,ie.sidePanel),!Rh.isSupported())throw Me;Le(l(Sl,"videoEffectsEx.updatePersonalizedEffects"),"video.personalizedEffectsChanged",[_e])},_.isSupported=de,_.notifyFatalError=function(_e){if(me(se),!Rh.isSupported())throw Me;le(_e,k.Fatal)}})(r5||(r5={}));const $K=4,HK=256;function E3e(_){return _.length<HK&&_.length>$K}function T3e(_){return[..._].some((R=>{const k=R.charCodeAt(0);return k<32||k>126}))}class k3e{constructor(R){this.appIdAsString=R,_3e(R)}toString(){return this.appIdAsString}}const zK="users";
1505function VK(_,R,k){if(_.length===0)throw new Error("Must have at least one user when creating a chat deep link");const D=`${zK}=`+_.map((de=>encodeURIComponent(de))).join(","),K=R===void 0?"":`&topicName=${encodeURIComponent(R)}`,te=k===void 0?"":`&message=${encodeURIComponent(k)}`;return`${S}://${C}/l/chat/0/0?${D}${K}${te}`}function x3e(_,R,k){if(_.length===0)throw new Error("Must have at least one target when creating a call deep link");const D=`${zK}=`+_.map((de=>encodeURIComponent(de))).join(","),K=R===void 0?"":`&withVideo=${encodeURIComponent(R)}`,te=k===void 0?"":`&source=${encodeURIComponent(k)}`;return`${S}://${C}/l/call/0/0?${D}${K}${te}`}function A3e(_,R,k,D,K){const te=_===void 0?"":"attendees="+_.map((Ce=>encodeURIComponent(Ce))).join(","),de=R===void 0?"":`&startTime=${encodeURIComponent(R)}`,he=k===void 0?"":`&endTime=${encodeURIComponent(k)}`,le=D===void 0?"":`&subject=${encodeURIComponent(D)}`,_e=K===void 0?"":`&content=${encodeURIComponent(K)}`;return`${S}://${C}/l/meeting/new?${te}${de}${he}${le}${_e}`}function I3e(_){if(!_)throw new Error("App ID must be set when creating an app install dialog deep link");return`${S}://${C}/l/app/${encodeURIComponent(_)}`}var i5;(function(_){function R(){return!(!me(se)||!se.supports.appInstallDialog)}_.openAppInstallDialog=function(k){return new Promise((D=>{if(me(se,ie.content,ie.sidePanel,ie.settings,ie.task,ie.stage,ie.meetingStage),!R())throw new Error("Not supported");const K=l("v1","appInstallDialog.openAppInstallDialog");se.isLegacyTeams?D(ds(K,"executeDeepLink",I3e(k.appId))):(Le(K,"appInstallDialog.openAppInstallDialog",[k]),D())}))},_.isSupported=R})(i5||(i5={}));const wu="v1",R3e=c("media");var Ph;function o5(_,R){if(_==null||R==null||_.length<=0)return null;let k=null,D=1;return _.sort(((K,te)=>K.sequence>te.sequence?1:-1)),_.forEach((K=>{K.sequence==D&&(k=k?new Blob([k,K.file],{type:R}):new Blob([K.file],{type:R}),D++)})),k}function s5(_,R){if(_==null||R==null)return null;const k=atob(_.chunk),D=new Array(k.length);for(let de=0;de<k.length;de++)D[de]=k.charCodeAt(de);const K=new Uint8Array(D),te=new Blob([K],{type:R});return{sequence:_.chunkSequence,file:te}}function P3e(_){D3e(_)?P2("2.0.2"):L3e(_)?P2(p):M3e(_)&&P2("2.0.4")}function O3e(_){return!(_.mediaType!=Ph.MediaType.Video||!_.videoProps||!_.videoProps.videoController)}function N3e(_){return!(_==null||_.maxMediaCount>10)}function M3e(_){var R;return!((_==null?void 0:_.mediaType)!=Ph.MediaType.Image||!(!((R=_==null?void 0:_.imageProps)===null||R===void 0)&&R.imageOutputFormats))}function D3e(_){return!(!_||_.mediaType!=Ph.MediaType.VideoAndImage&&!_.videoAndImageProps)}function L3e(_){return!(!_||_.mediaType!=Ph.MediaType.Video||!_.videoProps||_.videoProps.isFullScreenMode)}function F3e(_,R,k){return _!=null&&R!=null&&R==Ph.FileFormat.ID&&k!=null}function j3e(_){return!(_==null||_.length<=0||_.length>10)}function WK(_){return!_||!(_.timeOutIntervalInSec===null||_.timeOutIntervalInSec!=null&&_.timeOutIntervalInSec<=0||_.timeOutIntervalInSec!=null&&_.timeOutIntervalInSec>60)}function U3e(_){return!(_&&(_.title&&typeof _.title!="string"||_.setSelected&&typeof _.setSelected!="object"||_.openOrgWideSearchInChatOrChannel&&typeof _.openOrgWideSearchInChatOrChannel!="boolean"||_.singleSelect&&typeof _.singleSelect!="boolean"))}(function(_){let R,k;(function(he){he.Base64="base64",he.ID="id"})(_.FileFormat||(_.FileFormat={}));class D{}function K(){return!(!me(se)||!se.supports.permissions)}_.File=D,_.captureImage=function(he){if(!he)throw new Error("[captureImage] Callback cannot be null");me(se,ie.content,ie.task),O.isFramelessWindow?yl("1.7.0")?Le(l(wu,"media.captureImage"),"captureImage",he):he({errorCode:Je.OLD_PLATFORM},[]):he({errorCode:Je.NOT_SUPPORTED_ON_PLATFORM},[])},_.hasPermission=function(){if(me(se,ie.content,ie.task),!K())throw Me;const he=Un.Media;return new Promise((le=>{le(en(l(wu,"media.hasPermission"),"permissions.has",he))}))},_.requestPermission=function(){if(me(se,ie.content,ie.task),!K())throw Me;const he=Un.Media;return new Promise((le=>{le(en(l(wu,"media.requestPermission"),"permissions.request",he))}))};class te extends D{constructor(le){super(),le&&(this.content=le.content,this.format=le.format,this.mimeType=le.mimeType,this.name=le.name,this.preview=le.preview,this.size=le.size)}getMedia(le){if(!le)throw new Error("[get Media] Callback cannot be null");me(se,ie.content,ie.task),yl(m)?F3e(this.mimeType,this.format,this.content)?yl("2.0.0")?this.getMediaViaCallback(le):this.getMediaViaHandler(le):le({errorCode:Je.INVALID_ARGUMENTS},new Blob):le({errorCode:Je.OLD_PLATFORM},new Blob)}getMediaViaCallback(le){const _e={mediaMimeType:this.mimeType,assembleAttachment:[]},Ce=[this.content];Le(l(wu,"media.getMedia"),"getMedia",Ce,(function(Fe){if(le)if(Fe&&Fe.error)le(Fe.error,new Blob);else if(Fe&&Fe.mediaChunk)if(Fe.mediaChunk.chunkSequence<=0){const nt=o5(_e.assembleAttachment,_e.mediaMimeType);le(Fe.error,nt??new Blob)}else{const nt=s5(Fe.mediaChunk,_e.mediaMimeType);nt?_e.assembleAttachment.push(nt):R3e(`Received a null assemble attachment for when decoding chunk sequence ${Fe.mediaChunk.chunkSequence}; not including the chunk in the assembled file.`)}else le({errorCode:Je.INTERNAL_ERROR,message:"data received is null"},new Blob)}))}getMediaViaHandler(le){const _e=dw(),Ce={mediaMimeType:this.mimeType,assembleAttachment:[]},Fe=[_e,this.content];this.content&&!wr(le)&&Le(l(wu,"media.getMedia"),"getMedia",Fe),At(l(wu,"media.registerGetMediaRequestHandler"),"getMedia"+_e,(function(nt){if(le){const Be=JSON.parse(nt);if(Be.error)le(Be.error,new Blob),Ao("getMedia"+_e);else if(Be.mediaChunk)if(Be.mediaChunk.chunkSequence<=0){const Ze=o5(Ce.assembleAttachment,Ce.mediaMimeType);le(Be.error,Ze??new Blob),Ao("getMedia"+_e)}else{const Ze=s5(Be.mediaChunk,Ce.mediaMimeType);Ze&&Ce.assembleAttachment.push(Ze)}else le({errorCode:Je.INTERNAL_ERROR,message:"data received is null"},new Blob),Ao("getMedia"+_e)}}))}}_.Media=te;class de{constructor(le){this.controllerCallback=le}notifyEventToHost(le,_e){me(se,ie.content,ie.task);try{P2(p)}catch(Fe){return void(_e&&_e(Fe))}const Ce={mediaType:this.getMediaType(),mediaControllerEvent:le};Le(l(wu,"media.controller"),"media.controller",[Ce],(Fe=>{_e&&_e(Fe)}))}stop(le){this.notifyEventToHost(R.StopRecording,le)}}_.VideoController=class extends de{getMediaType(){return k.Video}notifyEventToApp(he){if(this.controllerCallback)switch(he){case R.StartRecording:if(this.controllerCallback.onRecordingStarted){this.controllerCallback.onRecordingStarted();break}}}},(function(he){he[he.StartRecording=1]="StartRecording",he[he.StopRecording=2]="StopRecording"})(R=_.MediaControllerEvent||(_.MediaControllerEvent={})),(function(he){he[he.Photo=1]="Photo",he[he.Document=2]="Document",he[he.Whiteboard=3]="Whiteboard",he[he.BusinessCard=4]="BusinessCard"})(_.CameraStartMode||(_.CameraStartMode={})),(function(he){he[he.Camera=1]="Camera",he[he.Gallery=2]="Gallery"})(_.Source||(_.Source={})),(function(he){he[he.Image=1]="Image",he[he.Video=2]="Video",he[he.VideoAndImage=3]="VideoAndImage",he[he.Audio=4]="Audio"})(k=_.MediaType||(_.MediaType={}
1505)),(function(he){he[he.ID=1]="ID",he[he.URL=2]="URL"})(_.ImageUriType||(_.ImageUriType={})),(function(he){he[he.IMAGE=1]="IMAGE",he[he.PDF=2]="PDF"})(_.ImageOutputFormats||(_.ImageOutputFormats={})),_.selectMedia=function(he,le){if(!le)throw new Error("[select Media] Callback cannot be null");if(me(se,ie.content,ie.task),!yl(m)){const Ce={errorCode:Je.OLD_PLATFORM};return void le(Ce,[])}try{P3e(he)}catch(Ce){return void le(Ce,[])}if(!N3e(he)){const Ce={errorCode:Je.INVALID_ARGUMENTS};return void le(Ce,[])}const _e=[he];Le(l(wu,"media.selectMedia"),"selectMedia",_e,((Ce,Fe,nt)=>{var Be,Ze;if(nt)return void(O3e(he)&&((Ze=(Be=he==null?void 0:he.videoProps)===null||Be===void 0?void 0:Be.videoController)===null||Ze===void 0||Ze.notifyEventToApp(nt)));if(!Fe)return void le(Ce,[]);const kt=[];for(const lo of Fe)kt.push(new te(lo));le(Ce,kt)}))},_.viewImages=function(he,le){if(!le)throw new Error("[view images] Callback cannot be null");if(me(se,ie.content,ie.task),!yl(m))return void le({errorCode:Je.OLD_PLATFORM});if(!j3e(he))return void le({errorCode:Je.INVALID_ARGUMENTS});const _e=[he];Le(l(wu,"media.viewImages"),"viewImages",_e,le)},_.scanBarCode=function(he,le){if(!he)throw new Error("[media.scanBarCode] Callback cannot be null");me(se,ie.content,ie.task),O.hostClientType!==bt.desktop&&O.hostClientType!==bt.web&&O.hostClientType!==bt.rigel&&O.hostClientType!==bt.teamsRoomsWindows&&O.hostClientType!==bt.teamsRoomsAndroid&&O.hostClientType!==bt.teamsPhones&&O.hostClientType!==bt.teamsDisplays?yl("1.9.0")?WK(le)?Le(l(wu,"media.scanBarCode"),"media.scanBarCode",[le],he):he({errorCode:Je.INVALID_ARGUMENTS},""):he({errorCode:Je.OLD_PLATFORM},""):he({errorCode:Je.NOT_SUPPORTED_ON_PLATFORM},"")}})(Ph||(Ph={}));const a5="v2";var c5;(function(_){function R(){return!!(me(se)&&se.supports.barCode&&se.supports.permissions)}_.scanBarCode=function(k){return new Promise((D=>{if(me(se,ie.content,ie.task),!R())throw Me;if(!WK(k))throw{errorCode:Je.INVALID_ARGUMENTS};D(en(l(a5,"barCode.scanBarCode"),"media.scanBarCode",k))}))},_.hasPermission=function(){if(me(se,ie.content,ie.task),!R())throw Me;const k=Un.Media;return new Promise((D=>{D(en(l(a5,"barCode.hasPermission"),"permissions.has",k))}))},_.requestPermission=function(){if(me(se,ie.content,ie.task),!R())throw Me;const k=Un.Media;return new Promise((D=>{D(en(l(a5,"barCode.requestPermission"),"permissions.request",k))}))},_.isSupported=R})(c5||(c5={}));var l5;(function(_){function R(D,K){return new Promise((te=>{if(me(se,ie.content,ie.task),!k())throw Me;se.isLegacyTeams?te(ds(D,"executeDeepLink",VK([K.user],void 0,K.message))):te(ds(D,"chat.openChat",{members:[K.user],message:K.message}))}))}function k(){return!(!me(se)||!se.supports.chat)}_.openChat=function(D){return R(l("v2","chat.openChat"),D)},_.openGroupChat=function(D){const K=l("v2","chat.openGroupChat");return new Promise((te=>{if(D.users.length<1)throw Error("OpenGroupChat Failed: No users specified");if(D.users.length===1){const de={user:D.users[0],message:D.message};te(R(K,de))}else{if(me(se,ie.content,ie.task),!k())throw Me;se.isLegacyTeams?te(ds(K,"executeDeepLink",VK(D.users,D.topic,D.message))):te(ds(K,"chat.openChat",{members:D.users,message:D.message,topic:D.topic}))}}))},_.isSupported=k})(l5||(l5={}));var qK=function(_,R,k,D){function K(te){return te instanceof k?te:new k((function(de){de(te)}))}return new(k||(k=Promise))((function(te,de){function he(Ce){try{_e(D.next(Ce))}catch(Fe){de(Fe)}}function le(Ce){try{_e(D.throw(Ce))}catch(Fe){de(Fe)}}function _e(Ce){Ce.done?te(Ce.value):K(Ce.value).then(he,le)}_e((D=D.apply(_,[])).next())}))},u5,d5;(function(_){function R(){return O.isFramelessWindow?!(!me(se)||!se.supports.clipboard):!!(me(se)&&navigator&&navigator.clipboard&&se.supports.clipboard)}_.write=function(k){return qK(this,void 0,void 0,(function*(){if(me(se,ie.content,ie.meetingStage,ie.task,ie.settings,ie.stage,ie.sidePanel),!R())throw Me;if(!k.type||!Object.values(Go).includes(k.type))throw new Error(`Blob type ${k.type} is not supported. Supported blob types are ${Object.values(Go)}`);const D=yield x4(k),K={mimeType:k.type,content:D};
1505return en(l("v2","clipboard.write"),"clipboard.writeToClipboard",K)}))},_.read=function(){return qK(this,void 0,void 0,(function*(){me(se,ie.content,ie.meetingStage,ie.task,ie.settings,ie.stage,ie.sidePanel);const k=l("v2","clipboard.read");if(!R())throw Me;const D=yield en(k,"clipboard.readFromClipboard");if(typeof D=="string"){const K=JSON.parse(D);return Mi(K.mimeType,K.content)}return D}))},_.isSupported=R})(u5||(u5={})),(function(_){_.isNAAChannelRecommended=function(){var R;return(R=me(se)&&se.isNAAChannelRecommended)!==null&&R!==void 0&&R}})(d5||(d5={}));const bw="v2";var f5;function B3e(){return se.hostVersionsInfo?se.hostVersionsInfo.adaptiveCardSchemaVersion:void 0}(function(_){function R(){return!!(me(se)&&se.supports.geoLocation&&se.supports.permissions)}_.getCurrentLocation=function(){if(me(se,ie.content,ie.task),!R())throw Me;return en(l(bw,"geoLocation.getCurrentLocation"),"location.getLocation",{allowChooseLocation:!1,showMap:!1})},_.hasPermission=function(){if(me(se,ie.content,ie.task),!R())throw Me;const k=Un.GeoLocation;return new Promise((D=>{D(en(l(bw,"geoLocation.hasPermission"),"permissions.has",k))}))},_.requestPermission=function(){if(me(se,ie.content,ie.task),!R())throw Me;const k=Un.GeoLocation;return new Promise((D=>{D(en(l(bw,"geoLocation.requestPermission"),"permissions.request",k))}))},_.isSupported=R,(function(k){function D(){return!!(me(se)&&se.supports.geoLocation&&se.supports.geoLocation.map&&se.supports.permissions)}k.chooseLocation=function(){if(me(se,ie.content,ie.task),!D())throw Me;return en(l(bw,"geoLocation.map.chooseLocation"),"location.getLocation",{allowChooseLocation:!0,showMap:!0})},k.showLocation=function(K){if(me(se,ie.content,ie.task),!D())throw Me;if(!K)throw{errorCode:Je.INVALID_ARGUMENTS};return en(l(bw,"geoLocation.showLocation"),"location.showLocation",K)},k.isSupported=D})(_.map||(_.map={}))})(f5||(f5={}));const V2="v1";class GK{postMessage(R,k){me(se),Le(l(V2,"appWindow.childAppWindow.postMessage"),"messageForChild",[R],k||ml())}addEventListener(R,k){me(se),R==="message"&&At(l(V2,"appWindow.childAppWindow.addEventListener"),"messageForParent",k)}}class $3e{static get Instance(){return this._instance||(this._instance=new this)}postMessage(R,k){me(se,ie.task),Le(l(V2,"appWindow.parentAppWindow.postMessage"),"messageForParent",[R],k||ml())}addEventListener(R,k){me(se,ie.task),R==="message"&&At(l(V2,"appWindow.parentAppWindow.addEventListener"),"messageForChild",k)}}var h5;(function(_){function R(){return!(!me(se)||!se.supports.secondaryBrowser)}_.open=function(k){if(me(se,ie.content),!R())throw Me;if(!k||!Jr(k))throw{errorCode:Je.INVALID_ARGUMENTS,message:"Invalid Url: Only https URL is allowed"};return en(l("v2","secondaryBrowser.openUrl"),"secondaryBrowser.open",k.toString())},_.isSupported=R})(h5||(h5={}));var p5;(function(_){function R(){return!(!me(se)||!se.supports.location)}_.getLocation=function(k,D){if(!D)throw new Error("[location.getLocation] Callback cannot be null");if(me(se,ie.content,ie.task),!yl(g))throw{errorCode:Je.OLD_PLATFORM};if(!k)throw{errorCode:Je.INVALID_ARGUMENTS};if(!R())throw Me;Le(l("v1","location.getLocation"),"location.getLocation",[k],D)},_.showLocation=function(k,D){if(!D)throw new Error("[location.showLocation] Callback cannot be null");if(me(se,ie.content,ie.task),!yl(g))throw{errorCode:Je.OLD_PLATFORM};if(!k)throw{errorCode:Je.INVALID_ARGUMENTS};if(!R())throw Me;Le(l("v1","location.showLocation"),"location.showLocation",[k],D)},_.isSupported=R})(p5||(p5={}));var KK=function(_,R,k,D){function K(te){return te instanceof k?te:new k((function(de){de(te)}))}return new(k||(k=Promise))((function(te,de){function he(Ce){try{_e(D.next(Ce))}catch(Fe){de(Fe)}}function le(Ce){try{_e(D.throw(Ce))}catch(Fe){de(Fe)}}function _e(Ce){Ce.done?te(Ce.value):K(Ce.value).then(he,le)}_e((D=D.apply(_,[])).next())}))};const Li="v1";var m5;(function(_){let R,k,D,K;function te(le,_e){Le(l(Li,"meeting.requestAppAudioHandling"),"meeting.requestAppAudioHandling",[le.isAppHandlingAudio],((Ce,Fe)=>{if(Ce&&Fe!=null)throw new Error("[requestAppAudioHandling] Callback response - both parameters cannot be set");if(Ce)throw new Error(`[requestAppAudioHandling] Callback response - SDK error ${Ce.errorCode} ${Ce.message}`);if(typeof Fe!="boolean")throw new Error("[requestAppAudioHandling] Callback response - isHostAudioless must be a boolean");At(l(Li,"meeting.registerMicStateChangeHandler"),"meeting.micStateChanged",(nt=>KK(this,void 0,void 0,(function*(){try{const Be=yield le.micMuteStateChangedCallback(nt);he(Be,Be.isMicMuted===nt.isMicMuted?R.HostInitiated:R.AppDeclinedToChange)}catch{he(nt,R.AppFailedToChange)}}
1505)))),At(l(Li,"meeting.registerAudioDeviceSelectionChangedHandler"),"meeting.audioDeviceSelectionChanged",(nt=>{var Be;(Be=le.audioDeviceSelectionChangedCallback)===null||Be===void 0||Be.call(le,nt)})),_e(Fe)}))}function de(le,_e){Le(l(Li,"meeting.requestAppAudioHandling"),"meeting.requestAppAudioHandling",[le.isAppHandlingAudio],((Ce,Fe)=>{if(Ce&&Fe!=null)throw new Error("[requestAppAudioHandling] Callback response - both parameters cannot be set");if(Ce)throw new Error(`[requestAppAudioHandling] Callback response - SDK error ${Ce.errorCode} ${Ce.message}`);if(typeof Fe!="boolean")throw new Error("[requestAppAudioHandling] Callback response - isHostAudioless must be a boolean");_K("meeting.micStateChanged")&&Ao("meeting.micStateChanged"),_K("meeting.audioDeviceSelectionChanged")&&Ao("meeting.audioDeviceSelectionChanged"),_e(Fe)}))}function he(le,_e){me(se,ie.sidePanel,ie.meetingStage),Le(l(Li,"meeting.setMicStateWithReason"),"meeting.updateMicState",[le,_e])}(function(le){le[le.HostInitiated=0]="HostInitiated",le[le.AppInitiated=1]="AppInitiated",le[le.AppDeclinedToChange=2]="AppDeclinedToChange",le[le.AppFailedToChange=3]="AppFailedToChange"})(R||(R={})),(function(le){le.like="like",le.heart="heart",le.laugh="laugh",le.surprised="surprised",le.applause="applause"})(_.MeetingReactionType||(_.MeetingReactionType={}
1505)),(function(le){le.Unknown="Unknown",le.Adhoc="Adhoc",le.Scheduled="Scheduled",le.Recurring="Recurring",le.Broadcast="Broadcast",le.MeetNow="MeetNow"})(_.MeetingType||(_.MeetingType={})),(function(le){le.OneOnOneCall="oneOnOneCall",le.GroupCall="groupCall"})(k=_.CallType||(_.CallType={})),(function(le){le.Collaborative="Collaborative",le.ScreenShare="ScreenShare"})(D=_.SharingProtocol||(_.SharingProtocol={})),_.getIncomingClientAudioState=function(le){if(!le)throw new Error("[get incoming client audio state] Callback cannot be null");me(se,ie.sidePanel,ie.meetingStage),Le(l(Li,"meeting.getIncomingClientAudioState"),"getIncomingClientAudioState",le)},_.toggleIncomingClientAudio=function(le){if(!le)throw new Error("[toggle incoming client audio] Callback cannot be null");me(se,ie.sidePanel,ie.meetingStage),Le(l(Li,"meeting.toggleIncomingClientAudio"),"toggleIncomingClientAudio",le)},_.getMeetingDetails=function(le){if(!le)throw new Error("[get meeting details] Callback cannot be null");me(se,ie.sidePanel,ie.meetingStage,ie.settings,ie.content),Le(l(Li,"meeting.getMeetingDetails"),"meeting.getMeetingDetails",le)},_.getMeetingDetailsVerbose=function(){var le,_e,Ce;return KK(this,void 0,void 0,(function*(){let Fe;me(se,ie.sidePanel,ie.meetingStage,ie.settings,ie.content);try{Fe=yield en(l("v2","meeting.getMeetingDetailsVerbose"),"meeting.getMeetingDetails",!0)}catch(nt){throw new Error((le=nt==null?void 0:nt.errorCode)===null||le===void 0?void 0:le.toString())}if((((_e=Fe.details)===null||_e===void 0?void 0:_e.type)==k.GroupCall||((Ce=Fe.details)===null||Ce===void 0?void 0:Ce.type)==k.OneOnOneCall)&&!Fe.details.originalCaller)throw new Error(Je.NOT_SUPPORTED_ON_PLATFORM.toString());return Fe}))},_.getAuthenticationTokenForAnonymousUser=function(le){if(!le)throw new Error("[get Authentication Token For AnonymousUser] Callback cannot be null");me(se,ie.sidePanel,ie.meetingStage,ie.task),Le(l(Li,"meeting.getAuthenticationTokenForAnonymousUser"),"meeting.getAuthenticationTokenForAnonymousUser",le)},_.getLiveStreamState=function(le){if(!le)throw new Error("[get live stream state] Callback cannot be null");me(se,ie.sidePanel),Le(l(Li,"meeting.getLiveStreamState"),"meeting.getLiveStreamState",le)},_.requestStartLiveStreaming=function(le,_e,Ce){if(!le)throw new Error("[request start live streaming] Callback cannot be null");me(se,ie.sidePanel),Le(l(Li,"meeting.requestStartLiveStreaming"),"meeting.requestStartLiveStreaming",[_e,Ce],le)},_.requestStopLiveStreaming=function(le){if(!le)throw new Error("[request stop live streaming] Callback cannot be null");me(se,ie.sidePanel),Le(l(Li,"meeting.requestStopLiveStreaming"),"meeting.requestStopLiveStreaming",le)},_.registerLiveStreamChangedHandler=function(le){if(!le)throw new Error("[register live stream changed handler] Handler cannot be null");me(se,ie.sidePanel),At(l(Li,"meeting.registerLiveStreamChangedHandler"),"meeting.liveStreamChanged",le)},_.shareAppContentToStage=function(le,_e,Ce={sharingProtocol:D.Collaborative}){if(!le)throw new Error("[share app content to stage] Callback cannot be null");me(se,ie.sidePanel,ie.meetingStage),Le(l(Li,"meeting.shareAppContentToStage"),"meeting.shareAppContentToStage",[_e,Ce],le)},_.getAppContentStageSharingCapabilities=function(le){if(!le)throw new Error("[get app content stage sharing capabilities] Callback cannot be null");me(se,ie.sidePanel,ie.meetingStage),Le(l(Li,"meeting.getAppContentStageSharingCapabilities"),"meeting.getAppContentStageSharingCapabilities",le)},_.stopSharingAppContentToStage=function(le){if(!le)throw new Error("[stop sharing app content to stage] Callback cannot be null");me(se,ie.sidePanel,ie.meetingStage),Le(l(Li,"meeting.stopSharingAppContentToStage"),"meeting.stopSharingAppContentToStage",le)},_.getAppContentStageSharingState=function(le){if(!le)throw new Error("[get app content stage sharing state] Callback cannot be null");me(se,ie.sidePanel,ie.meetingStage),Le(l(Li,"meeting.getAppContentStageSharingState"),"meeting.getAppContentStageSharingState",le)},_.registerSpeakingStateChangeHandler=function(le){if(!le)throw new Error("[registerSpeakingStateChangeHandler] Handler cannot be null");me(se,ie.sidePanel,ie.meetingStage),At(l(Li,"meeting.registerSpeakingStateChangeHandler"),"meeting.speakingStateChanged",le)},_.registerRaiseHandStateChangedHandler=function(le){if(!le)throw new Error("[registerRaiseHandStateChangedHandler] Handler cannot be null");me(se,ie.sidePanel,ie.meetingStage),At(l(Li,"meeting.registerRaiseHandStateChangedHandler"),"meeting.raiseHandStateChanged",le)},_.registerMeetingReactionReceivedHandler=function(le){if(!le)throw new Error("[registerMeetingReactionReceivedHandler] Handler cannot be null");me(se,ie.sidePanel,ie.meetingStage),At(l(Li,"meeting.registerMeetingReactionReceivedHandler"),"meeting.meetingReactionReceived",le)},_.joinMeeting=function(le){if((le==null?void 0:le.joinWebUrl)===void 0||(le==null?void 0:le.joinWebUrl)===null)return Promise.reject(new Error("Invalid joinMeetingParams"));me(se);const _e={joinWebUrl:le.joinWebUrl.href,source:le.source||K.Other};return en(l("v2","meeting.joinMeeting"),"meeting.joinMeeting",_e)},(function(le){le.M365CalendarGridContextMenu="m365_calendar_grid_context_menu",le.M365CalendarGridPeek="m365_calendar_grid_peek",le.M365CalendarGridEventCardJoinButton="m365_calendar_grid_event_card_join_button",le.M365CalendarFormRibbonJoinButton="m365_calendar_form_ribbon_join_button",le.M365CalendarFormJoinTeamsMeetingButton="m365_calendar_form_join_teams_meeting_button",le.Other="other"})(K=_.EventActionSource||(_.EventActionSource={})),(function(le){le.setOptions=function(_e){me(se,ie.sidePanel),_e.contentUrl&&new URL(_e.contentUrl),Le(l(Li,"meeting.appShareButton.setOptions"),"meeting.appShareButton.setOptions",[_e])}})(_.appShareButton||(_.appShareButton={})),_.requestAppAudioHandling=function(le,_e){if(!_e)throw new Error("[requestAppAudioHandling] Callback response cannot be null");if(!le.micMuteStateChangedCallback)throw new Error("[requestAppAudioHandling] Callback Mic mute state handler cannot be null");me(se,ie.sidePanel,ie.meetingStage),le.isAppHandlingAudio?te(le,_e):de(le,_e)},_.updateMicState=function(le){he(le,R.AppInitiated)}})(m5||(m5={}));var g5;(function(_){function R(){return!(!me(se)||!se.supports.monetization)}
1505_.openPurchaseExperience=function(k,D){let K,te,de="";return typeof k=="function"?(K=k,te=D,de=l("v1","monetization.openPurchaseExperience")):(te=k,de=l("v2","monetization.openPurchaseExperience")),me(se,ie.content),Mr((()=>new Promise((he=>{if(!R())throw Me;he(en(de,"monetization.openPurchaseExperience",te))}))),K)},_.isSupported=R})(g5||(g5={}));var v5;(function(_){function R(){return!(!me(se)||!se.supports.calendar)}_.openCalendarItem=function(k){return new Promise((D=>{if(me(se,ie.content),!R())throw new Error("Not supported");if(!k.itemId||!k.itemId.trim())throw new Error("Must supply an itemId to openCalendarItem");D(ds(l("v2","calendar.openCalendarItem"),"calendar.openCalendarItem",k))}))},_.composeMeeting=function(k){return new Promise((D=>{if(me(se,ie.content),!R())throw new Error("Not supported");const K=l("v2","calendar.composeMeeting");se.isLegacyTeams?D(ds(K,"executeDeepLink",A3e(k.attendees,k.startTime,k.endTime,k.subject,k.content))):D(ds(K,"calendar.composeMeeting",k))}))},_.isSupported=R})(v5||(v5={}));var y5;(function(_){function R(){return!(!me(se)||!se.supports.mail)}_.openMailItem=function(k){return new Promise((D=>{if(me(se,ie.content),!R())throw new Error("Not supported");
1505if(!k.itemId||!k.itemId.trim())throw new Error("Must supply an itemId to openMailItem");D(ds(l("v2","mail.openMailItem"),"mail.openMailItem",k))}))},_.composeMail=function(k){return new Promise((D=>{if(me(se,ie.content),!R())throw new Error("Not supported");D(ds(l("v2","mail.composeMail"),"mail.composeMail",k))}))},_.isSupported=R,(function(k){k.New="new",k.Reply="reply",k.ReplyAll="replyAll",k.Forward="forward"})(_.ComposeMailType||(_.ComposeMailType={}))})(y5||(y5={}));var Ym;(function(_){function R(){zd().print()}function k(te,de,he){!wr(de)&&me(se),!wr(de)&&he&&he(),IRe(te,de)}function D(te,de,he){!wr(de)&&me(se),!wr(de)&&he&&he(),ORe(te,de)}function K(){return!(!me(se)||!se.supports.teamsCore)}_.enablePrintCapability=function(){if(!O.printCapabilityEnabled){if(me(se),!K())throw Me;O.printCapabilityEnabled=!0,document.addEventListener("keydown",(te=>{(te.ctrlKey||te.metaKey)&&te.keyCode===80&&(R(),te.cancelBubble=!0,te.preventDefault(),te.stopImmediatePropagation())}))}},_.print=R,_.registerOnLoadHandler=function(te){k(l("v2","teamsAPIs_registerOnLoadHandler"),te,(()=>{if(!wr(te)&&!K())throw Me}))},_.registerOnLoadHandlerHelper=k,_.registerBeforeUnloadHandler=function(te){D(l("v2","teamsAPIs_registerBeforeUnloadHandler"),te,(()=>{if(!wr(te)&&!K())throw Me}))},_.registerBeforeUnloadHandlerHelper=D,_.isSupported=K})(Ym||(Ym={}));var b5;function H3e(_){return _?_.modality&&typeof _.modality!="string"?[!1,"modality must be a string"]:_.targetElementBoundingRect&&typeof _.targetElementBoundingRect=="object"?_.triggerType&&typeof _.triggerType=="string"?z3e(_.persona):[!1,"triggerType must be a valid string"]:[!1,"targetElementBoundingRect must be a DOMRect"]:[!1,"A request object is required"]}function z3e(_){return _?_.displayName&&typeof _.displayName!="string"?[!1,"displayName must be a string"]:_.identifiers&&typeof _.identifiers=="object"?_.identifiers.AadObjectId||_.identifiers.Smtp||_.identifiers.Upn?_.identifiers.AadObjectId&&typeof _.identifiers.AadObjectId!="string"?[!1,"AadObjectId identifier must be a string"]:_.identifiers.Smtp&&typeof _.identifiers.Smtp!="string"?[!1,"Smtp identifier must be a string"]:_.identifiers.Upn&&typeof _.identifiers.Upn!="string"?[!1,"Upn identifier must be a string"]:[!0,void 0]:[!1,"at least one valid identifier must be provided"]:[!1,"persona identifiers object must be provided"]:[!1,"persona object must be provided"]}(function(_){function R(D,K){return new Promise((te=>{if(!yl("2.0.0"))throw{errorCode:Je.OLD_PLATFORM};if(!U3e(K))throw{errorCode:Je.INVALID_ARGUMENTS};if(!k())throw Me;te(en(D,"people.selectPeople",K))}))}function k(){return!(!me(se)||!se.supports.people)}_.selectPeople=function(D,K){let te,de;me(se,ie.content,ie.task,ie.settings);let he="";return typeof D=="function"?([te,de]=[D,K],he=l("v1","people.selectPeople")):(de=D,he=l("v2","people.selectPeople")),Ut(R,te,he,de)},_.isSupported=k})(b5||(b5={}));var w5;(function(_){_.showProfile=function(R){return me(se,ie.content),new Promise((k=>{const[D,K]=H3e(R);if(!D)throw{errorCode:Je.INVALID_ARGUMENTS,message:K};const te={modality:R.modality,persona:R.persona,triggerType:R.triggerType,targetRectangle:{x:R.targetElementBoundingRect.x,y:R.targetElementBoundingRect.y,width:R.targetElementBoundingRect.width,height:R.targetElementBoundingRect.height}};k(en(l("v2","profile.showProfile"),"profile.showProfile",te))}))},_.isSupported=function(){return!(!me(se)||!se.supports.profile)}})(w5||(w5={}));const ww="v2";var S5;(function(_){const R="search.queryChange",k="search.queryClose",D="search.queryExecute";function K(){return!(!me(se)||!se.supports.search)}_.registerHandlers=function(te,de,he){if(me(se,ie.content),!K())throw Me;At(l(ww,"search.registerOnClosedHandler"),k,te),At(l(ww,"search.registerOnExecutedHandler"),D,de),he&&At(l(ww,"search.registerOnChangeHandler"),R,he)},_.unregisterHandlers=function(){if(me(se,ie.content),!K())throw Me;Le(l(ww,"search.unregisterHandlers"),"search.unregister"),Ao(R),Ao(k),Ao(D)},_.isSupported=K,_.closeSearch=function(){return new Promise((te=>{if(me(se,ie.content),!K())throw new Error("Not supported");te(ds(l(ww,"search.closeSearch"),"search.closeSearch"))}))}})(S5||(S5={}));var V3e=function(_,R,k,D){function K(te){return te instanceof k?te:new k((function(de){de(te)}))}return new(k||(k=Promise))((function(te,de){function he(Ce){try{_e(D.next(Ce))}catch(Fe){de(Fe)}}function le(Ce){try{_e(D.throw(Ce))}catch(Fe){de(Fe)}}function _e(Ce){Ce.done?te(Ce.value):K(Ce.value).then(he,le)}_e((D=D.apply(_,[])).next())}))},_5;(function(_){function R(de,he){return new Promise((le=>{if(!te())throw Me;le(en(de,_.SharingAPIMessages.shareWebContent,he))}))}function k(de){if(!(de&&de.content&&de.content.length))throw{errorCode:Je.INVALID_ARGUMENTS,message:"Shared content is missing"}}function D(de){let he;if(de.content.some((le=>!le.type)))throw he={errorCode:Je.INVALID_ARGUMENTS,message:"Shared content type cannot be undefined"},he;if(de.content.some((le=>le.type!==de.content[0].type)))throw he={errorCode:Je.INVALID_ARGUMENTS,message:"Shared content must be of the same type"},he}function K(de){let he;if(de.content[0].type!=="URL")throw he={errorCode:Je.INVALID_ARGUMENTS,message:"Content type is unsupported"},he;if(de.content.some((le=>!le.url)))throw he={errorCode:Je.INVALID_ARGUMENTS,message:"URLs are required for URL content types"},he}function te(){return!(!me(se)||!se.supports.sharing)}_.SharingAPIMessages={shareWebContent:"sharing.shareWebContent"},_.shareWebContent=function(de,he){try{k(de),D(de),K(de)}catch(le){return Zt((()=>Promise.reject(le)),he)}return me(se,ie.content,ie.sidePanel,ie.task,ie.stage,ie.meetingStage),Zt(R,he,l(he?"v1":"v2","sharing.shareWebContent"),de)}
1505,_.isSupported=te,(function(de){function he(){var le;return me(se)&&((le=se.supports.sharing)===null||le===void 0?void 0:le.history)!==void 0}de.getContent=function(){return V3e(this,void 0,void 0,(function*(){if(me(se,ie.sidePanel,ie.meetingStage),!he())throw Me;return yield en(l("v2","sharing.history.getContent"),"sharing.history.getContent")}))},de.isSupported=he})(_.history||(_.history={}))})(_5||(_5={}));var C5;(function(_){function R(){return!(!me(se)||!se.supports.stageView)}(function(k){k.modal="modal",k.popout="popout",k.popoutWithChat="popoutWithChat"})(_.StageViewOpenMode||(_.StageViewOpenMode={})),_.open=function(k){return new Promise((D=>{if(me(se,ie.content),!R())throw Me;if(!k)throw new Error("[stageView.open] Stage view params cannot be null");D(en(l("v2","stageView.open"),"stageView.open",k))}))},_.isSupported=R,(function(k){function D(){var K;return me(se)&&((K=se.supports.stageView)===null||K===void 0?void 0:K.self)!==void 0}k.close=function(){return new Promise((K=>{if(me(se,ie.content),!D())throw Me;K(en(l("v2","stageView.self.close"),"stageView.self.close"))}))},k.isSupported=D})(_.self||(_.self={}))})(C5||(C5={}));var YK=function(_,R,k,D){function K(te){return te instanceof k?te:new k((function(de){de(te)}))}return new(k||(k=Promise))((function(te,de){function he(Ce){try{_e(D.next(Ce))}catch(Fe){de(Fe)}}function le(Ce){try{_e(D.throw(Ce))}catch(Fe){de(Fe)}}function _e(Ce){Ce.done?te(Ce.value):K(Ce.value).then(he,le)}_e((D=D.apply(_,[])).next())}))};const W2="v2";var E5;(function(_){let R;(function(k){k[k.FrontOrRear=1]="FrontOrRear",k[k.FrontOnly=2]="FrontOnly",k[k.RearOnly=3]="RearOnly"})(_.CameraRestriction||(_.CameraRestriction={})),(function(k){k[k.Camera=1]="Camera",k[k.Gallery=2]="Gallery"})(_.Source||(_.Source={})),_.hasPermission=function(){if(me(se,ie.content,ie.task),!R.isSupported())throw Me;const k=Un.Media;return en(l(W2,"visualMedia.hasPermission"),"permissions.has",k)},_.requestPermission=function(){if(me(se,ie.content,ie.task),!R.isSupported())throw Me;const k=Un.Media;return en(l(W2,"visualMedia.requestPermission"),"permissions.request",k)},(function(k){function D(){return!!(me(se)&&se.supports.visualMedia&&se.supports.visualMedia.image&&se.supports.permissions)}function K(){if(!D())throw Me}function te(he){if(!he||he.maxVisualMediaCount>10||he.maxVisualMediaCount<1)throw E2}function de(he,le){if(le.length>he)throw k4}k.captureImages=function(he){return YK(this,void 0,void 0,(function*(){me(se,ie.content,ie.task),K(),te(he);const le=yield en(l(W2,"visualMedia.image.captureImages"),"visualMedia.image.captureImages",he);return de(he.maxVisualMediaCount,le),le}))},k.retrieveImages=function(he){return YK(this,void 0,void 0,(function*(){me(se,ie.content,ie.task),K(),te(he);const le=yield en(l(W2,"visualMedia.image.retrieveImages"),"visualMedia.image.retrieveImages",he);return de(he.maxVisualMediaCount,le),le}))},k.isSupported=D})(R=_.image||(_.image={}))})(E5||(E5={}));var T5,QK=function(_,R,k,D){function K(te){return te instanceof k?te:new k((function(de){de(te)}))}return new(k||(k=Promise))((function(te,de){function he(Ce){try{_e(D.next(Ce))}catch(Fe){de(Fe)}}function le(Ce){try{_e(D.throw(Ce))}catch(Fe){de(Fe)}}function _e(Ce){Ce.done?te(Ce.value):K(Ce.value).then(he,le)}_e((D=D.apply(_,[])).next())}))};(function(_){function R(){return QK(this,void 0,void 0,(function*(){return k5===null&&(k5=(yield bl.getContext()).app.host.name),k5}))}function k(){return me(se)&&se.supports.webStorage!==void 0}_.isWebStorageClearedOnUserLogOut=function(){return QK(this,void 0,void 0,(function*(){if(me(se),!k())throw Me;return!(!se.isLegacyTeams||O.hostClientType!==bt.android&&O.hostClientType!==bt.ios&&O.hostClientType!==bt.ipados||(yield R())!==Or.teams)||(yield Gd(l("v2","webStorage.isWebStorageClearedOnUserLogOut"),"webStorage.isWebStorageClearedOnUserLogOut"))}))},_.isSupported=k})(T5||(T5={}));let k5=null;var x5;(function(_){let R;function k(){return!(!me(se)||!se.supports.call)}(function(D){D.Unknown="unknown",D.Audio="audio",D.Video="video",D.VideoBasedScreenSharing="videoBasedScreenSharing",D.Data="data"}
1505)(R=_.CallModalities||(_.CallModalities={})),_.startCall=function(D){const K=l("v2","call.startCall");return new Promise((te=>{var de;if(me(se,ie.content,ie.task),!k())throw Me;if(!se.isLegacyTeams)return Le(K,"call.startCall",[D],te);te(Gd(K,"executeDeepLink",x3e(D.targets,(de=D.requestedModalities)===null||de===void 0?void 0:de.includes(R.Video),D.source)).then((he=>{if(!he)throw new Error("The call was not properly started");return he})))}))},_.isSupported=k})(x5||(x5={}));const q2="v1";var A5;(function(_){_.Messages=bl.Messages,_.FailedReason=bl.FailedReason,_.ExpectedFailureReason=bl.ExpectedFailureReason,_.notifyAppLoaded=function(){oK(l(q2,"appInitialization.notifyAppLoaded"))},_.notifySuccess=function(){cK(l(q2,"appInitialization.notifySuccess"))},_.notifyFailure=function(R){aK(l(q2,"appInitialization.notifyFailure"),R)},_.notifyExpectedFailure=function(R){sK(l(q2,"appInitialization.notifyExpectedFailure"),R)}})(A5||(A5={}));const XK=c("thirdPartyCloudStorage");var I5;(function(_){class R{constructor(_e,Ce){this.fileType=_e,this.assembleAttachment=Ce}}let k=[],D=null,K=!0,te=null;function de(le){if(te)if(le&&le.error)te([],le.error),te=null;else if(le&&le.fileChunk)try{K||le.fileChunk.chunkSequence!==0||(XK("Last chunk is not received or 'endOfFile' value for previous chunk was not set to true"),K=!0,te([],{errorCode:Je.INTERNAL_ERROR,message:"error occurred while receiving data"}),k=[],te=null);const _e=s5(le.fileChunk,le.fileType);if(_e?(D||(D=new R(le.fileType,[])),D.assembleAttachment.push(_e)):(XK(`Received a null assemble attachment for when decoding chunk sequence ${le.fileChunk.chunkSequence}; not including the chunk in the assembled file.`),te?te([],{errorCode:Je.INTERNAL_ERROR,message:"error occurred while receiving data"}):te=null,k=[],te=null,K=!0),K=le.fileChunk.endOfFile,le.fileChunk.endOfFile&&D){const Ce=o5(D.assembleAttachment,D.fileType);if(Ce){const Fe=new File([Ce],le.fileName,{type:Ce.type});k.push(Fe)}le.isLastFile&&te&&(te(k,le.error),k=[],te=null,K=!0),D=null}}catch(_e){te&&(te([],{errorCode:Je.INTERNAL_ERROR,message:_e}),k=[],te=null,K=!0)}else te([],{errorCode:Je.INTERNAL_ERROR,message:"data received is null"}),k=[],te=null,K=!0}function he(){return!(!me(se)||!se.supports.thirdPartyCloudStorage)}_.getDragAndDropFiles=function(le,_e){if(!_e)throw new Error("[getDragAndDropFiles] Callback cannot be null");if(le&&le!==""){if(me(se,ie.content,ie.task),!he())throw Me;if(te)throw te=null,new Error("getDragAndDropFiles cannot be called twice");te=_e,K=!0,Le(l("v2","thirdPartyCloudStorage.getDragAndDropFiles"),"thirdPartyCloudStorage.getDragAndDropFiles",[le],de)}else _e([],{errorCode:Je.INVALID_ARGUMENTS})},_.isSupported=he})(I5||(I5={}));const co="v1";function W3e(_,R){D2(l(co,"initialize"),R).then((()=>{_&&_()}))}function q3e(){Ym.enablePrintCapability()}function G3e(){Ym.print()}function K3e(_){Vd(),Le(l(co,"getContext"),"getContext",(R=>{R.frameContext||(R.frameContext=O.frameContext),_(R)}))}function Y3e(_){lK(l(co,"registerOnThemeChangeHandlerHelper"),_)}function Q3e(_){yc(l(co,"registerFullScreenHandler"),"fullScreenChange",_,[])}function X3e(_){yc(l(co,"registerAppButtonClickHandler"),"appButtonClick",_,[ie.content])}function J3e(_){yc(l(co,"registerAppButtonHoverEnterHandler"),"appButtonHoverEnter",_,[ie.content])}function Z3e(_){yc(l(co,"registerAppButtonHoverLeaveHandler"),"appButtonHoverLeave",_,[ie.content])}function ePe(_){ao.backStack.registerBackButtonHandlerHelper(l(co,"registerBackButtonHandler"),_)}function tPe(_){Ym.registerOnLoadHandlerHelper(l(co,"registerOnLoadHandler"),_)}function nPe(_){Ym.registerBeforeUnloadHandlerHelper(l(co,"registerBeforeUnloadHandler"),_)}function rPe(_){yc(l(co,"registerFocusEnterHandler"),"focusEnter",_,[])}function iPe(_){yc(l(co,"registerChangeSettingsHandler"),"changeSettings",_,[ie.content])}function oPe(_,R){me(se),pK(l(co,"getTabInstances"),R).then((k=>{_(k)}))}function sPe(_,R){me(se),mK(l(co,"getMruTabInstances"),R).then((k=>{_(k)}))}function aPe(_){gK(l(co,"shareDeepLink"),{subPageId:_.subEntityId,subPageLabel:_.subEntityLabel,subPageWebUrl:_.subEntityWebUrl})}function cPe(_,R){me(se,ie.content,ie.sidePanel,ie.settings,ie.task,ie.stage,ie.meetingStage);const k=R??ml();uK(l(co,"executeDeepLink"),_).then((()=>{k(!0)})).catch((D=>{k(!1,D.message)}))}function lPe(_){O4(l(co,"setFrameContext"),_)}function uPe(_,R,k){D2(l(co,"initializeWithFrameContext"),k).then((()=>R&&R())),O4(l(co,"setFrameContext"),_)}const G2="v1";function dPe(_){_Re(l(G2,"navigation.returnFocus"),_)}function fPe(_,R){me(se);const k=R??ml();hK(l(G2,"navigation.navigateToTab"),_).then((()=>{k(!0)})).catch((D=>{k(!1,D.message)}))}function hPe(_,R){me(se,ie.content,ie.sidePanel,ie.settings,ie.remove,ie.task,ie.stage,ie.meetingStage);const k=R??ml();dK(l(G2,"navigation.navigateCrossDomain"),_).then((()=>{k(!0)})).catch((D=>{k(!1,D.message)}))}function pPe(_){me(se);const R=_??ml();fK(l(G2,"navigation.navigateBack")).then((()=>{R(!0)})).catch((k=>{R(!1,k.message)}))}const Sw="v1";var R5;(function(_){_.setValidityState=function(R){vK(l(Sw,"settings.setValidityState"),R)},_.getSettings=function(R){me(se,ie.content,ie.settings,ie.remove,ie.sidePanel),yK(l(Sw,"settings.getSettings")).then((k=>{R(k)}))},_.setSettings=function(R,k){me(se,ie.content,ie.settings,ie.sidePanel);const D=k??ml();bK(l(Sw,"settings.setSettings"),R).then((()=>{D(!0)})).catch((K=>{D(!1,K.message)}))},_.registerOnSaveHandler=function(R){ao.config.registerOnSaveHandlerHelper(l(Sw,"settings.registerOnSaveHandler"),R)},_.registerOnRemoveHandler=function(R){ao.config.registerOnRemoveHandlerHelper(l(Sw,"settings.registerOnRemoveHandler"),R)}})(R5||(R5={}));var mPe=function(_,R){var k={};for(var D in _)Object.prototype.hasOwnProperty.call(_,D)&&R.indexOf(D)<0&&(k[D]=_[D]);if(_!=null&&typeof Object.getOwnPropertySymbols=="function"){var K=0;for(D=Object.getOwnPropertySymbols(_);K<D.length;K++)R.indexOf(D[K])<0&&Object.prototype.propertyIsEnumerable.call(_,D[K])&&(k[D[K]]=_[D[K]])}return k};const P5="v1";var O5;(function(_){function R(K){if(K.url===void 0)throw new Error("url property of taskInfo object can't be undefined");return{url:K.url,size:{height:K.height?K.height:yr.Small,width:K.width?K.width:yr.Small},title:K.title,fallbackUrl:K.fallbackUrl}}function k(K){if(K.url===void 0||K.completionBotId===void 0)throw new Error(`Both url ${K.url}
1505 and completionBotId ${K.completionBotId} are required for bot url dialog. At least one is undefined.`);return{url:K.url,size:{height:K.height?K.height:yr.Small,width:K.width?K.width:yr.Small},title:K.title,fallbackUrl:K.fallbackUrl,completionBotId:K.completionBotId}}function D(K){return K.height=K.height?K.height:yr.Small,K.width=K.width?K.width:yr.Small,K}_.startTask=function(K,te){const de=l(P5,"tasks.startTask"),he=te?le=>{var _e,Ce;return te((_e=le.err)!==null&&_e!==void 0?_e:"",(Ce=le.result)!==null&&Ce!==void 0?Ce:"")}:void 0;return K.card===void 0&&K.url===void 0||K.card?(me(se,ie.content,ie.sidePanel,ie.meetingStage),Le(de,"tasks.startTask",[K],te)):K.completionBotId!==void 0?nK(de,k(K),he):tK(de,R(K),he),new GK},_.updateTask=function(K){K=D(K);const{width:te,height:de}=K,he=mPe(K,["width","height"]);if(Object.keys(he).length)throw new Error("resize requires a TaskInfo argument containing only width and height");eK(l(P5,"tasks.updateTask"),K)},_.submitTask=function(K,te){rK(l(P5,"tasks.submitTask"),K,te)},_.getDefaultSizeIfNotProvided=D})(O5||(O5={}));const Oh="v2";var K2;(function(_){(function(R){R.guest="Guest",R.attendee="Attendee",R.presenter="Presenter",R.organizer="Organizer"})(_.UserMeetingRole||(_.UserMeetingRole={})),(function(R){R.added="Added",R.alreadyExists="AlreadyExists",R.conflict="Conflict",R.notFound="NotFound"})(_.ContainerState||(_.ContainerState={})),_.isSupported=function(){return!(!me(se,ie.meetingStage,ie.sidePanel,ie.content)||!se.supports.interactive)}})(K2||(K2={}));class N5{getFluidTenantInfo(){return Kd(),new Promise((R=>{R(en(l(Oh,"interactive.getFluidTenantInfo"),"interactive.getFluidTenantInfo"))}))}getFluidToken(R){return Kd(),new Promise((k=>{k(en(l(Oh,"interactive.getFluidToken"),"interactive.getFluidToken",R))}))}getFluidContainerId(){return Kd(),new Promise((R=>{R(en(l(Oh,"interactive.getFluidContainerId"),"interactive.getFluidContainerId"))}))}setFluidContainerId(R){return Kd(),new Promise((k=>{k(en(l(Oh,"interactive.setFluidContainerId"),"interactive.setFluidContainerId",R))}))}getNtpTime(){return Kd(),new Promise((R=>{R(en(l(Oh,"interactive.getNtpTime"),"interactive.getNtpTime"))}))}registerClientId(R){return Kd(),new Promise((k=>{k(en(l(Oh,"interactive.registerClientId"),"interactive.registerClientId",R))}))}getClientRoles(R){return Kd(),new Promise((k=>{k(en(l(Oh,"interactive.getClientRoles"),"interactive.getClientRoles",R))}))}getClientInfo(R){return Kd(),new Promise((k=>{k(en(l(Oh,"interactive.getClientInfo"),"interactive.getClientInfo",R))}))}static create(){return Kd(),new N5}}function Kd(){if(!K2.isSupported())throw new Error("LiveShareHost Not supported")}var gPe=function(_,R){var k={};for(var D in _)Object.prototype.hasOwnProperty.call(_,D)&&R.indexOf(D)<0&&(k[D]=_[D]);if(_!=null&&typeof Object.getOwnPropertySymbols=="function"){var K=0;for(D=Object.getOwnPropertySymbols(_);K<D.length;K++)R.indexOf(D[K])<0&&Object.prototype.propertyIsEnumerable.call(_,D[K])&&(k[D[K]]=_[D[K]])}return k};function Y2(_){try{return _.cartItems=JK(_.cartItems),_}catch{throw new Error("Error deserializing cart")}}function JK(_){return _.map((R=>
1505{if(R.imageURL){const k=new URL(R.imageURL);R.imageURL=k}return R.accessories&&(R.accessories=JK(R.accessories)),R}))}const ZK=_=>{try{return _.map((R=>{const{imageURL:k,accessories:D}=R,K=gPe(R,["imageURL","accessories"]),te=Object.assign({},K);return k&&(te.imageURL=k.href),D&&(te.accessories=ZK(D)),te}))}catch{throw new Error("Error serializing cart items")}};function vPe(_){if(!Array.isArray(_)||_.length===0)throw new Error("cartItems must be a non-empty array");for(const R of _)eY(R),yPe(R.accessories)}function yPe(_){if(_!=null){if(!Array.isArray(_)||_.length===0)throw new Error("CartItem.accessories must be a non-empty array");for(const R of _){if(R.accessories)throw new Error("Item in CartItem.accessories cannot have accessories");eY(R)}}}function eY(_){if(!_.id)throw new Error("cartItem.id must not be empty");if(!_.name)throw new Error("cartItem.name must not be empty");bPe(_.price),wPe(_.quantity)}function M5(_){if(_!=null){if(!_)throw new Error("id must not be empty");if(sn(_)===!1)throw new Error("id must be a valid UUID")}}function bPe(_){if(typeof _!="number"||_<0)throw new Error(`price ${_} must be a number not less than 0`);if(parseFloat(_.toFixed(3))!==_)throw new Error(`price ${_} must have at most 3 decimal places`)}function wPe(_){if(typeof _!="number"||_<=0||parseInt(_.toString())!==_)throw new Error(`quantity ${_} must be an integer greater than 0`)}function SPe(_){if(!Object.values(X2.CartStatus).includes(_))throw new Error(`cartStatus ${_} is not valid`)}const Q2="v2";var X2;(function(_){function R(){return!(!me(se)||!se.supports.marketplace)}_.cartVersion={majorVersion:1,minorVersion:1},(function(k){k.TACAdminUser="TACAdminUser",k.TeamsAdminUser="TeamsAdminUser",k.TeamsEndUser="TeamsEndUser"})(_.Intent||(_.Intent={})),(function(k){k.Open="Open",k.Processing="Processing",k.Processed="Processed",k.Closed="Closed",k.Error="Error"})(_.CartStatus||(_.CartStatus={})),_.getCart=function(){if(me(se,ie.content,ie.task),!R())throw Me;return en(l(Q2,"marketplace.getCart"),"marketplace.getCart",_.cartVersion).then(Y2)},_.addOrUpdateCartItems=function(k){if(me(se,ie.content,ie.task),!R())throw Me;if(!k)throw new Error("addOrUpdateCartItemsParams must be provided");return M5(k==null?void 0:k.cartId),vPe(k==null?void 0:k.cartItems),en(l(Q2,"marketplace.addOrUpdateCartItems"),"marketplace.addOrUpdateCartItems",Object.assign(Object.assign({},k),{cartItems:ZK(k.cartItems),cartVersion:_.cartVersion})).then(Y2)},_.removeCartItems=function(k){if(me(se,ie.content,ie.task),!R())throw Me;if(!k)throw new Error("removeCartItemsParams must be provided");if(M5(k==null?void 0:k.cartId),!Array.isArray(k==null?void 0:k.cartItemIds)||(k==null?void 0:k.cartItemIds.length)===0)throw new Error("cartItemIds must be a non-empty array");return en(l(Q2,"marketplace.removeCartItems"),"marketplace.removeCartItems",Object.assign(Object.assign({},k),{cartVersion:_.cartVersion})).then(Y2)},_.updateCartStatus=function(k){if(me(se,ie.content,ie.task),!R())throw Me;if(!k)throw new Error("updateCartStatusParams must be provided");return M5(k==null?void 0:k.cartId),SPe(k==null?void 0:k.cartStatus),en(l(Q2,"marketplace.updateCartStatus"),"marketplace.updateCartStatus",Object.assign(Object.assign({},k),{cartVersion:_.cartVersion})).then(Y2)},_.isSupported=R})(X2||(X2={}));const _w="v2";var D5;(function(_){(function(R){R.edu="EDU"})(_.AppTypes||(_.AppTypes={})),(function(R){function k(){var te;return!!(me(se)&&_.isSupported()&&(!((te=se.supports.hostEntity)===null||te===void 0)&&te.tab))}function D(te){if(!te||te.length==0)throw new Error(`Error code: ${Je.INVALID_ARGUMENTS}, message: ThreadId cannot be null or empty`)}function K(te){if(!(te!=null&&te.internalTabInstanceId)||te.internalTabInstanceId.length===0)throw new Error(`Error code: ${Je.INVALID_ARGUMENTS}, message: TabId cannot be null or empty`)}R.addAndConfigure=function(te,de){if(me(se),!k())throw new Error(`Error code: ${Je.NOT_SUPPORTED_ON_PLATFORM}, message: Not supported on platform`);if(D(te.threadId),de&&de.length===0)throw new Error(`Error code: ${Je.INVALID_ARGUMENTS}, message: App types cannot be an empty array`);return Di(l(_w,"hostEntity.tab.addAndConfigure"),"hostEntity.tab.addAndConfigure",[te,de]).then((([he])=>{var le;
1505if(dr(he))throw new Error(`Error code: ${he.errorCode}, message: ${(le=he.message)!==null&&le!==void 0?le:"None"}`);return he}))},R.getAll=function(te){if(me(se),!k())throw new Error(`Error code: ${Je.NOT_SUPPORTED_ON_PLATFORM}, message: Not supported on platform`);return D(te.threadId),Di(l(_w,"hostEntity.tab.getAll"),"hostEntity.tab.getAll",[te]).then((([de])=>{var he;if(dr(de))throw new Error(`Error code: ${de.errorCode}, message: ${(he=de.message)!==null&&he!==void 0?he:"None"}`);return de}))},R.reconfigure=function(te,de){if(me(se),!k())throw new Error(`Error code: ${Je.NOT_SUPPORTED_ON_PLATFORM}, message: Not supported on platform`);return K(te),D(de.threadId),Di(l(_w,"hostEntity.tab.reconfigure"),"hostEntity.tab.reconfigure",[te,de]).then((([he])=>{var le;if(dr(he))throw new Error(`Error code: ${he.errorCode}, message: ${(le=he.message)!==null&&le!==void 0?le:"None"}`);return he}))},R.rename=function(te,de){if(me(se),!k())throw new Error(`Error code: ${Je.NOT_SUPPORTED_ON_PLATFORM}, message: Not supported on platform`);return K(te),D(de.threadId),Di(l(_w,"hostEntity.tab.rename"),"hostEntity.tab.rename",[te,de]).then((([he])=>{var le;if(dr(he))throw new Error(`Error code: ${he.errorCode}, message: ${(le=he.message)!==null&&le!==void 0?le:"None"}`);return he}))},R.remove=function(te,de){if(me(se),!k())throw new Error(`Error code: ${Je.NOT_SUPPORTED_ON_PLATFORM}, message: Not supported on platform`);return D(de.threadId),K(te),Di(l(_w,"hostEntity.tab.remove"),"hostEntity.tab.remove",[te,de]).then((([he])=>{var le;if(dr(he))throw new Error(`Error code: ${he.errorCode}, message: ${(le=he.message)!==null&&le!==void 0?le:"None"}`);return!0}))},R.isSupported=k})(_.tab||(_.tab={})),_.isSupported=function(){return!(!me(se)||!se.supports.hostEntity)}})(D5||(D5={}))})(),s})()))})(rye);var zr=rye.exports;const Ret=5e3,Pet=()=>{const e=b.useContext(wP).teamsUserCredential;return b.useCallback(async()=>{if(e)try{const t=await Promise.race([e.getToken(""),new Promise(n=>setTimeout(()=>n(null),Ret))]);return t==null?void 0:t.token}catch(t){console.error(t),zp(t)}},[e])},Cn=()=>{const e=async n=>{const r=xP(),i=r.currentUser||await Promise.race([new Promise(s=>{const a=r.onAuthStateChanged(c=>{if(!localStorage.getItem(Vn.EXPECT_LOGIN))return a(),console.debug("No firebase login expected..."),s(c);if(c)return a(),console.debug("Firebase login expected, resolve current user..."),s(c)})}),new Promise(s=>setTimeout(()=>s(null),5e3))]);return i==null?void 0:i.getIdToken(n)},t=Pet();return b.useMemo(()=>{const n=Wi.create();return n.interceptors.request.use(async r=>{const i=await t()||localStorage.getItem(Vn.LANGFINITY_TOKEN)||await e();return i&&r.headers&&(r.headers.Authorization=`Bearer ${i}`),r}),n},[t])};
1505class CS extends Error{}CS.prototype.name="InvalidTokenError";function Oet(e){return decodeURIComponent(atob(e).replace(/(.)/g,(t,n)=>{let r=n.charCodeAt(0).toString(16).toUpperCase();return r.length<2&&(r="0"+r),"%"+r}))}function Net(e){let t=e.replace(/-/g,"+").replace(/_/g,"/");switch(t.length%4){case 0:break;case 2:t+="==";break;case 3:t+="=";break;default:throw new Error("base64 string is not of the correct length")}try{return Oet(t)}catch{return atob(t)}}function Met(e,t){if(typeof e!="string")throw new CS("Invalid token specified: must be a string");t||(t={});const n=t.header===!0?0:1,r=e.split(".")[n];if(typeof r!="string")throw new CS(`Invalid token specified: missing part #${n+1}`);let i;try{i=Net(r)}catch(o){throw new CS(`Invalid token specified: invalid base64 for part #${n+1} (${o.message})`)}try{return JSON.parse(i)}catch(o){throw new CS(`Invalid token specified: invalid json for part #${n+1} (${o.message})`)}}function TH(){return typeof window=="object"&&(window==null?void 0:window.document)!==void 0}var Det=function(){var e;if(TH()){var t=window,n=Array;if(t.Prototype!==void 0&&((e=n.prototype)===null||e===void 0?void 0:e.toJSON)!==void 0)return delete n.prototype.toJSON,!0}return!1},iye={exports:{}};(function(e){(function(t){function n(E,T){var x=(E&65535)+(T&65535),O=(E>>16)+(T>>16)+(x>>16);return O<<16|x&65535}function r(E,T){return E<<T|E>>>32-T}function i(E,T,x,O,A,L){return n(r(n(n(T,E),n(O,L)),A),x)}function o(E,T,x,O,A,L,U){return i(T&x|~T&O,E,T,A,L,U)}function s(E,T,x,O,A,L,U){return i(T&O|x&~O,E,T,A,L,U)}function a(E,T,x,O,A,L,U){return i(T^x^O,E,T,A,L,U)}function c(E,T,x,O,A,L,U){return i(x^(T|~O),E,T,A,L,U)}function l(E,T){E[T>>5]|=128<<T%32,E[(T+64>>>9<<4)+14]=T;var x,O,A,L,U,I=1732584193,F=-271733879,P=-1732584194,W=271733878;for(x=0;x<E.length;x+=16)O=I,A=F,L=P,U=W,I=o(I,F,P,W,E[x],7,-680876936),W=o(W,I,F,P,E[x+1],12,-389564586),P=o(P,W,I,F,E[x+2],17,606105819),F=o(F,P,W,I,E[x+3],22,-1044525330),I=o(I,F,P,W,E[x+4],7,-176418897),W=o(W,I,F,P,E[x+5],12,1200080426),P=o(P,W,I,F,E[x+6],17,-1473231341),F=o(F,P,W,I,E[x+7],22,-45705983),I=o(I,F,P,W,E[x+8],7,1770035416),W=o(W,I,F,P,E[x+9],12,-1958414417),P=o(P,W,I,F,E[x+10],17,-42063),F=o(F,P,W,I,E[x+11],22,-1990404162),I=o(I,F,P,W,E[x+12],7,1804603682),W=o(W,I,F,P,E[x+13],12,-40341101),P=o(P,W,I,F,E[x+14],17,-1502002290),F=o(F,P,W,I,E[x+15],22,1236535329),I=s(I,F,P,W,E[x+1],5,-165796510),W=s(W,I,F,P,E[x+6],9,-1069501632),P=s(P,W,I,F,E[x+11],14,643717713),F=s(F,P,W,I,E[x],20,-373897302),I=s(I,F,P,W,E[x+5],5,-701558691),W=s(W,I,F,P,E[x+10],9,38016083),P=s(P,W,I,F,E[x+15],14,-660478335),F=s(F,P,W,I,E[x+4],20,-405537848),I=s(I,F,P,W,E[x+9],5,568446438),W=s(W,I,F,P,E[x+14],9,-1019803690),P=s(P,W,I,F,E[x+3],14,-187363961),F=s(F,P,W,I,E[x+8],20,1163531501),I=s(I,F,P,W,E[x+13],5,-1444681467),W=s(W,I,F,P,E[x+2],9,-51403784),P=s(P,W,I,F,E[x+7],14,1735328473),F=s(F,P,W,I,E[x+12],20,-1926607734),I=a(I,F,P,W,E[x+5],4,-378558),W=a(W,I,F,P,E[x+8],11,-2022574463),P=a(P,W,I,F,E[x+11],16,1839030562),F=a(F,P,W,I,E[x+14],23,-35309556),I=a(I,F,P,W,E[x+1],4,-1530992060),W=a(W,I,F,P,E[x+4],11,1272893353),P=a(P,W,I,F,E[x+7],16,-155497632),F=a(F,P,W,I,E[x+10],23,-1094730640),I=a(I,F,P,W,E[x+13],4,681279174),W=a(W,I,F,P,E[x],11,-358537222),P=a(P,W,I,F,E[x+3],16,-722521979),F=a(F,P,W,I,E[x+6],23,76029189),I=a(I,F,P,W,E[x+9],4,-640364487),W=a(W,I,F,P,E[x+12],11,-421815835),P=a(P,W,I,F,E[x+15],16,530742520),F=a(F,P,W,I,E[x+2],23,-995338651),I=c(I,F,P,W,E[x],6,-198630844),W=c(W,I,F,P,E[x+7],10,1126891415),P=c(P,W,I,F,E[x+14],15,-1416354905),F=c(F,P,W,I,E[x+5],21,-57434055),I=c(I,F,P,W,E[x+12],6,1700485571),W=c(W,I,F,P,E[x+3],10,-1894986606),P=c(P,W,I,F,E[x+10],15,-1051523),F=c(F,P,W,I,E[x+1],21,-2054922799),I=c(I,F,P,W,E[x+8],6,1873313359),W=c(W,I,F,P,E[x+15],10,-30611744),P=c(P,W,I,F,E[x+6],15,-1560198380),F=c(F,P,W,I,E[x+13],21,1309151649),I=c(I,F,P,W,E[x+4],6,-145523070),W=c(W,I,F,P,E[x+11],10,-1120210379),P=c(P,W,I,F,E[x+2],15,718787259),F=c(F,P,W,I,E[x+9],21,-343485551),I=n(I,O),F=n(F,A),P=n(P,L),W=n(W,U);return[I,F,P,W]}function u(E){var T,x="",O=E.length*32;for(T=0;T<O;T+=8)x+=String.fromCharCode(E[T>>5]>>>T%32&255);return x}function d(E){var T,x=[];for(x[(E.length>>2)-1]=void 0,T=0;T<x.length;T+=1)x[T]=0;var O=E.length*8;for(T=0;T<O;T+=8)x[T>>
15055]|=(E.charCodeAt(T/8)&255)<<T%32;return x}function f(E){return u(l(d(E),E.length*8))}function p(E,T){var x,O=d(E),A=[],L=[],U;for(A[15]=L[15]=void 0,O.length>16&&(O=l(O,E.length*8)),x=0;x<16;x+=1)A[x]=O[x]^909522486,L[x]=O[x]^1549556828;return U=l(A.concat(d(T)),512+T.length*8),u(l(L.concat(U),640))}function g(E){var T="0123456789abcdef",x="",O,A;for(A=0;A<E.length;A+=1)O=E.charCodeAt(A),x+=T.charAt(O>>>4&15)+T.charAt(O&15);return x}function m(E){return unescape(encodeURIComponent(E))}function y(E){return f(m(E))}function v(E){return g(y(E))}function w(E,T){return p(m(E),m(T))}function S(E,T){return g(w(E,T))}function C(E,T,x){return T?x?w(T,E):S(T,E):x?y(E):v(E)}e.exports?e.exports=C:t.md5=C})(Tf)})(iye);var Let=iye.exports;const Fet=io(Let),oye="%[a-f0-9]{2}",mee=new RegExp("("+oye+")|([^%]+?)","gi"),gee=new RegExp("("+oye+")+","gi");function a7(e,t){try{return[decodeURIComponent(e.join(""))]}catch{}if(e.length===1)return e;t=t||1;const n=e.slice(0,t),r=e.slice(t);return Array.prototype.concat.call([],a7(n),a7(r))}function jet(e){try{return decodeURIComponent(e)}catch{let t=e.match(mee)||[];for(let n=1;n<t.length;n++)e=a7(t,n).join(""),t=e.match(mee)||[];return e}}function Uet(e){const t={"%FE%FF":"��","%FF%FE":"��"};let n=gee.exec(e);for(;n;){try{t[n[0]]=decodeURIComponent(n[0])}catch{const i=jet(n[0]);i!==n[0]&&(t[n[0]]=i)}n=gee.exec(e)}t["%C2"]="�";const r=Object.keys(t);for(const i of r)e=e.replace(new RegExp(i,"g"),t[i]);return e}function Bet(e){if(typeof e!="string")throw new TypeError("Expected `encodedURI` to be of type `string`, got `"+typeof e+"`");try{return decodeURIComponent(e)}catch{return Uet(e)}}function sye(e,t){if(!(typeof e=="string"&&typeof t=="string"))throw new TypeError("Expected the arguments to be of type `string`");if(e===""||t==="")return[];const n=e.indexOf(t);return n===-1?[]:[e.slice(0,n),e.slice(n+t.length)]}function $et(e,t){const n={};if(Array.isArray(t))for(const r of t){const i=Object.getOwnPropertyDescriptor(e,r);i!=null&&i.enumerable&&Object.defineProperty(n,r,i)}else for(const r of Reflect.ownKeys(e)){const i=Object.getOwnPropertyDescriptor(e,r);if(i.enumerable){const o=e[r];t(r,o,e)&&Object.defineProperty(n,r,i)}}return n}const Het=e=>e==null,zet=e=>encodeURIComponent(e).replace(/[!'()*]/g,t=>`%${t.charCodeAt(0).toString(16).toUpperCase()}`),c7=Symbol("encodeFragmentIdentifier");function Vet(e){switch(e.arrayFormat){case"index":return t=>(n,r)=>{const i=n.length;return r===void 0||e.skipNull&&r===null||e.skipEmptyString&&r===""?n:r===null?[...n,[Yi(t,e),"[",i,"]"].join("")]:[...n,[Yi(t,e),"[",Yi(i,e),"]=",Yi(r,e)].join("")]};case"bracket":return t=>(n,r)=>r===void 0||e.skipNull&&r===null||e.skipEmptyString&&r===""?n:r===null?[...n,[Yi(t,e),"[]"].join("")]:[...n,[Yi(t,e),"[]=",Yi(r,e)].join("")];case"colon-list-separator":return t=>(n,r)=>r===void 0||e.skipNull&&r===null||e.skipEmptyString&&r===""?n:r===null?[...n,[Yi(t,e),":list="].join("")]:[...n,[Yi(t,e),":list=",Yi(r,e)].join("")];case"comma":case"separator":case"bracket-separator":{const t=e.arrayFormat==="bracket-separator"?"[]=":"=";return n=>(r,i)=>i===void 0||e.skipNull&&i===null||e.skipEmptyString&&i===""?r:(i=i===null?"":i,r.length===0?[[Yi(n,e),t,Yi(i,e)].join("")]:[[r,Yi(i,e)].join(e.arrayFormatSeparator)])}default:return t=>(n,r)=>r===void 0||e.skipNull&&r===null||e.skipEmptyString&&r===""?n:r===null?[...n,Yi(t,e)]:[...n,[Yi(t,e),"=",Yi(r,e)].join("")]}}function Wet(e){let t;switch(e.arrayFormat){case"index":return(n,r,i)=>{if(t=/\[(\d*)]$/.exec(n),n=n.replace(/\[\d*]$/,""),!t){i[n]=r;return}i[n]===void 0&&(i[n]={}),i[n][t[1]]=r};case"bracket":return(n,r,i)=>{if(t=/(\[])$/.exec(n),n=n.replace(/\[]$/,""),!t){i[n]=r;return}if(i[n]===void 0){i[n]=[r];return}i[n]=[...i[n],r]};case"colon-list-separator":return(n,r,i)=>{if(t=/(:list)$/.exec(n),n=n.replace(/:list$/,""),!t){i[n]=r;return}if(i[n]===void 0){i[n]=[r];return}i[n]=[...i[n],r]};case"comma":case"separator":return(n,r,i)=>{const o=typeof r=="string"&&r.includes(e.arrayFormatSeparator),s=typeof r=="string"&&!o&&pf(r,e).includes(e.arrayFormatSeparator);r=s?pf(r,e):r;const a=o||s?r.split(e.arrayFormatSeparator).map(c=>pf(c,e)):r===null?r:pf(r,e);i[n]=a};case"bracket-separator":return(n,r,i)=>{const o=/(\[])$/.test(n);if(n=n.replace(/\[]$/,""),!o){i[n]=r&&pf(r,e);return}const s=r===null?[]:r.split(e.arrayFormatSeparator).map(a=>pf(a,e));if(i[n]===void 0){i[n]=s;return}i[n]=[...i[n],...s]};default:return(n,r,i)=>{if(i[n]===void 0){i[n]=r;return}i[n]=[...[i[n]].flat(),r]}}}function aye(e){if(typeof e!="string"||e.length!==1)throw new TypeError("arrayFormatSeparator must be single character string")}function Yi(e,t){return t.encode?t.strict?zet(e):encodeURIComponent(e):e}function pf(e,t){return t.decode?Bet(e):e}function cye(e){return Array.isArray(e)?e.sort():typeof e=="object"?cye(Object.keys(e)).sort((t,n)=>Number(t)-Number(n)).map(t=>e[t]):e}function lye(e){const t=e.indexOf("#");return t!==-1&&(e=e.slice(0,t)),e}function qet(e){let t="";const n=e.indexOf("#");return n!==-1&&(t=e.slice(n)),t}function vee(e,t){return t.parseNumbers&&!Number.isNaN(Number(e))&&typeof e=="string"&&e.trim()!==""?e=Number(e):t.parseBooleans&&e!==null&&(e.toLowerCase()==="true"||e.toLowerCase()==="false")&&(e=e.toLowerCase()==="true"),e}function kH(e){e=lye(e);const t=e.indexOf("?");return t===-1?"":e.slice(t+1)}
1505function xH(e,t){t={decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1,...t},aye(t.arrayFormatSeparator);const n=Wet(t),r=Object.create(null);if(typeof e!="string"||(e=e.trim().replace(/^[?#&]/,""),!e))return r;for(const i of e.split("&")){if(i==="")continue;const o=t.decode?i.replace(/\+/g," "):i;let[s,a]=sye(o,"=");s===void 0&&(s=o),a=a===void 0?null:["comma","separator","bracket-separator"].includes(t.arrayFormat)?a:pf(a,t),n(pf(s,t),a,r)}for(const[i,o]of Object.entries(r))if(typeof o=="object"&&o!==null)for(const[s,a]of Object.entries(o))o[s]=vee(a,t);else r[i]=vee(o,t);return t.sort===!1?r:(t.sort===!0?Object.keys(r).sort():Object.keys(r).sort(t.sort)).reduce((i,o)=>{const s=r[o];return s&&typeof s=="object"&&!Array.isArray(s)?i[o]=cye(s):i[o]=s,i},Object.create(null))}function uye(e,t){if(!e)return"";t={encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:",",...t},aye(t.arrayFormatSeparator);const n=s=>t.skipNull&&Het(e[s])||t.skipEmptyString&&e[s]==="",r=Vet(t),i={};for(const[s,a]of Object.entries(e))n(s)||(i[s]=a);const o=Object.keys(i);return t.sort!==!1&&o.sort(t.sort),o.map(s=>{const a=e[s];return a===void 0?"":a===null?Yi(s,t):Array.isArray(a)?a.length===0&&t.arrayFormat==="bracket-separator"?Yi(s,t)+"[]":a.reduce(r(s),[]).join("&"):Yi(s,t)+"="+Yi(a,t)}).filter(s=>s.length>0).join("&")}function dye(e,t){var i;t={decode:!0,...t};let[n,r]=sye(e,"#");return n===void 0&&(n=e),{url:((i=n==null?void 0:n.split("?"))==null?void 0:i[0])??"",query:xH(kH(e),t),...t&&t.parseFragmentIdentifier&&r?{fragmentIdentifier:pf(r,t)}:{}}}function fye(e,t){t={encode:!0,strict:!0,[c7]:!0,...t};const n=lye(e.url).split("?")[0]||"",r=kH(e.url),i={...xH(r,{sort:!1}),...e.query};let o=uye(i,t);o&&(o=`?${o}`);let s=qet(e.url);if(e.fragmentIdentifier){const a=new URL(n);a.hash=e.fragmentIdentifier,s=t[c7]?a.hash:`#${e.fragmentIdentifier}`}return`${n}${o}${s}`}function hye(e,t,n){n={parseFragmentIdentifier:!0,[c7]:!1,...n};const{url:r,query:i,fragmentIdentifier:o}=dye(e,n);return fye({url:r,query:$et(i,t),fragmentIdentifier:o},n)}function Get(e,t,n){const r=Array.isArray(t)?i=>!t.includes(i):(i,o)=>!t(i,o);return hye(e,r,n)}const s6=Object.freeze(Object.defineProperty({__proto__:null,exclude:Get,extract:kH,parse:xH,parseUrl:dye,pick:hye,stringify:uye,stringifyUrl:fye},Symbol.toStringTag,{value:"Module"}));var l7={exports:{}};(function(e,t){(function(n,r){var i="0.7.33",o="",s="?",a="function",c="undefined",l="object",u="string",d="major",f="model",p="name",g="type",m="vendor",y="version",v="architecture",w="console",S="mobile",C="tablet",E="smarttv",T="wearable",x="embedded",O=350,A="Amazon",L="Apple",U="ASUS",I="BlackBerry",F="Browser",P="Chrome",W="Edge",ee="Firefox",Y="Google",X="Huawei",Z="LG",G="Microsoft",Q="Motorola",q="Opera",z="Samsung",ue="Sharp",ge="Sony",ae="Xiaomi",j="Zebra",B="Facebook",re=function(we,Ee){var xe={};for(var ve in we)Ee[ve]&&Ee[ve].length%2===0?xe[ve]=Ee[ve].concat(we[ve]):xe[ve]=we[ve];return xe},oe=function(we){for(var Ee={},xe=0;xe<we.length;xe++)Ee[we[xe].toUpperCase()]=we[xe];return Ee},ne=function(we,Ee){return typeof we===u?J(Ee).indexOf(J(we))!==-1:!1},J=function(we){return we.toLowerCase()},Se=function(we){return typeof we===u?we.replace(/[^\d\.]/g,o).split(".")[0]:r},H=function(we,Ee){if(typeof we===u)return we=we.replace(/^\s\s*/,o),typeof Ee===c?we:we.substring(0,O)},be=function(we,Ee){for(var xe=0,ve,ke,He,Ge,vt,Lt;xe<Ee.length&&!vt;){var $t=Ee[xe],Yt=Ee[xe+1];for(ve=ke=0;ve<$t.length&&!vt;)if(vt=$t[ve++].exec(we),vt)for(He=0;He<Yt.length;He++)Lt=vt[++ke],Ge=Yt[He],typeof Ge===l&&Ge.length>0?Ge.length===2?typeof Ge[1]==a?this[Ge[0]]=Ge[1].call(this,Lt):this[Ge[0]]=Ge[1]:Ge.length===3?typeof Ge[1]===a&&!(Ge[1].exec&&Ge[1].test)?this[Ge[0]]=Lt?Ge[1].call(this,Lt,Ge[2]):r:this[Ge[0]]=Lt?Lt.replace(Ge[1],Ge[2]):r:Ge.length===4&&(this[Ge[0]]=Lt?Ge[3].call(this,Lt.replace(Ge[1],Ge[2])):r):this[Ge]=Lt||r;xe+=2}},V=function(we,Ee){for(var xe in Ee)if(typeof Ee[xe]===l&&Ee[xe].length>0){for(var ve=0;ve<Ee[xe].length;ve++)if(ne(Ee[xe][ve],we))return xe===s?r:xe}else if(ne(Ee[xe],we))return xe===s?r:xe;return we},M={"1.0":"/8",1.2:"/1",1.3:"/3","2.0":"/412","2.0.2":"/416","2.0.3":"/417","2.0.4":"/419","?":"/"},N={ME:"4.90","NT 3.11":"NT3.51","NT 4.0":"NT4.0",2e3:"NT 5.0",XP:["NT 5.1","NT 5.2"],Vista:"NT 6.0",7:"NT 6.1",8:"NT 6.2",8.1:"NT 6.3",10:["NT 6.4","NT 10.0"],RT:"ARM"},$={browser:[[/\b(?:crmo|crios)\/([\w\.]+)/i],[y,[p,"Chrome"]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[y,[p,"Edge"]],[/(opera mini)\/([-\w\.]+)/i,/(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i,/(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i],[p,y],[/opios[\/ ]+([\w\.]+)/i],[y,[p,q+" Mini"]],[/\bopr\/([\w\.]+)/i],[y,[p,q]],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer)[\/ ]?([\w\.]*)/i,/(avant |iemobile|slim)(?:browser)?[\/ ]?([\w\.]*)/i,/(ba?idubrowser)[\/ ]?([\w\.]+)/i,/(?:ms|\()(ie) ([\w\.]+)/i,/(flock|rockmelt|midori|epiphany|silk|skyfire|ovibrowser|bolt|iron|vivaldi|iridium|phantomjs|bowser|quark|qupzilla|falkon|rekonq|puffin|brave|whale|qqbrowserlite|qq|duckduckgo)\/([-\w\.]+)/i,/(weibo)__([\d\.]+)/i],[p,y],[/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i],[y,[p,"UC"+F]],[/microm.+\bqbcore\/([\w\.]+)/i,/\bqbcore\/([\w\.]+).+microm/i],[y,[p,"WeChat(Win) Desktop"]],[/micromessenger\/([\w\.]+)/i],[y,[p,"WeChat"]],[/konqueror\/([\w\.]+)/i],[y,[p,"Konqueror"]],[/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i],[y,[p,"IE"]],[/yabrowser\/([\w\.]+)/i],[y,[p,"Yandex"]],[/(avast|avg)\/([\w\.]+)/i],[[p,/(.+)/,"$1 Secure "+F],y],[/\bfocus\/([\w\.]+)/i],[y,[p,ee+" Focus"]],[/\bopt\/([\w\.]+)/i],[y,[p,q+" Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[y,[p,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[y,[p,"Dolphin"]],[/coast\/([\w\.]+)/i],[y,[p,q+" Coast"]],[/miuibrowser\/([\w\.]+)/i],[y,[p,"MIUI "+F]],[/fxios\/([-\w\.]+)/i],[y,[p,ee]],[/\bqihu|(qi?ho?o?|360)browser/i],[[p,"360 "+F]],[/(oculus|samsung|sailfish|huawei)browser\/([\w\.]+)/i],[[p,/(.+)/,"$1 "+F],y],[/(comodo_dragon)\/([\w\.]+)/i],[[p,/_/g," "],y],[/(electron)\/([\w\.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i,/m?(qqbrowser|baiduboxapp|2345Explorer)[\/ ]?([\w\.]+)/i],[p,y],[/(metasr)[\/ ]?([\w\.]+)/i,/(lbbrowser)/i,/\[(linkedin)app\]/i],[p],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i],[[p,B],y],[/safari (line)\/([\w\.]+)/i,/\b(line)\/([\w\.]+)\/iab/i,/(chromium|instagram)[\/ ]([-\w\.]+)/i],[p,y],[/\bgsa\/([\w\.]+) .*safari\//i],[y,[p,"GSA"]],[/headlesschrome(?:\/([\w\.]+)| )/i],[y,[p,P+" Headless"]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[p,P+" WebView"],y],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[y,[p,"Android "+F]],[/(chrome|omniweb|arora|[t
vendor: 4,754 bytes, line 1505
1505izenoka]{5} ?browser)\/v?([\w\.]+)/i],[p,y],[/version\/([\w\.\,]+) .*mobile\/\w+ (safari)/i],[y,[p,"Mobile Safari"]],[/version\/([\w(\.|\,)]+) .*(mobile ?safari|safari)/i],[y,p],[/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i],[p,[y,V,M]],[/(webkit|khtml)\/([\w\.]+)/i],[p,y],[/(navigator|netscape\d?)\/([-\w\.]+)/i],[[p,"Netscape"],y],[/mobile vr; rv:([\w\.]+)\).+firefox/i],[y,[p,ee+" Reality"]],[/ekiohf.+(flow)\/([\w\.]+)/i,/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror|klar)[\/ ]?([\w\.\+]+)/i,/(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([-\w\.]+)$/i,/(firefox)\/([\w\.]+)/i,/(mozilla)\/([\w\.]+) .+rv\:.+gecko\/\d+/i,/(polaris|lynx|dillo|icab|doris|amaya|w3m|netsurf|sleipnir|obigo|mosaic|(?:go|ice|up)[\. ]?browser)[-\/ ]?v?([\w\.]+)/i,/(links) \(([\w\.]+)/i],[p,y],[/(cobalt)\/([\w\.]+)/i],[p,[y,/master.|lts./,""]]],cpu:[[/(?:(amd|x(?:(?:86|64)[-_])?|wow|win)64)[;\)]/i],[[v,"amd64"]],[/(ia32(?=;))/i],[[v,J]],[/((?:i[346]|x)86)[;\)]/i],[[v,"ia32"]],[/\b(aarch64|arm(v?8e?l?|_?64))\b/i],[[v,"arm64"]],[/\b(arm(?:v[67])?ht?n?[fl]p?)\b/i],[[v,"armhf"]],[/windows (ce|mobile); ppc;/i],[[v,"arm"]],[/((?:ppc|powerpc)(?:64)?)(?: mac|;|\))/i],[[v,/ower/,o,J]],[/(sun4\w)[;\)]/i],[[v,"sparc"]],[/((?:avr32|ia64(?=;))|68k(?=\))|\barm(?=v(?:[1-7]|[5-7]1)l?|;|eabi)|(?=atmel )avr|(?:irix|mips|sparc)(?:64)?\b|pa-risc)/i],[[v,J]]],device:[[/\b(sch-i[89]0\d|shw-m380s|sm-[ptx]\w{2,4}|gt-[pn]\d{2,4}|sgh-t8[56]9|nexus 10)/i],[f,[m,z],[g,C]],[/\b((?:s[cgp]h|gt|sm)-\w+|galaxy nexus)/i,/samsung[- ]([-\w]+)/i,/sec-(sgh\w+)/i],[f,[m,z],[g,S]],[/((ipod|iphone)\d+,\d+)/i],[f,[m,L],[g,S]],[/(ipad\d+,\d+)/i],[f,[m,L],[g,C]],[/\((ip(?:hone|od)[\w ]*);/i],[f,[m,L],[g,S]],[/\((ipad);[-\w\),; ]+apple/i,/applecoremedia\/[\w\.]+ \((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[f,[m,L],[g,C]],[/(macintosh);/i],[f,[m,L]],[/\b((?:ag[rs][23]?|bah2?|sht?|btv)-a?[lw]\d{2})\b(?!.+d\/s)/i],[f,[m,X],[g,C]],[/(?:huawei|honor)([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i],[f,[m,X],[g,S]],[/\b(poco[\w ]+)(?: bui|\))/i,/\b; (\w+) build\/hm\1/i,/\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i,/\b(redmi[\-_ ]?(?:note|k)?[\w_ ]+)(?: bui|\))/i,/\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note lte|max|cc)?[_ ]?(?:\d?\w?)[_ ]?(?:plus|se|lite)?)(?: bui|\))/i],[[f,/_/g," "],[m,ae],[g,S]],[/\b(mi[-_ ]?(?:pad)(?:[\w_ ]+))(?: bui|\))/i],[[f,/_/g," "],[m,ae],[g,C]],[/; (\w+) bui.+ oppo/i,/\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i],[f,[m,"OPPO"],[g,S]],[/vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[f,[m,"Vivo"],[g,S]],[/\b(rmx[12]\d{3})(?: bui|;|\))/i],[f,[m,"Realme"],[g,S]],[/\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\b[\w ]+build\//i,/\bmot(?:orola)?[- ](\w*)/i,/((?:moto[\w\(\) ]+|xt\d{3,4}|nexus 6)(?= bui|\)))/i],[f,[m,Q],[g,S]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[f,[m,Q],[g,C]],[/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[f,[m,Z],[g,C]],[/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i,/\blg[-e;\/ ]+((?!browser|netcast|android tv)\w+)/i,/\blg-?([\d\w]+) bui/i],[f,[m,Z],[g,S]],[/(ideatab[-\w ]+)/i,/lenovo ?(s[56]000[-\w]+|tab(?:[\w ]+)|yt[-\d\w]{6}|tb[-\d\w]{6})/i],[f,[m,"Lenovo"],[g,C]],[/(?:maemo|nokia).*(n900|lumia \d+)/i,/nokia[-_ ]?([-\w\.]*)/i],[[f,/_/g," "],[m,"Nokia"],[g,S]],[/(pixel c)\b/i],[f,[m,Y],[g,C]],[/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i],[f,[m,Y],[g,S]],[/droid.+ (a?\d[0-2]{2}so|[c-g]\d{4}|so[-gl]\w+|xq-a\w[4-7][12])(?= bui|\).+chrome\/(?![1-6]{0,1}\d\.))/i],[f,[m,ge],[g,S]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[f,"Xperia Tablet"],[m,ge],[g,C]],[/ (kb2005|in20[12]5|be20[12][59])\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[f,[m,"OnePlus"],[g,S]],[/(alexa)webm/i,/(kf[a-z]{2}wi)( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[f,[m,A],[g,C]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[f,/(.+)/g,"Fire Phone $1"],[m,A],[g,S]],[/(playbook);[-\w\),; ]+(rim)/i],[f,m,[g,C]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10; (\w+)/i],[f,[m,I],[g,S]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[f,[m,U],[g,C]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[f,[m,U],[g,S]],[/(nexus 9)/i],[f,[m,"HTC"],[g,C]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic|sony(?!-bra))[-_ ]?([-\w]*)/i],[m,[f,/_/g," "],[g,S]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[f,[m,"Acer"],[g,C]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[f,[m,"Meizu"],[g,S]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[f,[m,ue],[g,S]],[/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus|dell|meizu|motorola|polytron)[-_ ]?([-\w]*)/i,/(hp) ([\w ]+\w)/i,/(asu
vendor: 5,617 bytes, line 1505
1505s)-?(\w+)/i,/(microsoft); (lumia[\w ]+)/i,/(lenovo)[-_ ]?([-\w]+)/i,/(jolla)/i,/(oppo) ?([\w ]+) bui/i],[m,f,[g,S]],[/(archos) (gamepad2?)/i,/(hp).+(touchpad(?!.+tablet)|tablet)/i,/(kindle)\/([\w\.]+)/i,/(nook)[\w ]+build\/(\w+)/i,/(dell) (strea[kpr\d ]*[\dko])/i,/(le[- ]+pan)[- ]+(\w{1,9}) bui/i,/(trinity)[- ]*(t\d{3}) bui/i,/(gigaset)[- ]+(q\w{1,9}) bui/i,/(vodafone) ([\w ]+)(?:\)| bui)/i],[m,f,[g,C]],[/(surface duo)/i],[f,[m,G],[g,C]],[/droid [\d\.]+; (fp\du?)(?: b|\))/i],[f,[m,"Fairphone"],[g,S]],[/(u304aa)/i],[f,[m,"AT&T"],[g,S]],[/\bsie-(\w*)/i],[f,[m,"Siemens"],[g,S]],[/\b(rct\w+) b/i],[f,[m,"RCA"],[g,C]],[/\b(venue[\d ]{2,7}) b/i],[f,[m,"Dell"],[g,C]],[/\b(q(?:mv|ta)\w+) b/i],[f,[m,"Verizon"],[g,C]],[/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i],[f,[m,"Barnes & Noble"],[g,C]],[/\b(tm\d{3}\w+) b/i],[f,[m,"NuVision"],[g,C]],[/\b(k88) b/i],[f,[m,"ZTE"],[g,C]],[/\b(nx\d{3}j) b/i],[f,[m,"ZTE"],[g,S]],[/\b(gen\d{3}) b.+49h/i],[f,[m,"Swiss"],[g,S]],[/\b(zur\d{3}) b/i],[f,[m,"Swiss"],[g,C]],[/\b((zeki)?tb.*\b) b/i],[f,[m,"Zeki"],[g,C]],[/\b([yr]\d{2}) b/i,/\b(dragon[- ]+touch |dt)(\w{5}) b/i],[[m,"Dragon Touch"],f,[g,C]],[/\b(ns-?\w{0,9}) b/i],[f,[m,"Insignia"],[g,C]],[/\b((nxa|next)-?\w{0,9}) b/i],[f,[m,"NextBook"],[g,C]],[/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i],[[m,"Voice"],f,[g,S]],[/\b(lvtel\-)?(v1[12]) b/i],[[m,"LvTel"],f,[g,S]],[/\b(ph-1) /i],[f,[m,"Essential"],[g,S]],[/\b(v(100md|700na|7011|917g).*\b) b/i],[f,[m,"Envizen"],[g,C]],[/\b(trio[-\w\. ]+) b/i],[f,[m,"MachSpeed"],[g,C]],[/\btu_(1491) b/i],[f,[m,"Rotor"],[g,C]],[/(shield[\w ]+) b/i],[f,[m,"Nvidia"],[g,C]],[/(sprint) (\w+)/i],[m,f,[g,S]],[/(kin\.[onetw]{3})/i],[[f,/\./g," "],[m,G],[g,S]],[/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[f,[m,j],[g,C]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[f,[m,j],[g,S]],[/(ouya)/i,/(nintendo) ([wids3utch]+)/i],[m,f,[g,w]],[/droid.+; (shield) bui/i],[f,[m,"Nvidia"],[g,w]],[/(playstation [345portablevi]+)/i],[f,[m,ge],[g,w]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[f,[m,G],[g,w]],[/smart-tv.+(samsung)/i],[m,[g,E]],[/hbbtv.+maple;(\d+)/i],[[f,/^/,"SmartTV"],[m,z],[g,E]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[m,Z],[g,E]],[/(apple) ?tv/i],[m,[f,L+" TV"],[g,E]],[/crkey/i],[[f,P+"cast"],[m,Y],[g,E]],[/droid.+aft(\w)( bui|\))/i],[f,[m,A],[g,E]],[/\(dtv[\);].+(aquos)/i,/(aquos-tv[\w ]+)\)/i],[f,[m,ue],[g,E]],[/(bravia[\w ]+)( bui|\))/i],[f,[m,ge],[g,E]],[/(mitv-\w{5}) bui/i],[f,[m,ae],[g,E]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w ]*; *(\w[^;]*);([^;]*)/i],[[m,H],[f,H],[g,E]],[/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i],[[g,E]],[/((pebble))app/i],[m,f,[g,T]],[/droid.+; (glass) \d/i],[f,[m,Y],[g,T]],[/droid.+; (wt63?0{2,3})\)/i],[f,[m,j],[g,T]],[/(quest( 2)?)/i],[f,[m,B],[g,T]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[m,[g,x]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+? mobile safari/i],[f,[g,S]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i],[f,[g,C]],[/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i],[[g,C]],[/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i],[[g,S]],[/(android[-\w\. ]{0,9});.+buil/i],[f,[m,"Generic"]]],engine:[[/windows.+ edge\/([\w\.]+)/i],[y,[p,W+"HTML"]],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[y,[p,"Blink"]],[/(presto)\/([\w\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna)\/([\w\.]+)/i,/ekioh(flow)\/([\w\.]+)/i,/(khtml|tasman|links)[\/ ]\(?([\w\.]+)/i,/(icab)[\/ ]([23]\.[\d\.]+)/i],[p,y],[/rv\:([\w\.]{1,9})\b.+(gecko)/i],[y,p]],os:[[/microsoft (windows) (vista|xp)/i],[p,y],[/(windows) nt 6\.2; (arm)/i,/(windows (?:phone(?: os)?|mobile))[\/ ]?([\d\.\w ]*)/i,/(windows)[\/ ]?([ntce\d\. ]+\w)(?!.+xbox)/i],[p,[y,V,N]],[/(win(?=3|9|n)|win 9x )([nt\d\.]+)/i],[[p,"Windows"],[y,V,N]],[/ip[honead]{2,4}\b(?:.*os ([\w]+) like mac|; opera)/i,/cfnetwork\/.+darwin/i],[[y,/_/g,"."],[p,"iOS"]],[/(mac os x) ?([\w\. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+haiku)/i],[[p,"Mac OS"],[y,/_/g,"."]],[/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i],[y,p],[/(android|webos|qnx|bada|rim tablet os|maemo|meego|sailfish)[-\/ ]?([\w\.]*)/i,/(blackberry)\w*\/([\w\.]*)/i,/(tizen|kaios)[\/ ]([\w\.]+)/i,/\((series40);/i],[p,y],[/\(bb(10);/i],[y,[p,I]],[/(?:symbian ?os|symbos|s60(?=;)|series60)[-\/ ]?([\w\.]*)/i],[y,[p,"Symbian"]],[/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i],[y,[p,ee+" OS"]],[/web0s;.+rt(tv)/i,/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i],[y,[p,"webOS"]],[/crkey\/([\d\.]+)/i],[y,[p,P+"cast"]],[/(cros) [\w]+ ([\w\.]+\w)/i],[[p,"Chromium OS"],y],[/(nintendo|playstation) ([wids345portablevuch]+)/i,/(xbox); +xbox ([^\);]+)/i,/\b(joli|palm)\b ?(?:os)?\/?([\w\.]*)/i,/(mint)[\/\(\) ]?(\w*)/i,/(mageia|vectorlinux)[; ]/i,/([kxln]?ubuntu|debian|suse|opensuse|gentoo|arch(?= linux)|slackware|fedora|mandriva|centos|pclinuxos|red ?hat|zenwalk|linpus|raspbian|plan 9|minix|risc os|contiki|deepin|manjaro|elementary os|sabayon|linspire)(?: gnu\/linux)?(?: enterprise)?(?:[- ]linux)?(?:-gnu)?[-\/ ]?(?!chrom|package)([-\w\.]*)/i,/(hurd|linux) ?([\w\.]*)/i,/(gnu) ?([\w\.]*)/i,/\b([-frentopcghs]{0,5}bsd|dragonfly)[\/ ]?(?!amd|[ix346]{1,2}86)([\w\.]*)/i,/(haiku) (\w+)/i],[p,y],[/(sunos) ?([\w\.\d]*)/i],[[p,"Solaris"],y],[/((?:open)?solaris)[-\/ ]?([\w\.]*)/i,/(aix) ((\d)(?=\.|\)| )[\w\.])*/i,/\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux)/i,/(unix) ?([\w\.]*)/i],[p,y]]},ce=function(we,Ee){if(typeof we===l&&(Ee=we,we=r),!(this instanceof ce))return new ce(we,Ee).getResult();var xe=we||(typeof n!==c&&n.navigator&&n.navigator.userAgent?n.navigator.userAgent:o),ve=Ee?re($,
vendor: 4,875 bytes, line 1505
1505Ee):$;return this.getBrowser=function(){var ke={};return ke[p]=r,ke[y]=r,be.call(ke,xe,ve.browser),ke.major=Se(ke.version),ke},this.getCPU=function(){var ke={};return ke[v]=r,be.call(ke,xe,ve.cpu),ke},this.getDevice=function(){var ke={};return ke[m]=r,ke[f]=r,ke[g]=r,be.call(ke,xe,ve.device),ke},this.getEngine=function(){var ke={};return ke[p]=r,ke[y]=r,be.call(ke,xe,ve.engine),ke},this.getOS=function(){var ke={};return ke[p]=r,ke[y]=r,be.call(ke,xe,ve.os),ke},this.getResult=function(){return{ua:this.getUA(),browser:this.getBrowser(),engine:this.getEngine(),os:this.getOS(),device:this.getDevice(),cpu:this.getCPU()}},this.getUA=function(){return xe},this.setUA=function(ke){return xe=typeof ke===u&&ke.length>O?H(ke,O):ke,this},this.setUA(xe),this};ce.VERSION=i,ce.BROWSER=oe([p,y,d]),ce.CPU=oe([v]),ce.DEVICE=oe([f,m,g,w,S,E,C,T,x]),ce.ENGINE=ce.OS=oe([p,y]),e.exports&&(t=e.exports=ce),t.UAParser=ce;var pe=typeof n!==c&&(n.jQuery||n.Zepto);if(pe&&!pe.ua){var fe=new ce;pe.ua=fe.getResult(),pe.ua.get=function(){return fe.getUA()},pe.ua.set=function(we){fe.setUA(we);var Ee=fe.getResult();for(var xe in Ee)pe.ua[xe]=Ee[xe]}}})(typeof window=="object"?window:Tf)})(l7,l7.exports);var Ket=l7.exports;const Yet=io(Ket);var Qet=(function(){function e(){}return e.prototype.getApplicationContext=function(){return{versionName:this.versionName,language:Xet(),platform:"Web",os:void 0,deviceModel:void 0}},e})(),Xet=function(){return typeof navigator<"u"&&(navigator.languages&&navigator.languages[0]||navigator.language)||""},Jet=(function(){function e(){this.queue=[]}return e.prototype.logEvent=function(t){this.receiver?this.receiver(t):this.queue.length<512&&this.queue.push(t)},e.prototype.setEventReceiver=function(t){this.receiver=t,this.queue.length>0&&(this.queue.forEach(function(n){t(n)}),this.queue=[])},e})(),ip=function(){return ip=Object.assign||function(t){for(var n,r=1,i=arguments.length;r<i;r++){n=arguments[r];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t},ip.apply(this,arguments)};function Bx(e){var t=typeof Symbol=="function"&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function yee(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,o=[],s;try{for(;(t===void 0||t-- >0)&&!(i=r.next()).done;)o.push(i.value)}catch(a){s={error:a}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(s)throw s.error}}return o}var $x=function(e,t){var n,r,i=["string","number","boolean","undefined"],o=typeof e,s=typeof t;if(o!==s)return!1;try{for(var a=Bx(i),c=a.next();!c.done;c=a.next()){var l=c.value;if(l===o)return e===t}}catch(y){n={error:y}}finally{try{c&&!c.done&&(r=a.return)&&r.call(a)}finally{if(n)throw n.error}}if(e==null&&t==null)return!0;if(e==null||t==null||e.length!==t.length)return!1;var u=Array.isArray(e),d=Array.isArray(t);if(u!==d)return!1;if(u&&d){for(var f=0;f<e.length;f++)if(!$x(e[f],t[f]))return!1}else{var p=Object.keys(e).sort(),g=Object.keys(t).sort();if(!$x(p,g))return!1;var m=!0;return Object.keys(e).forEach(function(y){$x(e[y],t[y])||(m=!1)}),m}return!0},Zet="$set",ett="$unset",ttt="$clearAll";Object.entries||(Object.entries=function(e){for(var t=Object.keys(e),n=t.length,r=new Array(n);n--;)r[n]=[t[n],e[t[n]]];return r});var ntt=(function(){function e(){this.identity={userProperties:{}},this.listeners=new Set}return e.prototype.editIdentity=function(){var t=this,n=ip({},this.identity.userProperties),r=ip(ip({},this.identity),{userProperties:n});return{setUserId:function(i){return r.userId=i,this},setDeviceId:function(i){return r.deviceId=i,this},setUserProperties:function(i){return r.userProperties=i,this},setOptOut:function(i){return r.optOut=i,this},updateUserProperties:function(i){var o,s,a,c,l,u,d=r.userProperties||{};try{for(var f=Bx(Object.entries(i)),p=f.next();!p.done;p=f.next()){var g=yee(p.value,2),m=g[0],y=g[1];switch(m){case Zet:try{for(var v=(a=void 0,Bx(Object.entries(y))),w=v.next();!w.done;w=v.next()){var S=yee(w.value,2),C=S[0],E=S[1];d[C]=E}}catch(O){a={error:O}}finally{try{w&&!w.done&&(c=v.return)&&c.call(v)}finally{if(a)throw a.error}}break;case ett:try{for(var T=(l=void 0,Bx(Object.keys(y))),x=T.next();!x.done;x=T.next()){var C=x.value;delete d[C]}}catch(O){l={error:O}}finally{try{x&&!x.done&&(u=T.return)&&u.call(T)}finally{if(l)throw l.error}}break;case ttt:d={};break}}}catch(O){o={error:O}}finally{try{p&&!p.done&&(s=f.return)&&s.call(f)}finally{if(o)throw o.error}}return r.userProperties=d,this},commit:function(){return t.setIdentity(r),this}}},e.prototype.getIdentity=function(){return ip({},this.identity)},e.prototype.setIdentity=function(t){var n=ip({},this.identity);this.identity=ip({}
1505,t),$x(n,this.identity)||this.listeners.forEach(function(r){r(t)})},e.prototype.addIdentityListener=function(t){this.listeners.add(t)},e.prototype.removeIdentityListener=function(t){this.listeners.delete(t)},e})(),$w=typeof globalThis<"u"?globalThis:typeof global<"u"?global:self,rtt=(function(){function e(){this.identityStore=new ntt,this.eventBridge=new Jet,this.applicationContextProvider=new Qet}return e.getInstance=function(t){return $w.analyticsConnectorInstances||($w.analyticsConnectorInstances={}),$w.analyticsConnectorInstances[t]||($w.analyticsConnectorInstances[t]=new e),$w.analyticsConnectorInstances[t]},e})();function bee(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function ns(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?bee(Object(n),!0).forEach(function(r){ay(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):bee(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function u7(e){"@babel/helpers - typeof";return u7=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},u7(e)}function AH(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function itt(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,mye(r.key),r)}}function IH(e,t,n){return t&&itt(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function ay(e,t,n){return t=mye(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ott(e){return stt(e)||att(e)||pye(e)||ctt()}function stt(e){if(Array.isArray(e))return d7(e)}function att(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function pye(e,t){if(e){if(typeof e=="string")return d7(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return d7(e,t)}}function d7(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function ctt(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
1506In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ltt(e,t){var n=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=pye(e))||t){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(c){throw c},f:i}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
1507In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var o=!0,s=!1,a;return{s:function(){n=n.call(e)},n:function(){var c=n.next();return o=c.done,c},e:function(c){s=!0,a=c},f:function(){try{!o&&n.return!=null&&n.return()}finally{if(s)throw a}}}}function utt(e,t){if(typeof e!="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function mye(e){var t=utt(e,"string");return typeof t=="symbol"?t:String(t)}var st={DEFAULT_INSTANCE:"$default_instance",API_VERSION:2,MAX_STRING_LENGTH:4096,MAX_PROPERTY_KEYS:1e3,IDENTIFY_EVENT:"$identify",GROUP_IDENTIFY_EVENT:"$groupidentify",EVENT_LOG_URL:"api.amplitude.com",EVENT_LOG_EU_URL:"api.eu.amplitude.com",DYNAMIC_CONFIG_URL:"regionconfig.amplitude.com",DYNAMIC_CONFIG_EU_URL:"regionconfig.eu.amplitude.com",LAST_EVENT_ID:"amplitude_lastEventId",LAST_EVENT_TIME:"amplitude_lastEventTime",LAST_IDENTIFY_ID:"amplitude_lastIdentifyId",LAST_SEQUENCE_NUMBER:"amplitude_lastSequenceNumber",SESSION_ID:"amplitude_sessionId",DEVICE_ID:"amplitude_deviceId",OPT_OUT:"amplitude_optOut",
1507USER_ID:"amplitude_userId",DEVICE_ID_INDEX:0,USER_ID_INDEX:1,OPT_OUT_INDEX:2,SESSION_ID_INDEX:3,LAST_EVENT_TIME_INDEX:4,EVENT_ID_INDEX:5,IDENTIFY_ID_INDEX:6,SEQUENCE_NUMBER_INDEX:7,COOKIE_TEST_PREFIX:"amp_cookie_test",COOKIE_PREFIX:"amp",STORAGE_DEFAULT:"",STORAGE_COOKIES:"cookies",STORAGE_NONE:"none",STORAGE_LOCAL:"localStorage",STORAGE_SESSION:"sessionStorage",REVENUE_EVENT:"revenue_amount",REVENUE_PRODUCT_ID:"$productId",REVENUE_QUANTITY:"$quantity",REVENUE_PRICE:"$price",REVENUE_REVENUE_TYPE:"$revenueType",AMP_DEVICE_ID_PARAM:"amp_device_id",AMP_REFERRER_PARAM:"amp_referrer",REFERRER:"referrer",REFERRING_DOMAIN:"referring_domain",UTM_SOURCE:"utm_source",UTM_MEDIUM:"utm_medium",UTM_CAMPAIGN:"utm_campaign",UTM_TERM:"utm_term",UTM_CONTENT:"utm_content",ATTRIBUTION_EVENT:"[Amplitude] Attribution Captured",TRANSPORT_HTTP:"http",TRANSPORT_BEACON:"beacon"},wee={encode:function(t){for(var n="",r=0;r<t.length;r++){var i=t.charCodeAt(r);i<128?n+=String.fromCharCode(i):i>127&&i<2048?(n+=String.fromCharCode(i>>6|192),n+=String.fromCharCode(i&63|128)):(n+=String.fromCharCode(i>>12|224),n+=String.fromCharCode(i>>6&63|128),n+=String.fromCharCode(i&63|128))}return n},decode:function(t){for(var n="",r=0,i=0,o=0,s=0;r<t.length;)i=t.charCodeAt(r),i<128?(n+=String.fromCharCode(i),r++):i>191&&i<224?(o=t.charCodeAt(r+1),n+=String.fromCharCode((i&31)<<6|o&63),r+=2):(o=t.charCodeAt(r+1),s=t.charCodeAt(r+2),n+=String.fromCharCode((i&15)<<12|(o&63)<<6|s&63),r+=3);return n}},un=(function(){if(typeof globalThis<"u")return globalThis;if(typeof window<"u")return window;if(typeof self<"u")return self;if(typeof global<"u")return global})(),ha={_keyStr:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",encode:function(t){try{if(un.btoa&&un.atob)return un.btoa(unescape(encodeURIComponent(t)))}catch{}return ha._encode(t)},_encode:function(t){var n="",r,i,o,s,a,c,l,u=0;for(t=wee.encode(t);u<t.length;)r=t.charCodeAt(u++),i=t.charCodeAt(u++),o=t.charCodeAt(u++),s=r>>2,a=(r&3)<<4|i>>4,c=(i&15)<<2|o>>6,l=o&63,isNaN(i)?c=l=64:isNaN(o)&&(l=64),n=n+ha._keyStr.charAt(s)+ha._keyStr.charAt(a)+ha._keyStr.charAt(c)+ha._keyStr.charAt(l);return n},decode:function(t){try{if(un.btoa&&un.atob)return decodeURIComponent(escape(un.atob(t)))}catch{}return ha._decode(t)},_decode:function(t){var n="",r,i,o,s,a,c,l,u=0;for(t=t.replace(/[^A-Za-z0-9+/=]/g,"");u<t.length;)s=ha._keyStr.indexOf(t.charAt(u++)),a=ha._keyStr.indexOf(t.charAt(u++)),c=ha._keyStr.indexOf(t.charAt(u++)),l=ha._keyStr.indexOf(t.charAt(u++)),r=s<<2|a>>4,i=(a&15)<<4|c>>2,o=(c&3)<<6|l,n=n+String.fromCharCode(r),c!==64&&(n=n+String.fromCharCode(i)),l!==64&&(n=n+String.fromCharCode(o));return n=wee.decode(n),n}},dtt=Object.prototype.toString;function Ct(e){switch(dtt.call(e)){case"[object Date]":return"date";case"[object RegExp]":return"regexp";case"[object Arguments]":return"arguments";case"[object Array]":return"array";case"[object Error]":return"error"}return e===null?"null":e===void 0?"undefined":e!==e?"nan":e&&e.nodeType===1?"element":typeof Buffer<"u"&&typeof Buffer.isBuffer=="function"&&Buffer.isBuffer(e)?"buffer":(e=e.valueOf?e.valueOf():Object.prototype.valueOf.apply(e),u7(e))}var zg={DISABLE:0,ERROR:1,WARN:2,INFO:3},ZS=zg.WARN,ftt=function(t){Object.prototype.hasOwnProperty.call(zg,t)&&(ZS=zg[t])},htt=function(){return ZS},Bo={error:function(t){ZS>=zg.ERROR&&a6(t)},warn:function(t){ZS>=zg.WARN&&a6(t)},info:function(t){ZS>=zg.INFO&&a6(t)}},a6=function(t){try{console.log("[Amplitude] "+t)}catch{}},ptt=function(t){return!t||t.length===0},mtt=function(){try{if(un.sessionStorage)return!0}catch{}return!1},gtt=function e(t){if(Ct(t)==="array")for(var n=0;n<t.length;n++)t[n]=e(t[n]);else if(Ct(t)==="object")for(var r in t)r in t&&(t[r]=e(t[r]));else t=vtt(t);return t},vtt=function(t){return Ct(t)==="string"&&t.length>st.MAX_STRING_LENGTH?t.substring(0,st.MAX_STRING_LENGTH):t},VP=function(t,n,r){return Ct(t)!==r?(Bo.error("Invalid "+n+" input type. Expected "+r+" but received "+Ct(t)),!1):!0},ytt=function(t){return VP(t,"deviceId","string")?t.indexOf(".")>=0?(Bo.error(`Device IDs may not contain '.' characters. Value will be ignored: "`.concat(t,'"')),!1):!0:!1},btt=function(t){return VP(t,"transport","string")?t!==st.TRANSPORT_HTTP&&t!==st.TRANSPORT_BEACON?(Bo.error("transport value must be one of '".concat(st.TRANSPORT_BEACON,"' or '").concat(st.TRANSPORT_HTTP,"'")),!1):t!==st.TRANSPORT_HTTP&&typeof navigator<"u"&&!navigator.sendBeacon?(Bo.error("browser does not support sendBeacon, so transport must be HTTP"),!1):!0:!1},f7=function(t){var n=Ct(t);if(n!=="object")return Bo.error("Error: invalid properties format. Expecting Javascript object, received "+n+", ignoring"),{};if(Object.keys(t).length>st.MAX_PROPERTY_KEYS)return Bo.error("Error: too many properties (more than 1000), ignoring"),{};var r={};for(var i in t)if(Object.prototype.hasOwnProperty.call(t,i)){var o=i,s=Ct(
1507o);s!=="string"&&(o=String(o),Bo.warn("WARNING: Non-string property key, received type "+s+', coercing to string "'+o+'"'));var a=Stt(o,t[i]);a!==null&&(r[o]=a)}return r},wtt=["nan","function","arguments","regexp","element"],Stt=function e(t,n){var r=Ct(n);if(wtt.indexOf(r)!==-1)Bo.warn('WARNING: Property key "'+t+'" with invalid value type '+r+", ignoring"),n=null;else if(r==="undefined")n=null;else if(r==="error")n=String(n),Bo.warn('WARNING: Property key "'+t+'" with value type error, coercing to '+n);else if(r==="array"){for(var i=[],o=0;o<n.length;o++){var s=n[o],a=Ct(s);if(a==="array"){Bo.warn("WARNING: Cannot have "+a+" nested in an array property value, skipping");continue}else a==="object"?i.push(f7(s)):i.push(e(t,s))}n=i}else r==="object"&&(n=f7(n));return n},_tt=function(t){var n=Ct(t);if(n!=="object")return Bo.error("Error: invalid groups format. Expecting Javascript object, received "+n+", ignoring"),{};var r={};for(var i in t)if(Object.prototype.hasOwnProperty.call(t,i)){var o=i,s=Ct(o);s!=="string"&&(o=String(o),Bo.warn("WARNING: Non-string groupType, received type "+s+', coercing to string "'+o+'"'));var a=Ctt(o,t[i]);a!==null&&(r[o]=a)}return r},Ctt=function(t,n){var r=Ct(n);if(r==="string")return n;if(r==="date"||r==="number"||r==="boolean")return n=String(n),Bo.warn("WARNING: Non-string groupName, received type "+r+', coercing to string "'+n+'"'),n;if(r==="array"){for(var i=[],o=0;o<n.length;o++){var s=n[o],a=Ct(s);if(a==="array"||a==="object"){Bo.warn("WARNING: Skipping nested "+a+" in array groupName");continue}else a==="string"?i.push(s):(a==="date"||a==="number"||a==="boolean")&&(s=String(s),Bo.warn("WARNING: Non-string groupName, received type "+a+', coercing to string "'+s+'"'),i.push(s))}return i}Bo.warn("WARNING: Non-string groupName, received type "+r+". Please use strings or array of strings for groupName")},Ett=function(t,n){t=t.replace(/[[]/,"\\[").replace(/[\]]/,"\\]");var r=new RegExp("[\\?&]"+t+"=([^&#]*)"),i=r.exec(n);return i===null?void 0:decodeURIComponent(i[1].replace(/\+/g," "))},Ttt=function(){return typeof WorkerGlobalScope<"u"},ktt=function(t){return VP(t,"sessionId","number")&&new Date(t).getTime()>0?!0:(Bo.error("sessionId value must in milliseconds since epoch (Unix Timestamp)"),!1)},xtt=function(){return un.location},Att=function(t){var n=un.location?un.location.hostname:"";if(t){if(typeof document<"u"){var r=document.createElement("a");return r.href=t,r.hostname||n}if(typeof URL=="function"){var i=new URL(t);return i.hostname||n}}return n},ze={setLogLevel:ftt,getLogLevel:htt,logLevels:zg,log:Bo,isEmptyString:ptt,isWebWorkerEnvironment:Ttt,getQueryParam:Ett,sessionStorageEnabled:mtt,truncate:gtt,validateGroups:_tt,validateInput:VP,validateProperties:f7,validateDeviceId:ytt,validateTransport:btt,validateSessionId:ktt,getLocation:xtt,getHost:Att},gye=function(t){try{for(var n=document.cookie.split(";"),r=null,i=0;i<n.length;i++){for(var o=n[i];o.charAt(0)===" ";)o=o.substring(1,o.length);if(o.indexOf(t)===0){r=o.substring(t.length,o.length);break}}return r}catch{return null}},Itt=function(t){try{var n=document.cookie.split(";").map(function(a){return a.trimStart()}),r=[],i=ltt(n),o;try{for(i.s();!(o=i.n()).done;){for(var s=o.value;s.charAt(0)===" ";)s=s.substring(1);s.indexOf(t)===0&&r.push(s.substring(t.length))}}catch(a){i.e(a)}finally{i.f()}return r}catch{return[]}},h7=function(t,n,r){var i=n!==null?r.expirationDays:-1;if(i){var o=new Date;o.setTime(o.getTime()+i*24*60*60*1e3),i=o}var s=t+"="+n;i&&(s+="; expires="+i.toUTCString()),s+="; path=/",r.domain&&(s+="; domain="+r.domain),r.secure&&(s+="; Secure"),r.sameSite&&(s+="; SameSite="+r.sameSite),document.cookie=s},p7=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",n=t.split(".")[st.LAST_EVENT_TIME_INDEX],r;return n&&(r=parseInt(n,32)),r||(ze.log.warn("unable to parse malformed cookie: ".concat(t)),0)},Rtt=function(t){return ott(t).sort(function(n,r){var i=p7(n),o=p7(r);return o-i})},Ptt=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=st.COOKIE_TEST_PREFIX;if(typeof document>"u")return!1;var r=!1;try{var i=String(Date.now());h7(n,i,t),ze.log.info("Testing if cookies available"),r=gye(n+"=")===i}catch(o){ze.log.warn('Error thrown when checking for cookies. Reason: "'.concat(o,'"'))}finally{ze.log.info("Cleaning up cookies availability test"),h7(n,null,t)}return r},go={set:h7,get:gye,getAll:Itt,getLastEventTime:p7,sortByEventTime:Rtt,areCookiesEnabled:Ptt},Ott="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_",RH=function(){for(var t="",n=0;n<22;++n)t+=Ott.charAt(Math.floor(Math.random()*64));return t},vye=function(t){var n=ze.getHost(t),r=n.split("."),i=[],o="_tldtest_"+RH();if(ze.isWebWorkerEnvironment())return"";for(var s=r.length-2;s>=0;--s)i.push(r.slice(s).join("."));for(var a=0;a<i.length;++a){var c=i[a],l={domain:"."+c};if(go.set(o,1,l),go.get(o))return go.set(o,null,l),c}return""},$s={expirationDays:void 0,domain:void 0},Ntt=function(){$s={expirationDays:void 0,domain:void 0}},Mtt=function(t){if(arguments.length===0)return $s;t=t||{},$s.expirationDays=t.expirationDays,$s.secure=t.secure,$s.sameSite=t.sameSite;var n=ze.isEmptyString(t.domain)?"."+vye(ze.getLocation().href):t.domain,r=Math.random();$s.domain=n,bye("amplitude_test",r);var i=yye("amplitude_test");return(!i||i!==r)&&(n=null),wye("amplitude_test"),$s.domain=n,$s},NE=function(t){var n="";return $s.domain&&(n=$s.domain.charAt(0)==="."?$s.domain.substring(1):$s.domain),t+n},yye=function(t){var n=NE(t)+"=",r=go.get(n);try{if(r)return JSON.parse(ha.decode(r))}catch{return null}return null},bye=function(t,n){try{return go.set(NE(t),ha.encode(JSON.stringify(n)),$s),!0}catch{return!1}},Dtt=function(t,n){try{return go.set(NE(t),n,$s),!0}catch{return!1}},Ltt=function(t){var n=NE(t)+"=";return go.get(n)},wye=function(t){try{return go.set(NE(t),null,$s),!0}catch{return!1}},Ftt={reset:Ntt,options:Mtt,get:yye,set:bye,remove:wye,setRaw:Dtt,getRaw:Ltt},jtt=(function(){function e(){AH(this,e),this.map=new Map,this.length=0}return IH(e,[{key:"key",value:function(n){var r=Array.from(this.map.
1507keys()),i=r[n];return this.map.get(i)}},{key:"getItem",value:function(n){return this.map.get(n)}},{key:"setItem",value:function(n,r){this.map.has(n)||(this.length+=1),this.map.set(n,r)}},{key:"removeItem",value:function(n){this.map.has(n)&&(this.length-=1,this.map.delete(n))}},{key:"clear",value:function(){this.map.clear(),this.length=0}}]),e})(),Gh;{var Utt=function(){var t=new Date,n;try{return un.localStorage.setItem(t,t),n=un.localStorage.getItem(t)===String(t),un.localStorage.removeItem(t),n}catch{}return!1};if(Utt())Gh=un.localStorage;else if(typeof un<"u"&&un.globalStorage)try{Gh=un.globalStorage[un.location.hostname]}catch{}else if(typeof document<"u"){var bi=document.createElement("div"),Yd="localStorage";bi.style.display="none",document.getElementsByTagName("head")[0].appendChild(bi),bi.addBehavior&&(bi.addBehavior("#default#userdata"),Gh={length:0,setItem:function(t,n){bi.load(Yd),bi.getAttribute(t)||this.length++,bi.setAttribute(t,n),bi.save(Yd)},getItem:function(t){return bi.load(Yd),bi.getAttribute(t)},removeItem:function(t){bi.load(Yd),bi.getAttribute(t)&&this.length--,bi.removeAttribute(t),bi.save(Yd)},clear:function(){bi.load(Yd);for(var t=0,n;n=bi.XMLDocument.documentElement.attributes[t++];)bi.removeAttribute(n.name);bi.save(Yd),this.length=0},key:function(t){return bi.load(Yd),bi.XMLDocument.documentElement.attributes[t]}},bi.load(Yd),Gh.length=bi.XMLDocument.documentElement.attributes.length)}else ze.isWebWorkerEnvironment()&&(Gh=new jtt);Gh||(Gh={length:0,setItem:function(t,n){},getItem:function(t){},removeItem:function(t){},clear:function(){},key:function(t){}})}var Wl=Gh,Sye=function(){this.storage=null};Sye.prototype.getStorage=function(e){if(this.storage!==null)return this.storage;if(!e&&go.areCookiesEnabled())this.storage=Ftt;else{var t="amp_cookiestore_";this.storage={_options:{expirationDays:void 0,domain:void 0,secure:!1},reset:function(){this._options={expirationDays:void 0,domain:void 0,secure:!1}},options:function(r){return arguments.length===0?this._options:(r=r||{},this._options.expirationDays=r.expirationDays||this._options.expirationDays,this._options.domain=r.domain||this._options.domain||un&&un.location&&un.location.hostname,this._options.secure=r.secure||!1)},get:function(r){try{return JSON.parse(Wl.getItem(t+r))}catch{}return null},set:function(r,i){try{return Wl.setItem(t+r,JSON.stringify(i)),!0}catch{}return!1},remove:function(r){try{Wl.removeItem(t+r)}catch{return!1}}}}return this.storage};var p0,Btt=(p0={},ay(p0,st.STORAGE_COOKIES,!0),ay(p0,st.STORAGE_NONE,!0),ay(p0,st.STORAGE_LOCAL,!0),ay(p0,st.STORAGE_SESSION,!0),p0),$tt=(function(){function e(t){var n=t.storageKey,r=t.disableCookies,i=t.domain,o=t.secure,s=t.sameSite,a=t.expirationDays,c=t.storage;AH(this,e),this.storageKey=n,this.domain=i,this.secure=o,this.sameSite=s,this.expirationDays=a,this.cookieDomain="";var l=ze.getLocation()?ze.getLocation().href:void 0,u=r?"":vye(l);if(this.cookieDomain=i||(u?"."+u:null),Btt[c])this.storage=c;else{var d=r||!go.areCookiesEnabled({domain:this.cookieDomain,secure:this.secure,sameSite:this.sameSite,expirationDays:this.expirationDays});d?this.storage=st.STORAGE_LOCAL:this.storage=st.STORAGE_COOKIES}}return IH(e,[{key:"getCookieStorageKey",value:function(){if(!this.domain)return this.storageKey;var n=this.domain.charAt(0)==="."?this.domain.substring(1):this.domain;return"".concat(this.storageKey).concat(n?"_".concat(n):"")}},{key:"save",value:function(n){var r=n.deviceId,i=n.userId,o=n.optOut,s=n.sessionId,a=n.lastEventTime,c=n.eventId,l=n.identifyId,u=n.sequenceNumber;if(this.storage!==st.STORAGE_NONE){var d=[r,ha.encode(i||""),o?"1":"",s?s.toString(32):"0",a?a.toString(32):"0",c?c.toString(32):"0",l?l.toString(32):"0",u?u.toString(32):"0"].join(".");switch(this.storage){case st.STORAGE_SESSION:un.sessionStorage&&un.sessionStorage.setItem(this.storageKey,d);break;case st.STORAGE_LOCAL:Wl.setItem(this.storageKey,d);break;case st.STORAGE_COOKIES:this.saveCookie(d);break}}}},{key:"saveCookie",value:function(n){go.set(this.getCookieStorageKey(),n,{domain:this.cookieDomain,secure:this.secure,sameSite:this.sameSite,expirationDays:this.expirationDays})}},{key:"load",value:function(){var n=this,r;if(this.storage===st.STORAGE_COOKIES){var i=this.getCookieStorageKey()+"=",o=go.getAll(i);if(o.length===0||o.length===1)r=o[0];
1507else{var s=go.sortByEventTime(o)[0];o.forEach(function(){return go.set(n.getCookieStorageKey(),null,{})}),this.saveCookie(s),r=go.get(i)}}if(r||(r=Wl.getItem(this.storageKey)),!r)try{r=un.sessionStorage&&un.sessionStorage.getItem(this.storageKey)}catch(l){ze.log.info('window.sessionStorage unavailable. Reason: "'.concat(l,'"'))}if(!r)return null;var a=r.split("."),c=null;if(a[st.USER_ID_INDEX])try{c=ha.decode(a[st.USER_ID_INDEX])}catch{c=null}return{deviceId:a[st.DEVICE_ID_INDEX],userId:c,optOut:a[st.OPT_OUT_INDEX]==="1",sessionId:parseInt(a[st.SESSION_ID_INDEX],32),lastEventTime:parseInt(a[st.LAST_EVENT_TIME_INDEX],32),eventId:parseInt(a[st.EVENT_ID_INDEX],32),identifyId:parseInt(a[st.IDENTIFY_ID_INDEX],32),sequenceNumber:parseInt(a[st.SEQUENCE_NUMBER_INDEX],32)}}},{key:"clear",value:function(){var n;if(this.storage===st.STORAGE_COOKIES&&(n=go.get(this.getCookieStorageKey()+"="),go.set(this.getCookieStorageKey(),null,{domain:this.cookieDomain,secure:this.secure,sameSite:this.sameSite,expirationDays:0})),n||(n=Wl.getItem(this.storageKey),Wl.clear()),!n)try{n=un.sessionStorage&&un.sessionStorage.getItem(this.storageKey),un.sessionStorage.clear()}catch(r){ze.log.info('window.sessionStorage unavailable. Reason: "'.concat(r,'"'))}return!!n}}]),e})(),Htt=function(t,n){var r=t?"?"+t.split(".").slice(-1)[0].replace(/\|/g,"&"):"",i=function(p,g,m,y){return ze.getQueryParam(p,g)||ze.getQueryParam(m,y)},o=i(st.UTM_SOURCE,n,"utmcsr",r),s=i(st.UTM_MEDIUM,n,"utmcmd",r),a=i(st.UTM_CAMPAIGN,n,"utmccn",r),c=i(st.UTM_TERM,n,"utmctr",r),l=i(st.UTM_CONTENT,n,"utmcct",r),u={},d=function(p,g){ze.isEmptyString(g)||(u[p]=g)};return d(st.UTM_SOURCE,o),d(st.UTM_MEDIUM,s),d(st.UTM_CAMPAIGN,a),d(st.UTM_TERM,c),d(st.UTM_CONTENT,l),u},ztt="$add",Vtt="$append",m7="$clearAll",Wtt="$prepend",qtt="$set",Gtt="$setOnce",Ktt="$unset",Ytt="$preInsert",Qtt="$postInsert",Xtt="$remove",Ai=function(){this.userPropertiesOperations={},this.properties=[]};Ai.prototype.add=function(e,t){return Ct(t)==="number"||Ct(t)==="string"?this._addOperation(ztt,e,t):ze.log.error("Unsupported type for value: "+Ct(t)+", expecting number or string"),this};Ai.prototype.append=function(e,t){return this._addOperation(Vtt,e,t),this};Ai.prototype.clearAll=function(){return Object.keys(this.userPropertiesOperations).length>0?(Object.prototype.hasOwnProperty.call(this.userPropertiesOperations,m7)||ze.log.error("Need to send $clearAll on its own Identify object without any other operations, skipping $clearAll"),this):(this.userPropertiesOperations[m7]="-",this)};Ai.prototype.prepend=function(e,t){return this._addOperation(Wtt,e,t),this};Ai.prototype.set=function(e,t){return this._addOperation(qtt,e,t),this};Ai.prototype.setOnce=function(e,t){return this._addOperation(Gtt,e,t),this};Ai.prototype.unset=function(e){return this._addOperation(Ktt,e,"-"),this};Ai.prototype.preInsert=function(e,t){return this._addOperation(Ytt,e,t),this};Ai.prototype.postInsert=function(e,t){return this._addOperation(Qtt,e,t),this};Ai.prototype.remove=function(e,t){return this._addOperation(Xtt,e,t),this};Ai.prototype._addOperation=function(e,t,n){if(Object.prototype.hasOwnProperty.call(this.userPropertiesOperations,m7)){ze.log.error("This identify already contains a $clearAll operation, skipping operation "+e);return}if(this.properties.indexOf(t)!==-1){ze.log.error('User property "'+t+'" already used in this identify, skipping operation '+e);return}Object.prototype.hasOwnProperty.call(this.userPropertiesOperations,e)||(this.userPropertiesOperations[e]={}),this.userPropertiesOperations[e][t]=n,this.properties.push(t)};var _ye=function(t,n,r){this.url=t,this.data=n||{},this.headers=r},Jtt="Cross-Origin-Resource-Policy";function Ztt(e,t){for(var n in t)n===Jtt&&!t[n]||e.setRequestHeader(n,t[n])}_ye.prototype.send=function(e){var t=!!un.XDomainRequest;if(t){var n=new un.XDomainRequest;n.open("POST",this.url,!0),n.onload=function(){e(200,n.responseText)},n.onerror=function(){n.responseText==="Request Entity Too Large"?e(413,n.responseText):e(500,n.responseText)},n.ontimeout=function(){},n.onprogress=function(){},n.send(s6.stringify(this.data))}else if(typeof XMLHttpRequest<"u"){var r=new XMLHttpRequest;r.open("POST",this.url,!0),r.onreadystatechange=function(){r.readyState===4&&e(r.status,r.responseText)},Ztt(r,this.headers),r.send(s6.stringify(this.data))}else{var i=void 0;fetch(this.url,{method:"POST",headers:this.headers,body:s6.stringify(this.data)}).then(function(o){return i=o.status,o.text()}).then(function(o){e(i,o)})}};var iu=function(){this._price=null,this._productId=null,this._quantity=1,this._revenueType=null,this._properties=null};
1507iu.prototype.setProductId=function(t){return Ct(t)!=="string"?ze.log.error("Unsupported type for productId: "+Ct(t)+", expecting string"):ze.isEmptyString(t)?ze.log.error("Invalid empty productId"):this._productId=t,this};iu.prototype.setQuantity=function(t){return Ct(t)!=="number"?ze.log.error("Unsupported type for quantity: "+Ct(t)+", expecting number"):this._quantity=parseInt(t),this};iu.prototype.setPrice=function(t){return Ct(t)!=="number"?ze.log.error("Unsupported type for price: "+Ct(t)+", expecting number"):this._price=t,this};iu.prototype.setRevenueType=function(t){return Ct(t)!=="string"?ze.log.error("Unsupported type for revenueType: "+Ct(t)+", expecting string"):this._revenueType=t,this};iu.prototype.setEventProperties=function(t){return Ct(t)!=="object"?ze.log.error("Unsupported type for eventProperties: "+Ct(t)+", expecting object"):this._properties=ze.validateProperties(t),this};iu.prototype._isValidRevenue=function(){return Ct(this._price)!=="number"?(ze.log.error("Invalid revenue, need to set price field"),!1):!0};iu.prototype._toJSONObject=function(){var t=Ct(this._properties)==="object"?this._properties:{};return this._productId!==null&&(t[st.REVENUE_PRODUCT_ID]=this._productId),this._quantity!==null&&(t[st.REVENUE_QUANTITY]=this._quantity),this._price!==null&&(t[st.REVENUE_PRICE]=this._price),this._revenueType!==null&&(t[st.REVENUE_REVENUE_TYPE]=this._revenueType),t};var ent=function e(t){return t?(t^Math.random()*16>>t/4).toString(16):("10000000-1000-4000-8000"+-1e11).replace(/[018]/g,e)},tnt=function(){return typeof navigator<"u"&&(navigator.languages&&navigator.languages[0]||navigator.language||navigator.userLanguage)||""},nnt={getLanguage:tnt},vv={US:"US",EU:"EU"},Cye=function(t){var n=st.EVENT_LOG_URL;switch(t){case vv.EU:n=st.EVENT_LOG_EU_URL;break;case vv.US:n=st.EVENT_LOG_URL;break}return n},rnt=function(t){var n=st.DYNAMIC_CONFIG_URL;switch(t){case vv.EU:n=st.DYNAMIC_CONFIG_EU_URL;break;case vv.US:n=st.DYNAMIC_CONFIG_URL;break}return n},Eye="8.21.9",op={apiEndpoint:st.EVENT_LOG_URL,batchEvents:!1,cookieExpiration:365,cookieName:"amplitude_id",sameSiteCookie:"Lax",cookieForceUpgrade:!1,deferInitialization:!1,disableCookies:!1,deviceIdFromUrlParam:!1,domain:"",eventUploadPeriodMillis:30*1e3,eventUploadThreshold:30,forceHttps:!0,includeFbclid:!1,includeGclid:!1,includeReferrer:!1,includeUtm:!1,ingestionMetadata:{sourceName:"",sourceVersion:""},language:nnt.getLanguage(),library:{name:"amplitude-js",version:Eye},logLevel:"WARN",logAttributionCapturedEvent:!1,optOut:!1,onError:function(){},onExitPage:function(){},onNewSessionStart:function(){},plan:{branch:"",source:"",version:"",versionId:""},platform:"Web",savedMaxCount:1e3,saveEvents:!0,saveParamsReferrerOncePerSession:!0,secureCookie:!1,sessionTimeout:1800*1e3,storage:st.STORAGE_DEFAULT,trackingOptions:{city:!0,country:!0,carrier:!0,device_manufacturer:!0,device_model:!0,dma:!0,ip_address:!0,language:!0,os_name:!0,os_version:!0,platform:!0,region:!0,version_name:!0},transport:st.TRANSPORT_HTTP,unsetParamsReferrerOnNewSession:!1,unsentKey:"amplitude_unsent",unsentIdentifyKey:"amplitude_unsent_identify",uploadBatchSize:100,headers:{"Content-Type":"application/x-www-form-urlencoded; charset=UTF-8","Cross-Origin-Resource-Policy":"cross-origin"},serverZone:vv.US,useDynamicConfig:!1,serverZoneBasedApi:!1,sessionId:null,partnerId:""},int=(function(){function e(){return AH(this,e),e.instance||(this.ingestionEndpoint=st.EVENT_LOG_URL,e.instance=this),e.instance}return IH(e,[{key:"refresh",value:function(n,r,i){var o="https";!r&&un.location.protocol!=="https:"&&(o="http");var s=o+"://"+rnt(n),a=this,c=!!un.XDomainRequest;if(c){var l=new un.XDomainRequest;l.open("GET",s,!0),l.onload=function(){var d=JSON.parse(l.responseText);a.ingestionEndpoint=d.ingestionEndpoint,i&&i()},l.onerror=function(){},l.ontimeout=function(){},l.onprogress=function(){},l.send()}else{var u=new XMLHttpRequest;u.open("GET",s,!0),u.onreadystatechange=function(){if(u.readyState===4&&u.status===200){var d=JSON.parse(u.responseText);a.ingestionEndpoint=d.ingestionEndpoint,i&&i()}},u.send()}}}]),e})(),See=new int,dt=function(t){!TH()&&!ze.isWebWorkerEnvironment()&&ze.log.warn("amplitude-js will not work in a non-browser environment. If you are planning to add Amplitude to a node environment, please use @amplitude/node"),this._instanceName=ze.isEmptyString(t)?st.DEFAULT_INSTANCE:t.toLowerCase(),this._unsentEvents=[],this._unsentIdentifys=[],this.options=ns(ns({},op),{},{headers:ns({},op.headers),ingestionMetadata:ns({},op.ingestionMetadata),library:ns({},op.library),plan:ns({},op.plan),trackingOptions:ns({},op.trackingOptions)}),this._q=[],this._sending=!1,this._updateScheduled=!1,this._onInitCallbacks=[],this._onNewSessionStartCallbacks=[],this._eventId=0,this._identifyId=0,this._lastEventTime=null,this._newSession=!1,this._sequenceNumber=0,this._sessionId=null,this._isInitialized=!1,this._connector=null,this._userAgent=typeof navigator<"u"&&navigator&&navigator.userAgent||null,this._ua=new Yet(this._userAgent).getResult()};dt.prototype.Identify=Ai;dt.prototype.Revenue=iu;dt.prototype.init=function(t,n,r,i){var o=this;
1507if(Ct(t)!=="string"||ze.isEmptyString(t)){ze.log.error("Invalid apiKey. Please re-initialize with a valid apiKey");return}try{this._connector=rtt.getInstance(this._instanceName),ont(this.options,r),(TH()||ze.isWebWorkerEnvironment())&&un.Prototype!==void 0&&Array.prototype.toJSON&&(Det(),ze.log.warn("Prototype.js injected Array.prototype.toJSON. Deleting Array.prototype.toJSON to prevent double-stringify")),this.options.cookieName!==op.cookieName&&ze.log.warn("The cookieName option is deprecated. We will be ignoring it for newer cookies"),this.options.serverZoneBasedApi&&(this.options.apiEndpoint=Cye(this.options.serverZone)),this._refreshDynamicConfig(),this.options.apiKey=t,this._storageSuffix="_"+t+(this._instanceName===st.DEFAULT_INSTANCE?"":"_"+this._instanceName),this._storageSuffixV5=t.slice(0,6),this._oldCookiename=this.options.cookieName+this._storageSuffix,this._unsentKey=this.options.unsentKey+this._storageSuffix,this._unsentIdentifyKey=this.options.unsentIdentifyKey+this._storageSuffix,this._cookieName=st.COOKIE_PREFIX+"_"+this._storageSuffixV5,this.cookieStorage=new Sye().getStorage(this.options.disableCookies),this.cookieStorage.options({expirationDays:this.options.cookieExpiration,domain:this.options.domain,secure:this.options.secureCookie,sameSite:this.options.sameSiteCookie}),this._metadataStorage=new $tt({storageKey:this._cookieName,disableCookies:this.options.disableCookies,expirationDays:this.options.cookieExpiration,domain:this.options.domain,secure:this.options.secureCookie,sameSite:this.options.sameSiteCookie,storage:this.options.storage});var s=!!this.cookieStorage.get(this._oldCookiename),a=!!this._metadataStorage.load();this._useOldCookie=!a&&s&&!this.options.cookieForceUpgrade;var c=a||s;if(this.options.deferInitialization&&!c){this._deferInitialization(t,n,r,i);return}this.options.domain=this.cookieStorage.options().domain,Ct(this.options.logLevel)==="string"&&ze.setLogLevel(this.options.logLevel);var l=lnt(this);this._apiPropertiesTrackingOptions=Object.keys(l).length>0?{tracking_options:l}:{},this.options.cookieForceUpgrade&&s&&(a||snt(this),this.cookieStorage.remove(this._oldCookiename)),PH(this),this._pendingReadStorage=!0;var u=function(m){r&&r.deviceId&&!ze.validateDeviceId(r.deviceId)&&(ze.log.error('Invalid device ID rejected. Randomly generated UUID will be used instead of "'.concat(r.deviceId,'"')),delete r.deviceId),o.options.deviceId=o._getInitialDeviceId(r&&r.deviceId,m),o.options.userId=Ct(n)==="string"&&!ze.isEmptyString(n)&&n||Ct(n)==="number"&&n.toString()||o.options.userId||null;var y=new Date().getTime(),v=!o._sessionId||!o._lastEventTime||y-o._lastEventTime>o.options.sessionTimeout||o.options.sessionId;v&&(o.options.unsetParamsReferrerOnNewSession&&o._unsetUTMParams(),o._newSession=!0,o._sessionId=o.options.sessionId||y,o.options.sessionId=void 0,o.options.saveParamsReferrerOncePerSession&&o._trackParamsAndReferrer()),o.options.saveParamsReferrerOncePerSession||o._trackParamsAndReferrer(),o.options.saveEvents&&(_ee(o._unsentEvents),_ee(o._unsentIdentifys)),o._lastEventTime=y,Sh(o),o._pendingReadStorage=!1,o._sendEventsIfReady();for(var w=0;w<o._onInitCallbacks.length;w++)o._onInitCallbacks[w](o);o._onInitCallbacks=[],o._isInitialized=!0,v&&o._runNewSessionStartCallbacks()};this.options.saveEvents&&(this._unsentEvents=this._loadSavedUnsentEvents(this.options.unsentKey).map(function(g){return{event:g}}).concat(this._unsentEvents),this._unsentIdentifys=this._loadSavedUnsentEvents(this.options.unsentIdentifyKey).map(function(g){return{event:g}}).concat(this._unsentIdentifys)),r&&r.onNewSessionStart&&this.onNewSessionStart(this.options.onNewSessionStart),u(),this.runQueuedFunctions(),Ct(i)==="function"&&i(this);var d=this.options.onExitPage;if(Ct(d)==="function"&&un.addEventListener&&!this.pageHandlersAdded){this.pageHandlersAdded=!0;var f=function(){var m=o.options.transport;o.setTransport(st.TRANSPORT_BEACON),d(),o.setTransport(m)};un.addEventListener("pagehide",function(){f()},!1)}this._connector.eventBridge.setEventReceiver(function(g){o._logEvent(g.eventType,g.eventProperties,g.userProperties)});var p=this._connector.identityStore.editIdentity();this.options.deviceId&&p.setDeviceId(this.options.deviceId),this.options.userId&&p.setUserId(this.options.userId),p.commit()}catch(g){ze.log.error(g),r&&Ct(r.onError)==="function"&&r.onError(g)}};dt.prototype._runNewSessionStartCallbacks=function(){for(var e=0;e<this._onNewSessionStartCallbacks.length;e++)this._onNewSessionStartCallbacks[e](this)};dt.prototype.deleteLowerLevelDomainCookies=function(){var e=ze.getHost(),t=this.options.domain&&this.options.domain[0]==="."?this.options.domain.slice(1):this.options.domain;if(!(!t||!ze.isWebWorkerEnvironment())&&e!==t&&new RegExp(t+"$").test(e)){for(var n=e.split("."),r=t.split("."),i=n.length;i>r.length;--i){var o=n.slice(n.length-i).join(".");go.set(this._cookieName,null,{domain:"."+o})}go.set(this._cookieName,null,{})}};dt.prototype._getInitialDeviceId=function(e,t){if(e)return e;if(this.options.deviceIdFromUrlParam){var n=this._getDeviceIdFromUrlParam(this._getUrlParams());if(n)return n}return this.options.deviceId?this.options.deviceId:t||RH()};var _ee=function(t){for(var n=0;n<t.length;n++){var r=t[n].event.user_properties,i=t[n].event.event_properties,o=t[n].event.groups;t[n].event.user_properties=ze.validateProperties(r),t[n].event.event_properties=ze.validateProperties(i),t[n].event.groups=ze.validateGroups(o)}};dt.prototype._trackParamsAndReferrer=function(){var t,n,r,i;if(this.options.includeUtm&&(t=this._initUtmData()),this.options.includeReferrer&&(n=this._saveReferrer(this._getReferrer())),this.options.includeGclid&&(r=this._saveGclid(this._getUrlParams())),this.options.includeFbclid&&(i=this._saveFbclid(this._getUrlParams())),this.options.logAttributionCapturedEvent){var o=ns(ns(ns(ns({},t),n),r),i);Object.keys(o).length>0&&this.logEvent(st.ATTRIBUTION_EVENT,o)}};var ont=function e(t,n){if(Ct(n)==="object"){var r=new Set(["headers"]),i=new Set(["eventUploadPeriodMillis"]),o=function(c){if(Object.prototype.hasOwnProperty.call(t,c)){var l=n[c],u=Ct(t[c]);if(!(c==="transport"&&!ze.validateTransport(l))){if(c==="sessionId"&&l!==null){t[c]=ze.validateSessionId(l)?l:null;return}else if(!ze.validateInput(l,c+" option",u))return;u==="boolean"?t[c]=!!l:u==="string"&&!ze.isEmptyString(l)||u==="number"&&(l>0||l===0&&i.has(c))||u==="function"?t[c]=l:u==="object"&&e(t[c],l)}}};for(var s in n)r.has(s)?t[s]=ns(ns({},t[s]),n[s]):Object.prototype.hasOwnProperty.call(n,s)&&o(s)}};dt.prototype.runQueuedFunctions=function(){var e=this._q;this._q=[];for(var t=0;t<e.length;t++){var n=this[e[t][0]];Ct(n)==="function"&&n.apply(this,e[t].slice(1))}};dt.prototype._apiKeySet=function(t){return ze.isEmptyString(this.options.apiKey)?(ze.log.error("Invalid apiKey. Please set a valid apiKey with init() before calling "+t),!1):!0};dt.prototype._loadSavedUnsentEvents=function(t){var n=this._getFromStorage(Wl,t),r=this._parseSavedUnsentEventsString(n,t);return this._setInStorage(Wl,t,JSON.stringify(r)),r};dt.prototype._parseSavedUnsentEventsString=function(t,n){if(ze.isEmptyString(t))return[];if(Ct(t)==="string")try{var r=JSON.parse(t);if(Ct(r)==="array")return r}catch{}return ze.log.error("Unable to load "+n+" events. Restart with a new empty queue."),[]};dt.prototype.isNewSession=function(){return this._newSession};dt.prototype.onInit=function(t){this._isInitialized?t(this):this._onInitCallbacks.push(t)};dt.prototype.onNewSessionStart=function(t){this._onNewSessionStartCallbacks.push(t)};dt.prototype.getSessionId=function(){return this._sessionId};dt.prototype.nextEventId=function(){return this._eventId++,this._eventId};dt.prototype.nextIdentifyId=function(){return this._identifyId++,this._identifyId};dt.prototype.nextSequenceNumber=function(){return this._sequenceNumber++,this._sequenceNumber};dt.prototype._unsentCount=function(){return this._unsentEvents.length+this._unsentIdentifys.length};dt.prototype._sendEventsIfReady=function(){return this._unsentCount()===0?!1:this.options.batchEvents?this._unsentCount()>=this.options.eventUploadThreshold?(this.sendEvents(),!0):this.options.transport===st.TRANSPORT_BEACON?(this.sendEvents(),!0):(this._updateScheduled||(this._updateScheduled=!0,setTimeout((function(){this._updateScheduled=!1,this.sendEvents()}).bind(this),this.options.eventUploadPeriodMillis)),!1):(this.sendEvents(),!0)};dt.prototype.clearStorage=function(){return this._metadataStorage.clear()};dt.prototype._getFromStorage=function(t,n){return t.getItem(n+this._storageSuffix
1507)};dt.prototype._setInStorage=function(t,n,r){t.setItem(n+this._storageSuffix,r)};var PH=function(t){if(!t._useOldCookie){var n=t._metadataStorage.load();Ct(n)==="object"&&g7(t,n);return}var r=t.cookieStorage.get(t._oldCookiename);if(Ct(r)==="object"){g7(t,r);return}},snt=function(t){var n=t.cookieStorage.get(t._oldCookiename);Ct(n)==="object"&&(g7(t,n),Sh(t))},g7=function(t,n){n.deviceId&&(t.options.deviceId=n.deviceId),n.userId&&(t.options.userId=n.userId),n.optOut!==null&&n.optOut!==void 0&&n.optOut!==!1&&(t.options.optOut=n.optOut),n.sessionId&&(t._sessionId=parseInt(n.sessionId,10)),n.lastEventTime&&(t._lastEventTime=parseInt(n.lastEventTime,10)),n.eventId&&(t._eventId=parseInt(n.eventId,10)),n.identifyId&&(t._identifyId=parseInt(n.identifyId,10)),n.sequenceNumber&&(t._sequenceNumber=parseInt(n.sequenceNumber,10))},Sh=function(t){var n={deviceId:t.options.deviceId,userId:t.options.userId,optOut:t.options.optOut,sessionId:t._sessionId,lastEventTime:t._lastEventTime,eventId:t._eventId,identifyId:t._identifyId,sequenceNumber:t._sequenceNumber};t._useOldCookie?t.cookieStorage.set(t.options.cookieName+t._storageSuffix,n):t._metadataStorage.save(n)};dt.prototype._initUtmData=function(t,n){t=t||this._getUrlParams(),n=n||this.cookieStorage.get("__utmz");var r=Htt(n,t);return WP(this,r),r};dt.prototype._unsetUTMParams=function(){var t=new Ai;t.unset(st.REFERRER),t.unset(st.REFERRING_DOMAIN),t.unset(st.UTM_SOURCE),t.unset(st.UTM_MEDIUM),t.unset(st.UTM_CAMPAIGN),t.unset(st.UTM_TERM),t.unset(st.UTM_CONTENT),this.identify(t)};var WP=function(t,n){if(!(Ct(n)!=="object"||Object.keys(n).length===0)){var r=new Ai;for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(r.setOnce("initial_"+i,n[i]),r.set(i,n[i]));t.identify(r)}};dt.prototype._getReferrer=function(){var t=this._getReferrerFromUrlParam(this._getUrlParams());return t||(typeof document<"u"?document.referrer:"")};dt.prototype._getUrlParams=function(){return un.location.search};dt.prototype._saveGclid=function(t){var n=ze.getQueryParam("gclid",t);if(!ze.isEmptyString(n)){var r={gclid:n};return WP(this,r),r}};dt.prototype._saveFbclid=function(t){var n=ze.getQueryParam("fbclid",t);if(!ze.isEmptyString(n)){var r={fbclid:n};return WP(this,r),r}};dt.prototype._getDeviceIdFromUrlParam=function(t){return ze.getQueryParam(st.AMP_DEVICE_ID_PARAM,t)};dt.prototype._getReferrerFromUrlParam=function(t){return ze.getQueryParam(st.AMP_REFERRER_PARAM,t)};dt.prototype._getReferringDomain=function(t){if(ze.isEmptyString(t))return null;var n=t.split("/");return n.length>=3?n[2]:null};dt.prototype._saveReferrer=function(t){if(!ze.isEmptyString(t)){var n={referrer:t,referring_domain:this._getReferringDomain(t)};return WP(this,n),n}};dt.prototype.saveEvents=function(){try{var t=JSON.stringify(this._unsentEvents.map(function(r){var i=r.event;return i}));this._setInStorage(Wl,this.options.unsentKey,t)}catch{}try{var n=JSON.stringify(this._unsentIdentifys.map(function(r){return r.event}));this._setInStorage(Wl,this.options.unsentIdentifyKey,n)}catch{}};dt.prototype.setDomain=function(t){if(this._shouldDeferCall())return this._q.push(["setDomain"].concat(Array.prototype.slice.call(arguments,0)));if(ze.validateInput(t,"domain","string"))try{this.cookieStorage.options({expirationDays:this.options.cookieExpiration,secure:this.options.secureCookie,domain:t,sameSite:this.options.sameSiteCookie}),this.options.domain=this.cookieStorage.options().domain,PH(this),Sh(this)}catch(n){ze.log.error(n)}};dt.prototype.setUserId=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(ze.validateInput(n,"startNewSession","boolean")){if(this._shouldDeferCall())return this._q.push(["setUserId"].concat(Array.prototype.slice.call(arguments,0)));try{this.options.userId=t!=null&&""+t||null,n&&(this.options.unsetParamsReferrerOnNewSession&&this._unsetUTMParams(),this._newSession=!0,this._sessionId=new Date().getTime(),this._runNewSessionStartCallbacks(),this.options.saveParamsReferrerOncePerSession&&this._trackParamsAndReferrer()),Sh(this),this._connector&&this._connector.identityStore.editIdentity().setUserId(this.options.userId).commit()}catch(r){ze.log.error(r)}}};dt.prototype.setGroup=function(e,t){if(this._shouldDeferCall())return this._q.push(["setGroup"].concat(Array.prototype.slice.call(arguments,0)));if(!(!this._apiKeySet("setGroup()")||!ze.validateInput(e,"groupType","string")||ze.isEmptyString(e))){var n={};n[e]=t;var r=new Ai().set(e,t);this._logEvent(st.IDENTIFY_EVENT,null,null,r.userPropertiesOperations,n,null,null,null)}};dt.prototype.setOptOut=function(t){if(this._shouldDeferCall())return this._q.push(["setOptOut"].concat(Array.prototype.slice.call(arguments,0)));if(ze.validateInput(t,"enable","boolean"))try{this.options.optOut=t,Sh(this)}catch(n){ze.log.error(n)}};dt.prototype.setSessionId=function(t){if(ze.validateInput(t,"sessionId","number"))try{this._sessionId=t,Sh(this)}catch(n){ze.log.error(n)}};dt.prototype.resetSessionId=function(){this.setSessionId(new Date().getTime())};dt.prototype.regenerateDeviceId=function(){if(this._shouldDeferCall())return this._q.push(["regenerateDeviceId"].concat(Array.prototype.slice.call(arguments,0)));this.setDeviceId(RH())};dt.prototype.setDeviceId=function(t){if(this._shouldDeferCall())return this._q.push(["setDeviceId"].concat(Array.prototype.slice.call(arguments,0)));if(ze.validateDeviceId(t))try{ze.isEmptyString(t)||(this.options.deviceId=""+t,Sh(this),this._connector&&this._connector.identityStore.editIdentity().setDeviceId(this.options.deviceId).commit())}catch(n){ze.log.error(n)}};dt.prototype.setTransport=function(t){if(this._shouldDeferCall())return this._q.push(["setTransport"].concat(Array.prototype.slice.call(arguments,0)));ze.validateTransport(t)&&(this.options.transport=t)};dt.prototype.setUserProperties=function(t){if(this._shouldDeferCall())return this._q.push(["setUserProperties"].concat(Array.prototype.slice.call(arguments,0)));if(!(!this._apiKeySet("setUserProperties()")||!ze.validateInput(t,"userProperties","object"))){var n=ze.truncate(ze.validateProperties(t));if(Object.keys(n).length!==0){var r=new Ai;for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&r.set(i,n[i]);this.identify(r)}}};dt.prototype.clearUserProperties=function(){if(this._shouldDeferCall())return this._q.push(["clearUserProperties"].concat(Array.prototype.slice.call(arguments,0)));if(this._apiKeySet("clearUserProperties()")){var t=new Ai;t.clearAll(),this.identify(t)}};var OH=function(t,n){for(var r=0;r<n._q.length;r++){var i=t[n._q[r][0]];Ct(i)==="function"&&i.apply(t,n._q[r].slice(1))}return t};dt.prototype.identify=function(e,t,n,r){if(this._shouldDeferCall())return this._q.push(["identify"].
1507concat(Array.prototype.slice.call(arguments,0)));if(!this._apiKeySet("identify()")){jo(t,n,0,"No request sent",{reason:"API key is not set"});return}if(Ct(e)==="object"&&Object.prototype.hasOwnProperty.call(e,"_q")&&(e=OH(new Ai,e)),e instanceof Ai){if(Object.keys(e.userPropertiesOperations).length>0)return this._logEvent(st.IDENTIFY_EVENT,null,null,e.userPropertiesOperations,null,null,null,t,n,r);jo(t,n,0,"No request sent",{reason:"No user property operations"})}else ze.log.error("Invalid identify input type. Expected Identify object but saw "+Ct(e)),jo(t,n,0,"No request sent",{reason:"Invalid identify input type"})};dt.prototype.groupIdentify=function(e,t,n,r,i,o){if(this._shouldDeferCall())return this._q.push(["groupIdentify"].concat(Array.prototype.slice.call(arguments,0)));if(!this._apiKeySet("groupIdentify()")){jo(r,i,0,"No request sent",{reason:"API key is not set"});return}if(!ze.validateInput(e,"group_type","string")||ze.isEmptyString(e)){jo(r,i,0,"No request sent",{reason:"Invalid group type"});return}if(t==null){jo(r,i,0,"No request sent",{reason:"Invalid group name"});return}if(Ct(n)==="object"&&Object.prototype.hasOwnProperty.call(n,"_q")&&(n=OH(new Ai,n)),n instanceof Ai){if(Object.keys(n.userPropertiesOperations).length>0)return this._logEvent(st.GROUP_IDENTIFY_EVENT,null,null,null,ay({},e,t),n.userPropertiesOperations,null,r,i,o);jo(r,i,0,"No request sent",{reason:"No group property operations"})}else ze.log.error("Invalid identify input type. Expected Identify object but saw "+Ct(n)),jo(r,i,0,"No request sent",{reason:"Invalid identify input type"})};dt.prototype.setVersionName=function(t){if(this._shouldDeferCall())return this._q.push(["setVersionName"].concat(Array.prototype.slice.call(arguments,0)));ze.validateInput(t,"versionName","string")&&(this.options.versionName=t)};dt.prototype._logEvent=function(t,n,r,i,o,s,a,c,l,u){if(PH(this),!t){jo(c,l,0,"No request sent",{reason:"Missing eventType"});return}if(this.options.optOut){jo(c,l,0,"No request sent",{reason:"optOut is set to true"});return}try{var d;t===st.IDENTIFY_EVENT||t===st.GROUP_IDENTIFY_EVENT?d=this.nextIdentifyId():d=this.nextEventId();var f=this.nextSequenceNumber(),p=Ct(a)==="number"?a:new Date().getTime();u?this._sessionId=-1:(!this._sessionId||!this._lastEventTime||p-this._lastEventTime>this.options.sessionTimeout)&&(this._sessionId=p,this._runNewSessionStartCallbacks()),this._lastEventTime=p,Sh(this);var g=this._ua.browser.name,m=this._ua.browser.major,y=this._ua.device.model||this._ua.os.name,v=this._ua.device.vendor;i=i||{};var w=ns({},this._apiPropertiesTrackingOptions);r=ns(ns({},r||{}),w),n=n||{},o=o||{},s=s||{};var S={device_id:this.options.deviceId,user_id:this.options.userId,timestamp:p,event_id:d,session_id:this._sessionId||-1,event_type:t,version_name:this.options.versionName||null,platform:cg(this,"platform")?this.options.platform:null,os_name:cg(this,"os_name")&&g||null,os_version:cg(this,"os_version")&&m||null,device_model:cg(this,"device_model")&&y||null,device_manufacturer:cg(this,"device_manufacturer")&&v||null,language:cg(this,"language")?this.options.language:null,api_properties:r,event_properties:ze.truncate(ze.validateProperties(n)),user_properties:ze.truncate(ze.validateProperties(i)),uuid:ent(),library:this.options.library,sequence_number:f,groups:ze.truncate(ze.validateGroups(o)),group_properties:ze.truncate(ze.validateProperties(s)),user_agent:this._userAgent,partner_id:this.options.partnerId||null};return ant(this)&&(S.plan={branch:this.options.plan.branch||void 0,source:this.options.plan.source||void 0,version:this.options.plan.version||void 0,versionId:this.options.plan.versionId||void 0}),cnt(this)&&(S.ingestion_metadata={source_name:this.options.ingestionMetadata.sourceName||void 0,source_version:this.options.ingestionMetadata.sourceVersion||void 0}),t===st.IDENTIFY_EVENT||t===st.GROUP_IDENTIFY_EVENT?(this._unsentIdentifys.push({event:S,callback:c,errorCallback:l}),this._limitEventsQueued(this._unsentIdentifys)):(this._unsentEvents.push({event:S,callback:c,errorCallback:l}),this._limitEventsQueued(this._unsentEvents)),this.options.saveEvents&&this.saveEvents(),this._sendEventsIfReady(),t===st.IDENTIFY_EVENT&&this._connector&&this._connector.identityStore.editIdentity().updateUserProperties(ze.truncate(ze.validateProperties(i))).commit(),d}catch(C){ze.log.error(C)}};var ant=function(t){return t.options.plan&&(t.options.plan.source||t.options.plan.branch||t.options.plan.version||t.options.plan.versionId)},cnt=function(t){return t.options.ingestionMetadata&&(t.options.ingestionMetadata.sourceName||t.options.ingestionMetadata.sourceVersion)},cg=function(t,n){return!!t.options.trackingOptions[n]},lnt=function(t){for(var n=["city","country","dma","ip_address","region"],r={},i=0;i<n.length;i++){var o=n[i];cg(t,o)||(r[o]=!1)}return r};dt.prototype._limitEventsQueued=function(t){if(t.length>this.options.savedMaxCount){var n=t.splice(0,t.length-this.options.savedMaxCount);
1507n.forEach(function(r){jo(r.callback,r.errorCallback,0,"No request sent",{reason:"Event dropped because options.savedMaxCount exceeded. User may be offline or have a content blocker"})})}};dt.prototype.logEvent=function(t,n,r,i){var o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1;return this._shouldDeferCall()?this._q.push(["logEvent"].concat(Array.prototype.slice.call(arguments,0))):this.logEventWithTimestamp(t,n,null,r,i,o)};dt.prototype.logEventWithTimestamp=function(t,n,r,i,o){var s=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!1;return this._shouldDeferCall()?this._q.push(["logEventWithTimestamp"].concat(Array.prototype.slice.call(arguments,0))):this._apiKeySet("logEvent()")?ze.validateInput(t,"eventType","string")?ze.isEmptyString(t)?(jo(i,o,0,"No request sent",{reason:"Missing eventType"}),-1):(ze.validateInput(s,"outOfSession","boolean")||jo(i,o,0,"No request sent",{reason:"Invalid outOfSession value"}),this._logEvent(t,n,null,null,null,null,r,i,o,s)):(jo(i,o,0,"No request sent",{reason:"Invalid type for eventType"}),-1):(jo(i,o,0,"No request sent",{reason:"API key not set"}),-1)};dt.prototype.logEventWithGroups=function(e,t,n,r,i){var o=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!1;return this._shouldDeferCall()?this._q.push(["logEventWithGroups"].concat(Array.prototype.slice.call(arguments,0))):this._apiKeySet("logEventWithGroups()")?ze.validateInput(e,"eventType","string")?(ze.validateInput(o,"outOfSession","boolean")||jo(event.callback,event.errorCallback,0,"No request sent",{reason:"Invalid outOfSession value"}),this._logEvent(e,t,null,null,n,null,null,r,i,o)):(jo(event.callback,event.errorCallback,0,"No request sent",{reason:"Invalid type for eventType"}),-1):(jo(event.callback,event.errorCallback,0,"No request sent",{reason:"API key not set"}),-1)};var Cee=function(t){return!isNaN(parseFloat(t))&&isFinite(t)},jo=function(t,n,r,i,o){Ct(t)==="function"&&t(r,i,o),Ct(n)==="function"&&n(r,i,o)};dt.prototype.logRevenueV2=function(t){if(this._shouldDeferCall())return this._q.push(["logRevenueV2"].concat(Array.prototype.slice.call(arguments,0)));if(this._apiKeySet("logRevenueV2()"))if(Ct(t)==="object"&&Object.prototype.hasOwnProperty.call(t,"_q")&&(t=OH(new iu,t)),t instanceof iu){if(t&&t._isValidRevenue())return this.logEvent(st.REVENUE_EVENT,t._toJSONObject())}else ze.log.error("Invalid revenue input type. Expected Revenue object but saw "+Ct(t))};dt.prototype.logRevenue=function(t,n,r){return this._shouldDeferCall()?this._q.push(["logRevenue"].concat(Array.prototype.slice.call(arguments,0))):!this._apiKeySet("logRevenue()")||!Cee(t)||n!==void 0&&!Cee(n)?-1:this._logEvent(st.REVENUE_EVENT,{},{productId:r,special:"revenue_amount",quantity:n||1,price:t},null,null,null,null,null)};dt.prototype._logErrorsOnEvents=function(t,n,r,i){for(var o=["_unsentEvents","_unsentIdentifys"],s=0;s<o.length;s++)for(var a=o[s],c=a==="_unsentEvents"?t:n,l=0;l<this[a].length;l++){var u=this[a][l];u.event.event_id<=c&&u.errorCallback&&u.errorCallback(r,i)}};dt.prototype.removeEvents=function(t,n,r,i){Eee(this,"_unsentEvents",t,r,i),Eee(this,"_unsentIdentifys",n,r,i)};var Eee=function(t,n,r,i,o){if(!(r<0)){for(var s=[],a=0;a<t[n].length;a++){var c=t[n][a];c.event.event_id>r?s.push(c):c.callback&&c.callback(i,o)}t[n]=s}};dt.prototype.sendEvents=function(){if(!this._apiKeySet("sendEvents()")){this.removeEvents(1/0,1/0,0,"No request sent",{reason:"API key not set"});return}if(this.options.optOut){this.removeEvents(1/0,1/0,0,"No request sent",{reason:"Opt out is set to true"});return}if(this._unsentCount()!==0){if(this.options.transport!==st.TRANSPORT_BEACON){if(this._sending)return;this._sending=!0}var t=this.options.forceHttps||un.location.protocol==="https:"?"https":"http",n=t+"://"+this.options.apiEndpoint,r=Math.min(this._unsentCount(),this.options.uploadBatchSize),i=this._mergeEventsAndIdentifys(r),o=i.maxEventId,s=i.maxIdentifyId,a=JSON.stringify(i.eventsToSend.map(function(g){var m=g.event;return m})),c=new Date().getTime(),l={client:this.options.apiKey,e:a,v:st.API_VERSION,upload_time:c,checksum:Fet(st.API_VERSION+this.options.apiKey+a+c)};if(this.options.transport===st.TRANSPORT_BEACON&&typeof navigator<"u"){var u=navigator.sendBeacon(n,new URLSearchParams(l));u?(this.removeEvents(o,s,200,"success"),this.options.saveEvents&&this.saveEvents()):this._logErrorsOnEvents(o,s,0,"");return}var d=this;try{new _ye(n,l,this.options.headers).send(function(g,m){d._sending=!1;try{g===200?(d.removeEvents(o,s,g,m),d.options.saveEvents&&d.saveEvents(),d._sendEventsIfReady()):(d._logErrorsOnEvents(o,s,g,m),g===413&&(d.options.uploadBatchSize===1&&d.removeEvents(o,s,g,m),d.options.uploadBatchSize=Math.ceil(r/2),d.sendEvents()))}catch{}})}catch(g){var f=0,p="Request failed to send";ze.log.error(p),d._logErrorsOnEvents(o,s,f,p),d.removeEvents(o,s,f,p,{reason:g.message})}}};dt.prototype._mergeEventsAndIdentifys=function(t){for(var n=[],r=0,i=-1,o=0,s=-1;n.length<t;){var a=void 0,c=o>=this._unsentIdentifys.length,l=r>=this._unsentEvents.length;if(l&&c){ze.log.error("Merging Events and Identifys, less events and identifys than expected");break}else c?(a=this._unsentEvents[r++],i=a.event.event_id):l?(a=this._unsentIdentifys[o++],s=a.event.event_id):!("sequence_number"in this._unsentEvents[r].event)||this._unsentEvents[r].event.sequence_number<this._unsentIdentifys[o].event.sequence_number?(a=this._unsentEvents[r++],i=a.event.event_id):(a=this._unsentIdentifys[o++],s=a.event.event_id);n.push(a)}return{eventsToSend:n,maxEventId:i,maxIdentifyId:s}};dt.prototype.setGlobalUserProperties=function(t){this.setUserProperties(t)};dt.prototype.__VERSION__=function(){return this.options.library.version};dt.prototype.setLibrary=function(t,n){t!==null&&typeof t<"u"&&(this.options.library.name=t),n!==null&&typeof n<"u"&&(this.options.library.version=n)};dt.prototype._shouldDeferCall=function(){return this._pendingReadStorage||this._initializationDeferred};dt.prototype._deferInitialization=function(){this._initializationDeferred=!0,this._q.push(["init"].concat(Array.prototype.slice.call(arguments,0)))};dt.prototype.enableTracking=function(){this._initializationDeferred=!1,Sh(this),this.runQueuedFunctions()};dt.prototype._refreshDynamicConfig=function(){this.options.useDynamicConfig&&See.refresh(this.options.serverZone,this.options.forceHttps,(function(){this.options.apiEndpoint=See.ingestionEndpoint}).bind(this))};dt.prototype.getDeviceId=function(){return this.options.deviceId};dt.prototype.getUserId=function(){return this.options.userId};dt.prototype.setMinTimeBetweenSessionsMillis=function(t){if(ze.validateInput(t,"timeInMillis","number")){if(this._shouldDeferCall())return this._q.push(["setMinTimeBetweenSessionsMillis"].concat(Array.prototype.slice.call(arguments,0)));try{this.options.sessionTimeout=t}catch(n){ze.log.error(n)}}};dt.prototype.setEventUploadThreshold=function(t){if(ze.validateInput(t,"eventUploadThreshold","number")){if(this._shouldDeferCall())return this._q.push(["setEventUploadThreshold"].concat(Array.prototype.slice.call(arguments,0)));try{this.options.eventUploadThreshold=t}catch(n){ze.log.error(n)}}};dt.prototype.setUseDynamicConfig=function(t){if(ze.validateInput(t,"useDynamicConfig","boolean")){if(this._shouldDeferCall())return this._q.push(["setUseDynamicConfig"].concat(Array.prototype.slice.call(arguments,0)));try{this.options.useDynamicConfig=t,this._refreshDynamicConfig()}catch(n){ze.log.error(n)}}};dt.prototype.setServerZone=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;if(!(t!==vv.EU&&t!==vv.US||!ze.validateInput(n,"serverZoneBasedApi","boolean"))){if(this._shouldDeferCall())return this._q.push(["setServerZone"].concat(Array.prototype.slice.call(arguments,0)));try{this.options.serverZone=t,this.options.serverZoneBasedApi=n,n&&(this.options.apiEndpoint=Cye(this.options.serverZone))}catch(r){ze.log.error(r)}}};dt.prototype.setServerUrl=function(t){if(ze.validateInput(t,"serverUrl","string")){if(this._shouldDeferCall())return this._q.push(["setServerUrl"].concat(Array.prototype.slice.call(arguments,0)));try{this.options.apiEndpoint=t}catch(n){ze.log.error(n)}}};var Jn=function(){this.options=ns({},op),this._q=[],this._instances={}};Jn.prototype.Identify=Ai;Jn.prototype.Revenue=iu;Jn.prototype.getInstance=function(t){t=ze.isEmptyString(t)?st.DEFAULT_INSTANCE:t.toLowerCase();var n=this._instances[t];return n===void 0&&(n=new dt(t),this._instances[t]=n),n};Jn.prototype.init=function(t,n,r,i){this.getInstance().init(t,n,r,(function(o){this.options=o.options,Ct(i)==="function"&&i(o)}).bind(this))},Jn.prototype.isNewSession=function(){return this.getInstance().isNewSession()},Jn.prototype.getSessionId=function(){return this.getInstance().getSessionId()},Jn.prototype.nextEventId=function(){return this.getInstance().nextEventId()},Jn.prototype.nextIdentifyId=function(){return this.getInstance().nextIdentifyId()},Jn.prototype.nextSequenceNumber=function(){return this.getInstance().nextSequenceNumber()},Jn.prototype.saveEvents=function(){this.getInstance().saveEvents()},Jn.prototype.setDomain=function(t){this.getInstance().setDomain(t)},Jn.prototype.setUserId=function(t){this.getInstance().setUserId(t)},Jn.prototype.setGroup=function(e,t){this.getInstance().setGroup(e,t)},Jn.prototype.setOptOut=function(t){this.getInstance().setOptOut(t)},Jn.prototype.regenerateDeviceId=function(){this.getInstance().regenerateDeviceId()},Jn.prototype.setDeviceId=function(t){this.getInstance().setDeviceId(t)},Jn.prototype.setUserProperties=function(t){this.getInstance().setUserProperties(t)},Jn.prototype.clearUserProperties=function(){this.getInstance().clearUserProperties()},Jn.prototype.identify=function(e,t){this.getInstance().identify(e,t)},Jn.prototype.setVersionName=function(t){this.getInstance().setVersionName(t)},Jn.prototype.logEvent=function(t,n,r){return this.getInstance().logEvent(t,n,r)},Jn.prototype.logEventWithGroups=function(e,t,n,r){return this.getInstance().logEventWithGroups(e,t,n,r)},Jn.prototype.logRevenueV2=function(t){return this.getInstance().logRevenueV2(t)},Jn.prototype.logRevenue=function(t,n,r){return this.getInstance().logRevenue(t,n,r)},Jn.prototype.removeEvents=function(t,n){this.getInstance().removeEvents(t,n)},Jn.prototype.sendEvents=function(t){this.getInstance().sendEvents(t)},Jn.prototype.setGlobalUserProperties=function(t){this.getInstance().setUserProperties(t)};Jn.prototype.__VERSION__=Eye;var Hx=typeof un<"u"&&un.amplitude||{},NH=new Jn;NH._q=Hx._q||[];for(var c6 in Hx._iq)Object.prototype.hasOwnProperty.call(Hx._iq,c6)&&(NH.getInstance(c6)._q=Hx._iq[c6]._q||[]);let v7;const Tee="73e463fe6c2d620310d87e5a34d92926";Tee.length&&(v7=NH.getInstance(),v7.init(Tee));const Wp=v7,unt=e=>b.useCallback(async t=>{const n=new URL("/v1/auth/sendVerificationCode",on);return await e.post(n.toString(),t)},[e]),dnt=e=>b.useCallback(async t=>{const n=new URL("/v1/auth/verifyCode",on);return await e.post(n.toString(),t)},[e]),fnt=e=>b.useCallback(async()=>{const t=new URL("/v1/auth/refreshToken",on);return await e.post(t.toString())},[e]),hnt=e=>{const[,t]=Jt(),n=fnt(e),r=b.useCallback(async()=>
1507{const i=localStorage.getItem(Vn.LANGFINITY_TOKEN);if(!i)return;const o=Met(i);if(!o.exp)return;const s=Math.floor(Date.now()/1e3);if(!(o.exp-s>2880*60))try{const a=await n();a.data.encodedToken&&localStorage.setItem(Vn.LANGFINITY_TOKEN,a.data.encodedToken)}catch(a){console.error(a),zp(a)}},[n]);return b.useCallback(async()=>{const i=new URL("/v1/auth/login",on).toString(),o=await e.post(i);return t(s=>({...s,auth:{...o.data.user},metadata:{...s.metadata,name:o.data.user.name}})),xve({id:o.data.user.id,email:o.data.user.email,username:o.data.user.name}),Wp==null||Wp.setUserId(o.data.user.id),await r(),o},[e,t,r])},pnt=e=>b.useCallback(async t=>{const n=new URL("/v1/room",on).toString();return await e.post(n,t)},[e]),mnt=e=>b.useCallback(async t=>{const n=new URL(`/v1/room/${t.id}`,on).toString();return await e.get(n)},[e]),gnt=e=>b.useCallback(async()=>{const t=new URL("/v1/room/list",on).toString();return await e.get(t)},[e]),vnt=e=>b.useCallback(async t=>{const n=new URL(`/v1/room/${t.id}`,on).toString();return await e.put(n,t)},[e]),ynt=e=>b.useCallback(async t=>{const n=new URL(`/v1/room/${t.id}`,on).toString();return await e.delete(n)},[e]),bnt=e=>b.useCallback(async t=>{const n=new URL(`/v1/room/${t.id}/correctTranslation`,on).toString();return await e.post(n,t)},[e]),wnt=e=>b.useCallback(async t=>{const n=new URL(`/v1/bot/${t.roomId}/join`,on).toString();return await e.post(n,t)},[e]),Snt=e=>b.useCallback(async t=>{const n=new URL(`/v1/bot/${t.roomId}/status`,on).toString();return await e.post(n)},[e]),_nt=e=>b.useCallback(async t=>{const n=new URL(`/v1/bot/${t.roomId}/leave`,on).toString();return await e.post(n)},[e]),Cnt=e=>b.useCallback(async t=>{const n=new URL("/v1/auth/livekitToken",on);return await e.post(n.toString(),t)},[e]),Ent=e=>b.useCallback(async t=>{const n=new URL(`/v1/settings/org/users/${t.orgId}`,on);return await e.get(n.toString())},[e]),Tnt=e=>b.useCallback(async t=>{const n=new URL(`/v1/settings/org/users/${t.userId}`,on);return await e.delete(n.toString())},[e]),knt=e=>b.useCallback(async t=>{const n=new URL(`/v1/room/${t.room_id}/updateParticipant`,on);return await e.post(n.toString(),t)},[e]),xnt=e=>b.useCallback(async t=>{const n=new URL("/v1/stripe/create-checkout-session",on);return await e.post(n.toString(),t)},[e]),Ant=e=>b.useCallback(async()=>{const t=new URL("/v1/organization",on);return await e.get(t.toString())},[e]),Int=e=>b.useCallback(async t=>{const n=new URL("/v1/organization",on).toString();return await e.put(n,t)},[e]),Rnt=e=>b.useCallback(async t=>{const n=new URL("/v1/usage",on);return await e.get(n.toString(),{params:t})},[e]),Pnt=e=>b.useCallback(async t=>{const n=new URL("/v1/admin/usage",on);return await e.get(n.toString(),{params:t})},[e]),Ont=e=>b.useCallback(async()=>{const t=new URL("/v1/glossary/list",on).toString();return await e.get(t)},[e]),Nnt=e=>b.useCallback(async t=>{const n=new URL(`/v1/recording/start/${t.roomId}`,on);return await e.post(n.toString())},[e]),Mnt=e=>b.useCallback(async t=>{const n=new URL("/v1/glossary",on);return await e.post(n.toString(),t)},[e]),Dnt=e=>b.useCallback(async t=>{const n=new URL(`/v1/recording/stop/${t.roomId}`,on);return await e.post(n.toString())},[e]),Lnt=e=>b.useCallback(async t=>{const n=new URL(`/v1/glossary/${t.id}`,on);return await e.put(n.toString(),t)},[e]),Fnt=e=>b.useCallback(async t=>{const n=new URL(`/v1/glossary/${t.id}`,on);return await e.delete(n.toString())},[e]),jnt=e=>b.useCallback(async t=>{const n=new URL("/v1/organization/inviteUser",on);return await e.post(n.toString(),t)},[e]),Unt=e=>b.useCallback(async t=>{const n=new URL("/v1/organization/removeUser",on);return await e.post(n.toString(),t)},[e]),Bnt=e=>b.useCallback(async t=>{const n=new URL(`/v1/chat/${t.roomId}`,on);return await e.post(n.toString(),t)},[e]),$nt=e=>b.useCallback(async t=>{const n=new URL(`/v1/recording/${t.recording_id}`,on);return await e.get(n.toString())},[e]),Hnt=e=>b.useCallback(async t=>{const n=new URL(`/v1/recording/${t.recording_id}`,on);return await e.delete(n.toString())},[e]),znt=e=>b.useCallback(async t=>{const n=new URL(`/v1/recording/${t.recording_id}`,on);return await e.put(n.toString(),t)},[e]),Vnt=e=>b.useCallback(async t=>{const n=new URL(`/v1/recording/${t.recordingId}/generate-summary`,on);return await e.post(n.toString())},[e]),Wnt=e=>b.useCallback(async()=>{const t=new URL("/v1/recording/list",on);return await e.get(t.toString())},[e]),qnt=e=>b.useCallback(async t=>{const n=new URL("/v1/log",on);return await e.post(n.toString(),t)},[e]),Gnt=e=>b.useCallback(async t=>{const n=new URL(`/v1/room/${t.roomId}/referral-email`,on);return await e.post(n.toString(),t)},[e]),Knt=e=>b.useCallback(async t=>{const n=new URL("/v1/auth/session",on);return await e.post(n.toString(),t)},[e]),Ynt=e=>b.useCallback(async()=>{const t=new URL("/v1/user",on);return await e.delete(t.toString())},[e]),Qnt=e=>b.useCallback(async()=>{const t=new URL("/v1/admin/org/list",on).toString();return await e.get(t)},[e]),Gt={useSendVerificationCode:unt,useVerifyCode:dnt,useLogin:hnt,useCreateRoom:pnt,useGetRoom:mnt,useGetRoomList:gnt,useUpdateRoom:vnt,useDeleteRoom:ynt,useCorrectTranslation:bnt,useInviteBot:wnt,useGetBotStatus:Snt,useRemoveBot:_nt,useGenerateLivekitToken:Cnt,useGetUsersByOrgId:Ent,useRemoveUserFromOrg:Tnt,useUpdateRoomParticipant:knt,useCreateStripeCheckout:xnt,useGetOrganization:Ant,useStartRecording:Nnt,useStopRecording:Dnt,useUpdateOrganization:Int,useGetUsage:Rnt,useGetGlossaryList:Ont,useCreateGlossary:Mnt,useUpdateGlossary:Lnt,useDeleteGlossary:Fnt,useInviteUser:jnt,useRemoveUser:Unt,useGetRecording:$nt,useDeleteRecording:Hnt,usePublishMessage:Bnt,useGenerateSummary:Vnt,useUpdateRecordingVisibility:znt,useGetRecordingList:Wnt,useLogEvent:qnt,useSubmitReferrals:Gnt,useUpdateSessionRequest:Knt,useGetOrgList:Qnt,useGetAdminUsage:Pnt,useDeleteAccount:Ynt},Tye=b.createContext({}),Cp=e=>{const t=mE(),n=b.useMemo(()=>t.id,[t.id]),[r,i]=b.useState(),[o,s]=b.useState(),[a,c]=b.useState(),l=Cn(),u=Gt.useGetRoom(l),[d,f]=b.useState(!1),[p,g]=b.useState(),m=il();return b.useEffect(()=>{(async()=>{g(void 0),f(!0);try{const y=await u({id:n});i(y.data.room),s(y.data.organization),c(y.data.glossaries)}catch(y){console.error(y),g(y)}finally{f(!1)}})()},[u,n,m]),h.jsx(Tye.Provider,{value:{room:r,setRoom:i,organization:o,setOrganization:s,glossaries:a,setGlossaries:c,loading:d,error:p},children:e.children})};function kye(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=kye(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function xr(){for(var e,t,n=0,r="",i=arguments.length;n<i;n++)(e=arguments[n])&&(t=kye(e))&&(r&&(r+=" "),r+=t);return r}const pC=e=>typeof e=="number"&&!isNaN(e),Vg=e=>typeof e=="string",oc=e=>typeof e=="function",zx=e=>Vg(e)||oc(e)?e:null,y7=e=>b.isValidElement(e)||Vg(e)||oc(e)||pC(e);function Xnt(e,t,n){n===void 0&&(n=300);const{scrollHeight:r,style:i}=e;requestAnimationFrame(()=>{i.minHeight="initial",i.height=r+"px",i.transition=`all ${n}ms`,requestAnimationFrame(()=>{i.height="0",i.padding="0",i.margin="0",setTimeout(t,n)})})}function qP(e){let{enter:t,exit:n,appendPosition:r=!1,collapse:i=!0,collapseDuration:o=300}=e;return function(s){let{children:a,position:c,preventExitTransition:l,done:u,nodeRef:d,isIn:f,playToast:p}=s;const g=r?`${t}--${c}`:t,m=r?`${n}--${c}`:n,y=b.useRef(0);return b.useLayoutEffect(()=>{const v=d.current,w=g.split(" "),S=C=>{C.target===d.current&&(p(),v.removeEventListener("animationend",S),v.removeEventListener("animationcancel",S),y.current===0&&C.type!=="animationcancel"&&v.classList.remove(...w))};v.classList.add(...w),v.addEventListener("animationend",S),v.addEventListener("animationcancel",S)},[]),b.useEffect(()=>{const v=d.current,w=()=>{v.removeEventListener("animationend",w),i?Xnt(v,u,o):u()};f||(l?w():(y.current=1,v.className+=` ${m}`,v.addEventListener("animationend",w)))},[f]),Ae.createElement(Ae.Fragment,null,a)}}function kee(e,t){return e!=null?{content:e.content,containerId:e.props.containerId,id:e.props.toastId,theme:e.props.theme,type:e.props.type,data:e.props.data||{},isLoading:e.props.isLoading,icon:e.props.icon,status:t}:{}}const zs=new Map;let mC=[];const b7=new Set,Jnt=e=>b7.forEach(t=>t(e)),xye=()=>zs.size>0;function Aye(e,t){var n;if(t)return!((n=zs.get(t))==null||!n.isToastActive(e));let r=!1;
1507return zs.forEach(i=>{i.isToastActive(e)&&(r=!0)}),r}function Iye(e,t){y7(e)&&(xye()||mC.push({content:e,options:t}),zs.forEach(n=>{n.buildToast(e,t)}))}function xee(e,t){zs.forEach(n=>{t!=null&&t!=null&&t.containerId?(t==null?void 0:t.containerId)===n.id&&n.toggle(e,t==null?void 0:t.id):n.toggle(e,t==null?void 0:t.id)})}function Znt(e){const{subscribe:t,getSnapshot:n,setProps:r}=b.useRef((function(o){const s=o.containerId||1;return{subscribe(a){const c=(function(u,d,f){let p=1,g=0,m=[],y=[],v=[],w=d;const S=new Map,C=new Set,E=()=>{v=Array.from(S.values()),C.forEach(O=>O())},T=O=>{y=O==null?[]:y.filter(A=>A!==O),E()},x=O=>{const{toastId:A,onOpen:L,updateId:U,children:I}=O.props,F=U==null;O.staleId&&S.delete(O.staleId),S.set(A,O),y=[...y,O.props.toastId].filter(P=>P!==O.staleId),E(),f(kee(O,F?"added":"updated")),F&&oc(L)&&L(b.isValidElement(I)&&I.props)};return{id:u,props:w,observe:O=>(C.add(O),()=>C.delete(O)),toggle:(O,A)=>{S.forEach(L=>{A!=null&&A!==L.props.toastId||oc(L.toggle)&&L.toggle(O)})},removeToast:T,toasts:S,clearQueue:()=>{g-=m.length,m=[]},buildToast:(O,A)=>{if((q=>{let{containerId:z,toastId:ue,updateId:ge}=q;const ae=z?z!==u:u!==1,j=S.has(ue)&&ge==null;return ae||j})(A))return;const{toastId:L,updateId:U,data:I,staleId:F,delay:P}=A,W=()=>{T(L)},ee=U==null;ee&&g++;const Y={...w,style:w.toastStyle,key:p++,...Object.fromEntries(Object.entries(A).filter(q=>{let[z,ue]=q;return ue!=null})),toastId:L,updateId:U,data:I,closeToast:W,isIn:!1,className:zx(A.className||w.toastClassName),bodyClassName:zx(A.bodyClassName||w.bodyClassName),progressClassName:zx(A.progressClassName||w.progressClassName),autoClose:!A.isLoading&&(X=A.autoClose,Z=w.autoClose,X===!1||pC(X)&&X>0?X:Z),deleteToast(){const q=S.get(L),{onClose:z,children:ue}=q.props;oc(z)&&z(b.isValidElement(ue)&&ue.props),f(kee(q,"removed")),S.delete(L),g--,g<0&&(g=0),m.length>0?x(m.shift()):E()}};var X,Z;Y.closeButton=w.closeButton,A.closeButton===!1||y7(A.closeButton)?Y.closeButton=A.closeButton:A.closeButton===!0&&(Y.closeButton=!y7(w.closeButton)||w.closeButton);let G=O;b.isValidElement(O)&&!Vg(O.type)?G=b.cloneElement(O,{closeToast:W,toastProps:Y,data:I}):oc(O)&&(G=O({closeToast:W,toastProps:Y,data:I}));const Q={content:G,props:Y,staleId:F};w.limit&&w.limit>0&&g>w.limit&&ee?m.push(Q):pC(P)?setTimeout(()=>{x(Q)},P):x(Q)},setProps(O){w=O},setToggle:(O,A)=>{S.get(O).toggle=A},isToastActive:O=>y.some(A=>A===O),getSnapshot:()=>w.newestOnTop?v.reverse():v}})(s,o,Jnt);zs.set(s,c);const l=c.observe(a);return mC.forEach(u=>Iye(u.content,u.options)),mC=[],()=>{l(),zs.delete(s)}},setProps(a){var c;(c=zs.get(s))==null||c.setProps(a)},getSnapshot(){var a;return(a=zs.get(s))==null?void 0:a.getSnapshot()}}})(e)).current;r(e);const i=b.useSyncExternalStore(t,n,n);return{getToastToRender:function(o){if(!i)return[];const s=new Map;return i.forEach(a=>{const{position:c}=a.props;s.has(c)||s.set(c,[]),s.get(c).push(a)}),Array.from(s,a=>o(a[0],a[1]))},isToastActive:Aye,count:i==null?void 0:i.length}}function ert(e){const[t,n]=b.useState(!1),[r,i]=b.useState(!1),o=b.useRef(null),s=b.useRef({start:0,delta:0,removalDistance:0,canCloseOnClick:!0,canDrag:!1,didMove:!1}).current,{autoClose:a,pauseOnHover:c,closeToast:l,onClick:u,closeOnClick:d}=e;var f,p;function g(){n(!0)}function m(){n(!1)}function y(S){const C=o.current;s.canDrag&&C&&(s.didMove=!0,t&&m(),s.delta=e.draggableDirection==="x"?S.clientX-s.start:S.clientY-s.start,s.start!==S.clientX&&(s.canCloseOnClick=!1),C.style.transform=`translate3d(${e.draggableDirection==="x"?`${s.delta}px, var(--y)`:`0, calc(${s.delta}px + var(--y))`},0)`,C.style.opacity=""+(1-Math.abs(s.delta/s.removalDistance)))}function v(){document.removeEventListener("pointermove",y),document.removeEventListener("pointerup",v);const S=o.current;if(s.canDrag&&s.didMove&&S){if(s.canDrag=!1,Math.abs(s.delta)>s.removalDistance)return i(!0),e.closeToast(),void e.collapseAll();S.style.transition="transform 0.2s, opacity 0.2s",S.style.removeProperty("transform"),S.style.removeProperty("opacity")}}(p=zs.get((f={id:e.toastId,containerId:e.containerId,fn:n}).containerId||1))==null||p.setToggle(f.id,f.fn),b.useEffect(()=>{if(e.pauseOnFocusLoss)return document.hasFocus()||m(),window.addEventListener("focus",g),window.addEventListener("blur",m),()=>{window.removeEventListener("focus",g),window.removeEventListener("blur",m)}},[e.pauseOnFocusLoss]);const w={onPointerDown:function(S){if(e.draggable===!0||e.draggable===S.pointerType){s.didMove=!1,document.addEventListener("pointermove",y),document.addEventListener("pointerup",v);const C=o.current;s.canCloseOnClick=!0,s.canDrag=!0,C.style.transition="none",e.draggableDirection==="x"?(s.start=S.clientX,s.removalDistance=C.offsetWidth*(e.draggablePercent/100)):(s.start=S.clientY,s.removalDistance=C.offsetHeight*(e.draggablePercent===80?1.5*e.draggablePercent:e.draggablePercent)/100)}},onPointerUp:function(S){const{top:C,bottom:E,left:T,right:x}=o.current.getBoundingClientRect();S.nativeEvent.type!=="touchend"&&e.pauseOnHover&&S.clientX>=T&&S.clientX<=x&&S.clientY>=C&&S.clientY<=E?m():g()}};return a&&c&&(w.onMouseEnter=m,e.stacked||(w.onMouseLeave=g)),d&&(w.onClick=S=>
1507{u&&u(S),s.canCloseOnClick&&l()}),{playToast:g,pauseToast:m,isRunning:t,preventExitTransition:r,toastRef:o,eventHandlers:w}}function trt(e){let{delay:t,isRunning:n,closeToast:r,type:i="default",hide:o,className:s,style:a,controlledProgress:c,progress:l,rtl:u,isIn:d,theme:f}=e;const p=o||c&&l===0,g={...a,animationDuration:`${t}ms`,animationPlayState:n?"running":"paused"};c&&(g.transform=`scaleX(${l})`);const m=xr("Toastify__progress-bar",c?"Toastify__progress-bar--controlled":"Toastify__progress-bar--animated",`Toastify__progress-bar-theme--${f}`,`Toastify__progress-bar--${i}`,{"Toastify__progress-bar--rtl":u}),y=oc(s)?s({rtl:u,type:i,defaultClassName:m}):xr(m,s),v={[c&&l>=1?"onTransitionEnd":"onAnimationEnd"]:c&&l<1?null:()=>{d&&r()}};return Ae.createElement("div",{className:"Toastify__progress-bar--wrp","data-hidden":p},Ae.createElement("div",{className:`Toastify__progress-bar--bg Toastify__progress-bar-theme--${f} Toastify__progress-bar--${i}`}),Ae.createElement("div",{role:"progressbar","aria-hidden":p?"true":"false","aria-label":"notification timer",className:y,style:g,...v}))}let nrt=1;const Rye=()=>""+nrt++;function rrt(e){return e&&(Vg(e.toastId)||pC(e.toastId))?e.toastId:Rye()}function e_(e,t){return Iye(e,t),t.toastId}function FI(e,t){return{...t,type:t&&t.type||e,toastId:rrt(t)}}function FT(e){return(t,n)=>e_(t,FI(e,n))}function mt(e,t){return e_(e,FI("default",t))}mt.loading=(e,t)=>
1507e_(e,FI("default",{isLoading:!0,autoClose:!1,closeOnClick:!1,closeButton:!1,draggable:!1,...t})),mt.promise=function(e,t,n){let r,{pending:i,error:o,success:s}=t;i&&(r=Vg(i)?mt.loading(i,n):mt.loading(i.render,{...n,...i}));const a={isLoading:null,autoClose:null,closeOnClick:null,closeButton:null,draggable:null},c=(u,d,f)=>{if(d==null)return void mt.dismiss(r);const p={type:u,...a,...n,data:f},g=Vg(d)?{render:d}:d;return r?mt.update(r,{...p,...g}):mt(g.render,{...p,...g}),f},l=oc(e)?e():e;return l.then(u=>c("success",s,u)).catch(u=>c("error",o,u)),l},mt.success=FT("success"),mt.info=FT("info"),mt.error=FT("error"),mt.warning=FT("warning"),mt.warn=mt.warning,mt.dark=(e,t)=>e_(e,FI("default",{theme:"dark",...t})),mt.dismiss=function(e){(function(t){var n;if(xye()){if(t==null||Vg(n=t)||pC(n))zs.forEach(r=>{r.removeToast(t)});else if(t&&("containerId"in t||"id"in t)){const r=zs.get(t.containerId);r?r.removeToast(t.id):zs.forEach(i=>{i.removeToast(t.id)})}}else mC=mC.filter(r=>t!=null&&r.options.toastId!==t)})(e)},mt.clearWaitingQueue=function(e){e===void 0&&(e={}),zs.forEach(t=>{!t.props.limit||e.containerId&&t.id!==e.containerId||t.clearQueue()})},mt.isActive=Aye,mt.update=function(e,t){t===void 0&&(t={});const n=((r,i)=>{var o;let{containerId:s}=i;return(o=zs.get(s||1))==null?void 0:o.toasts.get(r)})(e,t);if(n){const{props:r,content:i}=n,o={delay:100,...r,...t,toastId:t.toastId||e,updateId:Rye()};o.toastId!==e&&(o.staleId=e);const s=o.render||i;delete o.render,e_(s,o)}},mt.done=e=>{mt.update(e,{progress:1})},mt.onChange=function(e){return b7.add(e),()=>{b7.delete(e)}},mt.play=e=>xee(!0,e),mt.pause=e=>xee(!1,e);const irt=typeof window<"u"?b.useLayoutEffect:b.useEffect,jT=e=>{let{theme:t,type:n,isLoading:r,...i}=e;return Ae.createElement("svg",{viewBox:"0 0 24 24",width:"100%",height:"100%",fill:t==="colored"?"currentColor":`var(--toastify-icon-color-${n})`,...i})},l6={info:function(e){return Ae.createElement(jT,{...e},Ae.createElement("path",{d:"M12 0a12 12 0 1012 12A12.013 12.013 0 0012 0zm.25 5a1.5 1.5 0 11-1.5 1.5 1.5 1.5 0 011.5-1.5zm2.25 13.5h-4a1 1 0 010-2h.75a.25.25 0 00.25-.25v-4.5a.25.25 0 00-.25-.25h-.75a1 1 0 010-2h1a2 2 0 012 2v4.75a.25.25 0 00.25.25h.75a1 1 0 110 2z"}))},warning:function(e){return Ae.createElement(jT,{...e},Ae.createElement("path",{d:"M23.32 17.191L15.438 2.184C14.728.833 13.416 0 11.996 0c-1.42 0-2.733.833-3.443 2.184L.533 17.448a4.744 4.744 0 000 4.368C1.243 23.167 2.555 24 3.975 24h16.05C22.22 24 24 22.044 24 19.632c0-.904-.251-1.746-.68-2.44zm-9.622 1.46c0 1.033-.724 1.823-1.698 1.823s-1.698-.79-1.698-1.822v-.043c0-1.028.724-1.822 1.698-1.822s1.698.79 1.698 1.822v.043zm.039-12.285l-.84 8.06c-.057.581-.408.943-.897.943-.49 0-.84-.367-.896-.942l-.84-8.065c-.057-.624.25-1.095.779-1.095h1.91c.528.005.84.476.784 1.1z"}))},success:function(e){return Ae.createElement(jT,{...e},Ae.createElement("path",{d:"M12 0a12 12 0 1012 12A12.014 12.014 0 0012 0zm6.927 8.2l-6.845 9.289a1.011 1.011 0 01-1.43.188l-4.888-3.908a1 1 0 111.25-1.562l4.076 3.261 6.227-8.451a1 1 0 111.61 1.183z"}))},error:function(e){return Ae.createElement(jT,{...e},Ae.createElement("path",{d:"M11.983 0a12.206 12.206 0 00-8.51 3.653A11.8 11.8 0 000 12.207 11.779 11.779 0 0011.8 24h.214A12.111 12.111 0 0024 11.791 11.766 11.766 0 0011.983 0zM10.5 16.542a1.476 1.476 0 011.449-1.53h.027a1.527 1.527 0 011.523 1.47 1.475 1.475 0 01-1.449 1.53h-.027a1.529 1.529 0 01-1.523-1.47zM11 12.5v-6a1 1 0 012 0v6a1 1 0 11-2 0z"}))},spinner:function(){return Ae.createElement("div",{className:"Toastify__spinner"})}},ort=e=>{const{isRunning:t,preventExitTransition:n,toastRef:r,eventHandlers:i,playToast:o}=ert(e),{closeButton:s,children:a,autoClose:c,onClick:l,type:u,hideProgressBar:d,closeToast:f,transition:p,position:g,className:m,style:y,bodyClassName:v,bodyStyle:w,progressClassName:S,progressStyle:C,updateId:E,role:T,progress:x,rtl:O,toastId:A,deleteToast:L,isIn:U,isLoading:I,closeOnClick:F,theme:P}=e,W=xr("Toastify__toast",`Toastify__toast-theme--${P}`,`Toastify__toast--${u}`,{"Toastify__toast--rtl":O},{"Toastify__toast--close-on-click":F}),ee=oc(m)?m({rtl:O,position:g,type:u,defaultClassName:W}):xr(W,m),Y=(function(Q){let{theme:q,type:z,isLoading:ue,icon:ge}=Q,ae=null;const j={theme:q,type:z};return ge===!1||(oc(ge)?ae=ge({...j,isLoading:ue}):b.isValidElement(ge)?ae=b.cloneElement(ge,j):ue?ae=l6.spinner():(B=>B in l6)(z)&&(ae=l6[z](j))),ae})(e),X=!!x||!c,Z={closeToast:f,type:u,theme:P};let G=null;return s===!1||(G=oc(s)?s(Z):b.isValidElement(s)?b.cloneElement(s,Z):(function(Q){let{closeToast:q,theme:z,ariaLabel:ue="close"}=Q;return Ae.createElement("button",{className:`Toastify__close-button Toastify__close-button--${z}`,type:"button",onClick:ge=>{ge.stopPropagation(),q(ge)},"aria-label":ue},Ae.createElement("svg",{"aria-hidden":"true",viewBox:"0 0 14 16"},Ae.createElement("path",{fillRule:"evenodd",d:"M7.71 8.23l3.75 3.75-1.48 1.48-3.75-3.75-3.75 3.75L1 11.98l3.75-3.75L1 4.48 2.48 3l3.75 3.75L9.98 3l1.48 1.48-3.75 3.75z"})))})(Z)),Ae.createElement(p,{isIn:U,done:L,position:g,preventExitTransition:n,nodeRef:r,playToast:o},Ae.createElement("div",{id:A,onClick:l,"data-in":U,className:ee,...i,style:y,ref:r},Ae.createElement("div",{...U&&{role:T},className:oc(v)?v({type:u}):xr("Toastify__toast-body",v),style:w},Y!=null&&Ae.createElement("div",{className:xr("Toastify__toast-icon",{"Toastify--animate-icon Toastify__zoom-enter"
1507:!I})},Y),Ae.createElement("div",null,a)),G,Ae.createElement(trt,{...E&&!X?{key:`pb-${E}`}:{},rtl:O,theme:P,delay:c,isRunning:t,isIn:U,closeToast:f,hide:d,type:u,style:C,className:S,controlledProgress:X,progress:x||0})))},GP=function(e,t){return t===void 0&&(t=!1),{enter:`Toastify--animate Toastify__${e}-enter`,exit:`Toastify--animate Toastify__${e}-exit`,appendPosition:t}},srt=qP(GP("bounce",!0));qP(GP("slide",!0));qP(GP("zoom"));qP(GP("flip"));const art={position:"top-right",transition:srt,autoClose:5e3,closeButton:!0,pauseOnHover:!0,pauseOnFocusLoss:!0,draggable:"touch",draggablePercent:80,draggableDirection:"x",role:"alert",theme:"light"};function crt(e){let t={...art,...e};const n=e.stacked,[r,i]=b.useState(!0),o=b.useRef(null),{getToastToRender:s,isToastActive:a,count:c}=Znt(t),{className:l,style:u,rtl:d,containerId:f}=t;function p(m){const y=xr("Toastify__toast-container",`Toastify__toast-container--${m}`,{"Toastify__toast-container--rtl":d});return oc(l)?l({position:m,rtl:d,defaultClassName:y}):xr(y,zx(l))}function g(){n&&(i(!0),mt.play())}return irt(()=>{if(n){var m;const y=o.current.querySelectorAll('[data-in="true"]'),v=12,w=(m=t.position)==null?void 0:m.includes("top");let S=0,C=0;Array.from(y).reverse().forEach((E,T)=>{const x=E;x.classList.add("Toastify__toast--stacked"),T>0&&(x.dataset.collapsed=`${r}`),x.dataset.pos||(x.dataset.pos=w?"top":"bot");const O=S*(r?.2:1)+(r?0:v*T);x.style.setProperty("--y",`${w?O:-1*O}px`),x.style.setProperty("--g",`${v}`),x.style.setProperty("--s",""+(1-(r?C:0))),S+=x.offsetHeight,C+=.025})}},[r,c,n]),Ae.createElement("div",{ref:o,className:"Toastify",id:f,onMouseEnter:()=>{n&&(i(!1),mt.pause())},onMouseLeave:g},s((m,y)=>{const v=y.length?{...u}:{...u,pointerEvents:"none"};return Ae.createElement("div",{className:p(m),style:v,key:`container-${m}`},y.map(w=>{let{content:S,props:C}=w;return Ae.createElement(ort,{...C,stacked:n,collapseAll:g,isIn:a(C.toastId,C.containerId),style:C.style,key:`toast-${C.key}`},S)}))}))}const Rr=()=>b.useContext(Tye),_h=()=>{const e=mE();return b.useMemo(()=>e.id,[e.id])},KP=()=>{const e=b.useRef(),t=b.useRef(!1);b.useEffect(()=>{const n=async()=>{e.current&&(await e.current.release(),console.debug("Wake lock released"))};return(async()=>{if(!(t.current||e.current)){t.current=!0;try{"wakeLock"in navigator&&navigator.wakeLock.request?(await n(),e.current=await navigator.wakeLock.request("screen")):console.warn("Wake lock is not supported in this browser!")}catch(i){console.error("Failed to acquire wake lock!",i)}finally{t.current=!1}}})(),()=>{n()}},[])},MH=()=>{const e=_h(),t=Cn(),n=Gt.useGetRoom(t),{setOrganization:r}=Rr();b.useEffect(()=>{const i=setInterval(async()=>{const o=await n({id:e});r(s=>s&&{...s,translation_seconds_remaining:o.data.organization.translation_seconds_remaining})},3e4);return()=>{clearInterval(i)}},[n,e,r])},lrt=e=>{const t=pP(),n=b.useRef();return b.useEffect(()=>{t==="reconnecting"&&!n.current&&(n.current=mt(e,{type:"error",autoClose:!1})),t==="connected"&&n.current&&(mt.dismiss(n.current),n.current=void 0)},[t,e])},ls=()=>{const[e]=Jt(),t=Cn(),n=Gt.useLogEvent(t);return b.useCallback(r=>{const i={...r.details,livekit_identity:e.livekitId};n({type:r.type,details:i}),Wp&&Wp.logEvent(r.type,i)},[n,e.livekitId])},Jt=()=>{const e=b.useContext(Na);return[e.user,e.setUser]},on="https://api.langfinity.ai",Pye=()=>{const[e,t]=b.useState(()=>!!localStorage.getItem(Vn.EXPECT_LOGIN)),n=b.useContext(wP).teamsUserCredential,r=Cn(),[,i]=Jt(),o=ls(),s=c=>new Promise(l=>setTimeout(l,c)),a=b.useCallback(async()=>{o({type:"attempt_login_with_teams"});let c=0,l=!1;const u=5;for(;c<u&&!l;)try{t(!0),await s(500*c);const d=new URL("/v1/auth/login",on),f=await r.post(d.toString()),{user:p}=f.data;i(g=>({...g,auth:p})),xve({id:f.data.user.id,email:f.data.user.email,username:f.data.user.name}),Wp==null||Wp.setUserId(f.data.user.id),localStorage.setItem(Vn.EXPECT_LOGIN,"true"),l=!0,o({type:"succeed_login_with_teams"})}catch(d){if(c===0&&await(n==null?void 0:n.login(["User.Read"])),c>=u)throw o({type:"fail_login_with_teams",details:{error:d}}),d}finally{c++,t(!1)}t(!1)},[t,n,r,i,o]);return b.useEffect(()=>{localStorage.getItem(Vn.EXPECT_LOGIN)&&a()},[a]),{login:a,loading:e}},Pb=()=>{const[e]=Jt(),{room:t}=Rr();return b.useMemo(()=>e.metadata.selectedLanguage==="autodetect"?e.metadata.detectedLanguage?e.metadata.detectedLanguage:t?t.languages.find(n=>n.includes("en"))??t.languages[0]:"en-US":e.metadata.selectedLanguage,[e.metadata.selectedLanguage,e.metadata.detectedLanguage,t])},urt=async(e,t)=>{const n=s=>new Promise(a=>setTimeout(a,s));let r=0;const i=3,o=500;for(;r<i;)try{await e.setMetadata(t);return}catch(s){if(r++,console.warn(`Error updating metadata (attempt ${r})`,JSON.stringify(s)),r>=i)throw console.error("Max retries reached, failed to update metadata"),s;await n(o)}},drt=new TextDecoder,ME=()=>{const[e,t]=Jt(),n=pP(),{localParticipant:r}=wh();hE("autodetect_source_language",o=>{const s=JSON.parse(drt.decode(o.payload));s.participant_id===r.sid&&(console.log("set detected language",s.language),t(a=>({...a,metadata:{...a.metadata,detectedLanguage:s.language}}
1507)))}),b.useEffect(()=>{localStorage.setItem(Vn.USER_METADATA_LANGUAGE,e.metadata.selectedLanguage)},[e.metadata]);const i=bh();b.useEffect(()=>{const o=(s,a)=>{if(!a.isLocal||!a.metadata)return;const c=JSON.parse(a.metadata);t(l=>({...l,metadata:{...l.metadata,selectedLanguage:c.language,voice:c.voice}}))};return i.on("participantMetadataChanged",o),()=>{i.off("participantMetadataChanged",o)}},[i,t]),b.useEffect(()=>{var o;if(n==="connected"){const s=JSON.stringify({name:e.metadata.name??"Guest",participant_type:e.metadata.participantType,language:e.metadata.selectedLanguage,detected_language:e.metadata.detectedLanguage,voice:e.metadata.voice,ai_voice_gender:e.metadata.aiVoiceGender,ai_voice_short_name:e.metadata.aiVoice,bot_participant_id:e.metadata.botParticipantId,org_id:(o=e.auth)==null?void 0:o.org_id,timezone:e.metadata.timezone});r.metadata!==s&&urt(r,s)}},[n,r,e.metadata,e.auth])},frt="_Captions_1pcc2_1",hrt="_Content_1pcc2_9",prt="_CaptionAndFlag_1pcc2_22",mrt="_CaptionFlag_1pcc2_29",grt="_CaptionText_1pcc2_48",vrt="_CaptionName_1pcc2_56",yrt="_ScrollToBottom_1pcc2_60",lg={Captions:frt,Content:hrt,CaptionAndFlag:prt,CaptionFlag:mrt,CaptionText:grt,CaptionName:vrt,ScrollToBottom:yrt},Ch=()=>{const e=b.useContext(Na);return[e.layout,e.setLayout]},brt=()=>{const[,e]=Ch(),[,t]=Jt();b.useEffect(()=>{const n=()=>{const r=localStorage.getItem(Vn.LAYOUT_SETTINGS),i=r?JSON.parse(r):{};i.textSpeed&&e(c=>({...c,settings:{...c.settings,textSpeed:i.textSpeed}})),i.textColor&&e(c=>({...c,settings:{...c.settings,textColor:i.textColor}})),i.textBackgroundColor&&e(c=>({...c,settings:{...c.settings,textBackgroundColor:i.textBackgroundColor}})),i.textSize&&e(c=>({...c,settings:{...c.settings,textSize:i.textSize}}));const o=localStorage.getItem(Vn.VOICE_AVATAR),s=o?o.split(" ")[0]:G_.metadata.aiVoiceGender,a=o?o.split(" ")[1]:G_.metadata.aiVoice;t(c=>({...c,metadata:{...c.metadata,aiVoiceGender:s,aiVoice:a}}))};return window.addEventListener("storage",n),()=>{window.removeEventListener("storage",n)}},[e,t])},Oye=()=>{const[e,t]=b.useState(window.innerWidth),[n,r]=b.useState(window.innerHeight);return b.useEffect(()=>{const i=()=>{t(window.innerWidth),r(window.innerHeight)};return window.addEventListener("resize",i),()=>window.removeEventListener("resize",i)},[]),{width:e,height:n}},ks=()=>{const{width:e}=Oye();return b.useMemo(()=>e<=1200,[e])},DE=e=>{const{captions:t,setCaptions:n}=b.useContext(Na),[r,i]=b.useState(!1),o=b.useMemo(()=>{var s,a;return(a=(s=e==null?void 0:e.teamsContext)==null?void 0:s.meeting)==null?void 0:a.id},[e==null?void 0:e.teamsContext]);return b.useEffect(()=>{const s=setInterval(()=>{localStorage.setItem(Vn.CAPTIONS_LAST_ACCESS,new Date().getTime().toString())},5e3);return()=>{clearInterval(s)}},[]),b.useEffect(()=>{if(o)try{const s=localStorage.getItem(Vn.MEETING_ID);(!s||s!==o)&&(localStorage.removeItem(Vn.CAPTIONS),localStorage.setItem(Vn.MEETING_ID,o));const a=localStorage.getItem(Vn.CAPTIONS);if(!a)return;const c=localStorage.getItem(Vn.CAPTIONS_LAST_ACCESS);if(c){const l=new Date().getTime(),u=Number(c);if(l-u>300*1e3)return}n(JSON.parse(a))}finally{i(!0)}},[o,n]),b.useEffect(()=>{o&&r&&localStorage.setItem(Vn.CAPTIONS,JSON.stringify(t))},[o,r,t]),[t,n]};var Nye={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},Aee=Ae.createContext&&Ae.createContext(Nye),wrt=["attr","size","title"];function Srt(e,t){if(e==null)return{};var n=_rt(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function _rt(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function jI(){return jI=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},jI.apply(this,arguments)}function Iee(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function UI(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};
vendor: 6,259 bytes, line 1507
1507t%2?Iee(Object(n),!0).forEach(function(r){Crt(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Iee(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Crt(e,t,n){return t=Ert(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ert(e){var t=Trt(e,"string");return typeof t=="symbol"?t:t+""}function Trt(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Mye(e){return e&&e.map((t,n)=>Ae.createElement(t.tag,UI({key:n},t.attr),Mye(t.child)))}function St(e){return t=>Ae.createElement(krt,jI({attr:UI({},e.attr)},t),Mye(e.child))}function krt(e){var t=n=>{var{attr:r,size:i,title:o}=e,s=Srt(e,wrt),a=i||n.size||"1em",c;return n.className&&(c=n.className),e.className&&(c=(c?c+" ":"")+e.className),Ae.createElement("svg",jI({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},n.attr,r,s,{className:c,style:UI(UI({color:e.color||n.color},n.style),e.style),height:a,width:a,xmlns:"http://www.w3.org/2000/svg"}),o&&Ae.createElement("title",null,o),e.children)};return Aee!==void 0?Ae.createElement(Aee.Consumer,null,n=>t(n)):t(Nye)}function xrt(e){return St({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"48",d:"M244 400 100 256l144-144M120 256h292"},child:[]}]})(e)}function Art(e){return St({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"48",d:"m112 268 144 144 144-144M256 392V100"},child:[]}]})(e)}function lm(e){return St({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"32",d:"M416 128 192 384l-96-96"},child:[]}]})(e)}function Irt(e){return St({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"48",d:"M328 112 184 256l144 144"},child:[]}]})(e)}function na(e){return St({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"48",d:"m112 184 144 144 144-144"},child:[]}]})(e)}function Rrt(e){return St({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"48",d:"m184 112 144 144-144 144"},child:[]}]})(e)}function Xc(e){return St({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"48",d:"m112 328 144-144 144 144"},child:[]}]})(e)}function Eh(e){return St({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"m289.94 256 95-95A24 24 0 0 0 351 127l-95 95-95-95a24 24 0 0 0-34 34l95 95-95 95a24 24 0 1 0 34 34l95-95 95 95a24 24 0 0 0 34-34z"},child:[]}]})(e)}function DH(e){return St({attr:{viewBox:"0 0 512 512"},child:[{tag:"rect",attr:{width:"336",height:"336",x:"128",y:"128",fill:"none",strokeLinejoin:"round",strokeWidth:"32",rx:"57",ry:"57"},child:[]},{tag:"path",attr:{fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"32",d:"m383.5 128 .5-24a56.16 56.16 0 0 0-56-56H112a64.19 64.19 0 0 0-64 64v216a56.16 56.16 0 0 0 56 56h24"},child:[]}]})(e)}function Prt(e){return St({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"32",d:"M336 176h40a40 40 0 0 1 40 40v208a40 40 0 0 1-40 40H136a40 40 0 0 1-40-40V216a40 40 0 0 1 40-40h40"},child:[]},{tag:"path",attr:{fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"32",d:"m176 272 80 80 80-80M256 48v288"},child:[]}]})(e)}function Vv(e){return St({attr:{viewBox:"0 0 512 512"},child:[{tag:"circle",attr:{cx:"256",cy:"256",r:"48"},child:[]},{tag:"circle",attr:{cx:"416",cy:"256",r:"48"},child:[]},{tag:"circle",attr:{cx:"96",cy:"256",r:"48"},child:[]}]})(e)}function Ort(e){return St({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{fill:"none",strokeLinecap:"round",strokeMiterlimit:"10",strokeWidth:"32",d:"M80 464V68.14a8 8 0 0 1 4-6.9C91.81 56.66 112.92 48 160 48c64 0 145 48 192 48a199.53 199.53 0 0 0 77.23-15.77 2 2 0 0 1 2.77 1.85v219.36a4 4 0 0 1-2.39 3.65C421.37 308.7 392.33 320 352 320c-48 0-128-32-192-32s-80 16-80 16"},child:[]}]})(e)}function w7(e){return St({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"32",d:"M432 320V144a32 32 0 0 0-32-32h0a32 32 0 0 0-32 32v112m0 0V80a32 32 0 0 0-32-32h0a32 32 0 0 0-32 32v160m-64 1V96a32 32 0 0 0-32-32h0a32 32 0 0 0-32 32v224m128-80V48a32 32 0 0 0-32-32h0a32 32 0 0 0-32 32v192"},child:[]},{tag:"path",attr:{fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"32",d:"M432 320c0 117.4-64 176-152 176s-123.71-39.6-144-88L83.33 264c-6.66-18.05-3.64-34.79 11.87-43.6h0c15.52-8.82 35.91-4.28 44.31 11.68L176 320"},child:[]}]})(e)}function Dye(e){return St({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"32",d:"M83 384c-13-33-35-93.37-35-128C48 141.12 149.33 48 256 48s208 93.12 208 208c0 34.63-23 97-35 128"},child:[]},{tag:"path",attr:{fill:"none",strokeMiterlimit:"10",strokeWidth:"32",d:"m108.39 270.13-13.69 8c-30.23 17.7-31.7 72.41-3.38 122.2s75.87 75.81 106.1 58.12l13.69-8a16.16 16.16 0 0 0 5.78-21.87L130 276a15.74 15.74 0 0 0-21.61-5.87zm295.22 0 13.69 8c30.23 17.69 31.74 72.4 3.38 122.19s-75.87 75.81-106.1 58.12l-13.69-8a16.16 16.16 0 0 1-5.78-21.87L382 276a15.74 15.74 0 0 1 21.61-5.87z"},child:[]}]})(e)}function Nrt(e){return St({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"32",d:"M80 212v236a16 16 0 0 0 16 16h96V328a24 24 0 0 1 24-24h80a24 24 0 0 1 24 24v136h96a16 16 0 0 0 16-16V212"},child:[]},{tag:"path",attr:{fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"32",d:"M480 256 266.89 52c-5-5.28-16.69-5.34-21.78 0L32 256m368-77V64h-48v69"}
1507,child:[]}]})(e)}function Lye(e){return St({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{fill:"none",strokeMiterlimit:"10",strokeWidth:"32",d:"M248 64C146.39 64 64 146.39 64 248s82.39 184 184 184 184-82.39 184-184S349.61 64 248 64z"},child:[]},{tag:"path",attr:{fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"32",d:"M220 220h32v116"},child:[]},{tag:"path",attr:{fill:"none",strokeLinecap:"round",strokeMiterlimit:"10",strokeWidth:"32",d:"M208 340h88"},child:[]},{tag:"path",attr:{d:"M248 130a26 26 0 1 0 26 26 26 26 0 0 0-26-26z"},child:[]}]})(e)}function Mrt(e){return St({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"m478.33 433.6-90-218a22 22 0 0 0-40.67 0l-90 218a22 22 0 1 0 40.67 16.79L316.66 406h102.67l18.33 44.39A22 22 0 0 0 458 464a22 22 0 0 0 20.32-30.4zM334.83 362 368 281.65 401.17 362zm-66.99-19.08a22 22 0 0 0-4.89-30.7c-.2-.15-15-11.13-36.49-34.73 39.65-53.68 62.11-114.75 71.27-143.49H330a22 22 0 0 0 0-44H214V70a22 22 0 0 0-44 0v20H54a22 22 0 0 0 0 44h197.25c-9.52 26.95-27.05 69.5-53.79 108.36-31.41-41.68-43.08-68.65-43.17-68.87a22 22 0 0 0-40.58 17c.58 1.38 14.55 34.23 52.86 83.93.92 1.19 1.83 2.35 2.74 3.51-39.24 44.35-77.74 71.86-93.85 80.74a22 22 0 1 0 21.07 38.63c2.16-1.18 48.6-26.89 101.63-85.59 22.52 24.08 38 35.44 38.93 36.1a22 22 0 0 0 30.75-4.9z"},child:[]}]})(e)}function Fye(e){return St({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"48",d:"M200.66 352H144a96 96 0 0 1 0-192h55.41m113.18 0H368a96 96 0 0 1 0 192h-56.66m-142.27-96h175.86"},child:[]}]})(e)}function Drt(e){return St({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"32",d:"M336 208v-95a80 80 0 0 0-160 0v95"},child:[]},{tag:"rect",attr:{width:"320",height:"272",x:"96",y:"208",fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"32",rx:"48",ry:"48"},child:[]}]})(e)}function Lrt(e){return St({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"32",d:"M336 112a80 80 0 0 0-160 0v96"},child:[]},{tag:"rect",attr:{width:"320",height:"272",x:"96",y:"208",fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"32",rx:"48",ry:"48"},child:[]}]})(e)}function Frt(e){return St({attr:{viewBox:"0 0 512 512"},child:[{tag:"rect",attr:{width:"416",height:"320",x:"48",y:"96",fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"32",rx:"40",ry:"40"},child:[]},{tag:"path",attr:{fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"32",d:"m112 160 144 112 144-112"},child:[]}]})(e)}function jrt(e){return St({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"32",d:"M192 448h128m64-240v32c0 70.4-57.6 128-128 128h0c-70.4 0-128-57.6-128-128v-32m128 160v80"},child:[]},{tag:"path",attr:{fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"32",d:"M256 64a63.68 63.68 0 0 0-64 64v111c0 35.2 29 65 64 65s64-29 64-65V128c0-36-28-64-64-64z"},child:[]}]})(e)}function Urt(e){return St({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M208 432h-48a16 16 0 0 1-16-16V96a16 16 0 0 1 16-16h48a16 16 0 0 1 16 16v320a16 16 0 0 1-16 16zm144 0h-48a16 16 0 0 1-16-16V96a16 16 0 0 1 16-16h48a16 16 0 0 1 16 16v320a16 16 0 0 1-16 16z"},child:[]}]})(e)}function jye(e){return St({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"32",d:"M402 168c-2.93 40.67-33.1 72-66 72s-63.12-31.32-66-72c-3-42.31 26.37-72 66-72s69 30.46 66 72z"},child:[]},{tag:"path",attr:{fill:"none",strokeMiterlimit:"10",strokeWidth:"32",d:"M336 304c-65.17 0-127.84 32.37-143.54 95.41-2.08 8.34 3.15 16.59 11.72 16.59h263.65c8.57 0 13.77-8.25 11.72-16.59C463.85 335.36 401.18 304 336 304z"},child:[]},{tag:"path",attr:{fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"32",d:"M200 185.94c-2.34 32.48-26.72 58.06-53 58.06s-50.7-25.57-53-58.06C91.61 152.15 115.34 128 147 128s55.39 24.77 53 57.94z"},child:[]},{tag:"path",attr:{fill:"none",strokeLinecap:"round",strokeMiterlimit:"10",strokeWidth:"32",d:"M206 306c-18.05-8.27-37.93-11.45-59-11.45-52 0-102.1 25.85-114.65 76.2-1.65 6.66 2.53 13.25 9.37 13.25H154"},child:[]}]})(e)}function Uye(e){return St({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M332.64 64.58C313.18 43.57 286 32 256 32c-30.16 0-57.43 11.5-76.8 32.38-19.58 21.11-29.12 49.8-26.88 80.78C156.76 206.28 203.27 256 256 256s99.16-49.71 103.67-110.82c2.27-30.7-7.33-59.33-27.03-80.6zM432 480H80a31 31 0 0 1-24.2-11.13c-6.5-7.77-9.12-18.38-7.18-29.11C57.06 392.94 83.4 353.61 124.8 326c36.78-24.51 83.37-38 131.2-38s94.42 13.5 131.2 38c41.4 27.6 67.74 66.93 76.18 113.75 1.94 10.73-.68 21.34-7.18 29.11A31 31 0 0 1 432 480z"},child:[]}]})(e)}function Bye(e){return St({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M133 440a35.37 35.37 0 0 1-17.5-4.67c-12-6.8-19.46-20-19.46-34.33V111c0-14.37 7.46-27.53 19.46-34.33a35.13 35.13 0 0 1 35.77.45l247.85 148.3
15076a36 36 0 0 1 0 61l-247.89 148.4A35.5 35.5 0 0 1 133 440z"},child:[]}]})(e)}function $ye(e){return St({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M456.69 421.39 362.6 327.3a173.81 173.81 0 0 0 34.84-104.58C397.44 126.38 319.06 48 222.72 48S48 126.38 48 222.72s78.38 174.72 174.72 174.72A173.81 173.81 0 0 0 327.3 362.6l94.09 94.09a25 25 0 0 0 35.3-35.3zM97.92 222.72a124.8 124.8 0 1 1 124.8 124.8 124.95 124.95 0 0 1-124.8-124.8z"},child:[]}]})(e)}function YP(e){return St({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"32",d:"M262.29 192.31a64 64 0 1 0 57.4 57.4 64.13 64.13 0 0 0-57.4-57.4zM416.39 256a154.34 154.34 0 0 1-1.53 20.79l45.21 35.46a10.81 10.81 0 0 1 2.45 13.75l-42.77 74a10.81 10.81 0 0 1-13.14 4.59l-44.9-18.08a16.11 16.11 0 0 0-15.17 1.75A164.48 164.48 0 0 1 325 400.8a15.94 15.94 0 0 0-8.82 12.14l-6.73 47.89a11.08 11.08 0 0 1-10.68 9.17h-85.54a11.11 11.11 0 0 1-10.69-8.87l-6.72-47.82a16.07 16.07 0 0 0-9-12.22 155.3 155.3 0 0 1-21.46-12.57 16 16 0 0 0-15.11-1.71l-44.89 18.07a10.81 10.81 0 0 1-13.14-4.58l-42.77-74a10.8 10.8 0 0 1 2.45-13.75l38.21-30a16.05 16.05 0 0 0 6-14.08c-.36-4.17-.58-8.33-.58-12.5s.21-8.27.58-12.35a16 16 0 0 0-6.07-13.94l-38.19-30A10.81 10.81 0 0 1 49.48 186l42.77-74a10.81 10.81 0 0 1 13.14-4.59l44.9 18.08a16.11 16.11 0 0 0 15.17-1.75A164.48 164.48 0 0 1 187 111.2a15.94 15.94 0 0 0 8.82-12.14l6.73-47.89A11.08 11.08 0 0 1 213.23 42h85.54a11.11 11.11 0 0 1 10.69 8.87l6.72 47.82a16.07 16.07 0 0 0 9 12.22 155.3 155.3 0 0 1 21.46 12.57 16 16 0 0 0 15.11 1.71l44.89-18.07a10.81 10.81 0 0 1 13.14 4.58l42.77 74a10.8 10.8 0 0 1-2.45 13.75l-38.21 30a16.05 16.05 0 0 0-6.05 14.08c.33 4.14.55 8.3.55 12.47z"},child:[]}]})(e)}function Brt(e){return St({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{fill:"none",strokeLinejoin:"round",strokeWidth:"32",d:"M480 208H308L256 48l-52 160H32l140 96-54 160 138-100 138 100-54-160z"},child:[]}]})(e)}function $rt(e){return St({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M394 480a16 16 0 0 1-9.39-3L256 383.76 127.39 477a16 16 0 0 1-24.55-18.08L153 310.35 23 221.2a16 16 0 0 1 9-29.2h160.38l48.4-148.95a16 16 0 0 1 30.44 0l48.4 149H480a16 16 0 0 1 9.05 29.2L359 310.35l50.13 148.53A16 16 0 0 1 394 480z"},child:[]}]})(e)}function qp(e){return St({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"32",d:"M374.79 308.78 457.5 367a16 16 0 0 0 22.5-14.62V159.62A16 16 0 0 0 457.5 145l-82.71 58.22A16 16 0 0 0 368 216.3v79.4a16 16 0 0 0 6.79 13.08z"},child:[]},{tag:"path",attr:{fill:"none",strokeMiterlimit:"10",strokeWidth:"32",d:"M268 384H84a52.15 52.15 0 0 1-52-52V180a52.15 52.15 0 0 1 52-52h184.48A51.68 51.68 0 0 1 320 179.52V332a52.15 52.15 0 0 1-52 52z"},child:[]}]})(e)}function Hye(e){return St({attr:{viewBox:"0 0 512 512"},child:[{tag:"rect",attr:{width:"416",height:"288",x:"48",y:"144",fill:"none",strokeLinejoin:"round",strokeWidth:"32",rx:"48",ry:"48"},child:[]},{tag:"path",attr:{fill:"none",strokeLinejoin:"round",strokeWidth:"32",d:"M411.36 144v-30A50 50 0 0 0 352 64.9L88.64 109.85A50 50 0 0 0 48 159v49"},child:[]},{tag:"path",attr:{d:"M368 320a32 32 0 1 1 32-32 32 32 0 0 1-32 32z"},child:[]}]})(e)}var Hrt=typeof global=="object"&&global&&global.Object===Object&&global,zrt=typeof self=="object"&&self&&self.Object===Object&&self,zye=Hrt||zrt||Function("return this")(),BI=zye.Symbol,Vye=Object.prototype,Vrt=Vye.hasOwnProperty,Wrt=Vye.toString,Hw=BI?BI.toStringTag:void 0;function qrt(e){var t=Vrt.call(e,Hw),n=e[Hw];try{e[Hw]=void 0;var r=!0}catch{}var i=Wrt.call(e);return r&&(t?e[Hw]=n:delete e[Hw]),i}var Grt=Object.prototype,Krt=Grt.toString;function Yrt(e){return Krt.call(e)}var Qrt="[object Null]",Xrt="[object Undefined]",Ree=BI?BI.toStringTag:void 0;function Jrt(e){return e==null?e===void 0?Xrt:Qrt:Ree&&Ree in Object(e)?qrt(e):Yrt(e)}function Zrt(e){return e!=null&&typeof e=="object"}var eit="[object Symbol]";function tit(e){return typeof e=="symbol"||Zrt(e)&&Jrt(e)==eit}var nit=/\s/;function rit(e){for(var t=e.length;t--&&nit.test(e.charAt(t)););return t}var iit=/^\s+/;function oit(e){return e&&e.slice(0,rit(e)+1).replace(iit,"")}function $I(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var Pee=NaN,sit=/^[-+]0x[0-9a-f]+$/i,ait=/^0b[01]+$/i,cit=/^0o[0-7]+$/i,lit=parseInt;function Oee(e){if(typeof e=="number")return e;if(tit(e))return Pee;if($I(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=$I(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=oit(e);var n=ait.test(e);return n||cit.test(e)?lit(e.slice(2),n?2:8):sit.test(e)?Pee:+e}var u6=function(){return zye.Date.now()}
1507,uit="Expected a function",dit=Math.max,fit=Math.min;function Vx(e,t,n){var r,i,o,s,a,c,l=0,u=!1,d=!1,f=!0;if(typeof e!="function")throw new TypeError(uit);t=Oee(t)||0,$I(n)&&(u=!!n.leading,d="maxWait"in n,o=d?dit(Oee(n.maxWait)||0,t):o,f="trailing"in n?!!n.trailing:f);function p(T){var x=r,O=i;return r=i=void 0,l=T,s=e.apply(O,x),s}function g(T){return l=T,a=setTimeout(v,t),u?p(T):s}function m(T){var x=T-c,O=T-l,A=t-x;return d?fit(A,o-O):A}function y(T){var x=T-c,O=T-l;return c===void 0||x>=t||x<0||d&&O>=o}function v(){var T=u6();if(y(T))return w(T);a=setTimeout(v,m(T))}function w(T){return a=void 0,f&&r?p(T):(r=i=void 0,s)}function S(){a!==void 0&&clearTimeout(a),l=0,r=c=i=a=void 0}function C(){return a===void 0?s:w(u6())}function E(){var T=u6(),x=y(T);if(r=arguments,i=this,c=T,x){if(a===void 0)return g(c);if(d)return clearTimeout(a),a=setTimeout(v,t),p(c)}return a===void 0&&(a=setTimeout(v,t)),s}return E.cancel=S,E.flush=C,E}var hit="Expected a function";function pit(e,t,n){var r=!0,i=!0;if(typeof e!="function")throw new TypeError(hit);return $I(n)&&(r="leading"in n?!!n.leading:r,i="trailing"in n?!!n.trailing:i),Vx(e,t,{leading:r,maxWait:t,trailing:i})}var cy=function(){return cy=Object.assign||function(t){for(var n,r=1,i=arguments.length;r<i;r++){n=arguments[r];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t},cy.apply(this,arguments)};function Wye(e){return!e||!e.ownerDocument||!e.ownerDocument.defaultView?window:e.ownerDocument.defaultView}function qye(e){return!e||!e.ownerDocument?document:e.ownerDocument}var Gye=function(e){var t={},n=Array.prototype.reduce.call(e,function(r,i){var o=i.name.match(/data-simplebar-(.+)/);if(o){var s=o[1].replace(/\W+(.)/g,function(a,c){return c.toUpperCase()});switch(i.value){case"true":r[s]=!0;break;case"false":r[s]=!1;break;case void 0:r[s]=!0;break;default:r[s]=i.value}}return r},t);return n};function Kye(e,t){var n;e&&(n=e.classList).add.apply(n,t.split(" "))}function Yye(e,t){e&&t.split(" ").forEach(function(n){e.classList.remove(n)})}function Qye(e){return".".concat(e.split(" ").join("."))}var LH=!!(typeof window<"u"&&window.document&&window.document.createElement),mit=Object.freeze({__proto__:null,addClasses:Kye,canUseDOM:LH,classNamesToQuery:Qye,getElementDocument:qye,getElementWindow:Wye,getOptions:Gye,removeClasses:Yye}),F0=null,Nee=null;LH&&window.addEventListener("resize",function(){Nee!==window.devicePixelRatio&&(Nee=window.devicePixelRatio,F0=null)});function Mee(){if(F0===null){if(typeof document>"u")return F0=0,F0;var e=document.body,t=document.createElement("div");t.classList.add("simplebar-hide-scrollbar"),e.appendChild(t);var n=t.getBoundingClientRect().right;e.removeChild(t),F0=n}return F0}var jh=Wye,d6=qye,git=Gye,Uh=Kye,Bh=Yye,la=Qye,zw=(function(){function e(t,n){n===void 0&&(n={});var r=this;if(this.removePreventClickId=null,this.minScrollbarWidth=20,this.stopScrollDelay=175,this.isScrolling=!1,this.isMouseEntering=!1,this.isDragging=!1,this.scrollXTicking=!1,this.scrollYTicking=!1,this.wrapperEl=null,this.contentWrapperEl=null,this.contentEl=null,this.offsetEl=null,this.maskEl=null,this.placeholderEl=null,this.heightAutoObserverWrapperEl=null,this.heightAutoObserverEl=null,this.rtlHelpers=null,this.scrollbarWidth=0,this.resizeObserver=null,this.mutationObserver=null,this.elStyles=null,this.isRtl=null,this.mouseX=0,this.mouseY=0,this.onMouseMove=function(){},this.onWindowResize=function(){},this.onStopScrolling=function(){},this.onMouseEntered=function(){},this.onScroll=function(){var i=jh(r.el);r.scrollXTicking||(i.requestAnimationFrame(r.scrollX),r.scrollXTicking=!0),r.scrollYTicking||(i.requestAnimationFrame(r.scrollY),r.scrollYTicking=!0),r.isScrolling||(r.isScrolling=!0,Uh(r.el,r.classNames.scrolling)),r.showScrollbar("x"),r.showScrollbar("y"),r.onStopScrolling()},this.scrollX=function(){r.axis.x.isOverflowing&&r.positionScrollbar("x"),r.scrollXTicking=!1},this.scrollY=function(){r.axis.y.isOverflowing&&r.positionScrollbar("y"),r.scrollYTicking=!1},this._onStopScrolling=function(){Bh(r.el,r.classNames.scrolling),r.options.autoHide&&(r.hideScrollbar("x"),r.hideScrollbar("y")),r.isScrolling=!1},this.onMouseEnter=function(){r.isMouseEntering||(Uh(r.el,r.classNames.mouseEntered),r.showScrollbar("x"),r.showScrollbar("y"),r.isMouseEntering=!0),r.onMouseEntered()},this._onMouseEntered=function(){Bh(r.el,r.classNames.mouseEntered),r.options.autoHide&&(r.hideScrollbar("x"),r.hideScrollbar("y")),r.isMouseEntering=!1},this._onMouseMove=function(i){r.mouseX=i.clientX,r.mouseY=i.clientY,(r.axis.x.isOverflowing||r.axis.x.forceVisible)&&r.onMouseMoveForAxis("x"),(r.axis.y.isOverflowing||r.axis.y.forceVisible)&&r.onMouseMoveForAxis("y")},this.onMouseLeave=function(){r.onMouseMove.cancel(),(r.axis.x.isOverflowing||r.axis.x.forceVisible)&&r.onMouseLeaveForAxis("x"),(r.axis.y.isOverflowing||r.axis.y.forceVisible)&&r.onMouseLeaveForAxis("y"),r.mouseX=-1,r.mouseY=-1},this._onWindowResize=function(){r.scrollbarWidth=r.getScrollbarWidth(),r.hideNativeScrollbar()},this.onPointerEvent=function(i){if(!(!r.axis.x.track.el||!r.axis.y.track.el||!r.axis.x.scrollbar.el||!r.axis.y.scrollbar.el)){var o,s;r.axis.x.track.rect=r.axis.x.track.el.getBoundingClientRect(),r.axis.y.track.rect=r.axis.y.track.el.getBoundingClientRect(),(r.axis.x.isOverflowing||r.axis.x.forceVisible)&&(o=r.isWithinBounds(r.axis.x.track.rect)),(r.axis.y.isOverflowing||r.axis.y.forceVisible)&&(s=r.isWithinBounds(r.axis.y.track.rect)),(
1507o||s)&&(i.stopPropagation(),i.type==="pointerdown"&&i.pointerType!=="touch"&&(o&&(r.axis.x.scrollbar.rect=r.axis.x.scrollbar.el.getBoundingClientRect(),r.isWithinBounds(r.axis.x.scrollbar.rect)?r.onDragStart(i,"x"):r.onTrackClick(i,"x")),s&&(r.axis.y.scrollbar.rect=r.axis.y.scrollbar.el.getBoundingClientRect(),r.isWithinBounds(r.axis.y.scrollbar.rect)?r.onDragStart(i,"y"):r.onTrackClick(i,"y"))))}},this.drag=function(i){var o,s,a,c,l,u,d,f,p,g,m;if(!(!r.draggedAxis||!r.contentWrapperEl)){var y,v=r.axis[r.draggedAxis].track,w=(s=(o=v.rect)===null||o===void 0?void 0:o[r.axis[r.draggedAxis].sizeAttr])!==null&&s!==void 0?s:0,S=r.axis[r.draggedAxis].scrollbar,C=(c=(a=r.contentWrapperEl)===null||a===void 0?void 0:a[r.axis[r.draggedAxis].scrollSizeAttr])!==null&&c!==void 0?c:0,E=parseInt((u=(l=r.elStyles)===null||l===void 0?void 0:l[r.axis[r.draggedAxis].sizeAttr])!==null&&u!==void 0?u:"0px",10);i.preventDefault(),i.stopPropagation(),r.draggedAxis==="y"?y=i.pageY:y=i.pageX;var T=y-((f=(d=v.rect)===null||d===void 0?void 0:d[r.axis[r.draggedAxis].offsetAttr])!==null&&f!==void 0?f:0)-r.axis[r.draggedAxis].dragOffset;T=r.draggedAxis==="x"&&r.isRtl?((g=(p=v.rect)===null||p===void 0?void 0:p[r.axis[r.draggedAxis].sizeAttr])!==null&&g!==void 0?g:0)-S.size-T:T;var x=T/(w-S.size),O=x*(C-E);r.draggedAxis==="x"&&r.isRtl&&(O=!((m=e.getRtlHelpers())===null||m===void 0)&&m.isScrollingToNegative?-O:O),r.contentWrapperEl[r.axis[r.draggedAxis].scrollOffsetAttr]=O}},this.onEndDrag=function(i){r.isDragging=!1;var o=d6(r.el),s=jh(r.el);i.preventDefault(),i.stopPropagation(),Bh(r.el,r.classNames.dragging),r.onStopScrolling(),o.removeEventListener("mousemove",r.drag,!0),o.removeEventListener("mouseup",r.onEndDrag,!0),r.removePreventClickId=s.setTimeout(function(){o.removeEventListener("click",r.preventClick,!0),o.removeEventListener("dblclick",r.preventClick,!0),r.removePreventClickId=null})},this.preventClick=function(i){i.preventDefault(),i.stopPropagation()},this.el=t,this.options=cy(cy({},e.defaultOptions),n),this.classNames=cy(cy({},e.defaultOptions.classNames),n.classNames),this.axis={x:{scrollOffsetAttr:"scrollLeft",sizeAttr:"width",scrollSizeAttr:"scrollWidth",offsetSizeAttr:"offsetWidth",offsetAttr:"left",overflowAttr:"overflowX",dragOffset:0,isOverflowing:!0,forceVisible:!1,track:{size:null,el:null,rect:null,isVisible:!1},scrollbar:{size:null,el:null,rect:null,isVisible:!1}},y:{scrollOffsetAttr:"scrollTop",sizeAttr:"height",scrollSizeAttr:"scrollHeight",offsetSizeAttr:"offsetHeight",offsetAttr:"top",overflowAttr:"overflowY",dragOffset:0,isOverflowing:!0,forceVisible:!1,track:{size:null,el:null,rect:null,isVisible:!1},scrollbar:{size:null,el:null,rect:null,isVisible:!1}}},typeof this.el!="object"||!this.el.nodeName)throw new Error("Argument passed to SimpleBar must be an HTML element instead of ".concat(this.el));this.onMouseMove=pit(this._onMouseMove,64),this.onWindowResize=Vx(this._onWindowResize,64,{leading:!0}),this.onStopScrolling=Vx(this._onStopScrolling,this.stopScrollDelay),this.onMouseEntered=Vx(this._onMouseEntered,this.stopScrollDelay),this.init()}return e.getRtlHelpers=function(){if(e.rtlHelpers)return e.rtlHelpers;var t=document.createElement("div");t.innerHTML='<div class="simplebar-dummy-scrollbar-size"><div></div></div>';var n=t.firstElementChild,r=n==null?void 0:n.firstElementChild;if(!r)return null;document.body.appendChild(n),n.scrollLeft=0;var i=e.getOffset(n),o=e.getOffset(r);n.scrollLeft=-999;var s=e.getOffset(r);return document.body.removeChild(n),e.rtlHelpers={isScrollOriginAtZero:i.left!==o.left,isScrollingToNegative:o.left!==s.left},e.rtlHelpers},e.prototype.getScrollbarWidth=function(){try{return this.contentWrapperEl&&getComputedStyle(this.contentWrapperEl,"::-webkit-scrollbar").display==="none"||"scrollbarWidth"in document.documentElement.style||"-ms-overflow-style"in document.documentElement.style?0:Mee()}catch{return Mee()}},e.getOffset=function(t){var n=t.getBoundingClientRect(),r=d6(t),i=jh(t);return{top:n.top+(i.pageYOffset||r.documentElement.scrollTop),left:n.left+(i.pageXOffset||r.documentElement.scrollLeft)}},e.prototype.init=function(){LH&&(this.initDOM(),this.rtlHelpers=e.getRtlHelpers(),this.scrollbarWidth=this.getScrollbarWidth(),this.recalculate(),this.initListeners())},e.prototype.initDOM=function(){var t,n;this.wrapperEl=this.el.querySelector(la(this.classNames.wrapper)),this.contentWrapperEl=this.options.scrollableNode||this.el.querySelector(la(this.classNames.c
1507ontentWrapper)),this.contentEl=this.options.contentNode||this.el.querySelector(la(this.classNames.contentEl)),this.offsetEl=this.el.querySelector(la(this.classNames.offset)),this.maskEl=this.el.querySelector(la(this.classNames.mask)),this.placeholderEl=this.findChild(this.wrapperEl,la(this.classNames.placeholder)),this.heightAutoObserverWrapperEl=this.el.querySelector(la(this.classNames.heightAutoObserverWrapperEl)),this.heightAutoObserverEl=this.el.querySelector(la(this.classNames.heightAutoObserverEl)),this.axis.x.track.el=this.findChild(this.el,"".concat(la(this.classNames.track)).concat(la(this.classNames.horizontal))),this.axis.y.track.el=this.findChild(this.el,"".concat(la(this.classNames.track)).concat(la(this.classNames.vertical))),this.axis.x.scrollbar.el=((t=this.axis.x.track.el)===null||t===void 0?void 0:t.querySelector(la(this.classNames.scrollbar)))||null,this.axis.y.scrollbar.el=((n=this.axis.y.track.el)===null||n===void 0?void 0:n.querySelector(la(this.classNames.scrollbar)))||null,this.options.autoHide||(Uh(this.axis.x.scrollbar.el,this.classNames.visible),Uh(this.axis.y.scrollbar.el,this.classNames.visible))},e.prototype.initListeners=function(){var t=this,n,r=jh(this.el);if(this.el.addEventListener("mouseenter",this.onMouseEnter),this.el.addEventListener("pointerdown",this.onPointerEvent,!0),this.el.addEventListener("mousemove",this.onMouseMove),this.el.addEventListener("mouseleave",this.onMouseLeave),(n=this.contentWrapperEl)===null||n===void 0||n.addEventListener("scroll",this.onScroll),r.addEventListener("resize",this.onWindowResize),!!this.contentEl){if(window.ResizeObserver){var i=!1,o=r.ResizeObserver||ResizeObserver;this.resizeObserver=new o(function(){i&&r.requestAnimationFrame(function(){t.recalculate()})}),this.resizeObserver.observe(this.el),this.resizeObserver.observe(this.contentEl),r.requestAnimationFrame(function(){i=!0})}this.mutationObserver=new r.MutationObserver(function(){r.requestAnimationFrame(function(){t.recalculate()})}),this.mutationObserver.observe(this.contentEl,{childList:!0,subtree:!0,characterData:!0})}},e.prototype.recalculate=function(){if(!(!this.heightAutoObserverEl||!this.contentEl||!this.contentWrapperEl||!this.wrapperEl||!this.placeholderEl)){var t=jh(this.el);this.elStyles=t.getComputedStyle(this.el),this.isRtl=this.elStyles.direction==="rtl";var n=this.contentEl.offsetWidth,r=this.heightAutoObserverEl.offsetHeight<=1,i=this.heightAutoObserverEl.offsetWidth<=1||n>0,o=this.contentWrapperEl.offsetWidth,s=this.elStyles.overflowX,a=this.elStyles.overflowY;this.contentEl.style.padding="".concat(this.elStyles.paddingTop," ").concat(this.elStyles.paddingRight," ").concat(this.elStyles.paddingBottom," ").concat(this.elStyles.paddingLeft),this.wrapperEl.style.margin="-".concat(this.elStyles.paddingTop," -").concat(this.elStyles.paddingRight," -").concat(this.elStyles.paddingBottom," -").concat(this.elStyles.paddingLeft);var c=this.contentEl.scrollHeight,l=this.contentEl.scrollWidth;this.contentWrapperEl.style.height=r?"auto":"100%",this.placeholderEl.style.width=i?"".concat(n||l,"px"):"auto",this.placeholderEl.style.height="".concat(c,"px");var u=this.contentWrapperEl.offsetHeight;this.axis.x.isOverflowing=n!==0&&l>n,this.axis.y.isOverflowing=c>u,this.axis.x.isOverflowing=s==="hidden"?!1:this.axis.x.isOverflowing,this.axis.y.isOverflowing=a==="hidden"?!1:this.axis.y.isOverflowing,this.axis.x.forceVisible=this.options.forceVisible==="x"||this.options.forceVisible===!0,this.axis.y.forceVisible=this.options.forceVisible==="y"||this.options.forceVisible===!0,this.hideNativeScrollbar();var d=this.axis.x.isOverflowing?this.scrollbarWidth:0,f=this.axis.y.isOverflowing?this.scrollbarWidth:0;this.axis.x.isOverflowing=this.axis.x.isOverflowing&&l>o-f,this.axis.y.isOverflowing=this.axis.y.isOverflowing&&c>u-d,this.axis.x.scrollbar.size=this.getScrollbarSize("x"),this.axis.y.scrollbar.size=this.getScrollbarSize("y"),this.axis.x.scrollbar.el&&(this.axis.x.scrollbar.el.style.width="".concat(this.axis.x.scrollbar.size,"px")),this.axis.y.scrollbar.el&&(this.axis.y.scrollbar.el.style.height="".concat(this.axis.y.scrollbar.size,"px")),this.positionScrollbar("x"),this.positionScrollbar("y"),this.toggleTrackVisibility("x"),this.toggleTrackVisibility("y")}},e.prototype.getScrollbarSize=function(t){var n,r;if(t===void 0&&(t="y"),!this.axis[t].isOverflowing||!this.contentEl)return 0;var i=this.contentEl[this.axis[t].scrollSizeAttr],o=(r=(n=this.axis[t].track.el)===null||n===void 0?void 0:n[this.axis[t].offsetSizeAttr])!==null&&r!==void 0?r:0,s=o/i,a;return a=Math.max(~~(s*o),this.options.scrollbarMinSize),this.options.scrollbarMaxSize&&(a=Math.min(a,this.options.scrollbarMaxSize)),a},e.prototype.positionScrollbar=function(t){var n,r,i;t===void 0&&(t="y");var o=this.axis[t].scrollbar;if(!(!this.axis[t].isOverflowing||!this.contentWrapperEl||!o.el||!this.elStyles)){var s=this.contentWrapperEl[this.axis[t].scrollSizeAttr],a=((n=this.axis[t].track.el)===null||n===void 0?void 0:n[this.axis[t].offsetSizeAttr])||0,c=parseInt(this.elStyles[this.axis[t].sizeAttr],10),l=this.contentWrapperEl[this.axis[t].scrollOffsetAttr];l=t==="x"&&this.isRtl&&(!((r=e.getRtlHelpers())===null||r===void 0)&&r.isScrollOriginAtZero)?-l:l,t==="x"&&this.isRtl&&(l=!((i=e.getRtlHelpers())===null||i===void 0)&&i.isScrollingToNegative?l:-l);var u=l/(s-c),d=~~((a-o.size)*u);d=t==="x"&&this.isRtl?-d+(a-o.size):d,o.el.style.transform=t==="x"?"translate3d(".concat(d,"px, 0, 0)"):"translate3d(0, ".concat(d,"px, 0)")}},e.prototype.toggleTrackVisibility=function(t){t===void 0&&(t="y");var n=this.axis[t].track.el,r=this.axis[t].scrollbar.el;!n||!r||!this.contentWrapperEl||(this.axis[t].isOverflowing||this.axis[t].forceVisible?(n.style.visibility="visible",this.contentWrapperEl.style[this.axis[t].overflowAttr]="scroll",this.el.classList.add("".concat(this.classNames.scrollable,"-").concat(t))):(n.style.visibility="hidden",this.contentWrapperEl.style[this.axis[t].overflowAttr]="hidden",this.el.classList.remove("".concat(this.classNames.scrollable,"-").concat(t))),this.axis[t].isOverflowing?r.style.display="block":r.style.display="none")},e.prototype.showScrollbar=function(t){t===void 0&&(t="y"),this.axis[t].isOverflowing&&!this.axis[t].scrollbar.isVisible&&(Uh(this.axis[t].scrollbar.el,this.classNames.visible),this.axis[t].scrollbar.isVisible=!0)},e.prototype.hideScrollbar=function(t){t===void 0&&(t="y"),!this.isDragging&&this.axis[t].isOverflowing&&this.axis[t].scrollbar.isVisible&&(Bh(this.axis[t].scrollbar.el,this.classNames.visible),this.axis[t].scrollbar.isVisible=!1)},e.prototype.hideNativeScrollbar=function(){this.offsetEl&&(this.offsetEl.style[this.isRtl?"left":"right"]=this.axis.y.isOverflowing||this.axis.y.forceVisible?"-".concat(this.scrollbarWidth,"px"):"0px",this.offsetEl.style.bottom=this.axis.x.isOverflowing||this.axis.x.forceVisible?"-".concat(this.scrollbarWidth,"px"):"0px")},e.prototype.onMouseMoveForAxis=function(t){t===void 0&&(t="y");var n=this.axis[t];!n.track.el||!n.scrollbar.el||(n.track.rect=n.track.el.getBoundingClientRect(),n.scrollbar.rect=n.scrollbar.el.getBoundingClientRect(),this.isWithinBounds(n.track.rect)?(this.showScrollbar(t),Uh(n.track.el,this.classNames.hover),this.isWithinBounds(n.scrollbar.rect)?Uh(n.scrollbar.el,this.classNames.hover):Bh(n.scrollbar.el,this.classNames.hover)):(Bh(n.track.el,this.classNames.hover),this.options.autoHide&&this.hideScrollbar(t)))},e.prototype.onMouseLeaveForAxis=function(t){t===void 0&&(t="y"),Bh(this.axis[t].track.el,this.classNames.hover),Bh(this.axis[t].scrollbar.el,this.classNames.hover),this.options.autoHide&&this.hideScrollbar(t)},e.prototype.onDragStart=function(t,n){var r;n===void 0&&(n="y"),this.isDragging=!0;var i=d6(this.el),o=jh(this.el),s=this.axis[n].scrollbar,a=n==="y"?t.pageY:t.pageX;this.axis[n].dragOffset=a-(((r=s.rect)===null||r===void 0?void 0:r[this.axis[n].offsetAttr])||0),this.draggedAxis=n,Uh(this.el,this.classNames.dragging),i.addEventListener("mousemove",this.drag,!0),i.addEventListener("mouseup",this.onEndDrag,!0),this.removePreventClickId===null?(i.addEventListener("click",this.preventClick,!0),i.addEventListener("dblclick",this.preventClick,!0)):(o.clearTimeout(this.removePreventClickId),this.removePreventClickId=null)},e.prototype.onTrackClick=function(t,n){var r=this,i,o,s,a;n===void 0&&(n="y");var c=this.axis[n];if(!(!this.options.clickOnTrack||!c.scrollbar.el||!this.contentWrapperEl)){t.preventDefault();var l=jh(this.el);this.axis[n].scrollbar.rect=c.scrollbar.el.getBoundingClientRect();var u=this.axis[n].scrollbar,d=(o=(i=u.rect)===null||i===void 0?void 0:i[this.axis[n].offsetAttr])!==null&&o!==void 0?o:0,f=parseInt((a=(s=this.elStyles)===null||s===void 0?void 0:s[this.axis[n].sizeAttr])!==null&&a!==void 0?a:"0px",10),p=this.contentWrapperEl[this.axis[n].scrollOffsetAttr],g=n==="y"?this.mouseY-d:this.mouseX-d,m=g<0?-1:1,y=m===-1?p-f:p+f,v=40,w=function(){r.contentWrapperEl&&(m===-1?p>y&&(p-=v,r.contentWrapperEl[r.axis[n].scrollOffsetAttr]=p,l.requestAnimationFrame(w)):p<y&&(p+=v,r.contentWrapperEl[r.axis[n].scrollOffsetAttr]=p,l.requestAnimationFrame(w)))};w()}},e.prototype.getContentElement=function(){return this.contentEl},e.prototype.getScrollElement=function(){return this.contentWrapperEl},e.prototype.removeListeners=function(){var t=jh(this.el);this.el.removeEventListener("mouseenter",this.onMouseEnter),this.el.removeEventListener("pointerdown",this.onPointerEvent,!0),this.el.removeEventListener("mousemove",this.onMouseMove),this.el.removeEventListener("mouseleave",this.onMouseLeave),this.contentWrapperEl&&this.contentWrapperEl.removeEventListener("scroll",this.onScroll),t.removeEventListener("resize",this.onWindowResize),this.mutationObserver&&this.mutationObserver.disconnect(),this.resizeObserver&&this.resizeObserver.disconnect(),this.onMouseMove.cancel(),this.onWindowResize.cancel(),this.onStopScrolling.cancel(),this.onMouseEntered.cancel()},e.prototype.unMount=function(){this.removeListeners()},e.prototype.isWithinBounds=function(t){return this.mouseX>=t.left&&this.mouseX<=t.left+t.width&&this.mouseY>=t.top&&this.mouseY<=t.top+t.height},e.prototype.findChild=function(t,n){var r=t.matches||t.webkitMatchesSelector||t.mozMatchesSelector||t.msMatchesSelector;return Array.prototype.filter.call(t.children,function(i){return r.call(i,n)})[0]}
1507,e.rtlHelpers=null,e.defaultOptions={forceVisible:!1,clickOnTrack:!0,scrollbarMinSize:25,scrollbarMaxSize:0,ariaLabel:"scrollable content",tabIndex:0,classNames:{contentEl:"simplebar-content",contentWrapper:"simplebar-content-wrapper",offset:"simplebar-offset",mask:"simplebar-mask",wrapper:"simplebar-wrapper",placeholder:"simplebar-placeholder",scrollbar:"simplebar-scrollbar",track:"simplebar-track",heightAutoObserverWrapperEl:"simplebar-height-auto-observer-wrapper",heightAutoObserverEl:"simplebar-height-auto-observer",visible:"simplebar-visible",horizontal:"simplebar-horizontal",vertical:"simplebar-vertical",hover:"simplebar-hover",dragging:"simplebar-dragging",scrolling:"simplebar-scrolling",scrollable:"simplebar-scrollable",mouseEntered:"simplebar-mouse-entered"},scrollableNode:null,contentNode:null,autoHide:!0},e.getOptions=git,e.helpers=mit,e})(),Wa=function(){return Wa=Object.assign||function(t){for(var n,r=1,i=arguments.length;r<i;r++){n=arguments[r];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t},Wa.apply(this,arguments)};function vit(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}var QP=b.forwardRef(function(e,t){var n=e.children,r=e.scrollableNodeProps,i=r===void 0?{}:r,o=vit(e,["children","scrollableNodeProps"]),s=b.useRef(),a=b.useRef(),c=b.useRef(),l={},u={};Object.keys(o).forEach(function(p){Object.prototype.hasOwnProperty.call(zw.defaultOptions,p)?l[p]=o[p]:u[p]=o[p]});var d=Wa(Wa({},zw.defaultOptions.classNames),l.classNames),f=Wa(Wa({},i),{className:"".concat(d.contentWrapper).concat(i.className?" ".concat(i.className):""),tabIndex:l.tabIndex||zw.defaultOptions.tabIndex,role:"region","aria-label":l.ariaLabel||zw.defaultOptions.ariaLabel});return b.useEffect(function(){var p;return a.current=f.ref?f.ref.current:a.current,s.current&&(p=new zw(s.current,Wa(Wa(Wa({},l),a.current&&{scrollableNode:a.current}),c.current&&{contentNode:c.current})),typeof t=="function"?t(p):t&&(t.current=p)),function(){p==null||p.unMount(),p=null,typeof t=="function"&&t(null)}},[]),b.createElement("div",Wa({"data-simplebar":"init",ref:s},u),b.createElement("div",{className:d.wrapper},b.createElement("div",{className:d.heightAutoObserverWrapperEl},b.createElement("div",{className:d.heightAutoObserverEl})),b.createElement("div",{className:d.mask},b.createElement("div",{className:d.offset},typeof n=="function"?n({scrollableNodeRef:a,scrollableNodeProps:Wa(Wa({},f),{ref:a}),contentNodeRef:c,contentNodeProps:{className:d.contentEl,ref:c}}):b.createElement("div",Wa({},f),b.createElement("div",{className:d.contentEl},n)))),b.createElement("div",{className:d.placeholder})),b.createElement("div",{className:"".concat(d.track," simplebar-horizontal")},b.createElement("div",{className:d.scrollbar})),b.createElement("div",{className:"".concat(d.track," simplebar-vertical")},b.createElement("div",{className:d.scrollbar})))});QP.displayName="SimpleBar";const yit="_ImproveTranslationDialog_djzjb_1",bit="_CorrectTranslation_djzjb_7",wit="_ImproveTranslationButtons_djzjb_29",Sit="_Disclaimer_djzjb_42",UT={ImproveTranslationDialog:yit,CorrectTranslation:bit,ImproveTranslationButtons:wit,Disclaimer:Sit},_it="_DialogOverlay_1aiwt_1",Cit="_DialogTitle_1aiwt_8",Eit="_Close_1aiwt_20",Tit="_DialogContent_1aiwt_38",BT={DialogOverlay:_it,DialogTitle:Cit,Close:Eit,DialogContent:Tit};function Ho(e,t,{checkForDefaultPrevented:n=!0}={}){return function(i){if(e==null||e(i),n===!1||!i.defaultPrevented)return t==null?void 0:t(i)}}function kit(e,t){typeof e=="function"?e(t):e!=null&&(e.current=t)}function Xye(...e){return t=>e.forEach(n=>kit(n,t))}function Ma(...e){return b.useCallback(Xye(...e),e)}function xit(e,t){const n=b.createContext(t),r=o=>{const{children:s,...a}=o,c=b.useMemo(()=>a,Object.values(a));return h.jsx(n.Provider,{value:c,children:s})};r.displayName=e+"Provider";function i(o){const s=b.useContext(n);if(s)return s;if(t!==void 0)return t;throw new Error(`\`${o}\` must be used within \`${e}\``)}return[r,i]}function Ob(e,t=[]){let n=[];function r(o,s){const a=b.createContext(s),c=n.length;n=[...n,s];const l=d=>{var v;const{scope:f,children:p,...g}=d,m=((v=f==null?void 0:f[e])==null?void 0:v[c])||a,y=b.useMemo(()=>g,Object.values(g));return h.jsx(m.Provider,{value:y,children:p})};l.displayName=o+"Provider";function u(d,f){var m;const p=((m=f==null?void 0:f[e])==null?void 0:m[c])||a,g=b.useContext(p);if(g)return g;if(s!==void 0)return s;throw new Error(`\`${d}\` must be used within \`${o}\``)}return[l,u]}const i=()=>{const o=n.map(s=>b.createContext(s));return function(a){const c=(a==null?void 0:a[e])||o;return b.useMemo(()=>({[`__scope${e}`]:{...a,[e]:c}}),[a,c])}};return i.scopeName=e,[r,Ait(i,...t)]}function Ait(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(i=>({useScope:i(),scopeName:i.scopeName}));return function(o){const s=r.reduce((a,{useScope:c,scopeName:l})=>{const d=c(o)[`__scope${l}`];return{...a,...d}},{});return b.useMemo(()=>({[`__scope${t.scopeName}`]:s}),[s])}};return n.scopeName=t.scopeName,n}var Jc=globalThis!=null&&globalThis.document?b.useLayoutEffect:()=>{},Iit=k_.useId||(()=>{}),Rit=0;function Gp(e){const[t,n]=b.useState(Iit());return Jc(()=>{n(r=>r??String(Rit++))},[e]),e||(t?`radix-${t}`:"")}function ou(e){const t=b.useRef(e);return b.useEffect(()=>{t.current=e}),b.useMemo(()=>(...n)=>{var r;return(r=t.current)==null?void 0:r.call(t,...n)},[])}function XP({prop:e,defaultProp:t,onChange:n=()=>{}}){const[r,i]=Pit({defaultProp:t,onChange:n}),o=e!==void 0,s=o?e:r,a=ou(n),c=b.useCallback(l=>{if(o){const d=typeof l=="function"?l(e):l;d!==e&&a(d)}else i(l)},[o,e,i,a]);return[s,c]}function Pit({defaultProp:e,onChange:t}){const n=b.useState(e),[r]=n,i=b.useRef(r),o=ou(t);return b.useEffect(()=>{i.current!==r&&(o(r),i.current=r)},[r,i,o]),n}var JP=b.forwardRef((e,t)=>
vendor: 12,131 bytes, line 1507
1507{const{children:n,...r}=e,i=b.Children.toArray(n),o=i.find(Nit);if(o){const s=o.props.children,a=i.map(c=>c===o?b.Children.count(s)>1?b.Children.only(null):b.isValidElement(s)?s.props.children:null:c);return h.jsx(S7,{...r,ref:t,children:b.isValidElement(s)?b.cloneElement(s,void 0,a):null})}return h.jsx(S7,{...r,ref:t,children:n})});JP.displayName="Slot";var S7=b.forwardRef((e,t)=>{const{children:n,...r}=e;if(b.isValidElement(n)){const i=Dit(n);return b.cloneElement(n,{...Mit(r,n.props),ref:t?Xye(t,i):i})}return b.Children.count(n)>1?b.Children.only(null):null});S7.displayName="SlotClone";var Oit=({children:e})=>h.jsx(h.Fragment,{children:e});function Nit(e){return b.isValidElement(e)&&e.type===Oit}function Mit(e,t){const n={...t};for(const r in t){const i=e[r],o=t[r];/^on[A-Z]/.test(r)?i&&o?n[r]=(...a)=>{o(...a),i(...a)}:i&&(n[r]=i):r==="style"?n[r]={...i,...o}:r==="className"&&(n[r]=[i,o].filter(Boolean).join(" "))}return{...e,...n}}function Dit(e){var r,i;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(i=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:i.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var Lit=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],oo=Lit.reduce((e,t)=>{const n=b.forwardRef((r,i)=>{const{asChild:o,...s}=r,a=o?JP:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),h.jsx(a,{...s,ref:i})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function Fit(e,t){e&&Am.flushSync(()=>e.dispatchEvent(t))}function Jye(e,t=globalThis==null?void 0:globalThis.document){const n=ou(e);b.useEffect(()=>{const r=i=>{i.key==="Escape"&&n(i)};return t.addEventListener("keydown",r,{capture:!0}),()=>t.removeEventListener("keydown",r,{capture:!0})},[n,t])}var jit="DismissableLayer",_7="dismissableLayer.update",Uit="dismissableLayer.pointerDownOutside",Bit="dismissableLayer.focusOutside",Dee,Zye=b.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),FH=b.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:i,onFocusOutside:o,onInteractOutside:s,onDismiss:a,...c}=e,l=b.useContext(Zye),[u,d]=b.useState(null),f=(u==null?void 0:u.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,p]=b.useState({}),g=Ma(t,x=>d(x)),m=Array.from(l.layers),[y]=[...l.layersWithOutsidePointerEventsDisabled].slice(-1),v=m.indexOf(y),w=u?m.indexOf(u):-1,S=l.layersWithOutsidePointerEventsDisabled.size>0,C=w>=v,E=zit(x=>{const O=x.target,A=[...l.branches].some(L=>L.contains(O));!C||A||(i==null||i(x),s==null||s(x),x.defaultPrevented||a==null||a())},f),T=Vit(x=>{const O=x.target;[...l.branches].some(L=>L.contains(O))||(o==null||o(x),s==null||s(x),x.defaultPrevented||a==null||a())},f);return Jye(x=>{w===l.layers.size-1&&(r==null||r(x),!x.defaultPrevented&&a&&(x.preventDefault(),a()))},f),b.useEffect(()=>{if(u)return n&&(l.layersWithOutsidePointerEventsDisabled.size===0&&(Dee=f.body.style.pointerEvents,f.body.style.pointerEvents="none"),l.layersWithOutsidePointerEventsDisabled.add(u)),l.layers.add(u),Lee(),()=>{n&&l.layersWithOutsidePointerEventsDisabled.size===1&&(f.body.style.pointerEvents=Dee)}},[u,f,n,l]),b.useEffect(()=>()=>{u&&(l.layers.delete(u),l.layersWithOutsidePointerEventsDisabled.delete(u),Lee())},[u,l]),b.useEffect(()=>{const x=()=>p({});return document.addEventListener(_7,x),()=>document.removeEventListener(_7,x)},[]),h.jsx(oo.div,{...c,ref:g,style:{pointerEvents:S?C?"auto":"none":void 0,...e.style},onFocusCapture:Ho(e.onFocusCapture,T.onFocusCapture),onBlurCapture:Ho(e.onBlurCapture,T.onBlurCapture),onPointerDownCapture:Ho(e.onPointerDownCapture,E.onPointerDownCapture)})});FH.displayName=jit;var $it="DismissableLayerBranch",Hit=b.forwardRef((e,t)=>{const n=b.useContext(Zye),r=b.useRef(null),i=Ma(t,r);return b.useEffect(()=>{const o=r.current;if(o)return n.branches.add(o),()=>{n.branches.delete(o)}},[n.branches]),h.jsx(oo.div,{...e,ref:i})});Hit.displayName=$it;function zit(e,t=globalThis==null?void 0:globalThis.document){const n=ou(e),r=b.useRef(!1),i=b.useRef(()=>{});return b.useEffect(()=>{const o=a=>{if(a.target&&!r.current){let c=function(){e1e(Uit,n,l,{discrete:!0})};const l={originalEvent:a};a.pointerType==="touch"?(t.removeEventListener("click",i.current),i.current=c,t.addEventListener("click",i.current,{once:!0})):c()}else t.removeEventListener("click",i.current);r.current=!1},s=window.setTimeout(()=>{t.addEventListener("pointerdown",o)},0);return()=>{window.clearTimeout(s),t.removeEventListener("pointerdown",o),t.removeEventListener("click",i.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function Vit(e,t=globalThis==null?void 0:globalThis.document){const n=ou(e),r=b.useRef(!1);return b.useEffect(()=>{const i=o=>{o.target&&!r.current&&e1e(Bit,n,{originalEvent:o},{discrete:!1})};return t.addEventListener("focusin",i),()=>t.removeEventListener("focusin",i)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function Lee(){const e=new CustomEvent(_7);document.dispatchEvent(e)}function e1e(e,t,n,{discrete:r}){const i=n.originalEvent.target,o=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&i.addEventListener(e,t,{once:!0}),r?Fit(i,o):i.dispatchEvent(o)}var f6="focusScope.autoFocusOnMount",h6="focusScope.autoFocusOnUnmount",Fee={bubbles:!1,cancelable:!0},Wit="FocusScope",jH=b.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:i,onUnmountAutoFocus:o,...s}=e,[a,c]=b.useState(null),l=ou(i),u=ou(o),d=b.useRef(null),f=Ma(t,m=>c(m)),p=b.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;b.useEffect(()=>{if(r){let m=function(S){if(p.paused||!a)return;const C=S.target;a.contains(C)?d.current=C:Kh(d.current,{select:!0})},y=function(S){if(p.paused||!a)return;const C=S.relatedTarget;C!==null&&(a.contains(C)||Kh(d.current,{select:!0}))},v=function(S){if(document.activeElement===document.body)for(const E of S)E.removedNodes.length>0&&Kh(a)};document.addEventListener("focusin",m),document.addEventListener("focusout",y);const w=new MutationObserver(v);return a&&w.observe(a,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",m),document.removeEventListener("focusout",y),w.disconnect()}}},[r,a,p.paused]),b.useEffect(()=>{if(a){Uee.add(p);const m=document.activeElement;if(!a.contains(m)){const v=new CustomEvent(f6,Fee);a.addEventListener(f6,l),a.dispatchEvent(v),v.defaultPrevented||(qit(Xit(t1e(a)),{select:!0}),document.activeElement===m&&Kh(a))}return()=>{a.removeEventListener(f6,l),setTimeout(()=>{const v=new CustomEvent(h6,Fee);a.addEventListener(h6,u),a.dispatchEvent(v),v.defaultPrevented||Kh(m??document.body,{select:!0}),a.removeEventListener(h6,u),Uee.remove(p)},0)}}},[a,l,u,p]);const g=b.useCallback(m=>{if(!n&&!r||p.paused)return;const y=m.key==="Tab"&&!m.altKey&&!m.ctrlKey&&!m.metaKey,v=document.activeElement;if(y&&v){const w=m.currentTarget,[S,C]=Git(w);S&&C?!m.shiftKey&&v===C?(m.preventDefault(),n&&Kh(S,{select:!0})):m.shiftKey&&v===S&&(m.preventDefault(),n&&Kh(C,{select:!0})):v===w&&m.preventDefault()}},[n,r,p.paused]);return h.jsx(oo.div,{tabIndex:-1,...s,ref:f,onKeyDown:g})});jH.displayName=Wit;function qit(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(Kh(r,{select:t}),document.activeElement!==n)return}function Git(e){const t=t1e(e),n=jee(t,e),r=jee(t.reverse(),e);return[n,r]}function t1e(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const i=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||i?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function jee(e,t){for(const n of e)if(!Kit(n,{upTo:t}))return n}function Kit(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function Yit(e){return e instanceof HTMLInputElement&&"select"in e}function Kh(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&Yit(e)&&t&&e.select()}}var Uee=Qit();function Qit(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=Bee(e,t),e.unshift(t)},remove(t){var n;e=Bee(e,t),(n=e[0])==null||n.resume()}}}function Bee(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function Xit(e){return e.filter(t=>t.tagName!=="A")}var Jit="Portal",UH=b.forwardRef((e,t)=>{var a;const{container:n,...r}=e,[i,o]=b.useState(!1);Jc(()=>o(!0),[]);const s=n||i&&((a=globalThis==null?void 0:globalThis.document)==null?void 0:a.body);return s?BB.createPortal(h.jsx(oo.div,{...r,ref:t}),s):null});UH.displayName=Jit;function Zit(e,t){return b.useReducer((n,r)=>t[n][r]??n,e)}var Nb=e=>{const{present:t,children:n}=e,r=eot(t),i=typeof n=="function"?n({present:r.isPresent}):b.Children.only(n),o=Ma(r.ref,tot(i));return typeof n=="function"||r.isPresent?b.cloneElement(i,{ref:o}):null};Nb.displayName="Presence";function eot(e){const[t,n]=b.useState(),r=b.useRef({}),i=b.useRef(e),o=b.useRef("none"),s=e?"mounted":"unmounted",[a,c]=Zit(s,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return b.useEffect(()=>{const l=$T(r.current);o.current=a==="mounted"?l:"none"},[a]),Jc(()=>{const l=r.current,u=i.current;if(u!==e){const f=o.current,p=$T(l);e?c("MOUNT"):p==="none"||(l==null?void 0:l.display)==="none"?c("UNMOUNT"):c(u&&f!==p?"ANIMATION_OUT":"UNMOUNT"),i.current=e}},[e,c]),Jc(()=>{if(t){let l;const u=t.ownerDocument.defaultView??window,d=p=>{const m=$T(r.current).includes(p.animationName);if(p.target===t&&m&&(c("ANIMATION_END"),!i.current)){const y=t.style.animationFillMode;t.style.animationFillMode="forwards",l=u.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=y)})}},f=p=>{p.target===t&&(o.current=$T(r.current))};return t.addEventListener("animationstart",f),t.addEventListener("animationcancel",d),t.addEventListener("animationend",d),()=>{u.clearTimeout(l),t.removeEventListener("animationstart",f),t.removeEventListener("animationcancel",d),t.removeEventListener("animationend",d)}}else c("ANIMATION_END")},[t,c]),{isPresent:["mounted","unmountSuspended"].includes(a),ref:b.useCallback(l=>{l&&(r.current=getComputedStyle(l)),n(l)},[])}}function $T(e){return(e==null?void 0:e.animationName)||"none"}function tot(e){var r,i;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(i=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:i.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var p6=0;function n1e(){b.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??$ee()),document.body.insertAdjacentElement("beforeend",e[1]??$ee()),p6++,()=>{p6===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),p6--}},[])}function $ee(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var Wx="right-scroll-bar-position",qx="width-before-scroll-bar",not="with-scroll-bars-hidden",rot="--removed-body-scroll-bar-size";function m6(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function iot(e,t){var n=b.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(r){var i=n.value;i!==r&&(n.value=r,n.callback(r,i))}}}})[0];return n.callback=t,n.facade}var oot=typeof window<"u"?b.useLayoutEffect:b.useEffect,Hee=new WeakMap;function sot(e,t){var n=iot(null,function(r){return e.forEach(function(i){return m6(i,r)})});return oot(function(){var r=Hee.get(n);if(r){var i=new Set(r),o=new Set(e),s=n.current;
vendor: 4,191 bytes, lines 1507-1522
1507i.forEach(function(a){o.has(a)||m6(a,null)}),o.forEach(function(a){i.has(a)||m6(a,s)})}Hee.set(n,e)},[e]),n}function aot(e){return e}function cot(e,t){t===void 0&&(t=aot);var n=[],r=!1,i={read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(o){var s=t(o,r);return n.push(s),function(){n=n.filter(function(a){return a!==s})}},assignSyncMedium:function(o){for(r=!0;n.length;){var s=n;n=[],s.forEach(o)}n={push:function(a){return o(a)},filter:function(){return n}}},assignMedium:function(o){r=!0;var s=[];if(n.length){var a=n;n=[],a.forEach(o),s=n}var c=function(){var u=s;s=[],u.forEach(o)},l=function(){return Promise.resolve().then(c)};l(),n={push:function(u){s.push(u),l()},filter:function(u){return s=s.filter(u),n}}}};return i}function lot(e){e===void 0&&(e={});var t=cot(null);return t.options=Fc({async:!0,ssr:!1},e),t}var r1e=function(e){var t=e.sideCar,n=SE(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return b.createElement(r,Fc({},n))};r1e.isSideCarExport=!0;function uot(e,t){return e.useMedium(t),r1e}var i1e=lot(),g6=function(){},ZP=b.forwardRef(function(e,t){var n=b.useRef(null),r=b.useState({onScrollCapture:g6,onWheelCapture:g6,onTouchMoveCapture:g6}),i=r[0],o=r[1],s=e.forwardProps,a=e.children,c=e.className,l=e.removeScrollBar,u=e.enabled,d=e.shards,f=e.sideCar,p=e.noIsolation,g=e.inert,m=e.allowPinchZoom,y=e.as,v=y===void 0?"div":y,w=e.gapMode,S=SE(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as","gapMode"]),C=f,E=sot([n,t]),T=Fc(Fc({},S),i);return b.createElement(b.Fragment,null,u&&b.createElement(C,{sideCar:i1e,removeScrollBar:l,shards:d,noIsolation:p,inert:g,setCallbacks:o,allowPinchZoom:!!m,lockRef:n,gapMode:w}),s?b.cloneElement(b.Children.only(a),Fc(Fc({},T),{ref:E})):b.createElement(v,Fc({},T,{className:c,ref:E}),a))});ZP.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};ZP.classNames={fullWidth:qx,zeroRight:Wx};var dot=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function fot(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=dot();return t&&e.setAttribute("nonce",t),e}function hot(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function pot(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var mot=function(){var e=0,t=null;return{add:function(n){e==0&&(t=fot())&&(hot(t,n),pot(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},got=function(){var e=mot();return function(t,n){b.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},o1e=function(){var e=got(),t=function(n){var r=n.styles,i=n.dynamic;return e(r,i),null};return t},vot={left:0,top:0,right:0,gap:0},v6=function(e){return parseInt(e||"",10)||0},yot=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],r=t[e==="padding"?"paddingTop":"marginTop"],i=t[e==="padding"?"paddingRight":"marginRight"];return[v6(n),v6(r),v6(i)]},bot=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return vot;var t=yot(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},wot=o1e(),Fy="data-scroll-locked",Sot=function(e,t,n,r){var i=e.left,o=e.top,s=e.right,a=e.gap;return n===void 0&&(n="margin"),`
1508  .`.concat(not,` {
1509   overflow: hidden `).concat(r,`;
1510   padding-right: `).concat(a,"px ").concat(r,`;
1511  }
1512  body[`).concat(Fy,`] {
1513    overflow: hidden `).concat(r,`;
1514    overscroll-behavior: contain;
1515    `).concat([t&&"position: relative ".concat(r,";"),n==="margin"&&`
1516    padding-left: `.concat(i,`px;
1517    padding-top: `).concat(o,`px;
1518    padding-right: `).concat(s,`px;
1519    margin-left:0;
1520    margin-top:0;
1521    margin-right: `).concat(a,"px ").concat(r,`;
1522    `),n==="padding"&&"padding-right: ".concat(a,"px ").concat(r,";
1522")].filter(Boolean).join(""),`
1523  }
1524  
1525  .`).concat(Wx,` {
1526    right: `).concat(a,"px ").concat(r,`;
1527  }
1528  
1529  .`).concat(qx,` {
1530    margin-right: `).concat(a,"px ").concat(r,`;
1531  }
1532  
1533  .`).concat(Wx," .").concat(Wx,` {
1534    right: 0 `).concat(r,`;
1535  }
1536  
1537  .`).concat(qx," .").concat(qx,` {
1538    margin-right: 0 `).concat(r,`;
1539  }
1540  
1541  body[`).concat(Fy,`] {
1542    `).concat(rot,": ").concat(a,`px;
1543  }
1544`)},zee=function(){var e=parseInt(document.body.getAttribute(Fy)||"0",10);return isFinite(e)?e:0},_ot=function(){b.useEffect(function(){return document.body.setAttribute(Fy,(zee()+1).toString()),function(){var e=zee()-1;e<=0?document.body.removeAttribute(Fy):document.body.setAttribute(Fy,e.toString())}},[])},Cot=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,i=r===void 0?"margin":r;_ot();var o=b.useMemo(function(){return bot(i)},[i]);return b.createElement(wot,{styles:Sot(o,!t,i,n?"":"!important")})},C7=!1;if(typeof window<"u")try{var HT=Object.defineProperty({},"passive",{get:function(){return C7=!0,!0}});window.addEventListener("test",HT,HT),window.removeEventListener("test",HT,HT)}catch{C7=!1}var m0=C7?{passive:!1}:!1,Eot=function(e){return e.tagName==="TEXTAREA"},s1e=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!Eot(e)&&n[t]==="visible")},Tot=function(e){return s1e(e,"overflowY")},kot=function(e){return s1e(e,"overflowX")},Vee=function(e,t){var n=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var i=a1e(e,r);if(i){var o=c1e(e,r),s=o[1],a=o[2];if(s>a)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},xot=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},Aot=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},a1e=function(e,t){return e==="v"?Tot(t):kot(t)},c1e=function(e,t){return e==="v"?xot(t):Aot(t)},Iot=function(e,t){return e==="h"&&t==="rtl"?-1:1},Rot=function(e,t,n,r,i){var o=Iot(e,window.getComputedStyle(t).direction),s=o*r,a=n.target,c=t.contains(a),l=!1,u=s>0,d=0,f=0;do{var p=c1e(e,a),g=p[0],m=p[1],y=p[2],v=m-y-o*g;(g||v)&&a1e(e,a)&&(d+=v,f+=g),a instanceof ShadowRoot?a=a.host:a=a.parentNode}while(!c&&a!==document.body||c&&(t.contains(a)||t===a));return(u&&Math.abs(d)<1||!u&&Math.abs(f)<1)&&(l=!0),l},zT=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Wee=function(e){return[e.deltaX,e.deltaY]},qee=function(e){return e&&"current"in e?e.current:e},Pot=function(e,t){return e[0]===t[0]&&e[1]===t[1]},Oot=function(e){return`
1545  .block-interactivity-`.concat(e,` {pointer-events: none;}
1546  .allow-interactivity-`).concat(e,` {pointer-events: all;}
1547`)},Not=0,g0=[];function Mot(e){var t=b.useRef([]),n=b.useRef([0,0]),r=b.useRef(),i=b.useState(Not++)[0],o=b.useState(o1e)[0],s=b.useRef(e);b.useEffect(function(){s.current=e},[e]),b.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(i));var m=uze([e.lockRef.current],(e.shards||[]).map(qee),!0).filter(Boolean);return m.forEach(function(y){return y.classList.add("allow-interactivity-".concat(i))}),function(){document.body.classList.remove("block-interactivity-".concat(i)),m.forEach(function(y){return y.classList.remove("allow-interactivity-".concat(i))})}}},[e.inert,e.lockRef.current,e.shards]);var a=b.useCallback(function(m,y){if("touches"in m&&m.touches.length===2||m.type==="wheel"&&m.ctrlKey)return!s.current.allowPinchZoom;var v=zT(m),w=n.current,S="deltaX"in m?m.deltaX:w[0]-v[0],C="deltaY"in m?m.deltaY:w[1]-v[1],E,T=m.target,x=Math.abs(S)>Math.abs(C)?"h":"v";if("touches"in m&&x==="h"&&T.type==="range")return!1;var O=Vee(x,T);if(!O)return!0;if(O?E=x:(E=x==="v"?"h":"v",O=Vee(x,T)),!O)return!1;if(!r.current&&"changedTouches"in m&&(S||C)&&(r.current=E),!E)return!0;var A=r.current||E;return Rot(A,y,m,A==="h"?S:C)},[]),c=b.useCallback(function(m){var y=m;if(!(!g0.length||g0[g0.length-1]!==o)){var v="deltaY"in y?Wee(y):zT(y),w=t.current.filter(function(E){return E.name===y.type&&(E.target===y.target||y.target===E.shadowParent)&&Pot(E.delta,v)}
vendor: 4,138 bytes, line 1547
1547)[0];if(w&&w.should){y.cancelable&&y.preventDefault();return}if(!w){var S=(s.current.shards||[]).map(qee).filter(Boolean).filter(function(E){return E.contains(y.target)}),C=S.length>0?a(y,S[0]):!s.current.noIsolation;C&&y.cancelable&&y.preventDefault()}}},[]),l=b.useCallback(function(m,y,v,w){var S={name:m,delta:y,target:v,should:w,shadowParent:Dot(v)};t.current.push(S),setTimeout(function(){t.current=t.current.filter(function(C){return C!==S})},1)},[]),u=b.useCallback(function(m){n.current=zT(m),r.current=void 0},[]),d=b.useCallback(function(m){l(m.type,Wee(m),m.target,a(m,e.lockRef.current))},[]),f=b.useCallback(function(m){l(m.type,zT(m),m.target,a(m,e.lockRef.current))},[]);b.useEffect(function(){return g0.push(o),e.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:f}),document.addEventListener("wheel",c,m0),document.addEventListener("touchmove",c,m0),document.addEventListener("touchstart",u,m0),function(){g0=g0.filter(function(m){return m!==o}),document.removeEventListener("wheel",c,m0),document.removeEventListener("touchmove",c,m0),document.removeEventListener("touchstart",u,m0)}},[]);var p=e.removeScrollBar,g=e.inert;return b.createElement(b.Fragment,null,g?b.createElement(o,{styles:Oot(i)}):null,p?b.createElement(Cot,{gapMode:e.gapMode}):null)}function Dot(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const Lot=uot(i1e,Mot);var BH=b.forwardRef(function(e,t){return b.createElement(ZP,Fc({},e,{ref:t,sideCar:Lot}))});BH.classNames=ZP.classNames;var Fot=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},v0=new WeakMap,VT=new WeakMap,WT={},y6=0,l1e=function(e){return e&&(e.host||l1e(e.parentNode))},jot=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=l1e(n);return r&&e.contains(r)?r:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},Uot=function(e,t,n,r){var i=jot(t,Array.isArray(e)?e:[e]);WT[n]||(WT[n]=new WeakMap);var o=WT[n],s=[],a=new Set,c=new Set(i),l=function(d){!d||a.has(d)||(a.add(d),l(d.parentNode))};i.forEach(l);var u=function(d){!d||c.has(d)||Array.prototype.forEach.call(d.children,function(f){if(a.has(f))u(f);else try{var p=f.getAttribute(r),g=p!==null&&p!=="false",m=(v0.get(f)||0)+1,y=(o.get(f)||0)+1;v0.set(f,m),o.set(f,y),s.push(f),m===1&&g&&VT.set(f,!0),y===1&&f.setAttribute(n,"true"),g||f.setAttribute(r,"true")}catch(v){console.error("aria-hidden: cannot operate on ",f,v)}})};return u(t),a.clear(),y6++,function(){s.forEach(function(d){var f=v0.get(d)-1,p=o.get(d)-1;v0.set(d,f),o.set(d,p),f||(VT.has(d)||d.removeAttribute(r),VT.delete(d)),p||d.removeAttribute(n)}),y6--,y6||(v0=new WeakMap,v0=new WeakMap,VT=new WeakMap,WT={})}},u1e=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),i=Fot(e);return i?(r.push.apply(r,Array.from(i.querySelectorAll("[aria-live]"))),Uot(r,i,n,"aria-hidden")):function(){return null}},$H="Dialog",[d1e]=Ob($H),[Bot,lu]=d1e($H),f1e=e=>{const{__scopeDialog:t,children:n,open:r,defaultOpen:i,onOpenChange:o,modal:s=!0}=e,a=b.useRef(null),c=b.useRef(null),[l=!1,u]=XP({prop:r,defaultProp:i,onChange:o});return h.jsx(Bot,{scope:t,triggerRef:a,contentRef:c,contentId:Gp(),titleId:Gp(),descriptionId:Gp(),open:l,onOpenChange:u,onOpenToggle:b.useCallback(()=>u(d=>!d),[u]),modal:s,children:n})};f1e.displayName=$H;var h1e="DialogTrigger",p1e=b.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,i=lu(h1e,n),o=Ma(t,i.triggerRef);return h.jsx(oo.button,{type:"button","aria-haspopup":"dialog","aria-expanded":i.open,"aria-controls":i.contentId,"data-state":VH(i.open),...r,ref:o,onClick:Ho(e.onClick,i.onOpenToggle)})});p1e.displayName=h1e;var HH="DialogPortal",[$ot,m1e]=d1e(HH,{forceMount:void 0}),g1e=e=>{const{__scopeDialog:t,forceMount:n,children:r,container:i}=e,o=lu(HH,t);return h.jsx($ot,{scope:t,forceMount:n,children:b.Children.map(r,s=>h.jsx(Nb,{present:n||o.open,children:h.jsx(UH,{asChild:!0,container:i,children:s})}))})};g1e.displayName=HH;var HI="DialogOverlay",v1e=b.forwardRef((e,t)=>
vendor: 4,795 bytes, lines 1547-1551
1547{const n=m1e(HI,e.__scopeDialog),{forceMount:r=n.forceMount,...i}=e,o=lu(HI,e.__scopeDialog);return o.modal?h.jsx(Nb,{present:r||o.open,children:h.jsx(Hot,{...i,ref:t})}):null});v1e.displayName=HI;var Hot=b.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,i=lu(HI,n);return h.jsx(BH,{as:JP,allowPinchZoom:!0,shards:[i.contentRef],children:h.jsx(oo.div,{"data-state":VH(i.open),...r,ref:t,style:{pointerEvents:"auto",...r.style}})})}),yv="DialogContent",y1e=b.forwardRef((e,t)=>{const n=m1e(yv,e.__scopeDialog),{forceMount:r=n.forceMount,...i}=e,o=lu(yv,e.__scopeDialog);return h.jsx(Nb,{present:r||o.open,children:o.modal?h.jsx(zot,{...i,ref:t}):h.jsx(Vot,{...i,ref:t})})});y1e.displayName=yv;var zot=b.forwardRef((e,t)=>{const n=lu(yv,e.__scopeDialog),r=b.useRef(null),i=Ma(t,n.contentRef,r);return b.useEffect(()=>{const o=r.current;if(o)return u1e(o)},[]),h.jsx(b1e,{...e,ref:i,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Ho(e.onCloseAutoFocus,o=>{var s;o.preventDefault(),(s=n.triggerRef.current)==null||s.focus()}),onPointerDownOutside:Ho(e.onPointerDownOutside,o=>{const s=o.detail.originalEvent,a=s.button===0&&s.ctrlKey===!0;(s.button===2||a)&&o.preventDefault()}),onFocusOutside:Ho(e.onFocusOutside,o=>o.preventDefault())})}),Vot=b.forwardRef((e,t)=>{const n=lu(yv,e.__scopeDialog),r=b.useRef(!1),i=b.useRef(!1);return h.jsx(b1e,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:o=>{var s,a;(s=e.onCloseAutoFocus)==null||s.call(e,o),o.defaultPrevented||(r.current||(a=n.triggerRef.current)==null||a.focus(),o.preventDefault()),r.current=!1,i.current=!1},onInteractOutside:o=>{var c,l;(c=e.onInteractOutside)==null||c.call(e,o),o.defaultPrevented||(r.current=!0,o.detail.originalEvent.type==="pointerdown"&&(i.current=!0));const s=o.target;((l=n.triggerRef.current)==null?void 0:l.contains(s))&&o.preventDefault(),o.detail.originalEvent.type==="focusin"&&i.current&&o.preventDefault()}})}),b1e=b.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:i,onCloseAutoFocus:o,...s}=e,a=lu(yv,n),c=b.useRef(null),l=Ma(t,c);return n1e(),h.jsxs(h.Fragment,{children:[h.jsx(jH,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:i,onUnmountAutoFocus:o,children:h.jsx(FH,{role:"dialog",id:a.contentId,"aria-describedby":a.descriptionId,"aria-labelledby":a.titleId,"data-state":VH(a.open),...s,ref:l,onDismiss:()=>a.onOpenChange(!1)})}),h.jsxs(h.Fragment,{children:[h.jsx(qot,{titleId:a.titleId}),h.jsx(Kot,{contentRef:c,descriptionId:a.descriptionId})]})]})}),zH="DialogTitle",w1e=b.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,i=lu(zH,n);return h.jsx(oo.h2,{id:i.titleId,...r,ref:t})});w1e.displayName=zH;var S1e="DialogDescription",Wot=b.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,i=lu(S1e,n);return h.jsx(oo.p,{id:i.descriptionId,...r,ref:t})});Wot.displayName=S1e;var _1e="DialogClose",C1e=b.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,i=lu(_1e,n);return h.jsx(oo.button,{type:"button",...r,ref:t,onClick:Ho(e.onClick,()=>i.onOpenChange(!1))})});C1e.displayName=_1e;function VH(e){return e?"open":"closed"}var E1e="DialogTitleWarning",[win,T1e]=xit(E1e,{contentName:yv,titleName:zH,docsSlug:"dialog"}),qot=({titleId:e})=>{const t=T1e(E1e),n=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
1548
1549If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
1550
1551For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return b.useEffect(()=>{e&&(document.getElementById(e)||console.error(n))},[n,e]),null},Got="DialogDescriptionWarning",Kot=({contentRef:e,descriptionId:t})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${T1e(Got).contentName}}.`;return b.useEffect(()=>{var o;const i=(o=e.current)==null?void 0:o.getAttribute("aria-describedby");t&&i&&(document.getElementById(t)||console.warn(r))},[r,e,t]),null},Yot=f1e,Qot=p1e,Xot=g1e,Jot=v1e,Zot=y1e,est=w1e,tst=C1e;function xs(e){return h.jsxs(Yot,{open:e.open,onOpenChange:e.onOpenChange,children:[h.jsx(Qot,{asChild:!0,children:e.trigger}),h.jsxs(Xot,{children:[h.jsx(Jot,{className:BT.DialogOverlay}),h.jsxs(Zot,{className:`${BT.DialogContent} ${e.contentClassName??""}`,children:[h.jsxs(est,{className:`${BT.DialogTitle} ${e.titleClassName??""}`,children:[e.title,!e.unclosable&&h.jsx(tst,{className:BT.Close,children:h.jsx(Eh,{})})]}),h.jsx("div",{className:e.className,children:e.content})]})]})]})}const nst="_ExtraSmall_rrq15_25",rst="_Small_rrq15_31",ist="_Large_rrq15_42",ost="_LandingHeader_rrq15_48",sst="_Landing_rrq15_48",ast="_Primary_rrq15_70",cst="_Black_rrq15_78",lst="_Gray_rrq15_82",ust="_DarkGray_rrq15_86",dst="_White_rrq15_90",fst="_Red_rrq15_94",hst="_Orange_rrq15_98",pst="_Backgroun
1551dPrimary_rrq15_103",mst="_BackgroundTransparent_rrq15_107",gst="_BackgroundBlack_rrq15_111",vst="_BackgroundGray_rrq15_115",yst="_BackgroundDarkGray_rrq15_119",bst="_BackgroundWhite_rrq15_123",wst="_BackgroundRed_rrq15_127",Sst="_BackgroundOrange_rrq15_131",_st="_BackgroundBlue_rrq15_135",Cst="_BorderPrimary_rrq15_140",Est="_BorderWhite_rrq15_144",Tst="_BorderTransparent_rrq15_148",kst="_BorderBlack_rrq15_152",xst="_BorderGray_rrq15_156",Ast="_BorderDarkGray_rrq15_160",Ist="_BorderRed_rrq15_164",Rst="_BorderOrange_rrq15_168",Pst="_BorderBlue_rrq15_172",Tn={ExtraSmall:nst,Small:rst,Large:ist,LandingHeader:ost,Landing:sst,Primary:ast,Black:cst,Gray:lst,DarkGray:ust,White:dst,Red:fst,Orange:hst,BackgroundPrimary:pst,BackgroundTransparent:mst,BackgroundBlack:gst,BackgroundGray:vst,BackgroundDarkGray:yst,BackgroundWhite:bst,BackgroundRed:wst,BackgroundOrange:Sst,BackgroundBlue:_st,BorderPrimary:Cst,BorderWhite:Est,BorderTransparent:Tst,BorderBlack:kst,BorderGray:xst,BorderDarkGray:Ast,BorderRed:Ist,BorderOrange:Rst,BorderBlue:Pst},qe=b.forwardRef((e,t)=>{const n=b.useMemo(()=>{switch(e.size){case"x-small":return Tn.ExtraSmall;case"small":return Tn.Small;case"large":return Tn.Large;case"landing":return Tn.Landing;case"landing-header":return Tn.LandingHeader;default:return Tn.Small}},[e.size]),r=b.useMemo(()=>{if(e.disabled)return"";switch(e.color){case"primary":return Tn.Primary;case"black":return Tn.Black;case"gray":return Tn.Gray;case"dark-gray":return Tn.DarkGray;case"white":return Tn.White;case"red":return Tn.Red;case"orange":return Tn.Orange;default:return Tn.White}},[e.disabled,e.color]),i=b.useMemo(()=>{if(e.disabled)return"";
1551switch(e.backgroundColor){case"primary":return Tn.BackgroundPrimary;case"transparent":return Tn.BackgroundTransparent;case"black":return Tn.BackgroundBlack;case"gray":return Tn.BackgroundGray;case"dark-gray":return Tn.BackgroundDarkGray;case"white":return Tn.BackgroundWhite;case"red":return Tn.BackgroundRed;case"orange":return Tn.BackgroundOrange;case"blue":return Tn.BackgroundBlue;default:return Tn.BackgroundPrimary}},[e.disabled,e.backgroundColor]),o=b.useMemo(()=>{if(e.disabled)return"";switch(e.borderColor){case"primary":return Tn.BorderPrimary;case"white":return Tn.BorderWhite;case"transparent":return Tn.BorderTransparent;case"black":return Tn.BorderBlack;case"gray":return Tn.BorderGray;case"dark-gray":return Tn.BorderDarkGray;case"red":return Tn.BorderRed;case"orange":return Tn.BorderOrange;case"blue":return Tn.BorderBlue;default:return Tn.BorderPrimary}},[e.disabled,e.borderColor]);return h.jsx("button",{type:e.type||"button",className:`${n} ${r} ${i} ${o} ${e.className??""}`,style:e.style,onClick:e.disabled?void 0:e.onClick,disabled:e.disabled,ref:t,children:e.children})});function Ost(e){const t=b.useMemo(()=>a1(e.language),[e.language]),[n,r]=b.useState(e.caption.translations[t]);b.useEffect(()=>{r(e.caption.translations[t])},[e.caption,t]);const i=Cn(),o=Gt.useCorrectTranslation(i),s=b.useCallback(async()=>{try{await o({id:e.livekitRoom.name,caption:e.caption,correct_translation:n,language:t}),mt(h.jsx("div",{className:"Toast SuccessToast",children:h.jsx("div",{children:"Successfully submitted"})}),{type:"success"}),e.onOpenChange(!1)}catch(c){throw mt(h.jsx("div",{className:"Toast ErrorToast",children:"Something went wrong, please try again"}),{type:"error"}),c}},[o,e,n,t]),a=b.useRef(null);return b.useEffect(()=>{a.current&&(a.current.style.height=`${Math.max(a.current.scrollHeight,36)}px`)},[]),b.useEffect(()=>{const c=l=>{l.key==="Enter"&&(l.target===a.current&&l.preventDefault(),s())};return window.addEventListener("keydown",c),()=>{window.removeEventListener("keydown",c)}},[s]),h.jsx(xs,{title:"Report this translation",open:e.open,onOpenChange:e.onOpenChange,content:h.jsxs("div",{className:UT.ImproveTranslationDialog,children:[h.jsxs("div",{className:UT.CorrectTranslation,children:[h.jsx("h3",{children:"Correct translation"}),h.jsx("textarea",{ref:a,value:n,onChange:c=>r(c.target.value)})]}),h.jsx("div",{className:UT.ImproveTranslationButtons,children:h.jsx(qe,{onClick:s,children:"Submit"})}),h.jsxs("div",{className:UT.Disclaimer,children:["Translations are AI-generated and may be incorrect. By confirming to submit the translation inaccuracy, you acknowledge that you have read and agree to the data collection disclaimer"," ",h.jsx("a",{href:"https://byrdh
1551ouse.notion.site/Privacy-Policy-c71b7c579187429da97f8aec36b1585e",target:"_blank",children:"here"}),"."]})]})})}const Es=()=>{const e=b.useContext(Na);return[e.meeting,e.setMeeting]},WH=()=>{const[,e]=Es(),[,t]=DE();return b.useCallback(()=>{e(KB),t(J3)},[e,t])},Nst=new TextDecoder;function k1e(e){const[t]=Ch();return h.jsxs("div",{className:lg.CaptionText,style:{fontSize:t.settings.textSize,color:t.settings.textColor,backgroundColor:t.settings.textBackgroundColor},children:[e.text,e.edited?h.jsx("span",{style:{color:"#ffab00"},children:" (edited)"}):null]})}function k1(e){const t=b.useRef(null),n=b.useRef(Date.now()),[r]=Ch(),[i,o]=DE();hE("caption",L=>{const U=JSON.parse(Nst.decode(L.payload));Math.abs(Date.now()-n.current)<r.settings.textSpeed*1e3&&!U.complete||(n.current=Date.now(),o(I=>({...I,[U.id]:U})))});const s=b.useRef(0);b.useEffect(()=>{if(!t.current)return;const L=new ResizeObserver(([U])=>{var I;U&&U.contentRect.height!==s.current&&(s.current=U.contentRect.height,(I=t.current)==null||I.scrollTo({top:t.current.scrollHeight}))});return L.observe(t.current),()=>{L.disconnect()}},[]);const[a,c]=b.useState(!1),l=b.useCallback(()=>{if(t.current){const L=t.current.offsetHeight;return t.current.scrollTop+t.current.offsetHeight>t.current.scrollHeight-L}else return!0},[t]),u=b.useMemo(()=>e.renderLanguage&&(a1(e.renderLanguage)??"en"),[e.renderLanguage]),d=b.useMemo(()=>Object.values(i).filter(L=>!L.complete).reduce((L,U)=>{var I;return L+(((I=U.translations[u])==null?void 0:I.length)??0)},0),[i,u]);b.useEffect(()=>{var L;return a||(L=t.current)==null||L.scrollTo({top:t.current.scrollHeight}),()=>{}},[t,a]);const[f]=Es(),p=b.useRef(0),g=b.useRef(r.settings.textSize),m=b.useRef(f.layout.participantsGridHeightInPercent),y=Oye(),v=b.useRef(y.height),w=b.useRef(d),S=b.useCallback(L=>{const U=p.current>L.currentTarget.scrollTop&&r.settings.textSize===g.current&&f.layout.participantsGridHeightInPercent===m.current&&y.height===v.current;w.current,g.current=r.settings.textSize,m.current=f.layout.participantsGridHeightInPercent,v.current=y.height,w.current=d,c(U||!l()),p.current=L.currentTarget.scrollTop},[c,r.settings.textSize,f.layout.participantsGridHeightInPercent,y.height,p,l,d]);b.useEffect(()=>{var L;a||(L=t.current)==null||L.scrollTo({top:t.current.scrollHeight})},[a,i]);const C=b.useCallback(()=>{var L;c(!1),(L=t.current)==null||L.scrollTo({top:t.current.scrollHeight,behavior:"smooth"})},[c,t]),E=bh(),[T,x]=b.useState(),[O,A]=b.useState(!1);return h.jsxs(h.Fragment,{children:[h.jsxs("div",{className:lg.Captions,children:[a&&h.jsxs("button",{className:lg.ScrollToBottom,onClick:C,children:["Scroll to bottom ",h.jsx(Art,{})]}),h.jsx(QP,{scrollableNodeProps:{ref:t},style:{height:"100%",width:"100%"},onScrollCapture:S,children:h.jsx("div",{className:lg.Content,children:Object.values(i).filter(L=>{var U;return(U=L.translations[u])==null?void 0:U.length}).reduce((L,U,I,F)=>{var ee;const P=I>0?F[I-1]:void 0,W=e.showSpeakerName!==!1&&((P==null?void 0:P.name)!==U.name||(P==null?void 0:P.language)!==U.language);return L.push(h.jsxs("div",{style:{marginTop:I>0&&W?12:0,maxWidth:e.maxWidth||"100%"},children:[W&&h.jsxs("div",{className:lg.CaptionName,children:[U.name,U.language?` (${(ee=Kr(U.language))==null?void 0:ee.split(" ")[0]})`:""]}),h.jsxs("div",{className:lg.CaptionAndFlag,children:[h.jsx(Ort,{className:lg.CaptionFlag,onClick:()=>{console.log("set caption",U),x(U),A(!0)}}),h.jsx(k1e,{text:U.translations[u],edited:!!U.edited})]})]},U.id)),L},[])})})]}),T&&h.jsx(Ost,{language:e.renderLanguage,livekitRoom:E,caption:T,open:O,onOpenChange:A})]})}const Mb=e=>{const t=_h(),[n]=Jt(),[r,i]=b.useState(),[o,s]=b.useState(void 0),a=Gt.useGenerateLivekitToken(e),c=b.useCallback(async()=>{var l;i(void 0);try{const u=await a({room:t,identity:n.livekitId}),{encodedToken:d}=u.data;s(d)}catch(u){if(!D$(u)||(i(u),((l=u.response)==null?void 0:l.data.status)!==403))throw u}},[n.livekitId,t,a]);return b.useEffect(()=>{const l=setInterval(()=>{c()},54e4);return c(),()=>{clearInterval(l)}},[c]),{token:o,error:r}},Mst=["top","right","bottom","left"],um=Math.min,ec=Math.max,zI=Math.round,qT=Math.floor,ld=e=>({x:e,y:e}
vendor: 12,457 bytes, line 1551
1551),Dst={left:"right",right:"left",bottom:"top",top:"bottom"},Lst={start:"end",end:"start"};function E7(e,t,n){return ec(e,um(t,n))}function lh(e,t){return typeof e=="function"?e(t):e}function uh(e){return e.split("-")[0]}function Db(e){return e.split("-")[1]}function qH(e){return e==="x"?"y":"x"}function GH(e){return e==="y"?"height":"width"}const Fst=new Set(["top","bottom"]);function Lb(e){return Fst.has(uh(e))?"y":"x"}function KH(e){return qH(Lb(e))}function jst(e,t,n){n===void 0&&(n=!1);const r=Db(e),i=KH(e),o=GH(i);let s=i==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[o]>t.floating[o]&&(s=VI(s)),[s,VI(s)]}function Ust(e){const t=VI(e);return[T7(e),t,T7(t)]}function T7(e){return e.replace(/start|end/g,t=>Lst[t])}const Gee=["left","right"],Kee=["right","left"],Bst=["top","bottom"],$st=["bottom","top"];function Hst(e,t,n){switch(e){case"top":case"bottom":return n?t?Kee:Gee:t?Gee:Kee;case"left":case"right":return t?Bst:$st;default:return[]}}function zst(e,t,n,r){const i=Db(e);let o=Hst(uh(e),n==="start",r);return i&&(o=o.map(s=>s+"-"+i),t&&(o=o.concat(o.map(T7)))),o}function VI(e){return e.replace(/left|right|bottom|top/g,t=>Dst[t])}function Vst(e){return{top:0,right:0,bottom:0,left:0,...e}}function x1e(e){return typeof e!="number"?Vst(e):{top:e,right:e,bottom:e,left:e}}function WI(e){const{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}function Yee(e,t,n){let{reference:r,floating:i}=e;const o=Lb(t),s=KH(t),a=GH(s),c=uh(t),l=o==="y",u=r.x+r.width/2-i.width/2,d=r.y+r.height/2-i.height/2,f=r[a]/2-i[a]/2;let p;switch(c){case"top":p={x:u,y:r.y-i.height};break;case"bottom":p={x:u,y:r.y+r.height};break;case"right":p={x:r.x+r.width,y:d};break;case"left":p={x:r.x-i.width,y:d};break;default:p={x:r.x,y:r.y}}switch(Db(t)){case"start":p[s]-=f*(n&&l?-1:1);break;case"end":p[s]+=f*(n&&l?-1:1);break}return p}const Wst=async(e,t,n)=>{const{placement:r="bottom",strategy:i="absolute",middleware:o=[],platform:s}=n,a=o.filter(Boolean),c=await(s.isRTL==null?void 0:s.isRTL(t));let l=await s.getElementRects({reference:e,floating:t,strategy:i}),{x:u,y:d}=Yee(l,r,c),f=r,p={},g=0;for(let m=0;m<a.length;m++){const{name:y,fn:v}=a[m],{x:w,y:S,data:C,reset:E}=await v({x:u,y:d,initialPlacement:r,placement:f,strategy:i,middlewareData:p,rects:l,platform:s,elements:{reference:e,floating:t}});u=w??u,d=S??d,p={...p,[y]:{...p[y],...C}},E&&g<=50&&(g++,typeof E=="object"&&(E.placement&&(f=E.placement),E.rects&&(l=E.rects===!0?await s.getElementRects({reference:e,floating:t,strategy:i}):E.rects),{x:u,y:d}=Yee(l,f,c)),m=-1)}return{x:u,y:d,placement:f,strategy:i,middlewareData:p}};async function gC(e,t){var n;t===void 0&&(t={});const{x:r,y:i,platform:o,rects:s,elements:a,strategy:c}=e,{boundary:l="clippingAncestors",rootBoundary:u="viewport",elementContext:d="floating",altBoundary:f=!1,padding:p=0}=lh(t,e),g=x1e(p),y=a[f?d==="floating"?"reference":"floating":d],v=WI(await o.getClippingRect({element:(n=await(o.isElement==null?void 0:o.isElement(y)))==null||n?y:y.contextElement||await(o.getDocumentElement==null?void 0:o.getDocumentElement(a.floating)),boundary:l,rootBoundary:u,strategy:c})),w=d==="floating"?{x:r,y:i,width:s.floating.width,height:s.floating.height}:s.reference,S=await(o.getOffsetParent==null?void 0:o.getOffsetParent(a.floating)),C=await(o.isElement==null?void 0:o.isElement(S))?await(o.getScale==null?void 0:o.getScale(S))||{x:1,y:1}:{x:1,y:1},E=WI(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:w,offsetParent:S,strategy:c}):w);return{top:(v.top-E.top+g.top)/C.y,bottom:(E.bottom-v.bottom+g.bottom)/C.y,left:(v.left-E.left+g.left)/C.x,right:(E.right-v.right+g.right)/C.x}}const qst=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:i,rects:o,platform:s,elements:a,middlewareData:c}=t,{element:l,padding:u=0}=lh(e,t)||{};if(l==null)return{};const d=x1e(u),f={x:n,y:r},p=KH(i),g=GH(p),m=await s.getDimensions(l),y=p==="y",v=y?"top":"left",w=y?"bottom":"right",S=y?"clientHeight":"clientWidth",C=o.reference[g]+o.reference[p]-f[p]-o.floating[g],E=f[p]-o.reference[p],T=await(s.getOffsetParent==null?void 0:s.getOffsetParent(l));let x=T?T[S]:0;(!x||!await(s.isElement==null?void 0:s.isElement(T)))&&(x=a.floating[S]||o.floating[g]);const O=C/2-E/2,A=x/2-m[g]/2-1,L=um(d[v],A),U=um(d[w],A),I=L,F=x-m[g]-U,P=x/2-m[g]/2+O,W=E7(I,P,F),ee=!c.arrow&&Db(i)!=null&&P!==W&&o.reference[g]/2-(P<I?L:U)-m[g]/2<0,Y=ee?P<I?P-I:P-F:0;return{[p]:f[p]+Y,data:{[p]:W,centerOffset:P-W-Y,...ee&&{alignmentOffset:Y}},reset:ee}}}),Gst=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:i,middlewareData:o,rects:s,initialPlacement:a,platform:c,elements:l}=t,{mainAxis:u=!0,crossAxis:d=!0,fallbackPlacements:f,fallbackStrategy:p="bestFit",fallbackAxisSideDirection:g="none",flipAlignment:m=!0,...y}=lh(e,t);if((n=o.arrow)!=null&&n.alignmentOffset)return{};const v=uh(i),w=uh(a)===a,S=await(c.isRTL==null?void 0:c.isRTL(l.floating)),C=f||(w||!m?[VI(a)]:Ust(a));!f&&g!=="none"&&C.push(...zst(a,m,g,S));const E=[a,...C],T=await gC(t,y),x=[];let O=((r=o.flip)==null?void 0:r.overflows)||[];if(u&&x.push(T[v]),d){const I=jst(i,s,S);x.push(T[I[0]],T[I[1]])}if(O=[...O,{placement:i,overflows:x}],!x.every(I=>I<=0)){var A,L;const I=(((A=o.flip)==null?void 0:A.index)||0)+1,F=E[I];if(F)return{data:{index:I,overflows:O},reset:{placement:F}};let P=(L=O.filter(W=>W.overflows[0]<=0).sort((W,ee)=>W.overflows[1]-ee.overflows[1])[0])==null?void 0:L.placement;if(!P)switch(p){case"bestFit":{var U;const W=(U=O.map(ee=>[ee.placement,ee.overflows.filter(Y=>Y>0).reduce((Y,X)=>Y+X,0)]).sort((ee,Y)=>ee[1]-Y[1])[0])==null?void 0:U[0];W&&(P=W);break}case"initialPlacement":P=a;break}if(i!==P)return{reset:{placement:P}}}return{}}}};function Qee(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Xee(e){return Mst.some(t=>e[t]>=0)}const Kst=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...i}=lh(e,t);switch(r){case"referenceHidden":{const o=await gC(t,{...i,elementContext:"reference"}),s=Qee(o,n.reference);return{data:{referenceHiddenOffsets:s,referenceHidden:Xee(s)}}}case"escaped":{const o=await gC(t,{...i,altBoundary:!0}),s=Qee(o,n.floating);return{data:{escapedOffsets:s,escaped:Xee(s)}}}default:return{}}}}};async function Yst(e,t){const{placement:n,platform:r,elements:i}=e,o=await(r.isRTL==null?void 0:r.isRTL(i.floating)),s=uh(n),a=Db(n),c=Lb(n)==="y",l=["left","top"].includes(s)?-1:1,u=o&&c?-1:1,d=lh(t,e);let{mainAxis:f,crossAxis:p,alignmentAxis:g}=typeof d=="number"?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...d};return a&&typeof g=="number"&&(p=a==="end"?g*-1:g),c?{x:p*u,y:f*l}:{x:f*l,y:p*u}}const Qst=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:i,y:o,placement:s,middlewareData:a}=t,c=await Yst(t,e);return s===((n=a.offset)==null?void 0:n.placement)&&(r=a.arrow)!=null&&r.alignmentOffset?{}:{x:i+c.x,y:o+c.y,data:{...c,placement:s}}}}},Xst=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:i}=t,{mainAxis:o=!0,crossAxis:s=!1,limiter:a={fn:y=>{let{x:v,y:w}=y;return{x:v,y:w}}},...c}=lh(e,t),l={x:n,y:r},u=await gC(t,c),d=Lb(uh(i)),f=qH(d);let p=l[f],g=l[d];if(o){const y=f==="y"?"top":"left",v=f==="y"?"bottom":"right",w=p+u[y],S=p-u[v];p=E7(w,p,S)}if(s){const y=d==="y"?"top":"left",v=d==="y"?"bottom":"right",w=g+u[y],S=g-u[v];g=E7(w,g,S)}const m=a.fn({...t,[f]:p,[d]:g});return{...m,data:{x:m.x-n,y:m.y-r}}}}},Jst=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:i,rects:o,middlewareData:s}=t,{offset:a=0,mainAxis:c=!0,crossAxis:l=!0}=lh(e,t),u={x:n,y:r},d=Lb(i),f=qH(d);let p=u[f],g=u[d];const m=lh(a,t),y=typeof m=="number"?{mainAxis:m,crossAxis:0}:{mainAxis:0,crossAxis:0,...m};if(c){const S=f==="y"?"height":"width",C=o.reference[f]-o.floating[S]+y.mainAxis,E=o.reference[f]+o.reference[S]-y.mainAxis;p<C?p=C:p>E&&(p=E)}if(l){var v,w;const S=f==="y"?"width":"height",C=["top","left"].includes(uh(i)),E=o.reference[d]-o.floating[S]+(C&&((v=s.offset)==null?void 0:v[d])||0)+(C?0:y.crossAxis),T=o.reference[d]+o.reference[S]+(C?0:((w=s.offset)==null?void 0:w[d])||0)-(C?y.crossAxis:0);g<E?g=E:g>T&&(g=T)}return{[f]:p,[d]:g}}}},Zst=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){const{placement:n,rects:r,platform:i,elements:o}=t,{apply:s=()=>{},...a}=lh(e,t),c=await gC(t,a),l=uh(n),u=Db(n),d=Lb(n)==="y",{width:f,height:p}=r.floating;let g,m;l==="top"||l==="bottom"?(g=l,m=u===(await(i.isRTL==null?void 0:i.isRTL(o.floating))?"start":"end")?"left":"right"):(m=l,g=u==="end"?"top":"bottom");const y=p-c[g],v=f-c[m],w=!t.middlewareData.shift;let S=y,C=v;if(d){const T=f-c.left-c.right;C=u||w?um(v,T):T}else{const T=p-c.top-c.bottom;S=u||w?um(y,T):T}if(w&&!u){const T=ec(c.left,0),x=ec(c.right,0),O=ec(c.top,0),A=ec(c.bottom,0);d?C=f-2*(T!==0||x!==0?T+x:ec(c.left,c.right)):S=p-2*(O!==0||A!==0?O+A:ec(c.top,c.bottom))}await s({...t,availableWidth:C,availableHeight:S});const E=await i.getDimensions(o.floating);return f!==E.width||p!==E.height?{reset:{rects:!0}}:{}}}};function eO(){return typeof window<"u"}function Fb(e){return A1e(e)?(e.nodeName||"").toLowerCase():"#document"}function dc(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Nd(e){var t;return(t=(A1e(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function A1e(e){return eO()?e instanceof Node||e instanceof dc(e).Node:!1}function qs(e){return eO()?e instanceof Element||e instanceof dc(e).Element:!1}function wd(e){return eO()?e instanceof HTMLElement||e instanceof dc(e).HTMLElement:!1}function Jee(e){return!eO()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof dc(e).ShadowRoot}const eat=new Set(["inline","contents"]);function LE(e){const{overflow:t,overflowX:n,overflowY:r,display:i}=Zc(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!eat.has(i)}const tat=new Set(["table","td","th"]);function nat(e){return tat.has(Fb(e))}const rat=[":popover-open",":modal"];function tO(e){return rat.some(t=>{try{return e.matches(t)}catch{return!1}})}const iat=["transform","translate","scale","rotate","perspective"],oat=["transform","translate","scale","rotate","perspective","filter"],sat=["paint","layout","strict","content"];function YH(e){const t=QH(),n=qs(e)?Zc(e):e;return iat.some(r=>n[r]?n[r]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||oat.some(r=>(n.willChange||"").includes(r))||sat.some(r=>(n.contain||"").includes(r))}function aat(e){let t=dm(e);for(;wd(t)&&!x1(t);){if(YH(t))return t;if(tO(t))return null;t=dm(t)}return null}function QH(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const cat=new Set(["html","body","#document"]);function x1(e){return cat.has(Fb(e))}function Zc(e){return dc(e).getComputedStyle(e)}function nO(e){return qs(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function dm(e){if(Fb(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Jee(e)&&e.host||Nd(e);return Jee(t)?t.host:t}function I1e(e){const t=dm(e);return x1(t)?e.ownerDocument?e.ownerDocument.body:e.body:wd(t)&&LE(t)?t:I1e(t)}function vC(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const i=I1e(e),o=i===((r=e.ownerDocument)==null?void 0:r.body),s=dc(i);if(o){const a=k7(s);return t.concat(s,s.visualViewport||[],LE(i)?i:[],a&&n?vC(a):[])}return t.concat(i,vC(i,[],n))}function k7(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function R1e(e){const t=Zc(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const i=wd(e),o=i?e.offsetWidth:n,s=i?e.offsetHeight:r,a=zI(n)!==o||zI(r)!==s;return a&&(n=o,r=s),{width:n,height:r,$:a}}function XH(e){return qs(e)?e:e.contextElement}function jy(e){const t=XH(e);if(!wd(t))return ld(1);const n=t.getBoundingClientRect(),{width:r,height:i,$:o}=R1e(t);let s=(o?zI(n.width):n.width)/r,a=(o?zI(n.height):n.height)/i;return(!s||!Number.isFinite(s))&&(s=1),(!a||!Number.isFinite(a))&&(a=1),{x:s,y:a}}const lat=ld(0);function P1e(e){const t=dc(e);
vendor: 4,161 bytes, line 1551
1551return!QH()||!t.visualViewport?lat:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function uat(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==dc(e)?!1:t}function bv(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const i=e.getBoundingClientRect(),o=XH(e);let s=ld(1);t&&(r?qs(r)&&(s=jy(r)):s=jy(e));const a=uat(o,n,r)?P1e(o):ld(0);let c=(i.left+a.x)/s.x,l=(i.top+a.y)/s.y,u=i.width/s.x,d=i.height/s.y;if(o){const f=dc(o),p=r&&qs(r)?dc(r):r;let g=f,m=k7(g);for(;m&&r&&p!==g;){const y=jy(m),v=m.getBoundingClientRect(),w=Zc(m),S=v.left+(m.clientLeft+parseFloat(w.paddingLeft))*y.x,C=v.top+(m.clientTop+parseFloat(w.paddingTop))*y.y;c*=y.x,l*=y.y,u*=y.x,d*=y.y,c+=S,l+=C,g=dc(m),m=k7(g)}}return WI({width:u,height:d,x:c,y:l})}function JH(e,t){const n=nO(e).scrollLeft;return t?t.left+n:bv(Nd(e)).left+n}function O1e(e,t,n){n===void 0&&(n=!1);const r=e.getBoundingClientRect(),i=r.left+t.scrollLeft-(n?0:JH(e,r)),o=r.top+t.scrollTop;return{x:i,y:o}}function dat(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e;const o=i==="fixed",s=Nd(r),a=t?tO(t.floating):!1;if(r===s||a&&o)return n;let c={scrollLeft:0,scrollTop:0},l=ld(1);const u=ld(0),d=wd(r);if((d||!d&&!o)&&((Fb(r)!=="body"||LE(s))&&(c=nO(r)),wd(r))){const p=bv(r);l=jy(r),u.x=p.x+r.clientLeft,u.y=p.y+r.clientTop}const f=s&&!d&&!o?O1e(s,c,!0):ld(0);return{width:n.width*l.x,height:n.height*l.y,x:n.x*l.x-c.scrollLeft*l.x+u.x+f.x,y:n.y*l.y-c.scrollTop*l.y+u.y+f.y}}function fat(e){return Array.from(e.getClientRects())}function hat(e){const t=Nd(e),n=nO(e),r=e.ownerDocument.body,i=ec(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),o=ec(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let s=-n.scrollLeft+JH(e);const a=-n.scrollTop;return Zc(r).direction==="rtl"&&(s+=ec(t.clientWidth,r.clientWidth)-i),{width:i,height:o,x:s,y:a}}function pat(e,t){const n=dc(e),r=Nd(e),i=n.visualViewport;let o=r.clientWidth,s=r.clientHeight,a=0,c=0;if(i){o=i.width,s=i.height;const l=QH();(!l||l&&t==="fixed")&&(a=i.offsetLeft,c=i.offsetTop)}return{width:o,height:s,x:a,y:c}}function mat(e,t){const n=bv(e,!0,t==="fixed"),r=n.top+e.clientTop,i=n.left+e.clientLeft,o=wd(e)?jy(e):ld(1),s=e.clientWidth*o.x,a=e.clientHeight*o.y,c=i*o.x,l=r*o.y;return{width:s,height:a,x:c,y:l}}function Zee(e,t,n){let r;if(t==="viewport")r=pat(e,n);else if(t==="document")r=hat(Nd(e));else if(qs(t))r=mat(t,n);else{const i=P1e(e);r={x:t.x-i.x,y:t.y-i.y,width:t.width,height:t.height}}return WI(r)}function N1e(e,t){const n=dm(e);return n===t||!qs(n)||x1(n)?!1:Zc(n).position==="fixed"||N1e(n,t)}function gat(e,t){const n=t.get(e);if(n)return n;let r=vC(e,[],!1).filter(a=>qs(a)&&Fb(a)!=="body"),i=null;const o=Zc(e).position==="fixed";let s=o?dm(e):e;for(;qs(s)&&!x1(s);){const a=Zc(s),c=YH(s);!c&&a.position==="fixed"&&(i=null),(o?!c&&!i:!c&&a.position==="static"&&!!i&&["absolute","fixed"].includes(i.position)||LE(s)&&!c&&N1e(e,s))?r=r.filter(u=>u!==s):i=a,s=dm(s)}return t.set(e,r),r}function vat(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e;const s=[...n==="clippingAncestors"?tO(t)?[]:gat(t,this._c):[].concat(n),r],a=s[0],c=s.reduce((l,u)=>{const d=Zee(t,u,i);return l.top=ec(d.top,l.top),l.right=um(d.right,l.right),l.bottom=um(d.bottom,l.bottom),l.left=ec(d.left,l.left),l},Zee(t,a,i));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function yat(e){const{width:t,height:n}=R1e(e);return{width:t,height:n}}function bat(e,t,n){const r=wd(t),i=Nd(t),o=n==="fixed",s=bv(e,!0,o,t);let a={scrollLeft:0,scrollTop:0};const c=ld(0);if(r||!r&&!o)if((Fb(t)!=="body"||LE(i))&&(a=nO(t)),r){const f=bv(t,!0,o,t);c.x=f.x+t.clientLeft,c.y=f.y+t.clientTop}else i&&(c.x=JH(i));const l=i&&!r&&!o?O1e(i,a):ld(0),u=s.left+a.scrollLeft-c.x-l.x,d=s.top+a.scrollTop-c.y-l.y;return{x:u,y:d,width:s.width,height:s.height}}function b6(e){return Zc(e).position==="static"}function ete(e,t){if(!wd(e)||Zc(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return Nd(e)===n&&(n=n.ownerDocument.body),n}function M1e(e,t){const n=dc(e);if(tO(e))return n;if(!wd(e)){let i=dm(e);for(;i&&!x1(i);){if(qs(i)&&!b6(i))return i;i=dm(i)}return n}let r=ete(e,t);for(;r&&nat(r)&&b6(r);
vendor: 12,906 bytes, line 1551
1551)r=ete(r,t);return r&&x1(r)&&b6(r)&&!YH(r)?n:r||aat(e)||n}const wat=async function(e){const t=this.getOffsetParent||M1e,n=this.getDimensions,r=await n(e.floating);return{reference:bat(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function Sat(e){return Zc(e).direction==="rtl"}const _at={convertOffsetParentRelativeRectToViewportRelativeRect:dat,getDocumentElement:Nd,getClippingRect:vat,getOffsetParent:M1e,getElementRects:wat,getClientRects:fat,getDimensions:yat,getScale:jy,isElement:qs,isRTL:Sat};function D1e(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function Cat(e,t){let n=null,r;const i=Nd(e);function o(){var a;clearTimeout(r),(a=n)==null||a.disconnect(),n=null}function s(a,c){a===void 0&&(a=!1),c===void 0&&(c=1),o();const l=e.getBoundingClientRect(),{left:u,top:d,width:f,height:p}=l;if(a||t(),!f||!p)return;const g=qT(d),m=qT(i.clientWidth-(u+f)),y=qT(i.clientHeight-(d+p)),v=qT(u),S={rootMargin:-g+"px "+-m+"px "+-y+"px "+-v+"px",threshold:ec(0,um(1,c))||1};let C=!0;function E(T){const x=T[0].intersectionRatio;if(x!==c){if(!C)return s();x?s(!1,x):r=setTimeout(()=>{s(!1,1e-7)},1e3)}x===1&&!D1e(l,e.getBoundingClientRect())&&s(),C=!1}try{n=new IntersectionObserver(E,{...S,root:i.ownerDocument})}catch{n=new IntersectionObserver(E,S)}n.observe(e)}return s(!0),o}function ZH(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:i=!0,ancestorResize:o=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:c=!1}=r,l=XH(e),u=i||o?[...l?vC(l):[],...vC(t)]:[];u.forEach(v=>{i&&v.addEventListener("scroll",n,{passive:!0}),o&&v.addEventListener("resize",n)});const d=l&&a?Cat(l,n):null;let f=-1,p=null;s&&(p=new ResizeObserver(v=>{let[w]=v;w&&w.target===l&&p&&(p.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var S;(S=p)==null||S.observe(t)})),n()}),l&&!c&&p.observe(l),p.observe(t));let g,m=c?bv(e):null;c&&y();function y(){const v=bv(e);m&&!D1e(m,v)&&n(),m=v,g=requestAnimationFrame(y)}return n(),()=>{var v;u.forEach(w=>{i&&w.removeEventListener("scroll",n),o&&w.removeEventListener("resize",n)}),d==null||d(),(v=p)==null||v.disconnect(),p=null,c&&cancelAnimationFrame(g)}}const Eat=Qst,Tat=Xst,kat=Gst,xat=Zst,Aat=Kst,tte=qst,Iat=Jst,Rat=(e,t,n)=>{const r=new Map,i={platform:_at,...n},o={...i.platform,_c:r};return Wst(e,t,{...i,platform:o})};var Gx=typeof document<"u"?b.useLayoutEffect:b.useEffect;function qI(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,i;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!qI(e[r],t[r]))return!1;return!0}if(i=Object.keys(e),n=i.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,i[r]))return!1;for(r=n;r--!==0;){const o=i[r];if(!(o==="_owner"&&e.$$typeof)&&!qI(e[o],t[o]))return!1}return!0}return e!==e&&t!==t}function L1e(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function nte(e,t){const n=L1e(e);return Math.round(t*n)/n}function w6(e){const t=b.useRef(e);return Gx(()=>{t.current=e}),t}function ez(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:i,elements:{reference:o,floating:s}={},transform:a=!0,whileElementsMounted:c,open:l}=e,[u,d]=b.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[f,p]=b.useState(r);qI(f,r)||p(r);const[g,m]=b.useState(null),[y,v]=b.useState(null),w=b.useCallback(X=>{X!==T.current&&(T.current=X,m(X))},[]),S=b.useCallback(X=>{X!==x.current&&(x.current=X,v(X))},[]),C=o||g,E=s||y,T=b.useRef(null),x=b.useRef(null),O=b.useRef(u),A=c!=null,L=w6(c),U=w6(i),I=w6(l),F=b.useCallback(()=>{if(!T.current||!x.current)return;const X={placement:t,strategy:n,middleware:f};U.current&&(X.platform=U.current),Rat(T.current,x.current,X).then(Z=>{const G={...Z,isPositioned:I.current!==!1};P.current&&!qI(O.current,G)&&(O.current=G,Am.flushSync(()=>{d(G)}))})},[f,t,n,U,I]);Gx(()=>{l===!1&&O.current.isPositioned&&(O.current.isPositioned=!1,d(X=>({...X,isPositioned:!1})))},[l]);const P=b.useRef(!1);Gx(()=>(P.current=!0,()=>{P.current=!1}),[]),Gx(()=>{if(C&&(T.current=C),E&&(x.current=E),C&&E){if(L.current)return L.current(C,E,F);F()}},[C,E,F,L,A]);const W=b.useMemo(()=>({reference:T,floating:x,setReference:w,setFloating:S}),[w,S]),ee=b.useMemo(()=>({reference:C,floating:E}),[C,E]),Y=b.useMemo(()=>{const X={position:n,left:0,top:0};if(!ee.floating)return X;const Z=nte(ee.floating,u.x),G=nte(ee.floating,u.y);return a?{...X,transform:"translate("+Z+"px, "+G+"px)",...L1e(ee.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:Z,top:G}},[n,a,ee.floating,u.x,u.y]);return b.useMemo(()=>({...u,update:F,refs:W,elements:ee,floatingStyles:Y}),[u,F,W,ee,Y])}const Pat=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:r,padding:i}=typeof e=="function"?e(n):e;return r&&t(r)?r.current!=null?tte({element:r.current,padding:i}).fn(n):{}:r?tte({element:r,padding:i}).fn(n):{}}}},tz=(e,t)=>({...Eat(e),options:[e,t]}),F1e=(e,t)=>({...Tat(e),options:[e,t]}),j1e=(e,t)=>({...Iat(e),options:[e,t]}),nz=(e,t)=>({...kat(e),options:[e,t]}),U1e=(e,t)=>({...xat(e),options:[e,t]}),B1e=(e,t)=>({...Aat(e),options:[e,t]}),rz=(e,t)=>({...Pat(e),options:[e,t]});var Oat="Arrow",$1e=b.forwardRef((e,t)=>{const{children:n,width:r=10,height:i=5,...o}=e;return h.jsx(oo.svg,{...o,ref:t,width:r,height:i,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:h.jsx("polygon",{points:"0,0 30,0 15,10"})})});$1e.displayName=Oat;var Nat=$1e;function Mat(e,t=[]){let n=[];function r(o,s){const a=b.createContext(s),c=n.length;n=[...n,s];function l(d){const{scope:f,children:p,...g}=d,m=(f==null?void 0:f[e][c])||a,y=b.useMemo(()=>g,Object.values(g));return h.jsx(m.Provider,{value:y,children:p})}function u(d,f){const p=(f==null?void 0:f[e][c])||a,g=b.useContext(p);if(g)return g;if(s!==void 0)return s;throw new Error(`\`${d}\` must be used within \`${o}\``)}return l.displayName=o+"Provider",[l,u]}const i=()=>{const o=n.map(s=>b.createContext(s));return function(a){const c=(a==null?void 0:a[e])||o;return b.useMemo(()=>({[`__scope${e}`]:{...a,[e]:c}}),[a,c])}};return i.scopeName=e,[r,Dat(i,...t)]}function Dat(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(i=>({useScope:i(),scopeName:i.scopeName}));return function(o){const s=r.reduce((a,{useScope:c,scopeName:l})=>{const d=c(o)[`__scope${l}`];return{...a,...d}},{});return b.useMemo(()=>({[`__scope${t.scopeName}`]:s}),[s])}};return n.scopeName=t.scopeName,n}function iz(e){const[t,n]=b.useState(void 0);return Jc(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(i=>{if(!Array.isArray(i)||!i.length)return;const o=i[0];let s,a;if("borderBoxSize"in o){const c=o.borderBoxSize,l=Array.isArray(c)?c[0]:c;s=l.inlineSize,a=l.blockSize}else s=e.offsetWidth,a=e.offsetHeight;n({width:s,height:a})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}var oz="Popper",[H1e,z1e]=Mat(oz),[Lat,V1e]=H1e(oz),W1e=e=>{const{__scopePopper:t,children:n}=e,[r,i]=b.useState(null);return h.jsx(Lat,{scope:t,anchor:r,onAnchorChange:i,children:n})};W1e.displayName=oz;var q1e="PopperAnchor",G1e=b.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...i}=e,o=V1e(q1e,n),s=b.useRef(null),a=Ma(t,s);return b.useEffect(()=>{o.onAnchorChange((r==null?void 0:r.current)||s.current)}),r?null:h.jsx(oo.div,{...i,ref:a})});G1e.displayName=q1e;var sz="PopperContent",[Fat,jat]=H1e(sz),K1e=b.forwardRef((e,t)=>{var j,B,re,oe,ne,J;const{__scopePopper:n,side:r="bottom",sideOffset:i=0,align:o="center",alignOffset:s=0,arrowPadding:a=0,avoidCollisions:c=!0,collisionBoundary:l=[],collisionPadding:u=0,sticky:d="partial",hideWhenDetached:f=!1,updatePositionStrategy:p="optimized",onPlaced:g,...m}=e,y=V1e(sz,n),[v,w]=b.useState(null),S=Ma(t,Se=>w(Se)),[C,E]=b.useState(null),T=iz(C),x=(T==null?void 0:T.width)??0,O=(T==null?void 0:T.height)??0,A=r+(o!=="center"?"-"+o:""),L=typeof u=="number"?u:{top:0,right:0,bottom:0,left:0,...u},U=Array.isArray(l)?l:[l],I=U.length>0,F={padding:L,boundary:U.filter(Bat),altBoundary:I},{refs:P,floatingStyles:W,placement:ee,isPositioned:Y,middlewareData:X}=ez({strategy:"fixed",placement:A,whileElementsMounted:(...Se)=>ZH(...Se,{animationFrame:p==="always"}),elements:{reference:y.anchor},middleware:[tz({mainAxis:i+O,alignmentAxis:s}),c&&F1e({mainAxis:!0,crossAxis:!1,limiter:d==="partial"?j1e():void 0,...F}),c&&nz({...F}),U1e({...F,apply:({elements:Se,rects:H,availableWidth:be,availableHeight:V})=>{const{width:M,height:N}=H.reference,$=Se.floating.style;$.setProperty("--radix-popper-available-width",`${be}px`),$.setProperty("--radix-popper-available-height",`${V}px`),$.setProperty("--radix-popper-anchor-width",`${M}px`),$.setProperty("--radix-popper-anchor-height",`${N}px`)}}),C&&rz({element:C,padding:a}),$at({arrowWidth:x,arrowHeight:O}),f&&B1e({strategy:"referenceHidden",...F})]}),[Z,G]=X1e(ee),Q=ou(g);Jc(()=>{Y&&(Q==null||Q())},[Y,Q]);const q=(j=X.arrow)==null?void 0:j.x,z=(B=X.arrow)==null?void 0:B.y,ue=((re=X.arrow)==null?void 0:re.centerOffset)!==0,[ge,ae]=b.useState();return Jc(()=>{v&&ae(window.getComputedStyle(v).zIndex)},[v]),h.jsx("div",{ref:P.setFloating,"data-radix-popper-content-wrapper":"",style:{...W,transform:Y?W.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:ge,"--radix-popper-transform-origin":[(oe=X.transformOrigin)==null?void 0:oe.x,(ne=X.transformOrigin)==null?void 0:ne.y].join(" "),...((J=X.hide)==null?void 0:J.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:h.jsx(Fat,{scope:n,placedSide:Z,onArrowChange:E,arrowX:q,arrowY:z,shouldHideArrow:ue,children:h.jsx(oo.div,{"data-side":Z,"data-align":G,...m,ref:S,style:{...m.style,animation:Y?void 0:"none"}})})})});K1e.displayName=sz;var Y1e="PopperArrow",Uat={top:"bottom",right:"left",bottom:"top",left:"right"},Q1e=b.forwardRef(function(t,n){const{__scopePopper:r,...i}=t,o=jat(Y1e,r),s=Uat[o.placedSide];return h.jsx("span",{ref:o.onArrowChange,style:{position:"absolute",left:o.arrowX,top:o.arrowY,[s]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[o.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[o.placedSide],visibility:o.shouldHideArrow?"hidden":void 0},children:h.jsx(Nat,{...i,ref:n,style:{...i.style,display:"block"}})})});Q1e.displayName=Y1e;function Bat(e){return e!==null}var $at=e=>({name:"transformOrigin",options:e,fn(t){var y,v,w;const{placement:n,rects:r,middlewareData:i}=t,s=((y=i.arrow)==null?void 0:y.centerOffset)!==0,a=s?0:e.arrowWidth,c=s?0:e.arrowHeight,[l,u]=X1e(n),d={start:"0%",center:"50%",end:"100%"}[u],f=(((v=i.arrow)==null?void 0:v.x)??0)+a/2,p=(((w=i.arrow)==null?void 0:w.y)??0)+c/2;let g="",m="";return l==="bottom"?(g=s?d:`${f}px`,m=`${-c}px`):l==="top"?(g=s?d:`${f}px`,m=`${r.floating.height+c}px`):l==="right"?(g=`${-c}px`,m=s?d:`${p}px`):l==="left"&&(g=`${r.floating.width+c}px`,m=s?d:`${p}px`),{data:{x:g,y:m}}}});function X1e(e){const[t,n="center"]=e.split("-");return[t,n]}var Hat=W1e,J1e=G1e,zat=K1e,Vat=Q1e,az="Popover",[Z1e]=Ob(az,[z1e]),FE=z1e(),[Wat,Fm]=Z1e(az),ebe=e=>{const{__scopePopover:t,children:n,open:r,defaultOpen:i,onOpenChange:o,modal:s=!1}=e,a=FE(t),c=b.useRef(null),[l,u]=b.useState(!1),[d=!1,f]=XP({prop:r,defaultProp:i,onChange:o});return h.jsx(Hat,{...a,children:h.jsx(Wat,{scope:t,contentId:Gp(),triggerRef:c,open:d,onOpenChange:f,onOpenToggle:b.useCallback(()=>f(p=>!p),[f]),hasCustomAnchor:l,onCustomAnchorAdd:b.useCallback(()=>u(!0),[]),onCustomAnchorRemove:b.useCallback(()=>u(!1),[]),modal:s,children:n})})};ebe.displayName=az;var tbe="PopoverAnchor",qat=b.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,i=Fm(tbe,n),o=FE(n),{onCustomAnchorAdd:s,onCustomAnchorRemove:a}=i;return b.useEffect(()=>(s(),()=>a()),[s,a]),h.jsx(J1e,{...o,...r,ref:t})});qat.displayName=tbe;var nbe="PopoverTrigger",rbe=b.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,i=Fm(nbe,n),o=FE(n),s=Ma(t,i.triggerRef),a=h.jsx(oo.button,{type:"button","aria-haspopup":"dialog","aria-expanded":i.open,"aria-controls":i.contentId,"data-state":cbe(i.open),...r,ref:s,onClick:Ho(e.onClick,i.onOpenToggle)});return i.hasCustomAnchor?a:h.jsx(J1e,{asChild:!0,...o,children:a})});rbe.displayName=nbe;var cz="PopoverPortal",[Gat,Kat]=Z1e(cz,{forceMount:void 0}),ibe=e=>{const{__scopePopover:t,forceMount:n,children:r,container:i}=e,o=Fm(cz,t);return h.jsx(Gat,{scope:t,forceMount:n,children:h.jsx(Nb,{present:n||o.open,children:h.jsx(UH,{asChild:!0,container:i,children:r})})})};ibe.displayName=cz;var A1="PopoverContent",obe=b.forwardRef((e,t)=>
1551{const n=Kat(A1,e.__scopePopover),{forceMount:r=n.forceMount,...i}=e,o=Fm(A1,e.__scopePopover);return h.jsx(Nb,{present:r||o.open,children:o.modal?h.jsx(Yat,{...i,ref:t}):h.jsx(Qat,{...i,ref:t})})});obe.displayName=A1;var Yat=b.forwardRef((e,t)=>{const n=Fm(A1,e.__scopePopover),r=b.useRef(null),i=Ma(t,r),o=b.useRef(!1);return b.useEffect(()=>{const s=r.current;if(s)return u1e(s)},[]),h.jsx(BH,{as:JP,allowPinchZoom:!0,children:h.jsx(sbe,{...e,ref:i,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Ho(e.onCloseAutoFocus,s=>{var a;s.preventDefault(),o.current||(a=n.triggerRef.current)==null||a.focus()}),onPointerDownOutside:Ho(e.onPointerDownOutside,s=>{const a=s.detail.originalEvent,c=a.button===0&&a.ctrlKey===!0,l=a.button===2||c;o.current=l},{checkForDefaultPrevented:!1}),onFocusOutside:Ho(e.onFocusOutside,s=>s.preventDefault(),{checkForDefaultPrevented:!1})})})}),Qat=b.forwardRef((e,t)=>{const n=Fm(A1,e.__scopePopover),r=b.useRef(!1),i=b.useRef(!1);return h.jsx(sbe,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:o=>{var s,a;(s=e.onCloseAutoFocus)==null||s.call(e,o),o.defaultPrevented||(r.current||(a=n.triggerRef.current)==null||a.focus(),o.preventDefault()),r.current=!1,i.current=!1},onInteractOutside:o=>{var c,l;(c=e.onInteractOutside)==null||c.call(e,o),o.defaultPrevented||(r.current=!0,o.detail.originalEvent.type==="pointerdown"&&(i.current=!0));const s=o.target;((l=n.triggerRef.current)==null?void 0:l.contains(s))&&o.preventDefault(),o.detail.originalEvent.type==="focusin"&&i.current&&o.preventDefault()}})}),sbe=b.forwardRef((e,t)=>{const{__scopePopover:n,trapFocus:r,onOpenAutoFocus:i,onCloseAutoFocus:o,disableOutsidePointerEvents:s,onEscapeKeyDown:a,onPointerDownOutside:c,onFocusOutside:l,onInteractOutside:u,...d}=e,f=Fm(A1,n),p=FE(n);return n1e(),h.jsx(jH,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:i,onUnmountAutoFocus:o,children:h.jsx(FH,{asChild:!0,disableOutsidePointerEvents:s,onInteractOutside:u,onEscapeKeyDown:a,onPointerDownOutside:c,onFocusOutside:l,onDismiss:()=>f.onOpenChange(!1),children:h.jsx(zat,{"data-state":cbe(f.open),role:"dialog",id:f.contentId,...p,...d,ref:t,style:{...d.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}})})})}),abe="PopoverClose",Xat=b.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,i=Fm(abe,n);return h.jsx(oo.button,{type:"button",...r,ref:t,onClick:Ho(e.onClick,()=>i.onOpenChange(!1))})});Xat.displayName=abe;var Jat="PopoverArrow",Zat=b.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,i=FE(n);return h.jsx(Vat,{...i,...r,ref:t})});Zat.displayName=Jat;function cbe(e){return e?"open":"closed"}var al=ebe,cl=rbe,ll=ibe,uu=obe;const ect="_Trigger_10of3_1",tct="_Languages_10of3_30",nct="_Content_10of3_39",rct="_Header_10of3_52",ict="_Search_10of3_74",oct="_TopLanguages_10of3_112",sct="_AllLanguages_10of3_146",gp={Trigger:ect,Languages:tct,Content:nct,Header:rct,Search:ict,TopLanguages:oct,AllLanguages:sct},rte=e=>e.topLanguage?h.jsx("button",{type:"button",disabled:e.disabled,onClick:e.disabled?void 0:e.onClick,"aria-selected":e.selected,children:`${eu(e.language)} ${Kr(e.language)}`}):h.jsxs("button",{type:"button",onClick:e.disabled?void 0:e.onClick,disabled:e.disabled,children:[h.jsx("input",{type:e.type==="single"?"radio":"checkbox",disabled:e.disabled,checked:e.selected,readOnly:!0}),`${eu(e.language)} ${Kr(e.language)}`]}),lbe=b.forwardRef((e,t)=>{var s;const[n,r]=b.useState(((s=localStorage.getItem(Vn.TOP_LANGUAGES))==null?void 0:s.split(","))||wS.filter(a=>a!=="autodetect"));b.useEffect(()=>{localStorage.setItem(Vn.TOP_LANGUAGES,n.join(","))},[n]);const[i,o]=b.useState("");return h.jsxs(uu,{ref:t,className:gp.Content,align:"start",side:"bottom",style:e.style,sideOffset:8,onWheel:a=>a.stopPropagation(),onTouchMove:a=>a.stopPropagation(),children:[e.languages.length>11&&h.jsxs(h.Fragment,{children:[h.jsxs("div",{className:gp.Header,children:[h.jsxs("div",{className:gp.Search,children:[h.jsx($ye,{}),h.jsx("input",{type:"text",placeholder:"Search language",value:i,onChange:a=>o(a.target.value)})]}),h.jsx("button",{onClick:e.onClose,type:"button",children:h.jsx(Eh,{})})]}),h.jsxs("div",{className:gp.TopLanguages,children:[h.jsx("label",{children:"Top languages"}),h.jsx("div",{children:n.filter(a=>e.languages.includes(a)).filter(a=>{var c,l;return!i.length||((c=Kr(a))==null?void 0:c.toLowerCase().includes(i))||((l=PQ[a])==null?void 0:l.some(u=>u.toLowerCase().includes(i.toLowerCase())))}).map((a,c)=>h.jsx(rte,{topLanguage:!0,language:a,selected:e.selectedLanguages.includes(a),disabled:!e.selectedLanguages.includes(a)&&!!e.disableUnselected,type:e.type,onClick:()=>{e.onSelectLanguage(a)}},a+c))})]})]}),h.jsxs("div",{className:gp.AllLanguages,children:[e.languages.length>=10&&h.jsx("label",{children:"All languages"}),e.languages.filter(a=>{var c,l;return!i.length||((c=Kr(a))==null?void 0:c.toLowerCase().includes(i))||((l=PQ[a])==null?void 0:l.some(u=>u.toLowerCase().includes(i.toLowerCase())))}).map(a=>h.jsx(rte,{language:a,selected:e.selectedLanguages.includes(a),disabled:!e.selectedLanguages.includes(a)&&!!e.disableUnselected,type:e.type,onClick:()=>{e.onSelectLanguage(a),e.selectedLanguages.includes(a)||r(c=>[a,...c.filter(l=>l!==a).slice(0,c.length>=10?-1:void 0)])}},a))]})]})}),lz=e=>{const t=b.useMemo(()=>!e.maxLanguages||e.selectedLanguages.length<e.maxLanguages,[e.maxLanguages,e.selectedLanguages]),n=b.useMemo(()=>Object.values(rv).flatMap(c=>Array.from(c)),[]),[r,i]=b.useState(!1),o=b.useRef(null),[s,a]=b.useState();return b.useEffect(()=>{o.current&&a(o.current.offsetWidth)},[]),h.jsxs(al,{open:r,onOpenChange:i,children:[h.jsx(cl,{asChild:!0,ref:o,children:e.trigger??(e.selectedLanguages.length?h.jsxs("button",{className:gp.Trigger,type:"button",children:[h.jsx("div",{className:gp.Languages,children:e.selectedLanguages.map(c=>h.jsx("div",{children:`${eu(c)} ${Kr(c)}`},c))}),r?h.jsx(Xc,{}):h.jsx(na,{})]}):h.jsxs("button",{className:gp.Trigger,type:"button",children:["Add language",r?h.jsx(Xc,{}):h.jsx(na,{})]}))}),h.jsx(ll,{children:h.jsx(lbe,{type:"multi",languages:n,style:{width:s},selectedLanguages:e.selectedLanguages,onSelectLanguage:c=>{e.selectedLanguages.includes(c)?e.onChange(e.selectedLanguages.filter(l=>l!==c)):t&&e.onChange([...e.selectedLanguages,c])},disableUnselected:!t,onClose:()=>i(!1)})})]})},act="_Trigger_qiw1n_1",cct={Trigger:act};function rO(e){const[t,n]=b.useState(!1),r=b.useCallback(c=>{e.onChange(c),n(!1)},[e,n]),i=b.useRef(null),[o,s]=b.useState();b.useEffect(()=>{i.current&&s(i.current.offsetWidth)},[]);const a=ks();return h.jsxs(al,{open:t,onOpenChange:n,children:[h.jsx(cl,{asChild:!0,ref:i,className:cct.Trigger,children:e.trigger??h.jsxs(qe,{size:e.size,color:e.color,borderColor:e.borderColor,backgroundColor:e.backgroundColor,children:[h.jsx("span",{children:Kr(e.selectedLanguage)}),t?h.jsx(Xc,{}):h.jsx(na,{})]})}),h.jsx(ll,{children:h.jsx(lbe,{type:"single",style:{minWidth:a?o:void 0},languages:e.languages,selectedLanguages:[e.selectedLanguage],onSelectLanguage:c=>{r(c)},onClose:()=>n(!1)})})]})}function dh(e){const[t,n]=Jt(),r=b.useMemo(()=>{let o=t.metadata.selectedLanguage;return e.languages.length&&!e.languages.includes(t.metadata.selectedLanguage)&&(o=e.languages[0],n(s=>({...s,metadata:{...s.metadata,selectedLanguage:o}}))),o},[n,e.languages,t.metadata.selectedLanguage]),i=ls();return b.useEffect(()=>{i({type:"select_language",details:{language:r}}
1551)},[i,r]),h.jsx(rO,{color:e.color,borderColor:e.borderColor,backgroundColor:e.backgroundColor,selectedLanguage:r,onChange:o=>n(s=>({...s,metadata:{...s.metadata,selectedLanguage:o}})),languages:e.languages})}const Qo=[];for(let e=0;e<256;++e)Qo.push((e+256).toString(16).slice(1));function lct(e,t=0){return(Qo[e[t+0]]+Qo[e[t+1]]+Qo[e[t+2]]+Qo[e[t+3]]+"-"+Qo[e[t+4]]+Qo[e[t+5]]+"-"+Qo[e[t+6]]+Qo[e[t+7]]+"-"+Qo[e[t+8]]+Qo[e[t+9]]+"-"+Qo[e[t+10]]+Qo[e[t+11]]+Qo[e[t+12]]+Qo[e[t+13]]+Qo[e[t+14]]+Qo[e[t+15]]).toLowerCase()}let S6;const uct=new Uint8Array(16);function dct(){if(!S6){if(typeof crypto>"u"||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");S6=crypto.getRandomValues.bind(crypto)}return S6(uct)}const fct=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),ite={randomUUID:fct};function hct(e,t,n){var i;if(ite.randomUUID&&!e)return ite.randomUUID();e=e||{};const r=e.random??((i=e.rng)==null?void 0:i.call(e))??dct();if(r.length<16)throw new Error("Random bytes length must be >= 16");return r[6]=r[6]&15|64,r[8]=r[8]&63|128,lct(r)}const pct="_Chat_k8gn0_1",mct="_Header_k8gn0_8",gct="_Container_k8gn0_20",vct="_Messages_k8gn0_27",yct="_MessageContent_k8gn0_43",bct="_MessageSent_k8gn0_60",wct="_MessageReceived_k8gn0_74",Sct="_InputArea_k8gn0_84",Qd={Chat:pct,Header:mct,Container:gct,Messages:vct,MessageContent:yct,MessageSent:bct,MessageReceived:wct,InputArea:Sct},_ct=new TextDecoder,uz=()=>{const e=b.useContext(Na);return[e.messages,e.setMessages]},dz=()=>{const[,e]=uz(),[t]=Jt();hE("chat",b.useCallback(n=>{const r=JSON.parse(_ct.decode(n.payload));e(i=>r.identity===t.livekitId?i.map(o=>o.messageId===r.messageId?{...r,pending:!1}:o):[...i,r])},[e,t.livekitId])),b.useEffect(()=>()=>{e([])},[e])},Cct="aaa1rp3bb0ott3vie4c1le2ogado5udhabi7c0ademy5centure6ountant0s9o1tor4d0s1ult4e0g1ro2tna4f0l1rica5g0akhan5ency5i0g1rbus3force5tel5kdn3l0ibaba4pay4lfinanz6state5y2sace3tom5m0azon4ericanexpress7family11x2fam3ica3sterdam8nalytics7droid5quan4z2o0l2partments8p0le4q0uarelle8r0ab1mco4chi3my2pa2t0e3s0da2ia2sociates9t0hleta5torney7u0ction5di0ble3o3spost5thor3o0s4w0s2x0a2z0ure5ba0by2idu3namex4d1k2r0celona5laycard4s5efoot5gains6seball5ketball8uhaus5yern5b0c1t1va3cg1n2d1e0ats2uty4er2ntley5rlin4st0buy5t2f1g1h0arti5i0ble3d1ke2ng0o3o1z2j1lack0friday9ockbuster8g1omberg7ue3m0s1w2n0pparibas9o0ats3ehringer8fa2m1nd2o0k0ing5sch2tik2on4t1utique6x2r0adesco6idgestone9oadway5ker3ther5ussels7s1t1uild0ers6siness6y1zz3v1w1y1z0h3ca0b1fe2l0l1vinklein9m0era3p2non3petown5ital0one8r0avan4ds2e0er0s4s2sa1e1h1ino4t0ering5holic7ba1n1re3c1d1enter4o1rn3f0a1d2g1h0anel2nel4rity4se2t2eap3intai5ristmas6ome4urch5i0priani6rcle4sco3tadel4i0c2y3k1l0aims4eaning6ick2nic1que6othing5ud3ub0med6m1n1o0ach3des3ffee4llege4ogne5m0mbank4unity6pany2re3uter5sec4ndos3struction8ulting7tact3ractors9oking4l1p2rsica5untry4pon0s4rses6pa2r0edit0card4union9icket5own3s1uise0s6u0isinella9v1w1x1y0mru3ou3z2dad1nce3ta1e1ing3sun4y2clk3ds2e0al0er2s3gree4livery5l1oitte5ta3mocrat6ntal2ist5si0gn4v2hl2iamonds6et2gital5rect0ory7scount3ver5h2y2j1k1m1np2o0cs1tor4g1mains5t1wnload7rive4tv2ubai3nlop4pont4rban5vag2r2z2earth3t2c0o2deka3u0cation8e1g1mail3erck5nergy4gineer0ing9terprises10pson4quipment8r0icsson6ni3s0q1tate5t1u0rovision8s2vents5xchange6pert3osed4ress5traspace10fage2il1rwinds6th3mily4n0s2rm0ers5shion4t3edex3edback6rrari3ero6i0delity5o2lm2nal1nce1ial7re0stone6mdale6sh0ing5t0ness6j1k1lickr3ghts4r2orist4wers5y2m1o0o0d1tball6rd1ex2sale4um3undation8x2r0ee1senius7l1ogans4ntier7tr2ujitsu5n0d2rniture7tbol5yi3ga0l0lery3o1up4me0s3p1rden4y2b0iz3d0n2e0a1nt0ing5orge5f1g0ee3h1i0ft0s3ves2ing5l0ass3e1obal2o4m0ail3bh2o1x2n1odaddy5ld0point6f2o0dyear5g0le4p1t1v2p1q1r0ainger5phics5tis4een3ipe3ocery4up4s1t1u0cci3ge2ide2tars5ru3w1y2hair2mburg5ngout5us3bo2dfc0bank7ealth0care8lp1sinki6re1mes5iphop4samitsu7tachi5v2k0t2m1n1ockey4ldings5iday5medepot5goods5s0ense7nda3rse3spital5t0ing5t0els3mail5use3w2r1sbc3t1u0ghes5yatt3undai7ibm2cbc2e1u2d1e0ee3fm2kano4l1m0amat4db2mo0bilien9n0c1dustries8finiti5o2g1k1stitute6urance4e4t0ernational10uit4vestments10o1piranga7q1r0ish4s0maili5t0anbul7t0au2v3jaguar4va3cb2e0ep2tzt3welry6io2ll2m0p2nj2o0bs1urg4t1y2p0morgan6rs3uegos4niper7kaufen5ddi3e0rryhotels6logistics9properties14fh2g1h1i0a1ds2m1ndle4tchen5wi3m1n1oeln3matsu5sher5p0mg2n2r0d1ed3uokgroup8w1y0oto4z2la0caixa5mborghini8er3ncaster6d0rover6xess5salle5t0ino3robe5w0yer5b1c1ds2ease3clerc5frak4gal2o2xus4gbt3i0dl2fe0insurance9style7ghting6ke2lly3mited4o2ncoln4k2psy3ve1ing5k1lc1p2oan0s3cker3us3l1ndon4tte1o3ve3pl0financial11r1s1t0d0a3u0ndbeck6xe1ury5v1y2ma0drid4if1son4keup4n0agement7go3p1rket0ing3s4riott5shalls7ttel5ba2c0kinsey7d1e0d0ia3et2lbourne7me1orial6n0u2rckmsd7g1h1iami3crosoft7l1ni1t2t0subishi9k1l0b1s2m0a2n1o0bi0le4da2e1i1m1nash3ey2ster5rmon3tgage6scow4to0rcycles9v0ie4p1q1r1s0d2t0n1r2u0seum3ic4v1w1x1y1z2na0b1goya4me2vy3ba2c1e0c1t0bank4flix4work5ustar5w0s2xt0direct7us4f0l2g0o2hk2i0co2ke1on3nja3ssan1y5l1o0kia3rton4w0ruz3tv4p1r0a1w2tt2u1yc2z2obi1server7ffice5kinawa6layan0group9lo3m0ega4ne1g1l0ine5oo2pen3racle3nge4g0anic5igins6saka4tsuka4t2vh3pa0ge2nasonic7ris2s1tners4s1y3y2
1551ccw3e0t2f0izer5g1h0armacy6d1ilips5one2to0graphy6s4ysio5ics1tet2ures6d1n0g1k2oneer5zza4k1l0ace2y0station9umbing5s3m1n0c2ohl2ker3litie5rn2st3r0america6xi3ess3ime3o0d0uctions8f1gressive8mo2perties3y5tection8u0dential9s1t1ub2w0c2y2qa1pon3uebec3st5racing4dio4e0ad1lestate6tor2y4cipes5d0stone5umbrella9hab3ise0n3t2liance6n0t0als5pair3ort3ublican8st0aurant8view0s5xroth6ich0ardli6oh3l1o1p2o0cks3deo3gers4om3s0vp3u0gby3hr2n2w0e2yukyu6sa0arland6fe0ty4kura4le1on3msclub4ung5ndvik0coromant12ofi4p1rl2s1ve2xo3b0i1s2c0b1haeffler7midt4olarships8ol3ule3warz5ience5ot3d1e0arch3t2cure1ity6ek2lect4ner3rvices6ven3w1x0y3fr2g1h0angrila6rp3ell3ia1ksha5oes2p0ping5uji3w3i0lk2na1gles5te3j1k0i0n2y0pe4l0ing4m0art3ile4n0cf3o0ccer3ial4ftbank4ware6hu2lar2utions7ng1y2y2pa0ce3ort2t3r0l2s1t0ada2ples4r1tebank4farm7c0group6ockholm6rage3e3ream4udio2y3yle4u0cks3pplies3y2ort5rf1gery5zuki5v1watch4iss4x1y0dney4stems6z2tab1ipei4lk2obao4rget4tamotors6r2too4x0i3c0i2d0k2eam2ch0nology8l1masek5nnis4va3f1g1h0d1eater2re6iaa2ckets5enda4ps2res2ol4j0maxx4x2k0maxx5l1m0all4n1o0day3kyo3ols3p1ray3shiba5tal3urs3wn2yota3s3r0ade1ing4ining5vel0ers0insurance16ust3v2t1ube2i1nes3shu4v0s2w1z2ua1bank3s2g1k1nicom3versity8o2ol2ps2s1y1z2va0cations7na1guard7c1e0gas3ntures6risign5mögensberater2ung14sicherung10t2g1i0ajes4deo3g1king4llas4n1p1rgin4sa1ion4va1o3laanderen9n1odka3lvo3te1ing3o2yage5u2wales2mart4ter4ng0gou5tch0es6eather0channel12bcam3er2site5d0ding5ibo2r3f1hoswho6ien2ki2lliamhill9n0dows4e1ners6me2olterskluwer11odside6rk0s2ld3w2s1tc1f3xbox3erox4ihuan4n2xx2yz3yachts4hoo3maxun5ndex5e1odobashi7ga2kohama6u0tube6t1un3za0ppos4ra3ero3ip2m1one3uerich6w2",Ect="ελ1υ2бг1ел3дети4ею2католик6ом3мÐ
1551ºÐ´2он1сква6онлайн5рг3рус2ф2сайт3рб3укр3қаз3Õ°Õ¡Õµ3ישראל5קום3ابوظبي5رامكو5لاردن4بحرين5جزائر5سعودية6عليان5مغرب5مارات5یران5بارت2زار4يتك3ھارت5تونس4سودان3رية5شبكة4عراق2ب2مان4فلسطين6قطر3كاثوليك6وم3مصر2ليسيا5وريتانيا7قع4همراه5پاکستان7ڀارت4कॉम3नेट3भारत0म्3ोत5संगठन5বাংলা5ভারত2ৰত4ਭਾਰਤ4ભારત4ଭାରତ4இந்தியா6லங்கை6சிங்கப்பூர்11భారత్5ಭಾರತ4ഭാരതം5ලංකා4คอม3ไทย3ລາວ3გე2みんな3アマゾン4クラウド4グーグル4コム2ストア3セール3ファッション6ポイント4世界2中信1国1國1文网3亚马逊3企业2佛山2信息2健康2八卦2公司1益2台湾1灣2商城1店1标2嘉里0大酒店5在线2大拿2天主教3娱乐2家電2广东2微博2慈善2我爱你3手机2招聘2政务1府2新加坡2闻2时尚2書籍2机构2淡马锡3游戏2澳門2点看2移动2组织机构4网址1店1站1络2联通2谷歌2购物2通販2集团2電訊盈科4飞利浦3食品2餐厅2香格里拉3港2닷넷1ì»´2삼성2한국2",wv=(e,t)=>{for(const n in t)e[n]=t[n];return e},x7="numeric",A7="ascii",I7="alpha",t_="asciinumeric",ES="alphanumeric",R7="domain",ube="emoji",Tct="scheme",kct="slashscheme",_6="whitespace";function xct(e,t){return e in t||(t[e]=[]),t[e]}function Sg(e,t,n){t[x7]&&(t[t_]=!0,t[ES]=!0),t[A7]&&(t[t_]=!0,t[I7]=!0),t[t_]&&(t[ES]=!0),t[I7]&&(t[ES]=!0),t[ES]&&(t[R7]=!0),t[ube]&&(t[R7]=!0);for(const r in t){const i=xct(r,n);i.indexOf(e)<0&&i.push(e)}}function Act(e,t){const n={};for(const r in t)t[r].indexOf(e)>=0&&(n[r]=!0);return n}function tc(e=null){this.j={},this.jr=[],this.jd=null,this.t=e}tc.groups={};tc.prototype={accepts(){return!!this.t},go(e){const t=this,n=t.j[e];if(n)return n;for(let r=0;r<t.jr.length;r++){const i=t.jr[r][0],o=t.jr[r][1];if(o&&i.test(e))return o}return t.jd},has(e,t=!1){return t?e in this.j:!!this.go(e)},ta(e,t,n,r){for(let i=0;i<e.length;i++)this.tt(e[i],t,n,r)},tr(e,t,n,r){r=r||tc.groups;let i;return t&&t.j?i=t:(i=new tc(t),n&&r&&Sg(t,n,r)),this.jr.push([e,i]),i},ts(e,t,n,r){let i=this;const o=e.length;if(!o)return i;for(let s=0;s<o-1;s++)i=i.tt(e[s]);return i.tt(e[o-1],t,n,r)},tt(e,t,n,r){r=r||tc.groups;const i=this;if(t&&t.j)return i.j[e]=t,t;const o=t;let s,a=i.go(e);if(a?(s=new tc,wv(s.j,a.j),s.jr.push.apply(s.jr,a.jr),s.jd=a.jd,s.t=a.t):s=new tc,o){if(r)if(s.t&&typeof s.t=="string"){const c=wv(Act(s.t,r),n);Sg(o,c,r)}else n&&Sg(o,n,r);s.t=o}return i.j[e]=s,s}};const ln=(e,t,n,r,i)=>e.ta(t,n,r,i),wi=(e,t,n,r,i)=>e.tr(t,n,r,i),ote=(e,t,n,r,i)=>e.ts(t,n,r,i),et=(e,t,n,r,i)=>e.tt(t,n,r,i),sf="WORD",P7="UWORD",dbe="ASCIINUMERICAL",fbe="ALPHANUMERICAL",yC="LOCALHOST",O7="TLD",N7="UTLD",Kx="SCHEME",j0="SLASH_SCHEME",fz="NUM",M7="WS",hz="NL",n_="OPENBRACE",r_="CLOSEBRACE",GI="OPENBRACKET",KI="CLOSEBRACKET",YI="OPENPAREN",QI="CLOSEPAREN",XI="OPENANGLEBRACKET",JI="CLOSEANGLEBRACKET",ZI="FULLWIDTHLEFTPAREN",eR="FULLWIDTHRIGHTPAREN",tR="LEFTCORNERBRACKET",nR="RIGHTCORNERBRACKET",rR="LEFTWHITECORNERBRACKET",iR="RIGHTWHITECORNERBRACKET",oR="FULLWIDTHLESSTHAN",sR="FULLWIDTHGREATERTHAN",aR="AMPERSAND",pz="APOSTROPHE",cR="ASTERISK",sp="AT",lR="BACKSLASH",uR="BACKTICK",dR="CARET",vp="COLON",mz="COMMA",fR="DOLLAR",Ou="DOT",hR="EQUALS",gz="EXCLAMATION",xc="HYPHEN",i_="PERCENT",pR="PIPE",mR="PLUS",gR="POUND",o_="QUERY",vz="QUOTE",hbe="FULLWIDTHMIDDLEDOT",yz="SEMI",Nu="SLASH",s_="TILDE",vR="UNDERSCORE",pbe="EMOJI",yR="SYM";var mbe=Object.freeze({__proto__:null,WORD:sf,UWORD:P7,ASCIINUMERICAL:dbe,ALPHANUMERICAL:fbe,LOCALHOST:yC,TLD:O7,UTLD:N7,SCHEME:Kx,SLASH_SCHEME:j0,NUM:fz,WS:M7,NL:hz,OPENBRACE:n_,CLOSEBRACE:r_,OPENBRACKET:GI,CLOSEBRACKET:KI,OPENPAREN:YI,CLOSEPAREN:QI,OPENANGLEBRACKET:XI,CLOSEANGLEBRACKET:JI,FULLWIDTHLEFTPAREN:ZI,FULLWIDTHRIGHTPAREN:eR,LEFTCORNERBRACKET:tR,RIGHTCORNERBRACKET:nR,LEFTWHITECORNERBRACKET:rR,RIGHTWHITECORNERBRACKET:iR,FULLWIDTHLESSTHAN:oR,FULLWIDTHGREATERTHAN:sR,AMPERSAND:aR,APOSTROPHE:pz,ASTERISK:cR,AT:sp,BACKSLASH:lR,BACKTICK:uR,CARET:dR,COLON:vp,COMMA:mz,DOLLAR:fR,DOT:Ou,EQUALS:hR,EXCLAMATION:gz,HYPHEN:xc,PERCENT:i_,PIPE:pR,PLUS:mR,POUND:gR,QUERY:o_,QUOTE:vz,FULLWIDTHMIDDLEDOT:hbe,SEMI:yz,SLASH:Nu,TILDE:s_,UNDERSCORE:vR,EMOJI:pbe,SYM:yR});const Xd=/[a-z]/,Vw=new RegExp("\\p{L}","u"),C6=new RegExp("\\p{Emoji}","u"),Jd=/\d/,E6=/\s/,ste="\r",T6=`
1552`,Ict="️",Rct="‍",k6="";let GT=null,KT=null;function Pct(e=[]){const t={};tc.groups=t;const n=new tc;GT==null&&(GT=ate(Cct)),KT==null&&(KT=ate(Ect)),et(n,"'",pz),et(n,"{",n_),et(n,"}",r_),et(n,"[",GI),et(n,"]",KI),et(n,"(",YI),et(n,")",QI),et(n,"<",XI),et(n,">",JI),et(n,"(",ZI),et(n,")",eR),et(n,"「",tR),et(n,"」",nR),et(n,"『",rR),et(n,"』",iR),et(n,"<",oR),et(n,">",sR),et(n,"&",aR),et(n,"*",cR),et(n,"@",sp),et(n,"`",uR),et(n,"^",dR),et(n,":",vp),et(n,",",mz),et(n,"$",fR),et(n,".",Ou),et(n,"=",hR),et(n,"!",gz),et(n,"-",xc),et(n,"%",i_),et(n,"|",pR),et(n,"+",mR),et(n,"#",gR),et(n,"?",o_),et(n,'"',vz),et(n,"/",Nu),et(n,";",yz),et(n,"~",s_),et(n,"_",vR),et(n,"\\",lR),et(n,"・",hbe);const r=wi(n,Jd,fz,{[x7]:!0});wi(r,Jd,r);const i=wi(r,Xd,dbe,{[t_]:!0}),o=wi(r,Vw,fbe,{[ES]:!0}),s=wi(n,Xd,sf,{[A7]:!0});wi(s,Jd,i),wi(s,Xd,s),wi(i,Jd,i),wi(i,Xd,i);const a=wi(n,Vw,P7,{[I7]:!0});wi(a,Xd),wi(a,Jd,o),wi(a,Vw,a),wi(o,Jd,o),wi(o,Xd),wi(o,Vw,o);const c=et(n,T6,hz,{[_6]:!0}),l=et(n,ste,M7,{[_6]:!0}),u=wi(n,E6,M7,{[_6]:!0});et(n,k6,u),et(l,T6,c),et(l,k6,u),wi(l,E6,u),et(u,ste),et(u,T6),wi(u,E6,u),et(u,k6,u);const d=wi(n,C6,pbe,{[ube]:!0});et(d,"#"),wi(d,C6,d),et(d,Ict,d);const f=et(d,Rct);et(f,"#"),wi(f,C6,d);const p=[[Xd,s],[Jd,i]],g=[[Xd,null],[Vw,a],[Jd,o]];for(let m=0;m<GT.length;m++)$h(n,GT[m],O7,sf,p);for(let m=0;m<KT.length;m++)$h(n,KT[m],N7,P7,g);Sg(O7,{tld:!0,ascii:!0},t),Sg(N7,{utld:!0,alpha:!0},t),$h(n,"file",Kx,sf,p),$h(n,"mailto",Kx,sf,p),$h(n,"http",j0,sf,p),$h(n,"https",j0,sf,p),$h(n,"ftp",j0,sf,p),$h(n,"ftps",j0,sf,p),Sg(Kx,{scheme:!0,ascii:!0},t),Sg(j0,{slashscheme:!0,ascii:!0},t),e=e.sort((m,y)=>m[0]>y[0]?1:-1);for(let m=0;m<e.length;m++){const y=e[m][0],w=e[m][1]?{[Tct]:!0}:{[kct]:!0};y.indexOf("-")>=0?w[R7]=!0:Xd.test(y)?Jd.test(y)?w[t_]=!0:w[A7]=!0:w[x7]=!0,ote(n,y,y,w)}return ote(n,"localhost",yC,{ascii:!0}),n.jd=new tc(yR),{start:n,tokens:wv({groups:t},mbe)}}function gbe(e,t){const n=Oct(t.replace(/[A-Z]/g,a=>a.toLowerCase())),r=n.length,i=[];let o=0,s=0;for(;s<r;){let a=e,c=null,l=0,u=null,d=-1,f=-1;for(;s<r&&(c=a.go(n[s]));
vendor: 6,461 bytes, line 1552
1552)a=c,a.accepts()?(d=0,f=0,u=a):d>=0&&(d+=n[s].length,f++),l+=n[s].length,o+=n[s].length,s++;o-=d,s-=f,l-=d,i.push({t:u.t,v:t.slice(o-l,o),s:o-l,e:o})}return i}function Oct(e){const t=[],n=e.length;let r=0;for(;r<n;){let i=e.charCodeAt(r),o,s=i<55296||i>56319||r+1===n||(o=e.charCodeAt(r+1))<56320||o>57343?e[r]:e.slice(r,r+2);t.push(s),r+=s.length}return t}function $h(e,t,n,r,i){let o;const s=t.length;for(let a=0;a<s-1;a++){const c=t[a];e.j[c]?o=e.j[c]:(o=new tc(r),o.jr=i.slice(),e.j[c]=o),e=o}return o=new tc(n),o.jr=i.slice(),e.j[t[s-1]]=o,o}function ate(e){const t=[],n=[];let r=0,i="0123456789";for(;r<e.length;){let o=0;for(;i.indexOf(e[r+o])>=0;)o++;if(o>0){t.push(n.join(""));for(let s=parseInt(e.substring(r,r+o),10);s>0;s--)n.pop();r+=o}else n.push(e[r]),r++}return t}const I1={defaultProtocol:"http",events:null,format:cte,formatHref:cte,nl2br:!1,tagName:"a",target:null,rel:null,validate:!0,truncate:1/0,className:null,attributes:null,ignoreTags:[],render:null};function iO(e,t=null){let n=wv({},I1);e&&(n=wv(n,e instanceof iO?e.o:e));const r=n.ignoreTags,i=[];for(let o=0;o<r.length;o++)i.push(r[o].toUpperCase());this.o=n,t&&(this.defaultRender=t),this.ignoreTags=i}iO.prototype={o:I1,ignoreTags:[],defaultRender(e){return e},check(e){return this.get("validate",e.toString(),e)},get(e,t,n){const r=t!=null;let i=this.o[e];return i&&(typeof i=="object"?(i=n.t in i?i[n.t]:I1[e],typeof i=="function"&&r&&(i=i(t,n))):typeof i=="function"&&r&&(i=i(t,n.t,n)),i)},getObj(e,t,n){let r=this.o[e];return typeof r=="function"&&t!=null&&(r=r(t,n.t,n)),r},render(e){const t=e.render(this);return(this.get("render",null,e)||this.defaultRender)(t,e.t,e)}};function cte(e){return e}var vbe=Object.freeze({__proto__:null,defaults:I1,Options:iO,assign:wv});function ybe(e,t){this.t="token",this.v=e,this.tk=t}ybe.prototype={isLink:!1,toString(){return this.v},toHref(e){return this.toString()},toFormattedString(e){const t=this.toString(),n=e.get("truncate",t,this),r=e.get("format",t,this);return n&&r.length>n?r.substring(0,n)+"…":r},toFormattedHref(e){return e.get("formatHref",this.toHref(e.get("defaultProtocol")),this)},startIndex(){return this.tk[0].s},endIndex(){return this.tk[this.tk.length-1].e},toObject(e=I1.defaultProtocol){return{type:this.t,value:this.toString(),isLink:this.isLink,href:this.toHref(e),start:this.startIndex(),end:this.endIndex()}},toFormattedObject(e){return{type:this.t,value:this.toFormattedString(e),isLink:this.isLink,href:this.toFormattedHref(e),start:this.startIndex(),end:this.endIndex()}},validate(e){return e.get("validate",this.toString(),this)},render(e){const t=this,n=this.toHref(e.get("defaultProtocol")),r=e.get("formatHref",n,this),i=e.get("tagName",n,t),o=this.toFormattedString(e),s={},a=e.get("className",n,t),c=e.get("target",n,t),l=e.get("rel",n,t),u=e.getObj("attributes",n,t),d=e.getObj("events",n,t);return s.href=r,a&&(s.class=a),c&&(s.target=c),l&&(s.rel=l),u&&wv(s,u),{tagName:i,attributes:s,content:o,eventListeners:d}}};function oO(e,t){class n extends ybe{constructor(i,o){super(i,o),this.t=e}}for(const r in t)n.prototype[r]=t[r];return n.t=e,n}const lte=oO("email",{isLink:!0,toHref(){return"mailto:"+this.toString()}}),ute=oO("text"),Nct=oO("nl"),YT=oO("url",{isLink:!0,toHref(e=I1.defaultProtocol){return this.hasProtocol()?this.v:`${e}://${this.v}`},hasProtocol(){const e=this.tk;return e.length>=2&&e[0].t!==yC&&e[1].t===vp}}),bc=e=>new tc(e);function Mct({groups:e}){const t=e.domain.concat([aR,cR,sp,lR,uR,dR,fR,hR,xc,fz,i_,pR,mR,gR,Nu,yR,s_,vR]),n=[vp,mz,Ou,gz,i_,o_,vz,yz,XI,JI,n_,r_,KI,GI,YI,QI,ZI,eR,tR,nR,rR,iR,oR,sR],r=[aR,pz,cR,lR,uR,dR,fR,hR,xc,n_,r_,i_,pR,mR,gR,o_,Nu,yR,s_,vR],i=bc(),o=et(i,s_);ln(o,r,o),ln(o,e.domain,o);const s=bc(),a=bc(),c=bc();ln(i,e.domain,s),ln(i,e.scheme,a),ln(i,e.slashscheme,c),ln(s,r,o),ln(s,e.domain,s);const l=et(s,sp);et(o,sp,l),et(a,sp,l),et(c,sp,l);const u=et(o,Ou);ln(u,r,o),ln(u,e.domain,o);const d=bc();ln(l,e.domain,d),ln(d,e.domain,d);const f=et(d,Ou);ln(f,e.domain,d);const p=bc(lte);ln(f,e.tld,p),ln(f,e.utld,p),et(l,yC,p);const g=et(d,xc);et(g,xc,g),ln(g,e.domain,d),ln(p,e.domain,d),et(p,Ou,f),et(p,xc,g);const m=et(p,vp);ln(m,e.numeric,lte);const y=et(s,xc),v=et(s,Ou);et(y,xc,y),ln(y,e.domain,s),ln(v,r,o),ln(v,e.domain,s);const w=bc(YT);ln(v,e.tld,w),ln(v,e.utld,w),ln(w,e.domain,s),ln(w,r,o),et(w,Ou,v),et(w,xc,y),et(w,sp,l);const S=et(w,vp),C=bc(YT);ln(S,e.numeric,C);const E=bc(YT),T=bc();ln(E,t,E),ln(E,n,T),ln(T,t,E),ln(T,n,T),et(w,Nu,E),et(C,Nu,E);const x=et(a,vp),O=et(c,vp),A=et(O,Nu),L=et(A,Nu);ln(a,e.domain,s),et(a,Ou,v),et(a,xc,y),ln(c,e.domain,s),et(c,Ou,v),et(c,xc,y),ln(x,e.domain,E),et(x,Nu,E),et(x,o_,E),ln(L,e.domain,E),ln(L,t,E),et(L,Nu,E);const U=[[n_,r_],[GI,KI],[YI,QI],[XI,JI],[ZI,eR],[tR,nR],[rR,iR],[oR,sR]];for(let I=0;I<U.length;I++){const[F,P]=U[I],W=et(E,F);et(T,F,W),et(W,P,E);const ee=bc(YT);ln(W,t,ee);const Y=bc();ln(W,n),ln(ee,t,ee),ln(ee,n,Y),ln(Y,t,ee),ln(Y,n,Y),et(ee,P,E),et(Y,P,E)}return et(i,yC,w),et(i,hz,Nct),{start:i,tokens:mbe}}function Dct(e,t,n){let r=n.length,i=0,o=[],s=[];for(;i<r;){let a=e,c=null,l=null,u=0,d=null,f=-1;for(;i<r&&!(c=a.go(n[i].t));)s.push(n[i++]);for(;i<r&&(l=c||a.go(n[i].t));)c=null,a=l,a.accepts()?(f=0,d=a):f>=0&&f++,i++,u++;if(f<0)i-=u,i<r&&(s.push(n[i]),i++);else{s.length>0&&(o.push(x6(ute,t,s)),s=[]),i-=f,u-=f;const p=d.t,g=n.slice(i-u,i);o.push(x6(p,t,g))}}return s.length>0&&o.push(x6(ute,t,s)),o}function x6(e,t,n){const r=n[0].s,i=n[n.length-1].e,o=t.slice(r,i);return new e(o,n)}const ms={scanner:null,parser:null,tokenQueue:[],pluginQueue:[],customSchemes:[],initialized:!1};function Lct(){ms.scanner=Pct(ms.customSchemes);for(let e=0;e<ms.tokenQueue.length;e++)ms.tokenQueue[e][1]({scanner:ms.scanner});ms.parser=Mct(ms.scanner.tokens);for(let e=0;e<ms.pluginQueue.length;e++)ms.pluginQueue[e][1]({scanner:ms.scanner,parser:ms.parser});return ms.initialized=!0,ms}function bbe(e){return ms.initialized||Lct(),Dct(ms.parser.start,e,gbe(ms.scanner.start,e))}bbe.scan=gbe;function Fct(e,t,n){const r=bbe(e),i=[];for(let o=0;o<r.length;o++){const s=r[o];if(s.t==="nl"&&t.get("nl2br")){const a=`__linkify-el-${n.elementId++}`;i.push(b.createElement("br",{key:a}))}else if(!s.isLink||!t.check(s))i.push(s.toString());else{let a=t.render(s);if(!("key"in a.props)){const c=`__linkify-el-${n.elementId++}`,l=vbe.assign({key:c},a.props);a=b.cloneElement(a,l)}i.push(a)}}return i}function wbe(e,t,n){if(b.Children.count(e.props.children)===0)return e;const r=[];
1552b.Children.forEach(e.props.children,s=>{typeof s=="string"?r.push.apply(r,Fct(s,t,n)):b.isValidElement(s)?typeof s.type=="string"&&t.ignoreTags.indexOf(s.type.toUpperCase())>=0?r.push(s):r.push(wbe(s,t,n)):r.push(s)});const i=`__linkify-el-${n.elementId++}`,o=vbe.assign({key:i},e.props);return b.cloneElement(e,o,r)}const jct=e=>{let t=0;const n=({tagName:c,attributes:l,content:u})=>(l.key=`__linkify-lnk-${t++}`,l.class&&(l.className=l.class,delete l.class),b.createElement(c,l,u)),r={key:"__linkify-wrapper"};for(const c in e)c!=="options"&&c!=="as"&&c!=="tagName"&&c!=="children"&&(r[c]=e[c]);const i=new iO(e.options,n),o=e.as||e.tagName||b.Fragment||"span",s=e.children,a=b.createElement(o,r,s);return wbe(a,i,{elementId:0})},bz=({canAskQuestions:e,mode:t,onOpenChange:n,onReceivedMessages:r,className:i})=>{const[o,s]=uz(),[a,c]=b.useState(""),l=Rr(),u=b.useMemo(()=>l!=null&&l.room?l.room.languages:[],[l]),[d]=Jt(),f=mE(),p=Cn(),g=Gt.usePublishMessage(p),m=async()=>{if(a.trim()==="")return;const E=hct(),T=a1(d.metadata.selectedLanguage)||"en",x=u.filter(U=>U!==T).join(","),O=f==null?void 0:f.id;if(!O)return;const A={messageId:E,text:{[T]:a},name:d.metadata.name??"Guest",identity:d.livekitId,pending:!0,timestamp:new Date().toISOString()};s(U=>[...U,A]),c("");const L={roomId:O,messageId:E,sourceLanguage:T,targetLanguages:x,text:a,name:d.metadata.name??"Guest",identity:d.livekitId};try{await g(L)}catch(U){throw s(I=>I.filter(F=>F.messageId!==E)),console.error("Error sending message:",U),U}},y=E=>{c(E.target.value)},v=E=>{E.key==="Enter"&&!E.shiftKey&&(E.preventDefault(),m())},w=b.useRef(0);b.useEffect(()=>{const E=Math.max(o.length-w.current,0);w.current=o.length,r&&E>0&&r(E)},[o.length,r]);const S=b.useMemo(()=>{switch(t){case"chat":return"Chat";case"qna":return"Q&A"}},[t]),C=b.useRef(null);return b.useEffect(()=>{var E;(E=C.current)==null||E.scrollTo({top:C.current.scrollHeight})},[o,C]),h.jsx("div",{className:`${Qd.Chat} ${i||""}`,children:h.jsxs("div",{className:Qd.Container,children:[h.jsxs("div",{className:Qd.Header,children:[h.jsx("h3",{children:S}),h.jsx("button",{onClick:()=>n&&n(!1),children:h.jsx(Eh,{})})]}),h.jsx("div",{className:Qd.Messages,ref:C,children:o.map(E=>h.jsxs("div",{className:E.identity===d.livekitId&&t==="chat"?Qd.MessageSent:Qd.MessageReceived,children:[h.jsx("h3",{children:E.name}),h.jsx("div",{className:Qd.MessageContent,children:h.jsx(jct,{options:{target:"_blank"},children:d.metadata.selectedLanguage==="autodetect"?E.text.en||"    ":E.text[a1(d.metadata.selectedLanguage)||"en"]||E.text.en||"   "})})]},E.messageId))}),e&&h.jsxs("div",{className:Qd.InputArea,children:[h.jsx("input",{type:"text",placeholder:"Type your questions here",value:a,onChange:y,onKeyDown:v,className:Qd.Input}),h.jsx(qe,{size:"x-small",onClick:m,children:"Send"})]})]})})},Uct="_Loader_1ogtn_1",Bct="_InlineLoader_1ogtn_10",$ct="_LoaderDot_1ogtn_18",Cu={Loader:Uct,InlineLoader:Bct,LoaderDot:$ct},Sn=e=>e.inline?h.jsxs("div",{className:Cu.InlineLoader,style:e.size?{"--size":`${e.size}px`,...e.style}:e.style,children:[h.jsx("div",{className:Cu.LoaderDot}),h.jsx("div",{className:Cu.LoaderDot}),h.jsx("div",{className:Cu.LoaderDot}),h.jsx("div",{className:Cu.LoaderDot})]}):h.jsxs("div",{className:Cu.Loader,style:e.size?{"--size":`${e.size}px`,...e.style}:e.style,children:[h.jsx("div",{className:Cu.LoaderDot}),h.jsx("div",{className:Cu.LoaderDot}),h.jsx("div",{className:Cu.LoaderDot}),h.jsx("div",{className:Cu.LoaderDot})]}),Sbe=()=>{const e=bh();return b.useMemo(()=>{if(e.metadata)try{const{recording_id:t}=JSON.parse(e.metadata);return t||void 0}catch(t){console.error("Error parsing room metadata for recording ID:",t);return}},[e.metadata])},_be=e=>{const t=bh(),n=b.useRef();b.useEffect(()=>{let r;if(t.metadata)try{const{recording_id:i}=JSON.parse(t.metadata);r=i||void 0}catch(i){console.error("Error parsing room metadata for recording ID:",i)}n.current!==r&&(n.current&&!r&&mt(e.stopToast),n.current=r)},[t.metadata,e.inProgressToast,e.stopToast]),hE("start_recording_success",()=>{mt(e.inProgressToast)})},Hct="_VoiceAvatar_lvkd6_1",zct="_VoiceList_lvkd6_11",Vct="_VoiceItem_lvkd6_20",Wct="_VoiceIcon_lvkd6_45",qct="_VoiceName_lvkd6_53",Gct="_PlayButton_lvkd6_60",Kct="_Wave_lvkd6_88",Yct="_WaveDelay1_lvkd6_93",Qct="_WaveDelay2_lvkd6_96",Xct="_WaveDelay3_lvkd6_99",Jct="_WaveDelay4_lvkd6_102",Zct="_WaveDelay5_lvk
1552d6_105",elt="_WaveformAndButton_lvkd6_109",tlt="_Filters_lvkd6_116",hr={VoiceAvatar:Hct,VoiceList:zct,VoiceItem:Vct,VoiceIcon:Wct,VoiceName:qct,PlayButton:Gct,Wave:Kct,WaveDelay1:Yct,WaveDelay2:Qct,WaveDelay3:Xct,WaveDelay4:Jct,WaveDelay5:Zct,WaveformAndButton:elt,Filters:tlt},nlt="_Trigger_4uo50_1",rlt="_Content_4uo50_14",dte={Trigger:nlt,Content:rlt},Ia=e=>{const[t,n]=b.useState(!1),r=b.useMemo(()=>e.items.find(a=>a.value===e.selected),[e.items,e.selected]),i=b.useRef(null),[o,s]=b.useState();return b.useEffect(()=>{i.current&&s(i.current.offsetWidth)},[e.selected]),h.jsxs(al,{open:t,onOpenChange:n,children:[h.jsx(cl,{ref:i,className:`${dte.Trigger} ${e.triggerClassName??""}`,asChild:!0,children:h.jsxs(qe,{color:e.color||"gray",borderColor:e.borderColor||"dark-gray",backgroundColor:e.backgroundColor||"dark-gray",children:[h.jsx("span",{children:(r==null?void 0:r.label)??e.defaultLabel??"Select..."}),t?h.jsx(Xc,{}):h.jsx(na,{})]})}),h.jsx(ll,{children:h.jsx(uu,{className:`${dte.Content} ${e.contentClassName??""}`,style:{minWidth:o},side:"bottom",align:e.align||"start",sideOffset:8,children:e.items.map(a=>h.jsx("button",{type:"button",onClick:()=>{n(!1),e.onChange(a.value)},"aria-selected":e.selected===a.value,children:a.label},String(a.value)))})})]})};function ilt(e){const t=b.useCallback(n=>{switch(n){case"male":return"Male";case"female":return"Female";case void 0:return"All"}},[]);return h.jsx(Ia,{backgroundColor:"black",borderColor:"dark-gray",selected:e.gender,items:[{value:void 0,label:t()},{value:"male",label:t("male")},{value:"female",label:t("female")}],onChange:n=>e.onChange(n)})}const olt="data:image/webp;base64,UklGRnwEAABXRUJQVlA4IHAEAACQEwCdASoyADIAPm0ujkWkIqEY/HUkQAbEsYCDALPbbUeZmsjcBuCltqOeHbdzwT8FnqCTGcH/GPvHFNtbbvJl7vqdRSSmyNjMfF99ZewN0hP3U9lA0lPMtFyrHsTHM4T0b2E3zuvu5TPXkqR6aILycblE4yaLOkZHSbBfOh+Er0SJjgDXp4lcK/0aun3FtlsBsFnOyrqC/5nXNMy444Ivh8H4EqAA/v71r1roKZs4/U1z9NxebXDlfNPrImAlcBPscHQu2X4iCn2fwPctqX8iwcYnJhhu17itWVXYMBKDinsUA6BKZuac+gmlRLxAPLREFh4LQ6J8AinTrvjpa635zfeqYGosUJ6DGrVmRNh9J5EbgiWBnA2xsSiiPtu2YBvP8g2hptftAAJvgqvkju/h2OOXGiWa7f/2T3usKlrGSlhaT4bKjH86zxaZPfuqiBqTQy9QjoZkxhhgRObwm50SmVk/4BmvTF/E/wH0MN1RzBDvtTheFeWnaODejsAdSP1bi2dZ8g8loP9GzNsv5dxImVFC6867I3IiG+aE/jhMzFxhsJH6VPhZKAcAIIh+OfGB5JlrTahnH2rougJSmPLedVctVquG3Xb7pD2nZ2+tnFTqAdf5/rq6eRmGnEQwwOE8JYdTreeyzlSToPkaACQea/DJ6166q0fWs8C3RkVNOBnJ1tYIqiZY7a1nFLR7BcfxpyJDu3imb8kFVJbS2vNUfcUjV80/4r3yBr3Cy7Kc+8ivnpWfg38yYHJ40wZYf7oYHUzuCDlEBH2kFAEANzSxEk80qR4+sJh1FSlkk95sAL4qzxW1EhUBxK8fYXBvjhCMOStGS+9XSOac3q3zkLCFrWKXVn/VLWOMHe4ivtrUfnvPl0agbNN+Xq90LK3xzy6HijxoP0wUwpTsBgP8Js/Kam3cVcZwLX1v+WDbkBrklMVf1IMf8AqYUJr3qxHPf9FJfHy5gjx1swk3tbojeGXLZ1r1zvfw+fJDzM3ZSb6pbiSuKyEFHG3kMB3XydRrn9FADAHDu1teNcEs1MU9PP4DDs0lkGLf+gAOXSdBOkriiLghwIhSqcr67aMfdM50v+PAIRUA+2aDepY7Fxg185n3S6KYmKblBEfoFwCQA7x2zrOhVgJEBogpZ5yuqUdRJyqMQzKBJMqEksof5qPOZpjN51voOPzk0Zl4GaTYqXcxv4QJyVJ0CxTAI0WReiPjniTchh7A9WaxCZqA5/6f3EdPn/x+0P0yBFKE/jwtwTUiWFAfdvxPjZSodpTyhvqRHDjbqkWcZnfEoYjikYOyuAiBsYAvCCN9ex4EbDf1Seo+nvlaxf7piNPSknt8yCVK+28LKfjNSdafSXRRoiqT9vdueljA9c2uZt5eizBmABK5+80ouLUkc6dgMBHBEclyXyzr8/Lj1zHcgXmuiCX4Tbn87VsnAB0JLH/dkH7DsOXRvxHaTTrMdjHVXSd/oH/5qJHZcdfOrvX2F8TvmAS/8TlCkineNaMg+xd0TgFToAAAAA==",slt="data:image/webp;base64,UklGRmIDAABXRUJQVlA4WAoAAAAQAAAAMQAAMQAAQUxQSIEBAAABkCQAkCFJMTNr27Zt27Zt32yccLJt737Atm3brMmIXGVmROwHImICgDfb1KMPkeKvH17cNw+ozDD/u/Wky+MzyrV9TTbwx9IcMglnomX8MjZOIMEWsqx0PA9bkp1kud/V4VqJlv9nN56GxkpGrTmKPreyXyqExRwgIXs/fdAgtOI7Q2IuWHnsENAaFdj7Cf32kQYa6JXulVV5O9ZnIOrApj7rSYfd6pH0g5bPsa78P7VQbVeJyGoZ52pntNhtrkGo5pxrgFHz1TUrIi3GtfY/WPZT3+Tv+qp/UPPMlfeVmmOuordQywpX+iNGCY10wexICVbw2PkTdTyI8WjzXQfNAc+C73VgWZ/Y4/Gk4Rh4d4tQAbbyS3PPkNwBCOz8w4hFJUPi9hsSohkQXPEbytDhhGGw3JDI/ZzAmOKoIYEn+YA17Rnku18AmPM8QyY6nhPY81xDFpybFASTLzcURKeqgHCNs+hHR1qCfFyv20j/ILoyuzQoLT1m0eLF84Y2zAyMAFZQOCC6AQAAkAsAnQEqMgAyAD5tKpJFpCKhmAoG/EAGxLSAB0zOWKOj7VHbH9HrE98f3ijlJisvxqoOC30z7sBItT020ZRoHUr1Ud5LAqCGc9IQLtNIWBwu2vWxNT1wqM5FAhzD4Cl9ruDqVKAA/v86Qfbh1BV4meDqkoPfdpnN7Z17cxVyYFxf9N/e9FK/fYj/7YzyNcTAGo07KugKoeJ8UKFB03yLEcF+5w19QPMUEN7wKvs3KMnFwoKIrSD9OkTn84w2Xiu4xzvV/izz//9SV5L8BxsOVL4ar+b6nlXyO6jWKFF+9ejENIZcWPYrBU5r7VnzvohfFi1n4f5pJgA0KDKRyTt0x2B4eFRtWZwr/dhYKR7fCj68vkkk5sSxpG2pVZ1Z73bA25UjxkkvNye6SdjWkM4rdLr98Nsrl1gOwAgqZshXaF/MIKQSFLchQd+g02o5cBCTVZxi3sI3IuNNOqK+pApONR0AsjiLLIX1HkBYc7qJZw0/cyUSfF2Xxo92XIIo3T1sovsnmWg2+6nfEqMx9xLfe1YV7GFBkJFeIFlY/9wByeuQiehMYThU0+4TUTFM1Rn4P/yov//f63CAAA==",alt="data:image/webp;base64,UklGRsgDAABXRUJQVlA4WAoAAAAQAAAAMQAAMQAAQUxQSHgBAAABkATbtmk7+9v+P+7bSde2bXZtJz3btpq2bdu2ndxz1v6+565U+hExAeK0eNO+o6dPHdynZmGhLNpv20do7sCTDe0Sgmqy06rv7ysqBdHoEtQpdpRxVWwL1LmZGuuk+QcN9EZJB+OhAX9r7GshNHCvj4+FUELTLV8joZS/a+SjnlHSV0XzSHmhtHvyWA4e9MqlilXi13E5dikzRopIGUulryJE5oELbSX0rZJvkWqW7VfsOLDZeruUHeOe0elmw3fG8p3/L1z4B84bvpOf+Zafo0P/RWCzldtbtjchyX/ZVovsAJdtItLJcr2NEIl6BCZMEhHpbZl+F80RcRk8WCa5VvkJmq/FcpPhBiS2j+QZftCAAusln2nHDMXx2PxI7HSP4EqG+KzgISCcTBXfszyDILAmRhx2eGMsnH3uJW5T5n32rAt8Ozu7qDgvPPHeL8/CBzZGS7CxDeZf+/Dj919jofpn+fxZg1sJYUTxVqNmrt91+ebxquIWVlA4ICoCAACQCwCdASoyADIAPmkskEWkIqGY+q7YQAaEsYBgTBDjIGNw/xbXBTGz+v9s+2hAgDi81sWyM4WFYERALIZHf07fYPAXFfLivWasorIzU8ybWATNNKPZr7XLMriBQQWfBnd5O2o4AAD9ErxsX3l75yym3HlJD/A0jv90laCRgTG5O841kbKFMESi1cjS1U7rQmWj/oojw2tvl/sZWX0Dmf5ZEWcCjKF58aAuq7TTDjNlsJHb1t9+V4fjKgQbITJyQ1xt6whm6Hz5Uv/ZaWAMeTlXRJI5durye+u4vOSqof4KY6hXBJp2GeXPWdPk2n//9G93BrGG8nVVqEaM9pWvyUVo0IGAx/T/GyRRFF/yxFft5Y0GfKpjF3L+oZyom9j3N9EqG+uIJ1lFqJf0mwkz6Qn7TN2p6Mt9OghWf0hPwporFNerl0oFpDoYeNHtESNaNMuXA8CRFIcgC7AEmQgggoxTtw75PEwgA+nlGJHR7LKnCy9BrzUSPLt6nQrAT2gTF+cLT2CUIsTGpYvGAExKj2P12yQDw3p9yxEuhOx4BhA7grGaZnobd+Bah9XVDjI7HFzwUlGjAER+/KcazUifSU2cGDP+CSVk40q1aIOXNUfkCXqqJAl6m3lBwMfOZuXMe7l+VSmcvnDEXAH49PthBETM+dD6EiH/XAZtbCdPvy5///wnzSvYnDNqb
1552Effj6rpTdj5/RlQ2c4eKpQWIzsuGn+APH//UJ18oAAAAA==",clt="data:image/webp;base64,UklGRm4DAABXRUJQVlA4WAoAAAAQAAAAMQAAMQAAQUxQSGsBAAABkGzbkmFb+9pq2raebb++bdu2bbVt23bPtu2KiMtCnB+IiAmAnUHVug5ftnrVjJ7NYqGy1tzbLBXzq01tgh0KGvKQxfL39dkO+Ax7L/bypmS7at0R+39P8LLDbQqJk3wpxpr/XhaHX1SxEnhGnP9ey5z/KdH4vZqpraLzTbyJcaxEbvhWUMcQrTy3PJ+7otfIK2cgK5JzZXxfi2ZqBaAzq5LTAM6LbspCDCnjmejHyuQOtoh2in+kjtuSvsn6ZDfru+4CH1yAXIFcwND35YG+65v0bezN2rhntKGNonBa2zmgE+viboD3K10P/QD0Z01GawDwuqOILrmVQSNSw3/yUf4S1mJMQoW+55XQLo+KEP5QBR3wg9m4p86xsTcQ5mPvOsX/V/rCavABdoR/DXGDdbdRPx2gRw1gb/pRtom+rAiD7fVPsDWmT7NT4GjWgqdshunfmf7BcNytoM+KUzc//vvz5sr+aS1CYSMAVlA4INwBAAAwCwCdASoyADIAPmkokUWkIqGZ/M1UQAaEsoBh93ra6slbHVp9duwph8405ZOVJglHVUA/h68o4GAHJ7h4Yq7lp/jH0BtyZyG82X3CDdILs1n1a3CsEDK0lmUIY5Tr3O/JAAD+9NO/m23odJDvO1CBRMCTpD/LhT34KV9nG+QldZnQlUmS4yYLm1U8FFEpQ1tHMM6s8mEZWDNE2jp5iWbOLvLxZ6Q4eiL6pCxZdfZ98W6l6+Q9eJSItMymL7D1GEZNoGbo5bb1YL1JxBywXB0a2XMc1+AeTPhZO+Q+P5YzCANoc4pl2K/H3PM5+CXW/P5q/uX54nq/QsMreF1JUu5zhvyZO4T47fzhOByuGR+3W0QcQw+YJVLMJ97dX1+JdZTdVhPjcY9A0wodc+X9th0JjYS99SsQHQtm5nTUfrI0URKvp4Vw3CvtAa8
1552sK3j383z9+p5yFCwgpx6iRQCGHo+FZO24C+YsXljR79d2EGRsTiTj+hA5hHM9quqwlrrmsxzNXIz/ajZ9wdlrKRC6j4ZOP9TyyiT79PYTF4PNLgm/+1+aFi5INdqYZTF+S6Q3FwpKt0VYwBzDOGibjeRwiD5vP//jtOwURS9DJ7xXQ+7wsMX7mPwG9HoSjuAAAA==",llt="data:image/webp;base64,UklGRmQDAABXRUJQVlA4WAoAAAAQAAAAMQAAMQAAQUxQSJQBAAABkCvbtmlb6+D6PtuR7fci23Zs27Zt27Ztv8i2rX33RLC11rw/EBEToDSGy3Wau+n0+SPLB1SNUxJjW+z4TuxO+G1FOWOZxn0g9o1g7S1qJH7wdw6MAJ87R/RVukeskQD+LkrSNchmzQjW3oxaYtcQa0ewjmbUEH+U2CCBtTNNoPAeYrP4f1kkyCxi0/CvS4A2yMYJPuX3le87CwR7T9jPfpJA8L+ej/rIIhEuRb1usFCwa3lURSkImz02kRSCH9lckn+xWISOLg1QDsM+l2kk6UXEcZYFo5Xb8UkUVHaAJILODpTEMFkerk0FB1PBGQfIOuH4I2uD47qsMY4lJAkaO9qJ+pnRkcUWRJeV62FBMMCtHcn5ndst7qUY3K88O5EUu4FX+LYQOhfxUhVSZFjVld9RJAHXh3yFjpI5epNT+U9719y/+iponkem7AEqeLZLZARGhDSohPVk4F/fkNLb4asuel5Nac+8FLRYSzIpkwWX/QkE+0op0xm7Hk8hL3o9o5gSmVi1x8I9F6+eWdGvXFhpBVZQOCCqAQAAkAoAnQEqMgAyAD5pKo9FpCKhGfwGAEAGhLOAY7bF3EWmryDCieLdvH53WSW6xXkSgmubWSpFpwbm3WsV1D707AGB6VI3eHy5Rm5LkqPnJYM3Vf3Kl2F7QCQiB+AAAP7DXdvphW3U70EC1+XC9wSx4Q7KQIAUtRFoPVpvN6EBBTAP//Wir5XqULo1qkiGn8d7u6hGplPplku0eYbnitWymd/dK5kJjG6njHjwkCmUwdCKBwTVR1c5sVUVvmf8kUe8lQHiPd70bWNQ+kLAtcvyYn3ENli+iqIkF636SvDXSp1N7AJvgjMhSuNefSt3QphMgCV18PLwbWpe9LhX0J1BIgIopFCwYtMJJ1J1QKJr6duXpY1f+oPiyI/cJS7LvqNEtNtpWfsRYuXfjMmVkXrNixY9xCV/VDFdpqj9s2SZC1/keYbdmGKCQV0cOzRFoExbnkyxNsxxlffOLfb0ag5GZ0NWg8e2FAv8A+IH2qp/XKJDIhvx8LrUh2E9LZZ25szfhl9J/GBest7T/D+//9oSyb0PWFKOKDD8gwJa+hvIAM5gzbv+45ecAAAA",ult="data:image/webp;base64,UklGRmwBAABXRUJQVlA4IGABAABwBwCdASoYABgAPm0ylEekIqIhKAgAgA2JaQAJyA50zME86/8v3Av4z/TN85/aQMEuvAP77wtYWd8hEhx/dCKr6UDgAAD+/ojOuzXH5pGyKIn93Iv+W803viImBOQyunkScHqgVCkfiDKgwN6XIpFbw6C4J+srldlcZ/8drWX4H/9jg5oqllpep7xny4LyjFYISA+zHn9zSa3+Q69YLcxUg0LH9taeF6VM+IadAmbEWyrPR30x/Dwz37Sh/BUavWVqwNAwblDV3wo7EmLUVynwVVT20XgLrXzx/u/rn96FQP/AYxPT/ZfjVLToX404VBko346iv/5G6Sxu5J+Fd2Y/jqBL1lSAQyeqtuBU7TjbZnefgjkCAMKUlYitDoWXn1ffpTxpO4X/1T/rbNjA+iqh2VClw7hMj0ocgSQD9jnDzNm37GVVh8R0xW/JfuTJxDwoRPaZA22693TeOiQXCAAA",dlt={male:["mercury","mars","jupiter"],female:["terra","venus","luna"]},flt=()=>h.jsxs("svg",{width:"26",height:"26",viewBox:"0 0 26 26",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[h.jsx("path",{className:`${hr.Wave} ${hr.WaveDelay1}`,d:"M3 5V21",stroke:"#A099FF",strokeWidth:"2"}),h.jsx("path",{className:`${hr.Wave} ${hr.WaveDelay2}`,d:"M7 8V18",stroke:"#A099FF",strokeWidth:"2"}),h.jsx("path",{className:`${hr.Wave} ${hr.WaveDelay3}`,d:"M11 10V16",stroke:"#A099FF",strokeWidth:"2"}),h.jsx("path",{className:`${hr.Wave} ${hr.WaveDelay4}`,d:"M15 7V19",stroke:"#A099FF",strokeWidth:"2"}),h.jsx("path",{className:`${hr.Wave} ${hr.WaveDelay5}`,d:"M19 4V22",stroke:"#A099FF",strokeWidth:"2"}),h.jsx("path",{className:`${hr.Wave} ${hr.WaveDelay4}`,d:"M23 7V19",stroke:"#A099FF",strokeWidth:"2"})]}),Yx=e=>{var c,l;const[t,n]=b.useState(),r=u=>{var f,p;const d=[];return e.gender!=="male"&&((f=OQ.female[u])==null||f.forEach((g,m)=>{d.push({id:`female ${m+1}`,rank:m+1,gender:"female",previewUrl:`${xF}voiceSamples/female/${u}/voice${m+1}.mp3`})})),e.gender!=="female"&&((p=OQ.male[u])==null||p.forEach((g,m)=>{d.push({id:`male ${m+1}`,rank:m+1,gender:"male",previewUrl:`${xF}voiceSamples/male/${u}/voice${m+1}.mp3`})})),d},i=b.useCallback((u,d,f)=>{if(f==null||f.stopPropagation(),t===u){const p=document.getElementById(`audio-${u}`);p&&(p.pause(),p.currentTime=0),n(void 0)}else{if(t){const g=document.getElementById(`audio-${t}`);g&&(g.pause(),g.currentTime=0)}const p=document.getElementById(`audio-${u}`);p&&(p.src=d,p.play(),n(u))}},[t]),o=r(e.language),s=b.useCallback(u=>{switch(u){case"terra":return"Terra";case"venus":return"Venus";case"luna":return"Luna";case"mercury":return"Mercury";case"mars":return"Mars";case"jupiter":return"Jupiter"}},[]),a=b.useCallback(u=>{switch(u){case"terra":return olt;case"venus":return llt;case"luna":return ult;case"mercury":return slt;case"mars":return alt;case"jupiter":return clt}},[]);return o.length<=0||e.basic?h.jsxs("div",{className:hr.VoiceList,children:[h.jsx("div",{className:hr.VoiceItem,"aria-selected":((c=e.selectedVoice)==null?void 0:c.gender)==="female",onClick:()=>{const u={id:"female 1",rank:1,previewUrl:"",gender:"female"};e.onSelectVoice&&e.onSelectVoice(u)},children:h.jsxs("div",{children:[h.jsx("img",{src:a("terra"),alt:s("terra"),className:hr.VoiceIcon}),h.jsx("span",{className:hr.VoiceName,children:s("terra")})]})},"female 1"),h.jsx("div",{className:hr.VoiceItem,"aria-selected":((l=e.selectedVoice)==null?void 0:l.gender)==="male",onClick:()=>{const u={id:"male 1",rank:1,previewUrl:"",gender:"male"};e.onSelectVoice&&e.onSelectVoice(u)},children:h.jsxs("div",{children:[h.jsx("img",{src:a("mercury"),alt:s("mercury"),className:hr.VoiceIcon}),h.jsx("span",{className:hr.VoiceName,children:s("mercury")})]})},"male 1")]}):h.jsx("div",{className:hr.VoiceList,children:o.map(u=>{var p;const d=dlt[u.gender][u.rank-1],f=((p=e.selectedVoice)==null?void 0:p.id)===u.id;return h.jsxs("div",{className:hr.VoiceItem,"aria-selected":f,onClick:()=>e.onSelectVoice&&e.onSelectVoice(u),children:[h.jsxs("div",{children:[h.jsx("img",{src:a(d),alt:s(d),className:hr.VoiceIcon}),h.jsx("span",{className:hr.VoiceName,children:s(d)})]}),h.jsxs("div",{className:hr.WaveformAndButton,children:[t===u.id&&h.jsx(flt,{}),h.jsxs(h.Fragment,{children:[h.jsx("button",{className:hr.PlayButton,onClick:g=>i(u.id,u.previewUrl,g),style:t===u.id?{backgroundColor:"#a099ff",color:"#161616"}:void 0,children:t===u.id?h.jsx(Urt,{}):h.jsx(Bye,{style:{marginLeft:"2px"}})}),h.jsx("audio",{id:`audio-${u.id}`,onEnded:()=>n(void 0)})]})]})]},u.id)})})},Cbe=e=>{const[t,n]=b.useState(),[r,i]=Jt(),o=b.useMemo(()=>Object.values(rv).flatMap(c=>Array.from(c)),[]),[s,a]=b.useState(o.includes(r.metadata.selectedLanguage)?r.metadata.selectedLanguage:"en-US");return h.jsxs("div",{className:hr.VoiceAvatar,children:[h.jsxs("div",{className:hr.Filters,children:[h.jsx(rO,{languages:o,selectedLanguage:s,onChange:a,c
1552olor:"gray",backgroundColor:"black",borderColor:"dark-gray"}),h.jsx(ilt,{gender:t,onChange:c=>n(c)})]}),h.jsx(Yx,{basic:e.basic,language:s,gender:t,selectedVoice:e.selectedVoice,onSelectVoice:c=>{e.onSelectVoice&&e.onSelectVoice(c),i(l=>({...l,metadata:{...l.metadata,aiVoice:c.rank.toString(),aiVoiceGender:c.gender}}))}})]})},Ebe=(e,t)=>{const[n]=Jt();return b.useMemo(()=>{if(n.metadata.aiVoice&&n.metadata.aiVoiceGender){const r=Number.parseInt(n.metadata.aiVoice.replace("voice","")),i=t?t.includes("female")?"female":"male":void 0;return{id:t||`${n.metadata.aiVoiceGender} ${r}`,rank:r,gender:i||n.metadata.aiVoiceGender,previewUrl:`${xF}voiceSamples/${n.metadata.aiVoiceGender}/${e}/voice${r}.mp3`}}},[n,e,t])},hlt=()=>{const[e]=Jt(),t=pE();return b.useMemo(()=>t.find(n=>{if(!n.metadata)return!1;const r=JSON.parse(n.metadata);if(r.participant_type==="interpreter"&&r.language===e.metadata.selectedLanguage)return!0}),[t,e.metadata.selectedLanguage])},Tbe=()=>{const e=hlt(),t=cUe([Re.Source.Microphone],e==null?void 0:e.identity);return b.useMemo(()=>e?t.find(r=>r.participant.sid===e.sid):void 0,[e,t])},kbe=()=>{const e=Tbe();return b.useMemo(()=>e&&!e.publication.isMuted,[e])},plt="_VoiceOptionsDialog_1670f_1",mlt={VoiceOptionsDialog:plt},xbe=e=>{const[t]=Jt(),n=Ebe(t.metadata.selectedLanguage,localStorage.getItem(Vn.VOICE_AVATAR)||e.selectedVoiceId),[r,i]=b.useState(n);return b.useEffect(()=>{r!=null&&r.id&&localStorage.setItem(Vn.VOICE_AVATAR,r.id)},[r==null?void 0:r.id]),h.jsx(Cbe,{basic:e.basic,selectedVoice:r,onSelectVoice:i})},wz=e=>{const[t,n]=b.useState(!1);return h.jsx(xs,{title:"Voice avatar options",trigger:e.trigger,content:h.jsx(xbe,{...e,setOpen:n}),open:t,onOpenChange:n,className:mlt.VoiceOptionsDialog})},Abe=b.createContext({}),Sz=e=>{const[t,n]=b.useState(),[r,i]=b.useState(),o=Cn(),s=Gt.useGetOrganization(o),[a,c]=b.useState(!1),[l,u]=b.useState();return b.useEffect(()=>{(async()=>{u(void 0),c(!0);try{const d=await s();n(d.data.organization),i(d.data.pending_invites)}catch(d){console.error(d),u(d)}finally{c(!1)}})()},[s]),h.jsx(Abe.Provider,{value:{organization:t,setOrganization:n,pendingInvites:r,setPendingInvites:i,loading:a,error:l},children:e.children})},Md=()=>b.useContext(Abe),sO=e=>b.useMemo(()=>{if(e)return e.recording_enabled?"business":e.voice_avatar_enabled?"pro":"starter"},[e]),jE=()=>{const{room:e,organization:t}=Rr(),{organization:n}=Md(),[,r]=Ch(),[,i]=Jt(),o=b.useRef(!1);b.useEffect(()=>{if(o.current||!t&&!n)return;o.current=!0;let a={};try{a=JSON.parse(localStorage.getItem(Vn.LAYOUT_SETTINGS)||"")}catch{}r(c=>({...c,settings:{...c.settings,textSize:a.textSize??(t==null?void 0:t.default_text_translation_setting.text_size)??(n==null?void 0:n.default_text_translation_setting.text_size)??c.settings.textSize,textColor:a.textColor??(t==null?void 0:t.default_text_translation_setting.text_color)??(n==null?void 0:n.default_text_translation_setting.text_color)??c.settings.textColor,textBackgroundColor:a.textBackgroundColor??(t==null?void 0:t.default_text_translation_setting.text_background_color)??(n==null?void 0:n.default_text_translation_setting.text_background_color)??c.settings.textBackgroundColor,textSpeed:a.textSpeed??(t==null?void 0:t.default_text_translation_setting.text_speed)??(n==null?void 0:n.default_text_translation_setting.text_speed)??c.settings.textSpeed}}))},[t,n,r,i]);const s=b.useRef(!1);b.useEffect(()=>{if(s.current||!e)return;s.current=!0;const a=localStorage.getItem(Vn.VOICE_AVATAR),c=a?a.split(" ")[0]:null,l=a?a.split(" ")[1]:null,[u,d]=e.default_voice_avatar.split(" ");i(f=>({...f,metadata:{...f.metadata,aiVoiceGender:c||u||G_.metadata.aiVoiceGender,aiVoice:l||d||G_.metadata.aiVoice}}))},[e,i])};function D7(e){return St({attr:{version:"1.1",viewBox:"0 0 16 16"},child:[{tag:"path",attr:{d:"M15.897 9c0.125 0.867 0.207 2.053-0.182 2.507-0.643 0.751-4.714 0.751-4.714-0.751 0-0.756 0.67-1.252 0.027-2.003-0.632-0.738-1.766-0.75-3.027-0.751s-2.394 0.012-3.027 0.751c-0.643 0.751 0.027 1.247 0.027 2.003 0 1.501-4.071 1.501-4.714 0.751-0.389-0.454-0.307-1.64-0.182-2.507 0.096-0.579 0.339-1.203 1.118-2 0-0 0-0 0-0 1.168-1.090 2.935-1.98 6.716-2v-0c0.021 0 0.042 0 0.063 0s0.041-0 0.063-0v0c3.781 0.019 5.548 0.91 6.716 2 0 0 0 0 0 0 0.778 0.797 1.022 1.421 1.118 2z"},child:[]}]})(e)}const glt="_Content_1sb85_1",vlt="_Buttons_1sb85_8",ylt="_MicToggle_1sb85_19",a_={Content:glt,Buttons:vlt,MicToggle:ylt},Wv=e=>h.jsx(xs,{title:e.title,open:e.open,onOpenChange:e.onOpenChange,trigger:e.trigger,unclosable:e.unclosable,content:h.jsxs("div",{className:a_.Content,children:[e.content,h.jsxs("div",{className:a_.Buttons,children:[h.jsx(qe,{backgroundColor:"black",color:"gray",borderColor:"dark-gray",onClick:()=>e.onOpenChange(!1),disabled:e.disabled,children:"Cancel"}),h.jsx(qe,{onClick:e.onConfirm,disabled:e.disabled,children:e.action??"Confirm"})]})]})});function R1(e){const[t,n]=b.useState(!1),r=Ts(),i=ks();return h.jsx(Wv,{title:"Leave",trigger:e.trigger??h.jsxs(qe,{color:"gray",borderColor:"dark-gray",backgroundColor:"black",children:[h.jsx(D7,{style:{color:"var(--langfinity-red)"}}),!i&&"Leave"]}),open:t,onOpenChange:n,content:h.jsx("h3",{children:"Are you sure you want to leave?"}),action:"Leave",onConfirm:()=>{e.onConfirm&&e.onConfirm(),r(e.link)}})}function blt(e){return St({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M256 48C141.1 48 48 141.1 48 256s93.1 208 208 208 208-93.1 208-208S370.9 48 256 48zm-4.3 304c-11.8 0-21.4-9-21.4-20.6 0-11.5 9.6-20.6 21.4-20.6 11.9 0 21.5 9 21.5 20.6 0 11.6-9.5 20.6-21.5 20.6zm40.2-96.9c-17.4 10.1-23.3 17.5-23.3 30.3v7.9h-34.7l-.3-8.6c-1.7-20.6 5.5-33.4 23.6-44 16.9-10.1 24-16.5 24-28.9s-12-21.5-26.9-21.5c-15.1 0-26 9.8-26.8 24.6H192c.7-32.2 24.5-55 64.7-55 37.5 0 63.3 20.8 63.3 50.7 0 19.9-9.6 33.6-28.1 44.5z"},child:[]}]})(e)}function UE(e){return St({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M416 277.333H277.333V416h-42.666V277.333H96v-42.666h138.667V96h42.666v138.667H416v42.666z"},child:[]}]})(e)}var _z=typeof self<"u"?self:{};function Ibe(e,t){e:{for(var n=["CLOSURE_FLAGS"],r=_z,i=0;i<n.length;i++)if((r=r[n[i]])==null){n=null;break e}n=r}return(e=n&&n[e])!=null?e:t}function Xm(){throw Error("Invalid UTF8")}function fte(e,t){return t=String.fromCharCode.apply(null,t),e==null?t:e+t}let QT,A6;const wlt=typeof TextDecoder<"u";let Slt;const _lt=typeof TextEncoder<"u";function Rbe(e){if(_lt)e=(Slt||(Slt=new TextEncoder)).encode(e);else{let n=0;
vendor: 53,487 bytes, lines 1552-1566
1552const r=new Uint8Array(3*e.length);for(let i=0;i<e.length;i++){var t=e.charCodeAt(i);if(128>t)r[n++]=t;else{if(2048>t)r[n++]=t>>6|192;else{if(55296<=t&&57343>=t){if(56319>=t&&i<e.length){const o=e.charCodeAt(++i);if(56320<=o&&57343>=o){t=1024*(t-55296)+o-56320+65536,r[n++]=t>>18|240,r[n++]=t>>12&63|128,r[n++]=t>>6&63|128,r[n++]=63&t|128;continue}i--}t=65533}r[n++]=t>>12|224,r[n++]=t>>6&63|128}r[n++]=63&t|128}}e=n===r.length?r:r.subarray(0,n)}return e}var bC,Pbe=Ibe(610401301,!1),Cz=Ibe(572417392,!0);const hte=_z.navigator;function L7(e){return!!Pbe&&!!bC&&bC.brands.some((({brand:t})=>t&&t.indexOf(e)!=-1))}function Nc(e){var t;return(t=_z.navigator)&&(t=t.userAgent)||(t=""),t.indexOf(e)!=-1}function yp(){return!!Pbe&&!!bC&&0<bC.brands.length}function I6(){return yp()?L7("Chromium"):(Nc("Chrome")||Nc("CriOS"))&&!(!yp()&&Nc("Edge"))||Nc("Silk")}bC=hte&&hte.userAgentData||null;var Clt=!yp()&&(Nc("Trident")||Nc("MSIE"));!Nc("Android")||I6(),I6(),Nc("Safari")&&(I6()||!yp()&&Nc("Coast")||!yp()&&Nc("Opera")||!yp()&&Nc("Edge")||(yp()?L7("Microsoft Edge"):Nc("Edg/"))||yp()&&L7("Opera"));var Obe={},TS=null;function Elt(e){var t=e.length,n=3*t/4;n%3?n=Math.floor(n):"=.".indexOf(e[t-1])!=-1&&(n="=.".indexOf(e[t-2])!=-1?n-2:n-1);var r=new Uint8Array(n),i=0;return(function(o,s){function a(p){for(;c<o.length;){var g=o.charAt(c++),m=TS[g];if(m!=null)return m;if(!/^[\s\xa0]*$/.test(g))throw Error("Unknown base64 encoding at char: "+g)}return p}Nbe();for(var c=0;;){var l=a(-1),u=a(0),d=a(64),f=a(64);if(f===64&&l===-1)break;s(l<<2|u>>4),d!=64&&(s(u<<4&240|d>>2),f!=64&&s(d<<6&192|f))}})(e,(function(o){r[i++]=o})),i!==n?r.subarray(0,i):r}function Nbe(){if(!TS){TS={};for(var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".split(""),t=["+/=","+/","-_=","-_.","-_"],n=0;5>n;n++){var r=e.concat(t[n].split(""));Obe[n]=r;for(var i=0;i<r.length;i++){var o=r[i];TS[o]===void 0&&(TS[o]=i)}}}}var Mbe=typeof Uint8Array<"u",Dbe=!Clt&&typeof btoa=="function";function pte(e){if(!Dbe){var t;t===void 0&&(t=0),Nbe(),t=Obe[t];var n=Array(Math.floor(e.length/3)),r=t[64]||"";let c=0,l=0;for(;c<e.length-2;c+=3){var i=e[c],o=e[c+1],s=e[c+2],a=t[i>>2];i=t[(3&i)<<4|o>>4],o=t[(15&o)<<2|s>>6],s=t[63&s],n[l++]=a+i+o+s}switch(a=0,s=r,e.length-c){case 2:s=t[(15&(a=e[c+1]))<<2]||r;case 1:e=e[c],n[l]=t[e>>2]+t[(3&e)<<4|a>>4]+s+r}return n.join("")}for(t="",n=0,r=e.length-10240;n<r;)t+=String.fromCharCode.apply(null,e.subarray(n,n+=10240));return t+=String.fromCharCode.apply(null,n?e.subarray(n):e),btoa(t)}const mte=/[-_.]/g,Tlt={"-":"+",_:"/",".":"="};function klt(e){return Tlt[e]||""}function Lbe(e){if(!Dbe)return Elt(e);mte.test(e)&&(e=e.replace(mte,klt)),e=atob(e);const t=new Uint8Array(e.length);for(let n=0;n<e.length;n++)t[n]=e.charCodeAt(n);return t}function aO(e){return Mbe&&e!=null&&e instanceof Uint8Array}let xlt;function cO(){return xlt||(xlt=new Uint8Array(0))}var P1={};let Alt;function Fbe(e){if(e!==P1)throw Error("illegal external caller")}function O1(){return Alt||(Alt=new Kp(null,P1))}function Ez(e){Fbe(P1);var t=e.Z;return(t=t==null||aO(t)?t:typeof t=="string"?Lbe(t):null)==null?t:e.Z=t}var Kp=class{constructor(t,n){if(Fbe(n),this.Z=t,t!=null&&t.length===0)throw Error("ByteString should be constructed with non-empty values")}wa(){const t=Ez(this);return t?new Uint8Array(t):cO()}};function jbe(e,t){return Error(`Invalid wire type: ${e} (at position ${t})`)}function Tz(){return Error("Failed to read varint, encoding is invalid.")}function Ube(e,t){return Error(`Tried to read past the end of the data ${t} > ${e}`)}function Bbe(e){return e.length==0?O1():new Kp(e,P1)}function kz(e){if(typeof e=="string")return{buffer:Lbe(e),L:!1};if(Array.isArray(e))return{buffer:new Uint8Array(e),L:!1};if(e.constructor===Uint8Array)return{buffer:e,L:!1};if(e.constructor===ArrayBuffer)return{buffer:new Uint8Array(e),L:!1};if(e.constructor===Kp)return{buffer:Ez(e)||cO(),L:!0};if(e instanceof Uint8Array)return{buffer:new Uint8Array(e.buffer,e.byteOffset,e.byteLength),L:!1};throw Error("Type not convertible to a Uint8Array, expected a Uint8Array, an ArrayBuffer, a base64 encoded string, a ByteString or an Array of numbers")}function xz(){return typeof BigInt=="function"}var F7=!Cz;let gte=!Cz;const Ilt=typeof Uint8Array.prototype.slice=="function";let $be,Ur=0,eo=0;function Wg(e){const t=0>e;let n=(e=Math.abs(e))>>>0;if(e=Math.floor((e-n)/4294967296),t){const[r,i]=Rz(n,e);e=i,n=r}Ur=n>>>0,eo=e>>>0}function Az(e){const t=$be||($be=new DataView(new ArrayBuffer(8)));t.setFloat32(0,+e,!0),eo=0,Ur=t.getUint32(0,!0)}function j7(e,t){return 4294967296*t+(e>>>0)}function Iz(e,t){const n=2147483648&t;return n&&(t=~t>>>0,(e=1+~e>>>0)==0&&(t=t+1>>>0)),e=j7(e,t),n?-e:e}function bR(e,t){if(e>>>=0,2097151>=(t>>>=0))var n=""+(4294967296*t+e);else xz()?n=""+(BigInt(t)<<BigInt(32)|BigInt(e)):(e=(16777215&e)+6777216*(n=16777215&(e>>>24|t<<8))+6710656*(t=t>>16&65535),n+=8147497*t,t*=2,1e7<=e&&(n+=Math.floor(e/1e7),e%=1e7),1e7<=n&&(t+=Math.floor(n/1e7),n%=1e7),n=t+vte(n)+vte(e));return n}function vte(e){return e=String(e),"0000000".slice(e.length)+e}function Hbe(){var e=Ur,t=eo;if(2147483648&t)if(xz())e=""+(BigInt(0|t)<<BigInt(32)|BigInt(e>>>0));else{const[n,r]=Rz(e,t);e="-"+bR(n,r)}else e=bR(e,t);return e}function lO(e){if(16>e.length)Wg(Number(e));else if(xz())e=BigInt(e),Ur=Number(e&BigInt(4294967295))>>>0,eo=Number(e>>BigInt(32)&BigInt(4294967295));else{const t=+(e[0]==="-");eo=Ur=0;const n=e.length;for(let r=t,i=(n-t)%6+t;i<=n;r=i,i+=6){const o=Number(e.slice(r,i));eo*=1e6,Ur=1e6*Ur+o,4294967296<=Ur&&(eo+=Math.trunc(Ur/4294967296),eo>>>=0,Ur>>>=0)}if(t){const[r,i]=Rz(Ur,eo);Ur=r,eo=i}}}function Rz(e,t){return t=~t,e?e=1+~e:t+=1,[e,t]}function Pz(e,t){let n,r=0,i=0,o=0;const s=e.h;let a=e.g;do n=s[a++],r|=(127&n)<<o,o+=7;while(32>o&&128&n);for(32<o&&(i|=(127&n)>>4),o=3;32>o&&128&n;o+=7)n=s[a++],i|=(127&n)<<o;if(qg(e,a),128>n)return t(r>>>0,i>>>0);throw Tz()}function Oz(e){let t=0,n=e.g;const r=n+10,i=e.h;for(;n<r;){const o=i[n++];if(t|=o,(128&o)==0)return qg(e,n),!!(127&t)}throw Tz()}function fm(e){const t=e.h;let n=e.g,r=t[n++],i=127&r;if(128&r&&(r=t[n++],i|=(127&r)<<7,128&r&&(r=t[n++],i|=(127&r)<<14,128&r&&(r=t[n++],i|=(127&r)<<21,128&r&&(r=t[n++],i|=r<<28,128&r&&128&t[n++]&&128&t[n++]&&128&t[n++]&&128&t[n++]&&128&t[n++])))))throw Tz();return qg(e,n),i}function hm(e){return fm(e)>>>0}function U7(e){var t=e.h;const n=e.g,r=t[n],i=t[n+1],o=t[n+2];return t=t[n+3],qg(e,e.g+4),(r<<0|i<<8|o<<16|t<<24)>>>0}function B7(e){var t=U7(e);e=2*(t>>31)+1;const n=t>>>23&255;return t&=8388607,n==255?t?NaN:1/0*e:n==0?e*Math.pow(2,-149)*t:e*Math.pow(2,n-150)*(t+Math.pow(2,23))}function Rlt(e){return fm(e)}function R6(e,t,{aa:n=!1}={}){e.aa=n,t&&(t=kz(t),e.h=t.buffer,e.m=t.L,e.j=0,e.l=e.h.length,e.g=e.j)}function qg(e,t){if(e.g=t,t>e.l)throw Ube(e.l,t)}function zbe(e,t){if(0>t)throw Error(`Tried to read a negative byte length: ${t}`);const n=e.g,r=n+t;if(r>e.l)throw Ube(t,e.l-n);return e.g=r,n}function Vbe(e,t){if(t==0)return O1();var n=zbe(e,t);return e.aa&&e.m?n=e.h.subarray(n,n+t):(e=e.h,n=n===(t=n+t)?cO():Ilt?e.slice(n,t):new Uint8Array(e.subarray(n,t))),Bbe(n)}var yte=[];function Wbe(e){var t=e.g;if(t.g==t.l)return!1;e.l=e.g.g;var n=hm(e.g);if(t=n>>>3,!(0<=(n&=7)&&5>=n))throw jbe(n,e.l);if(1>t)throw Error(`Invalid field number: ${t} (at position ${e.l})`);return e.m=t,e.h=n,!0}function Qx(e){switch(e.h){case 0:e.h!=0?Qx(e):Oz(e.g);break;case 1:qg(e=e.g,e.g+8);break;case 2:if(e.h!=2)Qx(e);else{var t=hm(e.g);qg(e=e.g,e.g+t)}break;case 5:qg(e=e.g,e.g+4);break;case 3:for(t=e.m;;){if(!Wbe(e))throw Error("Unmatched start-group tag: stream EOF");if(e.h==4){if(e.m!=t)throw Error("Unmatched end-group tag");break}Qx(e)}break;default:throw jbe(e.h,e.l)}}function BE(e,t,n){const r=e.g.l,i=hm(e.g),o=e.g.g+i;let s=o-r;if(0>=s&&(e.g.l=o,n(t,e,void 0,void 0,void 0),s=o-e.g.g),s)throw Error(`Message parsing ended unexpectedly. Expected to read ${i} bytes, instead read ${i-s} bytes, either the data ended unexpectedly or the message misreported its own length`);return e.g.g=o,e.g.l=r,t}function Nz(e){var t=hm(e.g),n=zbe(e=e.g,t);if(e=e.h,wlt){var r,i=e;(r=A6)||(r=A6=new TextDecoder("utf-8",{fatal:!0})),t=n+t,i=n===0&&t===i.length?i:i.subarray(n,t);try{var o=r.decode(i)}catch(a){if(QT===void 0){try{r.decode(new Uint8Array([128]))}catch{}try{r.decode(new Uint8Array([97])),QT=!0}catch{QT=!1}}throw!QT&&(A6=void 0),a}}else{t=(o=n)+t,n=[];let a,c=null;for(;o<t;){var s=e[o++];128>s?n.push(s):224>s?o>=t?Xm():(a=e[o++],194>s||(192&a)!=128?(o--,Xm()):n.push((31&s)<<6|63&a)):240>s?o>=t-1?Xm():(a=e[o++],(192&a)!=128||s===224&&160>a||s===237&&160<=a||(192&(r=e[o++]))!=128?(o--,Xm()):n.push((15&s)<<12|(63&a)<<6|63&r)):244>=s?o>=t-2?Xm():(a=e[o++],(192&a)!=128||a-144+(s<<28)>>30!=0||(192&(r=e[o++]))!=128||(192&(i=e[o++]))!=128?(o--,Xm()):(s=(7&s)<<18|(63&a)<<12|(63&r)<<6|63&i,s-=65536,n.push(55296+(s>>10&1023),56320+(1023&s)))):Xm(),8192<=n.length&&(c=fte(c,n),n.length=0)}o=fte(c,n)}return o}function qbe(e){const t=hm(e.g);return Vbe(e.g,t)}function uO(e,t,n){var r=hm(e.g);for(r=e.g.g+r;e.g.g<r;)n.push(t(e.g))}var XT=[];function bte(e){return e?/^\d+$/.test(e)?(lO(e),new wte(Ur,eo)):null:Plt||(Plt=new wte(0,0))}var wte=class{constructor(t,n){this.h=t>>>0,this.g=n>>>0}};let Plt;function Ste(e){return e?/^-?\d+$/.test(e)?(lO(e),new _te(Ur,eo)):null:Olt||(Olt=new _te(0,0))}var _te=class{constructor(t,n){this.h=t>>>0,this.g=n>>>0}};let Olt;function wR(e,t,n){for(;0<n||127<t;)e.g.push(127&t|128),t=(t>>>7|n<<25)>>>0,n>>>=7;e.g.push(t)}function $E(e,t){for(;127<t;)e.g.push(127&t|128),t>>>=7;e.g.push(t)}function dO(e,t){if(0<=t)$E(e,t);else{for(let n=0;9>n;n++)e.g.push(127&t|128),t>>=7;e.g.push(1)}}function wC(e,t){e.g.push(t>>>0&255),e.g.push(t>>>8&255),e.g.push(t>>>16&255),e.g.push(t>>>24&255)}function N1(e,t){t.length!==0&&(e.l.push(t),e.h+=t.length)}function ul(e,t,n){$E(e.g,8*t+n)}function Mz(e,t){return ul(e,t,2),t=e.g.end(),N1(e,t),t.push(e.h),t}function Dz(e,t){var n=t.pop();for(n=e.h+e.g.length()-n;127<n;)t.push(127&n|128),n>>>=7,e.h++;t.push(n),e.h++}function fO(e,t,n){ul(e,t,2),$E(e.g,n.length),N1(e,e.g.end()),N1(e,n)}function $7(e,t,n,r){n!=null&&(t=Mz(e,t),r(n,e),Dz(e,t))}let jb=class{constructor(t,n,r,i){this.g=t,this.h=n,this.l=r,this.qa=i}};function ra(e){return Array.prototype.slice.call(e)}function Gbe(e){return typeof Symbol=="function"&&typeof Symbol()=="symbol"?Symbol():e}var Sd=Gbe(),Cte=Gbe("0di"),hO=Sd?(e,t)=>{e[Sd]|=t}:(e,t)=>{e.D!==void 0?e.D|=t:Object.defineProperties(e,{D:{value:t,configurable:!0,writable:!0,enumerable:!1}})};function Ete(e){const t=vi(e);(1&t)!=1&&(Object.isFrozen(e)&&(e=ra(e)),hi(e,1|t))}var SR=Sd?(e,t)=>{e[Sd]&=~t}:(e,t)=>{e.D!==void 0&&(e.D&=~t)};function ts(e,t,n){return n?e|t:e&~t}var vi=Sd?e=>0|e[Sd]:e=>0|e.D,qn=Sd?e=>e[Sd]:e=>e.D,hi=Sd?(e,t)=>{e[Sd]=t}:(e,t)=>{e.D!==void 0?e.D=t:Object.defineProperties(e,{D:{value:t,configurable:!0,writable:!0,enumerable:!1}})};function Tte(){var e=[];return hO(e,1),e}function Ub(e){return hO(e,34),e}function Nlt(e,t){hi(t,-14591&(0|e))}function H7(e,t){hi(t,-14557&(34|e))}function _R(e){return(e=e>>14&1023)===0?536870912:e}var HE={},Kbe={};function kte(e){return!(!e||typeof e!="object"||e.Na!==Kbe)}function c_(e){return e!==null&&typeof e=="object"&&!Array.isArray(e)&&e.constructor===Object}let Ybe=!Cz;function Qbe(e,t,n){if(e!=null){if(typeof e=="string")e=e?new Kp(e,P1):O1();else if(e.constructor!==Kp)if(aO(e))e=n?Bbe(e):e.length?new Kp(new Uint8Array(e),P1):O1();else{if(!t)throw Error();e=void 0}}return e}function z7(e,t,n){if(!Array.isArray(e)||e.length)return!1;const r=vi(e);return!!(1&r)||!(!t||!(Array.isArray(t)?t.includes(n):t.has(n)))&&(hi(e,1|r),!0)}var _g;const xte=[];function Dd(e){if(2&e)throw Error()}hi(xte,55),_g=Object.freeze(xte);let Ate=class Xbe{constructor(t,n,r){this.l=0,this.g=t,this.h=n,this.m=r}next(){if(this.l<this.g.length){const t=this.g[this.l++];return{done:!1,value:this.h?this.h.call(this.m,t):t}}return{done:!0,value:void 0}}[Symbol.iterator](){return new Xbe(this.g,this.h,this.m)}};var Mlt={};let Yp,SC;function Jbe(e,t){(t=Yp?t[Yp]:void 0)&&(e[Yp]=ra(t))}function V7(e){return(e=Error(e)).__closure__error__context__984382||(e.__closure__error__context__984382={}),e.__closure__error__context__984382.severity="warning",e}function jm(e){return e==null||typeof e=="number"?e:e==="NaN"||e==="Infinity"||e==="-Infinity"?Number(e):void 0}function Zbe(e){return e==null||typeof e=="boolean"?e:typeof e=="number"?!!e:void 0}Object.freeze(new class{}),Object.freeze(new class{});const Dlt=/^-?([1-9][0-9]*|0)(\.[0-9]+)?$/;function pO(e){const t=typeof e;return t==="number"?Number.isFinite(e):t==="string"&&Dlt.test(e)}function Bb(e){if(e==null)return e;if(typeof e=="string"){if(!e)return;e=+e}return typeof e=="number"&&Number.isFinite(e)?0|e:void 0}function Llt(e){if(e==null)return e;if(typeof e=="string"){if(!e)return;e=+e}return typeof e=="number"&&Number.isFinite(e)?e>>>0:void 0}function Ite(e){return e[0]!=="-"&&(20>e.length||e.length===20&&184467>Number(e.substring(0,6)))}function ewe(e){return e[0]==="-"?20>e.length||e.length===20&&-922337<Number(e.substring(0,7)):19>e.length||e.length===19&&922337>Number(e.substring(0,6))}function Lz(e){return e=Math.trunc(e),Number.isSafeInteger(e)||(Wg(e),e=Iz(Ur,eo)),e}function Fz(e){var t=Math.trunc(Number(e));return Number.isSafeInteger(t)?String(t):((t=e.indexOf("."))!==-1&&(e=e.substring(0,t)),ewe(e)||(lO(e),e=Hbe()),e)}function CR(e){return e==null?e:pO(e)?typeof e=="number"?Lz(e):Fz(e):void 0}function zE(e){if(typeof e!="string")throw Error();return e}function VE(e){if(e!=null&&typeof e!="string")throw Error();return e}function _C(e){return e==null||typeof e=="string"?e:void 0}function jz(e,t,n,r){if(e!=null&&typeof e=="object"&&e.W===HE)return e;if(!Array.isArray(e))return n?2&r?(e=t[Cte])?t=e:(Ub((e=new t).s),t=t[Cte]=e):t=new t:t=void 0,t;let i=n=vi(e);return i===0&&(i|=32&r),i|=2&r,i!==n&&hi(e,i),new t(e)}function Flt(e,t,n){if(t){var r=!!r;if(!pO(t=e))throw V7("int64");typeof t=="string"?r=Fz(t):r?(r=Math.trunc(t),Number.isSafeInteger(r)?r=String(r):ewe(t=String(r))?r=t:(Wg(r),r=Hbe())):r=Lz(t)}else r=CR(e);return typeof(n=(e=r)==null?n?0:void 0:e)=="string"&&(r=+n,Number.isSafeInteger(r))?r:n}let ER,Uz,jlt;function TR(e){switch(typeof e){case"boolean":return Uz||(Uz=[0,void 0,!0]);case"number":return 0<e?void 0:e===0?jlt||(jlt=[0,void 0]):[-e,void 0];case"string":return[0,e];case"object":return e}}function Gg(e,t){return twe(e,t[0],t[1])}function twe(e,t,n){if(e==null&&(e=ER),ER=void 0,e==null){var r=96;n?(e=[n],r|=512):e=[],t&&(r=-16760833&r|(1023&t)<<14)}else{if(!Array.isArray(e))throw Error();if(64&(r=vi(e)))return SC&&delete e[SC],e;if(r|=64,n&&(r|=512,n!==e[0]))throw Error();e:{const i=(n=e).length;if(i){const o=i-1;if(c_(n[o])){if(1024<=(t=o-(+!!(512&(r|=256))-1)))throw Error();r=-16760833&r|(1023&t)<<14;break e}}if(t){if(1024<(t=Math.max(t,i-(+!!(512&r)-1))))throw Error();r=-16760833&r|(1023&t)<<14}}}return hi(e,r),e}let Ult=(function(){try{return new class extends Map{constructor(){super()}},!1}catch{return!0}})(),P6=class{constructor(){this.g=new Map}get(t){return this.g.get(t)}set(t,n){return this.g.set(t,n),this.size=this.g.size,this}delete(t){return t=this.g.delete(t),this.size=this.g.size,t}clear(){this.g.clear(),this.size=this.g.size}has(t){return this.g.has(t)}entries(){return this.g.entries()}keys(){return this.g.keys()}values(){return this.g.values()}forEach(t,n){return this.g.forEach(t,n)}[Symbol.iterator](){return this.entries()}};const Blt=Ult?(Object.setPrototypeOf(P6.prototype,Map.prototype),Object.defineProperties(P6.prototype,{size:{value:0,configurable:!0,enumerable:!0,writable:!0}}),P6):class extends Map{constructor(){super()}};function JT(e){return e}function O6(e){if(2&e.O)throw Error("Cannot mutate an immutable Map")}var el=class extends Blt{constructor(t,n,r=JT,i=JT){super();let o=vi(t);o|=64,hi(t,o),this.O=o,this.V=n,this.R=r||JT,this.Y=this.V?$lt:i||JT;for(let s=0;s<t.length;s++){const a=t[s],c=r(a[0],!1,!0);let l=a[1];n?l===void 0&&(l=null):l=i(a[1],!1,!0,void 0,void 0,o),super.set(c,l)}}pa(t=Rte){return this.X(t)}X(t=Rte){const n=[],r=super.entries();for(var i;!(i=r.next()).done;)(i=i.value)[0]=t(i[0]),i[1]=t(i[1]),n.push(i);return n}clear(){O6(this),super.clear()}delete(t){return O6(this),super.delete(this.R(t,!0,!1))}entries(){var t=this.ma();return new Ate(t,Hlt,this)}keys(){return this.Ma()}values(){var t=this.ma();return new Ate(t,el.prototype.get,this)}forEach(t,n){super.forEach(((r,i)=>{t.call(n,this.get(i),i,this)}))}set(t,n){return O6(this),(t=this.R(t,!0,!1))==null?this:n==null?(super.delete(t),this):super.set(t,this.Y(n,!0,!0,this.V,!1,this.O))}Ta(t){const n=this.R(t[0],!1,!0);t=t[1],t=this.V?t===void 0?null:t:this.Y(t,!1,!0,void 0,!1,this.O),super.set(n,t)}has(t){return super.has(this.R(t,!1,!1))}get(t){t=this.R(t,!1,!1);const n=super.get(t);if(n!==void 0){var r=this.V;return r?((r=this.Y(n,!1,!0,r,this.xa,this.O))!==n&&super.set(t,r),r):n}}ma(){return Array.from(super.keys())}Ma(){return super.keys()}[Symbol.iterator](){return this.entries()}};function $lt(e,t,n,r,i,o){return e=jz(e,r,n,o),i&&(e=mO(e)),e}function Rte(e){return e}function Hlt(e){return[e,this.get(e)]}function Bz(e,t,n,r,i,o){if(e!=null){if(Array.isArray(e))e=o&&2&vi(e)?e:$z(e,t,n,r!==void 0,i,o);else if(c_(e)){const s={};for(let a in e)s[a]=Bz(e[a],t,n,r,i,o);e=s}else e=t(e,r);return e}}function $z(e,t,n,r,i,o){const s=r||n?vi(e):0;r=r?!!(32&s):void 0;const a=ra(e);for(let c=0;c<a.length;c++)a[c]=Bz(a[c],t,n,r,i,o);return n&&(Jbe(a,e),n(s,a)),a}function zlt(e){return Bz(e,nwe,void 0,void 0,!1,!1)}function nwe(e){return e.W===HE?e.toJSON():e instanceof el?e.pa(zlt):(function(t){switch(typeof t){case"number":return isFinite(t)?t:String(t);case"boolean":return t?1:0;case"object":if(t){if(Array.isArray(t))return Ybe||!z7(t,void 0,9999)?t:void 0;if(aO(t))return pte(t);if(t instanceof Kp){const n=t.Z;return n==null?"":typeof n=="string"?n:t.Z=pte(n)}if(t instanceof el)return t=t.pa(),F7||t.length!==0?t:void 0}}return t})(e)}function W7(e,t,n=H7){if(e!=null){if(Mbe&&e instanceof Uint8Array)return t?e:new Uint8Array(e);if(Array.isArray(e)){var r=vi(e);return 2&r?e:(t&&(t=r===0||!!(32&r)&&!(64&r||!(16&r))),t?(hi(e,-12293&(34|r)),e):$z(e,W7,4&r?H7:n,!0,!1,!0))}return e.W===HE?(n=e.s,e=2&(r=qn(n))?e:Hz(e,n,r,!0)):e instanceof el&&(n=Ub(e.X(W7)),e=new el(n,e.V,e.R,e.Y)),e}}function Hz(e,t,n,r){return e=e.constructor,ER=t=rwe(t,n,r),t=new e(t),ER=void 0,t}function rwe(e,t,n){const r=n||2&t?H7:Nlt,i=!!(32&t);return e=(function(o,s,a){const c=ra(o);var l=c.length;const u=256&s?c[l-1]:void 0;for(l+=u?-1:0,s=512&s?1:0;s<l;s++)c[s]=a(c[s]);if(u){s=c[s]={};for(const d in u)s[d]=a(u[d])}return Jbe(c,o),c})(e,t,(o=>W7(o,i,r))),hO(e,32|(n?2:0)),e}function mO(e){const t=e.s,n=qn(t);return 2&n?Hz(e,t,n,!1):e}function M1(e,t){return Ld(e=e.s,qn(e),t)}function Ld(e,t,n,r){if(n===-1)return null;if(n>=_R(t)){if(256&t)return e[e.length-1][n]}else{var i=e.length;if(r&&256&t&&(r=e[i-1][n])!=null)return r;if((t=n+(+!!(512&t)-1))<i)return e[t]}}function $r(e,t,n,r){const i=e.s;let o=qn(i);return Dd(o),qr(i,o,t,n,r),e}function qr(e,t,n,r,i){var o=_R(t);if(n>=o||i){if(i=t,256&t)o=e[e.length-1];else{if(r==null)return i;o=e[o+(+!!(512&t)-1)]={},i|=256}return o[n]=r,i!==t&&hi(e,i),i}return e[n+(+!!(512&t)-1)]=r,256&t&&n in(e=e[e.length-1])&&delete e[n],t}function $b(e,t,n,r,i){var o=2&t;let s=Ld(e,t,n,i);Array.isArray(s)||(s=_g);const a=!(2&r);r=!(1&r);const c=!!(32&t);let l=vi(s);return l!==0||!c||o||a?1&l||(l|=1,hi(s,l)):(l|=33,hi(s,l)),o?(e=!1,2&l||(Ub(s),e=!!(4&l)),(r||e)&&Object.freeze(s)):(o=!!(2&l)||!!(2048&l),r&&o?(s=ra(s),r=1,c&&!a&&(r|=32),hi(s,r),qr(e,t,n,s,i)):a&&32&l&&!o&&SR(s,32)),s}function Xx(e,t){e=e.s;let n=qn(e);const r=Ld(e,n,t),i=jm(r);return i!=null&&i!==r&&qr(e,n,t,i),i}function iwe(e){e=e.s;let t=qn(e);const n=Ld(e,t,1),r=Qbe(n,!0,!!(34&t));return r!=null&&r!==n&&qr(e,t,1,r),r}function ly(e,t,n){e=e.s;let r=qn(e);const i=2&r?1:2;let o=owe(e,r,t);var s=vi(o);if(!(4&s)){(4&s||Object.isFrozen(o))&&(o=ra(o),s=Sv(s,r,!1),r=qr(e,r,t,o));var a=0;let c=0;for(;a<o.length;a++){const l=n(o[a]);l!=null&&(o[c++]=l)}c<a&&(o.length=c),s=ts(s=swe(s,r,!1),20,!0),s=ts(s,4096,!1),s=ts(s,8192,!1),hi(o,s),2&s&&Object.freeze(o)}return l_(s)||(n=s,(s=(a=i===1)?ts(s,2,!0):ts(s,32,!1))!==n&&hi(o,s),a&&Object.freeze(o)),i===2&&l_(s)&&(o=ra(o),s=Sv(s,r,!1),hi(o,s),qr(e,r,t,o)),o}function owe(e,t,n){return e=Ld(e,t,n),Array.isArray(e)?e:_g}function swe(e,t,n){return e===0&&(e=Sv(e,t,n)),ts(e,1,!0)}function l_(e){return!!(2&e)&&!!(4&e)||!!(2048&e)}let Vlt;function Pte(){return Vlt??(Vlt=new el(Ub([]),void 0,void 0,void 0,Mlt))}function awe(e){e=ra(e);for(let t=0;t<e.length;t++){const n=e[t]=ra(e[t]);Array.isArray(n[1])&&(n[1]=Ub(n[1]))}return e}function kR(e,t,n){{const s=e.s;let a=qn(s);if(Dd(a),n==null)qr(s,a,t);else{var r,i=e=vi(n),o=!!(2&e)||Object.isFrozen(n);if((r=!o)&&(r=!1),!(4&e))for(e=21,o&&(n=ra(n),i=0,e=Sv(e,a,!0)),o=0;o<n.length;o++)n[o]=zE(n[o]);r&&(n=ra(n),i=0,e=Sv(e,a,!0)),e!==i&&hi(n,e),qr(s,a,t,n)}}}function WE(e,t,n,r){const i=qn(e);Dd(i),e=$b(e,i,t,2),r=n(r,!!(4&(t=vi(e)))&&!!(4096&t)),e.push(r)}function Wlt(e){return e}function N6(e,t){return zz(e=e.s,qn(e),Wwe)===t?t:-1}function zz(e,t,n){let r=0;for(let i=0;i<n.length;i++){const o=n[i];Ld(e,t,o)!=null&&(r!==0&&(t=qr(e,t,r)),r=o)}return r}function Vz(e,t,n,r){let i=qn(e);Dd(i);const o=Ld(e,i,n,r);let s;if(o!=null&&o.W===HE)return(t=mO(o))!==o&&qr(e,i,n,t,r),t.s;if(Array.isArray(o)){const a=vi(o);s=2&a?rwe(o,a,!1):o,s=Gg(s,t)}else s=Gg(void 0,t);return s!==o&&qr(e,i,n,s,r),s}function cwe(e,t,n,r){e=e.s;let i=qn(e);const o=Ld(e,i,n,r);return(t=jz(o,t,!1,i))!==o&&t!=null&&qr(e,i,n,t,r),t}function Fn(e,t,n,r=!1){if((t=cwe(e,t,n,r))==null)return t;e=e.s;let i=qn(e);if(!(2&i)){const o=mO(t);o!==t&&qr(e,i,n,t=o,r)}return t}function lwe(e,t,n,r,i,o){var s=!!(2&t),a=s?1:2;const c=a===1;a=a===2,i=!!i,o&&(o=!s),s=owe(e,t,r);var l=vi(s);const u=!!(4&l);if(!u){var d=s,f=t;const p=!!(2&(l=swe(l,t,i)));p&&(f=ts(f,2,!0));let g=!p,m=!0,y=0,v=0;for(;y<d.length;y++){const w=jz(d[y],n,!1,f);if(w instanceof n){if(!p){const S=!!(2&vi(w.s));g&&(g=!S),m&&(m=S)}d[v++]=w}}v<y&&(d.length=v),l=ts(l,4,!0),l=ts(l,16,m),l=ts(l,8,g),hi(d,l),p&&Object.freeze(d)}if(n=!!(8&l)||c&&!s.length,o&&!n){for(l_(l)&&(s=ra(s),l=Sv(l,t,i),t=qr(e,t,r,s)),o=s,n=l,d=0;d<o.length;d++)(l=o[d])!==(f=mO(l))&&(o[d]=f);n=ts(n,8,!0),n=ts(n,16,!o.length),hi(o,n),l=n}return l_(l)||(o=l,c?l=ts(l,!s.length||16&l&&(!u||32&l)?2:2048,!0):i||(l=ts(l,32,!1)),l!==o&&hi(s,l),c&&Object.freeze(s)),a&&l_(l)&&(s=ra(s),l=Sv(l,t,i),hi(s,l),qr(e,t,r,s)),s}function fh(e,t,n){e=e.s;const r=qn(e);return lwe(e,r,t,n,!1,!(2&r))}function Bt(e,t,n,r,i){return r==null&&(r=void 0),$r(e,n,r,i)}function u_(e,t,n,r){r==null&&(r=void 0),e=e.s;let i=qn(e);Dd(i),(n=zz(e,i,n))&&n!==t&&r!=null&&(i=qr(e,i,n)),qr(e,i,t,r)}function Sv(e,t,n){return e=ts(e,2,!!(2&t)),e=ts(e,32,!!(32&t)&&n),ts(e,2048,!1)}function q7(e,t,n){e=e.s;const r=qn(e);Dd(r),e=lwe(e,r,t,1,!0),t=n??new t,e.push(t),2&vi(t.s)?SR(e,8):SR(e,16)}function Bc(e,t){return Bb(M1(e,t))}function tl(e,t){return _C(M1(e,t))}function _d(e){return e??0}function rs(e,t){return _d(Xx(e,t))}function CC(e,t,n){if(n!=null&&typeof n!="boolean")throw e=typeof n,Error(`Expected boolean but got ${e!="object"?e:n?Array.isArray(n)?"array":e:"null"}: ${n}`);$r(e,t,n)}function Cd(e,t,n){if(n!=null){if(typeof n!="number"||!Number.isFinite(n))throw V7("int32");n|=0}$r(e,t,n)}function Wt(e,t,n){if(n!=null&&typeof n!="number")throw Error(`Value of float/double field must be a number, found ${typeof n}: ${n}`);$r(e,t,n)}function du(e,t,n){t.g?t.m(e,t.g,t.h,n,!0):t.m(e,t.h,n,!0)}el.prototype.toJSON=void 0,el.prototype.Na=Kbe;var wt=class{constructor(e,t){this.s=twe(e,t)}toJSON(){return uwe(this,$z(this.s,nwe,void 0,void 0,!1,!1),!0)}l(){var e=Qut;return e.g?e.l(this,e.g,e.h,!0):e.l(this,e.h,e.defaultValue,!0)}clone(){const e=this.s;return Hz(this,e,qn(e),!1)}L(){return!!(2&vi(this.s))}};function uwe(e,t,n){const r=e.constructor.A;var i=qn(n?e.s:t),o=_R(i),s=!1;if(r&&Ybe){if(!n){var a;if((t=ra(t)).length&&c_(a=t[t.length-1])){for(s=0;s<r.length;s++)if(r[s]>=o){Object.assign(t[t.length-1]={},a);break}}s=!0}var c;o=t,n=!n,e=_R(a=qn(e.s)),a=+!!(512&a)-1;for(let y=0;y<r.length;y++){var l=r[y];if(l<e){var u=o[l+=a];u==null?o[l]=n?_g:Tte():n&&u!==_g&&Ete(u)}else{if(!c){var d=void 0;o.length&&c_(d=o[o.length-1])?c=d:o.push(c={})}u=c[l],c[l]==null?c[l]=n?_g:Tte():n&&u!==_g&&Ete(u)}}}if(!(c=t.length))return t;let f,p;if(c_(d=t[c-1])){e:{var g=d;for(var m in o={},n=!1,g)e=g[m],Array.isArray(e)&&(a=e,(!gte&&z7(e,r,+m)||!F7&&kte(e)&&e.size===0)&&(e=null),e!=a&&(n=!0)),e!=null?o[m]=e:n=!0;if(n){for(let y in o){g=o;break e}g=null}}g!=d&&(f=!0),c--}for(i=+!!(512&i)-1;0<c&&((d=t[m=c-1])==null||!gte&&z7(d,r,m-i)||!F7&&kte(d)&&d.size===0);c--)p=!0;return(f||p)&&(t=s?t:Array.prototype.slice.call(t,0,c),s&&(t.length=c),g&&t.push(g)),t}function dwe(e){return Array.isArray(e)?e[0]instanceof jb?e:[nut,e]:[e,void 0]}function Hb(e,t){if(Array.isArray(t)){var n=vi(t);if(4&n)return t;for(var r=0,i=0;r<t.length;r++){const o=e(t[r]);o!=null&&(t[i++]=o)}return i<r&&(t.length=i),hi(t,-12289&(5|n)),2&n&&Object.freeze(t),t}}wt.prototype.W=HE,wt.prototype.toString=function(){return uwe(this,this.s,!1).toString()};const Ote=Symbol();function Wz(e){let t=e[Ote];if(!t){const n=pwe(e),r=Gz(e),i=r.g;t=i?(o,s)=>i(o,s,r):(o,s)=>{for(;Wbe(s)&&s.h!=4;){var a=s.m,c=r[a];if(!c){var l=r.ha;l&&(l=l[a])&&(c=r[a]=qlt(l))}c&&c(s,o,a)||(a=(c=s).l,Qx(c),c.ga?c=void 0:(l=c.g.g-a,c.g.g=a,c=Vbe(c.g,l)),a=o,c&&(Yp||(Yp=Symbol()),(l=a[Yp])?l.push(c):a[Yp]=[c]))}n===fwe||n===hwe||n.Oa||(o[SC||(SC=Symbol())]=n)},e[Ote]=t}return t}function qlt(e){const t=(e=dwe(e))[0].g;if(e=e[1]){const n=Wz(e),r=Gz(e).S;return(i,o,s)=>t(i,o,s,r,n)}return t}let fwe,hwe;const Jx=Symbol();function Glt(e,t,n){const r=n[1];let i;if(r){const o=r[Jx];i=o?o.S:TR(r[0]),e[t]=o??r}i&&i===Uz?(e.na||(e.na=[])).push(t):n[0]&&(e.oa||(e.oa=[])).push(t)}function Nte(e,t){return[e.l,!t||0<t[0]?void 0:t]}function pwe(e){var t=e[Jx];if(t)return t;if(!(t=qz(e,e[Jx]={},Nte,Nte,Glt)).oa&&!t.na){let n=!0;for(let r in t){isNaN(r)||(n=!1);break}n?(t=TR(e[0])===Uz,t=e[Jx]=t?hwe||(hwe={S:TR(!0)}):fwe||(fwe={})):t.Oa=!0}return t}function Klt(e,t,n){e[t]=n}function qz(e,t,n,r,i=Klt){t.S=TR(e[0]);let o=0;var s=e[++o];s&&s.constructor===Object&&(t.ha=s,typeof(s=e[++o])=="function"&&(t.g=s,t.h=e[++o],s=e[++o]));const a={};for(;Array.isArray(s)&&typeof s[0]=="number"&&0<s[0];){for(var c=0;c<s.length;c++)a[s[c]]=s;s=e[++o]}for(c=1;s!==void 0;){let d;typeof s=="number"&&(c+=s,s=e[++o]);var l=void 0;if(s instanceof jb?d=s:(d=rut,o--),d.qa){s=e[++o],l=e;var u=o;typeof s=="function"&&(s=s(),l[u]=s),l=s}for(u=c+1,typeof(s=e[++o])=="number"&&0>s&&(u-=s,s=e[++o]);c<u;c++){const f=a[c];i(t,c,l?r(d,l,f):n(d,f))}}return t}const Mte=Symbol();function mwe(e){let t=e[Mte];if(!t){const n=gO(e);t=(r,i)=>gwe(r,i,n),e[Mte]=t}return t}const Zx=Symbol();function Ylt(e){return e.h}function Qlt(e,t){let n,r;const i=e.h;return(o,s,a)=>i(o,s,a,r||(r=gO(t).S),n||(n=mwe(t)))}function gO(e){let t=e[Zx];return t||(t=qz(e,e[Zx]={},Ylt,Qlt),eA in e&&Zx in e&&(e.length=0),t)}const eA=Symbol();function Xlt(e,t){const n=e.g;return t?(r,i,o)=>n(r,i,o,t):n}function Jlt(e,t,n){const r=e.g;let i,o;return(s,a,c)=>r(s,a,c,o||(o=Gz(t).S),i||(i=Wz(t)),n)}function Gz(e){let t=e[eA];return t||(pwe(e),t=qz(e,e[eA]={},Xlt,Jlt),eA in e&&Zx in e&&(e.length=0),t)}function Dte(e,t){var n=e[t];if(n)return n;if((n=e.ha)&&(n=n[t])){var r=(n=dwe(n))[0].h;if(n=n[1]){const i=mwe(n),o=gO(n).S;n=(n=e.h)?n(o,i):(s,a,c)=>r(s,a,c,o,i)}else n=r;return e[t]=n}}function gwe(e,t,n){for(var r=qn(e),i=+!!(512&r)-1,o=e.length,s=512&r?1:0,a=o+(256&r?-1:0);s<a;s++){const c=e[s];if(c==null)continue;const l=s-i,u=Dte(n,l);u&&u(t,c,l)}if(256&r){r=e[o-1];for(let c in r)i=+c,Number.isNaN(i)||(o=r[c])!=null&&(a=Dte(n,i))&&a(t,o,i)}if(e=Yp?e[Yp]:void 0)for(N1(t,t.g.end()),n=0;n<e.length;n++)N1(t,Ez(e[n])||cO())}function Da(e,t){return new jb(e,t,!1,!1)}function zb(e,t){return new jb(e,t,!0,!1)}function vO(e,t){return new jb(e,t,!1,!0)}function La(e,t,n){qr(e,qn(e),t,n)}var Zlt=vO((function(e,t,n,r,i){return e.h===2&&(e=BE(e,Gg([void 0,void 0],r),i),Dd(r=qn(t)),(i=Ld(t,r,n))instanceof el?(2&i.O)!=0?((i=i.X()).push(e),qr(t,r,n,i)):i.Ta(e):Array.isArray(i)?(2&vi(i)&&qr(t,r,n,i=awe(i)),i.push(e)):qr(t,r,n,[e]),!0)}),(function(e,t,n,r,i){if(t instanceof el)t.forEach(((o,s)=>{$7(e,n,Gg([s,o],r),i)}));else if(Array.isArray(t))for(let o=0;o<t.length;o++){const s=t[o];Array.isArray(s)&&$7(e,n,Gg(s,r),i)}}));function vwe(e,t,n){e:if(t!=null){if(pO(t)){if(typeof t=="string"){t=Fz(t);break e}if(typeof t=="number"){t=Lz(t);break e}}t=void 0}t!=null&&(typeof t=="string"&&Ste(t),t!=null&&(ul(e,n,0),typeof t=="number"?(e=e.g,Wg(t),wR(e,Ur,eo)):(n=Ste(t),wR(e.g,n.h,n.g))))}function ywe(e,t,n){(t=Bb(t))!=null&&t!=null&&(ul(e,n,0),dO(e.g,t))}function bwe(e,t,n){(t=Zbe(t))!=null&&(ul(e,n,0),e.g.g.push(t?1:0))}function wwe(e,t,n){(t=_C(t))!=null&&fO(e,n,Rbe(t))}function yO(e,t,n,r,i){$7(e,n,t instanceof wt?t.s:Array.isArray(t)?Gg(t,r):void 0,i)}function Swe(e,t,n){(t=t==null||typeof t=="string"||aO(t)||t instanceof Kp?t:void 0)!=null&&fO(e,n,kz(t).buffer)}function _we(e,t,n){return(e.h===5||e.h===2)&&(t=$b(t,qn(t),n,2,!1),e.h==2?uO(e,B7,t):t.push(B7(e.g)),!0)}var yo,$f=Da((function(e,t,n){if(e.h!==1)return!1;var r=e.g;e=U7(r);const i=U7(r);r=2*(i>>31)+1;const o=i>>>20&2047;return e=4294967296*(1048575&i)+e,La(t,n,o==2047?e?NaN:1/0*r:o==0?r*Math.pow(2,-1074)*e:r*Math.pow(2,o-1075)*(e+4503599627370496)),!0}),(function(e,t,n){(t=jm(t))!=null&&(ul(e,n,1),e=e.g,(n=$be||($be=new DataView(new ArrayBuffer(8)))).setFloat64(0,+t,!0),Ur=n.getUint32(0,!0),eo=n.getUint32(4,!0),wC(e,Ur),wC(e,eo))})),Eo=Da((function(e,t,n){return e.h===5&&(La(t,n,B7(e.g)),!0)}),(function(e,t,n){(t=jm(t))!=null&&(ul(e,n,5),e=e.g,Az(t),wC(e,Ur))})),eut=zb(_we,(function(e,t,n){if((t=Hb(jm,t))!=null)for(let s=0;s<t.length;s++){var r=e,i=n,o=t[s];o!=null&&(ul(r,i,5),r=r.g,Az(o),wC(r,Ur))}})),Kz=zb(_we,(function(e,t,n){if((t=Hb(jm,t))!=null&&t.length){ul(e,n,2),$E(e.g,4*t.length);for(let r=0;r<t.length;r++)n=e.g,Az(t[r]),wC(n,Ur)}})),pm=Da((function(e,t,n){return e.h===0&&(La(t,n,Pz(e.g,Iz)),!0)}),vwe),M6=Da((function(e,t,n){return e.h===0&&(La(t,n,(e=Pz(e.g,Iz))===0?void 0:e),!0)}),vwe),tut=Da((function(e,t,n){return e.h===0&&(La(t,n,Pz(e.g,j7)),!0)}),(function(e,t,n){e:if(t!=null){if(pO(t)){if(typeof t=="string"){var r=Math.trunc(Number(t));Number.isSafeInteger(r)&&0<=r?t=String(r):((r=t.indexOf("."))!==-1&&(t=t.substring(0,r)),Ite(t)||(lO(t),t=bR(Ur,eo)));break e}if(typeof t=="number"){t=0<=(t=Math.trunc(t))&&Number.isSafeInteger(t)?t:(function(i){if(0>i){Wg(i);const o=bR(Ur,eo);return i=Number(o),Number.isSafeInteger(i)?i:o}return Ite(String(i))?i:(Wg(i),j7(Ur,eo))})(t);break e}}t=void 0}t!=null&&(typeof t=="string"&&bte(t),t!=null&&(ul(e,n,0),typeof t=="number"?(e=e.g,Wg(t),wR(e,Ur,eo)):(n=bte(t),wR(e.g,n.h,n.g))))})),Pi=Da((function(e,t,n){return e.h===0&&(La(t,n,fm(e.g)),!0)}),ywe),Yz=zb((function(e,t,n){return(e.h===0||e.h===2)&&(t=$b(t,qn(t),n,2,!1),e.h==2?uO(e,fm,t):t.push(fm(e.g)),!0)}),(function(e,t,n){if((t=Hb(Bb,t))!=null&&t.length){n=Mz(e,n);for(let r=0;r<t.length;r++)dO(e.g,t[r]);Dz(e,n)}})),D1=Da((function(e,t,n){return e.h===0&&(La(t,n,(e=fm(e.g))===0?void 0:e),!0)}),ywe),no=Da((function(e,t,n){return e.h===0&&(La(t,n,Oz(e.g)),!0)}),bwe),d_=Da((function(e,t,n){return e.h===0&&(La(t,n,(e=Oz(e.g))===!1?void 0:e),!0)}),bwe),Zs=zb((function(e,t,n){return e.h===2&&(WE(t,n,Wlt,e=Nz(e)),!0)}),(function(e,t,n){if((t=Hb(_C,t))!=null)for(let s=0;s<t.length;s++){var r=e,i=n,o=t[s];o!=null&&fO(r,i,Rbe(o))}})),mm=Da((function(e,t,n){return e.h===2&&(La(t,n,(e=Nz(e))===""?void 0:e),!0)}),wwe),Yr=Da((function(e,t,n){return e.h===2&&(La(t,n,Nz(e)),!0)}),wwe),nut=vO((function(e,t,n,r,i){return e.h===2&&(BE(e,Vz(t,r,n,!0),i),!0)}),yO),rut=vO((function(e,t,n,r,i){return e.h===2&&(BE(e,Vz(t,r,n),i),!0)}),yO);yo=new jb((function(e,t,n,r,i){if(e.h!==2)return!1;r=Gg(void 0,r);let o=qn(t);Dd(o);let s=$b(t,o,n,3);return o=qn(t),4&vi(s)&&(s=ra(s),hi(s,-2079&(1|vi(s))),qr(t,o,n,s)),s.push(r),BE(e,r,i),!0}),(function(e,t,n,r,i){if(Array.isArray(t))for(let o=0;o<t.length;o++)yO(e,t[o],n,r,i)}),!0,!0);var ti=vO((function(e,t,n,r,i,o){if(e.h!==2)return!1;let s=qn(t);return Dd(s),(o=zz(t,s,o))&&n!==o&&qr(t,s,o),BE(e,t=Vz(t,r,n),i),!0}),yO),Cwe=Da((function(e,t,n){return e.h===2&&(La(t,n,qbe(e)),!0)}),Swe),iut=zb((function(e,t,n){return(e.h===0||e.h===2)&&(t=$b(t,qn(t),n,2,!1),e.h==2?uO(e,hm,t):t.push(hm(e.g)),!0)}),(function(e,t,n){if((t=Hb(Llt,t))!=null)for(let s=0;s<t.length;s++){var r=e,i=n,o=t[s];o!=null&&(ul(r,i,0),$E(r.g,o))}})),Ed=Da((function(e,t,n){return e.h===0&&(La(t,n,fm(e.g)),!0)}),(function(e,t,n){(t=Bb(t))!=null&&(t=parseInt(t,10),ul(e,n,0),dO(e.g,t))})),out=zb((function(e,t,n){return(e.h===0||e.h===2)&&(t=$b(t,qn(t),n,2,!1),e.h==2?uO(e,Rlt,t):t.push(fm(e.g)),!0)}),(function(e,t,n){if((t=Hb(Bb,t))!=null&&t.length){n=Mz(e,n);for(let r=0;r<t.length;r++)dO(e.g,t[r]);Dz(e,n)}}));class sut{constructor(t,n){this.h=t,this.g=n,this.l=Fn,this.m=Bt,this.defaultValue=void 0}}function fu(e,t){return new sut(e,t)}function Um(e,t){return(n,r)=>{e:{if(XT.length){const o=XT.pop();o.o(r),R6(o.g,n,r),n=o}else n=new class{constructor(o,s){if(yte.length){const a=yte.pop();R6(a,o,s),o=a}else o=new class{constructor(a,c){this.h=null,this.m=!1,this.g=this.l=this.j=0,R6(this,a,c)}clear(){this.h=null,this.m=!1,this.g=this.l=this.j=0,this.aa=!1}}(o,s);this.g=o,this.l=this.g.g,this.h=this.m=-1,this.o(s)}o({ga:o=!1}={}){this.ga=o}}(n,r);try{const o=new e,s=o.s;Wz(t)(s,n),SC&&delete s[SC];var i=o;break e}finally{n.g.clear(),n.m=-1,n.h=-1,100>XT.length&&XT.push(n)}i=void 0}return i}}function Qz(e){return function(){const t=new class{constructor(){this.l=[],this.h=0,this.g=new class{constructor(){this.g=[]}length(){return this.g.length}end(){const s=this.g;return this.g=[],s}}}};gwe(this.s,t,gO(e)),N1(t,t.g.end());const n=new Uint8Array(t.h),r=t.l,i=r.length;let o=0;for(let s=0;s<i;s++){const a=r[s];n.set(a,o),o+=a.length}return t.l=[n],n}}var Ewe=[0,mm,Da((function(e,t,n){return e.h===2&&(La(t,n,(e=qbe(e))===O1()?void 0:e),!0)}),(function(e,t,n){if(t!=null){if(t instanceof wt){const r=t.Va;return void(r&&(t=r(t),t!=null&&fO(e,n,kz(t).buffer)))}if(Array.isArray(t))return}Swe(e,t,n)}))],aut=[0,Yr],Twe=[0,Pi,Ed,no,-1,Yz,Ed,-1],cut=[0,no,-1],kwe=class extends wt{constructor(){super()}};kwe.A=[6];var xwe=[0,no,Yr,no,Ed,-1,out,Yr,-1,cut,Ed],Awe=[0,Yr,-2],Lte=class extends wt{constructor(){super()}},Iwe=[0],Rwe=[0,Pi,no,-2],nl=class extends wt{constructor(e){super(e,2)}},oi={},lut=[-2,oi,no];oi[336783863]=[0,Yr,no,-1,Pi,[0,[1,2,3,4,5],ti,Iwe,ti,xwe,ti,Awe,ti,Rwe,ti,Twe],aut];var uut=[0,mm,d_],Pwe=[0,M6,-1,d_,-3,M6,Yz,mm,D1,M6,-1,d_,D1,d_,-2,mm],qE=[-1,{}],Owe=[0,Yr,1,qE],Nwe=[0,Yr,Zs,qE];function dl(e,t){t=VE(t),e=e.s;let n=qn(e);Dd(n),qr(e,n,2,t===""?void 0:t)}function Gr(e,t){WE(e.s,3,zE,t)}function Ar(e,t){WE(e.s,4,zE,t)}var ia=class extends wt{constructor(e){super(e,500)}o(e){return Bt(this,0,7,e)}};ia.A=[3,4,5,6,8,13,17,1005];var dut=[-500,mm,-1,Zs,-3,lut,yo,Ewe,D1,-1,Owe,Nwe,yo,uut,mm,Pwe,D1,Zs,987,Zs],fut=[0,mm,-1,qE],hut=[-500,Yr,-1,[-1,{}],998,Yr],put=[-500,Yr,Zs,-1,[-2,{},no],997,Zs,-1],mut=[-500,Yr,Zs,qE,998,Zs];function fl(e,t){q7(e,ia,t)}function si(e,t){WE(e.s,10,zE,t)}function ii(e,t){WE(e.s,15,zE,t)}var Fa=class extends wt{constructor(e){super(e,500)}o(e){return Bt(this,0,1001,e)}};Fa.A=[1,6,7,9,10,15,16,17,14,1002];var Mwe=[-500,yo,dut,4,yo,hut,yo,put,D1,yo,mut,Zs,D1,Owe,Nwe,yo,fut,Zs,-2,Pwe,mm,-1,d_,979,qE,yo,Ewe],gut=Um(Fa,Mwe);Fa.prototype.g=Qz(Mwe);var vut=[0,yo,[0,Pi,-2]],yut=class extends wt{constructor(e){super(e)}},but=[0,Pi,Eo,Yr,-1],Xz=class extends wt{constructor(e){super(e)}g(){return fh(this,yut,1)}};Xz.A=[1];var Dwe=[0,yo,but],Jz=Um(Xz,Dwe),wut=[0,Pi,Eo],Sut=[0,Pi,-1,vut],_ut=class extends wt{constructor(e){super(e)}},Cut=[0,Pi,-3],Eut=[0,Eo,-3],Tut=class extends wt{constructor(e){super(e)}},kut=[0,Eo,-1,Yr,Eo],tA=class extends wt{constructor(e){super(e)}h(){return Fn(this,_ut,2)}g(){return fh(this,Tut,5)}};tA.A=[5];var xut=[0,Ed,Cut,Eut,Sut,yo,kut],Lwe=class extends wt{constructor(e){super(e)}};Lwe.A=[1,2,3,8,9];var Fwe=Um(Lwe,[0,Zs,Yz,Kz,xut,Yr,-1,pm,yo,wut,Zs,pm]),jwe=class extends wt{constructor(e){super(e)}},Aut=[0,Eo,-4],Uwe=class extends wt{constructor(e){super(e)}};Uwe.A=[1];var Zz=Um(Uwe,[0,yo,Aut]),Bwe=class extends wt{constructor(t){super(t)}},Iut=[0,Eo,-4],$we=class extends wt{constructor(e){super(e)}};$we.A=[1];var bO=Um($we,[0,yo,Iut]),Hwe=class extends wt{constructor(t){super(t)}};Hwe.A=[3];var Rut=[0,Pi,-1,Kz,Ed],zwe=class extends wt{constructor(){super()}};zwe.prototype.g=Qz([0,Eo,-4,pm]);var Put=class extends wt{constructor(e){super(e)}},Out=[0,1,Pi,Yr,Dwe],Vwe=class extends wt{constructor(e){super(e)}};Vwe.A=[1];var Nut=Um(Vwe,[0,yo,Out,pm]),G7=class extends wt{constructor(e){super(e)}};G7.A=[1];var Mut=class extends wt{constructor(e){super(e)}ua(){const e=iwe(this);return e??O1()}},Dut=class extends wt{constructor(e){super(e)}},Wwe=[1,2],Lut=[0,Wwe,ti,[0,Kz],ti,[0,Cwe],Pi,Yr],qwe=class extends wt{constructor(e){super(e)}};qwe.A=[1];var Fut=Um(qwe,[0,yo,Lut,pm]),wO=class extends wt{constructor(e){super(e)}};wO.A=[4,5];var Gwe=[0,Yr,Pi,Eo,Zs,-1],Fte=class extends wt{constructor(e){super(e)}},jut=[0,no,-1],jte=class extends wt{constructor(e){super(e)}},nA=[1,2,3,4,5],xR=class extends wt{constructor(e){super(e)}g(){return iwe(this)!=null}h(){return tl(this,2)!=null}},Kwe=[0,Cwe,Yr,[0,Pi,pm,-1],[0,tut,pm]],Ii=class extends wt{constructor(e){super(e)}g(){return Zbe(M1(this,2))??!1}},To=[0,Kwe,no,[0,nA,ti,Rwe,ti,xwe,ti,Twe,ti,Iwe,ti,Awe],Ed],eV=class extends wt{constructor(e){super(e)}},Ywe=[0,To,Eo,-1,Pi],Uut=fu(502141897,eV);oi[502141897]=Ywe;var Qwe=[0,Kwe];oi[512499200]=Qwe;var Xwe=[0,Qwe];oi[515723506]=Xwe;var But=Um(class extends wt{constructor(e){super(e)}},[0,[0,Ed,-1,eut,iut],Rut]),Jwe=[0,To];oi[508981768]=Jwe;var $ut=class extends wt{constructor(e){super(e)}},Zwe=[0,To,Eo,Jwe,no],eSe=class extends wt{constructor(e){super(e)}},tSe=[0,To,Ywe,Zwe,Eo,Xwe];oi[508968149]=Zwe;var Hut=fu(508968150,eSe);oi[508968150]=tSe;var nSe=class extends wt{constructor(e){super(e)}},zut=fu(513916220,nSe);oi[513916220]=[0,To,tSe,Pi];var y0=class extends wt{constructor(e){super(e)}h(){return Fn(this,wO,2)}g(){$r(this,2)}},rSe=[0,To,Gwe];oi[478825465]=rSe;var iSe=[0,To];oi[478825422]=iSe;var Vut=class extends wt{constructor(e){super(e)}},oSe=[0,To,iSe,rSe,-1],sSe=class extends wt{constructor(e){super(e)}},aSe=[0,To,Eo,Pi],cSe=class extends wt{constructor(e){super(e)}},lSe=[0,To,Eo],tV=class extends wt{constructor(e){super(e)}},uSe=[0,To,aSe,lSe,Eo],dSe=class extends wt{constructor(e){super(e)}},Wut=[0,To,uSe,oSe];oi[463370452]=oSe,oi[464864288]=aSe,oi[474472470]=lSe;var qut=fu(462713202,tV);oi[462713202]=uSe;var Gut=fu(479097054,dSe);oi[479097054]=Wut;var fSe=class extends wt{constructor(e){super(e)}},Kut=fu(456383383,fSe);oi[456383383]=[0,To,Gwe];var hSe=class extends wt{constructor(e){super(e)}},Yut=fu(476348187,hSe);oi[476348187]=[0,To,jut];var pSe=class extends wt{constructor(e){super(e)}},mSe=[0,Ed,-1],K7=class extends wt{constructor(e){super(e)}};K7.A=[3];var Qut=fu(458105876,class extends wt{constructor(e){super(e)}g(){var e=this.s;const t=qn(e);var n=2&t;return e=(function(r,i,o){var s=K7;const a=2&i;let c=!1;if(o==null){if(a)return Pte();o=[]}else if(o.constructor===el){if((2&o.O)==0||a)return o;o=o.X()}else Array.isArray(o)?c=!!(2&vi(o)):o=[];if(a){if(!o.length)return Pte();c||(c=!0,Ub(o))}else c&&(c=!1,o=awe(o));return c||(64&vi(o)?SR(o,32):32&i&&hO(o,32)),qr(r,i,2,s=new el(o,s,Flt,void 0),!1),s})(e,t,Ld(e,t,2)),e==null||!n&&K7&&(e.xa=!0),n=e}});oi[458105876]=[0,mSe,Zlt,[!0,pm,[0,Yr,-1,Zs]]];var nV=class extends wt{constructor(e){super(e)}},gSe=fu(458105758,nV);oi[458105758]=[0,To,Yr,mSe];var rV=class extends wt{constructor(e){super(e)}};rV.A=[5,6];var Xut=fu(443442058,rV);oi[443442058]=[0,To,Yr,Pi,Eo,Zs,-1];var Jut=class extends wt{constructor(e){super(e)}},vSe=[0,To,Eo,-1,Pi];oi[514774813]=vSe;var Zut=class extends wt{constructor(e){super(e)}},ySe=[0,To,Eo,no],bSe=class extends wt{constructor(e){super(e)}},edt=[0,To,vSe,ySe,Eo];oi[518928384]=ySe;var tdt=fu(516587230,bSe);function Y7(e,t){return t=t?t.clone():new wO,e.displayNamesLocale!==void 0?$r(t,1,VE(e.displayNamesLocale)):e.displayNamesLocale===void 0&&$r(t,1),e.maxResults!==void 0?Cd(t,2,e.maxResults):"maxResults"in e&&$r(t,2),e.scoreThreshold!==void 0?Wt(t,3,e.scoreThreshold):"scoreThreshold"in e&&$r(t,3),e.categoryAllowlist!==void 0?kR(t,4,e.categoryAllowlist):"categoryAllowlist"in e&&$r(t,4),e.categoryDenylist!==void 0?kR(t,5,e.categoryDenylist):"categoryDenylist"in e&&$r(t,5),t}function wSe(e,t=-1,n=""){return{categories:e.map((r=>({index:_d(Bc(r,1))??-1,score:rs(r,2)??0,categoryName:tl(r,3)??""??"",displayName:tl(r,4)??""??""}))),headIndex:t,headName:n}}function SSe(e){var s,a;var t=ly(e,3,jm),n=ly(e,2,Bb),r=ly(e,1,_C),i=ly(e,9,_C);const o={categories:[],keypoints:[]};for(let c=0;c<t.length;c++)o.categories.push({score:t[c],index:n[c]??-1,categoryName:r[c]??"",displayName:i[c]??""});if((t=(s=Fn(e,tA,4))==null?void 0:s.h())&&(o.boundingBox={originX:Bc(t,1)??0,originY:Bc(t,2)??0,width:Bc(t,3)??0,height:Bc(t,4)??0,angle:0}),(a=Fn(e,tA,4))==null?void 0:a.g().length)for(const c of Fn(e,tA,4).g())o.keypoints.push({x:Xx(c,1)??0,y:Xx(c,2)??0,score:Xx(c,4)??0,label:tl(c,3)??""});return o}function iV(e){const t=[];for(const n of fh(e,Bwe,1))t.push({x:rs(n,1)??0,y:rs(n,2)??0,z:rs(n,3)??0});return t}function _Se(e){const t=[];for(const n of fh(e,jwe,1))t.push({x:rs(n,1)??0,y:rs(n,2)??0,z:rs(n,3)??0});return t}function Ute(e){return Array.from(e,(t=>127<t?t-256:t))}function Bte(e,t){if(e.length!==t.length)throw Error(`Cannot compute cosine similarity between embeddings of different sizes (${e.length} vs. ${t.length}).`);let n=0,r=0,i=0;for(let o=0;o<e.length;o++)n+=e[o]*t[o],r+=e[o]*e[o],i+=t[o]*t[o];if(0>=r||0>=i)throw Error("Cannot compute cosine similarity on embedding with 0 norm.");return n/Math.sqrt(r*i)}let ZT;oi[516587230]=edt;const ndt=new Uint8Array([0,97,115,109,1,0,0,0,1,5,1,96,0,1,123,3,2,1,0,10,10,1,8,0,65,0,253,15,253,98,11]);async function CSe(){if(ZT===void 0)try{await WebAssembly.instantiate(ndt),ZT=!0}catch{ZT=!1}return ZT}async function D6(e,t=""){const n=await CSe()?"wasm_internal":"wasm_nosimd_internal";return{wasmLoaderPath:`${t}/${e}_${n}.js`,wasmBinaryPath:`${t}/${e}_${n}.wasm`}}var kS=class{};function ESe(){const e=navigator.userAgent;return e.includes("Safari")&&!e.includes("Chrome")}async function $te(e){if(typeof importScripts!="function"){const t=document.createElement("script");return t.src=e.toString(),t.crossOrigin="anonymous",new Promise(((n,r)=>{t.addEventListener("load",(()=>{n()}),!1),t.addEventListener("error",(i=>{r(i)}),!1),document.body.appendChild(t)}))}importScripts(e.toString())}function xt(e,t,n){e.m||console.error("No wasm multistream support detected: ensure dependency inclusion of :gl_graph_runner_internal_multi_input target"),n(t=e.i.stringToNewUTF8(t)),e.i._free(t)}function Hte(e,t,n){if(!e.i.canvas)throw Error("No OpenGL canvas configured.");if(n?e.i._bindTextureToStream(n):e.i._bindTextureToCanvas(),!(n=e.i.canvas.getContext("webgl2")||e.i.canvas.getContext("webgl")))throw Error("Failed to obtain WebGL context from the provided canvas. `getContext()` should only be invoked with `webgl` or `webgl2`.");return e.i.gpuOriginForWebTexturesIsBottomLeft&&n.pixelStorei(n.UNPACK_FLIP_Y_WEBGL,!0),n.texImage2D(n.TEXTURE_2D,0,n.RGBA,n.RGBA,n.UNSIGNED_BYTE,t),e.i.gpuOriginForWebTexturesIsBottomLeft&&n.pixelStorei(n.UNPACK_FLIP_Y_WEBGL,!1),t.videoWidth?(n=t.videoWidth,t=t.videoHeight):t.naturalWidth?(n=t.naturalWidth,t=t.naturalHeight):(n=t.width,t=t.height),!e.l||n===e.i.canvas.width&&t===e.i.canvas.height||(e.i.canvas.width=n,e.i.canvas.height=t),[n,t]}function zte(e,t,n){e.m||console.error("No wasm multistream support detected: ensure dependency inclusion of :gl_graph_runner_internal_multi_input target");const r=new Uint32Array(t.length);for(let i=0;i<t.length;i++)r[i]=e.i.stringToNewUTF8(t[i]);t=e.i._malloc(4*r.length),e.i.HEAPU32.set(r,t>>2),n(t);for(const i of r)e.i._free(i);e.i._free(t)}function Zd(e,t,n){e.i.simpleListeners=e.i.simpleListeners||{},e.i.simpleListeners[t]=n}function Jm(e,t,n){let r=[];e.i.simpleListeners=e.i.simpleListeners||{},e.i.simpleListeners[t]=(i,o,s)=>{o?(n(r,s),r=[]):r.push(i)}}kS.forVisionTasks=function(e){return D6("vision",e)},kS.forTextTasks=function(e){return D6("text",e)},kS.forAudioTasks=function(e){return D6("audio",e)},kS.isSimdSupported=function(){return CSe()};async function rdt(e,t,n,r){return e=await(async(i,o,s,a,c)=>{if(o&&await $te(o),!self.ModuleFactory||s&&(await $te(s),!self.ModuleFactory))throw Error("ModuleFactory not set.");return self.Module&&c&&((o=self.Module).locateFile=c.locateFile,c.mainScriptUrlOrBlob&&(o.mainScriptUrlOrBlob=c.mainScriptUrlOrBlob)),c=await self.ModuleFactory(self.Module||c),self.ModuleFactory=self.Module=void 0,new i(c,a)})(e,n.wasmLoaderPath,n.assetLoaderPath,t,{locateFile:i=>i.endsWith(".wasm")?n.wasmBinaryPath.toString():n.assetBinaryPath&&i.endsWith(".data")?n.assetBinaryPath.toString():i}),await e.o(r),e}function Vte(e,t){const n=Fn(e.baseOptions,xR,1)||new xR;typeof t=="string"?($r(n,2,VE(t)),$r(n,1)):t instanceof Uint8Array&&($r(n,1,Qbe(t,!1,!1)),$r(n,2)),Bt(e.baseOptions,0,1,n)}function Wte(e){try{const t=e.F.length;if(t===1)throw Error(e.F[0].message);if(1<t)throw Error("Encountered multiple errors: "+e.F.map((n=>n.message)).join(", "))}finally{e.F=[]}}function Mt(e,t){e.I=Math.max(e.I,t)}function oV(e,t){e.C=new ia,dl(e.C,"PassThroughCalculator"),Gr(e.C,"free_memory"),Ar(e.C,"free_memory_unused_out"),si(t,"free_memory"),fl(t,e.C)}function EC(e,t){Gr(e.C,t),Ar(e.C,t+"_unused_out")}function sV(e){e.g.addBoolToStream(!0,"free_memory",e.I)}var Q7=class{constructor(e){this.g=e,this.F=[],this.I=0,this.g.setAutoRenderToScreen(!1)}l(e,t=!0){var n,r,i,o,s,a;if(t){const c=e.baseOptions||{};if((n=e.baseOptions)!=null&&n.modelAssetBuffer&&((r=e.baseOptions)!=null&&r.modelAssetPath))throw Error("Cannot set both baseOptions.modelAssetPath and baseOptions.modelAssetBuffer");if(!((i=Fn(this.baseOptions,xR,1))!=null&&i.g()||(o=Fn(this.baseOptions,xR,1))!=null&&o.h()||(s=e.baseOptions)!=null&&s.modelAssetBuffer||(a=e.baseOptions)!=null&&a.modelAssetPath))throw Error("Either baseOptions.modelAssetPath or baseOptions.modelAssetBuffer must be set");if((function(l,u){let d=Fn(l.baseOptions,jte,3);if(!d){var f=d=new jte,p=new Lte;u_(f,4,nA,p)}"delegate"in u&&(u.delegate==="GPU"?(u=d,f=new kwe,u_(u,2,nA,f)):(u=d,f=new Lte,u_(u,4,nA,f))),Bt(l.baseOptions,0,3,d)})(this,c),c.modelAssetPath)return fetch(c.modelAssetPath.toString()).then((l=>{if(l.ok)return l.arrayBuffer();throw Error(`Failed to fetch model: ${c.modelAssetPath} (${l.status})`)})).then((l=>{try{this.g.i.FS_unlink("/model.dat")}catch{}this.g.i.FS_createDataFile("/","model.dat",new Uint8Array(l),!0,!1,!1),Vte(this,"/model.dat"),this.m(),this.N()}));Vte(this,c.modelAssetBuffer)}return this.m(),this.N(),Promise.resolve()}N(){}da(){let e;if(this.g.da((t=>{e=gut(t)})),!e)throw Error("Failed to retrieve CalculatorGraphConfig");return e}setGraph(e,t){this.g.attachErrorListener(((n,r)=>{this.F.push(Error(r))})),this.g.Ra(),this.g.setGraph(e,t),this.C=void 0,Wte(this)}finishProcessing(){this.g.finishProcessing(),Wte(this)}close(){this.C=void 0,this.g.closeGraph()}};function Hf(e,t){if(e===null)throw Error(`Unable to obtain required WebGL resource: ${t}`);return e}Q7.prototype.close=Q7.prototype.close;class idt{constructor(t,n,r,i){this.g=t,this.h=n,this.m=r,this.l=i}bind(){this.g.bindVertexArray(this.h)}close(){this.g.deleteVertexArray(this.h),this.g.deleteBuffer(this.m),this.g.deleteBuffer(this.l)}}function qte(e,t,n){const r=e.g;if(n=Hf(r.createShader(n),"Failed to create WebGL shader"),r.shaderSource(n,t),r.compileShader(n),!r.getShaderParameter(n,r.COMPILE_STATUS))throw Error(`Could not compile WebGL shader: ${r.getShaderInfoLog(n)}`);return r.attachShader(e.h,n),n}function Gte(e,t){const n=e.g,r=Hf(n.createVertexArray(),"Failed to create vertex array");n.bindVertexArray(r);const i=Hf(n.createBuffer(),"Failed to create buffer");n.bindBuffer(n.ARRAY_BUFFER,i),n.enableVertexAttribArray(e.N),n.vertexAttribPointer(e.N,2,n.FLOAT,!1,0,0),n.bufferData(n.ARRAY_BUFFER,new Float32Array([-1,-1,-1,1,1,1,1,-1]),n.STATIC_DRAW);const o=Hf(n.createBuffer(),"Failed to create buffer");return n.bindBuffer(n.ARRAY_BUFFER,o),n.enableVertexAttribArray(e.M),n.vertexAttribPointer(e.M,2,n.FLOAT,!1,0,0),n.bufferData(n.ARRAY_BUFFER,new Float32Array(t?[0,1,0,0,1,0,1,1]:[0,0,0,1,1,1,1,0]),n.STATIC_DRAW),n.bindBuffer(n.ARRAY_BUFFER,null),n.bindVertexArray(null),new idt(n,r,i,o)}function aV(e,t){if(e.g){if(t!==e.g)throw Error("Cannot change GL context once initialized")}else e.g=t}function cV(e,t,n,r){return aV(e,t),e.h||(e.m(),e.F()),n?(e.u||(e.u=Gte(e,!0)),n=e.u):(e.v||(e.v=Gte(e,!1)),n=e.v),t.useProgram(e.h),n.bind(),e.l(),e=r(),n.g.bindVertexArray(null),e}function SO(e,t,n){return aV(e,t),e=Hf(t.createTexture(),"Failed to create texture"),t.bindTexture(t.TEXTURE_2D,e),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_WRAP_S,t.CLAMP_TO_EDGE),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_WRAP_T,t.CLAMP_TO_EDGE),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_MIN_FILTER,n??t.LINEAR),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_MAG_FILTER,n??t.LINEAR),t.bindTexture(t.TEXTURE_2D,null),e}function _O(e,t,n){aV(e,t),e.C||(e.C=Hf(t.createFramebuffer(),"Failed to create framebuffe.")),t.bindFramebuffer(t.FRAMEBUFFER,e.C),t.framebufferTexture2D(t.FRAMEBUFFER,t.COLOR_ATTACHMENT0,t.TEXTURE_2D,n,0)}function lV(e){var t;(t=e.g)==null||t.bindFramebuffer(e.g.FRAMEBUFFER,null)}var uV=class{I(){return`
1553  precision mediump float;
1554  varying vec2 vTex;
1555  uniform sampler2D inputTexture;
1556  void main() {
1557    gl_FragColor = texture2D(inputTexture, vTex);
1558  }
1559 `}m(){const e=this.g;if(this.h=Hf(e.createProgram(),"Failed to create WebGL program"),this.ta=qte(this,`
1560  attribute vec2 aVertex;
1561  attribute vec2 aTex;
1562  varying vec2 vTex;
1563  void main(void) {
1564    gl_Position = vec4(aVertex, 0.0, 1.0);
1565    vTex = aTex;
1566  }`,e.VERTEX_SHADER),this.sa=qte(this,this.I(),e.FRAGMENT_SHADER),e.linkProgram(this.h),!e.getProgramParameter(this.h,e.LINK_STATUS))throw Error(`Error during program linking: ${e.getProgramInfoLog(this.h)}`);this.N=e.getAttribLocation(this.h,"aVertex"),this.M=e.getAttribLocation(this.h,"aTex")}F(){}l(){}close(){if(this.h){const e=this.g;e.deleteProgram(this.h),e.deleteShader(this.ta),e.deleteShader(this.sa)}this.C&&this.g.deleteFramebuffer(this.C),this.v&&this.v.close(),this.u&&this.u.close()}};function Cf(e,t){switch(t){case 0:return e.g.find((n=>n instanceof Uint8Array));case 1:return e.g.find((n=>n instanceof Float32Array));case 2:return e.g.find((n=>typeof WebGLTexture<"u"&&n instanceof WebGLTexture));default:throw Error(`Type is not supported: ${t}`)}}function X7(e){var t=Cf(e,1);if(!t){if(t=Cf(e,0))t=new Float32Array(t).map((r=>r/255));else{t=new Float32Array(e.width*e.height);const r=L1(e);var n=dV(e);if(_O(n,r,TSe(e)),"iPad Simulator;iPhone Simulator;iPod Simulator;iPad;iPhone;iPod".split(";").includes(navigator.platform)||navigator.userAgent.includes("Mac")&&"ontouchend"in self.document){n=new Float32Array(e.width*e.height*4),r.readPixels(0,0,e.width,e.height,r.RGBA,r.FLOAT,n);for(let i=0,o=0;i<t.length;++i,o+=4)t[i]=n[o]}else r.readPixels(0,0,e.width,e.height,r.RED,r.FLOAT,t)}e.g.push(t)}return t}function TSe(e){let t=Cf(e,2);if(!t){const n=L1(e);t=xSe(e);const r=X7(e),i=kSe(e);n.texImage2D(n.TEXTURE_2D,0,i,e.width,e.height,0,n.RED,n.FLOAT,r),J7(e)}return t}function L1(e){if(!e.canvas)throw Error("Conversion to different image formats require that a canvas is passed when initializing the image.");return e.h||(e.h=Hf(e.canvas.getContext("webgl2"),"You cannot use a canvas that is already bound to a different type of rendering context.")),e.h}function kSe(e){if(e=L1(e),!ek)if(e.getExtension("EXT_color_buffer_float")&&e.getExtension("OES_texture_float_linear")&&e.getExtension("EXT_float_blend"))ek=e.R32F;else{if(!e.getExtension("EXT_color_buffer_half_float"))throw Error("GPU does not fully support 4-channel float32 or float16 formats");ek=e.R16F}return ek}function dV(e){return e.l||(e.l=new uV),e.l}function xSe(e){const t=L1(e);t.viewport(0,0,e.width,e.height),t.activeTexture(t.TEXTURE0);let n=Cf(e,2);return n||(n=SO(dV(e),t,e.m?t.LINEAR:t.NEAREST),e.g.push(n),e.j=!0),t.bindTexture(t.TEXTURE_2D,n),n}function J7(e){e.h.bindTexture(e.h.TEXTURE_2D,null)}var ek,Po=class{constructor(e,t,n,r,i,o,s){this.g=e,this.m=t,this.j=n,this.canvas=r,this.l=i,this.width=o,this.height=s,this.j&&--Kte===0&&console.error("You seem to be creating MPMask instances without invoking .close(). This leaks resources.")}La(){return!!Cf(this,0)}ka(){return!!Cf(this,1)}P(){return!!Cf(this,2)}ja(){return(t=Cf(e=this,0))||(t=X7(e),t=new Uint8Array(t.map((n=>255*n))),e.g.push(t)),t;var e,t}ia(){return X7(this)}K(){return TSe(this)}clone(){const e=[];for(const t of this.g){let n;if(t instanceof Uint8Array)n=new Uint8Array(t);else if(t instanceof Float32Array)n=new Float32Array(t);else{if(!(t instanceof WebGLTexture))throw Error(`Type is not supported: ${t}`);{const r=L1(this),i=dV(this);r.activeTexture(r.TEXTURE1),n=SO(i,r,this.m?r.LINEAR:r.NEAREST),r.b
vendor: 11,915 bytes, line 1566
1566indTexture(r.TEXTURE_2D,n);const o=kSe(this);r.texImage2D(r.TEXTURE_2D,0,o,this.width,this.height,0,r.RED,r.FLOAT,null),r.bindTexture(r.TEXTURE_2D,null),_O(i,r,n),cV(i,r,!1,(()=>{xSe(this),r.clearColor(0,0,0,0),r.clear(r.COLOR_BUFFER_BIT),r.drawArrays(r.TRIANGLE_FAN,0,4),J7(this)})),lV(i),J7(this)}}e.push(n)}return new Po(e,this.m,this.P(),this.canvas,this.l,this.width,this.height)}close(){this.j&&L1(this).deleteTexture(Cf(this,2)),Kte=-1}};Po.prototype.close=Po.prototype.close,Po.prototype.clone=Po.prototype.clone,Po.prototype.getAsWebGLTexture=Po.prototype.K,Po.prototype.getAsFloat32Array=Po.prototype.ia,Po.prototype.getAsUint8Array=Po.prototype.ja,Po.prototype.hasWebGLTexture=Po.prototype.P,Po.prototype.hasFloat32Array=Po.prototype.ka,Po.prototype.hasUint8Array=Po.prototype.La;var Kte=250;function $u(e,t){switch(t){case 0:return e.g.find((n=>n instanceof ImageData));case 1:return e.g.find((n=>typeof ImageBitmap<"u"&&n instanceof ImageBitmap));case 2:return e.g.find((n=>typeof WebGLTexture<"u"&&n instanceof WebGLTexture));default:throw Error(`Type is not supported: ${t}`)}}function ASe(e){var t=$u(e,0);if(!t){t=F1(e);const n=CO(e),r=new Uint8Array(e.width*e.height*4);_O(n,t,rA(e)),t.readPixels(0,0,e.width,e.height,t.RGBA,t.UNSIGNED_BYTE,r),lV(n),t=new ImageData(new Uint8ClampedArray(r.buffer),e.width,e.height),e.g.push(t)}return t}function rA(e){let t=$u(e,2);if(!t){const n=F1(e);t=iA(e);const r=$u(e,1)||ASe(e);n.texImage2D(n.TEXTURE_2D,0,n.RGBA,n.RGBA,n.UNSIGNED_BYTE,r),xS(e)}return t}function F1(e){if(!e.canvas)throw Error("Conversion to different image formats require that a canvas is passed when iniitializing the image.");return e.h||(e.h=Hf(e.canvas.getContext("webgl2"),"You cannot use a canvas that is already bound to a different type of rendering context.")),e.h}function CO(e){return e.l||(e.l=new uV),e.l}function iA(e){const t=F1(e);t.viewport(0,0,e.width,e.height),t.activeTexture(t.TEXTURE0);let n=$u(e,2);return n||(n=SO(CO(e),t),e.g.push(n),e.m=!0),t.bindTexture(t.TEXTURE_2D,n),n}function xS(e){e.h.bindTexture(e.h.TEXTURE_2D,null)}function Yte(e){const t=F1(e);return cV(CO(e),t,!0,(()=>(function(n,r){const i=n.canvas;if(i.width===n.width&&i.height===n.height)return r();const o=i.width,s=i.height;return i.width=n.width,i.height=n.height,n=r(),i.width=o,i.height=s,n})(e,(()=>{if(t.bindFramebuffer(t.FRAMEBUFFER,null),t.clearColor(0,0,0,0),t.clear(t.COLOR_BUFFER_BIT),t.drawArrays(t.TRIANGLE_FAN,0,4),!(e.canvas instanceof OffscreenCanvas))throw Error("Conversion to ImageBitmap requires that the MediaPipe Tasks is initialized with an OffscreenCanvas");return e.canvas.transferToImageBitmap()}))))}var Oo=class{constructor(e,t,n,r,i,o,s){this.g=e,this.j=t,this.m=n,this.canvas=r,this.l=i,this.width=o,this.height=s,(this.j||this.m)&&--Qte===0&&console.error("You seem to be creating MPImage instances without invoking .close(). This leaks resources.")}Ka(){return!!$u(this,0)}la(){return!!$u(this,1)}P(){return!!$u(this,2)}Ia(){return ASe(this)}Ha(){var e=$u(this,1);return e||(rA(this),iA(this),e=Yte(this),xS(this),this.g.push(e),this.j=!0),e}K(){return rA(this)}clone(){const e=[];for(const t of this.g){let n;if(t instanceof ImageData)n=new ImageData(t.data,this.width,this.height);else if(t instanceof WebGLTexture){const r=F1(this),i=CO(this);r.activeTexture(r.TEXTURE1),n=SO(i,r),r.bindTexture(r.TEXTURE_2D,n),r.texImage2D(r.TEXTURE_2D,0,r.RGBA,this.width,this.height,0,r.RGBA,r.UNSIGNED_BYTE,null),r.bindTexture(r.TEXTURE_2D,null),_O(i,r,n),cV(i,r,!1,(()=>{iA(this),r.clearColor(0,0,0,0),r.clear(r.COLOR_BUFFER_BIT),r.drawArrays(r.TRIANGLE_FAN,0,4),xS(this)})),lV(i),xS(this)}else{if(!(t instanceof ImageBitmap))throw Error(`Type is not supported: ${t}`);rA(this),iA(this),n=Yte(this),xS(this)}e.push(n)}return new Oo(e,this.la(),this.P(),this.canvas,this.l,this.width,this.height)}close(){this.j&&$u(this,1).close(),this.m&&F1(this).deleteTexture($u(this,2)),Qte=-1}};Oo.prototype.close=Oo.prototype.close,Oo.prototype.clone=Oo.prototype.clone,Oo.prototype.getAsWebGLTexture=Oo.prototype.K,Oo.prototype.getAsImageBitmap=Oo.prototype.Ha,Oo.prototype.getAsImageData=Oo.prototype.Ia,Oo.prototype.hasWebGLTexture=Oo.prototype.P,Oo.prototype.hasImageBitmap=Oo.prototype.la,Oo.prototype.hasImageData=Oo.prototype.Ka;var Qte=250;function hu(...e){return e.map((([t,n])=>({start:t,end:n})))}const odt=(function(e){return class extends e{Ra(){this.i._registerModelResourcesGraphService()}}})((Xte=class{constructor(e,t){this.l=!0,this.i=e,this.g=null,this.h=0,this.m=typeof this.i._addIntToInputStream=="function",t!==void 0?this.i.canvas=t:typeof OffscreenCanvas>"u"||ESe()?(console.warn("OffscreenCanvas not supported and GraphRunner constructor glCanvas parameter is undefined. Creating backup canvas."),this.i.canvas=document.createElement("canvas")):this.i.canvas=new OffscreenCanvas(1,1)}async initializeGraph(e){const t=await(await fetch(e)).arrayBuffer();e=!(e.endsWith(".pbtxt")||e.endsWith(".textproto")),this.setGraph(new Uint8Array(t),e)}setGraphFromString(e){this.setGraph(new TextEncoder().encode(e),!1)}setGraph(e,t){const n=e.length,r=this.i._malloc(n);this.i.HEAPU8.set(e,r),t?this.i._changeBinaryGraph(n,r):this.i._changeTextGraph(n,r),this.i._free(r)}configureAudio(e,t,n,r,i){this.i._configureAudio||console.warn('Attempting to use configureAudio without support for input audio. Is build dep ":gl_graph_runner_audio" missing?'),xt(this,r||"input_audio",(o=>{xt(this,i=i||"audio_header",(s=>{this.i._configureAudio(o,s,e,t,n)}))}))}setAutoResizeCanvas(e){this.l=e}setAutoRenderToScreen(e){this.i._setAutoRenderToScreen(e)}setGpuBufferVerticalFlip(e){this.i.gpuOriginForWebTexturesIsBottomLeft=e}da(e){Zd(this,"__graph_config__",(t=>{e(t)})),xt(this,"__graph_config__",(t=>{this.i._getGraphConfig(t,void 0)})),delete this.i.simpleListeners.__graph_config__}attachErrorListener(e){this.i.errorListener=e}attachEmptyPacketListener(e,t){this.i.emptyPacketListeners=this.i.emptyPacketListeners||{},this.i.emptyPacketListeners[e]=t}addAudioToStream(e,t,n){this.addAudioToStreamWithShape(e,0,0,t,n)}addAudioToStreamWithShape(e,t,n,r,i){const o=4*e.length;this.h!==o&&(this.g&&this.i._free(this.g),this.g=this.i._malloc(o),this.h=o),this.i.HEAPF32.set(e,this.g/4),xt(this,r,(s=>{this.i._addAudioToInputStream(this.g,t,n,s,i)}))}addGpuBufferToStream(e,t,n){xt(this,t,(r=>{const[i,o]=Hte(this,e,r);this.i._addBoundTextureToStream(r,i,o,n)}))}addBoolToStream(e,t,n){xt(this,t,(r=>{this.i._addBoolToInputStream(e,r,n)}))}addDoubleToStream(e,t,n){xt(this,t,(r=>{this.i._addDoubleToInputStream(e,r,n)}))}addFloatToStream(e,t,n){xt(this,t,(r=>{this.i._addFloatToInputStream(e,r,n)}))}addIntToStream(e,t,n){xt(this,t,(r=>{this.i._addIntToInputStream(e,r,n)}))}addStringToStream(e,t,n){xt(this,t,(r=>{xt(this,e,(i=>{this.i._addStringToInputStream(i,r,n)}))}))}addStringRecordToStream(e,t,n){xt(this,t,(r=>{zte(this,Object.keys(e),(i=>{zte(this,Object.values(e),(o=>{this.i._addFlatHashMapToInputStream(i,o,Object.keys(e).length,r,n)}))}))}))}addProtoToStream(e,t,n,r){xt(this,n,(i=>{xt(this,t,(o=>{const s=this.i._malloc(e.length);this.i.HEAPU8.set(e,s),this.i._addProtoToInputStream(s,e.length,o,i,r),this.i._free(s)}))}))}addEmptyPacketToStream(e,t){xt(this,e,(n=>{this.i._addEmptyPacketToInputStream(n,t)}))}addBoolVectorToStream(e,t,n){xt(this,t,(r=>{const i=this.i._allocateBoolVector(e.length);if(!i)throw Error("Unable to allocate new bool vector on heap.");for(const o of e)this.i._addBoolVectorEntry(i,o);this.i._addBoolVectorToInputStream(i,r,n)}))}addDoubleVectorToStream(e,t,n){xt(this,t,(r=>{const i=this.i._allocateDoubleVector(e.length);if(!i)throw Error("Unable to allocate new double vector on heap.");for(const o of e)this.i._addDoubleVectorEntry(i,o);this.i._addDoubleVectorToInputStream(i,r,n)}))}addFloatVectorToStream(e,t,n){xt(this,t,(r=>{const i=this.i._allocateFloatVector(e.length);if(!i)throw Error("Unable to allocate new float vector on heap.");for(const o of e)this.i._addFloatVectorEntry(i,o);this.i._addFloatVectorToInputStream(i,r,n)}))}addIntVectorToStream(e,t,n){xt(this,t,(r=>{const i=this.i._allocateIntVector(e.length);if(!i)throw Error("Unable to allocate new int vector on heap.");for(const o of e)this.i._addIntVectorEntry(i,o);this.i._addIntVectorToInputStream(i,r,n)}))}addStringVectorToStream(e,t,n){xt(this,t,(r=>{const i=this.i._allocateStringVector(e.length);if(!i)throw Error("Unable to allocate new string vector on heap.");for(const o of e)xt(this,o,(s=>{this.i._addStringVectorEntry(i,s)}));this.i._addStringVectorToInputStream(i,r,n)}))}addBoolToInputSidePacket(e,t){xt(this,t,(n=>{this.i._addBoolToInputSidePacket(e,n)}))}addDoubleToInputSidePacket(e,t){xt(this,t,(n=>{this.i._addDoubleToInputSidePacket(e,n)}))}addFloatToInputSidePacket(e,t){xt(this,t,(n=>{this.i._addFloatToInputSidePacket(e,n)}))}addIntToInputSidePacket(e,t){xt(this,t,(n=>{this.i._addIntToInputSidePacket(e,n)}))}addStringToInputSidePacket(e,t){xt(this,t,(n=>{xt(this,e,(r=>{this.i._addStringToInputSidePacket(r,n)}))}))}addProtoToInputSidePacket(e,t,n){xt(this,n,(r=>{xt(this,t,(i=>{const o=this.i._malloc(e.length);this.i.HEAPU8.set(e,o),this.i._addProtoToInputSidePacket(o,e.length,i,r),this.i._free(o)}))}))}addBoolVectorToInputSidePacket(e,t){xt(this,t,(n=>{const r=this.i._allocateBoolVector(e.length);if(!r)throw Error("Unable to allocate new bool vector on heap.");for(const i of e)this.i._addBoolVectorEntry(r,i);this.i._addBoolVectorToInputSidePacket(r,n)}))}addDoubleVectorToInputSidePacket(e,t){xt(this,t,(n=>{const r=this.i._allocateDoubleVector(e.length);if(!r)throw Error("Unable to allocate new double vector on heap.");for(const i of e)this.i._addDoubleVectorEntry(r,i);this.i._addDoubleVectorToInputSidePacket(r,n)}))}addFloatVectorToInputSidePacket(e,t){xt(this,t,(n=>{const r=this.i._allocateFloatVector(e.length);if(!r)throw Error("Unable to allocate new float vector on heap.");for(const i of e)this.i._addFloatVectorEntry(r,i);this.i._addFloatVectorToInputSidePacket(r,n)}))}addIntVectorToInputSidePacket(e,t){xt(this,t,(n=>{const r=this.i._allocateIntVector(e.length);if(!r)throw Error("Unable to allocate new int vector on heap.");for(const i of e)this.i._addIntVectorEntry(r,i);this.i._addIntVectorToInputSidePacket(r,n)}))}addStringVectorToInputSidePacket(e,t){xt(this,t,(n=>{const r=this.i._allocateStringVector(e.length);if(!r)throw Error("Unable to allocate new string vector on heap.");for(const i of e)xt(this,i,(o=>{this.i._addStringVectorEntry(r,o)}));this.i._addStringVectorToInputSidePacket(r,n)}))}attachBoolListener(e,t){Zd(this,e,t),xt(this,e,(n=>{this.i._attachBoolListener(n)}))}attachBoolVectorListener(e,t){Jm(this,e,t),xt(this,e,(n=>{this.i._attachBoolVectorListener(n)}))}attachIntListener(e,t){Zd(this,e,t),xt(this,e,(n=>{this.i._attachIntListener(n)}))}attachIntVectorListener(e,t){Jm(this,e,t),xt(this,e,(n=>{this.i._attachIntVectorListener(n)}))}attachDoubleListener(e,t){Zd(this,e,t),xt(this,e,(n=>{this.i._attachDoubleListener(n)}))}attachDoubleVectorListener(e,t){Jm(this,e,t),xt(this,e,(n=>{this.i._attachDoubleVectorListener(n)}))}attachFloatListener(e,t){Zd(this,e,t),xt(this,e,(n=>{this.i._attachFloatListener(n)}))}attachFloatVectorListener(e,t){Jm(this,e,t),xt(this,e,(n=>{this.i._attachFloatVectorListener(n)}))}attachStringListener(e,t){Zd(this,e,t),xt(this,e,(n=>{this.i._attachStringListener(n)}))}attachStringVectorListener(e,t){Jm(this,e,t),xt(this,e,(n=>{this.i._attachStringVectorListener(n)}))}attachProtoListener(e,t,n){Zd(this,e,t),xt(this,e,(r=>{this.i._attachProtoListener(r,n||!1)}))}attachProtoVectorListener(e,t,n){Jm(this,e,t),xt(this,e,(r=>{this.i._attachProtoVectorListener(r,n||!1)}))}attachAudioListener(e,t,n){this.i._attachAudioListener||console.warn('Attempting to use attachAudioListener without support for output audio. Is build dep ":gl_graph_runner_audio_out" missing?'),Zd(this,e,((r,i)=>{r=new Float32Array(r.buffer,r.byteOffset,r.length/4),t(r,i)}
vendor: 4,098 bytes, line 1566
1566)),xt(this,e,(r=>{this.i._attachAudioListener(r,n||!1)}))}finishProcessing(){this.i._waitUntilIdle()}closeGraph(){this.i._closeGraph(),this.i.simpleListeners=void 0,this.i.emptyPacketListeners=void 0}},class extends Xte{get fa(){return this.i}va(e,t,n){xt(this,t,(r=>{const[i,o]=Hte(this,e,r);this.fa._addBoundTextureAsImageToStream(r,i,o,n)}))}ba(e,t){Zd(this,e,t),xt(this,e,(n=>{this.fa._attachImageListener(n)}))}ca(e,t){Jm(this,e,t),xt(this,e,(n=>{this.fa._attachImageVectorListener(n)}))}}));var Xte,pu=class extends odt{};async function Mn(e,t,n){return(async function(r,i,o,s){return rdt(r,i,o,s)})(e,n.canvas??(typeof OffscreenCanvas>"u"||ESe()?document.createElement("canvas"):void 0),t,n)}function ISe(e,t,n,r){if(e.J){const o=new zwe;if(n!=null&&n.regionOfInterest){if(!e.U)throw Error("This task doesn't support region-of-interest.");var i=n.regionOfInterest;if(i.left>=i.right||i.top>=i.bottom)throw Error("Expected RectF with left < right and top < bottom.");if(0>i.left||0>i.top||1<i.right||1<i.bottom)throw Error("Expected RectF values to be in [0,1].");Wt(o,1,(i.left+i.right)/2),Wt(o,2,(i.top+i.bottom)/2),Wt(o,4,i.right-i.left),Wt(o,3,i.bottom-i.top)}else Wt(o,1,.5),Wt(o,2,.5),Wt(o,4,1),Wt(o,3,1);if(n!=null&&n.rotationDegrees){if((n==null?void 0:n.rotationDegrees)%90!=0)throw Error("Expected rotation to be a multiple of 90°.");if(Wt(o,5,-Math.PI*n.rotationDegrees/180),(n==null?void 0:n.rotationDegrees)%180!=0){const[s,a]=t.videoWidth!==void 0?[t.videoWidth,t.videoHeight]:t.naturalWidth!==void 0?[t.naturalWidth,t.naturalHeight]:[t.width,t.height];n=rs(o,3)*a/s,i=rs(o,4)*s/a,Wt(o,4,n),Wt(o,3,i)}}e.g.addProtoToStream(o.g(),"mediapipe.NormalizedRect",e.J,r)}e.g.va(t,e.T,r??performance.now()),e.finishProcessing()}function mu(e,t,n){var r;if((r=e.baseOptions)!=null&&r.g())throw Error("Task is not initialized with image mode. 'runningMode' must be set to 'IMAGE'.");ISe(e,t,n,e.I+1)}function Th(e,t,n,r){var i;if(!((i=e.baseOptions)!=null&&i.g()))throw Error("Task is not initialized with video mode. 'runningMode' must be set to 'VIDEO'.");ISe(e,t,n,r)}function TC(e,t,n,r){var i=t.data;const o=t.width,s=o*(t=t.height);if((i instanceof Uint8Array||i instanceof Float32Array)&&i.length!==s)throw Error("Unsupported channel count: "+i.length/s);return e=new Po([i],n,!1,e.g.i.canvas,e.M,o,t),r?e.clone():e}var hc=class extends Q7{constructor(e,t,n,r){super(e),this.g=e,this.T=t,this.J=n,this.U=r,this.M=new uV}l(e,t=!0){if("runningMode"in e&&CC(this.baseOptions,2,!!e.runningMode&&e.runningMode!=="IMAGE"),e.canvas!==void 0&&this.g.i.canvas!==e.canvas)throw Error("You must create a new task to reset the canvas.");return super.l(e,t)}close(){this.M.close(),super.close()}};hc.prototype.close=hc.prototype.close;var wc=class extends hc{constructor(e,t){super(new pu(e,t),"image_in","norm_rect_in",!1),this.j={detections:[]},Bt(e=this.h=new eV,0,1,t=new Ii),Wt(this.h,2,.5),Wt(this.h,3,.3)}get baseOptions(){return Fn(this.h,Ii,1)}set baseOptions(e){Bt(this.h,0,1,e)}o(e){return"minDetectionConfidence"in e&&Wt(this.h,2,e.minDetectionConfidence??.5),"minSuppressionThreshold"in e&&Wt(this.h,3,e.minSuppressionThreshold??.3),this.l(e)}G(e,t){return this.j={detections:[]},mu(this,e,t),this.j}H(e,t,n){return this.j={detections:[]},Th(this,e,n,t),this.j}m(){var e=new Fa;si(e,"image_in"),si(e,"norm_rect_in"),ii(e,"detections");const t=new nl;du(t,Uut,this.h);const n=new ia;dl(n,"mediapipe.tasks.vision.face_detector.FaceDetectorGraph"),Gr(n,"IMAGE:image_in"),Gr(n,"NORM_RECT:norm_rect_in"),Ar(n,"DETECTIONS:detections"),n.o(t),fl(e,n),this.g.attachProtoVectorListener("detections",((r,i)=>{for(const o of r)r=Fwe(o),this.j.detections.push(SSe(r));Mt(this,i)})),this.g.attachEmptyPacketListener("detections",(r=>{Mt(this,r)})),e=e.g(),this.setGraph(new Uint8Array(e),!0)}};wc.prototype.detectForVideo=wc.prototype.H,wc.prototype.detect=wc.prototype.G,wc.prototype.setOptions=wc.prototype.o,wc.createFromModelPath=async function(e,t){return Mn(wc,e,{baseOptions:{modelAssetPath:t}})},wc.createFromModelBuffer=function(e,t){return Mn(wc,e,{baseOptions:{modelAssetBuffer:t}})}
1566,wc.createFromOptions=function(e,t){return Mn(wc,e,t)};var RSe=hu([61,146],[146,91],[91,181],[181,84],[84,17],[17,314],[314,405],[405,321],[321,375],[375,291],[61,185],[185,40],[40,39],[39,37],[37,0],[0,267],[267,269],[269,270],[270,409],[409,291],[78,95],[95,88],[88,178],[178,87],[87,14],[14,317],[317,402],[402,318],[318,324],[324,308],[78,191],[191,80],[80,81],[81,82],[82,13],[13,312],[312,311],[311,310],[310,415],[415,308]),PSe=hu([263,249],[249,390],[390,373],[373,374],[374,380],[380,381],[381,382],[382,362],[263,466],[466,388],[388,387],[387,386],[386,385],[385,384],[384,398],[398,362]),OSe=hu([276,283],[283,282],[282,295],[295,285],[300,293],[293,334],[334,296],[296,336]),sdt=hu([474,475],[475,476],[476,477],[477,474]),NSe=hu([33,7],[7,163],[163,144],[144,145],[145,153],[153,154],[154,155],[155,133],[33,246],[246,161],[161,160],[160,159],[159,158],[158,157],[157,173],[173,133]),MSe=hu([46,53],[53,52],[52,65],[65,55],[70,63],[63,105],[105,66],[66,107]),adt=hu([469,470],[470,471],[471,472],[472,469]),DSe=hu([10,338],[338,297],[297,332],[332,284],[284,251],[251,389],[389,356],[356,454],[454,323],[323,361],[361,288],[288,397],[397,365],[365,379],[379,378],[378,400],[400,377],[377,152],[152,148],[148,176],[176,149],[149,150],[150,136],[136,172],[172,58],[58,132],[132,93],[93,234],[234,127],[127,162],[162,21],[21,54],[54,103],[103,67],[67,109],[109,10]),cdt=[...RSe,...PSe,...OSe,...NSe,...MSe,...DSe],ldt=hu(
vendor: 8,528 bytes, line 1566
1566[127,34],[34,139],[139,127],[11,0],[0,37],[37,11],[232,231],[231,120],[120,232],[72,37],[37,39],[39,72],[128,121],[121,47],[47,128],[232,121],[121,128],[128,232],[104,69],[69,67],[67,104],[175,171],[171,148],[148,175],[118,50],[50,101],[101,118],[73,39],[39,40],[40,73],[9,151],[151,108],[108,9],[48,115],[115,131],[131,48],[194,204],[204,211],[211,194],[74,40],[40,185],[185,74],[80,42],[42,183],[183,80],[40,92],[92,186],[186,40],[230,229],[229,118],[118,230],[202,212],[212,214],[214,202],[83,18],[18,17],[17,83],[76,61],[61,146],[146,76],[160,29],[29,30],[30,160],[56,157],[157,173],[173,56],[106,204],[204,194],[194,106],[135,214],[214,192],[192,135],[203,165],[165,98],[98,203],[21,71],[71,68],[68,21],[51,45],[45,4],[4,51],[144,24],[24,23],[23,144],[77,146],[146,91],[91,77],[205,50],[50,187],[187,205],[201,200],[200,18],[18,201],[91,106],[106,182],[182,91],[90,91],[91,181],[181,90],[85,84],[84,17],[17,85],[206,203],[203,36],[36,206],[148,171],[171,140],[140,148],[92,40],[40,39],[39,92],[193,189],[189,244],[244,193],[159,158],[158,28],[28,159],[247,246],[246,161],[161,247],[236,3],[3,196],[196,236],[54,68],[68,104],[104,54],[193,168],[168,8],[8,193],[117,228],[228,31],[31,117],[189,193],[193,55],[55,189],[98,97],[97,99],[99,98],[126,47],[47,100],[100,126],[166,79],[79,218],[218,166],[155,154],[154,26],[26,155],[209,49],[49,131],[131,209],[135,136],[136,150],[150,135],[47,126],[126,217],[217,47],[223,52],[52,53],[53,223],[45,51],[51,134],[134,45],[211,170],[170,140],[140,211],[67,69],[69,108],[108,67],[43,106],[106,91],[91,43],[230,119],[119,120],[120,230],[226,130],[130,247],[247,226],[63,53],[53,52],[52,63],[238,20],[20,242],[242,238],[46,70],[70,156],[156,46],[78,62],[62,96],[96,78],[46,53],[53,63],[63,46],[143,34],[34,227],[227,143],[123,117],[117,111],[111,123],[44,125],[125,19],[19,44],[236,134],[134,51],[51,236],[216,206],[206,205],[205,216],[154,153],[153,22],[22,154],[39,37],[37,167],[167,39],[200,201],[201,208],[208,200],[36,142],[142,100],[100,36],[57,212],[212,202],[202,57],[20,60],[60,99],[99,20],[28,158],[158,157],[157,28],[35,226],[226,113],[113,35],[160,159],[159,27],[27,160],[204,202],[202,210],[210,204],[113,225],[225,46],[46,113],[43,202],[202,204],[204,43],[62,76],[76,77],[77,62],[137,123],[123,116],[116,137],[41,38],[38,72],[72,41],[203,129],[129,142],[142,203],[64,98],[98,240],[240,64],[49,102],[102,64],[64,49],[41,73],[73,74],[74,41],[212,216],[216,207],[207,212],[42,74],[74,184],[184,42],[169,170],[170,211],[211,169],[170,149],[149,176],[176,170],[105,66],[66,69],[69,105],[122,6],[6,168],[168,122],[123,147],[147,187],[187,123],[96,77],[77,90],[90,96],[65,55],[55,107],[107,65],[89,90],[90,180],[180,89],[101,100],[100,120],[120,101],[63,105],[105,104],[104,63],[93,137],[137,227],[227,93],[15,86],[86,85],[85,15],[129,102],[102,49],[49,129],[14,87],[87,86],[86,14],[55,8],[8,9],[9,55],[100,47],[47,121],[121,100],[145,23],[23,22],[22,145],[88,89],[89,179],[179,88],[6,122],[122,196],[196,6],[88,95],[95,96],[96,88],[138,172],[172,136],[136,138],[215,58],[58,172],[172,215],[115,48],[48,219],[219,115],[42,80],[80,81],[81,42],[195,3],[3,51],[51,195],[43,146],[146,61],[61,43],[171,175],[175,199],[199,171],[81,82],[82,38],[38,81],[53,46],[46,225],[225,53],[144,163],[163,110],[110,144],[52,65],[65,66],[66,52],[229,228],[228,117],[117,229],[34,127],[127,234],[234,34],[107,108],[108,69],[69,107],[109,108],[108,151],[151,109],[48,64],[64,235],[235,48],[62,78],[78,191],[191,62],[129,209],[209,126],[126,129],[111,35],[35,143],[143,111],[117,123],[123,50],[50,117],[222,65],[65,52],[52,222],[19,125],[125,141],[141,19],[221,55],[55,65],[65,221],[3,195],[195,197],[197,3],[25,7],[7,33],[33,25],[220,237],[237,44],[44,220],[70,71],[71,139],[139,70],[122,193],[193,245],[245,122],[247,130],[130,33],[33,247],[71,21],[21,162],[162,71],[170,169],[169,150],[150,170],[188,174],[174,196],[196,188],[216,186],[186,92],[92,216],[2,97],[97,167],[167,2],[141,125],[125,241],[241,141],[164,167],[167,37],[37,164],[72,38],[38,12],[12,72],[38,82],[82,13],[13,38],[63,68],[68,71],[71,63],[226,35],[35,111],[111,226],[101,50],[50,205],[205,101],[206,92],[92,165],[165,206],[209,198],[198,217],[217,209],[165,167],[167,97],[97,165],[220,115],[115,218],[218,220],[133,112],[112,243],[243,133],[239,238],[238,241],[241,239],[214,135],[135,169],[169,214],[190,173],[173,133],[133,190],[171,208],[208,32],[32,171],[125,44],[44,237],[237,125],[86,87],[87,178],[178,86],[85,86],[86,179],[179,85],[84,85],[85,180],[180,84],[83,84],[84,181],[181,83],[201,83],[83,182],[182,201],[137,93],[93,132],[132,137],[76,62],[62,183],[183,76],[61,76],[76,184],[184,61],[57,61],[61,185],[185,57],[212,57],[57,186],[186,212],[214,207],[207,187],[187,214],[34,143],[143,156],[156,34],[79,239],[239,237],[237,79],[123,137],[137,177],[177,123],[44,1],[1,4],[4,44],[201,194],[194,32],[32,201],[64,102],[102,129],[129,64],[213,215],[215,138],[138,213],[59,166],[166,219],[219,59],[242,99],[99,97],[97,242],[2,94],[94,141],[141,2],[75,59],[59,235],[235,75],[24,110],[110,228],[228,24],[25,130],[130,226],[226,25],[23,24],[24,229],[229,23],[22,23],[23,230],[230,22],[26,22],[22,231],[231,26],[112,26],[26,232],[232,112],[189,190],[190,243],[243,189],[221,56],[56,190],[190,221],[28,56],[56,221],[221,28],[27,28],[28,222],[222,27],[29,27],[27,223],[223,29],[30,29],[29,224],[224,30],[247,30],[30,225],[225,247],[238,79],[79,20],[20,238],[166,59],[59,75],[75,166],[60,75],[75,240],[240,60],[147,177],[177,215],[215,147],[20,79],[79,166],[166,20],[187,147],[147,213],[213,187],[112,233],[233,244],[244,112],[233,128],[128,245],[245,233],[128,114],[114,188],[188,128],[114,217],[217,174],[174,114],[131,115],[115,220],[220,131],[217,198],[198,236],[236,217],[198,131],[131,134],[134,198],[177,132],[132,58],[58,177],[143,35],[35,124],[124,143],[110,163],[163,7],[7,110],[228,110],[110,25],[25,228],[356,389],[389,368],[368,356],[11,302],[302,267],[267,11],[452,350],[350,349],[349,452],[302,303],[303,269],[269,302],[357,343],[343,277],[277,357],[452,453],[453,357],[357,452],[333,332],[332,297],[297,333],[175,152],[152,377],[377,175],[347,348],[348,330],[330,347],[303,304],[304,270],[270,303],[9,336],[336,337],[337,9],[278,279],[279,360],[360,278],[418,262],[262,431],[431,418],[304,408],[408,409],[409,304],[310,415],[415,407],[407,310],[270,409],[409,410],[410,270],[450,348],[348,347],[347,450],[422,430],[430,434],[434,422],[313,314],[314,17],[17,313],[306,307],[307,375],[375,306],[387,388],[388,260],[260,387],[286,414],[414,398],[398,286],[335,406],[406,418],[418,335],[364,367],[367,416],[416,364],[423,358],[358,327],[327,423],[251,284],[284,298],[298,251],[281,5],[5,4],[4,281],[373,374],[374,253],[253,373],[307,320],[320,321],[321,307],[425,427],[427,411],[411,425],[421,313],[313,18],[18,421],[321,405],[405,406],[406,321],[320,404],[404,405],[405,320],[315,16],[16,17],[17,315],[426,425],[425,266],[266,426],[377,400],[400,369],[369,377],[322,391],[391,269],[269,322],[417,465],[465,464],[464,417],[386,257],[257,258],[258,386],[466,260],[260,388],[388,466],[456,399],[399,419],[419,456],[284,332],[332,333],[333,284],[417,285],[285,8],[8,417],[346,340],[340,261],[261,346],[413,441],[441,285],[285,413],[327,460],[460,328],[328,327],[355,371],[371,329],[329,355],[392,439],[439,438],[438,392],[382,341],[341,256],[256,382],[429,420],[420,360],[360,429],[364,394],[394,379],[379,364],[277,343],[343,437],[437,277],[443,444],[444,283],[283,443],[275,440],[440,363],[363,275],[431,262],[262,369],[369,431],[297,338],[338,337],[337,297],[273,375],[375,321],[321,273],[450,451],[451,349],[349,450],[446,342],[342,467],[467,446],[293,334],[334,282],[282,293],[458,461],[461,462],[462,458],[276,353],[353,383],[383,276],[308,324],[324,325],[325,308],[276,300],[300,293],[293,276],[372,345],[345,447],[447,372],[352,345],[345,340],[340,352],[274,1],[1,19],[19,274],[456,248],[248,281],[281,456],[436,427],[427,425],[425,436],[381,256],[256,252],[252,381],[269,391],[391,393],[393,269],[200,199],[199,428],[428,200],[266,330],[330,329],[329,266],[287,273],[273,422],[422,287],[250,462],[462,328],[328,250],[258,286],[286,384],[384,258],[265,353],[353,342],[342,265],[387,259],[259,257],[257,387],[424,431],[431,430],[430,424],[342,353],[353,276],[276,342],[273,335],[335,424],[424,273],[292,325],[325,307],[307,292],[366,447],[447,345],[345,366],[271,303],[303,302],[302,271],[423,266],[266,371],[371,423],[294,455],[455,460],[460,294],[279,278],[278,294],[294,279],[271,272],[272,304],[304,271],[432,434],[434,427],[427,432],[272,407],[407,408],[408,272],[394,430],[430,431],[431,394],[395,369],[369,400
vendor: 15,824 bytes, line 1566
1566],[400,395],[334,333],[333,299],[299,334],[351,417],[417,168],[168,351],[352,280],[280,411],[411,352],[325,319],[319,320],[320,325],[295,296],[296,336],[336,295],[319,403],[403,404],[404,319],[330,348],[348,349],[349,330],[293,298],[298,333],[333,293],[323,454],[454,447],[447,323],[15,16],[16,315],[315,15],[358,429],[429,279],[279,358],[14,15],[15,316],[316,14],[285,336],[336,9],[9,285],[329,349],[349,350],[350,329],[374,380],[380,252],[252,374],[318,402],[402,403],[403,318],[6,197],[197,419],[419,6],[318,319],[319,325],[325,318],[367,364],[364,365],[365,367],[435,367],[367,397],[397,435],[344,438],[438,439],[439,344],[272,271],[271,311],[311,272],[195,5],[5,281],[281,195],[273,287],[287,291],[291,273],[396,428],[428,199],[199,396],[311,271],[271,268],[268,311],[283,444],[444,445],[445,283],[373,254],[254,339],[339,373],[282,334],[334,296],[296,282],[449,347],[347,346],[346,449],[264,447],[447,454],[454,264],[336,296],[296,299],[299,336],[338,10],[10,151],[151,338],[278,439],[439,455],[455,278],[292,407],[407,415],[415,292],[358,371],[371,355],[355,358],[340,345],[345,372],[372,340],[346,347],[347,280],[280,346],[442,443],[443,282],[282,442],[19,94],[94,370],[370,19],[441,442],[442,295],[295,441],[248,419],[419,197],[197,248],[263,255],[255,359],[359,263],[440,275],[275,274],[274,440],[300,383],[383,368],[368,300],[351,412],[412,465],[465,351],[263,467],[467,466],[466,263],[301,368],[368,389],[389,301],[395,378],[378,379],[379,395],[412,351],[351,419],[419,412],[436,426],[426,322],[322,436],[2,164],[164,393],[393,2],[370,462],[462,461],[461,370],[164,0],[0,267],[267,164],[302,11],[11,12],[12,302],[268,12],[12,13],[13,268],[293,300],[300,301],[301,293],[446,261],[261,340],[340,446],[330,266],[266,425],[425,330],[426,423],[423,391],[391,426],[429,355],[355,437],[437,429],[391,327],[327,326],[326,391],[440,457],[457,438],[438,440],[341,382],[382,362],[362,341],[459,457],[457,461],[461,459],[434,430],[430,394],[394,434],[414,463],[463,362],[362,414],[396,369],[369,262],[262,396],[354,461],[461,457],[457,354],[316,403],[403,402],[402,316],[315,404],[404,403],[403,315],[314,405],[405,404],[404,314],[313,406],[406,405],[405,313],[421,418],[418,406],[406,421],[366,401],[401,361],[361,366],[306,408],[408,407],[407,306],[291,409],[409,408],[408,291],[287,410],[410,409],[409,287],[432,436],[436,410],[410,432],[434,416],[416,411],[411,434],[264,368],[368,383],[383,264],[309,438],[438,457],[457,309],[352,376],[376,401],[401,352],[274,275],[275,4],[4,274],[421,428],[428,262],[262,421],[294,327],[327,358],[358,294],[433,416],[416,367],[367,433],[289,455],[455,439],[439,289],[462,370],[370,326],[326,462],[2,326],[326,370],[370,2],[305,460],[460,455],[455,305],[254,449],[449,448],[448,254],[255,261],[261,446],[446,255],[253,450],[450,449],[449,253],[252,451],[451,450],[450,252],[256,452],[452,451],[451,256],[341,453],[453,452],[452,341],[413,464],[464,463],[463,413],[441,413],[413,414],[414,441],[258,442],[442,441],[441,258],[257,443],[443,442],[442,257],[259,444],[444,443],[443,259],[260,445],[445,444],[444,260],[467,342],[342,445],[445,467],[459,458],[458,250],[250,459],[289,392],[392,290],[290,289],[290,328],[328,460],[460,290],[376,433],[433,435],[435,376],[250,290],[290,392],[392,250],[411,416],[416,433],[433,411],[341,463],[463,464],[464,341],[453,464],[464,465],[465,453],[357,465],[465,412],[412,357],[343,412],[412,399],[399,343],[360,363],[363,440],[440,360],[437,399],[399,456],[456,437],[420,456],[456,363],[363,420],[401,435],[435,288],[288,401],[372,383],[383,353],[353,372],[339,255],[255,249],[249,339],[448,261],[261,255],[255,448],[133,243],[243,190],[190,133],[133,155],[155,112],[112,133],[33,246],[246,247],[247,33],[33,130],[130,25],[25,33],[398,384],[384,286],[286,398],[362,398],[398,414],[414,362],[362,463],[463,341],[341,362],[263,359],[359,467],[467,263],[263,249],[249,255],[255,263],[466,467],[467,260],[260,466],[75,60],[60,166],[166,75],[238,239],[239,79],[79,238],[162,127],[127,139],[139,162],[72,11],[11,37],[37,72],[121,232],[232,120],[120,121],[73,72],[72,39],[39,73],[114,128],[128,47],[47,114],[233,232],[232,128],[128,233],[103,104],[104,67],[67,103],[152,175],[175,148],[148,152],[119,118],[118,101],[101,119],[74,73],[73,40],[40,74],[107,9],[9,108],[108,107],[49,48],[48,131],[131,49],[32,194],[194,211],[211,32],[184,74],[74,185],[185,184],[191,80],[80,183],[183,191],[185,40],[40,186],[186,185],[119,230],[230,118],[118,119],[210,202],[202,214],[214,210],[84,83],[83,17],[17,84],[77,76],[76,146],[146,77],[161,160],[160,30],[30,161],[190,56],[56,173],[173,190],[182,106],[106,194],[194,182],[138,135],[135,192],[192,138],[129,203],[203,98],[98,129],[54,21],[21,68],[68,54],[5,51],[51,4],[4,5],[145,144],[144,23],[23,145],[90,77],[77,91],[91,90],[207,205],[205,187],[187,207],[83,201],[201,18],[18,83],[181,91],[91,182],[182,181],[180,90],[90,181],[181,180],[16,85],[85,17],[17,16],[205,206],[206,36],[36,205],[176,148],[148,140],[140,176],[165,92],[92,39],[39,165],[245,193],[193,244],[244,245],[27,159],[159,28],[28,27],[30,247],[247,161],[161,30],[174,236],[236,196],[196,174],[103,54],[54,104],[104,103],[55,193],[193,8],[8,55],[111,117],[117,31],[31,111],[221,189],[189,55],[55,221],[240,98],[98,99],[99,240],[142,126],[126,100],[100,142],[219,166],[166,218],[218,219],[112,155],[155,26],[26,112],[198,209],[209,131],[131,198],[169,135],[135,150],[150,169],[114,47],[47,217],[217,114],[224,223],[223,53],[53,224],[220,45],[45,134],[134,220],[32,211],[211,140],[140,32],[109,67],[67,108],[108,109],[146,43],[43,91],[91,146],[231,230],[230,120],[120,231],[113,226],[226,247],[247,113],[105,63],[63,52],[52,105],[241,238],[238,242],[242,241],[124,46],[46,156],[156,124],[95,78],[78,96],[96,95],[70,46],[46,63],[63,70],[116,143],[143,227],[227,116],[116,123],[123,111],[111,116],[1,44],[44,19],[19,1],[3,236],[236,51],[51,3],[207,216],[216,205],[205,207],[26,154],[154,22],[22,26],[165,39],[39,167],[167,165],[199,200],[200,208],[208,199],[101,36],[36,100],[100,101],[43,57],[57,202],[202,43],[242,20],[20,99],[99,242],[56,28],[28,157],[157,56],[124,35],[35,113],[113,124],[29,160],[160,27],[27,29],[211,204],[204,210],[210,211],[124,113],[113,46],[46,124],[106,43],[43,204],[204,106],[96,62],[62,77],[77,96],[227,137],[137,116],[116,227],[73,41],[41,72],[72,73],[36,203],[203,142],[142,36],[235,64],[64,240],[240,235],[48,49],[49,64],[64,48],[42,41],[41,74],[74,42],[214,212],[212,207],[207,214],[183,42],[42,184],[184,183],[210,169],[169,211],[211,210],[140,170],[170,176],[176,140],[104,105],[105,69],[69,104],[193,122],[122,168],[168,193],[50,123],[123,187],[187,50],[89,96],[96,90],[90,89],[66,65],[65,107],[107,66],[179,89],[89,180],[180,179],[119,101],[101,120],[120,119],[68,63],[63,104],[104,68],[234,93],[93,227],[227,234],[16,15],[15,85],[85,16],[209,129],[129,49],[49,209],[15,14],[14,86],[86,15],[107,55],[55,9],[9,107],[120,100],[100,121],[121,120],[153,145],[145,22],[22,153],[178,88],[88,179],[179,178],[197,6],[6,196],[196,197],[89,88],[88,96],[96,89],[135,138],[138,136],[136,135],[138,215],[215,172],[172,138],[218,115],[115,219],[219,218],[41,42],[42,81],[81,41],[5,195],[195,51],[51,5],[57,43],[43,61],[61,57],[208,171],[171,199],[199,208],[41,81],[81,38],[38,41],[224,53],[53,225],[225,224],[24,144],[144,110],[110,24],[105,52],[52,66],[66,105],[118,229],[229,117],[117,118],[227,34],[34,234],[234,227],[66,107],[107,69],[69,66],[10,109],[109,151],[151,10],[219,48],[48,235],[235,219],[183,62],[62,191],[191,183],[142,129],[129,126],[126,142],[116,111],[111,143],[143,116],[118,117],[117,50],[50,118],[223,222],[222,52],[52,223],[94,19],[19,141],[141,94],[222,221],[221,65],[65,222],[196,3],[3,197],[197,196],[45,220],[220,44],[44,45],[156,70],[70,139],[139,156],[188,122],[122,245],[245,188],[139,71],[71,162],[162,139],[149,170],[170,150],[150,149],[122,188],[188,196],[196,122],[206,216],[216,92],[92,206],[164,2],[2,167],[167,164],[242,141],[141,241],[241,242],[0,164],[164,37],[37,0],[11,72],[72,12],[12,11],[12,38],[38,13],[13,12],[70,63],[63,71],[71,70],[31,226],[226,111],[111,31],[36,101],[101,205],[205,36],[203,206],[206,165],[165,203],[126,209],[209,217],[217,126],[98,165],[165,97],[97,98],[237,220],[220,218],[218,237],[237,239],[239,241],[241,237],[210,214],[214,169],[169,210],[140,171],[171,32],[32,140],[241,125],[125,237],[237,241],[179,86],[86,178],[178,179],[180,85],[85,179],[179,180],[181,84],[84,180],[180,181],[182,83],[83,181],[181,182],[194,201],[201,182],[182,194],[177,137],[137,132],[132,177],[184,76],[76,183],[183,184],[185,61],[61,184],[184,185],[186,57],[57,185],[185,186],[216,212],[212,186],[186,216],[192,214],[214,187],[187,192],[139,34],[34,156],[156,139],[218,79],[79,237],[237,218],[147,123],[123,177],[177,147],[45,44],[44,4],[4,45],[208,201],[201,32],[32,208],[98,64],[64,129],[129,98],[192,213],[213,138],[138,192],[235,59],[59,219],[219,235],[141,242],[242,97],[97,141],[97,2],[2,141],[141,97],[240,75],[75,235],[235,240],[229,24],[24,228],[228,229],[31,25],[25,226],[226,31],[230,23],[23,229],[229,230],[231,22],[22,230],[230,231],[232,26],[26,231],[231,232],[233,112],[112,232],[232,233],[244,189],[189,243],[243,244],[189,221],[221,190],[190,189],[222,28],[28,221],[221,222],[223,27],[27,222],[222,223],[224,29],[29,223],[223,224],[225,30],[30,224],[224,225],[113,247],[247,225],[225,113],[99,60],[60,240],[240,99],[213,147],[147,215],[215,213],[60,20],[20,166],[166,60],[192,187],[187,213],[213,192],[243,112],[112,244],[244,243],[244,233],[233,245],[245,244],[245,128],[128,188],[188,245],[188,114],[114,174],[174,188],[134,131],[131,220],[220,134],[174,217],[217,236],[236,174],[236,198],[198,134],[134,236],[215,177],[177,58],[58,215],[156,143],[143,124],[124,156],[25,110],[110,7],[7,25],[31,228],[228,25],[25,31],[264,356],[356,368],[368,264],[0,11],[11,267],[267,0],[451,452],[452,349],[349,451],[267,302],[302,269],[269,267],[350,357],[357,277],[277,350],[350,452],[452,357],[357,350],[299,333],[333,297],[297,299],[396,175],[175,377],[377,396],[280,347],[347,330],[330,280],[269,303],[303,270],[270,269],[151,9],[9,337],[337,151],[344,278],[278,360],[360,344],[424,418],[418,431],[431,424],[270,304],[304,409],[409,270],[272,310],[310,407],[407,272],[322,270],[270,410],[410,322],[449,450],[450,347],[347,449],[432,422],[422,434],[434,432],[18,313],[313,17],[17,18],[291,306],[306,375],[375,291],[259,387],[387,260],[260,259],[424,335],[335,418],[418,424],[434,364],[364,416],[416,434],[391,423],[423,327],[327,391],[301,251],[251,298],[298,301],[275,281],[281,4],[4,275],[254,373],[373,253],[253,254],[375,307],[307,321],[321,375],[280,425],[425,411],[411,280],[200,421],[421,18],[18,200],[335,321],[321,406],[406,335],[321,320],[320,405],[405,321],[314,315],[315,17],[17,314],[423,426],[426,266],[266,423],[396,377],[377,369],[369,396],[270,322],[322,269],[269,270],[413,417],[417,464],[464,413],[385,386],[386,258],[258,385],[248,456],[456,419],[419,248],[298,284],[284,333],[333,298],[168,417],[417,8],[8,168],[448,346],[346,261],[261,448],[417,413],[413,285],[285,417],[326,327],[327,328],[328,326],[277,355],[355,329],[329,277],[309,392],[392,438],[438,309],[381,382],[382,256],[256,381],[279,429],[429,360],[360,279],[365,364],[364,379],[379,365],[355,277],[277,437],[437,355],[282,443],[443,283],[283,282],[281,275],[275,363],[363,281],[395,431],[431,369],[369,395],[299,297],[297,337],[337,299],[335,273],[273,321],[321,335],[348,450],[450,349],[349,348],[359,446],[446,467],[467,359],[283,293],[293,282],[282,283],[250,458],[458,462],[462,250],[300,276],[276,383],[383,300],[292,308],[308,325],[325,292],[283,276],[276,293],[293,283],[264,372],[372,447],[447,264],[346,352],[352,340],[340,346],[354,274],[274,19],[19,354],[363,456],[456,281],[281,363],[426,436],[436,425],[425,426],[380,381],[381,252],[252,380],[267,269],[269,393],[393,267],[421,200],[200,428],[428,421],[371,266],[266,329],[329,371],[432,287],[287,422],[422,432],[290,250],[250,328],[328,290],[385,258],[258,384],[384,385],[446,265],[265,342],[342,446],[386,387],[387,257],[257,386],[422,424],[424,430],[430,422],[445,342],[342,276],[276,445],[422,273],[273,424],[424,422],[306,292],[292,307],[307,306],[352,366],[366,345],[345,352],[268,271],[271,302],[302,268],[358,423],[423,371],[371,358],[327,294],[294,460],[460,327],[331,279],[279,294],[294,331],[303,271],[271,304],[304,303],[436,432],[432,427],[427,436],[304,272],[272,408],[408,304],[395,394],[394,431],[431,395],[378,395],[395,400],[400,378],[296,334],[334,299],[299,296],[6,351],[351,168],[168,6],[376,352],[352,411],[411,376],[307,325],[325,320],[320,307],[285,295],[295,336],[336,285],[320,319],[319,404],[404,320],[329,330],[330,349],[349,329],[334,293],[293,333],[333,334],[366,323],[323,447],[447,366],[316,15],[15,315],[315,316],[331,358],[358,279],[279,331],[317,14],[14,316],[316,317],[8,285],[285,9],[9,8],[277,329],[329,350],[350,277],[253,374],[374,252],[252,253],[319,318],[318,403],[403,319],[351,6],[6,419],[419,351],[324,318],[318,325],[325,324],[397,367],[367,365],[365,397],[288,435],[435,397],[397,288],[278,344],[344,439],[439,278],[310,272],[272,311],[311,310],[248,195],[195,281],[281,248],[375,273],[273,291],[291,375],[175,396],[396,199],[199,175],[312,311],[311,268],[268,312],[276,283],[283,445],[445,276],[390,373],[373,339],[339,390],[295,282],[282,296],[296,295],[448,449],[449,346],[346,448],[356,264],[264,454],[454,356],[337,336],[336,299],[299,337],[337,338],[338,151],[151,337],[294,278],[278,455],[455,294],[308,292],[292,415],[415,308],[429,358],[358,355],[355,429],[265,340],[340,372],[372,265],[352,346],[346,280],[280,352],[295,442],[442,282],[282,295],[354,19],[19,370],[370,354],[285,441],[441,295],[295,285],[195,248],[248,197],[197,195],[457,440],[440,274],[274,457],[301,300],[300,368],[368,301],[417,351],[351,465],[465,417],[251,301],[301,389],[389,251],[394,395],[395,379],[379,394],[399,412],[412,419],[419,399],[410,436],[436,322],[322,410],[326,2],[2,393],[393,326],[354,370],[370,461],[461,354],[393,164],[164,267],[267,393],[268,302],[302,12],[12,268],[312,268],[268,13],[13,312],[298,293],[293,301],[301,298],[265,446],[446,340],[340,265],[280,330],[330,425],[425,280],[322,426],[426,391],[391,322],[420,429],[429,437],[437,420],[393,391],[391,326],[326,393],[344,440],[440,438],[438,344],[458,459],[459,461],[461,458],[364,434],[434,394],[394,364],[428,396],[396,262],[262,428],[274,354],[354,457],[457,274],[317,316],[316,402],[402,317],[316,315],[315,403],[403,316],[315,314],[314,404],[404,315],[314,313],[313,405],[405,314],[313,421],[421,406],[406,313],[323,366],[366,361],[361,323],[292,306],[306,407],[407,292],[306,291],[291,408],[408,306],[291,287],[287,409],[409,291],[287,432],[432,410],[410,287],[427,434],[434,411],[411,427],[372,264],[264,383],[383,372],[459,309],[309,457],[457,459],[366,352],[352,401],[401,366],[1,274],[274,4],[4,1],[418,421],[421,262],[262,418],[331,294],[294,358],[358,331],[435,433],[433,367],[367,435],[392,289],[289,439],[439,392],[328,462],[462,326],[326,328],[94,2],[2,370],[370,94],[289,305],[305,455],[455,289],[339,254],[254,448],[448,339],[359,255],[255,446],[446,359],[254,253],[253,449],[449,254],[253,252],[252,450],[450,253],[252,256],[256,451],[451,252],[256,341],[341,452],[452,256],[414,413],[413,463],[463,414],[286,441],[441,414],[414,286],[286,258],[258,441],[441,286],[258,257],[257,442],[442,258],[257,259],[259,443],[443,257],[259,260],[260,444],[444,259],[260,467],[467,445],[445,260],[309,459],[459,250],[250,309],[305,289],[289,290],[290,305],[305,290],[290,460],[460,305],[401,376],[376,435],[435,401],[309,250],[250,392],[392,309],[376,411],[411,433],[433,376],[453,341],[341,464],[464,453],[357,453],[453,465],[465,357],[343,357],[357,412],[412,343],[437,343],[343,399],[399,437],[344,360],[360,440],[440,344],[420,437],[437,456],[456,420],[360,420],[420,363],[363,360],[361,401],[401,288],[288,361],[265,372],[372,353],[353,265],[390,339],[339,249],[249,390],[339,448],[448,255],[255,339]);function 
vendor: 1,642 bytes, line 1566
1566Jte(e){e.j={faceLandmarks:[],faceBlendshapes:[],facialTransformationMatrixes:[]}}var Si=class extends hc{constructor(e,t){super(new pu(e,t),"image_in","norm_rect",!1),this.j={faceLandmarks:[],faceBlendshapes:[],facialTransformationMatrixes:[]},this.outputFacialTransformationMatrixes=this.outputFaceBlendshapes=!1,Bt(e=this.h=new eSe,0,1,t=new Ii),this.v=new $ut,Bt(this.h,0,3,this.v),this.u=new eV,Bt(this.h,0,2,this.u),Cd(this.u,4,1),Wt(this.u,2,.5),Wt(this.v,2,.5),Wt(this.h,4,.5)}get baseOptions(){return Fn(this.h,Ii,1)}set baseOptions(e){Bt(this.h,0,1,e)}o(e){return"numFaces"in e&&Cd(this.u,4,e.numFaces??1),"minFaceDetectionConfidence"in e&&Wt(this.u,2,e.minFaceDetectionConfidence??.5),"minTrackingConfidence"in e&&Wt(this.h,4,e.minTrackingConfidence??.5),"minFacePresenceConfidence"in e&&Wt(this.v,2,e.minFacePresenceConfidence??.5),"outputFaceBlendshapes"in e&&(this.outputFaceBlendshapes=!!e.outputFaceBlendshapes),"outputFacialTransformationMatrixes"in e&&(this.outputFacialTransformationMatrixes=!!e.outputFacialTransformationMatrixes),this.l(e)}G(e,t){return Jte(this),mu(this,e,t),this.j}H(e,t,n){return Jte(this),Th(this,e,n,t),this.j}m(){var e=new Fa;si(e,"image_in"),si(e,"norm_rect"),ii(e,"face_landmarks");const t=new nl;du(t,Hut,this.h);const n=new ia;dl(n,"mediapipe.tasks.vision.face_landmarker.FaceLandmarkerGraph"),Gr(n,"IMAGE:image_in"),Gr(n,"NORM_RECT:norm_rect"),Ar(n,"NORM_LANDMARKS:face_landmarks"),n.o(t),fl(e,n),this.g.attachProtoVectorListener("face_landmarks",((r,i)=>{for(const o of r)r=bO(o),this.j.faceLandmarks.push(iV(r));Mt(this,i)})),this.g.attachEmptyPacketListener("face_landmarks",(r=>{Mt(this,r)}
vendor: 24,296 bytes, line 1566
1566)),this.outputFaceBlendshapes&&(ii(e,"blendshapes"),Ar(n,"BLENDSHAPES:blendshapes"),this.g.attachProtoVectorListener("blendshapes",((r,i)=>{if(this.outputFaceBlendshapes)for(const o of r)r=Jz(o),this.j.faceBlendshapes.push(wSe(r.g()??[]));Mt(this,i)})),this.g.attachEmptyPacketListener("blendshapes",(r=>{Mt(this,r)}))),this.outputFacialTransformationMatrixes&&(ii(e,"face_geometry"),Ar(n,"FACE_GEOMETRY:face_geometry"),this.g.attachProtoVectorListener("face_geometry",((r,i)=>{if(this.outputFacialTransformationMatrixes)for(const o of r)(r=Fn(But(o),Hwe,2))&&this.j.facialTransformationMatrixes.push({rows:_d(Bc(r,1))??0,columns:_d(Bc(r,2))??0,data:ly(r,3,jm)??[]});Mt(this,i)})),this.g.attachEmptyPacketListener("face_geometry",(r=>{Mt(this,r)}))),e=e.g(),this.setGraph(new Uint8Array(e),!0)}};Si.prototype.detectForVideo=Si.prototype.H,Si.prototype.detect=Si.prototype.G,Si.prototype.setOptions=Si.prototype.o,Si.createFromModelPath=function(e,t){return Mn(Si,e,{baseOptions:{modelAssetPath:t}})},Si.createFromModelBuffer=function(e,t){return Mn(Si,e,{baseOptions:{modelAssetBuffer:t}})},Si.createFromOptions=function(e,t){return Mn(Si,e,t)},Si.FACE_LANDMARKS_LIPS=RSe,Si.FACE_LANDMARKS_LEFT_EYE=PSe,Si.FACE_LANDMARKS_LEFT_EYEBROW=OSe,Si.FACE_LANDMARKS_LEFT_IRIS=sdt,Si.FACE_LANDMARKS_RIGHT_EYE=NSe,Si.FACE_LANDMARKS_RIGHT_EYEBROW=MSe,Si.FACE_LANDMARKS_RIGHT_IRIS=adt,Si.FACE_LANDMARKS_FACE_OVAL=DSe,Si.FACE_LANDMARKS_CONTOURS=cdt,Si.FACE_LANDMARKS_TESSELATION=ldt;var Eu=class extends hc{constructor(e,t){super(new pu(e,t),"image_in","norm_rect",!0),Bt(e=this.j=new nSe,0,1,t=new Ii)}get baseOptions(){return Fn(this.j,Ii,1)}set baseOptions(e){Bt(this.j,0,1,e)}o(e){return super.l(e)}Ua(e,t,n){const r=typeof t!="function"?t:{};if(this.h=typeof t=="function"?t:n,mu(this,e,r??{}),!this.h)return this.u}m(){var e=new Fa;si(e,"image_in"),si(e,"norm_rect"),ii(e,"stylized_image");const t=new nl;du(t,zut,this.j);const n=new ia;dl(n,"mediapipe.tasks.vision.face_stylizer.FaceStylizerGraph"),Gr(n,"IMAGE:image_in"),Gr(n,"NORM_RECT:norm_rect"),Ar(n,"STYLIZED_IMAGE:stylized_image"),n.o(t),fl(e,n),this.g.ba("stylized_image",((r,i)=>{var o=!this.h,s=r.data,a=r.width;const c=a*(r=r.height);if(s instanceof Uint8Array)if(s.length===3*c){const l=new Uint8ClampedArray(4*c);for(let u=0;u<c;++u)l[4*u]=s[3*u],l[4*u+1]=s[3*u+1],l[4*u+2]=s[3*u+2],l[4*u+3]=255;s=new ImageData(l,a,r)}else{if(s.length!==4*c)throw Error("Unsupported channel count: "+s.length/c);s=new ImageData(new Uint8ClampedArray(s.buffer,s.byteOffset,s.length),a,r)}else if(!(s instanceof WebGLTexture))throw Error(`Unsupported format: ${s.constructor.name}`);a=new Oo([s],!1,!1,this.g.i.canvas,this.M,a,r),this.u=o=o?a.clone():a,this.h&&this.h(o),Mt(this,i)})),this.g.attachEmptyPacketListener("stylized_image",(r=>{this.u=null,this.h&&this.h(null),Mt(this,r)})),e=e.g(),this.setGraph(new Uint8Array(e),!0)}};Eu.prototype.stylize=Eu.prototype.Ua,Eu.prototype.setOptions=Eu.prototype.o,Eu.createFromModelPath=function(e,t){return Mn(Eu,e,{baseOptions:{modelAssetPath:t}})},Eu.createFromModelBuffer=function(e,t){return Mn(Eu,e,{baseOptions:{modelAssetBuffer:t}})},Eu.createFromOptions=function(e,t){return Mn(Eu,e,t)};var LSe=hu([0,1],[1,2],[2,3],[3,4],[0,5],[5,6],[6,7],[7,8],[5,9],[9,10],[10,11],[11,12],[9,13],[13,14],[14,15],[15,16],[13,17],[0,17],[17,18],[18,19],[19,20]);function Zte(e){e.gestures=[],e.landmarks=[],e.worldLandmarks=[],e.handedness=[]}function ene(e){return e.gestures.length===0?{gestures:[],landmarks:[],worldLandmarks:[],handedness:[],handednesses:[]}:{gestures:e.gestures,landmarks:e.landmarks,worldLandmarks:e.worldLandmarks,handedness:e.handedness,handednesses:e.handedness}}function tne(e,t=!0){const n=[];for(const i of e){var r=Jz(i);e=[];for(const o of r.g())r=t&&Bc(o,1)!=null?_d(Bc(o,1)):-1,e.push({score:rs(o,2)??0,index:r,categoryName:tl(o,3)??""??"",displayName:tl(o,4)??""??""});n.push(e)}return n}var Ba=class extends hc{constructor(e,t){super(new pu(e,t),"image_in","norm_rect",!1),this.gestures=[],this.landmarks=[],this.worldLandmarks=[],this.handedness=[],Bt(e=this.v=new dSe,0,1,t=new Ii),this.B=new tV,Bt(this.v,0,2,this.B),this.u=new cSe,Bt(this.B,0,3,this.u),this.h=new sSe,Bt(this.B,0,2,this.h),this.j=new Vut,Bt(this.v,0,3,this.j),Wt(this.h,2,.5),Wt(this.B,4,.5),Wt(this.u,2,.5)}get baseOptions(){return Fn(this.v,Ii,1)}set baseOptions(e){Bt(this.v,0,1,e)}o(e){var i,o,s,a;if(Cd(this.h,3,e.numHands??1),"minHandDetectionConfidence"in e&&Wt(this.h,2,e.minHandDetectionConfidence??.5),"minTrackingConfidence"in e&&Wt(this.B,4,e.minTrackingConfidence??.5),"minHandPresenceConfidence"in e&&Wt(this.u,2,e.minHandPresenceConfidence??.5),e.cannedGesturesClassifierOptions){var t=new y0,n=t,r=Y7(e.cannedGesturesClassifierOptions,(i=Fn(this.j,y0,3))==null?void 0:i.h());Bt(n,0,2,r),Bt(this.j,0,3,t)}else e.cannedGesturesClassifierOptions===void 0&&((o=Fn(this.j,y0,3))==null||o.g());return e.customGesturesClassifierOptions?(Bt(n=t=new y0,0,2,r=Y7(e.customGesturesClassifierOptions,(s=Fn(this.j,y0,4))==null?void 0:s.h())),Bt(this.j,0,4,t)):e.customGesturesClassifierOptions===void 0&&((a=Fn(this.j,y0,4))==null||a.g()),this.l(e)}Pa(e,t){return Zte(this),mu(this,e,t),ene(this)}Qa(e,t,n){return Zte(this),Th(this,e,n,t),ene(this)}m(){var e=new Fa;si(e,"image_in"),si(e,"norm_rect"),ii(e,"hand_gestures"),ii(e,"hand_landmarks"),ii(e,"world_hand_landmarks"),ii(e,"handedness");const t=new nl;du(t,Gut,this.v);const n=new ia;dl(n,"mediapipe.tasks.vision.gesture_recognizer.GestureRecognizerGraph"),Gr(n,"IMAGE:image_in"),Gr(n,"NORM_RECT:norm_rect"),Ar(n,"HAND_GESTURES:hand_gestures"),Ar(n,"LANDMARKS:hand_landmarks"),Ar(n,"WORLD_LANDMARKS:world_hand_landmarks"),Ar(n,"HANDEDNESS:handedness"),n.o(t),fl(e,n),this.g.attachProtoVectorListener("hand_landmarks",((r,i)=>{for(const o of r){r=bO(o);const s=[];for(const a of fh(r,Bwe,1))s.push({x:rs(a,1)??0,y:rs(a,2)??0,z:rs(a,3)??0});this.landmarks.push(s)}Mt(this,i)})),this.g.attachEmptyPacketListener("hand_landmarks",(r=>{Mt(this,r)})),this.g.attachProtoVectorListener("world_hand_landmarks",((r,i)=>{for(const o of r){r=Zz(o);const s=[];for(const a of fh(r,jwe,1))s.push({x:rs(a,1)??0,y:rs(a,2)??0,z:rs(a,3)??0});this.worldLandmarks.push(s)}Mt(this,i)})),this.g.attachEmptyPacketListener("world_hand_landmarks",(r=>{Mt(this,r)})),this.g.attachProtoVectorListener("hand_gestures",((r,i)=>{this.gestures.push(...tne(r,!1)),Mt(this,i)})),this.g.attachEmptyPacketListener("hand_gestures",(r=>{Mt(this,r)})),this.g.attachProtoVectorListener("handedness",((r,i)=>{this.handedness.push(...tne(r)),Mt(this,i)})),this.g.attachEmptyPacketListener("handedness",(r=>{Mt(this,r)})),e=e.g(),this.setGraph(new Uint8Array(e),!0)}};function nne(e){return{landmarks:e.landmarks,worldLandmarks:e.worldLandmarks,handednesses:e.handedness,handedness:e.handedness}}Ba.prototype.recognizeForVideo=Ba.prototype.Qa,Ba.prototype.recognize=Ba.prototype.Pa,Ba.prototype.setOptions=Ba.prototype.o,Ba.createFromModelPath=function(e,t){return Mn(Ba,e,{baseOptions:{modelAssetPath:t}})},Ba.createFromModelBuffer=function(e,t){return Mn(Ba,e,{baseOptions:{modelAssetBuffer:t}})},Ba.createFromOptions=function(e,t){return Mn(Ba,e,t)},Ba.HAND_CONNECTIONS=LSe;var $a=class extends hc{constructor(e,t){super(new pu(e,t),"image_in","norm_rect",!1),this.landmarks=[],this.worldLandmarks=[],this.handedness=[],Bt(e=this.j=new tV,0,1,t=new Ii),this.u=new cSe,Bt(this.j,0,3,this.u),this.h=new sSe,Bt(this.j,0,2,this.h),Cd(this.h,3,1),Wt(this.h,2,.5),Wt(this.u,2,.5),Wt(this.j,4,.5)}get baseOptions(){return Fn(this.j,Ii,1)}set baseOptions(e){Bt(this.j,0,1,e)}o(e){return"numHands"in e&&Cd(this.h,3,e.numHands??1),"minHandDetectionConfidence"in e&&Wt(this.h,2,e.minHandDetectionConfidence??.5),"minTrackingConfidence"in e&&Wt(this.j,4,e.minTrackingConfidence??.5),"minHandPresenceConfidence"in e&&Wt(this.u,2,e.minHandPresenceConfidence??.5),this.l(e)}G(e,t){return this.landmarks=[],this.worldLandmarks=[],this.handedness=[],mu(this,e,t),nne(this)}H(e,t,n){return this.landmarks=[],this.worldLandmarks=[],this.handedness=[],Th(this,e,n,t),nne(this)}m(){var e=new Fa;si(e,"image_in"),si(e,"norm_rect"),ii(e,"hand_landmarks"),ii(e,"world_hand_landmarks"),ii(e,"handedness");const t=new nl;du(t,qut,this.j);const n=new ia;dl(n,"mediapipe.tasks.vision.hand_landmarker.HandLandmarkerGraph"),Gr(n,"IMAGE:image_in"),Gr(n,"NORM_RECT:norm_rect"),Ar(n,"LANDMARKS:hand_landmarks"),Ar(n,"WORLD_LANDMARKS:world_hand_landmarks"),Ar(n,"HANDEDNESS:handedness"),n.o(t),fl(e,n),this.g.attachProtoVectorListener("hand_landmarks",((r,i)=>{for(const o of r)r=bO(o),this.landmarks.push(iV(r));Mt(this,i)})),this.g.attachEmptyPacketListener("hand_landmarks",(r=>{Mt(this,r)})),this.g.attachProtoVectorListener("world_hand_landmarks",((r,i)=>{for(const o of r)r=Zz(o),this.worldLandmarks.push(_Se(r));Mt(this,i)})),this.g.attachEmptyPacketListener("world_hand_landmarks",(r=>{Mt(this,r)})),this.g.attachProtoVectorListener("handedness",((r,i)=>{var o=this.handedness,s=o.push;const a=[];for(const c of r){r=Jz(c);const l=[];for(const u of r.g())l.push({score:rs(u,2)??0,index:_d(Bc(u,1))??-1,categoryName:tl(u,3)??""??"",displayName:tl(u,4)??""??""});a.push(l)}s.call(o,...a),Mt(this,i)})),this.g.attachEmptyPacketListener("handedness",(r=>{Mt(this,r)})),e=e.g(),this.setGraph(new Uint8Array(e),!0)}};$a.prototype.detectForVideo=$a.prototype.H,$a.prototype.detect=$a.prototype.G,$a.prototype.setOptions=$a.prototype.o,$a.createFromModelPath=function(e,t){return Mn($a,e,{baseOptions:{modelAssetPath:t}})},$a.createFromModelBuffer=function(e,t){return Mn($a,e,{baseOptions:{modelAssetBuffer:t}})},$a.createFromOptions=function(e,t){return Mn($a,e,t)},$a.HAND_CONNECTIONS=LSe;var Sc=class extends hc{constructor(e,t){super(new pu(e,t),"input_image","norm_rect",!0),this.j={classifications:[]},Bt(e=this.h=new fSe,0,1,t=new Ii)}get baseOptions(){return Fn(this.h,Ii,1)}set baseOptions(e){Bt(this.h,0,1,e)}o(e){return Bt(this.h,0,2,Y7(e,Fn(this.h,wO,2))),this.l(e)}ya(e,t){return this.j={classifications:[]},mu(this,e,t),this.j}za(e,t,n){return this.j={classifications:[]},Th(this,e,n,t),this.j}m(){var e=new Fa;si(e,"input_image"),si(e,"norm_rect"),ii(e,"classifications");const t=new nl;du(t,Kut,this.h);const n=new ia;dl(n,"mediapipe.tasks.vision.image_classifier.ImageClassifierGraph"),Gr(n,"IMAGE:input_image"),Gr(n,"NORM_RECT:norm_rect"),Ar(n,"CLASSIFICATIONS:classifications"),n.o(t),fl(e,n),this.g.attachProtoListener("classifications",((r,i)=>{this.j=(function(o){const s={classifications:fh(o,Put,1).map((a=>{var c;return wSe(((c=Fn(a,Xz,4))==null?void 0:c.g())??[],_d(Bc(a,2)),tl(a,3)??"")}))};return CR(M1(o,2))!=null&&(s.timestampMs=_d(CR(M1(o,2)))),s})(Nut(r)),Mt(this,i)})),this.g.attachEmptyPacketListener("classifications",(r=>{Mt(this,r)})),e=e.g(),this.setGraph(new Uint8Array(e),!0)}};Sc.prototype.classifyForVideo=Sc.prototype.za,Sc.prototype.classify=Sc.prototype.ya,Sc.prototype.setOptions=Sc.prototype.o,Sc.createFromModelPath=function(e,t){return Mn(Sc,e,{baseOptions:{modelAssetPath:t}})},Sc.createFromModelBuffer=function(e,t){return Mn(Sc,e,{baseOptions:{modelAssetBuffer:t}})},Sc.createFromOptions=function(e,t){return Mn(Sc,e,t)};var Ha=class extends hc{constructor(e,t){super(new pu(e,t),"image_in","norm_rect",!0),this.h=new hSe,this.embeddings={embeddings:[]},Bt(e=this.h,0,1,t=new Ii)}get baseOptions(){return Fn(this.h,Ii,1)}set baseOptions(e){Bt(this.h,0,1,e)}o(e){var t=this.h,n=Fn(this.h,Fte,2);return n=n?n.clone():new Fte,e.l2Normalize!==void 0?CC(n,1,e.l2Normalize):"l2Normalize"in e&&$r(n,1),e.quantize!==void 0?CC(n,2,e.quantize):"quantize"in e&&$r(n,2),Bt(t,0,2,n),this.l(e)}Fa(e,t){return mu(this,e,t),this.embeddings}Ga(e,t,n){return Th(this,e,n,t),this.embeddings}m(){var e=new Fa;si(e,"image_in"),si(e,"norm_rect"),ii(e,"embeddings_out");const t=new nl;du(t,Yut,this.h);const n=new ia;dl(n,"mediapipe.tasks.vision.image_embedder.ImageEmbedderGraph"),Gr(n,"IMAGE:image_in"),Gr(n,"NORM_RECT:norm_rect"),Ar(n,"EMBEDDINGS:embeddings_out"),n.o(t),fl(e,n),this.g.attachProtoListener("embeddings_out",((r,i)=>{r=Fut(r),this.embeddings=(function(o){return{embeddings:fh(o,Dut,1).map((s=>{var c,l;const a={headIndex:_d(Bc(s,3))??-1,headName:tl(s,4)??""??""};if(cwe(s,G7,N6(s,1))!==void 0)s=ly(s=Fn(s,G7,N6(s,1)),1,jm),a.floatEmbedding=s;else{const u=new Uint8Array(0);a.quantizedEmbedding=((l=(c=Fn(s,Mut,N6(s,2)))==null?void 0:c.ua())==null?void 0:l.wa())??u}return a})),timestampMs:_d(CR(M1(o,2)))}})(r),Mt(this,i)})),this.g.attachEmptyPacketListener("embeddings_out",(r=>{Mt(this,r)})),e=e.g(),this.setGraph(new Uint8Array(e),!0)}};Ha.cosineSimilarity=function(e,t){if(e.floatEmbedding&&t.floatEmbedding)e=Bte(e.floatEmbedding,t.floatEmbedding);else{if(!e.quantizedEmbedding||!t.quantizedEmbedding)throw Error("Cannot compute cosine similarity between quantized and float embeddings.");e=Bte(Ute(e.quantizedEmbedding),Ute(t.quantizedEmbedding))}return e},Ha.prototype.embedForVideo=Ha.prototype.Ga,Ha.prototype.embed=Ha.prototype.Fa,Ha.prototype.setOptions=Ha.prototype.o,Ha.createFromModelPath=function(e,t){return Mn(Ha,e,{baseOptions:{modelAssetPath:t}})},Ha.createFromModelBuffer=function(e,t){return Mn(Ha,e,{baseOptions:{modelAssetBuffer:t}})},Ha.createFromOptions=function(e,t){return Mn(Ha,e,t)};var Z7=class{constructor(e,t,n){this.confidenceMasks=e,this.categoryMask=t,this.qualityScores=n}close(){var e,t;(e=this.confidenceMasks)==null||e.forEach((n=>{n.close()})),(t=this.categoryMask)==null||t.close()}};function rne(e){e.categoryMask=void 0,e.confidenceMasks=void 0,e.qualityScores=void 0}function ine(e){try{const t=new Z7(e.confidenceMasks,e.categoryMask,e.qualityScores);if(!e.j)return t;e.j(t)}finally{sV(e)}}Z7.prototype.close=Z7.prototype.close;var Os=class extends hc{constructor(e,t){super(new pu(e,t),"image_in","norm_rect",!1),this.u=[],this.outputCategoryMask=!1,this.outputConfidenceMasks=!0,this.h=new nV,this.v=new pSe,Bt(this.h,0,3,this.v),Bt(e=this.h,0,1,t=new Ii)}get baseOptions(){return Fn(this.h,Ii,1)}set baseOptions(e){Bt(this.h,0,1,e)}o(e){return e.displayNamesLocale!==void 0?$r(this.h,2,VE(e.displayNamesLocale)):"displayNamesLocale"in e&&$r(this.h,2),"outputCategoryMask"in e&&(this.outputCategoryMask=e.outputCategoryMask??!1),"outputConfidenceMasks"in e&&(this.outputConfidenceMasks=e.outputConfidenceMasks??!0),super.l(e)}N(){(function(e){var n,r;const t=fh(e.da(),ia,1).filter((i=>(tl(i,1)??"").includes("mediapipe.tasks.TensorsToSegmentationCalculator")));if(e.u=[],1<t.length)throw Error("The graph has more than one mediapipe.tasks.TensorsToSegmentationCalculator.");t.length===1&&(((r=(n=Fn(t[0],nl,7))==null?void 0:n.l())==null?void 0:r.g())??new Map).forEach(((i,o)=>{e.u[Number(o)]=tl(i,1)??""}))})(this)}ea(e,t,n){const r=typeof t!="function"?t:{};return this.j=typeof t=="function"?t:n,rne(this),mu(this,e,r),ine(this)}Sa(e,t,n,r){const i=typeof n!="function"?n:{};return this.j=typeof n=="function"?n:r,rne(this),Th(this,e,i,t),ine(this)}Ja(){return this.u}m(){var e=new Fa;si(e,"image_in"),si(e,"norm_rect");const t=new nl;du(t,gSe,this.h);const n=new ia;dl(n,"mediapipe.tasks.vision.image_segmenter.ImageSegmenterGraph"),Gr(n,"IMAGE:image_in"),Gr(n,"NORM_RECT:norm_rect"),n.o(t),fl(e,n),oV(this,e),this.outputConfidenceMasks&&(ii(e,"confidence_masks"),Ar(n,"CONFIDENCE_MASKS:confidence_masks"),EC(this,"confidence_masks"),this.g.ca("confidence_masks",((r,i)=>{this.confidenceMasks=r.map((o=>TC(this,o,!0,!this.j))),Mt(this,i)})),this.g.attachEmptyPacketListener("confidence_masks",(r=>{this.confidenceMasks=[],Mt(this,r)}))),this.outputCategoryMask&&(ii(e,"category_mask"),Ar(n,"CATEGORY_MASK:category_mask"),EC(this,"category_mask"),this.g.ba("category_mask",((r,i)=>{this.categoryMask=TC(this,r,!1,!this.j),Mt(this,i)})),this.g.attachEmptyPacketListener("category_mask",(r=>{this.categoryMask=void 0,Mt(this,r)}))),ii(e,"quality_scores"),Ar(n,"QUALITY_SCORES:quality_scores"),this.g.attachFloatVectorListener("quality_scores",((r,i)=>{this.qualityScores=r,Mt(this,i)})),this.g.attachEmptyPacketListener("quality_scores",(r=>{this.categoryMask=void 0,Mt(this,r)})),e=e.g(),this.setGraph(new Uint8Array(e),!0)}};Os.prototype.getLabels=Os.prototype.Ja,Os.prototype.segmentForVideo=Os.prototype.Sa,Os.prototype.segment=Os.prototype.ea,Os.prototype.setOptions=Os.prototype.o,Os.createFromModelPath=function(e,t){return Mn(Os,e,{baseOptions:{modelAssetPath:t}})},Os.createFromModelBuffer=function(e,t){return Mn(Os,e,{baseOptions:{modelAssetBuffer:t}})},Os.createFromOptions=function(e,t){return Mn(Os,e,t)};var e9=class{constructor(e,t,n){this.confidenceMasks=e,this.categoryMask=t,this.qualityScores=n}close(){var e,t;(e=this.confidenceMasks)==null||e.forEach((n=>{n.close()})),(t=this.categoryMask)==null||t.close()}};e9.prototype.close=e9.prototype.close;var udt=class extends wt{constructor(e){super(e)}},j1=[0,Pi,-2],ddt=[0,$f,-3,no],EO=[0,$f,-3,no,$f,-1],FSe=[0,EO],fdt=[0,FSe,j1],hdt=[0,EO,j1],jSe=[0,EO,Pi,-1],pdt=[0,jSe,j1],mdt=[0,$f,-3,no,j1,-1],gdt=[0,$f,-3,no,Ed],L6=class extends wt{constructor(e){super(e)}},one=[0,$f,-1,no],USe=class extends wt{constructor(){super()}};USe.A=[1];var sne=class extends wt{constructor(e){super(e)}},t9=[1,2,3,4,5,6,7,8,9,10,14,15],vdt=[0,t9,ti,EO,ti,hdt,ti,FSe,ti,fdt,ti,one,ti,gdt,ti,ddt,ti,[0,Yr,$f,-2,no,Pi,no,-1,2,$f,j1],ti,jSe,ti,pdt,$f,j1,Yr,ti,mdt,ti,[0,yo,one]],ydt=[0,Yr,Pi,-1,no],n9=class extends wt{constructor(){super()}};n9.A=[1],n9.prototype.g=Qz([0,yo,vdt,Yr,ydt]);var Tu=class extends hc{constructor(e,t){super(new pu(e,t),"image_in","norm_rect_in",!1),this.outputCategoryMask=!1,this.outputConfidenceMasks=!0,this.h=new nV,this.v=new pSe,Bt(this.h,0,3,this.v),Bt(e=this.h,0,1,t=new Ii)}get baseOptions(){return Fn(this.h,Ii,1)}set baseOptions(e){Bt(this.h,0,1,e)}o(e){return"outputCategoryMask"in e&&(this.outputCategoryMask=e.outputCategoryMask??!1),"outputConfidenceMasks"in e&&(this.outputConfidenceMasks=e.outputConfidenceMasks??!0),super.l(e)}ea(e,t,n,r){const i=typeof n!="function"?n:{};this.j=typeof n=="function"?n:r,this.qualityScores=this.categoryMask=this.confidenceMasks=void 0,n=this.I+1,r=new n9;const o=new sne;var s=new udt;if(Cd(s,1,255),Bt(o,0,12,s),t.keypoint&&t.scribble)throw Error("Cannot provide both keypoint and scribble.");if(t.keypoint){var a=new L6;CC(a,3,!0),Wt(a,1,t.keypoint.x),Wt(a,2,t.keypoint.y),u_(o,5,t9,a)}else{if(!t.scribble)throw Error("Must provide either a keypoint or a scribble.");for(a of(s=new USe,t.scribble))CC(t=new L6,3,!0),Wt(t,1,a.x),Wt(t,2,a.y),q7(s,L6,t);u_(o,15,t9,s)}q7(r,sne,o),this.g.addProtoToStream(r.g(),"drishti.RenderData","roi_in",n),mu(this,e,i);e:{try{const l=new e9(this.confidenceMasks,this.categoryMask,this.qualityScores);if(!this.j){var c=l;break e}this.j(l)}finally{sV(this)}c=void 0}return c}m(){var e=new Fa;si(e,"image_in"),si(e,"roi_in"),si(e,"norm_rect_in");const t=new nl;du(t,gSe,this.h);const n=new ia;dl(n,"mediapipe.tasks.vision.interactive_segmenter.InteractiveSegmenterGraph"),Gr(n,"IMAGE:image_in"),Gr(n,"ROI:roi_in"),Gr(n,"NORM_RECT:norm_rect_in"),n.o(t),fl(e,n),oV(this,e),this.outputConfidenceMasks&&(ii(e,"confidence_masks"),Ar(n,"CONFIDENCE_MASKS:confidence_masks"),EC(this,"confidence_masks"),this.g.ca("confidence_masks",((r,i)=>{this.confidenceMasks=r.map((o=>TC(this,o,!0,!this.j))),Mt(this,i)})),this.g.attachEmptyPacketListener("confidence_masks",(r=>{this.confidenceMasks=[],Mt(this,r)}))),this.outputCategoryMask&&(ii(e,"category_mask"),Ar(n,"CATEGORY_MASK:category_mask"),EC(this,"category_mask"),this.g.ba("category_mask",((r,i)=>{this.categoryMask=TC(this,r,!1,!this.j),Mt(this,i)})),this.g.attachEmptyPacketListener("category_mask",(r=>{this.categoryMask=void 0,Mt(this,r)}))),ii(e,"quality_scores"),Ar(n,"QUALITY_SCORES:quality_scores"),this.g.attachFloatVectorListener("quality_scores",((r,i)=>{this.qualityScores=r,Mt(this,i)})),this.g.attachEmptyPacketListener("quality_scores",(r=>{this.categoryMask=void 0,Mt(this,r)})),e=e.g(),this.setGraph(new Uint8Array(e),!0)}};Tu.prototype.segment=Tu.prototype.ea,Tu.prototype.setOptions=Tu.prototype.o,Tu.createFromModelPath=function(e,t){return Mn(Tu,e,{baseOptions:{modelAssetPath:t}})},Tu.createFromModelBuffer=function(e,t){return Mn(Tu,e,{baseOptions:{modelAssetBuffer:t}})},Tu.createFromOptions=function(e,t){return Mn(Tu,e,t)};var _c=class extends hc{constructor(e,t){super(new pu(e,t),"input_frame_gpu","norm_rect",!1),this.j={detections:[]},Bt(e=this.h=new rV,0,1,t=new Ii)}get baseOptions(){return Fn(this.h,Ii,1)}set baseOptions(e){Bt(this.h,0,1,e)}o(e){return e.displayNamesLocale!==void 0?$r(this.h,2,VE(e.displayNamesLocale)):"displayNamesLocale"in e&&$r(this.h,2),e.maxResults!==void 0?Cd(this.h,3,e.maxResults):"maxResults"in e&&$r(this.h,3),e.scoreThreshold!==void 0?Wt(this.h,4,e.scoreThreshold):"scoreThreshold"in e&&$r(this.h,4),e.categoryAllowlist!==void 0?kR(this.h,5,e.categoryAllowlist):"categoryAllowlist"in e&&$r(this.h,5),e.categoryDenylist!==void 0?kR(this.h,6,e.categoryDenylist):"categoryDenylist"in e&&$r(this.h,6),this.l(e)}G(e,t){return this.j={detections:[]},mu(this,e,t),this.j}H(e,t,n){return this.j={detections:[]},Th(this,e,n,t),this.j}m(){var e=new Fa;si(e,"input_frame_gpu"),si(e,"norm_rect"),ii(e,"detections");const t=new nl;du(t,Xut,this.h);const n=new ia;dl(n,"mediapipe.tasks.vision.ObjectDetectorGraph"),Gr(n,"IMAGE:input_frame_gpu"),Gr(n,"NORM_RECT:norm_rect"),Ar(n,"DETECTIONS:detections"),n.o(t),fl(e,n),this.g.attachProtoVectorListener("detections",((r,i)=>{for(const o of r)r=Fwe(o),this.j.detections.push(SSe(r));Mt(this,i)})),this.g.attachEmptyPacketListener("detections",(r=>{Mt(this,r)})),e=e.g(),this.setGraph(new Uint8Array(e),!0)}};_c.prototype.detectForVideo=_c.prototype.H,_c.prototype.detect=_c.prototype.G,_c.prototype.setOptions=_c.prototype.o,_c.createFromModelPath=async function(e,t){return Mn(_c,e,{baseOptions:{modelAssetPath:t}})},_c.createFromModelBuffer=function(e,t){return Mn(_c,e,{baseOptions:{modelAssetBuffer:t}})},_c.createFromOptions=function(e,t){return Mn(_c,e,t)};function ane(e){e.landmarks=[],e.worldLandmarks=[],e.v=void 0}function cne(e){try{const t=new class{constructor(n,r,i){this.landmarks=n,this.worldLandmarks=r,this.g=i}close(){var n;(n=this.g)==null||n.forEach((r=>{r.close()}))}}(e.landmarks,e.worldLandmarks,e.v);if(!e.u)return t;e.u(t)}finally{sV(e)}}var za=class extends hc{constructor(e,t){super(new pu(e,t),"image_in","norm_rect",!1),this.landmarks=[],this.worldLandmarks=[],this.outputSegmentationMasks=!1,Bt(e=this.h=new bSe,0,1,t=new Ii),this.B=new Zut,Bt(this.h,0,3,this.B),this.j=new Jut,Bt(this.h,0,2,this.j),Cd(this.j,4,1),Wt(this.j,2,.5),Wt(this.B,2,.5),Wt(this.h,4,.5)}get baseOptions(){return Fn(this.h,Ii,1)}set baseOptions(e){Bt(this.h,0,1,e)}o(e){return"numPoses"in e&&Cd(this.j,4,e.numPoses??1),"minPoseDetectionConfidence"in e&&Wt(this.j,2,e.minPoseDetectionConfidence??.5),"minTrackingConfidence"in e&&Wt(this.h,4,e.minTrackingConfidence??.5),"minPosePresenceConfidence"in e&&Wt(this.B,2,e.minPosePresenceConfidence??.5),"outputSegmentationMasks"in e&&(this.outputSegmentationMasks=e.outputSegmentationMasks??!1),this.l(e)}G(e,t,n){const r=typeof t!="function"?t:{};return this.u=typeof t=="function"?t:n,ane(this),mu(this,e,r),cne(this)}H(e,t,n,r){const i=typeof n!="function"?n:{};return this.u=typeof n=="function"?n:r,ane(this),Th(this,e,i,t),cne(this)}m(){var e=new Fa;si(e,"image_in"),si(e,"norm_rect"),ii(e,"normalized_landmarks"),ii(e,"world_landmarks"),ii(e,"segmentation_masks");const t=new nl;du(t,tdt,this.h);const n=new ia;dl(n,"mediapipe.tasks.vision.pose_landmarker.PoseLandmarkerGraph"),Gr(n,"IMAGE:image_in"),Gr(n,"NORM_RECT:norm_rect"),Ar(n,"NORM_LANDMARKS:normalized_landmarks"),Ar(n,"WORLD_LANDMARKS:world_landmarks"),n.o(t),fl(e,n),oV(this,e),this.g.attachProtoVectorListener("normalized_landmarks",((r,i)=>{this.landmarks=[];for(const o of r)r=bO(o),this.landmarks.push(iV(r));Mt(this,i)})),this.g.attachEmptyPacketListener("normalized_landmarks",(r=>{this.landmarks=[],Mt(this,r)})),this.g.attachProtoVectorListener("world_landmarks",((r,i)=>{this.worldLandmarks=[];for(const o of r)r=Zz(o),this.worldLandmarks.push(_Se(r));Mt(this,i)})),this.g.attachEmptyPacketListener("world_landmarks",(r=>{this.worldLandmarks=[],Mt(this,r)})),this.outputSegmentationMasks&&(Ar(n,"SEGMENTATION_MASK:segmentation_masks"),EC(this,"segmentation_masks"),this.g.ca("segmentation_masks",((r,
1566i)=>{this.v=r.map((o=>TC(this,o,!0,!this.u))),Mt(this,i)})),this.g.attachEmptyPacketListener("segmentation_masks",(r=>{this.v=[],Mt(this,r)}))),e=e.g(),this.setGraph(new Uint8Array(e),!0)}};za.prototype.detectForVideo=za.prototype.H,za.prototype.detect=za.prototype.G,za.prototype.setOptions=za.prototype.o,za.createFromModelPath=function(e,t){return Mn(za,e,{baseOptions:{modelAssetPath:t}})},za.createFromModelBuffer=function(e,t){return Mn(za,e,{baseOptions:{modelAssetBuffer:t}})},za.createFromOptions=function(e,t){return Mn(za,e,t)},za.POSE_CONNECTIONS=hu([0,1],[1,2],[2,3],[3,7],[0,4],[4,5],[5,6],[6,8],[9,10],[11,12],[11,13],[13,15],[15,17],[15,19],[15,21],[17,19],[12,14],[14,16],[16,18],[16,20],[16,22],[18,20],[11,23],[12,24],[23,24],[23,25],[24,26],[25,27],[26,28],[27,29],[28,30],[29,31],[30,32],[27,31],[28,32]);var bdt=Object.defineProperty,wdt=Object.defineProperties,Sdt=Object.getOwnPropertyDescriptors,lne=Object.getOwnPropertySymbols,_dt=Object.prototype.hasOwnProperty,Cdt=Object.prototype.propertyIsEnumerable,une=(e,t,n)=>t in e?bdt(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,BSe=(e,t)=>{for(var n in t||(t={}))_dt.call(t,n)&&une(e,n,t[n]);if(lne)for(var n of lne(t))Cdt.call(t,n)&&une(e,n,t[n]);return e},Edt=(e,t)=>wdt(e,Sdt(t)),dne=class{static get isSupported(){return typeof MediaStreamTrackGenerator<"u"&&typeof MediaStreamTrackProcessor<"u"}constructor(e,t){this.name=t,this.transformer=e,this.transformer.restart}async setup(e){var t,n,r,i;this.source=e.track;const o=this.source.getConstraints();if(await this.source.applyConstraints(Edt(BSe({},o),{resizeMode:"none"})),this.sourceSettings=this.source.getSettings(),this.sourceDummy=e.element,this.sourceDummy instanceof HTMLVideoElement&&(this.sourceDummy.height=(t=this.sourceSettings.height)!=null?t:300,this.sourceDummy.width=(n=this.sourceSettings.width)!=null?n:300),!(this.sourceDummy instanceof HTMLVideoElement))throw TypeError("Currently only video transformers are supported");this.processor=new MediaStreamTrackProcessor({track:this.source}),this.trackGenerator=new MediaStreamTrackGenerator({kind:"video",signalTarget:this.source}),this.canvas=new OffscreenCanvas((r=this.sourceSettings.width)!=null?r:300,(i=this.sourceSettings.height)!=null?i:300)}async init(e){if(await this.setup(e),!this.canvas||!this.processor||!this.trackGenerator)throw new TypeError("Expected both canvas and processor to be defined after setup");let t=this.processor.readable;await this.transformer.init({outputCanvas:this.canvas,inputElement:this.sourceDummy}),t=t.pipeThrough(this.transformer.transformer),t.pipeTo(this.trackGenerator.writable).catch(n=>console.error("error when trying to pipe",n)).finally(()=>this.destroy()),this.processedTrack=this.trackGenerator}async restart(e){return await this.destroy(),this.init(e)}async restartTransformer(...e){this.transformer.restart(e[0])}async updateTransformerOptions(...e){this.transformer.update(e[0])}async destroy(){var e;await this.transformer.destroy(),(e=this.trackGenerator)==null||e.stop()}},Tdt={"@mediapipe/tasks-vision":"0.10.9"},kdt=class{constructor(){this.isDisabled=!1}async init({outputCanvas:e,inputElement:t}){var n;if(!(t instanceof HTMLVideoElement))throw TypeError("Video transformer needs a HTMLVideoElement as input");this.transformer=new TransformStream({transform:(r,i)=>this.transform(r,i)}),this.canvas=e||null,e&&(this.ctx=((n=this.canvas)==null?void 0:n.getContext("2d"))||void 0),this.inputVideo=t,this.isDisabled=!1}async restart({outputCanvas:e,inputElement:t}){this.canvas=e||null,this.ctx=this.canvas.getContext("2d")||void 0,this.inputVideo=t,this.isDisabled=!1}async destroy(){this.isDisabled=!0,this.canvas=void 0,this.ctx=void 0}},fne=class extends kdt{constructor(e){super(),this.backgroundImage=null,this.options=e,this.update(e)}static get isSupported(){return typeof OffscreenCanvas<"u"}async init({outputCanvas:e,inputElement:t}){var n,r,i,o,s;await super.init({outputCanvas:e,inputElement:t});const a=await kS.forVisionTasks((r=(n=this.options.assetPaths)==null?void 0:n.tasksVisionFileSet)!=null?r:`https://cdn.jsdelivr.net/npm/@mediapipe/tasks-vision@${Tdt["@mediapipe/tasks-vision"]}/wasm`);this.imageSegmenter=await Os.createFromOptions(a,{baseOptions:BSe({modelAssetPath:(o=(i=this.options.assetPaths)==null?void 0:i.modelAssetPath)!=null?o:"https://storage.googleapis.com/mediapipe-models/image_segmenter/selfie_segmenter/float16/latest/selfie_segmenter.tflite",delegate:"GPU"},this.options.segmenterOptions),runningMode:"VIDEO",outputCategoryMask:!0,outputConfidenceMasks:!1}),(s=this.options)!=null&&s.imagePath&&!this.backgroundImage&&await this.loadBackgroun
1566d(this.options.imagePath).catch(c=>console.error("Error while loading processor background image: ",c))}async destroy(){var e;await super.destroy(),await((e=this.imageSegmenter)==null?void 0:e.close()),this.backgroundImage=null}async loadBackground(e){const t=new Image;await new Promise((r,i)=>{t.crossOrigin="Anonymous",t.onload=()=>r(t),t.onerror=o=>i(o),t.src=e});const n=await createImageBitmap(t);this.backgroundImage=n}async transform(e,t){var n;try{if(this.isDisabled){t.enqueue(e);return}if(!this.canvas)throw TypeError("Canvas needs to be initialized first");let r=performance.now();(n=this.imageSegmenter)==null||n.segmentForVideo(this.inputVideo,r,o=>this.segmentationResults=o),this.blurRadius?await this.blurBackground(e):await this.drawVirtualBackground(e);const i=new VideoFrame(this.canvas,{timestamp:e.timestamp||Date.now()});t.enqueue(i)}finally{e.close()}}async update(e){this.options=e,e.blurRadius?this.blurRadius=e.blurRadius:e.imagePath&&await this.loadBackground(e.imagePath)}async drawVirtualBackground(e){var t;if(!(!this.canvas||!this.ctx||!this.segmentationResults||!this.inputVideo)){if((t=this.segmentationResults)!=null&&t.categoryMask){this.ctx.filter="blur(10px)",this.ctx.globalCompositeOperation="copy";const n=await hne(this.segmentationResults.categoryMask,this.segmentationResults.categoryMask.width,this.segmentationResults.categoryMask.height);this.ctx.drawImage(n,0,0,this.canvas.width,this.canvas.height),this.ctx.filter="none",this.ctx.globalCompositeOperation="source-in",this.backgroundImage?this.ctx.drawImage(this.backgroundImage,0,0,this.backgroundImage.width,this.backgroundImage.height,0,0,this.canvas.width,this.canvas.height):(this.ctx.fillStyle="#00FF00",this.ctx.fillRect(0,0,this.canvas.width,this.canvas.height)),this.ctx.globalCompositeOperation="destination-over"}this.ctx.drawImage(e,0,0,this.canvas.width,this.canvas.height)}}async blurBackground(e){var t,n;if(!this.ctx||!this.canvas||!((n=(t=this.segmentationResults)==null?void 0:t.categoryMask)!=null&&n.canvas)||!this.inputVideo)return;this.ctx.save(),this.ctx.globalCompositeOperation="copy";const r=await hne(this.segmentationResults.categoryMask,this.segmentationResults.categoryMask.width,this.segmentationResults.categoryMask.height);this.ctx.filter="blur(3px)",this.ctx.globalCompositeOperation="copy",this.ctx.drawImage(r,0,0,this.canvas.width,this.canvas.height),this.ctx.filter="none",this.ctx.globalCompositeOperation="source-out",this.ctx.drawImage(e,0,0,this.canvas.width,this.canvas.height),this.ctx.globalCompositeOperation="destination-over",this.ctx.filter=`blur(${this.blurRadius}px)`,this.ctx.drawImage(e,0,0,this.canvas.width,this.canvas.height),this.ctx.restore()}};function hne(e,t,n){const r=new Uint8ClampedArray(t*n*4),i=e.getAsUint8Array();for(let s=0;s<i.length;s+=1)r[s*4]=i[s],r[s*4+1]=i[s],r[s*4+2]=i[s],r[s*4+3]=i[s];const o=new ImageData(r,t,n);return createImageBitmap(o)}var xdt=(e=10,t)=>Adt({blurRadius:e,segmenterOptions:t},"background-blur"),Adt=(e,t="background-processor")=>{if(!(dne.isSupported&&fne.isSupported))throw new Error("processor is not supported in this browser");return new dne(new fne(e),t)};const GE=()=>{const e=b.useContext(Na);return[e.audioEnabled,e.setAudioEnabled]},$Se=()=>{const e=b.useContext(Na);return[e.videoEnabled,e.setVideoEnabled]},fV=()=>{const e=b.useContext(Na);return[e.audioDeviceId,e.setAudioDeviceId]},hV=()=>{const e=b.useContext(Na);return[e.videoDeviceId,e.setVideoDeviceId]},HSe=e=>{const[t,n]=Es();b.useEffect(()=>{(async()=>{var i,o;if(e){if(((i=e.getProcessor())==null?void 0:i.name)!=="background-blur"&&t.media.videoBackground==="blur"){n(s=>({...s,media:{...s.media,applyingBackground:!0}}));try{const s=xdt(20,{delegate:"GPU"});await e.setProcessor(s)}finally{n(s=>({...s,media:{...s.media,applyingBackground:!1}}))}}((o=e.getProcessor())==null?void 0:o.name)==="background-blur"&&!t.media.videoBackground&&await e.stopProcessor()}})()},[e,t.media.videoBackground,n])},Idt="_SettingsDialog_5vh73_1",Rdt="_SettingsCategories_5vh73_6",Pdt="_RenderedSetting_5vh73_20",Odt="_SettingDetails_5vh73_36",Ndt="_SettingLabel_5vh73_45",Mdt="_TeamsSettingsDialog_5vh73_70",js={SettingsDialog:Idt,SettingsCategories:Rdt,RenderedSetting:Pdt,SettingDetails:Odt,SettingLabel:Ndt,TeamsSettingsDialog:Mdt}
vendor: 5,042 bytes, line 1566
1566,Ddt="_TextSpeed_otjay_1",Ldt="_TextSpeedSlider_otjay_8",pne={TextSpeed:Ddt,TextSpeedSlider:Ldt},Fdt="_SliderRoot_17iri_1",jdt="_SliderTrack_17iri_11",Udt="_SliderRange_17iri_19",Bdt="_SliderThumb_17iri_26",tk={SliderRoot:Fdt,SliderTrack:jdt,SliderRange:Udt,SliderThumb:Bdt};function zSe(e,[t,n]){return Math.min(n,Math.max(t,e))}function uy(e,t,{checkForDefaultPrevented:n=!0}={}){return function(i){if(e==null||e(i),n===!1||!i.defaultPrevented)return t==null?void 0:t(i)}}function mne(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function VSe(...e){return t=>{let n=!1;const r=e.map(i=>{const o=mne(i,t);return!n&&typeof o=="function"&&(n=!0),o});if(n)return()=>{for(let i=0;i<r.length;i++){const o=r[i];typeof o=="function"?o():mne(e[i],null)}}}}function KE(...e){return b.useCallback(VSe(...e),e)}var $dt=b.createContext(void 0);function Hdt(e){const t=b.useContext($dt);return e||t||"ltr"}function zdt(e){const t=b.useRef({value:e,previous:e});return b.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}var WSe=b.forwardRef((e,t)=>{const{children:n,...r}=e,i=b.Children.toArray(n),o=i.find(Wdt);if(o){const s=o.props.children,a=i.map(c=>c===o?b.Children.count(s)>1?b.Children.only(null):b.isValidElement(s)?s.props.children:null:c);return h.jsx(r9,{...r,ref:t,children:b.isValidElement(s)?b.cloneElement(s,void 0,a):null})}return h.jsx(r9,{...r,ref:t,children:n})});WSe.displayName="Slot";var r9=b.forwardRef((e,t)=>{const{children:n,...r}=e;if(b.isValidElement(n)){const i=Gdt(n),o=qdt(r,n.props);return n.type!==b.Fragment&&(o.ref=t?VSe(t,i):i),b.cloneElement(n,o)}return b.Children.count(n)>1?b.Children.only(null):null});r9.displayName="SlotClone";var Vdt=({children:e})=>h.jsx(h.Fragment,{children:e});function Wdt(e){return b.isValidElement(e)&&e.type===Vdt}function qdt(e,t){const n={...t};for(const r in t){const i=e[r],o=t[r];/^on[A-Z]/.test(r)?i&&o?n[r]=(...a)=>{o(...a),i(...a)}:i&&(n[r]=i):r==="style"?n[r]={...i,...o}:r==="className"&&(n[r]=[i,o].filter(Boolean).join(" "))}return{...e,...n}}function Gdt(e){var r,i;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(i=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:i.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var Kdt=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],TO=Kdt.reduce((e,t)=>{const n=b.forwardRef((r,i)=>{const{asChild:o,...s}=r,a=o?WSe:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),h.jsx(a,{...s,ref:i})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function gne(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function qSe(...e){return t=>{let n=!1;const r=e.map(i=>{const o=gne(i,t);return!n&&typeof o=="function"&&(n=!0),o});if(n)return()=>{for(let i=0;i<r.length;i++){const o=r[i];typeof o=="function"?o():gne(e[i],null)}}}}function vne(...e){return b.useCallback(qSe(...e),e)}var i9=b.forwardRef((e,t)=>{const{children:n,...r}=e,i=b.Children.toArray(n),o=i.find(Qdt);if(o){const s=o.props.children,a=i.map(c=>c===o?b.Children.count(s)>1?b.Children.only(null):b.isValidElement(s)?s.props.children:null:c);return h.jsx(o9,{...r,ref:t,children:b.isValidElement(s)?b.cloneElement(s,void 0,a):null})}return h.jsx(o9,{...r,ref:t,children:n})});i9.displayName="Slot";var o9=b.forwardRef((e,t)=>{const{children:n,...r}=e;if(b.isValidElement(n)){const i=Jdt(n),o=Xdt(r,n.props);return n.type!==b.Fragment&&(o.ref=t?qSe(t,i):i),b.cloneElement(n,o)}return b.Children.count(n)>1?b.Children.only(null):null});o9.displayName="SlotClone";var Ydt=({children:e})=>h.jsx(h.Fragment,{children:e});function Qdt(e){return b.isValidElement(e)&&e.type===Ydt}function Xdt(e,t){const n={...t};for(const r in t){const i=e[r],o=t[r];/^on[A-Z]/.test(r)?i&&o?n[r]=(...a)=>{o(...a),i(...a)}:i&&(n[r]=i):r==="style"?n[r]={...i,...o}:r==="className"&&(n[r]=[i,o].filter(Boolean).join(" "))}return{...e,...n}}function Jdt(e){var r,i;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(i=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:i.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}function Zdt(e){const t=e+"CollectionProvider",[n,r]=Ob(t),[i,o]=n(t,{collectionRef:{current:null},itemMap:new Map}),s=p=>{const{scope:g,children:m}=p,y=Ae.useRef(null),v=Ae.useRef(new Map).current;return h.jsx(i,{scope:g,itemMap:v,collectionRef:y,children:m})};s.displayName=t;const a=e+"CollectionSlot",c=Ae.forwardRef((p,g)=>{const{scope:m,children:y}=p,v=o(a,m),w=vne(g,v.collectionRef);return h.jsx(i9,{ref:w,children:y})});c.displayName=a;const l=e+"CollectionItemSlot",u="data-radix-collection-item",d=Ae.forwardRef((p,g)=>{const{scope:m,children:y,...v}=p,w=Ae.useRef(null),S=vne(g,w),C=o(l,m);return Ae.useEffect(()=>(C.itemMap.set(w,{ref:w,...v}),()=>
1566void C.itemMap.delete(w))),h.jsx(i9,{[u]:"",ref:S,children:y})});d.displayName=l;function f(p){const g=o(e+"CollectionConsumer",p);return Ae.useCallback(()=>{const y=g.collectionRef.current;if(!y)return[];const v=Array.from(y.querySelectorAll(`[${u}]`));return Array.from(g.itemMap.values()).sort((C,E)=>v.indexOf(C.ref.current)-v.indexOf(E.ref.current))},[g.collectionRef,g.itemMap])}return[{Provider:s,Slot:c,ItemSlot:d},f,r]}var GSe=["PageUp","PageDown"],KSe=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],YSe={"from-left":["Home","PageDown","ArrowDown","ArrowLeft"],"from-right":["Home","PageDown","ArrowDown","ArrowRight"],"from-bottom":["Home","PageDown","ArrowDown","ArrowLeft"],"from-top":["Home","PageDown","ArrowUp","ArrowLeft"]},Vb="Slider",[s9,eft,tft]=Zdt(Vb),[QSe]=Ob(Vb,[tft]),[nft,kO]=QSe(Vb),XSe=b.forwardRef((e,t)=>{const{name:n,min:r=0,max:i=100,step:o=1,orientation:s="horizontal",disabled:a=!1,minStepsBetweenThumbs:c=0,defaultValue:l=[r],value:u,onValueChange:d=()=>{},onValueCommit:f=()=>{},inverted:p=!1,form:g,...m}=e,y=b.useRef(new Set),v=b.useRef(0),S=s==="horizontal"?rft:ift,[C=[],E]=XP({prop:u,defaultProp:l,onChange:U=>{var F;(F=[...y.current][v.current])==null||F.focus(),d(U)}}),T=b.useRef(C);function x(U){const I=lft(C,U);L(U,I)}function O(U){L(U,v.current)}function A(){const U=T.current[v.current];C[v.current]!==U&&f(C)}function L(U,I,{commit:F}={commit:!1}){const P=hft(o),W=pft(Math.round((U-r)/o)*o+r,P),ee=zSe(W,[r,i]);E((Y=[])=>{const X=aft(Y,ee,I);if(fft(X,c*o)){v.current=X.indexOf(ee);const Z=String(X)!==String(Y);return Z&&F&&f(X),Z?X:Y}else return Y})}return h.jsx(nft,{scope:e.__scopeSlider,name:n,disabled:a,min:r,max:i,valueIndexToChangeRef:v,thumbs:y.current,values:C,orientation:s,form:g,children:h.jsx(s9.Provider,{scope:e.__scopeSlider,children:h.jsx(s9.Slot,{scope:e.__scopeSlider,children:h.jsx(S,{"aria-disabled":a,"data-disabled":a?"":void 0,...m,ref:t,onPointerDown:uy(m.onPointerDown,()=>{a||(T.current=C)}),min:r,max:i,inverted:p,onSlideStart:a?void 0:x,onSlideMove:a?void 0:O,onSlideEnd:a?void 0:A,onHomeKeyDown:()=>!a&&L(r,0,{commit:!0}),onEndKeyDown:()=>!a&&L(i,C.length-1,{commit:!0}),onStepKeyDown:({event:U,direction:I})=>{if(!a){const W=GSe.includes(U.key)||U.shiftKey&&KSe.includes(U.key)?10:1,ee=v.current,Y=C[ee],X=o*W*I;L(Y+X,ee,{commit:!0})}}})})})})});XSe.displayName=Vb;var[JSe,ZSe]=QSe(Vb,{startEdge:"left",endEdge:"right",size:"width",direction:1}),rft=b.forwardRef((e,t)=>{const{min:n,max:r,dir:i,inverted:o,onSlideStart:s,onSlideMove:a,onSlideEnd:c,onStepKeyDown:l,...u}=e,[d,f]=b.useState(null),p=KE(t,S=>f(S)),g=b.useRef(void 0),m=Hdt(i),y=m==="ltr",v=y&&!o||!y&&o;function w(S){const C=g.current||d.getBoundingClientRect(),E=[0,C.width],x=pV(E,v?[n,r]:[r,n]);return g.current=C,x(S-C.left)}return h.jsx(JSe,{scope:e.__scopeSlider,startEdge:v?"left":"right",endEdge:v?"right":"left",direction:v?1:-1,size:"width",children:h.jsx(e_e,{dir:m,"data-orientation":"horizontal",...u,ref:p,style:{...u.style,"--radix-slider-thumb-transform":"translateX(-50%)"},onSlideStart:S=>{const C=w(S.clientX);s==null||s(C)},onSlideMove:S=>{const C=w(S.clientX);a==null||a(C)},onSlideEnd:()=>{g.current=void 0,c==null||c()},onStepKeyDown:S=>{const E=YSe[v?"from-left":"from-right"].includes(S.key);l==null||l({event:S,direction:E?-1:1})}})})}),ift=b.forwardRef((e,t)=>{const{min:n,max:r,inverted:i,onSlideStart:o,onSlideMove:s,onSlideEnd:a,onStepKeyDown:c,...l}=e,u=b.useRef(null),d=KE(t,u),f=b.useRef(void 0),p=!i;function g(m){const y=f.current||u.current.getBoundingClientRect(),v=[0,y.height],S=pV(v,p?[r,n]:[n,r]);return f.current=y,S(m-y.top)}return h.jsx(JSe,{scope:e.__scopeSlider,startEdge:p?"bottom":"top",endEdge:p?"top":"bottom",size:"height",direction:p?1:-1,children:h.jsx(e_e,{"data-orientation":"vertical",...l,ref:d,style:{...l.style,"--radix-slider-thumb-transform":"translateY(50%)"},onSlideStart:m=>{const y=g(m.clientY);o==null||o(y)},onSlideMove:m=>{const y=g(m.clientY);s==null||s(y)},onSlideEnd:()=>{f.current=void 0,a==null||a()},onStepKeyDown:m=>{const v=YSe[p?"from-bottom":"from-top"].includes(m.key);c==null||c({event:m,direction:v?-1:1})}})})}),e_e=b.forwardRef((e,t)=>
1566{const{__scopeSlider:n,onSlideStart:r,onSlideMove:i,onSlideEnd:o,onHomeKeyDown:s,onEndKeyDown:a,onStepKeyDown:c,...l}=e,u=kO(Vb,n);return h.jsx(TO.span,{...l,ref:t,onKeyDown:uy(e.onKeyDown,d=>{d.key==="Home"?(s(d),d.preventDefault()):d.key==="End"?(a(d),d.preventDefault()):GSe.concat(KSe).includes(d.key)&&(c(d),d.preventDefault())}),onPointerDown:uy(e.onPointerDown,d=>{const f=d.target;f.setPointerCapture(d.pointerId),d.preventDefault(),u.thumbs.has(f)?f.focus():r(d)}),onPointerMove:uy(e.onPointerMove,d=>{d.target.hasPointerCapture(d.pointerId)&&i(d)}),onPointerUp:uy(e.onPointerUp,d=>{const f=d.target;f.hasPointerCapture(d.pointerId)&&(f.releasePointerCapture(d.pointerId),o(d))})})}),t_e="SliderTrack",n_e=b.forwardRef((e,t)=>{const{__scopeSlider:n,...r}=e,i=kO(t_e,n);return h.jsx(TO.span,{"data-disabled":i.disabled?"":void 0,"data-orientation":i.orientation,...r,ref:t})});n_e.displayName=t_e;var a9="SliderRange",r_e=b.forwardRef((e,t)=>{const{__scopeSlider:n,...r}=e,i=kO(a9,n),o=ZSe(a9,n),s=b.useRef(null),a=KE(t,s),c=i.values.length,l=i.values.map(f=>o_e(f,i.min,i.max)),u=c>1?Math.min(...l):0,d=100-Math.max(...l);return h.jsx(TO.span,{"data-orientation":i.orientation,"data-disabled":i.disabled?"":void 0,...r,ref:a,style:{...e.style,[o.startEdge]:u+"%",[o.endEdge]:d+"%"}})});r_e.displayName=a9;var c9="SliderThumb",i_e=b.forwardRef((e,t)=>{const n=eft(e.__scopeSlider),[r,i]=b.useState(null),o=KE(t,a=>i(a)),s=b.useMemo(()=>r?n().findIndex(a=>a.ref.current===r):-1,[n,r]);return h.jsx(oft,{...e,ref:o,index:s})}),oft=b.forwardRef((e,t)=>{const{__scopeSlider:n,index:r,name:i,...o}=e,s=kO(c9,n),a=ZSe(c9,n),[c,l]=b.useState(null),u=KE(t,w=>l(w)),d=c?s.form||!!c.closest("form"):!0,f=iz(c),p=s.values[r],g=p===void 0?0:o_e(p,s.min,s.max),m=cft(r,s.values.length),y=f==null?void 0:f[a.size],v=y?uft(y,g,a.direction):0;return b.useEffect(()=>{if(c)return s.thumbs.add(c),()=>{s.thumbs.delete(c)}},[c,s.thumbs]),h.jsxs("span",{style:{transform:"var(--radix-slider-thumb-transform)",position:"absolute",[a.startEdge]:`calc(${g}% + ${v}px)`},children:[h.jsx(s9.ItemSlot,{scope:e.__scopeSlider,children:h.jsx(TO.span,{role:"slider","aria-label":e["aria-label"]||m,"aria-valuemin":s.min,"aria-valuenow":p,"aria-valuemax":s.max,"aria-orientation":s.orientation,"data-orientation":s.orientation,"data-disabled":s.disabled?"":void 0,tabIndex:s.disabled?void 0:0,...o,ref:u,style:p===void 0?{display:"none"}:e.style,onFocus:uy(e.onFocus,()=>{s.valueIndexToChangeRef.current=r})})}),d&&h.jsx(sft,{name:i??(s.name?s.name+(s.values.length>1?"[]":""):void 0),form:s.form,value:p},r)]})});i_e.displayName=c9;var sft=e=>{const{value:t,...n}=e,r=b.useRef(null),i=zdt(t);return b.useEffect(()=>{const o=r.current,s=window.HTMLInputElement.prototype,c=Object.getOwnPropertyDescriptor(s,"value").set;if(i!==t&&c){const l=new Event("input",{bubbles:!0});c.call(o,t),o.dispatchEvent(l)}},[i,t]),h.jsx("input",{style:{display:"none"},...n,ref:r,defaultValue:t})};function aft(e=[],t,n){const r=[...e];return r[n]=t,r.sort((i,o)=>i-o)}function o_e(e,t,n){const o=100/(n-t)*(e-t);return zSe(o,[0,100])}function cft(e,t){return t>2?`Value ${e+1} of ${t}`:t===2?["Minimum","Maximum"][e]:void 0}function lft(e,t){if(e.length===1)return 0;const n=e.map(i=>Math.abs(i-t)),r=Math.min(...n);return n.indexOf(r)}function uft(e,t,n){const r=e/2,o=pV([0,50],[0,r]);return(r-o(t)*n)*n}function dft(e){return e.slice(0,-1).map((t,n)=>e[n+1]-t)}function fft(e,t){if(t>0){const n=dft(e);return Math.min(...n)>=t}return!0}function pV(e,t){return n=>{if(e[0]===e[1]||t[0]===t[1])return t[0];const r=(t[1]-t[0])/(e[1]-e[0]);return t[0]+r*(n-e[0])}}function hft(e){return(String(e).split(".")[1]||"").length}function pft(e,t){const n=Math.pow(10,t);return Math.round(e*n)/n}var mft=XSe,gft=n_e,vft=r_e,yft=i_e;const s_e=e=>h.jsxs(mft,{className:tk.SliderRoot,min:e.min,max:e.max,step:1,value:[e.value],onValueChange:t=>e.onChange(t[0]),children:[h.jsx(gft,{className:tk.SliderTrack,children:h.jsx(vft,{className:tk.SliderRange})}),h.jsx(yft,{className:tk.SliderThumb,"aria-label":e.label})]});function a_e(){const[e,t]=Ch(),{setOrganization:n}=Md();return b.useEffect(()=>{n&&n(r=>r&&{...r,default_text_translation_setting:{...r.default_text_translation_setting,text_speed:e.settings.textSpeed}})},[n,e.settings]),h.jsxs("div",{className:pne.TextSpeed,children:[h.jsx("label",{children:"Text speed"}),h.jsxs("div",{className:pne.TextSpeedSlider,children:["Live",h.jsx(s_e,{min:0,max:5,value:e.settings.textSpeed,onChange:r=>t(i=>({...i,settings:{...i.settings,textSpeed:r}})),label:"Text size"}),"5s"]})]})}function bft(e){return St({attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M416 32H31.9C14.3 32 0 46.5 0 64.3v383.4C0 465.5 14.3 480 31.9 480H416c17.6 0 32-14.5 32-32.3V64.3c0-17.8-14.4-32.3-32-32.3zM135.4 416H69V202.2h66.5V416zm-33.2-243c-21.3 0-38.5-17.3-38.5-38.5S80.9 96 102.2 96c21.2 0 38.5 17.3 38.5 38.5 0 21.3-17.2 38.5-38.5 38.5zm282.1 243h-66.4V312c0-24.8-.5-56.7-34.5-56.7-34.6 0-39.9 27-39.9 54.9V416h-66.4V202.2h63.7v29.2h.9c8.9-16.8 30.6-34.5 62.9-34.5 67.2 0 79.7 44.3 79.7 101.9V416z"},child:[]}]})(e)}function wft(e){return St({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M201.5 305.5c-13.8 0-24.9-11.1-24.9-24.6 0-13.8 11.1-24.9 24.9-24.9 13.6 0 24.6 11.
15661 24.6 24.9 0 13.6-11.1 24.6-24.6 24.6zM504 256c0 137-111 248-248 248S8 393 8 256 119 8 256 8s248 111 248 248zm-132.3-41.2c-9.4 0-17.7 3.9-23.8 10-22.4-15.5-52.6-25.5-86.1-26.6l17.4-78.3 55.4 12.5c0 13.6 11.1 24.6 24.6 24.6 13.8 0 24.9-11.3 24.9-24.9s-11.1-24.9-24.9-24.9c-9.7 0-18 5.8-22.1 13.8l-61.2-13.6c-3-.8-6.1 1.4-6.9 4.4l-19.1 86.4c-33.2 1.4-63.1 11.3-85.5 26.8-6.1-6.4-14.7-10.2-24.1-10.2-34.9 0-46.3 46.9-14.4 62.8-1.1 5-1.7 10.2-1.7 15.5 0 52.6 59.2 95.2 132 95.2 73.1 0 132.3-42.6 132.3-95.2 0-5.3-.6-10.8-1.9-15.8 31.3-16 19.8-62.5-14.9-62.5zM302.8 331c-18.2 18.2-76.1 17.9-93.6 0-2.2-2.2-6.1-2.2-8.3 0-2.5 2.5-2.5 6.4 0 8.6 22.8 22.8 87.3 22.8 110.2 0 2.5-2.2 2.5-6.1 0-8.6-2.2-2.2-6.1-2.2-8.3 0zm7.7-75c-13.6 0-24.6 11.1-24.6 24.9 0 13.6 11.1 24.6 24.6 24.6 13.8 0 24.9-11.1 24.9-24.6 0-13.8-11-24.9-24.9-24.9z"},child:[]}]})(e)}function Sft(e){return St({attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M416 208H32c-17.67 0-32 14.33-32 32v32c0 17.67 14.33 32 32 32h384c17.67 0 32-14.33 32-32v-32c0-17.67-14.33-32-32-32z"},child:[]}]})(e)}function _ft(e){return St({attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M416 208H272V64c0-17.67-14.33-32-32-32h-32c-17.67 0-32 14.33-32 32v144H32c-17.67 0-32 14.33-32 32v32c0 17.67 14.33 32 32 32h144v144c0 17.67 14.33 32 32 32h32c17.67 0 32-14.33 32-32V304h144c17.67 0 32-14.33 32-32v-32c0-17.67-14.33-32-32-32z"},child:[]}]})(e)}function Cft(e){return St({attr:{viewBox:"0 0 496 512"},child:[{tag:"path",attr:{d:"M248 8C111 8 0 119 0 256s111 248 248 248 248-111 248-248S385 8 248 8zm0 448c-110.3 0-200-89.7-200-200S137.7 56 248 56s200 89.7 200 200-89.7 200-200 200zm-80-216c17.7 0 32-14.3 32-32s-14.3-32-32-32-32 14.3-32 32 14.3 32 32 32zm160 0c17.7 0 32-14.3 32-32s-14.3-32-32-32-32 14.3-32 32 14.3 32 32 32zm4 72.6c-20.8 25-51.5 39.4-84 39.4s-63.2-14.3-84-39.4c-8.5-10.2-23.7-11.5-33.8-3.1-10.2 8.5-11.5 23.6-3.1 33.8 30 36 74.1 56.6 120.9 56.6s90.9-20.6 120.9-56.6c8.5-10.2 7.1-25.3-3.1-33.8-10.1-8.4-25.3-7.1-33.8 3.1z"},child:[]}]})(e)}const nk={en:{SITE_LANGUAGE:"Site Language",YOUR_AI_POWERED_INTERPRETER:"Your AI-powered Interpreter",CHOOSE_YOUR_LANGUAGE:"Choose your language (translate to)",SESSION:"Session",SPEAKER:"Speaker",TIME:"Time",JOIN:"Join",EVENT_DISABLED:"This event hasn't started yet.",CHECK_LATER:"Please check back later.",HAVING_ISSUES:"Having issues?",CONTACT_SUPPORT:"Contact support",PRIVACY_POLICY:"Privacy Policy",TERMS_OF_SERVICE:"Terms of Service",VOICE:"Voice",LEAVE_ARE_YOU_SURE:"Are you sure you want to leave the session?",LEAVE:"Leave",CANCEL:"Cancel",GO_TO_SURVEY:"Yes! Take me to the survey",DECLINE_SURVEY:"Sadly decline :(",TEXT_TRANSLATION:"Text Translation",TEXT_CUSTOMIZATION:"Text Customization",TEXT_SPEED:"Text Speed",TEXT_TRANSLATION_DISPLAY:"Text Translation Display",TEXT_SIZE:"Text Size",TEXT_COLOR:"Text Color",TEXT:"Text",VOICE_TO_VOICE:"Voice-to-Voice interpretation in progress...",LIVE:"Live",SUPPORT:"Support",FOR_TECHNICAL_SUPPORT:"For technical support:",FOR_BILLING_OR_OTHER_QUESTIONS:"For billing or other questions:",OR_CALL_US_AT:"Or call us at",THIS_EVENT_HAS_ENDED:"This event has ended. Thank you!",CONFIRM:"Confirm",RESUME_VOICE_TRANSLATION:"Resume Voice Translation",BROW
1566SER_PAUSED_AUDIO:"Your browser has paused audio playback, please confirm to resume the voice translation.",LANGUAGE_SEARCH:"Language Search",PLEASE_SELECT_LANGUAGE:"Please select the language that you speak",PRESS_TO_START_VOICE_INTERPRETATION:"Press to start voice interpretation",SURVEY_RATING:"Thank you for using Byrdhouse AI! How would you rate your experience?",HOW_TO_IMPROVE:"Could you tell us more on how we can improve?",SHARE_AROUND_THE_WORLD:"Share your real-time translation experience with the world 🌎",TWEET_AND_SHARE:"Tweet and Share",SHARE_YOUR_EXCITEMENT:"Share Your Excitement"},es:{SITE_LANGUAGE:"Idioma del sitio",YOUR_AI_POWERED_INTERPRETER:"Tu intérprete con tecnología AI",CHOOSE_YOUR_LANGUAGE:"Elige tu idioma (traducir a)",SESSION:"Sesión",SPEAKER:"Orador",TIME:"Hora",JOIN:"Unirse",EVENT_DISABLED:"Este evento no ha comenzado todavía.",CHECK_LATER:"Por favor, vuelve más tarde.",HAVING_ISSUES:"¿Tienes problemas?",CONTACT_SUPPORT:"Contactar soporte",PRIVACY_POLICY:"Política de privacidad",TERMS_OF_SERVICE:"Términos del servicio",VOICE:"Voz",LEAVE:"Salir",LEAVE_ARE_YOU_SURE:"¿Estás seguro de que quieres salir de la sesión?",CANCEL:"Cancelar",GO_TO_SURVEY:"¡Sí! Llévame a la encuesta",DECLINE_SURVEY:"Lamentablemente declinar :(",TEXT_TRANSLATION:"Traducción de texto",TEXT_CUSTOMIZATION:"Personalización de texto",TEXT_SPEED:"Velocidad de texto",TEXT_TRANSLATION_DISPLAY:"Visualización de traducción de texto",TEXT_SIZE:"Tamaño del texto",TEXT_COLOR:"Color del texto",TEXT:"Texto",VOICE_TO_VOICE:"Interpretación de voz a voz en progreso...",LIVE:"En vivo",SUPPORT:"Soporte",FOR_TECHNICAL_SUPPORT:"Para soporte técnico:",FOR_BILLING_OR_OTHER_QUESTIONS:"Para facturación u otras preguntas:",OR_CALL_US_AT:"O llámenos al",THIS_EVENT_HAS_ENDED:"Este evento ha terminado. ¡Gracias!",CONFIRM:"Confirmar",RESUME_VOICE_TRANSLATION:"Reanudar traducción de voz",BROWSER_PAUSED_AUDIO:"Tu navegador ha pausado la reproducción de audio, por favor confirma para reanudar la traducción de voz.",LANGUAGE_SEARCH:"Búsqueda de idioma",PLEASE_SELECT_LANGUAGE:"Por favor, selecciona el idioma que hablas",PRESS_TO_START_VOICE_INTERPRETATION:"Presiona para iniciar la interpretación de voz",SURVEY_RATING:"¡Gracias por usar Byrdhouse AI! ¿Cómo calificarías tu experiencia?",HOW_TO_IMPROVE:"¿Podrías decirnos más sobre cómo podemos mejorar?",SHARE_AROUND_THE_WORLD:"Comparte tu experiencia de traducción en tiempo real con el mundo 🌎",TWEET_AND_SHARE:"Tuitea y comparte",SHARE_YOUR_EXCITEMENT:"Comparte tu emoción"},fr:{SITE_LANGUAGE:"Langue du site",YOUR_AI_POWERED_INTERPRETER:"Votre interprète alimenté par IA",CHOOSE_YOUR_LANGUAGE:"Choisissez votre langue (traduire en)",SESSION:"Session",SPEAKER:"Orateur",TIME:"Heure",JOIN:"Rejoindre",EVENT_DISABLED:"Cet événement n'a pas encore commencé.",CHECK_LATER:"Veuillez vérifier plus tard.",HAVING_ISSUES:"Des problèmes?",CONTACT_SUPPORT:"Contacter le support",PRIVACY_POLICY:"Politique de confidentialité",TERMS_OF_SERVICE:"Conditions d'utilisation",VOICE:"Voix",LEAVE:"Quitter",LEAVE_ARE_YOU_SURE:"Êtes-vous sûr de vouloir quitter la session?",CANCEL:"Annuler",GO_TO_SURVEY:"Oui ! Amenez-moi au sondage",DECLINE_SURVEY:"Décliner malheureusement :(",TEXT_TRANSLATION:"Traduction de texte",TEXT_CUSTOMIZATION:"Personnalisation du texte",TEXT_SPEED:"Vitesse du texte",TEXT_TRANSLATION_DISPLAY:"Affichage de la traduction de texte",TEXT_SIZE:"Taille du texte",TEXT_COLOR:"Couleur du texte",TEXT:"Texte",VOICE_TO_VOICE:"Interprétation voix-à-voix en cours...",LIVE:"En direct",SUPPORT:"Support",FOR_TECHNICAL_SUPPORT:"Pour le support technique:",FOR_BILLING_OR_OTHER_QUESTIONS:"Pour des questions de facturation ou autres:",OR_CALL_US_AT:"Ou appelez-nous au",THIS_EVENT_HAS_ENDED:"Cet événement est terminé. Merci !",CONFIRM:"Confirmer",RESUME_VOICE_TRANSLATION:"Reprendre la traduction vocale",BROWSER_PAUSED_AUDIO:"Votre navigateur a interrompu la lecture audio, veuillez confirmer pour reprendre la traduction vocale.",LANGUAGE_SEARCH:"Recherche de langue",PLEASE_SELECT_LANGUAGE:"Veuillez sélectionner la langue que vous parlez",PRESS_TO_START_VOICE_INTERPRETATION:"Appuyez pour démarrer l'interprétation vocale",SURVEY_RATING:"Merci d'avoir utilisé Byrdhouse AI ! Comment évalueriez-vous votre expérience ?",HOW_TO_IMPROVE:"Pourriez-vous nous en dire plus sur comment nous pourrions nous améliorer ?",SHARE_AROUND_THE_WORLD:"Partagez votre expérience de traduction en temps réel avec le monde 🌎",TWEET_AND_SHARE:"Tweetez et partagez",SHARE_YOUR_EXCITEMENT:"Partagez votre enthousiasme"}},Eft=()=>{const e=b.useContext(Na);return b.useEffect(()=>{localStorage.setItem(Vn.SITE_LANGUAGE,e.localization.siteLanguage)},[e.localization.siteLanguage]),[e.localization,e.setLocalization]},c_e=()=>{const[e]=Eft();return b.useCallback(t=>!Object.keys(nk).includes(e.siteLanguage)||!nk[e.siteLanguage]?nk.en[t]:nk[e.siteLanguage][t],[e.siteLanguage])},Tft="_TextCustomization_1mk1n_1",kft="_TextSizeSlider_1mk1n_13",xft="_TextCaptionExamples_1mk1n_29",F6={TextCustomization:Tft,TextSizeSlider:kft,TextCaptionExamples:xft};function l_e(){const e=c_e(),t=b.useMemo(()=>[{text:"#101010",background:"#ccc"},{text:"#fff",background:"#101010"},{text:"#101010",background:"#fff"},{text:"#fff",background:"#ff5314"},{text:"#fff",background:"#3c75ee"}],[]),[n,r]=Ch(),{setOrganization:i}=Md();b.useEffect(()=>{i&&i(u=>u&&{...u,default_text_translation_setting:{...u.default_text_translation_setting,text_size:n.settings.textSize,text_color:n.settings.textColor,text_background_color:n.settings.textBackgroun
1566dColor}})},[i,n.settings]);const o=12,s=38,a=b.useCallback(u=>{r(d=>({...d,settings:{...d.settings,textSize:u}}))},[r]),c=b.useCallback(u=>Math.min(Math.max(u,o),s),[]),l=b.useCallback(u=>{r(d=>({...d,settings:{...d.settings,textSize:c(d.settings.textSize+u)}}))},[r,c]);return h.jsxs("div",{className:F6.TextCustomization,children:[h.jsxs("div",{children:[h.jsx("label",{children:"Text size"}),h.jsx(k1e,{text:"Welcome to Langfinity!",edited:!1}),h.jsxs("div",{className:F6.TextSizeSlider,children:[h.jsx(Sft,{onClick:()=>l(-1)}),h.jsx(s_e,{min:o,max:s,value:n.settings.textSize,onChange:u=>a(u),label:"Text size"}),h.jsx(_ft,{onClick:()=>l(1)})]})]}),h.jsxs("div",{children:[h.jsx("label",{children:"Text color"}),h.jsx("div",{className:F6.TextCaptionExamples,children:t.map((u,d)=>h.jsx("div",{style:{border:n.settings.textColor===u.text&&n.settings.textBackgroundColor===u.background?"2px solid #2672ED":"2px solid transparent",color:u.text,backgroundColor:u.background},onClick:()=>r(f=>({...f,settings:{...f.settings,textColor:u.text,textBackgroundColor:u.background}})),children:e("TEXT")},d))})]})]})}const Aft="_VideoBackgrounds_1hc7t_1",Ift={VideoBackgrounds:Aft};function u_e(){const[e,t]=Es(),n=b.useCallback(r=>{switch(r){case"blur":return"Blur"}return"None"},[]);return h.jsx("div",{className:Ift.VideoBackgrounds,children:SDe.map((r,i)=>h.jsx("div",{"aria-selected":e.media.videoBackground===r,onClick:()=>{r?localStorage.setItem(Vn.VIDEO_BACKGROUND,r):localStorage.removeItem(Vn.VIDEO_BACKGROUND),t(o=>({...o,media:{...o.media,videoBackground:r}}))},children:n(r)},i))})}const Rft="_Toggle_1lds2_1",Pft="_NoPointer_1lds2_13",Oft="_Slider_1lds2_24",f_={Toggle:Rft,NoPointer:Pft,Slider:Oft},kC=e=>h.jsxs("label",{className:`${f_.Toggle} ${e.noPointer?f_.NoPointer:""}`,children:[h.jsx("div",{"aria-checked":e.enabled}),h.jsx("span",{className:f_.Slider})]});function Ep(e){return h.jsxs("label",{className:f_.Toggle,children:[h.jsx("input",{type:"checkbox",checked:e.enabled,onChange:()=>e.onChange(!e.enabled)}),h.jsx("span",{className:f_.Slider})]})}function Nft(e){const{devices:t,setActiveMediaDevice:n}=T$({kind:"audioinput",track:e.localAudioTrack}),{saveAudioInputDeviceId:r}=uv(),[i,o]=fV();return b.useEffect(()=>{r(i)},[i,r]),h.jsxs("div",{className:js.SettingDetails,children:[h.jsx("div",{className:js.SettingLabel,children:"Audio Input (Microphone)"}),h.jsx(Ia,{triggerClassName:js.SelectTrigger,selected:i,onChange:s=>{n(s),o(s)},items:t.map(s=>({value:s.deviceId,label:s.label})),defaultLabel:"Default"})]})}function Mft(e){const{devices:t,setActiveMediaDevice:n}=T$({kind:"videoinput",track:e.localVideoTrack}),{saveVideoInputDeviceId:r}=uv(),[i,o]=hV();b.useEffect(()=>{r(i)},[i,r]);const s=b.useMemo(()=>Xs(),[]),a=ks();return h.jsxs("div",{className:js.SettingDetails,children:[h.jsx("div",{className:js.SettingLabel,children:"Video Input (Camera)"}),h.jsx(Ia,{triggerClassName:js.SelectTrigger,selected:i,onChange:c=>{n(c),o(c)},items:t.map(c=>({value:c.deviceId,label:c.label})),defaultLabel:"Default"}),(s==null?void 0:s.name)==="Chrome"&&!a&&h.jsx(u_e,{})]})}const yne=["audio","video","voice-avatar","text-customization","text-speed","text-translation"];function d_e(e){const{room:t,organization:n,loading:r}=Rr(),i=b.useMemo(()=>{if(!e.hiddenCategories)return yne;const f=[...e.hiddenCategories];return n!=null&&n.voice_translation_enabled||f.push("voice-avatar"),yne.filter(p=>!f.includes(p))},[e.hiddenCategories,n]),[o,s]=Ch();b.useEffect(()=>{localStorage.setItem(Vn.LAYOUT_SETTINGS,JSON.stringify(o.settings))},[o.settings]);const a=b.useCallback(f=>{switch(f){case"audio":return"Audio";case"video":return"Video";
1566case"voice-avatar":return"Voice avatar";case"text-customization":return"Text customization";case"text-speed":return"Text speed";case"text-translation":return"Text translation"}},[]),[c,l]=b.useState(e.initialSelectedSetting??i[0]);b.useEffect(()=>{i.includes(c)||l(i[0])},[i,c]);const u=Pb(),d=b.useMemo(()=>{switch(c){case"audio":return h.jsx(Nft,{localAudioTrack:e.localAudioTrack});case"video":return h.jsx(Mft,{localVideoTrack:e.localVideoTrack});case"voice-avatar":return h.jsx("div",{className:js.SettingDetails,children:h.jsx(xbe,{selectedVoiceId:t==null?void 0:t.default_voice_avatar,basic:!(n!=null&&n.voice_avatar_enabled),locale:u||"en-US"})});case"text-customization":return h.jsx("div",{className:js.SettingDetails,children:h.jsx(l_e,{})});case"text-speed":return h.jsx("div",{className:js.SettingDetails,children:h.jsx(a_e,{})});case"text-translation":return h.jsxs("div",{className:js.SettingDetails,children:[h.jsx("label",{children:"Enable text translation"}),h.jsx(Ep,{enabled:o.settings.textTranslationEnabled,onChange:f=>s(p=>({...p,settings:{...p.settings,textTranslationEnabled:f}}))})]})}},[c,e.localAudioTrack,e.localVideoTrack,u,t==null?void 0:t.default_voice_avatar,n==null?void 0:n.voice_avatar_enabled,o.settings.textTranslationEnabled,s]);return!t||!n||r?h.jsx(Sn,{}):h.jsx("div",{className:`${js.SettingsDialog} ${e.teams?js.TeamsSettingsDialog:""}`,children:h.jsxs("div",{className:js.RenderedSetting,children:[h.jsx("div",{className:js.SettingsCategories,children:i.map(f=>h.jsx("div",{"aria-selected":c===f,onClick:()=>l(f),children:a(f)},f))}),d]})})}function $c(e){return h.jsx(xs,{title:"Settings",trigger:e.trigger,className:js.SettingsDialog,content:h.jsx(d_e,{...e})})}const Dft="_EventTitles_1ppe0_1",Lft={EventTitles:Dft};function xO(e){const t=b.useMemo(()=>Intl.DateTimeFormat().resolvedOptions().timeZone,[]),n=b.useMemo(()=>new Date().toLocaleTimeString("en-US",{timeZoneName:"short"}).split(" ")[2],[]),r=b.useMemo(()=>{const i=new Date(e.start),o=new Date(e.end),s=new Date(i.toLocaleString("en-US",{timeZone:t})),a=new Date(o.toLocaleString("en-US",{timeZone:t})),c=s.toLocaleDateString("en-US",{weekday:"long",month:"long",day:"numeric",year:"numeric"}),l=s.toLocaleTimeString("en-US",{hour:"numeric",minute:"numeric",hour12:!0}),u=a.toLocaleTimeString("en-US",{hour:"numeric",minute:"numeric",hour12:!0}),d=w=>{const S=["th","st","nd","rd"],C=w%100;return S[(C-20)%10]||S[C]||S[0]},f=s.getDate(),p=f+d(f),[g,m,,y]=c.split(" "),v=`${g} ${m} ${p}, ${y}`;return e.reoccurring?`${l} - ${u} ${n}`:`${v} ${l} - ${u} ${n}`},[e.start,e.end,e.reoccurring,t,n]);return h.jsx(h.Fragment,{children:r})}const Fft=()=>{const e=mme(),t=b.useMemo(()=>e.filter(n=>!n.isAgent).filter(n=>!!n.metadata).filter(n=>{try{return JSON.parse(n.metadata).participant_type==="viewer"}catch{}return!1}).length,[e]);return h.jsxs(h.Fragment,{children:[" ","· ",t," participant",t===1?"":"s"]})},AO=e=>h.jsxs("div",{className:Lft.EventTitles,children:[h.jsx("h2",{children:e.room.name}),e.room.start_time&&e.room.end_time&&h.jsx("p",{children:h.jsx(xO,{start:e.room.start_time.toString(),end:e.room.end_time.toString(),reoccurring:e.room.reoccurring})}),h.jsxs("p",{children:[e.room.languages.map(t=>Kr(t)).join(", "),!e.hideParticipants&&h.jsx(Fft,{})]})]});function jft(e){return St({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"},child:[]},{tag:"polyline",attr:{points:"7 10 12 15 17 10"},child:[]},{tag:"line",attr:{x1:"12",y1:"15",x2:"12",y2:"3"},child:[]}]})(e)}function Uft(e){return St({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4"},child:[]},{tag:"polyline",attr:{points:"16 17 21 12 16 7"},child:[]},{tag:"line",attr:{x1:"21",y1:"12",x2:"9",y2:"12"},child:[]}]})(e)}function AR(e){return St({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"line",attr:{x1:"1",y1:"1",x2:"23",y2:"23"},child:[]},{tag:"path",attr:{d:"M9 9v3a3 3 0 0 0 5.12 2.12M15 9.34V4a3 3 0 0 0-5.94-.6"},child:[]},{tag:"path",attr:{d:"M17 16.95A7 7 0 0 1 5 12v-2m14 0v2a7 7 0 0 1-.11 1.23"},child:[]},{tag:"line",attr:{x1:"12",y1:"19",x2:"12",y2:"23"},child:[]},{tag:"line",attr:{x1:"8",y1:"23",x2:"16",y2:"23"},child:[]}]})(e)}function IR(e){return St({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M12 1a3 3 0 0 0-3 3v8a3 3 0 0 0 6 0V4a3 3 0 0 0-3-3z"},child:[]},{tag:"path",attr:{d:"M19 10v2a7 7 0 0 1-14 0v-2"},child:[]},{tag:"line",attr:{x1:"12",y1:"19",x2:"12",y2:"23"},child:[]},{tag:"line",attr:{x1:"8",y1:"23",x2:"16",y2:"23"},child:[]}]})(e)}function Bft(e){return St({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M16 16v1a2 2 0 0 1-2 2H3a2 2 0 0 1-2-2V7a2 2 0 0 1 2-2h2m5.66 0H14a2 2 0 0 1 2 2v3.34l1 1L23 7v10"},child:[]},{tag:"line",attr:{x1:"1",y1:"1",x2:"23",y2:"23"},child:[]}]})(e)}function $ft(e){return St({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"polygon",attr:{points:"23 7 16 12 23 17 23 7"},child:[]},{tag:"rect",attr:{x:"1",y:"5",width:"15",height:"14",rx:"2",ry:"2"},child:[]}]})(e)}function IO(e){const{saveAudioInputDeviceId:t}=uv(),[n,r]=GE(),[i,o]=fV();b.useEffect(()=>{t(i)},[i,t]);const s=ls();return h.jsxs(h.Fragment,{children:[h.jsx(mP,{className:e.className,initialState:e.initialState,source:Re.Source.Microphone,onChange:(a,c)=>{c&&s({type:"toggle_mic",details:{enabled:a}}),e.onChange&&e.onChange(a,c),r(a)},showIcon:!1,children:e.toggle||(n?h.jsx(IR,{}):h.jsx(AR,{}))}),e.track&&h.jsx("div",{style:{display:"none"},children:h.jsx(wme,{initialSelection:i,kind:"audioinput",tracks:{audioinput:e.track},onActiveDeviceChange:(a,c)=>o(c),children:"Microphone"})})]})}const f_e=e=>{const[t,n]=b.useState(!1),[r]=GE();return h.jsx(xs,{title:e.title,open:t,onOpenChange:n,trigger:h.jsx("button",{children:h.jsx(kC,{enabled:r})}),content:h.jsxs("div",{className:a_.Content,children:[h.jsx("h3",{children:e.description}),h.jsxs("div",{className:a_.Buttons,children:[h.jsx(qe,{color:"gray",backgroundColor:"black",borderColor:"dark-gray",onClick:()=>n(!1),children:"Cancel"}),h.jsx(IO,{className:a_.MicToggle,initialState:r,toggle:r?"Stop":"Start",onChange:i=>{i!==r&&n(!1)}})]})]})})}
1566,h_e=(e,t,n)=>b.useMemo(()=>e.translation_seconds_remaining<=0?!0:t?n==="starter"&&e.translation_seconds_remaining<=1200||n!=="starter"&&e.translation_seconds_remaining<=600:!1,[t,n,e.translation_seconds_remaining]),gm=e=>{const[t]=Jt(),n=sO(e.organization),r=h_e(e.organization,t.auth,n),i=b.useMemo(()=>n==="starter"?h.jsxs("h3",{className:e.className,children:[h.jsx("span",{style:{color:e.organization.translation_seconds_remaining>0?"var(--langfinity-green)":"var(--langfinity-red)"},children:Math.round(e.organization.translation_seconds_remaining/60)})," ","of 20 min remaining"," ",h.jsx(It,{style:{color:"white",textDecoration:"underline"},target:"_blank",to:e.goToCalendly?"https://calendly.com/d/cs8h-bpy-tzc/langfinity-intro":"/billing",children:"Upgrade now"})]}):h.jsxs("h3",{className:e.className,children:[h.jsx("span",{style:{color:e.organization.translation_seconds_remaining>0?"var(--langfinity-green)":"var(--langfinity-red)"},children:Math.round(e.organization.translation_seconds_remaining/60)})," ","min remaining"," ",h.jsx(It,{style:{color:"white",textDecoration:"underline"},target:"_blank",to:e.goToCalendly?"https://calendly.com/d/cs8h-bpy-tzc/langfinity-intro":"/billing",children:"Get more"})]}),[n,e.goToCalendly,e.className,e.organization.translation_seconds_remaining]);if(r)return i};gm.useIsUpgradeNowVisible=h_e;const Hft="_Content_1atic_1",zft={Content:Hft},p_e=e=>{const[t,n]=b.useState("");return h.jsx(xs,{title:"Event pin",open:!0,className:zft.Content,unclosable:!0,content:h.jsxs(h.Fragment,{children:[h.jsxs("div",{children:[h.jsx("h2",{children:"Enter pin"}),h.jsx("input",{type:"text",placeholder:"Ex. 1234",onChange:r=>n(r.target.value),value:t})]}),h.jsx(qe,{disabled:!t.length,onClick:()=>e.onSubmit(t),children:"Confirm"})]})})};function Vft(e){return St({attr:{fill:"currentColor",viewBox:"0 0 16 16"},child:[{tag:"path",attr:{d:"M14 1a1 1 0 0 1 1 1v8a1 1 0 0 1-1 1H4.414A2 2 0 0 0 3 11.586l-2 2V2a1 1 0 0 1 1-1zM2 0a2 2 0 0 0-2 2v12.793a.5.5 0 0 0 .854.353l2.853-2.853A1 1 0 0 1 4.414 12H14a2 2 0 0 0 2-2V2a2 2 0 0 0-2-2z"},child:[]}]})(e)}function m_e(e){return St({attr:{fill:"currentColor",viewBox:"0 0 16 16"},child:[{tag:"path",attr:{d:"M8 3.5a.5.5 0 0 0-1 0V9a.5.5 0 0 0 .252.434l3.5 2a.5.5 0 0 0 .496-.868L8 8.71z"},child:[]},{tag:"path",attr:{d:"M8 16A8 8 0 1 0 8 0a8 8 0 0 0 0 16m7-8A7 7 0 1 1 1 8a7 7 0 0 1 14 0"},child:[]}]})(e)}function Wft(e){return St({attr:{fill:"currentColor",viewBox:"0 0 16 16"},child:[{tag:"path",attr:{fillRule:"evenodd",d:"M4 2a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2zm2-1a1 1 0 0 0-1 1v8a1 1 0 0 0 1 1h8a1 1 0 0 0 1-1V2a1 1 0 0 0-1-1zM2 5a1 1 0 0 0-1 1v8a1 1 0 0 0 1 1h8a1 1 0 0 0 1-1v-1h1v1a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h1v1z"},child:[]}]})(e)}function g_e(e){return St({attr:{fill:"currentColor",viewBox:"0 0 16 16"},child:[{tag:"path",attr:{d:"M8 12a4 4 0 1 1 0-8 4 4 0 0 1 0 8m0 1A5 5 0 1 0 8 3a5 5 0 0 0 0 10"},child:[]},{tag:"path",attr:{d:"M10 8a2 2 0 1 1-4 0 2 2 0 0 1 4 0"},child:[]}]})(e)}const v_e=e=>{const[t,n]=b.useState(!1),r=Cn(),i=Gt.useStartRecording(r),o=Gt.useStopRecording(r),[s,a]=b.useState(!1),c=b.useCallback(async()=>{var l;try{a(!0),e.start?await i({roomId:e.roomId}):await o({roomId:e.roomId}),n(!1)}catch(u){throw D$(u)&&((l=u.response)==null?void 0:l.status)===Tj.Forbidden?mt(h.jsx("div",{className:"Toast ErrorToast",children:"Your organization is out of minutes"}),{type:"error"}):mt(h.jsx("div",{className:"Toast ErrorToast",children:"Something went wrong, please try again"}),{type:"error"}),u}finally{a(!1)}},[e.roomId,e.start,i,o]);return h.jsx(Wv,{title:`${e.start?"Start":"Stop"} recording`,trigger:e.trigger,content:s?h.jsx(Sn,{inline:!0}):h.jsxs("h3",{children:["Are you sure you want to ",e.start?"start":"stop"," the recording?"]}),action:"Yes",onConfirm:c,open:t,onOpenChange:n,disabled:s})},qft="_RecordingStatus_1au4r_1",Gft={RecordingStatus:qft},y_e=e=>{const{room:t,organization:n}=Rr(),r=Sbe(),i=ks();return!t||!n||(e.hide||!n.recording_enabled)&&!r||i?null:h.jsxs("h3",{className:Gft.RecordingStatus,children:[h.jsx(g_e,{color:r?"var(--langfinity-red)":"white"}),r?"Recording in progress":"Start recording",h.jsx(v_e,{trigger:h.jsx("button",{children:r?"Stop":"Click to start"}),roomId:t.id,start:!r})]})},Kft="_Content_oozsc_1",Yft={Content:Kft},Qft="_Content_uqqp7_1",Xft={Content:Qft},RO=e=>h.jsxs(al,{open:e.open,onOpenChange:e.onOpenChange,children:[h.jsx(cl,{asChild:!0,children:e.trigger}),h.jsx(ll,{children:h.jsx(uu,{className:e.contentClassName||Xft.Content,side:e.side||"top",align:e.align,sideOffset:8,children:e.content})})]});function b_e(e){const{microphoneTrack:t}=wh(),n=b.useMemo(()=>t==null?void 0:t.audioTrack,[t]),[r,i]=b.useState(!1),[o]=Jt();return h.jsx(RO,{open:r,onOpenChange:i,trigger:h.jsx(qe,{color:r?"white":"gray",borderColor:r?"primary":"dark-gray",backgroundColor:"black",children:h.jsx(Vv,{})}),content:h.jsxs("div",{className:Yft.Content,children:[e.type==="speaker"&&h.jsx($c,{trigger:h.jsx("button",{children:"Audio"}),localAudioTrack:n,initialSelectedSetting:"audio"}),h.jsx($c,{trigger:h.jsx("button",{children:"Text customization"}),localAudioTrack:n,initialSelectedSetting:"text-customization"}),h.jsx($c,{trigger:h.jsx("button",{children:"Text speed"}),localAudioTrack:n,initialSelectedSetting:"text-speed"}),e.type==="attendee"&&h.jsx($c,{trigger:h.jsx("button",{children:"Text translation"}),localAudioTrack:n,initialSelectedSetting:"text-translation"}),e.organization.voice_translation_enabled&&e.type==="speaker"&&h.jsx(wz,{trigger:h.jsx("button",{children:"Voice avatar"}),locale:o.metadata.selectedLanguage,basic:!e.organization.voice_avatar_enabled})]}),align:"end"})}const Jft=e=>{const[t,n]=b.useState(e.languages[0]),[r,i]=b.useState(!1);return b.useEffect(()=>{e.languages.includes(t)||n(e.languages[0])},[t,e.languages]),h.jsx(xs,{open:r,onOpenChange:i,trigger:h.jsx(qe,{color:"gray",backgroundColor:"transparent",borderColor:"dark-gray",style:{height:"100%",maxHeight:"100%",padding:"0px 8px"},size:"large",children:h.jsx(UE,{})}),title:"Add a new translated caption",content:h.jsxs("div",{className:Ms.AddLanguageDialogContent,children:[h.jsxs("div",{children:[h.jsx("h3",{children:"Which language would you like to add a caption in?"}),h.jsx(rO,{color:"gray",backgroundColor:"transparent",borderColor:"dark-gray",languages:e.languages,selectedLanguage:t,onChange:o=>n(o)})]}),h.jsx(qe,{style:{width:"100%"},onClick:()=>{i(!1),e.onAdd(t)},children:"Add"})]})})};function Zft(){ME(),jE(),MH();const{room:e,organization:t,loading:n}=Rr(),[r]=Jt();KP();const[i,o]=b.useState([]);_be({inProgressToast:h.jsx("div",{className:"Toast",children:h.jsx("div",{children:"Recording in progress"})}),stopToast:h.jsx("div",{className:"Toast",children:h.jsx("div",{children:"Recording stopped"})})});const s=b.useRef(!1);b.useEffect(()=>{!e||s.current||(s.current=!0,o(e.languages.slice(0,4)))},[e]);const a=S=>{o(C=>[...C,S])},[c,l]=b.useState(!1),[u,d]=b.useState(0);b.useEffect(()=>{c&&d(0)},[c]);const[f,p]=GE(),g=b.useRef(!1);b.useEffect(()=>{g.current||(g.current=!0,p(!1))},[p]);const{microphoneTrack:m}=wh(),y=b.useMemo(()=>m==null?void 0:m.audioTrack,[m]);dz();const v=b.useCallback(S=>{c||d(C=>C+S)},[c]),w=ks();return!e||!t||n?h.jsx(Sn,{}):h.jsxs("div",{className:Ms.EventSpeaker,children:[h.jsxs("div",{className:Ms.Panels,children:[h.jsxs("div",{className:Ms.TitlesAndCaptions,children:[h.jsxs("div",{className:Ms.Titles,children:[h.jsx(AO,{room:e}),h.jsxs("div",{className:Ms.RecordingAndUsage,children:[!w&&h.jsx(y_e,{hide:!f}),h.jsx(gm,{organization:t})]})]}),h.jsx("div",{className:Ms.CaptionsAndAdd,children:w?h.jsx(h.Fragment,{children:h.jsx(k1,{renderLanguage:r.metadata.selectedLanguage,showSpeakerName:e.num_speakers!==1})}):h.jsxs(h.Fragment,{children:[h.jsx("div",{className:Ms.Captions,children:i.map(S=>h.jsxs("div",{children:[h.jsxs("div",{className:Ms.CaptionTitle,children:[h.jsx("h3",{children:`${eu(S)} ${Kr(S)}`}),h.jsx("button",{onClick:()=>o(C=>C.filter(E=>E!==S)),children:h.jsx(Eh,{})})]}),h.jsx(k1,{renderLanguage:S,showSpeakerName:e.num_speakers!==1})]},S))}),!(i.length>=e.languages.length||i.length>=4)&&h.jsx(Jft,{languages:e.languages.filter(S=>!i.includes(S)),onAdd:a})]})})]}),h.jsx("div",{className:Ms.Qna,style:{display:c?void 0:"none"},children:h.jsx(bz,{canAskQuestions:!1,mode:"qna",open:c,onOpenChange:()=>l(!1),onReceivedMessages:v})})]}),h.jsxs("div",{className:Ms.Controls,children:[h.jsxs("div",{children:[h.jsx(dh,{languages:[...t!=null&&t.autodetect_enabled?["autodetect"]:[],...e.languages]}),t.voice_translation_enabled&&!w&&h.jsx(wz,{trigger:h.jsxs(qe,{color:"gray",backgroundColor:"black",children:["Voice avatar",h.jsx(na,{})]}),locale:r.metadata.selectedLanguage,basic:!t.voice_avatar_enabled}),e.qna&&h.jsxs(qe,{color:c?"white":"gray",borderColor:c?"primary":"dark-gray",backgroundColor:"black",style:{position:"relative"},onClick:()=>l(S=>!S),children:[h.jsx(w7,{}),!w&&"Q&A",u>0&&h.jsx("div",{className:Ms.UnreadMessages,children:u})]})]}),h.jsxs("div",{className:Ms.MicToggle,children:[h.jsxs("h2",{children:["Translation ",f?"on":"off"]}),h.jsx(f_e,{title:`Turn ${f?"off":"on"} translation`,description:f?"Are you sure you want to stop the translation for your attendees? They will no longer see and hear translations in real-time as you speak.":"Are you sure you want to start the translation for your attendees? They will see and hear translations in real-time as you speak."})]}),h.jsxs("div",{children:[w?h.jsx(b_e,{organization:t,type:"speaker"}):h.jsx($c,{hiddenCategories:["video","voice-avatar","text-translation"],localAudioTrack:y,trigger:h.jsxs(qe,{color:"gray",borderColor:"dark-gray",backgroundColor:"black",children:[h.jsx(YP,{}),"Settings"]})}),h.jsx(R1,{link:`/event/${e.id}/survey`})]})]})]})}function eht({onSubmit:e}){const[t,n]=Jt(),{room:r}=Rr();return b.useEffect(()=>{r&&r.num_speakers===1&&e()},[r,e]),h.jsx(xs,{title:"Enter your display name",open:!0,unclosable:!0,content:h.jsxs("div",{className:Ms.InputNameDialog,children:[h.jsxs("div",{children:[h.jsx("h2",{children:"Your name"}),h.jsx("input",{type:"text",placeholder:"Ex. Dr. Louise Banks",onChange:i=>n(o=>({...o,metadata:{...o.metadata,name:i.target.value}})),className:Ms.input,value:t.metadata.name||""})]}),h.jsx(qe,{disabled:!t.metadata.name||!t.metadata.name.length,onClick:()=>e(),children:"Confirm"})]})})}function tht(){const e=Cn(),{token:t,error:n}=Mb(e),{room:r,loading:i}=Rr(),[,o]=Jt(),[,s]=DE();b.useEffect(()=>{if(r)return o(f=>({...f,metadata:{...f.metadata,participantType:"speaker",selectedLanguage:r.languages[0]}})),()=>{o(f=>({...f,metadata:{...f.metadata,participantType:void 0}})),s(J3)}},[r,o,s]);const[a,c]=b.useState(!1),l=Ts();b.useEffect(()=>{var f,p;if(r){if(n&&((f=n.response)==null?void 0:f.data.message)==="EVENT_ENDED"){mt(h.jsx("div",{className:"Toast",children:h.jsx("div",{children:"This event has ended, thanks for joining us"})})),l(`/event/${r.id}/survey`);return}if(n&&((p=n.response)==null?void 0:p.data.message)==="EVENT_NOT_STARTED"){mt(h.jsx("div",{className:"Toast",children:h.jsx("div",{children:"This event hasn't started yet, stay tuned"})})),l("/");return}}},[n,l,r]);const[u,d]=x$();return!r||i?h.jsx(Sn,{}):u.has("pin")?!a&&(r.num_speakers??1)>1?h.jsx(eht,{onSubmit:()=>c(!0)}):h.jsx(h.Fragment,{children:h.jsx(vb,{audio:!1,video:!1,token:t,connectOptions:{autoSubscribe:!1}
1566,serverUrl:"wss://byrdhouse-prod-gy1t323x.livekit.cloud",style:{width:"100%",height:"fit-content"},children:h.jsx(Zft,{})})}):h.jsx(p_e,{onSubmit:f=>d(p=>(p.set("pin",f),p))})}const nht="_Home_6cbrh_1",rht="_HomeContent_6cbrh_10",iht="_HomePageContainer_6cbrh_22",oht="_CardContainer_6cbrh_31",sht="_HeroCard_6cbrh_38",aht="_PlatformBadges_6cbrh_57",cht="_ComingSoon_6cbrh_85",lht="_SupportedLanguages_6cbrh_101",uht="_LanguageBadge_6cbrh_124",Td={Home:nht,HomeContent:rht,HomePageContainer:iht,CardContainer:oht,HeroCard:sht,PlatformBadges:aht,ComingSoon:cht,SupportedLanguages:lht,LanguageBadge:uht},dht="_SideNav_4a57c_1",fht="_Active_4a57c_28",hht="_SettingsSubNav_4a57c_30",Ko={SideNav:dht,Active:fht,SettingsSubNav:hht};function pht(){const{organization:e,loading:t}=Md(),n=uBe("/settings/*");return!e||t?h.jsx(Sn,{}):h.jsxs("nav",{className:Ko.SideNav,children:[h.jsxs(Ps,{end:!0,to:"/",className:({isActive:r})=>r?Ko.Active:void 0,children:[h.jsx(Nrt,{}),"Home"]}),h.jsxs(Ps,{to:"/meetings",className:({isActive:r})=>r?Ko.Active:void 0,children:[h.jsx(qp,{}),"Meetings & events"]}),h.jsxs(Ps,{to:"/settings",className:({isActive:r})=>r?Ko.Active:void 0,children:[h.jsx(YP,{}),"Account settings"]}),n&&h.jsxs("nav",{className:Ko.SettingsSubNav,children:[h.jsx(Ps,{end:!0,to:"/settings",className:({isActive:r})=>r?Ko.Active:void 0,children:"Admin management"}),h.jsx(Ps,{to:"/settings/languages",className:({isActive:r})=>r?Ko.Active:void 0,children:"Languages"}),e.glossary_enabled&&h.jsx(Ps,{to:"/settings/glossary",className:({isActive:r})=>r?Ko.Active:void 0,children:"Glossary"}),e.voice_translation_enabled&&h.jsx(Ps,{to:"/settings/voice-translation",className:({isActive:r})=>r?Ko.Active:void 0,children:"Voice translation"}),e.voice_translation_enabled&&h.jsx(Ps,{to:"/settings/voice-avatars",className:({isActive:r})=>r?Ko.Active:void 0,children:"Voice avatars"}),e.recording_enabled&&h.jsx(Ps,{to:"/settings/recording",className:({isActive:r})=>r?Ko.Active:void 0,children:"Recording"}),h.jsx(Ps,{to:"/settings/qna",className:({isActive:r})=>r?Ko.Active:void 0,children:"Q&A"}),h.jsx(Ps,{to:"/settings/text-translation",className:({isActive:r})=>r?Ko.Active:void 0,children:"Text translation"}),h.jsx(Ps,{to:"/settings/account",className:({isActive:r})=>r?Ko.Active:void 0,children:"Account"})]}),h.jsxs(Ps,{to:"/billing",className:({isActive:r})=>r?Ko.Active:void 0,children:[h.jsx(Hye,{}),"Plan & billing"]}),h.jsxs(Ps,{to:"/usage",className:({isActive:r})=>r?Ko.Active:void 0,children:[h.jsx(m_e,{}),"Usage"]}),h.jsxs(Ps,{to:"/support",className:({isActive:r})=>r?Ko.Active:void 0,children:[h.jsx(Dye,{}),"Support"]})]})}const mht="_Meetings_wwfpk_1",ght="_Search_wwfpk_8",vht="_List_wwfpk_12",yht="_RoomCard_wwfpk_18",bht="_Badge_wwfpk_40",wht="_RoomCardHeader_wwfpk_63",Sht="_RoomCardTitle_wwfpk_78",_ht="_RoomCardDetails_wwfpk_88",Cht="_FiltersAndSearch_wwfpk_94",Eht="_Filters_wwfpk_94",Tht="_Empty_wwfpk_109",kht="_CardOverflowPopoverContent_wwfpk_115",xht="_CardOverflowPopover_wwfpk_115",Qn={Meetings:mht,Search:ght,List:vht,RoomCard:yht,Badge:bht,RoomCardHeader:wht,RoomCardTitle:Sht,RoomCardDetails:_ht,FiltersAndSearch:Cht,Filters:Eht,Empty:Tht,CardOverflowPopoverContent:kht,CardOverflowPopover:xht},Aht="_Empty_1egus_1",Iht={Empty:Aht},Rht="data:image/svg+xml,%3csvg%20width='163'%20height='126'%20viewBox='0%200%20163%20126'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3ccircle%20cx='51.5'%20cy='74.5'%20r='49.5'%20stroke='%23EC6030'%20stroke-width='4'/%3e%3crect%20x='62'%20y='2'%20width='99'%20height='99'%20stroke='%230099FF'%20stroke-width='4'/%3e%3c/svg%3e",w_e=e=>h.jsxs("div",{className:Iht.Empty,children:[h.jsx("img",{src:Rht,alt:"No meetings"}),h.jsx("h3",{children:e.message})]}),Pht="_Search_a71bw_1",Oht={Search:Pht},mV=({query:e,setQuery:t,onKeyDown:n,placeholder:r,className:i})=>h.jsxs("div",{className:`${Oht.Search} ${i||""}`,children:[h.jsx($ye,{}),h.jsx("input",{type:"text",placeholder:r||"Search",value:e,onChange:o=>t(o.target.value),onKeyDown:n})]});function Nht(e){const[t,n]=b.useState(!1),[r,i]=b.useState(!1),o=Cn(),s=Gt.useDeleteRoom(o);return h.jsx(RO,{open:t,onOpenChange:n,trigger:h.jsx(qe,{color:"gray",borderColor:"transparent",backgroundColor:"transparent",children:h.jsx(Vv,{})}),content:h.jsx("div",{className:Qn.CardOverflowPopover,children:h.jsx(Wv,{title:"Delete room",trigger:h.jsx("button",{onClick:()=>i(!0),children:"Delete"}),content:h.jsxs("h3",{children:["Are you sure you want to delete ",e.room.name,"?"]}),action:"Yes",onConfirm:async()=>{try{await s({id:e.room.id}),e.setRooms(a=>a.filter(c=>c.id!==e.room.id)),i(!1),mt(h.jsx("div",{className:"Toast SuccessToast",children:h.jsx("div",{children:"Successfully deleted room"})}),{type:"success"})}catch(a){throw mt(h.jsx("div",{className:"Toast ErrorToast",children:"Something went wrong, please try again or c
1566ontact support"}),{type:"error"}),a}},open:r,onOpenChange:i})}),align:"end",side:"bottom",contentClassName:Qn.CardOverflowPopoverContent})}function Mht(e){const t=b.useMemo(()=>e.room.languages.map(i=>{var o;return(o=Kr(i))==null?void 0:o.split(" (")[0]}).join(", "),[e.room.languages]),n=b.useMemo(()=>{switch(e.room.room_type){case"meeting":case"teams":return h.jsxs("div",{className:Qn.Badge,children:[h.jsx(qp,{}),"Virtual"]});case"event":return h.jsxs("div",{className:Qn.Badge,children:[h.jsx(jye,{}),"In-person"]})}},[e.room.room_type]),r=b.useMemo(()=>{switch(e.room.room_type){case"meeting":return h.jsxs("div",{className:Qn.Badge,children:[h.jsx(qp,{}),"Langfinity"]});case"event":return h.jsx("div",{className:Qn.Badge,children:"Langfinity"});case"teams":return h.jsxs("div",{className:Qn.Badge,children:[h.jsx(qp,{}),"Microsoft Teams"]})}},[e.room.room_type]);return h.jsxs("div",{className:Qn.RoomCard,children:[h.jsxs("div",{children:[h.jsx("div",{className:Qn.RoomCardHeader,children:h.jsxs("div",{children:[n,r]})}),e.room.name&&h.jsx("div",{className:Qn.RoomCardTitle,children:e.room.name}),h.jsxs("div",{className:Qn.RoomCardDetails,children:[e.room.start_time&&e.room.end_time&&h.jsx("div",{children:h.jsx(xO,{start:e.room.start_time.toString(),end:e.room.end_time.toString(),reoccurring:e.room.reoccurring})}),h.jsx("div",{children:t})]})]}),h.jsxs("div",{children:[h.jsx(It,{to:`/${e.room.room_type}/${e.room.id}${e.room.room_type==="event"?"/details":""}`,children:h.jsx(qe,{children:e.room.room_type==="meeting"?"Join":"View"})}),h.jsx(It,{to:`/edit/${e.room.id}`,children:h.jsx(qe,{color:"gray",backgroundColor:"dark-gray",borderColor:"gray",children:"Edit"})}),h.jsx(Nht,{...e})]})]})}function Dht(e){const[t,n]=b.useState(!1),[r,i]=b.useState(!1),o=Cn(),s=Gt.useDeleteRecording(o);return h.jsx(RO,{open:t,onOpenChange:n,trigger:h.jsx(qe,{color:"gray",borderColor:"transparent",backgroundColor:"transparent",children:h.jsx(Vv,{})}),content:h.jsx("div",{className:Qn.CardOverflowPopover,children:h.jsx(Wv,{title:"Delete recording",trigger:h.jsx("button",{onClick:()=>i(!0),children:"Delete"}),content:h.jsxs("h3",{children:["Are you sure you want to delete ",e.recording.name,"?"]}),action:"Yes",onConfirm:async()=>{try{await s({recording_id:e.recording.id}),e.setRecordings(a=>a.filter(c=>c.id!==e.recording.id)),i(!1),mt(h.jsx("div",{className:"Toast SuccessToast",children:h.jsx("div",{children:"Successfully deleted recording"})}),{type:"success"})}catch(a){throw mt(h.jsx("div",{className:"Toast ErrorToast",children:"Something went wrong, please try again or contact support"}),{type:"error"}),a}},open:r,onOpenChange:i})}),align:"end",side:"bottom",contentClassName:Qn.CardOverflowPopoverContent})}function Lht(e){const t=b.useMemo(()=>e.recording.languages.map(i=>{var o;return(o=Kr(i))==null?void 0:o.split(" (")[0]}).join(", "),[e.recording.languages]),n=b.useMemo(()=>{switch(e.recording.room_type){case"meeting":case"teams":return h.jsxs("div",{className:Qn.Badge,children:[h.jsx(qp,{}),"Virtual"]});case"event":return h.jsxs("div",{className:Qn.Badge,children:[h.jsx(jye,{}),"In-person"]})}},[e.recording.room_type]),r=b.useMemo(()=>{switch(e.recording.room_type){case"meeting":return h.jsxs("div",{className:Qn.Badge,children:[h.jsx(qp,{}),"Langfinity"]});case"event":return h.jsx("div",{className:Qn.Badge,children:"Langfinity"});case"teams":return h.jsxs("div",{className:Qn.Badge,children:[h.jsx(qp,{}),"Microsoft Teams"]})}},[e.recording.room_type]);return h.jsxs("div",{className:Qn.RoomCard,children:[h.jsxs("div",{children:[h.jsx("div",{className:Qn.RoomCardHeader,children:h.jsxs("div",{children:[n,r]})}),e.recording.name&&h.jsx("div",{className:Qn.RoomCardTitle,children:e.recording.name}),h.jsxs("div",{className:Qn.RoomCardDetails,children:[e.recording.created_at&&e.recording.stopped_at&&h.jsx("div",{children:h.jsx(xO,{start:e.recording.created_at,end:e.recording.stopped_at,reoccurring:!1})}),h.jsx("div",{children:t})]})]}),h.jsxs("div",{children:[h.jsx(It,{to:`/recording/${e.recording.id}`,children:h.jsx(qe,{children:"View"})}),h.jsx(Dht,{...e})]})]})}function bne(e){const t=Cn(),n=Gt.useGetRoomList(t),r=Gt.useGetRecordingList(t),[i,o]=b.useState(!1),[s,a]=b.useState([]),[c,l]=b.useState([]);b.useEffect(()=>{(async()=>{let y=!1;o(!0);try{{const v=await n();y=v.data.rooms.length>0,a(v.data.rooms)}if(!e.hidePast){const v=await r();l(v.data.recordingList.filter(w=>w.stopped_at!==null))}}finally{setTimeout(()=>{o(!1)},y?500:0)}})()},[n,r,e.hidePast]);const u=b.useMemo(()=>{const y=new Date;return y.setHours(y.getHours()-2),s.filter(w=>w.room_type==="event").filter(w=>new Date(w.start_time||w.created_at)>y||w.reoccurring).sort((w,S)=>new Date(S.start_time||S.created_at).getTime()-new Date(w.start_time||w.created_at).getTime())},[s]),d=b.useMemo(()=>c.sort((y,v)=>new Date(v.created_at).getTime()-new Date(y.created_at).getTime()),[c]),[f,p]=b.useState(""),[g,m]=b.useState([]);return i?h.jsx(Sn,{}):e.hidePast&&!u.length?null:!u.length&&!c.length?h.jsxs("div",{className:Qn.Meetings,children:[h.jsx("h1",{children:"Meetings & events"}),h.jsx("div",{className:Qn.Empty,children:h.jsx(w_e,{message:h.jsxs(h.Fragment,{children:["You currently have no multilingual meetings or events scheduled."," ",h.jsx(It,{to:"/",children:"Click here to set one up now!"})]})})})]}):h.jsxs("div",{className:Qn.Meetings,children:[!e.hidePast&&h.jsx("h1",{children:"Meetings & events"}),!e.hidePast&&h.jsxs("div",{className:Qn.FiltersAndSearch,children:[h.jsxs("div",{className:Qn.Filters,children:[h.jsx(qe,{backgroundColor:g.includes("teams")?"dark-gray":"black",borderColor:"dark-gray",color:g.includes("teams")?"white":"gray",onClick:()=>m(y=>y.includes("teams")?y.filter(v=>v!=="teams"):[...y,"teams"]),children:"Teams"}),h.jsx(qe,{backgroundColor:g.includes("event")?"dark-gray":"black",borderColor:"dark-gray",color:g.includes("event")?"white":"gray",onClick:()=>m(y=>y.includes("event")?y.filter(v=>v!=="event"):[...y,"event"]),children:"In-person"}),h.jsx(qe,{backgroundColor:g.includes("meeting")?"dark-gray":"black",borderColor:"dark-gray",color:g.includes("meeting")?"white":"gray",onClick:()=>m(y=>y.includes("meeting")?y.filter(v=>v!=="meeting"):[...y,"meeting"]),children:"Virtual"})]}),h.jsx(mV,{query:f,setQuery:p,placeholder:"Search for a meeting or an event",className:Qn.Search})]}),!!u.length&&h.jsxs("div",{className:Qn.List,children:[h.jsx("h2",{children:"Upcoming"}),h.jsx(h.Fragment,{children:u.filter(y=>!g.length||g.includes(y.room_type)).filter(y=>!f.length||y.name&&y.name.toLowerCase().includes(f.toLowerCase())).map(y=>h.jsx("div",{children:h.jsx(Mht,{room:y,setRooms:a})},y.id))})]}),!e.hidePast&&!!d.length&&h.jsxs("div",{className:Qn.List,children:[h.jsx("h2",{children:"Recordings"}),d.filter(y=>!g.length||g.includes(y.room_type)).filter(y=>!f.length||y.name.toLowerCase().includes(f.toLowerCase())).map(y=>h.jsx("div",{children:h.jsx(Lht,{recording:y,setRecordings:l})},y.id))]})]})}const Fht="_Settings_oegud_1",jht="_Titles_oegud_7",Uht="_Setting_oegud_1",Bht="_ToggleSetting_oegud_25",$ht="_TextTranslationSetting_oegud_31",Hht="_LanguageSetting_oegud_38",ap={Settings:Fht,Titles:jht,Setting:Uht,ToggleSetting:Bht,TextTranslationSetting:$ht,LanguageSetting:Hht},zht="_DefaultVoiceAvatarSetting_1jv5s_1",Vht={DefaultVoiceAvatarSetting:zht};function Wht(e){const[t]=Jt(),n=Ebe(t.metadata.selectedLanguage,e.organization.default_avatar_setting),[r,i]=b.useState(n);return h.jsx(mf,{title:"Voice avatars",subtitle:"Please select your voice avatars",className:Vht.DefaultVoiceAvatarSetting,children:h.jsx(h.Fragment,{children:h.jsx(Cbe,{basic:!e.organization.voice_avatar_enabled,selectedVoice:r,onSelectVoice:o=>{i(o),e.onChange({...e.organization,default_avatar_setting:o.id})}})})})}const qht="_Glossaries_gtqhg_1",Ght="_AddLanguageTrigger_gtqhg_9",Kht="_EditGlossary_gtqhg_14",Yht="_Title_gtqhg_33",Qht="_EditGlossaryTitle_gtqhg_40",Xht="_EditGlossaryLanguage_gtqhg_46",Jht="_EditGlossaryPhrases_gtqhg_52",Zht="_Footer_gtqhg_107",ept="_Tip_gtqhg_121",tpt="_ConfirmDelete_gtqhg_128",Ac={Glossaries:qht,AddLanguageTrigger:Ght,EditGlossary:Kht,Title:Yht,EditGlossaryTitle:Qht,EditGlossaryLanguage:Xht,EditGlossaryPhrases:Jht,Footer:Zht,Tip:ept,ConfirmDelete:tpt},npt=e=>{const[t,n]=b.useState(!1);return h.jsx(Wv,{open:t,onOpenChange:n,trigger:h.jsx("button",{onClick:()=>n(!0),children:h.jsx(Eh,{})}),title:"Delete glossary",action:"Delete",content:h.jsxs("h3",{className:Ac.ConfirmDelete,children:["Are you sure you want to delete the glossary for"," ",h.jsx("span",{children:Kr(e.language)}),"?"]}),onConfirm:()=>{e.onConfirm(),n(!1)}})};function rpt({glossary:e,onUpdate:t,onDelete:n}){const r=b.useRef(null),[i,o]=b.useState("");return h.jsxs("div",{className:Ac.EditGlossary,children:[h.jsxs("div",{children:[h.jsx("div",{className:Ac.Title,children:"Language"}),h.jsxs("div",{className:Ac.EditGlossaryLanguage,children:[eu(e.language)," ",Kr(e.language)]})]}),h.jsxs("div",{children:[h.jsxs("div",{className:`${Ac.Title} ${Ac.EditGlossaryTitle}`,children:["Glossary in ",Kr(e.language),h.jsx(npt,{language:e.language,onConfirm:()=>{n(e)}})]}),h.jsxs("div",{className:Ac.EditGlossaryPhrases,onClick:()=>{var s;return(s=r.current)==null?void 0:s.focus()},children:[e.phrases.map((s,a)=>h.jsxs("div",{children:[s,h.jsx("button",{onClick:()=>{const c=[...e.phrases];c.splice(a,1),t({...e,phrases:c})},children:h.jsx(Eh,{})})]},a)),h.jsx("textarea",{ref:r,value:i,onChange:s=>{const a=s.target.value;a.includes(",")||a.includes(`
1567`)?(t({...e,phrases:[...e.phrases,...a.split(/[\n,]+/).map(c=>c.trim()).filter(c=>!!c.length).slice(0,500-e.phrases.length)]}),o("")):o(a)}})]}),h.jsxs("div",{className:Ac.Footer,children:[h.jsxs("div",{className:Ac.Tip,children:[h.jsx(Lye,{}),"Enter or paste in words separated by comma or new lines"]}),h.jsxs("div",{children:[e.phrases.length,"/500"]})]})]})]},e.id)}function ipt(){const[e,t]=b.useState(),n=Cn(),r=Gt.useGetGlossaryList(n),i=Gt.useCreateGlossary(n),o=Gt.useUpdateGlossary(n),s=Gt.useDeleteGlossary(n),[a,c]=b.useState(!1);b.useEffect(()=>{(async()=>{c(!0);try{const u=await r();t(u.data.glossaries)}finally{c(!1)}})()},[r]);const l=b.useMemo(()=>e?e.map(u=>u.language):[],[e]);return!e||a?h.jsx(Sn,{}):h.jsx(mf,{title:"Glossary",subtitle:"Please provide a list of technical terminologies and proper nouns for model fine-tuning",className:Ac.GlossarySetting,children:h.jsxs("div",{className:Ac.Glossaries,children:[h.jsx(lz,{trigger:h.jsxs(qe,{className:Ac.AddLanguageTrigger,backgroundColor:"black",children:[h.jsx(UE,{}),"Add language"]}),selectedLanguages:l,onChange:async u=>{u.forEach(async d=>{if(!l.includes(d)){const f=await i({language:d,phrases:[]});t(p=>[...p,f.data.glossary])}})}}),e.map(u=>h.jsx(rpt,{glossary:u,onUpdate:async d=>{t(f=>f.map(p=>p.id===d.id?d:p)),await o(d)},onDelete:async()=>{t(d=>d.filter(f=>f.id!==u.id)),await s(u)}},u.id))]})})}const opt="_ManageMembers_1dszt_1",spt="_SearchAndInvite_1dszt_7",apt="_Title_1dszt_14",cpt="_Members_1dszt_21",lpt="_MemberName_1dszt_26",upt="_YouBadge_1dszt_33",dpt="_InviteStatus_1dszt_40",fpt="_DialogContent_1dszt_78",hpt="_Buttons_1dszt_84",ppt="_Email_1dszt_88",vs={ManageMembers:opt,SearchAndInvite:spt,Title:apt,Members:cpt,MemberName:lpt,YouBadge:upt,InviteStatus:dpt,DialogContent:fpt,Buttons:hpt,Email:ppt};function mpt(e){const t=Cn(),n=Gt.useInviteUser(t),[r,i]=b.useState(""),[o,s]=b.useState(!1);return h.jsx(xs,{open:o,onOpenChange:s,title:"Invite admin member",trigger:h.jsxs(qe,{children:[h.jsx(UE,{}),"Invite"]}),className:vs.InviteMemberDialog,content:h.jsxs("div",{className:vs.DialogContent,children:[h.jsxs("div",{className:vs.Email,children:[h.jsx("label",{children:"Email"}),h.jsx("input",{type:"text",placeholder:"[email protected]",value:r,onChange:a=>i(a.target.value)})]}),h.jsxs("div",{className:vs.Buttons,children:[h.jsx(qe,{backgroundColor:"black",color:"gray",borderColor:"dark-gray",onClick:()=>s(!1),children:"Cancel"}),h.jsx(qe,{onClick:async()=>{try{i("");const a=await n({email:r});e.onInvite(a),s(!1),mt(h.jsx("div",{className:"Toast SuccessToast",children:h.jsx("div",{children:"Successfully invited admin member"})}),{type:"success"})}catch(a){if(a instanceof Sb&&a.status===403){mt(h.jsx("div",{className:"Toast ErrorToast",children:"Can't invite any more members"}),{type:"error"});return}throw a}},children:"Invite"})]})]})})}function wne(e){const t=Cn(),n=Gt.useRemoveUser(t),[r,i]=b.useState(!1);return h.jsx(xs,{open:r,onOpenChange:i,title:"Remove admin member",trigger:h.jsx(qe,{color:"gray",backgroundColor:"black",borderColor:"dark-gray",children:"Remove"}),className:vs.InviteMemberDialog,content:h.jsxs("div",{className:vs.DialogContent,children:[h.jsxs("div",{className:vs.Email,children:[h.jsx("label",{children:"Email"}),h.jsx("div",{children:e.email})]}),h.jsxs("div",{className:vs.Buttons,children:[h.jsx(qe,{color:"gray",borderColor:"dark-gray",backgroundColor:"black",onClick:()=>i(!1),children:"Cancel"}),h.jsx(qe,{onClick:async()=>{try{const o=await n({email:e.email});e.onRemove(o),i(!1),mt(h.jsx("div",{className:"Toast SuccessToast",children:h.jsx("div",{children:"Successfully remvoed admin member"})}),{type:"success"})}catch(o){throw mt(h.jsx("div",{className:"Toast ErrorToast",children:"Something went wrong, please try again or c
1567ontact support"}),{type:"error"}),o}},children:"Remove"})]})]})})}function gpt(){const{organization:e,setOrganization:t,pendingInvites:n,setPendingInvites:r,loading:i}=Md(),[o]=Jt(),s=b.useMemo(()=>((e==null?void 0:e.members.length)??0)+((n==null?void 0:n.length)??0),[e==null?void 0:e.members,n]),[a,c]=b.useState("");return!e||!n||i?h.jsx(Sn,{}):h.jsxs("div",{className:vs.ManageMembers,children:[h.jsxs("div",{className:vs.SearchAndInvite,children:[h.jsx(mV,{query:a,setQuery:c,placeholder:"Search for an email address"}),h.jsx(mpt,{onInvite:l=>{t(u=>({...u,members:l.data.members})),r(l.data.pending_invites)}})]}),h.jsxs("div",{children:[h.jsxs("h2",{className:vs.Title,children:["Admin members: ",`(${s}/${Math.max(s,e.max_members_allowed)})`]}),h.jsxs("div",{className:vs.Members,children:[e.members.filter(l=>!a.length||l.email.toLowerCase().includes(a.toLowerCase())).sort((l,u)=>{var p,g;const d=l.isOwner?0:l.id===((p=o.auth)==null?void 0:p.id)?1:2,f=u.isOwner?0:u.id===((g=o.auth)==null?void 0:g.id)?1:2;return d-f}).map(l=>{var u,d;return h.jsxs("div",{children:[h.jsxs("div",{className:vs.MemberName,children:[l.email,l.id===((u=o.auth)==null?void 0:u.id)&&h.jsx("span",{className:vs.YouBadge,children:"You"})]}),h.jsx("div",{className:vs.InviteStatus,children:l.isOwner?"Owner":"Admin"}),h.jsx("div",{children:!l.isOwner&&l.id!==((d=o.auth)==null?void 0:d.id)?h.jsx(wne,{email:l.email,onRemove:f=>t(p=>({...p,members:f.data.members}))}):null})]},l.id)}),n.filter(l=>!a.length||l.toLowerCase().includes(a.toLowerCase())).map((l,u)=>h.jsxs("div",{children:[h.jsx("div",{children:l}),h.jsx("div",{className:vs.InviteStatus,children:"Invite pending"}),h.jsx("div",{children:h.jsx(wne,{email:l,onRemove:d=>r(d.data.pending_invites)})})]},u))]})]})]})}const vpt="_DeleteAccount_kq7s5_1",ypt={DeleteAccount:vpt};function bpt(){const e=Cn(),t=Gt.useDeleteAccount(e),[,n]=Jt(),r=Ts(),i=ls(),[o,s]=b.useState(!1),[a,c]=b.useState(!1),l=b.useCallback(async()=>{var u;c(!0);try{await t();try{await xP().signOut()}catch(d){console.warn(d)}localStorage.clear(),n(d=>({...d,auth:void 0})),r("/"),i({type:"delete_account"})}catch(d){if(d instanceof Sb&&((u=d.response)==null?void 0:u.status)===409)mt(h.jsx("div",{className:"Toast ErrorToast",children:"You own an organization with other members. Remove them or transfer ownership before deleting your account."}),{type:"error"});else throw mt(h.jsx("div",{className:"Toast ErrorToast",children:"Something went wrong, please try again or contact support"}),{type:"error"}),d}finally{c(!1),s(!1)}},[t,i,n,r]);return h.jsxs(mf,{title:"Delete account",subtitle:"Permanently delete your account and all associated data",children:[h.jsxs("div",{className:ypt.DeleteAccount,children:[h.jsx("p",{children:"This action is permanent. It deletes your account, your meetings and events, and your recordings. You cannot undo this action."}),h.jsx(qe,{color:"white",backgroundColor:"red",borderColor:"red",onClick:()=>s(!0),children:"Delete account"})]}),h.jsx(Wv,{title:"Delete account",open:o,onOpenChange:s,onConfirm:l,action:"Delete account",disabled:a,content:h.jsx("h3",{children:"Are you sure you want to permanently delete your account? This cannot be undone."})})]})}function mf(e){return h.jsxs("div",{className:ap.Setting,children:[h.jsxs("div",{className:ap.Titles,children:[h.jsx("h1",{children:e.title}
1567),e.subtitle&&h.jsx("h2",{children:e.subtitle})]}),h.jsx("div",{className:e.className,children:e.children})]})}function wpt(){jE();const{organization:e,setOrganization:t,loading:n}=Md(),r=Cn(),i=Gt.useUpdateOrganization(r);return b.useEffect(()=>{if(!e)return;const o=setTimeout(async()=>{await i(e)},500);return()=>{clearTimeout(o)}},[e,i]),!e||n?h.jsx(Sn,{}):h.jsx("div",{className:ap.Settings,children:h.jsxs(gE,{children:[h.jsx(nn,{path:"/",element:h.jsx(h.Fragment,{children:h.jsx(mf,{title:"Admin management",children:h.jsx(gpt,{})})})}),h.jsx(nn,{path:"/languages",element:h.jsx(mf,{title:"Languages",subtitle:`Please select your languages (minimum of 2 required). Your organization can select up to ${e.max_languages_allowed} languages`,children:h.jsx("div",{className:ap.LanguageSetting,children:h.jsx(lz,{selectedLanguages:e.default_languages_setting,onChange:o=>{t(s=>({...s,default_languages_setting:o}))},maxLanguages:e.max_languages_allowed})})})}),e.glossary_enabled&&h.jsx(nn,{path:"/glossary",element:h.jsx(ipt,{})}),e.voice_translation_enabled&&h.jsx(nn,{path:"/voice-translation",element:h.jsx(mf,{title:"Voice translation",subtitle:"Enable voice-to-voice translation by default",children:h.jsxs("div",{className:ap.ToggleSetting,children:[h.jsx("label",{children:"Turn on voice-to-voice translation for all participants by default"}),h.jsx(Ep,{enabled:e.default_ai_voice_setting,onChange:()=>{t(o=>({...o,default_ai_voice_setting:!(o!=null&&o.default_ai_voice_setting)}))}})]})})}),e.voice_translation_enabled&&h.jsx(nn,{path:"/voice-avatars",element:h.jsx(Wht,{organization:e,onChange:o=>t(o)})}),e.recording_enabled&&h.jsx(nn,{path:"/recording",element:h.jsx(mf,{title:"Recording",subtitle:"Enable recording by default",children:h.jsxs("div",{className:ap.ToggleSetting,children:[h.jsx("label",{children:"Turn on recording for all participants by default"}),h.jsx(Ep,{enabled:e.default_recording_setting,onChange:()=>{t(o=>({...o,default_recording_setting:!(o!=null&&o.default_recording_setting)}))}})]})})}),h.jsx(nn,{path:"/qna",element:h.jsx(mf,{title:"Q&A",subtitle:"Enable multilingual Q&A by default",children:h.jsxs("div",{className:ap.ToggleSetting,children:[h.jsxs("label",{children:["Turn on multilingual Q&A for all participants by default"," "]}),h.jsx(Ep,{enabled:e.default_qna_setting,onChange:()=>{t(o=>({...o,default_qna_setting:!(o!=null&&o.default_qna_setting)}))}})]})})}),h.jsx(nn,{path:"/text-translation",element:h.jsx(mf,{title:"Text translation",subtitle:"Please customize your text translation",children:h.jsxs("div",{className:ap.TextTranslationSetting,children:[h.jsx(l_e,{}),h.jsx(a_e,{})]})})}),h.jsx(nn,{path:"/account",element:h.jsx(bpt,{})})]})})}const Spt="_Billing_19g1h_1",_pt="_PricingSection_19g1h_7",Cpt="_TiersContainer_19g1h_14",Ept="_PricingTier_19g1h_26",Tpt="_CurrentTier_19g1h_41",kpt="_FirstFeatures_19g1h_60",xpt="_Feature_19g1h_66",Apt="_Buttons_19g1h_86",Ipt="_IncludedFeatures_19g1h_93",Hu={Billing:Spt,PricingSection:_pt,TiersContainer:Cpt,PricingTier:Ept,CurrentTier:Tpt,FirstFeatures:kpt,Feature:xpt,Buttons:Apt,IncludedFeatures:Ipt},Rpt="_FrequentlyAskedQuestions_130m0_1",Ppt="_Titles_130m0_7",Opt="_Questions_130m0_13",Npt="_QuestionToggle_130m0_31",Mpt="_Answer_130m0_43",Dpt="_SupportQuestions_130m0_53",dy={FrequentlyAskedQuestions:Rpt,Titles:Ppt,Questions:Opt,QuestionToggle:Npt,Answer:Mpt,SupportQuestions:Dpt};function li(e){const[t,n]=b.useState(!1);return h.jsxs("button",{onClick:()=>n(r=>!r),children:[h.jsxs("div",{className:dy.QuestionToggle,children:[e.question,t?h.jsx(Xc,{}):h.jsx(na,{})]}),t&&h.jsx("div",{className:dy.Answer,children:e.answer})]})}const S_e=e=>h.jsxs("div",{className:dy.FrequentlyAskedQuestions,children:[h.jsx("div",{className:dy.Titles,children:e.landing?h.jsxs(h.Fragment,{children:[h.jsx("h3",{children:"FAQ"}),h.jsx("p",{children:"Explore these helpful topics to find answers to your questions"})]}):h.jsxs(h.Fragment,{children:[h.jsx("h2",{children:"FAQ"}),h.jsx("h2",{children:"Explore these helpful topics to find answers to your questions"})]})}),h.jsxs("div",{className:`${dy.Questions} ${e.landing?"":dy.SupportQuestions}`,children:[h.jsx(li,{question:"What is Langfinity, and how does it work?",answer:h.jsxs("p",{children:["Langfinity is your 24/7 AI-powered live translator for meetings and events in 50+ languages. With one click or a QR scan, individuals and team
1567s can instantly communicate across 50+ different languages—whether remote, hybrid, or in-person. Langfinity integrates seamlessly with Microsoft Teams, Google Meet, Zoom, and more."," ",h.jsx(It,{target:"_blank",to:"/",children:"Try it now"})," ","to see it in action!"]})}),h.jsx(li,{question:"Can Langfinity translate multiple languages at the same time? (e.g., some attendees speak Spanish, others French)",answer:h.jsxs(h.Fragment,{children:[h.jsx("p",{children:"Yes! Langfinity offers real-time, multi-way translation. Unlike one-way translation, where translation flow in a single direction, Langfinity allows attendees to speak and listen in their preferred language at the same time. Each participant selects their language, and our AI instantly translates speech and captions—whether some speak Spanish, others French, Mandarin, or any of the 50+ supported languages."}),h.jsx("p",{children:"Langfinity ensures smooth, natural conversations in meetings, events, and discussions, no matter how many languages are spoken."})]})}),h.jsx(li,{question:"What types of meetings and events can Langfinity be used for?",answer:h.jsxs(h.Fragment,{children:[h.jsx("p",{children:"Langfinity is designed for any multilingual meeting or event, whether in-person, hybrid, or virtual."}),h.jsx("p",{children:"It's ideal for:"}),h.jsx("p",{children:"• Business meetings & team collaborations - Global teams can communicate seamlessly."}),h.jsx("p",{children:"• Webinars & conferences - Attendees engage in real-time across languages."}),h.jsx("p",{children:"• Training & workshops - Employees learn in their native language."}),h.jsx("p",{children:"• Town halls & corporate events - Ensure clear communication across diverse teams."}),h.jsx("p",{children:"• Religious services & sermons - Churches and faith-based organizations can reach multilingual congregations."}),h.jsx("p",{children:"• Healthcare & telemedicine - Doctors, patients, and medical staff can overcome language barriers."}),h.jsx("p",{children:"• Customer support & contact centers - Provide real-time multilingual assistance."}),h.jsx("p",{children:"Wherever real-time, multilingual communication is needed, Langfinity makes it seamless."})]})}),h.jsx(li,{question:"What makes Langfinity the best AI-powered real-time translation for meetings and events?",answer:h.jsxs(h.Fragment,{children:[h.jsx("p",{children:"🎙 Real-time voice-to-voice translation - Hear translations in natural, human-like voices that match tone and personality."}),h.jsx("p",{children:"🗣 Multi-way translation - Attendees can speak and listen in different languages at the same time."}),h.jsx("p",{children:"🎭 Custom voice avatars - Choose from lifelike AI voices that preserve personality and expression."}),h.jsx("p",{children:"🌍 Live translation anywhere, anytime - One platform for seamless multilingual communication across meetings, events, and conferences."}),h.jsx("p",{children:"🔌 Seamless integration - Works with Microsoft Teams, Zoom, Google Meet, and more, with no special hardware needed."}),h.jsx("p",{children:"🔒 Highly secure & privacy-focused - Enterprise-grade encryption ensures full confidentiality for every conversation."}),h.jsx("p",{children:"✅ Easy to use - Join with one click or a QR scan—no downloads, no setup hassle."})]})}),h.jsx(li,{question:"What are Langfinity's key features?",answer:h.jsxs(h.Fragment,{children:[h.jsx("p",{children:"🎙 Real-time voice-to-voice translation - Instantly translates speech into natural, human-like AI voices that preserve tone and personality."}),h.jsx("p",{children:"🗣 Multi-way translation - Attendees can speak and listen in different languages at the same time, enabling seamless multilingual conversations."}),h.jsx("p",{children:"🎭 Custom AI voice avatars - Choose from lifelike voice options that best represent personality, expression, and tonality."}),h.jsx("p",{children:"🌍 Live translation anywhere, anytime - A single platform for real-time multilingual communication in meetings, events, conferences, and webinars."}),h.jsx("p",{children:"🔌 Seamless integration - Works with Microsoft Teams, Zoom, Google Meet, and more without requiring special hardware."}),h.jsx("p",{children:"🔒 Enterprise-grade security & privacy - Fully encrypted to ensure confidential and secure communication."}),h.jsx("p",{children:"📜 Industry-specific accuracy - Glossary for terminologies, proper nouns, and provide domain-focused deep fine-tuning to enhance accuracy for industry relevant conversations."}),h.jsx("p",{children:"✅ Easy to use - Join with one click or a QR scan, no downloads or complicated setup required."})]})}),h.jsx(li,{question:"Does Langfinity support both voice-to-voice and voice-to-text translation?",answer:h.jsx("p",{children:"Yes, we support both!"})}),h.jsx(li,{question:"How do I use Langfinity for live translation in Microsoft Teams?",answer:h.jsxs(h.Fragment,{children:[h.jsx("p",{children:"1️⃣ Schedule a meeting - Create a Teams meeting as usual."}),h.jsx("p",{children:'2️⃣ Add Langfinity - Click the meeting in y
1567our calendar, select "+"" (Apps), search for "Byrdhouse AI" or "Langfinity", and add our Teams app to your meeting.'}),h.jsx("p",{children:"3️⃣ Sign in - Use Single Sign-On (SSO) with your Microsoft account."}),h.jsx("p",{children:"4️⃣ Invite AI interpreter bot."}),h.jsx("p",{children:"5️⃣ Choose your language - Select the language you speak."}),h.jsx("p",{children:'6️⃣ Translation enabled automatically. Click on "Voice" to enable voice translation'}),h.jsx("p",{children:"7️⃣ Customize text size, speed, and voice avatars."}),h.jsx("p",{children:"8️⃣ End translation - Translation stops when the meeting ends or if you remove Langfinity from Teams."}),h.jsxs("p",{children:["That's it! Communicate effortlessly in multiple languages. For more details see onboarding guide"," ",h.jsx(It,{target:"_blank",to:"https://langfinity.notion.site/Langfinity-for-Microsoft-Teams-1b991ab1cc7f80698442d47c713bcf24?pvs=4",children:"here"}),"."]})]})}),h.jsx(li,{question:"How many languages does Langfinity support?",answer:h.jsxs("p",{children:["We support 50+ languages. To learn what they are,"," ",h.jsx(It,{target:"_blank",to:"/",children:"sign up here"})," ","and view in your homepage!"]})}),h.jsx(li,{question:"How accurate is the translation?",answer:h.jsx("p",{children:"All baseline models for popular languages achieve >85% translation accuracy, with even greater accuracy through industry-specific fine-tuning."})}),h.jsx(li,{question:"Can I try Langfinity before purchasing to test translation accuracy and speed?",answer:h.jsxs("p",{children:["Yes! You can try Langfinity for 20 minutes for free to test translation accuracy and speed."," ",h.jsx(It,{target:"_blank",to:"/",children:"Simply sign up"})," ","for a trial, join a meeting, and experience real-time voice and text translation in action. No credit card or setup required."]})}),h.jsx(li,{question:"How many participants can Langfinity support in a single event?",answer:h.jsx("p",{children:"Up to 100K participants."})}),h.jsx(li,{question:"Does Langfinity require an internet connection, or can it work offline?",answer:h.jsx("p",{children:"Yes, it requires an internet connection."})}),h.jsx(li,{question:"What setup is required for Langfinity to translate fast and accurate?",answer:h.jsxs(h.Fragment,{children:[h.jsx("p",{children:"For Langfinity to provide fast and accurate real-time translation, users need to ensure the following setup:"}),h.jsx("p",{children:"🎤 Microphone access: Users must grant Langfinity access to their microphones to capture spoken language in real-time. A high-quality microphone or headset is preferred."}),h.jsx("p",{children:"🌐 Stable internet connection: A strong and reliable internet connection is essential for seamless communication and data transmission."}),h.jsx("p",{children:"🖥️ Supported browser: Chrome is preferred for the best performance and compatibility with Langfinity's real-time features."}),h.jsx("p",{children:"🔊 Optimal audio conditions: Speaking clearly in a quiet environment helps reduce background noise, improving speech recognition accuracy."})]})}),h.jsx(li,{question:"Can Langfinity integrate with our existing sound system and microphones?",answer:h.jsx("p",{children:"Yes, as long as your existing sound system can be connected to a device that can access Langfinity, you can use it. The easiest way is to connect via USB to a laptop and ensure the device is selected in audio settings in the room."})}),h.jsx(li,{question:"Can attendees listen to translations on their smartphones, or do they need separate headsets?",answer:h.jsx("p",{children:"Yes! Attendees can listen on their smartphones by joining via a link or QR code. We still reccomend listening with headphones connected to your smartphone during events with larger crowds to avoid disrupting the other attendees listening in different languages."})}),h.jsx(li,{question:"Can speakers talk at their natural pace, or do they need to slow down for better accuracy?",answer:h.jsx("p",{children:"Speakers can use their natural tone and pace during voice-to-voice translation. Langfinity offers a variety of voice avatars to match different personalities and speaking styles. For the best experience, we recommend speaking clearly and at a steady pace, allowing the AI to capture key details so listeners can fully understand and engage with the content."})}),h.jsx(li,{question:"Can multiple human interpretesrs be used at the same time for different languages?",answer:h.jsxs("p",{children:["Yes! Langfinity supports multiple human interpreters alongside AI translation. You can assign different interpreters for various languages in the same session, ensuring accurate and natural translations for all attendees. See more details on how to use human interpreter channel"," ",h.jsx(It,{target:"_blank",to:"https://langfinity.notion.site/Langfinity-for-events-or-conferences-1b991ab1cc7f80fda9fed6339aceb6e9?pvs=4",children:"here"}),"."]})}),h.jsx(li,{question:"Can users adjust the volume and speed of translations on their own devices?",answer:h.jsx("p",{children:"Yes! Users can adjust the volume and speed of translations on their own devices. They can personalize their listening experience by increasing or decreasing the volume, customizing the text color or size, and adjusting the translation speed for better understanding and comfort."})}),h.jsx(li,{question:"Does Langfinity support multilingual recordings and transcripts? Can translations be saved for later reference?",answer:h.jsx("p",{children:"Yes! Langfinity supports multilingual recordings and transcripts. All translated speech and text can be saved and accessed later, allowing users to review conversations, meetings, and events in multiple languages."})}
1567),h.jsx(li,{question:"How much does Langfinity cost?",answer:h.jsxs(h.Fragment,{children:[h.jsx("p",{children:"Langfinity offers flexible pricing based on your needs. We provide different plans for businesses, events, and organizations, with options based on translation hours, number of languages, and features like voice-to-voice translation and AI voice avatars."}),h.jsx("p",{children:"📩 Contact us at [email protected] for a custom quote or a free trial!"})]})}),h.jsx(li,{question:"What security and compliance measures does Langfinity follow? How secure is my meeting and event data?",answer:h.jsx("p",{children:"Langfinity follows best practices to ensure the security of your meeting and event data. This includes encrypting data both at rest and in transit, implementing strict access controls, and conducting regular security audits. The platform uses secure infrastructure with firewalls and intrusion detection systems to protect against threats, while also adhering to data retention and disposal policies to ensure data is kept only as long as necessary and securely deleted when no longer needed. These measures work together to maintain the confidentiality and integrity of your data."})}),h.jsx(li,{question:"Is Langfinity easy to set up and use for non-technical users?",answer:h.jsxs(h.Fragment,{children:[h.jsx("p",{children:"Yes! Langfinity is designed to be easy for everyone, even non-technical users."}),h.jsx("p",{children:"✅ One-click access - Join with a simple link or QR scan, no complicated setup."}),h.jsx("p",{children:"✅ Seamless integration - Works with Microsoft Teams, Zoom, Google Meet, and more."}),h.jsx("p",{children:"✅ Intuitive interface - Just select your language and start translating in real time."}),h.jsxs("p",{children:["No training or technical skills needed—just start speaking! Check out the onboarding guide"," ",h.jsx(It,{target:"_blank",to:"https://langfinity.notion.site/Langfinity-onboarding-guide-1b991ab1cc7f803aa776f7be6b60ac67?pvs=4",children:"here"})," ","for details."]})]})}),h.jsx(li,{question:"What are the best setup recommendations for real-time translation at events?",answer:h.jsx("p",{children:"For events we recommend connecting the existing sound system directly to Langfinity to acheive the best sound quality. You can do this by connecting a laptop to your event sound system via USB or Aux. This will ensure the most accurate translations for the speaker since it will use the same source the audience will hear. A second-best alternative is to attach a wireless lapel mic to the presenter and connect it to a laptop with Langfinity."})})]})]}),Lpt="_Support_ngtqt_1",Fpt="_NeedHelp_ngtqt_14",__e={Support:Lpt,NeedHelp:Fpt};function PO(e){const t=ls();return h.jsxs("div",{className:__e.NeedHelp,children:[e.title&&h.jsx("h2",{children:e.title}),h.jsxs("p",{children:["Contact us at"," ",h.jsx("a",{href:"mailto:[email protected]?subject=Langfinity%20Support",onClick:()=>{t({type:"click_email_support"})},children:"[email protected]"})," ","for a response within 24 hours or call"," ",h.jsx("a",{href:"tel:+1-323-364-0815",onClick:()=>{t({type:"click_call_support"})},children:"+1-323-364-0815"})," ","for urgent assistance"]})]})}function jpt(){return h.jsxs("div",{className:__e.Support,children:[h.jsx("h1",{children:"Support"}),h.jsx(S_e,{}),h.jsx(PO,{title:"Still need help?"})]})}function Upt(e){const[t,n]=b.useState(!1);return h.jsxs("div",{onClick:()=>n(r=>!r),className:Hu.IncludedFeatures,children:[h.jsxs(qe,{borderColor:"transparent",backgroundColor:"transparent",style:{color:e.landing?"black":"white",padding:0,alignSelf:"flex-start"},children:["Included features",t?h.jsx(Xc,{}):h.jsx(na,{})]}),t&&h.jsx("div",{children:e.features.map((r,i)=>h.jsxs("div",{className:Hu.Feature,children:[r.enabled?h.jsx(lm,{}):h.jsx(Eh,{style:{color:"#cc525f"}}),r.name]},i))})]})}const C_e=e=>{const[t,n]=b.useState(20),r=Cn(),i=Gt.useCreateStripeCheckout(r),[o]=Jt(),s=b.useCallback(()=>{window.open("https://calendly.com/d/cs8h-bpy-tzc/langfinity-intro","_blank")},[]),a=Ts(),c=[{name:"starter",tag:"20 minutes free trial",description:"For organizations with occasional multilingual meetings and events",features:["Flexible, pay-as-you-go","Single language pair","Supports multiple participants per session"],buttonText:e.currentPlan?"Get credits":"Try for free",buttonAction:e.currentPlan?async()=>
1567{if(!o.auth)return;const u=await i({quantity:t});u.data.url&&window.open(u.data.url)}:()=>a("/login")},{name:"pro",description:"For organizations scaling multilingual meetings, webinars, and events",features:["Minimum 20 hours annual commitment","Up to 50 languages per meeting or event","Subscription based with volume discount"],buttonText:"Get a Demo",buttonAction:s},{name:"business",description:"For organizations with frequent multilingual meetings, webinars, events, and conferences",features:["Minimum 100 hours annual commitment","Unlimited participants","Platform integration available"],buttonText:"Contact Sales",buttonAction:s}],[l]=x$();return b.useEffect(()=>{l.has("success")&&mt(h.jsx("div",{className:"Toast SuccessToast",children:"Successfully purchased trasnlation hours"}),{type:"success"})},[l]),h.jsx("div",{className:Hu.TiersContainer,children:c.map((u,d)=>h.jsxs("div",{className:`${Hu.PricingTier} ${e.currentPlan===u.name?Hu.CurrentTier:""}`,children:[h.jsx("h3",{children:u.description}),h.jsx("h2",{children:u.name.charAt(0).toUpperCase()+u.name.slice(1).toLowerCase()}),h.jsx("div",{className:Hu.FirstFeatures,children:u.features.map((f,p)=>h.jsxs("div",{className:Hu.Feature,children:[h.jsx(lm,{}),f]},p))}),h.jsxs("div",{className:Hu.Buttons,children:[e.currentPlan&&u.name==="starter"&&h.jsx(Ia,{selected:t,onChange:f=>n(f),items:Array.from({length:20},(f,p)=>{const g=p+1;return{value:g,label:g+" hour"+(g===1?"":"s")}}),borderColor:"gray"}),h.jsx(qe,{style:{flexGrow:"1"},onClick:u.buttonAction,backgroundColor:e.currentPlan?void 0:"blue",borderColor:e.currentPlan?void 0:"blue",children:u.buttonText})]}),h.jsx(Upt,{features:[{name:"Real-time voice-to-text translation",enabled:!0},{name:"Real-time voice-to-voice translation",enabled:!0},{name:"24/7 on-demand access",enabled:!0},{name:"Global accent and dialect coverage",enabled:!0},{name:"Smart profanity filtering",enabled:!0},{name:"Custom glossaries and terminology",enabled:!0},{name:"Flexible for in-person, virtual and hybrid meetings and events",enabled:!0},{name:"Live multilingual Q&A",enabled:!0},{name:"Cross-device compatibility",enabled:!0},{name:"Speaker recognition and labeling",enabled:!0},{name:"Multi-speaker translation",enabled:!0},{name:"Human-like AI voice avatars",enabled:u.name!=="starter"},{name:"Automatic language detection",enabled:u.name!=="starter"},{name:"Dedicated channel for human interpreters",enabled:u.name!=="starter"},{name:"Customer support ",enabled:u.name!=="starter"},{name:"Multilingual meeting recordings",enabled:u.name!=="starter"&&u.name!=="pro"},{name:"Multilingual meeting notes, summaries and highlights",enabled:u.name!=="starter"&&u.name!=="pro"},{name:"Industry-specific customization and personalization",enabled:u.name!=="starter"&&u.name!=="pro"},{name:"Seamless platform or telephony integrations",enabled:u.name!=="starter"&&u.name!=="pro"},{name:"Technical support and guided onboarding",enabled:u.name!=="starter"&&u.name!=="pro"}],landing:!e.currentPlan})]},d))})};function E_e(){const{organization:e,loading:t}=Md(),n=sO(e);return!e||t?h.jsx(Sn,{}):h.jsxs("section",{className:Hu.PricingSection,children:[h.jsx("h2",{children:"Pricing & plan"}),h.jsx(C_e,{currentPlan:n})]})}const Bpt=()=>h.jsxs("div",{className:Hu.Billing,children:[h.jsx("h1",{children:"Plan & billing"}),h.jsx(E_e,{}),h.jsx(PO,{title:"Need help with billing?"})]}),$pt="_Usage_khvlw_1",Hpt="_Filters_khvlw_8",zpt="_SectionLabel_khvlw_15",Vpt="_BusinessImpactSection_khvlw_22",Wpt="_BusinessImpactCards_khvlw_36",qpt="_UsageStatCard_khvlw_42",Gpt="_ProductUsageSection_khvlw_47",Kpt="_UsageStatCards_khvlw_53",Ypt="_Title_khvlw_72",Qpt="_TooltipContent_khvlw_102",Xpt="_TooltipTrigger_khvlw_114",Jpt="_TooltipArrow_khvlw_130",Ya={Usage:$pt,Filters:Hpt,SectionLabel:zpt,BusinessImpactSection:Vpt,BusinessImpactCards:Wpt,UsageStatCard:qpt,ProductUsageSection:Gpt,UsageStatCards:Kpt,Title:Ypt,TooltipContent:Qpt,TooltipTrigger:Xpt,TooltipArrow:Jpt},Zpt="_Trigger_ajpyj_1",emt="_TimeRangeSelectContent_ajpyj_5",tmt="_DefaultTimeRanges_ajpyj_12",nmt="_CustomTimeRange_ajpyj_29",rmt="_DatePicker_ajpyj_37",b0={Trigger:Zpt,TimeRangeSelectContent:emt,DefaultTimeRanges:tmt,CustomTimeRange:nmt,DatePicker:rmt};function ht(e){const t=Object.prototype.toString.call(e);return e instanceof Date||typeof e=="object"&&t==="[object Date]"?new e.constructor(+e):typeof e=="number"||t==="[object Number]"||typeof e=="string"||t==="[object String]"?new Date(e):new Date(NaN)}function tr(e,t){return e instanceof Date?new e.constructor(t):new Date(t)}function hh(e,t){const n=ht(e);return isNaN(t)?tr(e,NaN):(t&&n.setDate(n.getDate()+t),n)}function su(e,t){const n=ht(e);
1567if(isNaN(t))return tr(e,NaN);if(!t)return n;const r=n.getDate(),i=tr(e,n.getTime());i.setMonth(n.getMonth()+t+1,0);const o=i.getDate();return r>=o?i:(n.setFullYear(i.getFullYear(),i.getMonth(),r),n)}function gV(e,t){const n=+ht(e);return tr(e,n+t)}const T_e=6048e5,imt=864e5,OO=6e4,NO=36e5,omt=1e3;function smt(e,t){return gV(e,t*NO)}let amt={};function qv(){return amt}function ph(e,t){var a,c,l,u;const n=qv(),r=(t==null?void 0:t.weekStartsOn)??((c=(a=t==null?void 0:t.locale)==null?void 0:a.options)==null?void 0:c.weekStartsOn)??n.weekStartsOn??((u=(l=n.locale)==null?void 0:l.options)==null?void 0:u.weekStartsOn)??0,i=ht(e),o=i.getDay(),s=(o<r?7:0)+o-r;return i.setDate(i.getDate()-s),i.setHours(0,0,0,0),i}function U1(e){return ph(e,{weekStartsOn:1})}function k_e(e){const t=ht(e),n=t.getFullYear(),r=tr(e,0);r.setFullYear(n+1,0,4),r.setHours(0,0,0,0);const i=U1(r),o=tr(e,0);o.setFullYear(n,0,4),o.setHours(0,0,0,0);const s=U1(o);return t.getTime()>=i.getTime()?n+1:t.getTime()>=s.getTime()?n:n-1}function _v(e){const t=ht(e);return t.setHours(0,0,0,0),t}function RR(e){const t=ht(e),n=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return n.setUTCFullYear(t.getFullYear()),+e-+n}function B1(e,t){const n=_v(e),r=_v(t),i=+n-RR(n),o=+r-RR(r);return Math.round((i-o)/imt)}function cmt(e){const t=k_e(e),n=tr(e,0);return n.setFullYear(t,0,4),n.setHours(0,0,0,0),U1(n)}function l9(e,t){return gV(e,t*OO)}function vV(e,t){const n=t*3;return su(e,n)}function lmt(e,t){return gV(e,t*1e3)}function PR(e,t){const n=t*7;return hh(e,n)}function zf(e,t){return su(e,t*12)}function Sne(e){let t;return e.forEach(function(n){const r=ht(n);(t===void 0||t<r||isNaN(Number(r)))&&(t=r)}),t||new Date(NaN)}function _ne(e){let t;return e.forEach(n=>{const r=ht(n);(!t||t>r||isNaN(+r))&&(t=r)}),t||new Date(NaN)}function umt(e,t){const n=_v(e),r=_v(t);return+n==+r}function Vf(e){return e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]"}function OR(e){if(!Vf(e)&&typeof e!="number")return!1;const t=ht(e);return!isNaN(Number(t))}function NR(e,t){const n=ht(e),r=ht(t),i=n.getFullYear()-r.getFullYear(),o=n.getMonth()-r.getMonth();return i*12+o}function Kg(e){const t=ht(e);return Math.trunc(t.getMonth()/3)+1}function MR(e,t){const n=ht(e),r=ht(t),i=n.getFullYear()-r.getFullYear(),o=Kg(n)-Kg(r);return i*4+o}function DR(e,t){const n=ht(e),r=ht(t);return n.getFullYear()-r.getFullYear()}function dmt(e,t){const n=ht(e),r=ht(t),i=Cne(n,r),o=Math.abs(B1(n,r));n.setDate(n.getDate()-i*o);const s=+(Cne(n,r)===-i),a=i*(o-s);return a===0?0:a}function Cne(e,t){const n=e.getFullYear()-t.getFullYear()||e.getMonth()-t.getMonth()||e.getDate()-t.getDate()||e.getHours()-t.getHours()||e.getMinutes()-t.getMinutes()||e.getSeconds()-t.getSeconds()||e.getMilliseconds()-t.getMilliseconds();return n<0?-1:n>0?1:n}function x_e(e){const t=ht(e);return t.setHours(23,59,59,999),t}function A_e(e){const t=ht(e),n=t.getMonth();return t.setFullYear(t.getFullYear(),n+1,0),t.setHours(23,59,59,999),t}function u9(e){const t=ht(e),n=t.getMonth(),r=n-n%3;return t.setMonth(r,1),t.setHours(0,0,0,0),t}function I_e(e){const t=ht(e);return t.setDate(1),t.setHours(0,0,0,0),t}function R_e(e){const t=ht(e),n=t.getFullYear();return t.setFullYear(n+1,0,0),t.setHours(23,59,59,999),t}function MO(e){const t=ht(e),n=tr(e,0);return n.setFullYear(t.getFullYear(),0,1),n.setHours(0,0,0,0),n}function fmt(e,t){var a,c;const n=qv(),r=n.weekStartsOn??((c=(a=n.locale)==null?void 0:a.options)==null?void 0:c.weekStartsOn)??0,i=ht(e),o=i.getDay(),s=(o<r?-7:0)+6-(o-r);return i.setDate(i.getDate()+s),i.setHours(23,59,59,999),i}const hmt={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},pmt=(e,t,n)=>{let r;const i=hmt[e];return typeof i=="string"?r=i:t===1?r=i.one:r=i.other.replace("{{count}}",t.toString()),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?"in "+r:r+" ago":r};function j6(e){return(t={})=>{const n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}const mmt={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},gmt={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},vmt={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},ymt={date:j6({formats:mmt,defaultWidth:"full"}),time:j6({formats:gmt,defaultWidth:"full"}),dateTime:j6({formats:vmt,defaultWidth:"full"})},bmt={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},wmt=(e,t,n,r)=>bmt[e];function Ww(e){return(t,n)=>{const r=n!=null&&n.context?String(n.context):"standalone";let i;if(r==="formatting"&&e.formattingValues){const s=e.defaultFormattingWidth||e.defaultWidth,a=n!=null&&n.width?String(n.width):s;i=e.formattingValues[a]||e.formattingValues[s]}else{const s=e.defaultWidth,a=n!=null&&n.width?String(n.width):e.defaultWidth;i=e.values[a]||e.values[s]}const o=e.argumentCallback?e.argumentCallback(t):t;return i[o]}}const Smt={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},_mt={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},Cmt={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},Emt={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Frid
1567ay","Saturday"]},Tmt={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},kmt={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},xmt=(e,t)=>{const n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},Amt={ordinalNumber:xmt,era:Ww({values:Smt,defaultWidth:"wide"}),quarter:Ww({values:_mt,defaultWidth:"wide",argumentCallback:e=>e-1}),month:Ww({values:Cmt,defaultWidth:"wide"}),day:Ww({values:Emt,defaultWidth:"wide"}),dayPeriod:Ww({values:Tmt,defaultWidth:"wide",formattingValues:kmt,defaultFormattingWidth:"wide"})};function qw(e){return(t,n={})=>{const r=n.width,i=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],o=t.match(i);if(!o)return null;const s=o[0],a=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],c=Array.isArray(a)?Rmt(a,d=>d.test(s)):Imt(a,d=>d.test(s));let l;l=e.valueCallback?e.valueCallback(c):c,l=n.valueCallback?n.valueCallback(l):l;const u=t.slice(s.length);return{value:l,rest:u}}}function Imt(e,t){for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function Rmt(e,t){for(let n=0;n<e.length;n++)if(t(e[n]))return n}function Pmt(e){return(t,n={})=>{const r=t.match(e.matchPattern);if(!r)return null;const i=r[0],o=t.match(e.parsePattern);if(!o)return null;let s=e.valueCallback?e.valueCallback(o[0]):o[0];s=n.valueCallback?n.valueCallback(s):s;const a=t.slice(i.length);return{value:s,rest:a}}}const Omt=/^(\d+)(th|st|nd|rd)?/i,Nmt=/\d+/i,Mmt={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},Dmt={any:[/^b/i,/^(a|c)/i]},Lmt={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},Fmt={any:[/1/i,/2/i,/3/i,/4/i]},jmt={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},Umt={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},Bmt={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},$mt={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},Hmt={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},zmt={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},Vmt={ordinalNumber:Pmt({matchPattern:Omt,parsePattern:Nmt,valueCallback:e=>parseInt(e,10)}),era:qw({matchPatterns:Mmt,defaultMatchWidth:"wide",parsePatterns:Dmt,defaultParseWidth:"any"}),quarter:qw({matchPatterns:Lmt,defaultMatchWidth:"wide",parsePatterns:Fmt,defaultParseWidth:"any",valueCallback:e=>e+1}),month:qw({matchPatterns:jmt,defaultMatchWidth:"wide",parsePatterns:Umt,defaultParseWidth:"any"}),day:qw({matchPatterns:Bmt,defaultMatchWidth:"wide",parsePatterns:$mt,defaultParseWidth:"any"}),dayPeriod:qw({matchPatterns:Hmt,defaultMatchWidth:"any",parsePatterns:zmt,defaultParseWidth:"any"})},P_e={code:"en-US",formatDistance:pmt,formatLong:ymt,formatRelative:wmt,localize:Amt,match:Vmt,options:{weekStartsOn:0,firstWeekContainsDate:1}};function Wmt(e){const t=ht(e);return B1(t,MO(t))+1}function yV(e){const t=ht(e),n=+U1(t)-+cmt(t);return Math.round(n/T_e)+1}function bV(e,t){var u,d,f,p;const n=ht(e),r=n.getFullYear(),i=qv(),o=(t==null?void 0:t.firstWeekContainsDate)??((d=(u=t==null?void 0:t.locale)==null?void 0:u.options)==null?void 0:d.firstWeekContainsDate)??i.firstWeekContainsDate??((p=(f=i.locale)==null?void 0:f.options)==null?void 0:p.firstWeekContainsDate)??1,s=tr(e,0);s.setFullYear(r+1,0,o),s.setHours(0,0,0,0);const a=ph(s,t),c=tr(e,0);c.setFullYear(r,0,o),c.setHours(0,0,0,0);const l=ph(c,t);return n.getTime()>=a.getTime()?r+1:n.getTime()>=l.getTime()?r:r-1}function qmt(e,t){var a,c,l,u;const n=qv(),r=(t==null?void 0:t.firstWeekContainsDate)??((c=(a=t==null?void 0:t.locale)==null?void 0:a.options)==null?void 0:c.firstWeekContainsDate)??n.firstWeekContainsDate??((u=(l=n.locale)==null?void 0:l.options)==null?void 0:u.firstWeekContainsDate)??1,i=bV(e,t),o=tr(e,0);return o.setFullYear(i,0,r),o.setHours(0,0,0,0),ph(o,t)}function O_e(e,t){const n=ht(e),r=+ph(n,t)-+qmt(n,t);return Math.round(r/T_e)+1}function er(e,t){const n=e<0?"-":"",r=Math.abs(e).toString().padStart(t,"0");return n+r}const Hh={y(e,t){const n=e.getFullYear(),r=n>0?n:1-n;return er(t==="yy"?r%100:r,t.length)},M(e,t){const n=e.getMonth();return t==="M"?String(n+1):er(n+1,2)},d(e,t){return er(e.getDate(),t.length)},a(e,t){const n=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];case"aaaa":default:return n==="am"?"a.m.":"p.m."}},h(e,t){return er(e.getHours()%12||12,t.length)},H(e,t){return er(e.getHours(),t.length)},m(e,t){return er(e.getMinutes(),t.length)},s(e,t){return er(e.getSeconds(),t.length)},S(e,t){const n=t.length,r=e.getMilliseconds(),i=Math.trunc(r*Math.pow(10,n-3));return er(i,t.length)}},w0={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},Ene={G:function(e,t,n){const r=e.getFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});case"GGGG":default:return n.era(r,{width:"wide"})}},y:function(e,t,n){if(t==="yo"){const r=e.getFullYear(),i=r>0?r:1-r;return n.ordinalNumber(i,{unit:"year"})}return Hh.y(e,t)},Y:function(e,t,n,r){const i=bV(e,r),o=i>0?i:1-i;if(t==="YY"){const s=o%100;return er(s,2)}return t==="Yo"?n.ordinalNumber(o,{unit:"year"}):er(o,t.length)},R:function(e,t){const n=k_e(e);return er(n,t.length)},u:function(e,t){const n=e.getFullYear();return er(n,t.length)},Q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"Q":return String(r);case"QQ":return er(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});case"QQQQ":default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"q":return String(r);case"qq":return er(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});case"qqqq":default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(e,t,n){const r=e.getMonth();switch(t){case"M":case"MM":return Hh.M(e,t);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});case"MMMM":default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(e,t,n){const r=e.getMonth();switch(t){case"L":return String(r+1);case"LL":return er(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});case"LLLL":default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(e,t,n,r){const i=O_e(e,r);return t==="wo"?n.ordinalNumber(i,{unit:"week"}):er(i,t.length)},I:function(e,t,n){const r=yV(e);return t==="Io"?n.ordinalNumber(r,{unit:"week"}):er(r,t.length)},d:function(e,t,n){return t==="do"?n.ordinalNumber(e.getDate(),{unit:"date"}):Hh.d(e,t)},D:function(e,t,n){const r=Wmt(e);return t==="Do"?n.ordinalNumber(r,{unit:"dayOfYear"}):er(r,t.length)},E:function(e,t,n){const r=e.getDay();switch(t){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});case"EEEE":default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(e,t,n,r){const i=e.getDay(),o=(i-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(o);case"ee":return er(o,2);case"eo":return n.ordinalNumber(o,{unit:"day"});case"eee":return n.day(i,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(i,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(i,{width:"short",context:"formatting"});case"eeee":default:return n.day(i,{width:"wide",context:"formatting"})}},c:function(e,t,n,r){const i=e.getDay(),o=(i-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(o);case"cc":return er(o,t.length);case"co":return n.ordinalNumber(o,{unit:"day"});case"ccc":return n.day(i,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(i,{width:"narrow",context:"standalone"});case"cccccc":return n.day(i,{width:"short",context:"standalone"});case"cccc":default:return n.day(i,{width:"wide",context:"standalone"})}},i:function(e,t,n){const r=e.getDay(),i=r===0?7:r;switch(t){case"i":return String(i);case"ii":return er(i,t.length);case"io":return n.ordinalNumber(i,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});case"iiii":default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(e,t,n){const i=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(i,{width:"narrow",context:"formatting"});case"aaaa":default:return n.dayPeriod(i,{width:"wide",context:"formatting"})}},b:function(e,t,n){const r=e.getHours();let i;switch(r===12?i=w0.noon:r===0?i=w0.midnight:i=r/12>
vendor: 4,402 bytes, line 1567
1567=1?"pm":"am",t){case"b":case"bb":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(i,{width:"narrow",context:"formatting"});case"bbbb":default:return n.dayPeriod(i,{width:"wide",context:"formatting"})}},B:function(e,t,n){const r=e.getHours();let i;switch(r>=17?i=w0.evening:r>=12?i=w0.afternoon:r>=4?i=w0.morning:i=w0.night,t){case"B":case"BB":case"BBB":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(i,{width:"narrow",context:"formatting"});case"BBBB":default:return n.dayPeriod(i,{width:"wide",context:"formatting"})}},h:function(e,t,n){if(t==="ho"){let r=e.getHours()%12;return r===0&&(r=12),n.ordinalNumber(r,{unit:"hour"})}return Hh.h(e,t)},H:function(e,t,n){return t==="Ho"?n.ordinalNumber(e.getHours(),{unit:"hour"}):Hh.H(e,t)},K:function(e,t,n){const r=e.getHours()%12;return t==="Ko"?n.ordinalNumber(r,{unit:"hour"}):er(r,t.length)},k:function(e,t,n){let r=e.getHours();return r===0&&(r=24),t==="ko"?n.ordinalNumber(r,{unit:"hour"}):er(r,t.length)},m:function(e,t,n){return t==="mo"?n.ordinalNumber(e.getMinutes(),{unit:"minute"}):Hh.m(e,t)},s:function(e,t,n){return t==="so"?n.ordinalNumber(e.getSeconds(),{unit:"second"}):Hh.s(e,t)},S:function(e,t){return Hh.S(e,t)},X:function(e,t,n){const r=e.getTimezoneOffset();if(r===0)return"Z";switch(t){case"X":return kne(r);case"XXXX":case"XX":return ug(r);case"XXXXX":case"XXX":default:return ug(r,":")}},x:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"x":return kne(r);case"xxxx":case"xx":return ug(r);case"xxxxx":case"xxx":default:return ug(r,":")}},O:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+Tne(r,":");case"OOOO":default:return"GMT"+ug(r,":")}},z:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+Tne(r,":");case"zzzz":default:return"GMT"+ug(r,":")}},t:function(e,t,n){const r=Math.trunc(e.getTime()/1e3);return er(r,t.length)},T:function(e,t,n){const r=e.getTime();return er(r,t.length)}};function Tne(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),i=Math.trunc(r/60),o=r%60;return o===0?n+String(i):n+String(i)+t+er(o,2)}function kne(e,t){return e%60===0?(e>0?"-":"+")+er(Math.abs(e)/60,2):ug(e,t)}function ug(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),i=er(Math.trunc(r/60),2),o=er(r%60,2);return n+i+t+o}const xne=(e,t)=>{switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});case"PPPP":default:return t.date({width:"full"})}},N_e=(e,t)=>{switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});case"pppp":default:return t.time({width:"full"})}},Gmt=(e,t)=>{const n=e.match(/(P+)(p+)?/)||[],r=n[1],i=n[2];if(!i)return xne(e,t);let o;switch(r){case"P":o=t.dateTime({width:"short"});break;case"PP":o=t.dateTime({width:"medium"});break;case"PPP":o=t.dateTime({width:"long"});break;case"PPPP":default:o=t.dateTime({width:"full"});break}return o.replace("{{date}}",xne(r,t)).replace("{{time}}",N_e(i,t))},LR={p:N_e,P:Gmt},Kmt=/^D+$/,Ymt=/^Y+$/,Qmt=["D","DD","YY","YYYY"];function M_e(e){return Kmt.test(e)}function D_e(e){return Ymt.test(e)}function d9(e,t,n){const r=Xmt(e,t,n);if(console.warn(r),Qmt.includes(e))throw new RangeError(r)}function Xmt(e,t,n){const r=e[0]==="Y"?"years":"days of the month";return`Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${r} to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}const Jmt=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,Zmt=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,egt=/^'([^]*?)'?$/,tgt=/''/g,ngt=/[a-zA-Z]/;function Ane(e,t,n){var u,d,f,p,g,m,y,v;const r=qv(),i=(n==null?void 0:n.locale)??r.locale??P_e,o=(n==null?void 0:n.firstWeekContainsDate)??((d=(u=n==null?void 0:n.locale)==null?void 0:u.options)==null?void 0:d.firstWeekContainsDate)??r.firstWeekContainsDate??((p=(f=r.locale)==null?void 0:f.options)==null?void 0:p.firstWeekContainsDate)??1,s=(n==null?void 0:n.weekStartsOn)??((m=(g=n==null?void 0:n.locale)==null?void 0:g.options)==null?void 0:m.weekStartsOn)??r.weekStartsOn??((v=(y=r.locale)==null?void 0:y.options)==null?void 0:v.weekStartsOn)??0,a=ht(e);
vendor: 21,582 bytes, line 1567
1567if(!OR(a))throw new RangeError("Invalid time value");let c=t.match(Zmt).map(w=>{const S=w[0];if(S==="p"||S==="P"){const C=LR[S];return C(w,i.formatLong)}return w}).join("").match(Jmt).map(w=>{if(w==="''")return{isToken:!1,value:"'"};const S=w[0];if(S==="'")return{isToken:!1,value:rgt(w)};if(Ene[S])return{isToken:!0,value:w};if(S.match(ngt))throw new RangeError("Format string contains an unescaped latin alphabet character `"+S+"`");return{isToken:!1,value:w}});i.localize.preprocessor&&(c=i.localize.preprocessor(a,c));const l={firstWeekContainsDate:o,weekStartsOn:s,locale:i};return c.map(w=>{if(!w.isToken)return w.value;const S=w.value;(!(n!=null&&n.useAdditionalWeekYearTokens)&&D_e(S)||!(n!=null&&n.useAdditionalDayOfYearTokens)&&M_e(S))&&d9(S,t,String(e));const C=Ene[S[0]];return C(a,S,i.localize,l)}).join("")}function rgt(e){const t=e.match(egt);return t?t[1].replace(tgt,"'"):e}function Ine(e){return ht(e).getDate()}function igt(e){return ht(e).getDay()}function ogt(e){const t=ht(e),n=t.getFullYear(),r=t.getMonth(),i=tr(e,0);return i.setFullYear(n,r+1,0),i.setHours(0,0,0,0),i.getDate()}function sgt(){return Object.assign({},qv())}function ud(e){return ht(e).getHours()}function agt(e){let n=ht(e).getDay();return n===0&&(n=7),n}function dd(e){return ht(e).getMinutes()}function Gs(e){return ht(e).getMonth()}function Wf(e){return ht(e).getSeconds()}function f9(e){return ht(e).getTime()}function vn(e){return ht(e).getFullYear()}function vm(e,t){const n=ht(e),r=ht(t);return n.getTime()>r.getTime()}function Cv(e,t){const n=ht(e),r=ht(t);return+n<+r}function cgt(e,t){const n=ht(e),r=ht(t);return+n==+r}function lgt(e,t){const n=t instanceof Date?tr(t,0):new t(0);return n.setFullYear(e.getFullYear(),e.getMonth(),e.getDate()),n.setHours(e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()),n}const ugt=10;class L_e{constructor(){ot(this,"subPriority",0)}validate(t,n){return!0}}class dgt extends L_e{constructor(t,n,r,i,o){super(),this.value=t,this.validateValue=n,this.setValue=r,this.priority=i,o&&(this.subPriority=o)}validate(t,n){return this.validateValue(t,this.value,n)}set(t,n,r){return this.setValue(t,n,this.value,r)}}class fgt extends L_e{constructor(){super(...arguments);ot(this,"priority",ugt);ot(this,"subPriority",-1)}set(n,r){return r.timestampIsSet?n:tr(n,lgt(n,Date))}}class Gn{run(t,n,r,i){const o=this.parse(t,n,r,i);return o?{setter:new dgt(o.value,this.validate,this.set,this.priority,this.subPriority),rest:o.rest}:null}validate(t,n,r){return!0}}class hgt extends Gn{constructor(){super(...arguments);ot(this,"priority",140);ot(this,"incompatibleTokens",["R","u","t","T"])}parse(n,r,i){switch(r){case"G":case"GG":case"GGG":return i.era(n,{width:"abbreviated"})||i.era(n,{width:"narrow"});case"GGGGG":return i.era(n,{width:"narrow"});case"GGGG":default:return i.era(n,{width:"wide"})||i.era(n,{width:"abbreviated"})||i.era(n,{width:"narrow"})}}set(n,r,i){return r.era=i,n.setFullYear(i,0,1),n.setHours(0,0,0,0),n}}const Hi={month:/^(1[0-2]|0?\d)/,date:/^(3[0-1]|[0-2]?\d)/,dayOfYear:/^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,week:/^(5[0-3]|[0-4]?\d)/,hour23h:/^(2[0-3]|[0-1]?\d)/,hour24h:/^(2[0-4]|[0-1]?\d)/,hour11h:/^(1[0-1]|0?\d)/,hour12h:/^(1[0-2]|0?\d)/,minute:/^[0-5]?\d/,second:/^[0-5]?\d/,singleDigit:/^\d/,twoDigits:/^\d{1,2}/,threeDigits:/^\d{1,3}/,fourDigits:/^\d{1,4}/,anyDigitsSigned:/^-?\d+/,singleDigitSigned:/^-?\d/,twoDigitsSigned:/^-?\d{1,2}/,threeDigitsSigned:/^-?\d{1,3}/,fourDigitsSigned:/^-?\d{1,4}/},qu={basicOptionalMinutes:/^([+-])(\d{2})(\d{2})?|Z/,basic:/^([+-])(\d{2})(\d{2})|Z/,basicOptionalSeconds:/^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,extended:/^([+-])(\d{2}):(\d{2})|Z/,extendedOptionalSeconds:/^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/};function zi(e,t){return e&&{value:t(e.value),rest:e.rest}}function fi(e,t){const n=t.match(e);return n?{value:parseInt(n[0],10),rest:t.slice(n[0].length)}:null}function Gu(e,t){const n=t.match(e);if(!n)return null;if(n[0]==="Z")return{value:0,rest:t.slice(1)};const r=n[1]==="+"?1:-1,i=n[2]?parseInt(n[2],10):0,o=n[3]?parseInt(n[3],10):0,s=n[5]?parseInt(n[5],10):0;return{value:r*(i*NO+o*OO+s*omt),rest:t.slice(n[0].length)}}function F_e(e){return fi(Hi.anyDigitsSigned,e)}function Ri(e,t){switch(e){case 1:return fi(Hi.singleDigit,t);case 2:return fi(Hi.twoDigits,t);case 3:return fi(Hi.threeDigits,t);case 4:return fi(Hi.fourDigits,t);default:return fi(new RegExp("^\\d{1,"+e+"}"),t)}}function FR(e,t){switch(e){case 1:return fi(Hi.singleDigitSigned,t);case 2:return fi(Hi.twoDigitsSigned,t);case 3:return fi(Hi.threeDigitsSigned,t);case 4:return fi(Hi.fourDigitsSigned,t);default:return fi(new RegExp("^-?\\d{1,"+e+"}"),t)}}function wV(e){switch(e){case"morning":return 4;case"evening":return 17;case"pm":case"noon":case"afternoon":return 12;case"am":case"midnight":case"night":default:return 0}}function j_e(e,t){const n=t>0,r=n?t:1-t;let i;if(r<=50)i=e||100;else{const o=r+50,s=Math.trunc(o/100)*100,a=e>=o%100;i=e+s-(a?100:0)}return n?i:1-i}function U_e(e){return e%400===0||e%4===0&&e%100!==0}class pgt extends Gn{constructor(){super(...arguments);ot(this,"priority",130);ot(this,"incompatibleTokens",["Y","R","u","w","I","i","e","c","t","T"])}parse(n,r,i){const o=s=>({year:s,isTwoDigitYear:r==="yy"});switch(r){case"y":return zi(Ri(4,n),o);case"yo":return zi(i.ordinalNumber(n,{unit:"year"}),o);default:return zi(Ri(r.length,n),o)}}validate(n,r){return r.isTwoDigitYear||r.year>0}set(n,r,i){const o=n.getFullYear();if(i.isTwoDigitYear){const a=j_e(i.year,o);return n.setFullYear(a,0,1),n.setHours(0,0,0,0),n}const s=!("era"in r)||r.era===1?i.year:1-i.year;return n.setFullYear(s,0,1),n.setHours(0,0,0,0),n}}class mgt extends Gn{constructor(){super(...arguments);ot(this,"priority",130);ot(this,"incompatibleTokens",["y","R","u","Q","q","M","L","I","d","D","i","t","T"])}parse(n,r,i){const o=s=>({year:s,isTwoDigitYear:r==="YY"});switch(r){case"Y":return zi(Ri(4,n),o);case"Yo":return zi(i.ordinalNumber(n,{unit:"year"}),o);default:return zi(Ri(r.length,n),o)}}validate(n,r){return r.isTwoDigitYear||r.year>0}set(n,r,i,o){const s=bV(n,o);if(i.isTwoDigitYear){const c=j_e(i.year,s);return n.setFullYear(c,0,o.firstWeekContainsDate),n.setHours(0,0,0,0),ph(n,o)}const a=!("era"in r)||r.era===1?i.year:1-i.year;return n.setFullYear(a,0,o.firstWeekContainsDate),n.setHours(0,0,0,0),ph(n,o)}}class ggt extends Gn{constructor(){super(...arguments);ot(this,"priority",130);ot(this,"incompatibleTokens",["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"])}parse(n,r){return FR(r==="R"?4:r.length,n)}set(n,r,i){const o=tr(n,0);return o.setFullYear(i,0,4),o.setHours(0,0,0,0),U1(o)}}class vgt extends Gn{constructor(){super(...arguments);ot(this,"priority",130);ot(this,"incompatibleTokens",["G","y","Y","R","w","I","i","e","c","t","T"])}parse(n,r){return FR(r==="u"?4:r.length,n)}set(n,r,i){return n.setFullYear(i,0,1),n.setHours(0,0,0,0),n}}class ygt extends Gn{constructor(){super(...arguments);ot(this,"priority",120);ot(this,"incompatibleTokens",["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"])}parse(n,r,i){switch(r){case"Q":case"QQ":return Ri(r.length,n);case"Qo":return i.ordinalNumber(n,{unit:"quarter"});case"QQQ":return i.quarter(n,{width:"abbreviated",context:"formatting"})||i.quarter(n,{width:"narrow",context:"formatting"});case"QQQQQ":return i.quarter(n,{width:"narrow",context:"formatting"});case"QQQQ":default:return i.quarter(n,{width:"wide",context:"formatting"})||i.quarter(n,{width:"abbreviated",context:"formatting"})||i.quarter(n,{width:"narrow",context:"formatting"})}}validate(n,r){return r>=1&&r<=4}set(n,r,i){return n.setMonth((i-1)*3,1),n.setHours(0,0,0,0),n}}class bgt extends Gn{constructor(){super(...arguments);ot(this,"priority",120);ot(this,"incompatibleTokens",["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"])}parse(n,r,i){switch(r){case"q":case"qq":return Ri(r.length,n);case"qo":return i.ordinalNumber(n,{unit:"quarter"});case"qqq":return i.quarter(n,{width:"abbreviated",context:"standalone"})||i.quarter(n,{width:"narrow",context:"standalone"});case"qqqqq":return i.quarter(n,{width:"narrow",context:"standalone"});case"qqqq":default:return i.quarter(n,{width:"wide",context:"standalone"})||i.quarter(n,{width:"abbreviated",context:"standalone"})||i.quarter(n,{width:"narrow",context:"standalone"})}}validate(n,r){return r>=1&&r<=4}set(n,r,i){return n.setMonth((i-1)*3,1),n.setHours(0,0,0,0),n}}class wgt extends Gn{constructor(){super(...arguments);ot(this,"incompatibleTokens",["Y","R","q","Q","L","w","I","D","i","e","c","t","T"]);ot(this,"priority",110)}parse(n,r,i){const o=s=>s-1;switch(r){case"M":return zi(fi(Hi.month,n),o);case"MM":return zi(Ri(2,n),o);case"Mo":return zi(i.ordinalNumber(n,{unit:"month"}),o);case"MMM":return i.month(n,{width:"abbreviated",context:"formatting"})||i.month(n,{width:"narrow",context:"formatting"});case"MMMMM":return i.month(n,{width:"narrow",context:"formatting"});case"MMMM":default:return i.month(n,{width:"wide",context:"formatting"})||i.month(n,{width:"abbreviated",context:"formatting"})||i.month(n,{width:"narrow",context:"formatting"})}}validate(n,r){return r>=0&&r<=11}set(n,r,i){return n.setMonth(i,1),n.setHours(0,0,0,0),n}}class Sgt extends Gn{constructor(){super(...arguments);ot(this,"priority",110);ot(this,"incompatibleTokens",["Y","R","q","Q","M","w","I","D","i","e","c","t","T"])}parse(n,r,i){const o=s=>s-1;switch(r){case"L":return zi(fi(Hi.month,n),o);case"LL":return zi(Ri(2,n),o);case"Lo":return zi(i.ordinalNumber(n,{unit:"month"}),o);case"LLL":return i.month(n,{width:"abbreviated",context:"standalone"})||i.month(n,{width:"narrow",context:"standalone"});case"LLLLL":return i.month(n,{width:"narrow",context:"standalone"});case"LLLL":default:return i.month(n,{width:"wide",context:"standalone"})||i.month(n,{width:"abbreviated",context:"standalone"})||i.month(n,{width:"narrow",context:"standalone"})}}validate(n,r){return r>=0&&r<=11}set(n,r,i){return n.setMonth(i,1),n.setHours(0,0,0,0),n}}function _gt(e,t,n){const r=ht(e),i=O_e(r,n)-t;return r.setDate(r.getDate()-i*7),r}class Cgt extends Gn{constructor(){super(...arguments);ot(this,"priority",100);ot(this,"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","i","t","T"])}parse(n,r,i){switch(r){case"w":return fi(Hi.week,n);case"wo":return i.ordinalNumber(n,{unit:"week"});default:return Ri(r.length,n)}}validate(n,r){return r>=1&&r<=53}set(n,r,i,o){return ph(_gt(n,i,o),o)}}function Egt(e,t){const n=ht(e),r=yV(n)-t;return n.setDate(n.getDate()-r*7),n}class Tgt extends Gn{constructor(){super(...arguments);ot(this,"priority",100);ot(this,"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"])}parse(n,r,i){switch(r){case"I":return fi(Hi.week,n);case"Io":return i.ordinalNumber(n,{unit:"week"});default:return Ri(r.length,n)}}validate(n,r){return r>=1&&r<=53}set(n,r,i){return U1(Egt(n,i))}}const kgt=[31,28,31,30,31,30,31,31,30,31,30,31],xgt=[31,29,31,30,31,30,31,31,30,31,30,31];class Agt extends Gn{constructor(){super(...arguments);ot(this,"priority",90);ot(this,"subPriority",1);ot(this,"incompatibleTokens",["Y","R","q","Q","w","I","D","i","e","c","t","T"])}parse(n,r,i){switch(r){case"d":return fi(Hi.date,n);case"do":return i.ordinalNumber(n,{unit:"date"});default:return Ri(r.length,n)}}validate(n,r){const i=n.getFullYear(),o=U_e(i),s=n.getMonth();return o?r>=1&&r<=xgt[s]:r>=1&&r<=kgt[s]}set(n,r,i){return n.setDate(i),n.setHours(0,0,0,0),n}}class Igt extends Gn{constructor(){super(...arguments);ot(this,"priority",90);ot(this,"subpriority",1);ot(this,"incompatibleTokens",["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"])}parse(n,r,i){switch(r){case"D":case"DD":return fi(Hi.dayOfYear,n);case"Do":return i.ordinalNumber(n,{unit:"date"});default:return Ri(r.length,n)}}validate(n,r){const i=n.getFullYear();return U_e(i)?r>=1&&r<=366:r>=1&&r<=365}set(n,r,i){return n.setMonth(0,i),n.setHours(0,0,0,0),n}}function SV(e,t,n){var d,f,p,g;const r=qv(),i=(n==null?void 0:n.weekStartsOn)??((f=(d=n==null?void 0:n.locale)==null?void 0:d.options)==null?void 0:f.weekStartsOn)??r.weekStartsOn??((g=(p=r.locale)==null?void 0:p.options)==null?void 0:g.weekStartsOn)??0,o=ht(e),s=o.getDay(),c=(t%7+7)%7,l=7-i,u=t<0||t>6?t-(s+l)%7:(c+l)%7-(s+l)%7;return hh(o,u)}class Rgt extends Gn{constructor(){super(...arguments);ot(this,"priority",90);ot(this,"incompatibleTokens",["D","i","e","c","t","T"])}parse(n,r,i){switch(r){case"E":case"EE":case"EEE":return i.day(n,{width:"abbreviated",context:"formatting"})||i.day(n,{width:"short",context:"formatting"})||i.day(n,{width:"narrow",context:"formatting"});case"EEEEE":return i.day(n,{width:"narrow",context:"formatting"});case"EEEEEE":return i.day(n,{width:"short",context:"formatting"})||i.day(n,{width:"narrow",context:"formatting"});case"EEEE":default:return i.day(n,{width:"wide",context:"formatting"})||i.day(n,{width:"abbreviated",context:"formatting"})||i.day(n,{width:"short",context:"formatting"})||i.day(n,{width:"narrow",context:"formatting"})}}validate(n,r){return r>=0&&r<=6}set(n,r,i,o){return n=SV(n,i,o),n.setHours(0,0,0,0),n}}class Pgt extends Gn{constructor(){super(...arguments);ot(this,"priority",90);ot(this,"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"])}parse(n,r,i,o){const s=a=>{const c=Math.floor((a-1)/7)*7;return(a+o.weekStartsOn+6)%7+c};switch(r){case"e":case"ee":return zi(Ri(r.length,n),s);case"eo":return zi(i.ordinalNumber(n,{unit:"day"}),s);case"eee":return i.day(n,{width:"abbreviated",context:"formatting"})||i.day(n,{width:"short",context:"formatting"})||i.day(n,{width:"narrow",context:"formatting"});case"eeeee":return i.day(n,{width:"narrow",context:"formatting"});case"eeeeee":return i.day(n,{width:"short",context:"formatting"})||i.day(n,{width:"narrow",context:"formatting"});case"eeee":default:return i.day(n,{width:"wide",context:"formatting"})||i.day(n,{width:"abbreviated",context:"formatting"})||i.day(n,{width:"short",context:"formatting"})||i.day(n,{width:"narrow",context:"formatting"})}}validate(n,r){return r>=0&&r<=6}set(n,r,i,o){return n=SV(n,i,o),n.setHours(0,0,0,0),n}}class Ogt extends Gn{constructor(){super(...arguments);ot(this,"priority",90);ot(this,"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"])}parse(n,r,i,o){const s=a=>{const c=Math.floor((a-1)/7)*7;return(a+o.weekStartsOn+6)%7+c};switch(r){case"c":case"cc":return zi(Ri(r.length,n),s);case"co":return zi(i.ordinalNumber(n,{unit:"day"}),s);case"ccc":return i.day(n,{width:"abbreviated",context:"standalone"})||i.day(n,{width:"short",context:"standalone"})||i.day(n,{width:"narrow",context:"standalone"});case"ccccc":return i.day(n,{width:"narrow",context:"standalone"});case"cccccc":return i.day(n,{width:"short",context:"standalone"})||i.day(n,{width:"narrow",context:"standalone"});case"cccc":default:return i.day(n,{width:"wide",context:"standalone"})||i.day(n,{width:"abbreviated",context:"standalone"})||i.day(n,{width:"short",context:"standalone"})||i.day(n,{width:"narrow",context:"standalone"})}}validate(n,r){return r>=0&&r<=6}set(n,r,i,o){return n=SV(n,i,o),n.setHours(0,0,0,0),n}}function Ngt(e,t){const n=ht(e),r=agt(n),i=t-r;return hh(n,i)}class Mgt extends Gn{constructor(){super(...arguments);ot(this,"priority",90);ot(this,"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"])}parse(n,r,i){const o=s=>s===0?7:s;switch(r){case"i":case"ii":return Ri(r.length,n);case"io":return i.ordinalNumber(n,{unit:"day"});case"iii":return zi(i.day(n,{width:"abbreviated",context:"formatting"})||i.day(n,{width:"short",context:"formatting"})||i.day(n,{width:"narrow",context:"formatting"}),o);case"iiiii":return zi(i.day(n,{width:"narrow",context:"formatting"}),o);case"iiiiii":return zi(i.day(n,{width:"short",context:"formatting"})||i.day(n,{width:"narrow",context:"formatting"}),o);case"iiii":default:return zi(i.day(n,{width:"wide",context:"formatting"})||i.day(n,{width:"abbreviated",context:"formatting"})||i.day(n,{width:"short",context:"formatting"})||i.day(n,{width:"narrow",context:"formatting"}),o)}}validate(n,r){return r>=1&&r<=7}set(n,r,i){return n=Ngt(n,i),n.setHours(0,0,0,0),n}}class Dgt extends Gn{constructor(){super(...arguments);ot(this,"priority",80);ot(this,"incompatibleTokens",["b","B","H","k","t","T"])}parse(n,r,i){switch(r){case"a":case"aa":case"aaa":return i.dayPeriod(n,{width:"abbreviated",context:"formatting"})||i.dayPeriod(n,{width:"narrow",context:"formatting"});case"aaaaa":return i.dayPeriod(n,{width:"narrow",context:"formatting"});case"aaaa":default:return i.dayPeriod(n,{width:"wide",context:"formatting"})||i.dayPeriod(n,{width:"abbreviated",context:"formatting"})||i.dayPeriod(n,{width:"narrow",context:"formatting"})}}set(n,r,i){return n.setHours(wV(i),0,0,0),n}}class Lgt extends Gn{constructor(){super(...arguments);ot(this,"priority",80);ot(this,"incompatibleTokens",["a","B","H","k","t","T"])}parse(n,r,i){switch(r){case"b":case"bb":case"bbb":return i.dayPeriod(n,{width:"abbreviated",context:"formatting"})||i.dayPeriod(n,{width:"narrow",context:"formatting"});case"bbbbb":return i.dayPeriod(n,{width:"narrow",context:"formatting"});case"bbbb":default:return i.dayPeriod(n,{width:"wide",context:"formatting"})||i.dayPeriod(n,{width:"abbreviated",context:"formatting"})||i.dayPeriod(n,{width:"narrow",context:"formatting"})}}set(n,r,i){return n.setHours(wV(i),0,0,0),n}}class Fgt extends Gn{constructor(){super(...arguments);ot(this,"priority",80);ot(this,"incompatibleTokens",["a","b","t","T"])}parse(n,r,i){switch(r){case"B":case"BB":case"BBB":return i.dayPeriod(n,{width:"abbreviated",context:"formatting"})||i.dayPeriod(n,{width:"narrow",context:"formatting"});case"BBBBB":return i.dayPeriod(n,{width:"narrow",context:"formatting"});case"BBBB":default:return i.dayPeriod(n,{width:"wide",context:"formatting"})||i.dayPeriod(n,{width:"abbreviated",context:"formatting"})||i.dayPeriod(n,{width:"narrow",context:"formatting"})}}set(n,r,i){return n.setHours(wV(i),0,0,0),n}}class jgt extends Gn{constructor(){super(...arguments);ot(this,"priority",70);ot(this,"incompatibleTokens",["H","K","k","t","T"])}parse(n,r,i){switch(r){case"h":return fi(Hi.hour12h,n);case"ho":return i.ordinalNumber(n,{unit:"hour"});default:return Ri(r.length,n)}}validate(n,r){return r>=1&&r<=12}set(n,r,i){const o=n.getHours()>=12;return o&&i<12?n.setHours(i+12,0,0,0):!o&&i===12?n.setHours(0,0,0,0):n.setHours(i,0,0,0),n}}class Ugt extends Gn{constructor(){super(...arguments);ot(this,"priority",70);ot(this,"incompatibleTokens",["a","b","h","K","k","t","T"])}parse(n,r,i){switch(r){case"H":return fi(Hi.hour23h,n);case"Ho":return i.ordinalNumber(n,{unit:"hour"});default:return Ri(r.length,n)}}validate(n,r){return r>=0&&r<=23}set(n,r,i){return n.setHours(i,0,0,0),n}}class Bgt extends Gn{constructor(){super(...arguments);ot(this,"priority",70);ot(this,"incompatibleTokens",["h","H","k","t","T"])}parse(n,r,i){switch(r){case"K":return fi(Hi.hour11h,n);case"Ko":return i.ordinalNumber(n,{unit:"hour"});default:return Ri(r.length,n)}}validate(n,r){return r>=0&&r<=11}set(n,r,i){return n.getHours()>=12&&i<12?n.setHours(i+12,0,0,0):n.setHours(i,0,0,0),n}}class $gt extends Gn{constructor(){super(...arguments);ot(this,"priority",70);ot(this,"incompatibleTokens",["a","b","h","H","K","t","T"])}parse(n,r,i){switch(r){case"k":return fi(Hi.hour24h,n);case"ko":return i.ordinalNumber(n,{unit:"hour"});default:return Ri(r.length,n)}}validate(n,r){return r>=1&&r<=24}set(n,r,i){const o=i<=24?i%24:i;return n.setHours(o,0,0,0),n}}class Hgt extends Gn{constructor(){super(...arguments);ot(this,"priority",60);ot(this,"incompatibleTokens",["t","T"])}parse(n,r,i){switch(r){case"m":return fi(Hi.minute,n);case"mo":return i.ordinalNumber(n,{unit:"minute"});default:return Ri(r.length,n)}}validate(n,r){return r>=0&&r<=59}set(n,r,i){return n.setMinutes(i,0,0),n}}class zgt extends Gn{constructor(){super(...arguments);ot(this,"priority",50);ot(this,"incompatibleTokens",["t","T"])}parse(n,r,i){switch(r){case"s":return fi(Hi.second,n);case"so":return i.ordinalNumber(n,{unit:"second"});default:return Ri(r.length,n)}}validate(n,r){return r>=0&&r<=59}set(n,r,i){return n.setSeconds(i,0),n}}class Vgt extends Gn{constructor(){super(...arguments);ot(this,"priority",30);ot(this,"incompatibleTokens",["t","T"])}parse(n,r){const i=o=>Math.trunc(o*Math.pow(10,-r.length+3));return zi(Ri(r.length,n),i)}set(n,r,i){return n.setMilliseconds(i),n}}class Wgt extends Gn{constructor(){super(...arguments);ot(this,"priority",10);ot(this,"incompatibleTokens",["t","T","x"])}parse(n,r){switch(r){case"X":return Gu(qu.basicOptionalMinutes,n);case"XX":return Gu(qu.basic,n);case"XXXX":return Gu(qu.basicOptionalSeconds,n);case"XXXXX":return Gu(qu.extendedOptionalSeconds,n);case"XXX":default:return Gu(qu.extended,n)}}set(n,r,i){return r.timestampIsSet?n:tr(n,n.getTime()-RR(n)-i)}}class qgt extends Gn{constructor(){super(...arguments);ot(this,"priority",10);ot(this,"incompatibleTokens",["t","T","X"])}parse(n,r){switch(r){case"x":return Gu(qu.basicOptionalMinutes,n);case"xx":return Gu(qu.basic,n);case"xxxx":return Gu(qu.basicOptionalSeconds,n);case"xxxxx":return Gu(qu.extendedOptionalSeconds,n);case"xxx":default:return Gu(qu.extended,n)}}set(n,r,i){return r.timestampIsSet?n:tr(n,n.getTime()-RR(n)-i)}}class Ggt extends Gn{constructor(){super(...arguments);ot(this,"priority",40);ot(this,"incompatibleTokens","*")}parse(n){return F_e(n)}set(n,r,i){return[tr(n,i*1e3),{timestampIsSet:!0}]}}class Kgt extends Gn{constructor(){super(...arguments);ot(this,"priority",20);ot(this,"incompatibleTokens","*")}parse(n){return F_e(n)}set(n,r,i){return[tr(n,i),{timestampIsSet:!0}]}}
1567const Ygt={G:new hgt,y:new pgt,Y:new mgt,R:new ggt,u:new vgt,Q:new ygt,q:new bgt,M:new wgt,L:new Sgt,w:new Cgt,I:new Tgt,d:new Agt,D:new Igt,E:new Rgt,e:new Pgt,c:new Ogt,i:new Mgt,a:new Dgt,b:new Lgt,B:new Fgt,h:new jgt,H:new Ugt,K:new Bgt,k:new $gt,m:new Hgt,s:new zgt,S:new Vgt,X:new Wgt,x:new qgt,t:new Ggt,T:new Kgt},Qgt=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,Xgt=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Jgt=/^'([^]*?)'?$/,Zgt=/''/g,evt=/\S/,tvt=/[a-zA-Z]/;function U6(e,t,n,r){var m,y,v,w,S,C,E,T;const i=sgt(),o=(r==null?void 0:r.locale)??i.locale??P_e,s=(r==null?void 0:r.firstWeekContainsDate)??((y=(m=r==null?void 0:r.locale)==null?void 0:m.options)==null?void 0:y.firstWeekContainsDate)??i.firstWeekContainsDate??((w=(v=i.locale)==null?void 0:v.options)==null?void 0:w.firstWeekContainsDate)??1,a=(r==null?void 0:r.weekStartsOn)??((C=(S=r==null?void 0:r.locale)==null?void 0:S.options)==null?void 0:C.weekStartsOn)??i.weekStartsOn??((T=(E=i.locale)==null?void 0:E.options)==null?void 0:T.weekStartsOn)??0;if(t==="")return e===""?ht(n):tr(n,NaN);const c={firstWeekContainsDate:s,weekStartsOn:a,locale:o},l=[new fgt],u=t.match(Xgt).map(x=>{const O=x[0];if(O in LR){const A=LR[O];return A(x,o.formatLong)}return x}).join("").match(Qgt),d=[];for(let x of u){!(r!=null&&r.useAdditionalWeekYearTokens)&&D_e(x)&&d9(x,t,e),!(r!=null&&r.useAdditionalDayOfYearTokens)&&M_e(x)&&d9(x,t,e);const O=x[0],A=Ygt[O];if(A){const{incompatibleTokens:L}=A;if(Array.isArray(L)){const I=d.find(F=>L.includes(F.token)||F.token===O);if(I)throw new RangeError(`The format string mustn't contain \`${I.fullToken}\` and \`${x}\` at the same time`)}else if(A.incompatibleTokens==="*"&&d.length>0)throw new RangeError(`The format string mustn't contain \`${x}\` and any other token at the same time`);d.push({token:O,fullToken:x});const U=A.run(e,x,o.match,c);if(!U)return tr(n,NaN);l.push(U.setter),e=U.rest}else{if(O.match(tvt))throw new RangeError("Format string contains an unescaped latin alphabet character `"+O+"`");if(x==="''"?x="'":O==="'"&&(x=nvt(x)),e.indexOf(x)===0)e=e.slice(x.length);else return tr(n,NaN)}}if(e.length>0&&evt.test(e))return tr(n,NaN);const f=l.map(x=>x.priority).sort((x,O)=>O-x).filter((x,O,A)=>A.indexOf(x)===O).map(x=>l.filter(O=>O.priority===x).sort((O,A)=>A.subPriority-O.subPriority)).map(x=>x[0]);let p=ht(n);if(isNaN(p.getTime()))return tr(n,NaN);const g={};for(const x of f){if(!x.validate(p,c))return tr(n,NaN);const O=x.set(p,g,c);Array.isArray(O)?(p=O[0],Object.assign(g,O[1])):p=O}return tr(n,p)}function nvt(e){return e.match(Jgt)[1].replace(Zgt,"'")}function rvt(e,t){const n=ht(e),r=ht(t);return n.getFullYear()===r.getFullYear()&&n.getMonth()===r.getMonth()}function ivt(e,t){const n=u9(e),r=u9(t);return+n==+r}function ovt(e,t){const n=ht(e),r=ht(t);return n.getFullYear()===r.getFullYear()}function xC(e,t){const n=+ht(e),[r,i]=[+ht(t.start),+ht(t.end)].sort((o,s)=>o-s);return n>=r&&n<=i}function svt(e,t){return hh(e,-1)}function avt(e,t){const r=dvt(e);let i;if(r.date){const c=fvt(r.date,2);i=hvt(c.restDateString,c.year)}if(!i||isNaN(i.getTime()))return new Date(NaN);const o=i.getTime();let s=0,a;if(r.time&&(s=pvt(r.time),isNaN(s)))return new Date(NaN);if(r.timezone){if(a=mvt(r.timezone),isNaN(a))return new Date(NaN)}else{const c=new Date(o+s),l=new Date(0);return l.setFullYear(c.getUTCFullYear(),c.getUTCMonth(),c.getUTCDate()),l.setHours(c.getUTCHours(),c.getUTCMinutes(),c.getUTCSeconds(),c.getUTCMilliseconds()),l}return new Date(o+s+a)}const rk={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},cvt=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,lvt=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,uvt=/^([+-])(\d{2})(?::?(\d{2}))?$/;function dvt(e){const t={},n=e.split(rk.dateTimeDelimiter);let r;if(n.length>2)return t;if(/:/.test(n[0])?r=n[0]:(t.date=n[0],r=n[1],rk.timeZoneDelimiter.test(t.date)&&(t.date=e.split(rk.timeZoneDelimiter)[0],r=e.substr(t.date.length,e.length))),r){const i=rk.timezone.exec(r);i?(t.time=r.replace(i[1],""),t.timezone=i[1]):t.time=r}return t}function fvt(e,t){const n=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+t)+"})|(\\d{2}|[+-]\\d{"+(2+t)+"})$)"),r=e.match(n);if(!r)return{year:NaN,restDateString:""};const i=r[1]?parseInt(r[1]):null,o=r[2]?parseInt(r[2]):null;return{year:o===null?i:o*100,restDateString:e.slice((r[1]||r[2]).length)}}function hvt(e,t){if(t===null)return new Date(NaN);const n=e.match(cvt);if(!n)return new Date(NaN);const r=!!n[4],i=Gw(n[1]),o=Gw(n[2])-1,s=Gw(n[3]),a=Gw(n[4]),c=Gw(n[5])-1;if(r)return wvt(t,a,c)?gvt(t,a,c):new Date(NaN);{const l=new Date(0);return!yvt(t,o,s)||!bvt(t,i)?new Date(NaN):(l.setUTCFullYear(t,o,Math.max(i,s)),l)}}function Gw(e){return e?parseInt(e):1}function pvt(e){const t=e.match(lvt);if(!t)return NaN;const n=B6(t[1]),r=B6(t[2]),i=B6(t[3]);return Svt(n,r,i)?n*NO+r*OO+i*1e3:NaN}function B6(e){return e&&parseFloat(e.replace(",","."))||0}function mvt(e){if(e==="Z")return 0;const t=e.match(uvt);if(!t)return 0;
1567const n=t[1]==="+"?-1:1,r=parseInt(t[2]),i=t[3]&&parseInt(t[3])||0;return _vt(r,i)?n*(r*NO+i*OO):NaN}function gvt(e,t,n){const r=new Date(0);r.setUTCFullYear(e,0,4);const i=r.getUTCDay()||7,o=(t-1)*7+n+1-i;return r.setUTCDate(r.getUTCDate()+o),r}const vvt=[31,null,31,30,31,30,31,31,30,31,30,31];function B_e(e){return e%400===0||e%4===0&&e%100!==0}function yvt(e,t,n){return t>=0&&t<=11&&n>=1&&n<=(vvt[t]||(B_e(e)?29:28))}function bvt(e,t){return t>=1&&t<=(B_e(e)?366:365)}function wvt(e,t,n){return t>=1&&t<=53&&n>=0&&n<=6}function Svt(e,t,n){return e===24?t===0&&n===0:n>=0&&n<60&&t>=0&&t<60&&e>=0&&e<25}function _vt(e,t){return t>=0&&t<=59}function Ja(e,t){const n=ht(e),r=n.getFullYear(),i=n.getDate(),o=tr(e,0);o.setFullYear(r,t,15),o.setHours(0,0,0,0);const s=ogt(o);return n.setMonth(t,Math.min(i,s)),n}function Cvt(e,t){let n=ht(e);return isNaN(+n)?tr(e,NaN):(t.year!=null&&n.setFullYear(t.year),t.month!=null&&(n=Ja(n,t.month)),t.date!=null&&n.setDate(t.date),t.hours!=null&&n.setHours(t.hours),t.minutes!=null&&n.setMinutes(t.minutes),t.seconds!=null&&n.setSeconds(t.seconds),t.milliseconds!=null&&n.setMilliseconds(t.milliseconds),n)}function oA(e,t){const n=ht(e);return n.setHours(t),n}function sA(e,t){const n=ht(e);return n.setMinutes(t),n}function U0(e,t){const n=ht(e),r=Math.trunc(n.getMonth()/3)+1,i=t-r;return Ja(n,n.getMonth()+i*3)}function aA(e,t){const n=ht(e);return n.setSeconds(t),n}function Fu(e,t){const n=ht(e);return isNaN(+n)?tr(e,NaN):(n.setFullYear(t),n)}function $1(e,t){return su(e,-t)}function $_e(e,t){return vV(e,-1)}function Rne(e,t){return PR(e,-1)}function H1(e,t){return zf(e,-t)}const H_e={...k_},Evt=H_e.useInsertionEffect,Tvt=Evt||(e=>e());function kvt(e){const t=b.useRef(()=>{});return Tvt(()=>{t.current=e}),b.useCallback(function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return t.current==null?void 0:t.current(...r)},[])}var jR=typeof document<"u"?b.useLayoutEffect:b.useEffect;function h9(){return h9=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},h9.apply(this,arguments)}let Pne=!1,xvt=0;const One=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+xvt++;function Avt(){const[e,t]=b.useState(()=>Pne?One():void 0);return jR(()=>{e==null&&t(One())},[]),b.useEffect(()=>{Pne=!0},[]),e}const Ivt=H_e.useId,z_e=Ivt||Avt,Rvt=b.forwardRef(function(t,n){const{context:{placement:r,elements:{floating:i},middlewareData:{arrow:o,shift:s}},width:a=14,height:c=7,tipRadius:l=0,strokeWidth:u=0,staticOffset:d,stroke:f,d:p,style:{transform:g,...m}={},...y}=t,v=z_e(),[w,S]=b.useState(!1);if(jR(()=>{if(!i)return;Zc(i).direction==="rtl"&&S(!0)},[i]),!i)return null;const[C,E]=r.split("-"),T=C==="top"||C==="bottom";let x=d;(T&&s!=null&&s.x||!T&&s!=null&&s.y)&&(x=null);const O=u*2,A=O/2,L=a/2*(l/-8+1),U=c/2*l/4,I=!!p,F=x&&E==="end"?"bottom":"top";let P=x&&E==="end"?"right":"left";x&&w&&(P=E==="end"?"left":"right");const W=(o==null?void 0:o.x)!=null?x||o.x:"",ee=(o==null?void 0:o.y)!=null?x||o.y:"",Y=p||"M0,0"+(" H"+a)+(" L"+(a-L)+","+(c-U))+(" Q"+a/2+","+c+" "+L+","+(c-U))+" Z",X={top:I?"rotate(180deg)":"",left:I?"rotate(90deg)":"rotate(-90deg)",bottom:I?"":"rotate(180deg)",right:I?"rotate(-90deg)":"rotate(90deg)"}[C];return b.createElement("svg",h9({},y,{"aria-hidden":!0,ref:n,width:I?a:a+O,height:a,viewBox:"0 0 "+a+" "+(c>a?c:a),style:{position:"absolute",pointerEvents:"none",[P]:W,[F]:ee,[C]:T||I?"100%":"calc(100% - "+O/2+"px)",transform:[X,g].filter(Z=>!!Z).join(" "),...m}}),O>0&&b.createElement("path",{clipPath:"url(#"+v+")",fill:"none",stroke:f,strokeWidth:O+(p?0:1),d:Y}),b.createElement("path",{stroke:O&&!p?y.fill:"none",d:Y}),b.createElement("clipPath",{id:v},b.createElement("rect",{x:-A,y:A*(I?-1:1),width:a+O,height:a})))});function Pvt(){const e=new Map;return{emit(t,n){var r;(r=e.get(t))==null||r.forEach(i=>i(n))},on(t,n){e.set(t,[...e.get(t)||[],n])},off(t,n){var r;e.set(t,((r=e.get(t))==null?void 0:r.filter(i=>i!==n))||[])}}}const Ovt=b.createContext(null),Nvt=b.createContext(null),Mvt=()=>{var e;return((e=b.useContext(Ovt))==null?void 0:e.id)||null},Dvt=()=>b.useContext(Nvt);function Lvt(e){const{open:t=!1,onOpenChange:n,elements:r}=e,i=z_e(),o=b.useRef({}),[s]=b.useState(()=>Pvt()),a=Mvt()!=null,[c,l]=b.useState(r.reference),u=kvt((p,g,m)=>{o.current.openEvent=p?g:void 0,s.emit("openchange",{open:p,event:g,reason:m,nested:a}),n==null||n(p,g,m)}),d=b.useMemo(()=>({setPositionReference:l}),[]),f=b.useMemo(()=>({reference:c||r.reference||null,floating:r.floating||null,domReference:r.reference}),[c,r.reference,r.floating]);return b.useMemo(()=>({dataRef:o,open:t,onOpenChange:u,elements:f,events:s,floatingId:i,refs:d}),[t,u,f,s,i,d])}function Fvt(e){e===void 0&&(e={});const{nodeId:t}=e,n=Lvt({...e,elements:{reference:null,floating:null,...e.elements}}),r=e.rootContext||n,i=r.elements,[o,s]=b.useState(null),[a,c]=b.useState(null),u=(i==null?void 0:i.domReference)||o,d=b.useRef(null),f=Dvt();jR(()=>{u&&(d.current=u)},[u]);const p=ez({...e,elements:{...i,...a&&{reference:a}}}),g=b.useCallback(S=>{const C=qs(S)?{getBoundingClientRect:()=>S.getBoundingClientRect(),contextElement:S}:S;c(C),p.refs.setReference(C)},[p.refs]),m=b.useCallback(S=>{(qs(S)||S===null)&&(d.current=S,s(S)),(qs(p.refs.reference.current)||p.refs.reference.current===null||S!==null&&!qs(S))&&p.refs.setReference(S)},[p.refs]),y=b.useMemo(()=>({...p.refs,setReference:m,setPositionReference:g,domReference:d}),[p.refs,m,g]),v=b.useMemo(()=>({...p.elements,domReference:u}),[p.elements,u]),w=b.useMemo(()=>({...p,...r,refs:y,elements:v,nodeId:t}),[p,y,v,t,r]);return jR(()=>{r.dataRef.current.floatingContext=w;const S=f==null?void 0:f.nodesRef.current.find(C=>C.id===t);S&&(S.context=w)}),b.useMemo(()=>({...p,context:w,refs:y,elements:v}),[p,y,v,w])}/*!
1568  react-datepicker v7.5.0
1569  https://github.com/Hacker0x01/react-datepicker
1570  Released under the MIT License.
1571*/var p9=function(t,n){return p9=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},p9(t,n)};function Wo(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");p9(e,t);function n(){this.constructor=e}
1571e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var Pn=function(){return Pn=Object.assign||function(n){for(var r,i=1,o=arguments.length;i<o;i++){r=arguments[i];for(var s in r)Object.prototype.hasOwnProperty.call(r,s)&&(n[s]=r[s])}return n},Pn.apply(this,arguments)};function td(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,o;r<i;r++)(o||!(r in t))&&(o||(o=Array.prototype.slice.call(t,0,r)),o[r]=t[r]);return e.concat(o||Array.prototype.slice.call(t))}var jvt=function(e){var t=e.showTimeSelectOnly,n=t===void 0?!1:t,r=e.showTime,i=r===void 0?!1:r,o=e.className,s=e.children,a=n?"Choose Time":"Choose Date".concat(i?" and Time":"");return Ae.createElement("div",{className:o,role:"dialog","aria-label":a,"aria-modal":"true"},s)},Uvt=function(e,t){var n=b.useRef(null),r=b.useRef(e);r.current=e;var i=b.useCallback(function(o){var s;n.current&&!n.current.contains(o.target)&&(t&&o.target instanceof HTMLElement&&o.target.classList.contains(t)||(s=r.current)===null||s===void 0||s.call(r,o))},[t]);return b.useEffect(function(){return document.addEventListener("mousedown",i),function(){document.removeEventListener("mousedown",i)}},[i]),n},DO=function(e){var t=e.children,n=e.onClickOutside,r=e.className,i=e.containerRef,o=e.style,s=e.ignoreClass,a=Uvt(n,s);return Ae.createElement("div",{className:r,style:o,ref:function(c){a.current=c,i&&(i.current=c)}},t)},ft;(function(e){e.ArrowUp="ArrowUp",e.ArrowDown="ArrowDown",e.ArrowLeft="ArrowLeft",e.ArrowRight="ArrowRight",e.PageUp="PageUp",e.PageDown="PageDown",e.Home="Home",e.End="End",e.Enter="Enter",e.Space=" ",e.Tab="Tab",e.Escape="Escape",e.Backspace="Backspace",e.X="x"})(ft||(ft={}));function V_e(){var e=typeof window<"u"?window:globalThis;return e}var YE=12,Bvt=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g;function nr(e){if(e==null)return new Date;var t=typeof e=="string"?avt(e):ht(e);return gf(t)?t:new Date}function $6(e,t,n,r,i){var o,s=null,a=Yg(n)||Yg(h_()),c=!0;if(Array.isArray(t))return t.forEach(function(u){var d=U6(e,u,new Date,{locale:a,useAdditionalWeekYearTokens:!0,useAdditionalDayOfYearTokens:!0});r&&(c=gf(d,i)&&e===Vr(d,u,n)),gf(d,i)&&c&&(s=d)}),s;if(s=U6(e,t,new Date,{locale:a,useAdditionalWeekYearTokens:!0,useAdditionalDayOfYearTokens:!0}),r)c=gf(s)&&e===Vr(s,t,n);else if(!gf(s)){var l=((o=t.match(Bvt))!==null&&o!==void 0?o:[]).map(function(u){var d=u[0];if(d==="p"||d==="P"){var f=LR[d];return a?f(u,a.formatLong):d}return u}).join("");e.length>0&&(s=U6(e,l.slice(0,e.length),new Date,{useAdditionalWeekYearTokens:!0,useAdditionalDayOfYearTokens:!0})),gf(s)||(s=new Date(e))}return gf(s)&&c?s:null}function gf(e,t){return OR(e)&&!Cv(e,t??new Date("1/1/1800"))}function Vr(e,t,n){if(n==="en")return Ane(e,t,{useAdditionalWeekYearTokens:!0,useAdditionalDayOfYearTokens:!0});var r=n?Yg(n):void 0;return n&&!r&&console.warn('A locale object was not found for the provided string ["'.concat(n,'"].')),!r&&h_()&&Yg(h_())&&(r=Yg(h_())),Ane(e,t,{locale:r,useAdditionalWeekYearTokens:!0,useAdditionalDayOfYearTokens:!0})}function Ic(e,t){var n=t.dateFormat,r=t.locale,i=Array.isArray(n)&&n.length>0?n[0]:n;return e&&Vr(e,i,r)||""}function $vt(e,t,n){if(!e)return"";var r=Ic(e,n),i=t?Ic(t,n):"";return"".concat(r," - ").concat(i)}function Hvt(e,t){if(!(e!=null&&e.length))return"";var n=e[0]?Ic(e[0],t):"";if(e.length===1)return n;if(e.length===2&&e[1]){var r=Ic(e[1],t);return"".concat(n,", ").concat(r)}var i=e.length-1;return"".concat(n," (+").concat(i,")")}function H6(e,t){var n=t.hour,r=n===void 0?0:n,i=t.minute,o=i===void 0?0:i,s=t.second,a=s===void 0?0:s;return oA(sA(aA(e,a),o),r)}function zvt(e){return yV(e)}function Vvt(e,t){return Vr(e,"ddd",t)}function cA(e){return _v(e)}function Qp(e,t,n){var r=Yg(t||h_());return ph(e,{locale:r,weekStartsOn:n})}function qf(e){return I_e(e)}function AS(e){return MO(e)}function Nne(e){return u9(e)}function Mne(){return _v(nr())}function Dne(e){return x_e(e)}function Wvt(e){return fmt(e)}function qvt(e){return A_e(e)}function zu(e,t){return e&&t?ovt(e,t):!e&&!t}function Us(e,t){return e&&t?rvt(e,t):!e&&!t}function UR(e,t){return e&&t?ivt(e,t):!e&&!t}function kn(e,t){return e&&t?umt(e,t):!e&&!t}function Cg(e,t){return e&&t?cgt(e,t):!e&&!t}function IS(e,t,n){var r,i=_v(t),o=x_e(n);try{r=xC(e,{start:i,end:o})}catch{r=!1}return r}function h_(){var e=V_e();return e.__localeId__}function Yg(e){if(typeof e=="string"){var t=V_e();return t.__localeData__?t.__localeData__[e]:void 0}else return e}function Gvt(e,t,n){return t(Vr(e,"EEEE",n))}function Kvt(e,t){return Vr(e,"EEEEEE",t)}function Yvt(e,t){return Vr(e,"EEE",t)}function _V(e,t){return Vr(Ja(nr(),e),"LLLL",t)}function W_e(e,t){return Vr(Ja(nr(),e),"LLL",t)}function Qvt(e,t){return Vr(U0(nr(),e),"QQQ",t)}function Mc(e,t){var n=t===void 0?{}:t,r=n.minDate,i=n.maxDate,o=n.excludeDates,s=n.excludeDateIntervals,a=n.includeDates,c=n.includeDateIntervals,l=n.filterDate;return QE(e,{minDate:r,maxDate:i})||o&&o.some(function(u){return u instanceof Date?kn(e,u):kn(e,u.date)})||s&&s.some(function(u){var d=u.start,f=u.end;return xC(e,{start:d,end:f})})||a&&!a.some(function(u){return kn(e,u)})||c&&!c.some(function(u){var d=u.start,f=u.end;return xC(e,{start:d,end:f})})||l&&!l(nr(e))||!1}function CV(e,t){var n=t===void 0?{}:t,r=n.excludeDates,i=n.excludeDateIntervals;return i&&i.length>0?i.some(function(o){var s=o.start,a=o.end;return xC(e,{start:s,end:a})}
1571):r&&r.some(function(o){var s;return o instanceof Date?kn(e,o):kn(e,(s=o.date)!==null&&s!==void 0?s:new Date)})||!1}function q_e(e,t){var n=t===void 0?{}:t,r=n.minDate,i=n.maxDate,o=n.excludeDates,s=n.includeDates,a=n.filterDate;return QE(e,{minDate:r?I_e(r):void 0,maxDate:i?A_e(i):void 0})||(o==null?void 0:o.some(function(c){return Us(e,c instanceof Date?c:c.date)}))||s&&!s.some(function(c){return Us(e,c)})||a&&!a(nr(e))||!1}function ik(e,t,n,r){var i=vn(e),o=Gs(e),s=vn(t),a=Gs(t),c=vn(r);return i===s&&i===c?o<=n&&n<=a:i<s?c===i&&o<=n||c===s&&a>=n||c<s&&c>i:!1}function Xvt(e,t){var n=t===void 0?{}:t,r=n.minDate,i=n.maxDate,o=n.excludeDates,s=n.includeDates;return QE(e,{minDate:r,maxDate:i})||o&&o.some(function(a){return Us(a instanceof Date?a:a.date,e)})||s&&!s.some(function(a){return Us(a,e)})||!1}function ok(e,t){var n=t===void 0?{}:t,r=n.minDate,i=n.maxDate,o=n.excludeDates,s=n.includeDates,a=n.filterDate;return QE(e,{minDate:r,maxDate:i})||(o==null?void 0:o.some(function(c){return UR(e,c instanceof Date?c:c.date)}))||s&&!s.some(function(c){return UR(e,c)})||a&&!a(nr(e))||!1}function sk(e,t,n){if(!t||!n||!OR(t)||!OR(n))return!1;var r=vn(t),i=vn(n);return r<=e&&i>=e}function lA(e,t){var n=t===void 0?{}:t,r=n.minDate,i=n.maxDate,o=n.excludeDates,s=n.includeDates,a=n.filterDate,c=new Date(e,0,1);return QE(c,{minDate:r?MO(r):void 0,maxDate:i?R_e(i):void 0})||(o==null?void 0:o.some(function(l){return zu(c,l instanceof Date?l:l.date)}))||s&&!s.some(function(l){return zu(c,l)})||a&&!a(nr(c))||!1}function ak(e,t,n,r){var i=vn(e),o=Kg(e),s=vn(t),a=Kg(t),c=vn(r);return i===s&&i===c?o<=n&&n<=a:i<s?c===i&&o<=n||c===s&&a>=n||c<s&&c>i:!1}function QE(e,t){var n,r=t===void 0?{}:t,i=r.minDate,o=r.maxDate;return(n=i&&B1(e,i)<0||o&&B1(e,o)>0)!==null&&n!==void 0?n:!1}function Lne(e,t){return t.some(function(n){return ud(n)===ud(e)&&dd(n)===dd(e)&&Wf(n)===Wf(e)})}function Fne(e,t){var n=t===void 0?{}:t,r=n.excludeTimes,i=n.includeTimes,o=n.filterTime;return r&&Lne(e,r)||i&&!Lne(e,i)||o&&!o(e)||!1}function jne(e,t){var n=t.minTime,r=t.maxTime;if(!n||!r)throw new Error("Both minTime and maxTime props required");var i=nr();i=oA(i,ud(e)),i=sA(i,dd(e)),i=aA(i,Wf(e));var o=nr();o=oA(o,ud(n)),o=sA(o,dd(n)),o=aA(o,Wf(n));var s=nr();s=oA(s,ud(r)),s=sA(s,dd(r)),s=aA(s,Wf(r));var a;try{a=!xC(i,{start:o,end:s})}catch{a=!1}return a}function Une(e,t){var n=t===void 0?{}:t,r=n.minDate,i=n.includeDates,o=$1(e,1);return r&&NR(r,o)>0||i&&i.every(function(s){return NR(s,o)>0})||!1}function Bne(e,t){var n=t===void 0?{}:t,r=n.maxDate,i=n.includeDates,o=su(e,1);return r&&NR(o,r)>0||i&&i.every(function(s){return NR(o,s)>0})||!1}function Jvt(e,t){var n=t===void 0?{}:t,r=n.minDate,i=n.includeDates,o=MO(e),s=$_e(o);return r&&MR(r,s)>0||i&&i.every(function(a){return MR(a,s)>0})||!1}function Zvt(e,t){var n=t===void 0?{}:t,r=n.maxDate,i=n.includeDates,o=R_e(e),s=vV(o,1);return r&&MR(s,r)>0||i&&i.every(function(a){return MR(s,a)>0})||!1}function $ne(e,t){var n=t===void 0?{}:t,r=n.minDate,i=n.includeDates,o=H1(e,1);return r&&DR(r,o)>0||i&&i.every(function(s){return DR(s,o)>0})||!1}function e0t(e,t){var n=t===void 0?{}:t,r=n.minDate,i=n.yearItemNumber,o=i===void 0?YE:i,s=AS(H1(e,o)),a=Tp(s,o).endPeriod,c=r&&vn(r);return c&&c>a||!1}function Hne(e,t){var n=t===void 0?{}:t,r=n.maxDate,i=n.includeDates,o=zf(e,1);return r&&DR(o,r)>0||i&&i.every(function(s){return DR(o,s)>0})||!1}function t0t(e,t){var n=t===void 0?{}:t,r=n.maxDate,i=n.yearItemNumber,o=i===void 0?YE:i,s=zf(e,o),a=Tp(s,o).startPeriod,c=r&&vn(r);return c&&c<a||!1}function G_e(e){var t=e.minDate,n=e.includeDates;if(n&&t){var r=n.filter(function(i){return B1(i,t)>=0});return _ne(r)}else return n?_ne(n):t}function K_e(e){var t=e.maxDate,n=e.includeDates;if(n&&t){var r=n.filter(function(i){return B1(i,t)<=0});return Sne(r)}else return n?Sne(n):t}function zne(e,t){var n;e===void 0&&(e=[]),t===void 0&&(t="react-datepicker__day--highlighted");for(var r=new Map,i=0,o=e.length;i<o;i++){var s=e[i];if(Vf(s)){var a=Vr(s,"MM.dd.yyyy"),c=r.get(a)||[];c.includes(t)||(c.push(t),r.set(a,c))}else if(typeof s=="object"){var l=Object.keys(s),u=(n=l[0])!==null&&n!==void 0?n:"",d=s[u];if(typeof u=="string"&&Array.isArray(d))for(var f=0,p=d.length;f<p;f++){var g=d[f];if(g){var a=Vr(g,"MM.dd.yyyy"),c=r.get(a)||[];c.includes(u)||(c.push(u),r.set(a,c))}}}}return r}function n0t(e,t){return e.length!==t.length?!1:e.every(function(n,r){return n===t[r]})}function r0t(e,t){e===void 0&&(e=[]),t===void 0&&(t="react-datepicker__day--holidays");var n=new Map;return e.forEach(function(r){var i=r.date,o=r.holidayName;if(Vf(i)){var s=Vr(i,"MM.dd.yyyy"),a=n.get(s)||{className:"",holidayNames:[]};
1571if(!("className"in a&&a.className===t&&n0t(a.holidayNames,[o]))){a.className=t;var c=a.holidayNames;a.holidayNames=c?td(td([],c,!0),[o],!1):[o],n.set(s,a)}}}),n}function i0t(e,t,n,r,i){for(var o=i.length,s=[],a=0;a<o;a++){var c=e,l=i[a];l&&(c=smt(c,ud(l)),c=l9(c,dd(l)),c=lmt(c,Wf(l)));var u=l9(e,(n+1)*r);vm(c,t)&&Cv(c,u)&&l!=null&&s.push(l)}return s}function Vne(e){return e<10?"0".concat(e):"".concat(e)}function Tp(e,t){t===void 0&&(t=YE);var n=Math.ceil(vn(e)/t)*t,r=n-(t-1);return{startPeriod:r,endPeriod:n}}function o0t(e){var t=new Date(e.getFullYear(),e.getMonth(),e.getDate()),n=new Date(e.getFullYear(),e.getMonth(),e.getDate(),24);return Math.round((+n-+t)/36e5)}function Wne(e){var t=e.getSeconds(),n=e.getMilliseconds();return ht(e.getTime()-t*1e3-n)}function s0t(e,t){return Wne(e).getTime()===Wne(t).getTime()}function qne(e){if(!Vf(e))throw new Error("Invalid date");var t=new Date(e);return t.setHours(0,0,0,0),t}function Gne(e,t){if(!Vf(e)||!Vf(t))throw new Error("Invalid date received");var n=qne(e),r=qne(t);return Cv(n,r)}function Y_e(e){return e.key===ft.Space}var a0t=(function(e){Wo(t,e);function t(n){var r=e.call(this,n)||this;return r.inputRef=Ae.createRef(),r.onTimeChange=function(i){var o,s;r.setState({time:i});var a=r.props.date,c=a instanceof Date&&!isNaN(+a),l=c?a:new Date;if(i!=null&&i.includes(":")){var u=i.split(":"),d=u[0],f=u[1];l.setHours(Number(d)),l.setMinutes(Number(f))}(s=(o=r.props).onChange)===null||s===void 0||s.call(o,l)},r.renderTimeInput=function(){var i=r.state.time,o=r.props,s=o.date,a=o.timeString,c=o.customTimeInput;return c?b.cloneElement(c,{date:s,value:i,onChange:r.onTimeChange}):Ae.createElement("input",{type:"time",className:"react-datepicker-time__input",placeholder:"Time",name:"time-input",ref:r.inputRef,onClick:function(){var l;(l=r.inputRef.current)===null||l===void 0||l.focus()},required:!0,value:i,onChange:function(l){r.onTimeChange(l.target.value||a)}})},r.state={time:r.props.timeString},r}return t.getDerivedStateFromProps=function(n,r){return n.timeString!==r.time?{time:n.timeString}:null},t.prototype.render=function(){return Ae.createElement("div",{className:"react-datepicker__input-time-container"},Ae.createElement("div",{className:"react-datepicker-time__caption"},this.props.timeInputLabel),Ae.createElement("div",{className:"react-datepicker-time__input-container"},Ae.createElement("div",{className:"react-datepicker-time__input"},this.renderTimeInput())))},t})(b.Component),c0t=(function(e){Wo(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.dayEl=b.createRef(),n.handleClick=function(r){!n.isDisabled()&&n.props.onClick&&n.props.onClick(r)},n.handleMouseEnter=function(r){!n.isDisabled()&&n.props.onMouseEnter&&n.props.onMouseEnter(r)},n.handleOnKeyDown=function(r){var i,o,s=r.key;s===ft.Space&&(r.preventDefault(),r.key=ft.Enter),(o=(i=n.props).handleOnKeyDown)===null||o===void 0||o.call(i,r)},n.isSameDay=function(r){return kn(n.props.day,r)},n.isKeyboardSelected=function(){var r;if(n.props.disabledKeyboardNavigation)return!1;var i=n.props.selectsMultiple?(r=n.props.selectedDates)===null||r===void 0?void 0:r.some(function(s){return n.isSameDayOrWeek(s)}):n.isSameDayOrWeek(n.props.selected),o=n.props.preSelection&&n.isDisabled(n.props.preSelection);return!i&&n.isSameDayOrWeek(n.props.preSelection)&&!o},n.isDisabled=function(r){return r===void 0&&(r=n.props.day),Mc(r,{minDate:n.props.minDate,maxDate:n.props.maxDate,excludeDates:n.props.excludeDates,excludeDateIntervals:n.props.excludeDateIntervals,includeDateIntervals:n.props.includeDateIntervals,includeDates:n.props.includeDates,filterDate:n.props.filterDate})},n.isExcluded=function(){return CV(n.props.day,{excludeDates:n.props.excludeDates,excludeDateIntervals:n.props.excludeDateIntervals})},n.isStartOfWeek=function(){return kn(n.props.day,Qp(n.props.day,n.props.locale,n.props.calendarStartDay))},n.isSameWeek=function(r){return n.props.showWeekPicker&&kn(r,Qp(n.props.day,n.props.locale,n.props.calendarStartDay))},n.isSameDayOrWeek=function(r){return n.isSameDay(r)||n.isSameWeek(r)},n.getHighLightedClass=function(){var r=n.props,i=r.day,o=r.highlightDates;if(!o)return!1;var s=Vr(i,"MM.dd.yyyy");return o.get(s)},n.getHolidaysClass=function(){var r,i=n.props,o=i.day,s=i.holidays;if(!s)return[void 0];var a=Vr(o,"MM.dd.yyyy");return s.has(a)?[(r=s.get(a))===null||r===void 0?void 0:r.className]:[void 0]}
1571,n.isInRange=function(){var r=n.props,i=r.day,o=r.startDate,s=r.endDate;return!o||!s?!1:IS(i,o,s)},n.isInSelectingRange=function(){var r,i=n.props,o=i.day,s=i.selectsStart,a=i.selectsEnd,c=i.selectsRange,l=i.selectsDisabledDaysInRange,u=i.startDate,d=i.endDate,f=(r=n.props.selectingDate)!==null&&r!==void 0?r:n.props.preSelection;return!(s||a||c)||!f||!l&&n.isDisabled()?!1:s&&d&&(Cv(f,d)||Cg(f,d))?IS(o,f,d):a&&u&&(vm(f,u)||Cg(f,u))||c&&u&&!d&&(vm(f,u)||Cg(f,u))?IS(o,u,f):!1},n.isSelectingRangeStart=function(){var r;if(!n.isInSelectingRange())return!1;var i=n.props,o=i.day,s=i.startDate,a=i.selectsStart,c=(r=n.props.selectingDate)!==null&&r!==void 0?r:n.props.preSelection;return a?kn(o,c):kn(o,s)},n.isSelectingRangeEnd=function(){var r;if(!n.isInSelectingRange())return!1;var i=n.props,o=i.day,s=i.endDate,a=i.selectsEnd,c=i.selectsRange,l=(r=n.props.selectingDate)!==null&&r!==void 0?r:n.props.preSelection;return a||c?kn(o,l):kn(o,s)},n.isRangeStart=function(){var r=n.props,i=r.day,o=r.startDate,s=r.endDate;return!o||!s?!1:kn(o,i)},n.isRangeEnd=function(){var r=n.props,i=r.day,o=r.startDate,s=r.endDate;return!o||!s?!1:kn(s,i)},n.isWeekend=function(){var r=igt(n.props.day);return r===0||r===6},n.isAfterMonth=function(){return n.props.month!==void 0&&(n.props.month+1)%12===Gs(n.props.day)},n.isBeforeMonth=function(){return n.props.month!==void 0&&(Gs(n.props.day)+1)%12===n.props.month},n.isCurrentDay=function(){return n.isSameDay(nr())},n.isSelected=function(){var r;return n.props.selectsMultiple?(r=n.props.selectedDates)===null||r===void 0?void 0:r.some(function(i){return n.isSameDayOrWeek(i)}):n.isSameDayOrWeek(n.props.selected)},n.getClassNames=function(r){var i=n.props.dayClassName?n.props.dayClassName(r):void 0;return xr("react-datepicker__day",i,"react-datepicker__day--"+Vvt(n.props.day),{"react-datepicker__day--disabled":n.isDisabled(),"react-datepicker__day--excluded":n.isExcluded(),"react-datepicker__day--selected":n.isSelected(),"react-datepicker__day--keyboard-selected":n.isKeyboardSelected(),"react-datepicker__day--range-start":n.isRangeStart(),"react-datepicker__day--range-end":n.isRangeEnd(),"react-datepicker__day--in-range":n.isInRange(),"react-datepicker__day--in-selecting-range":n.isInSelectingRange(),"react-datepicker__day--selecting-range-start":n.isSelectingRangeStart(),"react-datepicker__day--selecting-range-end":n.isSelectingRangeEnd(),"react-datepicker__day--today":n.isCurrentDay(),"react-datepicker__day--weekend":n.isWeekend(),"react-datepicker__day--outside-month":n.isAfterMonth()||n.isBeforeMonth()},n.getHighLightedClass(),n.getHolidaysClass())},n.getAriaLabel=function(){var r=n.props,i=r.day,o=r.ariaLabelPrefixWhenEnabled,s=o===void 0?"Choose":o,a=r.ariaLabelPrefixWhenDisabled,c=a===void 0?"Not available":a,l=n.isDisabled()||n.isExcluded()?c:s;return"".concat(l," ").concat(Vr(i,"PPPP",n.props.locale))},n.getTitle=function(){var r=n.props,i=r.day,o=r.holidays,s=o===void 0?new Map:o,a=r.excludeDates,c=Vr(i,"MM.dd.yyyy"),l=[];return s.has(c)&&l.push.apply(l,s.get(c).holidayNames),n.isExcluded()&&l.push(a==null?void 0:a.filter(function(u){return u instanceof Date?kn(u,i):kn(u==null?void 0:u.date,i)}).map(function(u){if(!(u instanceof Date))return u==null?void 0:u.message})),l.join(", ")},n.getTabIndex=function(){var r=n.props.selected,i=n.props.preSelection,o=!(n.props.showWeekPicker&&(n.props.showWeekNumber||!n.isStartOfWeek()))&&(n.isKeyboardSelected()||n.isSameDay(r)&&kn(i,r))?0:-1;return o},n.handleFocusDay=function(){var r;n.shouldFocusDay()&&((r=n.dayEl.current)===null||r===void 0||r.focus({preventScroll:!0}))},n.renderDayContents=function(){return n.props.monthShowsDuplicateDaysEnd&&n.isAfterMonth()||n.props.monthShowsDuplicateDaysStart&&n.isBeforeMonth()?null:n.props.renderDayContents?n.props.renderDayContents(Ine(n.props.day),n.props.day):Ine(n.props.day)},n.render=function(){return Ae.createElement("div",{ref:n.dayEl,className:n.getClassNames(n.props.day),onKeyDown:n.handleOnKeyDown,onClick:n.handleClick,onMouseEnter:n.props.usePointerEvent?void 0:n.handleMouseEnter,onPointerEnter:n.props.usePointerEvent?n.handleMouseEnter:void 0,tabIndex:n.getTabIndex(),"aria-label":n.getAriaLabel(),role:"option",title:n.getTitle(),"aria-disabled":n.isDisabled(),"aria-current":n.isCurrentDay()?"date":void 0,"aria-selected":n.isSelected()||n.isInRange()},n.renderDayContents(),n.getTitle()!==""&&Ae.createElement("span",{className:"overlay"},n.getTitle()))},n}return t.prototype.componentDidMount=function(){this.handleFocusDay()},t.prototype.componentDidUpdate=function(){this.handleFocusDay()},t.prototype.shouldFocusDay=function(){var n=!1;return this.getTabIndex()===0&&this.isSameDay(this.props.preSelection)&&((!document.activeElement||document.activeElement===document.body)&&(n=!0),this.props.inline&&!this.props.shouldFocusDayInline&&(n=!1),this.isDayActiveElement()&&
1571(n=!0),this.isDuplicateDay()&&(n=!1)),n},t.prototype.isDayActiveElement=function(){var n,r,i;return((r=(n=this.props.containerRef)===null||n===void 0?void 0:n.current)===null||r===void 0?void 0:r.contains(document.activeElement))&&((i=document.activeElement)===null||i===void 0?void 0:i.classList.contains("react-datepicker__day"))},t.prototype.isDuplicateDay=function(){return this.props.monthShowsDuplicateDaysEnd&&this.isAfterMonth()||this.props.monthShowsDuplicateDaysStart&&this.isBeforeMonth()},t})(b.Component),l0t=(function(e){Wo(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.weekNumberEl=b.createRef(),n.handleClick=function(r){n.props.onClick&&n.props.onClick(r)},n.handleOnKeyDown=function(r){var i,o,s=r.key;s===ft.Space&&(r.preventDefault(),r.key=ft.Enter),(o=(i=n.props).handleOnKeyDown)===null||o===void 0||o.call(i,r)},n.isKeyboardSelected=function(){return!n.props.disabledKeyboardNavigation&&!kn(n.props.date,n.props.selected)&&kn(n.props.date,n.props.preSelection)},n.getTabIndex=function(){return n.props.showWeekPicker&&n.props.showWeekNumber&&(n.isKeyboardSelected()||kn(n.props.date,n.props.selected)&&kn(n.props.preSelection,n.props.selected))?0:-1},n.handleFocusWeekNumber=function(r){var i=!1;n.getTabIndex()===0&&!(r!=null&&r.isInputFocused)&&kn(n.props.date,n.props.preSelection)&&((!document.activeElement||document.activeElement===document.body)&&(i=!0),n.props.inline&&!n.props.shouldFocusDayInline&&(i=!1),n.props.containerRef&&n.props.containerRef.current&&n.props.containerRef.current.contains(document.activeElement)&&document.activeElement&&document.activeElement.classList.contains("react-datepicker__week-number")&&(i=!0)),i&&n.weekNumberEl.current&&n.weekNumberEl.current.focus({preventScroll:!0})},n}return Object.defineProperty(t,"defaultProps",{get:function(){return{ariaLabelPrefix:"week "}},enumerable:!1,configurable:!0}),t.prototype.componentDidMount=function(){this.handleFocusWeekNumber()},t.prototype.componentDidUpdate=function(n){this.handleFocusWeekNumber(n)},t.prototype.render=function(){var n=this.props,r=n.weekNumber,i=n.ariaLabelPrefix,o=i===void 0?t.defaultProps.ariaLabelPrefix:i,s=n.onClick,a={"react-datepicker__week-number":!0,"react-datepicker__week-number--clickable":!!s,"react-datepicker__week-number--selected":!!s&&kn(this.props.date,this.props.selected),"react-datepicker__week-number--keyboard-selected":this.isKeyboardSelected()};return Ae.createElement("div",{ref:this.weekNumberEl,className:xr(a),"aria-label":"".concat(o," ").concat(this.props.weekNumber),onClick:this.handleClick,onKeyDown:this.handleOnKeyDown,tabIndex:this.getTabIndex()},r)},t})(b.Component),u0t=(function(e){Wo(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.isDisabled=function(r){return Mc(r,{minDate:n.props.minDate,maxDate:n.props.maxDate,excludeDates:n.props.excludeDates,excludeDateIntervals:n.props.excludeDateIntervals,includeDateIntervals:n.props.includeDateIntervals,includeDates:n.props.includeDates,filterDate:n.props.filterDate})},n.handleDayClick=function(r,i){n.props.onDayClick&&n.props.onDayClick(r,i)},n.handleDayMouseEnter=function(r){n.props.onDayMouseEnter&&n.props.onDayMouseEnter(r)},n.handleWeekClick=function(r,i,o){for(var s,a,c,l=new Date(r),u=0;u<7;u++){var d=new Date(r);d.setDate(d.getDate()+u);var f=!n.isDisabled(d);if(f){l=d;break}}typeof n.props.onWeekSelect=="function"&&n.props.onWeekSelect(l,i,o),n.props.showWeekPicker&&n.handleDayClick(l,o),((s=n.props.shouldCloseOnSelect)!==null&&s!==void 0?s:t.defaultProps.shouldCloseOnSelect)&&((c=(a=n.props).setOpen)===null||c===void 0||c.call(a,!1))},n.formatWeekNumber=function(r){return n.props.formatWeekNumber?n.props.formatWeekNumber(r):zvt(r)},n.renderDays=function(){var r=n.startOfWeek(),i=[],o=n.formatWeekNumber(r);
1571if(n.props.showWeekNumber){var s=n.props.onWeekSelect||n.props.showWeekPicker?n.handleWeekClick.bind(n,r,o):void 0;i.push(Ae.createElement(l0t,Pn({key:"W"},t.defaultProps,n.props,{weekNumber:o,date:r,onClick:s})))}return i.concat([0,1,2,3,4,5,6].map(function(a){var c=hh(r,a);return Ae.createElement(c0t,Pn({},t.defaultProps,n.props,{ariaLabelPrefixWhenEnabled:n.props.chooseDayAriaLabelPrefix,ariaLabelPrefixWhenDisabled:n.props.disabledDayAriaLabelPrefix,key:c.valueOf(),day:c,onClick:n.handleDayClick.bind(n,c),onMouseEnter:n.handleDayMouseEnter.bind(n,c)}))}))},n.startOfWeek=function(){return Qp(n.props.day,n.props.locale,n.props.calendarStartDay)},n.isKeyboardSelected=function(){return!n.props.disabledKeyboardNavigation&&!kn(n.startOfWeek(),n.props.selected)&&kn(n.startOfWeek(),n.props.preSelection)},n}return Object.defineProperty(t,"defaultProps",{get:function(){return{shouldCloseOnSelect:!0}},enumerable:!1,configurable:!0}),t.prototype.render=function(){var n={"react-datepicker__week":!0,"react-datepicker__week--selected":kn(this.startOfWeek(),this.props.selected),"react-datepicker__week--keyboard-selected":this.isKeyboardSelected()};return Ae.createElement("div",{className:xr(n)},this.renderDays())},t})(b.Component),Kw,d0t=6,Uy={TWO_COLUMNS:"two_columns",THREE_COLUMNS:"three_columns",FOUR_COLUMNS:"four_columns"},z6=(Kw={},Kw[Uy.TWO_COLUMNS]={grid:[[0,1],[2,3],[4,5],[6,7],[8,9],[10,11]],verticalNavigationOffset:2},Kw[Uy.THREE_COLUMNS]={grid:[[0,1,2],[3,4,5],[6,7,8],[9,10,11]],verticalNavigationOffset:3},Kw[Uy.FOUR_COLUMNS]={grid:[[0,1,2,3],[4,5,6,7],[8,9,10,11]],verticalNavigationOffset:4},Kw),ck=1;function Kne(e,t){return e?Uy.FOUR_COLUMNS:t?Uy.TWO_COLUMNS:Uy.THREE_COLUMNS}var f0t=(function(e){Wo(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.MONTH_REFS=td([],Array(12),!0).map(function(){return b.createRef()}),n.QUARTER_REFS=td([],Array(4),!0).map(function(){return b.createRef()}),n.isDisabled=function(r){return Mc(r,{minDate:n.props.minDate,maxDate:n.props.maxDate,excludeDates:n.props.excludeDates,excludeDateIntervals:n.props.excludeDateIntervals,includeDateIntervals:n.props.includeDateIntervals,includeDates:n.props.includeDates,filterDate:n.props.filterDate})},n.isExcluded=function(r){return CV(r,{excludeDates:n.props.excludeDates,excludeDateIntervals:n.props.excludeDateIntervals})},n.handleDayClick=function(r,i){var o,s;
1571(s=(o=n.props).onDayClick)===null||s===void 0||s.call(o,r,i,n.props.orderInDisplay)},n.handleDayMouseEnter=function(r){var i,o;(o=(i=n.props).onDayMouseEnter)===null||o===void 0||o.call(i,r)},n.handleMouseLeave=function(){var r,i;(i=(r=n.props).onMouseLeave)===null||i===void 0||i.call(r)},n.isRangeStartMonth=function(r){var i=n.props,o=i.day,s=i.startDate,a=i.endDate;return!s||!a?!1:Us(Ja(o,r),s)},n.isRangeStartQuarter=function(r){var i=n.props,o=i.day,s=i.startDate,a=i.endDate;return!s||!a?!1:UR(U0(o,r),s)},n.isRangeEndMonth=function(r){var i=n.props,o=i.day,s=i.startDate,a=i.endDate;return!s||!a?!1:Us(Ja(o,r),a)},n.isRangeEndQuarter=function(r){var i=n.props,o=i.day,s=i.startDate,a=i.endDate;return!s||!a?!1:UR(U0(o,r),a)},n.isInSelectingRangeMonth=function(r){var i,o=n.props,s=o.day,a=o.selectsStart,c=o.selectsEnd,l=o.selectsRange,u=o.startDate,d=o.endDate,f=(i=n.props.selectingDate)!==null&&i!==void 0?i:n.props.preSelection;return!(a||c||l)||!f?!1:a&&d?ik(f,d,r,s):c&&u||l&&u&&!d?ik(u,f,r,s):!1},n.isSelectingMonthRangeStart=function(r){var i;if(!n.isInSelectingRangeMonth(r))return!1;var o=n.props,s=o.day,a=o.startDate,c=o.selectsStart,l=Ja(s,r),u=(i=n.props.selectingDate)!==null&&i!==void 0?i:n.props.preSelection;return c?Us(l,u):Us(l,a)},n.isSelectingMonthRangeEnd=function(r){var i;if(!n.isInSelectingRangeMonth(r))return!1;var o=n.props,s=o.day,a=o.endDate,c=o.selectsEnd,l=o.selectsRange,u=Ja(s,r),d=(i=n.props.selectingDate)!==null&&i!==void 0?i:n.props.preSelection;return c||l?Us(u,d):Us(u,a)},n.isInSelectingRangeQuarter=function(r){var i,o=n.props,s=o.day,a=o.selectsStart,c=o.selectsEnd,l=o.selectsRange,u=o.startDate,d=o.endDate,f=(i=n.props.selectingDate)!==null&&i!==void 0?i:n.props.preSelection;return!(a||c||l)||!f?!1:a&&d?ak(f,d,r,s):c&&u||l&&u&&!d?ak(u,f,r,s):!1},n.isWeekInMonth=function(r){var i=n.props.day,o=hh(r,6);return Us(r,i)||Us(o,i)},n.isCurrentMonth=function(r,i){return vn(r)===vn(nr())&&i===Gs(nr())},n.isCurrentQuarter=function(r,i){return vn(r)===vn(nr())&&i===Kg(nr())},n.isSelectedMonth=function(r,i,o){return Gs(o)===i&&vn(r)===vn(o)},n.isSelectMonthInList=function(r,i,o){return o.some(function(s){return n.isSelectedMonth(r,i,s)})},n.isSelectedQuarter=function(r,i,o){return Kg(r)===i&&vn(r)===vn(o)},n.renderWeeks=function(){for(var r=[],i=n.props.fixedHeight,o=0,s=!1,a=Qp(qf(n.props.day),n.props.locale,n.props.calendarStartDay),c=function(g){return n.props.showWeekPicker?Qp(g,n.props.locale,n.props.calendarStartDay):n.props.preSelection},l=function(g){return n.props.showWeekPicker?Qp(g,n.props.locale,n.props.calendarStartDay):n.props.selected},u=n.props.selected?l(n.props.selected):void 0,d=n.props.preSelection?c(n.props.preSelection):void 0;r.push(Ae.createElement(u0t,Pn({},n.props,{ariaLabelPrefix:n.props.weekAriaLabelPrefix,key:o,day:a,month:Gs(n.props.day),onDayClick:n.handleDayClick,onDayMouseEnter:n.handleDayMouseEnter,selected:u,preSelection:d,showWeekNumber:n.props.showWeekNumbers}))),!s;){o++,a=PR(a,1);var f=i&&o>=d0t,p=!i&&!n.isWeekInMonth(a);if(f||p)if(n.props.peekNextMonth)s=!0;else break}return r},n.onMonthClick=function(r,i){var o=n.isMonthDisabledForLabelDate(i),s=o.isDisabled,a=o.labelDate;s||n.handleDayClick(qf(a),r)},n.onMonthMouseEnter=function(r){var i=n.isMonthDisabledForLabelDate(r),o=i.isDisabled,s=i.labelDate;o||n.handleDayMouseEnter(qf(s))},n.handleMonthNavigation=function(r,i){var o,s,a,c;(s=(o=n.props).setPreSelection)===null||s===void 0||s.call(o,i),(c=(a=n.MONTH_REFS[r])===null||a===void 0?void 0:a.current)===null||c===void 0||c.focus()},n.handleKeyboardNavigation=function(r,i,o){var s,a=n.props,c=a.selected,l=a.preSelection,u=a.setPreSelection,d=a.minDate,f=a.maxDate,p=a.showFourColumnMonthYearPicker,g=a.showTwoColumnMonthYearPicker;if(l){var m=Kne(p,g),y=n.getVerticalOffset(m),v=(s=z6[m])===null||s===void 0?void 0:s.grid,w=function(x,O,A){var L,U,I=O,F=A;switch(x){case ft.ArrowRight:I=su(O,ck),F=A===11?0:A+ck;break;case ft.ArrowLeft:I=$1(O,ck),F=A===0?11:A-ck;break;case ft.ArrowUp:I=$1(O,y),F=!((L=v==null?void 0:v[0])===null||L===void 0)&&L.includes(A)?A+12-y:A-y;break;case ft.ArrowDown:I=su(O,y),F=!((U=v==null?void 0:v[v.length-1])===null||U===void 0)&&U.includes(A)?A-12+y:A+y;break}return{newCalculatedDate:I,newCalculatedMonth:F}},S=function(x,O,A){for(var L=40,U=x,I=!1,F=0,P=w(U,O,A),W=P.newCalculatedDate,ee=P.newCalculatedMonth;!I;){if(F>=L){W=O,ee=A;break}if(d&&W<d){U=ft.ArrowRight;var Y=w(U,W,ee);W=Y.newCalculatedDate,ee=Y.newCalculatedMonth}if(f&&W>f){U=ft.ArrowLeft;var Y=w(U,W,ee);W=Y.newCalculatedDate,ee=Y.newCalculatedMonth}if(Xvt(W,n.props)){var Y=w(U,W,ee);W=Y.newCalculatedDate,ee=Y.newCalculatedMonth}else I=!0;F++}return{newCalculatedDate:W,newCalculatedMonth:ee}};
1571if(i===ft.Enter){n.isMonthDisabled(o)||(n.onMonthClick(r,o),u==null||u(c));return}var C=S(i,l,o),E=C.newCalculatedDate,T=C.newCalculatedMonth;switch(i){case ft.ArrowRight:case ft.ArrowLeft:case ft.ArrowUp:case ft.ArrowDown:n.handleMonthNavigation(T,E);break}}},n.getVerticalOffset=function(r){var i,o;return(o=(i=z6[r])===null||i===void 0?void 0:i.verticalNavigationOffset)!==null&&o!==void 0?o:0},n.onMonthKeyDown=function(r,i){var o=n.props,s=o.disabledKeyboardNavigation,a=o.handleOnMonthKeyDown,c=r.key;c!==ft.Tab&&r.preventDefault(),s||n.handleKeyboardNavigation(r,c,i),a&&a(r)},n.onQuarterClick=function(r,i){var o=U0(n.props.day,i);ok(o,n.props)||n.handleDayClick(Nne(o),r)},n.onQuarterMouseEnter=function(r){var i=U0(n.props.day,r);ok(i,n.props)||n.handleDayMouseEnter(Nne(i))},n.handleQuarterNavigation=function(r,i){var o,s,a,c;n.isDisabled(i)||n.isExcluded(i)||((s=(o=n.props).setPreSelection)===null||s===void 0||s.call(o,i),(c=(a=n.QUARTER_REFS[r-1])===null||a===void 0?void 0:a.current)===null||c===void 0||c.focus())},n.onQuarterKeyDown=function(r,i){var o,s,a=r.key;if(!n.props.disabledKeyboardNavigation)switch(a){case ft.Enter:n.onQuarterClick(r,i),(s=(o=n.props).setPreSelection)===null||s===void 0||s.call(o,n.props.selected);break;case ft.ArrowRight:if(!n.props.preSelection)break;n.handleQuarterNavigation(i===4?1:i+1,vV(n.props.preSelection,1));break;case ft.ArrowLeft:if(!n.props.preSelection)break;n.handleQuarterNavigation(i===1?4:i-1,$_e(n.props.preSelection));break}},n.isMonthDisabledForLabelDate=function(r){var i,o=n.props,s=o.day,a=o.minDate,c=o.maxDate,l=o.excludeDates,u=o.includeDates,d=Ja(s,r);return{isDisabled:(i=(a||c||l||u)&&q_e(d,n.props))!==null&&i!==void 0?i:!1,labelDate:d}},n.isMonthDisabled=function(r){var i=n.isMonthDisabledForLabelDate(r).isDisabled;return i},n.getMonthClassNames=function(r){var i=n.props,o=i.day,s=i.startDate,a=i.endDate,c=i.preSelection,l=i.monthClassName,u=l?l(Ja(o,r)):void 0,d=n.getSelection();return xr("react-datepicker__month-text","react-datepicker__month-".concat(r),u,{"react-datepicker__month-text--disabled":n.isMonthDisabled(r),"react-datepicker__month-text--selected":d?n.isSelectMonthInList(o,r,d):void 0,"react-datepicker__month-text--keyboard-selected":!n.props.disabledKeyboardNavigation&&c&&n.isSelectedMonth(o,r,c)&&!n.isMonthDisabled(r),"react-datepicker__month-text--in-selecting-range":n.isInSelectingRangeMonth(r),"react-datepicker__month-text--in-range":s&&a?ik(s,a,r,o):void 0,"react-datepicker__month-text--range-start":n.isRangeStartMonth(r),"react-datepicker__month-text--range-end":n.isRangeEndMonth(r),"react-datepicker__month-text--selecting-range-start":n.isSelectingMonthRangeStart(r),"react-datepicker__month-text--selecting-range-end":n.isSelectingMonthRangeEnd(r),"react-datepicker__month-text--today":n.isCurrentMonth(o,r)})},n.getTabIndex=function(r){if(n.props.preSelection==null)return"-1";var i=Gs(n.props.preSelection),o=n.isMonthDisabledForLabelDate(i).isDisabled,s=r===i&&!(o||n.props.disabledKeyboardNavigation)?"0":"-1";return s},n.getQuarterTabIndex=function(r){if(n.props.preSelection==null)return"-1";var i=Kg(n.props.preSelection),o=ok(n.props.day,n.props),s=r===i&&!(o||n.props.disabledKeyboardNavigation)?"0":"-1";return s},n.getAriaLabel=function(r){var i=n.props,o=i.chooseDayAriaLabelPrefix,s=o===void 0?"Choose":o,a=i.disabledDayAriaLabelPrefix,c=a===void 0?"Not available":a,l=i.day,u=i.locale,d=Ja(l,r),f=n.isDisabled(d)||n.isExcluded(d)?c:s;return"".concat(f," ").concat(Vr(d,"MMMM yyyy",u))},n.getQuarterClassNames=function(r){var i=n.props,o=i.day,s=i.startDate,a=i.endDate,c=i.selected,l=i.minDate,u=i.maxDate,d=i.excludeDates,f=i.includeDates,p=i.filterDate,g=i.preSelection,m=i.disabledKeyboardNavigation,y=(l||u||d||f||p)&&ok(U0(o,r),n.props);return xr("react-datepicker__quarter-text","react-datepicker__quarter-".concat(r),{"react-datepicker__quarter-text--disabled":y,"react-datepicker__quarter-text--selected":c?n.isSelectedQuarter(o,r,c):void 0,"react-datepicker__quarter-text--keyboard-selected":!m&&g&&n.isSelectedQuarter(o,r,g)&&!y,"react-datepicker__quarter-text--in-selecting-range":n.isInSelectingRangeQuarter(r),"react-datepicker__quarter-text--in-range":s&&a?ak(s,a,r,o):void 0,"react-datepicker__quarter-text--range-start":n.isRangeStartQuarter(r),"react-datepicker__quarter-text--range-end":n.isRangeEndQuarter(r)})}
1571,n.getMonthContent=function(r){var i=n.props,o=i.showFullMonthYearPicker,s=i.renderMonthContent,a=i.locale,c=i.day,l=W_e(r,a),u=_V(r,a);return s?s(r,l,u,c):o?u:l},n.getQuarterContent=function(r){var i,o=n.props,s=o.renderQuarterContent,a=o.locale,c=Qvt(r,a);return(i=s==null?void 0:s(r,c))!==null&&i!==void 0?i:c},n.renderMonths=function(){var r,i=n.props,o=i.showTwoColumnMonthYearPicker,s=i.showFourColumnMonthYearPicker,a=i.day,c=i.selected,l=(r=z6[Kne(s,o)])===null||r===void 0?void 0:r.grid;return l==null?void 0:l.map(function(u,d){return Ae.createElement("div",{className:"react-datepicker__month-wrapper",key:d},u.map(function(f,p){return Ae.createElement("div",{ref:n.MONTH_REFS[f],key:p,onClick:function(g){n.onMonthClick(g,f)},onKeyDown:function(g){Y_e(g)&&(g.preventDefault(),g.key=ft.Enter),n.onMonthKeyDown(g,f)},onMouseEnter:n.props.usePointerEvent?void 0:function(){return n.onMonthMouseEnter(f)},onPointerEnter:n.props.usePointerEvent?function(){return n.onMonthMouseEnter(f)}:void 0,tabIndex:Number(n.getTabIndex(f)),className:n.getMonthClassNames(f),"aria-disabled":n.isMonthDisabled(f),role:"option","aria-label":n.getAriaLabel(f),"aria-current":n.isCurrentMonth(a,f)?"date":void 0,"aria-selected":c?n.isSelectedMonth(a,f,c):void 0},n.getMonthContent(f))}))})},n.renderQuarters=function(){var r=n.props,i=r.day,o=r.selected,s=[1,2,3,4];return Ae.createElement("div",{className:"react-datepicker__quarter-wrapper"},s.map(function(a,c){return Ae.createElement("div",{key:c,ref:n.QUARTER_REFS[c],role:"option",onClick:function(l){n.onQuarterClick(l,a)},onKeyDown:function(l){n.onQuarterKeyDown(l,a)},onMouseEnter:n.props.usePointerEvent?void 0:function(){return n.onQuarterMouseEnter(a)},onPointerEnter:n.props.usePointerEvent?function(){return n.onQuarterMouseEnter(a)}:void 0,className:n.getQuarterClassNames(a),"aria-selected":o?n.isSelectedQuarter(i,a,o):void 0,tabIndex:Number(n.getQuarterTabIndex(a)),"aria-current":n.isCurrentQuarter(i,a)?"date":void 0},n.getQuarterContent(a))}))},n.getClassNames=function(){var r=n.props,i=r.selectingDate,o=r.selectsStart,s=r.selectsEnd,a=r.showMonthYearPicker,c=r.showQuarterYearPicker,l=r.showWeekPicker;return xr("react-datepicker__month",{"react-datepicker__month--selecting-range":i&&(o||s)},{"react-datepicker__monthPicker":a},{"react-datepicker__quarterPicker":c},{"react-datepicker__weekPicker":l})},n}return t.prototype.getSelection=function(){var n=this.props,r=n.selected,i=n.selectedDates,o=n.selectsMultiple;if(o)return i;if(r)return[r]},t.prototype.render=function(){var n=this.props,r=n.showMonthYearPicker,i=n.showQuarterYearPicker,o=n.day,s=n.ariaLabelPrefix,a=s===void 0?"Month ":s,c=a?a.trim()+" ":"";return Ae.createElement("div",{className:this.getClassNames(),onMouseLeave:this.props.usePointerEvent?void 0:this.handleMouseLeave,onPointerLeave:this.props.usePointerEvent?this.handleMouseLeave:void 0,"aria-label":"".concat(c).concat(Vr(o,"MMMM, yyyy",this.props.locale)),role:"listbox"},r?this.renderMonths():i?this.renderQuarters():this.renderWeeks())},t})(b.Component),h0t=(function(e){Wo(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.isSelectedMonth=function(r){return n.props.month===r},n.renderOptions=function(){return n.props.monthNames.map(function(r,i){return Ae.createElement("div",{className:n.isSelectedMonth(i)?"react-datepicker__month-option react-datepicker__month-option--selected_month":"react-datepicker__month-option",key:r,onClick:n.onChange.bind(n,i),"aria-selected":n.isSelectedMonth(i)?"true":void 0},n.isSelectedMonth(i)?Ae.createElement("span",{className:"react-datepicker__month-option--selected"},"✓"):"",r)})},n.onChange=function(r){return n.props.onChange(r)},n.handleClickOutside=function(){return n.props.onCancel()},n}return t.prototype.render=function(){return Ae.createElement(DO,{className:"react-datepicker__month-dropdown",onClickOutside:this.handleClickOutside},this.renderOptions())},t})(b.Component),p0t=(function(e){Wo(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.state={dropdownVisible:!1},n.renderSelectOptions=function(r){return r.map(function(i,o){return Ae.createElement("option",{key:i,value:o},i)})},n.renderSelectMode=function(r){return Ae.createElement("select",{value:n.props.month,className:"react-datepicker__month-select",onChange:function(i){return n.onChange(parseInt(i.target.value))}},n.renderSelectOptions(r))},n.renderReadView=function(r,i){return Ae.createElement("div",{key:"read",style:{visibility:r?"visible":"hidden"},className:"react-datepicker__month-read-view",onClick:n.toggleDropdown},Ae.createElement("span",{className:"react-datepicker__month-read-view--down-arrow"}),Ae.createElement("span",{className:"react-datepicker__month-read-view--selected-month"},i[n.props.month]))},n.renderDropdown=function(r){return Ae.createElement(h0t,Pn({ke
1571y:"dropdown"},n.props,{monthNames:r,onChange:n.onChange,onCancel:n.toggleDropdown}))},n.renderScrollMode=function(r){var i=n.state.dropdownVisible,o=[n.renderReadView(!i,r)];return i&&o.unshift(n.renderDropdown(r)),o},n.onChange=function(r){n.toggleDropdown(),r!==n.props.month&&n.props.onChange(r)},n.toggleDropdown=function(){return n.setState({dropdownVisible:!n.state.dropdownVisible})},n}return t.prototype.render=function(){var n=this,r=[0,1,2,3,4,5,6,7,8,9,10,11].map(this.props.useShortMonthInDropdown?function(o){return W_e(o,n.props.locale)}:function(o){return _V(o,n.props.locale)}),i;switch(this.props.dropdownMode){case"scroll":i=this.renderScrollMode(r);break;case"select":i=this.renderSelectMode(r);break}return Ae.createElement("div",{className:"react-datepicker__month-dropdown-container react-datepicker__month-dropdown-container--".concat(this.props.dropdownMode)},i)},t})(b.Component);function m0t(e,t){for(var n=[],r=qf(e),i=qf(t);!vm(r,i);)n.push(nr(r)),r=su(r,1);return n}var g0t=(function(e){Wo(t,e);function t(n){var r=e.call(this,n)||this;return r.renderOptions=function(){return r.state.monthYearsList.map(function(i){var o=f9(i),s=zu(r.props.date,i)&&Us(r.props.date,i);return Ae.createElement("div",{className:s?"react-datepicker__month-year-option--selected_month-year":"react-datepicker__month-year-option",key:o,onClick:r.onChange.bind(r,o),"aria-selected":s?"true":void 0},s?Ae.createElement("span",{className:"react-datepicker__month-year-option--selected"},"✓"):"",Vr(i,r.props.dateFormat,r.props.locale))})},r.onChange=function(i){return r.props.onChange(i)},r.handleClickOutside=function(){r.props.onCancel()},r.state={monthYearsList:m0t(r.props.minDate,r.props.maxDate)},r}return t.prototype.render=function(){var n=xr({"react-datepicker__month-year-dropdown":!0,"react-datepicker__month-year-dropdown--scrollable":this.props.scrollableMonthYearDropdown});return Ae.createElement(DO,{className:n,onClickOutside:this.handleClickOutside},this.renderOptions())},t})(b.Component),v0t=(function(e){Wo(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.state={dropdownVisible:!1},n.renderSelectOptions=function(){for(var r=qf(n.props.minDate),i=qf(n.props.maxDate),o=[];!vm(r,i);){var s=f9(r);o.push(Ae.createElement("option",{key:s,value:s},Vr(r,n.props.dateFormat,n.props.locale))),r=su(r,1)}return o},n.onSelectChange=function(r){n.onChange(parseInt(r.target.value))},n.renderSelectMode=function(){return Ae.createElement("select",{value:f9(qf(n.props.date)),className:"react-datepicker__month-year-select",onChange:n.onSelectChange},n.renderSelectOptions())},n.renderReadView=function(r){var i=Vr(n.props.date,n.props.dateFormat,n.props.locale);return Ae.createElement("div",{key:"read",style:{visibility:r?"visible":"hidden"},className:"react-datepicker__month-year-read-view",onClick:n.toggleDropdown},Ae.createElement("span",{className:"react-datepicker__month-year-read-view--down-arrow"}),Ae.createElement("span",{className:"react-datepicker__month-year-read-view--selected-month-year"},i))},n.renderDropdown=function(){return Ae.createElement(g0t,Pn({key:"dropdown"},n.props,{onChange:n.onChange,onCancel:n.toggleDropdown}))},n.renderScrollMode=function(){var r=n.state.dropdownVisible,i=[n.renderReadView(!r)];return r&&i.unshift(n.renderDropdown()),i},n.onChange=function(r){n.toggleDropdown();var i=nr(r);zu(n.props.date,i)&&Us(n.props.date,i)||n.props.onChange(i)},n.toggleDropdown=function(){return n.setState({dropdownVisible:!n.state.dropdownVisible})},n}return t.prototype.render=function(){var n;switch(this.props.dropdownMode){case"scroll":n=this.renderScrollMode();break;case"select":n=this.renderSelectMode();break}return Ae.createElement("div",{className:"react-datepicker__month-year-dropdown-container react-datepicker__month-year-dropdown-container--".concat(this.props.dropdownMode)},n)},t})(b.Component),y0t=(function(e){Wo(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.state={height:null},n.scrollToTheSelectedTime=function(){requestAnimationFrame(function(){var r,i,o;n.list&&(n.list.scrollTop=(o=n.centerLi&&t.calcCenterPosition(n.props.monthRef?n.props.monthRef.clientHeight-((i=(r=n.header)===null||r===void 0?void 0:r.clientHeight)!==null&&i!==void 0?i:0):n.list.clientHeight,n.centerLi))!==null&&o!==void 0?o:0)})},n.handleClick=function(r){var i,o;(n.props.minTime||n.props.maxTime)&&jne(r,n.props)||(n.props.excludeTimes||n.props.includeTimes||n.props.filterTime)&&Fne(r,n.props)||(o=(i=n.props).onChange)===null||o===void 0||o.call(i,r)},n.isSelectedTime=function(r){return n.props.selected&&s0t(n.props.selected,r)},n.isDisabledTime=function(r){return(n.props.minTime||n.props.maxTime)&&jne(r,n.props)||(n.props.excludeTimes||n.props.includeTimes||n.props.filterTime)&&Fne(r,n.props)},n.liClasses=function(r){var i,o=["react-datepicker__time-list-item",n.props.timeClassName?n.props.timeClassName(r):void 0];return n.isSelectedTime(r)&&o.push("react-datepicker__time-list-item--selected"),n.isDisabledTime(r)&&o.push("react-datepicker__time-list-item--disabled"),n.props.injectTimes&&(ud(r)*3600+dd(r)*60+Wf(r))%(((i=n.props.intervals)!==null&&i!==void 0?i:t.defaultProps.intervals)*60)!==0&&o.push("react-datepicker__time-list-item--injected"),o.join(" ")},n.handleOnKeyDown=function(r,i){var o,s;
1571r.key===ft.Space&&(r.preventDefault(),r.key=ft.Enter),(r.key===ft.ArrowUp||r.key===ft.ArrowLeft)&&r.target instanceof HTMLElement&&r.target.previousSibling&&(r.preventDefault(),r.target.previousSibling instanceof HTMLElement&&r.target.previousSibling.focus()),(r.key===ft.ArrowDown||r.key===ft.ArrowRight)&&r.target instanceof HTMLElement&&r.target.nextSibling&&(r.preventDefault(),r.target.nextSibling instanceof HTMLElement&&r.target.nextSibling.focus()),r.key===ft.Enter&&n.handleClick(i),(s=(o=n.props).handleOnKeyDown)===null||s===void 0||s.call(o,r)},n.renderTimes=function(){for(var r,i=[],o=typeof n.props.format=="string"?n.props.format:"p",s=(r=n.props.intervals)!==null&&r!==void 0?r:t.defaultProps.intervals,a=n.props.selected||n.props.openToDate||nr(),c=cA(a),l=n.props.injectTimes&&n.props.injectTimes.sort(function(y,v){return y.getTime()-v.getTime()}),u=60*o0t(a),d=u/s,f=0;f<d;f++){var p=l9(c,f*s);if(i.push(p),l){var g=i0t(c,p,f,s,l);i=i.concat(g)}}var m=i.reduce(function(y,v){return v.getTime()<=a.getTime()?v:y},i[0]);return i.map(function(y){return Ae.createElement("li",{key:y.valueOf(),onClick:n.handleClick.bind(n,y),className:n.liClasses(y),ref:function(v){y===m&&(n.centerLi=v)},onKeyDown:function(v){n.handleOnKeyDown(v,y)},tabIndex:y===m?0:-1,role:"option","aria-selected":n.isSelectedTime(y)?"true":void 0,"aria-disabled":n.isDisabledTime(y)?"true":void 0},Vr(y,o,n.props.locale))})},n.renderTimeCaption=function(){return n.props.showTimeCaption===!1?Ae.createElement(Ae.Fragment,null):Ae.createElement("div",{className:"react-datepicker__header react-datepicker__header--time ".concat(n.props.showTimeSelectOnly?"react-datepicker__header--time--only":""),ref:function(r){n.header=r}},Ae.createElement("div",{className:"react-datepicker-time__header"},n.props.timeCaption))},n}return Object.defineProperty(t,"defaultProps",{get:function(){return{intervals:30,todayButton:null,timeCaption:"Time",showTimeCaption:!0}},enumerable:!1,configurable:!0}),t.prototype.componentDidMount=function(){this.scrollToTheSelectedTime(),this.props.monthRef&&this.header&&this.setState({height:this.props.monthRef.clientHeight-this.header.clientHeight})},t.prototype.render=function(){var n=this,r,i=this.state.height;return Ae.createElement("div",{className:"react-datepicker__time-container ".concat(((r=this.props.todayButton)!==null&&r!==void 0?r:t.defaultProps.todayButton)?"react-datepicker__time-container--with-today-button":"")},this.renderTimeCaption(),Ae.createElement("div",{className:"react-datepicker__time"},Ae.createElement("div",{className:"react-datepicker__time-box"},Ae.createElement("ul",{className:"react-datepicker__time-list",ref:function(o){n.list=o},style:i?{height:i}:{},role:"listbox","aria-label":this.props.timeCaption},this.renderTimes()))))},t.calcCenterPosition=function(n,r){return r.offsetTop-(n/2-r.clientHeight/2)},t})(b.Component),Yne=3,b0t=(function(e){Wo(t,e);function t(n){var r=e.call(this,n)||this;return r.YEAR_REFS=td([],Array(r.props.yearItemNumber),!0).map(function(){return b.createRef()}),r.isDisabled=function(i){return Mc(i,{minDate:r.props.minDate,maxDate:r.props.maxDate,excludeDates:r.props.excludeDates,includeDates:r.props.includeDates,filterDate:r.props.filterDate})},r.isExcluded=function(i){return CV(i,{excludeDates:r.props.excludeDates})},r.selectingDate=function(){var i;return(i=r.props.selectingDate)!==null&&i!==void 0?i:r.props.preSelection},r.updateFocusOnPaginate=function(i){var o=function(){var s,a;(a=(s=r.YEAR_REFS[i])===null||s===void 0?void 0:s.current)===null||a===void 0||a.focus()};window.requestAnimationFrame(o)},r.handleYearClick=function(i,o){r.props.onDayClick&&r.props.onDayClick(i,o)},r.handleYearNavigation=function(i,o){var s,a,c,l,u=r.props,d=u.date,f=u.yearItemNumber;if(!(d===void 0||f===void 0)){var p=Tp(d,f).startPeriod;r.isDisabled(o)||r.isExcluded(o)||((a=(s=r.props).setPreSelection)===null||a===void 0||a.call(s,o),i-p<0?r.updateFocusOnPaginate(f-(p-i)):i-p>=f?r.updateFocusOnPaginate(Math.abs(f-(i-p))):(l=(c=r.YEAR_REFS[i-p])===null||c===void 0?void 0:c.current)===null||l===void 0||l.focus())}},r.isSameDay=function(i,o){return kn(i,o)},r.isCurrentYear=function(i){return i===vn(nr())},r.isRangeStart=function(i){return r.props.startDate&&r.props.endDate&&zu
1571(Fu(nr(),i),r.props.startDate)},r.isRangeEnd=function(i){return r.props.startDate&&r.props.endDate&&zu(Fu(nr(),i),r.props.endDate)},r.isInRange=function(i){return sk(i,r.props.startDate,r.props.endDate)},r.isInSelectingRange=function(i){var o=r.props,s=o.selectsStart,a=o.selectsEnd,c=o.selectsRange,l=o.startDate,u=o.endDate;return!(s||a||c)||!r.selectingDate()?!1:s&&u?sk(i,r.selectingDate(),u):a&&l||c&&l&&!u?sk(i,l,r.selectingDate()):!1},r.isSelectingRangeStart=function(i){var o;if(!r.isInSelectingRange(i))return!1;var s=r.props,a=s.startDate,c=s.selectsStart,l=Fu(nr(),i);return c?zu(l,(o=r.selectingDate())!==null&&o!==void 0?o:null):zu(l,a??null)},r.isSelectingRangeEnd=function(i){var o;if(!r.isInSelectingRange(i))return!1;var s=r.props,a=s.endDate,c=s.selectsEnd,l=s.selectsRange,u=Fu(nr(),i);return c||l?zu(u,(o=r.selectingDate())!==null&&o!==void 0?o:null):zu(u,a??null)},r.isKeyboardSelected=function(i){if(!(r.props.date===void 0||r.props.selected==null||r.props.preSelection==null)){var o=r.props,s=o.minDate,a=o.maxDate,c=o.excludeDates,l=o.includeDates,u=o.filterDate,d=AS(Fu(r.props.date,i)),f=(s||a||c||l||u)&&lA(i,r.props);return!r.props.disabledKeyboardNavigation&&!r.props.inline&&!kn(d,AS(r.props.selected))&&kn(d,AS(r.props.preSelection))&&!f}},r.onYearClick=function(i,o){var s=r.props.date;s!==void 0&&r.handleYearClick(AS(Fu(s,o)),i)},r.onYearKeyDown=function(i,o){var s,a,c=i.key,l=r.props,u=l.date,d=l.yearItemNumber,f=l.handleOnKeyDown;if(c!==ft.Tab&&i.preventDefault(),!r.props.disabledKeyboardNavigation)switch(c){case ft.Enter:if(r.props.selected==null)break;r.onYearClick(i,o),(a=(s=r.props).setPreSelection)===null||a===void 0||a.call(s,r.props.selected);break;case ft.ArrowRight:if(r.props.preSelection==null)break;r.handleYearNavigation(o+1,zf(r.props.preSelection,1));break;case ft.ArrowLeft:if(r.props.preSelection==null)break;r.handleYearNavigation(o-1,H1(r.props.preSelection,1));break;case ft.ArrowUp:{if(u===void 0||d===void 0||r.props.preSelection==null)break;var p=Tp(u,d).startPeriod,g=Yne,m=o-g;if(m<p){var y=d%g;o>=p&&o<p+y?g=y:g+=y,m=o-g}r.handleYearNavigation(m,H1(r.props.preSelection,g));break}case ft.ArrowDown:{if(u===void 0||d===void 0||r.props.preSelection==null)break;var v=Tp(u,d).endPeriod,g=Yne,m=o+g;if(m>v){var y=d%g;o<=v&&o>v-y?g=y:g+=y,m=o+g}r.handleYearNavigation(m,zf(r.props.preSelection,g));break}}f&&f(i)},r.getYearClassNames=function(i){var o=r.props,s=o.date,a=o.minDate,c=o.maxDate,l=o.selected,u=o.excludeDates,d=o.includeDates,f=o.filterDate,p=o.yearClassName;return xr("react-datepicker__year-text","react-datepicker__year-".concat(i),s?p==null?void 0:p(Fu(s,i)):void 0,{"react-datepicker__year-text--selected":l?i===vn(l):void 0,"react-datepicker__year-text--disabled":(a||c||u||d||f)&&lA(i,r.props),"react-datepicker__year-text--keyboard-selected":r.isKeyboardSelected(i),"react-datepicker__year-text--range-start":r.isRangeStart(i),"react-datepicker__year-text--range-end":r.isRangeEnd(i),"react-datepicker__year-text--in-range":r.isInRange(i),"react-datepicker__year-text--in-selecting-range":r.isInSelectingRange(i),"react-datepicker__year-text--selecting-range-start":r.isSelectingRangeStart(i),"react-datepicker__year-text--selecting-range-end":r.isSelectingRangeEnd(i),"react-datepicker__year-text--today":r.
1571isCurrentYear(i)})},r.getYearTabIndex=function(i){if(r.props.disabledKeyboardNavigation||r.props.preSelection==null)return"-1";var o=vn(r.props.preSelection),s=lA(i,r.props);return i===o&&!s?"0":"-1"},r.getYearContainerClassNames=function(){var i=r.props,o=i.selectingDate,s=i.selectsStart,a=i.selectsEnd,c=i.selectsRange;return xr("react-datepicker__year",{"react-datepicker__year--selecting-range":o&&(s||a||c)})},r.getYearContent=function(i){return r.props.renderYearContent?r.props.renderYearContent(i):i},r}return t.prototype.render=function(){var n=this,r=[],i=this.props,o=i.date,s=i.yearItemNumber,a=i.onYearMouseEnter,c=i.onYearMouseLeave;if(o===void 0)return null;for(var l=Tp(o,s),u=l.startPeriod,d=l.endPeriod,f=function(m){r.push(Ae.createElement("div",{ref:p.YEAR_REFS[m-u],onClick:function(y){n.onYearClick(y,m)},onKeyDown:function(y){Y_e(y)&&(y.preventDefault(),y.key=ft.Enter),n.onYearKeyDown(y,m)},tabIndex:Number(p.getYearTabIndex(m)),className:p.getYearClassNames(m),onMouseEnter:p.props.usePointerEvent?void 0:function(y){return a(y,m)},onPointerEnter:p.props.usePointerEvent?function(y){return a(y,m)}:void 0,onMouseLeave:p.props.usePointerEvent?void 0:function(y){return c(y,m)},onPointerLeave:p.props.usePointerEvent?function(y){return c(y,m)}:void 0,key:m,"aria-current":p.isCurrentYear(m)?"date":void 0},p.getYearContent(m)))},p=this,g=u;g<=d;g++)f(g);return Ae.createElement("div",{className:this.getYearContainerClassNames()},Ae.createElement("div",{className:"react-datepicker__year-wrapper",onMouseLeave:this.props.usePointerEvent?void 0:this.props.clearSelectingDate,onPointerLeave:this.props.usePointerEvent?this.props.clearSelectingDate:void 0},r))},t})(b.Component);function w0t(e,t,n,r){for(var i=[],o=0;o<2*t+1;o++){var s=e+t-o,a=!0;n&&(a=vn(n)<=s),r&&a&&(a=vn(r)>=s),a&&i.push(s)}return i}var S0t=(function(e){Wo(t,e);function t(n){var r=e.call(this,n)||this;r.renderOptions=function(){var a=r.props.year,c=r.state.yearsList.map(function(d){return Ae.createElement("div",{className:a===d?"react-datepicker__year-option react-datepicker__year-option--selected_year":"react-datepicker__year-option",key:d,onClick:r.onChange.bind(r,d),"aria-selected":a===d?"true":void 0},a===d?Ae.createElement("span",{className:"react-datepicker__year-option--selected"},"✓"):"",d)}),l=r.props.minDate?vn(r.props.minDate):null,u=r.props.maxDate?vn(r.props.maxDate):null;return(!u||!r.state.yearsList.find(function(d){return d===u}))&&c.unshift(Ae.createElement("div",{className:"react-datepicker__year-option",key:"upcoming",onClick:r.incrementYears},Ae.createElement("a",{className:"react-datepicker__navigation react-datepicker__navigation--years react-datepicker__navigation--years-upcoming"}))),(!l||!r.state.yearsList.find(function(d){return d===l}))&&c.push(Ae.createElement("div",{className:"react-datepicker__year-option",key:"previous",onClick:r.decrementYears},Ae.createElement("a",{className:"react-datepicker__navigation react-datepicker__navigation--years react-datepicker__navigation--years-previous"}))),c},r.onChange=function(a){r.props.onChange(a)},r.handleClickOutside=function(){r.props.onCancel()},r.shiftYears=function(a){var c=r.state.yearsList.map(function(l){return l+a});r.setState({yearsList:c})},r.incrementYears=function(){return r.shiftYears(1)},r.decrementYears=function(){return r.shiftYears(-1)};var i=n.yearDropdownItemNumber,o=n.scrollableYearDropdown,s=i||(o?10:5);return r.state={yearsList:w0t(r.props.year,s,r.props.minDate,r.props.maxDate)},r.dropdownRef=b.createRef(),r}return t.prototype.componentDidMount=function(){var n=this.dropdownRef.current;if(n){var r=n.children?Array.from(n.children):null,i=r?r.find(function(o){return o.ariaSelected}):null;n.scrollTop=i&&i instanceof HTMLElement?i.offsetTop+(i.clientHeight-n.clientHeight)/2:(n.scrollHeight-n.clientHeight)/2}},t.prototype.render=function(){var n=xr({"react-datepicker__year-dropdown":!0,"react-datepicker__year-dropdown--scrollable":this.props.scrollableYearDropdown});return Ae.createElement(DO,{className:n,containerRef:this.dropdownRef,onClickOutside:this.handleClickOutside},this.renderOptions())},t})(b.Component),_0t=(function(e){Wo(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.state={dropdownVisible:!1},n.renderSelectOptions=function(){for(var r=n.props.minDate?vn(n.props.minDate):1900,i=n.props.maxDate?vn(n.props.maxDate):2100,o=[],s=r;s<=i;s++)o.push(Ae.createElement("option",{key:s,value:s},s));return o},n.onSelectChange=function(r){n.onChange(parseInt(r.target.value))},n.renderSelectMode=function(){return Ae.createElement("select",{value:n.props.year,className:"react-datepicker__year-select",onChange:n.onSelectChange},n.renderSelectOptions())},n.renderReadView=function(r){return Ae.createElement("div",{key:"read",style:{visibility:r?"visible":"hidden"},className:"react-datepicker__year-read-view",onClick:function(i){return n.toggleDropdown(i)}},Ae.createElement("span",{className:"react-datepicker__year-read-view--down-arrow"}),Ae.createElement("span",{className:"react-datepicker__year-read-view--selected-year"},n.props.year))}
1571,n.renderDropdown=function(){return Ae.createElement(S0t,Pn({key:"dropdown"},n.props,{onChange:n.onChange,onCancel:n.toggleDropdown}))},n.renderScrollMode=function(){var r=n.state.dropdownVisible,i=[n.renderReadView(!r)];return r&&i.unshift(n.renderDropdown()),i},n.onChange=function(r){n.toggleDropdown(),r!==n.props.year&&n.props.onChange(r)},n.toggleDropdown=function(r){n.setState({dropdownVisible:!n.state.dropdownVisible},function(){n.props.adjustDateOnChange&&n.handleYearChange(n.props.date,r)})},n.handleYearChange=function(r,i){var o;(o=n.onSelect)===null||o===void 0||o.call(n,r,i),n.setOpen()},n.onSelect=function(r,i){var o,s;(s=(o=n.props).onSelect)===null||s===void 0||s.call(o,r,i)},n.setOpen=function(){var r,i;(i=(r=n.props).setOpen)===null||i===void 0||i.call(r,!0)},n}return t.prototype.render=function(){var n;switch(this.props.dropdownMode){case"scroll":n=this.renderScrollMode();break;case"select":n=this.renderSelectMode();break}return Ae.createElement("div",{className:"react-datepicker__year-dropdown-container react-datepicker__year-dropdown-container--".concat(this.props.dropdownMode)},n)},t})(b.Component),C0t=["react-datepicker__year-select","react-datepicker__month-select","react-datepicker__month-year-select"],E0t=function(e){var t=(e.className||"").split(/\s+/);return C0t.some(function(n){return t.indexOf(n)>=0})},T0t=(function(e){Wo(t,e);function t(n){var r=e.call(this,n)||this;return r.monthContainer=void 0,r.handleClickOutside=function(i){r.props.onClickOutside(i)},r.setClickOutsideRef=function(){return r.containerRef.current},r.handleDropdownFocus=function(i){var o,s;E0t(i.target)&&((s=(o=r.props).onDropdownFocus)===null||s===void 0||s.call(o,i))},r.getDateInView=function(){var i=r.props,o=i.preSelection,s=i.selected,a=i.openToDate,c=G_e(r.props),l=K_e(r.props),u=nr(),d=a||s||o;return d||(c&&Cv(u,c)?c:l&&vm(u,l)?l:u)},r.increaseMonth=function(){r.setState(function(i){var o=i.date;return{date:su(o,1)}},function(){return r.handleMonthChange(r.state.date)})},r.decreaseMonth=function(){r.setState(function(i){var o=i.date;return{date:$1(o,1)}},function(){return r.handleMonthChange(r.state.date)})},r.handleDayClick=function(i,o,s){r.props.onSelect(i,o,s),r.props.setPreSelection&&r.props.setPreSelection(i)},r.handleDayMouseEnter=function(i){r.setState({selectingDate:i}),r.props.onDayMouseEnter&&r.props.onDayMouseEnter(i)},r.handleMonthMouseLeave=function(){r.setState({selectingDate:void 0}),r.props.onMonthMouseLeave&&r.props.onMonthMouseLeave()},r.handleYearMouseEnter=function(i,o){r.setState({selectingDate:Fu(nr(),o)}),r.props.onYearMouseEnter&&r.props.onYearMouseEnter(i,o)},r.handleYearMouseLeave=function(i,o){r.props.onYearMouseLeave&&r.props.onYearMouseLeave(i,o)},r.handleYearChange=function(i){var o,s,a,c;(s=(o=r.props).onYearChange)===null||s===void 0||s.call(o,i),r.setState({isRenderAriaLiveMessage:!0}),r.props.adjustDateOnChange&&(r.props.onSelect(i),(c=(a=r.props).setOpen)===null||c===void 0||c.call(a,!0)),r.props.setPreSelection&&r.props.setPreSelection(i)},r.getEnabledPreSelectionDateForMonth=function(i){if(!Mc(i,r.props))return i;for(var o=qf(i),s=qvt(i),a=dmt(s,o),c=null,l=0;l<=a;l++){var u=hh(o,l);if(!Mc(u,r.props)){c=u;break}}return c},r.handleMonthChange=function(i){var o,s,a,c=(o=r.getEnabledPreSelectionDateForMonth(i))!==null&&o!==void 0?o:i;r.handleCustomMonthChange(c),r.props.adjustDateOnChange&&(r.props.onSelect(c),(a=(s=r.props).setOpen)===null||a===void 0||a.call(s,!0)),r.props.setPreSelection&&r.props.setPreSelection(c)},r.handleCustomMonthChange=function(i){var o,s;(s=(o=r.props).onMonthChange)===null||s===void 0||s.call(o,i),r.setState({isRenderAriaLiveMessage:!0})},r.handleMonthYearChange=function(i){r.handleYearChange(i),r.handleMonthChange(i)},r.changeYear=function(i){r.setState(function(o){var s=o.date;return{date:Fu(s,Number(i))}},function(){return r.handleYearChange(r.state.date)})},r.changeMonth=function(i){r.setState(function(o){var s=o.date;return{date:Ja(s,Number(i))}},function(){return r.handleMonthChange(r.state.date)})},r.changeMonthYear=function(i){r.setState(function(o){var s=o.date;return{date:Fu(Ja(s,Gs(i)),vn(i))}},function(){return r.handleMonthYearChange(r.state.date)})},r.header=function(i){i===void 0&&(i=r.state.date);var o=Qp(i,r.props.locale,r.props.calendarStartDay),s=[];return r.props.showWeekNumbers&&s.push(Ae.createElement("div",{key:"W",className:"react-datepicker__day-name"},r.props.weekLabel||"#")),s.concat([0,1,2,3,4,5,6].map(function(a){var c=hh(o,a),l=r.formatWeekday(c,r.props.locale),u=r.props.weekDayClassName?r.props.weekDayClassName(c):void 0;return Ae.createElement("div",{key:a,"aria-label":Vr(c,"EEEE",r.props.locale),className:xr("react-datepicker__day-name",u)},l)}))},r.formatWeekday=function(i,o){return r.props.formatWeekDay?Gvt(i,r.props.formatWeekDay,o):r.props.useWeekdaysShort?Yvt(i,o):Kvt(i,o)},r.decreaseYear=function(){r.setState(function(i){var o,s=i.date;return{date:H1(s,r.props.showYearPicker?(o=r.props.yearItemNumber)!==null&&o!==void 0?o:t.defaultProps.yearItemNumber:1)}},function(){return r.handleYearChange(r.state.date)})},r.clearSelectingDate=function(){r.setState({selectingDate:void 0})},r.renderPreviousButton=function(){var i;if(!r.props.renderCustomHeader){var o;switch(!0){case r.props.showMonthYearPicker:o=$ne(r.state.date,r.props);break;case r.props.showYearPicker:o=e0t(r.state.date,r.props);break;case r.props.showQuarterYearPicker:o=Jvt(r.state.date,r.props);break;default:o=Une(r.state.date,r.props);break}if(!(!((i=r.props.forceShowMonthNavigation)!==null&&i!==void 0?i:t.defaultProps.forceShowMonthNavigation)&&!r.props.showDisabledMonthNavigation&&o||r.props.showTimeSelectOnly)){var s=["react-datepicker__navigation-icon","react-datepicker__navigation-icon--previous"],a=["react-datepicker__navigation","react-datepicker__navigation--previous"],c=r.decreaseMonth;(r.props.showMonthYearPicker||r.props.showQuarterYearPicker||r.props.showYearPicker)&&(c=r.decreaseYear),o&&r.props.showDisabledMonthNavigation&&(a.push("react-datepicker__navigation--previous--disabled"),c=void 0);var l=r.props.showMonthYearPicker||r.props.showQuarterYearPicker||r.props.showYearPicker,u=r.props,d=u.previousMonthButtonLabel,f
1571=d===void 0?t.defaultProps.previousMonthButtonLabel:d,p=u.previousYearButtonLabel,g=p===void 0?t.defaultProps.previousYearButtonLabel:p,m=r.props,y=m.previousMonthAriaLabel,v=y===void 0?typeof f=="string"?f:"Previous Month":y,w=m.previousYearAriaLabel,S=w===void 0?typeof g=="string"?g:"Previous Year":w;return Ae.createElement("button",{type:"button",className:a.join(" "),onClick:c,onKeyDown:r.props.handleOnKeyDown,"aria-label":l?S:v},Ae.createElement("span",{className:s.join(" ")},l?g:f))}}},r.increaseYear=function(){r.setState(function(i){var o,s=i.date;return{date:zf(s,r.props.showYearPicker?(o=r.props.yearItemNumber)!==null&&o!==void 0?o:t.defaultProps.yearItemNumber:1)}},function(){return r.handleYearChange(r.state.date)})},r.renderNextButton=function(){var i;if(!r.props.renderCustomHeader){var o;switch(!0){case r.props.showMonthYearPicker:o=Hne(r.state.date,r.props);break;case r.props.showYearPicker:o=t0t(r.state.date,r.props);break;case r.props.showQuarterYearPicker:o=Zvt(r.state.date,r.props);break;default:o=Bne(r.state.date,r.props);break}if(!(!((i=r.props.forceShowMonthNavigation)!==null&&i!==void 0?i:t.defaultProps.forceShowMonthNavigation)&&!r.props.showDisabledMonthNavigation&&o||r.props.showTimeSelectOnly)){var s=["react-datepicker__navigation","react-datepicker__navigation--next"],a=["react-datepicker__navigation-icon","react-datepicker__navigation-icon--next"];r.props.showTimeSelect&&s.push("react-datepicker__navigation--next--with-time"),r.props.todayButton&&s.push("react-datepicker__navigation--next--with-today-button");var c=r.increaseMonth;(r.props.showMonthYearPicker||r.props.showQuarterYearPicker||r.props.showYearPicker)&&(c=r.increaseYear),o&&r.props.showDisabledMonthNavigation&&(s.push("react-datepicker__navigation--next--disabled"),c=void 0);var l=r.props.showMonthYearPicker||r.props.showQuarterYearPicker||r.props.showYearPicker,u=r.props,d=u.nextMonthButtonLabel,f
1571=d===void 0?t.defaultProps.nextMonthButtonLabel:d,p=u.nextYearButtonLabel,g=p===void 0?t.defaultProps.nextYearButtonLabel:p,m=r.props,y=m.nextMonthAriaLabel,v=y===void 0?typeof f=="string"?f:"Next Month":y,w=m.nextYearAriaLabel,S=w===void 0?typeof g=="string"?g:"Next Year":w;return Ae.createElement("button",{type:"button",className:s.join(" "),onClick:c,onKeyDown:r.props.handleOnKeyDown,"aria-label":l?S:v},Ae.createElement("span",{className:a.join(" ")},l?g:f))}}},r.renderCurrentMonth=function(i){i===void 0&&(i=r.state.date);var o=["react-datepicker__current-month"];return r.props.showYearDropdown&&o.push("react-datepicker__current-month--hasYearDropdown"),r.props.showMonthDropdown&&o.push("react-datepicker__current-month--hasMonthDropdown"),r.props.showMonthYearDropdown&&o.push("react-datepicker__current-month--hasMonthYearDropdown"),Ae.createElement("h2",{className:o.join(" ")},Vr(i,r.props.dateFormat,r.props.locale))},r.renderYearDropdown=function(i){if(i===void 0&&(i=!1),!(!r.props.showYearDropdown||i))return Ae.createElement(_0t,Pn({},t.defaultProps,r.props,{date:r.state.date,onChange:r.changeYear,year:vn(r.state.date)}))},r.renderMonthDropdown=function(i){if(i===void 0&&(i=!1),!(!r.props.showMonthDropdown||i))return Ae.createElement(p0t,Pn({},t.defaultProps,r.props,{month:Gs(r.state.date),onChange:r.changeMonth}))},r.renderMonthYearDropdown=function(i){if(i===void 0&&(i=!1),!(!r.props.showMonthYearDropdown||i))return Ae.createElement(v0t,Pn({},t.defaultProps,r.props,{date:r.state.date,onChange:r.changeMonthYear}))},r.handleTodayButtonClick=function(i){r.props.onSelect(Mne(),i),r.props.setPreSelection&&r.props.setPreSelection(Mne())},r.renderTodayButton=function(){if(!(!r.props.todayButton||r.props.showTimeSelectOnly))return Ae.createElement("div",{className:"react-datepicker__today-button",onClick:r.handleTodayButtonClick},r.props.todayButton)},r.renderDefaultHeader=function(i){var o=i.monthDate,s=i.i;return Ae.createElement("div",{className:"react-datepicker__header ".concat(r.props.showTimeSelect?"react-datepicker__header--has-time-select":"")},r.renderCurrentMonth(o),Ae.createElement("div",{className:"react-datepicker__header__dropdown react-datepicker__header__dropdown--".concat(r.props.dropdownMode),onFocus:r.handleDropdownFocus},r.renderMonthDropdown(s!==0),r.renderMonthYearDropdown(s!==0),r.renderYearDropdown(s!==0)),Ae.createElement("div",{className:"react-datepicker__day-names"},r.header(o)))},r.renderCustomHeader=function(i){var o,s,a=i.monthDate,c=i.i;if(r.props.showTimeSelect&&!r.state.monthContainer||r.props.showTimeSelectOnly)return null;var l=Une(r.state.date,r.props),u=Bne(r.state.date,r.props),d=$ne(r.state.date,r.props),f=Hne(r.state.date,r.props),p=!r.props.showMonthYearPicker&&!r.props.showQuarterYearPicker&&!r.props.showYearPicker;return Ae.createElement("div",{className:"react-datepicker__header react-datepicker__header--custom",onFocus:r.props.onDropdownFocus},(s=(o=r.props).renderCustomHeader)===null||s===void 0?void 0:s.call(o,Pn(Pn({},r.state),{customHeaderCount:c,monthDate:a,changeMonth:r.changeMonth,changeYear:r.changeYear,decreaseMonth:r.decreaseMonth,increaseMonth:r.increaseMonth,decreaseYear:r.decreaseYear,increaseYear:r.increaseYear,prevMonthButtonDisabled:l,nextMonthButtonDisabled:u,prevYearButtonDisabled:d,nextYearButtonDisabled:f})),p&&Ae.createElement("div",{className:"react-datepicker__day-names"},r.header(a)))},r.renderYearHeader=function(i){var o=i.monthDate,s=r.props,a=s.showYearPicker,c=s.yearItemNumber,l=c===void 0?t.defaultProps.yearItemNumber:c,u=Tp(o,l),d=u.startPeriod,f=u.endPeriod;return Ae.createElement("div",{className:"react-datepicker__header react-datepicker-year-header"},a?"".concat(d," - ").concat(f):vn(o))},r.renderHeader=function(i){var o=i.monthDate,s=i.i,a=s===void 0?0:s,c={monthDate:o,i:a};switch(!0){case r.props.renderCustomHeader!==void 0:return r.renderCustomHeader(c);case(r.props.showMonthYearPicker||r.props.showQuarterYearPicker||r.props.showYearPicker):return r.renderYearHeader(c);default:return r.renderDefaultHeader(c)}},r.renderMonths=function(){var i,o;if(!(r.props.showTimeSelectOnly||r.props.showYearPicker)){for(var s=[],a=(i=r.props.monthsShown)!==null&&i!==void 0?i:t.defaultProps.monthsShown,c=r.props.showPreviousMonths?a-1:0,l=r.props.showMonthYearPicker||r.props.showQuarterYearPicker?zf(r.state.date,c):$1(r.state.date,c),u=(o=r.props.monthSelectedIn)!==null&&o!==void 0?o:c,d=0;d<a;++d){var f=d-u+c,p=r.props.showMonthYearPicker||r.props.showQuarterYearPicker?zf(l,f):su(l,f),g="month-".concat(d),m=d<a-1,y=d>0;s.push(Ae.createElement("div",{key:g,ref:function(v){r.monthContainer=v??void 0},className:"react-datepicker__month-container"},r.renderHeader({monthDate:p,i:d}),Ae.createElement(f0t,Pn({},t.defaultProps,r.props,{ariaLabelPrefix:r.props.monthAriaLabelPrefix,day:p,onDayCl
1571ick:r.handleDayClick,handleOnKeyDown:r.props.handleOnDayKeyDown,handleOnMonthKeyDown:r.props.handleOnKeyDown,onDayMouseEnter:r.handleDayMouseEnter,onMouseLeave:r.handleMonthMouseLeave,orderInDisplay:d,selectingDate:r.state.selectingDate,monthShowsDuplicateDaysEnd:m,monthShowsDuplicateDaysStart:y}))))}return s}},r.renderYears=function(){if(!r.props.showTimeSelectOnly&&r.props.showYearPicker)return Ae.createElement("div",{className:"react-datepicker__year--container"},r.renderHeader({monthDate:r.state.date}),Ae.createElement(b0t,Pn({},t.defaultProps,r.props,{selectingDate:r.state.selectingDate,date:r.state.date,onDayClick:r.handleDayClick,clearSelectingDate:r.clearSelectingDate,onYearMouseEnter:r.handleYearMouseEnter,onYearMouseLeave:r.handleYearMouseLeave})))},r.renderTimeSection=function(){if(r.props.showTimeSelect&&(r.state.monthContainer||r.props.showTimeSelectOnly))return Ae.createElement(y0t,Pn({},t.defaultProps,r.props,{onChange:r.props.onTimeChange,format:r.props.timeFormat,intervals:r.props.timeIntervals,monthRef:r.state.monthContainer}))},r.renderInputTimeSection=function(){var i=r.props.selected?new Date(r.props.selected):void 0,o=i&&gf(i)&&!!r.props.selected,s=o?"".concat(Vne(i.getHours()),":").concat(Vne(i.getMinutes())):"";if(r.props.showTimeInput)return Ae.createElement(a0t,Pn({},t.defaultProps,r.props,{date:i,timeString:s,onChange:r.props.onTimeChange}))},r.renderAriaLiveRegion=function(){var i,o=Tp(r.state.date,(i=r.props.yearItemNumber)!==null&&i!==void 0?i:t.defaultProps.yearItemNumber),s=o.startPeriod,a=o.endPeriod,c;return r.props.showYearPicker?c="".concat(s," - ").concat(a):r.props.showMonthYearPicker||r.props.showQuarterYearPicker?c=vn(r.state.date):c="".concat(_V(Gs(r.state.date),r.props.locale)," ").concat(vn(r.state.date)),Ae.createElement("span",{role:"alert","aria-live":"polite",className:"react-datepicker__aria-live"},r.state.isRenderAriaLiveMessage&&c)},r.renderChildren=function(){if(r.props.children)return Ae.createElement("div",{className:"react-datepicker__children-container"},r.props.children)},r.containerRef=b.createRef(),r.state={date:r.getDateInView(),selectingDate:void 0,monthContainer:void 0,isRenderAriaLiveMessage:!1},r}return Object.defineProperty(t,"defaultProps",{get:function(){return{monthsShown:1,forceShowMonthNavigation:!1,timeCaption:"Time",previousYearButtonLabel:"Previous Year",nextYearButtonLabel:"Next Year",previousMonthButtonLabel:"Previous Month",nextMonthButtonLabel:"Next Month",yearItemNumber:YE}},enumerable:!1,configurable:!0}),t.prototype.componentDidMount=function(){var n=this;this.props.showTimeSelect&&(this.assignMonthContainer=(function(){n.setState({monthContainer:n.monthContainer})})())},t.prototype.componentDidUpdate=function(n){var r=this;if(this.props.preSelection&&(!kn(this.props.preSelection,n.preSelection)||this.props.monthSelectedIn!==n.monthSelectedIn)){var i=!Us(this.state.date,this.props.preSelection);this.setState({date:this.props.preSelection},function(){return i&&r.handleCustomMonthChange(r.state.date)})}else this.props.openToDate&&!kn(this.props.openToDate,n.openToDate)&&this.setState({date:this.props.openToDate})},t.prototype.render=function(){var n=this.props.container||jvt;return Ae.createElement(DO,{onClickOutside:this.handleClickOutside,style:{display:"contents"},containerRef:this.containerRef,ignoreClass:this.props.outsideClickIgnoreClass},Ae.createElement(n,{className:xr("react-datepicker",this.props.className,{"react-datepicker--time-only":this.props.showTimeSelectOnly}),showTime:this.props.showTimeSelect||this.props.showTimeInput,showTimeSelectOnly:this.props.showTimeSelectOnly},this.renderAriaLiveRegion(),this.renderPreviousButton(),this.renderNextButton(),this.renderMonths(),this.renderYears(),this.renderTodayButton(),this.renderTimeSection(),this.renderInputTimeSection(),this.renderChildren()))},t})(b.Component),k0t=function(e){var t=e.icon,n=e.className,r=n===void 0?"":n,i=e.onClick,o="react-datepicker__calendar-icon";return typeof t=="string"?Ae.createElement("i",{className:"".concat(o," ").concat(t," ").concat(r),"aria-hidden":"true",onClick:i}):Ae.isValidElement(t)?Ae.cloneElement(t,{className:"".concat(t.props.className||""," ").concat(o," ").concat(r),onClick:function(s){typeof t.props.onClick=="function"&&t.props.onClick(s),typeof i=="function"&&i(s)}}):Ae.createElement("svg",{className:"".concat(o," ").concat(r),xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512",onClick:i},Ae.createElement("path",{d:"M96 32V64H48C21.5 64 0 85.5 0 112v48H448V112c0-26.5-21.5-48-48-48H352V32c0-17.7-14.3-32-32-32s-32 14.3-32 32V64H160V32c0-17.7-14.3-32-32-32S96 14.3 9
15716 32zM448 192H0V464c0 26.5 21.5 48 48 48H400c26.5 0 48-21.5 48-48V192z"}))},Q_e=(function(e){Wo(t,e);function t(n){var r=e.call(this,n)||this;return r.portalRoot=null,r.el=document.createElement("div"),r}return t.prototype.componentDidMount=function(){this.portalRoot=(this.props.portalHost||document).getElementById(this.props.portalId),this.portalRoot||(this.portalRoot=document.createElement("div"),this.portalRoot.setAttribute("id",this.props.portalId),(this.props.portalHost||document.body).appendChild(this.portalRoot)),this.portalRoot.appendChild(this.el)},t.prototype.componentWillUnmount=function(){this.portalRoot&&this.portalRoot.removeChild(this.el)},t.prototype.render=function(){return BB.createPortal(this.props.children,this.el)},t})(b.Component),x0t="[tabindex], a, button, input, select, textarea",A0t=function(e){return(e instanceof HTMLAnchorElement||!e.disabled)&&e.tabIndex!==-1},X_e=(function(e){Wo(t,e);function t(n){var r=e.call(this,n)||this;return r.getTabChildren=function(){var i;return Array.prototype.slice.call((i=r.tabLoopRef.current)===null||i===void 0?void 0:i.querySelectorAll(x0t),1,-1).filter(A0t)},r.handleFocusStart=function(){var i=r.getTabChildren();i&&i.length>1&&i[i.length-1].focus()},r.handleFocusEnd=function(){var i=r.getTabChildren();i&&i.length>1&&i[0].focus()},r.tabLoopRef=b.createRef(),r}return t.prototype.render=function(){var n;return((n=this.props.enableTabLoop)!==null&&n!==void 0?n:t.defaultProps.enableTabLoop)?Ae.createElement("div",{className:"react-datepicker__tab-loop",ref:this.tabLoopRef},Ae.createElement("div",{className:"react-datepicker__tab-loop__start",tabIndex:0,onFocus:this.handleFocusStart}),this.props.children,Ae.createElement("div",{className:"react-datepicker__tab-loop__end",tabIndex:0,onFocus:this.handleFocusEnd})):this.props.children},t.defaultProps={enableTabLoop:!0},t})(b.Component);function I0t(e){var t=function(n){var r,i=typeof n.hidePopper=="boolean"?n.hidePopper:!0,o=b.useRef(null),s=Fvt(Pn({open:!i,whileElementsMounted:ZH,placement:n.popperPlacement,middleware:td([nz({padding:15}),tz(10),rz({element:o})],(r=n.popperModifiers)!==null&&r!==void 0?r:[],!0)},n.popperProps)),a=Pn(Pn({},n),{hidePopper:i,popperProps:Pn(Pn({},s),{arrowRef:o})});return Ae.createElement(e,Pn({},a))};return t}var R0t=(function(e){Wo(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return Object.defineProperty(t,"defaultProps",{get:function(){return{hidePopper:!0}},enumerable:!1,configurable:!0}),t.prototype.render=function(){var n=this.props,r=n.className,i=n.wrapperClassName,o=n.hidePopper,s=o===void 0?t.defaultProps.hidePopper:o,a=n.popperComponent,c=n.targetComponent,l=n.enableTabLoop,u=n.popperOnKeyDown,d=n.portalId,f=n.portalHost,p=n.popperProps,g=n.showArrow,m=void 0;if(!s){var y=xr("react-datepicker-popper",r);m=Ae.createElement(X_e,{enableTabLoop:l},Ae.createElement("div",{ref:p.refs.setFloating,style:p.floatingStyles,className:y,"data-placement":p.placement,onKeyDown:u},a,g&&Ae.createElement(Rvt,{ref:p.arrowRef,context:p.context,fill:"currentColor",strokeWidth:1,height:8,width:16,style:{transform:"translateY(-1px)"},className:"react-datepicker__triangle"})))}this.props.popperContainer&&(m=b.createElement(this.props.popperContainer,{},m)),d&&!s&&(m=Ae.createElement(Q_e,{portalId:d,portalHost:f},m));var v=xr("react-datepicker-wrapper",i);return Ae.createElement(Ae.Fragment,null,Ae.createElement("div",{ref:p.refs.setReference,className:v},c),m)},t})(b.Component),P0t=I0t(R0t),Qne="react-datepicker-ignore-onclickoutside";function O0t(e,t){return e&&t?Gs(e)!==Gs(t)||vn(e)!==vn(t):e!==t}var V6="Date input not valid.",Xne=(function(e){Wo(t,e);function t(n){var r=e.call(this,n)||this;return r.calendar=null,r.input=null,r.getPreSelection=function(){return r.props.openToDate?r.props.openToDate:r.props.selectsEnd&&r.props.startDate?r.props.startDate:r.props.selectsStart&&r.props.endDate?r.props.endDate:nr()},r.modifyHolidays=function(){var i;return(i=r.props.holidays)===null||i===void 0?void 0:i.reduce(function(o,s){var a=new Date(s.date);return gf(a)?td(td([],o,!0),[Pn(Pn({},s),{date:a})],!1):o},[])},r.calcInitialState=function(){var i,o=r.getPreSelection(),s=G_e(r.props),a=K_e(r.props),c=s&&Cv(o,cA(s))?s:a&&vm(o,Dne(a))?a:o;return{open:r.props.startOpen||!1,preventFocus:!1,inputValue:null,preSelection:(i=r.props.selectsRange?r.props.startDate:r.props.selected)!==null&&i!==void 0?i:c,highlightDates:zne(r.props.highlightDates),focused:!1,shouldFocusDayInline:!1,isRenderAriaLiveMessage:!1,wasHidden:!1}},r.resetHiddenStatus=function(){r.setState(Pn(Pn({},r.state),{wasHidden:!1}))},r.setHiddenStatus=function(){r.setState(Pn(Pn({},r.state),{wasHidden:!0}))},r.setHiddenStateOnVisibilityHidden=function(){document.visibilityState==="hidden"&&r.setHiddenStatus()},r.clearPreventFocusTimeout=function(){r.preventFocusTimeout&&clearTimeout(r.preventFocusTimeout)},r.setFocus=function(){r.input&&r.input.focus&&r.input.focus({preventScroll:!0})},r.setBlur=function(){r.input&&r.input.blur&&r.input.blur(),r.cancelFocusInput()},r.setOpen=function(i,o){o===void 0&&(o=!1),r.setState({open:i,preSelection:i&&r.state.open?r.state.preSelection:r.calcInitialState().preSelection,lastPreSelectChange:W6},function(){i||r.setState(function(s){return{focused:o?s.focused:!1}},function(){!o&&r.setBlur(),r.setState({inputValue:null})})})},r.inputOk=function(){return Vf(r.state.preSelection)},r.isCalendarOpen=function(){return r.props.open===void 0?r.state.open&&!r.props.disabled&&!r.props.readOnly:r.props.open},r.handleFocus=function(i){var o,s,a=r.state.wasHidden,c=a?r.state.open:!0;
1571a&&r.resetHiddenStatus(),!r.state.preventFocus&&c&&((s=(o=r.props).onFocus)===null||s===void 0||s.call(o,i),!r.props.preventOpenOnFocus&&!r.props.readOnly&&r.setOpen(!0)),r.setState({focused:!0})},r.sendFocusBackToInput=function(){r.preventFocusTimeout&&r.clearPreventFocusTimeout(),r.setState({preventFocus:!0},function(){r.preventFocusTimeout=setTimeout(function(){r.setFocus(),r.setState({preventFocus:!1})})})},r.cancelFocusInput=function(){clearTimeout(r.inputFocusTimeout),r.inputFocusTimeout=void 0},r.deferFocusInput=function(){r.cancelFocusInput(),r.inputFocusTimeout=setTimeout(function(){return r.setFocus()},1)},r.handleDropdownFocus=function(){r.cancelFocusInput()},r.handleBlur=function(i){var o,s;(!r.state.open||r.props.withPortal||r.props.showTimeInput)&&((s=(o=r.props).onBlur)===null||s===void 0||s.call(o,i)),r.setState({focused:!1})},r.handleCalendarClickOutside=function(i){var o,s;r.props.inline||r.setOpen(!1),(s=(o=r.props).onClickOutside)===null||s===void 0||s.call(o,i),r.props.withPortal&&i.preventDefault()},r.handleChange=function(){for(var i,o,s=[],a=0;a<arguments.length;a++)s[a]=arguments[a];var c=s[0];if(!(r.props.onChangeRaw&&(r.props.onChangeRaw.apply(r,s),!c||typeof c.isDefaultPrevented!="function"||c.isDefaultPrevented()))){r.setState({inputValue:(c==null?void 0:c.target)instanceof HTMLInputElement?c.target.value:null,lastPreSelectChange:N0t});var l=r.props,u=l.dateFormat,d=u===void 0?t.defaultProps.dateFormat:u,f=l.strictParsing,p=f===void 0?t.defaultProps.strictParsing:f,g=l.selectsRange,m=l.startDate,y=l.endDate,v=(c==null?void 0:c.target)instanceof HTMLInputElement?c.target.value:"";if(g){var w=v.split("-",2).map(function(L){return L.trim()}),S=w[0],C=w[1],E=$6(S??"",d,r.props.locale,p),T=$6(C??"",d,r.props.locale,p),x=(m==null?void 0:m.getTime())!==(E==null?void 0:E.getTime()),O=(y==null?void 0:y.getTime())!==(T==null?void 0:T.getTime());if(!x&&!O||E&&Mc(E,r.props)||T&&Mc(T,r.props))return;(o=(i=r.props).onChange)===null||o===void 0||o.call(i,[E,T],c)}else{var A=$6(v,d,r.props.locale,p,r.props.minDate);r.props.showTimeSelectOnly&&r.props.selected&&A&&!kn(A,r.props.selected)&&(A=Cvt(r.props.selected,{hours:ud(A),minutes:dd(A),seconds:Wf(A)})),(A||!v)&&r.setSelected(A,c,!0)}}},r.handleSelect=function(i,o,s){if(r.props.shouldCloseOnSelect&&!r.props.showTimeSelect&&r.sendFocusBackToInput(),r.props.onChangeRaw&&r.props.onChangeRaw(o),r.setSelected(i,o,!1,s),r.props.showDateSelect&&r.setState({isRenderAriaLiveMessage:!0}),!r.props.shouldCloseOnSelect||r.props.showTimeSelect)r.setPreSelection(i);else if(!r.props.inline){r.props.selectsRange||r.setOpen(!1);var a=r.props,c=a.startDate,l=a.endDate;c&&!l&&(r.props.swapRange||!Gne(i,c))&&r.setOpen(!1)}},r.setSelected=function(i,o,s,a){var c,l,u=i;if(r.props.showYearPicker){if(u!==null&&lA(vn(u),r.props))return}else if(r.props.showMonthYearPicker){if(u!==null&&q_e(u,r.props))return}else if(u!==null&&Mc(u,r.props))return;var d=r.props,f=d.onChange,p=d.selectsRange,g=d.startDate,m=d.endDate,y=d.selectsMultiple,v=d.selectedDates,w=d.minTime,S=d.swapRange;if(!Cg(r.props.selected,u)||r.props.allowSameDay||p||y)if(u!==null&&(r.props.selected&&(!s||!r.props.showTimeSelect&&!r.props.showTimeSelectOnly&&!r.props.showTimeInput)&&(u=H6(u,{hour:ud(r.props.selected),minute:dd(r.props.selected),second:Wf(r.props.selected)})),!s&&(r.props.showTimeSelect||r.props.showTimeSelectOnly)&&w&&(u=H6(u,{hour:w.getHours(),minute:w.getMinutes(),second:w.getSeconds()})),r.props.inline||r.setState({preSelection:u}),r.props.focusSelectedMonth||r.setState({monthSelectedIn:a})),p){var C=!g&&!m,E=g&&!m,T=g&&m;C?f==null||f([u,null],o):E&&(u===null?f==null||f([null,null],o):Gne(u,g)?S?f==null||f([u,g],o):f==null||f([u,null],o):f==null||f([g,u],o)),T&&(f==null||f([u,null],o))}else if(y){if(u!==null)if(!(v!=null&&v.length))f==null||f([u],o);else{var x=v.some(function(A){return kn(A,u)});if(x){var O=v.filter(function(A){return!kn(A,u)});f==null||f(O,o)}else f==null||f(td(td([],v,!0),[u],!1),o)}}else f==null||f(u,o);s||((l=(c=r.props).onSelect)===null||l===void 0||l.call(c,u,o),r.setState({inputValue:null}))},r.setPreSelection=function(i){var o=Vf(r.props.minDate),s=Vf(r.props.maxDate),a=!0;if(i){var c=cA(i);if(o&&s)a=IS(i,r.props.minDate,r.props.maxDate);else if(o){var l=cA(r.props.minDate);a=vm(i,l)||Cg(c,l)}else if(s){var u=Dne(r.props.maxDate);a=Cv(i,u)||Cg(c,u)}}a&&r.setState({preSelection:i})},r.toggleCalendar=function(){r.setOpen(!r.state.open)},r.handleTimeChange=function(i){var o,s;if(!(r.props.selectsRange||r.props.selectsMultiple)){var a=r.props.selected?r.props.selected:r.getPreSelection(),c=r.props.selected?i:H6(a,{hour:ud(i),minute:dd(i)});r.setState({preSelection:c}),(s=(o=r.props).onChange)===null||s===void 0||s.call(o,c),r.props.shouldCloseOnSelect&&!r.props.showTimeInput&&(r.sendFocusBackToInput(),r.setOpen(!1)),r.props.showTimeInput&&r.setOpen(!0),(r.props.showTimeSelectOnly||r.props.showTimeSelect)&&r.setState({isRenderAriaLiveMessage:!0}),r.setState({inputValue:null})}},r.onInputClick=function(){var i,o;
1571!r.props.disabled&&!r.props.readOnly&&r.setOpen(!0),(o=(i=r.props).onInputClick)===null||o===void 0||o.call(i)},r.onInputKeyDown=function(i){var o,s,a,c,l,u;(s=(o=r.props).onKeyDown)===null||s===void 0||s.call(o,i);var d=i.key;if(!r.state.open&&!r.props.inline&&!r.props.preventOpenOnFocus){(d===ft.ArrowDown||d===ft.ArrowUp||d===ft.Enter)&&((a=r.onInputClick)===null||a===void 0||a.call(r));return}if(r.state.open){if(d===ft.ArrowDown||d===ft.ArrowUp){i.preventDefault();var f=r.props.showTimeSelectOnly?".react-datepicker__time-list-item[tabindex='0']":r.props.showWeekPicker&&r.props.showWeekNumbers?'.react-datepicker__week-number[tabindex="0"]':r.props.showFullMonthYearPicker||r.props.showMonthYearPicker?'.react-datepicker__month-text[tabindex="0"]':'.react-datepicker__day[tabindex="0"]',p=((c=r.calendar)===null||c===void 0?void 0:c.containerRef.current)instanceof Element&&r.calendar.containerRef.current.querySelector(f);p instanceof HTMLElement&&p.focus({preventScroll:!0});return}var g=nr(r.state.preSelection);d===ft.Enter?(i.preventDefault(),r.inputOk()&&r.state.lastPreSelectChange===W6?(r.handleSelect(g,i),!r.props.shouldCloseOnSelect&&r.setPreSelection(g)):r.setOpen(!1)):d===ft.Escape?(i.preventDefault(),r.sendFocusBackToInput(),r.setOpen(!1)):d===ft.Tab&&r.setOpen(!1),r.inputOk()||(u=(l=r.props).onInputError)===null||u===void 0||u.call(l,{code:1,msg:V6})}},r.onPortalKeyDown=function(i){var o=i.key;o===ft.Escape&&(i.preventDefault(),r.setState({preventFocus:!0},function(){r.setOpen(!1),setTimeout(function(){r.setFocus(),r.setState({preventFocus:!1})})}))},r.onDayKeyDown=function(i){var o,s,a,c,l,u,d=r.props,f=d.minDate,p=d.maxDate,g=d.disabledKeyboardNavigation,m=d.showWeekPicker,y=d.shouldCloseOnSelect,v=d.locale,w=d.calendarStartDay,S=d.adjustDateOnChange,C=d.inline;if((s=(o=r.props).onKeyDown)===null||s===void 0||s.call(o,i),!g){var E=i.key,T=i.shiftKey,x=nr(r.state.preSelection),O=function(W,ee){var Y=ee;switch(W){case ft.ArrowRight:Y=m?PR(ee,1):hh(ee,1);break;case ft.ArrowLeft:Y=m?Rne(ee):svt(ee);break;case ft.ArrowUp:Y=Rne(ee);break;case ft.ArrowDown:Y=PR(ee,1);break;case ft.PageUp:Y=T?H1(ee,1):$1(ee,1);break;case ft.PageDown:Y=T?zf(ee,1):su(ee,1);break;case ft.Home:Y=Qp(ee,v,w);break;case ft.End:Y=Wvt(ee);break}return Y},A=function(W,ee){for(var Y=40,X=W,Z=!1,G=0,Q=O(W,ee);!Z;){if(G>=Y){Q=ee;break}f&&Q<f&&(X=ft.ArrowRight,Q=Mc(f,r.props)?O(X,Q):f),p&&Q>p&&(X=ft.ArrowLeft,Q=Mc(p,r.props)?O(X,Q):p),Mc(Q,r.props)?((X===ft.PageUp||X===ft.Home)&&(X=ft.ArrowRight),(X===ft.PageDown||X===ft.End)&&(X=ft.ArrowLeft),Q=O(X,Q)):Z=!0,G++}return Q};if(E===ft.Enter){i.preventDefault(),r.handleSelect(x,i),!y&&r.setPreSelection(x);return}else if(E===ft.Escape){i.preventDefault(),r.setOpen(!1),r.inputOk()||(c=(a=r.props).onInputError)===null||c===void 0||c.call(a,{code:1,msg:V6});return}var L=null;switch(E){case ft.ArrowLeft:case ft.ArrowRight:case ft.ArrowUp:case ft.ArrowDown:case ft.PageUp:case ft.PageDown:case ft.Home:case ft.End:L=A(E,x);break}if(!L){(u=(l=r.props).onInputError)===null||u===void 0||u.call(l,{code:1,msg:V6});return}if(i.preventDefault(),r.setState({lastPreSelectChange:W6}),S&&r.setSelected(L),r.setPreSelection(L),C){var U=Gs(x),I=Gs(L),F=vn(x),P=vn(L);U!==I||F!==P?r.setState({shouldFocusDayInline:!0}):r.setState({shouldFocusDayInline:!1})}}},r.onPopperKeyDown=function(i){var o=i.key;o===ft.Escape&&(i.preventDefault(),r.sendFocusBackToInput())},r.onClearClick=function(i){i&&i.preventDefault&&i.preventDefault(),r.sendFocusBackToInput();var o=r.props,s=o.selectsRange,a=o.onChange;s?a==null||a([null,null],i):a==null||a(null,i),r.setState({inputValue:null})},r.clear=function(){r.onClearClick()},r.onScroll=function(i){typeof r.props.closeOnScroll=="boolean"&&r.props.closeOnScroll?(i.target===document||i.target===document.documentElement||i.target===document.body)&&r.setOpen(!1):typeof r.props.closeOnScroll=="function"&&r.props.closeOnScroll(i)&&r.setOpen(!1)},r.renderCalendar=function(){var i,o;return!r.props.inline&&!r.isCalendarOpen()?null:Ae.createElement(T0t,Pn({showMonthYearDropdown:void 0,ref:function(s){r.calendar=s}},r.props,r.state,{setOpen:r.setOpen,dateFormat:(i=r.props.dateFormatCalendar)!==null&&i!==void 0?i:t.defaultProps.dateFormatCalendar,onSelect:r.handleSelect,onClickOutside:r.handleCalendarClickOutside,holidays:r0t(r.modifyHolidays()),outsideClickIgnoreClass:Qne,onDropdownFocus:r.handleDropdownFocus,onTimeChange:r.handleTimeChange,className:r.props.calendarClassName,container:r.props.calendarContainer,handleOnKeyDown:r.props.onKeyDown,handleOnDayKeyDown:r.onDayKeyDown,setPreSelection:r.setPreSelection,dropdownMode:(o=r.props.dropdownMode)!==null&&o!==void 0?o:t.defaultProps.dropdownMode}),r.props.children)},r.renderAriaLiveRegion=function(){var i=r.props,o=i.dateFormat,s=o===void 0?t.defaultProps.dateFormat:o,a=i.locale,c=r.props.showTimeInput||r.props.showTimeSelect,l=c?"PPPPp":"PPPP",u;return r.props.selectsRange?u="Selected start date: ".concat(Ic(r.props.startDate,{dateFormat:l,locale:a}),". ").concat(r.props.endDate?"End date: "+Ic(r.props.endDate,{dateFormat:l,locale:a}):""):r.props.showTimeSelectOnly?u="Selected time: ".concat(Ic(r.props.selected,{dateFormat:s,locale:a})):r.props.showYearPicker?u="Selected year: ".concat(Ic(r.props.selected,{dateFormat:"yyyy",locale:a})):r.props.showMonthYearPicker?u="Selected month: ".concat(Ic(r.props.selected,{dateFormat:"MMMM yyyy",locale:a})):r.props.showQuarterYearPicker?u="Selected quarter: ".concat(Ic(r.props.selected,{dateFormat:"yyyy, QQQ",locale:a})):u="Selected date: ".concat(Ic(r.props.selected,{dateFormat:l,locale:a})),Ae.createElement("span",{role:"alert","aria-live":"polite",className:"react-datepicker__aria-l
1571ive"},u)},r.renderDateInput=function(){var i,o,s,a=xr(r.props.className,(i={},i[Qne]=r.state.open,i)),c=r.props.customInput||Ae.createElement("input",{type:"text"}),l=r.props.customInputRef||"ref",u=r.props,d=u.dateFormat,f=d===void 0?t.defaultProps.dateFormat:d,p=u.locale,g=typeof r.props.value=="string"?r.props.value:typeof r.state.inputValue=="string"?r.state.inputValue:r.props.selectsRange?$vt(r.props.startDate,r.props.endDate,{dateFormat:f,locale:p}):r.props.selectsMultiple?Hvt((s=r.props.selectedDates)!==null&&s!==void 0?s:[],{dateFormat:f,locale:p}):Ic(r.props.selected,{dateFormat:f,locale:p});return b.cloneElement(c,(o={},o[l]=function(m){r.input=m},o.value=g,o.onBlur=r.handleBlur,o.onChange=r.handleChange,o.onClick=r.onInputClick,o.onFocus=r.handleFocus,o.onKeyDown=r.onInputKeyDown,o.id=r.props.id,o.name=r.props.name,o.form=r.props.form,o.autoFocus=r.props.autoFocus,o.placeholder=r.props.placeholderText,o.disabled=r.props.disabled,o.autoComplete=r.props.autoComplete,o.className=xr(c.props.className,a),o.title=r.props.title,o.readOnly=r.props.readOnly,o.required=r.props.required,o.tabIndex=r.props.tabIndex,o["aria-describedby"]=r.props.ariaDescribedBy,o["aria-invalid"]=r.props.ariaInvalid,o["aria-labelledby"]=r.props.ariaLabelledBy,o["aria-required"]=r.props.ariaRequired,o))},r.renderClearButton=function(){var i=r.props,o=i.isClearable,s=i.disabled,a=i.selected,c=i.startDate,l=i.endDate,u=i.clearButtonTitle,d=i.clearButtonClassName,f=d===void 0?"":d,p=i.ariaLabelClose,g=p===void 0?"Close":p,m=i.selectedDates;return o&&(a!=null||c!=null||l!=null||m!=null&&m.length)?Ae.createElement("button",{type:"button",className:xr("react-datepicker__close-icon",f,{"react-datepicker__close-icon--disabled":s}),disabled:s,"aria-label":g,onClick:r.onClearClick,title:u,tabIndex:-1}):null},r.state=r.calcInitialState(),r.preventFocusTimeout=void 0,r}return Object.defineProperty(t,"defaultProps",{get:function(){return{allowSameDay:!1,dateFormat:"MM/dd/yyyy",dateFormatCalendar:"LLLL yyyy",disabled:!1,disabledKeyboardNavigation:!1,dropdownMode:"scroll",preventOpenOnFocus:!1,monthsShown:1,readOnly:!1,withPortal:!1,selectsDisabledDaysInRange:!1,shouldCloseOnSelect:!0,showTimeSelect:!1,showTimeInput:!1,showPreviousMonths:!1,showMonthYearPicker:!1,showFullMonthYearPicker:!1,showTwoColumnMonthYearPicker:!1,showFourColumnMonthYearPicker:!1,showYearPicker:!1,showQuarterYearPicker:!1,showWeekPicker:!1,strictParsing:!1,swapRange:!1,timeIntervals:30,timeCaption:"Time",previousMonthAriaLabel:"Previous Month",previousMonthButtonLabel:"Previous Month",nextMonthAriaLabel:"Next Month",nextMonthButtonLabel:"Next Month",previousYearAriaLabel:"Previous Year",previousYearButtonLabel:"Previous Year",nextYearAriaLabel:"Next Year",nextYearButtonLabel:"Next Year",timeInputLabel:"Time",enableTabLoop:!0,yearItemNumber:YE,focusSelectedMonth:!1,showPopperArrow:!0,excludeScrollbar:!0,customTimeInput:null,calendarStartDay:void 0,toggleCalendarOnIconClick:!1,usePointerEvent:!1}},enumerable:!1,configurable:!0}),t.prototype.componentDidMount=function(){window.addEventListener("scroll",this.onScroll,!0),document.addEventListener("visibilitychange",this.setHiddenStateOnVisibilityHidden)},t.prototype.componentDidUpdate=function(n,r){var i,o,s,a;n.inline&&O0t(n.selected,this.props.selected)&&this.setPreSelection(this.props.selected),this.state.monthSelectedIn!==void 0&&n.monthsShown!==this.props.monthsShown&&this.setState({monthSelectedIn:0}),n.highlightDates!==this.props.highlightDates&&this.setState({highlightDates:zne(this.props.highlightDates)}),!r.focused&&!Cg(n.selected,this.props.selected)&&this.setState({inputValue:null}),r.open!==this.state.open&&(r.open===!1&&this.state.open===!0&&((o=(i=this.props).onCalendarOpen)===null||o===void 0||o.call(i)),r.open===!0&&this.state.open===!1&&((a=(s=this.props).onCalendarClose)===null||a===void 0||a.call(s)))},t.prototype.componentWillUnmount=function(){this.clearPreventFocusTimeout(),window.removeEventListener("scroll",this.onScroll,!0),document.removeEventListener("visibilitychange",this.setHiddenStateOnVisibilityHidden)},t.prototype.renderInputContainer=function(){var n=this.props,r=n.showIcon,i=n.icon,o=n.calendarIconClassname,s=n.calendarIconClassName,a=n.toggleCalendarOnIconClick,c=this.state.open;return o&&console.warn("calendarIconClassname props is deprecated. should use calendarIconClassName props."),Ae.createElement("div",{className:"react-datepicker__input-container".concat(r?" react-datepicker__view-calendar-icon":"")},r&&Ae.createElement(k0t,Pn({icon:i,className:xr(s,!s&&o,c&&"react-datepicker-ignore-onclickoutside")},a?{onClick:this.toggleCalendar}:null)),this.state.isRenderAriaLiveMessage&&this.renderAriaLiveRegion(),this.renderDateInput(),this.renderClearButton())}
1571,t.prototype.render=function(){var n=this.renderCalendar();if(this.props.inline)return n;if(this.props.withPortal){var r=this.state.open?Ae.createElement(X_e,{enableTabLoop:this.props.enableTabLoop},Ae.createElement("div",{className:"react-datepicker__portal",tabIndex:-1,onKeyDown:this.onPortalKeyDown},n)):null;return this.state.open&&this.props.portalId&&(r=Ae.createElement(Q_e,Pn({portalId:this.props.portalId},this.props),r)),Ae.createElement("div",null,this.renderInputContainer(),r)}return Ae.createElement(P0t,Pn({},this.props,{className:this.props.popperClassName,hidePopper:!this.isCalendarOpen(),targetComponent:this.renderInputContainer(),popperComponent:n,popperOnKeyDown:this.onPopperKeyDown,showArrow:this.props.showPopperArrow}))},t})(b.Component),N0t="input",W6="navigate";const M0t=[{name:"last-24-hours",start:new Date(new Date().setHours(new Date().getHours()-24)),end:new Date(new Date().setMinutes(new Date().getMinutes()+5))},{name:"last-month",start:new Date(new Date().setMonth(new Date().getMonth()-1)),end:new Date(new Date().setMinutes(new Date().getMinutes()+5))},{name:"last-3-months",start:new Date(new Date().setMonth(new Date().getMonth()-2)),end:new Date(new Date().setMinutes(new Date().getMinutes()+5))},{name:"last-12-months",start:new Date(new Date().setMonth(new Date().getMonth()-12)),end:new Date(new Date().setMinutes(new Date().getMinutes()+5))},{name:"all-time",start:new Date("2025-01-01"),end:void 0}],D0t=e=>{const t=b.useCallback(a=>{switch(a){case"last-24-hours":return"Today";case"last-month":return"Last month";case"last-3-months":return"Last 3 months";case"last-12-months":return"Last 12 months";case"all-time":return"All time";case"custom":return"Customize"}},[]),[n,r]=b.useState(e.selectedTimeRange.name==="custom"),i=b.useRef(null),[o,s]=b.useState();return b.useEffect(()=>{i.current&&s(i.current.offsetWidth)},[]),h.jsxs(al,{children:[h.jsx(cl,{asChild:!0,ref:i,children:h.jsxs(qe,{color:"gray",backgroundColor:"black",borderColor:"dark-gray",className:b0.Trigger,children:[t(e.selectedTimeRange.name),h.jsx(na,{})]})}),h.jsx(ll,{children:h.jsxs(uu,{className:b0.TimeRangeSelectContent,align:"start",side:"bottom",sideOffset:8,style:{minWidth:o},children:[h.jsxs("div",{className:b0.DefaultTimeRanges,children:[M0t.map(a=>h.jsx("button",{type:"button",onClick:()=>e.onChange(a),"aria-selected":e.selectedTimeRange.name===a.name,children:t(a.name)},a.name)),h.jsx("button",{type:"button",onClick:()=>r(a=>!a),"aria-selected":e.selectedTimeRange.name==="custom",children:"Customize"})]}),n&&h.jsxs("div",{className:b0.CustomTimeRange,children:[h.jsxs("div",{className:b0.DatePicker,children:[h.jsx("label",{children:"From"}),h.jsx(Xne,{selected:e.selectedTimeRange.start,onChange:a=>e.onChange({...e.selectedTimeRange,name:"custom",start:a||void 0})})]}),h.jsxs("div",{className:b0.DatePicker,children:[h.jsx("label",{children:"To"}),h.jsx(Xne,{selected:e.selectedTimeRange.end,onChange:a=>e.onChange({...e.selectedTimeRange,name:"custom",end:a||void 0})})]})]})]})})]})},L0t="_UsageGraph_1m422_1",F0t="_Header_1m422_10",BR={UsageGraph:L0t,Header:F0t};var J_e={exports:{}},j0t="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",U0t=j0t,B0t=U0t;function Z_e(){}function eCe(){}eCe.resetWarningCache=Z_e;var $0t=function(){function e(r,i,o,s,a,c){if(c!==B0t){var l=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 l.name="Invariant Violation",l}}e.isRequired=e;function t(){return e}var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:eCe,resetWarningCache:Z_e};return n.PropTypes=n,n};J_e.exports=$0t();var H0t=J_e.exports;const Pe=io(H0t);var EV=JE(),Xt=e=>XE(e,EV),TV=JE();Xt.write=e=>XE(e,TV);var LO=JE();Xt.onStart=e=>XE(e,LO);var kV=JE();Xt.onFrame=e=>XE(e,kV);var xV=JE();Xt.onFinish=e=>XE(e,xV);var By=[];Xt.setTimeout=(e,t)=>{const n=Xt.now()+t,r=()=>{const o=By.findIndex(s=>s.cancel==r);~o&&By.splice(o,1),xp-=~o?1:0},i={time:n,handler:e,cancel:r};return By.splice(tCe(n),0,i),xp+=1,nCe(),i};var tCe=e=>~(~By.findIndex(t=>t.time>e)||~By.length);Xt.cancel=e=>{LO.delete(e),kV.delete(e),xV.delete(e),EV.delete(e),TV.delete(e)};Xt.sync=e=>{m9=!0,Xt.batchedUpdates(e),m9=!1};Xt.throttle=e=>{let t;function n(){try{e(...t)}finally{t=null}}function r(...i){t=i,Xt.onStart(n)}return r.handler=e,r.cancel=()=>{LO.delete(n),t=null},r};var AV=typeof window<"u"?window.requestAnimationFrame:(()=>{});Xt.use=e=>AV=e;Xt.now=typeof performance<"u"?()=>performance.now():Date.now;Xt.batchedUpdates=e=>e();Xt.catch=console.error;Xt.frameLoop="always";Xt.advance=()=>{Xt.frameLoop!=="demand"?console.warn("Cannot call the manual advancement of rafz whilst frameLoop is not set as demand"):iCe()};var kp=-1,xp=0,m9=!1;function XE(e,t){m9?(t.delete(e),e(0)):(t.add(e),nCe())}function nCe(){kp<0&&(kp=0,Xt.frameLoop!=="demand"&&AV(rCe))}function z0t(){kp=-1}function rCe(){~kp&&(AV(rCe),Xt.batchedUpdates(iCe))}function iCe(){const e=kp;kp=Xt.now();const t=tCe(kp);if(t&&(oCe(By.splice(0,t),n=>n.handler()),xp-=t),!xp){z0t();return}LO.flush(),EV.flush(e?Math.min(64,kp-e):16.667),kV.flush(),TV.flush(),xV.flush()}function JE(){let e=new Set,t=e;return{add(n){xp+=t==e&&!e.has(n)?1:0,e.add(n)},delete(n){return xp-=t==e&&e.has(n)?1:0,e.delete(n)},flush(n){t.size&&(e=new Set,xp-=t.size,oCe(t,r=>r(n)&&e.add(r)),xp+=e.size,t=e)}}}function oCe(e,t){e.forEach(n=>{try{t(n)}catch(r){Xt.catch(r)}})}var V0t=Object.defineProperty,W0t=(e,t)=>
1571{for(var n in t)V0t(e,n,{get:t[n],enumerable:!0})},au={};W0t(au,{assign:()=>G0t,colors:()=>Xp,createStringInterpolator:()=>RV,skipAnimation:()=>aCe,to:()=>sCe,willAdvance:()=>PV});function g9(){}var q0t=(e,t,n)=>Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0}),Xe={arr:Array.isArray,obj:e=>!!e&&e.constructor.name==="Object",fun:e=>typeof e=="function",str:e=>typeof e=="string",num:e=>typeof e=="number",und:e=>e===void 0};function uf(e,t){if(Xe.arr(e)){if(!Xe.arr(t)||e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}return e===t}var qt=(e,t)=>e.forEach(t);function kd(e,t,n){if(Xe.arr(e)){for(let r=0;r<e.length;r++)t.call(n,e[r],`${r}`);return}for(const r in e)e.hasOwnProperty(r)&&t.call(n,e[r],r)}var Ks=e=>Xe.und(e)?[]:Xe.arr(e)?e:[e];function p_(e,t){if(e.size){const n=Array.from(e);e.clear(),qt(n,t)}}var RS=(e,...t)=>p_(e,n=>n(...t)),IV=()=>typeof window>"u"||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent),RV,sCe,Xp=null,aCe=!1,PV=g9,G0t=e=>{e.to&&(sCe=e.to),e.now&&(Xt.now=e.now),e.colors!==void 0&&(Xp=e.colors),e.skipAnimation!=null&&(aCe=e.skipAnimation),e.createStringInterpolator&&(RV=e.createStringInterpolator),e.requestAnimationFrame&&Xt.use(e.requestAnimationFrame),e.batchedUpdates&&(Xt.batchedUpdates=e.batchedUpdates),e.willAdvance&&(PV=e.willAdvance),e.frameLoop&&(Xt.frameLoop=e.frameLoop)},m_=new Set,jc=[],q6=[],$R=0,FO={get idle(){return!m_.size&&!jc.length},start(e){$R>e.priority?(m_.add(e),Xt.onStart(K0t)):(cCe(e),Xt(v9))},advance:v9,sort(e){if($R)Xt.onFrame(()=>FO.sort(e));else{const t=jc.indexOf(e);~t&&(jc.splice(t,1),lCe(e))}},clear(){jc=[],m_.clear()}};function K0t(){m_.forEach(cCe),m_.clear(),Xt(v9)}function cCe(e){jc.includes(e)||lCe(e)}function lCe(e){jc.splice(Y0t(jc,t=>t.priority>e.priority),0,e)}function v9(e){const t=q6;for(let n=0;n<jc.length;n++){const r=jc[n];$R=r.priority,r.idle||(PV(r),r.advance(e),r.idle||t.push(r))}return $R=0,q6=jc,q6.length=0,jc=t,jc.length>0}function Y0t(e,t){const n=e.findIndex(t);return n<0?e.length:n}var Q0t={transparent:0,aliceblue:4042850303,antiquewhite:4209760255,aqua:16777215,aquamarine:2147472639,azure:4043309055,beige:4126530815,bisque:4293182719,black:255,blanchedalmond:4293643775,blue:65535,blueviolet:2318131967,brown:2771004159,burlywood:3736635391,burntsienna:3934150143,cadetblue:1604231423,chartreuse:2147418367,chocolate:3530104575,coral:4286533887,cornflowerblue:1687547391,cornsilk:4294499583,crimson:3692313855,cyan:16777215,darkblue:35839,darkcyan:9145343,darkgoldenrod:3095792639,darkgray:2846468607,darkgreen:6553855,darkgrey:2846468607,darkkhaki:3182914559,darkmagenta:2332068863,darkolivegreen:1433087999,darkorange:4287365375,darkorchid:2570243327,darkred:2332033279,darksalmon:3918953215,darkseagreen:2411499519,darkslateblue:1211993087,darkslategray:793726975,darkslategrey:793726975,darkturquoise:13554175,darkviolet:2483082239,deeppink:4279538687,deepskyblue:12582911,dimgray:1768516095,dimgrey:1768516095,dodgerblue:512819199,firebrick:2988581631,floralwhite:4294635775,forestgreen:579543807,fuchsia:4278255615,gainsboro:3705462015,ghostwhite:4177068031,gold:4292280575,goldenrod:3668254975,gray:2155905279,green:8388863,greenyellow:2919182335,grey:2155905279,honeydew:4043305215,hotpink:4285117695,indianred:3445382399,indigo:1258324735,ivory:4294963455,khaki:4041641215,lavender:3873897215,lavenderblush:4293981695,lawngreen:2096890111,lemonchiffon:4294626815,lightblue:2916673279,lightcoral:4034953471,lightcyan:3774873599,lightgoldenrodyellow:4210742015,lightgray:3553874943,lightgreen:2431553791,lightgrey:3553874943,lightpink:4290167295,lightsalmon:4288707327,lightseagreen:548580095,lightskyblue:2278488831,lightslategray:2005441023,lightslategrey:2005441023,lightsteelblue:2965692159,lightyellow:4294959359,lime:16711935,limegreen:852308735,linen:4210091775,magenta:4278255615,maroon:2147483903,mediumaquamarine:1724754687,mediumblue:52735,mediumorchid:3126187007,mediumpurple:2473647103,mediumseagreen:1018393087,mediumslateblue:2070474495,mediumspringgreen:16423679,mediumturquoise:1221709055,mediumvioletred:3340076543,midnightblue:421097727,mintcream:4127193855,mistyrose:4293190143,moccasin:4293178879,navajowhite:4292783615,navy:33023,oldlace:4260751103,olive:2155872511,olivedrab:1804477439,orange:4289003775,orangered:4282712319,orchid:3664828159,palegoldenrod:4008225535,palegreen:2566625535,paleturquoise:2951671551,palevioletred:3681588223,papayawhip:4293907967,peachpuff:4292524543,peru:3448061951,pink:4290825215,plum:3718307327,powderblue:2967529215,purple:2147516671,rebeccapurple:1714657791,red:4278190335,rosybrown:3163525119,royalblue:1097458175,saddlebrown:2336560127,salmon:4202722047,sandybrown:4104413439,seagreen:780883967,seashell:4294307583,sienna:2689740287,silver:3233857791,skyblue:2278484991,slateblue:1784335871,slategray:1887473919,slategrey:1887473919,snow:4294638335,springgreen:16744447,steelblue:1182971135,tan:3535047935,teal:8421631,thistle:3636451583,tomato:4284696575,turquoise:1088475391,violet:4001558271,wheat:4125012991,white:4294967295,whitesmoke:4126537215,yellow:4294902015,yellowgreen:2597139199},ql="[-+]?\\d*\\.?\\d+",HR=ql+"%";function jO(...e){return"\\(\\s*("+e.join(")\\s*,\\s*(")+")\\s*\\)"}var X0t=new RegExp("rgb"+jO(ql,ql,ql)),J0t=new RegExp("rgba"+jO(ql,ql,ql,ql)),Z0t=new RegExp("hsl"+jO(ql,HR,HR)),eyt=new RegExp("hsla"
1571+jO(ql,HR,HR,ql)),tyt=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,nyt=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,ryt=/^#([0-9a-fA-F]{6})$/,iyt=/^#([0-9a-fA-F]{8})$/;function oyt(e){let t;return typeof e=="number"?e>>>0===e&&e>=0&&e<=4294967295?e:null:(t=ryt.exec(e))?parseInt(t[1]+"ff",16)>>>0:Xp&&Xp[e]!==void 0?Xp[e]:(t=X0t.exec(e))?(S0(t[1])<<24|S0(t[2])<<16|S0(t[3])<<8|255)>>>0:(t=J0t.exec(e))?(S0(t[1])<<24|S0(t[2])<<16|S0(t[3])<<8|ere(t[4]))>>>0:(t=tyt.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+"ff",16)>>>0:(t=iyt.exec(e))?parseInt(t[1],16)>>>0:(t=nyt.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+t[4]+t[4],16)>>>0:(t=Z0t.exec(e))?(Jne(Zne(t[1]),lk(t[2]),lk(t[3]))|255)>>>0:(t=eyt.exec(e))?(Jne(Zne(t[1]),lk(t[2]),lk(t[3]))|ere(t[4]))>>>0:null}function G6(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function Jne(e,t,n){const r=n<.5?n*(1+t):n+t-n*t,i=2*n-r,o=G6(i,r,e+1/3),s=G6(i,r,e),a=G6(i,r,e-1/3);return Math.round(o*255)<<24|Math.round(s*255)<<16|Math.round(a*255)<<8}function S0(e){const t=parseInt(e,10);return t<0?0:t>255?255:t}function Zne(e){return(parseFloat(e)%360+360)%360/360}function ere(e){const t=parseFloat(e);return t<0?0:t>1?255:Math.round(t*255)}function lk(e){const t=parseFloat(e);return t<0?0:t>100?1:t/100}function tre(e){let t=oyt(e);if(t===null)return e;t=t||0;const n=(t&4278190080)>>>24,r=(t&16711680)>>>16,i=(t&65280)>>>8,o=(t&255)/255;return`rgba(${n}, ${r}, ${i}, ${o})`}var AC=(e,t,n)=>{if(Xe.fun(e))return e;if(Xe.arr(e))return AC({range:e,output:t,extrapolate:n});if(Xe.str(e.output[0]))return RV(e);const r=e,i=r.output,o=r.range||[0,1],s=r.extrapolateLeft||r.extrapolate||"extend",a=r.extrapolateRight||r.extrapolate||"extend",c=r.easing||(l=>l);return l=>{const u=ayt(l,o);return syt(l,o[u],o[u+1],i[u],i[u+1],c,s,a,r.map)}};function syt(e,t,n,r,i,o,s,a,c){let l=c?c(e):e;if(l<t){if(s==="identity")return l;s==="clamp"&&(l=t)}if(l>n){if(a==="identity")return l;a==="clamp"&&(l=n)}return r===i?r:t===n?e<=t?r:i:(t===-1/0?l=-l:n===1/0?l=l-t:l=(l-t)/(n-t),l=o(l),r===-1/0?l=-l:i===1/0?l=l+r:l=l*(i-r)+r,l)}function ayt(e,t){for(var n=1;n<t.length-1&&!(t[n]>=e);++n);return n-1}var cyt={linear:e=>e},IC=Symbol.for("FluidValue.get"),z1=Symbol.for("FluidValue.observers"),Dc=e=>!!(e&&e[IC]),pa=e=>e&&e[IC]?e[IC]():e,nre=e=>e[z1]||null;function lyt(e,t){e.eventObserved?e.eventObserved(t):e(t)}function RC(e,t){const n=e[z1];n&&n.forEach(r=>{lyt(r,t)})}var uCe=class{constructor(e){if(!e&&!(e=this.get))throw Error("Unknown getter");uyt(this,e)}},uyt=(e,t)=>dCe(e,IC,t);function Wb(e,t){if(e[IC]){let n=e[z1];n||dCe(e,z1,n=new Set),n.has(t)||(n.add(t),e.observerAdded&&e.observerAdded(n.size,t))}return t}function PC(e,t){const n=e[z1];if(n&&n.has(t)){const r=n.size-1;r?n.delete(t):e[z1]=null,e.observerRemoved&&e.observerRemoved(r,t)}}var dCe=(e,t,n)=>Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0}),uA=/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,dyt=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,rre=new RegExp(`(${uA.source})(%|[a-z]+)`,"i"),fyt=/rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi,UO=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/,fCe=e=>{const[t,n]=hyt(e);if(!t||IV())return e;const r=window.getComputedStyle(document.documentElement).getPropertyValue(t);if(r)return r.trim();if(n&&n.startsWith("--")){const i=window.getComputedStyle(document.documentElement).getPropertyValue(n);return i||e}else{if(n&&UO.test(n))return fCe(n);if(n)return n}return e},hyt=e=>{const t=UO.exec(e);if(!t)return[,];const[,n,r]=t;return[n,r]},K6,pyt=(e,t,n,r,i)=>`rgba(${Math.round(t)}, ${Math.round(n)}, ${Math.round(r)}, ${i})`,hCe=e=>{K6||(K6=Xp?new RegExp(`(${Object.keys(Xp).join("|")})(?!\\w)`,"g"):/^\b$/);const t=e.output.map(o=>pa(o).replace(UO,fCe).replace(dyt,tre).replace(K6,tre)),n=t.map(o=>o.match(uA).map(Number)),i=n[0].map((o,s)=>n.map(a=>{if(!(s in a))throw Error('The arity of each "output" value must be equal');return a[s]})).map(o=>AC({...e,output:o}));return o=>{var c;const s=!rre.test(t[0])&&((c=t.find(l=>rre.test(l)))==null?void 0:c.replace(uA,""));let a=0;return t[0].replace(uA,()=>`${i[a++](o)}${s||""}`).replace(fyt,pyt)}},OV="react-spring: ",pCe=e=>{const t=e;let n=!1;if(typeof t!="function")throw new TypeError(`${OV}once requires a function parameter`);return(...r)=>{n||(t(...r),n=!0)}},myt=pCe(console.warn);function gyt(){myt(`${OV}
1571The "interpolate" function is deprecated in v9 (use "to" instead)`)}var vyt=pCe(console.warn);function yyt(){vyt(`${OV}Directly calling start instead of using the api object is deprecated in v9 (use ".start" instead), this will be removed in later 0.X.0 versions`)}function BO(e){return Xe.str(e)&&(e[0]=="#"||/\d/.test(e)||!IV()&&UO.test(e)||e in(Xp||{}))}var Eg=IV()?b.useEffect:b.useLayoutEffect,byt=()=>{const e=b.useRef(!1);return Eg(()=>(e.current=!0,()=>{e.current=!1}),[]),e};function NV(){const e=b.useState()[1],t=byt();return()=>{t.current&&e(Math.random())}}function wyt(e,t){const[n]=b.useState(()=>({inputs:t,result:e()})),r=b.useRef(),i=r.current;let o=i;return o?t&&o.inputs&&Syt(t,o.inputs)||(o={inputs:t,result:e()}):o=n,b.useEffect(()=>{r.current=o,i==n&&(n.inputs=n.result=void 0)},[o]),o.result}function Syt(e,t){if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}var MV=e=>b.useEffect(e,_yt),_yt=[];function y9(e){const t=b.useRef();return b.useEffect(()=>{t.current=e}),t.current}var OC=Symbol.for("Animated:node"),Cyt=e=>!!e&&e[OC]===e,ju=e=>e&&e[OC],DV=(e,t)=>q0t(e,OC,t),$O=e=>e&&e[OC]&&e[OC].getPayload(),mCe=class{constructor(){DV(this,this)}getPayload(){return this.payload||[]}},ZE=class extends mCe{constructor(e){super(),this._value=e,this.done=!0,this.durationProgress=0,Xe.num(this._value)&&(this.lastPosition=this._value)}static create(e){return new ZE(e)}getPayload(){return[this]}getValue(){return this._value}setValue(e,t){return Xe.num(e)&&(this.lastPosition=e,t&&(e=Math.round(e/t)*t,this.done&&(this.lastPosition=e))),this._value===e?!1:(this._value=e,!0)}reset(){const{done:e}=this;this.done=!1,Xe.num(this._value)&&(this.elapsedTime=0,this.durationProgress=0,this.lastPosition=this._value,e&&(this.lastVelocity=null),this.v0=null)}},NC=class extends ZE{constructor(e){super(0),this._string=null,this._toString=AC({output:[e,e]})}static create(e){return new NC(e)}getValue(){const e=this._string;return e??(this._string=this._toString(this._value))}setValue(e){if(Xe.str(e)){if(e==this._string)return!1;this._string=e,this._value=1}else if(super.setValue(e))this._string=null;else return!1;return!0}reset(e){e&&(this._toString=AC({output:[this.getValue(),e]})),this._value=0,super.reset()}},zR={dependencies:null},HO=class extends mCe{constructor(e){super(),this.source=e,this.setValue(e)}getValue(e){const t={};return kd(this.source,(n,r)=>{Cyt(n)?t[r]=n.getValue(e):Dc(n)?t[r]=pa(n):e||(t[r]=n)}),t}setValue(e){this.source=e,this.payload=this._makePayload(e)}reset(){this.payload&&qt(this.payload,e=>e.reset())}_makePayload(e){if(e){const t=new Set;return kd(e,this._addToPayload,t),Array.from(t)}}_addToPayload(e){zR.dependencies&&Dc(e)&&zR.dependencies.add(e);const t=$O(e);t&&qt(t,n=>this.add(n))}},gCe=class extends HO{constructor(e){super(e)}static create(e){return new gCe(e)}getValue(){return this.source.map(e=>e.getValue())}setValue(e){const t=this.getPayload();return e.length==t.length?t.map((n,r)=>n.setValue(e[r])).some(Boolean):(super.setValue(e.map(Eyt)),!0)}};function Eyt(e){return(BO(e)?NC:ZE).create(e)}function b9(e){const t=ju(e);return t?t.constructor:Xe.arr(e)?gCe:BO(e)?NC:ZE}var ire=(e,t)=>{const n=!Xe.fun(e)||e.prototype&&e.prototype.isReactComponent;return b.forwardRef((r,i)=>{const o=b.useRef(null),s=n&&b.useCallback(g=>{o.current=xyt(i,g)},[i]),[a,c]=kyt(r,t),l=NV(),u=()=>{const g=o.current;if(n&&!g)return;(g?t.applyAnimatedValues(g,a.getValue(!0)):!1)===!1&&l()},d=new Tyt(u,c),f=b.useRef();Eg(()=>(f.current=d,qt(c,g=>Wb(g,d)),()=>{f.current&&(qt(f.current.deps,g=>PC(g,f.current)),Xt.cancel(f.current.update))})),b.useEffect(u,[]),MV(()=>()=>{const g=f.current;qt(g.deps,m=>PC(m,g))});const p=t.getComponentProps(a.getValue());return b.createElement(e,{...p,ref:s})})},Tyt=class{constructor(e,t){this.update=e,this.deps=t}eventObserved(e){e.type=="change"&&Xt.write(this.update)}};function kyt(e,t){const n=new Set;return zR.dependencies=n,e.style&&(e={...e,style:t.createAnimatedStyle(e.style)}
1571),e=new HO(e),zR.dependencies=null,[e,n]}function xyt(e,t){return e&&(Xe.fun(e)?e(t):e.current=t),t}var ore=Symbol.for("AnimatedComponent"),Ayt=(e,{applyAnimatedValues:t=()=>!1,createAnimatedStyle:n=i=>new HO(i),getComponentProps:r=i=>i}={})=>{const i={applyAnimatedValues:t,createAnimatedStyle:n,getComponentProps:r},o=s=>{const a=sre(s)||"Anonymous";return Xe.str(s)?s=o[s]||(o[s]=ire(s,i)):s=s[ore]||(s[ore]=ire(s,i)),s.displayName=`Animated(${a})`,s};return kd(e,(s,a)=>{Xe.arr(e)&&(a=sre(s)),o[a]=o(s)}),{animated:o}},sre=e=>Xe.str(e)?e:e&&Xe.str(e.displayName)?e.displayName:Xe.fun(e)&&e.name||null;function ma(e,...t){return Xe.fun(e)?e(...t):e}var g_=(e,t)=>e===!0||!!(t&&e&&(Xe.fun(e)?e(t):Ks(e).includes(t))),vCe=(e,t)=>Xe.obj(e)?t&&e[t]:e,yCe=(e,t)=>e.default===!0?e[t]:e.default?e.default[t]:void 0,Iyt=e=>e,zO=(e,t=Iyt)=>{let n=Ryt;e.default&&e.default!==!0&&(e=e.default,n=Object.keys(e));const r={};for(const i of n){const o=t(e[i],i);Xe.und(o)||(r[i]=o)}return r},Ryt=["config","onProps","onStart","onChange","onPause","onResume","onRest"],Pyt={config:1,from:1,to:1,ref:1,loop:1,reset:1,pause:1,cancel:1,reverse:1,immediate:1,default:1,delay:1,onProps:1,onStart:1,onChange:1,onPause:1,onResume:1,onRest:1,onResolve:1,items:1,trail:1,sort:1,expires:1,initial:1,enter:1,update:1,leave:1,children:1,onDestroyed:1,keys:1,callId:1,parentId:1};function Oyt(e){const t={};let n=0;if(kd(e,(r,i)=>{Pyt[i]||(t[i]=r,n++)}),n)return t}function LV(e){const t=Oyt(e);if(t){const n={to:t};return kd(e,(r,i)=>i in t||(n[i]=r)),n}return{...e}}function MC(e){return e=pa(e),Xe.arr(e)?e.map(MC):BO(e)?au.createStringInterpolator({range:[0,1],output:[e,e]})(1):e}function bCe(e){for(const t in e)return!0;return!1}function w9(e){return Xe.fun(e)||Xe.arr(e)&&Xe.obj(e[0])}function S9(e,t){var n;(n=e.ref)==null||n.delete(e),t==null||t.delete(e)}function wCe(e,t){var n;t&&e.ref!==t&&((n=e.ref)==null||n.delete(e),t.add(e),e.ref=t)}var FV={default:{tension:170,friction:26},gentle:{tension:120,friction:14},wobbly:{tension:180,friction:12},stiff:{tension:210,friction:20},slow:{tension:280,friction:60},molasses:{tension:280,friction:120}},_9={...FV.default,mass:1,damping:1,easing:cyt.linear,clamp:!1},Nyt=class{constructor(){this.velocity=0,Object.assign(this,_9)}};function Myt(e,t,n){n&&(n={...n},are(n,t),t={...n,...t}),are(e,t),Object.assign(e,t);for(const s in _9)e[s]==null&&(e[s]=_9[s]);let{frequency:r,damping:i}=e;const{mass:o}=e;return Xe.und(r)||(r<.01&&(r=.01),i<0&&(i=0),e.tension=Math.pow(2*Math.PI/r,2)*o,e.friction=4*Math.PI*i*o/r),e}function are(e,t){if(!Xe.und(t.decay))e.duration=void 0;else{const n=!Xe.und(t.tension)||!Xe.und(t.friction);(n||!Xe.und(t.frequency)||!Xe.und(t.damping)||!Xe.und(t.mass))&&(e.duration=void 0,e.decay=void 0),n&&(e.frequency=void 0)}}var cre=[],Dyt=class{constructor(){this.changed=!1,this.values=cre,this.toValues=null,this.fromValues=cre,this.config=new Nyt,this.immediate=!1}};function SCe(e,{key:t,props:n,defaultProps:r,state:i,actions:o}){return new Promise((s,a)=>{let c,l,u=g_(n.cancel??(r==null?void 0:r.cancel),t);if(u)p();else{Xe.und(n.pause)||(i.paused=g_(n.pause,t));let g=r==null?void 0:r.pause;g!==!0&&(g=i.paused||g_(g,t)),c=ma(n.delay||0,t),g?(i.resumeQueue.add(f),o.pause()):(o.resume(),f())}function d(){i.resumeQueue.add(f),i.timeouts.delete(l),l.cancel(),c=l.time-Xt.now()}function f(){c>0&&!au.skipAnimation?(i.delayed=!0,l=Xt.setTimeout(p,c),i.pauseQueue.add(d),i.timeouts.add(l)):p()}function p(){i.delayed&&(i.delayed=!1),i.pauseQueue.delete(d),i.timeouts.delete(l),e<=(i.cancelId||0)&&(u=!0);try{o.start({...n,callId:e,cancel:u},s)}catch(g){a(g)}}})}var jV=(e,t)=>t.length==1?t[0]:t.some(n=>n.cancelled)?$y(e.get()):t.every(n=>n.noop)?_Ce(e.get()):Ll(e.get(),t.every(n=>n.finished)),_Ce=e=>({value:e,noop:!0,finished:!0,cancelled:!1}),Ll=(e,t,n=!1)=>({value:e,finished:t,cancelled:n}),$y=e=>({value:e,cancelled:!0,finished:!1});function CCe(e,t,n,r){const{callId:i,parentId:o,onRest:s}=t,{asyncTo:a,promise:c}=n;return!o&&e===a&&!t.reset?c:n.promise=(async()=>{n.asyncId=i,n.asyncTo=e;const l=zO(t,(y,v)=>v==="onRest"?void 0:y);let u,d;const f=new Promise((y,v)=>(u=y,d=v)),p=y=>{const v=i<=(n.cancelId||0)&&$y(r)||i!==n.asyncId&&Ll(r,!1);if(v)throw y.result=v,d(y),y},g=(y,v)=>{const w=new lre,S=new ure;return(async()=>
1571{if(au.skipAnimation)throw DC(n),S.result=Ll(r,!1),d(S),S;p(w);const C=Xe.obj(y)?{...y}:{...v,to:y};C.parentId=i,kd(l,(T,x)=>{Xe.und(C[x])&&(C[x]=T)});const E=await r.start(C);return p(w),n.paused&&await new Promise(T=>{n.resumeQueue.add(T)}),E})()};let m;if(au.skipAnimation)return DC(n),Ll(r,!1);try{let y;Xe.arr(e)?y=(async v=>{for(const w of v)await g(w)})(e):y=Promise.resolve(e(g,r.stop.bind(r))),await Promise.all([y.then(u),f]),m=Ll(r.get(),!0,!1)}catch(y){if(y instanceof lre)m=y.result;else if(y instanceof ure)m=y.result;else throw y}finally{i==n.asyncId&&(n.asyncId=o,n.asyncTo=o?a:void 0,n.promise=o?c:void 0)}return Xe.fun(s)&&Xt.batchedUpdates(()=>{s(m,r,r.item)}),m})()}function DC(e,t){p_(e.timeouts,n=>n.cancel()),e.pauseQueue.clear(),e.resumeQueue.clear(),e.asyncId=e.asyncTo=e.promise=void 0,t&&(e.cancelId=t)}var lre=class extends Error{constructor(){super("An async animation has been interrupted. You see this error because you forgot to use `await` or `.catch(...)` on its returned promise.")}},ure=class extends Error{constructor(){super("SkipAnimationSignal")}},C9=e=>e instanceof UV,Lyt=1,UV=class extends uCe{constructor(){super(...arguments),this.id=Lyt++,this._priority=0}get priority(){return this._priority}set priority(e){this._priority!=e&&(this._priority=e,this._onPriorityChange(e))}get(){const e=ju(this);return e&&e.getValue()}to(...e){return au.to(this,e)}interpolate(...e){return gyt(),au.to(this,e)}toJSON(){return this.get()}observerAdded(e){e==1&&this._attach()}observerRemoved(e){e==0&&this._detach()}_attach(){}_detach(){}_onChange(e,t=!1){RC(this,{type:"change",parent:this,value:e,idle:t})}_onPriorityChange(e){this.idle||FO.sort(this),RC(this,{type:"priority",parent:this,priority:e})}},Ev=Symbol.for("SpringPhase"),ECe=1,E9=2,T9=4,Y6=e=>(e[Ev]&ECe)>0,zh=e=>(e[Ev]&E9)>0,Yw=e=>(e[Ev]&T9)>0,dre=(e,t)=>t?e[Ev]|=E9|ECe:e[Ev]&=~E9,fre=(e,t)=>t?e[Ev]|=T9:e[Ev]&=~T9,Fyt=class extends UV{constructor(e,t){if(super(),this.animation=new Dyt,this.defaultProps={},this._state={paused:!1,delayed:!1,pauseQueue:new Set,resumeQueue:new Set,timeouts:new Set},this._pendingCalls=new Set,this._lastCallId=0,this._lastToId=0,this._memoizedDuration=0,!Xe.und(e)||!Xe.und(t)){const n=Xe.obj(e)?{...e}:{...t,from:e};Xe.und(n.default)&&(n.default=!0),this.start(n)}}get idle(){return!(zh(this)||this._state.asyncTo)||Yw(this)}get goal(){return pa(this.animation.to)}get velocity(){const e=ju(this);return e instanceof ZE?e.lastVelocity||0:e.getPayload().map(t=>t.lastVelocity||0)}get hasAnimated(){return Y6(this)}get isAnimating(){return zh(this)}get isPaused(){return Yw(this)}get isDelayed(){return this._state.delayed}advance(e){let t=!0,n=!1;const r=this.animation;let{toValues:i}=r;const{config:o}=r,s=$O(r.to);!s&&Dc(r.to)&&(i=Ks(pa(r.to))),r.values.forEach((l,u)=>{if(l.done)return;const d=l.constructor==NC?1:s?s[u].lastPosition:i[u];let f=r.immediate,p=d;if(!f){if(p=l.lastPosition,o.tension<=0){l.done=!0;return}let g=l.elapsedTime+=e;const m=r.fromValues[u],y=l.v0!=null?l.v0:l.v0=Xe.arr(o.velocity)?o.velocity[u]:o.velocity;let v;const w=o.precision||(m==d?.005:Math.min(1,Math.abs(d-m)*.001));if(Xe.und(o.duration))if(o.decay){const S=o.decay===!0?.998:o.decay,C=Math.exp(-(1-S)*g);p=m+y/(1-S)*(1-C),f=Math.abs(l.lastPosition-p)<=w,v=y*C}else{v=l.lastVelocity==null?y:l.lastVelocity;const S=o.restVelocity||w/10,C=o.clamp?0:o.bounce,E=!Xe.und(C),T=m==d?l.v0>0:m<d;let x,O=!1;const A=1,L=Math.ceil(e/A);for(let U=0;U<L&&(x=Math.abs(v)>S,!(!x&&(f=Math.abs(d-p)<=w,f)));++U){E&&(O=p==d||p>d==T,O&&(v=-v*C,p=d));const I=-o.tension*1e-6*(p-d),F=-o.friction*.001*v,P=(I+F)/o.mass;v=v+P*A,p=p+v*A}}else{let S=1;o.duration>0&&(this._memoizedDuration!==o.duration&&(this._memoizedDuration=o.duration,l.durationProgress>0&&(l.elapsedTime=o.duration*l.durationProgress,g=l.elapsedTime+=e)),S=(o.progress||0)+g/this._memoizedDuration,S=S>1?1:S<0?0:S,l.durationProgress=S),p=m+o.easing(S)*(d-m),v=(p-l.lastPosition)/e,f=S==1}l.lastVelocity=v,Number.isNaN(p)&&(console.warn("Got NaN while animating:",this),f=!0)}
1571s&&!s[u].done&&(f=!1),f?l.done=!0:t=!1,l.setValue(p,o.round)&&(n=!0)});const a=ju(this),c=a.getValue();if(t){const l=pa(r.to);(c!==l||n)&&!o.decay?(a.setValue(l),this._onChange(l)):n&&o.decay&&this._onChange(c),this._stop()}else n&&this._onChange(c)}set(e){return Xt.batchedUpdates(()=>{this._stop(),this._focus(e),this._set(e)}),this}pause(){this._update({pause:!0})}resume(){this._update({pause:!1})}finish(){if(zh(this)){const{to:e,config:t}=this.animation;Xt.batchedUpdates(()=>{this._onStart(),t.decay||this._set(e,!1),this._stop()})}return this}update(e){return(this.queue||(this.queue=[])).push(e),this}start(e,t){let n;return Xe.und(e)?(n=this.queue||[],this.queue=[]):n=[Xe.obj(e)?e:{...t,to:e}],Promise.all(n.map(r=>this._update(r))).then(r=>jV(this,r))}stop(e){const{to:t}=this.animation;return this._focus(this.get()),DC(this._state,e&&this._lastCallId),Xt.batchedUpdates(()=>this._stop(t,e)),this}reset(){this._update({reset:!0})}eventObserved(e){e.type=="change"?this._start():e.type=="priority"&&(this.priority=e.priority+1)}_prepareNode(e){const t=this.key||"";let{to:n,from:r}=e;n=Xe.obj(n)?n[t]:n,(n==null||w9(n))&&(n=void 0),r=Xe.obj(r)?r[t]:r,r==null&&(r=void 0);const i={to:n,from:r};return Y6(this)||(e.reverse&&([n,r]=[r,n]),r=pa(r),Xe.und(r)?ju(this)||this._set(n):this._set(r)),i}_update({...e},t){const{key:n,defaultProps:r}=this;e.default&&Object.assign(r,zO(e,(s,a)=>/^on/.test(a)?vCe(s,n):s)),pre(this,e,"onProps"),Xw(this,"onProps",e,this);const i=this._prepareNode(e);if(Object.isFrozen(this))throw Error("Cannot animate a `SpringValue` object that is frozen. Did you forget to pass your component to `animated(...)` before animating its props?");const o=this._state;return SCe(++this._lastCallId,{key:n,props:e,defaultProps:r,state:o,actions:{pause:()=>{Yw(this)||(fre(this,!0),RS(o.pauseQueue),Xw(this,"onPause",Ll(this,Qw(this,this.animation.to)),this))},resume:()=>{Yw(this)&&(fre(this,!1),zh(this)&&this._resume(),RS(o.resumeQueue),Xw(this,"onResume",Ll(this,Qw(this,this.animation.to)),this))},start:this._merge.bind(this,i)}}).then(s=>{if(e.loop&&s.finished&&!(t&&s.noop)){const a=TCe(e);if(a)return this._update(a,!0)}return s})}_merge(e,t,n){if(t.cancel)return this.stop(!0),n($y(this));const r=!Xe.und(e.to),i=!Xe.und(e.from);if(r||i)if(t.callId>this._lastToId)this._lastToId=t.callId;else return n($y(this));const{key:o,defaultProps:s,animation:a}=this,{to:c,from:l}=a;let{to:u=c,from:d=l}=e;i&&!r&&(!t.default||Xe.und(u))&&(u=d),t.reverse&&([u,d]=[d,u]);const f=!uf(d,l);f&&(a.from=d),d=pa(d);const p=!uf(u,c);p&&this._focus(u);const g=w9(t.to),{config:m}=a,{decay:y,velocity:v}=m;(r||i)&&(m.velocity=0),t.config&&!g&&Myt(m,ma(t.config,o),t.config!==s.config?ma(s.config,o):void 0);let w=ju(this);if(!w||Xe.und(u))return n(Ll(this,!0));const S=Xe.und(t.reset)?i&&!t.default:!Xe.und(d)&&g_(t.reset,o),C=S?d:this.get(),E=MC(u),T=Xe.num(E)||Xe.arr(E)||BO(E),x=!g&&(!T||g_(s.immediate||t.immediate,o));if(p){const U=b9(u);if(U!==w.constructor)if(x)w=this._set(E);else throw Error(`Cannot animate between ${w.constructor.name} and ${U.name}, as the "to" prop suggests`)}const O=w.constructor;let A=Dc(u),L=!1;if(!A){const U=S||!Y6(this)&&f;(p||U)&&(L=uf(MC(C),E),A=!L),(!uf(a.immediate,x)&&!x||!uf(m.decay,y)||!uf(m.velocity,v))&&(A=!0)}if(L&&zh(this)&&(a.changed&&!S?A=!0:A||this._stop(c)),!g&&((A||Dc(c))&&(a.values=w.getPayload(),a.toValues=Dc(u)?null:O==NC?[1]:Ks(E)),a.immediate!=x&&(a.immediate=x,!x&&!S&&this._set(c)),A)){const{onRest:U}=a;qt(Uyt,F=>pre(this,t,F));const I=Ll(this,Qw(this,c));RS(this._pendingCalls,I),this._pendingCalls.add(n),a.changed&&Xt.batchedUpdates(()=>{var F;a.changed=!S,U==null||U(I,this),S?ma(s.onRest,I):(F=a.onStart)==null||F.call(a,I,this)})}S&&this._set(C),g?n(CCe(t.to,t,this._state,this)):A?this._start():zh(this)&&!p?this._pendingCalls.add(n):n(_Ce(C))}_focus(e){const t=this.animation;e!==t.to&&(nre(this)&&this._detach(),t.to=e,nre(this)&&this._attach())}_attach(){let e=0;const{to:t}=this.animation;Dc(t)&&(Wb(t,this),C9(t)&&(e=t.priority+1)),this.priority=e}_detach(){const{to:e}=this.animation;Dc(e)&&PC(e,this)}_set(e,t=!0){const n=pa(e);if(!Xe.und(n)){const r=ju(this);if(!r||!uf(n,r.getValue())){const i=b9(n);!r||r.constructor!=i?DV(this,i.create(n)):r.setValue(n),r&&Xt.batchedUpdates(()=>{this._onChange(n,t)})}}return ju(this)}_onStart(){const e=this.animation;e.changed||(e.changed=!0,Xw(this,"onStart",Ll(this,Qw(this,e.to)),this))}_onChange(e,t){t||(this._onStart(),ma(this.animation.onChange,e,this)),ma(this.defaultProps.onChange,e,this),super._onChange(e,t)}_start(){const e=this.animation;ju(this).reset(pa(e.to)),e.immediate||(e.fromValues=e.values.map(t=>t.lastPosition)),zh(this)||(dre(this,!0),Yw(this)||this._resume())}
1571_resume(){au.skipAnimation?this.finish():FO.start(this)}_stop(e,t){if(zh(this)){dre(this,!1);const n=this.animation;qt(n.values,i=>{i.done=!0}),n.toValues&&(n.onChange=n.onPause=n.onResume=void 0),RC(this,{type:"idle",parent:this});const r=t?$y(this.get()):Ll(this.get(),Qw(this,e??n.to));RS(this._pendingCalls,r),n.changed&&(n.changed=!1,Xw(this,"onRest",r,this))}}};function Qw(e,t){const n=MC(t),r=MC(e.get());return uf(r,n)}function TCe(e,t=e.loop,n=e.to){const r=ma(t);if(r){const i=r!==!0&&LV(r),o=(i||e).reverse,s=!i||i.reset;return LC({...e,loop:t,default:!1,pause:void 0,to:!o||w9(n)?n:void 0,from:s?e.from:void 0,reset:s,...i})}}function LC(e){const{to:t,from:n}=e=LV(e),r=new Set;return Xe.obj(t)&&hre(t,r),Xe.obj(n)&&hre(n,r),e.keys=r.size?Array.from(r):null,e}function jyt(e){const t=LC(e);return Xe.und(t.default)&&(t.default=zO(t)),t}function hre(e,t){kd(e,(n,r)=>n!=null&&t.add(r))}var Uyt=["onStart","onRest","onChange","onPause","onResume"];function pre(e,t,n){e.animation[n]=t[n]!==yCe(t,n)?vCe(t[n],e.key):void 0}function Xw(e,t,...n){var r,i,o,s;(i=(r=e.animation)[t])==null||i.call(r,...n),(s=(o=e.defaultProps)[t])==null||s.call(o,...n)}var Byt=["onStart","onChange","onRest"],$yt=1,kCe=class{constructor(e,t){this.id=$yt++,this.springs={},this.queue=[],this._lastAsyncId=0,this._active=new Set,this._changed=new Set,this._started=!1,this._state={paused:!1,pauseQueue:new Set,resumeQueue:new Set,timeouts:new Set},this._events={onStart:new Map,onChange:new Map,onRest:new Map},this._onFrame=this._onFrame.bind(this),t&&(this._flush=t),e&&this.start({default:!0,...e})}get idle(){return!this._state.asyncTo&&Object.values(this.springs).every(e=>e.idle&&!e.isDelayed&&!e.isPaused)}get item(){return this._item}set item(e){this._item=e}get(){const e={};return this.each((t,n)=>e[n]=t.get()),e}set(e){for(const t in e){const n=e[t];Xe.und(n)||this.springs[t].set(n)}}update(e){return e&&this.queue.push(LC(e)),this}start(e){let{queue:t}=this;return e?t=Ks(e).map(LC):this.queue=[],this._flush?this._flush(this,t):(PCe(this,t),k9(this,t))}stop(e,t){if(e!==!!e&&(t=e),t){const n=this.springs;qt(Ks(t),r=>n[r].stop(!!e))}else DC(this._state,this._lastAsyncId),this.each(n=>n.stop(!!e));return this}pause(e){if(Xe.und(e))this.start({pause:!0});else{const t=this.springs;qt(Ks(e),n=>t[n].pause())}return this}resume(e){if(Xe.und(e))this.start({pause:!1});else{const t=this.springs;qt(Ks(e),n=>t[n].resume())}return this}each(e){kd(this.springs,e)}_onFrame(){const{onStart:e,onChange:t,onRest:n}=this._events,r=this._active.size>0,i=this._changed.size>0;(r&&!this._started||i&&!this._started)&&(this._started=!0,p_(e,([a,c])=>{c.value=this.get(),a(c,this,this._item)}));const o=!r&&this._started,s=i||o&&n.size?this.get():null;i&&t.size&&p_(t,([a,c])=>{c.value=s,a(c,this,this._item)}),o&&(this._started=!1,p_(n,([a,c])=>{c.value=s,a(c,this,this._item)}))}eventObserved(e){if(e.type=="change")this._changed.add(e.parent),e.idle||this._active.add(e.parent);else if(e.type=="idle")this._active.delete(e.parent);else return;Xt.onFrame(this._onFrame)}};function k9(e,t){return Promise.all(t.map(n=>xCe(e,n))).then(n=>jV(e,n))}async function xCe(e,t,n){const{keys:r,to:i,from:o,loop:s,onRest:a,onResolve:c}=t,l=Xe.obj(t.default)&&t.default;s&&(t.loop=!1),i===!1&&(t.to=null),o===!1&&(t.from=null);const u=Xe.arr(i)||Xe.fun(i)?i:void 0;u?(t.to=void 0,t.onRest=void 0,l&&(l.onRest=void 0)):qt(Byt,m=>{const y=t[m];if(Xe.fun(y)){const v=e._events[m];t[m]=({finished:w,cancelled:S})=>{const C=v.get(y);C?(w||(C.finished=!1),S&&(C.cancelled=!0)):v.set(y,{value:null,finished:w||!1,cancelled:S||!1})},l&&(l[m]=t[m])}});const d=e._state;t.pause===!d.paused?(d.paused=t.pause,RS(t.pause?d.pauseQueue:d.resumeQueue)):d.paused&&(t.pause=!0);const f=(r||Object.keys(e.springs)).map(m=>e.springs[m].start(t)),p=t.cancel===!0||yCe(t,"cancel")===!0;(u||p&&d.asyncId)&&f.push(SCe(++e._lastAsyncId,{props:t,state:d,actions:{pause:g9,resume:g9,start(m,y){p?(DC(d,e._lastAsyncId),y($y(e))):(m.onRest=a,y(CCe(u,m,d,e)))}}})),d.paused&&await new Promise(m=>{d.resumeQueue.add(m)});const g=jV(e,await Promise.all(f));if(s&&g.finished&&!(n&&g.noop)){const m=TCe(t,s,i);if(m)return PCe(e,[m]),xCe(e,m,!0)}return c&&Xt.batchedUpdates(()=>c(g,e,e.item)),g}function x9(e,t){const n={...e.springs};return t&&qt(Ks(t),r=>{Xe.und(r.keys)&&(r=LC(r)),Xe.obj(r.to)||(r={...r,to:void 0}),RCe(n,r,i=>ICe(i))}),ACe(e,n),n}function ACe(e,t){kd(t,(n,r)=>{e.springs[r]||(e.springs[r]=n,Wb(n,e))})}function ICe(e,t){const n=new Fyt;return n.key=e,t&&Wb(n,t),n}function RCe(e,t,n){t.keys&&qt(t.keys,r=>{(e[r]||(e[r]=n(r)))._prepareNode(t)})}function PCe(e,t){qt(t,n=>{RCe(e.springs,n,r=>ICe(r,e))})}var e2=({children:e,...t})=>{const n=b.useContext(VR),r=t.pause||!!n.pause,i=t.immediate||!!n.immediate;t=wyt(()=>({pause:r,immediate:i}),[r,i]);const{Provider:o}=VR;return b.createElement(o,{value:t},e)},VR=Hyt(e2,{});e2.Provider=VR.Provider;e2.Consumer=VR.Consumer;function Hyt(e,t){return Object.assign(e,b.createContext(t)),e.Provider._context=e,e.Consumer._context=e,e}var OCe=()=>{const e=[],t=function(r){yyt();const i=[];return qt(e,(o,s)=>{if(Xe.und(r))i.push(o.start());else{const a=n(r,o,s);a&&i.push(o.start(a))}}),i};t.current=e,t.add=function(r){e.includes(r)||e.push(r)},t.delete=function(r){const i=e.indexOf(r);~i&&e.splice(i,1)},t.pause=function(){return qt(e,r=>r.pause(...arguments)),this},t.resume=function(){return qt(e,r=>r.resume(...arguments)),this},t.set=function(r){qt(e,(i,o)=>{const s=Xe.fun(r)?r(o,i):r;s&&i.set(s)})},t.start=function(r){const i=[];return qt(e,(o,s)=>{if(Xe.und(r))i.push(o.start());else{const a=this._getProps(r,o,s);a&&i.push(o.start(a))}}),i},t.stop=function(){return qt(e,r=>r.stop(...arguments)),this},t.update=function(r){return qt(e,(i,o)=>i.update(this._getProps(r,i,o))),this};const n=function(r,i,o){return Xe.fun(r)?r(o,i):r};return t._getProps=n,t};function zyt(e,t,n){const r=Xe.fun(t)&&t;r&&!n&&(n=[]);const i=b.useMemo(()=>r||arguments.length==3?OCe():void 0,[]),o=b.useRef(0),s=NV(),a=b.useMemo(()=>({ctrls:[],queue:[],flush(v,w){const S=x9(v,w);return o.current>0&&!a.queue.length&&!Object.keys(S).some(E=>!v.springs[E])?k9(v,w):new Promise(E=>{ACe(v,S),a.queue.push(()=>
1571{E(k9(v,w))}),s()})}}),[]),c=b.useRef([...a.ctrls]),l=[],u=y9(e)||0;b.useMemo(()=>{qt(c.current.slice(e,u),v=>{S9(v,i),v.stop(!0)}),c.current.length=e,d(u,e)},[e]),b.useMemo(()=>{d(0,Math.min(u,e))},n);function d(v,w){for(let S=v;S<w;S++){const C=c.current[S]||(c.current[S]=new kCe(null,a.flush)),E=r?r(S,C):t[S];E&&(l[S]=jyt(E))}}const f=c.current.map((v,w)=>x9(v,l[w])),p=b.useContext(e2),g=y9(p),m=p!==g&&bCe(p);Eg(()=>{o.current++,a.ctrls=c.current;const{queue:v}=a;v.length&&(a.queue=[],qt(v,w=>w())),qt(c.current,(w,S)=>{i==null||i.add(w),m&&w.start({default:p});const C=l[S];C&&(wCe(w,C.ref),w.ref?w.queue.push(C):w.start(C))})}),MV(()=>()=>{qt(a.ctrls,v=>v.stop(!0))});const y=f.map(v=>({...v}));return i?[y,i]:y}function VO(e,t){const n=Xe.fun(e),[[r],i]=zyt(1,n?e:[e],n?[]:t);return n||arguments.length==2?[r,i]:r}function NCe(e,t,n){const r=Xe.fun(t)&&t,{reset:i,sort:o,trail:s=0,expires:a=!0,exitBeforeEnter:c=!1,onDestroyed:l,ref:u,config:d}=r?r():t,f=b.useMemo(()=>r||arguments.length==3?OCe():void 0,[]),p=Ks(e),g=[],m=b.useRef(null),y=i?null:m.current;Eg(()=>{m.current=g}),MV(()=>(qt(g,P=>{f==null||f.add(P.ctrl),P.ctrl.ref=f}),()=>{qt(m.current,P=>{P.expired&&clearTimeout(P.expirationId),S9(P.ctrl,f),P.ctrl.stop(!0)})}));const v=Wyt(p,r?r():t,y),w=i&&m.current||[];Eg(()=>qt(w,({ctrl:P,item:W,key:ee})=>{S9(P,f),ma(l,W,ee)}));const S=[];if(y&&qt(y,(P,W)=>{P.expired?(clearTimeout(P.expirationId),w.push(P)):(W=S[W]=v.indexOf(P.key),~W&&(g[W]=P))}),qt(p,(P,W)=>
1571{g[W]||(g[W]={key:v[W],item:P,phase:"mount",ctrl:new kCe},g[W].ctrl.item=P)}),S.length){let P=-1;const{leave:W}=r?r():t;qt(S,(ee,Y)=>{const X=y[Y];~ee?(P=g.indexOf(X),g[P]={...X,item:p[ee]}):W&&g.splice(++P,0,X)})}Xe.fun(o)&&g.sort((P,W)=>o(P.item,W.item));let C=-s;const E=NV(),T=zO(t),x=new Map,O=b.useRef(new Map),A=b.useRef(!1);qt(g,(P,W)=>{const ee=P.key,Y=P.phase,X=r?r():t;let Z,G;const Q=ma(X.delay||0,ee);if(Y=="mount")Z=X.enter,G="enter";else{const ge=v.indexOf(ee)<0;if(Y!="leave")if(ge)Z=X.leave,G="leave";else if(Z=X.update)G="update";else return;else if(!ge)Z=X.enter,G="enter";else return}if(Z=ma(Z,P.item,W),Z=Xe.obj(Z)?LV(Z):{to:Z},!Z.config){const ge=d||T.config;Z.config=ma(ge,P.item,W,G)}C+=s;const q={...T,delay:Q+C,ref:u,immediate:X.immediate,reset:!1,...Z};if(G=="enter"&&Xe.und(q.from)){const ge=r?r():t,ae=Xe.und(ge.initial)||y?ge.from:ge.initial;q.from=ma(ae,P.item,W)}const{onResolve:z}=q;q.onResolve=ge=>{ma(z,ge);const ae=m.current,j=ae.find(B=>B.key===ee);if(j&&!(ge.cancelled&&j.phase!="update")&&j.ctrl.idle){const B=ae.every(re=>re.ctrl.idle);if(j.phase=="leave"){const re=ma(a,j.item);if(re!==!1){const oe=re===!0?0:re;if(j.expired=!0,!B&&oe>0){oe<=2147483647&&(j.expirationId=setTimeout(E,oe));return}}}B&&ae.some(re=>re.expired)&&(O.current.delete(j),c&&(A.current=!0),E())}};const ue=x9(P.ctrl,q);G==="leave"&&c?O.current.set(P,{phase:G,springs:ue,payload:q}):x.set(P,{phase:G,springs:ue,payload:q})});const L=b.useContext(e2),U=y9(L),I=L!==U&&bCe(L);Eg(()=>{I&&qt(g,P=>{P.ctrl.start({default:L})})},[L]),qt(x,(P,W)=>{if(O.current.size){const ee=g.findIndex(Y=>Y.key===W.key);g.splice(ee,1)}}),Eg(()=>{qt(O.current.size?O.current:x,({phase:P,payload:W},ee)=>{const{ctrl:Y}=ee;ee.phase=P,f==null||f.add(Y),I&&P=="enter"&&Y.start({default:L}),W&&(wCe(Y,W.ref),(Y.ref||f)&&!A.current?Y.update(W):(Y.start(W),A.current&&(A.current=!1)))})},i?void 0:n);const F=P=>b.createElement(b.Fragment,null,g.map((W,ee)=>{const{springs:Y}=x.get(W)||W.ctrl,X=P({...Y},W.item,W,ee);return X&&X.type?b.createElement(X.type,{...X.props,key:Xe.str(W.key)||Xe.num(W.key)?W.key:W.ctrl.id,ref:X.ref}):X}));return f?[F,f]:F}var Vyt=1;function Wyt(e,{key:t,keys:n=t},r){if(n===null){const i=new Set;return e.map(o=>{const s=r&&r.find(a=>a.item===o&&a.phase!=="leave"&&!i.has(a));return s?(i.add(s),s.key):Vyt++})}return Xe.und(n)?e:Xe.fun(n)?e.map(n):Ks(n)}var MCe=class extends UV{constructor(e,t){super(),this.source=e,this.idle=!0,this._active=new Set,this.calc=AC(...t);const n=this._get(),r=b9(n);DV(this,r.create(n))}advance(e){const t=this._get(),n=this.get();uf(t,n)||(ju(this).setValue(t),this._onChange(t,this.idle)),!this.idle&&mre(this._active)&&Q6(this)}_get(){const e=Xe.arr(this.source)?this.source.map(pa):Ks(pa(this.source));return this.calc(...e)}_start(){this.idle&&!mre(this._active)&&(this.idle=!1,qt($O(this),e=>{e.done=!1}),au.skipAnimation?(Xt.batchedUpdates(()=>this.advance()),Q6(this)):FO.start(this))}_attach(){let e=1;qt(Ks(this.source),t=>{Dc(t)&&Wb(t,this),C9(t)&&(t.idle||this._active.add(t),e=Math.max(e,t.priority+1))}),this.priority=e,this._start()}_detach(){qt(Ks(this.source),e=>{Dc(e)&&PC(e,this)}),this._active.clear(),Q6(this)}eventObserved(e){e.type=="change"?e.idle?this.advance():(this._active.add(e.parent),this._start()):e.type=="idle"?this._active.delete(e.parent):e.type=="priority"&&(this.priority=Ks(this.source).reduce((t,n)=>Math.max(t,(C9(n)?n.priority:0)+1),0))}};function qyt(e){return e.idle!==!1}function mre(e){return!e.size||Array.from(e).every(qyt)}function Q6(e){e.idle||(e.idle=!0,qt($O(e),t=>{t.done=!0}),RC(e,{type:"idle",parent:e}))}var gre=(e,...t)=>new MCe(e,t);au.assign({createStringInterpolator:hCe,to:(e,t)=>new MCe(e,t)});var DCe=/^--/;function Gyt(e,t){return t==null||typeof t=="boolean"||t===""?"":typeof t=="number"&&t!==0&&!DCe.test(e)&&!(v_.hasOwnProperty(e)&&v_[e])?t+"px":(""+t).trim()}var vre={};function Kyt(e,t){if(!e.nodeType||!e.setAttribute)return!1;const n=e.nodeName==="filter"||e.parentNode&&e.parentNode.nodeName==="filter",{className:r,style:i,children:o,scrollTop:s,scrollLeft:a,viewBox:c,...l}=t,u=Object.values(l),d=Object.keys(l).map(f=>n||e.hasAttribute(f)?f:vre[f]||(vre[f]=f.replace(/([A-Z])/g,p=>"-"+p.toLowerCase())));o!==void 0&&(e.textContent=o);for(const f in i)if(i.hasOwnProperty(f)){const p=Gyt(f,i[f]);DCe.test(f)?e.style.setProperty(f,p):e.style[f]=p}
1571d.forEach((f,p)=>{e.setAttribute(f,u[p])}),r!==void 0&&(e.className=r),s!==void 0&&(e.scrollTop=s),a!==void 0&&(e.scrollLeft=a),c!==void 0&&e.setAttribute("viewBox",c)}var v_={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},Yyt=(e,t)=>e+t.charAt(0).toUpperCase()+t.substring(1),Qyt=["Webkit","Ms","Moz","O"];v_=Object.keys(v_).reduce((e,t)=>(Qyt.forEach(n=>e[Yyt(n,t)]=e[t]),e),v_);var Xyt=/^(matrix|translate|scale|rotate|skew)/,Jyt=/^(translate)/,Zyt=/^(rotate|skew)/,X6=(e,t)=>Xe.num(e)&&e!==0?e+t:e,dA=(e,t)=>Xe.arr(e)?e.every(n=>dA(n,t)):Xe.num(e)?e===t:parseFloat(e)===t,e1t=class extends HO{constructor({x:e,y:t,z:n,...r}){const i=[],o=[];(e||t||n)&&(i.push([e||0,t||0,n||0]),o.push(s=>[`translate3d(${s.map(a=>X6(a,"px")).join(",")})`,dA(s,0)])),kd(r,(s,a)=>{if(a==="transform")i.push([s||""]),o.push(c=>[c,c===""]);else if(Xyt.test(a)){if(delete r[a],Xe.und(s))return;const c=Jyt.test(a)?"px":Zyt.test(a)?"deg":"";i.push(Ks(s)),o.push(a==="rotate3d"?([l,u,d,f])=>[`rotate3d(${l},${u},${d},${X6(f,c)})`,dA(f,0)]:l=>[`${a}(${l.map(u=>X6(u,c)).join(",")})`,dA(l,a.startsWith("scale")?1:0)])}}),i.length&&(r.transform=new t1t(i,o)),super(r)}},t1t=class extends uCe{constructor(e,t){super(),this.inputs=e,this.transforms=t,this._value=null}get(){return this._value||(this._value=this._get())}_get(){let e="",t=!0;return qt(this.inputs,(n,r)=>{const i=pa(n[0]),[o,s]=this.transforms[r](Xe.arr(i)?i:n.map(pa));e+=" "+o,t=t&&s}),t?"none":e}observerAdded(e){e==1&&qt(this.inputs,t=>qt(t,n=>Dc(n)&&Wb(n,this)))}observerRemoved(e){e==0&&qt(this.inputs,t=>qt(t,n=>Dc(n)&&PC(n,this)))}eventObserved(e){e.type=="change"&&(this._value=null),RC(this,e)}},n1t=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"];au.assign({batchedUpdates:Am.unstable_batchedUpdates,createStringInterpolator:hCe,colors:Q0t});var r1t=Ayt(n1t,{applyAnimatedValues:Kyt,createAnimatedStyle:e=>new e1t(e),getComponentProps:({scrollTop:e,scrollLeft:t,...n})=>n}),Wc=r1t.animated;function Tv(){return Tv=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Tv.apply(this,arguments)}var i1t={pointerEvents:"none",position:"absolute",zIndex:10,top:0,left:0},yre=function(e,t){return"translate("+e+"px, "+t+"px)"},LCe=b.memo((function(e){var t,n=e.position,r=e.anchor,i=e.children,o=hl(),s=s2(),a=s.animate,c=s.config,l=R2e(),u=l[0],d=l[1],f=b.useRef(!1),p=void 0,g=!1,m=d.width>0&&d.height>0,y=Math.round(n[0]),v=Math.round(n[1]);m&&(r==="top"?(y-=d.width/2,v-=d.height+14):r==="right"?(y+=14,v-=d.height/2):r==="bottom"?(y-=d.width/2,v+=14):r==="left"?
1571(y-=d.width+14,v-=d.height/2):r==="center"&&(y-=d.width/2,v-=d.height/2),p={transform:yre(y,v)},f.current||(g=!0),f.current=[y,v]);var w=VO({to:p,config:c,immediate:!a||g}),S=Tv({},i1t,o.tooltip.wrapper,{transform:(t=w.transform)!=null?t:yre(y,v),opacity:w.transform?1:0});return h.jsx(Wc.div,{ref:u,style:S,children:i})}));LCe.displayName="TooltipWrapper";var o1t=b.memo((function(e){var t=e.size,n=t===void 0?12:t,r=e.color,i=e.style;return h.jsx("span",{style:Tv({display:"block",width:n,height:n,background:r},i===void 0?{}:i)})})),s1t=b.memo((function(e){var t,n=e.id,r=e.value,i=e.format,o=e.enableChip,s=o!==void 0&&o,a=e.color,c=e.renderContent,l=hl(),u=MW(i);if(typeof c=="function")t=c();else{var d=r;u!==void 0&&d!==void 0&&(d=u(d)),t=h.jsxs("div",{style:l.tooltip.basic,children:[s&&h.jsx(o1t,{color:a,style:l.tooltip.chip}),d!==void 0?h.jsxs("span",{children:[n,": ",h.jsx("strong",{children:""+d})]}):n]})}return h.jsx("div",{style:l.tooltip.container,children:t})})),a1t={width:"100%",borderCollapse:"collapse"},c1t=b.memo((function(e){var t,n=e.title,r=e.rows,i=r===void 0?[]:r,o=e.renderContent,s=hl();return i.length?(t=typeof o=="function"?o():h.jsxs("div",{children:[n&&n,h.jsx("table",{style:Tv({},a1t,s.tooltip.table),children:h.jsx("tbody",{children:i.map((function(a,c){return h.jsx("tr",{children:a.map((function(l,u){return h.jsx("td",{style:s.tooltip.tableCell,children:l},u)}))},c)}))})})]}),h.jsx("div",{style:s.tooltip.container,children:t})):null}));c1t.displayName="TableTooltip";var A9=b.memo((function(e){var t=e.x0,n=e.x1,r=e.y0,i=e.y1,o=hl(),s=s2(),a=s.animate,c=s.config,l=b.useMemo((function(){return Tv({},o.crosshair.line,{pointerEvents:"none"})}),[o.crosshair.line]),u=VO({x1:t,x2:n,y1:r,y2:i,config:c,immediate:!a});return h.jsx(Wc.line,Tv({},u,{fill:"none",style:l}))}));A9.displayName="CrosshairLine";var l1t=b.memo((function(e){var t,n,r=e.width,i=e.height,o=e.type,s=e.x,a=e.y;return o==="cross"?(t={x0:s,x1:s,y0:0,y1:i},n={x0:0,x1:r,y0:a,y1:a}):o==="top-left"?(t={x0:s,x1:s,y0:0,y1:a},n={x0:0,x1:s,y0:a,y1:a}):o==="top"?t={x0:s,x1:s,y0:0,y1:a}:o==="top-right"?(t={x0:s,x1:s,y0:0,y1:a},n={x0:s,x1:r,y0:a,y1:a}):o==="right"?n={x0:s,x1:r,y0:a,y1:a}:o==="bottom-right"?(t={x0:s,x1:s,y0:a,y1:i},n={x0:s,x1:r,y0:a,y1:a}):o==="bottom"?t={x0:s,x1:s,y0:a,y1:i}:o==="bottom-left"?(t={x0:s,x1:s,y0:a,y1:i},n={x0:0,x1:s,y0:a,y1:a}):o==="left"?n={x0:0,x1:s,y0:a,y1:a}:o==="x"?t={x0:s,x1:s,y0:0,y1:i}:o==="y"&&(n={x0:0,x1:r,y0:a,y1:a}),h.jsxs(h.Fragment,{children:[t&&h.jsx(A9,{x0:t.x0,x1:t.x1,y0:t.y0,y1:t.y1}),n&&h.jsx(A9,{x0:n.x0,x1:n.x1,y0:n.y0,y1:n.y1})]})}));l1t.displayName="Crosshair";var FCe=b.createContext({showTooltipAt:function(){},showTooltipFromEvent:function(){},hideTooltip:function(){}}),I9={isVisible:!1,position:[null,null],content:null,anchor:null},jCe=b.createContext(I9),u1t=function(e){var t=b.useState(I9),n=t[0],r=t[1],i=b.useCallback((function(a,c,l){var u=c[0],d=c[1];l===void 0&&(l="top"),r({isVisible:!0,position:[u,d],anchor:l,content:a})}),[r]),o=b.useCallback((function(a,c,l){l===void 0&&(l="top");var u=e.current.getBoundingClientRect(),d=e.current.offsetWidth,f=d===u.width?1:d/u.width,p="touches"in c?c.touches[0]:c,g=p.clientX,m=p.clientY,y=(g-u.left)*f,v=(m-u.top)*f;l!=="left"&&l!=="right"||(l=y<u.width/2?"right":"left"),r({isVisible:!0,position:[y,v],anchor:l,content:a})}),[e,r]),s=b.useCallback((function(){r(I9)}),[r]);return{actions:b.useMemo((function(){return{showTooltipAt:i,showTooltipFromEvent:o,hideTooltip:s}}),[i,o,s]),state:n}},UCe=function(){var e=b.useContext(FCe);if(e===void 0)throw new Error("useTooltip must be used within a TooltipProvider");return e},d1t=function(){var e=b.useContext(jCe);if(e===void 0)throw new Error("useTooltipState must be used within a TooltipProvider");return e},f1t=function(e){return e.isVisible},h1t=function(){var e=d1t();return f1t(e)?h.jsx(LCe,{position:e.position,anchor:e.anchor,children:e.content}):null},p1t=function(e){var t=e.container,n=e.children,r=u1t(t),i=r.actions,o=r.state;return h.jsx(FCe.Provider,{value:i,children:h.jsx(jCe.Provider,{value:o,children:n})})};function m1t(){this.__data__=[],this.size=0}var g1t=m1t;function v1t(e,t){return e===t||e!==e&&t!==t}var t2=v1t,y1t=t2;function b1t(e,t){for(var n=e.length;n--;)if(y1t(e[n][0],t))return n;return-1}var WO=b1t,w1t=WO,S1t=Array.prototype,_1t=S1t.splice;function C1t(e){var t=this.__data__,n=w1t(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():_1t.call(t,n,1),--this.size,!0}var E1t=C1t,T1t=WO;function k1t(e){var t=this.__data__,n=T1t(t,e);return n<0?void 0:t[n][1]}var x1t=k1t,A1t=WO;function I1t(e){return A1t(this.__data__,e)>-1}var R1t=I1t,P1t=WO;function O1t(e,t){var n=this.__data__,r=P1t(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}var N1t=O1t,M1t=g1t,D1t=E1t,L1t=x1t,F1t=R1t,j1t=N1t;function qb(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}qb.prototype.clear=M1t;qb.prototype.delete=D1t;qb.prototype.get=L1t;qb.prototype.has=F1t;qb.prototype.set=j1t;var qO=qb,U1t=qO;function B1t(){this.__data__=new U1t,this.size=0}var $1t=B1t;function H1t(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}var z1t=H1t;function V1t(e){return this.__data__.get(e)}var W1t=V1t;function q1t(e){return this.__data__.has(e)}var G1t=q1t,K1t=typeof Tf=="object"&&Tf&&Tf.Object===Object&&Tf,BCe=K1t,Y1t=BCe,Q1t=typeof self=="object"&&self&&self.Object===Object&&self,X1t=Y1t||Q1t||Function("return this")(),Fd=X1t,J1t=Fd,Z1t=J1t.Symbol,Gb
vendor: 13,326 bytes, line 1571
1571=Z1t,bre=Gb,$Ce=Object.prototype,ebt=$Ce.hasOwnProperty,tbt=$Ce.toString,Jw=bre?bre.toStringTag:void 0;function nbt(e){var t=ebt.call(e,Jw),n=e[Jw];try{e[Jw]=void 0;var r=!0}catch{}var i=tbt.call(e);return r&&(t?e[Jw]=n:delete e[Jw]),i}var rbt=nbt,ibt=Object.prototype,obt=ibt.toString;function sbt(e){return obt.call(e)}var abt=sbt,wre=Gb,cbt=rbt,lbt=abt,ubt="[object Null]",dbt="[object Undefined]",Sre=wre?wre.toStringTag:void 0;function fbt(e){return e==null?e===void 0?dbt:ubt:Sre&&Sre in Object(e)?cbt(e):lbt(e)}var Bm=fbt;function hbt(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var jd=hbt,pbt=Bm,mbt=jd,gbt="[object AsyncFunction]",vbt="[object Function]",ybt="[object GeneratorFunction]",bbt="[object Proxy]";function wbt(e){if(!mbt(e))return!1;var t=pbt(e);return t==vbt||t==ybt||t==gbt||t==bbt}var GO=wbt;const Sbt=io(GO);var _bt=Fd,Cbt=_bt["__core-js_shared__"],Ebt=Cbt,J6=Ebt,_re=(function(){var e=/[^.]+$/.exec(J6&&J6.keys&&J6.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""})();function Tbt(e){return!!_re&&_re in e}var kbt=Tbt,xbt=Function.prototype,Abt=xbt.toString;function Ibt(e){if(e!=null){try{return Abt.call(e)}catch{}try{return e+""}catch{}}return""}var HCe=Ibt,Rbt=GO,Pbt=kbt,Obt=jd,Nbt=HCe,Mbt=/[\\^$.*+?()[\]{}|]/g,Dbt=/^\[object .+?Constructor\]$/,Lbt=Function.prototype,Fbt=Object.prototype,jbt=Lbt.toString,Ubt=Fbt.hasOwnProperty,Bbt=RegExp("^"+jbt.call(Ubt).replace(Mbt,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function $bt(e){if(!Obt(e)||Pbt(e))return!1;var t=Rbt(e)?Bbt:Dbt;return t.test(Nbt(e))}var Hbt=$bt;function zbt(e,t){return e==null?void 0:e[t]}var Vbt=zbt,Wbt=Hbt,qbt=Vbt;function Gbt(e,t){var n=qbt(e,t);return Wbt(n)?n:void 0}var Gv=Gbt,Kbt=Gv,Ybt=Fd,Qbt=Kbt(Ybt,"Map"),BV=Qbt,Xbt=Gv,Jbt=Xbt(Object,"create"),KO=Jbt,Cre=KO;function Zbt(){this.__data__=Cre?Cre(null):{},this.size=0}var ewt=Zbt;function twt(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var nwt=twt,rwt=KO,iwt="__lodash_hash_undefined__",owt=Object.prototype,swt=owt.hasOwnProperty;function awt(e){var t=this.__data__;if(rwt){var n=t[e];return n===iwt?void 0:n}return swt.call(t,e)?t[e]:void 0}var cwt=awt,lwt=KO,uwt=Object.prototype,dwt=uwt.hasOwnProperty;function fwt(e){var t=this.__data__;return lwt?t[e]!==void 0:dwt.call(t,e)}var hwt=fwt,pwt=KO,mwt="__lodash_hash_undefined__";function gwt(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=pwt&&t===void 0?mwt:t,this}var vwt=gwt,ywt=ewt,bwt=nwt,wwt=cwt,Swt=hwt,_wt=vwt;function Kb(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Kb.prototype.clear=ywt;Kb.prototype.delete=bwt;Kb.prototype.get=wwt;Kb.prototype.has=Swt;Kb.prototype.set=_wt;var Cwt=Kb,Ere=Cwt,Ewt=qO,Twt=BV;function kwt(){this.size=0,this.__data__={hash:new Ere,map:new(Twt||Ewt),string:new Ere}}var xwt=kwt;function Awt(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}var Iwt=Awt,Rwt=Iwt;function Pwt(e,t){var n=e.__data__;return Rwt(t)?n[typeof t=="string"?"string":"hash"]:n.map}var YO=Pwt,Owt=YO;function Nwt(e){var t=Owt(this,e).delete(e);return this.size-=t?1:0,t}var Mwt=Nwt,Dwt=YO;function Lwt(e){return Dwt(this,e).get(e)}var Fwt=Lwt,jwt=YO;function Uwt(e){return jwt(this,e).has(e)}var Bwt=Uwt,$wt=YO;function Hwt(e,t){var n=$wt(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}var zwt=Hwt,Vwt=xwt,Wwt=Mwt,qwt=Fwt,Gwt=Bwt,Kwt=zwt;function Yb(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Yb.prototype.clear=Vwt;Yb.prototype.delete=Wwt;Yb.prototype.get=qwt;Yb.prototype.has=Gwt;Yb.prototype.set=Kwt;var $V=Yb,Ywt=qO,Qwt=BV,Xwt=$V,Jwt=200;function Zwt(e,t){var n=this.__data__;if(n instanceof Ywt){var r=n.__data__;if(!Qwt||r.length<Jwt-1)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new Xwt(r)}return n.set(e,t),this.size=n.size,this}var eSt=Zwt,tSt=qO,nSt=$1t,rSt=z1t,iSt=W1t,oSt=G1t,sSt=eSt;function Qb(e){var t=this.__data__=new tSt(e);this.size=t.size}Qb.prototype.clear=nSt;Qb.prototype.delete=rSt;Qb.prototype.get=iSt;Qb.prototype.has=oSt;Qb.prototype.set=sSt;var QO=Qb,aSt=Gv,cSt=(function(){try{var e=aSt(Object,"defineProperty");return e({},"",{}),e}catch{}})(),zCe=cSt,Tre=zCe;function lSt(e,t,n){t=="__proto__"&&Tre?Tre(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}var HV=lSt,uSt=HV,dSt=t2;function fSt(e,t,n){(n!==void 0&&!dSt(e[t],n)||n===void 0&&!(t in e))&&uSt(e,t,n)}var VCe=fSt;function hSt(e){return function(t,n,r){for(var i=-1,o=Object(t),s=r(t),a=s.length;a--;){var c=s[e?a:++i];if(n(o[c],c,o)===!1)break}return t}}var pSt=hSt,mSt=pSt,gSt=mSt(),WCe=gSt,WR={exports:{}};WR.exports;(function(e,t){var n=Fd,r=t&&!t.nodeType&&t,i=r&&!0&&e&&!e.nodeType&&e,o=i&&i.exports===r,s=o?n.Buffer:void 0,a=s?s.allocUnsafe:void 0;function c(l,u){if(u)return l.slice();var d=l.length,f=a?a(d):new l.constructor(d);return l.copy(f),f}e.exports=c})(WR,WR.exports);var qCe=WR.exports,vSt=Fd,ySt=vSt.Uint8Array,GCe=ySt,kre=GCe;function bSt(e){var t=new e.constructor(e.byteLength);return new kre(t).set(new kre(e)),t}var zV=bSt,wSt=zV;function SSt(e,t){var n=t?wSt(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}var KCe=SSt;function _St(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}var YCe=_St,CSt=jd,xre=Object.create,ESt=(function(){function e(){}return function(t){if(!CSt(t))return{};if(xre)return xre(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}})(),TSt=ESt;function kSt(e,t){return function(n){return e(t(n))}}var QCe=kSt,xSt=QCe,ASt=xSt(Object.getPrototypeOf,Object),VV=ASt,ISt=Object.prototype;function RSt(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||ISt;return e===n}var WV=RSt,PSt=TSt,OSt=VV,NSt=WV;function MSt(e){return typeof e.constructor=="function"&&!NSt(e)?PSt(OSt(e)):{}}var XCe=MSt;function DSt(e){return e!=null&&typeof e=="object"}var gu=DSt,LSt=Bm,FSt=gu,jSt="[object Arguments]";function USt(e){return FSt(e)&&LSt(e)==jSt}var BSt=USt,Are=BSt,$St=gu,JCe=Object.prototype,HSt=JCe.hasOwnProperty,zSt=JCe.propertyIsEnumerable,VSt=Are((function(){return arguments})())?Are:function(e){return $St(e)&&HSt.call(e,"callee")&&!zSt.call(e,"callee")},XO=VSt,WSt=Array.isArray,ja=WSt,qSt=9007199254740991;function GSt(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=qSt}var qV=GSt,KSt=GO,YSt=qV;function QSt(e){return e!=null&&YSt(e.length)&&!KSt(e)}var Xb=QSt,XSt=Xb,JSt=gu;function ZSt(e){return JSt(e)&&XSt(e)}var ZCe=ZSt,qR={exports:{}};function e_t(){return!1}var t_t=e_t;qR.exports;(function(e,t){var n=Fd,r=t_t,i=t&&!t.nodeType&&t,o=i&&!0&&e&&!e.nodeType&&e,s=o&&o.exports===i,a=s?n.Buffer:void 0,c=a?a.isBuffer:void 0,l=c||r;e.exports=l})(qR,qR.exports);var JO=qR.exports,n_t=Bm,r_t=VV,i_t=gu,o_t="[object Object]",s_t=Function.prototype,a_t=Object.prototype,eEe=s_t.toString,c_t=a_t.hasOwnProperty,l_t=eEe.call(Object);function u_t(e){if(!i_t(e)||n_t(e)!=o_t)return!1;var t=r_t(e);if(t===null)return!0;var n=c_t.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&eEe.call(n)==l_t}var GV=u_t;const tEe=io(GV);var d_t=Bm,f_t=qV,h_t=gu,p_t="[object Arguments]",m_t="[object Array]",g_t="[object Boolean]",v_t="[object Date]",y_t="[object Error]",b_t="[object Function]",w_t="[object Map]",S_t="[object Number]",__t="[object Object]",C_t="[object RegExp]",E_t="[object Set]",T_t="[object String]",k_t="[object WeakMap]",x_t="[object ArrayBuffer]",A_t="[object DataView]",I_t="[object Float32Array]",R_t="[object Float64Array]",P_t="[object Int8Array]",O_t="[object Int16Array]",N_t="[object Int32Array]",M_t="[object Uint8Array]",D_t="[object Uint8ClampedArray]",L_t="[object Uint16Array]",F_t="[object Uint32Array]",jr={};jr[I_t]=jr[R_t]=jr[P_t]=jr[O_t]=jr[N_t]=jr[M_t]=jr[D_t]=jr[L_t]=jr[F_t]=!0;jr[p_t]=jr[m_t]=jr[x_t]=jr[g_t]=jr[A_t]=jr[v_t]=jr[y_t]=jr[b_t]=jr[w_t]=jr[S_t]=jr[__t]=jr[C_t]=jr[E_t]=jr[T_t]=jr[k_t]=!1;function j_t(e){return h_t(e)&&f_t(e.length)&&!!jr[d_t(e)]}var U_t=j_t;function B_t(e){return function(t){return e(t)}}var n2=B_t,GR={exports:{}};GR.exports;(function(e,t){var n=BCe,r=t&&!t.nodeType&&t,i=r&&!0&&e&&!e.nodeType&&e,o=i&&i.exports===r,s=o&&n.process,a=(function(){try{var c=i&&i.require&&i.require("util").types;return c||s&&s.binding&&s.binding("util")}catch{}})();e.exports=a})(GR,GR.exports);var ZO=GR.exports,$_t=U_t,H_t=n2,Ire=ZO,Rre=Ire&&Ire.isTypedArray,z_t=Rre?H_t(Rre):$_t,KV=z_t;function V_t(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}var nEe=V_t,W_t=HV,q_t=t2,G_t=Object.prototype,K_t=G_t.hasOwnProperty;function Y_t(e,t,n){var r=e[t];(!(K_t.call(e,t)&&q_t(r,n))||n===void 0&&!(t in e))&&W_t(e,t,n)}var YV=Y_t,Q_t=YV,X_t=HV;function J_t(e,t,n,r){var i=!n;n||(n={});for(var o=-1,s=t.length;++o<s;){var a=t[o],c=r?r(n[a],e[a],a,n,e):void 0;c===void 0&&(c=e[a]),i?X_t(n,a,c):Q_t(n,a,c)}return n}var Jb=J_t;function Z_t(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}var eCt=Z_t,tCt=9007199254740991,nCt=/^(?:0|[1-9]\d*)$/;function rCt(e,t){var n=typeof e;return t=t??tCt,!!t&&(n=="number"||n!="symbol"&&nCt.test(e))&&e>-1&&e%1==0&&e<t}var eN=rCt,iCt=eCt,oCt=XO,sCt=ja,aCt=JO,cCt=eN,lCt=KV,uCt=Object.prototype,dCt=uCt.hasOwnProperty;function fCt(e,t){var n=sCt(e),r=!n&&oCt(e),i=!n&&!r&&aCt(e),o=!n&&!r&&!i&&lCt(e),s=n||r||i||o,a=s?iCt(e.length,String):[],c=a.length;for(var l in e)(t||dCt.call(e,l))&&!(s&&(l=="length"||i&&(l=="offset"||l=="parent")||o&&(l=="buffer"||l=="byteLength"||l=="byteOffset")||cCt(l,c)))&&a.push(l);return a}var rEe=fCt;function hCt(e){var t=[];if(e!=null)for(var n in Object(e))t.push(n);return t}var pCt=hCt,mCt=jd,gCt=WV,vCt=pCt,yCt=Object.prototype,bCt=yCt.hasOwnProperty;function wCt(e){if(!mCt(e))return vCt(e);var t=gCt(e),n=[];for(var r in e)r=="constructor"&&(t||!bCt.call(e,r))||n.push(r);return n}var SCt=wCt,_Ct=rEe,CCt=SCt,ECt=Xb;function TCt(e){return ECt(e)?_Ct(e,!0):CCt(e)}var r2=TCt,kCt=Jb,xCt=r2;function ACt(e){return kCt(e,xCt(e))}var ICt=ACt,Pre=VCe,RCt=qCe,PCt=KCe,OCt=YCe,NCt=XCe,Ore=XO,Nre=ja,MCt=ZCe,DCt=JO,LCt=GO,FCt=jd,jCt=GV,UCt=KV,Mre=nEe,BCt=ICt;function $Ct(e,t,n,r,i,o,s){var a=Mre(e,n),c=Mre(t,n),l=s.get(c);if(l){Pre(e,n,l);return}var u=o?o(a,c,n+"",e,t,s):void 0,d=u===void 0;if(d){var f=Nre(c),p=!f&&DCt(c),g=!f&&!p&&UCt(c);u=c,f||p||g?Nre(a)?u=a:MCt(a)?u=OCt(a):p?(d=!1,u=RCt(c,!0)):g?(d=!1,u=PCt(c,!0)):u=[]:jCt(c)||Ore(c)?(u=a,Ore(a)?u=BCt(a):(!FCt(a)||LCt(a))&&(u=NCt(c))):d=!1}d&&(s.set(c,u),i(u,c,r,o,s),s.delete(c)),Pre(e,n,u)}var HCt=$Ct,zCt=QO,VCt=VCe,WCt=WCe,qCt=HCt,GCt=jd,KCt=r2,YCt=nEe;function iEe(e,t,n,r,i){e!==t&&WCt(t,function(o,s){if(i||(i=new zCt),GCt(o))qCt(e,t,s,n,iEe,r,i);else{var a=r?r(YCt(e,s),o,s+"",e,t,i):void 0;a===void 0&&(a=o),VCt(e,s,a)}},KCt)}var QCt=iEe;function XCt(e){return e}var tN=XCt;function JCt(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}var ZCt=JCt,eEt=ZCt,Dre=Math.max;function tEt(e,t,n){return t=Dre(t===void 0?e.length-1:t,0),function(){for(var r=arguments,i=-1,o=Dre(r.length-t,0),s=Array(o);++i<o;)s[i]=r[t+i];i=-1;for(var a=Array(t+1);++i<t;)a[i]=r[i];return a[t]=n(s),eEt(e,this,a)}}var oEe=tEt;function nEt(e){return function(){return e}}var rEt=nEt,iEt=rEt,Lre=zCe,oEt=tN,sEt=Lre?function(e,t){return Lre(e,"toString",{configurable:!0,enumerable:!1,value:iEt(t),writable:!0})}:oEt,aEt=sEt,cEt=800,lEt=16,uEt=Date.now;function dEt(e){var t=0,n=0;return function(){var r=uEt(),i=lEt-(r-n);if(n=r,i>0){if(++t>=cEt)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var fEt=dEt,hEt=aEt,pEt=fEt,mEt=pEt(hEt),sEe=mEt,gEt=tN,vEt=oEe,yEt=sEe;function bEt(e,t){return yEt(vEt(e,t,gEt),e+"")}var QV=bEt,wEt=t2,SEt=Xb,_Et=eN,CEt=jd;function EEt(e,t,n){if(!CEt(n))return!1;var r=typeof t;return(r=="number"?SEt(n)&&_Et(t,n.length):r=="string"&&t in n)?wEt(n[t],e):!1}var aEe=EEt,TEt=QV,kEt=aEe;function xEt(e){return TEt(function(t,n){var r=-1,i=n.length,o=i>1?n[i-1]:void 0,s=i>2?n[2]:void 0;for(o=e.length>3&&typeof o=="function"?(i--,o):void 0,s&&kEt(n[0],n[1],s)&&(o=i<3?void 0:o,i=1),t=Object(t);++r<i;){var a=n[r];a&&e(t,a,r,o)}return t})}var AEt=xEt,IEt=QCt,REt=AEt,PEt=REt(function(e,t,n){IEt(e,t,n)}),OEt=PEt;const NEt=io(OEt);var MEt=Bm,DEt=gu,LEt="[object Symbol]";function FEt(e){return typeof e=="symbol"||DEt(e)&&MEt(e)==LEt}var nN=FEt,jEt=ja,UEt=nN,BEt=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,$Et=/^\w*$/;function HEt(e,t){if(jEt(e))return!1;var n=typeof e;return n=="number"||n=="symbol"||n=="boolean"||e==null||UEt(e)?!0:$Et.test(e)||!BEt.test(e)||t!=null&&e in Object(t)}var XV=HEt,cEe=$V,zEt="Expected a function";function JV(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(zEt);var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var s=e.apply(this,r);return n.cache=o.set(i,s)||o,s};return n.cache=new(JV.Cache||cEe),n}JV.Cache=cEe;var VEt=JV,WEt=VEt,qEt=500;function GEt(e){var t=WEt(e,function(r){return n.size===qEt&&n.clear(),r}),n=t.cache;return t}var KEt=GEt,YEt=KEt,QEt=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,XEt=/\\(\\)?/g,JEt=YEt(function(e){var t=[];
vendor: 6,081 bytes, line 1571
1571return e.charCodeAt(0)===46&&t.push(""),e.replace(QEt,function(n,r,i,o){t.push(i?o.replace(XEt,"$1"):r||n)}),t}),ZEt=JEt;function e2t(e,t){for(var n=-1,r=e==null?0:e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i}var rN=e2t,Fre=Gb,t2t=rN,n2t=ja,r2t=nN,jre=Fre?Fre.prototype:void 0,Ure=jre?jre.toString:void 0;function lEe(e){if(typeof e=="string")return e;if(n2t(e))return t2t(e,lEe)+"";if(r2t(e))return Ure?Ure.call(e):"";var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}var i2t=lEe,o2t=i2t;function s2t(e){return e==null?"":o2t(e)}var a2t=s2t,c2t=ja,l2t=XV,u2t=ZEt,d2t=a2t;function f2t(e,t){return c2t(e)?e:l2t(e,t)?[e]:u2t(d2t(e))}var Zb=f2t,h2t=nN;function p2t(e){if(typeof e=="string"||h2t(e))return e;var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}var ew=p2t,m2t=Zb,g2t=ew;function v2t(e,t){t=m2t(t,e);for(var n=0,r=t.length;e!=null&&n<r;)e=e[g2t(t[n++])];return n&&n==r?e:void 0}var i2=v2t,y2t=i2;function b2t(e,t,n){var r=e==null?void 0:y2t(e,t);return r===void 0?n:r}var uEe=b2t;const V1=io(uEe);var w2t=YV,S2t=Zb,_2t=eN,Bre=jd,C2t=ew;function E2t(e,t,n,r){if(!Bre(e))return e;t=S2t(t,e);for(var i=-1,o=t.length,s=o-1,a=e;a!=null&&++i<o;){var c=C2t(t[i]),l=n;if(c==="__proto__"||c==="constructor"||c==="prototype")return e;if(i!=s){var u=a[c];l=r?r(u,c,a):void 0,l===void 0&&(l=Bre(u)?u:_2t(t[i+1])?[]:{})}w2t(a,c,l),a=a[c]}return e}var dEe=E2t,T2t=dEe;function k2t(e,t,n){return e==null?e:T2t(e,t,n)}var x2t=k2t;const A2t=io(x2t);function iN(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function ZV(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function tw(){}var kv=.7,W1=1/kv,Hy="\\s*([+-]?\\d+)\\s*",FC="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",fd="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",I2t=/^#([0-9a-f]{3,8})$/,R2t=new RegExp(`^rgb\\(${Hy},${Hy},${Hy}\\)$`),P2t=new RegExp(`^rgb\\(${fd},${fd},${fd}\\)$`),O2t=new RegExp(`^rgba\\(${Hy},${Hy},${Hy},${FC}\\)$`),N2t=new RegExp(`^rgba\\(${fd},${fd},${fd},${FC}\\)$`),M2t=new RegExp(`^hsl\\(${FC},${fd},${fd}\\)$`),D2t=new RegExp(`^hsla\\(${FC},${fd},${fd},${FC}\\)$`),$re={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};iN(tw,jC,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:Hre,formatHex:Hre,formatHex8:L2t,formatHsl:F2t,formatRgb:zre,toString:zre});function Hre(){return this.rgb().formatHex()}function L2t(){return this.rgb().formatHex8()}function F2t(){return hEe(this).formatHsl()}function zre(){return this.rgb().formatRgb()}function jC(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=I2t.exec(e))?(n=t[1].length,t=parseInt(t[1],16),n===6?Vre(t):n===3?new Ss(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):n===8?uk(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):n===4?uk(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=R2t.exec(e))?new Ss(t[1],t[2],t[3],1):(t=P2t.exec(e))?new Ss(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=O2t.exec(e))?uk(t[1],t[2],t[3],t[4]):(t=N2t.exec(e))?uk(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=M2t.exec(e))?Gre(t[1],t[2]/100,t[3]/100,1):(t=D2t.exec(e))?Gre(t[1],t[2]/100,t[3]/100,t[4]):$re.hasOwnProperty(e)?Vre($re[e]):e==="transparent"?new Ss(NaN,NaN,NaN,0):null}function Vre(e){return new Ss(e>>16&255,e>>8&255,e&255,1)}function uk(e,t,n,r){return r<=0&&(e=t=n=NaN),new Ss(e,t,n,r)}function fEe(e){return e instanceof tw||(e=jC(e)),e?(e=e.rgb(),new Ss(e.r,e.g,e.b,e.opacity)):new Ss}
1571function q1(e,t,n,r){return arguments.length===1?fEe(e):new Ss(e,t,n,r??1)}function Ss(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}iN(Ss,q1,ZV(tw,{brighter(e){return e=e==null?W1:Math.pow(W1,e),new Ss(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?kv:Math.pow(kv,e),new Ss(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Ss(Qg(this.r),Qg(this.g),Qg(this.b),KR(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:Wre,formatHex:Wre,formatHex8:j2t,formatRgb:qre,toString:qre}));function Wre(){return`#${Tg(this.r)}${Tg(this.g)}${Tg(this.b)}`}function j2t(){return`#${Tg(this.r)}${Tg(this.g)}${Tg(this.b)}${Tg((isNaN(this.opacity)?1:this.opacity)*255)}`}function qre(){const e=KR(this.opacity);return`${e===1?"rgb(":"rgba("}${Qg(this.r)}, ${Qg(this.g)}, ${Qg(this.b)}${e===1?")":`, ${e})`}`}function KR(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Qg(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Tg(e){return e=Qg(e),(e<16?"0":"")+e.toString(16)}function Gre(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new $l(e,t,n,r)}function hEe(e){if(e instanceof $l)return new $l(e.h,e.s,e.l,e.opacity);if(e instanceof tw||(e=jC(e)),!e)return new $l;if(e instanceof $l)return e;e=e.rgb();var t=e.r/255,n=e.g/255,r=e.b/255,i=Math.min(t,n,r),o=Math.max(t,n,r),s=NaN,a=o-i,c=(o+i)/2;return a?(t===o?s=(n-r)/a+(n<r)*6:n===o?s=(r-t)/a+2:s=(t-n)/a+4,a/=c<.5?o+i:2-o-i,s*=60):a=c>0&&c<1?0:s,new $l(s,a,c,e.opacity)}function U2t(e,t,n,r){return arguments.length===1?hEe(e):new $l(e,t,n,r??1)}function $l(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}iN($l,U2t,ZV(tw,{brighter(e){return e=e==null?W1:Math.pow(W1,e),new $l(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?kv:Math.pow(kv,e),new $l(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,i=2*n-r;return new Ss(Z6(e>=240?e-240:e+120,i,r),Z6(e,i,r),Z6(e<120?e+240:e-120,i,r),this.opacity)},clamp(){return new $l(Kre(this.h),dk(this.s),dk(this.l),KR(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=KR(this.opacity);return`${e===1?"hsl(":"hsla("}${Kre(this.h)}, ${dk(this.s)*100}%, ${dk(this.l)*100}%${e===1?")":`, ${e})`}`}}));function Kre(e){return e=(e||0)%360,e<0?e+360:e}function dk(e){return Math.max(0,Math.min(1,e||0))}function Z6(e,t,n){return(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)*255}const B2t=Math.PI/180,$2t=180/Math.PI;var pEe=-.14861,eW=1.78277,tW=-.29227,oN=-.90649,UC=1.97294,Yre=UC*oN,Qre=UC*eW,Xre=eW*tW-oN*pEe;function H2t(e){if(e instanceof Xg)return new Xg(e.h,e.s,e.l,e.opacity);e instanceof Ss||(e=fEe(e));var t=e.r/255,n=e.g/255,r=e.b/255,i=(Xre*r+Yre*t-Qre*n)/(Xre+Yre-Qre),o=r-i,s=(UC*(n-i)-tW*o)/oN,a=Math.sqrt(s*s+o*o)/(UC*i*(1-i)),c=a?Math.atan2(s,o)*$2t-120:NaN;return new Xg(c<0?c+360:c,a,i,e.opacity)}function xd(e,t,n,r){return arguments.length===1?H2t(e):new Xg(e,t,n,r??1)}function Xg(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}iN(Xg,xd,ZV(tw,{brighter(e){return e=e==null?W1:Math.pow(W1,e),new Xg(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?kv:Math.pow(kv,e),new Xg(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=isNaN(this.h)?0:(this.h+120)*B2t,t=+this.l,n=isNaN(this.s)?0:this.s*t*(1-t),r=Math.cos(e),i=Math.sin(e);return new Ss(255*(t+n*(pEe*r+eW*i)),255*(t+n*(tW*r+oN*i)),255*(t+n*(UC*r)),this.opacity)}}));function z2t(e,t,n,r,i){var o=e*e,s=o*e;return((1-3*e+3*o-s)*t+(4-6*o+3*s)*n+(1+3*e+3*o-3*s)*r+s*i)/6}function V2t(e){var t=e.length-1;return function(n){var r=n<=0?n=0:n>=1?(n=1,t-1):Math.floor(n*t),i=e[r],o=e[r+1],s=r>0?e[r-1]:2*i-o,a=r<t-1?e[r+2]:2*o-i;return z2t((n-r/t)*t,s,i,o,a)}}const sN=e=>()=>e;function mEe(e,t){return function(n){return e+n*t}}function W2t(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(r){return Math.pow(e+r*t,n)}}function q2t(e,t){var n=t-e;return n?mEe(e,n>180||n<-180?n-360*Math.round(n/360):n):sN(isNaN(e)?t:e)}function G2t(e){return(e=+e)==1?zy:function(t,n){return n-t?W2t(t,n,e):sN(isNaN(t)?n:t)}}function zy(e,t){var n=t-e;return n?mEe(e,n):sN(isNaN(e)?t:e)}const Jre=(function e(t){var n=G2t(t);function r(i,o){var s=n((i=q1(i)).r,(o=q1(o)).r),a=n(i.g,o.g),c=n(i.b,o.b),l=zy(i.opacity,o.opacity);return function(u){return i.r=s(u),i.g=a(u),i.b=c(u),i.opacity=l(u),i+""}}return r.gamma=e,r})(1);function K2t(e){return function(t){var n=t.length,r=new Array(n),i=new Array(n),o=new Array(n),s,a;for(s=0;s<n;++s)a=q1(t[s]),r[s]=a.r||0,i[s]=a.g||0,o[s]=a.b||0;return r=e(r),i=e(i),o=e(o),a.opacity=1,function(c){return a.r=r(c),a.g=i(c),a.b=o(c),a+""}}}var Y2t=K2t(V2t);function Q2t(e,t){t||(t=[]);var n=e?Math.min(t.length,e.length):0,r=t.slice(),i;return function(o){for(i=0;i<n;++i)r[i]=e[i]*(1-o)+t[i]*o;return r}}function X2t(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function J2t(e,t){var n=t?t.length:0,r=e?Math.min(n,e.length):0,i=new Array(r),o=new Array(n),s;for(s=0;s<r;++s)i[s]=nW(e[s],t[s]);for(;s<n;++s)o[s]=t[s];return function(a){for(s=0;s<r;++s)o[s]=i[s](a);return o}}function Z2t(e,t){var n=new Date;return e=+e,t=+t,function(r){return n.setTime(e*(1-r)+t*r),n}}function YR(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}function eTt(e,t){var n={},r={},i;(e===null||typeof e!="object")&&(e={}),(t===null||typeof t!="object")&&(t={});for(i in t)i in e?n[i]=nW(e[i],t[i]):r[i]=t[i];return function(o){for(i in n)r[i]=n[i](o);return r}}var R9=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,eD=new RegExp(R9.source,"g");function tTt(e){return function(){return e}}function nTt(e){return function(t){return e(t)+""}}function rTt(e,t){var n=R9.lastIndex=eD.lastIndex=0,r,i,o,s=-1,a=[],c=[];for(e=e+"",t=t+"";(r=R9.exec(e))&&(i=eD.exec(t));)(o=i.index)>n&&(o=t.slice(n,o),a[s]?a[s]+=o:a[++s]=o),(r=r[0])===(i=i[0])?a[s]?a[s]+=i:a[++s]=i:(a[++s]=null,c.push({i:s,x:YR(r,i)})),n=eD.lastIndex;return n<t.length&&(o=t.slice(n),a[s]?a[s]+=o:a[++s]=o),a.length<2?c[0]?nTt(c[0].x):tTt(t):(t=c.length,function(l){for(var u=0,d;u<t;++u)a[(d=c[u]).i]=d.x(l);return a.join("")})}function nW(e,t){var n=typeof t,r;return t==null||n==="boolean"?sN(t):(n==="number"?YR:n==="string"?(r=jC(t))?(t=r,Jre):rTt:t instanceof jC?Jre:t instanceof Date?Z2t:X2t(t)?Q2t:Array.isArray(t)?J2t:typeof t.valueOf!="function"&&typeof t.toString!="function"||isNaN(t)?eTt:YR)(e,t)}function iTt(e,t){return e=+e,t=+t,function(n){return Math.round(e*(1-n)+t*n)}}function gEe(e){return(function t(n){n=+n;function r(i,o){var s=e((i=xd(i)).h,(o=xd(o)).h),a=zy(i.s,o.s),c=zy(i.l,o.l),l=zy(i.opacity,o.opacity);return function(u){return i.h=s(u),i.s=a(u),i.l=c(Math.pow(u,n)),i.opacity=l(u),i+""}}return r.gamma=t,r})(1)}gEe(q2t);var rW=gEe(zy),oTt=Bm,sTt=ja,aTt=gu,cTt="[object String]";function lTt(e){return typeof e=="string"||!sTt(e)&&aTt(e)&&oTt(e)==cTt}var uTt=lTt;const dTt=io(uTt);function fTt(e){var t=e==null?0:e.length;return t?e[t-1]:void 0}var vEe=fTt;const Tt=io(vEe);function fA(e,t){return e==null||t==null?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function hTt(e,t){return e==null||t==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function iW(e){let t,n,r;e.length!==2?(t=fA,n=(a,c)=>fA(e(a),c),r=(a,c)=>e(a)-c):(t=e===fA||e===hTt?e:pTt,n=e,r=e);function i(a,c,l=0,u=a.length){if(l<u){if(t(c,c)!==0)return u;do{const d=l+u>>>1;n(a[d],c)<0?l=d+1:u=d}while(l<u)}return l}function o(a,c,l=0,u=a.length){if(l<u){if(t(c,c)!==0)return u;do{const d=l+u>>>1;n(a[d],c)<=0?l=d+1:u=d}while(l<u)}return l}function s(a,c,l=0,u=a.length){const d=i(a,c,l,u-1);return d>l&&r(a[d-1],c)>-r(a[d],c)?d-1:d}return{left:i,center:s,right:o}}function pTt(){return 0}function mTt(e){return e===null?NaN:+e}const gTt=iW(fA),vTt=gTt.right;iW(mTt).center;class Zre extends Map{constructor(t,n=wTt){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:n}}),t!=null)for(const[r,i]of t)this.set(r,i)}get(t){return super.get(eie(this,t))}has(t){return super.has(eie(this,t))}set(t,n){return super.set(yTt(this,t),n)}delete(t){return super.delete(bTt(this,t))}}function eie({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):n}function yTt({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):(e.set(r,n),n)}function bTt({_intern:e,_key:t},n){const r=t(n);return e.has(r)&&(n=e.get(r),e.delete(r)),n}function wTt(e){return e!==null&&typeof e=="object"?e.valueOf():e}const STt=Math.sqrt(50),_Tt=Math.sqrt(10),CTt=Math.sqrt(2);
vendor: 4,468 bytes, line 1571
1571function QR(e,t,n){const r=(t-e)/Math.max(0,n),i=Math.floor(Math.log10(r)),o=r/Math.pow(10,i),s=o>=STt?10:o>=_Tt?5:o>=CTt?2:1;let a,c,l;return i<0?(l=Math.pow(10,-i)/s,a=Math.round(e*l),c=Math.round(t*l),a/l<e&&++a,c/l>t&&--c,l=-l):(l=Math.pow(10,i)*s,a=Math.round(e/l),c=Math.round(t/l),a*l<e&&++a,c*l>t&&--c),c<a&&.5<=n&&n<2?QR(e,t,n*2):[a,c,l]}function P9(e,t,n){if(t=+t,e=+e,n=+n,!(n>0))return[];if(e===t)return[e];const r=t<e,[i,o,s]=r?QR(t,e,n):QR(e,t,n);if(!(o>=i))return[];const a=o-i+1,c=new Array(a);if(r)if(s<0)for(let l=0;l<a;++l)c[l]=(o-l)/-s;else for(let l=0;l<a;++l)c[l]=(o-l)*s;else if(s<0)for(let l=0;l<a;++l)c[l]=(i+l)/-s;else for(let l=0;l<a;++l)c[l]=(i+l)*s;return c}function O9(e,t,n){return t=+t,e=+e,n=+n,QR(e,t,n)[2]}function N9(e,t,n){t=+t,e=+e,n=+n;const r=t<e,i=r?O9(t,e,n):O9(e,t,n);return(r?-1:1)*(i<0?1/-i:i)}function ETt(e,t,n){e=+e,t=+t,n=(i=arguments.length)<2?(t=e,e=0,1):i<3?1:+n;for(var r=-1,i=Math.max(0,Math.ceil((t-e)/n))|0,o=new Array(i);++r<i;)o[r]=e+r*n;return o}function Kv(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e);break}return this}const tie=Symbol("implicit");function kg(){var e=new Zre,t=[],n=[],r=tie;function i(o){let s=e.get(o);if(s===void 0){if(r!==tie)return r;e.set(o,s=t.push(o)-1)}return n[s%n.length]}return i.domain=function(o){if(!arguments.length)return t.slice();t=[],e=new Zre;for(const s of o)e.has(s)||e.set(s,t.push(s)-1);return i},i.range=function(o){return arguments.length?(n=Array.from(o),i):n.slice()},i.unknown=function(o){return arguments.length?(r=o,i):r},i.copy=function(){return kg(t,n).unknown(r)},Kv.apply(i,arguments),i}function oW(){var e=kg().unknown(void 0),t=e.domain,n=e.range,r=0,i=1,o,s,a=!1,c=0,l=0,u=.5;delete e.unknown;function d(){var f=t().length,p=i<r,g=p?i:r,m=p?r:i;o=(m-g)/Math.max(1,f-c+l*2),a&&(o=Math.floor(o)),g+=(m-g-o*(f-c))*u,s=o*(1-c),a&&(g=Math.round(g),s=Math.round(s));var y=ETt(f).map(function(v){return g+o*v});return n(p?y.reverse():y)}return e.domain=function(f){return arguments.length?(t(f),d()):t()},e.range=function(f){return arguments.length?([r,i]=f,r=+r,i=+i,d()):[r,i]},e.rangeRound=function(f){return[r,i]=f,r=+r,i=+i,a=!0,d()},e.bandwidth=function(){return s},e.step=function(){return o},e.round=function(f){return arguments.length?(a=!!f,d()):a},e.padding=function(f){return arguments.length?(c=Math.min(1,l=+f),d()):c},e.paddingInner=function(f){return arguments.length?(c=Math.min(1,f),d()):c},e.paddingOuter=function(f){return arguments.length?(l=+f,d()):l},e.align=function(f){return arguments.length?(u=Math.max(0,Math.min(1,f)),d()):u},e.copy=function(){return oW(t(),[r,i]).round(a).paddingInner(c).paddingOuter(l).align(u)},Kv.apply(d(),arguments)}function yEe(e){var t=e.copy;return e.padding=e.paddingOuter,delete e.paddingInner,delete e.paddingOuter,e.copy=function(){return yEe(t())},e}function TTt(){return yEe(oW.apply(null,arguments).paddingInner(1))}function kTt(e){return function(){return e}}function xTt(e){return+e}var nie=[0,1];function fy(e){return e}function M9(e,t){return(t-=e=+e)?function(n){return(n-e)/t}:kTt(isNaN(t)?NaN:.5)}function ATt(e,t){var n;return e>t&&(n=e,e=t,t=n),function(r){return Math.max(e,Math.min(t,r))}}function ITt(e,t,n){var r=e[0],i=e[1],o=t[0],s=t[1];return i<r?(r=M9(i,r),o=n(s,o)):(r=M9(r,i),o=n(o,s)),function(a){return o(r(a))}}function RTt(e,t,n){var r=Math.min(e.length,t.length)-1,i=new Array(r),o=new Array(r),s=-1;for(e[r]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++s<r;)i[s]=M9(e[s],e[s+1]),o[s]=n(t[s],t[s+1]);return function(a){var c=vTt(e,a,1,r)-1;return o[c](i[c](a))}}function aN(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function sW(){var e=nie,t=nie,n=nW,r,i,o,s=fy,a,c,l;function u(){var f=Math.min(e.length,t.length);return s!==fy&&(s=ATt(e[0],e[f-1])),a=f>2?RTt:ITt,c=l=null,d}function d(f){return f==null||isNaN(f=+f)?o:(c||(c=a(e.map(r),t,n)))(r(s(f)))}return d.invert=function(f){return s(i((l||(l=a(t,e.map(r),YR)))(f)))},d.domain=function(f){return arguments.length?(e=Array.from(f,xTt),u()):e.slice()},d.range=function(f){return arguments.length?(t=Array.from(f),u()):t.slice()},d.rangeRound=function(f){return t=Array.from(f),n=iTt,u()},d.clamp=function(f){return arguments.length?(s=f?!0:fy,u()):s!==fy},d.interpolate=function(f){return arguments.length?(n=f,u()):n},d.unknown=function(f){return arguments.length?(o=f,d):o}
vendor: 4,685 bytes, line 1571
1571,function(f,p){return r=f,i=p,u()}}function bEe(){return sW()(fy,fy)}function PTt(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function XR(e,t){if(!isFinite(e)||e===0)return null;var n=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"),r=e.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+e.slice(n+1)]}function G1(e){return e=XR(Math.abs(e)),e?e[1]:NaN}function OTt(e,t){return function(n,r){for(var i=n.length,o=[],s=0,a=e[0],c=0;i>0&&a>0&&(c+a+1>r&&(a=Math.max(1,r-c)),o.push(n.substring(i-=a,i+a)),!((c+=a+1)>r));)a=e[s=(s+1)%e.length];return o.reverse().join(t)}}function NTt(e){return function(t){return t.replace(/[0-9]/g,function(n){return e[+n]})}}var MTt=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function BC(e){if(!(t=MTt.exec(e)))throw new Error("invalid format: "+e);var t;return new aW({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}BC.prototype=aW.prototype;function aW(e){this.fill=e.fill===void 0?" ":e.fill+"",this.align=e.align===void 0?">":e.align+"",this.sign=e.sign===void 0?"-":e.sign+"",this.symbol=e.symbol===void 0?"":e.symbol+"",this.zero=!!e.zero,this.width=e.width===void 0?void 0:+e.width,this.comma=!!e.comma,this.precision=e.precision===void 0?void 0:+e.precision,this.trim=!!e.trim,this.type=e.type===void 0?"":e.type+""}aW.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function DTt(e){e:for(var t=e.length,n=1,r=-1,i;n<t;++n)switch(e[n]){case".":r=i=n;break;case"0":r===0&&(r=n),i=n;break;default:if(!+e[n])break e;r>0&&(r=0);break}return r>0?e.slice(0,r)+e.slice(i+1):e}var JR;function LTt(e,t){var n=XR(e,t);if(!n)return JR=void 0,e.toPrecision(t);var r=n[0],i=n[1],o=i-(JR=Math.max(-8,Math.min(8,Math.floor(i/3)))*3)+1,s=r.length;return o===s?r:o>s?r+new Array(o-s+1).join("0"):o>0?r.slice(0,o)+"."+r.slice(o):"0."+new Array(1-o).join("0")+XR(e,Math.max(0,t+o-1))[0]}function rie(e,t){var n=XR(e,t);if(!n)return e+"";var r=n[0],i=n[1];return i<0?"0."+new Array(-i).join("0")+r:r.length>i+1?r.slice(0,i+1)+"."+r.slice(i+1):r+new Array(i-r.length+2).join("0")}const iie={"%":(e,t)=>(e*100).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:PTt,e:(e,t)=>e.toExponential(t),f:(e,t)=>e.toFixed(t),g:(e,t)=>e.toPrecision(t),o:e=>Math.round(e).toString(8),p:(e,t)=>rie(e*100,t),r:rie,s:LTt,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function oie(e){return e}var sie=Array.prototype.map,aie=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function FTt(e){var t=e.grouping===void 0||e.thousands===void 0?oie:OTt(sie.call(e.grouping,Number),e.thousands+""),n=e.currency===void 0?"":e.currency[0]+"",r=e.currency===void 0?"":e.currency[1]+"",i=e.decimal===void 0?".":e.decimal+"",o=e.numerals===void 0?oie:NTt(sie.call(e.numerals,String)),s=e.percent===void 0?"%":e.percent+"",a=e.minus===void 0?"−":e.minus+"",c=e.nan===void 0?"NaN":e.nan+"";function l(d,f){d=BC(d);var p=d.fill,g=d.align,m=d.sign,y=d.symbol,v=d.zero,w=d.width,S=d.comma,C=d.precision,E=d.trim,T=d.type;T==="n"?(S=!0,T="g"):iie[T]||(C===void 0&&(C=12),E=!0,T="g"),(v||p==="0"&&g==="=")&&(v=!0,p="0",g="=");var x=(f&&f.prefix!==void 0?f.prefix:"")+(y==="$"?n:y==="#"&&/[boxX]/.test(T)?"0"+T.toLowerCase():""),O=(y==="$"?r:/[%p]/.test(T)?s:"")+(f&&f.suffix!==void 0?f.suffix:""),A=iie[T],L=/[defgprs%]/.test(T);C=C===void 0?6:/[gprs]/.test(T)?Math.max(1,Math.min(21,C)):Math.max(0,Math.min(20,C));function U(I){var F=x,P=O,W,ee,Y;if(T==="c")P=A(I)+P,I="";else{I=+I;var X=I<0||1/I<0;if(I=isNaN(I)?c:A(Math.abs(I),C),E&&(I=DTt(I)),X&&+I==0&&m!=="+"&&(X=!1),F=(X?m==="("?m:a:m==="-"||m==="("?"":m)+F,P=(T==="s"&&!isNaN(I)&&JR!==void 0?aie[8+JR/3]:"")+P+(X&&m==="("?")":""),L){for(W=-1,ee=I.length;++W<ee;)if(Y=I.charCodeAt(W),48>Y||Y>57){P=(Y===46?i+I.slice(W+1):I.slice(W))+P,I=I.slice(0,W);break}}}S&&!v&&(I=t(I,1/0));var Z=F.length+I.length+P.length,G=Z<w?new Array(w-Z+1).join(p):"";switch(S&&v&&(I=t(G+I,G.length?w-P.length:1/0),G=""),g){case"<":I=F+I+P+G;break;case"=":I=F+G+I+P;break;case"^":I=G.slice(0,Z=G.length>>1)+F+I+P+G.slice(Z);break;default:I=G+F+I+P;break}return o(I)}return U.toString=function(){return d+""},U}function u(d,f){var p=Math.max(-8,Math.min(8,Math.floor(G1(f)/3)))*3,g=Math.pow(10,-p),m=l((d=BC(d),d.type="f",d),{suffix:aie[8+p/3]});return function(y){return m(g*y)}}return{format:l,formatPrefix:u}}var fk,cW,wEe;
vendor: 4,123 bytes, line 1571
1571jTt({thousands:",",grouping:[3],currency:["$",""]});function jTt(e){return fk=FTt(e),cW=fk.format,wEe=fk.formatPrefix,fk}function UTt(e){return Math.max(0,-G1(Math.abs(e)))}function BTt(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(G1(t)/3)))*3-G1(Math.abs(e)))}function $Tt(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,G1(t)-G1(e))+1}function HTt(e,t,n,r){var i=N9(e,t,n),o;switch(r=BC(r??",f"),r.type){case"s":{var s=Math.max(Math.abs(e),Math.abs(t));return r.precision==null&&!isNaN(o=BTt(i,s))&&(r.precision=o),wEe(r,s)}case"":case"e":case"g":case"p":case"r":{r.precision==null&&!isNaN(o=$Tt(i,Math.max(Math.abs(e),Math.abs(t))))&&(r.precision=o-(r.type==="e"));break}case"f":case"%":{r.precision==null&&!isNaN(o=UTt(i))&&(r.precision=o-(r.type==="%")*2);break}}return cW(r)}function SEe(e){var t=e.domain;return e.ticks=function(n){var r=t();return P9(r[0],r[r.length-1],n??10)},e.tickFormat=function(n,r){var i=t();return HTt(i[0],i[i.length-1],n??10,r)},e.nice=function(n){n==null&&(n=10);var r=t(),i=0,o=r.length-1,s=r[i],a=r[o],c,l,u=10;for(a<s&&(l=s,s=a,a=l,l=i,i=o,o=l);u-- >0;){if(l=O9(s,a,n),l===c)return r[i]=s,r[o]=a,t(r);if(l>0)s=Math.floor(s/l)*l,a=Math.ceil(a/l)*l;else if(l<0)s=Math.ceil(s*l)/l,a=Math.floor(a*l)/l;else break;c=l}return e},e}function _Ee(){var e=bEe();return e.copy=function(){return aN(e,_Ee())},Kv.apply(e,arguments),SEe(e)}function CEe(e,t){e=e.slice();var n=0,r=e.length-1,i=e[n],o=e[r],s;return o<i&&(s=n,n=r,r=s,s=i,i=o,o=s),e[n]=t.floor(i),e[r]=t.ceil(o),e}function cie(e){return Math.log(e)}function lie(e){return Math.exp(e)}function zTt(e){return-Math.log(-e)}function VTt(e){return-Math.exp(-e)}function WTt(e){return isFinite(e)?+("1e"+e):e<0?0:e}function qTt(e){return e===10?WTt:e===Math.E?Math.exp:t=>Math.pow(e,t)}function GTt(e){return e===Math.E?Math.log:e===10&&Math.log10||e===2&&Math.log2||(e=Math.log(e),t=>Math.log(t)/e)}function uie(e){return(t,n)=>-e(-t,n)}function KTt(e){const t=e(cie,lie),n=t.domain;let r=10,i,o;function s(){return i=GTt(r),o=qTt(r),n()[0]<0?(i=uie(i),o=uie(o),e(zTt,VTt)):e(cie,lie),t}return t.base=function(a){return arguments.length?(r=+a,s()):r},t.domain=function(a){return arguments.length?(n(a),s()):n()},t.ticks=a=>{const c=n();let l=c[0],u=c[c.length-1];const d=u<l;d&&([l,u]=[u,l]);let f=i(l),p=i(u),g,m;const y=a==null?10:+a;let v=[];if(!(r%1)&&p-f<y){if(f=Math.floor(f),p=Math.ceil(p),l>0){for(;f<=p;++f)for(g=1;g<r;++g)if(m=f<0?g/o(-f):g*o(f),!(m<l)){if(m>u)break;v.push(m)}}else for(;f<=p;++f)for(g=r-1;g>=1;--g)if(m=f>0?g/o(-f):g*o(f),!(m<l)){if(m>u)break;v.push(m)}v.length*2<y&&(v=P9(l,u,y))}else v=P9(f,p,Math.min(p-f,y)).map(o);return d?v.reverse():v},t.tickFormat=(a,c)=>{if(a==null&&(a=10),c==null&&(c=r===10?"s":","),typeof c!="function"&&(!(r%1)&&(c=BC(c)).precision==null&&(c.trim=!0),c=cW(c)),a===1/0)return c;const l=Math.max(1,r*a/t.ticks().length);return u=>{let d=u/o(Math.round(i(u)));return d*r<r-.5&&(d*=r),d<=l?c(u):""}},t.nice=()=>n(CEe(n(),{floor:a=>o(Math.floor(i(a))),ceil:a=>o(Math.ceil(i(a)))})),t}function EEe(){const e=KTt(sW()).domain([1,10]);return e.copy=()=>aN(e,EEe()).base(e.base()),Kv.apply(e,arguments),e}function die(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function fie(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function YTt(e){var t=1,n=e(die(t),fie(t));return n.constant=function(r){return arguments.length?e(die(t=+r),fie(t)):t},SEe(n)}function TEe(){var e=YTt(sW());return e.copy=function(){return aN(e,TEe()).constant(e.constant())},Kv.apply(e,arguments)}const tD=new Date,nD=new Date;function ko(e,t,n,r){function i(o){return e(o=arguments.length===0?new Date:new Date(+o)),o}return i.floor=o=>(e(o=new Date(+o)),o),i.ceil=o=>(e(o=new Date(o-1)),t(o,1),e(o),o),i.round=o=>{const s=i(o),a=i.ceil(o);return o-s<a-o?s:a},i.offset=(o,s)=>(t(o=new Date(+o),s==null?1:Math.floor(s)),o),i.range=(o,s,a)=>{const c=[];if(o=i.ceil(o),a=a==null?1:Math.floor(a),!(o<s)||!(a>0))return c;let l;do c.push(l=new Date(+o)),t(o,a),e(o);while(l<o&&o<s);return c},i.filter=o=>ko(s=>{if(s>=s)for(;e(s),!o(s);)s.setTime(s-1)},(s,a)=>
vendor: 4,752 bytes, line 1571
1571{if(s>=s)if(a<0)for(;++a<=0;)for(;t(s,-1),!o(s););else for(;--a>=0;)for(;t(s,1),!o(s););}),n&&(i.count=(o,s)=>(tD.setTime(+o),nD.setTime(+s),e(tD),e(nD),Math.floor(n(tD,nD))),i.every=o=>(o=Math.floor(o),!isFinite(o)||!(o>0)?null:o>1?i.filter(r?s=>r(s)%o===0:s=>i.count(0,s)%o===0):i)),i}const ZR=ko(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);ZR.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?ko(t=>{t.setTime(Math.floor(t/e)*e)},(t,n)=>{t.setTime(+t+n*e)},(t,n)=>(n-t)/e):ZR);ZR.range;const Of=1e3,Hc=Of*60,Nf=Hc*60,mh=Nf*24,lW=mh*7,hie=mh*30,rD=mh*365,xg=ko(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*Of)},(e,t)=>(t-e)/Of,e=>e.getUTCSeconds());xg.range;const uW=ko(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*Of)},(e,t)=>{e.setTime(+e+t*Hc)},(e,t)=>(t-e)/Hc,e=>e.getMinutes());uW.range;const dW=ko(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*Hc)},(e,t)=>(t-e)/Hc,e=>e.getUTCMinutes());dW.range;const fW=ko(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*Of-e.getMinutes()*Hc)},(e,t)=>{e.setTime(+e+t*Nf)},(e,t)=>(t-e)/Nf,e=>e.getHours());fW.range;const hW=ko(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*Nf)},(e,t)=>(t-e)/Nf,e=>e.getUTCHours());hW.range;const pW=ko(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*Hc)/mh,e=>e.getDate()-1);pW.range;const kEe=ko(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/mh,e=>e.getUTCDate()-1);kEe.range;const xEe=ko(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/mh,e=>Math.floor(e/mh));xEe.range;function Yv(e){return ko(t=>{t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},(t,n)=>{t.setDate(t.getDate()+n*7)},(t,n)=>(n-t-(n.getTimezoneOffset()-t.getTimezoneOffset())*Hc)/lW)}const mW=Yv(0),QTt=Yv(1),XTt=Yv(2),JTt=Yv(3),ZTt=Yv(4),ekt=Yv(5),tkt=Yv(6);mW.range;QTt.range;XTt.range;JTt.range;ZTt.range;ekt.range;tkt.range;function Qv(e){return ko(t=>{t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},(t,n)=>{t.setUTCDate(t.getUTCDate()+n*7)},(t,n)=>(n-t)/lW)}const gW=Qv(0),nkt=Qv(1),rkt=Qv(2),ikt=Qv(3),okt=Qv(4),skt=Qv(5),akt=Qv(6);gW.range;nkt.range;rkt.range;ikt.range;okt.range;skt.range;akt.range;const vW=ko(e=>{e.setDate(1),e.setHours(0,0,0,0)},(e,t)=>{e.setMonth(e.getMonth()+t)},(e,t)=>t.getMonth()-e.getMonth()+(t.getFullYear()-e.getFullYear())*12,e=>e.getMonth());vW.range;const yW=ko(e=>{e.setUTCDate(1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCMonth(e.getUTCMonth()+t)},(e,t)=>t.getUTCMonth()-e.getUTCMonth()+(t.getUTCFullYear()-e.getUTCFullYear())*12,e=>e.getUTCMonth());yW.range;const cN=ko(e=>{e.setMonth(0,1),e.setHours(0,0,0,0)},(e,t)=>{e.setFullYear(e.getFullYear()+t)},(e,t)=>t.getFullYear()-e.getFullYear(),e=>e.getFullYear());cN.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:ko(t=>{t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},(t,n)=>{t.setFullYear(t.getFullYear()+n*e)});cN.range;const lN=ko(e=>{e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCFullYear(e.getUTCFullYear()+t)},(e,t)=>t.getUTCFullYear()-e.getUTCFullYear(),e=>e.getUTCFullYear());lN.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:ko(t=>{t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,n)=>{t.setUTCFullYear(t.getUTCFullYear()+n*e)});lN.range;function AEe(e,t,n,r,i,o){const s=[[xg,1,Of],[xg,5,5*Of],[xg,15,15*Of],[xg,30,30*Of],[o,1,Hc],[o,5,5*Hc],[o,15,15*Hc],[o,30,30*Hc],[i,1,Nf],[i,3,3*Nf],[i,6,6*Nf],[i,12,12*Nf],[r,1,mh],[r,2,2*mh],[n,1,lW],[t,1,hie],[t,3,3*hie],[e,1,rD]];function a(l,u,d){const f=u<l;f&&([l,u]=[u,l]);const p=d&&typeof d.range=="function"?d:c(l,u,d),g=p?p.range(l,+u+1):[];return f?g.reverse():g}function c(l,u,d){const f=Math.abs(u-l)/d,p=iW(([,,y])=>y).right(s,f);if(p===s.length)return e.every(N9(l/rD,u/rD,d));if(p===0)return ZR.every(Math.max(N9(l,u,d),1));const[g,m]=s[f/s[p-1][2]<s[p][2]/f?p-1:p];return g.every(m)}return[a,c]}const[ckt,lkt]=AEe(lN,yW,gW,xEe,hW,dW),[ukt,dkt]=AEe(cN,vW,mW,pW,fW,uW);var iD=new Date,oD=new Date;function ro(e,t,n,r){function i(o){return e(o=arguments.length===0?new Date:new Date(+o)),o}return i.floor=function(o){return e(o=new Date(+o)),o},i.ceil=function(o){return e(o=new Date(o-1)),t(o,1),e(o),o},i.round=function(o){var s=i(o),a=i.ceil(o);return o-s<a-o?s:a},i.offset=function(o,s){return t(o=new Date(+o),s==null?1:Math.floor(s)),o},i.range=function(o,s,a){var c=[],l;if(o=i.ceil(o),a=a==null?1:Math.floor(a),!(o<s)||!(a>0))return c;do c.push(l=new Date(+o)),t(o,a),e(o);while(l<o&&o<s);return c},i.filter=function(o){return ro(function(s){if(s>=s)for(;e(s),!o(s);)s.setTime(s-1)},function(s,a){if(s>=s)if(a<0)for(;++a<=0;)for(;
vendor: 4,489 bytes, line 1571
1571t(s,-1),!o(s););else for(;--a>=0;)for(;t(s,1),!o(s););})},n&&(i.count=function(o,s){return iD.setTime(+o),oD.setTime(+s),e(iD),e(oD),Math.floor(n(iD,oD))},i.every=function(o){return o=Math.floor(o),!isFinite(o)||!(o>0)?null:o>1?i.filter(r?function(s){return r(s)%o===0}:function(s){return i.count(0,s)%o===0}):i}),i}var $C=ro(function(){},function(e,t){e.setTime(+e+t)},function(e,t){return t-e});$C.every=function(e){return e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?ro(function(t){t.setTime(Math.floor(t/e)*e)},function(t,n){t.setTime(+t+n*e)},function(t,n){return(n-t)/e}):$C};$C.range;var e3=1e3,xv=6e4,t3=36e5,IEe=864e5,REe=6048e5,D9=ro(function(e){e.setTime(e-e.getMilliseconds())},function(e,t){e.setTime(+e+t*e3)},function(e,t){return(t-e)/e3},function(e){return e.getUTCSeconds()});D9.range;var PEe=ro(function(e){e.setTime(e-e.getMilliseconds()-e.getSeconds()*e3)},function(e,t){e.setTime(+e+t*xv)},function(e,t){return(t-e)/xv},function(e){return e.getMinutes()});PEe.range;var OEe=ro(function(e){e.setTime(e-e.getMilliseconds()-e.getSeconds()*e3-e.getMinutes()*xv)},function(e,t){e.setTime(+e+t*t3)},function(e,t){return(t-e)/t3},function(e){return e.getHours()});OEe.range;var bW=ro(function(e){e.setHours(0,0,0,0)},function(e,t){e.setDate(e.getDate()+t)},function(e,t){return(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*xv)/IEe},function(e){return e.getDate()-1});bW.range;function Xv(e){return ro(function(t){t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},function(t,n){t.setDate(t.getDate()+n*7)},function(t,n){return(n-t-(n.getTimezoneOffset()-t.getTimezoneOffset())*xv)/REe})}var n3=Xv(0),HC=Xv(1),NEe=Xv(2),MEe=Xv(3),Av=Xv(4),DEe=Xv(5),LEe=Xv(6);n3.range;HC.range;NEe.range;MEe.range;Av.range;DEe.range;LEe.range;var FEe=ro(function(e){e.setDate(1),e.setHours(0,0,0,0)},function(e,t){e.setMonth(e.getMonth()+t)},function(e,t){return t.getMonth()-e.getMonth()+(t.getFullYear()-e.getFullYear())*12},function(e){return e.getMonth()});FEe.range;var ym=ro(function(e){e.setMonth(0,1),e.setHours(0,0,0,0)},function(e,t){e.setFullYear(e.getFullYear()+t)},function(e,t){return t.getFullYear()-e.getFullYear()},function(e){return e.getFullYear()});ym.every=function(e){return!isFinite(e=Math.floor(e))||!(e>0)?null:ro(function(t){t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},function(t,n){t.setFullYear(t.getFullYear()+n*e)})};ym.range;var jEe=ro(function(e){e.setUTCSeconds(0,0)},function(e,t){e.setTime(+e+t*xv)},function(e,t){return(t-e)/xv},function(e){return e.getUTCMinutes()});jEe.range;var UEe=ro(function(e){e.setUTCMinutes(0,0,0)},function(e,t){e.setTime(+e+t*t3)},function(e,t){return(t-e)/t3},function(e){return e.getUTCHours()});UEe.range;var wW=ro(function(e){e.setUTCHours(0,0,0,0)},function(e,t){e.setUTCDate(e.getUTCDate()+t)},function(e,t){return(t-e)/IEe},function(e){return e.getUTCDate()-1});wW.range;function Jv(e){return ro(function(t){t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},function(t,n){t.setUTCDate(t.getUTCDate()+n*7)},function(t,n){return(n-t)/REe})}var r3=Jv(0),zC=Jv(1),BEe=Jv(2),$Ee=Jv(3),Iv=Jv(4),HEe=Jv(5),zEe=Jv(6);r3.range;zC.range;BEe.range;$Ee.range;Iv.range;HEe.range;zEe.range;var VEe=ro(function(e){e.setUTCDate(1),e.setUTCHours(0,0,0,0)},function(e,t){e.setUTCMonth(e.getUTCMonth()+t)},function(e,t){return t.getUTCMonth()-e.getUTCMonth()+(t.getUTCFullYear()-e.getUTCFullYear())*12},function(e){return e.getUTCMonth()});VEe.range;var bm=ro(function(e){e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},function(e,t){e.setUTCFullYear(e.getUTCFullYear()+t)},function(e,t){return t.getUTCFullYear()-e.getUTCFullYear()},function(e){return e.getUTCFullYear()});bm.every=function(e){return!isFinite(e=Math.floor(e))||!(e>0)?null:ro(function(t){t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},function(t,n){t.setUTCFullYear(t.getUTCFullYear()+n*e)})};bm.range;function sD(e){if(0<=e.y&&e.y<100){var t=new Date(-1,e.m,e.d,e.H,e.M,e.S,e.L);return t.setFullYear(e.y),t}return new Date(e.y,e.m,e.d,e.H,e.M,e.S,e.L)}function aD(e){if(0<=e.y&&e.y<100){var t=new Date(Date.UTC(-1,e.m,e.d,e.H,e.M,e.S,e.L));return t.setUTCFullYear(e.y),t}return new Date(Date.UTC(e.y,e.m,e.d,e.H,e.M,e.S,e.L))}function Zw(e,t,n){return{y:e,m:t,d:n,H:0,M:0,S:0,L:0}}function fkt(e){var t=e.dateTime,n=e.date,r=e.time,i=e.periods,o=e.days,s=e.shortDays,a=e.months,c=e.shortMonths,l=eS(i),u=tS(i),d=eS(o),f=tS(o),p=eS(s),g=tS(s),m=e
vendor: 8,406 bytes, line 1571
1571S(a),y=tS(a),v=eS(c),w=tS(c),S={a:Y,A:X,b:Z,B:G,c:null,d:bie,e:bie,f:Dkt,g:Wkt,G:Gkt,H:Okt,I:Nkt,j:Mkt,L:WEe,m:Lkt,M:Fkt,p:Q,q,Q:_ie,s:Cie,S:jkt,u:Ukt,U:Bkt,V:$kt,w:Hkt,W:zkt,x:null,X:null,y:Vkt,Y:qkt,Z:Kkt,"%":Sie},C={a:z,A:ue,b:ge,B:ae,c:null,d:wie,e:wie,f:Jkt,g:cxt,G:uxt,H:Ykt,I:Qkt,j:Xkt,L:GEe,m:Zkt,M:ext,p:j,q:B,Q:_ie,s:Cie,S:txt,u:nxt,U:rxt,V:ixt,w:oxt,W:sxt,x:null,X:null,y:axt,Y:lxt,Z:dxt,"%":Sie},E={a:L,A:U,b:I,B:F,c:P,d:vie,e:vie,f:Akt,g:gie,G:mie,H:yie,I:yie,j:Ekt,L:xkt,m:Ckt,M:Tkt,p:A,q:_kt,Q:Rkt,s:Pkt,S:kkt,u:vkt,U:ykt,V:bkt,w:gkt,W:wkt,x:W,X:ee,y:gie,Y:mie,Z:Skt,"%":Ikt};S.x=T(n,S),S.X=T(r,S),S.c=T(t,S),C.x=T(n,C),C.X=T(r,C),C.c=T(t,C);function T(re,oe){return function(ne){var J=[],Se=-1,H=0,be=re.length,V,M,N;for(ne instanceof Date||(ne=new Date(+ne));++Se<be;)re.charCodeAt(Se)===37&&(J.push(re.slice(H,Se)),(M=pie[V=re.charAt(++Se)])!=null?V=re.charAt(++Se):M=V==="e"?" ":"0",(N=oe[V])&&(V=N(ne,M)),J.push(V),H=Se+1);return J.push(re.slice(H,Se)),J.join("")}}function x(re,oe){return function(ne){var J=Zw(1900,void 0,1),Se=O(J,re,ne+="",0),H,be;if(Se!=ne.length)return null;if("Q"in J)return new Date(J.Q);if("s"in J)return new Date(J.s*1e3+("L"in J?J.L:0));if(oe&&!("Z"in J)&&(J.Z=0),"p"in J&&(J.H=J.H%12+J.p*12),J.m===void 0&&(J.m="q"in J?J.q:0),"V"in J){if(J.V<1||J.V>53)return null;"w"in J||(J.w=1),"Z"in J?(H=aD(Zw(J.y,0,1)),be=H.getUTCDay(),H=be>4||be===0?zC.ceil(H):zC(H),H=wW.offset(H,(J.V-1)*7),J.y=H.getUTCFullYear(),J.m=H.getUTCMonth(),J.d=H.getUTCDate()+(J.w+6)%7):(H=sD(Zw(J.y,0,1)),be=H.getDay(),H=be>4||be===0?HC.ceil(H):HC(H),H=bW.offset(H,(J.V-1)*7),J.y=H.getFullYear(),J.m=H.getMonth(),J.d=H.getDate()+(J.w+6)%7)}else("W"in J||"U"in J)&&("w"in J||(J.w="u"in J?J.u%7:"W"in J?1:0),be="Z"in J?aD(Zw(J.y,0,1)).getUTCDay():sD(Zw(J.y,0,1)).getDay(),J.m=0,J.d="W"in J?(J.w+6)%7+J.W*7-(be+5)%7:J.w+J.U*7-(be+6)%7);return"Z"in J?(J.H+=J.Z/100|0,J.M+=J.Z%100,aD(J)):sD(J)}}function O(re,oe,ne,J){for(var Se=0,H=oe.length,be=ne.length,V,M;Se<H;){if(J>=be)return-1;if(V=oe.charCodeAt(Se++),V===37){if(V=oe.charAt(Se++),M=E[V in pie?oe.charAt(Se++):V],!M||(J=M(re,ne,J))<0)return-1}else if(V!=ne.charCodeAt(J++))return-1}return J}function A(re,oe,ne){var J=l.exec(oe.slice(ne));return J?(re.p=u.get(J[0].toLowerCase()),ne+J[0].length):-1}function L(re,oe,ne){var J=p.exec(oe.slice(ne));return J?(re.w=g.get(J[0].toLowerCase()),ne+J[0].length):-1}function U(re,oe,ne){var J=d.exec(oe.slice(ne));return J?(re.w=f.get(J[0].toLowerCase()),ne+J[0].length):-1}function I(re,oe,ne){var J=v.exec(oe.slice(ne));return J?(re.m=w.get(J[0].toLowerCase()),ne+J[0].length):-1}function F(re,oe,ne){var J=m.exec(oe.slice(ne));return J?(re.m=y.get(J[0].toLowerCase()),ne+J[0].length):-1}function P(re,oe,ne){return O(re,t,oe,ne)}function W(re,oe,ne){return O(re,n,oe,ne)}function ee(re,oe,ne){return O(re,r,oe,ne)}function Y(re){return s[re.getDay()]}function X(re){return o[re.getDay()]}function Z(re){return c[re.getMonth()]}function G(re){return a[re.getMonth()]}function Q(re){return i[+(re.getHours()>=12)]}function q(re){return 1+~~(re.getMonth()/3)}function z(re){return s[re.getUTCDay()]}function ue(re){return o[re.getUTCDay()]}function ge(re){return c[re.getUTCMonth()]}function ae(re){return a[re.getUTCMonth()]}function j(re){return i[+(re.getUTCHours()>=12)]}function B(re){return 1+~~(re.getUTCMonth()/3)}return{format:function(re){var oe=T(re+="",S);return oe.toString=function(){return re},oe},parse:function(re){var oe=x(re+="",!1);return oe.toString=function(){return re},oe},utcFormat:function(re){var oe=T(re+="",C);return oe.toString=function(){return re},oe},utcParse:function(re){var oe=x(re+="",!0);return oe.toString=function(){return re},oe}}}var pie={"-":"",_:" ",0:"0"},qo=/^\s*\d+/,hkt=/^%/,pkt=/[\\^$*+?|[\]().{}]/g;function jn(e,t,n){var r=e<0?"-":"",i=(r?-e:e)+"",o=i.length;return r+(o<n?new Array(n-o+1).join(t)+i:i)}function mkt(e){return e.replace(pkt,"\\$&")}function eS(e){return new RegExp("^(?:"+e.map(mkt).join("|")+")","i")}function tS(e){return new Map(e.map((t,n)=>[t.toLowerCase(),n]))}function gkt(e,t,n){var r=qo.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function vkt(e,t,n){var r=qo.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function ykt(e,t,n){var r=qo.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function bkt(e,t,n){var r=qo.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function wkt(e,t,n){var r=qo.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function mie(e,t,n){var r=qo.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function gie(e,t,n){var r=qo.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function Skt(e,t,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(n,n+6));return r?(e.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function _kt(e,t,n){var r=qo.exec(t.slice(n,n+1));return r?(e.q=r[0]*3-3,n+r[0].length):-1}function Ckt(e,t,n){var r=qo.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function vie(e,t,n){var r=qo.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function Ekt(e,t,n){var r=qo.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function yie(e,t,n){var r=qo.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function Tkt(e,t,n){var r=qo.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function kkt(e,t,n){var r=qo.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function xkt(e,t,n){var r=qo.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function Akt(e,t,n){var r=qo.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function Ikt(e,t,n){var r=hkt.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function Rkt(e,t,n){var r=qo.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function Pkt(e,t,n){var r=qo.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function bie(e,t){return jn(e.getDate(),t,2)}function Okt(e,t){return jn(e.getHours(),t,2)}function Nkt(e,t){return jn(e.getHours()%12||12,t,2)}function Mkt(e,t){return jn(1+bW.count(ym(e),e),t,3)}function WEe(e,t){return jn(e.getMilliseconds(),t,3)}function Dkt(e,t){return WEe(e,t)+"000"}function Lkt(e,t){return jn(e.getMonth()+1,t,2)}function Fkt(e,t){return jn(e.getMinutes(),t,2)}function jkt(e,t){return jn(e.getSeconds(),t,2)}function Ukt(e){var t=e.getDay();return t===0?7:t}function Bkt(e,t){return jn(n3.count(ym(e)-1,e),t,2)}function qEe(e){var t=e.getDay();return t>=4||t===0?Av(e):Av.ceil(e)}function $kt(e,t){return e=qEe(e),jn(Av.count(ym(e),e)+(ym(e).getDay()===4),t,2)}function Hkt(e){return e.getDay()}function zkt(e,t){return jn(HC.count(ym(e)-1,e),t,2)}function Vkt(e,t){return jn(e.getFullYear()%100,t,2)}function Wkt(e,t){return e=qEe(e),jn(e.getFullYear()%100,t,2)}function qkt(e,t){return jn(e.getFullYear()%1e4,t,4)}function Gkt(e,t){var n=e.getDay();return e=n>=4||n===0?Av(e):Av.ceil(e),jn(e.getFullYear()%1e4,t,4)}function Kkt(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+jn(t/60|0,"0",2)+jn(t%60,"0",2)}function wie(e,t){return jn(e.getUTCDate(),t,2)}function Ykt(e,t){return jn(e.getUTCHours(),t,2)}function Qkt(e,t){return jn(e.getUTCHours()%12||12,t,2)}function Xkt(e,t){return jn(1+wW.count(bm(e),e),t,3)}function GEe(e,t){return jn(e.getUTCMilliseconds(),t,3)}function Jkt(e,t){return GEe(e,t)+"000"}function Zkt(e,t){return jn(e.getUTCMonth()+1,t,2)}function ext(e,t){return jn(e.getUTCMinutes(),t,2)}function txt(e,t){return jn(e.getUTCSeconds(),t,2)}function nxt(e){var t=e.getUTCDay();return t===0?7:t}function rxt(e,t){return jn(r3.count(bm(e)-1,e),t,2)}function KEe(e){var t=e.getUTCDay();return t>=4||t===0?Iv(e):Iv.ceil(e)}function ixt(e,t){return e=KEe(e),jn(Iv.count(bm(e),e)+(bm(e).getUTCDay()===4),t,2)}function oxt(e){return e.getUTCDay()}function sxt(e,t){return jn(zC.count(bm(e)-1,e),t,2)}function axt(e,t){return jn(e.getUTCFullYear()%100,t,2)}function cxt(e,t){return e=KEe(e),jn(e.getUTCFullYear()%100,t,2)}function lxt(e,t){return jn(e.getUTCFullYear()%1e4,t,4)}function uxt(e,t){var n=e.getUTCDay();return e=n>=4||n===0?Iv(e):Iv.ceil(e),jn(e.getUTCFullYear()%1e4,t,4)}function dxt(){return"+0000"}function Sie(){return"%"}function _ie(e){return+e}function Cie(e){return Math.floor(+e/1e3)}var _0,uN,YEe,QEe,XEe;fxt({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Frid
1571ay","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});function fxt(e){return _0=fkt(e),uN=_0.format,YEe=_0.parse,QEe=_0.utcFormat,XEe=_0.utcParse,_0}function hxt(e){return new Date(e)}function pxt(e){return e instanceof Date?+e:+new Date(+e)}function SW(e,t,n,r,i,o,s,a,c,l){var u=bEe(),d=u.invert,f=u.domain,p=l(".%L"),g=l(":%S"),m=l("%I:%M"),y=l("%I %p"),v=l("%a %d"),w=l("%b %d"),S=l("%B"),C=l("%Y");function E(T){return(c(T)<T?p:a(T)<T?g:s(T)<T?m:o(T)<T?y:r(T)<T?i(T)<T?v:w:n(T)<T?S:C)(T)}return u.invert=function(T){return new Date(d(T))},u.domain=function(T){return arguments.length?f(Array.from(T,pxt)):f().map(hxt)},u.ticks=function(T){var x=f();return e(x[0],x[x.length-1],T??10)},u.tickFormat=function(T,x){return x==null?E:l(x)},u.nice=function(T){var x=f();return(!T||typeof T.range!="function")&&(T=t(x[0],x[x.length-1],T??10)),T?f(CEe(x,T)):u},u.copy=function(){return aN(u,SW(e,t,n,r,i,o,s,a,c,l))},u}function mxt(){return Kv.apply(SW(ukt,dkt,cN,vW,mW,pW,fW,uW,xg,uN).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function gxt(){return Kv.apply(SW(ckt,lkt,lN,yW,gW,kEe,hW,dW,xg,QEe).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function cn(e){for(var t=e.length/6|0,n=new Array(t),r=0;r<t;)n[r]="#"+e.slice(r*6,++r*6);return n}const vxt=cn("1f77b4ff7f0e2ca02cd627289467bd8c564be377c27f7f7fbcbd2217becf"),yxt=cn("7fc97fbeaed4fdc086ffff99386cb0f0027fbf5b17666666"),bxt=cn("1b9e77d95f027570b3e7298a66a61ee6ab02a6761d666666"),wxt=cn("a6cee31f78b4b2df8a33a02cfb9a99e31a1cfdbf6fff7f00cab2d66a3d9affff99b15928"),Sxt=cn("fbb4aeb3cde3ccebc5decbe4fed9a6ffffcce5d8bdfddaecf2f2f2"),_xt=cn("b3e2cdfdcdaccbd5e8f4cae4e6f5c9fff2aef1e2cccccccc"),Cxt=cn("e41a1c377eb84daf4a984ea3ff7f00ffff33a65628f781bf999999"),Ext=cn("66c2a5fc8d628da0cbe78ac3a6d854ffd92fe5c494b3b3b3"),JEe=cn("8dd3c7ffffb3bebadafb807280b1d3fdb462b3de69fccde5d9d9d9bc80bdccebc5ffed6f"),Txt=cn("4e79a7f28e2ce1575976b7b259a14fedc949af7aa1ff9da79c755fbab0ab"),vr=e=>Y2t(e[e.length-1]);var dN=new Array(3).concat("d8b365f5f5f55ab4ac","a6611adfc27d80cdc1018571","a6611adfc27df5f5f580cdc1018571","8c510ad8b365f6e8c3c7eae55ab4ac01665e","8c510ad8b365f6e8c3f5f5f5c7eae55ab4ac01665e","8c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e","8c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e","5430058c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e003c30","5430058c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e003c30").map(cn);const kxt=vr(dN);var fN=new Array(3).concat("af8dc3f7f7f77fbf7b","7b3294c2a5cfa6dba0008837","7b3294c2a5cff7f7f7a6dba0008837","762a83af8dc3e7d4e8d9f0d37fbf7b1b7837","762a83af8dc3e7d4e8f7f7f7d9f0d37fbf7b1b7837","762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b7837","762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b7837","40004b762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b783700441b","40004b762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b783700441b").map(cn);const xxt=vr(fN);var hN=new Array(3).concat("e9a3c9f7f7f7a1d76a","d01c8bf1b6dab8e1864dac26","d01c8bf1b6daf7f7f7b8e1864dac26","c51b7de9a3c9fde0efe6f5d0a1d76a4d9221","c51b7de9a3c9fde0eff7f7f7e6f5d0a1d76a4d9221","c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221","c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221","8e0152c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221276419","8e0152c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221276419").map(cn);const Axt=vr(hN);var pN=new Array(3).concat("998ec3f7f7f7f1a340","5e3c99b2abd2fdb863e66101","5e3c99b2abd2f7f7f7fdb863e66101","542788998ec3d8daebfee0b6f1a340b35806","542788998ec3d8daebf7f7f7fee0b6f1a340b35806","5427888073acb2abd2d8daebfee0b6fdb863e08214b35806","5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b35806","2d004b5427888073acb2abd2d8daebfee0b6fdb863e08214b358067f3b08","2d004b5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b358067f3b08").map(cn);const Ixt=vr(pN);var mN=new Array(3).concat("ef8a62f7f7f767a9cf","ca0020f4a58292c5de0571b0","ca0020f4a582f7f7f792c5de0571b0","b2182bef8a62fddbc7d1e5f067a9cf2166ac","b2182bef8a62fddbc7f7f7f7d1e5f067a9cf2166ac","b2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac","b2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac","67001fb2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac053061","67001fb2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac053061").map(cn);const Rxt=vr(mN);var gN=new Array(3).concat("ef8a62ffffff999999","ca0020f4a582bababa404040","ca0020f4a582ffffffbababa404040","b2182bef8a62fddbc7e0e0e09999994d4d4d","b2182bef8a62fddbc7ffffffe0e0e09999994d4d4d","b2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d","b2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d","67001fb2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d1a1a1a","67001fb2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d1a1a1a").map(cn);const Pxt=vr(gN);var vN=new Array(3).concat("fc8d59ffffbf91bfdb","d7191cfdae61abd9e92c7bb6","d7191cfdae61ffffbfabd9e92c7bb6","d73027fc8d59fee090e0f3f891bfdb4575b4","d73027fc8d59fee090ffffbfe0f3f891bfdb4575b4","d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4","d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4","a50026d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4313695","a50026d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4313695").map(cn);const Oxt=vr(vN);var yN=new Array(3).concat("fc8d59ffffbf91cf60","d7191cfdae61a6d96a1a9641","d
15717191cfdae61ffffbfa6d96a1a9641","d73027fc8d59fee08bd9ef8b91cf601a9850","d73027fc8d59fee08bffffbfd9ef8b91cf601a9850","d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850","d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850","a50026d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850006837","a50026d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850006837").map(cn);const Nxt=vr(yN);var bN=new Array(3).concat("fc8d59ffffbf99d594","d7191cfdae61abdda42b83ba","d7191cfdae61ffffbfabdda42b83ba","d53e4ffc8d59fee08be6f59899d5943288bd","d53e4ffc8d59fee08bffffbfe6f59899d5943288bd","d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd","d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd","9e0142d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd5e4fa2","9e0142d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd5e4fa2").map(cn);const Mxt=vr(bN);var wN=new Array(3).concat("e5f5f999d8c92ca25f","edf8fbb2e2e266c2a4238b45","edf8fbb2e2e266c2a42ca25f006d2c","edf8fbccece699d8c966c2a42ca25f006d2c","edf8fbccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45006d2c00441b").map(cn);const Dxt=vr(wN);var SN=new Array(3).concat("e0ecf49ebcda8856a7","edf8fbb3cde38c96c688419d","edf8fbb3cde38c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d810f7c4d004b").map(cn);const Lxt=vr(SN);var _N=new Array(3).concat("e0f3dba8ddb543a2ca","f0f9e8bae4bc7bccc42b8cbe","f0f9e8bae4bc7bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc44eb3d32b8cbe08589e","f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe08589e","f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe0868ac084081").map(cn);const Fxt=vr(_N);var CN=new Array(3).concat("fee8c8fdbb84e34a33","fef0d9fdcc8afc8d59d7301f","fef0d9fdcc8afc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301fb300007f0000").map(cn);const jxt=vr(CN);var EN=new Array(3).concat("ece2f0a6bddb1c9099","f6eff7bdc9e167a9cf02818a","f6eff7bdc9e167a9cf1c9099016c59","f6eff7d0d1e6a6bddb67a9cf1c9099016c59","f6eff7d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016c59014636").map(cn);const Uxt=vr(EN);var TN=new Array(3).concat("ece7f2a6bddb2b8cbe","f1eef6bdc9e174a9cf0570b0","f1eef6bdc9e174a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0045a8d023858").map(cn);const Bxt=vr(TN);var kN=new Array(3).concat("e7e1efc994c7dd1c77","f1eef6d7b5d8df65b0ce1256","f1eef6d7b5d8df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125698004367001f").map(cn);const $xt=vr(kN);var xN=new Array(3).concat("fde0ddfa9fb5c51b8a","feebe2fbb4b9f768a1ae017e","feebe2fbb4b9f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1dd3497ae017e7a0177","fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a0177","fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a017749006a").map(cn);const Hxt=vr(xN);var AN=new Array(3).concat("edf8b17fcdbb2c7fb8","ffffcca1dab441b6c4225ea8","ffffcca1dab441b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea8253494081d58").map(cn);const zxt=vr(AN);var IN=new Array(3).concat("f7fcb9addd8e31a354","ffffccc2e69978c679238443","ffffccc2e69978c67931a354006837","ffffccd9f0a3addd8e78c67931a354006837","ffffccd9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443006837004529").map(cn);const Vxt=vr(IN);var RN=new Array(3).concat("fff7bcfec44fd95f0e","ffffd4fed98efe9929cc4c02","ffffd4fed98efe9929d95f0e993404","ffffd4fee391fec44ffe9929d95f0e993404","ffffd4fee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c02993404662506").map(cn);const Wxt=vr(RN);var PN=new Array(3).concat("ffeda0feb24cf03b20","ffffb2fecc5cfd8d3ce31a1c","ffffb2fecc5cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cbd0026800026").map(cn);const qxt=vr(PN);var ON=new Array(3).concat("deebf79ecae13182bd","eff3ffbdd7e76baed62171b5","eff3ffbdd7e76baed63182bd08519c","eff3ffc6dbef9ec
1571ae16baed63182bd08519c","eff3ffc6dbef9ecae16baed64292c62171b5084594","f7fbffdeebf7c6dbef9ecae16baed64292c62171b5084594","f7fbffdeebf7c6dbef9ecae16baed64292c62171b508519c08306b").map(cn);const Gxt=vr(ON);var NN=new Array(3).concat("e5f5e0a1d99b31a354","edf8e9bae4b374c476238b45","edf8e9bae4b374c47631a354006d2c","edf8e9c7e9c0a1d99b74c47631a354006d2c","edf8e9c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45006d2c00441b").map(cn);const Kxt=vr(NN);var MN=new Array(3).concat("f0f0f0bdbdbd636363","f7f7f7cccccc969696525252","f7f7f7cccccc969696636363252525","f7f7f7d9d9d9bdbdbd969696636363252525","f7f7f7d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525000000").map(cn);const Yxt=vr(MN);var DN=new Array(3).concat("efedf5bcbddc756bb1","f2f0f7cbc9e29e9ac86a51a3","f2f0f7cbc9e29e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a354278f3f007d").map(cn);const Qxt=vr(DN);var LN=new Array(3).concat("fee0d2fc9272de2d26","fee5d9fcae91fb6a4acb181d","fee5d9fcae91fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181da50f1567000d").map(cn);const Xxt=vr(LN);var FN=new Array(3).concat("fee6cefdae6be6550d","feeddefdbe85fd8d3cd94701","feeddefdbe85fd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3cf16913d948018c2d04","fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d948018c2d04","fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d94801a636037f2704").map(cn);const Jxt=vr(FN);function Zxt(e){return e=Math.max(0,Math.min(1,e)),"rgb("+Math.max(0,Math.min(255,Math.round(-4.54-e*(35.34-e*(2381.73-e*(6402.7-e*(7024.72-e*2710.57)))))))+", "+Math.max(0,Math.min(255,Math.round(32.49+e*(170.73+e*(52.82-e*(131.46-e*(176.58-e*67.37)))))))+", "+Math.max(0,Math.min(255,Math.round(81.24+e*(442.36-e*(2482.43-e*(6167.24-e*(6614.94-e*2475.67)))))))+")"}const eAt=rW(xd(300,.5,0),xd(-240,.5,1));var tAt=rW(xd(-100,.75,.35),xd(80,1.5,.8)),nAt=rW(xd(260,.75,.35),xd(80,1.5,.8)),hk=xd();function rAt(e){(e<0||e>1)&&(e-=Math.floor(e));var t=Math.abs(e-.5);return hk.h=360*e-100,hk.s=1.5-1.5*t,hk.l=.8-.9*t,hk+""}var pk=q1(),iAt=Math.PI/3,oAt=Math.PI*2/3;function sAt(e){var t;return e=(.5-e)*Math.PI,pk.r=255*(t=Math.sin(e))*t,pk.g=255*(t=Math.sin(e+iAt))*t,pk.b=255*(t=Math.sin(e+oAt))*t,pk+""}function aAt(e){return e=Math.max(0,Math.min(1,e)),"rgb("+Math.max(0,Math.min(255,Math.round(34.61+e*(1172.33-e*(10793.56-e*(33300.12-e*(38394.49-e*14825.05)))))))+", "+Math.max(0,Math.min(255,Math.round(23.31+e*(557.33+e*(1225.33-e*(3574.96-e*(1073.77+e*707.56)))))))+", "+Math.max(0,Math.min(255,Math.round(27.2+e*(3211.1-e*(15327.97-e*(27814-e*(22569.18-e*6838.66)))))))+")"}function jN(e){var t=e.length;return function(n){return e[Math.max(0,Math.min(t-1,Math.floor(n*t)))]}}const cAt=jN(cn("44015444025645045745055946075a46085c460a5d460b5e470d60470e6147106347116447136548146748166848176948186a481a6c481b6d481c6e481d6f481f70482071482173482374482475482576482677482878482979472a7a472c7a472d7b472e7c472f7d46307e46327e46337f463480453581453781453882443983443a83443b84433d84433e85423f854240864241864142874144874045884046883f47883f48893e49893e4a893e4c8a3d4d8a3d4e8a3c4f8a3c508b3b518b3b528b3a538b3a548c39558c39568c38588c38598c375a8c375b8d365c8d365d8d355e8d355f8d34608d34618d33628d33638d32648e32658e31668e31678e31688e30698e306a8e2f6b8e2f6c8e2e6d8e2e6e8e2e6f8e2d708e2d718e2c718e2c728e2c738e2b748e2b758e2a768e2a778e2a788e29798e297a8e297b8e287c8e287d8e277e8e277f8e27808e26818e26828e26828e25838e25848e25858e24868e24878e23888e23898e238a8d228b8d228c8d228d8d218e8d218f8d21908d21918c20928c20928c20938c1f948c1f958b1f968b1f978b1f988b1f998a1f9a8a1e9b8a1e9c891e9d891f9e891f9f881fa0881fa1881fa1871fa28720a38620a48621a58521a68522a78522a88423a98324aa8325ab8225ac8226ad8127ad8128ae8029af7f2ab07f2cb17e2db27d2eb37c2fb47c31b57b32b67a34b67935b77937b87838b9773aba763bbb753dbc743fbc7340bd7242be7144bf7046c06f48c16e4ac16d4cc26c4ec36b50c46a52c56954c56856c66758c7655ac8645cc8635ec96260ca6063cb5f65cb5e67cc
15715c69cd5b6ccd5a6ece5870cf5773d05675d05477d1537ad1517cd2507fd34e81d34d84d44b86d54989d5488bd6468ed64590d74393d74195d84098d83e9bd93c9dd93ba0da39a2da37a5db36a8db34aadc32addc30b0dd2fb2dd2db5de2bb8de29bade28bddf26c0df25c2df23c5e021c8e020cae11fcde11dd0e11cd2e21bd5e21ad8e219dae319dde318dfe318e2e418e5e419e7e419eae51aece51befe51cf1e51df4e61ef6e620f8e621fbe723fde725"));var lAt=jN(cn("00000401000501010601010802010902020b02020d03030f03031204041405041606051806051a07061c08071e0907200a08220b09240c09260d0a290e0b2b100b2d110c2f120d31130d34140e36150e38160f3b180f3d19103f1a10421c10441d11471e114920114b21114e22115024125325125527125829115a2a115c2c115f2d11612f116331116533106734106936106b38106c390f6e3b0f703d0f713f0f72400f74420f75440f764510774710784910784a10794c117a4e117b4f127b51127c52137c54137d56147d57157e59157e5a167e5c167f5d177f5f187f601880621980641a80651a80671b80681c816a1c816b1d816d1d816e1e81701f81721f817320817521817621817822817922827b23827c23827e24828025828125818326818426818627818827818928818b29818c29818e2a81902a81912b81932b80942c80962c80982d80992d809b2e7f9c2e7f9e2f7fa02f7fa1307ea3307ea5317ea6317da8327daa337dab337cad347cae347bb0357bb2357bb3367ab5367ab73779b83779ba3878bc3978bd3977bf3a77c03a76c23b75c43c75c53c74c73d73c83e73ca3e72cc3f71cd4071cf4070d0416fd2426fd3436ed5446dd6456cd8456cd9466bdb476adc4869de4968df4a68e04c67e24d66e34e65e44f64e55064e75263e85362e95462ea5661eb5760ec5860ed5a5fee5b5eef5d5ef05f5ef1605df2625df2645cf3655cf4675cf4695cf56b5cf66c5cf66e5cf7705cf7725cf8745cf8765cf9785df9795df97b5dfa7d5efa7f5efa815ffb835ffb8560fb8761fc8961fc8a62fc8c63fc8e64fc9065fd9266fd9467fd9668fd9869fd9a6afd9b6bfe9d6cfe9f6dfea16efea36ffea571fea772fea973feaa74feac76feae77feb078feb27afeb47bfeb67cfeb77efeb97ffebb81febd82febf84fec185fec287fec488fec68afec88cfeca8dfecc8ffecd90fecf92fed194fed395fed597fed799fed89afdda9cfddc9efddea0fde0a1fde2a3fde3a5fde5a7fde7a9fde9aafdebacfcecaefceeb0fcf0b2fcf2b4fcf4b6fcf6b8fcf7b9fcf9bbfcfbbdfcfdbf")),uAt=jN(cn("00000401000501010601010802010a02020c02020e03021004031204031405041706041907051b08051d09061f0a07220b07240c08260d08290e092b10092d110a30120a32140b34150b37160b39180c3c190c3e1b0c411c0c431e0c451f0c48210c4a230c4c240c4f260c51280b53290b552b0b572d0b592f0a5b310a5c320a5e340a5f3609613809623909633b09643d09653e0966400a67420a68440a68450a69470b6a490b6a4a0c6b4c0c6b4d0d6c4f0d6c510e6c520e6d540f6d550f6d57106e59106e5a116e5c126e5d126e5f136e61136e62146e64156e65156e67166e69166e6a176e6c186e6d186e6f196e71196e721a6e741a6e751b6e771c6d781c6d7a1d6d7c1d6d7d1e6d7f1e6c801f6c82206c84206b85216b87216b88226a8a226a8c23698d23698f24699025689225689326679526679727669827669a28659b29649d29649f2a63a02a63a22b62a32c61a52c60a62d60a82e5fa92e5eab2f5ead305dae305cb0315bb1325ab3325ab43359b63458b73557b93556ba3655bc3754bd3853bf3952c03a51c13a50c33b4fc43c4ec63d4dc73e4cc83f4bca404acb4149cc4248ce4347cf4446d04545d24644d34743d44842d54a41d74b3fd84c3ed94d3dda4e3cdb503bdd513ade5238df5337e05536e15635e25734e35933e45a31e55c30e65d2fe75e2ee8602de9612bea632aeb6429eb6628ec6726ed6925ee6a24ef6c23ef6e21f06f20f1711ff1731df2741cf3761bf37819f47918f57b17f57d15f67e14f68013f78212f78410f8850ff8870ef8890cf98b0bf98c0af98e09fa9008fa9207fa9407fb9606fb9706fb9906fb9b06fb9d07fc9f07fca108fca309fca50afca60cfca80dfcaa0ffcac11fcae12fcb014fcb216fcb418fbb61afbb81dfbba1ffbbc21fbbe23fac026fac228fac42afac62df9c72ff9c932f9cb35f8cd37f8cf3af7d13df7d340f6d543f6d746f5d949f5db4cf4dd4ff4df53f4e156f3e35af3e55df2e661f2e865f2ea69f1ec6df1ed71f1ef75f1f179f2f27df2f482f3f586f3f68af4f88ef5f992f6fa96f8fb9af9fc9dfafda1fcffa4")),dAt=jN(cn("0d088710078813078916078a19068c1b068d1d068e20068f2206902406912605912805922a05932c05942e05952f059631059733059735049837049938049a3a049a3c049b3e049c3f049c41049d43039e44039e46039f48039f4903a04b03a14c02a14e02a25002a25102a35302a35502a45601a45801a45901a55b01a55c01a65e01a66001a66100a76300a76400a76600a76700a86900a86a00a86c00a86e00a86f00a87100a87201a87401a87501a87701a87801a87a02a87b02a87d03a87e03a88004a88104a78305a78405a78606a68707a68808a68a09a58b0aa58d0ba58e0ca48f0da4910ea3920fa39410a29511a19613a19814a099159f9a169f9c179e9d189d9e199da01a9ca11b9ba21d9aa31e9aa51f99a62098a72197a82296aa2395ab2494ac2694ad2793ae2892b02991b12a90b22b8fb32c8eb42e8db52f8cb6308bb7318ab83289ba3388bb3488bc3587bd3786be3885bf3984c03a83c13b82c23c81c33d80c43e7fc5407ec6417dc7427cc8437bc9447aca457acb4679cc4778cc4977cd4a76ce4b75cf4c74d04d73d14e72d24f71d35171d45270d5536fd5546ed6556dd7566cd8576bd9586ada5a6ada5b69db5c68dc5d67dd5e66de5f65de6164df6263e06363e16462e26561e26660e3685fe4695ee56a5de56b5de66c5ce76e5be76f5ae87059e97158e97257ea7457eb7556eb7655ec7754ed7953ed7a52ee7b51ef7c51ef7e50f07f4ff0804ef1814df1834cf2844bf3854bf3874af48849f48948f58b47f58c46f68d45f68f44f79044f79143f79342f89441f89540f9973ff9983ef99a3efa9b3dfa9c3cfa9e3bfb9f3afba139fba238fca338fca537fca636fca835fca934fdab33fdac33fdae32fdaf31fdb130fdb22ffdb42ffdb52efeb72dfeb82cfeba2cfebb2bfebd2afebe2afec029fdc229fdc328fdc527fdc627fdc827fdca26fdcb26fccd25fcce25fcd025fcd225fbd324fbd524fbd724fad824fada24f9dc24f9dd25f8df25f8e125f7e225f7e425f6e626f6e826f5e926f5eb27f4ed27f3ee27f3f027f2f227f1f426f1f525f0f724f0f921")),fAt="__lodash_hash_undefined__";function hAt(e){return this.__data__.set(e,fAt),this}var pAt=hAt;function mAt(e){return this.__data__.has(e)}var gAt=mAt,vAt=$V,yAt=pAt,bAt=gAt;function i3(e){var t=-1,n=e==null?0:e.length;for(this.__data__=new vAt;++t<n;)this.add(e[t])}i3.prototype.add=i3.prototype.push=yAt;i3.prototype.has=bAt;var _W=i3;function wAt(e,t,n,r){for(var i=e.length,o=n+(r?1:-1);r?o--:++o<i;)if(t(e[o],o,e))return o;return-1}var SAt=wAt;function _At(e){return e!==e}var CAt=_At;function EAt(e,t,n){for(var r=n-1,i=e.length;++r<i;)if(e[r]===t)return r;return-1}var TAt=EAt,kAt=SAt,xAt=CAt,AAt=TAt;function IAt(e,t,n){return t===t?AAt(e,t,n):kAt(e,xAt,n)}var RAt=IAt,PAt=RAt;function OAt(e,t){var n=e==null?0:e.length;return!!n&&PAt(e,t,0)>-1}var ZEe=OAt;function NAt(e,t,n){for(var r=-1,i=e==null?0:e.length;++r<i;)if(n(t,e[r]))return!0;return!1}var e2e=NAt;function MAt(e,t){return e.has(t)}var CW=MAt,DAt=_W,LAt=ZEe,FAt=e2e,jAt=rN,UAt=n2,BAt=CW,$At=200;function HAt(e,t,n,r){var i=-1,o=LAt,s=!0,a=e.length,c=[],l=t.length;if(!a)return c;n&&(t=jAt(t,UAt(n))),r?(o=FAt,s=!1):t.length>=$At&&(o=BAt,s=!1,t=new DAt(t));e:for(;++i<a;){var u=e[i],d=n==null?u:n(u);if(u=r||u!==0?u:0,s&&d===d){for(var f=l;f--;)if(t[f]===d)continue e;c.push(u)}else o(t,d,r)||c.push(u)}return c}var zAt=HAt,VAt=zAt,WAt=QV,qAt=ZCe,GAt=WAt(function(e,t){return qAt(e)?VAt(e,t):[]}),KAt=GAt;const t2e=io(KAt);function mk(e){return function(){return e}}const Eie=1e-12;function YAt(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function n2e(e){this._context=e}n2e.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._context.lineTo(e,t);break}}};function QAt(e){return new n2e(e)}function wm(){}function o3(e,t,n){e._context.bezierCurveTo((2*e._x0+e._x1)/3,(2*e._y0+e._y1)/3,(e._x0+2*e._x1)/3,(e._y0+2*e._y1)/3,(e._x0+4*e._x1+t)/6,(e._y0+4*e._y1+n)/6)}function UN(e){this._context=e}UN.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:o3(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:o3(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function XAt(e){return new UN(e)}function r2e(e){this._context=e}r2e.prototype={areaStart:wm,areaEnd:wm,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x2,this._y2),this._context.closePath();break}case 2:{this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break}case 3:{this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4);break}}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x2=e,this._y2=t;break;case 1:this._point=2,this._x3=e,this._y3=t;break;case 2:this._point=3,this._x4=e,this._y4=t,this._context.moveTo((this._x0+4*this._x1+e)/6,(this._y0+4*this._y1+t)/6);break;default:o3(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function JAt(e){return new r2e(e)}function i2e(e){this._context=e}i2e.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var n=(this._x0+4*this._x1+e)/6,r=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(n,r):this._context.moveTo(n,r);break;case 3:this._point=4;default:o3(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function ZAt(e){return new i2e(e)}function o2e(e,t){this._basis=new UN(e),this._beta=t}o2e.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var e=this._x,t=this._y,n=e.length-1;if(n>0)for(var r=e[0],i=t[0],o=e[n]-r,s=t[n]-i,a=-1,c;++a<=n;)c=a/n,this._basis.point(this._beta*e[a]+(1-this._beta)*(r+c*o),this._beta*t[a]+(1-this._beta)*(i+c*s));this._x=this._y=null,this._basis.lineEnd()},point:function(e,t){this._x.push(+e),this._y.push(+t)}};const eIt=(function e(t){function n(r){return t===1?new UN(r):new o2e(r,t)}return n.beta=function(r){return e(+r)},n})(.85);function s3(e,t,n){e._context.bezierCurveTo(e._x1+e._k*(e._x2-e._x0),e._y1+e._k*(e._y2-e._y0),e._x2+e._k*(e._x1-t),e._y2+e._k*(e._y1-n),e._x2,e._y2)}function EW(e,t){this._context=e,this._k=(1-t)/6}EW.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:s3(this,this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2,this._x1=e,this._y1=t;break;case 2:this._point=3;default:s3(this,e,t);break}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const tIt=(function e(t){function n(r){return new EW(r,t)}return n.tension=function(r){return e(+r)},n})(0);function TW(e,t){this._context=e,this._k=(1-t)/6}TW.prototype={areaStart:wm,areaEnd:wm,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x3,this._y3),this._context.closePath();break}case 2:{this._context.lineTo(this._x3,this._y3),this._context.closePath();break}case 3:{this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5);break}}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x3=e,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t);break;case 2:this._point=3,this._x5=e,this._y5=t;break;default:s3(this,e,t);break}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const nIt=(function e(t){function n(r){return new TW(r,t)}return n.tension=function(r){return e(+r)},n})(0);function kW(e,t){this._context=e,this._k=(1-t)/6}kW.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:s3(this,e,t);break}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const rIt=(function e(t){function n(r){return new kW(r,t)}return n.tension=function(r){return e(+r)},n})(0);function xW(e,t,n){var r=e._x1,i=e._y1,o=e._x2,s=e._y2;if(e._l01_a>Eie){var a=2*e._l01_2a+3*e._l01_a*e._l12_a+e._l12_2a,c=3*e._l01_a*(e._l01_a+e._l12_a);r=(r*a-e._x0*e._l12_2a+e._x2*e._l01_2a)/c,i=(i*a-e._y0*e._l12_2a+e._y2*e._l01_2a)/c}if(e._l23_a>Eie){var l=2*e._l23_2a+3*e._l23_a*e._l12_a+e._l12_2a,u=3*e._l23_a*(e._l23_a+e._l12_a);o=(o*l+e._x1*e._l23_2a-t*e._l12_2a)/u,s=(s*l+e._y1*e._l23_2a-n*e._l12_2a)/u}e._context.bezierCurveTo(r,i,o,s,e._x2,e._y2)}function s2e(e,t){this._context=e,this._alpha=t}s2e.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3;default:xW(this,e,t);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const iIt=(function e(t){function n(r){return t?new s2e(r,t):new EW(r,0)}
vendor: 6,122 bytes, line 1571
1571return n.alpha=function(r){return e(+r)},n})(.5);function a2e(e,t){this._context=e,this._alpha=t}a2e.prototype={areaStart:wm,areaEnd:wm,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x3,this._y3),this._context.closePath();break}case 2:{this._context.lineTo(this._x3,this._y3),this._context.closePath();break}case 3:{this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5);break}}},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=e,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t);break;case 2:this._point=3,this._x5=e,this._y5=t;break;default:xW(this,e,t);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const oIt=(function e(t){function n(r){return t?new a2e(r,t):new TW(r,0)}return n.alpha=function(r){return e(+r)},n})(.5);function c2e(e,t){this._context=e,this._alpha=t}c2e.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:xW(this,e,t);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const sIt=(function e(t){function n(r){return t?new c2e(r,t):new kW(r,0)}return n.alpha=function(r){return e(+r)},n})(.5);function l2e(e){this._context=e}l2e.prototype={areaStart:wm,areaEnd:wm,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(e,t){e=+e,t=+t,this._point?this._context.lineTo(e,t):(this._point=1,this._context.moveTo(e,t))}};function aIt(e){return new l2e(e)}function Tie(e){return e<0?-1:1}function kie(e,t,n){var r=e._x1-e._x0,i=t-e._x1,o=(e._y1-e._y0)/(r||i<0&&-0),s=(n-e._y1)/(i||r<0&&-0),a=(o*i+s*r)/(r+i);return(Tie(o)+Tie(s))*Math.min(Math.abs(o),Math.abs(s),.5*Math.abs(a))||0}function xie(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function cD(e,t,n){var r=e._x0,i=e._y0,o=e._x1,s=e._y1,a=(o-r)/3;e._context.bezierCurveTo(r+a,i+a*t,o-a,s-a*n,o,s)}function a3(e){this._context=e}a3.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:cD(this,this._t0,xie(this,this._t0));break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){var n=NaN;if(e=+e,t=+t,!(e===this._x1&&t===this._y1)){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,cD(this,xie(this,n=kie(this,e,t)),n);break;default:cD(this,this._t0,n=kie(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=n}}};function u2e(e){this._context=new d2e(e)}(u2e.prototype=Object.create(a3.prototype)).point=function(e,t){a3.prototype.point.call(this,t,e)};function d2e(e){this._context=e}d2e.prototype={moveTo:function(e,t){this._context.moveTo(t,e)},closePath:function(){this._context.closePath()},lineTo:function(e,t){this._context.lineTo(t,e)},bezierCurveTo:function(e,t,n,r,i,o){this._context.bezierCurveTo(t,e,r,n,o,i)}};function cIt(e){return new a3(e)}function lIt(e){return new u2e(e)}function f2e(e){this._context=e}f2e.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var e=this._x,t=this._y,n=e.length;if(n)if(this._line?this._context.lineTo(e[0],t[0]):this._context.moveTo(e[0],t[0]),n===2)this._context.lineTo(e[1],t[1]);else for(var r=Aie(e),i=Aie(t),o=0,s=1;s<n;++o,++s)this._context.bezierCurveTo(r[0][o],i[0][o],r[1][o],i[1][o],e[s],t[s]);(this._line||this._line!==0&&n===1)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(e,t){this._x.push(+e),this._y.push(+t)}};function Aie(e){var t,n=e.length-1,r,i=new Array(n),o=new Array(n),s=new Array(n);for(i[0]=0,o[0]=2,s[0]=e[0]+2*e[1],t=1;t<n-1;++t)i[t]=1,o[t]=4,s[t]=4*e[t]+2*e[t+1];for(i[n-1]=2,o[n-1]=7,s[n-1]=8*e[n-1]+e[n],t=1;t<n;++t)r=i[t]/o[t-1],o[t]-=r,s[t]-=r*s[t-1];for(i[n-1]=s[n-1]/o[n-1],t=n-2;t>=0;--t)i[t]=(s[t]-i[t+1])/o[t];for(o[n-1]=(e[n]+i[n-1])/2,t=0;t<n-1;++t)o[t]=2*e[t+1]-i[t+1];return[i,o]}function uIt(e){return new f2e(e)}function BN(e,t){this._context=e,this._t=t}BN.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&this._point===2&&this._context.lineTo(this._x,this._y),(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;
1571default:{if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var n=this._x*(1-this._t)+e*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,t)}break}}this._x=e,this._y=t}};function dIt(e){return new BN(e,.5)}function fIt(e){return new BN(e,0)}function hIt(e){return new BN(e,1)}function Iie(e,t){if((s=e.length)>1)for(var n=1,r,i,o=e[t[0]],s,a=o.length;n<s;++n)for(i=o,o=e[t[n]],r=0;r<a;++r)o[r][1]+=o[r][0]=isNaN(i[r][1])?i[r][0]:i[r][1]}function Rie(e){for(var t=e.length,n=new Array(t);--t>=0;)n[t]=t;return n}function pIt(e,t){return e[t]}function mIt(e){const t=[];return t.key=e,t}function gIt(){var e=mk([]),t=Rie,n=Iie,r=pIt;function i(o){var s=Array.from(e.apply(this,arguments),mIt),a,c=s.length,l=-1,u;for(const d of o)for(a=0,++l;a<c;++a)(s[a][l]=[0,+r(d,s[a].key,l,o)]).data=d;for(a=0,u=YAt(t(s));a<c;++a)s[u[a]].index=a;return n(s,u),s}return i.keys=function(o){return arguments.length?(e=typeof o=="function"?o:mk(Array.from(o)),i):e},i.value=function(o){return arguments.length?(r=typeof o=="function"?o:mk(+o),i):r},i.order=function(o){return arguments.length?(t=o==null?Rie:typeof o=="function"?o:mk(Array.from(o)),i):t},i.offset=function(o){return arguments.length?(n=o??Iie,i):n},i}function vIt(e,t){if((c=e.length)>0)for(var n,r=0,i,o,s,a,c,l=e[t[0]].length;r<l;++r)for(s=a=0,n=0;n<c;++n)(o=(i=e[t[n]][r])[1]-i[0])>0?(i[0]=s,i[1]=s+=o):o<0?(i[1]=a,i[0]=a+=o):(i[0]=0,i[1]=o)}function yIt(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function c3(e,t){if((n=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null;var n,r=e.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+e.slice(n+1)]}function bIt(e){return e=c3(Math.abs(e)),e?e[1]:NaN}function wIt(e,t){return function(n,r){for(var i=n.length,o=[],s=0,a=e[0],c=0;i>0&&a>0&&(c+a+1>r&&(a=Math.max(1,r-c)),o.push(n.substring(i-=a,i+a)),!((c+=a+1)>r));)a=e[s=(s+1)%e.length];return o.reverse().join(t)}}function SIt(e){return function(t){return t.replace(/[0-9]/g,function(n){return e[+n]})}}var _It=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function L9(e){if(!(t=_It.exec(e)))throw new Error("invalid format: "+e);var t;return new AW({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}L9.prototype=AW.prototype;function AW(e){this.fill=e.fill===void 0?" ":e.fill+"",this.align=e.align===void 0?">":e.align+"",this.sign=e.sign===void 0?"-":e.sign+"",this.symbol=e.symbol===void 0?"":e.symbol+"",this.zero=!!e.zero,this.width=e.width===void 0?void 0:+e.width,this.comma=!!e.comma,this.precision=e.precision===void 0?void 0:+e.precision,this.trim=!!e.trim,this.type=e.type===void 0?"":e.type+""}AW.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function CIt(e){e:for(var t=e.length,n=1,r=-1,i;n<t;++n)switch(e[n]){case".":r=i=n;break;case"0":r===0&&(r=n),i=n;break;default:if(!+e[n])break e;r>0&&(r=0);break}return r>0?e.slice(0,r)+e.slice(i+1):e}var h2e;function EIt(e,t){var n=c3(e,t);if(!n)return e+"";var r=n[0],i=n[1],o=i-(h2e=Math.max(-8,Math.min(8,Math.floor(i/3)))*3)+1,s=r.length;return o===s?r:o>s?r+new Array(o-s+1).join("0"):o>0?r.slice(0,o)+"."+r.slice(o):"0."+new Array(1-o).join("0")+c3(e,Math.max(0,t+o-1))[0]}function Pie(e,t){var n=c3(e,t);if(!n)return e+"";var r=n[0],i=n[1];return i<0?"0."+new Array(-i).join("0")+r:r.length>i+1?r.slice(0,i+1)+"."+r.slice(i+1):r+new Array(i-r.length+2).join("0")}const Oie={"%":function(e,t){return(e*100).toFixed(t)},b:function(e){return Math.round(e).toString(2)},c:function(e){return e+""},d:yIt,e:function(e,t){return e.toExponential(t)},f:function(e,t){return e.toFixed(t)},g:function(e,t){return e.toPrecision(t)},o:function(e){return Math.round(e).toString(8)},p:function(e,t){return Pie(e*100,t)},r:Pie,s:EIt,X:function(e){return Math.round(e).toString(16).toUpperCase()},x:function(e){return Math.round(e).toString(16)}};function Nie(e){return e}var Mie=Array.prototype.map,Die=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];
vendor: 7,701 bytes, line 1571
1571function TIt(e){var t=e.grouping===void 0||e.thousands===void 0?Nie:wIt(Mie.call(e.grouping,Number),e.thousands+""),n=e.currency===void 0?"":e.currency[0]+"",r=e.currency===void 0?"":e.currency[1]+"",i=e.decimal+"",o=e.numerals===void 0?Nie:SIt(Mie.call(e.numerals,String)),s=e.percent===void 0?"%":e.percent+"",a=e.minus+"",c=e.nan===void 0?"NaN":e.nan+"";function l(d){d=L9(d);var f=d.fill,p=d.align,g=d.sign,m=d.symbol,y=d.zero,v=d.width,w=d.comma,S=d.precision,C=d.trim,E=d.type;E==="n"?(w=!0,E="g"):Oie[E]||(S===void 0&&(S=12),C=!0,E="g"),(y||f==="0"&&p==="=")&&(y=!0,f="0",p="=");var T=m==="$"?n:m==="#"&&/[boxX]/.test(E)?"0"+E.toLowerCase():"",x=m==="$"?r:/[%p]/.test(E)?s:"",O=Oie[E],A=/[defgprs%]/.test(E);S=S===void 0?6:/[gprs]/.test(E)?Math.max(1,Math.min(21,S)):Math.max(0,Math.min(20,S));function L(U){var I=T,F=x,P,W,ee;if(E==="c")F=O(U)+F,U="";else{U=+U;var Y=U<0||1/U<0;if(U=isNaN(U)?c:O(Math.abs(U),S),C&&(U=CIt(U)),Y&&+U==0&&g!=="+"&&(Y=!1),I=(Y?g==="("?g:a:g==="-"||g==="("?"":g)+I,F=(E==="s"?Die[8+h2e/3]:"")+F+(Y&&g==="("?")":""),A){for(P=-1,W=U.length;++P<W;)if(ee=U.charCodeAt(P),48>ee||ee>57){F=(ee===46?i+U.slice(P+1):U.slice(P))+F,U=U.slice(0,P);break}}}w&&!y&&(U=t(U,1/0));var X=I.length+U.length+F.length,Z=X<v?new Array(v-X+1).join(f):"";switch(w&&y&&(U=t(Z+U,Z.length?v-F.length:1/0),Z=""),p){case"<":U=I+U+F+Z;break;case"=":U=I+Z+U+F;break;case"^":U=Z.slice(0,X=Z.length>>1)+I+U+F+Z.slice(X);break;default:U=Z+I+U+F;break}return o(U)}return L.toString=function(){return d+""},L}function u(d,f){var p=l((d=L9(d),d.type="f",d)),g=Math.max(-8,Math.min(8,Math.floor(bIt(f)/3)))*3,m=Math.pow(10,-g),y=Die[8+g/3];return function(v){return p(m*v)+y}}return{format:l,formatPrefix:u}}var gk,p2e;kIt({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"});function kIt(e){return gk=TIt(e),p2e=gk.format,gk.formatPrefix,gk}var xIt=i2,AIt=dEe,IIt=Zb;function RIt(e,t,n){for(var r=-1,i=t.length,o={};++r<i;){var s=t[r],a=xIt(e,s);n(a,s)&&AIt(o,IIt(s,e),a)}return o}var PIt=RIt;function OIt(e,t){return e!=null&&t in Object(e)}var NIt=OIt,MIt=Zb,DIt=XO,LIt=ja,FIt=eN,jIt=qV,UIt=ew;function BIt(e,t,n){t=MIt(t,e);for(var r=-1,i=t.length,o=!1;++r<i;){var s=UIt(t[r]);if(!(o=e!=null&&n(e,s)))break;e=e[s]}return o||++r!=i?o:(i=e==null?0:e.length,!!i&&jIt(i)&&FIt(s,i)&&(LIt(e)||DIt(e)))}var $It=BIt,HIt=NIt,zIt=$It;function VIt(e,t){return e!=null&&zIt(e,t,HIt)}var m2e=VIt,WIt=PIt,qIt=m2e;function GIt(e,t){return WIt(e,t,function(n,r){return qIt(e,r)})}var KIt=GIt;function YIt(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}var IW=YIt,Lie=Gb,QIt=XO,XIt=ja,Fie=Lie?Lie.isConcatSpreadable:void 0;function JIt(e){return XIt(e)||QIt(e)||!!(Fie&&e&&e[Fie])}var ZIt=JIt,eRt=IW,tRt=ZIt;function g2e(e,t,n,r,i){var o=-1,s=e.length;for(n||(n=tRt),i||(i=[]);++o<s;){var a=e[o];t>0&&n(a)?t>1?g2e(a,t-1,n,r,i):eRt(i,a):r||(i[i.length]=a)}return i}var v2e=g2e,nRt=v2e;function rRt(e){var t=e==null?0:e.length;return t?nRt(e,1):[]}var iRt=rRt,oRt=iRt,sRt=oEe,aRt=sEe;function cRt(e){return aRt(sRt(e,void 0,oRt),e+"")}var y2e=cRt,lRt=KIt,uRt=y2e;uRt(function(e,t){return e==null?{}:lRt(e,t)});function dRt(e,t){for(var n=-1,r=e==null?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}var fRt=dRt,hRt=_W,pRt=fRt,mRt=CW,gRt=1,vRt=2;function yRt(e,t,n,r,i,o){var s=n&gRt,a=e.length,c=t.length;if(a!=c&&!(s&&c>a))return!1;var l=o.get(e),u=o.get(t);if(l&&u)return l==t&&u==e;var d=-1,f=!0,p=n&vRt?new hRt:void 0;for(o.set(e,t),o.set(t,e);++d<a;){var g=e[d],m=t[d];if(r)var y=s?r(m,g,d,t,e,o):r(g,m,d,e,t,o);if(y!==void 0){if(y)continue;f=!1;break}if(p){if(!pRt(t,function(v,w){if(!mRt(p,w)&&(g===v||i(g,v,n,r,o)))return p.push(w)})){f=!1;break}}else if(!(g===m||i(g,m,n,r,o))){f=!1;break}}return o.delete(e),o.delete(t),f}var b2e=yRt;function bRt(e){var t=-1,n=Array(e.size);return e.forEach(function(r,i){n[++t]=[i,r]}),n}var wRt=bRt;function SRt(e){var t=-1,n=Array(e.size);return e.forEach(function(r){n[++t]=r}),n}var RW=SRt,jie=Gb,Uie=GCe,_Rt=t2,CRt=b2e,ERt=wRt,TRt=RW,kRt=1,xRt=2,ARt="[object Boolean]",IRt="[object Date]",RRt="[object Error]",PRt="[object Map]",ORt="[object Number]",NRt="[object RegExp]",MRt="[object Set]",DRt="[object String]",LRt="[object Symbol]",FRt="[object ArrayBuffer]",jRt="[object DataView]",Bie=jie?jie.prototype:void 0,lD=Bie?Bie.valueOf:void 0;function URt(e,t,n,r,i,o,s){switch(n){case jRt:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case FRt:return!(e.byteLength!=t.byteLength||!o(new Uie(e),new Uie(t)));case ARt:case IRt:case ORt:return _Rt(+e,+t);case RRt:return e.name==t.name&&e.message==t.message;case NRt:case DRt:return e==t+"";case PRt:var a=ERt;case MRt:var c=r&kRt;if(a||(a=TRt),e.size!=t.size&&!c)return!1;var l=s.get(e);if(l)return l==t;r|=xRt,s.set(e,t);var u=CRt(a(e),a(t),r,i,o,s);return s.delete(e),u;case LRt:if(lD)return lD.call(e)==lD.call(t)}return!1}var BRt=URt,$Rt=IW,HRt=ja;function zRt(e,t,n){var r=t(e);return HRt(e)?r:$Rt(r,n(e))}var w2e=zRt;function VRt(e,t){for(var n=-1,r=e==null?0:e.length,i=0,o=[];++n<r;){var s=e[n];t(s,n,e)&&(o[i++]=s)}return o}var S2e=VRt;function WRt(){return[]}var _2e=WRt,qRt=S2e,GRt=_2e,KRt=Object.prototype,YRt=KRt.propertyIsEnumerable,$ie=Object.getOwnPropertySymbols,QRt=$ie?function(e){return e==null?[]:(e=Object(e),qRt($ie(e),function(t){return YRt.call(e,t)}))}:GRt,PW=QRt,XRt=QCe,JRt=XRt(Object.keys,Object),ZRt=JRt,e3t=WV,t3t=ZRt,n3t=Object.prototype,r3t=n3t.hasOwnProperty;function i3t(e){if(!e3t(e))return t3t(e);var t=[];for(var n in Object(e))r3t.call(e,n)&&n!="constructor"&&t.push(n);return t}var o3t=i3t,s3t=rEe,a3t=o3t,c3t=Xb;function l3t(e){return c3t(e)?s3t(e):a3t(e)}var o2=l3t,u3t=w2e,d3t=PW,f3t=o2;function h3t(e){return u3t(e,f3t,d3t)}var C2e=h3t,Hie=C2e,p3t=1,m3t=Object.prototype,g3t=m3t.hasOwnProperty;function v3t(e,t,n,r,i,o){var s=n&p3t,a=Hie(e),c=a.length,l=Hie(t),u=l.length;if(c!=u&&!s)return!1;for(var d=c;d--;){var f=a[d];if(!(s?f in t:g3t.call(t,f)))return!1}var p=o.get(e),g=o.get(t);if(p&&g)return p==t&&g==e;var m=!0;o.set(e,t),o.set(t,e);for(var y=s;++d<c;){f=a[d];var v=e[f],w=t[f];if(r)var S=s?r(w,v,f,t,e,o):r(v,w,f,e,t,o);if(!(S===void 0?v===w||i(v,w,n,r,o):S)){m=!1;break}y||(y=f=="constructor")}if(m&&!y){var C=e.constructor,E=t.constructor;C!=E&&"constructor"in e&&"constructor"in t&&!(typeof C=="function"&&C instanceof C&&typeof E=="function"&&E instanceof E)&&(m=!1)}return o.delete(e),o.delete(t),m}var y3t=v3t,b3t=Gv,w3t=Fd,S3t=b3t(w3t,"DataView"),_3t=S3t,C3t=Gv,E3t=Fd,T3t=C3t(E3t,"Promise"),k3t=T3t,x3t=Gv,A3t=Fd,I3t=x3t(A3t,"Set"),E2e=I3t,R3t=Gv,P3t=Fd,O3t=R3t(P3t,"WeakMap"),N3t=O3t,F9=_3t,j9=BV,U9=k3t,B9=E2e,$9=N3t,T2e=Bm,nw=HCe,zie="[object Map]",M3t="[object Object]",Vie="[object Promise]",Wie="[object Set]",qie="[object WeakMap]",Gie="[object DataView]",D3t=nw(F9),L3t=nw(j9),F3t=nw(U9),j3t=nw(B9),U3t=nw($9),dg=T2e;(F9&&dg(new F9(new ArrayBuffer(1)))!=Gie||j9&&dg(new j9)!=zie||U9&&dg(U9.resolve())!=Vie||B9&&dg(new B9)!=Wie||$9&&dg(new $9)!=qie)&&(dg=function(e){var t=T2e(e),n=t==M3t?e.constructor:void 0,r=n?nw(n):"";if(r)switch(r){case D3t:return Gie;case L3t:return zie;case F3t:return Vie;case j3t:return Wie;case U3t:return qie}return t});var $N=dg,uD=QO,B3t=b2e,$3t=BRt,H3t=y3t,Kie=$N,Yie=ja,Qie=JO,z3t=KV,V3t=1,Xie="[object Arguments]",Jie="[object Array]",vk="[object Object]",W3t=Object.prototype,Zie=W3t.hasOwnProperty;function q3t(e,t,n,r,i,o){var s=Yie(e),a=Yie(t),c=s?Jie:Kie(e),l=a?Jie:Kie(t);c=c==Xie?vk:c,l=l==Xie?vk:l;var u=c==vk,d=l==vk,f=c==l;if(f&&Qie(e)){if(!Qie(t))return!1;s=!0,u=!1}if(f&&!u)return o||(o=new uD),s||z3t(e)?B3t(e,t,n,r,i,o):$3t(e,t,c,n,r,i,o);if(!(n&V3t)){var p=u&&Zie.call(e,"__wrapped__"),g=d&&Zie.call(t,"__wrapped__");
1571if(p||g){var m=p?e.value():e,y=g?t.value():t;return o||(o=new uD),i(m,y,n,r,o)}}return f?(o||(o=new uD),H3t(e,t,n,r,i,o)):!1}var G3t=q3t,K3t=G3t,eoe=gu;function k2e(e,t,n,r,i){return e===t?!0:e==null||t==null||!eoe(e)&&!eoe(t)?e!==e&&t!==t:K3t(e,t,n,r,k2e,i)}var x2e=k2e,Y3t={background:"transparent",text:{fontFamily:"sans-serif",fontSize:11,fill:"#333333",outlineWidth:0,outlineColor:"transparent",outlineOpacity:1},axis:{domain:{line:{stroke:"transparent",strokeWidth:1}},ticks:{line:{stroke:"#777777",strokeWidth:1},text:{}},legend:{text:{fontSize:12}}},grid:{line:{stroke:"#dddddd",strokeWidth:1}},legends:{hidden:{symbol:{fill:"#333333",opacity:.6},text:{fill:"#333333",opacity:.6}},text:{},ticks:{line:{stroke:"#777777",strokeWidth:1},text:{fontSize:10}},title:{text:{}}},labels:{text:{}},markers:{lineColor:"#000000",lineStrokeWidth:1,text:{}},dots:{text:{}},tooltip:{container:{background:"white",color:"inherit",fontSize:"inherit",borderRadius:"2px",boxShadow:"0 1px 2px rgba(0, 0, 0, 0.25)",padding:"5px 9px"},basic:{whiteSpace:"pre",display:"flex",alignItems:"center"},chip:{marginRight:7},table:{},tableCell:{padding:"3px 5px"},tableCellValue:{fontWeight:"bold"}},crosshair:{line:{stroke:"#000000",strokeWidth:1,strokeOpacity:.75,strokeDasharray:"6 6"}},annotations:{text:{fontSize:13,outlineWidth:2,outlineColor:"#ffffff",outlineOpacity:1},link:{stroke:"#000000",strokeWidth:1,outlineWidth:2,outlineColor:"#ffffff",outlineOpacity:1},outline:{fill:"none",stroke:"#000000",strokeWidth:2,outlineWidth:2,outlineColor:"#ffffff",outlineOpacity:1},symbol:{fill:"#000000",outlineWidth:2,outlineColor:"#ffffff",outlineOpacity:1}}};function Sm(){return Sm=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Sm.apply(this,arguments)}function OW(e,t){if(e==null)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}var Q3t=["axis.ticks.text","axis.legend.text","legends.title.text","legends.text","legends.ticks.text","legends.title.text","labels.text","dots.text","markers.text","annotations.text"],X3t=function(e,t){return Sm({},t,e)},J3t=function(e,t){var n=NEt({},e,t);return Q3t.forEach((function(r){A2t(n,r,X3t(V1(n,r),n.text))})),n},A2e=b.createContext(),I2e=function(e){var t=e.children,n=e.animate,r=n===void 0||n,i=e.config,o=i===void 0?"default":i,s=b.useMemo((function(){var a=dTt(o)?FV[o]:o;return{animate:r,config:a}}),[r,o]);return h.jsx(A2e.Provider,{value:s,children:t})},l3={animate:Pe.bool,motionConfig:Pe.oneOfType([Pe.oneOf(Object.keys(FV)),Pe.shape({mass:Pe.number,tension:Pe.number,friction:Pe.number,clamp:Pe.bool,precision:Pe.number,velocity:Pe.number,duration:Pe.number,easing:Pe.func})])};I2e.propTypes={children:Pe.node.isRequired,animate:l3.animate,config:l3.motionConfig};var s2=function(){return b.useContext(A2e)},Z3t={nivo:["#d76445","#f47560","#e8c1a0","#97e3d5","#61cdbb","#00b0a7"],BrBG:Tt(dN),PRGn:Tt(fN),PiYG:Tt(hN),PuOr:Tt(pN),RdBu:Tt(mN),RdGy:Tt(gN),RdYlBu:Tt(vN),RdYlGn:Tt(yN),spectral:Tt(bN),blues:Tt(ON),greens:Tt(NN),greys:Tt(MN),oranges:Tt(FN),purples:Tt(DN),reds:Tt(LN),BuGn:Tt(wN),BuPu:Tt(SN),GnBu:Tt(_N),OrRd:Tt(CN),PuBuGn:Tt(EN),PuBu:Tt(TN),PuRd:Tt(kN),RdPu:Tt(xN),YlGnBu:Tt(AN),YlGn:Tt(IN),YlOrBr:Tt(RN),YlOrRd:Tt(PN)},ePt=Object.keys(Z3t);Tt(dN),Tt(fN),Tt(hN),Tt(pN),Tt(mN),Tt(gN),Tt(vN),Tt(yN),Tt(bN),Tt(ON),Tt(NN),Tt(MN),Tt(FN),Tt(DN),Tt(LN),Tt(wN),Tt(SN),Tt(_N),Tt(CN),Tt(EN),Tt(TN),Tt(kN),Tt(xN),Tt(AN),Tt(IN),Tt(RN),Tt(PN);Pe.oneOfType([Pe.oneOf(ePt),Pe.func,Pe.arrayOf(Pe.string)]);var tPt={basis:XAt,basisClosed:JAt,basisOpen:ZAt,bundle:eIt,cardinal:tIt,cardinalClosed:nIt,cardinalOpen:rIt,catmullRom:iIt,catmullRomClosed:oIt,catmullRomOpen:sIt,linear:QAt,linearClosed:aIt,monotoneX:cIt,monotoneY:lIt,natural
1571:uIt,step:dIt,stepAfter:hIt,stepBefore:fIt},NW=Object.keys(tPt);NW.filter((function(e){return e.endsWith("Closed")}));t2e(NW,"bundle","basisClosed","basisOpen","cardinalClosed","cardinalOpen","catmullRomClosed","catmullRomOpen","linearClosed");t2e(NW,"bundle","basisClosed","basisOpen","cardinalClosed","cardinalOpen","catmullRomClosed","catmullRomOpen","linearClosed");Pe.shape({top:Pe.number,right:Pe.number,bottom:Pe.number,left:Pe.number}).isRequired;var nPt=["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"];Pe.oneOf(nPt);kg(JEe);var rPt={top:0,right:0,bottom:0,left:0},iPt=function(e,t,n){return n===void 0&&(n={}),b.useMemo((function(){var r=Sm({},rPt,n);return{margin:r,innerWidth:e-r.left-r.right,innerHeight:t-r.top-r.bottom,outerWidth:e,outerHeight:t}}),[e,t,n.top,n.right,n.bottom,n.left])},R2e=function(){var e=b.useRef(null),t=b.useState({left:0,top:0,width:0,height:0}),n=t[0],r=t[1],i=b.useState((function(){return typeof ResizeObserver>"u"?null:new ResizeObserver((function(o){var s=o[0];return r(s.contentRect)}))}))[0];return b.useEffect((function(){return e.current&&i!==null&&i.observe(e.current),function(){i!==null&&i.disconnect()}}),[]),[e,n]},oPt=function(e){return b.useMemo((function(){return J3t(Y3t,e)}),[e])},sPt=function(e){return typeof e=="function"?e:typeof e=="string"?e.indexOf("time:")===0?uN(e.slice("5")):p2e(e):function(t){return""+t}},MW=function(e){return b.useMemo((function(){return sPt(e)}),[e])},P2e=b.createContext(),aPt={},O2e=function(e){var t=e.theme,n=t===void 0?aPt:t,r=e.children,i=oPt(n);return h.jsx(P2e.Provider,{value:i,children:r})};O2e.propTypes={children:Pe.node.isRequired,theme:Pe.object};var hl=function(){return b.useContext(P2e)},cPt=["outlineWidth","outlineColor","outlineOpacity"],N2e=function(e){return e.outlineWidth,e.outlineColor,e.outlineOpacity,OW(e,cPt)},M2e=function(e){var t=e.children,n=e.condition,r=e.wrapper;return n?b.cloneElement(r,{},t):t};M2e.propTypes={children:Pe.node.isRequired,condition:Pe.bool.isRequired,wrapper:Pe.element.isRequired};var lPt={position:"relative"},D2e=function(e){var t=e.children,n=e.theme,r=e.renderWrapper,i=r===void 0||r,o=e.isInteractive,s=o===void 0||o,a=e.animate,c=e.motionConfig,l=b.useRef(null);return h.jsx(O2e,{theme:n,children:h.jsx(I2e,{animate:a,config:c,children:h.jsx(p1t,{container:l,children:h.jsxs(M2e,{condition:i,wrapper:h.jsx("div",{style:lPt,ref:l}),children:[t,s&&h.jsx(h1t,{})]})})})})};D2e.propTypes={children:Pe.element.isRequired,isInteractive:Pe.bool,renderWrapper:Pe.bool,theme:Pe.object,animate:Pe.bool,motionConfig:Pe.oneOfType([Pe.string,l3.motionConfig])};Pe.func.isRequired,Pe.bool,Pe.bool,Pe.object.isRequired,Pe.bool.isRequired,Pe.oneOfType([Pe.string,l3.motionConfig]);var L2e=function(e){var t=e.children,n=R2e(),r=n[0],i=n[1],o=i.width>0&&i.height>0;return h.jsx("div",{ref:r,style:{width:"100%",height:"100%"},children:o&&t({width:i.width,height:i.height})})};L2e.propTypes={children:Pe.func.isRequired};var uPt=["id","colors"],F2e=function(e){var t=e.id,n=e.colors,r=OW(e,uPt);return h.jsx("linearGradient",Sm({id:t,x1:0,x2:0,y1:0,y2:1},r,{children:n.map((function(i){var o=i.offset,s=i.color,a=i.opacity;return h.jsx("stop",{offset:o+"%",stopColor:s,stopOpacity:a!==void 0?a:1},o)}))}))};F2e.propTypes={id:Pe.string.isRequired,colors:Pe.arrayOf(Pe.shape({offset:Pe.number.isRequired,color:Pe.string.isRequired,opacity:Pe.number})).isRequired,gradientTransform:Pe.string};var dPt={linearGradient:F2e},nS={color:"#000000",background:"#ffffff",size:4,padding:4,stagger:!1},H9=b.memo((function(e){var t=e.id,n=e.background,r=n===void 0?nS.background:n,i=e.color,o=i===void 0?nS.color:i,s=e.size,a=s===void 0?nS.size:s,c=e.padding,l=c===void 0?nS.padding:c,u=e.stagger,d=u===void 0?nS.stagger:u,f=a+l,p=a/2,g=l/2;return d===!0&&(f=2*a+2*l),h.jsxs("pattern",{id:t,width:f,height:f,patternUnits:"userSpaceOnUse",children:[h.jsx("rect",{width:f,height:f,fill:r}),h.jsx("circle",{cx:g+p,cy:g+p,r:p,fill:o}),d&&h.jsx("circle",{cx:1.5*l+a+p,cy:1.5*l+a+p,r:p,fill:o})]})}));
1571H9.displayName="PatternDots",H9.propTypes={id:Pe.string.isRequired,color:Pe.string.isRequired,background:Pe.string.isRequired,size:Pe.number.isRequired,padding:Pe.number.isRequired,stagger:Pe.bool.isRequired};var VC=function(e){return e*Math.PI/180},fPt=function(e){return 180*e/Math.PI},hPt=function(e,t){return{x:Math.cos(e)*t,y:Math.sin(e)*t}},pPt=function(e){var t=e%360;return t<0&&(t+=360),t},mPt={svg:{align:{left:"start",center:"middle",right:"end",start:"start",middle:"middle",end:"end"},baseline:{top:"text-before-edge",center:"central",bottom:"alphabetic"}},canvas:{align:{left:"left",center:"center",right:"right",start:"left",middle:"center",end:"right"},baseline:{top:"top",center:"middle",bottom:"bottom"}}},rS={spacing:5,rotation:0,background:"#000000",color:"#ffffff",lineWidth:2},z9=b.memo((function(e){var t=e.id,n=e.spacing,r=n===void 0?rS.spacing:n,i=e.rotation,o=i===void 0?rS.rotation:i,s=e.background,a=s===void 0?rS.background:s,c=e.color,l=c===void 0?rS.color:c,u=e.lineWidth,d=u===void 0?rS.lineWidth:u,f=Math.round(o)%360,p=Math.abs(r);f>180?f-=360:f>90?f-=180:f<-180?f+=360:f<-90&&(f+=180);var g,m=p,y=p;return f===0?g=`
1572                M 0 0 L `+m+` 0
1573                M 0 `+y+" L "+m+" "+y+`
1574            `:f===90?g=`
1575                M 0 0 L 0 `+y+`
1576                M `+m+" 0 L "+m+" "+y+`
1577            `:(m=Math.abs(p/Math.sin(VC(f))),y=p/Math.sin(VC(90-f)),g=f>0?`
1578                    M 0 `+-y+" L "+2*m+" "+y+`
1579                    M `+-m+" "+-y+" L "+m+" "+y+`
1580                    M `+-m+" 0 L "+m+" "+2*y+`
1581                `:`
1582                    M `+-m+" "+y+" L "+m+" "+-y+`
1583                    M `+-m+" "+2*y+" L "+2*m+" "+-y+`
1584                    M 0 `+2*y+" L "+2*m+` 0
1585                `),h.jsxs("pattern",{id:t,width:m,height:y,patternUnits:"userSpaceOnUse",children:[h.jsx("rect",{width:m,height:y,fill:a,stroke:"rgba(255, 0, 0, 0.1)",strokeWidth:0}),h.jsx("path",{d:g,strokeWidth:d,stroke:l,strokeLinecap:"square"})]})}));z9.displayName="PatternLines",z9.propTypes={id:Pe.string.isRequired,spacing:Pe.number.isRequired,rotation:Pe.number.isRequired,background:Pe.string.isRequired,color:Pe.string.isRequired,lineWidth:Pe.number.isRequired};var iS={color:"#000000",background:"#ffffff",size:4,padding:4,stagger:!1},V9=b.memo((function(e){var t=e.id,n=e.color,r=n===void 0?iS.color:n,i=e.background,o=i===void 0?iS.background:i,s=e.size,a=s===void 0?iS.size:s,c=e.padding,l=c===void 0?iS.padding:c,u=e.stagger,d=u===void 0?iS.stagger:u,f=a+l,p=l/2;return d===!0&&(f=2*a+2*l),h.jsxs("pattern",{id:t,width:f,height:f,patternUnits:"userSpaceOnUse",children:[h.jsx("rect",{width:f,height:f,fill:o}),h.jsx("rect",{x:p,y:p,width:a,height:a,fill:r}),d&&h.jsx("rect",{x:1.5*l+a,y:1.5*l+a,width:a,height:a,fill:r})]})}));V9.displayName="PatternSquares",V9.propTypes={id:Pe.string.isRequired,color:Pe.string.isRequired,background:Pe.string.isRequired,size:Pe.number.isRequired,padding:Pe.number.isRequired,stagger:Pe.bool.isRequired};var gPt={patternDots:H9,patternLines:z9,patternSquares:V9},vPt=["type"],W9=Sm({},dPt,gPt),j2e=function(e){var t=e.defs;return!t||t.length<1?null:h.jsx("defs",{"aria-hidden":!0,children:t.map((function(n){var r=n.type,i=OW(n,vPt);return W9[r]?b.createElement(W9[r],Sm({key:i.id},i)):null}))})};j2e.propTypes={defs:Pe.arrayOf(Pe.shape({type:Pe.oneOf(Object.keys(W9)).isRequired,id:Pe.string.isRequired}))};b.memo(j2e);Pe.number.isRequired,Pe.number.isRequired,Pe.shape({top:Pe.number.isRequired,left:Pe.number.isRequired}).isRequired,Pe.array,Pe.oneOfType([Pe.arrayOf(Pe.node),Pe.node]).isRequired,Pe.string,Pe.bool,Pe.string,Pe.string,Pe.string;var U2e=function(e){var t=e.size,n=e.color,r=e.borderWidth,i=e.borderColor;return h.jsx("circle",{r:t/2,fill:n,stroke:i,strokeWidth:r,style:{pointerEvents:"none"}})};U2e.propTypes={size:Pe.number.isRequired,color:Pe.string.isRequired,borderWidth:Pe.number.isRequired,borderColor:Pe.string.isRequired};var yPt=b.memo(U2e),B2e=function(e){var t=e.x,n=e.y,r=e.symbol,i=r===void 0?yPt:r,o=e.size,s=e.datum,a=e.color,c=e.borderWidth,l=e.borderColor,u=e.label,d=e.labelTextAnchor,f=d===void 0?"middle":d,p=e.labelYOffset,g=p===void 0?-12:p,m=hl(),y=s2(),v=y.animate,w=y.config,S=VO({transform:"translate("+t+", "+n+")",config:w,immediate:!v});return h.jsxs(Wc.g,{transform:S.transform,style:{pointerEvents:"none"},children:[b.createElement(i,{size:o,color:a,datum:s,borderWidth:c,borderColor:l}),u&&h.jsx("text",{textAnchor:f,y:g,style:N2e(m.dots.text),children:u})]})};B2e.propTypes={x:Pe.number.isRequired,y:Pe.number.isRequired,datum:Pe.object.isRequired,size:Pe.number.isRequired,color:Pe.string.isRequired,borderWidth:Pe.number.isRequired,borderColor:Pe.string.isRequired,symbol:Pe.oneOfType([Pe.func,Pe.object]),label:Pe.oneOfType([Pe.string,Pe.number]),labelTextAnchor:Pe.oneOf(["start","middle","end"]),labelYOffset:Pe.number};b.memo(B2e);
1585var $2e=function(e){var t=e.width,n=e.height,r=e.axis,i=e.scale,o=e.value,s=e.lineStyle,a=e.textStyle,c=e.legend,l=e.legendNode,u=e.legendPosition,d=u===void 0?"top-right":u,f=e.legendOffsetX,p=f===void 0?14:f,g=e.legendOffsetY,m=g===void 0?14:g,y=e.legendOrientation,v=y===void 0?"horizontal":y,w=hl(),S=0,C=0,E=0,T=0;if(r==="y"?(E=i(o),C=t):(S=i(o),T=n),c&&!l){var x=(function(O){var A=O.axis,L=O.width,U=O.height,I=O.position,F=O.offsetX,P=O.offsetY,W=O.orientation,ee=0,Y=0,X=W==="vertical"?-90:0,Z="start";if(A==="x")switch(I){case"top-left":ee=-F,Y=P,Z="end";break;case"top":Y=-P,Z=W==="horizontal"?"middle":"start";break;case"top-right":ee=F,Y=P,Z=W==="horizontal"?"start":"end";break;case"right":ee=F,Y=U/2,Z=W==="horizontal"?"start":"middle";break;case"bottom-right":ee=F,Y=U-P,Z="start";break;case"bottom":Y=U+P,Z=W==="horizontal"?"middle":"end";break;case"bottom-left":Y=U-P,ee=-F,Z=W==="horizontal"?"end":"start";break;case"left":ee=-F,Y=U/2,Z=W==="horizontal"?"end":"middle"}else switch(I){case"top-left":ee=F,Y=-P,Z="start";break;case"top":ee=L/2,Y=-P,Z=W==="horizontal"?"middle":"start";break;case"top-right":ee=L-F,Y=-P,Z=W==="horizontal"?"end":"start";break;case"right":ee=L+F,Z=W==="horizontal"?"start":"middle";break;case"bottom-right":ee=L-F,Y=P,Z="end";break;case"bottom":ee=L/2,Y=P,Z=W==="horizontal"?"middle":"end";break;case"bottom-left":ee=F,Y=P,Z=W==="horizontal"?"start":"end";break;case"left":ee=-F,Z=W==="horizontal"?"end":"middle"}return{x:ee,y:Y,rotation:X,textAnchor:Z}})({axis:r,width:t,height:n,position:d,offsetX:p,offsetY:m,orientation:v});l=h.jsx("text",{transform:"translate("+x.x+", "+x.y+") rotate("+x.rotation+")",textAnchor:x.textAnchor,dominantBaseline:"central",style:a,children:c})}return h.jsxs("g",{transform:"translate("+S+", "+E+")",children:[h.jsx("line",{x1:0,x2:C,y1:0,y2:T,stroke:w.markers.lineColor,strokeWidth:w.markers.lineStrokeWidth,style:s}),l]})};$2e.propTypes={width:Pe.number.isRequired,height:Pe.number.isRequired,axis:Pe.oneOf(["x","y"]).isRequired,scale:Pe.func.isRequired,value:Pe.oneOfType([Pe.number,Pe.string,Pe.instanceOf(Date)]).isRequired,lineStyle:Pe.object,textStyle:Pe.object,legend:Pe.string,legendPosition:Pe.oneOf(["top-left","top","top-right","right","bottom-right","bottom","bottom-left","left"]),legendOffsetX:Pe.number.isRequired,legendOffsetY:Pe.number.isRequired,legendOrientation:Pe.oneOf(["horizontal","vertical"]).isRequired};var bPt=b.memo($2e),H2e=function(e){var t=e.markers,n=e.width,r=e.height,i=e.xScale,o=e.yScale;return t&&t.length!==0?t.map((function(s,a){return h.jsx(bPt,Sm({},s,{width:n,height:r,scale:s.axis==="y"?o:i}),a)})):null};H2e.propTypes={width:Pe.number.isRequired,height:Pe.number.isRequired,xScale:Pe.func.isRequired,yScale:Pe.func.isRequired,markers:Pe.arrayOf(Pe.shape({axis:Pe.oneOf(["x","y"]).isRequired,value:Pe.oneOfType([Pe.number,Pe.string,Pe.instanceOf(Date)]).isRequired,lineStyle:Pe.object,textStyle:Pe.object}))};b.memo(H2e);var z2e=function(e){return Sbt(e)?e:function(t){return V1(t,e)}},dD=function(e){return b.useMemo((function(){return z2e(e)}),[e])},wPt=function(e,t,n,r,i,o){return e<=i&&i<=e+n&&t<=o&&o<=t+r},fD=function(e,t){var n,r="touches"in t?t.touches[0]:t,i=r.clientX,o=r.clientY,s=e.getBoundingClientRect(),a=(n=e.getBBox!==void 0?e.getBBox():{width:e.offsetWidth||0,height:e.offsetHeight||0}).width===s.width?1:n.width/s.width;return[(i-s.left)*a,(o-s.top)*a]};function SPt(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function u3(e,t){if((n=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null;var n,r=e.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+e.slice(n+1)]}function _Pt(e){return e=u3(Math.abs(e)),e?e[1]:NaN}function CPt(e,t){return function(n,r){for(var i=n.length,o=[],s=0,a=e[0],c=0;i>0&&a>0&&(c+a+1>r&&(a=Math.max(1,r-c)),o.push(n.substring(i-=a,i+a)),!((c+=a+1)>r));)a=e[s=(s+1)%e.length];return o.reverse().join(t)}}function EPt(e){return function(t){return t.replace(/[0-9]/g,function(n){return e[+n]})}}var TPt=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function q9(e){if(!(t=TPt.exec(e)))throw new Error("invalid format: "+e);var t;return new DW({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}q9.prototype=DW.prototype;function DW(e){this.fill=e.fill===void 0?" ":e.fill+"",this.align=e.align===void 0?">":e.align+"",this.sign=e.sign===void 0?"-":e.sign+"",this.symbol=e.symbol===void 0?"":e.symbol+"",this.zero=!!e.zero,this.width=e.width===void 0?void 0:+e.width,this.comma=!!e.comma,this.precision=e.precision===void 0?void 0:+e.precision,this.trim=!!e.trim,this.type=e.type===void 0?"":e.type+""}DW.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function kPt(e){e:for(var t=e.length,n=1,r=-1,i;n<t;++n)switch(e[n]){case".":r=i=n;break;case"0":r===0&&(r=n),i=n;break;default:if(!+e[n])break e;r>0&&(r=0);break}return r>0?e.slice(0,r)+e.slice(i+1):e}var V2e;
vendor: 3,404 bytes, line 1585
1585function xPt(e,t){var n=u3(e,t);if(!n)return e+"";var r=n[0],i=n[1],o=i-(V2e=Math.max(-8,Math.min(8,Math.floor(i/3)))*3)+1,s=r.length;return o===s?r:o>s?r+new Array(o-s+1).join("0"):o>0?r.slice(0,o)+"."+r.slice(o):"0."+new Array(1-o).join("0")+u3(e,Math.max(0,t+o-1))[0]}function toe(e,t){var n=u3(e,t);if(!n)return e+"";var r=n[0],i=n[1];return i<0?"0."+new Array(-i).join("0")+r:r.length>i+1?r.slice(0,i+1)+"."+r.slice(i+1):r+new Array(i-r.length+2).join("0")}const noe={"%":function(e,t){return(e*100).toFixed(t)},b:function(e){return Math.round(e).toString(2)},c:function(e){return e+""},d:SPt,e:function(e,t){return e.toExponential(t)},f:function(e,t){return e.toFixed(t)},g:function(e,t){return e.toPrecision(t)},o:function(e){return Math.round(e).toString(8)},p:function(e,t){return toe(e*100,t)},r:toe,s:xPt,X:function(e){return Math.round(e).toString(16).toUpperCase()},x:function(e){return Math.round(e).toString(16)}};function roe(e){return e}var ioe=Array.prototype.map,ooe=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function APt(e){var t=e.grouping===void 0||e.thousands===void 0?roe:CPt(ioe.call(e.grouping,Number),e.thousands+""),n=e.currency===void 0?"":e.currency[0]+"",r=e.currency===void 0?"":e.currency[1]+"",i=e.decimal+"",o=e.numerals===void 0?roe:EPt(ioe.call(e.numerals,String)),s=e.percent===void 0?"%":e.percent+"",a=e.minus+"",c=e.nan===void 0?"NaN":e.nan+"";function l(d){d=q9(d);var f=d.fill,p=d.align,g=d.sign,m=d.symbol,y=d.zero,v=d.width,w=d.comma,S=d.precision,C=d.trim,E=d.type;E==="n"?(w=!0,E="g"):noe[E]||(S===void 0&&(S=12),C=!0,E="g"),(y||f==="0"&&p==="=")&&(y=!0,f="0",p="=");var T=m==="$"?n:m==="#"&&/[boxX]/.test(E)?"0"+E.toLowerCase():"",x=m==="$"?r:/[%p]/.test(E)?s:"",O=noe[E],A=/[defgprs%]/.test(E);S=S===void 0?6:/[gprs]/.test(E)?Math.max(1,Math.min(21,S)):Math.max(0,Math.min(20,S));function L(U){var I=T,F=x,P,W,ee;if(E==="c")F=O(U)+F,U="";else{U=+U;var Y=U<0||1/U<0;if(U=isNaN(U)?c:O(Math.abs(U),S),C&&(U=kPt(U)),Y&&+U==0&&g!=="+"&&(Y=!1),I=(Y?g==="("?g:a:g==="-"||g==="("?"":g)+I,F=(E==="s"?ooe[8+V2e/3]:"")+F+(Y&&g==="("?")":""),A){for(P=-1,W=U.length;++P<W;)if(ee=U.charCodeAt(P),48>ee||ee>57){F=(ee===46?i+U.slice(P+1):U.slice(P))+F,U=U.slice(0,P);break}}}w&&!y&&(U=t(U,1/0));var X=I.length+U.length+F.length,Z=X<v?new Array(v-X+1).join(f):"";switch(w&&y&&(U=t(Z+U,Z.length?v-F.length:1/0),Z=""),p){case"<":U=I+U+F+Z;break;case"=":U=I+Z+U+F;break;case"^":U=Z.slice(0,X=Z.length>>1)+I+U+F+Z.slice(X);break;default:U=Z+I+U+F;break}return o(U)}return L.toString=function(){return d+""},L}function u(d,f){var p=l((d=q9(d),d.type="f",d)),g=Math.max(-8,Math.min(8,Math.floor(_Pt(f)/3)))*3,m=Math.pow(10,-g),y=ooe[8+g/3];return function(v){return p(m*v)+y}}return{format:l,formatPrefix:u}}var yk,W2e;IPt({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"});function IPt(e){return yk=APt(e),W2e=yk.format,yk.formatPrefix,yk}function RPt(){}var PPt=RPt,hD=E2e,OPt=PPt,NPt=RW,MPt=1/0,DPt=hD&&1/NPt(new hD([,-0]))[1]==MPt?function(e){return new hD(e)}:OPt,LPt=DPt,FPt=_W,jPt=ZEe,UPt=e2e,BPt=CW,$Pt=LPt,HPt=RW,zPt=200;function VPt(e,t,n){var r=-1,i=jPt,o=e.length,s=!0,a=[],c=a;if(n)s=!1,i=UPt;else if(o>=zPt){var l=t?null:$Pt(e);if(l)return HPt(l);s=!1,i=BPt,c=new FPt}else c=t?[]:a;e:for(;++r<o;){var u=e[r],d=t?t(u):u;if(u=n||u!==0?u:0,s&&d===d){for(var f=c.length;f--;)if(c[f]===d)continue e;t&&c.push(d),a.push(u)}
1585else i(c,d,n)||(c!==a&&c.push(d),a.push(u))}return a}var WPt=VPt,qPt=QO,GPt=x2e,KPt=1,YPt=2;function QPt(e,t,n,r){var i=n.length,o=i,s=!r;if(e==null)return!o;for(e=Object(e);i--;){var a=n[i];if(s&&a[2]?a[1]!==e[a[0]]:!(a[0]in e))return!1}for(;++i<o;){a=n[i];var c=a[0],l=e[c],u=a[1];if(s&&a[2]){if(l===void 0&&!(c in e))return!1}else{var d=new qPt;if(r)var f=r(l,u,c,e,t,d);if(!(f===void 0?GPt(u,l,KPt|YPt,r,d):f))return!1}}return!0}var XPt=QPt,JPt=jd;function ZPt(e){return e===e&&!JPt(e)}var q2e=ZPt,eOt=q2e,tOt=o2;function nOt(e){for(var t=tOt(e),n=t.length;n--;){var r=t[n],i=e[r];t[n]=[r,i,eOt(i)]}return t}var rOt=nOt;function iOt(e,t){return function(n){return n==null?!1:n[e]===t&&(t!==void 0||e in Object(n))}}var G2e=iOt,oOt=XPt,sOt=rOt,aOt=G2e;function cOt(e){var t=sOt(e);return t.length==1&&t[0][2]?aOt(t[0][0],t[0][1]):function(n){return n===e||oOt(n,e,t)}}var lOt=cOt,uOt=x2e,dOt=uEe,fOt=m2e,hOt=XV,pOt=q2e,mOt=G2e,gOt=ew,vOt=1,yOt=2;function bOt(e,t){return hOt(e)&&pOt(t)?mOt(gOt(e),t):function(n){var r=dOt(n,e);return r===void 0&&r===t?fOt(n,e):uOt(t,r,vOt|yOt)}}var wOt=bOt;function SOt(e){return function(t){return t==null?void 0:t[e]}}var _Ot=SOt,COt=i2;function EOt(e){return function(t){return COt(t,e)}}var TOt=EOt,kOt=_Ot,xOt=TOt,AOt=XV,IOt=ew;function ROt(e){return AOt(e)?kOt(IOt(e)):xOt(e)}var POt=ROt,OOt=lOt,NOt=wOt,MOt=tN,DOt=ja,LOt=POt;function FOt(e){return typeof e=="function"?e:e==null?MOt:typeof e=="object"?DOt(e)?NOt(e[0],e[1]):OOt(e):LOt(e)}var LW=FOt,jOt=LW,UOt=WPt;function BOt(e,t){return e&&e.length?UOt(e,jOt(t)):[]}var $Ot=BOt;const soe=io($Ot);var HOt=WCe,zOt=o2;function VOt(e,t){return e&&HOt(e,t,zOt)}var WOt=VOt,qOt=Xb;function GOt(e,t){return function(n,r){if(n==null)return n;if(!qOt(n))return e(n,r);for(var i=n.length,o=t?i:-1,s=Object(n);(t?o--:++o<i)&&r(s[o],o,s)!==!1;);return n}}var KOt=GOt,YOt=WOt,QOt=KOt,XOt=QOt(YOt),K2e=XOt,JOt=K2e,ZOt=Xb;function eNt(e,t){var n=-1,r=ZOt(e)?Array(e.length):[];return JOt(e,function(i,o,s){r[++n]=t(i,o,s)}),r}var tNt=eNt;function nNt(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}var rNt=nNt,aoe=nN;function iNt(e,t){if(e!==t){var n=e!==void 0,r=e===null,i=e===e,o=aoe(e),s=t!==void 0,a=t===null,c=t===t,l=aoe(t);if(!a&&!l&&!o&&e>t||o&&s&&c&&!a&&!l||r&&s&&c||!n&&c||!i)return 1;if(!r&&!o&&!l&&e<t||l&&n&&i&&!r&&!o||a&&n&&i||!s&&i||!c)return-1}return 0}var oNt=iNt,sNt=oNt;function aNt(e,t,n){for(var r=-1,i=e.criteria,o=t.criteria,s=i.length,a=n.length;++r<s;){var c=sNt(i[r],o[r]);if(c){if(r>=a)return c;var l=n[r];return c*(l=="desc"?-1:1)}}return e.index-t.index}var cNt=aNt,pD=rN,lNt=i2,uNt=LW,dNt=tNt,fNt=rNt,hNt=n2,pNt=cNt,mNt=tN,gNt=ja;function vNt(e,t,n){t.length?t=pD(t,function(o){return gNt(o)?function(s){return lNt(s,o.length===1?o[0]:o)}:o}):t=[mNt];var r=-1;t=pD(t,hNt(uNt));var i=dNt(e,function(o,s,a){var c=pD(t,function(l){return l(o)});return{criteria:c,index:++r,value:o}});return fNt(i,function(o,s){return pNt(o,s,n)})}var yNt=vNt,bNt=v2e,wNt=yNt,SNt=QV,coe=aEe;SNt(function(e,t){if(e==null)return[];var n=t.length;return n>1&&coe(e,t[0],t[1])?t=[]:n>2&&coe(t[0],t[1],t[2])&&(t=[t[0]]),wNt(e,bNt(t,1),[])});var loe=ZO;loe&&loe.isDate;var C0=[function(e){return e.setMilliseconds(0)},function(e){return e.setSeconds(0)},function(e){return e.setMinutes(0)},function(e){return e.setHours(0)},function(e){return e.setDate(1)},function(e){return e.setMonth(0)}],_Nt={millisecond:[],second:C0.slice(0,1),minute:C0.slice(0,2),hour:C0.slice(0,3),day:C0.slice(0,4),month:C0.slice(0,5),year:C0.slice(0,6)},CNt=function(e){return function(t){return _Nt[e].forEach((function(n){n(t)})),t}},ENt=function(e){var t=e.format,n=t===void 0?"native":t,r=e.precision,i=r===void 0?"millisecond":r,o=e.useUTC,s=o===void 0||o,a=CNt(i);return function(c){if(c===void 0)return c;if(n==="native"||c instanceof Date)return a(c);var l=s?XEe(n):YEe(n);return a(l(c))}},TNt=function(e,t,n,r){var i,o,s,a,c=e.min,l=c===void 0?0:c,u=e.max,d=u===void 0?"auto":u,f=e.stacked,p=f!==void 0&&f,g=e.reverse,m=g!==void 0&&g,y=e.clamp,v=y!==void 0&&y,w=e.nice,S=w!==void 0&&w;l==="auto"?i=p===!0?(o=t.minStacked)!=null?o:0:t.min:i=l,d==="auto"?s=p===!0?(a=t.maxStacked)!=null?a:0:t.max:s=d;
1585var C=_Ee().rangeRound(r==="x"?[0,n]:[n,0]).domain(m?[s,i]:[i,s]).clamp(v);return S===!0?C.nice():typeof S=="number"&&C.nice(S),kNt(C,p)},kNt=function(e,t){t===void 0&&(t=!1);var n=e;return n.type="linear",n.stacked=t,n},xNt=function(e,t,n){var r=TTt().range([0,n]).domain(t.all);return r.type="point",r},ANt=function(e,t,n,r){var i=e.round,o=i===void 0||i,s=oW().range(r==="x"?[0,n]:[n,0]).domain(t.all).round(o);return INt(s)},INt=function(e){var t=e;return t.type="band",t},RNt=function(e,t,n){var r,i,o=e.format,s=o===void 0?"native":o,a=e.precision,c=a===void 0?"millisecond":a,l=e.min,u=l===void 0?"auto":l,d=e.max,f=d===void 0?"auto":d,p=e.useUTC,g=p===void 0||p,m=e.nice,y=m!==void 0&&m,v=ENt({format:s,precision:c,useUTC:g});r=u==="auto"?v(t.min):s!=="native"?v(u):u,i=f==="auto"?v(t.max):s!=="native"?v(f):f;var w=g?gxt():mxt();w.range([0,n]),r&&i&&w.domain([r,i]),y===!0?w.nice():typeof y!="object"&&typeof y!="number"||w.nice(y);var S=w;return S.type="time",S.useUTC=g,S},PNt=function(e,t,n,r){var i,o=e.base,s=o===void 0?10:o,a=e.min,c=a===void 0?"auto":a,l=e.max,u=l===void 0?"auto":l;if(t.all.some((function(m){return m===0})))throw new Error("a log scale domain must not include or cross zero");var d,f,p=!1;if(t.all.filter((function(m){return m!=null})).forEach((function(m){p||(i===void 0?i=Math.sign(m):Math.sign(m)!==i&&(p=!0))})),p)throw new Error("a log scale domain must be strictly-positive or strictly-negative");d=c==="auto"?t.min:c,f=u==="auto"?t.max:u;var g=EEe().domain([d,f]).rangeRound(r==="x"?[0,n]:[n,0]).base(s).nice();return g.type="log",g},ONt=function(e,t,n,r){var i,o,s=e.constant,a=s===void 0?1:s,c=e.min,l=c===void 0?"auto":c,u=e.max,d=u===void 0?"auto":u,f=e.reverse,p=f!==void 0&&f;i=l==="auto"?t.min:l,o=d==="auto"?t.max:d;var g=TEe().constant(a).rangeRound(r==="x"?[0,n]:[n,0]).nice();p===!0?g.domain([o,i]):g.domain([i,o]);var m=g;return m.type="symlog",m};function FW(e,t,n,r){switch(e.type){case"linear":return TNt(e,t,n,r);case"point":return xNt(e,t,n);case"band":return ANt(e,t,n,r);case"time":return RNt(e,t,n);case"log":return PNt(e,t,n,r);case"symlog":return ONt(e,t,n,r);default:throw new Error("invalid scale spec")}}var Y2e=function(e){var t=e.bandwidth();if(t===0)return e;var n=t/2;return e.round()&&(n=Math.round(n)),function(r){var i;return((i=e(r))!=null?i:0)+n}},Q2e={millisecond:[$C,$C],second:[D9,D9],minute:[PEe,jEe],hour:[OEe,UEe],day:[ro((function(e){return e.setHours(0,0,0,0)}),(function(e,t){return e.setDate(e.getDate()+t)}),(function(e,t){return(t.getTime()-e.getTime())/864e5}),(function(e){return Math.floor(e.getTime()/864e5)})),ro((function(e){return e.setUTCHours(0,0,0,0)}),(function(e,t){return e.setUTCDate(e.getUTCDate()+t)}),(function(e,t){return(t.getTime()-e.getTime())/864e5}),(function(e){return Math.floor(e.getTime()/864e5)}))],week:[n3,r3],sunday:[n3,r3],monday:[HC,zC],tuesday:[NEe,BEe],wednesday:[MEe,$Ee],thursday:[Av,Iv],friday:[DEe,HEe],saturday:[LEe,zEe],month:[FEe,VEe],year:[ym,bm]},NNt=Object.keys(Q2e),MNt=new RegExp("^every\\s*(\\d+)?\\s*("+NNt.join("|")+")s?$","i"),X2e=function(e,t){if(Array.isArray(t))return t;if(typeof t=="string"&&"useUTC"in e){var n=t.match(MNt);if(n){var r=n[1],i=n[2],o=Q2e[i][e.useUTC?1:0];if(i==="day"){var s,a,c=e.domain(),l=c[0],u=c[1],d=new Date(u);return d.setDate(d.getDate()+1),(s=(a=o.every(Number(r??1)))==null?void 0:a.range(l,d))!=null?s:[]}if(r===void 0)return e.ticks(o);var f=o.every(Number(r));if(f)return e.ticks(f)}throw new Error("Invalid tickValues: "+t)}if("ticks"in e){if(t===void 0)return e.ticks();if(typeof(p=t)=="number"&&isFinite(p)&&Math.floor(p)===p)return e.ticks(t)}var p;return e.domain()};function qc(){return qc=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},qc.apply(this,arguments)}var J2e=function(e){var t,n=e.axis,r=e.scale,i=e.ticksPosition,o=e.tickValues,s=e.tickSize,a=e.tickPadding,c=e.tickRotation,l=e.truncateTickAt,u=e.engine,d=u===void 0?"svg":u,f=X2e(r,o),p=mPt[d],g="bandwidth"in r?Y2e(r):r,m={lineX:0,lineY:0},y={textX:0,textY:0},v=typeof document=="object"&&document.dir==="rtl",w=p.align.center,S=p.baseline.center;return n==="x"?(t=function(C){var E;return{x:(E=g(C))!=null?E:0,y:0}},m.lineY=s*(i==="after"?1:-1),y.textY=(s+a)*(i==="after"?1:-1),S=i==="after"?p.baseline.top:p.baseline.bottom,c===0?w=p.align.center:i==="after"&&c<0||i==="before"&&c>0?(w=p.align[v?"left":"right"],S=p.baseline.center):(i==="after"&&c>0||i==="before"&&c<0)&&(w=p.align[v?"right":"left"],S=p.baseline.center)):(t=function(C){var E;return{x:0,y:(E=g(C))!=null?E:0}},m.lineX=s*(i==="after"?1:-1),y.textX=(s+a)*(i==="after"?1:-1),w=i==="after"?p.align.left:p.align.right),{ticks:f.map((function(C){var E=typeof C=="string"?(function(T){var x=String(T).length;return l&&l>0&&x>l?""+String(T).slice(0,l).concat("..."):""+T})(C):C;return qc({key:C instanceof Date?""+C.valueOf():""+C,value:E},t(C),m,y)})),textAlign:w,textBaseline:S}},Z2e=function(e,t){if(e===void 0||typeof e=="function")return e;if(t.type==="time"){var n=uN(e);return function(r){return n(r instanceof Date?r:new Date(r))}}return W2e(e)},G9=function(e){var t,n=e.width,r=e.height,i=e.scale,o=e.axis,s=e.values,a=(t=s,(Array.isArray(t)?s:void 0)||X2e(i,s)),c="bandwidth"in i?Y2e(i):i,l=o==="x"?a.map((function(u){var d,f;return{key:u instanceof Date?""+u.valueOf():""+u,x1:(d=c(u))!=null?d:0,x2:(f=c(u))!=null?f:0,y1:0,y2:r}})):a.map((function(u){var d,f;return{key:u instanceof Date?""+u.valueOf():""+u,x1:0,x2:n,y1:(d=c(u))!=null?d:0,y2:(f=c(u))!=null?f:0}}));return l},DNt=b.memo((function(e){var t,n=e.value,r=e.format,i=e.lineX,o=e.lineY,s=e.onClick,a=e.textBaseline,c=e.textAnchor,l=e.animatedProps,u=hl(),d=u.axis.ticks.line,f=u.axis.ticks.text,p=(t=r==null?void 0:r(n))!=null?t:n,g=b.useMemo((function(){var m={opacity:l.opacity};return s?{style:qc({},m,{cursor:"pointer"}),onClick:function(y){return s(y,p)}}:{style:m}}),[l.opacity,s,p]);return h.jsxs(Wc.g,qc({transform:l.transform},g,{children:[h.jsx("line",{x1:0,x2:i,y1:0,y2:o,style:d}),f.outlineWidth>0&&h.jsx(Wc.text,{dominantBaseline:a,textAnchor:c,transform:l.textTransform,style:f,strokeWidth:2*f.outlineWidth,stroke:f.outlineColor,strokeLinejoin:"round",children:""+p}),h.jsx(Wc.text,{dominantBaseline:a,textAnchor:c,transform:l.textTransform,style:N2e(f),children:""+p})]}))})),LNt=function(e){var t=e.axis,n=e.scale,r=e.x,i=r===void 0?0:r,o=e.y,s=o===void 0?0:o,a=e.length,c=e.ticksPosition,l=e.tickValues,u=e.tickSize,d=u===void 0?5:u,f=e.tickPadding,p=f===void 0?5:f,g=e.tickRotation,m=g===void 0?0:g,y=e.format,v=e.renderTick,w=v===void 0?DNt:v,S=e.truncateTickAt,C=e.legend,E=e.legendPosition,T=E===void 0?"end":E,x=e.legendOffset,O=x===void 0?0:x,A=e.onClick,L=e.ariaHidden,U=hl(),I=U.axis.legend.text,F=b.useMemo((function(){return Z2e(y,n)}),[y,n]),P=J2e({axis:t,scale:n,ticksPosition:c,tickValues:l,tickSize:d,tickPadding:p,tickRotation:m,truncateTickAt:S}),W=P.ticks,ee=P.textAlign,Y=P.textBaseline,X=null;if(C!==void 0){var Z,G=0,Q=0,q=0;t==="y"?(q=-90,G=O,T==="start"?(Z="start",Q=a):T==="middle"?(Z="middle",Q=a/2):T==="end"&&(Z="end")):(Q=O,T==="start"?Z="start":T==="middle"?(Z="middle",G=a/2):T==="end"&&(Z="end",G=a)),X=h.jsxs(h.Fragment,{children:[I.outlineWidth>0&&h.jsx("text",{transform:"translate("+G+", "+Q+") rotate("+q+")",textAnchor:Z,style:qc({dominantBaseline:"central"},I),strokeWidth:2*I.outlineWidth,stroke:I.outlineColor,strokeLinejoin:"round",children:C}),h.jsx("text",{transform:"translate("+G+", "+Q+") rotate("+q+")",textAnchor:Z,style:qc({dominantBaseline:"central"},I),children:C})]})}
1585var z=s2(),ue=z.animate,ge=z.config,ae=VO({transform:"translate("+i+","+s+")",lineX2:t==="x"?a:0,lineY2:t==="x"?0:a,config:ge,immediate:!ue}),j=b.useCallback((function(oe){return{opacity:1,transform:"translate("+oe.x+","+oe.y+")",textTransform:"translate("+oe.textX+","+oe.textY+") rotate("+m+")"}}),[m]),B=b.useCallback((function(oe){return{opacity:0,transform:"translate("+oe.x+","+oe.y+")",textTransform:"translate("+oe.textX+","+oe.textY+") rotate("+m+")"}}),[m]),re=NCe(W,{keys:function(oe){return oe.key},initial:j,from:B,enter:j,update:j,leave:{opacity:0},config:ge,immediate:!ue});return h.jsxs(Wc.g,{transform:ae.transform,"aria-hidden":L,children:[re((function(oe,ne,J,Se){return b.createElement(w,qc({tickIndex:Se,format:F,rotate:m,textBaseline:Y,textAnchor:ee,truncateTickAt:S,animatedProps:oe},ne,A?{onClick:A}:{}))})),h.jsx(Wc.line,{style:U.axis.domain.line,x1:0,x2:ae.lineX2,y1:0,y2:ae.lineY2}),X]})},FNt=b.memo(LNt),eTe=["top","right","bottom","left"];b.memo((function(e){var t=e.xScale,n=e.yScale,r=e.width,i=e.height,o={top:e.top,right:e.right,bottom:e.bottom,left:e.left};return h.jsx(h.Fragment,{children:eTe.map((function(s){var a=o[s];if(!a)return null;var c=s==="top"||s==="bottom";return h.jsx(FNt,qc({},a,{axis:c?"x":"y",x:s==="right"?r:0,y:s==="bottom"?i:0,scale:c?t:n,length:c?r:i,ticksPosition:s==="top"||s==="left"?"before":"after",truncateTickAt:a.truncateTickAt}),s)}))})}));var jNt=b.memo((function(e){var t=e.animatedProps,n=hl();return h.jsx(Wc.line,qc({},t,n.grid.line))})),uoe=b.memo((function(e){var t=e.lines,n=s2(),r=n.animate,i=n.config,o=NCe(t,{keys:function(s){return s.key},initial:function(s){return{opacity:1,x1:s.x1,x2:s.x2,y1:s.y1,y2:s.y2}},from:function(s){return{opacity:0,x1:s.x1,x2:s.x2,y1:s.y1,y2:s.y2}},enter:function(s){return{opacity:1,x1:s.x1,x2:s.x2,y1:s.y1,y2:s.y2}},update:function(s){return{opacity:1,x1:s.x1,x2:s.x2,y1:s.y1,y2:s.y2}},leave:{opacity:0},config:i,immediate:!r});return h.jsx("g",{children:o((function(s,a){return b.createElement(jNt,qc({},a,{key:a.key,animatedProps:s}))}))})}));b.memo((function(e){var t=e.width,n=e.height,r=e.xScale,i=e.yScale,o=e.xValues,s=e.yValues,a=b.useMemo((function(){return!!r&&G9({width:t,height:n,scale:r,axis:"x",values:o})}),[r,o,t,n]),c=b.useMemo((function(){return!!i&&G9({width:t,height:n,scale:i,axis:"y",values:s})}),[n,t,i,s]);return h.jsxs(h.Fragment,{children:[a&&h.jsx(uoe,{lines:a}),c&&h.jsx(uoe,{lines:c})]})}));var UNt=function(e,t){var n,r=t.axis,i=t.scale,o=t.x,s=o===void 0?0:o,a=t.y,c=a===void 0?0:a,l=t.length,u=t.ticksPosition,d=t.tickValues,f=t.tickSize,p=f===void 0?5:f,g=t.tickPadding,m=g===void 0?5:g,y=t.tickRotation,v=y===void 0?0:y,w=t.format,S=t.legend,C=t.legendPosition,E=C===void 0?"end":C,T=t.legendOffset,x=T===void 0?0:T,O=t.theme,A=J2e({axis:r,scale:i,ticksPosition:u,tickValues:d,tickSize:p,tickPadding:m,tickRotation:v,engine:"canvas"}),L=A.ticks,U=A.textAlign,I=A.textBaseline;e.save(),e.translate(s,c),e.textAlign=U,e.textBaseline=I;var F=O.axis.ticks.text;e.font=(F.fontWeight?F.fontWeight+" ":"")+F.fontSize+"px "+F.fontFamily,((n=O.axis.domain.line.strokeWidth)!=null?n:0)>0&&(e.lineWidth=Number(O.axis.domain.line.strokeWidth),e.lineCap="square",O.axis.domain.line.stroke&&(e.strokeStyle=O.axis.domain.line.stroke),e.beginPath(),e.moveTo(0,0),e.lineTo(r==="x"?l:0,r==="x"?0:l),e.stroke());var P=typeof w=="function"?w:function(Z){return""+Z};if(L.forEach((function(Z){var G;((G=O.axis.ticks.line.strokeWidth)!=null?G:0)>0&&(e.lineWidth=Number(O.axis.ticks.line.strokeWidth),e.lineCap="square",O.axis.ticks.line.stroke&&(e.strokeStyle=O.axis.ticks.line.stroke),e.beginPath(),e.moveTo(Z.x,Z.y),e.lineTo(Z.x+Z.lineX,Z.y+Z.lineY),e.stroke());var Q=P(Z.value);e.save(),e.translate(Z.x+Z.textX,Z.y+Z.textY),e.rotate(VC(v)),F.outlineWidth>0&&(e.strokeStyle=F.outlineColor,e.lineWidth=2*F.outlineWidth,e.lineJoin="round",e.strokeText(""+Q,0,0)),O.axis.ticks.text.fill&&(e.fillStyle=F.fill),e.fillText(""+Q,0,0),e.restore()})),S!==void 0){var W=0,ee=0,Y=0,X="center";r==="y"?(Y=-90,W=x,E==="start"?(X="start",ee=l):E==="middle"?(X="center",ee=l/2):E==="end"&&(X="end")):(ee=x,E==="start"?X="start":E==="middle"?(X="center",W=l/2):E==="end"&&(X="end",W=l)),e.translate(W,ee),e.rotate(VC(Y)),e.font=(O.axis.legend.text.fontWeight?O.axis.legend.text.fontWeight+" ":"")+O.axis.legend.text.fontSize+"px "+O.axis.legend.text.fontFamily,O.axis.legend.text.fill&&(e.fillStyle=O.axis.legend.text.fill),e.textAlign=X,e.textBaseline="middle",e.fillText(S,0,0)}
1585e.restore()},BNt=function(e,t){var n=t.xScale,r=t.yScale,i=t.width,o=t.height,s=t.top,a=t.right,c=t.bottom,l=t.left,u=t.theme,d={top:s,right:a,bottom:c,left:l};eTe.forEach((function(f){var p=d[f];if(!p)return null;var g=f==="top"||f==="bottom",m=f==="top"||f==="left"?"before":"after",y=g?n:r,v=Z2e(p.format,y);UNt(e,qc({},p,{axis:g?"x":"y",x:f==="right"?i:0,y:f==="bottom"?o:0,scale:y,format:v,length:g?i:o,ticksPosition:m,theme:u}))}))},doe=function(e,t){var n=t.width,r=t.height,i=t.scale,o=t.axis,s=t.values;G9({width:n,height:r,scale:i,axis:o,values:s}).forEach((function(a){e.beginPath(),e.moveTo(a.x1,a.y1),e.lineTo(a.x2,a.y2),e.stroke()}))},$Nt=K2e;function HNt(e,t){var n=[];return $Nt(e,function(r,i,o){t(r,i,o)&&n.push(r)}),n}var zNt=HNt,VNt=S2e,WNt=zNt,qNt=LW,GNt=ja;function KNt(e,t){var n=GNt(e)?VNt:WNt;return n(e,qNt(t))}var YNt=KNt;const QNt=io(YNt);var XNt=Bm,JNt=gu,ZNt="[object Number]";function e4t(e){return typeof e=="number"||JNt(e)&&XNt(e)==ZNt}var t4t=e4t;const foe=io(t4t);function n4t(e,t){for(var n=-1,r=e==null?0:e.length;++n<r&&t(e[n],n,e)!==!1;);return e}var r4t=n4t,i4t=Jb,o4t=o2;function s4t(e,t){return e&&i4t(t,o4t(t),e)}var a4t=s4t,c4t=Jb,l4t=r2;function u4t(e,t){return e&&c4t(t,l4t(t),e)}var d4t=u4t,f4t=Jb,h4t=PW;function p4t(e,t){return f4t(e,h4t(e),t)}var m4t=p4t,g4t=IW,v4t=VV,y4t=PW,b4t=_2e,w4t=Object.getOwnPropertySymbols,S4t=w4t?function(e){for(var t=[];e;)g4t(t,y4t(e)),e=v4t(e);return t}:b4t,tTe=S4t,_4t=Jb,C4t=tTe;function E4t(e,t){return _4t(e,C4t(e),t)}var T4t=E4t,k4t=w2e,x4t=tTe,A4t=r2;function I4t(e){return k4t(e,A4t,x4t)}var nTe=I4t,R4t=Object.prototype,P4t=R4t.hasOwnProperty;function O4t(e){var t=e.length,n=new e.constructor(t);return t&&typeof e[0]=="string"&&P4t.call(e,"index")&&(n.index=e.index,n.input=e.input),n}var N4t=O4t,M4t=zV;function D4t(e,t){var n=t?M4t(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}var L4t=D4t,F4t=/\w*$/;function j4t(e){var t=new e.constructor(e.source,F4t.exec(e));return t.lastIndex=e.lastIndex,t}var U4t=j4t,hoe=Gb,poe=hoe?hoe.prototype:void 0,moe=poe?poe.valueOf:void 0;function B4t(e){return moe?Object(moe.call(e)):{}}var $4t=B4t,H4t=zV,z4t=L4t,V4t=U4t,W4t=$4t,q4t=KCe,G4t="[object Boolean]",K4t="[object Date]",Y4t="[object Map]",Q4t="[object Number]",X4t="[object RegExp]",J4t="[object Set]",Z4t="[object String]",e5t="[object Symbol]",t5t="[object ArrayBuffer]",n5t="[object DataView]",r5t="[object Float32Array]",i5t="[object Float64Array]",o5t="[object Int8Array]",s5t="[object Int16Array]",a5t="[object Int32Array]",c5t="[object Uint8Array]",l5t="[object Uint8ClampedArray]",u5t="[object Uint16Array]",d5t="[object Uint32Array]";function f5t(e,t,n){var r=e.constructor;switch(t){case t5t:return H4t(e);case G4t:case K4t:return new r(+e);case n5t:return z4t(e,n);case r5t:case i5t:case o5t:case s5t:case a5t:case c5t:case l5t:case u5t:case d5t:return q4t(e,n);case Y4t:return new r;case Q4t:case Z4t:return new r(e);case X4t:return V4t(e);case J4t:return new r;case e5t:return W4t(e)}}var h5t=f5t,p5t=$N,m5t=gu,g5t="[object Map]";function v5t(e){return m5t(e)&&p5t(e)==g5t}var y5t=v5t,b5t=y5t,w5t=n2,goe=ZO,voe=goe&&goe.isMap,S5t=voe?w5t(voe):b5t,_5t=S5t,C5t=$N,E5t=gu,T5t="[object Set]";function k5t(e){return E5t(e)&&C5t(e)==T5t}var x5t=k5t,A5t=x5t,I5t=n2,yoe=ZO,boe=yoe&&yoe.isSet,R5t=boe?I5t(boe):A5t,P5t=R5t,O5t=QO,N5t=r4t,M5t=YV,D5t=a4t,L5t=d4t,F5t=qCe,j5t=YCe,U5t=m4t,B5t=T4t,$5t=C2e,H5t=nTe,z5t=$N,V5t=N4t,W5t=h5t,q5t=XCe,G5t=ja,K5t=JO,Y5t=_5t,Q5t=jd,X5t=P5t,J5t=o2,Z5t=r2,eMt=1,tMt=2,nMt=4,rTe="[object Arguments]",rMt="[object Array]",iMt="[object Boolean]",oMt="[object Date]",sMt="[object Error]",iTe="[object Function]",aMt="[object GeneratorFunction]",cMt="[object Map]",lMt="[object Number]",oTe="[object Object]",uMt="[object RegExp]",dMt="[object Set]",fMt="[object String]",hMt="[object Symbol]",pMt="[object WeakMap]",mMt="[object ArrayBuffer]",gMt="[object DataView]",vMt="[object Float32Array]",yMt="[object Float64Array]",bMt="[object Int8Array]",wMt="[object Int16Array]",SMt="[object Int32Array]",_Mt="[object Uint8Array]",CMt="[object Uint8ClampedArray]",EMt="[object Uint16Array]",TMt="[object Uint32Array]",_r={};_r[rTe]=_r[rMt]=_r[mMt]=_r[gMt]=_r[iMt]=_r[oMt]=_r[vMt]=_r[yMt]=_r[bMt]=_r[wMt]=_r[SMt]=_r[cMt]=_r[lMt]=_r[oTe]=_r[uMt]=_r[dMt]=_r[fMt]=_r[hMt]=_r[_Mt]=_r[CMt]=_r[EMt]=_r[TMt]=!0;_r[sMt]=_r[iTe]=_r[pMt]=!1;function hA(e,t,n,r,i,o){var s,a=t&eMt,c=t&tMt,l=t&nMt;if(n&&(s=i?n(e,r,i,o):n(e)),s!==void 0)return s;if(!Q5t(e))return e;var u=G5t(e);
1585if(u){if(s=V5t(e),!a)return j5t(e,s)}else{var d=z5t(e),f=d==iTe||d==aMt;if(K5t(e))return F5t(e,a);if(d==oTe||d==rTe||f&&!i){if(s=c||f?{}:q5t(e),!a)return c?B5t(e,L5t(s,e)):U5t(e,D5t(s,e))}else{if(!_r[d])return i?e:{};s=W5t(e,d,a)}}o||(o=new O5t);var p=o.get(e);if(p)return p;o.set(e,s),X5t(e)?e.forEach(function(y){s.add(hA(y,t,n,y,e,o))}):Y5t(e)&&e.forEach(function(y,v){s.set(v,hA(y,t,n,v,e,o))});var g=l?c?H5t:$5t:c?Z5t:J5t,m=u?void 0:g(e);return N5t(m||e,function(y,v){m&&(v=y,y=e[v]),M5t(s,v,hA(y,t,n,v,e,o))}),s}var kMt=hA;function xMt(e,t,n){var r=-1,i=e.length;t<0&&(t=-t>i?0:i+t),n=n>i?i:n,n<0&&(n+=i),i=t>n?0:n-t>>>0,t>>>=0;for(var o=Array(i);++r<i;)o[r]=e[r+t];return o}var AMt=xMt,IMt=i2,RMt=AMt;function PMt(e,t){return t.length<2?e:IMt(e,RMt(t,0,-1))}var OMt=PMt,NMt=Zb,MMt=vEe,DMt=OMt,woe=ew,LMt=Object.prototype,FMt=LMt.hasOwnProperty;function jMt(e,t){t=NMt(t,e);var n=-1,r=t.length;if(!r)return!0;for(;++n<r;){var i=woe(t[n]);if(i==="__proto__"&&!FMt.call(e,"__proto__")||(i==="constructor"||i==="prototype")&&n<r-1)return!1}var o=DMt(e,t);return o==null||delete o[woe(MMt(t))]}var UMt=jMt,BMt=GV;function $Mt(e){return BMt(e)?void 0:e}var HMt=$Mt,zMt=rN,VMt=kMt,WMt=UMt,qMt=Zb,GMt=Jb,KMt=HMt,YMt=y2e,QMt=nTe,XMt=1,JMt=2,ZMt=4,e6t=YMt(function(e,t){var n={};if(e==null)return n;var r=!1;t=zMt(t,function(o){return o=qMt(o,e),r||(r=o.length>1),o}),GMt(e,QMt(e),n),r&&(n=VMt(n,XMt|JMt|ZMt,KMt));for(var i=t.length;i--;)WMt(n,t[i]);return n}),t6t=e6t;const n6t=io(t6t);function WC(){return WC=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},WC.apply(this,arguments)}var Soe={noteWidth:120,noteTextOffset:8},r6t=function(e){var t=typeof e;return t==="string"||t==="function"},d3=function(e){return e.type==="circle"},_oe=function(e){return e.type==="dot"},f3=function(e){return e.type==="rect"},i6t=function(e){var t=e.data,n=e.annotations,r=e.getPosition,i=e.getDimensions;return n.reduce((function(o,s){var a=s.offset||0;return[].concat(o,QNt(t,s.match).map((function(c){var l=r(c),u=i(c);return(d3(s)||f3(s))&&(u.size=u.size+2*a,u.width=u.width+2*a,u.height=u.height+2*a),WC({},n6t(s,["match","offset"]),l,u,{size:s.size||u.size,datum:c})})))}),[])},o6t=function(e,t,n,r){var i=Math.atan2(r-t,n-e);return pPt(fPt(i))},s6t=function(e){var t,n,r=e.x,i=e.y,o=e.noteX,s=e.noteY,a=e.noteWidth,c=a===void 0?Soe.noteWidth:a,l=e.noteTextOffset,u=l===void 0?Soe.noteTextOffset:l;if(foe(o))t=r+o;else{if(o.abs===void 0)throw new Error("noteX should be either a number or an object containing an 'abs' property");t=o.abs}if(foe(s))n=i+s;else{if(s.abs===void 0)throw new Error("noteY should be either a number or an object containing an 'abs' property");n=s.abs}var d=r,f=i,p=o6t(r,i,t,n);if(d3(e)){var g=hPt(VC(p),e.size/2);d+=g.x,f+=g.y}if(f3(e)){var m=Math.round((p+90)/45)%8;m===0&&(f-=e.height/2),m===1&&(d+=e.width/2,f-=e.height/2),m===2&&(d+=e.width/2),m===3&&(d+=e.width/2,f+=e.height/2),m===4&&(f+=e.height/2),m===5&&(d-=e.width/2,f+=e.height/2),m===6&&(d-=e.width/2),m===7&&(d-=e.width/2,f-=e.height/2)}var y=t,v=t;return(p+90)%360>180?(y-=c,v-=c):v+=c,{points:[[d,f],[t,n],[v,n]],text:[y,n-u],angle:p+90}},a6t=function(e){var t=e.data,n=e.annotations,r=e.getPosition,i=e.getDimensions;return b.useMemo((function(){return i6t({data:t,annotations:n,getPosition:r,getDimensions:i})}),[t,n,r,i])},c6t=function(e){var t=e.annotations;return b.useMemo((function(){return t.map((function(n){return WC({},n,{computed:s6t(WC({},n))})}))}),[t])},Coe=function(e,t){t.forEach((function(n,r){var i=n[0],o=n[1];r===0?e.moveTo(i,o):e.lineTo(i,o)}))},l6t=function(e,t){var n=t.annotations,r=t.theme;n.length!==0&&(e.save(),n.forEach((function(i){if(!r6t(i.note))throw new Error("note is invalid for canvas implementation");r.annotations.link.outlineWidth>0&&(e.lineCap="square",e.strokeStyle=r.annotations.link.outlineColor,e.lineWidth=r.annotations.link.strokeWidth+2*r.annotations.link.outlineWidth,e.beginPath(),Coe(e,i.computed.points),e.stroke(),e.lineCap="butt"),d3(i)&&r.annotations.outline.outlineWidth>0&&(e.strokeStyle=r.annotations.outline.outlineColor,e.lineWidth=r.annotations.outline.strokeWidth+2*r.annotations.outline.outlineWidth,e.beginPath(),e.arc(i.x,i.y,i.size/2,0,2*Math.PI),e.stroke()),_oe(i)&&r.annotations.symbol.outlineWidth>0&&(e.strokeStyle=r.annotations.symbol.outlineColor,e.lineWidth=2*r.annotations.symbol.outlineWidth,e.beginPath(),e.arc(i.x,i.y,i.size/2,0,2*Math.PI),e.stroke()),f3(i)&&r.annotations.outline.outlineWidth>0&&(e.strokeStyle=r.annotations.outline.outlineColor,e.lineWidth=r.annotations.outline.strokeWidth+2*r.annotations.outline.outlineWidth,e.beginPath(),e.rect(i.x-i.width/2,i.y-i.height/2,i.width,i.height),e.stroke()),e.strokeStyle=r.annotations.link.stroke,e.lineWidth=r.annotations.link.strokeWidth,e.beginPath(),Coe(e,i.computed.points),e.stroke(),d3(i)&&(e.strokeStyle=r.annotations.outline.stroke,e.lineWidth=r.annotations.outline.strokeWidth,e.beginPath(),e.arc(i.x,i.y,i.size/2,0,2*Math.PI),e.stroke()),_oe(i)&&(e.fillStyle=r.annotations.symbol.fill,e.beginPath(),e.arc(i.x,i.y,i.size/2,0,2*Math.PI),e.fill()),f3(i)&&(e.strokeStyle=r.annotations.outline.stroke,e.lineWidth=r.annotations.outline.strokeWidth,e.beginPath(),e.rect(i.x-i.width/2,i.y-i.height/2,i.width,i.height),e.stroke()),typeof i.note=="function"?i.note(e,{datum:i.datum,x:i.computed.text[0],y:i.computed.text[1],theme:r}):(e.font=r.annotations.text.fontSize+"px "+r.annotations.text.fontFamily,e.textAlign="left",e.textBaseline="alphabetic",e.fillStyle=r.annotations.text.fill,e.strokeStyle=r.annotations.text.outlineColor,e.lineWidth=2*r.annotations.text.outlineWidth,r.annotations.text.outlineWidth>0&&(e.lineJoin="round",e.strokeText(i.note,i.computed.text[0],i.computed.text[1]),e.lineJoin="miter"),e.fillText(i.note,i.computed.text[0],i.computed.text[1]))}
1585)),e.restore())};function h3(){return h3=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},h3.apply(this,arguments)}function Eoe(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function u6t(e,t){var n=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=(function(i,o){if(i){if(typeof i=="string")return Eoe(i,o);var s=Object.prototype.toString.call(i).slice(8,-1);return s==="Object"&&i.constructor&&(s=i.constructor.name),s==="Map"||s==="Set"?Array.from(i):s==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(s)?Eoe(i,o):void 0}})(e))||t){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
1586In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var sTe={nivo:["#e8c1a0","#f47560","#f1e15b","#e8a838","#61cdbb","#97e3d5"],category10:vxt,accent:yxt,dark2:bxt,paired:wxt,pastel1:Sxt,pastel2:_xt,set1:Cxt,set2:Ext,set3:JEe,tableau10:Txt},d6t=Object.keys(sTe),aTe={brown_blueGreen:dN,purpleRed_green:fN,pink_yellowGreen:hN,purple_orange:pN,red_blue:mN,red_grey:gN,red_yellow_blue:vN,red_yellow_green:yN,spectral:bN},f6t=Object.keys(aTe),h6t={brown_blueGreen:kxt,purpleRed_green:xxt,pink_yellowGreen:Axt,purple_orange:Ixt,red_blue:Rxt,red_grey:Pxt,red_yellow_blue:Oxt,red_yellow_green:Nxt,spectral:Mxt},cTe={blues:ON,greens:NN,greys:MN,oranges:FN,purples:DN,reds:LN,blue_green:wN,blue_purple:SN,green_blue:_N,orange_red:CN,purple_blue_green:EN,purple_blue:TN,purple_red:kN,red_purple:xN,yellow_green_blue:AN,yellow_green:IN,yellow_orange_brown:RN,yellow_orange_red:PN},p6t=Object.keys(cTe),m6t={blues:Gxt,greens:Kxt,greys:Yxt,oranges:Jxt,purples:Qxt,reds:Xxt,turbo:aAt,viridis:cAt,inferno:uAt,magma:lAt,plasma:dAt,cividis:Zxt,warm:tAt,cool:nAt,cubehelixDefault:eAt,blue_green:Dxt,blue_purple:Lxt,green_blue:Fxt,orange_red:jxt,purple_blue_green:Uxt,purple_blue:Bxt,purple_red:$xt,red_purple:Hxt,yellow_green_blue:zxt,yellow_green:Vxt,yellow_orange_brown:Wxt,yellow_orange_red:qxt},mD=h3({},sTe,aTe,cTe),g6t=function(e){return d6t.includes(e)},v6t=function(e){return f6t.includes(e)},y6t=function(e){return p6t.includes(e)},b6t={rainbow:rAt,sinebow:sAt};h3({},h6t,m6t,b6t);var w6t=function(e,t){if(typeof e=="function")return e;if(tEe(e)){if((function(c){return c.theme!==void 0})(e)){if(t===void 0)throw new Error("Unable to use color from theme as no theme was provided");var n=V1(t,e.theme);if(n===void 0)throw new Error("Color from theme is undefined at path: '"+e.theme+"'");return function(){return n}}if((function(c){return c.from!==void 0})(e)){var r=function(c){return V1(c,e.from)};if(Array.isArray(e.modifiers)){for(var i,o=[],s=function(){var c=i.value,l=c[0],u=c[1];if(l==="brighter")o.push((function(d){return d.brighter(u)}));else if(l==="darker")o.push((function(d){return d.darker(u)}));else{if(l!=="opacity")throw new Error("Invalid color modifier: '"+l+"', must be one of: 'brighter', 'darker', 'opacity'");o.push((function(d){return d.opacity=u,d}))}},a=u6t(e.modifiers);!(i=a()).done;)s();return o.length===0?r:function(c){return o.reduce((function(l,u){return u(l)}),q1(r(c))).toString()}}return r}throw new Error("Invalid color spec, you should either specify 'theme' or 'from' when using a config object")}return function(){return e}},Toe=function(e,t){return b.useMemo((function(){return w6t(e,t)}),[e,t])};Pe.oneOfType([Pe.string,Pe.func,Pe.shape({theme:Pe.string.isRequired}),Pe.shape({from:Pe.string.isRequired,modifiers:Pe.arrayOf(Pe.array)})]);var S6t=function(e,t){if(typeof e=="function")return e;var n=typeof t=="function"?t:function(d){return V1(d,t)};if(Array.isArray(e)){var r=kg(e),i=function(d){return r(n(d))};return i.scale=r,i}if(tEe(e)){if((function(d){return d.datum!==void 0})(e))return function(d){return V1(d,e.datum)};if((function(d){return d.scheme!==void 0})(e)){if(g6t(e.scheme)){var o=kg(mD[e.scheme]),s=function(d){return o(n(d))};return s.scale=o,s}if(v6t(e.scheme)){if(e.size!==void 0&&(e.size<3||e.size>11))throw new Error("Invalid size '"+e.size+"' for diverging color scheme '"+e.scheme+"', must be between 3~11");var a=kg(mD[e.scheme][e.size||11]),c=function(d){return a(n(d))};return c.scale=a,c}if(y6t(e.scheme)){if(e.size!==void 0&&(e.size<3||e.size>9))throw new Error("Invalid size '"+e.size+"' for sequential color scheme '"+e.scheme+"', must be between 3~9");var l=kg(mD[e.scheme][e.size||9]),u=function(d){return l(n(d))};return u.scale=l,u}}throw new Error("Invalid colors, when using an object, you should either pass a 'datum' or a 'scheme' property")}return function(){return e}},_6t=function(e,t){return b.useMemo((function(){return S6t(e,t)}),[e,t])};function K9(){return K9=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},K9.apply(this,arguments)}var C6t={top:0,right:0,bottom:0,left:0},E6t=function(e){var t,n=e.direction,r=e.itemsSpacing,i=e.padding,o=e.itemCount,s=e.itemWidth,a=e.itemHeight;if(typeof i!="number"&&(typeof(t=i)!="object"||Array.isArray(t)||t===null))throw new Error("Invalid property padding, must be one of: number, object");var c=typeof i=="number"?{top:i,right:i,bottom:i,left:i}:K9({},C6t,i),l=c.left+c.right,u=c.top+c.bottom,d=s+l,f=a+u,p=(o-1)*r;return n==="row"?d=s*o+p+l:n==="column"&&(f=a*o+p+u),{width:d,height:f,padding:c}},T6t=function(e){var t=e.anchor,n=e.translateX,r=e.translateY,i=e.containerWidth,o=e.containerHeight,s=e.width,a=e.height,c=n,l=r;switch(t){case"top":c+=(i-s)/2;break;case"top-right":c+=i-s;break;case"right":c+=i-s,l+=(o-a)/2;break;case"bottom-right":c+=i-s,l+=o-a;break;case"bottom":c+=(i-s)/2,l+=o-a;break;case"bottom-left":l+=o-a;break;case"left":l+=(o-a)/2;break;case"center":c+=(i-s)/2,l+=(o-a)/2}return{x:c,y:l}},k6t=function(e){var t,n,r,i,o,s,a=e.direction,c=e.justify,l=e.symbolSize,u=e.symbolSpacing,d=e.width,f=e.height;switch(a){case"left-to-right":t=0,n=(f-l)/2,i=f/2,s="central",c?(r=d,o="end"):(r=l+u,o="start");break;case"right-to-left":t=d-l,n=(f-l)/2,i=f/2,s="central",c?(r=0,o="start"):(r=d-l-u,o="end");break;case"top-to-bottom":t=(d-l)/2,n=0,r=d/2,o="middle",c?(i=f,s="alphabetic"):(i=l+u,s="text-before-edge");break;case"bottom-to-top":t=(d-l)/2,n=f-l,r=d/2,o="middle",c?(i=0,s="text-before-edge"):(i=f-l-u,s="alphabetic")}return{symbolX:t,symbolY:n,labelX:r,labelY:i,labelAnchor:o,labelAlignment:s}},x6t={start:"left",middle:"center",end:"right"},A6t=function(e,t){var n=t.data,r=t.containerWidth,i=t.containerHeight,o=t.translateX,s=o===void 0?0:o,a=t.translateY,c=a===void 0?0:a,l=t.anchor,u=t.direction,d=t.padding,f
1586=d===void 0?0:d,p=t.justify,g=p!==void 0&&p,m=t.itemsSpacing,y=m===void 0?0:m,v=t.itemWidth,w=t.itemHeight,S=t.itemDirection,C=S===void 0?"left-to-right":S,E=t.itemTextColor,T=t.symbolSize,x=T===void 0?16:T,O=t.symbolSpacing,A=O===void 0?8:O,L=t.theme,U=E6t({itemCount:n.length,itemWidth:v,itemHeight:w,itemsSpacing:y,direction:u,padding:f}),I=U.width,F=U.height,P=U.padding,W=T6t({anchor:l,translateX:s,translateY:c,containerWidth:r,containerHeight:i,width:I,height:F}),ee=W.x,Y=W.y,X=u==="row"?v+y:0,Z=u==="column"?w+y:0;e.save(),e.translate(ee,Y),e.font=L.legends.text.fontSize+"px "+(L.legends.text.fontFamily||"sans-serif"),n.forEach((function(G,Q){var q,z,ue=Q*X+P.left,ge=Q*Z+P.top,ae=k6t({direction:C,justify:g,symbolSize:x,symbolSpacing:A,width:v,height:w}),j=ae.symbolX,B=ae.symbolY,re=ae.labelX,oe=ae.labelY,ne=ae.labelAnchor,J=ae.labelAlignment;e.fillStyle=(q=G.color)!=null?q:"black",e.fillRect(ue+j,ge+B,x,x),e.textAlign=x6t[ne],J==="central"&&(e.textBaseline="middle"),e.fillStyle=(z=E??L.legends.text.fill)!=null?z:"black",e.fillText(String(G.label),ue+re,ge+oe)})),e.restore()};function Vi(){return Vi=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Vi.apply(this,arguments)}function a2(e,t){if(e==null)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}var koe,I6t=["data"],R6t=function(e){var t,n=e.bar,r=n.data,i=a2(n,I6t),o=e.style,s=o.borderColor,a=o.color,c=o.height,l=o.labelColor,u=o.labelOpacity,d=o.labelX,f=o.labelY,p=o.transform,g=o.width,m=o.textAnchor,y=e.borderRadius,v=e.borderWidth,w=e.label,S=e.shouldRenderLabel,C=e.isInteractive,E=e.onClick,T=e.onMouseEnter,x=e.onMouseLeave,O=e.tooltip,A=e.isFocusable,L=e.ariaLabel,U=e.ariaLabelledBy,I=e.ariaDescribedBy,F=e.ariaDisabled,P=e.ariaHidden,W=hl(),ee=UCe(),Y=ee.showTooltipFromEvent,X=ee.showTooltipAt,Z=ee.hideTooltip,G=b.useMemo((function(){return function(){return b.createElement(O,Vi({},i,r))}}),[O,i,r]),Q=b.useCallback((function(j){E==null||E(Vi({color:i.color},r),j)}),[i,r,E]),q=b.useCallback((function(j){return Y(G(),j)}),[Y,G]),z=b.useCallback((function(j){T==null||T(r,j),Y(G(),j)}),[r,T,Y,G]),ue=b.useCallback((function(j){x==null||x(r,j),Z()}),[r,Z,x]),ge=b.useCallback((function(){X(G(),[i.absX+i.width/2,i.absY])}),[X,G,i]),ae=b.useCallback((function(){Z()}),[Z]);return h.jsxs(Wc.g,{transform:p,children:[h.jsx(Wc.rect,{width:gre(g,(function(j){return Math.max(j,0)}
1586)),height:gre(c,(function(j){return Math.max(j,0)})),rx:y,ry:y,fill:(t=r.fill)!=null?t:a,strokeWidth:v,stroke:s,focusable:A,tabIndex:A?0:void 0,"aria-label":L?L(r):void 0,"aria-labelledby":U?U(r):void 0,"aria-describedby":I?I(r):void 0,"aria-disabled":F?F(r):void 0,"aria-hidden":P?P(r):void 0,onMouseEnter:C?z:void 0,onMouseMove:C?q:void 0,onMouseLeave:C?ue:void 0,onClick:C?Q:void 0,onFocus:C&&A?ge:void 0,onBlur:C&&A?ae:void 0}),S&&h.jsx(Wc.text,{x:d,y:f,textAnchor:m,dominantBaseline:"central",fillOpacity:u,style:Vi({},W.labels.text,{pointerEvents:"none",fill:l}),children:w})]})},P6t=["color","label"],O6t=function(e){var t=e.color,n=e.label,r=a2(e,P6t);return h.jsx(s1t,{id:n,value:r.formattedValue,enableChip:!0,color:t})},$n={indexBy:"id",keys:["value"],groupMode:"stacked",layout:"vertical",reverse:!1,minValue:"auto",maxValue:"auto",valueScale:{type:"linear"},indexScale:{type:"band",round:!0},padding:.1,innerPadding:0,axisBottom:{},axisLeft:{},enableGridX:!1,enableGridY:!0,enableLabel:!0,label:"formattedValue",labelPosition:"middle",labelOffset:0,labelSkipWidth:0,labelSkipHeight:0,labelTextColor:{from:"theme",theme:"labels.text.fill"},colorBy:"id",colors:{scheme:"nivo"},borderRadius:0,borderWidth:0,borderColor:{from:"color"},isInteractive:!0,tooltip:O6t,tooltipLabel:function(e){return e.id+" - "+e.indexValue},legends:[],initialHiddenIds:[],annotations:[],markers:[],enableTotals:!1,totalsOffset:10};Vi({},$n,{layers:["grid","axes","bars","totals","markers","legends","annotations"],barComponent:R6t,defs:[],fill:[],animate:!0,motionConfig:"default",role:"img",isFocusable:!1});var uo=Vi({},$n,{layers:["grid","axes","bars","totals","legends","annotations"],pixelRatio:typeof window<"u"&&(koe=window.devicePixelRatio)!=null?koe:1}),lTe=function(e,t,n,r,i,o){return FW(r,{all:e.map(t),min:0,max:0},i,o).padding(n)},uTe=function(e,t){return e.map((function(n){return Vi({},t.reduce((function(r,i){return r[i]=null,r}),{}),n)}))},HN=function(e){return Object.keys(e).reduce((function(t,n){return e[n]&&(t[n]=e[n]),t}),{})},zN=function(e){return[e,Number(e)]};function N6t(e,t,n,r){return e===void 0&&(e=$n.layout),t===void 0&&(t=$n.reverse),n===void 0&&(n=$n.labelPosition),r===void 0&&(r=$n.labelOffset),function(i,o){var s=r*(t?-1:1);if(e==="horizontal"){var a=i/2;return n==="start"?a=t?i:0:n==="end"&&(a=t?0:i),{labelX:a+s,labelY:o/2,textAnchor:n==="middle"?"middle":t?"end":"start"}}var c=o/2;return n==="start"?c=t?0:o:n==="end"&&(c=t?o:0),{labelX:i/2,labelY:c-s,textAnchor:"middle"}}}var M6t=["layout","minValue","maxValue","reverse","width","height","padding","innerPadding","valueScale","indexScale","hiddenIds"],jW=function(e,t){return e>t},dTe=function(e,t){return e<t},fTe=function(e,t){return Array.from(" ".repeat(t-e),(function(n,r){return e+r}))},D6t=function(e){return jW(e,0)?0:e},L6t=function(e,t,n,r){var i=e.data,o=e.formatValue,s=e.getColor,a=e.getIndex,c=e.getTooltipLabel,l=e.innerPadding,u=l===void 0?0:l,d=e.keys,f=e.xScale,p=e.yScale,g=e.margin,m=n?dTe:jW,y=i.map(HN),v=[];return d.forEach((function(w,S){return fTe(0,f.domain().length).forEach((function(C){var E,T,x,O=zN(i[C][w]),A=O[0],L=O[1],U=a(i[C]),I=((E=f(U))!=null?E:0)+t*S+u*S,F=m(T=L,0)?(x=p(T))!=null?x:0:r,P=(function(ee,Y){var X;return m(ee,0)?r-Y:((X=p(ee))!=null?X:0)-r})(L,F),W={id:w,value:A===null?A:L,formattedValue:o(L),hidden:!1,index:C,indexValue:U,data:y[C]};v.push({key:w+"."+W.indexValue,index:v.length,data:W,x:I,y:F,absX:g.left+I,absY:g.top+F,width:t,height:P,color:s(W),label:c(W)})}
1586))})),v},F6t=function(e,t,n,r){var i=e.data,o=e.formatValue,s=e.getIndex,a=e.getColor,c=e.getTooltipLabel,l=e.keys,u=e.innerPadding,d=u===void 0?0:u,f=e.xScale,p=e.yScale,g=e.margin,m=n?dTe:jW,y=i.map(HN),v=[];return l.forEach((function(w,S){return fTe(0,p.domain().length).forEach((function(C){var E,T,x,O=zN(i[C][w]),A=O[0],L=O[1],U=s(i[C]),I=m(T=L,0)?r:(x=f(T))!=null?x:0,F=((E=p(U))!=null?E:0)+t*S+d*S,P=(function(ee,Y){var X;return m(ee,0)?((X=f(ee))!=null?X:0)-r:r-Y})(L,I),W={id:w,value:A===null?A:L,formattedValue:o(L),hidden:!1,index:C,indexValue:U,data:y[C]};v.push({key:w+"."+W.indexValue,index:v.length,data:W,x:I,y:F,absX:g.left+I,absY:g.top+F,width:P,height:t,color:a(W),label:c(W)})}))})),v},j6t=function(e){var t,n,r=e.layout,i=e.minValue,o=e.maxValue,s=e.reverse,a=e.width,c=e.height,l=e.padding,u=l===void 0?0:l,d=e.innerPadding,f=d===void 0?0:d,p=e.valueScale,g=e.indexScale,m=e.hiddenIds,y=m===void 0?[]:m,v=a2(e,M6t),w=v.keys.filter((function(G){return!y.includes(G)})),S=uTe(v.data,w),C=r==="vertical"?["y","x",a]:["x","y",c],E=C[0],T=C[1],x=C[2],O=lTe(S,v.getIndex,u,g,x,T),A=Vi({max:o,min:i,reverse:s},p),L=A.min==="auto"?D6t:function(G){return G},U=S.reduce((function(G,Q){return[].concat(G,w.map((function(q){return Q[q]})))}),[]).filter(Boolean),I=L(Math.min.apply(Math,U)),F=(n=Math.max.apply(Math,U),isFinite(n)?n:0),P=FW(A,{all:U,min:I,max:F},E==="x"?a:c,E),W=r==="vertical"?[O,P]:[P,O],ee=W[0],Y=W[1],X=(O.bandwidth()-f*(w.length-1))/w.length,Z=[Vi({},v,{data:S,keys:w,innerPadding:f,xScale:ee,yScale:Y}),X,A.reverse,(t=P(0))!=null?t:0];return{xScale:ee,yScale:Y,bars:X>0?r==="vertical"?L6t.apply(void 0,Z):F6t.apply(void 0,Z):[]}},U6t=["data","layout","minValue","maxValue","reverse","width","height","padding","valueScale","indexScale","hiddenIds"],B6t=function e(t){var n;return t.some(Array.isArray)?e((n=[]).concat.apply(n,t)):t},$6t=function(e,t,n){var r=e.formatValue,i=e.getColor,o=e.getIndex,s=e.getTooltipLabel,a=e.innerPadding,c=e.stackedData,l=e.xScale,u=e.yScale,d=e.margin,f=[];return c.forEach((function(p){return l.domain().forEach((function(g,m){var y,v,w=p[m],S=(y=l(o(w.data)))!=null?y:0,C=((v=(function(L){return u(L[n?0:1])})(w))!=null?v:0)+.5*a,E=(function(L,U){var I;return((I=u(L[n?1:0]))!=null?I:0)-U})(w,C)-a,T=zN(w.data[p.key]),x=T[0],O=T[1],A={id:p.key,value:x===null?x:O,formattedValue:r(O),hidden:!1,index:m,indexValue:g,data:HN(w.data)};f.push({key:p.key+"."+g,index:f.length,data:A,x:S,y:C,absX:d.left+S,absY:d.top+C,width:t,height:E,color:i(A),label:s(A)})}))})),f},H6t=function(e,t,n){var r=e.formatValue,i=e.getColor,o=e.getIndex,s=e.getTooltipLabel,a=e.innerPadding,c=e.stackedData,l=e.xScale,u=e.yScale,d=e.margin,f=[];return c.forEach((function(p){return u.domain().forEach((function(g,m){var y,v,w=p[m],S=(y=u(o(w.data)))!=null?y:0,C=((v=(function(L){return l(L[n?1:0])})(w))!=null?v:0)+.5*a,E=(function(L,U){var I;return((I=l(L[n?0:1]))!=null?I:0)-U})(w,C)-a,T=zN(w.data[p.key]),x=T[0],O=T[1],A={id:p.key,value:x===null?x:O,formattedValue:r(O),hidden:!1,index:m,indexValue:g,data:HN(w.data)};f.push({key:p.key+"."+g,index:f.length,data:A,x:C,y:S,absX:d.left+C,absY:d.top+S,width:E,height:t,color:i(A),label:s(A)})}))})),f},z6t=function(e){var t,n=e.data,r=e.layout,i=e.minValue,o=e.maxValue,s=e.reverse,a=e.width,c=e.height,l=e.padding,u=l===void 0?0:l,d=e.valueScale,f=e.indexScale,p=e.hiddenIds,g=p===void 0?[]:p,m=a2(e,U6t),y=m.keys.filter((function(X){return!g.includes(X)})),v=gIt().keys(y).offset(vIt)(uTe(n,y)),w=r==="vertical"?["y","x",a]:["x","y",c],S=w[0],C=w[1],E=w[2],T=lTe(n,m.getIndex,u,f,E,C),x=Vi({max:o,min:i,reverse:s},d),O=(t=B6t(v),d.type==="log"?t.filter((function(X){return X!==0})):t),A=Math.min.apply(Math,O),L=Math.max.apply(Math,O),U=FW(x,{all:O,min:A,max:L},S==="x"?a:c,S),I=r==="vertical"?[T,U]:[U,T],F=I[0],P=I[1],W=m.innerPadding>0?m.innerPadding:0,ee=T.bandwidth(),Y=[Vi({},m,{innerPadding:W,stackedData:v,xScale:F,yScale:P}),ee,x.reverse];return{xScale:F,yScale:P,bars:ee>0?r==="vertical"?$6t.apply(void 0,Y):H6t.apply(void 0,Y):[]}},V6t=function(e){var t=e.bars,n=e.direction,r=e.from,i=e.groupMode,o=e.layout,s=e.legendLabel,a=e.reverse,c=z2e(s??(r==="indexes"?"indexValue":"id"));return r==="indexes"?(function(l,u,d){var f=soe(l.map((function(p){var g,m;return{id:(g=p.data.indexValue)!=null?g:"",label:d(p.data),hidden:p.data.hidden,color:(m=p.color)!=null?m:"#000"}})),(function(p){return p.id}));return u==="horizontal"&&f.reverse(),f})(t,o,c):(function(l,u,d,f,p,g){var m=soe(l.map((function(y){var v;return{id:y.data.id,label:g(y.data),hidden:y.data.hidden,color:(v=y.color)!=null?v:"#000"}})),(function(y){return y.id}));return(u==="vertical"&&f==="stacked"&&d==="column"&&p!==!0||u==="horizontal"&&f==="stacked"&&p===!0)&&m.reverse(),m})(t,o,n,i,a,c)},xoe=function(e,t,n){var r=e.get(t)||0;e.set(t,r+n)},W6t=function(e,t,n){var r=e.get(t)||0;e.set(t,r+(n>0?n:0))},q6t=function(e,t,n){var r=e.get(t)||0;e.set(t,Math.max(r,Number(n)))},G6t=function(e,t){var n=e.get(t)||0;e.set(t,n+1)},K6t=function(e){var t=e.indexBy,n=t===void 0?$n.indexBy:t,r=e.keys,i=r===void 0?$n.keys:r,o=e.label,s=o===void 0?$n.label:o,a=e.tooltipLabel,c=a===void 0?$n.tooltipLabel:a,l=e.valueFormat,u=e.colors,d=u===void 0?$n.colors:u,f=e.colorBy,p=f===void 0?$n.colorBy:f,g=e.borderColor,m=g===void 0?$n.borderColor:g,y=e.labelTextColor,v=y===void 0?$n.labelTextColor:y,w=e.groupMode,S=w===void 0?$n.groupMode:w,C=e.layout,E=C===void 0?$n.layout:C,T=e.reverse,x=T===void 0?$n.reverse:T,O=e.data,A=e.minValue,
1586L=A===void 0?$n.minValue:A,U=e.maxValue,I=U===void 0?$n.maxValue:U,F=e.margin,P=e.width,W=e.height,ee=e.padding,Y=ee===void 0?$n.padding:ee,X=e.innerPadding,Z=X===void 0?$n.innerPadding:X,G=e.valueScale,Q=G===void 0?$n.valueScale:G,q=e.indexScale,z=q===void 0?$n.indexScale:q,ue=e.initialHiddenIds,ge=ue===void 0?$n.initialHiddenIds:ue,ae=e.enableLabel,j=ae===void 0?$n.enableLabel:ae,B=e.labelSkipWidth,re=B===void 0?$n.labelSkipWidth:B,oe=e.labelSkipHeight,ne=oe===void 0?$n.labelSkipHeight:oe,J=e.legends,Se=J===void 0?$n.legends:J,H=e.legendLabel,be=e.totalsOffset,V=be===void 0?$n.totalsOffset:be,M=b.useState(ge??[]),N=M[0],$=M[1],ce=b.useCallback((function(_t){$((function(wn){return wn.indexOf(_t)>-1?wn.filter((function(Je){return Je!==_t})):[].concat(wn,[_t])}))}),[]),pe=dD(n),fe=dD(s),we=dD(c),Ee=MW(l),xe=hl(),ve=_6t(d,p),ke=Toe(m,xe),He=Toe(v,xe),Ge=(S==="grouped"?j6t:z6t)({layout:E,reverse:x,data:O,getIndex:pe,keys:i,minValue:L,maxValue:I,width:P,height:W,getColor:ve,padding:Y,innerPadding:Z,valueScale:Q,indexScale:z,hiddenIds:N,formatValue:Ee,getTooltipLabel:we,margin:F}),vt=Ge.bars,Lt=Ge.xScale,$t=Ge.yScale,Yt=b.useMemo((function(){return vt.filter((function(_t){return _t.data.value!==null})).map((function(_t,wn){return Vi({},_t,{index:wn})}))}),[vt]),xo=b.useCallback((function(_t){var wn=_t.width,Je=_t.height;return!!j&&!(re>0&&wn<re)&&!(ne>0&&Je<ne)}),[j,re,ne]),ir=b.useMemo((function(){return i.map((function(_t){var wn=vt.find((function(Je){return Je.data.id===_t}));return Vi({},wn,{data:Vi({id:_t},wn==null?void 0:wn.data,{hidden:N.includes(_t)})})}))}),[N,i,vt]),sn=b.useMemo((function(){return Se.map((function(_t){return[_t,V6t({bars:_t.dataFrom==="keys"?ir:vt,direction:_t.direction,from:_t.dataFrom,groupMode:S,layout:E,legendLabel:H,reverse:x})]}))}),[Se,ir,vt,S,E,H,x]),ai=b.useMemo((function(){return(function(_t,wn,Je,Un,Oi,ur,Ni){Un===void 0&&(Un=$n.layout),Oi===void 0&&(Oi=$n.groupMode);var Ua=[];if(_t.length===0)return Ua;var Go=new Map,bt=_t[0].width,Or=_t[0].height;if(Oi==="stacked"){var ie=new Map;_t.forEach((function(Nr){var dr=Nr.data,ci=dr.indexValue,yr=dr.value;xoe(Go,ci,Number(yr)),W6t(ie,ci,Number(yr))})),ie.forEach((function(Nr,dr){var ci,yr,Me,vu=Go.get(dr)||0;Un==="vertical"?(ci=wn(dr),yr=Je(Nr),Me=Je(Nr/2)):(ci=wn(Nr),yr=Je(dr),Me=wn(Nr/2)),ci+=Un==="vertical"?bt/2:ur,yr+=Un==="vertical"?-ur:Or/2,Ua.push({key:"total_"+dr,x:ci,y:yr,value:vu,formattedValue:Ni(vu),animationOffset:Me})}))}else if(Oi==="grouped"){var Xr=new Map,ca=new Map;_t.forEach((function(Nr){var dr=Nr.data,ci=dr.indexValue,yr=dr.value;xoe(Go,ci,Number(yr)),q6t(Xr,ci,Number(yr)),G6t(ca,ci)})),Xr.forEach((function(Nr,dr){var ci,yr,Me,vu=Go.get(dr)||0,Hd=ca.get(dr);Un==="vertical"?(ci=wn(dr),yr=Je(Nr),Me=Je(Nr/2)):(ci=wn(Nr),yr=Je(dr),Me=wn(Nr/2)),ci+=Un==="vertical"?Hd*bt/2:ur,yr+=Un==="vertical"?-ur:Hd*Or/2,Ua.push({key:"total_"+dr,x:ci,y:yr,value:vu,formattedValue:Ni(vu),animationOffset:Me})}))}return Ua})(vt,Lt,$t,E,S,V,Ee)}),[vt,Lt,$t,E,S,V,Ee]);return{bars:vt,barsWithValue:Yt,xScale:Lt,yScale:$t,getIndex:pe,getLabel:fe,getTooltipLabel:we,formatValue:Ee,getColor:ve,getBorderColor:ke,getLabelColor:He,shouldRenderBarLabel:xo,hiddenIds:N,toggleSerie:ce,legendsWithData:sn,barTotals:ai}},Y6t=["isInteractive","renderWrapper","theme"],gD=function(e,t,n,r){return e.find((function(i){return wPt(i.x+t.left,i.y+t.top,i.width,i.height,n,r)}))},Q6t=function(e){var t=e.data,n=e.indexBy,r=e.keys,i=e.margin,o=e.width,s=e.height,a=e.groupMode,c=e.layout,l=e.reverse,u=e.minValue,d=e.maxValue,f=e.valueScale,p=e.indexScale,g=e.padding,m=e.innerPadding,y=e.axisTop,v=e.axisRight,w=e.axisBottom,S=w===void 0?uo.axisBottom:w,C=e.axisLeft,E=C===void 0?uo.axisLeft:C,T=e.enableGridX,x=T===void 0?uo.enableGridX:T,O=e.enableGridY,A=O===void 0?uo.enableGridY:O,L=e.gridXValues,U=e.gridYValues,I=e.labelPosition,F=I===void 0?uo.labelPosition:I,P=e.labelOffset,W=P===void 0?uo.labelOffset:P,ee=e.layers,Y=ee===void 0?uo.layers:ee,X=e.renderBar,Z=X===void 0?function(Ut,Zt){var Mr=Zt.bar,br=Mr.color,or=Mr.height,us=Mr.width,Jr=Mr.x,Mi=Mr.y,x4=Zt.borderColor,zd=Zt.borderRadius,Is=Zt.borderWidth,gl=Zt.label,fw=Zt.labelColor,k2=Zt.shouldRenderLabel,x2=Zt.labelX,A4=Zt.labelY,A2=Zt.textAnchor;if(Ut.fillStyle=br,Is>0&&(Ut.strokeStyle=x4,Ut.lineWidth=Is),Ut.beginPath(),zd>0){var vl=Math.min(zd,or);Ut.moveTo(Jr+vl,Mi),Ut.lineTo(Jr+us-vl,Mi),Ut.quadraticCurveTo(Jr+us,Mi,Jr+us,Mi+vl),Ut.lineTo(Jr+us,Mi+or-vl),Ut.quadraticCurveTo(Jr+us,Mi+or,Jr+us-vl,Mi+or),Ut.lineTo(Jr+vl,Mi+or),Ut.quadraticCurveTo(Jr,Mi+or,Jr,Mi+or-vl),Ut.lineTo(Jr,Mi+vl),Ut.quadraticCurveTo(Jr,Mi,Jr+vl,Mi),Ut.closePath()}else Ut.rect(Jr,Mi,us,or);Ut.fill(),Is>0&&Ut.stroke(),k2&&(Ut.textBaseline="middle",Ut.textAlign=A2==="middle"?"center":A2,Ut.fillStyle=fw,Ut.fillText(gl,Jr+x2,Mi+A4))}:X,G=e.enableLabel,Q=G===void 0?uo.enableLabel:G,q=e.label,z=e.labelSkipWidth,ue=z===void 0?uo.labelSkipWidth:z,ge=e.labelSkipHeight,ae=ge===void 0?uo.labelSkipHeight:ge,j=e.labelTextColor,B=e.colorBy,re=e.colors,oe=e.borderRadius,ne=oe===void 0?uo.borderRadius:oe,J=e.borderWidth,Se=J===void 0?uo.borderWidth:J,H=e.borderColor,be=e.annotations,V=be===void 0?uo.annotations:be,M=e.legendLabel,N=e.tooltipLabel,$=e.valueFormat,ce=e.isInteractive,pe=ce===void 0?uo.isInteractive:ce,fe=e.tooltip,we=fe===void 0?uo.tooltip:fe,Ee=e.onClick,xe=e.onMouseEnter,ve=e.onMouseLeave,ke=e.legends,He=e.pixelRatio,Ge=He===void 0?uo.pixelRatio:He,vt=e.canvasRef,Lt=e.enableTotals,$t=Lt===void 0?uo.enableTotals:Lt,Yt=e.totalsOffset,xo=Yt===void 0?uo.totalsOffset:Yt,ir=b.useRef(null),sn=hl(),ai=iPt(o,s,i),_t=ai.margin,wn=ai.innerWidth,Je=ai.innerHeight,Un=ai.outerWidth,Oi=ai.outerHeight,ur=K6t({indexBy:n,label:q,tooltipLabel:N,valueFormat:$,colors:re,colorBy:B,borderColor:H,labelTextColor:j,groupMode:a,layout:c,reverse:l,data:t,keys:r,minValue:u,maxValue:d,margin:_t,width:wn,height:Je,padding:g,innerPadding:m,valueScale:f,indexScale:p,enableLabel:Q,labelSkipWidth:ue,labelSkipHeight:ae,legends:ke,legendLabel:M,totalsOffset:xo}),Ni=ur.bars,Ua=ur.barsWithValue,Go=ur.xScale,bt=ur.yScale,Or=ur.getLabel,ie=ur.getTooltipLabel,Xr=ur.getBorderColor,ca=ur.getLabelColor,Nr=ur.shouldRenderBarLabel,dr=ur.legendsWithData,ci=ur.barTotals,yr=ur.getColor,Me=UCe(),vu=Me.showTooltipFromEvent,Hd=Me.hideTooltip,C2=c6t({annotations:a6t({data:Ni,annotations:V,getPosition:function(Ut){return{x:Ut.x,y:Ut.y}},getDimensions:function(Ut){var Zt=Ut.width,Mr=Ut.height;return{width:Zt,height:Mr,size:Math.max(Zt,Mr)}}})}),E2=b.useMemo((function(){return{borderRadius:ne,borderWidth:Se,isInteractive:pe,isFocusable:!1,labelSkipWidth:ue,labelSkipHeight:ae,margin:_t,width:o,height:s,innerWidth:wn,innerHeight:Je,bars:Ni,legendData:dr,enableLabel:Q,xScale:Go,yScale:bt,tooltip:we,getTooltipLabel:ie,onClick:Ee,onMouseEnter:xe,onMouseLeave:ve,getColor:yr}}),[ne,Se,pe,ue,ae,_t,o,s,wn,Je,Ni,dr,Q,Go,bt,we,ie,Ee,xe,ve,yr]),k4=MW($),ml=N6t(c,l,F,W);b.useEffect((function(){var Ut,Zt=(Ut=ir.current)==null?void 0:Ut.getContext("2d");ir.current&&Zt&&(ir.current.width=Un*Ge,ir.current.height=Oi*Ge,Zt.scale(Ge,Ge),Zt.fillStyle=sn.background,Zt.fillRect(0,0,Un,Oi),Zt.translate(_t.left,_t.top),Y.forEach((function(Mr){Mr==="grid"?typeof sn.grid.line.strokeWidth=="number"&&sn.grid.line.strokeWidth>0&&(Zt.lineWidth=sn.grid.line.strokeWidth,Zt.strokeStyle=sn.grid.line.stroke,x&&doe(Zt,{width:wn,height:Je,scale:Go,axis:"x",values:L}),A&&doe(Zt,{width:wn,height:Je,scale:bt,axis:"y",values:U})):Mr==="axes"?BNt(Zt,{xScale:Go,yScale:bt,width:wn,height:Je,to
1586p:y,right:v,bottom:S,left:E,theme:sn}):Mr==="bars"?Ua.forEach((function(br){Z(Zt,Vi({bar:br,borderColor:Xr(br),borderRadius:ne,borderWidth:Se,label:Or(br.data),labelColor:ca(br),shouldRenderLabel:Nr(br)},ml(br.width,br.height)))})):Mr==="legends"?dr.forEach((function(br){var or=br[0],us=br[1];A6t(Zt,Vi({},or,{data:us,containerWidth:wn,containerHeight:Je,theme:sn}))})):Mr==="annotations"?l6t(Zt,{annotations:C2,theme:sn}):Mr==="totals"&&$t?(function(br,or,us,Jr){Jr===void 0&&(Jr=uo.layout),br.fillStyle=us.text.fill,br.font="bold "+us.labels.text.fontSize+"px "+us.labels.text.fontFamily,br.textBaseline=Jr==="vertical"?"alphabetic":"middle",br.textAlign=Jr==="vertical"?"center":"start",or.forEach((function(Mi){br.fillText(Mi.formattedValue,Mi.x,Mi.y)}))})(Zt,ci,sn,c):typeof Mr=="function"&&Mr(Zt,E2)})),Zt.save())}),[S,E,v,y,Ua,ne,Se,C2,x,A,Xr,Or,ca,L,U,a,s,Je,wn,E2,Y,c,dr,_t.left,_t.top,Oi,Un,Ge,Z,Go,bt,l,Nr,sn,o,ci,$t,k4,ml]);var qm=b.useCallback((function(Ut){if(Ni&&ir.current){var Zt=fD(ir.current,Ut),Mr=Zt[0],br=Zt[1],or=gD(Ni,_t,Mr,br);or!==void 0?(vu(b.createElement(we,Vi({},or.data,{color:or.color,label:or.label,value:Number(or.data.value)})),Ut),Ut.type==="mouseenter"&&(xe==null||xe(or.data,Ut))):Hd()}}),[Hd,_t,xe,Ni,vu,we]),dw=b.useCallback((function(Ut){if(Ni&&ir.current){Hd();var Zt=fD(ir.current,Ut),Mr=Zt[0],br=Zt[1],or=gD(Ni,_t,Mr,br);or&&(ve==null||ve(or.data,Ut))}}),[Hd,_t,ve,Ni]),T2=b.useCallback((function(Ut){if(Ni&&ir.current){var Zt=fD(ir.current,Ut),Mr=Zt[0],br=Zt[1],or=gD(Ni,_t,Mr,br);or!==void 0&&(Ee==null||Ee(Vi({},or.data,{color:or.color}),Ut))}}),[_t,Ee,Ni]);return h.jsx("canvas",{ref:function(Ut){ir.current=Ut,vt&&"current"in vt&&(vt.current=Ut)},width:Un*Ge,height:Oi*Ge,style:{width:Un,height:Oi,cursor:pe?"auto":"normal"},onMouseEnter:pe?qm:void 0,onMouseMove:pe?qm:void 0,onMouseLeave:pe?dw:void 0,onClick:pe?T2:void 0})},X6t=b.forwardRef((function(e,t){var n=e.isInteractive,r=e.renderWrapper,i=e.theme,o=a2(e,Y6t);return h.jsx(D2e,{isInteractive:n,renderWrapper:r,theme:i,animate:!1,children:h.jsx(Q6t,Vi({},o,{canvasRef:t}))})})),hTe=b.forwardRef((function(e,t){return h.jsx(L2e,{children:function(n){var r=n.width,i=n.height;return h.jsx(X6t,Vi({width:r,height:i},e,{ref:t}))}})}));const pTe=e=>b.useMemo(()=>{const t=e.start?e.start:new Date,n=e.end?e.end:new Date,r=[],i=new Date(new Date(t).setMinutes(0)),o=new Date(new Date(n).setMinutes(0)),s=(()=>{const a=n.getTime()-t.getTime(),l=24*(3600*1e3),u=30*l;return a<=l*1.5?"hourly":a<=u*1.5?"daily":a<=u*3?"weekly":"monthly"})();for(;i<=o;)switch(s){case"hourly":{const a=i.getTime(),c=i.toLocaleString("en-US",{year:"numeric",month:"long",day:"numeric",hour:"numeric",hour12:!0});i.setHours(i.getHours()+1);const l=i.getTime();r.push({name:c,start:a,end:l});break}case"daily":{const a=i.toLocaleString("en-US",{year:"numeric",month:"long",day:"numeric"}),c=new Date(i);c.setHours(0,0,0,0);const l=new Date(i);l.setHours(23,59,59,999),r.push({name:a,start:c.getTime(),end:l.getTime()}),i.setDate(i.getDate()+1);break}case"weekly":{const a=new Date(i),c=i.getDay();a.setDate(i.getDate()-c),a.setHours(0,0,0,0);const l=new Date(a);l.setDate(a.getDate()+6),l.setHours(23,59,59,999);const u=`Week of ${a.toLocaleString("en-US",{year:"numeric",month:"long",day:"numeric"})}`;r.push({name:u,start:a.getTime(),end:l.getTime()}),i.setDate(a.getDate()+7);break}case"monthly":{const a=i.toLocaleString("en-US",{year:"numeric",month:"long"}),c=new Date(i);c.setDate(1),c.setHours(0,0,0,0);const l=new Date(i);l.setMonth(l.getMonth()+1),l.setDate(0),l.setHours(23,59,59,999),r.push({name:a,start:c.getTime(),end:l.getTime()}),i.setMonth(i.getMonth()+1);break}}return r},[e]);function J6t(e){const[t,n]=b.useState(),r=pTe(e.timeRange),i=b.useMemo(()=>{const s=r.map(l=>({interval:l,minutes:0})),a=(l,u)=>(r.filter(f=>u.start<=f.end&&u.end>=f.start).forEach(f=>{const p=(Math.min(f.end,u.end)-Math.max(f.start,u.start))/6e4,g=l.find(m=>m.interval===f);g&&(g.minutes+=p)}),l);if(t){const l=e.languageUsageIntervals.find(d=>d.language===t);return l?l.intervals.reduce((d,f)=>a(d,f),s.map(d=>({...d}))).sort((d,f)=>d.interval.start-f.interval.start).map(d=>({interval:d.interval.name,minutes:d.minutes.toFixed(2)})):s.map(d=>({interval:d.interval.name,minutes:d.minutes.toFixed(2)}))}return e.allLanguageUsageIntervals.reduce((l,u)=>
1586a(l,u),s.map(l=>({...l}))).sort((l,u)=>l.interval.start-u.interval.start).map(l=>({interval:l.interval.name,minutes:l.minutes.toFixed(2)}))},[e,t,r]),o=b.useMemo(()=>e.languageUsageIntervals.map(s=>s.language),[e.languageUsageIntervals]);return h.jsxs("div",{className:BR.UsageGraph,children:[h.jsxs("div",{className:BR.Header,children:[h.jsx("h3",{children:"Total minutes translated"}),o.length>=2&&h.jsx(Ia,{items:[{value:void 0,label:"All languages"},...o.map(s=>({value:s,label:Kr(s)}))],selected:t,onChange:s=>n(s),align:"end",color:"gray",backgroundColor:"black",borderColor:"dark-gray"})]}),h.jsx("div",{children:h.jsx(hTe,{data:i,keys:["minutes"],indexBy:"interval",margin:{top:40,right:40,bottom:40,left:40},padding:.7,colors:"#3c75ee",axisLeft:{format:s=>Math.floor(s)===s?s:""},axisBottom:{format:s=>{const a=i.findIndex(c=>c.interval===s);return a===0||a===i.length-1?s:""}},enableLabel:!1,legendLabel:()=>"Usage in minutes",tooltip:({value:s,data:a})=>h.jsxs(h.Fragment,{children:[a.interval,": ",Math.round(s)," minutes"]}),theme:{grid:{line:{stroke:"#555"}},axis:{ticks:{text:{fill:"#ccc"}},legend:{text:{fill:"#ccc"}}},tooltip:{container:{color:"#ccc"}}},legends:[{dataFrom:"keys",itemTextColor:"#ccc",anchor:"top-left",direction:"row",justify:!1,translateX:-20,translateY:-40,itemsSpacing:10,itemWidth:100,itemHeight:20,symbolSize:12,effects:[{on:"hover",style:{itemOpacity:.85}}]}]})})]})}function Z6t(e){const t=b.useMemo(()=>[...new Set(e.usage.map(s=>s.language))],[e.usage]),[n,r]=b.useState(),i=pTe(e.timeRange),o=b.useMemo(()=>e.usage.filter(s=>!n||s.language===n).reduce((s,a)=>{const c=new Date(a.created_at).getTime(),l=new Date(a.ended_at).getTime();return i.filter(d=>c<=d.end&&l>=d.start).forEach(d=>{const f=s.find(p=>p.interval===d);f?f.participants.add(a.livekit_sid||""):s.push({interval:d,participants:new Set([a.livekit_sid||""])})}),s},i.map(s=>({interval:s,participants:new Set}))).sort((s,a)=>s.interval.start-a.interval.start).map(s=>({interval:s.interval.name,participants:s.participants.size})),[e.usage,n,i]);return h.jsxs("div",{className:BR.UsageGraph,children:[h.jsxs("div",{className:BR.Header,children:[h.jsx("h3",{children:"Total number of participants"}),t.length>=2&&h.jsx(Ia,{items:[{value:void 0,label:"All languages"},...t.map(s=>({value:s,label:Kr(s)}))],selected:n,onChange:s=>r(s),align:"end",color:"gray",backgroundColor:"black",borderColor:"dark-gray"})]}),h.jsx("div",{children:h.jsx(hTe,{data:o,keys:["participants"],indexBy:"interval",margin:{top:40,right:40,bottom:40,left:40},padding:.7,colors:"#3c75ee",axisLeft:{format:s=>Math.floor(s)===s?s:""},axisBottom:{format:s=>{const a=o.findIndex(c=>c.interval===s);return a===0||a===o.length-1?s:""}},enableLabel:!1,legendLabel:()=>"Number of participants",tooltip:({value:s,data:a})=>h.jsxs(h.Fragment,{children:[a.interval,": ",Math.round(s)," participants"]}),theme:{grid:{line:{stroke:"#555"}},axis:{ticks:{text:{fill:"#ccc"}},legend:{text:{fill:"#ccc"}}},tooltip:{container:{color:"#ccc"}}},legends:[{dataFrom:"keys",itemTextColor:"#ccc",anchor:"top-left",direction:"row",justify:!1,translateX:-20,translateY:-40,itemsSpacing:10,itemWidth:100,itemHeight:20,symbolSize:12,effects:[{on:"hover",style:{itemOpacity:.85}}]}]})})]})}function vf(e,t,{checkForDefaultPrevented:n=!0}={}){return function(i){if(e==null||e(i),n===!1||!i.defaultPrevented)return t==null?void 0:t(i)}}function Aoe(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function mTe(...e){return t=>{let n=!1;const r=e.map(i=>{const o=Aoe(i,t);return!n&&typeof o=="function"&&(n=!0),o});if(n)return()=>{for(let i=0;i<r.length;i++){const o=r[i];typeof o=="function"?o():Aoe(e[i],null)}}}}function Zv(...e){return b.useCallback(mTe(...e),e)}var gTe=b.forwardRef((e,t)=>{const{children:n,...r}=e,i=b.Children.toArray(n),o=i.find(eDt);if(o){const s=o.props.children,a=i.map(c=>c===o?b.Children.count(s)>1?b.Children.only(null):b.isValidElement(s)?s.props.children:null:c);return h.jsx(Y9,{...r,ref:t,children:b.isValidElement(s)?b.cloneElement(s,void 0,a):null})}return h.jsx(Y9,{...r,ref:t,children:n})});gTe.displayName="Slot";var Y9=b.forwardRef((e,t)=>
vendor: 13,512 bytes, line 1586
1586{const{children:n,...r}=e;if(b.isValidElement(n)){const i=nDt(n);return b.cloneElement(n,{...tDt(r,n.props),ref:t?mTe(t,i):i})}return b.Children.count(n)>1?b.Children.only(null):null});Y9.displayName="SlotClone";var vTe=({children:e})=>h.jsx(h.Fragment,{children:e});function eDt(e){return b.isValidElement(e)&&e.type===vTe}function tDt(e,t){const n={...t};for(const r in t){const i=e[r],o=t[r];/^on[A-Z]/.test(r)?i&&o?n[r]=(...a)=>{o(...a),i(...a)}:i&&(n[r]=i):r==="style"?n[r]={...i,...o}:r==="className"&&(n[r]=[i,o].filter(Boolean).join(" "))}return{...e,...n}}function nDt(e){var r,i;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(i=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:i.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var rDt=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],e0=rDt.reduce((e,t)=>{const n=b.forwardRef((r,i)=>{const{asChild:o,...s}=r,a=o?gTe:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),h.jsx(a,{...s,ref:i})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function iDt(e,t){e&&Am.flushSync(()=>e.dispatchEvent(t))}var oDt="DismissableLayer",Q9="dismissableLayer.update",sDt="dismissableLayer.pointerDownOutside",aDt="dismissableLayer.focusOutside",Ioe,yTe=b.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),bTe=b.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:i,onFocusOutside:o,onInteractOutside:s,onDismiss:a,...c}=e,l=b.useContext(yTe),[u,d]=b.useState(null),f=(u==null?void 0:u.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,p]=b.useState({}),g=Zv(t,x=>d(x)),m=Array.from(l.layers),[y]=[...l.layersWithOutsidePointerEventsDisabled].slice(-1),v=m.indexOf(y),w=u?m.indexOf(u):-1,S=l.layersWithOutsidePointerEventsDisabled.size>0,C=w>=v,E=uDt(x=>{const O=x.target,A=[...l.branches].some(L=>L.contains(O));!C||A||(i==null||i(x),s==null||s(x),x.defaultPrevented||a==null||a())},f),T=dDt(x=>{const O=x.target;[...l.branches].some(L=>L.contains(O))||(o==null||o(x),s==null||s(x),x.defaultPrevented||a==null||a())},f);return Jye(x=>{w===l.layers.size-1&&(r==null||r(x),!x.defaultPrevented&&a&&(x.preventDefault(),a()))},f),b.useEffect(()=>{if(u)return n&&(l.layersWithOutsidePointerEventsDisabled.size===0&&(Ioe=f.body.style.pointerEvents,f.body.style.pointerEvents="none"),l.layersWithOutsidePointerEventsDisabled.add(u)),l.layers.add(u),Roe(),()=>{n&&l.layersWithOutsidePointerEventsDisabled.size===1&&(f.body.style.pointerEvents=Ioe)}},[u,f,n,l]),b.useEffect(()=>()=>{u&&(l.layers.delete(u),l.layersWithOutsidePointerEventsDisabled.delete(u),Roe())},[u,l]),b.useEffect(()=>{const x=()=>p({});return document.addEventListener(Q9,x),()=>document.removeEventListener(Q9,x)},[]),h.jsx(e0.div,{...c,ref:g,style:{pointerEvents:S?C?"auto":"none":void 0,...e.style},onFocusCapture:vf(e.onFocusCapture,T.onFocusCapture),onBlurCapture:vf(e.onBlurCapture,T.onBlurCapture),onPointerDownCapture:vf(e.onPointerDownCapture,E.onPointerDownCapture)})});bTe.displayName=oDt;var cDt="DismissableLayerBranch",lDt=b.forwardRef((e,t)=>{const n=b.useContext(yTe),r=b.useRef(null),i=Zv(t,r);return b.useEffect(()=>{const o=r.current;if(o)return n.branches.add(o),()=>{n.branches.delete(o)}},[n.branches]),h.jsx(e0.div,{...e,ref:i})});lDt.displayName=cDt;function uDt(e,t=globalThis==null?void 0:globalThis.document){const n=ou(e),r=b.useRef(!1),i=b.useRef(()=>{});return b.useEffect(()=>{const o=a=>{if(a.target&&!r.current){let c=function(){wTe(sDt,n,l,{discrete:!0})};const l={originalEvent:a};a.pointerType==="touch"?(t.removeEventListener("click",i.current),i.current=c,t.addEventListener("click",i.current,{once:!0})):c()}else t.removeEventListener("click",i.current);r.current=!1},s=window.setTimeout(()=>{t.addEventListener("pointerdown",o)},0);return()=>{window.clearTimeout(s),t.removeEventListener("pointerdown",o),t.removeEventListener("click",i.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function dDt(e,t=globalThis==null?void 0:globalThis.document){const n=ou(e),r=b.useRef(!1);return b.useEffect(()=>{const i=o=>{o.target&&!r.current&&wTe(aDt,n,{originalEvent:o},{discrete:!1})};return t.addEventListener("focusin",i),()=>t.removeEventListener("focusin",i)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function Roe(){const e=new CustomEvent(Q9);document.dispatchEvent(e)}function wTe(e,t,n,{discrete:r}){const i=n.originalEvent.target,o=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&i.addEventListener(e,t,{once:!0}),r?iDt(i,o):i.dispatchEvent(o)}var fDt="Arrow",STe=b.forwardRef((e,t)=>{const{children:n,width:r=10,height:i=5,...o}=e;return h.jsx(e0.svg,{...o,ref:t,width:r,height:i,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:h.jsx("polygon",{points:"0,0 30,0 15,10"})})});STe.displayName=fDt;var hDt=STe,UW="Popper",[_Te,CTe]=Ob(UW),[pDt,ETe]=_Te(UW),TTe=e=>{const{__scopePopper:t,children:n}=e,[r,i]=b.useState(null);return h.jsx(pDt,{scope:t,anchor:r,onAnchorChange:i,children:n})};TTe.displayName=UW;var kTe="PopperAnchor",xTe=b.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...i}=e,o=ETe(kTe,n),s=b.useRef(null),a=Zv(t,s);return b.useEffect(()=>{o.onAnchorChange((r==null?void 0:r.current)||s.current)}),r?null:h.jsx(e0.div,{...i,ref:a})});xTe.displayName=kTe;var BW="PopperContent",[mDt,gDt]=_Te(BW),ATe=b.forwardRef((e,t)=>{var j,B,re,oe,ne,J;const{__scopePopper:n,side:r="bottom",sideOffset:i=0,align:o="center",alignOffset:s=0,arrowPadding:a=0,avoidCollisions:c=!0,collisionBoundary:l=[],collisionPadding:u=0,sticky:d="partial",hideWhenDetached:f=!1,updatePositionStrategy:p="optimized",onPlaced:g,...m}=e,y=ETe(BW,n),[v,w]=b.useState(null),S=Zv(t,Se=>w(Se)),[C,E]=b.useState(null),T=iz(C),x=(T==null?void 0:T.width)??0,O=(T==null?void 0:T.height)??0,A=r+(o!=="center"?"-"+o:""),L=typeof u=="number"?u:{top:0,right:0,bottom:0,left:0,...u},U=Array.isArray(l)?l:[l],I=U.length>0,F={padding:L,boundary:U.filter(yDt),altBoundary:I},{refs:P,floatingStyles:W,placement:ee,isPositioned:Y,middlewareData:X}=ez({strategy:"fixed",placement:A,whileElementsMounted:(...Se)=>ZH(...Se,{animationFrame:p==="always"}),elements:{reference:y.anchor},middleware:[tz({mainAxis:i+O,alignmentAxis:s}),c&&F1e({mainAxis:!0,crossAxis:!1,limiter:d==="partial"?j1e():void 0,...F}),c&&nz({...F}),U1e({...F,apply:({elements:Se,rects:H,availableWidth:be,availableHeight:V})=>{const{width:M,height:N}=H.reference,$=Se.floating.style;$.setProperty("--radix-popper-available-width",`${be}px`),$.setProperty("--radix-popper-available-height",`${V}px`),$.setProperty("--radix-popper-anchor-width",`${M}px`),$.setProperty("--radix-popper-anchor-height",`${N}px`)}}),C&&rz({element:C,padding:a}),bDt({arrowWidth:x,arrowHeight:O}),f&&B1e({strategy:"referenceHidden",...F})]}),[Z,G]=PTe(ee),Q=ou(g);Jc(()=>{Y&&(Q==null||Q())},[Y,Q]);const q=(j=X.arrow)==null?void 0:j.x,z=(B=X.arrow)==null?void 0:B.y,ue=((re=X.arrow)==null?void 0:re.centerOffset)!==0,[ge,ae]=b.useState();return Jc(()=>{v&&ae(window.getComputedStyle(v).zIndex)},[v]),h.jsx("div",{ref:P.setFloating,"data-radix-popper-content-wrapper":"",style:{...W,transform:Y?W.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:ge,"--radix-popper-transform-origin":[(oe=X.transformOrigin)==null?void 0:oe.x,(ne=X.transformOrigin)==null?void 0:ne.y].join(" "),...((J=X.hide)==null?void 0:J.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:h.jsx(mDt,{scope:n,placedSide:Z,onArrowChange:E,arrowX:q,arrowY:z,shouldHideArrow:ue,children:h.jsx(e0.div,{"data-side":Z,"data-align":G,...m,ref:S,style:{...m.style,animation:Y?void 0:"none"}})})})});ATe.displayName=BW;var ITe="PopperArrow",vDt={top:"bottom",right:"left",bottom:"top",left:"right"},RTe=b.forwardRef(function(t,n){const{__scopePopper:r,...i}=t,o=gDt(ITe,r),s=vDt[o.placedSide];return h.jsx("span",{ref:o.onArrowChange,style:{position:"absolute",left:o.arrowX,top:o.arrowY,[s]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[o.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[o.placedSide],visibility:o.shouldHideArrow?"hidden":void 0},children:h.jsx(hDt,{...i,ref:n,style:{...i.style,display:"block"}})})});RTe.displayName=ITe;function yDt(e){return e!==null}var bDt=e=>({name:"transformOrigin",options:e,fn(t){var y,v,w;const{placement:n,rects:r,middlewareData:i}=t,s=((y=i.arrow)==null?void 0:y.centerOffset)!==0,a=s?0:e.arrowWidth,c=s?0:e.arrowHeight,[l,u]=PTe(n),d={start:"0%",center:"50%",end:"100%"}[u],f=(((v=i.arrow)==null?void 0:v.x)??0)+a/2,p=(((w=i.arrow)==null?void 0:w.y)??0)+c/2;let g="",m="";return l==="bottom"?(g=s?d:`${f}px`,m=`${-c}px`):l==="top"?(g=s?d:`${f}px`,m=`${r.floating.height+c}px`):l==="right"?(g=`${-c}px`,m=s?d:`${p}px`):l==="left"&&(g=`${r.floating.width+c}px`,m=s?d:`${p}px`),{data:{x:g,y:m}}}});function PTe(e){const[t,n="center"]=e.split("-");return[t,n]}var wDt=TTe,SDt=xTe,_Dt=ATe,CDt=RTe,EDt="Portal",OTe=b.forwardRef((e,t)=>{var a;const{container:n,...r}=e,[i,o]=b.useState(!1);Jc(()=>o(!0),[]);const s=n||i&&((a=globalThis==null?void 0:globalThis.document)==null?void 0:a.body);return s?BB.createPortal(h.jsx(e0.div,{...r,ref:t}),s):null});OTe.displayName=EDt;function TDt(e,t){return b.useReducer((n,r)=>t[n][r]??n,e)}var $W=e=>{const{present:t,children:n}=e,r=kDt(t),i=typeof n=="function"?n({present:r.isPresent}):b.Children.only(n),o=Zv(r.ref,xDt(i));return typeof n=="function"||r.isPresent?b.cloneElement(i,{ref:o}):null};$W.displayName="Presence";function kDt(e){const[t,n]=b.useState(),r=b.useRef({}),i=b.useRef(e),o=b.useRef("none"),s=e?"mounted":"unmounted",[a,c]=TDt(s,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return b.useEffect(()=>{const l=bk(r.current);o.current=a==="mounted"?l:"none"},[a]),Jc(()=>{const l=r.current,u=i.current;if(u!==e){const f=o.current,p=bk(l);e?c("MOUNT"):p==="none"||(l==null?void 0:l.display)==="none"?c("UNMOUNT"):c(u&&f!==p?"ANIMATION_OUT":"UNMOUNT"),i.current=e}},[e,c]),Jc(()=>{if(t){let l;const u=t.ownerDocument.defaultView??window,d=p=>{const m=bk(r.current).includes(p.animationName);if(p.target===t&&m&&(c("ANIMATION_END"),!i.current)){const y=t.style.animationFillMode;t.style.animationFillMode="forwards",l=u.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=y)})}},f=p=>{p.target===t&&(o.current=bk(r.current))};return t.addEventListener("animationstart",f),t.addEventListener("animationcancel",d),t.addEventListener("animationend",d),()=>{u.clearTimeout(l),t.removeEventListener("animationstart",f),t.removeEventListener("animationcancel",d),t.removeEventListener("animationend",d)}}else c("ANIMATION_END")},[t,c]),{isPresent:["mounted","unmountSuspended"].includes(a),ref:b.useCallback(l=>{l&&(r.current=getComputedStyle(l)),n(l)},[])}}function bk(e){return(e==null?void 0:e.animationName)||"none"}function xDt(e){var r,i;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(i=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:i.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}function Poe(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function ADt(...e){return t=>{let n=!1;const r=e.map(i=>{const o=Poe(i,t);return!n&&typeof o=="function"&&(n=!0),o});if(n)return()=>{for(let i=0;i<r.length;i++){const o=r[i];typeof o=="function"?o():Poe(e[i],null)}}}}var NTe=b.forwardRef((e,t)=>{const{children:n,...r}=e,i=b.Children.toArray(n),o=i.find(RDt);if(o){const s=o.props.children,a=i.map(c=>c===o?b.Children.count(s)>1?b.Children.only(null):b.isValidElement(s)?s.props.children:null:c);return h.jsx(X9,{...r,ref:t,children:b.isValidElement(s)?b.cloneElement(s,void 0,a):null})}return h.jsx(X9,{...r,ref:t,children:n})});NTe.displayName="Slot";var X9=b.forwardRef((e,t)=>{const{children:n,...r}=e;if(b.isValidElement(n)){const i=ODt(n);return b.cloneElement(n,{...PDt(r,n.props),ref:t?ADt(t,i):i})}return b.Children.count(n)>1?b.Children.only(null):null});X9.displayName="SlotClone";var IDt=({children:e})=>h.jsx(h.Fragment,{children:e});function RDt(e){return b.isValidElement(e)&&e.type===IDt}function PDt(e,t){const n={...t};for(const r in t){const i=e[r],o=t[r];/^on[A-Z]/.test(r)?i&&o?n[r]=(...a)=>{o(...a),i(...a)}:i&&(n[r]=i):r==="style"?n[r]={...i,...o}:r==="className"&&(n[r]=[i,o].filter(Boolean).join(" "))}return{...e,...n}}function ODt(e){var r,i;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(i=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:i.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var NDt=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],MDt=NDt.reduce((e,t)=>{const n=b.forwardRef((r,i)=>{const{asChild:o,...s}=r,a=o?NTe:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),h.jsx(a,{...s,ref:i})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{}),DDt="VisuallyHidden",MTe=b.forwardRef((e,t)=>
vendor: 4,760 bytes, line 1586
1586h.jsx(MDt.span,{...e,ref:t,style:{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal",...e.style}}));MTe.displayName=DDt;var LDt=MTe,[VN]=Ob("Tooltip",[CTe]),WN=CTe(),DTe="TooltipProvider",FDt=700,J9="tooltip.open",[jDt,HW]=VN(DTe),LTe=e=>{const{__scopeTooltip:t,delayDuration:n=FDt,skipDelayDuration:r=300,disableHoverableContent:i=!1,children:o}=e,[s,a]=b.useState(!0),c=b.useRef(!1),l=b.useRef(0);return b.useEffect(()=>{const u=l.current;return()=>window.clearTimeout(u)},[]),h.jsx(jDt,{scope:t,isOpenDelayed:s,delayDuration:n,onOpen:b.useCallback(()=>{window.clearTimeout(l.current),a(!1)},[]),onClose:b.useCallback(()=>{window.clearTimeout(l.current),l.current=window.setTimeout(()=>a(!0),r)},[r]),isPointerInTransitRef:c,onPointerInTransitChange:b.useCallback(u=>{c.current=u},[]),disableHoverableContent:i,children:o})};LTe.displayName=DTe;var qN="Tooltip",[UDt,c2]=VN(qN),FTe=e=>{const{__scopeTooltip:t,children:n,open:r,defaultOpen:i=!1,onOpenChange:o,disableHoverableContent:s,delayDuration:a}=e,c=HW(qN,e.__scopeTooltip),l=WN(t),[u,d]=b.useState(null),f=Gp(),p=b.useRef(0),g=s??c.disableHoverableContent,m=a??c.delayDuration,y=b.useRef(!1),[v=!1,w]=XP({prop:r,defaultProp:i,onChange:x=>{x?(c.onOpen(),document.dispatchEvent(new CustomEvent(J9))):c.onClose(),o==null||o(x)}}),S=b.useMemo(()=>v?y.current?"delayed-open":"instant-open":"closed",[v]),C=b.useCallback(()=>{window.clearTimeout(p.current),p.current=0,y.current=!1,w(!0)},[w]),E=b.useCallback(()=>{window.clearTimeout(p.current),p.current=0,w(!1)},[w]),T=b.useCallback(()=>{window.clearTimeout(p.current),p.current=window.setTimeout(()=>{y.current=!0,w(!0),p.current=0},m)},[m,w]);return b.useEffect(()=>()=>{p.current&&(window.clearTimeout(p.current),p.current=0)},[]),h.jsx(wDt,{...l,children:h.jsx(UDt,{scope:t,contentId:f,open:v,stateAttribute:S,trigger:u,onTriggerChange:d,onTriggerEnter:b.useCallback(()=>{c.isOpenDelayed?T():C()},[c.isOpenDelayed,T,C]),onTriggerLeave:b.useCallback(()=>{g?E():(window.clearTimeout(p.current),p.current=0)},[E,g]),onOpen:C,onClose:E,disableHoverableContent:g,children:n})})};FTe.displayName=qN;var Z9="TooltipTrigger",jTe=b.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,i=c2(Z9,n),o=HW(Z9,n),s=WN(n),a=b.useRef(null),c=Zv(t,a,i.onTriggerChange),l=b.useRef(!1),u=b.useRef(!1),d=b.useCallback(()=>l.current=!1,[]);return b.useEffect(()=>()=>document.removeEventListener("pointerup",d),[d]),h.jsx(SDt,{asChild:!0,...s,children:h.jsx(e0.button,{"aria-describedby":i.open?i.contentId:void 0,"data-state":i.stateAttribute,...r,ref:c,onPointerMove:vf(e.onPointerMove,f=>{f.pointerType!=="touch"&&!u.current&&!o.isPointerInTransitRef.current&&(i.onTriggerEnter(),u.current=!0)}),onPointerLeave:vf(e.onPointerLeave,()=>{i.onTriggerLeave(),u.current=!1}),onPointerDown:vf(e.onPointerDown,()=>{l.current=!0,document.addEventListener("pointerup",d,{once:!0})}),onFocus:vf(e.onFocus,()=>{l.current||i.onOpen()}),onBlur:vf(e.onBlur,i.onClose),onClick:vf(e.onClick,i.onClose)})})});jTe.displayName=Z9;var zW="TooltipPortal",[BDt,$Dt]=VN(zW,{forceMount:void 0}),UTe=e=>{const{__scopeTooltip:t,forceMount:n,children:r,container:i}=e,o=c2(zW,t);return h.jsx(BDt,{scope:t,forceMount:n,children:h.jsx($W,{present:n||o.open,children:h.jsx(OTe,{asChild:!0,container:i,children:r})})})};UTe.displayName=zW;var K1="TooltipContent",BTe=b.forwardRef((e,t)=>{const n=$Dt(K1,e.__scopeTooltip),{forceMount:r=n.forceMount,side:i="top",...o}=e,s=c2(K1,e.__scopeTooltip);return h.jsx($W,{present:r||s.open,children:s.disableHoverableContent?h.jsx($Te,{side:i,...o,ref:t}):h.jsx(HDt,{side:i,...o,ref:t})})}),HDt=b.forwardRef((e,t)=>{const n=c2(K1,e.__scopeTooltip),r=HW(K1,e.__scopeTooltip),i=b.useRef(null),o=Zv(t,i),[s,a]=b.useState(null),{trigger:c,onClose:l}=n,u=i.current,{onPointerInTransitChange:d}=r,f=b.useCallback(()=>{a(null),d(!1)},[d]),p=b.useCallback((g,m)=>{const y=g.currentTarget,v={x:g.clientX,y:g.clientY},w=WDt(v,y.getBoundingClientRect()),S=qDt(v,w),C=GDt(m.getBoundingClientRect()),E=YDt([...S,...C]);a(E),d(!0)},[d]);return b.useEffect(()=>()=>f(),[f]),b.useEffect(()=>{if(c&&u){const g=y=>p(y,u),m=y=>p(y,c);return c.addEventListener("pointerleave",g),u.addEventListener("pointerleave",m),()=>{c.removeEventListener("pointerleave",g),u.removeEventListener("pointerleave",m)}}},[c,u,p,f]),b.useEffect(()=>{if(s){const g=m=>{const y=m.target,v={x:m.clientX,y:m.clientY},w=(c==null?void 0:c.contains(y))||(u==null?void 0:u.contains(y)),S=!KDt(v,s);w?f():S&&(f(),l())};return document.addEventListener("pointermove",g),()=>document.removeEventListener("pointermove",g)}},[c,u,s,l,f]),h.jsx($Te,{...e,ref:o})}),[zDt,VDt]=VN(qN,{isInside:!1}),$Te=b.forwardRef((e,t)=>
1586{const{__scopeTooltip:n,children:r,"aria-label":i,onEscapeKeyDown:o,onPointerDownOutside:s,...a}=e,c=c2(K1,n),l=WN(n),{onClose:u}=c;return b.useEffect(()=>(document.addEventListener(J9,u),()=>document.removeEventListener(J9,u)),[u]),b.useEffect(()=>{if(c.trigger){const d=f=>{const p=f.target;p!=null&&p.contains(c.trigger)&&u()};return window.addEventListener("scroll",d,{capture:!0}),()=>window.removeEventListener("scroll",d,{capture:!0})}},[c.trigger,u]),h.jsx(bTe,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:o,onPointerDownOutside:s,onFocusOutside:d=>d.preventDefault(),onDismiss:u,children:h.jsxs(_Dt,{"data-state":c.stateAttribute,...l,...a,ref:t,style:{...a.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[h.jsx(vTe,{children:r}),h.jsx(zDt,{scope:n,isInside:!0,children:h.jsx(LDt,{id:c.contentId,role:"tooltip",children:i||r})})]})})});BTe.displayName=K1;var HTe="TooltipArrow",zTe=b.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,i=WN(n);return VDt(HTe,n).isInside?null:h.jsx(CDt,{...i,...r,ref:t})});zTe.displayName=HTe;function WDt(e,t){const n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),i=Math.abs(t.right-e.x),o=Math.abs(t.left-e.x);switch(Math.min(n,r,i,o)){case o:return"left";case i:return"right";case n:return"top";case r:return"bottom";default:throw new Error("unreachable")}}function qDt(e,t,n=5){const r=[];switch(t){case"top":r.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case"bottom":r.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case"left":r.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case"right":r.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n});break}return r}function GDt(e){const{top:t,right:n,bottom:r,left:i}=e;return[{x:i,y:t},{x:n,y:t},{x:n,y:r},{x:i,y:r}]}function KDt(e,t){const{x:n,y:r}=e;let i=!1;for(let o=0,s=t.length-1;o<t.length;s=o++){const a=t[o].x,c=t[o].y,l=t[s].x,u=t[s].y;c>r!=u>r&&n<(l-a)*(r-c)/(u-c)+a&&(i=!i)}return i}function YDt(e){const t=e.slice();return t.sort((n,r)=>n.x<r.x?-1:n.x>r.x?1:n.y<r.y?-1:n.y>r.y?1:0),QDt(t)}function QDt(e){if(e.length<=1)return e.slice();const t=[];for(let r=0;r<e.length;r++){const i=e[r];for(;t.length>=2;){const o=t[t.length-1],s=t[t.length-2];if((o.x-s.x)*(i.y-s.y)>=(o.y-s.y)*(i.x-s.x))t.pop();else break}t.push(i)}t.pop();const n=[];for(let r=e.length-1;r>=0;r--){const i=e[r];for(;n.length>=2;){const o=n[n.length-1],s=n[n.length-2];if((o.x-s.x)*(i.y-s.y)>=(o.y-s.y)*(i.x-s.x))n.pop();else break}n.push(i)}return n.pop(),t.length===1&&n.length===1&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}var XDt=LTe,JDt=FTe,ZDt=jTe,eLt=UTe,tLt=BTe,nLt=zTe;function rLt(e){return h.jsx(Ia,{selected:e.selectedAdminId,backgroundColor:"black",items:[{value:void 0,label:"All admins"},...e.admins.map(t=>({value:t.id,label:t.name}))],onChange:t=>e.onChange(t)})}function iLt(e){return h.jsx(Ia,{selected:e.selectedOrgId,backgroundColor:"black",items:[{value:void 0,label:"My org"},...e.orgs.map(t=>({value:t.id,label:t.email}))],onChange:t=>e.onChange(t)})}function oS(e){return h.jsxs("div",{className:Ya.UsageStatCard,children:[h.jsxs("div",{className:Ya.Title,children:[h.jsx("h2",{children:e.title}),h.jsx(XDt,{delayDuration:0,children:h.jsxs(JDt,{children:[h.jsx(ZDt,{asChild:!0,className:Ya.TooltipTrigger,children:h.jsx("div",{children:h.jsx(blt,{})})}),h.jsx(eLt,{children:h.jsxs(tLt,{className:Ya.TooltipContent,side:"top",align:"center",sideOffset:5,children:[e.tooltip,h.jsx(nLt,{className:Ya.TooltipArrow})]})})]})})]}),h.jsx("h3",{children:e.stat}),h.jsx("h4",{children:e.insights})]})}function oLt(){const[e,t]=b.useState(),[n,r]=b.useState(),[i,o]=b.useState(!1),[s,a]=b.useState(),c=Cn(),l=Gt.useGetOrganization(c),u=Gt.useGetUsage(c),d=Gt.useGetAdminUsage(c),[f,p]=b.useState({name:"last-24-hours",start:new Date(new Date().setHours(new Date().getHours()-24)),end:new Date(new Date().setMinutes(new Date().getMinutes()+5))}),[g,m]=b.useState(),[y,v]=b.useState(),[w]=Jt(),S=b.useMemo(()=>w.auth&&["[email protected]","[email protected]"].includes(w.auth.email),[w.auth]),[C,E]=b.useState(),T=Gt.useGetOrgList(c);b.useEffect(()=>{S&&(async()=>{const z=await T();E(z.data.orgs)})()},[S,T]),b.useEffect(()=>{(async()=>{o(!0);try{const z=y?await d({org_id:y,user_id:g,start_time:f.start,end_time:f.end}):await u({user_id:g,start_time:f.start,end_time:f.end});t(z.data.usage),r(z.data.organization)}finally{o(!1)}})()},[l,u,d,g,f,y]),b.useEffect(()=>{(async()=>{try{const z=y?await d({org_id:y,user_id:g}):await u({user_id:g});a(z.data.usage)}catch{a([])}})()}
1586,[u,d,g,y]);const x=b.useCallback(z=>{if(!Array.isArray(z)||z.length===0||!z[0])return"";const ue=Object.keys(z[0]),ge=z.map(ae=>ue.map(j=>(ae==null?void 0:ae[j])??"").join(","));return[ue.join(","),...ge].join(`
1587`)},[]),O=b.useCallback((z,ue)=>{const ge=z.filter(B=>!ue||B.host_id===ue).filter(B=>B.participant_type==="speaker").map(({room_id:B,created_at:re,ended_at:oe,email:ne})=>({room_id:B,email:ne,start:new Date(re).getTime(),end:new Date(oe).getTime()})).sort((B,re)=>B.start-re.start).reduce((B,re)=>{const oe=B[B.length-1];return oe&&oe.room_id===re.room_id&&oe.end>=re.start?oe.end=Math.max(oe.end,re.end):B.push(re),B},[]),ae=ge.map(B=>({room_id:B.room_id,date:new Date(B.start).toISOString().split("T")[0],admin:B.email,usage_in_minutes:((B.end-B.start)/1e3/60).toFixed(2)})),j=x(ae);return console.debug("translation intervals",j),ge},[x]),A=b.useMemo(()=>e?O(e):[],[e,O]),L=b.useMemo(()=>!n||!e?void 0:n.members.map(ue=>({id:ue.id,totalSeconds:O(e,ue.id).reduce((ge,{start:ae,end:j})=>ge+(j-ae),0)/1e3})),[O,n,e]),U=b.useMemo(()=>{if(!n||!L)return;const z=new Map(L.map(({id:ue,totalSeconds:ge})=>[ue,ge]));return[...n.members].sort((ue,ge)=>{const ae=z.get(ue.id)??0;return(z.get(ge.id)??0)-ae})},[n,L]),I=b.useMemo(()=>{const z=A.reduce((ue,{start:ge,end:ae})=>ue+(ae-ge),0)/1e3;return Math.round(z/60)},[A]),F=b.useMemo(()=>e?A.map(z=>({start:z.start,end:z.end})):[],[e,A]),P=b.useMemo(()=>e?Object.entries(e.reduce((z,{language:ue,created_at:ge,ended_at:ae})=>{const j={start:new Date(ge).getTime(),end:new Date(ae).getTime()};return z[ue]||(z[ue]=[]),z[ue].push(j),z},{})).map(([z,ue])=>{ue.sort((j,B)=>j.start-B.start);const ae=ue.reduce((j,B)=>{const re=j[j.length-1];return re&&B.start<=re.end?re.end=Math.max(re.end,B.end):j.push(B),j},[]).flatMap(j=>A.filter(({start:B,end:re})=>j.start<re&&j.end>B).flatMap(({start:B,end:re})=>{const oe=Math.max(j.start,B),ne=Math.min(j.end,re);return{start:oe,end:ne}}));return{language:z,intervals:ae}}):[],[e,A]),W=b.useMemo(()=>Object.entries(P.reduce((z,{language:ue,intervals:ge})=>{const ae=ge.reduce((j,{start:B,end:re})=>j+(re-B),0);return z[ue]=(z[ue]||0)+ae,z},{})).sort(([,z],[,ue])=>ue-z).map(([z])=>z),[P]),ee=b.useMemo(()=>n?Math.round(n.translation_seconds_remaining/60):0,[n]),Y=b.useMemo(()=>s?O(s):[],[s,O]),X=b.useMemo(()=>Y.reduce((ue,{start:ge,end:ae})=>ue+(ae-ge),0)/1e3/60,[Y]),Z=b.useMemo(()=>s?new Set(s.filter(z=>z.participant_type==="speaker").map(z=>z.room_id)).size:0,[s]),G=b.useMemo(()=>{const z=Z,ue=X/60;return z+ue},[Z,X]),Q=b.useMemo(()=>X/60*2*120,[X]),q=sO(n);return!n||!e||i?h.jsx(Sn,{}):h.jsxs("div",{className:Ya.Usage,children:[h.jsx("h1",{children:"Usage"}),h.jsxs("div",{className:Ya.Filters,children:[S&&C&&h.jsx(iLt,{orgs:C,selectedOrgId:y,onChange:z=>v(z)}),h.jsx(D0t,{selectedTimeRange:f,onChange:z=>p(z)}),h.jsx(rLt,{selectedAdminId:g,admins:U??n.members,onChange:z=>m(z)})]}),s&&h.jsxs("div",{className:Ya.BusinessImpactSection,children:[h.jsx("div",{className:Ya.SectionLabel,children:"BUSINESS IMPACT · SINCE ACTIVATION"}),h.jsxs("div",{className:Ya.BusinessImpactCards,children:[h.jsx(oS,{title:"Time saved",stat:`${Math.round(G)} hr${Math.round(G)>1?"s":""}`,insights:`${Z} hr${Z>1?"s":""} scheduling + ${Math.round(X/60)} hr${Math.round(X/60)>1?"s":""} in shorter meetings`,tooltip:"Total time your team got back vs. coordinating with a human interpreter. Includes: (1) meeting time saved (interpreter-mediated meetings run 2x as long, so every translated minute saves you one). (2) scheduling overhead (booking a human interpreter takes an estimated 1 hr per session)."}),h.jsx(oS,{title:"Interpreter cost saved",stat:`$${Math.round(Q).toLocaleString()}`,insights:"at $120/hr",tooltip:"Estimated cost avoided vs. booking a professional interpreter. Based on the full duration of what each meeting would have been with an interpreter (2x translated time) at a default rate of $120/hr."})]})]}),h.jsxs("div",{className:Ya.ProductUsageSection,children:[h.jsx("div",{className:Ya.SectionLabel,children:"PRODUCT USAGE"}),h.jsxs("div",{className:Ya.UsageStatCards,children:[h.jsx(oS,{title:"Total minutes translated",stat:`${I} minute${I!==1?"s":""}`,insights:"",tooltip:"Total translated minutes include the active translation time during meetings or events, excluding periods when speakers are muted or the translator is turned off."}),h.jsx(oS,{title:"Languages used",stat:W.length,insights:!!W.length&&h.jsxs("div",{children:[h.jsx("div",{children:"Top languages:"}),h.jsx("div",{children:W.slice(0,3).map(z=>h.jsx("div",{children:eu(z)+" "+Kr(z)},z))})]}),tooltip:"Languages chosen by any participant during the specified time period."}),h.jsx(oS,{title:"Total minutes left",stat:`${ee} minute${ee!==1?"s":""}`,insights:h.jsxs("div",{children:[h.jsxs("div",{children:["Current plan:"," ",q&&q.charAt(0).toUpperCase()+q.slice(1)]}),h.jsxs("div",{children:[h.jsx(It,{style:{textDecoration:"underline"},to:"/billing",children:"Upgrade"})," ","for more minutes"]})]}),tooltip:"Total translation minutes remaining in your subscription plan. This number stays constant and does not change based on the selected time period."})]})]}
1587),h.jsx(J6t,{timeRange:f,allLanguageUsageIntervals:F,languageUsageIntervals:P}),h.jsx(Z6t,{timeRange:f,usage:e})]})}const l2="/assets/integration-Sc48yU4F.webp",VW="/assets/event-DYtLRS4I.webp",GN="/assets/meeting-Mx5axD9p.webp",sLt="data:image/webp;base64,UklGRggBAABXRUJQVlA4WAoAAAAQAAAADQAACwAAQUxQSGUAAAABcFpt27I8+T9/FJxM/RoaiboAzRKHTHUb4J8CW4FIY4J/BiTfuE0QEUKCRLJH9FCDi1GhpKd8oFmBznZ/F8A5VYcuz8ZFY/qLCO9d+KPH9qal7g5P7foN61H6CARJvXB6ftuWJABWUDggfAAAAFACAJ0BKg4ADAABQCYlsAJ0ME3Bp7U0rKiUGAD8IL2bj1nzvNoM+GtPLweALa6LBP7ao/ss3r32nI0Yx6eK7qKLXgpBpRfF7C6xOoWHEkvS72JH/y4+6XFfw/yr//kGf6Y5YuOP/iAe9oeQ8E2ezKP/mA4VT8YsLAw4AAA=",aLt="data:image/webp;base64,UklGRvQAAABXRUJQVlA4WAoAAAAQAAAADQAACwAAQUxQSEsAAAABYBPZtpNbkywg4tffBCJehY3sBSl4eCL4JfNzVBAREwBIpYPcAZBKR8V0S6XjC+tP642ISGv9a18AgI63tBERJcRXThPz8yZwBwAAVlA4IIIAAAAQAwCdASoOAAwAAUAmJbACdLoBNoDhIP1J/UAGfFknWAAA/P6+n90H3JJRivv2Rheonv3vtJlWGqD7bmoPEL99YyQzIpG5G38780/xg4n80O5O/tPXZXn9/8Psurrz8p978m9B/OqH7jiuYc43fbHwO2rD5/y5ofmdrf/9Xx//sKAA",cLt="data:image/webp;base64,UklGRlwBAABXRUJQVlA4WAoAAAAQAAAADQAACwAAQUxQSIEAAAABgFpt2/LmCTOvEMs+JxuwZrScKCbFcSiZscwr1FX1VLYTVNH3/ztExAQAgKb+vMmoQF38IT9NFM4f6i8l8UTzEyHe6HrEDZ2XsNB8iAmEv4l3PQAGA1Dnez2/EAAy5+WhXcp25+vxw2DkahuTuJgi+irv4fGlV8sOHOZeNsaJIgsAVlA4ILQAAACwAgCdASoOAAwAAUAmJbACdLoAfg15FYM3bw1xV0AA/vchXQEYDyab2m/H+eSv/5nwoUnkyfdw6FbLuYo18lUwtki2tIvSdh9nz/JFhD/432jSNLteZT+cPL/5x7kUdN+Yh/T68/q3N7aZ+4fiFe9VZ5Ojm8MLPBT0soj/8THIVb5m/zV7m9FxvuMBC86S/+wyucmH/29f/hrswoMD/4n2S2IrvgSucT8V/+ygUs8H/3SAAAA=";function lLt(e){const t=b.useMemo(()=>{switch(e.platform){case"teams":return h.jsxs(h.Fragment,{children:[h.jsx("img",{src:sLt,alt:"Teams"}),"Teams"]});case"meet":return h.jsxs(h.Fragment,{children:[h.jsx("img",{src:aLt,alt:"Google Meet"}),"Google Meet"]});case"zoom":return h.jsxs(h.Fragment,{children:[h.jsx("img",{src:cLt,alt:"Zoom"}),"Zoom"]});case"langfinity":return"Langfinity"}},[e.platform]);return h.jsxs("div",{children:[t,e.platform==="meet"||e.platform==="zoom"?h.jsx("label",{className:Td.ComingSoon,children:"Coming soon"}):null]})}const pA=e=>h.jsx("div",{className:Td.PlatformBadges,children:e.platforms.map((t,n)=>h.jsx(lLt,{platform:t},n))});function uLt({title:e,platformUrl:t,buttonText:n,platforms:r,imageUrl:i}){return h.jsxs("div",{className:Td.HeroCard,children:[h.jsx("img",{src:i}),h.jsx(pA,{platforms:r}),h.jsx("h2",{className:Td.HeroCardTitle,children:e}),h.jsx(It,{style:{width:"100%"},to:t==="bot"?"https://appsource.microsoft.com/en-us/product/office/WA200007477":`/create/${t}`,target:t==="bot"?"_blank":void 0,children:h.jsx(qe,{style:{width:"100%"},children:n})})]})}function dLt(){var n,r;const e=[{title:"Translation for Teams, Zoom, and Google Meet",buttonText:"Invite AI translator to online meetings",platforms:["teams","zoom","meet"],platformUrl:"bot",imageUrl:l2},{title:"In-person and hybrid events or conferences",buttonText:"Schedule an event",platforms:["langfinity"],platformUrl:"event",imageUrl:VW},{title:"Online meetings with Langfinity",buttonText:"Get started",platforms:["langfinity"],platformUrl:"meeting",imageUrl:GN}],[t]=Jt();return h.jsxs("div",{className:Td.HomePageContainer,children:[h.jsxs("h1",{children:["Welcome,"," ",(n=t.auth)!=null&&n.name.includes(" ")?t.auth.name.split(" ")[0]:(r=t.auth)==null?void 0:r.name,"!"]}),h.jsx("h2",{children:"Where would you like to host your multilingual meetings and events?"}),h.jsx("div",{className:Td.CardContainer,children:e.map((i,o)=>h.jsx(uLt,{...i},o))})]})}function fLt(){return h.jsxs("div",{className:Td.SupportedLanguages,children:[h.jsx("h2",{children:"Languages supported"}),h.jsx("div",{children:[...Object.values(rv).flatMap(e=>Array.from(e)).filter(e=>wS.includes(e)).sort((e,t)=>wS.indexOf(e)-wS.indexOf(t)),...Object.values(rv).flatMap(e=>Array.from(e)).filter(e=>!wS.includes(e))].map(e=>h.jsxs("div",{className:Td.LanguageBadge,children:[h.jsx("span",{children:eu(e)}),h.jsx("span",{children:Kr(e)})]},e))})]})}function hLt(){const{organization:e,loading:t}=Md(),n=ks();return!e||t?null:h.jsxs(h.Fragment,{children:[h.jsx(pht,{}),h.jsx("div",{className:Td.HomeContent,children:h.jsxs(gE,{children:[h.jsx(nn,{path:"/",element:h.jsxs(h.Fragment,{children:[h.jsx(dLt,{}),h.jsx(bne,{hidePast:!0}),!n&&h.jsx(fLt,{}),h.jsx(E_e,{})]})}),h.jsx(nn,{path:"/meetings",element:h.jsx(h.Fragment,{children:h.jsx(bne,{hidePast:!1})})}),h.jsx(nn,{path:"/settings/*",element:h.jsx(h.Fragment,{children:h.jsx(w
1587pt,{})})}),h.jsx(nn,{path:"/billing",element:h.jsx(h.Fragment,{children:h.jsx(Bpt,{})})}),h.jsx(nn,{path:"/usage",element:h.jsx(h.Fragment,{children:h.jsx(oLt,{})})}),h.jsx(nn,{path:"/support",element:h.jsx(h.Fragment,{children:h.jsx(jpt,{})})})]})})]})}function pLt(){return h.jsx("div",{className:Td.Home,children:h.jsx(hLt,{})})}const mLt="_Landing_ha9le_1",gLt="_LandingContent_ha9le_12",vLt="_Hero_ha9le_55",yLt="_Buttons_ha9le_62",bLt="_CompaniesSubtitle_ha9le_66",wLt="_MeetingSection_ha9le_90",SLt="_EventSection_ha9le_139",_Lt="_ThreeColumn_ha9le_147",CLt="_ThreeImages_ha9le_164",ELt="_IntegrationSection_ha9le_190",TLt="_Platforms_ha9le_224",kLt="_ComingSoon_ha9le_238",xLt="_TestimoniesSection_ha9le_253",ALt="_Metrics_ha9le_267",ILt="_VoiceAvatarSection_ha9le_286",RLt="_DomainFocusedSection_ha9le_313",PLt="_TestimoniesSection2_ha9le_320",ui={Landing:mLt,LandingContent:gLt,Hero:vLt,Buttons:yLt,CompaniesSubtitle:bLt,MeetingSection:wLt,EventSection:SLt,ThreeColumn:_Lt,ThreeImages:CLt,IntegrationSection:ELt,Platforms:TLt,ComingSoon:kLt,TestimoniesSection:xLt,Metrics:ALt,VoiceAvatarSection:ILt,DomainFocusedSection:RLt,TestimoniesSection2:PLt},OLt="_Header_1onvw_1",NLt="_LandingHeader_1onvw_2",MLt="_Logo_1onvw_49",DLt="_UserPopoverTrigger_1onvw_54",LLt="_UserPopoverContent_1onvw_73",FLt="_OnlyOnMobile_1onvw_102",jLt="_ProductsPopoverContent_1onvw_116",ULt="_Products_1onvw_116",BLt="_MobileMenuPopoverTrigger_1onvw_172",$Lt="_MobileMenuPopoverContent_1onvw_177",HLt="_ResourcesPopoverContent_1onvw_192",zLt="_SolutionsPopoverContent_1onvw_209",VLt="_HideOnMobile_1onvw_243",Uo={Header:OLt,LandingHeader:NLt,Logo:MLt,UserPopoverTrigger:DLt,UserPopoverContent:LLt,OnlyOnMobile:FLt,ProductsPopoverContent:jLt,Products:ULt,MobileMenuPopoverTrigger:BLt,MobileMenuPopoverContent:$Lt,ResourcesPopoverContent:HLt,SolutionsPopoverContent:zLt,HideOnMobile:VLt},p3="/assets/logo_with_text-CVUvR1bY.svg",WLt="/assets/logo_witth_text_dark-DcPlD24P.svg";function qLt(e){return St({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"line",attr:{x1:"4",x2:"20",y1:"12",y2:"12"},child:[]},{tag:"line",attr:{x1:"4",x2:"20",y1:"6",y2:"6"},child:[]},{tag:"line",attr:{x1:"4",x2:"20",y1:"18",y2:"18"},child:[]}]})(e)}function GLt(e){return St({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M13 3H4a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-3"},child:[]},{tag:"path",attr:{d:"M8 21h8"},child:[]},{tag:"path",attr:{d:"M12 17v4"},child:[]},{tag:"path",attr:{d:"m22 3-5 5"},child:[]},{tag:"path",attr:{d:"m17 3 5 5"},child:[]}]})(e)}function VTe(e){return St({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M13 3H4a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-3"},child:[]},{tag:"path",attr:{d:"M8 21h8"},child:[]},{tag:"path",attr:{d:"M12 17v4"},child:[]},{tag:"path",attr:{d:"m17 8 5-5"},child:[]},{tag:"path",attr:{d:"M17 3h5v5"},child:[]}]})(e)}const KLt=({open:e,onOpenChange:t})=>{const[,n]=Jt(),r=Ts(),i=ls(),o=b.useCallback(async()=>{try{await xP().signOut()}catch(s){console.warn(s)}localStorage.clear(),n(s=>({...s,auth:void 0})),r("/"),i({type:"logout"}),t(!1)},[n,r,i,t]);return h.jsx(Wv,{title:"Log out",open:e,onOpenChange:t,onConfirm:o,action:"Log out",content:h.jsx("h3",{children:"Are you sure you want to log out?"})})};function YLt(e){const[t,n]=b.useState(!1),[r,i]=b.useState(!1);return h.jsxs(h.Fragment,{children:[h.jsxs(al,{open:t,onOpenChange:n,children:[h.jsxs(cl,{className:Uo.UserPopoverTrigger,children:["Hi, ",e.name.includes(" ")?e.name.split(" ")[0]:e.name,t?h.jsx(Xc,{}):h.jsx(na,{})]}),h.jsx(ll,{children:h.jsxs(uu,{className:Uo.UserPopoverContent,sideOffset:8,align:"end",onClick:()=>n(!1),children:[h.jsxs(It,{to:"/meetings",target:"_blank",className:Uo.OnlyOnMobile,children:[h.jsx(qp,{}),"Meetings & events"]}),h.jsxs(It,{to:"/settings",target:"_blank",className:Uo.HideOnMobile,children:[h.jsx(YP,{}),"Settings"]}),h.jsxs(It,{to:"/billing",target:"_blank",className:Uo.OnlyOnMobile,children:[h.jsx(Hye,{}),"Plan & billing"]}),h.jsxs(It,{to:"/usage",target:"_blank",children:[h.jsx(m_e,{}),"Usage"]}),h.jsxs(It,{to:"/support",target:"_blank",children:[h.jsx(Dye,{}),"Support"]}),h.jsxs("button",{onClick:()=>i(!0),children:[h.jsx(Uft,{}),"Log out"]})]})})]}),h.jsx(KLt,{open:r,onOpenChange:i})]})}function QLt(){const[e,t]=b.useState(!1),n=Ts(),r=ls(),i=b.useCallback(()=>{r({type:"click_get_a_demo_header"}),window.open("https://calendly.com/d/cs8h-bpy-tzc/langfinity-intro","_blank")},[r]);return h.jsxs(al,{open:e,onOpenChange:t,children:[h.jsx(cl,{className:Uo.ProductsPopoverTrigger,asChild:!0,children:h.jsxs(qe,{color:"black",backgroundColor:"transparent",borderColor:"transparent",children:["Products",e?h.jsx(Xc,{}):h.jsx(na,{})]})}),h.jsx(ll,{children:h.jsxs(uu,{className:Uo.ProductsPopoverContent,sideOffset:8,align:"center",children:[h.jsx("h2",{children:"Products"}),h.jsxs("div",{className:Uo.Products,children:[h.jsxs("div",{children:[h.jsx("img",{src:GN,alt:"Online meetings with Langfinity"}),h.jsxs("div",{children:[h.jsx("h2",{children:"Online meetings with Langfinity"}),h.jsx(pA,{platforms:["langfinity"]}),h.jsx("p",{children:"Connect with your global team in any language with just one click"})]}),h.jsx(qe,{color:"white",backgroundColor:"orange",borderColor:"orange",onClick:()=>n("/signup"),children:"Try for free"})]}),h.jsxs("div",{children:[h.jsx("img",{src:VW,alt:"In-person events or conferences"}),h.jsxs("div",{children:[h.jsx("h2",{children:"In-person events or conferences"}),h.jsx(pA,{platforms:["langfinity"]}),h.jsx("p",{children:"Scan a QR code to unlock real-time translation in 50+ languages for events"})]}),h.jsx(qe,{color:"white",backgroundColor:"orange",borderColor:"orange",onClick:i,children:"Get a demo"})]}),h.jsxs("div",{children:[h.jsx("img",{src:l2,alt:"Translation for third-party platforms"}),h.jsxs("div",{children:[h.jsx("h2",{children:"Translation for third-party platforms"}
1587),h.jsx(pA,{platforms:["teams","meet","zoom"]}),h.jsx("p",{children:"Get real-time translation in Teams, Zoom, and Google Meet with a single tap"})]}),h.jsx(qe,{color:"white",backgroundColor:"orange",borderColor:"orange",onClick:i,children:"Get a demo"})]})]})]})})]})}const XLt=()=>{const[e,t]=b.useState(!1),n=ls();return h.jsxs(al,{open:e,onOpenChange:t,children:[h.jsx(cl,{className:Uo.ResourcesPopoverTrigger,asChild:!0,children:h.jsxs(qe,{color:"black",backgroundColor:"transparent",borderColor:"transparent",children:["Resources",e?h.jsx(Xc,{}):h.jsx(na,{})]})}),h.jsx(ll,{children:h.jsxs(uu,{className:Uo.ResourcesPopoverContent,sideOffset:8,align:"center",children:[h.jsx(It,{to:"/faq",children:"FAQ"}),h.jsx(It,{to:"/customer-stories",children:"Customer stories"}),h.jsx(It,{to:"https://langfinity.ai/blog/",target:"_blank",onClick:()=>{n({type:"click_blog_header"})},children:"Blog"})]})})]})},JLt=()=>{const[e,t]=b.useState(!1);return h.jsxs(al,{open:e,onOpenChange:t,children:[h.jsx(cl,{asChild:!0,children:h.jsxs(qe,{color:"black",backgroundColor:"transparent",borderColor:"transparent",children:["Solutions",e?h.jsx(Xc,{}):h.jsx(na,{})]})}),h.jsx(ll,{children:h.jsxs(uu,{className:Uo.SolutionsPopoverContent,sideOffset:8,align:"center",children:[h.jsx(It,{to:"https://langfinity.ai/industries/manufacturing-translation",target:"_blank",children:"Manufacturing"}),h.jsx(It,{to:"https://langfinity.ai/solutions/translation-for-microsoft-teams",target:"_blank",children:"Microsoft Teams"})]})})]})},ZLt=()=>{const[e,t]=b.useState(!1);return h.jsxs(al,{open:e,onOpenChange:t,children:[h.jsx(cl,{className:Uo.MobileMenuPopoverTrigger,asChild:!0,children:h.jsx(qe,{color:"black",borderColor:"transparent",backgroundColor:"transparent",children:h.jsx(qLt,{})})}),h.jsx(ll,{children:h.jsxs(uu,{className:Uo.MobileMenuPopoverContent,sideOffset:8,align:"end",children:[h.jsx(It,{to:"/faq",children:"FAQ"}),h.jsx(It,{to:"/customer-stories",children:"Customer stories"}),h.jsx(It,{to:"/about",children:"Company"}),h.jsx(It,{to:"/pricing",children:"Pricing"})]})})]})};function Ji(e){const[t]=Jt(),[n]=Es(),r=b.useCallback(()=>{window.open("https://calendly.com/d/cs8h-bpy-tzc/langfinity-intro","_blank")},[]),i=ks();return n.joined?null:e.landing?h.jsxs("div",{className:`${Uo.LandingHeader} ${e.className??""}`,children:[h.jsx(It,{to:"/",className:Uo.Logo,children:h.jsx("img",{src:WLt,alt:"Langfinity"})}),h.jsxs("div",{children:[h.jsxs("nav",{children:[!i&&h.jsxs(h.Fragment,{children:[h.jsx(QLt,{}),h.jsx(XLt,{}),h.jsx(JLt,{}),h.jsx(It,{to:"/about",children:"Company"}),h.jsx(It,{to:"/pricing",children:"Pricing"})]}),h.jsx(It,{to:"/login",children:"Log in"})]}),!i&&h.jsx(qe,{color:"white",borderColor:"blue",backgroundColor:"blue",size:"landing-header",onClick:r,children:"Get a demo"}),i&&h.jsx(ZLt,{})]})]}):h.jsxs("div",{className:`${Uo.Header} ${e.className??""}`,children:[e.disableLogoClick?h.jsx("div",{className:Uo.Logo,children:h.jsx("img",{src:p3,alt:"Langfinity"})}):h.jsx(It,{to:"/",className:Uo.Logo,children:h.jsx("img",{src:p3,alt:"Langfinity"})}),!e.hideUserNav&&t.auth?h.jsx(YLt,{name:t.auth.name}):null,e.children]})}const e8t="_TryTranslation_jbe50_1",t8t="_Column_jbe50_13",n8t="_Welcome_jbe50_27",r8t="_StartTranslation_jbe50_32",i8t="_LanguageSelects_jbe50_36",o8t="_TranscriptLanguage_jbe50_44",s8t="_Video_jbe50_54",a8t="_Transcript_jbe50_44",c8t="_Caption_jbe50_109",l8t="_TranslatedCaption_jbe50_119",u8t="_TranscriptDialog_jbe50_130",d8t="_TranscriptDialogContent_jbe50_140",f8t="_TranscriptDialogTitle_jbe50_152",es={TryTranslation:e8t,Column:t8t,Welcome:n8t,StartTranslation:r8t,LanguageSelects:i8t,TranscriptLanguage:o8t,Video:s8t,Transcript:a8t,Caption:c8t,TranslatedCaption:l8t,TranscriptDialog:u8t,TranscriptDialogContent:d8t,TranscriptDialogTitle:f8t},vD=[{offset:1,captions:[{language:"en-US",text:"Hydrogen for cars—critics call it the ‘champagne’ of the energy transition,"},{language:"zh-CN",text:"用于汽车的氢能——评论家称其为能源转型的「香槟」,"},{language:"de-DE",text:"Wasserstoff für Autos – Kritiker bezeichnen Wasserstoff als ‚Champagner‘ der Energiewende,"}]},{offset:7,captions:[{language:"de-DE",text:"weil er eben aufgrund des hohen Energieverlustes bei seiner Herstellung eben rar und teuer ist."},{language:"zh-CN",text:"因为在生产过程中能量损耗极大,所以它既昂贵又稀缺。"},{language:"en-US",text:"because it’s rare and expensive due to the significant loss of energy in its production."}]}
1587,{offset:13,captions:[{language:"de-DE",text:"Werden Ihre Autos in Zukunft diesen ‚Champagner‘ tanken, Herr Diess?"},{language:"zh-CN",text:"Diess先生,您的汽车未来会使用这种「香槟」作为燃料吗?"},{language:"en-US",text:"Will your cars run on this ‘champagne’ in the future, Mr. Diess? "}]},{offset:18,captions:[{language:"de-DE",text:"Aller Voraussicht nach nicht, weil Sie haben den kritischen Punkt eben schon angesprochen."},{language:"en-US",text:"Most likely not, because you already mentioned the critical point."},{language:"zh-CN",text:"很可能不会,因为您已经提到了关键点。"}]},{offset:23,captions:[{language:"de-DE",text:"Wasserstoff wird auch, glaube ich, in der Energiewende eine große Rolle spielen,"},{language:"en-US",text:"I do believe that hydrogen will play a major role in the energy transition,"},{language:"zh-CN",text:"我认为,氢气在能源转型中也扮演着重要角色,"}]},{offset:28,captions:[{language:"de-DE",text:"weil man viele Dekarbonisierungsthemen ohne Wasserstoff nicht bewältigen können wird."},{language:"en-US",text:"because many decarbonization issues cannot be tackled without hydrogen."},{language:"zh-CN",text:"因为许多脱碳问题无法在没有氢气的情况下解决。"}]},{offset:35,captions:[{language:"de-DE",text:"Wasserstoff ist ein speicherbares Medium,"},{language:"en-US",text:"Hydrogen is a storable medium,"},{language:"zh-CN",text:"氢气不是一种可储存的介质,"}]},{offset:38,captions:[{language:"de-DE",text:"und Wasserstoff wird aber unglaublich wichtig sein bei industriellen Prozessen in der Düngemittelherstellung, in der Stahlherstellung,"},{language:"en-US",text:"and hydrogen will be incredibly important in industrial processes such as fertilizer production and steel manufacturing."},{language:"zh-CN",text:"但是氢气在工业过程中将变得非常重要,例如肥料生产和钢铁制造。"}]},{offset:43,captions:[{language:"de-DE",text:"da kann man sich eine Dekarbonisierung ohne Wasserstoff nicht vorstellen."},{language:"en-US",text:"One cannot imagine decarbonization without hydrogen."},{language:"zh-CN",text:"无法想象没有氢气的脱碳过程。"}]}
1587],yD={"en-US":{female:"https://byrdhouse-public-prod.s3.us-west-1.amazonaws.com/static/home/landing-page-voices/female-en-US.mp3",male:"https://byrdhouse-public-prod.s3.us-west-1.amazonaws.com/static/home/landing-page-voices/male-en-US.mp3"},"zh-CN":{female:"https://byrdhouse-public-prod.s3.us-west-1.amazonaws.com/static/home/landing-page-voices/female-zh-CN.mp3",male:"https://byrdhouse-public-prod.s3.us-west-1.amazonaws.com/static/home/landing-page-voices/male-zh-CN.mp3"}},h8t=e=>h.jsx(xs,{open:e.open,onOpenChange:e.onOpenChange,title:"Support 50+ languages",content:e.children,className:es.TranscriptDialogContent,contentClassName:es.TranscriptDialog,titleClassName:es.TranscriptDialogTitle});function bD({playing:e,setPlaying:t,videoEl:n,audioRef:r,onTimeUpdate:i,overridePlay:o,handlePause:s,handlePlay:a,toLanguage:c}){return h.jsxs("div",{className:es.Video,children:[h.jsx("video",{playsInline:!0,ref:n,controls:!1,onPlaying:()=>t(!0),onPlay:a,onPause:s,onTimeUpdate:i,onSeeking:i,src:"https://byrdhouse-public-prod.s3.us-west-1.amazonaws.com/static/home/landing-translation.mp4#t=0.01"}),h.jsx("audio",{ref:r,onEnded:()=>{var l;(l=r.current)==null||l.load()}}),h.jsx("button",{onClick:()=>{o?o():n.current&&(n.current.muted=c!=="de-DE",n.current.play())},children:e?void 0:h.jsx(Bye,{})})]})}function wk(e){const t=b.useRef(null);return b.useEffect(()=>{var n;(n=t.current)==null||n.scrollTo({top:t.current.scrollHeight})},[t,e.renderCaptions]),h.jsxs(h.Fragment,{children:[h.jsx("div",{className:es.TranscriptLanguage,children:h.jsx("p",{children:`${eu(e.language)} ${Kr(e.language)}`})}),h.jsx("div",{className:es.Transcript,ref:t,children:e.renderCaptions.filter(n=>n.language===e.language).map((n,r)=>h.jsx("div",{className:e.language==="de-DE"?es.Caption:es.TranslatedCaption,children:n.text},r))})]})}function p8t(){const[e,t]=b.useState(!1),n=b.useRef(null),r=b.useRef(null),i=ks(),[o,s]=b.useState(!1),a="de-DE",[c,l]=b.useState("en-US");b.useEffect(()=>{o||t(!1)},[o]);const[u,d]=b.useState(vD.slice(0,6).flatMap(y=>y.captions)),f=b.useCallback(y=>{const v=n.current,w=r.current;if(!v||v.currentTime<.1)return;if(c!=="de-DE"&&w){const A=v.currentTime,L=w.src.includes("female");A>=18&&L?(w.src=yD[c].male,w.currentTime=A-18,v.paused||w.play()):A<18&&!L&&(w.src=yD[c].female,w.currentTime=A,v.paused||w.play())}const C=y.currentTarget.currentTime,E=vD.filter(A=>A.offset<=C),T=E.slice(0,-1).flatMap(A=>A.captions),x=E.at(-1),O=(x==null?void 0:x.captions.map(A=>{const{language:L,text:U}=A,I=C-((x==null?void 0:x.offset)??0);if(v.paused&&(C===v.duration||C===0))return{language:L,text:U};if(L==="zh-CN"){const F=Array.from(U),P=4*Math.floor(I);return{language:L,text:F.slice(0,P).join("")}}else{const F=U.split(" "),P=3*Math.floor(I);return{language:L,text:F.slice(0,P).join(" ")}}}))??[];d([...T,...O])},[c]),p=b.useCallback(()=>{var y,v;t(!1),c!=="de-DE"&&r.current&&((y=n.current)==null?void 0:y.currentTime)!==((v=n.current)==null?void 0:v.duration)&&r.current.pause()},[c]),g=b.useCallback(()=>{t(!0),n.current&&(n.current.muted=c!=="de-DE"),c!=="de-DE"&&r.current&&r.current.play()},[c]);b.useEffect(()=>{const y=n.current,v=r.current;if(!y||!v)return;if(c==="de-DE"){v.pause(),y.muted=!1;return}y.muted=!0;const w=y.currentTime,S=w>=18;v.src=yD[c][S?"male":"female"],v.currentTime=S?w-18:w,y.paused||v.play()},[c]);const m=b.useMemo(()=>h.jsxs("div",{className:es.LanguageSelects,children:[h.jsx(qe,{color:"white",backgroundColor:"dark-gray",borderColor:"black",children:Kr(a)}),h.jsx("p",{children:"to"}),h.jsx(Ia,{color:"black",backgroundColor:"transparent",borderColor:"black",selected:c,onChange:y=>l(y),items:vD[0].captions.map(y=>y.language).map(y=>({value:y,label:Kr(y)}))})]}),[a,c]);return i?h.jsxs(h.Fragment,{children:[h.jsxs("div",{className:es.TryTranslation,children:[h.jsx("h3",{children:"Support 50+ languages"}),m,h.jsx(bD,{playing:e,setPlaying:t,videoEl:n,audioRef:r,onTimeUpdate:f,overridePlay:()=>{n.current&&(n.current.muted=c!=="de-DE"),s(!0)},toLanguage:c,setToLanguage:l,handlePause:p,handlePlay:g}),h.jsx(qe,{onClick:()=>{n.current&&(n.current.muted=c!=="de-DE"),s(!0)},color:"white",backgroundColor:"black",borderColor:"black",className:es.StartTranslation,children:"Start translation"})]}),h.jsxs(h8t,{open:o,onOpenChange:s,children:[h.jsx(bD,{playing:e,setPlaying:t,videoEl:n,audioRef:r,onTimeUpdate:f,toLanguage:c,setToLanguage:l,handlePause:p,handlePlay:g}),h.jsx(wk,{language:a,renderCaptions:u}),h.jsx(wk,{language:c,renderCaptions:u})]})]}):h.jsxs("div",{className:es.TryTranslation,children:[h.jsxs("div",{className:es.Column,children:[h.jsx("div",{className:es.Welcome,children:h.jsx("h3",{children:"Support 50+ languages"})}),h.jsx(bD,{playing:e,setPlaying:t,videoEl:n,audioRef:r,onTimeUpdate:f,toLanguage:c,setToLanguage:l,handlePause:p,handlePlay:g})]}),h.jsxs("div",{className:es.Column,children:[m,h.jsx(wk,{language:a,renderCaptions:u})]}),h.jsxs("div",{className:es.Column,children:[h.jsx(qe,{onClick:()=>{n.current&&(n.current.muted=c!=="de-DE",n.current.paused?n.current.play():n.current.pause())},color:"white",backgroundColor:"black",borderColor:"black",className:es.StartTranslation,children:e?"Stop translation":"Start translation"}),h.jsx(wk,{language:c,renderCaptions:u})]})]})}const m8t="/assets/meeting_and_phone-CW03e4rw.webp",g8t="/assets/event_phone-DL1odx89.webp",v8t="/assets/event_stage-BRuvLOyU.webp",y8t="/assets/interpreter_phones-DUcBq7dU.webp",b8t="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='utf-8'?%3e%3c!--%20Uploaded%20to:%20SVG%20Repo,%2
15870www.svgrepo.com,%20Generator:%20SVG%20Repo%20Mixer%20Tools%20--%3e%3csvg%20width='800px'%20height='800px'%20viewBox='0%200%2032%2032'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M19%2013.9032C19%2013.4044%2019.4044%2013%2019.9032%2013H31.0968C31.5956%2013%2032%2013.4044%2032%2013.9032V20.5C32%2024.0899%2029.0899%2027%2025.5%2027C21.9101%2027%2019%2024.0899%2019%2020.5V13.9032Z'%20fill='url(%23paint0_linear_87_7777)'/%3e%3cpath%20d='M9%2012.2258C9%2011.5488%209.54881%2011%2010.2258%2011H23.7742C24.4512%2011%2025%2011.5488%2025%2012.2258V22C25%2026.4183%2021.4183%2030%2017%2030C12.5817%2030%209%2026.4183%209%2022V12.2258Z'%20fill='url(%23paint1_linear_87_7777)'/%3e%3ccircle%20cx='27'%20cy='8'%20r='3'%20fill='%2334439E'/%3e%3ccircle%20cx='27'%20cy='8'%20r='3'%20fill='url(%23paint2_linear_87_7777)'/%3e%3ccircle%20cx='18'%20cy='6'%20r='4'%20fill='url(%23paint3_linear_87_7777)'/%3e%3cmask%20id='mask0_87_7777'%20style='mask-type:alpha'%20maskUnits='userSpaceOnUse'%20x='9'%20y='0'%20width='16'%20height='30'%3e%3cpath%20d='M17%2010C19.7615%2010%2022%207.76147%2022%205C22%202.23853%2019.7615%200%2017%200C14.2385%200%2012%202.23853%2012%205C12%207.76147%2014.2385%2010%2017%2010Z'%20fill='url(%23paint4_linear_87_7777)'/%3e%3cpath%20d='M10.2258%2011C9.54883%2011%209%2011.5488%209%2012.2258V22C9%2026.4183%2012.5817%2030%2017%2030C21.4183%2030%2025%2026.4183%2025%2022V12.2258C25%2011.5488%2024.4512%2011%2023.7742%2011H10.2258Z'%20fill='url(%23paint5_linear_87_7777)'/%3e%3c/mask%3e%3cg%20mask='url(%23mask0_87_7777)'%3e%3cpath%20d='M7%2012C7%2010.3431%208.34315%209%2010%209H17C18.6569%209%2020%2010.3431%2020%2012V24C20%2025.6569%2018.6569%2027%2017%2027H7V12Z'%20fill='%23000000'%20fill-opacity='0.3'/%3e%3c/g%3e%3crect%20y='7'%20width='18'%20height='18'%20rx='2'%20fill='url(%23paint6_linear_87_7777)'/%3e%3cpath%20d='M13%2011H5V12.8347H7.99494V21H10.0051V12.8347H13V11Z'%20fill='white'/%3e%3cdefs%3e%3clinearGradient%20id='paint0_linear_87_7777'%20x1='19'%20y1='13.7368'%20x2='32.1591'%20y2='22.3355'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%23364088'/%3e%3cstop%20offset='1'%20stop-color='%236E7EE1'/%3e%3c/linearGradient%3e%3clinearGradient%20id='paint1_linear_87_7777'%20x1='9'%20y1='19.4038'%20x2='25'%20y2='19.4038'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%23515FC4'/%3e%3cstop%20offset='1'%20stop-color='%237084EA'/%3e%3c/linearGradient%3e%3clinearGradient%20id='paint2_linear_87_7777'%20x1='24'%20y1='5.31579'%20x2='29.7963'%20y2='9.39469'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%23364088'/%3e%3cstop%20offset='1'%20stop-color='%236E7EE1'/%3e%3c/linearGradient%3e%3clinearGradient%20id='paint3_linear_87_7777'%20x1='15.1429'%20y1='3.14286'%20x2='20.2857'%20y2='9.14286'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%234858AE'/%3e%3cstop%20offset='1'%20stop-color='%234E60CE'/%3e%3c/linearGradient%3e%3clinearGradient%20id='paint4_linear_87_7777'%20x1='13.4286'%20y1='1.42857'%20x2='19.8571'%20y2='8.92857'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%234858AE'/%3e%3cstop%20offset='1'%20stop-color='%234E60CE'/%3e%3c/linearGradient%3e%3clinearGradient%20id='paint5_linear_87_7777'%20x1='13.4286'%20y1='1.42857'%20x2='19.8571'%20y2='8.92857'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%234858AE'/%3e%3cstop%20offset='1'%20stop-color='%234E60CE'/%3e%3c/linearGradient%3e%3clinearGradient%20id='paint6_linear_87_7777'%20x1='-5.21539e-08'%20y1='16'%20x2='18'%20y2='16'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%232A3887'/%3e%3cstop%20offset='1'%20stop-color='%234C56B9'/%3e%3c/linearGradient%3e%3c/defs%3e%3c/svg%3e",w8t="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='utf-8'?%3e%3c!--%20Uploaded%20to:%20SVG%20Repo,%20www.svgrepo.com,%20Generator:%20SVG%20Repo%20Mixer%20Tools%20--%3e%3csvg%20width='800px'%20height='800px'%20viewBox='0%200%2032%2032'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M2%2011.9556C2%208.47078%202%206.7284%202.67818%205.39739C3.27473%204.22661%204.22661%203.27473%205.39739%202.67818C6.7284%202%208.47078%202%2011.9556%202H20.0444C23.5292%202%2025.2716%202%2026.6026%202.67818C27.7734%203.27473%2028.7253%204.22661%2029.3218%205.39739C30%206.7284%2030%208.47078%2030%2011.9556V20.0444C30%2023.5292%2030%2025.2716%2029.3218%2026.6026C28.7253%2027.7734%2027.7734%2028.7253%2026.6026%2029.3218C25.2716%2030%2023.5292%2030%2020.0444%2030H11.9556C8.47078%2030%206.7284%2030%205.39739%2029.3218C4.22661%2028.7253%203.27473%2027.7734%202.67818%2026.6026C2%2025.2716%202%2023.5292%202%2020.0444V11.9556Z'%20fill='white'/%3e%3cpath%20d='M5%2023.5601C5%2024.3557%205.64998%2025.0001%206.45081%2025.0001H6.47166C5.65857%2025.
15870001%205%2024.3557%205%2023.5601Z'%20fill='%23FBBC05'/%3e%3cpath%20d='M17.4678%2012.4V16.1596L22.5364%2012.0712V8.43999C22.5364%207.6444%2021.8864%207%2021.0856%207H10.1045L10.0947%2012.4H17.4678Z'%20fill='%23FBBC05'/%3e%3cpath%20d='M17.4671%2019.9207H10.0818L10.0732%2025.0003H21.085C21.887%2025.0003%2022.5358%2024.3559%2022.5358%2023.5603V20.2819L17.4671%2016.1611V19.9207Z'%20fill='%2334A853'/%3e%3cpath%20d='M10.1042%207L5%2012.4H10.0956L10.1042%207Z'%20fill='%23EA4335'/%3e%3cpath%20d='M5%2019.9204V23.56C5%2024.3556%205.65857%2025%206.47166%2025H10.0736L10.0821%2019.9204H5Z'%20fill='%231967D2'/%3e%3cpath%20d='M10.0956%2012.3999H5V19.9203H10.0821L10.0956%2012.3999Z'%20fill='%234285F4'/%3e%3cpath%20d='M26.9926%2022.2796V9.9197C26.7068%208.27931%2024.9077%2010.1597%2024.9077%2010.1597L22.5371%2012.0713V20.2804L25.9305%2023.0392C27.1557%2023.2%2026.9926%2022.2796%2026.9926%2022.2796Z'%20fill='%2334A853'/%3e%3cpath%20d='M17.4678%2016.1594L22.5377%2020.2814V12.0723L17.4678%2016.1594Z'%20fill='%23188038'/%3e%3c/svg%3e",S8t="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='utf-8'?%3e%3c!--%20Uploaded%20to:%20SVG%20Repo,%20www.svgrepo.com,%20Generator:%20SVG%20Repo%20Mixer%20Tools%20--%3e%3csvg%20width='800px'%20height='800px'%20viewBox='0%200%2032%2032'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M2%2011.6C2%208.23969%202%206.55953%202.65396%205.27606C3.2292%204.14708%204.14708%203.2292%205.27606%202.65396C6.55953%202%208.23969%202%2011.6%202H20.4C23.7603%202%2025.4405%202%2026.7239%202.65396C27.8529%203.2292%2028.7708%204.14708%2029.346%205.27606C30%206.55953%2030%208.23969%2030%2011.6V20.4C30%2023.7603%2030%2025.4405%2029.346%2026.7239C28.7708%2027.8529%2027.8529%2028.7708%2026.7239%2029.346C25.4405%2030%2023.7603%2030%2020.4%2030H11.6C8.23969%2030%206.55953%2030%205.27606%2029.346C4.14708%2028.7708%203.2292%2027.8529%202.65396%2026.7239C2%2025.4405%202%2023.7603%202%2020.4V11.6Z'%20fill='%234087FC'/%3e%3cpath%20d='M8.26667%2010C7.56711%2010%207%2010.6396%207%2011.4286V18.3571C7%2020.369%208.44612%2022%2010.23%2022L17.7333%2021.9286C18.4329%2021.9286%2019%2021.289%2019%2020.5V13.5C19%2011.4881%2017.2839%2010%2015.5%2010L8.26667%2010Z'%20fill='white'/%3e%3cpath%20d='M20.7122%2012.7276C20.2596%2013.1752%2020%2013.8211%2020%2014.5V17.3993C20%2018.0782%2020.2596%2018.7242%2020.7122%2019.1717L23.5288%2021.6525C24.1019%2022.2191%2025%2021.7601%2025%2020.9005V11.1352C25%2010.2755%2024.1019%209.81654%2023.5288%2010.3832L20.7122%2012.7276Z'%20fill='white'/%3e%3c/svg%3e",_8t="_Testimonies_igpti_1",C8t="_Testimony_igpti_8",E8t="_Quote_igpti_21",T8t="_FadeOut_igpti_32",k8t="_Image_igpti_36",x8t="_Current_igpti_55",A8t="_Dots_igpti_77",I8t="_Dark_igpti_95",R8t="_Customer_igpti_112",ku={Testimonies:_8t,Testimony:C8t,Quote:E8t,FadeOut:T8t,Image:k8t,Current:x8t,Dots:A8t,Dark:I8t,Customer:R8t},Ooe=e=>{const[t,n]=b.useState(0),[r,i]=b.useState(!1),[o,s]=b.useState(void 0);b.useEffect(()=>{if(o!==void 0)return;const c=setInterval(()=>{i(!0),setTimeout(()=>{n(l=>(l+1)%e.testimonies.length),i(!1)},1e3)},10*1e3);return()=>clearInterval(c)},[e.testimonies,o]);const a=b.useMemo(()=>e.testimonies[t],[e.testimonies,t]);return h.jsxs("div",{className:ku.Testimonies,children:[h.jsxs("div",{className:`${ku.Testimony} ${r?ku.FadeOut:""}`,children:[h.jsx("div",{className:ku.Image,children:h.jsx("img",{src:a.companyImage,alt:"Company"})}),h.jsxs("div",{className:ku.Current,children:[h.jsx("div",{className:ku.Quote,children:h.jsxs("h2",{children:['"',a.quote,'"']})}),h.jsxs("div",{className:ku.Customer,children:[a.image?h.jsx("img",{src:a.image,alt:a.name}):h.jsx(Uye,{}),h.jsxs("div",{children:[h.jsx("h3",{children:a.name}),h.jsx("h3",{children:a.title})]})]})]})]}),h.jsx("div",{className:`${ku.Dots} ${e.theme==="light"?ku.Light:ku.Dark}`,children:e.testimonies.map((c,l)=>h.jsx("div",{"data-active":o!==void 0?o===l:t===l,onClick:()=>{s(l),i(!0),setTimeout(()=>{n(l),i(!1),s(void 0)},1e3)}},l))})]})},P8t="_TryDomainTranslation_18m7j_1",O8t="_Translations_18m7j_35",N8t="_Term_18m7j_55",sS={TryDomainTranslation:P8t,Translations:O8t,Term:N8t},Noe=[{name:"Manufacturing",en:["Die casting","Extrusion","Annealing","Work hardening","Tolerance stack-up","Friction welding","Powder metallurgy","Electroplating","Additive manufacturing","Cnc machining","Plasma cutting","Induction hardening","Hydroforming","Spin forming","Shot peening","Sintering","Brazing","Jig boring","Reshoring","Process capability index","Total productive maintenance","Lean six sigma","Kaizen","Kanban","Gemba walk","5s methodology","Root cause analysis","Failure mode and effects analysis","Statistical process control","Just-in-time production","Poka-yoke","Andon system","Overall equipment effectiveness","Gage repeatability and reproducibility","First article inspection","Reflow soldering","Incremental sheet forming","Multi-spindle drilling","Electrochemical machining","Superplastic forming","Cold heading","Ultrasonic welding","Non-destructive testing","Dielectric heating","Forging flash","Hob cutting","Subtractive manufacturing","Laser ablation","Reverse engineering","Tribology"],"zh-Hans":["压铸","挤压","退火","加工硬化","公差累积","摩擦焊接","粉末冶金","电镀","增材制造","数控加工","等离子切割","感应淬火","水胀成形","旋压成形","喷丸","烧结","钎焊","镗孔","回流制造","过程能力指数","全面生产维护","精益六西格玛","改善","看板","现场巡视","5S 方法论","根本原因分析","失效模式及影响分析","统计过程控制","准时生产","防呆设计","安灯系统","设备综合效率","量具重复性与再现性","首件检验","回流焊","增量板材成形","多轴钻孔","电化学加工","超塑性成形","冷镦","超声焊接","无损检测","介电加热","锻造飞边","滚刀切割","减材制造","激光烧蚀","逆向工程","摩擦学"]},{name:"Technology",en:["Edge computing","Quantum entanglement","Homomorphic encryption","Neural radiance fields","Zero-knowledge proofs","Multi-factor authentication","Digital twin","Federated learning","Graph database","Automated reasoning","Sharding","Side channel attack","Self-healing networks","Memory hard functions","Virtual memory paging","Heterogeneous computing","Container orchestration","Dynamic binary translation","Predictive maintenance","Blockchain consensus mechanism","Synthetic data","Secure enclave","Data sovereignty","Software-defined networking","Chaos engineering","Immutable ledger","Homogeneous clustering","Adversarial machine learning","End-to-end encryption","Hardware root of trust","Knowledge distillation","Polyglot persistence","Quantum key distribution","Serverless computing","Automated penetration testing","Fuzzy logic","Cap theorem","Event-driven architecture","Non-volatile memory express","Webassembly","Isomorphic javascript","Elliptic curve cryptography","Dark pattern design","Differential privacy","Geofencing","Human augmentation","Energy harvesting","Digital rights management","Data mesh","Computational photography","Tensor processing unit"],"zh-Hans":["边缘计算","量子纠缠","同态加密","神经辐射场","零知识证明","多因素认证","数字孪生","联邦学习","图数据库","自动推理","分片","旁路攻击","自愈网络","内存硬函数","虚拟内存分页","异构计算","容器编排","动态二进制翻译","预测性维护","区块链共识机制","å
1587ˆæˆæ•°æ®","安全飞地","数据主权","软件定义网络","混沌工程","不可变分类账","同质化集群","对抗性机器学习","端到端加密","硬件信任根","知识蒸馏","多语言持久性","量子密钥分发","无服务器计算","自动渗透测试","模糊逻辑","CAP 定理","事件驱动架构","非易失性存储快递","WebAssembly","同构 JavaScript","椭圆曲线加密","暗黑模式设计","差分隐私","地理围栏","人机增强","能量采集","数字版权管理","数据网格","计算摄影","张量处理单元"]},{name:"Transportation",en:["Intermodal freight","Waybill","Ballastless track","Aerodynamic drag","Cabotage","Pantograph","Deadheading","Load factor","Jet bridge","Airfoil","Road diet","High-speed maglev","Catenary system","Turnpike tolling","Tractive effort","Marshalling yard","Positive train control","Cold chain logistics","Tare weight","Containerization","Dwell time","Slot management","Cab signaling","Pavement fatigue","Reverse logistics","Tramway infrastructure","Headway","Runway excursion","Wheel-rail interaction","Dead reckoning","Transport demand modeling","Urban freight distribution","Paratransit","Bus rapid transit","Straddle carrier","Emission control area","Automated people mover","Trolleybus system","Dynamic routing","Overhead contact system","Airside operations","Wayfinding signage","Last-mile delivery","Tandem axle","Drayage","Spur track","Helical gearbox","Turbofan bypass ratio","Gradient resistance","Canal lock system","Aerotropolis"],"zh-Hans":["联运货运","运单","无碴轨道","空气动力阻力","沿海航运","受电弓","空驶","载客率","登机廊桥","翼型","道路缩减","高速磁悬浮","接触网系统","收费公路","牵引力","编组站","列车自动控制","冷链物流","自重","集装箱化","停留时间","时隙管理","驾驶室信号","路面疲劳","逆向物流","有轨电车基础设施","列车间隔","跑道偏离","轮轨相互作用","航位推算","运输需求建模","城市货运配送","辅助交通","快速公交","跨运车","排放控制区","自动旅客运输系统","无轨电车系统","动态调度","架空接触系统","空侧运营","导向标识","最后一英里配送","双轴桥","短途货运","支线轨道","螺旋齿轮箱","涡扇旁通比","坡度阻力","船闸系统","空港都市"]},{name:"Church",en:["Ecumenism","Eschatology","Catechesis","Vestments","Chancel","Apologetics","Cenobitic monasticism","Iconostasis","Anathema","Sacramental wine","Lectio divina","Exegesis","Ablution","Chrismation","Hagiography","Mystagogy","Transubstantiation","Cantillation","Gregorian chant","Liturgical calendar","Kyrie eleison","Pentecostalism","Pulpit supply","Benediction","Hermeneutics","Eucharistic adoration","Monstrance","Concelebration","Prevenient grace","Sanctification","Apostolic succession","Diaconate","Church polity","Presbyterianism","Anabaptism","Ordo salutis","Vestibule theology","Sacrificial lamb","Cistercian order","Triduum","Consubstantiation","Homiletics","Orthodoxy","Pastoral epistles","Iconoclasm","Theophany","Inculturation","Pneumatology","Sola scriptura","Sanctuary lamp","Epiclesis"],"zh-Hans":["普世教会运动","末世论","教理问答","圣衣","圣坛区","护教学","修道院生活","圣像屏","绝罚","圣餐酒","神圣阅读","释经学","净礼","傅油礼","圣人传记","奥秘学","圣体变质","圣咏诵读","格里高利圣咏","礼仪年历","主怜悯","五旬宗","讲坛供应","祝福仪式","经学解释","圣体崇拜","圣体容器","共祭","预存恩典","成圣","使徒继承","执事职务","教会治理","长老会制","再洗礼派","救赎次序","前厅神学","献祭羔羊","熙笃会","三日节","并存论","讲道学","正统信仰","牧函","圣像破坏运动","显现节","文化适应","圣灵学","唯独圣经","圣灯","降临祷文"]},{name:"Pharmaceutical",en:["Biopharmaceutics","Pharmacokinetics","Lipophilicity","Excipient","Prodrug","Bioavailability","Microsomal enzymes","Chirality","Enantiomer","Therapeutic index","Half-Life Elimination","First-Pass metabolism","Allosteric modulation","Ligand binding affinity","Receptor agonist","Pharmacodynamics","Orphan drug designation","Narrow therapeutic index","Biotransformation","Enteric coating","Nanocarrier","Polypharmacy","Pharmacovigilance","Cytotoxic agent","Compounded medication","Drug Master file","Oral bioavailability","Adenosine triphosphate-binding cassette","Efflux transporter","Parenteral administration","Sterile filtration","Hydrophilic-lipophilic balance","Active pharmaceutical ingredient","Controlled release formulation","Excipient compatibility","Sustained release tablet","Osmotic drug delivery","Transdermal patch","Extended-release capsule","Pharmacogenomics","Liposome encapsulation","Monoclonal antibody therapy","Recombinant dna technology","Peptide drug conjugate","High-performance liquid chromatography","Clinical pharmacology","Antisense oligonucleotide","In-silico drug design","Toxicokinetics","Dissolution profile","First-in-human trial"],"zh-Hans":["生物药剂学","药代动力学","脂溶性","赋形剂","前药","生物利用度","微粒酶","手性","对映体","治疗指数","半衰期消除","首过代谢","变构调节","配体结合亲和力","受体激动剂","药效学","孤儿药指定","窄治疗指数","生物转化","肠溶包衣","纳米载体","多重用药","药物警戒","细胞毒剂","配制药物","药品主文件","口服生物利用度","腺苷三磷酸结合盒","外排转运蛋白","肠胃外给药","无菌过滤","亲水-疏水平衡","活性药物成分","控释配方","赋形剂相容性","缓释片","渗透性药物递送","透皮贴片","延释胶囊","药物基因组学","脂质体包封","单克隆抗体疗法","重组DNA技术","肽类药物偶联","高效液相色谱","临床药理学","反义寡核苷酸","计算机辅助药物设计","毒代动力学","溶出曲线","首次人体试验"]}],M8t=()=>{const[e,t]=b.useState(0),n=b.useMemo(()=>Noe[e],[e]),[r,i]=b.useState();return h.jsxs("div",{className:sS.TryDomainTranslation,children:[h.jsx("div",{children:Noe.map((o,s)=>h.jsx("h3",{onClick:()=>t(s),"aria-selected":s===e,children:o.name},s))}),h.jsxs("div",{children:[h.jsxs("div",{className:sS.Translations,children:[h.jsx("h3",{children:"🇺🇸 English"}),h.jsx("div",{children:n.en.slice(0,30).map((o,s)=>h.jsx("div",{onMouseEnter:()=>i(s),onClick:()=>i(s),"data-active":s===r,className:sS.Term,children:h.jsx("h3",{children:o})},o))})]}),h.jsxs("div",{className:sS.Translations,children:[h.jsx("h3",{children:"🇨🇳 中文"}),h.jsx("div",{children:n["zh-Hans"].slice(0,30).map((o,s)=>h.jsx("div",{onMouseEnter:()=>i(s),onClick:()=>i(s),"data-active":s===r,className:sS.Term,children:h.jsx("h3",{children:o})},o))})]})]})]})},D8t="_Morse_1eddu_1",L8t={Morse:D8t},eU=()=>
1587h.jsxs("svg",{width:"264",height:"80",viewBox:"0 0 264 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:L8t.Morse,children:[h.jsx("circle",{cx:"24",cy:"24",r:"24",fill:"#EC6030"}),h.jsx("rect",{x:"72",width:"48",height:"48",fill:"#3C75EE"}),h.jsx("circle",{cx:"168",cy:"24",r:"24",fill:"#67DBDC"}),h.jsx("circle",{cx:"240",cy:"24",r:"24",fill:"#EC63DD"})]});function KN(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(l){try{c(r.next(l))}catch(u){o(u)}}function a(l){try{c(r.throw(l))}catch(u){o(u)}}function c(l){var u;l.done?i(l.value):(u=l.value,u instanceof n?u:new n((function(d){d(u)}))).then(s,a)}c((r=r.apply(e,[])).next())}))}function Jp(e,t){var n,r,i,o,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function a(c){return function(l){return(function(u){if(n)throw new TypeError("Generator is already executing.");for(;s;)try{if(n=1,r&&(i=2&u[0]?r.return:u[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,u[1])).done)return i;switch(r=0,i&&(u=[2&u[0],i.value]),u[0]){case 0:case 1:i=u;break;case 4:return s.label++,{value:u[1],done:!1};case 5:s.label++,r=u[1],u=[0];continue;case 7:u=s.ops.pop(),s.trys.pop();continue;default:if(i=s.trys,!((i=i.length>0&&i[i.length-1])||u[0]!==6&&u[0]!==2)){s=0;continue}if(u[0]===3&&(!i||u[1]>i[0]&&u[1]<i[3])){s.label=u[1];break}if(u[0]===6&&s.label<i[1]){s.label=i[1],i=u;break}if(i&&s.label<i[2]){s.label=i[2],s.ops.push(u);break}i[2]&&s.ops.pop(),s.trys.pop();continue}u=t.call(e,s)}catch(d){u=[6,d],r=0}finally{n=i=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}})([c,l])}}}function tU(e){var t=typeof Symbol=="function"&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function Hl(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),s=[];try{for(;(t===void 0||t-- >0)&&!(r=o.next()).done;)s.push(r.value)}catch(a){i={error:a}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return s}function Ku(e,t,n){if(arguments.length===2)for(var r,i=0,o=t.length;i<o;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))}function Moe(e,t,n,r,i){for(var o=[],s=5;s<arguments.length;s++)o[s-5]=arguments[s];return KN(this,void 0,void 0,(function(){var a,c,l,u,d,f;return Jp(this,(function(p){switch(p.label){case 0:p.trys.push([0,12,13,14]),a=tU(o),c=a.next(),p.label=1;case 1:if(c.done)return[3,11];switch(l=c.value,typeof l){case"string":return[3,2];case"number":return[3,4];case"function":return[3,6]}return[3,8];case 2:return[4,F8t(e,t,l,n,r,i)];case 3:return p.sent(),[3,10];case 4:return[4,WTe(l)];case 5:return p.sent(),[3,10];case 6:return[4,l.apply(void 0,Ku([e,t,n,r,i],Hl(o),!1))];case 7:return p.sent(),[3,10];case 8:return[4,l];case 9:p.sent(),p.label=10;case 10:return c=a.next(),[3,1];case 11:return[3,14];case 12:return u=p.sent(),d={error:u},[3,14];case 13:try{c&&!c.done&&(f=a.return)&&f.call(a)}finally{if(d)throw d.error}return[7];case 14:return[2]}}
1587))}))}function F8t(e,t,n,r,i,o){return KN(this,void 0,void 0,(function(){var s,a;return Jp(this,(function(c){switch(c.label){case 0:return s=e.textContent||"",a=(function(l,u){var d=Hl(u).slice(0);return Ku(Ku([],Hl(l),!1),[NaN],!1).findIndex((function(f,p){return d[p]!==f}))})(s,n),[4,j8t(e,Ku(Ku([],Hl(B8t(s,t,a)),!1),Hl(U8t(n,t,a)),!1),r,i,o)];case 1:return c.sent(),[2]}}))}))}function WTe(e){return KN(this,void 0,void 0,(function(){return Jp(this,(function(t){switch(t.label){case 0:return[4,new Promise((function(n){return setTimeout(n,e)}))];case 1:return t.sent(),[2]}}))}))}function j8t(e,t,n,r,i){return KN(this,void 0,void 0,(function(){var o,s,a,c,l,u,d,f,p,g,m,y,v;return Jp(this,(function(w){switch(w.label){case 0:if(o=t,i){for(s=0,a=1;a<t.length;a++)if(c=Hl([t[a-1],t[a]],2),l=c[0],(u=c[1]).length>l.length||u===""){s=a;break}o=t.slice(s,t.length)}w.label=1;case 1:w.trys.push([1,6,7,8]),d=tU((function(S){var C,E,T,x,O,A,L;return Jp(this,(function(U){switch(U.label){case 0:C=function(I){return Jp(this,(function(F){switch(F.label){case 0:return[4,{op:function(P){return requestAnimationFrame((function(){return P.textContent=I}))},opCode:function(P){var W=P.textContent||"";return I===""||W.length>I.length?"DELETE":"WRITING"}}];case 1:return F.sent(),[2]}}))},U.label=1;case 1:U.trys.push([1,6,7,8]),E=tU(S),T=E.next(),U.label=2;case 2:return T.done?[3,5]:(x=T.value,[5,C(x)]);case 3:U.sent(),U.label=4;case 4:return T=E.next(),[3,2];case 5:return[3,8];case 6:return O=U.sent(),A={error:O},[3,8];case 7:try{T&&!T.done&&(L=E.return)&&L.call(E)}finally{if(A)throw A.error}return[7];case 8:return[2]}}
1587))})(o)),f=d.next(),w.label=2;case 2:return f.done?[3,5]:(p=f.value,g=p.opCode(e)==="WRITING"?n+n*(Math.random()-.5):r+r*(Math.random()-.5),p.op(e),[4,WTe(g)]);case 3:w.sent(),w.label=4;case 4:return f=d.next(),[3,2];case 5:return[3,8];case 6:return m=w.sent(),y={error:m},[3,8];case 7:try{f&&!f.done&&(v=d.return)&&v.call(d)}finally{if(y)throw y.error}return[7];case 8:return[2]}}))}))}function U8t(e,t,n){var r,i;return n===void 0&&(n=0),Jp(this,(function(o){switch(o.label){case 0:r=t(e),i=r.length,o.label=1;case 1:return n<i?[4,r.slice(0,++n).join("")]:[3,3];case 2:return o.sent(),[3,1];case 3:return[2]}}))}function B8t(e,t,n){var r,i;return n===void 0&&(n=0),Jp(this,(function(o){switch(o.label){case 0:r=t(e),i=r.length,o.label=1;case 1:return i>n?[4,r.slice(0,--i).join("")]:[3,3];case 2:return o.sent(),[3,1];case 3:return[2]}}))}var $8t="index-module_type__E-SaG";(function(e,t){t===void 0&&(t={});var n=t.insertAt;if(typeof document<"u"){var r=document.head||document.getElementsByTagName("head")[0],i=document.createElement("style");i.type="text/css",n==="top"&&r.firstChild?r.insertBefore(i,r.firstChild):r.appendChild(i),i.styleSheet?i.styleSheet.cssText=e:i.appendChild(document.createTextNode(e))}})(`.index-module_type__E-SaG::after {
1588  content: '|';
1589  animation: index-module_cursor__PQg0P 1.1s infinite step-start;
1590}
1591
1592@keyframes index-module_cursor__PQg0P {
1593  50% {
1594    opacity: 0;
1595  }
1596}
1597`);var H8t=b.memo(b.forwardRef((function(e,t){var n=e.sequence,r=e.repeat,i=e.className,o=e.speed,s=o===void 0?40:o,a=e.deletionSpeed,c=e.omitDeletionAnimation,l=c!==void 0&&c,u=e.preRenderFirstString,d=u!==void 0&&u,f=e.wrapper,p=f===void 0?"span":f,g=e.splitter,m=g===void 0?function(G){return Ku([],Hl(G),!1)}:g,y=e.cursor,v=y===void 0||y,w=e.style,S=(function(G,Q){var q={};for(var z in G)Object.prototype.hasOwnProperty.call(G,z)&&Q.indexOf(z)<0&&(q[z]=G[z]);if(G!=null&&typeof Object.getOwnPropertySymbols=="function"){var ue=0;for(z=Object.getOwnPropertySymbols(G);ue<z.length;ue++)Q.indexOf(z[ue])<0&&Object.prototype.propertyIsEnumerable.call(G,z[ue])&&(q[z[ue]]=G[z[ue]])}return q})(e,["sequence","repeat","className","speed","deletionSpeed","omitDeletionAnimation","preRenderFirstString","wrapper","splitter","cursor","style"]),C=S["aria-label"],E=S["aria-hidden"],T=S.role;a||(a=s);var x=new Array(2).fill(40);[s,a].forEach((function(G,Q){switch(typeof G){case"number":x[Q]=Math.abs(G-100);break;case"object":var q=G.type,z=G.value;if(typeof z!="number")break;q==="keyStrokeDelayInMs"&&(x[Q]=z)}}));var O,A,L,U,I,F,P=x[0],W=x[1],ee=(function(G,Q){Q===void 0&&(Q=null);var q=b.useRef(Q);return b.useEffect((function(){G&&(typeof G=="function"?G(q.current):G.current=q.current)}),[G]),q})(t),Y=$8t;O=i?"".concat(v?Y+" ":"").concat(i):v?Y:"",A=b.useRef((function(){var G,Q=n;r===1/0?G=Moe:typeof r=="number"&&(Q=Array(1+r).fill(n).flat());var q=G?Ku(Ku([],Hl(Q),!1),[G],!1):Ku([],Hl(Q),!1);return Moe.apply(void 0,Ku([ee.current,m,P,W,l],Hl(q),!1)),function(){ee.current}})),L=b.useRef(),U=b.useRef(!1),I=b.useRef(!1),F=Hl(b.useState(0),2)[1],U.current&&(I.current=!0),b.useEffect((function(){return U.current||(L.current=A.current(),U.current=!0),F((function(G){return G+1})),function(){I.current&&L.current&&L.current()}}),[]);var X=p,Z=d?n.find((function(G){return typeof G=="string"}))||"":null;return Ae.createElement(X,{"aria-hidden":E,"aria-label":C,role:T,style:w,className:O,children:C?Ae.createElement("span",{"aria-hidden":"true",ref:ee,children:Z}):Z,ref:C?void 0:ee})})),(function(e,t){return!0}));const z8t="_ByrdhouseBanner_bx2ld_1",V8t={ByrdhouseBanner:z8t},hy=()=>h.jsx("div",{className:V8t.ByrdhouseBanner,children:"🎉 Byrdhouse AI is now Langfinity! New name, same magic ✨"}),qTe=()=>{const e=b.useContext(Na);return[e.redirectAfterLogin,e.setRedirectAfterLogin]},W8t="_Companies_9x4t0_1",q8t="_ImageSlider_9x4t0_8",Doe={Companies:W8t,ImageSlider:q8t},G8t="/assets/byrne-BAGg8wRZ.svg",K8t="/assets/atlas_copco-BNHoAX80.svg",GTe="data:image/webp;base64,UklGRnYOAABXRUJQVlA4IGoOAACwOwCdASoOAWQAPm0ylUekIqIhJtKa+IANiU3bq+TTt/Aa0EZP2P6A/6v57MXoC/tPqAf33oD+YDzdf9V6q/7X6gH+c89T2L/3R9hH+Vf6P08fZM/wHSAf//2/+A1/p3bb/nvD/yQ+ys6bLf19al/yn7u/tf7r5+d7/xt/tfUI9hf6PegYUPYC9nvrX+//u3jL/1XoH4gHA0UDPz5+wfsT/83+j9Bn1X7Bn66daf0gG1sNBUY5kbfLZalijYZCJ7Zv/yuXS2/fKpHSxDqvkCUF+ch5962Yk08T2BN+Ikq+mW8Wq8ElmkiHdVMY52SSyMzyyG2zeJI35ufmBovyO1XUXIWuXZZNBNBexhidBQDC0hRgBwEFFBEabxyQP0nCThLo0bjrwt59tLyKBZB1+nc4z04LFA4LTCZxshHkCTr1Sj9x7b/+xLTdfd5JIhPWCbMJS+TZG92h0UszxuXiIkubDLkbdgINILY3ANpEt0w2I2gCam4m
1597VMKx921SIWEZwtkGL6n7yQLlXykXgirHVYpEi3pB2Z7XMV61nl6T0nluOe7fqCBIVsPidmc4F/5j/PA9k3RZ0F7JfDBOWewBY5AvYpMdk061VaUzdi4mrA5hL62lprWA0X03Gl+5KDc9rwmqFnQ06AAA/Nf+eOf+7//d/1K/5p9/ut/0i8te83+1cnTDE//nJs/mP9FNiFeAxwHH/UeRY6GqJjLyZCzx44r8UmIWRtJ9wWRtJ7HgDZ6t+ANhE5cwEql1xQtxVXtYCXc+cNRb8facSFJKUljeqJv/7+gM25ccPyHWKcDEfOjY4/eFHLSnsWgpzF5PVZqvK6YLwQNur9egHAiQq3RqNULOuYmKXh4DNukOitfxNDXPGKcB3psXEacJUmen8wHHPcrtoXh75BTmSyVkvhaYbAy5JaWvZqHp4CF57c+f0XxloDxuLuy8ubC3RmR+Kx9MgpfkE65TpHhVRsPjKbL/gkYdH6W0mJ4V8nh8CJQSHPuCfzyAAd5Ef09Ourp7inBbynD9tyS0Z9/2AGj5l6W4G7BByO7C2Gj7RP0jt4S9oLGGKslETf5mTJvQ2tf7ibDhQSvqsXGONBCMxBP4i8tcDyRRrAaEjemzeixb32ZBND+wcxnspfZecWhkmurNKQqHzgETnd+lOg144O/E46Zl4+pITztDz6GXQqFi8eytyUeGK9aie+HRy/RmrOsb/0RCZkfUFkQYQgb0NNd6oXptu2CeLyg+9o4mCx0u1ZKhCFMlEMbU36162Nd4NAOaOqMeCP0xQ4DlKmb2fcKA2RGYivg/NpIFsRDVfzgb2s8dRgosiT6BASFhMwjBP+ku0/vlLb7Hi6EIgqeyAZH5Yb1EhCTUDqCfIsQUv7LgueuqrqsA/cPSu5X8s4CyU3IJdQdCM9DXZ9GFiB+2MP85sSCEyQAL37+5PvDIRQfptpfwG9YrCAREKT1AhYAKhPNNjQlQSpckMsezJcTzmAHqQ0CDV613sIHSculssu4Bd2YrRw3Z5eCioiQ0cFZWjIBIHh5dpntr9k6avmVSnDJZdU2Azwnn/3IvXfHVLc/I6l7iTadyHjYSbqpA2XCEphvwbdVi+XSCATpAIdvYWt4VSxj2Ma5dDR7+445iPbgh8xakriio1fXPzzhom+R1H1nxOQvlP2NG9CHEKA2Cjsw8WdVE+JMCB/cPqndUa4DL1RltJhxJnoUMtjgIEeafV8fZ4BciH4aWgXxkHAe9XBquJl4de6sSBtnj6F/tXc1yLzg2yb62gRTYW+6/VdC+7ToBHCbgmuIrl79s79gJ17nAcoShTfU3rxIyX77qRaZNlblZIptbq79b2v4xL9AowDvNvElws5EET6UwtB2sTT3KKgX8rf7yJ/y6l2cUZsS0lMHNbej2xbAPd/73wXfqbbZrwcWPtfbDdHTvXS4LbAkTGrliUB8zf1mJNGGQ9MHH3RKkw9Ab3MctTxf8GC1Hu3dt0SSKy3dyU4O5yCnYlQDERnsA/z4VTDpPLIhQ5vyXpjnucSDrb9bKJ13ClLMMLCNKurCVfy1oi28jP3dYzf1W38Ad27z+UyH4yGnce4b20fX6eCOg381XXzeJA7JT9jEI89gTPTB0NQkRhV5S5a9EmQQgkiPKKYMyeqrZNAELUuGrMF123uQ94dgN92t6VecD4tWcomRUtOSlDuL0RXLcuRaWzKFwbSQWqedTaypcp6A0kJ4PawVCcVPVugjhv9b0NAh+1AZ6ihbJQtEQm2cD5q312qTAxdyFEr4AAokKVylKkHM81q5c1zR68eUPfbPUGh7O4iDhI1FZ7sRWo+5sZ+Qi378MlHkbhDupzhElxG3kYRFT3E3JOjI7DQY3DjCeU4eDBur5qHcCn0uEXu/25pvIw9cA6dNW0HXSCZyQDj2GLJpevfUAJTi9eukWrJ/E7CrWmeoJ9ttfwTjdg1jJkjRxdLcqticVw0NY1dwnHoc26s4THyR1+wLO4kPXwcUI/dqYKmJNPSk7cIhaMM2ffWQZggg9m8nQTH1J4QjDaj56tNZNxPkWonpqQBnjaXb94huWdy3lqq5ECl9hd9Hv4PnIcIkFACF8d3tv/8sqgqj9sQPKj8c/aPf8oa+ukqYrtPAwhz85g/MFkrX+UJR7o1t2ZBcF0rbTADLzJ2AekylBMyAMS4gwJFsRufFD3aTgaV6MhFFgQxuC+OIwP/KRQpgUd4G+b0FhXxhiQgrIOELUU+lnLiZSNgHUYzm8n6fg1WxDTVwnli5iK1B9CwrDBdZs8i4bl69WxsuMzFi03XewSaTvaZoBzBp4CUB5GnSZyPl5Q8ZQUTQ6rZYa45+AHPoXBERszSa6KEJmxgH1yP2DY9WmnLFyApEiRDDygzL/wNd+hKji4SQs5qhlvFvNyLuKNya7CRaE+XA4KUYeynxW71SonGkihNH0Wvlsww24qqBLZeNHEtZcotUnk1b32XJbbEHT71Zu0lZvuM1l/Bmb1kf9AovKbwdSVZsmfzyDV/Mbv8KODkJnvNHaZe97K0XvBiVpfnUDtGLQwcH3k1thaiEjPoB9nVhqjJkmDk1pJpQepypOObR5mXw5+R4e4bkw+Yb3UimeVaTSFEtJ1FvXvjDmwxxoUmBbvdXIJ21kYUsRNshB1G86xm1pCw65t0t/Ry7F1L9Mkurqr2IgLqeJUjgO4wDcdX0aS9V/iRw5t32OxEgq1/rrTnHwbG8Sdl0EuuBVZQsZ1S/ajj/xNuPSOaZzrmwXrUgr5HgnDVoT/A4YTOeqUEYeeBVaZcmtrPmQu+CmSXQvPZQqE/cQgl3ESdW5BdErsbLh8ucnTQHpaNNas0y7L4LVL7nsWeLb4Tv95hOCkKl95YVoe29NB71Sl8Vg26Mi5KrM9mSIkjw+2INtJBiwmPRbuNS8ZSlFDAgQ3djVX+obDaB5Tdo3C/JzN8dLhMIwo2xSekDg4Un7dtxFA3pwYYjWDD3LpwtnwArBLoqX0B487lD41ujVVht8JyJEYoIGIxrkJHzsc0LXl/hgWvUuePlFDU53A4qsQg9y3fWPpN4W4M/lIk2jyovExAaNKMZtIcMk0ildNV7Cd1Cd0bf0/95HzHFNzBPg0d3GuHM2edL+4I2LNy63O1gpy/D21TMOMEk0HdKp+yeLdoiXOewHq2tON9/rH7TGAyWTaTXq6RnH2FYWd/LjMDEOBQD/5XTgGELdsQqaDB95URuv98YXmzWGuhKcHVWEyZKQggL3YUez7J+vkGLDhwVdUkBB8Mgvqum3+Eh7qXfS9Am6o8yuIbai63a1/Ok4Yc1RczZeKukfO8rZqrpw/UD661a3C5i7zxOJjy/UEaDbEs7UkVUA5fjuOMVoK0e5538gXyDROp9D4+wMOE+iU4KgM6VvGXoLgvbeXKM9ggs0qNh35yZDYSMhpOIEZJlT+YH3XVUgpL3fB1cdwW+5r42F7lnjPba/16l6mgSnJ8WMH1vX6lQSmJuxZnW37GGY7LoR3bKt9U1T9T16heN3p6duQBtR4B+NlWnc1XehZyHPYYymlQk3iMedkr9sohg5DCbdcjhT3ymvk/MKIoNYPfq0rWK/KnhS6oGy78GKfZX+ddO2aX1otB3Nab0gLowOUlLrzGN5cdDhWtLmf4tKdCtklso4oz5jrvZAhRrA7X+oXsH0JMClNCwITwfprumuDygxram/s6PKtgmzP0kQm7GmjrM06ejpbMgLZ3qm70DR7G/U/+IEp5lyXNAw4fjX/fzBwXtkc0FFsBxf5Corr6TGdGf0iNGP2tPtD+FZiSU1K/a8eWYa35Y/tzeTLXuLhNNcvMpuKJwTfbJI04W461RG1eYFncqM9Wj1xjuSLH63Ea1OCO2TVcsKCfXvizWWf4BYP5QROlimuHKA9iLJZn287cvDZK7YlRgNc9OU/6xKOwrYBQKkT8cFiVJ106I918bb+T5ZASao6mgd4FA2W7vq9Q+qK6Tmrbu96MobgCwehI0Z5fbDqb2/9Wz8SS5beZSDXVkiAB+mj79GqvwFjyybtUMLe7IWDa6COl4sTSH3rcQhbBrC8csHUK4ZmSZqh9sOMwswud5QbZ6zwH8wbyFqWPsd4/xb7hdQK5T3M16VfBP88zf1foWvqGe6n7uFi8Kz8JuHCR2AT4b/9o+J6PrJY4MQBqJzjgVwVaby3aUNYuDH6R49LvUDiLSXsFLDj5hRHz1yIWXsC4yFaR9xoEVomiF0VAg9zrTqC/wygH0yqrdaew31HIm4y3x839303T+wSMZezjk4M5Tvut2iQSBsazRECRlV5eO++blKa5lo/LBwqcvd6KqPliG8LVhFpznCe3nF82DXqNLWGMus33432f7h5EWIvsWvkifoAlSbPYNwH+tYwi6ynuIuokdkQinQDbzIklr3u/hxK+dcuRALVzTR5cAAAKKg4AAAAAA=",Y8t="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20version='1.1'%20id='Layer_1'%20x='0px'%20y='0px'%20width='250px'%20height='55.6px'%20viewBox='0%200%20250%2055.6'%20xml:space='preserve'%3e%3cg%3e%3cpath%20d='M106,24.5c-6,0-10.6,5-10.6,10.9c0,5.9,4.8,10.8,10.8,10.8c4.6,0,8.2-3,9.9-7h-6.2c-1,1.2-2,1.9-3.7,1.9%20c-2.4,0-4.4-1.4-4.8-3.8h1
15975.2c0.1-0.5,0.1-1.1,0.1-1.6C116.7,29.5,112.2,24.5,106,24.5z%20M101.4,33.1c0.5-2.2,2.4-3.5,4.6-3.5%20c2.2,0,4.1,1.3,4.6,3.5H101.4z%20M41.6,24.5h5.3v21h6.9v-21h5.3v-6.1H41.6V24.5z%20M72.5,24.5c-2.1,0-4.2,0.7-5.2,2.6h-0.1v-8.6h-6.1%20v27.1h6.1V34.2c0-2.3,0.8-4,3.4-4c2.6,0,3.3,2,3.3,4.2v11.1h6.1V34.1c0-2.8,0-5.2-1.9-7.4C76.7,25.2,74.5,24.5,72.5,24.5z%20M83.7,45.5h6.1V30.6h4.8v-5.4H83.7V45.5z%20M152,18.4h-6.1v6.8h-3v5.4h3v14.9h6.1V30.6h2.9v-5.4H152V18.4z%20M250,25.2h-7.2l-5.6,7.4%20h-0.1V18.4H231v27.1h6.1v-9.8h0.1l5.7,9.8h6.9l-7.4-11.4L250,25.2z%20M217.3,45.5h6.1V30.6h4.8v-5.4h-10.9V45.5z%20M134.8,27.3%20L134.8,27.3c-1.3-2-3.8-2.9-6-2.9c-6.1,0-10.2,4.9-10.2,10.8c0,6,4,10.9,10.2,10.9c2.2,0,4.8-0.8,5.9-2.9h0.1v2.2h6.1V25.2h-6.1%20V27.3z%20M129.7,40.5c-2.9,0-5.1-2.3-5.1-5.1c0-2.9,2-5.2,5-5.2c3,0,5.1,2.2,5.1,5.2C134.8,38.2,132.6,40.5,129.7,40.5z%20M173.8,36.2%20L173.8,36.2l-5.5-17.8h-8.9v27.1h6.4l-0.2-20.3l0.1-0.1l5.8,20.3h4.6l5.8-20.3l0.1,0.1l-0.2,20.3h6.4V18.4h-8.9L173.8,36.2z%20M207.4,27.3L207.4,27.3c-1.3-2-3.8-2.9-6-2.9c-6.1,0-10.2,4.9-10.2,10.8c0,6,4,10.9,10.2,10.9c2.2,0,4.8-0.8,5.9-2.9h0.1v2.2h6.1%20V25.2h-6.1V27.3z%20M202.3,40.5c-2.9,0-5-2.3-5-5.1c0-2.9,2.1-5.2,5-5.2c3,0,5.1,2.2,5.1,5.2C207.4,38.2,205.3,40.5,202.3,40.5z%20M207.4,27.3L207.4,27.3c-1.3-2-3.8-2.9-6-2.9c-6.1,0-10.2,4.9-10.2,10.8c0,6,4,10.9,10.2,10.9c2.2,0,4.8-0.8,5.9-2.9h0.1v2.2h6.1%20V25.2h-6.1V27.3z%20M202.3,40.5c-2.9,0-5-2.3-5-5.1c0-2.9,2.1-5.2,5-5.2c3,0,5.1,2.2,5.1,5.2C207.4,38.2,205.3,40.5,202.3,40.5z%20M207.4,27.3L207.4,27.3c-1.3-2-3.8-2.9-6-2.9c-6.1,0-10.2,4.9-10.2,10.8c0,6,4,10.9,10.2,10.9c2.2,0,4.8-0.8,5.9-2.9h0.1v2.2h6.1%20V25.2h-6.1V27.3z%20M202.3,40.5c-2.9,0-5-2.3-5-5.1c0-2.9,2.1-5.2,5-5.2c3,0,5.1,2.2,5.1,5.2C207.4,38.2,205.3,40.5,202.3,40.5z'/%3e%3cg%3e%3cg%3e%3cpolygon%20fill='%23590510'%20points='14.7,35%2023.3,46.2%2021.4,55.6%20'/%3e%3cpolygon%20fill='%23700415'%20points='14.7,35%2021.4,55.6%209.2,55.6%20'/%3e%3cpolygon%20fill='%23B50222'%20points='17.2,25.7%201.6,18.2%2011.4,13.7%20'/%3e%3cpolygon%20fill='%23CC0127'%20points='17.2,25.7%2011.4,13.7%2030,13.7%20'/%3e%3cpolygon%20fill='%23E3002B'%20points='17.2,25.7%2030,13.7%2027.5,25.7%20'/%3e%3cpolygon%20fill='%239E021E'%20points='17.2,25.7%2014.7,35%201.6,18.2%20'/%3e%3cpolygon%20fill='%23860319'%20points='14.7,35%209.2,55.6%201.6,18.2%20'/%3e%3cg%3e%3cpolygon%20fill='%23CC0127'%20points='17.8,0.4%2017.5,9.3%2022.2,8%2022.9,0%20'/%3e%3cpolygon%20fill='%23B50222'%20points='11.8,10.8%2011.4,2.2%2016.5,0.7%2016.4,9.6%20'/%3e%3cpolygon%20fill='%239E021E'%20points='5.4,5.5%206.3,13.2%2010.7,11.2%2010.2,2.7%20'/%3e%3cpolygon%20fill='%23860319'%20points='1.1,15.6%200,10.2%204.2,6.3%205.3,13.7%20'/%3e%3cpolygon%20fill='%23E3002B'%20points='26.4,10.7%2023.3,8.3%2024.1,0%2032.5,1.6%2030.4,11.6%20'/%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/svg%3e",Q8t="/assets/university_of_waterloo-COmGRg4q.webp",X8t="/assets/roche-DKFy-svc.webp",J8t="/assets/columbia_university-CHHDsnsV.webp",KTe="/assets/meetsmore-Blx4oI3v.webp",YTe="/assets/forgeworks-Izo5V_6s.webp",Z8t="data:image/webp;base64,UklGRs4JAABXRUJQVlA4IMIJAAAwPwCdASqKAYAAPm0wlUekIqIhItLdOIANiWdu3UOZ/M/wAf0BuqvkAarL5I/tPa//bf6rzVKhZ8o+zH5j+1e4L+U77+AF6l/yv5c/k7yOoAPzP+uf8b+3civiAcH3QE/mv9j9BvPv9Uewj/OP7R1pvRI/b03QuBdEmkBpoR8l4XEyvfFQGy4E0b6TFGgytnZm4+3isWiADAjf5XEYgEADRTwtUuKw59IbMayQcRVt2A842Sxqcj7/u/MOryXAiuiCzWttC32dJr/zpbw1nLOSVin9dHmK8EBCvv/gpLwHAnmMVwfjmL5Ajjr/wE/d8tP7eXSj8HGcyr0oeGaSed2WCbROXm9nx8c2R86f/ci3+KB4YlO8grF6QLa4Jvb3VmbtwkIXndXAHbmnS72IBiP+h0OSBm7bAUJdnroOT9AbB/CRYJPjzYeKJLukthrzjEDdBibJV1yj0t8JqDyDM13qRVcbjPF1SpmF/dBUWlGw0IaCVs2U1+6qFhw1y5F+Y0Mpy5oq/bhSUXsRe9zjq4oF/gWN+V56oicaGU2c9Zg+f1ZkQ3bqL4m3ocfWnx5sQubvLMW7mUL+6CEfe/+0XzpgFzGrbjlFT4rWOVVBRjM2nNUZA7Q0fUoMR+fDDj1xwQQmGvIaSvHy8Z/9PRUODfHaas8bSWl/+84xVPIQpJWjGC5AAP78qHrWLC1VD1WLmQRDq6Wx/faPFSsI4bV3FlC59JXzlNfHo/1TkdgkZJsO2t/f/nG4DuMoevUsLvddTBnnMdw1X2OPCVk51HY86u760w2z5R2UhjiX8ZSl+Gszy3tLohKU+P66Z5WxowEIl7hfnrSXAgyIAf1QEEfZQXRbQpYs+KKUr+nc3/gGnChDzCjZNcc6li913Sz+vhAVBU8ZRyMdpr+pUC2b3gCUS2X+LMb1vCY3d3bBIKRo2hmOaM387elVJRwyM6kfRW4zgvGaD+0b+nrlrzBzHdVqzH1jCx9PkwwGAYBjSZst8OQeP1bzYOtNUxvwPopDf3LkyLon4xmEwUzilMZ5MZl1KPoQVx2/hG4yNpIIeTzGAjgx0DNFRohod2NY3seVQc92018P1QizWrye2t+tMQXLXj3IHG0JB0NdgfmZ9DqRoxFh+Zn0OpGk
1597dP8NYCG7sztYfao4Tf/mj/BZp4CGxci/CX07eCabrcnvBq1GcGruFebtaHQaGr+MIvkYVZ1deE1UabJDZWVD+SJWn8ivMdOviORDXetVP3Mc0T7kpSnnffO+pgn23hl7rRFaMFkNgxwBQraRSuxSE2cZ3wp+33bgjjGGn0f7Sxy0fs3aenmA4l9xrfTU0AhtaLhzfJXsx/c2ILC/iIpnvaPWJ+Habsz2AoqdfufC0SE8/YSgGDkOJVl/1ED9r0CM2RWImZiqbkOOn1R6Wdm7eHnVvffpxuA0mvWAR5bN1em//tbQQPUUMmy2NF6QziA4vvl32SSZsrjhQRs7vH0NJoljFPF3osShhPul365nkHZlEQytKix0fyuvloEnytgbIB1AGc+4fmrn5+sk+53+vBE62k5PVEbIZf+5ladLG2QfNh8BbmtWLwwH1V46n2j9e5oPSrjYG3pF5gi+1bkuVr/5VCNocOILSfc1gBmfru5GdceiNpYT8iVhFUkjj7iXkEoQw+FtLEooonU9AAicqtJPEK6eYe80A5CnTDzq5mnliMONSdDoXYh7X0LBByTGDYP5d5/7q4LpdMguIamqH5mfQ6kaR0/87ChehcjOsT8NBPDBhqNdm5zpMUPPELE36LzuO/mWZ3DzcS6SHuHOrDGIKHspW+FtwzmBeuv/7cni/XIqLqG3nt5Rv2RabsrKfMx28OZ1Y24CHVQ+wQb4WkQv4dLmvjE/kXV56VQ9BXnU4VNOrdewguIhqiVoJXFu0FgUpc0eZ6rHFKputS+UPei5AOfCrYBLnDkXOiN/nFqAImwEvnG882oBa/kazWXVPSeUAiCm00pNx44qRzR6C5OsjLg7IdcJ3eXL35cTxgZzTz34wGChYiyHh2EdUmIdFdo6pneHus4bLcnmWCVj4QJxunr4LCs4lgodY9wwtNxKrGqocxCMmZXoR5b74rg4K/VdCOhdP7/bdqCq72MBvVGK0LFWLpY0mF7/R9u9wdrMzf9WFthQdjs43C7nO0rYuknqEBLyv+POQ/ERJKAKIi5K/ijO9GqXPYKLUzuO14sYNwTolQBcCVH46yuwmsOvHxl6iKCBjMy3Mtd1IaNl0YOzjIcLusDXujct+la2xCCb6bb9/z6WMdSvzL1kGjx4s5dxbaM3GS3eBmvGbhDwtag3OeNuPmIL6TjPSDXBUtB0yRy/Rm5p9oH1ayac1gStRtKmBi7/vpKMxmsTV6yKx4XiTtlErkcUTXQdgWPetGKGk45MN4y2qvutL/kEirDCi5Zkx+C0w3pKv6SwLCQM2prF0yYGPUktSDcOjC
1597h5j/WAcLSlRw1Jp88HruEiLmJmdOEXcynAIWJelwDBxY1wL2uIEgvDYUcZhNiCw5aRBGBqBTfOdHZeYVVMlw4bLe9FcgGP74qlUlWyZUmwDhtZsj0fUjxnpDgytt6JLN0PN+38hPH5OdbKho8XV8vfAryf7wiJWZo1bH7LSARjQsl7KSqTaS+2+8F0QU9LwFQYC/h+4xv0tBfcJekazaQLBS0/uyILDgUKDvI+Cp2lv16l0/+9ZQBWRc0RtLTsQUuBmCFJyQyD8BCKQW+cAR3ID+aBnedw3ISn2Xvbjeae9/AOWTOQlU9P7I3rUMPkXJNNflGMqjkXU2pjbQNtfNFNfcfMYuU6MiMjFSipRt9HARBUJeFrOyE/4MPt/re2CpZ7nPA8RjEmptcHcDNUIFwuNZQUe+x/ENZyZMWXv36n3IjEkiodaEke22OIVS7OFM2fi+nVWAi960yRlggICtcOljBJ/WEIfvP5UhsTpuM/xeVhn36fwNV9qnn/TVY7G/oGjw0FDdmT7E2iuJG6d9KABOuiNFLREoc9qv6uKyqzsQWMt8bwDFuKxDJ/XNxsz4o7BdBpIlIg7ksi64iyrCKPR9bd6ibz+5CvqRUPi5v049tJdml1uAK++wVFhwIdl0j4KvCz/OFbPFf0nA9mLjudmmW+ZUJvQnNKG/JwZsuIKab0A0ykaxdZlDuDmmHtrxS77OZqRb5ZhsSNmp8/TWP8ImkJeJN41rjE2JxvkVlmFIoCKADDplIaEJGeUsOWFVGogwbSgFSStkS6zIR0cj1kNkGhF+Am+bhAR3eOG9OCbpINV1/16ZqnJRCIrqyXE0oR0Pjd2R3s57pEEYpHFDNX7mTPd7biGJkaaxphhDQAAA==",eFt="/assets/velvac-P8dDaZur.webp",tFt="/assets/windsor_one-BRSo-oqU.webp",nFt="/assets/cooper-Cz4af_XP.webp",rFt="/assets/gakken-CFrH16NB.webp",iFt="/assets/deutsche_bahn-jvnsuZfE.svg",oFt="/assets/pneumat-Bp91bFO_.webp",QTe="/assets/icustomer-DMozYUCQ.webp",sFt="/assets/aquasight-B_mw53gF.svg",aFt="/assets/officine_rigamonti-DDJmOX2l.webp",cFt="/assets/travorium-DOrkLQXh.webp",lFt="/assets/bmg_money-C_4J9dG3.svg",uFt="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='3.3173in'%20height='0.6953in'%20viewBox='0%200%20238.84571%2050.0616'%3e%3cdefs%3e%3cstyle%3e.a{fill:%23bd0024;}.b{fill:%23231f20;}%3c/style%3e%3c/defs%3e%3ctitle%3eLBMX%3c/title%3e%3cpath%20class='a'%20d='M0,0H16.6866V38.4229H41.4805V50.0616H0Z'/%3e%3cpath%20class='a'%20d='M44.5088,0H83.8619C95.9917,0,98.0943,7.5039,98.0943,12.3399c0,4.6982-2.5933,8.7646-6.1709,10.0962v.1406c5.2602,1.1924,8.6943,5.4692,8.6943,12.5493,0,5.959-2.8032,14.9356-18.1587,14.9356H44.5088ZM61.1953,19.2823H75.7276c3.5776,0,5.1196-1.9639,5.1196-4.2769,0-2.2437-1.542-4.207-5.1196-4.207H61.1953ZM77.062,39.2627c3.5044,0,5.8877-1.8926,5.8877-5.1885,0-3.2939-2.3833-4.9775-5.8877-4.9775H61.1953v10.166Z'/%3e%3cpath%20class='a'%20d='M103.61761,0h24.398l11.4277,33.0235h.1426L151.01361,0H175.414V50.0616H159.707V12.6206h-.1406l-13.1817,37.441h-13.7402l-13.1826-37.441h-.1387v37.441h-15.7056Z'/%3e%3cpolygon%20class='a'%20points='238.846%200.049%20218.906%200.049%20208.633%2014.65%20198.357%200.049%20178.416%200.049%20199.311%2025.056%20178.416%2050.062%20198.357%2050.062%20208.633%2035.46%20218.906%2050.062%20238.846%2050.062%20217.953%2025.056%20238.846%200.049'/%3e%3cpolygon%20class='b'%20points='182.064%2015.509%20182.064%2034.909%20190.371%2024.849%20182.064%2015.509'/%3e%3c/svg%3e",dFt="data:image/webp;base64,UklGRhANAABXRUJQVlA4WAoAAAAQAAAA8QAAMQAAQUxQSMEAAAABL0CQbZsbxRDOMI9HRNCbcOJIkiOt5XuOe26Hr+W2/v+Xm95jqaYR/WfkNpIiL+MxC09ItsPl3Qs1DBtVK9oQNmbhPKxGPCe7T1gTUWGWK1EenUWUUc+WUnNnrpVowN5VgXvmI3oK262Ra0IquPfKubJo4XZLWBWT6ZbHwWRyOJil4XEwuVZfg0l/02OCB7P2NZhHh4OZwt/0VuyVFfNKrgwbzCHBBvNo1MwltVtHrAf2r+2Q/iCDGcwEDGa4/pkSAFZQOCAoDAAA8DMAnQEq8gAyAD6RQJlJJaOiISuVmoiwEglsRHcd8qe4cvO+dJZ/8j/TPLh33c4eT5zZ50v77+sXuL/PXsAf3D+1ecP+wHuP/Zj1Afth+wHu5f7f1Efr3+zP/A+Qn+vf6/rEvQN8t72Wf7V/5PTLzETtE/rHhv+I/KP3fi+vTfYb9T/bf3G9ePtV84fiNqBfi39A3WMAHUyahfen/b+4B/Jv6X40fgReb+wB/Kv6x+t/sH/U3oG+ofR/9M72Pmqn8kSymHFwepKsYYHseBdxUkHgmrEG3bdfPqt3yKKmYu2kYxl8f+gMU88bitYn3nUVsktnXVJWifo1g71JKVZzFtq/R7+2clTFam564IyRZGtFPR4HeiDj/2e3Js6nM00MMrvZTS1sAiLXLLXqjxgxdgxUhSsmH9cPOMMF0No5pq/181wg1bWGaHEFoOtUNuOc5py7E3kGEbibhtXLFHZeifrAUgY5t9YWlvjyxtb69MkUixP98noWLLX54ZPoa6yNwhJ7/JBI3xG5do2GfhkVnKWYN0M8w7/OH7hwoVx/xQrj/ihXH+96AAD9/PfCl7lNQtM/dNCn43/jmqhZrot/9OU/l4vqCsBzOJs9JrMYb/d//6xqDhE9qVyB1qC8YNj6/AvHtGusog/cFVe4S9XqoLL3PpgLxrQ+j3zKxpeJeXE5sCZ886nDKV4z7DV/0OxN14p+uAFiCSOfzEETPZ38XlgSsoesgdafTXmckzWfdvXxqkLth0Ttgk5i6zFDk5hznLMB+5neJlSVGsOBv3uLETU+mvzFL8/SBlB9vfltmaMC/faPbyeOJWlCDNt55s0l4gS5X90RlDJIautyZmh1bMmWvE+by5LJ0t2PBNpAFJCny/dn3Nfp9aeTyLAm/mTaPvE80z5p8CLqf4/XiUBmSW8cnfwrMDUOf16boIGFayF1Tqwe65y0f2jlDFS+dRKRZQ1qe4akqlqIxLZ7GeRLCxiftK4h5+ZzGrIC44HcUjlL5yr60r9drfC3uL3B/kVhfwa+//d7hWrPN3ReE5XgJPp7XwCmZmrAenoQGAYnwjzAH0oheNc7vhf7yDaLKbyBSzCGyaKjAoqvde/2XW9dgEs9Ck/Wy/9bpXR8YgWFiuw78ljRC8C1V7hrEC/If3VkQIslxnQtZi9Hh28/2/BhciZ+ZOvBtZus71hsM6flqh/dP8EqySdHEhzzLbK6wqhZeZaxgCrvqzw8vSpxAePw1Ar7n+C7i9MJj8lCZR3lBu4jQnZyBeTdtskvXejgrm1n1GugvJPhUfWffG8mnaN27vVh6w+B0lENzgjL7lTKIt4rK84tV4/DvUbo6DQK0vo8oO3dvU5ckS1sYD62E38v3TuSU51Tq76neV6gBRMvEk4Olc7Xe7tLVlytD5aOgdCDJYA8srZuXb7uZOyQ+GROyiL3rsI1ol+huykb7ZOIL+QW8cf379RBhayP2o23JJ2SbbQ3AzyOZLHvETWQ5oa8QT7Ze9+eF/T9PxGpZ/ITDFyVEZztwPH/LcFZxRrIqOwCQAU2jo09oeB6Vk1LLBUv6F5JZ6qlNnWfLKMlPiMKyDi/is7I6+TS/04zdhNG92/zRHhhFGDRXjw7Hl0jXZ/PwQ7JPRXxJBRDm2d2LetAxOr2PaKuzY8g6W7dEybHLQ4gMBfM0Dn8X8mh3irUl0DO/hXe+2nMn0jMN8CluS3JbYAkD+lv3a5uPm7frRBh40KJe5seZ6RUsGPw+RNcQ25k2Wkbx0ZCQYSupRXjcuSHmI7kY4k2c4qiUnoWLe1Z+1MzUDogPF7m5eOiammz8QI8ciJChC2aiZshBjXYDsej4gjjkqE1Z0nruboMy5mVPsXul1DozMeNmcE136ZzVzkRVm2gxt3h8Wpz7c3KmPXvuxz3qR1fC1FPWOM+e4WIrsHd6/oH87D5ShSmeK0Mr2QO9xDfi9E+pBSOY545HfLZnMYSgB4lTAp7CDssRuc8zYXx2s3bJnBce3oNmTKOzC7FyjN/fW/uFlUQ4G3PWcDC5+Q7GZgWzqY8Xbodk9YLhwbcGpESWPDVeVBJCEXfdvF8EK6N1Ms3nUSM+jPz2tHalcR/kfVSuELzxKysKIvk4xcTLpR8JuHFNwYQQJ1g/Cnt8Dm40/hS/v8SCaV4nJ5JAd3l5GXpiz0tIphSxYOLnqQkfuOLlSu03/5qnmUIO2V2qh0tUdxIp/Omw+deMpz2xqtlUsd3ZtpTw8uN49+Y4JB1vYLQgmcBBy3NFSw8nIq5SH4drtsdKA+1BDgKqxMsSZaLMn50MRjp9ZUPms1viFE1OJN7QHy/FkMjCZ9M3G2T863C0kluJozzoRiCi02Lu9JudJ3SNRcJD0EdzcqXvJC8/ocPfxVOvq7jm/BFInlWalN9e03+QZRuCbRA3S8W0FUXF9zdGrSZA02s59qlVUgYTyci2tbexmvccJPgwPDfWbarLHSKgscbI1yRcss+8ahZtnFymUCiinin0rRFx4q5ZorCtoqhlydC+H0rXDtLgh5SNXlts37/1dyTOWsSYQmeOSaxanXr3ACNBvU3/zxC4oEnCBLZfLIuFJ6S8UqbEe5TjcHI8p/I5RXPgFQTCDGfLmTtHwwQyFWNeXIZVnHZpVgdt2id2FHU6nxXrd
1597FvSdECWJsxgniZht/uBiU4Iv3+6HgjYqj7mKEbToWheKdPQmwflVZTKfB53rkgjXVN75FLfBOc5P5dAYkuq4HKPSThAdEyXimHa1TU1RAw0rO+zmv7rqcSSJG0fJ1KAyCNeYJa0f05eLE4nO1Q4foagjO95+ZoaUQeTQKTTxSFQdcM3N0I9JIs/rJsHUxTlOBY16h4R4VNxaEGC7k3/+PukWv3PrcRrwlb3w3CzB6rSWvf/vIQmEj02fi/4efT+iZwNXyE7OQUM/W2SW2pJJ7dxvdXQpkgFP5cIcxTH/xmuG3qWInpzUap0rANCmOtwfkVA/bxbgYFRM9b0P/lAunTUZKXd01j6NRPgz+U7nULOsXj9d78Xbi5agcxqChA2D5RoJXVHS6pDoYdZXoh8osAXFvL/V08AEYEDD0TSadybApxAfxLCPzF56oIJheB8zkwIgNsdo460fSjwwYHHAzZHmBULxyLfYDd6hjYpwoInNKXJjk8nLGa4ziRZjiP51KVUNPninhvHF0uY7t/ROgqVYMxSbzSwLQJYg4shdBVVxvXAij31GsNKIpXvAia7prbQ6M0tT6n3ujwDFly/eqb3VJJStdK34GPceRxZKc2iv0g56wovN+lksnsqPsupgVymQxTaa6itoNyvqMw7s5mr6EoeVnV8Zdqhe6fcVJXTx6W1LsdKS1JTLLrBJoXrKe5wy8yrTOExz54y7KQiynPdt/+GSH/g2/S3qUiwvywXHd2WxGlnMFtfdqqQgaHakiSzgIlfh336j07Qw4nK/3+q6EyW4uC8ePKGGKeCgHvSlSgHQyuoxMcrbomPTq4C5+nAqY0rmsH+tYbpx/23ppG6TA/hyfuCwj/Ap/YCz6/1a2EMkvoq7to1wdf9fKVJPgh4h2uTqLgYFyoEOjlQCCaut846FmuRWZv72hG8xUQbvcgi+54gAhwPwjNy5T1LEV6bi9CgIRhb1ZLitUpN4kqAl5IRaSDNcALMcUE4viSIEwe5Mul9A2hfe18R5b//EDqoOTJfY82DLl17/tzSKWJ59qNrWHHEF4zkArXkkIrYrt65D7lKL6mWEPYavkxgr4rZcUL+S7kLgo8cf5rrHVMzZ09Se8LkPP+IVqKc2ZfFcRpZm47TpS2tVxK6Jnh93pO+aTnT/if50lPxO0Xvm77juVE47/5ntml+bAnp+2mG0kUQHetVwcY0G7gqeA+2S0OSSKqeADyXD9nsK3uNNyhUP5JF20xGI+6MEBLrbnSjtyU6WRDjQtiwEjMgUM0+vlKyFv9ZcVeBnWm8tlyuEVpfSBjmNPfgYCAMVPO8QQpT0UpEbH7JhYqQjfERsHpWadWjtVodfjg7HtJrBk9IQQJduPJ80OkR0/KAAisOfDx+85gosfmYmw3YOLFN4QCTiZset7FRblFFdGH99XhHCgzfWiE8iEqBSnMcCSw2j94P+IOKJUSbd6kPVyobhNu29LhHZP/Ag//9Dr693ZcL+LSvsJ80OmgAAAAAA==",fFt="data:image/webp;base64,UklGRrQPAABXRUJQVlA4IKgPAADQTgCdASpoAYwAPpFAnEmlo6khJvRLoSASCWVu/Hvu0wB9pmMMYzqaPfB7gof2vd5+Z39dvV36I70nfWU3ozyYNU78r/3jts/t3R7+pva3l+xNflv2t/MfmL/Y/nZ/K/3z8oPNv1Q+oF+Qfyb/Hb0rqvmBeu/0j/S/nB/jPka+l/uHoV813uAfrF/uuN99F9gT+g/2/z7v+7/Nf6P0xfUP7M/AZ/Of7b/2+wR+8ns0frd//zd3jmnT4mfcyFchXIVx3lYZIO2YBCJ527L7jWTwVeRXeuP6ZSdy1JE5iLeOgZy1FjIhzAdlCicdSPg4QdFgh12T4mezleO0jMFYQj5xbmbCJwWeTr1tvq1FKMsZFv3Yli/Wzhls34NKHmrMdg1ZhSZlR1+YLO9PdPlWPXlIOmz2xBESuBn39EThUbJ3ccq6rDOKHsv56BnAq7yB6jSwBlRtsnD5NGUs3vUIvFHbMb3J4RJyzOQ8k8z8m+Hg1NrdaHnoF6zH+hC6hsWC1p07tZlSufItxT2JqAW3+vf7HJVjGT9qIeLOik+xZb5fAnyOA2OpqsSD+dI35Ye50rPnOUEfVxDvjCkUOTHTN5kkHnCaP3UeqOUIeJlE9uPSg//mPJzGUQU9bh7uBD/3OJnQNSm0yS1qmX0PxUGxUsJb08fT0sl5wX39vtsD8mi/R0NcFl9dm7URjp5n7hda5FpBcKmFhDJYU/9YK86S67Ecq8V5J1C3J50LAMtWGmzaxyy9Tdc1m//oOQdGvm8jMIvv1RxTBF+eRwF3y9ST/hvuoahyzqFfQDtt0uS9ivR6w1d/0PYGvwWF9TxchXIVydDBwp47SnmF6cHB/O8c0zAA/vshgAAAAAAlvWuHIbhMDbhEMHL8wWJMuxV8JFsw6fdOmkAz83EejgNayPWmj3eMEvyL4B1x9jYmHSfO5LImJWHPU46Ee4Vvmd3VXd0038rIIeX/U0L+z2tZ1NEtfymyNvH95BWAzZ3aQ7b9yG2OW+083BId6WpvcP5lX7Tt5SfKXqFx6sDiZklwfZfUT7RqhwQ4HadbbgB5W9RBdbcYT8kRajK+1dfeI77aTw2jKz1iOjnIywnoD6d0DcUpv7fPj4v3JBGYEOkVnT+Ay+b+yKKWFtzGEIiFropXU2di1k096LuLwcjqpp1stofofo881R+N3yS8xcor5CDFUQPKQFiu1+VYOClkAEvbaUClIIlZU4ivgV/HX8m0B+U2UvsZUSQshfwGef0IE+ouFIGykqfMf1zYxndPCSrL+BTUWc++v9593Vqei3zIJgRHbvgMpl8ZMK4mRIrC0+KEPSBjfOveqgVQVU2i6QvReOYZR/Y8gW21Mtm14jHWY4i9WctJp/iAuZh9uSNcwuyGB1sOBl+9gNZX6mNrKQyLYGshfT2x9Bvwl/7PNGjzqKGSD9+OSrbmAFGIHrHRCz+xx+IssebYS4CrFb76+5PJefBf2og3T3m3MxLZglEWfoUwAH/HbmhCPsUphFeHgwSRTlrJabteYHty+LmED8gfsfpGnFdBKuWhV5ZZT66rRYcGqqN4qBgqSayQ73VjdJ5xr38dMZsSuFOOJRCqDr5k6W3E18aEdEjqvOMvNEHsbuZJ3YevvIHW+91jTuCzv2LvcvQ5zSVec+CSobEtQz44supw5wWSpCjYQE1MkQbCIMCZFNrafYIfUsKhrFxRq7fwP1n5I6/v4s2jFqatUlvSNC/PhvmhnBZSSi1atXYe98+EGv/xVwxpcni94tAX+/GVWt92U8nITEMiKggFLnuDZTeuVN+18JfWfy6A13K9CH1/l4JWB2oE5hOr9PzYHMLvVma4jcp3bY4fPfb0vb39KqtUnG+lTe1hRP6PjBkj4oVhclmm1oenolqf/oeuz799CowgUgXlNw6zmHSYaHxTZLs/yTwpuLBFx4/fLS3PgA9tBLTkkxmI/YUYdZfY8H+vBqSsuEb6CBtwyzFGS6Y8rJcPB8juW/3+ecLjmX3Uv9bnnTUVrE6r930zGcADqGGFpIbIlgLkYcW8F+RX/peYQJRwGbbjbqDEWZ3g/XyBp01YxEi38b1GWJhsYwevpFnb5P6HMncT59S3HE/Gq1Gs5tCiLriaIL3roKLmpETPuwoHyvDXPlP78tRQa+U8/q9jDiUxJry8zv0QM50BCCIhqLE+aV7kDFwV+Q8vMylJnNZTsoPh/d9Fg/RTuF8W2mFGbStfAeQom0TOeYCFlJHTx+YLGKgpM5xdvMupA8ASoteZLl0wHY6r/G+gdp5UJJHC9jSX+mAGkhi4/gDAofZtAptwmlRI/yhHQao2xeOtdVxJRFEL7xLjNgLDvToXneZguZq8Zryqt/i/j6ELsh3Tin0nyb12LsYr/2zMVbsBJ+eWURQfgoOJv6V8MPEVIelC2bgOvQKiHvbmB8pns048e+ARvKN03VELw5HW7sL++3oIkbDe5oMyRJVqaOzG3D/3ZWd+q9130GC2tzH1Q1fNMmqL+JcP7/IqwOJapGuKzp/3Dcj1+XdM7bDUjiOBgpyaC1aIcaz+FD2AYNKK1S64Y62+l/k5EWZZaAh3jelmw8X2+dSlZBc97AlVXfGSkkhbY0Qnv/9Axip/pwGogrKJIjE+XUyzbV/Jh0doCEV010p88Xdj7zMU4iML4nidA6EfU+JHbXFB/U14lvFqm3mz9xae5ZHrd1nhJurrakFd7c98E8/pCZm5jCYt1HsvU4mtVvBfizGt0msntInhr+M4ovuC1wPjyTbYOVz8HY+JbgsKjiM07Pt5wZSlzcyJwY4Uz0cpkGww1liUL4ZHWRuTct/7FFOkGuV7bXKnAMWOBbcYVJQmGGHR6p3NLC39jrj9vgCSy9YCqMvo0y+kVUWX3+ibnZDGB61mELYq6bqbK6n2f2YgiNeIkX/rCrzDjsFYw3e
15971LVXufGLjO4Z2Zc0ypqvAl7wPjv0jGZ59UgBNqn6FHBl1dGL9Xl62zCQy2D3+WwOI4sFvOg83rOM1vvY1akVSRD7Jq2Bvt/+/8TrHV/lql3kYa7ZxO1NsiqtdT/l4MEwpE1gimT0ut5I/hZ/sELVz7OEDaXVBtxgMXF74hj1vvWj9DwLB8Nuew8kk/ZDU+MnTVOjtEN0gHJZpz1n+R3nQWr1roNxa1L6lwG81azjQa1gp8i1DJPCKs/K5iIg6Uh4R8qWLcixXLS5nTKQPjrcaBULoi3ObBDUQUpLdT8zwUrePqqDEEARzNVnAwxPbsUX+Hsj2aZTaDek7t1hq2Ik+CrQLuTRUq2CJMyyJIH5hZxL6n7kMEueL80cx0kLhl45Xy6rpN4XYEflp3wcQIyAxJCnpYJmFBeffFJ2m/NqTlTeh6JcsHuVPWX06jwav2tpBjQTK0fxh3LZiFORzo05mpXeyUESLUJlv043CsBeRMADjqt3GYLReSdqQBD9LBhUF7Iba89h3masoCbWbt/9RqV5OIhxJ3ZKm2BpaU4nlm/N2A2aR18Ao1nEbGkDQZc36cfuj6EdksFL1J/6YZvoTA6ir/qGHObAoe+2rp2RXk36rp6Nebhj6a1Jab45MFysoz461B9RRir7qNzJx4AszZTNEKZHx4Sv0hrc92dc7xX0ALYK4jBRPfafVDfZhTdoCqcUM8XlgdeaVPhH6pkzUUAhJDeUAcfsVE4Hm2bdUc9zzIOWg3tuDDryvmYl64lCkWOnp34xIqOAQLHGODD1oioBmrKvVKLPM+RD+xwyUFRvHyZp/TPK6fBOASG0fC0rheQ5FfuJBQU/WEHrFR9D0zdNt1VH6nhyXsK6n2sCfayRdu+QawvUPZGnhPIVGfv7WcKOMGjV4qUGQ86uWrkzv5qElasnSSzALNthr4wS2q7mkscg9O47I3IFfcF75gJrW/D0QZO47kN+o44MX2DuiX6n+gHqsEPZBdqxp1+AvJ6ETyVnEjKrhqK1pM4fBkHbjSLT6AjykFcFcVIinMfTHWyhZTLxdwykTCmgeNEYJp3A+odLzq0TcdzgLImp++fvJmNSMFhMhHcABSvb9kv/hp70vvXETj/15CNcQPmMe26tAhaZPCONZECfkCvptqYK59Wy4NsvRFh9Y5382ylJ53KmSK43KaV2uXCxy4KPv2qv5om9hQ2ctKmRU8+njOOFp4rgS3xvvzpQU+aN3+Xd/P8FEThcxboiNzLlajK+4TQc3j/LSvlMkqd7KGl74Xq7raXq5Cvmeq3CRgqAMOsWlFg59COJjaEJb58A95piUbskUb8U7ralbZtOOqGhYEapuH46Lkfc/fIGldmFPijf0XDjEVfVzssUJCA4r2uT5zD07M1D/HeYqzXupgWUa4TY/O2RmsgkwFthHjmDnCHUpzcNh1a/pE5KOx8monpbE9eQOME+3WWyYUG594y3OZc8KkbasgxWsAMwUsQhNV5EAmpjhZynFl4wwXFX69OVqfb1DWfv24P58Qgn7KyfbxT1+vgte/rBKpV5BglHdm8EAJ+WCrauu3bIq+rbXDrQYYfU0xsjVbQqtUFuDk+KL8+HUg+6evxuNKD/5XA3c5PDgVlDErpH9Qq7GySaBIijFWlfpgz3OvhAUzgqWr7MRRPdSsQSKlOb22UFThsgovkq0N9rY6kP3seeQ1TaU+LhFxw89A+v1z+3GCS+4UJtB8D3TGcv+H7+a2wPKPYMH5Gmcnh2z5Ud00JcG/KgMH//wqmVq6FBDmM021Pjjij0XEgvrpyILqAU7LeWypYsj/0rqiJL35kku4/8O4Mgf4Qxkky0axpweyCFO/W1iiBnHIy1ZjcSicia3HNBrfBQ0kFWe9/g8WNSN8T5uaBt/n7d2nBtUyWn0i3gD3CzQTqhDD18D2DUK3uoixMq+wMKTyWG19ta6HhAempcQU3CdbKWTIiuCwo0goC3t1L/v26kZlwHaY2j8Nk/nndo2y8nAQoXnE7ubiuoaklUvZwL7Ps1tn4a+712Ne4JCdHge+2/JjeB0mfr9NYHqR0gyUY7OKLf795BOkCii89LC1EjG4F2lfn1XN9C1/r1SX92fa3VFG9WR56eQnSm2dxxCxzpUAJ2h7YKKHGnpp2VelnmmfDtGr/tfgCriodfwla1fQedU5jQXStKBMPBH7ToJCqfV8cMIit8Z/zvk5Ep7yU3gLoegN3RH/TYDTd/d2qOi8hVbgxBIqjV3HTGDCtYV621H/Zl+bQ+AM3vyKtqCq7/f8cNqWZmg8oqP67ws4JJT+7U72kIqIom9AF+T9GB09P3NKbHx9RUC0YK0SyTyA5oBP/HbT8SjcwgFAoL9FL8lkgrGJawq26GM6havfYC40uTf4s/6tczTtoC1Lc1SrbjaRH8AAAAAAAAAAAAAAAA=",hFt="/assets/allie-BnEiBIT4.webp",pFt="/assets/usc-9djedjVN.webp",mFt="/assets/mis-DUQVyqDS.webp",gFt="/assets/udd-CesUuaVH.webp",vFt="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3c!--%20Generator:%20Adobe%20Illustrator%2024.0.3,%20SVG%20Export%20Plug-In%20.%20SVG%20Version:%206.00%20Build%200)%20--%3e%3csvg%20version='1.1'%20id='Lager_1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20x='0px'%20y='0px'%20viewBox='0%200%201000%20287.1'%20style='enable-background:new%200%200%201000%20287.1;'%20xml:space='preserve'%3e%3ctitle%3eFroda_Green_RGB%3c/title%3e%3cpath%20d='M0,284.4h41.2v-16.7c0-25.1,5-47.1,14.9-65.4c9.1-17.2,23.2-31.2,40.3-40.4c18.3-9.9,40.3-14.9,65.4-14.9v-41.2%20c-32,0-60.6,6.7-84.9,19.8C63.5,132.8,51.5,142,41.2,153V41.2h146.9V0H0V284.4z'/%3e%3cpath%20d='M436.5,82.4c-56.5,0-102.4,45.8-102.4,102.4s45.8,102.4,102.4,102.4s102.4-45.8,102.4-102.4c0,0,0,0,0,0%20C538.8,128.2,493,82.4,436.5,82.4z%20M436.5,245.9c-33.8,0-61.2-27.4-61.2-61.2c0-33.8,27.4-61.2,61.2-61.2%20c33.8,0,61.2,27.4,61.2,61.2c0,0,0,0,0,0C497.6,218.5,470.3,245.9,436.5,245.9z'/%3e%3cpath%20d='M245.7,109.8V85.1h-41.1v199.3h41.1v-77.6c0-17.6,3.4-32.9,10.3-45.5c6.2-11.7,15.8-21.2,27.4-27.4%20c12.6-6.8,27.9-10.3,45.5-10.3V82.4c-24.4,0-46.3,5.1-65,15.2C257.5,101.1,251.4,105.2,245.7,109.8z'/%3e%3cpolygon%20points='748.3,284.4%20748.3,284.4%20748.3,284.4%20'/%3e%3cpath%20d='M765.5,240.1L765.5,240.1V0h-41.1v102.7C679.1,68.9,615,78.1,581.1,123.4s-24.6,109.4,20.6,143.3%20c36.7,27.5,87.3,27.2,123.6-0.8l0,0c0.6,7.2,1.3,13.4,2.1,18.4h41.7C766.7,269.8,765.4,255,765.5,240.1z%20M663.2,245.9%20c-33.8,0-61.2-27.4-61.2-61.2c0-33.8,27.4-61.2,61.2-61.2c33.8,0,61.2,27.4,61.2,61.2c0,0,0,0,0,0%20C724.4,218.5,697,245.9,663.2,245.9z'/%3e%3cpath%20d='M996.3,240.1v-155h-41.2v17.6c-45.3-33.9-109.4-24.6-143.3,20.6s-24.6,109.4,20.6,143.3c36.7,27.5,87.3,27.2,123.6-0.8%20c0.6,7.2,1.4,13.4,2.1,18.4h41.7C997.5,269.8,996.2,255,996.3,240.1z%20M894,245.9c-33.8,0-61.2-27.4-61.2-61.2s27.4-61.2,61.2-61.2%20s61.2,27.4,61.2,61.2c0,0,0,0,0,0C955.2,218.5,927.8,245.9,894,245.9z'/%3e%3c/svg%3e",yFt="/assets/wshuhs-HeWT0jyW.
1597webp",bFt="/assets/salesian_sisters-BQQj5iSi.webp",wFt="/assets/bahais-Dm3CYz-C.webp",SFt="data:image/webp;base64,UklGRtALAABXRUJQVlA4IMQLAADQOQCdASrIAMgAPpFEnUslo6KhodVbMLASCWlu4XPxG9wE+7dGb5k9nfkqw32kfyT7Q/tP7X7mP5nvR4AX47/OP8Z+XfAgzX+oF7c/Z/+b6R3xX6y+p310/2/uAfrDxPvlnsCfzP+7egT9VegD6g/aL4D/5r/cv+z67vsh/cr2UP3CJLtKSiUlEpKJSUSkolJRKSiUlEpKFVSZGo0kAMNpp7gm05KasCpE0JNq78wl6ORoQWGFYPGqIwzhIQlCgR+Bp0LaWPZ7B+5ZAioK1wjxdRum6Rm4Lou4M64bgyV/TAKmorfujmOLil+2/MDCRgJ79ZNcJT6RNK2r7Za9fDl8eO/ugPA2iMP0dym13blZ9xru+qLiIvPrwuOv9lkq3vErcGiLjwyjRFFNAJkWKWQBc/pivPv3IPgkGgiGzMO17ciRxGYRPdrbfqpmFglRZxnllLGLTuv/2XTHpL7a9oHarAMM96R8o9N26DPP69QPKX8QpmgFVvS/UozLoET1ID9hgNy0GMdzR8MfSuvx3CY//xdFNETCfOZDFTpyipFm8NwejKdbJB5pXZ1Wp3nrAVGAmebc0I1Idz5+VLPOr0kwGHbzm3nNvObec285t5zbzm3nNvObRAAA/v9qeADagUmXpb96BXs726XH0YVOBGz7KytYcfuendCfy04jZ7Sv/maBV0f1SYqXYaXR2x5l60bUBdbDYYDC3C/Veg5qpS007o0Ip0cSeQLEyyHQW2fC48iz5/+sGU4Jt7B7uyg6nKuwLy956z/X8F74iLMapwQgthaz34OW9FtyN9BPd+zDd1hsCeMIQWvfMzhWYtA07kaGeyHAPJckTZV/KgN6N2fc1EdH1T4E6rusHgdU/lAE7EpPcKar8Wm1UtHjeUzGxTsIh8aZOaNox2DDh5piVOAHDkkBJLuL9eIBYZWSzyqB8XfqCBVkBm5Bod9Ys0Vf2/G8lOD7YGBp6b//+VfafPf1BwH9Pep7O36ZLr7672zCH1O+lwujuQDKZ7GDLUy3LTlEGhGQet/UBcmDLpYGV3ezrBtkDeAQyOMtADzlWkObvSfPuPfItkjovWr/3Z9F7ZdgX/ban1sAZuHFz6M8+0wJpjO7Euy4QiAR36FiornFEYelkMqogyKaRbUYPcy7aJ2j6VEaLHsGYXzOwpzeZcwzBWhOYmCaDBCrqcXnSNsg+fX2HE6VtD2Vd/SfGDY39bCz3KOKANjL4I6wBh4IgDsKrho9CL+4VE+fwehvXDyddRlBqGUPzXENR0WAj7jI3EVwhjSh0/6LHBWF+rkGuJv3jJsZ45EeksjkrfTQa+UnJEFG0orADftRyoji6Slv7ky9FLdRlL3vBcEdGFQV0b8aJyLETThqom6d5dmRKelm8GbrkvV9LdtD2S+ec2W2jF/w9FBf8Mg6i7ypZynT5E34vxgpjPiaz3hDfLKk3HHAxRsyorwo1DheY2lmStcwqiIJ58eDeaQOSdEd2fwxES1xmAJMFnJ8eHLQ1Ham/2NFzC6WU0AhuL+oSDwykhQm9kDuGid+cyLlMRJPB1BWMJc+RqlpctMegJmEt1A6FhLAIPWcEAN5wZhfnYi16fYYbaa+CbAF8/oLVqfQk9zk9Ec0xvAAdo4MRP5bRvwzd21HYOsbzpri5vwyNzTjo3g8HJcCrDlEScwJKbZWoFFZXB/ZAvsfjh5S8/+pKyc03shE19lzu3eTlNJEBqVYNfGRlzcWxIlWR6rDjavuQLZO5lltKsTLrrWk05cNOuDYYhFsfXYifoj9nsWPhUYShXaKPjqkEETQTiZAWoFB+yyuZ15TLyrqfvaG8SS/PF/R/G3RJi++YPogK5wbEXwBE0ZxHL5KKFhhR1bJKEoOz/sezboA8ONAqSBSEw56TBFvmGz8gMUsAwWXqucNNyPHjfzDRmltT2WarZnQD9e2zJUyCwlDPTnkJshCd1z9kCLrGuqvOSWdgrJhP7YOBTDF9e4/S6GGeXfd+LpzaAQHnl7hKYRO7JFU85XGGOqo9+0gHWgYymfSyU2MATDhD/oetSeTIad/0NI7TMZCCjVRfExj50O8fNwdMKMimPTEgyDmHebGP6Jp3CeINYSPmtrduPgf7sJr7+CT5kf8wZ0ohL0LbSbO5VWK3SHxpvKpOUeHmgmYDfEFB3igQSg31gEqHZIjq0ICtTw3Yjeh9zpBix1wQgHdBvc/ULNkZGwC4zmlv6QZzG8l9R3ZPTbW4oLA32LXsn5WWK5/PMAlNPAK/djx3TXtekC0DTV5ja0IqPJ0cJrGahF1kWYZ+MqNSKVGhj+TDHoU7wgTVW41EevTYDNWoph5DeXrO5yQfFKPysUZ4KxL/lH23OaMaKwNbrzsurHAlziyYFbH2aGuqbU6rvKAgtz7++ZgchOPetpSEO3OLbkOO3lLPXTOfXQgRlMK11afWQ2Jrxod4cyxXevSQJVkkbuDKIaRmZl2h7IAQrjETw9A1HgIy/Vyva0iSFCACnPKkCujN7POAzzY2rAF6of/H161gSlea63ZMLz6S1Y1BH9kif8LfyowM0D7qUclriOC6UmZjMikvQTgCu/f2UbplShMGhQr1ho3/iyR5VO7e+QkfgUds/4+tStYo/VHjTXWqLDWos+OmFhHmtGe/cOde0p0cqCvJdv+N668WQj+I9N13z4JLrBVVH/yDhdu1fB/uIOENb5vsFfftyrk4uwmTHCm45PvT/8RMMi2mii7+lHUD/RT4q+1mDsMAHk05R0KkdaJtonBjGm7dvTbcYQ5fux6vYa+a9QgRybT3sp1Rmnv9ff2xKwGyGBFoHnr0tyDatvI9B9Y3oIRzQzJ7NCZs4lYi9+RrQwDnDePe4jYHLSEzaNJ0JA7GeNnNDb8KoVHpuPUNz7Z8x6DUDuEVWxeR4iOpkFXJOnsWqUIG10NaKg7FnDNBJTcd16zLlwXUXmOlOzsGg+6MS573dKeaL8XyLuvlf6+dzqk3cBBk0NWbZOKby6U21c9vbPCfn7v4zIIN2HoOyzcCvyUAN98/DCw6hR/66bpHBGPpKuSM/gTr+EAiyf+anyw1IA4vZluo7z52i+ljEE49ZDl/aI5yOeFK+VmohLoSy3GIp8TMccoeL6WO9iM9j6GDlD1djY2bMtFxe6/Ye8dQ49q+iB2Ohvd3XgbHe8tTkLdBSAfsWlMLusB0KL/noOl4VSTh91dZVxOU+MX6XN0LUyOb4IUAb/0Jh+kdA6ggi17TVBSMTG0YjLGw5s6Btcg7s4XWmMevFpdpWcOvX+Dy0H2Om5b1SteoyFnc3tCulOzeub8/QNt16c/oujp8dsv8EKIizHsfbRWv05/V1mU/7dUWyPA5GXpdO2vlQs/E+BBN/eG2AYSGvQ2PHfDxYOYdCvQ869A/YI7DjSWS8t0ht5uFd9Wc7RQS9VptJWTGB5aq0WmfuhrZH+FQHGNNbOn3JSwPZihNX/29cj3vtyJE6+HzKZFeY2/uyp378VAUQ7G5yfF3oKibcoq54bo1FrTLJkHtKx3qG1Qs9BveZEHdGlqRzVP1R2GZ9WFlGoDsCNPW4tpiOux0hrydzhDippvPucG7PHT3v9ZGjhhNoIJX8tIFAFAGbas5ak/6Iq9NDCrLDQ8bVr6mP/5fWQOuNz8D1hdcZ7rL0pqa1xWgZb3oKtB5NtEHmBPCtP8atQPMQ+UvMMoYGOAntgVGCJknfRXMf3ZZjzv4V9vNrwHwwewjzLvyCVR32qEGYS6i3+egSgamPHnigKVdAdRSlxxAOASwk7ogvPFi1sODihdpNs2L/gjXP6Y+fBkoAMEvfvKvQMPexYPfsoreo8sGNLSWu9RBms7x2xak1+HpQWUDRCd0A47r9Ucw9PC4Yz91Hh5wgnMJQksBPX6NG5jwkSnZaY4fZf4nbjwiG8MdDhkaeqjtJFQNPVfDNh4L3Qid+2C6Uas+tTsvrnTh0OWrWuUBiRDECUkqoLPhr6YGJaGjRMZkCgZpf8P/lHMFzR5aarsTRtEJPfgFBGnoWG4JAAAAAA=",Loe=[{name:"Byrne",image:G8t},{name:"Atlas Copco",image:K8t},{name:"New Apostolic Church",image:GTe},{name:"University of Waterloo",image:Q8t},{name:"Roche",image:X8t},{name:"Columbia University",image:J8t},{name:"Meetsmore",image:KTe},{name:"ForgeWorks",image:YTe},{name:"Filuet",image:Z8t},{name:"Velvac",image:eFt},{name:"Windsor One",image:tFt},{name:"Cooper Machinery Services",image:nFt},{name:"Gakken LX",image:rFt},{name:"Deutsche Bahn",image:iFt},{name:"Pneumat Systems",image:oFt},{name:"iCustomer",image:QTe},{name:"Aquasight",image:sFt},{name:"Officine Rigamonti",image:aFt},{name:"Travorium",image:cFt},{name:"BMG Money",image:lFt},{name:"LBMX",image:uFt},{name:"Threatmark",image:Y8t},{name:"ME Elecmetal",image:dFt},{name:"EFS Group",image:fFt},{name:"Allie AI",image:hFt},{name:"University of Southern California",image:pFt},{name:"Munich International School",image:mFt},{name:"Universidad del Desarrollo",image:gFt},{name:"Froda",image:vFt},{name:"William S. Hart Union High School District",image:yFt},{name:"Missionary Society of the Salesian Sisters",image:bFt},{name:"The Bahá'í House of Worship",image:wFt},{name:"360 Padel Group",image:SFt}],XTe=()=>h.jsx("div",{className:Doe.Companies,children:h.jsx("div",{className:Doe.ImageSlider,children:Loe.concat(Loe.reverse()).map((e,t)=>h.jsx("img",{src:e.image,alt:e.name},t))})}),_Ft="/assets/netval-Bbxo4Tg3.webp",CFt="/assets/forgeworks-DGDT-htL.webp",EFt="/assets/filuet-K09YpKqo.webp",nU="/assets/meetsmore-Dpib2Qj1.webp",TFt="/assets/nac_canada-CmteXJWn.webp",kFt="/assets/nac_canada_2-D6LLW0KI.webp",xFt="/assets/icustomer-Oy6YaUnC.webp",AFt="/assets/ambrosetti-BxnEJw6u.webp",WW="/assets/tim-Ddrf0g5-.webp",m3="data:image/webp;base64,UklGRtQFAABXRUJQVlA4IMgFAABQJACdASrIAMgAPm02l0kkIqIhIjF4+IANiWlu4XVJ32BG2F9Iu4IbCB1lOkh9Ke0uTj/F/lr8wuyvaq/se9Uck/ov+v9cmYEqsxzes1/e+ST6a/73uGfq5/0uxF+1XszftUIq+0RWPtEVj7RFY+0RWPtEVj7RFY+0RWPtEVj7RFY1EPiU/IiWLhiMncjbLP24dART1ofyVEy5qQVLhX7gZsCcafCRQhkUbQe3arbB9lnB4z7gCuBoguwTfp9fo6ToqQa6zRRQqpN1g444A7I06hsQBXGcQYBHIMkPPIjeu9nK6lfzQr5aouQbaiX1DVKeIrG59FduDduKKLbd67dCDLeGdskf6JIeGtdZzyVUErcjygoI8oKCPKCgjygoI8oKCPKCgjygoI7YAAD+/7rLn/i6/VwB9Nc+AAAA4O1ShZ+pb38k3VwLbfD/Z3pZOVi18rtCb6u3R68hol0gZ1evuhOVyrbHtErT6uaiAus6/yb5RlV943m3B3h5YMItS4L4448+NUY5tqe6bv/2i
1597BDFPF8RiEL+ETiIEHUXCcKJonn+1+D/vpYJryYJfneW8tWqJKi077s0skja8dvreA7/o/9smv/DVCkVK4ynK07/+GvwrjtpHFbxEMrhCGzg/+lyW7aR4FKyn+Pw8awFXK+8qffuigMmaAsI1Eqz0PuJdgbsJAnYHqxeLYFxtxmdOsA0GjMjj0ACEqBQb0/xWAaDlwkg7eUng1xuiJLi7Ww13uv7W7+4O5TuEUNMmyFxgesCLmWWKnUebyDReh+RgYtaYVuNBxF0lCkQwcG2iWtufNxhMTXClFxK0SZZADz/hnUtLh4zAu845dkAS6/gEZKa2JXm6DQUFTuT4di8GyY0aG6E72EJMeygmoFZ4CeyXyVhWAxckw2rJNCO5qOUfy6uEwk0GCt/NnTyOjKZnFGVSjvnf9lXAUmzoDvYgWFYs1ubsPkz6jW6IJLAV7VzYdoYjM3X8RWJDg1A2yUXr2CT/51QFa+4Gx2M/rx9ilf7nIuUnR4qk2AqVP6Jwtna/94CvUt9EyOKNT1IjdQP4SUBz5enFXFT9AXyfiDd1XQF24oRCULEI3iwoMOUDMd8qfT3Jc/uf1Ufhv8RcP32c3poujoMEJ07XtvWH96OXC51tKGIUoGdcneq3wIfquFx9M3KT3XQryVGBo9wKbnjUjE5OSPELkCYDLZUDrWgBLHqKifdFVeg3rAoUlqRpkWNxGcZu0f1P47q9EJym0OFzoS+CZDjEWuhFYHt7gOFqbrQ4ZHfSGxdfZZ86GfCZ4I78l25/fcEk9QCi/nuT5m6FOHFEgD4BlHIcS8S0ya+Y2EM6TlRDFri48eASsdDb/GrRhuf+3NxivcUerFRjIwpTch+btmgPJDZPt6Kstcnh6Cmtg4CfHRwQN/m489u/ksrztsmNAUICvxj0qA8duf7JtUW2QLAMtmtTHE0MnurfyfWPOWIeV8Fg5OisZXaA7eSwjfq2//yM+hxwpF+SI8oEvbC0fr4Dcp3lLUrPNg/ypTrQI49FFH7M5owlsCR4jIhjD2PLeSn399II4jjqkjCkcab9t2BYR3dFt/lrsORdft5wK0fIEWHr4xupZyvb9r1B4a4+mg7JISmTU0CuH1IEKVdwSvYZmQRNrLKoOyY12ULevg7eZH2dwfcbWuC5nhYHAbL5xmBcG9l3Tlv5NyCqo55qpILMquMVyb0JduwjSZW1qr4R9Z0fpm3cA875HZFfYyqORbJ+Por8k6sZP9KyLJaIHvtRp6uoLoIONxGOSLftF3fXN5+VymVyTsMXkVtn3gPfQh+9OcK2EFR4cvQG4um9iqbIWkMcAthMP5NSd9/8FucnIqh/JePbt8jSIp/HLXQRa/pXO7W2JWnL/FQ0KJKKqk5DF9u+B7z004ualOwX0KyJEdehWT321Fyu2c1f1t+Awz973QU+IAHCIuDj4gbYzAAAAAAAAAA",qW="/assets/vitz-BacpOYCh.webp",GW="/assets/maurizio-Drk3Mzig.webp",KW="/assets/federico-_2dmyJfx.webp",YW="data:image/webp;base64,UklGRtYHAABXRUJQVlA4IMoHAADQJACdASptAGwAPm0sk0WkIqGXiLacQAbEsoBjk/uKsONlxRsukUR65Hq58N/kWq9+wxOU1fzd1+hBjdSh6b5aE/r+2/Yt1phu1uJt2R0CMCcCP9HD8+Mg+KyuqwSRpJFEH86Beq73yoQy+YB7yBao94OcYc4/8j0luvZaopwOhlpO6WHb4CbQjibbEldhNYUMKlN7Ukn/5PSon/oxMoJT+UInJj83i16zLw96YXbLYWtg3rqomt62MfetORYAjgEroPJ30W5Clr/RLejhWoalIDyV74sJ/DroDH4XgDPbezbu/NNqUF9jNqSczXQNyWZ1zRUUU+WjZCHgaxH/gdmTa+kx5W+lkapezobC0JEMbuVC4uyYewNJFZDSPEgeyeDLBO+1tWrL4EHBUQ2d9IAA/vKYj0gIR5BBpg6Gf/1CPMz0NmD8bkvApq4rWKumSKi9O2LsejiG6aQf9HTRWOoAqkFPd0d65H7A5bv+vdG/Z84qoeFN/Y8MUhL8/6qDuR0u+hG2lpuXqA5PhAlTpNu+mJfOEx+RHq89lD8DKV0xr/EE6fnNIzInNt4NunrQpA4K+FSg1SVDmztzsFd8FaZyKJ7anBWupCK3FsOM4z2FVPim4T9eJA5uWrwzJ1QPOEH0v/rH91hX/pT9vcqOP7k5Ryb79DRDsCLvbZvGvkxUPnf4feuLi+XejzTH8sTxb28QHAQcffv3ekDzH/nX+jg6KVhb3b1xBhr+ONL4i4CQMyEEMnEsjzOWIMmsB7g1XiYxUclqJvr/QaoSl0g9YCpX/EBb8sLtUaZ+gdnzPeyIVy67Upq4HzBCin7FJgE+Ke/xddWwGUnTWvhJ4JOhQCXousTC6LdJQ+gSg1v4nUSy+VlklyXoY1Tx2Qs17wNYzt5qjqcJXWxkwCKxRMtDZigXOCj36DTU8LOunvifg6uIn/2qzQuZSKC/ap3jaByKbOqZrUr+llPtv0NfKe3izkIl3brtQpnTuNYX5ewdANU0BQp/KRsx5iNBtIHykf7Sh7wWn/FzYuBMk6FiQ4xkfXxTEpKyC/dOoXf8cQIV+OMk7lzxjIx/cLM07OjlZJBB1H6M8oTDpCtF85aK8DJR4qpXma5PQBkBRtCEl5nIa8faQC26Okgj8/M04hl5J8GnaZMaXIHrpuZQGV+aipu9W+egTEEH8MrrJuYf676HlC+PdXyowT+UiFUv+qM7VLz0DFn2eyVmDxlMNYY0sgsWYH85yLHEikQp5LcI4uFq6G1mwrd1b3kXu8/PQ2FM0Y8ai8YzPMGYtV6nPdZqpoUGUVynF+7b+7cytMdX49zTAYlOCVyit55k/vmy5f9wIQ/Hourm4Rn2VNMwWczAeY2VRJbJqilvd6ouVPHvCKBdbJl1JhdCXIq3FA/0IUBLWq3rM7DMFy4xYq3G2hvig5uNjKaPZCcN8gQ1NSF9K418BfR11Iz2SPDG5asUlvKvBP7Vlps/34FBTEjvnMsnZYAAWaZWIpgIG7UMe5kWFzxvPsws0JtuaNVgdAOF/NozI7sNfGJD5a7lvbqfIXF6nVA4Yz3iqr+fkbV0CSxEKSa8o/+11lLn8pWbVjn56rXL9LjDmfioYAfv1K2JmH3mhIfAQ3DrNWqhGysJPGLkREBhruv8jmjcNHARW0nLMCnwWpxmQpA+Xox/yi/w+p/cH5uSkzGQXlgqdpmto9TFHVYlgVzq71YL1XnEADeI6fWXsZ5GxdoE/Bk5jFj/aBxDbVbws1lZSXwM2rZzu7P/VXD/8LtuyaB2JXYKIsLIfuJQySiALs4vy18HnUGjcmEtZmvwHTY7IFN3WvEyZJru9SLdJI0+mAUyA4eYph8eiJRRl/7/rroRQBdx2diD3Cl65qRDLb0+1r28WiXenEdG5j4bi1d6IctX/nz9zn2HzFPDROTZhShPAz/iv9g2a/A6uK7hpV3UKcDWnUuHSZO3PW0PzeOadlbt/5bKfCv6l1zgSQUWh389NLazAk7EzNn9ZEP+ioz3js/304/V++eF53QtNU72IGI/JVZB5R+dyEvKXoQeXpqebyWAATJ2C7ODl6EMvZ2SiknacmqtaU6978G+TMAmQjp6/93FC7wUnc/AXak2mt9hkW1mBXQS8pVQ9KAuuscHh8FrU1yI6MqJM28HFM7C23hg6lTuNNziTLjdoiT19b9AqccCmZh2gFNiq5X+G586QI2u0mVi6mV/u2JATaf3in3G+qBhCGim4eK1QZ63JUggw9IUBF/Y1CwwpMD+VvnNVosW9dUfCQa8IdQwXjBR6JJQ8fuUXuu+TxBc5/IYioA6jrdx9zKRfePJ3qrES4urDl7/zGVS7XO79huyF8dQv9xesQxKd/1JBr3zfBlZ1WAcHkxLX/ZWF5EgusGpLR922kArPHsfE/MLFOG88+HBShEHLDx8iyKNN8cP5FunWiDSpVXP0XOFlKdMkQj2K8MDxMCLoN5jUu/TYaXcItz+SYupaGGGBbdPea2zmFiYqlyymBEmZ82rGYSBw/WD6v3Zy7G/qMorABrC1mx7NkDtnHQvgpmnrLrfOAxj41kEYE3gpCllQyoiaUZ3UdrmdGfA1PTAH3sZR1uZZyoZEVe2bqmurxdVowLubhupdpR6rGWrBIm4/CaFZav16OA1PkSqEc5BYA/BYAAAAA==",JTe="/assets/matt-BWOVrl4H.webp",IFt="_Footer_14cif_1",RFt="_Legal_14cif_21",PFt="_LinksTitle_14cif_33",OFt="_FooterLogo_14cif_37",NFt="_Links_14cif_33",Zm={Footer:IFt,Legal:RFt,LinksTitle:PFt,FooterLogo:OFt,Links:NFt},ZTe=()=>{const e=ls();return h.jsxs("section",{className:Zm.Footer,children:[h.jsxs("div",{children:[h.jsx("div",{className:Zm.FooterLogo,children:h.jsx("img",{src:p3,alt:"Langfinity"})}),h.jsxs("div",{className:Zm.Links,children:[h.jsxs("div",{children:[h.jsx("div",{className:Zm.LinksTitle,children:"RESOURCES"}),h.jsx(It,{to:"/faq",children:"FAQ"}),h.jsx(It,{to:"/customer-stories",children:"Customer stories"}),h.jsx(It,{to:"https://langfinity.ai/blog/",target:"_blank",onClick:()=>e({type:"click_blog_footer"}),children:"Blog"})]}),h.jsxs("div",{children:[h.jsx("div",{className:Zm.LinksTitle,children:"COMPANY"}),h.jsx(It,{to:"/about",children:"About"})]}),h.jsxs("div",{children:[h.jsx("div",{className:Zm.LinksTitle,children:"SOCIALS"}),h.jsx(It,{to:"https://x.com/LangfinityAI",children:"X"}),h.jsx(It,{to:"https://www.linkedin.com/company/langfinity",children:"LinkedIn"})]})]})]}),h.jsxs("div",{className:Zm.Legal,children:[h.jsx(It,{to:"https://langfinity.ai/terms-of-service/",target:"_blank",children:"TERMS OF SERVICE"}),h.jsx(It,{to:"https://langfinity.ai/privacy-policy/",target:"_blank",children:"PRIVACY POLICY"}),h.jsx("div",{children:"© 2025 BYRDHOUSE INC"})]})]})},MFt=[{companyImage:_Ft,quote:"We really enjoyed the experience. The translation is 95% precise between Italian and English. The quality is impressive - fast and accurate.",name:"Federico",title:"PMO of Netval",image:KW},{companyImage:CFt,quote:"It surprised me when it translated Macedonian into a high dialect or polite form, recognizing the professional context. That level of adaptability is what makes Langfinity stand out.",name:"Vitz",title:"Co-Founder, Partner & Managing Director at ForgeWorks",image:qW},{companyImage:EFt,quote:"For our country managers, the real-time translations were not only accurate but also preserved the nuance and meaning of the conversations.",name:"Yuval",title:"AI Integration Manager at Filuet",image:m3},{companyImage:nU,quote:"Every meeting has at least a few technical terms that aren't standard. With Langfinity, we can now update those terms easily, which has made a big difference.",name:"Zach",title:"MeetsMore",image:nU}],DFt=[{companyImage:kFt,quote:"Setting it up was a breeze. We went from no translation to real-time translation in four languages in just 5 minutes. The user experience was so intuitive—attendees just scanned a QR code, and they were instantly connected to the translation they needed.",name:"Matt",title:"Language Coordinator at the New Apostolic Church Canada",image:JTe},{companyImage:AFt,quote:"Before Langfinity, our search for interpreters was a time-consuming, expensive affair. Now, not only do we save on time and costs, but we also provide an inclusive experience for diverse voices to interact seamlessly.",name:"Maurizio",title:"Customer Obsession Circle Leader at The European House-Ambrosetti",image:GW},{companyImage:TFt,quote:"This solution was a lifesaver. It saved us countless hours and effort that would have gone into  setting up traditional interpretation systems. The fact that we could rely on Langfinity for both human and AI-powered translation in real time was a huge win for us.",name:"Mike",title:"Project Manager at the New Apostolic Church Canada",image:YW},{companyImage:xFt,quote:"The fact that we went and bothered to get a translator that was easy to use showed real respect for how we do business. It broke down a barrier between countries and allowed us to connect with confidence.",name:"Tim",title:"Managing Director at iCustomer",image:WW}];function Foe(){const e=ls(),t=b.useCallback(()=>{e({type:"click_get_a_demo_landing"}),window.open("https://calendly.com/d/cs8h-bpy-tzc/langfinity-intro","_blank")},[e]),n=Ts(),{pathname:r}=il(),[,i]=qTe();return b.useEffect(()=>{i({pathname:r})},[r,i]),h.jsx(h.Fragment,{children:h.jsxs("div",{className:ui.Landing,children:[h.jsx(hy,{}),h.jsx(Ji,{landing:!0}),h.jsxs("div",{className:ui.LandingContent,children:[h.jsxs("section",{className:ui.Hero,children:[h.jsx(eU,{}),h.jsxs("h1",{children:[h.jsx("div",{children:"Real-time translation for"}),h.jsx(H8t,{sequence:["multilingual meetings",2e3,"global all hands",2e3,"trainings",2e3,"worship services",2e3,"events and conferences",2e3,"customer calls",2e3],wrapper:"div",speed:50,repeat:1/0})]}),h.jsx("h3",{children:"Powered by company-specific models built to understand your terminology and context"}),h.jsxs("div",{className:ui.Buttons,children:[h.jsx(qe,{size:"landing",color:"white",backgroundColor:"orange",borderColor:"orange",onClick:t,children:"Get a demo"}),h.jsx(qe,{size:"landing",color:"black",backgroundColor:"transparent",borderColor:"black",onClick:()=>n("/signup"),children:"Try for free"})]}),h.jsxs(h.Fragment,{children:[h.jsx("h2",{children:"See and hear Langfinity in action"}),h.jsx(p8t,{})]}),h.jsx("h3",{className:ui.CompaniesSubtitle,children:"Loved by leading organizations to translate millions of hours per year"}),h.jsx(XTe,{})]}),h.jsxs("section",{className:ui.MeetingSection,children:[h.jsx("h2",{className:ui.MaxWidthSectionHeader,children:"Connect with your global team in any language with just one click"}),h.jsxs("div",{children:[h.jsxs("div",{children:[h.jsxs("div",{children:[h.jsx("h3",{children:"Effortless multi-way translation"}),h.jsx("p",{children:"Simply select your language, and our AI ensures you see and hear translations in real time—no matter what languages others speak."})]}),h.jsxs("div",{children:[h.jsx("h3",{children:"Natural voice-to-voice translation"}),h.jsx("p",{children:"Speak freely with voice avatars that capture your personality and tone. Langfinity's voice translation delivers lifelike, expressive communication."})]}),h.jsxs("div",{children:[h.jsx("h3",{children:"Multilingual meeting notes & recordings"}),h.jsx("p",{children:"Get video recordings and transcripts in your preferred language, complete with key highlights and summaries—so you can focus on the conversation, not taking notes."})]})]}),h.jsx("img",{src:m8t,alt:"Meeting and phone"})]}),h.jsx(qe,{size:"landing",backgroundColor:"transparent",borderColor:"white",color:"white",onClick:t,children:"See it in action"})]}
1597),h.jsxs("section",{className:ui.DomainFocusedSection,children:[h.jsx("h2",{className:ui.MaxWidthSectionHeader,children:"Domain-focused translation delivers highly relevant and precise communication for your industry"}),h.jsx(M8t,{})]}),h.jsxs("section",{className:ui.IntegrationSection,children:[h.jsxs("div",{children:[h.jsx("h2",{children:"Get real-time translation in Teams, Zoom, and Google Meet with a single tap"}),h.jsx("h3",{children:"See and hear real-time translation directly in your meeting platform. Langfinity's AI translation adapts to your industry's terminology for precise and productive multilingual communication."}),h.jsx(qe,{size:"landing",backgroundColor:"transparent",borderColor:"white",color:"white",onClick:t,children:"See it in action"})]}),h.jsxs("div",{children:[h.jsx("img",{src:l2,alt:"Meeting platform integrations"}),h.jsx("h3",{children:"Supported platforms"}),h.jsxs("div",{className:ui.Platforms,children:[h.jsx("div",{children:h.jsx("img",{src:b8t,alt:"Microsoft Teams"})}),h.jsxs("div",{children:[h.jsx("img",{src:S8t,alt:"Zoom"}),h.jsx("div",{className:ui.ComingSoon,children:"Coming soon"})]}),h.jsxs("div",{children:[h.jsx("img",{src:w8t,alt:"Google Meet"}),h.jsx("div",{className:ui.ComingSoon,children:"Coming soon"})]})]})]})]}),h.jsxs("section",{className:ui.TestimoniesSection,children:[h.jsxs("div",{children:[h.jsx("h2",{children:"Fast and accurate translation trusted by top organizations"}),h.jsxs("div",{className:ui.Metrics,children:[h.jsxs("div",{children:[h.jsx("h3",{children:"Accuracy"}),h.jsx("p",{children:"Baseline models for popular languages achieve >85% translation accuracy, with even greater precision through industry-specific fine-tuning."})]}),h.jsxs("div",{children:[h.jsx("h3",{children:"Speed"}),h.jsx("p",{children:"Experience lightning-fast translation—under 300ms for voice-to-text and 1-3 seconds for voice-to-voice."})]})]})]}),h.jsx(Ooe,{testimonies:MFt,theme:"light"})]}),h.jsxs("section",{className:ui.VoiceAvatarSection,children:[h.jsx("h2",{children:"Speak globally, stay you"}),h.jsx("h3",{children:"Translate in your own tone and personality with AI voice avatars that truly represent you"}),h.jsxs("div",{children:[h.jsxs("div",{children:[h.jsx("h3",{children:"🇺🇸 English"}),h.jsx(Yx,{language:"en-US"})]}),h.jsxs("div",{children:[h.jsx("h3",{children:"🇲🇽 Español"}),h.jsx(Yx,{language:"es-MX"})]}),h.jsxs("div",{children:[h.jsx("h3",{children:"🇨🇳 中文"}),h.jsx(Yx,{language:"zh-CN"})]})]})]}),h.jsxs("section",{className:ui.EventSection,children:[h.jsx("h2",{className:ui.MaxWidthSectionHeader,children:"Scan a QR code to unlock real-time translation in 50+ languages for your events"}),h.jsxs("div",{className:ui.ThreeColumn,children:[h.jsxs("div",{children:[h.jsx("h3",{children:"Translation on any device, anywhere"}),h.jsx("p",{children:"Langfinity works anywhere—remote, hybrid, or in-person. With a quick QR scan, attendees get instant translation for meetings, worship services, global all-hands, training, and more."})]}),h.jsxs("div",{children:[h.jsx("h3",{children:"Multi-speaker, multi-language translation"}),h.jsx("p",{children:"Langfinity supports multiple speakers in different languages and even detects the language you speak. Speakers choose their language, and audiences hear and see translations in real time."})]}),h.jsxs("div",{children:[h.jsx("h3",{children:"Authentic voice avatars that sound like you"}),h.jsx("p",{children:"Go beyond text translation with lifelike, expressive AI voice translation that match your personality and tone. Choose the best voice representation to ensure a natural and engaging experience for your audience."})]})]}),h.jsxs("div",{className:ui.ThreeImages,children:[h.jsx("div",{children:h.jsx("img",{src:g8t,alt:"Event attendee listening with phone translation"})}),h.jsx("div",{children:h.jsx("img",{src:v8t,alt:"Event translation displayed on stage"})}),h.jsx("div",{children:h.jsx("img",{src:y8t,alt:"Phones used by interpreters to provide live translation"})})]})]}),h.jsxs("section",{className:ui.TestimoniesSection2,children:[h.jsxs("div",{children:[h.jsxs("h2",{children:[h.jsx("span",{children:"15X"})," translation cost savings"]}),h.jsxs("h2",{children:[h.jsx("span",{children:"2X"})," faster meeting time"," "]}),h.jsxs("h2",{children:["Create ",h.jsx("span",{children:"meaningful"}),", ",h.jsx("span",{children:"universal"})," human connection"]})]}),h.jsx(Ooe,{testimonies:DFt,theme:"dark"})]}),h.jsxs("section",{className:ui.Hero,children:[h.jsx(eU,{}),h.jsx("h2",{children:"Ready to get sarted?"}),h.jsx("h3",{children:"Meet, speak, and connect seamlessly through AI-powered, industry-specific voice translation in 50+ languages"}),h.jsxs("div",{className:ui.Buttons,children:[h.jsx(qe,{size:"landing",color:"white",backgroundColor:"orange",borderColor:"orange",onClick:t,children:"Get a demo"}),h.jsx(qe,{size:"landing",color:"black",backgroundColor:"transparent",borderColor:"black",onClick:()=>n("/signup"),children:"Try for free"})]})]}),h.jsx(ZTe,{})]})]})})}const LFt="_Survey_1rim7_1",FFt="_RecordingSection_1rim7_12",jFt="_BottomSection_1rim7_17",UFt="_Ratings_1rim7_23",BFt="_Referrals_1rim7_24",$Ft="_FeedbackStars_1rim7_37",HFt="_AfterRating_1rim7_46",zFt="_Small_1rim7_73",VFt="_Socials_1rim7_81",WFt="_EmailInput_1rim7_107",Mu={Survey:LFt,RecordingSection:FFt,BottomSection:jFt,Ratings:UFt,Referrals:BFt,FeedbackStars:$Ft,AfterRating:HFt,Small:zFt,Socials:V
1597Ft,EmailInput:WFt};function qFt(e){return St({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M389.2 48h70.6L305.6 224.2 487 464H345L233.7 318.6 106.5 464H35.8L200.7 275.5 26.8 48H172.4L272.9 180.9 389.2 48zM364.4 421.8h39.1L151.1 88h-42L364.4 421.8z"},child:[]}]})(e)}function GFt({rating:e,setRating:t}){const n=ls(),r=_h(),i=b.useMemo(()=>e.toString().split("."),[e]),o=b.useMemo(()=>Number(i[0]),[i]),s=b.useCallback(l=>{t(l),n({type:"rating",details:{rating:l,room_id:r}})},[n,r,t]),a=Array.from(Array(o),(l,u)=>h.jsx($rt,{style:{color:"var(--langfinity-yellow)"},onClick:()=>s(u+1)},u)),c=Array.from(Array(5-o),(l,u)=>h.jsx(Brt,{onClick:()=>s(u+1+o)},u));return h.jsxs("div",{className:`${Mu.FeedbackStars} ${e>0?Mu.Small:""}`,children:[a,c]})}function joe(){const[e,t]=b.useState(0),[n,r]=b.useState(""),i=Cn(),o=Gt.useSubmitReferrals(i),s=_h(),[a,c]=b.useState(),[l,u]=b.useState(!1),d=Gt.useGetRecordingList(i),f=Ts(),p=ls();b.useEffect(()=>{(async()=>{u(!0);try{const v=await d();c(v.data.recordingList[0])}finally{u(!1)}})()},[d]);const g=v=>{window.open(v,"_blank","noopener,noreferrer")},m=()=>{p({type:"refer_emails",details:{emails:n}}),o({emails:n,roomId:s}),r(""),mt(h.jsx("div",{className:"Toast SuccessToast",children:h.jsx("div",{children:"Emails submitted successfully"})}),{type:"success"})},y=(v,w)=>{var x;if(!v||!(((x=v.room_id)==null?void 0:x.substring(0,6))===w))return!1;if(!v.stopped_at)return!0;const C=new Date(v.stopped_at);return(new Date().getTime()-C.getTime())/(1e3*60)<10};return l?h.jsx(Sn,{}):h.jsxs("div",{className:Mu.Survey,children:[h.jsxs("div",{className:Mu.RecordingSection,children:[h.jsx("h1",{children:"Real-time translation ended"}),y(a,s)&&h.jsxs(h.Fragment,{children:[h.jsx("p",{style:{color:"var(--langfinity-medium-gray)"},children:"View recording in multiple languages"}),h.jsx(qe,{onClick:()=>f(`/recording/${a.id}`),children:"View recording"})]})]}),h.jsxs("div",{className:Mu.BottomSection,children:[h.jsxs("div",{className:Mu.Ratings,children:[h.jsxs("div",{children:[h.jsx("p",{children:"Thank you for using Langfinity!"}),h.jsx("p",{children:"How would you rate your experience?"})]}),h.jsx(GFt,{rating:e,setRating:t}),h.jsxs("div",{className:Mu.AfterRating,children:[e>=4&&h.jsxs("div",{children:[h.jsx("p",{style:{color:"var(--langfinity-medium-gray)",fontSize:14},children:"Share your real-time translation experience with the world 🌎"}),h.jsxs("div",{className:Mu.Socials,children:[h.jsx("button",{onClick:()=>{p({type:"click_share_reddit"}),g("https://reddit.com/submit?url=https%3A%2F%2Flangfinity.ai&title=Just%20experienced%20real-time%20translation%20in%2050%2B%20languages%20with%20Langfinity!%20%F0%9F%8C%8F%20Amazing%20how%20AI%20can%20break%20down%20language%20barriers%20in%20meetings%20and%20events.")},children:h.jsx(wft,{})}),h.jsx("button",{onClick:()=>{p({type:"click_share_x"}),g("https://x.com/intent/tweet?text=Just+experienced+real-time+translation+in+50%2B+languages+with+%40Langfinity%21+%F0%9F%8C%8F+Amazing+how+AI+can+break+down+language+barriers+in+meetings+and+events.+Try+it+here%3A+langfinity.ai+%23AI+%23Translation+%23Innovation")},children:h.jsx(qFt,{})}),h.jsx("button",{onClick:()=>{p({type:"click_share_linkedin"}),g("http://www.linkedin.com/shareArticle?mini=true&url=https://langfinity.ai")},children:h.jsx(bft,{})})]})]}),e>0&&e<4&&h.jsx("div",{children:h.jsx(qe,{onClick:()=>g("https://forms.gle/JDLEdUVJviHPSm7o9"),children:"Take me to the feedback form"})})]})]}),h.jsxs("div",{className:Mu.Referrals,children:[h.jsx("p",{children:"Refer us and earn 10 FREE hours when your referral joins!"}),h.jsxs("div",{children:[h.jsx("input",{type:"email",placeholder:"Enter your referral's work email here",value:n,onChange:v=>r(v.target.value),className:Mu.EmailInput}),h.jsx(qe,{onClick:m,color:"gray",backgroundColor:"black",borderColor:"dark-gray",children:"Submit"})]})]})]})]})}const KFt="_CreateOrEditRoom_ejubp_1",YFt="_MeetingRoom_ejubp_8",QFt="_Title_ejubp_13",XFt="_FormAndImg_ejubp_19",JFt="_Form_ejubp_19",ZFt="_FormField_ejubp_38",ejt="_EventTimeFields_ejubp_62",tjt="_MoreOptionsToggle_ejubp_68",njt="_MoreOptions_ejubp_68",rjt="_VoiceOptions_ejubp_92",ijt="_FormActions_ejubp_99",ojt="_StartDate_ejubp_106",sjt="_NumSpeakers_ejubp_120",ajt="_TeamsRoom_ejubp_124",cjt="_JoinMeetingDialogContent_ejubp_133",ljt="_JoinMeetingLink_ejubp_140",ujt="_CreateOrJoinMeeting_ejubp_167",djt="_InvalidMinutes_ejubp_192",Kn={CreateOrEditRoom:KFt,MeetingRoom:YFt,Title:QFt,FormAndImg:XFt,Form:JFt,FormField:ZFt,EventTimeFields:ejt,MoreOptionsToggle:tjt,MoreOptions:njt,VoiceOptions:rjt,FormActions:ijt,StartDate:ojt,NumSpeakers:sjt,TeamsRoom:ajt,JoinMeetingDialogContent:cjt,JoinMeetingLink:ljt,CreateOrJoinMeeting:ujt,InvalidMinutes:djt};function fjt(e,t=[]){let n=[];function r(o,s){const a=b.createContext(s),c=n.length;n=[...n,s];function l(d){const{scope:f,children:p,...g}=d,m=(f==null?void 0:f[e][c])||a,y=b.useMemo(()=>g,Object.values(g));return h.jsx(m.Provider,{value:y,children:p})}function u(d,f){const p=(f==null?void 0:f[e][c])||a,g=b.useContext(p);if(g)return g;if(s!==void 0)return s;throw new Error(`\`${d}\` must be used within \`${o}\``)}return l.displayName=o+"Provider",[l,u]}const i=()=>{const o=n.map(s=>b.createContext(s));return function(a){const c=(a==null?void 0:a[e])||o;return b.useMemo(()=>({[`__scope${e}`]:{...a,[e]:c}}),[a,c])}};return i.scopeName=e,[r,hjt(i,...t)]}function hjt(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(i=>({useScope:i(),scopeName:i.scopeName}));return function(o){const s=r.reduce((a,{useScope:c,scopeName:l})=>{const d=c(o)[`__scope${l}`];return{...a,...d}},{});return b.useMemo(()=>({[`__scope${t.scopeName}`]:s}),[s])}};return n.scopeName=t.scopeName,n}var pjt="Label",eke=b.forwardRef((e,t)=>
1597h.jsx(oo.label,{...e,ref:t,onMouseDown:n=>{var i;n.target.closest("button, input, select, textarea")||((i=e.onMouseDown)==null||i.call(e,n),!n.defaultPrevented&&n.detail>1&&n.preventDefault())}}));eke.displayName=pjt;var[QW]=fjt("Form"),XW="Form",[mjt,u2]=QW(XW),[gjt,tke]=QW(XW),nke=b.forwardRef((e,t)=>{const{__scopeForm:n,onClearServerErrors:r=()=>{},...i}=e,o=b.useRef(null),s=Ma(t,o),[a,c]=b.useState({}),l=b.useCallback(L=>a[L],[a]),u=b.useCallback((L,U)=>c(I=>({...I,[L]:{...I[L]??{},...U}})),[]),d=b.useCallback(L=>{c(U=>({...U,[L]:void 0})),w(U=>({...U,[L]:{}}))},[]),[f,p]=b.useState({}),g=b.useCallback(L=>f[L]??[],[f]),m=b.useCallback((L,U)=>{p(I=>({...I,[L]:[...I[L]??[],U]}))},[]),y=b.useCallback((L,U)=>{p(I=>({...I,[L]:(I[L]??[]).filter(F=>F.id!==U)}))},[]),[v,w]=b.useState({}),S=b.useCallback(L=>v[L]??{},[v]),C=b.useCallback((L,U)=>{w(I=>({...I,[L]:{...I[L]??{},...U}}))},[]),[E,T]=b.useState({}),x=b.useCallback((L,U)=>{T(I=>{const F=new Set(I[L]).add(U);return{...I,[L]:F}})},[]),O=b.useCallback((L,U)=>{T(I=>{const F=new Set(I[L]);return F.delete(U),{...I,[L]:F}})},[]),A=b.useCallback(L=>Array.from(E[L]??[]).join(" ")||void 0,[E]);return h.jsx(mjt,{scope:n,getFieldValidity:l,onFieldValidityChange:u,getFieldCustomMatcherEntries:g,onFieldCustomMatcherEntryAdd:m,onFieldCustomMatcherEntryRemove:y,getFieldCustomErrors:S,onFieldCustomErrorsChange:C,onFieldValiditionClear:d,children:h.jsx(gjt,{scope:n,onFieldMessageIdAdd:x,onFieldMessageIdRemove:O,getFieldDescription:A,children:h.jsx(oo.form,{...i,ref:s,onInvalid:Ho(e.onInvalid,L=>{const U=ske(L.currentTarget);U===L.target&&U.focus(),L.preventDefault()}),onSubmit:Ho(e.onSubmit,r,{checkForDefaultPrevented:!1}),onReset:Ho(e.onReset,r)})})})});nke.displayName=XW;var JW="FormField",[vjt,ZW]=QW(JW),rke=b.forwardRef((e,t)=>{const{__scopeForm:n,name:r,serverInvalid:i=!1,...o}=e,a=u2(JW,n).getFieldValidity(r),c=Gp();return h.jsx(vjt,{scope:n,id:c,name:r,serverInvalid:i,children:h.jsx(oo.div,{"data-valid":tq(a,i),"data-invalid":nq(a,i),...o,ref:t})})});rke.displayName=JW;var rU="FormLabel",ike=b.forwardRef((e,t)=>{const{__scopeForm:n,...r}=e,i=u2(rU,n),o=ZW(rU,n),s=r.htmlFor||o.id,a=i.getFieldValidity(o.name);return h.jsx(eke,{"data-valid":tq(a,o.serverInvalid),"data-invalid":nq(a,o.serverInvalid),...r,ref:t,htmlFor:s})});ike.displayName=rU;var mA="FormControl",yjt=b.forwardRef((e,t)=>{const{__scopeForm:n,...r}=e,i=u2(mA,n),o=ZW(mA,n),s=tke(mA,n),a=b.useRef(null),c=Ma(t,a),l=r.name||o.name,u=r.id||o.id,d=i.getFieldCustomMatcherEntries(l),{onFieldValidityChange:f,onFieldCustomErrorsChange:p,onFieldValiditionClear:g}=i,m=b.useCallback(async w=>{if(ake(w.validity)){const I=wD(w.validity);f(l,I);return}const S=w.form?new FormData(w.form):new FormData,C=[w.value,S],E=[],T=[];d.forEach(I=>{xjt(I,C)?T.push(I):Ajt(I)&&E.push(I)});const x=E.map(({id:I,match:F})=>[I,F(...C)]),O=Object.fromEntries(x),A=Object.values(O).some(Boolean),L=A;w.setCustomValidity(L?qC:"");const U=wD(w.validity);if(f(l,U),p(l,O),!A&&T.length>0){const I=T.map(({id:X,match:Z})=>Z(...C).then(G=>[X,G])),F=await Promise.all(I),P=Object.fromEntries(F),ee=Object.values(P).some(Boolean);w.setCustomValidity(ee?qC:"");const Y=wD(w.validity);f(l,Y),p(l,P)}},[d,l,p,f]);b.useEffect(()=>{const w=a.current;if(w){const S=()=>m(w);return w.addEventListener("change",S),()=>w.removeEventListener("change",S)}},[m]);const y=b.useCallback(()=>{const w=a.current;w&&(w.setCustomValidity(""),g(l))},[l,g]);b.useEffect(()=>{var S;const w=(S=a.current)==null?void 0:S.form;if(w)return w.addEventListener("reset",y),()=>w.removeEventListener("reset",y)},[y]),b.useEffect(()=>{const w=a.current,S=w==null?void 0:w.closest("form");if(S&&o.serverInvalid){const C=ske(S);C===w&&C.focus()}},[o.serverInvalid]);const v=i.getFieldValidity(l);return h.jsx(oo.input,{"data-valid":tq(v,o.serverInvalid),"data-invalid":nq(v,o.serverInvalid),"aria-invalid":o.serverInvalid?!0:void 0,"aria-describedby":s.getFieldDescription(l),title:"",...r,ref:c,id:u,name:l,onInvalid:Ho(e.onInvalid,w=>{const S=w.currentTarget;m(S)}),onChange:Ho(e.onChange,w=>{y()})})});yjt.displayName=mA;
1597var qC="This value is not valid",bjt={badInput:qC,patternMismatch:"This value does not match the required pattern",rangeOverflow:"This value is too large",rangeUnderflow:"This value is too small",stepMismatch:"This value does not match the required step",tooLong:"This value is too long",tooShort:"This value is too short",typeMismatch:"This value does not match the required type",valid:void 0,valueMissing:"This value is missing"},d2="FormMessage",wjt=b.forwardRef((e,t)=>{const{match:n,name:r,...i}=e,o=ZW(d2,e.__scopeForm),s=r??o.name;return n===void 0?h.jsx(eq,{...i,ref:t,name:s,children:e.children||qC}):typeof n=="function"?h.jsx(_jt,{match:n,...i,ref:t,name:s}):h.jsx(Sjt,{match:n,...i,ref:t,name:s})});wjt.displayName=d2;var Sjt=b.forwardRef((e,t)=>{const{match:n,forceMatch:r=!1,name:i,children:o,...s}=e,c=u2(d2,s.__scopeForm).getFieldValidity(i);return r||(c==null?void 0:c[n])?h.jsx(eq,{ref:t,...s,name:i,children:o??bjt[n]}):null}),_jt=b.forwardRef((e,t)=>{const{match:n,forceMatch:r=!1,name:i,id:o,children:s,...a}=e,c=u2(d2,a.__scopeForm),l=b.useRef(null),u=Ma(t,l),d=Gp(),f=o??d,p=b.useMemo(()=>({id:f,match:n}),[f,n]),{onFieldCustomMatcherEntryAdd:g,onFieldCustomMatcherEntryRemove:m}=c;b.useEffect(()=>(g(i,p),()=>m(i,p.id)),[p,i,g,m]);const y=c.getFieldValidity(i),w=c.getFieldCustomErrors(i)[f];return r||y&&!ake(y)&&w?h.jsx(eq,{id:f,ref:u,...a,name:i,children:s??qC}):null}),eq=b.forwardRef((e,t)=>{const{__scopeForm:n,id:r,name:i,...o}=e,s=tke(d2,n),a=Gp(),c=r??a,{onFieldMessageIdAdd:l,onFieldMessageIdRemove:u}=s;return b.useEffect(()=>(l(i,c),()=>u(i,c)),[i,c,l,u]),h.jsx(oo.span,{id:c,...o,ref:t})}),Cjt="FormSubmit",oke=b.forwardRef((e,t)=>{const{__scopeForm:n,...r}=e;return h.jsx(oo.button,{type:"submit",...r,ref:t})});oke.displayName=Cjt;function wD(e){const t={};for(const n in e)t[n]=e[n];return t}function Ejt(e){return e instanceof HTMLElement}function Tjt(e){return"validity"in e}function kjt(e){return Tjt(e)&&(e.validity.valid===!1||e.getAttribute("aria-invalid")==="true")}function ske(e){const t=e.elements,[n]=Array.from(t).filter(Ejt).filter(kjt);return n}function xjt(e,t){return e.match.constructor.name==="AsyncFunction"||Ijt(e.match,t)}function Ajt(e){return e.match.constructor.name==="Function"}function Ijt(e,t){return e(...t)instanceof Promise}function ake(e){let t=!1;for(const n in e){const r=n;if(r!=="valid"&&r!=="customError"&&e[r]){t=!0;break}}return t}function tq(e,t){if((e==null?void 0:e.valid)===!0&&!t)return!0}function nq(e,t){if((e==null?void 0:e.valid)===!1||t)return!0}var Rjt=nke,Cc=rke,El=ike,Pjt=oke;function Ojt(e,t){const n=Fjt(t);return"formatToParts"in n?Mjt(n,e):Djt(n,e)}const Njt={year:0,month:1,day:2,hour:3,minute:4,second:5};function Mjt(e,t){try{const n=e.formatToParts(t),r=[];for(let i=0;i<n.length;i++){const o=Njt[n[i].type];o!==void 0&&(r[o]=parseInt(n[i].value,10))}return r}catch(n){if(n instanceof RangeError)return[NaN];throw n}}function Djt(e,t){const n=e.format(t),r=/(\d+)\/(\d+)\/(\d+),? (\d+):(\d+):(\d+)/.exec(n);return[parseInt(r[3],10),parseInt(r[1],10),parseInt(r[2],10),parseInt(r[4],10),parseInt(r[5],10),parseInt(r[6],10)]}const SD={},Uoe=new Intl.DateTimeFormat("en-US",{hourCycle:"h23",timeZone:"America/New_York",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"}).format(new Date("2014-06-25T04:00:00.123Z")),Ljt=Uoe==="06/25/2014, 00:00:00"||Uoe==="‎06‎/‎25‎/‎2014‎ ‎00‎:‎00‎:‎00";function Fjt(e){return SD[e]||(SD[e]=Ljt?new Intl.DateTimeFormat("en-US",{hourCycle:"h23",timeZone:e,year:"numeric",month:"numeric",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"}):new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:e,year:"numeric",month:"numeric",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"})),SD[e]}function rq(e,t,n,r,i,o,s){const a=new Date(0);return a.setUTCFullYear(e,t,n),a.setUTCHours(r,i,o,s),a}const Boe=36e5,jjt=6e4,_D={timezoneZ:/^(Z)$/,timezoneHH:/^([+-]\d{2})$/,timezoneHHMM:/^([+-])(\d{2}):?(\d{2})$/};function cke(e,t,n){if(!e)return 0;let r=_D.timezoneZ.exec(e);if(r)return 0;let i,o;if(r=_D.timezoneHH.exec(e),r)return i=parseInt(r[1],10),$oe(i)?-(i*Boe):NaN;if(r=_D.timezoneHHMM.exec(e),r){i=parseInt(r[2],10);const s=parseInt(r[3],10);return $oe(i,s)?(o=Math.abs(i)*Boe+s*jjt,r[1]==="+"?-o:o):NaN}if($jt(e)){t=new Date(t||Date.now());const s=Ujt(t),a=iU(s,e);return-Bjt(t,a,e)}return NaN}function Ujt(e){return rq(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds())}function iU(e,t){const n=Ojt(e,t),r=rq(n[0],n[1]-1,n[2],n[3]%24,n[4],n[5],0).getTime();let i=e.getTime();const o=i%1e3;return i-=o>=0?o:1e3+o,r-i}function Bjt(e,t,n){let i=e.getTime()-t;const o=iU(new Date(i),n);if(t===o)return t;i-=o-t;const s=iU(new Date(i),n);return o===s?o:Math.max(o,s)}function $oe(e,t){return-23<=e&&e<=23&&(t==null||0<=t&&t<=59)}const Hoe={};function $jt(e){if(Hoe[e])return!0;try{return new Intl.DateTimeFormat(void 0,{timeZone:e}),Hoe[e]=!0,!0}catch{return!1}}function zoe(e){const t=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return t.setUTCFullYear(e.getFullYear()),+e-+t}const lke=/(Z|[+-]\d{2}(?::?\d{2})?| UTC| [a-zA-Z]+\/[a-zA-Z_]+(?:\/[a-zA-Z_]+)?)$/,CD=36e5,Voe=6e4,Hjt=2,Vs={dateTimePattern:/^([0-9W+-]+)(T| )(.*)/,datePattern:/^([0-9W+-]+)(.*)/,YY:/^(\d{2})$/,YYY:[/^([+-]\d{2})$/,/^([+-]\d{3})$/,/^([+-]\d{4})$/],YYYY:/^(\d{4})/,YYYYY:[/^([+-]\d{4})/,/^([+-]\d{5})/,/^([+-]\d{6})/],MM:/^-(\d{2})$/,DDD:/^-?(\d{3})$/,MMDD:/^-?(\d{2})-?(\d{2})$/,Www:/^-?W(\d{2})$/,WwwD:/^-?W(\d{2})-?(\d{1})$/,HH:/^(\d{2}([.,]\d*)?)$/,HHMM:/^(\d{2}):?(\d{2}([.,]\d*)?)$/,HHMMSS:/^(\d{2}):?(\d{2}):?(\d{2}([.,]\d*)?)$/,timeZone:lke};function Woe(e,t={}){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");if(e===null)return new Date(NaN);const n=t.additionalDigits==null?Hjt:Number(t.additionalDigits);if(n!==2&&n!==1&&n!==0)throw new RangeError("additionalDigits must be 0, 1 or 2");if(e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]")return new Date(e.getTime());if(typeof e=="number"||Object.prototype.toString.call(e)==="[object Number]")return new Date(e);if(Object.prototype.toString.call(e)!=="[object String]")return new Date(NaN);const r=zjt(e),{year:i,restDateString:o}=Vjt(r.date,n),s=Wjt(o,i);if(s===null||isNaN(s.getTime()))return new Date(NaN);if(s){const a=s.getTime();let c=0,l;if(r.time&&(c=qjt(r.time),c===null||isNaN(c)))return new Date(NaN);if(r.timeZone||t.timeZone){if(l=cke(r.timeZone||t.timeZone,new Date(a+c)),isNaN(l))return new Date(NaN)}else l=zoe(new Date(a+c)),l=zoe(new Date(a+c+l));return new Date(a+c+l)}else return new Date(NaN)}function zjt(e){const t={};let n=Vs.dateTimePattern.exec(e),r;if(n?(t.date=n[1],r=n[3]):(n=Vs.datePattern.exec(e),n?(t.date=n[1],r=n[2]):(t.date=null,r=e)),r){const i=Vs.timeZone.exec(r);i?(t.time=r.replace(i[1],""),t.timeZone=i[1].trim()):t.time=r}return t}function Vjt(e,t){if(e){const n=Vs.YYY[t],r=Vs.YYYYY[t];let i=Vs.YYYY.exec(e)||r.exec(e);if(i){const o=i[1];return{year:parseInt(o,10),restDateString:e.slice(o.length)}}if(i=Vs.YY.exec(e)||n.exec(e),i){const o=i[1];return{year:parseInt(o,10)*100,restDateString:e.slice(o.length)}}}return{year:null}}function Wjt(e,t){if(t===null)return null;let n,r,i;if(!e||!e.length)return n=new Date(0),n.setUTCFullYear(t),n;let o=Vs.MM.exec(e);if(o)return n=new Date(0),r=parseInt(o[1],10)-1,Goe(t,r)?(n.setUTCFullYear(t,r),n):new Date(NaN);if(o=Vs.DDD.exec(e),o){n=new Date(0);const s=parseInt(o[1],10);return Yjt(t,s)?(n.setUTCFullYear(t,0,s),n):new Date(NaN)}if(o=Vs.MMDD.exec(e),o){n=new Date(0),r=parseInt(o[1],10)-1;const s=parseInt(o[2],10);return Goe(t,r,s)?(n.setUTCFullYear(t,r,s),n):new Date(NaN)}if(o=Vs.Www.exec(e),o)return i=parseInt(o[1],10)-1,Koe(i)?qoe(t,i):new Date(NaN);if(o=Vs.WwwD.exec(e),o){i=parseInt(o[1],10)-1;const s=parseInt(o[2],10)-1;return Koe(i,s)?qoe(t,i,s):new Date(NaN)}return null}function qjt(e){let t,n,r=Vs.HH.exec(e);if(r)return t=parseFloat(r[1].replace(",",".")),ED(t)?t%24*CD:NaN;if(r=Vs.HHMM.exec(e),r)return t=parseInt(r[1],10),n=parseFloat(r[2].replace(",",".")),ED(t,n)?t%24*CD+n*Voe:NaN;if(r=Vs.HHMMSS.exec(e),r){t=parseInt(r[1],10),n=parseInt(r[2],10);const i=parseFloat(r[3].replace(",","."));return ED(t,n,i)?t%24*CD+n*Voe+i*1e3:NaN}return null}function qoe(e,t,n){t=t||0,n=n||0;const r=new Date(0);r.setUTCFullYear(e,0,4);const i=r.getUTCDay()||7,o=t*7+n+1-i;return r.setUTCDate(r.getUTCDate()+o),r}const Gjt=[31,28,31,30,31,30,31,31,30,31,30,31],Kjt=[31,29,31,30,31,30,31,31,30,31,30,31];function uke(e){return e%400===0||e%4===0&&e%100!==0}function Goe(e,t,n){if(t<0||t>11)return!1;if(n!=null){if(n<1)return!1;const r=uke(e);if(r&&n>Kjt[t]||!r&&n>Gjt[t])return!1}return!0}function Yjt(e,t){if(t<1)return!1;const n=uke(e);return!(n&&t>366||!n&&t>365)}function Koe(e,t){return!(e<0||e>52||t!=null&&(t<0||t>6))}function ED(e,t,n){return!(e<0||e>=25||t!=null&&(t<0||t>=60)||n!=null&&(n<0||n>=60))}function Qjt(e,t,n){if(typeof e=="string"&&!e.match(lke))return Woe(e,{...n,timeZone:t});e=Woe(e,n);const r=rq(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()).getTime(),i=cke(t,new Date(r));return new Date(r+i)}const Xjt="/assets/event-DsfQpWjY.png",Jjt="_InvalidMessage_pnuyi_1",Zjt={InvalidMessage:Jjt},TD=e=>h.jsxs("div",{className:Zjt.InvalidMessage,children:[h.jsx(Lye,{}),e.message]}),e7t="_Breadcrumbs_o362b_1",t7t={Breadcrumbs:e7t},iq=e=>h.jsx("nav",{"aria-label":"breadcrumbs",className:t7t.Breadcrumbs,children:e.items.map((t,n)=>h.jsxs(Ae.Fragment,{children:[n!==0&&n!==e.items.length&&h.jsx("span",{children:"/"}),h.jsx(It,{to:t.url,children:t.label})]},n))}),Yoe=[{value:"Pacific/Pago_Pago",name:"Samoa"},{value:"Pacific/Honolulu",name:"Hawaii"},{value:"America/Anchorage",name:"Alaska"},{value:"America/Los_Angeles",name:"Pacific Time"},{value:"America/Phoenix",name:"Arizona"},{value:"America/Denver",name:"Mountain Time"},{value:"America/Chicago",name:"Central Time"}
1597,{value:"America/New_York",name:"Eastern Time"},{value:"America/Halifax",name:"Atlantic Time"},{value:"America/Sao_Paulo",name:"Brasília Time"},{value:"America/Noronha",name:"Fernando de Noronha"},{value:"Atlantic/Azores",name:"Azores"},{value:"Africa/Abidjan",name:"GMT"},{value:"Europe/Paris",name:"Central European Time"},{value:"Europe/Athens",name:"Eastern European Time"},{value:"Europe/Moscow",name:"Moscow Time"},{value:"Asia/Tehran",name:"Iran Time"},{value:"Asia/Dubai",name:"Gulf Time"},{value:"Asia/Kabul",name:"Afghanistan Time"},{value:"Asia/Karachi",name:"Pakistan Time"},{value:"Asia/Kolkata",name:"India Time"},{value:"Asia/Kathmandu",name:"Nepal Time"},{value:"Asia/Dhaka",name:"Bangladesh Time"},{value:"Asia/Yangon",name:"Myanmar Time"},{value:"Asia/Bangkok",name:"Indochina Time"},{value:"Asia/Shanghai",name:"China Time"},{value:"Australia/Eucla",name:"Australian Central Western Time"},{value:"Asia/Tokyo",name:"Japan Time"},{value:"Australia/Adelaide",name:"Australian Central Time"},{value:"Australia/Sydney",name:"Australian Eastern Time"},{value:"Pacific/Noumea",name:"New Caledonia Time"},{value:"Pacific/Auckland",name:"New Zealand Time"},{value:"Pacific/Chatham",name:"Chatham Time"},{value:"Pacific/Tongatapu",name:"Tonga Time"},{value:"Pacific/Kiritimati",name:"Line Islands Time"}],n7t=e=>{const t=Ts(),[n,r]=b.useState(!1);return h.jsx(xs,{open:e.open,onOpenChange:e.onOpenChange,title:"Schedule or join Langfinity meetings",content:h.jsxs("div",{className:Kn.JoinMeetingDialogContent,children:[h.jsxs("div",{className:Kn.FormField,children:[h.jsx("label",{children:"Schedule a meeting with this room"}),h.jsxs("div",{className:Kn.JoinMeetingLink,children:[h.jsx(Fye,{}),e.link]}),h.jsx(qe,{color:"gray",backgroundColor:"black",borderColor:"dark-gray",onClick:()=>{navigator.clipboard.writeText(e.link),r(!0),setTimeout(()=>{r(!1)},2*1e3)},children:n?h.jsxs(h.Fragment,{children:[h.jsx(lm,{}),"Copied"]}):h.jsxs(h.Fragment,{children:[h.jsx(DH,{}),"Copy link"]})})]}),h.jsx(qe,{onClick:()=>{const i=new URL(e.link);t(i.pathname)},children:"Join now"})]})})},r7t=[...Array.from({length:16},(e,t)=>(t+1)*30),1440],i7t=Array.from({length:10},(e,t)=>t+1);function dke({organization:e,initialRoom:t,hideSubmit:n,edit:r,onSubmit:i,onInvalid:o,triggerSubmit:s,id:a}){const[c,l]=b.useState(t),u=b.useCallback(Q=>{const ue=new Intl.DateTimeFormat("en-US",{timeZone:Q,timeZoneName:"short"}).formatToParts(new Date).find(ge=>ge.type==="timeZoneName");return ue==null?void 0:ue.value},[]),d=Intl.DateTimeFormat().resolvedOptions().timeZone||Intl.DateTimeFormat().resolvedOptions().timeZoneName,[f,p]=b.useState(d&&Yoe.some(Q=>Q.value===d)?d:"America/Los_Angeles"),[g,m]=b.useState(t.start_time&&t.end_time?(new Date(t.end_time).getTime()-new Date(t.start_time).getTime())/(1e3*60):30),y=b.useMemo(()=>g>=1440,[g]);function v(Q){const q=B=>String(B).padStart(2,"0"),z=Q.getFullYear(),ue=q(Q.getMonth()+1),ge=q(Q.getDate()),ae=q(Q.getHours()),j=q(Q.getMinutes());return`${z}-${ue}-${ge}T${ae}:${j}`}const[w,S]=b.useState(t.start_time?v(new Date(t.start_time)):v(new Date));b.useEffect(()=>{const Q=Qjt(new Date(w),f),q=new Date(Q);q.setMinutes(q.getMinutes()+g),l(z=>z.room_type!=="event"?z:{...z,start_time:Q,end_time:q,available_24_7:y})},[l,w,f,g,y]);const[C,E]=b.useState(!1),T=b.useMemo(()=>{var q;const Q=[];return c.room_type==="event"&&!((q=c.name)!=null&&q.length)&&Q.push("event_name"),c.languages&&c.languages.length<2&&Q.push("at_least_2_languages"),e.translation_seconds_remaining<=0&&Q.push("no_minutes"),Q},[c,e]),x=b.useCallback(()=>{if(E(!0),T.length){o&&o(T);return}i(c)},[i,o,c,T]),O=b.useRef(0);b.useEffect(()=>{!s||s<=O.current||(O.current=s,x())},[s,x]);const A=b.useMemo(()=>{switch(c.room_type){case"event":return r?"Edit event":"Schedule translation for events and conferences";case"meeting":return r?"Edit meeting":"Schedule or join Langfinity meetings";case"teams":return"Languages and setting configuration";default:return}},[r,c.room_type]),[L,U]=b.useState(!1),I=Ts(),F=b.useMemo(()=>{switch(c.room_type){case"event":return Xjt;case"meeting":return GN;case"teams":if(r)return l2}},[c.room_type,r]),[P,W]=b.useState(!1),[ee,Y]=b.useState(""),X=b.useMemo(()=>{switch(c.room_type){case"event":return"Schedule translation";case"meeting":return P?"Join now":"Schedule now"}},[c.room_type,P]),Z=b.useMemo(()=>{switch(c.room_type){case"meeting":return Kn.MeetingRoom;case"teams":return Kn.TeamsRoom}return""},[c.room_type]),G=b.useMemo(()=>Yoe.map(Q=>{const q=u(Q.value);return{value:Q.value,label:q?`${Q.name} (${q})`:Q.name}}),[u]);return h.jsxs("div",{className:`${Kn.CreateOrEditRoom} ${Z}`,children:[c.room_type!=="teams"&&h.jsx(iq,{items:[{label:"Home",url:"/"},{label:"Meetings",url:"/meetings"},...r&&c.name&&a?[{label:c.name,url:`/${c.room_type}/${a}
1597${c.room_type==="event"?"/details":""}`}]:[]]}),h.jsxs("div",{className:Kn.FormAndImg,children:[h.jsxs(Rjt,{className:Kn.Form,onSubmit:Q=>{Q.preventDefault(),x()},children:[A&&h.jsx("h1",{className:Kn.Title,children:A}),c.room_type==="meeting"&&h.jsxs("div",{className:Kn.CreateOrJoinMeeting,children:[h.jsx("button",{type:"button","aria-selected":!P,onClick:()=>W(!1),children:"Schedule a meeting"}),h.jsx("button",{type:"button","aria-selected":P,onClick:()=>W(!0),children:"Join a meeting"})]}),c.room_type==="event"&&h.jsxs(h.Fragment,{children:[h.jsxs(Cc,{name:"name",className:Kn.FormField,children:[h.jsx(El,{children:"Event name"}),h.jsx("input",{value:c.name||"",onChange:Q=>l(q=>({...q,name:Q.target.value})),placeholder:r?"Event name":"Ex. Language & leadership workshop"}),C&&T.includes("event_name")&&h.jsx(TD,{message:"Please enter the event name to continue"})]}),h.jsxs("div",{className:Kn.EventTimeFields,children:[h.jsxs(Cc,{name:"start_time",className:Kn.FormField,children:[h.jsx(El,{children:"Date and time"}),h.jsx("input",{className:Kn.StartDate,type:"datetime-local",value:w,onChange:Q=>{S(Q.target.value)}})]}),h.jsxs(Cc,{name:"timezone",className:Kn.FormField,children:[h.jsx(El,{children:"Timezone"}),h.jsx(Ia,{selected:f,items:G,onChange:Q=>typeof Q=="string"&&p(Q)})]}),h.jsxs(Cc,{name:"duration",className:Kn.FormField,children:[h.jsx(El,{children:"Duration"}),h.jsx(Ia,{selected:g,items:r7t.map(Q=>({value:Q,label:`${Q} min`})),onChange:Q=>typeof Q=="number"&&m(Q)})]})]})]}),P?h.jsxs(Cc,{name:"meeting_link",className:Kn.FormField,children:[h.jsx("label",{children:"Meeting link"}),h.jsx("input",{type:"text",value:ee,onChange:Q=>Y(Q.target.value),placeholder:"Enter link"})]}):h.jsxs(h.Fragment,{children:[h.jsxs(Cc,{name:"languages",className:Kn.FormField,children:[h.jsx(El,{children:"Languages"}),h.jsx(lz,{selectedLanguages:c.languages||[],maxLanguages:e.max_languages_allowed,onChange:Q=>l(q=>({...q,languages:Q}))}),C&&T.includes("at_least_2_languages")&&h.jsx(TD,{message:"Please select at least two languages to continue"})]}),h.jsxs("div",{children:[h.jsx("div",{className:Kn.MoreOptionsToggle,onClick:()=>U(Q=>!Q),"aria-selected":L,children:L?"Fewer options":"More options"}),L&&h.jsxs("div",{className:Kn.MoreOptions,children:[h.jsxs("div",{className:Kn.VoiceOptions,children:[e.voice_translation_enabled&&h.jsxs(Cc,{name:"default_voice_on",className:Kn.FormField,children:[h.jsx(El,{children:"Default to voice translation"}),h.jsx(Ep,{enabled:!!c.default_voice_on,onChange:()=>l(Q=>({...Q,default_voice_on:!c.default_voice_on}))})]}),e.voice_translation_enabled&&h.jsxs(Cc,{name:"default_voice_avatar",className:Kn.FormField,children:[h.jsx(El,{children:"Choose your voice avatar"}),h.jsx(wz,{locale:"en-US",trigger:h.jsxs(qe,{color:"white",backgroundColor:"black",borderColor:"primary",children:["Voice avatar",h.jsx(na,{})]}),selectedVoiceId:c.default_voice_avatar,onConfirm:Q=>l(q=>({...q,default_voice_avatar:Q})),basic:!e.voice_avatar_enabled})]})]}),e.recording_enabled&&h.jsxs(Cc,{name:"recording",className:Kn.FormField,children:[h.jsx(El,{children:"Enable recording and meeting notes"}),h.jsx(Ep,{enabled:!!c.auto_record,onChange:()=>l(Q=>({...Q,auto_record:!c.auto_record}))})]}),c.room_type==="event"&&h.jsxs(h.Fragment,{children:[h.jsxs(Cc,{name:"qna",className:Kn.FormField,children:[h.jsx(El,{children:"Enable Q&A"}),h.jsx(Ep,{enabled:!!c.qna,onChange:()=>l(Q=>({...Q,qna:!Q.qna}))})]}),h.jsxs(Cc,{name:"reoccurring",className:Kn.FormField,children:[h.jsx(El,{children:"Make re-occurring"}),h.jsx(Ep,{enabled:!!c.reoccurring,onChange:()=>l(Q=>({...Q,reoccurring:!Q.reoccurring}))})]}),h.jsxs(Cc,{name:"num_speakers",className:`${Kn.FormField} ${Kn.NumSpeakers}`,children:[h.jsx(El,{children:"Number of speakers"}),h.jsx(Ia,{selected:c.num_speakers||1,items:i7t.map(Q=>({value:Q,label:Q.toString()})),onChange:Q=>typeof Q=="number"&&l(q=>({...q,num_speakers:Q}))})]})]})]})]})]}),!n&&h.jsxs("div",{className:Kn.FormActions,children:[h.jsx(Pjt,{asChild:!0,children:h.jsx(qe,{onClick:P?()=>{const Q=new URL(ee);I(Q.pathname)}:void 0,type:P?"button":"submit",children:r?"Save changes":X})}),c.room_type!=="teams"&&h.jsx(It,{to:"/",onClick:Q=>{Q.preventDefault(),I(-1)},children:h.jsx(qe,{color:"gray",backgroundColor:"black",borderColor:"dark-gray",children:r?"Cancel":"Return to home"})})]}),C&&T.includes("no_minutes")?h.jsxs("div",{className:Kn.InvalidMinutes,children:[h.jsx(gm,{organization:e,goToCalendly:c.room_type==="teams"}),h.jsx(TD,{message:"No minutes remaining"})]}):h.jsx(gm,{organization:e,goToCalendly:c.room_type==="teams"})]}),F&&h.jsx("img",{src:F,alt:A})]})]})}function o7t(e){const t=Ts(),{organization:n,loading:r}=Md(),i=mE(),[o,s]=b.useState();b.useEffect(()=>{n&&s({room_type:e.roomType||i.roomType,languages:n.default_languages_setting||[],default_voice_on:n.default_ai_voice_setting,auto_record:n.default_recording_setting,default_voice_avatar:n.default_avatar_setting,qna:n.default_qna_setting,...e.teamsParams})},[e.roomType,e.teamsParams,i.roomType,n]);const a=Cn(),c=Gt.useCreateRoom(a),[l,u]=b.useState(),[d,f]=b.useState(!1);return!n||r||!o?h.jsx(Sn,{style:{alignSelf:"center"}}):h.jsxs(h.Fragment,{children:[h.jsx(dke,{organization:n,initialRoom:o,hideSubmit:e.hideSubmit,triggerSubmit:e.triggerSubmit,onSubmit:async p=>{try{const g=await c(p);g.data.room.room_type==="event"&&t(`/${g.data.room.room_type}/${g.data.room.id}/details`),g.data.room.room_type==="meeting"&&(u(ux(`/meeting/${g.data.room.id}`)),f(!0)),e.onCreatedOrUpdated&&e.onCreatedOrUpdated(g)}catch(g){g instanceof Sb&&e.onError&&e.onError(g)}},onInvalid:e.onInvalid}),l&&h.jsx(n7t,{link:l,open:d,onOpenChange:f})]})}function s7t(e){const{organization:t,loading:n}=Md(),{room:r,loading:i}=Rr(),[o,s]=b.useState();b.useEffect(()=>{r&&s(r)},[r]);const a=Cn(),c=Gt.useUpdateRoom(a);return!t||n||!r||i||!o?h.jsx(Sn,{}):h.jsx(dke,{id:o.id,organization:t,initialRoom:o,hideSubmit:e.hideSubmit,onInvalid:e.onInvalid,edit:!0,onSubmit:async l=>{try{const u=await c(l);mt(h.jsx("div",{className:"Toast SuccessToast",children:h.jsx("div",{children:"Successfully saved changes"})}),{type:"success"}),e.onCreatedOrUpdated&&e.onCreatedOrUpdated(u)}catch(u){u instanceof Sb&&e.onError&&e.onError(u)}}})}function g3(e){return _h()?h.jsx(s7t,{...e}):h.jsx(o7t,{...e})}const a7t="_Meeting_pgmn6_1",c7t="_MeetingPanel_pgmn6_8",l7t="_Captions_pgmn6_15",u7t="_Chat_pgmn6_25",Sk={Meeting:a7t,MeetingPanel:c7t,Captions:l7t,Chat:u7t},d7t="_WaitingRoom_1ki6m_1",f7t="_PreviewAndSettings_1ki6m_9",h7t="_Preview_1ki6m_9",p7t="_VideoPreview_1ki6m_22",m7t="_PreviewControl
1597s_1ki6m_37",g7t="_PreviewSettings_1ki6m_66",v7t="_Settings_1ki6m_72",Vh={WaitingRoom:d7t,PreviewAndSettings:f7t,Preview:h7t,VideoPreview:p7t,PreviewControls:m7t,PreviewSettings:g7t,Settings:v7t},y7t="_MeetingParticipantPlaceholder_1fnz2_1",b7t="_Initials_1fnz2_16",w7t="_Name_1fnz2_29",kD={MeetingParticipantPlaceholder:y7t,Initials:b7t,Name:w7t};function fke(e){const t=b.useMemo(()=>{var r,i,o,s;if(!e.name||!e.name.length)return;const n=e.name.split(" ");return(((i=(r=n[0])==null?void 0:r.charAt(0))==null?void 0:i.toUpperCase())||"")+(((s=(o=n[1])==null?void 0:o.charAt(0))==null?void 0:s.toUpperCase())||"")},[e.name]);return h.jsxs("div",{className:`${kD.MeetingParticipantPlaceholder} ${e.className||""}`,style:e.style,children:[t&&h.jsx("div",{className:kD.Initials,children:t}),h.jsx("div",{className:kD.Name,children:e.name})]})}function oq(e){const{saveVideoInputDeviceId:t}=uv(),[n,r]=$Se(),[i,o]=hV();b.useEffect(()=>{t(i)},[i,t]);const s=ls();return h.jsxs(h.Fragment,{children:[h.jsx(mP,{className:e.className,initialState:e.initialState,source:Re.Source.Camera,onChange:(a,c)=>{c&&s({type:"toggle_camera",details:{enabled:a}}),r(a)},showIcon:!1,children:n?h.jsx($ft,{}):h.jsx(Bft,{})}),e.track&&h.jsx("div",{style:{display:"none"},children:h.jsx(wme,{initialSelection:i,kind:"videoinput",tracks:{videoinput:e.track},onActiveDeviceChange:(a,c)=>o(c)})})]})}const S7t="_MeetingParticipant_1eouk_1",_7t="_ParticipantTooltip_1eouk_35",C7t="_ParticipantName_1eouk_45",E7t="_ParticipantTime_1eouk_50",T7t="_ParticipantMicEnabled_1eouk_55",cp={MeetingParticipant:S7t,ParticipantTooltip:_7t,ParticipantName:C7t,ParticipantTime:E7t,ParticipantMicEnabled:T7t},oU=e=>{const[t,n]=b.useState();return b.useEffect(()=>{if(!e.timezone)return;const r=setInterval(()=>{n(new Date().toLocaleString("en-US",{timeZone:e.timezone,hour:"2-digit",minute:"2-digit",hour12:!0}))},1e3*30);return n(new Date().toLocaleString("en-US",{timeZone:e.timezone,hour:"2-digit",minute:"2-digit",hour12:!0})),()=>{clearInterval(r)}},[e.timezone]),h.jsxs(h.Fragment,{children:[h.jsxs("div",{className:`${cp.ParticipantTooltip} ${cp.ParticipantName}`,children:[eu(e.language)," ",e.name]}),t&&h.jsx("div",{className:`${cp.ParticipantTooltip} ${cp.ParticipantTime}`,children:t}),h.jsx("div",{className:`${cp.ParticipantTooltip} ${cp.ParticipantMicEnabled}`,children:e.micEnabled?h.jsx(IR,{}):h.jsx(AR,{color:"var(--langfinity-red)"})})]})};function Yh(e){var r;const t=b.useMemo(()=>{const i=e.trackRef.participant.metadata;return i?JSON.parse(i):void 0},[e.trackRef]),[n]=Es();return(r=e.trackRef.publication)!=null&&r.videoTrack&&!e.trackRef.publication.videoTrack.isMuted&&(!n.media.applyingBackground||!e.trackRef.participant.isLocal)?h.jsxs("div",{className:cp.MeetingParticipant,children:[t&&h.jsx(oU,{language:t.language,name:t.name,timezone:t.timezone,micEnabled:e.trackRef.participant.isMicrophoneEnabled}),h.jsx(DUe,{trackRef:e.trackRef,style:e.style})]}):h.jsxs("div",{className:cp.MeetingParticipant,children:[t&&h.jsx(oU,{language:t.language,name:t.name,timezone:t.timezone,micEnabled:e.trackRef.participant.isMicrophoneEnabled}),h.jsx(fke,{name:t==null?void 0:t.name,style:e.style})]})}const k7t="_MediaPreviewErrorDialog_8g9xs_1",x7t={MediaPreviewErrorDialog:k7t},A7t="/assets/permissions-CyDXWwp5.webp";function I7t(e){return h.jsx(xs,{open:e.open,onOpenChange:e.onOpenChange,title:"Something is wrong with your camera or microphone",contentClassName:x7t.MediaPreviewErrorDialog,content:h.jsxs(h.Fragment,{children:[h.jsxs("div",{children:[h.jsx("h3",{children:"To use real-time translation, Langfinity requires access to your microphone and/or camera."}),h.jsx("h3",{children:"If you accidentally blocked access, follow these steps:"}),h.jsxs("ul",{children:[h.jsx("li",{children:h.jsx("h3",{children:"Click the lock icon in the address bar"})}),h.jsx("li",{children:h.jsx("h3",{children:"Find Camera and Microphone settings and select Allow"})}),h.jsx("li",{children:h.jsx("h3",{children:"Refresh the page to apply changes"})})]})]}),h.jsx("img",{src:A7t,alt:"Enable media permissions"}),h.jsx(qe,{onClick:()=>e.onOpenChange(!1),children:"Continue"})]})})}function R7t(e){var F;const[,t]=Es(),[n,r]=Jt(),{room:i,loading:o}=Rr(),{saveUsername:s}=uv(),[a]=GE(),[c]=$Se(),[l,u]=b.useState(((F=n.auth)==null?void 0:F.name)??"Guest");b.useEffect(()=>{s(l),r(P=>({...P,metadata:{...P.metadata,name:l}}))},[l,s,r]);const[d,f]=b.useState(!1),p=b.useCallback(P=>{f(!0),console.warn(P)},[f]),{userChoices:g}=uv(),m=LUe({audio:{deviceId:g.audioDeviceId},video:c?{deviceId:g.videoDeviceId}:!1},p),y=b.useMemo(()=>m==null?void 0:m.filter(P=>P.kind===Re.Kind.Audio)[0],[m]),v=b.useRef(null),w=b.useMemo(()=>m==null?void 0:m.filter(P=>P.kind===Re.Kind.Video)[0],[m]);HSe(w);const[S]=Es();b.useEffect(()=>{const P=v.current;
1597return P&&w&&!S.media.applyingBackground&&(w.unmute(),w.attach(P)),()=>{P&&(w==null||w.detach(P))}},[w,S.media.applyingBackground]);const C=Cn(),E=Gt.useGenerateLivekitToken(C),T=_h(),x=b.useRef(),[O,A]=b.useState(!1),L=b.useMemo(()=>Xs(),[]),U=ks(),I=b.useCallback(async()=>{await E({room:T,identity:n.livekitId}),mt.dismiss(x.current),e.onJoin({audio:a,video:c}),t(P=>({...P,joined:!0}))},[E,e,T,t,n.livekitId,a,c]);return b.useEffect(()=>{let P;return O&&(P=setInterval(async()=>{try{await I()}catch{}},5*1e3)),()=>{clearInterval(P)}},[O,I]),!i||o?h.jsx(Sn,{}):h.jsxs(h.Fragment,{children:[h.jsxs("div",{className:Vh.WaitingRoom,children:[h.jsx("h1",{children:"Ready to Join?"}),h.jsxs("div",{className:Vh.PreviewAndSettings,children:[h.jsxs("div",{className:Vh.Preview,children:[h.jsxs("div",{className:Vh.VideoPreview,children:[h.jsx(oU,{language:n.metadata.selectedLanguage,name:l,timezone:n.metadata.timezone,micEnabled:a}),w&&c?h.jsx("video",{ref:v,width:"1280",height:"720"}):h.jsx(fke,{name:l}),h.jsxs("div",{className:Vh.PreviewControls,children:[h.jsx(IO,{initialState:!0,track:y}),h.jsx(oq,{initialState:!0,track:w}),h.jsx($c,{trigger:h.jsx("button",{children:h.jsx(Vv,{})}),localAudioTrack:y,localVideoTrack:w,hiddenCategories:["text-translation"]})]})]}),c&&h.jsx("h2",{children:"✨ Looking sharp! Ready to shine in the spotlight! ✨"})]}),h.jsxs("div",{className:Vh.PreviewSettings,children:[h.jsxs("div",{className:Vh.Settings,children:[h.jsxs("div",{children:[h.jsx("label",{children:"Name"}),h.jsx("input",{type:"text",defaultValue:l,placeholder:"Enter your name",onChange:P=>u(P.target.value),autoComplete:"off"})]}),h.jsxs("div",{children:[h.jsx("label",{children:"I speak"}),h.jsx(dh,{color:"white",borderColor:"dark-gray",backgroundColor:"dark-gray",languages:i.languages})]}),(L==null?void 0:L.name)==="Chrome"&&!U&&h.jsxs("div",{children:[h.jsx("label",{children:"Add filter"}),h.jsx(u_e,{})]})]}),h.jsx(qe,{onClick:async()=>{try{await I()}catch(P){P instanceof Sb&&P.status===403&&(A(!0),x.current||(x.current=mt(h.jsx("div",{className:Vh.Toast,children:"Waiting for the host to admit you..."}),{autoClose:!1})))}},children:"Join now"})]})]})]}),h.jsx(I7t,{open:d,onOpenChange:f})]})}const P7t="_Controls_uviet_1",O7t="_TrackToggle_uviet_80",N7t="_ScreenShareToggle_uviet_109",M7t="_ControlsButton_uviet_119",D7t="_LanguageSelectContainer_uviet_127",L7t="_UnreadMessages_uviet_141",Yo={Controls:P7t,TrackToggle:O7t,ScreenShareToggle:N7t,ControlsButton:M7t,LanguageSelectContainer:D7t,UnreadMessages:L7t},F7t=e=>h.jsxs("svg",{width:"32",height:"32",viewBox:"6 6 20 20",fill:e.enabled?e.teams?"var(--langfinity-primary)":"white":"var(--langfinity-medium-gray)",xmlns:"http://www.w3.org/2000/svg",children:[h.jsx("path",{d:"M16.666 6.66602C16.445 6.66602 16.2331 6.75381 16.0768 6.91009C15.9205 7.06637 15.8327 7.27834 15.8327 7.49935V25.8327C15.8327 26.0537 15.9205 26.2657 16.0768 26.4219C16.2331 26.5782 16.445 26.666 16.666 26.666C16.8871 26.666 17.099 26.5782 17.2553 26.4219C17.4116 26.2657 17.4994 26.0537 17.4994 25.8327V7.49935C17.4994 7.27834 17.4116 7.06637 17.2553 6.91009C17.099 6.75381 16.8871 6.66602 16.666 6.66602Z"}),h.jsx("path",{d:"M13.3327 8.33289C13.1116 8.33289 12.8997 8.42068 12.7434 8.57696C12.5871 8.73324 12.4993 8.94521 12.4993 9.16622V24.1662C12.4993 24.3872 12.5871 24.5992 12.7434 24.7555C12.8997 24.9118 13.1116 24.9996 13.3327 24.9996C13.5537 24.9996 13.7656 24.9118 13.9219 24.7555C14.0782 24.5992 14.166 24.3872 14.166 24.1662V9.16622C14.166 8.94521 14.0782 8.73324 13.9219 8.57696C13.7656 8.42068 13.5537 8.33289 13.3327 8.33289Z"}),h.jsx("path",{d:"M9.99935 11.666C9.77834 11.666 9.56637 11.7538 9.41009 11.9101C9.25381 12.0664 9.16602 12.2783 9.16602 12.4993V20.8327C9.16602 21.0537 9.25381 21.2657 9.41009 21.4219C9.56637 21.5782 9.77834 21.666 9.99935 21.666C10.2204 21.666 10.4323 21.5782 10.5886 21.4219C10.7449 21.2657 10.8327 21.0537 10.8327 20.8327V12.4993C10.8327 12.2783 10.7449 12.0664 10.5886 11.9101C10.4323 11.7538 10.2204 11.666 9.99935 11.666Z"}),h.jsx("path",{d:"M7.49935 14.9991C7.27834 14.9991 7.06637 15.0869 6.91009 15.2432C6.75381 15.3995 6.66602 15.6115 6.66602 15.8325V17.4991C6.66602 17.7202 6.75381 17.9321 6.91009 18.0884C7.06637 18.2447 7.27834 18.3325 7.49935 18.3325C7.72036 18.3325 7.93232 18.2447 8.0886 18.0884C8.24488 17.9321 8.33268 17.7202 8.33268 17.4991V15.8325C8.33268 15.6115 8.24488 15.3995 8.0886 15.2432C7.93232 15.0869 7.72036 14.9991 7.49935 14.9991Z"}),h.jsx("path",{d:"M19.9993 8.33289C19.7783 8.33289 19.5664 8.42068 19.4101 8.57696C19.2538 8.73324 19.166 8.94521 19.166 9.16622V24.1662C19.166 24.3872 19.2538 24.5992 19.4101 24.7555C19.5664 24.9118 19.7783 24.9996 19.9993 24.9996C20.2204 24.9996 20.4323 24.9118 20.5886 24.7555C20.7449 24.5992 20.8327 24.3872 20.8327 24.1662V9.16622C20.8327 8.94521 20.7449 8.73324 20.5886 8.57696C20.4323 8.42068 20.2204 8.33289 19.9993 8.33289Z"}),h.jsx("path",{d:"M23.3327 11.666C23.1117 11.666 22.8997 11.7538 22.7434 11.9101C22.5871 12.0664 22.4993 12.2783 22.4993 12.4993V20.8327C22.4993 21.0537 22.5871 21.2657 22.7434 21.4219C22.8997 21.5782 23.1117 21.666 23.3327 21.666C23.5537 21.666 23.7657 21.5782 23.9219 21.4219C24.0782 21.2657 24.166 21.0537 24.166 20.8327V12.4993C24.166 12.2783 24.0782 12.0664 23.9219 11.9101C23.7657 11.7538 23.5537 11.666 23.3327 11.666Z"}),h.jsx("path",{d:"M25.8327 14.9991C25.6117 14.9991 25.3997 15.0869 25.2434 15.2432C25.0871 15.3995 24.9993 15.6115 24.9993 15.8325V17.4991C24.9993 17.7202 25.0871 17.9321 25.2434 18.0884C25.3997 18.2447 25.6117 18.3325 25.8327 18.3325C26.0537 18.3325 26.2657 18.2447 26.4219 18.0884C26.5782 17.9321 26.666 17.7202 26.666 17.4991V15.8325C26.666 15.6115 26.5782 15.3995 26.4219 15.2432C26.2657 15.0869 26.0537 14.9991 25.8327 14.9991Z"})]});function v3(e){const t=pP(),n=bh(),[r,i]=Jt(),{room:o}=Rr(),s=Tbe(),a=kbe(),c=b.useRef(!1);b.useEffect(()=>{const g=!!(o!=null&&o.default_voice_on);!c.current&&g&&i(m=>m.metadata.voice===void 0?(n.startAudio(),{...m,metadata:{...m.metadata,voice:"ai"}}
1597):m),c.current=!0},[o==null?void 0:o.default_voice_on,n,i]);const[l,u]=Ch();b.useEffect(()=>{l.settings.textTranslationEnabled||i(g=>({...g,metadata:{...g.metadata,voice:"ai"}}))},[l.settings.textTranslationEnabled,i]),b.useEffect(()=>{r.metadata.voice||u(g=>({...g,settings:{...g.settings,textTranslationEnabled:!0}}))},[r.metadata.voice,u]);const d=Pb();b.useEffect(()=>{function g(y){if(!y.trackName.includes("ai-voice")&&y.trackSid!==(s==null?void 0:s.publication.trackSid))return;const v=y.trackSid===(s==null?void 0:s.publication.trackSid)&&a,w=!a&&r.metadata.voice!==void 0&&y.trackName===`ai-voice-${d}`;y.setSubscribed(v||w)}t==="connected"&&n.remoteParticipants.forEach(y=>{y.audioTrackPublications.forEach(v=>{g(v)})});function m(y){t==="connected"&&g(y)}return n.on("trackPublished",m),()=>{n.off("trackPublished",m)}},[d,r.metadata.voice,t,n,s,a]);const f=f1([{source:Re.Source.Microphone,withPlaceholder:!1}],{onlySubscribed:!0});b.useEffect(()=>{f.forEach(g=>{if(!g.participant.isLocal&&g.publication&&g.publication.audioTrack&&!g.publication.trackName.includes("ai-voice")&&g.participant.metadata){const m=g.publication.audioTrack,y=JSON.parse(g.participant.metadata),v=y.language==="autodetect"?y.detected_language:y.language;r.metadata.voice&&g.publication.trackSid!==(s==null?void 0:s.publication.trackSid)&&v&&d!==v?m.setVolume(0):m.setVolume(1)}})},[f,r.metadata.voice,s,d]);const p=b.useRef(!1);return b.useEffect(()=>{async function g(){await n.startAudio()}!p.current&&r.metadata.voice!==void 0&&(p.current=!0,g())},[r.metadata.voice,n]),h.jsx(qe,{color:a||r.metadata.voice!==void 0?e.teams?"primary":"white":"gray",borderColor:a||r.metadata.voice!==void 0?"primary":"dark-gray",backgroundColor:"black",onClick:()=>{i(g=>(g.metadata.voice===void 0&&n.startAudio(),{...g,metadata:{...g.metadata,voice:g.metadata.voice!==void 0?void 0:"ai"}}))},className:e.className,children:h.jsxs(h.Fragment,{children:[h.jsx(F7t,{enabled:!!a||r.metadata.voice!==void 0,teams:e.teams}),!e.hideText&&(e.text??"Voice translation")]})})}const j7t="_Overlay_19tz6_1",U7t="_OverlayParticipants_19tz6_10",B7t="_OverlayControls_19tz6_25",$7t="_Captions_19tz6_34",H7t="_TrackToggle_19tz6_39",E0={Overlay:j7t,OverlayParticipants:U7t,OverlayControls:B7t,Captions:$7t,TrackToggle:H7t};function z7t(){const e=f1([{source:Re.Source.Camera,withPlaceholder:!0}],{updateOnlyOn:[Ne.ActiveSpeakersChanged],onlySubscribed:!1}),t=Pb();return h.jsxs("div",{className:E0.Overlay,children:[h.jsx("div",{className:E0.OverlayParticipants,children:e.filter(n=>!n.participant.isAgent).slice(0,2).map((n,r)=>h.jsx("div",{children:h.jsx(Yh,{trackRef:n},r)}))}),h.jsx("div",{className:E0.Captions,children:h.jsx(k1,{renderLanguage:t})}),h.jsxs("div",{className:E0.OverlayControls,children:[h.jsx(IO,{className:E0.TrackToggle}),h.jsx(oq,{className:E0.TrackToggle})]})]})}const V7t="_EmojiPopoverContent_f3mrc_1",Qoe={EmojiPopoverContent:V7t},W7t=()=>4+Math.random()*2,q7t=()=>{const t=window.innerWidth/3;return t+Math.random()*t};function hke(){const e=b.useContext(Na),t=b.useCallback((n,r)=>{const i={id:Date.now(),emoji:n,name:r,startX:q7t(),duration:W7t()};e.setEmojis(o=>[...o,i]),setTimeout(()=>{e.setEmojis(o=>o.filter(s=>s.id!==i.id))},i.duration*1e3)},[e]);return{emojis:e.emojis,showFloatingEmoji:t}}const G7t=new TextEncoder;let pke=["❤️","👍","🎉","👏","😂","😮","😢","🤔","👎"];const mke=new Date,K7t=mke.getMonth(),Y7t=mke.getDate();K7t===9&&Y7t===31&&(pke=["🎃","👻","💀","🕸️","🕷️","🧙‍♀️","🧛‍♂️","🍬","🪦"]);function Q7t(){const[e,t]=b.useState(!1),{showFloatingEmoji:n}=hke(),{localParticipant:r}=wh(),i=b.useCallback(o=>{n(o,"You"),r.publishData(G7t.encode(o),{topic:"emoji"}),t(!1)},[r,n]);return h.jsxs(al,{open:e,onOpenChange:t,children:[h.jsx(cl,{className:Qoe.EmojiPopoverTrigger,asChild:!0,children:h.jsx(qe,{color:e?"white":"gray",borderColor:e?"primary":"dark-gray",backgroundColor:"black",children:h.jsx(Cft,{})})}),h.jsx(ll,{children:h.jsx(uu,{className:Qoe.EmojiPopoverContent,side:"top",sideOffset:8,children:pke.map((o,s)=>h.jsx("div",{onClick:()=>i(o),children:o},s))})})]})}const X7t="_LayoutPopoverContent_1te4o_1",J7t="_LayoutPopoverToggle_1te4o_11",Z7t="_ResetPanelLayout_1te4o_22",_k={LayoutPopoverContent:X7t,LayoutPopoverToggle:J7t,ResetPanelLayout:Z7t};function e9t(){const[e,t]=b.useState(!1),[n,r]=Es(),i=b.useCallback(()=>{r(o=>({...o,layout:KB.layout}))},[r]);return h.jsxs(al,{open:e,onOpenChange:t,children:[h.jsx(cl,{asChild:!0,children:h.jsxs(qe,{color:"gray",backgroundColor:"black",borderColor:"dark-gray",children:["Panels ",e?h.jsx(Xc,{}):h.jsx(na,{})]})}),h.jsx(ll,{children:h.jsxs(uu,{className:_k.LayoutPopoverContent,align:"start",sideOffset:8,children:[h.jsx("div",{children:"Panel Display"}),h.jsxs("div",{className:_k.LayoutPopoverToggle,onClick:()=>r(o=>({...o,layout:{...o.layout,panels:{...o.layout.panels,participants:o.layout.panels.captions?!o.layout.panels.participants:!0}}})),children:[h.jsx(kC,{enabled:n.layout.panels.participants}),"Participants"]}),h.jsxs("div",{className:_k.LayoutPopoverToggle,onClick:()=>r(o=>
1597({...o,layout:{...o.layout,panels:{...o.layout.panels,captions:o.layout.panels.participants?!o.layout.panels.captions:!0}}})),children:[h.jsx(kC,{enabled:n.layout.panels.captions}),"Captions"]}),h.jsx("div",{className:_k.ResetPanelLayout,onClick:i,children:"Reset Panel Layout"})]})})]})}function t9t(e){return St({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M3.5 8a5.5 5.5 0 1 1 8.596 4.547 9.005 9.005 0 0 1 5.9 8.18.751.751 0 0 1-1.5.045 7.5 7.5 0 0 0-14.993 0 .75.75 0 0 1-1.499-.044 9.005 9.005 0 0 1 5.9-8.181A5.496 5.496 0 0 1 3.5 8ZM9 4a4 4 0 1 0 0 8 4 4 0 0 0 0-8Zm8.29 4c-.148 0-.292.01-.434.03a.75.75 0 1 1-.212-1.484 4.53 4.53 0 0 1 3.38 8.097 6.69 6.69 0 0 1 3.956 6.107.75.75 0 0 1-1.5 0 5.193 5.193 0 0 0-3.696-4.972l-.534-.16v-1.676l.41-.209A3.03 3.03 0 0 0 17.29 8Z"},child:[]}]})(e)}const n9t="_ShareDialog_yq8bd_1",r9t="_UrlContainer_yq8bd_7",i9t="_LinkIcon_yq8bd_25",xD={ShareDialog:n9t,UrlContainer:r9t,LinkIcon:i9t};function gke(e){const[t,n]=b.useState(!1),r=async()=>{await navigator.clipboard.writeText(e.shareUrl),n(!0),setTimeout(()=>n(!1),2e3)};return h.jsx(xs,{title:"Share",trigger:e.trigger,content:h.jsxs("div",{className:xD.ShareDialog,children:[h.jsx("h3",{children:e.description}),h.jsxs("div",{className:xD.UrlContainer,children:[h.jsx(Fye,{className:xD.LinkIcon}),e.shareUrl]}),h.jsx(qe,{onClick:r,color:"gray",backgroundColor:"black",borderColor:"dark-gray",style:{width:"100%"},children:t?h.jsxs(h.Fragment,{children:[h.jsx(lm,{}),"Copied!"]}):h.jsxs(h.Fragment,{children:[h.jsx(DH,{}),"Copy link"]})})]}),open:e.open,onOpenChange:e.onOpenChange})}function o9t(e){return St({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M13 10c0-.55.45-1 1-1h3c.55 0 1 .45 1 1v1h-1.5v-.5h-2v1L13 10zm3.5 3.5 1.21 1.21c.18-.19.29-.44.29-.71v-1h-1.5v.5zM8.83 6H19v10.17l1.98 1.98c0-.05.02-.1.02-.16V6c0-1.1-.9-2-2-2H6.83l2 2zm10.95 16.61L17.17 20H5a2 2 0 0 1-2-2V6c0-.05.02-.1.02-.15L1.39 4.22 2.8 2.81l18.38 18.38-1.4 1.42zM7.5 13.5h2V13h.67l-2.5-2.5H7.5v3zm7.67 4.5L11 13.83V14c0 .55-.45 1-1 1H7c-.55 0-1-.45-1-1v-4c0-.32.16-.59.4-.78L5 7.83V18h10.17z"},child:[]}]})(e)}function vke(e){return St({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"},child:[]},{tag:"path",attr:{d:"M19 4H5a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h14c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 14H5V6h14v12zM7 15h3c.55 0 1-.45 1-1v-1H9.5v.5h-2v-3h2v.5H11v-1c0-.55-.45-1-1-1H7c-.55 0-1 .45-1 1v4c0 .55.45 1 1 1zm7 0h3c.55 0 1-.45 1-1v-1h-1.5v.5h-2v-3h2v.5H18v-1c0-.55-.45-1-1-1h-3c-.55 0-1 .45-1 1v4c0 .55.45 1 1 1z"},child:[]}]})(e)}const s9t="_Content_1lmi6_1",a9t={Content:s9t};function c9t(e){const{organization:t}=Rr(),{microphoneTrack:n,cameraTrack:r}=wh(),i=b.useMemo(()=>n==null?void 0:n.audioTrack,[n]),o=b.useMemo(()=>r==null?void 0:r.videoTrack,[r]),s=b.useMemo(()=>t!=null&&t.voice_translation_enabled?["text-translation"]:["voice-avatar","text-translation"],[t]),[a,c]=b.useState(!1),l=ks(),[,u]=Es();return h.jsx(RO,{open:a,onOpenChange:c,trigger:h.jsx(qe,{color:a?"white":"gray",borderColor:a?"primary":"dark-gray",backgroundColor:"black",className:e.className,children:h.jsx(Vv,{})}),content:h.jsxs("div",{className:a9t.Content,children:[l?h.jsxs(h.Fragment,{children:[h.jsx($c,{trigger:h.jsx("button",{children:"Audio"}),localAudioTrack:i,initialSelectedSetting:"audio"}),h.jsx($c,{trigger:h.jsx("button",{children:"Video"}),localVideoTrack:o,initialSelectedSetting:"video"}),h.jsx($c,{trigger:h.jsx("button",{children:"Voice avatar"}),initialSelectedSetting:"voice-avatar"}),h.jsx("button",{onClick:()=>u(d=>({...d,layout:{...d.layout,panels:{...d.layout.panels,participants:!d.layout.panels.participants}}})),children:"Captions"})]}):h.jsx($c,{trigger:h.jsx("button",{children:"Settings"}),hiddenCategories:s,localAudioTrack:i,localVideoTrack:o}),!!window.documentPictureInPicture&&h.jsx("button",{onClick:e.toggleOverlay,children:"Overlay"})]}),align:l?"end":"start"})}function l9t(e){const t=pE(),n=b.useMemo(()=>!!t.filter(S=>S.isScreenShareEnabled).length,[t]),{localParticipant:r}=wh();b.useEffect(()=>{n&&r.setScreenShareEnabled(!1)},[n,r]);const[i,o]=Es(),s=Sbe(),[a]=b.useState(!1),c=b.useRef(),{room:l,organization:u}=Rr(),d=b.useCallback(()=>{c.current&&(c.current.close(),o(S=>({...S,overlayOpen:!1})))}
1597,[o]),f=b.useCallback(async()=>{c.current=await window.documentPictureInPicture.requestWindow({width:300,height:600}),[...document.styleSheets].forEach(S=>{var C,E,T;try{const x=[...S.cssRules].map(A=>A.cssText).join(""),O=document.createElement("style");O.textContent=x,(C=c.current)==null||C.document.head.appendChild(O)}catch{const O=document.createElement("link");O.rel="stylesheet",O.type=S.type,O.media=S.media.toString(),O.href=S.href,(E=c.current)==null||E.document.head.appendChild(O)}(T=c.current)==null||T.addEventListener("pagehide",()=>d()),o(x=>({...x,overlayOpen:!0}))})},[d,o]),p=b.useCallback(()=>i.overlayOpen?d():f(),[i.overlayOpen,f,d]);b.useEffect(()=>{if(window.documentPictureInPicture)try{navigator.mediaSession.setActionHandler("enterpictureinpicture",f)}catch(S){console.error(S)}},[f]);const g=f1([{source:Re.Source.ScreenShare,withPlaceholder:!1}],{updateOnlyOn:[Ne.ActiveSpeakersChanged],onlySubscribed:!1}),m=ks(),[y,v]=b.useState(!1),w=WH();if(l)return h.jsxs(h.Fragment,{children:[c.current&&Am.createPortal(h.jsx("div",{style:{display:i.overlayOpen?"block":"none",width:"100%",height:"100%"},children:h.jsx(z7t,{})}),c.current.document.body),h.jsxs("div",{className:Yo.Controls,children:[y&&h.jsx("div",{className:Yo.LanguageSelectContainer,children:h.jsx(dh,{languages:[...u!=null&&u.autodetect_enabled?["autodetect"]:[],...(l==null?void 0:l.languages)||[]]})}),!m&&h.jsxs("div",{children:[h.jsx(e9t,{}),h.jsx(dh,{languages:[...u!=null&&u.autodetect_enabled?["autodetect"]:[],...(l==null?void 0:l.languages)||[]]})]}),h.jsxs("div",{children:[m&&h.jsx(qe,{className:Yo.ControlsButton,color:"gray",borderColor:y?"primary":"dark-gray",backgroundColor:"black",onClick:()=>v(S=>!S),children:h.jsx(Mrt,{style:{minWidth:"20px",minHeight:"20px"}})}),h.jsx(IO,{className:Yo.TrackToggle}),h.jsx(oq,{className:Yo.TrackToggle}),(u==null?void 0:u.voice_translation_enabled)&&h.jsx(v3,{className:Yo.ControlsButton,hideText:!0}),!m&&h.jsx(mP,{className:`${Yo.TrackToggle} ${Yo.ScreenShareToggle}`,source:Re.Source.ScreenShare,captureOptions:{audio:!0,selfBrowserSurface:"include"},showIcon:!1,children:g.length&&g[0].participant.isLocal?h.jsx(GLt,{}):h.jsx(VTe,{})}),(u==null?void 0:u.recording_enabled)&&!m&&h.jsx(v_e,{roomId:l.id,start:!s,trigger:h.jsx(qe,{disabled:a,backgroundColor:"black",color:s?"red":"gray",borderColor:s?"red":"dark-gray",className:Yo.ControlsButton,children:h.jsx(g_e,{style:{minWidth:"24px",minHeight:"24px"}})})}),!m&&h.jsx(qe,{className:Yo.ControlsButton,color:"gray",borderColor:"dark-gray",backgroundColor:"black",onClick:()=>o(S=>({...S,layout:{...S.layout,panels:{...S.layout.panels,captions:!S.layout.panels.captions}}})),children:i.layout.panels.captions?h.jsx(vke,{style:{minWidth:"20px",minHeight:"20px"}}):h.jsx(o9t,{style:{minWidth:"20px",minHeight:"20px"}})}),!m&&h.jsx(Q7t,{}),h.jsx(c9t,{toggleOverlay:p,className:Yo.ControlsButton,room:l}),m&&h.jsx(R1,{link:`/meeting/${l.id}/survey`,onConfirm:w,trigger:h.jsx(qe,{color:"gray",borderColor:"dark-gray",backgroundColor:"black",className:Yo.ControlsButton,children:h.jsx(D7,{style:{color:"var(--langfinity-red)"}})})})]}),!m&&h.jsxs("div",{children:[h.jsxs(qe,{className:Yo.ControlsButton,onClick:()=>o(S=>({...S,layout:{...S.layout,panels:{...S.layout.panels,side:S.layout.panels.side!=="chat"?"chat":void 0}}})),color:i.layout.panels.side==="chat"?"white":"gray",borderColor:i.layout.panels.side==="chat"?"primary":"dark-gray",backgroundColor:"black",style:{position:"relative"},children:[h.jsx(Vft,{strokeWidth:1.2}),e.numUnreadMessages>0&&h.jsx("div",{className:Yo.UnreadMessages,children:e.numUnreadMessages})]}),h.jsx(qe,{className:Yo.ControlsButton,onClick:()=>o(S=>({...S,layout:{...S.layout,panels:{...S.layout.panels,side:S.layout.panels.side!=="participants"?"participants":void 0}}})),color:i.layout.panels.side==="participants"?"white":"gray",borderColor:i.layout.panels.side==="participants"?"primary":"dark-gray",backgroundColor:"black",children:h.jsx(t9t,{strokeWidth:1.2})}),h.jsx(gke,{trigger:h.jsx(qe,{color:"gray",backgroundColor:"black",borderColor:"dark-gray",className:Yo.ControlsButton,children:h.jsx(UE,{style:{minWidth:"20px",minHeight:"20px"}})}),shareUrl:window.location.href,description:"Copy the link to share with participants"}),h.jsx(R1,{link:`/meeting/${l.id}/survey`,onConfirm:w,trigger:h.jsx(qe,{color:"gray",borderColor:"dark-gray",backgroundColor:"black",className:Yo.ControlsButton,children:h.jsx(D7,{style:{color:"var(--langfinity-red)"}})})})]})]})]})}const u9t="_ResizePanelVertical_9x2kx_1",d9t="_ResizeGutter_9x2kx_8",f9t="_Resizing_9x2kx_18",Ck={ResizePanelVertical:u9t,ResizeGutter:d9t,Resizing:f9t},h9t=e=>{const t=b.useRef(null),[n,r]=Es(),i=b.useCallback(g=>{r(m=>({...m,layout:{...m.layout,participantsGridHeightInPercent:g}}))},[r]),[o,s]=b.useState(!1),a=b.useCallback(g=>{var v;const m=(v=t.current)==null?void 0:v.clientHeight,y=-20;if(m){const w=g.clientY-y;if(w>e.minTopHeightInPixels&&m-w>e.minBottomHeightInPixels){const S=w/m*100;i(S)}}},[e.minTopHeightInPixels,e.minBottomHeightInPixels,i]),c=b.useCallback(()=>{s(!1),document.body.style.cursor="auto",window.removeEventListener("mousemove",a)},[a]),l=b.useCallback(g=>{g.stopPropagation(),g.preventDefault(),s(!0),document.body.style.cursor="grabbing",window.addEventListener("mousemove",a),window.addEventListener("mouseup",c)},[c,a]),u=b.useCallback(g=>{var v;const m=(v=t.current)==null?void 0:v.clientHeight,y=-20;if(m){const w=g.touches[0].clientY-y;if(w>e.minTopHeightInPixels&&m-w>e.minBottomHeightInPixels){const S=w/m*100;i(S)}}},[e.minTopHeightInPixels,e.minBottomHeightInPixels,i]),d=b.useCallback(()=>{s(!1),document.body.style.cursor="auto",window.removeEventListener("touchmove",u)},[u]),f=b.useCallback(g=>{g.stopPropagation(),g.preventDefault(),s(!0),document.body.style.cursor="grabbing",window.addEventListener("touchmove",u),window.addEventListener("touchend",d)},[u,d]),p=e.children.filter(g=>!!g);return p.length?p.length<2?h.jsx("div",{ref:t,className:Ck.ResizePanelVertical,children:p[0]}):h.jsxs("div",{ref:t,className:Ck.ResizePanelVertical,children:[h.jsx("div",{style:{height:`max(${n.layout.participantsGridHeightInPercent}%, ${e.minTopHeightInPixels}px)`,display:"flex"},children:p[0]}),h.jsx("div",{className:`${Ck.ResizeGutter} ${o?Ck.Resizing:""}`,onMouseDown:l,onTouchStart:f,children:h.jsx("div",{})}),h.jsx("div",{style:{height:`${100-n.layout.participantsGridHeightInPercent}%`,display:"flex"},children:p[1]})]}):null},p9t="_Participants_1iz1p_1",m9t="_Title_1iz1p_11",g9t="_OneOnOne_1iz1p_26",v9t="_OneOnOneRemote_1iz1p_34",y9t="_OneOnOneLocal_1iz1p_40",b9t="_PaginationArrow_1iz1p_51",w9t="_ParticipantGrid_1iz1p_69",S9t="_ParticipantRows_1iz1p_80",_9t="_GridParticipant_1iz1p_99",C9t="_ScreenShareMode_1iz1p_104",E9t="_ParticipantSidePanel_1iz1p_111",T9t="_VerticalParticipants_1iz1p_127",k9t="_ScreenShare_1iz1p_104",x9t="_LocalScreenShare_1iz1p_172",A9t="_InviteMessage_1iz1p_219",ar={Participants:p9t,Title:m9t,OneOnOne:g9t,OneOnOneRemote:v9t,OneOnOneLocal:y9t,PaginationArrow:b9t,ParticipantGrid:w9t,ParticipantRows:S9t,GridParticipant:_9t,ScreenShareMode:C9t,ParticipantSidePanel:E9t,VerticalParticipants:T9t,ScreenShare:k9t,LocalScreenShare:x9t,InviteMessage:A9t},Ek=e=>{const{organization:t}=Rr();return t?h.jsxs("div",{className:ar.Title,children:[h.jsxs("div",{children:[h.jsxs("h3",{children:["Participants ",`(${e.numParticipants})`]}),h.jsx(y_e,{hide:!0})]}),h.jsx(gm,{organization:t})]}):null};function I9t({participantCameraTracks:e,screenShareTracks:t,pagination:n}){const r=ks(),i=b.useMemo(()=>{const l={1:[1],2:[1,1],3:[2,1],4:[2,2],5:[3,2],6:[3,3],7:[3,3,1],8:[3,3,2],9:[3,3,3]},u=n.tracks,d=l[u.length]??[3,3,3];let f=0;return d.map(p=>{const g=u.slice(f,f+p);return f+=p,g})},[n.tracks]),[o,s]=b.useState(!1),a=b.useMemo(()=>{const l=[...t,...n.tracks].filter(u=>!u.participant.isLocal);if(l.length)return l[0]},[t,n.tracks]),c=b.useMemo(()=>n.tracks.find(l=>l.participant.isLocal),[n.tracks]);return r?h.jsxs("div",{className:ar.Participants,children:[h.jsx(Ek,{numParticipants:e.length}),h.jsxs("div",{className:ar.OneOnOne,children:[a&&h.jsx("div",{className:t?ar.ScreenShare:ar.OneOnOneRemote,children:h.jsx(Yh,{trackRef:a})}),c&&h.jsx("div",{className:a?ar.OneOnOneLocal:ar.OneOnOneRemote,children:h.jsx(Yh,{trackRef:c})}),!a&&h.jsxs("div",{className:ar.InviteMessage,children:[h.jsx("h2",{children:"Your meeting's ready"}),h.jsx("h3",{children:"Waiting for others to join? You can share this link to invite them:"}),h.jsx("a",{href:location.href,children:location.href}),h.jsx(qe,{onClick:()=>{navigator.clipboard.writeText(location.href),s(!0),setTimeout(()=>s(!1),2e3)},children:o?h.jsxs(h.Fragment,{children:[h.jsx(lm,{}),"Copied!"]}):"Copy link"})]})]})]}):t.length>0?h.jsxs("div",{className:ar.Participants,children:[h.jsx(Ek,{numParticipants:e.length}),h.jsxs("div",{className:ar.ScreenShareMode,children:[h.jsxs("div",{className:ar.ParticipantSidePanel,children:[n.currentPage>1&&h.jsx("button",{className:ar.PaginationArrow,onClick:()=>n.prevPage(),children:h.jsx(Xc,{})}),h.jsx("div",{className:ar.VerticalParticipants,style:{"--num-participants":e.length},children:n.tracks.map(l=>h.jsx("div",{children:h.jsx(Yh,{trackRef:l},l.participant.sid)}))}),n.currentPage<n.totalPageCount&&h.jsx("button",{className:ar.PaginationArrow,onClick:()=>n.nextPage(),children:h.jsx(na,{})})]}),h.jsx("div",{className:ar.ScreenShare,children:t[0].participant.isLocal?h.jsxs("div",{className:ar.LocalScreenShare,children:[h.jsx(VTe,{}),h.jsx("span",{children:"You are sharing your screen"}),h.jsxs(mP,{source:Re.Source.ScreenShare,showIcon:!1,className:ar.StopScreenShare,children:[h.jsx(Eh,{}),"Stop screenshare"]})]}):h.jsx(Yh,{trackRef:t[0]})})]})]}):e.length<=2?h.jsxs("div",{className:ar.Participants,children:[h.jsx(Ek,{numParticipants:e.length}),h.jsxs("div",{className:ar.OneOnOne,children:[e.map(l=>e.length===1||!l.participant.isLocal?h.jsx("div",{className:ar.OneOnOneRemote,children:h.jsx(Yh,{trackRef:l})},l.participant.sid):h.jsx("div",{className:ar.OneOnOneLocal,children:h.jsx(Yh,{trackRef:l})},l.participant.sid)),e.length===1&&h.jsxs("div",{className:ar.InviteMessage,children:[h.jsx("h2",{children:"Your meeting's ready"}),h.jsx("h3",{children:"Waiting for others to join? You can share this link to invite them:"}),h.jsx("a",{href:location.href,children:location.href}),h.jsx(qe,{onClick:()=>{navigator.clipboard.writeText(location.href),s(!0),setTimeout(()=>s(!1),2e3)},children:o?h.jsxs(h.Fragment,{children:[h.jsx(lm,{}),"Copied!"]}):"Copy link"})]})]})]}):h.jsxs("div",{className:ar.Participants,children:[h.jsx(Ek,{numParticipants:e.length}),h.jsxs("div",{className:ar.ParticipantGrid,children:[n.currentPage>1&&h.jsx("button",{className:ar.PaginationArrow,onClick:()=>n.prevPage(),children:h.jsx(Irt,{})}),h.jsx("div",{className:ar.ParticipantRows,children:i.map((l,u)=>h.jsx("div",{style:{height:`${100/i.length}%`},children:l.map(d=>h.jsx("div",{className:ar.GridParticipant,children:h.jsx(Yh,{trackRef:d})},d.participant.sid))},u))}),n.currentPage<n.totalPageCount&&h.jsx("button",{className:ar.PaginationArrow,onClick:()=>n.nextPage(),children:h.jsx(Rrt,{})})]})]})}const R9t=e=>{const t=b.useRef(null),[n]=Es(),r=e.children.filter(i=>!!i);return r.length?r.length<2?h.jsx("div",{ref:t,className:"ResizePanelHorizontal",style:{width:"100%"},children:r[0]}):h.jsxs("div",{ref:t,className:"ResizePanelHorizontal",children:[h.jsx("div",{style:{width:`${100-n.layout.rightSidePanelWidthInPercent}%`},children:r[0]}),h.jsx("div",{className:"ResizeGutter"}),h.jsx("div",{style:{width:`${n.layout.rightSidePanelWidthInPercent}%`},children:r[1]})]}):null},P9t="_MeetingAttendees_1y91m_1",O9t="_Header_1y91m_10",N9t="_AttendeeList_1y91m_22",M9t="_EnableVoiceForAll_1y91m_50",T0={MeetingAttendees:P9t,Header:O9t,AttendeeList:N9t,EnableVoiceForAll:M9t};function D9t(){var c;const{room:e,organization:t}=Rr(),n=mme(),r=Cn(),i=Gt.useUpdateRoomParticipant(r),[o]=Jt(),[,s]=Es(),a=b.useMemo(()=>n.reduce((l,u)=>{if(u.isAgent||!u.metadata)return l&&!0;const d=JSON.parse(u.metadata);return l&&!!d.voice},!0),[n]);return!e||!t?null:h.jsxs("div",{className:T0.MeetingAttendees,children:[h.jsxs("div",{className:T0.Header,children:[h.jsx("h3",{children:`Participants (${n.filter(l=>!l.isAgent).length})`}),h.jsx("button",{onClick:()=>s(l=>({...l,layout:{...l.layout,panels:{...l.layout.panels,side:void 0}}})),children:h.jsx(Eh,{})})]}),h.jsx("div",{style:{display:"flex",overflow:"auto"},children:h.jsx(QP,{style:{width:"100%",height:"100%"},children:h.jsx("div",{className:T0.AttendeeList,children:n.map((l,u)=>{var p,g;const d=l.metadata;if(!d)return;const f=JSON.parse(d);return h.jsxs("div",{className:T0.Attendee,children:[h.jsxs("div",{children:[f.name,l.identity===o.livekitId?" (You)":void 0,e.host_id===((p=o.auth)==null?void 0:p.id)?h.jsx(rO,{size:"x-small",color:"gray",backgroundColor:"black",borderColor:"dark-gray",languages:[...t.autodetect_enabled?["autodetect"]:[],...e.languages],selectedLanguage:f.language,onChange:m=>{i({room_id:e.id,participant_identity:l.identity,language:m})}}):h.jsx("div",{children:Kr(f.language)})]}),e.host_id===((g=o.auth)==null?void 0:g.id)?h.jsx("button",{onClick:()=>{i({room_id:e.id,participant_identity:l.identity,muted:!0}
1597)},children:l.isMicrophoneEnabled?h.jsx(IR,{}):h.jsx(AR,{})}):h.jsx("div",{children:l.isMicrophoneEnabled?h.jsx(IR,{}):h.jsx(AR,{})})]},u)})})})}),t.voice_translation_enabled&&(e.host_id===((c=o.auth)==null?void 0:c.id)?h.jsxs("button",{className:T0.EnableVoiceForAll,onClick:()=>{n.forEach(l=>{i({room_id:e.id,participant_identity:l.identity,ai_voice_enabled:!a})})},children:[h.jsx(kC,{enabled:a}),"Enable voice translation for all"]}):h.jsxs("div",{className:T0.EnableVoiceForAll,children:[h.jsx(kC,{noPointer:!0,enabled:a}),"Voice translation enabled for all"]}))]})}var L9t=Object.create,yke=Object.defineProperty,F9t=Object.getOwnPropertyDescriptor,j9t=Object.getOwnPropertyNames,U9t=Object.getPrototypeOf,B9t=Object.prototype.hasOwnProperty,$9t=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),H9t=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of j9t(t))!B9t.call(e,i)&&i!==n&&yke(e,i,{get:()=>t[i],enumerable:!(r=F9t(t,i))||r.enumerable});return e},z9t=(e,t,n)=>(n=e!=null?L9t(U9t(e)):{},H9t(!e||!e.__esModule?yke(n,"default",{value:e,enumerable:!0}):n,e)),V9t=$9t((e,t)=>{(function(n,r){typeof e=="object"&&typeof t<"u"?r(e):typeof define=="function"&&define.amd?define(["exports"],r):(n=typeof globalThis<"u"?globalThis:n||self,r(n.fastUniqueNumbers={}))})(e,function(n){var r=function(p){return function(g){var m=p(g);return g.add(m),m}},i=function(p){return function(g,m){return p.set(g,m),m}},o=Number.MAX_SAFE_INTEGER===void 0?9007199254740991:Number.MAX_SAFE_INTEGER,s=536870912,a=s*2,c=function(p,g){return function(m){var y=g.get(m),v=y===void 0?m.size:y<a?y+1:0;if(!m.has(v))return p(m,v);if(m.size<s){for(;m.has(v);)v=Math.floor(Math.random()*a);return p(m,v)}if(m.size>o)throw new Error("Congratulations, you created a collection of unique numbers which uses all available integers!");for(;m.has(v);)v=Math.floor(Math.random()*o);return p(m,v)}},l=new WeakMap,u=i(l),d=c(u,l),f=r(d);n.addUniqueNumber=f,n.generateUniqueNumber=d})});z9t(V9t());var Mf=(typeof window>"u"?"undefined":typeof window)=="object",Gl={setTimeout:Mf?setTimeout.bind(window):setTimeout,clearTimeout:Mf?clearTimeout.bind(window):clearTimeout,setInterval:Mf?setInterval.bind(window):setInterval,clearInterval:Mf?clearInterval.bind(window):clearInterval};function W9t(e){Gl.setTimeout=e.setTimeout,Gl.clearTimeout=e.clearTimeout,Gl.setInterval=e.setInterval,Gl.clearInterval=e.clearInterval}var k0={},q9t=class{constructor(e){ot(this,"name");ot(this,"closed",!1);ot(this,"mc",new MessageChannel);this.name=e,k0[e]=k0[e]||[],k0[e].push(this),this.mc.port1.start(),this.mc.port2.start(),this.onStorage=this.onStorage.bind(this),window.addEventListener("storage",this.onStorage)}onStorage(e){if(e.storageArea!==window.localStorage||e.key.substring(0,this.name.length)!==this.name||e.newValue===null)return;let t=JSON.parse(e.newValue);this.mc.port2.postMessage(t)}postMessage(e){if(this.closed)throw new Error("InvalidStateError");let t=JSON.stringify(e),n=`${this.name}:${String(Date.now())}${String(Math.random())}`;window.localStorage.setItem(n,t),Gl.setTimeout(()=>{window.localStorage.removeItem(n)},500),k0[this.name].forEach(r=>{r!==this&&r.mc.port2.postMessage(JSON.parse(t))})}close(){if(this.closed)return;this.closed=!0,this.mc.port1.close(),this.mc.port2.close(),window.removeEventListener("storage",this.onStorage);let e=k0[this.name].indexOf(this);k0[this.name].splice(e,1)}get onmessage(){return this.mc.port1.onmessage}set onmessage(e){this.mc.port1.onmessage=e}get onmessageerror(){return this.mc.port1.onmessageerror}set onmessageerror(e){this.mc.port1.onmessageerror=e}addEventListener(e,t){return this.mc.port1.addEventListener(e,t)}removeEventListener(e,t){return this.mc.port1.removeEventListener(e,t)}dispatchEvent(e){return this.mc.port1.dispatchEvent(e)}},G9t=typeof window>"u"?void 0:typeof window.BroadcastChannel=="function"?window.BroadcastChannel:q9t;function K9t(e=0){return new Promise(t=>Gl.setTimeout(t,e))}function bke(){return Math.random().toString(36).substring(2)}var Y9t=class{constructor(e,t){ot(this,"options");ot(this,"channel");ot(this,"token",bke());ot(this,"isLeader",!1);ot(this,"isDead",!1);ot(this,"isApplying",!1);ot(this,"reApply",!1);ot(this,"intervals",[]);ot(this,"listeners",[]);ot(this,"deferred");this.channel=e,this.options=t,this.apply=this.apply.bind(this),this.awaitLeadership=this.awaitLeadership.bind(this),this.sendAction=this.sendAction.bind(this)}async apply(){if(this.isLeader||this.isDead)return!1;if(this.isApplying)return this.reApply=!0,!1;this.isApplying=!0;let e=!1,t=n=>{let{token:r,action:i}=n.data;r!==this.token&&(i===0&&r>this.token&&(e=!0),i===1&&(e=!0))};this.channel.addEventListener("message",t);try{return this.sendAction(0),await K9t(this.options.responseTime),this.channel.removeEventListener("message",t),this.isApplying=!1,e?this.reApply?this.apply():!1:(this.assumeLead(),!0)}catch{return!1}}awaitLeadership(){if(this.isLeader)return Promise.resolve();let e=!1,t=null;return new Promise(n=>{let r=()=>{if(e)return;e=!0;try{Gl.clearInterval(t)}catch{}let o=this.intervals.indexOf(t);o>
1597=0&&this.intervals.splice(o,1),this.channel.removeEventListener("message",i),n()};t=Gl.setInterval(()=>{this.apply().then(()=>{this.isLeader&&r()})},this.options.fallbackInterval),this.intervals.push(t);let i=o=>{let{action:s}=o.data;s===2&&this.apply().then(()=>{this.isLeader&&r()})};this.channel.addEventListener("message",i)})}sendAction(e){this.channel.postMessage({action:e,token:this.token})}assumeLead(){this.isLeader=!0;let e=t=>{let{action:n}=t.data;n===0&&this.sendAction(1)};return this.channel.addEventListener("message",e),this.listeners.push(e),this.sendAction(1)}waitForLeadership(){return this.deferred?this.deferred:(this.deferred=this.awaitLeadership(),this.deferred)}close(){if(!this.isDead){this.isDead=!0,this.isLeader=!1,this.sendAction(2);try{this.listeners.forEach(e=>this.channel.removeEventListener("message",e)),this.intervals.forEach(e=>Gl.clearInterval(e))}catch{}}}},Q9t=class{constructor(e){ot(this,"channel");ot(this,"options");ot(this,"elector");ot(this,"token",bke());ot(this,"registry",new Map);ot(this,"allIdle",!1);ot(this,"isLastActive",!1);let{channelName:t}=e;if(this.options=e,this.channel=new G9t(t),this.registry.set(this.token,1),e.leaderElection){let n={fallbackInterval:2e3,responseTime:100};this.elector=new Y9t(this.channel,n),this.elector.waitForLeadership()}this.channel.addEventListener("message",n=>{let{action:r,token:i,data:o}=n.data;switch(r){case 3:this.registry.set(i,2);break;case 4:this.registry.delete(i);break;case 5:this.idle(i);break;case 6:this.active(i);break;case 7:this.prompt(i);break;case 8:this.start(i);break;case 9:this.reset(i);break;case 10:this.activate(i);break;case 11:this.pause(i);break;case 12:this.resume(i);break;case 13:this.options.onMessage(o);break}}),this.send(3)}get isLeader(){if(!this.elector)throw new Error('❌ Leader election is not enabled. To Enable it set the "leaderElection" property to true.');return this.elector.isLeader}prompt(e=this.token){this.registry.set(e,0);let t=[...this.registry.values()].every(n=>n===0);e===this.token&&this.send(7),t&&this.options.onPrompt()}idle(e=this.token){this.registry.set(e,2);let t=[...this.registry.values()].every(n=>n===2);e===this.token&&this.send(5),!this.allIdle&&t&&(this.allIdle=!0,this.options.onIdle())}active(e=this.token){this.allIdle=!1,this.registry.set(e,1);let t=[...this.registry.values()].some(n=>n===1);e===this.token&&this.send(6),t&&this.options.onActive(),this.isLastActive=e===this.token}start(e=this.token){this.allIdle=!1,this.registry.set(e,1),e===this.token?this.send(8):this.options.start(!0),this.isLastActive=e===this.token}reset(e=this.token){this.allIdle=!1,this.registry.set(e,1),e===this.token?this.send(9):this.options.reset(!0),this.isLastActive=e===this.token}activate(e=this.token){this.allIdle=!1,this.registry.set(e,1),e===this.token?this.send(10):this.options.activate(!0),this.isLastActive=e===this.token}pause(e=this.token){e===this.token?this.send(11):this.options.pause(!0)}resume(e=this.token){e===this.token?this.send(12):this.options.resume(!0)}message(e){try{this.channel.postMessage({action:13,token:this.token,data:e})}catch{}}send(e){try{this.channel.postMessage({action:e,token:this.token})}catch{}}close(){this.options.leaderElection&&this.elector.close(),this.send(4),this.channel.close()}},X9t=Mf?document:null,J9t=["mousemove","keydown","wheel","DOMMouseScroll","mousewheel","mousedown","touchstart","touchmove","MSPointerDown","MSPointerMove","visibilitychange","focus"];function Z9t(e,t){let n;function r(...i){n&&clearTimeout(n),n=setTimeout(()=>{e(...i),n=null},t)}return r.cancel=function(){clearTimeout(n)},r}function AD(e,t){let n=0;return function(...r){let i=new Date().getTime();if(!(i-n<t))return n=i,e(...r)}}var Ki=()=>Date.now(),x0=2147483647;function eUt({timeout:e=1e3*60*20,promptTimeout:t=0,promptBeforeIdle:n=0,element:r=X9t,events:i=J9t,timers:o=void 0,immediateEvents:s=[],onPresenceChange:a=()=>{},onPrompt:c=()=>{},onIdle:l=()=>{},onActive:u=()=>{},onAction:d=()=>{},onMessage:f=()=>{},debounce:p=0,throttle:g=0,eventsThrottle:m=200,startOnMount:y=!0,startManually:v=!1,stopOnIdle:w=!1,crossTab:S=!1,name:C="idle-timer",syncTimers:E=0,leaderElection:T=!1,disabled:x=!1}={}){let O=b.useRef(Ki()),A=b.useRef(Ki()),L=b.useRef(null),U=b.useRef(null),I=b.useRef(0),F=b.useRef(0),P=b.useRef(0),W=b.useRef(0),ee=b.useRef(!1),Y=b.useRef(!1),X=b.useRef(!1),Z=b.useRef(!0),G=b.useRef(!1),Q=b.useRef(null),q=b.useRef(null),z=b.useRef(e),ue=b.useRef(0);b.useEffect(()=>{if(t&&console.warn("⚠️ IdleTimer -- The `promptTimeout` property has been deprecated 
1597in favor of `promptBeforeIdle`. It will be removed in the next major release."),n&&t)throw new Error("❌ Both promptTimeout and promptBeforeIdle can not be set. The promptTimeout property will be deprecated in a future version.");if(e>=x0)throw new Error(`❌ The value for the timeout property must fit in a 32 bit signed integer, ${x0}.`);if(t>=x0)throw new Error(`❌ The value for the promptTimeout property must fit in a 32 bit signed integer, ${x0}.`);if(n>=x0)throw new Error(`❌ The value for the promptBeforeIdle property must fit in a 32 bit signed integer, ${x0}.`);if(n>=e)throw new Error(`❌ The value for the promptBeforeIdle property must be less than the timeout property, ${e}.`);if(n?(z.current=e-n,ue.current=n):(z.current=e,ue.current=t),!Z.current){if(v||x)return;ee.current&&(Se.current(null,Or),q.current&&q.current.active()),He()}},[e,t,n,v,x]);let ge=b.useRef(w);b.useEffect(()=>{ge.current=w},[w]);let ae=b.useRef(s),j=b.useRef(r),B=b.useRef([...new Set([...i,...s]).values()]),re=b.useRef(x);b.useEffect(()=>{re.current=x,!Z.current&&(x?Lt():v||He())},[x]);let oe=b.useRef(a);b.useEffect(()=>{oe.current=a},[a]);let ne=b.useRef(c);b.useEffect(()=>{ne.current=c},[c]);let J=b.useRef(l);b.useEffect(()=>{J.current=l},[l]);let Se=b.useRef(u);b.useEffect(()=>{Se.current=u},[u]);let H=b.useRef(d);b.useEffect(()=>{H.current=d},[d]);let be=b.useRef(f);b.useEffect(()=>{be.current=f},[f]);let V=b.useMemo(()=>{let ie=(Xr,ca)=>H.current(Xr,ca);return p>0?Z9t(ie,p):g>0?AD(ie,g):ie},[g,p]),M=b.useRef();b.useEffect(()=>{S&&E&&(M.current=AD(()=>{q.current.active()},E))},[S,E]);let N=()=>{Q.current!==null&&(Gl.clearTimeout(Q.current),Q.current=null)},$=(ie,Xr=!0)=>{N(),Q.current=Gl.setTimeout(we,ie||z.current),Xr&&(U.current=Ki())},ce=ie=>{!Y.current&&!ee.current&&(ne.current(ie,Or),oe.current({type:"active",prompted:!0},Or)),W.current=0,P.current=Ki(),Y.current=!0,$(ue.current,!1)},pe=()=>{N(),ee.current||(J.current(null,Or),oe.current({type:"idle"},Or)),ee.current=!0,L.current=Ki(),ge.current?ke():Y.current&&(P.current=0,Y.current=!1)},fe=ie=>{N(),(ee.current||Y.current)&&(Se.current(ie,Or),oe.current({type:"active",prompted:!1},Or)),Y.current=!1,P.current=0,ee.current=!1,I.current+=Ki()-L.current,F.current+=Ki()-L.current,ve(),$()},we=ie=>{if(!ee.current){V.cancel&&V.cancel();let Xr=Ki()-U.current;if(!(z.current+ue.current<Xr)&&ue.current>0&&!Y.current){q.current?q.current.prompt():ce(ie);return}q.current?q.current.idle():pe();return}q.current?q.current.active():fe(ie)},Ee=ie=>{if(!y&&!U.current&&(U.current=Ki(),Se.current(null,Or)),V(ie,Or),Y.current)return;if(N(),!ee.current&&ae.current.includes(ie.type)){we(ie);return}let Xr=Ki()-U.current;if(ee.current&&!w||!ee.current&&Xr>=z.current){we(ie);return}X.current=!1,W.current=0,P.current=0,$(),S&&E&&M.current()},xe=b.useRef(Ee);b.useEffect(()=>{let ie=G.current;ie&&ke(),m>0?xe.current=AD(Ee,m):xe.current=Ee,ie&&ve()},[m,g,p,H,S,E]);let ve=()=>{Mf&&j.current&&(G.current||(B.current.forEach(ie=>{j.current.addEventListener(ie,xe.current,{capture:!0,passive:!0})}),G.current=!0))},ke=(ie=!1)=>{Mf&&j.current&&(G.current||ie)&&(B.current.forEach(Xr=>{j.current.removeEventListener(Xr,xe.current,{capture:!0})}),G.current=!1)},He=b.useCallback(ie=>re.current?!1:(N(),ve(),ee.current=!1,Y.current=!1,X.current=!1,W.current=0,P.current=0,q.current&&!ie&&q.current.start(),$(),!0),[Q,ee,re,z,q]),Ge=b.useCallback(ie=>re.current?!1:(N(),ve(),A.current=Ki(),I.current+=Ki()-L.current,F.current+=Ki()-L.current,I.current=0,ee.current=!1,Y.current=!1,X.current=!1,W.current=0,P.current=0,q.current&&!ie&&q.current.reset(),v||$(),!0),[Q,ee,z,v,re,q]),vt=b.useCallback(ie=>re.current?!1:(N(),ve(),(ee.current||Y.current)&&fe(),ee.current=!1,Y.current=!1,X.current=!1,W.current=0,P.current=0,A.current=Ki(),q.current&&!ie&&q.current.activate(),$(),!0),[Q,ee,Y,re,z,q]),Lt=b.useCallback((ie=!1)=>re.current||X.current?!1:(W.current=wn(),X.current=!0,ke(),N(),q.current&&!ie&&q.current.pause(),!0),[Q,re,q]),$t=b.useCallback((ie=!1)=>re.current||!X.current?!1:(X.current=!1,Y.current||ve(),ee.current||$(W.current),P.current&&(P.current=Ki()),q.current&&!ie&&q.current.resume(),!0),[Q,z,re,W,q]),Yt=b.useCallback((ie,Xr)=>(q.current?(Xr&&be.current(ie,Or),q.current.message(ie)):Xr&&be.current(ie,Or),!0),[f]),xo=b.useCallback(()=>ee.current,[ee]),ir=b.useCallback(()=>Y.current,[Y]),sn=b.useCallback(()=>q.current?q.current.isLeader:null,[q]),ai=b.useCallback(()=>q.current?q.current.isLastActive:null,[q]),_t=b.useCallback(()=>q.current?q.current.token:null,[q]),wn=b.useCallback(()=>
1597{if(X.current)return W.current;let ie=W.current?W.current:ue.current+z.current,Xr=U.current?Ki()-U.current:0,ca=Math.floor(ie-Xr);return ca<0?0:Math.abs(ca)},[z,ue,Y,W,U]),Je=b.useCallback(()=>Math.round(Ki()-A.current),[A]),Un=b.useCallback(()=>Math.round(Ki()-O.current),[O]),Oi=b.useCallback(()=>L.current?new Date(L.current):null,[L]),ur=b.useCallback(()=>U.current?new Date(U.current):null,[U]),Ni=b.useCallback(()=>ee.current?Math.round(Ki()-L.current+I.current):Math.round(I.current),[L,I]),Ua=b.useCallback(()=>ee.current?Math.round(Ki()-L.current+F.current):Math.round(F.current),[L,F]),Go=b.useCallback(()=>{let ie=Math.round(Je()-Ni());return ie>=0?ie:0},[L,I]),bt=b.useCallback(()=>{let ie=Math.round(Un()-Ua());return ie>=0?ie:0},[L,I]);b.useEffect(()=>{if(p>0&&g>0)throw new Error("❌ onAction can either be throttled or debounced, not both.");o&&W9t(o);let ie=()=>{q.current&&q.current.close(),V.cancel&&V.cancel(),N(),ke(!0)};return Mf&&window.addEventListener("beforeunload",ie),()=>{Mf&&window.removeEventListener("beforeunload",ie),q.current&&q.current.close(),V.cancel&&V.cancel(),N(),ke(!0)}},[]),b.useEffect(()=>{q.current&&q.current.close(),S?q.current=new Q9t({channelName:C,leaderElection:T,onPrompt:()=>{ce()},onIdle:()=>{pe()},onActive:()=>{fe()},onMessage:ie=>{be.current(ie,Or)},start:He,reset:Ge,activate:vt,pause:Lt,resume:$t}):q.current=null},[S,C,T,ne,J,Se,be,He,Ge,Lt,$t]),b.useEffect(()=>{Z.current||(N(),ke(!0)),!(v||x)&&(y?He():ve())},[v,y,x,Z]),b.useEffect(()=>{if(!Z.current){let ie=[...new Set([...i,...s]).values()];if(ke(),B.current=ie,j.current=r,ae.current=s,v||x)return;y?He():ve()}},[r,JSON.stringify(i),JSON.stringify(s),Z,x,v,y]),b.useEffect(()=>{Z.current&&(Z.current=!1)},[Z]);let Or={message:Yt,start:He,reset:Ge,activate:vt,pause:Lt,resume:$t,isIdle:xo,isPrompted:ir,isLeader:sn,isLastActiveTab:ai,getTabId:_t,getRemainingTime:wn,getElapsedTime:Je,getTotalElapsedTime:Un,getLastIdleTime:Oi,getLastActiveTime:ur,getIdleTime:Ni,getTotalIdleTime:Ua,getActiveTime:Go,getTotalActiveTime:bt,setOnPresenceChange:ie=>{a=ie,oe.current=ie},setOnPrompt:ie=>{c=ie,ne.current=ie},setOnIdle:ie=>{l=ie,J.current=ie},setOnActive:ie=>{u=ie,Se.current=ie},setOnAction:ie=>{d=ie,H.current=ie},setOnMessage:ie=>{f=ie,be.current=ie}};return Or}var tUt=b.createContext(null);tUt.Consumer;const nUt="_FloatingEmojis_17hra_1",rUt="_FloatingEmojis_Item_17hra_8",iUt="_FloatingEmojis_Emoji_17hra_17",oUt="_FloatingEmojis_Name_17hra_22",gA={FloatingEmojis:nUt,FloatingEmojis_Item:rUt,FloatingEmojis_Emoji:iUt,FloatingEmojis_Name:oUt},sUt=new TextDecoder;function aUt({emoji:e,name:t,startX:n,duration:r}){return h.jsxs("div",{className:gA.FloatingEmojis_Item,style:{"--start-x":`${n}px`,"--duration":`${r}s`},children:[h.jsx("div",{className:gA.FloatingEmojis_Emoji,children:e}),h.jsx("div",{className:gA.FloatingEmojis_Name,children:t})]})}function cUt(){const{emojis:e,showFloatingEmoji:t}=hke();return hE("emoji",n=>{if(!n.from||!n.from.metadata)return;const r=sUt.decode(n.payload),o=JSON.parse(n.from.metadata).name??"Guest";t(r,o)}),h.jsx("div",{className:gA.FloatingEmojis,children:e.map(n=>h.jsx(aUt,{...n},n.id))})}function lUt(){ME(),jE(),MH(),dz();const{cameraTrack:e}=wh();HSe(e==null?void 0:e.videoTrack);const t=f1([{source:Re.Source.Camera,withPlaceholder:!0}],{updateOnlyOn:[Ne.ActiveSpeakersChanged],onlySubscribed:!1}),n=b.useMemo(()=>t.filter(O=>!O.participant.isAgent),[t]),r=f1([{source:Re.Source.ScreenShare,withPlaceholder:!1}],{updateOnlyOn:[Ne.ActiveSpeakersChanged],onlySubscribed:!1}),i=ks(),o=tUe(i?2:r.length>0?3:9,n),[s,a]=Jt(),c=bh(),l=pP(),[u,d]=Es();_be({inProgressToast:h.jsx("div",{className:"Toast",children:h.jsx("div",{children:"Recording in progress"})}),stopToast:h.jsx("div",{className:"Toast",children:h.jsx("div",{children:"Recording stopped"})})}),lrt(h.jsx("div",{className:"Toast ErrorToast",children:h.jsx("div",{children:"Your connection is unstable. Hang tight, we're reconnecting you..."})})),b.useEffect(()=>{function O(L,U){var I;L.trackName.includes("ai-voice")||(L.kind==="audio"&&L.setSubscribed(!0),L.kind==="video"&&L.setSubscribed(!!o.tracks.find(F=>F.participant.sid===U.sid)||((I=L.track)==null?void 0:I.source)===Re.Source.ScreenShare))}
1597l==="connected"&&c.remoteParticipants.forEach(L=>{L.trackPublications.forEach(U=>{O(U,L)})});function A(L,U){l==="connected"&&O(L,U)}return c.on("trackPublished",A),()=>{c.off("trackPublished",A)}},[c,l,o]);const f=pE(),p=b.useMemo(()=>f.filter(O=>!O.isAgent).length+1,[f]);b.useEffect(()=>{a(O=>({...O,metadata:{...O.metadata,participantType:p>=2?"speaker":"viewer"}}))},[p,a]);const g=Cn(),m=Gt.useUpdateSessionRequest(g),y=b.useCallback(()=>{m({client_id:s.livekitId})},[m,s.livekitId]),v=b.useRef(),w=b.useCallback(()=>{p<=1&&(v.current||(v.current=mt(h.jsx("div",{className:"Toast",children:h.jsxs("div",{children:["Are you still there?",h.jsx("button",{onClick:()=>{mt.dismiss(v.current)},children:"Yes"})]})}),{autoClose:!1,onClose:()=>{v.current=void 0}})))},[p]);b.useEffect(()=>()=>{mt.dismiss(v.current)},[]),eUt({onAction:y,onIdle:w,timeout:1800*1e3,throttle:30*1e3});const S=Pb(),[C,E]=b.useState(0),[T]=uz(),x=b.useRef(0);return b.useEffect(()=>{const O=Math.max(T.length-x.current,0);O>0&&u.layout.panels.side!=="chat"&&E(A=>A+O),x.current=T.length},[T.length,u.layout.panels.side]),b.useEffect(()=>{u.layout.panels.side==="chat"&&E(0)},[u.layout.panels.side,T.length]),h.jsxs("div",{className:Sk.Meeting,children:[h.jsx(k$,{}),h.jsxs(R9t,{children:[h.jsx("div",{className:Sk.MeetingPanel,children:h.jsxs(h9t,{minTopHeightInPixels:i?200:400,minBottomHeightInPixels:50,children:[u.layout.panels.participants&&h.jsx(I9t,{participantCameraTracks:n,screenShareTracks:r,pagination:o}),u.layout.panels.captions&&h.jsx("div",{className:Sk.Captions,style:u.layout.panels.participants?{marginTop:"-24px",paddingBottom:"0px"}:void 0,children:h.jsx(k1,{renderLanguage:S,maxWidth:"75%"})})]})}),u.layout.panels.side==="chat"&&h.jsx(bz,{canAskQuestions:!0,mode:"chat",className:Sk.Chat,open:u.layout.panels.side==="chat",onOpenChange:O=>{d(A=>({...A,layout:{...A.layout,panels:{...A.layout.panels,side:O?"chat":void 0}}}))}}),u.layout.panels.side==="participants"&&h.jsx(D9t,{})]}),h.jsx(cUt,{}),h.jsx(l9t,{numUnreadMessages:C})]})}function uUt(e){KP();const t=Cn(),{token:n,error:r}=Mb(t),i=WH();b.useEffect(()=>{var a;r&&((a=r.response)==null?void 0:a.data.message)==="IDLE"&&(i(),mt(h.jsx("div",{className:"Toast",children:"You were removed from the meeting after being idle for too long."}),{autoClose:!1}))},[i,r]);const[o]=fV(),[s]=hV();return n?h.jsx(vb,{audio:e.choices.audio?{deviceId:o,echoCancellation:!0}:!1,video:e.choices.video?{deviceId:s}:!1,connect:!0,token:n,connectOptions:{autoSubscribe:!1}
1597,serverUrl:"wss://byrdhouse-prod-gy1t323x.livekit.cloud",children:h.jsx(lUt,{})}):h.jsx(Sn,{})}function dUt(){const[,e]=Jt();b.useEffect(()=>{e(a=>({...a,metadata:{...a.metadata,participantType:"viewer"}}))},[e]);const[t,n]=b.useState({audio:!0,video:!0}),{room:r,loading:i}=Rr(),[o]=Es(),s=WH();return b.useEffect(()=>()=>{s()},[s]),!r||i?h.jsx(Sn,{}):o.joined?h.jsx(uUt,{choices:t}):h.jsx(R7t,{choices:t,onJoin:n})}const fUt="_ConfigureTab_p3k5p_1",hUt="_TabConfigHeader_p3k5p_15",pUt="_CreateAccount_p3k5p_32",mUt="_TabConfigFooter_p3k5p_39",gUt="_Support_p3k5p_49",vUt="_CreateOrEdit_p3k5p_62",eg={ConfigureTab:fUt,TabConfigHeader:hUt,CreateAccount:pUt,TabConfigFooter:mUt,Support:gUt,CreateOrEdit:vUt},ID=typeof window>"u"?global:window,RD="@griffel/";function yUt(e,t){return ID[Symbol.for(RD+e)]||(ID[Symbol.for(RD+e)]=t),ID[Symbol.for(RD+e)]}const sU=yUt("DEFINITION_LOOKUP_TABLE",{}),y_="data-make-styles-bucket",bUt="data-priority",aU=7,sq="___",wUt=sq.length+aU,SUt=0,_Ut=1;function CUt(e){for(var t=0,n,r=0,i=e.length;i>=4;++r,i-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(i){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}function EUt(e){const t=e.length;if(t===aU)return e;for(let n=t;n<aU;n++)e+="0";return e}function wke(e,t,n=[]){return sq+EUt(CUt(e+t))}function Ske(e,t){let n="",r="";for(const i in e){const o=e[i];if(o===0){r+=i+" ";continue}const s=Array.isArray(o),a=t==="rtl"?(s?o[1]:o)+" ":(s?o[0]:o)+" ";n+=a,r+=a}return[n.slice(0,-1),r.slice(0,-1)]}function Xoe(e,t){const n={};for(const r in e){const[i,o]=Ske(e[r],t);if(o===""){n[r]="";continue}const s=wke(o,t),a=s+(i===""?"":" "+i);sU[s]=[e[r],t],n[r]=a}return n}const Joe={};function TUt(){let e=null,t="",n="";const r=new Array(arguments.length);for(let d=0;d<arguments.length;d++){const f=arguments[d];if(typeof f=="string"&&f!==""){const p=f.indexOf(sq);if(p===-1)t+=f+" ";else{const g=f.substr(p,wUt);p>0&&(t+=f.slice(0,p)),n+=g,r[d]=g}}}if(n==="")return t.slice(0,-1);const i=Joe[n];if(i!==void 0)return t+i;const o=[];for(let d=0;d<arguments.length;d++){const f=r[d];if(f){const p=sU[f];p&&(o.push(p[SUt]),e=p[_Ut])}}const s=Object.assign.apply(Object,[{}].concat(o)),[a,c]=Ske(s,e),l=wke(c,e,r),u=l+" "+a;return Joe[n]=u,sU[l]=[s,e],t+u}function kUt(e){return Array.isArray(e)?e:[e]}function xUt(e,t,n,r){const i=[];if(r[y_]=t,r[bUt]=String(n),e)for(const s in r)e.setAttribute(s,r[s]);function o(s){return e!=null&&e.sheet?e.sheet.insertRule(s,e.sheet.cssRules.length):i.push(s)}return{elementAttributes:r,insertRule:o,element:e,bucketName:t,cssRules(){return e!=null&&e.sheet?Array.from(e.sheet.cssRules).map(s=>s.cssText):i}}}const AUt=["r","d","l","v","w","f","i","h","a","s","k","t","m","c"],Zoe=AUt.reduce((e,t,n)=>(e[t]=n,e),{});function IUt(e,t,n){return(e==="m"?e+t:e)+n}function RUt(e,t,n,r,i={}){var o,s;const a=e==="m",c=(o=i.m)!==null&&o!==void 0?o:"0",l=(s=i.p)!==null&&s!==void 0?s:0,u=IUt(e,c,l);if(!r.stylesheets[u]){const d=t&&t.createElement("style"),f=xUt(d,e,l,Object.assign({},r.styleElementAttributes,a&&{media:c}));r.stylesheets[u]=f,t&&d&&t.head.insertBefore(d,OUt(t,n,e,r,i))}return r.stylesheets[u]}function PUt(e,t,n){var r,i;const o=t+((r=n.m)!==null&&r!==void 0?r:""),s=e.getAttribute(y_)+((i=e.media)!==null&&i!==void 0?i:"");return o===s}function OUt(e,t,n,r,i={}){var o,s;const a=Zoe[n],c=(o=i.m)!==null&&o!==void 0?o:"",l=(s=i.p)!==null&&s!==void 0?s:0;let u=m=>a-Zoe[m.getAttribute(y_)],d=e.head.querySelectorAll(`[${y_}]`);if(n==="m"){const m=e.head.querySelectorAll(`[${y_}="${n}"]`);m.length&&(d=m,u=y=>r.compareMediaQueries(c,y.media))}const f=m=>PUt(m,n,i)?l-Number(m.getAttribute("data-priority")):u(m),p=d.length;let g=p-1;for(;g>=0;){const m=d.item(g);if(f(m)>0)return m.nextSibling;g--}return p>0?d.item(0):t?t.nextSibling:null}function ese(e,t){try{e.insertRule(t)}catch{}}let NUt=0;const MUt=(e,t)=>
1597e<t?-1:e>t?1:0;function DUt(e=typeof document>"u"?void 0:document,t={}){const{classNameHashSalt:n,unstable_filterCSSRule:r,insertionPoint:i,styleElementAttributes:o,compareMediaQueries:s=MUt}=t,a={classNameHashSalt:n,insertionCache:{},stylesheets:{},styleElementAttributes:Object.freeze(o),compareMediaQueries:s,id:`d${NUt++}`,insertCSSRules(c){for(const l in c){const u=c[l];for(let d=0,f=u.length;d<f;d++){const[p,g]=kUt(u[d]),m=RUt(l,e,i||null,a,g);a.insertionCache[p]||(a.insertionCache[p]=l,r?r(p)&&ese(m,p):ese(m,p))}}}};return a}const LUt=()=>{const e={};return function(n,r){e[n.id]===void 0&&(n.insertCSSRules(r),e[n.id]=!0)}};function FUt(e,t,n=LUt){const r=n();let i=null,o=null;function s(a){const{dir:c,renderer:l}=a,u=c==="ltr";return u?i===null&&(i=Xoe(e,c)):o===null&&(o=Xoe(e,c)),r(l,t),u?i:o}return s}function jUt(){return typeof window<"u"&&!!(window.document&&window.document.createElement)}const tse=k_.useInsertionEffect?k_.useInsertionEffect:void 0,UUt=()=>{const e={};return function(n,r){if(tse&&jUt()){tse(()=>{n.insertCSSRules(r)},[n,r]);return}e[n.id]===void 0&&(n.insertCSSRules(r),e[n.id]=!0)}},BUt=b.createContext(DUt());function $Ut(){return b.useContext(BUt)}const HUt=b.createContext("ltr");function zUt(){return b.useContext(HUt)}function VUt(e,t){const n=FUt(e,t,UUt);return function(){const i=zUt(),o=$Ut();return n({dir:i,renderer:o})}}const _ke=Symbol.for("fui.slotRenderFunction"),YN=Symbol.for("fui.slotElementType");function WUt(e,t){const{defaultProps:n,elementType:r}=t,i=qUt(e),o={...n,...i,[YN]:r};return i&&typeof i.children=="function"&&(o[_ke]=i.children,o.children=n==null?void 0:n.children),o}function qUt(e){return typeof e=="string"||typeof e=="number"||Array.isArray(e)||b.isValidElement(e)?{children:e}:e}function nse(e){return!!(e!=null&&e.hasOwnProperty(YN))}const Pr=(...e)=>{const t={};for(const n of e){const r=Array.isArray(n)?n:Object.keys(n);for(const i of r)t[i]=1}return t},GUt=Pr(["onAuxClick","onAnimationEnd","onAnimationStart","onCopy","onCut","onPaste","onCompositionEnd","onCompositionStart","onCompositionUpdate","onFocus","onFocusCapture","onBlur","onBlurCapture","onChange","onInput","onSubmit","onLoad","onError","onKeyDown","onKeyDownCapture","onKeyPress","onKeyUp","onAbort","onCanPlay","onCanPlayThrough","onDurationChange","onEmptied","onEncrypted","onEnded","onLoadedData","onLoadedMetadata","onLoadStart","onPause","onPlay","onPlaying","onProgress","onRateChange","onSeeked","onSeeking","onStalled","onSuspend","onTimeUpdate","onVolumeChange","onWaiting","onClick","onClickCapture","onContextMenu","onDoubleClick","onDrag","onDragEnd","onDragEnter","onDragExit","onDragLeave","onDragOver","onDragStart","onDrop","onMouseDown","onMouseDownCapture","onMouseEnter","onMouseLeave","onMouseMove","onMouseOut","onMouseOver","onMouseUp","onMouseUpCapture","onSelect","onTouchCancel","onTouchEnd","onTouchMove","onTouchStart","onScroll","onWheel","onPointerCancel","onPointerDown","onPointerEnter","onPointerLeave","onPointerMove","onPointerOut","onPointerOver","onPointerUp","onGotPointerCapture","onLostPointerCapture"]),KUt=Pr(["accessKey","children","className","contentEditable","dir","draggable","hidden","htmlFor","id","lang","ref","role","style","tabIndex","title","translate","spellCheck","name"]),YUt=Pr(["itemID","itemProp","itemRef","itemScope","itemType"]),so=Pr(KUt,GUt,YUt),QUt=Pr(so,["form"]),Cke=Pr(so,["height","loop","muted","preload","src","width"]),XUt=Pr(Cke,["poster"]),JUt=Pr(so,["start"]),ZUt=Pr(so,["value"]),eBt=Pr(so,["download","href","hrefLang","media","rel","target","type"]),tBt=Pr(so,["dateTime"]),QN=Pr(so,["autoF
1597ocus","disabled","form","formAction","formEncType","formMethod","formNoValidate","formTarget","type","value"]),nBt=Pr(QN,["accept","alt","autoCapitalize","autoComplete","checked","dirname","form","height","inputMode","list","max","maxLength","min","multiple","pattern","placeholder","readOnly","required","src","step","size","type","value","width"]),rBt=Pr(QN,["autoCapitalize","cols","dirname","form","maxLength","placeholder","readOnly","required","rows","wrap"]),iBt=Pr(QN,["form","multiple","required"]),oBt=Pr(so,["selected","value"]),sBt=Pr(so,["cellPadding","cellSpacing"]),aBt=so,cBt=Pr(so,["colSpan","rowSpan","scope"]),lBt=Pr(so,["colSpan","headers","rowSpan","scope"]),uBt=Pr(so,["span"]),dBt=Pr(so,["span"]),fBt=Pr(so,["disabled","form"]),hBt=Pr(so,["acceptCharset","action","encType","encType","method","noValidate","target"]),pBt=Pr(so,["allow","allowFullScreen","allowPaymentRequest","allowTransparency","csp","height","importance","referrerPolicy","sandbox","src","srcDoc","width"]),mBt=Pr(so,["alt","crossOrigin","height","src","srcSet","useMap","width"]),gBt=Pr(so,["open","onCancel","onClose"]);function vBt(e,t,n){const r=Array.isArray(t),i={},o=Object.keys(e);for(const s of o)(!r&&t[s]||r&&t.indexOf(s)>=0||s.indexOf("data-")===0||s.indexOf("aria-")===0)&&(i[s]=e[s]);return i}const yBt={label:QUt,audio:Cke,video:XUt,ol:JUt,li:ZUt,a:eBt,button:QN,input:nBt,textarea:rBt,select:iBt,option:oBt,table:sBt,tr:aBt,th:cBt,td:lBt,colGroup:uBt,col:dBt,fieldset:fBt,form:hBt,iframe:pBt,img:mBt,time:tBt,dialog:gBt};function bBt(e,t,n){const r=e&&yBt[e]||so;return r.as=1,vBt(t,r)}const wBt=(e,t,n)=>{var r;return bBt((r=t.as)!==null&&r!==void 0?r:e,t)},Eke=b.createContext(void 0),SBt=()=>{};Eke.Provider;const _Bt=e=>{var t,n;return(n=(t=b.useContext(Eke))===null||t===void 0?void 0:t[e])!==null&&n!==void 0?n:SBt};function CBt(e,t){return{...t,[YN]:e}}function EBt(e,t){return function(r,i,o,s,a){return nse(i)?t(CBt(r,i),null,o,s,a):nse(r)?t(r,i,o,s,a):e(r,i,o,s,a)}}function TBt(e){const{as:t,[YN]:n,[_ke]:r,...i}=e,o=i,s=typeof n=="string"?t??n:n;return typeof s!="string"&&t&&(o.as=t),{elementType:s,props:o,renderFunction:r}}const cU=qPe,kBt=(e,t,n)=>{const{elementType:r,renderFunction:i,props:o}=TBt(e),s={...o,...t};return i?cU.jsx(b.Fragment,{children:i(r,s)},n):cU.jsx(r,s,n)},xBt=EBt(cU.jsx,kBt),$e={4:"#0a0a0a",8:"#141414",10:"#1a1a1a",12:"#1f1f1f",14:"#242424",16:"#292929",18:"#2e2e2e",20:"#333333",22:"#383838",24:"#3d3d3d",26:"#424242",30:"#4d4d4d",32:"#525252",34:"#575757",36:"#5c5c5c",38:"#616161",40:"#666666",42:"#6b6b6b",44:"#707070",46:"#757575",60:"#999999",68:"#adadad",70:"#b3b3b3",74:"#bdbdbd",78:"#c7c7c7",82:"#d1d1d1",84:"#d6d6d6",86:"#dbdbdb",88:"#e0e0e0",90:"#e6e6e6",92:"#ebebeb",94:"#f0f0f0",96:"#f5f5f5",98:"#fafafa"},ys={5:"rgba(255, 255, 255, 0.05)",10:"rgba(255, 255, 255, 0.1)",20:"rgba(255, 255, 255, 0.2)",40:"rgba(255, 255, 255, 0.4)",50:"rgba(255, 255, 255, 0.5)",60:"rgba(255, 255, 255, 0.6)",70:"rgba(255, 255, 255, 0.7)",80:"rgba(255, 255, 255, 0.8)"},Qa={5:"rgba(0, 0, 0, 0.05)",10:"rgba(0, 0, 0, 0.1)",20:"rgba(0, 0, 0, 0.2)",30:"rgba(0, 0, 0, 0.3)",40:"rgba(0, 0, 0, 0.4)",50:"rgba(0, 0, 0, 0.5)"},ABt={50:"rgba(26, 26, 26, 0.5)"},IBt={70:"rgba(31, 31, 31, 0.7)"},rse={50:"rgba(36, 36, 36, 0.5)",80:"rgba(36, 36, 36, 0.8)"},Kt="#ffffff",lU="#000000",Ec="#ffff00",yt="#1aebff",aS="#3ff23f",Yn="#000000",Ht="#ffffff",Zr="#000000",ise="#000000",PD="#ffffff",RBt={shade50:"#130204",shade40:"#230308",shade30:"#420610",shade20:"#590815",shade10:"#690a19",primary:"#750b1c",tint10:"#861b2c",tint20:"#962f3f",tint30:"#ac4f5e",tint40:"#d69ca5",tint50:"#e9c7cd",tint60:"#f9f0f2"},Tke={shade50:"#200205",shade40:"#3b0509",shade30:"#6e0811",shade20:"#960b18",shade10:"#b10e1c",primary:"#c50f1f",tint10:"#cc2635",tint20:"#d33f4c",tint30:"#dc626d",tint40:"#eeacb2",tint50:"#f6d1d5",tint60:"#fdf3f4"},PBt={shade50:"#210809",shade40:"#3f1011",shade30:"#751d1f",shade20:"#9f282b",shade10:"#bc2f32",primary:"#d13438",tint10:"#d7494c",tint20:"#dc5e62",tint30:"#e37d80",tint40:"#f1bbbc",tint50:"#f8dadb",tint60:"#fdf6f6"},OBt={shade50:"#230900",shade40:"#411200",shade30:"#7a2101",shade20:"#a62d01",shade10:"#c43501",primary:"#da3b01",tint10:"#de501c",tint20:"#e36537",tint30:"#e9835e",tint40:"#f4bfab",tint50:"#f9dcd1",tint60:"#fdf6f3"},NBt={shade50:"#200d03",shade40:"#3d1805",shade30:"#712d09",shade20:"#9a3d0c",shade10:"#b6480e",primary:"#ca5010",tint10:"#d06228",tint20:"#d77440",tint30:"#df8e64",tint40:"#efc4ad",tint50:"#f7dfd2",tint60:"#fdf7f4"},MBt={shade50:"#271002",shade40:"#4a1e04",shade30:"#8a3707",shade20:"#bc4b09",shade10:"#de590b",primary:"#f7630c",tint10:"#f87528",tint20:"#f98845",tint30:"#faa06b",tint40:"#fdcfb4",tint50:"#fee5d7",tint60:"#fff9f5"}
1597,DBt={shade50:"#291600",shade40:"#4d2a00",shade30:"#8f4e00",shade20:"#c26a00",shade10:"#e67e00",primary:"#ff8c00",tint10:"#ff9a1f",tint20:"#ffa83d",tint30:"#ffba66",tint40:"#ffddb3",tint50:"#ffedd6",tint60:"#fffaf5"},LBt={shade50:"#251a00",shade40:"#463100",shade30:"#835b00",shade20:"#b27c00",shade10:"#d39300",primary:"#eaa300",tint10:"#edad1c",tint20:"#efb839",tint30:"#f2c661",tint40:"#f9e2ae",tint50:"#fcefd3",tint60:"#fefbf4"},FBt={shade50:"#282400",shade40:"#4c4400",shade30:"#817400",shade20:"#c0ad00",shade10:"#e4cc00",primary:"#fde300",tint10:"#fde61e",tint20:"#fdea3d",tint30:"#feee66",tint40:"#fef7b2",tint50:"#fffad6",tint60:"#fffef5"},jBt={shade50:"#1f1900",shade40:"#3a2f00",shade30:"#6c5700",shade20:"#937700",shade10:"#ae8c00",primary:"#c19c00",tint10:"#c8a718",tint20:"#d0b232",tint30:"#dac157",tint40:"#ecdfa5",tint50:"#f5eece",tint60:"#fdfbf2"},UBt={shade50:"#181202",shade40:"#2e2103",shade30:"#553e06",shade20:"#745408",shade10:"#89640a",primary:"#986f0b",tint10:"#a47d1e",tint20:"#b18c34",tint30:"#c1a256",tint40:"#e0cea2",tint50:"#efe4cb",tint60:"#fbf8f2"},BBt={shade50:"#170e07",shade40:"#2b1a0e",shade30:"#50301a",shade20:"#6c4123",shade10:"#804d29",primary:"#8e562e",tint10:"#9c663f",tint20:"#a97652",tint30:"#bb8f6f",tint40:"#ddc3b0",tint50:"#edded3",tint60:"#faf7f4"},$Bt={shade50:"#0c1501",shade40:"#162702",shade30:"#294903",shade20:"#376304",shade10:"#427505",primary:"#498205",tint10:"#599116",tint20:"#6ba02b",tint30:"#85b44c",tint40:"#bdd99b",tint50:"#dbebc7",tint60:"#f6faf0"},HBt={shade50:"#002111",shade40:"#003d20",shade30:"#00723b",shade20:"#009b51",shade10:"#00b85f",primary:"#00cc6a",tint10:"#19d279",tint20:"#34d889",tint30:"#5ae0a0",tint40:"#a8f0cd",tint50:"#cff7e4",tint60:"#f3fdf8"},zBt={shade50:"#031a02",shade40:"#063004",shade30:"#0b5a08",shade20:"#0e7a0b",shade10:"#11910d",primary:"#13a10e",tint10:"#27ac22",tint20:"#3db838",tint30:"#5ec75a",tint40:"#a7e3a5",tint50:"#cef0cd",tint60:"#f2fbf2"},kke={shade50:"#031403",shade40:"#052505",shade30:"#094509",shade20:"#0c5e0c",shade10:"#0e700e",primary:"#107c10",tint10:"#218c21",tint20:"#359b35",tint30:"#54b054",tint40:"#9fd89f",tint50:"#c9eac9",tint60:"#f1faf1"},VBt={shade50:"#021102",shade40:"#032003",shade30:"#063b06",shade20:"#085108",shade10:"#0a5f0a",primary:"#0b6a0b",tint10:"#1a7c1a",tint20:"#2d8e2d",tint30:"#4da64d",tint40:"#9ad29a",tint50:"#c6e7c6",tint60:"#f0f9f0"},WBt={shade50:"#001d1f",shade40:"#00373a",shade30:"#00666d",shade20:"#008b94",shade10:"#00a5af",primary:"#00b7c3",tint10:"#18bfca",tint20:"#32c8d1",tint30:"#58d3db",tint40:"#a6e9ed",tint50:"#cef3f5",tint60:"#f2fcfd"},qBt={shade50:"#001516",shade40:"#012728",shade30:"#02494c",shade20:"#026467",shade10:"#037679",primary:"#038387",tint10:"#159195",tint20:"#2aa0a4",tint30:"#4cb4b7",tint40:"#9bd9db",tint50:"#c7ebec",tint60:"#f0fafa"},GBt={shade50:"#000f12",shade40:"#001b22",shade30:"#00333f",shade20:"#004555",shade10:"#005265",primary:"#005b70",tint10:"#0f6c81",tint20:"#237d92",tint30:"#4496a9",tint40:"#94c8d4",tint50:"#c3e1e8",tint60:"#eff7f9"},KBt={shade50:"#001322",shade40:"#002440",shade30:"#004377",shade20:"#005ba1",shade10:"#006cbf",primary:"#0078d4",tint10:"#1a86d9",tint20:"#3595de",tint30:"#5caae5",tint40:"#a9d3f2",tint50:"#d0e7f8",tint60:"#f3f9fd"},YBt={shade50:"#000c16",shade40:"#00172a",shade30:"#002c4e",shade20:"#003b6a",shade10:"#00467e",primary:"#004e8c",tint10:"#125e9a",tint20:"#286fa8",tint30:"#4a89ba",tint40:"#9abfdc",tint50:"#c7dced",tint60:"#f0f6fa"},QBt={shade50:"#0d1126",shade40:"#182047",shade30:"#2c3c85",shade20:"#3c51b4",shade10:"#4760d5",primary:"#4f6bed",tint10:"#637cef",tint20:"#778df1",tint30:"#93a4f4",tint40:"#c8d1fa",tint50:"#e1e6fc",tint60:"#f7f9fe"},XBt={shade50:"#00061d",shade40:"#000c36",shade30:"#001665",shade20:"#001e89",shade10:"#0023a2",primary:"#0027b4",tint10:"#173bbd",tint20:"#3050c6",tint30:"#546fd2",tint40:"#a3b2e8",tint50:"#ccd5f3",tint60:"#f2f4fc"},JBt={shade50:"#120f25",shade40:"#221d46",shade30:"#3f3682",shade20:"#5649b0",shade10:"#6656d1",primary:"#7160e8",tint10:"#8172eb",tint20:"#9184ee",tint30:"#a79cf1",tint40:"#d2ccf8",tint50:"#e7e4fb",tint60:"#f9f8fe"},ZBt={shade50:"#0f0717",shade40:"#1c0e2b",shade30:"#341a51",shade20:"#46236e",shade10:"#532982",primary:"#5c2e91",tint10:"#6b3f9e",tint20:"#7c52ab",tint30:"#9470bd",tint40:"#c6b1de",tint50:"#e0d3ed",tint60:"#f7f4fb"},e$t={shade50:"#160418",shade40:"#29072e",shade30:"#4c0d55",shade20:"#671174",shade10:"#7a1589",primary:"#881798",tint10:"#952aa4",tint20:"#a33fb1",tint30:"#b55fc1",tint40:"#d9a7e0",tint50:"#eaceef",tint60:"#faf2fb"},t$t={shade50:"#1f091d",shade40:"#3a1136",shade30:"#6d2064",shade20:"#932b88",shade10:"#af33a1",primary:"#c239b3",tint10:"#c94cbc",tint20:"#d161c4",tint30:"#da7ed0",tint40:"#edbbe7",tint50:"#f5daf2",tint60:"#fdf5fc"},n$t={shade50:"#1c0b1f",shade40:"#35153a",shade30:"#63276d",shade20:"#863593",shade10:"#9f3faf",primary:"#b146c2",tint10:"#ba58c9",tint20:"#c36bd1",tint30:"#cf87da",tint40:"#e6bfed",tint50:"#f2dcf5",tint60:"#fcf6fd"},r$t={shade50:"#24091b",shade40:"#441232",shade30:"#80215d",shade20:"#ad2d7e",shade10:"#cd3595",primary:"#e43ba6",tint10:"#e750b0",tint20:"#ea66ba",tint30:"#ef85c8",tint40:"#f7c0e3",tint50:"#fbddf0",tint60:"#fef6fb"},i$t={shade50:"#1f0013",shade40:"#390024",shade30:"#6b0043",shade20:"#91005a",shade10:"#ac006b",primary:"#bf0077",tint10:"#c71885",tint20:"#ce3293",tint30:"#d957a8",tint40:"#eca5d1",tint50:"#f5cee6",tint60:"#fcf2f9"}
1597,o$t={shade50:"#13000c",shade40:"#240017",shade30:"#43002b",shade20:"#5a003b",shade10:"#6b0045",primary:"#77004d",tint10:"#87105d",tint20:"#98246f",tint30:"#ad4589",tint40:"#d696c0",tint50:"#e9c4dc",tint60:"#faf0f6"},s$t={shade50:"#141313",shade40:"#252323",shade30:"#444241",shade20:"#5d5958",shade10:"#6e6968",primary:"#7a7574",tint10:"#8a8584",tint20:"#9a9594",tint30:"#afabaa",tint40:"#d7d4d4",tint50:"#eae8e8",tint60:"#faf9f9"},a$t={shade50:"#0f0e0e",shade40:"#1c1b1a",shade30:"#343231",shade20:"#474443",shade10:"#54514f",primary:"#5d5a58",tint10:"#706d6b",tint20:"#84817e",tint30:"#9e9b99",tint40:"#cecccb",tint50:"#e5e4e3",tint60:"#f8f8f8"},c$t={shade50:"#111314",shade40:"#1f2426",shade30:"#3b4447",shade20:"#505c60",shade10:"#5f6d71",primary:"#69797e",tint10:"#79898d",tint20:"#89989d",tint30:"#a0adb2",tint40:"#cdd6d8",tint50:"#e4e9ea",tint60:"#f8f9fa"},l$t={shade50:"#090a0b",shade40:"#111315",shade30:"#202427",shade20:"#2b3135",shade10:"#333a3f",primary:"#394146",tint10:"#4d565c",tint20:"#626c72",tint30:"#808a90",tint40:"#bcc3c7",tint50:"#dbdfe1",tint60:"#f6f7f8"},zn={red:PBt,green:kke,darkOrange:OBt,yellow:FBt,berry:t$t,lightGreen:zBt,marigold:LBt},Zp={darkRed:RBt,cranberry:Tke,pumpkin:NBt,peach:DBt,gold:jBt,brass:UBt,brown:BBt,forest:$Bt,seafoam:HBt,darkGreen:VBt,lightTeal:WBt,teal:qBt,steel:GBt,blue:KBt,royalBlue:YBt,cornflower:QBt,navy:XBt,lavender:JBt,purple:ZBt,grape:e$t,lilac:n$t,pink:r$t,magenta:i$t,plum:o$t,beige:s$t,mink:a$t,platinum:c$t,anchor:l$t},Dn={cranberry:Tke,green:kke,orange:MBt},aq=["red","green","darkOrange","yellow","berry","lightGreen","marigold"],cq=["darkRed","cranberry","pumpkin","peach","gold","brass","brown","forest","seafoam","darkGreen","lightTeal","teal","steel","blue","royalBlue","cornflower","navy","lavender","purple","grape","lilac","pink","magenta","plum","beige","mink","platinum","anchor"],aa={success:"green",warning:"orange",danger:"cranberry"},f2=aq.reduce((e,t)=>{const n=t.slice(0,1).toUpperCase()+t.slice(1),r={[`colorPalette${n}Background1`]:zn[t].tint60,[`colorPalette${n}Background2`]:zn[t].tint40,[`colorPalette${n}Background3`]:zn[t].primary,[`colorPalette${n}Foreground1`]:zn[t].shade10,[`colorPalette${n}Foreground2`]:zn[t].shade30,[`colorPalette${n}Foreground3`]:zn[t].primary,[`colorPalette${n}BorderActive`]:zn[t].primary,[`colorPalette${n}Border1`]:zn[t].tint40,[`colorPalette${n}Border2`]:zn[t].primary};return Object.assign(e,r)},{});f2.colorPaletteYellowForeground1=zn.yellow.shade30;f2.colorPaletteRedForegroundInverted=zn.red.tint20;f2.colorPaletteGreenForegroundInverted=zn.green.tint20;f2.colorPaletteYellowForegroundInverted=zn.yellow.tint40;const u$t=cq.reduce((e,t)=>{const n=t.slice(0,1).toUpperCase()+t.slice(1),r={[`colorPalette${n}Background2`]:Zp[t].tint40,[`colorPalette${n}Foreground2`]:Zp[t].shade30,[`colorPalette${n}BorderActive`]:Zp[t].primary};return Object.assign(e,r)},{}),d$t={...f2,...u$t},rw=Object.entries(aa).reduce((e,[t,n])=>{const r=t.slice(0,1).toUpperCase()+t.slice(1),i={[`colorStatus${r}Background1`]:Dn[n].tint60,[`colorStatus${r}Background2`]:Dn[n].tint40,[`colorStatus${r}Background3`]:Dn[n].primary,[`colorStatus${r}Foreground1`]:Dn[n].shade10,[`colorStatus${r}Foreground2`]:Dn[n].shade30,[`colorStatus${r}Foreground3`]:Dn[n].primary,[`colorStatus${r}ForegroundInverted`]:Dn[n].tint30,[`colorStatus${r}BorderActive`]:Dn[n].primary,[`colorStatus${r}Border1`]:Dn[n].tint40,[`colorStatus${r}Border2`]:Dn[n].primary};return Object.assign(e,i)},{});rw.colorStatusDangerBackground3Hover=Dn[aa.danger].shade10;rw.colorStatusDangerBackground3Pressed=Dn[aa.danger].shade20;rw.colorStatusWarningForeground1=Dn[aa.warning].shade20;rw.colorStatusWarningForeground3=Dn[aa.warning].shade20;rw.colorStatusWarningBorder2=Dn[aa.warning].shade20;const f$t=e=>({colorNeutralForeground1:$e[14],colorNeutralForeground1Hover:$e[14],colorNeutralForeground1Pressed:$e[14],colorNeutralForeground1Selected:$e[14],colorNeutralForeground2:$e[26],colorNeutralForeground2Hover:$e[14],colorNeutralForeground2Pressed:$e[14],colorNeutralForeground2Selected:$e[14],colorNeutralForeground2BrandHover:e[80],colorNeutralForeground2BrandPressed:e[70],colorNeutralForeground2BrandSelected:e[80],colorNeutralForeground3:$e[38],colorNeutralForeground3Hover:$e[26],colorNeutralForeground3Pressed:$e[26],colorNeutralForeground3Selected:$e[26],colorNeutralForeground3BrandHover:e[80],colorNeutralForeground3BrandPressed:e[70],colorNeutralForeground3BrandSelected:e[80],colorNeutralForeground4:$e[44],colorNeutralForegroundDisabled:$e[74],colorNeutralForegroundInvertedDisabled:ys[40],colorBrandForegroundLink:e[70],colorBrandForegroundLinkHover:e[60],colorBrandForegroundLinkPressed:e[40],colorBrandForegroundLinkSelected:e[70],colorNeutralForeground2Link:$e[26],colorNeutralForeground2LinkHover:$e[14],colorNeutralForeground2LinkPressed:$e[14],colorNeutralForeground2LinkSelected:$e[14],colorCompoundBrandForeground1:e[80],colorCompoundBrandForeground1Hover:e[70],colorCompoundBrandForeground1Pressed:e[60],colorBrandForeground1:e[80],colorBrandForeground2:e[70],colorBrandForeground2Hover:e[60],colorBrandForeground2Pressed:e[30],colorNeutralForeground1Static:$e[14],colorNeutralForegroundStaticInverted:Kt,colorNeutralForegroundInverted:Kt,colorNeutralForegroundInvertedHover:Kt,colorNeutralForegroundInvertedPressed:Kt,colorNeutralForegroundInvertedSelected:Kt,colorNeutralForegroundInverted2:Kt,colorNeutralForegroundOnBrand:Kt,colorNeutralForegroundInvertedLink:Kt,colorNeutralForegroundInvertedLinkHover:Kt,colorNeutralForegroundInvertedLinkPressed:Kt,colorNeutralForegroundInvertedLinkSelected:Kt,colorBrandForegroundInverted:e[100],colorBrandForegroundInvertedHover:e[110],colorBrandForegroundInvertedPressed:e[100],colorBrandForegroundOnLight:e[8
15970],colorBrandForegroundOnLightHover:e[70],colorBrandForegroundOnLightPressed:e[50],colorBrandForegroundOnLightSelected:e[60],colorNeutralBackground1:Kt,colorNeutralBackground1Hover:$e[96],colorNeutralBackground1Pressed:$e[88],colorNeutralBackground1Selected:$e[92],colorNeutralBackground2:$e[98],colorNeutralBackground2Hover:$e[94],colorNeutralBackground2Pressed:$e[86],colorNeutralBackground2Selected:$e[90],colorNeutralBackground3:$e[96],colorNeutralBackground3Hover:$e[92],colorNeutralBackground3Pressed:$e[84],colorNeutralBackground3Selected:$e[88],colorNeutralBackground4:$e[94],colorNeutralBackground4Hover:$e[98],colorNeutralBackground4Pressed:$e[96],colorNeutralBackground4Selected:Kt,colorNeutralBackground5:$e[92],colorNeutralBackground5Hover:$e[96],colorNeutralBackground5Pressed:$e[94],colorNeutralBackground5Selected:$e[98],colorNeutralBackground6:$e[90],colorNeutralBackgroundInverted:$e[16],colorNeutralBackgroundStatic:$e[20],colorNeutralBackgroundAlpha:ys[50],colorNeutralBackgroundAlpha2:ys[80],colorSubtleBackground:"transparent",colorSubtleBackgroun
1597dHover:$e[96],colorSubtleBackgroundPressed:$e[88],colorSubtleBackgroundSelected:$e[92],colorSubtleBackgroundLightAlphaHover:ys[70],colorSubtleBackgroundLightAlphaPressed:ys[50],colorSubtleBackgroundLightAlphaSelected:"transparent",colorSubtleBackgroundInverted:"transparent",colorSubtleBackgroundInvertedHover:Qa[10],colorSubtleBackgroundInvertedPressed:Qa[30],colorSubtleBackgroundInvertedSelected:Qa[20],colorTransparentBackground:"transparent",colorTransparentBackgroundHover:"transparent",colorTransparentBackgroundPressed:"transparent",colorTransparentBackgroundSelected:"transparent",colorNeutralBackgroundDisabled:$e[94],colorNeutralBackgroundInvertedDisabled:ys[10],colorNeutralStencil1:$e[90],colorNeutralStencil2:$e[98],colorNeutralStencil1Alpha:Qa[10],colorNeutralStencil2Alpha:Qa[5],colorBackgroundOverlay:Qa[40],colorScrollbarOverlay:Qa[50],colorBrandBackground:e[80],colorBrandBackgroundHover:e[70],colorBrandBackgroundPressed:e[40],colorBrandBackgroundSelected:e[60],colorCompoundBrandBackground:e[80],colorCompoundBrandBackgroundHover:e[70],colorCompoundBrandBackgroundPressed:e[60],colorBrandBackgroundStatic:e[80],colorBrandBackground2:e[160],colorBrandBackground2Hover:e[150],colorBrandBackground2Pressed:e[130],colorBrandBackground3Static:e[60],colorBrandBackground4Static:e[40],colorBrandBackgroundInverted:Kt,colorBrandBackgroundInvertedHover:e[160],colorBrandBackgroundInvertedPressed:e[140],colorBrandBackgroundInvertedSelected:e[150],colorNeutralCardBackground:$e[98],colorNeutralCardBackgroundHover:Kt,colorNeutralCardBackgroundPressed:$e[96],colorNeutralCardBackgroundSelected:$e[92],colorNeutralCardBackgroundDisabled:$e[94],colorNeutralStrokeAccessible:$e[38],colorNeutralStrokeAccessibleHover:$e[34],colorNeutralStrokeAccessiblePressed:$e[30],colorNeutralStrokeAccessibleSelected:e[80],colorNeutralStroke1:$e[82],colorNeutralStroke1Hover:$e[78],colorNeutralStroke1Pressed:$e[70],colorNeutralStroke1Selected:$e[74],colorNeutralStroke2:$e[88],colorNeutralStroke3:$e[94],colorNeutralStrokeSubtle:$e[88],colorNeutralStrokeOnBrand:Kt,colorNeutralStrokeOnBrand2:Kt,colorNeutralStrokeOnBrand2Hover:Kt,colorNeutralStrokeOnBrand2Pressed:Kt,colorNeutralStrokeOnBrand2Selected:Kt,colorBrandStroke1:e[80],colorBrandStroke2:e[140],colorBrandStroke2Hover:e[120],colorBrandStroke2Pressed:e[80],colorBrandStroke2Contrast:e[140],colorCompoundBrandStroke:e[80],colorCompoundBrandStrokeHover:e[70],colorCompoundBrandStrokePressed:e[60],colorNeutralStrokeDisabled:$e[88],colorNeutralStrokeInvertedDisabled:ys[40],colorTransparentStroke:"transparent",colorTransparentStrokeInteractive:"transparent",colorTransparentStrokeDisabled:"transparent",colorNeutralStrokeAlpha:Qa[5],colorNeutralStrokeAlpha2:ys[20],colorStrokeFocus1:Kt,colorStrokeFocus2:lU,colorNeutralShadowAmbient:"rgba(0,0,0,0.12)",colorNeutralShadowKey:"rgba(0,0,0,0.14)",colorNeutralShadowAmbientLighter:"rgba(0,0,0,0.06)",colorNeutralShadowKeyLighter:"rgba(0,0,0,0.07)",colorNeutralShadowAmbientDarker:"rgba(0,0,0,0.20)",colorNeutralShadowKeyDarker:"rgba(0,0,0,0.24)",colorBrandShadowAmbient:"rgba(0,0,0,0.30)",colorBrandShadowKey:"rgba(0,0,0,0.25)"}),lq={borderRadiusNone:"0",borderRadiusSmall:"2px",borderRadiusMedium:"4px",borderRadiusLarge:"6px",borderRadiusXLarge:"8px",borderRadiusCircular:"10000px"},uq={curveAccelerateMax:"cubic-bezier(0.9,0.1,1,0.2)",curveAccelerateMid:"cubic-bezier(1,0,1,1)",curveAccelerateMin:"cubic-bezier(0.8,0,0.78,1)",curveDecelerateMax:"cubic-bezier(0.1,0.9,0.2,1)",curveDecelerateMid:"cubic-bezier(0,0,0,1)",curveDecelerateMin:"cubic-bezier(0.33,0,0.1,1)",curveEasyEaseMax:"cubic-bezier(0.8,0,0.2,1)",curveEasyEase:"cubic-bezier(0.33,0,0.67,1)",curveLinear:"cubic-bezier(0,0,1,1)"},dq={durationUltraFast:"50ms",durationFaster:"100ms",durationFast:"150ms",durationNormal:"200ms",durationGentle:"250ms",durationSlow:"300ms",durationSlower:"400ms",durationUltraSlow:"500ms"},fq={fontSizeBase100:"10px",fontSizeBase200:"12px",fontSizeBase300:"14px",fontSizeBase400:"16px",fontSizeBase500:"20px",fontSizeBase600:"24px",fontSizeHero700:"28px",fontSizeHero800:"32px",fontSizeHero900:"40px",fontSizeHero1000:"68px"},hq={lineHeightBase100:"14px",lineHeightBase200:"16px",lineHeightBase300:"20px",lineHeightBase400:"22px",lineHeightBase500:"28px",lineHeightBase600:"32px",lineHeightHero700:"36px",lineHeightHero800:"40px",lineHeightHero900:"52px",lineHeightHero1000:"92px"},pq={fontWeightRegular:400,fontWeightMedium:500,fontWeightSemibold:600,fontWeightBold:700},mq={fontFamilyBase:"'Segoe UI', 'Segoe UI Web (West European)', -apple-system, BlinkMacSystemFont, Roboto, 'Helvetica Neue', sans-serif",fontFamilyMonospace:"Consolas, 'Courier New', C
1597ourier, monospace",fontFamilyNumeric:"Bahnschrift, 'Segoe UI', 'Segoe UI Web (West European)', -apple-system, BlinkMacSystemFont, Roboto, 'Helvetica Neue', sans-serif"},Ci={none:"0",xxs:"2px",xs:"4px",sNudge:"6px",s:"8px",mNudge:"10px",m:"12px",l:"16px",xl:"20px",xxl:"24px",xxxl:"32px"},gq={spacingHorizontalNone:Ci.none,spacingHorizontalXXS:Ci.xxs,spacingHorizontalXS:Ci.xs,spacingHorizontalSNudge:Ci.sNudge,spacingHorizontalS:Ci.s,spacingHorizontalMNudge:Ci.mNudge,spacingHorizontalM:Ci.m,spacingHorizontalL:Ci.l,spacingHorizontalXL:Ci.xl,spacingHorizontalXXL:Ci.xxl,spacingHorizontalXXXL:Ci.xxxl},vq={spacingVerticalNone:Ci.none,spacingVerticalXXS:Ci.xxs,spacingVerticalXS:Ci.xs,spacingVerticalSNudge:Ci.sNudge,spacingVerticalS:Ci.s,spacingVerticalMNudge:Ci.mNudge,spacingVerticalM:Ci.m,spacingVerticalL:Ci.l,spacingVerticalXL:Ci.xl,spacingVerticalXXL:Ci.xxl,spacingVerticalXXXL:Ci.xxxl},yq={strokeWidthThin:"1px",strokeWidthThick:"2px",strokeWidthThicker:"3px",strokeWidthThickest:"4px"};function Y1(e,t,n=""){return{[`shadow2${n}`]:`0 0 2px ${e}, 0 1px 2px ${t}`,[`shadow4${n}`]:`0 0 2px ${e}, 0 2px 4px ${t}`,[`shadow8${n}`]:`0 0 2px ${e}, 0 4px 8px ${t}`,[`shadow16${n}`]:`0 0 2px ${e}, 0 8px 16px ${t}`,[`shadow28${n}`]:`0 0 8px ${e}, 0 14px 28px ${t}`,[`shadow64${n}`]:`0 0 8px ${e}, 0 32px 64px ${t}`}}const h$t=e=>{const t=f$t(e);return{...lq,...fq,...hq,...mq,...pq,...yq,...gq,...vq,...dq,...uq,...t,...d$t,...rw,...Y1(t.colorNeutralShadowAmbient,t.colorNeutralShadowKey),...Y1(t.colorBrandShadowAmbient,t.colorBrandShadowKey,"Brand")}},xke={10:"#2b2b40",20:"#2f2f4a",30:"#333357",40:"#383966",50:"#3d3e78",60:"#444791",70:"#4f52b2",80:"#5b5fc7",90:"#7579eb",100:"#7f85f5",110:"#9299f7",120:"#aab1fa",130:"#b6bcfa",140:"#c5cbfa",150:"#dce0fa",160:"#e8ebfa"},ose=h$t(xke),Ud=aq.reduce((e,t)=>{const n=t.slice(0,1).toUpperCase()+t.slice(1),r={[`colorPalette${n}Background1`]:zn[t].shade40,[`colorPalette${n}Background2`]:zn[t].shade30,[`colorPalette${n}Background3`]:zn[t].primary,[`colorPalette${n}Foreground1`]:zn[t].tint30,[`colorPalette${n}Foreground2`]:zn[t].tint40,[`colorPalette${n}Foreground3`]:zn[t].tint20,[`colorPalette${n}BorderActive`]:zn[t].tint30,[`colorPalette${n}Border1`]:zn[t].primary,[`colorPalette${n}Border2`]:zn[t].tint20};return Object.assign(e,r)},{});Ud.colorPaletteRedForeground3=zn.red.tint30;Ud.colorPaletteRedBorder2=zn.red.tint30;Ud.colorPaletteGreenForeground3=zn.green.tint40;Ud.colorPaletteGreenBorder2=zn.green.tint40;Ud.colorPaletteDarkOrangeForeground3=zn.darkOrange.tint30;Ud.colorPaletteDarkOrangeBorder2=zn.darkOrange.tint30;Ud.colorPaletteRedForegroundInverted=zn.red.primary;Ud.colorPaletteGreenForegroundInverted=zn.green.primary;Ud.colorPaletteYellowForegroundInverted=zn.yellow.shade30;const bq=cq.reduce((e,t)=>{const n=t.slice(0,1).toUpperCase()+t.slice(1),r={[`colorPalette${n}Background2`]:Zp[t].shade30,[`colorPalette${n}Foreground2`]:Zp[t].tint40,[`colorPalette${n}BorderActive`]:Zp[t].tint30};return Object.assign(e,r)},{});bq.colorPaletteDarkRedBackground2=Zp.darkRed.shade20;
1597bq.colorPalettePlumBackground2=Zp.plum.shade20;const p$t={...Ud,...bq},$m=Object.entries(aa).reduce((e,[t,n])=>{const r=t.slice(0,1).toUpperCase()+t.slice(1),i={[`colorStatus${r}Background1`]:Dn[n].shade40,[`colorStatus${r}Background2`]:Dn[n].shade30,[`colorStatus${r}Background3`]:Dn[n].primary,[`colorStatus${r}Foreground1`]:Dn[n].tint30,[`colorStatus${r}Foreground2`]:Dn[n].tint40,[`colorStatus${r}Foreground3`]:Dn[n].tint20,[`colorStatus${r}BorderActive`]:Dn[n].tint30,[`colorStatus${r}ForegroundInverted`]:Dn[n].shade10,[`colorStatus${r}Border1`]:Dn[n].primary,[`colorStatus${r}Border2`]:Dn[n].tint20};return Object.assign(e,i)},{});$m.colorStatusDangerBackground3Hover=Dn[aa.danger].shade10;$m.colorStatusDangerBackground3Pressed=Dn[aa.danger].shade20;$m.colorStatusDangerForeground3=Dn[aa.danger].tint40;$m.colorStatusDangerBorder2=Dn[aa.danger].tint30;$m.colorStatusSuccessForeground3=Dn[aa.success].tint40;$m.colorStatusSuccessBorder2=Dn[aa.success].tint40;$m.colorStatusWarningForegroundInverted=Dn[aa.warning].shade20;const m$t=e=>({colorNeutralForeground1:Kt,colorNeutralForeground1Hover:Kt,colorNeutralForeground1Pressed:Kt,colorNeutralForeground1Selected:Kt,colorNeutralForeground2:$e[84],colorNeutralForeground2Hover:Kt,colorNeutralForeground2Pressed:Kt,colorNeutralForeground2Selected:Kt,colorNeutralForeground2BrandHover:e[100],colorNeutralForeground2BrandPressed:e[90],colorNeutralForeground2BrandSelected:e[100],colorNeutralForeground3:$e[68],colorNeutralForeground3Hover:$e[84],colorNeutralForeground3Pressed:$e[84],colorNeutralForeground3Selected:$e[84],colorNeutralForeground3BrandHover:e[100],colorNeutralForeground3BrandPressed:e[90],colorNeutralForeground3BrandSelected:e[100],colorNeutralForeground4:$e[60],colorNeutralForegroundDisabled:$e[36],colorNeutralForegroundInvertedDisabled:ys[40],colorBrandForegroundLink:e[100],colorBrandForegroundLinkHover:e[110],colorBrandForegroundLinkPressed:e[90],colorBrandForegroundLinkSelected:e[100],colorNeutralForeground2Link:$e[84],colorNeutralForeground2LinkHover:Kt,colorNeutralForeground2LinkPressed:Kt,colorNeutralForeground2LinkSelected:Kt,colorCompoundBrandForeground1:e[100],colorCompoundBrandForeground1Hover:e[110],colorCompoundBrandForeground1Pressed:e[90],colorBrandForeground1:e[100],colorBrandForeground2:e[120],colorBrandForeground2Hover:e[130],colorBrandForeground2Pressed:e[160],colorNeutralForeground1Static:$e[14],colorNeutralForegroundStaticInverted:Kt,colorNeutralForegroundInverted:$e[14],colorNeutralForegroundInvertedHover:$e[14],colorNeutralForegroundInvertedPressed:$e[14],colorNeutralForegroundInvertedSelected:$e[14],colorNeutralForegroundInverted2:$e[14],colorNeutralForegroundOnBrand:Kt,colorNeutralForegroundInvertedLink:Kt,colorNeutralForegroundInvertedLinkHover:Kt,colorNeutralForegroundInvertedLinkPressed:Kt,colorNeutralForegroundInvertedLinkSelected:Kt,colorBrandForegroundInverted:e[80],colorBrandForegroundInvertedHover:e[70],colorBrandForegroundInvertedPressed:e[60],colorBrandForegroundOnLight:e[80],colorBrandForegroundOnLightHover:e[70],colorBrandForegroundOnLightPressed:e[50],colorBrandForegroundOnLightSelected:e[60],colorNeutralBackground1:$e[16],colorNeutralBackground1Hover:$e[24],colorNeutralBackground1Pressed:$e[12],colorNeutralBackground1Selected:$e[22],colorNeutralBackground2:$e[14],colorNeutralBackground2Hover:$e[22],colorNeutralBackground2Pressed:$e[10],colorNeutralBackground2Selected:$e[20],colorNeutralBackground3:$e[12],colorNeutralBackground3Hover:$e[20],colorNeutralBackground3Pressed:$e[8],colorNeutralBackground3Selected:$e[18],colorNeutralBackground4:$e[8],colorNeutralBackground4Hover:$e[16],colorNeutralBackground4Pressed:$e[4],colorNeutralBackground4Selected:$e[14],colorNeutralBackground5:$e[4],colorNeutralBackground5Hover:$e[12],colorNeutralBackground5Pressed:lU,colorNeutralBackground5Selected:$e[10],colorNeutralBackground6:$e[20],colorNeutralBackgroundInverted:Kt,colorNeutralBackgroundStatic:$e[24],colorNeutralBackgroundAlpha:ABt[50],colorNeutralBackgroundAlpha2:IBt[70],colorSubtleBackgroun
1597d:"transparent",colorSubtleBackgroundHover:$e[22],colorSubtleBackgroundPressed:$e[18],colorSubtleBackgroundSelected:$e[20],colorSubtleBackgroundLightAlphaHover:rse[80],colorSubtleBackgroundLightAlphaPressed:rse[50],colorSubtleBackgroundLightAlphaSelected:"transparent",colorSubtleBackgroundInverted:"transparent",colorSubtleBackgroundInvertedHover:Qa[10],colorSubtleBackgroundInvertedPressed:Qa[30],colorSubtleBackgroundInvertedSelected:Qa[20],colorTransparentBackground:"transparent",colorTransparentBackgroundHover:"transparent",colorTransparentBackgroundPressed:"transparent",colorTransparentBackgroundSelected:"transparent",colorNeutralBackgroundDisabled:$e[8],colorNeutralBackgroundInvertedDisabled:ys[10],colorNeutralStencil1:$e[34],colorNeutralStencil2:$e[20],colorNeutralStencil1Alpha:ys[10],colorNeutralStencil2Alpha:ys[5],colorBackgroundOverlay:Qa[50],colorScrollbarOverlay:ys[60],colorBrandBackground:e[70],colorBrandBackgroundHover:e[80],colorBrandBackgroundPressed:e[40],colorBrandBackgroundSelected:e[60],colorCompoundBrandBackground:e[100],colorCompoundBrandBackgroundHover:e[110],colorCompoundBrandBackgroundPressed:e[90],colorBrandBackgroundStatic:e[80],colorBrandBackground2:e[20],colorBrandBackground2Hover:e[40],colorBrandBackground2Pressed:e[10],colorBrandBackground3Static:e[60],colorBrandBackground4Static:e[40],colorBrandBackgroundInverted:Kt,colorBrandBackgroundInvertedHover:e[160],colorBrandBackgroundInvertedPressed:e[140],colorBrandBackgroundInvertedSelected:e[150],colorNeutralCardBackground:$e[20],colorNeutralCardBackgroundHover:$e[24],colorNeutralCardBackgroundPressed:$e[18],colorNeutralCardBackgroundSelected:$e[22],colorNeutralCardBackgroundDisabled:$e[8],colorNeutralStrokeAccessible:$e[68],colorNeutralStrokeAccessibleHover:$e[74],colorNeutralStrokeAccessiblePressed:$e[70],colorNeutralStrokeAccessibleSelected:e[100],colorNeutralStroke1:$e[40],colorNeutralStroke1Hover:$e[46],colorNeutralStroke1Pressed:$e[42],colorNeutralStroke1Selected:$e[44],colorNeutralStroke2:$e[32],colorNeutralStroke3:$e[24],colorNeutralStrokeSubtle:$e[4],colorNeutralStrokeOnBrand:$e[16],colorNeutralStrokeOnBrand2:Kt,colorNeutralStrokeOnBrand2Hover:Kt,colorNeutralStrokeOnBrand2Pressed:Kt,colorNeutralStrokeOnBrand2Selected:Kt,colorBrandStroke1:e[100],colorBrandStroke2:e[50],colorBrandStroke2Hover:e[50],colorBrandStroke2Pressed:e[30],colorBrandStroke2Contrast:e[50],colorCompoundBrandStroke:e[90],colorCompoundBrandStrokeHover:e[100],colorCompoundBrandStrokePressed:e[80],colorNeutralStrokeDisabled:$e[26],colorNeutralStrokeInvertedDisabled:ys[40],colorTransparentStroke:"transparent",colorTransparentStrokeInteractive:"transparent",colorTransparentStrokeDisabled:"transparent",colorNeutralStrokeAlpha:ys[10],colorNeutralStrokeAlpha2:ys[20],colorStrokeFocus1:lU,colorStrokeFocus2:Kt,colorNeutralShadowAmbient:"rgba(0,0,0,0.24)",colorNeutralShadowKey:"rgba(0,0,0,0.28)",colorNeutralShadowAmbientLighter:"rgba(0,0,0,0.12)",colorNeutralShadowKeyLighter:"rgba(0,0,0,0.14)",colorNeutralShadowAmbientDarker:"rgba(0,0,0,0.40)",colorNeutralShadowKeyDarker:"rgba(0,0,0,0.48)",colorBrandShadowAmbient:"rgba(0,0,0,0.30)",colorBrandShadowKey:"rgba(0,0,0,0.25)"}),g$t=e=>{const t=m$t(e);return{...lq,...fq,...hq,...mq,...pq,...yq,...gq,...vq,...dq,...uq,...t,...p$t,...$m,...Y1(t.colorNeutralShadowAmbient,t.colorNeutralShadowKey),...Y1(t.colorBrandShadowAmbient,t.colorBrandShadowKey,"Brand")}},v$t=g$t(xke),XN=aq.reduce((e,t)=>{const n=t.slice(0,1).toUpperCase()+t.slice(1),r={[`colorPalette${n}Background1`]:Yn,[`colorPalette${n}Background2`]:Yn,[`colorPalette${n}Background3`]:Ht,[`colorPalette${n}Foreground1`]:Ht,[`colorPalette${n}Foreground2`]:Ht,[`colorPalette${n}Foreground3`]:Ht,[`colorPalette${n}BorderActive`]:yt,[`colorPalette${n}Border1`]:Ht,[`colorPalette${n}Border2`]:Ht};return Object.assign(e,r)},{});XN.colorPaletteRedForegroundInverted=Ht;XN.colorPaletteGreenForegroundInverted=Ht;XN.colorPaletteYellowForegroundInverted=Ht;const y$t=cq.reduce((e,t)=>{const n=t.slice(0,1).toUpperCase()+t.slice(1),r={[`colorPalette${n}Background2`]:Yn,[`colorPalette${n}Foreground2`]:Ht,[`colorPalette${n}BorderActive`]:yt};return Object.assign(e,r)},{}),b$t={...XN,...y$t},wq=Object.entries(aa).reduce((e,[t,n])=>{const r=t.slice(0,1).toUpperCase()+t.slice(1),i={[`colorStatus${r}
1597Background1`]:Yn,[`colorStatus${r}Background2`]:Yn,[`colorStatus${r}Background3`]:Ht,[`colorStatus${r}Foreground1`]:Ht,[`colorStatus${r}Foreground2`]:Ht,[`colorStatus${r}Foreground3`]:Ht,[`colorStatus${r}BorderActive`]:yt,[`colorStatus${r}ForegroundInverted`]:Ht,[`colorStatus${r}Border1`]:Ht,[`colorStatus${r}Border2`]:Ht};return Object.assign(e,i)},{});wq.colorStatusDangerBackground3Hover=yt;wq.colorStatusDangerBackground3Pressed=yt;const w$t=()=>({colorNeutralForeground1:Ht,colorNeutralForeground1Hover:Zr,colorNeutralForeground1Pressed:Zr,colorNeutralForeground1Selected:Zr,colorNeutralForeground2:Ht,colorNeutralForeground2Hover:Zr,colorNeutralForeground2Pressed:Zr,colorNeutralForeground2Selected:Zr,colorNeutralForeground2BrandHover:Zr,colorNeutralForeground2BrandPressed:Zr,colorNeutralForeground2BrandSelected:Zr,colorNeutralForeground3:Ht,colorNeutralForeground3Hover:Zr,colorNeutralForeground3Pressed:Zr,colorNeutralForeground3Selected:Zr,colorNeutralForeground3BrandHover:Zr,colorNeutralForeground3BrandPressed:Zr,colorNeutralForeground3BrandSelected:Zr,colorNeutralForeground4:Ht,colorNeutralForegroundDisabled:aS,colorNeutralForegroundInvertedDisabled:aS,colorBrandForegroundLink:Ec,colorBrandForegroundLinkHover:Ec,colorBrandForegroundLinkPressed:Ec,colorBrandForegroundLinkSelected:Ec,colorNeutralForeground2Link:Ec,colorNeutralForeground2LinkHover:Ec,colorNeutralForeground2LinkPressed:Ec,colorNeutralForeground2LinkSelected:Ec,colorCompoundBrandForeground1:yt,colorCompoundBrandForeground1Hover:yt,colorCompoundBrandForeground1Pressed:yt,colorBrandForeground1:Ht,colorBrandForeground2:Ht,colorBrandForeground2Hover:Ht,colorBrandForeground2Pressed:Ht,colorNeutralForeground1Static:Yn,colorNeutralForegroundStaticInverted:Ht,colorNeutralForegroundInverted:Zr,colorNeutralForegroundInvertedHover:Zr,colorNeutralForegroundInvertedPressed:Zr,colorNeutralForegroundInvertedSelected:Zr,colorNeutralForegroundInverted2:Ht,colorNeutralForegroundOnBrand:ise,colorNeutralForegroundInvertedLink:Ec,colorNeutralForegroundInvertedLinkHover:Ec,colorNeutralForegroundInvertedLinkPressed:Ec,colorNeutralForegroundInvertedLinkSelected:Ec,colorBrandForegroundInverted:Ht,colorBrandForegroundInvertedHover:Zr,colorBrandForegroundInvertedPressed:Zr,colorBrandForegroundOnLight:ise,colorBrandForegroundOnLightHover:Zr,colorBrandForegroundOnLightPressed:Zr,colorBrandForegroundOnLightSelected:Zr,colorNeutralBackground1:Yn,colorNeutralBackground1Hover:yt,colorNeutralBackground1Pressed:yt,colorNeutralBackground1Selected:yt,colorNeutralBackground2:Yn,colorNeutralBackground2Hover:yt,colorNeutralBackground2Pressed:yt,colorNeutralBackground2Selected:yt,colorNeutralBackground3:Yn,colorNeutralBackground3Hover:yt,colorNeutralBackground3Pressed:yt,colorNeutralBackground3Selected:yt,colorNeutralBackground4:Yn,colorNeutralBackground4Hover:yt,colorNeutralBackground4Pressed:yt,colorNeutralBackground4Selected:yt,colorNeutralBackground5:Yn,colorNeutralBackground5Hover:yt,colorNeutralBackground5Pressed:yt,colorNeutralBackground5Selected:yt,colorNeutralBackground6:Yn,colorNeutralBackgroundInverted:Yn,colorNeutralBackgroundStatic:Yn,colorNeutralBackgroundAlpha:Yn,colorNeutralBackgroundAlpha2:Yn,colorSubtleBackgroun
1597d:"transparent",colorSubtleBackgroundHover:yt,colorSubtleBackgroundPressed:yt,colorSubtleBackgroundSelected:yt,colorSubtleBackgroundLightAlphaHover:yt,colorSubtleBackgroundLightAlphaPressed:yt,colorSubtleBackgroundLightAlphaSelected:yt,colorSubtleBackgroundInverted:"transparent",colorSubtleBackgroundInvertedHover:yt,colorSubtleBackgroundInvertedPressed:yt,colorSubtleBackgroundInvertedSelected:yt,colorTransparentBackground:"transparent",colorTransparentBackgroundHover:yt,colorTransparentBackgroundPressed:yt,colorTransparentBackgroundSelected:yt,colorNeutralBackgroundDisabled:Yn,colorNeutralBackgroundInvertedDisabled:Yn,colorNeutralStencil1:Ht,colorNeutralStencil2:Ht,colorNeutralStencil1Alpha:Ht,colorNeutralStencil2Alpha:Ht,colorBackgroundOverlay:Qa[50],colorScrollbarOverlay:PD,colorBrandBackground:PD,colorBrandBackgroundHover:yt,colorBrandBackgroundPressed:yt,colorBrandBackgroundSelected:yt,colorCompoundBrandBackground:yt,colorCompoundBrandBackgroundHover:yt,colorCompoundBrandBackgroundPressed:yt,colorBrandBackgroundStatic:Yn,colorBrandBackground2:Yn,colorBrandBackground2Hover:Yn,colorBrandBackground2Pressed:Yn,colorBrandBackground3Static:Yn,colorBrandBackground4Static:Yn,colorBrandBackgroundInverted:PD,colorBrandBackgroundInvertedHover:yt,colorBrandBackgroundInvertedPressed:yt,colorBrandBackgroundInvertedSelected:yt,colorNeutralCardBackground:Yn,colorNeutralCardBackgroundHover:yt,colorNeutralCardBackgroundPressed:yt,colorNeutralCardBackgroundSelected:yt,colorNeutralCardBackgroundDisabled:Yn,colorNeutralStrokeAccessible:Ht,colorNeutralStrokeAccessibleHover:yt,colorNeutralStrokeAccessiblePressed:yt,colorNeutralStrokeAccessibleSelected:yt,colorNeutralStroke1:Ht,colorNeutralStroke1Hover:yt,colorNeutralStroke1Pressed:yt,colorNeutralStroke1Selected:yt,colorNeutralStroke2:Ht,colorNeutralStroke3:Ht,colorNeutralStrokeSubtle:Ht,colorNeutralStrokeOnBrand:Yn,colorNeutralStrokeOnBrand2:Ht,colorNeutralStrokeOnBrand2Hover:Ht,colorNeutralStrokeOnBrand2Pressed:Ht,colorNeutralStrokeOnBrand2Selected:Ht,colorBrandStroke1:Ht,colorBrandStroke2:Ht,colorBrandStroke2Hover:yt,colorBrandStroke2Pressed:yt,colorBrandStroke2Contrast:Yn,colorCompoundBrandStroke:yt,colorCompoundBrandStrokeHover:yt,colorCompoundBrandStrokePressed:yt,colorNeutralStrokeDisabled:aS,colorNeutralStrokeInvertedDisabled:aS,colorTransparentStroke:Ht,colorTransparentStrokeInteractive:yt,colorTransparentStrokeDisabled:aS,colorNeutralStrokeAlpha:Ht,colorNeutralStrokeAlpha2:Yn,colorStrokeFocus1:Yn,colorStrokeFocus2:yt,colorNeutralShadowAmbient:"rgba(0,0,0,0.24)",colorNeutralShadowKey:"rgba(0,0,0,0.28)",colorNeutralShadowAmbientLighter:"rgba(0,0,0,0.12)",colorNeutralShadowKeyLighter:"rgba(0,0,0,0.14)",colorNeutralShadowAmbientDarker:"rgba(0,0,0,0.40)",colorNeutralShadowKeyDarker:"rgba(0,0,0,0.48)",colorBrandShadowAmbient:"rgba(0,0,0,0.30)",colorBrandShadowKey:"rgba(0,0,0,0.25)"}),S$t=()=>{const e=w$t();return{...lq,...fq,...hq,...mq,...pq,...yq,...gq,...vq,...dq,...uq,...e,...b$t,...wq,...Y1(e.colorNeutralShadowAmbient,e.colorNeutralShadowKey),...Y1(e.colorBrandShadowAmbient,e.colorBrandShadowKey,"Brand")}},_$t=S$t(),C$t=e=>xBt(e.root,{}),E$t=(e,t)=>{const{bordered:n=!1,fit:r="default",block:i=!1,shape:o="square",shadow:s=!1}=e;return{bordered:n,fit:r,block:i,shape:o,shadow:s,components:{root:"img"},root:WUt(wBt("img",{ref:t,...e}),{elementType:"img"})}},T$t={root:"fui-Image"},k$t=VUt({base:{g2u3we:"fj3muxo",h3c5rm:["f1akhkt","f1lxtadh"],B9xav0g:"f1aperda",zhjwy3:["f1lxtadh","f1akhkt"],Beyfa6y:0,Bbmb7ep:0,Btl43ni:0,B7oj6ja:0,Dimara:"f1fabniw",B7ck84d:"f1ewtqcl",mc9l5x:"f14t3ns0"},bordered:{icvyot:"fzkkow9",vrafjx:["fcdblym","fjik90z"],oivjwe:"fg706s2",wvpqe5:["fjik90z","fcdblym"],B4j52fo:"f192inf7",Bekrc4i:["f5tn483","f1ojsxk5"],Bn0qgzm:"f1vxd6vx",ibv6hh:["f1ojsxk5","f5tn483"]},circular:{Beyfa6y:0,Bbmb7ep:0,Btl43ni:0,B7oj6ja:0,Dimara:"f44lkw9"},rounded:{Beyfa6y:0,Bbmb7ep:0,Btl43ni:0,B7oj6ja:0,Dimara:"ft85np5"},square:{},shadow:{E5pizo:"f1whvlc6"},center:{st4lth:"f1plgu50",Ermj5k:"f14xojzb",Bqenvij:"f1l02sjl",a9b677:"fly5x3f"},contain:{st4lth:"f1kle4es",Ermj5k:"f14xojzb",Bqenvij:"f1l02sjl",a9b677:"fly5x3f"},default:{},cover:{st4lth:"f1ps3kmd",Ermj5k:"f14xojzb",Bqenvij:"f1l02sjl",a9b677:"fly5x3f"}
1597,none:{st4lth:"f1plgu50",Ermj5k:["f13uwng7","fjmyj0p"],Bqenvij:"f1l02sjl",a9b677:"fly5x3f"},block:{a9b677:"fly5x3f"}},{d:[".fj3muxo{border-top-color:var(--colorNeutralStroke1);}",".f1akhkt{border-right-color:var(--colorNeutralStroke1);}",".f1lxtadh{border-left-color:var(--colorNeutralStroke1);}",".f1aperda{border-bottom-color:var(--colorNeutralStroke1);}",[".f1fabniw{border-radius:var(--borderRadiusNone);}",{p:-1}],".f1ewtqcl{box-sizing:border-box;}",".f14t3ns0{display:inline-block;}",".fzkkow9{border-top-style:solid;}",".fcdblym{border-right-style:solid;}",".fjik90z{border-left-style:solid;}",".fg706s2{border-bottom-style:solid;}",".f192inf7{border-top-width:var(--strokeWidthThin);}",".f5tn483{border-right-width:var(--strokeWidthThin);}",".f1ojsxk5{border-left-width:var(--strokeWidthThin);}",".f1vxd6vx{border-bottom-width:var(--strokeWidthThin);}",[".f44lkw9{border-radius:var(--borderRadiusCircular);}",{p:-1}],[".ft85np5{border-radius:var(--borderRadiusMedium);}",{p:-1}],".f1whvlc6{box-shadow:var(--shadow4);}",".f1plgu50{object-fit:none;}",".f14xojzb{object-position:center;}",".f1l02sjl{height:100%;}",".fly5x3f{width:100%;}",".f1kle4es{object-fit:contain;}",".f1ps3kmd{object-fit:cover;}",".f13uwng7{object-position:left top;}",".fjmyj0p{object-position:right top;}"]}),x$t=e=>{"use no memo";const t=k$t();return e.root.className=TUt(T$t.root,t.base,e.block&&t.block,e.bordered&&t.bordered,e.shadow&&t.shadow,t[e.fit],t[e.shape],e.root.className),e},Ef=b.forwardRef((e,t)=>{const n=E$t(e,t);return x$t(n),_Bt("useImageStyles_unstable")(n),C$t(n)});Ef.displayName="Image";const iw=()=>{const[e,t]=b.useState();return b.useEffect(()=>{(async()=>{const r=await zr.app.getContext();t(r)})()},[]),e},Ake=()=>{const e=iw();return b.useMemo(()=>!!e&&e.page.frameContext===zr.FrameContexts.sidePanel,[e])};function A$t(){const[e,t]=b.useState(null);return b.useEffect(()=>{(async()=>{try{await zr.app.initialize(),t(!0)}catch{t(!1)}})()},[]),e}function I$t(){const e=iw();return b.useMemo(()=>(e==null?void 0:e.app.host.clientType)===zr.HostClientType.ios||(e==null?void 0:e.app.host.clientType)===zr.HostClientType.android,[e])}function Ike(){const e=iw();return b.useMemo(()=>{var n;return!e||e.page.frameContext!==zr.FrameContexts.sidePanel?void 0:(((n=e.chat)==null?void 0:n.id)??"").includes("meeting_")?"scheduled":"adhoc"},[e])}const R$t="_SupportDialog_fyoc3_1",P$t={SupportDialog:R$t};function Sq(e){return h.jsx(xs,{open:e.open,onOpenChange:e.onOpenChange,title:"Support",content:h.jsx(PO,{}),className:P$t.SupportDialog})}const O$t={at_least_2_languages:"Please select at least two languages to continue.",no_minutes:"No minutes remaining."};function N$t(){var f,p;const[e,t]=b.useState(),n=iw(),r="byrdhouse-tab-id",[i,o]=b.useState(0),s=b.useRef();b.useEffect(()=>{const g=async m=>{try{t(void 0),s.current=m,o(y=>y+1)}catch(y){console.error(y),t("Something went wrong when adding Langfinity to this meeting, please try again.")}};zr.pages.config.registerOnSaveHandler(g),zr.app.notifySuccess()},[(f=n==null?void 0:n.chat)==null?void 0:f.id]);const[a]=Jt(),{login:c,loading:l}=Pye();b.useEffect(()=>{a.auth&&zr.pages.config.setValidityState(!0)},[a.auth]);const[u,d]=b.useState(!1);return l?h.jsx(Sn,{}):a.auth?h.jsxs("div",{className:`${eg.ConfigureTab} ${eg.CreateOrEdit}`,children:[h.jsx(g3,{roomType:"teams",teamsParams:{teams_chat_id:(p=n==null?void 0:n.chat)==null?void 0:p.id},hideSubmit:!0,triggerSubmit:i,onCreatedOrUpdated:async g=>{var m;await zr.pages.config.setConfig({contentUrl:`${window.location.origin}/#/teams/room/${g.data.room.id}`,websiteUrl:`${window.location.origin}/#/teams/room/${g.data.room.id}`,removeUrl:`${window.location.origin}/#/teams/room/${g.data.room.id}/remove`,suggestedDisplayName:"Langfinity AI Translation",entityId:r}),(m=s.current)==null||m.notifySuccess()},onInvalid:g=>{var m;(m=s.current)==null||m.notifyFailure(),s.current=void 0,t(g.map(y=>O$t[y]).join(" "))},onError:g=>{var m;(m=s.current)==null||m.notifyFailure(),s.current=void 0,console.error(g),zp(g),t("Something went wrong when adding Langfinity to this meeting, please try again.")}}),e&&h.jsx("div",{style:{color:"red"},children:e})]}):h.jsxs(h.Fragment,{children:[h.jsx(Sq,{open:u,onOpenChange:d}),h.jsxs("div",{className:eg.ConfigureTab,children:[h.jsxs("div",{className:eg.TabConfigHeader,children:[h.jsx(Ef,{src:"logo.svg"}),h.jsx("h1",{children:"Welcome to Langfinity"}),h.jsx("h2",{children:"AI-powered, real-time translation in voice and captions for 50+ languages for your Teams meetings, webinars, and town halls"})]}),h.jsx(qe,{onClick:()=>c(),children:"Continue with Microsoft"}),h.jsxs("div",{className:eg.CreateAccount,children:[h.jsxs("p",{children:["Don't have an account?"," ",h.jsx("span",{onClick:()=>
1597d(!0),className:eg.Support,children:"Contact Support"})]}),h.jsx(qe,{color:"gray",backgroundColor:"black",borderColor:"dark-gray",onClick:()=>c(),children:"Create an account"})]}),h.jsxs("div",{className:eg.TabConfigFooter,children:[h.jsxs("p",{children:[h.jsx("a",{href:"https://byrdhouse.notion.site/byrdhouse/Privacy-Policy-c71b7c579187429da97f8aec36b1585e",target:"_blank",rel:"noreferrer",children:"Privacy Policy"})," ",h.jsx("a",{href:"https://byrdhouse.notion.site/Terms-of-Service-7d7aa2e356ef4f22bec82a8d885fdc4d",target:"_blank",rel:"noreferrer",children:"Terms of Service"})]}),h.jsx("p",{children:"© 2025 BYRDHOUSE INC"})]})]})]})}var M$t=function(){var e=new URLSearchParams(window.location.search),t=e.get("theme");return t??void 0};function D$t(e){var t=b.useState(void 0),n=t[0],r=t[1],i=b.useState(void 0),o=i[0],s=i[1],a=b.useState(void 0),c=a[0],l=a[1],u=b.useState(ose),d=u[0],f=u[1],p=b.useState("default"),g=p[0],m=p[1],y=b.useState(e&&e.initialTheme?e.initialTheme:M$t())[0],v=b.useState(void 0),w=v[0],S=v[1],C=function(T){switch(m(T||"default"),T){case"dark":f(v$t);break;case"contrast":f(_$t);break;case"default":default:f(ose)}},E=e!=null&&e.setThemeHandler?e.setThemeHandler:C;return b.useEffect(function(){y&&E(y),zr.app.initialize().then(function(){zr.app.getContext().then(function(T){Am.unstable_batchedUpdates(function(){s(!0),S(T),l(T.page.isFullScreen)}),E(T.app.theme),zr.app.registerOnThemeChangeHandler(E),zr.pages.registerFullScreenHandler(function(x){l(x)}),r(!1)}).catch(function(){r(!1),s(!1)})}).catch(function(){r(!1),s(!1)})},[]),[{inTeams:o,fullScreen:c,theme:d,context:w,themeString:g,loading:n},{setTheme:E}]}var L$t=function(){return function(e,t){switch(t.type){case"loading":return{data:e.data,loading:!0};case"result":return{data:t.result,loading:!1};case"error":return{loading:!1,error:t.error}}}};function F$t(e,t){var n,r=(n=void 0)!==null&&n!==void 0?n:!0,i=b.useReducer(L$t(),{loading:r}),o=i[0],s=o.data,a=o.loading,c=o.error,l=i[1];function u(){a||l({type:"loading"}),e().then(function(d){return l({type:"result",result:d})}).catch(function(d){return l({type:"error",error:d})})}return b.useEffect(function(){r&&u()},[]),{data:s,loading:a,error:c,reload:u}}function uU(e){this.message=e}uU.prototype=new Error,uU.prototype.name="InvalidCharacterError";var sse=typeof window<"u"&&window.atob&&window.atob.bind(window)||function(e){var t=String(e).replace(/=+$/,"");if(t.length%4==1)throw new uU("'atob' failed: The string to be decoded is not correctly encoded.");for(var n,r,i=0,o=0,s="";r=t.charAt(o++);~r&&(n=i%4?64*n+r:r,i++%4)?s+=String.fromCharCode(255&n>>(-2*i&6)):0)r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(r);return s};function j$t(e){var t=e.replace(/-/g,"+").replace(/_/g,"/");switch(t.length%4){case 0:break;case 2:t+="==";break;case 3:t+="=";break;default:throw"Illegal base64url string!"}try{return(function(n){return decodeURIComponent(sse(n).replace(/(.)/g,(function(r,i){var o=i.charCodeAt(0).toString(16).toUpperCase();return o.length<2&&(o="0"+o),"%"+o})))})(t)}catch{return sse(t)}}function y3(e){this.message=e}function U$t(e,t){if(typeof e!="string")throw new y3("Invalid token specified");var n=(t=t||{}).header===!0?0:1;try{return JSON.parse(j$t(e.split(".")[n]))}catch(r){throw new y3("Invalid token specified: "+r.message)}}y3.prototype=new Error,y3.prototype.name="InvalidTokenError";/*! @azure/msal-common v14.16.1 2025-08-05 */const De={LIBRARY_NAME:"MSAL.JS",SKU:"msal.js.common",CACHE_PREFIX:"msal",DEFAULT_AUTHORITY:"https://login.microsoftonline.com/common/",DEFAULT_AUTHORITY_HOST:"login.microsoftonline.com",DEFAULT_COMMON_TENANT:"common",ADFS:"adfs",DSTS:"dstsv2",AAD_INSTANCE_DISCOVERY_ENDPT:"https://login.microsoftonline.com/common/discovery/instance?api-version=1.1&authorization_endpoint=",CIAM_AUTH_URL:".ciamlogin.com",AAD_TENANT_DOMAIN_SUFFIX:".onmicrosoft.com",RESOURCE_DELIM:"|",NO_ACCOUNT:"NO_ACCOUNT",CLAIMS:"claims",CONSUMER_UTID:"9188040d-6c67-4c5b-b112-36a304b66dad",OPENID_SCOPE:"openid",PROFILE_SCOPE:"profile",OFFLINE_ACCESS_SCOPE:"offline_access",EMAIL_SCOPE:"email",CODE_RESPONSE_TYPE:"code",CODE_GRANT_TYPE:"authorization_code",RT_GRANT_TYPE:"refresh_token",FRAGMENT_RESPONSE_MODE:"fragment",S256_CODE_CHALLENGE_METHOD:"S256",URL_FORM_CONTENT_TYPE:"application/x-www-form-urlencoded;charset=utf-8",AUTHORIZATION_PENDING:"authorization_pending",NOT_DEFINED:"not_defined",EMPTY_STRING:"",NOT_APPLICABLE:"N/A",NOT_AVAILABLE:"Not Available",FORWARD_SLASH:"/",IMDS_ENDPOINT:"http://169.254.169.254/metadata/instance/compute/location",IMDS_VERSION:"2020-06-01",IMDS_TIMEOUT:2e3,AZURE_REGION_AUTO_DISCOVER_FLAG:"TryAutoDetect",REGIONAL_AUTH_PUBLIC_CLOUD_SUFFIX:"login.microsoft.com",KNOWN_PUBLIC_CLOUDS:["login.microsoftonline.com","login.windows.net","login.microsoft.com","sts.windows.net"],TOKEN_RESPONSE_TYPE:"token",ID_TOKEN_RESPONSE_TYPE:"id_token",SHR_NONCE_VALIDITY:240,INVALID_INSTANCE:"invalid_instance"},Tk={CLIENT_ERROR_RANGE_START:400,CLIENT_ERROR_RANGE_END:499,SERVER_ERROR_RANGE_START:500,SERVER_ERROR_RANGE_END:599},ow=[De.OPENID_SCOPE,De.PROFILE_SCOPE,De.OFFLINE_ACCESS_SCOPE],ase=[...ow,De.EMAIL_SCOPE],Fs={CONTENT_TYPE:"Content-Type",CONTENT_LENGTH:"Content-Length",RETRY_AFTER:"Retry-After",CCS_HEADER:"X-AnchorMailbox",WWWAuthenticate:"WWW-Authenticate",AuthenticationInfo:"Authentication-Info",X_MS_REQUEST_ID:"x-ms-request-id",X_MS_HTTP_VERSION:"x-ms-httpver"},Ro={ID_TOKEN:"idtoken",CLIENT_INFO:"client.info",ADAL_ID_TOKEN:"adal.idtoken",ERROR:"error",ERROR_DESC:"error.description",ACTIVE_ACCOUNT:"active-account",ACTIVE_ACCOUNT_FILTERS:"active-account-filters"},em={COMMON:"common",ORGANIZATIONS:"organizations",CONSUMERS:"consumers"},kk={ACCESS_TOKEN:"access_token",XMS_CC:"xms_cc"},Fo={LOGIN:"login",SELECT_ACCOUNT:"select_account",CONSENT:"consent",NONE:"none",CREATE:"create",NO_SESSION:"no_session"},cse={PLAIN:"plain",S256:"S256"},h2={QUERY:"query",FRAGMENT:"fragment"},B$t={...h2},Rke={AUTHORIZATION_CODE_GRANT:"authorization_code",REFRESH_TOKEN_GRANT:"refresh_token"},xk={MSSTS_ACCOUNT_TYPE:"MSSTS",ADFS_ACCOUNT_TYPE:"ADFS",GENERIC_ACCOUNT_TYPE:"Generic"},ws={CACHE_KEY_SEPARATOR:"-",CLIENT_INFO_SEPARATOR:"."},zt={ID_TOKEN:"IdToken",ACCESS_TOKEN:"AccessToken",ACCESS_TOKEN_WITH_AUTH_SCHEME:"AccessToken_With_AuthScheme",REFRESH_TOKEN:"RefreshToken"},_q="appmetadata",$$t="client_info",b_="1",b3={CACHE_KEY:"authority-metadata",REFRESH_TIME_SECONDS:3600*24}
1597,qa={CONFIG:"config",CACHE:"cache",NETWORK:"network",HARDCODED_VALUES:"hardcoded_values"},Xo={SCHEMA_VERSION:5,MAX_LAST_HEADER_BYTES:330,MAX_CACHED_ERRORS:50,CACHE_KEY:"server-telemetry",CATEGORY_SEPARATOR:"|",VALUE_SEPARATOR:",",OVERFLOW_TRUE:"1",OVERFLOW_FALSE:"0",UNKNOWN_ERROR:"unknown_error"},lr={BEARER:"Bearer",POP:"pop",SSH:"ssh-cert"},w_={DEFAULT_THROTTLE_TIME_SECONDS:60,DEFAULT_MAX_THROTTLE_TIME_SECONDS:3600,THROTTLING_PREFIX:"throttling",X_MS_LIB_CAPABILITY_VALUE:"retry-after, h429"},lse={INVALID_GRANT_ERROR:"invalid_grant",CLIENT_MISMATCH_ERROR:"client_mismatch"},use={username:"username",password:"password"},Ak={httpSuccess:200,httpBadRequest:400},A0={FAILED_AUTO_DETECTION:"1",INTERNAL_CACHE:"2",ENVIRONMENT_VARIABLE:"3",IMDS:"4"},OD={CONFIGURED_NO_AUTO_DETECTION:"2",AUTO_DETECTION_REQUESTED_SUCCESSFUL:"4",AUTO_DETECTION_REQUESTED_FAILED:"5"},Qh={NOT_APPLICABLE:"0",FORCE_REFRESH_OR_CLAIMS:"1",NO_CACHED_ACCESS_TOKEN:"2",CACHED_ACCESS_TOKEN_EXPIRED:"3",PROACTIVELY_REFRESHED:"4"},H$t={Pop:"pop"},z$t=300;/*! @azure/msal-common v14.16.1 2025-08-05 */const Cq="unexpected_error",V$t="post_request_failed";/*! @azure/msal-common v14.16.1 2025-08-05 */const dse={[Cq]:"Unexpected error in authentication.",[V$t]:"Post request failed from the network, could be a 4xx/5xx or a network unavailability. Please check the exact error code for details."};class Wr extends Error{constructor(t,n,r){const i=n?`${t}: ${n}`:t;super(i),Object.setPrototypeOf(this,Wr.prototype),this.errorCode=t||De.EMPTY_STRING,this.errorMessage=n||De.EMPTY_STRING,this.subError=r||De.EMPTY_STRING,this.name="AuthError"}setCorrelationId(t){this.correlationId=t}}function Pke(e,t){return new Wr(e,t?`${dse[e]} ${t}`:dse[e])}/*! @azure/msal-common v14.16.1 2025-08-05 */const Eq="client_info_decoding_error",Oke="client_info_empty_error",Tq="token_parsing_error",Nke="null_or_empty_token",df="endpoints_resolution_error",Mke="network_error",Dke="openid_config_error",Lke="hash_not_deserialized",Q1="invalid_state",Fke="state_mismatch",w3="state_not_found",jke="nonce_mismatch",kq="auth_time_not_found",Uke="max_age_transpired",W$t="multiple_matching_tokens",q$t="multiple_matching_accounts",Bke="multiple_matching_appMetadata",$ke="request_cannot_be_made",Hke="cannot_remove_empty_scope",zke="cannot_append_scopeset",dU="empty_input_scopeset",G$t="device_code_polling_cancelled",K$t="device_code_expired",Y$t="device_code_unknown_error",xq="no_account_in_silent_request",Vke="invalid_cache_record",Aq="invalid_cache_environment",fU="no_account_found",hU="no_crypto_object",pU="unexpected_credential_type",Q$t="invalid_assertion",X$t="invalid_client_credential",Df="token_refresh_required",J$t="user_timeout_reached",Wke="token_claims_cnf_required_for_signedjwt",qke="authorization_code_missing_from_server_response",Z$t="binding_key_not_removed",Gke="end_session_endpoint_not_supported",Iq="key_id_missing",eHt="no_network_connectivity",tHt="user_canceled",nHt="missing_tenant_id_error",fn="method_not_implemented",rHt="nested_app_auth_bridge_disabled";/*! @azure/msal-common v14.16.1 2025-08-05 */const fse={[Eq]:"The client info could not be parsed/decoded correctly",[Oke]:"The client info was empty",[Tq]:"Token cannot be parsed",[Nke]:"The token is null or empty",[df]:"Endpoints cannot be resolved",[Mke]:"Network request failed",[Dke]:"Could not retrieve endpoints. Check your authority and verify the .well-known/openid-configuration endpoint returns the required endpoints.",[Lke]:"The hash parameters could not be deserialized",[Q1]:"State was not the expected format",[Fke]:"State mismatch error",[w3]:"State not found",[jke]:"Nonce mismatch error",[kq]:"Max Age was requested and the ID token is missing the auth_time variable. auth_time is an optional claim and is not enabled by default - it must be enabled. See https://aka.ms/msaljs/optional-claims for more information.",[Uke]:"Max Age is set to 0, or too much time has elapsed since the last end-user authentication.",[W$t]:"The cache contains multiple tokens satisfying the requirements. Call AcquireToken again providing more requirements such as authority or account.",[q$t]:"The cache contains multiple accounts satisfying the given parameters. Please pass more info to obtain the correct account",[Bke]:"The cache contains multiple appMetadata satisfying the given parameters. Please pass more info to obtain the correct appMetadata",[$ke]:"Token request cannot be made without authorization code or refresh token.",[Hke]:"Cannot remove null or empty scope from ScopeSet",[zke]:"Cannot append ScopeSet",[dU]:"Empty input ScopeSet cannot be processed",[G$t]:"Caller has cancelled token endpoint polling during device code flow by setting DeviceCodeRequest.cancel = true.",[K$t]:"Device code is expired.",[Y$t]:"Device code stopped polling for unknown reasons.",[xq]:"Please pass an account object, silent flow is not supported without account information",[Vke]:"Cache record object was null or undefined.",[Aq]:"Invalid environment when attempting to create cache entry",[fU]:"No account found in cache for given key.",[hU]:"No crypto object detected.",[pU]:"Unexpected credential type.",[Q$t]:"Client assertion must meet requirements described 
1597in https://tools.ietf.org/html/rfc7515",[X$t]:"Client credential (secret, certificate, or assertion) must not be empty when creating a confidential client. An application should at most have one credential",[Df]:"Cannot return token from cache because it must be refreshed. This may be due to one of the following reasons: forceRefresh parameter is set to true, claims have been requested, there is no cached access token or it is expired.",[J$t]:"User defined timeout for device code polling reached",[Wke]:"Cannot generate a POP jwt if the token_claims are not populated",[qke]:"Server response does not contain an authorization code to proceed",[Z$t]:"Could not remove the credential's binding key from storage.",[Gke]:"The provided authority does not support logout",[Iq]:"A keyId value is missing from the requested bound token's cache record and is required to match the token to it's stored binding key.",[eHt]:"No network connectivity. Check your internet connection.",[tHt]:"User cancelled the flow.",[nHt]:"A tenant id - not common, organizations, or consumers - must be specified when using the client_credentials flow.",[fn]:"This method has not been implemented",[rHt]:"The nested app auth bridge is disabled"};class JN extends Wr{constructor(t,n){super(t,n?`${fse[t]}: ${n}`:fse[t]),this.name="ClientAuthError",Object.setPrototypeOf(this,JN.prototype)}}function Qe(e,t){return new JN(e,t)}/*! @azure/msal-common v14.16.1 2025-08-05 */const S3={createNewGuid:()=>{throw Qe(fn)},base64Decode:()=>{throw Qe(fn)},base64Encode:()=>{throw Qe(fn)},base64UrlEncode:()=>{throw Qe(fn)},encodeKid:()=>{throw Qe(fn)},async getPublicKeyThumbprint(){throw Qe(fn)},async removeTokenBindingKey(){throw Qe(fn)},async clearKeystore(){throw Qe(fn)},async signJwt(){throw Qe(fn)},async hashString(){throw Qe(fn)}};/*! @azure/msal-common v14.16.1 2025-08-05 */var ei;(function(e){e[e.Error=0]="Error",e[e.Warning=1]="Warning",e[e.Info=2]="Info",e[e.Verbose=3]="Verbose",e[e.Trace=4]="Trace"})(ei||(ei={}));class _m{constructor(t,n,r){this.level=ei.Info;const i=()=>{},o=t||_m.createDefaultLoggerOptions();this.localCallback=o.loggerCallback||i,this.piiLoggingEnabled=o.piiLoggingEnabled||!1,this.level=typeof o.logLevel=="number"?o.logLevel:ei.Info,this.correlationId=o.correlationId||De.EMPTY_STRING,this.packageName=n||De.EMPTY_STRING,this.packageVersion=r||De.EMPTY_STRING}static createDefaultLoggerOptions(){return{loggerCallback:()=>{},piiLoggingEnabled:!1,logLevel:ei.Info}}clone(t,n,r){return new _m({loggerCallback:this.localCallback,piiLoggingEnabled:this.piiLoggingEnabled,logLevel:this.level,correlationId:r||this.correlationId},t,n)}logMessage(t,n){if(n.logLevel>this.level||!this.piiLoggingEnabled&&n.containsPii)return;const o=`${`[${new Date().toUTCString()}] : [${n.correlationId||this.correlationId||""}]`} : ${this.packageName}@${this.packageVersion} : ${ei[n.logLevel]} - ${t}`;this.executeCallback(n.logLevel,o,n.containsPii||!1)}executeCallback(t,n,r){this.localCallback&&this.localCallback(t,n,r)}error(t,n){this.logMessage(t,{logLevel:ei.Error,containsPii:!1,correlationId:n||De.EMPTY_STRING})}errorPii(t,n){this.logMessage(t,{logLevel:ei.Error,containsPii:!0,correlationId:n||De.EMPTY_STRING})}warning(t,n){this.logMessage(t,{logLevel:ei.Warning,containsPii:!1,correlationId:n||De.EMPTY_STRING})}warningPii(t,n){this.logMessage(t,{logLevel:ei.Warning,containsPii:!0,correlationId:n||De.EMPTY_STRING})}info(t,n){this.logMessage(t,{logLevel:ei.Info,containsPii:!1,correlationId:n||De.EMPTY_STRING})}infoPii(t,n){this.logMessage(t,{logLevel:ei.Info,containsPii:!0,correlationId:n||De.EMPTY_STRING})}verbose(t,n){this.logMessage(t,{logLevel:ei.Verbose,containsPii:!1,correlationId:n||De.EMPTY_STRING})}verbosePii(t,n){this.logMessage(t,{logLevel:ei.Verbose,containsPii:!0,correlationId:n||De.EMPTY_STRING})}trace(t,n){this.logMessage(t,{logLevel:ei.Trace,containsPii:!1,correlationId:n||De.EMPTY_STRING})}tracePii(t,n){this.logMessage(t,{logLevel:ei.Trace,containsPii:!0,correlationId:n||De.EMPTY_STRING})}isPiiLoggingEnabled(){return this.piiLoggingEnabled||!1}}/*! @azure/msal-common v14.16.1 2025-08-05 */const Kke="@azure/msal-common",Rq="14.16.1";/*! @azure/msal-common v14.16.1 2025-08-05 */const Pq={None:"none"};/*! @azure/msal-common v14.16.1 2025-08-05 */function t0(e,t){const n=iHt(e);try{const r=t(n);return JSON.parse(r)}catch{throw Qe(Tq)}}function iHt(e){if(!e)throw Qe(Nke);const n=/^([^\.\s]*)\.([^\.\s]+)\.([^\.\s]*)$/.exec(e);if(!n||n.length<4)throw Qe(Tq);return n[2]}function Yke(e,t){if(t===0||Date.now()-3e5>e+t)throw Qe(Uke)}/*! @azure/msal-common v14.16.1 2025-08-05 */function Ad(){return Math.round(new Date().getTime()/1e3)}function mU(e,t){const n=Number(e)||0;return Ad()+t>n}function oHt(e){return Number(e)>Ad()}/*! @azure/msal-common v14.16.1 2025-08-05 */function py(e){return[sHt
1597(e),aHt(e),cHt(e),lHt(e),uHt(e)].join(ws.CACHE_KEY_SEPARATOR).toLowerCase()}function ZN(e,t,n,r,i){return{credentialType:zt.ID_TOKEN,homeAccountId:e,environment:t,clientId:r,secret:n,realm:i}}function e4(e,t,n,r,i,o,s,a,c,l,u,d,f,p,g){var y,v;const m={homeAccountId:e,credentialType:zt.ACCESS_TOKEN,secret:n,cachedAt:Ad().toString(),expiresOn:s.toString(),extendedExpiresOn:a.toString(),environment:t,clientId:r,realm:i,target:o,tokenType:u||lr.BEARER};if(d&&(m.userAssertionHash=d),l&&(m.refreshOn=l.toString()),p&&(m.requestedClaims=p,m.requestedClaimsHash=g),((y=m.tokenType)==null?void 0:y.toLowerCase())!==lr.BEARER.toLowerCase())switch(m.credentialType=zt.ACCESS_TOKEN_WITH_AUTH_SCHEME,m.tokenType){case lr.POP:const w=t0(n,c);if(!((v=w==null?void 0:w.cnf)!=null&&v.kid))throw Qe(Wke);m.keyId=w.cnf.kid;break;case lr.SSH:m.keyId=f}return m}function Qke(e,t,n,r,i,o,s){const a={credentialType:zt.REFRESH_TOKEN,homeAccountId:e,environment:t,clientId:r,secret:n};return o&&(a.userAssertionHash=o),i&&(a.familyId=i),s&&(a.expiresOn=s.toString()),a}function Oq(e){return e.hasOwnProperty("homeAccountId")&&e.hasOwnProperty("environment")&&e.hasOwnProperty("credentialType")&&e.hasOwnProperty("clientId")&&e.hasOwnProperty("secret")}function hse(e){return e?Oq(e)&&e.hasOwnProperty("realm")&&e.hasOwnProperty("target")&&(e.credentialType===zt.ACCESS_TOKEN||e.credentialType===zt.ACCESS_TOKEN_WITH_AUTH_SCHEME):!1}function pse(e){return e?Oq(e)&&e.hasOwnProperty("realm")&&e.credentialType===zt.ID_TOKEN:!1}function mse(e){return e?Oq(e)&&e.credentialType===zt.REFRESH_TOKEN:!1}function sHt(e){return[e.homeAccountId,e.environment].join(ws.CACHE_KEY_SEPARATOR).toLowerCase()}function aHt(e){const t=e.credentialType===zt.REFRESH_TOKEN&&e.familyId||e.clientId;return[e.credentialType,t,e.realm||""].join(ws.CACHE_KEY_SEPARATOR).toLowerCase()}function cHt(e){return(e.target||"").toLowerCase()}function lHt(e){return(e.requestedClaimsHash||"").toLowerCase()}function uHt(e){return e.tokenType&&e.tokenType.toLowerCase()!==lr.BEARER.toLowerCase()?e.tokenType.toLowerCase():""}function dHt(e,t){const n=e.indexOf(Xo.CACHE_KEY)===0;let r=!0;return t&&(r=t.hasOwnProperty("failedRequests")&&t.hasOwnProperty("errors")&&t.hasOwnProperty("cacheHits")),n&&r}function fHt(e,t){let n=!1;e&&(n=e.indexOf(w_.THROTTLING_PREFIX)===0);let r=!0;return t&&(r=t.hasOwnProperty("throttleTime")),n&&r}function hHt({environment:e,clientId:t}){return[_q,e,t].join(ws.CACHE_KEY_SEPARATOR).toLowerCase()}function pHt(e,t){return t?e.indexOf(_q)===0&&t.hasOwnProperty("clientId")&&t.hasOwnProperty("environment"):!1}function mHt(e,t){return t?e.indexOf(b3.CACHE_KEY)===0&&t.hasOwnProperty("aliases")&&t.hasOwnProperty("preferred_cache")&&t.hasOwnProperty("preferred_network")&&t.hasOwnProperty("canonical_authority")&&t.hasOwnProperty("authorization_endpoint")&&t.hasOwnProperty("token_endpoint")&&t.hasOwnProperty("issuer")&&t.hasOwnProperty("aliasesFromNetwork")&&t.hasOwnProperty("endpointsFromNetwork")&&t.hasOwnProperty("expiresAt")&&t.hasOwnProperty("jwks_uri"):!1}function gse(){return Ad()+b3.REFRESH_TIME_SECONDS}function Ik(e,t,n){e.authorization_endpoint=t.authorization_endpoint,e.token_endpoint=t.token_endpoint,e.end_session_endpoint=t.end_session_endpoint,e.issuer=t.issuer,e.endpointsFromNetwork=n,e.jwks_uri=t.jwks_uri}function ND(e,t,n){e.aliases=t.aliases,e.preferred_cache=t.preferred_cache,e.preferred_network=t.preferred_network,e.aliasesFromNetwork=n}function vse(e){return e.expiresAt<=Ad()}/*! @azure/msal-common v14.16.1 2025-08-05 */const Xke="redirect_uri_empty",gHt="claims_request_parsing_error",Jke="authority_uri_insecure",PS="url_parse_error",Zke="empty_url_error",exe="empty_input_scopes_error",txe="invalid_prompt_value",Nq="invalid_claims",nxe="token_request_empty",rxe="logout_request_empty",ixe="invalid_code_challenge_method",Mq="pkce_params_missing",Dq="invalid_cloud_discovery_metadata",oxe="invalid_authority_metadata",sxe="untrusted_authority",t4="missing_ssh_jwk",axe="missing_ssh_kid",vHt="missing_nonce_authentication_header",yHt="invalid_authentication_header",cxe="cannot_set_OIDCOptions",lxe="cannot_allow_native_broker",uxe="authority_mismatch";/*! @azure/msal-common v14.16.1 2025-08-05 */const bHt={[Xke]:"A redirect URI is required for all calls, and none has been set.",[gHt]:"Could not parse the given claims request object.",[Jke]:"Authority URIs must use https.  Please see here for valid authority configuration options: https://docs.microsoft.com/en-us
1597/azure/active-directory/develop/msal-js-initializing-client-applications#configuration-options",[PS]:"URL could not be parsed into appropriate segments.",[Zke]:"URL was empty or null.",[exe]:"Scopes cannot be passed as null, undefined or empty array because they are required to obtain an access token.",[txe]:"Please see here for valid configuration options: https://azuread.github.io/microsoft-authentication-library-for-js/ref/modules/_azure_msal_common.html#commonauthorizationurlrequest",[Nq]:"Given claims parameter must be a stringified JSON object.",[nxe]:"Token request was empty and not found in cache.",[rxe]:"The logout request was null or undefined.",[ixe]:'code_challenge_method passed is invalid. Valid values are "plain" and "S256".',[Mq]:"Both params: code_challenge and code_challenge_method are to be passed if to be sent in the request",[Dq]:"Invalid cloudDiscoveryMetadata provided. Must be a stringified JSON object containing tenant_discovery_endpoint and metadata fields",[oxe]:"Invalid authorityMetadata provided. Must by a stringified JSON object containing authorization_endpoint, token_endpoint, issuer fields.",[sxe]:"The provided authority is not a trusted authority. Please include this authority in the knownAuthorities config parameter.",[t4]:"Missing sshJwk in SSH certificate request. A stringified JSON Web Key is required when using the SSH authentication scheme.",[axe]:"Missing sshKid in SSH certificate request. A string that uniquely identifies the public SSH key is required when using the SSH authentication scheme.",[vHt]:"Unable to find an authentication header containing server nonce. Either the Authentication-Info or WWW-Authenticate headers must be present in order to obtain a server nonce.",[yHt]:"Invalid authentication header provided",[cxe]:"Cannot set OIDCOptions parameter. Please change the protocol mode to OIDC or use a non-Microsoft authority.",[lxe]:"Cannot set allowNativeBroker parameter to true when not in AAD protocol mode.",[uxe]:"Authority mismatch error. Authority provided in login request or PublicClientApplication config does not match the environment of the provided account. Please use a matching account or make an interactive request to login to this authority."};class Lq extends Wr{constructor(t){super(t,bHt[t]),this.name="ClientConfigurationError",Object.setPrototypeOf(this,Lq.prototype)}}function gr(e){return new Lq(e)}/*! @azure/msal-common v14.16.1 2025-08-05 */class Xl{static isEmptyObj(t){if(t)try{const n=JSON.parse(t);return Object.keys(n).length===0}catch{}return!0}static startsWith(t,n){return t.indexOf(n)===0}static endsWith(t,n){return t.length>=n.length&&t.lastIndexOf(n)===t.length-n.length}static queryStringToObject(t){const n={},r=t.split("&"),i=o=>decodeURIComponent(o.replace(/\+/g," "));return r.forEach(o=>{if(o.trim()){const[s,a]=o.split(/=(.+)/g,2);s&&a&&(n[i(s)]=i(a))}}),n}static trimArrayEntries(t){return t.map(n=>n.trim())}static removeEmptyStringsFromArray(t){return t.filter(n=>!!n)}static jsonParseHelper(t){try{return JSON.parse(t)}catch{return null}}static matchPattern(t,n){return new RegExp(t.replace(/\\/g,"\\\\").replace(/\*/g,"[^ ]*").replace(/\?/g,"\\?")).test(n)}}/*! @azure/msal-common v14.16.1 2025-08-05 */class Bi{constructor(t){const n=t?Xl.trimArrayEntries([...t]):[],r=n?Xl.removeEmptyStringsFromArray(n):[];this.validateInputScopes(r),this.scopes=new Set,r.forEach(i=>this.scopes.add(i))}static fromString(t){const r=(t||De.EMPTY_STRING).split(" ");return new Bi(r)}static createSearchScopes(t){const n=new Bi(t);return n.containsOnlyOIDCScopes()?n.removeScope(De.OFFLINE_ACCESS_SCOPE):n.removeOIDCScopes(),n}validateInputScopes(t){if(!t||t.length<1)throw gr(exe)}containsScope(t){const n=this.printScopesLowerCase().split(" "),r=new Bi(n);return t?r.scopes.has(t.toLowerCase()):!1}containsScopeSet(t){return!t||t.scopes.size<=0?!1:this.scopes.size>=t.scopes.size&&t.asArray().every(n=>this.containsScope(n))}containsOnlyOIDCScopes(){let t=0;return ase.forEach(n=>{this.containsScope(n)&&(t+=1)}),this.scopes.size===t}appendScope(t){t&&this.scopes.add(t.trim())}appendScopes(t){try{t.forEach(n=>this.appendScope(n))}catch{throw Qe(zke)}}removeScope(t){if(!t)throw Qe(Hke);this.scopes.delete(t.trim())}removeOIDCScopes(){ase.forEach(t=>{this.scopes.delete(t)})}unionScopeSets(t){if(!t)throw Qe(dU);const n=new Set;
1597return t.scopes.forEach(r=>n.add(r.toLowerCase())),this.scopes.forEach(r=>n.add(r.toLowerCase())),n}intersectingScopeSets(t){if(!t)throw Qe(dU);t.containsOnlyOIDCScopes()||t.removeOIDCScopes();const n=this.unionScopeSets(t),r=t.getScopeCount(),i=this.getScopeCount();return n.size<i+r}getScopeCount(){return this.scopes.size}asArray(){const t=[];return this.scopes.forEach(n=>t.push(n)),t}printScopes(){return this.scopes?this.asArray().join(" "):De.EMPTY_STRING}printScopesLowerCase(){return this.printScopes().toLowerCase()}}/*! @azure/msal-common v14.16.1 2025-08-05 */function _3(e,t){if(!e)throw Qe(Oke);try{const n=t(e);return JSON.parse(n)}catch{throw Qe(Eq)}}function my(e){if(!e)throw Qe(Eq);const t=e.split(ws.CLIENT_INFO_SEPARATOR,2);return{uid:t[0],utid:t.length<2?De.EMPTY_STRING:t[1]}}/*! @azure/msal-common v14.16.1 2025-08-05 */function C3(e,t){return!!e&&!!t&&e===t.split(".")[1]}function Fq(e,t,n,r){if(r){const{oid:i,sub:o,tid:s,name:a,tfp:c,acr:l}=r,u=s||c||l||"";return{tenantId:u,localAccountId:i||o||"",name:a,isHomeTenant:C3(u,e)}}else return{tenantId:n,localAccountId:t,isHomeTenant:C3(n,e)}}function jq(e,t,n,r){let i=e;if(t){const{isHomeTenant:o,...s}=t;i={...e,...s}}if(n){const{isHomeTenant:o,...s}=Fq(e.homeAccountId,e.localAccountId,e.tenantId,n);return i={...i,...s,idTokenClaims:n,idToken:r},i}return i}/*! @azure/msal-common v14.16.1 2025-08-05 */const Ol={Default:0,Adfs:1,Dsts:2,Ciam:3};/*! @azure/msal-common v14.16.1 2025-08-05 */function dxe(e){return e&&(e.tid||e.tfp||e.acr)||null}/*! @azure/msal-common v14.16.1 2025-08-05 */const Gf={AAD:"AAD",OIDC:"OIDC"};/*! @azure/msal-common v14.16.1 2025-08-05 */class _o{generateAccountId(){return[this.homeAccountId,this.environment].join(ws.CACHE_KEY_SEPARATOR).toLowerCase()}generateAccountKey(){return _o.generateAccountCacheKey({homeAccountId:this.homeAccountId,environment:this.environment,tenantId:this.realm,username:this.username,localAccountId:this.localAccountId})}getAccountInfo(){return{homeAccountId:this.homeAccountId,environment:this.environment,tenantId:this.realm,username:this.username,localAccountId:this.localAccountId,name:this.name,nativeAccountId:this.nativeAccountId,authorityType:this.authorityType,tenantProfiles:new Map((this.tenantProfiles||[]).map(t=>[t.tenantId,t]))}}isSingleTenant(){return!this.tenantProfiles}static generateAccountCacheKey(t){const n=t.homeAccountId.split(".")[1];return[t.homeAccountId,t.environment||"",n||t.tenantId||""].join(ws.CACHE_KEY_SEPARATOR).toLowerCase()}static createAccount(t,n,r){var l,u,d,f,p,g;const i=new _o;n.authorityType===Ol.Adfs?i.authorityType=xk.ADFS_ACCOUNT_TYPE:n.protocolMode===Gf.AAD?i.authorityType=xk.MSSTS_ACCOUNT_TYPE:i.authorityType=xk.GENERIC_ACCOUNT_TYPE;let o;t.clientInfo&&r&&(o=_3(t.clientInfo,r)),i.clientInfo=t.clientInfo,i.homeAccountId=t.homeAccountId,i.nativeAccountId=t.nativeAccountId;const s=t.environment||n&&n.getPreferredCache();if(!s)throw Qe(Aq);i.environment=s,i.realm=(o==null?void 0:o.utid)||dxe(t.idTokenClaims)||"",i.localAccountId=(o==null?void 0:o.uid)||((l=t.idTokenClaims)==null?void 0:l.oid)||((u=t.idTokenClaims)==null?void 0:u.sub)||"";const a=((d=t.idTokenClaims)==null?void 0:d.preferred_username)||((f=t.idTokenClaims)==null?void 0:f.upn),c=(p=t.idTokenClaims)!=null&&p.emails?t.idTokenClaims.emails[0]:null;if(i.username=a||c||"",i.name=((g=t.idTokenClaims)==null?void 0:g.name)||"",i.cloudGraphHostName=t.cloudGraphHostName,i.msGraphHost=t.msGraphHost,t.tenantProfiles)i.tenantProfiles=t.tenantProfiles;else{const m=Fq(t.homeAccountId,i.localAccountId,i.realm,t.idTokenClaims);i.tenantProfiles=[m]}return i}static createFromAccountInfo(t,n,r){var o;const i=new _o;return i.authorityType=t.authorityType||xk.GENERIC_ACCOUNT_TYPE,i.homeAccountId=t.homeAccountId,i.localAccountId=t.localAccountId,i.nativeAccountId=t.nativeAccountId,i.realm=t.tenantId,i.environment=t.environment,i.username=t.username,i.name=t.name,i.cloudGraphHostName=n,i.msGraphHost=r,i.tenantProfiles=Array.from(((o=t.tenantProfiles)==null?void 0:o.values())||[]),i}static generateHomeAccountId(t,n,r,i,o){if(!(n===Ol.Adfs||n===Ol.Dsts)){if(t)try{const s=_3(t,i.base64Decode);
1597if(s.uid&&s.utid)return`${s.uid}.${s.utid}`}catch{}r.warning("No client info in response")}return(o==null?void 0:o.sub)||""}static isAccountEntity(t){return t?t.hasOwnProperty("homeAccountId")&&t.hasOwnProperty("environment")&&t.hasOwnProperty("realm")&&t.hasOwnProperty("localAccountId")&&t.hasOwnProperty("username")&&t.hasOwnProperty("authorityType"):!1}static accountInfoIsEqual(t,n,r){if(!t||!n)return!1;let i=!0;if(r){const o=t.idTokenClaims||{},s=n.idTokenClaims||{};i=o.iat===s.iat&&o.nonce===s.nonce}return t.homeAccountId===n.homeAccountId&&t.localAccountId===n.localAccountId&&t.username===n.username&&t.tenantId===n.tenantId&&t.environment===n.environment&&t.nativeAccountId===n.nativeAccountId&&i}}/*! @azure/msal-common v14.16.1 2025-08-05 */function fxe(e){return e.startsWith("#/")?e.substring(2):e.startsWith("#")||e.startsWith("?")?e.substring(1):e}function E3(e){if(!e||e.indexOf("=")<0)return null;try{const t=fxe(e),n=Object.fromEntries(new URLSearchParams(t));if(n.code||n.error||n.error_description||n.state)return n}catch{throw Qe(Lke)}return null}/*! @azure/msal-common v14.16.1 2025-08-05 */class An{get urlString(){return this._urlString}constructor(t){if(this._urlString=t,!this._urlString)throw gr(Zke);t.includes("#")||(this._urlString=An.canonicalizeUri(t))}static canonicalizeUri(t){if(t){let n=t.toLowerCase();return Xl.endsWith(n,"?")?n=n.slice(0,-1):Xl.endsWith(n,"?/")&&(n=n.slice(0,-2)),Xl.endsWith(n,"/")||(n+="/"),n}return t}validateAsUri(){let t;try{t=this.getUrlComponents()}catch{throw gr(PS)}if(!t.HostNameAndPort||!t.PathSegments)throw gr(PS);if(!t.Protocol||t.Protocol.toLowerCase()!=="https:")throw gr(Jke)}static appendQueryString(t,n){return n?t.indexOf("?")<0?`${t}?${n}`:`${t}&${n}`:t}static removeHashFromUrl(t){return An.canonicalizeUri(t.split("#")[0])}replaceTenantPath(t){const n=this.getUrlComponents(),r=n.PathSegments;return t&&r.length!==0&&(r[0]===em.COMMON||r[0]===em.ORGANIZATIONS)&&(r[0]=t),An.constructAuthorityUriFromObject(n)}getUrlComponents(){const t=RegExp("^(([^:/?#]+):)?(//([^/?#]*))?([^?#]*)(\\?([^#]*))?(#(.*))?"),n=this.urlString.match(t);if(!n)throw gr(PS);const r={Protocol:n[1],HostNameAndPort:n[4],AbsolutePath:n[5],QueryString:n[7]};let i=r.AbsolutePath.split("/");return i=i.filter(o=>o&&o.length>0),r.PathSegments=i,r.QueryString&&r.QueryString.endsWith("/")&&(r.QueryString=r.QueryString.substring(0,r.QueryString.length-1)),r}static getDomainFromUrl(t){const n=RegExp("^([^:/?#]+://)?([^/?#]*)"),r=t.match(n);if(!r)throw gr(PS);return r[2]}static getAbsoluteUrl(t,n){if(t[0]===De.FORWARD_SLASH){const i=new An(n).getUrlComponents();return i.Protocol+"//"+i.HostNameAndPort+t}return t}static constructAuthorityUriFromObject(t){return new An(t.Protocol+"//"+t.HostNameAndPort+"/"+t.PathSegments.join("/"))}static hashContainsKnownProperties(t){return!!E3(t)}}/*! @azure/msal-common v14.16.1 2025-08-05 */const hxe={endpointMetadata:{"login.microsoftonline.com":{token_endpoint:"https://login.microsoftonline.com/{tenantid}/oauth2/v2.0/token",jwks_uri:"https://login.microsoftonline.com/{tenantid}/discovery/v2.0/keys",issuer:"https://login.microsoftonline.com/{tenantid}/v2.0",authorization_endpoint:"https://login.microsoftonline.com/{tenantid}/oauth2/v2.0/authorize",end_session_endpoint:"https://login.microsoftonline.com/{tenantid}/oauth2/v2.0/logout"},"login.chinacloudapi.cn":{token_endpoint:"https://login.chinacloudapi.cn/{tenantid}/oauth2/v2.0/token",jwks_uri:"https://login.chinacloudapi.cn/{tenantid}/discovery/v2.0/keys",issuer:"https://login.partner.microsoftonline.cn/{tenantid}/v2.0",authorization_endpoint:"https://login.chinacloudapi.cn/{tenantid}/oauth2/v2.0/authorize",end_session_endpoint:"https://login.chinacloudapi.cn/{tenantid}/oauth2/v2.0/logout"},"login.microsoftonline.us":{token_endpoint:"https://login.microsoftonline.us/{tenantid}/oauth2/v2.0/token",jwks_uri:"https://login.microsoftonline.us/{tenantid}/discovery/v2.0/keys",issuer:"https://login.microsoftonline.us/{tenantid}/v2.0",authorization_endpoint:"https://login.microsoftonline.us/{tenantid}/oauth2/v2.0/authorize",end_session_endpoint:"https://login.microsoftonline.us/{tenantid}/oauth2/v2.0/logout"}},instanceDiscoveryMetadata:{metadata:[{preferred_network:"login.microsoftonline.com",preferred_cache:"login.windows.net",aliases:["login.microsoftonline.com","login.windows.net","login.microsoft.com","sts.windows.net"]},{preferred_network:"login.partner.microsoftonline.cn",preferred_cache:"login.partner.microsoftonline.cn",aliases:["login.partner.microsoftonline.cn","login.chinacloudapi.cn"]},{preferred_network:"login.microsoftonline.de",preferred_cache:"login.microsoftonline.de",aliases:["login.microsoftonline.de"]},{preferred_network:"login.microsoftonline.us",preferred_cache:"login.microsoftonline.us",aliases:["login.microsoftonline.us","login.usgovcloudapi.net"]},{preferred_network:"login-us.microsoftonline.com",preferred_cache:"login-us.microsoftonline.com",aliases:["login-us.microsoftonline.com"]}]}},yse=hxe.endpointMetadata,Uq=hxe.instanceDiscoveryMetadata,pxe=new Set;
1597Uq.metadata.forEach(e=>{e.aliases.forEach(t=>{pxe.add(t)})});function wHt(e,t){var i;let n;const r=e.canonicalAuthority;if(r){const o=new An(r).getUrlComponents().HostNameAndPort;n=bse(o,(i=e.cloudDiscoveryMetadata)==null?void 0:i.metadata,qa.CONFIG,t)||bse(o,Uq.metadata,qa.HARDCODED_VALUES,t)||e.knownAuthorities}return n||[]}function bse(e,t,n,r){if(r==null||r.trace(`getAliasesFromMetadata called with source: ${n}`),e&&t){const i=T3(t,e);if(i)return r==null||r.trace(`getAliasesFromMetadata: found cloud discovery metadata in ${n}, returning aliases`),i.aliases;r==null||r.trace(`getAliasesFromMetadata: did not find cloud discovery metadata in ${n}`)}return null}function SHt(e){return T3(Uq.metadata,e)}function T3(e,t){for(let n=0;n<e.length;n++){const r=e[n];if(r.aliases.includes(t))return r}return null}/*! @azure/msal-common v14.16.1 2025-08-05 */const Bq="cache_quota_exceeded",$q="cache_error_unknown";/*! @azure/msal-common v14.16.1 2025-08-05 */const MD={[Bq]:"Exceeded cache storage capacity.",[$q]:"Unexpected error occurred when using cache storage."};
1597class Vy extends Error{constructor(t,n){const r=n||(MD[t]?MD[t]:MD[$q]);super(`${t}: ${r}`),Object.setPrototypeOf(this,Vy.prototype),this.name="CacheError",this.errorCode=t,this.errorMessage=r}}function mxe(e){return e instanceof Error?e.name==="QuotaExceededError"||e.name==="NS_ERROR_DOM_QUOTA_REACHED"||e.message.includes("exceeded the quota")?new Vy(Bq):new Vy(e.name,e.message):new Vy($q)}/*! @azure/msal-common v14.16.1 2025-08-05 */class X1{constructor(t,n,r,i){this.clientId=t,this.cryptoImpl=n,this.commonLogger=r.clone(Kke,Rq),this.staticAuthorityOptions=i}getAllAccounts(t,n){return this.buildTenantProfiles(this.getAccountsFilteredBy(n||{},t),t,n)}getAccountInfoFilteredBy(t,n){const r=this.getAllAccounts(n,t);return r.length>1?r.sort(o=>o.idTokenClaims?-1:1)[0]:r.length===1?r[0]:null}getBaseAccountInfo(t,n){const r=this.getAccountsFilteredBy(t,n);return r.length>0?r[0].getAccountInfo():null}buildTenantProfiles(t,n,r){return t.flatMap(i=>this.getTenantProfilesFromAccountEntity(i,n,r==null?void 0:r.tenantId,r))}getTenantedAccountInfoByFilter(t,n,r,i,o){let s=null,a;if(o&&!this.tenantProfileMatchesFilter(r,o))return null;const c=this.getIdToken(t,i,n,r.tenantId);return c&&(a=t0(c.secret,this.cryptoImpl.base64Decode),!this.idTokenClaimsMatchTenantProfileFilter(a,o))?null:(s=jq(t,r,a,c==null?void 0:c.secret),s)}getTenantProfilesFromAccountEntity(t,n,r,i){const o=t.getAccountInfo();let s=o.tenantProfiles||new Map;const a=this.getTokenKeys();if(r){const l=s.get(r);if(l)s=new Map([[r,l]]);else return[]}const c=[];return s.forEach(l=>{const u=this.getTenantedAccountInfoByFilter(o,a,l,n,i);u&&c.push(u)}),c}tenantProfileMatchesFilter(t,n){return!(n.localAccountId&&!this.matchLocalAccountIdFromTenantProfile(t,n.localAccountId)||n.name&&t.name!==n.name||n.isHomeTenant!==void 0&&t.isHomeTenant!==n.isHomeTenant)}idTokenClaimsMatchTenantProfileFilter(t,n){return!(n&&(n.localAccountId&&!this.matchLocalAccountIdFromTokenClaims(t,n.localAccountId)||n.loginHint&&!this.matchLoginHintFromTokenClaims(t,n.loginHint)||n.username&&!this.matchUsername(t.preferred_username,n.username)||n.name&&!this.matchName(t,n.name)||n.sid&&!this.matchSid(t,n.sid)))}async saveCacheRecord(t,n,r){var i;if(!t)throw Qe(Vke);try{t.account&&this.setAccount(t.account,n),t.idToken&&(r==null?void 0:r.idToken)!==!1&&this.setIdTokenCredential(t.idToken,n),t.accessToken&&(r==null?void 0:r.accessToken)!==!1&&await this.saveAccessToken(t.accessToken,n),t.refreshToken&&(r==null?void 0:r.refreshToken)!==!1&&this.setRefreshTokenCredential(t.refreshToken,n),t.appMetadata&&this.setAppMetadata(t.appMetadata,n)}catch(o){throw(i=this.commonLogger)==null||i.error("CacheManager.saveCacheRecord: failed"),o instanceof Wr?o:mxe(o)}}async saveAccessToken(t,n){const r={clientId:t.clientId,credentialType:t.credentialType,environment:t.environment,homeAccountId:t.homeAccountId,realm:t.realm,tokenType:t.tokenType,requestedClaimsHash:t.requestedClaimsHash},i=this.getTokenKeys(),o=Bi.fromString(t.target);i.accessToken.forEach(s=>{if(!this.accessTokenKeyMatchesFilter(s,r,!1))return;const a=this.getAccessTokenCredential(s,n);a&&this.credentialMatchesFilter(a,r)&&Bi.fromString(a.target).intersectingScopeSets(o)&&this.removeAccessToken(s,n)}),this.setAccessTokenCredential(t,n)}getAccountsFilteredBy(t,n){const r=this.getAccountKeys(),i=[];return r.forEach(o=>{var l;if(!this.isAccountKey(o,t.homeAccountId))return;const s=this.getAccount(o,n,this.commonLogger);if(!s||t.homeAccountId&&!this.matchHomeAccountId(s,t.homeAccountId)||t.username&&!this.matchUsername(s.username,t.username)||t.environment&&!this.matchEnvironment(s,t.environment)||t.realm&&!this.matchRealm(s,t.realm)||t.nativeAccountId&&!this.matchNativeAccountId(s,t.nativeAccountId)||t.authorityType&&!this.matchAuthorityType(s,t.authorityType))return;const a={localAccountId:t==null?void 0:t.localAccountId,name:t==null?void 0:t.name},c=(l=s.tenantProfiles)==null?void 0:l.filter(u=>this.tenantProfileMatchesFilter(u,a));c&&c.length===0||i.push(s)}),i}isAccountKey(t,n,r){return!(t.split(ws.CACHE_KEY_SEPARATOR).length<3||n&&!t.toLowerCase().includes(n.toLowerCase())||r&&!t.toLowerCase().includes(r.toLowerCase()))}isCredentialKey(t){if(t.split(ws.CACHE_KEY_SEPARATOR).length<6)return!1;const n=t.toLowerCase();if(n.indexOf(zt.ID_TOKEN.toLowerCase())===-1&&n.indexOf(zt.ACCESS_TOKEN.toLowerCase())===-1&&n.indexOf(zt.ACCESS_TOKEN_WITH_AUTH_SCHEME.toLowerCase())===-1&&n.indexOf(zt.REFRESH_TOKEN.toLowerCase())===-1)return!1;if(n.indexOf(zt.REFRESH_TOKEN.toLowerCase())>-1){const r=`${zt.REFRESH_TOKEN}${ws.CACHE_KEY_SEPARATOR}${this.clientId}${ws.CACHE_KEY_SEPARATOR}`,i=`${zt.REFRESH_TOKEN}${ws.CACHE_KEY_SEPARATOR}${b_}${ws.CACHE_KEY_SEPARATOR}`;if(n.indexOf(r.toLowerCase())===-1&&n.indexOf(i.toLowerCase())===-1)return!1}else if(n.indexOf(this.clientId.toLowerCase())===-1)return!1;return!0}credentialMatchesFilter(t,n){return!(n.clientId&&!this.matchClientId(t,n.clientId)||n.userAssertionHash&&!this.matchUserAssertionHash(t,n.userAssertionHash)||typeof n.homeAccountId=="string"&&!this.matchHomeAccountId(t,n.homeAccountId)||n.environment&&!this.matchEnvironment(t,n.environment)||n.realm&&!this.matchRealm(t,n.realm)||n.credentialType&&!this.matchCredentialType(t,n.credentialType)||n.familyId&&!this.matchFamilyId(t,n.familyId)||n.target&&!this.matchTarget(t,n.target)||(n.requestedClaimsHash||t.requestedClaimsHash)&&t.requestedClaimsHash!==n.requestedClaimsHash||t.credentialType===zt.ACCESS_TOKEN_WITH_AUTH_SCHEME&&(n.tokenType&&!this.matchTokenType(t,n.tokenType)||n.tokenType===lr.SSH&&n.keyId&&!this.matchKeyId(t,n.keyId)))}getAppMetadataFilteredBy(t){const n=this.getKeys(),r={};
1597return n.forEach(i=>{if(!this.isAppMetadata(i))return;const o=this.getAppMetadata(i);o&&(t.environment&&!this.matchEnvironment(o,t.environment)||t.clientId&&!this.matchClientId(o,t.clientId)||(r[i]=o))}),r}getAuthorityMetadataByAlias(t){const n=this.getAuthorityMetadataKeys();let r=null;return n.forEach(i=>{if(!this.isAuthorityMetadata(i)||i.indexOf(this.clientId)===-1)return;const o=this.getAuthorityMetadata(i);o&&o.aliases.indexOf(t)!==-1&&(r=o)}),r}async removeAllAccounts(t){const n=this.getAccountKeys(),r=[];n.forEach(i=>{r.push(this.removeAccount(i,t))}),await Promise.all(r)}async removeAccount(t,n){const r=this.getAccount(t,n,this.commonLogger);r&&(await this.removeAccountContext(r,n),this.removeItem(t,n))}async removeAccountContext(t,n){const r=this.getTokenKeys(),i=t.generateAccountId();r.idToken.forEach(o=>{o.indexOf(i)===0&&this.removeIdToken(o,n)}),r.accessToken.forEach(o=>{o.indexOf(i)===0&&this.removeAccessToken(o,n)}),r.refreshToken.forEach(o=>{o.indexOf(i)===0&&this.removeRefreshToken(o,n)}),this.getKeys().forEach(o=>{o.includes(i)&&this.removeItem(o,n)})}updateOutdatedCachedAccount(t,n,r,i){var o;if(n&&n.isSingleTenant()){(o=this.commonLogger)==null||o.verbose("updateOutdatedCachedAccount: Found a single-tenant (outdated) account entity in the cache, migrating to multi-tenant account entity");const s=this.getAccountKeys().filter(d=>d.startsWith(n.homeAccountId)),a=[];s.forEach(d=>{const f=this.getCachedAccountEntity(d,r);f&&a.push(f)});const c=a.find(d=>C3(d.realm,d.homeAccountId))||a[0];c.tenantProfiles=a.map(d=>({tenantId:d.realm,localAccountId:d.localAccountId,name:d.name,isHomeTenant:C3(d.realm,d.homeAccountId)}));const l=X1.toObject(new _o,{...c}),u=l.generateAccountKey();return s.forEach(d=>{d!==u&&this.removeOutdatedAccount(t,r)}),this.setAccount(l,r),i==null||i.verbose("Updated an outdated account entity in the cache"),l}return n}removeAccessToken(t,n){const r=this.getAccessTokenCredential(t,n);if(this.removeItem(t,n),!r||r.credentialType.toLowerCase()!==zt.ACCESS_TOKEN_WITH_AUTH_SCHEME.toLowerCase()||r.tokenType!==lr.POP)return;const i=r.keyId;i&&this.cryptoImpl.removeTokenBindingKey(i).catch(()=>{this.commonLogger.error("Binding key could not be removed")})}removeAppMetadata(t){return this.getKeys().forEach(r=>{this.isAppMetadata(r)&&this.removeItem(r,t)}),!0}readAccountFromCache(t,n){const r=_o.generateAccountCacheKey(t);return this.getAccount(r,n,this.commonLogger)}getIdToken(t,n,r,i,o){this.commonLogger.trace("CacheManager - getIdToken called");const s={homeAccountId:t.homeAccountId,environment:t.environment,credentialType:zt.ID_TOKEN,clientId:this.clientId,realm:i},a=this.getIdTokensByFilter(s,n,r),c=a.size;if(c<1)return this.commonLogger.info("CacheManager:getIdToken - No token found"),null;if(c>1){let l=a;if(!i){const u=new Map;a.forEach((f,p)=>{f.realm===t.tenantId&&u.set(p,f)});const d=u.size;if(d<1)return this.commonLogger.info("CacheManager:getIdToken - Multiple ID tokens found for account but none match account entity tenant id, returning first result"),a.values().next().value;if(d===1)return this.commonLogger.info("CacheManager:getIdToken - Multiple ID tokens found for account, defaulting to home tenant profile"),u.values().next().value;l=u}return this.commonLogger.info("CacheManager:getIdToken - Multiple matching ID tokens found, clearing them"),l.forEach((u,d)=>{this.removeIdToken(d,n)}),o&&n&&o.addFields({multiMatchedID:a.size},n),null}return this.commonLogger.info("CacheManager:getIdToken - Returning ID token"),a.values().next().value}getIdTokensByFilter(t,n,r){const i=r&&r.idToken||this.getTokenKeys().idToken,o=new Map;return i.forEach(s=>{if(!this.idTokenKeyMatchesFilter(s,{clientId:this.clientId,...t}))return;const a=this.getIdTokenCredential(s,n);a&&this.credentialMatchesFilter(a,t)&&o.set(s,a)}),o}idTokenKeyMatchesFilter(t,n){const r=t.toLowerCase();return!(n.clientId&&r.indexOf(n.clientId.toLowerCase())===-1||n.homeAccountId&&r.indexOf(n.homeAccountId.toLowerCase())===-1)}removeIdToken(t,n){this.removeItem(t,n)}removeRefreshToken(t,n){this.removeItem(t,n)}getAccessToken(t,n,r,i,o){this.commonLogger.trace("CacheManager - getAccessToken called");const s=Bi.createSearchScopes(n.scopes),a=n.authenticationScheme||lr.BEARER,c=a.toLowerCase()!==lr.BEARER.toLowerCase()?zt.ACCESS_TOKEN_WITH_AUTH_SCHEME:zt.ACCESS_TOKEN,l={homeAccountId:t.homeAccountId,environment:t.environment,credentialType:c,clientId:this.clientId,realm:i||t.tenantId,target:s,tokenType:a,keyId:n.sshKid,requestedClaimsHash:n.requestedClaimsHash},u=r&&r.accessToken||this.getTokenKeys().accessToken,d=[];u.forEach(p=>{if(this.accessTokenKeyMatchesFilter(p,l,!0)){const g=this.getAccessTokenCredential(p,n.correlationId);g&&this.credentialMatchesFilter(g,l)&&d.push(g)}});const f=d.length;return f<1?(this.commonLogger.info("CacheManager:getAccessToken - No token found"),null):f>1?(this.commonLogger.info("CacheManager:getAccessToken - Multiple access tokens found, clearing them"),d.forEach(p=>{this.removeAccessToken(py(p),n.correlationId)}),o&&n.correlationId&&o.addFields({multiMatchedAT:d.length},n.correlationId),null):(this.commonLogger.info("CacheManager:getAccessToken - Returning access token"),d[0])}accessTokenKeyMatchesFilter(t,n,r){const i=t.toLowerCase();if(n.clientId&&i.indexOf(n.clientId.toLowerCase())===-1||n.homeAccountId&&i.indexOf(n.homeAccountId.toLowerCase())===-1||n.realm&&i.indexOf(n.realm.toLowerCase())===-1||n.requestedClaimsHash&&i.indexOf(n.requestedClaimsHash.toLowerCase())===-1)return!1;if(n.target){const o=n.target.asArray();for(let s=0;s<o.length;s++){if(r&&!i.includes(o[s].toLowerCase()))return!1;if(!r&&i.includes(o[s].toLowerCase()))return!0}}return!0}getAccessTokensByFilter(t,n){const r=this.getTokenKeys(),i=[];
1597return r.accessToken.forEach(o=>{if(!this.accessTokenKeyMatchesFilter(o,t,!0))return;const s=this.getAccessTokenCredential(o,n);s&&this.credentialMatchesFilter(s,t)&&i.push(s)}),i}getRefreshToken(t,n,r,i,o){this.commonLogger.trace("CacheManager - getRefreshToken called");const s=n?b_:void 0,a={homeAccountId:t.homeAccountId,environment:t.environment,credentialType:zt.REFRESH_TOKEN,clientId:this.clientId,familyId:s},c=i&&i.refreshToken||this.getTokenKeys().refreshToken,l=[];c.forEach(d=>{if(this.refreshTokenKeyMatchesFilter(d,a)){const f=this.getRefreshTokenCredential(d,r);f&&this.credentialMatchesFilter(f,a)&&l.push(f)}});const u=l.length;return u<1?(this.commonLogger.info("CacheManager:getRefreshToken - No refresh token found."),null):(u>1&&o&&r&&o.addFields({multiMatchedRT:u},r),this.commonLogger.info("CacheManager:getRefreshToken - returning refresh token"),l[0])}refreshTokenKeyMatchesFilter(t,n){const r=t.toLowerCase();return!(n.familyId&&r.indexOf(n.familyId.toLowerCase())===-1||!n.familyId&&n.clientId&&r.indexOf(n.clientId.toLowerCase())===-1||n.homeAccountId&&r.indexOf(n.homeAccountId.toLowerCase())===-1)}readAppMetadataFromCache(t){const n={environment:t,clientId:this.clientId},r=this.getAppMetadataFilteredBy(n),i=Object.keys(r).map(s=>r[s]),o=i.length;if(o<1)return null;if(o>1)throw Qe(Bke);return i[0]}isAppMetadataFOCI(t){const n=this.readAppMetadataFromCache(t);return!!(n&&n.familyId===b_)}matchHomeAccountId(t,n){return typeof t.homeAccountId=="string"&&n===t.homeAccountId}matchLocalAccountIdFromTokenClaims(t,n){const r=t.oid||t.sub;return n===r}matchLocalAccountIdFromTenantProfile(t,n){return t.localAccountId===n}matchName(t,n){var r;return n.toLowerCase()===((r=t.name)==null?void 0:r.toLowerCase())}matchUsername(t,n){return!!(t&&typeof t=="string"&&(n==null?void 0:n.toLowerCase())===t.toLowerCase())}matchUserAssertionHash(t,n){return!!(t.userAssertionHash&&n===t.userAssertionHash)}matchEnvironment(t,n){if(this.staticAuthorityOptions){const i=wHt(this.staticAuthorityOptions,this.commonLogger);if(i.includes(n)&&i.includes(t.environment))return!0}const r=this.getAuthorityMetadataByAlias(n);return!!(r&&r.aliases.indexOf(t.environment)>-1)}matchCredentialType(t,n){return t.credentialType&&n.toLowerCase()===t.credentialType.toLowerCase()}matchClientId(t,n){return!!(t.clientId&&n===t.clientId)}matchFamilyId(t,n){return!!(t.familyId&&n===t.familyId)}matchRealm(t,n){var r;return((r=t.realm)==null?void 0:r.toLowerCase())===n.toLowerCase()}matchNativeAccountId(t,n){return!!(t.nativeAccountId&&n===t.nativeAccountId)}matchLoginHintFromTokenClaims(t,n){return t.login_hint===n||t.preferred_username===n||t.upn===n}matchSid(t,n){return t.sid===n}matchAuthorityType(t,n){return!!(t.authorityType&&n.toLowerCase()===t.authorityType.toLowerCase())}matchTarget(t,n){return t.credentialType!==zt.ACCESS_TOKEN&&t.credentialType!==zt.ACCESS_TOKEN_WITH_AUTH_SCHEME||!t.target?!1:Bi.fromString(t.target).containsScopeSet(n)}matchTokenType(t,n){return!!(t.tokenType&&t.tokenType===n)}matchKeyId(t,n){return!!(t.keyId&&t.keyId===n)}isAppMetadata(t){return t.indexOf(_q)!==-1}isAuthorityMetadata(t){return t.indexOf(b3.CACHE_KEY)!==-1}generateAuthorityMetadataCacheKey(t){return`${b3.CACHE_KEY}-${this.clientId}-${t}`}static toObject(t,n){for(const r in n)t[r]=n[r];return t}}class _Ht extends X1{setAccount(){throw Qe(fn)}getAccount(){throw Qe(fn)}getCachedAccountEntity(){throw Qe(fn)}setIdTokenCredential(){throw Qe(fn)}getIdTokenCredential(){throw Qe(fn)}setAccessTokenCredential(){throw Qe(fn)}getAccessTokenCredential(){throw Qe(fn)}setRefreshTokenCredential(){throw Qe(fn)}getRefreshTokenCredential(){throw Qe(fn)}setAppMetadata(){throw Qe(fn)}getAppMetadata(){throw Qe(fn)}setServerTelemetry(){throw Qe(fn)}getServerTelemetry(){throw Qe(fn)}setAuthorityMetadata(){throw Qe(fn)}getAuthorityMetadata(){throw Qe(fn)}getAuthorityMetadataKeys(){throw Qe(fn)}setThrottlingCache(){throw Qe(fn)}getThrottlingCache(){throw Qe(fn)}removeItem(){throw Qe(fn)}getKeys(){throw Qe(fn)}getAccountKeys(){throw Qe(fn)}getTokenKeys(){throw Qe(fn)}updateCredentialCacheKey(){throw Qe(fn)}removeOutdatedAccount(){throw Qe(fn)}}/*! @azure/msal-common v14.16.1 2025-08-05 */const gxe={tokenRenewalOffsetSeconds:z$t,preventCorsPreflight:!1},CHt={loggerCallback:()=>{},piiLoggingEnabled:!1,logLevel:ei.Info,correlationId:De.EMPTY_STRING},EHt={claimsBasedCachingEnabled:!1},THt={async sendGetRequestAsync(){throw Qe(fn)},async sendPostRequestAsync(){throw Qe(fn)}},kHt={sku:De.SKU,version:Rq,cpu:De.EMPTY_STRING,os:De.EMPTY_STRING},xHt={clientSecret:De.EMPTY_STRING,clientAssertion:void 0},AHt={azureCloudInstance:Pq.None,tenant:`${De.DEFAULT_COMMON_TENANT}`},IHt={application:{appName:"",appVersion:""}};function RHt({authOptions:e,systemOptions:t,loggerOptions:n,cacheOptions:r,storageInterface:i,networkInterface:o,cryptoInterface:s,clientCredentials:a,library
1597Info:c,telemetry:l,serverTelemetryManager:u,persistencePlugin:d,serializableCache:f}){const p={...CHt,...n};return{authOptions:PHt(e),systemOptions:{...gxe,...t},loggerOptions:p,cacheOptions:{...EHt,...r},storageInterface:i||new _Ht(e.clientId,S3,new _m(p)),networkInterface:o||THt,cryptoInterface:s||S3,clientCredentials:a||xHt,libraryInfo:{...kHt,...c},telemetry:{...IHt,...l},serverTelemetryManager:u||null,persistencePlugin:d||null,serializableCache:f||null}}function PHt(e){return{clientCapabilities:[],azureCloudOptions:AHt,skipAuthorityMetadataCache:!1,instanceAware:!1,...e}}function gU(e){return e.authOptions.authority.options.protocolMode===Gf.OIDC}/*! @azure/msal-common v14.16.1 2025-08-05 */const sc={HOME_ACCOUNT_ID:"home_account_id",UPN:"UPN"};/*! @azure/msal-common v14.16.1 2025-08-05 */const Rv="client_id",vxe="redirect_uri",wse="response_type",OHt="response_mode",NHt="grant_type",MHt="claims",DHt="scope",LHt="refresh_token",FHt="state",jHt="nonce",UHt="prompt",BHt="code",$Ht="code_challenge",HHt="code_challenge_method",zHt="code_verifier",VHt="client-request-id",WHt="x-client-SKU",qHt="x-client-VER",GHt="x-client-OS",KHt="x-client-CPU",YHt="x-client-current-telemetry",QHt="x-client-last-telemetry",XHt="x-ms-lib-capability",JHt="x-app-name",ZHt="x-app-ver",ezt="post_logout_redirect_uri",tzt="id_token_hint",nzt="device_code",rzt="client_secret",izt="client_assertion",ozt="client_assertion_type",Sse="token_type",_se="req_cnf",szt="assertion",azt="requested_token_use",Cse="return_spa_code",czt="nativebroker",lzt="logout_hint",uzt="sid",dzt="login_hint",fzt="domain_hint",hzt="x-client-xtra-sku",Hq="brk_client_id",vU="brk_redirect_uri";/*! @azure/msal-common v14.16.1 2025-08-05 */class B0{static validateRedirectUri(t){if(!t)throw gr(Xke)}static validatePrompt(t){const n=[];for(const r in Fo)n.push(Fo[r]);if(n.indexOf(t)<0)throw gr(txe)}static validateClaims(t){try{JSON.parse(t)}catch{throw gr(Nq)}}static validateCodeChallengeParams(t,n){if(!t||!n)throw gr(Mq);this.validateCodeChallengeMethod(n)}static validateCodeChallengeMethod(t){if([cse.PLAIN,cse.S256].indexOf(t)<0)throw gr(ixe)}}/*! @azure/msal-common v14.16.1 2025-08-05 */function pzt(e,t,n){if(!t)return;const r=e.get(Rv);r&&e.has(Hq)&&(n==null||n.addFields({embeddedClientId:r,embeddedRedirectUri:e.get(vxe)},t))}class S_{constructor(t,n){this.parameters=new Map,this.performanceClient=n,this.correlationId=t}addResponseTypeCode(){this.parameters.set(wse,encodeURIComponent(De.CODE_RESPONSE_TYPE))}addResponseTypeForTokenAndIdToken(){this.parameters.set(wse,encodeURIComponent(`${De.TOKEN_RESPONSE_TYPE} ${De.ID_TOKEN_RESPONSE_TYPE}`))}addResponseMode(t){this.parameters.set(OHt,encodeURIComponent(t||B$t.QUERY))}addNativeBroker(){this.parameters.set(czt,encodeURIComponent("1"))}addScopes(t,n=!0,r=ow){n&&!r.includes("openid")&&!t.includes("openid")&&r.push("openid");const i=n?[...t||[],...r]:t||[],o=new Bi(i);this.parameters.set(DHt,encodeURIComponent(o.printScopes()))}addClientId(t){this.parameters.set(Rv,encodeURIComponent(t))}addRedirectUri(t){B0.validateRedirectUri(t),this.parameters.set(vxe,encodeURIComponent(t))}addPostLogoutRedirectUri(t){B0.validateRedirectUri(t),this.parameters.set(ezt,encodeURIComponent(t))}addIdTokenHint(t){this.parameters.set(tzt,encodeURIComponent(t))}addDomainHint(t){this.parameters.set(fzt,encodeURIComponent(t))}addLoginHint(t){this.parameters.set(dzt,encodeURIComponent(t))}addCcsUpn(t){this.parameters.set(Fs.CCS_HEADER,encodeURIComponent(`UPN:${t}`))}addCcsOid(t){this.parameters.set(Fs.CCS_HEADER,encodeURIComponent(`Oid:${t.uid}@${t.utid}`))}addSid(t){this.parameters.set(uzt,encodeURIComponent(t))}addClaims(t,n){const r=this.addClientCapabilitiesToClaims(t,n);B0.validateClaims(r),this.parameters.set(MHt,encodeURIComponent(r))}addCorrelationId(t){this.parameters.set(VHt,encodeURIComponent(t))}addLibraryInfo(t){this.parameters.set(WHt,t.sku),this.parameters.set(qHt,t.version),t.os&&this.parameters.set(GHt,t.os),t.cpu&&this.parameters.set(KHt,t.cpu)}addApplicationTelemetry(t){t!=null&&t.appName&&this.parameters.set(JHt,t.appName),t!=null&&t.appVersion&&this.parameters.set(ZHt,t.appVersion)}
1597addPrompt(t){B0.validatePrompt(t),this.parameters.set(`${UHt}`,encodeURIComponent(t))}addState(t){t&&this.parameters.set(FHt,encodeURIComponent(t))}addNonce(t){this.parameters.set(jHt,encodeURIComponent(t))}addCodeChallengeParams(t,n){if(B0.validateCodeChallengeParams(t,n),t&&n)this.parameters.set($Ht,encodeURIComponent(t)),this.parameters.set(HHt,encodeURIComponent(n));else throw gr(Mq)}addAuthorizationCode(t){this.parameters.set(BHt,encodeURIComponent(t))}addDeviceCode(t){this.parameters.set(nzt,encodeURIComponent(t))}addRefreshToken(t){this.parameters.set(LHt,encodeURIComponent(t))}addCodeVerifier(t){this.parameters.set(zHt,encodeURIComponent(t))}addClientSecret(t){this.parameters.set(rzt,encodeURIComponent(t))}addClientAssertion(t){t&&this.parameters.set(izt,encodeURIComponent(t))}addClientAssertionType(t){t&&this.parameters.set(ozt,encodeURIComponent(t))}addOboAssertion(t){this.parameters.set(szt,encodeURIComponent(t))}addRequestTokenUse(t){this.parameters.set(azt,encodeURIComponent(t))}addGrantType(t){this.parameters.set(NHt,encodeURIComponent(t))}addClientInfo(){this.parameters.set($$t,"1")}addExtraQueryParameters(t){Object.entries(t).forEach(([n,r])=>{!this.parameters.has(n)&&r&&this.parameters.set(n,r)})}addClientCapabilitiesToClaims(t,n){let r;if(!t)r={};else try{r=JSON.parse(t)}catch{throw gr(Nq)}return n&&n.length>0&&(r.hasOwnProperty(kk.ACCESS_TOKEN)||(r[kk.ACCESS_TOKEN]={}),r[kk.ACCESS_TOKEN][kk.XMS_CC]={values:n}),JSON.stringify(r)}addUsername(t){this.parameters.set(use.username,encodeURIComponent(t))}addPassword(t){this.parameters.set(use.password,encodeURIComponent(t))}addPopToken(t){t&&(this.parameters.set(Sse,lr.POP),this.parameters.set(_se,encodeURIComponent(t)))}addSshJwk(t){t&&(this.parameters.set(Sse,lr.SSH),this.parameters.set(_se,encodeURIComponent(t)))}addServerTelemetry(t){this.parameters.set(YHt,t.generateCurrentRequestHeaderValue()),this.parameters.set(QHt,t.generateLastRequestHeaderValue())}addThrottling(){this.parameters.set(XHt,w_.X_MS_LIB_CAPABILITY_VALUE)}addLogoutHint(t){this.parameters.set(lzt,encodeURIComponent(t))}addBrokerParameters(t){const n={};n[Hq]=t.brokerClientId,n[vU]=t.brokerRedirectUri,this.addExtraQueryParameters(n)}createQueryString(){const t=new Array;return this.parameters.forEach((n,r)=>{t.push(`${r}=${n}`)}),pzt(this.parameters,this.correlationId,this.performanceClient),t.join("&")}}/*! @azure/msal-common v14.16.1 2025-08-05 */function mzt(e){return e.hasOwnProperty("authorization_endpoint")&&e.hasOwnProperty("token_endpoint")&&e.hasOwnProperty("issuer")&&e.hasOwnProperty("jwks_uri")}/*! @azure/msal-common v14.16.1 2025-08-05 */function gzt(e){return e.hasOwnProperty("tenant_discovery_endpoint")&&e.hasOwnProperty("metadata")}/*! @azure/msal-common v14.16.1 2025-08-05 */function vzt(e){return e.hasOwnProperty("error")&&e.hasOwnProperty("error_description")}/*! @azure/msal-common v14.16.1 2025-08-05 */const Ie={AcquireTokenByCode:"acquireTokenByCode",AcquireTokenByRefreshToken:"acquireTokenByRefreshToken",AcquireTokenSilent:"acquireTokenSilent",AcquireTokenSilentAsync:"acquireTokenSilentAsync",AcquireTokenPopup:"acquireTokenPopup",AcquireTokenPreRedirect:"acquireTokenPreRedirect",AcquireTokenRedirect:"acquireTokenRedirect",CryptoOptsGetPublicKeyThumbprint:"cryptoOptsGetPublicKeyThumbprint",CryptoOptsSignJwt:"cryptoOptsSignJwt",SilentCacheClientAcquireToken:"silentCacheClientAcquireToken",SilentIframeClientAcquireToken:"silentIframeClientAcquireToken",AwaitConcurrentIframe:"awaitConcurrentIframe",SilentRefreshClientAcquireToken:"silentRefreshClientAcquireToken",SsoSilent:"ssoSilent",StandardInteractionClientGetDiscoveredAuthority:"standardInteractionClientGetDiscoveredAuthority",FetchAccountIdWithNativeBroker:"fetchAccountIdWithNativeBroker",NativeInteractionClientAcquireToken:"nativeInteractionClientAcquireToken",BaseClientCreateTokenRequestHeaders:"baseClientCreateTokenRequestHeaders",NetworkClientSendPostRequestAsync:"networkClientSendPostRequestAsync",RefreshTokenClientExecutePostToTokenEndpoint:"refreshTokenClientExecutePostToTokenEndpoint",AuthorizationCodeClientExecutePostToTokenEndpoint:"authorizationCodeClientExecutePostToTokenEndpoint",BrokerHandhshake:"brokerHandshake",AcquireTokenByRefreshTokenInBroker:"acquireTokenByRefreshTokenInBroker",AcquireTokenByBroker:"acquireTokenByBroker",RefreshTokenClientExecuteTokenRequest:"refreshTokenClientExecuteTokenRequest",RefreshTokenClientAcquireToken:"refreshTokenClientAcquireToken",RefreshTokenClientAcquireTokenWithCachedRefreshToken:"refreshTokenClientAcquireTokenWithCachedRefreshToken",RefreshTokenClientAcquireTokenByRefreshToken:"refreshTokenClientAcquireTokenByRefreshToken",RefreshTokenClientCreateTokenRequestBody:"refreshTokenClientCreateTokenRequestBody",AcquireTokenFromCache:"acquireTokenFromCache",SilentFlowClientAcquireCachedToken:"silentFlowClientAcquireCachedToken",SilentFlowClientGenerateResultFromCacheRecord:"silentFlowClientGenerateResultFromCacheRecord",AcquireTokenBySilentIframe:"acquireTokenBySilentIframe",InitializeBaseRequest:"initializeBaseRequest",InitializeSilentRequest:"initializeSilentRequest",InitializeClientApplication:"initializeClientApplication",SilentIframeClientTokenHelper:"silentIframeClientTokenHelper",SilentHandlerInitiateAuthRequest:"silentHandlerInitiateAuthRequest",SilentHandlerMonitorIframeForHash:"silentHandlerMonitorIframeForHash",SilentHandlerLoadFrame:"silentHandlerLoadFrame",SilentHandlerLoadFrameSync:"silentHandlerLoadFrameSync",StandardInteractionClientCreateAuthCodeClient:"standardInteractionClientCreateAuthCodeClient",
1597StandardInteractionClientGetClientConfiguration:"standardInteractionClientGetClientConfiguration",StandardInteractionClientInitializeAuthorizationRequest:"standardInteractionClientInitializeAuthorizationRequest",StandardInteractionClientInitializeAuthorizationCodeRequest:"standardInteractionClientInitializeAuthorizationCodeRequest",GetAuthCodeUrl:"getAuthCodeUrl",HandleCodeResponseFromServer:"handleCodeResponseFromServer",HandleCodeResponse:"handleCodeResponse",UpdateTokenEndpointAuthority:"updateTokenEndpointAuthority",AuthClientAcquireToken:"authClientAcquireToken",AuthClientExecuteTokenRequest:"authClientExecuteTokenRequest",AuthClientCreateTokenRequestBody:"authClientCreateTokenRequestBody",AuthClientCreateQueryString:"authClientCreateQueryString",PopTokenGenerateCnf:"popTokenGenerateCnf",PopTokenGenerateKid:"popTokenGenerateKid",HandleServerTokenResponse:"handleServerTokenResponse",DeserializeResponse:"deserializeResponse",AuthorityFactoryCreateDiscoveredInstance:"authorityFactoryCreateDiscoveredInstance",AuthorityResolveEndpointsAsync:"authorityResolveEndpointsAsync",AuthorityResolveEndpointsFromLocalSources:"authorityResolveEndpointsFromLocalSources",AuthorityGetCloudDiscoveryMetadataFromNetwork:"authorityGetCloudDiscoveryMetadataFromNetwork",AuthorityUpdateCloudDiscoveryMetadata:"authorityUpdateCloudDiscoveryMetadata",AuthorityGetEndpointMetadataFromNetwork:"authorityGetEndpointMetadataFromNetwork",AuthorityUpdateEndpointMetadata:"authorityUpdateEndpointMetadata",AuthorityUpdateMetadataWithRegionalInformation:"authorityUpdateMetadataWithRegionalInformation",RegionDiscoveryDetectRegion:"regionDiscoveryDetectRegion",RegionDiscoveryGetRegionFromIMDS:"regionDiscoveryGetRegionFromIMDS",RegionDiscoveryGetCurrentVersion:"regionDiscoveryGetCurrentVersion",AcquireTokenByCodeAsync:"acquireTokenByCodeAsync",GetEndpointMetadataFromNetwork:"getEndpointMetadataFromNetwork",GetCloudDiscoveryMetadataFromNetworkMeasurement:"getCloudDiscoveryMetadataFromNetworkMeasurement",HandleRedirectPromiseMeasurement:"handleRedirectPromise",HandleNativeRedirectPromiseMeasurement:"handleNativeRedirectPromise",UpdateCloudDiscoveryMetadataMeasurement:"updateCloudDiscoveryMetadataMeasurement",UsernamePasswordClientAcquireToken:"usernamePasswordClientAcquireToken",NativeMessageHandlerHandshake:"nativeMessageHandlerHandshake",NativeGenerateAuthResult:"nativeGenerateAuthResult",RemoveHiddenIframe:"removeHiddenIframe",ClearTokensAndKeysWithClaims:"clearTokensAndKeysWithClaims",CacheManagerGetRefreshToken:"cacheManagerGetRefreshToken",GeneratePkceCodes:"generatePkceCodes",GenerateCodeVerifier:"generateCodeVerifier",GenerateCodeChallengeFromVerifier:"generateCodeChallengeFromVerifier",Sha256Digest:"sha256Digest",GetRandomValues:"getRandomValues"},yzt={InProgress:1};/*! @azure/msal-common v14.16.1 2025-08-05 */const n0=(e,t,n,r,i)=>(...o)=>{n.trace(`Executing function ${t}`);const s=r==null?void 0:r.startMeasurement(t,i);if(i){const a=t+"CallCount";r==null||r.incrementFields({[a]:1},i)}try{const a=e(...o);return s==null||s.end({success:!0}),n.trace(`Returning result from ${t}`),a}catch(a){n.trace(`Error occurred in ${t}`);try{n.trace(JSON.stringify(a))}catch{n.trace("Unable to print error message.")}throw s==null||s.end({success:!1},a),a}},at=(e,t,n,r,i)=>(...o)=>{n.trace(`Executing function ${t}`);const s=r==null?void 0:r.startMeasurement(t,i);if(i){const a=t+"CallCount";r==null||r.incrementFields({[a]:1},i)}return r==null||r.setPreQueueTime(t,i),e(...o).then(a=>(n.trace(`Returning result from ${t}`),s==null||s.end({success:!0}),a)).catch(a=>{n.trace(`Error occurred in ${t}`);try{n.trace(JSON.stringify(a))}catch{n.trace("Unable to print error message.")}throw s==null||s.end({success:!1},a),a})};/*! @azure/msal-common v14.16.1 2025-08-05 */class n4{constructor(t,n,r,i){this.networkInterface=t,this.logger=n,this.performanceClient=r,this.correlationId=i}async detectRegion(t,n){var i;(i=this.performanceClient)==null||i.addQueueMeasurement(Ie.RegionDiscoveryDetectRegion,this.correlationId);let r=t;if(r)n.region_source=A0.ENVIRONMENT_VARIABLE;else{const o=n4.IMDS_OPTIONS;try{const s=await at(this.getRegionFromIMDS.bind(this),Ie.RegionDiscoveryGetRegionFromIMDS,this.logger,this.performanceClient,this.correlationId)(De.IMDS_VERSION,o);if(s.status===Ak.httpSuccess&&(r=s.body,n.region_source=A0.IMDS),s.status===Ak.httpBadRequest){const a=await at(this.getCurrentVersion.bind(this),Ie.RegionDiscoveryGetCurrentVersion,this.logger,this.performanceClient,this.correlationId)(o);if(!a)return n.region_source=A0.FAILED_AUTO_DETECTION,null;const c=await at(this.getRegionFromIMDS.bind(this),Ie.RegionDiscoveryGetRegionFromIMDS,this.logger,this.performanceClient,this.correlationId)(a,o);c.status===Ak.httpSuccess&&(r=c.body,n.region_source=A0.IMDS)}}catch{return n.region_source=A0.FAILED_AUTO_DETECTION,null}}return r||(n.region_source=A0.FAILED_AUTO_DETECTION),r||null}async getRegionFromIMDS(t,n){var r;return(r=this.performanceClient)==null||r.addQueueMeasurement(Ie.RegionDiscoveryGetRegionFromIMDS,this.correlationId),this.networkInterface.sendGetRequestAsync(`${De.IMDS_ENDPOINT}?api-version=${t}&format=text`,n,De.IMDS_TIMEOUT)}async getCurrentVersion(t){var n;(n=this.performanceClient)==null||n.addQueueMeasurement(Ie.RegionDiscoveryGetCurrentVersion,this.correlationId);try{const r=await this.networkInterface.sendGetRequestAsync(`${De.IMDS_ENDPOINT}?format=json`,t);return r.status===Ak.httpBadRequest&&r.body&&r.body["newest-versions"]&&r.body["newest-versions"].length>0?r.body["newest-versions"][0]:null}catch{return null}}}n4.IMDS_OPTIONS={headers:{Metadata:"true"}};/*! @azure/msal-common v14.16.1 2025-08-05 */class gs{constructor(t,n,r,i,o,s,a,c){this.canonicalAuthority=t,this._canonicalAuthority.val
1597idateAsUri(),this.networkInterface=n,this.cacheManager=r,this.authorityOptions=i,this.regionDiscoveryMetadata={region_used:void 0,region_source:void 0,region_outcome:void 0},this.logger=o,this.performanceClient=a,this.correlationId=s,this.managedIdentity=c||!1,this.regionDiscovery=new n4(n,this.logger,this.performanceClient,this.correlationId)}getAuthorityType(t){if(t.HostNameAndPort.endsWith(De.CIAM_AUTH_URL))return Ol.Ciam;const n=t.PathSegments;if(n.length)switch(n[0].toLowerCase()){case De.ADFS:return Ol.Adfs;case De.DSTS:return Ol.Dsts}return Ol.Default}get authorityType(){return this.getAuthorityType(this.canonicalAuthorityUrlComponents)}get protocolMode(){return this.authorityOptions.protocolMode}get options(){return this.authorityOptions}get canonicalAuthority(){return this._canonicalAuthority.urlString}set canonicalAuthority(t){this._canonicalAuthority=new An(t),this._canonicalAuthority.validateAsUri(),this._canonicalAuthorityUrlComponents=null}get canonicalAuthorityUrlComponents(){return this._canonicalAuthorityUrlComponents||(this._canonicalAuthorityUrlComponents=this._canonicalAuthority.getUrlComponents()),this._canonicalAuthorityUrlComponents}get hostnameAndPort(){return this.canonicalAuthorityUrlComponents.HostNameAndPort.toLowerCase()}get tenant(){return this.canonicalAuthorityUrlComponents.PathSegments[0]}get authorizationEndpoint(){if(this.discoveryComplete())return this.replacePath(this.metadata.authorization_endpoint);throw Qe(df)}get tokenEndpoint(){if(this.discoveryComplete())return this.replacePath(this.metadata.token_endpoint);throw Qe(df)}get deviceCodeEndpoint(){if(this.discoveryComplete())return this.replacePath(this.metadata.token_endpoint.replace("/token","/devicecode"));throw Qe(df)}get endSessionEndpoint(){if(this.discoveryComplete()){if(!this.metadata.end_session_endpoint)throw Qe(Gke);return this.replacePath(this.metadata.end_session_endpoint)}else throw Qe(df)}get selfSignedJwtAudience(){if(this.discoveryComplete())return this.replacePath(this.metadata.issuer);throw Qe(df)}get jwksUri(){if(this.discoveryComplete())return this.replacePath(this.metadata.jwks_uri);throw Qe(df)}canReplaceTenant(t){return t.PathSegments.length===1&&!gs.reservedTenantDomains.has(t.PathSegments[0])&&this.getAuthorityType(t)===Ol.Default&&this.protocolMode===Gf.AAD}replaceTenant(t){return t.replace(/{tenant}|{tenantid}/g,this.tenant)}replacePath(t){let n=t;const i=new An(this.metadata.canonical_authority).getUrlComponents(),o=i.PathSegments;return this.canonicalAuthorityUrlComponents.PathSegments.forEach((a,c)=>{let l=o[c];if(c===0&&this.canReplaceTenant(i)){const u=new An(this.metadata.authorization_endpoint).getUrlComponents().PathSegments[0];l!==u&&(this.logger.verbose(`Replacing tenant domain name ${l} with id ${u}`),l=u)}a!==l&&(n=n.replace(`/${l}/`,`/${a}/`))}),this.replaceTenant(n)}get defaultOpenIdConfigurationEndpoint(){const t=this.hostnameAndPort;return this.canonicalAuthority.endsWith("v2.0/")||this.authorityType===Ol.Adfs||this.protocolMode!==Gf.AAD&&!this.isAliasOfKnownMicrosoftAuthority(t)?`${this.canonicalAuthority}.well-known/openid-configuration`:`${this.canonicalAuthority}v2.0/.well-known/openid-configuration`}discoveryComplete(){return!!this.metadata}async resolveEndpointsAsync(){var i,o;(i=this.performanceClient)==null||i.addQueueMeasurement(Ie.AuthorityResolveEndpointsAsync,this.correlationId);const t=this.getCurrentMetadataEntity(),n=await at(this.updateCloudDiscoveryMetadata.bind(this),Ie.AuthorityUpdateCloudDiscoveryMetadata,this.logger,this.performanceClient,this.correlationId)(t);this.canonicalAuthority=this.canonicalAuthority.replace(this.hostnameAndPort,t.preferred_network);const r=await at(this.updateEndpointMetadata.bind(this),Ie.AuthorityUpdateEndpointMetadata,this.logger,this.performanceClient,this.correlationId)(t);this.updateCachedMetadata(t,n,{source:r}),(o=this.performanceClient)==null||o.addFields({cloudDiscoverySource:n,authorityEndpointSource:r},this.correlationId)}getCurrentMetadataEntity(){let t=this.cacheManager.getAuthorityMetadataByAlias(this.hostnameAndPort);return t||(t={aliases:[],preferred_cache:this.hostnameAndPort,preferred_network:this.hostnameAndPort,canonical_authority:this.canonicalAuthority,authorization_endpoint:"",token_endpoint:"",end_session_endpoint:"",issuer:"",aliasesFromNetwork:!1,endpointsFromNetwork:!1,expiresAt:gse(),jwks_uri:""}),t}updateCachedMetadata(t,n,r){n!==qa.CACHE&&(r==null?void 0:r.source)!==qa.CACHE&&(t.expiresAt=gse(),t.canonical_authority=this.canonicalAuthority);const i=this.cacheManager.generateAuthorityMetadataCacheKey(t.preferred_cache);this.cacheManager.setAuthorityMetadata(i,t),this.metadata=t}async updateEndpointMetadata(t){var i,o,s;(i=this.performanceClient)==null||i.addQueueMeasurement(Ie.AuthorityUpdateEndpointMetadata,this.correlationId);const n=this.updateEndpointMetadataFromLocalSources(t);if(n){if(n.source===qa.HARDCODED_VALUES&&(o=this.authorityOptions.azureRegionConfiguration)!=null&&o.azureRegion&&n.metadata){const a=await at(this.updateMetadataWithRegionalInformation.bind(this),Ie.AuthorityUpdateMetadataWithRegionalInformation,this.logger,this.performanceClient,this.correlationId)(n.metadata);Ik(t,a,!1),t.canonical_authority=this.canonicalAuthority}return n.source}let r=await at(this.getEndpointMetadataFromNetwork.bind(this),Ie.AuthorityGetEndpointMetadataFromNetwork,this.logger,this.performanceClient,this.correlationId)();if(r)return(s=this.authorityOptions.azureRegionConfiguration)!=null&&s.azureRegion&&(r=await at(this.updateMetadataWithRegionalInformation.bind(this),Ie.AuthorityUpdateMetadataWithRegionalInformation,this.logger,this.performanceClient,this.correlationId)(r)),Ik(t,r,!0),qa.NETWORK;throw Qe(Dke,this.defaultOpenIdConfigurationEndpoint)}updateEndpointMetadataFromLocalSources(t){this.logger.verbose("Attempting to get endpoint metadata from authority configuration");const n=this.getEndpointMetadataFromConfig();if(n)return this.logger.verbose("Found endpoint metadata in authority configuration"),Ik(t,n,!1),{source:qa.CONFIG};if(this.logger.verbose("Did not find endpoint metadata in the config... Attempting to get endpoint metadata from the hardcoded values."),this.authorityOptions.skipAuthorityMetadataCache)this.logger.verbose("Skipping hardcoded metadata cache since skipAuthorityMetadataCache is set to true. Attempting to get endpoint metadata from the network metadata cache.");else{const i=this.getEndpointMetadataFromHardcodedValues();if(i)return Ik(t,i,!1),{source:qa.HARDCODED_VALUES,metadata:i};this.logger.verbose("Did not find endpoint metadata in hardcoded values... Attempting to get endpoint metadata from the network metadata cache.")}const r=vse(t);return this.isAuthoritySameType(t)&&t.endpointsFromNetwork&&!r?(this.logger.verbose("Found endpoint metadata in the cache."),{source:qa.CACHE}):(r&&this.logger.verbose("The metadata entity is expired."),null)}isAuthoritySameType(t){return new An(t.canonical_authority).getUrlComponents().PathSegments.length===this.canonicalAuthorityUrlComponents.PathSegments.length}getEndpointMetadataFromConfig(){if(this.authorityOptions.authorityMetadata)try{return JSON.parse(this.authorityOptions.authorityMetadata)}catch{throw gr(oxe)}return null}async getEndpointMetadataFromNetwork(){var r;(r=this.performanceClient)==null||r.addQueueMeasurement(Ie.AuthorityGetEndpointMetadataFromNetwork,this.correlationId);const t={},n=this.defaultOpenIdConfigurationEndpoint;this.logger.verbose(`Authority.getEndpointMetadataFromNetwork: attempting to retrieve OAuth endpoints from ${n}`);try{const i=await this.networkInterface.sendGetRequestAsync(n,t);return mzt(i.body)?i.body:(this.logger.verbose("Authority.getEndpointMetadataFromNetwork: could not parse response as OpenID configuration"),null)}catch(i){return this.logger.verbose(`Authority.getEndpointMetadataFromNetwork: ${i}`),null}}getEndpointMetadataFromHardcodedValues(){return this.hostnameAndPort in yse?yse[this.hostnameAndPort]:null}async updateMetadataWithRegionalInformation(t){var r,i,o;(r=this.performanceClient)==null||r.addQueueMeasurement(Ie.AuthorityUpdateMetadataWithRegionalInformation,this.correlationId);const n=(i=this.authorityOptions.azureRegionConfiguration)==null?void 0:i.azureRegion;if(n){if(n!==De.AZURE_REGION_AUTO_DISCOVER_FLAG)return this.regionDiscoveryMetadata.region_outcome=OD.CONFIGURED_NO_AUTO_DETECTION,this.regionDiscoveryMetadata.region_used=n,gs.replaceWithRegionalInformation(t,n);const s=await at(this.regionDiscovery.detectRegion.bind(this.regionDiscovery),Ie.RegionDiscoveryDetectRegion,this.logger,this.performanceClient,this.correlationId)((o=this.authorityOptions.azureRegionConfiguration)==null?void 0:o.environmentRegion,this.regionDiscoveryMetadata);if(s)return this.regionDiscoveryMetadata.region_outcome=OD.AUTO_DETECTION_REQUESTED_SUCCESSFUL,this.regionDiscoveryMetadata.region_used=s,gs.replaceWithRegionalInformation(t,s);this.regionDiscoveryMetadata.region_outcome=OD.AUTO_DETECTION_REQUESTED_FAILED}return t}async updateCloudDiscoveryMetadata(t){var i;(i=this.performanceClient)==null||i.addQueueMeasurement(Ie.AuthorityUpdateCloudDiscoveryMetadata,this.correlationId);const n=this.updateCloudDiscoveryMetadataFromLocalSources(t);if(n)return n;const r=await at(this.getCloudDiscoveryMetadataFromNetwork.bind(this),Ie.AuthorityGetCloudDiscoveryMetadataFromNetwork,this.logger,this.performanceClient,this.correlationId)();if(r)return ND(t,r,!0),qa.NETWORK;throw gr(sxe)}updateCloudDiscoveryMetadataFromLocalSources(t){this.logger.verbose("Attempting to get cloud discovery metadata  from authority configuration"),this.logger.verbosePii(`Known Authorities: ${this.authorityOptions.knownAuthorities||De.NOT_APPLICABLE}`),this.logger.verbosePii(`Authority Metadata: ${this.authorityOptions.authorityMetadata||De.NOT_APPLICABLE}`),this.logger.verbosePii(`Canonical Authority: ${t.canonical_authority||De.NOT_APPLICABLE}`);const n=this.getCloudDiscoveryMetadataFromConfig();if(n)return this.logger.verbose("Found cloud discovery metadata in authority configuration"),ND(t,n,!1),qa.CONFIG;if(this.logger.verbose("Did not find cloud discovery metadata in the config... Attempting to get cloud discovery metadata from the hardcoded values."),this.options.skipAuthorityMetadataCache)this.logger.verbose("Skipping hardcoded cloud discovery metadata cache since skipAuthorityMetadataCache is set to true. Attempting to get cloud discovery metadata from the network metadata cache.");else{const i=SHt(this.hostnameAndPort);if(i)return this.logger.verbose("Found cloud discovery metadata from hardcoded values."),ND(t,i,!1),qa.HARDCODED_VALUES;this.logger.verbose("Did not find cloud discovery metadata in hardcoded values... Attempting to get cloud discovery metadata from the network metadata cache.")}const r=vse(t);return this.isAuthoritySameType(t)&&t.aliasesFromNetwork&&!r?(this.logger.verbose("Found cloud discovery metadata in the cache."),qa.CACHE):(r&&this.logger.verbose("The metadata entity is expired."),null)}getCloudDiscoveryMetadataFromConfig(){if(this.authorityType===Ol.Ciam)return this.logger.verbose("CIAM authorities do not support cloud discovery metadata, generate the aliases from authority host."),gs.createCloudDiscoveryMetadataFromHost(this.hostnameAndPort);if(this.authorityOptions.cloudDiscoveryMetadata){this.logger.verbose("The cloud discovery metadata has been provided as a network response, in the config.");try{this.logger.verbose("Attempting to parse the cloud discovery metadata.");const t=JSON.parse(this.authorityOptions.cloudDiscoveryMetadata),n=T3(t.metadata,this.hostnameAndPort);if(this.logger.verbose("Parsed the cloud discovery metadata."),n)return this.logger.verbose("There is returnable metadata attached to the parsed cloud discovery metadata."),n;this.logger.verbose("There is no metadata attached to the parsed cloud discovery metadata.")}catch{throw this.logger.verbose("Unable to parse the cloud discovery metadata. Throwing Invalid Cloud Discovery Metadata Error."),gr(Dq)}}return this.isInKnownAuthorities()?(this.logger.verbose("The host is included in knownAuthorities. Creating new cloud discovery metadata from the host."),gs.createCloudDiscoveryMetadataFromHost(this.hostnameAndPort)):null}async getCloudDiscoveryMetadataFromNetwork(){var i;(i=this.performanceClient)==null||i.addQueueMeasurement(Ie.AuthorityGetCloudDiscoveryMetadataFromNetwork,this.correlationId);const t=`${De.AAD_INSTANCE_DISCOVERY_ENDPT}${this.canonicalAuthority}oauth2/v2.0/authorize`,n={};let r=null;try{const o=await this.networkInterface.sendGetRequestAsync(t,n);let s,a;if(gzt(o.body))s=o.body,a=s.metadata,this.logger.verbosePii(`tenant_discovery_endpoint is: ${s.tenant_discovery_endpoint}`);
1597else if(vzt(o.body)){if(this.logger.warning(`A CloudInstanceDiscoveryErrorResponse was returned. The cloud instance discovery network request's status code is: ${o.status}`),s=o.body,s.error===De.INVALID_INSTANCE)return this.logger.error("The CloudInstanceDiscoveryErrorResponse error is invalid_instance."),null;this.logger.warning(`The CloudInstanceDiscoveryErrorResponse error is ${s.error}`),this.logger.warning(`The CloudInstanceDiscoveryErrorResponse error description is ${s.error_description}`),this.logger.warning("Setting the value of the CloudInstanceDiscoveryMetadata (returned from the network) to []"),a=[]}else return this.logger.error("AAD did not return a CloudInstanceDiscoveryResponse or CloudInstanceDiscoveryErrorResponse"),null;this.logger.verbose("Attempting to find a match between the developer's authority and the CloudInstanceDiscoveryMetadata returned from the network request."),r=T3(a,this.hostnameAndPort)}catch(o){if(o instanceof Wr)this.logger.error(`There was a network error while attempting to get the cloud discovery instance metadata.
1598Error: ${o.errorCode}
1599Error Description: ${o.errorMessage}`);else{const s=o;this.logger.error(`A non-MSALJS error was thrown while attempting to get the cloud instance discovery metadata.
1600Error: ${s.name}
1601Error Description: ${s.message}`)}return null}return r||(this.logger.warning("The developer's authority was not found within the CloudInstanceDiscoveryMetadata returned from the network request."),this.logger.verbose("Creating custom Authority for custom domain scenario."),r=gs.createCloudDiscoveryMetadataFromHost(this.hostnameAndPort)),r}isInKnownAuthorities(){return this.authorityOptions.knownAuthorities.filter(n=>n&&An.getDomainFromUrl(n).toLowerCase()===this.hostnameAndPort).length>0}static generateAuthority(t,n){let r;if(n&&n.azureCloudInstance!==Pq.None){const i=n.tenant?n.tenant:De.DEFAULT_COMMON_TENANT;r=`${n.azureCloudInstance}/${i}/`}return r||t}static createCloudDiscoveryMetadataFromHost(t){return{preferred_network:t,preferred_cache:t,aliases:[t]}}getPreferredCache(){if(this.managedIdentity)return De.DEFAULT_AUTHORITY_HOST;if(this.discoveryComplete())return this.metadata.preferred_cache;throw Qe(df)}isAlias(t){return this.metadata.aliases.indexOf(t)>-1}isAliasOfKnownMicrosoftAuthority(t){return pxe.has(t)}static isPublicCloudAuthority(t){return De.KNOWN_PUBLIC_CLOUDS.indexOf(t)>=0}static buildRegionalAuthorityString(t,n,r){const i=new An(t);i.validateAsUri();const o=i.getUrlComponents();let s=`${n}.${o.HostNameAndPort}`;this.isPublicCloudAuthority(o.HostNameAndPort)&&(s=`${n}.${De.REGIONAL_AUTH_PUBLIC_CLOUD_SUFFIX}`);const a=An.constructAuthorityUriFromObject({...i.getUrlComponents(),HostNameAndPort:s}).urlString;return r?`${a}?${r}`:a}static replaceWithRegionalInformation(t,n){const r={...t};return r.authorization_endpoint=gs.buildRegionalAuthorityString(r.authorization_endpoint,n),r.token_endpoint=gs.buildRegionalAuthorityString(r.token_endpoint,n),r.end_session_endpoint&&(r.end_session_endpoint=gs.buildRegionalAuthorityString(r.end_session_endpoint,n)),r}static transformCIAMAuthority(t){let n=t;const i=new An(t).getUrlComponents();if(i.PathSegments.length===0&&i.HostNameAndPort.endsWith(De.CIAM_AUTH_URL)){const o=i.HostNameAndPort.split(".")[0];n=`${n}${o}${De.AAD_TENANT_DOMAIN_SUFFIX}`}return n}}gs.reservedTenantDomains=new Set(["{tenant}","{tenantid}",em.COMMON,em.CONSUMERS,em.ORGANIZATIONS]);function bzt(e){var i;const r=(i=new An(e).getUrlComponents().PathSegments.slice(-1)[0])==null?void 0:i.toLowerCase();switch(r){case em.COMMON:case em.ORGANIZATIONS:case em.CONSUMERS:return;default:return r}}function yxe(e){return e.endsWith(De.FORWARD_SLASH)?e:`${e}${De.FORWARD_SLASH}`}function wzt(e){const t=e.cloudDiscoveryMetadata;let n;if(t)try{n=JSON.parse(t)}catch{throw gr(Dq)}return{canonicalAuthority:e.authority?yxe(e.authority):void 0,knownAuthorities:e.knownAuthorities,cloudDiscoveryMetadata:n}}/*! @azure/msal-common v14.16.1 2025-08-05 */async function bxe(e,t,n,r,i,o,s){s==null||s.addQueueMeasurement(Ie.AuthorityFactoryCreateDiscoveredInstance,o);const a=gs.transformCIAMAuthority(yxe(e)),c=new gs(a,t,n,r,i,o,s);try{return await at(c.resolveEndpointsAsync.bind(c),Ie.AuthorityResolveEndpointsAsync,i,s,o)(),c}catch{throw Qe(df)}}/*! @azure/msal-common v14.16.1 2025-08-05 */class Cm extends Wr{constructor(t,n,r,i,o){super(t,n,r),this.name="ServerError",this.errorNo=i,this.status=o,Object.setPrototypeOf(this,Cm.prototype)}}/*! @azure/msal-common v14.16.1 2025-08-05 */class Yu{static generateThrottlingStorageKey(t){return`${w_.THROTTLING_PREFIX}.${JSON.stringify(t)}`}static preProcess(t,n,r){var s;const i=Yu.generateThrottlingStorageKey(n),o=t.getThrottlingCache(i);if(o){if(o.throttleTime<Date.now()){t.removeItem(i,r);return}throw new Cm(((s=o.errorCodes)==null?void 0:s.join(" "))||De.EMPTY_STRING,o.errorMessage,o.subError)}}static postProcess(t,n,r,i){if(Yu.checkResponseStatus(r)||Yu.checkResponseForRetryAfter(r)){const o={throttleTime:Yu.calculateThrottleTime(parseInt(r.headers[Fs.RETRY_AFTER])),error:r.body.error,errorCodes:r.body.error_codes,errorMessage:r.body.error_description,subError:r.body.suberror};t.setThrottlingCache(Yu.generateThrottlingStorageKey(n),o,i)}}static checkResponseStatus(t){return t.status===429||t.status>=500&&t.status<600}static checkResponseForRetryAfter(t){return t.headers?t.headers.hasOwnProperty(Fs.RETRY_AFTER)&&(t.status<200||t.status>=300):!1}static calculateThrottleTime(t){const n=t<=0?0:t,r=Date.now()/1e3;return Math.floor(Math.min(r+(n||w_.DEFAULT_THROTTLE_TIME_SECONDS),r+w_.DEFAULT_MAX_THROTTLE_TIME_SECONDS)*1e3)}static removeThrottle(t,n,r,i){const o={clientId:n,authority:r.authority,scopes:r.scopes,homeAccountIdentifier:i,claims:r.claims,authenticationScheme:r.authenticationScheme,resourceRequestMethod:r.resourceRequestMethod,resourceRequestUri:r.resourceRequestUri,shrClaims:r.shrClaims,sshKid:r.sshKid},s=this.generateThrottlingStorageKey(o);t.removeItem(s,r.correlationId)}}/*! @azure/msal-common v14.16.1 2025-08-05 */class r4 extends Wr{constructor(t,n,r){super(t.errorCode,t.errorMessage,t.subError),Object.setPrototypeOf(this,r4.prototype),this.name="NetworkError",this.error=t,this.httpStatus=n,this.responseHeaders=r}}function Ese(e,t,n){return new r4(e,t,n)}/*! @azure/msal-common v14.16.1 2025-08-05 */class zq{constructor(t,n){this.config=RHt(t),this.logger=new _m(this.config.loggerOptions,Kke,Rq),this.cryptoUtils=this.config.cryptoInterface,this.cacheManager=this.config.storageInterface,this.networkClient=this.config.networkInterface,this.serverTelemetryManager=this.config.serverTelemetryManager,this.authority=this.config.authOptions.authority,this.performanceClient=n}createTokenRequestHeaders(t){const n={};if(n[Fs.CONTENT_TYPE]=De.URL_FORM_CONTENT_TYPE,!this.config.systemOptions.preventCorsPreflight&&t)switch(t.type){case sc.HOME_ACCOUNT_ID:try{const r=my(t.credential);n[Fs.CCS_HEADER]=`Oid:${r.uid}@${r.utid}`}catch(r){this.logger.verbose("Could not parse home account ID for CCS Header: "+r)}break;case sc.UPN:n[Fs.CCS_HEADER]=`UPN: ${t.credential}`;break}return n}async executePostToTokenEndpoint(t,n,r,i,o,s){var c;s&&((c=this.performanceClient)==null||c.addQueueMeasurement(s,o));const a=await this.sendPostRequest(i,t,{body:n,headers:r},o);return this.config.serverTelemetryManager&&a.status<500&&a.status!==429&&this.config.serverTelemetryManager.clearTelemetryCache(),a}async sendPostRequest(t,n,r,i){var s,a,c;Yu.preProcess(this.cacheManager,t,i);let o;try{o=await at(this.networkClient.sendPostRequestAsync.bind(this.networkClient),Ie.NetworkClientSendPostRequestAsync,this.logger,this.performanceClient,i)(n,r);const l=o.headers||{};(a=this.performanceClient)==null||a.addFields({refreshTokenSize:((s=o.body.refresh_token)==null?void 0:s.length)||0,httpVerToken:l[Fs.X_MS_HTTP_VERSION]||"",requestId:l[Fs.X_MS_REQUEST_ID]||""},i)}catch(l){if(l instanceof r4){const u=l.responseHeaders;throw u&&((c=this.performanceClient)==null||c.addFields({httpVerToken:u[Fs.X_MS_HTTP_VERSION]||"",requestId:u[Fs.X_MS_REQUEST_ID]||"",contentTypeHeader:u[Fs.CONTENT_TYPE]||void 0,contentLengthHeader:u[Fs.CONTENT_LENGTH]||void 0,httpStatus:l.httpStatus},i)),l.error}throw l instanceof Wr?l:Qe(Mke)}return Yu.postProcess(this.cacheManager,t,o,i),o}async updateAuthority(t,n){var o;(o=this.performanceClient)==null||o.addQueueMeasurement(Ie.UpdateTokenEndpointAuthority,n);const r=`https://${t}/${this.authority.tenant}/`,i=await bxe(r,this.networkClient,this.cacheManager,this.authority.options,this.logger,n,this.performanceClient);this.authority=i}createTokenQueryParameters(t){const n=new S_(t.correlationId,this.performanceClient);return t.embeddedClientId&&n.addBrokerParameters({brokerClientId:this.config.authOptions.clientId,brokerRedirectUri:this.config.authOptions.redirectUri}),t.tokenQueryParameters&&n.addExtraQueryParameters(t.tokenQueryParameters),n.addCorrelationId(t.correlationId),n.createQueryString()}}/*! @azure/msal-common v14.16.1 2025-08-05 */const k3="no_tokens_found",wxe="native_account_unavailable",Vq="refresh_token_expired",Szt="interaction_required",_zt="consent_required",Czt="login_required",i4="bad_token";/*! @azure/msal-common v14.16.1 2025-08-05 */const Tse=[Szt,_zt,Czt,i4],Ezt=["message_only","additional_action","basic_action","user_password_expired","consent_required","bad_token"],Tzt={[k3]:"No refresh token found in the cache. Please sign-in.",[wxe]:"The requested account is not available in the native broker. It may have been deleted or logged out. Please sign-in again using an interactive API.",[Vq]:"Refresh token has expired.",[i4]:"Identity provider returned bad_token due to an expired or invalid refresh token. Please invoke an interactive API to resolve."};class cu extends Wr{constructor(t,n,r,i,o,s,a,c){super(t,n,r),Object.setPrototypeOf(this,cu.prototype),this.timestamp=i||De.EMPTY_STRING,this.traceId=o||De.EMPTY_STRING,this.correlationId=s||De.EMPTY_STRING,this.claims=a||De.EMPTY_STRING,this.name="InteractionRequiredAuthError",this.errorNo=c}}function kse(e,t,n){const r=!!e&&Tse.indexOf(e)>-1,i=!!n&&Ezt.indexOf(n)>-1,o=!!t&&Tse.some(s=>t.indexOf(s)>-1);return r||o||i}function yU(e){return new cu(e,Tzt[e])}/*! @azure/msal-common v14.16.1 2025-08-05 */class Jl{static setRequestState(t,n,r){const i=Jl.generateLibraryState(t,r);return n?`${i}${De.RESOURCE_DELIM}${n}`:i}static generateLibraryState(t,n){if(!t)throw Qe(hU);const r={id:t.createNewGuid()};n&&(r.meta=n);const i=JSON.stringify(r);return t.base64Encode(i)}static parseRequestState(t,n){if(!t)throw Qe(hU);if(!n)throw Qe(Q1);try{const r=n.split(De.RESOURCE_DELIM),i=r[0],o=r.length>1?r.slice(1).join(De.RESOURCE_DELIM):De.EMPTY_STRING,s=t.base64Decode(i),a=JSON.parse(s);return{userRequestState:o||De.EMPTY_STRING,libraryState:a}}catch{throw Qe(Q1)}}}/*! @azure/msal-common v14.16.1 2025-08-05 */const kzt={SW:"sw"};class J1{constructor(t,n){this.cryptoUtils=t,this.performanceClient=n}async generateCnf(t,n){var o;(o=this.performanceClient)==null||o.addQueueMeasurement(Ie.PopTokenGenerateCnf,t.correlationId);const r=await at(this.generateKid.bind(this),Ie.PopTokenGenerateCnf,n,this.performanceClient,t.correlationId)(t),i=this.cryptoUtils.base64UrlEncode(JSON.stringify(r));return{kid:r.kid,reqCnfString:i}}async generateKid(t){var r;return(r=this.performanceClient)==null||r.addQueueMeasurement(Ie.PopTokenGenerateKid,t.correlationId),{kid:await this.cryptoUtils.getPublicKeyThumbprint(t),xms_ksl:kzt.SW}}async signPopToken(t,n,r){return this.signPayload(t,n,r)}async signPayload(t,n,r,i){const{resourceRequestMethod:o,resourceRequestUri:s,shrClaims:a,shrNonce:c,shrOptions:l}=r,u=s?new An(s):void 0,d=u==null?void 0:u.getUrlComponents();return this.cryptoUtils.signJwt({at:t,ts:Ad(),m:o==null?void 0:o.toUpperCase(),u:d==null?void 0:d.HostNameAndPort,nonce:c||this.cryptoUtils.createNewGuid(),p:d==null?void 0:d.AbsolutePath,q:d!=null&&d.QueryString?[[],d.QueryString]:void 0,client_claims:a||void 0,...i},n,l,r.correlationId)}}/*! @azure/msal-common v14.16.1 2025-08-05 */class xzt{constructor(t,n){this.cache=t,this.hasChanged=n}get cacheHasChanged(){return this.hasChanged}get tokenCache(){return this.cache}}/*! @azure/msal-common v14.16.1 2025-08-05 */function Azt(e){var r,i;const t="code=",n=(r=e.error_uri)==null?void 0:r.lastIndexOf(t);return n&&n>=0?(i=e.error_uri)==null?void 0:i.substring(n+t.length):void 0}class Pv{constructor(t,n,r,i,o,s,a){this.clientId=t,this.cacheStorage=n,this.cryptoObj=r,this.logger=i,this.serializableCache=o,this.persistencePlugin=s,this.performanceClient=a}validateServerAuthorizationCodeResponse(t,n){if(!t.state||!n)throw t.state?Qe(w3,"Cached State"):Qe(w3,"Server State");let r,i;try{r=decodeURIComponent(t.state)}catch{throw Qe(Q1,t.state)}try{i=decodeURIComponent(n)}catch{throw Qe(Q1,t.state)}if(r!==i)throw Qe(Fke);if(t.error||t.error_description||t.suberror){const o=Azt(t);throw kse(t.error,t.error_description,t.suberror)?new cu(t.error||"",t.error_description,t.suberror,t.timestamp||"",t.trace_id||"",t.correlation_id||"",t.claims||"",o):new Cm(t.error||"",t.error_description,t.suberror,o)}}validateTokenResponse(t,n){var r;if(t.error||t.error_description||t.suberror){const i=`Error(s): ${t.error_codes||De.NOT_AVAILABLE} - Timestamp: ${t.timestamp||De.NOT_AVAILABLE} - Description: ${t.error_description||De.NOT_AVAILABLE} - Correlation ID: ${t.correlation_id||De.NOT_AVAILABLE} - Trace ID: ${t.trace_id||De.NOT_AVAILABLE}`,o=(r=t.error_codes)!=null&&r.length?t.error_codes[0]:void 0,s=new Cm(t.error,i,t.suberror,o,t.status);if(n&&t.status&&t.status>=Tk.SERVER_ERROR_RANGE_START&&t.status<=Tk.SERVER_ERROR_RANGE_END){this.logger.warning(`executeTokenRequest:validateTokenResponse - AAD is currently unavailable and the access token is unable to be refreshed.
1602${s}`);return}else if(n&&t.status&&t.status>=Tk.CLIENT_ERROR_RANGE_START&&t.status<=Tk.CLIENT_ERROR_RANGE_END){this.logger.warning(`executeTokenRequest:validateTokenResponse - AAD is currently available but is unable to refresh the access token.
1603${s}`);return}throw kse(t.error,t.error_description,t.suberror)?new cu(t.error,t.error_description,t.suberror,t.timestamp||De.EMPTY_STRING,t.trace_id||De.EMPTY_STRING,t.correlation_id||De.EMPTY_STRING,t.claims||De.EMPTY_STRING,o):s}}async handleServerTokenResponse(t,n,r,i,o,s,a,c,l){var g;(g=this.performanceClient)==null||g.addQueueMeasurement(Ie.HandleServerTokenResponse,t.correlation_id);let u;if(t.id_token){if(u=t0(t.id_token||De.EMPTY_STRING,this.cryptoObj.base64Decode),o&&o.nonce&&u.nonce!==o.nonce)throw Qe(jke);if(i.maxAge||i.maxAge===0){const m=u.auth_time;if(!m)throw Qe(kq);Yke(m,i.maxAge)}}this.homeAccountIdentifier=_o.generateHomeAccountId(t.client_info||De.EMPTY_STRING,n.authorityType,this.logger,this.cryptoObj,u);let d;o&&o.state&&(d=Jl.parseRequestState(this.cryptoObj,o.state)),t.key_id=t.key_id||i.sshKid||void 0;const f=this.generateCacheRecord(t,n,r,i,u,s,o);let p;try{if(this.persistencePlugin&&this.serializableCache&&(this.logger.verbose("Persistence enabled, calling beforeCacheAccess"),p=new xzt(this.serializableCache,!0),await this.persistencePlugin.beforeCacheAccess(p)),a&&!c&&f.account){const m=f.account.generateAccountKey();if(!this.cacheStorage.getAccount(m,i.correlationId,this.logger))return this.logger.warning("Account used to refresh tokens not in persistence, refreshed tokens will not be stored in the cache"),await Pv.generateAuthenticationResult(this.cryptoObj,n,f,!1,i,u,d,void 0,l)}await this.cacheStorage.saveCacheRecord(f,i.correlationId,i.storeInCache)}finally{this.persistencePlugin&&this.serializableCache&&p&&(this.logger.verbose("Persistence enabled, calling afterCacheAccess"),await this.persistencePlugin.afterCacheAccess(p))}return Pv.generateAuthenticationResult(this.cryptoObj,n,f,!1,i,u,d,t,l)}generateCacheRecord(t,n,r,i,o,s,a){const c=n.getPreferredCache();if(!c)throw Qe(Aq);const l=dxe(o);let u,d;t.id_token&&o&&(u=ZN(this.homeAccountIdentifier,c,t.id_token,this.clientId,l||""),d=Wq(this.cacheStorage,n,this.homeAccountIdentifier,this.cryptoObj.base64Decode,i.correlationId,o,t.client_info,c,l,a,void 0,this.logger));let f=null;if(t.access_token){const m=t.scope?Bi.fromString(t.scope):new Bi(i.scopes||[]),y=(typeof t.expires_in=="str
1603ing"?parseInt(t.expires_in,10):t.expires_in)||0,v=(typeof t.ext_expires_in=="string"?parseInt(t.ext_expires_in,10):t.ext_expires_in)||0,w=(typeof t.refresh_in=="string"?parseInt(t.refresh_in,10):t.refresh_in)||void 0,S=r+y,C=S+v,E=w&&w>0?r+w:void 0;f=e4(this.homeAccountIdentifier,c,t.access_token,this.clientId,l||n.tenant||"",m.printScopes(),S,C,this.cryptoObj.base64Decode,E,t.token_type,s,t.key_id,i.claims,i.requestedClaimsHash)}let p=null;if(t.refresh_token){let m;if(t.refresh_token_expires_in){const y=typeof t.refresh_token_expires_in=="string"?parseInt(t.refresh_token_expires_in,10):t.refresh_token_expires_in;m=r+y}p=Qke(this.homeAccountIdentifier,c,t.refresh_token,this.clientId,t.foci,s,m)}let g=null;return t.foci&&(g={clientId:this.clientId,environment:c,familyId:t.foci}),{account:d,idToken:u,accessToken:f,refreshToken:p,appMetadata:g}}static async generateAuthenticationResult(t,n,r,i,o,s,a,c,l){var S,C,E,T,x;let u=De.EMPTY_STRING,d=[],f=null,p,g,m=De.EMPTY_STRING;if(r.accessToken){if(r.accessToken.tokenType===lr.POP&&!o.popKid){const O=new J1(t),{secret:A,keyId:L}=r.accessToken;if(!L)throw Qe(Iq);u=await O.signPopToken(A,L,o)}else u=r.accessToken.secret;d=Bi.fromString(r.accessToken.target).asArray(),f=new Date(Number(r.accessToken.expiresOn)*1e3),p=new Date(Number(r.accessToken.extendedExpiresOn)*1e3),r.accessToken.refreshOn&&(g=new Date(Number(r.accessToken.refreshOn)*1e3))}r.appMetadata&&(m=r.appMetadata.familyId===b_?b_:"");const y=(s==null?void 0:s.oid)||(s==null?void 0:s.sub)||"",v=(s==null?void 0:s.tid)||"";c!=null&&c.spa_accountid&&r.account&&(r.account.nativeAccountId=c==null?void 0:c.spa_accountid);const w=r.account?jq(r.account.getAccountInfo(),void 0,s,(S=r.idToken)==null?void 0:S.secret):null;return{authority:n.canonicalAuthority,uniqueId:y,tenantId:v,scopes:d,account:w,idToken:((C=r==null?void 0:r.idToken)==null?void 0:C.secret)||"",idTokenClaims:s||{},accessToken:u,fromCache:i,expiresOn:f,extExpiresOn:p,refreshOn:g,correlationId:o.correlationId,requestId:l||De.EMPTY_STRING,familyId:m,tokenType:((E=r.accessToken)==null?void 0:E.tokenType)||De.EMPTY_STRING,state:a?a.userRequestState:De.EMPTY_STRING,cloudGraphHostName:((T=r.account)==null?void 0:T.cloudGraphHostName)||De.EMPTY_STRING,msGraphHost:((x=r.account)==null?void 0:x.msGraphHost)||De.EMPTY_STRING,code:c==null?void 0:c.spa_code,fromNativeBroker:!1}}}function Wq(e,t,n,r,i,o,s,a,c,l,u,d){d==null||d.verbose("setCachedAccount called");const p=e.getAccountKeys().find(w=>w.startsWith(n));let g=null;p&&(g=e.getAccount(p,i,d));const m=g||_o.createAccount({homeAccountId:n,idTokenClaims:o,clientInfo:s,environment:a,cloudGraphHostName:l==null?void 0:l.cloud_graph_host_name,msGraphHost:l==null?void 0:l.msgraph_host,nativeAccountId:u},t,r),y=m.tenantProfiles||[],v=c||m.realm;if(v&&!y.find(w=>w.tenantId===v)){const w=Fq(n,m.localAccountId,v,o);y.push(w)}return m.tenantProfiles=y,m}/*! @azure/msal-common v14.16.1 2025-08-05 */async function Sxe(e,t,n){return typeof e=="string"?e:e({clientId:t,tokenEndpoint:n})}/*! @azure/msal-common v14.16.1 2025-08-05 */class _xe extends zq{constructor(t,n){var r;super(t,n),this.includeRedirectUri=!0,this.oidcDefaultScopes=(r=this.config.authOptions.authority.options.OIDCOptions)==null?void 0:r.defaultScopes}async getAuthCodeUrl(t){var r;(r=this.performanceClient)==null||r.addQueueMeasurement(Ie.GetAuthCodeUrl,t.correlationId);const n=await at(this.createAuthCodeUrlQueryString.bind(this),Ie.AuthClientCreateQueryString,this.logger,this.performanceClient,t.correlationId)(t);return An.appendQueryString(this.authority.authorizationEndpoint,n)}async acquireToken(t,n){var a,c;if((a=this.performanceClient)==null||a.addQueueMeasurement(Ie.AuthClientAcquireToken,t.correlationId),!t.code)throw Qe($ke);const r=Ad(),i=await at(this.executeTokenRequest.bind(this),Ie.AuthClientExecuteTokenRequest,this.logger,this.performanceClient,t.correlationId)(this.authority,t),o=(c=i.headers)==null?void 0:c[Fs.X_MS_REQUEST_ID],s=new Pv(this.config.authOptions.clientId,this.cacheManager,this.cryptoUtils,this.logger,this.config.serializableCache,this.config.persistencePlugin,this.performanceClient);return s.validateTokenResponse(i.body),at(s.handleServerTokenResponse.bind(s),Ie.HandleServerTokenResponse,this.logger,this.performanceClient,t.correlationId)(i.body,this.authority,r,t,n,void 0,void 0,void 0,o)}handleFragmentResponse(t,n){if(new Pv(this.config.authOptions.clientId,this.cacheManager,this.cryptoUtils,this.logger,null,null).validateServerAuthorizationCodeResponse(t,n),!t.code)throw Qe(qke);return t}getLogoutUri(t){if(!t)throw gr(rxe);const n=this.createLogoutUrlQueryString(t);return An.appendQueryString(this.authority.endSessionEndpoint,n)}async executeTokenRequest(t,n){var l,u;(l=this.performanceClient)==null||l.addQueueMeasurement(Ie.AuthClientExecuteTokenRequest,n.correlationId);const r=this.createTokenQueryParameters(n),i=An.appendQueryString(t.tokenEndpoint,r),o=await at(this.createTokenRequestBody.bind(this),Ie.AuthClientCreateTokenRequestBody,this.logger,this.performanceClient,n.correlationId)(n);let s;if(n.clientInfo)try{const d=_3(n.clientInfo,this.cryptoUtils.base64Decode);s={credential:`${d.uid}${ws.CLIENT_INFO_SEPARATOR}${d.utid}`,type:sc.HOME_ACCOUNT_ID}}catch(d){this.logger.verbose("Could not parse client info for CCS Header: "+d)}const a=this.createTokenRequestHeaders(s||n.ccsCredential),c={clientId:((u=n.tokenBodyParameters)==null?void 0:u.clientId)||this.config.authOptions.clientId,authority:t.canonicalAuthority,scopes:n.scopes,claims:n.
1603claims,authenticationScheme:n.authenticationScheme,resourceRequestMethod:n.resourceRequestMethod,resourceRequestUri:n.resourceRequestUri,shrClaims:n.shrClaims,sshKid:n.sshKid};return at(this.executePostToTokenEndpoint.bind(this),Ie.AuthorizationCodeClientExecutePostToTokenEndpoint,this.logger,this.performanceClient,n.correlationId)(i,o,a,c,n.correlationId,Ie.AuthorizationCodeClientExecutePostToTokenEndpoint)}async createTokenRequestBody(t){var i,o;(i=this.performanceClient)==null||i.addQueueMeasurement(Ie.AuthClientCreateTokenRequestBody,t.correlationId);const n=new S_(t.correlationId,this.performanceClient);if(n.addClientId(t.embeddedClientId||((o=t.tokenBodyParameters)==null?void 0:o[Rv])||this.config.authOptions.clientId),this.includeRedirectUri?n.addRedirectUri(t.redirectUri):B0.validateRedirectUri(t.redirectUri),n.addScopes(t.scopes,!0,this.oidcDefaultScopes),n.addAuthorizationCode(t.code),n.addLibraryInfo(this.config.libraryInfo),n.addApplicationTelemetry(this.config.telemetry.application),n.addThrottling(),this.serverTelemetryManager&&!gU(this.config)&&n.addServerTelemetry(this.serverTelemetryManager),t.codeVerifier&&n.addCodeVerifier(t.codeVerifier),this.config.clientCredentials.clientSecret&&n.addClientSecret(this.config.clientCredentials.clientSecret),this.config.clientCredentials.clientAssertion){const s=this.config.clientCredentials.clientAssertion;n.addClientAssertion(await Sxe(s.assertion,this.config.authOptions.clientId,t.resourceRequestUri)),n.addClientAssertionType(s.assertionType)}if(n.addGrantType(Rke.AUTHORIZATION_CODE_GRANT),n.addClientInfo(),t.authenticationScheme===lr.POP){const s=new J1(this.cryptoUtils,this.performanceClient);let a;t.popKid?a=this.cryptoUtils.encodeKid(t.popKid):a=(await at(s.generateCnf.bind(s),Ie.PopTokenGenerateCnf,this.logger,this.performanceClient,t.correlationId)(t,this.logger)).reqCnfString,n.addPopToken(a)}else if(t.authenticationScheme===lr.SSH)if(t.sshJwk)n.addSshJwk(t.sshJwk);else throw gr(t4);(!Xl.isEmptyObj(t.claims)||this.config.authOptions.clientCapabilities&&this.config.authOptions.clientCapabilities.length>0)&&n.addClaims(t.claims,this.config.authOptions.clientCapabilities);let r;if(t.clientInfo)try{const s=_3(t.clientInfo,this.cryptoUtils.base64Decode);r={credential:`${s.uid}${ws.CLIENT_INFO_SEPARATOR}${s.utid}`,type:sc.HOME_ACCOUNT_ID}}catch(s){this.logger.verbose("Could not parse client info for CCS Header: "+s)}else r=t.ccsCredential;if(this.config.systemOptions.preventCorsPreflight&&r)switch(r.type){case sc.HOME_ACCOUNT_ID:try{const s=my(r.credential);n.addCcsOid(s)}catch(s){this.logger.verbose("Could not parse home account ID for CCS Header: "+s)}break;case sc.UPN:n.addCcsUpn(r.credential);break}return t.embeddedClientId&&n.addBrokerParameters({brokerClientId:this.config.authOptions.clientId,brokerRedirectUri:this.config.authOptions.redirectUri}),t.tokenBodyParameters&&n.addExtraQueryParameters(t.tokenBodyParameters),t.enableSpaAuthorizationCode&&(!t.tokenBodyParameters||!t.tokenBodyParameters[Cse])&&n.addExtraQueryParameters({[Cse]:"1"}),n.createQueryString()}async createAuthCodeUrlQueryString(t){var o,s;const n=t.correlationId||this.config.cryptoInterface.createNewGuid();(o=this.performanceClient)==null||o.addQueueMeasurement(Ie.AuthClientCreateQueryString,n);const r=new S_(n,this.performanceClient);r.addClientId(t.embeddedClientId||((s=t.extraQueryParameters)==null?void 0:s[Rv])||this.config.authOptions.clientId);const i=[...t.scopes||[],...t.extraScopesToConsent||[]];if(r.addScopes(i,!0,this.oidcDefaultScopes),r.addRedirectUri(t.redirectUri),r.addCorrelationId(n),r.addResponseMode(t.responseMode),r.addResponseTypeCode(),r.addLibraryInfo(this.config.libraryInfo),gU(this.config)||r.addApplicationTelemetry(this.config.telemetry.application),r.addClientInfo(),t.codeChallenge&&t.codeChallengeMethod&&r.addCodeChallengeParams(t.codeChallenge,t.codeChallengeMethod),t.prompt&&r.addPrompt(t.prompt),t.domainHint&&r.addDomainHint(t.domainHint),t.prompt!==Fo.SELECT_ACCOUNT)if(t.sid&&t.prompt===Fo.NONE)this.logger.verbose("createAuthCodeUrlQueryString: Prompt is none, adding sid from request"),r.addSid(t.sid);else if(t.account){const a=this.extractAccountSid(t.account);let c=this.extractLoginHint(t.account);if(c&&t.domainHint&&(this.logger.warning('AuthorizationCodeClient.createAuthCodeUrlQueryString: "domainHint" param is set, skipping opaque "login_hint" claim. Please consider not passing domainHint'),c=null),c){this.logger.verbose("createAuthCodeUrlQueryString: login_hint claim present on account"),r.addLoginHint(c);try{const l=my(t.account.homeAccountId);r.addCcsOid(l)}catch{this.logger.verbose("createAuthCodeUrlQueryString: Could not parse home account ID for CCS Header")}}else if(a&&t.prompt===Fo.NONE){this.logger.verbose("createAuthCodeUrlQueryString: Prompt is none, adding sid from account"),r.addSid(a);try{const l=my(t.account.homeAccountId);r.addCcsOid(l)}catch{this.logger.verbose("createAuthCodeUrlQueryString: Could not parse home account ID for CCS Header")}}else if(t.loginHint)this.logger.verbose("createAuthCodeUrlQueryString: Adding login_hint from request"),r.addLoginHint(t.loginHint),r.addCcsUpn(t.loginHint);else if(t.account.username){this.logger.verbose("createAuthCodeUrlQueryString: Adding login_hint from account"),r.addLoginHint(t.account.username);try{const l=my(t.account.homeAccountId);r.addCcsOid(l)}catch{this.logger.verbose("createAuthCodeUrlQueryString: Could not parse home account ID for CCS Header")}}}else t.loginHint&&(this.logger.verbose("createAuthCodeUrlQueryString: No account, adding login_hint from request"),r.addLoginHint(t.loginHint),r.addCcsUpn(t.loginHint));else this.logger.verbose("createAuthCodeUrlQueryString: Prompt is select_account, ignoring account hints");
1603if(t.nonce&&r.addNonce(t.nonce),t.state&&r.addState(t.state),(t.claims||this.config.authOptions.clientCapabilities&&this.config.authOptions.clientCapabilities.length>0)&&r.addClaims(t.claims,this.config.authOptions.clientCapabilities),t.embeddedClientId&&r.addBrokerParameters({brokerClientId:this.config.authOptions.clientId,brokerRedirectUri:this.config.authOptions.redirectUri}),this.addExtraQueryParams(t,r),t.nativeBroker&&(r.addNativeBroker(),t.authenticationScheme===lr.POP)){const a=new J1(this.cryptoUtils);let c;t.popKid?c=this.cryptoUtils.encodeKid(t.popKid):c=(await at(a.generateCnf.bind(a),Ie.PopTokenGenerateCnf,this.logger,this.performanceClient,t.correlationId)(t,this.logger)).reqCnfString,r.addPopToken(c)}return r.createQueryString()}createLogoutUrlQueryString(t){const n=new S_(t.correlationId,this.performanceClient);return t.postLogoutRedirectUri&&n.addPostLogoutRedirectUri(t.postLogoutRedirectUri),t.correlationId&&n.addCorrelationId(t.correlationId),t.idTokenHint&&n.addIdTokenHint(t.idTokenHint),t.state&&n.addState(t.state),t.logoutHint&&n.addLogoutHint(t.logoutHint),this.addExtraQueryParams(t,n),n.createQueryString()}addExtraQueryParams(t,n){!(t.extraQueryParameters&&t.extraQueryParameters.hasOwnProperty("instance_aware"))&&this.config.authOptions.instanceAware&&(t.extraQueryParameters=t.extraQueryParameters||{},t.extraQueryParameters.instance_aware="true"),t.extraQueryParameters&&n.addExtraQueryParameters(t.extraQueryParameters)}extractAccountSid(t){var n;return((n=t.idTokenClaims)==null?void 0:n.sid)||null}extractLoginHint(t){var n;return((n=t.idTokenClaims)==null?void 0:n.login_hint)||null}}/*! @azure/msal-common v14.16.1 2025-08-05 */const Izt=300;class bU extends zq{constructor(t,n){super(t,n)}async acquireToken(t){var s,a;(s=this.performanceClient)==null||s.addQueueMeasurement(Ie.RefreshTokenClientAcquireToken,t.correlationId);const n=Ad(),r=await at(this.executeTokenRequest.bind(this),Ie.RefreshTokenClientExecuteTokenRequest,this.logger,this.performanceClient,t.correlationId)(t,this.authority),i=(a=r.headers)==null?void 0:a[Fs.X_MS_REQUEST_ID],o=new Pv(this.config.authOptions.clientId,this.cacheManager,this.cryptoUtils,this.logger,this.config.serializableCache,this.config.persistencePlugin);return o.validateTokenResponse(r.body),at(o.handleServerTokenResponse.bind(o),Ie.HandleServerTokenResponse,this.logger,this.performanceClient,t.correlationId)(r.body,this.authority,n,t,void 0,void 0,!0,t.forceCache,i)}async acquireTokenByRefreshToken(t){var r;if(!t)throw gr(nxe);if((r=this.performanceClient)==null||r.addQueueMeasurement(Ie.RefreshTokenClientAcquireTokenByRefreshToken,t.correlationId),!t.account)throw Qe(xq);if(this.cacheManager.isAppMetadataFOCI(t.account.environment))try{return await at(this.acquireTokenWithCachedRefreshToken.bind(this),Ie.RefreshTokenClientAcquireTokenWithCachedRefreshToken,this.logger,this.performanceClient,t.correlationId)(t,!0)}catch(i){const o=i instanceof cu&&i.errorCode===k3,s=i instanceof Cm&&i.errorCode===lse.INVALID_GRANT_ERROR&&i.subError===lse.CLIENT_MISMATCH_ERROR;if(o||s)return at(this.acquireTokenWithCachedRefreshToken.bind(this),Ie.RefreshTokenClientAcquireTokenWithCachedRefreshToken,this.logger,this.performanceClient,t.correlationId)(t,!1);throw i}return at(this.acquireTokenWithCachedRefreshToken.bind(this),Ie.RefreshTokenClientAcquireTokenWithCachedRefreshToken,this.logger,this.performanceClient,t.correlationId)(t,!1)}async acquireTokenWithCachedRefreshToken(t,n){var o;(o=this.performanceClient)==null||o.addQueueMeasurement(Ie.RefreshTokenClientAcquireTokenWithCachedRefreshToken,t.correlationId);const r=n0(this.cacheManager.getRefreshToken.bind(this.cacheManager),Ie.CacheManagerGetRefreshToken,this.logger,this.performanceClient,t.correlationId)(t.account,n,t.correlationId,void 0,this.performanceClient);if(!r)throw yU(k3);if(r.expiresOn&&mU(r.expiresOn,t.refreshTokenExpirationOffsetSeconds||Izt))throw yU(Vq);const i={...t,refreshToken:r.secret,authenticationScheme:t.authenticationScheme||lr.BEARER,ccsCredential:{credential:t.account.homeAccountId,type:sc.HOME_ACCOUNT_ID}};try{return await at(this.acquireToken.bind(this),Ie.RefreshTokenClientAcquireToken,this.logger,this.performanceClient,t.correlationId)(i)}catch(s){if(s instanceof cu&&s.subError===i4){this.logger.verbose("acquireTokenWithRefreshToken: bad refresh token, removing from cache");const a=py(r);this.cacheManager.removeRefreshToken(a,t.correlationId)}throw s}}async executeTokenRequest(t,n){var c,l;(c=this.performanceClient)==null||c.addQueueMeasurement(Ie.RefreshTokenClientExecuteTokenRequest,t.correlationId);const r=this.createTokenQueryParameters(t),i=An.appendQueryString(n.tokenEndpoint,r),o=await at(this.createTokenRequestBody.bind(this),Ie.RefreshTokenClientCreateTokenRequestBody,this.logger,this.performanceClient,t.correlationId)(t),s=this.createTokenRequestHeaders(t.ccsCredential),a={clientId:((l=t.tokenBodyParameters)==null?void 0:l.clientId)||this.config.authOptions.clientId,authority:n.canonicalAuthority,scopes:t.scopes,claims:t.claims,authenticationScheme:t.authenticationScheme,resourceRequestMethod:t.resourceRequestMethod,resourceRequestUri:t.resourceRequestUri,shrClaims:t.shrClaims,sshKid:t.sshKid};return at(this.executePostToTokenEndpoint.bind(this),Ie.RefreshTokenClientExecutePostToTokenEndpoint,this.logger,this.performanceClient,t.correlationId)(i,o,s,a,t.correlationId,Ie.RefreshTokenClientExecutePostToTokenEndpoint)}async createTokenRequestBody(t){var i,o,s;(i=this.performanceClient)==null||i.addQueueMeasurement(Ie.RefreshTokenClientCreateTokenRequestBody,t.correlationId);const n=t.correlationId,r=new S_(n,this.performanceClient);if(r.addClientId(t.embeddedClientId||((o=t.tokenBodyParameters)==null?void 0:o[Rv])||this.config.authOptions.clientId),t.redirectUri&&r.addRedirectUri(t.redirectUri),r.addScopes(t.scopes,!0,(s=this.config.authOptions.authority.options.OIDCOptions)==null?void 0:s.defaultScopes),r.addGrantType(Rke.REFRESH_TOKEN_GRANT),r.addClientInfo(),r.addLibraryInfo(this.config.libraryInfo),r.addApplicationTelemetry(this.config.telemetry.application),r.addThrottling(),this.serverTelemetryManager&&!gU(this.config)&&r.addServerTelemetry(this.serverTelemetryManager),r.addRefreshToken(t.refreshToken),this.config.clientCredentials.clientSecret&&r.addClientSecret(this.config.clientCredentials.clientSecret),this.config.clientCredentials.clientAssertion){const a=this.config.clientCredentials.clientAssertion;r.addClientAssertion(await Sxe(a.assertion,this.config.authOptions.clientId,t.resourceRequestUri)),r.addClientAssertionType(a.assertionType)}if(t.authenticationScheme===lr.POP){const a=new J1(this.cryptoUtils,this.performanceClient);let c;t.popKid?c=this.cryptoUtils.encodeKid(t.popKid):c=(await at(a.generateCnf.bind(a),Ie.PopTokenGenerateCnf,this.logger,this.performanceClient,t.correlationId)(t,this.logger)).reqCnfString,r.addPopToken(c)}else if(t.authenticationScheme===lr.SSH)if(t.sshJwk)r.addSshJwk(t.sshJwk);else throw gr(t4);if((!Xl.isEmptyObj(t.claims)||this.config.authOptions.clientCapabilities&&this.config.authOptions.clientCapabilities.length>0)&&r.addClaims(t.claims,this.config.authOptions.clientCapabilities),this.config.systemOptions.preventCorsPreflight&&t.ccsCredential)switch(t.ccsCredential.type){case sc.HOME_ACCOUNT_ID:try{const a=my(t.ccsCredential.credential);r.addCcsOid(a)}catch(a){this.logger.verbose("Could not parse home account ID for CCS Header: "+a)}break;case sc.UPN:r.addCcsUpn(t.ccsCredential.credential);break}return t.embeddedClientId&&r.addBrokerParameters({brokerClientId:this.config.authOptions.clientId,brokerRedirectUri:this.config.authOptions.redirectUri}),t.tokenBodyParameters&&r.addExtraQueryParameters(t.tokenBodyParameters),r.createQueryString()}}/*! @azure/msal-common v14.16.1 2025-08-05 */class Rzt extends zq{constructor(t,n){super(t,n)}async acquireToken(t){var n;try{const[r,i]=await this.acquireCachedToken({...t,scopes:(n=t.scopes)!=null&&n.length?t.scopes:[...ow]});return i===Qh.PROACTIVELY_REFRESHED&&(this.logger.info("SilentFlowClient:acquireCachedToken - Cached access token's refreshOn property has been exceeded'. It's not expired, but must be refreshed."),new bU(this.config,this.performanceClient).acquireTokenByRefreshToken(t).cat
1603ch(()=>{})),r}catch(r){if(r instanceof JN&&r.errorCode===Df)return new bU(this.config,this.performanceClient).acquireTokenByRefreshToken(t);throw r}}async acquireCachedToken(t){var c;(c=this.performanceClient)==null||c.addQueueMeasurement(Ie.SilentFlowClientAcquireCachedToken,t.correlationId);let n=Qh.NOT_APPLICABLE;if(t.forceRefresh||!this.config.cacheOptions.claimsBasedCachingEnabled&&!Xl.isEmptyObj(t.claims))throw this.setCacheOutcome(Qh.FORCE_REFRESH_OR_CLAIMS,t.correlationId),Qe(Df);if(!t.account)throw Qe(xq);const r=t.account.tenantId||bzt(t.authority),i=this.cacheManager.getTokenKeys(),o=this.cacheManager.getAccessToken(t.account,t,i,r,this.performanceClient);if(o){if(oHt(o.cachedAt)||mU(o.expiresOn,this.config.systemOptions.tokenRenewalOffsetSeconds))throw this.setCacheOutcome(Qh.CACHED_ACCESS_TOKEN_EXPIRED,t.correlationId),Qe(Df);o.refreshOn&&mU(o.refreshOn,0)&&(n=Qh.PROACTIVELY_REFRESHED)}else throw this.setCacheOutcome(Qh.NO_CACHED_ACCESS_TOKEN,t.correlationId),Qe(Df);const s=t.authority||this.authority.getPreferredCache(),a={account:this.cacheManager.readAccountFromCache(t.account,t.correlationId),accessToken:o,idToken:this.cacheManager.getIdToken(t.account,t.correlationId,i,r,this.performanceClient),refreshToken:null,appMetadata:this.cacheManager.readAppMetadataFromCache(s)};return this.setCacheOutcome(n,t.correlationId),this.config.serverTelemetryManager&&this.config.serverTelemetryManager.incrementCacheHits(),[await at(this.generateResultFromCacheRecord.bind(this),Ie.SilentFlowClientGenerateResultFromCacheRecord,this.logger,this.performanceClient,t.correlationId)(a,t),n]}setCacheOutcome(t,n){var r,i;(r=this.serverTelemetryManager)==null||r.setCacheOutcome(t),(i=this.performanceClient)==null||i.addFields({cacheOutcome:t},n),t!==Qh.NOT_APPLICABLE&&this.logger.info(`Token refresh is required due to cache outcome: ${t}`)}async generateResultFromCacheRecord(t,n){var i;(i=this.performanceClient)==null||i.addQueueMeasurement(Ie.SilentFlowClientGenerateResultFromCacheRecord,n.correlationId);let r;if(t.idToken&&(r=t0(t.idToken.secret,this.config.cryptoInterface.base64Decode)),n.maxAge||n.maxAge===0){const o=r==null?void 0:r.auth_time;if(!o)throw Qe(kq);Yke(o,n.maxAge)}return Pv.generateAuthenticationResult(this.cryptoUtils,this.authority,t,!0,n,r)}}/*! @azure/msal-common v14.16.1 2025-08-05 */const Pzt={sendGetRequestAsync:()=>Promise.reject(Qe(fn)),sendPostRequestAsync:()=>Promise.reject(Qe(fn))};/*! @azure/msal-common v14.16.1 2025-08-05 */const xse=",",Cxe="|";function Ozt(e){const{skus:t,libraryName:n,libraryVersion:r,extensionName:i,extensionVersion:o}=e,s=new Map([[0,[n,r]],[2,[i,o]]]);let a=[];if(t!=null&&t.length){if(a=t.split(xse),a.length<4)return t}else a=Array.from({length:4},()=>Cxe);return s.forEach((c,l)=>{var u,d;c.length===2&&((u=c[0])!=null&&u.length)&&((d=c[1])!=null&&d.length)&&Nzt({skuArr:a,index:l,skuName:c[0],skuVersion:c[1]})}),a.join(xse)}function Nzt(e){const{skuArr:t,index:n,skuName:r,skuVersion:i}=e;n>=t.length||(t[n]=[r,i].join(Cxe))}class GC{constructor(t,n){this.cacheOutcome=Qh.NOT_APPLICABLE,this.cacheManager=n,this.apiId=t.apiId,this.correlationId=t.correlationId,this.wrapperSKU=t.wrapperSKU||De.EMPTY_STRING,this.wrapperVer=t.wrapperVer||De.EMPTY_STRING,this.telemetryCacheKey=Xo.CACHE_KEY+ws.CACHE_KEY_SEPARATOR+t.clientId}generateCurrentRequestHeaderValue(){const t=`${this.apiId}${Xo.VALUE_SEPARATOR}${this.cacheOutcome}`,n=[this.wrapperSKU,this.wrapperVer],r=this.getNativeBrokerErrorCode();r!=null&&r.length&&n.push(`broker_error=${r}`);const i=n.join(Xo.VALUE_SEPARATOR),o=this.getRegionDiscoveryFields(),s=[t,o].join(Xo.VALUE_SEPARATOR);return[Xo.SCHEMA_VERSION,s,i].join(Xo.CATEGORY_SEPARATOR)}generateLastRequestHeaderValue(){const t=this.getLastRequests(),n=GC.maxErrorsToSend(t),r=t.failedRequests.slice(0,2*n).join(Xo.VALUE_SEPARATOR),i=t.errors.slice(0,n).join(Xo.VALUE_SEPARATOR),o=t.errors.length,s=n<o?Xo.OVERFLOW_TRUE:Xo.OVERFLOW_FALSE,a=[o,s].join(Xo.VALUE_SEPARATOR);return[Xo.SCHEMA_VERSION,t.cacheHits,r,i,a].join(Xo.CATEGORY_SEPARATOR)}cacheFailedRequest(t){const n=this.getLastRequests();n.errors.length>=Xo.MAX_CACHED_ERRORS&&(n.failedRequests.shift(),n.failedRequests.shift(),n.errors.shift()),n.failedRequests.push(this.apiId,this.correlationId),t instanceof Error&&t&&t.toString()?t instanceof Wr?t.subError?n.errors.push(t.subError):t.errorCode?n.errors.push(t.errorCode):n.errors.push(t.toString()):n.errors.push(t.toString()):n.errors.push(Xo.UNKNOWN_ERROR),this.cacheManager.setServerTelemetry(this.telemetryCacheKey,n,this.correlationId)}incrementCacheHits(){const t=this.getLastRequests();return t.cacheHits+=1,this.cacheManager.setServerTelemetry(this.telemetryCacheKey,t,this.correlationId),t.cacheHits}getLastRequests(){const t={failedRequests:[],errors:[],cacheHits:0};return this.cacheManager.getServerTelemetry(this.telemetryCacheKey)||t}clearTelemetryCache(){const t=this.getLastRequests(),n=GC.maxErrorsToSend(t),r=t.errors.length;if(n===r)this.cacheManager.removeItem(this.telemetryCacheKey,this.correlationId);else{const i={failedRequests:t.failedRequests.slice(n*2),errors:t.errors.slice(n),c
1603acheHits:0};this.cacheManager.setServerTelemetry(this.telemetryCacheKey,i,this.correlationId)}}static maxErrorsToSend(t){let n,r=0,i=0;const o=t.errors.length;for(n=0;n<o;n++){const s=t.failedRequests[2*n]||De.EMPTY_STRING,a=t.failedRequests[2*n+1]||De.EMPTY_STRING,c=t.errors[n]||De.EMPTY_STRING;if(i+=s.toString().length+a.toString().length+c.length+3,i<Xo.MAX_LAST_HEADER_BYTES)r+=1;else break}return r}getRegionDiscoveryFields(){const t=[];return t.push(this.regionUsed||De.EMPTY_STRING),t.push(this.regionSource||De.EMPTY_STRING),t.push(this.regionOutcome||De.EMPTY_STRING),t.join(",")}updateRegionDiscoveryMetadata(t){this.regionUsed=t.region_used,this.regionSource=t.region_source,this.regionOutcome=t.region_outcome}setCacheOutcome(t){this.cacheOutcome=t}setNativeBrokerErrorCode(t){const n=this.getLastRequests();n.nativeBrokerErrorCode=t,this.cacheManager.setServerTelemetry(this.telemetryCacheKey,n,this.correlationId)}getNativeBrokerErrorCode(){return this.getLastRequests().nativeBrokerErrorCode}clearNativeBrokerErrorCode(){const t=this.getLastRequests();delete t.nativeBrokerErrorCode,this.cacheManager.setServerTelemetry(this.telemetryCacheKey,t,this.correlationId)}static makeExtraSkuString(t){return Ozt(t)}}/*! @azure/msal-common v14.16.1 2025-08-05 */const Exe="missing_kid_error",Txe="missing_alg_error";/*! @azure/msal-common v14.16.1 2025-08-05 */const Mzt={[Exe]:"The JOSE Header for the requested JWT, JWS or JWK object requires a keyId to be configured as the 'kid' header claim. No 'kid' value was provided.",[Txe]:"The JOSE Header for the requested JWT, JWS or JWK object requires an algorithm to be specified as the 'alg' header claim. No 'alg' value was provided."};class qq extends Wr{constructor(t,n){super(t,n),this.name="JoseHeaderError",Object.setPrototypeOf(this,qq.prototype)}}function Ase(e){return new qq(e,Mzt[e])}/*! @azure/msal-common v14.16.1 2025-08-05 */class Gq{constructor(t){this.typ=t.typ,this.alg=t.alg,this.kid=t.kid}static getShrHeaderString(t){if(!t.kid)throw Ase(Exe);if(!t.alg)throw Ase(Txe);const n=new Gq({typ:t.typ||H$t.Pop,kid:t.kid,alg:t.alg});return JSON.stringify(n)}}/*! @azure/msal-common v14.16.1 2025-08-05 */class Ise{startMeasurement(){}endMeasurement(){}flushMeasurement(){return null}}class Dzt{generateId(){return"callback-id"}startMeasurement(t,n){return{end:()=>null,discard:()=>{},add:()=>{},increment:()=>{},event:{eventId:this.generateId(),status:yzt.InProgress,authority:"",libraryName:"",libraryVersion:"",clientId:"",name:t,startTimeMs:Date.now(),correlationId:n||""},measurement:new Ise}}startPerformanceMeasurement(){return new Ise}calculateQueuedTime(){return 0}addQueueMeasurement(){}setPreQueueTime(){}endMeasurement(){return null}discardMeasurements(){}removePerformanceCallback(){return!0}addPerformanceCallback(){return""}emitEvents(){}addFields(){}incrementFields(){}cacheEventByCorrelationId(){}}/*! @azure/msal-browser v3.30.0 2025-08-05 */const Kq="pkce_not_created",wU="crypto_nonexistent",o4="empty_navigate_uri",kxe="hash_empty_error",Yq="no_state_in_hash",xxe="hash_does_not_contain_known_properties",Axe="unable_to_parse_state",Ixe="state_interaction_type_mismatch",Rxe="interaction_in_progress",Pxe="popup_window_error",Oxe="empty_window_error",Ov="user_cancelled",Lzt="monitor_popup_timeout",Nxe="monitor_window_timeout",Mxe="redirect_in_iframe",Dxe="block_iframe_reload",Lxe="block_nested_popups",Fzt="iframe_closed_prematurely",s4="silent_logout_unsupported",Fxe="no_account_error",jzt="silent_prompt_value_error",jxe="no_token_request_cache_error",Uxe="unable_to_parse_token_request_cache_error",Qq="no_cached_authority_error",Uzt="auth_request_not_set_error",Bzt="invalid_cache_type",a4="non_browser_environment",$0="database_not_open",x3="no_network_connectivity",Bxe="post_request_failed",$xe="get_request_failed",SU="failed_to_parse_response",Hxe="unable_to_load_token",Xq="crypto_key_not_found",zxe="auth_code_required",Vxe="auth_code_or_nativeAccountId_required",Wxe="spa_code_and_nativeAccountId_present",Jq="database_unavailable",qxe="unable_to_acquire_token_from_native_platform",Gxe="native_handshake_timeout",Kxe="native_extension_not_installed",p2="native_connection_not_established",Yxe="uninitialized_public_client_application",Qxe="native_prompt_not_supported",Xxe="invalid_base64_string",Jxe="invalid_pop_token_request",Zxe="failed_to_build_headers",eAe="failed_to_parse_headers";/*! @azure/msal-browser v3.30.0 2025-08-05 */const ef="For more visit: aka.ms/msaljs/browser-errors",$zt={[Kq]:"The PKCE code challenge and verifier could not be generated.",[wU]:"The crypto object or function is not available.",[o4]:"Navigation URI is empty. Please check stack trace for more info.",[kxe]:`Hash value cannot be processed because it is empty. Please verify that your redirectUri is not clearing the hash. ${ef}`,[Yq]:"Hash does not contain state. Please verify that the request originated from msal.",[xxe]:`Hash does not contain known properites. Please verify that your redirectUri is not changing the hash.  ${ef}`,[Axe]:"Unable to parse state. Please verify that the request originated from msal.",[Ixe]:"Hash contains state but the interaction type does not match the caller.",[Rxe]:`Interaction is currently in progress. Please ensure that this interaction has been completed before calling an interactive API.   ${ef}`,[Pxe]:"Error opening popup window. This can happen if you are using IE or if popups are blocked in the browser.",[Oxe]:"window.open returned null or undefined window object.",[Ov]:"User cancelled the flow.",[Lzt]:`Token acquisition in popup failed due to timeout.  ${ef}`,[Nxe]:`Token acquisition in iframe failed due to timeout.  ${ef}
1603`,[Mxe]:"Redirects are not supported for iframed or brokered applications. Please ensure you are using MSAL.js in a top frame of the window if using the redirect APIs, or use the popup APIs.",[Dxe]:`Request was blocked inside an iframe because MSAL detected an authentication response.  ${ef}`,[Lxe]:"Request was blocked inside a popup because MSAL detected it was running in a popup.",[Fzt]:"The iframe being monitored was closed prematurely.",[s4]:"Silent logout not supported. Please call logoutRedirect or logoutPopup instead.",[Fxe]:"No account object provided to acquireTokenSilent and no active account has been set. Please call setActiveAccount or provide an account on the request.",[jzt]:"The value given for the prompt value is not valid for silent requests - must be set to 'none' or 'no_session'.",[jxe]:"No token request found in cache.",[Uxe]:"The cached token request could not be parsed.",[Qq]:"No cached authority found.",[Uzt]:"Auth Request not set. Please ensure initiateAuthRequest was called from the InteractionHandler",[Bzt]:"Invalid cache type",[a4]:"Login and token requests are not supported in non-browser environments.",[$0]:"Database is not open!",[x3]:"No network connectivity. Check your internet connection.",[Bxe]:"Network request failed: If the browser threw a CORS error, check that the redirectUri is registered in the Azure App Portal as type 'SPA'",[$xe]:"Network request failed. Please check the network trace to determine root cause.",[SU]:"Failed to parse network response. Check network trace.",[Hxe]:"Error loading token to cache.",[Xq]:"Cryptographic Key or Keypair not found in browser storage.",[zxe]:"An authorization code must be provided (as the `code` property on the request) to this flow.",[Vxe]:"An authorization code or nativeAccountId must be provided to this flow.",[Wxe]:"Request cannot contain both spa code and native account id.",[Jq]:"IndexedDB, which is required for persistent cryptographic key storage, is unavailable. This may be caused by browser privacy features which block persistent storage in third-party contexts.",[qxe]:`Unable to acquire token from native platform.  ${ef}`,[Gxe]:"Timed out while attempting to establish connection to browser extension",[Kxe]:"Native extension is not installed. If you think this is a mistake call the initialize function.",[p2]:`Connection to native platform has not been established. Please install a compatible browser extension and run initialize().  ${ef}`,[Yxe]:`You must call and await the initialize function before attempting to call any other MSAL API.  ${ef}`,[Qxe]:"The provided prompt is not supported by the native platform. This request should be routed to the web based flow.",[Xxe]:"Invalid base64 encoded string.",[Jxe]:"Invalid PoP token request. The request should not have both a popKid value and signPopToken set to true.",[Zxe]:"Failed to build request headers object.",[eAe]:"Failed to parse response headers"};class m2 extends Wr{constructor(t,n){super(t,$zt[t],n),Object.setPrototypeOf(this,m2.prototype),this.name="BrowserAuthError"}}function gt(e,t){return new m2(e,t)}/*! @azure/msal-browser v3.30.0 2025-08-05 */const nc={INVALID_GRANT_ERROR:"invalid_grant",POPUP_WIDTH:483,POPUP_HEIGHT:600,POPUP_NAME_PREFIX:"msal",DEFAULT_POLL_INTERVAL_MS:30,MSAL_SKU:"msal.js.browser"},gy={CHANNEL_ID:"53ee284d-920a-4b59-9d30-a60315b26836",PREFERRED_EXTENSION_ID:"ppnbnpeolgkicgegkbkbjmhlideopiji",MATS_TELEMETRY:"MATS"},Ag={HandshakeRequest:"Handshake",HandshakeResponse:"HandshakeResponse",GetToken:"GetToken",Response:"Response"},ba={LocalStorage:"localStorage",SessionStorage:"sessionStorage",MemoryStorage:"memoryStorage"},Rse={GET:"GET",POST:"POST"},Zn={AUTHORITY:"authority",ACQUIRE_TOKEN_ACCOUNT:"acquireToken.account",SESSION_STATE:"session.state",REQUEST_STATE:"request.state",NONCE_IDTOKEN:"nonce.id_token",ORIGIN_URI:"request.origin",RENEW_STATUS:"token.renew.status",URL_HASH:"urlHash",REQUEST_PARAMS:"request.params",SCOPES:"scopes",INTERACTION_STATUS_KEY:"interaction.status",CCS_CREDENTIAL:"ccs.credential",CORRELATION_ID:"request.correlationId",NATIVE_REQUEST:"request.native",REDIRECT_CONTEXT:"request.redirect.context"},Tc={ACCOUNT_KEYS:"msal.account.keys",TOKEN_KEYS:"msal.token.keys",VERSION:"msal.version"},Rk={WRAPPER_SKU:"wrapper.sku",WRAPPER_VER:"wrapper.version"},Br={acquireTokenRedirect:861,acquireTokenPopup:862,ssoSilent:863,acquireTokenSilent_authCode:864,handleRedirectPromise:865,acquireTokenByCode:866,acquireTokenSilent_silentFlow:61,logout:961,logoutPopup:962};var Et;(function(e){e.Redirect="redirect",e.Popup="popup",e.Silent="silent",e.None="none"})(Et||(Et={}));const Pse={scopes:ow},tAe="jwk",_U="msal.db",Hzt=1,zzt=`${_U}.keys`,Ga={Default:0,AccessToken:1,AccessTokenAndRefreshToken:2,RefreshToken:3,RefreshTokenAndNetwork:4,Skip:5},Vzt=[Ga.Default,Ga.Skip,Ga.RefreshTokenAndNetwork],Wzt="msal.browser.log.level",qzt="msal.browser.log.pii";/*! @azure/msal-browser v3.30.0 2025-08-05 */function Pk(e){return encodeURIComponent(Zq(e).replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_"))}function c4(e){return nAe(e).replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_")}function Zq(e){return nAe(new TextEncoder().encode(e))}function nAe(e){const t=Array.from(e,n=>String.fromCodePoint(n)).join("");return btoa(t)}/*! @azure/msal-browser v3.30.0 2025-08-05 */const Gzt="RSASSA-PKCS1-v1_5",rAe="SHA-256",Kzt=2048,Yzt=new 
1603Uint8Array([1,0,1]),Ose="0123456789abcdef",Nse=new Uint32Array(1),Qzt="crypto_subtle_undefined",eG={name:Gzt,hash:rAe,modulusLength:Kzt,publicExponent:Yzt};function Xzt(e){if(!window)throw gt(a4);if(!window.crypto)throw gt(wU);if(!e&&!window.crypto.subtle)throw gt(wU,Qzt)}async function iAe(e,t,n){t==null||t.addQueueMeasurement(Ie.Sha256Digest,n);const i=new TextEncoder().encode(e);return window.crypto.subtle.digest(rAe,i)}function Jzt(e){return window.crypto.getRandomValues(e)}function DD(){return window.crypto.getRandomValues(Nse),Nse[0]}function Id(){const e=Date.now(),t=DD()*1024+(DD()&1023),n=new Uint8Array(16),r=Math.trunc(t/2**30),i=t&2**30-1,o=DD();n[0]=e/2**40,n[1]=e/2**32,n[2]=e/2**24,n[3]=e/2**16,n[4]=e/2**8,n[5]=e,n[6]=112|r>>>8,n[7]=r,n[8]=128|i>>>24,n[9]=i>>>16,n[10]=i>>>8,n[11]=i,n[12]=o>>>24,n[13]=o>>>16,n[14]=o>>>8,n[15]=o;let s="";for(let a=0;a<n.length;a++)s+=Ose.charAt(n[a]>>>4),s+=Ose.charAt(n[a]&15),(a===3||a===5||a===7||a===9)&&(s+="-");return s}async function Zzt(e,t){return window.crypto.subtle.generateKey(eG,e,t)}async function LD(e){return window.crypto.subtle.exportKey(tAe,e)}async function eVt(e,t,n){return window.crypto.subtle.importKey(tAe,e,eG,t,n)}async function tVt(e,t){return window.crypto.subtle.sign(eG,e,t)}async function oAe(e){const t=await iAe(e),n=new Uint8Array(t);return c4(n)}/*! @azure/msal-browser v3.30.0 2025-08-05 */const tG="storage_not_supported",nVt="stubbed_public_client_application_called",sAe="in_mem_redirect_unavailable";/*! @azure/msal-browser v3.30.0 2025-08-05 */const rVt={[tG]:"Given storage configuration option was not supported.",[nVt]:"Stub instance of Public Client Application was called. If using msal-react, please ensure context is not used without a provider. For more visit: aka.ms/msaljs/browser-errors",[sAe]:"Redirect cannot be supported. In-memory storage was selected and storeAuthStateInCookie=false, which would cause the library to be unable to handle the incoming hash. If you would like to use the redirect API, please use session/localStorage or set storeAuthStateInCookie=true."};class nG extends Wr{constructor(t,n){super(t,n),this.name="BrowserConfigurationAuthError",Object.setPrototypeOf(this,nG.prototype)}}function rG(e){return new nG(e,rVt[e])}/*! @azure/msal-browser v3.30.0 2025-08-05 */function iVt(e){e.location.hash="",typeof e.history.replaceState=="function"&&e.history.replaceState(null,"",`${e.location.origin}${e.location.pathname}${e.location.search}`)}function oVt(e){const t=e.split("#");t.shift(),window.location.hash=t.length>0?t.join("#"):""}function iG(){return window.parent!==window}function sVt(){return typeof window<"u"&&!!window.opener&&window.opener!==window&&typeof window.name=="string"&&window.name.indexOf(`${nc.POPUP_NAME_PREFIX}.`)===0}function Lf(){return typeof window<"u"&&window.location?window.location.href.split("?")[0].split("#")[0]:""}function aVt(){const t=new An(window.location.href).getUrlComponents();return`${t.Protocol}//${t.HostNameAndPort}/`}function cVt(){if(An.hashContainsKnownProperties(window.location.hash)&&iG())throw gt(Dxe)}function lVt(e){if(iG()&&!e)throw gt(Mxe)}function uVt(){if(sVt())throw gt(Lxe)}function aAe(){if(typeof window>"u")throw gt(a4)}function cAe(e){if(!e)throw gt(Yxe)}function oG(e){aAe(),cVt(),uVt(),cAe(e)}function Mse(e,t){if(oG(e),lVt(t.system.allowRedirectInIframe),t.cache.cacheLocation===ba.MemoryStorage&&!t.cache.storeAuthStateInCookie)throw rG(sAe)}function lAe(e){const t=document.createElement("link");t.rel="preconnect",t.href=new URL(e).origin,t.crossOrigin="anonymous",document.head.appendChild(t),window.setTimeout(()=>{try{document.head.removeChild(t)}catch{}},1e4)}function dVt(){return Id()}/*! @azure/msal-browser v3.30.0 2025-08-05 */class A3{navigateInternal(t,n){return A3.defaultNavigateWindow(t,n)}navigateExternal(t,n){return A3.defaultNavigateWindow(t,n)}static defaultNavigateWindow(t,n){return n.noHistory?window.location.replace(t):window.location.assign(t),new Promise(r=>{setTimeout(()=>{r(!0)},n.timeout)})}}/*! @azure/msal-browser v3.30.0 2025-08-05 */class fVt{async sendGetRequestAsync(t,n){let r,i={},o=0;const s=Dse(n);try{r=await fetch(t,{method:Rse.GET,headers:s})}
1603catch{throw gt(window.navigator.onLine?$xe:x3)}i=Lse(r.headers);try{return o=r.status,{headers:i,body:await r.json(),status:o}}catch{throw Ese(gt(SU),o,i)}}async sendPostRequestAsync(t,n){const r=n&&n.body||"",i=Dse(n);let o,s=0,a={};try{o=await fetch(t,{method:Rse.POST,headers:i,body:r})}catch{throw gt(window.navigator.onLine?Bxe:x3)}a=Lse(o.headers);try{return s=o.status,{headers:a,body:await o.json(),status:s}}catch{throw Ese(gt(SU),s,a)}}}function Dse(e){try{const t=new Headers;if(!(e&&e.headers))return t;const n=e.headers;return Object.entries(n).forEach(([r,i])=>{t.append(r,i)}),t}catch{throw gt(Zxe)}}function Lse(e){try{const t={};return e.forEach((n,r)=>{t[r]=n}),t}catch{throw gt(eAe)}}/*! @azure/msal-browser v3.30.0 2025-08-05 */const hVt=6e4,CU=1e4,pVt=3e4,mVt=2e3;function gVt({auth:e,cache:t,system:n,telemetry:r},i){const o={clientId:De.EMPTY_STRING,authority:`${De.DEFAULT_AUTHORITY}`,knownAuthorities:[],cloudDiscoveryMetadata:De.EMPTY_STRING,authorityMetadata:De.EMPTY_STRING,redirectUri:typeof window<"u"?Lf():"",postLogoutRedirectUri:De.EMPTY_STRING,navigateToLoginRequestUrl:!0,clientCapabilities:[],protocolMode:Gf.AAD,OIDCOptions:{serverResponseType:h2.FRAGMENT,defaultScopes:[De.OPENID_SCOPE,De.PROFILE_SCOPE,De.OFFLINE_ACCESS_SCOPE]},azureCloudOptions:{azureCloudInstance:Pq.None,tenant:De.EMPTY_STRING},skipAuthorityMetadataCache:!1,supportsNestedAppAuth:!1,instanceAware:!1},s={cacheLocation:ba.SessionStorage,temporaryCacheLocation:ba.SessionStorage,storeAuthStateInCookie:!1,secureCookies:!1,cacheMigrationEnabled:!!(t&&t.cacheLocation===ba.LocalStorage),claimsBasedCachingEnabled:!1},a={loggerCallback:()=>{},logLevel:ei.Info,piiLoggingEnabled:!1},l={...{...gxe,loggerOptions:a,networkClient:i?new fVt:Pzt,navigationClient:new A3,loadFrameTimeout:0,windowHashTimeout:(n==null?void 0:n.loadFrameTimeout)||hVt,iframeHashTimeout:(n==null?void 0:n.loadFrameTimeout)||CU,navigateFrameWait:0,redirectNavigationTimeout:pVt,asyncPopups:!1,allowRedirectInIframe:!1,allowNativeBroker:!1,nativeBrokerHandshakeTimeout:(n==null?void 0:n.nativeBrokerHandshakeTimeout)||mVt,pollIntervalMilliseconds:nc.DEFAULT_POLL_INTERVAL_MS},...n,loggerOptions:(n==null?void 0:n.loggerOptions)||a},u={application:{appName:De.EMPTY_STRING,appVersion:De.EMPTY_STRING},client:new Dzt};if((e==null?void 0:e.protocolMode)!==Gf.OIDC&&(e!=null&&e.OIDCOptions)&&new _m(l.loggerOptions).warning(JSON.stringify(gr(cxe))),e!=null&&e.protocolMode&&e.protocolMode!==Gf.AAD&&(l!=null&&l.allowNativeBroker))throw gr(lxe);return{auth:{...o,...e,OIDCOptions:{...o.OIDCOptions,...e==null?void 0:e.OIDCOptions}},cache:{...s,...t},system:l,telemetry:{...u,...r}}}/*! @azure/msal-browser v3.30.0 2025-08-05 */const vVt="@azure/msal-browser",Z1="3.30.0";/*! @azure/msal-browser v3.30.0 2025-08-05 */class sG{static loggerCallback(t,n){switch(t){case ei.Error:console.error(n);return;case ei.Info:console.info(n);return;case ei.Verbose:console.debug(n);return;case ei.Warning:console.warn(n);return;default:console.log(n);return}}constructor(t){var c;this.browserEnvironment=typeof window<"u",this.config=gVt(t,this.browserEnvironment);let n;try{n=window[ba.SessionStorage]}catch{}const r=n==null?void 0:n.getItem(Wzt),i=(c=n==null?void 0:n.getItem(qzt))==null?void 0:c.toLowerCase(),o=i==="true"?!0:i==="false"?!1:void 0,s={...this.config.system.loggerOptions},a=r&&Object.keys(ei).includes(r)?ei[r]:void 0;a&&(s.loggerCallback=sG.loggerCallback,s.logLevel=a),o!==void 0&&(s.piiLoggingEnabled=o),this.logger=new _m(s,vVt,Z1),this.available=!1}getConfig(){return this.config}getLogger(){return this.logger}isAvailable(){return this.available}isBrowserEnvironment(){return this.browserEnvironment}}/*! @azure/msal-browser v3.30.0 2025-08-05 */class Nv extends sG{getModuleName(){return Nv.MODULE_NAME}getId(){return Nv.ID}async initialize(){return this.available=typeof window<"u",this.available}}Nv.MODULE_NAME="";Nv.ID="StandardOperatingContext";/*! @azure/msal-browser v3.30.0 2025-08-05 */function hd(e){return new TextDecoder().decode(yVt(e))}function yVt(e){let t=e.replace(/-/g,"+").replace(/_/g,"/");switch(t.length%4){case 0:break;case 2:t+="==";break;case 3:t+="=";break;default:throw gt(Xxe)}const n=atob(t);return Uint8Array.from(n,r=>r.codePointAt(0)||0)}/*! @azure/msal-browser v3.30.0 2025-08-05 */class bVt{constructor(){this.dbName=_U,this.version=Hzt,this.tableName=zzt,this.dbOpen=!1}async open(){return new Promise((t,n)=>{const r=window.indexedDB.open(this.dbName,this.version);r.addEventListener("upgradeneeded",i=>{i.target.result.createObjectStore(this.tableName)}),r.addEventListener("success",i=>{const o=i;this.db=o.target.result,this.dbOpen=!0,t()}),r.addEventListener("error",()=>n(gt(Jq)))})}closeConnection(){const t=this.db;t&&this.dbOpen&&(t.close(),this.dbOpen=!1)}async validateDbIsOpen(){if(!this.dbOpen)return this.open()}async getItem(t){return await this.validateDbIsOpen(),new Promise((n,r)=>{if(!this.db)return r(gt($0));const s=this.db.transaction([this.tableName],"readonly").objectStore(this.tableName).get(t);s.addEventListener("success",a=>{const c=a;this.closeConnection(),n(c.target.result)}),s.addEventListener("error",a=>{this.closeConnection(),r(a)})})}async setItem(t,n){return await this.validateDbIsOpen(),new Promise((r,i)=>{if(!this.db)return i(gt($0));const a=this.db.transaction([this.tableName],"readwrite").objectStore(this.tableName).put(n,t);a.addEventListener("success",()=>{this.closeConnection(),r()}),a.addEventListener("error",c=>{this.closeConnection(),i(c)})})}async removeItem(t){return await this.validateDbIsOpen(),new Promise((n,r)=>{if(!this.db)return r(gt($0));const s=this.db.transaction([this.tableName],"readwrite").objectStore(this.tableName).delete(t);s.addEventListener("success",()=>{this.closeConnection(),n()}),s.addEventListener("error",a=>{this.closeConnection(),r(a)})})}async getKeys(){return await this.validateDbIsOpen(),new Promise((t,n)=>{if(!this.db)return n(gt($0));const o=this.db.transaction([this.tableName],"readonly").objectStore(this.tableName).getAllKeys();o.addEventListener("success",s=>{const a=s;this.closeConnection(),t(a.target.result)}),o.addEventListener("error",s=>{this.closeConnection(),n(s)})})}async containsKey(t){return await this.validateDbIsOpen(),new Promise((n,r)=>{if(!this.db)return r(gt($0));const s=this.db.transaction([this.tableName],"readonly").objectStore(this.tableName).count(t);s.addEventListener("success",a=>{const c=a;this.closeConnection(),n(c.target.result===1)}),s.addEventListener("error",a=>{this.closeConnection(),r(a)})})}async deleteDatabase(){return this.db&&this.dbOpen&&this.closeConnection(),new Promise((t,n)=>{const r=window.indexedDB.deleteDatabase(_U),i=setTimeout(()=>n(!1),200);r.addEventListener("success",()=>(clearTimeout(i),t(!0))),r.addEventListener("blocked",()=>(clearTimeout(i),t(!0))),r.addEventListener("error",()=>(clearTimeout(i),n(!1)))})}}/*! @azure/msal-browser v3.30.0 2025-08-05 */class EU{constructor(){this.cache=new Map}getItem(t){return this.cache.get(t)||null}setItem(t,n){this.cache.set(t,n)}removeItem(t){this.cache.delete(t)}getKeys(){const t=[];return this.cache.forEach((n,r)=>{t.push(r)}),t}containsKey(t){return this.cache.has(t)}clear(){this.cache.clear()}}/*! @azure/msal-browser v3.30.0 2025-08-05 */class wVt{constructor(t){this.inMemoryCache=new EU,this.indexedDBCache=new bVt,this.logger=t}handleDatabaseAccessError(t){if(t instanceof m2&&t.errorCode===Jq)this.logger.error("Could not access persistent storage. This may be caused by browser privacy features which block persistent storage in third-party contexts.");else throw t}async getItem(t){const n=this.inMemoryCache.getItem(t);if(!n)try{return this.logger.verbose("Queried item not found in in-memory cache, now querying persistent storage."),await this.indexedDBCache.getItem(t)}catch(r){this.handleDatabaseAccessError(r)}return n}async setItem(t,n){this.inMemoryCache.setItem(t,n);try{await this.indexedDBCache.setItem(t,n)}catch(r){this.handleDatabaseAccessError(r)}}async removeItem(t){this.inMemoryCache.removeItem(t);try{await this.indexedDBCache.removeItem(t)}catch(n){this.handleDatabaseAccessError(n)}}async getKeys(){const t=this.inMemoryCache.getKeys();if(t.length===0)try{return this.logger.verbose("In-memory cache is empty, now querying persistent storage."),await this.indexedDBCache.getKeys()}catch(n){this.handleDatabaseAccessError(n)}return t}async containsKey(t){const n=this.inMemoryCache.containsKey(t);if(!n)try{return this.logger.verbose("Key not found in in-memory cache, now querying persistent storage."),await this.indexedDBCache.containsKey(t)}catch(r){this.handleDatabaseAccessError(r)}return n}clearInMemory(){this.logger.verbose("Deleting in-memory keystore"),this.inMemoryCache.clear(),this.logger.verbose("In-memory keystore deleted")}
1603async clearPersistent(){try{this.logger.verbose("Deleting persistent keystore");const t=await this.indexedDBCache.deleteDatabase();return t&&this.logger.verbose("Persistent keystore deleted"),t}catch(t){return this.handleDatabaseAccessError(t),!1}}}/*! @azure/msal-browser v3.30.0 2025-08-05 */class eb{constructor(t,n,r){this.logger=t,Xzt(r??!1),this.cache=new wVt(this.logger),this.performanceClient=n}createNewGuid(){return Id()}base64Encode(t){return Zq(t)}base64Decode(t){return hd(t)}base64UrlEncode(t){return Pk(t)}encodeKid(t){return this.base64UrlEncode(JSON.stringify({kid:t}))}async getPublicKeyThumbprint(t){var u;const n=(u=this.performanceClient)==null?void 0:u.startMeasurement(Ie.CryptoOptsGetPublicKeyThumbprint,t.correlationId),r=await Zzt(eb.EXTRACTABLE,eb.POP_KEY_USAGES),i=await LD(r.publicKey),o={e:i.e,kty:i.kty,n:i.n},s=Fse(o),a=await this.hashString(s),c=await LD(r.privateKey),l=await eVt(c,!1,["sign"]);return await this.cache.setItem(a,{privateKey:l,publicKey:r.publicKey,requestMethod:t.resourceRequestMethod,requestUri:t.resourceRequestUri}),n&&n.end({success:!0}),a}async removeTokenBindingKey(t){return await this.cache.removeItem(t),!await this.cache.containsKey(t)}async clearKeystore(){this.cache.clearInMemory();try{return await this.cache.clearPersistent(),!0}catch(t){return t instanceof Error?this.logger.error(`Clearing keystore failed with error: ${t.message}`):this.logger.error("Clearing keystore failed with unknown error"),!1}}async signJwt(t,n,r,i){var S;const o=(S=this.performanceClient)==null?void 0:S.startMeasurement(Ie.CryptoOptsSignJwt,i),s=await this.cache.getItem(n);if(!s)throw gt(Xq);const a=await LD(s.publicKey),c=Fse(a),l=Pk(JSON.stringify({kid:n})),u=Gq.getShrHeaderString({...r==null?void 0:r.header,alg:a.alg,kid:l}),d=Pk(u);t.cnf={jwk:JSON.parse(c)};const f=Pk(JSON.stringify(t)),p=`${d}.${f}`,m=new TextEncoder().encode(p),y=await tVt(s.privateKey,m),v=c4(new Uint8Array(y)),w=`${p}.${v}`;return o&&o.end({success:!0}),w}async hashString(t){return oAe(t)}}eb.POP_KEY_USAGES=["sign","verify"];eb.EXTRACTABLE=!0;function Fse(e){return JSON.stringify(e,Object.keys(e).sort())}/*! @azure/msal-browser v3.30.0 2025-08-05 */class SVt{constructor(){if(!window.localStorage)throw rG(tG)}getItem(t){return window.localStorage.getItem(t)}setItem(t,n){window.localStorage.setItem(t,n)}removeItem(t){window.localStorage.removeItem(t)}getKeys(){return Object.keys(window.localStorage)}containsKey(t){return window.localStorage.hasOwnProperty(t)}}/*! @azure/msal-browser v3.30.0 2025-08-05 */class _Vt{constructor(){if(!window.sessionStorage)throw rG(tG)}getItem(t){return window.sessionStorage.getItem(t)}setItem(t,n){window.sessionStorage.setItem(t,n)}removeItem(t){window.sessionStorage.removeItem(t)}getKeys(){return Object.keys(window.sessionStorage)}containsKey(t){return window.sessionStorage.hasOwnProperty(t)}}/*! @azure/msal-browser v3.30.0 2025-08-05 */function uAe(e,t){if(!t)return null;try{return Jl.parseRequestState(e,t).libraryState.meta}catch{throw Qe(Q1)}}/*! @azure/msal-browser v3.30.0 2025-08-05 */const CVt=1440*60*1e3;class EVt{getItem(t){const n=`${encodeURIComponent(t)}`,r=document.cookie.split(";");for(let i=0;i<r.length;i++){const o=r[i],[s,...a]=decodeURIComponent(o).trim().split("="),c=a.join("=");if(s===n)return c}return""}setItem(t,n,r,i=!0){let o=`${encodeURIComponent(t)}=${encodeURIComponent(n)};path=/;SameSite=Lax;`;if(r){const s=TVt(r);o+=`expires=${s};`}i&&(o+="Secure;"),document.cookie=o}removeItem(t){this.setItem(t,"",-1)}getKeys(){const t=document.cookie.split(";"),n=[];return t.forEach(r=>{const i=decodeURIComponent(r).trim().split("=");n.push(i[0])}),n}containsKey(t){return this.getKeys().includes(t)}}function TVt(e){const t=new Date;return new Date(t.getTime()+e*CVt).toUTCString()}/*! @azure/msal-browser v3.30.0 2025-08-05 */class TU extends X1{constructor(t,n,r,i,o,s){super(t,r,i,o),this.cacheConfig=n,this.logger=i,this.internalStorage=new EU,this.browserStorage=this.setupBrowserStorage(this.cacheConfig.cacheLocation),this.temporaryCacheStorage=this.setupBrowserStorage(this.cacheConfig.temporaryCacheLocation),this.cookieStorage=new EVt,n.cacheMigrationEnabled&&(this.migrateCacheEntries(),this.createKeyMaps()),this.performanceClient=s}setupBrowserStorage(t){try{switch(t){case ba.LocalStorage:return new SVt;case ba.SessionStorage:return new _Vt;case ba.MemoryStorage:default:break}}catch(n){this.logger.error(n)}return this.cacheConfig.cacheLocation=ba.MemoryStorage,new EU}migrateCacheEntries(){const t=this.browserStorage.getItem(Tc.VERSION);t&&this.logger.info(`MSAL.js was last initialized with version ${t}`),t!==Z1&&this.browserStorage.setItem(Tc.VERSION,Z1);const n=`${De.CACHE_PREFIX}.${Ro.ID_TOKEN}`,r=`${De.CACHE_PREFIX}.${Ro.CLIENT_INFO}`,i=`${De.CACHE_PREFIX}.${Ro.ERROR}`,o=`${De.CACHE_PREFIX}.${Ro.ERROR_DESC}`,s=this.browserStorage.getItem(n),a=this.browserStorage.getItem(r),c=this.browserStorage.getItem(i),l=this.browserStorage.getItem(o),u=[s,a,c,l];
1603[Ro.ID_TOKEN,Ro.CLIENT_INFO,Ro.ERROR,Ro.ERROR_DESC].forEach((f,p)=>{const g=u[p];g&&this.setTemporaryCache(f,g,!0)})}createKeyMaps(){this.logger.trace("BrowserCacheManager - createKeyMaps called.");const t=this.cryptoImpl.createNewGuid(),n=this.getItem(Tc.ACCOUNT_KEYS),r=this.getItem(`${Tc.TOKEN_KEYS}.${this.clientId}`);if(n&&r){this.logger.verbose("BrowserCacheManager:createKeyMaps - account and token key maps already exist, skipping migration.");return}this.browserStorage.getKeys().forEach(o=>{if(this.isCredentialKey(o)){const s=this.getItem(o);if(s){const a=this.validateAndParseJson(s);if(a&&a.hasOwnProperty("credentialType"))switch(a.credentialType){case zt.ID_TOKEN:if(pse(a)){this.logger.trace("BrowserCacheManager:createKeyMaps - idToken found, saving key to token key map"),this.logger.tracePii(`BrowserCacheManager:createKeyMaps - idToken with key: ${o} found, saving key to token key map`);const c=a,l=this.updateCredentialCacheKey(o,c,t);this.addTokenKey(l,zt.ID_TOKEN,t);return}else this.logger.trace("BrowserCacheManager:createKeyMaps - key found matching idToken schema with value containing idToken credentialType field but value failed IdTokenEntity validation, skipping."),this.logger.tracePii(`BrowserCacheManager:createKeyMaps - failed idToken validation on key: ${o}`);break;case zt.ACCESS_TOKEN:case zt.ACCESS_TOKEN_WITH_AUTH_SCHEME:if(hse(a)){this.logger.trace("BrowserCacheManager:createKeyMaps - accessToken found, saving key to token key map"),this.logger.tracePii(`BrowserCacheManager:createKeyMaps - accessToken with key: ${o} found, saving key to token key map`);const c=a,l=this.updateCredentialCacheKey(o,c,t);this.addTokenKey(l,zt.ACCESS_TOKEN,t);return}else this.logger.trace("BrowserCacheManager:createKeyMaps - key found matching accessToken schema with value containing accessToken credentialType field but value failed AccessTokenEntity validation, skipping."),this.logger.tracePii(`BrowserCacheManager:createKeyMaps - failed accessToken validation on key: ${o}`);break;case zt.REFRESH_TOKEN:if(mse(a)){this.logger.trace("BrowserCacheManager:createKeyMaps - refreshToken found, saving key to token key map"),this.logger.tracePii(`BrowserCacheManager:createKeyMaps - refreshToken with key: ${o} found, saving key to token key map`);const c=a,l=this.updateCredentialCacheKey(o,c,t);this.addTokenKey(l,zt.REFRESH_TOKEN,t);return}else this.logger.trace("BrowserCacheManager:createKeyMaps - key found matching refreshToken schema with value containing refreshToken credentialType field but value failed RefreshTokenEntity validation, skipping."),this.logger.tracePii(`BrowserCacheManager:createKeyMaps - failed refreshToken validation on key: ${o}`);break}}}if(this.isAccountKey(o)){const s=this.getItem(o);if(s){const a=this.validateAndParseJson(s);a&&_o.isAccountEntity(a)&&(this.logger.trace("BrowserCacheManager:createKeyMaps - account found, saving key to account key map"),this.logger.tracePii(`BrowserCacheManager:createKeyMaps - account with key: ${o} found, saving key to account key map`),this.addAccountKeyToMap(o,t))}}})}validateAndParseJson(t){try{const n=JSON.parse(t);return n&&typeof n=="object"?n:null}catch{return null}}getItem(t){return this.browserStorage.getItem(t)}setItem(t,n,r){let i=[];for(let s=0;s<=20;s++)try{this.browserStorage.setItem(t,n),s>0&&this.removeAccessTokenKeys(i.slice(0,s),r);break}catch(a){const c=mxe(a);if(c.errorCode===Bq&&s<20){if(i.length||(t===`${Tc.TOKEN_KEYS}.${this.clientId}`?i=JSON.parse(n).accessToken:i=this.getTokenKeys().accessToken),i.length<=s)throw c;this.removeAccessToken(i[s],r,!1)}else throw c}}getAccount(t,n,r){this.logger.trace("BrowserCacheManager.getAccount called");const i=this.getCachedAccountEntity(t,n);return this.updateOutdatedCachedAccount(t,i,n,r)}getCachedAccountEntity(t,n){const r=this.getItem(t);if(!r)return this.removeAccountKeyFromMap(t,n),null;const i=this.validateAndParseJson(r);return!i||!_o.isAccountEntity(i)?null:X1.toObject(new _o,i)}setAccount(t,n){this.logger.trace("BrowserCacheManager.setAccount called");const r=t.generateAccountKey();t.lastUpdatedAt=Date.now().toString(),this.setItem(r,JSON.stringify(t),n),this.addAccountKeyToMap(r,n)}getAccountKeys(){this.logger.trace("BrowserCacheManager.getAccountKeys called");const t=this.getItem(Tc.ACCOUNT_KEYS);return t?JSON.parse(t):(this.logger.verbose("BrowserCacheManager.getAccountKeys - No account keys found"),[])}
1603addAccountKeyToMap(t,n){this.logger.trace("BrowserCacheManager.addAccountKeyToMap called"),this.logger.tracePii(`BrowserCacheManager.addAccountKeyToMap called with key: ${t}`);const r=this.getAccountKeys();r.indexOf(t)===-1?(r.push(t),this.setItem(Tc.ACCOUNT_KEYS,JSON.stringify(r),n),this.logger.verbose("BrowserCacheManager.addAccountKeyToMap account key added")):this.logger.verbose("BrowserCacheManager.addAccountKeyToMap account key already exists in map")}removeAccountKeyFromMap(t,n){this.logger.trace("BrowserCacheManager.removeAccountKeyFromMap called"),this.logger.tracePii(`BrowserCacheManager.removeAccountKeyFromMap called with key: ${t}`);const r=this.getAccountKeys(),i=r.indexOf(t);if(i>-1){if(r.splice(i,1),r.length===0){this.removeItem(Tc.ACCOUNT_KEYS);return}else this.setItem(Tc.ACCOUNT_KEYS,JSON.stringify(r),n);this.logger.trace("BrowserCacheManager.removeAccountKeyFromMap account key removed")}else this.logger.trace("BrowserCacheManager.removeAccountKeyFromMap key not found in existing map")}async removeAccount(t,n){super.removeAccount(t,n),this.removeAccountKeyFromMap(t,n)}removeOutdatedAccount(t,n){this.removeItem(t),this.removeAccountKeyFromMap(t,n)}removeIdToken(t,n){super.removeIdToken(t,n),this.removeTokenKey(t,zt.ID_TOKEN,n)}removeAccessToken(t,n,r=!0){var i;super.removeAccessToken(t,n),(i=this.performanceClient)==null||i.incrementFields({accessTokensRemoved:1},n),r&&this.removeTokenKey(t,zt.ACCESS_TOKEN,n)}removeAccessTokenKeys(t,n){this.logger.trace("removeAccessTokenKey called");const r=this.getTokenKeys();let i=0;if(t.forEach(o=>{const s=r.accessToken.indexOf(o);s>-1&&(r.accessToken.splice(s,1),i++)}),i>0){this.logger.info(`removed ${i} accessToken keys from tokenKeys map`),this.setTokenKeys(r,n);return}}removeRefreshToken(t,n){super.removeRefreshToken(t,n),this.removeTokenKey(t,zt.REFRESH_TOKEN,n)}getTokenKeys(){this.logger.trace("BrowserCacheManager.getTokenKeys called");const t=this.getItem(`${Tc.TOKEN_KEYS}.${this.clientId}`);if(t){const n=this.validateAndParseJson(t);if(n&&n.hasOwnProperty("idToken")&&n.hasOwnProperty("accessToken")&&n.hasOwnProperty("refreshToken"))return n;this.logger.error("BrowserCacheManager.getTokenKeys - Token keys found but in an unknown format. Returning empty key map.")}else this.logger.verbose("BrowserCacheManager.getTokenKeys - No token keys found");return{idToken:[],accessToken:[],refreshToken:[]}}setTokenKeys(t,n){if(t.idToken.length===0&&t.accessToken.length===0&&t.refreshToken.length===0){this.removeItem(`${Tc.TOKEN_KEYS}.${this.clientId}`);return}else this.setItem(`${Tc.TOKEN_KEYS}.${this.clientId}`,JSON.stringify(t),n)}addTokenKey(t,n,r){this.logger.trace("BrowserCacheManager addTokenKey called");const i=this.getTokenKeys();switch(n){case zt.ID_TOKEN:i.idToken.indexOf(t)===-1&&(this.logger.info("BrowserCacheManager: addTokenKey - idToken added to map"),i.idToken.push(t));break;case zt.ACCESS_TOKEN:const o=i.accessToken.indexOf(t);o!==-1&&i.accessToken.splice(o,1),this.logger.trace(`access token ${o===-1?"added to":"updated in"} map`),i.accessToken.push(t);break;case zt.REFRESH_TOKEN:i.refreshToken.indexOf(t)===-1&&(this.logger.info("BrowserCacheManager: addTokenKey - refreshToken added to map"),i.refreshToken.push(t));break;default:throw this.logger.error(`BrowserCacheManager:addTokenKey - CredentialType provided invalid. CredentialType: ${n}`),Qe(pU)}this.setTokenKeys(i,r)}removeTokenKey(t,n,r,i=this.getTokenKeys()){switch(this.logger.trace("BrowserCacheManager removeTokenKey called"),n){case zt.ID_TOKEN:this.logger.infoPii(`BrowserCacheManager: removeTokenKey - attempting to remove idToken with key: ${t} from map`);const o=i.idToken.indexOf(t);o>-1?(this.logger.info("BrowserCacheManager: removeTokenKey - idToken removed from map"),i.idToken.splice(o,1)):this.logger.info("BrowserCacheManager: removeTokenKey - idToken does not exist in map. Either it was previously removed or it was never added.");break;case zt.ACCESS_TOKEN:this.logger.infoPii(`BrowserCacheManager: removeTokenKey - attempting to remove accessToken with key: ${t} from map`);const s=i.accessToken.indexOf(t);s>-1?(this.logger.info("BrowserCacheManager: removeTokenKey - accessToken removed from map"),i.accessToken.splice(s,1)):this.logger.info("BrowserCacheManager: removeTokenKey - accessToken does not exist in map. Either it was previously removed or it was never added.");break;case zt.REFRESH_TOKEN:this.logger.infoPii(`BrowserCacheManager: removeTokenKey - attempting to remove refreshToken with key: ${t} from map`);const a=i.refreshToken.indexOf(t);a>-1?(this.logger.info("BrowserCacheManager: removeTokenKey - refreshToken removed from map"),i.refreshToken.splice(a,1)):this.logger.info("BrowserCacheManager: removeTokenKey - refreshToken does not exist in map. Either it was previously removed or it was never added.");break;default:throw this.logger.error(`BrowserCacheManager:removeTokenKey - CredentialType provided invali
1603d. CredentialType: ${n}`),Qe(pU)}this.setTokenKeys(i,r)}getIdTokenCredential(t,n){const r=this.getItem(t);if(!r)return this.logger.trace("BrowserCacheManager.getIdTokenCredential: called, no cache hit"),this.removeIdToken(t,n),null;const i=this.validateAndParseJson(r);return!i||!pse(i)?(this.logger.trace("BrowserCacheManager.getIdTokenCredential: called, no cache hit"),null):(this.logger.trace("BrowserCacheManager.getIdTokenCredential: cache hit"),i)}setIdTokenCredential(t,n){this.logger.trace("BrowserCacheManager.setIdTokenCredential called");const r=py(t);t.lastUpdatedAt=Date.now().toString(),this.setItem(r,JSON.stringify(t),n),this.addTokenKey(r,zt.ID_TOKEN,n)}getAccessTokenCredential(t,n){const r=this.getItem(t);if(!r)return this.logger.trace("BrowserCacheManager.getAccessTokenCredential: called, no cache hit"),this.removeTokenKey(t,zt.ACCESS_TOKEN,n),null;const i=this.validateAndParseJson(r);return!i||!hse(i)?(this.logger.trace("BrowserCacheManager.getAccessTokenCredential: called, no cache hit"),null):(this.logger.trace("BrowserCacheManager.getAccessTokenCredential: cache hit"),i)}setAccessTokenCredential(t,n){this.logger.trace("BrowserCacheManager.setAccessTokenCredential called");const r=py(t);t.lastUpdatedAt=Date.now().toString(),this.setItem(r,JSON.stringify(t),n),this.addTokenKey(r,zt.ACCESS_TOKEN,n)}getRefreshTokenCredential(t,n){const r=this.getItem(t);if(!r)return this.logger.trace("BrowserCacheManager.getRefreshTokenCredential: called, no cache hit"),this.removeTokenKey(t,zt.REFRESH_TOKEN,n),null;const i=this.validateAndParseJson(r);return!i||!mse(i)?(this.logger.trace("BrowserCacheManager.getRefreshTokenCredential: called, no cache hit"),null):(this.logger.trace("BrowserCacheManager.getRefreshTokenCredential: cache hit"),i)}setRefreshTokenCredential(t,n){this.logger.trace("BrowserCacheManager.setRefreshTokenCredential called");const r=py(t);t.lastUpdatedAt=Date.now().toString(),this.setItem(r,JSON.stringify(t),n),this.addTokenKey(r,zt.REFRESH_TOKEN,n)}getAppMetadata(t){const n=this.getItem(t);if(!n)return this.logger.trace("BrowserCacheManager.getAppMetadata: called, no cache hit"),null;const r=this.validateAndParseJson(n);return!r||!pHt(t,r)?(this.logger.trace("BrowserCacheManager.getAppMetadata: called, no cache hit"),null):(this.logger.trace("BrowserCacheManager.getAppMetadata: cache hit"),r)}setAppMetadata(t,n){this.logger.trace("BrowserCacheManager.setAppMetadata called");const r=hHt(t);this.setItem(r,JSON.stringify(t),n)}getServerTelemetry(t){const n=this.getItem(t);if(!n)return this.logger.trace("BrowserCacheManager.getServerTelemetry: called, no cache hit"),null;const r=this.validateAndParseJson(n);return!r||!dHt(t,r)?(this.logger.trace("BrowserCacheManager.getServerTelemetry: called, no cache hit"),null):(this.logger.trace("BrowserCacheManager.getServerTelemetry: cache hit"),r)}setServerTelemetry(t,n,r){this.logger.trace("BrowserCacheManager.setServerTelemetry called"),this.setItem(t,JSON.stringify(n),r)}getAuthorityMetadata(t){const n=this.internalStorage.getItem(t);if(!n)return this.logger.trace("BrowserCacheManager.getAuthorityMetadata: called, no cache hit"),null;const r=this.validateAndParseJson(n);return r&&mHt(t,r)?(this.logger.trace("BrowserCacheManager.getAuthorityMetadata: cache hit"),r):null}getAuthorityMetadataKeys(){return this.internalStorage.getKeys().filter(n=>this.isAuthorityMetadata(n))}setWrapperMetadata(t,n){this.internalStorage.setItem(Rk.WRAPPER_SKU,t),this.internalStorage.setItem(Rk.WRAPPER_VER,n)}getWrapperMetadata(){const t=this.internalStorage.getItem(Rk.WRAPPER_SKU)||De.EMPTY_STRING,n=this.internalStorage.getItem(Rk.WRAPPER_VER)||De.EMPTY_STRING;return[t,n]}setAuthorityMetadata(t,n){this.logger.trace("BrowserCacheManager.setAuthorityMetadata called"),this.internalStorage.setItem(t,JSON.stringify(n))}getActiveAccount(t){const n=this.generateCacheKey(Ro.ACTIVE_ACCOUNT_FILTERS),r=this.getItem(n);if(!r){this.logger.trace("BrowserCacheManager.getActiveAccount: No active account filters cache schema found, looking for legacy schema");const o=this.generateCacheKey(Ro.ACTIVE_ACCOUNT),s=this.getItem(o);if(!s)return this.logger.trace("BrowserCacheManager.getActiveAccount: No active account found"),null;const a=this.getAccountInfoFilteredBy({localAccountId:s},t);return a?(this.logger.trace("BrowserCacheManager.getActiveAccount: Legacy active account cache schema found"),this.logger.trace("BrowserCacheManager.getActiveAccount: Adding active account filters cache schema"),this.setActiveAccount(a,t),a):null}const i=this.validateAndParseJson(r);return i?(this.logger.trace("BrowserCacheManager.getActiveAccount: Active account filters schema found"),this.getAccountInfoFilteredBy({homeAccountId:i.homeAccountId,localAccountId:i.localAccountId,tenantId:i.tenantId},t)):(this.logger.trace("BrowserCacheManager.getActiveAccount: No active account found"),null)}setActiveAccount(t,n){const r=this.generateCacheKey(Ro.ACTIVE_ACCOUNT_FILTERS),i=this.generateCacheKey(Ro.ACTIVE_ACCOUNT);if(t){this.logger.verbose("setActiveAccount: Active account set");const o={homeAccountId:t.homeAccountId,localAccountId:t.localAccountId,tenantId:t.tenantId,lastUpdatedAt:Date.now().toString()};this.setItem(r,JSON.stringify(o),n),this.setItem(i,t.localAccountId,n)}else this.logger.verbose("setActiveAccount: No account passed, active account not set"),this.browserStorage.removeItem(r),this.browserStorage.removeItem(i)}getThrottlingCache(t){const n=this.getItem(t);if(!n)return this.logger.trace("BrowserCacheManager.getThrottlingCache: called, no cache hit"),null;const r=this.validateAndParseJson(n);return!r||!fHt(t,r)?(this.logger.trace("BrowserCacheManager.getThrottlingCache: called, no cache hit"),null):(this.logger.trace("BrowserCacheManager.getThrottlingCache: cache hit"),r)}setThrottlingCache(t,n,r){this.logger.trace("BrowserCacheManager.setThrottlingCache called"),this.setItem(t,JSON.stringify(n),r)}getTemporaryCache(t,n){const r=n?this.generateCacheKey(t):t;if(this.cacheConfig.storeAuthStateInCookie){const o=this.cookieStorage.getItem(r);if(o)return this.logger.trace("BrowserCacheManager.getTemporaryCache: storeAuthStateInCookies set to true, retrieving from cookies"),o}const i=this.temporaryCacheStorage.getItem(r);if(!i){if(this.cacheConfig.cacheLocation===ba.LocalStorage){const o=this.browserStorage.getItem(r);if(o)return this.logger.trace("BrowserCacheManager.getTemporaryCache: Temporary cache item found in local storage"),o}return this.logger.trace("BrowserCacheManager.getTemporaryCache: No cache item found in local storage"),null}return this.logger.trace("BrowserCacheManager.getTemporaryCache: Temporary cache item returned"),i}setTemporaryCache(t,n,r){const i=r?this.generateCacheKey(t):t;this.temporaryCacheStorage.setItem(i,n),this.cacheConfig.storeAuthStateInCookie&&(this.logger.trace("BrowserCacheManager.setTemporaryCache: storeAuthStateInCookie set to true, setting item cookie"),this.cookieStorage.setItem(i,n,void 0,this.cacheConfig.secureCookies))}removeItem(t){this.browserStorage.removeItem(t)}removeTemporaryItem(t){this.temporaryCacheStorage.removeItem(t),this.cacheConfig.storeAuthStateInCookie&&(this.logger.trace("BrowserCacheManager.removeItem: storeAuthStateInCookie is true, clearing item cookie"),this.cookieStorage.removeItem(t))}getKeys(){return this.browserStorage.getKeys()}async clear(t){await this.removeAllAccounts(t),this.removeAppMetadata(t),this.temporaryCacheStorage.getKeys().forEac
1603h(n=>{(n.indexOf(De.CACHE_PREFIX)!==-1||n.indexOf(this.clientId)!==-1)&&this.removeTemporaryItem(n)}),this.browserStorage.getKeys().forEach(n=>{(n.indexOf(De.CACHE_PREFIX)!==-1||n.indexOf(this.clientId)!==-1)&&this.browserStorage.removeItem(n)}),this.internalStorage.clear()}async clearTokensAndKeysWithClaims(t,n){t.addQueueMeasurement(Ie.ClearTokensAndKeysWithClaims,n);const r=this.getTokenKeys();let i=0;r.accessToken.forEach(o=>{const s=this.getAccessTokenCredential(o,n);s!=null&&s.requestedClaimsHash&&o.includes(s.requestedClaimsHash.toLowerCase())&&(this.removeAccessToken(o,n),i++)}),i>0&&this.logger.warning(`${i} access tokens with claims in the cache keys have been removed from the cache.`)}generateCacheKey(t){return this.validateAndParseJson(t)?JSON.stringify(t):Xl.startsWith(t,De.CACHE_PREFIX)||Xl.startsWith(t,Ro.ADAL_ID_TOKEN)?t:`${De.CACHE_PREFIX}.${this.clientId}.${t}`}generateAuthorityKey(t){const{libraryState:{id:n}}=Jl.parseRequestState(this.cryptoImpl,t);return this.generateCacheKey(`${Zn.AUTHORITY}.${n}`)}generateNonceKey(t){const{libraryState:{id:n}}=Jl.parseRequestState(this.cryptoImpl,t);return this.generateCacheKey(`${Zn.NONCE_IDTOKEN}.${n}`)}generateStateKey(t){const{libraryState:{id:n}}=Jl.parseRequestState(this.cryptoImpl,t);return this.generateCacheKey(`${Zn.REQUEST_STATE}.${n}`)}getCachedAuthority(t){const n=this.generateStateKey(t),r=this.getTemporaryCache(n);if(!r)return null;const i=this.generateAuthorityKey(r);return this.getTemporaryCache(i)}updateCacheEntries(t,n,r,i,o){this.logger.trace("BrowserCacheManager.updateCacheEntries called");const s=this.generateStateKey(t);this.setTemporaryCache(s,t,!1);const a=this.generateNonceKey(t);this.setTemporaryCache(a,n,!1);const c=this.generateAuthorityKey(t);if(this.setTemporaryCache(c,r,!1),o){const l={credential:o.homeAccountId,type:sc.HOME_ACCOUNT_ID};this.setTemporaryCache(Zn.CCS_CREDENTIAL,JSON.stringify(l),!0)}else if(i){const l={credential:i,type:sc.UPN};this.setTemporaryCache(Zn.CCS_CREDENTIAL,JSON.stringify(l),!0)}}resetRequestCache(t){this.logger.trace("BrowserCacheManager.resetRequestCache called"),t&&(this.temporaryCacheStorage.getKeys().forEach(n=>{n.indexOf(t)!==-1&&this.removeTemporaryItem(n)}),this.removeTemporaryItem(this.generateStateKey(t)),this.removeTemporaryItem(this.generateNonceKey(t)),this.removeTemporaryItem(this.generateAuthorityKey(t))),this.removeTemporaryItem(this.generateCacheKey(Zn.REQUEST_PARAMS)),this.removeTemporaryItem(this.generateCacheKey(Zn.ORIGIN_URI)),this.removeTemporaryItem(this.generateCacheKey(Zn.URL_HASH)),this.removeTemporaryItem(this.generateCacheKey(Zn.CORRELATION_ID)),this.removeTemporaryItem(this.generateCacheKey(Zn.CCS_CREDENTIAL)),this.removeTemporaryItem(this.generateCacheKey(Zn.NATIVE_REQUEST)),this.setInteractionInProgress(!1)}cleanRequestByState(t){if(this.logger.trace("BrowserCacheManager.cleanRequestByState called"),t){const n=this.generateStateKey(t),r=this.temporaryCacheStorage.getItem(n);this.logger.infoPii(`BrowserCacheManager.cleanRequestByState: Removing temporary cache items for state: ${r}`),this.resetRequestCache(r||De.EMPTY_STRING)}}cleanRequestByInteractionType(t){this.logger.trace("BrowserCacheManager.cleanRequestByInteractionType called"),this.temporaryCacheStorage.getKeys().forEach(n=>{if(n.indexOf(Zn.REQUEST_STATE)===-1)return;const r=this.temporaryCacheStorage.getItem(n);if(!r)return;const i=uAe(this.cryptoImpl,r);i&&i.interactionType===t&&(this.logger.infoPii(`BrowserCacheManager.cleanRequestByInteractionType: Removing temporary cache items for state: ${r}`),this.resetRequestCache(r))}),this.setInteractionInProgress(!1)}cacheCodeRequest(t){this.logger.trace("BrowserCacheManager.cacheCodeRequest called");const n=Zq(JSON.stringify(t));this.setTemporaryCache(Zn.REQUEST_PARAMS,n,!0)}getCachedRequest(t){this.logger.trace("BrowserCacheManager.getCachedRequest called");const n=this.getTemporaryCache(Zn.REQUEST_PARAMS,!0);if(!n)throw gt(jxe);let r;try{r=JSON.parse(hd(n))}catch(i){throw this.logger.errorPii(`Attempted to parse: ${n}`),this.logger.error(`Parsing cached token request threw with error: ${i}`),gt(Uxe)}if(this.removeTemporaryItem(this.generateCacheKey(Zn.REQUEST_PARAMS)),!r.authority){const i=this.generateAuthorityKey(t),o=this.getTemporaryCache(i);if(!o)throw gt(Qq);r.authority=o}return r}getCachedNativeRequest(){this.logger.trace("BrowserCacheManager.getCachedNativeRequest called");const t=this.getTemporaryCache(Zn.NATIVE_REQUEST,!0);if(!t)return this.logger.trace("BrowserCacheManager.getCachedNativeRequest: No cached native request found"),null;const n=this.validateAndParseJson(t);return n||(this.logger.error("BrowserCacheManager.getCachedNativeRequest: Unable to parse native request"),null)}isInteractionInProgress(t){const n=this.getInteractionInProgress();return t?n===this.clientId:!!n}getInteractionInProgress(){const t=`${De.CACHE_PREFIX}.${Zn.INTERACTION_STATUS_KEY}`;return this.getTemporaryCache(t,!1)}setInteractionInProgress(t){const n=`${De.CACHE_PREFIX}.${Zn.INTERACTION_STATUS_KEY}`;if(t){if(this.getInteractionInProgress())throw gt(Rxe);this.setTemporaryCache(n,this.clientId,!1)}else!t&&this.getInteractionInProgress()===this.clientId&&this.removeTemporaryItem(n)}getLegacyLoginHint(){const t=this.getTemporaryCache(Ro.ADAL_ID_TOKEN);t&&(this.browserStorage.removeItem(Ro.ADAL_ID_TOKEN),this.logger.verbose("Cached ADAL id token retrieved."));const n=this.getTemporaryCache(Ro.ID_TOKEN,!0);n&&(this.browserStorage.removeItem(this.generateCacheKey(Ro.ID_TOKEN)),this.logger.verbose("Cached MSAL.js v1 id token retrieved"));const r=n||t;if(r){const i=t0(r,hd);if(i.preferred_username)return this.logger.verbose("No SSO params used and ADAL
1603/MSAL v1 token retrieved, setting ADAL/MSAL v1 preferred_username as loginHint"),i.preferred_username;if(i.upn)return this.logger.verbose("No SSO params used and ADAL/MSAL v1 token retrieved, setting ADAL/MSAL v1 upn as loginHint"),i.upn;this.logger.verbose("No SSO params used and ADAL/MSAL v1 token retrieved, however, no account hint claim found. Enable preferred_username or upn id token claim to get SSO.")}return null}updateCredentialCacheKey(t,n,r){const i=py(n);if(t!==i){const o=this.getItem(t);if(o)return this.browserStorage.removeItem(t),this.setItem(i,o,r),this.logger.verbose(`Updated an outdated ${n.credentialType} cache key`),i;this.logger.error(`Attempted to update an outdated ${n.credentialType} cache key but no item matching the outdated key was found in storage`)}return t}async hydrateCache(t,n){var a,c,l;const r=ZN((a=t.account)==null?void 0:a.homeAccountId,(c=t.account)==null?void 0:c.environment,t.idToken,this.clientId,t.tenantId);let i;n.claims&&(i=await this.cryptoImpl.hashString(n.claims));const o=e4((l=t.account)==null?void 0:l.homeAccountId,t.account.environment,t.accessToken,this.clientId,t.tenantId,t.scopes.join(" "),t.expiresOn?t.expiresOn.getTime()/1e3:0,t.extExpiresOn?t.extExpiresOn.getTime()/1e3:0,hd,void 0,t.tokenType,void 0,n.sshKid,n.claims,i),s={idToken:r,accessToken:o};return this.saveCacheRecord(s,t.correlationId)}async saveCacheRecord(t,n,r){try{await super.saveCacheRecord(t,n,r)}catch(i){if(i instanceof Vy&&this.performanceClient&&n)try{const o=this.getTokenKeys();this.performanceClient.addFields({cacheRtCount:o.refreshToken.length,cacheIdCount:o.idToken.length,cacheAtCount:o.accessToken.length},n)}catch{}throw i}}}const kVt=(e,t)=>{const n={cacheLocation:ba.MemoryStorage,temporaryCacheLocation:ba.MemoryStorage,storeAuthStateInCookie:!1,secureCookies:!1,cacheMigrationEnabled:!1,claimsBasedCachingEnabled:!1};return new TU(e,n,S3,t)};/*! @azure/msal-browser v3.30.0 2025-08-05 */function xVt(e,t,n,r,i){return e.verbose("getAllAccounts called"),n?t.getAllAccounts(r,i):[]}function AVt(e,t,n,r){if(t.trace("getAccount called"),Object.keys(e).length===0)return t.warning("getAccount: No accountFilter provided"),null;const i=n.getAccountInfoFilteredBy(e,r);return i?(t.verbose("getAccount: Account matching provided filter found, returning"),i):(t.verbose("getAccount: No matching account found, returning null"),null)}function IVt(e,t,n,r){if(t.trace("getAccountByUsername called"),!e)return t.warning("getAccountByUsername: No username provided"),null;const i=n.getAccountInfoFilteredBy({username:e},r);return i?(t.verbose("getAccountByUsername: Account matching username found, returning"),t.verbosePii(`getAccountByUsername: Returning signed-in accounts matching username: ${e}`),i):(t.verbose("getAccountByUsername: No matching account found, returning null"),null)}function RVt(e,t,n,r){if(t.trace("getAccountByHomeId called"),!e)return t.warning("getAccountByHomeId: No homeAccountId provided"),null;const i=n.getAccountInfoFilteredBy({homeAccountId:e},r);return i?(t.verbose("getAccountByHomeId: Account matching homeAccountId found, returning"),t.verbosePii(`getAccountByHomeId: Returning signed-in accounts matching homeAccountId: ${e}`),i):(t.verbose("getAccountByHomeId: No matching account found, returning null"),null)}function PVt(e,t,n,r){if(t.trace("getAccountByLocalId called"),!e)return t.warning("getAccountByLocalId: No localAccountId provided"),null;const i=n.getAccountInfoFilteredBy({localAccountId:e},r);return i?(t.verbose("getAccountByLocalId: Account matching localAccountId found, returning"),t.verbosePii(`getAccountByLocalId: Returning signed-in accounts matching localAccountId: ${e}`),i):(t.verbose("getAccountByLocalId: No matching account found, returning null"),null)}function OVt(e,t,n){t.setActiveAccount(e,n)}function NVt(e,t){return e.getActiveAccount(t)}
1603/*! @azure/msal-browser v3.30.0 2025-08-05 */const Pt={INITIALIZE_START:"msal:initializeStart",INITIALIZE_END:"msal:initializeEnd",ACCOUNT_ADDED:"msal:accountAdded",ACCOUNT_REMOVED:"msal:accountRemoved",ACTIVE_ACCOUNT_CHANGED:"msal:activeAccountChanged",LOGIN_START:"msal:loginStart",LOGIN_SUCCESS:"msal:loginSuccess",LOGIN_FAILURE:"msal:loginFailure",ACQUIRE_TOKEN_START:"msal:acquireTokenStart",ACQUIRE_TOKEN_SUCCESS:"msal:acquireTokenSuccess",ACQUIRE_TOKEN_FAILURE:"msal:acquireTokenFailure",ACQUIRE_TOKEN_NETWORK_START:"msal:acquireTokenFromNetworkStart",SSO_SILENT_START:"msal:ssoSilentStart",SSO_SILENT_SUCCESS:"msal:ssoSilentSuccess",SSO_SILENT_FAILURE:"msal:ssoSilentFailure",ACQUIRE_TOKEN_BY_CODE_START:"msal:acquireTokenByCodeStart",ACQUIRE_TOKEN_BY_CODE_SUCCESS:"msal:acquireTokenByCodeSuccess",ACQUIRE_TOKEN_BY_CODE_FAILURE:"msal:acquireTokenByCodeFailure",HANDLE_REDIRECT_START:"msal:handleRedirectStart",HANDLE_REDIRECT_END:"msal:handleRedirectEnd",POPUP_OPENED:"msal:popupOpened",LOGOUT_START:"msal:logoutStart",LOGOUT_SUCCESS:"msal:logoutSuccess",LOGOUT_FAILURE:"msal:logoutFailure",LOGOUT_END:"msal:logoutEnd",RESTORE_FROM_BFCACHE:"msal:restoreFromBFCache"};/*! @azure/msal-browser v3.30.0 2025-08-05 */class MVt{constructor(t){this.eventCallbacks=new Map,this.logger=t||new _m({})}addEventCallback(t,n,r){if(typeof window<"u"){const i=r||dVt();return this.eventCallbacks.has(i)?(this.logger.error(`Event callback with id: ${i} is already registered. Please provide a unique id or remove the existing callback and try again.`),null):(this.eventCallbacks.set(i,[t,n||[]]),this.logger.verbose(`Event callback registered with id: ${i}`),i)}return null}removeEventCallback(t){this.eventCallbacks.delete(t),this.logger.verbose(`Event callback ${t} removed.`)}emitEvent(t,n,r,i){if(typeof window<"u"){const o={eventType:t,interactionType:n||null,payload:r||null,error:i||null,timestamp:Date.now()};this.eventCallbacks.forEach(([s,a],c)=>{(a.length===0||a.includes(t))&&(this.logger.verbose(`Emitting event to callback ${c}: ${t}`),s.apply(null,[o]))})}}}/*! @azure/msal-browser v3.30.0 2025-08-05 */class dAe{constructor(t,n,r,i,o,s,a,c,l){this.config=t,this.browserStorage=n,this.browserCrypto=r,this.networkClient=this.config.system.networkClient,this.eventHandler=o,this.navigationClient=s,this.nativeMessageHandler=c,this.correlationId=l||Id(),this.logger=i.clone(nc.MSAL_SKU,Z1,this.correlationId),this.performanceClient=a}async clearCacheOnLogout(t){if(t){_o.accountInfoIsEqual(t,this.browserStorage.getActiveAccount(this.correlationId),!1)&&(this.logger.verbose("Setting active account to null"),this.browserStorage.setActiveAccount(null,this.correlationId));try{await this.browserStorage.removeAccount(_o.generateAccountCacheKey(t),this.correlationId),this.logger.verbose("Cleared cache items belonging to the account provided in the logout request.")}catch{this.logger.error("Account provided in logout request was not found. Local cache unchanged.")}}else try{this.logger.verbose("No account provided in logout request, clearing all cache items.",this.correlationId),await this.browserStorage.clear(this.correlationId),await this.browserCrypto.clearKeystore()}catch{this.logger.error("Attempted to clear all MSAL cache items and failed. Local cache unchanged.")}}getRedirectUri(t){this.logger.verbose("getRedirectUri called");const n=t||this.config.auth.redirectUri;return An.getAbsoluteUrl(n,Lf())}initializeServerTelemetryManager(t,n){this.logger.verbose("initializeServerTelemetryManager called");const r={clientId:this.config.auth.clientId,correlationId:this.correlationId,apiId:t,forceRefresh:n||!1,wrapperSKU:this.browserStorage.getWrapperMetadata()[0],wrapperVer:this.browserStorage.getWrapperMetadata()[1]};return new GC(r,this.browserStorage)}async getDiscoveredAuthority(t){const{account:n}=t,r=t.requestExtraQueryParameters&&t.requestExtraQueryParameters.hasOwnProperty("instance_aware")?t.requestExtraQueryParameters.instance_aware:void 0;this.performanceClient.addQueueMeasurement(Ie.StandardInteractionClientGetDiscoveredAuthority,this.correlationId);const i={protocolMode:this.config.auth.protocolMode,OIDCOptions:this.config.auth.OIDCOptions,knownAuthorities:this.config.auth.knownAuthorities,cloudDiscoveryMetadata:this.config.auth.cloudDiscoveryMetadata,authorityMetadata:this.config.auth.authorityMetadata,skipAuthorityMetadataCache:this.config.auth.skipAuthorityMetadataCache},o=t.requestAuthority||this.config.auth.authority,s=r!=null&&r.length?r==="true":this.config.auth.instanceAware,a=n&&s?this.config.auth.authority.replace(An.getDomainFromUrl(o),n.environment):o,c=gs.generateAuthority(a,t.requestAzureCloudOptions||this.config.auth.azureCloudOptions),l=await at(bxe,Ie.AuthorityFactoryCreateDiscoveredInstance,this.logger,this.performanceClient,this.correlationId)(c,this.config.system.networkClient,this.browserStorage,i,this.logger,this.correlationId,this.performanceClient);if(n&&!l.isAlias(n.environment))throw gr(uxe);return l}}/*! @azure/msal-browser v3.30.0 2025-08-05 */const DVt=32;async function LVt(e,t,n){e.addQueueMeasurement(Ie.GeneratePkceCodes,n);const r=n0(FVt,Ie.GenerateCodeVerifier,t,e,n)(e,t,n),i=await at(jVt,Ie.GenerateCodeChallengeFromVerifier,t,e,n)(r,e,t,n);return{verifier:r,challenge:i}}
1603function FVt(e,t,n){try{const r=new Uint8Array(DVt);return n0(Jzt,Ie.GetRandomValues,t,e,n)(r),c4(r)}catch{throw gt(Kq)}}async function jVt(e,t,n,r){t.addQueueMeasurement(Ie.GenerateCodeChallengeFromVerifier,r);try{const i=await at(iAe,Ie.Sha256Digest,n,t,r)(e,t,r);return c4(new Uint8Array(i))}catch{throw gt(Kq)}}/*! @azure/msal-browser v3.30.0 2025-08-05 */async function aG(e,t,n,r){n.addQueueMeasurement(Ie.InitializeBaseRequest,e.correlationId);const i=e.authority||t.auth.authority,o=[...e&&e.scopes||[]],s={...e,correlationId:e.correlationId,authority:i,scopes:o};if(!s.authenticationScheme)s.authenticationScheme=lr.BEARER,r.verbose(`Authentication Scheme wasn't explicitly set in request, defaulting to "Bearer" request`);else{if(s.authenticationScheme===lr.SSH){if(!e.sshJwk)throw gr(t4);if(!e.sshKid)throw gr(axe)}r.verbose(`Authentication Scheme set to "${s.authenticationScheme}" as configured in Auth request`)}return t.cache.claimsBasedCachingEnabled&&e.claims&&!Xl.isEmptyObj(e.claims)&&(s.requestedClaimsHash=await oAe(e.claims)),s}async function UVt(e,t,n,r,i){r.addQueueMeasurement(Ie.InitializeSilentRequest,e.correlationId);const o=await at(aG,Ie.InitializeBaseRequest,i,r,e.correlationId)(e,n,r,i);return{...e,...o,account:t,forceRefresh:e.forceRefresh||!1}}/*! @azure/msal-browser v3.30.0 2025-08-05 */class sw extends dAe{async initializeAuthorizationCodeRequest(t){this.performanceClient.addQueueMeasurement(Ie.StandardInteractionClientInitializeAuthorizationCodeRequest,this.correlationId);const n=await at(LVt,Ie.GeneratePkceCodes,this.logger,this.performanceClient,this.correlationId)(this.performanceClient,this.logger,this.correlationId),r={...t,redirectUri:t.redirectUri,code:De.EMPTY_STRING,codeVerifier:n.verifier};return t.codeChallenge=n.challenge,t.codeChallengeMethod=De.S256_CODE_CHALLENGE_METHOD,r}initializeLogoutRequest(t){this.logger.verbose("initializeLogoutRequest called",t==null?void 0:t.correlationId);const n={correlationId:this.correlationId||Id(),...t};if(t)if(t.logoutHint)this.logger.verbose("logoutHint has already been set in logoutRequest");else if(t.account){const r=this.getLogoutHintFromIdTokenClaims(t.account);r&&(this.logger.verbose("Setting logoutHint to login_hint ID Token Claim value for the account provided"),n.logoutHint=r)}else this.logger.verbose("logoutHint was not set and account was not passed into logout request, logoutHint will not be set");else this.logger.verbose("logoutHint will not be set since no logout request was configured");return!t||t.postLogoutRedirectUri!==null?t&&t.postLogoutRedirectUri?(this.logger.verbose("Setting postLogoutRedirectUri to uri set on logout request",n.correlationId),n.postLogoutRedirectUri=An.getAbsoluteUrl(t.postLogoutRedirectUri,Lf())):this.config.auth.postLogoutRedirectUri===null?this.logger.verbose("postLogoutRedirectUri configured as null and no uri set on request, not passing post logout redirect",n.correlationId):this.config.auth.postLogoutRedirectUri?(this.logger.verbose("Setting postLogoutRedirectUri to configured uri",n.correlationId),n.postLogoutRedirectUri=An.getAbsoluteUrl(this.config.auth.postLogoutRedirectUri,Lf())):(this.logger.verbose("Setting postLogoutRedirectUri to current page",n.correlationId),n.postLogoutRedirectUri=An.getAbsoluteUrl(Lf(),Lf())):this.logger.verbose("postLogoutRedirectUri passed as null, not setting post logout redirect uri",n.correlationId),n}getLogoutHintFromIdTokenClaims(t){const n=t.idTokenClaims;if(n){if(n.login_hint)return n.login_hint;this.logger.verbose("The ID Token Claims tied to the provided account do not contain a login_hint claim, logoutHint will not be added to logout request")}else this.logger.verbose("The provided account does not contain ID Token Claims, logoutHint will not be added to logout request");return null}async createAuthCodeClient(t){this.performanceClient.addQueueMeasurement(Ie.StandardInteractionClientCreateAuthCodeClient,this.correlationId);const n=await at(this.getClientConfiguration.bind(this),Ie.StandardInteractionClientGetClientConfiguration,this.logger,this.performanceClient,this.correlationId)(t);return new _xe(n,this.performanceClient)}async getClientConfiguration(t){const{serverTelemetryManager:n,requestAuthority:r,requestAzureCloudOptions:i,requestExtraQueryParameters:o,account:s}=t;this.performanceClient.addQueueMeasurement(Ie.StandardInteractionClientGetClientConfiguration,this.correlationId);const a=await at(this.getDiscoveredAuthority.bind(this),Ie.StandardInteractionClientGetDiscoveredAuthority,this.logger,this.performanceClient,this.correlationId)({requestAuthority:r,requestAzureCloudOptions:i,requestExtraQueryParameters:o,account:s}),c=this.config.system.loggerOptions;return{authOptions:{clientId:this.config.auth.clientId,authority:a,clientCapabilities:this.config.auth.clientCapabilities,redirectUri:this.config.auth.redirectUri},systemOptions:{tokenRenewalOffsetSeconds:this.config.system.tokenRenewalOffsetSeconds,preventCorsPreflight:!0},loggerOptions:{loggerCallback:c.loggerCallback,piiLoggingEnabled:c.piiLoggingEnabled,logLevel:c.logLevel,correlationId:this.correlationId},cacheOptions:{claimsBasedCachingEnabled:this.config.cache.claimsBasedCachingEnabled},cryptoInterface:this.browserCrypto,networkInterface:this.networkClient,storageInterface:this.browserStorage,serverTelemetryManager:n,library
1603Info:{sku:nc.MSAL_SKU,version:Z1,cpu:De.EMPTY_STRING,os:De.EMPTY_STRING},telemetry:this.config.telemetry}}async initializeAuthorizationRequest(t,n){this.performanceClient.addQueueMeasurement(Ie.StandardInteractionClientInitializeAuthorizationRequest,this.correlationId);const r=this.getRedirectUri(t.redirectUri),i={interactionType:n},o=Jl.setRequestState(this.browserCrypto,t&&t.state||De.EMPTY_STRING,i),a={...await at(aG,Ie.InitializeBaseRequest,this.logger,this.performanceClient,this.correlationId)({...t,correlationId:this.correlationId},this.config,this.performanceClient,this.logger),redirectUri:r,state:o,nonce:t.nonce||Id(),responseMode:this.config.auth.OIDCOptions.serverResponseType};if(t.loginHint||t.sid)return a;const c=t.account||this.browserStorage.getActiveAccount(this.correlationId);if(c&&(this.logger.verbose("Setting validated request account",this.correlationId),this.logger.verbosePii(`Setting validated request account: ${c.homeAccountId}`,this.correlationId),a.account=c),!a.loginHint&&!c){const l=this.browserStorage.getLegacyLoginHint();l&&(a.loginHint=l)}return a}}/*! @azure/msal-browser v3.30.0 2025-08-05 */const BVt="ContentError",fAe="user_switch";/*! @azure/msal-browser v3.30.0 2025-08-05 */const $Vt="USER_INTERACTION_REQUIRED",HVt="USER_CANCEL",zVt="NO_NETWORK",VVt="PERSISTENT_ERROR",WVt="DISABLED",qVt="ACCOUNT_UNAVAILABLE";/*! @azure/msal-browser v3.30.0 2025-08-05 */const GVt=-2147186943,KVt={[fAe]:"User attempted to switch accounts in the native broker, which is not allowed. All new accounts must sign-in through the standard web flow first, please try again."};class Qu extends Wr{constructor(t,n,r){super(t,n),Object.setPrototypeOf(this,Qu.prototype),this.name="NativeAuthError",this.ext=r}}function H0(e){if(e.ext&&e.ext.status&&(e.ext.status===VVt||e.ext.status===WVt)||e.ext&&e.ext.error&&e.ext.error===GVt)return!0;switch(e.errorCode){case BVt:return!0;default:return!1}}function kU(e,t,n){if(n&&n.status)switch(n.status){case qVt:return yU(wxe);case $Vt:return new cu(e,t);case HVt:return gt(Ov);case zVt:return gt(x3)}return new Qu(e,KVt[e]||t,n)}/*! @azure/msal-browser v3.30.0 2025-08-05 */class hAe extends sw{async acquireToken(t){this.performanceClient.addQueueMeasurement(Ie.SilentCacheClientAcquireToken,t.correlationId);const n=this.initializeServerTelemetryManager(Br.acquireTokenSilent_silentFlow),r=await at(this.getClientConfiguration.bind(this),Ie.StandardInteractionClientGetClientConfiguration,this.logger,this.performanceClient,this.correlationId)({serverTelemetryManager:n,requestAuthority:t.authority,requestAzureCloudOptions:t.azureCloudOptions,account:t.account}),i=new Rzt(r,this.performanceClient);this.logger.verbose("Silent auth client created");try{const s=(await at(i.acquireCachedToken.bind(i),Ie.SilentFlowClientAcquireCachedToken,this.logger,this.performanceClient,t.correlationId)(t))[0];return this.performanceClient.addFields({fromCache:!0},t.correlationId),s}catch(o){throw o instanceof m2&&o.errorCode===Xq&&this.logger.verbose("Signing keypair for bound access token not found. Refreshing bound access token and generating a new crypto keypair."),o}}logout(t){this.logger.verbose("logoutRedirect called");const n=this.initializeLogoutRequest(t);return this.clearCacheOnLogout(n==null?void 0:n.account)}}/*! @azure/msal-browser v3.30.0 2025-08-05 */class Wy extends dAe{constructor(t,n,r,i,o,s,a,c,l,u,d,f){var g;super(t,n,r,i,o,s,c,l,f),this.apiId=a,this.accountId=u,this.nativeMessageHandler=l,this.nativeStorageManager=d,this.silentCacheClient=new hAe(t,this.nativeStorageManager,r,i,o,s,c,l,f),this.serverTelemetryManager=this.initializeServerTelemetryManager(this.apiId);const p=this.nativeMessageHandler.getExtensionId()===gy.PREFERRED_EXTENSION_ID?"chrome":(g=this.nativeMessageHandler.getExtensionId())!=null&&g.length?"unknown":void 0;this.skus=GC.makeExtraSkuString({libraryName:nc.MSAL_SKU,libraryVersion:Z1,extensionName:p,extensionVersion:this.nativeMessageHandler.getExtensionVersion()})}addRequestSKUs(t){t.extraParameters={...t.extraParameters,[hzt]:this.skus}}async acquireToken(t){this.performanceClient.addQueueMeasurement(Ie.NativeInteractionClientAcquireToken,t.correlationId),this.logger.trace("NativeInteractionClient - acquireToken called.");const n=this.performanceClient.startMeasurement(Ie.NativeInteractionClientAcquireToken,t.correlationId),r=Ad();try{const i=await this.initializeNativeRequest(t);
1603try{const l=await this.acquireTokensFromCache(this.accountId,i);return n.end({success:!0,isNativeBroker:!1,fromCache:!0}),l}catch{this.logger.info("MSAL internal Cache does not contain tokens, proceed to make a native call")}const{...o}=i,s={method:Ag.GetToken,request:o},a=await this.nativeMessageHandler.sendMessage(s),c=this.validateNativeResponse(a);return await this.handleNativeResponse(c,i,r).then(l=>(n.end({success:!0,isNativeBroker:!0,requestId:l.requestId}),this.serverTelemetryManager.clearNativeBrokerErrorCode(),l)).catch(l=>{throw n.end({success:!1,errorCode:l.errorCode,subErrorCode:l.subError,isNativeBroker:!0}),l})}catch(i){throw i instanceof Qu&&this.serverTelemetryManager.setNativeBrokerErrorCode(i.errorCode),i}}createSilentCacheRequest(t,n){return{authority:t.authority,correlationId:this.correlationId,scopes:Bi.fromString(t.scope).asArray(),account:n,forceRefresh:!1}}async acquireTokensFromCache(t,n){if(!t)throw this.logger.warning("NativeInteractionClient:acquireTokensFromCache - No nativeAccountId provided"),Qe(fU);const r=this.browserStorage.getBaseAccountInfo({nativeAccountId:t},n.correlationId);if(!r)throw Qe(fU);try{const i=this.createSilentCacheRequest(n,r),o=await this.silentCacheClient.acquireToken(i),s={...r,idTokenClaims:o==null?void 0:o.idTokenClaims,idToken:o==null?void 0:o.idToken};return{...o,account:s}}catch(i){throw i}}async acquireTokenRedirect(t,n){this.logger.trace("NativeInteractionClient - acquireTokenRedirect called.");const{...r}=t;delete r.onRedirectNavigate;const i=await this.initializeNativeRequest(r),o={method:Ag.GetToken,request:i};try{const c=await this.nativeMessageHandler.sendMessage(o);this.validateNativeResponse(c)}catch(c){if(c instanceof Qu&&(this.serverTelemetryManager.setNativeBrokerErrorCode(c.errorCode),H0(c)))throw c}this.browserStorage.setTemporaryCache(Zn.NATIVE_REQUEST,JSON.stringify(i),!0);const s={apiId:Br.acquireTokenRedirect,timeout:this.config.system.redirectNavigationTimeout,noHistory:!1},a=this.config.auth.navigateToLoginRequestUrl?window.location.href:this.getRedirectUri(t.redirectUri);n.end({success:!0}),await this.navigationClient.navigateExternal(a,s)}async handleRedirectPromise(t,n){if(this.logger.trace("NativeInteractionClient - handleRedirectPromise called."),!this.browserStorage.isInteractionInProgress(!0))return this.logger.info("handleRedirectPromise called but there is no interaction in progress, returning null."),null;const r=this.browserStorage.getCachedNativeRequest();if(!r)return this.logger.verbose("NativeInteractionClient - handleRedirectPromise called but there is no cached request, returning null."),t&&n&&(t==null||t.addFields({errorCode:"no_cached_request"},n)),null;const{prompt:i,...o}=r;i&&this.logger.verbose("NativeInteractionClient - handleRedirectPromise called and prompt was included in the original request, removing prompt from cached request to prevent second interaction with native broker window."),this.browserStorage.removeItem(this.browserStorage.generateCacheKey(Zn.NATIVE_REQUEST));const s={method:Ag.GetToken,request:o},a=Ad();try{this.logger.verbose("NativeInteractionClient - handleRedirectPromise sending message to native broker.");const c=await this.nativeMessageHandler.sendMessage(s);this.validateNativeResponse(c);const l=this.handleNativeResponse(c,o,a);this.browserStorage.setInteractionInProgress(!1);const u=await l;return this.serverTelemetryManager.clearNativeBrokerErrorCode(),u}catch(c){throw this.browserStorage.setInteractionInProgress(!1),c}}logout(){return this.logger.trace("NativeInteractionClient - logout called."),Promise.reject("Logout not implemented yet")}async handleNativeResponse(t,n,r){var u;this.logger.trace("NativeInteractionClient - handleNativeResponse called.");const i=t0(t.id_token,hd),o=this.createHomeAccountIdentifier(t,i),s=(u=this.browserStorage.getAccountInfoFilteredBy({nativeAccountId:n.accountId},this.correlationId))==null?void 0:u.homeAccountId;if(o!==s&&t.account.id!==n.accountId)throw kU(fAe);const a=await this.getDiscoveredAuthority({requestAuthority:n.authority}),c=Wq(this.browserStorage,a,o,hd,this.correlationId,i,t.client_info,void 0,i.tid,void 0,t.account.id,this.logger),l=await this.generateAuthenticationResult(t,n,i,c,a.canonicalAuthority,r);return this.cacheAccount(c),this.cacheNativeTokens(t,n,o,i,t.access_token,l.tenantId,r),l}createHomeAccountIdentifier(t,n){return _o.generateHomeAccountId(t.client_info||De.EMPTY_STRING,Ol.Default,this.logger,this.browserCrypto,n)}generateScopes(t,n){return t.scope?Bi.fromString(t.scope):Bi.fromString(n.scope)}async generatePopAccessToken(t,n){if(n.tokenType===lr.POP&&n.signPopToken){if(t.shr)return this.logger.trace("handleNativeServerResponse: SHR is enabled in native layer"),t.shr;const r=new J1(this.browserCrypto),i={resourceRequestMethod:n.resourceRequestMethod,resourceRequestUri:n.resourceRequestUri,shrClaims:n.shrClaims,shrNonce:n.shrNonce};if(!n.keyId)throw Qe(Iq);return r.signPopToken(t.access_token,n.keyId,i)}else return t.access_token}async generateAuthenticationResult(t,n,r,i,o,s){const a=this.addTelemetryFromNativeResponse(t),c=t.scope?Bi.fromString(t.scope):Bi.fromString(n.scope),l=t.account.properties||{},u=l.UID||r.oid||r.sub||De.EMPTY_STRING,d=l.TenantId||r.tid||De.EMPTY_STRING,f
1603=jq(i.getAccountInfo(),void 0,r,t.id_token);f.nativeAccountId!==t.account.id&&(f.nativeAccountId=t.account.id);const p=await this.generatePopAccessToken(t,n),g=n.tokenType===lr.POP?lr.POP:lr.BEARER;return{authority:o,uniqueId:u,tenantId:d,scopes:c.asArray(),account:f,idToken:t.id_token,idTokenClaims:r,accessToken:p,fromCache:a?this.isResponseFromCache(a):!1,expiresOn:new Date(Number(s+t.expires_in)*1e3),tokenType:g,correlationId:this.correlationId,state:t.state,fromNativeBroker:!0}}cacheAccount(t){this.browserStorage.setAccount(t,this.correlationId),this.browserStorage.removeAccountContext(t,this.correlationId).catch(n=>{this.logger.error(`Error occurred while removing account context from browser storage. ${n}`)})}cacheNativeTokens(t,n,r,i,o,s,a){const c=ZN(r,n.authority,t.id_token||"",n.clientId,i.tid||""),l=n.tokenType===lr.POP?De.SHR_NONCE_VALIDITY:(typeof t.expires_in=="string"?parseInt(t.expires_in,10):t.expires_in)||0,u=a+l,d=this.generateScopes(t,n),f=e4(r,n.authority,o,n.clientId,i.tid||s,d.printScopes(),u,0,hd,void 0,n.tokenType,void 0,n.keyId),p={idToken:c,accessToken:f};this.nativeStorageManager.saveCacheRecord(p,n.correlationId,n.storeInCache)}addTelemetryFromNativeResponse(t){const n=this.getMATSFromResponse(t);return n?(this.performanceClient.addFields({extensionId:this.nativeMessageHandler.getExtensionId(),extensionVersion:this.nativeMessageHandler.getExtensionVersion(),matsBrokerVersion:n.broker_version,matsAccountJoinOnStart:n.account_join_on_start,matsAccountJoinOnEnd:n.account_join_on_end,matsDeviceJoin:n.device_join,matsPromptBehavior:n.prompt_behavior,matsApiErrorCode:n.api_error_code,matsUiVisible:n.ui_visible,matsSilentCode:n.silent_code,matsSilentBiSubCode:n.silent_bi_sub_code,matsSilentMessage:n.silent_message,matsSilentStatus:n.silent_status,matsHttpStatus:n.http_status,matsHttpEventCount:n.http_event_count},this.correlationId),n):null}validateNativeResponse(t){if(t.hasOwnProperty("access_token")&&t.hasOwnProperty("id_token")&&t.hasOwnProperty("client_info")&&t.hasOwnProperty("account")&&t.hasOwnProperty("scope")&&t.hasOwnProperty("expires_in"))return t;throw Pke(Cq,"Response missing expected properties.")}getMATSFromResponse(t){if(t.properties.MATS)try{return JSON.parse(t.properties.MATS)}catch{this.logger.error("NativeInteractionClient - Error parsing MATS telemetry, returning null instead")}return null}isResponseFromCache(t){return typeof t.is_cached>"u"?(this.logger.verbose("NativeInteractionClient - MATS telemetry does not contain field indicating if response was served from cache. Returning false."),!1):!!t.is_cached}async initializeNativeRequest(t){this.logger.trace("NativeInteractionClient - initializeNativeRequest called");const n=t.authority||this.config.auth.authority;t.account&&await this.getDiscoveredAuthority({requestAuthority:n,requestAzureCloudOptions:t.azureCloudOptions,account:t.account});const r=new An(n);r.validateAsUri();const{scopes:i,...o}=t,s=new Bi(i||[]);s.appendScopes(ow);const a=()=>{switch(this.apiId){case Br.ssoSilent:case Br.acquireTokenSilent_silentFlow:return this.logger.trace("initializeNativeRequest: silent request sets prompt to none"),Fo.NONE}if(!t.prompt){this.logger.trace("initializeNativeRequest: prompt was not provided");return}switch(t.prompt){case Fo.NONE:case Fo.CONSENT:case Fo.LOGIN:return this.logger.trace("initializeNativeRequest: prompt is compatible with native flow"),t.prompt;default:throw this.logger.trace(`initializeNativeRequest: prompt = ${t.prompt} is not compatible with native flow`),gt(Qxe)}},c={...o,accountId:this.accountId,clientId:this.config.auth.clientId,authority:r.urlString,scope:s.printScopes(),redirectUri:this.getRedirectUri(t.redirectUri),prompt:a(),correlationId:this.correlationId,tokenType:t.authenticationScheme,windowTitleSubstring:document.title,extraParameters:{...t.extraQueryParameters,...t.tokenQueryParameters},extendedExpiryToken:!1,keyId:t.popKid};if(c.signPopToken&&t.popKid)throw gt(Jxe);if(this.handleExtraBrokerParams(c),c.extraParameters=c.extraParameters||{},c.extraParameters.telemetry=gy.MATS_TELEMETRY,t.authenticationScheme===lr.POP){const l={resourceRequestUri:t.resourceRequestUri,resourceRequestMethod:t.resourceRequestMethod,shrClaims:t.shrClaims,shrNonce:t.shrNonce},u=new J1(this.browserCrypto);let d;if(c.keyId)d=this.browserCrypto.base64UrlEncode(JSON.stringify({kid:c.keyId})),c.signPopToken=!1;else{const f=await at(u.generateCnf.bind(u),Ie.PopTokenGenerateCnf,this.logger,this.performanceClient,t.correlationId)(l,this.logger);d=f.reqCnfString,c.keyId=f.kid,c.signPopToken=!0}c.reqCnf=d}return this.addRequestSKUs(c),c}handleExtraBrokerParams(t){var o;const n=t.extraParameters&&t.extraParameters.hasOwnProperty(Hq)&&t.extraParameters.hasOwnProperty(vU)&&t.extraParameters.hasOwnProperty(Rv);if(!t.embeddedClientId&&!n)return;let r="";
1603const i=t.redirectUri;t.embeddedClientId?(t.redirectUri=this.config.auth.redirectUri,r=t.embeddedClientId):t.extraParameters&&(t.redirectUri=t.extraParameters[vU],r=t.extraParameters[Rv]),t.extraParameters={child_client_id:r,child_redirect_uri:i},(o=this.performanceClient)==null||o.addFields({embeddedClientId:r,embeddedRedirectUri:i},t.correlationId)}}/*! @azure/msal-browser v3.30.0 2025-08-05 */class nd{constructor(t,n,r,i){this.logger=t,this.handshakeTimeoutMs=n,this.extensionId=i,this.resolvers=new Map,this.handshakeResolvers=new Map,this.messageChannel=new MessageChannel,this.windowListener=this.onWindowMessage.bind(this),this.performanceClient=r,this.handshakeEvent=r.startMeasurement(Ie.NativeMessageHandlerHandshake)}async sendMessage(t){this.logger.trace("NativeMessageHandler - sendMessage called.");const n={channel:gy.CHANNEL_ID,extensionId:this.extensionId,responseId:Id(),body:t};return this.logger.trace("NativeMessageHandler - Sending request to browser extension"),this.logger.tracePii(`NativeMessageHandler - Sending request to browser extension: ${JSON.stringify(n)}`),this.messageChannel.port1.postMessage(n),new Promise((r,i)=>{this.resolvers.set(n.responseId,{resolve:r,reject:i})})}static async createProvider(t,n,r){t.trace("NativeMessageHandler - createProvider called.");try{const i=new nd(t,n,r,gy.PREFERRED_EXTENSION_ID);return await i.sendHandshakeRequest(),i}catch{const o=new nd(t,n,r);return await o.sendHandshakeRequest(),o}}async sendHandshakeRequest(){this.logger.trace("NativeMessageHandler - sendHandshakeRequest called."),window.addEventListener("message",this.windowListener,!1);const t={channel:gy.CHANNEL_ID,extensionId:this.extensionId,responseId:Id(),body:{method:Ag.HandshakeRequest}};return this.handshakeEvent.add({extensionId:this.extensionId,extensionHandshakeTimeoutMs:this.handshakeTimeoutMs}),this.messageChannel.port1.onmessage=n=>{this.onChannelMessage(n)},window.postMessage(t,window.origin,[this.messageChannel.port2]),new Promise((n,r)=>{this.handshakeResolvers.set(t.responseId,{resolve:n,reject:r}),this.timeoutId=window.setTimeout(()=>{window.removeEventListener("message",this.windowListener,!1),this.messageChannel.port1.close(),this.messageChannel.port2.close(),this.handshakeEvent.end({extensionHandshakeTimedOut:!0,success:!1}),r(gt(Gxe)),this.handshakeResolvers.delete(t.responseId)},this.handshakeTimeoutMs)})}onWindowMessage(t){if(this.logger.trace("NativeMessageHandler - onWindowMessage called"),t.source!==window)return;const n=t.data;if(!(!n.channel||n.channel!==gy.CHANNEL_ID)&&!(n.extensionId&&n.extensionId!==this.extensionId)&&n.body.method===Ag.HandshakeRequest){const r=this.handshakeResolvers.get(n.responseId);if(!r){this.logger.trace(`NativeMessageHandler.onWindowMessage - resolver can't be found for request ${n.responseId}`);return}this.logger.verbose(n.extensionId?`Extension with id: ${n.extensionId} not installed`:"No extension installed"),clearTimeout(this.timeoutId),this.messageChannel.port1.close(),this.messageChannel.port2.close(),window.removeEventListener("message",this.windowListener,!1),this.handshakeEvent.end({success:!1,extensionInstalled:!1}),r.reject(gt(Kxe))}}onChannelMessage(t){this.logger.trace("NativeMessageHandler - onChannelMessage called.");const n=t.data,r=this.resolvers.get(n.responseId),i=this.handshakeResolvers.get(n.responseId);try{const o=n.body.method;if(o===Ag.Response){if(!r)return;const s=n.body.response;if(this.logger.trace("NativeMessageHandler - Received response from browser extension"),this.logger.tracePii(`NativeMessageHandler - Received response from browser extension: ${JSON.stringify(s)}`),s.status!=="Success")r.reject(kU(s.code,s.description,s.ext));else if(s.result)s.result.code&&s.result.description?r.reject(kU(s.result.code,s.result.description,s.result.ext)):r.resolve(s.result);else throw Pke(Cq,"Event does not contain result.");this.resolvers.delete(n.responseId)}else if(o===Ag.HandshakeResponse){if(!i){this.logger.trace(`NativeMessageHandler.onChannelMessage - resolver can't be found for request ${n.responseId}`);return}clearTimeout(this.timeoutId),window.removeEventListener("message",this.windowListener,!1),this.extensionId=n.extensionId,this.extensionVersion=n.body.version,this.logger.verbose(`NativeMessageHandler - Received HandshakeResponse from extension: ${this.extensionId}`),this.handshakeEvent.end({extensionInstalled:!0,success:!0}),i.resolve(),this.handshakeResolvers.delete(n.responseId)}}catch(o){this.logger.error("Error parsing response from WAM Extension"),this.logger.errorPii(`Error parsing response from WAM Extension: ${o}`),this.logger.errorPii(`Unable to parse ${t}`),r?r.reject(o):i&&i.reject(o)}}getExtensionId(){return this.extensionId}getExtensionVersion(){return this.extensionVersion}static isNativeAvailable(t,n,r,i){if(n.trace("isNativeAvailable called"),!t.system.allowNativeBroker)return n.trace("isNativeAvailable: allowNativeBroker is not enabled, returning false"),!1;if(!r)return n.trace("isNativeAvailable: WAM extension provider is not initialized, returning false"),!1;if(i)switch(i){case lr.BEARER:case lr.POP:return n.trace("isNativeAvailable: authenticationScheme is supported, returning true"),!0;default:return n.trace("isNativeAvailable: authenticationScheme is not supported, returning false"),!1}return!0}}/*! @azure/msal-browser v3.30.0 2025-08-05 */class cG{constructor(t,n,r,i,o){this.authModule=t,this.browserStorage=n,this.authCodeRequest=r,this.logger=i,this.performanceClient=o}async handleCodeResponse(t,n){this.performanceClient.addQueueMeasurement(Ie.HandleCodeResponse,n.correlationId);let r;try{r=this.authModule.handleFragmentResponse(t,n.state)}catch(i){throw i instanceof Cm&&i.subError===Ov?gt(Ov):i}return at(this.handleCodeResponseFromServer.bind(this),Ie.HandleCodeResponseFromServer,this.logger,this.performanceClient,n.correlationId)(r,n)}async handleCodeResponseFromServer(t,n,r=!0){if(this.performanceClient.addQueueMeasurement(Ie.HandleCodeResponseFromServer,n.correlationId),this.logger.trace("InteractionHandler.handleCodeResponseFromServer called"),this.authCodeRequest.code=t.code,t.cloud_instance_host_name&&await at(this.authModule.updateAuthority.bind(this.authModule),Ie.UpdateTokenEndpointAuthority,this.logger,this.performanceClient,n.correlationId)(t.cloud_instance_host_name,n.correlationId),r&&(t.nonce=n.nonce||void 0),t.state=n.state,t.client_info)this.authCodeRequest.clientInfo=t.client_info;else{const o=this.createCcsCredentials(n);o&&(this.authCodeRequest.ccsCredential=o)}return await at(this.authModule.acquireToken.bind(this.authModule),Ie.AuthClientAcquireToken,this.logger,this.performanceClient,n.correlationId)(this.authCodeRequest,t)}createCcsCredentials(t){return t.account?{credential:t.account.homeAccountId,type:sc.HOME_ACCOUNT_ID}:t.loginHint?{credential:t.loginHint,type:sc.UPN}:null}}/*! @azure/msal-browser v3.30.0 2025-08-05 */function pAe(e,t,n){const r=E3(e);if(!r)throw fxe(e)?(n.error(`A ${t} is present in the iframe but it does not contain known properties. It's likely that the ${t} has been replaced by code running on the redirectUri page.`),n.errorPii(`The ${t} detected is: ${e}`),gt(xxe)):(n.error(`The request has returned to the redirectUri but a ${t} is not present. It's likely that the ${t} has been removed or the page has been redirected by code running on the redirectUri page.`),gt(kxe));return r}function YVt(e,t,n){if(!e.state)throw gt(Yq);const r=uAe(t,e.state);if(!r)throw gt(Axe);if(r.interactionType!==n)throw gt(Ixe)}/*! @azure/msal-browser v3.30.0 2025-08-05 */class QVt extends sw{constructor(t,n,r,i,o,s,a,c,l,u){super(t,n,r,i,o,s,a,l,u),this.unloadWindow=this.unloadWindow.bind(this),this.nativeStorage=c}acquireToken(t){try{const r={popupName:this.generatePopupName(t.scopes||ow,t.authority||this.config.auth.authority),popupWindowAttributes:t.popupWindowAttributes||{},popupWindowParent:t.popupWindowParent??window};return this.config.system.asyncPopups?(this.logger.verbose("asyncPopups set to true, acquiring token"),this.acquireTokenPopupAsync(t,r)):(this.logger.verbose("asyncPopup set to false, opening popup before acquiring token"),r.popup=this.openSizedPopup("about:blank",r),this.acquireTokenPopupAsync(t,r))}catch(n){return Promise.reject(n)}}logout(t){try{this.logger.verbose("logoutPopup called");
1603const n=this.initializeLogoutRequest(t),r={popupName:this.generateLogoutPopupName(n),popupWindowAttributes:(t==null?void 0:t.popupWindowAttributes)||{},popupWindowParent:(t==null?void 0:t.popupWindowParent)??window},i=t&&t.authority,o=t&&t.mainWindowRedirectUri;return this.config.system.asyncPopups?(this.logger.verbose("asyncPopups set to true"),this.logoutPopupAsync(n,r,i,o)):(this.logger.verbose("asyncPopup set to false, opening popup"),r.popup=this.openSizedPopup("about:blank",r),this.logoutPopupAsync(n,r,i,o))}catch(n){return Promise.reject(n)}}async acquireTokenPopupAsync(t,n){var o;this.logger.verbose("acquireTokenPopupAsync called");const r=this.initializeServerTelemetryManager(Br.acquireTokenPopup),i=await at(this.initializeAuthorizationRequest.bind(this),Ie.StandardInteractionClientInitializeAuthorizationRequest,this.logger,this.performanceClient,this.correlationId)(t,Et.Popup);lAe(i.authority);try{const s=await at(this.initializeAuthorizationCodeRequest.bind(this),Ie.StandardInteractionClientInitializeAuthorizationCodeRequest,this.logger,this.performanceClient,this.correlationId)(i),a=await at(this.createAuthCodeClient.bind(this),Ie.StandardInteractionClientCreateAuthCodeClient,this.logger,this.performanceClient,this.correlationId)({serverTelemetryManager:r,requestAuthority:i.authority,requestAzureCloudOptions:i.azureCloudOptions,requestExtraQueryParameters:i.extraQueryParameters,account:i.account}),c=nd.isNativeAvailable(this.config,this.logger,this.nativeMessageHandler,t.authenticationScheme);let l;c&&(l=this.performanceClient.startMeasurement(Ie.FetchAccountIdWithNativeBroker,t.correlationId));const u=await a.getAuthCodeUrl({...i,nativeBroker:c}),d=new cG(a,this.browserStorage,s,this.logger,this.performanceClient),f=this.initiateAuthRequest(u,n);this.eventHandler.emitEvent(Pt.POPUP_OPENED,Et.Popup,{popupWindow:f},null);const p=await this.monitorPopupForHash(f,n.popupWindowParent),g=n0(pAe,Ie.DeserializeResponse,this.logger,this.performanceClient,this.correlationId)(p,this.config.auth.OIDCOptions.serverResponseType,this.logger);if(Yu.removeThrottle(this.browserStorage,this.config.auth.clientId,s),g.accountId){if(this.logger.verbose("Account id found in hash, calling WAM for token"),l&&l.end({success:!0,isNativeBroker:!0}),!this.nativeMessageHandler)throw gt(p2);const y=new Wy(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,Br.acquireTokenPopup,this.performanceClient,this.nativeMessageHandler,g.accountId,this.nativeStorage,i.correlationId),{userRequestState:v}=Jl.parseRequestState(this.browserCrypto,i.state);return await y.acquireToken({...i,state:v,prompt:void 0})}return await d.handleCodeResponse(g,i)}catch(s){throw(o=n.popup)==null||o.close(),s instanceof Wr&&(s.setCorrelationId(this.correlationId),r.cacheFailedRequest(s)),s}}async logoutPopupAsync(t,n,r,i){var s,a,c,l;this.logger.verbose("logoutPopupAsync called"),this.eventHandler.emitEvent(Pt.LOGOUT_START,Et.Popup,t);const o=this.initializeServerTelemetryManager(Br.logoutPopup);try{await this.clearCacheOnLogout(t.account);const u=await at(this.createAuthCodeClient.bind(this),Ie.StandardInteractionClientCreateAuthCodeClient,this.logger,this.performanceClient,this.correlationId)({serverTelemetryManager:o,requestAuthority:r,account:t.account||void 0});try{u.authority.endSessionEndpoint}catch{if((s=t.account)!=null&&s.homeAccountId&&t.postLogoutRedirectUri&&u.authority.protocolMode===Gf.OIDC){if(this.browserStorage.removeAccount((a=t.account)==null?void 0:a.homeAccountId,this.correlationId),this.eventHandler.emitEvent(Pt.LOGOUT_SUCCESS,Et.Popup,t),i){const p={apiId:Br.logoutPopup,timeout:this.config.system.redirectNavigationTimeout,noHistory:!1},g=An.getAbsoluteUrl(i,Lf());await this.navigationClient.navigateInternal(g,p)}(c=n.popup)==null||c.close();return}}const d=u.getLogoutUri(t);this.eventHandler.emitEvent(Pt.LOGOUT_SUCCESS,Et.Popup,t);const f=this.openPopup(d,n);if(this.eventHandler.emitEvent(Pt.POPUP_OPENED,Et.Popup,{popupWindow:f},null),await this.monitorPopupForHash(f,n.popupWindowParent).catch(()=>{}),i){const p={apiId:Br.logoutPopup,timeout:this.config.system.redirectNavigationTimeout,noHistory:!1},g=An.getAbsoluteUrl(i,Lf());this.logger.verbose("Redirecting main window to url specified in the request"),this.logger.verbosePii(`Redirecting main window to: ${g}`),await this.navigationClient.navigateInternal(g,p)}else this.logger.verbose("No main window navigation requested")}catch(u){throw(l=n.popup)==null||l.close(),u instanceof Wr&&(u.setCorrelationId(this.correlationId),o.cacheFailedRequest(u)),this.browserStorage.setInteractionInProgress(!1),this.eventHandler.emitEvent(Pt.LOGOUT_FAILURE,Et.Po
1603pup,null,u),this.eventHandler.emitEvent(Pt.LOGOUT_END,Et.Popup),u}this.eventHandler.emitEvent(Pt.LOGOUT_END,Et.Popup)}initiateAuthRequest(t,n){if(t)return this.logger.infoPii(`Navigate to: ${t}`),this.openPopup(t,n);throw this.logger.error("Navigate url is empty"),gt(o4)}monitorPopupForHash(t,n){return new Promise((r,i)=>{this.logger.verbose("PopupHandler.monitorPopupForHash - polling started");const o=setInterval(()=>{if(t.closed){this.logger.error("PopupHandler.monitorPopupForHash - window closed"),clearInterval(o),i(gt(Ov));return}let s="";try{s=t.location.href}catch{}if(!s||s==="about:blank")return;clearInterval(o);let a="";const c=this.config.auth.OIDCOptions.serverResponseType;t&&(c===h2.QUERY?a=t.location.search:a=t.location.hash),this.logger.verbose("PopupHandler.monitorPopupForHash - popup window is on same origin as caller"),r(a)},this.config.system.pollIntervalMilliseconds)}).finally(()=>{this.cleanPopup(t,n)})}openPopup(t,n){try{let r;if(n.popup?(r=n.popup,this.logger.verbosePii(`Navigating popup window to: ${t}`),r.location.assign(t)):typeof n.popup>"u"&&(this.logger.verbosePii(`Opening popup window to: ${t}`),r=this.openSizedPopup(t,n)),!r)throw gt(Oxe);return r.focus&&r.focus(),this.currentWindow=r,n.popupWindowParent.addEventListener("beforeunload",this.unloadWindow),r}catch(r){throw this.logger.error("error opening popup "+r.message),this.browserStorage.setInteractionInProgress(!1),gt(Pxe)}}openSizedPopup(t,{popupName:n,popupWindowAttributes:r,popupWindowParent:i}){var p,g,m,y;const o=i.screenLeft?i.screenLeft:i.screenX,s=i.screenTop?i.screenTop:i.screenY,a=i.innerWidth||document.documentElement.clientWidth||document.body.clientWidth,c=i.innerHeight||document.documentElement.clientHeight||document.body.clientHeight;let l=(p=r.popupSize)==null?void 0:p.width,u=(g=r.popupSize)==null?void 0:g.height,d=(m=r.popupPosition)==null?void 0:m.top,f=(y=r.popupPosition)==null?void 0:y.left;return(!l||l<0||l>a)&&(this.logger.verbose("Default popup window width used. Window width not configured or invalid."),l=nc.POPUP_WIDTH),(!u||u<0||u>c)&&(this.logger.verbose("Default popup window height used. Window height not configured or invalid."),u=nc.POPUP_HEIGHT),(!d||d<0||d>c)&&(this.logger.verbose("Default popup window top position used. Window top not configured or invalid."),d=Math.max(0,c/2-nc.POPUP_HEIGHT/2+s)),(!f||f<0||f>a)&&(this.logger.verbose("Default popup window left position used. Window left not configured or invalid."),f=Math.max(0,a/2-nc.POPUP_WIDTH/2+o)),i.open(t,n,`width=${l}, height=${u}, top=${d}, left=${f}, scrollbars=yes`)}unloadWindow(t){this.browserStorage.cleanRequestByInteractionType(Et.Popup),this.currentWindow&&this.currentWindow.close(),t.preventDefault()}cleanPopup(t,n){t.close(),n.removeEventListener("beforeunload",this.unloadWindow),this.browserStorage.setInteractionInProgress(!1)}generatePopupName(t,n){return`${nc.POPUP_NAME_PREFIX}.${this.config.auth.clientId}.${t.join("-")}.${n}.${this.correlationId}`}generateLogoutPopupName(t){const n=t.account&&t.account.homeAccountId;return`${nc.POPUP_NAME_PREFIX}.${this.config.auth.clientId}.${n}.${this.correlationId}`}}/*! @azure/msal-browser v3.30.0 2025-08-05 */class jse{constructor(t,n,r,i,o){this.authModule=t,this.browserStorage=n,this.authCodeRequest=r,this.logger=i,this.performanceClient=o}async initiateAuthRequest(t,n){if(this.logger.verbose("RedirectHandler.initiateAuthRequest called"),t){n.redirectStartPage&&(this.logger.verbose("RedirectHandler.initiateAuthRequest: redirectStartPage set, caching start page"),this.browserStorage.setTemporaryCache(Zn.ORIGIN_URI,n.redirectStartPage,!0)),this.browserStorage.setTemporaryCache(Zn.CORRELATION_ID,this.authCodeRequest.correlationId,!0),this.browserStorage.cacheCodeRequest(this.authCodeRequest),this.logger.infoPii(`RedirectHandler.initiateAuthRequest: Navigate to: ${t}`);const r={apiId:Br.acquireTokenRedirect,timeout:n.redirectTimeout,noHistory:!1};if(typeof n.onRedirectNavigate=="function")if(this.logger.verbose("RedirectHandler.initiateAuthRequest: Invoking onRedirectNavigate callback"),n.onRedirectNavigate(t)!==!1){this.logger.verbose("RedirectHandler.initiateAuthRequest: onRedirectNavigate did n
1603ot return false, navigating"),await n.navigationClient.navigateExternal(t,r);return}else{this.logger.verbose("RedirectHandler.initiateAuthRequest: onRedirectNavigate returned false, stopping navigation");return}else{this.logger.verbose("RedirectHandler.initiateAuthRequest: Navigating window to navigate url"),await n.navigationClient.navigateExternal(t,r);return}}else throw this.logger.info("RedirectHandler.initiateAuthRequest: Navigate url is empty"),gt(o4)}async handleCodeResponse(t,n){this.logger.verbose("RedirectHandler.handleCodeResponse called"),this.browserStorage.setInteractionInProgress(!1);const r=this.browserStorage.generateStateKey(n),i=this.browserStorage.getTemporaryCache(r);if(!i)throw Qe(w3,"Cached State");let o;try{o=this.authModule.handleFragmentResponse(t,i)}catch(l){throw l instanceof Cm&&l.subError===Ov?gt(Ov):l}const s=this.browserStorage.generateNonceKey(i),a=this.browserStorage.getTemporaryCache(s);if(this.authCodeRequest.code=o.code,o.cloud_instance_host_name&&await at(this.authModule.updateAuthority.bind(this.authModule),Ie.UpdateTokenEndpointAuthority,this.logger,this.performanceClient,this.authCodeRequest.correlationId)(o.cloud_instance_host_name,this.authCodeRequest.correlationId),o.nonce=a||void 0,o.state=i,o.client_info)this.authCodeRequest.clientInfo=o.client_info;else{const l=this.checkCcsCredentials();l&&(this.authCodeRequest.ccsCredential=l)}const c=await this.authModule.acquireToken(this.authCodeRequest,o);return this.browserStorage.cleanRequestByState(n),c}checkCcsCredentials(){const t=this.browserStorage.getTemporaryCache(Zn.CCS_CREDENTIAL,!0);if(t)try{return JSON.parse(t)}catch{this.authModule.logger.error("Cache credential could not be parsed"),this.authModule.logger.errorPii(`Cache 
1603credential could not be parsed: ${t}`)}return null}}/*! @azure/msal-browser v3.30.0 2025-08-05 */function XVt(){if(typeof window>"u"||typeof window.performance>"u"||typeof window.performance.getEntriesByType!="function")return;const e=window.performance.getEntriesByType("navigation"),t=e.length?e[0]:void 0;return t==null?void 0:t.type}class JVt extends sw{constructor(t,n,r,i,o,s,a,c,l,u){super(t,n,r,i,o,s,a,l,u),this.nativeStorage=c}async acquireToken(t){const n=await at(this.initializeAuthorizationRequest.bind(this),Ie.StandardInteractionClientInitializeAuthorizationRequest,this.logger,this.performanceClient,this.correlationId)(t,Et.Redirect);this.browserStorage.updateCacheEntries(n.state,n.nonce,n.authority,n.loginHint||"",n.account||null);const r=this.initializeServerTelemetryManager(Br.acquireTokenRedirect),i=o=>{o.persisted&&(this.logger.verbose("Page was restored from back/forward cache. Clearing temporary cache."),this.browserStorage.cleanRequestByState(n.state),this.eventHandler.emitEvent(Pt.RESTORE_FROM_BFCACHE,Et.Redirect))};try{const o=await at(this.initializeAuthorizationCodeRequest.bind(this),Ie.StandardInteractionClientInitializeAuthorizationCodeRequest,this.logger,this.performanceClient,this.correlationId)(n),s=await at(this.createAuthCodeClient.bind(this),Ie.StandardInteractionClientCreateAuthCodeClient,this.logger,this.performanceClient,this.correlationId)({serverTelemetryManager:r,requestAuthority:n.authority,requestAzureCloudOptions:n.azureCloudOptions,requestExtraQueryParameters:n.extraQueryParameters,account:n.account}),a=new jse(s,this.browserStorage,o,this.logger,this.performanceClient),c=await s.getAuthCodeUrl({...n,nativeBroker:nd.isNativeAvailable(this.config,this.logger,this.nativeMessageHandler,t.authenticationScheme)}),l=this.getRedirectStartPage(t.redirectStartPage);return this.logger.verbosePii(`Redirect start page: ${l}`),window.addEventListener("pageshow",i),await a.initiateAuthRequest(c,{navigationClient:this.navigationClient,redirectTimeout:this.config.system.redirectNavigationTimeout,redirectStartPage:l,onRedirectNavigate:t.onRedirectNavigate||this.config.auth.onRedirectNavigate})}catch(o){throw o instanceof Wr&&(o.setCorrelationId(this.correlationId),r.cacheFailedRequest(o)),window.removeEventListener("pageshow",i),this.browserStorage.cleanRequestByState(n.state),o}}async handleRedirectPromise(t="",n){const r=this.initializeServerTelemetryManager(Br.handleRedirectPromise);try{if(!this.browserStorage.isInteractionInProgress(!0))return this.logger.info("handleRedirectPromise called but there is no interaction in progress, returning null."),null;const[i,o]=this.getRedirectResponse(t||"");if(!i)return this.logger.info("handleRedirectPromise did not detect a response as a result of a redirect. Cleaning temporary cache."),this.browserStorage.cleanRequestByInteractionType(Et.Redirect),XVt()!=="back_forward"?n.event.errorCode="no_server_response":this.logger.verbose("Back navigation event detected. Muting no_server_response error"),null;const s=this.browserStorage.getTemporaryCache(Zn.ORIGIN_URI,!0)||De.EMPTY_STRING,a=An.removeHashFromUrl(s),c=An.removeHashFromUrl(window.location.href);if(a===c&&this.config.auth.navigateToLoginRequestUrl)return this.logger.verbose("Current page is loginRequestUrl, handling response"),s.indexOf("#")>-1&&oVt(s),await this.handleResponse(i,r);if(this.config.auth.navigateToLoginRequestUrl){if(!iG()||this.config.system.allowRedirectInIframe){this.browserStorage.setTemporaryCache(Zn.URL_HASH,o,!0);const l={apiId:Br.handleRedirectPromise,timeout:this.config.system.redirectNavigationTimeout,noHistory:!0};let u=!0;if(!s||s==="null"){const d=aVt();this.browserStorage.setTemporaryCache(Zn.ORIGIN_URI,d,!0),this.logger.warning("Unable to get valid login request url from cache, redirecting to home page"),u=await this.navigationClient.navigateInternal(d,l)}else this.logger.verbose(`Navigating to loginRequestUrl: ${s}`),u=await this.navigationClient.navigateInternal(s,l);if(!u)return await this.handleResponse(i,r)}}else return this.logger.verbose("NavigateToLoginRequestUrl set to false, handling response"),await this.handleResponse(i,r);return null}catch(i){throw i instanceof Wr&&(i.setCorrelationId(this.correlationId),r.cacheFailedRequest(i)),this.browserStorage.cleanRequestByInteractionType(Et.Redirect),i}}getRedirectResponse(t){this.logger.verbose("getRedirectResponseHash called");let n=t;n||(this.config.auth.OIDCOptions.serverResponseType===h2.QUERY?n=window.location.search:n=window.location.hash);let r=E3(n);if(r){try{YVt(r,this.browserCrypto,Et.Redirect)}catch(o){return o instanceof Wr&&this.logger.error(`Interaction type validation failed due to ${o.errorCode}: ${o.errorMessage}`),[null,""]}return iVt(window),this.logger.verbose("Hash contains known properties, returning response hash"),[r,n]}const i=this.browserStorage.getTemporaryCache(Zn.URL_HASH,!0);return this.browserStorage.removeItem(this.browserStorage.generateCacheKey(Zn.URL_HASH)),i&&(r=E3(i),r)?(this.logger.verbose("Hash does not contain known properties, returning c
1603ached hash"),[r,i]):[null,""]}async handleResponse(t,n){const r=t.state;if(!r)throw gt(Yq);const i=this.browserStorage.getCachedRequest(r);if(this.logger.verbose("handleResponse called, retrieved cached request"),t.accountId){if(this.logger.verbose("Account id found in hash, calling WAM for token"),!this.nativeMessageHandler)throw gt(p2);const c=new Wy(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,Br.acquireTokenPopup,this.performanceClient,this.nativeMessageHandler,t.accountId,this.nativeStorage,i.correlationId),{userRequestState:l}=Jl.parseRequestState(this.browserCrypto,r);return c.acquireToken({...i,state:l,prompt:void 0}).finally(()=>{this.browserStorage.cleanRequestByState(r)})}const o=this.browserStorage.getCachedAuthority(r);if(!o)throw gt(Qq);const s=await at(this.createAuthCodeClient.bind(this),Ie.StandardInteractionClientCreateAuthCodeClient,this.logger,this.performanceClient,this.correlationId)({serverTelemetryManager:n,requestAuthority:o});return Yu.removeThrottle(this.browserStorage,this.config.auth.clientId,i),new jse(s,this.browserStorage,i,this.logger,this.performanceClient).handleCodeResponse(t,r)}async logout(t){var i,o;this.logger.verbose("logoutRedirect called");const n=this.initializeLogoutRequest(t),r=this.initializeServerTelemetryManager(Br.logout);try{this.eventHandler.emitEvent(Pt.LOGOUT_START,Et.Redirect,t),await this.clearCacheOnLogout(n.account);const s={apiId:Br.logout,timeout:this.config.system.redirectNavigationTimeout,noHistory:!1},a=await at(this.createAuthCodeClient.bind(this),Ie.StandardInteractionClientCreateAuthCodeClient,this.logger,this.performanceClient,this.correlationId)({serverTelemetryManager:r,requestAuthority:t&&t.authority,requestExtraQueryParameters:t==null?void 0:t.extraQueryParameters,account:t&&t.account||void 0});if(a.authority.protocolMode===Gf.OIDC)try{a.authority.endSessionEndpoint}catch{if((i=n.account)!=null&&i.homeAccountId){this.browserStorage.removeAccount((o=n.account)==null?void 0:o.homeAccountId,this.correlationId),this.eventHandler.emitEvent(Pt.LOGOUT_SUCCESS,Et.Redirect,n);return}}const c=a.getLogoutUri(n);if(this.eventHandler.emitEvent(Pt.LOGOUT_SUCCESS,Et.Redirect,n),t&&typeof t.onRedirectNavigate=="function")if(t.onRedirectNavigate(c)!==!1){this.logger.verbose("Logout onRedirectNavigate did not return false, navigating"),this.browserStorage.getInteractionInProgress()||this.browserStorage.setInteractionInProgress(!0),await this.navigationClient.navigateExternal(c,s);return}else this.browserStorage.setInteractionInProgress(!1),this.logger.verbose("Logout onRedirectNavigate returned false, stopping navigation");else{this.browserStorage.getInteractionInProgress()||this.browserStorage.setInteractionInProgress(!0),await this.navigationClient.navigateExternal(c,s);return}}catch(s){throw s instanceof Wr&&(s.setCorrelationId(this.correlationId),r.cacheFailedRequest(s)),this.eventHandler.emitEvent(Pt.LOGOUT_FAILURE,Et.Redirect,null,s),this.eventHandler.emitEvent(Pt.LOGOUT_END,Et.Redirect),s}this.eventHandler.emitEvent(Pt.LOGOUT_END,Et.Redirect)}getRedirectStartPage(t){const n=t||window.location.href;return An.getAbsoluteUrl(n,Lf())}}/*! @azure/msal-browser v3.30.0 2025-08-05 */async function ZVt(e,t,n,r,i){if(t.addQueueMeasurement(Ie.SilentHandlerInitiateAuthRequest,r),!e)throw n.info("Navigate url is empty"),gt(o4);return i?at(tWt,Ie.SilentHandlerLoadFrame,n,t,r)(e,i,t,r):n0(nWt,Ie.SilentHandlerLoadFrameSync,n,t,r)(e)}async function eWt(e,t,n,r,i,o,s){return r.addQueueMeasurement(Ie.SilentHandlerMonitorIframeForHash,o),new Promise((a,c)=>{t<CU&&i.warning(`system.loadFrameTimeout or system.iframeHashTimeout set to lower (${t}ms) than the default (${CU}ms). This may result in timeouts.`);const l=window.setTimeout(()=>{window.clearInterval(u),c(gt(Nxe))},t),u=window.setInterval(()=>{let d="";const f=e.contentWindow;try{d=f?f.location.href:""}catch{}if(!d||d==="about:blank")return;let p="";f&&(s===h2.QUERY?p=f.location.search:p=f.location.hash),window.clearTimeout(l),window.clearInterval(u),a(p)},n)}).finally(()=>{n0(rWt,Ie.RemoveHiddenIframe,i,r,o)(e)})}function tWt(e,t,n,r){return n.addQueueMeasurement(Ie.SilentHandlerLoadFrame,r),new Promise((i,o)=>{const s=mAe();window.setTimeout(()=>{if(!s){o("Unable to load iframe");return}s.src=e,i(s)},t)})}function nWt(e){const t=mAe();return t.src=e,t}function mAe(){const e=document.createElement("iframe");return e.className="msalSilentIframe",e.style.visibility="hidden",e.style.position="absolute",e.style.width=e.style.height="0",e.style.border="0",e.setAttribute("sandbox","allow-scripts allow-same-origin allow-forms"),document.body.appendChild(e),e}function rWt(e){document.body===e.parentNode&&document.body.removeChild(e)}/*! @azure/msal-browser v3.30.0 2025-08-05 */class iWt extends sw{constructor(t,n,r,i,o,s,a,c,l,u,d){super(t,n,r,i,o,s,c,u,d),this.apiId=a,this.nativeStorage=l}async acquireToken(t){this.performanceClient.addQueueMeasurement(Ie.SilentIframeClientAcquireToken,t.correlationId),!t.loginHint&&!t.sid&&(!t.account||!t.account.username)&&this.logger.warning("No user hint provided. The authorization server may need more information to complete this request.");const n={...t};n.prompt?n.prompt!==Fo.NONE&&n.prompt!==Fo.NO_SESSION&&(this.logger.warning(`SilentIframeClient. Replacing invalid prompt ${n.prompt} with ${Fo.NONE}`),n.prompt=Fo.NONE):n.prompt=Fo.NONE;const r=await at(this.initializeAuthorizationRequest.bind(this),Ie.StandardInteractionClientInitializeAuthorizationRequest,this.logger,this.performanceClient,t.correlationId)(n,Et.Silent);lAe(r.authority);const i=this.initializeServerTelemetryManager(this.apiId);let o;try{return o=await at(this.createAuthCodeClient.bind(this),Ie.StandardInteractionClientCreateAuthCodeClient,this.logger,this.performanceClient,t.correlationId)({serverTelemetryManager:i,requestAuthority:r.authority,requestAzureCloudOptions:r.azureCloudOptions,requestExtraQueryParameters:r.extraQueryParameters,account:r.account}),await at(this.silentTokenHelper.bind(this),Ie.SilentIframeClientTokenHelper,this.logger,this.performanceClient,t.correlationId)(o,r)}catch(s){if(s instanceof Wr&&(s.setCorrelationId(this.correlationId),i.cacheFailedRequest(s)),!o||!(s instanceof Wr)||s.errorCode!==nc.INVALID_GRANT_ERROR)throw s;this.performanceClient.addFields({retryError:s.errorCode},this.correlationId);const a=await at(this.initializeAuthorizationRequest.bind(this),Ie.StandardInteractionClientInitializeAuthorizationRequest,this.logger,this.performanceClient,t.correlationId)(n,Et.Silent);return await at(this.silentTokenHelper.bind(this),Ie.SilentIframeClientTokenHelper,this.logger,this.performanceClient,this.correlationId)(o,a)}}logout(){return Promise.reject(gt(s4))}async silentTokenHelper(t,n){const r=n.correlationId;this.performanceClient.addQueueMeasurement(Ie.SilentIframeClientTokenHelper,r);const i=await at(this.initializeAuthorizationCodeRequest.bind(this),Ie.StandardInteractionClientInitializeAuthorizationCodeRequest,this.logger,this.performanceClient,r)(n),o=await at(t.getAuthCodeUrl.bind(t),Ie.GetAuthCodeUrl,this.logger,this.performanceClient,r)({...n,nativeBroker:nd.isNativeAvailable(this.config,this.logger,this.nativeMessageHandler,n.authenticationScheme)}),s=new cG(t,this.browserStorage,i,this.logger,this.performanceClient),a=await at(ZVt,Ie.SilentHandlerInitiateAuthRequest,this.logger,this.performanceClient,r)(o,this.performanceClient,this.logger,r,this.config.system.navigateFrameWait),c=this.config.auth.OIDCOptions.serverResponseType,l=await at(eWt,Ie.SilentHandlerMonitorIframeForHash,this.logger,this.performanceClient,r)(a,this.config.system.iframeHashTimeout,this.config.system.pollIntervalMilliseconds,this.performanceClient,this.logger,r,c),u=n0(pAe,Ie.DeserializeResponse,this.logger,this.performanceClient,this.correlationId)(l,c,this.logger);
1603if(u.accountId){if(this.logger.verbose("Account id found in hash, calling WAM for token"),!this.nativeMessageHandler)throw gt(p2);const d=new Wy(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,this.apiId,this.performanceClient,this.nativeMessageHandler,u.accountId,this.browserStorage,r),{userRequestState:f}=Jl.parseRequestState(this.browserCrypto,n.state);return at(d.acquireToken.bind(d),Ie.NativeInteractionClientAcquireToken,this.logger,this.performanceClient,r)({...n,state:f,prompt:n.prompt||Fo.NONE})}return at(s.handleCodeResponse.bind(s),Ie.HandleCodeResponse,this.logger,this.performanceClient,r)(u,n)}}/*! @azure/msal-browser v3.30.0 2025-08-05 */class oWt extends sw{async acquireToken(t){this.performanceClient.addQueueMeasurement(Ie.SilentRefreshClientAcquireToken,t.correlationId);const n=await at(aG,Ie.InitializeBaseRequest,this.logger,this.performanceClient,t.correlationId)(t,this.config,this.performanceClient,this.logger),r={...t,...n};t.redirectUri&&(r.redirectUri=this.getRedirectUri(t.redirectUri));const i=this.initializeServerTelemetryManager(Br.acquireTokenSilent_silentFlow),o=await this.createRefreshTokenClient({serverTelemetryManager:i,authorityUrl:r.authority,azureCloudOptions:r.azureCloudOptions,account:r.account});return at(o.acquireTokenByRefreshToken.bind(o),Ie.RefreshTokenClientAcquireTokenByRefreshToken,this.logger,this.performanceClient,t.correlationId)(r).catch(s=>{throw s.setCorrelationId(this.correlationId),i.cacheFailedRequest(s),s})}logout(){return Promise.reject(gt(s4))}async createRefreshTokenClient(t){const n=await at(this.getClientConfiguration.bind(this),Ie.StandardInteractionClientGetClientConfiguration,this.logger,this.performanceClient,this.correlationId)({serverTelemetryManager:t.serverTelemetryManager,requestAuthority:t.authorityUrl,requestAzureCloudOptions:t.azureCloudOptions,requestExtraQueryParameters:t.extraQueryParameters,account:t.account});return new bU(n,this.performanceClient)}}/*! @azure/msal-browser v3.30.0 2025-08-05 */class sWt{constructor(t,n,r,i){this.isBrowserEnvironment=typeof window<"u",this.config=t,this.storage=n,this.logger=r,this.cryptoObj=i}loadExternalTokens(t,n,r){if(!this.isBrowserEnvironment)throw gt(a4);const i=t.correlationId||Id(),o=n.id_token?t0(n.id_token,hd):void 0,s={protocolMode:this.config.auth.protocolMode,knownAuthorities:this.config.auth.knownAuthorities,cloudDiscoveryMetadata:this.config.auth.cloudDiscoveryMetadata,authorityMetadata:this.config.auth.authorityMetadata,skipAuthorityMetadataCache:this.config.auth.skipAuthorityMetadataCache},a=t.authority?new gs(gs.generateAuthority(t.authority,t.azureCloudOptions),this.config.system.networkClient,this.storage,s,this.logger,t.correlationId||Id()):void 0,c=this.loadAccount(t,r.clientInfo||n.client_info||"",i,o,a),l=this.loadIdToken(n,c.homeAccountId,c.environment,c.realm,i),u=this.loadAccessToken(t,n,c.homeAccountId,c.environment,c.realm,r,i),d=this.loadRefreshToken(n,c.homeAccountId,c.environment,i);return this.generateAuthenticationResult(t,{account:c,idToken:l,accessToken:u,refreshToken:d},o,a)}loadAccount(t,n,r,i,o){if(this.logger.verbose("TokenCache - loading account"),t.account){const l=_o.createFromAccountInfo(t.account);return this.storage.setAccount(l,r),l}else if(!o||!n&&!i)throw this.logger.error("TokenCache - if an account is not provided on the request, authority and either clientInfo or idToken must be provided instead."),gt(Hxe);const s=_o.generateHomeAccountId(n,o.authorityType,this.logger,this.cryptoObj,i),a=i==null?void 0:i.tid,c=Wq(this.storage,o,s,hd,r,i,n,o.hostnameAndPort,a,void 0,void 0,this.logger);return this.storage.setAccount(c,r),c}loadIdToken(t,n,r,i,o){if(!t.id_token)return this.logger.verbose("TokenCache - no id token found in response"),null;this.logger.verbose("TokenCache - loading id token");const s=ZN(n,r,t.id_token,this.config.auth.clientId,i);return this.storage.setIdTokenCredential(s,o),s}loadAccessToken(t,n,r,i,o,s,a){if(n.access_token)if(n.expires_in){if(!n.scope&&(!t.scopes||!t.scopes.length))return this.logger.error("TokenCache - scopes not specified in the request or response. Cannot add token to the cache."),null}else return this.logger.error("TokenCache - no expiration set on the access token. Cannot add it to the cache."),null;else return this.logger.verbose("TokenCache - no access token found in response"),null;this.logger.verbose("TokenCache - loading access token");const c=n.scope?Bi.fromString(n.scope):new Bi(t.scopes),l=s.expiresOn||n.expires_in+new Date().getTime()/1e3,u=s.extendedExpiresOn||(n.ext_expires_in||n.expires_in)+new Date().getTime()/1e3,d=e4(r,i,n.access_token,this.config.auth.clientId,o,c.printScopes(),l,u,hd);return this.storage.setAccessTokenCredential(d,a),d}loadRefreshToken(t,n,r,i){if(!t.refresh_token)return this.logger.verbose("TokenCache - no refresh token found in response"),null;this.logger.verbose("TokenCache - loading refresh token");const o=Qke(n,r,t.refresh_token,this.config.auth.clientId,t.foci,void 0,t.refresh_token_expires_in);return this.storage.setRefreshTokenCredential(o,i),o}generateAuthenticationResult(t,n,r,i){var u,d,f;let o="",s=[],a=null,c;n!=null&&n.accessToken&&(o=n.accessToken.secret,s=Bi.fromString(n.accessToken.target).asArray(),a=new Date(Number(n.accessToken.expiresOn)*1e3),c=new Date(Number(n.accessToken.extendedExpiresOn)*1e3));const l=n.account;return{authority:i?i.canonicalAuthority:"",uniqueId:n.account.localAccountId,tenantId:n.account.realm,scopes:s,account:l.getAccountInfo(),idToken:((u=n.idToken)==null?void 0:u.secret)||"",idTokenClaims:r||{},accessToken:o,fromCache:!0,expiresOn:a,correlationId:t.correlationId||"",requestId:"",extExpiresOn:c,familyId:((d=n.refreshToken)==null?void 0:d.familyId)||"",tokenType:((f=n==null?void 0:n.accessToken)==null?void 0:f.tokenType)||"",state:t.state||"",cloudGraphHostName:l.cloudGraphHostName||"",msGraphHost:l.msGraphHost||"",fromNativeBroker:!1}}}/*! @azure/msal-browser v3.30.0 2025-08-05 */class aWt extends _xe{constructor(t){super(t),this.includeRedirectUri=!1}}/*! @azure/msal-browser v3.30.0 2025-08-05 */class cWt extends sw{constructor(t,n,r,i,o,s,a,c,l,u){super(t,n,r,i,o,s,c,l,u),this.apiId=a}async acquireToken(t){if(!t.code)throw gt(zxe);const n=await at(this.initializeAuthorizationRequest.bind(this),Ie.StandardInteractionClientInitializeAuthorizationRequest,this.logger,this.performanceClient,t.correlationId)(t,Et.Silent),r=this.initializeServerTelemetryManager(this.apiId);try{const i={...n,code:t.code},o=await at(this.getClientConfiguration.bind(this),Ie.StandardInteractionClientGetClientConfiguration,this.logger,this.performanceClient,t.correlationId)({serverTelemetryManager:r,requestAuthority:n.authority,requestAzureCloudOptions:n.azureCloudOptions,requestExtraQueryParameters:n.extraQueryParameters,account:n.account}),s=new aWt(o);this.logger.verbose("Auth code client created");const a=new cG(s,this.browserStorage,i,this.logger,this.performanceClient);return await at(a.handleCodeResponseFromServer.bind(a),Ie.HandleCodeResponseFromServer,this.logger,this.performanceClient,t.correlationId)({code:t.code,msgraph_host:t.msGraphHost,cloud_graph_host_name:t.cloudGraphHostName,cloud_instance_host_name:t.cloudInstanceHostName},n,!1)}catch(i){throw i instanceof Wr&&(i.setCorrelationId(this.correlationId),r.cacheFailedRequest(i)),i}}logout(){return Promise.reject(gt(s4))}}/*! @azure/msal-browser v3.30.0 2025-08-05 */function xu(e){const t=e==null?void 0:e.idTokenClaims;if(t!=null&&t.tfp||t!=null&&t.acr)return"B2C";
1603if(t!=null&&t.tid){if((t==null?void 0:t.tid)==="9188040d-6c67-4c5b-b112-36a304b66dad")return"MSA"}else return;return"AAD"}function Ok(e,t){try{oG(e)}catch(n){throw t.end({success:!1},n),n}}class l4{constructor(t){this.operatingContext=t,this.isBrowserEnvironment=this.operatingContext.isBrowserEnvironment(),this.config=t.getConfig(),this.initialized=!1,this.logger=this.operatingContext.getLogger(),this.networkClient=this.config.system.networkClient,this.navigationClient=this.config.system.navigationClient,this.redirectResponse=new Map,this.hybridAuthCodeResponses=new Map,this.performanceClient=this.config.telemetry.client,this.browserCrypto=this.isBrowserEnvironment?new eb(this.logger,this.performanceClient):S3,this.eventHandler=new MVt(this.logger),this.browserStorage=this.isBrowserEnvironment?new TU(this.config.auth.clientId,this.config.cache,this.browserCrypto,this.logger,wzt(this.config.auth),this.performanceClient):kVt(this.config.auth.clientId,this.logger);const n={cacheLocation:ba.MemoryStorage,temporaryCacheLocation:ba.MemoryStorage,storeAuthStateInCookie:!1,secureCookies:!1,cacheMigrationEnabled:!1,claimsBasedCachingEnabled:!1};this.nativeInternalStorage=new TU(this.config.auth.clientId,n,this.browserCrypto,this.logger,void 0,this.performanceClient),this.tokenCache=new sWt(this.config,this.browserStorage,this.logger,this.browserCrypto),this.activeSilentTokenRequests=new Map,this.trackPageVisibility=this.trackPageVisibility.bind(this),this.trackPageVisibilityWithMeasurement=this.trackPageVisibilityWithMeasurement.bind(this),this.listeningToStorageEvents=!1,this.handleAccountCacheChange=this.handleAccountCacheChange.bind(this)}static async createController(t,n){const r=new l4(t);return await r.initialize(n),r}trackPageVisibility(t){t&&(this.logger.info("Perf: Visibility change detected"),this.performanceClient.incrementFields({visibilityChangeCount:1},t))}async initialize(t){if(this.logger.trace("initialize called"),this.initialized){this.logger.info("initialize has already been called, exiting early.");return}if(!this.isBrowserEnvironment){this.logger.info("in non-browser environment, exiting early."),this.initialized=!0,this.eventHandler.emitEvent(Pt.INITIALIZE_END);return}const n=(t==null?void 0:t.correlationId)||this.getRequestCorrelationId(),r=this.config.system.allowNativeBroker,i=this.performanceClient.startMeasurement(Ie.InitializeClientApplication,n);if(this.eventHandler.emitEvent(Pt.INITIALIZE_START),r)try{this.nativeExtensionProvider=await nd.createProvider(this.logger,this.config.system.nativeBrokerHandshakeTimeout,this.performanceClient)}catch(o){this.logger.verbose(o)}this.config.cache.claimsBasedCachingEnabled||(this.logger.verbose("Claims-based caching is disabled. Clearing the previous cache with claims"),await at(this.browserStorage.clearTokensAndKeysWithClaims.bind(this.browserStorage),Ie.ClearTokensAndKeysWithClaims,this.logger,this.performanceClient,n)(this.performanceClient,n)),this.initialized=!0,this.eventHandler.emitEvent(Pt.INITIALIZE_END),i.end({allowNativeBroker:r,success:!0})}async handleRedirectPromise(t){if(this.logger.verbose("handleRedirectPromise called"),cAe(this.initialized),this.isBrowserEnvironment){const n=t||"";let r=this.redirectResponse.get(n);return typeof r>"u"?(r=this.handleRedirectPromiseInternal(t),this.redirectResponse.set(n,r),this.logger.verbose("handleRedirectPromise has been called for the first time, storing the promise")):this.logger.verbose("handleRedirectPromise has been called previously, returning the result from the first call"),r}return this.logger.verbose("handleRedirectPromise returns null, not browser environment"),null}async handleRedirectPromiseInternal(t){const n=this.getAllAccounts(),r=this.browserStorage.getCachedNativeRequest(),i=r&&nd.isNativeAvailable(this.config,this.logger,this.nativeExtensionProvider)&&this.nativeExtensionProvider&&!t,o=i?r==null?void 0:r.correlationId:this.browserStorage.getTemporaryCache(Zn.CORRELATION_ID,!0)||"",s=this.performanceClient.startMeasurement(Ie.AcquireTokenRedirect,o);this.eventHandler.emitEvent(Pt.HANDLE_REDIRECT_START,Et.Redirect);let a;if(i&&this.nativeExtensionProvider){this.logger.trace("handleRedirectPromise - acquiring token from native platform");const c=new Wy(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,Br.handleRedirectPromise,this.performanceClient,this.nativeExtensionProvider,r.accountId,this.nativeInternalStorage,r.correlationId);a=at(c.handleRedirectPromise.bind(c),Ie.HandleNativeRedirectPromiseMeasurement,this.logger,this.performanceClient,s.event.correlationId)(this.performanceClient,s.event.correlationId)}else{this.logger.trace("handleRedirectPromise - acquiring token from web flow");const c=this.createRedirectClient(o);a=at(c.handleRedirectPromise.bind(c),Ie.HandleRedirectPromiseMeasurement,this.logger,this.performanceClient,s.event.correlationId)(t,s)}return a.then(c=>(c?(n.length<this.getAllAccounts().length?(this.eventHandler.emitEvent(Pt.LOGIN_SUCCESS,Et.Redirect,c),this.logger.verbose("handleRedirectResponse returned result, login success")):(this.eventHandler.emitEvent(Pt.ACQUIRE_TOKEN_SUCCESS,Et.Redirect,c),this.logger.verbose("handleRedirectResponse returned result, acquire token success")),s.end({success:!0,accountType:xu(c.account)})):s.event.errorCode?s.end({success:!1}):s.discard(),this.eventHandler.emitEvent(Pt.HANDLE_REDIRECT_END,Et.Redirect),c)).c
1603atch(c=>{const l=c;throw n.length>0?this.eventHandler.emitEvent(Pt.ACQUIRE_TOKEN_FAILURE,Et.Redirect,null,l):this.eventHandler.emitEvent(Pt.LOGIN_FAILURE,Et.Redirect,null,l),this.eventHandler.emitEvent(Pt.HANDLE_REDIRECT_END,Et.Redirect),s.end({success:!1},l),c})}async acquireTokenRedirect(t){const n=this.getRequestCorrelationId(t);this.logger.verbose("acquireTokenRedirect called",n);const r=this.performanceClient.startMeasurement(Ie.AcquireTokenPreRedirect,n);r.add({accountType:xu(t.account),scenarioId:t.scenarioId});const i=t.onRedirectNavigate;if(i)t.onRedirectNavigate=s=>{const a=typeof i=="function"?i(s):void 0;return a!==!1?r.end({success:!0}):r.discard(),a};else{const s=this.config.auth.onRedirectNavigate;this.config.auth.onRedirectNavigate=a=>{const c=typeof s=="function"?s(a):void 0;return c!==!1?r.end({success:!0}):r.discard(),c}}const o=this.getAllAccounts().length>0;try{Mse(this.initialized,this.config),this.browserStorage.setInteractionInProgress(!0),o?this.eventHandler.emitEvent(Pt.ACQUIRE_TOKEN_START,Et.Redirect,t):this.eventHandler.emitEvent(Pt.LOGIN_START,Et.Redirect,t);let s;return this.nativeExtensionProvider&&this.canUseNative(t)?s=new Wy(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,Br.acquireTokenRedirect,this.performanceClient,this.nativeExtensionProvider,this.getNativeAccountId(t),this.nativeInternalStorage,n).acquireTokenRedirect(t,r).catch(c=>{if(c instanceof Qu&&H0(c))return this.nativeExtensionProvider=void 0,this.createRedirectClient(n).acquireToken(t);if(c instanceof cu)return this.logger.verbose("acquireTokenRedirect - Resolving interaction required error thrown by native broker by falling back to web flow"),this.createRedirectClient(n).acquireToken(t);throw this.browserStorage.setInteractionInProgress(!1),c}):s=this.createRedirectClient(n).acquireToken(t),await s}catch(s){throw r.end({success:!1},s),o?this.eventHandler.emitEvent(Pt.ACQUIRE_TOKEN_FAILURE,Et.Redirect,null,s):this.eventHandler.emitEvent(Pt.LOGIN_FAILURE,Et.Redirect,null,s),s}}acquireTokenPopup(t){const n=this.getRequestCorrelationId(t),r=this.performanceClient.startMeasurement(Ie.AcquireTokenPopup,n);r.add({scenarioId:t.scenarioId,accountType:xu(t.account)});try{this.logger.verbose("acquireTokenPopup called",n),Ok(this.initialized,r),this.browserStorage.setInteractionInProgress(!0)}catch(s){return Promise.reject(s)}const i=this.getAllAccounts();i.length>0?this.eventHandler.emitEvent(Pt.ACQUIRE_TOKEN_START,Et.Popup,t):this.eventHandler.emitEvent(Pt.LOGIN_START,Et.Popup,t);let o;return this.canUseNative(t)?o=this.acquireTokenNative({...t,correlationId:n},Br.acquireTokenPopup).then(s=>(this.browserStorage.setInteractionInProgress(!1),r.end({success:!0,isNativeBroker:!0,accountType:xu(s.account)}),s)).catch(s=>{if(s instanceof Qu&&H0(s))return this.nativeExtensionProvider=void 0,this.createPopupClient(n).acquireToken(t);if(s instanceof cu)return this.logger.verbose("acquireTokenPopup - Resolving interaction required error thrown by native broker by falling back to web flow"),this.createPopupClient(n).acquireToken(t);throw this.browserStorage.setInteractionInProgress(!1),s}):o=this.createPopupClient(n).acquireToken(t),o.then(s=>(i.length<this.getAllAccounts().length?this.eventHandler.emitEvent(Pt.LOGIN_SUCCESS,Et.Popup,s):this.eventHandler.emitEvent(Pt.ACQUIRE_TOKEN_SUCCESS,Et.Popup,s),r.end({success:!0,accessTokenSize:s.accessToken.length,idTokenSize:s.idToken.length,accountType:xu(s.account)}),s)).catch(s=>(i.length>0?this.eventHandler.emitEvent(Pt.ACQUIRE_TOKEN_FAILURE,Et.Popup,null,s):this.eventHandler.emitEvent(Pt.LOGIN_FAILURE,Et.Popup,null,s),r.end({success:!1},s),Promise.reject(s)))}trackPageVisibilityWithMeasurement(){const t=this.ssoSilentMeasurement||this.acquireTokenByCodeAsyncMeasurement;t&&(this.logger.info("Perf: Visibility change detected in ",t.event.name),t.increment({visibilityChangeCount:1}))}async ssoSilent(t){var o,s;const n=this.getRequestCorrelationId(t),r={...t,prompt:t.prompt,correlationId:n};this.ssoSilentMeasurement=this.performanceClient.startMeasurement(Ie.SsoSilent,n),(o=this.ssoSilentMeasurement)==null||o.add({scenarioId:t.scenarioId,accountType:xu(t.account)}),Ok(this.initialized,this.ssoSilentMeasurement),(s=this.ssoSilentMeasurement)==null||s.increment({visibilityChangeCount:0}),document.addEventListener("visibilitychange",this.trackPageVisibilityWithMeasurement),this.logger.verbose("ssoSilent called",n),this.eventHandler.emitEvent(Pt.SSO_SILENT_START,Et.Silent,r);let i;return this.canUseNative(r)?i=this.acquireTokenNative(r,Br.ssoSilent).catch(a=>{if(a instanceof Qu&&H0(a))return this.nativeExtensionProvider=void 0,this.createSilentIframeClient(r.correlationId).acquireToken(r);throw a}):i=this.createSilentIframeClient(r.correlationId).acquireToken(r),i.then(a=>{var c;return this.eventHandler.emitEvent(Pt.SSO_SILENT_SUCCESS,Et.Silent,a),(c=this.ssoSilentMeasurement)==null||c.end({success:!0,isNativeBroker:a.fromNativeBroker,accessTokenSize:a.accessToken.length,idTokenSize:a.idToken.length,accountType:xu(a.account)}),a}
1603).catch(a=>{var c;throw this.eventHandler.emitEvent(Pt.SSO_SILENT_FAILURE,Et.Silent,null,a),(c=this.ssoSilentMeasurement)==null||c.end({success:!1},a),a}).finally(()=>{document.removeEventListener("visibilitychange",this.trackPageVisibilityWithMeasurement)})}async acquireTokenByCode(t){const n=this.getRequestCorrelationId(t);this.logger.trace("acquireTokenByCode called",n);const r=this.performanceClient.startMeasurement(Ie.AcquireTokenByCode,n);Ok(this.initialized,r),this.eventHandler.emitEvent(Pt.ACQUIRE_TOKEN_BY_CODE_START,Et.Silent,t),r.add({scenarioId:t.scenarioId});try{if(t.code&&t.nativeAccountId)throw gt(Wxe);if(t.code){const i=t.code;let o=this.hybridAuthCodeResponses.get(i);return o?(this.logger.verbose("Existing acquireTokenByCode request found",n),r.discard()):(this.logger.verbose("Initiating new acquireTokenByCode request",n),o=this.acquireTokenByCodeAsync({...t,correlationId:n}).then(s=>(this.eventHandler.emitEvent(Pt.ACQUIRE_TOKEN_BY_CODE_SUCCESS,Et.Silent,s),this.hybridAuthCodeResponses.delete(i),r.end({success:!0,isNativeBroker:s.fromNativeBroker,accessTokenSize:s.accessToken.length,idTokenSize:s.idToken.length,accountType:xu(s.account)}),s)).catch(s=>{throw this.hybridAuthCodeResponses.delete(i),this.eventHandler.emitEvent(Pt.ACQUIRE_TOKEN_BY_CODE_FAILURE,Et.Silent,null,s),r.end({success:!1},s),s}),this.hybridAuthCodeResponses.set(i,o)),await o}else if(t.nativeAccountId)if(this.canUseNative(t,t.nativeAccountId)){const i=await this.acquireTokenNative({...t,correlationId:n},Br.acquireTokenByCode,t.nativeAccountId).catch(o=>{throw o instanceof Qu&&H0(o)&&(this.nativeExtensionProvider=void 0),o});return r.end({accountType:xu(i.account),success:!0}),i}else throw gt(qxe);else throw gt(Vxe)}catch(i){throw this.eventHandler.emitEvent(Pt.ACQUIRE_TOKEN_BY_CODE_FAILURE,Et.Silent,null,i),r.end({success:!1},i),i}}async acquireTokenByCodeAsync(t){var i;return this.logger.trace("acquireTokenByCodeAsync called",t.correlationId),this.acquireTokenByCodeAsyncMeasurement=this.performanceClient.startMeasurement(Ie.AcquireTokenByCodeAsync,t.correlationId),(i=this.acquireTokenByCodeAsyncMeasurement)==null||i.increment({visibilityChangeCount:0}),document.addEventListener("visibilitychange",this.trackPageVisibilityWithMeasurement),await this.createSilentAuthCodeClient(t.correlationId).acquireToken(t).then(o=>{var s;return(s=this.acquireTokenByCodeAsyncMeasurement)==null||s.end({success:!0,fromCache:o.fromCache,isNativeBroker:o.fromNativeBroker}),o}).catch(o=>{var s;throw(s=this.acquireTokenByCodeAsyncMeasurement)==null||s.end({success:!1},o),o}).finally(()=>{document.removeEventListener("visibilitychange",this.trackPageVisibilityWithMeasurement)})}async acquireTokenFromCache(t,n){switch(this.performanceClient.addQueueMeasurement(Ie.AcquireTokenFromCache,t.correlationId),n){case Ga.Default:case Ga.AccessToken:case Ga.AccessTokenAndRefreshToken:const r=this.createSilentCacheClient(t.correlationId);return at(r.acquireToken.bind(r),Ie.SilentCacheClientAcquireToken,this.logger,this.performanceClient,t.correlationId)(t);default:throw Qe(Df)}}async acquireTokenByRefreshToken(t,n){switch(this.performanceClient.addQueueMeasurement(Ie.AcquireTokenByRefreshToken,t.correlationId),n){case Ga.Default:case Ga.AccessTokenAndRefreshToken:case Ga.RefreshToken:case Ga.RefreshTokenAndNetwork:const r=this.createSilentRefreshClient(t.correlationId);return at(r.acquireToken.bind(r),Ie.SilentRefreshClientAcquireToken,this.logger,this.performanceClient,t.correlationId)(t);default:throw Qe(Df)}}async acquireTokenBySilentIframe(t){this.performanceClient.addQueueMeasurement(Ie.AcquireTokenBySilentIframe,t.correlationId);const n=this.createSilentIframeClient(t.correlationId);return at(n.acquireToken.bind(n),Ie.SilentIframeClientAcquireToken,this.logger,this.performanceClient,t.correlationId)(t)}async logout(t){const n=this.getRequestCorrelationId(t);return this.logger.warning("logout API is deprecated and will be removed in msal-browser v3.0.0. Use logoutRedirect instead.",n),this.logoutRedirect({correlationId:n,...t})}async logoutRedirect(t){const n=this.getRequestCorrelationId(t);return Mse(this.initialized,this.config),this.browserStorage.setInteractionInProgress(!0),this.createRedirectClient(n).logout(t)}logoutPopup(t){try{const n=this.getRequestCorrelationId(t);return oG(this.initialized),this.browserStorage.setInteractionInProgress(!0),this.createPopupClient(n).logout(t)}catch(n){return Promise.reject(n)}}async clearCache(t){if(!this.isBrowserEnvironment){this.logger.info("in non-browser environment, returning early.");return}const n=this.getRequestCorrelationId(t);return this.createSilentCacheClient(n).logout(t)}getAllAccounts(t){const n=this.getRequestCorrelationId();return xVt(this.logger,this.browserStorage,this.isBrowserEnvironment,n,t)}getAccount(t){const n=this.getRequestCorrelationId();return AVt(t,this.logger,this.browserStorage,n)}getAccountByUsername(t){const n=this.getRequestCorrelationId();return IVt(t,this.logger,this.browserStorage,n)}getAccountByHomeId(t){const n=this.getRequestCorrelationId();return RVt(t,this.logger,this.browserStorage,n)}getAccountByLocalId(t){const n=this.getRequestCorrelationId();return PVt(t,this.logger,this.browserStorage,n)}setActiveAccount(t){const n=this.getRequestCorrelationId();OVt(t,this.browserStorage,n)}getActiveAccount(){const t=this.getRequestCorrelationId();return NVt(this.browserStorage,t)}async hydrateCache(t,n){this.logger.verbose("hydrateCache called");const r=_o.createFromAccountInfo(t.account,t.cloudGraphHostName,t.msGraphHost);return this.browserStorage.setAccount(r,t.correlationId),t.fromNativeBroker?(this.logger.verbose("Response was from native broker, storing in-memory"),this.nativeInternalStorage.hydrateCache(t,n)):this.browserStorage.hydrateCache(t,n)}async acquireTokenNative(t,n,r){if(this.logger.trace("acquireTokenNative called"),!this.nativeExtensionProvider)throw gt(p2);return new Wy(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,n,this.performanceClient,this.nativeExtensionProvider,r||this.getNativeAccountId(t),this.nativeInternalStorage,t.correlationId).acquireToken(t)}canUseNative(t,n){if(this.logger.trace("canUseNative called"),!nd.isNativeAvailable(this.config,this.logger,this.nativeExtensionProvider,t.authenticationScheme))return this.logger.trace("canUseNative: isNativeAvailable returned false, returning false"),!1;if(t.prompt)switch(t.prompt){case Fo.NONE:case Fo.CONSENT:case Fo.LOGIN:this.logger.trace("canUseNative: prompt is compatible with native flow");break;default:return this.logger.trace(`canUseNative: prompt = ${t.prompt} is not compatible with native flow, returning false`),!1}return!n&&!this.getNativeAccountId(t)?(this.logger.trace("canUseNative: nativeAccountId is not available, returning false"),!1):!0}
1603getNativeAccountId(t){const n=t.account||this.getAccount({loginHint:t.loginHint,sid:t.sid})||this.getActiveAccount();return n&&n.nativeAccountId||""}createPopupClient(t){return new QVt(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,this.performanceClient,this.nativeInternalStorage,this.nativeExtensionProvider,t)}createRedirectClient(t){return new JVt(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,this.performanceClient,this.nativeInternalStorage,this.nativeExtensionProvider,t)}createSilentIframeClient(t){return new iWt(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,Br.ssoSilent,this.performanceClient,this.nativeInternalStorage,this.nativeExtensionProvider,t)}createSilentCacheClient(t){return new hAe(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,this.performanceClient,this.nativeExtensionProvider,t)}createSilentRefreshClient(t){return new oWt(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,this.performanceClient,this.nativeExtensionProvider,t)}createSilentAuthCodeClient(t){return new cWt(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,Br.acquireTokenByCode,this.performanceClient,this.nativeExtensionProvider,t)}addEventCallback(t,n){return this.eventHandler.addEventCallback(t,n)}removeEventCallback(t){this.eventHandler.removeEventCallback(t)}addPerformanceCallback(t){return aAe(),this.performanceClient.addPerformanceCallback(t)}removePerformanceCallback(t){return this.performanceClient.removePerformanceCallback(t)}enableAccountStorageEvents(){typeof window>"u"||(this.listeningToStorageEvents?this.logger.verbose("Account storage listener already registered."):(this.logger.verbose("Adding account storage listener."),this.listeningToStorageEvents=!0,window.addEventListener("storage",this.handleAccountCacheChange)))}disableAccountStorageEvents(){typeof window>"u"||(this.listeningToStorageEvents?(this.logger.verbose("Removing account storage listener."),window.removeEventListener("storage",this.handleAccountCacheChange),this.listeningToStorageEvents=!1):this.logger.verbose("No account storage listener registered."))}handleAccountCacheChange(t){var n;try{(n=t.key)!=null&&n.includes(Ro.ACTIVE_ACCOUNT_FILTERS)&&this.eventHandler.emitEvent(Pt.ACTIVE_ACCOUNT_CHANGED);const r=t.newValue||t.oldValue;if(!r)return;const i=JSON.parse(r);if(typeof i!="object"||!_o.isAccountEntity(i))return;const s=X1.toObject(new _o,i).getAccountInfo();!t.oldValue&&t.newValue?(this.logger.info("Account was added to cache in a different window"),this.eventHandler.emitEvent(Pt.ACCOUNT_ADDED,void 0,s)):!t.newValue&&t.oldValue&&(this.logger.info("Account was removed from cache in a different window"),this.eventHandler.emitEvent(Pt.ACCOUNT_REMOVED,void 0,s))}catch{return}}getTokenCache(){return this.tokenCache}getLogger(){return this.logger}setLogger(t){this.logger=t}initializeWrapperLibrary(t,n){this.browserStorage.setWrapperMetadata(t,n)}setNavigationClient(t){this.navigationClient=t}getConfiguration(){return this.config}getPerformanceClient(){return this.performanceClient}isBrowserEnv(){return this.isBrowserEnvironment}getRequestCorrelationId(t){return t!=null&&t.correlationId?t.correlationId:this.isBrowserEnvironment?Id():De.EMPTY_STRING}async loginRedirect(t){const n=this.getRequestCorrelationId(t);return this.logger.verbose("loginRedirect called",n),this.acquireTokenRedirect({correlationId:n,...t||Pse})}loginPopup(t){const n=this.getRequestCorrelationId(t);return this.logger.verbose("loginPopup called",n),this.acquireTokenPopup({correlationId:n,...t||Pse})}async acquireTokenSilent(t){const n=this.getRequestCorrelationId(t),r=this.performanceClient.startMeasurement(Ie.AcquireTokenSilent,n);r.add({cacheLookupPolicy:t.cacheLookupPolicy,scenarioId:t.scenarioId}),Ok(this.initialized,r),this.logger.verbose("acquireTokenSilent called",n);const i=t.account||this.getActiveAccount();if(!i)throw gt(Fxe);r.add({accountType:xu(i)});const o={clientId:this.config.auth.clientId,authority:t.authority||De.EMPTY_STRING,scopes:t.scopes,homeAccountIdentifier:i.homeAccountId,claims:t.claims,authenticationScheme:t.authenticationScheme,resourceRequestMethod:t.resourceRequestMethod,resourceRequestUri:t.resourceRequestUri,shrClaims:t.shrClaims,sshKid:t.sshKid,shrOptions:t.shrOptions},s=JSON.stringify(o),a=this.activeSilentTokenRequests.get(s);if(typeof a>"u"){this.logger.verbose("acquireTokenSilent called for the first time, storing active request",n);const c=at(this.acquireTokenSilentAsync.bind(this),Ie.AcquireTokenSilentAsync,this.logger,this.performanceClient,n)({...t,correlationId:n},i).then(l=>(this.activeSilentTokenRequests.delete(s),r.end({success:!0,fromCache:l.fromCache,isNativeBroker:l.fromNativeBroker,cacheLookupPolicy:t.cacheLookupPolicy,accessTokenSize:l.accessToken.length,idTokenSize:l.idToken.length}),l)).catch(l=>{throw this.activeSilentTokenRequests.delete(s),r.end({success:!1},l),l});return this.activeSilentTokenRequests.set(s,c),{...await c,state:t.state}}else return this.logger.verbose("acquireTokenSilent has been called previously, returning the result from the first call",n),r.discard(),{...await a,state:t.state}}async acquireTokenSilentAsync(t,n){const r=()=>this.trackPageVisibility(t.correlationId);this.performanceClient.addQueueMeasurement(Ie.AcquireTokenSilentAsync,t.correlationId),this.eventHandler.emitEvent(Pt.ACQUIRE_TOKEN_START,Et.Silent,t),t.correlationId&&this.performanceClient.incrementFields({visibilityChangeCount:0},t.correlationId),document.addEventListener("visibilitychange",r);const i=await at(UVt,Ie.InitializeSilentRequest,this.logger,this.performanceClient,t.correlationId)(t,n,this.config,this.performanceClient,this.logger),o=t.cacheLookupPolicy||Ga.Default;return this.acquireTokenSilentNoIframe(i,o).catch(async a=>{if(lWt(a,o))if(this.activeIframeRequest)if(o!==Ga.Skip){const[l,u]=this.activeIframeRequest;this.logger.verbose(`Iframe request is already in progress, awaiting resolution for request with correlationId: ${u}`,i.correlationId);const d=this.performanceClient.startMeasurement(Ie.AwaitConcurrentIframe,i.correlationId);d.add({awaitIframeCorrelationId:u});const f=await l;if(d.end({success:f}),f)return this.logger.verbose(`Parallel iframe request with correlationId: ${u}
1603 succeeded. Retrying cache and/or RT redemption`,i.correlationId),this.acquireTokenSilentNoIframe(i,o);throw this.logger.info(`Iframe request with correlationId: ${u} failed. Interaction is required.`),a}else return this.logger.warning("Another iframe request is currently in progress and CacheLookupPolicy is set to Skip. This may result in degraded performance and/or reliability for both calls. Please consider changing the CacheLookupPolicy to take advantage of request queuing and token cache.",i.correlationId),at(this.acquireTokenBySilentIframe.bind(this),Ie.AcquireTokenBySilentIframe,this.logger,this.performanceClient,i.correlationId)(i);else{let l;return this.activeIframeRequest=[new Promise(u=>{l=u}),i.correlationId],this.logger.verbose("Refresh token expired/invalid or CacheLookupPolicy is set to Skip, attempting acquire token by iframe.",i.correlationId),at(this.acquireTokenBySilentIframe.bind(this),Ie.AcquireTokenBySilentIframe,this.logger,this.performanceClient,i.correlationId)(i).then(u=>(l(!0),u)).catch(u=>{throw l(!1),u}).finally(()=>{this.activeIframeRequest=void 0})}else throw a}).then(a=>(this.eventHandler.emitEvent(Pt.ACQUIRE_TOKEN_SUCCESS,Et.Silent,a),t.correlationId&&this.performanceClient.addFields({fromCache:a.fromCache,isNativeBroker:a.fromNativeBroker},t.correlationId),a)).catch(a=>{throw this.eventHandler.emitEvent(Pt.ACQUIRE_TOKEN_FAILURE,Et.Silent,null,a),a}).finally(()=>{document.removeEventListener("visibilitychange",r)})}async acquireTokenSilentNoIframe(t,n){return nd.isNativeAvailable(this.config,this.logger,this.nativeExtensionProvider,t.authenticationScheme)&&t.account.nativeAccountId?(this.logger.verbose("acquireTokenSilent - attempting to acquire token from native platform"),this.acquireTokenNative(t,Br.acquireTokenSilent_silentFlow).catch(async r=>{throw r instanceof Qu&&H0(r)?(this.logger.verbose("acquireTokenSilent - native platform unavailable, falling back to web flow"),this.nativeExtensionProvider=void 0,Qe(Df)):r})):(this.logger.verbose("acquireTokenSilent - attempting to acquire token from web flow"),at(this.acquireTokenFromCache.bind(this),Ie.AcquireTokenFromCache,this.logger,this.performanceClient,t.correlationId)(t,n).catch(r=>{if(n===Ga.AccessToken)throw r;return this.eventHandler.emitEvent(Pt.ACQUIRE_TOKEN_NETWORK_START,Et.Silent,t),at(this.acquireTokenByRefreshToken.bind(this),Ie.AcquireTokenByRefreshToken,this.logger,this.performanceClient,t.correlationId)(t,n)}))}}function lWt(e,t){const n=!(e instanceof cu&&e.subError!==i4),r=e.errorCode===nc.INVALID_GRANT_ERROR||e.errorCode===Df,i=n&&r||e.errorCode===k3||e.errorCode===Vq,o=Vzt.includes(t);return i&&o}/*! @azure/msal-browser v3.30.0 2025-08-05 */async function uWt(e,t){const n=new Nv(e);return await n.initialize(),l4.createController(n,t)}/*! @azure/msal-browser v3.30.0 2025-08-05 */class lG{static async createPublicClientApplication(t){const n=await uWt(t);return new lG(t,n)}constructor(t,n){this.controller=n||new l4(new Nv(t))}async initialize(t){return this.controller.initialize(t)}async acquireTokenPopup(t){return this.controller.acquireTokenPopup(t)}acquireTokenRedirect(t){return this.controller.acquireTokenRedirect(t)}acquireTokenSilent(t){return this.controller.acquireTokenSilent(t)}acquireTokenByCode(t){return this.controller.acquireTokenByCode(t)}addEventCallback(t,n){return this.controller.addEventCallback(t,n)}removeEventCallback(t){return this.controller.removeEventCallback(t)}addPerformanceCallback(t){return this.controller.addPerformanceCallback(t)}removePerformanceCallback(t){return this.controller.removePerformanceCallback(t)}enableAccountStorageEvents(){this.controller.enableAccountStorageEvents()}disableAccountStorageEvents(){this.controller.disableAccountStorageEvents()}getAccount(t){return this.controller.getAccount(t)}getAccountByHomeId(t){return this.controller.getAccountByHomeId(t)}getAccountByLocalId(t){return this.controller.getAccountByLocalId(t)}getAccountByUsername(t){return this.controller.getAccountByUsername(t)}getAllAccounts(t){return this.controller.getAllAccounts(t)}handleRedirectPromise(t){return this.controller.handleRedirectPromise(t)}loginPopup(t){return this.controller.loginPopup(t)}loginRedirect(t){return this.controller.loginRedirect(t)}logout(t){return this.controller.logout(t)}logoutRedirect(t){return this.controller.logoutRedirect(t)}logoutPopup(t){return this.controller.logoutPopup(t)}ssoSilent(t){return this.controller.ssoSilent(t)}getTokenCache(){return this.controller.getTokenCache()}getLogger(){return this.controller.getLogger()}setLogger(t){this.controller.setLogger(t)}setActiveAccount(t){this.controller.setActiveAccount(t)}getActiveAccount(){return this.controller.getActiveAccount()}
1603initializeWrapperLibrary(t,n){return this.controller.initializeWrapperLibrary(t,n)}setNavigationClient(t){this.controller.setNavigationClient(t)}getConfiguration(){return this.controller.getConfiguration()}async hydrateCache(t,n){return this.controller.hydrateCache(t,n)}clearCache(t){return this.controller.clearCache(t)}}var Use;(function(e){e.GET="GET",e.PATCH="PATCH",e.POST="POST",e.PUT="PUT",e.DELETE="DELETE"})(Use||(Use={}));var Bse;(function(e){e[e.NONE=0]="NONE",e[e.REDIRECT_HANDLER_ENABLED=1]="REDIRECT_HANDLER_ENABLED",e[e.RETRY_HANDLER_ENABLED=2]="RETRY_HANDLER_ENABLED",e[e.AUTHENTICATION_HANDLER_ENABLED=4]="AUTHENTICATION_HANDLER_ENABLED"})(Bse||(Bse={}));var $se;(function(e){e[e.MANUAL=0]="MANUAL",e[e.RANDOM=1]="RANDOM"})($se||($se={}));var Hse;(function(e){e.ARRAYBUFFER="arraybuffer",e.BLOB="blob",e.DOCUMENT="document",e.JSON="json",e.RAW="raw",e.STREAM="stream",e.TEXT="text"})(Hse||(Hse={}));var zse;(function(e){e.TEXT_HTML="text/html",e.TEXT_XML="text/xml",e.APPLICATION_XML="application/xml",e.APPLICATION_XHTML="application/xhtml+xml"})(zse||(zse={}));var Vse;(function(e){e.TEXT_PLAIN="text/plain",e.APPLICATION_JSON="application/json"})(Vse||(Vse={}));var Wse;(function(e){e.DOCUMENT="^(text\\/(html|xml))|(application\\/(xml|xhtml\\+xml))$",e.IMAGE="^image\\/.+"})(Wse||(Wse={}));var ho;(function(e){e.InvalidParameter="InvalidParameter",e.InvalidConfiguration="InvalidConfiguration",e.InvalidCertificate="InvalidCertificate",e.InternalError="InternalError",e.ChannelNotSupported="ChannelNotSupported",e.FailedToRetrieveSsoToken="FailedToRetrieveSsoToken",e.FailedToProcessSsoHandler="FailedToProcessSsoHandler",e.CannotFindCommand="CannotFindCommand",e.FailedToRunSsoStep="FailedToRunSsoStep",e.FailedToRunDedupStep="FailedToRunDedupStep",e.SsoActivityHandlerIsUndefined="SsoActivityHandlerIsUndefined",e.RuntimeNotSupported="RuntimeNotSupported",e.ConsentFailed="ConsentFailed",e.UiRequiredError="UiRequiredError",e.TokenExpiredError="TokenExpiredError",e.ServiceError="ServiceError",e.FailedOperation="FailedOperation",e.InvalidResponse="InvalidResponse",e.IdentityTypeNotSupported="IdentityTypeNotSupported",e.AuthorizationInfoAlreadyExists="AuthorizationInfoAlreadyExists"})(ho||(ho={}));let Qr=class{};Qr.InvalidConfiguration="{0} in configuration is invalid: {1}.";Qr.ConfigurationNotExists="Configuration does not exist. {0}";Qr.ResourceConfigurationNotExists="{0} resource configuration does not exist.";Qr.MissingResourceConfiguration="Missing resource configuration with type: {0}, name: {1}.";Qr.AuthenticationConfigurationNotExists="Authentication configuration does not exist.";Qr.BrowserRuntimeNotSupported="{0} is not supported in browser.";Qr.NodejsRuntimeNotSupported="{0} is not supported in Node.";Qr.FailToAcquireTokenOnBehalfOfUser="Failed to acquire access token on behalf of user: {0}";Qr.OnlyMSTeamsChannelSupported="{0} is only supported in MS Teams Channel";Qr.FailedToProcessSsoHandler="Failed to process sso handler: {0}";Qr.FailedToRetrieveSsoToken="Failed to retrieve sso token, user failed to finish the AAD consent flow.";Qr.CannotFindCommand="Cannot find command: {0}";Qr.FailedToRunSsoStep="Failed to run dialog to retrieve sso token: {0}";Qr.FailedToRunDedupStep="Failed to run dialog to remove duplicated messages: {0}";Qr.SsoActivityHandlerIsNull="Sso command can only be used or added when sso activity handler is not undefined";Qr.IdentityTypeNotSupported="{0} identity is not supported in {1}";Qr.AuthorizationHeaderAlreadyExists="Authorization header already exists!";Qr.BasicCredentialAlreadyExists="Basic credential already exists!";Qr.EmptyParameter="Parameter {0} is empty";Qr.DuplicateHttpsOptionProperty="Axios HTTPS agent already defined value for property {0}";Qr.DuplicateApiKeyInHeader="The request already defined api key in request header with name {0}.";Qr.DuplicateApiKeyInQueryParam="The request already defined api key in query parameter with name {0}.";Qr.OnlySupportInQueryActivity="The handleMessageExtensionQueryWithToken only support in handleTeamsMessagingExtensionQuery with composeExtension/query type.";Qr.OnlySupportInLinkQueryActivity="The handleMessageExtensionLinkQueryWithSSO only support in handleTeamsAppBasedLinkQuery with composeExtension/queryLink type.";
1603class po extends Error{constructor(t,n){if(!n)return super(t),this;super(t),Object.setPrototypeOf(this,po.prototype),this.name=`${new.target.name}.${n}`,this.code=n}}var lp;(function(e){e[e.Verbose=0]="Verbose",e[e.Info=1]="Info",e[e.Warn=2]="Warn",e[e.Error=3]="Error"})(lp||(lp={}));class dWt{constructor(t,n){this.level=void 0,this.defaultLogger={verbose:console.debug,info:console.info,warn:console.warn,error:console.error},this.name=t,this.level=n}error(t){this.log(lp.Error,n=>n.error,t)}warn(t){this.log(lp.Warn,n=>n.warn,t)}info(t){this.log(lp.Info,n=>n.info,t)}verbose(t){this.log(lp.Verbose,n=>n.verbose,t)}log(t,n,r){if(r.trim()==="")return;const i=new Date().toUTCString();let o;this.name?o=`[${i}] : @microsoft/teamsfx - ${this.name} : ${lp[t]} - `:o=`[${i}] : @microsoft/teamsfx : ${lp[t]} - `;const s=`${o}${r}`;this.level!==void 0&&this.level<=t&&(this.customLogger?n(this.customLogger)(s):this.customLogFunction?this.customLogFunction(t,s):n(this.defaultLogger)(s))}}const fr=new dWt;function u4(e){try{const t=U$t(e);if(!t||!t.exp)throw new po("Decoded token is null or exp claim does not exists.",ho.InternalError);return t}catch(t){const n="Parse jwt token failed in node env with error: "+t.message;throw fr.error(n),new po(n,ho.InternalError)}}function fWt(e){if(!e){const r="SSO token is undefined.";throw fr.error(r),new po(r,ho.InvalidParameter)}const t=u4(e),n={displayName:t.name,objectId:t.oid,tenantId:t.tid,preferredUserName:""};return t.ver==="2.0"?n.preferredUserName=t.preferred_username:t.ver==="1.0"&&(n.preferredUserName=t.upn),n}function hWt(e){if(!e){const r="SSO token is undefined.";throw fr.error(r),new po(r,ho.InvalidParameter)}const t=u4(e);return{tid:t.tid,loginHint:t.ver==="2.0"?t.preferred_username:t.upn}}function pWt(e){try{const t=typeof e=="string"?JSON.parse(e):e;if(!t||!t.accessToken){const o="Get empty access token from Auth Code token response.";throw fr.error(o),new Error(o)}const n=t.accessToken,r=u4(n);if(r.ver!=="1.0"&&r.ver!=="2.0"){const o="SSO token is not valid with an unknown version: "+r.ver;throw fr.error(o),new Error(o)}return{token:n,expiresOnTimestamp:r.exp*1e3}}catch(t){const n="Parse access token failed from Auth Code token response in node env with error: "+t.message;throw fr.error(n),new po(n,ho.InternalError)}}function mWt(e,...t){const n=t;return e.replace(/{(\d+)}/g,function(r,i){return typeof n[i]<"u"?n[i]:r})}function qse(e){if(typeof e=="string"||e instanceof String||Array.isArray(e)&&e.length===0||Array.isArray(e)&&e.length>0&&e.every(n=>typeof n=="string"))return;const t="The type of scopes is not valid, it must be string or string array";throw fr.error(t),new po(t,ho.InvalidParameter)}const gWt=300*1e3,vWt=600,yWt=535;class bWt{constructor(t){fr.info("Create teams user credential"),this.config=this.loadAndValidateConfig(t),this.ssoToken=null,this.initialized=!1}async login(t,n){qse(t);const r=typeof t=="string"?t:t.join(" ");fr.info(`Popup login page to get user's access token with scopes: ${r}`),this.initialized||await this.init(n),await zr.app.initialize();let i;try{const s={url:`${this.config.initiateLoginEndpoint?this.config.initiateLoginEndpoint:""}?clientId=${this.config.clientId?this.config.clientId:""}&scope=${encodeURI(r)}&loginHint=${this.loginHint?this.loginHint:""}`,width:vWt,height:yWt};if(i=await zr.authentication.authenticate(s),!i){const a="Get empty authentication result from MSAL";throw fr.error(a),new po(a,ho.InternalError)}}catch(s){const a=`Consent failed for the scope ${r} with error: ${s.message}`;throw fr.error(a),new po(a,ho.ConsentFailed)}let o={};try{o=typeof i=="string"?JSON.parse(i):i}catch{const a="Failed to parse response to Json.";throw fr.error(a),new po(a,ho.InvalidResponse)}if(o.code){const a="Found auth code in response. Auth code is not support for current version of SDK. Please refer to the help link for how to fix the issue: https://aka.ms/teamsfx-auth-code-flow.";throw fr.error(a),new po(a,ho.InvalidResponse)}o.sessionStorage&&this.setSessionStorage(o.sessionStorage)}async getToken(t,n){var r;qse(t);const i=(r=n)===null||r===void 0?void 0:r.resources,o=await this.get
1603SSOToken(i),s=typeof t=="string"?t:t.join(" ");if(s==="")return fr.info("Get SSO token"),o;{fr.info("Get access token with scopes: "+s),this.initialized||await this.init(i);let a;const c=typeof t=="string"?t.split(" "):t,l=window.location.origin;try{const d=this.msalInstance.getAccountByUsername(this.loginHint),f={scopes:c,account:d??void 0,redirectUri:`${l}/blank-auth-end.html`};a=await this.msalInstance.acquireTokenSilent(f)}catch(d){const f=`Failed to call acquireTokenSilent. Reason: ${d==null?void 0:d.message}. `;fr.verbose(f)}if(!a)try{const d={scopes:c,loginHint:this.loginHint,redirectUri:`${l}/blank-auth-end.html`};a=await this.msalInstance.ssoSilent(d)}catch(d){const f=`Failed to call ssoSilent. Reason: ${d==null?void 0:d.message}. `;fr.verbose(f)}if(!a){const d="Failed to get access token cache silently, please login first: you need login first before get access token.";throw fr.error(d),new po(d,ho.UiRequiredError)}return pWt(a)}}async getUserInfo(t){fr.info("Get basic user info from SSO token");const n=await this.get
1603SSOToken(t);return fWt(n.token)}async init(t){const n=await this.getSSOToken(t),r=hWt(n.token);this.loginHint=r.loginHint,this.tid=r.tid;const i={auth:{clientId:this.config.clientId,authority:`https://login.microsoftonline.com/${this.tid}`},cache:{cacheLocation:"sessionStorage"}};this.msalInstance=new lG(i),await this.msalInstance.initialize(),this.initialized=!0}async getSSOToken(t){if(this.ssoToken&&this.ssoToken.expiresOnTimestamp-Date.now()>gWt)return fr.verbose("Get SSO token from memory cache"),this.ssoToken;const n={resources:t??[]};let r;try{await zr.app.initialize()}catch{const a="Initialize teams sdk failed due to not running inside Teams environment";throw fr.error(a),new po(a,ho.InternalError)}try{r=await zr.authentication.getAuthToken(n)}catch(s){const a="Get SSO token failed with error: "+s.message;throw fr.error(a),new po(a,ho.InternalError)}if(!r){const s="Get empty SSO token from Teams";throw fr.error(s),new po(s,ho.InternalError)}const i=u4(r);if(i.ver!=="1.0"&&i.ver!=="2.0"){const s="SSO token is not valid with an unknown version: "+i.ver;throw fr.error(s),new po(s,ho.InternalError)}const o={token:r,expiresOnTimestamp:i.exp*1e3};return this.ssoToken=o,o}loadAndValidateConfig(t){if(fr.verbose("Validate authentication configuration"),t.initiateLoginEndpoint&&t.clientId)return t;const n=[];t.initiateLoginEndpoint||n.push("initiateLoginEndpoint"),t.clientId||n.push("clientId");const r=mWt(Qr.InvalidConfiguration,n.join(", "),"undefined");throw fr.error(r),new po(r,ho.InvalidConfiguration)}setSessionStorage(t){try{Object.keys(t).forEach(r=>{sessionStorage.setItem(r,t[r])})}catch(n){const r=`Failed to set values in session storage. Error: ${n.message}`;throw fr.error(r),new po(r,ho.InternalError)}}}var Gse;(function(e){e[e.Header=0]="Header",e[e.QueryParams=1]="QueryParams"})(Gse||(Gse={}));var Kse;(function(e){e.User="User",e.App="Application"})(Kse||(Kse={}));var Yse;(function(e){e.Channel="Channel",e.Group="Group",e.Person="Person"})(Yse||(Yse={}));var Qse;(function(e){e[e.ReplaceForInteractor=0]="ReplaceForInteractor",e[e.ReplaceForAll=1]="ReplaceForAll",e[e.NewForAll=2]="NewForAll"})(Qse||(Qse={}));var Xse;(function(e){e[e.BadRequest=400]="BadRequest",e[e.InternalServerError=500]="InternalServerError"})(Xse||(Xse={}));var Jse;(function(e){e[e.Person=1]="Person",e[e.Group=2]="Group",e[e.Channel=4]="Channel",e[e.All=7]="All"})(Jse||(Jse={}));var Zse;(function(e){e[e.Person=1]="Person",e[e.Group=2]="Group",e[e.Channel=4]="Channel",e[e.All=7]="All"})(Zse||(Zse={}));function wWt(e){var t,n=D$t({})[0],r=F$t(function(){return Promise.resolve(new bWt(e))}),i=r.data,o=r.error,s=r.loading;return Fc(Fc({},n),{teamsUserCredential:i,error:o,loading:s||((t=n.loading)!==null&&t!==void 0?t:!0)})}const SWt="_RemoveTab_dbulq_1",_Wt={RemoveTab:SWt};function CWt(){const e=_h(),t=Cn(),n=Gt.useRemoveBot(t);return b.useEffect(()=>{const r=async i=>{await n({roomId:e}),i.notifySuccess()};zr.pages.config.registerOnRemoveHandler(r),zr.pages.config.setValidityState(!0)},[n,e]),h.jsxs("div",{className:_Wt.RemoveTab,children:[h.jsx("h2",{children:"Remove Langfinity About You're about to remove your tab..."}),h.jsx("p",{children:"Are you sure you want to remove this tab? You'll lose access to real-time translation for your meetings. You can always add the Langfinity translation tab again later if needed."})]})}const EWt="_ContactSales_1qt5n_1",TWt="_LinkAndDivider_1qt5n_31",kWt="_Divider_1qt5n_38",FD={ContactSales:EWt,LinkAndDivider:TWt,Divider:kWt};function xWt(){return h.jsx("div",{className:FD.ContactSales,children:h.jsxs("div",{children:[h.jsx("h2",{children:"AI-powered, real-time translation in voice and captions for 50+ languages for your Teams meetings, webinars, and town halls"}),h.jsx(eU,{}),h.jsxs("div",{children:[h.jsx("h3",{children:"Users must have an active Langfinity account to access this integration."}),h.jsx("h3",{children:"Please contact us to create a Teams integration account"})]}),h.jsx(qe,{onClick:()=>{var e;(e=window.open("https://calendly.com/d/cs8h-bpy-tzc/langfinity-intro","_blank"))==null||e.focus()},children:"Contact us"}),h.jsxs("div",{className:FD.LinkAndDivider,children:[h.jsx("div",{className:FD.Divider}),h.jsx("a",{href:"https://langfinity.ai",target:"_blank",rel:"noreferrer",children:"About Langfinity"})]})]})})}const AWt="_InviteBotHelpDialog_5a4wp_1",IWt={InviteBotHelpDialog:AWt};function RWt(){return h.jsxs("div",{className:IWt.InviteBotHelpDialog,children:[h.jsx("h2",{children:'At the top of your Teams window, click "More" and select "Meeting Info"'}),h.jsx(Ef,{src:"invite-bot-help/screenshot-1.png"}),h.jsx("h2",{children:'Then click "Copy Join Info"'}),h.jsx(Ef,{src:"invite-bot-help/screenshot-2.png"}),h.jsx(qe,{onClick:()=>zr.dialog.url.submit(),children:"Got it"})]})}const PWt="_SidePanel_184g1_1",OWt="_UnauthNotInMeeting_184g1_5",NWt="_Languages_184g1_12",MWt="_InviteBot_184g1_43",DWt="_Translator_184g1_51",LWt="_Captions_184g1_77",FWt="_Toolbar_184g1_84",jWt="_InviteBotOptions_184g1_93",UWt="_InviteBotHelp_184g1_101",BWt="_PreCallConfigLanguages_184g1_125",$Wt="_HeaderUpgradeNow_184g1_147",Xi={SidePanel:PWt,UnauthNotInMeeting:OWt,Languages:NWt,InviteBot:MWt,Translator:DWt,Captions:LWt,Toolbar:FWt,InviteBotOptions:jWt,InviteBotHelp:UWt,PreC
1603allConfigLanguages:BWt,HeaderUpgradeNow:$Wt},HWt=()=>{const[e,t]=b.useState({}),[n,r]=b.useState(),i=bh();return b.useEffect(()=>{const o=(s,a)=>{if(!a.metadata)return;const c=JSON.parse(a.metadata);c.participant_type==="speaker"&&c.language!=="autodetect"&&t(l=>({...l,[a.sid]:c.language}))};return i.on("participantMetadataChanged",o),()=>{i.off("participantMetadataChanged",o)}},[i]),b.useEffect(()=>{const o=new TextDecoder,s=async(a,c,l,u)=>{if(u==="autodetect_source_language"){const d=JSON.parse(o.decode(a));t(f=>({...f,[d.participant_id]:d.language}));return}if(u==="dominant_speaker_changed"){const d=JSON.parse(o.decode(a));r(d.sid)}};return i.on("dataReceived",s),()=>{i.off("dataReceived",s)}},[i]),n?e[n]:void 0},gAe=e=>{var Y,X;ME(),jE(),brt(),MH();const t=iw(),n=I$t(),[r]=DE({teamsContext:t}),[i,o]=Jt(),{localParticipant:s}=wh(),a=20,c=10,l=4,u=600,d=24,f=a*2+d*l+c*(l-1),[p,g]=b.useState(!1),m=Pb(),y=b.createRef();b.useEffect(()=>{let Z;const G=async()=>{if(!y.current)return;const Q=window.devicePixelRatio;y.current.width=Math.floor(u*Q),y.current.height=Math.floor(f*Q);const q=y.current.getContext("2d");if(!q)return;q.scale(Q,Q),q.fillStyle="#101010",q.fillRect(0,0,y.current.width,y.current.height);const z=Object.values(r).filter(ae=>ae.identity!==s.identity).slice(-l),ue=m&&a1(m)||e.room.languages[0];if(!ue)return;const ge=z.filter(ae=>!!ae.translations[ue]).map(ae=>`${ae.name.split(" ")[0]||ae.name}:	${ae.translations[ue]}`);q.fillStyle="white",q.font=`${d}px sans-serif`,q.textAlign="left",q.textBaseline="bottom",q.textRendering="optimizeLegibility",ge.reduce((ae,j)=>{let B="";const re=j.split(" ");for(const oe of re)if(q.measureText(oe).width>u-a*2)for(const J of oe)q.measureText(B+J).width>u-a*2?(ae.push(B),B=J):B+=J;else q.measureText(B+oe).width>u-a*2?(ae.push(B.trim()),B=oe+" "):B+=oe+" ";return B.length>0&&ae.push(B.trim()),ae},[]).slice(-l).forEach((ae,j)=>{q.fillStyle="white",q.fillText(ae,a,a+(j+1)*d+j*c)}),Z=requestAnimationFrame(G)};return G(),()=>{Z&&cancelAnimationFrame(Z)}},[y,r,m,d,a,u,f,s.identity,e.room.languages]);const v=b.useCallback(()=>{if(!y.current)return;
1603const Z=y.current.captureStream(),G=document.createElement("video");G.hidden=!0,G.muted=!0,G.autoplay=!0,G.srcObject=Z;const Q=()=>{Z.getTracks().forEach(q=>q.stop()),G.remove(),g(!1)};G.onloadedmetadata=async()=>{G.onleavepictureinpicture=()=>{Q()};try{await G.requestPictureInPicture(),g(!0)}catch{Q()}},G.play()},[y]),w=Ake();b.useEffect(()=>{var Z;(Z=e.room)!=null&&Z.default_voice_on&&o(G=>({...G,metadata:{...G.metadata,voice:G.metadata.selectedLanguage!=="autodetect"?"ai":void 0}}))},[(Y=e.room)==null?void 0:Y.default_voice_on,o]),b.useEffect(()=>{o(Z=>{var G;return{...Z,metadata:{...Z.metadata,selectedLanguage:e.room.languages.includes(Z.metadata.selectedLanguage)?Z.metadata.selectedLanguage:e.room.languages.includes("en-US")?"en-US":e.room.languages[0],participantType:e.participantType??"viewer",name:e.participantName,botParticipantId:(G=t==null?void 0:t.user)==null?void 0:G.id}}})},[o,(X=t==null?void 0:t.user)==null?void 0:X.id,e.room.languages,e.participantType,e.participantName]);const S=Ike(),C=sO(e.organization),E=gm.useIsUpgradeNowVisible(e.organization,i.auth,C),T=HWt(),x=b.useRef(i.metadata.voice),O=b.useRef(T),A=b.useRef(m);x.current=i.metadata.voice,O.current=T,A.current=m;const L=b.useRef(!1),U=b.useRef(!1),I=b.useCallback(()=>{if(L.current){U.current=!0;return}L.current=!0,zr.meeting.getIncomingClientAudioState((Z,G)=>{if(Z){console.error(Z),L.current=!1;return}const Q=()=>{L.current=!1,U.current&&(U.current=!1,I())},q=!!x.current&&!!O.current&&O.current!==A.current;if(G===q){Q();return}zr.meeting.toggleIncomingClientAudio(z=>{z&&console.error(z),Q()})})},[]);b.useEffect(()=>{w&&I()},[w,i.metadata.voice,T,m,I]);const F=bh(),[P,W]=b.useState();b.useEffect(()=>{var ue,ge,ae,j;const Z=B=>B?B.trim().toLowerCase():void 0,G=Z((ue=t==null?void 0:t.user)==null?void 0:ue.id),Q=Z((ge=t==null?void 0:t.user)==null?void 0:ge.displayName),q=Z((ae=t==null?void 0:t.user)==null?void 0:ae.userPrincipalName)||Z((j=t==null?void 0:t.user)==null?void 0:j.loginHint),z=()=>{if(!G&&!Q&&!q){W(void 0);return}const B=Array.from(F.remoteParticipants.values()).flatMap(re=>{if(!re.metadata)return[];try{const oe=JSON.parse(re.metadata);return oe.participant_type!=="speaker"||oe.source!=="recall"||oe.recall_participant_id===void 0?[]:!!G&&Z(oe.teams_aad_id)===G||!!q&&Z(oe.email)===q||!!Q&&Z(oe.name)===Q?[{identity:re.identity,sid:re.sid,recallParticipantId:oe.recall_participant_id}]:[]}catch{return[]}});W(B.length===1?B[0]:void 0)};return z(),F.on("participantConnected",z),F.on("participantDisconnected",z),F.on("participantMetadataChanged",z),()=>{F.off("participantConnected",z),F.off("participantDisconnected",z),F.off("participantMetadataChanged",z)}},[F,t==null?void 0:t.user]),b.useEffect(()=>{P&&s.publishData(new TextEncoder().encode(JSON.stringify({participant_id:P.sid,language:i.metadata.selectedLanguage})),{reliable:!0,topic:"update_speaker_language"}).catch(Z=>console.error("Failed to update speaker language",Z))},[P,i.metadata.selectedLanguage,s]),b.useEffect(()=>{P&&s.publishData(new TextEncoder().encode(JSON.stringify({participant_id:P.sid,ai_voice_gender:i.metadata.aiVoiceGender,ai_voice_short_name:i.metadata.aiVoice})),{reliable:!0,topic:"update_speaker_voice_avatar"}).catch(Z=>console.error("Failed to update speaker voice avatar",Z))},[P,i.metadata.aiVoiceGender,i.metadata.aiVoice,s]),b.useEffect(()=>{if(!P)return;const Z=new TextDecoder,G=(Q,q,z,ue)=>{if(ue!=="autodetect_source_language")return;const ge=JSON.parse(Z.decode(Q));ge.participant_id===P.sid&&o(ae=>({...ae,metadata:{...ae.metadata,detectedLanguage:ge.language}}))};return F.on("dataReceived",G),()=>{F.off("dataReceived",G)}},[F,P,o]);const ee=b.useCallback(()=>{zr.dialog.url.open({url:`${window.location.origin}/#/teams/settings/${e.room.id}`,size:{width:600,height:400}})},[e.room]);return h.jsxs(h.Fragment,{children:[h.jsx(gm,{organization:e.organization,className:Xi.HeaderUpgradeNow,goToCalendly:!0}),!E&&S==="adhoc"&&h.jsx("h3",{className:Xi.HeaderUpgradeNow,style:{textAlign:"center"},children:"To stop real-time translation, please close the tab."}),h.jsxs("div",{className:Xi.Translator,children:[h.jsx("canvas",{style:{display:"none"},ref:y,width:u,height:f}),h.jsx(k$,{}),h.jsx("div",{className:Xi.Captions,children:h.jsx(k1,{renderLanguage:m})}),h.jsxs("div",{className:Xi.Toolbar,children:[h.jsx(dh,{languages:[...e.organization.autodetect_enabled?["autodetect"]:[],...e.room.languages]}),e.organization.voice_translation_enabled&&h.jsx(v3,{hideText:!1,text:"Voice",teams:!0}),!n&&h.jsxs(qe,{color:p?"primary":"gray",backgroundColor:"black",borderColor:"transparent",onClick:v,children:[h.jsx(vke,{}),"Overlay"]}),h.jsx(qe,{color:"white",backgroundColor:"black",borderColor:"transparent",onClick:ee,children:h.jsx(Vv,{})})]})]})]})};function zWt(e){const[t,n]=b.useState(!1),r=Ake(),i=Cn(),{token:o}=Mb(i),[s,a]=b.useState(),c=s==="waiting_room"||s==="in_call",l=Gt.useGetBotStatus(i),u=Gt.useInviteBot(i);b.useEffect(()=>{const v=async()=>{const S=await l({roomId:e.room.id});a(S.data.status)},w=setInterval(()=>{c||v()},2e3);return v(),()=>{clearInterval(w)}},[l,e.room.id,c]);const[d,f]=b.useState(e.room.meeting_url||""),p=Gt.useUpdateRoom(i);b.useEffect(()=>{if(d===(e.room.meeting_url||""))return;const v=setTimeout(()=>{p({id:e.room.id,meeting_url:d}).catch(w=>console.error("Failed to save meeting link",w))},800);return()=>clearTimeout(v)},[d,e.room.id,e.room.meeting_url,p]);const g=b.useCallback(v=>{const S=new DOMParser().parseFromString(v,"text/html");
1603let C=S.getElementById("meet_invite_block.action.join_link");if(C||(C=Array.from(S.getElementsByTagName("a")).find(T=>T.href.includes("meetup-join"))),!C)throw new Error("Failed to parse Teams join info!");return C.href},[]),m=b.useCallback(()=>{zr.dialog.url.open({url:`${window.location.origin}/#/teams/invite-bot-help`,size:{width:600,height:400}})},[]),[y]=Jt();return s===void 0?h.jsx(Sn,{}):t?h.jsx("div",{className:Xi.SidePanel,children:h.jsxs("div",{className:Xi.InviteBot,children:[h.jsx(Sn,{inline:!0,style:{marginTop:"24px"}}),h.jsx("h1",{children:"Your AI translator is joining the meeting"}),h.jsx("h2",{children:"This might take a few seconds. The real-time translation will appear on this tab once it joins."})]})}):r?s==="joining"?h.jsx("div",{className:Xi.SidePanel,children:h.jsxs("div",{className:Xi.InviteBot,children:[h.jsx(Sn,{inline:!0,style:{marginTop:"24px"}}),h.jsx("h1",{children:"Your AI translator is joining the meeting"}),h.jsx("h2",{children:"This might take a few seconds. The real-time translation will appear on this tab once it joins."})]})}):c?h.jsx("div",{className:Xi.SidePanel,children:h.jsx(vb,{audio:!1,video:!1,connect:!0,token:o,connectOptions:{autoSubscribe:!1}
1603,serverUrl:"wss://byrdhouse-prod-gy1t323x.livekit.cloud",children:h.jsx(gAe,{room:e.room,organization:e.organization})})}):h.jsx(h.Fragment,{children:h.jsx("div",{className:Xi.SidePanel,children:h.jsxs("div",{className:Xi.InviteBot,children:[h.jsx("h1",{children:"Invite your AI translator to the meeting"}),h.jsxs("div",{className:Xi.InviteBotOptions,children:[h.jsx("h2",{children:"Copy and paste the join info link below"}),h.jsx("input",{type:"url",placeholder:"Enter your meeting URL here",value:d,onPaste:v=>{if(v.clipboardData.types.includes("text/html")){v.preventDefault();const w=v.clipboardData.getData("text/html"),S=g(w);S&&f(S)}},onChange:v=>{const w=v.target.value;if(w.includes("<")){const S=g(w);S&&f(S)}else f(w)}}),h.jsx("div",{className:Xi.InviteBotHelp,onClick:()=>m(),children:"Where can I find this?"})]}),h.jsxs("div",{className:Xi.InviteBotOptions,children:[h.jsx("h2",{style:{fontWeight:600},children:"Languages"}),h.jsx("div",{className:Xi.PreCallConfigLanguages,children:e.room.languages.sort((v,w)=>v==="autodetect"?1:w==="autodetect"?-1:0).map(v=>h.jsx("div",{children:`${eu(v)} ${Kr(v)}`},v))})]}),h.jsx(qe,{disabled:!d.length||e.organization.translation_seconds_remaining<=0,onClick:d.length?async()=>{try{n(!0),await u({roomId:e.room.id,meetingUrl:d}),a("joining")}finally{setTimeout(()=>{n(!1)},2*1e3)}}:void 0,children:"Invite AI translator"}),h.jsx(gm,{organization:e.organization,goToCalendly:!0})]})})}):y.auth?h.jsx(h.Fragment,{children:h.jsxs(Sz,{children:[h.jsx(Ji,{hideUserNav:!0,disableLogoClick:!0}),h.jsx(g3,{})]})}):h.jsxs(h.Fragment,{children:[h.jsx(Ji,{hideUserNav:!0,disableLogoClick:!0}),h.jsxs("div",{className:Xi.UnauthNotInMeeting,children:[h.jsx("h2",{children:"Please join the call to experience real-time translation"}),h.jsxs("div",{className:Xi.Languages,children:[h.jsx("label",{children:"Languages"}),e.room.languages.map(v=>h.jsxs("div",{children:[eu(v)," ",Kr(v)]},v))]})]})]})}function VWt(){const{room:e,organization:t,loading:n}=Rr();return!e||!t||n?h.jsx(Sn,{}):h.jsx(zWt,{room:e,organization:t})}const WWt="_PermissionError_y1trc_1",qWt={PermissionError:WWt};function GWt(){const[e,t]=b.useState("loading");return b.useEffect(()=>{navigator.permissions.query({name:"microphone"}).then(n=>{t(n.state),n.onchange=()=>{t(n.state)}}).catch(()=>{navigator.mediaDevices.getUserMedia({audio:!0}).then(n=>{n.getTracks().forEach(r=>r.stop()),t("granted")}).catch(()=>t("denied"))})},[]),e}function KWt(){return h.jsxs("div",{className:qWt.PermissionError,children:[h.jsx("h1",{children:"Microphone access required"}),h.jsx("h2",{children:"Search for and open the Langfinity Teams app"}),h.jsx(Ef,{src:"media-permissions-denied/screenshot-1.png"}),h.jsx(Ef,{src:"media-permissions-denied/screenshot-2.png"}),h.jsx(Ef,{src:"media-permissions-denied/screenshot-3.png"}),h.jsx("h2",{children:'In the top right corner of the app, click "..." then "App permissions"'}),h.jsx(Ef,{src:"media-permissions-denied/screenshot-4.png"}),h.jsx("h2",{children:"Enable media permissions"}),h.jsx(Ef,{src:"media-permissions-denied/screenshot-5.png"})]})}function YWt(){var d,f;const{room:e,organization:t,loading:n}=Rr(),r=Cn(),{token:i}=Mb(r),[o]=Jt(),s=iw(),{teamsUserCredential:a}=b.useContext(wP),c=GWt(),[l,u]=b.useState();return b.useEffect(()=>{a==null||a.getUserInfo().then(p=>{u(p.displayName)}).catch(()=>{})},[a]),!e||!t||n||c==="loading"?h.jsx(Sn,{}):c==="denied"?h.jsx("div",{className:Xi.SidePanel,children:h.jsx(KWt,{})}):h.jsx("div",{className:Xi.SidePanel,children:h.jsx(vb,{audio:!0,video:!1,connect:!0,token:i,connectOptions:{autoSubscribe:!1}
1603,serverUrl:"wss://byrdhouse-prod-gy1t323x.livekit.cloud",children:h.jsx(gAe,{room:e,organization:t,participantType:"speaker",participantName:((d=s==null?void 0:s.user)==null?void 0:d.displayName)||l||((f=o.auth)==null?void 0:f.name)||"Guest"})})})}function QWt(){const e=Ike(),{organization:t}=Rr();return t!=null&&t.teams_adhoc_enabled&&e==="adhoc"?h.jsx(YWt,{}):h.jsx(VWt,{})}function XWt(e){const{loading:t}=Pye();return t?h.jsx(Sn,{}):h.jsx(h.Fragment,{children:e.children})}function JWt(){const{loading:e,teamsUserCredential:t}=wWt({initiateLoginEndpoint:"https://teams.byrdhouseapp.com/auth-start.html",clientId:"2929c6be-9edf-4378-a8d2-7ecf9ae6e47b"});return e?h.jsx(Sn,{}):h.jsx(wP.Provider,{value:{teamsUserCredential:t},children:h.jsx(XWt,{children:h.jsx(MBe,{children:h.jsxs(gE,{children:[h.jsx(nn,{path:"/tab",element:h.jsxs(h.Fragment,{children:[h.jsx(Ji,{hideUserNav:!0,disableLogoClick:!0}),h.jsx(xWt,{})]})}),h.jsx(nn,{path:"/configure",element:h.jsx(h.Fragment,{children:h.jsx(Sz,{children:h.jsx(N$t,{})})})}),h.jsx(nn,{path:"/teams/room/:id",element:h.jsx(h.Fragment,{children:h.jsx(Cp,{children:h.jsx(QWt,{})})})}),h.jsx(nn,{path:"/teams/settings/:id",element:h.jsx(h.Fragment,{children:h.jsx(Cp,{children:h.jsx(d_e,{hiddenCategories:["audio","video","text-translation"],teams:!0})})})}),h.jsx(nn,{path:"/teams/invite-bot-help",element:h.jsx(RWt,{})}),h.jsx(nn,{path:"/teams/room/:id/remove",element:h.jsx(CWt,{})})]})})})})}function ZWt(e,t){const n={};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}const eqt=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,tqt=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,nqt={};function eae(e,t){return(nqt.jsx?tqt:eqt).test(e)}const rqt=/[ \t\n\f\r]/g;function iqt(e){return typeof e=="object"?e.type==="text"?tae(e.value):!1:tae(e)}function tae(e){return e.replace(rqt,"")===""}class g2{constructor(t,n,r){this.property=t,this.normal=n,r&&(this.space=r)}}g2.prototype.property={};g2.prototype.normal={};g2.prototype.space=null;function vAe(e,t){const n={},r={};let i=-1;for(;++i<e.length;)Object.assign(n,e[i].property),Object.assign(r,e[i].normal);return new g2(n,r,t)}function xU(e){return e.toLowerCase()}class pl{constructor(t,n){this.property=t,this.attribute=n}}pl.prototype.space=null;pl.prototype.boolean=!1;pl.prototype.booleanish=!1;pl.prototype.overloadedBoolean=!1;pl.prototype.number=!1;pl.prototype.commaSeparated=!1;pl.prototype.spaceSeparated=!1;pl.prototype.commaOrSpaceSeparated=!1;pl.prototype.mustUseProperty=!1;pl.prototype.defined=!1;let oqt=0;const tn=r0(),Qi=r0(),yAe=r0(),rt=r0(),Cr=r0(),qy=r0(),Va=r0();function r0(){return 2**++oqt}const AU=Object.freeze(Object.defineProperty({__proto__:null,boolean:tn,booleanish:Qi,commaOrSpaceSeparated:Va,commaSeparated:qy,number:rt,overloadedBoolean:yAe,spaceSeparated:Cr},Symbol.toStringTag,{value:"Module"})),jD=Object.keys(AU);class uG extends pl{constructor(t,n,r,i){let o=-1;if(super(t,n),nae(this,"space",i),typeof r=="number")for(;++o<jD.length;){const s=jD[o];nae(this,jD[o],(r&AU[s])===AU[s])}}}uG.prototype.defined=!0;function nae(e,t,n){n&&(e[t]=n)}const sqt={}.hasOwnProperty;function aw(e){const t={},n={};let r;for(r in e.properties)if(sqt.call(e.properties,r)){const i=e.properties[r],o=new uG(r,e.transform(e.attributes||{},r),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(o.mustUseProperty=!0),t[r]=o,n[xU(r)]=r,n[xU(o.attribute)]=r}return new g2(t,n,e.space)}const bAe=aw({space:"xlink",transform(e,t){return"xlink:"+t.slice(5).toLowerCase()},properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}}),wAe=aw({space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()},properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function SAe(e,t){return t in e?e[t]:t}function _Ae(e,t){return SAe(e,t.toLowerCase())}const CAe=aw({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:_Ae,properties:{xmlns:null,xmlnsXLink:null}}),EAe=aw({transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()},properties:{ariaActiveDescendant:null,ariaAtomic:Qi,ariaAutoComplete:null,ariaBusy:Qi,ariaChecked:Qi,ariaColCount:rt,ariaColIndex:rt,ariaColSpan:rt,ariaControl
1603s:Cr,ariaCurrent:null,ariaDescribedBy:Cr,ariaDetails:null,ariaDisabled:Qi,ariaDropEffect:Cr,ariaErrorMessage:null,ariaExpanded:Qi,ariaFlowTo:Cr,ariaGrabbed:Qi,ariaHasPopup:null,ariaHidden:Qi,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:Cr,ariaLevel:rt,ariaLive:null,ariaModal:Qi,ariaMultiLine:Qi,ariaMultiSelectable:Qi,ariaOrientation:null,ariaOwns:Cr,ariaPlaceholder:null,ariaPosInSet:rt,ariaPressed:Qi,ariaReadOnly:Qi,ariaRelevant:null,ariaRequired:Qi,ariaRoleDescription:Cr,ariaRowCount:rt,ariaRowIndex:rt,ariaRowSpan:rt,ariaSelected:Qi,ariaSetSize:rt,ariaSort:null,ariaValueMax:rt,ariaValueMin:rt,ariaValueNow:rt,ariaValueText:null,role:null}}),aqt=aw({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:_Ae,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:qy,acceptCharset:Cr,accessKey:Cr,action:null,allow:null,allowFullScreen:tn,allowPaymentRequest:tn,allowUserMedia:tn,alt:null,as:null,async:tn,autoCapitalize:null,autoComplete:Cr,autoFocus:tn,autoPlay:tn,blocking:Cr,capture:null,charSet:null,checked:tn,cite:null,className:Cr,cols:rt,colSpan:null,content:null,contentEditable:Qi,controls:tn,controlsList:Cr,coords:rt|qy,crossOrigin:null,data:null,dateTime:null,decoding:null,default:tn,defer:tn,dir:null,dirName:null,disabled:tn,download:yAe,draggable:Qi,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:tn,formTarget:null,headers:Cr,height:rt,hidden:tn,high:rt,href:null,hrefLang:null,htmlFor:Cr,httpEquiv:Cr,id:null,imageSizes:null,imageSrcSet:null,inert:tn,inputMode:null,integrity:null,is:null,isMap:tn,itemId:null,itemProp:Cr,itemRef:Cr,itemScope:tn,itemType:Cr,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:tn,low:rt,manifest:null,max:null,maxLength:rt,media:null,method:null,min:null,minLength:rt,multiple:tn,muted:tn,name:null,nonce:null,noModule:tn,noValidate:tn,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:tn,optimum:rt,pattern:null,ping:Cr,placeholder:null,playsInline:tn,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:tn,referrerPolicy:null,rel:Cr,required:tn,reversed:tn,rows:rt,rowSpan:rt,sandbox:Cr,scope:null,scoped:tn,seamless:tn,selected:tn,shadowRootClonable:tn,shadowRootDelegatesFocus:tn,shadowRootMode:null,shape:null,size:rt,sizes:null,slot:null,span:rt,spellCheck:Qi,src:null,srcDoc:null,srcLang:null,srcSet:null,start:rt,step:null,style:null,tabIndex:rt,target:null,title:null,translate:null,type:null,typeMustMatch:tn,useMap:null,value:Qi,width:rt,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:Cr,axis:null,background:null,bgColor:null,border:rt,borderColor:null,bottomMargin:rt,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:tn,declare:tn,event:null,face:null,frame:null,frameBorder:null,hSpace:rt,leftMargin:rt,link:null,longDesc:null,lowSrc:null,marginHeight:rt,marginWidth:rt,noResize:tn,noHref:tn,noShade:tn,noWrap:tn,object:null,profile:null,prompt:null,rev:null,rightMargin:rt,rules:null,scheme:null,scrolling:Qi,standby:null,summary:null,text:null,topMargin:rt,valueType:null,version:null,vAlign:null,vLink:null,vSpace:rt,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:tn,disableRemotePlayback:tn,prefix:null,property:null,results:rt,security:null,unselectable:null}}),cqt=aw({space:"svg",attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRen
1603dering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},transform:SAe,properties:{about:Va,accentHeight:rt,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:rt,amplitude:rt,arabicForm:null,ascent:rt,attributeName:null,attributeType:null,azimuth:rt,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:rt,by:null,calcMode:null,capHeight:rt,className:Cr,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRen
vendor: 58,735 bytes, lines 1603-1604
1603dering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:rt,diffuseConstant:rt,direction:null,display:null,dur:null,divisor:rt,dominantBaseline:null,download:tn,dx:null,dy:null,edgeMode:null,editable:null,elevation:rt,enableBackground:null,end:null,event:null,exponent:rt,externalResourcesRequired:null,fill:null,fillOpacity:rt,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:qy,g2:qy,glyphName:qy,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:rt,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:rt,horizOriginX:rt,horizOriginY:rt,id:null,ideographic:rt,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:rt,k:rt,k1:rt,k2:rt,k3:rt,k4:rt,kernelMatrix:Va,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:rt,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:rt,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:rt,overlineThickness:rt,paintOrder:null,panose1:null,path:null,pathLength:rt,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:Cr,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:rt,pointsAtY:rt,pointsAtZ:rt,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Va,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Va,rev:Va,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Va,requiredFeatures:Va,requiredFonts:Va,requiredFormats:Va,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:rt,specularExponent:rt,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:rt,strikethroughThickness:rt,string:null,stroke:null,strokeDashArray:Va,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:rt,strokeOpacity:rt,strokeWidth:null,style:null,surfaceScale:rt,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Va,tabIndex:rt,tableValues:null,target:null,targetX:rt,targetY:rt,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Va,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:rt,underlineThickness:rt,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:rt,values:null,vAlphabetic:rt,vMathematical:rt,vectorEffect:null,vHanging:rt,vIdeographic:rt,version:null,vertAdvY:rt,vertOriginX:rt,vertOriginY:rt,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:rt,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null}}),lqt=/^data[-\w.:]+$/i,rae=/-[a-z]/g,uqt=/[A-Z]/g;function dqt(e,t){const n=xU(t);let r=t,i=pl;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&lqt.test(t)){if(t.charAt(4)==="-"){const o=t.slice(5).replace(rae,hqt);r="data"+o.charAt(0).toUpperCase()+o.slice(1)}else{const o=t.slice(4);if(!rae.test(o)){let s=o.replace(uqt,fqt);s.charAt(0)!=="-"&&(s="-"+s),t="data"+s}}i=uG}return new i(r,t)}function fqt(e){return"-"+e.toLowerCase()}function hqt(e){return e.charAt(1).toUpperCase()}const pqt={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"},mqt=vAe([wAe,bAe,CAe,EAe,aqt],"html"),dG=vAe([wAe,bAe,CAe,EAe,cqt],"svg");function gqt(e){return e.join(" ").trim()}var TAe={},iae=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,vqt=/\n/g,yqt=/^\s*/,bqt=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,wqt=/^:\s*/,Sqt=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,_qt=/^[;\s]*/,Cqt=/^\s+|\s+$/g,Eqt=`
1604`,oae="/",sae="*",hg="",Tqt="comment",kqt="declaration",xqt=function(e,t){if(typeof e!="string")throw new TypeError("First argument must be a string");if(!e)return[];t=t||{};var n=1,r=1;function i(g){var m=g.match(vqt);m&&(n+=m.length);var y=g.lastIndexOf(Eqt);r=~y?g.length-y:r+g.length}function o(){var g={line:n,column:r};return function(m){return m.position=new s(g),l(),m}}function s(g){this.start=g,this.end={line:n,column:r},this.source=t.source}s.prototype.content=e;function a(g){var m=new Error(t.source+":"+n+":"+r+": "+g);if(m.reason=g,m.filename=t.source,m.line=n,m.column=r,m.source=e,!t.silent)throw m}function c(g){var m=g.exec(e);if(m){var y=m[0];return i(y),e=e.slice(y.length),m}}function l(){c(yqt)}function u(g){var m;for(g=g||[];m=d();)m!==!1&&g.push(m);return g}function d(){var g=o();if(!(oae!=e.charAt(0)||sae!=e.charAt(1))){for(var m=2;hg!=e.charAt(m)&&(sae!=e.charAt(m)||oae!=e.charAt(m+1));)++m;if(m+=2,hg===e.charAt(m-1))return a("End of comment missing");var y=e.slice(2,m-2);return r+=2,i(y),e=e.slice(m),r+=2,g({type:Tqt,comment:y})}}function f(){var g=o(),m=c(bqt);if(m){if(d(),!c(wqt))return a("property missing ':'");var y=c(Sqt),v=g({type:kqt,property:aae(m[0].replace(iae,hg)),value:y?aae(y[0].replace(iae,hg)):hg});return c(_qt),v}}function p(){var g=[];u(g);for(var m;m=f();)m!==!1&&(g.push(m),u(g));return g}return l(),p()};function aae(e){return e?e.replace(Cqt,hg):hg}var Aqt=Tf&&Tf.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(TAe,"__esModule",{value:!0});var cae=TAe.default=Rqt,Iqt=Aqt(xqt);function Rqt(e,t){var n=null;if(!e||typeof e!="string")return n;var r=(0,Iqt.default)(e),i=typeof t=="function";return r.forEach(function(o){if(o.type==="declaration"){var s=o.property,a=o.value;i?t(s,a,o):a&&(n=n||{},n[s]=a)}}),n}const Pqt=cae.default||cae,kAe=xAe("end"),fG=xAe("start");function xAe(e){return t;function t(n){const r=n&&n.position&&n.position[e]||{};if(typeof r.line=="number"&&r.line>0&&typeof r.column=="number"&&r.column>0)return{line:r.line,column:r.column,offset:typeof r.offset=="number"&&r.offset>-1?r.offset:void 0}}}function Oqt(e){const t=fG(e),n=kAe(e);if(t&&n)return{start:t,end:n}}function __(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?lae(e.position):"start"in e||"end"in e?lae(e):"line"in e||"column"in e?IU(e):""}function IU(e){return uae(e&&e.line)+":"+uae(e&&e.column)}function lae(e){return IU(e&&e.start)+"-"+IU(e&&e.end)}function uae(e){return e&&typeof e=="number"?e:1}class As extends Error{constructor(t,n,r){super(),typeof n=="string"&&(r=n,n=void 0);let i="",o={},s=!1;if(n&&("line"in n&&"column"in n?o={place:n}:"start"in n&&"end"in n?o={place:n}:"type"in n?o={ancestors:[n],place:n.position}:o={...n}),typeof t=="string"?i=t:!o.cause&&t&&(s=!0,i=t.message,o.cause=t),!o.ruleId&&!o.source&&typeof r=="string"){const c=r.indexOf(":");c===-1?o.ruleId=r:(o.source=r.slice(0,c),o.ruleId=r.slice(c+1))}if(!o.place&&o.ancestors&&o.ancestors){const c=o.ancestors[o.ancestors.length-1];c&&(o.place=c.position)}const a=o.place&&"start"in o.place?o.place.start:o.place;this.ancestors=o.ancestors||void 0,this.cause=o.cause||void 0,this.column=a?a.column:void 0,this.fatal=void 0,this.file,this.message=i,this.line=a?a.line:void 0,this.name=__(o.place)||"1:1",this.place=o.place||void 0,this.reason=this.message,this.ruleId=o.ruleId||void 0,this.source=o.source||void 0,this.stack=s&&o.cause&&typeof o.cause.stack=="string"?o.cause.stack:"",this.actual,this.expected,this.note,this.url}}As.prototype.file="";As.prototype.name="";As.prototype.reason="";As.prototype.message="";As.prototype.stack="";As.prototype.column=void 0;As.prototype.line=void 0;As.prototype.ancestors=void 0;As.prototype.cause=void 0;As.prototype.fatal=void 0;As.prototype.place=void 0;As.prototype.ruleId=void 0;As.prototype.source=void 0;const hG={}.hasOwnProperty,Nqt=new Map,Mqt=/[A-Z]/g,Dqt=/-([a-z])/g,Lqt=new Set(["table","tbody","thead","tfoot","tr"]),Fqt=new Set(["td","th"]),AAe="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function jqt(e,t){if(!t||t.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const n=t.filePath||void 0;let r;if(t.development){if(typeof t.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");r=qqt(n,t.jsxDEV)}else{if(typeof t.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof t.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");r=Wqt(n,t.jsx,t.jsxs)}const i={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:r,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:n,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:t.passKeys!==!1,passNode:t.passNode||!1,schema:t.space==="svg"?dG:mqt,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},o=IAe(i,e,void 0);return o&&typeof o!="string"?o:i.create(e,i.Fragment,{children:o||void 0},void 0)}function IAe(e,t,n){if(t.type==="element")return Uqt(e,t,n);if(t.type==="mdxFlowExpression"||t.type==="mdxTextExpression")return Bqt(e,t);if(t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement")return Hqt(e,t,n);if(t.type==="mdxjsEsm")return $qt(e,t);if(t.type==="root")return zqt(e,t,n);if(t.type==="text")return Vqt(e,t)}function Uqt(e,t,n){const r=e.schema;let i=r;t.tagName.toLowerCase()==="svg"&&r.space==="html"&&(i=dG,e.schema=i),e.ancestors.push(t);const o=PAe(e,t.tagName,!1),s=Gqt(e,t);let a=mG(e,t);return Lqt.has(t.tagName)&&(a=a.filter(function(c){return typeof c=="string"?!iqt(c):!0})),RAe(e,s,o,t),pG(s,a),e.ancestors.pop(),e.schema=r,e.create(t,o,s,n)}function Bqt(e,t){if(t.data&&t.data.estree&&e.evaluater){const r=t.data.estree.body[0];return r.type,e.evaluater.evaluateExpression(r.expression)}KC(e,t.position)}function $qt(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);KC(e,t.position)}function Hqt(e,t,n){const r=e.schema;let i=r;t.name==="svg"&&r.space==="html"&&(i=dG,e.schema=i),e.ancestors.push(t);const o=t.name===null?e.Fragment:PAe(e,t.name,!0),s=Kqt(e,t),a=mG(e,t);return RAe(e,s,o,t),pG(s,a),e.ancestors.pop(),e.schema=r,e.create(t,o,s,n)}function zqt(e,t,n){const r={};return pG(r,mG(e,t)),e.create(t,e.Fragment,r,n)}function Vqt(e,t){return t.value}function RAe(e,t,n,r){typeof n!="string"&&n!==e.Fragment&&e.passNode&&(t.node=r)}function pG(e,t){if(t.length>0){const n=t.length>1?t:t[0];n&&(e.children=n)}}function Wqt(e,t,n){return r;function r(i,o,s,a){const l=Array.isArray(s.children)?n:t;return a?l(o,s,a):l(o,s)}}function qqt(e,t){return n;function n(r,i,o,s){const a=Array.isArray(o.children),c=fG(r);return t(i,o,s,a,{columnNumber:c?c.column-1:void 0,fileName:e,lineNumber:c?c.line:void 0},void 0)}}function Gqt(e,t){const n={};let r,i;for(i in t.properties)if(i!=="children"&&hG.call(t.properties,i)){const o=Yqt(e,i,t.properties[i]);if(o){const[s,a]=o;e.tableCellAlignToStyle&&s==="align"&&typeof a=="string"&&Fqt.has(t.tagName)?r=a:n[s]=a}}if(r){const o=n.style||(n.style={});o[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=r}return n}function Kqt(e,t){const n={};for(const r of t.attributes)if(r.type==="mdxJsxExpressionAttribute")if(r.data&&r.data.estree&&e.evaluater){const o=r.data.estree.body[0];o.type;const s=o.expression;s.type;const a=s.properties[0];a.type,Object.assign(n,e.evaluater.evaluateExpression(a.argument))}else KC(e,t.position);else{const i=r.name;let o;if(r.value&&typeof r.value=="object")if(r.value.data&&r.value.data.estree&&e.evaluater){const a=r.value.data.estree.body[0];a.type,o=e.evaluater.evaluateExpression(a.expression)}else KC(e,t.position);else o=r.value===null?!0:r.value;n[i]=o}return n}function mG(e,t){const n=[];let r=-1;const i=e.passKeys?new Map:Nqt;for(;++r<t.children.length;){const o=t.children[r];let s;if(e.passKeys){const c=o.type==="element"?o.tagName:o.type==="mdxJsxFlowElement"||o.type==="mdxJsxTextElement"?o.name:void 0;if(c){const l=i.get(c)||0;s=c+"-"+l,i.set(c,l+1)}}const a=IAe(e,o,s);a!==void 0&&n.push(a)}return n}function Yqt(e,t,n){const r=dqt(e.schema,t);if(!(n==null||typeof n=="number"&&Number.isNaN(n))){if(Array.isArray(n)&&(n=r.commaSeparated?ZWt(n):gqt(n)),r.property==="style"){let i=typeof n=="object"?n:Qqt(e,String(n));return e.stylePropertyNameCase==="css"&&(i=Xqt(i)),["style",i]}return[e.elementAttributeNameCase==="react"&&r.space?pqt[r.property]||r.property:r.attribute,n]}}function Qqt(e,t){const n={};try{Pqt(t,r)}catch(i){if(!e.ignoreInvalidStyle){const o=i,s=new As("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:o,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw s.file=e.filePath||void 0,s.url=AAe+"#cannot-parse-style-attribute",s}}return n;function r(i,o){let s=i;s.slice(0,2)!=="--"&&(s.slice(0,4)==="-ms-"&&(s="ms-"+s.slice(4)),s=s.replace(Dqt,Zqt)),n[s]=o}}function PAe(e,t,n){let r;if(!n)r={type:"Literal",value:t};else if(t.includes(".")){const i=t.split(".");let o=-1,s;for(;++o<i.length;){const a=eae(i[o])?{type:"Identifier",name:i[o]}:{type:"Literal",value:i[o]};s=s?{type:"MemberExpression",object:s,property:a,computed:!!(o&&a.type==="Literal"),optional:!1}:a}r=s}else r=eae(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};if(r.type==="Literal"){const i=r.value;return hG.call(e.components,i)?e.components[i]:i}if(e.evaluater)return e.evaluater.evaluateExpression(r);KC(e)}function KC(e,t){const n=new As("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:t,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw n.file=e.filePath||void 0,n.url=AAe+"#cannot-handle-mdx-estrees-without-createevaluater",n}function Xqt(e){const t={};let n;for(n in e)hG.call(e,n)&&(t[Jqt(n)]=e[n]);return t}function Jqt(e){let t=e.replace(Mqt,eGt);return t.slice(0,3)==="ms-"&&(t="-"+t),t}function Zqt(e,t){return t.toUpperCase()}function eGt(e){return"-"+e.toLowerCase()}const UD={action:["form"],cite:["blockquote","del","ins","q"],data:["object"],formAction:["button","input"],href:["a","area","base","link"],icon:["menuitem"],itemId:null,manifest:["html"],ping:["a","area"],poster:["video"],src:["audio","embed","iframe","img","input","script","source","track","video"]},tGt={};function nGt(e,t){const n=tGt,r=typeof n.includeImageAlt=="boolean"?n.includeImageAlt:!0,i=typeof n.includeHtml=="boolean"?n.includeHtml:!0;return OAe(e,r,i)}function OAe(e,t,n){if(rGt(e)){if("value"in e)return e.type==="html"&&!n?"":e.value;if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return dae(e.children,t,n)}return Array.isArray(e)?dae(e,t,n):""}function dae(e,t,n){const r=[];let i=-1;for(;++i<e.length;)r[i]=OAe(e[i],t,n);return r.join("")}function rGt(e){return!!(e&&typeof e=="object")}const fae=document.createElement("i");function gG(e){const t="&"+e+";";fae.innerHTML=t;const n=fae.textContent;return n.charCodeAt(n.length-1)===59&&e!=="semi"||n===t?!1:n}function Rd(e,t,n,r){const i=e.length;let o=0,s;if(t<0?t=-t>i?0:i+t:t=t>i?i:t,n=n>0?n:0,r.length<1e4)s=Array.from(r),s.unshift(t,n),e.splice(...s);else for(n&&e.splice(t,n);o<r.length;)s=r.slice(o,o+1e4),s.unshift(t,0),e.splice(...s),o+=1e4,t+=1e4}function Lc(e,t){return e.length>0?(Rd(e,e.length,0,t),e):t}const hae={}.hasOwnProperty;function iGt(e){const t={};let n=-1;for(;++n<e.length;)oGt(t,e[n]);return t}function oGt(e,t){let n;for(n in t){const i=(hae.call(e,n)?e[n]:void 0)||(e[n]={}),o=t[n];let s;if(o)for(s in o){hae.call(i,s)||(i[s]=[]);const a=o[s];sGt(i[s],Array.isArray(a)?a:a?[a]:[])}}}function sGt(e,t){let n=-1;const r=[];for(;++n<t.length;)(t[n].add==="after"?e:r).push(t[n]);Rd(e,0,0,r)}function NAe(e,t){const n=Number.parseInt(e,t);return n<9||n===11||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||(n&65535)===65535||(n&65535)===65534||n>1114111?"�":String.fromCodePoint(n)}function Gy(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const Xu=Hm(/[A-Za-z]/),ac=Hm(/[\dA-Za-z]/),aGt=Hm(/[#-'*+\--9=?A-Z^-~]/);function RU(e){return e!==null&&(e<32||e===127)}const PU=Hm(/\d/),cGt=Hm(/[\dA-Fa-f]/),lGt=Hm(/[!-/:-@[-`{-~]/);function jt(e){return e!==null&&e<-2}function Ra(e){return e!==null&&(e<0||e===32)}function Wn(e){return e===-2||e===-1||e===32}const uGt=Hm(new RegExp("\\p{P}|\\p{S}","u")),dGt=Hm(/\s/);function Hm(e){return t;function t(n){return n!==null&&n>-1&&e.test(String.fromCharCode(n))}}function cw(e){const t=[];let n=-1,r=0,i=0;for(;++n<e.length;){const o=e.charCodeAt(n);let s="";if(o===37&&ac(e.charCodeAt(n+1))&&ac(e.charCodeAt(n+2)))i=2;else if(o<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(o))||(s=String.fromCharCode(o));else if(o>55295&&o<57344){const a=e.charCodeAt(n+1);o<56320&&a>56319&&a<57344?(s=String.fromCharCode(o,a),i=1):s="�"}else s=String.fromCharCode(o);s&&(t.push(e.slice(r,n),encodeURIComponent(s)),r=n+i+1,s=""),i&&(n+=i,i=0)}return t.join("")+e.slice(r)}function kr(e,t,n,r){const i=r?r-1:Number.POSITIVE_INFINITY;let o=0;return s;function s(c){return Wn(c)?(e.enter(n),a(c)):t(c)}function a(c){return Wn(c)&&o++<i?(e.consume(c),a):(e.exit(n),t(c))}}const fGt={tokenize:hGt};function hGt(e){const t=e.attempt(this.parser.constructs.contentInitial,r,i);let n;return t;function r(a){if(a===null){e.consume(a);return}return e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),kr(e,t,"linePrefix")}function i(a){return e.enter("paragraph"),o(a)}function o(a){const c=e.enter("chunkText",{contentType:"text",previous:n});return n&&(n.next=c),n=c,s(a)}function s(a){if(a===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(a);return}return jt(a)?(e.consume(a),e.exit("chunkText"),o):(e.consume(a),s)}}const pGt={tokenize:mGt},pae={tokenize:gGt};function mGt(e){const t=this,n=[];let r=0,i,o,s;return a;function a(S){if(r<n.length){const C=n[r];return t.containerState=C[1],e.attempt(C[0].continuation,c,l)(S)}return l(S)}function c(S){if(r++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,i&&w();const C=t.events.length;let E=C,T;for(;E--;)if(t.events[E][0]==="exit"&&t.events[E][1].type==="chunkFlow"){T=t.events[E][1].end;break}v(r);let x=C;for(;x<t.events.length;)t.events[x][1].end={...T},x++;return Rd(t.events,E+1,0,t.events.slice(C)),t.events.length=x,l(S)}return a(S)}function l(S){if(r===n.length){if(!i)return f(S);if(i.currentConstruct&&i.currentConstruct.concrete)return g(S);t.interrupt=!!(i.currentConstruct&&!i._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(pae,u,d)(S)}function u(S){return i&&w(),v(r),f(S)}function d(S){return t.parser.lazy[t.now().line]=r!==n.length,s=t.now().offset,g(S)}function f(S){return t.containerState={},e.attempt(pae,p,g)(S)}function p(S){return r++,n.push([t.currentConstruct,t.containerState]),f(S)}function g(S){if(S===null){i&&w(),v(0),e.consume(S);return}return i=i||t.parser.flow(t.now()),e.enter("chunkFlow",{_tokenizer:i,contentType:"flow",previous:o}),m(S)}function m(S){if(S===null){y(e.exit("chunkFlow"),!0),v(0),e.consume(S);return}return jt(S)?(e.consume(S),y(e.exit("chunkFlow")),r=0,t.interrupt=void 0,a):(e.consume(S),m)}function y(S,C){const E=t.sliceStream(S);if(C&&E.push(null),S.previous=o,o&&(o.next=S),o=S,i.defineSkip(S.start),i.write(E),t.parser.lazy[S.start.line]){let T=i.events.length;for(;T--;)if(i.events[T][1].start.offset<s&&(!i.events[T][1].end||i.events[T][1].end.offset>s))return;const x=t.events.length;let O=x,A,L;for(;O--;)if(t.events[O][0]==="exit"&&t.events[O][1].type==="chunkFlow"){if(A){L=t.events[O][1].end;break}A=!0}for(v(r),T=x;T<t.events.length;)t.events[T][1].end={...L},T++;Rd(t.events,O+1,0,t.events.slice(x)),t.events.length=T}}function v(S){let C=n.length;for(;C-- >S;){const E=n[C];t.containerState=E[1],E[0].exit.call(t,e)}n.length=S}function w(){i.write([null]),o=void 0,i=void 0,t.containerState._closeFlow=void 0}}function gGt(e,t,n){return kr(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function mae(e){if(e===null||Ra(e)||dGt(e))return 1;if(uGt(e))return 2}function vG(e,t,n){const r=[];let i=-1;for(;++i<e.length;){const o=e[i].resolveAll;o&&!r.includes(o)&&(t=o(t,n),r.push(o))}return t}const OU={name:"attention",resolveAll:vGt,tokenize:yGt};function vGt(e,t){let n=-1,r,i,o,s,a,c,l,u;for(;++n<e.length;)if(e[n][0]==="enter"&&e[n][1].type==="attentionSequence"&&e[n][1]._close){for(r=n;r--;)if(e[r][0]==="exit"&&e[r][1].type==="attentionSequence"&&e[r][1]._open&&t.sliceSerialize(e[r][1]).charCodeAt(0)===t.sliceSerialize(e[n][1]).charCodeAt(0)){if((e[r][1]._close||e[n][1]._open)&&(e[n][1].end.offset-e[n][1].start.offset)%3&&!((e[r][1].end.offset-e[r][1].start.offset+e[n][1].end.offset-e[n][1].start.offset)%3))continue;c=e[r][1].end.offset-e[r][1].start.offset>1&&e[n][1].end.offset-e[n][1].start.offset>1?2:1;const d={...e[r][1].end},f={...e[n][1].start};gae(d,-c),gae(f,c),s={type:c>1?"strongSequence":"emphasisSequence",start:d,end:{...e[r][1].end}},a={type:c>1?"strongSequence":"emphasisSequence",start:{...e[n][1].start},end:f},o={type:c>1?"strongText":"emphasisText",start:{...e[r][1].end},end:{...e[n][1].start}},i={type:c>1?"strong":"emphasis",start:{...s.start},end:{...a.end}},e[r][1].end={...s.start},e[n][1].start={...a.end},l=[],e[r][1].end.offset-e[r][1].start.offset&&(l=Lc(l,[["enter",e[r][1],t],["exit",e[r][1],t]])),l=Lc(l,[["enter",i,t],["enter",s,t],["exit",s,t],["enter",o,t]]),l=Lc(l,vG(t.parser.constructs.insideSpan.null,e.slice(r+1,n),t)),l=Lc(l,[["exit",o,t],["enter",a,t],["exit",a,t],["exit",i,t]]),e[n][1].end.offset-e[n][1].start.offset?(u=2,l=Lc(l,[["enter",e[n][1],t],["exit",e[n][1],t]])):u=0,Rd(e,r-1,n-r+3,l),n=r+l.length-u-2;break}}for(n=-1;++n<e.length;)e[n][1].type==="attentionSequence"&&(e[n][1].type="data");return e}function yGt(e,t){const n=this.parser.constructs.attentionMarkers.null,r=this.previous,i=mae(r);let o;return s;function s(c){return o=c,e.enter("attentionSequence"),a(c)}function a(c){if(c===o)return e.consume(c),a;const l=e.exit("attentionSequence"),u=mae(c),d=!u||u===2&&i||n.includes(c),f=!i||i===2&&u||n.includes(r);return l._open=!!(o===42?d:d&&(i||!f)),l._close=!!(o===42?f:f&&(u||!d)),t(c)}}function gae(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const bGt={name:"autolink",tokenize:wGt};function wGt(e,t,n){let r=0;return i;function i(p){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(p),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),o}function o(p){return Xu(p)?(e.consume(p),s):p===64?n(p):l(p)}function s(p){return p===43||p===45||p===46||ac(p)?(r=1,a(p)):l(p)}function a(p){return p===58?(e.consume(p),r=0,c):(p===43||p===45||p===46||ac(p))&&r++<32?(e.consume(p),a):(r=0,l(p))}function c(p){return p===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(p),e.exit("autolinkMarker"),e.exit("autolink"),t):p===null||p===32||p===60||RU(p)?n(p):(e.consume(p),c)}function l(p){return p===64?(e.consume(p),u):aGt(p)?(e.consume(p),l):n(p)}function u(p){return ac(p)?d(p):n(p)}function d(p){return p===46?(e.consume(p),r=0,u):p===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(p),e.exit("autolinkMarker"),e.exit("autolink"),t):f(p)}function f(p){if((p===45||ac(p))&&r++<63){const g=p===45?f:d;return e.consume(p),g}return n(p)}}const d4={partial:!0,tokenize:SGt};function SGt(e,t,n){return r;function r(o){return Wn(o)?kr(e,i,"linePrefix")(o):i(o)}function i(o){return o===null||jt(o)?t(o):n(o)}}const MAe={continuation:{tokenize:CGt},exit:EGt,name:"blockQuote",tokenize:_Gt};function _Gt(e,t,n){const r=this;return i;function i(s){if(s===62){const a=r.containerState;return a.open||(e.enter("blockQuote",{_container:!0}),a.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(s),e.exit("blockQuoteMarker"),o}return n(s)}function o(s){return Wn(s)?(e.enter("blockQuotePrefixWhitespace"),e.consume(s),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(s))}}function CGt(e,t,n){const r=this;return i;function i(s){return Wn(s)?kr(e,o,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(s):o(s)}function o(s){return e.attempt(MAe,t,n)(s)}}function EGt(e){e.exit("blockQuote")}const DAe={name:"characterEscape",tokenize:TGt};function TGt(e,t,n){return r;function r(o){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(o),e.exit("escapeMarker"),i}function i(o){return lGt(o)?(e.enter("characterEscapeValue"),e.consume(o),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(o)}}const LAe={name:"characterReference",tokenize:kGt};function kGt(e,t,n){const r=this;let i=0,o,s;return a;function a(d){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(d),e.exit("characterReferenceMarker"),c}function c(d){return d===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(d),e.exit("characterReferenceMarkerNumeric"),l):(e.enter("characterReferenceValue"),o=31,s=ac,u(d))}function l(d){return d===88||d===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(d),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),o=6,s=cGt,u):(e.enter("characterReferenceValue"),o=7,s=PU,u(d))}function u(d){if(d===59&&i){const f=e.exit("characterReferenceValue");return s===ac&&!gG(r.sliceSerialize(f))?n(d):(e.enter("characterReferenceMarker"),e.consume(d),e.exit("characterReferenceMarker"),e.exit("characterReference"),t)}return s(d)&&i++<o?(e.consume(d),u):n(d)}}const vae={partial:!0,tokenize:AGt},yae={concrete:!0,name:"codeFenced",tokenize:xGt};function xGt(e,t,n){const r=this,i={partial:!0,tokenize:E};let o=0,s=0,a;return c;function c(T){return l(T)}function l(T){const x=r.events[r.events.length-1];return o=x&&x[1].type==="linePrefix"?x[2].sliceSerialize(x[1],!0).length:0,a=T,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),u(T)}function u(T){return T===a?(s++,e.consume(T),u):s<3?n(T):(e.exit("codeFencedFenceSequence"),Wn(T)?kr(e,d,"whitespace")(T):d(T))}function d(T){return T===null||jt(T)?(e.exit("codeFencedFence"),r.interrupt?t(T):e.check(vae,m,C)(T)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),f(T))}function f(T){return T===null||jt(T)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),d(T)):Wn(T)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),kr(e,p,"whitespace")(T)):T===96&&T===a?n(T):(e.consume(T),f)}function p(T){return T===null||jt(T)?d(T):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),g(T))}function g(T){return T===null||jt(T)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),d(T)):T===96&&T===a?n(T):(e.consume(T),g)}function m(T){return e.attempt(i,C,y)(T)}function y(T){return e.enter("lineEnding"),e.consume(T),e.exit("lineEnding"),v}function v(T){return o>0&&Wn(T)?kr(e,w,"linePrefix",o+1)(T):w(T)}function w(T){return T===null||jt(T)?e.check(vae,m,C)(T):(e.enter("codeFlowValue"),S(T))}function S(T){return T===null||jt(T)?(e.exit("codeFlowValue"),w(T)):(e.consume(T),S)}function C(T){return e.exit("codeFenced"),t(T)}function E(T,x,O){let A=0;return L;function L(W){return T.enter("lineEnding"),T.consume(W),T.exit("lineEnding"),U}function U(W){return T.enter("codeFencedFence"),Wn(W)?kr(T,I,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(W):I(W)}function I(W){return W===a?(T.enter("codeFencedFenceSequence"),F(W)):O(W)}function F(W){return W===a?(A++,T.consume(W),F):A>=s?(T.exit("codeFencedFenceSequence"),Wn(W)?kr(T,P,"whitespace")(W):P(W)):O(W)}function P(W){return W===null||jt(W)?(T.exit("codeFencedFence"),x(W)):O(W)}}}function AGt(e,t,n){const r=this;return i;function i(s){return s===null?n(s):(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),o)}function o(s){return r.parser.lazy[r.now().line]?n(s):t(s)}}const BD={name:"codeIndented",tokenize:RGt},IGt={partial:!0,tokenize:PGt};function RGt(e,t,n){const r=this;return i;function i(l){return e.enter("codeIndented"),kr(e,o,"linePrefix",5)(l)}function o(l){const u=r.events[r.events.length-1];return u&&u[1].type==="linePrefix"&&u[2].sliceSerialize(u[1],!0).length>=4?s(l):n(l)}function s(l){return l===null?c(l):jt(l)?e.attempt(IGt,s,c)(l):(e.enter("codeFlowValue"),a(l))}function a(l){return l===null||jt(l)?(e.exit("codeFlowValue"),s(l)):(e.consume(l),a)}function c(l){return e.exit("codeIndented"),t(l)}}function PGt(e,t,n){const r=this;return i;function i(s){return r.parser.lazy[r.now().line]?n(s):jt(s)?(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),i):kr(e,o,"linePrefix",5)(s)}function o(s){const a=r.events[r.events.length-1];return a&&a[1].type==="linePrefix"&&a[2].sliceSerialize(a[1],!0).length>=4?t(s):jt(s)?i(s):n(s)}}const OGt={name:"codeText",previous:MGt,resolve:NGt,tokenize:DGt};function NGt(e){let t=e.length-4,n=3,r,i;if((e[n][1].type==="lineEnding"||e[n][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(r=n;++r<t;)if(e[r][1].type==="codeTextData"){e[n][1].type="codeTextPadding",e[t][1].type="codeTextPadding",n+=2,t-=2;break}}for(r=n-1,t++;++r<=t;)i===void 0?r!==t&&e[r][1].type!=="lineEnding"&&(i=r):(r===t||e[r][1].type==="lineEnding")&&(e[i][1].type="codeTextData",r!==i+2&&(e[i][1].end=e[r-1][1].end,e.splice(i+2,r-i-2),t-=r-i-2,r=i+2),i=void 0);return e}function MGt(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function DGt(e,t,n){let r=0,i,o;return s;function s(d){return e.enter("codeText"),e.enter("codeTextSequence"),a(d)}function a(d){return d===96?(e.consume(d),r++,a):(e.exit("codeTextSequence"),c(d))}function c(d){return d===null?n(d):d===32?(e.enter("space"),e.consume(d),e.exit("space"),c):d===96?(o=e.enter("codeTextSequence"),i=0,u(d)):jt(d)?(e.enter("lineEnding"),e.consume(d),e.exit("lineEnding"),c):(e.enter("codeTextData"),l(d))}function l(d){return d===null||d===32||d===96||jt(d)?(e.exit("codeTextData"),c(d)):(e.consume(d),l)}function u(d){return d===96?(e.consume(d),i++,u):i===r?(e.exit("codeTextSequence"),e.exit("codeText"),t(d)):(o.type="codeTextData",l(d))}}class LGt{constructor(t){this.left=t?[...t]:[],this.right=[]}get(t){if(t<0||t>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+t+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return t<this.left.length?this.left[t]:this.right[this.right.length-t+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(t,n){const r=n??Number.POSITIVE_INFINITY;return r<this.left.length?this.left.slice(t,r):t>this.left.length?this.right.slice(this.right.length-r+this.left.length,this.right.length-t+this.left.length).reverse():this.left.slice(t).concat(this.right.slice(this.right.length-r+this.left.length).reverse())}splice(t,n,r){const i=n||0;this.setCursor(Math.trunc(t));const o=this.right.splice(this.right.length-i,Number.POSITIVE_INFINITY);return r&&cS(this.left,r),o.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(t){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(t)}pushMany(t){this.setCursor(Number.POSITIVE_INFINITY),cS(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),cS(this.right,t.reverse())}setCursor(t){if(!(t===this.left.length||t>this.left.length&&this.right.length===0||t<0&&this.left.length===0))if(t<this.left.length){const n=this.left.splice(t,Number.POSITIVE_INFINITY);cS(this.right,n.reverse())}else{const n=this.right.splice(this.left.length+this.right.length-t,Number.POSITIVE_INFINITY);cS(this.left,n.reverse())}}}function cS(e,t){let n=0;if(t.length<1e4)e.push(...t);else for(;n<t.length;)e.push(...t.slice(n,n+1e4)),n+=1e4}function FAe(e){const t={};let n=-1,r,i,o,s,a,c,l;const u=new LGt(e);for(;++n<u.length;){for(;n in t;)n=t[n];if(r=u.get(n),n&&r[1].type==="chunkFlow"&&u.get(n-1)[1].type==="listItemPrefix"&&(c=r[1]._tokenizer.events,o=0,o<c.length&&c[o][1].type==="lineEndingBlank"&&(o+=2),o<c.length&&c[o][1].type==="content"))for(;++o<c.length&&c[o][1].type!=="content";)c[o][1].type==="chunkText"&&(c[o][1]._isInFirstContentOfListItem=!0,o++);if(r[0]==="enter")r[1].contentType&&(Object.assign(t,FGt(u,n)),n=t[n],l=!0);else if(r[1]._container){for(o=n,i=void 0;o--&&(s=u.get(o),s[1].type==="lineEnding"||s[1].type==="lineEndingBlank");)s[0]==="enter"&&(i&&(u.get(i)[1].type="lineEndingBlank"),s[1].type="lineEnding",i=o);i&&(r[1].end={...u.get(i)[1].start},a=u.slice(i,n),a.unshift(r),u.splice(i,n-i+1,a))}}return Rd(e,0,Number.POSITIVE_INFINITY,u.slice(0)),!l}function FGt(e,t){const n=e.get(t)[1],r=e.get(t)[2];let i=t-1;const o=[],s=n._tokenizer||r.parser[n.contentType](n.start),a=s.events,c=[],l={};let u,d,f=-1,p=n,g=0,m=0;const y=[m];for(;p;){for(;e.get(++i)[1]!==p;);o.push(i),p._tokenizer||(u=r.sliceStream(p),p.next||u.push(null),d&&s.defineSkip(p.start),p._isInFirstContentOfListItem&&(s._gfmTasklistFirstContentOfListItem=!0),s.write(u),p._isInFirstContentOfListItem&&(s._gfmTasklistFirstContentOfListItem=void 0)),d=p,p=p.next}for(p=n;++f<a.length;)a[f][0]==="exit"&&a[f-1][0]==="enter"&&a[f][1].type===a[f-1][1].type&&a[f][1].start.line!==a[f][1].end.line&&(m=f+1,y.push(m),p._tokenizer=void 0,p.previous=void 0,p=p.next);for(s.events=[],p?(p._tokenizer=void 0,p.previous=void 0):y.pop(),f=y.length;f--;){const v=a.slice(y[f],y[f+1]),w=o.pop();c.push([w,w+v.length-1]),e.splice(w,2,v)}for(c.reverse(),f=-1;++f<c.length;)l[g+c[f][0]]=g+c[f][1],g+=c[f][1]-c[f][0]-1;return l}const jGt={resolve:BGt,tokenize:$Gt},UGt={partial:!0,tokenize:HGt};function BGt(e){return FAe(e),e}function $Gt(e,t){let n;return r;function r(a){return e.enter("content"),n=e.enter("chunkContent",{contentType:"content"}),i(a)}function i(a){return a===null?o(a):jt(a)?e.check(UGt,s,o)(a):(e.consume(a),i)}function o(a){return e.exit("chunkContent"),e.exit("content"),t(a)}function s(a){return e.consume(a),e.exit("chunkContent"),n.next=e.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,i}}function HGt(e,t,n){const r=this;return i;function i(s){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),kr(e,o,"linePrefix")}function o(s){if(s===null||jt(s))return n(s);const a=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&a&&a[1].type==="linePrefix"&&a[2].sliceSerialize(a[1],!0).length>=4?t(s):e.interrupt(r.parser.constructs.flow,n,t)(s)}}function jAe(e,t,n,r,i,o,s,a,c){const l=c||Number.POSITIVE_INFINITY;let u=0;return d;function d(v){return v===60?(e.enter(r),e.enter(i),e.enter(o),e.consume(v),e.exit(o),f):v===null||v===32||v===41||RU(v)?n(v):(e.enter(r),e.enter(s),e.enter(a),e.enter("chunkString",{contentType:"string"}),m(v))}function f(v){return v===62?(e.enter(o),e.consume(v),e.exit(o),e.exit(i),e.exit(r),t):(e.enter(a),e.enter("chunkString",{contentType:"string"}),p(v))}function p(v){return v===62?(e.exit("chunkString"),e.exit(a),f(v)):v===null||v===60||jt(v)?n(v):(e.consume(v),v===92?g:p)}function g(v){return v===60||v===62||v===92?(e.consume(v),p):p(v)}function m(v){return!u&&(v===null||v===41||Ra(v))?(e.exit("chunkString"),e.exit(a),e.exit(s),e.exit(r),t(v)):u<l&&v===40?(e.consume(v),u++,m):v===41?(e.consume(v),u--,m):v===null||v===32||v===40||RU(v)?n(v):(e.consume(v),v===92?y:m)}function y(v){return v===40||v===41||v===92?(e.consume(v),m):m(v)}}function UAe(e,t,n,r,i,o){const s=this;let a=0,c;return l;function l(p){return e.enter(r),e.enter(i),e.consume(p),e.exit(i),e.enter(o),u}function u(p){return a>999||p===null||p===91||p===93&&!c||p===94&&!a&&"_hiddenFootnoteSupport"in s.parser.constructs?n(p):p===93?(e.exit(o),e.enter(i),e.consume(p),e.exit(i),e.exit(r),t):jt(p)?(e.enter("lineEnding"),e.consume(p),e.exit("lineEnding"),u):(e.enter("chunkString",{contentType:"string"}),d(p))}function d(p){return p===null||p===91||p===93||jt(p)||a++>999?(e.exit("chunkString"),u(p)):(e.consume(p),c||(c=!Wn(p)),p===92?f:d)}function f(p){return p===91||p===92||p===93?(e.consume(p),a++,d):d(p)}}function BAe(e,t,n,r,i,o){let s;return a;function a(f){return f===34||f===39||f===40?(e.enter(r),e.enter(i),e.consume(f),e.exit(i),s=f===40?41:f,c):n(f)}function c(f){return f===s?(e.enter(i),e.consume(f),e.exit(i),e.exit(r),t):(e.enter(o),l(f))}function l(f){return f===s?(e.exit(o),c(s)):f===null?n(f):jt(f)?(e.enter("lineEnding"),e.consume(f),e.exit("lineEnding"),kr(e,l,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),u(f))}function u(f){return f===s||f===null||jt(f)?(e.exit("chunkString"),l(f)):(e.consume(f),f===92?d:u)}function d(f){return f===s||f===92?(e.consume(f),u):u(f)}}function C_(e,t){let n;return r;function r(i){return jt(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),n=!0,r):Wn(i)?kr(e,r,n?"linePrefix":"lineSuffix")(i):t(i)}}const zGt={name:"definition",tokenize:WGt},VGt={partial:!0,tokenize:qGt};function WGt(e,t,n){const r=this;let i;return o;function o(p){return e.enter("definition"),s(p)}function s(p){return UAe.call(r,e,a,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(p)}function a(p){return i=Gy(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),p===58?(e.enter("definitionMarker"),e.consume(p),e.exit("definitionMarker"),c):n(p)}function c(p){return Ra(p)?C_(e,l)(p):l(p)}function l(p){return jAe(e,u,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(p)}function u(p){return e.attempt(VGt,d,d)(p)}function d(p){return Wn(p)?kr(e,f,"whitespace")(p):f(p)}function f(p){return p===null||jt(p)?(e.exit("definition"),r.parser.defined.push(i),t(p)):n(p)}}function qGt(e,t,n){return r;function r(a){return Ra(a)?C_(e,i)(a):n(a)}function i(a){return BAe(e,o,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(a)}function o(a){return Wn(a)?kr(e,s,"whitespace")(a):s(a)}function s(a){return a===null||jt(a)?t(a):n(a)}}const GGt={name:"hardBreakEscape",tokenize:KGt};function KGt(e,t,n){return r;function r(o){return e.enter("hardBreakEscape"),e.consume(o),i}function i(o){return jt(o)?(e.exit("hardBreakEscape"),t(o)):n(o)}}const YGt={name:"headingAtx",resolve:QGt,tokenize:XGt};function QGt(e,t){let n=e.length-2,r=3,i,o;return e[r][1].type==="whitespace"&&(r+=2),n-2>r&&e[n][1].type==="whitespace"&&(n-=2),e[n][1].type==="atxHeadingSequence"&&(r===n-1||n-4>r&&e[n-2][1].type==="whitespace")&&(n-=r+1===n?2:4),n>r&&(i={type:"atxHeadingText",start:e[r][1].start,end:e[n][1].end},o={type:"chunkText",start:e[r][1].start,end:e[n][1].end,contentType:"text"},Rd(e,r,n-r+1,[["enter",i,t],["enter",o,t],["exit",o,t],["exit",i,t]])),e}function XGt(e,t,n){let r=0;return i;function i(u){return e.enter("atxHeading"),o(u)}function o(u){return e.enter("atxHeadingSequence"),s(u)}function s(u){return u===35&&r++<6?(e.consume(u),s):u===null||Ra(u)?(e.exit("atxHeadingSequence"),a(u)):n(u)}function a(u){return u===35?(e.enter("atxHeadingSequence"),c(u)):u===null||jt(u)?(e.exit("atxHeading"),t(u)):Wn(u)?kr(e,a,"whitespace")(u):(e.enter("atxHeadingText"),l(u))}function c(u){return u===35?(e.consume(u),c):(e.exit("atxHeadingSequence"),a(u))}function l(u){return u===null||u===35||Ra(u)?(e.exit("atxHeadingText"),a(u)):(e.consume(u),l)}}const JGt=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],bae=["pre","script","style","textarea"],ZGt={concrete:!0,name:"htmlFlow",resolveTo:nKt,tokenize:rKt},eKt={partial:!0,tokenize:oKt},tKt={partial:!0,tokenize:iKt};function nKt(e){let t=e.length;for(;t--&&!(e[t][0]==="enter"&&e[t][1].type==="htmlFlow"););return t>1&&e[t-2][1].type==="linePrefix"&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e}function rKt(e,t,n){const r=this;let i,o,s,a,c;return l;function l(z){return u(z)}function u(z){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(z),d}function d(z){return z===33?(e.consume(z),f):z===47?(e.consume(z),o=!0,m):z===63?(e.consume(z),i=3,r.interrupt?t:G):Xu(z)?(e.consume(z),s=String.fromCharCode(z),y):n(z)}function f(z){return z===45?(e.consume(z),i=2,p):z===91?(e.consume(z),i=5,a=0,g):Xu(z)?(e.consume(z),i=4,r.interrupt?t:G):n(z)}function p(z){return z===45?(e.consume(z),r.interrupt?t:G):n(z)}function g(z){const ue="CDATA[";return z===ue.charCodeAt(a++)?(e.consume(z),a===ue.length?r.interrupt?t:I:g):n(z)}function m(z){return Xu(z)?(e.consume(z),s=String.fromCharCode(z),y):n(z)}function y(z){if(z===null||z===47||z===62||Ra(z)){const ue=z===47,ge=s.toLowerCase();return!ue&&!o&&bae.includes(ge)?(i=1,r.interrupt?t(z):I(z)):JGt.includes(s.toLowerCase())?(i=6,ue?(e.consume(z),v):r.interrupt?t(z):I(z)):(i=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(z):o?w(z):S(z))}return z===45||ac(z)?(e.consume(z),s+=String.fromCharCode(z),y):n(z)}function v(z){return z===62?(e.consume(z),r.interrupt?t:I):n(z)}function w(z){return Wn(z)?(e.consume(z),w):L(z)}function S(z){return z===47?(e.consume(z),L):z===58||z===95||Xu(z)?(e.consume(z),C):Wn(z)?(e.consume(z),S):L(z)}function C(z){return z===45||z===46||z===58||z===95||ac(z)?(e.consume(z),C):E(z)}function E(z){return z===61?(e.consume(z),T):Wn(z)?(e.consume(z),E):S(z)}function T(z){return z===null||z===60||z===61||z===62||z===96?n(z):z===34||z===39?(e.consume(z),c=z,x):Wn(z)?(e.consume(z),T):O(z)}function x(z){return z===c?(e.consume(z),c=null,A):z===null||jt(z)?n(z):(e.consume(z),x)}function O(z){return z===null||z===34||z===39||z===47||z===60||z===61||z===62||z===96||Ra(z)?E(z):(e.consume(z),O)}function A(z){return z===47||z===62||Wn(z)?S(z):n(z)}function L(z){return z===62?(e.consume(z),U):n(z)}function U(z){return z===null||jt(z)?I(z):Wn(z)?(e.consume(z),U):n(z)}function I(z){return z===45&&i===2?(e.consume(z),ee):z===60&&i===1?(e.consume(z),Y):z===62&&i===4?(e.consume(z),Q):z===63&&i===3?(e.consume(z),G):z===93&&i===5?(e.consume(z),Z):jt(z)&&(i===6||i===7)?(e.exit("htmlFlowData"),e.check(eKt,q,F)(z)):z===null||jt(z)?(e.exit("htmlFlowData"),F(z)):(e.consume(z),I)}function F(z){return e.check(tKt,P,q)(z)}function P(z){return e.enter("lineEnding"),e.consume(z),e.exit("lineEnding"),W}function W(z){return z===null||jt(z)?F(z):(e.enter("htmlFlowData"),I(z))}function ee(z){return z===45?(e.consume(z),G):I(z)}function Y(z){return z===47?(e.consume(z),s="",X):I(z)}function X(z){if(z===62){const ue=s.toLowerCase();return bae.includes(ue)?(e.consume(z),Q):I(z)}return Xu(z)&&s.length<8?(e.consume(z),s+=String.fromCharCode(z),X):I(z)}function Z(z){return z===93?(e.consume(z),G):I(z)}function G(z){return z===62?(e.consume(z),Q):z===45&&i===2?(e.consume(z),G):I(z)}function Q(z){return z===null||jt(z)?(e.exit("htmlFlowData"),q(z)):(e.consume(z),Q)}function q(z){return e.exit("htmlFlow"),t(z)}}function iKt(e,t,n){const r=this;return i;function i(s){return jt(s)?(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),o):n(s)}function o(s){return r.parser.lazy[r.now().line]?n(s):t(s)}}function oKt(e,t,n){return r;function r(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),e.attempt(d4,t,n)}}const sKt={name:"htmlText",tokenize:aKt};function aKt(e,t,n){const r=this;let i,o,s;return a;function a(G){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(G),c}function c(G){return G===33?(e.consume(G),l):G===47?(e.consume(G),E):G===63?(e.consume(G),S):Xu(G)?(e.consume(G),O):n(G)}function l(G){return G===45?(e.consume(G),u):G===91?(e.consume(G),o=0,g):Xu(G)?(e.consume(G),w):n(G)}function u(G){return G===45?(e.consume(G),p):n(G)}function d(G){return G===null?n(G):G===45?(e.consume(G),f):jt(G)?(s=d,Y(G)):(e.consume(G),d)}function f(G){return G===45?(e.consume(G),p):d(G)}function p(G){return G===62?ee(G):G===45?f(G):d(G)}function g(G){const Q="CDATA[";return G===Q.charCodeAt(o++)?(e.consume(G),o===Q.length?m:g):n(G)}function m(G){return G===null?n(G):G===93?(e.consume(G),y):jt(G)?(s=m,Y(G)):(e.consume(G),m)}function y(G){return G===93?(e.consume(G),v):m(G)}function v(G){return G===62?ee(G):G===93?(e.consume(G),v):m(G)}function w(G){return G===null||G===62?ee(G):jt(G)?(s=w,Y(G)):(e.consume(G),w)}function S(G){return G===null?n(G):G===63?(e.consume(G),C):jt(G)?(s=S,Y(G)):(e.consume(G),S)}function C(G){return G===62?ee(G):S(G)}function E(G){return Xu(G)?(e.consume(G),T):n(G)}function T(G){return G===45||ac(G)?(e.consume(G),T):x(G)}function x(G){return jt(G)?(s=x,Y(G)):Wn(G)?(e.consume(G),x):ee(G)}function O(G){return G===45||ac(G)?(e.consume(G),O):G===47||G===62||Ra(G)?A(G):n(G)}function A(G){return G===47?(e.consume(G),ee):G===58||G===95||Xu(G)?(e.consume(G),L):jt(G)?(s=A,Y(G)):Wn(G)?(e.consume(G),A):ee(G)}function L(G){return G===45||G===46||G===58||G===95||ac(G)?(e.consume(G),L):U(G)}function U(G){return G===61?(e.consume(G),I):jt(G)?(s=U,Y(G)):Wn(G)?(e.consume(G),U):A(G)}function I(G){return G===null||G===60||G===61||G===62||G===96?n(G):G===34||G===39?(e.consume(G),i=G,F):jt(G)?(s=I,Y(G)):Wn(G)?(e.consume(G),I):(e.consume(G),P)}function F(G){return G===i?(e.consume(G),i=void 0,W):G===null?n(G):jt(G)?(s=F,Y(G)):(e.consume(G),F)}function P(G){return G===null||G===34||G===39||G===60||G===61||G===96?n(G):G===47||G===62||Ra(G)?A(G):(e.consume(G),P)}function W(G){return G===47||G===62||Ra(G)?A(G):n(G)}function ee(G){return G===62?(e.consume(G),e.exit("htmlTextData"),e.exit("htmlText"),t):n(G)}function Y(G){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(G),e.exit("lineEnding"),X}function X(G){return Wn(G)?kr(e,Z,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(G):Z(G)}function Z(G){return e.enter("htmlTextData"),s(G)}}const yG={name:"labelEnd",resolveAll:dKt,resolveTo:fKt,tokenize:hKt},cKt={tokenize:pKt},lKt={tokenize:mKt},uKt={tokenize:gKt};function dKt(e){let t=-1;const n=[];for(;++t<e.length;){const r=e[t][1];if(n.push(e[t]),r.type==="labelImage"||r.type==="labelLink"||r.type==="labelEnd"){const i=r.type==="labelImage"?4:2;r.type="data",t+=i}}return e.length!==n.length&&Rd(e,0,e.length,n),e}function fKt(e,t){let n=e.length,r=0,i,o,s,a;for(;n--;)if(i=e[n][1],o){if(i.type==="link"||i.type==="labelLink"&&i._inactive)break;e[n][0]==="enter"&&i.type==="labelLink"&&(i._inactive=!0)}else if(s){if(e[n][0]==="enter"&&(i.type==="labelImage"||i.type==="labelLink")&&!i._balanced&&(o=n,i.type!=="labelLink")){r=2;break}}else i.type==="labelEnd"&&(s=n);const c={type:e[o][1].type==="labelLink"?"link":"image",start:{...e[o][1].start},end:{...e[e.length-1][1].end}},l={type:"label",start:{...e[o][1].start},end:{...e[s][1].end}},u={type:"labelText",start:{...e[o+r+2][1].end},end:{...e[s-2][1].start}};return a=[["enter",c,t],["enter",l,t]],a=Lc(a,e.slice(o+1,o+r+3)),a=Lc(a,[["enter",u,t]]),a=Lc(a,vG(t.parser.constructs.insideSpan.null,e.slice(o+r+4,s-3),t)),a=Lc(a,[["exit",u,t],e[s-2],e[s-1],["exit",l,t]]),a=Lc(a,e.slice(s+1)),a=Lc(a,[["exit",c,t]]),Rd(e,o,e.length,a),e}function hKt(e,t,n){const r=this;let i=r.events.length,o,s;for(;i--;)if((r.events[i][1].type==="labelImage"||r.events[i][1].type==="labelLink")&&!r.events[i][1]._balanced){o=r.events[i][1];break}return a;function a(f){return o?o._inactive?d(f):(s=r.parser.defined.includes(Gy(r.sliceSerialize({start:o.end,end:r.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(f),e.exit("labelMarker"),e.exit("labelEnd"),c):n(f)}function c(f){return f===40?e.attempt(cKt,u,s?u:d)(f):f===91?e.attempt(lKt,u,s?l:d)(f):s?u(f):d(f)}function l(f){return e.attempt(uKt,u,d)(f)}function u(f){return t(f)}function d(f){return o._balanced=!0,n(f)}}function pKt(e,t,n){return r;function r(d){return e.enter("resource"),e.enter("resourceMarker"),e.consume(d),e.exit("resourceMarker"),i}function i(d){return Ra(d)?C_(e,o)(d):o(d)}function o(d){return d===41?u(d):jAe(e,s,a,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(d)}function s(d){return Ra(d)?C_(e,c)(d):u(d)}function a(d){return n(d)}function c(d){return d===34||d===39||d===40?BAe(e,l,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(d):u(d)}function l(d){return Ra(d)?C_(e,u)(d):u(d)}function u(d){return d===41?(e.enter("resourceMarker"),e.consume(d),e.exit("resourceMarker"),e.exit("resource"),t):n(d)}}function mKt(e,t,n){const r=this;return i;function i(a){return UAe.call(r,e,o,s,"reference","referenceMarker","referenceString")(a)}function o(a){return r.parser.defined.includes(Gy(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(a):n(a)}function s(a){return n(a)}}function gKt(e,t,n){return r;function r(o){return e.enter("reference"),e.enter("referenceMarker"),e.consume(o),e.exit("referenceMarker"),i}function i(o){return o===93?(e.enter("referenceMarker"),e.consume(o),e.exit("referenceMarker"),e.exit("reference"),t):n(o)}}const vKt={name:"labelStartImage",resolveAll:yG.resolveAll,tokenize:yKt};function yKt(e,t,n){const r=this;return i;function i(a){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(a),e.exit("labelImageMarker"),o}function o(a){return a===91?(e.enter("labelMarker"),e.consume(a),e.exit("labelMarker"),e.exit("labelImage"),s):n(a)}function s(a){return a===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(a):t(a)}}const bKt={name:"labelStartLink",resolveAll:yG.resolveAll,tokenize:wKt};function wKt(e,t,n){const r=this;return i;function i(s){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(s),e.exit("labelMarker"),e.exit("labelLink"),o}function o(s){return s===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(s):t(s)}}const $D={name:"lineEnding",tokenize:SKt};function SKt(e,t){return n;function n(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),kr(e,t,"linePrefix")}}const vA={name:"thematicBreak",tokenize:_Kt};function _Kt(e,t,n){let r=0,i;return o;function o(l){return e.enter("thematicBreak"),s(l)}function s(l){return i=l,a(l)}function a(l){return l===i?(e.enter("thematicBreakSequence"),c(l)):r>=3&&(l===null||jt(l))?(e.exit("thematicBreak"),t(l)):n(l)}function c(l){return l===i?(e.consume(l),r++,c):(e.exit("thematicBreakSequence"),Wn(l)?kr(e,a,"whitespace")(l):a(l))}}const da={continuation:{tokenize:kKt},exit:AKt,name:"list",tokenize:TKt},CKt={partial:!0,tokenize:IKt},EKt={partial:!0,tokenize:xKt};function TKt(e,t,n){const r=this,i=r.events[r.events.length-1];let o=i&&i[1].type==="linePrefix"?i[2].sliceSerialize(i[1],!0).length:0,s=0;return a;function a(p){const g=r.containerState.type||(p===42||p===43||p===45?"listUnordered":"listOrdered");if(g==="listUnordered"?!r.containerState.marker||p===r.containerState.marker:PU(p)){if(r.containerState.type||(r.containerState.type=g,e.enter(g,{_container:!0})),g==="listUnordered")return e.enter("listItemPrefix"),p===42||p===45?e.check(vA,n,l)(p):l(p);if(!r.interrupt||p===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),c(p)}return n(p)}function c(p){return PU(p)&&++s<10?(e.consume(p),c):(!r.interrupt||s<2)&&(r.containerState.marker?p===r.containerState.marker:p===41||p===46)?(e.exit("listItemValue"),l(p)):n(p)}function l(p){return e.enter("listItemMarker"),e.consume(p),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||p,e.check(d4,r.interrupt?n:u,e.attempt(CKt,f,d))}function u(p){return r.containerState.initialBlankLine=!0,o++,f(p)}function d(p){return Wn(p)?(e.enter("listItemPrefixWhitespace"),e.consume(p),e.exit("listItemPrefixWhitespace"),f):n(p)}function f(p){return r.containerState.size=o+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(p)}}function kKt(e,t,n){const r=this;return r.containerState._closeFlow=void 0,e.check(d4,i,o);function i(a){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,kr(e,t,"listItemIndent",r.containerState.size+1)(a)}function o(a){return r.containerState.furtherBlankLines||!Wn(a)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,s(a)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(EKt,t,s)(a))}function s(a){return r.containerState._closeFlow=!0,r.interrupt=void 0,kr(e,e.attempt(da,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(a)}}function xKt(e,t,n){const r=this;return kr(e,i,"listItemIndent",r.containerState.size+1);function i(o){const s=r.events[r.events.length-1];return s&&s[1].type==="listItemIndent"&&s[2].sliceSerialize(s[1],!0).length===r.containerState.size?t(o):n(o)}}function AKt(e){e.exit(this.containerState.type)}function IKt(e,t,n){const r=this;return kr(e,i,"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function i(o){const s=r.events[r.events.length-1];return!Wn(o)&&s&&s[1].type==="listItemPrefixWhitespace"?t(o):n(o)}}const wae={name:"setextUnderline",resolveTo:RKt,tokenize:PKt};function RKt(e,t){let n=e.length,r,i,o;for(;n--;)if(e[n][0]==="enter"){if(e[n][1].type==="content"){r=n;break}e[n][1].type==="paragraph"&&(i=n)}else e[n][1].type==="content"&&e.splice(n,1),!o&&e[n][1].type==="definition"&&(o=n);const s={type:"setextHeading",start:{...e[i][1].start},end:{...e[e.length-1][1].end}};return e[i][1].type="setextHeadingText",o?(e.splice(i,0,["enter",s,t]),e.splice(o+1,0,["exit",e[r][1],t]),e[r][1].end={...e[o][1].end}):e[r][1]=s,e.push(["exit",s,t]),e}function PKt(e,t,n){const r=this;let i;return o;function o(l){let u=r.events.length,d;for(;u--;)if(r.events[u][1].type!=="lineEnding"&&r.events[u][1].type!=="linePrefix"&&r.events[u][1].type!=="content"){d=r.events[u][1].type==="paragraph";break}return!r.parser.lazy[r.now().line]&&(r.interrupt||d)?(e.enter("setextHeadingLine"),i=l,s(l)):n(l)}function s(l){return e.enter("setextHeadingLineSequence"),a(l)}function a(l){return l===i?(e.consume(l),a):(e.exit("setextHeadingLineSequence"),Wn(l)?kr(e,c,"lineSuffix")(l):c(l))}function c(l){return l===null||jt(l)?(e.exit("setextHeadingLine"),t(l)):n(l)}}const OKt={tokenize:NKt};function NKt(e){const t=this,n=e.attempt(d4,r,e.attempt(this.parser.constructs.flowInitial,i,kr(e,e.attempt(this.parser.constructs.flow,i,e.attempt(jGt,i)),"linePrefix")));return n;function r(o){if(o===null){e.consume(o);return}return e.enter("lineEndingBlank"),e.consume(o),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n}function i(o){if(o===null){e.consume(o);return}return e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),t.currentConstruct=void 0,n}}const MKt={resolveAll:HAe()},DKt=$Ae("string"),LKt=$Ae("text");function $Ae(e){return{resolveAll:HAe(e==="text"?FKt:void 0),tokenize:t};function t(n){const r=this,i=this.parser.constructs[e],o=n.attempt(i,s,a);return s;function s(u){return l(u)?o(u):a(u)}function a(u){if(u===null){n.consume(u);return}return n.enter("data"),n.consume(u),c}function c(u){return l(u)?(n.exit("data"),o(u)):(n.consume(u),c)}function l(u){if(u===null)return!0;const d=i[u];let f=-1;if(d)for(;++f<d.length;){const p=d[f];if(!p.previous||p.previous.call(r,r.previous))return!0}return!1}}}function HAe(e){return t;function t(n,r){let i=-1,o;for(;++i<=n.length;)o===void 0?n[i]&&n[i][1].type==="data"&&(o=i,i++):(!n[i]||n[i][1].type!=="data")&&(i!==o+2&&(n[o][1].end=n[i-1][1].end,n.splice(o+2,i-o-2),i=o+2),o=void 0);return e?e(n,r):n}}function FKt(e,t){let n=0;for(;++n<=e.length;)if((n===e.length||e[n][1].type==="lineEnding")&&e[n-1][1].type==="data"){const r=e[n-1][1],i=t.sliceStream(r);let o=i.length,s=-1,a=0,c;for(;o--;){const l=i[o];if(typeof l=="string"){for(s=l.length;l.charCodeAt(s-1)===32;)a++,s--;if(s)break;s=-1}else if(l===-2)c=!0,a++;else if(l!==-1){o++;break}}if(a){const l={type:n===e.length||c||a<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:o?s:r.start._bufferIndex+s,_index:r.start._index+o,line:r.end.line,column:r.end.column-a,offset:r.end.offset-a},end:{...r.end}};r.end={...l.start},r.start.offset===r.end.offset?Object.assign(r,l):(e.splice(n,0,["enter",l,t],["exit",l,t]),n+=2)}n++}return e}
vendor: 2,021 bytes, line 1604
1604const jKt={42:da,43:da,45:da,48:da,49:da,50:da,51:da,52:da,53:da,54:da,55:da,56:da,57:da,62:MAe},UKt={91:zGt},BKt={[-2]:BD,[-1]:BD,32:BD},$Kt={35:YGt,42:vA,45:[wae,vA],60:ZGt,61:wae,95:vA,96:yae,126:yae},HKt={38:LAe,92:DAe},zKt={[-5]:$D,[-4]:$D,[-3]:$D,33:vKt,38:LAe,42:OU,60:[bGt,sKt],91:bKt,92:[GGt,DAe],93:yG,95:OU,96:OGt},VKt={null:[OU,MKt]},WKt={null:[42,95]},qKt={null:[]},GKt=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:WKt,contentInitial:UKt,disable:qKt,document:jKt,flow:$Kt,flowInitial:BKt,insideSpan:VKt,string:HKt,text:zKt},Symbol.toStringTag,{value:"Module"}));function KKt(e,t,n){let r={_bufferIndex:-1,_index:0,line:n&&n.line||1,column:n&&n.column||1,offset:n&&n.offset||0};const i={},o=[];let s=[],a=[];const c={attempt:x(E),check:x(T),consume:w,enter:S,exit:C,interrupt:x(T,{interrupt:!0})},l={code:null,containerState:{},defineSkip:m,events:[],now:g,parser:e,previous:null,sliceSerialize:f,sliceStream:p,write:d};let u=t.tokenize.call(l,c);return t.resolveAll&&o.push(t),l;function d(U){return s=Lc(s,U),y(),s[s.length-1]!==null?[]:(O(t,0),l.events=vG(o,l.events,l),l.events)}function f(U,I){return QKt(p(U),I)}function p(U){return YKt(s,U)}function g(){const{_bufferIndex:U,_index:I,line:F,column:P,offset:W}=r;return{_bufferIndex:U,_index:I,line:F,column:P,offset:W}}function m(U){i[U.line]=U.column,L()}function y(){let U;for(;r._index<s.length;){const I=s[r._index];if(typeof I=="string")for(U=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===U&&r._bufferIndex<I.length;)v(I.charCodeAt(r._bufferIndex));else v(I)}}function v(U){u=u(U)}function w(U){jt(U)?(r.line++,r.column=1,r.offset+=U===-3?2:1,L()):U!==-1&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===s[r._index].length&&(r._bufferIndex=-1,r._index++)),l.previous=U}function S(U,I){const F=I||{};return F.type=U,F.start=g(),l.events.push(["enter",F,l]),a.push(F),F}function C(U){const I=a.pop();return I.end=g(),l.events.push(["exit",I,l]),I}function E(U,I){O(U,I.from)}
vendor: 13,387 bytes, lines 1604-1606
1604function T(U,I){I.restore()}function x(U,I){return F;function F(P,W,ee){let Y,X,Z,G;return Array.isArray(P)?q(P):"tokenize"in P?q([P]):Q(P);function Q(ae){return j;function j(B){const re=B!==null&&ae[B],oe=B!==null&&ae.null,ne=[...Array.isArray(re)?re:re?[re]:[],...Array.isArray(oe)?oe:oe?[oe]:[]];return q(ne)(B)}}function q(ae){return Y=ae,X=0,ae.length===0?ee:z(ae[X])}function z(ae){return j;function j(B){return G=A(),Z=ae,ae.partial||(l.currentConstruct=ae),ae.name&&l.parser.constructs.disable.null.includes(ae.name)?ge():ae.tokenize.call(I?Object.assign(Object.create(l),I):l,c,ue,ge)(B)}}function ue(ae){return U(Z,G),W}function ge(ae){return G.restore(),++X<Y.length?z(Y[X]):ee}}}function O(U,I){U.resolveAll&&!o.includes(U)&&o.push(U),U.resolve&&Rd(l.events,I,l.events.length-I,U.resolve(l.events.slice(I),l)),U.resolveTo&&(l.events=U.resolveTo(l.events,l))}function A(){const U=g(),I=l.previous,F=l.currentConstruct,P=l.events.length,W=Array.from(a);return{from:P,restore:ee};function ee(){r=U,l.previous=I,l.currentConstruct=F,l.events.length=P,a=W,L()}}function L(){r.line in i&&r.column<2&&(r.column=i[r.line],r.offset+=i[r.line]-1)}}function YKt(e,t){const n=t.start._index,r=t.start._bufferIndex,i=t.end._index,o=t.end._bufferIndex;let s;if(n===i)s=[e[n].slice(r,o)];else{if(s=e.slice(n,i),r>-1){const a=s[0];typeof a=="string"?s[0]=a.slice(r):s.shift()}o>0&&s.push(e[i].slice(0,o))}return s}function QKt(e,t){let n=-1;const r=[];let i;for(;++n<e.length;){const o=e[n];let s;if(typeof o=="string")s=o;else switch(o){case-5:{s="\r";break}case-4:{s=`
1605`;break}case-3:{s=`\r
1606`;break}case-2:{s=t?" ":"	";break}case-1:{if(!t&&i)continue;s=" ";break}default:s=String.fromCharCode(o)}i=o===-2,r.push(s)}return r.join("")}function XKt(e){const r={constructs:iGt([GKt,...(e||{}).extensions||[]]),content:i(fGt),defined:[],document:i(pGt),flow:i(OKt),lazy:{},string:i(DKt),text:i(LKt)};return r;function i(o){return s;function s(a){return KKt(r,o,a)}}}function JKt(e){for(;!FAe(e););return e}const Sae=/[\0\t\n\r]/g;function ZKt(){let e=1,t="",n=!0,r;return i;function i(o,s,a){const c=[];let l,u,d,f,p;for(o=t+(typeof o=="string"?o.toString():new TextDecoder(s||void 0).decode(o)),d=0,t="",n&&(o.charCodeAt(0)===65279&&d++,n=void 0);d<o.length;){if(Sae.lastIndex=d,l=Sae.exec(o),f=l&&l.index!==void 0?l.index:o.length,p=o.charCodeAt(f),!l){t=o.slice(d);break}if(p===10&&d===f&&r)c.push(-3),r=void 0;else switch(r&&(c.push(-5),r=void 0),d<f&&(c.push(o.slice(d,f)),e+=f-d),p){case 0:{c.push(65533),e++;break}case 9:{for(u=Math.ceil(e/4)*4,c.push(-2);e++<u;)c.push(-1);break}case 10:{c.push(-4),e=1;break}default:r=!0,e=1}d=f+1}return a&&(r&&c.push(-5),t&&c.push(t),c.push(null)),c}}const eYt=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function tYt(e){return e.replace(eYt,nYt)}function nYt(e,t,n){if(t)return t;if(n.charCodeAt(0)===35){const i=n.charCodeAt(1),o=i===120||i===88;return NAe(n.slice(o?2:1),o?16:10)}return gG(n)||e}const zAe={}.hasOwnProperty;function rYt(e,t,n){return typeof t!="string"&&(n=t,t=void 0),iYt(n)(JKt(XKt(n).document().write(ZKt()(e,t,!0))))}function iYt(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:o($),autolinkProtocol:A,autolinkEmail:A,atxHeading:o(be),blockQuote:o(oe),characterEscape:A,characterReference:A,codeFenced:o(ne),codeFencedFenceInfo:s,codeFencedFenceMeta:s,codeIndented:o(ne,s),codeText:o(J,s),codeTextData:A,data:A,codeFlowValue:A,definition:o(Se),definitionDestinationString:s,definitionLabelString:s,definitionTitleString:s,emphasis:o(H),hardBreakEscape:o(V),hardBreakTrailing:o(V),htmlFlow:o(M,s),htmlFlowData:A,htmlText:o(M,s),htmlTextData:A,image:o(N),label:s,link:o($),listItem:o(pe),listItemValue:f,listOrdered:o(ce,d),listUnordered:o(ce),paragraph:o(fe),reference:z,referenceString:s,resourceDestinationString:s,resourceTitleString:s,setextHeading:o(be),strong:o(we),thematicBreak:o(xe)},exit:{atxHeading:c(),atxHeadingSequence:E,autolink:c(),autolinkEmail:re,autolinkProtocol:B,blockQuote:c(),characterEscapeValue:L,characterReferenceMarkerHexadecimal:ge,characterReferenceMarkerNumeric:ge,characterReferenceValue:ae,characterReference:j,codeFenced:c(y),codeFencedFence:m,codeFencedFenceInfo:p,codeFencedFenceMeta:g,codeFlowValue:L,codeIndented:c(v),codeText:c(W),codeTextData:L,data:L,definition:c(),definitionDestinationString:C,definitionLabelString:w,definitionTitleString:S,emphasis:c(),hardBreakEscape:c(I),hardBreakTrailing:c(I),htmlFlow:c(F),htmlFlowData:L,htmlText:c(P),htmlTextData:L,image:c(Y),label:Z,labelText:X,lineEnding:U,link:c(ee),listItem:c(),listOrdered:c(),listUnordered:c(),paragraph:c(),referenceString:ue,resourceDestinationString:G,resourceTitleString:Q,resource:q,setextHeading:c(O),setextHeadingLineSequence:x,setextHeadingText:T,strong:c(),thematicBreak:c()}};VAe(t,(e||{}).mdastExtensions||[]);const n={};return r;function r(ve){let ke={type:"root",children:[]};const He={stack:[ke],tokenStack:[],config:t,enter:a,exit:l,buffer:s,resume:u,data:n},Ge=[];let vt=-1;for(;++vt<ve.length;)if(ve[vt][1].type==="listOrdered"||ve[vt][1].type==="listUnordered")if(ve[vt][0]==="enter")Ge.push(vt);else{const Lt=Ge.pop();vt=i(ve,Lt,vt)}for(vt=-1;++vt<ve.length;){const Lt=t[ve[vt][0]];zAe.call(Lt,ve[vt][1].type)&&Lt[ve[vt][1].type].call(Object.assign({sliceSerialize:ve[vt][2].sliceSerialize},He),ve[vt][1])}if(He.tokenStack.length>0){const Lt=He.tokenStack[He.tokenStack.length-1];(Lt[1]||_ae).call(He,void 0,Lt[0])}for(ke.position={start:Wh(ve.length>0?ve[0][1].start:{line:1,column:1,offset:0}),end:Wh(ve.length>0?ve[ve.length-2][1].end:{line:1,column:1,offset:0})},vt=-1;++vt<t.transforms.length;)ke=t.transforms[vt](ke)||ke;return ke}function i(ve,ke,He){let Ge=ke-1,vt=-1,Lt=!1,$t,Yt,xo,ir;for(;++Ge<=He;){const sn=ve[Ge];switch(sn[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{sn[0]==="enter"?vt++:vt--,ir=void 0;break}case"lineEndingBlank":{sn[0]==="enter"&&($t&&!ir&&!vt&&!xo&&(xo=Ge),ir=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:ir=void 0}if(!vt&&sn[0]==="enter"&&sn[1].type==="listItemPrefix"||vt===-1&&sn[0]==="exit"&&(sn[1].type==="listUnordered"||sn[1].type==="listOrdered")){if($t){let ai=Ge;for(Yt=void 0;ai--;){const _t=ve[ai];if(_t[1].type==="lineEnding"||_t[1].type==="lineEndingBlank"){if(_t[0]==="exit")continue;Yt&&(ve[Yt][1].type="lineEndingBlank",Lt=!0),_t[1].type="lineEnding",Yt=ai}else if(!(_t[1].type==="linePrefix"||_t[1].type==="blockQuotePrefix"||_t[1].type==="blockQuotePrefixWhitespace"||_t[1].type==="blockQuoteMarker"||_t[1].type==="listItemIndent"))break}xo&&(!Yt||xo<Yt)&&($t._spread=!0),$t.end=Object.assign({},Yt?ve[Yt][1].start:sn[1].end),ve.splice(Yt||Ge,0,["exit",$t,sn[2]]),Ge++,He++}if(sn[1].type==="listItemPrefix"){const ai={type:"listItem",_spread:!1,start:Object.assign({},sn[1].start),end:void 0};$t=ai,ve.splice(Ge,0,["enter",ai,sn[2]]),Ge++,He++,xo=void 0,ir=!0}}}return ve[ke][1]._spread=Lt,He}function o(ve,ke){return He;function He(Ge){a.call(this,ve(Ge),Ge),ke&&ke.call(this,Ge)}}function s(){this.stack.push({type:"fragment",children:[]})}function a(ve,ke,He){this.stack[this.stack.length-1].children.push(ve),this.stack.push(ve),this.tokenStack.push([ke,He||void 0]),ve.position={start:Wh(ke.start),end:void 0}}function c(ve){return ke;function ke(He){ve&&ve.call(this,He),l.call(this,He)}}function l(ve,ke){const He=this.stack.pop(),Ge=this.tokenStack.pop();if(Ge)Ge[0].type!==ve.type&&(ke?ke.call(this,ve,Ge[0]):(Ge[1]||_ae).call(this,ve,Ge[0]));else throw new Error("Cannot close `"+ve.type+"` ("+__({start:ve.start,end:ve.end})+"): it’s not open");He.position.end=Wh(ve.end)}function u(){return nGt(this.stack.pop())}function d(){this.data.expectingFirstListItemValue=!0}function f(ve){if(this.data.expectingFirstListItemValue){const ke=this.stack[this.stack.length-2];ke.start=Number.parseInt(this.sliceSerialize(ve),10),this.data.expectingFirstListItemValue=void 0}}function p(){const ve=this.resume(),ke=this.stack[this.stack.length-1];ke.lang=ve}function g(){const ve=this.resume(),ke=this.stack[this.stack.length-1];ke.meta=ve}function m(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function y(){const ve=this.resume(),ke=this.stack[this.stack.length-1];ke.value=ve.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function v(){const ve=this.resume(),ke=this.stack[this.stack.length-1];ke.value=ve.replace(/(\r?\n|\r)$/g,"")}function w(ve){const ke=this.resume(),He=this.stack[this.stack.length-1];He.label=ke,He.identifier=Gy(this.sliceSerialize(ve)).toLowerCase()}function S(){const ve=this.resume(),ke=this.stack[this.stack.length-1];ke.title=ve}function C(){const ve=this.resume(),ke=this.stack[this.stack.length-1];ke.url=ve}function E(ve){const ke=this.stack[this.stack.length-1];if(!ke.depth){const He=this.sliceSerialize(ve).length;ke.depth=He}}function T(){this.data.setextHeadingSlurpLineEnding=!0}function x(ve){const ke=this.stack[this.stack.length-1];ke.depth=this.sliceSerialize(ve).codePointAt(0)===61?1:2}function O(){this.data.setextHeadingSlurpLineEnding=void 0}function A(ve){const He=this.stack[this.stack.length-1].children;let Ge=He[He.length-1];(!Ge||Ge.type!=="text")&&(Ge=Ee(),Ge.position={start:Wh(ve.start),end:void 0},He.push(Ge)),this.stack.push(Ge)}function L(ve){const ke=this.stack.pop();ke.value+=this.sliceSerialize(ve),ke.position.end=Wh(ve.end)}function U(ve){const ke=this.stack[this.stack.length-1];if(this.data.atHardBreak){const He=ke.children[ke.children.length-1];He.position.end=Wh(ve.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(ke.type)&&(A.call(this,ve),L.call(this,ve))}function I(){this.data.atHardBreak=!0}function F(){const ve=this.resume(),ke=this.stack[this.stack.length-1];ke.value=ve}function P(){const ve=this.resume(),ke=this.stack[this.stack.length-1];ke.value=ve}function W(){const ve=this.resume(),ke=this.stack[this.stack.length-1];ke.value=ve}function ee(){const ve=this.stack[this.stack.length-1];if(this.data.inReference){const ke=this.data.referenceType||"shortcut";ve.type+="Reference",ve.referenceType=ke,delete ve.url,delete ve.title}else delete ve.identifier,delete ve.label;this.data.referenceType=void 0}function Y(){const ve=this.stack[this.stack.length-1];if(this.data.inReference){const ke=this.data.referenceType||"shortcut";ve.type+="Reference",ve.referenceType=ke,delete ve.url,delete ve.title}else delete ve.identifier,delete ve.label;this.data.referenceType=void 0}function X(ve){const ke=this.sliceSerialize(ve),He=this.stack[this.stack.length-2];He.label=tYt(ke),He.identifier=Gy(ke).toLowerCase()}function Z(){const ve=this.stack[this.stack.length-1],ke=this.resume(),He=this.stack[this.stack.length-1];if(this.data.inReference=!0,He.type==="link"){const Ge=ve.children;He.children=Ge}else He.alt=ke}function G(){const ve=this.resume(),ke=this.stack[this.stack.length-1];ke.url=ve}function Q(){const ve=this.resume(),ke=this.stack[this.stack.length-1];ke.title=ve}function q(){this.data.inReference=void 0}function z(){this.data.referenceType="collapsed"}function ue(ve){const ke=this.resume(),He=this.stack[this.stack.length-1];He.label=ke,He.identifier=Gy(this.sliceSerialize(ve)).toLowerCase(),this.data.referenceType="full"}function ge(ve){this.data.characterReferenceType=ve.type}function ae(ve){const ke=this.sliceSerialize(ve),He=this.data.characterReferenceType;let Ge;He?(Ge=NAe(ke,He==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):Ge=gG(ke);const vt=this.stack[this.stack.length-1];vt.value+=Ge}function j(ve){const ke=this.stack.pop();ke.position.end=Wh(ve.end)}function B(ve){L.call(this,ve);const ke=this.stack[this.stack.length-1];ke.url=this.sliceSerialize(ve)}function re(ve){L.call(this,ve);const ke=this.stack[this.stack.length-1];ke.url="mailto:"+this.sliceSerialize(ve)}function oe(){return{type:"blockquote",children:[]}}function ne(){return{type:"code",lang:null,meta:null,value:""}}function J(){return{type:"inlineCode",value:""}}function Se(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function H(){return{type:"emphasis",children:[]}}function be(){return{type:"heading",depth:0,children:[]}}function V(){return{type:"break"}}function M(){return{type:"html",value:""}}function N(){return{type:"image",title:null,url:"",alt:null}}function $(){return{type:"link",title:null,url:"",children:[]}}function ce(ve){return{type:"list",ordered:ve.type==="listOrdered",start:null,spread:ve._spread,children:[]}}function pe(ve){return{type:"listItem",spread:ve._spread,checked:null,children:[]}}function fe(){return{type:"paragraph",children:[]}}function we(){return{type:"strong",children:[]}}function Ee(){return{type:"text",value:""}}function xe(){return{type:"thematicBreak"}}}function Wh(e){return{line:e.line,column:e.column,offset:e.offset}}function VAe(e,t){let n=-1;for(;++n<t.length;){const r=t[n];Array.isArray(r)?VAe(e,r):oYt(e,r)}}function oYt(e,t){let n;for(n in t)if(zAe.call(t,n))switch(n){case"canContainEols":{const r=t[n];r&&e[n].push(...r);break}case"transforms":{const r=t[n];r&&e[n].push(...r);break}case"enter":case"exit":{const r=t[n];r&&Object.assign(e[n],r);break}}}function _ae(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+__({
vendor: 6,089 bytes, lines 1606-1610
1606start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+__({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+__({start:t.start,end:t.end})+") is still open")}function sYt(e){const t=this;t.parser=n;function n(r){return rYt(r,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}function aYt(e,t){const n={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,n),e.applyData(t,n)}function cYt(e,t){const n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:`
1607`}]}function lYt(e,t){const n=t.value?t.value+`
1608`:"",r={},i=t.lang?t.lang.split(/\s+/):[];i.length>0&&(r.className=["language-"+i[0]]);let o={type:"element",tagName:"code",properties:r,children:[{type:"text",value:n}]};return t.meta&&(o.data={meta:t.meta}),e.patch(t,o),o=e.applyData(t,o),o={type:"element",tagName:"pre",properties:{},children:[o]},e.patch(t,o),o}function uYt(e,t){const n={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function dYt(e,t){const n={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function fYt(e,t){const n=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",r=String(t.identifier).toUpperCase(),i=cw(r.toLowerCase()),o=e.footnoteOrder.indexOf(r);let s,a=e.footnoteCounts.get(r);a===void 0?(a=0,e.footnoteOrder.push(r),s=e.footnoteOrder.length):s=o+1,a+=1,e.footnoteCounts.set(r,a);const c={type:"element",tagName:"a",properties:{href:"#"+n+"fn-"+i,id:n+"fnref-"+i+(a>1?"-"+a:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(s)}]};e.patch(t,c);const l={type:"element",tagName:"sup",properties:{},children:[c]};return e.patch(t,l),e.applyData(t,l)}function hYt(e,t){const n={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function pYt(e,t){if(e.options.allowDangerousHtml){const n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}}function WAe(e,t){const n=t.referenceType;let r="]";if(n==="collapsed"?r+="[]":n==="full"&&(r+="["+(t.label||t.identifier)+"]"),t.type==="imageReference")return[{type:"text",value:"!["+t.alt+r}];const i=e.all(t),o=i[0];o&&o.type==="text"?o.value="["+o.value:i.unshift({type:"text",value:"["});const s=i[i.length-1];return s&&s.type==="text"?s.value+=r:i.push({type:"text",value:r}),i}function mYt(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return WAe(e,t);const i={src:cw(r.url||""),alt:t.alt};r.title!==null&&r.title!==void 0&&(i.title=r.title);const o={type:"element",tagName:"img",properties:i,children:[]};return e.patch(t,o),e.applyData(t,o)}function gYt(e,t){const n={src:cw(t.url)};t.alt!==null&&t.alt!==void 0&&(n.alt=t.alt),t.title!==null&&t.title!==void 0&&(n.title=t.title);const r={type:"element",tagName:"img",properties:n,children:[]};return e.patch(t,r),e.applyData(t,r)}function vYt(e,t){const n={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,n);const r={type:"element",tagName:"code",properties:{},children:[n]};return e.patch(t,r),e.applyData(t,r)}function yYt(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return WAe(e,t);const i={href:cw(r.url||"")};r.title!==null&&r.title!==void 0&&(i.title=r.title);const o={type:"element",tagName:"a",properties:i,children:e.all(t)};return e.patch(t,o),e.applyData(t,o)}function bYt(e,t){const n={href:cw(t.url)};t.title!==null&&t.title!==void 0&&(n.title=t.title);const r={type:"element",tagName:"a",properties:n,children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function wYt(e,t,n){const r=e.all(t),i=n?SYt(n):qAe(t),o={},s=[];if(typeof t.checked=="boolean"){const u=r[0];let d;u&&u.type==="element"&&u.tagName==="p"?d=u:(d={type:"element",tagName:"p",properties:{},children:[]},r.unshift(d)),d.children.length>0&&d.children.unshift({type:"text",value:" "}),d.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),o.className=["task-list-item"]}let a=-1;for(;++a<r.length;){const u=r[a];(i||a!==0||u.type!=="element"||u.tagName!=="p")&&s.push({type:"text",value:`
1609`}),u.type==="element"&&u.tagName==="p"&&!i?s.push(...u.children):s.push(u)}const c=r[r.length-1];c&&(i||c.type!=="element"||c.tagName!=="p")&&s.push({type:"text",value:`
1610`});const l={type:"element",tagName:"li",properties:o,children:s};return e.patch(t,l),e.applyData(t,l)}function SYt(e){let t=!1;if(e.type==="list"){t=e.spread||!1;const n=e.children;let r=-1;for(;!t&&++r<n.length;)t=qAe(n[r])}return t}function qAe(e){const t=e.spread;return t??e.children.length>1}function _Yt(e,t){const n={},r=e.all(t);let i=-1;for(typeof t.start=="number"&&t.start!==1&&(n.start=t.start);++i<r.length;){const s=r[i];if(s.type==="element"&&s.tagName==="li"&&s.properties&&Array.isArray(s.properties.className)&&s.properties.className.includes("task-list-item")){n.className=["contains-task-list"];break}}const o={type:"element",tagName:t.ordered?"ol":"ul",properties:n,children:e.wrap(r,!0)};return e.patch(t,o),e.applyData(t,o)}function CYt(e,t){const n={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function EYt(e,t){const n={type:"root",children:e.wrap(e.all(t))};return e.patch(t,n),e.applyData(t,n)}function TYt(e,t){const n={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function kYt(e,t){const n=e.all(t),r=n.shift(),i=[];if(r){const s={type:"element",tagName:"thead",properties:{},children:e.wrap([r],!0)};e.patch(t.children[0],s),i.push(s)}if(n.length>0){const s={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},a=fG(t.children[1]),c=kAe(t.children[t.children.length-1]);a&&c&&(s.position={start:a,end:c}),i.push(s)}const o={type:"element",tagName:"table",properties:{}
vendor: 16,076 bytes, lines 1610-1616
1610,children:e.wrap(i,!0)};return e.patch(t,o),e.applyData(t,o)}function xYt(e,t,n){const r=n?n.children:void 0,o=(r?r.indexOf(t):1)===0?"th":"td",s=n&&n.type==="table"?n.align:void 0,a=s?s.length:t.children.length;let c=-1;const l=[];for(;++c<a;){const d=t.children[c],f={},p=s?s[c]:void 0;p&&(f.align=p);let g={type:"element",tagName:o,properties:f,children:[]};d&&(g.children=e.all(d),e.patch(d,g),g=e.applyData(d,g)),l.push(g)}const u={type:"element",tagName:"tr",properties:{},children:e.wrap(l,!0)};return e.patch(t,u),e.applyData(t,u)}function AYt(e,t){const n={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}const Cae=9,Eae=32;function IYt(e){const t=String(e),n=/\r?\n|\r/g;let r=n.exec(t),i=0;const o=[];for(;r;)o.push(Tae(t.slice(i,r.index),i>0,!0),r[0]),i=r.index+r[0].length,r=n.exec(t);return o.push(Tae(t.slice(i),i>0,!1)),o.join("")}function Tae(e,t,n){let r=0,i=e.length;if(t){let o=e.codePointAt(r);for(;o===Cae||o===Eae;)r++,o=e.codePointAt(r)}if(n){let o=e.codePointAt(i-1);for(;o===Cae||o===Eae;)i--,o=e.codePointAt(i-1)}return i>r?e.slice(r,i):""}function RYt(e,t){const n={type:"text",value:IYt(String(t.value))};return e.patch(t,n),e.applyData(t,n)}function PYt(e,t){const n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)}const OYt={blockquote:aYt,break:cYt,code:lYt,delete:uYt,emphasis:dYt,footnoteReference:fYt,heading:hYt,html:pYt,imageReference:mYt,image:gYt,inlineCode:vYt,linkReference:yYt,link:bYt,listItem:wYt,list:_Yt,paragraph:CYt,root:EYt,strong:TYt,table:kYt,tableCell:AYt,tableRow:xYt,text:RYt,thematicBreak:PYt,toml:Nk,yaml:Nk,definition:Nk,footnoteDefinition:Nk};function Nk(){}const GAe=-1,f4=0,I3=1,R3=2,bG=3,wG=4,SG=5,_G=6,KAe=7,YAe=8,kae=typeof self=="object"?self:globalThis,NYt=(e,t)=>{const n=(i,o)=>(e.set(o,i),i),r=i=>{if(e.has(i))return e.get(i);const[o,s]=t[i];switch(o){case f4:case GAe:return n(s,i);case I3:{const a=n([],i);for(const c of s)a.push(r(c));return a}case R3:{const a=n({},i);for(const[c,l]of s)a[r(c)]=r(l);return a}case bG:return n(new Date(s),i);case wG:{const{source:a,flags:c}=s;return n(new RegExp(a,c),i)}case SG:{const a=n(new Map,i);for(const[c,l]of s)a.set(r(c),r(l));return a}case _G:{const a=n(new Set,i);for(const c of s)a.add(r(c));return a}case KAe:{const{name:a,message:c}=s;return n(new kae[a](c),i)}case YAe:return n(BigInt(s),i);case"BigInt":return n(Object(BigInt(s)),i)}return n(new kae[o](s),i)};return r},xae=e=>NYt(new Map,e)(0),I0="",{toString:MYt}={},{keys:DYt}=Object,lS=e=>{const t=typeof e;if(t!=="object"||!e)return[f4,t];const n=MYt.call(e).slice(8,-1);switch(n){case"Array":return[I3,I0];case"Object":return[R3,I0];case"Date":return[bG,I0];case"RegExp":return[wG,I0];case"Map":return[SG,I0];case"Set":return[_G,I0]}return n.includes("Array")?[I3,n]:n.includes("Error")?[KAe,n]:[R3,n]},Mk=([e,t])=>e===f4&&(t==="function"||t==="symbol"),LYt=(e,t,n,r)=>{const i=(s,a)=>{const c=r.push(s)-1;return n.set(a,c),c},o=s=>{if(n.has(s))return n.get(s);let[a,c]=lS(s);switch(a){case f4:{let u=s;switch(c){case"bigint":a=YAe,u=s.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+c);u=null;break;case"undefined":return i([GAe],s)}return i([a,u],s)}case I3:{if(c)return i([c,[...s]],s);const u=[],d=i([a,u],s);for(const f of s)u.push(o(f));return d}case R3:{if(c)switch(c){case"BigInt":return i([c,s.toString()],s);case"Boolean":case"Number":case"String":return i([c,s.valueOf()],s)}if(t&&"toJSON"in s)return o(s.toJSON());const u=[],d=i([a,u],s);for(const f of DYt(s))(e||!Mk(lS(s[f])))&&u.push([o(f),o(s[f])]);return d}case bG:return i([a,s.toISOString()],s);case wG:{const{source:u,flags:d}=s;return i([a,{source:u,flags:d}],s)}case SG:{const u=[],d=i([a,u],s);for(const[f,p]of s)(e||!(Mk(lS(f))||Mk(lS(p))))&&u.push([o(f),o(p)]);return d}case _G:{const u=[],d=i([a,u],s);for(const f of s)(e||!Mk(lS(f)))&&u.push(o(f));return d}}const{message:l}=s;return i([a,{name:c,message:l}],s)};return o},Aae=(e,{json:t,lossy:n}={})=>{const r=[];return LYt(!(t||n),!!t,new Map,r)(e),r},P3=typeof structuredClone=="function"?(e,t)=>t&&("json"in t||"lossy"in t)?xae(Aae(e,t)):structuredClone(e):(e,t)=>xae(Aae(e,t));function FYt(e,t){const n=[{type:"text",value:"↩"}];return t>1&&n.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),n}function jYt(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}function UYt(e){const t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",n=e.options.footnoteBackContent||FYt,r=e.options.footnoteBackLabel||jYt,i=e.options.footnoteLabel||"Footnotes",o=e.options.footnoteLabelTagName||"h2",s=e.options.footnoteLabelProperties||{className:["sr-only"]},a=[];let c=-1;for(;++c<e.footnoteOrder.length;){const l=e.footnoteById.get(e.footnoteOrder[c]);if(!l)continue;const u=e.all(l),d=String(l.identifier).toUpperCase(),f=cw(d.toLowerCase());let p=0;const g=[],m=e.footnoteCounts.get(d);for(;m!==void 0&&++p<=m;){g.length>0&&g.push({type:"text",value:" "});let w=typeof n=="string"?n:n(c,p);typeof w=="string"&&(w={type:"text",value:w}),g.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+f+(p>1?"-"+p:""),dataFootnoteBackref:"",ariaLabel:typeof r=="string"?r:r(c,p),className:["data-footnote-backref"]},children:Array.isArray(w)?w:[w]})}const y=u[u.length-1];if(y&&y.type==="element"&&y.tagName==="p"){const w=y.children[y.children.length-1];w&&w.type==="text"?w.value+=" ":y.children.push({type:"text",value:" "}),y.children.push(...g)}else u.push(...g);const v={type:"element",tagName:"li",properties:{id:t+"fn-"+f},children:e.wrap(u,!0)};e.patch(l,v),a.push(v)}if(a.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:o,properties:{...P3(s),id:"footnote-label"},children:[{type:"text",value:i}]},{type:"text",value:`
1611`},{type:"element",tagName:"ol",properties:{},children:e.wrap(a,!0)},{type:"text",value:`
1612`}]}}const QAe=(function(e){if(e==null)return zYt;if(typeof e=="function")return h4(e);if(typeof e=="object")return Array.isArray(e)?BYt(e):$Yt(e);if(typeof e=="string")return HYt(e);throw new Error("Expected function, string, or object as test")});function BYt(e){const t=[];let n=-1;for(;++n<e.length;)t[n]=QAe(e[n]);return h4(r);function r(...i){let o=-1;for(;++o<t.length;)if(t[o].apply(this,i))return!0;return!1}}function $Yt(e){const t=e;return h4(n);function n(r){const i=r;let o;for(o in e)if(i[o]!==t[o])return!1;return!0}}function HYt(e){return h4(t);function t(n){return n&&n.type===e}}function h4(e){return t;function t(n,r,i){return!!(VYt(n)&&e.call(this,n,typeof r=="number"?r:void 0,i||void 0))}}function zYt(){return!0}function VYt(e){return e!==null&&typeof e=="object"&&"type"in e}const XAe=[],WYt=!0,Iae=!1,qYt="skip";function GYt(e,t,n,r){let i;typeof t=="function"&&typeof n!="function"?(r=n,n=t):i=t;const o=QAe(i),s=r?-1:1;a(e,void 0,[])();function a(c,l,u){const d=c&&typeof c=="object"?c:{};if(typeof d.type=="string"){const p=typeof d.tagName=="string"?d.tagName:typeof d.name=="string"?d.name:void 0;Object.defineProperty(f,"name",{value:"node ("+(c.type+(p?"<"+p+">":""))+")"})}return f;function f(){let p=XAe,g,m,y;if((!t||o(c,l,u[u.length-1]||void 0))&&(p=KYt(n(c,u)),p[0]===Iae))return p;if("children"in c&&c.children){const v=c;if(v.children&&p[0]!==qYt)for(m=(r?v.children.length:-1)+s,y=u.concat(v);m>-1&&m<v.children.length;){const w=v.children[m];if(g=a(w,m,y)(),g[0]===Iae)return g;m=typeof g[1]=="number"?g[1]:m+s}}return p}}}function KYt(e){return Array.isArray(e)?e:typeof e=="number"?[WYt,e]:e==null?XAe:[e]}function JAe(e,t,n,r){let i,o,s;typeof t=="function"&&typeof n!="function"?(o=void 0,s=t,i=n):(o=t,s=n,i=r),GYt(e,o,a,i);function a(c,l){const u=l[l.length-1],d=u?u.children.indexOf(c):void 0;return s(c,d,u)}}const NU={}.hasOwnProperty,YYt={};function QYt(e,t){const n=t||YYt,r=new Map,i=new Map,o=new Map,s={...OYt,...n.handlers},a={all:l,applyData:JYt,definitionById:r,footnoteById:i,footnoteCounts:o,footnoteOrder:[],handlers:s,one:c,options:n,patch:XYt,wrap:eQt};return JAe(e,function(u){if(u.type==="definition"||u.type==="footnoteDefinition"){const d=u.type==="definition"?r:i,f=String(u.identifier).toUpperCase();d.has(f)||d.set(f,u)}}),a;function c(u,d){const f=u.type,p=a.handlers[f];if(NU.call(a.handlers,f)&&p)return p(a,u,d);if(a.options.passThrough&&a.options.passThrough.includes(f)){if("children"in u){const{children:m,...y}=u,v=P3(y);return v.children=a.all(u),v}return P3(u)}return(a.options.unknownHandler||ZYt)(a,u,d)}function l(u){const d=[];if("children"in u){const f=u.children;let p=-1;for(;++p<f.length;){const g=a.one(f[p],u);if(g){if(p&&f[p-1].type==="break"&&(!Array.isArray(g)&&g.type==="text"&&(g.value=Rae(g.value)),!Array.isArray(g)&&g.type==="element")){const m=g.children[0];m&&m.type==="text"&&(m.value=Rae(m.value))}Array.isArray(g)?d.push(...g):d.push(g)}}}return d}}function XYt(e,t){e.position&&(t.position=Oqt(e))}function JYt(e,t){let n=t;if(e&&e.data){const r=e.data.hName,i=e.data.hChildren,o=e.data.hProperties;if(typeof r=="string")if(n.type==="element")n.tagName=r;else{const s="children"in n?n.children:[n];n={type:"element",tagName:r,properties:{},children:s}}n.type==="element"&&o&&Object.assign(n.properties,P3(o)),"children"in n&&n.children&&i!==null&&i!==void 0&&(n.children=i)}return n}function ZYt(e,t){const n=t.data||{},r="value"in t&&!(NU.call(n,"hProperties")||NU.call(n,"hChildren"))?{type:"text",value:t.value}:{type:"element",tagName:"div",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function eQt(e,t){const n=[];let r=-1;for(t&&n.push({type:"text",value:`
1613`});++r<e.length;)r&&n.push({type:"text",value:`
1614`}),n.push(e[r]);return t&&e.length>0&&n.push({type:"text",value:`
1615`}),n}function Rae(e){let t=0,n=e.charCodeAt(t);for(;n===9||n===32;)t++,n=e.charCodeAt(t);return e.slice(t)}function Pae(e,t){const n=QYt(e,t),r=n.one(e,void 0),i=UYt(n),o=Array.isArray(r)?{type:"root",children:r}:r||{type:"root",children:[]};return i&&o.children.push({type:"text",value:`
1616`},i),o}function tQt(e,t){return e&&"run"in e?async function(n,r){const i=Pae(n,{file:r,...t});await e.run(i,r)}:function(n,r){return Pae(n,{file:r,...e||t})}}function Oae(e){if(e)throw e}var yA=Object.prototype.hasOwnProperty,ZAe=Object.prototype.toString,Nae=Object.defineProperty,Mae=Object.getOwnPropertyDescriptor,Dae=function(t){return typeof Array.isArray=="function"?Array.isArray(t):ZAe.call(t)==="[object Array]"},Lae=function(t){if(!t||ZAe.call(t)!=="[object Object]")return!1;var n=yA.call(t,"constructor"),r=t.constructor&&t.constructor.prototype&&yA.call(t.constructor.prototype,"isPrototypeOf");if(t.constructor&&!n&&!r)return!1;var i;for(i in t);return typeof i>"u"||yA.call(t,i)},Fae=function(t,n){Nae&&n.name==="__proto__"?Nae(t,n.name,{enumerable:!0,configurable:!0,value:n.newValue,writable:!0}):t[n.name]=n.newValue},jae=function(t,n){if(n==="__proto__")if(yA.call(t,n)){if(Mae)return Mae(t,n).value}else return;return t[n]},nQt=function e(){var t,n,r,i,o,s,a=arguments[0],c=1,l=arguments.length,u=!1;for(typeof a=="boolean"&&(u=a,a=arguments[1]||{},c=2),(a==null||typeof a!="object"&&typeof a!="function")&&(a={});c<l;++c)if(t=arguments[c],t!=null)for(n in t)r=jae(a,n),i=jae(t,n),a!==i&&(u&&i&&(Lae(i)||(o=Dae(i)))?(o?(o=!1,s=r&&Dae(r)?r:[]):s=r&&Lae(r)?r:{},Fae(a,{name:n,newValue:e(u,s,i)})):typeof i<"u"&&Fae(a,{name:n,newValue:i}));return a};const HD=io(nQt);function MU(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function rQt(){const e=[],t={run:n,use:r};return t;function n(...i){let o=-1;const s=i.pop();if(typeof s!="function")throw new TypeError("Expected function as last argument, not "+s);a(null,...i);function a(c,...l){const u=e[++o];let d=-1;if(c){s(c);return}for(;++d<i.length;)(l[d]===null||l[d]===void 0)&&(l[d]=i[d]);i=l,u?iQt(u,a)(...l):s(null,...l)}}function r(i){if(typeof i!="function")throw new TypeError("Expected `middelware` to be a function, not "+i);return e.push(i),t}}function iQt(e,t){let n;return r;function r(...s){const a=e.length>s.length;let c;a&&s.push(i);try{c=e.apply(this,s)}catch(l){const u=l;if(a&&n)throw u;return i(u)}a||(c&&c.then&&typeof c.then=="function"?c.then(o,i):c instanceof Error?i(c):o(c))}function i(s,...a){n||(n=!0,t(s,...a))}function o(s){i(null,s)}}const Du={basename:oQt,dirname:sQt,extname:aQt,join:cQt,sep:"/"};function oQt(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');v2(e);let n=0,r=-1,i=e.length,o;if(t===void 0||t.length===0||t.length>e.length){for(;i--;)if(e.codePointAt(i)===47){if(o){n=i+1;break}}else r<0&&(o=!0,r=i+1);return r<0?"":e.slice(n,r)}if(t===e)return"";let s=-1,a=t.length-1;for(;i--;)if(e.codePointAt(i)===47){if(o){n=i+1;break}}else s<0&&(o=!0,s=i+1),a>-1&&(e.codePointAt(i)===t.codePointAt(a--)?a<0&&(r=i):(a=-1,r=s));return n===r?r=s:r<0&&(r=e.length),e.slice(n,r)}function sQt(e){if(v2(e),e.length===0)return".";let t=-1,n=e.length,r;for(;--n;)if(e.codePointAt(n)===47){if(r){t=n;break}}else r||(r=!0);return t<0?e.codePointAt(0)===47?"/":".":t===1&&e.codePointAt(0)===47?"//":e.slice(0,t)}function aQt(e){v2(e);let t=e.length,n=-1,r=0,i=-1,o=0,s;for(;t--;){const a=e.codePointAt(t);if(a===47){if(s){r=t+1;break}continue}n<0&&(s=!0,n=t+1),a===46?i<0?i=t:o!==1&&(o=1):i>-1&&(o=-1)}return i<0||n<0||o===0||o===1&&i===n-1&&i===r+1?"":e.slice(i,n)}function cQt(...e){let t=-1,n;for(;++t<e.length;)v2(e[t]),e[t]&&(n=n===void 0?e[t]:n+"/"+e[t]);return n===void 0?".":lQt(n)}function lQt(e){v2(e);const t=e.codePointAt(0)===47;let n=uQt(e,!t);return n.length===0&&!t&&(n="."),n.length>0&&e.codePointAt(e.length-1)===47&&(n+="/"),t?"/"+n:n}function uQt(e,t){let n="",r=0,i=-1,o=0,s=-1,a,c;for(;++s<=e.length;){if(s<e.length)a=e.codePointAt(s);else{if(a===47)break;a=47}if(a===47){if(!(i===s-1||o===1))if(i!==s-1&&o===2){if(n.length<2||r!==2||n.codePointAt(n.length-1)!==46||n.codePointAt(n.length-2)!==46){if(n.length>2){if(c=n.lastIndexOf("/"),c!==n.length-1){c<0?(n="",r=0):(n=n.slice(0,c),r=n.length-1-n.lastIndexOf("/")),i=s,o=0;continue}}else if(n.length>0){n="",r=0,i=s,o=0;continue}}t&&(n=n.length>0?n+"/..":"..",r=2)}else n.length>0?n+="/"+e.slice(i+1,s):n=e.slice(i+1,s),r=s-i-1;i=s,o=0}else a===46&&o>-1?o++:o=-1}return n}function v2(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const dQt={cwd:fQt};function fQt(){return"/"}function DU(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function hQt(e){if(typeof e=="string")e=new URL(e);else if(!DU(e)){const t=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if(e.protocol!=="file:"){const t=new TypeError("The URL must be of scheme file");throw t.code="ERR_INVALID_URL_SCHEME",t}return pQt(e)}function pQt(e){if(e.hostname!==""){const r=new TypeError('File URL host must be "localhost" or empty on darwin');throw r.code="ERR_INVALID_FILE_URL_HOST",r}const t=e.pathname;let n=-1;for(;++n<t.length;)if(t.codePointAt(n)===37&&t.codePointAt(n+1)===50){const r=t.codePointAt(n+2);if(r===70||r===102){const i=new TypeError("File URL path must not include encoded / characters");throw i.code="ERR_INVALID_FILE_URL_PATH",i}}return decodeURIComponent(t)}const zD=["history","path","basename","stem","extname","dirname"];class eIe{constructor(t){let n;t?DU(t)?n={path:t}:typeof t=="string"||mQt(t)?n={value:t}:n=t:n={},this.cwd="cwd"in n?"":dQt.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let r=-1;for(;++r<zD.length;){const o=zD[r];o in n&&n[o]!==void 0&&n[o]!==null&&(this[o]=o==="history"?[...n[o]]:n[o])}let i;for(i in n)zD.includes(i)||(this[i]=n[i])}get basename(){return typeof this.path=="string"?Du.basename(this.path):void 0}
vendor: 8,972 bytes, line 1616
1616set basename(t){WD(t,"basename"),VD(t,"basename"),this.path=Du.join(this.dirname||"",t)}get dirname(){return typeof this.path=="string"?Du.dirname(this.path):void 0}set dirname(t){Uae(this.basename,"dirname"),this.path=Du.join(t||"",this.basename)}get extname(){return typeof this.path=="string"?Du.extname(this.path):void 0}set extname(t){if(VD(t,"extname"),Uae(this.dirname,"extname"),t){if(t.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(t.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=Du.join(this.dirname,this.stem+(t||""))}get path(){return this.history[this.history.length-1]}set path(t){DU(t)&&(t=hQt(t)),WD(t,"path"),this.path!==t&&this.history.push(t)}get stem(){return typeof this.path=="string"?Du.basename(this.path,this.extname):void 0}set stem(t){WD(t,"stem"),VD(t,"stem"),this.path=Du.join(this.dirname||"",t+(this.extname||""))}fail(t,n,r){const i=this.message(t,n,r);throw i.fatal=!0,i}info(t,n,r){const i=this.message(t,n,r);return i.fatal=void 0,i}message(t,n,r){const i=new As(t,n,r);return this.path&&(i.name=this.path+":"+i.name,i.file=this.path),i.fatal=!1,this.messages.push(i),i}toString(t){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(t||void 0).decode(this.value)}}function VD(e,t){if(e&&e.includes(Du.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+Du.sep+"`")}function WD(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function Uae(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}function mQt(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const gQt=(function(e){const r=this.constructor.prototype,i=r[e],o=function(){return i.apply(o,arguments)};return Object.setPrototypeOf(o,r),o}),vQt={}.hasOwnProperty;class CG extends gQt{constructor(){super("copy"),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=rQt()}copy(){const t=new CG;let n=-1;for(;++n<this.attachers.length;){const r=this.attachers[n];t.use(...r)}return t.data(HD(!0,{},this.namespace)),t}data(t,n){return typeof t=="string"?arguments.length===2?(KD("data",this.frozen),this.namespace[t]=n,this):vQt.call(this.namespace,t)&&this.namespace[t]||void 0:t?(KD("data",this.frozen),this.namespace=t,this):this.namespace}freeze(){if(this.frozen)return this;const t=this;for(;++this.freezeIndex<this.attachers.length;){const[n,...r]=this.attachers[this.freezeIndex];if(r[0]===!1)continue;r[0]===!0&&(r[0]=void 0);const i=n.call(t,...r);typeof i=="function"&&this.transformers.use(i)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(t){this.freeze();const n=Dk(t),r=this.parser||this.Parser;return qD("parse",r),r(String(n),n)}process(t,n){const r=this;return this.freeze(),qD("process",this.parser||this.Parser),GD("process",this.compiler||this.Compiler),n?i(void 0,n):new Promise(i);function i(o,s){const a=Dk(t),c=r.parse(a);r.run(c,a,function(u,d,f){if(u||!d||!f)return l(u);const p=d,g=r.stringify(p,f);wQt(g)?f.value=g:f.result=g,l(u,f)});function l(u,d){u||!d?s(u):o?o(d):n(void 0,d)}}}processSync(t){let n=!1,r;return this.freeze(),qD("processSync",this.parser||this.Parser),GD("processSync",this.compiler||this.Compiler),this.process(t,i),$ae("processSync","process",n),r;function i(o,s){n=!0,Oae(o),r=s}}run(t,n,r){Bae(t),this.freeze();const i=this.transformers;return!r&&typeof n=="function"&&(r=n,n=void 0),r?o(void 0,r):new Promise(o);function o(s,a){const c=Dk(n);i.run(t,c,l);function l(u,d,f){const p=d||t;u?a(u):s?s(p):r(void 0,p,f)}}}runSync(t,n){let r=!1,i;return this.run(t,n,o),$ae("runSync","run",r),i;function o(s,a){Oae(s),i=a,r=!0}}stringify(t,n){this.freeze();const r=Dk(n),i=this.compiler||this.Compiler;return GD("stringify",i),Bae(t),i(t,r)}use(t,...n){const r=this.attachers,i=this.namespace;if(KD("use",this.frozen),t!=null)if(typeof t=="function")c(t,n);else if(typeof t=="object")Array.isArray(t)?a(t):s(t);else throw new TypeError("Expected usable value, not `"+t+"`");return this;function o(l){if(typeof l=="function")c(l,[]);else if(typeof l=="object")if(Array.isArray(l)){const[u,...d]=l;c(u,d)}else s(l);else throw new TypeError("Expected usable value, not `"+l+"`")}function s(l){if(!("plugins"in l)&&!("settings"in l))throw new Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");a(l.plugins),l.settings&&(i.settings=HD(!0,i.settings,l.settings))}function a(l){let u=-1;if(l!=null)if(Array.isArray(l))for(;++u<l.length;){const d=l[u];o(d)}else throw new TypeError("Expected a list of plugins, not `"+l+"`")}function c(l,u){let d=-1,f=-1;for(;++d<r.length;)if(r[d][0]===l){f=d;break}if(f===-1)r.push([l,...u]);else if(u.length>0){let[p,...g]=u;const m=r[f][1];MU(m)&&MU(p)&&(p=HD(!0,m,p)),r[f]=[l,p,...g]}}}}const yQt=new CG().freeze();function qD(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function GD(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function KD(e,t){if(t)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function Bae(e){if(!MU(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function $ae(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function Dk(e){return bQt(e)?e:new eIe(e)}function bQt(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function wQt(e){return typeof e=="string"||SQt(e)}function SQt(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const _Qt="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",Hae=[],zae={allowDangerousHtml:!0},CQt=/^(https?|ircs?|mailto|xmpp)$/i,EQt=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function TQt(e){const t=e.allowedElements,n=e.allowElement,r=e.children||"",i=e.className,o=e.components,s=e.disallowedElements,a=e.rehypePlugins||Hae,c=e.remarkPlugins||Hae,l=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...zae}:zae,u=e.skipHtml,d=e.unwrapDisallowed,f=e.urlTransform||kQt,p=yQt().use(sYt).use(c).use(tQt,l).use(a),g=new eIe;typeof r=="string"&&(g.value=r);for(const w of EQt)Object.hasOwn(e,w.from)&&(""+w.from+(w.to?"use `"+w.to+"` instead":"remove it")+_Qt+w.id,void 0);const m=p.parse(g);let y=p.runSync(m,g);return i&&(y={type:"element",tagName:"div",properties:{className:i},children:y.type==="root"?y.children:[y]}),JAe(y,v),jqt(y,{Fragment:h.Fragment,components:o,ignoreInvalidStyle:!0,jsx:h.jsx,jsxs:h.jsxs,passKeys:!0,passNode:!0});function v(w,S,C){if(w.type==="raw"&&C&&typeof S=="number")return u?C.children.splice(S,1):C.children[S]={type:"text",value:w.value},S;if(w.type==="element"){let E;for(E in UD)if(Object.hasOwn(UD,E)&&Object.hasOwn(w.properties,E)){const T=w.properties[E],x=UD[E];(x===null||x.includes(w.tagName))&&(w.properties[E]=f(String(T||""),E,w))}}if(w.type==="element"){let E=t?!t.includes(w.tagName):s?s.includes(w.tagName):!1;if(!E&&n&&typeof S=="number"&&(E=!n(w,S,C)),E&&C&&typeof S=="number")return d&&w.children?C.children.splice(S,1,...w.children):C.children.splice(S,1),S}}}function kQt(e){const t=e.indexOf(":"),n=e.indexOf("?"),r=e.indexOf("#"),i=e.indexOf("/");return t===-1||i!==-1&&t>i||n!==-1&&t>n||r!==-1&&t>r||CQt.test(e.slice(0,t))?e:""}const xQt="_ShareRecording_1fp4o_11",AQt="_Trigger_1fp4o_23",IQt="_Content_1fp4o_44",YD={ShareRecording:xQt,Trigger:AQt,Content:IQt},RQt=({recordingId:e,isPublic:t})=>{const[n,r]=b.useState(t),[i,o]=b.useState(!1),s=Cn(),a=Gt.useUpdateRecordingVisibility(s),c=`${window.location.origin}/recording/${e}`,l=async()=>{await navigator.clipboard.writeText(c),o(!0),setTimeout(()=>
1616o(!1),2e3),u(!0)},u=async d=>{typeof d=="boolean"&&d!==n&&(r(d),await a({recording_id:e,public:d}))};return h.jsx(xs,{title:"Share recording",trigger:h.jsxs(qe,{children:[h.jsx(UE,{}),"Share"]}),content:h.jsxs("div",{className:YD.ShareRecording,children:[h.jsx(Ia,{selected:n,onChange:u,triggerClassName:YD.Trigger,contentClassName:YD.Content,items:[{value:!1,label:h.jsxs(h.Fragment,{children:[h.jsx(Drt,{}),"Only host or participants can view"]})},{value:!0,label:h.jsxs(h.Fragment,{children:[h.jsx(Lrt,{}),"Anyone with link can view"]})}]}),h.jsx(qe,{onClick:l,color:"gray",backgroundColor:"black",children:i?h.jsxs(h.Fragment,{children:[h.jsx(lm,{}),"Copied!"]}):h.jsxs(h.Fragment,{children:[h.jsx(DH,{}),"Copy link"]})})]})})};var PQt=Object.defineProperty,OQt=Object.defineProperties,NQt=Object.getOwnPropertyDescriptors,Vae=Object.getOwnPropertySymbols,MQt=Object.prototype.hasOwnProperty,DQt=Object.prototype.propertyIsEnumerable,LU=(e,t,n)=>t in e?PQt(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,On=(e,t)=>{for(var n in t||(t={}))MQt.call(t,n)&&LU(e,n,t[n]);if(Vae)for(var n of Vae(t))DQt.call(t,n)&&LU(e,n,t[n]);return e},YC=(e,t)=>OQt(e,NQt(t)),Ve=(e,t,n)=>LU(e,typeof t!="symbol"?t+"":t,n),Lk=(e,t,n)=>new Promise((r,i)=>{var o=c=>{try{a(n.next(c))}catch(l){i(l)}},s=c=>{try{a(n.throw(c))}catch(l){i(l)}},a=c=>c.done?r(c.value):Promise.resolve(c.value).then(o,s);a((n=n.apply(e,t)).next())});class O3{constructor(t){Ve(this,"rootKey"),this.rootKey=t}}const LQt=Object.seal({});class Ke extends O3{constructor(t){super(t),Ve(this,"root"),this.root=new Array}prepForXml(t){var n;t.stack.push(this);const r=this.root.map(i=>i instanceof O3?i.prepForXml(t):i).filter(i=>i!==void 0);return t.stack.pop(),{[this.rootKey]:r.length?r.length===1&&((n=r[0])!=null&&n._attr)?r[0]:r:LQt}}addChildElement(t){return this.root.push(t),this}}class p4 extends Ke{prepForXml(t){const n=super.prepForXml(t);if(n&&(typeof n[this.rootKey]!="object"||Object.keys(n[this.rootKey]).length))return n}}class Dt extends O3{constructor(t){super("_attr"),Ve(this,"xmlKeys"),this.root=t}prepForXml(t){const n={};return Object.entries(this.root).forEach(([r,i])=>{if(i!==void 0){const o=this.xmlKeys&&this.xmlKeys[r]||r;n[o]=i}}),{_attr:n}}}class y2 extends O3{constructor(t){super("_attr"),this.root=t}prepForXml(t){return{_attr:Object.values(this.root).filter(({value:r})=>r!==void 0).reduce((r,{key:i,value:o})=>YC(On({},r),{[i]:o}),{})}}}class qi extends Dt{constructor(){super(...arguments),Ve(this,"xmlKeys",{val:"w:val",color:"w:color",fill:"w:fill",space:"w:space",sz:"w:sz",type:"w:type",rsidR:"w:rsidR",rsidRPr:"w:rsidRPr",rsidSect:"w:rsidSect",w:"w:w",h:"w:h",top:"w:top",right:"w:right",bottom:"w:bottom",left:"w:left",header:"w:header",footer:"w:footer",gutter:"w:gutter",linePitch:"w:linePitch",pos:"w:pos"})}}var rd=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function tIe(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var QD={},Fk={exports:{}},Wae;function EG(){if(Wae)return Fk.exports;Wae=1;var e=typeof Reflect=="object"?Reflect:null,t=e&&typeof e.apply=="function"?e.apply:function(E,T,x){return Function.prototype.apply.call(E,T,x)},n;e&&typeof e.ownKeys=="function"?n=e.ownKeys:Object.getOwnPropertySymbols?n=function(E){return Object.getOwnPropertyNames(E).concat(Object.getOwnPropertySymbols(E))}:n=function(E){return Object.getOwnPropertyNames(E)};function r(C){console&&console.warn&&console.warn(C)}var i=Number.isNaN||function(E){return E!==E};function o(){o.init.call(this)}Fk.exports=o,Fk.exports.once=v,o.EventEmitter=o,o.prototype._events=void 0,o.prototype._eventsCount=0,o.prototype._maxListeners=void 0;var s=10;function a(C){if(typeof C!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof C)}Object.defineProperty(o,"defaultMaxListeners",{enumerable:!0,get:function(){return s},set:function(C){if(typeof C!="number"||C<0||i(C))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+C+".");s=C}}),o.init=function(){(this._events===void 0||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},o.prototype.setMaxListeners=function(E){if(typeof E!="number"||E<0||i(E))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+E+".");return this._maxListeners=E,this};function c(C){return C._maxListeners===void 0?o.defaultMaxListeners:C._maxListeners}o.prototype.getMaxListeners=function(){return c(this)},o.prototype.emit=function(E){for(var T=[],x=1;x<arguments.length;x++)T.push(arguments[x]);var O=E==="error",A=this._events;if(A!==void 0)O=O&&A.error===void 0;else if(!O)return!1;if(O){var L;if(T.length>0&&(L=T[0]),L instanceof Error)throw L;var U=new Error("Unhandled error."+(L?" ("+L.message+")":""));throw U.context=L,U}var I=A[E];if(I===void 0)return!1;if(typeof I=="function")t(I,this,T);else for(var F=I.length,P=g(I,F),x=0;x<F;++x)t(P[x],this,T);return!0};function l(C,E,T,x){var O,A,L;if(a(T),A=C._events,A===void 0?(A=C._events=Object.create(null),C._eventsCount=0):(A.newListener!==void 0&&(C.emit("newListener",E,T.listener?T.listener:T),A=C._events),L=A[E]),L===void 0)L=A[E]=T,++C._eventsCount;else if(typeof L=="function"?L=A[E]=x?[T,L]:[L,T]:x?L.unshift(T):L.push(T),O=c(C),O>0&&L.length>O&&!L.warned){L.warned=!0;var U=new Error("Possible EventEmitter memory leak detected. "+L.length+" "+String(E)+" listeners added. Use emitter.setMaxListeners() to increase limit");U.name="MaxListenersExceededWarning",U.emitter=C,U.type=E,U.count=L.length,r(U)}return C}o.prototype.addListener=function(E,T){return l(this,E,T,!1)},o.prototype.on=o.prototype.addListener,o.prototype.prependListener=function(E,T){return l(this,E,T,!0)};function u(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function d(C,E,T){var x={fired:!1,wrapFn:void 0,target:C,type:E,listener:T},O=u.bind(x);return O.listener=T,x.wrapFn=O,O}o.prototype.once=function(E,T){return a(T),this.on(E,d(this,E,T)),this},o.prototype.prependOnceListener=function(E,T){return a(T),this.prependListener(E,d(this,E,T)),this},o.prototype.removeListener=function(E,T){var x,O,A,L,U;if(a(T),O=this._events,O===void 0)return this;if(x=O[E],x===void 0)return this;if(x===T||x.listener===T)--this._eventsCount===0?this._events=Object.create(null):(delete O[E],O.removeListener&&this.emit
vendor: 4,757 bytes, line 1616
1616("removeListener",E,x.listener||T));else if(typeof x!="function"){for(A=-1,L=x.length-1;L>=0;L--)if(x[L]===T||x[L].listener===T){U=x[L].listener,A=L;break}if(A<0)return this;A===0?x.shift():m(x,A),x.length===1&&(O[E]=x[0]),O.removeListener!==void 0&&this.emit("removeListener",E,U||T)}return this},o.prototype.off=o.prototype.removeListener,o.prototype.removeAllListeners=function(E){var T,x,O;if(x=this._events,x===void 0)return this;if(x.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):x[E]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete x[E]),this;if(arguments.length===0){var A=Object.keys(x),L;for(O=0;O<A.length;++O)L=A[O],L!=="removeListener"&&this.removeAllListeners(L);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if(T=x[E],typeof T=="function")this.removeListener(E,T);else if(T!==void 0)for(O=T.length-1;O>=0;O--)this.removeListener(E,T[O]);return this};function f(C,E,T){var x=C._events;if(x===void 0)return[];var O=x[E];return O===void 0?[]:typeof O=="function"?T?[O.listener||O]:[O]:T?y(O):g(O,O.length)}o.prototype.listeners=function(E){return f(this,E,!0)},o.prototype.rawListeners=function(E){return f(this,E,!1)},o.listenerCount=function(C,E){return typeof C.listenerCount=="function"?C.listenerCount(E):p.call(C,E)},o.prototype.listenerCount=p;function p(C){var E=this._events;if(E!==void 0){var T=E[C];if(typeof T=="function")return 1;if(T!==void 0)return T.length}return 0}o.prototype.eventNames=function(){return this._eventsCount>0?n(this._events):[]};function g(C,E){for(var T=new Array(E),x=0;x<E;++x)T[x]=C[x];return T}function m(C,E){for(;E+1<C.length;E++)C[E]=C[E+1];C.pop()}function y(C){for(var E=new Array(C.length),T=0;T<E.length;++T)E[T]=C[T].listener||C[T];return E}function v(C,E){return new Promise(function(T,x){function O(L){C.removeListener(E,A),x(L)}function A(){typeof C.removeListener=="function"&&C.removeListener("error",O),T([].slice.call(arguments))}S(C,E,A,{once:!0}),E!=="error"&&w(C,O,{once:!0})})}function w(C,E,T){typeof C.on=="function"&&S(C,"error",E,T)}function S(C,E,T,x){if(typeof C.on=="function")x.once?C.once(E,T):C.on(E,T);else if(typeof C.addEventListener=="function")C.addEventListener(E,function O(A){x.once&&C.removeEventListener(E,O),T(A)});else throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof C)}return Fk.exports}var jk={exports:{}},qae;function zm(){return qae||(qae=1,typeof Object.create=="function"?jk.exports=function(t,n){n&&(t.super_=n,t.prototype=Object.create(n.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:jk.exports=function(t,n){if(n){t.super_=n;var r=function(){};r.prototype=n.prototype,t.prototype=new r,t.prototype.constructor=t}}),jk.exports}function FQt(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var nIe={exports:{}},Gi=nIe.exports={},Uu,Bu;function FU(){throw new Error("setTimeout has not been defined")}function jU(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?Uu=setTimeout:Uu=FU}catch{Uu=FU}try{typeof clearTimeout=="function"?Bu=clearTimeout:Bu=jU}catch{Bu=jU}})();function rIe(e){if(Uu===setTimeout)return setTimeout(e,0);if((Uu===FU||!Uu)&&setTimeout)return Uu=setTimeout,setTimeout(e,0);try{return Uu(e,0)}catch{try{return Uu.call(null,e,0)}catch{return Uu.call(this,e,0)}}}function jQt(e){if(Bu===clearTimeout)return clearTimeout(e);if((Bu===jU||!Bu)&&clearTimeout)return Bu=clearTimeout,clearTimeout(e);try{return Bu(e)}catch{try{return Bu.call(null,e)}catch{return Bu.call(this,e)}}}var Ff=[],Ky=!1,Ig,bA=-1;function UQt(){!Ky||!Ig||(Ky=!1,Ig.length?Ff=Ig.concat(Ff):bA=-1,Ff.length&&iIe())}function iIe(){if(!Ky){var e=rIe(UQt);Ky=!0;for(var t=Ff.length;t;){for(Ig=Ff,Ff=[];++bA<t;)Ig&&Ig[bA].run();bA=-1,t=Ff.length}Ig=null,Ky=!1,jQt(e)}}Gi.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];Ff.push(new oIe(e,t)),Ff.length===1&&!Ky&&rIe(iIe)};function oIe(e,t){this.fun=e,this.array=t}oIe.prototype.run=function(){this.fun.apply(null,this.array)};Gi.title="browser";Gi.browser=!0;Gi.env={};Gi.argv=[];Gi.version="";Gi.versions={};function kh(){}Gi.on=kh;Gi.addListener=kh;Gi.once=kh;Gi.off=kh;Gi.removeListener=kh;Gi.removeAllListeners=kh;Gi.emit=kh;Gi.prependListener=kh;Gi.prependOnceListener=kh;Gi.listeners=function(e){return[]};Gi.binding=function(e){throw new Error("process.binding is not supported")};Gi.cwd=function(){return"/"};Gi.chdir=function(e){throw new Error("process.chdir is not supported")};Gi.umask=function(){return 0};
vendor: 5,033 bytes, lines 1616-1621
1616var BQt=nIe.exports;const pn=FQt(BQt);var XD,Gae;function sIe(){return Gae||(Gae=1,XD=EG().EventEmitter),XD}var JD={},uS={},Kae;function $Qt(){if(Kae)return uS;Kae=1,uS.byteLength=a,uS.toByteArray=l,uS.fromByteArray=f;for(var e=[],t=[],n=typeof Uint8Array<"u"?Uint8Array:Array,r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",i=0,o=r.length;i<o;++i)e[i]=r[i],t[r.charCodeAt(i)]=i;t[45]=62,t[95]=63;function s(p){var g=p.length;if(g%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var m=p.indexOf("=");m===-1&&(m=g);var y=m===g?0:4-m%4;return[m,y]}function a(p){var g=s(p),m=g[0],y=g[1];return(m+y)*3/4-y}function c(p,g,m){return(g+m)*3/4-m}function l(p){var g,m=s(p),y=m[0],v=m[1],w=new n(c(p,y,v)),S=0,C=v>0?y-4:y,E;for(E=0;E<C;E+=4)g=t[p.charCodeAt(E)]<<18|t[p.charCodeAt(E+1)]<<12|t[p.charCodeAt(E+2)]<<6|t[p.charCodeAt(E+3)],w[S++]=g>>16&255,w[S++]=g>>8&255,w[S++]=g&255;return v===2&&(g=t[p.charCodeAt(E)]<<2|t[p.charCodeAt(E+1)]>>4,w[S++]=g&255),v===1&&(g=t[p.charCodeAt(E)]<<10|t[p.charCodeAt(E+1)]<<4|t[p.charCodeAt(E+2)]>>2,w[S++]=g>>8&255,w[S++]=g&255),w}function u(p){return e[p>>18&63]+e[p>>12&63]+e[p>>6&63]+e[p&63]}function d(p,g,m){for(var y,v=[],w=g;w<m;w+=3)y=(p[w]<<16&16711680)+(p[w+1]<<8&65280)+(p[w+2]&255),v.push(u(y));return v.join("")}function f(p){for(var g,m=p.length,y=m%3,v=[],w=16383,S=0,C=m-y;S<C;S+=w)v.push(d(p,S,S+w>C?C:S+w));return y===1?(g=p[m-1],v.push(e[g>>2]+e[g<<4&63]+"==")):y===2&&(g=(p[m-2]<<8)+p[m-1],v.push(e[g>>10]+e[g>>4&63]+e[g<<2&63]+"=")),v.join("")}return uS}var Uk={};/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */var Yae;function HQt(){return Yae||(Yae=1,Uk.read=function(e,t,n,r,i){var o,s,a=i*8-r-1,c=(1<<a)-1,l=c>>1,u=-7,d=n?i-1:0,f=n?-1:1,p=e[t+d];for(d+=f,o=p&(1<<-u)-1,p>>=-u,u+=a;u>0;o=o*256+e[t+d],d+=f,u-=8);for(s=o&(1<<-u)-1,o>>=-u,u+=r;u>0;s=s*256+e[t+d],d+=f,u-=8);if(o===0)o=1-l;else{if(o===c)return s?NaN:(p?-1:1)*(1/0);s=s+Math.pow(2,r),o=o-l}return(p?-1:1)*s*Math.pow(2,o-r)},Uk.write=function(e,t,n,r,i,o){var s,a,c,l=o*8-i-1,u=(1<<l)-1,d=u>>1,f=i===23?Math.pow(2,-24)-Math.pow(2,-77):0,p=r?0:o-1,g=r?1:-1,m=t<0||t===0&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(a=isNaN(t)?1:0,s=u):(s=Math.floor(Math.log(t)/Math.LN2),t*(c=Math.pow(2,-s))<1&&(s--,c*=2),s+d>=1?t+=f/c:t+=f*Math.pow(2,1-d),t*c>=2&&(s++,c/=2),s+d>=u?(a=0,s=u):s+d>=1?(a=(t*c-1)*Math.pow(2,i),s=s+d):(a=t*Math.pow(2,d-1)*Math.pow(2,i),s=0));i>=8;e[n+p]=a&255,p+=g,a/=256,i-=8);for(s=s<<i|a,l+=i;l>0;e[n+p]=s&255,p+=g,s/=256,l-=8);e[n+p-g]|=m*128}),Uk}/*!
1617 * The buffer module from node.js, for the browser.
1618 *
1619 * @author   Feross Aboukhadijeh <https://feross.org>
1620 * @license  MIT
1621 */var Qae;function m4(){return Qae||(Qae=1,(function(e){var t=$Qt(),n=HQt(),r=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;e.Buffer=a,e.SlowBuffer=w,e.INSPECT_MAX_BYTES=50;var i=2147483647;e.kMaxLength=i,a.TYPED_ARRAY_SUPPORT=o(),!a.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function o(){try{var V=new Uint8Array(1),M={foo:function(){return 42}};return Object.setPrototypeOf(M,Uint8Array.prototype),Object.setPrototypeOf(V,M),V.foo()===42}catch{return!1}}Object.defineProperty(a.prototype,"parent",{enumerable:!0,get:function(){if(a.isBuffer(this))return this.buffer}}),Object.defineProperty(a.prototype,"offset",{enumerable:!0,get:function(){if(a.isBuffer(this))return this.byteOffset}});function s(V){if(V>i)throw new RangeError('The value "'+V+'" is invalid for option "size"');var M=new Uint8Array(V);return Object.setPrototypeOf(M,a.prototype),M}function a(V,M,N){if(typeof V=="number"){if(typeof M=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return d(V)}return c(V,M,N)}a.poolSize=8192;function c(V,M,N){if(typeof V=="string")return f(V,M);if(ArrayBuffer.isView(V))return g(V);if(V==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof V);if(Se(V,ArrayBuffer)||V&&Se(V.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(Se(V,SharedArrayBuffer)||V&&Se(V.buffer,SharedArrayBuffer)))return m(V,M,N);if(typeof V=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var $=V.valueOf&&V.valueOf();if($!=null&&$!==V)return a.from($,M,N);var ce=y(V);if(ce)return ce;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof V[Symbol.toPrimitive]=="function")return a.from(V[Symbol.toPrimitive]("string"),M,N);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof V)}a.from=function(V,M,N){return c(V,M,N)},Object.setPrototypeOf(a.prototype,Uint8Array.prototype),Object.setPrototypeOf(a,Uint8Array);
vendor: 11,754 bytes, line 1621
1621function l(V){if(typeof V!="number")throw new TypeError('"size" argument must be of type number');if(V<0)throw new RangeError('The value "'+V+'" is invalid for option "size"')}function u(V,M,N){return l(V),V<=0?s(V):M!==void 0?typeof N=="string"?s(V).fill(M,N):s(V).fill(M):s(V)}a.alloc=function(V,M,N){return u(V,M,N)};function d(V){return l(V),s(V<0?0:v(V)|0)}a.allocUnsafe=function(V){return d(V)},a.allocUnsafeSlow=function(V){return d(V)};function f(V,M){if((typeof M!="string"||M==="")&&(M="utf8"),!a.isEncoding(M))throw new TypeError("Unknown encoding: "+M);var N=S(V,M)|0,$=s(N),ce=$.write(V,M);return ce!==N&&($=$.slice(0,ce)),$}function p(V){for(var M=V.length<0?0:v(V.length)|0,N=s(M),$=0;$<M;$+=1)N[$]=V[$]&255;return N}function g(V){if(Se(V,Uint8Array)){var M=new Uint8Array(V);return m(M.buffer,M.byteOffset,M.byteLength)}return p(V)}function m(V,M,N){if(M<0||V.byteLength<M)throw new RangeError('"offset" is outside of buffer bounds');if(V.byteLength<M+(N||0))throw new RangeError('"length" is outside of buffer bounds');var $;return M===void 0&&N===void 0?$=new Uint8Array(V):N===void 0?$=new Uint8Array(V,M):$=new Uint8Array(V,M,N),Object.setPrototypeOf($,a.prototype),$}function y(V){if(a.isBuffer(V)){var M=v(V.length)|0,N=s(M);return N.length===0||V.copy(N,0,0,M),N}if(V.length!==void 0)return typeof V.length!="number"||H(V.length)?s(0):p(V);if(V.type==="Buffer"&&Array.isArray(V.data))return p(V.data)}function v(V){if(V>=i)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+i.toString(16)+" bytes");return V|0}function w(V){return+V!=V&&(V=0),a.alloc(+V)}a.isBuffer=function(M){return M!=null&&M._isBuffer===!0&&M!==a.prototype},a.compare=function(M,N){if(Se(M,Uint8Array)&&(M=a.from(M,M.offset,M.byteLength)),Se(N,Uint8Array)&&(N=a.from(N,N.offset,N.byteLength)),!a.isBuffer(M)||!a.isBuffer(N))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(M===N)return 0;for(var $=M.length,ce=N.length,pe=0,fe=Math.min($,ce);pe<fe;++pe)if(M[pe]!==N[pe]){$=M[pe],ce=N[pe];break}return $<ce?-1:ce<$?1:0},a.isEncoding=function(M){switch(String(M).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},a.concat=function(M,N){if(!Array.isArray(M))throw new TypeError('"list" argument must be an Array of Buffers');if(M.length===0)return a.alloc(0);var $;if(N===void 0)for(N=0,$=0;$<M.length;++$)N+=M[$].length;var ce=a.allocUnsafe(N),pe=0;for($=0;$<M.length;++$){var fe=M[$];if(Se(fe,Uint8Array))pe+fe.length>ce.length?a.from(fe).copy(ce,pe):Uint8Array.prototype.set.call(ce,fe,pe);else if(a.isBuffer(fe))fe.copy(ce,pe);else throw new TypeError('"list" argument must be an Array of Buffers');pe+=fe.length}return ce};function S(V,M){if(a.isBuffer(V))return V.length;if(ArrayBuffer.isView(V)||Se(V,ArrayBuffer))return V.byteLength;if(typeof V!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof V);var N=V.length,$=arguments.length>2&&arguments[2]===!0;if(!$&&N===0)return 0;for(var ce=!1;;)switch(M){case"ascii":case"latin1":case"binary":return N;case"utf8":case"utf-8":return B(V).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return N*2;case"hex":return N>>>1;case"base64":return ne(V).length;default:if(ce)return $?-1:B(V).length;M=(""+M).toLowerCase(),ce=!0}}a.byteLength=S;function C(V,M,N){var $=!1;if((M===void 0||M<0)&&(M=0),M>this.length||((N===void 0||N>this.length)&&(N=this.length),N<=0)||(N>>>=0,M>>>=0,N<=M))return"";for(V||(V="utf8");;)switch(V){case"hex":return Z(this,M,N);case"utf8":case"utf-8":return P(this,M,N);case"ascii":return Y(this,M,N);case"latin1":case"binary":return X(this,M,N);case"base64":return F(this,M,N);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return G(this,M,N);default:if($)throw new TypeError("Unknown encoding: "+V);V=(V+"").toLowerCase(),$=!0}}a.prototype._isBuffer=!0;function E(V,M,N){var $=V[M];V[M]=V[N],V[N]=$}a.prototype.swap16=function(){var M=this.length;if(M%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var N=0;N<M;N+=2)E(this,N,N+1);return this},a.prototype.swap32=function(){var M=this.length;if(M%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var N=0;N<M;N+=4)E(this,N,N+3),E(this,N+1,N+2);return this},a.prototype.swap64=function(){var M=this.length;if(M%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var N=0;N<M;N+=8)E(this,N,N+7),E(this,N+1,N+6),E(this,N+2,N+5),E(this,N+3,N+4);return this},a.prototype.toString=function(){var M=this.length;return M===0?"":arguments.length===0?P(this,0,M):C.apply(this,arguments)},a.prototype.toLocaleString=a.prototype.toString,a.prototype.equals=function(M){if(!a.isBuffer(M))throw new TypeError("Argument must be a Buffer");return this===M?!0:a.compare(this,M)===0},a.prototype.inspect=function(){var M="",N=e.INSPECT_MAX_BYTES;return M=this.toString("hex",0,N).replace(/(.{2})/g,"$1 ").trim(),this.length>N&&(M+=" ... "),"<Buffer "+M+">"},r&&(a.prototype[r]=a.prototype.inspect),a.prototype.compare=function(M,N,$,ce,pe){if(Se(M,Uint8Array)&&(M=a.from(M,M.offset,M.byteLength)),!a.isBuffer(M))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof M);if(N===void 0&&(N=0),$===void 0&&($=M?M.length:0),ce===void 0&&(ce=0),pe===void 0&&(pe=this.length),N<0||$>M.length||ce<0||pe>this.length)throw new RangeError("out of range index");if(ce>=pe&&N>=$)return 0;if(ce>=pe)return-1;if(N>=$)return 1;if(N>>>=0,$>>>=0,ce>>>=0,pe>>>=0,this===M)return 0;for(var fe=pe-ce,we=$-N,Ee=Math.min(fe,we),xe=this.slice(ce,pe),ve=M.slice(N,$),ke=0;ke<Ee;++ke)if(xe[ke]!==ve[ke]){fe=xe[ke],we=ve[ke];break}return fe<we?-1:we<fe?1:0};function T(V,M,N,$,ce){if(V.length===0)return-1;if(typeof N=="string"?($=N,N=0):N>2147483647?N=2147483647:N<-2147483648&&(N=-2147483648),N=+N,H(N)&&(N=ce?0:V.length-1),N<0&&(N=V.length+N),N>=V.length){if(ce)return-1;N=V.length-1}else if(N<0)if(ce)N=0;else return-1;if(typeof M=="string"&&(M=a.from(M,$)),a.isBuffer(M))return M.length===0?-1:x(V,M,N,$,ce);if(typeof M=="number")return M=M&255,typeof Uint8Array.prototype.indexOf=="function"?ce?Uint8Array.prototype.indexOf.call(V,M,N):Uint8Array.prototype.lastIndexOf.call(V,M,N):x(V,[M],N,$,ce);throw new TypeError("val must be string, number or Buffer")}function x(V,M,N,$,ce){var pe=1,fe=V.length,we=M.length;if($!==void 0&&($=String($).toLowerCase(),$==="ucs2"||$==="ucs-2"||$==="utf16le"||$==="utf-16le")){if(V.length<2||M.length<2)return-1;pe=2,fe/=2,we/=2,N/=2}function Ee(Ge,vt){return pe===1?Ge[vt]:Ge.readUInt16BE(vt*pe)}var xe;if(ce){var ve=-1;for(xe=N;xe<fe;xe++)if(Ee(V,xe)===Ee(M,ve===-1?0:xe-ve)){if(ve===-1&&(ve=xe),xe-ve+1===we)return ve*pe}else ve!==-1&&(xe-=xe-ve),ve=-1}else for(N+we>fe&&(N=fe-we),xe=N;xe>=0;xe--){for(var ke=!0,He=0;He<we;He++)if(Ee(V,xe+He)!==Ee(M,He)){ke=!1;break}if(ke)return xe}return-1}a.prototype.includes=function(M,N,$){return this.indexOf(M,N,$)!==-1},a.prototype.indexOf=function(M,N,$){return T(this,M,N,$,!0)},a.prototype.lastIndexOf=function(M,N,$){return T(this,M,N,$,!1)};function O(V,M,N,$){N=Number(N)||0;var ce=V.length-N;$?($=Number($),$>ce&&($=ce)):$=ce;var pe=M.length;$>pe/2&&($=pe/2);for(var fe=0;fe<$;++fe){var we=parseInt(M.substr(fe*2,2),16);if(H(we))return fe;V[N+fe]=we}return fe}function A(V,M,N,$){return J(B(M,V.length-N),V,N,$)}function L(V,M,N,$){return J(re(M),V,N,$)}function U(V,M,N,$){return J(ne(M),V,N,$)}function I(V,M,N,$){return J(oe(M,V.length-N),V,N,$)}a.prototype.write=function(M,N,$,ce){if(N===void 0)ce="utf8",$=this.length,N=0;else if($===void 0&&typeof N=="string")ce=N,$=this.length,N=0;else if(isFinite(N))N=N>>>0,isFinite($)?($=$>>>0,ce===void 0&&(ce="utf8")):(ce=$,$=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var pe=this.length-N;if(($===void 0||$>pe)&&($=pe),M.length>0&&($<0||N<0)||N>this.length)throw new RangeError("Attempt to write outside buffer bounds");ce||(ce="utf8");for(var fe=!1;;)switch(ce){case"hex":return O(this,M,N,$);case"utf8":case"utf-8":return A(this,M,N,$);case"ascii":case"latin1":case"binary":return L(this,M,N,$);case"base64":return U(this,M,N,$);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return I(this,M,N,$);default:if(fe)throw new TypeError("Unknown encoding: "+ce);ce=(""+ce).toLowerCase(),fe=!0}},a.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function F(V,M,N){return M===0&&N===V.length?t.fromByteArray(V):t.fromByteArray(V.slice(M,N))}function P(V,M,N){N=Math.min(V.length,N);for(var $=[],ce=M;ce<N;){var pe=V[ce],fe=null,we=pe>239?4:pe>223?3:pe>191?2:1;if(ce+we<=N){var Ee,xe,ve,ke;switch(we){case 1:pe<128&&(fe=pe);break;case 2:Ee=V[ce+1],(Ee&192)===128&&(ke=(pe&31)<<6|Ee&63,ke>127&&(fe=ke));break;case 3:Ee=V[ce+1],xe=V[ce+2],(Ee&192)===128&&(xe&192)===128&&(ke=(pe&15)<<12|(Ee&63)<<6|xe&63,ke>2047&&(ke<55296||ke>57343)&&(fe=ke));break;case 4:Ee=V[ce+1],xe=V[ce+2],ve=V[ce+3],(Ee&192)===128&&(xe&192)===128&&(ve&192)===128&&(ke=(pe&15)<<18|(Ee&63)<<12|(xe&63)<<6|ve&63,ke>65535&&ke<1114112&&(fe=ke))}}fe===null?(fe=65533,we=1):fe>65535&&(fe-=65536,$.push(fe>>>10&1023|55296),fe=56320|fe&1023),$.push(fe),ce+=we}return ee($)}var W=4096;function ee(V){var M=V.length;if(M<=W)return String.fromCharCode.apply(String,V);for(var N="",$=0;$<M;)N+=String.fromCharCode.apply(String,V.slice($,$+=W));return N}function Y(V,M,N){var $="";N=Math.min(V.length,N);for(var ce=M;ce<N;++ce)$+=String.fromCharCode(V[ce]&127);return $}function X(V,M,N){var $="";N=Math.min(V.length,N);for(var ce=M;ce<N;++ce)$+=String.fromCharCode(V[ce]);return $}function Z(V,M,N){var $=V.length;(!M||M<0)&&(M=0),(!N||N<0||N>$)&&(N=$);for(var ce="",pe=M;pe<N;++pe)ce+=be[V[pe]];return ce}function G(V,M,N){for(var $=V.slice(M,N),ce="",pe=0;pe<$.length-1;pe+=2)ce+=String.fromCharCode($[pe]+$[pe+1]*256);return ce}a.prototype.slice=function(M,N){var $=this.length;M=~~M,N=N===void 0?$:~~N,M<0?(M+=$,M<0&&(M=0)):M>$&&(M=$),N<0?(N+=$,N<0&&(N=0)):N>$&&(N=$),N<M&&(N=M);var ce=this.subarray(M,N);return Object.setPrototypeOf(ce,a.prototype),ce};function Q(V,M,N){if(V%1!==0||V<0)throw new RangeError("offset is not uint");if(V+M>N)throw new RangeError("Trying to access beyond buffer length")}a.prototype.readUintLE=a.prototype.readUIntLE=function(M,N,$){M=M>>>0,N=N>>>0,$||Q(M,N,this.length);for(var ce=this[M],pe=1,fe=0;++fe<N&&(pe*=256);)ce+=this[M+fe]*pe;return ce},a.prototype.readUintBE=a.prototype.readUIntBE=function(M,N,$){M=M>>>0,N=N>>>0,$||Q(M,N,this.length);for(var ce=this[M+--N],pe=1;N>0&&(pe*=256);)ce+=this[M+--N]*pe;return ce},a.prototype.readUint8=a.prototype.readUInt8=function(M,N){return M=M>>>0,N||Q(M,1,this.length),this[M]},a.prototype.readUint16LE=a.prototype.readUInt16LE=function(M,N){return M=M>>>0,N||Q(M,2,this.length),this[M]|this[M+1]<<8},a.prototype.readUint16BE=a.prototype.readUInt16BE=function(M,N){return M=M>>>0,N||Q(M,2,this.length),this[M]<<8|this[M+1]},a.prototype.readUint32LE=a.prototype.readUInt32LE=function(M,N){return M=M>>>0,N||Q(M,4,this.length),(this[M]|this[M+1]<<8|this[M+2]<<16)+this[M+3]*16777216},a.prototype.readUint32BE=a.prototype.readUInt32BE=function(M,N){return M=M>>>0,N||Q(M,4,this.length),this[M]*16777216+(this[M+1]<<16|this[M+2]<<8|this[M+3])},a.prototype.readIntLE=function(M,N,$){M=M>>>0,N=N>>>0,$||Q(M,N,this.length);for(var ce=this[M],pe=1,fe=0;++fe<N&&(pe*=256);)ce+=this[M+fe]*pe;return pe*=128,ce>=pe&&(ce-=Math.pow(2,8*N)),ce},a.prototype.readIntBE=function(M,N,$){M=M>>>0,N=N>>>0,$||Q(M,N,this.length);for(var ce=N,pe=1,fe=this[M+--ce];ce>0&&(pe*=256);
vendor: 5,034 bytes, line 1621
1621)fe+=this[M+--ce]*pe;return pe*=128,fe>=pe&&(fe-=Math.pow(2,8*N)),fe},a.prototype.readInt8=function(M,N){return M=M>>>0,N||Q(M,1,this.length),this[M]&128?(255-this[M]+1)*-1:this[M]},a.prototype.readInt16LE=function(M,N){M=M>>>0,N||Q(M,2,this.length);var $=this[M]|this[M+1]<<8;return $&32768?$|4294901760:$},a.prototype.readInt16BE=function(M,N){M=M>>>0,N||Q(M,2,this.length);var $=this[M+1]|this[M]<<8;return $&32768?$|4294901760:$},a.prototype.readInt32LE=function(M,N){return M=M>>>0,N||Q(M,4,this.length),this[M]|this[M+1]<<8|this[M+2]<<16|this[M+3]<<24},a.prototype.readInt32BE=function(M,N){return M=M>>>0,N||Q(M,4,this.length),this[M]<<24|this[M+1]<<16|this[M+2]<<8|this[M+3]},a.prototype.readFloatLE=function(M,N){return M=M>>>0,N||Q(M,4,this.length),n.read(this,M,!0,23,4)},a.prototype.readFloatBE=function(M,N){return M=M>>>0,N||Q(M,4,this.length),n.read(this,M,!1,23,4)},a.prototype.readDoubleLE=function(M,N){return M=M>>>0,N||Q(M,8,this.length),n.read(this,M,!0,52,8)},a.prototype.readDoubleBE=function(M,N){return M=M>>>0,N||Q(M,8,this.length),n.read(this,M,!1,52,8)};function q(V,M,N,$,ce,pe){if(!a.isBuffer(V))throw new TypeError('"buffer" argument must be a Buffer instance');if(M>ce||M<pe)throw new RangeError('"value" argument is out of bounds');if(N+$>V.length)throw new RangeError("Index out of range")}a.prototype.writeUintLE=a.prototype.writeUIntLE=function(M,N,$,ce){if(M=+M,N=N>>>0,$=$>>>0,!ce){var pe=Math.pow(2,8*$)-1;q(this,M,N,$,pe,0)}var fe=1,we=0;for(this[N]=M&255;++we<$&&(fe*=256);)this[N+we]=M/fe&255;return N+$},a.prototype.writeUintBE=a.prototype.writeUIntBE=function(M,N,$,ce){if(M=+M,N=N>>>0,$=$>>>0,!ce){var pe=Math.pow(2,8*$)-1;q(this,M,N,$,pe,0)}var fe=$-1,we=1;for(this[N+fe]=M&255;--fe>=0&&(we*=256);)this[N+fe]=M/we&255;return N+$},a.prototype.writeUint8=a.prototype.writeUInt8=function(M,N,$){return M=+M,N=N>>>0,$||q(this,M,N,1,255,0),this[N]=M&255,N+1},a.prototype.writeUint16LE=a.prototype.writeUInt16LE=function(M,N,$){return M=+M,N=N>>>0,$||q(this,M,N,2,65535,0),this[N]=M&255,this[N+1]=M>>>8,N+2},a.prototype.writeUint16BE=a.prototype.writeUInt16BE=function(M,N,$){return M=+M,N=N>>>0,$||q(this,M,N,2,65535,0),this[N]=M>>>8,this[N+1]=M&255,N+2},a.prototype.writeUint32LE=a.prototype.writeUInt32LE=function(M,N,$){return M=+M,N=N>>>0,$||q(this,M,N,4,4294967295,0),this[N+3]=M>>>24,this[N+2]=M>>>16,this[N+1]=M>>>8,this[N]=M&255,N+4},a.prototype.writeUint32BE=a.prototype.writeUInt32BE=function(M,N,$){return M=+M,N=N>>>0,$||q(this,M,N,4,4294967295,0),this[N]=M>>>24,this[N+1]=M>>>16,this[N+2]=M>>>8,this[N+3]=M&255,N+4},a.prototype.writeIntLE=function(M,N,$,ce){if(M=+M,N=N>>>0,!ce){var pe=Math.pow(2,8*$-1);q(this,M,N,$,pe-1,-pe)}var fe=0,we=1,Ee=0;for(this[N]=M&255;++fe<$&&(we*=256);)M<0&&Ee===0&&this[N+fe-1]!==0&&(Ee=1),this[N+fe]=(M/we>>0)-Ee&255;return N+$},a.prototype.writeIntBE=function(M,N,$,ce){if(M=+M,N=N>>>0,!ce){var pe=Math.pow(2,8*$-1);q(this,M,N,$,pe-1,-pe)}var fe=$-1,we=1,Ee=0;for(this[N+fe]=M&255;--fe>=0&&(we*=256);)M<0&&Ee===0&&this[N+fe+1]!==0&&(Ee=1),this[N+fe]=(M/we>>0)-Ee&255;return N+$},a.prototype.writeInt8=function(M,N,$){return M=+M,N=N>>>0,$||q(this,M,N,1,127,-128),M<0&&(M=255+M+1),this[N]=M&255,N+1},a.prototype.writeInt16LE=function(M,N,$){return M=+M,N=N>>>0,$||q(this,M,N,2,32767,-32768),this[N]=M&255,this[N+1]=M>>>8,N+2},a.prototype.writeInt16BE=function(M,N,$){return M=+M,N=N>>>0,$||q(this,M,N,2,32767,-32768),this[N]=M>>>8,this[N+1]=M&255,N+2},a.prototype.writeInt32LE=function(M,N,$){return M=+M,N=N>>>0,$||q(this,M,N,4,2147483647,-2147483648),this[N]=M&255,this[N+1]=M>>>8,this[N+2]=M>>>16,this[N+3]=M>>>24,N+4},a.prototype.writeInt32BE=function(M,N,$){return M=+M,N=N>>>0,$||q(this,M,N,4,2147483647,-2147483648),M<0&&(M=4294967295+M+1),this[N]=M>>>24,this[N+1]=M>>>16,this[N+2]=M>>>8,this[N+3]=M&255,N+4};function z(V,M,N,$,ce,pe){if(N+$>V.length)throw new RangeError("Index out of range");if(N<0)throw new RangeError("Index out of range")}function ue(V,M,N,$,ce){return M=+M,N=N>>>0,ce||z(V,M,N,4),n.write(V,M,N,$,23,4),N+4}a.prototype.writeFloatLE=function(M,N,$){return ue(this,M,N,!0,$)},a.prototype.writeFloatBE=function(M,N,$){return ue(this,M,N,!1,$)};function ge(V,M,N,$,ce){return M=+M,N=N>>>0,ce||z(V,M,N,8),n.write(V,M,N,$,52,8),N+8}a.prototype.writeDoubleLE=function(M,N,$){return ge(this,M,N,!0,$)},a.prototype.writeDoubleBE=function(M,N,$){return ge(this,M,N,!1,$)},a.prototype.copy=function(M,N,$,ce){if(!a.isBuffer(M))throw new TypeError("argument should be a Buffer");if($||($=0),!ce&&ce!==0&&(ce=this.length),N>=M.length&&(N=M.length),N||(N=0),ce>0&&ce<$&&(ce=$),ce===$||M.length===0||this.length===0)return 0;if(N<0)throw new RangeError("targetStart out of bounds");if($<0||$>=this.length)throw new RangeError("Index out of range");if(ce<0)throw new RangeError("sourceEnd out of bounds");ce>this.length&&(ce=this.length),M.length-N<ce-$&&(ce=M.length-N+$);var pe=ce-$;return this===M&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(N,$,ce):Uint8Array.prototype.set.call(M,this.subarray($,ce),N),pe}
1621,a.prototype.fill=function(M,N,$,ce){if(typeof M=="string"){if(typeof N=="string"?(ce=N,N=0,$=this.length):typeof $=="string"&&(ce=$,$=this.length),ce!==void 0&&typeof ce!="string")throw new TypeError("encoding must be a string");if(typeof ce=="string"&&!a.isEncoding(ce))throw new TypeError("Unknown encoding: "+ce);if(M.length===1){var pe=M.charCodeAt(0);(ce==="utf8"&&pe<128||ce==="latin1")&&(M=pe)}}else typeof M=="number"?M=M&255:typeof M=="boolean"&&(M=Number(M));if(N<0||this.length<N||this.length<$)throw new RangeError("Out of range index");if($<=N)return this;N=N>>>0,$=$===void 0?this.length:$>>>0,M||(M=0);var fe;if(typeof M=="number")for(fe=N;fe<$;++fe)this[fe]=M;else{var we=a.isBuffer(M)?M:a.from(M,ce),Ee=we.length;if(Ee===0)throw new TypeError('The value "'+M+'" is invalid for argument "value"');for(fe=0;fe<$-N;++fe)this[fe+N]=we[fe%Ee]}return this};var ae=/[^+/0-9A-Za-z-_]/g;function j(V){if(V=V.split("=")[0],V=V.trim().replace(ae,""),V.length<2)return"";for(;V.length%4!==0;)V=V+"=";return V}function B(V,M){M=M||1/0;for(var N,$=V.length,ce=null,pe=[],fe=0;fe<$;++fe){if(N=V.charCodeAt(fe),N>55295&&N<57344){if(!ce){if(N>56319){(M-=3)>-1&&pe.push(239,191,189);continue}else if(fe+1===$){(M-=3)>-1&&pe.push(239,191,189);continue}ce=N;continue}if(N<56320){(M-=3)>-1&&pe.push(239,191,189),ce=N;continue}N=(ce-55296<<10|N-56320)+65536}else ce&&(M-=3)>-1&&pe.push(239,191,189);if(ce=null,N<128){if((M-=1)<0)break;pe.push(N)}else if(N<2048){if((M-=2)<0)break;pe.push(N>>6|192,N&63|128)}else if(N<65536){if((M-=3)<0)break;pe.push(N>>12|224,N>>6&63|128,N&63|128)}else if(N<1114112){if((M-=4)<0)break;pe.push(N>>18|240,N>>12&63|128,N>>6&63|128,N&63|128)}else throw new Error("Invalid code point")}return pe}function re(V){for(var M=[],N=0;N<V.length;++N)M.push(V.charCodeAt(N)&255);return M}function oe(V,M){for(var N,$,ce,pe=[],fe=0;fe<V.length&&!((M-=2)<0);++fe)N=V.charCodeAt(fe),$=N>>8,ce=N%256,pe.push(ce),pe.push($);return pe}function ne(V){return t.toByteArray(j(V))}function J(V,M,N,$){for(var ce=0;ce<$&&!(ce+N>=M.length||ce>=V.length);++ce)M[ce+N]=V[ce];return ce}function Se(V,M){return V instanceof M||V!=null&&V.constructor!=null&&V.constructor.name!=null&&V.constructor.name===M.name}function H(V){return V!==V}var be=(function(){for(var V="0123456789abcdef",M=new Array(256),N=0;N<16;++N)for(var $=N*16,ce=0;ce<16;++ce)M[$+ce]=V[N]+V[ce];return M})()})(JD)),JD}var ZD={},eL={},tL,Xae;function aIe(){return Xae||(Xae=1,tL=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var t={},n=Symbol("test"),r=Object(n);if(typeof n=="string"||Object.prototype.toString.call(n)!=="[object Symbol]"||Object.prototype.toString.call(r)!=="[object Symbol]")return!1;var i=42;t[n]=i;for(n in t)return!1;if(typeof Object.keys=="function"&&Object.keys(t).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(t).length!==0)return!1;var o=Object.getOwnPropertySymbols(t);if(o.length!==1||o[0]!==n||!Object.prototype.propertyIsEnumerable.call(t,n))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var s=Object.getOwnPropertyDescriptor(t,n);if(s.value!==i||s.enumerable!==!0)return!1}return!0}),tL}var nL,Jae;function TG(){if(Jae)return nL;Jae=1;var e=aIe();return nL=function(){return e()&&!!Symbol.toStringTag},nL}var rL,Zae;function zQt(){return Zae||(Zae=1,rL=Error),rL}var iL,ece;function VQt(){return ece||(ece=1,iL=EvalError),iL}var oL,tce;function WQt(){return tce||(tce=1,oL=RangeError),oL}var sL,nce;function qQt(){return nce||(nce=1,sL=ReferenceError),sL}var aL,rce;function cIe(){return rce||(rce=1,aL=SyntaxError),aL}var cL,ice;function g4(){return ice||(ice=1,cL=TypeError),cL}var lL,oce;function GQt(){return oce||(oce=1,lL=URIError),lL}var uL,sce;function KQt(){if(sce)return uL;sce=1;var e=typeof Symbol<"u"&&Symbol,t=aIe();return uL=function(){return typeof e!="function"||typeof Symbol!="function"||typeof e("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:t()},uL}var dL,ace;function YQt(){if(ace)return dL;ace=1;var e={__proto__:null,foo:{}},t=Object;return dL=function(){return{__proto__:e}.foo===e.foo&&!(e instanceof t)},dL}var fL,cce;function QQt(){if(cce)return fL;cce=1;var e="Function.prototype.bind called on incompatible ",t=Object.prototype.toString,n=Math.max,r="[object Function]",i=function(c,l){for(var u=[],d=0;d<c.length;d+=1)u[d]=c[d];for(var f=0;f<l.length;f+=1)u[f+c.length]=l[f];return u},o=function(c,l){for(var u=[],d=l,f=0;d<c.length;d+=1,f+=1)u[f]=c[d];return u},s=function(a,c){for(var l="",u=0;u<a.length;u+=1)l+=a[u],u+1<a.length&&(l+=c);return l};return fL=function(c){var l=this;if(typeof l!="function"||t.apply(l)!==r)throw new TypeError(e+l);
vendor: 8,767 bytes, line 1621
1621for(var u=o(arguments,1),d,f=function(){if(this instanceof d){var v=l.apply(this,i(u,arguments));return Object(v)===v?v:this}return l.apply(c,i(u,arguments))},p=n(0,l.length-u.length),g=[],m=0;m<p;m++)g[m]="$"+m;if(d=Function("binder","return function ("+s(g,",")+"){ return binder.apply(this,arguments); }")(f),l.prototype){var y=function(){};y.prototype=l.prototype,d.prototype=new y,y.prototype=null}return d},fL}var hL,lce;function kG(){if(lce)return hL;lce=1;var e=QQt();return hL=Function.prototype.bind||e,hL}var pL,uce;function XQt(){if(uce)return pL;uce=1;var e=Function.prototype.call,t=Object.prototype.hasOwnProperty,n=kG();return pL=n.call(e,t),pL}var mL,dce;function b2(){if(dce)return mL;dce=1;var e,t=zQt(),n=VQt(),r=WQt(),i=qQt(),o=cIe(),s=g4(),a=GQt(),c=Function,l=function(Y){try{return c('"use strict"; return ('+Y+").constructor;")()}catch{}},u=Object.getOwnPropertyDescriptor;if(u)try{u({},"")}catch{u=null}var d=function(){throw new s},f=u?(function(){try{return arguments.callee,d}catch{try{return u(arguments,"callee").get}catch{return d}}})():d,p=KQt()(),g=YQt()(),m=Object.getPrototypeOf||(g?function(Y){return Y.__proto__}:null),y={},v=typeof Uint8Array>"u"||!m?e:m(Uint8Array),w={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?e:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?e:ArrayBuffer,"%ArrayIteratorPrototype%":p&&m?m([][Symbol.iterator]()):e,"%AsyncFromSyncIteratorPrototype%":e,"%AsyncFunction%":y,"%AsyncGenerator%":y,"%AsyncGeneratorFunction%":y,"%AsyncIteratorPrototype%":y,"%Atomics%":typeof Atomics>"u"?e:Atomics,"%BigInt%":typeof BigInt>"u"?e:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?e:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?e:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?e:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":t,"%eval%":eval,"%EvalError%":n,"%Float32Array%":typeof Float32Array>"u"?e:Float32Array,"%Float64Array%":typeof Float64Array>"u"?e:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?e:FinalizationRegistry,"%Function%":c,"%GeneratorFunction%":y,"%Int8Array%":typeof Int8Array>"u"?e:Int8Array,"%Int16Array%":typeof Int16Array>"u"?e:Int16Array,"%Int32Array%":typeof Int32Array>"u"?e:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":p&&m?m(m([][Symbol.iterator]())):e,"%JSON%":typeof JSON=="object"?JSON:e,"%Map%":typeof Map>"u"?e:Map,"%MapIteratorPrototype%":typeof Map>"u"||!p||!m?e:m(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?e:Promise,"%Proxy%":typeof Proxy>"u"?e:Proxy,"%RangeError%":r,"%ReferenceError%":i,"%Reflect%":typeof Reflect>"u"?e:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?e:Set,"%SetIteratorPrototype%":typeof Set>"u"||!p||!m?e:m(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?e:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":p&&m?m(""[Symbol.iterator]()):e,"%Symbol%":p?Symbol:e,"%SyntaxError%":o,"%ThrowTypeError%":f,"%TypedArray%":v,"%TypeError%":s,"%Uint8Array%":typeof Uint8Array>"u"?e:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?e:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?e:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?e:Uint32Array,"%URIError%":a,"%WeakMap%":typeof WeakMap>"u"?e:WeakMap,"%WeakRef%":typeof WeakRef>"u"?e:WeakRef,"%WeakSet%":typeof WeakSet>"u"?e:WeakSet};if(m)try{null.error}catch(Y){var S=m(m(Y));w["%Error.prototype%"]=S}var C=function Y(X){var Z;if(X==="%AsyncFunction%")Z=l("async function () {}");else if(X==="%GeneratorFunction%")Z=l("function* () {}");else if(X==="%AsyncGeneratorFunction%")Z=l("async function* () {}");else if(X==="%AsyncGenerator%"){var G=Y("%AsyncGeneratorFunction%");G&&(Z=G.prototype)}else if(X==="%AsyncIteratorPrototype%"){var Q=Y("%AsyncGenerator%");Q&&m&&(Z=m(Q.prototype))}return w[X]=Z,Z},E={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},T=kG(),x=XQt(),O=T.call(Function.call,Array.prototype.concat),A=T.call(Function.apply,Array.prototype.splice),L=T.call(Function.call,String.prototype.replace),U=T.call(Function.call,String.prototype.slice),I=T.call(Function.call,RegExp.prototype.exec),F=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,P=/\\(\\)?/g,W=function(X){var Z=U(X,0,1),G=U(X,-1);if(Z==="%"&&G!=="%")throw new o("invalid intrinsic syntax, expected closing `%`");if(G==="%"&&Z!=="%")throw new o("invalid intrinsic syntax, expected opening `%`");var Q=[];return L(X,F,function(q,z,ue,ge){Q[Q.length]=ue?L(ge,P,"$1"):z||q}),Q},ee=function(X,Z){var G=X,Q;if(x(E,G)&&(Q=E[G],G="%"+Q[0]+"%"),x(w,G)){var q=w[G];if(q===y&&(q=C(G)),typeof q>"u"&&!Z)throw new s("intrinsic "+X+" exists, but is not available. Please file an issue!");return{alias:Q,name:G,value:q}}throw new o("intrinsic "+X+" does not exist!")};return mL=function(X,Z){if(typeof X!="string"||X.length===0)throw new s("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof Z!="boolean")throw new s('"allowMissing" argument must be a boolean');if(I(/^%?[^%]*%?$/,X)===null)throw new o("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var G=W(X),Q=G.length>0?G[0]:"",q=ee("%"+Q+"%",Z),z=q.name,ue=q.value,ge=!1,ae=q.alias;ae&&(Q=ae[0],A(G,O([0,1],ae)));for(var j=1,B=!0;j<G.length;j+=1){var re=G[j],oe=U(re,0,1),ne=U(re,-1);if((oe==='"'||oe==="'"||oe==="`"||ne==='"'||ne==="'"||ne==="`")&&oe!==ne)throw new o("property names with quotes must have matching quotes");if((re==="constructor"||!B)&&(ge=!0),Q+="."+re,z="%"+Q+"%",x(w,z))ue=w[z];else if(ue!=null){if(!(re in ue)){if(!Z)throw new s("base intrinsic for "+X+" exists, but the property is not available.");return}if(u&&j+1>=G.length){var J=u(ue,re);B=!!J,B&&"get"in J&&!("originalValue"in J.get)?ue=J.get:ue=ue[re]}else B=x(ue,re),ue=ue[re];B&&!ge&&(w[z]=ue)}}return ue},mL}var gL={exports:{}},vL,fce;function xG(){if(fce)return vL;fce=1;var e=b2(),t=e("%Object.defineProperty%",!0)||!1;if(t)try{t({},"a",{value:1})}catch{t=!1}return vL=t,vL}var yL,hce;
1621function AG(){if(hce)return yL;hce=1;var e=b2(),t=e("%Object.getOwnPropertyDescriptor%",!0);if(t)try{t([],"length")}catch{t=null}return yL=t,yL}var bL,pce;function JQt(){if(pce)return bL;pce=1;var e=xG(),t=cIe(),n=g4(),r=AG();return bL=function(o,s,a){if(!o||typeof o!="object"&&typeof o!="function")throw new n("`obj` must be an object or a function`");if(typeof s!="string"&&typeof s!="symbol")throw new n("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new n("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new n("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new n("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new n("`loose`, if provided, must be a boolean");var c=arguments.length>3?arguments[3]:null,l=arguments.length>4?arguments[4]:null,u=arguments.length>5?arguments[5]:null,d=arguments.length>6?arguments[6]:!1,f=!!r&&r(o,s);if(e)e(o,s,{configurable:u===null&&f?f.configurable:!u,enumerable:c===null&&f?f.enumerable:!c,value:a,writable:l===null&&f?f.writable:!l});else if(d||!c&&!l&&!u)o[s]=a;else throw new t("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")},bL}var wL,mce;function ZQt(){if(mce)return wL;mce=1;var e=xG(),t=function(){return!!e};return t.hasArrayLengthDefineBug=function(){if(!e)return null;try{return e([],"length",{value:1}).length!==1}catch{return!0}},wL=t,wL}var SL,gce;function eXt(){if(gce)return SL;gce=1;var e=b2(),t=JQt(),n=ZQt()(),r=AG(),i=g4(),o=e("%Math.floor%");return SL=function(a,c){if(typeof a!="function")throw new i("`fn` is not a function");if(typeof c!="number"||c<0||c>4294967295||o(c)!==c)throw new i("`length` must be a positive 32-bit integer");var l=arguments.length>2&&!!arguments[2],u=!0,d=!0;if("length"in a&&r){var f=r(a,"length");f&&!f.configurable&&(u=!1),f&&!f.writable&&(d=!1)}return(u||d||!l)&&(n?t(a,"length",c,!0,!0):t(a,"length",c)),a},SL}var vce;function lIe(){return vce||(vce=1,(function(e){var t=kG(),n=b2(),r=eXt(),i=g4(),o=n("%Function.prototype.apply%"),s=n("%Function.prototype.call%"),a=n("%Reflect.apply%",!0)||t.call(s,o),c=xG(),l=n("%Math.max%");e.exports=function(f){if(typeof f!="function")throw new i("a function is required");var p=a(t,s,arguments);return r(p,1+l(0,f.length-(arguments.length-1)),!0)};var u=function(){return a(t,o,arguments)};c?c(e.exports,"apply",{value:u}):e.exports.apply=u})(gL)),gL.exports}var _L,yce;function uIe(){if(yce)return _L;yce=1;var e=b2(),t=lIe(),n=t(e("String.prototype.indexOf"));return _L=function(i,o){var s=e(i,!!o);return typeof s=="function"&&n(i,".prototype.")>-1?t(s):s},_L}var CL,bce;function tXt(){if(bce)return CL;bce=1;var e=TG()(),t=uIe(),n=t("Object.prototype.toString"),r=function(a){return e&&a&&typeof a=="object"&&Symbol.toStringTag in a?!1:n(a)==="[object Arguments]"},i=function(a){return r(a)?!0:a!==null&&typeof a=="object"&&typeof a.length=="number"&&a.length>=0&&n(a)!=="[object Array]"&&n(a.callee)==="[object Function]"},o=(function(){return r(arguments)})();return r.isLegacyArguments=i,CL=o?r:i,CL}var EL,wce;function nXt(){if(wce)return EL;wce=1;var e=Object.prototype.toString,t=Function.prototype.toString,n=/^\s*(?:function)?\*/,r=TG()(),i=Object.getPrototypeOf,o=function(){if(!r)return!1;try{return Function("return function*() {}")()}catch{}},s;return EL=function(c){if(typeof c!="function")return!1;if(n.test(t.call(c)))return!0;if(!r){var l=e.call(c);return l==="[object GeneratorFunction]"}if(!i)return!1;if(typeof s>"u"){var u=o();s=u?i(u):!1}return i(c)===s},EL}var TL,Sce;function rXt(){if(Sce)return TL;Sce=1;var e=Function.prototype.toString,t=typeof Reflect=="object"&&Reflect!==null&&Reflect.apply,n,r;if(typeof t=="function"&&typeof Object.defineProperty=="function")try{n=Object.defineProperty({},"length",{get:function(){throw r}}),r={},t(function(){throw 42}
1621,null,n)}catch(w){w!==r&&(t=null)}else t=null;var i=/^\s*class\b/,o=function(S){try{var C=e.call(S);return i.test(C)}catch{return!1}},s=function(S){try{return o(S)?!1:(e.call(S),!0)}catch{return!1}},a=Object.prototype.toString,c="[object Object]",l="[object Function]",u="[object GeneratorFunction]",d="[object HTMLAllCollection]",f="[object HTML document.all class]",p="[object HTMLCollection]",g=typeof Symbol=="function"&&!!Symbol.toStringTag,m=!(0 in[,]),y=function(){return!1};if(typeof document=="object"){var v=document.all;a.call(v)===a.call(document.all)&&(y=function(S){if((m||!S)&&(typeof S>"u"||typeof S=="object"))try{var C=a.call(S);return(C===d||C===f||C===p||C===c)&&S("")==null}catch{}return!1})}return TL=t?function(S){if(y(S))return!0;if(!S||typeof S!="function"&&typeof S!="object")return!1;try{t(S,null,n)}catch(C){if(C!==r)return!1}return!o(S)&&s(S)}:function(S){if(y(S))return!0;if(!S||typeof S!="function"&&typeof S!="object")return!1;if(g)return s(S);if(o(S))return!1;var C=a.call(S);return C!==l&&C!==u&&!/^\[object HTML/.test(C)?!1:s(S)},TL}var kL,_ce;function iXt(){if(_ce)return kL;_ce=1;var e=rXt(),t=Object.prototype.toString,n=Object.prototype.hasOwnProperty,r=function(c,l,u){for(var d=0,f=c.length;d<f;d++)n.call(c,d)&&(u==null?l(c[d],d,c):l.call(u,c[d],d,c))},i=function(c,l,u){for(var d=0,f=c.length;d<f;d++)u==null?l(c.charAt(d),d,c):l.call(u,c.charAt(d),d,c)},o=function(c,l,u){for(var d in c)n.call(c,d)&&(u==null?l(c[d],d,c):l.call(u,c[d],d,c))},s=function(c,l,u){if(!e(l))throw new TypeError("iterator must be a function");var d;arguments.length>=3&&(d=u),t.call(c)==="[object Array]"?r(c,l,d):typeof c=="string"?i(c,l,d):o(c,l,d)};return kL=s,kL}var xL,Cce;function oXt(){return Cce||(Cce=1,xL=["Float32Array","Float64Array","Int8Array","Int16Array","Int32Array","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array"]),xL}var AL,Ece;function sXt(){if(Ece)return AL;Ece=1;var e=oXt(),t=typeof globalThis>"u"?rd:globalThis;return AL=function(){for(var r=[],i=0;i<e.length;i++)typeof t[e[i]]=="function"&&(r[r.length]=e[i]);return r},AL}var IL,Tce;function dIe(){if(Tce)return IL;Tce=1;var e=iXt(),t=sXt(),n=lIe(),r=uIe(),i=AG(),o=r("Object.prototype.toString"),s=TG()(),a=typeof globalThis>"u"?rd:globalThis,c=t(),l=r("String.prototype.slice"),u=Object.getPrototypeOf,d=r("Array.prototype.indexOf",!0)||function(y,v){for(var w=0;w<y.length;w+=1)if(y[w]===v)return w;return-1},f={__proto__:null};s&&i&&u?e(c,function(m){var y=new a[m];if(Symbol.toStringTag in y){var v=u(y),w=i(v,Symbol.toStringTag);if(!w){var S=u(v);w=i(S,Symbol.toStringTag)}f["$"+m]=n(w.get)}}):e(c,function(m){var y=new a[m],v=y.slice||y.set;v&&(f["$"+m]=n(v))});var p=function(y){var v=!1;return e(f,function(w,S){if(!v)try{"$"+w(y)===S&&(v=l(S,1))}catch{}}),v},g=function(y){var v=!1;return e(f,function(w,S){if(!v)try{w(y),v=l(S,1)}catch{}}),v};return IL=function(y){if(!y||typeof y!="object")return!1;if(!s){var v=l(o(y),8,-1);return d(c,v)>-1?v:v!=="Object"?!1:g(y)}return i?p(y):null},IL}var RL,kce;function aXt(){if(kce)return RL;kce=1;var e=dIe();return RL=function(n){return!!e(n)},RL}var xce;function cXt(){return xce||(xce=1,(function(e){var t=tXt(),n=nXt(),r=dIe(),i=aXt();function o($){return $.call.bind($)}var s=typeof BigInt<"u",a=typeof Symbol<"u",c=o(Object.prototype.toString),l=o(Number.prototype.valueOf),u=o(String.prototype.valueOf),d=o(Boolean.prototype.valueOf);if(s)var f=o(BigInt.prototype.valueOf);if(a)var p=o(Symbol.prototype.valueOf);function g($,ce){if(typeof $!="object")return!1;try{return ce($),!0}catch{return!1}}e.isArgumentsObject=t,e.isGeneratorFunction=n,e.isTypedArray=i;function m($){return typeof Promise<"u"&&$ instanceof Promise||$!==null&&typeof $=="object"&&typeof $.then=="function"&&typeof $.catch=="function"}e.isPromise=m;function y($){return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?ArrayBuffer.isView($):i($)||z($)}e.isArrayBufferView=y;function v($){return r($)==="Uint8Array"}e.isUint8Array=v;function w($){return r($)==="Uint8ClampedArray"}e.isUint8ClampedArray=w;function S($){return r($)==="Uint16Array"}e.isUint16Array=S;function C($){return r($)==="Uint32Array"}e.isUint32Array=C;function E($){return r($)==="Int8Array"}e.isInt8Array=E;function T($){return r($)==="Int16Array"}e.isInt16Array=T;function x($){return r($)==="Int32Array"}e.isInt32Array=x;function O($){return r($)==="Float32Array"}e.isFloat32Array=O;function A($){return r($)==="Float64Array"}e.isFloat64Array=A;function L($){return r($)==="BigInt64Array"}e.isBigInt64Array=L;function U($){return r($)==="BigUint64Array"}e.isBigUint64Array=U;function I($){return c($)==="[object Map]"}I.working=typeof Map<"u"&&I(new Map);function F($){return typeof Map>"u"?!1:I.working?I($):$ instanceof Map}e.isMap=F;function P($){return c($)==="[object Set]"}
vendor: 6,560 bytes, line 1621
1621P.working=typeof Set<"u"&&P(new Set);function W($){return typeof Set>"u"?!1:P.working?P($):$ instanceof Set}e.isSet=W;function ee($){return c($)==="[object WeakMap]"}ee.working=typeof WeakMap<"u"&&ee(new WeakMap);function Y($){return typeof WeakMap>"u"?!1:ee.working?ee($):$ instanceof WeakMap}e.isWeakMap=Y;function X($){return c($)==="[object WeakSet]"}X.working=typeof WeakSet<"u"&&X(new WeakSet);function Z($){return X($)}e.isWeakSet=Z;function G($){return c($)==="[object ArrayBuffer]"}G.working=typeof ArrayBuffer<"u"&&G(new ArrayBuffer);function Q($){return typeof ArrayBuffer>"u"?!1:G.working?G($):$ instanceof ArrayBuffer}e.isArrayBuffer=Q;function q($){return c($)==="[object DataView]"}q.working=typeof ArrayBuffer<"u"&&typeof DataView<"u"&&q(new DataView(new ArrayBuffer(1),0,1));function z($){return typeof DataView>"u"?!1:q.working?q($):$ instanceof DataView}e.isDataView=z;var ue=typeof SharedArrayBuffer<"u"?SharedArrayBuffer:void 0;function ge($){return c($)==="[object SharedArrayBuffer]"}function ae($){return typeof ue>"u"?!1:(typeof ge.working>"u"&&(ge.working=ge(new ue)),ge.working?ge($):$ instanceof ue)}e.isSharedArrayBuffer=ae;function j($){return c($)==="[object AsyncFunction]"}e.isAsyncFunction=j;function B($){return c($)==="[object Map Iterator]"}e.isMapIterator=B;function re($){return c($)==="[object Set Iterator]"}e.isSetIterator=re;function oe($){return c($)==="[object Generator]"}e.isGeneratorObject=oe;function ne($){return c($)==="[object WebAssembly.Module]"}e.isWebAssemblyCompiledModule=ne;function J($){return g($,l)}e.isNumberObject=J;function Se($){return g($,u)}e.isStringObject=Se;function H($){return g($,d)}e.isBooleanObject=H;function be($){return s&&g($,f)}e.isBigIntObject=be;function V($){return a&&g($,p)}e.isSymbolObject=V;function M($){return J($)||Se($)||H($)||be($)||V($)}e.isBoxedPrimitive=M;function N($){return typeof Uint8Array<"u"&&(Q($)||ae($))}e.isAnyArrayBuffer=N,["isProxy","isExternal","isModuleNamespaceObject"].forEach(function($){Object.defineProperty(e,$,{enumerable:!1,value:function(){throw new Error($+" is not supported in userland")}})})})(eL)),eL}var PL,Ace;function lXt(){return Ace||(Ace=1,PL=function(t){return t&&typeof t=="object"&&typeof t.copy=="function"&&typeof t.fill=="function"&&typeof t.readUInt8=="function"}),PL}var Ice;function fIe(){return Ice||(Ice=1,(function(e){var t=Object.getOwnPropertyDescriptors||function(z){for(var ue=Object.keys(z),ge={},ae=0;ae<ue.length;ae++)ge[ue[ae]]=Object.getOwnPropertyDescriptor(z,ue[ae]);return ge},n=/%[sdj%]/g;e.format=function(q){if(!E(q)){for(var z=[],ue=0;ue<arguments.length;ue++)z.push(s(arguments[ue]));return z.join(" ")}for(var ue=1,ge=arguments,ae=ge.length,j=String(q).replace(n,function(re){if(re==="%%")return"%";if(ue>=ae)return re;switch(re){case"%s":return String(ge[ue++]);case"%d":return Number(ge[ue++]);case"%j":try{return JSON.stringify(ge[ue++])}catch{return"[Circular]"}default:return re}}),B=ge[ue];ue<ae;B=ge[++ue])w(B)||!A(B)?j+=" "+B:j+=" "+s(B);return j},e.deprecate=function(q,z){if(typeof pn<"u"&&pn.noDeprecation===!0)return q;if(typeof pn>"u")return function(){return e.deprecate(q,z).apply(this,arguments)};var ue=!1;function ge(){if(!ue){if(pn.throwDeprecation)throw new Error(z);pn.traceDeprecation?console.trace(z):console.error(z),ue=!0}return q.apply(this,arguments)}return ge};var r={},i=/^$/;if(pn.env.NODE_DEBUG){var o=pn.env.NODE_DEBUG;o=o.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^").toUpperCase(),i=new RegExp("^"+o+"$","i")}e.debuglog=function(q){if(q=q.toUpperCase(),!r[q])if(i.test(q)){var z=pn.pid;r[q]=function(){var ue=e.format.apply(e,arguments);console.error("%s %d: %s",q,z,ue)}}else r[q]=function(){};return r[q]};function s(q,z){var ue={seen:[],stylize:c};return arguments.length>=3&&(ue.depth=arguments[2]),arguments.length>=4&&(ue.colors=arguments[3]),v(z)?ue.showHidden=z:z&&e._extend(ue,z),x(ue.showHidden)&&(ue.showHidden=!1),x(ue.depth)&&(ue.depth=2),x(ue.colors)&&(ue.colors=!1),x(ue.customInspect)&&(ue.customInspect=!0),ue.colors&&(ue.stylize=a),u(ue,q,ue.depth)}e.inspect=s,s.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},s.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function a(q,z){var ue=s.styles[z];return ue?"\x1B["+s.colors[ue][0]+"m"+q+"\x1B["+s.colors[ue][1]+"m":q}function c(q,z){return q}function l(q){var z={};return q.forEach(function(ue,ge){z[ue]=!0}),z}function u(q,z,ue){if(q.customInspect&&z&&I(z.inspect)&&z.inspect!==e.inspect&&!(z.constructor&&z.constructor.prototype===z)){var ge=z.inspect(ue,q);return E(ge)||(ge=u(q,ge,ue)),ge}var ae=d(q,z);if(ae)return ae;var j=Object.keys(z),B=l(j);if(q.showHidden&&(j=Object.getOwnPropertyNames(z)),U(z)&&(j.indexOf("message")>=0||j.indexOf("description")>=0))return f(z);if(j.length===0){if(I(z)){var re=z.name?": "+z.name:"";return q.stylize("[Function"+re+"]","special")}if(O(z))return q.stylize(RegExp.prototype.toString.call(z),"regexp");if(L(z))return q.stylize(Date.prototype.toString.call(z),"date");if(U(z))return f(z)}var oe="",ne=!1,J=["{","}"];if(y(z)&&(ne=!0,J=["[","]"]),I(z)){var Se=z.name?": "+z.name:"";oe=" [Function"+Se+"]"}if(O(z)&&(oe=" "+RegExp.prototype.toString.call(z)),L(z)&&(oe=" "+Date.prototype.toUTCString.call(z)),U(z)&&(oe=" "+f(z)),j.length===0&&(!ne||z.length==0))return J[0]+oe+J[1];if(ue<0)return O(z)?q.stylize(RegExp.prototype.toString.call(z),"regexp"):q.stylize("[Object]","special");q.seen.push(z);var H;return ne?H=p(q,z,ue,B,j):H=j.map(function(be){return g(q,z,ue,B,be,ne)}),q.seen.pop(),m(H,oe,J)}function d(q,z){if(x(z))return q.stylize("undefined","undefined");if(E(z)){var ue="'"+JSON.stringify(z).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return q.stylize(ue,"string")}if(C(z))return q.stylize(""+z,"number");if(v(z))return q.stylize(""+z,"boolean");if(w(z))return q.stylize("null","null")}function f(q){return"["+Error.prototype.toString.call(q)+"]"}function p(q,z,ue,ge,ae){for(var j=[],B=0,re=z.length;B<re;++B)X(z,String(B))?j.push(g(q,z,ue,ge,String(B),!0)):j.push("");return ae.forEach(function(oe){oe.match(/^\d+$/)||j.push(g(q,z,ue,ge,oe,!0))}),j}function g(q,z,ue,ge,ae,j){var B,re,oe;if(oe=Object.getOwnPropertyDescriptor(z,ae)||{value:z[ae]},oe.get?oe.set?re=q.stylize("[Getter/Setter]","special"):re=q.stylize("[Getter]","special"):oe.set&&(re=q.stylize("[
1621Setter]","special")),X(ge,ae)||(B="["+ae+"]"),re||(q.seen.indexOf(oe.value)<0?(w(ue)?re=u(q,oe.value,null):re=u(q,oe.value,ue-1),re.indexOf(`
1622`)>-1&&(j?re=re.split(`
1623`).map(function(ne){return"  "+ne}).join(`
1624`).slice(2):re=`
1625`+re.split(`
1626`).map(function(ne){return"   "+ne}).join(`
1627`))):re=q.stylize("[Circular]","special")),x(B)){if(j&&ae.match(/^\d+$/))return re;B=JSON.stringify(""+ae),B.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(B=B.slice(1,-1),B=q.stylize(B,"name")):(B=B.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),B=q.stylize(B,"string"))}return B+": "+re}function m(q,z,ue){var ge=q.reduce(function(ae,j){return j.indexOf(`
1628`)>=0,ae+j.replace(/\u001b\[\d\d?m/g,"").length+1},0);return ge>60?ue[0]+(z===""?"":z+`
1629 `)+" "+q.join(`,
1630  `)+" "+ue[1]:ue[0]+z+" "+q.join(", ")+" "+ue[1]}e.types=cXt();function y(q){return Array.isArray(q)}e.isArray=y;function v(q){return typeof q=="boolean"}e.isBoolean=v;function w(q){return q===null}e.isNull=w;function S(q){return q==null}e.isNullOrUndefined=S;function C(q){return typeof q=="number"}e.isNumber=C;function E(q){return typeof q=="string"}e.isString=E;function T(q){return typeof q=="symbol"}e.isSymbol=T;function x(q){return q===void 0}e.isUndefined=x;function O(q){return A(q)&&P(q)==="[object RegExp]"}e.isRegExp=O,e.types.isRegExp=O;function A(q){return typeof q=="object"&&q!==null}e.isObject=A;function L(q){return A(q)&&P(q)==="[object Date]"}e.isDate=L,e.types.isDate=L;function U(q){return A(q)&&(P(q)==="[object Error]"||q instanceof Error)}e.isError=U,e.types.isNativeError=U;function I(q){return typeof q=="function"}e.isFunction=I;function F(q){return q===null||typeof q=="boolean"||typeof q=="number"||typeof q=="string"||typeof q=="symbol"||typeof q>"u"}e.isPrimitive=F,e.isBuffer=lXt();function P(q){return Object.prototype.toString.call(q)}function W(q){return q<10?"0"+q.toString(10):q.toString(10)}var ee=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function Y(){var q=new Date,z=[W(q.getHours()),W(q.getMinutes()),W(q.getSeconds())].join(":");return[q.getDate(),ee[q.getMonth()],z].join(" ")}e.log=function(){console.log("%s - %s",Y(),e.format.apply(e,arguments))},e.inherits=zm(),e._extend=function(q,z){if(!z||!A(z))return q;for(var ue=Object.keys(z),ge=ue.length;ge--;)q[ue[ge]]=z[ue[ge]];return q};function X(q,z){return Object.prototype.hasOwnProperty.call(q,z)}var Z=typeof Symbol<"u"?Symbol("util.promisify.custom"):void 0;e.promisify=function(z){if(typeof z!="function")throw new TypeError('The "original" argument must be of type Function');if(Z&&z[Z]){var ue=z[Z];if(typeof ue!="function")throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(ue,Z,{value:ue,enumerable:!1,writable:!1,configurable:!0}),ue}function ue(){for(var ge,ae,j=new Promise(function(oe,ne){ge=oe,ae=ne}),B=[],re=0;re<arguments.length;re++)B.push(arguments[re]);B.push(function(oe,ne){oe?ae(oe):ge(ne)});try{z.apply(this,B)}catch(oe){ae(oe)}return j}return Object.setPrototypeOf(ue,Object.getPrototypeOf(z)),Z&&Object.defineProperty(ue,Z,{value:ue,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(ue,t(z))},e.promisify.custom=Z;function G(q,z){if(!q){var ue=new Error("Promise was rejected with a falsy value");ue.reason=q,q=ue}return z(q)}function Q(q){if(typeof q!="function")throw new TypeError('The "original" argument must be of type Function');function z(){for(var ue=[],ge=0;ge<arguments.length;ge++)ue.push(arguments[ge]);var ae=ue.pop();if(typeof ae!="function")throw new TypeError("The last argument must be of type Function");var j=this,B=function(){return ae.apply(j,arguments)};q.apply(this,ue).then(function(re){pn.nextTick(B.bind(null,null,re))},function(re){pn.nextTick(G.bind(null,re,B))})}return Object.setPrototypeOf(z,Object.getPrototypeOf(q)),Object.defineProperties(z,t(q)),z}e.callbackify=Q})(ZD)),ZD}var OL,Rce;function uXt(){if(Rce)return OL;Rce=1;function e(f,p){var g=Object.keys(f);if(Object.getOwnPropertySymbols){var m=Object.getOwnPropertySymbols(f);p&&(m=m.filter(function(y){return Object.getOwnPropertyDescriptor(f,y).enumerable}
vendor: 5,303 bytes, line 1630
1630)),g.push.apply(g,m)}return g}function t(f){for(var p=1;p<arguments.length;p++){var g=arguments[p]!=null?arguments[p]:{};p%2?e(Object(g),!0).forEach(function(m){n(f,m,g[m])}):Object.getOwnPropertyDescriptors?Object.defineProperties(f,Object.getOwnPropertyDescriptors(g)):e(Object(g)).forEach(function(m){Object.defineProperty(f,m,Object.getOwnPropertyDescriptor(g,m))})}return f}function n(f,p,g){return p in f?Object.defineProperty(f,p,{value:g,enumerable:!0,configurable:!0,writable:!0}):f[p]=g,f}function r(f,p){if(!(f instanceof p))throw new TypeError("Cannot call a class as a function")}function i(f,p){for(var g=0;g<p.length;g++){var m=p[g];m.enumerable=m.enumerable||!1,m.configurable=!0,"value"in m&&(m.writable=!0),Object.defineProperty(f,m.key,m)}}function o(f,p,g){return p&&i(f.prototype,p),f}var s=m4(),a=s.Buffer,c=fIe(),l=c.inspect,u=l&&l.custom||"inspect";function d(f,p,g){a.prototype.copy.call(f,p,g)}return OL=(function(){function f(){r(this,f),this.head=null,this.tail=null,this.length=0}return o(f,[{key:"push",value:function(g){var m={data:g,next:null};this.length>0?this.tail.next=m:this.head=m,this.tail=m,++this.length}},{key:"unshift",value:function(g){var m={data:g,next:this.head};this.length===0&&(this.tail=m),this.head=m,++this.length}},{key:"shift",value:function(){if(this.length!==0){var g=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,g}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(g){if(this.length===0)return"";for(var m=this.head,y=""+m.data;m=m.next;)y+=g+m.data;return y}},{key:"concat",value:function(g){if(this.length===0)return a.alloc(0);for(var m=a.allocUnsafe(g>>>0),y=this.head,v=0;y;)d(y.data,m,v),v+=y.data.length,y=y.next;return m}},{key:"consume",value:function(g,m){var y;return g<this.head.data.length?(y=this.head.data.slice(0,g),this.head.data=this.head.data.slice(g)):g===this.head.data.length?y=this.shift():y=m?this._getString(g):this._getBuffer(g),y}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(g){var m=this.head,y=1,v=m.data;for(g-=v.length;m=m.next;){var w=m.data,S=g>w.length?w.length:g;if(S===w.length?v+=w:v+=w.slice(0,g),g-=S,g===0){S===w.length?(++y,m.next?this.head=m.next:this.head=this.tail=null):(this.head=m,m.data=w.slice(S));break}++y}return this.length-=y,v}},{key:"_getBuffer",value:function(g){var m=a.allocUnsafe(g),y=this.head,v=1;for(y.data.copy(m),g-=y.data.length;y=y.next;){var w=y.data,S=g>w.length?w.length:g;if(w.copy(m,m.length-g,0,S),g-=S,g===0){S===w.length?(++v,y.next?this.head=y.next:this.head=this.tail=null):(this.head=y,y.data=w.slice(S));break}++v}return this.length-=v,m}},{key:u,value:function(g,m){return l(this,t({},m,{depth:0,customInspect:!1}))}}]),f})(),OL}var NL,Pce;function hIe(){if(Pce)return NL;Pce=1;function e(s,a){var c=this,l=this._readableState&&this._readableState.destroyed,u=this._writableState&&this._writableState.destroyed;return l||u?(a?a(s):s&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,pn.nextTick(i,this,s)):pn.nextTick(i,this,s)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(s||null,function(d){!a&&d?c._writableState?c._writableState.errorEmitted?pn.nextTick(n,c):(c._writableState.errorEmitted=!0,pn.nextTick(t,c,d)):pn.nextTick(t,c,d):a?(pn.nextTick(n,c),a(d)):pn.nextTick(n,c)}),this)}function t(s,a){i(s,a),n(s)}function n(s){s._writableState&&!s._writableState.emitClose||s._readableState&&!s._readableState.emitClose||s.emit("close")}function r(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function i(s,a){s.emit("error",a)}function o(s,a){var c=s._readableState,l=s._writableState;c&&c.autoDestroy||l&&l.autoDestroy?s.destroy(a):s.emit("error",a)}return NL={destroy:e,undestroy:r,errorOrDestroy:o},NL}var ML={},Oce;function lw(){if(Oce)return ML;Oce=1;function e(a,c){a.prototype=Object.create(c.prototype),a.prototype.constructor=a,a.__proto__=c}var t={};function n(a,c,l){l||(l=Error);function u(f,p,g){return typeof c=="string"?c:c(f,p,g)}var d=(function(f){e(p,f);function p(g,m,y){return f.call(this,u(g,m,y))||this}return p})(l);d.prototype.name=l.name,d.prototype.code=a,t[a]=d}function r(a,c){if(Array.isArray(a)){var l=a.length;return a=a.map(function(u){return String(u)}),l>2?"one of ".concat(c," ").concat(a.slice(0,l-1).join(", "),", or ")+a[l-1]:l===2?"one of ".concat(c," ").concat(a[0]," or ").concat(a[1]):"of ".concat(c," ").concat(a[0])}else return"of ".concat(c," ").concat(String(a))}function i(a,c,l){return a.substr(0,c.length)===c}function o(a,c,l){return(l===void 0||l>a.length)&&(l=a.length),a.substring(l-c.length,l)===c}function s(a,c,l){return typeof l!="number"&&(l=0),l+c.length>a.length?!1:a.indexOf(c,l)!==-1}return n("ERR_INVALID_OPT_VALUE",function(a,c){return'The value "'+c+'" is 
1630invalid for option "'+a+'"'},TypeError),n("ERR_INVALID_ARG_TYPE",function(a,c,l){var u;typeof c=="string"&&i(c,"not ")?(u="must not be",c=c.replace(/^not /,"")):u="must be";var d;if(o(a," argument"))d="The ".concat(a," ").concat(u," ").concat(r(c,"type"));else{var f=s(a,".")?"property":"argument";d='The "'.concat(a,'" ').concat(f," ").concat(u," ").concat(r(c,"type"))}return d+=". Received type ".concat(typeof l),d},TypeError),n("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),n("ERR_METHOD_NOT_IMPLEMENTED",function(a){return"The "+a+" method is not implemented"}),n("ERR_STREAM_PREMATURE_CLOSE","Premature close"),n("ERR_STREAM_DESTROYED",function(a){return"Cannot call "+a+" after a stream was destroyed"}),n("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),n("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),n("ERR_STREAM_WRITE_AFTER_END","write after end"),n("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),n("ERR_UNKNOWN_ENCODING",function(a){return"Unknown encoding: "+a},TypeError),n("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),ML.codes=t,ML}var DL,Nce;function pIe(){if(Nce)return DL;Nce=1;var e=lw().codes.ERR_INVALID_OPT_VALUE;function t(r,i,o){return r.highWaterMark!=null?r.highWaterMark:i?r[o]:null}function n(r,i,o,s){var a=t(i,s,o);if(a!=null){if(!(isFinite(a)&&Math.floor(a)===a)||a<0){var c=s?o:"highWaterMark";throw new e(c,a)}return Math.floor(a)}return r.objectMode?16:16*1024}return DL={getHighWaterMark:n},DL}var LL,Mce;function dXt(){if(Mce)return LL;Mce=1,LL=e;function e(n,r){if(t("noDeprecation"))return n;var i=!1;function o(){if(!i){if(t("throwDeprecation"))throw new Error(r);t("traceDeprecation")?console.trace(r):console.warn(r),i=!0}return n.apply(this,arguments)}return o}function t(n){try{if(!rd.localStorage)return!1}catch{return!1}var r=rd.localStorage[n];return r==null?!1:String(r).toLowerCase()==="true"}return LL}var FL,Dce;function mIe(){if(Dce)return FL;Dce=1,FL=O;function e(ae){var j=this;this.next=null,this.entry=null,this.finish=function(){ge(j,ae)}}var t;O.WritableState=T;var n={deprecate:dXt()},r=sIe(),i=m4().Buffer,o=rd.Uint8Array||function(){};function s(ae){return i.from(ae)}function a(ae){return i.isBuffer(ae)||ae instanceof o}var c=hIe(),l=pIe(),u=l.getHighWaterMark,d=lw().codes,f=d.ERR_INVALID_ARG_TYPE,p=d.ERR_METHOD_NOT_IMPLEMENTED,g=d.ERR_MULTIPLE_CALLBACK,m=d.ERR_STREAM_CANNOT_PIPE,y=d.ERR_STREAM_DESTROYED,v=d.ERR_STREAM_NULL_VALUES,w=d.ERR_STREAM_WRITE_AFTER_END,S=d.ERR_UNKNOWN_ENCODING,C=c.errorOrDestroy;zm()(O,r);function E(){}function T(ae,j,B){t=t||tb(),ae=ae||{},typeof B!="boolean"&&(B=j instanceof t),this.objectMode=!!ae.objectMode,B&&(this.objectMode=this.objectMode||!!ae.writableObjectMode),this.highWaterMark=u(this,ae,"writableHighWaterMark",B),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var re=ae.decodeStrings===!1;this.decodeStrings=!re,this.defaultEncoding=ae.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(oe){ee(j,oe)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=ae.emitClose!==!1,this.autoDestroy=!!ae.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new e(this)}T.prototype.getBuffer=function(){for(var j=this.bufferedRequest,B=[];j;)B.push(j),j=j.next;return B},(function(){try{Object.defineProperty(T.prototype,"buffer",{get:n.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}})();var x;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(x=Function.prototype[Symbol.hasInstance],Object.defineProperty(O,Symbol.hasInstance,{value:function(j){return x.call(this,j)?!0:this!==O?!1:j&&j._writableState instanceof T}})):x=function(j){return j instanceof this};function O(ae){t=t||tb();var j=this instanceof t;if(!j&&!x.call(O,this))return new O(ae);this._writableState=new T(ae,this,j),this.writable=!0,ae&&(typeof ae.write=="function"&&(this._write=ae.write),typeof ae.writev=="function"&&(this._writev=ae.writev),typeof ae.destroy=="function"&&(this._destroy=ae.destroy),typeof ae.final=="function"&&(this._final=ae.final)),r.call(this)}O.prototype.pipe=function(){C(this,new m)};function A(ae,j){var B=new w;C(ae,B),pn.nextTick(j,B)}function L(ae,j,B,re){var oe;return B===null?oe=new v:typeof B!="string"&&!j.objectMode&&(oe=new f("chunk",["string","Buffer"],B)),oe?(C(ae,oe),pn.nextTick(re,oe),
vendor: 12,213 bytes, line 1630
1630!1):!0}O.prototype.write=function(ae,j,B){var re=this._writableState,oe=!1,ne=!re.objectMode&&a(ae);return ne&&!i.isBuffer(ae)&&(ae=s(ae)),typeof j=="function"&&(B=j,j=null),ne?j="buffer":j||(j=re.defaultEncoding),typeof B!="function"&&(B=E),re.ending?A(this,B):(ne||L(this,re,ae,B))&&(re.pendingcb++,oe=I(this,re,ne,ae,j,B)),oe},O.prototype.cork=function(){this._writableState.corked++},O.prototype.uncork=function(){var ae=this._writableState;ae.corked&&(ae.corked--,!ae.writing&&!ae.corked&&!ae.bufferProcessing&&ae.bufferedRequest&&Z(this,ae))},O.prototype.setDefaultEncoding=function(j){if(typeof j=="string"&&(j=j.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((j+"").toLowerCase())>-1))throw new S(j);return this._writableState.defaultEncoding=j,this},Object.defineProperty(O.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});function U(ae,j,B){return!ae.objectMode&&ae.decodeStrings!==!1&&typeof j=="string"&&(j=i.from(j,B)),j}Object.defineProperty(O.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function I(ae,j,B,re,oe,ne){if(!B){var J=U(j,re,oe);re!==J&&(B=!0,oe="buffer",re=J)}var Se=j.objectMode?1:re.length;j.length+=Se;var H=j.length<j.highWaterMark;if(H||(j.needDrain=!0),j.writing||j.corked){var be=j.lastBufferedRequest;j.lastBufferedRequest={chunk:re,encoding:oe,isBuf:B,callback:ne,next:null},be?be.next=j.lastBufferedRequest:j.bufferedRequest=j.lastBufferedRequest,j.bufferedRequestCount+=1}else F(ae,j,!1,Se,re,oe,ne);return H}function F(ae,j,B,re,oe,ne,J){j.writelen=re,j.writecb=J,j.writing=!0,j.sync=!0,j.destroyed?j.onwrite(new y("write")):B?ae._writev(oe,j.onwrite):ae._write(oe,ne,j.onwrite),j.sync=!1}function P(ae,j,B,re,oe){--j.pendingcb,B?(pn.nextTick(oe,re),pn.nextTick(z,ae,j),ae._writableState.errorEmitted=!0,C(ae,re)):(oe(re),ae._writableState.errorEmitted=!0,C(ae,re),z(ae,j))}function W(ae){ae.writing=!1,ae.writecb=null,ae.length-=ae.writelen,ae.writelen=0}function ee(ae,j){var B=ae._writableState,re=B.sync,oe=B.writecb;if(typeof oe!="function")throw new g;if(W(B),j)P(ae,B,re,j,oe);else{var ne=G(B)||ae.destroyed;!ne&&!B.corked&&!B.bufferProcessing&&B.bufferedRequest&&Z(ae,B),re?pn.nextTick(Y,ae,B,ne,oe):Y(ae,B,ne,oe)}}function Y(ae,j,B,re){B||X(ae,j),j.pendingcb--,re(),z(ae,j)}function X(ae,j){j.length===0&&j.needDrain&&(j.needDrain=!1,ae.emit("drain"))}function Z(ae,j){j.bufferProcessing=!0;var B=j.bufferedRequest;if(ae._writev&&B&&B.next){var re=j.bufferedRequestCount,oe=new Array(re),ne=j.corkedRequestsFree;ne.entry=B;for(var J=0,Se=!0;B;)oe[J]=B,B.isBuf||(Se=!1),B=B.next,J+=1;oe.allBuffers=Se,F(ae,j,!0,j.length,oe,"",ne.finish),j.pendingcb++,j.lastBufferedRequest=null,ne.next?(j.corkedRequestsFree=ne.next,ne.next=null):j.corkedRequestsFree=new e(j),j.bufferedRequestCount=0}else{for(;B;){var H=B.chunk,be=B.encoding,V=B.callback,M=j.objectMode?1:H.length;if(F(ae,j,!1,M,H,be,V),B=B.next,j.bufferedRequestCount--,j.writing)break}B===null&&(j.lastBufferedRequest=null)}j.bufferedRequest=B,j.bufferProcessing=!1}O.prototype._write=function(ae,j,B){B(new p("_write()"))},O.prototype._writev=null,O.prototype.end=function(ae,j,B){var re=this._writableState;return typeof ae=="function"?(B=ae,ae=null,j=null):typeof j=="function"&&(B=j,j=null),ae!=null&&this.write(ae,j),re.corked&&(re.corked=1,this.uncork()),re.ending||ue(this,re,B),this},Object.defineProperty(O.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function G(ae){return ae.ending&&ae.length===0&&ae.bufferedRequest===null&&!ae.finished&&!ae.writing}function Q(ae,j){ae._final(function(B){j.pendingcb--,B&&C(ae,B),j.prefinished=!0,ae.emit("prefinish"),z(ae,j)})}function q(ae,j){!j.prefinished&&!j.finalCalled&&(typeof ae._final=="function"&&!j.destroyed?(j.pendingcb++,j.finalCalled=!0,pn.nextTick(Q,ae,j)):(j.prefinished=!0,ae.emit("prefinish")))}function z(ae,j){var B=G(j);if(B&&(q(ae,j),j.pendingcb===0&&(j.finished=!0,ae.emit("finish"),j.autoDestroy))){var re=ae._readableState;(!re||re.autoDestroy&&re.endEmitted)&&ae.destroy()}return B}function ue(ae,j,B){j.ending=!0,z(ae,j),B&&(j.finished?pn.nextTick(B):ae.once("finish",B)),j.ended=!0,ae.writable=!1}function ge(ae,j,B){var re=ae.entry;for(ae.entry=null;re;){var oe=re.callback;j.pendingcb--,oe(B),re=re.next}j.corkedRequestsFree.next=ae}return Object.defineProperty(O.prototype,"destroyed",{enumerable:!1,get:function(){return this._writableState===void 0?!1:this._writableState.destroyed},set:function(j){this._writableState&&(this._writableState.destroyed=j)}}),O.prototype.destroy=c.destroy,O.prototype._undestroy=c.undestroy,O.prototype._destroy=function(ae,j){j(ae)},FL}var jL,Lce;function tb(){if(Lce)return jL;Lce=1;var e=Object.keys||function(l){var u=[];for(var d in l)u.push(d);return u};jL=s;var t=gIe(),n=mIe();zm()(s,t);for(var r=e(n.prototype),i=0;i<r.length;i++){var o=r[i];s.prototype[o]||(s.prototype[o]=n.prototype[o])}function s(l){if(!(this instanceof s))return new s(l);t.call(this,l),n.call(this,l),this.allowHalfOpen=!0,l&&(l.readable===!1&&(this.readable=!1),l.writable===!1&&(this.writable=!1),l.allowHalfOpen===!1&&(this.allowHalfOpen=!1,this.once("end",a)))}Object.defineProperty(s.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(s.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(s.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function a(){this._writableState.ended||pn.nextTick(c,this)}function c(l){l.end()}return Object.defineProperty(s.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0||this._writableState===void 0?!1:this._readableState.destroyed&&this._writableState.destroyed},set:function(u){this._readableState===void 0||this._writableState===void 0||(this._readableState.destroyed=u,this._writableState.destroyed=u)}}),jL}var UL={},Bk={exports:{}},Fce;function fXt(){return Fce||(Fce=1,(function(e,t){var n=m4(),r=n.Buffer;function i(s,a){for(var c in s)a[c]=s[c]}r.from&&r.alloc&&r.allocUnsafe&&r.allocUnsafeSlow?e.exports=n:(i(n,t),t.Buffer=o);function o(s,a,c){return r(s,a,c)}i(r,o),o.from=function(s,a,c){if(typeof s=="number")throw new TypeError("Argument must not be a number");return r(s,a,c)},o.alloc=function(s,a,c){if(typeof s!="number")throw new TypeError("Argument must be a number");var l=r(s);return a!==void 0?typeof c=="string"?l.fill(a,c):l.fill(a):l.fill(0),l},o.allocUnsafe=function(s){if(typeof s!="number")throw new TypeError("Argument must be a number");return r(s)},o.allocUnsafeSlow=function(s){if(typeof s!="number")throw new TypeError("Argument must be a number");return n.SlowBuffer(s)}})(Bk,Bk.exports)),Bk.exports}var jce;function UU(){if(jce)return UL;jce=1;var e=fXt().Buffer,t=e.isEncoding||function(v){switch(v=""+v,v&&v.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function n(v){if(!v)return"utf8";for(var w;;)switch(v){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return v;default:if(w)return;v=(""+v).toLowerCase(),w=!0}}function r(v){var w=n(v);if(typeof w!="string"&&(e.isEncoding===t||!t(v)))throw new Error("Unknown encoding: "+v);return w||v}UL.StringDecoder=i;function i(v){this.encoding=r(v);var w;switch(this.encoding){case"utf16le":this.text=d,this.end=f,w=4;break;case"utf8":this.fillLast=c,w=4;break;case"base64":this.text=p,this.end=g,w=3;break;default:this.write=m,this.end=y;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=e.allocUnsafe(w)}i.prototype.write=function(v){if(v.length===0)return"";var w,S;if(this.lastNeed){if(w=this.fillLast(v),w===void 0)return"";S=this.lastNeed,this.lastNeed=0}else S=0;return S<v.length?w?w+this.text(v,S):this.text(v,S):w||""},i.prototype.end=u,i.prototype.text=l,i.prototype.fillLast=function(v){if(this.lastNeed<=v.length)return v.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);v.copy(this.lastChar,this.lastTotal-this.lastNeed,0,v.length),this.lastNeed-=v.length};function o(v){return v<=127?0:v>>5===6?2:v>>4===14?3:v>>3===30?4:v>>6===2?-1:-2}function s(v,w,S){var C=w.length-1;if(C<S)return 0;var E=o(w[C]);return E>=0?(E>0&&(v.lastNeed=E-1),E):--C<S||E===-2?0:(E=o(w[C]),E>=0?(E>0&&(v.lastNeed=E-2),E):--C<S||E===-2?0:(E=o(w[C]),E>=0?(E>0&&(E===2?E=0:v.lastNeed=E-3),E):0))}function a(v,w,S){if((w[0]&192)!==128)return v.lastNeed=0,"�";if(v.lastNeed>1&&w.length>1){if((w[1]&192)!==128)return v.lastNeed=1,"�";if(v.lastNeed>2&&w.length>2&&(w[2]&192)!==128)return v.lastNeed=2,"�"}}function c(v){var w=this.lastTotal-this.lastNeed,S=a(this,v);if(S!==void 0)return S;if(this.lastNeed<=v.length)return v.copy(this.lastChar,w,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);v.copy(this.lastChar,w,0,v.length),this.lastNeed-=v.length}function l(v,w){var S=s(this,v,w);if(!this.lastNeed)return v.toString("utf8",w);this.lastTotal=S;var C=v.length-(S-this.lastNeed);return v.copy(this.lastChar,0,C),v.toString("utf8",w,C)}function u(v){var w=v&&v.length?this.write(v):"";return this.lastNeed?w+"�":w}function d(v,w){if((v.length-w)%2===0){var S=v.toString("utf16le",w);if(S){var C=S.charCodeAt(S.length-1);if(C>=55296&&C<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=v[v.length-2],this.lastChar[1]=v[v.length-1],S.slice(0,-1)}return S}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=v[v.length-1],v.toString("utf16le",w,v.length-1)}function f(v){var w=v&&v.length?this.write(v):"";if(this.lastNeed){var S=this.lastTotal-this.lastNeed;return w+this.lastChar.toString("utf16le",0,S)}return w}function p(v,w){var S=(v.length-w)%3;return S===0?v.toString("base64",w):(this.lastNeed=3-S,this.lastTotal=3,S===1?this.lastChar[0]=v[v.length-1]:(this.lastChar[0]=v[v.length-2],this.lastChar[1]=v[v.length-1]),v.toString("base64",w,v.length-S))}function g(v){var w=v&&v.length?this.write(v):"";return this.lastNeed?w+this.lastChar.toString("base64",0,3-this.lastNeed):w}function m(v){return v.toString(this.encoding)}function y(v){return v&&v.length?this.write(v):""}return UL}var BL,Uce;function IG(){if(Uce)return BL;Uce=1;var e=lw().codes.ERR_STREAM_PREMATURE_CLOSE;function t(o){var s=!1;return function(){if(!s){s=!0;for(var a=arguments.length,c=new Array(a),l=0;l<a;l++)c[l]=arguments[l];o.apply(this,c)}}}function n(){}function r(o){return o.setHeader&&typeof o.abort=="function"}function i(o,s,a){if(typeof s=="function")return i(o,null,s);s||(s={}),a=t(a||n);var c=s.readable||s.readable!==!1&&o.readable,l=s.writable||s.writable!==!1&&o.writable,u=function(){o.writable||f()},d=o._writableState&&o._writableState.finished,f=function(){l=!1,d=!0,c||a.call(o)},p=o._readableState&&o._readableState.endEmitted,g=function(){c=!1,p=!0,l||a.call(o)},m=function(S){a.call(o,S)},y=function(){var S;if(c&&!p)return(!o._readableState||!o._readableState.ended)&&(S=new e),a.call(o,S);if(l&&!d)return(!o._writableState||!o._writableState.ended)&&(S=new e),a.call(o,S)},v=function(){o.req.on("finish",f)};return r(o)?(o.on("complete",f),o.on("abort",y),o.req?v():o.on("request",v)):l&&!o._writableState&&(o.on("end",u),o.on("close",u)),o.on("end",g),o.on("finish",f),s.error!==!1&&o.on("error",m),o.on("close",y),function(){o.removeListener("complete",f),o.removeListener("abort",y),o.removeListener("request",v),o.req&&o.req.removeListener("finish",f),o.removeListener("end",u),o.removeListener("close",u),o.removeListener("finish",f),o.removeListener("end",g),o.removeListener("error",m),o.removeListener("close",y)}}return BL=i,BL}var $L,Bce;function hXt(){if(Bce)return $L;Bce=1;var e;function t(v,w,S){return w in v?Object.defineProperty(v,w,{value:S,enumerable:!0,configurable:!0,writable:!0}):v[w]=S,v}
vendor: 4,570 bytes, line 1630
1630var n=IG(),r=Symbol("lastResolve"),i=Symbol("lastReject"),o=Symbol("error"),s=Symbol("ended"),a=Symbol("lastPromise"),c=Symbol("handlePromise"),l=Symbol("stream");function u(v,w){return{value:v,done:w}}function d(v){var w=v[r];if(w!==null){var S=v[l].read();S!==null&&(v[a]=null,v[r]=null,v[i]=null,w(u(S,!1)))}}function f(v){pn.nextTick(d,v)}function p(v,w){return function(S,C){v.then(function(){if(w[s]){S(u(void 0,!0));return}w[c](S,C)},C)}}var g=Object.getPrototypeOf(function(){}),m=Object.setPrototypeOf((e={get stream(){return this[l]},next:function(){var w=this,S=this[o];if(S!==null)return Promise.reject(S);if(this[s])return Promise.resolve(u(void 0,!0));if(this[l].destroyed)return new Promise(function(x,O){pn.nextTick(function(){w[o]?O(w[o]):x(u(void 0,!0))})});var C=this[a],E;if(C)E=new Promise(p(C,this));else{var T=this[l].read();if(T!==null)return Promise.resolve(u(T,!1));E=new Promise(this[c])}return this[a]=E,E}},t(e,Symbol.asyncIterator,function(){return this}),t(e,"return",function(){var w=this;return new Promise(function(S,C){w[l].destroy(null,function(E){if(E){C(E);return}S(u(void 0,!0))})})}),e),g),y=function(w){var S,C=Object.create(m,(S={},t(S,l,{value:w,writable:!0}),t(S,r,{value:null,writable:!0}),t(S,i,{value:null,writable:!0}),t(S,o,{value:null,writable:!0}),t(S,s,{value:w._readableState.endEmitted,writable:!0}),t(S,c,{value:function(T,x){var O=C[l].read();O?(C[a]=null,C[r]=null,C[i]=null,T(u(O,!1))):(C[r]=T,C[i]=x)},writable:!0}),S));return C[a]=null,n(w,function(E){if(E&&E.code!=="ERR_STREAM_PREMATURE_CLOSE"){var T=C[i];T!==null&&(C[a]=null,C[r]=null,C[i]=null,T(E)),C[o]=E;return}var x=C[r];x!==null&&(C[a]=null,C[r]=null,C[i]=null,x(u(void 0,!0))),C[s]=!0}),w.on("readable",f.bind(null,C)),C};return $L=y,$L}var HL,$ce;function pXt(){return $ce||($ce=1,HL=function(){throw new Error("Readable.from is not available in the browser")}),HL}var zL,Hce;function gIe(){if(Hce)return zL;Hce=1,zL=A;var e;A.ReadableState=O,EG().EventEmitter;var t=function(J,Se){return J.listeners(Se).length},n=sIe(),r=m4().Buffer,i=rd.Uint8Array||function(){};function o(ne){return r.from(ne)}function s(ne){return r.isBuffer(ne)||ne instanceof i}var a=fIe(),c;a&&a.debuglog?c=a.debuglog("stream"):c=function(){};var l=uXt(),u=hIe(),d=pIe(),f=d.getHighWaterMark,p=lw().codes,g=p.ERR_INVALID_ARG_TYPE,m=p.ERR_STREAM_PUSH_AFTER_EOF,y=p.ERR_METHOD_NOT_IMPLEMENTED,v=p.ERR_STREAM_UNSHIFT_AFTER_END_EVENT,w,S,C;zm()(A,n);var E=u.errorOrDestroy,T=["error","close","destroy","pause","resume"];function x(ne,J,Se){if(typeof ne.prependListener=="function")return ne.prependListener(J,Se);!ne._events||!ne._events[J]?ne.on(J,Se):Array.isArray(ne._events[J])?ne._events[J].unshift(Se):ne._events[J]=[Se,ne._events[J]]}function O(ne,J,Se){e=e||tb(),ne=ne||{},typeof Se!="boolean"&&(Se=J instanceof e),this.objectMode=!!ne.objectMode,Se&&(this.objectMode=this.objectMode||!!ne.readableObjectMode),this.highWaterMark=f(this,ne,"readableHighWaterMark",Se),this.buffer=new l,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=ne.emitClose!==!1,this.autoDestroy=!!ne.autoDestroy,this.destroyed=!1,this.defaultEncoding=ne.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,ne.encoding&&(w||(w=UU().StringDecoder),this.decoder=new w(ne.encoding),this.encoding=ne.encoding)}function A(ne){if(e=e||tb(),!(this instanceof A))return new A(ne);var J=this instanceof e;this._readableState=new O(ne,this,J),this.readable=!0,ne&&(typeof ne.read=="function"&&(this._read=ne.read),typeof ne.destroy=="function"&&(this._destroy=ne.destroy)),n.call(this)}Object.defineProperty(A.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(J){this._readableState&&(this._readableState.destroyed=J)}}),A.prototype.destroy=u.destroy,A.prototype._undestroy=u.undestroy,A.prototype._destroy=function(ne,J){J(ne)},A.prototype.push=function(ne,J){var Se=this._readableState,H;return Se.objectMode?H=!0:typeof ne=="string"&&(J=J||Se.defaultEncoding,J!==Se.encoding&&(ne=r.from(ne,J),J=""),H=!0),L(this,ne,J,!1,H)},A.prototype.unshift=function(ne){return L(this,ne,null,!0,!1)};function L(ne,J,Se,H,be){c("readableAddChunk",J);var V=ne._readableState;if(J===null)V.reading=!1,ee(ne,V);else{var M;if(be||(M=I(V,J)),M)E(ne,M);else if(V.objectMode||J&&J.length>
vendor: 7,220 bytes, line 1630
16300)if(typeof J!="string"&&!V.objectMode&&Object.getPrototypeOf(J)!==r.prototype&&(J=o(J)),H)V.endEmitted?E(ne,new v):U(ne,V,J,!0);else if(V.ended)E(ne,new m);else{if(V.destroyed)return!1;V.reading=!1,V.decoder&&!Se?(J=V.decoder.write(J),V.objectMode||J.length!==0?U(ne,V,J,!1):Z(ne,V)):U(ne,V,J,!1)}else H||(V.reading=!1,Z(ne,V))}return!V.ended&&(V.length<V.highWaterMark||V.length===0)}function U(ne,J,Se,H){J.flowing&&J.length===0&&!J.sync?(J.awaitDrain=0,ne.emit("data",Se)):(J.length+=J.objectMode?1:Se.length,H?J.buffer.unshift(Se):J.buffer.push(Se),J.needReadable&&Y(ne)),Z(ne,J)}function I(ne,J){var Se;return!s(J)&&typeof J!="string"&&J!==void 0&&!ne.objectMode&&(Se=new g("chunk",["string","Buffer","Uint8Array"],J)),Se}A.prototype.isPaused=function(){return this._readableState.flowing===!1},A.prototype.setEncoding=function(ne){w||(w=UU().StringDecoder);var J=new w(ne);this._readableState.decoder=J,this._readableState.encoding=this._readableState.decoder.encoding;for(var Se=this._readableState.buffer.head,H="";Se!==null;)H+=J.write(Se.data),Se=Se.next;return this._readableState.buffer.clear(),H!==""&&this._readableState.buffer.push(H),this._readableState.length=H.length,this};var F=1073741824;function P(ne){return ne>=F?ne=F:(ne--,ne|=ne>>>1,ne|=ne>>>2,ne|=ne>>>4,ne|=ne>>>8,ne|=ne>>>16,ne++),ne}function W(ne,J){return ne<=0||J.length===0&&J.ended?0:J.objectMode?1:ne!==ne?J.flowing&&J.length?J.buffer.head.data.length:J.length:(ne>J.highWaterMark&&(J.highWaterMark=P(ne)),ne<=J.length?ne:J.ended?J.length:(J.needReadable=!0,0))}A.prototype.read=function(ne){c("read",ne),ne=parseInt(ne,10);var J=this._readableState,Se=ne;if(ne!==0&&(J.emittedReadable=!1),ne===0&&J.needReadable&&((J.highWaterMark!==0?J.length>=J.highWaterMark:J.length>0)||J.ended))return c("read: emitReadable",J.length,J.ended),J.length===0&&J.ended?B(this):Y(this),null;if(ne=W(ne,J),ne===0&&J.ended)return J.length===0&&B(this),null;var H=J.needReadable;c("need readable",H),(J.length===0||J.length-ne<J.highWaterMark)&&(H=!0,c("length less than watermark",H)),J.ended||J.reading?(H=!1,c("reading or ended",H)):H&&(c("do read"),J.reading=!0,J.sync=!0,J.length===0&&(J.needReadable=!0),this._read(J.highWaterMark),J.sync=!1,J.reading||(ne=W(Se,J)));var be;return ne>0?be=j(ne,J):be=null,be===null?(J.needReadable=J.length<=J.highWaterMark,ne=0):(J.length-=ne,J.awaitDrain=0),J.length===0&&(J.ended||(J.needReadable=!0),Se!==ne&&J.ended&&B(this)),be!==null&&this.emit("data",be),be};function ee(ne,J){if(c("onEofChunk"),!J.ended){if(J.decoder){var Se=J.decoder.end();Se&&Se.length&&(J.buffer.push(Se),J.length+=J.objectMode?1:Se.length)}J.ended=!0,J.sync?Y(ne):(J.needReadable=!1,J.emittedReadable||(J.emittedReadable=!0,X(ne)))}}function Y(ne){var J=ne._readableState;c("emitReadable",J.needReadable,J.emittedReadable),J.needReadable=!1,J.emittedReadable||(c("emitReadable",J.flowing),J.emittedReadable=!0,pn.nextTick(X,ne))}function X(ne){var J=ne._readableState;c("emitReadable_",J.destroyed,J.length,J.ended),!J.destroyed&&(J.length||J.ended)&&(ne.emit("readable"),J.emittedReadable=!1),J.needReadable=!J.flowing&&!J.ended&&J.length<=J.highWaterMark,ae(ne)}function Z(ne,J){J.readingMore||(J.readingMore=!0,pn.nextTick(G,ne,J))}function G(ne,J){for(;!J.reading&&!J.ended&&(J.length<J.highWaterMark||J.flowing&&J.length===0);){var Se=J.length;if(c("maybeReadMore read 0"),ne.read(0),Se===J.length)break}J.readingMore=!1}A.prototype._read=function(ne){E(this,new y("_read()"))},A.prototype.pipe=function(ne,J){var Se=this,H=this._readableState;switch(H.pipesCount){case 0:H.pipes=ne;break;case 1:H.pipes=[H.pipes,ne];break;default:H.pipes.push(ne);break}H.pipesCount+=1,c("pipe count=%d opts=%j",H.pipesCount,J);var be=(!J||J.end!==!1)&&ne!==pn.stdout&&ne!==pn.stderr,V=be?N:ve;H.endEmitted?pn.nextTick(V):Se.once("end",V),ne.on("unpipe",M);function M(ke,He){c("onunpipe"),ke===Se&&He&&He.hasUnpiped===!1&&(He.hasUnpiped=!0,pe())}function N(){c("onend"),ne.end()}var $=Q(Se);ne.on("drain",$);var ce=!1;function pe(){c("cleanup"),ne.removeListener("close",Ee),ne.removeListener("finish",xe),ne.removeListener("drain",$),ne.removeListener("error",we),ne.removeListener("unpipe",M),Se.removeListener("end",N),Se.removeListener("end",ve),Se.removeListener("data",fe),ce=!0,H.awaitDrain&&(!ne._writableState||ne._writableState.needDrain)&&$()}Se.on("data",fe);function fe(ke){c("ondata");var He=ne.write(ke);c("dest.write",He),He===!1&&((H.pipesCount===1&&H.pipes===ne||H.pipesCount>1&&oe(H.pipes,ne)!==-1)&&!ce&&(c("false write response, pause",H.awaitDrain),H.awaitDrain++),Se.pause())}function we(ke){c("onerror",ke),ve(),ne.removeListener("error",we),t(ne,"error")===0&&E(ne,ke)}x(ne,"error",we);function Ee(){ne.removeListener("finish",xe),ve()}ne.once("close",Ee);function xe(){c("onfinish"),ne.removeListener("close",Ee),ve()}ne.once("finish",xe);function ve(){c("unpipe"),Se.unpipe(ne)}return ne.emit("pipe",Se),H.flowing||(c("pipe resume"),Se.resume()),ne};function Q(ne){return function(){var Se=ne._readableState;c("pipeOnDrain",Se.awaitDrain),Se.awaitDrain&&Se.awaitDrain--,Se.awaitDrain===0&&t(ne,"data")&&(Se.flowing=!0,ae(ne))}}A.prototype.unpipe=function(ne){var J=this._readableState,Se={hasUnpiped:!1};if(J.pipesCount===0)return this;if(J.pipesCount===1)return ne&&ne!==J.pipes?this:(ne||(ne=J.pipes),J.pipes=null,J.pipesCount=0,J.flowing=!1,ne&&ne.emit("unpipe",this,Se),this);if(!ne){var H=J.pipes,be=J.pipesCount;J.pipes=null,J.pipesCount=0,J.flowing=!1;for(var V=0;V<be;V++)H[V].emit("unpipe",this,{hasUnpiped:!1});return this}var M=oe(J.pipes,ne);return M===-1?this:(J.pipes.splice(M,1),J.pipesCount-=1,J.pipesCount===1&&(J.pipes=J.pipes[0]),ne.emit("unpipe",this,Se),this)},A.prototype.on=function(ne,J){var Se=n.prototype.on.call(this,ne,J),H=this._readableState;return ne==="data"?(H.readableListening=this.listenerCount("readable")>0,H.flowing!==!1&&this.resume()):ne==="readable"&&!H.endEmitted&&!H.readableListening&&(H.readableListening=H.needReadable=!0,H.flowing=!1,H.emittedReadable=!1,c("on readable",H.length,H.reading),H.length?Y(this):H.reading||pn.nextTick(z,this)),Se},A.prototype.addListener=A.prototype.on,A.prototype.removeListener=function(ne,J){var Se=n.prototype.removeListener.call(this,ne,J);return ne==="readable"&&pn.nextTick(q,this),Se},A.prototype.removeAllListeners=function(ne){var J=n.prototype.removeAllListeners.apply(this,arguments);return(ne==="readable"||ne===void 0)&&pn.nextTick(q,this),J};function q(ne){var J=ne._readableState;J.readableListening=ne.listenerCount("readable")>0,J.resumeScheduled&&!J.paused?J.flowing=!0:ne.listenerCount("data")>0&&ne.resume()}function z(ne){c("readable nexttick read 0"),ne.read(0)}A.prototype.resume=function(){var ne=this._readableState;return ne.flowing||(c("resume"),ne.flowing=!ne.readableListening,ue(this,ne)),ne.paused=!1,this};function ue(ne,J){J.resumeScheduled||(J.resumeScheduled=!0,pn.nextTick(ge,ne,J))}function ge(ne,J){c("resume",J.reading),J.reading||ne.read(0),J.resumeScheduled=!1,ne.emit("resume"),ae(ne),J.flowing&&!J.reading&&ne.read(0)}A.prototype.pause=function(){return c("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(c("pause"),this._readableState.flowing=!1,this.emit
1630("pause")),this._readableState.paused=!0,this};function ae(ne){var J=ne._readableState;for(c("flow",J.flowing);J.flowing&&ne.read()!==null;);}A.prototype.wrap=function(ne){var J=this,Se=this._readableState,H=!1;ne.on("end",function(){if(c("wrapped end"),Se.decoder&&!Se.ended){var M=Se.decoder.end();M&&M.length&&J.push(M)}J.push(null)}),ne.on("data",function(M){if(c("wrapped data"),Se.decoder&&(M=Se.decoder.write(M)),!(Se.objectMode&&M==null)&&!(!Se.objectMode&&(!M||!M.length))){var N=J.push(M);N||(H=!0,ne.pause())}});for(var be in ne)this[be]===void 0&&typeof ne[be]=="function"&&(this[be]=(function(N){return function(){return ne[N].apply(ne,arguments)}})(be));for(var V=0;V<T.length;V++)ne.on(T[V],this.emit.bind(this,T[V]));return this._read=function(M){c("wrapped _read",M),H&&(H=!1,ne.resume())},this},typeof Symbol=="function"&&(A.prototype[Symbol.asyncIterator]=function(){return S===void 0&&(S=hXt()),S(this)}),Object.defineProperty(A.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(A.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(A.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(J){this._readableState&&(this._readableState.flowing=J)}}),A._fromList=j,Object.defineProperty(A.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}});function j(ne,J){if(J.length===0)return null;var Se;return J.objectMode?Se=J.buffer.shift():!ne||ne>=J.length?(J.decoder?Se=J.buffer.join(""):J.buffer.length===1?Se=J.buffer.first():Se=J.buffer.concat(J.length),J.buffer.clear()):Se=J.buffer.consume(ne,J.decoder),Se}function B(ne){var J=ne._readableState;c("endReadable",J.endEmitted),J.endEmitted||(J.ended=!0,pn.nextTick(re,J,ne))}function re(ne,J){if(c("endReadableNT",ne.endEmitted,ne.length),!ne.endEmitted&&ne.length===0&&(ne.endEmitted=!0,J.readable=!1,J.emit("end"),ne.autoDestroy)){var Se=J._writableState;(!Se||Se.autoDestroy&&Se.finished)&&J.destroy()}}typeof Symbol=="function"&&(A.from=function(ne,J){return C===void 0&&(C=pXt()),C(A,ne,J)});function oe(ne,J){for(var Se=0,H=ne.length;Se<H;Se++)if(ne[Se]===J)return Se;return-1}return zL}var VL,zce;function vIe(){if(zce)return VL;zce=1,VL=a;var e=lw().codes,t=e.ERR_METHOD_NOT_IMPLEMENTED,n=e.ERR_MULTIPLE_CALLBACK,r=e.ERR_TRANSFORM_ALREADY_TRANSFORMING,i=e.ERR_TRANSFORM_WITH_LENGTH_0,o=tb();zm()(a,o);function s(u,d){var f=this._transformState;f.transforming=!1;var p=f.writecb;if(p===null)return this.emit("error",new n);f.writechunk=null,f.writecb=null,d!=null&&this.push(d),p(u);var g=this._readableState;g.reading=!1,(g.needReadable||g.length<g.highWaterMark)&&this._read(g.highWaterMark)}function a(u){if(!(this instanceof a))return new a(u);o.call(this,u),this._transformState={afterTransform:s.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,u&&(typeof u.transform=="function"&&(this._transform=u.transform),typeof u.flush=="function"&&(this._flush=u.flush)),this.on("prefinish",c)}function c(){var u=this;typeof this._flush=="function"&&!this._readableState.destroyed?this._flush(function(d,f){l(u,d,f)}):l(this,null,null)}a.prototype.push=function(u,d){return this._transformState.needTransform=!1,o.prototype.push.call(this,u,d)},a.prototype._transform=function(u,d,f){f(new t("_transform()"))},a.prototype._write=function(u,d,f){var p=this._transformState;if(p.writecb=f,p.writechunk=u,p.writeencoding=d,!p.transforming){var g=this._readableState;(p.needTransform||g.needReadable||g.length<g.highWaterMark)&&this._read(g.highWaterMark)}},a.prototype._read=function(u){var d=this._transformState;d.writechunk!==null&&!d.transforming?(d.transforming=!0,this._transform(d.writechunk,d.writeencoding,d.afterTransform)):d.needTransform=!0},a.prototype._destroy=function(u,d){o.prototype._destroy.call(this,u,function(f){d(f)})};function l(u,d,f){if(d)return u.emit("error",d);if(f!=null&&u.push(f),u._writableState.length)throw new i;if(u._transformState.transforming)throw new r;return u.push(null)}return VL}var WL,Vce;function mXt(){if(Vce)return WL;Vce=1,WL=t;var e=vIe();zm()(t,e);function t(n){if(!(this instanceof t))return new t(n);e.call(this,n)}return t.prototype._transform=function(n,r,i){i(null,n)},WL}var qL,Wce;function gXt(){if(Wce)return qL;Wce=1;var e;function t(f){var p=!1;return function(){p||(p=!0,f.apply(void 0,arguments))}}var n=lw().codes,r=n.ERR_MISSING_ARGS,i=n.ERR_STREAM_DESTROYED;function o(f){if(f)throw f}function s(f){return f.setHeader&&typeof f.abort=="function"}function a(f,p,g,m){m=t(m);var y=!1;f.on("close",function(){y=!0}),e===void 0&&(e=IG()),e(f,{readable:p,writable:g},function(w){if(w)return m(w);y=!0,m()});var v=!1;return function(w){if(!y&&!v){if(v=!0,s(f))return f.abort();if(typeof f.destroy=="function")return f.destroy();m(w||new i("pipe"))}}}function c(f){f()}function l(f,p){return f.pipe(p)}function u(f){return!f.length||typeof f[f.length-1]!="function"?o:f.pop()}function d(){for(var f=arguments.length,p=new Array(f),g=0;g<f;g++)p[g]=arguments[g];var m=u(p);if(Array.isArray(p[0])&&(p=p[0]),p.length<2)throw new r("streams");var y,v=p.map(function(w,S){var C=S<p.length-1,E=S>0;return a(w,C,E,function(T){y||(y=T),T&&v.forEach(c),!C&&(v.forEach(c),m(y))})});return p.reduce(l)}return qL=d,qL}var GL,qce;function RG(){if(qce)return GL;qce=1,GL=n;var e=EG().EventEmitter,t=zm();t(n,e),n.Readable=gIe(),n.Writable=mIe(),n.Duplex=tb(),n.Transform=vIe(),n.PassThrough=mXt(),n.finished=IG(),n.pipeline=gXt(),n.Stream=n;function n(){e.call(this)}return n.prototype.pipe=function(r,i){var o=this;function s(p){r.writable&&r.write(p)===!1&&o.pause&&o.pause()}o.on("data",s);function a(){o.readable&&o.resume&&o.resume()}r.on("drain",a),!r._isStdio&&(!i||i.end!==!1)&&(o.on("end",l),o.on("close",u));var c=!1;function l(){c||(c=!0,r.end())}function u(){c||(c=!0,typeof r.destroy=="function"&&r.destroy())}function d(p){if(f(),e.listenerCount(this,"error")===0)throw p}o.on("error",d),r.on("error",d);function f(){o.removeListener("data",s),r.removeListener("drain",a),o.removeListener("end",l),o.removeListener("close",u),o.removeListener("error",d),r.removeListener("error",d),o.removeListener("end",f),o.removeListener("close",f),r.removeListener("close",f)}return o.on("end",f),o.on("close",f),r.on("close",f),r.emit("pipe",o),r},GL}var Gce;function vXt(){return Gce||(Gce=1,(function(e){(function(t){t.parser=function(j,B){return new r(j,B)},t.SAXParser=r,t.SAXStream=u,t.createStream=l,t.MAX_BUFFER_LENGTH=64*1024;var n=["comment","sgmlDecl","textNode","tagName","doctype","procInstName","procInstBody","entity","attribName","attribValue","cdata","script"];t.EVENTS=["text","processinginstruction","sgmldeclaration","doctype","comment","opentagstart","attribute","opentag","closetag","opencdata","cdata","closecdata","error","end","ready","script","opennamespace","closenamespace"];function r(j,B){if(!(this instanceof r))return new r(j,B);var re=this;o(re),re.q=re.c="",re.bufferCheckPosition=t.MAX_BUFFER_LENGTH,re.opt=B||{},re.opt.lowercase=re.opt.lowercase||re.opt.lowercasetags,re.looseCase=re.opt.lowercase?"toLowerCase":"toUpperCase",re.tags=[],re.closed=re.closedRoot=re.sawRoot=!1,re.tag=re.error=null,re.strict=!!j,re.noscript=!!(j||re.opt.noscript),re.state=A.BEGIN,re.strictEntities=re.opt.strictEntities,re.ENTITIES=re.strictEntities?Object.create(t.XML_ENTITIES):Object.create(t.ENTITIES),re.attribList=[],re.opt.xmlns&&(re.ns=Object.create(m)),re.trackPosition=re.opt.position!==!1,re.trackPosition&&(re.position=re.line=re.column=0),U(re,"onready")}Object.create||(Object.create=function(j){function B(){}B.prototype=j;var re=new B;return re}),Object.keys||(Object.keys=function(j){var B=[];for(var re in j)j.hasOwnProperty(re)&&B.push(re);return B});function i(j){for(var B=Math.max(t.MAX_BUFFER_LENGTH,10),re=0,oe=0,ne=n.length;oe<ne;oe++){var J=j[n[oe]].length;if(J>B)switch(n[oe]){case"textNode":F(j);break;case"cdata":I(j,"oncdata",j.cdata),j.cdata="";break;case"script":I(j,"onscript",j.script),j.script="";break;default:W(j,"Max buffer length exceeded: "+n[oe])}re=Math.max(re,J)}var Se=t.MAX_BUFFER_LENGTH-re;j.bufferCheckPosition=Se+j.position}function o(j){for(var B=0,re=n.length;B<re;B++)j[n[B]]=""}function s(j){F(j),j.cdata!==""&&(I(j,"oncdata",j.cdata),j.cdata=""),j.script!==""&&(I(j,"onscript",j.script),j.script="")}r.prototype={end:function(){ee(this)},write:ae,resume:function(){return this.error=null,this},close:function(){return this.write(null)},flush:function(){s(this)}};var a;try{a=RG().Stream}catch{a=function(){}}var c=t.EVENTS.filter(function(j){return j!=="error"&&j!=="end"});function l(j,B){return new u(j,B)}function u(j,B){if(!(this instanceof u))return new u(j,B);a.apply(this),this._parser=new r(j,B),this.writable=!0,this.readable=!0;var re=this;this._parser.onend=function(){re.emit("end")},this._parser.onerror=function(oe){re.emit("error",oe),re._parser.error=null}
vendor: 28,300 bytes, lines 1630-1640
1630,this._decoder=null,c.forEach(function(oe){Object.defineProperty(re,"on"+oe,{get:function(){return re._parser["on"+oe]},set:function(ne){if(!ne)return re.removeAllListeners(oe),re._parser["on"+oe]=ne,ne;re.on(oe,ne)},enumerable:!0,configurable:!1})})}u.prototype=Object.create(a.prototype,{constructor:{value:u}}),u.prototype.write=function(j){if(typeof Buffer=="function"&&typeof Buffer.isBuffer=="function"&&Buffer.isBuffer(j)){if(!this._decoder){var B=UU().StringDecoder;this._decoder=new B("utf8")}j=this._decoder.write(j)}return this._parser.write(j.toString()),this.emit("data",j),!0},u.prototype.end=function(j){return j&&j.length&&this.write(j),this._parser.end(),!0},u.prototype.on=function(j,B){var re=this;return!re._parser["on"+j]&&c.indexOf(j)!==-1&&(re._parser["on"+j]=function(){var oe=arguments.length===1?[arguments[0]]:Array.apply(null,arguments);oe.splice(0,0,j),re.emit.apply(re,oe)}),a.prototype.on.call(re,j,B)};var d="[CDATA[",f="DOCTYPE",p="http://www.w3.org/XML/1998/namespace",g="http://www.w3.org/2000/xmlns/",m={xml:p,xmlns:g},y=/[:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,v=/[:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u00B7\u0300-\u036F\u203F-\u2040.\d-]/,w=/[#:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,S=/[#:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u00B7\u0300-\u036F\u203F-\u2040.\d-]/;function C(j){return j===" "||j===`
1631`||j==="\r"||j==="	"}function E(j){return j==='"'||j==="'"}function T(j){return j===">"||C(j)}function x(j,B){return j.test(B)}function O(j,B){return!x(j,B)}var A=0;t.STATE={BEGIN:A++,BEGIN_WHITESPACE:A++,TEXT:A++,TEXT_ENTITY:A++,OPEN_WAKA:A++,SGML_DECL:A++,SGML_DECL_QUOTED:A++,DOCTYPE:A++,DOCTYPE_QUOTED:A++,DOCTYPE_DTD:A++,DOCTYPE_DTD_QUOTED:A++,COMMENT_STARTING:A++,COMMENT:A++,COMMENT_ENDING:A++,COMMENT_ENDED:A++,CDATA:A++,CDATA_ENDING:A++,CDATA_ENDING_2:A++,PROC_INST:A++,PROC_INST_BODY:A++,PROC_INST_ENDING:A++,OPEN_TAG:A++,OPEN_TAG_SLASH:A++,ATTRIB:A++,ATTRIB_NAME:A++,ATTRIB_NAME_SAW_WHITE:A++,ATTRIB_VALUE:A++,ATTRIB_VALUE_QUOTED:A++,ATTRIB_VALUE_CLOSED:A++,ATTRIB_VALUE_UNQUOTED:A++,ATTRIB_VALUE_ENTITY_Q:A++,ATTRIB_VALUE_ENTITY_U:A++,CLOSE_TAG:A++,CLOSE_TAG_SAW_WHITE:A++,SCRIPT:A++,SCRIPT_ENDING:A++},t.XML_ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'"},t.ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'",AElig:198,Aacute:193,Acirc:194,Agrave:192,Aring:197,Atilde:195,Auml:196,Ccedil:199,ETH:208,Eacute:201,Ecirc:202,Egrave:200,Euml:203,Iacute:205,Icirc:206,Igrave:204,Iuml:207,Ntilde:209,Oacute:211,Ocirc:212,Ograve:210,Oslash:216,Otilde:213,Ouml:214,THORN:222,Uacute:218,Ucirc:219,Ugrave:217,Uuml:220,Yacute:221,aacute:225,acirc:226,aelig:230,agrave:224,aring:229,atilde:227,auml:228,ccedil:231,eacute:233,ecirc:234,egrave:232,eth:240,euml:235,iacute:237,icirc:238,igrave:236,iuml:239,ntilde:241,oacute:243,ocirc:244,ograve:242,oslash:248,otilde:245,ouml:246,szlig:223,thorn:254,uacute:250,ucirc:251,ugrave:249,uuml:252,yacute:253,yuml:255,copy:169,reg:174,nbsp:160,iexcl:161,cent:162,pound:163,curren:164,yen:165,brvbar:166,sect:167,uml:168,ordf:170,laquo:171,not:172,shy:173,macr:175,deg:176,plusmn:177,sup1:185,sup2:178,sup3:179,acute:180,micro:181,para:182,middot:183,cedil:184,ordm:186,raquo:187,frac14:188,frac12:189,frac34:190,iquest:191,times:215,divide:247,OElig:338,oelig:339,Scaron:352,scaron:353,Yuml:376,fnof:402,circ:710,tilde:732,Alpha:913,Beta:914,Gamma:915,Delta:916,Epsilon:917,Zeta:918,Eta:919,Theta:920,Iota:921,Kappa:922,Lambda:923,Mu:924,Nu:925,Xi:926,Omicron:927,Pi:928,Rho:929,Sigma:931,Tau:932,Upsilon:933,Phi:934,Chi:935,Psi:936,Omega:937,alpha:945,beta:946,gamma:947,delta:948,epsilon:949,zeta:950,eta:951,theta:952,iota:953,kappa:954,lambda:955,mu:956,nu:957,xi:958,omicron:959,pi:960,rho:961,sigmaf:962,sigma:963,tau:964,upsilon:965,phi:966,chi:967,psi:968,omega:969,thetasym:977,upsih:978,piv:982,ensp:8194,emsp:8195,thinsp:8201,zwnj:8204,zwj:8205,lrm:8206,rlm:8207,ndash:8211,mdash:8212,lsquo:8216,rsquo:8217,sbquo:8218,ldquo:8220,rdquo:8221,bdquo:8222,dagger:8224,Dagger:8225,bull:8226,hellip:8230,permil:8240,prime:8242,Prime:8243,lsaquo:8249,rsaquo:8250,oline:8254,frasl:8260,euro:8364,image:8465,weierp:8472,real:8476,trade:8482,alefsym:8501,larr:8592,uarr:8593,rarr:8594,darr:8595,harr:8596,crarr:8629,lArr:8656,uArr:8657,rArr:8658,dArr:8659,hArr:8660,forall:8704,part:8706,exist:8707,empty:8709,nabla:8711,isin:8712,notin:8713,ni:8715,prod:8719,sum:8721,minus:8722,lowast:8727,radic:8730,prop:8733,infin:8734,ang:8736,and:8743,or:8744,cap:8745,cup:8746,int:8747,there4:8756,sim:8764,cong:8773,asymp:8776,ne:8800,equiv:8801,le:8804,ge:8805,sub:8834,sup:8835,nsub:8836,sube:8838,supe:8839,oplus:8853,otimes:8855,perp:8869,sdot:8901,lceil:8968,rceil:8969,lfloor:8970,rfloor:8971,lang:9001,rang:9002,loz:9674,spades:9824,clubs:9827,hearts:9829,diams:9830},Object.keys(t.ENTITIES).forEach(function(j){var B=t.ENTITIES[j],re=typeof B=="number"?String.fromCharCode(B):B;t.ENTITIES[j]=re});for(var L in t.STATE)t.STATE[t.STATE[L]]=L;A=t.STATE;function U(j,B,re){j[B]&&j[B](re)}function I(j,B,re){j.textNode&&F(j),U(j,B,re)}function F(j){j.textNode=P(j.opt,j.textNode),j.textNode&&U(j,"ontext",j.textNode),j.textNode=""}function P(j,B){return j.trim&&(B=B.trim()),j.normalize&&(B=B.replace(/\s+/g," ")),B}function W(j,B){return F(j),j.trackPosition&&(B+=`
1632Line: `+j.line+`
1633Column: `+j.column+`
1634Char: `+j.c),B=new Error(B),j.error=B,U(j,"onerror",B),j}function ee(j){return j.sawRoot&&!j.closedRoot&&Y(j,"Unclosed root tag"),j.state!==A.BEGIN&&j.state!==A.BEGIN_WHITESPACE&&j.state!==A.TEXT&&W(j,"Unexpected end"),F(j),j.c="",j.closed=!0,U(j,"onend"),r.call(j,j.strict,j.opt),j}function Y(j,B){if(typeof j!="object"||!(j instanceof r))throw new Error("bad call to strictFail");j.strict&&W(j,B)}function X(j){j.strict||(j.tagName=j.tagName[j.looseCase]());var B=j.tags[j.tags.length-1]||j,re=j.tag={name:j.tagName,attributes:{}};j.opt.xmlns&&(re.ns=B.ns),j.attribList.length=0,I(j,"onopentagstart",re)}function Z(j,B){var re=j.indexOf(":"),oe=re<0?["",j]:j.split(":"),ne=oe[0],J=oe[1];return B&&j==="xmlns"&&(ne="xmlns",J=""),{prefix:ne,local:J}}function G(j){if(j.strict||(j.attribName=j.attribName[j.looseCase]()),j.attribList.indexOf(j.attribName)!==-1||j.tag.attributes.hasOwnProperty(j.attribName)){j.attribName=j.attribValue="";return}if(j.opt.xmlns){var B=Z(j.attribName,!0),re=B.prefix,oe=B.local;if(re==="xmlns")if(oe==="xml"&&j.attribValue!==p)Y(j,"xml: prefix must be bound to "+p+`
1635Actual: `+j.attribValue);else if(oe==="xmlns"&&j.attribValue!==g)Y(j,"xmlns: prefix must be bound to "+g+`
1636Actual: `+j.attribValue);else{var ne=j.tag,J=j.tags[j.tags.length-1]||j;ne.ns===J.ns&&(ne.ns=Object.create(J.ns)),ne.ns[oe]=j.attribValue}j.attribList.push([j.attribName,j.attribValue])}else j.tag.attributes[j.attribName]=j.attribValue,I(j,"onattribute",{name:j.attribName,value:j.attribValue});j.attribName=j.attribValue=""}function Q(j,B){if(j.opt.xmlns){var re=j.tag,oe=Z(j.tagName);re.prefix=oe.prefix,re.local=oe.local,re.uri=re.ns[oe.prefix]||"",re.prefix&&!re.uri&&(Y(j,"Unbound namespace prefix: "+JSON.stringify(j.tagName)),re.uri=oe.prefix);var ne=j.tags[j.tags.length-1]||j;re.ns&&ne.ns!==re.ns&&Object.keys(re.ns).forEach(function(fe){I(j,"onopennamespace",{prefix:fe,uri:re.ns[fe]})});for(var J=0,Se=j.attribList.length;J<Se;J++){var H=j.attribList[J],be=H[0],V=H[1],M=Z(be,!0),N=M.prefix,$=M.local,ce=N===""?"":re.ns[N]||"",pe={name:be,value:V,prefix:N,local:$,uri:ce};N&&N!=="xmlns"&&!ce&&(Y(j,"Unbound namespace prefix: "+JSON.stringify(N)),pe.uri=N),j.tag.attributes[be]=pe,I(j,"onattribute",pe)}j.attribList.length=0}j.tag.isSelfClosing=!!B,j.sawRoot=!0,j.tags.push(j.tag),I(j,"onopentag",j.tag),B||(!j.noscript&&j.tagName.toLowerCase()==="script"?j.state=A.SCRIPT:j.state=A.TEXT,j.tag=null,j.tagName=""),j.attribName=j.attribValue="",j.attribList.length=0}function q(j){if(!j.tagName){Y(j,"Weird empty close tag."),j.textNode+="</>",j.state=A.TEXT;return}if(j.script){if(j.tagName!=="script"){j.script+="</"+j.tagName+">",j.tagName="",j.state=A.SCRIPT;return}I(j,"onscript",j.script),j.script=""}var B=j.tags.length,re=j.tagName;j.strict||(re=re[j.looseCase]());for(var oe=re;B--;){var ne=j.tags[B];if(ne.name!==oe)Y(j,"Unexpected close tag");else break}if(B<0){Y(j,"Unmatched closing tag: "+j.tagName),j.textNode+="</"+j.tagName+">",j.state=A.TEXT;return}j.tagName=re;for(var J=j.tags.length;J-- >B;){var Se=j.tag=j.tags.pop();j.tagName=j.tag.name,I(j,"onclosetag",j.tagName);var H={};for(var be in Se.ns)H[be]=Se.ns[be];var V=j.tags[j.tags.length-1]||j;j.opt.xmlns&&Se.ns!==V.ns&&Object.keys(Se.ns).forEach(function(M){var N=Se.ns[M];I(j,"onclosenamespace",{prefix:M,uri:N})})}B===0&&(j.closedRoot=!0),j.tagName=j.attribValue=j.attribName="",j.attribList.length=0,j.state=A.TEXT}function z(j){var B=j.entity,re=B.toLowerCase(),oe,ne="";return j.ENTITIES[B]?j.ENTITIES[B]:j.ENTITIES[re]?j.ENTITIES[re]:(B=re,B.charAt(0)==="#"&&(B.charAt(1)==="x"?(B=B.slice(2),oe=parseInt(B,16),ne=oe.toString(16)):(B=B.slice(1),oe=parseInt(B,10),ne=oe.toString(10))),B=B.replace(/^0+/,""),isNaN(oe)||ne.toLowerCase()!==B?(Y(j,"Invalid character entity"),"&"+j.entity+";"):String.fromCodePoint(oe))}function ue(j,B){B==="<"?(j.state=A.OPEN_WAKA,j.startTagPosition=j.position):C(B)||(Y(j,"Non-whitespace before first tag."),j.textNode=B,j.state=A.TEXT)}function ge(j,B){var re="";return B<j.length&&(re=j.charAt(B)),re}function ae(j){var B=this;if(this.error)throw this.error;if(B.closed)return W(B,"Cannot write after close. Assign an onready handler.");if(j===null)return ee(B);typeof j=="object"&&(j=j.toString());for(var re=0,oe="";oe=ge(j,re++),B.c=oe,!!oe;)switch(B.trackPosition&&(B.position++,oe===`
1637`?(B.line++,B.column=0):B.column++),B.state){case A.BEGIN:if(B.state=A.BEGIN_WHITESPACE,oe==="\uFEFF")continue;ue(B,oe);continue;case A.BEGIN_WHITESPACE:ue(B,oe);continue;case A.TEXT:if(B.sawRoot&&!B.closedRoot){for(var ne=re-1;oe&&oe!=="<"&&oe!=="&";)oe=ge(j,re++),oe&&B.trackPosition&&(B.position++,oe===`
1638`?(B.line++,B.column=0):B.column++);B.textNode+=j.substring(ne,re-1)}oe==="<"&&!(B.sawRoot&&B.closedRoot&&!B.strict)?(B.state=A.OPEN_WAKA,B.startTagPosition=B.position):(!C(oe)&&(!B.sawRoot||B.closedRoot)&&Y(B,"Text data outside of root node."),oe==="&"?B.state=A.TEXT_ENTITY:B.textNode+=oe);continue;case A.SCRIPT:oe==="<"?B.state=A.SCRIPT_ENDING:B.script+=oe;continue;case A.SCRIPT_ENDING:oe==="/"?B.state=A.CLOSE_TAG:(B.script+="<"+oe,B.state=A.SCRIPT);continue;case A.OPEN_WAKA:if(oe==="!")B.state=A.SGML_DECL,B.sgmlDecl="";else if(!C(oe))if(x(y,oe))B.state=A.OPEN_TAG,B.tagName=oe;else if(oe==="/")B.state=A.CLOSE_TAG,B.tagName="";else if(oe==="?")B.state=A.PROC_INST,B.procInstName=B.procInstBody="";else{if(Y(B,"Unencoded <"),B.startTagPosition+1<B.position){var J=B.position-B.startTagPosition;oe=new Array(J).join(" ")+oe}B.textNode+="<"+oe,B.state=A.TEXT}continue;case A.SGML_DECL:(B.sgmlDecl+oe).toUpperCase()===d?(I(B,"onopencdata"),B.state=A.CDATA,B.sgmlDecl="",B.cdata=""):B.sgmlDecl+oe==="--"?(B.state=A.COMMENT,B.comment="",B.sgmlDecl=""):(B.sgmlDecl+oe).toUpperCase()===f?(B.state=A.DOCTYPE,(B.doctype||B.sawRoot)&&Y(B,"Inappropriately located doctype declaration"),B.doctype="",B.sgmlDecl=""):oe===">"?(I(B,"onsgmldeclaration",B.sgmlDecl),B.sgmlDecl="",B.state=A.TEXT):(E(oe)&&(B.state=A.SGML_DECL_QUOTED),B.sgmlDecl+=oe);continue;case A.SGML_DECL_QUOTED:oe===B.q&&(B.state=A.SGML_DECL,B.q=""),B.sgmlDecl+=oe;continue;case A.DOCTYPE:oe===">"?(B.state=A.TEXT,I(B,"ondoctype",B.doctype),B.doctype=!0):(B.doctype+=oe,oe==="["?B.state=A.DOCTYPE_DTD:E(oe)&&(B.state=A.DOCTYPE_QUOTED,B.q=oe));continue;case A.DOCTYPE_QUOTED:B.doctype+=oe,oe===B.q&&(B.q="",B.state=A.DOCTYPE);continue;case A.DOCTYPE_DTD:B.doctype+=oe,oe==="]"?B.state=A.DOCTYPE:E(oe)&&(B.state=A.DOCTYPE_DTD_QUOTED,B.q=oe);continue;case A.DOCTYPE_DTD_QUOTED:B.doctype+=oe,oe===B.q&&(B.state=A.DOCTYPE_DTD,B.q="");continue;case A.COMMENT:oe==="-"?B.state=A.COMMENT_ENDING:B.comment+=oe;continue;case A.COMMENT_ENDING:oe==="-"?(B.state=A.COMMENT_ENDED,B.comment=P(B.opt,B.comment),B.comment&&I(B,"oncomment",B.comment),B.comment=""):(B.comment+="-"+oe,B.state=A.COMMENT);continue;case A.COMMENT_ENDED:oe!==">"?(Y(B,"Malformed comment"),B.comment+="--"+oe,B.state=A.COMMENT):B.state=A.TEXT;continue;case A.CDATA:oe==="]"?B.state=A.CDATA_ENDING:B.cdata+=oe;continue;case A.CDATA_ENDING:oe==="]"?B.state=A.CDATA_ENDING_2:(B.cdata+="]"+oe,B.state=A.CDATA);continue;case A.CDATA_ENDING_2:oe===">"?(B.cdata&&I(B,"oncdata",B.cdata),I(B,"onclosecdata"),B.cdata="",B.state=A.TEXT):oe==="]"?B.cdata+="]":(B.cdata+="]]"+oe,B.state=A.CDATA);continue;case A.PROC_INST:oe==="?"?B.state=A.PROC_INST_ENDING:C(oe)?B.state=A.PROC_INST_BODY:B.procInstName+=oe;continue;case A.PROC_INST_BODY:if(!B.procInstBody&&C(oe))continue;oe==="?"?B.state=A.PROC_INST_ENDING:B.procInstBody+=oe;continue;case A.PROC_INST_ENDING:oe===">"?(I(B,"onprocessinginstruction",{name:B.procInstName,body:B.procInstBody}),B.procInstName=B.procInstBody="",B.state=A.TEXT):(B.procInstBody+="?"+oe,B.state=A.PROC_INST_BODY);continue;case A.OPEN_TAG:x(v,oe)?B.tagName+=oe:(X(B),oe===">"?Q(B):oe==="/"?B.state=A.OPEN_TAG_SLASH:(C(oe)||Y(B,"Invalid character in tag name"),B.state=A.ATTRIB));continue;case A.OPEN_TAG_SLASH:oe===">"?(Q(B,!0),q(B)):(Y(B,"Forward-slash in opening tag not followed by >"),B.state=A.ATTRIB);continue;case A.ATTRIB:if(C(oe))continue;oe===">"?Q(B):oe==="/"?B.state=A.OPEN_TAG_SLASH:x(y,oe)?(B.attribName=oe,B.attribValue="",B.state=A.ATTRIB_NAME):Y(B,"Invalid attribute name");continue;case A.ATTRIB_NAME:oe==="="?B.state=A.ATTRIB_VALUE:oe===">"?(Y(B,"Attribute without value"),B.attribValue=B.attribName,G(B),Q(B)):C(oe)?B.state=A.ATTRIB_NAME_SAW_WHITE:x(v,oe)?B.attribName+=oe:Y(B,"Invalid attribute name");continue;case A.ATTRIB_NAME_SAW_WHITE:if(oe==="=")B.state=A.ATTRIB_VALUE;else{if(C(oe))continue;Y(B,"Attribute without value"),B.tag.attributes[B.attribName]="",B.attribValue="",I(B,"onattribute",{name:B.attribName,value:""}),B.attribName="",oe===">"?Q(B):x(y,oe)?(B.attribName=oe,B.state=A.ATTRIB_NAME):(Y(B,"Invalid attribute name"),B.state=A.ATTRIB)}continue;case A.ATTRIB_VALUE:if(C(oe))continue;E(oe)?(B.q=oe,B.state=A.ATTRIB_VALUE_QUOTED):(Y(B,"Unquoted attribute value"),B.state=A.ATTRIB_VALUE_UNQUOTED,B.attribValue=oe);continue;case A.ATTRIB_VALUE_QUOTED:if(oe!==B.q){oe==="&"?B.state=A.ATTRIB_VALUE_ENTITY_Q:B.attribValue+=oe;continue}G(B),B.q="",B.state=A.ATTRIB_VALUE_CLOSED;continue;case A.ATTRIB_VALUE_CLOSED:C(oe)?B.state=A.ATTRIB:oe===">"?Q(B):oe==="/"?B.state=A.OPEN_TAG_SLASH:x(y,oe)?(Y(B,"No whitespace between attributes"),B.attribName=oe,B.attribValue="",B.state=A.ATTRIB_NAME):Y(B,"Invalid attribute name");continue;case A.ATTRIB_VALUE_UNQUOTED:if(!T(oe)){oe==="&"?B.state=A.ATTRIB_VALUE_ENTITY_U:B.attribValue+=oe;continue}G(B),oe===">"?Q(B):B.state=A.ATTRIB;continue;case A.CLOSE_TAG:if(B.tagName)oe===">"?q(B):x(v,oe)?B.tagName+=oe:B.script?(B.script+="</"+B.tagName,B.tagName="",B.state=A.SCRIPT):(C(oe)||Y(B,"Invalid tagname in closing tag"),B.state=A.CLOSE_TAG_SAW_WHITE);else{if(C(oe))continue;O(y,oe)?B.script?(B.script+="</"+oe,B.state=A.SCRIPT):Y(B,"Invalid tagname in closing tag."):B.tagName=oe}continue;case A.CLOSE_TAG_SAW_WHITE:if(C(oe))continue;oe===">"?q(B):Y(B,"Invalid characters in closing tag");continue;case A.TEXT_ENTITY:case A.ATTRIB_VALUE_ENTITY_Q:case A.ATTRIB_VALUE_ENTITY_U:var Se,H;switch(B.state){case A.TEXT_ENTITY:Se=A.TEXT,H="textNode";break;case A.ATTRIB_VALUE_ENTITY_Q:Se=A.ATTRIB_VALUE_QUOTED,H="attribValue";break;case A.ATTRIB_VALUE_ENTITY_U:Se=A.ATTRIB_VALUE_UNQUOTED,H="attribValue";break}oe===";"?(B[H]+=z(B),B.entity="",B.state=Se):x(B.entity.length?S:w,oe)?B.entity+=oe:(Y(B,"Invalid character in entity name"),B[H]+="&"+B.entity+oe,B.entity="",B.state=Se);continue;default:throw new Error(B,"Unknown state: "+B.state)}return B.position>=B.bufferCheckPosition&&i(B),B}/*! http://mths.be/fromcodepoint v0.1.0 by @mathias */String.fromCodePoint||(function(){var j=String.fromCharCode,B=Math.floor,re=function(){var oe=16384,ne=[],J,Se,H=-1,be=arguments.length;if(!be)return"";for(var V="";++H<be;){var M=Number(arguments[H]);if(!isFinite(M)||M<0||M>1114111||B(M)!==M)throw RangeError("Invalid code point: "+M);M<=65535?ne.push(M):(M-=65536,J=(M>>10)+55296,Se=M%1024+56320,ne.push(J,Se)),(H+1===be||ne.length>oe)&&(V+=j.apply(null,ne),ne.length=0)}return V};Object.defineProperty?Object.defineProperty(String,"fromCodePoint",{value:re,configurable:!0,writable:!0}):String.fromCodePoint=re})()})(e)})(QD)),QD}var KL,Kce;function PG(){return Kce||(Kce=1,KL={isArray:function(e){return Array.isArray?Array.isArray(e):Object.prototype.toString.call(e)==="[object Array]"}}),KL}var YL,Yce;function OG(){if(Yce)return YL;Yce=1;var e=PG().isArray;return YL={copyOptions:function(t){var n,r={};for(n in t)t.hasOwnProperty(n)&&(r[n]=t[n]);return r},ensureFlagExists:function(t,n){(!(t in n)||typeof n[t]!="boolean")&&(n[t]=!1)},ensureSpacesExists:function(t){(!("spaces"in t)||typeof t.spaces!="number"&&typeof t.spaces!="string")&&(t.spaces=0)},ensureAlwaysArrayExists:function(t){(!("alwaysArray"in t)||typeof t.alwaysArray!="boolean"&&!e(t.alwaysArray))&&(t.alwaysArray=!1)},ensureKeyExists:function(t,n){(!(t+"Key"in n)||typeof n[t+"Key"]!="string")&&(n[t+"Key"]=n.compact?"_"+t:t)},checkFnExists:function(t,n){return t+"Fn"in n}},YL}var QL,Qce;function yIe(){if(Qce)return QL;Qce=1;var e=vXt(),t=OG(),n=PG().isArray,r,i;function o(v){return r=t.copyOptions(v),t.ensureFlagExists("ignoreDeclaration",r),t.ensureFlagExists("ignoreInstruction",r),t.ensureFlagExists("ignoreAttributes",r),t.ensureFlagExists("ignoreText",r),t.ensureFlagExists("ignoreComment",r),t.ensureFlagExists("ignoreCdata",r),t.ensureFlagExists("ignoreDoctype",r),t.ensureFlagExists("compact",r),t.ensureFlagExists("alwaysChildren",r),t.ensureFlagExists("addParent",r),t.ensureFlagExists("trim",r),t.ensureFlagExists("nativeType",r),t.ensureFlagExists("nativeTypeAttributes",r),t.ensureFlagExists("sanitize",r),t.ensureFlagExists("instructionHasAttributes",r),t.ensureFlagExists("captureSpacesBetweenElements",r),t.ensureAlwaysArrayExists(r),t.ensureKeyExists("declaration",r),t.ensureKeyExists("instruction",r),t.ensureKeyExists("attributes",r),t.ensureKeyExists("text",r),t.ensureKeyExists("comment",r),t.ensureKeyExists("cdata",r),t.ensureKeyExists("doctype",r),t.ensureKeyExists("type",r),t.ensureKeyExists("name",r),t.ensureKeyExists("elements",r),t.ensureKeyExists("parent",r),t.checkFnExists("doctype",r),t.checkFnExists("instruction",r),t.checkFnExists("cdata",r),t.checkFnExists("comment",r),t.checkFnExists("text",r),t.checkFnExists("instructionName",r),t.checkFnExists("elementName",r),t.checkFnExists("attributeName",r),t.checkFnExists("attributeValue",r),t.checkFnExists("attributes",r),r}function s(v){var w=Number(v);if(!isNaN(w))return w;var S=v.toLowerCase();return S==="true"?!0:S==="false"?!1:v}function a(v,w){var S;if(r.compact){if(!i[r[v+"Key"]]&&(n(r.alwaysArray)?r.alwaysArray.indexOf(r[v+"Key"])!==-1:r.alwaysArray)&&(i[r[v+"Key"]]=[]),i[r[v+"Key"]]&&!n(i[r[v+"Key"]])&&(i[r[v+"Key"]]=[i[r[v+"Key"]]]),v+"Fn"in r&&typeof w=="string"&&(w=r[v+"Fn"](w,i)),v==="instruction"&&("instructionFn"in r||"instructionNameFn"in r)){for(S in w)if(w.hasOwnProperty(S))if("instructionFn"in r)w[S]=r.instructionFn(w[S],S,i);else{var C=w[S];delete w[S],w[r.instructionNameFn(S,C,i)]=C}}n(i[r[v+"Key"]])?i[r[v+"Key"]].push(w):i[r[v+"Key"]]=w}else{i[r.elementsKey]||(i[r.elementsKey]=[]);var E={};if(E[r.typeKey]=v,v==="instruction"){for(S in w)if(w.hasOwnProperty(S))break;E[r.nameKey]="instructionNameFn"in r?r.instructionNameFn(S,w,i):S,r.instructionHasAttributes?(E[r.attributesKey]=w[S][r.attributesKey],"instructionFn"in r&&(E[r.attributesKey]=r.instructionFn(E[r.attributesKey],S,i))):("instructionFn"in r&&(w[S]=r.instructionFn(w[S],S,i)),E[r.instructionKey]=w[S])}else v+"Fn"in r&&(w=r[v+"Fn"](w,i)),E[r[v+"Key"]]=w;r.addParent&&(E[r.parentKey]=i),i[r.elementsKey].push(E)}}function c(v){if("attributesFn"in r&&v&&(v=r.attributesFn(v,i)),(r.trim||"attributeValueFn"in r||"attributeNameFn"in r||r.nativeTypeAttributes)&&v){var w;for(w in v)if(v.hasOwnProperty(w)&&(r.trim&&(v[w]=v[w].trim()),r.nativeTypeAttributes&&(v[w]=s(v[w])),"attributeValueFn"in r&&(v[w]=r.attributeValueFn(v[w],w,i)),"attributeNameFn"in r)){var S=v[w];delete v[w],v[r.attributeNameFn(w,v[w],i)]=S}}return v}function l(v){var w={};if(v.body&&(v.name.toLowerCase()==="xml"||r.instructionHasAttributes)){for(var S=/([\w:-]+)\s*=\s*(?:"([^"]*)"|'([^']*)'|(\w+))\s*/g,C;(C=S.exec(v.body))!==null;)w[C[1]]=C[2]||C[3]||C[4];w=c(w)}if(v.name.toLowerCase()==="xml"){if(r.ignoreDeclaration)return;i[r.declarationKey]={},Object.keys(w).length&&(i[r.declarationKey][r.attributesKey]=w),r.addParent&&(i[r.declarationKey][r.parentKey]=i)}else{if(r.ignoreInstruction)return;r.trim&&(v.body=v.body.trim());var E={};r.instructionHasAttributes&&Object.keys(w).length?(E[v.name]={},E[v.name][r.attributesKey]=w):E[v.name]=v.body,a("instruction",E)}}function u(v,w){var S;if(typeof v=="object"&&(w=v.attributes,v=v.name),w=c(w),"elementNameFn"in r&&(v=r.elementNameFn(v,i)),r.compact){if(S={},!r.ignoreAttributes&&w&&Object.keys(w).length){S[r.attributesKey]={};var C;for(C in w)w.hasOwnProperty(C)&&(S[r.attributesKey][C]=w[C])}!(v in i)&&(n(r.alwaysArray)?r.alwaysArray.indexOf(v)!==-1:r.alwaysArray)&&(i[v]=[]),i[v]&&!n(i[v])&&(i[v]=[i[v]]),n(i[v])?i[v].push(S):i[v]=S}else i[r.elementsKey]||(i[r.elementsKey]=[]),S={},S[r.typeKey]="element",S[r.nameKey]=v,!r.ignoreAttributes&&w&&Object.keys(w).length&&(S[r.attributesKey]=w),r.alwaysChildren&&(S[r.elementsKey]=[]),i[r.elementsKey].push(S);S[r.parentKey]=i,i=S}function d(v){r.ignoreText||!v.trim()&&!r.captureSpacesBetweenElements||(r.trim&&(v=v.trim()),r.nativeType&&(v=s(v)),r.sanitize&&(v=v.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;")),a("text",v))}function f(v){r.ignoreComment||(r.trim&&(v=v.trim()),a("comment",v))}function p(v){var w=i[r.parentKey];r.addParent||delete i[r.parentKey],i=w}function g(v){r.ignoreCdata||(r.trim&&(v=v.trim()),a("cdata",v))}function m(v){r.ignoreDoctype||(v=v.replace(/^ /,""),r.trim&&(v=v.trim()),a("doctype",v))}function y(v){v.note=v}return QL=function(v,w){var S=e.parser(!0,{}),C={};if(i=C,r=o(w),S.opt={strictEntities:!0},S.onopentag=u,S.ontext=d,S.oncomment=f,S.onclosetag=p,S.onerror=y,S.oncdata=g,S.ondoctype=m,S.onprocessinginstruction=l,S.write(v).close(),C[r.elementsKey]){var E=C[r.elementsKey];delete C[r.elementsKey],C[r.elementsKey]=E,delete C.text}return C},QL}var XL,Xce;function yXt(){if(Xce)return XL;Xce=1;var e=OG(),t=yIe();function n(r){var i=e.copyOptions(r);return e.ensureSpacesExists(i),i}return XL=function(r,i){var o,s,a,c;return o=n(i),s=t(r,o),c="compact"in o&&o.compact?"_parent":"parent","addParent"in o&&o.addParent?a=JSON.stringify(s,function(l,u){return l===c?"_":u},o.spaces):a=JSON.stringify(s,null,o.spaces),a.replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")},XL}var JL,Jce;function bIe(){if(Jce)return JL;Jce=1;var e=OG(),t=PG().isArray,n,r;function i(S){var C=e.copyOptions(S);return e.ensureFlagExists("ignoreDeclaration",C),e.ensureFlagExists("ignoreInstruction",C),e.ensureFlagExists("ignoreAttributes",C),e.ensureFlagExists("ignoreText",C),e.ensureFlagExists("ignoreComment",C),e.ensureFlagExists("ignoreCdata",C),e.ensureFlagExists("ignoreDoctype",C),e.ensureFlagExists("compact",C),e.ensureFlagExists("indentText",C),e.ensureFlagExists("indentCdata",C),e.ensureFlagExists("indentAttributes",C),e.ensureFlagExists("indentInstruction",C),e.ensureFlagExists("fullTagEmptyElement",C),e.ensureFlagExists("noQuotesForNativeAttributes",C),e.ensureSpacesExists(C),typeof C.spaces=="number"&&(C.spaces=Array(C.spaces+1).join(" ")),e.ensureKeyExists("declaration",C),e.ensureKeyExists("instruction",C),e.ensureKeyExists("attributes",C),e.ensureKeyExists("text",C),e.ensureKeyExists("comment",C),e.ensureKeyExists("cdata",C),e.ensureKeyExists("doctype",C),e.ensureKeyExists("type",C),e.ensureKeyExists("name",C),e.ensureKeyExists("elements",C),e.checkFnExists("doctype",C),e.checkFnExists("instruction",C),e.checkFnExists("cdata",C),e.checkFnExists("comment",C),e.checkFnExists("text",C),e.checkFnExists("instructionName",C),e.checkFnExists("elementName",C),e.checkFnExists("attributeName",C),e.checkFnExists("attributeValue",C),e.checkFnExists("attributes",C),e.checkFnExists("fullTagEmptyElement",C),C}function o(S,C,E){return(!E&&S.spaces?`
1639`:"")+Array(C+1).join(S.spaces)}function s(S,C,E){if(C.ignoreAttributes)return"";"attributesFn"in C&&(S=C.attributesFn(S,r,n));var T,x,O,A,L=[];for(T in S)S.hasOwnProperty(T)&&S[T]!==null&&S[T]!==void 0&&(A=C.noQuotesForNativeAttributes&&typeof S[T]!="string"?"":'"',x=""+S[T],x=x.replace(/"/g,"&quot;"),O="attributeNameFn"in C?C.attributeNameFn(T,x,r,n):T,L.push(C.spaces&&C.indentAttributes?o(C,E+1,!1):" "),L.push(O+"="+A+("attributeValueFn"in C?C.attributeValueFn(x,T,r,n):x)+A));return S&&Object.keys(S).length&&C.spaces&&C.indentAttributes&&L.push(o(C,E,!1)),L.join("")}function a(S,C,E){return n=S,r="xml",C.ignoreDeclaration?"":"<?xml"+s(S[C.attributesKey],C,E)+"?>"}function c(S,C,E){if(C.ignoreInstruction)return"";var T;for(T in S)if(S.hasOwnProperty(T))break;var x="instructionNameFn"in C?C.instructionNameFn(T,S[T],r,n):T;if(typeof S[T]=="object")return n=S,r=x,"<?"+x+s(S[T][C.attributesKey],C,E)+"?>";var O=S[T]?S[T]:"";return"instructionFn"in C&&(O=C.instructionFn(O,T,r,n)),"<?"+x+(O?" "+O:"")+"?>"}function l(S,C){return C.ignoreComment?"":"<!--"+("commentFn"in C?C.commentFn(S,r,n):S)+"-->"}function u(S,C){return C.ignoreCdata?"":"<![CDATA["+("cdataFn"in C?C.cdataFn(S,r,n):S.replace("]]>","]]]]><![CDATA[>"))+"]]>"}function d(S,C){return C.ignoreDoctype?"":"<!DOCTYPE "+("doctypeFn"in C?C.doctypeFn(S,r,n):S)+">"}function f(S,C){return C.ignoreText?"":(S=""+S,S=S.replace(/&amp;/g,"&"),S=S.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;"),"textFn"in C?C.textFn(S,r,n):S)}function p(S,C){var E;if(S.elements&&S.elements.length)for(E=0;E<S.elements.length;++E)switch(S.elements[E][C.typeKey]){case"text":if(C.indentText)return!0;break;case"cdata":if(C.indentCdata)return!0;break;case"instruction":if(C.indentInstruction)return!0;break;case"doctype":case"comment":case"element":return!0;default:return!0}return!1}function g(S,C,E){n=S,r=S.name;var T=[],x="elementNameFn"in C?C.elementNameFn(S.name,S):S.name;T.push("<"+x),S[C.attributesKey]&&T.push(s(S[C.attributesKey],C,E));var O=S[C.elementsKey]&&S[C.elementsKey].length||S[C.attributesKey]&&S[C.attributesKey]["xml:space"]==="preserve";return O||("fullTagEmptyElementFn"in C?O=C.fullTagEmptyElementFn(S.name,S):O=C.fullTagEmptyElement),O?(T.push(">"),S[C.elementsKey]&&S[C.elementsKey].length&&(T.push(m(S[C.elementsKey],C,E+1)),n=S,r=S.name),T.push(C.spaces&&p(S,C)?`
1640`+Array(E+1).join(C.spaces):""),T.push("</"+x+">")):T.push("/>"),T.join("")}function m(S,C,E,T){return S.reduce(function(x,O){var A=o(C,E,T&&!x);switch(O.type){case"element":return x+A+g(O,C,E);case"comment":return x+A+l(O[C.commentKey],C);case"doctype":return x+A+d(O[C.doctypeKey],C);case"cdata":return x+(C.indentCdata?A:"")+u(O[C.cdataKey],C);case"text":return x+(C.indentText?A:"")+f(O[C.textKey],C);case"instruction":var L={};return L[O[C.nameKey]]=O[C.attributesKey]?O:O[C.instructionKey],x+(C.indentInstruction?A:"")+c(L,C,E)}},"")}function y(S,C,E){var T;for(T in S)if(S.hasOwnProperty(T))switch(T){case C.parentKey:case C.attributesKey:break;case C.textKey:if(C.indentText||E)return!0;break;case C.cdataKey:if(C.indentCdata||E)return!0;break;case C.instructionKey:if(C.indentInstruction||E)return!0;break;case C.doctypeKey:case C.commentKey:return!0;default:return!0}return!1}function v(S,C,E,T,x){n=S,r=C;var O="elementNameFn"in E?E.elementNameFn(C,S):C;if(typeof S>"u"||S===null||S==="")return"fullTagEmptyElementFn"in E&&E.fullTagEmptyElementFn(C,S)||E.fullTagEmptyElement?"<"+O+"></"+O+">":"<"+O+"/>";var A=[];
1640if(C){if(A.push("<"+O),typeof S!="object")return A.push(">"+f(S,E)+"</"+O+">"),A.join("");S[E.attributesKey]&&A.push(s(S[E.attributesKey],E,T));var L=y(S,E,!0)||S[E.attributesKey]&&S[E.attributesKey]["xml:space"]==="preserve";if(L||("fullTagEmptyElementFn"in E?L=E.fullTagEmptyElementFn(C,S):L=E.fullTagEmptyElement),L)A.push(">");else return A.push("/>"),A.join("")}return A.push(w(S,E,T+1,!1)),n=S,r=C,C&&A.push((x?o(E,T,!1):"")+"</"+O+">"),A.join("")}function w(S,C,E,T){var x,O,A,L=[];for(O in S)if(S.hasOwnProperty(O))for(A=t(S[O])?S[O]:[S[O]],x=0;x<A.length;++x){switch(O){case C.declarationKey:L.push(a(A[x],C,E));break;case C.instructionKey:L.push((C.indentInstruction?o(C,E,T):"")+c(A[x],C,E));break;case C.attributesKey:case C.parentKey:break;case C.textKey:L.push((C.indentText?o(C,E,T):"")+f(A[x],C));break;case C.cdataKey:L.push((C.indentCdata?o(C,E,T):"")+u(A[x],C));break;case C.doctypeKey:L.push(o(C,E,T)+d(A[x],C));break;case C.commentKey:L.push(o(C,E,T)+l(A[x],C));break;default:L.push(o(C,E,T)+v(A[x],O,C,E,y(A[x],C)))}T=T&&!L.length}return L.join("")}return JL=function(S,C){C=i(C);var E=[];return n=S,r="_root_",C.compact?E.push(w(S,C,0,!0)):(S[C.declarationKey]&&E.push(a(S[C.declarationKey],C,0)),S[C.elementsKey]&&S[C.elementsKey].length&&E.push(m(S[C.elementsKey],C,0,!E.length))),E.join("")},JL}var ZL,Zce;function bXt(){if(Zce)return ZL;Zce=1;var e=bIe();return ZL=function(t,n){t instanceof Buffer&&(t=t.toString());var r=null;if(typeof t=="string")try{r=JSON.parse(t)}catch{throw new Error("The JSON structure is invalid")}else r=t;return e(r,n)},ZL}var e8,ele;function wXt(){if(ele)return e8;ele=1;var e=yIe(),t=yXt(),n=bIe(),r=bXt();return e8={xml2js:e,xml2json:t,js2xml:n,json2xml:r},e8}var wIe=wXt();const NG=e=>{switch(e.type){case void 0:case"element":const t=new _Xt(e.name,e.attributes),n=e.elements||[];for(const r of n){const i=NG(r);i!==void 0&&t.push(i)}return t;case"text":return e.text;default:return}};class SXt extends Dt{}class _Xt extends Ke{static fromXmlString(t){const n=wIe.xml2js(t,{compact:!1});return NG(n)}constructor(t,n){super(t),n&&this.root.push(new SXt(n))}push(t){this.root.push(t)}}class CXt extends Ke{constructor(t){super(""),this._attr=t}prepForXml(t){return{_attr:this._attr}}}class SIe extends Ke{constructor(t,n){super(t),n&&(this.root=n.root)}}const Pa=e=>{if(isNaN(e))throw new Error(`Invalid value '${e}' specified. Must be an integer.`);return Math.floor(e)},v4=e=>{const t=Pa(e);if(t<0)throw new Error(`Invalid value '${e}' specified. Must be a positive integer.`);return t},_Ie=(e,t)=>{const n=t*2;if(e.length!==n||isNaN(+`0x${e}`))throw new Error(`Invalid hex value '${e}'. Expected ${n} digit hex value`);return e},tle=e=>_Ie(e,1),CIe=e=>{const t=e.slice(-2),n=e.substring(0,e.length-2);return`${Number(n)}${t}`},EIe=e=>{const t=CIe(e);if(parseFloat(t)<0)throw new Error(`Invalid value '${t}' specified. Expected a positive number.`);return t},nb=e=>{if(e==="auto")return e;const t=e.charAt(0)==="#"?e.substring(1):e;return _Ie(t,3)},Rg=e=>typeof e=="string"?CIe(e):Pa(e),EXt=e=>typeof e=="string"?EIe(e):v4(e),zl=e=>typeof e=="string"?EIe(e):v4(e),TXt=v4,kXt=v4,xXt=e=>e.toISOString();class Ye extends Ke{constructor(t,n=!0){super(t),n!==!0&&this.root.push(new qi({val:n}))}}class t8 extends Ke{constructor(t,n){super(t),this.root.push(new qi({val:EXt(n)}))}}class Yy extends Ke{constructor(t,n){super(t),this.root.push(new qi({val:n}))}}const dS=(e,t)=>new Em({name:e,attributes:{value:{key:"w:val",value:t}}});class E_ extends Ke{constructor(t,n){super(t),this.root.push(new qi({val:n}))}}class tg extends Ke{constructor(t,n){super(t),this.root.push(n)}}class Em extends Ke{constructor({name:t,attributes:n,children:r}){super(t),n&&this.root.push(new y2(n)),r&&this.root.push(...r)}}const Ru={START:"start",LEFT:"left"};class AXt extends Dt{constructor(){super(...arguments),Ve(this,"xmlKeys",{val:"w:val"})}}class IXt extends Ke{constructor(t){super("w:jc"),this.root.push(new AXt({val:t}))}}class _i extends Ke{constructor(t,{color:n,size:r,space:i,style:o}){super(t),this.root.push(new RXt({style:o,color:n===void 0?void 0:nb(n),size:r===void 0?void 0:TXt(r),space:i===void 0?void 0:kXt(i)}))}}class RXt extends Dt{constructor(){super(...arguments),Ve(this,"xmlKeys",{style:"w:val",color:"w:color",size:"w:sz",space:"w:space"})}}const MG={SINGLE:"single",NONE:"none"};class PXt extends p4{constructor(t){super("w:pBdr"),t.top&&this.root.push(new _i("w:top",t.top)),t.bottom&&this.root.push(new _i("w:bottom",t.bottom)),t.left&&this.root.push(new _i("w:left",t.left)),t.right&&this.root.push(new _i("w:right",t.right))}}class OXt extends Ke{constructor(){super("w:pBdr");
1640const t=new _i("w:bottom",{color:"auto",space:1,style:MG.SINGLE,size:6});this.root.push(t)}}class NXt extends Ke{constructor({start:t,end:n,left:r,right:i,hanging:o,firstLine:s}){super("w:ind"),this.root.push(new y2({start:{key:"w:start",value:t===void 0?void 0:Rg(t)},end:{key:"w:end",value:n===void 0?void 0:Rg(n)},left:{key:"w:left",value:r===void 0?void 0:Rg(r)},right:{key:"w:right",value:i===void 0?void 0:Rg(i)},hanging:{key:"w:hanging",value:o===void 0?void 0:zl(o)},firstLine:{key:"w:firstLine",value:s===void 0?void 0:zl(s)}}))}}let MXt=class extends Ke{constructor(){super("w:br")}};const DG={BEGIN:"begin",END:"end",SEPARATE:"separate"};class LG extends Dt{constructor(){super(...arguments),Ve(this,"xmlKeys",{type:"w:fldCharType",dirty:"w:dirty"})}}class $k extends Ke{constructor(t){super("w:fldChar"),this.root.push(new LG({type:DG.BEGIN,dirty:t}))}}class Hk extends Ke{constructor(t){super("w:fldChar"),this.root.push(new LG({type:DG.SEPARATE,dirty:t}))}}class zk extends Ke{constructor(t){super("w:fldChar"),this.root.push(new LG({type:DG.END,dirty:t}))}}const rb={DEFAULT:"default",PRESERVE:"preserve"};class ib extends Dt{constructor(){super(...arguments),Ve(this,"xmlKeys",{space:"xml:space"})}}class DXt extends Ke{constructor(){super("w:instrText"),this.root.push(new ib({space:rb.PRESERVE})),this.root.push("PAGE")}}class LXt extends Ke{constructor(){super("w:instrText"),this.root.push(new ib({space:rb.PRESERVE})),this.root.push("NUMPAGES")}}class FXt extends Ke{constructor(){super("w:instrText"),this.root.push(new ib({space:rb.PRESERVE})),this.root.push("SECTIONPAGES")}}class jXt extends Ke{constructor(){super("w:instrText"),this.root.push(new ib({space:rb.PRESERVE})),this.root.push("SECTION")}}class UXt extends Dt{constructor(){super(...arguments),Ve(this,"xmlKeys",{fill:"w:fill",color:"w:color",type:"w:val"})}}class TIe extends Ke{constructor({fill:t,color:n,type:r}){super("w:shd"),this.root.push(new UXt({fill:t===void 0?void 0:nb(t),color:n===void 0?void 0:nb(n),type:r}))}}class BXt extends Dt{constructor(){super(...arguments),Ve(this,"xmlKeys",{id:"w:id",author:"w:author",date:"w:date"})}}const $Xt={DOT:"dot"};class HXt extends Ke{constructor(t){super("w:em"),this.root.push(new qi({val:t}))}}class zXt extends HXt{constructor(t=$Xt.DOT){super(t)}}class VXt extends Ke{constructor(t){super("w:spacing"),this.root.push(new qi({val:Rg(t)}))}}class WXt extends Ke{constructor(t){super("w:color"),this.root.push(new qi({val:nb(t)}))}}class qXt extends Ke{constructor(t){super("w:highlight"),this.root.push(new qi({val:t}))}}class GXt extends Ke{constructor(t){super("w:highlightCs"),this.root.push(new qi({val:t}))}}const KXt=e=>new Em({name:"w:lang",attributes:{value:{key:"w:val",value:e.value},eastAsia:{key:"w:eastAsia",value:e.eastAsia},bidirectional:{key:"w:bidi",value:e.bidirectional}}});
1640class nle extends Dt{constructor(){super(...arguments),Ve(this,"xmlKeys",{ascii:"w:ascii",cs:"w:cs",eastAsia:"w:eastAsia",hAnsi:"w:hAnsi",hint:"w:hint"})}}class n8 extends Ke{constructor(t,n){if(super("w:rFonts"),typeof t=="string"){const r=t;this.root.push(new nle({ascii:r,cs:r,eastAsia:r,hAnsi:r,hint:n}))}else{const r=t;this.root.push(new nle(r))}}}let kIe=class extends Ke{constructor(t){super("w:vertAlign"),this.root.push(new qi({val:t}))}};class YXt extends kIe{constructor(){super("superscript")}}class QXt extends kIe{constructor(){super("subscript")}}const xIe={SINGLE:"single"};class XXt extends Ke{constructor(t=xIe.SINGLE,n){super("w:u"),this.root.push(new qi({val:t,color:n===void 0?void 0:nb(n)}))}}class i0 extends p4{constructor(t){var n,r;if(super("w:rPr"),!t)return;t.noProof!==void 0&&this.push(new Ye("w:noProof",t.noProof)),t.bold!==void 0&&this.push(new Ye("w:b",t.bold)),(t.boldComplexScript===void 0&&t.bold!==void 0||t.boldComplexScript)&&this.push(new Ye("w:bCs",(n=t.boldComplexScript)!=null?n:t.bold)),t.italics!==void 0&&this.push(new Ye("w:i",t.italics)),(t.italicsComplexScript===void 0&&t.italics!==void 0||t.italicsComplexScript)&&this.push(new Ye("w:iCs",(r=t.italicsComplexScript)!=null?r:t.italics)),t.underline&&this.push(new XXt(t.underline.type,t.underline.color)),t.effect&&this.push(new Yy("w:effect",t.effect)),t.emphasisMark&&this.push(new zXt(t.emphasisMark.type)),t.color&&this.push(new WXt(t.color)),t.kern&&this.push(new t8("w:kern",t.kern)),t.position&&this.push(new Yy("w:position",t.position)),t.size!==void 0&&this.push(new t8("w:sz",t.size));const i=t.sizeComplexScript===void 0||t.sizeComplexScript===!0?t.size:t.sizeComplexScript;i&&this.push(new t8("w:szCs",i)),t.rightToLeft!==void 0&&this.push(new Ye("w:rtl",t.rightToLeft)),t.smallCaps!==void 0?this.push(new Ye("w:smallCaps",t.smallCaps)):t.allCaps!==void 0&&this.push(new Ye("w:caps",t.allCaps)),t.strike!==void 0&&this.push(new Ye("w:strike",t.strike)),t.doubleStrike!==void 0&&this.push(new Ye("w:dstrike",t.doubleStrike)),t.subScript&&this.push(new QXt),t.superScript&&this.push(new YXt),t.style&&this.push(new Yy("w:rStyle",t.style)),t.font&&(typeof t.font=="string"?this.push(new n8(t.font)):"name"in t.font?this.push(new n8(t.font.name,t.font.hint)):this.push(new n8(t.font))),t.highlight&&this.push(new qXt(t.highlight));const o=t.highlightComplexScript===void 0||t.highlightComplexScript===!0?t.highlight:t.highlightComplexScript;o&&this.push(new GXt(o)),t.characterSpacing&&this.push(new VXt(t.characterSpacing)),t.emboss!==void 0&&this.push(new Ye("w:emboss",t.emboss)),t.imprint!==void 0&&this.push(new Ye("w:imprint",t.imprint)),t.shading&&this.push(new TIe(t.shading)),t.revision&&this.push(new JXt(t.revision)),t.border&&this.push(new _i("w:bdr",t.border)),t.snapToGrid!==void 0&&this.push(new Ye("w:snapToGrid",t.snapToGrid)),t.vanish&&this.push(new Ye("w:vanish",t.vanish)),t.specVanish&&this.push(new Ye("w:specVanish",t.vanish)),t.scale!==void 0&&this.push(new E_("w:w",t.scale)),t.language&&this.push(KXt(t.language)),t.math&&this.push(new Ye("w:oMath",t.math))}push(t){this.root.push(t)}}class JXt extends Ke{constructor(t){super("w:rPrChange"),this.root.push(new BXt({id:t.id,author:t.author,date:t.date})),this.addChildElement(new i0(t))}}let rle=class extends Ke{constructor(t){var n;super("w:t"),typeof t=="string"?(this.root.push(new ib({space:rb.PRESERVE})),this.root.push(t)):(this.root.push(new ib({space:(n=t.space)!=null?n:rb.DEFAULT})),this.root.push(t.text))}};const Vk={CURRENT:"CURRENT",TOTAL_PAGES:"TOTAL_PAGES",TOTAL_PAGES_IN_SECTION:"TOTAL_PAGES_IN_SECTION",CURRENT_SECTION:"SECTION"};class y4 extends Ke{constructor(t){if(super("w:r"),Ve(this,"properties"),this.properties=new i0(t),this.root.push(this.properties),t.break)for(let n=0;n<t.break;n++)this.root.push(new MXt);if(t.children)for(const n of t.children){if(typeof n=="string"){switch(n){case Vk.CURRENT:this.root.push(new $k),this.root.push(new DXt),this.root.push(new Hk),this.root.push(new zk);break;case Vk.TOTAL_PAGES:this.root.push(new $k),this.root.push(new LXt),this.root.push(new Hk),this.root.push(new zk);break;case Vk.TOTAL_PAGES_IN_SECTION:this.root.push(new $k),this.root.push(new FXt),this.root.push(new Hk),this.root.push(new zk);break;case Vk.CURRENT_SECTION:this.root.push(new $k),this.root.push(new jXt),this.root.push(new Hk),this.root.push(new zk);break;default:this.root.push(new rle(n));break}continue}this.root.push(n)}else t.text!==void 0&&this.root.push(new rle(t.text))}}class vy extends y4{constructor(t){super(typeof t=="string"?{text:t}:t)}}var r8={},sr={},i8,ile;function w2(){if(ile)return i8;ile=1,i8=e;function e(t,n){if(!t)throw new Error(n||"Assertion failed")}return e.equal=function(n,r,i){if(n!=r)throw new Error(i||"Assertion failed: "+n+" != "+r)},i8}var ole;function Bd(){if(ole)return sr;ole=1;var e=w2(),t=zm();sr.inherits=t;
1640function n(I,F){return(I.charCodeAt(F)&64512)!==55296||F<0||F+1>=I.length?!1:(I.charCodeAt(F+1)&64512)===56320}function r(I,F){if(Array.isArray(I))return I.slice();if(!I)return[];var P=[];if(typeof I=="string")if(F){if(F==="hex")for(I=I.replace(/[^a-z0-9]+/ig,""),I.length%2!==0&&(I="0"+I),ee=0;ee<I.length;ee+=2)P.push(parseInt(I[ee]+I[ee+1],16))}else for(var W=0,ee=0;ee<I.length;ee++){var Y=I.charCodeAt(ee);Y<128?P[W++]=Y:Y<2048?(P[W++]=Y>>6|192,P[W++]=Y&63|128):n(I,ee)?(Y=65536+((Y&1023)<<10)+(I.charCodeAt(++ee)&1023),P[W++]=Y>>18|240,P[W++]=Y>>12&63|128,P[W++]=Y>>6&63|128,P[W++]=Y&63|128):(P[W++]=Y>>12|224,P[W++]=Y>>6&63|128,P[W++]=Y&63|128)}else for(ee=0;ee<I.length;ee++)P[ee]=I[ee]|0;return P}sr.toArray=r;function i(I){for(var F="",P=0;P<I.length;P++)F+=a(I[P].toString(16));return F}sr.toHex=i;function o(I){var F=I>>>24|I>>>8&65280|I<<8&16711680|(I&255)<<24;return F>>>0}sr.htonl=o;function s(I,F){for(var P="",W=0;W<I.length;W++){var ee=I[W];F==="little"&&(ee=o(ee)),P+=c(ee.toString(16))}return P}sr.toHex32=s;function a(I){return I.length===1?"0"+I:I}sr.zero2=a;function c(I){return I.length===7?"0"+I:I.length===6?"00"+I:I.length===5?"000"+I:I.length===4?"0000"+I:I.length===3?"00000"+I:I.length===2?"000000"+I:I.length===1?"0000000"+I:I}sr.zero8=c;function l(I,F,P,W){var ee=P-F;e(ee%4===0);for(var Y=new Array(ee/4),X=0,Z=F;X<Y.length;X++,Z+=4){var G;W==="big"?G=I[Z]<<24|I[Z+1]<<16|I[Z+2]<<8|I[Z+3]:G=I[Z+3]<<24|I[Z+2]<<16|I[Z+1]<<8|I[Z],Y[X]=G>>>0}return Y}sr.join32=l;function u(I,F){for(var P=new Array(I.length*4),W=0,ee=0;W<I.length;W++,ee+=4){var Y=I[W];F==="big"?(P[ee]=Y>>>24,P[ee+1]=Y>>>16&255,P[ee+2]=Y>>>8&255,P[ee+3]=Y&255):(P[ee+3]=Y>>>24,P[ee+2]=Y>>>16&255,P[ee+1]=Y>>>8&255,P[ee]=Y&255)}return P}sr.split32=u;function d(I,F){return I>>>F|I<<32-F}sr.rotr32=d;function f(I,F){return I<<F|I>>>32-F}sr.rotl32=f;function p(I,F){return I+F>>>0}sr.sum32=p;function g(I,F,P){return I+F+P>>>0}sr.sum32_3=g;function m(I,F,P,W){return I+F+P+W>>>0}sr.sum32_4=m;function y(I,F,P,W,ee){return I+F+P+W+ee>>>0}sr.sum32_5=y;function v(I,F,P,W){var ee=I[F],Y=I[F+1],X=W+Y>>>0,Z=(X<W?1:0)+P+ee;I[F]=Z>>>0,I[F+1]=X}sr.sum64=v;function w(I,F,P,W){var ee=F+W>>>0,Y=(ee<F?1:0)+I+P;return Y>>>0}sr.sum64_hi=w;function S(I,F,P,W){var ee=F+W;return ee>>>0}sr.sum64_lo=S;function C(I,F,P,W,ee,Y,X,Z){var G=0,Q=F;Q=Q+W>>>0,G+=Q<F?1:0,Q=Q+Y>>>0,G+=Q<Y?1:0,Q=Q+Z>>>0,G+=Q<Z?1:0;var q=I+P+ee+X+G;return q>>>0}sr.sum64_4_hi=C;function E(I,F,P,W,ee,Y,X,Z){var G=F+W+Y+Z;return G>>>0}sr.sum64_4_lo=E;function T(I,F,P,W,ee,Y,X,Z,G,Q){var q=0,z=F;z=z+W>>>0,q+=z<F?1:0,z=z+Y>>>0,q+=z<Y?1:0,z=z+Z>>>0,q+=z<Z?1:0,z=z+Q>>>0,q+=z<Q?1:0;var ue=I+P+ee+X+G+q;return ue>>>0}sr.sum64_5_hi=T;function x(I,F,P,W,ee,Y,X,Z,G,Q){var q=F+W+Y+Z+Q;return q>>>0}sr.sum64_5_lo=x;function O(I,F,P){var W=F<<32-P|I>>>P;return W>>>0}sr.rotr64_hi=O;function A(I,F,P){var W=I<<32-P|F>>>P;return W>>>0}sr.rotr64_lo=A;function L(I,F,P){return I>>>P}sr.shr64_hi=L;function U(I,F,P){var W=I<<32-P|F>>>P;return W>>>0}return sr.shr64_lo=U,sr}var o8={},sle;function S2(){if(sle)return o8;sle=1;var e=Bd(),t=w2();function n(){this.pending=null,this.pendingTotal=0,this.blockSize=this.constructor.blockSize,this.outSize=this.constructor.outSize,this.hmacStrength=this.constructor.hmacStrength,this.padLength=this.constructor.padLength/8,this.endian="big",this._delta8=this.blockSize/8,this._delta32=this.blockSize/32}return o8.BlockHash=n,n.prototype.update=function(i,o){if(i=e.toArray(i,o),this.pending?this.pending=this.pending.concat(i):this.pending=i,this.pendingTotal+=i.length,this.pending.length>=this._delta8){i=this.pending;var s=i.length%this._delta8;this.pending=i.slice(i.length-s,i.length),this.pending.length===0&&(this.pending=null),i=e.join32(i,0,i.length-s,this.endian);for(var a=0;a<i.length;a+=this._delta32)this._update(i,a,a+this._delta32)}return this},n.prototype.digest=function(i){return this.update(this._pad()),t(this.pending===null),this._digest(i)},n.prototype._pad=function(){var i=this.pendingTotal,o=this._delta8,s=o-(i+this.padLength)%o,a=new Array(s+this.padLength);a[0]=128;for(var c=1;c<s;c++)a[c]=0;if(i<<=3,this.endian==="big"){for(var l=8;l<this.padLength;l++)a[c++]=0;a[c++]=0,a[c++]=0,a[c++]=0,a[c++]=0,a[c++]=i>>>24&255,a[c++]=i>>>16&255,a[c++]=i>>>8&255,a[c++]=i&255}else for(a[c++]=i&255,a[c++]=i>>>8&255,a[c++]=i>>>16&255,a[c++]=i>>>24&255,a[c++]=0,a[c++]=0,a[c++]=0,a[c++]=0,l=8;l<this.padLength;l++)a[c++]=0;return a},o8}var ng={},Au={},ale;function AIe(){if(ale)return Au;ale=1;var e=Bd(),t=e.rotr32;function n(u,d,f,p){if(u===0)return r(d,f,p);if(u===1||u===3)return o(d,f,p);if(u===2)return i(d,f,p)}Au.ft_1=n;function r(u,d,f){return u&d^~u&f}Au.ch32=r;function i(u,d,f){return u&d^u&f^d&f}Au.maj32=i;function o(u,d,f){return u^d^f}Au.p32=o;function s(u){return t(u,2)^t(u,13)^t(u,22)}Au.s0_256=s;function a(u){return t(u,6)^t(u,11)^t(u,25)}Au.s1_256=a;function c(u){return t(u,7)^t(u,18)^u>>>3}Au.g0_256=c;function l(u){return t(u,17)^t(u,19)^u>>>10}return Au.g1_256=l,Au}var s8,cle;function ZXt(){if(cle)return s8;cle=1;var e=Bd(),t=S2(),n=AIe(),r=e.rotl32,i=e.sum32,o=e.sum32_5,s=n.ft_1,a=t.BlockH
1640ash,c=[1518500249,1859775393,2400959708,3395469782];function l(){if(!(this instanceof l))return new l;a.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=new Array(80)}return e.inherits(l,a),s8=l,l.blockSize=512,l.outSize=160,l.hmacStrength=80,l.padLength=64,l.prototype._update=function(d,f){for(var p=this.W,g=0;g<16;g++)p[g]=d[f+g];for(;g<p.length;g++)p[g]=r(p[g-3]^p[g-8]^p[g-14]^p[g-16],1);var m=this.h[0],y=this.h[1],v=this.h[2],w=this.h[3],S=this.h[4];for(g=0;g<p.length;g++){var C=~~(g/20),E=o(r(m,5),s(C,y,v,w),S,p[g],c[C]);S=w,w=v,v=r(y,30),y=m,m=E}this.h[0]=i(this.h[0],m),this.h[1]=i(this.h[1],y),this.h[2]=i(this.h[2],v),this.h[3]=i(this.h[3],w),this.h[4]=i(this.h[4],S)},l.prototype._digest=function(d){return d==="hex"?e.toHex32(this.h,"big"):e.split32(this.h,"big")},s8}var a8,lle;function IIe(){if(lle)return a8;lle=1;var e=Bd(),t=S2(),n=AIe(),r=w2(),i=e.sum32,o=e.sum32_4,s=e.sum32_5,a=n.ch32,c=n.maj32,l=n.s0_256,u=n.s1_256,d=n.g0_256,f=n.g1_256,p=t.BlockHash,g=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298];function m(){if(!(this instanceof m))return new m;p.call(this),this.h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.k=g,this.W=new Array(64)}return e.inherits(m,p),a8=m,m.blockSize=512,m.outSize=256,m.hmacStrength=192,m.padLength=64,m.prototype._update=function(v,w){for(var S=this.W,C=0;C<16;C++)S[C]=v[w+C];for(;C<S.length;C++)S[C]=o(f(S[C-2]),S[C-7],d(S[C-15]),S[C-16]);var E=this.h[0],T=this.h[1],x=this.h[2],O=this.h[3],A=this.h[4],L=this.h[5],U=this.h[6],I=this.h[7];for(r(this.k.length===S.length),C=0;C<S.length;C++){var F=s(I,u(A),a(A,L,U),this.k[C],S[C]),P=i(l(E),c(E,T,x));I=U,U=L,L=A,A=i(O,F),O=x,x=T,T=E,E=i(F,P)}this.h[0]=i(this.h[0],E),this.h[1]=i(this.h[1],T),this.h[2]=i(this.h[2],x),this.h[3]=i(this.h[3],O),this.h[4]=i(this.h[4],A),this.h[5]=i(this.h[5],L),this.h[6]=i(this.h[6],U),this.h[7]=i(this.h[7],I)},m.prototype._digest=function(v){return v==="hex"?e.toHex32(this.h,"big"):e.split32(this.h,"big")},a8}var c8,ule;function eJt(){if(ule)return c8;ule=1;var e=Bd(),t=IIe();function n(){if(!(this instanceof n))return new n;t.call(this),this.h=[3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428]}return e.inherits(n,t),c8=n,n.blockSize=512,n.outSize=224,n.hmacStrength=192,n.padLength=64,n.prototype._digest=function(i){return i==="hex"?e.toHex32(this.h.slice(0,7),"big"):e.split32(this.h.slice(0,7),"big")},c8}var l8,dle;function RIe(){if(dle)return l8;dle=1;var e=Bd(),t=S2(),n=w2(),r=e.rotr64_hi,i=e.rotr64_lo,o=e.shr64_hi,s=e.shr64_lo,a=e.sum64,c=e.sum64_hi,l=e.sum64_lo,u=e.sum64_4_hi,d=e.sum64_4_lo,f=e.sum64_5_hi,p=e.sum64_5_lo,g=t.BlockHash,m=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,
16401322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591];function y(){if(!(this instanceof y))return new y;g.call(this),this.h=[1779033703,4089235720,3144134277,2227873595,1013904242,4271175723,2773480762,1595750129,1359893119,2917565137,2600822924,725511199,528734635,4215389547,1541459225,327033209],this.k=m,this.W=new Array(160)}e.inherits(y,g),l8=y,y.blockSize=1024,y.outSize=512,y.hmacStrength=192,y.padLength=128,y.prototype._prepareBlock=function(P,W){for(var ee=this.W,Y=0;Y<32;Y++)ee[Y]=P[W+Y];for(;Y<ee.length;Y+=2){var X=U(ee[Y-4],ee[Y-3]),Z=I(ee[Y-4],ee[Y-3]),G=ee[Y-14],Q=ee[Y-13],q=A(ee[Y-30],ee[Y-29]),z=L(ee[Y-30],ee[Y-29]),ue=ee[Y-32],ge=ee[Y-31];ee[Y]=u(X,Z,G,Q,q,z,ue,ge),ee[Y+1]=d(X,Z,G,Q,q,z,ue,ge)}},y.prototype._update=function(P,W){this._prepareBlock(P,W);var ee=this.W,Y=this.h[0],X=this.h[1],Z=this.h[2],G=this.h[3],Q=this.h[4],q=this.h[5],z=this.h[6],ue=this.h[7],ge=this.h[8],ae=this.h[9],j=this.h[10],B=this.h[11],re=this.h[12],oe=this.h[13],ne=this.h[14],J=this.h[15];n(this.k.length===ee.length);for(var Se=0;Se<ee.length;Se+=2){var H=ne,be=J,V=x(ge,ae),M=O(ge,ae),N=v(ge,ae,j,B,re),$=w(ge,ae,j,B,re,oe),ce=this.k[Se],pe=this.k[Se+1],fe=ee[Se],we=ee[Se+1],Ee=f(H,be,V,M,N,$,ce,pe,fe,we),xe=p(H,be,V,M,N,$,ce,pe,fe,we);H=E(Y,X),be=T(Y,X),V=S(Y,X,Z,G,Q),M=C(Y,X,Z,G,Q,q);var ve=c(H,be,V,M),ke=l(H,be,V,M);ne=re,J=oe,re=j,oe=B,j=ge,B=ae,ge=c(z,ue,Ee,xe),ae=l(ue,ue,Ee,xe),z=Q,ue=q,Q=Z,q=G,Z=Y,G=X,Y=c(Ee,xe,ve,ke),X=l(Ee,xe,ve,ke)}a(this.h,0,Y,X),a(this.h,2,Z,G),a(this.h,4,Q,q),a(this.h,6,z,ue),a(this.h,8,ge,ae),a(this.h,10,j,B),a(this.h,12,re,oe),a(this.h,14,ne,J)},y.prototype._digest=function(P){return P==="hex"?e.toHex32(this.h,"big"):e.split32(this.h,"big")};function v(F,P,W,ee,Y){var X=F&W^~F&Y;return X<0&&(X+=4294967296),X}function w(F,P,W,ee,Y,X){var Z=P&ee^~P&X;return Z<0&&(Z+=4294967296),Z}function S(F,P,W,ee,Y){var X=F&W^F&Y^W&Y;return X<0&&(X+=4294967296),X}function C(F,P,W,ee,Y,X){var Z=P&ee^P&X^ee&X;return Z<0&&(Z+=4294967296),Z}function E(F,P){var W=r(F,P,28),ee=r(P,F,2),Y=r(P,F,7),X=W^ee^Y;return X<0&&(X+=4294967296),X}function T(F,P){var W=i(F,P,28),ee=i(P,F,2),Y=i(P,F,7),X=W^ee^Y;return X<0&&(X+=4294967296),X}function x(F,P){var W=r(F,P,14),ee=r(F,P,18),Y=r(P,F,9),X=W^ee^Y;return X<0&&(X+=4294967296),X}function O(F,P){var W=i(F,P,14),ee=i(F,P,18),Y=i(P,F,9),X=W^ee^Y;return X<0&&(X+=4294967296),X}function A(F,P){var W=r(F,P,1),ee=r(F,P,8),Y=o(F,P,7),X=W^ee^Y;return X<0&&(X+=4294967296),X}function L(F,P){var W=i(F,P,1),ee=i(F,P,8),Y=s(F,P,7),X=W^ee^Y;return X<0&&(X+=4294967296),X}function U(F,P){var W=r(F,P,19),ee=r(P,F,29),Y=o(F,P,6),X=W^ee^Y;return X<0&&(X+=4294967296),X}function I(F,P){var W=i(F,P,19),ee=i(P,F,29),Y=s(F,P,6),X=W^ee^Y;return X<0&&(X+=4294967296),X}return l8}var u8,fle;function tJt(){if(fle)return u8;fle=1;var e=Bd(),t=RIe();function n(){if(!(this instanceof n))return new n;t.call(this),this.h=[3418070365,3238371032,1654270250,914150663,2438529370,812702999,355462360,4144912697,1731405415,4290775857,2394180231,1750603025,3675008525,1694076839,1203062813,3204075428]}return e.inherits(n,t),u8=n,n.blockSize=1024,n.outSize=384,n.hmacStrength=192,n.padLength=128,n.prototype._digest=function(i){return i==="hex"?e.toHex32(this.h.slice(0,12),"big"):e.split32(this.h.slice(0,12),"big")},u8}var hle;function nJt(){return hle||(hle=1,ng.sha1=ZXt(),ng.sha224=eJt(),ng.sha256=IIe(),ng.sha384=tJt(),ng.sha512=RIe()),ng}var d8={},ple;function rJt(){if(ple)return d8;ple=1;var e=Bd(),t=S2(),n=e.rotl32,r=e.sum32,i=e.sum32_3,o=e.sum32_4,s=t.BlockHash;function a(){if(!(this instanceof a))return new a;s.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.endian="little"}e.inherits(a,s),d8.ripemd160=a,a.blockSize=512,a.outSize=160,a.hmacStrength=192,a.padLength=64,a.prototype._update=function(y,v){for(var w=this.h[0],S=this.h[1],C=this.h[2],E=this.h[3],T=this.h[4],x=w,O=S,A=C,L=E,U=T,I=0;I<80;I++){var F=r(n(o(w,c(I,S,C,E),y[d[I]+v],l(I)),p[I]),T);w=T,T=E,E=n(C,10),C=S,S=F,F=r(n(o(x,c(79-I,O,A,L),y[f[I]+v],u(I)),g[I]),U),x=U,U=L,L=n(A,10),A=O,O=F}F=i(this.h[1],C,L),this.h[1]=i(this.h[2],E,U),this.h[2]=i(this.h[3],T,x),this.h[3]=i(this.h[4],w,O),this.h[4]=i(this.h[0],S,A),this.h[0]=F},a.prototype._digest=function(y){return y==="hex"?e.toHex32(this.h,"little"):e.split32(this.h,"little")};function c(m,y,v,w){return m<=15?y^v^w:m<=31?y&v|~y&w:m<=47?(y|~v)^w:m<=63?y&w|v&~w:y^(v|~w)}function l(m){return m<=15?0:m<=31?1518500249:m<=47?1859775393:m<=63?2400959708:2840853838}function u(m){return m<=15?1352829926:m<=31?1548603684:m<=47?1836072691:m<=63?2053994217:0}var d=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13],f=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],p=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],g=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11];return d8}var f8,mle;function iJt(){if(mle)return f8;mle=1;var e=Bd(),t=w2();function n(r,i,o){if(!(this instanceof n))return new n(r,i,o);this.Hash=r,this.blockSize=r.blockSize/8,this.outSize=r.outSize/8,this.inner=null,this.outer=null,this._init(e.toArray(i,o))}return f8=n,n.prototype._init=function(i){i.length>this.blockSize&&(i=new this.Hash().update(i).digest()),t(i.length<=this.blockSize);for(var o=i.length;o<this.blockSize;o++)i.push(0);for(o=0;o<i.length;o++)i[o]^=54;for(this.inner=new this.Hash().update(i),o=0;o<i.length;o++)i[o]^=106;this.outer=new this.Hash().update(i)},n.prototype.update=function(i,o){return this.inner.update(i,o),this},n.prototype.digest=function(i){return this.outer.update(this.inner.digest()),this.outer.digest(i)},f8}var gle;function oJt(){return gle||(gle=1,(function(e){var t=e;t.utils=Bd(),t.common=S2(),t.sha=nJt(),t.ripemd=rJt(),t.hmac=iJt(),t.sha1=t.sha.sha1,t.sha256=t.sha.sha256,t.sha224=t.sha.sha224,t.sha384=t.sha.sha384,t.sha512=t.sha.sha512,t.ripemd160=t.ripemd.ripemd160})(r8)),r8}oJt();let sJt="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict",aJt=(e,t=21)=>(n=t)=>{let r="",i=n|0;for(;i--;)r+=e[Math.random()*e.length|0];return r}
1640,cJt=(e=21)=>{let t="",n=e|0;for(;n--;)t+=sJt[Math.random()*64|0];return t};const Tl=e=>Math.floor(e*72*20),FG=(e=0)=>{let t=e;return()=>++t},lJt=()=>FG(),uJt=()=>FG(1),dJt=()=>FG(),fJt=()=>cJt().toLowerCase(),fS=e=>aJt("1234567890abcdef",e)(),hJt=()=>`${fS(8)}-${fS(4)}-${fS(4)}-${fS(4)}-${fS(12)}`;class pJt extends Dt{constructor(){super(...arguments),Ve(this,"xmlKeys",{id:"w:id",initials:"w:initials",author:"w:author",date:"w:date"})}}class mJt extends Dt{constructor(){super(...arguments),Ve(this,"xmlKeys",{"xmlns:cx":"xmlns:cx","xmlns:cx1":"xmlns:cx1","xmlns:cx2":"xmlns:cx2","xmlns:cx3":"xmlns:cx3","xmlns:cx4":"xmlns:cx4","xmlns:cx5":"xmlns:cx5","xmlns:cx6":"xmlns:cx6","xmlns:cx7":"xmlns:cx7","xmlns:cx8":"xmlns:cx8","xmlns:mc":"xmlns:mc","xmlns:aink":"xmlns:aink","xmlns:am3d":"xmlns:am3d","xmlns:o":"xmlns:o","xmlns:r":"xmlns:r","xmlns:m":"xmlns:m","xmlns:v":"xmlns:v","xmlns:wp14":"xmlns:wp14","xmlns:wp":"xmlns:wp","xmlns:w10":"xmlns:w10","xmlns:w":"xmlns:w","xmlns:w14":"xmlns:w14","xmlns:w15":"xmlns:w15","xmlns:w16cex":"xmlns:w16cex","xmlns:w16cid":"xmlns:w16cid","xmlns:w16":"xmlns:w16","xmlns:w16sdtdh":"xmlns:w16sdtdh","xmlns:w16se":"xmlns:w16se","xmlns:wpg":"xmlns:wpg","xmlns:wpi":"xmlns:wpi","xmlns:wne":"xmlns:wne","xmlns:wps":"xmlns:wps"})}}class gJt extends Ke{constructor({id:t,initials:n,author:r,date:i=new Date,children:o}){super("w:comment"),this.root.push(new pJt({id:t,initials:n,author:r,date:i.toISOString()}));for(const s of o)this.root.push(s)}}class vJt extends Ke{constructor({children:t}){super("w:comments"),this.root.push(new mJt({"xmlns:cx":"http://schemas.microsoft.com/office/drawing/2014/chartex","xmlns:cx1":"http://schemas.microsoft.com/office/drawing/2015/9/8/chartex","xmlns:cx2":"http://schemas.microsoft.com/office/drawing/2015/10/21/chartex","xmlns:cx3":"http://schemas.microsoft.com/office/drawing/2016/5/9/chartex","xmlns:cx4":"http://schemas.microsoft.com/office/drawing/2016/5/10/chartex","xmlns:cx5":"http://schemas.microsoft.com/office/drawing/2016/5/11/chartex","xmlns:cx6":"http://schemas.microsoft.com/office/drawing/2016/5/12/chartex","xmlns:cx7":"http://schemas.microsoft.com/office/drawing/2016/5/13/chartex","xmlns:cx8":"http://schemas.microsoft.com/office/drawing/2016/5/14/chartex","xmlns:mc":"http://schemas.openxmlformats.org/markup-compatibility/2006","xmlns:aink":"http://schemas.microsoft.com/office/drawing/2016/ink","xmlns:am3d":"http://schemas.microsoft.com/office/drawing/2017/model3d","xmlns:o":"urn:schemas-microsoft-com:office:office","xmlns:r":"http://schemas.openxmlformats.org/officeDocument/2006/relationships","xmlns:m":"http://schemas.openxmlformats.org/officeDocument/2006/math","xmlns:v":"urn:schemas-microsoft-com:vml","xmlns:wp14":"http://schemas.microsoft.com/office/word/2010/wordprocessingDrawing","xmlns:wp":"http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing","xmlns:w10":"urn:schemas-microsoft-com:office:word","xmlns:w":"http://schemas.openxmlformats.org/wordprocessingml/2006/main","xmlns:w14":"http://schemas.microsoft.com/office/word/2010/wordml","xmlns:w15":"http://schemas.microsoft.com/office/word/2012/wordml","xmlns:w16cex":"http://schemas.microsoft.com/office/word/2018/wordml/cex","xmlns:w16cid":"http://schemas.microsoft.com/office/word/2016/wordml/cid","xmlns:w16":"http://schemas.microsoft.com/office/word/2018/wordml","xmlns:w16sdtdh":"http://schemas.microsoft.com/office/word/2020/wordml/sdtdatahash","xmlns:w16se":"http://schemas.microsoft.com/office/word/2015/wordml/symex","xmlns:wpg":"http://schemas.microsoft.com/office/word/2010/wordprocessingGroup","xmlns:wpi":"http://schemas.microsoft.com/office/word/2010/wordprocessingInk","xmlns:wne":"http://schemas.microsoft.com/office/word/2006/wordml","xmlns:wps":"http://schemas.microsoft.com/office/word/2010/wordprocessingShape"}));for(const n of t)this.root.push(new gJt(n))}}class yJt extends Ke{constructor(){super("w:pageBreakBefore")}}const BU={AUTO:"auto"};class bJt extends Dt{constructor(){super(...arguments),Ve(this,"xmlKeys",{after:"w:after",before:"w:before",line:"w:line",lineRule:"w:lineRule",beforeAutoSpacing:"w:beforeAutospacing",afterAutoSpacing:"w:afterAutoSpacing"})}}class wJt extends Ke{constructor(t){super("w:spacing"),this.root.push(new bJt(t))}}let Wk=class extends Ke{constructor(t){super("w:pStyle"),this.root.push(new qi({val:t}))}};class SJt extends Ke{constructor(t){super("w:tabs");for(const n of t)this.root.push(new CJt(n))}}const vle={LEFT:"left",RIGHT:"right"};class _Jt extends Dt{constructor(){super(...arguments),Ve(this,"xmlKeys",{val:"w:val",pos:"w:pos",leader:"w:leader"})}}class CJt extends Ke{constructor({type:t,position:n,leader:r}){super("w:tab"),this.root.push(new _Jt({val:t,pos:n,leader:r}))}}class h8 extends Ke{constructor(t,n){super("w:numPr"),this.root.push(new EJt(n)),this.root.push(new TJt(t))}}class EJt extends Ke{constructor(t){if(super("w:ilvl"),t>
16409)throw new Error("Level cannot be greater than 9. Read more here: https://answers.microsoft.com/en-us/msoffice/forum/all/does-word-support-more-than-9-list-levels/d130fdcd-1781-446d-8c84-c6c79124e4d7");this.root.push(new qi({val:t}))}}class TJt extends Ke{constructor(t){super("w:numId"),this.root.push(new qi({val:typeof t=="string"?`{${t}}`:t}))}}class kJt extends Ke{constructor(){super(...arguments),Ve(this,"fileChild",Symbol())}}class xJt extends Dt{constructor(){super(...arguments),Ve(this,"xmlKeys",{id:"Id",type:"Type",target:"Target",targetMode:"TargetMode"})}}const AJt={EXTERNAL:"External"};class IJt extends Ke{constructor(t,n,r,i){super("Relationship"),this.root.push(new xJt({id:t,type:n,target:r,targetMode:i}))}}class RJt extends Dt{constructor(){super(...arguments),Ve(this,"xmlKeys",{id:"r:id",history:"w:history",anchor:"w:anchor"})}}class PJt extends Ke{constructor(t,n,r){super("w:hyperlink"),Ve(this,"linkId"),this.linkId=n;const i={history:1,anchor:r||void 0,id:r?void 0:`rId${this.linkId}`},o=new RJt(i);this.root.push(o),t.forEach(s=>{this.root.push(s)})}}class PIe extends Ke{constructor(t){super("w:externalHyperlink"),this.options=t}}class OJt extends Dt{constructor(){super(...arguments),Ve(this,"xmlKeys",{id:"w:id",name:"w:name"})}}class NJt extends Dt{constructor(){super(...arguments),Ve(this,"xmlKeys",{id:"w:id"})}}class MJt{constructor(t){Ve(this,"bookmarkUniqueNumericId",dJt()),Ve(this,"start"),Ve(this,"children"),Ve(this,"end");const n=this.bookmarkUniqueNumericId();this.start=new DJt(t.id,n),this.children=t.children,this.end=new LJt(n)}}class DJt extends Ke{constructor(t,n){super("w:bookmarkStart");const r=new OJt({name:t,id:n});this.root.push(r)}}class LJt extends Ke{constructor(t){super("w:bookmarkEnd");const n=new NJt({id:t});this.root.push(n)}}class FJt extends Ke{constructor(t){super("w:outlineLvl"),this.level=t,this.root.push(new qi({val:t}))}}class jJt extends Dt{constructor(){super(...arguments),Ve(this,"xmlKeys",{verticalAlign:"w:val"})}}class UJt extends Ke{constructor(t){super("w:vAlign"),this.root.push(new jJt({verticalAlign:t}))}}class BJt extends Ke{constructor({space:t,count:n,separate:r,equalWidth:i,children:o}){super("w:cols"),this.root.push(new y2({space:{key:"w:space",value:t===void 0?void 0:zl(t)},count:{key:"w:num",value:n===void 0?void 0:Pa(n)},separate:{key:"w:sep",value:r},equalWidth:{key:"w:equalWidth",value:i}})),!i&&o&&o.forEach(s=>this.addChildElement(s))}}class $Jt extends Dt{constructor(){super(...arguments),Ve(this,"xmlKeys",{type:"w:type",linePitch:"w:linePitch",charSpace:"w:charSpace"})}}class HJt extends Ke{constructor(t,n,r){super("w:docGrid"),this.root.push(new $Jt({type:r,linePitch:Pa(t),charSpace:n?Pa(n):void 0}))}}const Qy={DEFAULT:"default",FIRST:"first",EVEN:"even"};class zJt extends Dt{constructor(){super(...arguments),Ve(this,"xmlKeys",{type:"w:type",id:"r:id"})}}const yle={HEADER:"w:headerReference",FOOTER:"w:footerReference"};class p8 extends Ke{constructor(t,n){super(t),this.root.push(new zJt({type:n.type||Qy.DEFAULT,id:`rId${n.id}`}))}}const VJt=({countBy:e,start:t,restart:n,distance:r})=>new Em({name:"w:lnNumType",attributes:{countBy:{key:"w:countBy",value:e===void 0?void 0:Pa(e)},start:{key:"w:start",value:t===void 0?void 0:Pa(t)},restart:{key:"w:restart",value:n},distance:{key:"w:distance",value:r===void 0?void 0:zl(r)}}});class ble extends Dt{constructor(){super(...arguments),Ve(this,"xmlKeys",{display:"w:display",offsetFrom:"w:offsetFrom",zOrder:"w:zOrder"})}}class WJt extends p4{constructor(t){if(super("w:pgBorders"),!t)return this;t.pageBorders?this.root.push(new ble({display:t.pageBorders.display,offsetFrom:t.pageBorders.offsetFrom,zOrder:t.pageBorders.zOrder})):this.root.push(new ble({})),t.pageBorderTop&&this.root.push(new _i("w:top",t.pageBorderTop)),t.pageBorderLeft&&this.root.push(new _i("w:left",t.pageBorderLeft)),t.pageBorderBottom&&this.root.push(new _i("w:bottom",t.pageBorderBottom)),t.pageBorderRight&&this.root.push(new _i("w:right",t.pageBorderRight))}}class qJt extends Ke{constructor(t,n,r,i,o,s,a){super("w:pgMar"),this.root.push(new y2({top:{key:"w:top",value:Rg(t)},right:{key:"w:right",value:zl(n)},bottom:{key:"w:bottom",value:Rg(r)}
1640,left:{key:"w:left",value:zl(i)},header:{key:"w:header",value:zl(o)},footer:{key:"w:footer",value:zl(s)},gutter:{key:"w:gutter",value:zl(a)}}))}}class GJt extends Dt{constructor(){super(...arguments),Ve(this,"xmlKeys",{start:"w:start",formatType:"w:fmt",separator:"w:chapSep"})}}class KJt extends Ke{constructor({start:t,formatType:n,separator:r}){super("w:pgNumType"),this.root.push(new GJt({start:t===void 0?void 0:Pa(t),formatType:n,separator:r}))}}const OIe={PORTRAIT:"portrait",LANDSCAPE:"landscape"};class YJt extends Ke{constructor(t,n,r){super("w:pgSz");const i=r===OIe.LANDSCAPE,o=zl(t),s=zl(n);this.root.push(new y2({width:{key:"w:w",value:i?s:o},height:{key:"w:h",value:i?o:s},orientation:{key:"w:orient",value:r}}))}}class QJt extends Dt{constructor(){super(...arguments),Ve(this,"xmlKeys",{val:"w:val"})}}class XJt extends Ke{constructor(t){super("w:textDirection"),this.root.push(new QJt({val:t}))}}class JJt extends Dt{constructor(){super(...arguments),Ve(this,"xmlKeys",{val:"w:val"})}}class ZJt extends Ke{constructor(t){super("w:type"),this.root.push(new JJt({val:t}))}}const rg={TOP:1440,RIGHT:1440,BOTTOM:1440,LEFT:1440,HEADER:708,FOOTER:708,GUTTER:0},m8={WIDTH:11906,HEIGHT:16838,ORIENTATION:OIe.PORTRAIT};class eZt extends Ke{constructor({page:{size:{width:t=m8.WIDTH,height:n=m8.HEIGHT,orientation:r=m8.ORIENTATION}={},margin:{top:i=rg.TOP,right:o=rg.RIGHT,bottom:s=rg.BOTTOM,left:a=rg.LEFT,header:c=rg.HEADER,footer:l=rg.FOOTER,gutter:u=rg.GUTTER}={},pageNumbers:d={},borders:f,textDirection:p}={},grid:{linePitch:g=360,charSpace:m,type:y}={},headerWrapperGroup:v={},footerWrapperGroup:w={},lineNumbers:S,titlePage:C,verticalAlign:E,column:T,type:x}={}){super("w:sectPr"),this.addHeaderFooterGroup(yle.HEADER,v),this.addHeaderFooterGroup(yle.FOOTER,w),x&&this.root.push(new ZJt(x)),this.root.push(new YJt(t,n,r)),this.root.push(new qJt(i,o,s,a,c,l,u)),f&&this.root.push(new WJt(f)),S&&this.root.push(VJt(S)),this.root.push(new KJt(d)),T&&this.root.push(new BJt(T)),E&&this.root.push(new UJt(E)),C!==void 0&&this.root.push(new Ye("w:titlePg",C)),p&&this.root.push(new XJt(p)),this.root.push(new HJt(g,m,y))}addHeaderFooterGroup(t,n){n.default&&this.root.push(new p8(t,{type:Qy.DEFAULT,id:n.default.View.ReferenceId})),n.first&&this.root.push(new p8(t,{type:Qy.FIRST,id:n.first.View.ReferenceId})),n.even&&this.root.push(new p8(t,{type:Qy.EVEN,id:n.even.View.ReferenceId}))}}class tZt extends Ke{constructor(){super("w:body"),Ve(this,"sections",[])}addSection(t){const n=this.sections.pop();this.root.push(this.createSectionParagraph(n)),this.sections.push(new eZt(t))}prepForXml(t){return this.sections.length===1&&(this.root.splice(0,1),this.root.push(this.sections.pop())),super.prepForXml(t)}push(t){this.root.push(t)}createSectionParagraph(t){const n=new Xy({}),r=new ob({});return r.push(t),n.addChildElement(r),n}}const wle={wpc:"http://schemas.microsoft.com/office/word/2010/wordprocessingCanvas",mc:"http://schemas.openxmlformats.org/markup-compatibility/2006",o:"urn:schemas-microsoft-com:office:office",r:"http://schemas.openxmlformats.org/officeDocument/2006/relationships",m:"http://schemas.openxmlformats.org/officeDocument/2006/math",v:"urn:schemas-microsoft-com:vml",wp14:"http://schemas.microsoft.com/office/word/2010/wordprocessingDrawing",wp:"http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing",w10:"urn:schemas-microsoft-com:office:word",w:"http://schemas.openxmlformats.org/wordprocessingml/2006/main",w14:"http://schemas.microsoft.com/office/word/2010/wordml",w15:"http://schemas.microsoft.com/office/word/2012/wordml",wpg:"http://schemas.microsoft.com/office/word/2010/wordprocessingGroup",wpi:"http://schemas.microsoft.com/office/word/2010/wordprocessingInk",wne:"http://schemas.microsoft.com/office/word/2006/wordml",wps:"http://schemas.microsoft.com/office/word/2010/wordprocessingShape",cp:"http://schemas.openxmlformats.org/package/2006/metadata/core-properties",dc:"http://purl.org/dc/elements/1.1/",dcterms:"http://purl.org/dc/terms/",dcmitype:"http://purl.org/dc/dcmitype/",xsi:"http://www.w3.org/2001/XMLSchema-instance",cx:"http://schemas.microsoft.com/office/drawing/2014/chartex",cx1:"http://schemas.microsoft.com/office/drawing/2015/9/8/chartex",cx2:"http://schemas.microsoft.com/office/drawing/2015/10/21/chartex",cx3:"http://schemas.microsoft.com/office/drawing/2016/5/9/chartex",cx4:"http://schemas.microsoft.com/office/drawing/2016/5/10/chartex",cx5:"http://schemas.microsoft.com/office/drawing/2016/5/11/chartex",cx6:"http://schemas.microsoft.com/office/drawing/2016/5/12/chartex",cx7:"http://schemas.microsoft.com/office/drawing/2016/5/13/chartex",cx8:"http://schemas.microsoft.com/office/drawing/2016/5/14/chartex",aink:"http://schemas.microsoft.com/office/drawing/2016/ink",am3d:"http://schemas.microsoft.com/office/drawing/2017/model3d",w16cex:"http://schemas.microsoft.com/office/word/2018/wordml/cex",w16cid:"http://schemas.microsoft.com/office/word/2016/wordml/cid",w16:"http://schemas.microsoft.com/office/word/2018/wordml",w16sdtdh:"http://schemas.microsoft.com/office/word/2020/wordml/sdtdatahash",w16se:"http://schemas.microsoft.com/office/word/2015/wordml/symex"};class b4 extends Dt{constructor(t,n){super(On({Ignorable:n},Object.fromEntries(t.map(r=>[r,wle[r]])))),Ve(this,"xmlKeys",On({Ignorable:"mc:Ignorable"},Object.fromEntries(Object.keys(wle).map(r=>[r,`xmlns:${r}`]))))}}class nZt extends Dt{constructor(){super(...arguments),Ve(this,"xmlKeys",{color:"w:color",themeColor:"w:themeColor",themeShade:"w:themeShade",themeTint:"w:themeTint"})}}class rZt extends Ke{constructor(t){super("w:background"),this.root.push(new nZt({color:t.color===void 0?void 0:nb(t.color),themeColor:t.themeColor,themeShade:t.themeShade===void 0?void 0:tle(t.themeShade),themeTint:t.themeTint===void 0?void 0:tle(t.themeTint)}))}}let iZt=class extends Ke{constructor(t){super("w:document"),Ve(this,"body"),this.root.push(new b4(["wpc","mc","o","r","m","v","wp14","wp","w10","w","w14","w15","wpg","wpi","wne","wps","cx","cx1","cx2","cx3","cx4","cx5","cx6","cx7","cx8","aink","am3d","w16cex","w16cid","w16","w16sdtdh","w16se"],"w14 w15 wp14")),this.body=new tZt,t.background&&this.root.push(new rZt(t.background)),this.root.push(this.body)}add(t){return this.body.push(t),this}get Body(){return this.body}};class oZt extends Dt{constructor(){super(...arguments),Ve(this,"xmlKeys",{xmlns:"xmlns"})}}class uw extends Ke{constructor(){super("Relationships"),this.root.push(new oZt({xmlns:"http://schemas.openxmlformats.org/package/2006/relationships"}))}createRelationship(t,n,r,i){const o=new IJt(`rId${t}`,n,r,i);return this.root.push(o),o}get RelationshipCount(){return this.root.length-1}}class NIe{constructor(t){Ve(this,"document"),Ve(this,"relationships"),this.document=new iZt(t),this.relationships=new uw}get View(){return this.document}get Relationships(){return this.relationships}}class sZt extends Dt{constructor(){super(...arguments),Ve(this,"xmlKeys",{val:"w:val"})}}class aZt extends Ke{constructor(){super("w:wordWrap"),this.root.push(new sZt({val:0}))}}const cZt=e=>{var t,n;return new Em({name:"w:framePr",attributes:{anchorLock:{key:"w:anchorLock",value:e.anchorLock},dropCap:{key:"w:dropCap",value:e.dropCap},width:{key:"w:w",value:e.width},height:{key:"w:h",value:e.height},x:{key:"w:x",value:e.position?e.position.x:void 0},y:{key:"w:y",value:e.position?e.position.y:void 0},anchorHorizontal:{key:"w:hAnchor",value:e.anchor.horizontal},anchorVertical:{key:"w:vAnchor",value:e.anchor.vertical},spaceHorizontal:{key:"w:hSpace",value:(t=e.space)==null?void 0:t.horizontal},spaceVertical:{key:"w:vSpace",value:(n=e.space)==null?void 0:n.vertical},rule:{key:"w:hRule",value:e.rule},alignmentX:{key:"w:xAlign",value:e.alignment?e.alignment.x:void 0},alignmentY:{key:"w:yAlign",value:e.alignment?e.alignment.y:void 0},lines:{key:"w:lines",value:e.lines},wrap:{key:"w:wrap",value:e.wrap}}})};class ob extends p4{constructor(t){var n,r;if(super("w:pPr"),Ve(this,"numberingReferences",[]),!t)return this;t.heading&&this.push(new Wk(t.heading)),t.bullet&&this.push(new Wk("ListParagraph")),t.numbering&&!t.style&&!t.heading&&(t.numbering.custom||this.push(new Wk("ListParagraph"))),t.style&&this.push(new Wk(t.style)),t.keepNext!==void 0&&this.push(new Ye("w:keepNext",t.keepNext)),t.keepLines!==void 0&&this.push(new Ye("w:keepLines",t.keepLines)),t.pageBreakBefore&&this.push(new yJt),t.frame&&this.push(cZt(t.frame)),t.widowControl!==void 0&&this.push(new Ye("w:widowControl",t.widowControl)),t.bullet&&this.push(new h8(1,t.bullet.level)),t.numbering?(this.numberingReferences.push({reference:t.numbering.reference,instance:(n=t.numbering.instance)!=null?n:0}),this.push(new h8(`${t.numbering.reference}-${(r=t.numbering.instance)!=null?r:0}`,t.numbering.level))):t.numbering===!1&&this.push(new h8(0,0)),t.border&&this.push(new PXt(t.border)),t.thematicBreak&&this.push(new OXt),t.shading&&this.push(new TIe(t.shading)),t.wordWrap&&this.push(new aZt),t.overflowPunctuation&&this.push(new Ye("w:overflowPunct",t.overflowPunctuation));const i=[...t.rightTabStop!==void 0?[{type:vle.RIGHT,position:t.rightTabStop}]:[],...t.tabStops?t.tabStops:[],...t.leftTabStop!==void 0?[{type:vle.LEFT,position:t.leftTabStop}]:[]];i.length>0&&this.push(new SJt(i)),t.bidirectional!==void 0&&this.push(new Ye("w:bidi",t.bidirectional)),t.spacing&&this.push(new wJt(t.spacing)),t.indent&&this.push(new NXt(t.indent)),t.contextualSpacing!==void 0&&this.push(new Ye("w:contextualSpacing",t.contextualSpacing)),t.alignment&&this.push(new IXt(t.alignment)),t.outlineLevel!==void 0&&this.push(new FJt(t.outlineLevel)),t.suppressLineNumbers!==void 0&&this.push(new Ye("w:suppressLineNumbers",t.suppressLineNumbers)),t.autoSpaceEastAsianText!==void 0&&this.push(new Ye("w:autoSpaceDN",t.autoSpaceEastAsianText)),t.run&&this.push(new i0(t.run))}push(t){this.root.push(t)}prepForXml(t){if(t.viewWrapper instanceof NIe)for(const n of this.numberingReferences)t.file.Numbering.createConcreteNumberingInstance(n.reference,n.instance);return super.prepForXml(t)}}class Xy extends kJt{constructor(t){if(super("w:p"),Ve(this,"properties"),typeof t=="string")return this.properties=new ob({}),this.root.push(this.properties),this.root.push(new vy(t)),this;if(this.properties=new ob(t),this.root.push(this.properties),t.text&&this.root.push(new vy(t.text)),t.children)for(const n of t.children){if(n instanceof MJt){this.root.push(n.start);for(const r of n.children)this.root.push(r);this.root.push(n.end);continue}this.root.push(n)}}prepForXml(t){for(const n of this.root)if(n instanceof PIe){const r=this.root.indexOf(n),i=new PJt(n.options.children,fJt());t.viewWrapper.Relationships.createRelationship(i.linkId,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/hyperlink",n.options.link,AJt.EXTERNAL),this.root[r]=i}return super.prepForXml(t)}addRunToFront(t){return this.root.splice(1,0,t),this}}const R0={style:MG.NONE,size:0,color:"auto"},P0={style:MG.SINGLE,size:4,color:"auto"};class lZt extends Ke{constructor(t){super("w:tblBorders"),t.top?this.root.push(new _i("w:top",t.top)):this.root.push(new _i("w:top",P0)
1640),t.left?this.root.push(new _i("w:left",t.left)):this.root.push(new _i("w:left",P0)),t.bottom?this.root.push(new _i("w:bottom",t.bottom)):this.root.push(new _i("w:bottom",P0)),t.right?this.root.push(new _i("w:right",t.right)):this.root.push(new _i("w:right",P0)),t.insideHorizontal?this.root.push(new _i("w:insideH",t.insideHorizontal)):this.root.push(new _i("w:insideH",P0)),t.insideVertical?this.root.push(new _i("w:insideV",t.insideVertical)):this.root.push(new _i("w:insideV",P0))}}Ve(lZt,"NONE",{top:R0,bottom:R0,left:R0,right:R0,insideHorizontal:R0,insideVertical:R0});class uZt extends Dt{constructor(){super(...arguments),Ve(this,"xmlKeys",{xmlns:"xmlns",vt:"xmlns:vt"})}}class dZt extends Ke{constructor(){super("Properties"),this.root.push(new uZt({xmlns:"http://schemas.openxmlformats.org/officeDocument/2006/extended-properties",vt:"http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes"}))}}class fZt extends Dt{constructor(){super(...arguments),Ve(this,"xmlKeys",{xmlns:"xmlns"})}}class hZt extends Dt{constructor(){super(...arguments),Ve(this,"xmlKeys",{contentType:"ContentType",extension:"Extension"})}}class tf extends Ke{constructor(t,n){super("Default"),this.root.push(new hZt({contentType:t,extension:n}))}}class pZt extends Dt{constructor(){super(...arguments),Ve(this,"xmlKeys",{contentType:"ContentType",partName:"PartName"})}}class kc extends Ke{constructor(t,n){super("Override"),this.root.push(new pZt({contentType:t,partName:n}))}}class mZt extends Ke{constructor(){super("Types"),this.root.push(new fZt({xmlns:"http://schemas.openxmlformats.org/package/2006/content-types"})),this.root.push(new tf("image/png","png")),this.root.push(new tf("image/jpeg","jpeg")),this.root.push(new tf("image/jpeg","jpg")),this.root.push(new tf("image/bmp","bmp")),this.root.push(new tf("image/gif","gif")),this.root.push(new tf("image/svg+xml","svg")),this.root.push(new tf("application/vnd.openxmlformats-package.relationships+xml","rels")),this.root.push(new tf("application/xml","xml")),this.root.push(new tf("application/vnd.openxmlformats-officedocument.obfuscatedFont","odttf")),this.root.push(new kc("application/vnd.openxmlformats-officedocument.wordprocessingml.document.main+xml","/word/document.xml")),this.root.push(new kc("application/vnd.openxmlformats-officedocument.wordprocessingml.styles+xml","/word/styles.xml")),this.root.push(new kc("application/vnd.openxmlformats-package.core-properties+xml","/docProps/core.xml")),this.root.push(new kc("application/vnd.openxmlformats-officedocument.custom-properties+xml","/docProps/custom.xml")),this.root.push(new kc("application/vnd.openxmlformats-officedocument.extended-properties+xml","/docProps/app.xml")),this.root.push(new kc("application/vnd.openxmlformats-officedocument.wordprocessingml.numbering+xml","/word/numbering.xml")),this.root.push(new kc("application/vnd.openxmlformats-officedocument.wordprocessingml.footnotes+xml","/word/footnotes.xml")),this.root.push(new kc("application/vnd.openxmlformats-officedocument.wordprocessingml.settings+xml","/word/settings.xml")),this.root.push(new kc("application/vnd.openxmlformats-officedocument.wordprocessingml.comments+xml","/word/comments.xml")),this.root.push(new kc("application/vnd.openxmlformats-officedocument.wordprocessingml.fontTable+xml","/word/fontTable.xml"))}addFooter(t){this.root.push(new kc("application/vnd.openxmlformats-officedocument.wordprocessingml.footer+xml",`/word/footer${t}.xml`))}addHeader(t){this.root.push(new kc("application/vnd.openxmlformats-officedocument.wordprocessingml.header+xml",`/word/header${t}.xml`))}}class gZt extends Ke{constructor(t){super("cp:coreProperties"),this.root.push(new b4(["cp","dc","dcterms","dcmitype","xsi"])),t.title&&this.root.push(new tg("dc:title",t.title)),t.subject&&this.root.push(new tg("dc:subject",t.subject)),t.creator&&this.root.push(new tg("dc:creator",t.creator)),t.keywords&&this.root.push(new tg("cp:keywords",t.keywords)),t.description&&this.root.push(new tg("dc:description",t.description)),t.lastModifiedBy&&this.root.push(new tg("cp:lastModifiedBy",t.lastModifiedBy)),t.revision&&this.root.push(new tg("cp:revision",String(t.revision))),this.root.push(new Sle("dcterms:created")),this.root.push(new Sle("dcterms:modified"))}}class vZt extends Dt{constructor(){super(...arguments),Ve(this,"xmlKeys",{type:"xsi:type"})}}class Sle extends Ke{constructor(t){super(t),this.root.push(new vZt({type:"dcterms:W3CDTF"})),this.root.push(xXt(new Date))}}class yZt extends Dt{constructor(){super(...arguments),Ve(this,"xmlKeys",{xmlns:"xmlns",vt:"xmlns:vt"})}}class bZt extends Dt{constructor(){super(...arguments),Ve(this,"xmlKeys",{fmtid:"fmtid",pid:"pid",name:"name"})}}class wZt extends Ke{constructor(t,n){super("property"),this.root.push(new bZt({fmtid:"{D5CDD505-2E9C-101B-9397-08002B2CF9AE}",pid:t.toString(),name:n.name})),this.root.push(new SZt(n.value))}}class SZt extends Ke{constructor(t){super("vt:lpwstr"),this.root.push(t)}}class _Zt extends Ke{constructor(t){super("Properties"),Ve(this,"nextId"),Ve(this,"properties",[]),this.root.push(new yZt({xmlns:"http://schemas.openxmlformats.org/officeDocument/2006/custom-properties",vt:"http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes"})),this.nextId=2;
1640for(const n of t)this.addCustomProperty(n)}prepForXml(t){return this.properties.forEach(n=>this.root.push(n)),super.prepForXml(t)}addCustomProperty(t){this.properties.push(new wZt(this.nextId++,t))}}const qk=({id:e,fontKey:t,subsetted:n},r)=>new Em({name:r,attributes:On({id:{key:"r:id",value:e}},t?{fontKey:{key:"w:fontKey",value:`{${t}}`}}:{}),children:[...n?[new Ye("w:subsetted",n)]:[]]}),CZt=({name:e,altName:t,panose1:n,charset:r,family:i,notTrueType:o,pitch:s,sig:a,embedRegular:c,embedBold:l,embedItalic:u,embedBoldItalic:d})=>new Em({name:"w:font",attributes:{name:{key:"w:name",value:e}},children:[...t?[dS("w:altName",t)]:[],...n?[dS("w:panose1",n)]:[],...r?[dS("w:charset",r)]:[],dS("w:family",i),...o?[new Ye("w:notTrueType",o)]:[],dS("w:pitch",s),...a?[new Em({name:"w:sig",attributes:{usb0:{key:"w:usb0",value:a.usb0},usb1:{key:"w:usb1",value:a.usb1},usb2:{key:"w:usb2",value:a.usb2},usb3:{key:"w:usb3",value:a.usb3},csb0:{key:"w:csb0",value:a.csb0},csb1:{key:"w:csb1",value:a.csb1}}})]:[],...c?[qk(c,"w:embedRegular")]:[],...l?[qk(l,"w:embedBold")]:[],...u?[qk(u,"w:embedItalic")]:[],...d?[qk(d,"w:embedBoldItalic")]:[]]}),EZt=({name:e,index:t,fontKey:n,characterSet:r})=>CZt({name:e,sig:{usb0:"E0002AFF",usb1:"C000247B",usb2:"00000009",usb3:"00000000",csb0:"000001FF",csb1:"00000000"},charset:r,family:"auto",pitch:"variable",embedRegular:{fontKey:n,id:`rId${t}`}}),TZt=e=>new Em({name:"w:fonts",attributes:{mc:{key:"xmlns:mc",value:"http://schemas.openxmlformats.org/markup-compatibility/2006"},r:{key:"xmlns:r",value:"http://schemas.openxmlformats.org/officeDocument/2006/relationships"},w:{key:"xmlns:w",value:"http://schemas.openxmlformats.org/wordprocessingml/2006/main"},w14:{key:"xmlns:w14",value:"http://schemas.microsoft.com/office/word/2010/wordml"},w15:{key:"xmlns:w15",value:"http://schemas.microsoft.com/office/word/2012/wordml"},w16cex:{key:"xmlns:w16cex",value:"http://schemas.microsoft.com/office/word/2018/wordml/cex"},w16cid:{key:"xmlns:w16cid",value:"http://schemas.microsoft.com/office/word/2016/wordml/cid"},w16:{key:"xmlns:w16",value:"http://schemas.microsoft.com/office/word/2018/wordml"},w16sdtdh:{key:"xmlns:w16sdtdh",value:"http://schemas.microsoft.com/office/word/2020/wordml/sdtdatahash"},w16se:{key:"xmlns:w16se",value:"http://schemas.microsoft.com/office/word/2015/wordml/symex"},Ignorable:{key:"mc:Ignorable",value:"w14 w15 w16se w16cid w16 w16cex w16sdtdh"}},children:e.map((t,n)=>EZt({name:t.name,index:n+1,fontKey:t.fontKey}))});class kZt{constructor(t){Ve(this,"fontTable"),Ve(this,"relationships"),Ve(this,"fontOptionsWithKey",[]),this.options=t,this.fontOptionsWithKey=t.map(n=>YC(On({},n),{fontKey:hJt()})),this.fontTable=TZt(this.fontOptionsWithKey),this.relationships=new uw;for(let n=0;n<t.length;n++)this.relationships.createRelationship(n+1,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/font",`fonts/${t[n].name}.odttf`)}get View(){return this.fontTable}get Relationships(){return this.relationships}}class xZt extends Dt{constructor(){super(...arguments),Ve(this,"xmlKeys",{wpc:"xmlns:wpc",mc:"xmlns:mc",o:"xmlns:o",r:"xmlns:r",m:"xmlns:m",v:"xmlns:v",wp14:"xmlns:wp14",wp:"xmlns:wp",w10:"xmlns:w10",w:"xmlns:w",w14:"xmlns:w14",w15:"xmlns:w15",wpg:"xmlns:wpg",wpi:"xmlns:wpi",wne:"xmlns:wne",wps:"xmlns:wps",cp:"xmlns:cp",dc:"xmlns:dc",dcterms:"xmlns:dcterms",dcmitype:"xmlns:dcmitype",xsi:"xmlns:xsi",type:"xsi:type"})}}let AZt=class extends SIe{constructor(t,n){super("w:ftr",n),Ve(this,"refId"),this.refId=t,n||this.root.push(new xZt({wpc:"http://schemas.microsoft.com/office/word/2010/wordprocessingCanvas",mc:"http://schemas.openxmlformats.org/markup-compatibility/2006",o:"urn:schemas-microsoft-com:office:office",r:"http://schemas.openxmlformats.org/officeDocument/2006/relationships",m:"http://schemas.openxmlformats.org/officeDocument/2006/math",v:"urn:schemas-microsoft-com:vml",wp14:"http://schemas.microsoft.com/office/word/2010/wordprocessingDrawing",wp:"http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing",w10:"urn:schemas-microsoft-com:office:word",w:"http://schemas.openxmlformats.org/wordprocessingml/2006/main",w14:"http://schemas.microsoft.com/office/word/2010/wordml",w15:"http://schemas.microsoft.com/office/word/2012/wordml",wpg:"http://schemas.microsoft.com/office/word/2010/wordprocessingGroup",wpi:"http://schemas.microsoft.com/office/word/2010/wordprocessingInk",wne:"http://schemas.microsoft.com/office/word/2006/wordml",wps:"http://schemas.microsoft.com/office/word/2010/wordprocessingShape"}))}get ReferenceId(){return this.refId}add(t){this.root.push(t)}};class IZt{constructor(t,n,r){Ve(this,"footer"),Ve(this,"relationships"),this.media=t,this.footer=new AZt(n,r),this.relationships=new uw}add(t){this.footer.add(t)}addChildElement(t){this.footer.addChildElement(t)}get View(){return this.footer}get Relationships(){return this.relationships}get Media(){return this.media}}class RZt extends Dt{constructor(){super(...arguments),Ve(this,"xmlKeys",{type:"w:type",id:"w:id"})}}class PZt extends Ke{constructor(){super("w:footnoteRef")}}class OZt extends y4{constructor(){super({style:"FootnoteReference"}),this.root.push(new PZt)}}const _le={SEPERATOR:"separator",CONTINUATION_SEPERATOR:"continuationSeparator"};class g8 extends Ke{constructor(t){super("w:footnote"),this.root.push(new RZt({type:t.type,id:t.id}));for(let n=0;n<t.children.length;n++){const r=t.children[n];n===0&&r.addRunToFront(new OZt),this.root.push(r)}}}class NZt extends Ke{constructor(){super("w:continuationSeparator")}}class MZt extends y4{constructor(){super({}),this.root.push(new NZt)}}class DZt extends Ke{constructor(){super("w:separator")}}class LZt extends y4{constructor(){super({}),this.root.push(new DZt)}}class FZt extends Dt{constructor(){super(...arguments),Ve(this,"xmlKeys",{wpc:"xmlns:wpc",mc:"xmlns:mc",o:"xmlns:o",r:"xmlns:r",m:"xmlns:m",v:"xmlns:v",wp14:"xmlns:wp14",wp:"xmlns:wp",w10:"xmlns:w10",w:"xmlns:w",w14:"xmlns:w14",w15:"xmlns:w15",wpg:"xmlns:wpg",wpi:"xmlns:wpi",wne:"xmlns:wne",wps:"xmlns:wps",Ignorable:"mc:Ignorable"})}}class jZt extends Ke{constructor(){super("w:footnotes"),this.root.push(new FZt({wpc:"http://schemas.microsoft.com/office/word/2010/wordprocessingCanvas",mc:"http://schemas.openxmlformats.org/markup-compatibility/2006",o:"urn:schemas-microsoft-com:office:office",r:"http://schemas.openxmlformats.org/officeDocument/2006/relationships",m:"http://schemas.openxmlformats.org/officeDocument/2006/math",v:"urn:schemas-microsoft-com:vml",wp14:"http://schemas.microsoft.com/office/word/2010/wordprocessingDrawing",wp:"http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing",w10:"urn:schemas-microsoft-com:office:word",w:"http://schemas.openxmlformats.org/wordprocessingml/2006/main",w14:"http://schemas.microsoft.com/office/word/2010/wordml",w15:"http://schemas.microsoft.com/office/word/2012/wordml",wpg:"http://schemas.microsoft.com/office/word/2010/wordprocessingGroup",wpi:"http://schemas.microsoft.com/office/word/2010/wordprocessingInk",wne:"http://schemas.microsoft.com/office/word/2006/wordml",wps:"http://schemas.microsoft.com/office/word/2010/wordprocessingShape",Ignorable:"w14 w15 wp14"}));const t=new g8({id:-1,type:_le.SEPERATOR,children:[new Xy({spacing:{after:0,line:240,lineRule:BU.AUTO},children:[new LZt]})]});this.root.push(t);const n=new g8({id:0,type:_le.CONTINUATION_SEPERATOR,children:[new Xy({spacing:{after:0,line:240,lineRule:BU.AUTO},children:[new MZt]})]});this.root.push(n)}createFootNote(t,n){const r=new g8({id:t,children:n});this.root.push(r)}}class UZt{constructor(){Ve(this,"footnotess"),Ve(this,"relationships"),this.footnotess=new jZt,this.relationships=new uw}get View(){return this.footnotess}get Relationships(){return this.relationships}}class BZt extends Dt{constructor(){super(...arguments),Ve(this,"xmlKeys",{wpc:"xmlns:wpc",mc:"xmlns:mc",o:"xmlns:o",r:"xmlns:r",m:"xmlns:m",v:"xmlns:v",wp14:"xmlns:wp14",wp:"xmlns:wp",w10:"xmlns:w10",w:"xmlns:w",w14:"xmlns:w14",w15:"xmlns:w15",wpg:"xmlns:wpg",wpi:"xmlns:wpi",wne:"xmlns:wne",wps:"xmlns:wps",cp:"xmlns:cp",dc:"xmlns:dc",dcterms:"xmlns:dcterms",dcmitype:"xmlns:dcmitype",xsi:"xmlns:xsi",type:"xsi:type",cx:"xmlns:cx",cx1:"xmlns:cx1",cx2:"xmlns:cx2",cx3:"xmlns:cx3",cx4:"xmlns:cx4",cx5:"xmlns:cx5",cx6:"xmlns:cx6",cx7:"xmlns:cx7",cx8:"xmlns:cx8",w16cid:"xmlns:w16cid",w16se:"xmlns:w16se"})}}let $Zt=class extends SIe{constructor(t,n){super("w:hdr",n),Ve(this,"refId"),this.refId=t,n||this.root.push(new BZt({wpc:"http://schemas.microsoft.com/office/word/2010/wordprocessingCanvas",mc:"http://schemas.openxmlformats.org/markup-compatibility/2006",o:"urn:schemas-microsoft-com:office:office",r:"http://schemas.openxmlformats.org/officeDocument/2006/relationships",m:"http://schemas.openxmlformats.org/officeDocument/2006/math",v:"urn:schemas-microsoft-com:vml",wp14:"http://schemas.microsoft.com/office/word/2010/wordprocessingDrawing",wp:"http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing",w10:"urn:schemas-microsoft-com:office:word",w:"http://schemas.openxmlformats.org/wordprocessingml/2006/main",w14:"http://schemas.microsoft.com/office/word/2010/wordml",w15:"http://schemas.microsoft.com/office/word/2012/wordml",wpg:"http://schemas.microsoft.com/office/word/2010/wordprocessingGroup",wpi:"http://schemas.microsoft.com/office/word/2010/wordprocessingInk",wne:"http://schemas.microsoft.com/office/word/2006/wordml",wps:"http://schemas.microsoft.com/office/word/2010/wordprocessingShape",cx:"http://schemas.microsoft.com/office/drawing/2014/chartex",cx1:"http://schemas.microsoft.com/office/drawing/2015/9/8/chartex",cx2:"http://schemas.microsoft.com/office/drawing/2015/10/21/chartex",cx3:"http://schemas.microsoft.com/office/drawing/2016/5/9/chartex",cx4:"http://schemas.microsoft.com/office/drawing/2016/5/10/chartex",cx5:"http://schemas.microsoft.com/office/drawing/2016/5/11/chartex",cx6:"http://schemas.microsoft.com/office/drawing/2016/5/12/chartex",cx7:"http://schemas.microsoft.com/office/drawing/2016/5/13/chartex",cx8:"http://schemas.microsoft.com/office/drawing/2016/5/14/chartex",w16cid:"http://schemas.microsoft.com/office/word/2016/wordml/cid",w16se:"http://schemas.microsoft.com/office/word/2015/wordml/symex"}))}get ReferenceId(){return this.refId}add(t){this.root.push(t)}};class HZt{constructor(t,n,r){Ve(this,"header"),Ve(this,"relationships"),this.media=t,this.header=new $Zt(n,r),this.relationships=new uw}add(t){return this.header.add(t),this}addChildElement(t){this.header.addChildElement(t)}get View(){return this.header}get Relationships(){return this.relationships}get Media(){return this.media}}class zZt{constructor(){Ve(this,"map"),this.map=new Map}addImage(t,n){this.map.set(t,n)}get Array(){return Array.from(this.map.values())}}const nf={BULLET:"bullet"};class VZt extends Dt{constructor(){super(...arguments),Ve(this,"xmlKeys",{ilvl:"w:ilvl",tentative:"w15:tentative"})}}class WZt extends Ke{constructor(t){super("w:numFmt"),this.root.push(new qi({val:t}))}}class qZt extends Ke{constructor(t){super("w:lvlText"),this.root.push(new qi({val:t}))}}class GZt extends Ke{constructor(t){super("w:lvlJc"),this.root.push(new qi({val:t}))}}class KZt extends Ke{constructor(t){super("w:suff"),this.root.push(new qi({val:t}))}}class YZt extends Ke{constructor(){super("w:isLgl")}}class QZt extends Ke{constructor({level:t,format:n,text:r,alignment:i=Ru.START,start:o=1,style:s,suffix:a,isLegalNumberingStyle:c}
1640){if(super("w:lvl"),Ve(this,"paragraphProperties"),Ve(this,"runProperties"),this.root.push(new E_("w:start",Pa(o))),n&&this.root.push(new WZt(n)),a&&this.root.push(new KZt(a)),c&&this.root.push(new YZt),r&&this.root.push(new qZt(r)),this.root.push(new GZt(i)),this.paragraphProperties=new ob(s&&s.paragraph),this.runProperties=new i0(s&&s.run),this.root.push(this.paragraphProperties),this.root.push(this.runProperties),t>9)throw new Error("Level cannot be greater than 9. Read more here: https://answers.microsoft.com/en-us/msoffice/forum/all/does-word-support-more-than-9-list-levels/d130fdcd-1781-446d-8c84-c6c79124e4d7");this.root.push(new VZt({ilvl:Pa(t),tentative:1}))}}class XZt extends QZt{}class JZt extends Ke{constructor(t){super("w:multiLevelType"),this.root.push(new qi({val:t}))}}class ZZt extends Dt{constructor(){super(...arguments),Ve(this,"xmlKeys",{abstractNumId:"w:abstractNumId",restartNumberingAfterBreak:"w15:restartNumberingAfterBreak"})}}class Cle extends Ke{constructor(t,n){super("w:abstractNum"),Ve(this,"id"),this.root.push(new ZZt({abstractNumId:Pa(t),restartNumberingAfterBreak:0})),this.root.push(new JZt("hybridMultilevel")),this.id=t;for(const r of n)this.root.push(new XZt(r))}}class een extends Ke{constructor(t){super("w:abstractNumId"),this.root.push(new qi({val:t}))}}class ten extends Dt{constructor(){super(...arguments),Ve(this,"xmlKeys",{numId:"w:numId"})}}class Ele extends Ke{constructor(t){if(super("w:num"),Ve(this,"numId"),Ve(this,"reference"),Ve(this,"instance"),this.numId=t.numId,this.reference=t.reference,this.instance=t.instance,this.root.push(new ten({numId:Pa(t.numId)})),this.root.push(new een(Pa(t.abstractNumId))),t.overrideLevels&&t.overrideLevels.length)for(const n of t.overrideLevels)this.root.push(new ren(n.num,n.start))}}class nen extends Dt{constructor(){super(...arguments),Ve(this,"xmlKeys",{ilvl:"w:ilvl"})}}class ren extends Ke{constructor(t,n){super("w:lvlOverride"),this.root.push(new nen({ilvl:t})),n!==void 0&&this.root.push(new oen(n))}}class ien extends Dt{constructor(){super(...arguments),Ve(this,"xmlKeys",{val:"w:val"})}}class oen extends Ke{constructor(t){super("w:startOverride"),this.root.push(new ien({val:t}))}}class sen extends Ke{constructor(t){super("w:numbering"),Ve(this,"abstractNumberingMap",new Map),Ve(this,"concreteNumberingMap",new Map),Ve(this,"referenceConfigMap",new Map),Ve(this,"abstractNumUniqueNumericId",lJt()),Ve(this,"concreteNumUniqueNumericId",uJt()),this.root.push(new b4(["wpc","mc","o","r","m","v","wp14","wp","w10","w","w14","w15","wpg","wpi","wne","wps"],"w14 w15 wp14"));const n=new Cle(this.abstractNumUniqueNumericId(),[{level:0,format:nf.BULLET,text:"●",alignment:Ru.LEFT,style:{paragraph:{indent:{left:Tl(.5),hanging:Tl(.25)}}}},{level:1,format:nf.BULLET,text:"○",alignment:Ru.LEFT,style:{paragraph:{indent:{left:Tl(1),hanging:Tl(.25)}}}},{level:2,format:nf.BULLET,text:"■",alignment:Ru.LEFT,style:{paragraph:{indent:{left:2160,hanging:Tl(.25)}}}},{level:3,format:nf.BULLET,text:"●",alignment:Ru.LEFT,style:{paragraph:{indent:{left:2880,hanging:Tl(.25)}}}},{level:4,format:nf.BULLET,text:"○",alignment:Ru.LEFT,style:{paragraph:{indent:{left:3600,hanging:Tl(.25)}}}},{level:5,format:nf.BULLET,text:"■",alignment:Ru.LEFT,style:{paragraph:{indent:{left:4320,hanging:Tl(.25)}}}},{level:6,format:nf.BULLET,text:"●",alignment:Ru.LEFT,style:{paragraph:{indent:{left:5040,hanging:Tl(.25)}}}},{level:7,format:nf.BULLET,text:"●",alignment:Ru.LEFT,style:{paragraph:{indent:{left:5760,hanging:Tl(.25)}}}},{level:8,format:nf.BULLET,text:"●",alignment:Ru.LEFT,style:{paragraph:{indent:{left:6480,hanging:Tl(.25)}}}}]);this.concreteNumberingMap.set("default-bullet-numbering",new Ele({numId:1,abstractNumId:n.id,reference:"default-bullet-numbering",instance:0,overrideLevels:[{num:0,start:1}]})),this.abstractNumberingMap.set("default-bullet-numbering",n);for(const r of t.config)this.abstractNumberingMap.set(r.reference,new Cle(this.abstractNumUniqueNumericId(),r.levels)),this.referenceConfigMap.set(r.reference,r.levels)}prepForXml(t){for(const n of this.abstractNumberingMap.values())this.root.push(n);for(const n of this.concreteNumberingMap.values())this.root.push(n);return super.prepForXml(t)}createConcreteNumberingInstance(t,n){const r=this.abstractNumberingMap.get(t);if(!r)return;const i=`${t}-${n}`;if(this.concreteNumberingMap.has(i))return;const o=this.referenceConfigMap.get(t),s=o&&o[0].start,a={numId:this.concreteNumUniqueNumericId(),abstractNumId:r.id,reference:t,instance:n,overrideLevels:[s&&Number.isInteger(s)?{num:0,start:s}:{num:0,start:1}]};this.concreteNumberingMap.set(i,new Ele(a))}get ConcreteNumbering(){return Array.from(this.concreteNumberingMap.values())}get ReferenceConfig(){return Array.from(this.referenceConfigMap.values())}}class aen extends Dt{constructor(){super(...arguments),Ve(this,"xmlKeys",{version:"w:val",n
1640ame:"w:name",uri:"w:uri"})}}class cen extends Ke{constructor(t){super("w:compatSetting"),this.root.push(new aen({version:t,uri:"http://schemas.microsoft.com/office/word",name:"compatibilityMode"}))}}class len extends Ke{constructor(t){super("w:compat"),t.version&&this.root.push(new cen(t.version)),t.useSingleBorderforContiguousCells&&this.root.push(new Ye("w:useSingleBorderforContiguousCells",t.useSingleBorderforContiguousCells)),t.wordPerfectJustification&&this.root.push(new Ye("w:wpJustification",t.wordPerfectJustification)),t.noTabStopForHangingIndent&&this.root.push(new Ye("w:noTabHangInd",t.noTabStopForHangingIndent)),t.noLeading&&this.root.push(new Ye("w:noLeading",t.noLeading)),t.spaceForUnderline&&this.root.push(new Ye("w:spaceForUL",t.spaceForUnderline)),t.noColumnBalance&&this.root.push(new Ye("w:noColumnBalance",t.noColumnBalance)),t.balanceSingleByteDoubleByteWidth&&this.root.push(new Ye("w:balanceSingleByteDoubleByteWidth",t.balanceSingleByteDoubleByteWidth)),t.noExtraLineSpacing&&this.root.push(new Ye("w:noExtraLineSpacing",t.noExtraLineSpacing)),t.doNotLeaveBackslashAlone&&this.root.push(new Ye("w:doNotLeaveBackslashAlone",t.doNotLeaveBackslashAlone)),t.underlineTrailingSpaces&&this.root.push(new Ye("w:ulTrailSpace",t.underlineTrailingSpaces)),t.doNotExpandShiftReturn&&this.root.push(new Ye("w:doNotExpandShiftReturn",t.doNotExpandShiftReturn)),t.spacingInWholePoints&&this.root.push(new Ye("w:spacingInWholePoints",t.spacingInWholePoints)),t.lineWrapLikeWord6&&this.root.push(new Ye("w:lineWrapLikeWord6",t.lineWrapLikeWord6)),t.printBodyTextBeforeHeader&&this.root.push(new Ye("w:printBodyTextBeforeHeader",t.printBodyTextBeforeHeader)),t.printColorsBlack&&this.root.push(new Ye("w:printColBlack",t.printColorsBlack)),t.spaceWidth&&this.root.push(new Ye("w:wpSpaceWidth",t.spaceWidth)),t.showBreaksInFrames&&this.root.push(new Ye("w:showBreaksInFrames",t.showBreaksInFrames)),t.subFontBySize&&this.root.push(new Ye("w:subFontBySize",t.subFontBySize)),t.suppressBottomSpacing&&this.root.push(new Ye("w:suppressBottomSpacing",t.suppressBottomSpacing)),t.suppressTopSpacing&&this.root.push(new Ye("w:suppressTopSpacing",t.suppressTopSpacing)),t.suppressSpacingAtTopOfPage&&this.root.push(new Ye("w:suppressSpacingAtTopOfPage",t.suppressSpacingAtTopOfPage)),t.suppressTopSpacingWP&&this.root.push(new Ye("w:suppressTopSpacingWP",t.suppressTopSpacingWP)),t.suppressSpBfAfterPgBrk&&this.root.push(new Ye("w:suppressSpBfAfterPgBrk",t.suppressSpBfAfterPgBrk)),t.swapBordersFacingPages&&this.root.push(new Ye("w:swapBordersFacingPages",t.swapBordersFacingPages)),t.convertMailMergeEsc&&this.root.push(new Ye("w:convMailMergeEsc",t.convertMailMergeEsc)),t.truncateFontHeightsLikeWP6&&this.root.push(new Ye("w:truncateFontHeightsLikeWP6",t.truncateFontHeightsLikeWP6)),t.macWordSmallCaps&&this.root.push(new Ye("w:mwSmallCaps",t.macWordSmallCaps)),t.usePrinterMetrics&&this.root.push(new Ye("w:usePrinterMetrics",t.usePrinterMetrics)),t.doNotSuppressParagraphBorders&&this.root.push(new Ye("w:doNotSuppressParagraphBorders",t.doNotSuppressParagraphBorders)),t.wrapTrailSpaces&&this.root.push(new Ye("w:wrapTrailSpaces",t.wrapTrailSpaces)),t.footnoteLayoutLikeWW8&&this.root.push(new Ye("w:footnoteLayoutLikeWW8",t.footnoteLayoutLikeWW8)),t.shapeLayoutLikeWW8&&this.root.push(new Ye("w:shapeLayoutLikeWW8",t.shapeLayoutLikeWW8)),t.alignTablesRowByRow&&this.root.push(new Ye("w:alignTablesRowByRow",t.alignTablesRowByRow)),t.forgetLastTabAlignment&&this.root.push(new Ye("w:forgetLastTabAlignment",t.forgetLastTabAlignment)),t.adjustLineHeightInTable&&this.root.push(new Ye("w:adjustLineHeightInTable",t.adjustLineHeightInTable)),t.autoSpaceLikeWord95&&this.root.push(new Ye("w:autoSpaceLikeWord95",t.autoSpaceLikeWord95)),t.noSpaceRaiseLower&&this.root.push(new Ye("w:noSpaceRaiseLower",t.noSpaceRaiseLower)),t.doNotUseHTMLParagraphAutoSpacing&&this.root.push(new Ye("w:doNotUseHTMLParagraphAutoSpacing",t.doNotUseHTMLParagraphAutoSpacing)),t.layoutRawTableWidth&&this.root.push(new Ye("w:layoutRawTableWidth",t.layoutRawTableWidth)),t.layoutTableRowsApart&&this.root.push(new Ye("w:layoutTableRowsApart",t.layoutTableRowsApart)),t.useWord97LineBreakRules&&this.root.push(new Ye("w:u
1640seWord97LineBreakRules",t.useWord97LineBreakRules)),t.doNotBreakWrappedTables&&this.root.push(new Ye("w:doNotBreakWrappedTables",t.doNotBreakWrappedTables)),t.doNotSnapToGridInCell&&this.root.push(new Ye("w:doNotSnapToGridInCell",t.doNotSnapToGridInCell)),t.selectFieldWithFirstOrLastCharacter&&this.root.push(new Ye("w:selectFldWithFirstOrLastChar",t.selectFieldWithFirstOrLastCharacter)),t.applyBreakingRules&&this.root.push(new Ye("w:applyBreakingRules",t.applyBreakingRules)),t.doNotWrapTextWithPunctuation&&this.root.push(new Ye("w:doNotWrapTextWithPunct",t.doNotWrapTextWithPunctuation)),t.doNotUseEastAsianBreakRules&&this.root.push(new Ye("w:doNotUseEastAsianBreakRules",t.doNotUseEastAsianBreakRules)),t.useWord2002TableStyleRules&&this.root.push(new Ye("w:useWord2002TableStyleRules",t.useWord2002TableStyleRules)),t.growAutofit&&this.root.push(new Ye("w:growAutofit",t.growAutofit)),t.useFELayout&&this.root.push(new Ye("w:useFELayout",t.useFELayout)),t.useNormalStyleForList&&this.root.push(new Ye("w:useNormalStyleForList",t.useNormalStyleForList)),t.doNotUseIndentAsNumberingTabStop&&this.root.push(new Ye("w:doNotUseIndentAsNumberingTabStop",t.doNotUseIndentAsNumberingTabStop)),t.useAlternateEastAsianLineBreakRules&&this.root.push(new Ye("w:useAltKinsokuLineBreakRules",t.useAlternateEastAsianLineBreakRules)),t.allowSpaceOfSameStyleInTable&&this.root.push(new Ye("w:allowSpaceOfSameStyleInTable",t.allowSpaceOfSameStyleInTable)),t.doNotSuppressIndentation&&this.root.push(new Ye("w:doNotSuppressIndentation",t.doNotSuppressIndentation)),t.doNotAutofitConstrainedTables&&this.root.push(new Ye("w:doNotAutofitConstrainedTables",t.doNotAutofitConstrainedTables)),t.autofitToFirstFixedWidthCell&&this.root.push(new Ye("w:autofitToFirstFixedWidthCell",t.autofitToFirstFixedWidthCell)),t.underlineTabInNumberingList&&this.root.push(new Ye("w:underlineTabInNumList",t.underlineTabInNumberingList)),t.displayHangulFixedWidth&&this.root.push(new Ye("w:displayHangulFixedWidth",t.displayHangulFixedWidth)),t.splitPgBreakAndParaMark&&this.root.push(new Ye("w:splitPgBreakAndParaMark",t.splitPgBreakAndParaMark)),t.doNotVerticallyAlignCellWithSp&&this.root.push(new Ye("w:doNotVertAlignCellWithSp",t.doNotVerticallyAlignCellWithSp)),t.doNotBreakConstrainedForcedTable&&this.root.push(new Ye("w:doNotBreakConstrainedForcedTable",t.doNotBreakConstrainedForcedTable)),t.ignoreVerticalAlignmentInTextboxes&&this.root.push(new Ye("w:doNotVertAlignInTxbx",t.ignoreVerticalAlignmentInTextboxes)),t.useAnsiKerningPairs&&this.root.push(new Ye("w:useAnsiKerningPairs",t.useAnsiKerningPairs)),t.cachedColumnBalance&&this.root.push(new Ye("w:cachedColBalance",t.cachedColumnBalance))}}class uen extends Dt{constructor(){super(...arguments),Ve(this,"xmlKeys",{wpc:"xmlns:wpc",mc:"xmlns:mc",o:"xmlns:o",r:"xmlns:r",m:"xmlns:m",v:"xmlns:v",wp14:"xmlns:wp14",wp:"xmlns:wp",w10:"xmlns:w10",w:"xmlns:w",w14:"xmlns:w14",w15:"xmlns:w15",wpg:"xmlns:wpg",wpi:"xmlns:wpi",wne:"xmlns:wne",wps:"xmlns:wps",Ignorable:"mc:Ignorable"})}}class den extends Ke{constructor(t){var n,r,i,o,s,a,c,l;super("w:settings"),this.root.push(new uen({wpc:"http://schemas.microsoft.com/office/word/2010/wordprocessingCanvas",mc:"http://schemas.openxmlformats.org/markup-compatibility/2006",o:"urn:schemas-microsoft-com:office:office",r:"http://schemas.openxmlformats.org/officeDocument/2006/relationships",m:"http://schemas.openxmlformats.org/officeDocument/2006/math",v:"urn:schemas-microsoft-com:vml",wp14:"http://schemas.microsoft.com/office/word/2010/wordprocessingDrawing",wp:"http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing",w10:"urn:schemas-microsoft-com:office:word",w:"http://schemas.openxmlformats.org/wordprocessingml/2006/main",w14:"http://schemas.microsoft.com/office/word/2010/wordml",w15:"http://schemas.microsoft.com/office/word/2012/wordml",wpg:"http://schemas.microsoft.com/office/word/2010/wordprocessingGroup",wpi:"http://schemas.microsoft.com/office/word/2010/wordprocessingInk",wne:"http://schemas.microsoft.com/office/word/2006/wordml",wps:"http://schemas.microsoft.com/office/word/2010/wordprocessingShape",Ignorable:"w14 w15 wp14"}
1640)),this.root.push(new Ye("w:displayBackgroundShape",!0)),t.trackRevisions!==void 0&&this.root.push(new Ye("w:trackRevisions",t.trackRevisions)),t.evenAndOddHeaders!==void 0&&this.root.push(new Ye("w:evenAndOddHeaders",t.evenAndOddHeaders)),t.updateFields!==void 0&&this.root.push(new Ye("w:updateFields",t.updateFields)),t.defaultTabStop!==void 0&&this.root.push(new E_("w:defaultTabStop",t.defaultTabStop)),((n=t.hyphenation)==null?void 0:n.autoHyphenation)!==void 0&&this.root.push(new Ye("w:autoHyphenation",t.hyphenation.autoHyphenation)),((r=t.hyphenation)==null?void 0:r.hyphenationZone)!==void 0&&this.root.push(new E_("w:hyphenationZone",t.hyphenation.hyphenationZone)),((i=t.hyphenation)==null?void 0:i.consecutiveHyphenLimit)!==void 0&&this.root.push(new E_("w:consecutiveHyphenLimit",t.hyphenation.consecutiveHyphenLimit)),((o=t.hyphenation)==null?void 0:o.doNotHyphenateCaps)!==void 0&&this.root.push(new Ye("w:doNotHyphenateCaps",t.hyphenation.doNotHyphenateCaps)),this.root.push(new len(YC(On({},(s=t.compatibility)!=null?s:{}),{version:(l=(c=(a=t.compatibility)==null?void 0:a.version)!=null?c:t.compatibilityModeVersion)!=null?l:15})))}}class MIe extends Dt{constructor(){super(...arguments),Ve(this,"xmlKeys",{val:"w:val"})}}class fen extends Ke{constructor(t){super("w:name"),this.root.push(new MIe({val:t}))}}class hen extends Ke{constructor(t){super("w:uiPriority"),this.root.push(new MIe({val:Pa(t)}))}}class pen extends Dt{constructor(){super(...arguments),Ve(this,"xmlKeys",{type:"w:type",styleId:"w:styleId",default:"w:default",customStyle:"w:customStyle"})}}class DIe extends Ke{constructor(t,n){super("w:style"),this.root.push(new pen(t)),n.name&&this.root.push(new fen(n.name)),n.basedOn&&this.root.push(new Yy("w:basedOn",n.basedOn)),n.next&&this.root.push(new Yy("w:next",n.next)),n.link&&this.root.push(new Yy("w:link",n.link)),n.uiPriority!==void 0&&this.root.push(new hen(n.uiPriority)),n.semiHidden!==void 0&&this.root.push(new Ye("w:semiHidden",n.semiHidden)),n.unhideWhenUsed!==void 0&&this.root.push(new Ye("w:unhideWhenUsed",n.unhideWhenUsed)),n.quickFormat!==void 0&&this.root.push(new Ye("w:qFormat",n.quickFormat))}}class w4 extends DIe{constructor(t){super({type:"paragraph",styleId:t.id},t),Ve(this,"paragraphProperties"),Ve(this,"runProperties"),this.paragraphProperties=new ob(t.paragraph),this.runProperties=new i0(t.run),this.root.push(this.paragraphProperties),this.root.push(this.runProperties)}}class S4 extends DIe{constructor(t){super({type:"character",styleId:t.id},On({uiPriority:99,unhideWhenUsed:!0},t)),Ve(this,"runProperties"),this.runProperties=new i0(t.run),this.root.push(this.runProperties)}}class Vm extends w4{constructor(t){super(On({basedOn:"Normal",next:"Normal",quickFormat:!0},t))}}class men extends Vm{constructor(t){super(On({id:"Title",name:"Title"},t))}}class gen extends Vm{constructor(t){super(On({id:"Heading1",name:"Heading 1"},t))}}class ven extends Vm{constructor(t){super(On({id:"Heading2",name:"Heading 2"},t))}}class yen extends Vm{constructor(t){super(On({id:"Heading3",name:"Heading 3"},t))}}class ben extends Vm{constructor(t){super(On({id:"Heading4",name:"Heading 4"},t))}}class wen extends Vm{constructor(t){super(On({id:"Heading5",name:"Heading 5"},t))}}class Sen extends Vm{constructor(t){super(On({id:"Heading6",name:"Heading 6"},t))}}class _en extends Vm{constructor(t){super(On({id:"Strong",name:"Strong"},t))}}class Cen extends w4{constructor(t){super(On({id:"ListParagraph",name:"List Paragraph",basedOn:"Normal",quickFormat:!0},t))}}class Een extends w4{constructor(t){super(On({id:"FootnoteText",name:"footnote text",link:"FootnoteTextChar",basedOn:"Normal",uiPriority:99,semiHidden:!0,unhideWhenUsed:!0,paragraph:{spacing:{after:0,line:240,lineRule:BU.AUTO}},run:{size:20}},t))}}class Ten extends S4{constructor(t){super(On({id:"FootnoteReference",name:"footnote reference",basedOn:"DefaultParagraphFont",semiHidden:!0,run:{superScript:!0}},t))}}class ken extends S4{constructor(t){super(On({id:"FootnoteTextChar",name:"Footnote Text Char",basedOn:"DefaultParagraphFont",link:"FootnoteText",semiHidden:!0,run:{size:20}},t))}}class xen extends S4{constructor(t){super(On({id:"Hyperlink",name:"Hyperlink",basedOn:"DefaultParagraphFont",run:{color:"0563C1",underline:{type:xIe.SINGLE}}},t))}}class $U extends Ke{constructor(t){if(super("w:styles"),t.initialStyles&&this.root.push(t.initialStyles),t.importedStyles)for(const n of t.importedStyles)this.root.push(n);if(t.paragraphStyles)for(const n of t.paragraphStyles)this.root.push(new w4(n));if(t.characterStyles)for(const n of t.characterStyles)this.root.push(new S4(n))}}class Aen extends Ke{constructor(t){super("w:pPrDefault"),this.root.push(new ob(t))}}class Ien extends Ke{constructor(t){super("w:rPrDefault"),this.root.push(new i0(t))}}class Ren extends Ke{constructor(t){super("w:docDefaults"),Ve(this,"runPropertiesDefaults"),Ve(this,"paragraphPropertiesDefaults"),this.runPropertiesDefaults=new Ien(t.run),this.paragraphPropertiesDefaults=new Aen(t.paragraph),this.root.push(this.runPropertiesDefaults),this.root.push(this.paragraphPropertiesDefaults)}}class Pen{newInstance(t){const n=wIe.xml2js(t,{compact:!1});let r;for(const s of n.elements||[])s.name==="w:styles"&&(r=s);if(r===void 0)throw new Error("can not find styles element");const i=r.elements||[];return new $U({initialStyles:new CXt(r.attributes),importedStyles:i.map(s=>NG(s))})}}class Tle{newInstance(t={}){var n;return{initialStyles:new b4(["mc","r","w","w14","w15"],"w14 w15"),importedStyles:[new Ren((n=t.document)!=null?n:{}),new men(On({run:{size:56}},t.title)),new gen(On({run:{color:"2E74B5",size:32}},t.heading1)),new ven(On({run:{color:"2E74B5",size:26}}
1640,t.heading2)),new yen(On({run:{color:"1F4D78",size:24}},t.heading3)),new ben(On({run:{color:"2E74B5",italics:!0}},t.heading4)),new wen(On({run:{color:"2E74B5"}},t.heading5)),new Sen(On({run:{color:"1F4D78"}},t.heading6)),new _en(On({run:{bold:!0}},t.strong)),new Cen(t.listParagraph||{}),new xen(t.hyperlink||{}),new Ten(t.footnoteReference||{}),new Een(t.footnoteText||{}),new ken(t.footnoteTextChar||{})]}}}let Oen=class{constructor(t){Ve(this,"currentRelationshipId",1),Ve(this,"documentWrapper"),Ve(this,"headers",[]),Ve(this,"footers",[]),Ve(this,"coreProperties"),Ve(this,"numbering"),Ve(this,"media"),Ve(this,"fileRelationships"),Ve(this,"footnotesWrapper"),Ve(this,"settings"),Ve(this,"contentTypes"),Ve(this,"customProperties"),Ve(this,"appProperties"),Ve(this,"styles"),Ve(this,"comments"),Ve(this,"fontWrapper");var n,r,i,o,s,a,c,l,u,d,f,p;if(this.coreProperties=new gZt(YC(On({},t),{creator:(n=t.creator)!=null?n:"Un-named",revision:(r=t.revision)!=null?r:1,lastModifiedBy:(i=t.lastModifiedBy)!=null?i:"Un-named"})),this.numbering=new sen(t.numbering?t.numbering:{config:[]}),this.comments=new vJt((o=t.comments)!=null?o:{children:[]}),this.fileRelationships=new uw,this.customProperties=new _Zt((s=t.customProperties)!=null?s:[]),this.appProperties=new dZt,this.footnotesWrapper=new UZt,this.contentTypes=new mZt,this.documentWrapper=new NIe({background:t.background}),this.settings=new den({compatibilityModeVersion:t.compatabilityModeVersion,compatibility:t.compatibility,evenAndOddHeaders:!!t.evenAndOddHeaderAndFooters,trackRevisions:(a=t.features)==null?void 0:a.trackRevisions,updateFields:(c=t.features)==null?void 0:c.updateFields,defaultTabStop:t.defaultTabStop,hyphenation:{autoHyphenation:(l=t.hyphenation)==null?void 0:l.autoHyphenation,hyphenationZone:(u=t.hyphenation)==null?void 0:u.hyphenationZone,consecutiveHyphenLimit:(d=t.hyphenation)==null?void 0:d.consecutiveHyphenLimit,doNotHyphenateCaps:(f=t.hyphenation)==null?void 0:f.doNotHyphenateCaps}}),this.media=new zZt,t.externalStyles!==void 0){const g=new Pen;this.styles=g.newInstance(t.externalStyles)}else if(t.styles){const m=new Tle().newInstance(t.styles.default);this.styles=new $U(On(On({},m),t.styles))}else{const g=new Tle;this.styles=new $U(g.newInstance())}this.addDefaultRelationships();for(const g of t.sections)this.addSection(g);if(t.footnotes)for(const g in t.footnotes)this.footnotesWrapper.View.createFootNote(parseFloat(g),t.footnotes[g].children);this.fontWrapper=new kZt((p=t.fonts)!=null?p:[])}addSection({headers:t={},footers:n={},children:r,properties:i}){this.documentWrapper.View.Body.addSection(YC(On({},i),{headerWrapperGroup:{default:t.default?this.createHeader(t.default):void 0,first:t.first?this.createHeader(t.first):void 0,even:t.even?this.createHeader(t.even):void 0},footerWrapperGroup:{default:n.default?this.createFooter(n.default):void 0,first:n.first?this.createFooter(n.first):void 0,even:n.even?this.createFooter(n.even):void 0}}));for(const o of r)this.documentWrapper.View.add(o)}createHeader(t){const n=new HZt(this.media,this.currentRelationshipId++);for(const r of t.options.children)n.add(r);return this.addHeaderToDocument(n),n}createFooter(t){const n=new IZt(this.media,this.currentRelationshipId++);for(const r of t.options.children)n.add(r);return this.addFooterToDocument(n),n}addHeaderToDocument(t,n=Qy.DEFAULT){this.headers.push({header:t,type:n}),this.documentWrapper.Relationships.createRelationship(t.View.ReferenceId,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/header",`header${this.headers.length}.xml`),this.contentTypes.addHeader(this.headers.length)}addFooterToDocument(t,n=Qy.DEFAULT){this.footers.push({footer:t,type:n}),this.documentWrapper.Relationships.createRelationship(t.View.ReferenceId,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/footer",`footer${this.footers.length}.xml`),this.contentTypes.addFooter(this.footers.length)}addDefaultRelationships(){this.fileRelationships.createRelationship(1,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument","word/document.xml"),this.fileRelationships.createRelationship(2,"http://schemas.openxmlformats.org/package/2006/relationships/metadata/core-properties","docProps/core.xml"),this.fileRelationships.createRelationship(3,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/extended-properties","docProps/app.xml"),this.fileRelationships.createRelationship(4,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/custom-properties","docProps/custom.xml"),this.documentWrapper.Relationships.createRelationship(this.currentRelationshipId++,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/styles","styles.xml"),this.documentWrapper.Relationships.createRelationship(this.currentRelationshipId++,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/numbering","numbering.xml"),this.documentWrapper.Relationships.createRelationship(this.currentRelationshipId++,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/footnotes","footnotes.xml"),this.documentWrapper.Relationships.createRelationship(this.currentRelationshipId++,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/settings","settings.xml"),this.documentWrapper.Relationships.createRelationship(this.currentRelationshipId++,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/comments","comments.xml")}get Document(){return this.documentWrapper}get Styles(){return this.styles}get CoreProperties(){return this.coreProperties}get Numbering(){return this.numbering}get Media(){return this.media}get FileRelationships(){return this.fileRelationships}get Headers(){return this.headers.map(t=>t.header)}get Footers(){return this.footers.map(t=>t.footer)}get ContentTypes(){return this.contentTypes}get CustomProperties(){return this.customProperties}get AppProperties(){return this.appProperties}get FootNotes(){return this.footnotesWrapper}get Settings(){return this.settings}get Comments(){return this.comments}get FontTable(){return this.fontWrapper}};var Nen=RG();function Gk(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var v8={exports:{}},kle;function Men(){return kle||(kle=1,(function(e,t){(function(n){e.exports=n()})(function(){return(function n(r,i,o){function s(l,u){if(!i[l]){if(!r[l]){var d=typeof Gk=="function"&&Gk;if(!u&&d)return d(l,!0);if(a)return a(l,!0);var f=new Error("Cannot find module '"+l+"'");throw f.code="MODULE_NOT_FOUND",f}var p=i[l]={exports:{}};r[l][0].call(p.exports,function(g){var m=r[l][1][g];return s(m||g)},p,p.exports,n,r,i,o)}return i[l].exports}for(var a=typeof Gk=="function"&&Gk,c=0;c<o.length;c++)s(o[c]);return s})({1:[function(n,r,i){var o=n("./utils"),s=n("./support"),a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789
vendor: 33,157 bytes, lines 1640-1641
1640+/=";i.encode=function(c){for(var l,u,d,f,p,g,m,y=[],v=0,w=c.length,S=w,C=o.getTypeOf(c)!=="string";v<c.length;)S=w-v,d=C?(l=c[v++],u=v<w?c[v++]:0,v<w?c[v++]:0):(l=c.charCodeAt(v++),u=v<w?c.charCodeAt(v++):0,v<w?c.charCodeAt(v++):0),f=l>>2,p=(3&l)<<4|u>>4,g=1<S?(15&u)<<2|d>>6:64,m=2<S?63&d:64,y.push(a.charAt(f)+a.charAt(p)+a.charAt(g)+a.charAt(m));return y.join("")},i.decode=function(c){var l,u,d,f,p,g,m=0,y=0,v="data:";if(c.substr(0,v.length)===v)throw new Error("Invalid base64 input, it looks like a data url.");var w,S=3*(c=c.replace(/[^A-Za-z0-9+/=]/g,"")).length/4;if(c.charAt(c.length-1)===a.charAt(64)&&S--,c.charAt(c.length-2)===a.charAt(64)&&S--,S%1!=0)throw new Error("Invalid base64 input, bad content length.");for(w=s.uint8array?new Uint8Array(0|S):new Array(0|S);m<c.length;)l=a.indexOf(c.charAt(m++))<<2|(f=a.indexOf(c.charAt(m++)))>>4,u=(15&f)<<4|(p=a.indexOf(c.charAt(m++)))>>2,d=(3&p)<<6|(g=a.indexOf(c.charAt(m++))),w[y++]=l,p!==64&&(w[y++]=u),g!==64&&(w[y++]=d);return w}},{"./support":30,"./utils":32}],2:[function(n,r,i){var o=n("./external"),s=n("./stream/DataWorker"),a=n("./stream/Crc32Probe"),c=n("./stream/DataLengthProbe");function l(u,d,f,p,g){this.compressedSize=u,this.uncompressedSize=d,this.crc32=f,this.compression=p,this.compressedContent=g}l.prototype={getContentWorker:function(){var u=new s(o.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new c("data_length")),d=this;return u.on("end",function(){if(this.streamInfo.data_length!==d.uncompressedSize)throw new Error("Bug : uncompressed data size mismatch")}),u},getCompressedWorker:function(){return new s(o.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize",this.compressedSize).withStreamInfo("uncompressedSize",this.uncompressedSize).withStreamInfo("crc32",this.crc32).withStreamInfo("compression",this.compression)}},l.createWorkerFrom=function(u,d,f){return u.pipe(new a).pipe(new c("uncompressedSize")).pipe(d.compressWorker(f)).pipe(new c("compressedSize")).withStreamInfo("compression",d)},r.exports=l},{"./external":6,"./stream/Crc32Probe":25,"./stream/DataLengthProbe":26,"./stream/DataWorker":27}],3:[function(n,r,i){var o=n("./stream/GenericWorker");i.STORE={magic:"\0\0",compressWorker:function(){return new o("STORE compression")},uncompressWorker:function(){return new o("STORE decompression")}},i.DEFLATE=n("./flate")},{"./flate":7,"./stream/GenericWorker":28}],4:[function(n,r,i){var o=n("./utils"),s=(function(){for(var a,c=[],l=0;l<256;l++){a=l;for(var u=0;u<8;u++)a=1&a?3988292384^a>>>1:a>>>1;c[l]=a}return c})();r.exports=function(a,c){return a!==void 0&&a.length?o.getTypeOf(a)!=="string"?(function(l,u,d,f){var p=s,g=f+d;l^=-1;for(var m=f;m<g;m++)l=l>>>8^p[255&(l^u[m])];return-1^l})(0|c,a,a.length,0):(function(l,u,d,f){var p=s,g=f+d;l^=-1;for(var m=f;m<g;m++)l=l>>>8^p[255&(l^u.charCodeAt(m))];return-1^l})(0|c,a,a.length,0):0}},{"./utils":32}],5:[function(n,r,i){i.base64=!1,i.binary=!1,i.dir=!1,i.createFolders=!0,i.date=null,i.compression=null,i.compressionOptions=null,i.comment=null,i.unixPermissions=null,i.dosPermissions=null},{}],6:[function(n,r,i){var o=null;o=typeof Promise<"u"?Promise:n("lie"),r.exports={Promise:o}},{lie:37}],7:[function(n,r,i){var o=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Uint32Array<"u",s=n("pako"),a=n("./utils"),c=n("./stream/GenericWorker"),l=o?"uint8array":"array";function u(d,f){c.call(this,"FlateWorker/"+d),this._pako=null,this._pakoAction=d,this._pakoOptions=f,this.meta={}}i.magic="\b\0",a.inherits(u,c),u.prototype.processChunk=function(d){this.meta=d.meta,this._pako===null&&this._createPako(),this._pako.push(a.transformTo(l,d.data),!1)},u.prototype.flush=function(){c.prototype.flush.call(this),this._pako===null&&this._createPako(),this._pako.push([],!0)},u.prototype.cleanUp=function(){c.prototype.cleanUp.call(this),this._pako=null},u.prototype._createPako=function(){this._pako=new s[this._pakoAction]({raw:!0,level:this._pakoOptions.level||-1});var d=this;this._pako.onData=function(f){d.push({data:f,meta:d.meta})}},i.compressWorker=function(d){return new u("Deflate",d)},i.uncompressWorker=function(){return new u("Inflate",{})}},{"./stream/GenericWorker":28,"./utils":32,pako:38}],8:[function(n,r,i){function o(p,g){var m,y="";for(m=0;m<g;m++)y+=String.fromCharCode(255&p),p>>>=8;return y}function s(p,g,m,y,v,w){var S,C,E=p.file,T=p.compression,x=w!==l.utf8encode,O=a.transformTo("string",w(E.name)),A=a.transformTo("string",l.utf8encode(E.name)),L=E.comment,U=a.transformTo("string",w(L)),I=a.transformTo("string",l.utf8encode(L)),F=A.length!==E.name.length,P=I.length!==L.length,W="",ee="",Y="",X=E.dir,Z=E.date,G={crc32:0,compressedSize:0,uncompressedSize:0};g&&!m||(G.crc32=p.crc32,G.compressedSize=p.compressedSize,G.uncompressedSize=p.uncompressedSize);var Q=0;g&&(Q|=8),x||!F&&!P||(Q|=2048);var q=0,z=0;X&&(q|=16),v==="UNIX"?(z=798,q|=(function(ge,ae){var j=ge;return ge||(j=ae?16893:33204),(65535&j)<<16})(E.unixPermissions,X)):(z=20,q|=(function(ge){return 63&(ge||0)})(E.dosPermissions)),S=Z.getUTCHours(),S<<=6,S|=Z.getUTCMinutes(),S<<=5,S|=Z.getUTCSeconds()/2,C=Z.getUTCFullYear()-1980,C<<=4,C|=Z.getUTCMonth()+1,C<<=5,C|=Z.getUTCDate(),F&&(ee=o(1,1)+o(u(O),4)+A,W+="up"+o(ee.length,2)+ee),P&&(Y=o(1,1)+o(u(U),4)+I,W+="uc"+o(Y.length,2)+Y);var ue="";return ue+=`
1641\0`,ue+=o(Q,2),ue+=T.magic,ue+=o(S,2),ue+=o(C,2),ue+=o(G.crc32,4),ue+=o(G.compressedSize,4),ue+=o(G.uncompressedSize,4),ue+=o(O.length,2),ue+=o(W.length,2),{fileRecord:d.LOCAL_FILE_HEADER+ue+O+W,dirRecord:d.CENTRAL_FILE_HEADER+o(z,2)+ue+o(U.length,2)+"\0\0\0\0"+o(q,4)+o(y,4)+O+W+U}}var a=n("../utils"),c=n("../stream/GenericWorker"),l=n("../utf8"),u=n("../crc32"),d=n("../signature");function f(p,g,m,y){c.call(this,"ZipFileWorker"),this.bytesWritten=0,this.zipComment=g,this.zipPlatform=m,this.encodeFileName=y,this.streamFiles=p,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[]}a.inherits(f,c),f.prototype.push=function(p){var g=p.meta.percent||0,m=this.entriesCount,y=this._sources.length;this.accumulate?this.contentBuffer.push(p):(this.bytesWritten+=p.data.length,c.prototype.push.call(this,{data:p.data,meta:{currentFile:this.currentFile,percent:m?(g+100*(m-y-1))/m:100}}))},f.prototype.openedSource=function(p){this.currentSourceOffset=this.bytesWritten,this.currentFile=p.file.name;var g=this.streamFiles&&!p.file.dir;if(g){var m=s(p,g,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:m.fileRecord,meta:{percent:0}})}else this.accumulate=!0},f.prototype.closedSource=function(p){this.accumulate=!1;var g=this.streamFiles&&!p.file.dir,m=s(p,g,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(m.dirRecord),g)this.push({data:(function(y){return d.DATA_DESCRIPTOR+o(y.crc32,4)+o(y.compressedSize,4)+o(y.uncompressedSize,4)})(p),meta:{percent:100}});else for(this.push({data:m.fileRecord,meta:{percent:0}});this.contentBuffer.length;)this.push(this.contentBuffer.shift());this.currentFile=null},f.prototype.flush=function(){for(var p=this.bytesWritten,g=0;g<this.dirRecords.length;g++)this.push({data:this.dirRecords[g],meta:{percent:100}});var m=this.bytesWritten-p,y=(function(v,w,S,C,E){var T=a.transformTo("string",E(C));return d.CENTRAL_DIRECTORY_END+"\0\0\0\0"+o(v,2)+o(v,2)+o(w,4)+o(S,4)+o(T.length,2)+T})(this.dirRecords.length,m,p,this.zipComment,this.encodeFileName);this.push({data:y,meta:{percent:100}})},f.prototype.prepareNextSource=function(){this.previous=this._sources.shift(),this.openedSource(this.previous.streamInfo),this.isPaused?this.previous.pause():this.previous.resume()},f.prototype.registerPrevious=function(p){this._sources.push(p);var g=this;return p.on("data",function(m){g.processChunk(m)}),p.on("end",function(){g.closedSource(g.previous.streamInfo),g._sources.length?g.prepareNextSource():g.end()}),p.on("error",function(m){g.error(m)}),this},f.prototype.resume=function(){return!!c.prototype.resume.call(this)&&(!this.previous&&this._sources.length?(this.prepareNextSource(),!0):this.previous||this._sources.length||this.generatedError?void 0:(this.end(),!0))},f.prototype.error=function(p){var g=this._sources;if(!c.prototype.error.call(this,p))return!1;for(var m=0;m<g.length;m++)try{g[m].error(p)}catch{}return!0},f.prototype.lock=function(){c.prototype.lock.call(this);for(var p=this._sources,g=0;g<p.length;g++)p[g].lock()},r.exports=f},{"../crc32":4,"../signature":23,"../stream/GenericWorker":28,"../utf8":31,"../utils":32}],9:[function(n,r,i){var o=n("../compressions"),s=n("./ZipFileWorker");i.generateWorker=function(a,c,l){var u=new s(c.streamFiles,l,c.platform,c.encodeFileName),d=0;try{a.forEach(function(f,p){d++;var g=(function(w,S){var C=w||S,E=o[C];if(!E)throw new Error(C+" is not a valid compression method !");return E})(p.options.compression,c.compression),m=p.options.compressionOptions||c.compressionOptions||{},y=p.dir,v=p.date;p._compressWorker(g,m).withStreamInfo("file",{name:f,dir:y,date:v,comment:p.comment||"",unixPermissions:p.unixPermissions,dosPermissions:p.dosPermissions}).pipe(u)}),u.entriesCount=d}catch(f){u.error(f)}return u}},{"../compressions":3,"./ZipFileWorker":8}],10:[function(n,r,i){function o(){if(!(this instanceof o))return new o;if(arguments.length)throw new Error("The constructor with parameters has been removed in JSZip 3.0, please check the upgrade guide.");this.files=Object.create(null),this.comment=null,this.root="",this.clone=function(){var s=new o;for(var a in this)typeof this[a]!="function"&&(s[a]=this[a]);return s}}(o.prototype=n("./object")).loadAsync=n("./load"),o.support=n("./support"),o.defaults=n("./defaults"),o.version="3.10.1",o.loadAsync=function(s,a){return new o().loadAsync(s,a)},o.external=n("./external"),r.exports=o},{"./defaults":5,"./external":6,"./load":11,"./object":15,"./support":30}],11:[function(n,r,i){var o=n("./utils"),s=n("./external"),a=n("./utf8"),c=n("./zipEntries"),l=n("./stream/Crc32Probe"),u=n("./nodejsUtils");function d(f){return new s.Promise(function(p,g){var m=f.decompressed.getContentWorker().pipe(new l);m.on("error",function(y){g(y)}).on("end",function(){m.streamInfo.crc32!==f.decompressed.crc32?g(new Error("Corrupted zip : CRC32 mismatch")):p()}).resume()})}r.exports=function(f,p){var g=this;return p=o.extend(p||{},{base64:!1,checkCRC32:!1,optimizedBinaryString:!1,createFolders:!1,decodeFileName:a.utf8decode}),u.isNode&&u.isStream(f)?s.Promise.reject(new Error("JSZip can't accept a stream when loading a zip file.")):o.prepareContent("the loaded zip file",f,!0,p.optimizedBinaryString,p.base64).then(function(m){var y=new c(p);return y.load(m),y}).then(function(m){var y=[s.Promise.resolve(m)],v=m.files;if(p.checkCRC32)for(var w=0;w<v.length;w++)y.push(d(v[w]));return s.Promise.all(y)}).then(function(m){for(var y=m.shift(),v=y.files,w=0;w<v.length;w++){var S=v[w],C=S.fileNameStr,E=o.resolve(S.fileNameStr);g.file(E,S.decompressed,{binary:!0,optimizedBinaryString:!0,date:S.date,dir:S.dir,comment:S.fileCommentStr.length?S.fileCommentStr:null,unixPermissions:S.unixPermissions,dosPermissions:S.dosPermissions,createFolders:p.createFolders}),S.dir||(g.file(E).unsafeOriginalName=C)}return y.zipComment.length&&(g.comment=y.zipComment),g})}},{"./external":6,"./nodejsUtils":14,"./stream/Crc32Probe":25,"./utf8":31,"./utils":32,"./zipEntries":33}],12:[function(n,r,i){var o=n("../utils"),s=n("../stream/GenericWorker");function a(c,l){s.call(this,"Nodejs stream input adapter for "+c),this._upstreamEnded=!1,this._bindStream(l)}o.inherits(a,s),a.prototype._bindStream=function(c){var l=this;(this._stream=c).pause(),c.on("data",function(u){l.push({data:u,meta:{percent:0}})}).on("error",function(u){l.isPaused?this.generatedError=u:l.error(u)}).on("end",function(){l.isPaused?l._upstreamEnded=!0:l.end()})},a.prototype.pause=function(){return!!s.prototype.pause.call(this)&&(this._stream.pause(),!0)},a.prototype.resume=function(){return!!s.prototype.resume.call(this)&&(this._upstreamEnded?this.end():this._stream.resume(),!0)},r.exports=a},{"../stream/GenericWorker":28,"../utils":32}],13:[function(n,r,i){var o=n("readable-stream").Readable;function s(a,c,l){o.call(this,c),this._helper=a;var u=this;a.on("data",function(d,f){u.push(d)||u._helper.pause(),l&&l(f)}).on("error",function(d){u.emit("error",d)}).on("end",function(){u.push(null)})}n("../utils").inherits(s,o),s.prototype._read=function(){this._helper.resume()},r.exports=s},{"../utils":32,"readable-stream":16}],14:[function(n,r,i){r.exports={isNode:typeof Buffer<"u",newBufferFrom:function(o,s){if(Buffer.from&&Buffer.from!==Uint8Array.from)return Buffer.from(o,s);if(typeof o=="number")throw new Error('The "data" argument must not be a number');return new Buffer(o,s)},allocBuffer:function(o){if(Buffer.alloc)return Buffer.alloc(o);var s=new Buffer(o);return s.fill(0),s},isBuffer:function(o){return Buffer.isBuffer(o)},isStream:function(o){return o&&typeof o.on=="function"&&typeof o.pause=="function"&&typeof o.resume=="function"}}},{}],15:[function(n,r,i){function o(E,T,x){var O,A=a.getTypeOf(T),L=a.extend(x||{},u);L.date=L.date||new Date,L.compression!==null&&(L.compression=L.compression.toUpperCase()),typeof L.unixPermissions=="string"&&(L.unixPermissions=parseInt(L.unixPermissions,8)),L.unixPermissions&&16384&L.unixPermissions&&(L.dir=!0),L.dosPermissions&&16&L.dosPermissions&&(L.dir=!0),L.dir&&(E=v(E)),L.createFolders&&(O=y(E))&&w.call(this,O,!0);var U=A==="string"&&L.binary===!1&&L.base64===!1;x&&x.binary!==void 0||(L.binary=!U),(T instanceof d&&T.uncompressedSize===0||L.dir||!T||T.length===0)&&(L.base64=!1,L.binary=!0,T="",L.compression="STORE",A="string");var I=null;I=T instanceof d||T instanceof c?T:g.isNode&&g.isStream(T)?new m(E,T):a.prepareContent(E,T,L.binary,L.optimizedBinaryString,L.base64);var F=new f(E,I,L);this.files[E]=F}var s=n("./utf8"),a=n("./utils"),c=n("./stream/GenericWorker"),l=n("./stream/StreamHelper"),u=n("./defaults"),d=n("./compressedObject"),f=n("./zipObject"),p=n("./generate"),g=n("./nodejsUtils"),m=n("./nodejs/NodejsStreamInputAdapter"),y=function(E){E.slice(-1)==="/"&&(E=E.substring(0,E.length-1));var T=E.lastIndexOf("/");return 0<T?E.substring(0,T):""},v=function(E){return E.slice(-1)!=="/"&&(E+="/"),E},w=function(E,T){return T=T!==void 0?T:u.createFolders,E=v(E),this.files[E]||o.call(this,E,null,{dir:!0,createFolders:T}),this.files[E]};function S(E){return Object.prototype.toString.call(E)==="[object RegExp]"}var C={load:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},forEach:function(E){var T,x,O;for(T in this.files)O=this.files[T],(x=T.slice(this.root.length,T.length))&&T.slice(0,this.root.length)===this.root&&E(x,O)},filter:function(E){var T=[];return this.forEach(function(x,O){E(x,O)&&T.push(O)}),T},file:function(E,T,x){if(arguments.length!==1)return E=this.root+E,o.call(this,E,T,x),this;if(S(E)){var O=E;return this.filter(function(L,U){return!U.dir&&O.test(L)})}var A=this.files[this.root+E];return A&&!A.dir?A:null},folder:function(E){if(!E)return this;if(S(E))return this.filter(function(A,L){return L.dir&&E.test(A)});var T=this.root+E,x=w.call(this,T),O=this.clone();return O.root=x.name,O},remove:function(E){E=this.root+E;var T=this.files[E];if(T||(E.slice(-1)!=="/"&&(E+="/"),T=this.files[E]),T&&!T.dir)delete this.files[E];else for(var x=this.filter(function(A,L){return L.name.slice(0,E.length)===E}),O=0;O<x.length;O++)delete this.files[x[O].name];return this},generate:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},generateInternalStream:function(E){var T,x={};try{if((x=a.extend(E||{},{streamFiles:!1,compression:"STORE",compressionOptions:null,type:"",platform:"DOS",comment:null,mimeType:"application/zip",encodeFileName:s.utf8encode})).type=x.type.toLowerCase(),x.compression=x.compression.toUpperCase(),x.type==="binarystring"&&(x.type="string"),!x.type)throw new Error("No output type specified.");a.checkSupport(x.type),x.platform!=="darwin"&&x.platform!=="freebsd"&&x.platform!=="linux"&&x.platform!=="sunos"||(x.platform="UNIX"),x.platform==="win32"&&(x.platform="DOS");var O=x.comment||this.comment||"";T=p.generateWorker(this,x,O)}catch(A){(T=new c("error")).error(A)}return new l(T,x.type||"string",x.mimeType)},generateAsync:function(E,T){return this.generateInternalStream(E).accumulate(T)},generateNodeStream:function(E,T){return(E=E||{}).type||(E.type="nodebuffer"),this.generateInternalStream(E).toNodejsStream(T)}};r.exports=C},{"./compressedObject":2,"./defaults":5,"./generate":9,"./nodejs/NodejsStreamInputAdapter":12,"./nodejsUtils":14,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31,"./utils":32,"./zipObject":35}],16:[function(n,r,i){r.exports=n("stream")},{stream:void 0}],17:[function(n,r,i){var o=n("./DataReader");function s(a){o.call(this,a);for(var c=0;c<this.data.length;c++)a[c]=255&a[c]}n("../utils").inherits(s,o),s.prototype.byteAt=function(a){return this.data[this.zero+a]},s.prototype.lastIndexOfSignature=function(a){for(var c=a.charCodeAt(0),l=a.charCodeAt(1),u=a.charCodeAt(2),d=a.charCodeAt(3),f=this.length-4;0<=f;--f)if(this.data[f]===c&&this.data[f+1]===l&&this.data[f+2]===u&&this.data[f+3]===d)return f-this.zero;return-1},s.prototype.readAndCheckSignature=function(a){var c=a.charCodeAt(0),l=a.charCodeAt(1),u=a.charCodeAt(2),d=a.charCodeAt(3),f=this.readData(4);return c===f[0]&&l===f[1]&&u===f[2]&&d===f[3]},s.prototype.readData=function(a){if(this.checkOffset(a),a===0)return[];var c=this.data.slice(this.zero+this.index,this.zero+this.index+a);return this.index+=a,c},r.exports=s},{"../utils":32,"./DataReader":18}],18:[function(n,r,i){var o=n("../utils");function s(a){this.data=a,this.length=a.length,this.index=0,this.zero=0}s.prototype={checkOffset:function(a){this.checkIndex(this.index+a)},checkIndex:function(a){if(this.length<this.zero+a||a<0)throw new Error("End of data reached (data length = "+this.length+", asked index = "+a+"). Corrupted zip ?")},setIndex:function(a){this.checkIndex(a),this.index=a},skip:function(a){this.setIndex(this.index+a)},byteAt:function(){},readInt:function(a){var c,l=0;for(this.checkOffset(a),c=this.index+a-1;c>=this.index;c--)l=(l<<8)+this.byteAt(c);return this.index+=a,l},readString:function(a){return o.transformTo("string",this.readData(a))},readData:function(){},lastIndexOfSignature:function(){},readAndCheckSignature:function(){},readDate:function(){var a=this.readInt(4);return new Date(Date.UTC(1980+(a>>25&127),(a>>21&15)-1,a>>16&31,a>>11&31,a>>5&63,(31&a)<<1))}},r.exports=s},{"../utils":32}],19:[function(n,r,i){var o=n("./Uint8ArrayReader");function s(a){o.call(this,a)}n("../utils").inherits(s,o),s.prototype.readData=function(a){this.checkOffset(a);var c=this.data.slice(this.zero+this.index,this.zero+this.index+a);return this.index+=a,c},r.exports=s},{"../utils":32,"./Uint8ArrayReader":21}],20:[function(n,r,i){var o=n("./DataReader");function s(a){o.call(this,a)}n("../utils").inherits(s,o),s.prototype.byteAt=function(a){return this.data.charCodeAt(this.zero+a)},s.prototype.lastIndexOfSignature=function(a){return this.data.lastIndexOf(a)-this.zero},s.prototype.readAndCheckSignature=function(a){return a===this.readData(4)},s.prototype.readData=function(a){this.checkOffset(a);var c=this.data.slice(this.zero+this.index,this.zero+this.index+a);return this.index+=a,c},r.exports=s},{"../utils":32,"./DataReader":18}],21:[function(n,r,i){var o=n("./ArrayReader");function s(a){o.call(this,a)}n("../utils").inherits(s,o),s.prototype.readData=function(a){if(this.checkOffset(a),a===0)return new Uint8Array(0);var c=this.data.subarray(this.zero+this.index,this.zero+this.index+a);return this.index+=a,c},r.exports=s},{"../utils":32,"./ArrayReader":17}],22:[function(n,r,i){var o=n("../utils"),s=n("../support"),a=n("./ArrayReader"),c=n("./StringReader"),l=n("./NodeBufferReader"),u=n("./Uint8ArrayReader");r.exports=function(d){var f=o.getTypeOf(d);return o.checkSupport(f),f!=="string"||s.uint8array?f==="nodebuffer"?new l(d):s.uint8array?new u(o.transformTo("uint8array",d)):new a(o.transformTo("array",d)):new c(d)}},{"../support":30,"../utils":32,"./ArrayReader":17,"./NodeBufferReader":19,"./StringReader":20,"./Uint8ArrayReader":21}],23:[function(n,r,i){i.LOCAL_FILE_HEADER="PK��",i.CENTRAL_FILE_HEADER="PK��",i.CENTRAL_DIRECTORY_END="PK��",i.ZIP64_CENTRAL_DIRECTORY_LOCATOR="PK�\x07",i.ZIP64_CENTRAL_DIRECTORY_END="PK��",i.DATA_DESCRIPTOR="PK\x07\b"},{}],24:[function(n,r,i){var o=n("./GenericWorker"),s=n("../utils");function a(c){o.call(this,"ConvertWorker to "+c),this.destType=c}s.inherits(a,o),a.prototype.processChunk=function(c){this.push({data:s.transformTo(this.destType,c.data),meta:c.meta})},r.exports=a},{"../utils":32,"./GenericWorker":28}],25:[function(n,r,i){var o=n("./GenericWorker"),s=n("../crc32");function a(){o.call(this,"Crc32Probe"),this.withStreamInfo("crc32",0)}n("../utils").inherits(a,o),a.prototype.processChunk=function(c){this.streamInfo.crc32=s(c.data,this.streamInfo.crc32||0),this.push(c)},r.exports=a},{"../crc32":4,"../utils":32,"./GenericWorker":28}],26:[function(n,r,i){var o=n("../utils"),s=n("./GenericWorker");function a(c){s.call(this,"DataLengthProbe for "+c),this.propName=c,this.withStreamInfo(c,0)}o.inherits(a,s),a.prototype.processChunk=function(c){if(c){var l=this.streamInfo[this.propName]||0;this.streamInfo[this.propName]=l+c.data.length}s.prototype.processChunk.call(this,c)},r.exports=a},{"../utils":32,"./GenericWorker":28}],27:[function(n,r,i){var o=n("../utils"),s=n("./GenericWorker");function a(c){s.call(this,"DataWorker");var l=this;this.dataIsReady=!1,this.index=0,this.max=0,this.data=null,this.type="",this._tickScheduled=!1,c.then(function(u){l.dataIsReady=!0,l.data=u,l.max=u&&u.length||0,l.type=o.getTypeOf(u),l.isPaused||l._tickAndRepeat()},function(u){l.error(u)})}o.inherits(a,s),a.prototype.cleanUp=function(){s.prototype.cleanUp.call(this),this.data=null},a.prototype.resume=function(){return!!s.prototype.resume.call(this)&&(!this._tickScheduled&&this.dataIsReady&&(this._tickScheduled=!0,o.delay(this._tickAndRepeat,[],this)),!0)},a.prototype._tickAndRepeat=function(){this._tickScheduled=!1,this.isPaused||this.isFinished||(this._tick(),this.isFinished||(o.delay(this._tickAndRepeat,[],this),this._tickScheduled=!0))},a.prototype._tick=function(){if(this.isPaused||this.isFinished)return!1;var c=null,l=Math.min(this.max,this.index+16384);if(this.index>=this.max)return this.end();switch(this.type){case"string":c=this.data.substring(this.index,l);break;case"uint8array":c=this.data.subarray(this.index,l);break;case"array":case"nodebuffer":c=this.data.slice(this.index,l)}return this.index=l,this.push({data:c,meta:{percent:this.max?this.index/this.max*100:0}})},r.exports=a},{"../utils":32,"./GenericWorker":28}],28:[function(n,r,i){function o(s){this.name=s||"default",this.streamInfo={},this.generatedError=null,this.extraStreamInfo={},this.isPaused=!0,this.isFinished=!1,this.isLocked=!1,this._listeners={data:[],end:[],error:[]},this.previous=null}o.prototype={push:function(s){this.emit("data",s)},end:function(){if(this.isFinished)return!1;this.flush();try{this.emit("end"),this.cleanUp(),this.isFinished=!0}catch(s){this.emit("error",s)}return!0},error:function(s){return!this.isFinished&&(this.isPaused?this.generatedError=s:(this.isFinished=!0,this.emit("error",s),this.previous&&this.previous.error(s),this.cleanUp()),!0)},on:function(s,a){return this._listeners[s].push(a),this},cleanUp:function(){this.streamInfo=this.generatedError=this.extraStreamInfo=null,this._listeners=[]},emit:function(s,a){if(this._listeners[s])for(var c=0;c<this._listeners[s].length;c++)this._listeners[s][c].call(this,a)},pipe:function(s){return s.registerPrevious(this)},registerPrevious:function(s){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.streamInfo=s.streamInfo,this.mergeStreamInfo(),this.previous=s;var a=this;return s.on("data",function(c){a.processChunk(c)}),s.on("end",function(){a.end()}),s.on("error",function(c){a.error(c)}),this},pause:function(){return!this.isPaused&&!this.isFinished&&(this.isPaused=!0,this.previous&&this.previous.pause(),!0)},resume:function(){if(!this.isPaused||this.isFinished)return!1;var s=this.isPaused=!1;return this.generatedError&&(this.error(this.generatedError),s=!0),this.previous&&this.previous.resume(),!s},flush:function(){},processChunk:function(s){this.push(s)},withStreamInfo:function(s,a){return this.extraStreamInfo[s]=a,this.mergeStreamInfo(),this},mergeStreamInfo:function(){for(var s in this.extraStreamInfo)Object.prototype.hasOwnProperty.call(this.extraStreamInfo,s)&&(this.streamInfo[s]=this.extraStreamInfo[s])},lock:function(){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.isLocked=!0,this.previous&&this.previous.lock()},toString:function(){var s="Worker "+this.name;return this.previous?this.previous+" -> "+s:s}},r.exports=o},{}],29:[function(n,r,i){var o=n("../utils"),s=n("./ConvertWorker"),a=n("./GenericWorker"),c=n("../base64"),l=n("../support"),u=n("../external"),d=null;if(l.nodestream)try{d=n("../nodejs/NodejsStreamOutputAdapter")}catch{}function f(g,m){return new u.Promise(function(y,v){var w=[],S=g._internalType,C=g._outputType,E=g._mimeType;g.on("data",function(T,x){w.push(T),m&&m(x)}).on("error",function(T){w=[],v(T)}).on("end",function(){try{var T=(function(x,O,A){switch(x){case"blob":return o.newBlob(o.transformTo("arraybuffer",O),A);case"base64":return c.encode(O);default:return o.transformTo(x,O)}})(C,(function(x,O){var A,L=0,U=null,I=0;for(A=0;A<O.length;A++)I+=O[A].length;switch(x){case"string":return O.join("");case"array":return Array.prototype.concat.apply([],O);case"uint8array":for(U=new Uint8Array(I),A=0;A<O.length;A++)U.set(O[A],L),L+=O[A].length;return U;case"nodebuffer":return Buffer.concat(O);default:throw new Error("concat : unsupported type '"+x+"'")}})(S,w),E);y(T)}catch(x){v(x)}w=[]}).resume()})}function p(g,m,y){var v=m;switch(m){case"blob":case"arraybuffer":v="uint8array";break;case"base64":v="string"}try{this._internalType=v,this._outputType=m,this._mimeType=y,o.checkSupport(v),this._worker=g.pipe(new s(v)),g.lock()}catch(w){this._worker=new a("error"),this._worker.error(w)}}p.prototype={accumulate:function(g){return f(this,g)},on:function(g,m){var y=this;return g==="data"?this._worker.on(g,function(v){m.call(y,v.data,v.meta)}):this._worker.on(g,function(){o.delay(m,arguments,y)}),this},resume:function(){return o.delay(this._worker.resume,[],this._worker),this},pause:function(){return this._worker.pause(),this},toNodejsStream:function(g){if(o.checkSupport("nodestream"),this._outputType!=="nodebuffer")throw new Error(this._outputType+" is not supported by this method");return new d(this,{objectMode:this._outputType!=="nodebuffer"},g)}},r.exports=p},{"../base64":1,"../external":6,"../nodejs/NodejsStreamOutputAdapter":13,"../support":30,"../utils":32,"./ConvertWorker":24,"./GenericWorker":28}],30:[function(n,r,i){if(i.base64=!0,i.array=!0,i.string=!0,i.arraybuffer=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u",i.nodebuffer=typeof Buffer<"u",i.uint8array=typeof Uint8Array<"u",typeof ArrayBuffer>"u")i.blob=!1;else{var o=new ArrayBuffer(0);try{i.blob=new Blob([o],{type:"application/zip"}).size===0}catch{try{var s=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);s.append(o),i.blob=s.getBlob("application/zip").size===0}catch{i.blob=!1}}}try{i.nodestream=!!n("readable-stream").Readable}catch{i.nodestream=!1}},{"readable-stream":16}],31:[function(n,r,i){for(var o=n("./utils"),s=n("./support"),a=n("./nodejsUtils"),c=n("./stream/GenericWorker"),l=new Array(256),u=0;u<256;u++)l[u]=252<=u?6:248<=u?5:240<=u?4:224<=u?3:192<=u?2:1;l[254]=l[254]=1;function d(){c.call(this,"utf-8 decode"),this.leftOver=null}function f(){c.call(this,"utf-8 encode")}i.utf8encode=function(p){return s.nodebuffer?a.newBufferFrom(p,"utf-8"):(function(g){var m,y,v,w,S,C=g.length,E=0;for(w=0;w<C;w++)(64512&(y=g.charCodeAt(w)))==55296&&w+1<C&&(64512&(v=g.charCodeAt(w+1)))==56320&&(y=65536+(y-55296<<10)+(v-56320),w++),E+=y<128?1:y<2048?2:y<65536?3:4;for(m=s.uint8array?new Uint8Array(E):new Array(E),w=S=0;S<E;w++)(64512&(y=g.charCodeAt(w)))==55296&&w+1<C&&(64512&(v=g.charCodeAt(w+1)))==56320&&(y=65536+(y-55296<<10)+(v-56320),w++),y<128?m[S++]=y:(y<2048?m[S++]=192|y>>>6:(y<65536?m[S++]=224|y>>>12:(m[S++]=240|y>>>18,m[S++]=128|y>>>12&63),m[S++]=128|y>>>6&63),m[S++]=128|63&y);return m})(p)},i.utf8decode=function(p){return s.nodebuffer?o.transformTo("nodebuffer",p).toString("utf-8"):(function(g){var m,y,v,w,S=g.length,C=new Array(2*S);for(m=y=0;m<S;)if((v=g[m++])<128)C[y++]=v;else if(4<(w=l[v]))C[y++]=65533,m+=w-1;else{for(v&=w===2?31:w===3?15:7;1<w&&m<S;)v=v<<6|63&g[m++],w--;1<w?C[y++]=65533:v<65536?C[y++]=v:(v-=65536,C[y++]=55296|v>>10&1023,C[y++]=56320|1023&v)}return C.length!==y&&(C.subarray?C=C.subarray(0,y):C.length=y),o.applyFromCharCode(C)})(p=o.transformTo(s.uint8array?"uint8array":"array",p))},o.inherits(d,c),d.prototype.processChunk=function(p){var g=o.transformTo(s.uint8array?"uint8array":"array",p.data);if(this.leftOver&&this.leftOver.length){if(s.uint8array){var m=g;(g=new Uint8Array(m.length+this.leftOver.length)).set(this.leftOver,0),g.set(m,this.leftOver.length)}else g=this.leftOver.concat(g);this.leftOver=null}var y=(function(w,S){var C;for((S=S||w.length)>w.length&&(S=w.length),C=S-1;0<=C&&(192&w[C])==128;)C--;return C<0||C===0?S:C+l[w[C]]>S?C:S})(g),v=g;y!==g.length&&(s.uint8array?(v=g.subarray(0,y),this.leftOver=g.subarray(y,g.length)):(v=g.slice(0,y),this.leftOver=g.slice(y,g.length))),this.push({data:i.utf8decode(v),meta:p.meta})},d.prototype.flush=function(){this.leftOver&&this.leftOver.length&&(this.push({data:i.utf8decode(this.leftOver),meta:{}}),this.leftOver=null)},i.Utf8DecodeWorker=d,o.inherits(f,c),f.prototype.processChunk=function(p){this.push({data:i.utf8encode(p.data),meta:p.meta})},i.Utf8EncodeWorker=f},{"./nodejsUtils":14,"./stream/GenericWorker":28,"./support":30,"./utils":32}],32:[function(n,r,i){var o=n("./support"),s=n("./base64"),a=n("./nodejsUtils"),c=n("./external");function l(m){return m}function u(m,y){for(var v=0;v<m.length;++v)y[v]=255&m.charCodeAt(v);return y}n("setimmediate"),i.newBlob=function(m,y){i.checkSupport("blob");try{return new Blob([m],{type:y})}catch{try{var v=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);return v.append(m),v.getBlob(y)}catch{throw new Error("Bug : can't construct the Blob.")}}};var d={stringifyByChunk:function(m,y,v){var w=[],S=0,C=m.length;if(C<=v)return String.fromCharCode.apply(null,m);for(;S<C;)y==="array"||y==="nodebuffer"?w.push(String.fromCharCode.apply(null,m.slice(S,Math.min(S+v,C)))):w.push(String.fromCharCode.apply(null,m.subarray(S,Math.min(S+v,C)))),S+=v;return w.join("")},stringifyByChar:function(m){for(var y="",v=0;v<m.length;v++)y+=String.fromCharCode(m[v]);return y},applyCanBeUsed:{uint8array:(function(){try{return o.uint8array&&String.fromCharCode.apply(null,new Uint8Array(1)).length===1}catch{return!1}})(),nodebuffer:(function(){try{return o.nodebuffer&&String.fromCharCode.apply(null,a.allocBuffer(1)).length===1}catch{return!1}})()}};function f(m){var y=65536,v=i.getTypeOf(m),w=!0;if(v==="uint8array"?w=d.applyCanBeUsed.uint8array:v==="nodebuffer"&&(w=d.applyCanBeUsed.nodebuffer),w)for(;1<y;)try{return d.stringifyByChunk(m,v,y)}catch{y=Math.floor(y/2)}return d.stringifyByChar(m)}function p(m,y){for(var v=0;v<m.length;v++)y[v]=m[v];return y}i.applyFromCharCode=f;var g={};g.string={string:l,array:function(m){return u(m,new Array(m.length))},arraybuffer:function(m){return g.string.uint8array(m).buffer},uint8array:function(m){return u(m,new Uint8Array(m.length))},nodebuffer:function(m){return u(m,a.allocBuffer(m.length))}},g.array={string:f,array:l,arraybuffer:function(m){return new Uint8Array(m).buffer},uint8array:function(m){return new Uint8Array(m)},nodebuffer:function(m){return a.newBufferFrom(m)}},g.arraybuffer={string:function(m){return f(new Uint8Array(m))},array:function(m){return p(new Uint8Array(m),new Array(m.byteLength))},arraybuffer:l,uint8array:function(m){return new Uint8Array(m)},nodebuffer:function(m){return a.newBufferFrom(new Uint8Array(m))}},g.uint8array={string:f,array:function(m){return p(m,new Array(m.length))},arraybuffer:function(m){return m.buffer},uint8array:l,nodebuffer:function(m){return a.newBufferFrom(m)}},g.nodebuffer={string:f,array:function(m){return p(m,new Array(m.length))},arraybuffer:function(m){return g.nodebuffer.uint8array(m).buffer},uint8array:function(m){return p(m,new Uint8Array(m.length))},nodebuffer:l},i.transformTo=function(m,y){if(y=y||"",!m)return y;i.checkSupport(m);var v=i.getTypeOf(y);return g[v][m](y)},i.resolve=function(m){for(var y=m.split("/"),v=[],w=0;w<y.length;w++){var S=y[w];S==="."||S===""&&w!==0&&w!==y.length-1||(S===".."?v.pop():v.push(S))}return v.join("/")},i.getTypeOf=function(m){return typeof m=="string"?"string":Object.prototype.toString.call(m)==="[object Array]"?"array":o.nodebuffer&&a.isBuffer(m)?"
1641nodebuffer":o.uint8array&&m instanceof Uint8Array?"uint8array":o.arraybuffer&&m instanceof ArrayBuffer?"arraybuffer":void 0},i.checkSupport=function(m){if(!o[m.toLowerCase()])throw new Error(m+" is not supported by this platform")},i.MAX_VALUE_16BITS=65535,i.MAX_VALUE_32BITS=-1,i.pretty=function(m){var y,v,w="";for(v=0;v<(m||"").length;v++)w+="\\x"+((y=m.charCodeAt(v))<16?"0":"")+y.toString(16).toUpperCase();return w},i.delay=function(m,y,v){setImmediate(function(){m.apply(v||null,y||[])})},i.inherits=function(m,y){function v(){}v.prototype=y.prototype,m.prototype=new v},i.extend=function(){var m,y,v={};for(m=0;m<arguments.length;m++)for(y in arguments[m])Object.prototype.hasOwnProperty.call(arguments[m],y)&&v[y]===void 0&&(v[y]=arguments[m][y]);return v},i.prepareContent=function(m,y,v,w,S){return c.Promise.resolve(y).then(function(C){return o.blob&&(C instanceof Blob||["[object File]","[object Blob]"].indexOf(Object.prototype.toString.call(C))!==-1)&&typeof FileReader<"u"?new c.Promise(function(E,T){var x=new FileReader;x.onload=function(O){E(O.target.result)},x.onerror=function(O){T(O.target.error)},x.readAsArrayBuffer(C)}):C}).then(function(C){var E=i.getTypeOf(C);return E?(E==="arraybuffer"?C=i.transformTo("uint8array",C):E==="string"&&(S?C=s.decode(C):v&&w!==!0&&(C=(function(T){return u(T,o.uint8array?new Uint8Array(T.length):new Array(T.length))})(C))),C):c.Promise.reject(new Error("Can't read the data of '"+m+"'. Is it in a supported JavaScript type (String, Blob, ArrayBuffer, etc) ?"))})}},{"./base64":1,"./external":6,"./nodejsUtils":14,"./support":30,setimmediate:54}],33:[function(n,r,i){var o=n("./reader/readerFor"),s=n("./utils"),a=n("./signature"),c=n("./zipEntry"),l=n("./support");function u(d){this.files=[],this.loadOptions=d}u.prototype={checkSignature:function(d){if(!this.reader.readAndCheckSignature(d)){this.reader.index-=4;var f=this.reader.readString(4);throw new Error("Corrupted zip or bug: unexpected signature ("+s.pretty(f)+", expected "+s.pretty(d)+")")}},isSignature:function(d,f){var p=this.reader.index;this.reader.setIndex(d);var g=this.reader.readString(4)===f;return this.reader.setIndex(p),g},readBlockEndOfCentral:function(){this.diskNumber=this.reader.readInt(2),this.diskWithCentralDirStart=this.reader.readInt(2),this.centralDirRecordsOnThisDisk=this.reader.readInt(2),this.centralDirRecords=this.reader.readInt(2),this.centralDirSize=this.reader.readInt(4),this.centralDirOffset=this.reader.readInt(4),this.zipCommentLength=this.reader.readInt(2);var d=this.reader.readData(this.zipCommentLength),f=l.uint8array?"uint8array":"array",p=s.transformTo(f,d);this.zipComment=this.loadOptions.decodeFileName(p)},readBlockZip64EndOfCentral:function(){this.zip64EndOfCentralSize=this.reader.readInt(8),this.reader.skip(4),this.diskNumber=this.reader.readInt(4),this.diskWithCentralDirStart=this.reader.readInt(4),this.centralDirRecordsOnThisDisk=this.reader.readInt(8),this.centralDirRecords=this.reader.readInt(8),this.centralDirSize=this.reader.readInt(8),this.centralDirOffset=this.reader.readInt(8),this.zip64ExtensibleData={};for(var d,f,p,g=this.zip64EndOfCentralSize-44;0<g;)d=this.reader.readInt(2),f=this.reader.readInt(4),p=this.reader.readData(f),this.zip64ExtensibleData[d]={id:d,length:f,value:p}},readBlockZip64EndOfCentralLocator:function(){if(this.diskWithZip64CentralDirStart=this.reader.readInt(4),this.relativeOffsetEndOfZip64CentralDir=this.reader.readInt(8),this.disksCount=this.reader.readInt(4),1<this.disksCount)throw new Error("Multi-volumes zip are not supported")},readLocalFiles:function(){var d,f;for(d=0;d<this.files.length;d++)f=this.files[d],this.reader.setIndex(f.localHeaderOffset),this.checkSignature(a.LOCAL_FILE_HEADER),f.readLocalPart(this.reader),f.handleUTF8(),f.processAttributes()},readCentralDir:function(){var d;for(this.reader.setIndex(this.centralDirOffset);this.reader.readAndCheckSignature(a.CENTRAL_FILE_HEADER);)(d=new c({zip64:this.zip64},this.loadOptions)).readCentralPart(this.reader),this.files.push(d);if(this.centralDirRecords!==this.files.length&&this.centralDirRecords!==0&&this.files.length===0)throw new Error("Corrupted zip or bug: expected "+this.centralDirRecords+" records in central dir, got "+this.files.length)},readEndOfCentral:function(){var d=this.reader.lastIndexOfSignature(a.CENTRAL_DIRECTORY_END);if(d<0)throw this.isSignature(0,a.LOCAL_FILE_HEADER)?new Error("Corrupted zip: can't find end of central directory"):new Error("Can't find end of central directory : is this a zip f
1641ile ? If it is, see https://stuk.github.io/jszip/documentation/howto/read_zip.html");this.reader.setIndex(d);var f=d;if(this.checkSignature(a.CENTRAL_DIRECTORY_END),this.readBlockEndOfCentral(),this.diskNumber===s.MAX_VALUE_16BITS||this.diskWithCentralDirStart===s.MAX_VALUE_16BITS||this.centralDirRecordsOnThisDisk===s.MAX_VALUE_16BITS||this.centralDirRecords===s.MAX_VALUE_16BITS||this.centralDirSize===s.MAX_VALUE_32BITS||this.centralDirOffset===s.MAX_VALUE_32BITS){if(this.zip64=!0,(d=this.reader.lastIndexOfSignature(a.ZIP64_CENTRAL_DIRECTORY_LOCATOR))<0)throw new Error("Corrupted zip: can't find the ZIP64 end of central directory locator");if(this.reader.setIndex(d),this.checkSignature(a.ZIP64_CENTRAL_DIRECTORY_LOCATOR),this.readBlockZip64EndOfCentralLocator(),!this.isSignature(this.relativeOffsetEndOfZip64CentralDir,a.ZIP64_CENTRAL_DIRECTORY_END)&&(this.relativeOffsetEndOfZip64CentralDir=this.reader.lastIndexOfSignature(a.ZIP64_CENTRAL_DIRECTORY_END),this.relativeOffsetEndOfZip64CentralDir<0))throw new Error("Corrupted zip: can't find the ZIP64 end of central directory");this.reader.setIndex(this.relativeOffsetEndOfZip64CentralDir),this.checkSignature(a.ZIP64_CENTRAL_DIRECTORY_END),this.readBlockZip64EndOfCentral()}var p=this.centralDirOffset+this.centralDirSize;this.zip64&&(p+=20,p+=12+this.zip64EndOfCentralSize);var g=f-p;if(0<g)this.isSignature(f,a.CENTRAL_FILE_HEADER)||(this.reader.zero=g);else if(g<0)throw new Error("Corrupted zip: missing "+Math.abs(g)+" bytes.")},prepareReader:function(d){this.reader=o(d)},load:function(d){this.prepareReader(d),this.readEndOfCentral(),this.readCentralDir(),this.readLocalFiles()}},r.exports=u},{"./reader/readerFor":22,"./signature":23,"./support":30,"./utils":32,"./zipEntry":34}],34:[function(n,r,i){var o=n("./reader/readerFor"),s=n("./utils"),a=n("./compressedObject"),c=n("./crc32"),l=n("./utf8"),u=n("./compressions"),d=n("./support");function f(p,g){this.options=p,this.loadOptions=g}f.prototype={isEncrypted:function(){return(1&this.bitFlag)==1},useUTF8:function(){return(2048&this.bitFlag)==2048},readLocalPart:function(p){var g,m;if(p.skip(22),this.fileNameLength=p.readInt(2),m=p.readInt(2),this.fileName=p.readData(this.fileNameLength),p.skip(m),this.compressedSize===-1||this.uncompressedSize===-1)throw new Error("Bug or corrupted zip : didn't get enough information from the central directory (compressedSize === -1 || uncompressedSize === -1)");if((g=(function(y){for(var v in u)if(Object.prototype.hasOwnProperty.call(u,v)&&u[v].magic===y)return u[v];return null})(this.compressionMethod))===null)throw new Error("Corrupted zip : compression "+s.pretty(this.compressionMethod)+" unknown (inner file : "+s.transformTo("string",this.fileName)+")");this.decompressed=new a(this.compressedSize,this.uncompressedSize,this.crc32,g,p.readData(this.compressedSize))},readCentralPart:function(p){this.versionMadeBy=p.readInt(2),p.skip(2),this.bitFlag=p.readInt(2),this.compressionMethod=p.readString(2),this.date=p.readDate(),this.crc32=p.readInt(4),this.compressedSize=p.readInt(4),this.uncompressedSize=p.readInt(4);var g=p.readInt(2);if(this.extraFieldsLength=p.readInt(2),this.fileCommentLength=p.readInt(2),this.diskNumberStart=p.readInt(2),this.internalFileAttributes=p.readInt(2),this.externalFileAttributes=p.readInt(4),this.localHeaderOffset=p.readInt(4),this.isEncrypted())throw new Error("Encrypted zip are not supported");p.skip(g),this.readExtraFields(p),this.parseZIP64ExtraField(p),this.fileComment=p.readData(this.fileCommentLength)},processAttributes:function(){this.unixPermissions=null,this.dosPermissions=null;var p=this.versionMadeBy>>8;this.dir=!!(16&this.externalFileAttributes),p==0&&(this.dosPermissions=63&this.externalFileAttributes),p==3&&(this.unixPermissions=this.externalFileAttributes>>16&65535),this.dir||this.fileNameStr.slice(-1)!=="/"||(this.dir=!0)},parseZIP64ExtraField:function(){if(this.extraFields[1]){var p=o(this.extraFields[1].value);this.uncompressedSize===s.MAX_VALUE_32BITS&&(this.uncompressedSize=p.readInt(8)),this.compressedSize===s.MAX_VALUE_32BITS&&(this.compressedSize=p.readInt(8)),this.localHeaderOffset===s.MAX_VALUE_32BITS&&
vendor: 13,963 bytes, line 1641
1641(this.localHeaderOffset=p.readInt(8)),this.diskNumberStart===s.MAX_VALUE_32BITS&&(this.diskNumberStart=p.readInt(4))}},readExtraFields:function(p){var g,m,y,v=p.index+this.extraFieldsLength;for(this.extraFields||(this.extraFields={});p.index+4<v;)g=p.readInt(2),m=p.readInt(2),y=p.readData(m),this.extraFields[g]={id:g,length:m,value:y};p.setIndex(v)},handleUTF8:function(){var p=d.uint8array?"uint8array":"array";if(this.useUTF8())this.fileNameStr=l.utf8decode(this.fileName),this.fileCommentStr=l.utf8decode(this.fileComment);else{var g=this.findExtraFieldUnicodePath();if(g!==null)this.fileNameStr=g;else{var m=s.transformTo(p,this.fileName);this.fileNameStr=this.loadOptions.decodeFileName(m)}var y=this.findExtraFieldUnicodeComment();if(y!==null)this.fileCommentStr=y;else{var v=s.transformTo(p,this.fileComment);this.fileCommentStr=this.loadOptions.decodeFileName(v)}}},findExtraFieldUnicodePath:function(){var p=this.extraFields[28789];if(p){var g=o(p.value);return g.readInt(1)!==1||c(this.fileName)!==g.readInt(4)?null:l.utf8decode(g.readData(p.length-5))}return null},findExtraFieldUnicodeComment:function(){var p=this.extraFields[25461];if(p){var g=o(p.value);return g.readInt(1)!==1||c(this.fileComment)!==g.readInt(4)?null:l.utf8decode(g.readData(p.length-5))}return null}},r.exports=f},{"./compressedObject":2,"./compressions":3,"./crc32":4,"./reader/readerFor":22,"./support":30,"./utf8":31,"./utils":32}],35:[function(n,r,i){function o(g,m,y){this.name=g,this.dir=y.dir,this.date=y.date,this.comment=y.comment,this.unixPermissions=y.unixPermissions,this.dosPermissions=y.dosPermissions,this._data=m,this._dataBinary=y.binary,this.options={compression:y.compression,compressionOptions:y.compressionOptions}}var s=n("./stream/StreamHelper"),a=n("./stream/DataWorker"),c=n("./utf8"),l=n("./compressedObject"),u=n("./stream/GenericWorker");o.prototype={internalStream:function(g){var m=null,y="string";try{if(!g)throw new Error("No output type specified.");var v=(y=g.toLowerCase())==="string"||y==="text";y!=="binarystring"&&y!=="text"||(y="string"),m=this._decompressWorker();var w=!this._dataBinary;w&&!v&&(m=m.pipe(new c.Utf8EncodeWorker)),!w&&v&&(m=m.pipe(new c.Utf8DecodeWorker))}catch(S){(m=new u("error")).error(S)}return new s(m,y,"")},async:function(g,m){return this.internalStream(g).accumulate(m)},nodeStream:function(g,m){return this.internalStream(g||"nodebuffer").toNodejsStream(m)},_compressWorker:function(g,m){if(this._data instanceof l&&this._data.compression.magic===g.magic)return this._data.getCompressedWorker();var y=this._decompressWorker();return this._dataBinary||(y=y.pipe(new c.Utf8EncodeWorker)),l.createWorkerFrom(y,g,m)},_decompressWorker:function(){return this._data instanceof l?this._data.getContentWorker():this._data instanceof u?this._data:new a(this._data)}};for(var d=["asText","asBinary","asNodeBuffer","asUint8Array","asArrayBuffer"],f=function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},p=0;p<d.length;p++)o.prototype[d[p]]=f;r.exports=o},{"./compressedObject":2,"./stream/DataWorker":27,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31}],36:[function(n,r,i){(function(o){var s,a,c=o.MutationObserver||o.WebKitMutationObserver;if(c){var l=0,u=new c(g),d=o.document.createTextNode("");u.observe(d,{characterData:!0}),s=function(){d.data=l=++l%2}}else if(o.setImmediate||o.MessageChannel===void 0)s="document"in o&&"onreadystatechange"in o.document.createElement("script")?function(){var m=o.document.createElement("script");m.onreadystatechange=function(){g(),m.onreadystatechange=null,m.parentNode.removeChild(m),m=null},o.document.documentElement.appendChild(m)}:function(){setTimeout(g,0)};else{var f=new o.MessageChannel;f.port1.onmessage=g,s=function(){f.port2.postMessage(0)}}var p=[];function g(){var m,y;a=!0;for(var v=p.length;v;){for(y=p,p=[],m=-1;++m<v;)y[m]();v=p.length}a=!1}r.exports=function(m){p.push(m)!==1||a||s()}}).call(this,typeof rd<"u"?rd:typeof self<"u"?self:typeof window<"u"?window:{})},{}],37:[function(n,r,i){var o=n("immediate");function s(){}var a={},c=["REJECTED"],l=["FULFILLED"],u=["PENDING"];function d(v){if(typeof v!="function")throw new TypeError("resolver must be a function");this.state=u,this.queue=[],this.outcome=void 0,v!==s&&m(this,v)}function f(v,w,S){this.promise=v,typeof w=="function"&&(this.onFulfilled=w,this.callFulfilled=this.otherCallFulfilled),typeof S=="function"&&(this.onRejected=S,this.callRejected=this.otherCallRejected)}function p(v,w,S){o(function(){var C;try{C=w(S)}catch(E){return a.reject(v,E)}C===v?a.reject(v,new TypeError("Cannot resolve promise with itself")):a.resolve(v,C)})}function g(v){var w=v&&v.then;if(v&&(typeof v=="object"||typeof v=="function")&&typeof w=="function")return function(){w.apply(v,arguments)}}function m(v,w){var S=!1;function C(x){S||(S=!0,a.reject(v,x))}function E(x){S||(S=!0,a.resolve(v,x))}var T=y(function(){w(E,C)});T.status==="error"&&C(T.value)}function y(v,w){var S={};try{S.value=v(w),S.status="success"}catch(C){S.status="error",S.value=C}return S}(r.exports=d).prototype.finally=function(v){if(typeof v!="function")return this;var w=this.constructor;return this.then(function(S){return w.resolve(v()).then(function(){return S})},function(S){return w.resolve(v()).then(function(){throw S})})},d.prototype.catch=function(v){return this.then(null,v)},d.prototype.then=function(v,w){if(typeof v!="function"&&this.state===l||typeof w!="function"&&this.state===c)return this;var S=new this.constructor(s);return this.state!==u?p(S,this.state===l?v:w,this.outcome):this.queue.push(new f(S,v,w)),S},f.prototype.callFulfilled=function(v){a.resolve(this.promise,v)},f.prototype.otherCallFulfilled=function(v){p(this.promise,this.onFulfilled,v)},f.prototype.callRejected=function(v){a.reject(this.promise,v)},f.prototype.otherCallRejected=function(v){p(this.promise,this.onRejected,v)},a.resolve=function(v,w){var S=y(g,w);if(S.status==="error")return a.reject(v,S.value);var C=S.value;if(C)m(v,C);else{v.state=l,v.outcome=w;for(var E=-1,T=v.queue.length;++E<T;)v.queue[E].callFulfilled(w)}return v},a.reject=function(v,w){v.state=c,v.outcome=w;for(var S=-1,C=v.queue.length;++S<C;)v.queue[S].callRejected(w);return v},d.resolve=function(v){return v instanceof this?v:a.resolve(new this(s),v)},d.reject=function(v){var w=new this(s);return a.reject(w,v)},d.all=function(v){var w=this;if(Object.prototype.toString.call(v)!=="[object Array]")return this.reject(new TypeError("must be an array"));var S=v.length,C=!1;if(!S)return this.resolve([]);for(var E=new Array(S),T=0,x=-1,O=new this(s);++x<S;)A(v[x],x);return O;function A(L,U){w.resolve(L).then(function(I){E[U]=I,++T!==S||C||(C=!0,a.resolve(O,E))},function(I){C||(C=!0,a.reject(O,I))})}},d.race=function(v){var w=this;if(Object.prototype.toString.call(v)!=="[object Array]")return this.reject(new TypeError("must be an array"));var S=v.length,C=!1;if(!S)return this.resolve([]);for(var E=-1,T=new this(s);++E<S;)x=v[E],w.resolve(x).then(function(O){C||(C=!0,a.resolve(T,O))},function(O){C||(C=!0,a.reject(T,O))});var x;return T}},{immediate:36}],38:[function(n,r,i){var o={};(0,n("./lib/utils/common").assign)(o,n("./lib/deflate"),n("./lib/inflate"),n("./lib/zlib/constants")),r.exports=o},{"./lib/deflate":39,"./lib/inflate":40,"./lib/utils/common":41,"./lib/zlib/constants":44}],39:[function(n,r,i){var o=n("./zlib/deflate"),s=n("./utils/common"),a=n("./utils/strings"),c=n("./zlib/messages"),l=n("./zlib/zstream"),u=Object.prototype.toString,d=0,f=-1,p=0,g=8;function m(v){if(!(this instanceof m))return new m(v);this.options=s.assign({level:f,method:g,chunkSize:16384,windowBits:15,memLevel:8,strategy:p,to:""},v||{});var w=this.options;w.raw&&0<w.windowBits?w.windowBits=-w.windowBits:w.gzip&&0<w.windowBits&&w.windowBits<16&&(w.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new l,this.strm.avail_out=0;var S=o.deflateInit2(this.strm,w.level,w.method,w.windowBits,w.memLevel,w.strategy);if(S!==d)throw new Error(c[S]);if(w.header&&o.deflateSetHeader(this.strm,w.header),w.dictionary){var C;if(C=typeof w.dictionary=="string"?a.string2buf(w.dictionary):u.call(w.dictionary)==="[object ArrayBuffer]"?new Uint8Array(w.dictionary):w.dictionary,(S=o.deflateSetDictionary(this.strm,C))!==d)throw new Error(c[S]);this._dict_set=!0}}function y(v,w){var S=new m(w);if(S.push(v,!0),S.err)throw S.msg||c[S.err];return S.result}m.prototype.push=function(v,w){var S,C,E=this.strm,T=this.options.chunkSize;if(this.ended)return!1;C=w===~~w?w:w===!0?4:0,typeof v=="string"?E.input=a.string2buf(v):u.call(v)==="[object ArrayBuffer]"?E.input=new Uint8Array(v):E.input=v,E.next_in=0,E.avail_in=E.input.length;do{if(E.avail_out===0&&(E.output=new s.Buf8(T),E.next_out=0,E.avail_out=T),(S=o.deflate(E,C))!==1&&S!==d)return this.onEnd(S),!(this.ended=!0);E.avail_out!==0&&(E.avail_in!==0||C!==4&&C!==2)||(this.options.to==="string"?this.onData(a.buf2binstring(s.shrinkBuf(E.output,E.next_out))):this.onData(s.shrinkBuf(E.output,E.next_out)))}while((0<E.avail_in||E.avail_out===0)&&S!==1);return C===4?(S=o.deflateEnd(this.strm),this.onEnd(S),this.ended=!0,S===d):C!==2||(this.onEnd(d),!(E.avail_out=0))},m.prototype.onData=function(v){this.chunks.push(v)},m.prototype.onEnd=function(v){v===d&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=s.flattenChunks(this.chunks)),this.chunks=[],this.err=v,this.msg=this.strm.msg},i.Deflate=m,i.deflate=y,i.deflateRaw=function(v,w){return(w=w||{}).raw=!0,y(v,w)},i.gzip=function(v,w){return(w=w||{}).gzip=!0,y(v,w)}},{"./utils/common":41,"./utils/strings":42,"./zlib/deflate":46,"./zlib/messages":51,"./zlib/zstream":53}],40:[function(n,r,i){var o=n("./zlib/inflate"),s=n("./utils/common"),a=n("./utils/strings"),c=n("./zlib/constants"),l=n("./zlib/messages"),u=n("./zlib/zstream"),d=n("./zlib/gzheader"),f=Object.prototype.toString;function p(m){if(!(this instanceof p))return new p(m);this.options=s.assign({chunkSize:16384,windowBits:0,to:""},m||{});var y=this.options;y.raw&&0<=y.windowBits&&y.windowBits<16&&(y.windowBits=-y.windowBits,y.windowBits===0&&(y.windowBits=-15)),!(0<=y.windowBits&&y.windowBits<16)||m&&m.windowBits||(y.windowBits+=32),15<y.windowBits&&y.windowBits<48&&(15&y.windowBits)==0&&(y.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new u,this.strm.avail_out=0;var v=o.inflateInit2(this.strm,y.windowBits);if(v!==c.Z_OK)throw new Error(l[v]);this.header=new d,o.inflateGetHeader(this.strm,this.header)}function g(m,y){var v=new p(y);if(v.push(m,!0),v.err)throw v.msg||l[v.err];return v.result}p.prototype.push=function(m,y){var v,w,S,C,E,T,x=this.strm,O=this.options.chunkSize,A=this.options.dictionary,L=!1;if(this.ended)return!1;w=y===~~y?y:y===!0?c.Z_FINISH:c.Z_NO_FLUSH,typeof m=="string"?x.input=a.binstring2buf(m):f.call(m)==="[object ArrayBuffer]"?x.input=new Uint8Array(m):x.input=m,x.next_in=0,x.avail_in=x.input.length;do{if(x.avail_out===0&&(x.output=new s.Buf8(O),x.next_out=0,x.avail_out=O),(v=o.inflate(x,c.Z_NO_FLUSH))===c.Z_NEED_DICT&&A&&(T=typeof A=="string"?a.string2buf(A):f.call(A)==="[object ArrayBuffer]"?new Uint8Array(A):A,v=o.inflateSetDictionary(this.strm,T)),v===c.Z_BUF_ERROR&&L===!0&&(v=c.Z_OK,L=!1),v!==c.Z_STREAM_END&&v!==c.Z_OK)return this.onEnd(v),!(this.ended=!0);x.next_out&&(x.avail_out!==0&&v!==c.Z_STREAM_END&&(x.avail_in!==0||w!==c.Z_FINISH&&w!==c.Z_SYNC_FLUSH)||(this.options.to==="string"?(S=a.utf8border(x.output,x.next_out),C=x.next_out-S,E=a.buf2string(x.output,S),x.next_out=C,x.avail_out=O-C,C&&s.arraySet(x.output,x.output,S,C,0),this.onData(E)):this.onData(s.shrinkBuf(x.output,x.next_out)))),x.avail_in===0&&x.avail_out===0&&(L=!0)}while((0<x.avail_in||x.avail_out===0)&&v!==c.Z_STREAM_END);return v===c.Z_STREAM_END&&(w=c.Z_FINISH),w===c.Z_FINISH?(v=o.inflateEnd(this.strm),this.onEnd(v),this.ended=!0,v===c.Z_OK):w!==c.Z_SYNC_FLUSH||(this.onEnd(c.Z_OK),!(x.avail_out=0))},p.prototype.onData=function(m){this.chunks.push(m)},p.prototype.onEnd=function(m){m===c.Z_OK&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=s.flattenChunks(this.chunks)),this.chunks=[],this.err=m,this.msg=this.strm.msg},i.Inflate=p,i.inflate=g,i.inflateRaw=function(m,y){return(y=y||{}).raw=!0,g(m,y)},i.ungzip=g},{"./utils/common":41,"./utils/strings":42,"./zlib/constants":44,"./zlib/gzheader":47,"./zlib/inflate":49,"./zlib/messages":51,"./zlib/zstream":53}],41:[function(n,r,i){var o=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Int32Array<"u";i.assign=function(c){for(var l=Array.prototype.slice.call(arguments,1);l.length;){var u=l.shift();if(u){if(typeof u!="object")throw new TypeError(u+"must be non-object");for(var d in u)u.hasOwnProperty(d)&&(c[d]=u[d])}}return c},i.shrinkBuf=function(c,l){return c.length===l?c:c.subarray?c.subarray(0,l):(c.length=l,c)};var s={arraySet:function(c,l,u,d,f){if(l.subarray&&c.subarray)c.set(l.subarray(u,u+d),f);else for(var p=0;p<d;p++)c[f+p]=l[u+p]},flattenChunks:function(c){var l,u,d,f,p,g;for(l=d=0,u=c.length;l<u;l++)d+=c[l].length;for(g=new Uint8Array(d),l=f=0,u=c.length;l<u;l++)p=c[l],g.set(p,f),f+=p.length;return g}},a={arraySet:function(c,l,u,d,f){for(var p=0;p<d;p++)c[f+p]=l[u+p]},flattenChunks:function(c){return[].concat.apply([],c)}};i.setTyped=function(c){c?(i.Buf8=Uint8Array,i.Buf16=Uint16Array,i.Buf32=Int32Array,i.assign(i,s)):(i.Buf8=Array,i.Buf16=Array,i.Buf32=Array,i.assign(i,a))},i.setTyped(o)},{}],42:[function(n,r,i){var o=n("./common"),s=!0,a=!0;try{String.fromCharCode.apply(null,[0])}catch{s=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch{a=!1}for(var c=new o.Buf8(256),l=0;l<256;l++)c[l]=252<=l?6:248<=l?5:240<=l?4:224<=l?3:192<=l?2:1;function u(d,f){if(f<65537&&(d.subarray&&a||!d.subarray&&s))return String.fromCharCode.apply(null,o.shrinkBuf(d,f));for(var p="",g=0;g<f;g++)p+=String.fromCharCode(d[g]);return p}c[254]=c[254]=1,i.string2buf=function(d){var f,p,g,m,y,v=d.length,w=0;for(m=0;m<v;
vendor: 8,655 bytes, line 1641
1641m++)(64512&(p=d.charCodeAt(m)))==55296&&m+1<v&&(64512&(g=d.charCodeAt(m+1)))==56320&&(p=65536+(p-55296<<10)+(g-56320),m++),w+=p<128?1:p<2048?2:p<65536?3:4;for(f=new o.Buf8(w),m=y=0;y<w;m++)(64512&(p=d.charCodeAt(m)))==55296&&m+1<v&&(64512&(g=d.charCodeAt(m+1)))==56320&&(p=65536+(p-55296<<10)+(g-56320),m++),p<128?f[y++]=p:(p<2048?f[y++]=192|p>>>6:(p<65536?f[y++]=224|p>>>12:(f[y++]=240|p>>>18,f[y++]=128|p>>>12&63),f[y++]=128|p>>>6&63),f[y++]=128|63&p);return f},i.buf2binstring=function(d){return u(d,d.length)},i.binstring2buf=function(d){for(var f=new o.Buf8(d.length),p=0,g=f.length;p<g;p++)f[p]=d.charCodeAt(p);return f},i.buf2string=function(d,f){var p,g,m,y,v=f||d.length,w=new Array(2*v);for(p=g=0;p<v;)if((m=d[p++])<128)w[g++]=m;else if(4<(y=c[m]))w[g++]=65533,p+=y-1;else{for(m&=y===2?31:y===3?15:7;1<y&&p<v;)m=m<<6|63&d[p++],y--;1<y?w[g++]=65533:m<65536?w[g++]=m:(m-=65536,w[g++]=55296|m>>10&1023,w[g++]=56320|1023&m)}return u(w,g)},i.utf8border=function(d,f){var p;for((f=f||d.length)>d.length&&(f=d.length),p=f-1;0<=p&&(192&d[p])==128;)p--;return p<0||p===0?f:p+c[d[p]]>f?p:f}},{"./common":41}],43:[function(n,r,i){r.exports=function(o,s,a,c){for(var l=65535&o|0,u=o>>>16&65535|0,d=0;a!==0;){for(a-=d=2e3<a?2e3:a;u=u+(l=l+s[c++]|0)|0,--d;);l%=65521,u%=65521}return l|u<<16|0}},{}],44:[function(n,r,i){r.exports={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8}},{}],45:[function(n,r,i){var o=(function(){for(var s,a=[],c=0;c<256;c++){s=c;for(var l=0;l<8;l++)s=1&s?3988292384^s>>>1:s>>>1;a[c]=s}return a})();r.exports=function(s,a,c,l){var u=o,d=l+c;s^=-1;for(var f=l;f<d;f++)s=s>>>8^u[255&(s^a[f])];return-1^s}},{}],46:[function(n,r,i){var o,s=n("../utils/common"),a=n("./trees"),c=n("./adler32"),l=n("./crc32"),u=n("./messages"),d=0,f=4,p=0,g=-2,m=-1,y=4,v=2,w=8,S=9,C=286,E=30,T=19,x=2*C+1,O=15,A=3,L=258,U=L+A+1,I=42,F=113,P=1,W=2,ee=3,Y=4;function X(H,be){return H.msg=u[be],be}function Z(H){return(H<<1)-(4<H?9:0)}function G(H){for(var be=H.length;0<=--be;)H[be]=0}function Q(H){var be=H.state,V=be.pending;V>H.avail_out&&(V=H.avail_out),V!==0&&(s.arraySet(H.output,be.pending_buf,be.pending_out,V,H.next_out),H.next_out+=V,be.pending_out+=V,H.total_out+=V,H.avail_out-=V,be.pending-=V,be.pending===0&&(be.pending_out=0))}function q(H,be){a._tr_flush_block(H,0<=H.block_start?H.block_start:-1,H.strstart-H.block_start,be),H.block_start=H.strstart,Q(H.strm)}function z(H,be){H.pending_buf[H.pending++]=be}function ue(H,be){H.pending_buf[H.pending++]=be>>>8&255,H.pending_buf[H.pending++]=255&be}function ge(H,be){var V,M,N=H.max_chain_length,$=H.strstart,ce=H.prev_length,pe=H.nice_match,fe=H.strstart>H.w_size-U?H.strstart-(H.w_size-U):0,we=H.window,Ee=H.w_mask,xe=H.prev,ve=H.strstart+L,ke=we[$+ce-1],He=we[$+ce];H.prev_length>=H.good_match&&(N>>=2),pe>H.lookahead&&(pe=H.lookahead);do if(we[(V=be)+ce]===He&&we[V+ce-1]===ke&&we[V]===we[$]&&we[++V]===we[$+1]){$+=2,V++;do;while(we[++$]===we[++V]&&we[++$]===we[++V]&&we[++$]===we[++V]&&we[++$]===we[++V]&&we[++$]===we[++V]&&we[++$]===we[++V]&&we[++$]===we[++V]&&we[++$]===we[++V]&&$<ve);if(M=L-(ve-$),$=ve-L,ce<M){if(H.match_start=be,pe<=(ce=M))break;ke=we[$+ce-1],He=we[$+ce]}}while((be=xe[be&Ee])>fe&&--N!=0);return ce<=H.lookahead?ce:H.lookahead}function ae(H){var be,V,M,N,$,ce,pe,fe,we,Ee,xe=H.w_size;do{if(N=H.window_size-H.lookahead-H.strstart,H.strstart>=xe+(xe-U)){for(s.arraySet(H.window,H.window,xe,xe,0),H.match_start-=xe,H.strstart-=xe,H.block_start-=xe,be=V=H.hash_size;M=H.head[--be],H.head[be]=xe<=M?M-xe:0,--V;);for(be=V=xe;M=H.prev[--be],H.prev[be]=xe<=M?M-xe:0,--V;);N+=xe}if(H.strm.avail_in===0)break;if(ce=H.strm,pe=H.window,fe=H.strstart+H.lookahead,we=N,Ee=void 0,Ee=ce.avail_in,we<Ee&&(Ee=we),V=Ee===0?0:(ce.avail_in-=Ee,s.arraySet(pe,ce.input,ce.next_in,Ee,fe),ce.state.wrap===1?ce.adler=c(ce.adler,pe,Ee,fe):ce.state.wrap===2&&(ce.adler=l(ce.adler,pe,Ee,fe)),ce.next_in+=Ee,ce.total_in+=Ee,Ee),H.lookahead+=V,H.lookahead+H.insert>=A)for($=H.strstart-H.insert,H.ins_h=H.window[$],H.ins_h=(H.ins_h<<H.hash_shift^H.window[$+1])&H.hash_mask;H.insert&&(H.ins_h=(H.ins_h<<H.hash_shift^H.window[$+A-1])&H.hash_mask,H.prev[$&H.w_mask]=H.head[H.ins_h],H.head[H.ins_h]=$,$++,H.insert--,!(H.lookahead+H.insert<A)););}while(H.lookahead<U&&H.strm.avail_in!==0)}function j(H,be){for(var V,M;;){if(H.lookahead<U){if(ae(H),H.lookahead<U&&be===d)return P;if(H.lookahead===0)break}if(V=0,H.lookahead>=A&&(H.ins_h=(H.ins_h<<H.hash_shift^H.window[H.strstart+A-1])&H.hash_mask,V=H.prev[H.strstart&H.w_mask]=H.head[H.ins_h],H.head[H.ins_h]=H.strstart),V!==0&&H.strstart-V<=H.w_size-U&&(H.match_length=ge(H,V)),H.match_length>=A)if(M=a._tr_tally(H,H.strstart-H.match_start,H.match_length-A),H.lookahead-=H.match_length,H.match_length<=H.max_lazy_match&&H.lookahead>=A){for(H.match_length--;H.strstart++,H.ins_h=(H.ins_h<<H.hash_shift^H.window[H.strstart+A-1])&H.hash_mask,V=H.prev[H.strstart&H.w_mask]=H.head[H.ins_h],H.head[H.ins_h]=H.strstart,--H.match_length!=0;);H.strstart++}else H.strstart+=H.match_length,H.match_length=0,H.ins_h=H.window[H.strstart],H.ins_h=(H.ins_h<<H.hash_shift^H.window[H.strstart+1])&H.hash_mask;else M=a._tr_tally(H,0,H.window[H.strstart]),H.lookahead--,H.strstart++;if(M&&(q(H,!1),H.strm.avail_out===0))return P}return H.insert=H.strstart<A-1?H.strstart:A-1,be===f?(q(H,!0),H.strm.avail_out===0?ee:Y):H.last_lit&&(q(H,!1),H.strm.avail_out===0)?P:W}function B(H,be){for(var V,M,N;;){if(H.lookahead<U){if(ae(H),H.lookahead<U&&be===d)return P;if(H.lookahead===0)break}if(V=0,H.lookahead>=A&&(H.ins_h=(H.ins_h<<H.hash_shift^H.window[H.strstart+A-1])&H.hash_mask,V=H.prev[H.strstart&H.w_mask]=H.head[H.ins_h],H.head[H.ins_h]=H.strstart),H.prev_length=H.match_length,H.prev_match=H.match_start,H.match_length=A-1,V!==0&&H.prev_length<H.max_lazy_match&&H.strstart-V<=H.w_size-U&&(H.match_length=ge(H,V),H.match_length<=5&&(H.strategy===1||H.match_length===A&&4096<H.strstart-H.match_start)&&(H.match_length=A-1)),H.prev_length>=A&&H.match_length<=H.prev_length){for(N=H.strstart+H.lookahead-A,M=a._tr_tally(H,H.strstart-1-H.prev_match,H.prev_length-A),H.lookahead-=H.prev_length-1,H.prev_length-=2;++H.strstart<=N&&(H.ins_h=(H.ins_h<<H.hash_shift^H.window[H.strstart+A-1])&H.hash_mask,V=H.prev[H.strstart&H.w_mask]=H.head[H.ins_h],H.head[H.ins_h]=H.strstart),--H.prev_length!=0;);if(H.match_available=0,H.match_length=A-1,H.strstart++,M&&(q(H,!1),H.strm.avail_out===0))return P}else if(H.match_available){if((M=a._tr_tally(H,0,H.window[H.strstart-1]))&&q(H,!1),H.strstart++,H.lookahead--,H.strm.avail_out===0)return P}else H.match_available=1,H.strstart++,H.lookahead--}return H.match_available&&(M=a._tr_tally(H,0,H.window[H.strstart-1]),H.match_available=0),H.insert=H.strstart<A-1?H.strstart:A-1,be===f?(q(H,!0),H.strm.avail_out===0?ee:Y):H.last_lit&&(q(H,!1),H.strm.avail_out===0)?P:W}function re(H,be,V,M,N){this.good_length=H,this.max_lazy=be,this.nice_length=V,this.max_chain=M,this.func=N}function oe(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=w,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new s.Buf16(2*x),this.dyn_dtree=new s.Buf16(2*(2*E+1)),this.bl_tree=new s.Buf16(2*(2*T+1)),G(this.dyn_ltree),G(this.dyn_dtree),G(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new s.Buf16(O+1),this.heap=new s.Buf16(2*C+1),G(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new s.Buf16(2*C+1),G(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}function ne(H){var be;return H&&H.state?(H.total_in=H.total_out=0,H.data_type=v,(be=H.state).pending=0,be.pending_out=0,be.wrap<0&&(be.wrap=-be.wrap),be.status=be.wrap?I:F,H.adler=be.wrap===2?0:1,be.last_flush=d,a._tr_init(be),p):X(H,g)}function J(H){var be=ne(H);
vendor: 31,990 bytes, line 1641
1641return be===p&&(function(V){V.window_size=2*V.w_size,G(V.head),V.max_lazy_match=o[V.level].max_lazy,V.good_match=o[V.level].good_length,V.nice_match=o[V.level].nice_length,V.max_chain_length=o[V.level].max_chain,V.strstart=0,V.block_start=0,V.lookahead=0,V.insert=0,V.match_length=V.prev_length=A-1,V.match_available=0,V.ins_h=0})(H.state),be}function Se(H,be,V,M,N,$){if(!H)return g;var ce=1;if(be===m&&(be=6),M<0?(ce=0,M=-M):15<M&&(ce=2,M-=16),N<1||S<N||V!==w||M<8||15<M||be<0||9<be||$<0||y<$)return X(H,g);M===8&&(M=9);var pe=new oe;return(H.state=pe).strm=H,pe.wrap=ce,pe.gzhead=null,pe.w_bits=M,pe.w_size=1<<pe.w_bits,pe.w_mask=pe.w_size-1,pe.hash_bits=N+7,pe.hash_size=1<<pe.hash_bits,pe.hash_mask=pe.hash_size-1,pe.hash_shift=~~((pe.hash_bits+A-1)/A),pe.window=new s.Buf8(2*pe.w_size),pe.head=new s.Buf16(pe.hash_size),pe.prev=new s.Buf16(pe.w_size),pe.lit_bufsize=1<<N+6,pe.pending_buf_size=4*pe.lit_bufsize,pe.pending_buf=new s.Buf8(pe.pending_buf_size),pe.d_buf=1*pe.lit_bufsize,pe.l_buf=3*pe.lit_bufsize,pe.level=be,pe.strategy=$,pe.method=V,J(H)}o=[new re(0,0,0,0,function(H,be){var V=65535;for(V>H.pending_buf_size-5&&(V=H.pending_buf_size-5);;){if(H.lookahead<=1){if(ae(H),H.lookahead===0&&be===d)return P;if(H.lookahead===0)break}H.strstart+=H.lookahead,H.lookahead=0;var M=H.block_start+V;if((H.strstart===0||H.strstart>=M)&&(H.lookahead=H.strstart-M,H.strstart=M,q(H,!1),H.strm.avail_out===0)||H.strstart-H.block_start>=H.w_size-U&&(q(H,!1),H.strm.avail_out===0))return P}return H.insert=0,be===f?(q(H,!0),H.strm.avail_out===0?ee:Y):(H.strstart>H.block_start&&(q(H,!1),H.strm.avail_out),P)}),new re(4,4,8,4,j),new re(4,5,16,8,j),new re(4,6,32,32,j),new re(4,4,16,16,B),new re(8,16,32,32,B),new re(8,16,128,128,B),new re(8,32,128,256,B),new re(32,128,258,1024,B),new re(32,258,258,4096,B)],i.deflateInit=function(H,be){return Se(H,be,w,15,8,0)},i.deflateInit2=Se,i.deflateReset=J,i.deflateResetKeep=ne,i.deflateSetHeader=function(H,be){return H&&H.state?H.state.wrap!==2?g:(H.state.gzhead=be,p):g},i.deflate=function(H,be){var V,M,N,$;if(!H||!H.state||5<be||be<0)return H?X(H,g):g;if(M=H.state,!H.output||!H.input&&H.avail_in!==0||M.status===666&&be!==f)return X(H,H.avail_out===0?-5:g);if(M.strm=H,V=M.last_flush,M.last_flush=be,M.status===I)if(M.wrap===2)H.adler=0,z(M,31),z(M,139),z(M,8),M.gzhead?(z(M,(M.gzhead.text?1:0)+(M.gzhead.hcrc?2:0)+(M.gzhead.extra?4:0)+(M.gzhead.name?8:0)+(M.gzhead.comment?16:0)),z(M,255&M.gzhead.time),z(M,M.gzhead.time>>8&255),z(M,M.gzhead.time>>16&255),z(M,M.gzhead.time>>24&255),z(M,M.level===9?2:2<=M.strategy||M.level<2?4:0),z(M,255&M.gzhead.os),M.gzhead.extra&&M.gzhead.extra.length&&(z(M,255&M.gzhead.extra.length),z(M,M.gzhead.extra.length>>8&255)),M.gzhead.hcrc&&(H.adler=l(H.adler,M.pending_buf,M.pending,0)),M.gzindex=0,M.status=69):(z(M,0),z(M,0),z(M,0),z(M,0),z(M,0),z(M,M.level===9?2:2<=M.strategy||M.level<2?4:0),z(M,3),M.status=F);else{var ce=w+(M.w_bits-8<<4)<<8;ce|=(2<=M.strategy||M.level<2?0:M.level<6?1:M.level===6?2:3)<<6,M.strstart!==0&&(ce|=32),ce+=31-ce%31,M.status=F,ue(M,ce),M.strstart!==0&&(ue(M,H.adler>>>16),ue(M,65535&H.adler)),H.adler=1}if(M.status===69)if(M.gzhead.extra){for(N=M.pending;M.gzindex<(65535&M.gzhead.extra.length)&&(M.pending!==M.pending_buf_size||(M.gzhead.hcrc&&M.pending>N&&(H.adler=l(H.adler,M.pending_buf,M.pending-N,N)),Q(H),N=M.pending,M.pending!==M.pending_buf_size));)z(M,255&M.gzhead.extra[M.gzindex]),M.gzindex++;M.gzhead.hcrc&&M.pending>N&&(H.adler=l(H.adler,M.pending_buf,M.pending-N,N)),M.gzindex===M.gzhead.extra.length&&(M.gzindex=0,M.status=73)}else M.status=73;if(M.status===73)if(M.gzhead.name){N=M.pending;do{if(M.pending===M.pending_buf_size&&(M.gzhead.hcrc&&M.pending>N&&(H.adler=l(H.adler,M.pending_buf,M.pending-N,N)),Q(H),N=M.pending,M.pending===M.pending_buf_size)){$=1;break}$=M.gzindex<M.gzhead.name.length?255&M.gzhead.name.charCodeAt(M.gzindex++):0,z(M,$)}while($!==0);M.gzhead.hcrc&&M.pending>N&&(H.adler=l(H.adler,M.pending_buf,M.pending-N,N)),$===0&&(M.gzindex=0,M.status=91)}else M.status=91;if(M.status===91)if(M.gzhead.comment){N=M.pending;do{if(M.pending===M.pending_buf_size&&(M.gzhead.hcrc&&M.pending>N&&(H.adler=l(H.adler,M.pending_buf,M.pending-N,N)),Q(H),N=M.pending,M.pending===M.pending_buf_size)){$=1;break}$=M.gzindex<M.gzhead.comment.length?255&M.gzhead.comment.charCodeAt(M.gzindex++):0,z(M,$)}while($!==0);M.gzhead.hcrc&&M.pending>N&&(H.adler=l(H.adler,M.pending_buf,M.pending-N,N)),$===0&&(M.status=103)}else M.status=103;if(M.status===103&&(M.gzhead.hcrc?(M.pending+2>M.pending_buf_size&&Q(H),M.pending+2<=M.pending_buf_size&&(z(M,255&H.adler),z(M,H.adler>>8&255),H.adler=0,M.status=F)):M.status=F),M.pending!==0){if(Q(H),H.avail_out===0)return M.last_flush=-1,p}else if(H.avail_in===0&&Z(be)<=Z(V)&&be!==f)return X(H,-5);if(M.status===666&&H.avail_in!==0)return X(H,-5);if(H.avail_in!==0||M.lookahead!==0||be!==d&&M.status!==666){var pe=M.strategy===2?(function(fe,we){for(var Ee;;){if(fe.lookahead===0&&(ae(fe),fe.lookahead===0)){if(we===d)return P;break}if(fe.match_length=0,Ee=a._tr_tally(fe,0,fe.window[fe.strstart]),fe.lookahead--,fe.strstart++,Ee&&(q(fe,!1),fe.strm.avail_out===0))return P}return fe.insert=0,we===f?(q(fe,!0),fe.strm.avail_out===0?ee:Y):fe.last_lit&&(q(fe,!1),fe.strm.avail_out===0)?P:W})(M,be):M.strategy===3?(function(fe,we){for(var Ee,xe,ve,ke,He=fe.window;;){if(fe.lookahead<=L){if(ae(fe),fe.lookahead<=L&&we===d)return P;if(fe.lookahead===0)break}if(fe.match_length=0,fe.lookahead>=A&&0<fe.strstart&&(xe=He[ve=fe.strstart-1])===He[++ve]&&xe===He[++ve]&&xe===He[++ve]){ke=fe.strstart+L;do;while(xe===He[++ve]&&xe===He[++ve]&&xe===He[++ve]&&xe===He[++ve]&&xe===He[++ve]&&xe===He[++ve]&&xe===He[++ve]&&xe===He[++ve]&&ve<ke);fe.match_length=L-(ke-ve),fe.match_length>fe.lookahead&&(fe.match_length=fe.lookahead)}if(fe.match_length>=A?(Ee=a._tr_tally(fe,1,fe.match_length-A),fe.lookahead-=fe.match_length,fe.strstart+=fe.match_length,fe.match_length=0):(Ee=a._tr_tally(fe,0,fe.window[fe.strstart]),fe.lookahead--,fe.strstart++),Ee&&(q(fe,!1),fe.strm.avail_out===0))return P}return fe.insert=0,we===f?(q(fe,!0),fe.strm.avail_out===0?ee:Y):fe.last_lit&&(q(fe,!1),fe.strm.avail_out===0)?P:W})(M,be):o[M.level].func(M,be);if(pe!==ee&&pe!==Y||(M.status=666),pe===P||pe===ee)return H.avail_out===0&&(M.last_flush=-1),p;if(pe===W&&(be===1?a._tr_align(M):be!==5&&(a._tr_stored_block(M,0,0,!1),be===3&&(G(M.head),M.lookahead===0&&(M.strstart=0,M.block_start=0,M.insert=0))),Q(H),H.avail_out===0))return M.last_flush=-1,p}return be!==f?p:M.wrap<=0?1:(M.wrap===2?(z(M,255&H.adler),z(M,H.adler>>8&255),z(M,H.adler>>16&255),z(M,H.adler>>24&255),z(M,255&H.total_in),z(M,H.total_in>>8&255),z(M,H.total_in>>16&255),z(M,H.total_in>>24&255)):(ue(M,H.adler>>>16),ue(M,65535&H.adler)),Q(H),0<M.wrap&&(M.wrap=-M.wrap),M.pending!==0?p:1)},i.deflateEnd=function(H){var be;return H&&H.state?(be=H.state.status)!==I&&be!==69&&be!==73&&be!==91&&be!==103&&be!==F&&be!==666?X(H,g):(H.state=null,be===F?X(H,-3):p):g},i.deflateSetDictionary=function(H,be){var V,M,N,$,ce,pe,fe,we,Ee=be.length;if(!H||!H.state||($=(V=H.state).wrap)===2||$===1&&V.status!==I||V.lookahead)return g;for($===1&&(H.adler=c(H.adler,be,Ee,0)),V.wrap=0,Ee>=V.w_size&&($===0&&(G(V.head),V.strstart=0,V.block_start=0,V.insert=0),we=new s.Buf8(V.w_size),s.arraySet(we,be,Ee-V.w_size,V.w_size,0),be=we,Ee=V.w_size),ce=H.avail_in,pe=H.next_in,fe=H.input,H.avail_in=Ee,H.next_in=0,H.input=be,ae(V);V.lookahead>=A;){for(M=V.strstart,N=V.lookahead-(A-1);V.ins_h=(V.ins_h<<V.hash_shift^V.window[M+A-1])&V.hash_mask,V.prev[M&V.w_mask]=V.head[V.ins_h],V.head[V.ins_h]=M,M++,--N;);V.strstart=M,V.lookahead=A-1,ae(V)}return V.strstart+=V.lookahead,V.block_start=V.strstart,V.insert=V.lookahead,V.lookahead=0,V.match_length=V.prev_length=A-1,V.match_available=0,H.next_in=pe,H.input=fe,H.avail_in=ce,V.wrap=$,p},i.deflateInfo="pako deflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./messages":51,"./trees":52}],47:[function(n,r,i){r.exports=function(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}},{}],48:[function(n,r,i){r.exports=function(o,s){var a,c,l,u,d,f,p,g,m,y,v,w,S,C,E,T,x,O,A,L,U,I,F,P,W;a=o.state,c=o.next_in,P=o.input,l=c+(o.avail_in-5),u=o.next_out,W=o.output,d=u-(s-o.avail_out),f=u+(o.avail_out-257),p=a.dmax,g=a.wsize,m=a.whave,y=a.wnext,v=a.window,w=a.hold,S=a.bits,C=a.lencode,E=a.distcode,T=(1<<a.lenbits)-1,x=(1<<a.distbits)-1;e:do{S<15&&(w+=P[c++]<<S,S+=8,w+=P[c++]<<S,S+=8),O=C[w&T];t:for(;;){if(w>>>=A=O>>>24,S-=A,(A=O>>>16&255)===0)W[u++]=65535&O;else{if(!(16&A)){if((64&A)==0){O=C[(65535&O)+(w&(1<<A)-1)];continue t}if(32&A){a.mode=12;break e}o.msg="invalid literal/length code",a.mode=30;break e}L=65535&O,(A&=15)&&(S<A&&(w+=P[c++]<<S,S+=8),L+=w&(1<<A)-1,w>>>=A,S-=A),S<15&&(w+=P[c++]<<S,S+=8,w+=P[c++]<<S,S+=8),O=E[w&x];n:for(;;){if(w>>>=A=O>>>24,S-=A,!(16&(A=O>>>16&255))){if((64&A)==0){O=E[(65535&O)+(w&(1<<A)-1)];continue n}o.msg="invalid distance code",a.mode=30;break e}if(U=65535&O,S<(A&=15)&&(w+=P[c++]<<S,(S+=8)<A&&(w+=P[c++]<<S,S+=8)),p<(U+=w&(1<<A)-1)){o.msg="invalid distance too far back",a.mode=30;break e}if(w>>>=A,S-=A,(A=u-d)<U){if(m<(A=U-A)&&a.sane){o.msg="invalid distance too far back",a.mode=30;break e}if(F=v,(I=0)===y){if(I+=g-A,A<L){for(L-=A;W[u++]=v[I++],--A;);I=u-U,F=W}}else if(y<A){if(I+=g+y-A,(A-=y)<L){for(L-=A;W[u++]=v[I++],--A;);if(I=0,y<L){for(L-=A=y;W[u++]=v[I++],--A;);I=u-U,F=W}}}else if(I+=y-A,A<L){for(L-=A;W[u++]=v[I++],--A;);I=u-U,F=W}for(;2<L;)W[u++]=F[I++],W[u++]=F[I++],W[u++]=F[I++],L-=3;L&&(W[u++]=F[I++],1<L&&(W[u++]=F[I++]))}else{for(I=u-U;W[u++]=W[I++],W[u++]=W[I++],W[u++]=W[I++],2<(L-=3););L&&(W[u++]=W[I++],1<L&&(W[u++]=W[I++]))}break}}break}}while(c<l&&u<f);c-=L=S>>3,w&=(1<<(S-=L<<3))-1,o.next_in=c,o.next_out=u,o.avail_in=c<l?l-c+5:5-(c-l),o.avail_out=u<f?f-u+257:257-(u-f),a.hold=w,a.bits=S}},{}],49:[function(n,r,i){var o=n("../utils/common"),s=n("./adler32"),a=n("./crc32"),c=n("./inffast"),l=n("./inftrees"),u=1,d=2,f=0,p=-2,g=1,m=852,y=592;function v(I){return(I>>>24&255)+(I>>>8&65280)+((65280&I)<<8)+((255&I)<<24)}function w(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new o.Buf16(320),this.work=new o.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function S(I){var F;return I&&I.state?(F=I.state,I.total_in=I.total_out=F.total=0,I.msg="",F.wrap&&(I.adler=1&F.wrap),F.mode=g,F.last=0,F.havedict=0,F.dmax=32768,F.head=null,F.hold=0,F.bits=0,F.lencode=F.lendyn=new o.Buf32(m),F.distcode=F.distdyn=new o.Buf32(y),F.sane=1,F.back=-1,f):p}function C(I){var F;return I&&I.state?((F=I.state).wsize=0,F.whave=0,F.wnext=0,S(I)):p}function E(I,F){var P,W;return I&&I.state?(W=I.state,F<0?(P=0,F=-F):(P=1+(F>>4),F<48&&(F&=15)),F&&(F<8||15<F)?p:(W.window!==null&&W.wbits!==F&&(W.window=null),W.wrap=P,W.wbits=F,C(I))):p}function T(I,F){var P,W;return I?(W=new w,(I.state=W).window=null,(P=E(I,F))!==f&&(I.state=null),P):p}var x,O,A=!0;function L(I){if(A){var F;for(x=new o.Buf32(512),O=new o.Buf32(32),F=0;F<144;)I.lens[F++]=8;for(;F<256;)I.lens[F++]=9;for(;F<280;)I.lens[F++]=7;for(;F<288;)I.lens[F++]=8;for(l(u,I.lens,0,288,x,0,I.work,{bits:9}),F=0;F<32;)I.lens[F++]=5;l(d,I.lens,0,32,O,0,I.work,{bits:5}),A=!1}I.lencode=x,I.lenbits=9,I.distcode=O,I.distbits=5}function U(I,F,P,W){var ee,Y=I.state;return Y.window===null&&(Y.wsize=1<<Y.wbits,Y.wnext=0,Y.whave=0,Y.window=new o.Buf8(Y.wsize)),W>=Y.wsize?(o.arraySet(Y.window,F,P-Y.wsize,Y.wsize,0),Y.wnext=0,Y.whave=Y.wsize):(W<(ee=Y.wsize-Y.wnext)&&(ee=W),o.arraySet(Y.window,F,P-W,ee,Y.wnext),(W-=ee)?(o.arraySet(Y.window,F,P-W,W,0),Y.wnext=W,Y.whave=Y.wsize):(Y.wnext+=ee,Y.wnext===Y.wsize&&(Y.wnext=0),Y.whave<Y.wsize&&(Y.whave+=ee))),0}i.inflateReset=C,i.inflateReset2=E,i.inflateResetKeep=S,i.inflateInit=function(I){return T(I,15)},i.inflateInit2=T,i.inflate=function(I,F){var P,W,ee,Y,X,Z,G,Q,q,z,ue,ge,ae,j,B,re,oe,ne,J,Se,H,be,V,M,N=0,$=new o.Buf8(4),ce=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!I||!I.state||!I.output||!I.input&&I.avail_in!==0)return p;(P=I.state).mode===12&&(P.mode=13),X=I.next_out,ee=I.output,G=I.avail_out,Y=I.next_in,W=I.input,Z=I.avail_in,Q=P.hold,q=P.bits,z=Z,ue=G,be=f;e:for(;;)switch(P.mode){case g:if(P.wrap===0){P.mode=13;break}for(;q<16;){if(Z===0)break e;Z--,Q+=W[Y++]<<q,q+=8}if(2&P.wrap&&Q===35615){$[P.check=0]=255&Q,$[1]=Q>>>8&255,P.check=a(P.check,$,2,0),q=Q=0,P.mode=2;break}if(P.flags=0,P.head&&(P.head.done=!1),!(1&P.wrap)||(((255&Q)<<8)+(Q>>8))%31){I.msg="incorrect header check",P.mode=30;break}if((15&Q)!=8){I.msg="unknown compression method",P.mode=30;break}if(q-=4,H=8+(15&(Q>>>=4)),P.wbits===0)P.wbits=H;else if(H>P.wbits){I.msg="invalid window size",P.mode=30;break}P.dmax=1<<H,I.adler=P.check=1,P.mode=512&Q?10:12,q=Q=0;break;case 2:for(;q<16;){if(Z===0)break e;Z--,Q+=W[Y++]<<q,q+=8}if(P.flags=Q,(255&P.flags)!=8){I.msg="unknown compression method",P.mode=30;break}if(57344&P.flags){I.msg="unknown header flags set",P.mode=30;break}P.head&&(P.head.text=Q>>8&1),512&P.flags&&($[0]=255&Q,$[1]=Q>>>8&255,P.check=a(P.check,$,2,0)),q=Q=0,P.mode=3;case 3:for(;q<32;){if(Z===0)break e;Z--,Q+=W[Y++]<<q,q+=8}P.head&&(P.head.time=Q),512&P.flags&&($[0]=255&Q,$[1]=Q>>>8&255,$[2]=Q>>>16&255,$[3]=Q>>>24&255,P.check=a(P.check,$,4,0)),q=Q=0,P.mode=4;case 4:for(;q<16;){if(Z===0)break e;Z--,Q+=W[Y++]<<q,q+=8}P.head&&(P.head.xflags=255&Q,P.head.os=Q>>8),512&P.flags&&($[0]=255&Q,$[1]=Q>>>8&255,P.check=a(P.check,$,2,0)),q=Q=0,P.mode=5;case 5:if(1024&P.flags){for(;q<16;){if(Z===0)break e;Z--,Q+=W[Y++]<<q,q+=8}P.length=Q,P.head&&(P.head.extra_len=Q),512&P.flags&&($[0]=255&Q,$[1]=Q>>>8&255,P.check=a(P.check,$,2,0)),q=Q=0}else P.head&&(P.head.extra=null);P.mode=6;case 6:if(1024&P.flags&&(Z<(ge=P.length)&&(ge=Z),ge&&(P.head&&(H=P.head.extra_len-P.length,P.head.extra||(P.head.extra=new Array(P.head.extra_len)),o.arraySet(P.head.extra,W,Y,ge,H)),512&P.flags&&(P.check=a(P.check,W,ge,Y)),Z-=ge,Y+=ge,P.length-=ge),P.length))break e;P.length=0,P.mode=7;case 7:if(2048&P.flags){if(Z===0)break e;for(ge=0;H=W[Y+ge++],P.head&&H&&P.length<65536&&(P.head.name+=String.fromCharCode(H)),H&&ge<Z;);if(512&P.flags&&(P.check=a(P.check,W,ge,Y)),Z-=ge,Y+=ge,H)break e}else P.head&&(P.head.name=null);P.length=0,P.mode=8;case 8:if(4096&P.flags){if(Z===0)break e;for(ge=0;H=W[Y+ge++],P.head&&H&&P.length<65536&&(P.head.comment+=String.fromCharCode(H)),H&&ge<Z;);if(512&P.flags&&(P.check=a(P.check,W,ge,Y)),Z-=ge,Y+=ge,H)break e}else P.head&&(P.head.comment=null);P.mode=9;case 9:if(512&P.flags){for(;q<16;){if(Z===0)break e;Z--,Q+=W[Y++]<<q,q+=8}if(Q!==(65535&P.check)){I.msg="header crc mismatch",P.mode=30;break}q=Q=0}P.head&&(P.head.hcrc=P.flags>>9&1,P.head.done=!0),I.adler=P.check=0,P.mode=12;break;case 10:for(;q<32;){if(Z===0)break e;Z--,Q+=W[Y++]<<q,q+=8}I.adler=P.check=v(Q),q=Q=0,P.mode=11;case 11:if(P.havedict===0)return I.next_out=X,I.avail_out=G,I.next_in=Y,I.avail_in=Z,P.hold=Q,P.bits=q,2;I.adler=P.check=1,P.mode=12;case 12:if(F===5||F===6)break e;case 13:if(P.last){Q>>>=7&q,q-=7&q,P.mode=27;break}for(;q<3;){if(Z===0)break e;Z--,Q+=W[Y++]<<q,q+=8}switch(P.last=1&Q,q-=1,3&(Q>>>=1)){case 0:P.mode=14;break;case 1:if(L(P),P.mode=20,F!==6)break;Q>>>=2,q-=2;break e;case 2:P.mode=17;break;case 3:I.msg="invalid block type",P.mode=30}Q>>>=2,q-=2;break;case 14:for(Q>>>=7&q,q-=7&q;q<32;){if(Z===0)break e;Z--,Q+=W[Y++]<<q,q+=8}if((65535&Q)!=(Q>>>16^65535)){I.msg="invalid stored block lengths",P.mode=30;break}if(P.length=65535&Q,q=Q=0,P.mode=15,F===6)break e;case 15:P.mode=16;case 16:if(ge=P.length){if(Z<ge&&(ge=Z),G<ge&&(ge=G),ge===0)break e;o.arraySet(ee,W,Y,ge,X),Z-=ge,Y+=ge,G-=ge,X+=ge,P.length-=ge;break}P.mode=12;break;case 17:for(;q<14;){if(Z===0)break e;Z--,Q+=W[Y++]<<q,q+=8}if(P.nlen=257+(31&Q),Q>>>=5,q-=5,P.ndist=1+(31&Q),Q>>>=5,q-=5,P.ncode=4+(15&Q),Q>>>=4,q-=4,286<P.nlen||30<P.ndist){I.msg="too many length or distance symbols",P.mode=30;break}P.have=0,P.mode=18;case 18:for(;P.have<P.ncode;){for(;q<3;){if(Z===0)break e;Z--,Q+=W[Y++]<<q,q+=8}P.lens[ce[P.have++]]=7&Q,Q>>>=3,q-=3}for(;P.have<19;)P.lens[ce[P.have++]]=0;if(P.lencode=P.lendyn,P.lenbits=7,V={bits:P.lenbits},be=l(0,P.lens,0,19,P.lencode,0,P.work,V),P.lenbits=V.bits,be){I.msg="invalid code lengths set",P.mode=30;break}P.have=0,P.mode=19;case 19:for(;P.have<P.nlen+P.ndist;){for(;re=(N=P.lencode[Q&(1<<P.lenbits)-1])>>>16&255,oe=65535&N,!((B=N>>>24)<=q);){if(Z===0)break e;Z--,Q+=W[Y++]<<q,q+=8}if(oe<16)Q>>>=B,q-=B,P.lens[P.have++]=oe;else{if(oe===16){for(M=B+2;q<M;){if(Z===0)break e;Z--,Q+=W[Y++]<<q,q+=8}if(Q>>>=B,q-=B,P.have===0){I.msg="invalid bit length repeat",P.mode=30;break}H=P.lens[P.have-1],ge=3+(3&Q),Q>>>=2,q-=2}else if(oe===17){for(M=B+3;q<M;){if(Z===0)break e;Z--,Q+=W[Y++]<<q,q+=8}q-=B,H=0,ge=3+(7&(Q>>>=B)),Q>>>=3,q-=3}else{for(M=B+7;q<M;){if(Z===0)break e;Z--,Q+=W[Y++]<<q,q+=8}q-=B,H=0,ge=11+(127&(Q>>>=B)),Q>>>=7,q-=7}if(P.have+ge>P.nlen+P.ndist){I.msg="invalid bit length repeat",P.mode=30;break}for(;ge--;)P.lens[P.have++]=H}}if(P.mode===30)break;if(P.lens[256]===0){I.msg="invalid code -- missing end-of-block",P.mode=30;break}if(P.lenbits=9,V={bits:P.lenbits},be=l(u,P.lens,0,P.nlen,P.lencode,0,P.work,V),P.lenbits=V.bits,be){I.msg="invalid literal/lengths set",P.mode=30;break}if(P.distbits=6,P.distcode=P.distdyn,V={bits:P.distbits},be=l(d,P.lens,P.nlen,P.ndist,P.distcode,0,P.work,V),P.distbits=V.bits,be){I.msg="invalid distances set",P.mode=30;break}if(P.mode=20,F===6)break e;case 20:P.mode=21;case 21:if(6<=Z&&258<=G){I.next_out=X,I.avail_out=G,I.next_in=Y,I.avail_in=Z,P.hold=Q,P.bits=q,c(I,ue),X=I.next_out,ee=I.output,G=I.avail_out,Y=I.next_in,W=I.input,Z=I.avail_in,Q=P.hold,q=P.bits,P.mode===12&&(P.back=-1);break}for(P.back=0;re=(N=P.lencode[Q&(1<<P.lenbits)-1])>>>16&255,oe=65535&N,!((B=N>>>24)<=q);){if(Z===0)break e;Z--,Q+=W[Y++]<<q,q+=8}if(re&&(240&re)==0){for(ne=B,J=re,Se=oe;re=(N=P.lencode[Se+((Q&(1<<ne+J)-1)>>ne)])>>>16&255,oe=65535&N,!(ne+(B=N>>>24)<=q);){if(Z===0)break e;Z--,Q+=W[Y++]<<q,q+=8}Q>>>=ne,q-=ne,P.back+=ne}if(Q>>>=B,q-=B,P.back+=B,P.length=oe,re===0){P.mode=26;break}if(32&re){P.back=-1,P.mode=12;break}if(64&re){I.msg="invalid literal/length code",P.mode=30;break}P.extra=15&re,P.mode=22;case 22:if(P.extra){for(M=P.extra;q<M;){if(Z===0)break e;Z--,Q+=W[Y++]<<q,q+=8}P.length+=Q&(1<<P.extra)-1,Q>>>=P.extra,q-=P.extra,P.back+=P.extra}P.was=P.length,P.mode=23;case 23:for(;re=(N=P.distcode[Q&(1<<P.distbits)-1])>>>16&255,oe=65535&N,!((B=N>>>24)<=q);){if(Z===0)break e;Z--,Q+=W[Y++]<<q,q+=8}if((240&re)==0){for(ne=B,J=re,Se=oe;re=(N=P.distcode[Se+((Q&(1<<ne+J)-1)>>ne)])>>>16&255,oe=65535&N,!(ne+(B=N>>>24)<=q);){if(Z===0)break e;Z--,Q+=W[Y++]<<q,q+=8}Q>>>=ne,q-=ne,P.back+=ne}if(Q>>>=B,q-=B,P.back+=B,64&re){I.msg="invalid distance code",P.mode=30;break}P.offset=oe,P.extra=15&re,P.mode=24;case 24:if(P.extra){for(M=P.extra;q<M;){if(Z===0)break e;Z--,Q+=W[Y++]<<q,q+=8}P.offset+=Q&(1<<P.extra)-1,Q>>>=P.extra,q-=P.extra,P.back+=P.extra}if(P.offset>P.dmax){I.msg="invalid distance too far back",P.mode=30;break}P.mode=25;case 25:if(G===0)break e;if(ge=ue-G,P.offset>ge){if((ge=P.offset-ge)>P.whave&&P.sane){I.msg="invalid distance too far back",P.mode=30;break}ae=ge>P.wnext?(ge-=P.wnext,P.wsize-ge):P.wnext-ge,ge>P.length&&(ge=P.length),j=P.window}else j=ee,ae=X-P.offset,ge=P.length;for(G<ge&&(ge=G),G-=ge,P.length-=ge;ee[X++]=j[ae++],--ge;);P.length===0&&(P.mode=21);break;case 26:if(G===0)break e;ee[X++]=P.length,G--,P.mode=21;break;case 27:if(P.wrap){for(;q<32;){if(Z===0)break e;Z--,Q|=W[Y++]<<q,q+=8}if(ue-=G,I.total_out+=ue,P.total+=ue,ue&&(I.adler=P.check=P.flags?a(P.check,ee,ue,X-ue):s(P.check,ee,ue,X-ue)),ue=G,(P.flags?Q:v(Q))!==P.check){I.msg="incorrect data check",P.mode=30;break}q=Q=0}P.mode=28;case 28:if(P.wrap&&P.flags){for(;q<32;){if(Z===0)break e;Z--,Q+=W[Y++]<<q,q+=8}if(Q!==(4294967295&P.total)){I.msg="incorrect length check",P.mode=30;break}q=Q=0}P.mode=29;case 29:be=1;break e;case 30:be=-3;break e;case 31:return-4;case 32:default:return p}return I.next_out=X,I.avail_out=G,I.next_in=Y,I.avail_in=Z,P.hold=Q,P.bits=q,(P.wsize||ue!==I.avail_out&&P.mode<30&&(P.mode<27||F!==4))&&U(I,I.output,I.next_out,ue-I.avail_out)?(P.mode=31,-4):(z-=I.avail_in,ue-=I.avail_out,I.total_in+=z,I.total_out+=ue,P.total+=ue,P.wrap&&ue&&(I.adler=P.check=P.flags?a(P.check,ee,ue,I.next_out-ue):s(P.check,ee,ue,I.next_out-ue)),I.data_type=P.bits+(P.last?64:0)+(P.mode===12?128:0)+(P.mode===20||P.mode===15?256:0),(z==0&&ue===0||F===4)&&be===f&&(be=-5),be)},i.inflateEnd=function(I){if(!I||!I.state)return p;var F=I.state;return F.window&&(F.window=null),I.state=null,f},i.inflateGetHeader=function(I,F){var P;return I&&I.state?(2&(P=I.state).wrap)==0?p:((P.head=F).done=!1,f):p},i.inflateSetDictionary=function(I,F){var P,W=F.length;return I&&I.state?(P=I.state).wrap!==0&&P.mode!==11?p:P.mode===11&&s(1,F,W,0)!==P.check?-3:U(I,F,W,W)?(P.mode=31,-4):(P.havedict=1,f):p},i.inflateInfo="pako inflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./inffast":48,"./inftrees":50}],50:[function(n,r,i){var o=n("../utils/common"),s=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],a=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],c=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],l=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64];r.exports=function(u,d,f,p,g,m,y,v){var w,S,C,E,T,x,O,A,L,U=v.bits,I=0,F=0,P=0,W=0,ee=0,Y=0,X=0,Z=0,G=0,Q=0,q=null,z=0,ue=new o.Buf16(16),ge=new o.Buf16(16),ae=null,j=0;for(I=0;I<=15;I++)ue[I]=0;for(F=0;F<p;F++)ue[d[f+F]]++;for(ee=U,W=15;1<=W&&ue[W]===0;W--);if(W<ee&&(ee=W),W===0)return g[m++]=20971520,g[m++]=20971520,v.bits=1,0;for(P=1;P<W&&ue[P]===0;P++);for(ee<P&&(ee=P),I=Z=1;I<=15;I++)if(Z<<=1,(Z-=ue[I])<0)return-1;if(0<Z&&(u===0||W!==1))return-1;for(ge[1]=0,I=1;I<15;I++)ge[I+1]=ge[I]+ue[I];for(F=0;F<p;F++)d[f+F]!==0&&(y[ge[d[f+F]]++]=F);if(x=u===0?(q=ae=y,19):u===1?(q=s,z-=257,ae=a,j-=257,256):(q=c,ae=l,-1),I=P,T=m,X=F=Q=0,C=-1,E=(G=1<<(Y=ee))-1,u===1&&852<G||u===2&&592<G)return 1;for(;;){for(O=I-X,L=y[F]<x?(A=0,y[F]):y[F]>x?(A=ae[j+y[F]],q[z+y[F]]):(A=96,0),w=1<<I-X,P=S=1<<Y;g[T+(Q>>X)+(S-=w)]=O<<24|A<<16|L|0,S!==0;);for(w=1<<I-1;Q&w;)w>>=1;if(w!==0?(Q&=w-1,Q+=w):Q=0,F++,--ue[I]==0){if(I===W)break;I=d[f+y[F]]}if(ee<I&&(Q&E)!==C){for(X===0&&(X=ee),T+=P,Z=1<<(Y=I-X);Y+X<W&&!((Z-=ue[Y+X])<=0);)Y++,Z<<=1;if(G+=1<<Y,u===1&&852<G||u===2&&592<G)return 1;g[C=Q&E]=ee<<24|Y<<16|T-m|0}}return Q!==0&&(g[T+Q]=I-X<<24|64<<16|0),v.bits=ee,0}},{"../utils/common":41}],51:[function(n,r,i){r.exports={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"}},{}],52:[function(n,r,i){var o=n("../utils/common"),s=0,a=1;function c(N){for(var $=N.length;0<=--$;)N[$]=0}var l=0,u=29,d=256,f=d+1+u,p=30,g=19,m=2*f+1,y=15,v=16,w=7,S=256,C=16,E=17,T=18,x=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],O=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],A=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],L=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],U=new Array(2*(f+2));c(U);var I=new Array(2*p);c(I);var F=new Array(512);c(F);var P=new Array(256);c(P);var W=new Array(u);c(W);var ee,Y,X,Z=new Array(p);function G(N,$,ce,pe,fe){this.static_tree=N,this.extra_bits=$,this.extra_base=ce,this.elems=pe,this.max_length=fe,this.has_stree=N&&N.length}function Q(N,$){this.dyn_tree=N,this.max_code=0,this.stat_desc=$}function q(N){return N<256?F[N]:F[256+(N>>>7)]}function z(N,$){N.pending_buf[N.pending++]=255&$,N.pending_buf[N.pending++]=$>>>8&255}function ue(N,$,ce){N.bi_valid>v-ce?(N.bi_buf|=$<<N.bi_valid&65535,z(N,N.bi_buf),N.bi_buf=$>>v-N.bi_valid,N.bi_valid+=ce-v):(N.bi_buf|=$<<N.bi_valid&65535,N.bi_valid+=ce)}function ge(N,$,ce){ue(N,ce[2*$],ce[2*$+1])}function ae(N,$){for(var ce=0;ce|=1&N,N>>>=1,ce<<=1,0<--$;);return ce>>>1}function j(N,$,ce){var pe,fe,we=new Array(y+1),Ee=0;for(pe=1;pe<=y;pe++)we[pe]=Ee=Ee+ce[pe-1]<<1;for(fe=0;fe<=$;fe++){var xe=N[2*fe+1];xe!==0&&(N[2*fe]=ae(we[xe]++,xe))}}function B(N){var $;for($=0;$<f;$++)N.dyn_ltree[2*$]=0;for($=0;$<p;$++)N.dyn_dtree[2*$]=0;for($=0;$<g;$++)N.bl_tree[2*$]=0;N.dyn_ltree[2*S]=1,N.opt_len=N.static_len=0,N.last_lit=N.matches=0}function re(N){8<N.bi_valid?z(N,N.bi_buf):0<N.bi_valid&&(N.pending_buf[N.pending++]=N.bi_buf),N.bi_buf=0,N.bi_valid=0}function oe(N,$,ce,pe){var fe=2*$,we=2*ce;return N[fe]<N[we]||N[fe]===N[we]&&pe[$]<=pe[ce]}function ne(N,$,ce){for(var pe=N.heap[ce],fe=ce<<1;fe<=N.heap_len&&(fe<N.heap_len&&oe($,N.heap[fe+1],N.heap[fe],N.depth)&&fe++,!oe($,pe,N.heap[fe],N.depth));)N.heap[ce]=N.heap[fe],ce=fe,fe<<=1;N.heap[ce]=pe}function J(N,$,ce){var pe,fe,we,Ee,xe=0;if(N.last_lit!==0)for(;pe=N.pending_buf[N.d_buf+2*xe]<<8|N.pending_buf[N.d_buf+2*xe+1],fe=N.pending_buf[N.l_buf+xe],xe++,pe===0?ge(N,fe,$):(ge(N,(we=P[fe])+d+1,$),(Ee=x[we])!==0&&ue(N,fe-=W[we],Ee),ge(N,we=q(--pe),ce),(Ee=O[we])!==0&&ue(N,pe-=Z[we],Ee)),xe<N.last_lit;);ge(N,S,$)}function Se(N,$){var ce,pe,fe,we=$.dyn_tree,Ee=$.stat_desc.static_tree,xe=$.stat_desc.has_stree,ve=$.stat_desc.elems,ke=-1;for(N.heap_len=0,N.heap_max=m,ce=0;ce<ve;ce++)we[2*ce]!==0?(N.heap[++N.heap_len]=ke=ce,N.depth[ce]=0):we[2*ce+1]=0;for(;N.heap_len<2;)we[2*(fe=N.heap[++N.heap_len]=ke<2?++ke:0)]=1,N.depth[fe]=0,N.opt_len--,xe&&(N.static_len-=Ee[2*fe+1]);for($.max_code=ke,ce=N.heap_len>>1;1<=ce;ce--)ne(N,we,ce);for(fe=ve;ce=N.heap[1],N.heap[1]=N.heap[N.heap_len--],ne(N,we,1),pe=N.heap[1],N.heap[--N.heap_max]=ce,N.heap[--N.heap_max]=pe,we[2*fe]=we[2*ce]+we[2*pe],N.depth[fe]=(N.depth[ce]>=N.depth[pe]?N.depth[ce]:N.depth[pe])+1,we[2*ce+1]=we[2*pe+1]=fe,N.heap[1]=fe++,ne(N,we,1),2<=N.heap_len;);N.heap[--N.heap_max]=N.heap[1],(function(He,Ge){var vt,Lt,$t,Yt,xo,ir,sn=Ge.dyn_tree,ai=Ge.max_code,_t=Ge.stat_desc.static_tree,wn=Ge.stat_desc.has_stree,Je=Ge.stat_desc.extra_bits,Un=Ge.stat_desc.extra_base,Oi=Ge.stat_desc.max_length,ur=0;for(Yt=0;Yt<=y;Yt++)He.bl_count[Yt]=0;for(sn[2*He.heap[He.heap_max]+1]=0,vt=He.heap_max+1;vt<m;vt++)Oi<(Yt=sn[2*sn[2*(Lt=He.heap[vt])+1]+1]+1)&&(Yt=Oi,ur++),sn[2*Lt+1]=Yt,ai<Lt||(He.bl_count[Yt]++,xo=0,Un<=Lt&&(xo=Je[Lt-Un]),ir=sn[2*Lt],He.opt_len+=ir*(Yt+xo),wn&&(He.static_len+=ir*(_t[2*Lt+1]+xo)));if(ur!==0){do{for(Yt=Oi-1;He.bl_count[Yt]===0;)Yt--;He.bl_count[Yt]--,He.bl_count[Yt+1]+=2,He.bl_count[Oi]--,ur-=2}while(0<ur);for(Yt=Oi;Yt!==0;Yt--)for(Lt=He.bl_count[Yt];Lt!==0;)ai<($t=He.heap[--vt])||(sn[2*$t+1]!==Yt&&(He.opt_len+=(Yt-sn[2*$t+1])*sn[2*$t],sn[2*$t+1]=Yt),Lt--)}})(N,$),j(we,ke,N.bl_count)}function H(N,$,ce){var pe,fe,we=-1,Ee=$[1],xe=0,ve=7,ke=4;for(Ee===0&&(ve=138,ke=3),$[2*(ce+1)+1]=65535,pe=0;pe<=ce;pe++)fe=Ee,Ee=$[2*(pe+1)+1],++xe<ve&&fe===Ee||(xe<ke?N.bl_tree[2*fe]+=xe:fe!==0?(fe!==we&&N.bl_tree[2*fe]++,N.bl_tree[2*C]++):xe<=10?N.bl_tree[2*E]++:N.bl_tree[2*T]++,we=fe,ke=(xe=0)===Ee?(ve=138,3):fe===Ee?(ve=6,3):(ve=7,4))}function be(N,$,ce){var pe,fe,we=-1,Ee=$[1],xe=0,ve=7,ke=4;for(Ee===0&&(ve=138,ke=3),pe=0;pe<=ce;pe++)if(fe=Ee,Ee=$[2*(pe+1)+1],!(++xe<ve&&fe===Ee)){if(xe<ke)for(;ge(N,fe,N.bl_tree),--xe!=0;);else fe!==0?(fe!==we&&(ge(N,fe,N.bl_tree),xe--),ge(N,C,N.bl_tree),ue(N,xe-3,2)):xe<=10?(ge(N,E,N.bl_tree),ue(N,xe-3,3)):(ge(N,T,N.bl_tree),ue(N,xe-11,7));we=fe,ke=(xe=0)===Ee?(ve=138,3):fe===Ee?(ve=6,3):(ve=7,4)}}c(Z);var V=!1;function M(N,$,ce,pe){ue(N,(l<<1)+(pe?1:0),3),(function(fe,we,Ee,xe){re(fe),z(fe,Ee),z(fe,~Ee),o.arraySet(fe.pending_buf,fe.window,we,Ee,fe.pending),fe.pending+=Ee})(N,$,ce)}i._tr_init=function(N){V||((function(){var $,ce,pe,fe,we,Ee=new Array(y+1);for(fe=pe=0;fe<u-1;fe++)for(W[fe]=pe,$=0;$<1<<x[fe];$++)P[pe++]=fe;for(P[pe-1]=fe,fe=we=0;fe<16;fe++)for(Z[fe]=we,$=0;$<1<<O[fe];$++)F[we++]=fe;for(we>>=7;fe<p;fe++)for(Z[fe]=we<<7,$=0;$<1<<O[fe]-7;$++)F[256+we++]=fe;for(ce=0;ce<=y;ce++)Ee[ce]=0;for($=0;$<=143;)U[2*$+1]=8,$++,Ee[8]++;for(;$<=255;)U[2*$+1]=9,$++,Ee[9]++;for(;$<=279;)U[2*$+1]=7,$++,Ee[7]++;for(;$<=287;)U[2*$+1]=8,$++,Ee[8]++;for(j(U,f+1,Ee),$=0;$<p;$++)I[2*$+1]=5,I[2*$]=ae($,5);ee=new G(U,x,d+1,f,y),Y=new G(I,O,0,p,y),X=new G(new Array(0),A,0,g,w)})(),V=!0),N.l_desc=new Q(N.dyn_ltree,ee),N.d_desc=new Q(N.dyn_dtree,Y),N.bl_desc=new Q(N.bl_tree,X),N.bi_buf=0,N.bi_valid=0,B(N)},i._tr_stored_block=M,i._tr_flush_block=function(N,$,ce,pe){var fe,we,Ee=0;0<N.level?(N.strm.data_type===2&&(N.strm.data_type=(function(xe){var ve,ke=4093624447;for(ve=0;ve<=31;ve++,ke>>>=1)if(1&ke&&xe.dyn_ltree[2*ve]!==0)return s;if(xe.dyn_ltree[18]!==0||xe.dyn_ltree[20]!==0||xe.dyn_ltree[26]!==0)return a;for(ve=32;ve<d;ve++)if(xe.dyn_ltree[2*ve]!==0)return a;return s})(N)),Se(N,N.l_desc),Se(N,N.d_desc),Ee=(function(xe){var ve;for(H(xe,xe.dyn_ltree,xe.l_desc.max_code),H(xe,xe.dyn_dtree,xe.d_desc.max_code),Se(xe,xe.bl_desc),ve=g-1;3<=ve&&xe.bl_tree[2*L[ve]+1]===0;ve--);return xe.opt_len+=3*(ve+1)+5+5+4,ve})(N),fe=N.opt_len+3+7>>>3,(we=N.static_len+3+7>>>3)<=fe&&(fe=we)):fe=we=ce+5,ce+4<=fe&&$!==-1?M(N,$,ce,pe):N.strategy===4||we===fe?(ue(N,2+(pe?1:0),3),J(N,U,I)):(ue(N,4+(pe?1:0),3),(function(xe,ve,ke,He){var Ge;for(ue(xe,ve-257,5),ue(xe,ke-1,5),ue(xe,He-4,4),Ge=0;Ge<He;Ge++)ue(xe,xe.bl_tree[2*L[Ge]+1],3);be(xe,xe.dyn_ltree,ve-1),be(xe,xe.dyn_dtree,ke-1)})(N,N.l_desc.max_code+1,N.d_desc.max_code+1,Ee+1),J(N,N.dyn_ltree,N.dyn_dtree)),B(N),pe&&re(N)},i._tr_tally=function(N,$,ce){return N.pending_buf[N.d_buf+2*N.last_lit]=$>>>8&255,N.pending_buf[N.d_buf+2*N.last_lit+1]=255&$,N.pending_buf[N.l_buf+N.last_lit]=255&ce,N.last_lit++,$===0?N.dyn_ltree[2*ce]++:(N.matches++,$--,N.dyn_ltree[2*(P[ce]+d+1)]++,N.dyn_dtree[2*q($)]++),N.last_lit===N.lit_bufsize-1},i._tr_align=function(N){ue(N,2,3),ge(N,S,U),(function($){$.bi_valid===16?(z($,$.bi_buf),$.bi_buf=0,$.bi_valid=0):8<=$.bi_valid&&($.pending_buf[$.pending++]=255&$.bi_buf,$.bi_buf>>=8,$.bi_valid-=8)})(N)}},{"../utils/common":41}],53:[function(n,r,i){r.exports=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}},{}],54:[function(n,r,i){(function(o){(function(s,a){if(!s.setImmediate){var c,l,u,d,f=1,p={},g=!1,m=s.document,y=Object.getPrototypeOf&&Object.getPrototypeOf(s);y=y&&y.setTimeout?y:s,c={}.toString.call(s.process)==="[object process]"?function(C){pn.nextTick(function(){w(C)})}:(function(){if(s.postMessage&&!s.importScripts){var C=!0,E=s.onmessage;return s.onmessage=function(){C=!1},s.postMessage("","*"),s.onmessage=E,C}})()?(d="setImmediate$"+Math.random()+"$",s.addEventListener?s.addEventListener("message",S,!1):s.attachEvent("onmessage",S),function(C){s.postMessage(d+C,"*")}):s.MessageChannel?((u=new MessageChannel).port1.onmessage=function(C){w(C.data)},function(C){u.port2.postMessage(C)}):m&&"onreadystatechange"in m.createElement("script")?(l=m.documentElement,function(C){var E=m.createElement("script");E.onreadystatechange=function(){w(C),E.onreadystatechange=null,l.removeChild(E),E=null},l.appendChild(E)}):function(C){setTimeout(w,0,C)},y.setImmediate=function(C){typeof C!="function"&&(C=new Function(""+C));for(var E=new Array(arguments.length-1),T=0;T<E.length;T++)E[T]=arguments[T+1];var x={callback:C,args:E};return p[f]=x,c(f),f++},y.clearImmediate=v}function v(C){delete p[C]}function w(C){if(g)setTimeout(w,0,C);else{var E=p[C];if(E){g=!0;try{(function(T){var x=T.callback,O=T.args;switch(O.length){case 0:x();break;case 1:x(O[0]);break;case 2:x(O[0],O[1]);break;case 3:x(O[0],O[1],O[2]);break;default:x.apply(a,O)}})(E)}finally{v(C),g=!1}}}}
1641function S(C){C.source===s&&typeof C.data=="string"&&C.data.indexOf(d)===0&&w(+C.data.slice(d.length))}})(typeof self>"u"?o===void 0?this:o:self)}).call(this,typeof rd<"u"?rd:typeof self<"u"?self:typeof window<"u"?window:{})},{}]},{},[10])(10)})})(v8)),v8.exports}var Den=Men();const Len=tIe(Den);var hS={exports:{}},y8,xle;function Fen(){if(xle)return y8;xle=1;var e={"&":"&amp;",'"':"&quot;","'":"&apos;","<":"&lt;",">":"&gt;"};function t(n){return n&&n.replace?n.replace(/([&"<>'])/g,function(r,i){return e[i]}):n}return y8=t,y8}var Ale;function jen(){if(Ale)return hS.exports;Ale=1;var e=Fen(),t=RG().Stream,n="    ";function r(l,u){typeof u!="object"&&(u={indent:u});var d=u.stream?new t:null,f="",p=!1,g=u.indent?u.indent===!0?n:u.indent:"",m=!0;function y(E){m?pn.nextTick(E):E()}function v(E,T){if(T!==void 0&&(f+=T),E&&!p&&(d=d||new t,p=!0),E&&p){var x=f;y(function(){d.emit("data",x)}),f=""}}function w(E,T){a(v,s(E,g,g?1:0),T)}function S(){if(d){var E=f;y(function(){d.emit("data",E),d.emit("end"),d.readable=!1,d.emit("close")})}}function C(E){var T=E.encoding||"UTF-8",x={version:"1.0",encoding:T};E.standalone&&(x.standalone=E.standalone),w({"?xml":{_attr:x}}),f=f.replace("/>","?>")}return y(function(){m=!1}),u.declaration&&C(u.declaration),l&&l.forEach?l.forEach(function(E,T){var x;T+1===l.length&&(x=S),w(E,x)}):w(l,S),d?(d.readable=!0,d):f}function i(){var l=Array.prototype.slice.call(arguments),u={_elem:s(l)};return u.push=function(d){if(!this.append)throw new Error("not assigned to a parent!");var f=this,p=this._elem.indent;a(this.append,s(d,p,this._elem.icount+(p?1:0)),function(){f.append(!0)})},u.close=function(d){d!==void 0&&this.push(d),this.end&&this.end()},u}function o(l,u){return new Array(u||0).join(l||"")}function s(l,u,d){d=d||0;var f=o(u,d),p,g=l,m=!1;if(typeof l=="object"){var y=Object.keys(l);if(p=y[0],g=l[p],g&&g._elem)return g._elem.name=p,g._elem.icount=d,g._elem.indent=u,g._elem.indents=f,g._elem.interrupt=g,g._elem}var v=[],w=[],S;function C(E){var T=Object.keys(E);T.forEach(function(x){v.push(c(x,E[x]))})}switch(typeof g){case"object":if(g===null)break;g._attr&&C(g._attr),g._cdata&&w.push(("<![CDATA["+g._cdata).replace(/\]\]>/g,"]]]]><![CDATA[>")+"]]>"),g.forEach&&(S=!1,w.push(""),g.forEach(function(E){if(typeof E=="object"){var T=Object.keys(E)[0];T=="_attr"?C(E._attr):w.push(s(E,u,d+1))}else w.pop(),S=!0,w.push(e(E))}),S||w.push(""));break;default:w.push(e(g))}return{name:p,interrupt:m,attributes:v,content:w,icount:d,indents:f,indent:u}}function a(l,u,d){if(typeof u!="object")return l(!1,u);var f=u.interrupt?1:u.content.length;function p(){for(;u.content.length;){var m=u.content.shift();if(m!==void 0){if(g(m))return;a(l,m)}}l(!1,(f>1?u.indents:"")+(u.name?"</"+u.name+">":"")+(u.indent&&!d?`
1642`:"")),d&&d()}function g(m){return m.interrupt?(m.interrupt.append=l,m.interrupt.end=p,m.interrupt=!1,l(!0),!0):!1}if(l(!1,u.indents+(u.name?"<"+u.name:"")+(u.attributes.length?" "+u.attributes.join(" "):"")+(f?u.name?">":"":u.name?"/>":"")+(u.indent&&f>1?`
1643`:"")),!f)return l(!1,u.indent?`
1644`:"");g(u)||p()}function c(l,u){return l+'="'+e(u)+'"'}return hS.exports=r,hS.exports.element=hS.exports.Element=i,hS.exports}var Uen=jen();const Fi=tIe(Uen),pS=0,b8=32,Ben=32,$en=(e,t)=>{const n=t.replace(/-/g,"");if(n.length!==Ben)throw new Error(`Error: Cannot extract GUID from font filename: ${t}`);const i=n.replace(/(..)/g,"$1 ").trim().split(" ").map(c=>parseInt(c,16));i.reverse();const s=e.slice(pS,b8).map((c,l)=>c^i[l%i.length]),a=new Uint8Array(pS+s.length+Math.max(0,e.length-b8));return a.set(e.slice(0,pS)),a.set(s,pS),a.set(e.slice(b8),pS+s.length),a};class Hen{format(t,n={stack:[]}){const r=t.prepForXml(n);if(r)return r;throw Error("XMLComponent did not format correctly")}}class zen{replace(t,n,r){let i=t;return n.forEach((o,s)=>{i=i.replace(new RegExp(`{${o.fileName}}`,"g"),(r+s).toString())}),i}getMediaData(t,n){return n.Array.filter(r=>t.search(`{${r.fileName}}`)>0)}}class Ven{replace(t,n){let r=t;for(const i of n)r=r.replace(new RegExp(`{${i.reference}-${i.instance}}`,"g"),i.numId.toString());return r}}class Wen{constructor(){Ve(this,"formatter"),Ve(this,"imageReplacer"),Ve(this,"numberingReplacer"),this.formatter=new Hen,this.imageReplacer=new zen,this.numberingReplacer=new Ven}compile(t,n){const r=new Len,i=this.xmlifyFile(t,n),o=new Map(Object.entries(i));for(const[,s]of o)if(Array.isArray(s))for(const a of s)r.file(a.path,a.data);else r.file(s.path,s.data);for(const s of t.Media.Array)s.type!=="svg"?r.file(`word/media/${s.fileName}`,s.data):(r.file(`word/media/${s.fileName}`,s.data),r.file(`word/media/${s.fallback.fileName}`,s.fallback.data));for(const{data:s,name:a,fontKey:c}of t.FontTable.fontOptionsWithKey){const[l]=a.split(".");r.file(`word/fonts/${l}.odttf`,$en(s,c))}return r}xmlifyFile(t,n){const r=t.Document.Relationships.RelationshipCount+1,i=Fi(this.formatter.format(t.Document.View,{viewWrapper:t.Document,file:t,stack:[]}),{indent:n,declaration:{standalone:"yes",encoding:"UTF-8"}}),o=this.imageReplacer.getMediaData(i,t.Media);
1644return{Relationships:{data:(o.forEach((s,a)=>{t.Document.Relationships.createRelationship(r+a,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/image",`media/${s.fileName}`)}),t.Document.Relationships.createRelationship(t.Document.Relationships.RelationshipCount+1,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/fontTable","fontTable.xml"),Fi(this.formatter.format(t.Document.Relationships,{viewWrapper:t.Document,file:t,stack:[]}),{indent:n,declaration:{encoding:"UTF-8"}})),path:"word/_rels/document.xml.rels"},Document:{data:(()=>{const s=this.imageReplacer.replace(i,o,r);return this.numberingReplacer.replace(s,t.Numbering.ConcreteNumbering)})(),path:"word/document.xml"},Styles:{data:(()=>{const s=Fi(this.formatter.format(t.Styles,{viewWrapper:t.Document,file:t,stack:[]}),{indent:n,declaration:{standalone:"yes",encoding:"UTF-8"}});return this.numberingReplacer.replace(s,t.Numbering.ConcreteNumbering)})(),path:"word/styles.xml"},Properties:{data:Fi(this.formatter.format(t.CoreProperties,{viewWrapper:t.Document,file:t,stack:[]}),{indent:n,declaration:{standalone:"yes",encoding:"UTF-8"}}),path:"docProps/core.xml"},Numbering:{data:Fi(this.formatter.format(t.Numbering,{viewWrapper:t.Document,file:t,stack:[]}),{indent:n,declaration:{standalone:"yes",encoding:"UTF-8"}}),path:"word/numbering.xml"},FileRelationships:{data:Fi(this.formatter.format(t.FileRelationships,{viewWrapper:t.Document,file:t,stack:[]}),{indent:n,declaration:{encoding:"UTF-8"}}),path:"_rels/.rels"},HeaderRelationships:t.Headers.map((s,a)=>{const c=Fi(this.formatter.format(s.View,{viewWrapper:s,file:t,stack:[]}),{indent:n,declaration:{encoding:"UTF-8"}});return this.imageReplacer.getMediaData(c,t.Media).forEach((u,d)=>{s.Relationships.createRelationship(d,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/image",`media/${u.fileName}`)}),{data:Fi(this.formatter.format(s.Relationships,{viewWrapper:s,file:t,stack:[]}),{indent:n,declaration:{encoding:"UTF-8"}}),path:`word/_rels/header${a+1}.xml.rels`}}),FooterRelationships:t.Footers.map((s,a)=>{const c=Fi(this.formatter.format(s.View,{viewWrapper:s,file:t,stack:[]}),{indent:n,declaration:{encoding:"UTF-8"}});return this.imageReplacer.getMediaData(c,t.Media).forEach((u,d)=>{s.Relationships.createRelationship(d,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/image",`media/${u.fileName}`)}),{data:Fi(this.formatter.format(s.Relationships,{viewWrapper:s,file:t,stack:[]}),{indent:n,declaration:{encoding:"UTF-8"}}),path:`word/_rels/footer${a+1}.xml.rels`}}),Headers:t.Headers.map((s,a)=>{const c=Fi(this.formatter.format(s.View,{viewWrapper:s,file:t,stack:[]}),{indent:n,declaration:{encoding:"UTF-8"}}),l=this.imageReplacer.getMediaData(c,t.Media),u=this.imageReplacer.replace(c,l,0);return{data:this.numberingReplacer.replace(u,t.Numbering.ConcreteNumbering),path:`word/header${a+1}.xml`}}),Footers:t.Footers.map((s,a)=>{const c=Fi(this.formatter.format(s.View,{viewWrapper:s,file:t,stack:[]}),{indent:n,declaration:{encoding:"UTF-8"}}),l=this.imageReplacer.getMediaData(c,t.Media),u=this.imageReplacer.replace(c,l,0);return{data:this.numberingReplacer.replace(u,t.Numbering.ConcreteNumbering),path:`word/footer${a+1}.xml`}}),ContentTypes:{data:Fi(this.formatter.format(t.ContentTypes,{viewWrapper:t.Document,file:t,stack:[]}),{indent:n,declaration:{encoding:"UTF-8"}}),path:"[Content_Types].xml"},CustomProperties:{data:Fi(this.formatter.format(t.CustomProperties,{viewWrapper:t.Document,file:t,stack:[]}),{indent:n,declaration:{standalone:"yes",encoding:"UTF-8"}}),path:"docProps/custom.xml"},AppProperties:{data:Fi(this.formatter.format(t.AppProperties,{viewWrapper:t.Document,file:t,stack:[]}),{indent:n,declaration:{standalone:"yes",encoding:"UTF-8"}}),path:"docProps/app.xml"},FootNotes:{data:Fi(this.formatter.format(t.FootNotes.View,{viewWrapper:t.FootNotes,file:t,stack:[]}),{indent:n,declaration:{encoding:"UTF-8"}}),path:"word/footnotes.xml"},FootNotesRelationships:{data:Fi(this.formatter.format(t.FootNotes.Relationships,{viewWrapper:t.FootNotes,file:t,stack:[]}),{indent:n,declaration:{encoding:"UTF-8"}}),path:"word/_rels/footnotes.xml.rels"},Settings:{data:Fi(this.formatter.format(t.Settings,{viewWrapper:t.Document,file:t,stack:[]}),{indent:n,declaration:{standalone:"yes",encoding:"UTF-8"}}),path:"word/settings.xml"},Comments:{data:Fi(this.formatter.format(t.Comments,{viewWrapper:t.Document,file:t,stack:[]}),{indent:n,declaration:{standalone:"yes",encoding:"UTF-8"}}),path:"word/comments.xml"},FontTable:{data:Fi(this.formatter.format(t.FontTable.View,{viewWrapper:t.Document,file:t,stack:[]}),{indent:n,declaration:{standalone:"yes",encoding:"UTF-8"}}),path:"word/fontTable.xml"},FontTableRelationships:{data:Fi(this.formatter.format(t.FontTable.Relationships,{viewWrapper:t.Document,file:t,stack:[]}),{indent:n,declaration:{encoding:"UTF-8"}}),path:"word/_rels/fontTable.xml.rels"}}}}const qen={WITH_2_BLANKS:"  "},mS=e=>e===!0?qen.WITH_2_BLANKS:e===!1?void 0:e;class LIe{static toString(t,n){return Lk(this,null,function*(){return yield this.compiler.compile(t,mS(n)).generateAsync({type:"string",mimeType:"application/vnd.openxmlformats-officedocument.wordprocessingml.document",compression:"DEFLATE"})})}static toBuffer(t,n){return Lk(this,null,function*(){return yield this.compiler.compile(t,mS(n)).generateAsync({type:"nodebuffer",mimeType:"application/vnd.openxmlformats-officedocument.wordprocessingml.document",compression:"DEFLATE"})})}static toBase64String(t,n){return Lk(this,null,function*(){return yield this.compiler.compile(t,mS(n)).generateAsync({type:"base64",mimeType:"application/vnd.openxmlformats-officedocument.wordprocessingml.document",compression:"DEFLATE"})})}static toBlob(t,n){return Lk(this,null,function*(){return yield this.compiler.compile(t,mS(n)).generateAsync({type:"blob",mimeType:"application/vnd.openxmlformats-officedocument.wordprocessingml.document",compression:"DEFLATE"})})}static toStream(t,n){const r=new Nen.Stream;return this.compiler.compile(t,mS(n)).generateAsync({type:"nodebuffer",mimeType:"application/vnd.openxmlformats-officedocument.wordprocessingml.document",compression:"DEFLATE"}).then(o=>{r.emit("data",o),r.emit("end")}),r}}Ve(LIe,"compiler",new Wen);const Gen="_Recording_141fb_1",Ken="_RecordingHeader_141fb_10",Yen="_RecordingTitle_141fb_16",Qen="_RecordingMainBody_141fb_25",Xen="_RecordingTranscript_141fb_31",Jen="_RecordingPanelTitle_141fb_41",Zen="_Download_141fb_52",etn="_RecordingTranscriptCaptions_141fb_72",ttn="_RecordingCaption_141fb_90",ntn="_RecordingCaptionTitle_141fb_99",rt
1644n="_RecordingCaptionTimestamp_141fb_106",itn="_HighlightedCaption_141fb_119",otn="_RecordingLeftSide_141fb_124",stn="_RecordingPlayback_141fb_142",atn="_Summary_141fb_178",ctn="_Loader_141fb_182",ltn="_SummaryContent_141fb_187",utn="_RecordingAdditionalInfo_141fb_203",dtn="_TranscriptTitle_141fb_207",ftn="_TranscriptTitleActions_141fb_212",htn="_Search_141fb_262",Xn={Recording:Gen,RecordingHeader:Ken,RecordingTitle:Yen,RecordingMainBody:Qen,RecordingTranscript:Xen,RecordingPanelTitle:Jen,Download:Zen,RecordingTranscriptCaptions:etn,RecordingCaption:ttn,RecordingCaptionTitle:ntn,RecordingCaptionTimestamp:rtn,HighlightedCaption:itn,RecordingLeftSide:otn,RecordingPlayback:stn,Summary:atn,Loader:ctn,SummaryContent:ltn,RecordingAdditionalInfo:utn,TranscriptTitle:dtn,TranscriptTitleActions:ftn,Search:htn},ptn="_ErrorMessage_kg6hd_11",w8={Error:"_Error_kg6hd_1",ErrorMessage:ptn},S8=e=>h.jsxs("div",{className:w8.Error,children:[h.jsxs("div",{className:w8.ErrorMessage,children:[h.jsx("h2",{children:e.errorMessage??"Something went wrong"}),e.messageBody&&h.jsxs(h.Fragment,{children:[h.jsx("br",{}),h.jsx("h3",{children:e.messageBody})]})]}),h.jsx("div",{className:w8.ErrorButton,children:h.jsx(qe,{onClick:()=>window.location.href="/",children:"Back to Home"})})]}),mtn=()=>{var V,M;const e=mE(),t=b.useMemo(()=>e.id,[e.id]),[n,r]=b.useState("loading"),[i,o]=b.useState("en"),[s,a]=b.useState([]),[c,l]=b.useState([]),[u,d]=b.useState(),[f,p]=b.useState([]),[g,m]=b.useState(""),y=b.useRef(null),v=Cn(),w=Gt.useGetRecording(v),S=Gt.useGenerateSummary(v),[C,E]=b.useState(),[T,x
1644]=b.useState(),[O,A]=b.useState([]),[L]=Jt(),[U,I]=b.useState(),[F,P]=b.useState([]),[W,ee]=b.useState(0),[Y,X]=b.useState(!1);b.useEffect(()=>{const N=localStorage.getItem("TIME_OFFSET");N&&ee(parseFloat(N)),console.log(`Use timeOffset in local storage to adjust caption timing
1645E.g.: window.timeOffset = -2.5 will shift captions 2.5s earlier`),console.log(`Current TIME_OFFSET: ${N||0}`)},[]);const Z=b.useCallback((N,$)=>(new Date(N.first_created).getTime()-new Date($).getTime())/1e3-3+W,[W]);b.useEffect(()=>{(async()=>{var N,$;if(t)try{const ce=await w({recording_id:t});if(ce.status==204){r("recordingInSession");return}const{recording:pe,transcript:fe,signedUrl:we,host:Ee,participants:xe}=ce.data;if(!pe||!fe)return;const ve=fe.map(Ge=>Ge.translations),ke=[...new Set(ve.flatMap(Ge=>Object.keys(Ge)))];let He=[];pe.egress_started_at&&(console.log(`recording.egress_started_at: ${pe.egress_started_at}`),He=fe.map(Ge=>({timestamp:Z(Ge,pe.egress_started_at??pe.created_at),id:Ge.id}))),console.log(He),E(pe),A(fe),x(we),a(ke),o(ke[0]),l(He),I(Ee),P(xe),r("done")}catch(ce){console.error(ce),D$(ce)?((N=ce.response)==null?void 0:N.status)===Tj.Unauthorized?r("unauthorized"):(($=ce.response)==null?void 0:$.status)===Tj.NotFound?r("notFound"):r("error"):r("error")}})()},[Z,w,t]),b.useEffect(()=>{let N;if(C!=null&&C.summaries&&"loading"in C.summaries&&t)return N=setInterval(async()=>{try{const ce=(await w({recording_id:t})).data.recording;ce&&(!ce.summaries||!("loading"in ce.summaries))&&(E(pe=>({...pe,summaries:ce.summaries})),clearInterval(N))}catch($){console.error("Failed to poll for summary:",$),clearInterval(N)}},3e3),()=>{N&&clearInterval(N)}},[C==null?void 0:C.summaries,t,w]);const G=b.useCallback(async()=>{if(!(!C||!t))try{E(N=>({...N,summaries:{loading:!0}})),await S({recordingId:t})}catch(N){console.error(N)}},[S,C,t]),Q=b.useCallback(async()=>{if(!O||!O.length||!i||!C)return;const N=new Date(O[0].first_created).getTime(),$=new Oen({sections:[{children:[new Xy({children:[new vy({text:C.name,bold:!0,size:36})]}),new Xy({children:[new PIe({children:[new vy({text:"VIEW RECORDING",style:"Hyperlink",bold:!0,break:1})],link:location.href})]}),...O.map(we=>{const Ee=Math.floor((new Date(we.first_created).getTime()-N)/1e3),xe=Math.floor(Ee/60),ve=Ee%60,ke=`@${xe}:${ve.toString().padStart(2,"0")}`;return new Xy({children:[new vy({text:`${ke} - ${we.speaker_name}`,bold:!0,break:2}),new vy({text:we.translations[i],break:1})]})})]}]}),ce=await LIe.toBlob($),pe=URL.createObjectURL(ce),fe=document.createElement("a");fe.href=pe,fe.download=`transcript_${C.created_at.slice(0,10)}_${i}.docx`,document.body.appendChild(fe),fe.click(),document.body.removeChild(fe),URL.revokeObjectURL(pe)},[O,i,C]),q=N=>{if(Y){X(!1);return}const $=N.target;if(c&&c.length){const ce=z($.currentTime,0,(c==null?void 0:c.length)-1);d(ce?{id:ce}:void 0)}},z=(N,$,ce)=>{if($>ce)return console.warn(`The timestamp ${N} was not found`),null;const pe=Math.floor(($+ce)/2);if(pe<ce){if(c[pe].timestamp<=N&&N<c[pe+1].timestamp)return c[pe].id}else if(c[pe].timestamp<=N)return c[pe].id;return c[pe].timestamp>N?z(N,$,pe-1):c[pe].timestamp<N?z(N,pe+1,ce):(console.warn(`The timestamp ${N} was not found. Start: ${$}, End: ${ce}`),null)};b.useEffect(()=>{p(g&&i?O==null?void 0:O.filter(N=>N.translations[i]).filter(N=>N.translations[i].toLowerCase().includes(g.toLowerCase())):[])},[g,i,O]);const[ue,ge]=b.useState(!0);b.useEffect(()=>{ge(!g.length)},[g.length]);const ae=b.useRef(void 0),j=b.useRef(),B=N=>{var pe;const $=j.current,ce=document.getElementById(N);if($&&ce){const fe=$.getBoundingClientRect(),we=ce.getBoundingClientRect();(pe=j.current)==null||pe.scrollTo({top:$.scrollTop+(we.top-fe.top)-100,behavior:"smooth"})}};b.useEffect(()=>{var N;j.current&&ue&&u&&u.id!==((N=ae.current)==null?void 0:N.id)&&(B(u.id),ae.current=u)},[ue,u,j]);const[re,oe]=b.useState(0),ne=b.useCallback(N=>{if(N.key==="Enter"&&(f!=null&&f.length)){const $=f[re];B($.id),oe(ce=>ce<f.length-1?ce+1:0)}},[f,re]),J=b.useCallback(N=>{const $=ce=>ce.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&");if(g.length){const ce=new RegExp(`(${$(g.toLowerCase())})`,"g"),pe=N.toLowerCase().split(ce);if(pe.length>1){let fe=0;return pe.map(we=>{const Ee=fe,xe=fe+we.length;return fe+=we.length,N.substring(Ee,xe)}).map((we,Ee)=>we.toLowerCase()===g.toLowerCase()?h.jsx("mark",{children:we},Ee):h.jsx("span",{children:we},Ee))}}return N},[g]),Se=ks(),H=b.useMemo(()=>C?h.jsxs("div",{className:Xn.RecordingTranscript,children:[h.jsxs("div",{className:Xn.RecordingPanelTitle,children:[h.jsx("h2",{className:Xn.TranscriptTitle,children:"Transcript"}),h.jsxs("div",{className:Xn.TranscriptTitleActions,children:[h.jsx(qe,{onClick:Q,className:Xn.Download,color:"white",borderColor:"dark-gray",size:"small",children:h.jsx(jft,{size:20})}),h.jsx(mV,{query:g,setQuery:N=>m(N),onKeyDown:ne,className:Xn.Search}),!!(s!=null&&s.length)&&h.jsx(Ia,{selected:i,onChange:N=>typeof N=="string"&&o(N),align:"end",items:s.map(N=>({value:N,label:yDe[N]}))})]})]}),h.jsx(QP,{scrollableNodeProps:{ref:j}
1645,className:Xn.RecordingTranscriptCaptions,children:f&&i&&O.filter(N=>N.translations[i]).map(N=>h.jsxs("div",{id:N.id,className:Xn.RecordingCaption+((u==null?void 0:u.id)===N.id?` ${Xn.HighlightedCaption}`:""),onClick:()=>{y.current&&(X(!0),d({id:N.id}),y.current.currentTime=Z(N,C.egress_started_at??C.created_at))},children:[h.jsxs("div",{className:Xn.RecordingCaptionTitle,children:[h.jsx("span",{children:N.speaker_name}),h.jsx("span",{className:Xn.RecordingCaptionTimestamp,children:new Date(N.first_created).toLocaleTimeString("en-US",{hour:"numeric",minute:"numeric"})})]}),h.jsx("div",{children:J(N.translations[i])})]},N.id))})]}):null,[s,Z,Q,u==null?void 0:u.id,g,C,i,J,f,ne,O]),be=b.useMemo(()=>{if(C&&!(!L.auth&&C.summaries===null))return h.jsxs("div",{className:Xn.Summary,children:[h.jsx("h2",{className:Xn.RecordingPanelTitle,children:"Summary"}),C.summaries!==null&&h.jsx(h.Fragment,{children:h.jsx("div",{children:"loading"in C.summaries?h.jsx("div",{className:Xn.Loader,children:h.jsx(Sn,{inline:!0})}):"error"in C.summaries?h.jsx("p",{children:"Failed to generate summary. Please contact support."}):h.jsx("div",{className:Xn.SummaryContent,children:h.jsx(TQt,{children:C.summaries[i]})})})}),L.auth&&C.summaries===null&&t&&h.jsx(qe,{onClick:G,style:{marginTop:16},size:"medium",children:"Generate Summary"})]})},[G,C,t,i,L.auth]);return n==="loading"?h.jsx("div",{className:Xn.Recording,children:h.jsx(Sn,{})}):n==="recordingInSession"?h.jsx("div",{className:Xn.Recording,children:h.jsx(w_e,{message:"Recording not yet available. We'll alert you via email once it is ready"})}):n==="unauthorized"?h.jsx("div",{className:Xn.Recording,children:h.jsx(S8,{errorMessage:"You are not authorized to view this recording.",messageBody:"Please sign in. If you are already signed in, please request the owner of the recording to share it with you"})}):n==="error"?h.jsx("div",{className:Xn.Recording,children:h.jsx(S8,{})}):n==="notFound"?h.jsx("div",{className:Xn.Recording,children:h.jsx(S8,{errorMessage:"Sorry this recording is no longer available."})}):h.jsx("div",{className:Xn.Recording,children:O&&C&&h.jsxs(h.Fragment,{children:[h.jsxs("div",{className:Xn.RecordingHeader,children:[h.jsx(iq,{items:[{label:"Home",url:"/"},{label:"Meetings",url:"/meetings"},{label:C.name,url:location.href}]}),h.jsxs("div",{className:Xn.RecordingTitle,children:[h.jsx("h1",{children:C.name}),((V=L.auth)==null?void 0:V.id)&&F.map(N=>N.id).includes((M=L.auth)==null?void 0:M.id)&&h.jsx(RQt,{recordingId:C.id,isPublic:C.public})]})]}),h.jsxs("div",{className:Xn.RecordingMainBody,children:[h.jsxs("div",{className:Xn.RecordingLeftSide,children:[T&&h.jsx(h.Fragment,{children:h.jsxs("div",{className:Xn.RecordingPlayback,children:[h.jsx("h2",{className:Xn.RecordingPanelTitle,children:"Playback"}),T&&(C==null?void 0:C.room_type)==="meeting"&&h.jsx("video",{src:T,autoPlay:!1,controls:!0,onTimeUpdate:q,ref:N=>{y.current=N}}),T&&((C==null?void 0:C.room_type)==="event"||(C==null?void 0:C.room_type)==="teams")&&h.jsx("audio",{src:T,autoPlay:!1,controls:!0,onTimeUpdate:q,ref:y})]})}),Se?H:be,h.jsxs("div",{className:Xn.RecordingAdditionalInfo,children:[h.jsx("h2",{className:Xn.RecordingPanelTitle,children:"Additional Information"}),h.jsx("div",{children:h.jsx("div",{children:`Date: ${new Date(C.created_at).toLocaleDateString()} ${new Date(C.created_at).toLocaleTimeString()}`})}),h.jsx("br",{}),U&&`Host: ${U}`,C.room_type==="meeting"&&h.jsxs(h.Fragment,{children:[h.jsx("br",{}),h.jsx("br",{}),"Participants:"," ",F.map(N=>N.name).join(", ")]})]})]}),Se?be:H]})]})})},gtn="_EventDetails_c290x_1",vtn="_Header_c290x_8",ytn="_Title_c290x_16",btn="_Badge_c290x_29",wtn="_HeaderButtons_c290x_44",Stn="_InstructionsTitle_c290x_49",_tn="_QRCodes_c290x_53",Ctn="_InstructionImage_c290x_68",Etn="_InstructionSection_c290x_77",Ttn="_QRCodeDetails_c290x_88",ktn="_Text_c290x_95",xtn="_QRCode_c290x_53",Atn="_Link_c290x_113",Itn="_ShareActions_c290x_140",Ds={EventDetails:gtn,Header:vtn,Title:ytn,Badge:btn,HeaderButtons:wtn,InstructionsTitle:Stn,QRCodes:_tn,InstructionImage:Ctn,InstructionSection:Etn,QRCodeDetails:Ttn,Text:ktn,QRCode:xtn,Link:Atn,ShareActions:Itn};function Rtn(e){return St({attr:{viewBox:"0 0 1024 1024"},child:[{tag:"path",attr:{d:"M820 436h-40c-4.4 0-8 3.6-8 8v40c0 4.4 3.6 8 8 8h40c4.4 0 8-3.6 8-8v-40c0-4.4-3.6-8-8-8zm32-104H732V120c0-4.4-3.6-8-8-8H300c-4.4 0-8 3.6-8 8v212H172c-44.2 0-80 35.8-80 80v328c0 17.7 14.3 32 32 32h168v132c0 4.4 3.6 8 8 8h424c4.4 0 8-3.6 8-8V772h168c17.7 0 32-14.3 32-32V412c0-44.2-35.8-80-80-80zM360 180h304v152H360V180zm304 664H360V568h304v276zm200-140H732V500H292v204H160V412c0-6.6 5.4-12 12-12h680c6.6 0 12 5.4 12 12v292z"},child:[]}]})(e)}var Ptn=function(){return typeof Promise=="function"&&Promise.prototype&&Promise.prototype.then},FIe={},gc={};let jG;const Otn=[0,26,44,70,100,134,172,196,242,292,346,404,466,532,581,655,733,815,901,991,1085,1156,1258,1364,1474,1588,1706,1828,1921,2051,2185,2323,2465,2611,2761,2876,3034,3196,3362,3532,3706];gc.getSymbolSize=function(t){if(!t)throw new Error('"version" cannot be null or undefined');if(t<1||t>40)throw new Error('"version" should be in range from 1 to 40');return t*4+17};gc.getSymbolTotalCodewords=function(t){return Otn[t]};gc.getBCHDigit=function(e){let t=0;for(;e!==0;)t++,e>>>=1;return t};gc.setToSJISFunction=function(t){if(typeof t!="function")throw new Error('"toSJISFunc" is not a valid function.');jG=t};gc.isKanjiModeEnabled=function(){return typeof jG<"u"};gc.toSJIS=function(t){return jG(t)};var _4={};(function(e){e.L={bit:1},e.M={bit:0},e.Q={bit:3},e.H={bit:2};
vendor: 8,715 bytes, lines 1645-1646
1645function t(n){if(typeof n!="string")throw new Error("Param is not a string");switch(n.toLowerCase()){case"l":case"low":return e.L;case"m":case"medium":return e.M;case"q":case"quartile":return e.Q;case"h":case"high":return e.H;default:throw new Error("Unknown EC Level: "+n)}}e.isValid=function(r){return r&&typeof r.bit<"u"&&r.bit>=0&&r.bit<4},e.from=function(r,i){if(e.isValid(r))return r;try{return t(r)}catch{return i}}})(_4);function jIe(){this.buffer=[],this.length=0}jIe.prototype={get:function(e){const t=Math.floor(e/8);return(this.buffer[t]>>>7-e%8&1)===1},put:function(e,t){for(let n=0;n<t;n++)this.putBit((e>>>t-n-1&1)===1)},getLengthInBits:function(){return this.length},putBit:function(e){const t=Math.floor(this.length/8);this.buffer.length<=t&&this.buffer.push(0),e&&(this.buffer[t]|=128>>>this.length%8),this.length++}};var Ntn=jIe;function _2(e){if(!e||e<1)throw new Error("BitMatrix size must be defined and greater than 0");this.size=e,this.data=new Uint8Array(e*e),this.reservedBit=new Uint8Array(e*e)}_2.prototype.set=function(e,t,n,r){const i=e*this.size+t;this.data[i]=n,r&&(this.reservedBit[i]=!0)};_2.prototype.get=function(e,t){return this.data[e*this.size+t]};_2.prototype.xor=function(e,t,n){this.data[e*this.size+t]^=n};_2.prototype.isReserved=function(e,t){return this.reservedBit[e*this.size+t]};var Mtn=_2,UIe={};(function(e){const t=gc.getSymbolSize;e.getRowColCoords=function(r){if(r===1)return[];const i=Math.floor(r/7)+2,o=t(r),s=o===145?26:Math.ceil((o-13)/(2*i-2))*2,a=[o-7];for(let c=1;c<i-1;c++)a[c]=a[c-1]-s;return a.push(6),a.reverse()},e.getPositions=function(r){const i=[],o=e.getRowColCoords(r),s=o.length;for(let a=0;a<s;a++)for(let c=0;c<s;c++)a===0&&c===0||a===0&&c===s-1||a===s-1&&c===0||i.push([o[a],o[c]]);return i}})(UIe);var BIe={};const Dtn=gc.getSymbolSize,Ile=7;BIe.getPositions=function(t){const n=Dtn(t);return[[0,0],[n-Ile,0],[0,n-Ile]]};var $Ie={};(function(e){e.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};const t={N1:3,N2:3,N3:40,N4:10};e.isValid=function(i){return i!=null&&i!==""&&!isNaN(i)&&i>=0&&i<=7},e.from=function(i){return e.isValid(i)?parseInt(i,10):void 0},e.getPenaltyN1=function(i){const o=i.size;let s=0,a=0,c=0,l=null,u=null;for(let d=0;d<o;d++){a=c=0,l=u=null;for(let f=0;f<o;f++){let p=i.get(d,f);p===l?a++:(a>=5&&(s+=t.N1+(a-5)),l=p,a=1),p=i.get(f,d),p===u?c++:(c>=5&&(s+=t.N1+(c-5)),u=p,c=1)}a>=5&&(s+=t.N1+(a-5)),c>=5&&(s+=t.N1+(c-5))}return s},e.getPenaltyN2=function(i){const o=i.size;let s=0;for(let a=0;a<o-1;a++)for(let c=0;c<o-1;c++){const l=i.get(a,c)+i.get(a,c+1)+i.get(a+1,c)+i.get(a+1,c+1);(l===4||l===0)&&s++}return s*t.N2},e.getPenaltyN3=function(i){const o=i.size;let s=0,a=0,c=0;for(let l=0;l<o;l++){a=c=0;for(let u=0;u<o;u++)a=a<<1&2047|i.get(l,u),u>=10&&(a===1488||a===93)&&s++,c=c<<1&2047|i.get(u,l),u>=10&&(c===1488||c===93)&&s++}return s*t.N3},e.getPenaltyN4=function(i){let o=0;const s=i.data.length;for(let c=0;c<s;c++)o+=i.data[c];return Math.abs(Math.ceil(o*100/s/5)-10)*t.N4};function n(r,i,o){switch(r){case e.Patterns.PATTERN000:return(i+o)%2===0;case e.Patterns.PATTERN001:return i%2===0;case e.Patterns.PATTERN010:return o%3===0;case e.Patterns.PATTERN011:return(i+o)%3===0;case e.Patterns.PATTERN100:return(Math.floor(i/2)+Math.floor(o/3))%2===0;case e.Patterns.PATTERN101:return i*o%2+i*o%3===0;case e.Patterns.PATTERN110:return(i*o%2+i*o%3)%2===0;case e.Patterns.PATTERN111:return(i*o%3+(i+o)%2)%2===0;default:throw new Error("bad maskPattern:"+r)}}e.applyMask=function(i,o){const s=o.size;for(let a=0;a<s;a++)for(let c=0;c<s;c++)o.isReserved(c,a)||o.xor(c,a,n(i,c,a))},e.getBestMask=function(i,o){const s=Object.keys(e.Patterns).length;let a=0,c=1/0;for(let l=0;l<s;l++){o(l),e.applyMask(l,i);const u=e.getPenaltyN1(i)+e.getPenaltyN2(i)+e.getPenaltyN3(i)+e.getPenaltyN4(i);e.applyMask(l,i),u<c&&(c=u,a=l)}return a}})($Ie);var C4={};const Ap=_4,Kk=[1,1,1,1,1,1,1,1,1,1,2,2,1,2,2,4,1,2,4,4,2,4,4,4,2,4,6,5,2,4,6,6,2,5,8,8,4,5,8,8,4,5,8,11,4,8,10,11,4,9,12,16,4,9,16,16,6,10,12,18,6,10,17,16,6,11,16,19,6,13,18,21,7,14,21,25,8,16,20,25,8,17,23,25,9,17,23,34,9,18,25,30,10,20,27,32,12,21,29,35,12,23,34,37,12,25,34,40,13,26,35,42,14,28,38,45,15,29,40,48,16,31,43,51,17,33,45,54,18,35,48,57,19,37,51,60,19,38,53,63,20,40,56,66,21,43,59,70,22,45,62,74,24,47,65,77,25,49,68,81],Yk=[7,10,13,17,10,16,22,28,15,26,36,44,20,36,52,64,26,48,72,88,36,64,96,112,40,72,108,130,48,88,132,156,60,110,160,192,72,130,192,224,80,150,224,264,96,176,260,308,104,198,288,352,120,216,320,384,132,240,360,432,144,280,408,480,168,308,448,532,180,338,504,588,196,364,546,650,224,416,600,700,224,442,644,750,252,476,690,816,270,504,750,900,300,560,810,960,312,588,870,1050,336,644,952,1110,360,700,1020,1200,390,728,1050,1260,420,784,1140,1350,450,812,1200,1440,480,868,1290,1530,510,924,1350,1620,540,980,1440,1710,570,1036,1530,1800,570,1064,1590,1890,600,1120,1680,1980,630,1204,1770,2100,660,1260,1860,2220,720,1316,1950,2310,750,1372,2040,2430];C4.getBlocksCount=function(t,n){switch(n){case Ap.L:return Kk[(t-1)*4+0];case Ap.M:return Kk[(t-1)*4+1];case Ap.Q:return Kk[(t-1)*4+2];case Ap.H:return Kk[(t-1)*4+3];default:return}};C4.getTotalCodewordsCount=function(t,n){switch(n){case Ap.L:return Yk[(t-1)*4+0];case Ap.M:return Yk[(t-1)*4+1];case Ap.Q:return Yk[(t-1)*4+2];case Ap.H:return Yk[(t-1)*4+3];default:return}};var HIe={},E4={};const T_=new Uint8Array(512),N3=new Uint8Array(256);(function(){let t=1;for(let n=0;n<255;n++)T_[n]=t,N3[t]=n,t<<=1,t&256&&(t^=285);for(let n=255;n<512;n++)T_[n]=T_[n-255]})();E4.log=function(t){if(t<1)throw new Error("log("+t+")");return N3[t]};E4.exp=function(t){return T_[t]};E4.mul=function(t,n){return t===0||n===0?0:T_[N3[t]+N3[n]]};(function(e){const t=E4;e.mul=function(r,i){const o=new Uint8Array(r.length+i.length-1);for(let s=0;s<r.length;s++)for(let a=0;a<i.length;a++)o[s+a]^=t.mul(r[s],i[a]);return o},e.mod=function(r,i){let o=new Uint8Array(r);for(;o.length-i.length>=0;){const s=o[0];for(let c=0;c<i.length;c++)o[c]^=t.mul(i[c],s);let a=0;for(;a<o.length&&o[a]===0;)a++;o=o.slice(a)}return o},e.generateECPolynomial=function(r){let i=new Uint8Array([1]);for(let o=0;o<r;o++)i=e.mul(i,new Uint8Array([1,t.exp(o)]));return i}})(HIe);const zIe=HIe;function UG(e){this.genPoly=void 0,this.degree=e,this.degree&&this.initialize(this.degree)}UG.prototype.initialize=function(t){this.degree=t,this.genPoly=zIe.generateECPolynomial(this.degree)};UG.prototype.encode=function(t){if(!this.genPoly)throw new Error("Encoder not initialized");const n=new Uint8Array(t.length+this.degree);n.set(t);const r=zIe.mod(n,this.genPoly),i=this.degree-r.length;if(i>0){const o=new Uint8Array(this.degree);return o.set(r,i),o}return r};var Ltn=UG,VIe={},Wm={},BG={};BG.isValid=function(t){return!isNaN(t)&&t>=1&&t<=40};var $d={};const WIe="[0-9]+",Ftn="[A-Z $%*+\\-./:]+";let QC="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";QC=QC.replace(/u/g,"\\u");const jtn="(?:(?![A-Z0-9 $%*+\\-./:]|"+QC+`)(?:.|[\r
1646]))+`;$d.KANJI=new RegExp(QC,"g");$d.BYTE_KANJI=new RegExp("[^A-Z0-9 $%*+\\-./:]+","g");$d.BYTE=new RegExp(jtn,"g");$d.NUMERIC=new RegExp(WIe,"g");$d.ALPHANUMERIC=new RegExp(Ftn,"g");const Utn=new RegExp("^"+QC+"$"),Btn=new RegExp("^"+WIe+"$"),$tn=new RegExp("^[A-Z0-9 $%*+\\-./:]+$");$d.testKanji=function(t){return Utn.test(t)};$d.testNumeric=function(t){return Btn.test(t)};$d.testAlphanumeric=function(t){return $tn.test(t)};(function(e){const t=BG,n=$d;e.NUMERIC={id:"Numeric",bit:1,ccBits:[10,12,14]},e.ALPHANUMERIC={id:"Alphanumeric",bit:2,ccBits:[9,11,13]},e.BYTE={id:"Byte",bit:4,ccBits:[8,16,16]},e.KANJI={id:"Kanji",bit:8,ccBits:[8,10,12]},e.MIXED={bit:-1},e.getCharCountIndicator=function(o,s){if(!o.ccBits)throw new Error("Invalid mode: "+o);if(!t.isValid(s))throw new Error("Invalid version: "+s);return s>=1&&s<10?o.ccBits[0]:s<27?o.ccBits[1]:o.ccBits[2]},e.getBestModeForData=function(o){return n.testNumeric(o)?e.NUMERIC:n.testAlphanumeric(o)?e.ALPHANUMERIC:n.testKanji(o)?e.KANJI:e.BYTE},e.toString=function(o){if(o&&o.id)return o.id;throw new Error("Invalid mode")},e.isValid=function(o){return o&&o.bit&&o.ccBits};function r(i){if(typeof i!="string")throw new Error("Param is not a string");switch(i.toLowerCase()){case"numeric":return e.NUMERIC;case"alphanumeric":return e.ALPHANUMERIC;case"kanji":return e.KANJI;case"byte":return e.BYTE;default:throw new Error("Unknown mode: "+i)}}e.from=function(o,s){if(e.isValid(o))return o;try{return r(o)}catch{return s}}})(Wm);(function(e){const t=gc,n=C4,r=_4,i=Wm,o=BG,s=7973,a=t.getBCHDigit
vendor: 8,364 bytes, lines 1646-1648
1646(s);function c(f,p,g){for(let m=1;m<=40;m++)if(p<=e.getCapacity(m,g,f))return m}function l(f,p){return i.getCharCountIndicator(f,p)+4}function u(f,p){let g=0;return f.forEach(function(m){const y=l(m.mode,p);g+=y+m.getBitsLength()}),g}function d(f,p){for(let g=1;g<=40;g++)if(u(f,g)<=e.getCapacity(g,p,i.MIXED))return g}e.from=function(p,g){return o.isValid(p)?parseInt(p,10):g},e.getCapacity=function(p,g,m){if(!o.isValid(p))throw new Error("Invalid QR Code version");typeof m>"u"&&(m=i.BYTE);const y=t.getSymbolTotalCodewords(p),v=n.getTotalCodewordsCount(p,g),w=(y-v)*8;if(m===i.MIXED)return w;const S=w-l(m,p);switch(m){case i.NUMERIC:return Math.floor(S/10*3);case i.ALPHANUMERIC:return Math.floor(S/11*2);case i.KANJI:return Math.floor(S/13);case i.BYTE:default:return Math.floor(S/8)}},e.getBestVersionForData=function(p,g){let m;const y=r.from(g,r.M);if(Array.isArray(p)){if(p.length>1)return d(p,y);if(p.length===0)return 1;m=p[0]}else m=p;return c(m.mode,m.getLength(),y)},e.getEncodedBits=function(p){if(!o.isValid(p)||p<7)throw new Error("Invalid QR Code version");let g=p<<12;for(;t.getBCHDigit(g)-a>=0;)g^=s<<t.getBCHDigit(g)-a;return p<<12|g}})(VIe);var qIe={};const HU=gc,GIe=1335,Htn=21522,Rle=HU.getBCHDigit(GIe);qIe.getEncodedBits=function(t,n){const r=t.bit<<3|n;let i=r<<10;for(;HU.getBCHDigit(i)-Rle>=0;)i^=GIe<<HU.getBCHDigit(i)-Rle;return(r<<10|i)^Htn};var KIe={};const ztn=Wm;function sb(e){this.mode=ztn.NUMERIC,this.data=e.toString()}sb.getBitsLength=function(t){return 10*Math.floor(t/3)+(t%3?t%3*3+1:0)};sb.prototype.getLength=function(){return this.data.length};sb.prototype.getBitsLength=function(){return sb.getBitsLength(this.data.length)};sb.prototype.write=function(t){let n,r,i;for(n=0;n+3<=this.data.length;n+=3)r=this.data.substr(n,3),i=parseInt(r,10),t.put(i,10);const o=this.data.length-n;o>0&&(r=this.data.substr(n),i=parseInt(r,10),t.put(i,o*3+1))};var Vtn=sb;const Wtn=Wm,_8=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"," ","$","%","*","+","-",".","/",":"];function ab(e){this.mode=Wtn.ALPHANUMERIC,this.data=e}ab.getBitsLength=function(t){return 11*Math.floor(t/2)+6*(t%2)};ab.prototype.getLength=function(){return this.data.length};ab.prototype.getBitsLength=function(){return ab.getBitsLength(this.data.length)};ab.prototype.write=function(t){let n;for(n=0;n+2<=this.data.length;n+=2){let r=_8.indexOf(this.data[n])*45;r+=_8.indexOf(this.data[n+1]),t.put(r,11)}this.data.length%2&&t.put(_8.indexOf(this.data[n]),6)};var qtn=ab,Gtn=function(t){for(var n=[],r=t.length,i=0;i<r;i++){var o=t.charCodeAt(i);if(o>=55296&&o<=56319&&r>i+1){var s=t.charCodeAt(i+1);s>=56320&&s<=57343&&(o=(o-55296)*1024+s-56320+65536,i+=1)}if(o<128){n.push(o);continue}if(o<2048){n.push(o>>6|192),n.push(o&63|128);continue}if(o<55296||o>=57344&&o<65536){n.push(o>>12|224),n.push(o>>6&63|128),n.push(o&63|128);continue}if(o>=65536&&o<=1114111){n.push(o>>18|240),n.push(o>>12&63|128),n.push(o>>6&63|128),n.push(o&63|128);continue}n.push(239,191,189)}return new Uint8Array(n).buffer};const Ktn=Gtn,Ytn=Wm;function cb(e){this.mode=Ytn.BYTE,typeof e=="string"&&(e=Ktn(e)),this.data=new Uint8Array(e)}cb.getBitsLength=function(t){return t*8};cb.prototype.getLength=function(){return this.data.length};cb.prototype.getBitsLength=function(){return cb.getBitsLength(this.data.length)};cb.prototype.write=function(e){for(let t=0,n=this.data.length;t<n;t++)e.put(this.data[t],8)};var Qtn=cb;const Xtn=Wm,Jtn=gc;function lb(e){this.mode=Xtn.KANJI,this.data=e}lb.getBitsLength=function(t){return t*13};lb.prototype.getLength=function(){return this.data.length};lb.prototype.getBitsLength=function(){return lb.getBitsLength(this.data.length)};lb.prototype.write=function(e){let t;for(t=0;t<this.data.length;t++){let n=Jtn.toSJIS(this.data[t]);if(n>=33088&&n<=40956)n-=33088;else if(n>=57408&&n<=60351)n-=49472;else throw new Error("Invalid SJIS character: "+this.data[t]+`
1647Make sure your charset is UTF-8`);n=(n>>>8&255)*192+(n&255),e.put(n,13)}};var Ztn=lb,YIe={exports:{}};(function(e){var t={single_source_shortest_paths:function(n,r,i){var o={},s={};s[r]=0;var a=t.PriorityQueue.make();a.push(r,0);for(var c,l,u,d,f,p,g,m,y;!a.empty();){c=a.pop(),l=c.value,d=c.cost,f=n[l]||{};for(u in f)f.hasOwnProperty(u)&&(p=f[u],g=d+p,m=s[u],y=typeof s[u]>"u",(y||m>g)&&(s[u]=g,a.push(u,g),o[u]=l))}if(typeof i<"u"&&typeof s[i]>"u"){var v=["Could not find a path from ",r," to ",i,"."].join("");throw new Error(v)}return o},extract_shortest_path_from_predecessor_list:function(n,r){for(var i=[],o=r;o;)i.push(o),n[o],o=n[o];return i.reverse(),i},find_path:function(n,r,i){var o=t.single_source_shortest_paths(n,r,i);return t.extract_shortest_path_from_predecessor_list(o,i)},PriorityQueue:{make:function(n){var r=t.PriorityQueue,i={},o;n=n||{};for(o in r)r.hasOwnProperty(o)&&(i[o]=r[o]);return i.queue=[],i.sorter=n.sorter||r.default_sorter,i},default_sorter:function(n,r){return n.cost-r.cost},push:function(n,r){var i={value:n,cost:r};this.queue.push(i),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return this.queue.length===0}}};e.exports=t})(YIe);var enn=YIe.exports;(function(e){const t=Wm,n=Vtn,r=qtn,i=Qtn,o=Ztn,s=$d,a=gc,c=enn;function l(v){return unescape(encodeURIComponent(v)).length}function u(v,w,S){const C=[];let E;for(;(E=v.exec(S))!==null;)C.push({data:E[0],index:E.index,mode:w,length:E[0].length});return C}function d(v){const w=u(s.NUMERIC,t.NUMERIC,v),S=u(s.ALPHANUMERIC,t.ALPHANUMERIC,v);let C,E;return a.isKanjiModeEnabled()?(C=u(s.BYTE,t.BYTE,v),E=u(s.KANJI,t.KANJI,v)):(C=u(s.BYTE_KANJI,t.BYTE,v),E=[]),w.concat(S,C,E).sort(function(x,O){return x.index-O.index}).map(function(x){return{data:x.data,mode:x.mode,length:x.length}})}function f(v,w){switch(w){case t.NUMERIC:return n.getBitsLength(v);case t.ALPHANUMERIC:return r.getBitsLength(v);case t.KANJI:return o.getBitsLength(v);case t.BYTE:return i.getBitsLength(v)}}function p(v){return v.reduce(function(w,S){const C=w.length-1>=0?w[w.length-1]:null;return C&&C.mode===S.mode?(w[w.length-1].data+=S.data,w):(w.push(S),w)},[])}function g(v){const w=[];for(let S=0;S<v.length;S++){const C=v[S];switch(C.mode){case t.NUMERIC:w.push([C,{data:C.data,mode:t.ALPHANUMERIC,length:C.length},{data:C.data,mode:t.BYTE,length:C.length}]);break;case t.ALPHANUMERIC:w.push([C,{data:C.data,mode:t.BYTE,length:C.length}]);break;case t.KANJI:w.push([C,{data:C.data,mode:t.BYTE,length:l(C.data)}]);break;case t.BYTE:w.push([{data:C.data,mode:t.BYTE,length:l(C.data)}])}}return w}function m(v,w){const S={},C={start:{}};let E=["start"];for(let T=0;T<v.length;T++){const x=v[T],O=[];for(let A=0;A<x.length;A++){const L=x[A],U=""+T+A;O.push(U),S[U]={node:L,lastCount:0},C[U]={};for(let I=0;I<E.length;I++){const F=E[I];S[F]&&S[F].node.mode===L.mode?(C[F][U]=f(S[F].lastCount+L.length,L.mode)-f(S[F].lastCount,L.mode),S[F].lastCount+=L.length):(S[F]&&(S[F].lastCount=L.length),C[F][U]=f(L.length,L.mode)+4+t.getCharCountIndicator(L.mode,w))}}E=O}for(let T=0;T<E.length;T++)C[E[T]].end=0;return{map:C,table:S}}function y(v,w){let S;const C=t.getBestModeForData(v);if(S=t.from(w,C),S!==t.BYTE&&S.bit<C.bit)throw new Error('"'+v+'" cannot be encoded with mode '+t.toString(S)+`.
1648 Suggested mode is: `+t.toString(C));switch(S===t.KANJI&&!a.isKanjiModeEnabled()&&(S=t.BYTE),S){case t.NUMERIC:return new n(v);case t.ALPHANUMERIC:return new r(v);case t.KANJI:return new o(v);case t.BYTE:return new i(v)}}e.fromArray=function(w){return w.reduce(function(S,C){return typeof C=="string"?S.push(y(C,null)):C.data&&S.push(y(C.data,C.mode)),S},[])},e.fromString=function(w,S){const C=d(w,a.isKanjiModeEnabled()),E=g(C),T=m(E,S),x=c.find_path(T.map,"start","end"),O=[];for(let A=1;A<x.length-1;A++)O.push(T.table[x[A]].node);return e.fromArray(p(O))},e.rawSplit=function(w){return e.fromArray(d(w,a.isKanjiModeEnabled()))}})(KIe);const T4=gc,C8=_4,tnn=Ntn,nnn=Mtn,rnn=UIe,inn=BIe,zU=$Ie,VU=C4,onn=Ltn,M3=VIe,snn=qIe,ann=Wm,E8=KIe;function cnn(e,t){const n=e.size,r=inn.getPositions(t);for(let i=0;i<r.length;i++){const o=r[i][0],s=r[i][1];for(let a=-1;a<=7;a++)if(!(o+a<=-1||n<=o+a))for(let c=-1;c<=7;c++)s+c<=-1||n<=s+c||(a>=0&&a<=6&&(c===0||c===6)||c>=0&&c<=6&&(a===0||a===6)||a>=2&&a<=4&&c>=2&&c<=4?e.set(o+a,s+c,!0,!0):e.set(o+a,s+c,!1,!0))}}function lnn(e){const t=e.size;
vendor: 5,467 bytes, lines 1648-1651
1648for(let n=8;n<t-8;n++){const r=n%2===0;e.set(n,6,r,!0),e.set(6,n,r,!0)}}function unn(e,t){const n=rnn.getPositions(t);for(let r=0;r<n.length;r++){const i=n[r][0],o=n[r][1];for(let s=-2;s<=2;s++)for(let a=-2;a<=2;a++)s===-2||s===2||a===-2||a===2||s===0&&a===0?e.set(i+s,o+a,!0,!0):e.set(i+s,o+a,!1,!0)}}function dnn(e,t){const n=e.size,r=M3.getEncodedBits(t);let i,o,s;for(let a=0;a<18;a++)i=Math.floor(a/3),o=a%3+n-8-3,s=(r>>a&1)===1,e.set(i,o,s,!0),e.set(o,i,s,!0)}function T8(e,t,n){const r=e.size,i=snn.getEncodedBits(t,n);let o,s;for(o=0;o<15;o++)s=(i>>o&1)===1,o<6?e.set(o,8,s,!0):o<8?e.set(o+1,8,s,!0):e.set(r-15+o,8,s,!0),o<8?e.set(8,r-o-1,s,!0):o<9?e.set(8,15-o-1+1,s,!0):e.set(8,15-o-1,s,!0);e.set(r-8,8,1,!0)}function fnn(e,t){const n=e.size;let r=-1,i=n-1,o=7,s=0;for(let a=n-1;a>0;a-=2)for(a===6&&a--;;){for(let c=0;c<2;c++)if(!e.isReserved(i,a-c)){let l=!1;s<t.length&&(l=(t[s]>>>o&1)===1),e.set(i,a-c,l),o--,o===-1&&(s++,o=7)}if(i+=r,i<0||n<=i){i-=r,r=-r;break}}}function hnn(e,t,n){const r=new tnn;n.forEach(function(c){r.put(c.mode.bit,4),r.put(c.getLength(),ann.getCharCountIndicator(c.mode,e)),c.write(r)});const i=T4.getSymbolTotalCodewords(e),o=VU.getTotalCodewordsCount(e,t),s=(i-o)*8;for(r.getLengthInBits()+4<=s&&r.put(0,4);r.getLengthInBits()%8!==0;)r.putBit(0);const a=(s-r.getLengthInBits())/8;for(let c=0;c<a;c++)r.put(c%2?17:236,8);return pnn(r,e,t)}function pnn(e,t,n){const r=T4.getSymbolTotalCodewords(t),i=VU.getTotalCodewordsCount(t,n),o=r-i,s=VU.getBlocksCount(t,n),a=r%s,c=s-a,l=Math.floor(r/s),u=Math.floor(o/s),d=u+1,f=l-u,p=new onn(f);let g=0;const m=new Array(s),y=new Array(s);let v=0;const w=new Uint8Array(e.buffer);for(let x=0;x<s;x++){const O=x<c?u:d;m[x]=w.slice(g,g+O),y[x]=p.encode(m[x]),g+=O,v=Math.max(v,O)}const S=new Uint8Array(r);let C=0,E,T;for(E=0;E<v;E++)for(T=0;T<s;T++)E<m[T].length&&(S[C++]=m[T][E]);for(E=0;E<f;E++)for(T=0;T<s;T++)S[C++]=y[T][E];return S}function mnn(e,t,n,r){let i;if(Array.isArray(e))i=E8.fromArray(e);else if(typeof e=="string"){let l=t;if(!l){const u=E8.rawSplit(e);l=M3.getBestVersionForData(u,n)}i=E8.fromString(e,l||40)}else throw new Error("Invalid data");const o=M3.getBestVersionForData(i,n);if(!o)throw new Error("The amount of data is too big to be stored in a QR Code");if(!t)t=o;else if(t<o)throw new Error(`
1649The chosen QR Code version cannot contain this amount of data.
1650Minimum version required to store current data is: `+o+`.
1651`);const s=hnn(t,n,i),a=T4.getSymbolSize(t),c=new nnn(a);return cnn(c,t),lnn(c),unn(c,t),T8(c,n,0),t>=7&&dnn(c,t),fnn(c,s),isNaN(r)&&(r=zU.getBestMask(c,T8.bind(null,c,n))),zU.applyMask(r,c),T8(c,n,r),{modules:c,version:t,errorCorrectionLevel:n,maskPattern:r,segments:i}}FIe.create=function(t,n){if(typeof t>"u"||t==="")throw new Error("No input text");let r=C8.M,i,o;return typeof n<"u"&&(r=C8.from(n.errorCorrectionLevel,C8.M),i=M3.from(n.version),o=zU.from(n.maskPattern),n.toSJISFunc&&T4.setToSJISFunction(n.toSJISFunc)),mnn(t,i,r,o)};var QIe={},$G={};(function(e){function t(n){if(typeof n=="number"&&(n=n.toString()),typeof n!="string")throw new Error("Color should be defined as hex string");let r=n.slice().replace("#","").split("");if(r.length<3||r.length===5||r.length>8)throw new Error("Invalid hex color: "+n);(r.length===3||r.length===4)&&(r=Array.prototype.concat.apply([],r.map(function(o){return[o,o]}))),r.length===6&&r.push("F","F");const i=parseInt(r.join(""),16);return{r:i>>24&255,g:i>>16&255,b:i>>8&255,a:i&255,hex:"#"+r.slice(0,6).join("")}}e.getOptions=function(r){r||(r={}),r.color||(r.color={});const i=typeof r.margin>"u"||r.margin===null||r.margin<0?4:r.margin,o=r.width&&r.width>=21?r.width:void 0,s=r.scale||4;return{width:o,scale:o?4:s,margin:i,color:{dark:t(r.color.dark||"#000000ff"),light:t(r.color.light||"#ffffffff")},type:r.type,rendererOpts:r.rendererOpts||{}}},e.getScale=function(r,i){return i.width&&i.width>=r+i.margin*2?i.width/(r+i.margin*2):i.scale},e.getImageWidth=function(r,i){const o=e.getScale(r,i);return Math.floor((r+i.margin*2)*o)},e.qrToImageData=function(r,i,o){const s=i.modules.size,a=i.modules.data,c=e.getScale(s,o),l=Math.floor((s+o.margin*2)*c),u=o.margin*c,d=[o.color.light,o.color.dark];for(let f=0;f<l;f++)for(let p=0;p<l;p++){let g=(f*l+p)*4,m=o.color.light;if(f>=u&&p>=u&&f<l-u&&p<l-u){const y=Math.floor((f-u)/c),v=Math.floor((p-u)/c);m=d[a[y*s+v]?1:0]}r[g++]=m.r,r[g++]=m.g,r[g++]=m.b,r[g]=m.a}}})($G);(function(e){const t=$G;function n(i,o,s){i.clearRect(0,0,o.width,o.height),o.style||(o.style={}),o.height=s,o.width=s,o.style.height=s+"px",o.style.width=s+"px"}function r(){try{return document.createElement("canvas")}catch{throw new Error("You need to specify a canvas element")}}e.render=function(o,s,a){let c=a,l=s;typeof c>"u"&&(!s||!s.getContext)&&(c=s,s=void 0),s||(l=r()),c=t.getOptions(c);const u=t.getImageWidth(o.modules.size,c),d=l.getContext("2d"),f=d.createImageData(u,u);return t.qrToImageData(f.data,o,c),n(d,l,u),d.putImageData(f,0,0),l},e.renderToDataURL=function(o,s,a){let c=a;typeof c>"u"&&(!s||!s.getContext)&&(c=s,s=void 0),c||(c={});const l=e.render(o,s,c),u=c.type||"image/png",d=c.rendererOpts||{};return l.toDataURL(u,d.quality)}})(QIe);var XIe={};const gnn=$G;function Ple(e,t){const n=e.a/255,r=t+'="'+e.hex+'"';return n<1?r+" "+t+'-opacity="'+n.toFixed(2).slice(1)+'"':r}function k8(e,t,n){let r=e+t;return typeof n<"u"&&(r+=" "+n),r}function vnn(e,t,n){let r="",i=0,o=!1,s=0;for(let a=0;a<e.length;a++){const c=Math.floor(a%t),l=Math.floor(a/t);
1651!c&&!o&&(o=!0),e[a]?(s++,a>0&&c>0&&e[a-1]||(r+=o?k8("M",c+n,.5+l+n):k8("m",i,0),i=0,o=!1),c+1<t&&e[a+1]||(r+=k8("h",s),s=0)):i++}return r}XIe.render=function(t,n,r){const i=gnn.getOptions(n),o=t.modules.size,s=t.modules.data,a=o+i.margin*2,c=i.color.light.a?"<path "+Ple(i.color.light,"fill")+' d="M0 0h'+a+"v"+a+'H0z"/>':"",l="<path "+Ple(i.color.dark,"stroke")+' d="'+vnn(s,o,i.margin)+'"/>',u='viewBox="0 0 '+a+" "+a+'"',f='<svg xmlns="http://www.w3.org/2000/svg" '+(i.width?'width="'+i.width+'" height="'+i.width+'" ':"")+u+' shape-rendering="crispEdges">'+c+l+`</svg>
1652`;return typeof r=="function"&&r(null,f),f};const ynn=Ptn,WU=FIe,JIe=QIe,bnn=XIe;function HG(e,t,n,r,i){const o=[].slice.call(arguments,1),s=o.length,a=typeof o[s-1]=="function";if(!a&&!ynn())throw new Error("Callback required as last argument");if(a){if(s<2)throw new Error("Too few arguments provided");s===2?(i=n,n=t,t=r=void 0):s===3&&(t.getContext&&typeof i>"u"?(i=r,r=void 0):(i=r,r=n,n=t,t=void 0))}else{if(s<1)throw new Error("Too few arguments provided");return s===1?(n=t,t=r=void 0):s===2&&!t.getContext&&(r=n,n=t,t=void 0),new Promise(function(c,l){try{const u=WU.create(n,r);c(e(u,t,r))}catch(u){l(u)}})}try{const c=WU.create(n,r);i(null,e(c,t,r))}catch(c){i(c)}}WU.create;HG.bind(null,JIe.render);var wnn=HG.bind(null,JIe.renderToDataURL);HG.bind(null,function(e,t,n){return bnn.render(e,n)});const Snn="/assets/speaker-CsbYw7Pj.webp",_nn="/assets/attendee-BKG-Tlei.webp",Cnn="/assets/interpreter-Y1YgiRUP.webp";function Enn({type:e,pin:t,title:n,description:r}){const i=_h(),o=b.useMemo(()=>{const y=i;switch(e){case"speaker":return ux(`/event/${y}/speaker?pin=${t}`);case"interpreter":return ux(`/event/${y}/interpreter?pin=${t}`);case"attendee":return ux(`/event/${y}`)}},[e,t,i]),[s,a]=b.useState(),c=b.useCallback(async y=>{y!==null&&a(await wnn(y,o,{width:160}))},[o]),l=b.useCallback(()=>{if(!s)return;const y=document.createElement("a");y.download=`${e}_qr_code.png`,y.href=s,document.body.appendChild(y),y.click(),document.body.removeChild(y)},[e,s]),u=b.useCallback(()=>{if(!s)return;const y=window.open("","_blank","width=600,height=600");if(!y)return;const v=y.document.createElement("style");v.textContent=`
1653      body, html {
1654        margin: 0;
1655        width: 100%;
1656        height: 100%;
1657        display: flex;
1658        justify-content: center;
1659        align-items: center;
1660        background-color: black;
1661      }
1662      img { width: 100%; }
1663    `,y.document.head.appendChild(v);const w=new Image;w.src=s,y.document.body.appendChild(w),y.print()},[s]),[d,f]=b.useState(!1),p=b.useRef(void 0),g=b.useCallback(()=>{clearTimeout(p.current),navigator.clipboard.writeText(o),f(!0),p.current=setTimeout(()=>{f(!1)},1500)},[o]),m=b.useMemo(()=>{switch(e){case"attendee":return"an attendee";case"interpreter":return"an interpreter";case"speaker":return"a speaker"}},[e]);return h.jsxs(h.Fragment,{children:[h.jsxs("div",{className:Ds.QRCodeDetails,children:[h.jsxs("div",{className:Ds.Text,children:[h.jsx("h2",{children:n}),h.jsx("p",{children:r}),h.jsxs("div",{className:Ds.Link,children:[h.jsx(It,{target:"_blank",rel:"noreferrer",to:o,children:o}),d?h.jsx(lm,{onClick:g}):h.jsx(Wft,{onClick:g})]})]}),h.jsx("canvas",{ref:c,className:Ds.QRCode})]}),h.jsxs("div",{className:Ds.ShareActions,children:[h.jsx(Prt,{onClick:l}),h.jsx(It,{target:"_blank",to:`mailto:?body=${encodeURIComponent("Copy and paste this link to access real-time translation as "+m+": "+o)}&subject=${encodeURIComponent("Join the Langfinity event for live translation!")}`,children:h.jsx(Frt,{})}),h.jsx(Rtn,{onClick:u})]})]})}function Tnn(){const{room:e,organization:t,loading:n}=Rr();if(!e||!t||n)return h.jsx(Sn,{});const r=[{image:Snn,type:"speaker",title:"I'm a speaker",description:"Share the URL or QR code to invite a speaker to join the event or conference"},{image:_nn,type:"attendee",title:"I'm an attendee",description:"Share the URL or QR code to invite an attendee to join the event or conference"},{image:Cnn,type:"interpreter",title:"I'm an interpreter",description:"Share the URL or QR code to invite an interpreter to interpret the event or conference"}];return h.jsxs("div",{className:Ds.EventDetails,children:[h.jsx(iq,{items:[{label:"Home",url:"/"},{label:"Meetings",url:"/meetings"},{label:e.name,url:location.href}]}),h.jsxs("div",{className:Ds.Header,children:[h.jsxs("div",{className:Ds.Title,children:[h.jsxs("div",{children:[h.jsx("h1",{children:e.name}),h.jsx("div",{className:Ds.Badge,children:"Langfinity"})]}),h.jsxs("div",{children:[e.start_time&&e.end_time&&h.jsx("h2",{children:h.jsx(xO,{start:e.start_time.toString(),end:e.end_time.toString(),reoccurring:e.reoccurring})}),h.jsx("h2",{children:e.languages.map(i=>Kr(i)).join(", ")}),e.auto_record&&h.jsx("h2",{children:"Recording enabled"})]})]}),h.jsxs("div",{className:Ds.HeaderButtons,children:[h.jsx(It,{to:`/edit/${e.id}`,children:h.jsx(qe,{color:"gray",backgroundColor:"black",borderColor:"dark-gray",children:"Edit"})}),h.jsx(gke,{trigger:h.jsx(qe,{color:"gray",backgroundColor:"black",borderColor:"dark-gray",children:"Share"}),shareUrl:window.location.href,description:"Copy the link to share this event with admins"})]})]}),h.jsx("h2",{className:Ds.InstructionsTitle,children:"Instructions"}),h.jsx("div",{className:Ds.QRCodes,children:r.filter(i=>i.type!=="interpreter"||i.type==="interpreter"&&t.human_interpreter_enabled).map(i=>h.jsxs("div",{className:Ds.Card,children:[h.jsx("img",{src:i.image,className:Ds.InstructionImage}),h.jsx("div",{className:Ds.InstructionSection,children:h.jsx(Enn,{title:i.title,de
1663scription:i.description,type:i.type,pin:e.pin})})]},i.type))})]})}const ZIe=()=>{const e=b.useContext(Na);return[e.eventViewer,e.setEventViewer]},knn="_EventWaitingRoom_738ou_1",xnn="_SupportToggle_738ou_20",Ann="_Footer_738ou_28",Inn="_LanguageSelectAndJoin_738ou_45",Rnn="_CantJoin_738ou_63",O0={EventWaitingRoom:knn,SupportToggle:xnn,Footer:Ann,LanguageSelectAndJoin:Inn,CantJoin:Rnn};function Pnn(){const{room:e,loading:t}=Rr(),[,n]=ZIe(),r=c_e(),[i,o]=b.useState(!1),s=Cn(),a=Gt.useGenerateLivekitToken(s),c=_h(),[l]=Jt(),[u,d]=b.useState(!0);b.useEffect(()=>{const p=()=>{if(!e||!e.start_time||!e.end_time)return;const m=new Date;let y=new Date(e.start_time),v=new Date(e.end_time);if(e.reoccurring){const w=v.getTime()-y.getTime(),C=[-1,0,1].map(E=>new Date(m.getFullYear(),m.getMonth(),m.getDate()+E,y.getHours(),y.getMinutes(),y.getSeconds()).getTime()).reduce((E,T)=>Math.abs(T-m.getTime())<Math.abs(E-m.getTime())?T:E);y=new Date(C),v=new Date(C+w)}if(!e.available_24_7){if((y.getTime()-m.getTime())/6e4>30){d("event_not_started");return}if((m.getTime()-v.getTime())/6e4>30){d("event_ended");return}}d(!0)};p();const g=setInterval(p,5*1e3);return()=>{clearInterval(g)}},[e]);const f=ls();return!e||t?h.jsx(Sn,{}):h.jsxs(h.Fragment,{children:[h.jsx(Sq,{open:i,onOpenChange:o}),h.jsxs("div",{className:O0.EventWaitingRoom,children:[h.jsx("img",{src:p3,alt:"Langfinity"}),h.jsx(AO,{room:e,hideParticipants:!0}),h.jsxs("div",{className:O0.LanguageSelectAndJoin,children:[h.jsxs("div",{children:[h.jsx("h3",{children:"Choose your language"}),h.jsx(dh,{color:"white",borderColor:"dark-gray",backgroundColor:"dark-gray",languages:e.languages})]}),h.jsx(qe,{disabled:u!==!0,onClick:async()=>{var p,g;f({type:"click_join_as_attendee",details:{room_id:c,language:l.metadata.selectedLanguage}});try{await a({room:c,identity:l.livekitId}),n(m=>({...m,joined:!0}))}catch(m){if(!(m instanceof Sb)||m.status!==403)throw m;if(((p=m.response)==null?void 0:p.data.message)==="EVENT_NOT_STARTED")return mt(h.jsx("div",{className:"Toast",children:h.jsx("div",{children:"Event has not yet started"})}));if(((g=m.response)==null?void 0:g.data.message)==="EVENT_ENDED")return mt(h.jsx("div",{className:"Toast",children:h.jsx("div",{children:"This event has ended, thanks for joining us"})}));throw m}},children:r("JOIN")}),u==="event_ended"?h.jsx("p",{className:O0.CantJoin,children:"This event has ended, thanks for joining us!"}):void 0,u==="event_not_started"?h.jsx("p",{className:O0.CantJoin,children:"This event hasn't started yet, stay tuned!"}):void 0,h.jsxs("p",{children:["Having issues?"," ",h.jsx("span",{onClick:()=>o(!0),className:O0.SupportToggle,children:"Contact support"})]})]}),h.jsxs("div",{className:O0.Footer,children:[h.jsxs("p",{children:[h.jsx("a",{target:"_blank",rel:"noreferrer",href:"https://byrdh
1663ouse.notion.site/byrdhouse/Privacy-Policy-c71b7c579187429da97f8aec36b1585e",children:r("PRIVACY_POLICY")})," ","/"," ",h.jsx("a",{target:"_blank",rel:"noreferrer",href:"https://byrdhouse.notion.site/byrdhouse/Terms-of-Service-7d7aa2e356ef4f22bec82a8d885fdc4d",children:r("TERMS_OF_SERVICE")})]}),h.jsx("p",{children:"©2025 BYRDHOUSE INC"})]})]})]})}const Onn="_EventAttendee_1c5qt_1",Nnn="_Panels_1c5qt_8",Mnn="_ViewerScreen_1c5qt_12",Dnn="_TitlesAndCaptions_1c5qt_28",Lnn="_Qna_1c5qt_37",Fnn="_Controls_1c5qt_42",jnn="_NoCaptions_1c5qt_61",fg={EventAttendee:Onn,Panels:Nnn,ViewerScreen:Mnn,TitlesAndCaptions:Dnn,Qna:Lnn,Controls:Fnn,NoCaptions:jnn},eRe="data:image/svg+xml,%3csvg%20width='1284'%20height='392'%20viewBox='0%200%201284%20392'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M1.5%20269V123M93%20390.667V1.3335M47.25%20317.667V74.3335M184.5%20123V269M138.75%2074.3335L138.75%20317.667M276%20390.667V1.3335M230.25%20317.667V74.3335M367.5%20123V269M321.75%2074.3335V317.667M459%20390.667V1.3335M413.25%20317.667V74.3335M550.5%20123V269M504.75%2074.3335V317.667M642%20390.667V1.3335M596.25%20317.667V74.3335M733.5%20123V269M687.75%2074.3335V317.667M825%20390.667V1.3335M779.25%20317.667V74.3335M916.5%20123V269M870.75%2074.3335V317.667M1008%20390.667V1.3335M962.25%20317.667V74.3335M1099.5%20123V269M1053.75%2074.3335V317.667M1191%20390.667V1.3335M1145.25%20317.667V74.3335M1282.5%20123V269M1236.75%2074.3335V317.667'%20stroke='%23323232'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e";function Unn(){ME(),jE();const{room:e,organization:t,loading:n}=Rr();KP();const r=Pb(),i=kbe(),[o,s]=b.useState(!1);dz();const[a]=Ch(),[c]=Jt(),l=ks();return!e||!t||n?h.jsx(Sn,{}):h.jsxs(h.Fragment,{children:[h.jsx(k$,{}),h.jsxs("div",{className:fg.ViewerScreen,children:[h.jsxs("div",{className:fg.Panels,children:[h.jsxs("div",{className:fg.TitlesAndCaptions,children:[h.jsx(AO,{room:e}),c.metadata.voice!==void 0&&!a.settings.textTranslationEnabled||i?h.jsxs("div",{className:fg.NoCaptions,children:[h.jsx("h2",{children:"Real-time live interpretation in progress..."}),h.jsx("img",{src:eRe,alt:"Waveform"})]}):h.jsx(k1,{showSpeakerName:e.num_speakers!==1,renderLanguage:r,maxWidth:"75%"})]}),h.jsx("div",{className:fg.Qna,style:{display:o?void 0:"none"},children:h.jsx(bz,{canAskQuestions:!0,mode:"qna",open:o,onOpenChange:()=>s(!1)})})]}),h.jsxs("div",{className:fg.Controls,children:[l?h.jsxs(h.Fragment,{children:[h.jsx(dh,{languages:e.languages}),t.voice_translation_enabled&&h.jsx(v3,{hideText:!0}),e.qna&&h.jsx(qe,{color:o?"white":"gray",borderColor:o?"primary":"dark-gray",backgroundColor:"black",style:{position:"relative"},onClick:()=>s(u=>!u),children:h.jsx(w7,{})})]}):h.jsxs("div",{children:[h.jsx(dh,{languages:e.languages}),t.voice_translation_enabled&&h.jsx(v3,{hideText:!1}),e.qna&&h.jsxs(qe,{color:o?"white":"gray",borderColor:o?"primary":"dark-gray",backgroundColor:"black",style:{position:"relative"},onClick:()=>s(u=>!u),children:[h.jsx(w7,{}),"Q&A"]})]}),l?h.jsxs(h.Fragment,{children:[h.jsx(b_e,{type:"attendee",organization:t}),h.jsx(R1,{link:`/event/${e.id}/survey`})]}):h.jsxs("div",{children:[h.jsx($c,{trigger:h.jsxs(qe,{color:"gray",borderColor:"dark-gray",backgroundColor:"black",children:[h.jsx(YP,{}),"Settings"]}),hiddenCategories:["audio","video","voice-avatar"]}),h.jsx(R1,{link:`/event/${e.id}/survey`})]})]})]})]})}function Bnn(){const e=Cn(),{token:t,error:n}=Mb(e),{room:r}=Rr(),[i,o]=b.useState(!1),s=Ts();return b.useEffect(()=>{var a;r&&n&&((a=n.response)==null?void 0:a.data.message)==="EVENT_ENDED"&&(mt(h.jsx("div",{className:"Toast",children:h.jsx("div",{children:"This event has ended, thanks for joining us"})})),s(`/event/${r.id}/survey`))},[n,s,r]),h.jsxs(h.Fragment,{children:[h.jsx(Sq,{open:i,onOpenChange:o}),h.jsxs("div",{className:fg.EventAttendee,children:[h.jsx(Ji,{}),h.jsx(vb,{audio:!1,video:!1,connect:!0,token:t,connectOptions:{autoSubscribe:!1}
1663,serverUrl:"wss://byrdhouse-prod-gy1t323x.livekit.cloud",style:{width:"100%",height:"100%"},children:h.jsx(Unn,{})})]})]})}function $nn(){const[,e]=Jt(),[,t]=DE(),[n]=ZIe(),{room:r,loading:i}=Rr();return b.useEffect(()=>(e(o=>({...o,metadata:{...o.metadata,participantType:"viewer"}})),()=>{e(o=>({...o,metadata:{...o.metadata,participantType:void 0}})),t(J3)}),[e,t]),!r||i?h.jsx(Sn,{}):n.joined?h.jsx(Bnn,{}):h.jsx(Pnn,{})}const Hnn="_EventInterpreter_o3ldm_1",znn="_Dashboard_o3ldm_9",Vnn="_Controls_o3ldm_23",Wnn="_MicToggle_o3ldm_56",Qk={EventInterpreter:Hnn,Dashboard:znn,Controls:Vnn,MicToggle:Wnn};function qnn(e){ME(),KP();const[t,n]=GE(),r=b.useRef(!1);b.useEffect(()=>{r.current||(r.current=!0,n(!1))},[n]);const i=ks();return h.jsxs("div",{className:Qk.EventInterpreter,children:[h.jsxs("div",{className:Qk.Dashboard,children:[h.jsx(AO,{room:e.room}),h.jsx("img",{src:eRe,alt:"Waveform"})]}),h.jsxs("div",{className:Qk.Controls,children:[h.jsx(dh,{languages:e.room.languages}),h.jsxs("div",{className:Qk.MicToggle,children:[h.jsxs("h2",{children:["Interpretation ",t?"on":"off"]}),h.jsx(f_e,{title:`Turn ${t?"off":"on"} interpretation`,description:t?"Are you sure you want to stop the interpretation for your attendees? They will no longer hear interpretation in real-time as you speak.":"Are you sure you want to start the interpretation for your attendees? They will hear interpretation in real-time as you speak."})]}),h.jsxs("div",{children:[h.jsx($c,{hiddenCategories:["video","voice-avatar","text-customization","text-speed","text-translation"],trigger:h.jsxs(qe,{color:"gray",borderColor:"dark-gray",backgroundColor:"black",children:[i?h.jsx(Vv,{}):h.jsx(jrt,{}),!i&&"Audio settings"]})}),h.jsx(R1,{link:`/event/${e.room.id}/survey`})]})]})]})}function Gnn(){const[,e]=Jt(),t=Cn(),{token:n,error:r}=Mb(t),{room:i,loading:o}=Rr();b.useEffect(()=>(e(l=>({...l,metadata:{...l.metadata,participantType:"interpreter"}})),()=>{e(l=>({...l,metadata:{...l.metadata,participantType:void 0}}))}),[e]);const s=Ts();b.useEffect(()=>{var l,u;if(i){if(r&&((l=r.response)==null?void 0:l.data.message)==="EVENT_ENDED"){mt(h.jsx("div",{className:"Toast",children:h.jsx("div",{children:"This event has ended, thanks for joining us"})})),s(`/event/${i.id}/survey`);return}if(r&&((u=r.response)==null?void 0:u.data.message)==="EVENT_NOT_STARTED"){mt(h.jsx("div",{className:"Toast",children:h.jsx("div",{children:" This event hasn't started yet, stay tuned"})})),s("/");return}}},[r,s,i]);const[a,c]=x$();return!i||!n||o?h.jsx(Sn,{}):a.has("pin")?h.jsx(h.Fragment,{children:h.jsx(vb,{audio:!1,video:!1,token:n,connectOptions:{autoSubscribe:!1}
1663,connect:!0,serverUrl:"wss://byrdhouse-prod-gy1t323x.livekit.cloud",style:{width:"100%",height:"fit-content"},children:h.jsx(qnn,{room:i})})}):h.jsx(p_e,{onSubmit:l=>c(u=>(u.set("pin",l),u))})}const Knn="_Login_qoocv_1",Ynn="_LoginContent_qoocv_8",Qnn="_LoginButtons_qoocv_27",Xnn="_OrLine_qoocv_38",Jnn="_LoginEmail_qoocv_53",Znn="_Buttons_qoocv_65",ern="_ResendCode_qoocv_88",trn="_SentEmailMessage_qoocv_96",nrn="_Carousel_qoocv_100",rrn="_ImageCarousel_qoocv_113",irn="_FadeOut_qoocv_118",orn="_Testimonies_qoocv_129",srn="_Customer_qoocv_149",Bs={Login:Knn,LoginContent:Ynn,LoginButtons:Qnn,OrLine:Xnn,LoginEmail:Jnn,Buttons:Znn,ResendCode:ern,SentEmailMessage:trn,Carousel:nrn,ImageCarousel:rrn,FadeOut:irn,Testimonies:orn,Customer:srn},arn="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='utf-8'?%3e%3c!--%20Uploaded%20to:%20SVG%20Repo,%20www.svgrepo.com,%20Generator:%20SVG%20Repo%20Mixer%20Tools%20--%3e%3csvg%20width='800px'%20height='800px'%20viewBox='-3%200%20262%20262'%20xmlns='http://www.w3.org/2000/svg'%20preserveAspectRatio='xMidYMid'%3e%3cpath%20d='M255.878%20133.451c0-10.734-.871-18.567-2.756-26.69H130.55v48.448h71.947c-1.45%2012.04-9.283%2030.172-26.69%2042.356l-.244%201.622%2038.755%2030.023%202.685.268c24.659-22.774%2038.875-56.282%2038.875-96.027'%20fill='%234285F4'/%3e%3cpath%20d='M130.55%20261.1c35.248%200%2064.839-11.605%2086.453-31.622l-41.196-31.913c-11.024%207.688-25.82%2013.055-45.257%2013.055-34.523%200-63.824-22.773-74.269-54.25l-1.531.13-40.298%2031.187-.527%201.465C35.393%20231.798%2079.49%20261.1%20130.55%20261.1'%20fill='%2334A853'/%3e%3cpath%20d='M56.281%20156.37c-2.756-8.123-4.351-16.827-4.351-25.82%200-8.994%201.595-17.697%204.206-25.82l-.073-1.73L15.26%2071.312l-1.335.635C5.077%2089.644%200%20109.517%200%20130.55s5.077%2040.905%2013.925%2058.602l42.356-32.782'%20fill='%23FBBC05'/%3e%3cpath%20d='M130.55%2050.479c24.514%200%2041.05%2010.589%2050.479%2019.438l36.844-35.974C195.245%2012.91%20165.798%200%20130.55%200%2079.49%200%2035.393%2029.301%2013.925%2071.947l42.211%2032.783c10.59-31.477%2039.891-54.251%2074.414-54.251'%20fill='%23EB4335'/%3e%3c/svg%3e",crn="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='utf-8'?%3e%3c!--%20Uploaded%20to:%20SVG%20Repo,%20www.svgrepo.com,%20Generator:%20SVG%20Repo%20Mixer%20Tools%20--%3e%3csvg%20width='800px'%20height='800px'%20viewBox='0%200%2032%2032'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3crect%20x='17'%20y='17'%20width='10'%20height='10'%20fill='%23FEBA08'/%3e%3crect%20x='5'%20y='17'%20width='10'%20height='10'%20fill='%2305A6F0'/%3e%3crect%20x='17'%20y='5'%20width='10'%20height='10'%20fill='%2380BC06'/%3e%3crect%20x='5'%20y='5'%20width='10'%20height='10'%20fill='%23F25325'/%3e%3c/svg%3e",lrn="/assets/conference-DXjjZVP1.webp",tRe="/assets/phone-ByHg7v9r.webp",urn="/assets/elraldo-BNkITaIM.webp",drn="/assets/vincent-B0xIC3ur.webp",frn="_BackToHome_xbilu_1",hrn={BackToHome:frn},prn=()=>h.jsxs(It,{to:"/",className:hrn.BackToHome,children:[h.jsx(xrt,{})," Back to home"]}),mrn=()=>{const e=b.useMemo(()=>[GN,lrn,VW,l2,tRe],[]),[t,n]=b.useState(0),[r,i]=b.useState(!1);b.useEffect(()=>{const s=setInterval(()=>{i(!0),setTimeout(()=>{n(a=>(a+1)%e.length),i(!1)},1e3)},4e3);return()=>clearInterval(s)});const o=b.useMemo(()=>e[t],[e,t]);return h.jsx("div",{className:`${Bs.Carousel} ${Bs.ImageCarousel} ${r?Bs.FadeOut:""}`,children:h.jsx("img",{src:o,alt:"Image carousel"})})},grn=()=>{const e=b.useMemo(()=>[{name:"Vitz",title:"Co-Founder, Partner & Managing Director at ForgeWorks",testimony:"What impressed me was Langfinity's ability to pick up cultural and linguistic nuances, even in complex languages like Catalan or Macedonian. It provides the right tone and formality depending on the context, which is critical in professional conversations. Unlike previous tools, Langfinity allowed us to hold genuine two-way conversations in real time, where we could ask immediate follow-up questions and probe deeper into issues. This made a huge difference in how we engage with our clients.",image:qW},{name:"Yuval",title:"AI Integration Manager at Filuet",testimony:"Meetings that used to take twice as long because of manual translations are now much shorter. It saves us so much time and helps us collaborate much faster and more effectively. Now, our country managers can freely share their experiences and updates without struggling with language differences. The meetings flow much better, and everyone feels included.",image:m3},{name:"Eraldo",title:"Sales Manager at LinkedIn",testimony:"I never imagined that I could speak Mandarin perfectly with people and through Langfinity, I feel that I can talk to the whole world. It is magical. This is to give people the opportunity to communicate with the world without feeling embarrassed due to language barr
1663iers. Without fear, you will be able to fully express yourself in your native language and get your messages across. I'm very satisfied with Langfinity.",image:urn},{name:"Maurizio",title:"Customer Obsession Circle Leader at The European House-Ambrosetti",testimony:"Before Langfinity, our search for interpreters was a time-consuming, expensive affair. Now, not only do we save on time and costs, but we also provide an inclusive experience for diverse voices to interact seamlessly. Langfinity's AI-powered translation technology enhances participant satisfaction, solidifying our stance as pioneers in embracing AI neural machine translation for comprehensive language inclusivity as an organization.",image:GW},{name:"Federico",title:"PMO of Netval",testimony:"We really enjoyed the experience. The translation is 95% precise between Italian and English. The quality is impressive - fast and accurate.",image:KW},{name:"Vincent",title:"Business Developer of Netval",testimony:"We are an innovation and technology-driven organization. Leveraging language AI to solve real pain points in language accessibility aligns with our mission and values.",image:drn},{name:"Mike",title:"Project Manager at the New Apostolic Church Canada",testimony:"Langfinity was transformational for us. It made the impossible possible—allowing everyone at NAC to come together, communicate, and connect in their native languages. The translation was instant, accurate, and so natural that it felt like magic. It's not just a tool; it's a bridge that brought our community closer together, regardless of language.",image:YW},{name:"Matt",title:"Language Coordinator at the New Apostolic Church Canada",testimony:"Setting it up was a breeze. We went from no translation to real-time translation in four languages in just 5 minutes. The user experience was so intuitive—attendees just scanned a QR code, and they were instantly connected to the translation they needed.",image:JTe},{name:"Tim",title:"Managing Director at iCustomer",testimony:"With Langfinity, we didn't need to bend over backward to hire local talent before entering new markets. It gave us the confidence to scale into South America and beyond while saving significantly on operational costs.",image:WW}],[]),[t,n]=b.useState(0),[r,i]=b.useState(!1);b.useEffect(()=>{const s=setInterval(()=>{i(!0),setTimeout(()=>{n(a=>(a+1)%e.length),i(!1)},1e3)},1e4);return()=>clearInterval(s)},[e.length]);const o=b.useMemo(()=>e[t],[e,t]);return h.jsxs("div",{className:Bs.Testimonies,children:[h.jsx("h2",{children:"What our customers say"}),h.jsx("h1",{children:"“"}),h.jsxs("div",{className:`${Bs.Carousel} ${r?Bs.FadeOut:""}`,children:[h.jsx("h3",{children:o.testimony}),h.jsxs("div",{className:Bs.Customer,children:[o.image?h.jsx("img",{src:o.image,alt:o.name}):h.jsx(Uye,{}),h.jsxs("div",{children:[h.jsx("h3",{children:o.name}),h.jsx("h3",{children:o.title})]})]})]})]})};function Ole(e){const t=ls(),n=Cn(),r=Gt.useLogin(n),i=Ts(),[o]=qTe(),s=b.useCallback(async A=>{t({type:"attmept_login_with_firebase",details:{provider:A}});const L=xP(),U=["auth/popup-closed-by-user","auth/cancelled-popup-request","auth/popup-blocked","auth/user-cancelled"];try{L.useDeviceLanguage(),await L.setPersistence(Oge);let I;switch(A){case"microsoft":I=new qS("microsoft.com");break;case"google":I=new _f,I.setCustomParameters({prompt:"select_account"});break}await mVe(L,I),await r(),t({type:"succeed_login_with_firebase",details:{provider:A}}),localStorage.setItem(Vn.EXPECT_LOGIN,"true"),o.pathname?i(o.pathname,{replace:!0}):i("/",{replace:!0})}catch(I){if(I instanceof pd&&U.includes(I.code))console.warn("Ignored firebase error",I);else if(I instanceof pd&&I.code==="auth/account-exists-with-different-credential"){const F=A==="google"?"Microsoft":"Google";mt(h.jsx("div",{className:"Toast ErrorToast",children:h.jsx("div",{children:`You already have a Langfinity account under ${F}, please sign in with ${F} instead`})}))}else mt(h.jsx("div",{className:"Toast ErrorToast",children:"Something went wrong, please try again or contact support"}),{type:"error"}),console.error(I),zp(I);t({type:"fail_login_with_firebase",details:{provider:A,error:I}})}},[t,r,i,o]),a=b.useCallback(async()=>{t({type:"click_continue_with_google"}),await s("google")},[s,t]),c=b.useCallback(async()=>{t({type:"click_continue_with_microsoft"}),await s("microsoft")},[s,t]),[l,u]=b.useState(""),[d,f]=b.useState(!1),[p,g]=b.useState(!1),m=Gt.useSendVerificationCode(n),y=b.useCallback(async()=>{t({type:"click_continue_with_email"}),t({type:"send_email_verification_code",details:{email:l}}),g(!0);try{await m({email:l}),mt(h.jsx("div",{className:"Toast SuccessToast",children:"The code has been successfully sent to your email"}),{type:"success"}),f(!0),T(!1)}catch(A){mt(h.jsx("div",{className:"Toast ErrorToast",children:"Something went wrong, please try again or c
1663ontact support"}),{type:"error"}),console.error(A),zp(A)}finally{g(!1)}},[l,m,t]),[v,w]=b.useState(""),[S,C]=b.useState(!0),[E,T]=b.useState(!1);b.useEffect(()=>{if(E||!d)return;const A=setTimeout(()=>{T(!0)},45*1e3);return()=>{clearTimeout(A)}},[E,d]),b.useEffect(()=>{const A=v.length>=6;return C(!A),()=>{}},[v]);const x=Gt.useVerifyCode(n),O=b.useCallback(async()=>{try{t({type:"attempt_login_with_email",details:{email:l}}),g(!0);const A=await x({email:l,code:v});localStorage.setItem(Vn.LANGFINITY_TOKEN,A.data.encodedToken),window.dispatchEvent(new Event("storage")),await new Promise(L=>setTimeout(L,100)),await r(),t({type:"succeed_login_with_email",details:{email:l}}),localStorage.setItem(Vn.EXPECT_LOGIN,"true"),o.pathname?i(o.pathname,{replace:!0}):i("/",{replace:!0})}catch(A){mt(h.jsx("div",{className:"Toast ErrorToast",children:"Something went wrong, please try again"}),{type:"error"}),console.error(A),zp(A),t({type:"fail_login_with_email",details:{email:l,error:A}})}finally{g(!1)}},[l,r,v,x,i,o,t]);return h.jsxs("div",{className:Bs.Login,children:[h.jsx(Ji,{}),h.jsx(prn,{}),h.jsxs("div",{className:Bs.LoginContent,children:[h.jsxs("div",{children:[h.jsx("h1",{children:e.signup?"Sign up":"Log in"}),h.jsxs("div",{className:Bs.LoginButtons,children:[h.jsxs(qe,{onClick:a,color:"gray",borderColor:"dark-gray",backgroundColor:"black",children:[h.jsx("img",{src:arn,alt:"Google"}),h.jsx("span",{children:"Continue with Google"})]}),h.jsxs(qe,{onClick:c,color:"gray",borderColor:"dark-gray",backgroundColor:"black",children:[h.jsx("img",{src:crn,alt:"Microsoft"}),h.jsx("span",{children:"Continue with Outlook"})]})]}),h.jsxs("div",{className:Bs.OrLine,children:[h.jsx("div",{}),"Or",h.jsx("div",{})]}),d&&h.jsxs("h3",{className:Bs.SentEmailMessage,children:[h.jsx("div",{children:"We've sent an email with your code to"}),h.jsx("div",{children:l})]}),h.jsx("div",{className:Bs.LoginEmail,children:d?h.jsxs(h.Fragment,{children:[h.jsx("h3",{children:"Enter your code"}),h.jsx("input",{type:"text",placeholder:"Verification Code",value:v,maxLength:6,onChange:A=>w(A.currentTarget.value)})]}):h.jsxs(h.Fragment,{children:[h.jsx("h3",{children:"Email Address"}),h.jsx("input",{value:l,onChange:A=>u(A.target.value),id:"email",type:"email",autoComplete:"on",placeholder:"[email protected]"})]})}),h.jsxs("div",{className:Bs.Buttons,children:[h.jsx(qe,{borderColor:"dark-gray",color:"gray",backgroundColor:"black",onClick:()=>{if(d){f(!1);return}i(-1)},children:d?"Back":"Cancel"}),d?h.jsx(qe,{disabled:S,onClick:O,children:p?h.jsx(Sn,{inline:!0,size:6}):"Continue"}):h.jsx(qe,{disabled:!l.length,onClick:y,children:p?h.jsx(Sn,{inline:!0,size:6}):"Continue"})]}),E&&d&&h.jsxs("h3",{className:Bs.ResendCode,onClick:()=>T(!1),children:["Didn't receive email?"," ",h.jsx("span",{onClick:y,children:"Resend"})]})]}),e.signup?h.jsx(grn,{}):h.jsx(mrn,{})]})]})}const vrn="_CustomerStories_1nhws_1",yrn="_Customer_1nhws_1",brn="_CompanyImg_1nhws_56",wrn="_Buttons_1nhws_63",Srn="_Cards_1nhws_69",_rn="_Industry_1nhws_90",N0={CustomerStories:vrn,Customer:yrn,CompanyImg:brn,Buttons:wrn,Cards:Srn,Industry:_rn},Crn="/assets/ambrosetti-CPMo9FXu.svg",Ern="data:image/webp;base64,UklGRqgPAABXRUJQVlA4IJwPAAAwRQCdASrIAMgAPm0ylUgkIqIhJzV5SIANiWVu4W5w+Vtejc0Xy73ve2YK/D/lZvwf7b1W/oz2AOet+4HqF/Zj1g/+H68fOA6nbemP77YFH3bwx8cXqD2g5W/VvmP9UfyX9y86v+H4S/D3+y9Qj8l/mH+G3w0AH5f/Sf9r/b/yJ+VaaDkAfmD5ZHgi+jewP/Pv8b/1/7R7G3/h/nvyx9u/1H/6f9P8BH83/tP/K9dr2W/td///df/aAlXCx9Tk9+gIX5UMX7Y9C2ZtwyoEsCxDat1lKfc6YOIyrzAxEE6mLRC/ZvDRfBZ5wtpGCt2L9kYgDgMbOPn3yOfYCI11RJx5sbIlXbd3YlyR3oqT5/0u3dNP3AK5Y8gBNorc4vqTWfwWnty5EAw9tGz8ZMRDI3fDu0PGSdvHDGrDPv4ScF/2lzXyKH8MMdzSA7zwQY7qyYwnyNn4TBrLv6O131Q/u0/0/QJ5+gPMXpYwxQ/2ju4wQJ3sHcR2Ko13DxysLddWyHuXlaiE/Fy5Wbk0bzcIUqt7J8FNCEfj5oLNsPrE3JdECxjbMbyRRZPdsVzEy/sPjLKqbni1tkPQEwOpz5DMXNMUXOebUw60bIXlFZhjXe9N5z1K5x+FHNEpgnA6tybr3o8SpxhGEz2MsfBf5R1EA9513Mimdye0HL1crcPp7o3aF78mL6YO6bp5LtnBv4g+B/yugp+1nkGftTUCUOqcMsWJXJZLjA2/QEL8qGL9sfU5PfcAAP7/KgAABbLn54Yjg+Fw3gN9NGtXQKG0/qAR7WYpbvdJFahqXa/8z08Ay1fCgFtzkkPo1ybphrUcLo8IZBmd266Qv26gxt+aN8Z+IqFxlUdd+eQ+5bsJvQRvw7aJf8/p4V3QpjmeTDmXDH/2b0FwuZLUug/CUhgPL68OIqjzfENzfT4ACS8FwGX9cuLr6i7vxXlQ/XwJkTEbjjG8Jyyw5huWK9kIBrgyOh60xq+0C3Yo/DM3pKUF1kPHMPB+pD53nr5tNU0HLT9/B9dAZP3k9pnb9JnzgIeIEh0G0gX+4P3NNJvw87dfLXBzDmZIHJTp6k+toUuDngM8XRFitUKauhHsg0u3nKfEAAnp24Jv5wajbOSdgLlHmiqp9tdmR7W106oeHl7eFTPUcM08z9GTuVDuCAvNs1M8JBsDEibMfBgDXj0YOjtyedNIUyz1aIt+p4ZNDJnJteKAstXT42X5s5oBowHTiiy6O/wl0InmhNlZ+iGFYMYrKy5/FqWhARc409BklxAP1Fd7x4mhpmBtPjVW3DvhHh2px9bq+jKsEXr3qgxalH8D6E32wt
16631OHwZBDbbxkPp78Zmk7vU+UwyxeX7YYX+qavj1uA+Da7+rvkIVHJwONMbGrcxvr063YV8X/+NojUP8Yd4yu/61TXR8DBCkC/4dSpWBW7rkicECina67SKb0HcmbfRu6fKjtagzVIBPj+Bt9cSu/tIdXFfw61npoF/ceVrPS1zDf5MBY5TDd6SMn9zsyfcAevUsookBtYBt3/ffIOMiOXQrIqXLdipZmDKrUEQPJ5gW+li1xen9+WgETx1/c+mhM/treI3J8JlAYKV/2x13IQfR1f9E/LXfBvvjyEGqYWgPRvLwAQDbtViS1G8jXzZakwlb4TJ+kjEQktx9E9LLrNl0PD2T7YSLi2mVM53FVqjlA1IYtHQL8wCyWzNFCyJ6AEZSzgQ1hlNTI/v8KZgzgQNI2/85bRcHRrg3Q0C7ABNj2rk3X9mBwcZlYn1XsqDnr7u6UCUzSmC9YXetPRkZp7+gpfsgiNjA/d6Lv4ZnasmzevC4P+XiHQt0qhxMBVT7+ftjGI2X0xbxgPB6oYveVDG49FxGmiPhVT6pdGRfYFdWGfs7PCi/J0NY+ZS1nSgEvNhYhigX93QjAy/kK0t1yqqRmWGnSQH+cAFcsUJeXJitjHfJVy6swB5TbuuTOl1bcXZdpV/z4OyOX6W1tK/2aAReKunv8LGkGE/cwGtjjyYFXjPZotfT9y20UIln03qrwt3+GKK/yIH9C1L5Eoh86wWNJTIrxG6od3atp1VscmFvskpZsTPjy/yJN0G1xt3DRfffk3f+3OtjTnBElggFpAcSxuRZqFqPaDIJQXhUxeQgFAujpbMrLLef0Vx8jXFbiIKhXSpgsXCfYpLUo3KEPXIfNYOc0PSdgOEe2zGMy1UtijU6Y/Tcbmlxw77yvTUXFWzwtDAbecXfmQIecIziIKVItgUqDKbB+8rnk03n5gYX8Ci72Q0qThvWufXigNvIz2Kw1ISoE4ivqoPjb6asTMq2LMpdQXUCu/E1itNfJ+yAPbehThtuMUK91OLCM+mpe+0T/zkCT1P/FKG35hiw5ikCza4FzIheM+5yyNDfad/Tp9lkLlGqKVFXXja/mYK0ae1RXl3OXo7AnHWxUoV9B2+W7Ge+PPGH+5QK/0TkXKlcPqC9HHRCSCUXW+SGPmK2Bdd5JHCpfCG7KkaJTl77wD/NauipYbzOjnjEJR/MRjQnV7681m1HXrDC9ZRs8Q5ZtKsZfp/XU619K1H6f13CL5WIeczMkSGAT8d51DodK45PZGB8aCB11J056t5s4GfQrx7Y0zDGNGVNm9Q5R0fFmcm+fiwIgq0YYGSVQWw9lJxdI4PPZ/m1+PWnKaA8lnTjLdtZWkVM6RuM5lERqNSIEd58rwufK5yqUfRp/YZ87q3Hy8RSwx+eqBt8IrKV4TXryt689/nKYA4qNEKxFeCBKVGYW2Zr4rZWRfO6jiqXS7ulXOLnIUZYcHMk2yRf5p0Vj9PTtak7rTB6PJQmUzcr+bt56dJ0KRxN/vvJf+muY3cOglFwqZCHJasw8pWreEsHc0JBj1oeyfxDwLWbAoHbxy2wSuVCtHG8g5kRNM5PHPFz7gmFH45NJ4le8SDr2PCnhWNkScEzekuC7CbrHuH2ZNYca2gqWPm11VeyE5yQ4KFeU3h2i7LOzNIH/zSjA0EE69Uz0z3lotqsRGagR5zVfRW87jGRr75X9pLb2ijXIpN4/W/6Bv9/r5s1nN1dW8h992fHGT8XdH/+OUrzUVGaoSzbFzqZ+sYr/lHZgeSvGDRvWxHCcBqceLF2YUCIKoKoKpxYQP+/BZkPAmzY6+p2d/UqV+dQF7EJ2zZ8OlwTnC1n9EYUN8AMBdsjXh2ytrsFm1PhHqpr49iip7YRiHBiNdsRmZNP8E9Y+ssBWXq55ecPUa+lfGld3xLiNS+QVxbi6niuw9TagyRYFPCYWP0TgzvJyt7GS1t/rPjtaXcUKQjb/rOJQ5n/aWYi1Bp8dnJcL9jSa7CPQPRi/dEVRrAqNcy5fwp4udFMobo4Bvb3hQYsWLYB8urJ6BKkxE8N56uORxbIRMWiYiqtCS1r1COcw2vGozk0BS1n3F4Bpeqj+wajMrgB7+XWe6Sr4+l9mZ2lgAcO6+etGF0Bk89APzdv7s3F/r/kEcX5oELtZ4AQ3wJjR7IjVSU7uGy1Ow7VJe4mFiDEeSaERvcBKDWAkJRSbE/34U324cRviLlWzSRtqrOl3l+nkoBzvjZL9MvWGLgVoUTqF4CUXmo6mhQtDhkNUGx1XF5N8esCqZi4qvnOAfK/xBrAK/m9WffIWLXagYxQKrXrE/UGmwzyFU9EjECoY7gWG7L8MHGIXPCd+9IJAR5970XQWXxhAHqK+mGSQ4ddPfJn7KzeCXHe5jJ1+GX25oCE2sXl2iIzD/FQMd2v3AoU+eq4h7tNYRI+ScyZN09KO2femRqoqk4Lr2swbQm7rFPvkvvXZxbQGqU6IETYdatYEBKv79XZjgR3VzaQwAYblFGVRfV8a779FjJt5gR449hgcip8LI818d38ZW1kFqSZsibe8TMIan9rRgZiw5MAhN9WW7j3eiCZ2LCcWRzHkMKmH5Xf97HnBt7HHtJT+AcDggC9AO69e5AbdwAqzVciRlnBPf03HMTg9+nvyqTt4wjH3bjQZFbA0JgRVk1bHMG1DvDrKRIw495Q3D0LFVO76wUgxiOQKyCcpfa62YdSOLLlLRMFQJeqCqOoxmyopIor7CawwqJldwVICKOTpvq5ZsJCdRgeHolwC140h/T7t3Mri4vz50I9/cNzWh7KkOg0Bq843G3vYiScjr7rvDxwrca+A/zVh75VBtKmSltG6urdcWlhGPCYkCvchpaHT6/I7COpQ5yeocX2k4FNy3r4X+t8Jr3RyVpVF+3pl+Wa+OhV2cf3LtnW7+g15A7I4I6rAugXqZfleF/Z0gT6zOecF0v0uh4DQVMkl/BtWe634tR9/ZPwopTfNR8bznZyv5LsSvguiUtYOTysZ7Sib65p47tC3HPULGOJq98tUvRGz5J9F479tkEgJy2OY/tauZ+2bR0pM0YADFU/gF+evhWiaTlnjEy9T4hA2EiIkaT78oKa8EWIlLFNfx/eCpULmDYJgphlaXlGDR5gUOFnQraY/uPORBAh0YpEMPebNx5OMZYq0Vf/A/UpnRAxK1ZZDiKz+sRiYZxjrEMWDME73EKYDcyr9i9V2Uq0BU+ou9XMHe39JkdS9NObV5V/O58cdmkgft6YwtlqVLOcD6v7oCmY6SAVmnQq/RlnGXdxC6PCCNdMujWh1bhPFPDbepoGY/4ipwNIyETjJIrEbQyM/IggniATMEGN6JPKPYH6qxrPjy814UnQj9e/63PJ8SqDO0Nxt7It+sDlYiFRIfCJyDVj12f/0Tn16KM5Ie90SPkyeeubuahsdrU8jTHhXhpdWjx1i39JNAkN4a3uv1PYw2jjzjridAsznYvu7GOcXtBOrSJw51Locr8DNeZQAM+LkOp3565jCzYp2GyEFi8IjOPKGhuB1Cn0nxW50Ah8etX60k6xhKcX5NZuwM/6OrlDsKMUP+WoKxmcDncbtgrF2gfCJNEnrsMZ0PEUnmhl5W9n35FnwPRn+uxYSaUU7VPv6eXnJa5SC4OwbHVNaiHiUsCmFH2jFOXCYiTwC7X8AfsGnP4hr/QOPCbkUeVmEb0CSQiuqXMxdha7sZ6w/btjOJ95ms5oiNISZj4sG3rpqX9f90gZsUKH0CTMTh3SauHLUZz375r05w2hC9fP7auhgJTwI0vA6JucitPjDXMDJpdZ3237Dr8I2RwtKLbuNQnEl0JgerQoSxIpxVmBJGPvUZkRz7Na2eOFtgu5bcTXPF+ibjTN4O1IOQ2MwcHBm4Z2URec4AE3KSX9ORMoLwojgSeBF2fPNOXIbTZuNuOTvY+RcPqI+lrkZfX5kL37sHmQjeIe7lhCAGRc3a2kXEeric0tf8xhR8SIANYA7hRUJx4HAAAAAGZt5eSPKHfAAAAAAAA=",Trn="/assets/unesco-Bs4L4oR4.webp",krn=[{industry:"Manufacturing",companyImage:m3,quote:"Meetings that used to take twice as long because of manual translations are now much shorter. It saves us so much time and helps us collaborate much faster and more effectively.",image:m3,name:"Yuval",title:"AI Integration Manager at Filuet",company:"Filuet",link:"https://langfinity.ai/blog/how-filuet-collaborates-2x-faster-and-saves-50percent-meeting-time-with-langfinitys-seamless-translation-in-microsoft-teams-cm88azv29004mbkijp8op71r4/"},{industry:"Transportation",companyImage:YTe,quote:"What impressed me was Langfinity's ability to pick up cultural and linguistic nuances, even in complex languages like Catalan or Macedonian. It provides the right tone and formality depending on the context, which is critical in professional conversations.",image:qW,name:"Vitz",title:"Co-Founder, Partner & Managing Director at ForgeWorks",company:"ForgeWorks",link:"https://langfinity.ai/blog/how-forgeworks-uses-langfinity-to-bridge-language-barriers-and-master-cultural-nuances-and-dialects-building-deeper
1663-understanding-and-connection-in-client-communication-cm88ahbo6004lbkiju97cxna5/"},{industry:"Technology",companyImage:KTe,quote:`"The translation quality was a massive jump from anything else we'd tried", Zach explains. "We noticed right away that English <-> Japanese was just better, especially with our industry terms."`,image:nU,name:"Zach",title:"MeetsMore",company:"MeetsMore",link:"https://langfinity.ai/blog/how-meetsmore-uses-langfinitys-accurate-domain-focused-translation-to-boost-team-engagement-and-collaboration-cm88bmrtv004nbkijwjzepfx7/"},{industry:"Research",companyImage:Ern,quote:"We really enjoyed the experience. The translation is 95% precise between Italian and English. The quality is impressive - fast and accurate.",image:KW,name:"Federico",title:"PMO of Netval",company:"Knowledge Share",link:"https://langfinity.ai/blog/how-knowledge-share-delivers-95percent-accurate-real-time-interpretation-for-600-attendees-at-10x-cost-savings-clyby9iwj005iuj1ox8t045xl/"},{industry:"Financial services",companyImage:QTe,quote:"With Langfinity, we didn't need to bend over backward to hire local talent before entering new markets. It gave us the confidence to scale into South America and beyond while saving significantly on operational costs.",image:WW,name:"Tim",title:"Managing Director at iCustomer",company:"iCustomer",link:"https://langfinity.ai/blog/how-icustomer-achieved-rapid-and-efficient-expansion-into-south-america-with-langfinity-cm889o8h5004kbkijr7n9j4op/"},{industry:"Church",companyImage:GTe,quote:"Langfinity was transformational for us. It made the impossible possible—allowing everyone at NAC to come together, communicate, and connect in their native languages. The translation was instant, accurate, and so natural that it felt like magic. It's not just a tool; it's a bridge that brought our community closer together, regardless of language.",image:YW,name:"Mike",title:"Project Manager at the New Apostolic Church Canada",company:"NAC Canada",link:"https://langfinity.ai/blog/how-new-apostolic-church-canada-broke-down-language-barriers-with-90percent-accurate-ai-powered-real-time-translation-at-shine-their-largest-international-youth-summit-clzxc6za00077103aegp09avu/"},{industry:"Event",companyImage:Crn,quote:"Before Langfinity, our search for interpreters was a time-consuming, expensive affair. Now, not only do we save on time and costs, but we also provide an inclusive experience for diverse voices to interact seamlessly. Langfinity's AI-powered translation technology enhances participant satisfaction,solidifying our stance as pioneers in embracing AI neural machine translation for comprehensive language inclusivity as an organization.",image:GW,name:"Maurizio",title:"Customer Obsession Circle Leader at The European House-Ambrosetti",company:"The European House-Ambrosetti",link:"https://langfinity.ai/blog/how-ambrosetti-boosted-engagement-and-satisfaction-with-90percent-accurate-real-time-voice-translation-and-10x-cost-savings-using-langfinity-cm88ccf47004pbkij0xvw0804/"},{industry:"NGO",companyImage:Trn,quote:"The success of Langfinity at UNESCO's i4T consultation highlights the immense potential of AI-powered multilingual tools in global conversations. These technologies go beyond solving language barriers—they empower diverse perspectives, foster inclusivity, and drive meaningful change. As the world becomes increasingly interconnected, tools like Langfinity pave the way for a future where communication knows no boundaries. By making every voice heard, Langfinity is not just transforming how we communicate—it's shaping how we collaborate, innovate, and connect as a global community",company:"UNESCO",link:"https://langfinity.ai/blog/transforming-multilingual-engagement-at-unescos-i4t-consultation-using-langfinity-ai-cm88c5qk6004obkiji86sn9p8/"}],xrn=()=>{const e=ls(),t=b.useCallback(()=>{e({type:"click_get_a_demo_customer_stories"}),window.open("https://calendly.com/d/cs8h-bpy-tzc/langfinity-intro","_blank")},[e]);return h.jsxs("div",{className:N0.CustomerStories,children:[h.jsx("h1",{children:"Industry-leading companies rely on Langfinity"}),h.jsx("h3",{children:"See why organizations trust Langfinity for multilingual communication"}),h.jsxs("div",{className:N0.Buttons,children:[h.jsx(qe,{size:"landing",color:"white",backgroundColor:"blue",borderColor:"blue",onClick:()=>scrollTo({top:600,behavior:"smooth"}),children:"See case studies"}),h.jsx(qe,{size:"landing",color:"black",backgroundColor:"transparent",borderColor:"black",onClick:t,children:"Get a demo"})]}),h.jsx(XTe,{}),h.jsx("div",{className:N0.Cards,children:krn.map((n,r)=>h.jsxs("div",{children:[h.jsx("div",{className:N0.Industry,children:n.industry}),h.jsx("img",{className:N0.CompanyImg,src:n.companyImage,alt:n.company}),h.jsx("h3",{children:n.company}),h.jsx("p",{children:n.quote}),h.jsxs("div",{className:N0.Customer,children:[n.image&&h.jsx("img",{src:n.image,alt:n.name}),h.jsxs("div",{children:[h.jsx("h3",{children:n.name}),h.jsx("h3",{children:n.title})]})]}),h.jsx(It,{target:"_blank",to:n.link,onClick:()=>{e({type:"click_read_case_study",details:{link:n.link}})},children:h.jsx(qe,{color:"white",borderColor:"blue",backgroundColor:"blue",children:"Read case study"})})]},r))})]})},Arn="_LandingFAQ_jrz9w_1",Irn="_Intro_jrz9w_16",Rrn="_StillHaveQuestions_jrz9w_17",x8={LandingFAQ:Arn,Intro:Irn,StillHaveQuestions:Rrn},Prn=()=>h.jsxs("div",{className:x8.LandingFAQ,children:[h.jsx("h1",{children:"Frequently asked questions"}),h.jsx("img",{src:tRe,alt:"Raised hand"}),h.jsxs("div",{className:x8.Intro,children:[h.jsx("h3",{children:"Have questions? We have answers! 💡"}),h.jsx("p",{children:"Welcome to our FAQ section, where we answer your most common questions about Langfinity (prev. Byrdhouse AI!). Whether you're curious about real-time translation, multi-speaker support, voice avatars, integrations, or pricing, you'll find the answers here. We're here to make multilingual communication effortless for your meetings, events, and global teams. If you don't see what you're looking for, feel free to reach out—we're happy to help! 😊"})]}),h.jsx(S_e,{landing:!0}),h.jsxs("div",{className:x8.StillHaveQuestions,children:[h.jsx("h3",{children:"Still have questions?"}),h.jsx(PO,{})]})]}
1663),Orn="_LandingContentPage_4atqw_1",Nrn={LandingContentPage:Orn},Xk=e=>h.jsxs(h.Fragment,{children:[h.jsx("div",{className:Nrn.LandingContentPage,children:e.children}),h.jsx(ZTe,{})]}),Mrn="_PricingPage_1glme_1",Drn="_Tiers_1glme_19",Nle={PricingPage:Mrn,Tiers:Drn},Lrn=()=>h.jsxs("div",{className:Nle.PricingPage,children:[h.jsx("h1",{children:"Pricing & plans"}),h.jsx("div",{className:Nle.Tiers,children:h.jsx(C_e,{})})]}),Frn="_About_152as_1",jrn="_Quote_152as_20",Mle={About:Frn,Quote:jrn},Urn=()=>h.jsxs("div",{className:Mle.About,children:[h.jsx("h1",{children:"About Langfinity"}),h.jsxs("section",{children:[h.jsx("h2",{style:{color:"var(--langfinity-orange)"},children:"Who are we?"}),h.jsxs("div",{children:[h.jsx("h4",{children:"Langfinity is an innovative, AI-powered real-time translation technology that bridges language barriers and fosters global communication. 🌐"}),h.jsx("h4",{children:"Our mission is to connect people across the world, enabling them to express their ideas, opinions, and emotions confidently in their native languages. 🌍"}),h.jsx("h4",{children:"At Langfinity, we believe that language is more than just words—it's a core part of identity. 💡"}),h.jsx("h4",{children:"Our technology not only preserves the diversity of languages but also ensures that individuals feel empowered to let their authentic selves shine through in any global setting. 🌈"}),h.jsx("h4",{children:"By facilitating seamless multilingual communication, we are building a world where everyone can connect and collaborate, no matter where they are or what language they speak. 💫"})]})]}),h.jsxs("section",{children:[h.jsx("h2",{style:{color:"var(--langfinity-blue"},children:"Our mission"}),h.jsx("div",{children:h.jsx("h4",{children:"Our mission is to empower people speaking different languages to build deeper trust and authentic connections, moving beyond surface-level understanding to create meaningful, human-centered multilingual communication."})})]}),h.jsxs("section",{children:[h.jsx("h2",{style:{color:"var(--langfinity-pink"},children:"Our vision"}),h.jsx("div",{children:h.jsx("h4",{children:"Breaking down language barriers for all beings in the universe, enabling instant understanding and limitless communication across every corner of existence."})})]}),h.jsxs("div",{className:Mle.Quote,children:[h.jsx("h4",{children:'"If you talk to a man in a language he understands, that goes to his head. If you talk to him in his own language, that goes to his heart."'}),h.jsx("h4",{children:"— Nelson Mandela"})]}),h.jsxs("section",{children:[h.jsx("h2",{style:{color:"var(--langfinity-orange)"},children:"Our story"}),h.jsx("h4",{children:"🌎 Langfinity (prev. Byrdhouse AI) was inspired by one of the co-founders' experiences as a first-generation immigrant dealing with language barriers. In high school, she was laughed at and picked on for not speaking English fluently. During that time, she envisioned a world where people could instantaneously understand each other, regardless of the languages they speak. For 10 years, we have worked on multilingual teams with team members who struggle to understand and confidently express themselves in different languages."}),h.jsx("h4",{children:"🛠️ From building technology products to help people with language barriers, we learned that it was painful to build deeper relationships and understanding in different languages. It's very expensive and time-consuming to find and hire interpreters - the conversation usually takes twice as long to finish, and the existing solutions are often not real-time, affordable or accurate. Our goal is to change that."}),h.jsx("h4",{children:"🤟 We initially built Langfinity (prev. Byrdhouse AI) to solve our own problems, and it gradually grew to help more organizations and individuals."})]}),h.jsxs("section",{children:[h.jsx("h2",{style:{color:"var(--langfinity-blue"},children:"Working at Langfinity"}),h.jsx("h4",{children:"At Langfinity, we champion customer obsession by delivering real-time, high-accuracy translation that removes barriers for people everywhere. We foster inclusion with support for all languages so every voice can be heard. Our drive for innovation fuels continuous improvements in speed, human-like accuracy, and domain-specific expertise. And our commitment to craftsmanship ensures every feature— from intuitive interfaces to natural voice translations—offers a seamless, human-centered experience."}),h.jsx("h4",{children:"Ready to shape the future of global communication?"}),h.jsx(It,{to:"mailto:[email protected]",target:"_blank",children:h.jsx(qe,{size:"landing",color:"black",backgroundColor:"transparent",borderColor:"black",children:"Contact us"})})]})]});function Brn(){const e=il();return b.useEffect(()=>{const t=`https://langfinity.ai${e.pathname}`;let n=document.querySelector("link[rel='canonical']");n||(n=document.createElement("link"),n.rel="canonical",document.head.appendChild(n)),n.href=t},[e]),null}const $rn=()=>{const{pathname:e}=il();return b.useEffect(()=>{window.scrollTo(0,0)},[e]),null};function Hrn(e){const t=Cn(),n=Gt.useLogin(t),r=localStorage.getItem("EXPECT_LOGIN"),[i,o]=b.useState(!!r),s=b.useCallback(async()=>
1663{if(r){o(!0);try{await n()}catch(a){throw localStorage.clear(),a}finally{o(!1)}}},[r,o,n]);return b.useEffect(()=>{s()},[s]),i?h.jsx(Sn,{}):h.jsx(h.Fragment,{children:e.children})}function zrn(){const e=il(),t=ls();return b.useEffect(()=>{t({type:"visit_url",details:{path:e.pathname}})},[t,e.pathname]),null}function Vrn(){return h.jsx(Sz,{children:h.jsxs(gE,{children:[h.jsx(nn,{path:"*",element:h.jsxs(h.Fragment,{children:[h.jsx(hy,{}),h.jsx(Ji,{}),h.jsx(pLt,{})]})}),h.jsx(nn,{path:"/create/:roomType",element:h.jsxs(h.Fragment,{children:[h.jsx(Ji,{}),h.jsx(g3,{})]})}),h.jsx(nn,{path:"/edit/:id",element:h.jsxs(Cp,{children:[h.jsx(Ji,{}),h.jsx(g3,{})]})}),h.jsx(nn,{path:"/event/:id/details",element:h.jsxs(Cp,{children:[h.jsx(Ji,{}),h.jsx(Tnn,{})]})})]})})}function Wrn(){const[e]=Jt(),t=A$t();return t===null?h.jsx(Sn,{}):h.jsx(h.Fragment,{children:t?h.jsx(JWt,{}):h.jsx(Hrn,{children:h.jsxs(NBe,{children:[h.jsx(Brn,{}),h.jsx(zrn,{}),h.jsx($rn,{}),h.jsx("main",{children:h.jsxs(gE,{children:[e.auth?h.jsx(nn,{path:"/*",element:h.jsx(Vrn,{})}):h.jsxs(h.Fragment,{children:[h.jsx(nn,{path:"/",element:h.jsx(Foe,{})}),h.jsx(nn,{path:"/customer-stories",element:h.jsxs(h.Fragment,{children:[h.jsx(hy,{}),h.jsx(Ji,{landing:!0}),h.jsx(Xk,{children:h.jsx(xrn,{})})]})}),h.jsx(nn,{path:"/faq",element:h.jsxs(h.Fragment,{children:[h.jsx(hy,{}),h.jsx(Ji,{landing:!0}),h.jsx(Xk,{children:h.jsx(Prn,{})})]})}),h.jsx(nn,{path:"/about",element:h.jsxs(h.Fragment,{children:[h.jsx(hy,{}),h.jsx(Ji,{landing:!0}),h.jsx(Xk,{children:h.jsx(Urn,{})})]})}),h.jsx(nn,{path:"/pricing",element:h.jsxs(h.Fragment,{children:[h.jsx(hy,{}),h.jsx(Ji,{landing:!0}),h.jsx(Xk,{children:h.jsx(Lrn,{})})]})}),h.jsx(nn,{path:"/login",element:h.jsx(Ole,{})}),h.jsx(nn,{path:"/signup",element:h.jsx(Ole,{signup:!0})})]}),h.jsx(nn,{path:"/meeting/:id",element:h.jsxs(Cp,{children:[h.jsx(Ji,{}),h.jsx(dUt,{})]})}),h.jsx(nn,{path:"/meeting/:id/survey",element:h.jsxs(h.Fragment,{children:[h.jsx(Ji,{}),h.jsx(joe,{})]})}),h.jsx(nn,{path:"/event/:id/speaker",element:h.jsxs(h.Fragment,{children:[h.jsx(Ji,{}),h.jsx(Cp,{children:h.jsx(tht,{})})]})}),h.jsx(nn,{path:"/event/:id",element:h.jsx(h.Fragment,{children:h.jsx(Cp,{children:h.jsx($nn,{})})})}),h.jsx(nn,{path:"/event/:id/interpreter",element:h.jsxs(h.Fragment,{children:[h.jsx(Ji,{}),h.jsx(Cp,{children:h.jsx(Gnn,{})})]})}),h.jsx(nn,{path:"/event/:id/survey",element:h.jsxs(h.Fragment,{children:[h.jsx(Ji,{}),h.jsx(joe,{})]})}),h.jsx(nn,{path:"/recording/:id",element:h.jsxs(h.Fragment,{children:[h.jsx(Ji,{}),h.jsx(mtn,{})]})}),h.jsx(nn,{path:"/*",element:h.jsx(Foe,{})})]})})]})})})}P5e();function qrn(){return h.jsx(h.Fragment,{children:h.jsxs(FUe,{children:[h.jsx(crt,{position:"top-center",theme:"dark",hideProgressBar:!0,autoClose:3e3,icon:!1,bodyStyle:{margin:0,padding:0,height:"100%"}}),h.jsx(Wrn,{})]})})}const Grn='"Twemoji Mozilla","Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji","EmojiOne Color","Android Emoji",sans-serif';function Krn(){const e=document.createElement("canvas");e.width=e.height=1;const t=e.getContext("2d",{willReadFrequently:!0});return t.textBaseline="top",t.font=`100px ${Grn}`,t.scale(.01,.01),t}function Dle(e,t,n){return e.clearRect(0,0,100,100),e.fillStyle=n,e.fillText(t,0,0),e.getImageData(0,0,1,1).data.join(",")}function Lle(e){const t=Krn(),n=Dle(t,e,"#fff"),r=Dle(t,e,"#000");return r===n&&!r.startsWith("0,0,0,")}function Yrn(e="Twemoji Country Flags",t="https://cdn.jsdelivr.net/npm/[email protected]/dist/TwemojiCountryFlags.woff2"){if(typeof window<"u"&&Lle("😊")&&!Lle("🇨🇭")){const n=document.createElement("style");return n.textContent=`@font-face {
1664      font-family: "${e}";
1665      unicode-range: U+1F1E6-1F1FF, U+1F3F4, U+E0062-E0063, U+E0065, U+E0067,
1666        U+E006C, U+E006E, U+E0073-E0074, U+E0077, U+E007F;
1667      src: url('${t}') format('woff2');
1668      font-display: swap;
1669    }`,document.head.appendChild(n),!0}return!1}Yrn();Iet({dsn:"https://8330314e3224291d7b808ee643710176@o4503929032998912.ingest.us.sentry.io/4507942488440832",integrations:[Tet(),fet()],tracesSampleRate:.1,replaysSessionSampleRate:.1,replaysOnErrorSampleRate:1});A8.createRoot(document.getElementById("root")).render(h.jsx(Ae.StrictMode,{children:h.jsx(qrn,{})}));
1670//# sourceMappingURL=index-Cne_BKYv.js.map

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.