From 515b3baeb5969aedc61f8d7b79a40ca34fc0eeef Mon Sep 17 00:00:00 2001 From: Franklin Date: Thu, 3 Aug 2023 10:21:28 -0400 Subject: [PATCH 1/3] updated the ros service call adapter to support enum types --- .../adapter/create_call.py | 14 +++++++++++++- .../adapter/indented_to_ros.py | 2 ++ .../adapter/schema_generator.py | 2 +- 3 files changed, 16 insertions(+), 2 deletions(-) diff --git a/examples/ros-service-call-adapter/adapter/create_call.py b/examples/ros-service-call-adapter/adapter/create_call.py index ee8ca107e..6440b2b58 100644 --- a/examples/ros-service-call-adapter/adapter/create_call.py +++ b/examples/ros-service-call-adapter/adapter/create_call.py @@ -67,6 +67,18 @@ def _parse_primitive(self, obj): if obj["type"] == "string": return input(f"Please enter a value for parameter '{obj['title']}': ") + if obj["type"] == "integer": + return int(input(f"Please enter an integer for parameter '{obj['title']}': ")) + + if obj["type"] == "boolean": + i = input(f"Please enter a boolean ('true' or 'false') for parameter '{obj['title']}': ") + if i.lower() == "true": + return True + elif i.lower() == "false": + return False + else: + return False + def _parse_array(self, obj): if obj["items"]["type"] == "string": t = "values" @@ -83,7 +95,7 @@ def _parse_array(self, obj): @staticmethod def is_primitive(desc): - if desc["type"] in {"string", "number", "integer"}: + if desc["type"] in {"string", "number", "integer", "boolean"}: return True return False diff --git a/examples/ros-service-call-adapter/adapter/indented_to_ros.py b/examples/ros-service-call-adapter/adapter/indented_to_ros.py index 6c9d8dd41..70a80bae6 100644 --- a/examples/ros-service-call-adapter/adapter/indented_to_ros.py +++ b/examples/ros-service-call-adapter/adapter/indented_to_ros.py @@ -37,6 +37,8 @@ def _convert(self): # Signifies the end of the request part of a ROS message if "---" in param["name"]: break + if "=" in param["name"]: + continue self._ros_format.append(self._convert_type(param)) def _convert_type(self, type_obj, parent_name=""): diff --git a/examples/ros-service-call-adapter/adapter/schema_generator.py b/examples/ros-service-call-adapter/adapter/schema_generator.py index a27c0eb94..857e5babc 100644 --- a/examples/ros-service-call-adapter/adapter/schema_generator.py +++ b/examples/ros-service-call-adapter/adapter/schema_generator.py @@ -1,7 +1,7 @@ def ROS_to_json_schema_type_conversion(intype: str): """Convert a ROS type to it's corresponding python type.""" mapping = { - "bool": "bool", + "bool": "boolean", "int8": "integer", "uint8": "integer", "int16": "integer", From 6a6d13de034ebd8a6f8ebfb8e8200d557e397b29 Mon Sep 17 00:00:00 2001 From: Franklin Date: Thu, 3 Aug 2023 13:01:59 -0400 Subject: [PATCH 2/3] Revert "Update service call module (#124)" This reverts commit f5a65b2c810d0c55de6f6ff8d59c674e31e94ed7. --- .../dist/assets/index.a7c55435.js | 202 +++++++++++++++++ .../dist/assets/index.e4554344.js | 205 ------------------ .../ros-service-call-module/dist/index.html | 7 +- 3 files changed, 205 insertions(+), 209 deletions(-) create mode 100644 examples/ros-service-call-module/dist/assets/index.a7c55435.js delete mode 100644 examples/ros-service-call-module/dist/assets/index.e4554344.js diff --git a/examples/ros-service-call-module/dist/assets/index.a7c55435.js b/examples/ros-service-call-module/dist/assets/index.a7c55435.js new file mode 100644 index 000000000..d41a7437b --- /dev/null +++ b/examples/ros-service-call-module/dist/assets/index.a7c55435.js @@ -0,0 +1,202 @@ +var uE=Object.defineProperty,cE=Object.defineProperties;var fE=Object.getOwnPropertyDescriptors;var Oy=Object.getOwnPropertySymbols;var dE=Object.prototype.hasOwnProperty,gE=Object.prototype.propertyIsEnumerable;var Iy=(o,i,s)=>i in o?uE(o,i,{enumerable:!0,configurable:!0,writable:!0,value:s}):o[i]=s,wr=(o,i)=>{for(var s in i||(i={}))dE.call(i,s)&&Iy(o,s,i[s]);if(Oy)for(var s of Oy(i))gE.call(i,s)&&Iy(o,s,i[s]);return o},Sr=(o,i)=>cE(o,fE(i));function _mergeNamespaces(o,i){return i.forEach(function(s){s&&typeof s!="string"&&!Array.isArray(s)&&Object.keys(s).forEach(function(j){if(j!=="default"&&!(j in o)){var $=Object.getOwnPropertyDescriptor(s,j);Object.defineProperty(o,j,$.get?$:{enumerable:!0,get:function(){return s[j]}})}})}),Object.freeze(Object.defineProperty(o,Symbol.toStringTag,{value:"Module"}))}const p$5=function(){const i=document.createElement("link").relList;if(i&&i.supports&&i.supports("modulepreload"))return;for(const $ of document.querySelectorAll('link[rel="modulepreload"]'))j($);new MutationObserver($=>{for(const Z of $)if(Z.type==="childList")for(const et of Z.addedNodes)et.tagName==="LINK"&&et.rel==="modulepreload"&&j(et)}).observe(document,{childList:!0,subtree:!0});function s($){const Z={};return $.integrity&&(Z.integrity=$.integrity),$.referrerpolicy&&(Z.referrerPolicy=$.referrerpolicy),$.crossorigin==="use-credentials"?Z.credentials="include":$.crossorigin==="anonymous"?Z.credentials="omit":Z.credentials="same-origin",Z}function j($){if($.ep)return;$.ep=!0;const Z=s($);fetch($.href,Z)}};p$5();var commonjsGlobal$1=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{},react={exports:{}},react_production_min={};/** + * @license React + * react.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var l$3=Symbol.for("react.element"),n$3=Symbol.for("react.portal"),p$4=Symbol.for("react.fragment"),q$3=Symbol.for("react.strict_mode"),r$2=Symbol.for("react.profiler"),t$2=Symbol.for("react.provider"),u$1=Symbol.for("react.context"),v$2=Symbol.for("react.forward_ref"),w$2=Symbol.for("react.suspense"),x$2=Symbol.for("react.memo"),y$2=Symbol.for("react.lazy"),z$3=Symbol.iterator;function A$3(o){return o===null||typeof o!="object"?null:(o=z$3&&o[z$3]||o["@@iterator"],typeof o=="function"?o:null)}var B$2={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},C$2=Object.assign,D$2={};function E$2(o,i,s){this.props=o,this.context=i,this.refs=D$2,this.updater=s||B$2}E$2.prototype.isReactComponent={};E$2.prototype.setState=function(o,i){if(typeof o!="object"&&typeof o!="function"&&o!=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,o,i,"setState")};E$2.prototype.forceUpdate=function(o){this.updater.enqueueForceUpdate(this,o,"forceUpdate")};function F$1(){}F$1.prototype=E$2.prototype;function G$2(o,i,s){this.props=o,this.context=i,this.refs=D$2,this.updater=s||B$2}var H$2=G$2.prototype=new F$1;H$2.constructor=G$2;C$2(H$2,E$2.prototype);H$2.isPureReactComponent=!0;var I$2=Array.isArray,J=Object.prototype.hasOwnProperty,K$1={current:null},L$1={key:!0,ref:!0,__self:!0,__source:!0};function M$1(o,i,s){var j,$={},Z=null,et=null;if(i!=null)for(j in i.ref!==void 0&&(et=i.ref),i.key!==void 0&&(Z=""+i.key),i)J.call(i,j)&&!L$1.hasOwnProperty(j)&&($[j]=i[j]);var _e=arguments.length-2;if(_e===1)$.children=s;else if(1<_e){for(var nt=Array(_e),rt=0;rt<_e;rt++)nt[rt]=arguments[rt+2];$.children=nt}if(o&&o.defaultProps)for(j in _e=o.defaultProps,_e)$[j]===void 0&&($[j]=_e[j]);return{$$typeof:l$3,type:o,key:Z,ref:et,props:$,_owner:K$1.current}}function N$1(o,i){return{$$typeof:l$3,type:o.type,key:i,ref:o.ref,props:o.props,_owner:o._owner}}function O$1(o){return typeof o=="object"&&o!==null&&o.$$typeof===l$3}function escape$1(o){var i={"=":"=0",":":"=2"};return"$"+o.replace(/[=:]/g,function(s){return i[s]})}var P$1=/\/+/g;function Q$1(o,i){return typeof o=="object"&&o!==null&&o.key!=null?escape$1(""+o.key):i.toString(36)}function R$1(o,i,s,j,$){var Z=typeof o;(Z==="undefined"||Z==="boolean")&&(o=null);var et=!1;if(o===null)et=!0;else switch(Z){case"string":case"number":et=!0;break;case"object":switch(o.$$typeof){case l$3:case n$3:et=!0}}if(et)return et=o,$=$(et),o=j===""?"."+Q$1(et,0):j,I$2($)?(s="",o!=null&&(s=o.replace(P$1,"$&/")+"/"),R$1($,i,s,"",function(rt){return rt})):$!=null&&(O$1($)&&($=N$1($,s+(!$.key||et&&et.key===$.key?"":(""+$.key).replace(P$1,"$&/")+"/")+o)),i.push($)),1;if(et=0,j=j===""?".":j+":",I$2(o))for(var _e=0;_e>>1,Bt=At[Nt];if(0<$(Bt,wt))At[Nt]=wt,At[gt]=Bt,gt=Nt;else break e}}function s(At){return At.length===0?null:At[0]}function j(At){if(At.length===0)return null;var wt=At[0],gt=At.pop();if(gt!==wt){At[0]=gt;e:for(var Nt=0,Bt=At.length,Gt=Bt>>>1;Nt$(Zt,gt))zt$($t,Zt)?(At[Nt]=$t,At[zt]=gt,Nt=zt):(At[Nt]=Zt,At[Kt]=gt,Nt=Kt);else if(zt$($t,gt))At[Nt]=$t,At[zt]=gt,Nt=zt;else break e}}return wt}function $(At,wt){var gt=At.sortIndex-wt.sortIndex;return gt!==0?gt:At.id-wt.id}if(typeof performance=="object"&&typeof performance.now=="function"){var Z=performance;o.unstable_now=function(){return Z.now()}}else{var et=Date,_e=et.now();o.unstable_now=function(){return et.now()-_e}}var nt=[],rt=[],at=1,ft=null,st=3,lt=!1,it=!1,ut=!1,pt=typeof setTimeout=="function"?setTimeout:null,bt=typeof clearTimeout=="function"?clearTimeout:null,xt=typeof setImmediate!="undefined"?setImmediate:null;typeof navigator!="undefined"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function vt(At){for(var wt=s(rt);wt!==null;){if(wt.callback===null)j(rt);else if(wt.startTime<=At)j(rt),wt.sortIndex=wt.expirationTime,i(nt,wt);else break;wt=s(rt)}}function mt(At){if(ut=!1,vt(At),!it)if(s(nt)!==null)it=!0,Tt(ct);else{var wt=s(rt);wt!==null&&Ot(mt,wt.startTime-At)}}function ct(At,wt){it=!1,ut&&(ut=!1,bt(Ut),Ut=-1),lt=!0;var gt=st;try{for(vt(wt),ft=s(nt);ft!==null&&(!(ft.expirationTime>wt)||At&&!Ct());){var Nt=ft.callback;if(typeof Nt=="function"){ft.callback=null,st=ft.priorityLevel;var Bt=Nt(ft.expirationTime<=wt);wt=o.unstable_now(),typeof Bt=="function"?ft.callback=Bt:ft===s(nt)&&j(nt),vt(wt)}else j(nt);ft=s(nt)}if(ft!==null)var Gt=!0;else{var Kt=s(rt);Kt!==null&&Ot(mt,Kt.startTime-wt),Gt=!1}return Gt}finally{ft=null,st=gt,lt=!1}}var Rt=!1,Ft=null,Ut=-1,yt=5,ht=-1;function Ct(){return!(o.unstable_now()-htAt||125Nt?(At.sortIndex=gt,i(rt,At),s(nt)===null&&At===s(rt)&&(ut?(bt(Ut),Ut=-1):ut=!0,Ot(mt,gt-Nt))):(At.sortIndex=Bt,i(nt,At),it||lt||(it=!0,Tt(ct))),At},o.unstable_shouldYield=Ct,o.unstable_wrapCallback=function(At){var wt=st;return function(){var gt=st;st=wt;try{return At.apply(this,arguments)}finally{st=gt}}}})(scheduler_production_min);scheduler.exports=scheduler_production_min;/** + * @license React + * react-dom.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var aa=react.exports,ba=scheduler.exports;function p$3(o){for(var i="https://reactjs.org/docs/error-decoder.html?invariant="+o,s=1;si}return!1}function t$1(o,i,s,j,$,Z,et){this.acceptsBooleans=i===2||i===3||i===4,this.attributeName=j,this.attributeNamespace=$,this.mustUseProperty=s,this.propertyName=o,this.type=i,this.sanitizeURL=Z,this.removeEmptyString=et}var z$2={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(o){z$2[o]=new t$1(o,0,!1,o,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(o){var i=o[0];z$2[i]=new t$1(i,1,!1,o[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(o){z$2[o]=new t$1(o,2,!1,o.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(o){z$2[o]=new t$1(o,2,!1,o,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(o){z$2[o]=new t$1(o,3,!1,o.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(o){z$2[o]=new t$1(o,3,!0,o,null,!1,!1)});["capture","download"].forEach(function(o){z$2[o]=new t$1(o,4,!1,o,null,!1,!1)});["cols","rows","size","span"].forEach(function(o){z$2[o]=new t$1(o,6,!1,o,null,!1,!1)});["rowSpan","start"].forEach(function(o){z$2[o]=new t$1(o,5,!1,o.toLowerCase(),null,!1,!1)});var qa=/[\-:]([a-z])/g;function ra(o){return o[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(o){var i=o.replace(qa,ra);z$2[i]=new t$1(i,1,!1,o,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(o){var i=o.replace(qa,ra);z$2[i]=new t$1(i,1,!1,o,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(o){var i=o.replace(qa,ra);z$2[i]=new t$1(i,1,!1,o,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(o){z$2[o]=new t$1(o,1,!1,o.toLowerCase(),null,!1,!1)});z$2.xlinkHref=new t$1("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(o){z$2[o]=new t$1(o,1,!1,o.toLowerCase(),null,!0,!0)});function sa(o,i,s,j){var $=z$2.hasOwnProperty(i)?z$2[i]:null;($!==null?$.type!==0:j||!(2_e||$[et]!==Z[_e]){var nt=` +`+$[et].replace(" at new "," at ");return o.displayName&&nt.includes("")&&(nt=nt.replace("",o.displayName)),nt}while(1<=et&&0<=_e);break}}}finally{Ma=!1,Error.prepareStackTrace=s}return(o=o?o.displayName||o.name:"")?La(o):""}function Oa(o){switch(o.tag){case 5:return La(o.type);case 16:return La("Lazy");case 13:return La("Suspense");case 19:return La("SuspenseList");case 0:case 2:case 15:return o=Na(o.type,!1),o;case 11:return o=Na(o.type.render,!1),o;case 1:return o=Na(o.type,!0),o;default:return""}}function Pa(o){if(o==null)return null;if(typeof o=="function")return o.displayName||o.name||null;if(typeof o=="string")return o;switch(o){case wa:return"Fragment";case va:return"Portal";case za:return"Profiler";case xa:return"StrictMode";case Da:return"Suspense";case Ea:return"SuspenseList"}if(typeof o=="object")switch(o.$$typeof){case Ba:return(o.displayName||"Context")+".Consumer";case Aa:return(o._context.displayName||"Context")+".Provider";case Ca:var i=o.render;return o=o.displayName,o||(o=i.displayName||i.name||"",o=o!==""?"ForwardRef("+o+")":"ForwardRef"),o;case Fa:return i=o.displayName||null,i!==null?i:Pa(o.type)||"Memo";case Ga:i=o._payload,o=o._init;try{return Pa(o(i))}catch{}}return null}function Qa(o){var i=o.type;switch(o.tag){case 24:return"Cache";case 9:return(i.displayName||"Context")+".Consumer";case 10:return(i._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return o=i.render,o=o.displayName||o.name||"",i.displayName||(o!==""?"ForwardRef("+o+")":"ForwardRef");case 7:return"Fragment";case 5:return i;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Pa(i);case 8:return i===xa?"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 i=="function")return i.displayName||i.name||null;if(typeof i=="string")return i}return null}function Ra(o){switch(typeof o){case"boolean":case"number":case"string":case"undefined":return o;case"object":return o;default:return""}}function Sa(o){var i=o.type;return(o=o.nodeName)&&o.toLowerCase()==="input"&&(i==="checkbox"||i==="radio")}function Ta(o){var i=Sa(o)?"checked":"value",s=Object.getOwnPropertyDescriptor(o.constructor.prototype,i),j=""+o[i];if(!o.hasOwnProperty(i)&&typeof s!="undefined"&&typeof s.get=="function"&&typeof s.set=="function"){var $=s.get,Z=s.set;return Object.defineProperty(o,i,{configurable:!0,get:function(){return $.call(this)},set:function(et){j=""+et,Z.call(this,et)}}),Object.defineProperty(o,i,{enumerable:s.enumerable}),{getValue:function(){return j},setValue:function(et){j=""+et},stopTracking:function(){o._valueTracker=null,delete o[i]}}}}function Ua(o){o._valueTracker||(o._valueTracker=Ta(o))}function Va(o){if(!o)return!1;var i=o._valueTracker;if(!i)return!0;var s=i.getValue(),j="";return o&&(j=Sa(o)?o.checked?"true":"false":o.value),o=j,o!==s?(i.setValue(o),!0):!1}function Wa(o){if(o=o||(typeof document!="undefined"?document:void 0),typeof o=="undefined")return null;try{return o.activeElement||o.body}catch{return o.body}}function Xa(o,i){var s=i.checked;return A$2({},i,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:s!=null?s:o._wrapperState.initialChecked})}function Ya(o,i){var s=i.defaultValue==null?"":i.defaultValue,j=i.checked!=null?i.checked:i.defaultChecked;s=Ra(i.value!=null?i.value:s),o._wrapperState={initialChecked:j,initialValue:s,controlled:i.type==="checkbox"||i.type==="radio"?i.checked!=null:i.value!=null}}function Za(o,i){i=i.checked,i!=null&&sa(o,"checked",i,!1)}function $a(o,i){Za(o,i);var s=Ra(i.value),j=i.type;if(s!=null)j==="number"?(s===0&&o.value===""||o.value!=s)&&(o.value=""+s):o.value!==""+s&&(o.value=""+s);else if(j==="submit"||j==="reset"){o.removeAttribute("value");return}i.hasOwnProperty("value")?bb(o,i.type,s):i.hasOwnProperty("defaultValue")&&bb(o,i.type,Ra(i.defaultValue)),i.checked==null&&i.defaultChecked!=null&&(o.defaultChecked=!!i.defaultChecked)}function cb(o,i,s){if(i.hasOwnProperty("value")||i.hasOwnProperty("defaultValue")){var j=i.type;if(!(j!=="submit"&&j!=="reset"||i.value!==void 0&&i.value!==null))return;i=""+o._wrapperState.initialValue,s||i===o.value||(o.value=i),o.defaultValue=i}s=o.name,s!==""&&(o.name=""),o.defaultChecked=!!o._wrapperState.initialChecked,s!==""&&(o.name=s)}function bb(o,i,s){(i!=="number"||Wa(o.ownerDocument)!==o)&&(s==null?o.defaultValue=""+o._wrapperState.initialValue:o.defaultValue!==""+s&&(o.defaultValue=""+s))}var db=Array.isArray;function eb(o,i,s,j){if(o=o.options,i){i={};for(var $=0;$"+i.valueOf().toString()+"",i=lb.firstChild;o.firstChild;)o.removeChild(o.firstChild);for(;i.firstChild;)o.appendChild(i.firstChild)}});function nb(o,i){if(i){var s=o.firstChild;if(s&&s===o.lastChild&&s.nodeType===3){s.nodeValue=i;return}}o.textContent=i}var ob={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},pb=["Webkit","ms","Moz","O"];Object.keys(ob).forEach(function(o){pb.forEach(function(i){i=i+o.charAt(0).toUpperCase()+o.substring(1),ob[i]=ob[o]})});function qb(o,i,s){return i==null||typeof i=="boolean"||i===""?"":s||typeof i!="number"||i===0||ob.hasOwnProperty(o)&&ob[o]?(""+i).trim():i+"px"}function rb(o,i){o=o.style;for(var s in i)if(i.hasOwnProperty(s)){var j=s.indexOf("--")===0,$=qb(s,i[s],j);s==="float"&&(s="cssFloat"),j?o.setProperty(s,$):o[s]=$}}var sb=A$2({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 tb(o,i){if(i){if(sb[o]&&(i.children!=null||i.dangerouslySetInnerHTML!=null))throw Error(p$3(137,o));if(i.dangerouslySetInnerHTML!=null){if(i.children!=null)throw Error(p$3(60));if(typeof i.dangerouslySetInnerHTML!="object"||!("__html"in i.dangerouslySetInnerHTML))throw Error(p$3(61))}if(i.style!=null&&typeof i.style!="object")throw Error(p$3(62))}}function ub(o,i){if(o.indexOf("-")===-1)return typeof i.is=="string";switch(o){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 vb=null;function wb(o){return o=o.target||o.srcElement||window,o.correspondingUseElement&&(o=o.correspondingUseElement),o.nodeType===3?o.parentNode:o}var xb=null,yb=null,zb=null;function Ab(o){if(o=Bb(o)){if(typeof xb!="function")throw Error(p$3(280));var i=o.stateNode;i&&(i=Cb(i),xb(o.stateNode,o.type,i))}}function Db(o){yb?zb?zb.push(o):zb=[o]:yb=o}function Eb(){if(yb){var o=yb,i=zb;if(zb=yb=null,Ab(o),i)for(o=0;o>>=0,o===0?32:31-(oc(o)/pc|0)|0}var qc=64,rc=4194304;function sc(o){switch(o&-o){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 o&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return o&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return o}}function tc(o,i){var s=o.pendingLanes;if(s===0)return 0;var j=0,$=o.suspendedLanes,Z=o.pingedLanes,et=s&268435455;if(et!==0){var _e=et&~$;_e!==0?j=sc(_e):(Z&=et,Z!==0&&(j=sc(Z)))}else et=s&~$,et!==0?j=sc(et):Z!==0&&(j=sc(Z));if(j===0)return 0;if(i!==0&&i!==j&&(i&$)===0&&($=j&-j,Z=i&-i,$>=Z||$===16&&(Z&4194240)!==0))return i;if((j&4)!==0&&(j|=s&16),i=o.entangledLanes,i!==0)for(o=o.entanglements,i&=j;0s;s++)i.push(o);return i}function zc(o,i,s){o.pendingLanes|=i,i!==536870912&&(o.suspendedLanes=0,o.pingedLanes=0),o=o.eventTimes,i=31-nc(i),o[i]=s}function Ac(o,i){var s=o.pendingLanes&~i;o.pendingLanes=i,o.suspendedLanes=0,o.pingedLanes=0,o.expiredLanes&=i,o.mutableReadLanes&=i,o.entangledLanes&=i,i=o.entanglements;var j=o.eventTimes;for(o=o.expirationTimes;0=ae),de=String.fromCharCode(32),ee=!1;function fe(o,i){switch(o){case"keyup":return Zd.indexOf(i.keyCode)!==-1;case"keydown":return i.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function ge(o){return o=o.detail,typeof o=="object"&&"data"in o?o.data:null}var he=!1;function ie(o,i){switch(o){case"compositionend":return ge(i);case"keypress":return i.which!==32?null:(ee=!0,de);case"textInput":return o=i.data,o===de&&ee?null:o;default:return null}}function je(o,i){if(he)return o==="compositionend"||!$d&&fe(o,i)?(o=md(),ld=kd=jd=null,he=!1,o):null;switch(o){case"paste":return null;case"keypress":if(!(i.ctrlKey||i.altKey||i.metaKey)||i.ctrlKey&&i.altKey){if(i.char&&1=i)return{node:s,offset:i-o};o=j}e:{for(;s;){if(s.nextSibling){s=s.nextSibling;break e}s=s.parentNode}s=void 0}s=Ie(s)}}function Ke(o,i){return o&&i?o===i?!0:o&&o.nodeType===3?!1:i&&i.nodeType===3?Ke(o,i.parentNode):"contains"in o?o.contains(i):o.compareDocumentPosition?!!(o.compareDocumentPosition(i)&16):!1:!1}function Le(){for(var o=window,i=Wa();i instanceof o.HTMLIFrameElement;){try{var s=typeof i.contentWindow.location.href=="string"}catch{s=!1}if(s)o=i.contentWindow;else break;i=Wa(o.document)}return i}function Me(o){var i=o&&o.nodeName&&o.nodeName.toLowerCase();return i&&(i==="input"&&(o.type==="text"||o.type==="search"||o.type==="tel"||o.type==="url"||o.type==="password")||i==="textarea"||o.contentEditable==="true")}function Ne(o){var i=Le(),s=o.focusedElem,j=o.selectionRange;if(i!==s&&s&&s.ownerDocument&&Ke(s.ownerDocument.documentElement,s)){if(j!==null&&Me(s)){if(i=j.start,o=j.end,o===void 0&&(o=i),"selectionStart"in s)s.selectionStart=i,s.selectionEnd=Math.min(o,s.value.length);else if(o=(i=s.ownerDocument||document)&&i.defaultView||window,o.getSelection){o=o.getSelection();var $=s.textContent.length,Z=Math.min(j.start,$);j=j.end===void 0?Z:Math.min(j.end,$),!o.extend&&Z>j&&($=j,j=Z,Z=$),$=Je(s,Z);var et=Je(s,j);$&&et&&(o.rangeCount!==1||o.anchorNode!==$.node||o.anchorOffset!==$.offset||o.focusNode!==et.node||o.focusOffset!==et.offset)&&(i=i.createRange(),i.setStart($.node,$.offset),o.removeAllRanges(),Z>j?(o.addRange(i),o.extend(et.node,et.offset)):(i.setEnd(et.node,et.offset),o.addRange(i)))}}for(i=[],o=s;o=o.parentNode;)o.nodeType===1&&i.push({element:o,left:o.scrollLeft,top:o.scrollTop});for(typeof s.focus=="function"&&s.focus(),s=0;s=document.documentMode,Pe=null,Qe=null,Re=null,Se=!1;function Te(o,i,s){var j=s.window===s?s.document:s.nodeType===9?s:s.ownerDocument;Se||Pe==null||Pe!==Wa(j)||(j=Pe,"selectionStart"in j&&Me(j)?j={start:j.selectionStart,end:j.selectionEnd}:(j=(j.ownerDocument&&j.ownerDocument.defaultView||window).getSelection(),j={anchorNode:j.anchorNode,anchorOffset:j.anchorOffset,focusNode:j.focusNode,focusOffset:j.focusOffset}),Re&&He(Re,j)||(Re=j,j=ne(Qe,"onSelect"),0Sf||(o.current=Rf[Sf],Rf[Sf]=null,Sf--)}function G$1(o,i){Sf++,Rf[Sf]=o.current,o.current=i}var Uf={},H$1=Tf(Uf),Vf=Tf(!1),Wf=Uf;function Xf(o,i){var s=o.type.contextTypes;if(!s)return Uf;var j=o.stateNode;if(j&&j.__reactInternalMemoizedUnmaskedChildContext===i)return j.__reactInternalMemoizedMaskedChildContext;var $={},Z;for(Z in s)$[Z]=i[Z];return j&&(o=o.stateNode,o.__reactInternalMemoizedUnmaskedChildContext=i,o.__reactInternalMemoizedMaskedChildContext=$),$}function Yf(o){return o=o.childContextTypes,o!=null}function Zf(){E$1(Vf),E$1(H$1)}function $f(o,i,s){if(H$1.current!==Uf)throw Error(p$3(168));G$1(H$1,i),G$1(Vf,s)}function ag(o,i,s){var j=o.stateNode;if(i=i.childContextTypes,typeof j.getChildContext!="function")return s;j=j.getChildContext();for(var $ in j)if(!($ in i))throw Error(p$3(108,Qa(o)||"Unknown",$));return A$2({},s,j)}function bg(o){return o=(o=o.stateNode)&&o.__reactInternalMemoizedMergedChildContext||Uf,Wf=H$1.current,G$1(H$1,o),G$1(Vf,Vf.current),!0}function cg(o,i,s){var j=o.stateNode;if(!j)throw Error(p$3(169));s?(o=ag(o,i,Wf),j.__reactInternalMemoizedMergedChildContext=o,E$1(Vf),E$1(H$1),G$1(H$1,o)):E$1(Vf),G$1(Vf,s)}var dg=null,eg=!1,fg=!1;function gg(o){dg===null?dg=[o]:dg.push(o)}function hg(o){eg=!0,gg(o)}function ig(){if(!fg&&dg!==null){fg=!0;var o=0,i=C$1;try{var s=dg;for(C$1=1;o>=et,$-=et,Yg=1<<32-nc(i)+$|s<<$|j,Zg=Z+o}else Yg=1<Ut?(yt=Ft,Ft=null):yt=Ft.sibling;var ht=st(bt,Ft,vt[Ut],mt);if(ht===null){Ft===null&&(Ft=yt);break}o&&Ft&&ht.alternate===null&&i(bt,Ft),xt=Z(ht,xt,Ut),Rt===null?ct=ht:Rt.sibling=ht,Rt=ht,Ft=yt}if(Ut===vt.length)return s(bt,Ft),I$1&&$g(bt,Ut),ct;if(Ft===null){for(;UtUt?(yt=Ft,Ft=null):yt=Ft.sibling;var Ct=st(bt,Ft,ht.value,mt);if(Ct===null){Ft===null&&(Ft=yt);break}o&&Ft&&Ct.alternate===null&&i(bt,Ft),xt=Z(Ct,xt,Ut),Rt===null?ct=Ct:Rt.sibling=Ct,Rt=Ct,Ft=yt}if(ht.done)return s(bt,Ft),I$1&&$g(bt,Ut),ct;if(Ft===null){for(;!ht.done;Ut++,ht=vt.next())ht=ft(bt,ht.value,mt),ht!==null&&(xt=Z(ht,xt,Ut),Rt===null?ct=ht:Rt.sibling=ht,Rt=ht);return I$1&&$g(bt,Ut),ct}for(Ft=j(bt,Ft);!ht.done;Ut++,ht=vt.next())ht=lt(Ft,bt,Ut,ht.value,mt),ht!==null&&(o&&ht.alternate!==null&&Ft.delete(ht.key===null?Ut:ht.key),xt=Z(ht,xt,Ut),Rt===null?ct=ht:Rt.sibling=ht,Rt=ht);return o&&Ft.forEach(function(St){return i(bt,St)}),I$1&&$g(bt,Ut),ct}function pt(bt,xt,vt,mt){if(typeof vt=="object"&&vt!==null&&vt.type===wa&&vt.key===null&&(vt=vt.props.children),typeof vt=="object"&&vt!==null){switch(vt.$$typeof){case ua$1:e:{for(var ct=vt.key,Rt=xt;Rt!==null;){if(Rt.key===ct){if(ct=vt.type,ct===wa){if(Rt.tag===7){s(bt,Rt.sibling),xt=$(Rt,vt.props.children),xt.return=bt,bt=xt;break e}}else if(Rt.elementType===ct||typeof ct=="object"&&ct!==null&&ct.$$typeof===Ga&&rh(ct)===Rt.type){s(bt,Rt.sibling),xt=$(Rt,vt.props),xt.ref=ph(bt,Rt,vt),xt.return=bt,bt=xt;break e}s(bt,Rt);break}else i(bt,Rt);Rt=Rt.sibling}vt.type===wa?(xt=xh(vt.props.children,bt.mode,mt,vt.key),xt.return=bt,bt=xt):(mt=vh(vt.type,vt.key,vt.props,null,bt.mode,mt),mt.ref=ph(bt,xt,vt),mt.return=bt,bt=mt)}return et(bt);case va:e:{for(Rt=vt.key;xt!==null;){if(xt.key===Rt)if(xt.tag===4&&xt.stateNode.containerInfo===vt.containerInfo&&xt.stateNode.implementation===vt.implementation){s(bt,xt.sibling),xt=$(xt,vt.children||[]),xt.return=bt,bt=xt;break e}else{s(bt,xt);break}else i(bt,xt);xt=xt.sibling}xt=wh(vt,bt.mode,mt),xt.return=bt,bt=xt}return et(bt);case Ga:return Rt=vt._init,pt(bt,xt,Rt(vt._payload),mt)}if(db(vt))return it(bt,xt,vt,mt);if(Ja(vt))return ut(bt,xt,vt,mt);qh(bt,vt)}return typeof vt=="string"&&vt!==""||typeof vt=="number"?(vt=""+vt,xt!==null&&xt.tag===6?(s(bt,xt.sibling),xt=$(xt,vt),xt.return=bt,bt=xt):(s(bt,xt),xt=uh(vt,bt.mode,mt),xt.return=bt,bt=xt),et(bt)):s(bt,xt)}return pt}var yh=sh(!0),zh=sh(!1),Ah={},Bh=Tf(Ah),Ch=Tf(Ah),Dh=Tf(Ah);function Eh(o){if(o===Ah)throw Error(p$3(174));return o}function Fh(o,i){switch(G$1(Dh,i),G$1(Ch,o),G$1(Bh,Ah),o=i.nodeType,o){case 9:case 11:i=(i=i.documentElement)?i.namespaceURI:kb(null,"");break;default:o=o===8?i.parentNode:i,i=o.namespaceURI||null,o=o.tagName,i=kb(i,o)}E$1(Bh),G$1(Bh,i)}function Gh(){E$1(Bh),E$1(Ch),E$1(Dh)}function Hh(o){Eh(Dh.current);var i=Eh(Bh.current),s=kb(i,o.type);i!==s&&(G$1(Ch,o),G$1(Bh,s))}function Ih(o){Ch.current===o&&(E$1(Bh),E$1(Ch))}var K=Tf(0);function Jh(o){for(var i=o;i!==null;){if(i.tag===13){var s=i.memoizedState;if(s!==null&&(s=s.dehydrated,s===null||s.data==="$?"||s.data==="$!"))return i}else if(i.tag===19&&i.memoizedProps.revealOrder!==void 0){if((i.flags&128)!==0)return i}else if(i.child!==null){i.child.return=i,i=i.child;continue}if(i===o)break;for(;i.sibling===null;){if(i.return===null||i.return===o)return null;i=i.return}i.sibling.return=i.return,i=i.sibling}return null}var Kh=[];function Lh(){for(var o=0;os?s:4,o(!0);var j=Nh.transition;Nh.transition={};try{o(!1),i()}finally{C$1=s,Nh.transition=j}}function Bi(){return ai().memoizedState}function Ci(o,i,s){var j=Kg(o);s={lane:j,action:s,hasEagerState:!1,eagerState:null,next:null},Di(o)?Ei(i,s):(Fi(o,i,s),s=Jg(),o=Lg(o,j,s),o!==null&&Gi(o,i,j))}function ni(o,i,s){var j=Kg(o),$={lane:j,action:s,hasEagerState:!1,eagerState:null,next:null};if(Di(o))Ei(i,$);else{Fi(o,i,$);var Z=o.alternate;if(o.lanes===0&&(Z===null||Z.lanes===0)&&(Z=i.lastRenderedReducer,Z!==null))try{var et=i.lastRenderedState,_e=Z(et,s);if($.hasEagerState=!0,$.eagerState=_e,Ge(_e,et))return}catch{}finally{}s=Jg(),o=Lg(o,j,s),o!==null&&Gi(o,i,j)}}function Di(o){var i=o.alternate;return o===L||i!==null&&i===L}function Ei(o,i){Qh=Ph=!0;var s=o.pending;s===null?i.next=i:(i.next=s.next,s.next=i),o.pending=i}function Fi(o,i,s){Bg(o)?(o=i.interleaved,o===null?(s.next=s,vg===null?vg=[i]:vg.push(i)):(s.next=o.next,o.next=s),i.interleaved=s):(o=i.pending,o===null?s.next=s:(s.next=o.next,o.next=s),i.pending=s)}function Gi(o,i,s){if((s&4194240)!==0){var j=i.lanes;j&=o.pendingLanes,s|=j,i.lanes=s,Bc(o,s)}}var Yh={readContext:ug,useCallback:O,useContext:O,useEffect:O,useImperativeHandle:O,useInsertionEffect:O,useLayoutEffect:O,useMemo:O,useReducer:O,useRef:O,useState:O,useDebugValue:O,useDeferredValue:O,useTransition:O,useMutableSource:O,useSyncExternalStore:O,useId:O,unstable_isNewReconciler:!1},Vh={readContext:ug,useCallback:function(o,i){return $h().memoizedState=[o,i===void 0?null:i],o},useContext:ug,useEffect:ri,useImperativeHandle:function(o,i,s){return s=s!=null?s.concat([o]):null,pi(4194308,4,ui.bind(null,i,o),s)},useLayoutEffect:function(o,i){return pi(4194308,4,o,i)},useInsertionEffect:function(o,i){return pi(4,2,o,i)},useMemo:function(o,i){var s=$h();return i=i===void 0?null:i,o=o(),s.memoizedState=[o,i],o},useReducer:function(o,i,s){var j=$h();return i=s!==void 0?s(i):i,j.memoizedState=j.baseState=i,o={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:o,lastRenderedState:i},j.queue=o,o=o.dispatch=Ci.bind(null,L,o),[j.memoizedState,o]},useRef:function(o){var i=$h();return o={current:o},i.memoizedState=o},useState:mi,useDebugValue:wi,useDeferredValue:function(o){return $h().memoizedState=o},useTransition:function(){var o=mi(!1),i=o[0];return o=Ai.bind(null,o[1]),$h().memoizedState=o,[i,o]},useMutableSource:function(){},useSyncExternalStore:function(o,i,s){var j=L,$=$h();if(I$1){if(s===void 0)throw Error(p$3(407));s=s()}else{if(s=i(),P===null)throw Error(p$3(349));(Oh&30)!==0||ki(j,i,s)}$.memoizedState=s;var Z={value:s,getSnapshot:i};return $.queue=Z,ri(hi.bind(null,j,Z,o),[o]),j.flags|=2048,ii(9,ji.bind(null,j,Z,s,i),void 0,null),s},useId:function(){var o=$h(),i=P.identifierPrefix;if(I$1){var s=Zg,j=Yg;s=(j&~(1<<32-nc(j)-1)).toString(32)+s,i=":"+i+"R"+s,s=Rh++,0<\/script>",o=o.removeChild(o.firstChild)):typeof j.is=="string"?o=et.createElement(s,{is:j.is}):(o=et.createElement(s),s==="select"&&(et=o,j.multiple?et.multiple=!0:j.size&&(et.size=j.size))):o=et.createElementNS(o,s),o[Nf]=i,o[Of]=j,Ti(o,i,!1,!1),i.stateNode=o;e:{switch(et=ub(s,j),s){case"dialog":D$1("cancel",o),D$1("close",o),$=j;break;case"iframe":case"object":case"embed":D$1("load",o),$=j;break;case"video":case"audio":for($=0;$aj&&(i.flags|=128,j=!0,Xi(Z,!1),i.lanes=4194304)}else{if(!j)if(o=Jh(et),o!==null){if(i.flags|=128,j=!0,s=o.updateQueue,s!==null&&(i.updateQueue=s,i.flags|=4),Xi(Z,!0),Z.tail===null&&Z.tailMode==="hidden"&&!et.alternate&&!I$1)return Q(i),null}else 2*B$1()-Z.renderingStartTime>aj&&s!==1073741824&&(i.flags|=128,j=!0,Xi(Z,!1),i.lanes=4194304);Z.isBackwards?(et.sibling=i.child,i.child=et):(s=Z.last,s!==null?s.sibling=et:i.child=et,Z.last=et)}return Z.tail!==null?(i=Z.tail,Z.rendering=i,Z.tail=i.sibling,Z.renderingStartTime=B$1(),i.sibling=null,s=K.current,G$1(K,j?s&1|2:s&1),i):(Q(i),null);case 22:case 23:return bj(),j=i.memoizedState!==null,o!==null&&o.memoizedState!==null!==j&&(i.flags|=8192),j&&(i.mode&1)!==0?(cj&1073741824)!==0&&(Q(i),i.subtreeFlags&6&&(i.flags|=8192)):Q(i),null;case 24:return null;case 25:return null}throw Error(p$3(156,i.tag))}var dj=ta.ReactCurrentOwner,tg=!1;function ej(o,i,s,j){i.child=o===null?zh(i,null,s,j):yh(i,o.child,s,j)}function fj(o,i,s,j,$){s=s.render;var Z=i.ref;return sg(i,$),j=Uh(o,i,s,j,Z,$),s=Zh(),o!==null&&!tg?(i.updateQueue=o.updateQueue,i.flags&=-2053,o.lanes&=~$,gj(o,i,$)):(I$1&&s&&bh(i),i.flags|=1,ej(o,i,j,$),i.child)}function hj(o,i,s,j,$){if(o===null){var Z=s.type;return typeof Z=="function"&&!ij(Z)&&Z.defaultProps===void 0&&s.compare===null&&s.defaultProps===void 0?(i.tag=15,i.type=Z,jj(o,i,Z,j,$)):(o=vh(s.type,null,j,i,i.mode,$),o.ref=i.ref,o.return=i,i.child=o)}if(Z=o.child,(o.lanes&$)===0){var et=Z.memoizedProps;if(s=s.compare,s=s!==null?s:He,s(et,j)&&o.ref===i.ref)return gj(o,i,$)}return i.flags|=1,o=th(Z,j),o.ref=i.ref,o.return=i,i.child=o}function jj(o,i,s,j,$){if(o!==null){var Z=o.memoizedProps;if(He(Z,j)&&o.ref===i.ref)if(tg=!1,i.pendingProps=j=Z,(o.lanes&$)!==0)(o.flags&131072)!==0&&(tg=!0);else return i.lanes=o.lanes,gj(o,i,$)}return kj(o,i,s,j,$)}function lj(o,i,s){var j=i.pendingProps,$=j.children,Z=o!==null?o.memoizedState:null;if(j.mode==="hidden")if((i.mode&1)===0)i.memoizedState={baseLanes:0,cachePool:null,transitions:null},G$1(mj,cj),cj|=s;else if((s&1073741824)!==0)i.memoizedState={baseLanes:0,cachePool:null,transitions:null},j=Z!==null?Z.baseLanes:s,G$1(mj,cj),cj|=j;else return o=Z!==null?Z.baseLanes|s:s,i.lanes=i.childLanes=1073741824,i.memoizedState={baseLanes:o,cachePool:null,transitions:null},i.updateQueue=null,G$1(mj,cj),cj|=o,null;else Z!==null?(j=Z.baseLanes|s,i.memoizedState=null):j=s,G$1(mj,cj),cj|=j;return ej(o,i,$,s),i.child}function nj(o,i){var s=i.ref;(o===null&&s!==null||o!==null&&o.ref!==s)&&(i.flags|=512,i.flags|=2097152)}function kj(o,i,s,j,$){var Z=Yf(s)?Wf:H$1.current;return Z=Xf(i,Z),sg(i,$),s=Uh(o,i,s,j,Z,$),j=Zh(),o!==null&&!tg?(i.updateQueue=o.updateQueue,i.flags&=-2053,o.lanes&=~$,gj(o,i,$)):(I$1&&j&&bh(i),i.flags|=1,ej(o,i,s,$),i.child)}function oj(o,i,s,j,$){if(Yf(s)){var Z=!0;bg(i)}else Z=!1;if(sg(i,$),i.stateNode===null)o!==null&&(o.alternate=null,i.alternate=null,i.flags|=2),Og(i,s,j),Qg(i,s,j,$),j=!0;else if(o===null){var et=i.stateNode,_e=i.memoizedProps;et.props=_e;var nt=et.context,rt=s.contextType;typeof rt=="object"&&rt!==null?rt=ug(rt):(rt=Yf(s)?Wf:H$1.current,rt=Xf(i,rt));var at=s.getDerivedStateFromProps,ft=typeof at=="function"||typeof et.getSnapshotBeforeUpdate=="function";ft||typeof et.UNSAFE_componentWillReceiveProps!="function"&&typeof et.componentWillReceiveProps!="function"||(_e!==j||nt!==rt)&&Pg(i,et,j,rt),wg=!1;var st=i.memoizedState;et.state=st,Eg(i,j,et,$),nt=i.memoizedState,_e!==j||st!==nt||Vf.current||wg?(typeof at=="function"&&(Ig(i,s,at,j),nt=i.memoizedState),(_e=wg||Ng(i,s,_e,j,st,nt,rt))?(ft||typeof et.UNSAFE_componentWillMount!="function"&&typeof et.componentWillMount!="function"||(typeof et.componentWillMount=="function"&&et.componentWillMount(),typeof et.UNSAFE_componentWillMount=="function"&&et.UNSAFE_componentWillMount()),typeof et.componentDidMount=="function"&&(i.flags|=4194308)):(typeof et.componentDidMount=="function"&&(i.flags|=4194308),i.memoizedProps=j,i.memoizedState=nt),et.props=j,et.state=nt,et.context=rt,j=_e):(typeof et.componentDidMount=="function"&&(i.flags|=4194308),j=!1)}else{et=i.stateNode,yg(o,i),_e=i.memoizedProps,rt=i.type===i.elementType?_e:kg(i.type,_e),et.props=rt,ft=i.pendingProps,st=et.context,nt=s.contextType,typeof nt=="object"&&nt!==null?nt=ug(nt):(nt=Yf(s)?Wf:H$1.current,nt=Xf(i,nt));var lt=s.getDerivedStateFromProps;(at=typeof lt=="function"||typeof et.getSnapshotBeforeUpdate=="function")||typeof et.UNSAFE_componentWillReceiveProps!="function"&&typeof et.componentWillReceiveProps!="function"||(_e!==ft||st!==nt)&&Pg(i,et,j,nt),wg=!1,st=i.memoizedState,et.state=st,Eg(i,j,et,$);var it=i.memoizedState;_e!==ft||st!==it||Vf.current||wg?(typeof lt=="function"&&(Ig(i,s,lt,j),it=i.memoizedState),(rt=wg||Ng(i,s,rt,j,st,it,nt)||!1)?(at||typeof et.UNSAFE_componentWillUpdate!="function"&&typeof et.componentWillUpdate!="function"||(typeof et.componentWillUpdate=="function"&&et.componentWillUpdate(j,it,nt),typeof et.UNSAFE_componentWillUpdate=="function"&&et.UNSAFE_componentWillUpdate(j,it,nt)),typeof et.componentDidUpdate=="function"&&(i.flags|=4),typeof et.getSnapshotBeforeUpdate=="function"&&(i.flags|=1024)):(typeof et.componentDidUpdate!="function"||_e===o.memoizedProps&&st===o.memoizedState||(i.flags|=4),typeof et.getSnapshotBeforeUpdate!="function"||_e===o.memoizedProps&&st===o.memoizedState||(i.flags|=1024),i.memoizedProps=j,i.memoizedState=it),et.props=j,et.state=it,et.context=nt,j=rt):(typeof et.componentDidUpdate!="function"||_e===o.memoizedProps&&st===o.memoizedState||(i.flags|=4),typeof et.getSnapshotBeforeUpdate!="function"||_e===o.memoizedProps&&st===o.memoizedState||(i.flags|=1024),j=!1)}return pj(o,i,s,j,Z,$)}function pj(o,i,s,j,$,Z){nj(o,i);var et=(i.flags&128)!==0;if(!j&&!et)return $&&cg(i,s,!1),gj(o,i,Z);j=i.stateNode,dj.current=i;var _e=et&&typeof s.getDerivedStateFromError!="function"?null:j.render();return i.flags|=1,o!==null&&et?(i.child=yh(i,o.child,null,Z),i.child=yh(i,null,_e,Z)):ej(o,i,_e,Z),i.memoizedState=j.state,$&&cg(i,s,!0),i.child}function qj(o){var i=o.stateNode;i.pendingContext?$f(o,i.pendingContext,i.pendingContext!==i.context):i.context&&$f(o,i.context,!1),Fh(o,i.containerInfo)}function rj(o,i,s,j,$){return nh(),oh($),i.flags|=256,ej(o,i,s,j),i.child}var sj={dehydrated:null,treeContext:null,retryLane:0};function tj(o){return{baseLanes:o,cachePool:null,transitions:null}}function uj(o,i){return{baseLanes:o.baseLanes|i,cachePool:null,transitions:o.transitions}}function vj(o,i,s){var j=i.pendingProps,$=K.current,Z=!1,et=(i.flags&128)!==0,_e;if((_e=et)||(_e=o!==null&&o.memoizedState===null?!1:($&2)!==0),_e?(Z=!0,i.flags&=-129):(o===null||o.memoizedState!==null)&&($|=1),G$1(K,$&1),o===null)return kh(i),o=i.memoizedState,o!==null&&(o=o.dehydrated,o!==null)?((i.mode&1)===0?i.lanes=1:o.data==="$!"?i.lanes=8:i.lanes=1073741824,null):($=j.children,o=j.fallback,Z?(j=i.mode,Z=i.child,$={mode:"hidden",children:$},(j&1)===0&&Z!==null?(Z.childLanes=0,Z.pendingProps=$):Z=wj($,j,0,null),o=xh(o,j,s,null),Z.return=i,o.return=i,Z.sibling=o,i.child=Z,i.child.memoizedState=tj(s),i.memoizedState=sj,o):xj(i,$));if($=o.memoizedState,$!==null){if(_e=$.dehydrated,_e!==null){if(et)return i.flags&256?(i.flags&=-257,yj(o,i,s,Error(p$3(422)))):i.memoizedState!==null?(i.child=o.child,i.flags|=128,null):(Z=j.fallback,$=i.mode,j=wj({mode:"visible",children:j.children},$,0,null),Z=xh(Z,$,s,null),Z.flags|=2,j.return=i,Z.return=i,j.sibling=Z,i.child=j,(i.mode&1)!==0&&yh(i,o.child,null,s),i.child.memoizedState=tj(s),i.memoizedState=sj,Z);if((i.mode&1)===0)i=yj(o,i,s,null);else if(_e.data==="$!")i=yj(o,i,s,Error(p$3(419)));else if(j=(s&o.childLanes)!==0,tg||j){if(j=P,j!==null){switch(s&-s){case 4:Z=2;break;case 16:Z=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:Z=32;break;case 536870912:Z=268435456;break;default:Z=0}j=(Z&(j.suspendedLanes|s))!==0?0:Z,j!==0&&j!==$.retryLane&&($.retryLane=j,Lg(o,j,-1))}$i(),i=yj(o,i,s,Error(p$3(421)))}else _e.data==="$?"?(i.flags|=128,i.child=o.child,i=zj.bind(null,o),_e._reactRetry=i,i=null):(s=$.treeContext,eh=Kf(_e.nextSibling),dh=i,I$1=!0,fh=null,s!==null&&(Vg[Wg++]=Yg,Vg[Wg++]=Zg,Vg[Wg++]=Xg,Yg=s.id,Zg=s.overflow,Xg=i),i=xj(i,i.pendingProps.children),i.flags|=4096);return i}return Z?(j=Aj(o,i,j.children,j.fallback,s),Z=i.child,$=o.child.memoizedState,Z.memoizedState=$===null?tj(s):uj($,s),Z.childLanes=o.childLanes&~s,i.memoizedState=sj,j):(s=Bj(o,i,j.children,s),i.memoizedState=null,s)}return Z?(j=Aj(o,i,j.children,j.fallback,s),Z=i.child,$=o.child.memoizedState,Z.memoizedState=$===null?tj(s):uj($,s),Z.childLanes=o.childLanes&~s,i.memoizedState=sj,j):(s=Bj(o,i,j.children,s),i.memoizedState=null,s)}function xj(o,i){return i=wj({mode:"visible",children:i},o.mode,0,null),i.return=o,o.child=i}function Bj(o,i,s,j){var $=o.child;return o=$.sibling,s=th($,{mode:"visible",children:s}),(i.mode&1)===0&&(s.lanes=j),s.return=i,s.sibling=null,o!==null&&(j=i.deletions,j===null?(i.deletions=[o],i.flags|=16):j.push(o)),i.child=s}function Aj(o,i,s,j,$){var Z=i.mode;o=o.child;var et=o.sibling,_e={mode:"hidden",children:s};return(Z&1)===0&&i.child!==o?(s=i.child,s.childLanes=0,s.pendingProps=_e,i.deletions=null):(s=th(o,_e),s.subtreeFlags=o.subtreeFlags&14680064),et!==null?j=th(et,j):(j=xh(j,Z,$,null),j.flags|=2),j.return=i,s.return=i,s.sibling=j,i.child=s,j}function yj(o,i,s,j){return j!==null&&oh(j),yh(i,o.child,null,s),o=xj(i,i.pendingProps.children),o.flags|=2,i.memoizedState=null,o}function Cj(o,i,s){o.lanes|=i;var j=o.alternate;j!==null&&(j.lanes|=i),rg(o.return,i,s)}function Dj(o,i,s,j,$){var Z=o.memoizedState;Z===null?o.memoizedState={isBackwards:i,rendering:null,renderingStartTime:0,last:j,tail:s,tailMode:$}:(Z.isBackwards=i,Z.rendering=null,Z.renderingStartTime=0,Z.last=j,Z.tail=s,Z.tailMode=$)}function Ej(o,i,s){var j=i.pendingProps,$=j.revealOrder,Z=j.tail;if(ej(o,i,j.children,s),j=K.current,(j&2)!==0)j=j&1|2,i.flags|=128;else{if(o!==null&&(o.flags&128)!==0)e:for(o=i.child;o!==null;){if(o.tag===13)o.memoizedState!==null&&Cj(o,s,i);else if(o.tag===19)Cj(o,s,i);else if(o.child!==null){o.child.return=o,o=o.child;continue}if(o===i)break e;for(;o.sibling===null;){if(o.return===null||o.return===i)break e;o=o.return}o.sibling.return=o.return,o=o.sibling}j&=1}if(G$1(K,j),(i.mode&1)===0)i.memoizedState=null;else switch($){case"forwards":for(s=i.child,$=null;s!==null;)o=s.alternate,o!==null&&Jh(o)===null&&($=s),s=s.sibling;s=$,s===null?($=i.child,i.child=null):($=s.sibling,s.sibling=null),Dj(i,!1,$,s,Z);break;case"backwards":for(s=null,$=i.child,i.child=null;$!==null;){if(o=$.alternate,o!==null&&Jh(o)===null){i.child=$;break}o=$.sibling,$.sibling=s,s=$,$=o}Dj(i,!0,s,null,Z);break;case"together":Dj(i,!1,null,null,void 0);break;default:i.memoizedState=null}return i.child}function gj(o,i,s){if(o!==null&&(i.dependencies=o.dependencies),Fg|=i.lanes,(s&i.childLanes)===0)return null;if(o!==null&&i.child!==o.child)throw Error(p$3(153));if(i.child!==null){for(o=i.child,s=th(o,o.pendingProps),i.child=s,s.return=i;o.sibling!==null;)o=o.sibling,s=s.sibling=th(o,o.pendingProps),s.return=i;s.sibling=null}return i.child}function Fj(o,i,s){switch(i.tag){case 3:qj(i),nh();break;case 5:Hh(i);break;case 1:Yf(i.type)&&bg(i);break;case 4:Fh(i,i.stateNode.containerInfo);break;case 10:var j=i.type._context,$=i.memoizedProps.value;G$1(lg,j._currentValue),j._currentValue=$;break;case 13:if(j=i.memoizedState,j!==null)return j.dehydrated!==null?(G$1(K,K.current&1),i.flags|=128,null):(s&i.child.childLanes)!==0?vj(o,i,s):(G$1(K,K.current&1),o=gj(o,i,s),o!==null?o.sibling:null);G$1(K,K.current&1);break;case 19:if(j=(s&i.childLanes)!==0,(o.flags&128)!==0){if(j)return Ej(o,i,s);i.flags|=128}if($=i.memoizedState,$!==null&&($.rendering=null,$.tail=null,$.lastEffect=null),G$1(K,K.current),j)break;return null;case 22:case 23:return i.lanes=0,lj(o,i,s)}return gj(o,i,s)}function Gj(o,i){switch(ch(i),i.tag){case 1:return Yf(i.type)&&Zf(),o=i.flags,o&65536?(i.flags=o&-65537|128,i):null;case 3:return Gh(),E$1(Vf),E$1(H$1),Lh(),o=i.flags,(o&65536)!==0&&(o&128)===0?(i.flags=o&-65537|128,i):null;case 5:return Ih(i),null;case 13:if(E$1(K),o=i.memoizedState,o!==null&&o.dehydrated!==null){if(i.alternate===null)throw Error(p$3(340));nh()}return o=i.flags,o&65536?(i.flags=o&-65537|128,i):null;case 19:return E$1(K),null;case 4:return Gh(),null;case 10:return qg(i.type._context),null;case 22:case 23:return bj(),null;case 24:return null;default:return null}}var Hj=!1,S=!1,Ij=typeof WeakSet=="function"?WeakSet:Set,T=null;function Jj(o,i){var s=o.ref;if(s!==null)if(typeof s=="function")try{s(null)}catch(j){U(o,i,j)}else s.current=null}function Kj(o,i,s){try{s()}catch(j){U(o,i,j)}}var Lj=!1;function Mj(o,i){if(Bf=cd,o=Le(),Me(o)){if("selectionStart"in o)var s={start:o.selectionStart,end:o.selectionEnd};else e:{s=(s=o.ownerDocument)&&s.defaultView||window;var j=s.getSelection&&s.getSelection();if(j&&j.rangeCount!==0){s=j.anchorNode;var $=j.anchorOffset,Z=j.focusNode;j=j.focusOffset;try{s.nodeType,Z.nodeType}catch{s=null;break e}var et=0,_e=-1,nt=-1,rt=0,at=0,ft=o,st=null;t:for(;;){for(var lt;ft!==s||$!==0&&ft.nodeType!==3||(_e=et+$),ft!==Z||j!==0&&ft.nodeType!==3||(nt=et+j),ft.nodeType===3&&(et+=ft.nodeValue.length),(lt=ft.firstChild)!==null;)st=ft,ft=lt;for(;;){if(ft===o)break t;if(st===s&&++rt===$&&(_e=et),st===Z&&++at===j&&(nt=et),(lt=ft.nextSibling)!==null)break;ft=st,st=ft.parentNode}ft=lt}s=_e===-1||nt===-1?null:{start:_e,end:nt}}else s=null}s=s||{start:0,end:0}}else s=null;for(Cf={focusedElem:o,selectionRange:s},cd=!1,T=i;T!==null;)if(i=T,o=i.child,(i.subtreeFlags&1028)!==0&&o!==null)o.return=i,T=o;else for(;T!==null;){i=T;try{var it=i.alternate;if((i.flags&1024)!==0)switch(i.tag){case 0:case 11:case 15:break;case 1:if(it!==null){var ut=it.memoizedProps,pt=it.memoizedState,bt=i.stateNode,xt=bt.getSnapshotBeforeUpdate(i.elementType===i.type?ut:kg(i.type,ut),pt);bt.__reactInternalSnapshotBeforeUpdate=xt}break;case 3:var vt=i.stateNode.containerInfo;if(vt.nodeType===1)vt.textContent="";else if(vt.nodeType===9){var mt=vt.body;mt!=null&&(mt.textContent="")}break;case 5:case 6:case 4:case 17:break;default:throw Error(p$3(163))}}catch(ct){U(i,i.return,ct)}if(o=i.sibling,o!==null){o.return=i.return,T=o;break}T=i.return}return it=Lj,Lj=!1,it}function Nj(o,i,s){var j=i.updateQueue;if(j=j!==null?j.lastEffect:null,j!==null){var $=j=j.next;do{if(($.tag&o)===o){var Z=$.destroy;$.destroy=void 0,Z!==void 0&&Kj(i,s,Z)}$=$.next}while($!==j)}}function Oj(o,i){if(i=i.updateQueue,i=i!==null?i.lastEffect:null,i!==null){var s=i=i.next;do{if((s.tag&o)===o){var j=s.create;s.destroy=j()}s=s.next}while(s!==i)}}function Pj(o){var i=o.ref;if(i!==null){var s=o.stateNode;switch(o.tag){case 5:o=s;break;default:o=s}typeof i=="function"?i(o):i.current=o}}function Qj(o){var i=o.alternate;i!==null&&(o.alternate=null,Qj(i)),o.child=null,o.deletions=null,o.sibling=null,o.tag===5&&(i=o.stateNode,i!==null&&(delete i[Nf],delete i[Of],delete i[nf],delete i[Pf],delete i[Qf])),o.stateNode=null,o.return=null,o.dependencies=null,o.memoizedProps=null,o.memoizedState=null,o.pendingProps=null,o.stateNode=null,o.updateQueue=null}function Rj(o){return o.tag===5||o.tag===3||o.tag===4}function Sj(o){e:for(;;){for(;o.sibling===null;){if(o.return===null||Rj(o.return))return null;o=o.return}for(o.sibling.return=o.return,o=o.sibling;o.tag!==5&&o.tag!==6&&o.tag!==18;){if(o.flags&2||o.child===null||o.tag===4)continue e;o.child.return=o,o=o.child}if(!(o.flags&2))return o.stateNode}}function Tj(o,i,s){var j=o.tag;if(j===5||j===6)o=o.stateNode,i?s.nodeType===8?s.parentNode.insertBefore(o,i):s.insertBefore(o,i):(s.nodeType===8?(i=s.parentNode,i.insertBefore(o,s)):(i=s,i.appendChild(o)),s=s._reactRootContainer,s!=null||i.onclick!==null||(i.onclick=Af));else if(j!==4&&(o=o.child,o!==null))for(Tj(o,i,s),o=o.sibling;o!==null;)Tj(o,i,s),o=o.sibling}function Uj(o,i,s){var j=o.tag;if(j===5||j===6)o=o.stateNode,i?s.insertBefore(o,i):s.appendChild(o);else if(j!==4&&(o=o.child,o!==null))for(Uj(o,i,s),o=o.sibling;o!==null;)Uj(o,i,s),o=o.sibling}var V=null,Vj=!1;function Wj(o,i,s){for(s=s.child;s!==null;)Xj(o,i,s),s=s.sibling}function Xj(o,i,s){if(kc&&typeof kc.onCommitFiberUnmount=="function")try{kc.onCommitFiberUnmount(jc,s)}catch{}switch(s.tag){case 5:S||Jj(s,i);case 6:var j=V,$=Vj;V=null,Wj(o,i,s),V=j,Vj=$,V!==null&&(Vj?(o=V,s=s.stateNode,o.nodeType===8?o.parentNode.removeChild(s):o.removeChild(s)):V.removeChild(s.stateNode));break;case 18:V!==null&&(Vj?(o=V,s=s.stateNode,o.nodeType===8?Jf(o.parentNode,s):o.nodeType===1&&Jf(o,s),ad(o)):Jf(V,s.stateNode));break;case 4:j=V,$=Vj,V=s.stateNode.containerInfo,Vj=!0,Wj(o,i,s),V=j,Vj=$;break;case 0:case 11:case 14:case 15:if(!S&&(j=s.updateQueue,j!==null&&(j=j.lastEffect,j!==null))){$=j=j.next;do{var Z=$,et=Z.destroy;Z=Z.tag,et!==void 0&&((Z&2)!==0||(Z&4)!==0)&&Kj(s,i,et),$=$.next}while($!==j)}Wj(o,i,s);break;case 1:if(!S&&(Jj(s,i),j=s.stateNode,typeof j.componentWillUnmount=="function"))try{j.props=s.memoizedProps,j.state=s.memoizedState,j.componentWillUnmount()}catch(_e){U(s,i,_e)}Wj(o,i,s);break;case 21:Wj(o,i,s);break;case 22:s.mode&1?(S=(j=S)||s.memoizedState!==null,Wj(o,i,s),S=j):Wj(o,i,s);break;default:Wj(o,i,s)}}function Yj(o){var i=o.updateQueue;if(i!==null){o.updateQueue=null;var s=o.stateNode;s===null&&(s=o.stateNode=new Ij),i.forEach(function(j){var $=Zj.bind(null,o,j);s.has(j)||(s.add(j),j.then($,$))})}}function ak(o,i){var s=i.deletions;if(s!==null)for(var j=0;j$&&($=et),j&=~Z}if(j=$,j=B$1()-j,j=(120>j?120:480>j?480:1080>j?1080:1920>j?1920:3e3>j?3e3:4320>j?4320:1960*jk(j/1960))-j,10o?16:o,uk===null)var j=!1;else{if(o=uk,uk=null,vk=0,(W&6)!==0)throw Error(p$3(331));var $=W;for(W|=4,T=o.current;T!==null;){var Z=T,et=Z.child;if((T.flags&16)!==0){var _e=Z.deletions;if(_e!==null){for(var nt=0;nt<_e.length;nt++){var rt=_e[nt];for(T=rt;T!==null;){var at=T;switch(at.tag){case 0:case 11:case 15:Nj(8,at,Z)}var ft=at.child;if(ft!==null)ft.return=at,T=ft;else for(;T!==null;){at=T;var st=at.sibling,lt=at.return;if(Qj(at),at===rt){T=null;break}if(st!==null){st.return=lt,T=st;break}T=lt}}}var it=Z.alternate;if(it!==null){var ut=it.child;if(ut!==null){it.child=null;do{var pt=ut.sibling;ut.sibling=null,ut=pt}while(ut!==null)}}T=Z}}if((Z.subtreeFlags&2064)!==0&&et!==null)et.return=Z,T=et;else e:for(;T!==null;){if(Z=T,(Z.flags&2048)!==0)switch(Z.tag){case 0:case 11:case 15:Nj(9,Z,Z.return)}var bt=Z.sibling;if(bt!==null){bt.return=Z.return,T=bt;break e}T=Z.return}}var xt=o.current;for(T=xt;T!==null;){et=T;var vt=et.child;if((et.subtreeFlags&2064)!==0&&vt!==null)vt.return=et,T=vt;else e:for(et=xt;T!==null;){if(_e=T,(_e.flags&2048)!==0)try{switch(_e.tag){case 0:case 11:case 15:Oj(9,_e)}}catch(ct){U(_e,_e.return,ct)}if(_e===et){T=null;break e}var mt=_e.sibling;if(mt!==null){mt.return=_e.return,T=mt;break e}T=_e.return}}if(W=$,ig(),kc&&typeof kc.onPostCommitFiberRoot=="function")try{kc.onPostCommitFiberRoot(jc,o)}catch{}j=!0}return j}finally{C$1=s,mk.transition=i}}return!1}function Wk(o,i,s){i=Hi(s,i),i=Ki(o,i,1),Ag(o,i),i=Jg(),o=Ak(o,1),o!==null&&(zc(o,1,i),Ck(o,i))}function U(o,i,s){if(o.tag===3)Wk(o,o,s);else for(;i!==null;){if(i.tag===3){Wk(i,o,s);break}else if(i.tag===1){var j=i.stateNode;if(typeof i.type.getDerivedStateFromError=="function"||typeof j.componentDidCatch=="function"&&(Oi===null||!Oi.has(j))){o=Hi(s,o),o=Ni(i,o,1),Ag(i,o),o=Jg(),i=Ak(i,1),i!==null&&(zc(i,1,o),Ck(i,o));break}}i=i.return}}function Qi(o,i,s){var j=o.pingCache;j!==null&&j.delete(i),i=Jg(),o.pingedLanes|=o.suspendedLanes&s,P===o&&(Y&s)===s&&(R===4||R===3&&(Y&130023424)===Y&&500>B$1()-dk?Jk(o,0):pk|=s),Ck(o,i)}function Xk(o,i){i===0&&((o.mode&1)===0?i=1:(i=rc,rc<<=1,(rc&130023424)===0&&(rc=4194304)));var s=Jg();o=Ak(o,i),o!==null&&(zc(o,i,s),Ck(o,s))}function zj(o){var i=o.memoizedState,s=0;i!==null&&(s=i.retryLane),Xk(o,s)}function Zj(o,i){var s=0;switch(o.tag){case 13:var j=o.stateNode,$=o.memoizedState;$!==null&&(s=$.retryLane);break;case 19:j=o.stateNode;break;default:throw Error(p$3(314))}j!==null&&j.delete(i),Xk(o,s)}var Uk;Uk=function(o,i,s){if(o!==null)if(o.memoizedProps!==i.pendingProps||Vf.current)tg=!0;else{if((o.lanes&s)===0&&(i.flags&128)===0)return tg=!1,Fj(o,i,s);tg=(o.flags&131072)!==0}else tg=!1,I$1&&(i.flags&1048576)!==0&&ah(i,Ug,i.index);switch(i.lanes=0,i.tag){case 2:var j=i.type;o!==null&&(o.alternate=null,i.alternate=null,i.flags|=2),o=i.pendingProps;var $=Xf(i,H$1.current);sg(i,s),$=Uh(null,i,j,o,$,s);var Z=Zh();return i.flags|=1,typeof $=="object"&&$!==null&&typeof $.render=="function"&&$.$$typeof===void 0?(i.tag=1,i.memoizedState=null,i.updateQueue=null,Yf(j)?(Z=!0,bg(i)):Z=!1,i.memoizedState=$.state!==null&&$.state!==void 0?$.state:null,xg(i),$.updater=Mg,i.stateNode=$,$._reactInternals=i,Qg(i,j,o,s),i=pj(null,i,j,!0,Z,s)):(i.tag=0,I$1&&Z&&bh(i),ej(null,i,$,s),i=i.child),i;case 16:j=i.elementType;e:{switch(o!==null&&(o.alternate=null,i.alternate=null,i.flags|=2),o=i.pendingProps,$=j._init,j=$(j._payload),i.type=j,$=i.tag=Yk(j),o=kg(j,o),$){case 0:i=kj(null,i,j,o,s);break e;case 1:i=oj(null,i,j,o,s);break e;case 11:i=fj(null,i,j,o,s);break e;case 14:i=hj(null,i,j,kg(j.type,o),s);break e}throw Error(p$3(306,j,""))}return i;case 0:return j=i.type,$=i.pendingProps,$=i.elementType===j?$:kg(j,$),kj(o,i,j,$,s);case 1:return j=i.type,$=i.pendingProps,$=i.elementType===j?$:kg(j,$),oj(o,i,j,$,s);case 3:e:{if(qj(i),o===null)throw Error(p$3(387));j=i.pendingProps,Z=i.memoizedState,$=Z.element,yg(o,i),Eg(i,j,null,s);var et=i.memoizedState;if(j=et.element,Z.isDehydrated)if(Z={element:j,isDehydrated:!1,cache:et.cache,pendingSuspenseBoundaries:et.pendingSuspenseBoundaries,transitions:et.transitions},i.updateQueue.baseState=Z,i.memoizedState=Z,i.flags&256){$=Error(p$3(423)),i=rj(o,i,j,s,$);break e}else if(j!==$){$=Error(p$3(424)),i=rj(o,i,j,s,$);break e}else for(eh=Kf(i.stateNode.containerInfo.firstChild),dh=i,I$1=!0,fh=null,s=zh(i,null,j,s),i.child=s;s;)s.flags=s.flags&-3|4096,s=s.sibling;else{if(nh(),j===$){i=gj(o,i,s);break e}ej(o,i,j,s)}i=i.child}return i;case 5:return Hh(i),o===null&&kh(i),j=i.type,$=i.pendingProps,Z=o!==null?o.memoizedProps:null,et=$.children,Df(j,$)?et=null:Z!==null&&Df(j,Z)&&(i.flags|=32),nj(o,i),ej(o,i,et,s),i.child;case 6:return o===null&&kh(i),null;case 13:return vj(o,i,s);case 4:return Fh(i,i.stateNode.containerInfo),j=i.pendingProps,o===null?i.child=yh(i,null,j,s):ej(o,i,j,s),i.child;case 11:return j=i.type,$=i.pendingProps,$=i.elementType===j?$:kg(j,$),fj(o,i,j,$,s);case 7:return ej(o,i,i.pendingProps,s),i.child;case 8:return ej(o,i,i.pendingProps.children,s),i.child;case 12:return ej(o,i,i.pendingProps.children,s),i.child;case 10:e:{if(j=i.type._context,$=i.pendingProps,Z=i.memoizedProps,et=$.value,G$1(lg,j._currentValue),j._currentValue=et,Z!==null)if(Ge(Z.value,et)){if(Z.children===$.children&&!Vf.current){i=gj(o,i,s);break e}}else for(Z=i.child,Z!==null&&(Z.return=i);Z!==null;){var _e=Z.dependencies;if(_e!==null){et=Z.child;for(var nt=_e.firstContext;nt!==null;){if(nt.context===j){if(Z.tag===1){nt=zg(-1,s&-s),nt.tag=2;var rt=Z.updateQueue;if(rt!==null){rt=rt.shared;var at=rt.pending;at===null?nt.next=nt:(nt.next=at.next,at.next=nt),rt.pending=nt}}Z.lanes|=s,nt=Z.alternate,nt!==null&&(nt.lanes|=s),rg(Z.return,s,i),_e.lanes|=s;break}nt=nt.next}}else if(Z.tag===10)et=Z.type===i.type?null:Z.child;else if(Z.tag===18){if(et=Z.return,et===null)throw Error(p$3(341));et.lanes|=s,_e=et.alternate,_e!==null&&(_e.lanes|=s),rg(et,s,i),et=Z.sibling}else et=Z.child;if(et!==null)et.return=Z;else for(et=Z;et!==null;){if(et===i){et=null;break}if(Z=et.sibling,Z!==null){Z.return=et.return,et=Z;break}et=et.return}Z=et}ej(o,i,$.children,s),i=i.child}return i;case 9:return $=i.type,j=i.pendingProps.children,sg(i,s),$=ug($),j=j($),i.flags|=1,ej(o,i,j,s),i.child;case 14:return j=i.type,$=kg(j,i.pendingProps),$=kg(j.type,$),hj(o,i,j,$,s);case 15:return jj(o,i,i.type,i.pendingProps,s);case 17:return j=i.type,$=i.pendingProps,$=i.elementType===j?$:kg(j,$),o!==null&&(o.alternate=null,i.alternate=null,i.flags|=2),i.tag=1,Yf(j)?(o=!0,bg(i)):o=!1,sg(i,s),Og(i,j,$),Qg(i,j,$,s),pj(null,i,j,!0,o,s);case 19:return Ej(o,i,s);case 22:return lj(o,i,s)}throw Error(p$3(156,i.tag))};function Ek(o,i){return $b(o,i)}function Zk(o,i,s,j){this.tag=o,this.key=s,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=i,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=j,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function hh(o,i,s,j){return new Zk(o,i,s,j)}function ij(o){return o=o.prototype,!(!o||!o.isReactComponent)}function Yk(o){if(typeof o=="function")return ij(o)?1:0;if(o!=null){if(o=o.$$typeof,o===Ca)return 11;if(o===Fa)return 14}return 2}function th(o,i){var s=o.alternate;return s===null?(s=hh(o.tag,i,o.key,o.mode),s.elementType=o.elementType,s.type=o.type,s.stateNode=o.stateNode,s.alternate=o,o.alternate=s):(s.pendingProps=i,s.type=o.type,s.flags=0,s.subtreeFlags=0,s.deletions=null),s.flags=o.flags&14680064,s.childLanes=o.childLanes,s.lanes=o.lanes,s.child=o.child,s.memoizedProps=o.memoizedProps,s.memoizedState=o.memoizedState,s.updateQueue=o.updateQueue,i=o.dependencies,s.dependencies=i===null?null:{lanes:i.lanes,firstContext:i.firstContext},s.sibling=o.sibling,s.index=o.index,s.ref=o.ref,s}function vh(o,i,s,j,$,Z){var et=2;if(j=o,typeof o=="function")ij(o)&&(et=1);else if(typeof o=="string")et=5;else e:switch(o){case wa:return xh(s.children,$,Z,i);case xa:et=8,$|=8;break;case za:return o=hh(12,s,i,$|2),o.elementType=za,o.lanes=Z,o;case Da:return o=hh(13,s,i,$),o.elementType=Da,o.lanes=Z,o;case Ea:return o=hh(19,s,i,$),o.elementType=Ea,o.lanes=Z,o;case Ha:return wj(s,$,Z,i);default:if(typeof o=="object"&&o!==null)switch(o.$$typeof){case Aa:et=10;break e;case Ba:et=9;break e;case Ca:et=11;break e;case Fa:et=14;break e;case Ga:et=16,j=null;break e}throw Error(p$3(130,o==null?o:typeof o,""))}return i=hh(et,s,i,$),i.elementType=o,i.type=j,i.lanes=Z,i}function xh(o,i,s,j){return o=hh(7,o,j,i),o.lanes=s,o}function wj(o,i,s,j){return o=hh(22,o,j,i),o.elementType=Ha,o.lanes=s,o.stateNode={},o}function uh(o,i,s){return o=hh(6,o,null,i),o.lanes=s,o}function wh(o,i,s){return i=hh(4,o.children!==null?o.children:[],o.key,i),i.lanes=s,i.stateNode={containerInfo:o.containerInfo,pendingChildren:null,implementation:o.implementation},i}function $k(o,i,s,j,$){this.tag=i,this.containerInfo=o,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=yc(0),this.expirationTimes=yc(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=yc(0),this.identifierPrefix=j,this.onRecoverableError=$,this.mutableSourceEagerHydrationData=null}function al(o,i,s,j,$,Z,et,_e,nt){return o=new $k(o,i,s,_e,nt),i===1?(i=1,Z===!0&&(i|=8)):i=0,Z=hh(3,null,null,i),o.current=Z,Z.stateNode=o,Z.memoizedState={element:j,isDehydrated:s,cache:null,transitions:null,pendingSuspenseBoundaries:null},xg(Z),o}function bl(o,i,s){var j=30?charat(characters,--position$1):0,column--,character===10&&(column=1,line--),character}function next(){return character=position$12||token(character)>3?"":" "}function escaping(o,i){for(;--i&&next()&&!(character<48||character>102||character>57&&character<65||character>70&&character<97););return slice(o,caret()+(i<6&&peek()==32&&next()==32))}function delimiter(o){for(;next();)switch(character){case o:return position$1;case 34:case 39:o!==34&&o!==39&&delimiter(character);break;case 40:o===41&&delimiter(o);break;case 92:next();break}return position$1}function commenter(o,i){for(;next()&&o+character!==47+10;)if(o+character===42+42&&peek()===47)break;return"/*"+slice(i,position$1-1)+"*"+from(o===47?o:next())}function identifier(o){for(;!token(peek());)next();return slice(o,position$1)}function compile(o){return dealloc(parse("",null,null,null,[""],o=alloc(o),0,[0],o))}function parse(o,i,s,j,$,Z,et,_e,nt){for(var rt=0,at=0,ft=et,st=0,lt=0,it=0,ut=1,pt=1,bt=1,xt=0,vt="",mt=$,ct=Z,Rt=j,Ft=vt;pt;)switch(it=xt,xt=next()){case 40:if(it!=108&&Ft.charCodeAt(ft-1)==58){indexof(Ft+=replace(delimit(xt),"&","&\f"),"&\f")!=-1&&(bt=-1);break}case 34:case 39:case 91:Ft+=delimit(xt);break;case 9:case 10:case 13:case 32:Ft+=whitespace(it);break;case 92:Ft+=escaping(caret()-1,7);continue;case 47:switch(peek()){case 42:case 47:append(comment(commenter(next(),caret()),i,s),nt);break;default:Ft+="/"}break;case 123*ut:_e[rt++]=strlen(Ft)*bt;case 125*ut:case 59:case 0:switch(xt){case 0:case 125:pt=0;case 59+at:lt>0&&strlen(Ft)-ft&&append(lt>32?declaration(Ft+";",j,s,ft-1):declaration(replace(Ft," ","")+";",j,s,ft-2),nt);break;case 59:Ft+=";";default:if(append(Rt=ruleset(Ft,i,s,rt,at,$,_e,vt,mt=[],ct=[],ft),Z),xt===123)if(at===0)parse(Ft,i,Rt,Rt,mt,Z,ft,_e,ct);else switch(st){case 100:case 109:case 115:parse(o,Rt,Rt,j&&append(ruleset(o,Rt,Rt,0,0,$,_e,vt,$,mt=[],ft),ct),$,ct,ft,_e,j?mt:ct);break;default:parse(Ft,Rt,Rt,Rt,[""],ct,0,_e,ct)}}rt=at=lt=0,ut=bt=1,vt=Ft="",ft=et;break;case 58:ft=1+strlen(Ft),lt=it;default:if(ut<1){if(xt==123)--ut;else if(xt==125&&ut++==0&&prev()==125)continue}switch(Ft+=from(xt),xt*ut){case 38:bt=at>0?1:(Ft+="\f",-1);break;case 44:_e[rt++]=(strlen(Ft)-1)*bt,bt=1;break;case 64:peek()===45&&(Ft+=delimit(next())),st=peek(),at=ft=strlen(vt=Ft+=identifier(caret())),xt++;break;case 45:it===45&&strlen(Ft)==2&&(ut=0)}}return Z}function ruleset(o,i,s,j,$,Z,et,_e,nt,rt,at){for(var ft=$-1,st=$===0?Z:[""],lt=sizeof(st),it=0,ut=0,pt=0;it0?st[bt]+" "+xt:replace(xt,/&\f/g,st[bt])))&&(nt[pt++]=vt);return node(o,i,s,$===0?RULESET:_e,nt,rt,at)}function comment(o,i,s){return node(o,i,s,COMMENT,from(char()),substr(o,2,-2),0)}function declaration(o,i,s,j){return node(o,i,s,DECLARATION,substr(o,0,j),substr(o,j+1,-1),j)}function prefix(o,i){switch(hash(o,i)){case 5103:return WEBKIT+"print-"+o+o;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return WEBKIT+o+o;case 5349:case 4246:case 4810:case 6968:case 2756:return WEBKIT+o+MOZ+o+MS+o+o;case 6828:case 4268:return WEBKIT+o+MS+o+o;case 6165:return WEBKIT+o+MS+"flex-"+o+o;case 5187:return WEBKIT+o+replace(o,/(\w+).+(:[^]+)/,WEBKIT+"box-$1$2"+MS+"flex-$1$2")+o;case 5443:return WEBKIT+o+MS+"flex-item-"+replace(o,/flex-|-self/,"")+o;case 4675:return WEBKIT+o+MS+"flex-line-pack"+replace(o,/align-content|flex-|-self/,"")+o;case 5548:return WEBKIT+o+MS+replace(o,"shrink","negative")+o;case 5292:return WEBKIT+o+MS+replace(o,"basis","preferred-size")+o;case 6060:return WEBKIT+"box-"+replace(o,"-grow","")+WEBKIT+o+MS+replace(o,"grow","positive")+o;case 4554:return WEBKIT+replace(o,/([^-])(transform)/g,"$1"+WEBKIT+"$2")+o;case 6187:return replace(replace(replace(o,/(zoom-|grab)/,WEBKIT+"$1"),/(image-set)/,WEBKIT+"$1"),o,"")+o;case 5495:case 3959:return replace(o,/(image-set\([^]*)/,WEBKIT+"$1$`$1");case 4968:return replace(replace(o,/(.+:)(flex-)?(.*)/,WEBKIT+"box-pack:$3"+MS+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+WEBKIT+o+o;case 4095:case 3583:case 4068:case 2532:return replace(o,/(.+)-inline(.+)/,WEBKIT+"$1$2")+o;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(strlen(o)-1-i>6)switch(charat(o,i+1)){case 109:if(charat(o,i+4)!==45)break;case 102:return replace(o,/(.+:)(.+)-([^]+)/,"$1"+WEBKIT+"$2-$3$1"+MOZ+(charat(o,i+3)==108?"$3":"$2-$3"))+o;case 115:return~indexof(o,"stretch")?prefix(replace(o,"stretch","fill-available"),i)+o:o}break;case 4949:if(charat(o,i+1)!==115)break;case 6444:switch(charat(o,strlen(o)-3-(~indexof(o,"!important")&&10))){case 107:return replace(o,":",":"+WEBKIT)+o;case 101:return replace(o,/(.+:)([^;!]+)(;|!.+)?/,"$1"+WEBKIT+(charat(o,14)===45?"inline-":"")+"box$3$1"+WEBKIT+"$2$3$1"+MS+"$2box$3")+o}break;case 5936:switch(charat(o,i+11)){case 114:return WEBKIT+o+MS+replace(o,/[svh]\w+-[tblr]{2}/,"tb")+o;case 108:return WEBKIT+o+MS+replace(o,/[svh]\w+-[tblr]{2}/,"tb-rl")+o;case 45:return WEBKIT+o+MS+replace(o,/[svh]\w+-[tblr]{2}/,"lr")+o}return WEBKIT+o+MS+o+o}return o}function serialize(o,i){for(var s="",j=sizeof(o),$=0;$-1&&!o.return)switch(o.type){case DECLARATION:o.return=prefix(o.value,o.length);break;case KEYFRAMES:return serialize([copy(o,{value:replace(o.value,"@","@"+WEBKIT)})],j);case RULESET:if(o.length)return combine(o.props,function($){switch(match($,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return serialize([copy(o,{props:[replace($,/:(read-\w+)/,":"+MOZ+"$1")]})],j);case"::placeholder":return serialize([copy(o,{props:[replace($,/:(plac\w+)/,":"+WEBKIT+"input-$1")]}),copy(o,{props:[replace($,/:(plac\w+)/,":"+MOZ+"$1")]}),copy(o,{props:[replace($,/:(plac\w+)/,MS+"input-$1")]})],j)}return""})}}var identifierWithPointTracking=function(i,s,j){for(var $=0,Z=0;$=Z,Z=peek(),$===38&&Z===12&&(s[j]=1),!token(Z);)next();return slice(i,position$1)},toRules=function(i,s){var j=-1,$=44;do switch(token($)){case 0:$===38&&peek()===12&&(s[j]=1),i[j]+=identifierWithPointTracking(position$1-1,s,j);break;case 2:i[j]+=delimit($);break;case 4:if($===44){i[++j]=peek()===58?"&\f":"",s[j]=i[j].length;break}default:i[j]+=from($)}while($=next());return i},getRules=function(i,s){return dealloc(toRules(alloc(i),s))},fixedElements=new WeakMap,compat=function(i){if(!(i.type!=="rule"||!i.parent||i.length<1)){for(var s=i.value,j=i.parent,$=i.column===j.column&&i.line===j.line;j.type!=="rule";)if(j=j.parent,!j)return;if(!(i.props.length===1&&s.charCodeAt(0)!==58&&!fixedElements.get(j))&&!$){fixedElements.set(i,!0);for(var Z=[],et=getRules(s,Z),_e=j.props,nt=0,rt=0;nt=4;++j,$-=4)s=o.charCodeAt(j)&255|(o.charCodeAt(++j)&255)<<8|(o.charCodeAt(++j)&255)<<16|(o.charCodeAt(++j)&255)<<24,s=(s&65535)*1540483477+((s>>>16)*59797<<16),s^=s>>>24,i=(s&65535)*1540483477+((s>>>16)*59797<<16)^(i&65535)*1540483477+((i>>>16)*59797<<16);switch($){case 3:i^=(o.charCodeAt(j+2)&255)<<16;case 2:i^=(o.charCodeAt(j+1)&255)<<8;case 1:i^=o.charCodeAt(j)&255,i=(i&65535)*1540483477+((i>>>16)*59797<<16)}return i^=i>>>13,i=(i&65535)*1540483477+((i>>>16)*59797<<16),((i^i>>>15)>>>0).toString(36)}var unitlessKeys={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},hyphenateRegex=/[A-Z]|^ms/g,animationRegex=/_EMO_([^_]+?)_([^]*?)_EMO_/g,isCustomProperty=function(i){return i.charCodeAt(1)===45},isProcessableValue=function(i){return i!=null&&typeof i!="boolean"},processStyleName=memoize$1(function(o){return isCustomProperty(o)?o:o.replace(hyphenateRegex,"-$&").toLowerCase()}),processStyleValue=function(i,s){switch(i){case"animation":case"animationName":if(typeof s=="string")return s.replace(animationRegex,function(j,$,Z){return cursor={name:$,styles:Z,next:cursor},$})}return unitlessKeys[i]!==1&&!isCustomProperty(i)&&typeof s=="number"&&s!==0?s+"px":s};function handleInterpolation(o,i,s){if(s==null)return"";if(s.__emotion_styles!==void 0)return s;switch(typeof s){case"boolean":return"";case"object":{if(s.anim===1)return cursor={name:s.name,styles:s.styles,next:cursor},s.name;if(s.styles!==void 0){var j=s.next;if(j!==void 0)for(;j!==void 0;)cursor={name:j.name,styles:j.styles,next:cursor},j=j.next;var $=s.styles+";";return $}return createStringFromObject(o,i,s)}case"function":{if(o!==void 0){var Z=cursor,et=s(o);return cursor=Z,handleInterpolation(o,i,et)}break}}if(i==null)return s;var _e=i[s];return _e!==void 0?_e:s}function createStringFromObject(o,i,s){var j="";if(Array.isArray(s))for(var $=0;$96?testOmitPropsOnStringTag:testOmitPropsOnComponent},composeShouldForwardProps=function(i,s,j){var $;if(s){var Z=s.shouldForwardProp;$=i.__emotion_forwardProp&&Z?function(et){return i.__emotion_forwardProp(et)&&Z(et)}:Z}return typeof $!="function"&&j&&($=i.__emotion_forwardProp),$},useInsertionEffect=React$2["useInsertionEffect"]?React$2["useInsertionEffect"]:function(i){i()};function useInsertionEffectMaybe(o){useInsertionEffect(o)}var Insertion=function(i){var s=i.cache,j=i.serialized,$=i.isStringTag;return registerStyles(s,j,$),useInsertionEffectMaybe(function(){return insertStyles(s,j,$)}),null},createStyled$1=function o(i,s){var j=i.__emotion_real===i,$=j&&i.__emotion_base||i,Z,et;s!==void 0&&(Z=s.label,et=s.target);var _e=composeShouldForwardProps(i,s,j),nt=_e||getDefaultShouldForwardProp($),rt=!nt("as");return function(){var at=arguments,ft=j&&i.__emotion_styles!==void 0?i.__emotion_styles.slice(0):[];if(Z!==void 0&&ft.push("label:"+Z+";"),at[0]==null||at[0].raw===void 0)ft.push.apply(ft,at);else{ft.push(at[0][0]);for(var st=at.length,lt=1;lti(isEmpty$3($)?s:$):i})}/** @license MUI v5.8.0 + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */function styled$2(o,i){return emStyled(o,i)}function isPlainObject(o){return o!==null&&typeof o=="object"&&o.constructor===Object}function deepmerge(o,i,s={clone:!0}){const j=s.clone?_extends({},o):o;return isPlainObject(o)&&isPlainObject(i)&&Object.keys(i).forEach($=>{$!=="__proto__"&&(isPlainObject(i[$])&&$ in o&&isPlainObject(o[$])?j[$]=deepmerge(o[$],i[$],s):j[$]=i[$])}),j}function formatMuiErrorMessage(o){let i="https://mui.com/production-error/?code="+o;for(let s=1;ss==null?i:function(...$){i.apply(this,$),s.apply(this,$)},()=>{})}function debounce(o,i=166){let s;function j(...$){const Z=()=>{o.apply(this,$)};clearTimeout(s),s=setTimeout(Z,i)}return j.clear=()=>{clearTimeout(s)},j}function isMuiElement(o,i){return react.exports.isValidElement(o)&&i.indexOf(o.type.muiName)!==-1}function ownerDocument(o){return o&&o.ownerDocument||document}function ownerWindow(o){return ownerDocument(o).defaultView||window}function setRef(o,i){typeof o=="function"?o(i):o&&(o.current=i)}const useEnhancedEffect=typeof window!="undefined"?react.exports.useLayoutEffect:react.exports.useEffect;var useEnhancedEffect$1=useEnhancedEffect;let globalId=0;function useGlobalId(o){const[i,s]=react.exports.useState(o),j=o||i;return react.exports.useEffect(()=>{i==null&&(globalId+=1,s(`mui-${globalId}`))},[i]),j}const maybeReactUseId=React$2["useId"];function useId(o){if(maybeReactUseId!==void 0){const i=maybeReactUseId();return o!=null?o:i}return useGlobalId(o)}function useControlled({controlled:o,default:i,name:s,state:j="value"}){const{current:$}=react.exports.useRef(o!==void 0),[Z,et]=react.exports.useState(i),_e=$?o:Z,nt=react.exports.useCallback(rt=>{$||et(rt)},[]);return[_e,nt]}function useEventCallback(o){const i=react.exports.useRef(o);return useEnhancedEffect$1(()=>{i.current=o}),react.exports.useCallback((...s)=>(0,i.current)(...s),[])}function useForkRef(o,i){return react.exports.useMemo(()=>o==null&&i==null?null:s=>{setRef(o,s),setRef(i,s)},[o,i])}let hadKeyboardEvent=!0,hadFocusVisibleRecently=!1,hadFocusVisibleRecentlyTimeout;const inputTypesWhitelist={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function focusTriggersKeyboardModality(o){const{type:i,tagName:s}=o;return!!(s==="INPUT"&&inputTypesWhitelist[i]&&!o.readOnly||s==="TEXTAREA"&&!o.readOnly||o.isContentEditable)}function handleKeyDown(o){o.metaKey||o.altKey||o.ctrlKey||(hadKeyboardEvent=!0)}function handlePointerDown(){hadKeyboardEvent=!1}function handleVisibilityChange(){this.visibilityState==="hidden"&&hadFocusVisibleRecently&&(hadKeyboardEvent=!0)}function prepare(o){o.addEventListener("keydown",handleKeyDown,!0),o.addEventListener("mousedown",handlePointerDown,!0),o.addEventListener("pointerdown",handlePointerDown,!0),o.addEventListener("touchstart",handlePointerDown,!0),o.addEventListener("visibilitychange",handleVisibilityChange,!0)}function isFocusVisible(o){const{target:i}=o;try{return i.matches(":focus-visible")}catch{}return hadKeyboardEvent||focusTriggersKeyboardModality(i)}function useIsFocusVisible(){const o=react.exports.useCallback($=>{$!=null&&prepare($.ownerDocument)},[]),i=react.exports.useRef(!1);function s(){return i.current?(hadFocusVisibleRecently=!0,window.clearTimeout(hadFocusVisibleRecentlyTimeout),hadFocusVisibleRecentlyTimeout=window.setTimeout(()=>{hadFocusVisibleRecently=!1},100),i.current=!1,!0):!1}function j($){return isFocusVisible($)?(i.current=!0,!0):!1}return{isFocusVisibleRef:i,onFocus:j,onBlur:s,ref:o}}function getScrollbarSize(o){const i=o.documentElement.clientWidth;return Math.abs(window.innerWidth-i)}function resolveProps(o,i){const s=_extends({},i);return Object.keys(o).forEach(j=>{s[j]===void 0&&(s[j]=o[j])}),s}function composeClasses(o,i,s){const j={};return Object.keys(o).forEach($=>{j[$]=o[$].reduce((Z,et)=>(et&&(s&&s[et]&&Z.push(s[et]),Z.push(i(et))),Z),[]).join(" ")}),j}const defaultGenerator=o=>o,createClassNameGenerator=()=>{let o=defaultGenerator;return{configure(i){o=i},generate(i){return o(i)},reset(){o=defaultGenerator}}},ClassNameGenerator=createClassNameGenerator();var ClassNameGenerator$1=ClassNameGenerator;const globalStateClassesMapping={active:"Mui-active",checked:"Mui-checked",completed:"Mui-completed",disabled:"Mui-disabled",error:"Mui-error",expanded:"Mui-expanded",focused:"Mui-focused",focusVisible:"Mui-focusVisible",required:"Mui-required",selected:"Mui-selected"};function generateUtilityClass(o,i){return globalStateClassesMapping[i]||`${ClassNameGenerator$1.generate(o)}-${i}`}function generateUtilityClasses(o,i){const s={};return i.forEach(j=>{s[j]=generateUtilityClass(o,j)}),s}function merge(o,i){return i?deepmerge(o,i,{clone:!1}):o}const values$1={xs:0,sm:600,md:900,lg:1200,xl:1536},defaultBreakpoints={keys:["xs","sm","md","lg","xl"],up:o=>`@media (min-width:${values$1[o]}px)`};function handleBreakpoints(o,i,s){const j=o.theme||{};if(Array.isArray(i)){const Z=j.breakpoints||defaultBreakpoints;return i.reduce((et,_e,nt)=>(et[Z.up(Z.keys[nt])]=s(i[nt]),et),{})}if(typeof i=="object"){const Z=j.breakpoints||defaultBreakpoints;return Object.keys(i).reduce((et,_e)=>{if(Object.keys(Z.values||values$1).indexOf(_e)!==-1){const nt=Z.up(_e);et[nt]=s(i[_e],_e)}else{const nt=_e;et[nt]=i[nt]}return et},{})}return s(i)}function createEmptyBreakpointObject(o={}){var i;return(o==null||(i=o.keys)==null?void 0:i.reduce((j,$)=>{const Z=o.up($);return j[Z]={},j},{}))||{}}function removeUnusedBreakpoints(o,i){return o.reduce((s,j)=>{const $=s[j];return(!$||Object.keys($).length===0)&&delete s[j],s},i)}function getPath(o,i,s=!0){if(!i||typeof i!="string")return null;if(o&&o.vars&&s){const j=`vars.${i}`.split(".").reduce(($,Z)=>$&&$[Z]?$[Z]:null,o);if(j!=null)return j}return i.split(".").reduce((j,$)=>j&&j[$]!=null?j[$]:null,o)}function getValue$1(o,i,s,j=s){let $;return typeof o=="function"?$=o(s):Array.isArray(o)?$=o[s]||j:$=getPath(o,s)||j,i&&($=i($)),$}function style$1(o){const{prop:i,cssProperty:s=o.prop,themeKey:j,transform:$}=o,Z=et=>{if(et[i]==null)return null;const _e=et[i],nt=et.theme,rt=getPath(nt,j)||{};return handleBreakpoints(et,_e,ft=>{let st=getValue$1(rt,$,ft);return ft===st&&typeof ft=="string"&&(st=getValue$1(rt,$,`${i}${ft==="default"?"":capitalize$1(ft)}`,ft)),s===!1?st:{[s]:st}})};return Z.propTypes={},Z.filterProps=[i],Z}function compose(...o){const i=o.reduce((j,$)=>($.filterProps.forEach(Z=>{j[Z]=$}),j),{}),s=j=>Object.keys(j).reduce(($,Z)=>i[Z]?merge($,i[Z](j)):$,{});return s.propTypes={},s.filterProps=o.reduce((j,$)=>j.concat($.filterProps),[]),s}function memoize(o){const i={};return s=>(i[s]===void 0&&(i[s]=o(s)),i[s])}const properties={m:"margin",p:"padding"},directions={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},aliases={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},getCssProperties=memoize(o=>{if(o.length>2)if(aliases[o])o=aliases[o];else return[o];const[i,s]=o.split(""),j=properties[i],$=directions[s]||"";return Array.isArray($)?$.map(Z=>j+Z):[j+$]}),marginKeys=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],paddingKeys=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"],spacingKeys=[...marginKeys,...paddingKeys];function createUnaryUnit(o,i,s,j){var $;const Z=($=getPath(o,i,!1))!=null?$:s;return typeof Z=="number"?et=>typeof et=="string"?et:Z*et:Array.isArray(Z)?et=>typeof et=="string"?et:Z[et]:typeof Z=="function"?Z:()=>{}}function createUnarySpacing(o){return createUnaryUnit(o,"spacing",8)}function getValue(o,i){if(typeof i=="string"||i==null)return i;const s=Math.abs(i),j=o(s);return i>=0?j:typeof j=="number"?-j:`-${j}`}function getStyleFromPropValue(o,i){return s=>o.reduce((j,$)=>(j[$]=getValue(i,s),j),{})}function resolveCssProperty(o,i,s,j){if(i.indexOf(s)===-1)return null;const $=getCssProperties(s),Z=getStyleFromPropValue($,j),et=o[s];return handleBreakpoints(o,et,Z)}function style(o,i){const s=createUnarySpacing(o.theme);return Object.keys(o).map(j=>resolveCssProperty(o,i,j,s)).reduce(merge,{})}function spacing(o){return style(o,spacingKeys)}spacing.propTypes={};spacing.filterProps=spacingKeys;function getBorder(o){return typeof o!="number"?o:`${o}px solid`}const border=style$1({prop:"border",themeKey:"borders",transform:getBorder}),borderTop=style$1({prop:"borderTop",themeKey:"borders",transform:getBorder}),borderRight=style$1({prop:"borderRight",themeKey:"borders",transform:getBorder}),borderBottom=style$1({prop:"borderBottom",themeKey:"borders",transform:getBorder}),borderLeft=style$1({prop:"borderLeft",themeKey:"borders",transform:getBorder}),borderColor=style$1({prop:"borderColor",themeKey:"palette"}),borderTopColor=style$1({prop:"borderTopColor",themeKey:"palette"}),borderRightColor=style$1({prop:"borderRightColor",themeKey:"palette"}),borderBottomColor=style$1({prop:"borderBottomColor",themeKey:"palette"}),borderLeftColor=style$1({prop:"borderLeftColor",themeKey:"palette"}),borderRadius=o=>{if(o.borderRadius!==void 0&&o.borderRadius!==null){const i=createUnaryUnit(o.theme,"shape.borderRadius",4),s=j=>({borderRadius:getValue(i,j)});return handleBreakpoints(o,o.borderRadius,s)}return null};borderRadius.propTypes={};borderRadius.filterProps=["borderRadius"];const borders=compose(border,borderTop,borderRight,borderBottom,borderLeft,borderColor,borderTopColor,borderRightColor,borderBottomColor,borderLeftColor,borderRadius);var borders$1=borders;const displayPrint=style$1({prop:"displayPrint",cssProperty:!1,transform:o=>({"@media print":{display:o}})}),displayRaw=style$1({prop:"display"}),overflow=style$1({prop:"overflow"}),textOverflow=style$1({prop:"textOverflow"}),visibility=style$1({prop:"visibility"}),whiteSpace=style$1({prop:"whiteSpace"});var display=compose(displayPrint,displayRaw,overflow,textOverflow,visibility,whiteSpace);const flexBasis=style$1({prop:"flexBasis"}),flexDirection=style$1({prop:"flexDirection"}),flexWrap=style$1({prop:"flexWrap"}),justifyContent=style$1({prop:"justifyContent"}),alignItems=style$1({prop:"alignItems"}),alignContent=style$1({prop:"alignContent"}),order=style$1({prop:"order"}),flex=style$1({prop:"flex"}),flexGrow=style$1({prop:"flexGrow"}),flexShrink=style$1({prop:"flexShrink"}),alignSelf=style$1({prop:"alignSelf"}),justifyItems=style$1({prop:"justifyItems"}),justifySelf=style$1({prop:"justifySelf"}),flexbox=compose(flexBasis,flexDirection,flexWrap,justifyContent,alignItems,alignContent,order,flex,flexGrow,flexShrink,alignSelf,justifyItems,justifySelf);var flexbox$1=flexbox;const gap=o=>{if(o.gap!==void 0&&o.gap!==null){const i=createUnaryUnit(o.theme,"spacing",8),s=j=>({gap:getValue(i,j)});return handleBreakpoints(o,o.gap,s)}return null};gap.propTypes={};gap.filterProps=["gap"];const columnGap=o=>{if(o.columnGap!==void 0&&o.columnGap!==null){const i=createUnaryUnit(o.theme,"spacing",8),s=j=>({columnGap:getValue(i,j)});return handleBreakpoints(o,o.columnGap,s)}return null};columnGap.propTypes={};columnGap.filterProps=["columnGap"];const rowGap=o=>{if(o.rowGap!==void 0&&o.rowGap!==null){const i=createUnaryUnit(o.theme,"spacing",8),s=j=>({rowGap:getValue(i,j)});return handleBreakpoints(o,o.rowGap,s)}return null};rowGap.propTypes={};rowGap.filterProps=["rowGap"];const gridColumn=style$1({prop:"gridColumn"}),gridRow=style$1({prop:"gridRow"}),gridAutoFlow=style$1({prop:"gridAutoFlow"}),gridAutoColumns=style$1({prop:"gridAutoColumns"}),gridAutoRows=style$1({prop:"gridAutoRows"}),gridTemplateColumns=style$1({prop:"gridTemplateColumns"}),gridTemplateRows=style$1({prop:"gridTemplateRows"}),gridTemplateAreas=style$1({prop:"gridTemplateAreas"}),gridArea=style$1({prop:"gridArea"}),grid=compose(gap,columnGap,rowGap,gridColumn,gridRow,gridAutoFlow,gridAutoColumns,gridAutoRows,gridTemplateColumns,gridTemplateRows,gridTemplateAreas,gridArea);var grid$1=grid;const color=style$1({prop:"color",themeKey:"palette"}),bgcolor=style$1({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette"}),backgroundColor=style$1({prop:"backgroundColor",themeKey:"palette"}),palette=compose(color,bgcolor,backgroundColor);var palette$1=palette;const position=style$1({prop:"position"}),zIndex$2=style$1({prop:"zIndex",themeKey:"zIndex"}),top=style$1({prop:"top"}),right=style$1({prop:"right"}),bottom=style$1({prop:"bottom"}),left=style$1({prop:"left"});var positions=compose(position,zIndex$2,top,right,bottom,left);const boxShadow=style$1({prop:"boxShadow",themeKey:"shadows"});var shadows$2=boxShadow;function transform(o){return o<=1&&o!==0?`${o*100}%`:o}const width=style$1({prop:"width",transform}),maxWidth=o=>{if(o.maxWidth!==void 0&&o.maxWidth!==null){const i=s=>{var j,$,Z;return{maxWidth:((j=o.theme)==null||($=j.breakpoints)==null||(Z=$.values)==null?void 0:Z[s])||values$1[s]||transform(s)}};return handleBreakpoints(o,o.maxWidth,i)}return null};maxWidth.filterProps=["maxWidth"];const minWidth=style$1({prop:"minWidth",transform}),height=style$1({prop:"height",transform}),maxHeight=style$1({prop:"maxHeight",transform}),minHeight=style$1({prop:"minHeight",transform});style$1({prop:"size",cssProperty:"width",transform});style$1({prop:"size",cssProperty:"height",transform});const boxSizing=style$1({prop:"boxSizing"}),sizing=compose(width,maxWidth,minWidth,height,maxHeight,minHeight,boxSizing);var sizing$1=sizing;const fontFamily=style$1({prop:"fontFamily",themeKey:"typography"}),fontSize=style$1({prop:"fontSize",themeKey:"typography"}),fontStyle=style$1({prop:"fontStyle",themeKey:"typography"}),fontWeight=style$1({prop:"fontWeight",themeKey:"typography"}),letterSpacing=style$1({prop:"letterSpacing"}),textTransform=style$1({prop:"textTransform"}),lineHeight=style$1({prop:"lineHeight"}),textAlign=style$1({prop:"textAlign"}),typographyVariant=style$1({prop:"typography",cssProperty:!1,themeKey:"typography"}),typography=compose(typographyVariant,fontFamily,fontSize,fontStyle,fontWeight,letterSpacing,lineHeight,textAlign,textTransform);var typography$1=typography;const filterPropsMapping={borders:borders$1.filterProps,display:display.filterProps,flexbox:flexbox$1.filterProps,grid:grid$1.filterProps,positions:positions.filterProps,palette:palette$1.filterProps,shadows:shadows$2.filterProps,sizing:sizing$1.filterProps,spacing:spacing.filterProps,typography:typography$1.filterProps},styleFunctionMapping={borders:borders$1,display,flexbox:flexbox$1,grid:grid$1,positions,palette:palette$1,shadows:shadows$2,sizing:sizing$1,spacing,typography:typography$1},propToStyleFunction=Object.keys(filterPropsMapping).reduce((o,i)=>(filterPropsMapping[i].forEach(s=>{o[s]=styleFunctionMapping[i]}),o),{});function objectsHaveSameKeys(...o){const i=o.reduce((j,$)=>j.concat(Object.keys($)),[]),s=new Set(i);return o.every(j=>s.size===Object.keys(j).length)}function callIfFn(o,i){return typeof o=="function"?o(i):o}function unstable_createStyleFunctionSx(o=styleFunctionMapping){const i=Object.keys(o).reduce(($,Z)=>(o[Z].filterProps.forEach(et=>{$[et]=o[Z]}),$),{});function s($,Z,et){const _e={[$]:Z,theme:et},nt=i[$];return nt?nt(_e):{[$]:Z}}function j($){const{sx:Z,theme:et={}}=$||{};if(!Z)return null;function _e(nt){let rt=nt;if(typeof nt=="function")rt=nt(et);else if(typeof nt!="object")return nt;if(!rt)return null;const at=createEmptyBreakpointObject(et.breakpoints),ft=Object.keys(at);let st=at;return Object.keys(rt).forEach(lt=>{const it=callIfFn(rt[lt],et);if(it!=null)if(typeof it=="object")if(i[lt])st=merge(st,s(lt,it,et));else{const ut=handleBreakpoints({theme:et},it,pt=>({[lt]:pt}));objectsHaveSameKeys(ut,it)?st[lt]=j({sx:it,theme:et}):st=merge(st,ut)}else st=merge(st,s(lt,it,et))}),removeUnusedBreakpoints(ft,st)}return Array.isArray(Z)?Z.map(_e):_e(Z)}return j}const styleFunctionSx=unstable_createStyleFunctionSx();styleFunctionSx.filterProps=["sx"];var defaultStyleFunctionSx=styleFunctionSx;function _objectWithoutPropertiesLoose$1(o,i){if(o==null)return{};var s={},j=Object.keys(o),$,Z;for(Z=0;Z=0)&&(s[$]=o[$]);return s}const _excluded$I=["sx"],splitProps=o=>{const i={systemProps:{},otherProps:{}};return Object.keys(o).forEach(s=>{propToStyleFunction[s]?i.systemProps[s]=o[s]:i.otherProps[s]=o[s]}),i};function extendSxProp(o){const{sx:i}=o,s=_objectWithoutPropertiesLoose$1(o,_excluded$I),{systemProps:j,otherProps:$}=splitProps(s);let Z;return Array.isArray(i)?Z=[j,...i]:typeof i=="function"?Z=(...et)=>{const _e=i(...et);return isPlainObject(_e)?_extends({},j,_e):j}:Z=_extends({},j,i),_extends({},$,{sx:Z})}function toVal(o){var i,s,j="";if(typeof o=="string"||typeof o=="number")j+=o;else if(typeof o=="object")if(Array.isArray(o))for(i=0;i{const i=Object.keys(o).map(s=>({key:s,val:o[s]}))||[];return i.sort((s,j)=>s.val-j.val),i.reduce((s,j)=>_extends({},s,{[j.key]:j.val}),{})};function createBreakpoints(o){const{values:i={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:s="px",step:j=5}=o,$=_objectWithoutPropertiesLoose$1(o,_excluded$H),Z=sortBreakpointsValues(i),et=Object.keys(Z);function _e(st){return`@media (min-width:${typeof i[st]=="number"?i[st]:st}${s})`}function nt(st){return`@media (max-width:${(typeof i[st]=="number"?i[st]:st)-j/100}${s})`}function rt(st,lt){const it=et.indexOf(lt);return`@media (min-width:${typeof i[st]=="number"?i[st]:st}${s}) and (max-width:${(it!==-1&&typeof i[et[it]]=="number"?i[et[it]]:lt)-j/100}${s})`}function at(st){return et.indexOf(st)+1(j.length===0?[1]:j).map(Z=>{const et=i(Z);return typeof et=="number"?`${et}px`:et}).join(" ");return s.mui=!0,s}const _excluded$G=["breakpoints","palette","spacing","shape"];function createTheme$1(o={},...i){const{breakpoints:s={},palette:j={},spacing:$,shape:Z={}}=o,et=_objectWithoutPropertiesLoose$1(o,_excluded$G),_e=createBreakpoints(s),nt=createSpacing($);let rt=deepmerge({breakpoints:_e,direction:"ltr",components:{},palette:_extends({mode:"light"},j),spacing:nt,shape:_extends({},shape$1,Z)},et);return rt=i.reduce((at,ft)=>deepmerge(at,ft),rt),rt}const ThemeContext=react.exports.createContext(null);var ThemeContext$1=ThemeContext;function useTheme$3(){return react.exports.useContext(ThemeContext$1)}const hasSymbol=typeof Symbol=="function"&&Symbol.for;var nested=hasSymbol?Symbol.for("mui.nested"):"__THEME_NESTED__";function mergeOuterLocalTheme(o,i){return typeof i=="function"?i(o):_extends({},o,i)}function ThemeProvider$1(o){const{children:i,theme:s}=o,j=useTheme$3(),$=react.exports.useMemo(()=>{const Z=j===null?s:mergeOuterLocalTheme(j,s);return Z!=null&&(Z[nested]=j!==null),Z},[s,j]);return jsx(ThemeContext$1.Provider,{value:$,children:i})}function isObjectEmpty(o){return Object.keys(o).length===0}function useTheme$2(o=null){const i=useTheme$3();return!i||isObjectEmpty(i)?o:i}const systemDefaultTheme$1=createTheme$1();function useTheme$1(o=systemDefaultTheme$1){return useTheme$2(o)}const _excluded$F=["className","component"];function createBox(o={}){const{defaultTheme:i,defaultClassName:s="MuiBox-root",generateClassName:j,styleFunctionSx:$=defaultStyleFunctionSx}=o,Z=styled$2("div")($);return react.exports.forwardRef(function(nt,rt){const at=useTheme$1(i),ft=extendSxProp(nt),{className:st,component:lt="div"}=ft,it=_objectWithoutPropertiesLoose$1(ft,_excluded$F);return jsx(Z,_extends({as:lt,ref:rt,className:clsx(st,j?j(s):s),theme:at},it))})}const _excluded$E=["variant"];function isEmpty$2(o){return o.length===0}function propsToClassKey(o){const{variant:i}=o,s=_objectWithoutPropertiesLoose$1(o,_excluded$E);let j=i||"";return Object.keys(s).sort().forEach($=>{$==="color"?j+=isEmpty$2(j)?o[$]:capitalize$1(o[$]):j+=`${isEmpty$2(j)?$:capitalize$1($)}${capitalize$1(o[$].toString())}`}),j}const _excluded$D=["name","slot","skipVariantsResolver","skipSx","overridesResolver"],_excluded2$4=["theme"],_excluded3=["theme"];function isEmpty$1(o){return Object.keys(o).length===0}const getStyleOverrides=(o,i)=>i.components&&i.components[o]&&i.components[o].styleOverrides?i.components[o].styleOverrides:null,getVariantStyles=(o,i)=>{let s=[];i&&i.components&&i.components[o]&&i.components[o].variants&&(s=i.components[o].variants);const j={};return s.forEach($=>{const Z=propsToClassKey($.props);j[Z]=$.style}),j},variantsResolver=(o,i,s,j)=>{var $,Z;const{ownerState:et={}}=o,_e=[],nt=s==null||($=s.components)==null||(Z=$[j])==null?void 0:Z.variants;return nt&&nt.forEach(rt=>{let at=!0;Object.keys(rt.props).forEach(ft=>{et[ft]!==rt.props[ft]&&o[ft]!==rt.props[ft]&&(at=!1)}),at&&_e.push(i[propsToClassKey(rt.props)])}),_e};function shouldForwardProp(o){return o!=="ownerState"&&o!=="theme"&&o!=="sx"&&o!=="as"}const systemDefaultTheme=createTheme$1();function createStyled(o={}){const{defaultTheme:i=systemDefaultTheme,rootShouldForwardProp:s=shouldForwardProp,slotShouldForwardProp:j=shouldForwardProp,styleFunctionSx:$=defaultStyleFunctionSx}=o;return(Z,et={})=>{const{name:_e,slot:nt,skipVariantsResolver:rt,skipSx:at,overridesResolver:ft}=et,st=_objectWithoutPropertiesLoose$1(et,_excluded$D),lt=rt!==void 0?rt:nt&&nt!=="Root"||!1,it=at||!1;let ut,pt=shouldForwardProp;nt==="Root"?pt=s:nt&&(pt=j);const bt=styled$2(Z,_extends({shouldForwardProp:pt,label:ut},st)),xt=(vt,...mt)=>{const ct=mt?mt.map(yt=>typeof yt=="function"&&yt.__emotion_real!==yt?ht=>{let{theme:Ct}=ht,St=_objectWithoutPropertiesLoose$1(ht,_excluded2$4);return yt(_extends({theme:isEmpty$1(Ct)?i:Ct},St))}:yt):[];let Rt=vt;_e&&ft&&ct.push(yt=>{const ht=isEmpty$1(yt.theme)?i:yt.theme,Ct=getStyleOverrides(_e,ht);if(Ct){const St={};return Object.entries(Ct).forEach(([kt,Lt])=>{St[kt]=typeof Lt=="function"?Lt(_extends({},yt,{theme:ht})):Lt}),ft(yt,St)}return null}),_e&&!lt&&ct.push(yt=>{const ht=isEmpty$1(yt.theme)?i:yt.theme;return variantsResolver(yt,getVariantStyles(_e,ht),ht,_e)}),it||ct.push(yt=>{const ht=isEmpty$1(yt.theme)?i:yt.theme;return $(_extends({},yt,{theme:ht}))});const Ft=ct.length-mt.length;if(Array.isArray(vt)&&Ft>0){const yt=new Array(Ft).fill("");Rt=[...vt,...yt],Rt.raw=[...vt.raw,...yt]}else typeof vt=="function"&&vt.__emotion_real!==vt&&(Rt=yt=>{let{theme:ht}=yt,Ct=_objectWithoutPropertiesLoose$1(yt,_excluded3);return vt(_extends({theme:isEmpty$1(ht)?i:ht},Ct))});return bt(Rt,...ct)};return bt.withConfig&&(xt.withConfig=bt.withConfig),xt}}function getThemeProps(o){const{theme:i,name:s,props:j}=o;return!i||!i.components||!i.components[s]||!i.components[s].defaultProps?j:resolveProps(i.components[s].defaultProps,j)}function useThemeProps$1({props:o,name:i,defaultTheme:s}){const j=useTheme$1(s);return getThemeProps({theme:j,name:i,props:o})}function clamp(o,i=0,s=1){return Math.min(Math.max(i,o),s)}function hexToRgb(o){o=o.slice(1);const i=new RegExp(`.{1,${o.length>=6?2:1}}`,"g");let s=o.match(i);return s&&s[0].length===1&&(s=s.map(j=>j+j)),s?`rgb${s.length===4?"a":""}(${s.map((j,$)=>$<3?parseInt(j,16):Math.round(parseInt(j,16)/255*1e3)/1e3).join(", ")})`:""}function decomposeColor(o){if(o.type)return o;if(o.charAt(0)==="#")return decomposeColor(hexToRgb(o));const i=o.indexOf("("),s=o.substring(0,i);if(["rgb","rgba","hsl","hsla","color"].indexOf(s)===-1)throw new Error(formatMuiErrorMessage(9,o));let j=o.substring(i+1,o.length-1),$;if(s==="color"){if(j=j.split(" "),$=j.shift(),j.length===4&&j[3].charAt(0)==="/"&&(j[3]=j[3].slice(1)),["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf($)===-1)throw new Error(formatMuiErrorMessage(10,$))}else j=j.split(",");return j=j.map(Z=>parseFloat(Z)),{type:s,values:j,colorSpace:$}}function recomposeColor(o){const{type:i,colorSpace:s}=o;let{values:j}=o;return i.indexOf("rgb")!==-1?j=j.map(($,Z)=>Z<3?parseInt($,10):$):i.indexOf("hsl")!==-1&&(j[1]=`${j[1]}%`,j[2]=`${j[2]}%`),i.indexOf("color")!==-1?j=`${s} ${j.join(" ")}`:j=`${j.join(", ")}`,`${i}(${j})`}function hslToRgb(o){o=decomposeColor(o);const{values:i}=o,s=i[0],j=i[1]/100,$=i[2]/100,Z=j*Math.min($,1-$),et=(rt,at=(rt+s/30)%12)=>$-Z*Math.max(Math.min(at-3,9-at,1),-1);let _e="rgb";const nt=[Math.round(et(0)*255),Math.round(et(8)*255),Math.round(et(4)*255)];return o.type==="hsla"&&(_e+="a",nt.push(i[3])),recomposeColor({type:_e,values:nt})}function getLuminance(o){o=decomposeColor(o);let i=o.type==="hsl"?decomposeColor(hslToRgb(o)).values:o.values;return i=i.map(s=>(o.type!=="color"&&(s/=255),s<=.03928?s/12.92:((s+.055)/1.055)**2.4)),Number((.2126*i[0]+.7152*i[1]+.0722*i[2]).toFixed(3))}function getContrastRatio(o,i){const s=getLuminance(o),j=getLuminance(i);return(Math.max(s,j)+.05)/(Math.min(s,j)+.05)}function alpha(o,i){return o=decomposeColor(o),i=clamp(i),(o.type==="rgb"||o.type==="hsl")&&(o.type+="a"),o.type==="color"?o.values[3]=`/${i}`:o.values[3]=i,recomposeColor(o)}function darken(o,i){if(o=decomposeColor(o),i=clamp(i),o.type.indexOf("hsl")!==-1)o.values[2]*=1-i;else if(o.type.indexOf("rgb")!==-1||o.type.indexOf("color")!==-1)for(let s=0;s<3;s+=1)o.values[s]*=1-i;return recomposeColor(o)}function lighten(o,i){if(o=decomposeColor(o),i=clamp(i),o.type.indexOf("hsl")!==-1)o.values[2]+=(100-o.values[2])*i;else if(o.type.indexOf("rgb")!==-1)for(let s=0;s<3;s+=1)o.values[s]+=(255-o.values[s])*i;else if(o.type.indexOf("color")!==-1)for(let s=0;s<3;s+=1)o.values[s]+=(1-o.values[s])*i;return recomposeColor(o)}function emphasize(o,i=.15){return getLuminance(o)>.5?darken(o,i):lighten(o,i)}function InnerThemeProvider(o){const i=useTheme$1();return jsx(ThemeContext$2.Provider,{value:typeof i=="object"?i:{},children:o.children})}function ThemeProvider(o){const{children:i,theme:s}=o;return jsx(ThemeProvider$1,{theme:s,children:jsx(InnerThemeProvider,{children:i})})}function isHostComponent(o){return typeof o=="string"}function mapEventPropToEvent(o){return o.substring(2).toLowerCase()}function clickedRootScrollbar(o,i){return i.documentElement.clientWidth(setTimeout(()=>{nt.current=!0},0),()=>{nt.current=!1}),[]);const at=useForkRef(i.ref,_e),ft=useEventCallback(it=>{const ut=rt.current;rt.current=!1;const pt=ownerDocument(_e.current);if(!nt.current||!_e.current||"clientX"in it&&clickedRootScrollbar(it,pt))return;if(et.current){et.current=!1;return}let bt;it.composedPath?bt=it.composedPath().indexOf(_e.current)>-1:bt=!pt.documentElement.contains(it.target)||_e.current.contains(it.target),!bt&&(s||!ut)&&$(it)}),st=it=>ut=>{rt.current=!0;const pt=i.props[it];pt&&pt(ut)},lt={ref:at};return Z!==!1&&(lt[Z]=st(Z)),react.exports.useEffect(()=>{if(Z!==!1){const it=mapEventPropToEvent(Z),ut=ownerDocument(_e.current),pt=()=>{et.current=!0};return ut.addEventListener(it,ft),ut.addEventListener("touchmove",pt),()=>{ut.removeEventListener(it,ft),ut.removeEventListener("touchmove",pt)}}},[ft,Z]),j!==!1&&(lt[j]=st(j)),react.exports.useEffect(()=>{if(j!==!1){const it=mapEventPropToEvent(j),ut=ownerDocument(_e.current);return ut.addEventListener(it,ft),()=>{ut.removeEventListener(it,ft)}}},[ft,j]),jsx(react.exports.Fragment,{children:react.exports.cloneElement(i,lt)})}function getContainer$1(o){return typeof o=="function"?o():o}const Portal=react.exports.forwardRef(function(i,s){const{children:j,container:$,disablePortal:Z=!1}=i,[et,_e]=react.exports.useState(null),nt=useForkRef(react.exports.isValidElement(j)?j.ref:null,s);return useEnhancedEffect$1(()=>{Z||_e(getContainer$1($)||document.body)},[$,Z]),useEnhancedEffect$1(()=>{if(et&&!Z)return setRef(s,et),()=>{setRef(s,null)}},[s,et,Z]),Z?react.exports.isValidElement(j)?react.exports.cloneElement(j,{ref:nt}):j:et&&reactDom.exports.createPortal(j,et)});var Portal$1=Portal;function isOverflowing(o){const i=ownerDocument(o);return i.body===o?ownerWindow(o).innerWidth>i.documentElement.clientWidth:o.scrollHeight>o.clientHeight}function ariaHidden(o,i){i?o.setAttribute("aria-hidden","true"):o.removeAttribute("aria-hidden")}function getPaddingRight(o){return parseInt(ownerWindow(o).getComputedStyle(o).paddingRight,10)||0}function ariaHiddenSiblings(o,i,s,j=[],$){const Z=[i,s,...j],et=["TEMPLATE","SCRIPT","STYLE"];[].forEach.call(o.children,_e=>{Z.indexOf(_e)===-1&&et.indexOf(_e.tagName)===-1&&ariaHidden(_e,$)})}function findIndexOf(o,i){let s=-1;return o.some((j,$)=>i(j)?(s=$,!0):!1),s}function handleContainer(o,i){const s=[],j=o.container;if(!i.disableScrollLock){if(isOverflowing(j)){const nt=getScrollbarSize(ownerDocument(j));s.push({value:j.style.paddingRight,property:"padding-right",el:j}),j.style.paddingRight=`${getPaddingRight(j)+nt}px`;const rt=ownerDocument(j).querySelectorAll(".mui-fixed");[].forEach.call(rt,at=>{s.push({value:at.style.paddingRight,property:"padding-right",el:at}),at.style.paddingRight=`${getPaddingRight(at)+nt}px`})}const Z=j.parentElement,et=ownerWindow(j),_e=(Z==null?void 0:Z.nodeName)==="HTML"&&et.getComputedStyle(Z).overflowY==="scroll"?Z:j;s.push({value:_e.style.overflow,property:"overflow",el:_e},{value:_e.style.overflowX,property:"overflow-x",el:_e},{value:_e.style.overflowY,property:"overflow-y",el:_e}),_e.style.overflow="hidden"}return()=>{s.forEach(({value:Z,el:et,property:_e})=>{Z?et.style.setProperty(_e,Z):et.style.removeProperty(_e)})}}function getHiddenSiblings(o){const i=[];return[].forEach.call(o.children,s=>{s.getAttribute("aria-hidden")==="true"&&i.push(s)}),i}class ModalManager{constructor(){this.containers=void 0,this.modals=void 0,this.modals=[],this.containers=[]}add(i,s){let j=this.modals.indexOf(i);if(j!==-1)return j;j=this.modals.length,this.modals.push(i),i.modalRef&&ariaHidden(i.modalRef,!1);const $=getHiddenSiblings(s);ariaHiddenSiblings(s,i.mount,i.modalRef,$,!0);const Z=findIndexOf(this.containers,et=>et.container===s);return Z!==-1?(this.containers[Z].modals.push(i),j):(this.containers.push({modals:[i],container:s,restore:null,hiddenSiblings:$}),j)}mount(i,s){const j=findIndexOf(this.containers,Z=>Z.modals.indexOf(i)!==-1),$=this.containers[j];$.restore||($.restore=handleContainer($,s))}remove(i){const s=this.modals.indexOf(i);if(s===-1)return s;const j=findIndexOf(this.containers,Z=>Z.modals.indexOf(i)!==-1),$=this.containers[j];if($.modals.splice($.modals.indexOf(i),1),this.modals.splice(s,1),$.modals.length===0)$.restore&&$.restore(),i.modalRef&&ariaHidden(i.modalRef,!0),ariaHiddenSiblings($.container,i.mount,i.modalRef,$.hiddenSiblings,!1),this.containers.splice(j,1);else{const Z=$.modals[$.modals.length-1];Z.modalRef&&ariaHidden(Z.modalRef,!1)}return s}isTopModal(i){return this.modals.length>0&&this.modals[this.modals.length-1]===i}}const candidatesSelector=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function getTabIndex(o){const i=parseInt(o.getAttribute("tabindex"),10);return Number.isNaN(i)?o.contentEditable==="true"||(o.nodeName==="AUDIO"||o.nodeName==="VIDEO"||o.nodeName==="DETAILS")&&o.getAttribute("tabindex")===null?0:o.tabIndex:i}function isNonTabbableRadio(o){if(o.tagName!=="INPUT"||o.type!=="radio"||!o.name)return!1;const i=j=>o.ownerDocument.querySelector(`input[type="radio"]${j}`);let s=i(`[name="${o.name}"]:checked`);return s||(s=i(`[name="${o.name}"]`)),s!==o}function isNodeMatchingSelectorFocusable(o){return!(o.disabled||o.tagName==="INPUT"&&o.type==="hidden"||isNonTabbableRadio(o))}function defaultGetTabbable(o){const i=[],s=[];return Array.from(o.querySelectorAll(candidatesSelector)).forEach((j,$)=>{const Z=getTabIndex(j);Z===-1||!isNodeMatchingSelectorFocusable(j)||(Z===0?i.push(j):s.push({documentOrder:$,tabIndex:Z,node:j}))}),s.sort((j,$)=>j.tabIndex===$.tabIndex?j.documentOrder-$.documentOrder:j.tabIndex-$.tabIndex).map(j=>j.node).concat(i)}function defaultIsEnabled(){return!0}function TrapFocus(o){const{children:i,disableAutoFocus:s=!1,disableEnforceFocus:j=!1,disableRestoreFocus:$=!1,getTabbable:Z=defaultGetTabbable,isEnabled:et=defaultIsEnabled,open:_e}=o,nt=react.exports.useRef(),rt=react.exports.useRef(null),at=react.exports.useRef(null),ft=react.exports.useRef(null),st=react.exports.useRef(null),lt=react.exports.useRef(!1),it=react.exports.useRef(null),ut=useForkRef(i.ref,it),pt=react.exports.useRef(null);react.exports.useEffect(()=>{!_e||!it.current||(lt.current=!s)},[s,_e]),react.exports.useEffect(()=>{if(!_e||!it.current)return;const vt=ownerDocument(it.current);return it.current.contains(vt.activeElement)||(it.current.hasAttribute("tabIndex")||it.current.setAttribute("tabIndex",-1),lt.current&&it.current.focus()),()=>{$||(ft.current&&ft.current.focus&&(nt.current=!0,ft.current.focus()),ft.current=null)}},[_e]),react.exports.useEffect(()=>{if(!_e||!it.current)return;const vt=ownerDocument(it.current),mt=Ft=>{const{current:Ut}=it;if(Ut!==null){if(!vt.hasFocus()||j||!et()||nt.current){nt.current=!1;return}if(!Ut.contains(vt.activeElement)){if(Ft&&st.current!==Ft.target||vt.activeElement!==st.current)st.current=null;else if(st.current!==null)return;if(!lt.current)return;let Ct=[];if((vt.activeElement===rt.current||vt.activeElement===at.current)&&(Ct=Z(it.current)),Ct.length>0){var yt,ht;const St=Boolean(((yt=pt.current)==null?void 0:yt.shiftKey)&&((ht=pt.current)==null?void 0:ht.key)==="Tab"),kt=Ct[0],Lt=Ct[Ct.length-1];St?Lt.focus():kt.focus()}else Ut.focus()}}},ct=Ft=>{pt.current=Ft,!(j||!et()||Ft.key!=="Tab")&&vt.activeElement===it.current&&Ft.shiftKey&&(nt.current=!0,at.current.focus())};vt.addEventListener("focusin",mt),vt.addEventListener("keydown",ct,!0);const Rt=setInterval(()=>{vt.activeElement.tagName==="BODY"&&mt()},50);return()=>{clearInterval(Rt),vt.removeEventListener("focusin",mt),vt.removeEventListener("keydown",ct,!0)}},[s,j,$,et,_e,Z]);const bt=vt=>{ft.current===null&&(ft.current=vt.relatedTarget),lt.current=!0,st.current=vt.target;const mt=i.props.onFocus;mt&&mt(vt)},xt=vt=>{ft.current===null&&(ft.current=vt.relatedTarget),lt.current=!0};return jsxs(react.exports.Fragment,{children:[jsx("div",{tabIndex:0,onFocus:xt,ref:rt,"data-test":"sentinelStart"}),react.exports.cloneElement(i,{ref:ut,onFocus:bt}),jsx("div",{tabIndex:0,onFocus:xt,ref:at,"data-test":"sentinelEnd"})]})}function getModalUtilityClass(o){return generateUtilityClass("MuiModal",o)}generateUtilityClasses("MuiModal",["root","hidden"]);const _excluded$C=["BackdropComponent","BackdropProps","children","classes","className","closeAfterTransition","component","components","componentsProps","container","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","manager","onBackdropClick","onClose","onKeyDown","open","theme","onTransitionEnter","onTransitionExited"],useUtilityClasses$r=o=>{const{open:i,exited:s,classes:j}=o;return composeClasses({root:["root",!i&&s&&"hidden"]},getModalUtilityClass,j)};function getContainer(o){return typeof o=="function"?o():o}function getHasTransition(o){return o.children?o.children.props.hasOwnProperty("in"):!1}const defaultManager=new ModalManager,ModalUnstyled=react.exports.forwardRef(function(i,s){const{BackdropComponent:j,BackdropProps:$,children:Z,classes:et,className:_e,closeAfterTransition:nt=!1,component:rt="div",components:at={},componentsProps:ft={},container:st,disableAutoFocus:lt=!1,disableEnforceFocus:it=!1,disableEscapeKeyDown:ut=!1,disablePortal:pt=!1,disableRestoreFocus:bt=!1,disableScrollLock:xt=!1,hideBackdrop:vt=!1,keepMounted:mt=!1,manager:ct=defaultManager,onBackdropClick:Rt,onClose:Ft,onKeyDown:Ut,open:yt,theme:ht,onTransitionEnter:Ct,onTransitionExited:St}=i,kt=_objectWithoutPropertiesLoose$1(i,_excluded$C),[Lt,Mt]=react.exports.useState(!0),Tt=react.exports.useRef({}),Ot=react.exports.useRef(null),At=react.exports.useRef(null),wt=useForkRef(At,s),gt=getHasTransition(i),Nt=()=>ownerDocument(Ot.current),Bt=()=>(Tt.current.modalRef=At.current,Tt.current.mountNode=Ot.current,Tt.current),Gt=()=>{ct.mount(Bt(),{disableScrollLock:xt}),At.current.scrollTop=0},Kt=useEventCallback(()=>{const qt=getContainer(st)||Nt().body;ct.add(Bt(),qt),At.current&&Gt()}),Zt=react.exports.useCallback(()=>ct.isTopModal(Bt()),[ct]),zt=useEventCallback(qt=>{Ot.current=qt,qt&&(yt&&Zt()?Gt():ariaHidden(At.current,!0))}),$t=react.exports.useCallback(()=>{ct.remove(Bt())},[ct]);react.exports.useEffect(()=>()=>{$t()},[$t]),react.exports.useEffect(()=>{yt?Kt():(!gt||!nt)&&$t()},[yt,$t,gt,nt,Kt]);const Et=_extends({},i,{classes:et,closeAfterTransition:nt,disableAutoFocus:lt,disableEnforceFocus:it,disableEscapeKeyDown:ut,disablePortal:pt,disableRestoreFocus:bt,disableScrollLock:xt,exited:Lt,hideBackdrop:vt,keepMounted:mt}),It=useUtilityClasses$r(Et);if(!mt&&!yt&&(!gt||Lt))return null;const Dt=()=>{Mt(!1),Ct&&Ct()},Jt=()=>{Mt(!0),St&&St(),nt&&$t()},Qt=qt=>{qt.target===qt.currentTarget&&(Rt&&Rt(qt),Ft&&Ft(qt,"backdropClick"))},nn=qt=>{Ut&&Ut(qt),!(qt.key!=="Escape"||!Zt())&&(ut||(qt.stopPropagation(),Ft&&Ft(qt,"escapeKeyDown")))},cn={};Z.props.tabIndex===void 0&&(cn.tabIndex="-1"),gt&&(cn.onEnter=createChainedFunction(Dt,Z.props.onEnter),cn.onExited=createChainedFunction(Jt,Z.props.onExited));const sn=at.Root||rt,Vt=ft.root||{};return jsx(Portal$1,{ref:zt,container:st,disablePortal:pt,children:jsxs(sn,_extends({role:"presentation"},Vt,!isHostComponent(sn)&&{as:rt,ownerState:_extends({},Et,Vt.ownerState),theme:ht},kt,{ref:wt,onKeyDown:nn,className:clsx(It.root,Vt.className,_e),children:[!vt&&j?jsx(j,_extends({"aria-hidden":!0,open:yt,onClick:Qt},$)):null,jsx(TrapFocus,{disableEnforceFocus:it,disableAutoFocus:lt,disableRestoreFocus:bt,isEnabled:Zt,open:yt,children:react.exports.cloneElement(Z,cn)})]}))})});var ModalUnstyled$1=ModalUnstyled;const _excluded$B=["onChange","maxRows","minRows","style","value"];function getStyleValue(o,i){return parseInt(o[i],10)||0}const styles$3={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}},TextareaAutosize=react.exports.forwardRef(function(i,s){const{onChange:j,maxRows:$,minRows:Z=1,style:et,value:_e}=i,nt=_objectWithoutPropertiesLoose$1(i,_excluded$B),{current:rt}=react.exports.useRef(_e!=null),at=react.exports.useRef(null),ft=useForkRef(s,at),st=react.exports.useRef(null),lt=react.exports.useRef(0),[it,ut]=react.exports.useState({}),pt=react.exports.useCallback(()=>{const xt=at.current,mt=ownerWindow(xt).getComputedStyle(xt);if(mt.width==="0px")return;const ct=st.current;ct.style.width=mt.width,ct.value=xt.value||i.placeholder||"x",ct.value.slice(-1)===` +`&&(ct.value+=" ");const Rt=mt["box-sizing"],Ft=getStyleValue(mt,"padding-bottom")+getStyleValue(mt,"padding-top"),Ut=getStyleValue(mt,"border-bottom-width")+getStyleValue(mt,"border-top-width"),yt=ct.scrollHeight;ct.value="x";const ht=ct.scrollHeight;let Ct=yt;Z&&(Ct=Math.max(Number(Z)*ht,Ct)),$&&(Ct=Math.min(Number($)*ht,Ct)),Ct=Math.max(Ct,ht);const St=Ct+(Rt==="border-box"?Ft+Ut:0),kt=Math.abs(Ct-yt)<=1;ut(Lt=>lt.current<20&&(St>0&&Math.abs((Lt.outerHeightStyle||0)-St)>1||Lt.overflow!==kt)?(lt.current+=1,{overflow:kt,outerHeightStyle:St}):Lt)},[$,Z,i.placeholder]);react.exports.useEffect(()=>{const xt=debounce(()=>{lt.current=0,pt()}),vt=ownerWindow(at.current);vt.addEventListener("resize",xt);let mt;return typeof ResizeObserver!="undefined"&&(mt=new ResizeObserver(xt),mt.observe(at.current)),()=>{xt.clear(),vt.removeEventListener("resize",xt),mt&&mt.disconnect()}},[pt]),useEnhancedEffect$1(()=>{pt()}),react.exports.useEffect(()=>{lt.current=0},[_e]);const bt=xt=>{lt.current=0,rt||pt(),j&&j(xt)};return jsxs(react.exports.Fragment,{children:[jsx("textarea",_extends({value:_e,onChange:bt,ref:ft,rows:Z,style:_extends({height:it.outerHeightStyle,overflow:it.overflow?"hidden":null},et)},nt)),jsx("textarea",{"aria-hidden":!0,className:i.className,readOnly:!0,ref:st,tabIndex:-1,style:_extends({},styles$3.shadow,et,{padding:0})})]})});var TextareaAutosize$1=TextareaAutosize;function createMixins(o,i){return _extends({toolbar:{minHeight:56,[o.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[o.up("sm")]:{minHeight:64}}},i)}const common={black:"#000",white:"#fff"};var common$1=common;const grey={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"};var grey$1=grey;const purple={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff"};var purple$1=purple;const red={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"};var red$1=red;const orange={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"};var orange$1=orange;const blue={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"};var blue$1=blue;const lightBlue={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea"};var lightBlue$1=lightBlue;const green={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"};var green$1=green;const _excluded$A=["mode","contrastThreshold","tonalOffset"],light={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:common$1.white,default:common$1.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}},dark={text:{primary:common$1.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:common$1.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function addLightOrDark(o,i,s,j){const $=j.light||j,Z=j.dark||j*1.5;o[i]||(o.hasOwnProperty(s)?o[i]=o[s]:i==="light"?o.light=lighten(o.main,$):i==="dark"&&(o.dark=darken(o.main,Z)))}function getDefaultPrimary(o="light"){return o==="dark"?{main:blue$1[200],light:blue$1[50],dark:blue$1[400]}:{main:blue$1[700],light:blue$1[400],dark:blue$1[800]}}function getDefaultSecondary(o="light"){return o==="dark"?{main:purple$1[200],light:purple$1[50],dark:purple$1[400]}:{main:purple$1[500],light:purple$1[300],dark:purple$1[700]}}function getDefaultError(o="light"){return o==="dark"?{main:red$1[500],light:red$1[300],dark:red$1[700]}:{main:red$1[700],light:red$1[400],dark:red$1[800]}}function getDefaultInfo(o="light"){return o==="dark"?{main:lightBlue$1[400],light:lightBlue$1[300],dark:lightBlue$1[700]}:{main:lightBlue$1[700],light:lightBlue$1[500],dark:lightBlue$1[900]}}function getDefaultSuccess(o="light"){return o==="dark"?{main:green$1[400],light:green$1[300],dark:green$1[700]}:{main:green$1[800],light:green$1[500],dark:green$1[900]}}function getDefaultWarning(o="light"){return o==="dark"?{main:orange$1[400],light:orange$1[300],dark:orange$1[700]}:{main:"#ed6c02",light:orange$1[500],dark:orange$1[900]}}function createPalette(o){const{mode:i="light",contrastThreshold:s=3,tonalOffset:j=.2}=o,$=_objectWithoutPropertiesLoose$1(o,_excluded$A),Z=o.primary||getDefaultPrimary(i),et=o.secondary||getDefaultSecondary(i),_e=o.error||getDefaultError(i),nt=o.info||getDefaultInfo(i),rt=o.success||getDefaultSuccess(i),at=o.warning||getDefaultWarning(i);function ft(ut){return getContrastRatio(ut,dark.text.primary)>=s?dark.text.primary:light.text.primary}const st=({color:ut,name:pt,mainShade:bt=500,lightShade:xt=300,darkShade:vt=700})=>{if(ut=_extends({},ut),!ut.main&&ut[bt]&&(ut.main=ut[bt]),!ut.hasOwnProperty("main"))throw new Error(formatMuiErrorMessage(11,pt?` (${pt})`:"",bt));if(typeof ut.main!="string")throw new Error(formatMuiErrorMessage(12,pt?` (${pt})`:"",JSON.stringify(ut.main)));return addLightOrDark(ut,"light",xt,j),addLightOrDark(ut,"dark",vt,j),ut.contrastText||(ut.contrastText=ft(ut.main)),ut},lt={dark,light};return deepmerge(_extends({common:_extends({},common$1),mode:i,primary:st({color:Z,name:"primary"}),secondary:st({color:et,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:st({color:_e,name:"error"}),warning:st({color:at,name:"warning"}),info:st({color:nt,name:"info"}),success:st({color:rt,name:"success"}),grey:grey$1,contrastThreshold:s,getContrastText:ft,augmentColor:st,tonalOffset:j},lt[i]),$)}const _excluded$z=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];function round(o){return Math.round(o*1e5)/1e5}const caseAllCaps={textTransform:"uppercase"},defaultFontFamily='"Roboto", "Helvetica", "Arial", sans-serif';function createTypography(o,i){const s=typeof i=="function"?i(o):i,{fontFamily:j=defaultFontFamily,fontSize:$=14,fontWeightLight:Z=300,fontWeightRegular:et=400,fontWeightMedium:_e=500,fontWeightBold:nt=700,htmlFontSize:rt=16,allVariants:at,pxToRem:ft}=s,st=_objectWithoutPropertiesLoose$1(s,_excluded$z),lt=$/14,it=ft||(bt=>`${bt/rt*lt}rem`),ut=(bt,xt,vt,mt,ct)=>_extends({fontFamily:j,fontWeight:bt,fontSize:it(xt),lineHeight:vt},j===defaultFontFamily?{letterSpacing:`${round(mt/xt)}em`}:{},ct,at),pt={h1:ut(Z,96,1.167,-1.5),h2:ut(Z,60,1.2,-.5),h3:ut(et,48,1.167,0),h4:ut(et,34,1.235,.25),h5:ut(et,24,1.334,0),h6:ut(_e,20,1.6,.15),subtitle1:ut(et,16,1.75,.15),subtitle2:ut(_e,14,1.57,.1),body1:ut(et,16,1.5,.15),body2:ut(et,14,1.43,.15),button:ut(_e,14,1.75,.4,caseAllCaps),caption:ut(et,12,1.66,.4),overline:ut(et,12,2.66,1,caseAllCaps)};return deepmerge(_extends({htmlFontSize:rt,pxToRem:it,fontFamily:j,fontSize:$,fontWeightLight:Z,fontWeightRegular:et,fontWeightMedium:_e,fontWeightBold:nt},pt),st,{clone:!1})}const shadowKeyUmbraOpacity=.2,shadowKeyPenumbraOpacity=.14,shadowAmbientShadowOpacity=.12;function createShadow(...o){return[`${o[0]}px ${o[1]}px ${o[2]}px ${o[3]}px rgba(0,0,0,${shadowKeyUmbraOpacity})`,`${o[4]}px ${o[5]}px ${o[6]}px ${o[7]}px rgba(0,0,0,${shadowKeyPenumbraOpacity})`,`${o[8]}px ${o[9]}px ${o[10]}px ${o[11]}px rgba(0,0,0,${shadowAmbientShadowOpacity})`].join(",")}const shadows=["none",createShadow(0,2,1,-1,0,1,1,0,0,1,3,0),createShadow(0,3,1,-2,0,2,2,0,0,1,5,0),createShadow(0,3,3,-2,0,3,4,0,0,1,8,0),createShadow(0,2,4,-1,0,4,5,0,0,1,10,0),createShadow(0,3,5,-1,0,5,8,0,0,1,14,0),createShadow(0,3,5,-1,0,6,10,0,0,1,18,0),createShadow(0,4,5,-2,0,7,10,1,0,2,16,1),createShadow(0,5,5,-3,0,8,10,1,0,3,14,2),createShadow(0,5,6,-3,0,9,12,1,0,3,16,2),createShadow(0,6,6,-3,0,10,14,1,0,4,18,3),createShadow(0,6,7,-4,0,11,15,1,0,4,20,3),createShadow(0,7,8,-4,0,12,17,2,0,5,22,4),createShadow(0,7,8,-4,0,13,19,2,0,5,24,4),createShadow(0,7,9,-4,0,14,21,2,0,5,26,4),createShadow(0,8,9,-5,0,15,22,2,0,6,28,5),createShadow(0,8,10,-5,0,16,24,2,0,6,30,5),createShadow(0,8,11,-5,0,17,26,2,0,6,32,5),createShadow(0,9,11,-5,0,18,28,2,0,7,34,6),createShadow(0,9,12,-6,0,19,29,2,0,7,36,6),createShadow(0,10,13,-6,0,20,31,3,0,8,38,7),createShadow(0,10,13,-6,0,21,33,3,0,8,40,7),createShadow(0,10,14,-6,0,22,35,3,0,8,42,7),createShadow(0,11,14,-7,0,23,36,3,0,9,44,8),createShadow(0,11,15,-7,0,24,38,3,0,9,46,8)];var shadows$1=shadows;const _excluded$y=["duration","easing","delay"],easing={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},duration={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function formatMs(o){return`${Math.round(o)}ms`}function getAutoHeightDuration(o){if(!o)return 0;const i=o/36;return Math.round((4+15*i**.25+i/5)*10)}function createTransitions(o){const i=_extends({},easing,o.easing),s=_extends({},duration,o.duration);return _extends({getAutoHeightDuration,create:($=["all"],Z={})=>{const{duration:et=s.standard,easing:_e=i.easeInOut,delay:nt=0}=Z;return _objectWithoutPropertiesLoose$1(Z,_excluded$y),(Array.isArray($)?$:[$]).map(rt=>`${rt} ${typeof et=="string"?et:formatMs(et)} ${_e} ${typeof nt=="string"?nt:formatMs(nt)}`).join(",")}},o,{easing:i,duration:s})}const zIndex={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};var zIndex$1=zIndex;const _excluded$x=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function createTheme(o={},...i){const{mixins:s={},palette:j={},transitions:$={},typography:Z={}}=o,et=_objectWithoutPropertiesLoose$1(o,_excluded$x),_e=createPalette(j),nt=createTheme$1(o);let rt=deepmerge(nt,{mixins:createMixins(nt.breakpoints,s),palette:_e,shadows:shadows$1.slice(),typography:createTypography(_e,Z),transitions:createTransitions($),zIndex:_extends({},zIndex$1)});return rt=deepmerge(rt,et),rt=i.reduce((at,ft)=>deepmerge(at,ft),rt),rt}const defaultTheme$2=createTheme();var defaultTheme$3=defaultTheme$2;function useThemeProps({props:o,name:i}){return useThemeProps$1({props:o,name:i,defaultTheme:defaultTheme$3})}function GlobalStyles(o){return jsx(GlobalStyles$1,_extends({},o,{defaultTheme:defaultTheme$3}))}const html=(o,i)=>_extends({WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",boxSizing:"border-box",WebkitTextSizeAdjust:"100%"},i&&{colorScheme:o.palette.mode}),body=o=>_extends({color:(o.vars||o).palette.text.primary},o.typography.body1,{backgroundColor:(o.vars||o).palette.background.default,"@media print":{backgroundColor:(o.vars||o).palette.common.white}}),styles$2=(o,i=!1)=>{var s,j;let $={html:html(o,i),"*, *::before, *::after":{boxSizing:"inherit"},"strong, b":{fontWeight:o.typography.fontWeightBold},body:_extends({margin:0},body(o),{"&::backdrop":{backgroundColor:(o.vars||o).palette.background.default}})};const Z=(s=o.components)==null||(j=s.MuiCssBaseline)==null?void 0:j.styleOverrides;return Z&&($=[$,Z]),$};function CssBaseline(o){const i=useThemeProps({props:o,name:"MuiCssBaseline"}),{children:s,enableColorScheme:j=!1}=i;return jsxs(react.exports.Fragment,{children:[jsx(GlobalStyles,{styles:$=>styles$2($,j)}),s]})}function useTheme(){return useTheme$1(defaultTheme$3)}const rootShouldForwardProp=o=>shouldForwardProp(o)&&o!=="classes",slotShouldForwardProp=shouldForwardProp,styled=createStyled({defaultTheme:defaultTheme$3,rootShouldForwardProp});var styled$1=styled;function getPaperUtilityClass(o){return generateUtilityClass("MuiPaper",o)}generateUtilityClasses("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]);const _excluded$w=["className","component","elevation","square","variant"],getOverlayAlpha=o=>{let i;return o<1?i=5.11916*o**2:i=4.5*Math.log(o+1)+2,(i/100).toFixed(2)},useUtilityClasses$q=o=>{const{square:i,elevation:s,variant:j,classes:$}=o,Z={root:["root",j,!i&&"rounded",j==="elevation"&&`elevation${s}`]};return composeClasses(Z,getPaperUtilityClass,$)},PaperRoot=styled$1("div",{name:"MuiPaper",slot:"Root",overridesResolver:(o,i)=>{const{ownerState:s}=o;return[i.root,i[s.variant],!s.square&&i.rounded,s.variant==="elevation"&&i[`elevation${s.elevation}`]]}})(({theme:o,ownerState:i})=>{var s;return _extends({backgroundColor:(o.vars||o).palette.background.paper,color:(o.vars||o).palette.text.primary,transition:o.transitions.create("box-shadow")},!i.square&&{borderRadius:o.shape.borderRadius},i.variant==="outlined"&&{border:`1px solid ${(o.vars||o).palette.divider}`},i.variant==="elevation"&&_extends({boxShadow:(o.vars||o).shadows[i.elevation]},!o.vars&&o.palette.mode==="dark"&&{backgroundImage:`linear-gradient(${alpha("#fff",getOverlayAlpha(i.elevation))}, ${alpha("#fff",getOverlayAlpha(i.elevation))})`},o.vars&&{backgroundImage:(s=o.vars.overlays)==null?void 0:s[i.elevation]}))}),Paper=react.exports.forwardRef(function(i,s){const j=useThemeProps({props:i,name:"MuiPaper"}),{className:$,component:Z="div",elevation:et=1,square:_e=!1,variant:nt="elevation"}=j,rt=_objectWithoutPropertiesLoose$1(j,_excluded$w),at=_extends({},j,{component:Z,elevation:et,square:_e,variant:nt}),ft=useUtilityClasses$q(at);return jsx(PaperRoot,_extends({as:Z,ownerState:at,className:clsx(ft.root,$),ref:s},rt))});var Paper$1=Paper;function getSvgIconUtilityClass(o){return generateUtilityClass("MuiSvgIcon",o)}generateUtilityClasses("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const _excluded$v=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],useUtilityClasses$p=o=>{const{color:i,fontSize:s,classes:j}=o,$={root:["root",i!=="inherit"&&`color${capitalize$1(i)}`,`fontSize${capitalize$1(s)}`]};return composeClasses($,getSvgIconUtilityClass,j)},SvgIconRoot=styled$1("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(o,i)=>{const{ownerState:s}=o;return[i.root,s.color!=="inherit"&&i[`color${capitalize$1(s.color)}`],i[`fontSize${capitalize$1(s.fontSize)}`]]}})(({theme:o,ownerState:i})=>{var s,j,$,Z,et,_e,nt,rt,at,ft,st,lt,it,ut,pt,bt,xt;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:"currentColor",flexShrink:0,transition:(s=o.transitions)==null||(j=s.create)==null?void 0:j.call(s,"fill",{duration:($=o.transitions)==null||(Z=$.duration)==null?void 0:Z.shorter}),fontSize:{inherit:"inherit",small:((et=o.typography)==null||(_e=et.pxToRem)==null?void 0:_e.call(et,20))||"1.25rem",medium:((nt=o.typography)==null||(rt=nt.pxToRem)==null?void 0:rt.call(nt,24))||"1.5rem",large:((at=o.typography)==null||(ft=at.pxToRem)==null?void 0:ft.call(at,35))||"2.1875"}[i.fontSize],color:(st=(lt=(o.vars||o).palette)==null||(it=lt[i.color])==null?void 0:it.main)!=null?st:{action:(ut=(o.vars||o).palette)==null||(pt=ut.action)==null?void 0:pt.active,disabled:(bt=(o.vars||o).palette)==null||(xt=bt.action)==null?void 0:xt.disabled,inherit:void 0}[i.color]}}),SvgIcon=react.exports.forwardRef(function(i,s){const j=useThemeProps({props:i,name:"MuiSvgIcon"}),{children:$,className:Z,color:et="inherit",component:_e="svg",fontSize:nt="medium",htmlColor:rt,inheritViewBox:at=!1,titleAccess:ft,viewBox:st="0 0 24 24"}=j,lt=_objectWithoutPropertiesLoose$1(j,_excluded$v),it=_extends({},j,{color:et,component:_e,fontSize:nt,instanceFontSize:i.fontSize,inheritViewBox:at,viewBox:st}),ut={};at||(ut.viewBox=st);const pt=useUtilityClasses$p(it);return jsxs(SvgIconRoot,_extends({as:_e,className:clsx(pt.root,Z),ownerState:it,focusable:"false",color:rt,"aria-hidden":ft?void 0:!0,role:ft?"img":void 0,ref:s},ut,lt,{children:[$,ft?jsx("title",{children:ft}):null]}))});SvgIcon.muiName="SvgIcon";var SvgIcon$1=SvgIcon;function createSvgIcon(o,i){const s=(j,$)=>jsx(SvgIcon$1,_extends({"data-testid":`${i}Icon`,ref:$},j,{children:o}));return s.muiName=SvgIcon$1.muiName,react.exports.memo(react.exports.forwardRef(s))}function _setPrototypeOf$1(o,i){return _setPrototypeOf$1=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(j,$){return j.__proto__=$,j},_setPrototypeOf$1(o,i)}function _inheritsLoose(o,i){o.prototype=Object.create(i.prototype),o.prototype.constructor=o,_setPrototypeOf$1(o,i)}var config={disabled:!1},TransitionGroupContext=React$1.createContext(null),UNMOUNTED="unmounted",EXITED="exited",ENTERING="entering",ENTERED="entered",EXITING="exiting",Transition=function(o){_inheritsLoose(i,o);function i(j,$){var Z;Z=o.call(this,j,$)||this;var et=$,_e=et&&!et.isMounting?j.enter:j.appear,nt;return Z.appearStatus=null,j.in?_e?(nt=EXITED,Z.appearStatus=ENTERING):nt=ENTERED:j.unmountOnExit||j.mountOnEnter?nt=UNMOUNTED:nt=EXITED,Z.state={status:nt},Z.nextCallback=null,Z}i.getDerivedStateFromProps=function($,Z){var et=$.in;return et&&Z.status===UNMOUNTED?{status:EXITED}:null};var s=i.prototype;return s.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},s.componentDidUpdate=function($){var Z=null;if($!==this.props){var et=this.state.status;this.props.in?et!==ENTERING&&et!==ENTERED&&(Z=ENTERING):(et===ENTERING||et===ENTERED)&&(Z=EXITING)}this.updateStatus(!1,Z)},s.componentWillUnmount=function(){this.cancelNextCallback()},s.getTimeouts=function(){var $=this.props.timeout,Z,et,_e;return Z=et=_e=$,$!=null&&typeof $!="number"&&(Z=$.exit,et=$.enter,_e=$.appear!==void 0?$.appear:et),{exit:Z,enter:et,appear:_e}},s.updateStatus=function($,Z){$===void 0&&($=!1),Z!==null?(this.cancelNextCallback(),Z===ENTERING?this.performEnter($):this.performExit()):this.props.unmountOnExit&&this.state.status===EXITED&&this.setState({status:UNMOUNTED})},s.performEnter=function($){var Z=this,et=this.props.enter,_e=this.context?this.context.isMounting:$,nt=this.props.nodeRef?[_e]:[ReactDOM.findDOMNode(this),_e],rt=nt[0],at=nt[1],ft=this.getTimeouts(),st=_e?ft.appear:ft.enter;if(!$&&!et||config.disabled){this.safeSetState({status:ENTERED},function(){Z.props.onEntered(rt)});return}this.props.onEnter(rt,at),this.safeSetState({status:ENTERING},function(){Z.props.onEntering(rt,at),Z.onTransitionEnd(st,function(){Z.safeSetState({status:ENTERED},function(){Z.props.onEntered(rt,at)})})})},s.performExit=function(){var $=this,Z=this.props.exit,et=this.getTimeouts(),_e=this.props.nodeRef?void 0:ReactDOM.findDOMNode(this);if(!Z||config.disabled){this.safeSetState({status:EXITED},function(){$.props.onExited(_e)});return}this.props.onExit(_e),this.safeSetState({status:EXITING},function(){$.props.onExiting(_e),$.onTransitionEnd(et.exit,function(){$.safeSetState({status:EXITED},function(){$.props.onExited(_e)})})})},s.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},s.safeSetState=function($,Z){Z=this.setNextCallback(Z),this.setState($,Z)},s.setNextCallback=function($){var Z=this,et=!0;return this.nextCallback=function(_e){et&&(et=!1,Z.nextCallback=null,$(_e))},this.nextCallback.cancel=function(){et=!1},this.nextCallback},s.onTransitionEnd=function($,Z){this.setNextCallback(Z);var et=this.props.nodeRef?this.props.nodeRef.current:ReactDOM.findDOMNode(this),_e=$==null&&!this.props.addEndListener;if(!et||_e){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var nt=this.props.nodeRef?[this.nextCallback]:[et,this.nextCallback],rt=nt[0],at=nt[1];this.props.addEndListener(rt,at)}$!=null&&setTimeout(this.nextCallback,$)},s.render=function(){var $=this.state.status;if($===UNMOUNTED)return null;var Z=this.props,et=Z.children;Z.in,Z.mountOnEnter,Z.unmountOnExit,Z.appear,Z.enter,Z.exit,Z.timeout,Z.addEndListener,Z.onEnter,Z.onEntering,Z.onEntered,Z.onExit,Z.onExiting,Z.onExited,Z.nodeRef;var _e=_objectWithoutPropertiesLoose$1(Z,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return React$1.createElement(TransitionGroupContext.Provider,{value:null},typeof et=="function"?et($,_e):React$1.cloneElement(React$1.Children.only(et),_e))},i}(React$1.Component);Transition.contextType=TransitionGroupContext;Transition.propTypes={};function noop(){}Transition.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:noop,onEntering:noop,onEntered:noop,onExit:noop,onExiting:noop,onExited:noop};Transition.UNMOUNTED=UNMOUNTED;Transition.EXITED=EXITED;Transition.ENTERING=ENTERING;Transition.ENTERED=ENTERED;Transition.EXITING=EXITING;var Transition$1=Transition;function _assertThisInitialized$1(o){if(o===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return o}function getChildMapping(o,i){var s=function(Z){return i&&react.exports.isValidElement(Z)?i(Z):Z},j=Object.create(null);return o&&react.exports.Children.map(o,function($){return $}).forEach(function($){j[$.key]=s($)}),j}function mergeChildMappings(o,i){o=o||{},i=i||{};function s(at){return at in i?i[at]:o[at]}var j=Object.create(null),$=[];for(var Z in o)Z in i?$.length&&(j[Z]=$,$=[]):$.push(Z);var et,_e={};for(var nt in i){if(j[nt])for(et=0;eto.scrollTop;function getTransitionProps(o,i){var s,j;const{timeout:$,easing:Z,style:et={}}=o;return{duration:(s=et.transitionDuration)!=null?s:typeof $=="number"?$:$[i.mode]||0,easing:(j=et.transitionTimingFunction)!=null?j:typeof Z=="object"?Z[i.mode]:Z,delay:et.transitionDelay}}function Ripple(o){const{className:i,classes:s,pulsate:j=!1,rippleX:$,rippleY:Z,rippleSize:et,in:_e,onExited:nt,timeout:rt}=o,[at,ft]=react.exports.useState(!1),st=clsx(i,s.ripple,s.rippleVisible,j&&s.ripplePulsate),lt={width:et,height:et,top:-(et/2)+Z,left:-(et/2)+$},it=clsx(s.child,at&&s.childLeaving,j&&s.childPulsate);return!_e&&!at&&ft(!0),react.exports.useEffect(()=>{if(!_e&&nt!=null){const ut=setTimeout(nt,rt);return()=>{clearTimeout(ut)}}},[nt,_e,rt]),jsx("span",{className:st,style:lt,children:jsx("span",{className:it})})}const touchRippleClasses=generateUtilityClasses("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]);var touchRippleClasses$1=touchRippleClasses;const _excluded$u=["center","classes","className"];let _=o=>o,_t,_t2,_t3,_t4;const DURATION=550,DELAY_RIPPLE=80,enterKeyframe=keyframes(_t||(_t=_` + 0% { + transform: scale(0); + opacity: 0.1; + } + + 100% { + transform: scale(1); + opacity: 0.3; + } +`)),exitKeyframe=keyframes(_t2||(_t2=_` + 0% { + opacity: 1; + } + + 100% { + opacity: 0; + } +`)),pulsateKeyframe=keyframes(_t3||(_t3=_` + 0% { + transform: scale(1); + } + + 50% { + transform: scale(0.92); + } + + 100% { + transform: scale(1); + } +`)),TouchRippleRoot=styled$1("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),TouchRippleRipple=styled$1(Ripple,{name:"MuiTouchRipple",slot:"Ripple"})(_t4||(_t4=_` + opacity: 0; + position: absolute; + + &.${0} { + opacity: 0.3; + transform: scale(1); + animation-name: ${0}; + animation-duration: ${0}ms; + animation-timing-function: ${0}; + } + + &.${0} { + animation-duration: ${0}ms; + } + + & .${0} { + opacity: 1; + display: block; + width: 100%; + height: 100%; + border-radius: 50%; + background-color: currentColor; + } + + & .${0} { + opacity: 0; + animation-name: ${0}; + animation-duration: ${0}ms; + animation-timing-function: ${0}; + } + + & .${0} { + position: absolute; + /* @noflip */ + left: 0px; + top: 0; + animation-name: ${0}; + animation-duration: 2500ms; + animation-timing-function: ${0}; + animation-iteration-count: infinite; + animation-delay: 200ms; + } +`),touchRippleClasses$1.rippleVisible,enterKeyframe,DURATION,({theme:o})=>o.transitions.easing.easeInOut,touchRippleClasses$1.ripplePulsate,({theme:o})=>o.transitions.duration.shorter,touchRippleClasses$1.child,touchRippleClasses$1.childLeaving,exitKeyframe,DURATION,({theme:o})=>o.transitions.easing.easeInOut,touchRippleClasses$1.childPulsate,pulsateKeyframe,({theme:o})=>o.transitions.easing.easeInOut),TouchRipple=react.exports.forwardRef(function(i,s){const j=useThemeProps({props:i,name:"MuiTouchRipple"}),{center:$=!1,classes:Z={},className:et}=j,_e=_objectWithoutPropertiesLoose$1(j,_excluded$u),[nt,rt]=react.exports.useState([]),at=react.exports.useRef(0),ft=react.exports.useRef(null);react.exports.useEffect(()=>{ft.current&&(ft.current(),ft.current=null)},[nt]);const st=react.exports.useRef(!1),lt=react.exports.useRef(null),it=react.exports.useRef(null),ut=react.exports.useRef(null);react.exports.useEffect(()=>()=>{clearTimeout(lt.current)},[]);const pt=react.exports.useCallback(mt=>{const{pulsate:ct,rippleX:Rt,rippleY:Ft,rippleSize:Ut,cb:yt}=mt;rt(ht=>[...ht,jsx(TouchRippleRipple,{classes:{ripple:clsx(Z.ripple,touchRippleClasses$1.ripple),rippleVisible:clsx(Z.rippleVisible,touchRippleClasses$1.rippleVisible),ripplePulsate:clsx(Z.ripplePulsate,touchRippleClasses$1.ripplePulsate),child:clsx(Z.child,touchRippleClasses$1.child),childLeaving:clsx(Z.childLeaving,touchRippleClasses$1.childLeaving),childPulsate:clsx(Z.childPulsate,touchRippleClasses$1.childPulsate)},timeout:DURATION,pulsate:ct,rippleX:Rt,rippleY:Ft,rippleSize:Ut},at.current)]),at.current+=1,ft.current=yt},[Z]),bt=react.exports.useCallback((mt={},ct={},Rt)=>{const{pulsate:Ft=!1,center:Ut=$||ct.pulsate,fakeElement:yt=!1}=ct;if((mt==null?void 0:mt.type)==="mousedown"&&st.current){st.current=!1;return}(mt==null?void 0:mt.type)==="touchstart"&&(st.current=!0);const ht=yt?null:ut.current,Ct=ht?ht.getBoundingClientRect():{width:0,height:0,left:0,top:0};let St,kt,Lt;if(Ut||mt===void 0||mt.clientX===0&&mt.clientY===0||!mt.clientX&&!mt.touches)St=Math.round(Ct.width/2),kt=Math.round(Ct.height/2);else{const{clientX:Mt,clientY:Tt}=mt.touches?mt.touches[0]:mt;St=Math.round(Mt-Ct.left),kt=Math.round(Tt-Ct.top)}if(Ut)Lt=Math.sqrt((2*Ct.width**2+Ct.height**2)/3),Lt%2===0&&(Lt+=1);else{const Mt=Math.max(Math.abs((ht?ht.clientWidth:0)-St),St)*2+2,Tt=Math.max(Math.abs((ht?ht.clientHeight:0)-kt),kt)*2+2;Lt=Math.sqrt(Mt**2+Tt**2)}mt!=null&&mt.touches?it.current===null&&(it.current=()=>{pt({pulsate:Ft,rippleX:St,rippleY:kt,rippleSize:Lt,cb:Rt})},lt.current=setTimeout(()=>{it.current&&(it.current(),it.current=null)},DELAY_RIPPLE)):pt({pulsate:Ft,rippleX:St,rippleY:kt,rippleSize:Lt,cb:Rt})},[$,pt]),xt=react.exports.useCallback(()=>{bt({},{pulsate:!0})},[bt]),vt=react.exports.useCallback((mt,ct)=>{if(clearTimeout(lt.current),(mt==null?void 0:mt.type)==="touchend"&&it.current){it.current(),it.current=null,lt.current=setTimeout(()=>{vt(mt,ct)});return}it.current=null,rt(Rt=>Rt.length>0?Rt.slice(1):Rt),ft.current=ct},[]);return react.exports.useImperativeHandle(s,()=>({pulsate:xt,start:bt,stop:vt}),[xt,bt,vt]),jsx(TouchRippleRoot,_extends({className:clsx(Z.root,touchRippleClasses$1.root,et),ref:ut},_e,{children:jsx(TransitionGroup$1,{component:null,exit:!0,children:nt})}))});var TouchRipple$1=TouchRipple;function getButtonBaseUtilityClass(o){return generateUtilityClass("MuiButtonBase",o)}const buttonBaseClasses=generateUtilityClasses("MuiButtonBase",["root","disabled","focusVisible"]);var buttonBaseClasses$1=buttonBaseClasses;const _excluded$t=["action","centerRipple","children","className","component","disabled","disableRipple","disableTouchRipple","focusRipple","focusVisibleClassName","LinkComponent","onBlur","onClick","onContextMenu","onDragLeave","onFocus","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","tabIndex","TouchRippleProps","touchRippleRef","type"],useUtilityClasses$o=o=>{const{disabled:i,focusVisible:s,focusVisibleClassName:j,classes:$}=o,et=composeClasses({root:["root",i&&"disabled",s&&"focusVisible"]},getButtonBaseUtilityClass,$);return s&&j&&(et.root+=` ${j}`),et},ButtonBaseRoot=styled$1("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:(o,i)=>i.root})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${buttonBaseClasses$1.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),ButtonBase=react.exports.forwardRef(function(i,s){const j=useThemeProps({props:i,name:"MuiButtonBase"}),{action:$,centerRipple:Z=!1,children:et,className:_e,component:nt="button",disabled:rt=!1,disableRipple:at=!1,disableTouchRipple:ft=!1,focusRipple:st=!1,LinkComponent:lt="a",onBlur:it,onClick:ut,onContextMenu:pt,onDragLeave:bt,onFocus:xt,onFocusVisible:vt,onKeyDown:mt,onKeyUp:ct,onMouseDown:Rt,onMouseLeave:Ft,onMouseUp:Ut,onTouchEnd:yt,onTouchMove:ht,onTouchStart:Ct,tabIndex:St=0,TouchRippleProps:kt,touchRippleRef:Lt,type:Mt}=j,Tt=_objectWithoutPropertiesLoose$1(j,_excluded$t),Ot=react.exports.useRef(null),At=react.exports.useRef(null),wt=useForkRef(At,Lt),{isFocusVisibleRef:gt,onFocus:Nt,onBlur:Bt,ref:Gt}=useIsFocusVisible(),[Kt,Zt]=react.exports.useState(!1);rt&&Kt&&Zt(!1),react.exports.useImperativeHandle($,()=>({focusVisible:()=>{Zt(!0),Ot.current.focus()}}),[]);const[zt,$t]=react.exports.useState(!1);react.exports.useEffect(()=>{$t(!0)},[]);const Et=zt&&!at&&!rt;react.exports.useEffect(()=>{Kt&&st&&!at&&zt&&At.current.pulsate()},[at,st,Kt,zt]);function It(Pn,Gn,tr=ft){return useEventCallback(Qn=>(Gn&&Gn(Qn),!tr&&At.current&&At.current[Pn](Qn),!0))}const Dt=It("start",Rt),Jt=It("stop",pt),Qt=It("stop",bt),nn=It("stop",Ut),cn=It("stop",Pn=>{Kt&&Pn.preventDefault(),Ft&&Ft(Pn)}),sn=It("start",Ct),Vt=It("stop",yt),qt=It("stop",ht),tn=It("stop",Pn=>{Bt(Pn),gt.current===!1&&Zt(!1),it&&it(Pn)},!1),hn=useEventCallback(Pn=>{Ot.current||(Ot.current=Pn.currentTarget),Nt(Pn),gt.current===!0&&(Zt(!0),vt&&vt(Pn)),xt&&xt(Pn)}),an=()=>{const Pn=Ot.current;return nt&&nt!=="button"&&!(Pn.tagName==="A"&&Pn.href)},_n=react.exports.useRef(!1),mn=useEventCallback(Pn=>{st&&!_n.current&&Kt&&At.current&&Pn.key===" "&&(_n.current=!0,At.current.stop(Pn,()=>{At.current.start(Pn)})),Pn.target===Pn.currentTarget&&an()&&Pn.key===" "&&Pn.preventDefault(),mt&&mt(Pn),Pn.target===Pn.currentTarget&&an()&&Pn.key==="Enter"&&!rt&&(Pn.preventDefault(),ut&&ut(Pn))}),vn=useEventCallback(Pn=>{st&&Pn.key===" "&&At.current&&Kt&&!Pn.defaultPrevented&&(_n.current=!1,At.current.stop(Pn,()=>{At.current.pulsate(Pn)})),ct&&ct(Pn),ut&&Pn.target===Pn.currentTarget&&an()&&Pn.key===" "&&!Pn.defaultPrevented&&ut(Pn)});let un=nt;un==="button"&&(Tt.href||Tt.to)&&(un=lt);const fn={};un==="button"?(fn.type=Mt===void 0?"button":Mt,fn.disabled=rt):(!Tt.href&&!Tt.to&&(fn.role="button"),rt&&(fn["aria-disabled"]=rt));const An=useForkRef(Gt,Ot),kn=useForkRef(s,An),Tn=_extends({},j,{centerRipple:Z,component:nt,disabled:rt,disableRipple:at,disableTouchRipple:ft,focusRipple:st,tabIndex:St,focusVisible:Kt}),Dn=useUtilityClasses$o(Tn);return jsxs(ButtonBaseRoot,_extends({as:un,className:clsx(Dn.root,_e),ownerState:Tn,onBlur:tn,onClick:ut,onContextMenu:Jt,onFocus:hn,onKeyDown:mn,onKeyUp:vn,onMouseDown:Dt,onMouseLeave:cn,onMouseUp:nn,onDragLeave:Qt,onTouchEnd:Vt,onTouchMove:qt,onTouchStart:sn,ref:kn,tabIndex:rt?-1:St,type:Mt},fn,Tt,{children:[et,Et?jsx(TouchRipple$1,_extends({ref:wt,center:Z},kt)):null]}))});var ButtonBase$1=ButtonBase;function getTypographyUtilityClass(o){return generateUtilityClass("MuiTypography",o)}generateUtilityClasses("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const _excluded$s=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],useUtilityClasses$n=o=>{const{align:i,gutterBottom:s,noWrap:j,paragraph:$,variant:Z,classes:et}=o,_e={root:["root",Z,o.align!=="inherit"&&`align${capitalize$1(i)}`,s&&"gutterBottom",j&&"noWrap",$&&"paragraph"]};return composeClasses(_e,getTypographyUtilityClass,et)},TypographyRoot=styled$1("span",{name:"MuiTypography",slot:"Root",overridesResolver:(o,i)=>{const{ownerState:s}=o;return[i.root,s.variant&&i[s.variant],s.align!=="inherit"&&i[`align${capitalize$1(s.align)}`],s.noWrap&&i.noWrap,s.gutterBottom&&i.gutterBottom,s.paragraph&&i.paragraph]}})(({theme:o,ownerState:i})=>_extends({margin:0},i.variant&&o.typography[i.variant],i.align!=="inherit"&&{textAlign:i.align},i.noWrap&&{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},i.gutterBottom&&{marginBottom:"0.35em"},i.paragraph&&{marginBottom:16})),defaultVariantMapping={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},colorTransformations={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},transformDeprecatedColors=o=>colorTransformations[o]||o,Typography=react.exports.forwardRef(function(i,s){const j=useThemeProps({props:i,name:"MuiTypography"}),$=transformDeprecatedColors(j.color),Z=extendSxProp(_extends({},j,{color:$})),{align:et="inherit",className:_e,component:nt,gutterBottom:rt=!1,noWrap:at=!1,paragraph:ft=!1,variant:st="body1",variantMapping:lt=defaultVariantMapping}=Z,it=_objectWithoutPropertiesLoose$1(Z,_excluded$s),ut=_extends({},Z,{align:et,color:$,className:_e,component:nt,gutterBottom:rt,noWrap:at,paragraph:ft,variant:st,variantMapping:lt}),pt=nt||(ft?"p":lt[st]||defaultVariantMapping[st])||"span",bt=useUtilityClasses$n(ut);return jsx(TypographyRoot,_extends({as:pt,ref:s,ownerState:ut,className:clsx(bt.root,_e)},it))});var Typography$1=Typography;function formControlState({props:o,states:i,muiFormControl:s}){return i.reduce((j,$)=>(j[$]=o[$],s&&typeof o[$]=="undefined"&&(j[$]=s[$]),j),{})}const FormControlContext=react.exports.createContext();var FormControlContext$1=FormControlContext;function useFormControl(){return react.exports.useContext(FormControlContext$1)}function hasValue(o){return o!=null&&!(Array.isArray(o)&&o.length===0)}function isFilled(o,i=!1){return o&&(hasValue(o.value)&&o.value!==""||i&&hasValue(o.defaultValue)&&o.defaultValue!=="")}function isAdornedStart(o){return o.startAdornment}function getInputBaseUtilityClass(o){return generateUtilityClass("MuiInputBase",o)}const inputBaseClasses=generateUtilityClasses("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]);var inputBaseClasses$1=inputBaseClasses;const _excluded$r=["aria-describedby","autoComplete","autoFocus","className","color","components","componentsProps","defaultValue","disabled","disableInjectingGlobalStyles","endAdornment","error","fullWidth","id","inputComponent","inputProps","inputRef","margin","maxRows","minRows","multiline","name","onBlur","onChange","onClick","onFocus","onKeyDown","onKeyUp","placeholder","readOnly","renderSuffix","rows","size","startAdornment","type","value"],rootOverridesResolver=(o,i)=>{const{ownerState:s}=o;return[i.root,s.formControl&&i.formControl,s.startAdornment&&i.adornedStart,s.endAdornment&&i.adornedEnd,s.error&&i.error,s.size==="small"&&i.sizeSmall,s.multiline&&i.multiline,s.color&&i[`color${capitalize$1(s.color)}`],s.fullWidth&&i.fullWidth,s.hiddenLabel&&i.hiddenLabel]},inputOverridesResolver=(o,i)=>{const{ownerState:s}=o;return[i.input,s.size==="small"&&i.inputSizeSmall,s.multiline&&i.inputMultiline,s.type==="search"&&i.inputTypeSearch,s.startAdornment&&i.inputAdornedStart,s.endAdornment&&i.inputAdornedEnd,s.hiddenLabel&&i.inputHiddenLabel]},useUtilityClasses$m=o=>{const{classes:i,color:s,disabled:j,error:$,endAdornment:Z,focused:et,formControl:_e,fullWidth:nt,hiddenLabel:rt,multiline:at,size:ft,startAdornment:st,type:lt}=o,it={root:["root",`color${capitalize$1(s)}`,j&&"disabled",$&&"error",nt&&"fullWidth",et&&"focused",_e&&"formControl",ft==="small"&&"sizeSmall",at&&"multiline",st&&"adornedStart",Z&&"adornedEnd",rt&&"hiddenLabel"],input:["input",j&&"disabled",lt==="search"&&"inputTypeSearch",at&&"inputMultiline",ft==="small"&&"inputSizeSmall",rt&&"inputHiddenLabel",st&&"inputAdornedStart",Z&&"inputAdornedEnd"]};return composeClasses(it,getInputBaseUtilityClass,i)},InputBaseRoot=styled$1("div",{name:"MuiInputBase",slot:"Root",overridesResolver:rootOverridesResolver})(({theme:o,ownerState:i})=>_extends({},o.typography.body1,{color:(o.vars||o).palette.text.primary,lineHeight:"1.4375em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center",[`&.${inputBaseClasses$1.disabled}`]:{color:(o.vars||o).palette.text.disabled,cursor:"default"}},i.multiline&&_extends({padding:"4px 0 5px"},i.size==="small"&&{paddingTop:1}),i.fullWidth&&{width:"100%"})),InputBaseComponent=styled$1("input",{name:"MuiInputBase",slot:"Input",overridesResolver:inputOverridesResolver})(({theme:o,ownerState:i})=>{const s=o.palette.mode==="light",j=_extends({color:"currentColor"},o.vars?{opacity:o.vars.opacity.placeholder}:{opacity:s?.42:.5},{transition:o.transitions.create("opacity",{duration:o.transitions.duration.shorter})}),$={opacity:"0 !important"},Z=o.vars?{opacity:o.vars.opacity.placeholder}:{opacity:s?.42:.5};return _extends({font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"4px 0 5px",border:0,boxSizing:"content-box",background:"none",height:"1.4375em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%",animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&::-webkit-input-placeholder":j,"&::-moz-placeholder":j,"&:-ms-input-placeholder":j,"&::-ms-input-placeholder":j,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${inputBaseClasses$1.formControl} &`]:{"&::-webkit-input-placeholder":$,"&::-moz-placeholder":$,"&:-ms-input-placeholder":$,"&::-ms-input-placeholder":$,"&:focus::-webkit-input-placeholder":Z,"&:focus::-moz-placeholder":Z,"&:focus:-ms-input-placeholder":Z,"&:focus::-ms-input-placeholder":Z},[`&.${inputBaseClasses$1.disabled}`]:{opacity:1,WebkitTextFillColor:(o.vars||o).palette.text.disabled},"&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}},i.size==="small"&&{paddingTop:1},i.multiline&&{height:"auto",resize:"none",padding:0,paddingTop:0},i.type==="search"&&{MozAppearance:"textfield"})}),inputGlobalStyles=jsx(GlobalStyles,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),InputBase=react.exports.forwardRef(function(i,s){const j=useThemeProps({props:i,name:"MuiInputBase"}),{"aria-describedby":$,autoComplete:Z,autoFocus:et,className:_e,components:nt={},componentsProps:rt={},defaultValue:at,disabled:ft,disableInjectingGlobalStyles:st,endAdornment:lt,fullWidth:it=!1,id:ut,inputComponent:pt="input",inputProps:bt={},inputRef:xt,maxRows:vt,minRows:mt,multiline:ct=!1,name:Rt,onBlur:Ft,onChange:Ut,onClick:yt,onFocus:ht,onKeyDown:Ct,onKeyUp:St,placeholder:kt,readOnly:Lt,renderSuffix:Mt,rows:Tt,startAdornment:Ot,type:At="text",value:wt}=j,gt=_objectWithoutPropertiesLoose$1(j,_excluded$r),Nt=bt.value!=null?bt.value:wt,{current:Bt}=react.exports.useRef(Nt!=null),Gt=react.exports.useRef(),Kt=react.exports.useCallback(kn=>{},[]),Zt=useForkRef(bt.ref,Kt),zt=useForkRef(xt,Zt),$t=useForkRef(Gt,zt),[Et,It]=react.exports.useState(!1),Dt=useFormControl(),Jt=formControlState({props:j,muiFormControl:Dt,states:["color","disabled","error","hiddenLabel","size","required","filled"]});Jt.focused=Dt?Dt.focused:Et,react.exports.useEffect(()=>{!Dt&&ft&&Et&&(It(!1),Ft&&Ft())},[Dt,ft,Et,Ft]);const Qt=Dt&&Dt.onFilled,nn=Dt&&Dt.onEmpty,cn=react.exports.useCallback(kn=>{isFilled(kn)?Qt&&Qt():nn&&nn()},[Qt,nn]);useEnhancedEffect$1(()=>{Bt&&cn({value:Nt})},[Nt,cn,Bt]);const sn=kn=>{if(Jt.disabled){kn.stopPropagation();return}ht&&ht(kn),bt.onFocus&&bt.onFocus(kn),Dt&&Dt.onFocus?Dt.onFocus(kn):It(!0)},Vt=kn=>{Ft&&Ft(kn),bt.onBlur&&bt.onBlur(kn),Dt&&Dt.onBlur?Dt.onBlur(kn):It(!1)},qt=(kn,...Tn)=>{if(!Bt){const Dn=kn.target||Gt.current;if(Dn==null)throw new Error(formatMuiErrorMessage(1));cn({value:Dn.value})}bt.onChange&&bt.onChange(kn,...Tn),Ut&&Ut(kn,...Tn)};react.exports.useEffect(()=>{cn(Gt.current)},[]);const tn=kn=>{Gt.current&&kn.currentTarget===kn.target&&Gt.current.focus(),yt&&yt(kn)};let hn=pt,an=bt;ct&&hn==="input"&&(Tt?an=_extends({type:void 0,minRows:Tt,maxRows:Tt},an):an=_extends({type:void 0,maxRows:vt,minRows:mt},an),hn=TextareaAutosize$1);const _n=kn=>{cn(kn.animationName==="mui-auto-fill-cancel"?Gt.current:{value:"x"})};react.exports.useEffect(()=>{Dt&&Dt.setAdornedStart(Boolean(Ot))},[Dt,Ot]);const mn=_extends({},j,{color:Jt.color||"primary",disabled:Jt.disabled,endAdornment:lt,error:Jt.error,focused:Jt.focused,formControl:Dt,fullWidth:it,hiddenLabel:Jt.hiddenLabel,multiline:ct,size:Jt.size,startAdornment:Ot,type:At}),vn=useUtilityClasses$m(mn),un=nt.Root||InputBaseRoot,fn=rt.root||{},An=nt.Input||InputBaseComponent;return an=_extends({},an,rt.input),jsxs(react.exports.Fragment,{children:[!st&&inputGlobalStyles,jsxs(un,_extends({},fn,!isHostComponent(un)&&{ownerState:_extends({},mn,fn.ownerState)},{ref:s,onClick:tn},gt,{className:clsx(vn.root,fn.className,_e),children:[Ot,jsx(FormControlContext$1.Provider,{value:null,children:jsx(An,_extends({ownerState:mn,"aria-invalid":Jt.error,"aria-describedby":$,autoComplete:Z,autoFocus:et,defaultValue:at,disabled:Jt.disabled,id:ut,onAnimationStart:_n,name:Rt,placeholder:kt,readOnly:Lt,required:Jt.required,rows:Tt,value:Nt,onKeyDown:Ct,onKeyUp:St,type:At},an,!isHostComponent(An)&&{as:hn,ownerState:_extends({},mn,an.ownerState)},{ref:$t,className:clsx(vn.input,an.className),onBlur:Vt,onChange:qt,onFocus:sn}))}),lt,Mt?Mt(_extends({},Jt,{startAdornment:Ot})):null]}))]})});var InputBase$1=InputBase;function getInputUtilityClass(o){return generateUtilityClass("MuiInput",o)}const inputClasses=_extends({},inputBaseClasses$1,generateUtilityClasses("MuiInput",["root","underline","input"]));var inputClasses$1=inputClasses;function getOutlinedInputUtilityClass(o){return generateUtilityClass("MuiOutlinedInput",o)}const outlinedInputClasses=_extends({},inputBaseClasses$1,generateUtilityClasses("MuiOutlinedInput",["root","notchedOutline","input"]));var outlinedInputClasses$1=outlinedInputClasses;function getFilledInputUtilityClass(o){return generateUtilityClass("MuiFilledInput",o)}const filledInputClasses=_extends({},inputBaseClasses$1,generateUtilityClasses("MuiFilledInput",["root","underline","input"]));var filledInputClasses$1=filledInputClasses,ArrowDropDownIcon=createSvgIcon(jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown");const _excluded$q=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],styles$1={entering:{opacity:1},entered:{opacity:1}},Fade=react.exports.forwardRef(function(i,s){const j=useTheme(),$={enter:j.transitions.duration.enteringScreen,exit:j.transitions.duration.leavingScreen},{addEndListener:Z,appear:et=!0,children:_e,easing:nt,in:rt,onEnter:at,onEntered:ft,onEntering:st,onExit:lt,onExited:it,onExiting:ut,style:pt,timeout:bt=$,TransitionComponent:xt=Transition$1}=i,vt=_objectWithoutPropertiesLoose$1(i,_excluded$q),mt=react.exports.useRef(null),ct=useForkRef(_e.ref,s),Rt=useForkRef(mt,ct),Ft=Mt=>Tt=>{if(Mt){const Ot=mt.current;Tt===void 0?Mt(Ot):Mt(Ot,Tt)}},Ut=Ft(st),yt=Ft((Mt,Tt)=>{reflow(Mt);const Ot=getTransitionProps({style:pt,timeout:bt,easing:nt},{mode:"enter"});Mt.style.webkitTransition=j.transitions.create("opacity",Ot),Mt.style.transition=j.transitions.create("opacity",Ot),at&&at(Mt,Tt)}),ht=Ft(ft),Ct=Ft(ut),St=Ft(Mt=>{const Tt=getTransitionProps({style:pt,timeout:bt,easing:nt},{mode:"exit"});Mt.style.webkitTransition=j.transitions.create("opacity",Tt),Mt.style.transition=j.transitions.create("opacity",Tt),lt&<(Mt)}),kt=Ft(it);return jsx(xt,_extends({appear:et,in:rt,nodeRef:mt,onEnter:yt,onEntered:ht,onEntering:Ut,onExit:St,onExited:kt,onExiting:Ct,addEndListener:Mt=>{Z&&Z(mt.current,Mt)},timeout:bt},vt,{children:(Mt,Tt)=>react.exports.cloneElement(_e,_extends({style:_extends({opacity:0,visibility:Mt==="exited"&&!rt?"hidden":void 0},styles$1[Mt],pt,_e.props.style),ref:Rt},Tt))}))});var Fade$1=Fade;function getBackdropUtilityClass(o){return generateUtilityClass("MuiBackdrop",o)}generateUtilityClasses("MuiBackdrop",["root","invisible"]);const _excluded$p=["children","component","components","componentsProps","className","invisible","open","transitionDuration","TransitionComponent"],useUtilityClasses$l=o=>{const{classes:i,invisible:s}=o;return composeClasses({root:["root",s&&"invisible"]},getBackdropUtilityClass,i)},BackdropRoot=styled$1("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(o,i)=>{const{ownerState:s}=o;return[i.root,s.invisible&&i.invisible]}})(({ownerState:o})=>_extends({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent"},o.invisible&&{backgroundColor:"transparent"})),Backdrop=react.exports.forwardRef(function(i,s){var j,$;const Z=useThemeProps({props:i,name:"MuiBackdrop"}),{children:et,component:_e="div",components:nt={},componentsProps:rt={},className:at,invisible:ft=!1,open:st,transitionDuration:lt,TransitionComponent:it=Fade$1}=Z,ut=_objectWithoutPropertiesLoose$1(Z,_excluded$p),pt=_extends({},Z,{component:_e,invisible:ft}),bt=useUtilityClasses$l(pt);return jsx(it,_extends({in:st,timeout:lt},ut,{children:jsx(BackdropRoot,{"aria-hidden":!0,as:(j=nt.Root)!=null?j:_e,className:clsx(bt.root,at),ownerState:_extends({},pt,($=rt.root)==null?void 0:$.ownerState),classes:bt,ref:s,children:et})}))});var Backdrop$1=Backdrop;const defaultTheme$1=createTheme(),Box=createBox({defaultTheme:defaultTheme$1,defaultClassName:"MuiBox-root",generateClassName:ClassNameGenerator$1.generate});var Box$1=Box;function getButtonUtilityClass(o){return generateUtilityClass("MuiButton",o)}const buttonClasses=generateUtilityClasses("MuiButton",["root","text","textInherit","textPrimary","textSecondary","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","contained","containedInherit","containedPrimary","containedSecondary","disableElevation","focusVisible","disabled","colorInherit","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","iconSizeSmall","iconSizeMedium","iconSizeLarge"]);var buttonClasses$1=buttonClasses;const ButtonGroupContext=react.exports.createContext({});var ButtonGroupContext$1=ButtonGroupContext;const _excluded$o=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],useUtilityClasses$k=o=>{const{color:i,disableElevation:s,fullWidth:j,size:$,variant:Z,classes:et}=o,_e={root:["root",Z,`${Z}${capitalize$1(i)}`,`size${capitalize$1($)}`,`${Z}Size${capitalize$1($)}`,i==="inherit"&&"colorInherit",s&&"disableElevation",j&&"fullWidth"],label:["label"],startIcon:["startIcon",`iconSize${capitalize$1($)}`],endIcon:["endIcon",`iconSize${capitalize$1($)}`]},nt=composeClasses(_e,getButtonUtilityClass,et);return _extends({},et,nt)},commonIconStyles=o=>_extends({},o.size==="small"&&{"& > *:nth-of-type(1)":{fontSize:18}},o.size==="medium"&&{"& > *:nth-of-type(1)":{fontSize:20}},o.size==="large"&&{"& > *:nth-of-type(1)":{fontSize:22}}),ButtonRoot=styled$1(ButtonBase$1,{shouldForwardProp:o=>rootShouldForwardProp(o)||o==="classes",name:"MuiButton",slot:"Root",overridesResolver:(o,i)=>{const{ownerState:s}=o;return[i.root,i[s.variant],i[`${s.variant}${capitalize$1(s.color)}`],i[`size${capitalize$1(s.size)}`],i[`${s.variant}Size${capitalize$1(s.size)}`],s.color==="inherit"&&i.colorInherit,s.disableElevation&&i.disableElevation,s.fullWidth&&i.fullWidth]}})(({theme:o,ownerState:i})=>{var s,j;return _extends({},o.typography.button,{minWidth:64,padding:"6px 16px",borderRadius:(o.vars||o).shape.borderRadius,transition:o.transitions.create(["background-color","box-shadow","border-color","color"],{duration:o.transitions.duration.short}),"&:hover":_extends({textDecoration:"none",backgroundColor:o.vars?`rgba(${o.vars.palette.text.primaryChannel} / ${o.vars.palette.action.hoverOpacity})`:alpha(o.palette.text.primary,o.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},i.variant==="text"&&i.color!=="inherit"&&{backgroundColor:o.vars?`rgba(${o.vars.palette[i.color].mainChannel} / ${o.vars.palette.action.hoverOpacity})`:alpha(o.palette[i.color].main,o.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},i.variant==="outlined"&&i.color!=="inherit"&&{border:`1px solid ${(o.vars||o).palette[i.color].main}`,backgroundColor:o.vars?`rgba(${o.vars.palette[i.color].mainChannel} / ${o.vars.palette.action.hoverOpacity})`:alpha(o.palette[i.color].main,o.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},i.variant==="contained"&&{backgroundColor:(o.vars||o).palette.grey.A100,boxShadow:(o.vars||o).shadows[4],"@media (hover: none)":{boxShadow:(o.vars||o).shadows[2],backgroundColor:(o.vars||o).palette.grey[300]}},i.variant==="contained"&&i.color!=="inherit"&&{backgroundColor:(o.vars||o).palette[i.color].dark,"@media (hover: none)":{backgroundColor:(o.vars||o).palette[i.color].main}}),"&:active":_extends({},i.variant==="contained"&&{boxShadow:(o.vars||o).shadows[8]}),[`&.${buttonClasses$1.focusVisible}`]:_extends({},i.variant==="contained"&&{boxShadow:(o.vars||o).shadows[6]}),[`&.${buttonClasses$1.disabled}`]:_extends({color:(o.vars||o).palette.action.disabled},i.variant==="outlined"&&{border:`1px solid ${(o.vars||o).palette.action.disabledBackground}`},i.variant==="outlined"&&i.color==="secondary"&&{border:`1px solid ${(o.vars||o).palette.action.disabled}`},i.variant==="contained"&&{color:(o.vars||o).palette.action.disabled,boxShadow:(o.vars||o).shadows[0],backgroundColor:(o.vars||o).palette.action.disabledBackground})},i.variant==="text"&&{padding:"6px 8px"},i.variant==="text"&&i.color!=="inherit"&&{color:(o.vars||o).palette[i.color].main},i.variant==="outlined"&&{padding:"5px 15px",border:"1px solid currentColor"},i.variant==="outlined"&&i.color!=="inherit"&&{color:(o.vars||o).palette[i.color].main,border:o.vars?`1px solid rgba(${o.vars.palette[i.color].mainChannel} / 0.5)`:`1px solid ${alpha(o.palette[i.color].main,.5)}`},i.variant==="contained"&&{color:o.vars?o.vars.palette.text.primary:(s=(j=o.palette).getContrastText)==null?void 0:s.call(j,o.palette.grey[300]),backgroundColor:(o.vars||o).palette.grey[300],boxShadow:(o.vars||o).shadows[2]},i.variant==="contained"&&i.color!=="inherit"&&{color:(o.vars||o).palette[i.color].contrastText,backgroundColor:(o.vars||o).palette[i.color].main},i.color==="inherit"&&{color:"inherit",borderColor:"currentColor"},i.size==="small"&&i.variant==="text"&&{padding:"4px 5px",fontSize:o.typography.pxToRem(13)},i.size==="large"&&i.variant==="text"&&{padding:"8px 11px",fontSize:o.typography.pxToRem(15)},i.size==="small"&&i.variant==="outlined"&&{padding:"3px 9px",fontSize:o.typography.pxToRem(13)},i.size==="large"&&i.variant==="outlined"&&{padding:"7px 21px",fontSize:o.typography.pxToRem(15)},i.size==="small"&&i.variant==="contained"&&{padding:"4px 10px",fontSize:o.typography.pxToRem(13)},i.size==="large"&&i.variant==="contained"&&{padding:"8px 22px",fontSize:o.typography.pxToRem(15)},i.fullWidth&&{width:"100%"})},({ownerState:o})=>o.disableElevation&&{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${buttonClasses$1.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${buttonClasses$1.disabled}`]:{boxShadow:"none"}}),ButtonStartIcon=styled$1("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(o,i)=>{const{ownerState:s}=o;return[i.startIcon,i[`iconSize${capitalize$1(s.size)}`]]}})(({ownerState:o})=>_extends({display:"inherit",marginRight:8,marginLeft:-4},o.size==="small"&&{marginLeft:-2},commonIconStyles(o))),ButtonEndIcon=styled$1("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(o,i)=>{const{ownerState:s}=o;return[i.endIcon,i[`iconSize${capitalize$1(s.size)}`]]}})(({ownerState:o})=>_extends({display:"inherit",marginRight:-4,marginLeft:8},o.size==="small"&&{marginRight:-2},commonIconStyles(o))),Button=react.exports.forwardRef(function(i,s){const j=react.exports.useContext(ButtonGroupContext$1),$=resolveProps(j,i),Z=useThemeProps({props:$,name:"MuiButton"}),{children:et,color:_e="primary",component:nt="button",className:rt,disabled:at=!1,disableElevation:ft=!1,disableFocusRipple:st=!1,endIcon:lt,focusVisibleClassName:it,fullWidth:ut=!1,size:pt="medium",startIcon:bt,type:xt,variant:vt="text"}=Z,mt=_objectWithoutPropertiesLoose$1(Z,_excluded$o),ct=_extends({},Z,{color:_e,component:nt,disabled:at,disableElevation:ft,disableFocusRipple:st,fullWidth:ut,size:pt,type:xt,variant:vt}),Rt=useUtilityClasses$k(ct),Ft=bt&&jsx(ButtonStartIcon,{className:Rt.startIcon,ownerState:ct,children:bt}),Ut=lt&&jsx(ButtonEndIcon,{className:Rt.endIcon,ownerState:ct,children:lt});return jsxs(ButtonRoot,_extends({ownerState:ct,className:clsx(rt,j.className),component:nt,disabled:at,focusRipple:!st,focusVisibleClassName:clsx(Rt.focusVisible,it),ref:s,type:xt},mt,{classes:Rt,children:[Ft,et,Ut]}))});var Button$1=Button;function getSwitchBaseUtilityClass(o){return generateUtilityClass("PrivateSwitchBase",o)}generateUtilityClasses("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const _excluded$n=["autoFocus","checked","checkedIcon","className","defaultChecked","disabled","disableFocusRipple","edge","icon","id","inputProps","inputRef","name","onBlur","onChange","onFocus","readOnly","required","tabIndex","type","value"],useUtilityClasses$j=o=>{const{classes:i,checked:s,disabled:j,edge:$}=o,Z={root:["root",s&&"checked",j&&"disabled",$&&`edge${capitalize$1($)}`],input:["input"]};return composeClasses(Z,getSwitchBaseUtilityClass,i)},SwitchBaseRoot=styled$1(ButtonBase$1)(({ownerState:o})=>_extends({padding:9,borderRadius:"50%"},o.edge==="start"&&{marginLeft:o.size==="small"?-3:-12},o.edge==="end"&&{marginRight:o.size==="small"?-3:-12})),SwitchBaseInput=styled$1("input")({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),SwitchBase=react.exports.forwardRef(function(i,s){const{autoFocus:j,checked:$,checkedIcon:Z,className:et,defaultChecked:_e,disabled:nt,disableFocusRipple:rt=!1,edge:at=!1,icon:ft,id:st,inputProps:lt,inputRef:it,name:ut,onBlur:pt,onChange:bt,onFocus:xt,readOnly:vt,required:mt,tabIndex:ct,type:Rt,value:Ft}=i,Ut=_objectWithoutPropertiesLoose$1(i,_excluded$n),[yt,ht]=useControlled({controlled:$,default:Boolean(_e),name:"SwitchBase",state:"checked"}),Ct=useFormControl(),St=wt=>{xt&&xt(wt),Ct&&Ct.onFocus&&Ct.onFocus(wt)},kt=wt=>{pt&&pt(wt),Ct&&Ct.onBlur&&Ct.onBlur(wt)},Lt=wt=>{if(wt.nativeEvent.defaultPrevented)return;const gt=wt.target.checked;ht(gt),bt&&bt(wt,gt)};let Mt=nt;Ct&&typeof Mt=="undefined"&&(Mt=Ct.disabled);const Tt=Rt==="checkbox"||Rt==="radio",Ot=_extends({},i,{checked:yt,disabled:Mt,disableFocusRipple:rt,edge:at}),At=useUtilityClasses$j(Ot);return jsxs(SwitchBaseRoot,_extends({component:"span",className:clsx(At.root,et),centerRipple:!0,focusRipple:!rt,disabled:Mt,tabIndex:null,role:void 0,onFocus:St,onBlur:kt,ownerState:Ot,ref:s},Ut,{children:[jsx(SwitchBaseInput,_extends({autoFocus:j,checked:$,defaultChecked:_e,className:At.input,disabled:Mt,id:Tt&&st,name:ut,onChange:Lt,readOnly:vt,ref:it,required:mt,ownerState:Ot,tabIndex:ct,type:Rt},Rt==="checkbox"&&Ft===void 0?{}:{value:Ft},lt)),yt?Z:ft]}))});var SwitchBase$1=SwitchBase;const _excluded$m=["BackdropComponent","closeAfterTransition","children","components","componentsProps","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted"],extendUtilityClasses=o=>o.classes,ModalRoot=styled$1("div",{name:"MuiModal",slot:"Root",overridesResolver:(o,i)=>{const{ownerState:s}=o;return[i.root,!s.open&&s.exited&&i.hidden]}})(({theme:o,ownerState:i})=>_extends({position:"fixed",zIndex:(o.vars||o).zIndex.modal,right:0,bottom:0,top:0,left:0},!i.open&&i.exited&&{visibility:"hidden"})),ModalBackdrop=styled$1(Backdrop$1,{name:"MuiModal",slot:"Backdrop",overridesResolver:(o,i)=>i.backdrop})({zIndex:-1}),Modal=react.exports.forwardRef(function(i,s){var j;const $=useThemeProps({name:"MuiModal",props:i}),{BackdropComponent:Z=ModalBackdrop,closeAfterTransition:et=!1,children:_e,components:nt={},componentsProps:rt={},disableAutoFocus:at=!1,disableEnforceFocus:ft=!1,disableEscapeKeyDown:st=!1,disablePortal:lt=!1,disableRestoreFocus:it=!1,disableScrollLock:ut=!1,hideBackdrop:pt=!1,keepMounted:bt=!1}=$,xt=_objectWithoutPropertiesLoose$1($,_excluded$m),[vt,mt]=react.exports.useState(!0),ct={closeAfterTransition:et,disableAutoFocus:at,disableEnforceFocus:ft,disableEscapeKeyDown:st,disablePortal:lt,disableRestoreFocus:it,disableScrollLock:ut,hideBackdrop:pt,keepMounted:bt},Rt=_extends({},$,ct,{exited:vt}),Ft=extendUtilityClasses(Rt);return jsx(ModalUnstyled$1,_extends({components:_extends({Root:ModalRoot},nt),componentsProps:{root:_extends({},rt.root,(!nt.Root||!isHostComponent(nt.Root))&&{ownerState:_extends({},(j=rt.root)==null?void 0:j.ownerState)})},BackdropComponent:Z,onTransitionEnter:()=>mt(!1),onTransitionExited:()=>mt(!0),ref:s},xt,{classes:Ft},ct,{children:_e}))});var Modal$1=Modal;const dividerClasses=generateUtilityClasses("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]);var dividerClasses$1=dividerClasses;const _excluded$l=["disableUnderline","components","componentsProps","fullWidth","hiddenLabel","inputComponent","multiline","type"],useUtilityClasses$i=o=>{const{classes:i,disableUnderline:s}=o,$=composeClasses({root:["root",!s&&"underline"],input:["input"]},getFilledInputUtilityClass,i);return _extends({},i,$)},FilledInputRoot=styled$1(InputBaseRoot,{shouldForwardProp:o=>rootShouldForwardProp(o)||o==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(o,i)=>{const{ownerState:s}=o;return[...rootOverridesResolver(o,i),!s.disableUnderline&&i.underline]}})(({theme:o,ownerState:i})=>{var s;const j=o.palette.mode==="light",$=j?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",Z=j?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)";return _extends({position:"relative",backgroundColor:Z,borderTopLeftRadius:o.shape.borderRadius,borderTopRightRadius:o.shape.borderRadius,transition:o.transitions.create("background-color",{duration:o.transitions.duration.shorter,easing:o.transitions.easing.easeOut}),"&:hover":{backgroundColor:j?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)","@media (hover: none)":{backgroundColor:Z}},[`&.${filledInputClasses$1.focused}`]:{backgroundColor:Z},[`&.${filledInputClasses$1.disabled}`]:{backgroundColor:j?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)"}},!i.disableUnderline&&{"&:after":{borderBottom:`2px solid ${(s=o.palette[i.color||"primary"])==null?void 0:s.main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:o.transitions.create("transform",{duration:o.transitions.duration.shorter,easing:o.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${filledInputClasses$1.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${filledInputClasses$1.error}:after`]:{borderBottomColor:o.palette.error.main,transform:"scaleX(1)"},"&:before":{borderBottom:`1px solid ${$}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:o.transitions.create("border-bottom-color",{duration:o.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${filledInputClasses$1.disabled}):before`]:{borderBottom:`1px solid ${o.palette.text.primary}`},[`&.${filledInputClasses$1.disabled}:before`]:{borderBottomStyle:"dotted"}},i.startAdornment&&{paddingLeft:12},i.endAdornment&&{paddingRight:12},i.multiline&&_extends({padding:"25px 12px 8px"},i.size==="small"&&{paddingTop:21,paddingBottom:4},i.hiddenLabel&&{paddingTop:16,paddingBottom:17}))}),FilledInputInput=styled$1(InputBaseComponent,{name:"MuiFilledInput",slot:"Input",overridesResolver:inputOverridesResolver})(({theme:o,ownerState:i})=>_extends({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12,"&:-webkit-autofill":{WebkitBoxShadow:o.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:o.palette.mode==="light"?null:"#fff",caretColor:o.palette.mode==="light"?null:"#fff",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},i.size==="small"&&{paddingTop:21,paddingBottom:4},i.hiddenLabel&&{paddingTop:16,paddingBottom:17},i.multiline&&{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0},i.startAdornment&&{paddingLeft:0},i.endAdornment&&{paddingRight:0},i.hiddenLabel&&i.size==="small"&&{paddingTop:8,paddingBottom:9})),FilledInput=react.exports.forwardRef(function(i,s){const j=useThemeProps({props:i,name:"MuiFilledInput"}),{components:$={},componentsProps:Z,fullWidth:et=!1,inputComponent:_e="input",multiline:nt=!1,type:rt="text"}=j,at=_objectWithoutPropertiesLoose$1(j,_excluded$l),ft=_extends({},j,{fullWidth:et,inputComponent:_e,multiline:nt,type:rt}),st=useUtilityClasses$i(j),lt={root:{ownerState:ft},input:{ownerState:ft}},it=Z?deepmerge(Z,lt):lt;return jsx(InputBase$1,_extends({components:_extends({Root:FilledInputRoot,Input:FilledInputInput},$),componentsProps:it,fullWidth:et,inputComponent:_e,multiline:nt,ref:s,type:rt},at,{classes:st}))});FilledInput.muiName="Input";var FilledInput$1=FilledInput;function getFormControlUtilityClasses(o){return generateUtilityClass("MuiFormControl",o)}generateUtilityClasses("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const _excluded$k=["children","className","color","component","disabled","error","focused","fullWidth","hiddenLabel","margin","required","size","variant"],useUtilityClasses$h=o=>{const{classes:i,margin:s,fullWidth:j}=o,$={root:["root",s!=="none"&&`margin${capitalize$1(s)}`,j&&"fullWidth"]};return composeClasses($,getFormControlUtilityClasses,i)},FormControlRoot=styled$1("div",{name:"MuiFormControl",slot:"Root",overridesResolver:({ownerState:o},i)=>_extends({},i.root,i[`margin${capitalize$1(o.margin)}`],o.fullWidth&&i.fullWidth)})(({ownerState:o})=>_extends({display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top"},o.margin==="normal"&&{marginTop:16,marginBottom:8},o.margin==="dense"&&{marginTop:8,marginBottom:4},o.fullWidth&&{width:"100%"})),FormControl=react.exports.forwardRef(function(i,s){const j=useThemeProps({props:i,name:"MuiFormControl"}),{children:$,className:Z,color:et="primary",component:_e="div",disabled:nt=!1,error:rt=!1,focused:at,fullWidth:ft=!1,hiddenLabel:st=!1,margin:lt="none",required:it=!1,size:ut="medium",variant:pt="outlined"}=j,bt=_objectWithoutPropertiesLoose$1(j,_excluded$k),xt=_extends({},j,{color:et,component:_e,disabled:nt,error:rt,fullWidth:ft,hiddenLabel:st,margin:lt,required:it,size:ut,variant:pt}),vt=useUtilityClasses$h(xt),[mt,ct]=react.exports.useState(()=>{let Mt=!1;return $&&react.exports.Children.forEach($,Tt=>{if(!isMuiElement(Tt,["Input","Select"]))return;const Ot=isMuiElement(Tt,["Select"])?Tt.props.input:Tt;Ot&&isAdornedStart(Ot.props)&&(Mt=!0)}),Mt}),[Rt,Ft]=react.exports.useState(()=>{let Mt=!1;return $&&react.exports.Children.forEach($,Tt=>{!isMuiElement(Tt,["Input","Select"])||isFilled(Tt.props,!0)&&(Mt=!0)}),Mt}),[Ut,yt]=react.exports.useState(!1);nt&&Ut&&yt(!1);const ht=at!==void 0&&!nt?at:Ut;let Ct;const St=react.exports.useCallback(()=>{Ft(!0)},[]),kt=react.exports.useCallback(()=>{Ft(!1)},[]),Lt={adornedStart:mt,setAdornedStart:ct,color:et,disabled:nt,error:rt,filled:Rt,focused:ht,fullWidth:ft,hiddenLabel:st,size:ut,onBlur:()=>{yt(!1)},onEmpty:kt,onFilled:St,onFocus:()=>{yt(!0)},registerEffect:Ct,required:it,variant:pt};return jsx(FormControlContext$1.Provider,{value:Lt,children:jsx(FormControlRoot,_extends({as:_e,ownerState:xt,className:clsx(vt.root,Z),ref:s},bt,{children:$}))})});var FormControl$1=FormControl;function getFormHelperTextUtilityClasses(o){return generateUtilityClass("MuiFormHelperText",o)}const formHelperTextClasses=generateUtilityClasses("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]);var formHelperTextClasses$1=formHelperTextClasses,_span$2;const _excluded$j=["children","className","component","disabled","error","filled","focused","margin","required","variant"],useUtilityClasses$g=o=>{const{classes:i,contained:s,size:j,disabled:$,error:Z,filled:et,focused:_e,required:nt}=o,rt={root:["root",$&&"disabled",Z&&"error",j&&`size${capitalize$1(j)}`,s&&"contained",_e&&"focused",et&&"filled",nt&&"required"]};return composeClasses(rt,getFormHelperTextUtilityClasses,i)},FormHelperTextRoot=styled$1("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(o,i)=>{const{ownerState:s}=o;return[i.root,s.size&&i[`size${capitalize$1(s.size)}`],s.contained&&i.contained,s.filled&&i.filled]}})(({theme:o,ownerState:i})=>_extends({color:(o.vars||o).palette.text.secondary},o.typography.caption,{textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${formHelperTextClasses$1.disabled}`]:{color:(o.vars||o).palette.text.disabled},[`&.${formHelperTextClasses$1.error}`]:{color:(o.vars||o).palette.error.main}},i.size==="small"&&{marginTop:4},i.contained&&{marginLeft:14,marginRight:14})),FormHelperText=react.exports.forwardRef(function(i,s){const j=useThemeProps({props:i,name:"MuiFormHelperText"}),{children:$,className:Z,component:et="p"}=j,_e=_objectWithoutPropertiesLoose$1(j,_excluded$j),nt=useFormControl(),rt=formControlState({props:j,muiFormControl:nt,states:["variant","size","disabled","error","filled","focused","required"]}),at=_extends({},j,{component:et,contained:rt.variant==="filled"||rt.variant==="outlined",variant:rt.variant,size:rt.size,disabled:rt.disabled,error:rt.error,filled:rt.filled,focused:rt.focused,required:rt.required}),ft=useUtilityClasses$g(at);return jsx(FormHelperTextRoot,_extends({as:et,ownerState:at,className:clsx(ft.root,Z),ref:s},_e,{children:$===" "?_span$2||(_span$2=jsx("span",{className:"notranslate",children:"\u200B"})):$}))});var FormHelperText$1=FormHelperText;function getFormLabelUtilityClasses(o){return generateUtilityClass("MuiFormLabel",o)}const formLabelClasses=generateUtilityClasses("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]);var formLabelClasses$1=formLabelClasses;const _excluded$i=["children","className","color","component","disabled","error","filled","focused","required"],useUtilityClasses$f=o=>{const{classes:i,color:s,focused:j,disabled:$,error:Z,filled:et,required:_e}=o,nt={root:["root",`color${capitalize$1(s)}`,$&&"disabled",Z&&"error",et&&"filled",j&&"focused",_e&&"required"],asterisk:["asterisk",Z&&"error"]};return composeClasses(nt,getFormLabelUtilityClasses,i)},FormLabelRoot=styled$1("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:({ownerState:o},i)=>_extends({},i.root,o.color==="secondary"&&i.colorSecondary,o.filled&&i.filled)})(({theme:o,ownerState:i})=>_extends({color:(o.vars||o).palette.text.secondary},o.typography.body1,{lineHeight:"1.4375em",padding:0,position:"relative",[`&.${formLabelClasses$1.focused}`]:{color:(o.vars||o).palette[i.color].main},[`&.${formLabelClasses$1.disabled}`]:{color:(o.vars||o).palette.text.disabled},[`&.${formLabelClasses$1.error}`]:{color:(o.vars||o).palette.error.main}})),AsteriskComponent=styled$1("span",{name:"MuiFormLabel",slot:"Asterisk",overridesResolver:(o,i)=>i.asterisk})(({theme:o})=>({[`&.${formLabelClasses$1.error}`]:{color:(o.vars||o).palette.error.main}})),FormLabel=react.exports.forwardRef(function(i,s){const j=useThemeProps({props:i,name:"MuiFormLabel"}),{children:$,className:Z,component:et="label"}=j,_e=_objectWithoutPropertiesLoose$1(j,_excluded$i),nt=useFormControl(),rt=formControlState({props:j,muiFormControl:nt,states:["color","required","focused","disabled","error","filled"]}),at=_extends({},j,{color:rt.color||"primary",component:et,disabled:rt.disabled,error:rt.error,filled:rt.filled,focused:rt.focused,required:rt.required}),ft=useUtilityClasses$f(at);return jsxs(FormLabelRoot,_extends({as:et,ownerState:at,className:clsx(ft.root,Z),ref:s},_e,{children:[$,rt.required&&jsxs(AsteriskComponent,{ownerState:at,"aria-hidden":!0,className:ft.asterisk,children:["\u2009","*"]})]}))});var FormLabel$1=FormLabel;const _excluded$h=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function getScale(o){return`scale(${o}, ${o**2})`}const styles={entering:{opacity:1,transform:getScale(1)},entered:{opacity:1,transform:"none"}},isWebKit154=typeof navigator!="undefined"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)[4-9]/i.test(navigator.userAgent),Grow=react.exports.forwardRef(function(i,s){const{addEndListener:j,appear:$=!0,children:Z,easing:et,in:_e,onEnter:nt,onEntered:rt,onEntering:at,onExit:ft,onExited:st,onExiting:lt,style:it,timeout:ut="auto",TransitionComponent:pt=Transition$1}=i,bt=_objectWithoutPropertiesLoose$1(i,_excluded$h),xt=react.exports.useRef(),vt=react.exports.useRef(),mt=useTheme(),ct=react.exports.useRef(null),Rt=useForkRef(Z.ref,s),Ft=useForkRef(ct,Rt),Ut=Tt=>Ot=>{if(Tt){const At=ct.current;Ot===void 0?Tt(At):Tt(At,Ot)}},yt=Ut(at),ht=Ut((Tt,Ot)=>{reflow(Tt);const{duration:At,delay:wt,easing:gt}=getTransitionProps({style:it,timeout:ut,easing:et},{mode:"enter"});let Nt;ut==="auto"?(Nt=mt.transitions.getAutoHeightDuration(Tt.clientHeight),vt.current=Nt):Nt=At,Tt.style.transition=[mt.transitions.create("opacity",{duration:Nt,delay:wt}),mt.transitions.create("transform",{duration:isWebKit154?Nt:Nt*.666,delay:wt,easing:gt})].join(","),nt&&nt(Tt,Ot)}),Ct=Ut(rt),St=Ut(lt),kt=Ut(Tt=>{const{duration:Ot,delay:At,easing:wt}=getTransitionProps({style:it,timeout:ut,easing:et},{mode:"exit"});let gt;ut==="auto"?(gt=mt.transitions.getAutoHeightDuration(Tt.clientHeight),vt.current=gt):gt=Ot,Tt.style.transition=[mt.transitions.create("opacity",{duration:gt,delay:At}),mt.transitions.create("transform",{duration:isWebKit154?gt:gt*.666,delay:isWebKit154?At:At||gt*.333,easing:wt})].join(","),Tt.style.opacity=0,Tt.style.transform=getScale(.75),ft&&ft(Tt)}),Lt=Ut(st),Mt=Tt=>{ut==="auto"&&(xt.current=setTimeout(Tt,vt.current||0)),j&&j(ct.current,Tt)};return react.exports.useEffect(()=>()=>{clearTimeout(xt.current)},[]),jsx(pt,_extends({appear:$,in:_e,nodeRef:ct,onEnter:ht,onEntered:Ct,onEntering:yt,onExit:kt,onExited:Lt,onExiting:St,addEndListener:Mt,timeout:ut==="auto"?null:ut},bt,{children:(Tt,Ot)=>react.exports.cloneElement(Z,_extends({style:_extends({opacity:0,transform:getScale(.75),visibility:Tt==="exited"&&!_e?"hidden":void 0},styles[Tt],it,Z.props.style),ref:Ft},Ot))}))});Grow.muiSupportAuto=!0;var Grow$1=Grow;const _excluded$g=["disableUnderline","components","componentsProps","fullWidth","inputComponent","multiline","type"],useUtilityClasses$e=o=>{const{classes:i,disableUnderline:s}=o,$=composeClasses({root:["root",!s&&"underline"],input:["input"]},getInputUtilityClass,i);return _extends({},i,$)},InputRoot=styled$1(InputBaseRoot,{shouldForwardProp:o=>rootShouldForwardProp(o)||o==="classes",name:"MuiInput",slot:"Root",overridesResolver:(o,i)=>{const{ownerState:s}=o;return[...rootOverridesResolver(o,i),!s.disableUnderline&&i.underline]}})(({theme:o,ownerState:i})=>{let j=o.palette.mode==="light"?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return o.vars&&(j=`rgba(${o.vars.palette.common.onBackgroundChannel} / ${o.vars.opacity.inputTouchBottomLine})`),_extends({position:"relative"},i.formControl&&{"label + &":{marginTop:16}},!i.disableUnderline&&{"&:after":{borderBottom:`2px solid ${(o.vars||o).palette[i.color].main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:o.transitions.create("transform",{duration:o.transitions.duration.shorter,easing:o.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${inputClasses$1.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${inputClasses$1.error}:after`]:{borderBottomColor:(o.vars||o).palette.error.main,transform:"scaleX(1)"},"&:before":{borderBottom:`1px solid ${j}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:o.transitions.create("border-bottom-color",{duration:o.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${inputClasses$1.disabled}):before`]:{borderBottom:`2px solid ${(o.vars||o).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${j}`}},[`&.${inputClasses$1.disabled}:before`]:{borderBottomStyle:"dotted"}})}),InputInput=styled$1(InputBaseComponent,{name:"MuiInput",slot:"Input",overridesResolver:inputOverridesResolver})({}),Input=react.exports.forwardRef(function(i,s){const j=useThemeProps({props:i,name:"MuiInput"}),{disableUnderline:$,components:Z={},componentsProps:et,fullWidth:_e=!1,inputComponent:nt="input",multiline:rt=!1,type:at="text"}=j,ft=_objectWithoutPropertiesLoose$1(j,_excluded$g),st=useUtilityClasses$e(j),it={root:{ownerState:{disableUnderline:$}}},ut=et?deepmerge(et,it):it;return jsx(InputBase$1,_extends({components:_extends({Root:InputRoot,Input:InputInput},Z),componentsProps:ut,fullWidth:_e,inputComponent:nt,multiline:rt,ref:s,type:at},ft,{classes:st}))});Input.muiName="Input";var Input$1=Input;function getInputLabelUtilityClasses(o){return generateUtilityClass("MuiInputLabel",o)}generateUtilityClasses("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const _excluded$f=["disableAnimation","margin","shrink","variant"],useUtilityClasses$d=o=>{const{classes:i,formControl:s,size:j,shrink:$,disableAnimation:Z,variant:et,required:_e}=o,rt=composeClasses({root:["root",s&&"formControl",!Z&&"animated",$&&"shrink",j==="small"&&"sizeSmall",et],asterisk:[_e&&"asterisk"]},getInputLabelUtilityClasses,i);return _extends({},i,rt)},InputLabelRoot=styled$1(FormLabel$1,{shouldForwardProp:o=>rootShouldForwardProp(o)||o==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(o,i)=>{const{ownerState:s}=o;return[{[`& .${formLabelClasses$1.asterisk}`]:i.asterisk},i.root,s.formControl&&i.formControl,s.size==="small"&&i.sizeSmall,s.shrink&&i.shrink,!s.disableAnimation&&i.animated,i[s.variant]]}})(({theme:o,ownerState:i})=>_extends({display:"block",transformOrigin:"top left",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%"},i.formControl&&{position:"absolute",left:0,top:0,transform:"translate(0, 20px) scale(1)"},i.size==="small"&&{transform:"translate(0, 17px) scale(1)"},i.shrink&&{transform:"translate(0, -1.5px) scale(0.75)",transformOrigin:"top left",maxWidth:"133%"},!i.disableAnimation&&{transition:o.transitions.create(["color","transform","max-width"],{duration:o.transitions.duration.shorter,easing:o.transitions.easing.easeOut})},i.variant==="filled"&&_extends({zIndex:1,pointerEvents:"none",transform:"translate(12px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},i.size==="small"&&{transform:"translate(12px, 13px) scale(1)"},i.shrink&&_extends({userSelect:"none",pointerEvents:"auto",transform:"translate(12px, 7px) scale(0.75)",maxWidth:"calc(133% - 24px)"},i.size==="small"&&{transform:"translate(12px, 4px) scale(0.75)"})),i.variant==="outlined"&&_extends({zIndex:1,pointerEvents:"none",transform:"translate(14px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},i.size==="small"&&{transform:"translate(14px, 9px) scale(1)"},i.shrink&&{userSelect:"none",pointerEvents:"auto",maxWidth:"calc(133% - 24px)",transform:"translate(14px, -9px) scale(0.75)"}))),InputLabel=react.exports.forwardRef(function(i,s){const j=useThemeProps({name:"MuiInputLabel",props:i}),{disableAnimation:$=!1,shrink:Z}=j,et=_objectWithoutPropertiesLoose$1(j,_excluded$f),_e=useFormControl();let nt=Z;typeof nt=="undefined"&&_e&&(nt=_e.filled||_e.focused||_e.adornedStart);const rt=formControlState({props:j,muiFormControl:_e,states:["size","variant","required"]}),at=_extends({},j,{disableAnimation:$,formControl:_e,shrink:nt,size:rt.size,variant:rt.variant,required:rt.required}),ft=useUtilityClasses$d(at);return jsx(InputLabelRoot,_extends({"data-shrink":nt,ownerState:at,ref:s},et,{classes:ft}))});var InputLabel$1=InputLabel;const ListContext=react.exports.createContext({});var ListContext$1=ListContext;function getListUtilityClass(o){return generateUtilityClass("MuiList",o)}generateUtilityClasses("MuiList",["root","padding","dense","subheader"]);const _excluded$e=["children","className","component","dense","disablePadding","subheader"],useUtilityClasses$c=o=>{const{classes:i,disablePadding:s,dense:j,subheader:$}=o;return composeClasses({root:["root",!s&&"padding",j&&"dense",$&&"subheader"]},getListUtilityClass,i)},ListRoot=styled$1("ul",{name:"MuiList",slot:"Root",overridesResolver:(o,i)=>{const{ownerState:s}=o;return[i.root,!s.disablePadding&&i.padding,s.dense&&i.dense,s.subheader&&i.subheader]}})(({ownerState:o})=>_extends({listStyle:"none",margin:0,padding:0,position:"relative"},!o.disablePadding&&{paddingTop:8,paddingBottom:8},o.subheader&&{paddingTop:0})),List=react.exports.forwardRef(function(i,s){const j=useThemeProps({props:i,name:"MuiList"}),{children:$,className:Z,component:et="ul",dense:_e=!1,disablePadding:nt=!1,subheader:rt}=j,at=_objectWithoutPropertiesLoose$1(j,_excluded$e),ft=react.exports.useMemo(()=>({dense:_e}),[_e]),st=_extends({},j,{component:et,dense:_e,disablePadding:nt}),lt=useUtilityClasses$c(st);return jsx(ListContext$1.Provider,{value:ft,children:jsxs(ListRoot,_extends({as:et,className:clsx(lt.root,Z),ref:s,ownerState:st},at,{children:[rt,$]}))})});var List$1=List;const listItemIconClasses=generateUtilityClasses("MuiListItemIcon",["root","alignItemsFlexStart"]);var listItemIconClasses$1=listItemIconClasses;const listItemTextClasses=generateUtilityClasses("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]);var listItemTextClasses$1=listItemTextClasses;const _excluded$d=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function nextItem(o,i,s){return o===i?o.firstChild:i&&i.nextElementSibling?i.nextElementSibling:s?null:o.firstChild}function previousItem(o,i,s){return o===i?s?o.firstChild:o.lastChild:i&&i.previousElementSibling?i.previousElementSibling:s?null:o.lastChild}function textCriteriaMatches(o,i){if(i===void 0)return!0;let s=o.innerText;return s===void 0&&(s=o.textContent),s=s.trim().toLowerCase(),s.length===0?!1:i.repeating?s[0]===i.keys[0]:s.indexOf(i.keys.join(""))===0}function moveFocus(o,i,s,j,$,Z){let et=!1,_e=$(o,i,i?s:!1);for(;_e;){if(_e===o.firstChild){if(et)return!1;et=!0}const nt=j?!1:_e.disabled||_e.getAttribute("aria-disabled")==="true";if(!_e.hasAttribute("tabindex")||!textCriteriaMatches(_e,Z)||nt)_e=$(o,_e,s);else return _e.focus(),!0}return!1}const MenuList=react.exports.forwardRef(function(i,s){const{actions:j,autoFocus:$=!1,autoFocusItem:Z=!1,children:et,className:_e,disabledItemsFocusable:nt=!1,disableListWrap:rt=!1,onKeyDown:at,variant:ft="selectedMenu"}=i,st=_objectWithoutPropertiesLoose$1(i,_excluded$d),lt=react.exports.useRef(null),it=react.exports.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});useEnhancedEffect$1(()=>{$&<.current.focus()},[$]),react.exports.useImperativeHandle(j,()=>({adjustStyleForScrollbar:(vt,mt)=>{const ct=!lt.current.style.width;if(vt.clientHeight{const mt=lt.current,ct=vt.key,Rt=ownerDocument(mt).activeElement;if(ct==="ArrowDown")vt.preventDefault(),moveFocus(mt,Rt,rt,nt,nextItem);else if(ct==="ArrowUp")vt.preventDefault(),moveFocus(mt,Rt,rt,nt,previousItem);else if(ct==="Home")vt.preventDefault(),moveFocus(mt,null,rt,nt,nextItem);else if(ct==="End")vt.preventDefault(),moveFocus(mt,null,rt,nt,previousItem);else if(ct.length===1){const Ft=it.current,Ut=ct.toLowerCase(),yt=performance.now();Ft.keys.length>0&&(yt-Ft.lastTime>500?(Ft.keys=[],Ft.repeating=!0,Ft.previousKeyMatched=!0):Ft.repeating&&Ut!==Ft.keys[0]&&(Ft.repeating=!1)),Ft.lastTime=yt,Ft.keys.push(Ut);const ht=Rt&&!Ft.repeating&&textCriteriaMatches(Rt,Ft);Ft.previousKeyMatched&&(ht||moveFocus(mt,Rt,!1,nt,nextItem,Ft))?vt.preventDefault():Ft.previousKeyMatched=!1}at&&at(vt)},pt=useForkRef(lt,s);let bt=-1;react.exports.Children.forEach(et,(vt,mt)=>{!react.exports.isValidElement(vt)||vt.props.disabled||(ft==="selectedMenu"&&vt.props.selected||bt===-1)&&(bt=mt)});const xt=react.exports.Children.map(et,(vt,mt)=>{if(mt===bt){const ct={};return Z&&(ct.autoFocus=!0),vt.props.tabIndex===void 0&&ft==="selectedMenu"&&(ct.tabIndex=0),react.exports.cloneElement(vt,ct)}return vt});return jsx(List$1,_extends({role:"menu",ref:pt,className:_e,onKeyDown:ut,tabIndex:$?0:-1},st,{children:xt}))});var MenuList$1=MenuList;function getPopoverUtilityClass(o){return generateUtilityClass("MuiPopover",o)}generateUtilityClasses("MuiPopover",["root","paper"]);const _excluded$c=["onEntering"],_excluded2$3=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps"];function getOffsetTop(o,i){let s=0;return typeof i=="number"?s=i:i==="center"?s=o.height/2:i==="bottom"&&(s=o.height),s}function getOffsetLeft(o,i){let s=0;return typeof i=="number"?s=i:i==="center"?s=o.width/2:i==="right"&&(s=o.width),s}function getTransformOriginValue(o){return[o.horizontal,o.vertical].map(i=>typeof i=="number"?`${i}px`:i).join(" ")}function resolveAnchorEl(o){return typeof o=="function"?o():o}const useUtilityClasses$b=o=>{const{classes:i}=o;return composeClasses({root:["root"],paper:["paper"]},getPopoverUtilityClass,i)},PopoverRoot=styled$1(Modal$1,{name:"MuiPopover",slot:"Root",overridesResolver:(o,i)=>i.root})({}),PopoverPaper=styled$1(Paper$1,{name:"MuiPopover",slot:"Paper",overridesResolver:(o,i)=>i.paper})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),Popover=react.exports.forwardRef(function(i,s){const j=useThemeProps({props:i,name:"MuiPopover"}),{action:$,anchorEl:Z,anchorOrigin:et={vertical:"top",horizontal:"left"},anchorPosition:_e,anchorReference:nt="anchorEl",children:rt,className:at,container:ft,elevation:st=8,marginThreshold:lt=16,open:it,PaperProps:ut={},transformOrigin:pt={vertical:"top",horizontal:"left"},TransitionComponent:bt=Grow$1,transitionDuration:xt="auto",TransitionProps:{onEntering:vt}={}}=j,mt=_objectWithoutPropertiesLoose$1(j.TransitionProps,_excluded$c),ct=_objectWithoutPropertiesLoose$1(j,_excluded2$3),Rt=react.exports.useRef(),Ft=useForkRef(Rt,ut.ref),Ut=_extends({},j,{anchorOrigin:et,anchorReference:nt,elevation:st,marginThreshold:lt,PaperProps:ut,transformOrigin:pt,TransitionComponent:bt,transitionDuration:xt,TransitionProps:mt}),yt=useUtilityClasses$b(Ut),ht=react.exports.useCallback(()=>{if(nt==="anchorPosition")return _e;const Ot=resolveAnchorEl(Z),wt=(Ot&&Ot.nodeType===1?Ot:ownerDocument(Rt.current).body).getBoundingClientRect();return{top:wt.top+getOffsetTop(wt,et.vertical),left:wt.left+getOffsetLeft(wt,et.horizontal)}},[Z,et.horizontal,et.vertical,_e,nt]),Ct=react.exports.useCallback(Ot=>({vertical:getOffsetTop(Ot,pt.vertical),horizontal:getOffsetLeft(Ot,pt.horizontal)}),[pt.horizontal,pt.vertical]),St=react.exports.useCallback(Ot=>{const At={width:Ot.offsetWidth,height:Ot.offsetHeight},wt=Ct(At);if(nt==="none")return{top:null,left:null,transformOrigin:getTransformOriginValue(wt)};const gt=ht();let Nt=gt.top-wt.vertical,Bt=gt.left-wt.horizontal;const Gt=Nt+At.height,Kt=Bt+At.width,Zt=ownerWindow(resolveAnchorEl(Z)),zt=Zt.innerHeight-lt,$t=Zt.innerWidth-lt;if(Ntzt){const Et=Gt-zt;Nt-=Et,wt.vertical+=Et}if(Bt$t){const Et=Kt-$t;Bt-=Et,wt.horizontal+=Et}return{top:`${Math.round(Nt)}px`,left:`${Math.round(Bt)}px`,transformOrigin:getTransformOriginValue(wt)}},[Z,nt,ht,Ct,lt]),kt=react.exports.useCallback(()=>{const Ot=Rt.current;if(!Ot)return;const At=St(Ot);At.top!==null&&(Ot.style.top=At.top),At.left!==null&&(Ot.style.left=At.left),Ot.style.transformOrigin=At.transformOrigin},[St]),Lt=(Ot,At)=>{vt&&vt(Ot,At),kt()};react.exports.useEffect(()=>{it&&kt()}),react.exports.useImperativeHandle($,()=>it?{updatePosition:()=>{kt()}}:null,[it,kt]),react.exports.useEffect(()=>{if(!it)return;const Ot=debounce(()=>{kt()}),At=ownerWindow(Z);return At.addEventListener("resize",Ot),()=>{Ot.clear(),At.removeEventListener("resize",Ot)}},[Z,it,kt]);let Mt=xt;xt==="auto"&&!bt.muiSupportAuto&&(Mt=void 0);const Tt=ft||(Z?ownerDocument(resolveAnchorEl(Z)).body:void 0);return jsx(PopoverRoot,_extends({BackdropProps:{invisible:!0},className:clsx(yt.root,at),container:Tt,open:it,ref:s,ownerState:Ut},ct,{children:jsx(bt,_extends({appear:!0,in:it,onEntering:Lt,timeout:Mt},mt,{children:jsx(PopoverPaper,_extends({elevation:st},ut,{ref:Ft,className:clsx(yt.paper,ut.className),children:rt}))}))}))});var Popover$1=Popover;function getMenuUtilityClass(o){return generateUtilityClass("MuiMenu",o)}generateUtilityClasses("MuiMenu",["root","paper","list"]);const _excluded$b=["onEntering"],_excluded2$2=["autoFocus","children","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant"],RTL_ORIGIN={vertical:"top",horizontal:"right"},LTR_ORIGIN={vertical:"top",horizontal:"left"},useUtilityClasses$a=o=>{const{classes:i}=o;return composeClasses({root:["root"],paper:["paper"],list:["list"]},getMenuUtilityClass,i)},MenuRoot=styled$1(Popover$1,{shouldForwardProp:o=>rootShouldForwardProp(o)||o==="classes",name:"MuiMenu",slot:"Root",overridesResolver:(o,i)=>i.root})({}),MenuPaper=styled$1(Paper$1,{name:"MuiMenu",slot:"Paper",overridesResolver:(o,i)=>i.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),MenuMenuList=styled$1(MenuList$1,{name:"MuiMenu",slot:"List",overridesResolver:(o,i)=>i.list})({outline:0}),Menu=react.exports.forwardRef(function(i,s){const j=useThemeProps({props:i,name:"MuiMenu"}),{autoFocus:$=!0,children:Z,disableAutoFocusItem:et=!1,MenuListProps:_e={},onClose:nt,open:rt,PaperProps:at={},PopoverClasses:ft,transitionDuration:st="auto",TransitionProps:{onEntering:lt}={},variant:it="selectedMenu"}=j,ut=_objectWithoutPropertiesLoose$1(j.TransitionProps,_excluded$b),pt=_objectWithoutPropertiesLoose$1(j,_excluded2$2),bt=useTheme(),xt=bt.direction==="rtl",vt=_extends({},j,{autoFocus:$,disableAutoFocusItem:et,MenuListProps:_e,onEntering:lt,PaperProps:at,transitionDuration:st,TransitionProps:ut,variant:it}),mt=useUtilityClasses$a(vt),ct=$&&!et&&rt,Rt=react.exports.useRef(null),Ft=(ht,Ct)=>{Rt.current&&Rt.current.adjustStyleForScrollbar(ht,bt),lt&<(ht,Ct)},Ut=ht=>{ht.key==="Tab"&&(ht.preventDefault(),nt&&nt(ht,"tabKeyDown"))};let yt=-1;return react.exports.Children.map(Z,(ht,Ct)=>{!react.exports.isValidElement(ht)||ht.props.disabled||(it==="selectedMenu"&&ht.props.selected||yt===-1)&&(yt=Ct)}),jsx(MenuRoot,_extends({classes:ft,onClose:nt,anchorOrigin:{vertical:"bottom",horizontal:xt?"right":"left"},transformOrigin:xt?RTL_ORIGIN:LTR_ORIGIN,PaperProps:_extends({component:MenuPaper},at,{classes:_extends({},at.classes,{root:mt.paper})}),className:mt.root,open:rt,ref:s,transitionDuration:st,TransitionProps:_extends({onEntering:Ft},ut),ownerState:vt},pt,{children:jsx(MenuMenuList,_extends({onKeyDown:Ut,actions:Rt,autoFocus:$&&(yt===-1||et),autoFocusItem:ct,variant:it},_e,{className:clsx(mt.list,_e.className),children:Z}))}))});var Menu$1=Menu;function getMenuItemUtilityClass(o){return generateUtilityClass("MuiMenuItem",o)}const menuItemClasses=generateUtilityClasses("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]);var menuItemClasses$1=menuItemClasses;const _excluded$a=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex"],overridesResolver=(o,i)=>{const{ownerState:s}=o;return[i.root,s.dense&&i.dense,s.divider&&i.divider,!s.disableGutters&&i.gutters]},useUtilityClasses$9=o=>{const{disabled:i,dense:s,divider:j,disableGutters:$,selected:Z,classes:et}=o,nt=composeClasses({root:["root",s&&"dense",i&&"disabled",!$&&"gutters",j&&"divider",Z&&"selected"]},getMenuItemUtilityClass,et);return _extends({},et,nt)},MenuItemRoot=styled$1(ButtonBase$1,{shouldForwardProp:o=>rootShouldForwardProp(o)||o==="classes",name:"MuiMenuItem",slot:"Root",overridesResolver})(({theme:o,ownerState:i})=>_extends({},o.typography.body1,{display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",whiteSpace:"nowrap"},!i.disableGutters&&{paddingLeft:16,paddingRight:16},i.divider&&{borderBottom:`1px solid ${(o.vars||o).palette.divider}`,backgroundClip:"padding-box"},{"&:hover":{textDecoration:"none",backgroundColor:(o.vars||o).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${menuItemClasses$1.selected}`]:{backgroundColor:o.vars?`rgba(${o.vars.palette.primary.mainChannel} / ${o.vars.palette.action.selectedOpacity})`:alpha(o.palette.primary.main,o.palette.action.selectedOpacity),[`&.${menuItemClasses$1.focusVisible}`]:{backgroundColor:o.vars?`rgba(${o.vars.palette.primary.mainChannel} / calc(${o.vars.palette.action.selectedOpacity} + ${o.vars.palette.action.focusOpacity}))`:alpha(o.palette.primary.main,o.palette.action.selectedOpacity+o.palette.action.focusOpacity)}},[`&.${menuItemClasses$1.selected}:hover`]:{backgroundColor:o.vars?`rgba(${o.vars.palette.primary.mainChannel} / calc(${o.vars.palette.action.selectedOpacity} + ${o.vars.palette.action.hoverOpacity}))`:alpha(o.palette.primary.main,o.palette.action.selectedOpacity+o.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:o.vars?`rgba(${o.vars.palette.primary.mainChannel} / ${o.vars.palette.action.selectedOpacity})`:alpha(o.palette.primary.main,o.palette.action.selectedOpacity)}},[`&.${menuItemClasses$1.focusVisible}`]:{backgroundColor:(o.vars||o).palette.action.focus},[`&.${menuItemClasses$1.disabled}`]:{opacity:(o.vars||o).palette.action.disabledOpacity},[`& + .${dividerClasses$1.root}`]:{marginTop:o.spacing(1),marginBottom:o.spacing(1)},[`& + .${dividerClasses$1.inset}`]:{marginLeft:52},[`& .${listItemTextClasses$1.root}`]:{marginTop:0,marginBottom:0},[`& .${listItemTextClasses$1.inset}`]:{paddingLeft:36},[`& .${listItemIconClasses$1.root}`]:{minWidth:36}},!i.dense&&{[o.breakpoints.up("sm")]:{minHeight:"auto"}},i.dense&&_extends({minHeight:32,paddingTop:4,paddingBottom:4},o.typography.body2,{[`& .${listItemIconClasses$1.root} svg`]:{fontSize:"1.25rem"}}))),MenuItem=react.exports.forwardRef(function(i,s){const j=useThemeProps({props:i,name:"MuiMenuItem"}),{autoFocus:$=!1,component:Z="li",dense:et=!1,divider:_e=!1,disableGutters:nt=!1,focusVisibleClassName:rt,role:at="menuitem",tabIndex:ft}=j,st=_objectWithoutPropertiesLoose$1(j,_excluded$a),lt=react.exports.useContext(ListContext$1),it={dense:et||lt.dense||!1,disableGutters:nt},ut=react.exports.useRef(null);useEnhancedEffect$1(()=>{$&&ut.current&&ut.current.focus()},[$]);const pt=_extends({},j,{dense:it.dense,divider:_e,disableGutters:nt}),bt=useUtilityClasses$9(j),xt=useForkRef(ut,s);let vt;return j.disabled||(vt=ft!==void 0?ft:-1),jsx(ListContext$1.Provider,{value:it,children:jsx(MenuItemRoot,_extends({ref:xt,role:at,tabIndex:vt,component:Z,focusVisibleClassName:clsx(bt.focusVisible,rt)},st,{ownerState:pt,classes:bt}))})});var MenuItem$1=MenuItem;function getNativeSelectUtilityClasses(o){return generateUtilityClass("MuiNativeSelect",o)}const nativeSelectClasses=generateUtilityClasses("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput"]),_excluded$9=["className","disabled","IconComponent","inputRef","variant"],useUtilityClasses$8=o=>{const{classes:i,variant:s,disabled:j,multiple:$,open:Z}=o,et={select:["select",s,j&&"disabled",$&&"multiple"],icon:["icon",`icon${capitalize$1(s)}`,Z&&"iconOpen",j&&"disabled"]};return composeClasses(et,getNativeSelectUtilityClasses,i)},nativeSelectSelectStyles=({ownerState:o,theme:i})=>_extends({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":{backgroundColor:i.palette.mode==="light"?"rgba(0, 0, 0, 0.05)":"rgba(255, 255, 255, 0.05)",borderRadius:0},"&::-ms-expand":{display:"none"},[`&.${nativeSelectClasses.disabled}`]:{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:i.palette.background.paper},"&&&":{paddingRight:24,minWidth:16}},o.variant==="filled"&&{"&&&":{paddingRight:32}},o.variant==="outlined"&&{borderRadius:i.shape.borderRadius,"&:focus":{borderRadius:i.shape.borderRadius},"&&&":{paddingRight:32}}),NativeSelectSelect=styled$1("select",{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:rootShouldForwardProp,overridesResolver:(o,i)=>{const{ownerState:s}=o;return[i.select,i[s.variant],{[`&.${nativeSelectClasses.multiple}`]:i.multiple}]}})(nativeSelectSelectStyles),nativeSelectIconStyles=({ownerState:o,theme:i})=>_extends({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:i.palette.action.active,[`&.${nativeSelectClasses.disabled}`]:{color:i.palette.action.disabled}},o.open&&{transform:"rotate(180deg)"},o.variant==="filled"&&{right:7},o.variant==="outlined"&&{right:7}),NativeSelectIcon=styled$1("svg",{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(o,i)=>{const{ownerState:s}=o;return[i.icon,s.variant&&i[`icon${capitalize$1(s.variant)}`],s.open&&i.iconOpen]}})(nativeSelectIconStyles),NativeSelectInput=react.exports.forwardRef(function(i,s){const{className:j,disabled:$,IconComponent:Z,inputRef:et,variant:_e="standard"}=i,nt=_objectWithoutPropertiesLoose$1(i,_excluded$9),rt=_extends({},i,{disabled:$,variant:_e}),at=useUtilityClasses$8(rt);return jsxs(react.exports.Fragment,{children:[jsx(NativeSelectSelect,_extends({ownerState:rt,className:clsx(at.select,j),disabled:$,ref:et||s},nt)),i.multiple?null:jsx(NativeSelectIcon,{as:Z,ownerState:rt,className:at.icon})]})});var NativeSelectInput$1=NativeSelectInput;const _excluded$8=["className","children","classes","IconComponent","input","inputProps","variant"],_excluded2$1=["root"],useUtilityClasses$7=o=>{const{classes:i}=o;return composeClasses({root:["root"]},getNativeSelectUtilityClasses,i)},defaultInput=jsx(Input$1,{}),NativeSelect=react.exports.forwardRef(function(i,s){const j=useThemeProps({name:"MuiNativeSelect",props:i}),{className:$,children:Z,classes:et={},IconComponent:_e=ArrowDropDownIcon,input:nt=defaultInput,inputProps:rt}=j,at=_objectWithoutPropertiesLoose$1(j,_excluded$8),ft=useFormControl(),st=formControlState({props:j,muiFormControl:ft,states:["variant"]}),lt=_extends({},j,{classes:et}),it=useUtilityClasses$7(lt),ut=_objectWithoutPropertiesLoose$1(et,_excluded2$1);return react.exports.cloneElement(nt,_extends({inputComponent:NativeSelectInput$1,inputProps:_extends({children:Z,classes:ut,IconComponent:_e,variant:st.variant,type:void 0},rt,nt?nt.props.inputProps:{}),ref:s},at,{className:clsx(it.root,nt.props.className,$)}))});NativeSelect.muiName="Select";var NativeSelect$1=NativeSelect,_span$1;const _excluded$7=["children","classes","className","label","notched"],NotchedOutlineRoot$1=styled$1("fieldset")({textAlign:"left",position:"absolute",bottom:0,right:0,top:-5,left:0,margin:0,padding:"0 8px",pointerEvents:"none",borderRadius:"inherit",borderStyle:"solid",borderWidth:1,overflow:"hidden",minWidth:"0%"}),NotchedOutlineLegend=styled$1("legend")(({ownerState:o,theme:i})=>_extends({float:"unset",overflow:"hidden"},!o.withLabel&&{padding:0,lineHeight:"11px",transition:i.transitions.create("width",{duration:150,easing:i.transitions.easing.easeOut})},o.withLabel&&_extends({display:"block",width:"auto",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:i.transitions.create("max-width",{duration:50,easing:i.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}},o.notched&&{maxWidth:"100%",transition:i.transitions.create("max-width",{duration:100,easing:i.transitions.easing.easeOut,delay:50})})));function NotchedOutline(o){const{className:i,label:s,notched:j}=o,$=_objectWithoutPropertiesLoose$1(o,_excluded$7),Z=s!=null&&s!=="",et=_extends({},o,{notched:j,withLabel:Z});return jsx(NotchedOutlineRoot$1,_extends({"aria-hidden":!0,className:i,ownerState:et},$,{children:jsx(NotchedOutlineLegend,{ownerState:et,children:Z?jsx("span",{children:s}):_span$1||(_span$1=jsx("span",{className:"notranslate",children:"\u200B"}))})}))}const _excluded$6=["components","fullWidth","inputComponent","label","multiline","notched","type"],useUtilityClasses$6=o=>{const{classes:i}=o,j=composeClasses({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},getOutlinedInputUtilityClass,i);return _extends({},i,j)},OutlinedInputRoot=styled$1(InputBaseRoot,{shouldForwardProp:o=>rootShouldForwardProp(o)||o==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:rootOverridesResolver})(({theme:o,ownerState:i})=>{const s=o.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return _extends({position:"relative",borderRadius:o.shape.borderRadius,[`&:hover .${outlinedInputClasses$1.notchedOutline}`]:{borderColor:o.palette.text.primary},"@media (hover: none)":{[`&:hover .${outlinedInputClasses$1.notchedOutline}`]:{borderColor:s}},[`&.${outlinedInputClasses$1.focused} .${outlinedInputClasses$1.notchedOutline}`]:{borderColor:o.palette[i.color].main,borderWidth:2},[`&.${outlinedInputClasses$1.error} .${outlinedInputClasses$1.notchedOutline}`]:{borderColor:o.palette.error.main},[`&.${outlinedInputClasses$1.disabled} .${outlinedInputClasses$1.notchedOutline}`]:{borderColor:o.palette.action.disabled}},i.startAdornment&&{paddingLeft:14},i.endAdornment&&{paddingRight:14},i.multiline&&_extends({padding:"16.5px 14px"},i.size==="small"&&{padding:"8.5px 14px"}))}),NotchedOutlineRoot=styled$1(NotchedOutline,{name:"MuiOutlinedInput",slot:"NotchedOutline",overridesResolver:(o,i)=>i.notchedOutline})(({theme:o})=>({borderColor:o.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)"})),OutlinedInputInput=styled$1(InputBaseComponent,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:inputOverridesResolver})(({theme:o,ownerState:i})=>_extends({padding:"16.5px 14px","&:-webkit-autofill":{WebkitBoxShadow:o.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:o.palette.mode==="light"?null:"#fff",caretColor:o.palette.mode==="light"?null:"#fff",borderRadius:"inherit"}},i.size==="small"&&{padding:"8.5px 14px"},i.multiline&&{padding:0},i.startAdornment&&{paddingLeft:0},i.endAdornment&&{paddingRight:0})),OutlinedInput=react.exports.forwardRef(function(i,s){var j;const $=useThemeProps({props:i,name:"MuiOutlinedInput"}),{components:Z={},fullWidth:et=!1,inputComponent:_e="input",label:nt,multiline:rt=!1,notched:at,type:ft="text"}=$,st=_objectWithoutPropertiesLoose$1($,_excluded$6),lt=useUtilityClasses$6($),it=useFormControl(),ut=formControlState({props:$,muiFormControl:it,states:["required"]});return jsx(InputBase$1,_extends({components:_extends({Root:OutlinedInputRoot,Input:OutlinedInputInput},Z),renderSuffix:pt=>jsx(NotchedOutlineRoot,{className:lt.notchedOutline,label:nt!=null&&nt!==""&&ut.required?j||(j=jsxs(react.exports.Fragment,{children:[nt,"\xA0","*"]})):nt,notched:typeof at!="undefined"?at:Boolean(pt.startAdornment||pt.filled||pt.focused)}),fullWidth:et,inputComponent:_e,multiline:rt,ref:s,type:ft},st,{classes:_extends({},lt,{notchedOutline:null})}))});OutlinedInput.muiName="Input";var OutlinedInput$1=OutlinedInput;function getSelectUtilityClasses(o){return generateUtilityClass("MuiSelect",o)}const selectClasses=generateUtilityClasses("MuiSelect",["select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput"]);var selectClasses$1=selectClasses,_span;const _excluded$5=["aria-describedby","aria-label","autoFocus","autoWidth","children","className","defaultOpen","defaultValue","disabled","displayEmpty","IconComponent","inputRef","labelId","MenuProps","multiple","name","onBlur","onChange","onClose","onFocus","onOpen","open","readOnly","renderValue","SelectDisplayProps","tabIndex","type","value","variant"],SelectSelect=styled$1("div",{name:"MuiSelect",slot:"Select",overridesResolver:(o,i)=>{const{ownerState:s}=o;return[{[`&.${selectClasses$1.select}`]:i.select},{[`&.${selectClasses$1.select}`]:i[s.variant]},{[`&.${selectClasses$1.multiple}`]:i.multiple}]}})(nativeSelectSelectStyles,{[`&.${selectClasses$1.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),SelectIcon=styled$1("svg",{name:"MuiSelect",slot:"Icon",overridesResolver:(o,i)=>{const{ownerState:s}=o;return[i.icon,s.variant&&i[`icon${capitalize$1(s.variant)}`],s.open&&i.iconOpen]}})(nativeSelectIconStyles),SelectNativeInput=styled$1("input",{shouldForwardProp:o=>slotShouldForwardProp(o)&&o!=="classes",name:"MuiSelect",slot:"NativeInput",overridesResolver:(o,i)=>i.nativeInput})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"});function areEqualValues(o,i){return typeof i=="object"&&i!==null?o===i:String(o)===String(i)}function isEmpty(o){return o==null||typeof o=="string"&&!o.trim()}const useUtilityClasses$5=o=>{const{classes:i,variant:s,disabled:j,multiple:$,open:Z}=o,et={select:["select",s,j&&"disabled",$&&"multiple"],icon:["icon",`icon${capitalize$1(s)}`,Z&&"iconOpen",j&&"disabled"],nativeInput:["nativeInput"]};return composeClasses(et,getSelectUtilityClasses,i)},SelectInput=react.exports.forwardRef(function(i,s){const{"aria-describedby":j,"aria-label":$,autoFocus:Z,autoWidth:et,children:_e,className:nt,defaultOpen:rt,defaultValue:at,disabled:ft,displayEmpty:st,IconComponent:lt,inputRef:it,labelId:ut,MenuProps:pt={},multiple:bt,name:xt,onBlur:vt,onChange:mt,onClose:ct,onFocus:Rt,onOpen:Ft,open:Ut,readOnly:yt,renderValue:ht,SelectDisplayProps:Ct={},tabIndex:St,value:kt,variant:Lt="standard"}=i,Mt=_objectWithoutPropertiesLoose$1(i,_excluded$5),[Tt,Ot]=useControlled({controlled:kt,default:at,name:"Select"}),[At,wt]=useControlled({controlled:Ut,default:rt,name:"Select"}),gt=react.exports.useRef(null),Nt=react.exports.useRef(null),[Bt,Gt]=react.exports.useState(null),{current:Kt}=react.exports.useRef(Ut!=null),[Zt,zt]=react.exports.useState(),$t=useForkRef(s,it),Et=react.exports.useCallback(Tn=>{Nt.current=Tn,Tn&&Gt(Tn)},[]);react.exports.useImperativeHandle($t,()=>({focus:()=>{Nt.current.focus()},node:gt.current,value:Tt}),[Tt]),react.exports.useEffect(()=>{rt&&At&&Bt&&!Kt&&(zt(et?null:Bt.clientWidth),Nt.current.focus())},[Bt,et]),react.exports.useEffect(()=>{Z&&Nt.current.focus()},[Z]),react.exports.useEffect(()=>{if(!ut)return;const Tn=ownerDocument(Nt.current).getElementById(ut);if(Tn){const Dn=()=>{getSelection().isCollapsed&&Nt.current.focus()};return Tn.addEventListener("click",Dn),()=>{Tn.removeEventListener("click",Dn)}}},[ut]);const It=(Tn,Dn)=>{Tn?Ft&&Ft(Dn):ct&&ct(Dn),Kt||(zt(et?null:Bt.clientWidth),wt(Tn))},Dt=Tn=>{Tn.button===0&&(Tn.preventDefault(),Nt.current.focus(),It(!0,Tn))},Jt=Tn=>{It(!1,Tn)},Qt=react.exports.Children.toArray(_e),nn=Tn=>{const Dn=Qt.map(Gn=>Gn.props.value).indexOf(Tn.target.value);if(Dn===-1)return;const Pn=Qt[Dn];Ot(Pn.props.value),mt&&mt(Tn,Pn)},cn=Tn=>Dn=>{let Pn;if(!!Dn.currentTarget.hasAttribute("tabindex")){if(bt){Pn=Array.isArray(Tt)?Tt.slice():[];const Gn=Tt.indexOf(Tn.props.value);Gn===-1?Pn.push(Tn.props.value):Pn.splice(Gn,1)}else Pn=Tn.props.value;if(Tn.props.onClick&&Tn.props.onClick(Dn),Tt!==Pn&&(Ot(Pn),mt)){const Gn=Dn.nativeEvent||Dn,tr=new Gn.constructor(Gn.type,Gn);Object.defineProperty(tr,"target",{writable:!0,value:{value:Pn,name:xt}}),mt(tr,Tn)}bt||It(!1,Dn)}},sn=Tn=>{yt||[" ","ArrowUp","ArrowDown","Enter"].indexOf(Tn.key)!==-1&&(Tn.preventDefault(),It(!0,Tn))},Vt=Bt!==null&&At,qt=Tn=>{!Vt&&vt&&(Object.defineProperty(Tn,"target",{writable:!0,value:{value:Tt,name:xt}}),vt(Tn))};delete Mt["aria-invalid"];let tn,hn;const an=[];let _n=!1;(isFilled({value:Tt})||st)&&(ht?tn=ht(Tt):_n=!0);const mn=Qt.map((Tn,Dn,Pn)=>{if(!react.exports.isValidElement(Tn))return null;let Gn;if(bt){if(!Array.isArray(Tt))throw new Error(formatMuiErrorMessage(2));Gn=Tt.some(Qn=>areEqualValues(Qn,Tn.props.value)),Gn&&_n&&an.push(Tn.props.children)}else Gn=areEqualValues(Tt,Tn.props.value),Gn&&_n&&(hn=Tn.props.children);if(Tn.props.value===void 0)return react.exports.cloneElement(Tn,{"aria-readonly":!0,role:"option"});const tr=()=>{if(Tt)return Gn;const Qn=Pn.find(ir=>ir.props.value!==void 0&&ir.props.disabled!==!0);return Tn===Qn?!0:Gn};return react.exports.cloneElement(Tn,{"aria-selected":Gn?"true":"false",onClick:cn(Tn),onKeyUp:Qn=>{Qn.key===" "&&Qn.preventDefault(),Tn.props.onKeyUp&&Tn.props.onKeyUp(Qn)},role:"option",selected:Pn[0].props.value===void 0||Pn[0].props.disabled===!0?tr():Gn,value:void 0,"data-value":Tn.props.value})});_n&&(bt?an.length===0?tn=null:tn=an.reduce((Tn,Dn,Pn)=>(Tn.push(Dn),Pn{const{classes:i}=o;return i},styledRootConfig={name:"MuiSelect",overridesResolver:(o,i)=>i.root,shouldForwardProp:o=>rootShouldForwardProp(o)&&o!=="variant",slot:"Root"},StyledInput=styled$1(Input$1,styledRootConfig)(""),StyledOutlinedInput=styled$1(OutlinedInput$1,styledRootConfig)(""),StyledFilledInput=styled$1(FilledInput$1,styledRootConfig)(""),Select$1=react.exports.forwardRef(function(i,s){const j=useThemeProps({name:"MuiSelect",props:i}),{autoWidth:$=!1,children:Z,classes:et={},className:_e,defaultOpen:nt=!1,displayEmpty:rt=!1,IconComponent:at=ArrowDropDownIcon,id:ft,input:st,inputProps:lt,label:it,labelId:ut,MenuProps:pt,multiple:bt=!1,native:xt=!1,onClose:vt,onOpen:mt,open:ct,renderValue:Rt,SelectDisplayProps:Ft,variant:Ut="outlined"}=j,yt=_objectWithoutPropertiesLoose$1(j,_excluded$4),ht=xt?NativeSelectInput$1:SelectInput$1,Ct=useFormControl(),kt=formControlState({props:j,muiFormControl:Ct,states:["variant"]}).variant||Ut,Lt=st||{standard:_StyledInput||(_StyledInput=jsx(StyledInput,{})),outlined:jsx(StyledOutlinedInput,{label:it}),filled:_StyledFilledInput||(_StyledFilledInput=jsx(StyledFilledInput,{}))}[kt],Mt=_extends({},j,{variant:kt,classes:et}),Tt=useUtilityClasses$4(Mt),Ot=useForkRef(s,Lt.ref);return react.exports.cloneElement(Lt,_extends({inputComponent:ht,inputProps:_extends({children:Z,IconComponent:at,variant:kt,type:void 0,multiple:bt},xt?{id:ft}:{autoWidth:$,defaultOpen:nt,displayEmpty:rt,labelId:ut,MenuProps:pt,onClose:vt,onOpen:mt,open:ct,renderValue:Rt,SelectDisplayProps:_extends({id:ft},Ft)},lt,{classes:lt?deepmerge(Tt,lt.classes):Tt},st?st.props.inputProps:{})},bt&&xt&&kt==="outlined"?{notched:!0}:{},{ref:Ot,className:clsx(Lt.props.className,_e),variant:kt},yt))});Select$1.muiName="Select";var Select$1$1=Select$1;function getSnackbarContentUtilityClass(o){return generateUtilityClass("MuiSnackbarContent",o)}generateUtilityClasses("MuiSnackbarContent",["root","message","action"]);const _excluded$3=["action","className","message","role"],useUtilityClasses$3=o=>{const{classes:i}=o;return composeClasses({root:["root"],action:["action"],message:["message"]},getSnackbarContentUtilityClass,i)},SnackbarContentRoot=styled$1(Paper$1,{name:"MuiSnackbarContent",slot:"Root",overridesResolver:(o,i)=>i.root})(({theme:o})=>{const i=o.palette.mode==="light"?.8:.98,s=emphasize(o.palette.background.default,i);return _extends({},o.typography.body2,{color:o.palette.getContrastText(s),backgroundColor:s,display:"flex",alignItems:"center",flexWrap:"wrap",padding:"6px 16px",borderRadius:o.shape.borderRadius,flexGrow:1,[o.breakpoints.up("sm")]:{flexGrow:"initial",minWidth:288}})}),SnackbarContentMessage=styled$1("div",{name:"MuiSnackbarContent",slot:"Message",overridesResolver:(o,i)=>i.message})({padding:"8px 0"}),SnackbarContentAction=styled$1("div",{name:"MuiSnackbarContent",slot:"Action",overridesResolver:(o,i)=>i.action})({display:"flex",alignItems:"center",marginLeft:"auto",paddingLeft:16,marginRight:-8}),SnackbarContent=react.exports.forwardRef(function(i,s){const j=useThemeProps({props:i,name:"MuiSnackbarContent"}),{action:$,className:Z,message:et,role:_e="alert"}=j,nt=_objectWithoutPropertiesLoose$1(j,_excluded$3),rt=j,at=useUtilityClasses$3(rt);return jsxs(SnackbarContentRoot,_extends({role:_e,square:!0,elevation:6,className:clsx(at.root,Z),ownerState:rt,ref:s},nt,{children:[jsx(SnackbarContentMessage,{className:at.message,ownerState:rt,children:et}),$?jsx(SnackbarContentAction,{className:at.action,ownerState:rt,children:$}):null]}))});var SnackbarContent$1=SnackbarContent;function getSnackbarUtilityClass(o){return generateUtilityClass("MuiSnackbar",o)}generateUtilityClasses("MuiSnackbar",["root","anchorOriginTopCenter","anchorOriginBottomCenter","anchorOriginTopRight","anchorOriginBottomRight","anchorOriginTopLeft","anchorOriginBottomLeft"]);const _excluded$2=["onEnter","onExited"],_excluded2=["action","anchorOrigin","autoHideDuration","children","className","ClickAwayListenerProps","ContentProps","disableWindowBlurListener","message","onBlur","onClose","onFocus","onMouseEnter","onMouseLeave","open","resumeHideDuration","TransitionComponent","transitionDuration","TransitionProps"],useUtilityClasses$2=o=>{const{classes:i,anchorOrigin:s}=o,j={root:["root",`anchorOrigin${capitalize$1(s.vertical)}${capitalize$1(s.horizontal)}`]};return composeClasses(j,getSnackbarUtilityClass,i)},SnackbarRoot=styled$1("div",{name:"MuiSnackbar",slot:"Root",overridesResolver:(o,i)=>{const{ownerState:s}=o;return[i.root,i[`anchorOrigin${capitalize$1(s.anchorOrigin.vertical)}${capitalize$1(s.anchorOrigin.horizontal)}`]]}})(({theme:o,ownerState:i})=>{const s=_extends({},!i.isRtl&&{left:"50%",right:"auto",transform:"translateX(-50%)"},i.isRtl&&{right:"50%",left:"auto",transform:"translateX(50%)"});return _extends({zIndex:(o.vars||o).zIndex.snackbar,position:"fixed",display:"flex",left:8,right:8,justifyContent:"center",alignItems:"center"},i.anchorOrigin.vertical==="top"?{top:8}:{bottom:8},i.anchorOrigin.horizontal==="left"&&{justifyContent:"flex-start"},i.anchorOrigin.horizontal==="right"&&{justifyContent:"flex-end"},{[o.breakpoints.up("sm")]:_extends({},i.anchorOrigin.vertical==="top"?{top:24}:{bottom:24},i.anchorOrigin.horizontal==="center"&&s,i.anchorOrigin.horizontal==="left"&&_extends({},!i.isRtl&&{left:24,right:"auto"},i.isRtl&&{right:24,left:"auto"}),i.anchorOrigin.horizontal==="right"&&_extends({},!i.isRtl&&{right:24,left:"auto"},i.isRtl&&{left:24,right:"auto"}))})}),Snackbar=react.exports.forwardRef(function(i,s){const j=useThemeProps({props:i,name:"MuiSnackbar"}),$=useTheme(),Z={enter:$.transitions.duration.enteringScreen,exit:$.transitions.duration.leavingScreen},{action:et,anchorOrigin:{vertical:_e,horizontal:nt}={vertical:"bottom",horizontal:"left"},autoHideDuration:rt=null,children:at,className:ft,ClickAwayListenerProps:st,ContentProps:lt,disableWindowBlurListener:it=!1,message:ut,onBlur:pt,onClose:bt,onFocus:xt,onMouseEnter:vt,onMouseLeave:mt,open:ct,resumeHideDuration:Rt,TransitionComponent:Ft=Grow$1,transitionDuration:Ut=Z,TransitionProps:{onEnter:yt,onExited:ht}={}}=j,Ct=_objectWithoutPropertiesLoose$1(j.TransitionProps,_excluded$2),St=_objectWithoutPropertiesLoose$1(j,_excluded2),kt=$.direction==="rtl",Lt=_extends({},j,{anchorOrigin:{vertical:_e,horizontal:nt},isRtl:kt}),Mt=useUtilityClasses$2(Lt),Tt=react.exports.useRef(),[Ot,At]=react.exports.useState(!0),wt=useEventCallback((...Dt)=>{bt&&bt(...Dt)}),gt=useEventCallback(Dt=>{!bt||Dt==null||(clearTimeout(Tt.current),Tt.current=setTimeout(()=>{wt(null,"timeout")},Dt))});react.exports.useEffect(()=>(ct&>(rt),()=>{clearTimeout(Tt.current)}),[ct,rt,gt]);const Nt=()=>{clearTimeout(Tt.current)},Bt=react.exports.useCallback(()=>{rt!=null&>(Rt!=null?Rt:rt*.5)},[rt,Rt,gt]),Gt=Dt=>{xt&&xt(Dt),Nt()},Kt=Dt=>{vt&&vt(Dt),Nt()},Zt=Dt=>{pt&&pt(Dt),Bt()},zt=Dt=>{mt&&mt(Dt),Bt()},$t=Dt=>{bt&&bt(Dt,"clickaway")},Et=Dt=>{At(!0),ht&&ht(Dt)},It=(Dt,Jt)=>{At(!1),yt&&yt(Dt,Jt)};return react.exports.useEffect(()=>{if(!it&&ct)return window.addEventListener("focus",Bt),window.addEventListener("blur",Nt),()=>{window.removeEventListener("focus",Bt),window.removeEventListener("blur",Nt)}},[it,Bt,ct]),react.exports.useEffect(()=>{if(!ct)return;function Dt(Jt){Jt.defaultPrevented||(Jt.key==="Escape"||Jt.key==="Esc")&&bt&&bt(Jt,"escapeKeyDown")}return document.addEventListener("keydown",Dt),()=>{document.removeEventListener("keydown",Dt)}},[Ot,ct,bt]),!ct&&Ot?null:jsx(ClickAwayListener,_extends({onClickAway:$t},st,{children:jsx(SnackbarRoot,_extends({className:clsx(Mt.root,ft),onBlur:Zt,onFocus:Gt,onMouseEnter:Kt,onMouseLeave:zt,ownerState:Lt,ref:s,role:"presentation"},St,{children:jsx(Ft,_extends({appear:!0,in:ct,timeout:Ut,direction:_e==="top"?"down":"up",onEnter:It,onExited:Et},Ct,{children:at||jsx(SnackbarContent$1,_extends({message:ut,action:et},lt))}))}))}))});var Snackbar$1=Snackbar;function getSwitchUtilityClass(o){return generateUtilityClass("MuiSwitch",o)}const switchClasses=generateUtilityClasses("MuiSwitch",["root","edgeStart","edgeEnd","switchBase","colorPrimary","colorSecondary","sizeSmall","sizeMedium","checked","disabled","input","thumb","track"]);var switchClasses$1=switchClasses;const _excluded$1=["className","color","edge","size","sx"],useUtilityClasses$1=o=>{const{classes:i,edge:s,size:j,color:$,checked:Z,disabled:et}=o,_e={root:["root",s&&`edge${capitalize$1(s)}`,`size${capitalize$1(j)}`],switchBase:["switchBase",`color${capitalize$1($)}`,Z&&"checked",et&&"disabled"],thumb:["thumb"],track:["track"],input:["input"]},nt=composeClasses(_e,getSwitchUtilityClass,i);return _extends({},i,nt)},SwitchRoot=styled$1("span",{name:"MuiSwitch",slot:"Root",overridesResolver:(o,i)=>{const{ownerState:s}=o;return[i.root,s.edge&&i[`edge${capitalize$1(s.edge)}`],i[`size${capitalize$1(s.size)}`]]}})(({ownerState:o})=>_extends({display:"inline-flex",width:34+12*2,height:14+12*2,overflow:"hidden",padding:12,boxSizing:"border-box",position:"relative",flexShrink:0,zIndex:0,verticalAlign:"middle","@media print":{colorAdjust:"exact"}},o.edge==="start"&&{marginLeft:-8},o.edge==="end"&&{marginRight:-8},o.size==="small"&&{width:40,height:24,padding:7,[`& .${switchClasses$1.thumb}`]:{width:16,height:16},[`& .${switchClasses$1.switchBase}`]:{padding:4,[`&.${switchClasses$1.checked}`]:{transform:"translateX(16px)"}}})),SwitchSwitchBase=styled$1(SwitchBase$1,{name:"MuiSwitch",slot:"SwitchBase",overridesResolver:(o,i)=>{const{ownerState:s}=o;return[i.switchBase,{[`& .${switchClasses$1.input}`]:i.input},s.color!=="default"&&i[`color${capitalize$1(s.color)}`]]}})(({theme:o})=>({position:"absolute",top:0,left:0,zIndex:1,color:o.palette.mode==="light"?o.palette.common.white:o.palette.grey[300],transition:o.transitions.create(["left","transform"],{duration:o.transitions.duration.shortest}),[`&.${switchClasses$1.checked}`]:{transform:"translateX(20px)"},[`&.${switchClasses$1.disabled}`]:{color:o.palette.mode==="light"?o.palette.grey[100]:o.palette.grey[600]},[`&.${switchClasses$1.checked} + .${switchClasses$1.track}`]:{opacity:.5},[`&.${switchClasses$1.disabled} + .${switchClasses$1.track}`]:{opacity:o.palette.mode==="light"?.12:.2},[`& .${switchClasses$1.input}`]:{left:"-100%",width:"300%"}}),({theme:o,ownerState:i})=>_extends({"&:hover":{backgroundColor:alpha(o.palette.action.active,o.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},i.color!=="default"&&{[`&.${switchClasses$1.checked}`]:{color:o.palette[i.color].main,"&:hover":{backgroundColor:alpha(o.palette[i.color].main,o.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${switchClasses$1.disabled}`]:{color:o.palette.mode==="light"?lighten(o.palette[i.color].main,.62):darken(o.palette[i.color].main,.55)}},[`&.${switchClasses$1.checked} + .${switchClasses$1.track}`]:{backgroundColor:o.palette[i.color].main}})),SwitchTrack=styled$1("span",{name:"MuiSwitch",slot:"Track",overridesResolver:(o,i)=>i.track})(({theme:o})=>({height:"100%",width:"100%",borderRadius:14/2,zIndex:-1,transition:o.transitions.create(["opacity","background-color"],{duration:o.transitions.duration.shortest}),backgroundColor:o.palette.mode==="light"?o.palette.common.black:o.palette.common.white,opacity:o.palette.mode==="light"?.38:.3})),SwitchThumb=styled$1("span",{name:"MuiSwitch",slot:"Thumb",overridesResolver:(o,i)=>i.thumb})(({theme:o})=>({boxShadow:o.shadows[1],backgroundColor:"currentColor",width:20,height:20,borderRadius:"50%"})),Switch=react.exports.forwardRef(function(i,s){const j=useThemeProps({props:i,name:"MuiSwitch"}),{className:$,color:Z="primary",edge:et=!1,size:_e="medium",sx:nt}=j,rt=_objectWithoutPropertiesLoose$1(j,_excluded$1),at=_extends({},j,{color:Z,edge:et,size:_e}),ft=useUtilityClasses$1(at),st=jsx(SwitchThumb,{className:ft.thumb,ownerState:at});return jsxs(SwitchRoot,{className:clsx(ft.root,$),sx:nt,ownerState:at,children:[jsx(SwitchSwitchBase,_extends({type:"checkbox",icon:st,checkedIcon:st,ref:s,ownerState:at},rt,{classes:_extends({},ft,{root:ft.switchBase})})),jsx(SwitchTrack,{className:ft.track,ownerState:at})]})});var Switch$1=Switch;function getTextFieldUtilityClass(o){return generateUtilityClass("MuiTextField",o)}generateUtilityClasses("MuiTextField",["root"]);const _excluded=["autoComplete","autoFocus","children","className","color","defaultValue","disabled","error","FormHelperTextProps","fullWidth","helperText","id","InputLabelProps","inputProps","InputProps","inputRef","label","maxRows","minRows","multiline","name","onBlur","onChange","onFocus","placeholder","required","rows","select","SelectProps","type","value","variant"],variantComponent={standard:Input$1,filled:FilledInput$1,outlined:OutlinedInput$1},useUtilityClasses=o=>{const{classes:i}=o;return composeClasses({root:["root"]},getTextFieldUtilityClass,i)},TextFieldRoot=styled$1(FormControl$1,{name:"MuiTextField",slot:"Root",overridesResolver:(o,i)=>i.root})({}),TextField=react.exports.forwardRef(function(i,s){const j=useThemeProps({props:i,name:"MuiTextField"}),{autoComplete:$,autoFocus:Z=!1,children:et,className:_e,color:nt="primary",defaultValue:rt,disabled:at=!1,error:ft=!1,FormHelperTextProps:st,fullWidth:lt=!1,helperText:it,id:ut,InputLabelProps:pt,inputProps:bt,InputProps:xt,inputRef:vt,label:mt,maxRows:ct,minRows:Rt,multiline:Ft=!1,name:Ut,onBlur:yt,onChange:ht,onFocus:Ct,placeholder:St,required:kt=!1,rows:Lt,select:Mt=!1,SelectProps:Tt,type:Ot,value:At,variant:wt="outlined"}=j,gt=_objectWithoutPropertiesLoose$1(j,_excluded),Nt=_extends({},j,{autoFocus:Z,color:nt,disabled:at,error:ft,fullWidth:lt,multiline:Ft,required:kt,select:Mt,variant:wt}),Bt=useUtilityClasses(Nt),Gt={};wt==="outlined"&&(pt&&typeof pt.shrink!="undefined"&&(Gt.notched=pt.shrink),Gt.label=mt),Mt&&((!Tt||!Tt.native)&&(Gt.id=void 0),Gt["aria-describedby"]=void 0);const Kt=useId(ut),Zt=it&&Kt?`${Kt}-helper-text`:void 0,zt=mt&&Kt?`${Kt}-label`:void 0,$t=variantComponent[wt],Et=jsx($t,_extends({"aria-describedby":Zt,autoComplete:$,autoFocus:Z,defaultValue:rt,fullWidth:lt,multiline:Ft,name:Ut,rows:Lt,maxRows:ct,minRows:Rt,type:Ot,value:At,id:Kt,inputRef:vt,onBlur:yt,onChange:ht,onFocus:Ct,placeholder:St,inputProps:bt},Gt,xt));return jsxs(TextFieldRoot,_extends({className:clsx(Bt.root,_e),disabled:at,error:ft,fullWidth:lt,ref:s,required:kt,color:nt,variant:wt,ownerState:Nt},gt,{children:[mt!=null&&mt!==""&&jsx(InputLabel$1,_extends({htmlFor:Kt,id:zt},pt,{children:mt})),Mt?jsx(Select$1$1,_extends({"aria-describedby":Zt,id:Kt,labelId:zt,value:At,input:Et},Tt,{children:et})):Et,it&&jsx(FormHelperText$1,_extends({id:Zt},st,{children:it}))]}))});var TextField$1=TextField,__defProp2=Object.defineProperty,__getOwnPropSymbols2=Object.getOwnPropertySymbols,__hasOwnProp2=Object.prototype.hasOwnProperty,__propIsEnum2=Object.prototype.propertyIsEnumerable,__defNormalProp2=(o,i,s)=>i in o?__defProp2(o,i,{enumerable:!0,configurable:!0,writable:!0,value:s}):o[i]=s,__spreadValues2=(o,i)=>{for(var s in i||(i={}))__hasOwnProp2.call(i,s)&&__defNormalProp2(o,s,i[s]);if(__getOwnPropSymbols2)for(var s of __getOwnPropSymbols2(i))__propIsEnum2.call(i,s)&&__defNormalProp2(o,s,i[s]);return o};const baseTheme=createTheme({typography:{fontFamily:"'Moderat', 'Inter', 'Source Sans Pro', sans-serif",h1:{fontStyle:"normal",fontWeight:"normal",fontSize:"2rem",lineHeight:"2.5rem",letterSpacing:0},h2:{fontStyle:"normal",fontWeight:"normal",fontSize:"1.5rem",lineHeight:"2.125rem",letterSpacing:"0.069rem",fontFeatureSettings:'"zero" on'},h3:{fontStyle:"normal",fontWeight:500,fontSize:"1.125rem",lineHeight:"1.688rem",letterSpacing:"0.069rem"},h4:{fontStyle:"normal",fontWeight:700,fontSize:"0.813rem",lineHeight:"1.375rem",letterSpacing:"0.069rem",textTransform:"uppercase"},h5:{fontStyle:"normal",fontWeight:700,fontSize:"0.813rem",lineHeight:"1.125rem",letterSpacing:"0.038rem",textTransform:"uppercase"},h6:{fontStyle:"normal",fontWeight:"normal",fontSize:"0.625rem",lineHeight:"0.938rem",letterSpacing:"0.063rem"},body1:{fontStyle:"normal",fontWeight:"normal",fontSize:"1rem",lineHeight:"1.688rem",letterSpacing:"0.063rem",fontFeatureSettings:'"zero" on'},body2:{fontStyle:"normal",fontWeight:"normal",fontSize:"1rem",lineHeight:"1.688rem",letterSpacing:"0.063rem",fontFeatureSettings:'"zero" on',fontVariantNumeric:"tabular-nums"},button:{fontWeight:500,fontSize:"0.875rem",lineHeight:"1.05rem",letterSpacing:"0.053.rem",textTransform:"uppercase"}}}),lightPalette={palette:{mode:"light",success:{main:"#34dea9",dark:"#2d8376"},info:{main:"#297ceb",dark:"#256faf",light:"#3BABFF"},error:{main:"#fd76a7",dark:"#7f5072"},warning:{main:"#ffb179",dark:"#94645f"},primary:{main:"#657197",light:"#BAC4E2",dark:"#3B4668"},secondary:{main:"#3babff",dark:"#76a7dc"},background:{default:"#FFFFFF",paper:"#F1F3F9"},common:{black:"#ffffff",white:"#000000"}}},darkPalette={palette:{mode:"dark",primary:{main:"#657197",dark:"#3B4668",light:"#BAC4E2",contrastText:"#ffffff"},secondary:{main:"#18d2ff",light:"#18d2ff",dark:"#256faf"},background:{default:"#2d3855",paper:"#2d3855"},common:{black:"#000000",white:"#ffffff"},text:{primary:"#bac4e2"},error:{main:"#ea719d",dark:"#7F5072"},warning:{main:"#a961e4",dark:"#564A94"},info:{main:"#20a0ff",dark:"#256FAF"},success:{main:"#2ec495",dark:"#2D8376"}}};function createComponents(o){const i={components:{MuiCssBaseline:{styleOverrides:{body:{"&::-webkit-scrollbar, & *::-webkit-scrollbar":{background:"transparent",width:"0.5rem",height:"0.5rem"},"&::-webkit-scrollbar-thumb, & *::-webkit-scrollbar-thumb":{background:o.palette.primary.light,borderRadius:"0.25rem"},"&::-webkit-scrollbar-thumb:hover, & *::-webkit-scrollbar-thumb:hover":{backgroundColor:o.palette.primary.light},"&::-webkit-scrollbar-corner, & *::-webkit-scrollbar-corner":{backgroundColor:o.palette.primary.light}}}},MuiLink:{styleOverrides:{root:{color:o.palette.secondary.main}}},MuiDialogActions:{styleOverrides:{root:{padding:baseTheme.spacing(3)}}},MuiInputLabel:{styleOverrides:{root:{color:o.palette.primary.light,"&.Mui-focused":{color:o.palette.secondary.main}}}},MuiFilledInput:{styleOverrides:{root:{backgroundColor:o.palette.primary.dark,borderTop:"1px solid transparent",":before":{borderBottom:`1px dotted ${o.palette.primary.light}`},"&.Mui-focused":{background:o.palette.common.black,border:`1px solid ${o.palette.secondary.main}`,borderBottom:"none",borderTop:`1px solid ${o.palette.secondary.main}`},":after":{borderBottom:`1px solid ${o.palette.secondary.main}`}}}},MuiOutlinedInput:{styleOverrides:{input:{"&:-webkit-autofill":{"-webkit-box-shadow":`0 0 0 100px ${o.palette.primary.dark} inset`,"-webkit-text-fill-color":o.palette.primary.light}}}},MuiTooltip:{styleOverrides:{tooltip:{backgroundColor:"rgba(0, 0, 0, 0.87)",color:"white",padding:baseTheme.spacing(1.2)}}},MuiDialogTitle:{styleOverrides:{root:__spreadValues2({color:o.palette.common.white,fontStyle:"normal",fontWeight:500},baseTheme.typography.h3)}},MuiDialogContentText:{styleOverrides:{root:{color:o.palette.primary.light}}},MuiButtonBase:{defaultProps:{disableRipple:!0}},MuiButton:{styleOverrides:{root:{willChange:"background-color , color , border-color , box-shadow",transition:"background-color 200ms ease-in-out 0ms , color 200ms ease-in-out 0ms , border-color 200ms ease-in-out 0ms , box-shadow 200ms ease-in-out 0ms",borderRadius:40,boxShadow:`0 0 0 0rem ${o.palette.primary.main}`,"&.Mui-disabled":{color:o.palette.primary.main}},sizeSmall:{height:"1.25rem",fontWeight:500,fontSize:"0.688rem",lineHeight:"0.825rem",letterSpacing:"0.047rem"},sizeMedium:{height:"1.813rem",fontWeight:500},sizeLarge:{height:"2.563rem",fontWeight:500,fontSize:"0.875rem",lineHeight:"1.05rem",letterSpacing:"0.053rem"},containedPrimary:{background:o.palette.primary.light,color:o.palette.common.black,"@media(hover: hover)":{"&:hover":{boxShadow:`0 0 0 0.4rem ${o.palette.primary.light}`,background:o.palette.primary.light}}},containedSecondary:{color:o.palette.common.black,"@media(hover: hover)":{"&:hover":{boxShadow:`0 0 0 0.4rem ${o.palette.secondary.main}`,background:o.palette.secondary.main}}},outlinedPrimary:{color:o.palette.primary.light}}},MuiDialog:{styleOverrides:{paper:{background:o.palette.background.paper}}},MuiNativeSelect:{styleOverrides:{root:{backgroundColor:o.palette.primary.dark,borderTop:"1px solid transparent"},icon:{color:o.palette.primary.light}}},MuiSelect:{styleOverrides:{icon:{color:o.palette.primary.light}}},MuiSnackbarContent:{styleOverrides:{root:{backgroundColor:o.palette.primary.dark,color:o.palette.primary.light}}},MuiSwitch:{styleOverrides:{switchBase:{"&.Mui-checked+.MuiSwitch-track":{backgroundColor:o.palette.common.black},"&.Mui-checked .MuiSwitch-thumb":{backgroundColor:o.palette.secondary.main}},thumb:{backgroundColor:o.palette.primary.light},track:{backgroundColor:o.palette.common.black}}}}};return createTheme(o,i)}const darkTheme=createComponents(createTheme(baseTheme,darkPalette)),lightTheme=createComponents(createTheme(baseTheme,lightPalette)),defaultTheme=darkTheme,FormantContext=react.exports.createContext(void 0);function FormantProvider({theme:o,children:i}){const s=createTheme(o==="dark"?darkTheme:o==="light"?lightTheme:defaultTheme),j={};return react.exports.createElement(ThemeProvider,{theme:s},react.exports.createElement(CssBaseline,null,react.exports.createElement(FormantContext.Provider,{value:j},i)))}var commonjsGlobal=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{},lib={},uaParser_min={exports:{}};(function(o,i){(function(s,j){var $="1.0.2",Z="",et="?",_e="function",nt="undefined",rt="object",at="string",ft="major",st="model",lt="name",it="type",ut="vendor",pt="version",bt="architecture",xt="console",vt="mobile",mt="tablet",ct="smarttv",Rt="wearable",Ft="embedded",Ut=255,yt="Amazon",ht="Apple",Ct="ASUS",St="BlackBerry",kt="Browser",Lt="Chrome",Mt="Edge",Tt="Firefox",Ot="Google",At="Huawei",wt="LG",gt="Microsoft",Nt="Motorola",Bt="Opera",Gt="Samsung",Kt="Sony",Zt="Xiaomi",zt="Zebra",$t="Facebook",Et=function(mn,vn){var un={};for(var fn in mn)vn[fn]&&vn[fn].length%2===0?un[fn]=vn[fn].concat(mn[fn]):un[fn]=mn[fn];return un},It=function(mn){for(var vn={},un=0;un0?Tn.length===2?typeof Tn[1]==_e?this[Tn[0]]=Tn[1].call(this,Pn):this[Tn[0]]=Tn[1]:Tn.length===3?typeof Tn[1]===_e&&!(Tn[1].exec&&Tn[1].test)?this[Tn[0]]=Pn?Tn[1].call(this,Pn,Tn[2]):j:this[Tn[0]]=Pn?Pn.replace(Tn[1],Tn[2]):j:Tn.length===4&&(this[Tn[0]]=Pn?Tn[3].call(this,Pn.replace(Tn[1],Tn[2])):j):this[Tn]=Pn||j;un+=2}},sn=function(mn,vn){for(var un in vn)if(typeof vn[un]===rt&&vn[un].length>0){for(var fn=0;fnUt?nn(An,Ut):An,this},this.setUA(un),this};hn.VERSION=$,hn.BROWSER=It([lt,pt,ft]),hn.CPU=It([bt]),hn.DEVICE=It([st,ut,it,xt,vt,ct,mt,Rt,Ft]),hn.ENGINE=hn.OS=It([lt,pt]),o.exports&&(i=o.exports=hn),i.UAParser=hn;var an=typeof s!==nt&&(s.jQuery||s.Zepto);if(an&&!an.ua){var _n=new hn;an.ua=_n.getResult(),an.ua.get=function(){return _n.getUA()},an.ua.set=function(mn){_n.setUA(mn);var vn=_n.getResult();for(var un in vn)an.ua[un]=vn[un]}}})(typeof window=="object"?window:commonjsGlobal)})(uaParser_min,uaParser_min.exports);Object.defineProperty(lib,"__esModule",{value:!0});function _interopDefault(o){return o&&typeof o=="object"&&"default"in o?o.default:o}var React=React$1,React__default=_interopDefault(React),UAParser=uaParser_min.exports,ClientUAInstance=new UAParser,browser=ClientUAInstance.getBrowser(),cpu=ClientUAInstance.getCPU(),device=ClientUAInstance.getDevice(),engine=ClientUAInstance.getEngine(),os=ClientUAInstance.getOS(),ua=ClientUAInstance.getUA(),setUa=function(i){return ClientUAInstance.setUA(i)},parseUserAgent=function(i){if(!i){console.error("No userAgent string was provided");return}var s=new UAParser(i);return{UA:s,browser:s.getBrowser(),cpu:s.getCPU(),device:s.getDevice(),engine:s.getEngine(),os:s.getOS(),ua:s.getUA(),setUserAgent:function($){return s.setUA($)}}},UAHelper=Object.freeze({ClientUAInstance,browser,cpu,device,engine,os,ua,setUa,parseUserAgent});function ownKeys(o,i){var s=Object.keys(o);if(Object.getOwnPropertySymbols){var j=Object.getOwnPropertySymbols(o);i&&(j=j.filter(function($){return Object.getOwnPropertyDescriptor(o,$).enumerable})),s.push.apply(s,j)}return s}function _objectSpread2(o){for(var i=1;i=0)&&(s[$]=o[$]);return s}function _objectWithoutProperties(o,i){if(o==null)return{};var s=_objectWithoutPropertiesLoose(o,i),j,$;if(Object.getOwnPropertySymbols){var Z=Object.getOwnPropertySymbols(o);for($=0;$=0)&&(!Object.prototype.propertyIsEnumerable.call(o,j)||(s[j]=o[j]))}return s}function _assertThisInitialized(o){if(o===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return o}function _possibleConstructorReturn(o,i){if(i&&(typeof i=="object"||typeof i=="function"))return i;if(i!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized(o)}function _slicedToArray(o,i){return _arrayWithHoles(o)||_iterableToArrayLimit(o,i)||_unsupportedIterableToArray(o,i)||_nonIterableRest()}function _arrayWithHoles(o){if(Array.isArray(o))return o}function _iterableToArrayLimit(o,i){var s=o==null?null:typeof Symbol!="undefined"&&o[Symbol.iterator]||o["@@iterator"];if(s!=null){var j=[],$=!0,Z=!1,et,_e;try{for(s=s.call(o);!($=(et=s.next()).done)&&(j.push(et.value),!(i&&j.length===i));$=!0);}catch(nt){Z=!0,_e=nt}finally{try{!$&&s.return!=null&&s.return()}finally{if(Z)throw _e}}return j}}function _unsupportedIterableToArray(o,i){if(!!o){if(typeof o=="string")return _arrayLikeToArray(o,i);var s=Object.prototype.toString.call(o).slice(8,-1);if(s==="Object"&&o.constructor&&(s=o.constructor.name),s==="Map"||s==="Set")return Array.from(o);if(s==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(s))return _arrayLikeToArray(o,i)}}function _arrayLikeToArray(o,i){(i==null||i>o.length)&&(i=o.length);for(var s=0,j=new Array(i);s1&&arguments[1]!==void 0?arguments[1]:"none";return i||s},getNavigatorInstance=function(){return typeof window!="undefined"&&(window.navigator||navigator)?window.navigator||navigator:!1},isIOS13Check=function(i){var s=getNavigatorInstance();return s&&s.platform&&(s.platform.indexOf(i)!==-1||s.platform==="MacIntel"&&s.maxTouchPoints>1&&!window.MSStream)},browserPayload=function(i,s,j,$,Z){return{isBrowser:i,browserMajorVersion:setDefaults(s.major),browserFullVersion:setDefaults(s.version),browserName:setDefaults(s.name),engineName:setDefaults(j.name),engineVersion:setDefaults(j.version),osName:setDefaults($.name),osVersion:setDefaults($.version),userAgent:setDefaults(Z)}},mobilePayload=function(i,s,j,$){return _objectSpread2({},i,{vendor:setDefaults(s.vendor),model:setDefaults(s.model),os:setDefaults(j.name),osVersion:setDefaults(j.version),ua:setDefaults($)})},smartTvPayload=function(i,s,j,$){return{isSmartTV:i,engineName:setDefaults(s.name),engineVersion:setDefaults(s.version),osName:setDefaults(j.name),osVersion:setDefaults(j.version),userAgent:setDefaults($)}},consolePayload=function(i,s,j,$){return{isConsole:i,engineName:setDefaults(s.name),engineVersion:setDefaults(s.version),osName:setDefaults(j.name),osVersion:setDefaults(j.version),userAgent:setDefaults($)}},wearablePayload=function(i,s,j,$){return{isWearable:i,engineName:setDefaults(s.name),engineVersion:setDefaults(s.version),osName:setDefaults(j.name),osVersion:setDefaults(j.version),userAgent:setDefaults($)}},embeddedPayload=function(i,s,j,$,Z){return{isEmbedded:i,vendor:setDefaults(s.vendor),model:setDefaults(s.model),engineName:setDefaults(j.name),engineVersion:setDefaults(j.version),osName:setDefaults($.name),osVersion:setDefaults($.version),userAgent:setDefaults(Z)}};function deviceDetect(o){var i=o?parseUserAgent(o):UAHelper,s=i.device,j=i.browser,$=i.engine,Z=i.os,et=i.ua,_e=checkDeviceType(s.type),nt=_e.isBrowser,rt=_e.isMobile,at=_e.isTablet,ft=_e.isSmartTV,st=_e.isConsole,lt=_e.isWearable,it=_e.isEmbedded;if(nt)return browserPayload(nt,j,$,Z,et);if(ft)return smartTvPayload(ft,$,Z,et);if(st)return consolePayload(st,$,Z,et);if(rt||at)return mobilePayload(_e,s,Z,et);if(lt)return wearablePayload(lt,$,Z,et);if(it)return embeddedPayload(it,s,$,Z,et)}var isMobileType=function(i){var s=i.type;return s===DeviceTypes.Mobile},isTabletType=function(i){var s=i.type;return s===DeviceTypes.Tablet},isMobileAndTabletType=function(i){var s=i.type;return s===DeviceTypes.Mobile||s===DeviceTypes.Tablet},isSmartTVType=function(i){var s=i.type;return s===DeviceTypes.SmartTv},isBrowserType=function(i){var s=i.type;return s===DeviceTypes.Browser},isWearableType=function(i){var s=i.type;return s===DeviceTypes.Wearable},isConsoleType=function(i){var s=i.type;return s===DeviceTypes.Console},isEmbeddedType=function(i){var s=i.type;return s===DeviceTypes.Embedded},getMobileVendor=function(i){var s=i.vendor;return setDefaults(s)},getMobileModel=function(i){var s=i.model;return setDefaults(s)},getDeviceType=function(i){var s=i.type;return setDefaults(s,"browser")},isAndroidType=function(i){var s=i.name;return s===OsTypes.Android},isWindowsType=function(i){var s=i.name;return s===OsTypes.Windows},isMacOsType=function(i){var s=i.name;return s===OsTypes.MAC_OS},isWinPhoneType=function(i){var s=i.name;return s===OsTypes.WindowsPhone},isIOSType=function(i){var s=i.name;return s===OsTypes.IOS},getOsVersion=function(i){var s=i.version;return setDefaults(s)},getOsName=function(i){var s=i.name;return setDefaults(s)},isChromeType=function(i){var s=i.name;return s===BrowserTypes.Chrome},isFirefoxType=function(i){var s=i.name;return s===BrowserTypes.Firefox},isChromiumType=function(i){var s=i.name;return s===BrowserTypes.Chromium},isEdgeType=function(i){var s=i.name;return s===BrowserTypes.Edge},isYandexType=function(i){var s=i.name;return s===BrowserTypes.Yandex},isSafariType=function(i){var s=i.name;return s===BrowserTypes.Safari||s===BrowserTypes.MobileSafari},isMobileSafariType=function(i){var s=i.name;return s===BrowserTypes.MobileSafari},isOperaType=function(i){var s=i.name;return s===BrowserTypes.Opera},isIEType=function(i){var s=i.name;return s===BrowserTypes.InternetExplorer||s===BrowserTypes.Ie},isMIUIType=function(i){var s=i.name;return s===BrowserTypes.MIUI},isSamsungBrowserType=function(i){var s=i.name;return s===BrowserTypes.SamsungBrowser},getBrowserFullVersion=function(i){var s=i.version;return setDefaults(s)},getBrowserVersion=function(i){var s=i.major;return setDefaults(s)},getBrowserName=function(i){var s=i.name;return setDefaults(s)},getEngineName=function(i){var s=i.name;return setDefaults(s)},getEngineVersion=function(i){var s=i.version;return setDefaults(s)},isElectronType=function(){var i=getNavigatorInstance(),s=i&&i.userAgent&&i.userAgent.toLowerCase();return typeof s=="string"?/electron/.test(s):!1},isEdgeChromiumType=function(i){return typeof i=="string"&&i.indexOf("Edg/")!==-1},getIOS13=function(){var i=getNavigatorInstance();return i&&(/iPad|iPhone|iPod/.test(i.platform)||i.platform==="MacIntel"&&i.maxTouchPoints>1)&&!window.MSStream},getIPad13=function(){return isIOS13Check("iPad")},getIphone13=function(){return isIOS13Check("iPhone")},getIPod13=function(){return isIOS13Check("iPod")},getUseragent=function(i){return setDefaults(i)};function buildSelectorsObject(o){var i=o||UAHelper,s=i.device,j=i.browser,$=i.os,Z=i.engine,et=i.ua;return{isSmartTV:isSmartTVType(s),isConsole:isConsoleType(s),isWearable:isWearableType(s),isEmbedded:isEmbeddedType(s),isMobileSafari:isMobileSafariType(j)||getIPad13(),isChromium:isChromiumType(j),isMobile:isMobileAndTabletType(s)||getIPad13(),isMobileOnly:isMobileType(s),isTablet:isTabletType(s)||getIPad13(),isBrowser:isBrowserType(s),isDesktop:isBrowserType(s),isAndroid:isAndroidType($),isWinPhone:isWinPhoneType($),isIOS:isIOSType($)||getIPad13(),isChrome:isChromeType(j),isFirefox:isFirefoxType(j),isSafari:isSafariType(j),isOpera:isOperaType(j),isIE:isIEType(j),osVersion:getOsVersion($),osName:getOsName($),fullBrowserVersion:getBrowserFullVersion(j),browserVersion:getBrowserVersion(j),browserName:getBrowserName(j),mobileVendor:getMobileVendor(s),mobileModel:getMobileModel(s),engineName:getEngineName(Z),engineVersion:getEngineVersion(Z),getUA:getUseragent(et),isEdge:isEdgeType(j)||isEdgeChromiumType(et),isYandex:isYandexType(j),deviceType:getDeviceType(s),isIOS13:getIOS13(),isIPad13:getIPad13(),isIPhone13:getIphone13(),isIPod13:getIPod13(),isElectron:isElectronType(),isEdgeChromium:isEdgeChromiumType(et),isLegacyEdge:isEdgeType(j)&&!isEdgeChromiumType(et),isWindows:isWindowsType($),isMacOs:isMacOsType($),isMIUI:isMIUIType(j),isSamsungBrowser:isSamsungBrowserType(j)}}var isSmartTV=isSmartTVType(device),isConsole=isConsoleType(device),isWearable=isWearableType(device),isEmbedded=isEmbeddedType(device),isMobileSafari=isMobileSafariType(browser)||getIPad13(),isChromium=isChromiumType(browser),isMobile=isMobileAndTabletType(device)||getIPad13(),isMobileOnly=isMobileType(device),isTablet=isTabletType(device)||getIPad13(),isBrowser=isBrowserType(device),isDesktop=isBrowserType(device),isAndroid=isAndroidType(os),isWinPhone=isWinPhoneType(os),isIOS=isIOSType(os)||getIPad13(),isChrome=isChromeType(browser),isFirefox=isFirefoxType(browser),isSafari=isSafariType(browser),isOpera=isOperaType(browser),isIE=isIEType(browser),osVersion=getOsVersion(os),osName=getOsName(os),fullBrowserVersion=getBrowserFullVersion(browser),browserVersion=getBrowserVersion(browser),browserName=getBrowserName(browser),mobileVendor=getMobileVendor(device),mobileModel=getMobileModel(device),engineName=getEngineName(engine),engineVersion=getEngineVersion(engine),getUA=getUseragent(ua),isEdge=isEdgeType(browser)||isEdgeChromiumType(ua),isYandex=isYandexType(browser),deviceType=getDeviceType(device),isIOS13=getIOS13(),isIPad13=getIPad13(),isIPhone13=getIphone13(),isIPod13=getIPod13(),isElectron=isElectronType(),isEdgeChromium=isEdgeChromiumType(ua),isLegacyEdge=isEdgeType(browser)&&!isEdgeChromiumType(ua),isWindows=isWindowsType(os),isMacOs=isMacOsType(os),isMIUI=isMIUIType(browser),isSamsungBrowser=isSamsungBrowserType(browser),getSelectorsByUserAgent=function(i){if(!i||typeof i!="string"){console.error("No valid user agent string was provided");return}var s=parseUserAgent(i),j=s.device,$=s.browser,Z=s.os,et=s.engine,_e=s.ua;return buildSelectorsObject({device:j,browser:$,os:Z,engine:et,ua:_e})},AndroidView=function(i){var s=i.renderWithFragment,j=i.children,$=_objectWithoutProperties(i,["renderWithFragment","children"]);return isAndroid?s?jsx(Fragment,{children:j}):jsx("div",Sr(wr({},$),{children:j})):null},BrowserView=function(i){var s=i.renderWithFragment,j=i.children,$=_objectWithoutProperties(i,["renderWithFragment","children"]);return isBrowser?s?jsx(Fragment,{children:j}):jsx("div",Sr(wr({},$),{children:j})):null},IEView=function(i){var s=i.renderWithFragment,j=i.children,$=_objectWithoutProperties(i,["renderWithFragment","children"]);return isIE?s?jsx(Fragment,{children:j}):jsx("div",Sr(wr({},$),{children:j})):null},IOSView=function(i){var s=i.renderWithFragment,j=i.children,$=_objectWithoutProperties(i,["renderWithFragment","children"]);return isIOS?s?jsx(Fragment,{children:j}):jsx("div",Sr(wr({},$),{children:j})):null},MobileView=function(i){var s=i.renderWithFragment,j=i.children,$=_objectWithoutProperties(i,["renderWithFragment","children"]);return isMobile?s?jsx(Fragment,{children:j}):jsx("div",Sr(wr({},$),{children:j})):null},TabletView=function(i){var s=i.renderWithFragment,j=i.children,$=_objectWithoutProperties(i,["renderWithFragment","children"]);return isTablet?s?jsx(Fragment,{children:j}):jsx("div",Sr(wr({},$),{children:j})):null},WinPhoneView=function(i){var s=i.renderWithFragment,j=i.children,$=_objectWithoutProperties(i,["renderWithFragment","children"]);return isWinPhone?s?jsx(Fragment,{children:j}):jsx("div",Sr(wr({},$),{children:j})):null},MobileOnlyView=function(i){var s=i.renderWithFragment,j=i.children;i.viewClassName,i.style;var $=_objectWithoutProperties(i,["renderWithFragment","children","viewClassName","style"]);return isMobileOnly?s?jsx(Fragment,{children:j}):jsx("div",Sr(wr({},$),{children:j})):null},SmartTVView=function(i){var s=i.renderWithFragment,j=i.children,$=_objectWithoutProperties(i,["renderWithFragment","children"]);return isSmartTV?s?jsx(Fragment,{children:j}):jsx("div",Sr(wr({},$),{children:j})):null},ConsoleView=function(i){var s=i.renderWithFragment,j=i.children,$=_objectWithoutProperties(i,["renderWithFragment","children"]);return isConsole?s?jsx(Fragment,{children:j}):jsx("div",Sr(wr({},$),{children:j})):null},WearableView=function(i){var s=i.renderWithFragment,j=i.children,$=_objectWithoutProperties(i,["renderWithFragment","children"]);return isWearable?s?jsx(Fragment,{children:j}):jsx("div",Sr(wr({},$),{children:j})):null},CustomView=function(i){var s=i.renderWithFragment,j=i.children;i.viewClassName,i.style;var $=i.condition,Z=_objectWithoutProperties(i,["renderWithFragment","children","viewClassName","style","condition"]);return $?s?jsx(Fragment,{children:j}):jsx("div",Sr(wr({},Z),{children:j})):null};function withOrientationChange(o){return function(i){_inherits(s,i);function s(j){var $;return _classCallCheck(this,s),$=_possibleConstructorReturn(this,_getPrototypeOf(s).call(this,j)),$.isEventListenerAdded=!1,$.handleOrientationChange=$.handleOrientationChange.bind(_assertThisInitialized($)),$.onOrientationChange=$.onOrientationChange.bind(_assertThisInitialized($)),$.onPageLoad=$.onPageLoad.bind(_assertThisInitialized($)),$.state={isLandscape:!1,isPortrait:!1},$}return _createClass(s,[{key:"handleOrientationChange",value:function(){this.isEventListenerAdded||(this.isEventListenerAdded=!0);var $=window.innerWidth>window.innerHeight?90:0;this.setState({isPortrait:$===0,isLandscape:$===90})}},{key:"onOrientationChange",value:function(){this.handleOrientationChange()}},{key:"onPageLoad",value:function(){this.handleOrientationChange()}},{key:"componentDidMount",value:function(){(typeof window=="undefined"?"undefined":_typeof(window))!==void 0&&isMobile&&(this.isEventListenerAdded?window.removeEventListener("load",this.onPageLoad,!1):(this.handleOrientationChange(),window.addEventListener("load",this.onPageLoad,!1)),window.addEventListener("resize",this.onOrientationChange,!1))}},{key:"componentWillUnmount",value:function(){window.removeEventListener("resize",this.onOrientationChange,!1)}},{key:"render",value:function(){return jsx(o,Sr(wr({},this.props),{isLandscape:this.state.isLandscape,isPortrait:this.state.isPortrait}))}}]),s}(React__default.Component)}function useMobileOrientation(){var o=React.useState(function(){var Z=window.innerWidth>window.innerHeight?90:0;return{isPortrait:Z===0,isLandscape:Z===90,orientation:Z===0?"portrait":"landscape"}}),i=_slicedToArray(o,2),s=i[0],j=i[1],$=React.useCallback(function(){var Z=window.innerWidth>window.innerHeight?90:0,et={isPortrait:Z===0,isLandscape:Z===90,orientation:Z===0?"portrait":"landscape"};s.orientation!==et.orientation&&j(et)},[s.orientation]);return React.useEffect(function(){return(typeof window=="undefined"?"undefined":_typeof(window))!==void 0&&isMobile&&($(),window.addEventListener("load",$,!1),window.addEventListener("resize",$,!1)),function(){window.removeEventListener("resize",$,!1),window.removeEventListener("load",$,!1)}},[$]),s}function useDeviceData(o){var i=o||window.navigator.userAgent;return parseUserAgent(i)}function useDeviceSelectors(o){var i=o||window.navigator.userAgent,s=useDeviceData(i),j=buildSelectorsObject(s);return[j,s]}lib.AndroidView=AndroidView;lib.BrowserTypes=BrowserTypes;var BrowserView_1=lib.BrowserView=BrowserView;lib.ConsoleView=ConsoleView;lib.CustomView=CustomView;lib.IEView=IEView;lib.IOSView=IOSView;lib.MobileOnlyView=MobileOnlyView;var MobileView_1=lib.MobileView=MobileView;lib.OsTypes=OsTypes;lib.SmartTVView=SmartTVView;lib.TabletView=TabletView;lib.WearableView=WearableView;lib.WinPhoneView=WinPhoneView;lib.browserName=browserName;lib.browserVersion=browserVersion;lib.deviceDetect=deviceDetect;lib.deviceType=deviceType;lib.engineName=engineName;lib.engineVersion=engineVersion;lib.fullBrowserVersion=fullBrowserVersion;lib.getSelectorsByUserAgent=getSelectorsByUserAgent;lib.getUA=getUA;lib.isAndroid=isAndroid;lib.isBrowser=isBrowser;lib.isChrome=isChrome;lib.isChromium=isChromium;lib.isConsole=isConsole;lib.isDesktop=isDesktop;lib.isEdge=isEdge;lib.isEdgeChromium=isEdgeChromium;lib.isElectron=isElectron;lib.isEmbedded=isEmbedded;lib.isFirefox=isFirefox;lib.isIE=isIE;lib.isIOS=isIOS;lib.isIOS13=isIOS13;lib.isIPad13=isIPad13;lib.isIPhone13=isIPhone13;lib.isIPod13=isIPod13;lib.isLegacyEdge=isLegacyEdge;lib.isMIUI=isMIUI;lib.isMacOs=isMacOs;lib.isMobile=isMobile;lib.isMobileOnly=isMobileOnly;lib.isMobileSafari=isMobileSafari;lib.isOpera=isOpera;lib.isSafari=isSafari;lib.isSamsungBrowser=isSamsungBrowser;lib.isSmartTV=isSmartTV;lib.isTablet=isTablet;lib.isWearable=isWearable;lib.isWinPhone=isWinPhone;lib.isWindows=isWindows;lib.isYandex=isYandex;lib.mobileModel=mobileModel;lib.mobileVendor=mobileVendor;lib.osName=osName;lib.osVersion=osVersion;lib.parseUserAgent=parseUserAgent;lib.setUserAgent=setUserAgent;lib.useDeviceData=useDeviceData;lib.useDeviceSelectors=useDeviceSelectors;lib.useMobileOrientation=useMobileOrientation;lib.withOrientationChange=withOrientationChange;function Select(o){const i=j=>{o.onChange&&o.onChange(j.target.value)},s=j=>{o.onChange&&o.onChange(j.target.value)};return React$1.createElement(React$1.Fragment,null,React$1.createElement(MobileView_1,null,React$1.createElement(FormControl$1,{sx:__spreadValues2({minWidth:"20rem"},o.sx||{}),fullWidth:o.fullWidth},React$1.createElement(NativeSelect$1,{value:o.value,onChange:s},(o.items||[]).map(j=>React$1.createElement("option",{key:j.label,value:j.value},j.label))))),React$1.createElement(BrowserView_1,null,React$1.createElement(FormControl$1,{sx:__spreadValues2({minWidth:"20rem"},o.sx||{}),fullWidth:o.fullWidth,variant:"filled"},React$1.createElement(InputLabel$1,null,o.label),React$1.createElement(Select$1$1,{value:o.value,label:o.label,onChange:i},(o.items||[]).map(j=>React$1.createElement(MenuItem$1,{key:j.label,value:j.value},j.label))))))}var __defProp=Object.defineProperty,__getOwnPropSymbols=Object.getOwnPropertySymbols,__hasOwnProp=Object.prototype.hasOwnProperty,__propIsEnum=Object.prototype.propertyIsEnumerable,__defNormalProp=(o,i,s)=>i in o?__defProp(o,i,{enumerable:!0,configurable:!0,writable:!0,value:s}):o[i]=s,__spreadValues=(o,i)=>{for(var s in i||(i={}))__hasOwnProp.call(i,s)&&__defNormalProp(o,s,i[s]);if(__getOwnPropSymbols)for(var s of __getOwnPropSymbols(i))__propIsEnum.call(i,s)&&__defNormalProp(o,s,i[s]);return o},__publicField=(o,i,s)=>(__defNormalProp(o,typeof i!="symbol"?i+"":i,s),s),dist={exports:{}};/*! For license information please see index.js.LICENSE.txt */(function(module,exports){(function(o,i){module.exports=i()})(window,function(){return function(o){function i(rt){for(var at,ft,st=rt[0],lt=rt[1],it=0,ut=[];itOt.redacted!==!1?Object(xt.a)(Gt):Gt;if(!Tt.stack)return{message:bt(At(Tt),{cycles:!0})};const{name:wt,message:gt,stack:Nt}=Tt,Bt=vt(Tt,["name","message","stack"]);return{name:wt,message:gt!==void 0?gt:bt(At(Tt),{cycles:!0}),stack:Nt,meta:Bt&&Object.keys(Bt).length===0?void 0:At(Bt)}}function ct(Tt,Ot={}){const{message:At,stack:wt,meta:gt}=mt(Tt,Ot);return`${wt||At||""}${gt&&Object.keys(gt).length>0?` -- ${bt(gt,{cycles:!0})}`:""}`}var Rt=s(99),Ft=function(Tt,Ot,At,wt){return new(At||(At=Promise))(function(gt,Nt){function Bt(Zt){try{Kt(wt.next(Zt))}catch(zt){Nt(zt)}}function Gt(Zt){try{Kt(wt.throw(Zt))}catch(zt){Nt(zt)}}function Kt(Zt){var zt;Zt.done?gt(Zt.value):(zt=Zt.value,zt instanceof At?zt:new At(function($t){$t(zt)})).then(Bt,Gt)}Kt((wt=wt.apply(Tt,Ot||[])).next())})},Ut=function(Tt,Ot){var At={};for(var wt in Tt)Object.prototype.hasOwnProperty.call(Tt,wt)&&Ot.indexOf(wt)<0&&(At[wt]=Tt[wt]);if(Tt!=null&&typeof Object.getOwnPropertySymbols=="function"){var gt=0;for(wt=Object.getOwnPropertySymbols(Tt);gt{var{timestamp:Ot,level:At,message:wt,error:gt}=Tt,Nt=ht(Tt,["timestamp","level","message","error"]);const Bt=Object.assign(Object.assign({timestamp:Ot?new Date(Ot).getTime():new Date().getTime(),level:At.toUpperCase(),message:wt},gt?{error:mt(gt)}:{}),{meta:Object.assign(Object.assign(Object.assign({},Ct),St),Nt)});try{return JSON.stringify(Bt)}catch{return Z(Bt)}}):ut.format.printf(Tt=>{var{timestamp:Ot,level:At,message:wt,error:gt}=Tt,Nt=ht(Tt,["timestamp","level","message","error"]);let Bt=`${Ot||new Date().toISOString()} ${At.toUpperCase()}: ${wt} `;if(Object.keys(Nt).length>0)try{Bt+=JSON.stringify(Nt)}catch{Bt+=Z(Nt)}return gt&&(Bt+=` +${ct(gt)}`),Bt}),Lt=Object(ut.createLogger)({level:pt.f});if(pt.g&&Lt.add(new ut.transports.Console({format:kt,level:"debug"})),pt.d&&Lt.add(new yt(pt.d,()=>Object.assign(Object.assign(Object.assign({},Ct),St),{level:"debug"}))),pt.h){const Tt=_e.resolve(et.tmpdir(),`silly-${pt.a}.log`);Lt.debug("Logging silly logs to file",{filename:Tt}),Lt.add(new ut.transports.File({filename:Tt,maxsize:1*$,maxFiles:10,format:ut.format.combine((Mt="silly",Object(ut.format)(Ot=>Ot.level===Mt&&Ot)()),kt),level:"silly"}))}var Mt},function(o,i,s){s.d(i,"a",function(){return j});const j={millisecond:1,second:1e3,minute:6e4,hour:36e5,day:864e5,week:6048e5,month:2592e6,year:31536e6}},function(o,i){var s,j,$=o.exports={};function Z(){throw new Error("setTimeout has not been defined")}function et(){throw new Error("clearTimeout has not been defined")}function _e(pt){if(s===setTimeout)return setTimeout(pt,0);if((s===Z||!s)&&setTimeout)return s=setTimeout,setTimeout(pt,0);try{return s(pt,0)}catch{try{return s.call(null,pt,0)}catch{return s.call(this,pt,0)}}}(function(){try{s=typeof setTimeout=="function"?setTimeout:Z}catch{s=Z}try{j=typeof clearTimeout=="function"?clearTimeout:et}catch{j=et}})();var nt,rt=[],at=!1,ft=-1;function st(){at&&nt&&(at=!1,nt.length?rt=nt.concat(rt):ft=-1,rt.length&<())}function lt(){if(!at){var pt=_e(st);at=!0;for(var bt=rt.length;bt;){for(nt=rt,rt=[];++ft1)for(var xt=1;xt=_e())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+_e().toString(16)+" bytes");return 0|Et}function ut(Et,It){if(rt.isBuffer(Et))return Et.length;if(typeof ArrayBuffer!="undefined"&&typeof ArrayBuffer.isView=="function"&&(ArrayBuffer.isView(Et)||Et instanceof ArrayBuffer))return Et.byteLength;typeof Et!="string"&&(Et=""+Et);var Dt=Et.length;if(Dt===0)return 0;for(var Jt=!1;;)switch(It){case"ascii":case"latin1":case"binary":return Dt;case"utf8":case"utf-8":case void 0:return Zt(Et).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*Dt;case"hex":return Dt>>>1;case"base64":return zt(Et).length;default:if(Jt)return Zt(Et).length;It=(""+It).toLowerCase(),Jt=!0}}function pt(Et,It,Dt){var Jt=!1;if((It===void 0||It<0)&&(It=0),It>this.length||((Dt===void 0||Dt>this.length)&&(Dt=this.length),Dt<=0)||(Dt>>>=0)<=(It>>>=0))return"";for(Et||(Et="utf8");;)switch(Et){case"hex":return Lt(this,It,Dt);case"utf8":case"utf-8":return Ct(this,It,Dt);case"ascii":return St(this,It,Dt);case"latin1":case"binary":return kt(this,It,Dt);case"base64":return ht(this,It,Dt);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Mt(this,It,Dt);default:if(Jt)throw new TypeError("Unknown encoding: "+Et);Et=(Et+"").toLowerCase(),Jt=!0}}function bt(Et,It,Dt){var Jt=Et[It];Et[It]=Et[Dt],Et[Dt]=Jt}function xt(Et,It,Dt,Jt,Qt){if(Et.length===0)return-1;if(typeof Dt=="string"?(Jt=Dt,Dt=0):Dt>2147483647?Dt=2147483647:Dt<-2147483648&&(Dt=-2147483648),Dt=+Dt,isNaN(Dt)&&(Dt=Qt?0:Et.length-1),Dt<0&&(Dt=Et.length+Dt),Dt>=Et.length){if(Qt)return-1;Dt=Et.length-1}else if(Dt<0){if(!Qt)return-1;Dt=0}if(typeof It=="string"&&(It=rt.from(It,Jt)),rt.isBuffer(It))return It.length===0?-1:vt(Et,It,Dt,Jt,Qt);if(typeof It=="number")return It&=255,rt.TYPED_ARRAY_SUPPORT&&typeof Uint8Array.prototype.indexOf=="function"?Qt?Uint8Array.prototype.indexOf.call(Et,It,Dt):Uint8Array.prototype.lastIndexOf.call(Et,It,Dt):vt(Et,[It],Dt,Jt,Qt);throw new TypeError("val must be string, number or Buffer")}function vt(Et,It,Dt,Jt,Qt){var nn,cn=1,sn=Et.length,Vt=It.length;if(Jt!==void 0&&((Jt=String(Jt).toLowerCase())==="ucs2"||Jt==="ucs-2"||Jt==="utf16le"||Jt==="utf-16le")){if(Et.length<2||It.length<2)return-1;cn=2,sn/=2,Vt/=2,Dt/=2}function qt(_n,mn){return cn===1?_n[mn]:_n.readUInt16BE(mn*cn)}if(Qt){var tn=-1;for(nn=Dt;nnsn&&(Dt=sn-Vt),nn=Dt;nn>=0;nn--){for(var hn=!0,an=0;anQt&&(Jt=Qt):Jt=Qt;var nn=It.length;if(nn%2!=0)throw new TypeError("Invalid hex string");Jt>nn/2&&(Jt=nn/2);for(var cn=0;cn>8,Vt=cn%256,qt.push(Vt),qt.push(sn);return qt}(It,Et.length-Dt),Et,Dt,Jt)}function ht(Et,It,Dt){return It===0&&Dt===Et.length?$.fromByteArray(Et):$.fromByteArray(Et.slice(It,Dt))}function Ct(Et,It,Dt){Dt=Math.min(Et.length,Dt);for(var Jt=[],Qt=It;Qt239?4:qt>223?3:qt>191?2:1;if(Qt+hn<=Dt)switch(hn){case 1:qt<128&&(tn=qt);break;case 2:(192&(nn=Et[Qt+1]))==128&&(Vt=(31&qt)<<6|63&nn)>127&&(tn=Vt);break;case 3:nn=Et[Qt+1],cn=Et[Qt+2],(192&nn)==128&&(192&cn)==128&&(Vt=(15&qt)<<12|(63&nn)<<6|63&cn)>2047&&(Vt<55296||Vt>57343)&&(tn=Vt);break;case 4:nn=Et[Qt+1],cn=Et[Qt+2],sn=Et[Qt+3],(192&nn)==128&&(192&cn)==128&&(192&sn)==128&&(Vt=(15&qt)<<18|(63&nn)<<12|(63&cn)<<6|63&sn)>65535&&Vt<1114112&&(tn=Vt)}tn===null?(tn=65533,hn=1):tn>65535&&(tn-=65536,Jt.push(tn>>>10&1023|55296),tn=56320|1023&tn),Jt.push(tn),Qt+=hn}return function(an){var _n=an.length;if(_n<=4096)return String.fromCharCode.apply(String,an);for(var mn="",vn=0;vn<_n;)mn+=String.fromCharCode.apply(String,an.slice(vn,vn+=4096));return mn}(Jt)}i.Buffer=rt,i.SlowBuffer=function(Et){return+Et!=Et&&(Et=0),rt.alloc(+Et)},i.INSPECT_MAX_BYTES=50,rt.TYPED_ARRAY_SUPPORT=j.TYPED_ARRAY_SUPPORT!==void 0?j.TYPED_ARRAY_SUPPORT:function(){try{var Et=new Uint8Array(1);return Et.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},Et.foo()===42&&typeof Et.subarray=="function"&&Et.subarray(1,1).byteLength===0}catch{return!1}}(),i.kMaxLength=_e(),rt.poolSize=8192,rt._augment=function(Et){return Et.__proto__=rt.prototype,Et},rt.from=function(Et,It,Dt){return at(null,Et,It,Dt)},rt.TYPED_ARRAY_SUPPORT&&(rt.prototype.__proto__=Uint8Array.prototype,rt.__proto__=Uint8Array,typeof Symbol!="undefined"&&Symbol.species&&rt[Symbol.species]===rt&&Object.defineProperty(rt,Symbol.species,{value:null,configurable:!0})),rt.alloc=function(Et,It,Dt){return function(Jt,Qt,nn,cn){return ft(Qt),Qt<=0?nt(Jt,Qt):nn!==void 0?typeof cn=="string"?nt(Jt,Qt).fill(nn,cn):nt(Jt,Qt).fill(nn):nt(Jt,Qt)}(null,Et,It,Dt)},rt.allocUnsafe=function(Et){return st(null,Et)},rt.allocUnsafeSlow=function(Et){return st(null,Et)},rt.isBuffer=function(Et){return!(Et==null||!Et._isBuffer)},rt.compare=function(Et,It){if(!rt.isBuffer(Et)||!rt.isBuffer(It))throw new TypeError("Arguments must be Buffers");if(Et===It)return 0;for(var Dt=Et.length,Jt=It.length,Qt=0,nn=Math.min(Dt,Jt);Qt0&&(Et=this.toString("hex",0,It).match(/.{2}/g).join(" "),this.length>It&&(Et+=" ... ")),""},rt.prototype.compare=function(Et,It,Dt,Jt,Qt){if(!rt.isBuffer(Et))throw new TypeError("Argument must be a Buffer");if(It===void 0&&(It=0),Dt===void 0&&(Dt=Et?Et.length:0),Jt===void 0&&(Jt=0),Qt===void 0&&(Qt=this.length),It<0||Dt>Et.length||Jt<0||Qt>this.length)throw new RangeError("out of range index");if(Jt>=Qt&&It>=Dt)return 0;if(Jt>=Qt)return-1;if(It>=Dt)return 1;if(this===Et)return 0;for(var nn=(Qt>>>=0)-(Jt>>>=0),cn=(Dt>>>=0)-(It>>>=0),sn=Math.min(nn,cn),Vt=this.slice(Jt,Qt),qt=Et.slice(It,Dt),tn=0;tnQt)&&(Dt=Qt),Et.length>0&&(Dt<0||It<0)||It>this.length)throw new RangeError("Attempt to write outside buffer bounds");Jt||(Jt="utf8");for(var nn=!1;;)switch(Jt){case"hex":return mt(this,Et,It,Dt);case"utf8":case"utf-8":return ct(this,Et,It,Dt);case"ascii":return Rt(this,Et,It,Dt);case"latin1":case"binary":return Ft(this,Et,It,Dt);case"base64":return Ut(this,Et,It,Dt);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return yt(this,Et,It,Dt);default:if(nn)throw new TypeError("Unknown encoding: "+Jt);Jt=(""+Jt).toLowerCase(),nn=!0}},rt.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function St(Et,It,Dt){var Jt="";Dt=Math.min(Et.length,Dt);for(var Qt=It;QtJt)&&(Dt=Jt);for(var Qt="",nn=It;nnDt)throw new RangeError("Trying to access beyond buffer length")}function Ot(Et,It,Dt,Jt,Qt,nn){if(!rt.isBuffer(Et))throw new TypeError('"buffer" argument must be a Buffer instance');if(It>Qt||ItEt.length)throw new RangeError("Index out of range")}function At(Et,It,Dt,Jt){It<0&&(It=65535+It+1);for(var Qt=0,nn=Math.min(Et.length-Dt,2);Qt>>8*(Jt?Qt:1-Qt)}function wt(Et,It,Dt,Jt){It<0&&(It=4294967295+It+1);for(var Qt=0,nn=Math.min(Et.length-Dt,4);Qt>>8*(Jt?Qt:3-Qt)&255}function gt(Et,It,Dt,Jt,Qt,nn){if(Dt+Jt>Et.length)throw new RangeError("Index out of range");if(Dt<0)throw new RangeError("Index out of range")}function Nt(Et,It,Dt,Jt,Qt){return Qt||gt(Et,0,Dt,4),Z.write(Et,It,Dt,Jt,23,4),Dt+4}function Bt(Et,It,Dt,Jt,Qt){return Qt||gt(Et,0,Dt,8),Z.write(Et,It,Dt,Jt,52,8),Dt+8}rt.prototype.slice=function(Et,It){var Dt,Jt=this.length;if((Et=~~Et)<0?(Et+=Jt)<0&&(Et=0):Et>Jt&&(Et=Jt),(It=It===void 0?Jt:~~It)<0?(It+=Jt)<0&&(It=0):It>Jt&&(It=Jt),It0&&(Qt*=256);)Jt+=this[Et+--It]*Qt;return Jt},rt.prototype.readUInt8=function(Et,It){return It||Tt(Et,1,this.length),this[Et]},rt.prototype.readUInt16LE=function(Et,It){return It||Tt(Et,2,this.length),this[Et]|this[Et+1]<<8},rt.prototype.readUInt16BE=function(Et,It){return It||Tt(Et,2,this.length),this[Et]<<8|this[Et+1]},rt.prototype.readUInt32LE=function(Et,It){return It||Tt(Et,4,this.length),(this[Et]|this[Et+1]<<8|this[Et+2]<<16)+16777216*this[Et+3]},rt.prototype.readUInt32BE=function(Et,It){return It||Tt(Et,4,this.length),16777216*this[Et]+(this[Et+1]<<16|this[Et+2]<<8|this[Et+3])},rt.prototype.readIntLE=function(Et,It,Dt){Et|=0,It|=0,Dt||Tt(Et,It,this.length);for(var Jt=this[Et],Qt=1,nn=0;++nn=(Qt*=128)&&(Jt-=Math.pow(2,8*It)),Jt},rt.prototype.readIntBE=function(Et,It,Dt){Et|=0,It|=0,Dt||Tt(Et,It,this.length);for(var Jt=It,Qt=1,nn=this[Et+--Jt];Jt>0&&(Qt*=256);)nn+=this[Et+--Jt]*Qt;return nn>=(Qt*=128)&&(nn-=Math.pow(2,8*It)),nn},rt.prototype.readInt8=function(Et,It){return It||Tt(Et,1,this.length),128&this[Et]?-1*(255-this[Et]+1):this[Et]},rt.prototype.readInt16LE=function(Et,It){It||Tt(Et,2,this.length);var Dt=this[Et]|this[Et+1]<<8;return 32768&Dt?4294901760|Dt:Dt},rt.prototype.readInt16BE=function(Et,It){It||Tt(Et,2,this.length);var Dt=this[Et+1]|this[Et]<<8;return 32768&Dt?4294901760|Dt:Dt},rt.prototype.readInt32LE=function(Et,It){return It||Tt(Et,4,this.length),this[Et]|this[Et+1]<<8|this[Et+2]<<16|this[Et+3]<<24},rt.prototype.readInt32BE=function(Et,It){return It||Tt(Et,4,this.length),this[Et]<<24|this[Et+1]<<16|this[Et+2]<<8|this[Et+3]},rt.prototype.readFloatLE=function(Et,It){return It||Tt(Et,4,this.length),Z.read(this,Et,!0,23,4)},rt.prototype.readFloatBE=function(Et,It){return It||Tt(Et,4,this.length),Z.read(this,Et,!1,23,4)},rt.prototype.readDoubleLE=function(Et,It){return It||Tt(Et,8,this.length),Z.read(this,Et,!0,52,8)},rt.prototype.readDoubleBE=function(Et,It){return It||Tt(Et,8,this.length),Z.read(this,Et,!1,52,8)},rt.prototype.writeUIntLE=function(Et,It,Dt,Jt){Et=+Et,It|=0,Dt|=0,Jt||Ot(this,Et,It,Dt,Math.pow(2,8*Dt)-1,0);var Qt=1,nn=0;for(this[It]=255&Et;++nn=0&&(nn*=256);)this[It+Qt]=Et/nn&255;return It+Dt},rt.prototype.writeUInt8=function(Et,It,Dt){return Et=+Et,It|=0,Dt||Ot(this,Et,It,1,255,0),rt.TYPED_ARRAY_SUPPORT||(Et=Math.floor(Et)),this[It]=255&Et,It+1},rt.prototype.writeUInt16LE=function(Et,It,Dt){return Et=+Et,It|=0,Dt||Ot(this,Et,It,2,65535,0),rt.TYPED_ARRAY_SUPPORT?(this[It]=255&Et,this[It+1]=Et>>>8):At(this,Et,It,!0),It+2},rt.prototype.writeUInt16BE=function(Et,It,Dt){return Et=+Et,It|=0,Dt||Ot(this,Et,It,2,65535,0),rt.TYPED_ARRAY_SUPPORT?(this[It]=Et>>>8,this[It+1]=255&Et):At(this,Et,It,!1),It+2},rt.prototype.writeUInt32LE=function(Et,It,Dt){return Et=+Et,It|=0,Dt||Ot(this,Et,It,4,4294967295,0),rt.TYPED_ARRAY_SUPPORT?(this[It+3]=Et>>>24,this[It+2]=Et>>>16,this[It+1]=Et>>>8,this[It]=255&Et):wt(this,Et,It,!0),It+4},rt.prototype.writeUInt32BE=function(Et,It,Dt){return Et=+Et,It|=0,Dt||Ot(this,Et,It,4,4294967295,0),rt.TYPED_ARRAY_SUPPORT?(this[It]=Et>>>24,this[It+1]=Et>>>16,this[It+2]=Et>>>8,this[It+3]=255&Et):wt(this,Et,It,!1),It+4},rt.prototype.writeIntLE=function(Et,It,Dt,Jt){if(Et=+Et,It|=0,!Jt){var Qt=Math.pow(2,8*Dt-1);Ot(this,Et,It,Dt,Qt-1,-Qt)}var nn=0,cn=1,sn=0;for(this[It]=255&Et;++nn>0)-sn&255;return It+Dt},rt.prototype.writeIntBE=function(Et,It,Dt,Jt){if(Et=+Et,It|=0,!Jt){var Qt=Math.pow(2,8*Dt-1);Ot(this,Et,It,Dt,Qt-1,-Qt)}var nn=Dt-1,cn=1,sn=0;for(this[It+nn]=255&Et;--nn>=0&&(cn*=256);)Et<0&&sn===0&&this[It+nn+1]!==0&&(sn=1),this[It+nn]=(Et/cn>>0)-sn&255;return It+Dt},rt.prototype.writeInt8=function(Et,It,Dt){return Et=+Et,It|=0,Dt||Ot(this,Et,It,1,127,-128),rt.TYPED_ARRAY_SUPPORT||(Et=Math.floor(Et)),Et<0&&(Et=255+Et+1),this[It]=255&Et,It+1},rt.prototype.writeInt16LE=function(Et,It,Dt){return Et=+Et,It|=0,Dt||Ot(this,Et,It,2,32767,-32768),rt.TYPED_ARRAY_SUPPORT?(this[It]=255&Et,this[It+1]=Et>>>8):At(this,Et,It,!0),It+2},rt.prototype.writeInt16BE=function(Et,It,Dt){return Et=+Et,It|=0,Dt||Ot(this,Et,It,2,32767,-32768),rt.TYPED_ARRAY_SUPPORT?(this[It]=Et>>>8,this[It+1]=255&Et):At(this,Et,It,!1),It+2},rt.prototype.writeInt32LE=function(Et,It,Dt){return Et=+Et,It|=0,Dt||Ot(this,Et,It,4,2147483647,-2147483648),rt.TYPED_ARRAY_SUPPORT?(this[It]=255&Et,this[It+1]=Et>>>8,this[It+2]=Et>>>16,this[It+3]=Et>>>24):wt(this,Et,It,!0),It+4},rt.prototype.writeInt32BE=function(Et,It,Dt){return Et=+Et,It|=0,Dt||Ot(this,Et,It,4,2147483647,-2147483648),Et<0&&(Et=4294967295+Et+1),rt.TYPED_ARRAY_SUPPORT?(this[It]=Et>>>24,this[It+1]=Et>>>16,this[It+2]=Et>>>8,this[It+3]=255&Et):wt(this,Et,It,!1),It+4},rt.prototype.writeFloatLE=function(Et,It,Dt){return Nt(this,Et,It,!0,Dt)},rt.prototype.writeFloatBE=function(Et,It,Dt){return Nt(this,Et,It,!1,Dt)},rt.prototype.writeDoubleLE=function(Et,It,Dt){return Bt(this,Et,It,!0,Dt)},rt.prototype.writeDoubleBE=function(Et,It,Dt){return Bt(this,Et,It,!1,Dt)},rt.prototype.copy=function(Et,It,Dt,Jt){if(Dt||(Dt=0),Jt||Jt===0||(Jt=this.length),It>=Et.length&&(It=Et.length),It||(It=0),Jt>0&&Jt=this.length)throw new RangeError("sourceStart out of bounds");if(Jt<0)throw new RangeError("sourceEnd out of bounds");Jt>this.length&&(Jt=this.length),Et.length-It=0;--Qt)Et[Qt+It]=this[Qt+Dt];else if(nn<1e3||!rt.TYPED_ARRAY_SUPPORT)for(Qt=0;Qt>>=0,Dt=Dt===void 0?this.length:Dt>>>0,Et||(Et=0),typeof Et=="number")for(nn=It;nn55295&&Dt<57344){if(!Qt){if(Dt>56319){(It-=3)>-1&&nn.push(239,191,189);continue}if(cn+1===Jt){(It-=3)>-1&&nn.push(239,191,189);continue}Qt=Dt;continue}if(Dt<56320){(It-=3)>-1&&nn.push(239,191,189),Qt=Dt;continue}Dt=65536+(Qt-55296<<10|Dt-56320)}else Qt&&(It-=3)>-1&&nn.push(239,191,189);if(Qt=null,Dt<128){if((It-=1)<0)break;nn.push(Dt)}else if(Dt<2048){if((It-=2)<0)break;nn.push(Dt>>6|192,63&Dt|128)}else if(Dt<65536){if((It-=3)<0)break;nn.push(Dt>>12|224,Dt>>6&63|128,63&Dt|128)}else{if(!(Dt<1114112))throw new Error("Invalid code point");if((It-=4)<0)break;nn.push(Dt>>18|240,Dt>>12&63|128,Dt>>6&63|128,63&Dt|128)}}return nn}function zt(Et){return $.toByteArray(function(It){if((It=function(Dt){return Dt.trim?Dt.trim():Dt.replace(/^\s+|\s+$/g,"")}(It).replace(Gt,"")).length<2)return"";for(;It.length%4!=0;)It+="=";return It}(Et))}function $t(Et,It,Dt,Jt){for(var Qt=0;Qt=It.length||Qt>=Et.length);++Qt)It[Qt+Dt]=Et[Qt];return Qt}}).call(this,s(5))},function(o,i){var s;s=function(){return this}();try{s=s||new Function("return this")()}catch{typeof window=="object"&&(s=window)}o.exports=s},function(o,i){typeof Object.create=="function"?o.exports=function(s,j){j&&(s.super_=j,s.prototype=Object.create(j.prototype,{constructor:{value:s,enumerable:!1,writable:!0,configurable:!0}}))}:o.exports=function(s,j){if(j){s.super_=j;var $=function(){};$.prototype=j.prototype,s.prototype=new $,s.prototype.constructor=s}}},function(o,i,s){(function(j){s.d(i,"a",function(){return et}),s.d(i,"i",function(){return _e}),s.d(i,"j",function(){return nt}),s.d(i,"b",function(){return rt}),s.d(i,"f",function(){return at}),s.d(i,"e",function(){return ft}),s.d(i,"g",function(){return st}),s.d(i,"d",function(){return lt}),s.d(i,"c",function(){return it}),s.d(i,"h",function(){return ut});var $=s(98);const Z=$.from(Object.assign(Object.assign({},j.env),{ENVIRONMENT:j.env.ENV,APP:"realtime-sdk",NAMESPACE:"production",VERSION:j.env.VERSION,BUILD_TAG:j.env.BUILD_TAG,GIT_COMMIT:j.env.GIT_COMMIT,LOG_LEVEL:j.env.LOG_LEVEL,LOG_JSON:"false",LOG_API_ENDPOINT:j.env.LOG_API_ENDPOINT,JEST_WORKER_ID:j.env.JEST_WORKER_ID,ENABLE_SENTRY:j.env.ENABLE_SENTRY,SENTRY_DSN:j.env.SENTRY_DSN,STABLE_AGENT_VERSION:j.env.STABLE_AGENT_VERSION})),et=(Z.get("ENVIRONMENT").default("").asString(),Z.get("APP").default("").asString()),_e=(Z.get("APP_PATH").default("").asString(),Z.get("API_ENDPOINT").default("").asString(),Z.get("NAMESPACE").default("").asString()),nt=Z.get("VERSION").default("").asString(),rt=Z.get("BUILD_TAG").default("").asString(),at=(Z.get("GIT_COMMIT").default("").asString(),Z.get("ENABLE_SENTRY").default("false").asBool(),Z.get("SENTRY_DSN").default("").asString(),Z.get("LOG_LEVEL").default("debug").asString()),ft=Z.get("LOG_JSON").default("true").asBool(),st=Z.get("LOG_TO_CONSOLE").default("true").asBool(),lt=(Z.get("STABLE_AGENT_VERSION").default("").asString(),Z.get("LOG_API_ENDPOINT").asString()),it=Z.get("JEST_WORKER_ID").asString(),ut=(Z.get("SHEET_EXPORT_MAX_ROW_COUNT").default("10000").asIntPositive(),Z.get("LOG_TO_FILE").default("false").asBoolStrict())}).call(this,s(2))},function(o,i,s){var j=s(95),$=j,Z=Function("return this")(),et=s(94);$.object.extend(proto,et),$.exportSymbol("proto.v1.signaling.api.CreatePeerRequest",null,Z),$.exportSymbol("proto.v1.signaling.api.CreatePeerResponse",null,Z),$.exportSymbol("proto.v1.signaling.api.DeletePeerRequest",null,Z),$.exportSymbol("proto.v1.signaling.api.DeletePeerResponse",null,Z),$.exportSymbol("proto.v1.signaling.api.GetIceServersRequest",null,Z),$.exportSymbol("proto.v1.signaling.api.GetIceServersResponse",null,Z),$.exportSymbol("proto.v1.signaling.api.GetPeersRequest",null,Z),$.exportSymbol("proto.v1.signaling.api.GetPeersResponse",null,Z),$.exportSymbol("proto.v1.signaling.api.Peer",null,Z),$.exportSymbol("proto.v1.signaling.api.ReceiveSignalStreamRequest",null,Z),$.exportSymbol("proto.v1.signaling.api.ReceiveSignalStreamResponse",null,Z),$.exportSymbol("proto.v1.signaling.api.RefreshPeerRequest",null,Z),$.exportSymbol("proto.v1.signaling.api.RefreshPeerResponse",null,Z),$.exportSymbol("proto.v1.signaling.api.SendSignalRequest",null,Z),$.exportSymbol("proto.v1.signaling.api.SendSignalResponse",null,Z),$.exportSymbol("proto.v1.signaling.api.SessionType",null,Z),$.exportSymbol("proto.v1.signaling.api.Signal",null,Z),proto.v1.signaling.api.Peer=function(_e){j.Message.initialize(this,_e,0,-1,proto.v1.signaling.api.Peer.repeatedFields_,null)},$.inherits(proto.v1.signaling.api.Peer,j.Message),$.DEBUG&&!COMPILED&&(proto.v1.signaling.api.Peer.displayName="proto.v1.signaling.api.Peer"),proto.v1.signaling.api.Signal=function(_e){j.Message.initialize(this,_e,0,-1,null,null)},$.inherits(proto.v1.signaling.api.Signal,j.Message),$.DEBUG&&!COMPILED&&(proto.v1.signaling.api.Signal.displayName="proto.v1.signaling.api.Signal"),proto.v1.signaling.api.CreatePeerRequest=function(_e){j.Message.initialize(this,_e,0,-1,null,null)},$.inherits(proto.v1.signaling.api.CreatePeerRequest,j.Message),$.DEBUG&&!COMPILED&&(proto.v1.signaling.api.CreatePeerRequest.displayName="proto.v1.signaling.api.CreatePeerRequest"),proto.v1.signaling.api.CreatePeerResponse=function(_e){j.Message.initialize(this,_e,0,-1,null,null)},$.inherits(proto.v1.signaling.api.CreatePeerResponse,j.Message),$.DEBUG&&!COMPILED&&(proto.v1.signaling.api.CreatePeerResponse.displayName="proto.v1.signaling.api.CreatePeerResponse"),proto.v1.signaling.api.DeletePeerRequest=function(_e){j.Message.initialize(this,_e,0,-1,null,null)},$.inherits(proto.v1.signaling.api.DeletePeerRequest,j.Message),$.DEBUG&&!COMPILED&&(proto.v1.signaling.api.DeletePeerRequest.displayName="proto.v1.signaling.api.DeletePeerRequest"),proto.v1.signaling.api.DeletePeerResponse=function(_e){j.Message.initialize(this,_e,0,-1,null,null)},$.inherits(proto.v1.signaling.api.DeletePeerResponse,j.Message),$.DEBUG&&!COMPILED&&(proto.v1.signaling.api.DeletePeerResponse.displayName="proto.v1.signaling.api.DeletePeerResponse"),proto.v1.signaling.api.RefreshPeerRequest=function(_e){j.Message.initialize(this,_e,0,-1,null,null)},$.inherits(proto.v1.signaling.api.RefreshPeerRequest,j.Message),$.DEBUG&&!COMPILED&&(proto.v1.signaling.api.RefreshPeerRequest.displayName="proto.v1.signaling.api.RefreshPeerRequest"),proto.v1.signaling.api.RefreshPeerResponse=function(_e){j.Message.initialize(this,_e,0,-1,null,null)},$.inherits(proto.v1.signaling.api.RefreshPeerResponse,j.Message),$.DEBUG&&!COMPILED&&(proto.v1.signaling.api.RefreshPeerResponse.displayName="proto.v1.signaling.api.RefreshPeerResponse"),proto.v1.signaling.api.GetPeersRequest=function(_e){j.Message.initialize(this,_e,0,-1,null,null)},$.inherits(proto.v1.signaling.api.GetPeersRequest,j.Message),$.DEBUG&&!COMPILED&&(proto.v1.signaling.api.GetPeersRequest.displayName="proto.v1.signaling.api.GetPeersRequest"),proto.v1.signaling.api.GetPeersResponse=function(_e){j.Message.initialize(this,_e,0,-1,proto.v1.signaling.api.GetPeersResponse.repeatedFields_,null)},$.inherits(proto.v1.signaling.api.GetPeersResponse,j.Message),$.DEBUG&&!COMPILED&&(proto.v1.signaling.api.GetPeersResponse.displayName="proto.v1.signaling.api.GetPeersResponse"),proto.v1.signaling.api.GetIceServersRequest=function(_e){j.Message.initialize(this,_e,0,-1,null,null)},$.inherits(proto.v1.signaling.api.GetIceServersRequest,j.Message),$.DEBUG&&!COMPILED&&(proto.v1.signaling.api.GetIceServersRequest.displayName="proto.v1.signaling.api.GetIceServersRequest"),proto.v1.signaling.api.GetIceServersResponse=function(_e){j.Message.initialize(this,_e,0,-1,null,null)},$.inherits(proto.v1.signaling.api.GetIceServersResponse,j.Message),$.DEBUG&&!COMPILED&&(proto.v1.signaling.api.GetIceServersResponse.displayName="proto.v1.signaling.api.GetIceServersResponse"),proto.v1.signaling.api.SendSignalRequest=function(_e){j.Message.initialize(this,_e,0,-1,null,null)},$.inherits(proto.v1.signaling.api.SendSignalRequest,j.Message),$.DEBUG&&!COMPILED&&(proto.v1.signaling.api.SendSignalRequest.displayName="proto.v1.signaling.api.SendSignalRequest"),proto.v1.signaling.api.SendSignalResponse=function(_e){j.Message.initialize(this,_e,0,-1,null,null)},$.inherits(proto.v1.signaling.api.SendSignalResponse,j.Message),$.DEBUG&&!COMPILED&&(proto.v1.signaling.api.SendSignalResponse.displayName="proto.v1.signaling.api.SendSignalResponse"),proto.v1.signaling.api.ReceiveSignalStreamRequest=function(_e){j.Message.initialize(this,_e,0,-1,null,null)},$.inherits(proto.v1.signaling.api.ReceiveSignalStreamRequest,j.Message),$.DEBUG&&!COMPILED&&(proto.v1.signaling.api.ReceiveSignalStreamRequest.displayName="proto.v1.signaling.api.ReceiveSignalStreamRequest"),proto.v1.signaling.api.ReceiveSignalStreamResponse=function(_e){j.Message.initialize(this,_e,0,-1,null,null)},$.inherits(proto.v1.signaling.api.ReceiveSignalStreamResponse,j.Message),$.DEBUG&&!COMPILED&&(proto.v1.signaling.api.ReceiveSignalStreamResponse.displayName="proto.v1.signaling.api.ReceiveSignalStreamResponse"),proto.v1.signaling.api.Peer.repeatedFields_=[5],j.Message.GENERATE_TO_OBJECT&&(proto.v1.signaling.api.Peer.prototype.toObject=function(_e){return proto.v1.signaling.api.Peer.toObject(_e,this)},proto.v1.signaling.api.Peer.toObject=function(_e,nt){var rt,at={peerId:j.Message.getFieldWithDefault(nt,1,""),organizationId:j.Message.getFieldWithDefault(nt,2,""),userId:(rt=nt.getUserId())&&et.StringValue.toObject(_e,rt),deviceId:(rt=nt.getDeviceId())&&et.StringValue.toObject(_e,rt),sessionIdsList:(rt=j.Message.getRepeatedField(nt,5))==null?void 0:rt,peerCreatedTimestamp:(rt=nt.getPeerCreatedTimestamp())&&et.Int64Value.toObject(_e,rt)};return _e&&(at.$jspbMessageInstance=nt),at}),proto.v1.signaling.api.Peer.deserializeBinary=function(_e){var nt=new j.BinaryReader(_e),rt=new proto.v1.signaling.api.Peer;return proto.v1.signaling.api.Peer.deserializeBinaryFromReader(rt,nt)},proto.v1.signaling.api.Peer.deserializeBinaryFromReader=function(_e,nt){for(;nt.nextField()&&!nt.isEndGroup();)switch(nt.getFieldNumber()){case 1:var rt=nt.readString();_e.setPeerId(rt);break;case 2:rt=nt.readString(),_e.setOrganizationId(rt);break;case 3:rt=new et.StringValue,nt.readMessage(rt,et.StringValue.deserializeBinaryFromReader),_e.setUserId(rt);break;case 4:rt=new et.StringValue,nt.readMessage(rt,et.StringValue.deserializeBinaryFromReader),_e.setDeviceId(rt);break;case 5:rt=nt.readString(),_e.addSessionIds(rt);break;case 6:rt=new et.Int64Value,nt.readMessage(rt,et.Int64Value.deserializeBinaryFromReader),_e.setPeerCreatedTimestamp(rt);break;default:nt.skipField()}return _e},proto.v1.signaling.api.Peer.prototype.serializeBinary=function(){var _e=new j.BinaryWriter;return proto.v1.signaling.api.Peer.serializeBinaryToWriter(this,_e),_e.getResultBuffer()},proto.v1.signaling.api.Peer.serializeBinaryToWriter=function(_e,nt){var rt=void 0;(rt=_e.getPeerId()).length>0&&nt.writeString(1,rt),(rt=_e.getOrganizationId()).length>0&&nt.writeString(2,rt),(rt=_e.getUserId())!=null&&nt.writeMessage(3,rt,et.StringValue.serializeBinaryToWriter),(rt=_e.getDeviceId())!=null&&nt.writeMessage(4,rt,et.StringValue.serializeBinaryToWriter),(rt=_e.getSessionIdsList()).length>0&&nt.writeRepeatedString(5,rt),(rt=_e.getPeerCreatedTimestamp())!=null&&nt.writeMessage(6,rt,et.Int64Value.serializeBinaryToWriter)},proto.v1.signaling.api.Peer.prototype.getPeerId=function(){return j.Message.getFieldWithDefault(this,1,"")},proto.v1.signaling.api.Peer.prototype.setPeerId=function(_e){return j.Message.setProto3StringField(this,1,_e)},proto.v1.signaling.api.Peer.prototype.getOrganizationId=function(){return j.Message.getFieldWithDefault(this,2,"")},proto.v1.signaling.api.Peer.prototype.setOrganizationId=function(_e){return j.Message.setProto3StringField(this,2,_e)},proto.v1.signaling.api.Peer.prototype.getUserId=function(){return j.Message.getWrapperField(this,et.StringValue,3)},proto.v1.signaling.api.Peer.prototype.setUserId=function(_e){return j.Message.setWrapperField(this,3,_e)},proto.v1.signaling.api.Peer.prototype.clearUserId=function(){return this.setUserId(void 0)},proto.v1.signaling.api.Peer.prototype.hasUserId=function(){return j.Message.getField(this,3)!=null},proto.v1.signaling.api.Peer.prototype.getDeviceId=function(){return j.Message.getWrapperField(this,et.StringValue,4)},proto.v1.signaling.api.Peer.prototype.setDeviceId=function(_e){return j.Message.setWrapperField(this,4,_e)},proto.v1.signaling.api.Peer.prototype.clearDeviceId=function(){return this.setDeviceId(void 0)},proto.v1.signaling.api.Peer.prototype.hasDeviceId=function(){return j.Message.getField(this,4)!=null},proto.v1.signaling.api.Peer.prototype.getSessionIdsList=function(){return j.Message.getRepeatedField(this,5)},proto.v1.signaling.api.Peer.prototype.setSessionIdsList=function(_e){return j.Message.setField(this,5,_e||[])},proto.v1.signaling.api.Peer.prototype.addSessionIds=function(_e,nt){return j.Message.addToRepeatedField(this,5,_e,nt)},proto.v1.signaling.api.Peer.prototype.clearSessionIdsList=function(){return this.setSessionIdsList([])},proto.v1.signaling.api.Peer.prototype.getPeerCreatedTimestamp=function(){return j.Message.getWrapperField(this,et.Int64Value,6)},proto.v1.signaling.api.Peer.prototype.setPeerCreatedTimestamp=function(_e){return j.Message.setWrapperField(this,6,_e)},proto.v1.signaling.api.Peer.prototype.clearPeerCreatedTimestamp=function(){return this.setPeerCreatedTimestamp(void 0)},proto.v1.signaling.api.Peer.prototype.hasPeerCreatedTimestamp=function(){return j.Message.getField(this,6)!=null},j.Message.GENERATE_TO_OBJECT&&(proto.v1.signaling.api.Signal.prototype.toObject=function(_e){return proto.v1.signaling.api.Signal.toObject(_e,this)},proto.v1.signaling.api.Signal.toObject=function(_e,nt){var rt,at={sessionId:(rt=nt.getSessionId())&&et.StringValue.toObject(_e,rt),sessionCreatedTimestamp:(rt=nt.getSessionCreatedTimestamp())&&et.Int64Value.toObject(_e,rt),senderId:j.Message.getFieldWithDefault(nt,3,""),receiverId:j.Message.getFieldWithDefault(nt,4,""),payload:j.Message.getFieldWithDefault(nt,5,""),iceServers:j.Message.getFieldWithDefault(nt,6,""),iceTransportPolicy:j.Message.getFieldWithDefault(nt,7,""),sessionType:j.Message.getFieldWithDefault(nt,8,0)};return _e&&(at.$jspbMessageInstance=nt),at}),proto.v1.signaling.api.Signal.deserializeBinary=function(_e){var nt=new j.BinaryReader(_e),rt=new proto.v1.signaling.api.Signal;return proto.v1.signaling.api.Signal.deserializeBinaryFromReader(rt,nt)},proto.v1.signaling.api.Signal.deserializeBinaryFromReader=function(_e,nt){for(;nt.nextField()&&!nt.isEndGroup();)switch(nt.getFieldNumber()){case 1:var rt=new et.StringValue;nt.readMessage(rt,et.StringValue.deserializeBinaryFromReader),_e.setSessionId(rt);break;case 2:rt=new et.Int64Value,nt.readMessage(rt,et.Int64Value.deserializeBinaryFromReader),_e.setSessionCreatedTimestamp(rt);break;case 3:rt=nt.readString(),_e.setSenderId(rt);break;case 4:rt=nt.readString(),_e.setReceiverId(rt);break;case 5:rt=nt.readString(),_e.setPayload(rt);break;case 6:rt=nt.readString(),_e.setIceServers(rt);break;case 7:rt=nt.readString(),_e.setIceTransportPolicy(rt);break;case 8:rt=nt.readEnum(),_e.setSessionType(rt);break;default:nt.skipField()}return _e},proto.v1.signaling.api.Signal.prototype.serializeBinary=function(){var _e=new j.BinaryWriter;return proto.v1.signaling.api.Signal.serializeBinaryToWriter(this,_e),_e.getResultBuffer()},proto.v1.signaling.api.Signal.serializeBinaryToWriter=function(_e,nt){var rt=void 0;(rt=_e.getSessionId())!=null&&nt.writeMessage(1,rt,et.StringValue.serializeBinaryToWriter),(rt=_e.getSessionCreatedTimestamp())!=null&&nt.writeMessage(2,rt,et.Int64Value.serializeBinaryToWriter),(rt=_e.getSenderId()).length>0&&nt.writeString(3,rt),(rt=_e.getReceiverId()).length>0&&nt.writeString(4,rt),(rt=_e.getPayload()).length>0&&nt.writeString(5,rt),(rt=_e.getIceServers()).length>0&&nt.writeString(6,rt),(rt=_e.getIceTransportPolicy()).length>0&&nt.writeString(7,rt),(rt=_e.getSessionType())!==0&&nt.writeEnum(8,rt)},proto.v1.signaling.api.Signal.prototype.getSessionId=function(){return j.Message.getWrapperField(this,et.StringValue,1)},proto.v1.signaling.api.Signal.prototype.setSessionId=function(_e){return j.Message.setWrapperField(this,1,_e)},proto.v1.signaling.api.Signal.prototype.clearSessionId=function(){return this.setSessionId(void 0)},proto.v1.signaling.api.Signal.prototype.hasSessionId=function(){return j.Message.getField(this,1)!=null},proto.v1.signaling.api.Signal.prototype.getSessionCreatedTimestamp=function(){return j.Message.getWrapperField(this,et.Int64Value,2)},proto.v1.signaling.api.Signal.prototype.setSessionCreatedTimestamp=function(_e){return j.Message.setWrapperField(this,2,_e)},proto.v1.signaling.api.Signal.prototype.clearSessionCreatedTimestamp=function(){return this.setSessionCreatedTimestamp(void 0)},proto.v1.signaling.api.Signal.prototype.hasSessionCreatedTimestamp=function(){return j.Message.getField(this,2)!=null},proto.v1.signaling.api.Signal.prototype.getSenderId=function(){return j.Message.getFieldWithDefault(this,3,"")},proto.v1.signaling.api.Signal.prototype.setSenderId=function(_e){return j.Message.setProto3StringField(this,3,_e)},proto.v1.signaling.api.Signal.prototype.getReceiverId=function(){return j.Message.getFieldWithDefault(this,4,"")},proto.v1.signaling.api.Signal.prototype.setReceiverId=function(_e){return j.Message.setProto3StringField(this,4,_e)},proto.v1.signaling.api.Signal.prototype.getPayload=function(){return j.Message.getFieldWithDefault(this,5,"")},proto.v1.signaling.api.Signal.prototype.setPayload=function(_e){return j.Message.setProto3StringField(this,5,_e)},proto.v1.signaling.api.Signal.prototype.getIceServers=function(){return j.Message.getFieldWithDefault(this,6,"")},proto.v1.signaling.api.Signal.prototype.setIceServers=function(_e){return j.Message.setProto3StringField(this,6,_e)},proto.v1.signaling.api.Signal.prototype.getIceTransportPolicy=function(){return j.Message.getFieldWithDefault(this,7,"")},proto.v1.signaling.api.Signal.prototype.setIceTransportPolicy=function(_e){return j.Message.setProto3StringField(this,7,_e)},proto.v1.signaling.api.Signal.prototype.getSessionType=function(){return j.Message.getFieldWithDefault(this,8,0)},proto.v1.signaling.api.Signal.prototype.setSessionType=function(_e){return j.Message.setProto3EnumField(this,8,_e)},j.Message.GENERATE_TO_OBJECT&&(proto.v1.signaling.api.CreatePeerRequest.prototype.toObject=function(_e){return proto.v1.signaling.api.CreatePeerRequest.toObject(_e,this)},proto.v1.signaling.api.CreatePeerRequest.toObject=function(_e,nt){var rt={};return _e&&(rt.$jspbMessageInstance=nt),rt}),proto.v1.signaling.api.CreatePeerRequest.deserializeBinary=function(_e){var nt=new j.BinaryReader(_e),rt=new proto.v1.signaling.api.CreatePeerRequest;return proto.v1.signaling.api.CreatePeerRequest.deserializeBinaryFromReader(rt,nt)},proto.v1.signaling.api.CreatePeerRequest.deserializeBinaryFromReader=function(_e,nt){for(;nt.nextField()&&!nt.isEndGroup();)nt.getFieldNumber(),nt.skipField();return _e},proto.v1.signaling.api.CreatePeerRequest.prototype.serializeBinary=function(){var _e=new j.BinaryWriter;return proto.v1.signaling.api.CreatePeerRequest.serializeBinaryToWriter(this,_e),_e.getResultBuffer()},proto.v1.signaling.api.CreatePeerRequest.serializeBinaryToWriter=function(_e,nt){},j.Message.GENERATE_TO_OBJECT&&(proto.v1.signaling.api.CreatePeerResponse.prototype.toObject=function(_e){return proto.v1.signaling.api.CreatePeerResponse.toObject(_e,this)},proto.v1.signaling.api.CreatePeerResponse.toObject=function(_e,nt){var rt,at={peer:(rt=nt.getPeer())&&proto.v1.signaling.api.Peer.toObject(_e,rt)};return _e&&(at.$jspbMessageInstance=nt),at}),proto.v1.signaling.api.CreatePeerResponse.deserializeBinary=function(_e){var nt=new j.BinaryReader(_e),rt=new proto.v1.signaling.api.CreatePeerResponse;return proto.v1.signaling.api.CreatePeerResponse.deserializeBinaryFromReader(rt,nt)},proto.v1.signaling.api.CreatePeerResponse.deserializeBinaryFromReader=function(_e,nt){for(;nt.nextField()&&!nt.isEndGroup();)switch(nt.getFieldNumber()){case 1:var rt=new proto.v1.signaling.api.Peer;nt.readMessage(rt,proto.v1.signaling.api.Peer.deserializeBinaryFromReader),_e.setPeer(rt);break;default:nt.skipField()}return _e},proto.v1.signaling.api.CreatePeerResponse.prototype.serializeBinary=function(){var _e=new j.BinaryWriter;return proto.v1.signaling.api.CreatePeerResponse.serializeBinaryToWriter(this,_e),_e.getResultBuffer()},proto.v1.signaling.api.CreatePeerResponse.serializeBinaryToWriter=function(_e,nt){var rt;(rt=_e.getPeer())!=null&&nt.writeMessage(1,rt,proto.v1.signaling.api.Peer.serializeBinaryToWriter)},proto.v1.signaling.api.CreatePeerResponse.prototype.getPeer=function(){return j.Message.getWrapperField(this,proto.v1.signaling.api.Peer,1)},proto.v1.signaling.api.CreatePeerResponse.prototype.setPeer=function(_e){return j.Message.setWrapperField(this,1,_e)},proto.v1.signaling.api.CreatePeerResponse.prototype.clearPeer=function(){return this.setPeer(void 0)},proto.v1.signaling.api.CreatePeerResponse.prototype.hasPeer=function(){return j.Message.getField(this,1)!=null},j.Message.GENERATE_TO_OBJECT&&(proto.v1.signaling.api.DeletePeerRequest.prototype.toObject=function(_e){return proto.v1.signaling.api.DeletePeerRequest.toObject(_e,this)},proto.v1.signaling.api.DeletePeerRequest.toObject=function(_e,nt){var rt={peerId:j.Message.getFieldWithDefault(nt,1,"")};return _e&&(rt.$jspbMessageInstance=nt),rt}),proto.v1.signaling.api.DeletePeerRequest.deserializeBinary=function(_e){var nt=new j.BinaryReader(_e),rt=new proto.v1.signaling.api.DeletePeerRequest;return proto.v1.signaling.api.DeletePeerRequest.deserializeBinaryFromReader(rt,nt)},proto.v1.signaling.api.DeletePeerRequest.deserializeBinaryFromReader=function(_e,nt){for(;nt.nextField()&&!nt.isEndGroup();)switch(nt.getFieldNumber()){case 1:var rt=nt.readString();_e.setPeerId(rt);break;default:nt.skipField()}return _e},proto.v1.signaling.api.DeletePeerRequest.prototype.serializeBinary=function(){var _e=new j.BinaryWriter;return proto.v1.signaling.api.DeletePeerRequest.serializeBinaryToWriter(this,_e),_e.getResultBuffer()},proto.v1.signaling.api.DeletePeerRequest.serializeBinaryToWriter=function(_e,nt){var rt;(rt=_e.getPeerId()).length>0&&nt.writeString(1,rt)},proto.v1.signaling.api.DeletePeerRequest.prototype.getPeerId=function(){return j.Message.getFieldWithDefault(this,1,"")},proto.v1.signaling.api.DeletePeerRequest.prototype.setPeerId=function(_e){return j.Message.setProto3StringField(this,1,_e)},j.Message.GENERATE_TO_OBJECT&&(proto.v1.signaling.api.DeletePeerResponse.prototype.toObject=function(_e){return proto.v1.signaling.api.DeletePeerResponse.toObject(_e,this)},proto.v1.signaling.api.DeletePeerResponse.toObject=function(_e,nt){var rt={};return _e&&(rt.$jspbMessageInstance=nt),rt}),proto.v1.signaling.api.DeletePeerResponse.deserializeBinary=function(_e){var nt=new j.BinaryReader(_e),rt=new proto.v1.signaling.api.DeletePeerResponse;return proto.v1.signaling.api.DeletePeerResponse.deserializeBinaryFromReader(rt,nt)},proto.v1.signaling.api.DeletePeerResponse.deserializeBinaryFromReader=function(_e,nt){for(;nt.nextField()&&!nt.isEndGroup();)nt.getFieldNumber(),nt.skipField();return _e},proto.v1.signaling.api.DeletePeerResponse.prototype.serializeBinary=function(){var _e=new j.BinaryWriter;return proto.v1.signaling.api.DeletePeerResponse.serializeBinaryToWriter(this,_e),_e.getResultBuffer()},proto.v1.signaling.api.DeletePeerResponse.serializeBinaryToWriter=function(_e,nt){},j.Message.GENERATE_TO_OBJECT&&(proto.v1.signaling.api.RefreshPeerRequest.prototype.toObject=function(_e){return proto.v1.signaling.api.RefreshPeerRequest.toObject(_e,this)},proto.v1.signaling.api.RefreshPeerRequest.toObject=function(_e,nt){var rt,at={peer:(rt=nt.getPeer())&&proto.v1.signaling.api.Peer.toObject(_e,rt)};return _e&&(at.$jspbMessageInstance=nt),at}),proto.v1.signaling.api.RefreshPeerRequest.deserializeBinary=function(_e){var nt=new j.BinaryReader(_e),rt=new proto.v1.signaling.api.RefreshPeerRequest;return proto.v1.signaling.api.RefreshPeerRequest.deserializeBinaryFromReader(rt,nt)},proto.v1.signaling.api.RefreshPeerRequest.deserializeBinaryFromReader=function(_e,nt){for(;nt.nextField()&&!nt.isEndGroup();)switch(nt.getFieldNumber()){case 1:var rt=new proto.v1.signaling.api.Peer;nt.readMessage(rt,proto.v1.signaling.api.Peer.deserializeBinaryFromReader),_e.setPeer(rt);break;default:nt.skipField()}return _e},proto.v1.signaling.api.RefreshPeerRequest.prototype.serializeBinary=function(){var _e=new j.BinaryWriter;return proto.v1.signaling.api.RefreshPeerRequest.serializeBinaryToWriter(this,_e),_e.getResultBuffer()},proto.v1.signaling.api.RefreshPeerRequest.serializeBinaryToWriter=function(_e,nt){var rt;(rt=_e.getPeer())!=null&&nt.writeMessage(1,rt,proto.v1.signaling.api.Peer.serializeBinaryToWriter)},proto.v1.signaling.api.RefreshPeerRequest.prototype.getPeer=function(){return j.Message.getWrapperField(this,proto.v1.signaling.api.Peer,1)},proto.v1.signaling.api.RefreshPeerRequest.prototype.setPeer=function(_e){return j.Message.setWrapperField(this,1,_e)},proto.v1.signaling.api.RefreshPeerRequest.prototype.clearPeer=function(){return this.setPeer(void 0)},proto.v1.signaling.api.RefreshPeerRequest.prototype.hasPeer=function(){return j.Message.getField(this,1)!=null},j.Message.GENERATE_TO_OBJECT&&(proto.v1.signaling.api.RefreshPeerResponse.prototype.toObject=function(_e){return proto.v1.signaling.api.RefreshPeerResponse.toObject(_e,this)},proto.v1.signaling.api.RefreshPeerResponse.toObject=function(_e,nt){var rt={};return _e&&(rt.$jspbMessageInstance=nt),rt}),proto.v1.signaling.api.RefreshPeerResponse.deserializeBinary=function(_e){var nt=new j.BinaryReader(_e),rt=new proto.v1.signaling.api.RefreshPeerResponse;return proto.v1.signaling.api.RefreshPeerResponse.deserializeBinaryFromReader(rt,nt)},proto.v1.signaling.api.RefreshPeerResponse.deserializeBinaryFromReader=function(_e,nt){for(;nt.nextField()&&!nt.isEndGroup();)nt.getFieldNumber(),nt.skipField();return _e},proto.v1.signaling.api.RefreshPeerResponse.prototype.serializeBinary=function(){var _e=new j.BinaryWriter;return proto.v1.signaling.api.RefreshPeerResponse.serializeBinaryToWriter(this,_e),_e.getResultBuffer()},proto.v1.signaling.api.RefreshPeerResponse.serializeBinaryToWriter=function(_e,nt){},j.Message.GENERATE_TO_OBJECT&&(proto.v1.signaling.api.GetPeersRequest.prototype.toObject=function(_e){return proto.v1.signaling.api.GetPeersRequest.toObject(_e,this)},proto.v1.signaling.api.GetPeersRequest.toObject=function(_e,nt){var rt={};return _e&&(rt.$jspbMessageInstance=nt),rt}),proto.v1.signaling.api.GetPeersRequest.deserializeBinary=function(_e){var nt=new j.BinaryReader(_e),rt=new proto.v1.signaling.api.GetPeersRequest;return proto.v1.signaling.api.GetPeersRequest.deserializeBinaryFromReader(rt,nt)},proto.v1.signaling.api.GetPeersRequest.deserializeBinaryFromReader=function(_e,nt){for(;nt.nextField()&&!nt.isEndGroup();)nt.getFieldNumber(),nt.skipField();return _e},proto.v1.signaling.api.GetPeersRequest.prototype.serializeBinary=function(){var _e=new j.BinaryWriter;return proto.v1.signaling.api.GetPeersRequest.serializeBinaryToWriter(this,_e),_e.getResultBuffer()},proto.v1.signaling.api.GetPeersRequest.serializeBinaryToWriter=function(_e,nt){},proto.v1.signaling.api.GetPeersResponse.repeatedFields_=[1],j.Message.GENERATE_TO_OBJECT&&(proto.v1.signaling.api.GetPeersResponse.prototype.toObject=function(_e){return proto.v1.signaling.api.GetPeersResponse.toObject(_e,this)},proto.v1.signaling.api.GetPeersResponse.toObject=function(_e,nt){var rt={peersList:j.Message.toObjectList(nt.getPeersList(),proto.v1.signaling.api.Peer.toObject,_e)};return _e&&(rt.$jspbMessageInstance=nt),rt}),proto.v1.signaling.api.GetPeersResponse.deserializeBinary=function(_e){var nt=new j.BinaryReader(_e),rt=new proto.v1.signaling.api.GetPeersResponse;return proto.v1.signaling.api.GetPeersResponse.deserializeBinaryFromReader(rt,nt)},proto.v1.signaling.api.GetPeersResponse.deserializeBinaryFromReader=function(_e,nt){for(;nt.nextField()&&!nt.isEndGroup();)switch(nt.getFieldNumber()){case 1:var rt=new proto.v1.signaling.api.Peer;nt.readMessage(rt,proto.v1.signaling.api.Peer.deserializeBinaryFromReader),_e.addPeers(rt);break;default:nt.skipField()}return _e},proto.v1.signaling.api.GetPeersResponse.prototype.serializeBinary=function(){var _e=new j.BinaryWriter;return proto.v1.signaling.api.GetPeersResponse.serializeBinaryToWriter(this,_e),_e.getResultBuffer()},proto.v1.signaling.api.GetPeersResponse.serializeBinaryToWriter=function(_e,nt){var rt;(rt=_e.getPeersList()).length>0&&nt.writeRepeatedMessage(1,rt,proto.v1.signaling.api.Peer.serializeBinaryToWriter)},proto.v1.signaling.api.GetPeersResponse.prototype.getPeersList=function(){return j.Message.getRepeatedWrapperField(this,proto.v1.signaling.api.Peer,1)},proto.v1.signaling.api.GetPeersResponse.prototype.setPeersList=function(_e){return j.Message.setRepeatedWrapperField(this,1,_e)},proto.v1.signaling.api.GetPeersResponse.prototype.addPeers=function(_e,nt){return j.Message.addToRepeatedWrapperField(this,1,_e,proto.v1.signaling.api.Peer,nt)},proto.v1.signaling.api.GetPeersResponse.prototype.clearPeersList=function(){return this.setPeersList([])},j.Message.GENERATE_TO_OBJECT&&(proto.v1.signaling.api.GetIceServersRequest.prototype.toObject=function(_e){return proto.v1.signaling.api.GetIceServersRequest.toObject(_e,this)},proto.v1.signaling.api.GetIceServersRequest.toObject=function(_e,nt){var rt={};return _e&&(rt.$jspbMessageInstance=nt),rt}),proto.v1.signaling.api.GetIceServersRequest.deserializeBinary=function(_e){var nt=new j.BinaryReader(_e),rt=new proto.v1.signaling.api.GetIceServersRequest;return proto.v1.signaling.api.GetIceServersRequest.deserializeBinaryFromReader(rt,nt)},proto.v1.signaling.api.GetIceServersRequest.deserializeBinaryFromReader=function(_e,nt){for(;nt.nextField()&&!nt.isEndGroup();)nt.getFieldNumber(),nt.skipField();return _e},proto.v1.signaling.api.GetIceServersRequest.prototype.serializeBinary=function(){var _e=new j.BinaryWriter;return proto.v1.signaling.api.GetIceServersRequest.serializeBinaryToWriter(this,_e),_e.getResultBuffer()},proto.v1.signaling.api.GetIceServersRequest.serializeBinaryToWriter=function(_e,nt){},j.Message.GENERATE_TO_OBJECT&&(proto.v1.signaling.api.GetIceServersResponse.prototype.toObject=function(_e){return proto.v1.signaling.api.GetIceServersResponse.toObject(_e,this)},proto.v1.signaling.api.GetIceServersResponse.toObject=function(_e,nt){var rt={iceServers:j.Message.getFieldWithDefault(nt,1,"")};return _e&&(rt.$jspbMessageInstance=nt),rt}),proto.v1.signaling.api.GetIceServersResponse.deserializeBinary=function(_e){var nt=new j.BinaryReader(_e),rt=new proto.v1.signaling.api.GetIceServersResponse;return proto.v1.signaling.api.GetIceServersResponse.deserializeBinaryFromReader(rt,nt)},proto.v1.signaling.api.GetIceServersResponse.deserializeBinaryFromReader=function(_e,nt){for(;nt.nextField()&&!nt.isEndGroup();)switch(nt.getFieldNumber()){case 1:var rt=nt.readString();_e.setIceServers(rt);break;default:nt.skipField()}return _e},proto.v1.signaling.api.GetIceServersResponse.prototype.serializeBinary=function(){var _e=new j.BinaryWriter;return proto.v1.signaling.api.GetIceServersResponse.serializeBinaryToWriter(this,_e),_e.getResultBuffer()},proto.v1.signaling.api.GetIceServersResponse.serializeBinaryToWriter=function(_e,nt){var rt;(rt=_e.getIceServers()).length>0&&nt.writeString(1,rt)},proto.v1.signaling.api.GetIceServersResponse.prototype.getIceServers=function(){return j.Message.getFieldWithDefault(this,1,"")},proto.v1.signaling.api.GetIceServersResponse.prototype.setIceServers=function(_e){return j.Message.setProto3StringField(this,1,_e)},j.Message.GENERATE_TO_OBJECT&&(proto.v1.signaling.api.SendSignalRequest.prototype.toObject=function(_e){return proto.v1.signaling.api.SendSignalRequest.toObject(_e,this)},proto.v1.signaling.api.SendSignalRequest.toObject=function(_e,nt){var rt,at={signal:(rt=nt.getSignal())&&proto.v1.signaling.api.Signal.toObject(_e,rt)};return _e&&(at.$jspbMessageInstance=nt),at}),proto.v1.signaling.api.SendSignalRequest.deserializeBinary=function(_e){var nt=new j.BinaryReader(_e),rt=new proto.v1.signaling.api.SendSignalRequest;return proto.v1.signaling.api.SendSignalRequest.deserializeBinaryFromReader(rt,nt)},proto.v1.signaling.api.SendSignalRequest.deserializeBinaryFromReader=function(_e,nt){for(;nt.nextField()&&!nt.isEndGroup();)switch(nt.getFieldNumber()){case 1:var rt=new proto.v1.signaling.api.Signal;nt.readMessage(rt,proto.v1.signaling.api.Signal.deserializeBinaryFromReader),_e.setSignal(rt);break;default:nt.skipField()}return _e},proto.v1.signaling.api.SendSignalRequest.prototype.serializeBinary=function(){var _e=new j.BinaryWriter;return proto.v1.signaling.api.SendSignalRequest.serializeBinaryToWriter(this,_e),_e.getResultBuffer()},proto.v1.signaling.api.SendSignalRequest.serializeBinaryToWriter=function(_e,nt){var rt;(rt=_e.getSignal())!=null&&nt.writeMessage(1,rt,proto.v1.signaling.api.Signal.serializeBinaryToWriter)},proto.v1.signaling.api.SendSignalRequest.prototype.getSignal=function(){return j.Message.getWrapperField(this,proto.v1.signaling.api.Signal,1)},proto.v1.signaling.api.SendSignalRequest.prototype.setSignal=function(_e){return j.Message.setWrapperField(this,1,_e)},proto.v1.signaling.api.SendSignalRequest.prototype.clearSignal=function(){return this.setSignal(void 0)},proto.v1.signaling.api.SendSignalRequest.prototype.hasSignal=function(){return j.Message.getField(this,1)!=null},j.Message.GENERATE_TO_OBJECT&&(proto.v1.signaling.api.SendSignalResponse.prototype.toObject=function(_e){return proto.v1.signaling.api.SendSignalResponse.toObject(_e,this)},proto.v1.signaling.api.SendSignalResponse.toObject=function(_e,nt){var rt,at={sessionId:(rt=nt.getSessionId())&&et.StringValue.toObject(_e,rt),sessionCreatedTimestamp:(rt=nt.getSessionCreatedTimestamp())&&et.Int64Value.toObject(_e,rt)};return _e&&(at.$jspbMessageInstance=nt),at}),proto.v1.signaling.api.SendSignalResponse.deserializeBinary=function(_e){var nt=new j.BinaryReader(_e),rt=new proto.v1.signaling.api.SendSignalResponse;return proto.v1.signaling.api.SendSignalResponse.deserializeBinaryFromReader(rt,nt)},proto.v1.signaling.api.SendSignalResponse.deserializeBinaryFromReader=function(_e,nt){for(;nt.nextField()&&!nt.isEndGroup();)switch(nt.getFieldNumber()){case 1:var rt=new et.StringValue;nt.readMessage(rt,et.StringValue.deserializeBinaryFromReader),_e.setSessionId(rt);break;case 2:rt=new et.Int64Value,nt.readMessage(rt,et.Int64Value.deserializeBinaryFromReader),_e.setSessionCreatedTimestamp(rt);break;default:nt.skipField()}return _e},proto.v1.signaling.api.SendSignalResponse.prototype.serializeBinary=function(){var _e=new j.BinaryWriter;return proto.v1.signaling.api.SendSignalResponse.serializeBinaryToWriter(this,_e),_e.getResultBuffer()},proto.v1.signaling.api.SendSignalResponse.serializeBinaryToWriter=function(_e,nt){var rt=void 0;(rt=_e.getSessionId())!=null&&nt.writeMessage(1,rt,et.StringValue.serializeBinaryToWriter),(rt=_e.getSessionCreatedTimestamp())!=null&&nt.writeMessage(2,rt,et.Int64Value.serializeBinaryToWriter)},proto.v1.signaling.api.SendSignalResponse.prototype.getSessionId=function(){return j.Message.getWrapperField(this,et.StringValue,1)},proto.v1.signaling.api.SendSignalResponse.prototype.setSessionId=function(_e){return j.Message.setWrapperField(this,1,_e)},proto.v1.signaling.api.SendSignalResponse.prototype.clearSessionId=function(){return this.setSessionId(void 0)},proto.v1.signaling.api.SendSignalResponse.prototype.hasSessionId=function(){return j.Message.getField(this,1)!=null},proto.v1.signaling.api.SendSignalResponse.prototype.getSessionCreatedTimestamp=function(){return j.Message.getWrapperField(this,et.Int64Value,2)},proto.v1.signaling.api.SendSignalResponse.prototype.setSessionCreatedTimestamp=function(_e){return j.Message.setWrapperField(this,2,_e)},proto.v1.signaling.api.SendSignalResponse.prototype.clearSessionCreatedTimestamp=function(){return this.setSessionCreatedTimestamp(void 0)},proto.v1.signaling.api.SendSignalResponse.prototype.hasSessionCreatedTimestamp=function(){return j.Message.getField(this,2)!=null},j.Message.GENERATE_TO_OBJECT&&(proto.v1.signaling.api.ReceiveSignalStreamRequest.prototype.toObject=function(_e){return proto.v1.signaling.api.ReceiveSignalStreamRequest.toObject(_e,this)},proto.v1.signaling.api.ReceiveSignalStreamRequest.toObject=function(_e,nt){var rt={peerId:j.Message.getFieldWithDefault(nt,1,"")};return _e&&(rt.$jspbMessageInstance=nt),rt}),proto.v1.signaling.api.ReceiveSignalStreamRequest.deserializeBinary=function(_e){var nt=new j.BinaryReader(_e),rt=new proto.v1.signaling.api.ReceiveSignalStreamRequest;return proto.v1.signaling.api.ReceiveSignalStreamRequest.deserializeBinaryFromReader(rt,nt)},proto.v1.signaling.api.ReceiveSignalStreamRequest.deserializeBinaryFromReader=function(_e,nt){for(;nt.nextField()&&!nt.isEndGroup();)switch(nt.getFieldNumber()){case 1:var rt=nt.readString();_e.setPeerId(rt);break;default:nt.skipField()}return _e},proto.v1.signaling.api.ReceiveSignalStreamRequest.prototype.serializeBinary=function(){var _e=new j.BinaryWriter;return proto.v1.signaling.api.ReceiveSignalStreamRequest.serializeBinaryToWriter(this,_e),_e.getResultBuffer()},proto.v1.signaling.api.ReceiveSignalStreamRequest.serializeBinaryToWriter=function(_e,nt){var rt;(rt=_e.getPeerId()).length>0&&nt.writeString(1,rt)},proto.v1.signaling.api.ReceiveSignalStreamRequest.prototype.getPeerId=function(){return j.Message.getFieldWithDefault(this,1,"")},proto.v1.signaling.api.ReceiveSignalStreamRequest.prototype.setPeerId=function(_e){return j.Message.setProto3StringField(this,1,_e)},j.Message.GENERATE_TO_OBJECT&&(proto.v1.signaling.api.ReceiveSignalStreamResponse.prototype.toObject=function(_e){return proto.v1.signaling.api.ReceiveSignalStreamResponse.toObject(_e,this)},proto.v1.signaling.api.ReceiveSignalStreamResponse.toObject=function(_e,nt){var rt,at={signal:(rt=nt.getSignal())&&proto.v1.signaling.api.Signal.toObject(_e,rt)};return _e&&(at.$jspbMessageInstance=nt),at}),proto.v1.signaling.api.ReceiveSignalStreamResponse.deserializeBinary=function(_e){var nt=new j.BinaryReader(_e),rt=new proto.v1.signaling.api.ReceiveSignalStreamResponse;return proto.v1.signaling.api.ReceiveSignalStreamResponse.deserializeBinaryFromReader(rt,nt)},proto.v1.signaling.api.ReceiveSignalStreamResponse.deserializeBinaryFromReader=function(_e,nt){for(;nt.nextField()&&!nt.isEndGroup();)switch(nt.getFieldNumber()){case 1:var rt=new proto.v1.signaling.api.Signal;nt.readMessage(rt,proto.v1.signaling.api.Signal.deserializeBinaryFromReader),_e.setSignal(rt);break;default:nt.skipField()}return _e},proto.v1.signaling.api.ReceiveSignalStreamResponse.prototype.serializeBinary=function(){var _e=new j.BinaryWriter;return proto.v1.signaling.api.ReceiveSignalStreamResponse.serializeBinaryToWriter(this,_e),_e.getResultBuffer()},proto.v1.signaling.api.ReceiveSignalStreamResponse.serializeBinaryToWriter=function(_e,nt){var rt;(rt=_e.getSignal())!=null&&nt.writeMessage(1,rt,proto.v1.signaling.api.Signal.serializeBinaryToWriter)},proto.v1.signaling.api.ReceiveSignalStreamResponse.prototype.getSignal=function(){return j.Message.getWrapperField(this,proto.v1.signaling.api.Signal,1)},proto.v1.signaling.api.ReceiveSignalStreamResponse.prototype.setSignal=function(_e){return j.Message.setWrapperField(this,1,_e)},proto.v1.signaling.api.ReceiveSignalStreamResponse.prototype.clearSignal=function(){return this.setSignal(void 0)},proto.v1.signaling.api.ReceiveSignalStreamResponse.prototype.hasSignal=function(){return j.Message.getField(this,1)!=null},proto.v1.signaling.api.SessionType={UNKNOWN:0,TELEOP:1,PORT_FORWARD:2},$.object.extend(i,proto.v1.signaling.api)},function(o,i,s){function j(st){return(j=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(lt){return typeof lt}:function(lt){return lt&&typeof Symbol=="function"&<.constructor===Symbol&<!==Symbol.prototype?"symbol":typeof lt})(st)}function $(st,lt){return!lt||j(lt)!=="object"&&typeof lt!="function"?Z(st):lt}function Z(st){if(st===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return st}function et(st){var lt=typeof Map=="function"?new Map:void 0;return(et=function(it){if(it===null||(ut=it,Function.toString.call(ut).indexOf("[native code]")===-1))return it;var ut;if(typeof it!="function")throw new TypeError("Super expression must either be null or a function");if(lt!==void 0){if(lt.has(it))return lt.get(it);lt.set(it,pt)}function pt(){return _e(it,arguments,at(this).constructor)}return pt.prototype=Object.create(it.prototype,{constructor:{value:pt,enumerable:!1,writable:!0,configurable:!0}}),rt(pt,it)})(st)}function _e(st,lt,it){return(_e=nt()?Reflect.construct:function(ut,pt,bt){var xt=[null];xt.push.apply(xt,pt);var vt=new(Function.bind.apply(ut,xt));return bt&&rt(vt,bt.prototype),vt}).apply(null,arguments)}function nt(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function rt(st,lt){return(rt=Object.setPrototypeOf||function(it,ut){return it.__proto__=ut,it})(st,lt)}function at(st){return(at=Object.setPrototypeOf?Object.getPrototypeOf:function(lt){return lt.__proto__||Object.getPrototypeOf(lt)})(st)}var ft=function(st){(function(bt,xt){if(typeof xt!="function"&&xt!==null)throw new TypeError("Super expression must either be null or a function");bt.prototype=Object.create(xt&&xt.prototype,{constructor:{value:bt,writable:!0,configurable:!0}}),xt&&rt(bt,xt)})(pt,st);var lt,it,ut=(lt=pt,it=nt(),function(){var bt,xt=at(lt);if(it){var vt=at(this).constructor;bt=Reflect.construct(xt,arguments,vt)}else bt=xt.apply(this,arguments);return $(this,bt)});function pt(bt){var xt;return function(vt,mt){if(!(vt instanceof mt))throw new TypeError("Cannot call a class as a function")}(this,pt),xt=ut.call(this,`Format functions must be synchronous taking a two arguments: (info, opts) +Found: `.concat(bt.toString().split(` +`)[0],` +`)),Error.captureStackTrace(Z(xt),pt),xt}return pt}(et(Error));o.exports=function(st){if(st.length>2)throw new ft(st);function lt(){var ut=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.options=ut}function it(ut){return new lt(ut)}return lt.prototype.transform=st,it.Format=lt,it}},function(o,i,s){(function(j){var $=Object.getOwnPropertyDescriptors||function(Tt){for(var Ot=Object.keys(Tt),At={},wt=0;wt=gt)return Gt;switch(Gt){case"%s":return String(wt[At++]);case"%d":return Number(wt[At++]);case"%j":try{return JSON.stringify(wt[At++])}catch{return"[Circular]"}default:return Gt}}),Bt=wt[At];At=3&&(At.depth=arguments[2]),arguments.length>=4&&(At.colors=arguments[3]),ut(Ot)?At.showHidden=Ot:Ot&&i._extend(At,Ot),vt(At.showHidden)&&(At.showHidden=!1),vt(At.depth)&&(At.depth=2),vt(At.colors)&&(At.colors=!1),vt(At.customInspect)&&(At.customInspect=!0),At.colors&&(At.stylize=rt),ft(At,Tt,At.depth)}function rt(Tt,Ot){var At=nt.styles[Ot];return At?"\x1B["+nt.colors[At][0]+"m"+Tt+"\x1B["+nt.colors[At][1]+"m":Tt}function at(Tt,Ot){return Tt}function ft(Tt,Ot,At){if(Tt.customInspect&&Ot&&Ut(Ot.inspect)&&Ot.inspect!==i.inspect&&(!Ot.constructor||Ot.constructor.prototype!==Ot)){var wt=Ot.inspect(At,Tt);return xt(wt)||(wt=ft(Tt,wt,At)),wt}var gt=function(Et,It){if(vt(It))return Et.stylize("undefined","undefined");if(xt(It)){var Dt="'"+JSON.stringify(It).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return Et.stylize(Dt,"string")}if(bt(It))return Et.stylize(""+It,"number");if(ut(It))return Et.stylize(""+It,"boolean");if(pt(It))return Et.stylize("null","null")}(Tt,Ot);if(gt)return gt;var Nt=Object.keys(Ot),Bt=function(Et){var It={};return Et.forEach(function(Dt,Jt){It[Dt]=!0}),It}(Nt);if(Tt.showHidden&&(Nt=Object.getOwnPropertyNames(Ot)),Ft(Ot)&&(Nt.indexOf("message")>=0||Nt.indexOf("description")>=0))return st(Ot);if(Nt.length===0){if(Ut(Ot)){var Gt=Ot.name?": "+Ot.name:"";return Tt.stylize("[Function"+Gt+"]","special")}if(mt(Ot))return Tt.stylize(RegExp.prototype.toString.call(Ot),"regexp");if(Rt(Ot))return Tt.stylize(Date.prototype.toString.call(Ot),"date");if(Ft(Ot))return st(Ot)}var Kt,Zt="",zt=!1,$t=["{","}"];return it(Ot)&&(zt=!0,$t=["[","]"]),Ut(Ot)&&(Zt=" [Function"+(Ot.name?": "+Ot.name:"")+"]"),mt(Ot)&&(Zt=" "+RegExp.prototype.toString.call(Ot)),Rt(Ot)&&(Zt=" "+Date.prototype.toUTCString.call(Ot)),Ft(Ot)&&(Zt=" "+st(Ot)),Nt.length!==0||zt&&Ot.length!=0?At<0?mt(Ot)?Tt.stylize(RegExp.prototype.toString.call(Ot),"regexp"):Tt.stylize("[Object]","special"):(Tt.seen.push(Ot),Kt=zt?function(Et,It,Dt,Jt,Qt){for(var nn=[],cn=0,sn=It.length;cn=0,Jt+Qt.replace(/\u001b\[\d\d?m/g,"").length+1},0)>60?Dt[0]+(It===""?"":It+` + `)+" "+Et.join(`, + `)+" "+Dt[1]:Dt[0]+It+" "+Et.join(", ")+" "+Dt[1]}(Kt,Zt,$t)):$t[0]+Zt+$t[1]}function st(Tt){return"["+Error.prototype.toString.call(Tt)+"]"}function lt(Tt,Ot,At,wt,gt,Nt){var Bt,Gt,Kt;if((Kt=Object.getOwnPropertyDescriptor(Ot,gt)||{value:Ot[gt]}).get?Gt=Kt.set?Tt.stylize("[Getter/Setter]","special"):Tt.stylize("[Getter]","special"):Kt.set&&(Gt=Tt.stylize("[Setter]","special")),kt(wt,gt)||(Bt="["+gt+"]"),Gt||(Tt.seen.indexOf(Kt.value)<0?(Gt=pt(At)?ft(Tt,Kt.value,null):ft(Tt,Kt.value,At-1)).indexOf(` +`)>-1&&(Gt=Nt?Gt.split(` +`).map(function(Zt){return" "+Zt}).join(` +`).substr(2):` +`+Gt.split(` +`).map(function(Zt){return" "+Zt}).join(` +`)):Gt=Tt.stylize("[Circular]","special")),vt(Bt)){if(Nt&>.match(/^\d+$/))return Gt;(Bt=JSON.stringify(""+gt)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(Bt=Bt.substr(1,Bt.length-2),Bt=Tt.stylize(Bt,"name")):(Bt=Bt.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),Bt=Tt.stylize(Bt,"string"))}return Bt+": "+Gt}function it(Tt){return Array.isArray(Tt)}function ut(Tt){return typeof Tt=="boolean"}function pt(Tt){return Tt===null}function bt(Tt){return typeof Tt=="number"}function xt(Tt){return typeof Tt=="string"}function vt(Tt){return Tt===void 0}function mt(Tt){return ct(Tt)&&yt(Tt)==="[object RegExp]"}function ct(Tt){return typeof Tt=="object"&&Tt!==null}function Rt(Tt){return ct(Tt)&&yt(Tt)==="[object Date]"}function Ft(Tt){return ct(Tt)&&(yt(Tt)==="[object Error]"||Tt instanceof Error)}function Ut(Tt){return typeof Tt=="function"}function yt(Tt){return Object.prototype.toString.call(Tt)}function ht(Tt){return Tt<10?"0"+Tt.toString(10):Tt.toString(10)}i.debuglog=function(Tt){if(vt(et)&&(et=j.env.NODE_DEBUG||""),Tt=Tt.toUpperCase(),!_e[Tt])if(new RegExp("\\b"+Tt+"\\b","i").test(et)){var Ot=j.pid;_e[Tt]=function(){var At=i.format.apply(i,arguments);console.error("%s %d: %s",Tt,Ot,At)}}else _e[Tt]=function(){};return _e[Tt]},i.inspect=nt,nt.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]},nt.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},i.isArray=it,i.isBoolean=ut,i.isNull=pt,i.isNullOrUndefined=function(Tt){return Tt==null},i.isNumber=bt,i.isString=xt,i.isSymbol=function(Tt){return typeof Tt=="symbol"},i.isUndefined=vt,i.isRegExp=mt,i.isObject=ct,i.isDate=Rt,i.isError=Ft,i.isFunction=Ut,i.isPrimitive=function(Tt){return Tt===null||typeof Tt=="boolean"||typeof Tt=="number"||typeof Tt=="string"||typeof Tt=="symbol"||Tt===void 0},i.isBuffer=s(106);var Ct=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function St(){var Tt=new Date,Ot=[ht(Tt.getHours()),ht(Tt.getMinutes()),ht(Tt.getSeconds())].join(":");return[Tt.getDate(),Ct[Tt.getMonth()],Ot].join(" ")}function kt(Tt,Ot){return Object.prototype.hasOwnProperty.call(Tt,Ot)}i.log=function(){console.log("%s - %s",St(),i.format.apply(i,arguments))},i.inherits=s(107),i._extend=function(Tt,Ot){if(!Ot||!ct(Ot))return Tt;for(var At=Object.keys(Ot),wt=At.length;wt--;)Tt[At[wt]]=Ot[At[wt]];return Tt};var Lt=typeof Symbol!="undefined"?Symbol("util.promisify.custom"):void 0;function Mt(Tt,Ot){if(!Tt){var At=new Error("Promise was rejected with a falsy value");At.reason=Tt,Tt=At}return Ot(Tt)}i.promisify=function(Tt){if(typeof Tt!="function")throw new TypeError('The "original" argument must be of type Function');if(Lt&&Tt[Lt]){var Ot;if(typeof(Ot=Tt[Lt])!="function")throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(Ot,Lt,{value:Ot,enumerable:!1,writable:!1,configurable:!0}),Ot}function Ot(){for(var At,wt,gt=new Promise(function(Gt,Kt){At=Gt,wt=Kt}),Nt=[],Bt=0;Btnew Promise(Z=>setTimeout(Z,$||0))},function(o,i,s){(function(j){var $=j!==void 0&&j||typeof self!="undefined"&&self||window,Z=Function.prototype.apply;function et(_e,nt){this._id=_e,this._clearFn=nt}i.setTimeout=function(){return new et(Z.call(setTimeout,$,arguments),clearTimeout)},i.setInterval=function(){return new et(Z.call(setInterval,$,arguments),clearInterval)},i.clearTimeout=i.clearInterval=function(_e){_e&&_e.close()},et.prototype.unref=et.prototype.ref=function(){},et.prototype.close=function(){this._clearFn.call($,this._id)},i.enroll=function(_e,nt){clearTimeout(_e._idleTimeoutId),_e._idleTimeout=nt},i.unenroll=function(_e){clearTimeout(_e._idleTimeoutId),_e._idleTimeout=-1},i._unrefActive=i.active=function(_e){clearTimeout(_e._idleTimeoutId);var nt=_e._idleTimeout;nt>=0&&(_e._idleTimeoutId=setTimeout(function(){_e._onTimeout&&_e._onTimeout()},nt))},s(140),i.setImmediate=typeof self!="undefined"&&self.setImmediate||j!==void 0&&j.setImmediate||this&&this.setImmediate,i.clearImmediate=typeof self!="undefined"&&self.clearImmediate||j!==void 0&&j.clearImmediate||this&&this.clearImmediate}).call(this,s(5))},function(o,i,s){(function(j){j===void 0||!j.version||j.version.indexOf("v0.")===0||j.version.indexOf("v1.")===0&&j.version.indexOf("v1.8.")!==0?o.exports={nextTick:function($,Z,et,_e){if(typeof $!="function")throw new TypeError('"callback" argument must be a function');var nt,rt,at=arguments.length;switch(at){case 0:case 1:return j.nextTick($);case 2:return j.nextTick(function(){$.call(null,Z)});case 3:return j.nextTick(function(){$.call(null,Z,et)});case 4:return j.nextTick(function(){$.call(null,Z,et,_e)});default:for(nt=new Array(at-1),rt=0;rt0&&arguments[0]!==void 0?arguments[0]:{};$.call(this,{objectMode:!0,highWaterMark:nt.highWaterMark}),this.format=nt.format,this.level=nt.level,this.handleExceptions=nt.handleExceptions,this.handleRejections=nt.handleRejections,this.silent=nt.silent,nt.log&&(this.log=nt.log),nt.logv&&(this.logv=nt.logv),nt.close&&(this.close=nt.close),this.once("pipe",function(rt){_e.levels=rt.levels,_e.parent=rt}),this.once("unpipe",function(rt){rt===_e.parent&&(_e.parent=null,_e.close&&_e.close())})};j.inherits(et,$),et.prototype._write=function(_e,nt,rt){if(this.silent||_e.exception===!0&&!this.handleExceptions)return rt(null);var at=this.level||this.parent&&this.parent.level;if(!at||this.levels[at]>=this.levels[_e[Z]]){if(_e&&!this.format)return this.log(_e,rt);var ft=void 0,st=void 0;try{st=this.format.transform(Object.assign({},_e),this.format.options)}catch(lt){ft=lt}if(ft||!st){if(rt(),ft)throw ft;return}return this.log(st,rt)}return rt(null)},et.prototype._writev=function(_e,nt){if(this.logv){var rt=_e.filter(this._accept,this);return rt.length?this.logv(rt,nt):nt(null)}for(var at=0;at<_e.length;at++)if(this._accept(_e[at]))if(!_e[at].chunk||this.format){var ft=void 0,st=void 0;try{st=this.format.transform(Object.assign({},_e[at].chunk),this.format.options)}catch(lt){ft=lt}if(ft||!st){if(_e[at].callback(),ft)throw nt(null),ft}else this.log(st,_e[at].callback)}else this.log(_e[at].chunk,_e[at].callback);return nt(null)},et.prototype._accept=function(_e){var nt=_e.chunk;if(this.silent)return!1;var rt=this.level||this.parent&&this.parent.level;return!(nt.exception!==!0&&rt&&!(this.levels[rt]>=this.levels[nt[Z]])||!this.handleExceptions&&nt.exception===!0)},et.prototype._nop=function(){},o.exports.LegacyTransportStream=s(147)},function(o,i,s){var j,$=typeof Reflect=="object"?Reflect:null,Z=$&&typeof $.apply=="function"?$.apply:function(pt,bt,xt){return Function.prototype.apply.call(pt,bt,xt)};j=$&&typeof $.ownKeys=="function"?$.ownKeys:Object.getOwnPropertySymbols?function(pt){return Object.getOwnPropertyNames(pt).concat(Object.getOwnPropertySymbols(pt))}:function(pt){return Object.getOwnPropertyNames(pt)};var et=Number.isNaN||function(pt){return pt!=pt};function _e(){_e.init.call(this)}o.exports=_e,_e.EventEmitter=_e,_e.prototype._events=void 0,_e.prototype._eventsCount=0,_e.prototype._maxListeners=void 0;var nt=10;function rt(pt){return pt._maxListeners===void 0?_e.defaultMaxListeners:pt._maxListeners}function at(pt,bt,xt,vt){var mt,ct,Rt,Ft;if(typeof xt!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof xt);if((ct=pt._events)===void 0?(ct=pt._events=Object.create(null),pt._eventsCount=0):(ct.newListener!==void 0&&(pt.emit("newListener",bt,xt.listener?xt.listener:xt),ct=pt._events),Rt=ct[bt]),Rt===void 0)Rt=ct[bt]=xt,++pt._eventsCount;else if(typeof Rt=="function"?Rt=ct[bt]=vt?[xt,Rt]:[Rt,xt]:vt?Rt.unshift(xt):Rt.push(xt),(mt=rt(pt))>0&&Rt.length>mt&&!Rt.warned){Rt.warned=!0;var Ut=new Error("Possible EventEmitter memory leak detected. "+Rt.length+" "+String(bt)+" listeners added. Use emitter.setMaxListeners() to increase limit");Ut.name="MaxListenersExceededWarning",Ut.emitter=pt,Ut.type=bt,Ut.count=Rt.length,Ft=Ut,console&&console.warn&&console.warn(Ft)}return pt}function ft(){for(var pt=[],bt=0;bt0&&(ct=bt[0]),ct instanceof Error)throw ct;var Rt=new Error("Unhandled error."+(ct?" ("+ct.message+")":""));throw Rt.context=ct,Rt}var Ft=mt[pt];if(Ft===void 0)return!1;if(typeof Ft=="function")Z(Ft,this,bt);else{var Ut=Ft.length,yt=ut(Ft,Ut);for(xt=0;xt=0;ct--)if(xt[ct]===bt||xt[ct].listener===bt){Rt=xt[ct].listener,mt=ct;break}if(mt<0)return this;mt===0?xt.shift():function(Ft,Ut){for(;Ut+1=0;vt--)this.removeListener(pt,bt[vt]);return this},_e.prototype.listeners=function(pt){return lt(this,pt,!0)},_e.prototype.rawListeners=function(pt){return lt(this,pt,!1)},_e.listenerCount=function(pt,bt){return typeof pt.listenerCount=="function"?pt.listenerCount(bt):it.call(pt,bt)},_e.prototype.listenerCount=it,_e.prototype.eventNames=function(){return this._eventsCount>0?j(this._events):[]}},function(o,i,s){var j=s(146).Buffer,$=j.isEncoding||function(it){switch((it=""+it)&&it.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 Z(it){var ut;switch(this.encoding=function(pt){var bt=function(xt){if(!xt)return"utf8";for(var vt;;)switch(xt){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 xt;default:if(vt)return;xt=(""+xt).toLowerCase(),vt=!0}}(pt);if(typeof bt!="string"&&(j.isEncoding===$||!$(pt)))throw new Error("Unknown encoding: "+pt);return bt||pt}(it),this.encoding){case"utf16le":this.text=nt,this.end=rt,ut=4;break;case"utf8":this.fillLast=_e,ut=4;break;case"base64":this.text=at,this.end=ft,ut=3;break;default:return this.write=st,void(this.end=lt)}this.lastNeed=0,this.lastTotal=0,this.lastChar=j.allocUnsafe(ut)}function et(it){return it<=127?0:it>>5==6?2:it>>4==14?3:it>>3==30?4:it>>6==2?-1:-2}function _e(it){var ut=this.lastTotal-this.lastNeed,pt=function(bt,xt,vt){if((192&xt[0])!=128)return bt.lastNeed=0,"\uFFFD";if(bt.lastNeed>1&&xt.length>1){if((192&xt[1])!=128)return bt.lastNeed=1,"\uFFFD";if(bt.lastNeed>2&&xt.length>2&&(192&xt[2])!=128)return bt.lastNeed=2,"\uFFFD"}}(this,it);return pt!==void 0?pt:this.lastNeed<=it.length?(it.copy(this.lastChar,ut,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(it.copy(this.lastChar,ut,0,it.length),void(this.lastNeed-=it.length))}function nt(it,ut){if((it.length-ut)%2==0){var pt=it.toString("utf16le",ut);if(pt){var bt=pt.charCodeAt(pt.length-1);if(bt>=55296&&bt<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=it[it.length-2],this.lastChar[1]=it[it.length-1],pt.slice(0,-1)}return pt}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=it[it.length-1],it.toString("utf16le",ut,it.length-1)}function rt(it){var ut=it&&it.length?this.write(it):"";if(this.lastNeed){var pt=this.lastTotal-this.lastNeed;return ut+this.lastChar.toString("utf16le",0,pt)}return ut}function at(it,ut){var pt=(it.length-ut)%3;return pt===0?it.toString("base64",ut):(this.lastNeed=3-pt,this.lastTotal=3,pt===1?this.lastChar[0]=it[it.length-1]:(this.lastChar[0]=it[it.length-2],this.lastChar[1]=it[it.length-1]),it.toString("base64",ut,it.length-pt))}function ft(it){var ut=it&&it.length?this.write(it):"";return this.lastNeed?ut+this.lastChar.toString("base64",0,3-this.lastNeed):ut}function st(it){return it.toString(this.encoding)}function lt(it){return it&&it.length?this.write(it):""}i.StringDecoder=Z,Z.prototype.write=function(it){if(it.length===0)return"";var ut,pt;if(this.lastNeed){if((ut=this.fillLast(it))===void 0)return"";pt=this.lastNeed,this.lastNeed=0}else pt=0;return pt=0?(Rt>0&&(xt.lastNeed=Rt-1),Rt):--ct=0?(Rt>0&&(xt.lastNeed=Rt-2),Rt):--ct=0?(Rt>0&&(Rt===2?Rt=0:xt.lastNeed=Rt-3),Rt):0}(this,it,ut);if(!this.lastNeed)return it.toString("utf8",ut);this.lastTotal=pt;var bt=it.length-(pt-this.lastNeed);return it.copy(this.lastChar,0,bt),it.toString("utf8",ut,bt)},Z.prototype.fillLast=function(it){if(this.lastNeed<=it.length)return it.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);it.copy(this.lastChar,this.lastTotal-this.lastNeed,0,it.length),this.lastNeed-=it.length}},function(o,i,s){var j=s(13),$=Object.keys||function(it){var ut=[];for(var pt in it)ut.push(pt);return ut};o.exports=ft;var Z=s(14);Z.inherits=s(6);var et=s(67),_e=s(44);Z.inherits(ft,et);for(var nt=$(_e.prototype),rt=0;rt(en=en||0)&&(en=Math.max(en+yn,0));enHt?1:0}e:{var zt=at.navigator;if(zt){var $t=zt.userAgent;if($t){Bt=$t;break e}}Bt=""}var Et="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");function It(jt){var Ht=1;jt=jt.split(":");for(var en=[];0parseFloat(hn)){Jt=String(_n);break e}}Jt=hn}var mn,vn={};function un(jt){return function(Ht,en){var on=vn;return Object.prototype.hasOwnProperty.call(on,Ht)?on[Ht]:on[Ht]=en(Ht)}(jt,function(){for(var Ht=0,en=Gt(String(Jt)).split("."),on=Gt(String(jt)).split("."),yn=Math.max(en.length,on.length),Sn=0;Ht==0&&Sn=jt.keyCode)&&(jt.keyCode=-1)}catch{}};var Rr="closure_listenable_"+(1e6*Math.random()|0),jr=0;function yu(jt,Ht,en,on,yn){this.listener=jt,this.proxy=null,this.src=Ht,this.type=en,this.capture=!!on,this.A=yn,this.key=++jr,this.s=this.v=!1}function ys(jt){jt.s=!0,jt.listener=null,jt.proxy=null,jt.src=null,jt.A=null}function qo(jt){this.src=jt,this.a={},this.b=0}function Yo(jt,Ht){var en=Ht.type;if(en in jt.a){var on,yn=jt.a[en],Sn=Nt(yn,Ht);(on=0<=Sn)&&Array.prototype.splice.call(yn,Sn,1),on&&(ys(Ht),jt.a[en].length==0&&(delete jt.a[en],jt.b--))}}function Ko(jt,Ht,en,on){for(var yn=0;ynen.keyCode||en.returnValue!=null)){e:{var yn=!1;if(en.keyCode==0)try{en.keyCode=-1;break e}catch{yn=!0}(yn||en.returnValue==null)&&(en.returnValue=!0)}for(en=[],yn=Ht.a;yn;yn=yn.parentNode)en.push(yn);for(jt=jt.type,yn=en.length-1;0<=yn;yn--){Ht.a=en[yn];var Sn=Xs(en[yn],jt,!0,Ht);on=on&&Sn}for(yn=0;yn>>0);function Ss(jt){return lt(jt)=="function"?jt:(jt[No]||(jt[No]=function(Ht){return jt.handleEvent(Ht)}),jt[No])}function wo(){kn.call(this),this.f=new qo(this),this.N=this}function Jr(jt,Ht){jt=jt.N;var en=Ht.type||Ht;if(typeof Ht=="string")Ht=new Qn(Ht,jt);else if(Ht instanceof Qn)Ht.target=Ht.target||jt;else{var on=Ht;(function(yn,Sn){for(var dn,bn,In=1;In=ga(this).value)for(lt(Ht)=="function"&&(Ht=Ht()),jt=new Es(jt,String(Ht),this.f),en&&(jt.a=en),en=this;en;)en=en.a};var Rs,Cs={},Qo=null;function vr(jt,Ht){jt&&jt.log(bu,Ht,void 0)}function ya(){}function Lo(jt){var Ht;return(Ht=jt.a)||(Ht={},vl(jt)&&(Ht[0]=!0,Ht[1]=!0),Ht=jt.a=Ht),Ht}function _a(){}function yl(jt){return(jt=vl(jt))?new ActiveXObject(jt):new XMLHttpRequest}function vl(jt){if(!jt.b&&typeof XMLHttpRequest=="undefined"&&typeof ActiveXObject!="undefined"){for(var Ht=["MSXML2.XMLHTTP.6.0","MSXML2.XMLHTTP.3.0","MSXML2.XMLHTTP","Microsoft.XMLHTTP"],en=0;endn?null:typeof Sn=="string"?Sn.charAt(dn):Sn[dn]}((en=new oo(jt.headers)).f()),yn=at.FormData&&Ht instanceof at.FormData;!(0<=Nt(Os,"POST"))||on||yn||en.set("Content-Type","application/x-www-form-urlencoded;charset=utf-8"),en.forEach(function(Sn,dn){this.a.setRequestHeader(dn,Sn)},jt),jt.j&&(jt.a.responseType=jt.j),"withCredentials"in jt.a&&jt.a.withCredentials!==jt.H&&(jt.a.withCredentials=jt.H);try{Ps(jt),0>4),er!=64&&(dn(jn<<4&240|er>>2),Bn!=64&&dn(er<<6&192|Bn))}}(jt,function(Sn){on[yn++]=Sn}),on.subarray(0,yn)}function ks(){if(!uo){uo={};for(var jt="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".split(""),Ht=["+/=","+/","-_=","-_.","-_"],en=0;5>en;en++){var on=jt.concat(Ht[en].split(""));ts[en]=on;for(var yn=0;yn2*bn.c&&_i(bn)),1/0===dn&&(dn=0),0(dn=yn.indexOf("#"))&&(dn=yn.length),0>(bn=yn.indexOf("?"))||bn>dn?(bn=dn,In=""):In=yn.substring(bn+1,dn),dn=(yn=[yn.substr(0,bn),In,yn.substr(dn)])[1],yn[1]=jn?dn?dn+"&"+jn:jn:dn,yn=yn[0]+(yn[1]?"?"+yn[1]:"")+yn[2])):yn.a("$httpHeaders",dn))}for(on=(Ht=(0,on.a)(Ht.getRequestMessage())).length,jn=[0,0,0,0],dn=new Uint8Array(5+on),bn=3;0<=bn;bn--)jn[bn]=on%256,on>>>=8;if(dn.set(new Uint8Array(jn),1),dn.set(Ht,5),Ht=dn,jt.a=="text"){var er;for(jt=Ht,er===void 0&&(er=0),ks(),er=ts[er],Ht=[],on=0;on>2,On=(3&On)<<4|Bn>>4,Bn=(15&Bn)<<2|(In=(dn=on+2>6,In&=63,dn||(In=64,jn||(Bn=64)),Ht.push(er[bn],er[On],er[Bn]||"",er[In]||"")}Ht=Ht.join("")}else jt.a=="binary"&&(en.j="arraybuffer");return wu(en,yn,Ht),Sn}function Al(jt,Ht,en){var on=null,yn=!1;jt.on("data",function(Sn){on=Sn}),jt.on("error",function(Sn){Sn.code==0||yn||(yn=!0,Ht(Sn,null))}),jt.on("status",function(Sn){Sn.code==0||yn?en&&Ht(null,null,Sn):(yn=!0,Ht({code:Sn.code,message:Sn.details,metadata:Sn.metadata},null))}),en&&jt.on("metadata",function(Sn){Ht(null,null,null,Sn)}),jt.on("end",function(){yn||(on==null?Ht({code:2,message:"Incomplete response"}):Ht(null,on)),en&&Ht(null,null)})}function Ms(jt,Ht){var en=jt;return Ht.forEach(function(on){var yn=en;en=function(Sn){return on.intercept(Sn,yn)}}),en}Wr.prototype.on=function(jt,Ht){return jt=="data"?this.b.push(Ht):jt=="status"?this.h.push(Ht):jt=="metadata"?this.g.push(Ht):jt=="end"?this.c.push(Ht):jt=="error"&&this.f.push(Ht),this},Wr.prototype.removeListener=function(jt,Ht){return jt=="data"?To(this.b,Ht):jt=="status"?To(this.h,Ht):jt=="metadata"?To(this.g,Ht):jt=="end"?To(this.c,Ht):jt=="error"&&To(this.f,Ht),this},Wr.prototype.cancel=function(){this.j=!0,this.a.abort()},Wr.prototype.cancel=Wr.prototype.cancel,Wr.prototype.removeListener=Wr.prototype.removeListener,Wr.prototype.on=Wr.prototype.on,Er.prototype.P=function(jt,Ht,en,on,yn){var Sn=this;on=Ut(jt,Ht,"unary",on);var dn=jt.substr(0,jt.length-on.name.length);return Al(jt=Ms(function(bn){return ns(Sn,bn,dn)},this.b).call(this,Ft(on,Ht,en)),yn,!1),new yt(jt)},Er.prototype.M=function(jt,Ht,en,on){var yn=this;on=Ut(jt,Ht,"unary",on);var Sn=jt.substr(0,jt.length-on.name.length);return Ms(function(dn){return new Promise(function(bn,In){var On,jn,er;Al(ns(yn,dn,Sn),function(Bn,Fn,sr,lr){Bn?In(Bn):Fn?er=Fn:sr?jn=sr:lr?On=lr:(Bn=dn.getMethodDescriptor(),bn(new ct(er,Bn,Fn=(Fn=On)===void 0?{}:Fn,jn===void 0?null:jn)))},!0)})},this.g).call(this,Ft(on,Ht,en)).then(function(dn){return dn.getResponseMessage()})},Er.prototype.unaryCall=function(jt,Ht,en,on){return this.M(jt,Ht,en,on)},Er.prototype.R=function(jt,Ht,en,on){var yn=this;on=Ut(jt,Ht,"server_streaming",on);var Sn=jt.substr(0,jt.length-on.name.length);return Ms(function(dn){return ns(yn,dn,Sn)},this.b).call(this,Ft(on,Ht,en))},Er.prototype.serverStreaming=Er.prototype.R,Er.prototype.unaryCall=Er.prototype.unaryCall,Er.prototype.thenableCall=Er.prototype.M,Er.prototype.rpcCall=Er.prototype.P,o.exports.AbstractClientBase={MethodInfo:function(jt,Ht,en,on,yn){this.name=on,this.b=yn,this.f=jt,this.a=Ht,this.c=en}},o.exports.GrpcWebClientBase=Er,o.exports.StatusCode={OK:0,CANCELLED:1,UNKNOWN:2,INVALID_ARGUMENT:3,DEADLINE_EXCEEDED:4,NOT_FOUND:5,ALREADY_EXISTS:6,PERMISSION_DENIED:7,UNAUTHENTICATED:16,RESOURCE_EXHAUSTED:8,FAILED_PRECONDITION:9,ABORTED:10,OUT_OF_RANGE:11,UNIMPLEMENTED:12,INTERNAL:13,UNAVAILABLE:14,DATA_LOSS:15},o.exports.MethodDescriptor=Rt,o.exports.MethodType={UNARY:"unary",SERVER_STREAMING:"server_streaming"}}).call(this,s(5))},function(o,i,s){Object.defineProperty(i,"__esModule",{value:!0}),i.isAsyncIterable=i.isAsyncGenerator=i.isAsync=void 0;var j,$=s(151),Z=(j=$)&&j.__esModule?j:{default:j};function et(_e){return _e[Symbol.toStringTag]==="AsyncFunction"}i.default=function(_e){if(typeof _e!="function")throw new Error("expected a function");return et(_e)?(0,Z.default)(_e):_e},i.isAsync=et,i.isAsyncGenerator=function(_e){return _e[Symbol.toStringTag]==="AsyncGenerator"},i.isAsyncIterable=function(_e){return typeof _e[Symbol.asyncIterator]=="function"}},function(o,i,s){var j={};function $(et,_e,nt){nt||(nt=Error);var rt=function(at){var ft,st;function lt(it,ut,pt){return at.call(this,function(bt,xt,vt){return typeof _e=="string"?_e:_e(bt,xt,vt)}(it,ut,pt))||this}return st=at,(ft=lt).prototype=Object.create(st.prototype),ft.prototype.constructor=ft,ft.__proto__=st,lt}(nt);rt.prototype.name=nt.name,rt.prototype.code=et,j[et]=rt}function Z(et,_e){if(Array.isArray(et)){var nt=et.length;return et=et.map(function(rt){return String(rt)}),nt>2?"one of ".concat(_e," ").concat(et.slice(0,nt-1).join(", "),", or ")+et[nt-1]:nt===2?"one of ".concat(_e," ").concat(et[0]," or ").concat(et[1]):"of ".concat(_e," ").concat(et[0])}return"of ".concat(_e," ").concat(String(et))}$("ERR_INVALID_OPT_VALUE",function(et,_e){return'The value "'+_e+'" is invalid for option "'+et+'"'},TypeError),$("ERR_INVALID_ARG_TYPE",function(et,_e,nt){var rt,at,ft;if(typeof _e=="string"&&(at="not ",_e.substr(0,at.length)===at)?(rt="must not be",_e=_e.replace(/^not /,"")):rt="must be",function(lt,it,ut){return(ut===void 0||ut>lt.length)&&(ut=lt.length),lt.substring(ut-it.length,ut)===it}(et," argument"))ft="The ".concat(et," ").concat(rt," ").concat(Z(_e,"type"));else{var st=function(lt,it,ut){return typeof ut!="number"&&(ut=0),!(ut+it.length>lt.length)&<.indexOf(it,ut)!==-1}(et,".")?"property":"argument";ft='The "'.concat(et,'" ').concat(st," ").concat(rt," ").concat(Z(_e,"type"))}return ft+=". Received type ".concat(typeof nt)},TypeError),$("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),$("ERR_METHOD_NOT_IMPLEMENTED",function(et){return"The "+et+" method is not implemented"}),$("ERR_STREAM_PREMATURE_CLOSE","Premature close"),$("ERR_STREAM_DESTROYED",function(et){return"Cannot call "+et+" after a stream was destroyed"}),$("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),$("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),$("ERR_STREAM_WRITE_AFTER_END","write after end"),$("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),$("ERR_UNKNOWN_ENCODING",function(et){return"Unknown encoding: "+et},TypeError),$("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),o.exports.codes=j},function(o,i,s){(function(j){var $=Object.keys||function(lt){var it=[];for(var ut in lt)it.push(ut);return it};o.exports=at;var Z=s(75),et=s(79);s(6)(at,Z);for(var _e=$(et.prototype),nt=0;nt<_e.length;nt++){var rt=_e[nt];at.prototype[rt]||(at.prototype[rt]=et.prototype[rt])}function at(lt){if(!(this instanceof at))return new at(lt);Z.call(this,lt),et.call(this,lt),this.allowHalfOpen=!0,lt&&(lt.readable===!1&&(this.readable=!1),lt.writable===!1&&(this.writable=!1),lt.allowHalfOpen===!1&&(this.allowHalfOpen=!1,this.once("end",ft)))}function ft(){this._writableState.ended||j.nextTick(st,this)}function st(lt){lt.end()}Object.defineProperty(at.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(at.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(at.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(at.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState!==void 0&&this._writableState!==void 0&&this._readableState.destroyed&&this._writableState.destroyed},set:function(lt){this._readableState!==void 0&&this._writableState!==void 0&&(this._readableState.destroyed=lt,this._writableState.destroyed=lt)}})}).call(this,s(2))},function(o,i,s){s.d(i,"a",function(){return et});var j=s(36),$=s(7);const Z={"app-id":["app-id must match formant/*"]};class et extends j.a{constructor(nt,rt={}){super(nt,Object.assign({validateHeaders:at=>`${at.get("app-id")}`.startsWith("formant/")?{}:Z,headers:Object.assign(Object.assign({},et.headers),{"App-ID":`formant/${$.a}`,"App-Version":$.j})},rt)),this.endpoint=nt}}et.headers={}},function(o,i,s){Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(j,$=j.length){if(!$)throw new Error("arity is undefined");return function(...Z){return typeof Z[$-1]=="function"?j.apply(this,Z):new Promise((et,_e)=>{Z[$-1]=(nt,...rt)=>{if(nt)return _e(nt);et(rt.length>1?rt:rt[0])},j.apply(this,Z)})}},o.exports=i.default},function(o,i,s){(i=o.exports=s(67)).Stream=i,i.Readable=i,i.Writable=s(44),i.Duplex=s(20),i.Transform=s(70),i.PassThrough=s(164)},function(o,i,s){(i=o.exports=s(75)).Stream=i,i.Readable=i,i.Writable=s(79),i.Duplex=s(25),i.Transform=s(80),i.PassThrough=s(183),i.finished=s(45),i.pipeline=s(184)},function(o,i,s){s.d(i,"a",function(){return $});const j=["password","secret","token","key","buffer"];function $(Z,et=new Set){return et.has(Z)?"[ RECURSIVE ]":!(_e=Z)||typeof _e!="object"&&typeof _e!="function"?Z:(et.add(Z),Object.keys(Z).reduce((nt,rt)=>(nt[rt]=j.some(at=>rt.toLowerCase().includes(at.toLowerCase()))?"[ REDACTED ]":$(Z[rt],et),nt),{}));var _e}},function(o,i){o.exports=j,j.default=j,j.stable=Z,j.stableStringify=Z;var s=[];function j(et,_e,nt){(function ft(st,lt,it,ut){var pt;if(typeof st=="object"&&st!==null){for(pt=0;pt_e?1:0}function Z(et,_e,nt){for(var rt=function st(lt,it,ut,pt){var bt;if(typeof lt=="object"&<!==null){for(bt=0;bt!0){if(xt instanceof vt&&mt(xt))return xt;throw xt}var et=s(1),_e=s(100),nt=s.n(_e),rt=s(101),at=s.n(rt);class ft extends Error{constructor(vt,mt,ct){super(`Connection failure: ${vt.message}`),this.cause=vt,this.url=mt,this.retryable=ct}}var st=s(30);class lt extends Error{constructor(vt,mt,ct,Rt,Ft={},Ut){super(`Unexpected response (${ct}) for ${vt} ${mt}: ${JSON.stringify(Ut?Object(st.a)([...Ut.entries()].reduce((yt,[ht,Ct])=>(yt[ht]=Ct,yt),{})):{})} -- ${JSON.stringify(Object(st.a)(Rt))}`),this.method=vt,this.url=mt,this.statusCode=ct,this.body=Rt,this.validationErrors=Ft,this.headers=Ut}}class it extends Error{constructor(vt,mt){super(`Invalid headers (${JSON.stringify(vt)}) for response: ${mt.message}`),this.validationErrors=vt,this.responseError=mt}}var ut=function(xt,vt,mt,ct){return new(mt||(mt=Promise))(function(Rt,Ft){function Ut(Ct){try{ht(ct.next(Ct))}catch(St){Ft(St)}}function yt(Ct){try{ht(ct.throw(Ct))}catch(St){Ft(St)}}function ht(Ct){var St;Ct.done?Rt(Ct.value):(St=Ct.value,St instanceof mt?St:new mt(function(kt){kt(St)})).then(Ut,yt)}ht((ct=ct.apply(xt,vt||[])).next())})},pt=function(xt,vt){var mt={};for(var ct in xt)Object.prototype.hasOwnProperty.call(xt,ct)&&vt.indexOf(ct)<0&&(mt[ct]=xt[ct]);if(xt!=null&&typeof Object.getOwnPropertySymbols=="function"){var Rt=0;for(ct=Object.getOwnPropertySymbols(xt);Rtmt.validateHeaders?mt.validateHeaders(ct):{},this.verbose=mt.verbose!==!1,this.retries=mt.retries!==void 0?mt.retries:bt.retries,this.headers=mt.headers||{},this.timeoutMs=mt.timeoutMs,!(this.retries>=0))throw new Error("retries must be positive or zero");if(this.timeoutMs!==void 0&&!(this.timeoutMs>0))throw new Error("timeoutMs must be positive")}fetch(vt,mt={}){return ut(this,void 0,void 0,function*(){return(yield this.fetchVerbose(vt,mt)).body})}fetchVerbose(vt,mt={}){return ut(this,void 0,void 0,function*(){let ct=100*et.a.millisecond,Rt=0;const Ft=this.timeoutMs!==void 0?new Date().getTime()+this.timeoutMs:void 0,Ut=Ft?()=>Math.max(Ft-new Date().getTime(),0):void 0;for(;;)try{return yield this.doFetch(vt,mt,Ut)}catch(yt){const ht=Z(yt,ft);if((Ut==null?void 0:Ut())===0||Rt===this.retries||!ht.retryable&&!mt.allowUnsafeRetries)throw ht;Rt++,ct*=2+.1*(Math.random()-.5),yield Object(j.a)(Ut?Math.min(ct,Ut()):ct),this.verbose&&$.a.warn(`Connection failure, retrying. Error: ${yt.cause.message}`,{url:yt.url,error:yt.cause})}})}doFetch(vt,mt,ct){return ut(this,void 0,void 0,function*(){const{token:Rt,json:Ft}=mt,Ut=pt(mt,["token","json"]),yt=(Ut.method||"GET").toUpperCase(),ht=yt!=="POST"&&yt!=="PATCH",Ct=this.endpoint!==void 0?`${this.endpoint}${vt?`/${vt}`:""}`:vt,St=new nt.a;let kt;if(ct){const Lt=ct();Lt>0?kt=setTimeout(()=>{St.abort()},Lt):St.abort()}try{let Lt;yield Promise.race([bt.waitForConnectivity(),new Promise(Nt=>{Lt=setTimeout(Nt,ct?Math.min(et.a.minute,ct()):et.a.minute)})]),Lt&&clearTimeout(Lt);const Mt=yield at()(Ct,Object.assign(Object.assign({},Ut),{headers:Object.assign(Object.assign(Object.assign(Object.assign({},Ft!==!1?{"Content-Type":"application/json"}:{}),this.headers),Ut.headers||{}),Rt!==void 0?{Authorization:`Bearer ${Rt}`}:{}),signal:St.signal})),Tt=Mt.headers.get("content-type")||"",Ot=Tt&&Tt.startsWith("application/json"),At=Ot?yield Mt.json():yield Mt.text(),wt=()=>new lt(yt,Ct,Mt.status,At,At&&At.validationErrors||{},Mt.headers);if(!Mt.ok)throw this.verbose&&$.a[Mt.status>=500?"warn":"info"]("Response error",{method:yt,url:Ct,statusCode:Mt.status}),wt();const gt=this.validateHeaders(Mt.headers);if(Object.keys(gt).length!==0)throw new it(gt,wt());if(Mt.status===204)return{body:void 0,headers:Mt.headers};if(Ft&&!Ot)throw new Error(`Response is not JSON: ${JSON.stringify(At)}`);return{body:At,headers:Mt.headers}}catch(Lt){if(Lt.message==="Network request failed")throw new ft(Lt,Ct,ht);if(Lt.type==="system"&&["EAI_AGAIN","ECONNREFUSED","EHOSTUNREACH","ENOTFOUND"].find(At=>At===Lt.code))throw new ft(Lt,Ct,!0);if(Lt.type==="system"&&["ETIMEDOUT","ECONNRESET","ESOCKETTIMEDOUT","EPIPE"].find(At=>At===Lt.code))throw new ft(Lt,Ct,ht);if(Lt.name==="AbortError")throw new ft(Lt,Ct,ht);const Mt=Z(Lt,lt),{statusCode:Tt}=Mt;if(Tt===408||Tt===429||Tt===502||Tt===503||Tt===504)throw this.verbose&&!ht&&$.a.warn("Potentially unsafe retry"),new ft(Lt,Ct,!0);const Ot=this.validateHeaders(Mt.headers);throw Object.keys(Ot).length!==0?new it(Ot,Mt):(yield bt.onResponseError(Mt),Lt)}finally{kt&&clearTimeout(kt)}})}}bt.retries=8,bt.waitForConnectivity=()=>ut(void 0,void 0,void 0,function*(){}),bt.onResponseError=()=>ut(void 0,void 0,void 0,function*(){})},function(o,i,s){function j(ft,st){if(!(ft instanceof st))throw new TypeError("Cannot call a class as a function")}function $(ft,st){for(var lt=0;lt0&&arguments[0]!==void 0?arguments[0]:{};j(this,ft),ut.colors&&this.addColors(ut.colors),this.options=ut}var st,lt,it;return st=ft,it=[{key:"addColors",value:function(ut){var pt=Object.keys(ut).reduce(function(bt,xt){return bt[xt]=rt.test(ut[xt])?ut[xt].split(rt):ut[xt],bt},{});return ft.allColors=Object.assign({},ft.allColors||{},pt),ft.allColors}}],(lt=[{key:"addColors",value:function(ut){return ft.addColors(ut)}},{key:"colorize",value:function(ut,pt,bt){if(bt===void 0&&(bt=pt),!Array.isArray(ft.allColors[ut]))return Z[ft.allColors[ut]](bt);for(var xt=0,vt=ft.allColors[ut].length;xt=0&&j.length%1==0},o.exports=i.default},function(o,i,s){Object.defineProperty(i,"__esModule",{value:!0}),i.default={},o.exports=i.default},function(o,i,s){var j=s(4),$=j.Buffer;function Z(_e,nt){for(var rt in _e)nt[rt]=_e[rt]}function et(_e,nt,rt){return $(_e,nt,rt)}$.from&&$.alloc&&$.allocUnsafe&&$.allocUnsafeSlow?o.exports=j:(Z(j,i),i.Buffer=et),Z($,et),et.from=function(_e,nt,rt){if(typeof _e=="number")throw new TypeError("Argument must not be a number");return $(_e,nt,rt)},et.alloc=function(_e,nt,rt){if(typeof _e!="number")throw new TypeError("Argument must be a number");var at=$(_e);return nt!==void 0?typeof rt=="string"?at.fill(nt,rt):at.fill(nt):at.fill(0),at},et.allocUnsafe=function(_e){if(typeof _e!="number")throw new TypeError("Argument must be a number");return $(_e)},et.allocUnsafeSlow=function(_e){if(typeof _e!="number")throw new TypeError("Argument must be a number");return j.SlowBuffer(_e)}},function(o,i,s){(function(j,$,Z){var et=s(13);function _e(ht){var Ct=this;this.next=null,this.entry=null,this.finish=function(){(function(St,kt,Lt){var Mt=St.entry;for(St.entry=null;Mt;){var Tt=Mt.callback;kt.pendingcb--,Tt(Lt),Mt=Mt.next}kt.corkedRequestsFree?kt.corkedRequestsFree.next=St:kt.corkedRequestsFree=St})(Ct,ht)}}o.exports=vt;var nt,rt=!j.browser&&["v0.10","v0.9."].indexOf(j.version.slice(0,5))>-1?$:et.nextTick;vt.WritableState=xt;var at=s(14);at.inherits=s(6);var ft={deprecate:s(39)},st=s(68),lt=s(43).Buffer,it=Z.Uint8Array||function(){},ut,pt=s(69);function bt(){}function xt(ht,Ct){nt=nt||s(20),ht=ht||{};var St=Ct instanceof nt;this.objectMode=!!ht.objectMode,St&&(this.objectMode=this.objectMode||!!ht.writableObjectMode);var kt=ht.highWaterMark,Lt=ht.writableHighWaterMark,Mt=this.objectMode?16:16384;this.highWaterMark=kt||kt===0?kt:St&&(Lt||Lt===0)?Lt:Mt,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var Tt=ht.decodeStrings===!1;this.decodeStrings=!Tt,this.defaultEncoding=ht.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(Ot){(function(At,wt){var gt=At._writableState,Nt=gt.sync,Bt=gt.writecb;if(function(Kt){Kt.writing=!1,Kt.writecb=null,Kt.length-=Kt.writelen,Kt.writelen=0}(gt),wt)(function(Kt,Zt,zt,$t,Et){--Zt.pendingcb,zt?(et.nextTick(Et,$t),et.nextTick(yt,Kt,Zt),Kt._writableState.errorEmitted=!0,Kt.emit("error",$t)):(Et($t),Kt._writableState.errorEmitted=!0,Kt.emit("error",$t),yt(Kt,Zt))})(At,gt,Nt,wt,Bt);else{var Gt=Ft(gt);Gt||gt.corked||gt.bufferProcessing||!gt.bufferedRequest||Rt(At,gt),Nt?rt(ct,At,gt,Gt,Bt):ct(At,gt,Gt,Bt)}})(Ct,Ot)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new _e(this)}function vt(ht){if(nt=nt||s(20),!(ut.call(vt,this)||this instanceof nt))return new vt(ht);this._writableState=new xt(ht,this),this.writable=!0,ht&&(typeof ht.write=="function"&&(this._write=ht.write),typeof ht.writev=="function"&&(this._writev=ht.writev),typeof ht.destroy=="function"&&(this._destroy=ht.destroy),typeof ht.final=="function"&&(this._final=ht.final)),st.call(this)}function mt(ht,Ct,St,kt,Lt,Mt,Tt){Ct.writelen=kt,Ct.writecb=Tt,Ct.writing=!0,Ct.sync=!0,St?ht._writev(Lt,Ct.onwrite):ht._write(Lt,Mt,Ct.onwrite),Ct.sync=!1}function ct(ht,Ct,St,kt){St||function(Lt,Mt){Mt.length===0&&Mt.needDrain&&(Mt.needDrain=!1,Lt.emit("drain"))}(ht,Ct),Ct.pendingcb--,kt(),yt(ht,Ct)}function Rt(ht,Ct){Ct.bufferProcessing=!0;var St=Ct.bufferedRequest;if(ht._writev&&St&&St.next){var kt=Ct.bufferedRequestCount,Lt=new Array(kt),Mt=Ct.corkedRequestsFree;Mt.entry=St;for(var Tt=0,Ot=!0;St;)Lt[Tt]=St,St.isBuf||(Ot=!1),St=St.next,Tt+=1;Lt.allBuffers=Ot,mt(ht,Ct,!0,Ct.length,Lt,"",Mt.finish),Ct.pendingcb++,Ct.lastBufferedRequest=null,Mt.next?(Ct.corkedRequestsFree=Mt.next,Mt.next=null):Ct.corkedRequestsFree=new _e(Ct),Ct.bufferedRequestCount=0}else{for(;St;){var At=St.chunk,wt=St.encoding,gt=St.callback;if(mt(ht,Ct,!1,Ct.objectMode?1:At.length,At,wt,gt),St=St.next,Ct.bufferedRequestCount--,Ct.writing)break}St===null&&(Ct.lastBufferedRequest=null)}Ct.bufferedRequest=St,Ct.bufferProcessing=!1}function Ft(ht){return ht.ending&&ht.length===0&&ht.bufferedRequest===null&&!ht.finished&&!ht.writing}function Ut(ht,Ct){ht._final(function(St){Ct.pendingcb--,St&&ht.emit("error",St),Ct.prefinished=!0,ht.emit("prefinish"),yt(ht,Ct)})}function yt(ht,Ct){var St=Ft(Ct);return St&&(function(kt,Lt){Lt.prefinished||Lt.finalCalled||(typeof kt._final=="function"?(Lt.pendingcb++,Lt.finalCalled=!0,et.nextTick(Ut,kt,Lt)):(Lt.prefinished=!0,kt.emit("prefinish")))}(ht,Ct),Ct.pendingcb===0&&(Ct.finished=!0,ht.emit("finish"))),St}at.inherits(vt,st),xt.prototype.getBuffer=function(){for(var ht=this.bufferedRequest,Ct=[];ht;)Ct.push(ht),ht=ht.next;return Ct},function(){try{Object.defineProperty(xt.prototype,"buffer",{get:ft.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}}(),typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(ut=Function.prototype[Symbol.hasInstance],Object.defineProperty(vt,Symbol.hasInstance,{value:function(ht){return!!ut.call(this,ht)||this===vt&&ht&&ht._writableState instanceof xt}})):ut=function(ht){return ht instanceof this},vt.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))},vt.prototype.write=function(ht,Ct,St){var kt,Lt=this._writableState,Mt=!1,Tt=!Lt.objectMode&&(kt=ht,lt.isBuffer(kt)||kt instanceof it);return Tt&&!lt.isBuffer(ht)&&(ht=function(Ot){return lt.from(Ot)}(ht)),typeof Ct=="function"&&(St=Ct,Ct=null),Tt?Ct="buffer":Ct||(Ct=Lt.defaultEncoding),typeof St!="function"&&(St=bt),Lt.ended?function(Ot,At){var wt=new Error("write after end");Ot.emit("error",wt),et.nextTick(At,wt)}(this,St):(Tt||function(Ot,At,wt,gt){var Nt=!0,Bt=!1;return wt===null?Bt=new TypeError("May not write null values to stream"):typeof wt=="string"||wt===void 0||At.objectMode||(Bt=new TypeError("Invalid non-string/buffer chunk")),Bt&&(Ot.emit("error",Bt),et.nextTick(gt,Bt),Nt=!1),Nt}(this,Lt,ht,St))&&(Lt.pendingcb++,Mt=function(Ot,At,wt,gt,Nt,Bt){if(!wt){var Gt=function($t,Et,It){return $t.objectMode||$t.decodeStrings===!1||typeof Et!="string"||(Et=lt.from(Et,It)),Et}(At,gt,Nt);gt!==Gt&&(wt=!0,Nt="buffer",gt=Gt)}var Kt=At.objectMode?1:gt.length;At.length+=Kt;var Zt=At.length-1))throw new TypeError("Unknown encoding: "+ht);return this._writableState.defaultEncoding=ht,this},Object.defineProperty(vt.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),vt.prototype._write=function(ht,Ct,St){St(new Error("_write() is not implemented"))},vt.prototype._writev=null,vt.prototype.end=function(ht,Ct,St){var kt=this._writableState;typeof ht=="function"?(St=ht,ht=null,Ct=null):typeof Ct=="function"&&(St=Ct,Ct=null),ht!=null&&this.write(ht,Ct),kt.corked&&(kt.corked=1,this.uncork()),kt.ending||kt.finished||function(Lt,Mt,Tt){Mt.ending=!0,yt(Lt,Mt),Tt&&(Mt.finished?et.nextTick(Tt):Lt.once("finish",Tt)),Mt.ended=!0,Lt.writable=!1}(this,kt,St)},Object.defineProperty(vt.prototype,"destroyed",{get:function(){return this._writableState!==void 0&&this._writableState.destroyed},set:function(ht){this._writableState&&(this._writableState.destroyed=ht)}}),vt.prototype.destroy=pt.destroy,vt.prototype._undestroy=pt.undestroy,vt.prototype._destroy=function(ht,Ct){this.end(),Ct(ht)}}).call(this,s(2),s(12).setImmediate,s(5))},function(o,i,s){var j=s(24).codes.ERR_STREAM_PREMATURE_CLOSE;function $(){}o.exports=function Z(et,_e,nt){if(typeof _e=="function")return Z(et,null,_e);_e||(_e={}),nt=function(vt){var mt=!1;return function(){if(!mt){mt=!0;for(var ct=arguments.length,Rt=new Array(ct),Ft=0;Ft",'"',"`"," ","\r",` +`," "]),at=["'"].concat(rt),ft=["%","/","?",";","#"].concat(at),st=["/","?","#"],lt=/^[+a-z0-9A-Z_-]{0,63}$/,it=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,ut={javascript:!0,"javascript:":!0},pt={javascript:!0,"javascript:":!0},bt={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},xt=s(196);function vt(mt,ct,Rt){if(mt&&$.isObject(mt)&&mt instanceof Z)return mt;var Ft=new Z;return Ft.parse(mt,ct,Rt),Ft}Z.prototype.parse=function(mt,ct,Rt){if(!$.isString(mt))throw new TypeError("Parameter 'url' must be a string, not "+typeof mt);var Ft=mt.indexOf("?"),Ut=Ft!==-1&&Ft127?Kt+="x":Kt+=Gt[Zt];if(!Kt.match(lt)){var $t=Nt.slice(0,At),Et=Nt.slice(At+1),It=Gt.match(it);It&&($t.push(It[1]),Et.unshift(It[2])),Et.length&&(ht="/"+Et.join(".")+ht),this.hostname=$t.join(".");break}}}this.hostname.length>255?this.hostname="":this.hostname=this.hostname.toLowerCase(),gt||(this.hostname=j.toASCII(this.hostname));var Dt=this.port?":"+this.port:"",Jt=this.hostname||"";this.host=Jt+Dt,this.href+=this.host,gt&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),ht[0]!=="/"&&(ht="/"+ht))}if(!ut[kt])for(At=0,Bt=at.length;At0)&&Rt.host.split("@"))&&(Rt.auth=It.shift(),Rt.host=Rt.hostname=It.shift())),Rt.search=mt.search,Rt.query=mt.query,$.isNull(Rt.pathname)&&$.isNull(Rt.search)||(Rt.path=(Rt.pathname?Rt.pathname:"")+(Rt.search?Rt.search:"")),Rt.href=Rt.format(),Rt;if(!Gt.length)return Rt.pathname=null,Rt.search?Rt.path="/"+Rt.search:Rt.path=null,Rt.href=Rt.format(),Rt;for(var Zt=Gt.slice(-1)[0],zt=(Rt.host||mt.host||Gt.length>1)&&(Zt==="."||Zt==="..")||Zt==="",$t=0,Et=Gt.length;Et>=0;Et--)(Zt=Gt[Et])==="."?Gt.splice(Et,1):Zt===".."?(Gt.splice(Et,1),$t++):$t&&(Gt.splice(Et,1),$t--);if(!Nt&&!Bt)for(;$t--;$t)Gt.unshift("..");!Nt||Gt[0]===""||Gt[0]&&Gt[0].charAt(0)==="/"||Gt.unshift(""),zt&&Gt.join("/").substr(-1)!=="/"&&Gt.push("");var It,Dt=Gt[0]===""||Gt[0]&&Gt[0].charAt(0)==="/";return Kt&&(Rt.hostname=Rt.host=Dt?"":Gt.length?Gt.shift():"",(It=!!(Rt.host&&Rt.host.indexOf("@")>0)&&Rt.host.split("@"))&&(Rt.auth=It.shift(),Rt.host=Rt.hostname=It.shift())),(Nt=Nt||Rt.host&&Gt.length)&&!Dt&&Gt.unshift(""),Gt.length?Rt.pathname=Gt.join("/"):(Rt.pathname=null,Rt.path=null),$.isNull(Rt.pathname)&&$.isNull(Rt.search)||(Rt.path=(Rt.pathname?Rt.pathname:"")+(Rt.search?Rt.search:"")),Rt.auth=mt.auth||Rt.auth,Rt.slashes=Rt.slashes||mt.slashes,Rt.href=Rt.format(),Rt},Z.prototype.parseHost=function(){var mt=this.host,ct=_e.exec(mt);ct&&((ct=ct[0])!==":"&&(this.port=ct.substr(1)),mt=mt.substr(0,mt.length-ct.length)),mt&&(this.hostname=mt)}},function(o,i,s){var j=s(56),$=s(3).configs;i.cli=j.levels($.cli),i.npm=j.levels($.npm),i.syslog=j.levels($.syslog),i.addColors=j.levels},function(o,i,s){Object.defineProperty(i,"__esModule",{value:!0});var j=_e(s(202)),$=_e(s(203)),Z=_e(s(23)),et=_e(s(27));function _e(nt){return nt&&nt.__esModule?nt:{default:nt}}i.default=(0,et.default)(function(nt,rt,at){return(0,j.default)(nt,(0,$.default)((0,Z.default)(rt)),at)},3),o.exports=i.default},function(o,i,s){function j($){Error.captureStackTrace(this,this.constructor),this.name="EnvVarError",this.message=`env-var: ${$}`}(0,s(10).inherits)(j,Error),o.exports=j},function(o,i,s){o.exports=function(j){const $=parseInt(j,10);if(isNaN($)||j.toString().indexOf(".")!==-1)throw new Error("should be a valid integer");return $}},function(o,i,s){o.exports=function(j){const $=parseFloat(j);if(isNaN($))throw new Error("should be a valid float");return $}},function(o,i,s){o.exports=function(j){try{return JSON.parse(j)}catch{throw new Error("should be valid (parseable) JSON")}}},function(o,i,s){(function(j){function $(_e,nt){for(var rt=0,at=_e.length-1;at>=0;at--){var ft=_e[at];ft==="."?_e.splice(at,1):ft===".."?(_e.splice(at,1),rt++):rt&&(_e.splice(at,1),rt--)}if(nt)for(;rt--;rt)_e.unshift("..");return _e}function Z(_e,nt){if(_e.filter)return _e.filter(nt);for(var rt=[],at=0;at<_e.length;at++)nt(_e[at],at,_e)&&rt.push(_e[at]);return rt}i.resolve=function(){for(var _e="",nt=!1,rt=arguments.length-1;rt>=-1&&!nt;rt--){var at=rt>=0?arguments[rt]:j.cwd();if(typeof at!="string")throw new TypeError("Arguments to path.resolve must be strings");at&&(_e=at+"/"+_e,nt=at.charAt(0)==="/")}return(nt?"/":"")+(_e=$(Z(_e.split("/"),function(ft){return!!ft}),!nt).join("/"))||"."},i.normalize=function(_e){var nt=i.isAbsolute(_e),rt=et(_e,-1)==="/";return(_e=$(Z(_e.split("/"),function(at){return!!at}),!nt).join("/"))||nt||(_e="."),_e&&rt&&(_e+="/"),(nt?"/":"")+_e},i.isAbsolute=function(_e){return _e.charAt(0)==="/"},i.join=function(){var _e=Array.prototype.slice.call(arguments,0);return i.normalize(Z(_e,function(nt,rt){if(typeof nt!="string")throw new TypeError("Arguments to path.join must be strings");return nt}).join("/"))},i.relative=function(_e,nt){function rt(pt){for(var bt=0;bt=0&&pt[xt]==="";xt--);return bt>xt?[]:pt.slice(bt,xt-bt+1)}_e=i.resolve(_e).substr(1),nt=i.resolve(nt).substr(1);for(var at=rt(_e.split("/")),ft=rt(nt.split("/")),st=Math.min(at.length,ft.length),lt=st,it=0;it=1;--st)if((nt=_e.charCodeAt(st))===47){if(!ft){at=st;break}}else ft=!1;return at===-1?rt?"/":".":rt&&at===1?"/":_e.slice(0,at)},i.basename=function(_e,nt){var rt=function(at){typeof at!="string"&&(at+="");var ft,st=0,lt=-1,it=!0;for(ft=at.length-1;ft>=0;--ft)if(at.charCodeAt(ft)===47){if(!it){st=ft+1;break}}else lt===-1&&(it=!1,lt=ft+1);return lt===-1?"":at.slice(st,lt)}(_e);return nt&&rt.substr(-1*nt.length)===nt&&(rt=rt.substr(0,rt.length-nt.length)),rt},i.extname=function(_e){typeof _e!="string"&&(_e+="");for(var nt=-1,rt=0,at=-1,ft=!0,st=0,lt=_e.length-1;lt>=0;--lt){var it=_e.charCodeAt(lt);if(it!==47)at===-1&&(ft=!1,at=lt+1),it===46?nt===-1?nt=lt:st!==1&&(st=1):nt!==-1&&(st=-1);else if(!ft){rt=lt+1;break}}return nt===-1||at===-1||st===0||st===1&&nt===at-1&&nt===rt+1?"":_e.slice(nt,at)};var et="ab".substr(-1)==="b"?function(_e,nt,rt){return _e.substr(nt,rt)}:function(_e,nt,rt){return nt<0&&(nt=_e.length+nt),_e.substr(nt,rt)}}).call(this,s(2))},function(o,i){function s(j,$){var Z=[],et=[];return $==null&&($=function(_e,nt){return Z[0]===nt?"[Circular ~]":"[Circular ~."+et.slice(0,Z.indexOf(nt)).join(".")+"]"}),function(_e,nt){if(Z.length>0){var rt=Z.indexOf(this);~rt?Z.splice(rt+1):Z.push(this),~rt?et.splice(rt,1/0,_e):et.push(_e),~Z.indexOf(nt)&&(nt=$.call(this,_e,nt))}else Z.push(nt);return j==null?nt:j.call(this,_e,nt)}}(o.exports=function(j,$,Z,et){return JSON.stringify(j,s($,et),Z)}).getSerialize=s},function(o,i,s){s(227),o.exports={encode:j=>new TextEncoder().encode(j),decode:j=>new TextDecoder().decode(j)}},function(o,i,s){var j=i.format=s(9);i.levels=s(104),Object.defineProperty(j,"align",{value:s(121)}),Object.defineProperty(j,"cli",{value:s(122)}),Object.defineProperty(j,"combine",{value:s(123)}),Object.defineProperty(j,"colorize",{value:s(37)}),Object.defineProperty(j,"json",{value:s(124)}),Object.defineProperty(j,"label",{value:s(127)}),Object.defineProperty(j,"logstash",{value:s(128)}),Object.defineProperty(j,"metadata",{value:s(129)}),Object.defineProperty(j,"padLevels",{value:s(58)}),Object.defineProperty(j,"prettyPrint",{value:s(130)}),Object.defineProperty(j,"printf",{value:s(131)}),Object.defineProperty(j,"simple",{value:s(132)}),Object.defineProperty(j,"splat",{value:s(133)}),Object.defineProperty(j,"timestamp",{value:s(134)}),Object.defineProperty(j,"uncolorize",{value:s(136)})},function(o,i,s){var j=s(105);o.exports=j},function(o,i,s){function j(st){return function(lt){if(Array.isArray(lt))return $(lt)}(st)||function(lt){if(typeof Symbol!="undefined"&&Symbol.iterator in Object(lt))return Array.from(lt)}(st)||function(lt,it){if(!!lt){if(typeof lt=="string")return $(lt,it);var ut=Object.prototype.toString.call(lt).slice(8,-1);if(ut==="Object"&<.constructor&&(ut=lt.constructor.name),ut==="Map"||ut==="Set")return Array.from(lt);if(ut==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(ut))return $(lt,it)}}(st)||function(){throw new TypeError(`Invalid attempt to spread non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function $(st,lt){(lt==null||lt>st.length)&&(lt=st.length);for(var it=0,ut=new Array(lt);it0&&arguments[0]!==void 0?arguments[0]:{levels:nt.npm.levels};Z(this,st),this.paddings=st.paddingForLevels(pt.levels,pt.filler),this.options=pt}var lt,it,ut;return lt=st,ut=[{key:"getLongestLevel",value:function(pt){var bt=Object.keys(pt).map(function(xt){return xt.length});return Math.max.apply(Math,j(bt))}},{key:"paddingForLevel",value:function(pt,bt,xt){var vt=xt+1-pt.length,mt=Math.floor(vt/bt.length);return"".concat(bt).concat(bt.repeat(mt)).slice(0,vt)}},{key:"paddingForLevels",value:function(pt){var bt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:" ",xt=st.getLongestLevel(pt);return Object.keys(pt).reduce(function(vt,mt){return vt[mt]=st.paddingForLevel(mt,bt,xt),vt},{})}}],(it=[{key:"transform",value:function(pt,bt){return pt.message="".concat(this.paddings[pt[rt]]).concat(pt.message),pt[at]&&(pt[at]="".concat(this.paddings[pt[rt]]).concat(pt[at])),pt}}])&&et(lt.prototype,it),ut&&et(lt,ut),st}();o.exports=function(st){return new ft(st)},o.exports.Padder=o.exports.Format=ft},function(o,i,s){var j=s(10).format;i.warn={deprecated:function($){return function(){throw new Error(j("{ %s } was removed in winston@3.0.0.",$))}},useFormat:function($){return function(){throw new Error([j("{ %s } was removed in winston@3.0.0.",$),"Use a custom winston.format = winston.format(function) instead."].join(` +`))}},forFunctions:function($,Z,et){et.forEach(function(_e){$[_e]=i.warn[Z](_e)})},moved:function($,Z,et){function _e(){return function(){throw new Error([j("winston.%s was moved in winston@3.0.0.",et),j("Use a winston.%s instead.",Z)].join(` +`))}}Object.defineProperty($,et,{get:_e,set:_e})},forProperties:function($,Z,et){et.forEach(function(_e){var nt=i.warn[Z](_e);Object.defineProperty($,_e,{get:nt,set:nt})})}}},function(o,i,s){(function(j,$,Z){var et=s(13);function _e(ht){var Ct=this;this.next=null,this.entry=null,this.finish=function(){(function(St,kt,Lt){var Mt=St.entry;for(St.entry=null;Mt;){var Tt=Mt.callback;kt.pendingcb--,Tt(Lt),Mt=Mt.next}kt.corkedRequestsFree?kt.corkedRequestsFree.next=St:kt.corkedRequestsFree=St})(Ct,ht)}}o.exports=vt;var nt,rt=!j.browser&&["v0.10","v0.9."].indexOf(j.version.slice(0,5))>-1?$:et.nextTick;vt.WritableState=xt;var at=Object.create(s(14));at.inherits=s(6);var ft={deprecate:s(39)},st=s(61),lt=s(40).Buffer,it=Z.Uint8Array||function(){},ut,pt=s(62);function bt(){}function xt(ht,Ct){nt=nt||s(32),ht=ht||{};var St=Ct instanceof nt;this.objectMode=!!ht.objectMode,St&&(this.objectMode=this.objectMode||!!ht.writableObjectMode);var kt=ht.highWaterMark,Lt=ht.writableHighWaterMark,Mt=this.objectMode?16:16384;this.highWaterMark=kt||kt===0?kt:St&&(Lt||Lt===0)?Lt:Mt,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var Tt=ht.decodeStrings===!1;this.decodeStrings=!Tt,this.defaultEncoding=ht.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(Ot){(function(At,wt){var gt=At._writableState,Nt=gt.sync,Bt=gt.writecb;if(function(Kt){Kt.writing=!1,Kt.writecb=null,Kt.length-=Kt.writelen,Kt.writelen=0}(gt),wt)(function(Kt,Zt,zt,$t,Et){--Zt.pendingcb,zt?(et.nextTick(Et,$t),et.nextTick(yt,Kt,Zt),Kt._writableState.errorEmitted=!0,Kt.emit("error",$t)):(Et($t),Kt._writableState.errorEmitted=!0,Kt.emit("error",$t),yt(Kt,Zt))})(At,gt,Nt,wt,Bt);else{var Gt=Ft(gt);Gt||gt.corked||gt.bufferProcessing||!gt.bufferedRequest||Rt(At,gt),Nt?rt(ct,At,gt,Gt,Bt):ct(At,gt,Gt,Bt)}})(Ct,Ot)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new _e(this)}function vt(ht){if(nt=nt||s(32),!(ut.call(vt,this)||this instanceof nt))return new vt(ht);this._writableState=new xt(ht,this),this.writable=!0,ht&&(typeof ht.write=="function"&&(this._write=ht.write),typeof ht.writev=="function"&&(this._writev=ht.writev),typeof ht.destroy=="function"&&(this._destroy=ht.destroy),typeof ht.final=="function"&&(this._final=ht.final)),st.call(this)}function mt(ht,Ct,St,kt,Lt,Mt,Tt){Ct.writelen=kt,Ct.writecb=Tt,Ct.writing=!0,Ct.sync=!0,St?ht._writev(Lt,Ct.onwrite):ht._write(Lt,Mt,Ct.onwrite),Ct.sync=!1}function ct(ht,Ct,St,kt){St||function(Lt,Mt){Mt.length===0&&Mt.needDrain&&(Mt.needDrain=!1,Lt.emit("drain"))}(ht,Ct),Ct.pendingcb--,kt(),yt(ht,Ct)}function Rt(ht,Ct){Ct.bufferProcessing=!0;var St=Ct.bufferedRequest;if(ht._writev&&St&&St.next){var kt=Ct.bufferedRequestCount,Lt=new Array(kt),Mt=Ct.corkedRequestsFree;Mt.entry=St;for(var Tt=0,Ot=!0;St;)Lt[Tt]=St,St.isBuf||(Ot=!1),St=St.next,Tt+=1;Lt.allBuffers=Ot,mt(ht,Ct,!0,Ct.length,Lt,"",Mt.finish),Ct.pendingcb++,Ct.lastBufferedRequest=null,Mt.next?(Ct.corkedRequestsFree=Mt.next,Mt.next=null):Ct.corkedRequestsFree=new _e(Ct),Ct.bufferedRequestCount=0}else{for(;St;){var At=St.chunk,wt=St.encoding,gt=St.callback;if(mt(ht,Ct,!1,Ct.objectMode?1:At.length,At,wt,gt),St=St.next,Ct.bufferedRequestCount--,Ct.writing)break}St===null&&(Ct.lastBufferedRequest=null)}Ct.bufferedRequest=St,Ct.bufferProcessing=!1}function Ft(ht){return ht.ending&&ht.length===0&&ht.bufferedRequest===null&&!ht.finished&&!ht.writing}function Ut(ht,Ct){ht._final(function(St){Ct.pendingcb--,St&&ht.emit("error",St),Ct.prefinished=!0,ht.emit("prefinish"),yt(ht,Ct)})}function yt(ht,Ct){var St=Ft(Ct);return St&&(function(kt,Lt){Lt.prefinished||Lt.finalCalled||(typeof kt._final=="function"?(Lt.pendingcb++,Lt.finalCalled=!0,et.nextTick(Ut,kt,Lt)):(Lt.prefinished=!0,kt.emit("prefinish")))}(ht,Ct),Ct.pendingcb===0&&(Ct.finished=!0,ht.emit("finish"))),St}at.inherits(vt,st),xt.prototype.getBuffer=function(){for(var ht=this.bufferedRequest,Ct=[];ht;)Ct.push(ht),ht=ht.next;return Ct},function(){try{Object.defineProperty(xt.prototype,"buffer",{get:ft.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}}(),typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(ut=Function.prototype[Symbol.hasInstance],Object.defineProperty(vt,Symbol.hasInstance,{value:function(ht){return!!ut.call(this,ht)||this===vt&&ht&&ht._writableState instanceof xt}})):ut=function(ht){return ht instanceof this},vt.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))},vt.prototype.write=function(ht,Ct,St){var kt,Lt=this._writableState,Mt=!1,Tt=!Lt.objectMode&&(kt=ht,lt.isBuffer(kt)||kt instanceof it);return Tt&&!lt.isBuffer(ht)&&(ht=function(Ot){return lt.from(Ot)}(ht)),typeof Ct=="function"&&(St=Ct,Ct=null),Tt?Ct="buffer":Ct||(Ct=Lt.defaultEncoding),typeof St!="function"&&(St=bt),Lt.ended?function(Ot,At){var wt=new Error("write after end");Ot.emit("error",wt),et.nextTick(At,wt)}(this,St):(Tt||function(Ot,At,wt,gt){var Nt=!0,Bt=!1;return wt===null?Bt=new TypeError("May not write null values to stream"):typeof wt=="string"||wt===void 0||At.objectMode||(Bt=new TypeError("Invalid non-string/buffer chunk")),Bt&&(Ot.emit("error",Bt),et.nextTick(gt,Bt),Nt=!1),Nt}(this,Lt,ht,St))&&(Lt.pendingcb++,Mt=function(Ot,At,wt,gt,Nt,Bt){if(!wt){var Gt=function($t,Et,It){return $t.objectMode||$t.decodeStrings===!1||typeof Et!="string"||(Et=lt.from(Et,It)),Et}(At,gt,Nt);gt!==Gt&&(wt=!0,Nt="buffer",gt=Gt)}var Kt=At.objectMode?1:gt.length;At.length+=Kt;var Zt=At.length-1))throw new TypeError("Unknown encoding: "+ht);return this._writableState.defaultEncoding=ht,this},Object.defineProperty(vt.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),vt.prototype._write=function(ht,Ct,St){St(new Error("_write() is not implemented"))},vt.prototype._writev=null,vt.prototype.end=function(ht,Ct,St){var kt=this._writableState;typeof ht=="function"?(St=ht,ht=null,Ct=null):typeof Ct=="function"&&(St=Ct,Ct=null),ht!=null&&this.write(ht,Ct),kt.corked&&(kt.corked=1,this.uncork()),kt.ending||kt.finished||function(Lt,Mt,Tt){Mt.ending=!0,yt(Lt,Mt),Tt&&(Mt.finished?et.nextTick(Tt):Lt.once("finish",Tt)),Mt.ended=!0,Lt.writable=!1}(this,kt,St)},Object.defineProperty(vt.prototype,"destroyed",{get:function(){return this._writableState!==void 0&&this._writableState.destroyed},set:function(ht){this._writableState&&(this._writableState.destroyed=ht)}}),vt.prototype.destroy=pt.destroy,vt.prototype._undestroy=pt.undestroy,vt.prototype._destroy=function(ht,Ct){this.end(),Ct(ht)}}).call(this,s(2),s(12).setImmediate,s(5))},function(o,i,s){o.exports=s(18).EventEmitter},function(o,i,s){var j=s(13);function $(Z,et){Z.emit("error",et)}o.exports={destroy:function(Z,et){var _e=this,nt=this._readableState&&this._readableState.destroyed,rt=this._writableState&&this._writableState.destroyed;return nt||rt?(et?et(Z):!Z||this._writableState&&this._writableState.errorEmitted||j.nextTick($,this,Z),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(Z||null,function(at){!et&&at?(j.nextTick($,_e,at),_e._writableState&&(_e._writableState.errorEmitted=!0)):et&&et(at)}),this)},undestroy:function(){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.finished=!1,this._writableState.errorEmitted=!1)}}},function(o,i){},function(o,i,s){Object.defineProperty(i,"__esModule",{value:!0});var j=et(s(155)),$=et(s(23)),Z=et(s(27));function et(_e){return _e&&_e.__esModule?_e:{default:_e}}i.default=(0,Z.default)(function(_e,nt,rt,at){return(0,j.default)(nt)(_e,(0,$.default)(rt),at)},4),o.exports=i.default},function(o,i,s){Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(j){function $(...Z){if(j!==null){var et=j;j=null,et.apply(this,Z)}}return Object.assign($,j),$},o.exports=i.default},function(o,i,s){Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(j){return function(...$){if(j===null)throw new Error("Callback was already called.");var Z=j;j=null,Z.apply(this,$)}},o.exports=i.default},function(o,i,s){(function(j,$){var Z=s(13);o.exports=mt;var et,_e=s(38);mt.ReadableState=vt,s(18).EventEmitter;var nt=function(wt,gt){return wt.listeners(gt).length},rt=s(68),at=s(43).Buffer,ft=j.Uint8Array||function(){},st=s(14);st.inherits=s(6);var lt=s(161),it=void 0;it=lt&<.debuglog?lt.debuglog("stream"):function(){};var ut,pt=s(162),bt=s(69);st.inherits(mt,rt);var xt=["error","close","destroy","pause","resume"];function vt(wt,gt){wt=wt||{};var Nt=gt instanceof(et=et||s(20));this.objectMode=!!wt.objectMode,Nt&&(this.objectMode=this.objectMode||!!wt.readableObjectMode);var Bt=wt.highWaterMark,Gt=wt.readableHighWaterMark,Kt=this.objectMode?16:16384;this.highWaterMark=Bt||Bt===0?Bt:Nt&&(Gt||Gt===0)?Gt:Kt,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new pt,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.destroyed=!1,this.defaultEncoding=wt.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,wt.encoding&&(ut||(ut=s(19).StringDecoder),this.decoder=new ut(wt.encoding),this.encoding=wt.encoding)}function mt(wt){if(et=et||s(20),!(this instanceof mt))return new mt(wt);this._readableState=new vt(wt,this),this.readable=!0,wt&&(typeof wt.read=="function"&&(this._read=wt.read),typeof wt.destroy=="function"&&(this._destroy=wt.destroy)),rt.call(this)}function ct(wt,gt,Nt,Bt,Gt){var Kt,Zt=wt._readableState;return gt===null?(Zt.reading=!1,function(zt,$t){if(!$t.ended){if($t.decoder){var Et=$t.decoder.end();Et&&Et.length&&($t.buffer.push(Et),$t.length+=$t.objectMode?1:Et.length)}$t.ended=!0,Ut(zt)}}(wt,Zt)):(Gt||(Kt=function(zt,$t){var Et;It=$t,at.isBuffer(It)||It instanceof ft||typeof $t=="string"||$t===void 0||zt.objectMode||(Et=new TypeError("Invalid non-string/buffer chunk"));var It;return Et}(Zt,gt)),Kt?wt.emit("error",Kt):Zt.objectMode||gt&>.length>0?(typeof gt=="string"||Zt.objectMode||Object.getPrototypeOf(gt)===at.prototype||(gt=function(zt){return at.from(zt)}(gt)),Bt?Zt.endEmitted?wt.emit("error",new Error("stream.unshift() after end event")):Rt(wt,Zt,gt,!0):Zt.ended?wt.emit("error",new Error("stream.push() after EOF")):(Zt.reading=!1,Zt.decoder&&!Nt?(gt=Zt.decoder.write(gt),Zt.objectMode||gt.length!==0?Rt(wt,Zt,gt,!1):ht(wt,Zt)):Rt(wt,Zt,gt,!1))):Bt||(Zt.reading=!1)),function(zt){return!zt.ended&&(zt.needReadable||zt.lengthgt.highWaterMark&&(gt.highWaterMark=function(Nt){return Nt>=8388608?Nt=8388608:(Nt--,Nt|=Nt>>>1,Nt|=Nt>>>2,Nt|=Nt>>>4,Nt|=Nt>>>8,Nt|=Nt>>>16,Nt++),Nt}(wt)),wt<=gt.length?wt:gt.ended?gt.length:(gt.needReadable=!0,0))}function Ut(wt){var gt=wt._readableState;gt.needReadable=!1,gt.emittedReadable||(it("emitReadable",gt.flowing),gt.emittedReadable=!0,gt.sync?Z.nextTick(yt,wt):yt(wt))}function yt(wt){it("emit readable"),wt.emit("readable"),Lt(wt)}function ht(wt,gt){gt.readingMore||(gt.readingMore=!0,Z.nextTick(Ct,wt,gt))}function Ct(wt,gt){for(var Nt=gt.length;!gt.reading&&!gt.flowing&&!gt.ended&>.length=gt.length?(Nt=gt.decoder?gt.buffer.join(""):gt.buffer.length===1?gt.buffer.head.data:gt.buffer.concat(gt.length),gt.buffer.clear()):Nt=function(Bt,Gt,Kt){var Zt;return BtJt.length?Jt.length:zt;if(Qt===Jt.length?Dt+=Jt:Dt+=Jt.slice(0,zt),(zt-=Qt)===0){Qt===Jt.length?(++It,Et.next?$t.head=Et.next:$t.head=$t.tail=null):($t.head=Et,Et.data=Jt.slice(Qt));break}++It}return $t.length-=It,Dt}(Bt,Gt):function(zt,$t){var Et=at.allocUnsafe(zt),It=$t.head,Dt=1;for(It.data.copy(Et),zt-=It.data.length;It=It.next;){var Jt=It.data,Qt=zt>Jt.length?Jt.length:zt;if(Jt.copy(Et,Et.length-zt,0,Qt),(zt-=Qt)===0){Qt===Jt.length?(++Dt,It.next?$t.head=It.next:$t.head=$t.tail=null):($t.head=It,It.data=Jt.slice(Qt));break}++Dt}return $t.length-=Dt,Et}(Bt,Gt),Zt}(wt,gt.buffer,gt.decoder),Nt);var Nt}function Tt(wt){var gt=wt._readableState;if(gt.length>0)throw new Error('"endReadable()" called on non-empty stream');gt.endEmitted||(gt.ended=!0,Z.nextTick(Ot,gt,wt))}function Ot(wt,gt){wt.endEmitted||wt.length!==0||(wt.endEmitted=!0,gt.readable=!1,gt.emit("end"))}function At(wt,gt){for(var Nt=0,Bt=wt.length;Nt=gt.highWaterMark||gt.ended))return it("read: emitReadable",gt.length,gt.ended),gt.length===0&>.ended?Tt(this):Ut(this),null;if((wt=Ft(wt,gt))===0&>.ended)return gt.length===0&&Tt(this),null;var Bt,Gt=gt.needReadable;return it("need readable",Gt),(gt.length===0||gt.length-wt0?Mt(wt,gt):null)===null?(gt.needReadable=!0,wt=0):gt.length-=wt,gt.length===0&&(gt.ended||(gt.needReadable=!0),Nt!==wt&>.ended&&Tt(this)),Bt!==null&&this.emit("data",Bt),Bt},mt.prototype._read=function(wt){this.emit("error",new Error("_read() is not implemented"))},mt.prototype.pipe=function(wt,gt){var Nt=this,Bt=this._readableState;switch(Bt.pipesCount){case 0:Bt.pipes=wt;break;case 1:Bt.pipes=[Bt.pipes,wt];break;default:Bt.pipes.push(wt)}Bt.pipesCount+=1,it("pipe count=%d opts=%j",Bt.pipesCount,gt);var Gt=(!gt||gt.end!==!1)&&wt!==$.stdout&&wt!==$.stderr?Zt:nn;function Kt(cn,sn){it("onunpipe"),cn===Nt&&sn&&sn.hasUnpiped===!1&&(sn.hasUnpiped=!0,it("cleanup"),wt.removeListener("close",Jt),wt.removeListener("finish",Qt),wt.removeListener("drain",zt),wt.removeListener("error",Dt),wt.removeListener("unpipe",Kt),Nt.removeListener("end",Zt),Nt.removeListener("end",nn),Nt.removeListener("data",It),$t=!0,!Bt.awaitDrain||wt._writableState&&!wt._writableState.needDrain||zt())}function Zt(){it("onend"),wt.end()}Bt.endEmitted?Z.nextTick(Gt):Nt.once("end",Gt),wt.on("unpipe",Kt);var zt=function(cn){return function(){var sn=cn._readableState;it("pipeOnDrain",sn.awaitDrain),sn.awaitDrain&&sn.awaitDrain--,sn.awaitDrain===0&&nt(cn,"data")&&(sn.flowing=!0,Lt(cn))}}(Nt);wt.on("drain",zt);var $t=!1,Et=!1;function It(cn){it("ondata"),Et=!1,wt.write(cn)!==!1||Et||((Bt.pipesCount===1&&Bt.pipes===wt||Bt.pipesCount>1&&At(Bt.pipes,wt)!==-1)&&!$t&&(it("false write response, pause",Nt._readableState.awaitDrain),Nt._readableState.awaitDrain++,Et=!0),Nt.pause())}function Dt(cn){it("onerror",cn),nn(),wt.removeListener("error",Dt),nt(wt,"error")===0&&wt.emit("error",cn)}function Jt(){wt.removeListener("finish",Qt),nn()}function Qt(){it("onfinish"),wt.removeListener("close",Jt),nn()}function nn(){it("unpipe"),Nt.unpipe(wt)}return Nt.on("data",It),function(cn,sn,Vt){if(typeof cn.prependListener=="function")return cn.prependListener(sn,Vt);cn._events&&cn._events[sn]?_e(cn._events[sn])?cn._events[sn].unshift(Vt):cn._events[sn]=[Vt,cn._events[sn]]:cn.on(sn,Vt)}(wt,"error",Dt),wt.once("close",Jt),wt.once("finish",Qt),wt.emit("pipe",Nt),Bt.flowing||(it("pipe resume"),Nt.resume()),wt},mt.prototype.unpipe=function(wt){var gt=this._readableState,Nt={hasUnpiped:!1};if(gt.pipesCount===0)return this;if(gt.pipesCount===1)return wt&&wt!==gt.pipes||(wt||(wt=gt.pipes),gt.pipes=null,gt.pipesCount=0,gt.flowing=!1,wt&&wt.emit("unpipe",this,Nt)),this;if(!wt){var Bt=gt.pipes,Gt=gt.pipesCount;gt.pipes=null,gt.pipesCount=0,gt.flowing=!1;for(var Kt=0;Kt=0;Nt--)if(Bt[Nt]!==Gt[Nt])return!1;for(Nt=Bt.length-1;Nt>=0;Nt--)if(gt=Bt[Nt],!mt(Lt[gt],Mt[gt],Tt,Ot))return!1;return!0}(yt,ht,Ct,St))}return Ct?yt===ht:yt==ht}function ct(yt){return Object.prototype.toString.call(yt)=="[object Arguments]"}function Rt(yt,ht){if(!yt||!ht)return!1;if(Object.prototype.toString.call(ht)=="[object RegExp]")return ht.test(yt);try{if(yt instanceof ht)return!0}catch{}return!Error.isPrototypeOf(ht)&&ht.call({},yt)===!0}function Ft(yt,ht,Ct,St){var kt;if(typeof ht!="function")throw new TypeError('"block" argument must be a function');typeof Ct=="string"&&(St=Ct,Ct=null),kt=function(Tt){var Ot;try{Tt()}catch(At){Ot=At}return Ot}(ht),St=(Ct&&Ct.name?" ("+Ct.name+").":".")+(St?" "+St:"."),yt&&!kt&&xt(kt,Ct,"Missing expected exception"+St);var Lt=typeof St=="string",Mt=!yt&&kt&&!Ct;if((!yt&&_e.isError(kt)&&Lt&&Rt(kt,Ct)||Mt)&&xt(kt,Ct,"Got unwanted exception"+St),yt&&kt&&Ct&&!Rt(kt,Ct)||!yt&&kt)throw kt}lt.AssertionError=function(yt){this.name="AssertionError",this.actual=yt.actual,this.expected=yt.expected,this.operator=yt.operator,yt.message?(this.message=yt.message,this.generatedMessage=!1):(this.message=function(Tt){return pt(bt(Tt.actual),128)+" "+Tt.operator+" "+pt(bt(Tt.expected),128)}(this),this.generatedMessage=!0);var ht=yt.stackStartFunction||xt;if(Error.captureStackTrace)Error.captureStackTrace(this,ht);else{var Ct=new Error;if(Ct.stack){var St=Ct.stack,kt=ut(ht),Lt=St.indexOf(` +`+kt);if(Lt>=0){var Mt=St.indexOf(` +`,Lt+1);St=St.substring(Mt+1)}this.stack=St}}},_e.inherits(lt.AssertionError,Error),lt.fail=xt,lt.ok=vt,lt.equal=function(yt,ht,Ct){yt!=ht&&xt(yt,ht,Ct,"==",lt.equal)},lt.notEqual=function(yt,ht,Ct){yt==ht&&xt(yt,ht,Ct,"!=",lt.notEqual)},lt.deepEqual=function(yt,ht,Ct){mt(yt,ht,!1)||xt(yt,ht,Ct,"deepEqual",lt.deepEqual)},lt.deepStrictEqual=function(yt,ht,Ct){mt(yt,ht,!0)||xt(yt,ht,Ct,"deepStrictEqual",lt.deepStrictEqual)},lt.notDeepEqual=function(yt,ht,Ct){mt(yt,ht,!1)&&xt(yt,ht,Ct,"notDeepEqual",lt.notDeepEqual)},lt.notDeepStrictEqual=function yt(ht,Ct,St){mt(ht,Ct,!0)&&xt(ht,Ct,St,"notDeepStrictEqual",yt)},lt.strictEqual=function(yt,ht,Ct){yt!==ht&&xt(yt,ht,Ct,"===",lt.strictEqual)},lt.notStrictEqual=function(yt,ht,Ct){yt===ht&&xt(yt,ht,Ct,"!==",lt.notStrictEqual)},lt.throws=function(yt,ht,Ct){Ft(!0,yt,ht,Ct)},lt.doesNotThrow=function(yt,ht,Ct){Ft(!1,yt,ht,Ct)},lt.ifError=function(yt){if(yt)throw yt},lt.strict=$(function yt(ht,Ct){ht||xt(ht,!0,Ct,"==",yt)},lt,{equal:lt.strictEqual,deepEqual:lt.deepStrictEqual,notEqual:lt.notStrictEqual,notDeepEqual:lt.notDeepStrictEqual}),lt.strict.strict=lt.strict;var Ut=Object.keys||function(yt){var ht=[];for(var Ct in yt)nt.call(yt,Ct)&&ht.push(Ct);return ht}}).call(this,s(5))},function(o,i,s){o.exports=function(j,$,Z,et){for(var _e=65535&j|0,nt=j>>>16&65535|0,rt=0;Z!==0;){Z-=rt=Z>2e3?2e3:Z;do nt=nt+(_e=_e+$[et++]|0)|0;while(--rt);_e%=65521,nt%=65521}return _e|nt<<16|0}},function(o,i,s){var j=function(){for(var $,Z=[],et=0;et<256;et++){$=et;for(var _e=0;_e<8;_e++)$=1&$?3988292384^$>>>1:$>>>1;Z[et]=$}return Z}();o.exports=function($,Z,et,_e){var nt=j,rt=_e+et;$^=-1;for(var at=_e;at>>8^nt[255&($^Z[at])];return-1^$}},function(o,i,s){(function(j,$){var Z;o.exports=ht,ht.ReadableState=yt,s(18).EventEmitter;var et=function(zt,$t){return zt.listeners($t).length},_e=s(76),nt=s(4).Buffer,rt=j.Uint8Array||function(){},at,ft=s(178);at=ft&&ft.debuglog?ft.debuglog("stream"):function(){};var st,lt,it,ut=s(179),pt=s(77),bt=s(78).getHighWaterMark,xt=s(24).codes,vt=xt.ERR_INVALID_ARG_TYPE,mt=xt.ERR_STREAM_PUSH_AFTER_EOF,ct=xt.ERR_METHOD_NOT_IMPLEMENTED,Rt=xt.ERR_STREAM_UNSHIFT_AFTER_END_EVENT;s(6)(ht,_e);var Ft=pt.errorOrDestroy,Ut=["error","close","destroy","pause","resume"];function yt(zt,$t,Et){Z=Z||s(25),zt=zt||{},typeof Et!="boolean"&&(Et=$t instanceof Z),this.objectMode=!!zt.objectMode,Et&&(this.objectMode=this.objectMode||!!zt.readableObjectMode),this.highWaterMark=bt(this,zt,"readableHighWaterMark",Et),this.buffer=new ut,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=zt.emitClose!==!1,this.autoDestroy=!!zt.autoDestroy,this.destroyed=!1,this.defaultEncoding=zt.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,zt.encoding&&(st||(st=s(19).StringDecoder),this.decoder=new st(zt.encoding),this.encoding=zt.encoding)}function ht(zt){if(Z=Z||s(25),!(this instanceof ht))return new ht(zt);var $t=this instanceof Z;this._readableState=new yt(zt,this,$t),this.readable=!0,zt&&(typeof zt.read=="function"&&(this._read=zt.read),typeof zt.destroy=="function"&&(this._destroy=zt.destroy)),_e.call(this)}function Ct(zt,$t,Et,It,Dt){at("readableAddChunk",$t);var Jt,Qt=zt._readableState;if($t===null)Qt.reading=!1,function(nn,cn){if(at("onEofChunk"),!cn.ended){if(cn.decoder){var sn=cn.decoder.end();sn&&sn.length&&(cn.buffer.push(sn),cn.length+=cn.objectMode?1:sn.length)}cn.ended=!0,cn.sync?Lt(nn):(cn.needReadable=!1,cn.emittedReadable||(cn.emittedReadable=!0,Mt(nn)))}}(zt,Qt);else if(Dt||(Jt=function(nn,cn){var sn;Vt=cn,nt.isBuffer(Vt)||Vt instanceof rt||typeof cn=="string"||cn===void 0||nn.objectMode||(sn=new vt("chunk",["string","Buffer","Uint8Array"],cn));var Vt;return sn}(Qt,$t)),Jt)Ft(zt,Jt);else if(Qt.objectMode||$t&&$t.length>0)if(typeof $t=="string"||Qt.objectMode||Object.getPrototypeOf($t)===nt.prototype||($t=function(nn){return nt.from(nn)}($t)),It)Qt.endEmitted?Ft(zt,new Rt):St(zt,Qt,$t,!0);else if(Qt.ended)Ft(zt,new mt);else{if(Qt.destroyed)return!1;Qt.reading=!1,Qt.decoder&&!Et?($t=Qt.decoder.write($t),Qt.objectMode||$t.length!==0?St(zt,Qt,$t,!1):Tt(zt,Qt)):St(zt,Qt,$t,!1)}else It||(Qt.reading=!1,Tt(zt,Qt));return!Qt.ended&&(Qt.length$t.highWaterMark&&($t.highWaterMark=function(Et){return Et>=1073741824?Et=1073741824:(Et--,Et|=Et>>>1,Et|=Et>>>2,Et|=Et>>>4,Et|=Et>>>8,Et|=Et>>>16,Et++),Et}(zt)),zt<=$t.length?zt:$t.ended?$t.length:($t.needReadable=!0,0))}function Lt(zt){var $t=zt._readableState;at("emitReadable",$t.needReadable,$t.emittedReadable),$t.needReadable=!1,$t.emittedReadable||(at("emitReadable",$t.flowing),$t.emittedReadable=!0,$.nextTick(Mt,zt))}function Mt(zt){var $t=zt._readableState;at("emitReadable_",$t.destroyed,$t.length,$t.ended),$t.destroyed||!$t.length&&!$t.ended||(zt.emit("readable"),$t.emittedReadable=!1),$t.needReadable=!$t.flowing&&!$t.ended&&$t.length<=$t.highWaterMark,Nt(zt)}function Tt(zt,$t){$t.readingMore||($t.readingMore=!0,$.nextTick(Ot,zt,$t))}function Ot(zt,$t){for(;!$t.reading&&!$t.ended&&($t.length<$t.highWaterMark||$t.flowing&&$t.length===0);){var Et=$t.length;if(at("maybeReadMore read 0"),zt.read(0),Et===$t.length)break}$t.readingMore=!1}function At(zt){var $t=zt._readableState;$t.readableListening=zt.listenerCount("readable")>0,$t.resumeScheduled&&!$t.paused?$t.flowing=!0:zt.listenerCount("data")>0&&zt.resume()}function wt(zt){at("readable nexttick read 0"),zt.read(0)}function gt(zt,$t){at("resume",$t.reading),$t.reading||zt.read(0),$t.resumeScheduled=!1,zt.emit("resume"),Nt(zt),$t.flowing&&!$t.reading&&zt.read(0)}function Nt(zt){var $t=zt._readableState;for(at("flow",$t.flowing);$t.flowing&&zt.read()!==null;);}function Bt(zt,$t){return $t.length===0?null:($t.objectMode?Et=$t.buffer.shift():!zt||zt>=$t.length?(Et=$t.decoder?$t.buffer.join(""):$t.buffer.length===1?$t.buffer.first():$t.buffer.concat($t.length),$t.buffer.clear()):Et=$t.buffer.consume(zt,$t.decoder),Et);var Et}function Gt(zt){var $t=zt._readableState;at("endReadable",$t.endEmitted),$t.endEmitted||($t.ended=!0,$.nextTick(Kt,$t,zt))}function Kt(zt,$t){if(at("endReadableNT",zt.endEmitted,zt.length),!zt.endEmitted&&zt.length===0&&(zt.endEmitted=!0,$t.readable=!1,$t.emit("end"),zt.autoDestroy)){var Et=$t._writableState;(!Et||Et.autoDestroy&&Et.finished)&&$t.destroy()}}function Zt(zt,$t){for(var Et=0,It=zt.length;Et=$t.highWaterMark:$t.length>0)||$t.ended))return at("read: emitReadable",$t.length,$t.ended),$t.length===0&&$t.ended?Gt(this):Lt(this),null;if((zt=kt(zt,$t))===0&&$t.ended)return $t.length===0&&Gt(this),null;var It,Dt=$t.needReadable;return at("need readable",Dt),($t.length===0||$t.length-zt<$t.highWaterMark)&&at("length less than watermark",Dt=!0),$t.ended||$t.reading?at("reading or ended",Dt=!1):Dt&&(at("do read"),$t.reading=!0,$t.sync=!0,$t.length===0&&($t.needReadable=!0),this._read($t.highWaterMark),$t.sync=!1,$t.reading||(zt=kt(Et,$t))),(It=zt>0?Bt(zt,$t):null)===null?($t.needReadable=$t.length<=$t.highWaterMark,zt=0):($t.length-=zt,$t.awaitDrain=0),$t.length===0&&($t.ended||($t.needReadable=!0),Et!==zt&&$t.ended&&Gt(this)),It!==null&&this.emit("data",It),It},ht.prototype._read=function(zt){Ft(this,new ct("_read()"))},ht.prototype.pipe=function(zt,$t){var Et=this,It=this._readableState;switch(It.pipesCount){case 0:It.pipes=zt;break;case 1:It.pipes=[It.pipes,zt];break;default:It.pipes.push(zt)}It.pipesCount+=1,at("pipe count=%d opts=%j",It.pipesCount,$t);var Dt=(!$t||$t.end!==!1)&&zt!==$.stdout&&zt!==$.stderr?Qt:hn;function Jt(an,_n){at("onunpipe"),an===Et&&_n&&_n.hasUnpiped===!1&&(_n.hasUnpiped=!0,at("cleanup"),zt.removeListener("close",qt),zt.removeListener("finish",tn),zt.removeListener("drain",nn),zt.removeListener("error",Vt),zt.removeListener("unpipe",Jt),Et.removeListener("end",Qt),Et.removeListener("end",hn),Et.removeListener("data",sn),cn=!0,!It.awaitDrain||zt._writableState&&!zt._writableState.needDrain||nn())}function Qt(){at("onend"),zt.end()}It.endEmitted?$.nextTick(Dt):Et.once("end",Dt),zt.on("unpipe",Jt);var nn=function(an){return function(){var _n=an._readableState;at("pipeOnDrain",_n.awaitDrain),_n.awaitDrain&&_n.awaitDrain--,_n.awaitDrain===0&&et(an,"data")&&(_n.flowing=!0,Nt(an))}}(Et);zt.on("drain",nn);var cn=!1;function sn(an){at("ondata");var _n=zt.write(an);at("dest.write",_n),_n===!1&&((It.pipesCount===1&&It.pipes===zt||It.pipesCount>1&&Zt(It.pipes,zt)!==-1)&&!cn&&(at("false write response, pause",It.awaitDrain),It.awaitDrain++),Et.pause())}function Vt(an){at("onerror",an),hn(),zt.removeListener("error",Vt),et(zt,"error")===0&&Ft(zt,an)}function qt(){zt.removeListener("finish",tn),hn()}function tn(){at("onfinish"),zt.removeListener("close",qt),hn()}function hn(){at("unpipe"),Et.unpipe(zt)}return Et.on("data",sn),function(an,_n,mn){if(typeof an.prependListener=="function")return an.prependListener(_n,mn);an._events&&an._events[_n]?Array.isArray(an._events[_n])?an._events[_n].unshift(mn):an._events[_n]=[mn,an._events[_n]]:an.on(_n,mn)}(zt,"error",Vt),zt.once("close",qt),zt.once("finish",tn),zt.emit("pipe",Et),It.flowing||(at("pipe resume"),Et.resume()),zt},ht.prototype.unpipe=function(zt){var $t=this._readableState,Et={hasUnpiped:!1};if($t.pipesCount===0)return this;if($t.pipesCount===1)return zt&&zt!==$t.pipes||(zt||(zt=$t.pipes),$t.pipes=null,$t.pipesCount=0,$t.flowing=!1,zt&&zt.emit("unpipe",this,Et)),this;if(!zt){var It=$t.pipes,Dt=$t.pipesCount;$t.pipes=null,$t.pipesCount=0,$t.flowing=!1;for(var Jt=0;Jt0,It.flowing!==!1&&this.resume()):zt==="readable"&&(It.endEmitted||It.readableListening||(It.readableListening=It.needReadable=!0,It.flowing=!1,It.emittedReadable=!1,at("on readable",It.length,It.reading),It.length?Lt(this):It.reading||$.nextTick(wt,this))),Et},ht.prototype.addListener=ht.prototype.on,ht.prototype.removeListener=function(zt,$t){var Et=_e.prototype.removeListener.call(this,zt,$t);return zt==="readable"&&$.nextTick(At,this),Et},ht.prototype.removeAllListeners=function(zt){var $t=_e.prototype.removeAllListeners.apply(this,arguments);return zt!=="readable"&&zt!==void 0||$.nextTick(At,this),$t},ht.prototype.resume=function(){var zt=this._readableState;return zt.flowing||(at("resume"),zt.flowing=!zt.readableListening,function($t,Et){Et.resumeScheduled||(Et.resumeScheduled=!0,$.nextTick(gt,$t,Et))}(this,zt)),zt.paused=!1,this},ht.prototype.pause=function(){return at("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(at("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},ht.prototype.wrap=function(zt){var $t=this,Et=this._readableState,It=!1;for(var Dt in zt.on("end",function(){if(at("wrapped end"),Et.decoder&&!Et.ended){var Qt=Et.decoder.end();Qt&&Qt.length&&$t.push(Qt)}$t.push(null)}),zt.on("data",function(Qt){at("wrapped data"),Et.decoder&&(Qt=Et.decoder.write(Qt)),Et.objectMode&&Qt==null||(Et.objectMode||Qt&&Qt.length)&&($t.push(Qt)||(It=!0,zt.pause()))}),zt)this[Dt]===void 0&&typeof zt[Dt]=="function"&&(this[Dt]=function(Qt){return function(){return zt[Qt].apply(zt,arguments)}}(Dt));for(var Jt=0;Jt-1))throw new Rt(Ot);return this._writableState.defaultEncoding=Ot,this},Object.defineProperty(ht.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(ht.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),ht.prototype._write=function(Ot,At,wt){wt(new pt("_write()"))},ht.prototype._writev=null,ht.prototype.end=function(Ot,At,wt){var gt=this._writableState;return typeof Ot=="function"?(wt=Ot,Ot=null,At=null):typeof At=="function"&&(wt=At,At=null),Ot!=null&&this.write(Ot,At),gt.corked&&(gt.corked=1,this.uncork()),gt.ending||function(Nt,Bt,Gt){Bt.ending=!0,Tt(Nt,Bt),Gt&&(Bt.finished?$.nextTick(Gt):Nt.once("finish",Gt)),Bt.ended=!0,Nt.writable=!1}(this,gt,wt),this},Object.defineProperty(ht.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(ht.prototype,"destroyed",{enumerable:!1,get:function(){return this._writableState!==void 0&&this._writableState.destroyed},set:function(Ot){this._writableState&&(this._writableState.destroyed=Ot)}}),ht.prototype.destroy=st.destroy,ht.prototype._undestroy=st.undestroy,ht.prototype._destroy=function(Ot,At){At(Ot)}}).call(this,s(5),s(2))},function(o,i,s){o.exports=at;var j=s(24).codes,$=j.ERR_METHOD_NOT_IMPLEMENTED,Z=j.ERR_MULTIPLE_CALLBACK,et=j.ERR_TRANSFORM_ALREADY_TRANSFORMING,_e=j.ERR_TRANSFORM_WITH_LENGTH_0,nt=s(25);function rt(lt,it){var ut=this._transformState;ut.transforming=!1;var pt=ut.writecb;if(pt===null)return this.emit("error",new Z);ut.writechunk=null,ut.writecb=null,it!=null&&this.push(it),pt(lt);var bt=this._readableState;bt.reading=!1,(bt.needReadable||bt.lengthft._pos){var it=lt.substr(ft._pos);if(ft._charset==="x-user-defined"){for(var ut=new $(it.length),pt=0;ptft._pos&&(ft.push(new $(new Uint8Array(bt.result.slice(ft._pos)))),ft._pos=bt.result.byteLength)},bt.onload=function(){ft.push(null)},bt.readAsArrayBuffer(lt)}ft._xhr.readyState===rt.DONE&&ft._mode!=="ms-stream"&&ft.push(null)}}).call(this,s(2),s(4).Buffer,s(5))},function(o,i,s){const j=$=>$!==null&&typeof $=="object"&&typeof $.pipe=="function";j.writable=$=>j($)&&$.writable!==!1&&typeof $._write=="function"&&typeof $._writableState=="object",j.readable=$=>j($)&&$.readable!==!1&&typeof $._read=="function"&&typeof $._readableState=="object",j.duplex=$=>j.writable($)&&j.readable($),j.transform=$=>j.duplex($)&&typeof $._transform=="function"&&typeof $._transformState=="object",o.exports=j},function(o,i,s){function j(ut){return(j=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(pt){return typeof pt}:function(pt){return pt&&typeof Symbol=="function"&&pt.constructor===Symbol&&pt!==Symbol.prototype?"symbol":typeof pt})(ut)}function $(ut,pt){if(!(ut instanceof pt))throw new TypeError("Cannot call a class as a function")}function Z(ut,pt){if(typeof pt!="function"&&pt!==null)throw new TypeError("Super expression must either be null or a function");ut.prototype=Object.create(pt&&pt.prototype,{constructor:{value:ut,writable:!0,configurable:!0}}),pt&&et(ut,pt)}function et(ut,pt){return(et=Object.setPrototypeOf||function(bt,xt){return bt.__proto__=xt,bt})(ut,pt)}function _e(ut){var pt=function(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}();return function(){var bt,xt=rt(ut);if(pt){var vt=rt(this).constructor;bt=Reflect.construct(xt,arguments,vt)}else bt=xt.apply(this,arguments);return nt(this,bt)}}function nt(ut,pt){return!pt||j(pt)!=="object"&&typeof pt!="function"?function(bt){if(bt===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return bt}(ut):pt}function rt(ut){return(rt=Object.setPrototypeOf?Object.getPrototypeOf:function(pt){return pt.__proto__||Object.getPrototypeOf(pt)})(ut)}var at=s(3).LEVEL,ft=s(47),st=s(201),lt=s(34)("winston:create-logger");function it(ut){return"is"+ut.charAt(0).toUpperCase()+ut.slice(1)+"Enabled"}o.exports=function(){var ut=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};ut.levels=ut.levels||ft.npm.levels;var pt=function(xt){Z(mt,xt);var vt=_e(mt);function mt(ct){return $(this,mt),vt.call(this,ct)}return mt}(st),bt=new pt(ut);return Object.keys(ut.levels).forEach(function(xt){lt('Define prototype method for "%s"',xt),xt!=="log"?(pt.prototype[xt]=function(){for(var vt=this||bt,mt=arguments.length,ct=new Array(mt),Rt=0;Rt0){_e=rt.substr(0,lt),nt=rt.substr(lt+1);var it=_e.indexOf(".Module");it>0&&(rt=rt.substr(it+1),_e=_e.substr(0,it))}at=null}nt&&(at=_e,ft=nt),nt===""&&(ft=null,rt=null);var ut={fileName:et[2]||null,lineNumber:parseInt(et[3],10)||null,functionName:rt,typeName:at,methodName:ft,columnNumber:parseInt(et[4],10)||null,native:st};return $._createParsedCallSite(ut)}}).filter(function(Z){return!!Z})},["this","typeName","functionName","methodName","fileName","lineNumber","columnNumber","function","evalOrigin"].forEach(function(j){s.prototype[j]=null,s.prototype["get"+j[0].toUpperCase()+j.substr(1)]=function(){return this[j]}}),["topLevel","eval","native","constructor"].forEach(function(j){s.prototype[j]=!1,s.prototype["is"+j[0].toUpperCase()+j.substr(1)]=function(){return this[j]}}),i._createParsedCallSite=function(j){return new s(j)}},function(o,i,s){function j(at){return(j=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(ft){return typeof ft}:function(ft){return ft&&typeof Symbol=="function"&&ft.constructor===Symbol&&ft!==Symbol.prototype?"symbol":typeof ft})(at)}function $(at,ft){for(var st=0;st0&&_e.writeString(1,nt)},proto.google.protobuf.StringValue.prototype.getValue=function(){return j.Message.getFieldWithDefault(this,1,"")},proto.google.protobuf.StringValue.prototype.setValue=function(et){return j.Message.setProto3StringField(this,1,et)},j.Message.GENERATE_TO_OBJECT&&(proto.google.protobuf.BytesValue.prototype.toObject=function(et){return proto.google.protobuf.BytesValue.toObject(et,this)},proto.google.protobuf.BytesValue.toObject=function(et,_e){var nt={value:_e.getValue_asB64()};return et&&(nt.$jspbMessageInstance=_e),nt}),proto.google.protobuf.BytesValue.deserializeBinary=function(et){var _e=new j.BinaryReader(et),nt=new proto.google.protobuf.BytesValue;return proto.google.protobuf.BytesValue.deserializeBinaryFromReader(nt,_e)},proto.google.protobuf.BytesValue.deserializeBinaryFromReader=function(et,_e){for(;_e.nextField()&&!_e.isEndGroup();)switch(_e.getFieldNumber()){case 1:var nt=_e.readBytes();et.setValue(nt);break;default:_e.skipField()}return et},proto.google.protobuf.BytesValue.prototype.serializeBinary=function(){var et=new j.BinaryWriter;return proto.google.protobuf.BytesValue.serializeBinaryToWriter(this,et),et.getResultBuffer()},proto.google.protobuf.BytesValue.serializeBinaryToWriter=function(et,_e){var nt;(nt=et.getValue_asU8()).length>0&&_e.writeBytes(1,nt)},proto.google.protobuf.BytesValue.prototype.getValue=function(){return j.Message.getFieldWithDefault(this,1,"")},proto.google.protobuf.BytesValue.prototype.getValue_asB64=function(){return j.Message.bytesAsB64(this.getValue())},proto.google.protobuf.BytesValue.prototype.getValue_asU8=function(){return j.Message.bytesAsU8(this.getValue())},proto.google.protobuf.BytesValue.prototype.setValue=function(et){return j.Message.setProto3BytesField(this,1,et)},$.object.extend(i,proto.google.protobuf)},function(module,exports,__webpack_require__){(function(global,Buffer){var $jscomp=$jscomp||{};$jscomp.scope={},$jscomp.findInternal=function(o,i,s){o instanceof String&&(o=String(o));for(var j=o.length,$=0;$=$}},"es6","es3"),$jscomp.polyfill("Array.prototype.find",function(o){return o||function(i,s){return $jscomp.findInternal(this,i,s).v}},"es6","es3"),$jscomp.polyfill("String.prototype.startsWith",function(o){return o||function(i,s){var j=$jscomp.checkStringArgs(this,i,"startsWith");i+="";var $=j.length,Z=i.length;s=Math.max(0,Math.min(0|s,j.length));for(var et=0;et=Z}},"es6","es3"),$jscomp.polyfill("String.prototype.repeat",function(o){return o||function(i){var s=$jscomp.checkStringArgs(this,null,"repeat");if(0>i||1342177279>>=1)&&(s+=s);return j}},"es6","es3");var COMPILED=!0,goog=goog||{};goog.global=this||self,goog.isDef=function(o){return o!==void 0},goog.isString=function(o){return typeof o=="string"},goog.isBoolean=function(o){return typeof o=="boolean"},goog.isNumber=function(o){return typeof o=="number"},goog.exportPath_=function(o,i,s){o=o.split("."),s=s||goog.global,o[0]in s||s.execScript===void 0||s.execScript("var "+o[0]);for(var j;o.length&&(j=o.shift());)!o.length&&goog.isDef(i)?s[j]=i:s=s[j]&&s[j]!==Object.prototype[j]?s[j]:s[j]={}},goog.define=function(o,i){return i},goog.FEATURESET_YEAR=2012,goog.DEBUG=!0,goog.LOCALE="en",goog.TRUSTED_SITE=!0,goog.STRICT_MODE_COMPATIBLE=!1,goog.DISALLOW_TEST_ONLY_CODE=!goog.DEBUG,goog.ENABLE_CHROME_APP_SAFE_SCRIPT_LOADING=!1,goog.provide=function(o){if(goog.isInModuleLoader_())throw Error("goog.provide cannot be used within a module.");goog.constructNamespace_(o)},goog.constructNamespace_=function(o,i){goog.exportPath_(o,i)},goog.getScriptNonce=function(o){return o&&o!=goog.global?goog.getScriptNonce_(o.document):(goog.cspNonce_===null&&(goog.cspNonce_=goog.getScriptNonce_(goog.global.document)),goog.cspNonce_)},goog.NONCE_PATTERN_=/^[\w+/_-]+[=]{0,2}$/,goog.cspNonce_=null,goog.getScriptNonce_=function(o){return(o=o.querySelector&&o.querySelector("script[nonce]"))&&(o=o.nonce||o.getAttribute("nonce"))&&goog.NONCE_PATTERN_.test(o)?o:""},goog.VALID_MODULE_RE_=/^[a-zA-Z_$][a-zA-Z0-9._$]*$/,goog.module=function(o){if(!goog.isString(o)||!o||o.search(goog.VALID_MODULE_RE_)==-1)throw Error("Invalid module identifier");if(!goog.isInGoogModuleLoader_())throw Error("Module "+o+" has been loaded incorrectly. Note, modules cannot be loaded as normal scripts. They require some kind of pre-processing step. You're likely trying to load a module via a script tag or as a part of a concatenated bundle without rewriting the module. For more info see: https://github.com/google/closure-library/wiki/goog.module:-an-ES6-module-like-alternative-to-goog.provide.");if(goog.moduleLoaderState_.moduleName)throw Error("goog.module may only be called once per module.");goog.moduleLoaderState_.moduleName=o},goog.module.get=function(o){return goog.module.getInternal_(o)},goog.module.getInternal_=function(o){return null},goog.ModuleType={ES6:"es6",GOOG:"goog"},goog.moduleLoaderState_=null,goog.isInModuleLoader_=function(){return goog.isInGoogModuleLoader_()||goog.isInEs6ModuleLoader_()},goog.isInGoogModuleLoader_=function(){return!!goog.moduleLoaderState_&&goog.moduleLoaderState_.type==goog.ModuleType.GOOG},goog.isInEs6ModuleLoader_=function(){if(goog.moduleLoaderState_&&goog.moduleLoaderState_.type==goog.ModuleType.ES6)return!0;var o=goog.global.$jscomp;return!!o&&typeof o.getCurrentModulePath=="function"&&!!o.getCurrentModulePath()},goog.module.declareLegacyNamespace=function(){goog.moduleLoaderState_.declareLegacyNamespace=!0},goog.declareModuleId=function(o){if(goog.moduleLoaderState_)goog.moduleLoaderState_.moduleName=o;else{var i=goog.global.$jscomp;if(!i||typeof i.getCurrentModulePath!="function")throw Error('Module with namespace "'+o+'" has been loaded incorrectly.');i=i.require(i.getCurrentModulePath()),goog.loadedModules_[o]={exports:i,type:goog.ModuleType.ES6,moduleId:o}}},goog.setTestOnly=function(o){if(goog.DISALLOW_TEST_ONLY_CODE)throw o=o||"",Error("Importing test-only code into non-debug environment"+(o?": "+o:"."))},goog.forwardDeclare=function(o){},goog.getObjectByName=function(o,i){o=o.split("."),i=i||goog.global;for(var s=0;s>>0),goog.uidCounter_=0,goog.getHashCode=goog.getUid,goog.removeHashCode=goog.removeUid,goog.cloneObject=function(o){var i=goog.typeOf(o);if(i=="object"||i=="array"){if(typeof o.clone=="function")return o.clone();for(var s in i=i=="array"?[]:{},o)i[s]=goog.cloneObject(o[s]);return i}return o},goog.bindNative_=function(o,i,s){return o.call.apply(o.bind,arguments)},goog.bindJs_=function(o,i,s){if(!o)throw Error();if(2s?Math.max(0,o.length+s):s,goog.isString(o))return goog.isString(i)&&i.length==1?o.indexOf(i,s):-1;for(;s(s=s==null?o.length-1:s)&&(s=Math.max(0,o.length+s)),goog.isString(o))return goog.isString(i)&&i.length==1?o.lastIndexOf(i,s):-1;for(;0<=s;s--)if(s in o&&o[s]===i)return s;return-1},goog.array.forEach=goog.NATIVE_ARRAY_PROTOTYPES&&(goog.array.ASSUME_NATIVE_FUNCTIONS||Array.prototype.forEach)?function(o,i,s){goog.asserts.assert(o.length!=null),Array.prototype.forEach.call(o,i,s)}:function(o,i,s){for(var j=o.length,$=goog.isString(o)?o.split(""):o,Z=0;Z(i=goog.array.findIndex(o,i,s))?null:goog.isString(o)?o.charAt(i):o[i]},goog.array.findIndex=function(o,i,s){for(var j=o.length,$=goog.isString(o)?o.split(""):o,Z=0;Z(i=goog.array.findIndexRight(o,i,s))?null:goog.isString(o)?o.charAt(i):o[i]},goog.array.findIndexRight=function(o,i,s){var j=o.length,$=goog.isString(o)?o.split(""):o;for(--j;0<=j;j--)if(j in $&&i.call(s,$[j],j,o))return j;return-1},goog.array.contains=function(o,i){return 0<=goog.array.indexOf(o,i)},goog.array.isEmpty=function(o){return o.length==0},goog.array.clear=function(o){if(!goog.isArray(o))for(var i=o.length-1;0<=i;i--)delete o[i];o.length=0},goog.array.insert=function(o,i){goog.array.contains(o,i)||o.push(i)},goog.array.insertAt=function(o,i,s){goog.array.splice(o,s,0,i)},goog.array.insertArrayAt=function(o,i,s){goog.partial(goog.array.splice,o,s,0).apply(null,i)},goog.array.insertBefore=function(o,i,s){var j;arguments.length==2||0>(j=goog.array.indexOf(o,s))?o.push(i):goog.array.insertAt(o,i,j)},goog.array.remove=function(o,i){var s;return(s=0<=(i=goog.array.indexOf(o,i)))&&goog.array.removeAt(o,i),s},goog.array.removeLast=function(o,i){return 0<=(i=goog.array.lastIndexOf(o,i))&&(goog.array.removeAt(o,i),!0)},goog.array.removeAt=function(o,i){return goog.asserts.assert(o.length!=null),Array.prototype.splice.call(o,i,1).length==1},goog.array.removeIf=function(o,i,s){return 0<=(i=goog.array.findIndex(o,i,s))&&(goog.array.removeAt(o,i),!0)},goog.array.removeAllIf=function(o,i,s){var j=0;return goog.array.forEachRight(o,function($,Z){i.call(s,$,Z,o)&&goog.array.removeAt(o,Z)&&j++}),j},goog.array.concat=function(o){return Array.prototype.concat.apply([],arguments)},goog.array.join=function(o){return Array.prototype.concat.apply([],arguments)},goog.array.toArray=function(o){var i=o.length;if(0=arguments.length?Array.prototype.slice.call(o,i):Array.prototype.slice.call(o,i,s)},goog.array.removeDuplicates=function(o,i,s){i=i||o;var j=function(nt){return goog.isObject(nt)?"o"+goog.getUid(nt):(typeof nt).charAt(0)+nt};s=s||j,j={};for(var $=0,Z=0;Z>1,rt=s?i.call($,o[nt],nt,o):i(j,o[nt]);0i?1:o(s=goog.array.binarySearch(o,i,s))&&(goog.array.insertAt(o,i,-(s+1)),!0)},goog.array.binaryRemove=function(o,i,s){return 0<=(i=goog.array.binarySearch(o,i,s))&&goog.array.removeAt(o,i)},goog.array.bucket=function(o,i,s){for(var j={},$=0;$(s=s||1)*(Z-$))return[];if(0Z;o+=s)j.push(o);return j},goog.array.repeat=function(o,i){for(var s=[],j=0;ji&&Array.prototype.push.apply(o,o.splice(0,-i))),o},goog.array.moveItem=function(o,i,s){goog.asserts.assert(0<=i&&i>=8),i[s++]=$}return i},goog.crypt.byteArrayToString=function(o){if(8192>=o.length)return String.fromCharCode.apply(null,o);for(var i="",s=0;s$?i[s++]=$:(2048>$?i[s++]=$>>6|192:((64512&$)==55296&&j+1>18|240,i[s++]=$>>12&63|128):i[s++]=$>>12|224,i[s++]=$>>6&63|128),i[s++]=63&$|128)}return i},goog.crypt.utf8ByteArrayToString=function(o){for(var i=[],s=0,j=0;s$)i[j++]=String.fromCharCode($);else if(191<$&&224>$){var Z=o[s++];i[j++]=String.fromCharCode((31&$)<<6|63&Z)}else if(239<$&&365>$){Z=o[s++];var et=o[s++];$=((7&$)<<18|(63&Z)<<12|(63&et)<<6|63&o[s++])-65536,i[j++]=String.fromCharCode(55296+($>>10)),i[j++]=String.fromCharCode(56320+(1023&$))}else Z=o[s++],et=o[s++],i[j++]=String.fromCharCode((15&$)<<12|(63&Z)<<6|63&et)}return i.join("")},goog.crypt.xorByteArray=function(o,i){goog.asserts.assert(o.length==i.length,"XOR array lengths must match");for(var s=[],j=0;j":"
")},goog.string.internal.htmlEscape=function(o,i){if(i)o=o.replace(goog.string.internal.AMP_RE_,"&").replace(goog.string.internal.LT_RE_,"<").replace(goog.string.internal.GT_RE_,">").replace(goog.string.internal.QUOT_RE_,""").replace(goog.string.internal.SINGLE_QUOTE_RE_,"'").replace(goog.string.internal.NULL_RE_,"�");else{if(!goog.string.internal.ALL_RE_.test(o))return o;o.indexOf("&")!=-1&&(o=o.replace(goog.string.internal.AMP_RE_,"&")),o.indexOf("<")!=-1&&(o=o.replace(goog.string.internal.LT_RE_,"<")),o.indexOf(">")!=-1&&(o=o.replace(goog.string.internal.GT_RE_,">")),o.indexOf('"')!=-1&&(o=o.replace(goog.string.internal.QUOT_RE_,""")),o.indexOf("'")!=-1&&(o=o.replace(goog.string.internal.SINGLE_QUOTE_RE_,"'")),o.indexOf("\0")!=-1&&(o=o.replace(goog.string.internal.NULL_RE_,"�"))}return o},goog.string.internal.AMP_RE_=/&/g,goog.string.internal.LT_RE_=//g,goog.string.internal.QUOT_RE_=/"/g,goog.string.internal.SINGLE_QUOTE_RE_=/'/g,goog.string.internal.NULL_RE_=/\x00/g,goog.string.internal.ALL_RE_=/[\x00&<>"']/,goog.string.internal.whitespaceEscape=function(o,i){return goog.string.internal.newLineToBr(o.replace(/ /g,"  "),i)},goog.string.internal.contains=function(o,i){return o.indexOf(i)!=-1},goog.string.internal.caseInsensitiveContains=function(o,i){return goog.string.internal.contains(o.toLowerCase(),i.toLowerCase())},goog.string.internal.compareVersions=function(o,i){var s=0;o=goog.string.internal.trim(String(o)).split("."),i=goog.string.internal.trim(String(i)).split(".");for(var j=Math.max(o.length,i.length),$=0;s==0&&$i?1:0},goog.string.TypedString=function(){},goog.string.Const=function(o,i){this.stringConstValueWithSecurityContract__googStringSecurityPrivate_=o===goog.string.Const.GOOG_STRING_CONSTRUCTOR_TOKEN_PRIVATE_&&i||"",this.STRING_CONST_TYPE_MARKER__GOOG_STRING_SECURITY_PRIVATE_=goog.string.Const.TYPE_MARKER_},goog.string.Const.prototype.implementsGoogStringTypedString=!0,goog.string.Const.prototype.getTypedStringValue=function(){return this.stringConstValueWithSecurityContract__googStringSecurityPrivate_},goog.string.Const.prototype.toString=function(){return"Const{"+this.stringConstValueWithSecurityContract__googStringSecurityPrivate_+"}"},goog.string.Const.unwrap=function(o){return o instanceof goog.string.Const&&o.constructor===goog.string.Const&&o.STRING_CONST_TYPE_MARKER__GOOG_STRING_SECURITY_PRIVATE_===goog.string.Const.TYPE_MARKER_?o.stringConstValueWithSecurityContract__googStringSecurityPrivate_:(goog.asserts.fail("expected object of type Const, got '"+o+"'"),"type_error:Const")},goog.string.Const.from=function(o){return new goog.string.Const(goog.string.Const.GOOG_STRING_CONSTRUCTOR_TOKEN_PRIVATE_,o)},goog.string.Const.TYPE_MARKER_={},goog.string.Const.GOOG_STRING_CONSTRUCTOR_TOKEN_PRIVATE_={},goog.string.Const.EMPTY=goog.string.Const.from(""),goog.fs={},goog.fs.url={},goog.fs.url.createObjectUrl=function(o){return goog.fs.url.getUrlObject_().createObjectURL(o)},goog.fs.url.revokeObjectUrl=function(o){goog.fs.url.getUrlObject_().revokeObjectURL(o)},goog.fs.url.getUrlObject_=function(){var o=goog.fs.url.findUrlObject_();if(o!=null)return o;throw Error("This browser doesn't seem to support blob URLs")},goog.fs.url.findUrlObject_=function(){return goog.isDef(goog.global.URL)&&goog.isDef(goog.global.URL.createObjectURL)?goog.global.URL:goog.isDef(goog.global.webkitURL)&&goog.isDef(goog.global.webkitURL.createObjectURL)?goog.global.webkitURL:goog.isDef(goog.global.createObjectURL)?goog.global:null},goog.fs.url.browserSupportsObjectUrls=function(){return goog.fs.url.findUrlObject_()!=null},goog.html={},goog.html.trustedtypes={},goog.html.trustedtypes.PRIVATE_DO_NOT_ACCESS_OR_ELSE_POLICY=goog.TRUSTED_TYPES_POLICY_NAME?goog.createTrustedTypesPolicy(goog.TRUSTED_TYPES_POLICY_NAME+"#html"):null,goog.i18n={},goog.i18n.bidi={},goog.i18n.bidi.FORCE_RTL=!1,goog.i18n.bidi.IS_RTL=goog.i18n.bidi.FORCE_RTL||(goog.LOCALE.substring(0,2).toLowerCase()=="ar"||goog.LOCALE.substring(0,2).toLowerCase()=="fa"||goog.LOCALE.substring(0,2).toLowerCase()=="he"||goog.LOCALE.substring(0,2).toLowerCase()=="iw"||goog.LOCALE.substring(0,2).toLowerCase()=="ps"||goog.LOCALE.substring(0,2).toLowerCase()=="sd"||goog.LOCALE.substring(0,2).toLowerCase()=="ug"||goog.LOCALE.substring(0,2).toLowerCase()=="ur"||goog.LOCALE.substring(0,2).toLowerCase()=="yi")&&(goog.LOCALE.length==2||goog.LOCALE.substring(2,3)=="-"||goog.LOCALE.substring(2,3)=="_")||3<=goog.LOCALE.length&&goog.LOCALE.substring(0,3).toLowerCase()=="ckb"&&(goog.LOCALE.length==3||goog.LOCALE.substring(3,4)=="-"||goog.LOCALE.substring(3,4)=="_")||7<=goog.LOCALE.length&&(goog.LOCALE.substring(2,3)=="-"||goog.LOCALE.substring(2,3)=="_")&&(goog.LOCALE.substring(3,7).toLowerCase()=="adlm"||goog.LOCALE.substring(3,7).toLowerCase()=="arab"||goog.LOCALE.substring(3,7).toLowerCase()=="hebr"||goog.LOCALE.substring(3,7).toLowerCase()=="nkoo"||goog.LOCALE.substring(3,7).toLowerCase()=="rohg"||goog.LOCALE.substring(3,7).toLowerCase()=="thaa")||8<=goog.LOCALE.length&&(goog.LOCALE.substring(3,4)=="-"||goog.LOCALE.substring(3,4)=="_")&&(goog.LOCALE.substring(4,8).toLowerCase()=="adlm"||goog.LOCALE.substring(4,8).toLowerCase()=="arab"||goog.LOCALE.substring(4,8).toLowerCase()=="hebr"||goog.LOCALE.substring(4,8).toLowerCase()=="nkoo"||goog.LOCALE.substring(4,8).toLowerCase()=="rohg"||goog.LOCALE.substring(4,8).toLowerCase()=="thaa"),goog.i18n.bidi.Format={LRE:"\u202A",RLE:"\u202B",PDF:"\u202C",LRM:"\u200E",RLM:"\u200F"},goog.i18n.bidi.Dir={LTR:1,RTL:-1,NEUTRAL:0},goog.i18n.bidi.RIGHT="right",goog.i18n.bidi.LEFT="left",goog.i18n.bidi.I18N_RIGHT=goog.i18n.bidi.IS_RTL?goog.i18n.bidi.LEFT:goog.i18n.bidi.RIGHT,goog.i18n.bidi.I18N_LEFT=goog.i18n.bidi.IS_RTL?goog.i18n.bidi.RIGHT:goog.i18n.bidi.LEFT,goog.i18n.bidi.toDir=function(o,i){return typeof o=="number"?0o?goog.i18n.bidi.Dir.RTL:i?null:goog.i18n.bidi.Dir.NEUTRAL:o==null?null:o?goog.i18n.bidi.Dir.RTL:goog.i18n.bidi.Dir.LTR},goog.i18n.bidi.ltrChars_="A-Za-z\xC0-\xD6\xD8-\xF6\xF8-\u02B8\u0300-\u0590\u0900-\u1FFF\u200E\u2C00-\uD801\uD804-\uD839\uD83C-\uDBFF\uF900-\uFB1C\uFE00-\uFE6F\uFEFD-\uFFFF",goog.i18n.bidi.rtlChars_="\u0591-\u06EF\u06FA-\u08FF\u200F\uD802-\uD803\uD83A-\uD83B\uFB1D-\uFDFF\uFE70-\uFEFC",goog.i18n.bidi.htmlSkipReg_=/<[^>]*>|&[^;]+;/g,goog.i18n.bidi.stripHtmlIfNeeded_=function(o,i){return i?o.replace(goog.i18n.bidi.htmlSkipReg_,""):o},goog.i18n.bidi.rtlCharReg_=new RegExp("["+goog.i18n.bidi.rtlChars_+"]"),goog.i18n.bidi.ltrCharReg_=new RegExp("["+goog.i18n.bidi.ltrChars_+"]"),goog.i18n.bidi.hasAnyRtl=function(o,i){return goog.i18n.bidi.rtlCharReg_.test(goog.i18n.bidi.stripHtmlIfNeeded_(o,i))},goog.i18n.bidi.hasRtlChar=goog.i18n.bidi.hasAnyRtl,goog.i18n.bidi.hasAnyLtr=function(o,i){return goog.i18n.bidi.ltrCharReg_.test(goog.i18n.bidi.stripHtmlIfNeeded_(o,i))},goog.i18n.bidi.ltrRe_=new RegExp("^["+goog.i18n.bidi.ltrChars_+"]"),goog.i18n.bidi.rtlRe_=new RegExp("^["+goog.i18n.bidi.rtlChars_+"]"),goog.i18n.bidi.isRtlChar=function(o){return goog.i18n.bidi.rtlRe_.test(o)},goog.i18n.bidi.isLtrChar=function(o){return goog.i18n.bidi.ltrRe_.test(o)},goog.i18n.bidi.isNeutralChar=function(o){return!goog.i18n.bidi.isLtrChar(o)&&!goog.i18n.bidi.isRtlChar(o)},goog.i18n.bidi.ltrDirCheckRe_=new RegExp("^[^"+goog.i18n.bidi.rtlChars_+"]*["+goog.i18n.bidi.ltrChars_+"]"),goog.i18n.bidi.rtlDirCheckRe_=new RegExp("^[^"+goog.i18n.bidi.ltrChars_+"]*["+goog.i18n.bidi.rtlChars_+"]"),goog.i18n.bidi.startsWithRtl=function(o,i){return goog.i18n.bidi.rtlDirCheckRe_.test(goog.i18n.bidi.stripHtmlIfNeeded_(o,i))},goog.i18n.bidi.isRtlText=goog.i18n.bidi.startsWithRtl,goog.i18n.bidi.startsWithLtr=function(o,i){return goog.i18n.bidi.ltrDirCheckRe_.test(goog.i18n.bidi.stripHtmlIfNeeded_(o,i))},goog.i18n.bidi.isLtrText=goog.i18n.bidi.startsWithLtr,goog.i18n.bidi.isRequiredLtrRe_=/^http:\/\/.*/,goog.i18n.bidi.isNeutralText=function(o,i){return o=goog.i18n.bidi.stripHtmlIfNeeded_(o,i),goog.i18n.bidi.isRequiredLtrRe_.test(o)||!goog.i18n.bidi.hasAnyLtr(o)&&!goog.i18n.bidi.hasAnyRtl(o)},goog.i18n.bidi.ltrExitDirCheckRe_=new RegExp("["+goog.i18n.bidi.ltrChars_+"][^"+goog.i18n.bidi.rtlChars_+"]*$"),goog.i18n.bidi.rtlExitDirCheckRe_=new RegExp("["+goog.i18n.bidi.rtlChars_+"][^"+goog.i18n.bidi.ltrChars_+"]*$"),goog.i18n.bidi.endsWithLtr=function(o,i){return goog.i18n.bidi.ltrExitDirCheckRe_.test(goog.i18n.bidi.stripHtmlIfNeeded_(o,i))},goog.i18n.bidi.isLtrExitText=goog.i18n.bidi.endsWithLtr,goog.i18n.bidi.endsWithRtl=function(o,i){return goog.i18n.bidi.rtlExitDirCheckRe_.test(goog.i18n.bidi.stripHtmlIfNeeded_(o,i))},goog.i18n.bidi.isRtlExitText=goog.i18n.bidi.endsWithRtl,goog.i18n.bidi.rtlLocalesRe_=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i,goog.i18n.bidi.isRtlLanguage=function(o){return goog.i18n.bidi.rtlLocalesRe_.test(o)},goog.i18n.bidi.bracketGuardTextRe_=/(\(.*?\)+)|(\[.*?\]+)|(\{.*?\}+)|(<.*?>+)/g,goog.i18n.bidi.guardBracketInText=function(o,i){return i=(i===void 0?goog.i18n.bidi.hasAnyRtl(o):i)?goog.i18n.bidi.Format.RLM:goog.i18n.bidi.Format.LRM,o.replace(goog.i18n.bidi.bracketGuardTextRe_,i+"$&"+i)},goog.i18n.bidi.enforceRtlInHtml=function(o){return o.charAt(0)=="<"?o.replace(/<\w+/,"$& dir=rtl"):` +`+o+""},goog.i18n.bidi.enforceRtlInText=function(o){return goog.i18n.bidi.Format.RLE+o+goog.i18n.bidi.Format.PDF},goog.i18n.bidi.enforceLtrInHtml=function(o){return o.charAt(0)=="<"?o.replace(/<\w+/,"$& dir=ltr"):` +`+o+""},goog.i18n.bidi.enforceLtrInText=function(o){return goog.i18n.bidi.Format.LRE+o+goog.i18n.bidi.Format.PDF},goog.i18n.bidi.dimensionsRe_=/:\s*([.\d][.\w]*)\s+([.\d][.\w]*)\s+([.\d][.\w]*)\s+([.\d][.\w]*)/g,goog.i18n.bidi.leftRe_=/left/gi,goog.i18n.bidi.rightRe_=/right/gi,goog.i18n.bidi.tempRe_=/%%%%/g,goog.i18n.bidi.mirrorCSS=function(o){return o.replace(goog.i18n.bidi.dimensionsRe_,":$1 $4 $3 $2").replace(goog.i18n.bidi.leftRe_,"%%%%").replace(goog.i18n.bidi.rightRe_,goog.i18n.bidi.LEFT).replace(goog.i18n.bidi.tempRe_,goog.i18n.bidi.RIGHT)},goog.i18n.bidi.doubleQuoteSubstituteRe_=/([\u0591-\u05f2])"/g,goog.i18n.bidi.singleQuoteSubstituteRe_=/([\u0591-\u05f2])'/g,goog.i18n.bidi.normalizeHebrewQuote=function(o){return o.replace(goog.i18n.bidi.doubleQuoteSubstituteRe_,"$1\u05F4").replace(goog.i18n.bidi.singleQuoteSubstituteRe_,"$1\u05F3")},goog.i18n.bidi.wordSeparatorRe_=/\s+/,goog.i18n.bidi.hasNumeralsRe_=/[\d\u06f0-\u06f9]/,goog.i18n.bidi.rtlDetectionThreshold_=.4,goog.i18n.bidi.estimateDirection=function(o,i){var s=0,j=0,$=!1;for(o=goog.i18n.bidi.stripHtmlIfNeeded_(o,i).split(goog.i18n.bidi.wordSeparatorRe_),i=0;igoog.i18n.bidi.rtlDetectionThreshold_?goog.i18n.bidi.Dir.RTL:goog.i18n.bidi.Dir.LTR},goog.i18n.bidi.detectRtlDirectionality=function(o,i){return goog.i18n.bidi.estimateDirection(o,i)==goog.i18n.bidi.Dir.RTL},goog.i18n.bidi.setElementDirAndAlign=function(o,i){o&&(i=goog.i18n.bidi.toDir(i))&&(o.style.textAlign=i==goog.i18n.bidi.Dir.RTL?goog.i18n.bidi.RIGHT:goog.i18n.bidi.LEFT,o.dir=i==goog.i18n.bidi.Dir.RTL?"rtl":"ltr")},goog.i18n.bidi.setElementDirByTextDirectionality=function(o,i){switch(goog.i18n.bidi.estimateDirection(i)){case goog.i18n.bidi.Dir.LTR:o.dir="ltr";break;case goog.i18n.bidi.Dir.RTL:o.dir="rtl";break;default:o.removeAttribute("dir")}},goog.i18n.bidi.DirectionalString=function(){},goog.html.TrustedResourceUrl=function(){this.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue_="",this.trustedURL_=null,this.TRUSTED_RESOURCE_URL_TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_=goog.html.TrustedResourceUrl.TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_},goog.html.TrustedResourceUrl.prototype.implementsGoogStringTypedString=!0,goog.html.TrustedResourceUrl.prototype.getTypedStringValue=function(){return this.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue_.toString()},goog.html.TrustedResourceUrl.prototype.implementsGoogI18nBidiDirectionalString=!0,goog.html.TrustedResourceUrl.prototype.getDirection=function(){return goog.i18n.bidi.Dir.LTR},goog.html.TrustedResourceUrl.prototype.cloneWithParams=function(o,i){var s=goog.html.TrustedResourceUrl.unwrap(this),j=(s=goog.html.TrustedResourceUrl.URL_PARAM_PARSER_.exec(s))[3]||"";return goog.html.TrustedResourceUrl.createTrustedResourceUrlSecurityPrivateDoNotAccessOrElse(s[1]+goog.html.TrustedResourceUrl.stringifyParams_("?",s[2]||"",o)+goog.html.TrustedResourceUrl.stringifyParams_("#",j,i))},goog.DEBUG&&(goog.html.TrustedResourceUrl.prototype.toString=function(){return"TrustedResourceUrl{"+this.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue_+"}"}),goog.html.TrustedResourceUrl.unwrap=function(o){return goog.html.TrustedResourceUrl.unwrapTrustedScriptURL(o).toString()},goog.html.TrustedResourceUrl.unwrapTrustedScriptURL=function(o){return o instanceof goog.html.TrustedResourceUrl&&o.constructor===goog.html.TrustedResourceUrl&&o.TRUSTED_RESOURCE_URL_TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_===goog.html.TrustedResourceUrl.TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_?o.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue_:(goog.asserts.fail("expected object of type TrustedResourceUrl, got '"+o+"' of type "+goog.typeOf(o)),"type_error:TrustedResourceUrl")},goog.html.TrustedResourceUrl.unwrapTrustedURL=function(o){return o.trustedURL_?o.trustedURL_:goog.html.TrustedResourceUrl.unwrap(o)},goog.html.TrustedResourceUrl.format=function(o,i){var s=goog.string.Const.unwrap(o);if(!goog.html.TrustedResourceUrl.BASE_URL_.test(s))throw Error("Invalid TrustedResourceUrl format: "+s);return o=s.replace(goog.html.TrustedResourceUrl.FORMAT_MARKER_,function(j,$){if(!Object.prototype.hasOwnProperty.call(i,$))throw Error('Found marker, "'+$+'", in format string, "'+s+'", but no valid label mapping found in args: '+JSON.stringify(i));return(j=i[$])instanceof goog.string.Const?goog.string.Const.unwrap(j):encodeURIComponent(String(j))}),goog.html.TrustedResourceUrl.createTrustedResourceUrlSecurityPrivateDoNotAccessOrElse(o)},goog.html.TrustedResourceUrl.FORMAT_MARKER_=/%{(\w+)}/g,goog.html.TrustedResourceUrl.BASE_URL_=/^((https:)?\/\/[0-9a-z.:[\]-]+\/|\/[^/\\]|[^:/\\%]+\/|[^:/\\%]*[?#]|about:blank#)/i,goog.html.TrustedResourceUrl.URL_PARAM_PARSER_=/^([^?#]*)(\?[^#]*)?(#[\s\S]*)?/,goog.html.TrustedResourceUrl.formatWithParams=function(o,i,s,j){return goog.html.TrustedResourceUrl.format(o,i).cloneWithParams(s,j)},goog.html.TrustedResourceUrl.fromConstant=function(o){return goog.html.TrustedResourceUrl.createTrustedResourceUrlSecurityPrivateDoNotAccessOrElse(goog.string.Const.unwrap(o))},goog.html.TrustedResourceUrl.fromConstants=function(o){for(var i="",s=0;so.length?"&":"")+encodeURIComponent(j)+"="+encodeURIComponent(String(et)))}}return i},goog.html.SafeUrl=function(){this.privateDoNotAccessOrElseSafeUrlWrappedValue_="",this.SAFE_URL_TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_=goog.html.SafeUrl.TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_},goog.html.SafeUrl.INNOCUOUS_STRING="about:invalid#zClosurez",goog.html.SafeUrl.prototype.implementsGoogStringTypedString=!0,goog.html.SafeUrl.prototype.getTypedStringValue=function(){return this.privateDoNotAccessOrElseSafeUrlWrappedValue_.toString()},goog.html.SafeUrl.prototype.implementsGoogI18nBidiDirectionalString=!0,goog.html.SafeUrl.prototype.getDirection=function(){return goog.i18n.bidi.Dir.LTR},goog.DEBUG&&(goog.html.SafeUrl.prototype.toString=function(){return"SafeUrl{"+this.privateDoNotAccessOrElseSafeUrlWrappedValue_+"}"}),goog.html.SafeUrl.unwrap=function(o){return goog.html.SafeUrl.unwrapTrustedURL(o).toString()},goog.html.SafeUrl.unwrapTrustedURL=function(o){return o instanceof goog.html.SafeUrl&&o.constructor===goog.html.SafeUrl&&o.SAFE_URL_TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_===goog.html.SafeUrl.TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_?o.privateDoNotAccessOrElseSafeUrlWrappedValue_:(goog.asserts.fail("expected object of type SafeUrl, got '"+o+"' of type "+goog.typeOf(o)),"type_error:SafeUrl")},goog.html.SafeUrl.fromConstant=function(o){return goog.html.SafeUrl.createSafeUrlSecurityPrivateDoNotAccessOrElse(goog.string.Const.unwrap(o))},goog.html.SAFE_MIME_TYPE_PATTERN_=/^(?:audio\/(?:3gpp2|3gpp|aac|L16|midi|mp3|mp4|mpeg|oga|ogg|opus|x-m4a|x-wav|wav|webm)|image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp|x-icon)|text\/csv|video\/(?:mpeg|mp4|ogg|webm|quicktime))(?:;\w+=(?:\w+|"[\w;=]+"))*$/i,goog.html.SafeUrl.isSafeMimeType=function(o){return goog.html.SAFE_MIME_TYPE_PATTERN_.test(o)},goog.html.SafeUrl.fromBlob=function(o){return o=goog.html.SAFE_MIME_TYPE_PATTERN_.test(o.type)?goog.fs.url.createObjectUrl(o):goog.html.SafeUrl.INNOCUOUS_STRING,goog.html.SafeUrl.createSafeUrlSecurityPrivateDoNotAccessOrElse(o)},goog.html.DATA_URL_PATTERN_=/^data:([^,]*);base64,[a-z0-9+\/]+=*$/i,goog.html.SafeUrl.fromDataUrl=function(o){var i=(o=o.replace(/(%0A|%0D)/g,"")).match(goog.html.DATA_URL_PATTERN_);return i=i&&goog.html.SAFE_MIME_TYPE_PATTERN_.test(i[1]),goog.html.SafeUrl.createSafeUrlSecurityPrivateDoNotAccessOrElse(i?o:goog.html.SafeUrl.INNOCUOUS_STRING)},goog.html.SafeUrl.fromTelUrl=function(o){return goog.string.internal.caseInsensitiveStartsWith(o,"tel:")||(o=goog.html.SafeUrl.INNOCUOUS_STRING),goog.html.SafeUrl.createSafeUrlSecurityPrivateDoNotAccessOrElse(o)},goog.html.SIP_URL_PATTERN_=/^sip[s]?:[+a-z0-9_.!$%&'*\/=^`{|}~-]+@([a-z0-9-]+\.)+[a-z0-9]{2,63}$/i,goog.html.SafeUrl.fromSipUrl=function(o){return goog.html.SIP_URL_PATTERN_.test(decodeURIComponent(o))||(o=goog.html.SafeUrl.INNOCUOUS_STRING),goog.html.SafeUrl.createSafeUrlSecurityPrivateDoNotAccessOrElse(o)},goog.html.SafeUrl.fromFacebookMessengerUrl=function(o){return goog.string.internal.caseInsensitiveStartsWith(o,"fb-messenger://share")||(o=goog.html.SafeUrl.INNOCUOUS_STRING),goog.html.SafeUrl.createSafeUrlSecurityPrivateDoNotAccessOrElse(o)},goog.html.SafeUrl.fromWhatsAppUrl=function(o){return goog.string.internal.caseInsensitiveStartsWith(o,"whatsapp://send")||(o=goog.html.SafeUrl.INNOCUOUS_STRING),goog.html.SafeUrl.createSafeUrlSecurityPrivateDoNotAccessOrElse(o)},goog.html.SafeUrl.fromSmsUrl=function(o){return goog.string.internal.caseInsensitiveStartsWith(o,"sms:")&&goog.html.SafeUrl.isSmsUrlBodyValid_(o)||(o=goog.html.SafeUrl.INNOCUOUS_STRING),goog.html.SafeUrl.createSafeUrlSecurityPrivateDoNotAccessOrElse(o)},goog.html.SafeUrl.isSmsUrlBodyValid_=function(o){var i=o.indexOf("#");if(0+~[\]()=^$|]+$/.test(s))throw Error("Selector allows only [-_a-zA-Z0-9#.:* ,>+~[\\]()=^$|] and strings, got: "+o);if(!goog.html.SafeStyleSheet.hasBalancedBrackets_(s))throw Error("() and [] in selector must be balanced, got: "+o);return i instanceof goog.html.SafeStyle||(i=goog.html.SafeStyle.create(i)),o=o+"{"+goog.html.SafeStyle.unwrap(i).replace(/.");if(o.toUpperCase()in goog.html.SafeHtml.NOT_ALLOWED_TAG_NAMES_)throw Error("Tag name <"+o+"> is not allowed for SafeHtml.")},goog.html.SafeHtml.createIframe=function(o,i,s,j){o&&goog.html.TrustedResourceUrl.unwrap(o);var $={};return $.src=o||null,$.srcdoc=i&&goog.html.SafeHtml.unwrap(i),o=goog.html.SafeHtml.combineAttributes($,{sandbox:""},s),goog.html.SafeHtml.createSafeHtmlTagSecurityPrivateDoNotAccessOrElse("iframe",o,j)},goog.html.SafeHtml.createSandboxIframe=function(o,i,s,j){if(!goog.html.SafeHtml.canUseSandboxIframe())throw Error("The browser does not support sandboxed iframes.");var $={};return $.src=o?goog.html.SafeUrl.unwrap(goog.html.SafeUrl.sanitize(o)):null,$.srcdoc=i||null,$.sandbox="",o=goog.html.SafeHtml.combineAttributes($,{},s),goog.html.SafeHtml.createSafeHtmlTagSecurityPrivateDoNotAccessOrElse("iframe",o,j)},goog.html.SafeHtml.canUseSandboxIframe=function(){return goog.global.HTMLIFrameElement&&"sandbox"in goog.global.HTMLIFrameElement.prototype},goog.html.SafeHtml.createScriptSrc=function(o,i){return goog.html.TrustedResourceUrl.unwrap(o),o=goog.html.SafeHtml.combineAttributes({src:o},{},i),goog.html.SafeHtml.createSafeHtmlTagSecurityPrivateDoNotAccessOrElse("script",o)},goog.html.SafeHtml.createScript=function(o,i){for(var s in i){var j=s.toLowerCase();if(j=="language"||j=="src"||j=="text"||j=="type")throw Error('Cannot set "'+j+'" attribute')}for(s="",o=goog.array.concat(o),j=0;j does not allow content."),$+=">"):(j=goog.html.SafeHtml.concat(s),$+=">"+goog.html.SafeHtml.unwrap(j)+"",j=j.getDirection()),(o=i&&i.dir)&&(j=/^(ltr|rtl|auto)$/i.test(o)?goog.i18n.bidi.Dir.NEUTRAL:null),goog.html.SafeHtml.createSafeHtmlSecurityPrivateDoNotAccessOrElse($,j)},goog.html.SafeHtml.stringifyAttributes=function(o,i){var s="";if(i)for(var j in i){if(!goog.html.SafeHtml.VALID_NAMES_IN_TAG_.test(j))throw Error('Invalid attribute name "'+j+'".');var $=i[j];goog.isDefAndNotNull($)&&(s+=" "+goog.html.SafeHtml.getAttrNameAndValue_(o,j,$))}return s},goog.html.SafeHtml.combineAttributes=function(o,i,s){var j,$={};for(j in o)goog.asserts.assert(j.toLowerCase()==j,"Must be lower case"),$[j]=o[j];for(j in i)goog.asserts.assert(j.toLowerCase()==j,"Must be lower case"),$[j]=i[j];for(j in s){var Z=j.toLowerCase();if(Z in o)throw Error('Cannot override "'+Z+'" attribute, got "'+j+'" with value "'+s[j]+'"');Z in i&&delete $[Z],$[j]=s[j]}return $},goog.html.SafeHtml.DOCTYPE_HTML=goog.html.SafeHtml.createSafeHtmlSecurityPrivateDoNotAccessOrElse("",goog.i18n.bidi.Dir.NEUTRAL),goog.html.SafeHtml.EMPTY=goog.html.SafeHtml.createSafeHtmlSecurityPrivateDoNotAccessOrElse("",goog.i18n.bidi.Dir.NEUTRAL),goog.html.SafeHtml.BR=goog.html.SafeHtml.createSafeHtmlSecurityPrivateDoNotAccessOrElse("
",goog.i18n.bidi.Dir.NEUTRAL),goog.html.uncheckedconversions={},goog.html.uncheckedconversions.safeHtmlFromStringKnownToSatisfyTypeContract=function(o,i,s){return goog.asserts.assertString(goog.string.Const.unwrap(o),"must provide justification"),goog.asserts.assert(!goog.string.internal.isEmptyOrWhitespace(goog.string.Const.unwrap(o)),"must provide non-empty justification"),goog.html.SafeHtml.createSafeHtmlSecurityPrivateDoNotAccessOrElse(i,s||null)},goog.html.uncheckedconversions.safeScriptFromStringKnownToSatisfyTypeContract=function(o,i){return goog.asserts.assertString(goog.string.Const.unwrap(o),"must provide justification"),goog.asserts.assert(!goog.string.internal.isEmptyOrWhitespace(goog.string.Const.unwrap(o)),"must provide non-empty justification"),goog.html.SafeScript.createSafeScriptSecurityPrivateDoNotAccessOrElse(i)},goog.html.uncheckedconversions.safeStyleFromStringKnownToSatisfyTypeContract=function(o,i){return goog.asserts.assertString(goog.string.Const.unwrap(o),"must provide justification"),goog.asserts.assert(!goog.string.internal.isEmptyOrWhitespace(goog.string.Const.unwrap(o)),"must provide non-empty justification"),goog.html.SafeStyle.createSafeStyleSecurityPrivateDoNotAccessOrElse(i)},goog.html.uncheckedconversions.safeStyleSheetFromStringKnownToSatisfyTypeContract=function(o,i){return goog.asserts.assertString(goog.string.Const.unwrap(o),"must provide justification"),goog.asserts.assert(!goog.string.internal.isEmptyOrWhitespace(goog.string.Const.unwrap(o)),"must provide non-empty justification"),goog.html.SafeStyleSheet.createSafeStyleSheetSecurityPrivateDoNotAccessOrElse(i)},goog.html.uncheckedconversions.safeUrlFromStringKnownToSatisfyTypeContract=function(o,i){return goog.asserts.assertString(goog.string.Const.unwrap(o),"must provide justification"),goog.asserts.assert(!goog.string.internal.isEmptyOrWhitespace(goog.string.Const.unwrap(o)),"must provide non-empty justification"),goog.html.SafeUrl.createSafeUrlSecurityPrivateDoNotAccessOrElse(i)},goog.html.uncheckedconversions.trustedResourceUrlFromStringKnownToSatisfyTypeContract=function(o,i){return goog.asserts.assertString(goog.string.Const.unwrap(o),"must provide justification"),goog.asserts.assert(!goog.string.internal.isEmptyOrWhitespace(goog.string.Const.unwrap(o)),"must provide non-empty justification"),goog.html.TrustedResourceUrl.createTrustedResourceUrlSecurityPrivateDoNotAccessOrElse(i)},goog.dom.asserts={},goog.dom.asserts.assertIsLocation=function(o){if(goog.asserts.ENABLE_ASSERTS){var i=goog.dom.asserts.getWindow_(o);i&&(!o||!(o instanceof i.Location)&&o instanceof i.Element)&&goog.asserts.fail("Argument is not a Location (or a non-Element mock); got: %s",goog.dom.asserts.debugStringForType_(o))}return o},goog.dom.asserts.assertIsElementType_=function(o,i){if(goog.asserts.ENABLE_ASSERTS){var s=goog.dom.asserts.getWindow_(o);s&&s[i]!==void 0&&(o&&(o instanceof s[i]||!(o instanceof s.Location||o instanceof s.Element))||goog.asserts.fail("Argument is not a %s (or a non-Element, non-Location mock); got: %s",i,goog.dom.asserts.debugStringForType_(o)))}return o},goog.dom.asserts.assertIsHTMLAnchorElement=function(o){return goog.dom.asserts.assertIsElementType_(o,"HTMLAnchorElement")},goog.dom.asserts.assertIsHTMLButtonElement=function(o){return goog.dom.asserts.assertIsElementType_(o,"HTMLButtonElement")},goog.dom.asserts.assertIsHTMLLinkElement=function(o){return goog.dom.asserts.assertIsElementType_(o,"HTMLLinkElement")},goog.dom.asserts.assertIsHTMLImageElement=function(o){return goog.dom.asserts.assertIsElementType_(o,"HTMLImageElement")},goog.dom.asserts.assertIsHTMLAudioElement=function(o){return goog.dom.asserts.assertIsElementType_(o,"HTMLAudioElement")},goog.dom.asserts.assertIsHTMLVideoElement=function(o){return goog.dom.asserts.assertIsElementType_(o,"HTMLVideoElement")},goog.dom.asserts.assertIsHTMLInputElement=function(o){return goog.dom.asserts.assertIsElementType_(o,"HTMLInputElement")},goog.dom.asserts.assertIsHTMLTextAreaElement=function(o){return goog.dom.asserts.assertIsElementType_(o,"HTMLTextAreaElement")},goog.dom.asserts.assertIsHTMLCanvasElement=function(o){return goog.dom.asserts.assertIsElementType_(o,"HTMLCanvasElement")},goog.dom.asserts.assertIsHTMLEmbedElement=function(o){return goog.dom.asserts.assertIsElementType_(o,"HTMLEmbedElement")},goog.dom.asserts.assertIsHTMLFormElement=function(o){return goog.dom.asserts.assertIsElementType_(o,"HTMLFormElement")},goog.dom.asserts.assertIsHTMLFrameElement=function(o){return goog.dom.asserts.assertIsElementType_(o,"HTMLFrameElement")},goog.dom.asserts.assertIsHTMLIFrameElement=function(o){return goog.dom.asserts.assertIsElementType_(o,"HTMLIFrameElement")},goog.dom.asserts.assertIsHTMLObjectElement=function(o){return goog.dom.asserts.assertIsElementType_(o,"HTMLObjectElement")},goog.dom.asserts.assertIsHTMLScriptElement=function(o){return goog.dom.asserts.assertIsElementType_(o,"HTMLScriptElement")},goog.dom.asserts.debugStringForType_=function(o){if(!goog.isObject(o))return o===void 0?"undefined":o===null?"null":typeof o;try{return o.constructor.displayName||o.constructor.name||Object.prototype.toString.call(o)}catch{return""}},goog.dom.asserts.getWindow_=function(o){try{var i=o&&o.ownerDocument,s=i&&(i.defaultView||i.parentWindow);if((s=s||goog.global).Element&&s.Location)return s}catch{}return null},goog.functions={},goog.functions.constant=function(o){return function(){return o}},goog.functions.FALSE=function(){return!1},goog.functions.TRUE=function(){return!0},goog.functions.NULL=function(){return null},goog.functions.identity=function(o,i){return o},goog.functions.error=function(o){return function(){throw Error(o)}},goog.functions.fail=function(o){return function(){throw o}},goog.functions.lock=function(o,i){return i=i||0,function(){return o.apply(this,Array.prototype.slice.call(arguments,0,i))}},goog.functions.nth=function(o){return function(){return arguments[o]}},goog.functions.partialRight=function(o,i){var s=Array.prototype.slice.call(arguments,1);return function(){var j=Array.prototype.slice.call(arguments);return j.push.apply(j,s),o.apply(this,j)}},goog.functions.withReturnValue=function(o,i){return goog.functions.sequence(o,goog.functions.constant(i))},goog.functions.equalTo=function(o,i){return function(s){return i?o==s:o===s}},goog.functions.compose=function(o,i){var s=arguments,j=s.length;return function(){var $;j&&($=s[j-1].apply(this,arguments));for(var Z=j-2;0<=Z;Z--)$=s[Z].call(this,$);return $}},goog.functions.sequence=function(o){var i=arguments,s=i.length;return function(){for(var j,$=0;$=o||"\x80"<=o&&"\uFFFD">=o},goog.string.stripNewlines=function(o){return o.replace(/(\r\n|\r|\n)+/g," ")},goog.string.canonicalizeNewlines=function(o){return o.replace(/(\r\n|\r|\n)/g,` +`)},goog.string.normalizeWhitespace=function(o){return o.replace(/\xa0|\s/g," ")},goog.string.normalizeSpaces=function(o){return o.replace(/\xa0|[ \t]+/g," ")},goog.string.collapseBreakingSpaces=function(o){return o.replace(/[\t\r\n ]+/g," ").replace(/^[\t\r\n ]+|[\t\r\n ]+$/g,"")},goog.string.trim=goog.string.internal.trim,goog.string.trimLeft=function(o){return o.replace(/^[\s\xa0]+/,"")},goog.string.trimRight=function(o){return o.replace(/[\s\xa0]+$/,"")},goog.string.caseInsensitiveCompare=goog.string.internal.caseInsensitiveCompare,goog.string.numberAwareCompare_=function(o,i,s){if(o==i)return 0;if(!o)return-1;if(!i)return 1;for(var j=o.toLowerCase().match(s),$=i.toLowerCase().match(s),Z=Math.min(j.length,$.length),et=0;et",""":'"'},j=i?i.createElement("div"):goog.global.document.createElement("div");return o.replace(goog.string.HTML_ENTITY_PATTERN_,function($,Z){var et=s[$];return et||(Z.charAt(0)=="#"&&(Z=Number("0"+Z.substr(1)),isNaN(Z)||(et=String.fromCharCode(Z))),et||(goog.dom.safe.setInnerHtml(j,goog.html.uncheckedconversions.safeHtmlFromStringKnownToSatisfyTypeContract(goog.string.Const.from("Single HTML entity."),$+" ")),et=j.firstChild.nodeValue.slice(0,-1)),s[$]=et)})},goog.string.unescapePureXmlEntities_=function(o){return o.replace(/&([^;]+);/g,function(i,s){switch(s){case"amp":return"&";case"lt":return"<";case"gt":return">";case"quot":return'"';default:return s.charAt(0)!="#"||(s=Number("0"+s.substr(1)),isNaN(s))?i:String.fromCharCode(s)}})},goog.string.HTML_ENTITY_PATTERN_=/&([^;\s<&]+);?/g,goog.string.whitespaceEscape=function(o,i){return goog.string.newLineToBr(o.replace(/ /g,"  "),i)},goog.string.preserveSpaces=function(o){return o.replace(/(^|[\n ]) /g,"$1"+goog.string.Unicode.NBSP)},goog.string.stripQuotes=function(o,i){for(var s=i.length,j=0;ji&&(o=o.substring(0,i-3)+"..."),s&&(o=goog.string.htmlEscape(o)),o},goog.string.truncateMiddle=function(o,i,s,j){if(s&&(o=goog.string.unescapeEntities(o)),j&&o.length>i){j>i&&(j=i);var $=o.length-j;o=o.substring(0,i-j)+"..."+o.substring($)}else o.length>i&&(j=Math.floor(i/2),$=o.length-j,o=o.substring(0,j+i%2)+"..."+o.substring($));return s&&(o=goog.string.htmlEscape(o)),o},goog.string.specialEscapeChars_={"\0":"\\0","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r"," ":"\\t","\v":"\\x0B",'"':'\\"',"\\":"\\\\","<":"\\u003C"},goog.string.jsEscapeCache_={"'":"\\'"},goog.string.quote=function(o){o=String(o);for(var i=['"'],s=0;s$?j:goog.string.escapeChar(j))}return i.push('"'),i.join("")},goog.string.escapeString=function(o){for(var i=[],s=0;si)var s=o;else 256>i?(s="\\x",(16>i||256i&&(s+="0")),s+=i.toString(16).toUpperCase();return goog.string.jsEscapeCache_[o]=s},goog.string.contains=goog.string.internal.contains,goog.string.caseInsensitiveContains=goog.string.internal.caseInsensitiveContains,goog.string.countOf=function(o,i){return o&&i?o.split(i).length-1:0},goog.string.removeAt=function(o,i,s){var j=o;return 0<=i&&i>>0;return i},goog.string.uniqueStringCounter_=2147483648*Math.random()|0,goog.string.createUniqueString=function(){return"goog_"+goog.string.uniqueStringCounter_++},goog.string.toNumber=function(o){var i=Number(o);return i==0&&goog.string.isEmptyOrWhitespace(o)?NaN:i},goog.string.isLowerCamelCase=function(o){return/^[a-z]+([A-Z][a-z]*)*$/.test(o)},goog.string.isUpperCamelCase=function(o){return/^([A-Z][a-z]*)+$/.test(o)},goog.string.toCamelCase=function(o){return String(o).replace(/\-([a-z])/g,function(i,s){return s.toUpperCase()})},goog.string.toSelectorCase=function(o){return String(o).replace(/([A-Z])/g,"-$1").toLowerCase()},goog.string.toTitleCase=function(o,i){return i=goog.isString(i)?goog.string.regExpEscape(i):"\\s",o.replace(new RegExp("(^"+(i?"|["+i+"]+":"")+")([a-z])","g"),function(s,j,$){return j+$.toUpperCase()})},goog.string.capitalize=function(o){return String(o.charAt(0)).toUpperCase()+String(o.substr(1)).toLowerCase()},goog.string.parseInt=function(o){return isFinite(o)&&(o=String(o)),goog.isString(o)?/^\s*-?0x/i.test(o)?parseInt(o,16):parseInt(o,10):NaN},goog.string.splitLimit=function(o,i,s){o=o.split(i);for(var j=[];0s&&(s=$)}return s==-1?o:o.slice(s+1)},goog.string.editDistance=function(o,i){var s=[],j=[];if(o==i)return 0;if(!o.length||!i.length)return Math.max(o.length,i.length);for(var $=0;$parseFloat(o)?String(i):o},goog.userAgent.getVersionRegexResult_=function(){var o=goog.userAgent.getUserAgentString();return goog.userAgent.GECKO?/rv:([^\);]+)(\)|;)/.exec(o):goog.userAgent.EDGE?/Edge\/([\d\.]+)/.exec(o):goog.userAgent.IE?/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(o):goog.userAgent.WEBKIT?/WebKit\/(\S+)/.exec(o):goog.userAgent.OPERA?/(?:Version)[ \/]?(\S+)/.exec(o):void 0},goog.userAgent.getDocumentMode_=function(){var o=goog.global.document;return o?o.documentMode:void 0},goog.userAgent.VERSION=goog.userAgent.determineVersion_(),goog.userAgent.compare=function(o,i){return goog.string.compareVersions(o,i)},goog.userAgent.isVersionOrHigherCache_={},goog.userAgent.isVersionOrHigher=function(o){return goog.userAgent.ASSUME_ANY_VERSION||goog.reflect.cache(goog.userAgent.isVersionOrHigherCache_,o,function(){return 0<=goog.string.compareVersions(goog.userAgent.VERSION,o)})},goog.userAgent.isVersion=goog.userAgent.isVersionOrHigher,goog.userAgent.isDocumentModeOrHigher=function(o){return Number(goog.userAgent.DOCUMENT_MODE)>=o},goog.userAgent.isDocumentMode=goog.userAgent.isDocumentModeOrHigher,goog.userAgent.DOCUMENT_MODE=function(){if(goog.global.document&&goog.userAgent.IE)return goog.userAgent.getDocumentMode_()}(),goog.userAgent.product={},goog.userAgent.product.ASSUME_FIREFOX=!1,goog.userAgent.product.ASSUME_IPHONE=!1,goog.userAgent.product.ASSUME_IPAD=!1,goog.userAgent.product.ASSUME_ANDROID=!1,goog.userAgent.product.ASSUME_CHROME=!1,goog.userAgent.product.ASSUME_SAFARI=!1,goog.userAgent.product.PRODUCT_KNOWN_=goog.userAgent.ASSUME_IE||goog.userAgent.ASSUME_EDGE||goog.userAgent.ASSUME_OPERA||goog.userAgent.product.ASSUME_FIREFOX||goog.userAgent.product.ASSUME_IPHONE||goog.userAgent.product.ASSUME_IPAD||goog.userAgent.product.ASSUME_ANDROID||goog.userAgent.product.ASSUME_CHROME||goog.userAgent.product.ASSUME_SAFARI,goog.userAgent.product.OPERA=goog.userAgent.OPERA,goog.userAgent.product.IE=goog.userAgent.IE,goog.userAgent.product.EDGE=goog.userAgent.EDGE,goog.userAgent.product.FIREFOX=goog.userAgent.product.PRODUCT_KNOWN_?goog.userAgent.product.ASSUME_FIREFOX:goog.labs.userAgent.browser.isFirefox(),goog.userAgent.product.isIphoneOrIpod_=function(){return goog.labs.userAgent.platform.isIphone()||goog.labs.userAgent.platform.isIpod()},goog.userAgent.product.IPHONE=goog.userAgent.product.PRODUCT_KNOWN_?goog.userAgent.product.ASSUME_IPHONE:goog.userAgent.product.isIphoneOrIpod_(),goog.userAgent.product.IPAD=goog.userAgent.product.PRODUCT_KNOWN_?goog.userAgent.product.ASSUME_IPAD:goog.labs.userAgent.platform.isIpad(),goog.userAgent.product.ANDROID=goog.userAgent.product.PRODUCT_KNOWN_?goog.userAgent.product.ASSUME_ANDROID:goog.labs.userAgent.browser.isAndroidBrowser(),goog.userAgent.product.CHROME=goog.userAgent.product.PRODUCT_KNOWN_?goog.userAgent.product.ASSUME_CHROME:goog.labs.userAgent.browser.isChrome(),goog.userAgent.product.isSafariDesktop_=function(){return goog.labs.userAgent.browser.isSafari()&&!goog.labs.userAgent.platform.isIos()},goog.userAgent.product.SAFARI=goog.userAgent.product.PRODUCT_KNOWN_?goog.userAgent.product.ASSUME_SAFARI:goog.userAgent.product.isSafariDesktop_(),goog.crypt.base64={},goog.crypt.base64.DEFAULT_ALPHABET_COMMON_="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",goog.crypt.base64.ENCODED_VALS=goog.crypt.base64.DEFAULT_ALPHABET_COMMON_+"+/=",goog.crypt.base64.ENCODED_VALS_WEBSAFE=goog.crypt.base64.DEFAULT_ALPHABET_COMMON_+"-_.",goog.crypt.base64.Alphabet={DEFAULT:0,NO_PADDING:1,WEBSAFE:2,WEBSAFE_DOT_PADDING:3,WEBSAFE_NO_PADDING:4},goog.crypt.base64.paddingChars_="=.",goog.crypt.base64.isPadding_=function(o){return goog.string.contains(goog.crypt.base64.paddingChars_,o)},goog.crypt.base64.byteToCharMaps_={},goog.crypt.base64.charToByteMap_=null,goog.crypt.base64.ASSUME_NATIVE_SUPPORT_=goog.userAgent.GECKO||goog.userAgent.WEBKIT&&!goog.userAgent.product.SAFARI||goog.userAgent.OPERA,goog.crypt.base64.HAS_NATIVE_ENCODE_=goog.crypt.base64.ASSUME_NATIVE_SUPPORT_||typeof goog.global.btoa=="function",goog.crypt.base64.HAS_NATIVE_DECODE_=goog.crypt.base64.ASSUME_NATIVE_SUPPORT_||!goog.userAgent.product.SAFARI&&!goog.userAgent.IE&&typeof goog.global.atob=="function",goog.crypt.base64.encodeByteArray=function(o,i){goog.asserts.assert(goog.isArrayLike(o),"encodeByteArray takes an array as a parameter"),i===void 0&&(i=goog.crypt.base64.Alphabet.DEFAULT),goog.crypt.base64.init_(),i=goog.crypt.base64.byteToCharMaps_[i];for(var s=[],j=0;j>2;$=(3&$)<<4|et>>4,et=(15&et)<<2|nt>>6,nt&=63,_e||(nt=64,Z||(et=64)),s.push(i[rt],i[$],i[et]||"",i[nt]||"")}return s.join("")},goog.crypt.base64.encodeString=function(o,i){return goog.crypt.base64.HAS_NATIVE_ENCODE_&&!i?goog.global.btoa(o):goog.crypt.base64.encodeByteArray(goog.crypt.stringToByteArray(o),i)},goog.crypt.base64.decodeString=function(o,i){if(goog.crypt.base64.HAS_NATIVE_DECODE_&&!i)return goog.global.atob(o);var s="";return goog.crypt.base64.decodeStringInternal_(o,function(j){s+=String.fromCharCode(j)}),s},goog.crypt.base64.decodeStringToByteArray=function(o,i){var s=[];return goog.crypt.base64.decodeStringInternal_(o,function(j){s.push(j)}),s},goog.crypt.base64.decodeStringToUint8Array=function(o){goog.asserts.assert(!goog.userAgent.IE||goog.userAgent.isVersionOrHigher("10"),"Browser does not support typed arrays");var i=o.length,s=3*i/4;s%3?s=Math.floor(s):goog.crypt.base64.isPadding_(o[i-1])&&(s=goog.crypt.base64.isPadding_(o[i-2])?s-2:s-1);var j=new Uint8Array(s),$=0;return goog.crypt.base64.decodeStringInternal_(o,function(Z){j[$++]=Z}),j.subarray(0,$)},goog.crypt.base64.decodeStringInternal_=function(o,i){function s(nt){for(;j>4),et!=64&&(i(Z<<4&240|et>>2),_e!=64&&i(et<<6&192|_e))}},goog.crypt.base64.init_=function(){if(!goog.crypt.base64.charToByteMap_){goog.crypt.base64.charToByteMap_={};for(var o=goog.crypt.base64.DEFAULT_ALPHABET_COMMON_.split(""),i=["+/=","+/","-_=","-_.","-_"],s=0;5>s;s++){var j=o.concat(i[s].split(""));goog.crypt.base64.byteToCharMaps_[s]=j;for(var $=0;$>>0;o=Math.floor((o-i)/jspb.BinaryConstants.TWO_TO_32)>>>0,jspb.utils.split64Low=i,jspb.utils.split64High=o},jspb.utils.splitInt64=function(o){var i=0>o,s=(o=Math.abs(o))>>>0;o=Math.floor((o-s)/jspb.BinaryConstants.TWO_TO_32),o>>>=0,i&&(o=~o>>>0,4294967295<(s=1+(~s>>>0))&&(s=0,4294967295<++o&&(o=0))),jspb.utils.split64Low=s,jspb.utils.split64High=o},jspb.utils.splitZigzag64=function(o){var i=0>o;o=2*Math.abs(o),jspb.utils.splitUint64(o),o=jspb.utils.split64Low;var s=jspb.utils.split64High;i&&(o==0?s==0?s=o=4294967295:(s--,o=4294967295):o--),jspb.utils.split64Low=o,jspb.utils.split64High=s},jspb.utils.splitFloat32=function(o){var i=0>o?1:0;if((o=i?-o:o)===0)0<1/o?(jspb.utils.split64High=0,jspb.utils.split64Low=0):(jspb.utils.split64High=0,jspb.utils.split64Low=2147483648);else if(isNaN(o))jspb.utils.split64High=0,jspb.utils.split64Low=2147483647;else if(o>jspb.BinaryConstants.FLOAT32_MAX)jspb.utils.split64High=0,jspb.utils.split64Low=(i<<31|2139095040)>>>0;else if(o>>0;else{var s=Math.floor(Math.log(o)/Math.LN2);o*=Math.pow(2,-s),o=8388607&Math.round(o*jspb.BinaryConstants.TWO_TO_23),jspb.utils.split64High=0,jspb.utils.split64Low=(i<<31|s+127<<23|o)>>>0}},jspb.utils.splitFloat64=function(o){var i=0>o?1:0;if((o=i?-o:o)===0)jspb.utils.split64High=0<1/o?0:2147483648,jspb.utils.split64Low=0;else if(isNaN(o))jspb.utils.split64High=2147483647,jspb.utils.split64Low=4294967295;else if(o>jspb.BinaryConstants.FLOAT64_MAX)jspb.utils.split64High=(i<<31|2146435072)>>>0,jspb.utils.split64Low=0;else if(o>>0,jspb.utils.split64Low=s>>>0}else{var j=0;if(2<=(s=o))for(;2<=s&&1023>j;)j++,s/=2;else for(;1>s&&-1022>>0,jspb.utils.split64High=(i<<31|j+1023<<20|o)>>>0,jspb.utils.split64Low=s}},jspb.utils.splitHash64=function(o){var i=o.charCodeAt(0),s=o.charCodeAt(1),j=o.charCodeAt(2),$=o.charCodeAt(3),Z=o.charCodeAt(4),et=o.charCodeAt(5),_e=o.charCodeAt(6);o=o.charCodeAt(7),jspb.utils.split64Low=i+(s<<8)+(j<<16)+($<<24)>>>0,jspb.utils.split64High=Z+(et<<8)+(_e<<16)+(o<<24)>>>0},jspb.utils.joinUint64=function(o,i){return i*jspb.BinaryConstants.TWO_TO_32+(o>>>0)},jspb.utils.joinInt64=function(o,i){var s=2147483648&i;return s&&(i=~i>>>0,(o=1+~o>>>0)==0&&(i=i+1>>>0)),o=jspb.utils.joinUint64(o,i),s?-o:o},jspb.utils.toZigzag64=function(o,i,s){var j=i>>31;return s(o<<1^j,(i<<1|o>>>31)^j)},jspb.utils.joinZigzag64=function(o,i){return jspb.utils.fromZigzag64(o,i,jspb.utils.joinInt64)},jspb.utils.fromZigzag64=function(o,i,s){var j=-(1&o);return s((o>>>1|i<<31)^j,i>>>1^j)},jspb.utils.joinFloat32=function(o,i){i=2*(o>>31)+1;var s=o>>>23&255;return o&=8388607,s==255?o?NaN:1/0*i:s==0?i*Math.pow(2,-149)*o:i*Math.pow(2,s-150)*(o+Math.pow(2,23))},jspb.utils.joinFloat64=function(o,i){var s=2*(i>>31)+1,j=i>>>20&2047;return o=jspb.BinaryConstants.TWO_TO_32*(1048575&i)+o,j==2047?o?NaN:1/0*s:j==0?s*Math.pow(2,-1074)*o:s*Math.pow(2,j-1075)*(o+jspb.BinaryConstants.TWO_TO_52)},jspb.utils.joinHash64=function(o,i){return String.fromCharCode(o>>>0&255,o>>>8&255,o>>>16&255,o>>>24&255,i>>>0&255,i>>>8&255,i>>>16&255,i>>>24&255)},jspb.utils.DIGITS="0123456789abcdef".split(""),jspb.utils.ZERO_CHAR_CODE_=48,jspb.utils.A_CHAR_CODE_=97,jspb.utils.joinUnsignedDecimalString=function(o,i){function s($,Z){return $=$?String($):"",Z?"0000000".slice($.length)+$:$}if(2097151>=i)return""+(jspb.BinaryConstants.TWO_TO_32*i+o);var j=(o>>>24|i<<8)>>>0&16777215;return o=(16777215&o)+6777216*j+6710656*(i=i>>16&65535),j+=8147497*i,i*=2,1e7<=o&&(j+=Math.floor(o/1e7),o%=1e7),1e7<=j&&(i+=Math.floor(j/1e7),j%=1e7),s(i,0)+s(j,i)+s(o,1)},jspb.utils.joinSignedDecimalString=function(o,i){var s=2147483648&i;return s&&(i=~i+((o=1+~o>>>0)==0?1:0)>>>0),o=jspb.utils.joinUnsignedDecimalString(o,i),s?"-"+o:o},jspb.utils.hash64ToDecimalString=function(o,i){jspb.utils.splitHash64(o),o=jspb.utils.split64Low;var s=jspb.utils.split64High;return i?jspb.utils.joinSignedDecimalString(o,s):jspb.utils.joinUnsignedDecimalString(o,s)},jspb.utils.hash64ArrayToDecimalStrings=function(o,i){for(var s=Array(o.length),j=0;j_e&&(Z!==1||0>>=8}goog.asserts.assert(0Z;Z++)j[Z]=255&~j[Z]}(),i(1,1)),goog.crypt.byteArrayToString(j)},jspb.utils.splitDecimalString=function(o){jspb.utils.splitHash64(jspb.utils.decimalStringToHash64(o))},jspb.utils.toHexDigit_=function(o){return String.fromCharCode(10>o?jspb.utils.ZERO_CHAR_CODE_+o:jspb.utils.A_CHAR_CODE_-10+o)},jspb.utils.fromHexCharCode_=function(o){return o>=jspb.utils.A_CHAR_CODE_?o-jspb.utils.A_CHAR_CODE_+10:o-jspb.utils.ZERO_CHAR_CODE_},jspb.utils.hash64ToHexString=function(o){var i=Array(18);i[0]="0",i[1]="x";for(var s=0;8>s;s++){var j=o.charCodeAt(7-s);i[2*s+2]=jspb.utils.toHexDigit_(j>>4),i[2*s+3]=jspb.utils.toHexDigit_(15&j)}return i.join("")},jspb.utils.hexStringToHash64=function(o){o=o.toLowerCase(),goog.asserts.assert(o.length==18),goog.asserts.assert(o[0]=="0"),goog.asserts.assert(o[1]=="x");for(var i="",s=0;8>s;s++){var j=jspb.utils.fromHexCharCode_(o.charCodeAt(2*s+2)),$=jspb.utils.fromHexCharCode_(o.charCodeAt(2*s+3));i=String.fromCharCode(16*j+$)+i}return i},jspb.utils.hash64ToNumber=function(o,i){jspb.utils.splitHash64(o),o=jspb.utils.split64Low;var s=jspb.utils.split64High;return i?jspb.utils.joinInt64(o,s):jspb.utils.joinUint64(o,s)},jspb.utils.numberToHash64=function(o){return jspb.utils.splitInt64(o),jspb.utils.joinHash64(jspb.utils.split64Low,jspb.utils.split64High)},jspb.utils.countVarints=function(o,i,s){for(var j=0,$=i;$>7;return s-i-j},jspb.utils.countVarintFields=function(o,i,s,j){var $=0;if(128>(j=8*j+jspb.BinaryConstants.WireType.VARINT))for(;i>=7}if(o[i++]!=Z)break;for($++;(128&(Z=o[i++]))!=0;);}return $},jspb.utils.countFixedFields_=function(o,i,s,j,$){var Z=0;if(128>j)for(;i>=7}if(o[i++]!=et)break;Z++,i+=$}return Z},jspb.utils.countFixed32Fields=function(o,i,s,j){return jspb.utils.countFixedFields_(o,i,s,8*j+jspb.BinaryConstants.WireType.FIXED32,4)},jspb.utils.countFixed64Fields=function(o,i,s,j){return jspb.utils.countFixedFields_(o,i,s,8*j+jspb.BinaryConstants.WireType.FIXED64,8)},jspb.utils.countDelimitedFields=function(o,i,s,j){var $=0;for(j=8*j+jspb.BinaryConstants.WireType.DELIMITED;i>=7}if(o[i++]!=Z)break;$++;for(var et=0,_e=1;et+=(127&(Z=o[i++]))*_e,_e*=128,(128&Z)!=0;);i+=et}return $},jspb.utils.debugBytesToTextFormat=function(o){var i='"';if(o){o=jspb.utils.byteSourceToUint8Array(o);for(var s=0;so[s]&&(i+="0"),i+=o[s].toString(16)}return i+'"'},jspb.utils.debugScalarToTextFormat=function(o){return typeof o=="string"?goog.string.quote(o):o.toString()},jspb.utils.stringToByteArray=function(o){for(var i=new Uint8Array(o.length),s=0;sjspb.BinaryDecoder.instanceCache_.length&&jspb.BinaryDecoder.instanceCache_.push(this)},jspb.BinaryDecoder.prototype.clone=function(){return jspb.BinaryDecoder.alloc(this.bytes_,this.start_,this.end_-this.start_)},jspb.BinaryDecoder.prototype.clear=function(){this.bytes_=null,this.cursor_=this.end_=this.start_=0,this.error_=!1},jspb.BinaryDecoder.prototype.getBuffer=function(){return this.bytes_},jspb.BinaryDecoder.prototype.setBlock=function(o,i,s){this.bytes_=jspb.utils.byteSourceToUint8Array(o),this.start_=i!==void 0?i:0,this.end_=s!==void 0?this.start_+s:this.bytes_.length,this.cursor_=this.start_},jspb.BinaryDecoder.prototype.getEnd=function(){return this.end_},jspb.BinaryDecoder.prototype.setEnd=function(o){this.end_=o},jspb.BinaryDecoder.prototype.reset=function(){this.cursor_=this.start_},jspb.BinaryDecoder.prototype.getCursor=function(){return this.cursor_},jspb.BinaryDecoder.prototype.setCursor=function(o){this.cursor_=o},jspb.BinaryDecoder.prototype.advance=function(o){this.cursor_+=o,goog.asserts.assert(this.cursor_<=this.end_)},jspb.BinaryDecoder.prototype.atEnd=function(){return this.cursor_==this.end_},jspb.BinaryDecoder.prototype.pastEnd=function(){return this.cursor_>this.end_},jspb.BinaryDecoder.prototype.getError=function(){return this.error_||0>this.cursor_||this.cursor_>this.end_},jspb.BinaryDecoder.prototype.readSplitVarint64=function(o){for(var i=128,s=0,j=0,$=0;4>$&&128<=i;$++)s|=(127&(i=this.bytes_[this.cursor_++]))<<7*$;if(128<=i&&(s|=(127&(i=this.bytes_[this.cursor_++]))<<28,j|=(127&i)>>4),128<=i)for($=0;5>$&&128<=i;$++)j|=(127&(i=this.bytes_[this.cursor_++]))<<7*$+3;if(128>i)return o(s>>>0,j>>>0);goog.asserts.fail("Failed to read varint, encoding is invalid."),this.error_=!0},jspb.BinaryDecoder.prototype.readSplitZigzagVarint64=function(o){return this.readSplitVarint64(function(i,s){return jspb.utils.fromZigzag64(i,s,o)})},jspb.BinaryDecoder.prototype.readSplitFixed64=function(o){var i=this.bytes_,s=this.cursor_;this.cursor_+=8;for(var j=0,$=0,Z=s+7;Z>=s;Z--)j=j<<8|i[Z],$=$<<8|i[Z+4];return o(j,$)},jspb.BinaryDecoder.prototype.skipVarint=function(){for(;128&this.bytes_[this.cursor_];)this.cursor_++;this.cursor_++},jspb.BinaryDecoder.prototype.unskipVarint=function(o){for(;128>>=7;this.cursor_--},jspb.BinaryDecoder.prototype.readUnsignedVarint32=function(){var o=this.bytes_,i=o[this.cursor_+0],s=127&i;return 128>i?(this.cursor_+=1,goog.asserts.assert(this.cursor_<=this.end_),s):(s|=(127&(i=o[this.cursor_+1]))<<7,128>i?(this.cursor_+=2,goog.asserts.assert(this.cursor_<=this.end_),s):(s|=(127&(i=o[this.cursor_+2]))<<14,128>i?(this.cursor_+=3,goog.asserts.assert(this.cursor_<=this.end_),s):(s|=(127&(i=o[this.cursor_+3]))<<21,128>i?(this.cursor_+=4,goog.asserts.assert(this.cursor_<=this.end_),s):(s|=(15&(i=o[this.cursor_+4]))<<28,128>i?(this.cursor_+=5,goog.asserts.assert(this.cursor_<=this.end_),s>>>0):(this.cursor_+=5,128<=o[this.cursor_++]&&128<=o[this.cursor_++]&&128<=o[this.cursor_++]&&128<=o[this.cursor_++]&&128<=o[this.cursor_++]&&goog.asserts.assert(!1),goog.asserts.assert(this.cursor_<=this.end_),s)))))},jspb.BinaryDecoder.prototype.readSignedVarint32=jspb.BinaryDecoder.prototype.readUnsignedVarint32,jspb.BinaryDecoder.prototype.readUnsignedVarint32String=function(){return this.readUnsignedVarint32().toString()},jspb.BinaryDecoder.prototype.readSignedVarint32String=function(){return this.readSignedVarint32().toString()},jspb.BinaryDecoder.prototype.readZigzagVarint32=function(){var o=this.readUnsignedVarint32();return o>>>1^-(1&o)},jspb.BinaryDecoder.prototype.readUnsignedVarint64=function(){return this.readSplitVarint64(jspb.utils.joinUint64)},jspb.BinaryDecoder.prototype.readUnsignedVarint64String=function(){return this.readSplitVarint64(jspb.utils.joinUnsignedDecimalString)},jspb.BinaryDecoder.prototype.readSignedVarint64=function(){return this.readSplitVarint64(jspb.utils.joinInt64)},jspb.BinaryDecoder.prototype.readSignedVarint64String=function(){return this.readSplitVarint64(jspb.utils.joinSignedDecimalString)},jspb.BinaryDecoder.prototype.readZigzagVarint64=function(){return this.readSplitVarint64(jspb.utils.joinZigzag64)},jspb.BinaryDecoder.prototype.readZigzagVarintHash64=function(){return this.readSplitZigzagVarint64(jspb.utils.joinHash64)},jspb.BinaryDecoder.prototype.readZigzagVarint64String=function(){return this.readSplitZigzagVarint64(jspb.utils.joinSignedDecimalString)},jspb.BinaryDecoder.prototype.readUint8=function(){var o=this.bytes_[this.cursor_+0];return this.cursor_+=1,goog.asserts.assert(this.cursor_<=this.end_),o},jspb.BinaryDecoder.prototype.readUint16=function(){var o=this.bytes_[this.cursor_+0],i=this.bytes_[this.cursor_+1];return this.cursor_+=2,goog.asserts.assert(this.cursor_<=this.end_),o<<0|i<<8},jspb.BinaryDecoder.prototype.readUint32=function(){var o=this.bytes_[this.cursor_+0],i=this.bytes_[this.cursor_+1],s=this.bytes_[this.cursor_+2],j=this.bytes_[this.cursor_+3];return this.cursor_+=4,goog.asserts.assert(this.cursor_<=this.end_),(o<<0|i<<8|s<<16|j<<24)>>>0},jspb.BinaryDecoder.prototype.readUint64=function(){var o=this.readUint32(),i=this.readUint32();return jspb.utils.joinUint64(o,i)},jspb.BinaryDecoder.prototype.readUint64String=function(){var o=this.readUint32(),i=this.readUint32();return jspb.utils.joinUnsignedDecimalString(o,i)},jspb.BinaryDecoder.prototype.readInt8=function(){var o=this.bytes_[this.cursor_+0];return this.cursor_+=1,goog.asserts.assert(this.cursor_<=this.end_),o<<24>>24},jspb.BinaryDecoder.prototype.readInt16=function(){var o=this.bytes_[this.cursor_+0],i=this.bytes_[this.cursor_+1];return this.cursor_+=2,goog.asserts.assert(this.cursor_<=this.end_),(o<<0|i<<8)<<16>>16},jspb.BinaryDecoder.prototype.readInt32=function(){var o=this.bytes_[this.cursor_+0],i=this.bytes_[this.cursor_+1],s=this.bytes_[this.cursor_+2],j=this.bytes_[this.cursor_+3];return this.cursor_+=4,goog.asserts.assert(this.cursor_<=this.end_),o<<0|i<<8|s<<16|j<<24},jspb.BinaryDecoder.prototype.readInt64=function(){var o=this.readUint32(),i=this.readUint32();return jspb.utils.joinInt64(o,i)},jspb.BinaryDecoder.prototype.readInt64String=function(){var o=this.readUint32(),i=this.readUint32();return jspb.utils.joinSignedDecimalString(o,i)},jspb.BinaryDecoder.prototype.readFloat=function(){var o=this.readUint32();return jspb.utils.joinFloat32(o,0)},jspb.BinaryDecoder.prototype.readDouble=function(){var o=this.readUint32(),i=this.readUint32();return jspb.utils.joinFloat64(o,i)},jspb.BinaryDecoder.prototype.readBool=function(){return!!this.bytes_[this.cursor_++]},jspb.BinaryDecoder.prototype.readEnum=function(){return this.readSignedVarint32()},jspb.BinaryDecoder.prototype.readString=function(o){var i=this.bytes_,s=this.cursor_;o=s+o;for(var j=[],$="";sZ)j.push(Z);else{if(192>Z)continue;if(224>Z){var et=i[s++];j.push((31&Z)<<6|63&et)}else if(240>Z){et=i[s++];var _e=i[s++];j.push((15&Z)<<12|(63&et)<<6|63&_e)}else 248>Z&&(Z=(7&Z)<<18|(63&(et=i[s++]))<<12|(63&(_e=i[s++]))<<6|63&i[s++],Z-=65536,j.push(55296+(Z>>10&1023),56320+(1023&Z)))}8192<=j.length&&($+=String.fromCharCode.apply(null,j),j.length=0)}return $+=goog.crypt.byteArrayToString(j),this.cursor_=s,$},jspb.BinaryDecoder.prototype.readStringWithLength=function(){var o=this.readUnsignedVarint32();return this.readString(o)},jspb.BinaryDecoder.prototype.readBytes=function(o){if(0>o||this.cursor_+o>this.bytes_.length)return this.error_=!0,goog.asserts.fail("Invalid byte length!"),new Uint8Array(0);var i=this.bytes_.subarray(this.cursor_,this.cursor_+o);return this.cursor_+=o,goog.asserts.assert(this.cursor_<=this.end_),i},jspb.BinaryDecoder.prototype.readVarintHash64=function(){return this.readSplitVarint64(jspb.utils.joinHash64)},jspb.BinaryDecoder.prototype.readFixedHash64=function(){var o=this.bytes_,i=this.cursor_,s=o[i+0],j=o[i+1],$=o[i+2],Z=o[i+3],et=o[i+4],_e=o[i+5],nt=o[i+6];return o=o[i+7],this.cursor_+=8,String.fromCharCode(s,j,$,Z,et,_e,nt,o)},jspb.BinaryReader=function(o,i,s){this.decoder_=jspb.BinaryDecoder.alloc(o,i,s),this.fieldCursor_=this.decoder_.getCursor(),this.nextField_=jspb.BinaryConstants.INVALID_FIELD_NUMBER,this.nextWireType_=jspb.BinaryConstants.WireType.INVALID,this.error_=!1,this.readCallbacks_=null},jspb.BinaryReader.instanceCache_=[],jspb.BinaryReader.alloc=function(o,i,s){if(jspb.BinaryReader.instanceCache_.length){var j=jspb.BinaryReader.instanceCache_.pop();return o&&j.decoder_.setBlock(o,i,s),j}return new jspb.BinaryReader(o,i,s)},jspb.BinaryReader.prototype.alloc=jspb.BinaryReader.alloc,jspb.BinaryReader.prototype.free=function(){this.decoder_.clear(),this.nextField_=jspb.BinaryConstants.INVALID_FIELD_NUMBER,this.nextWireType_=jspb.BinaryConstants.WireType.INVALID,this.error_=!1,this.readCallbacks_=null,100>jspb.BinaryReader.instanceCache_.length&&jspb.BinaryReader.instanceCache_.push(this)},jspb.BinaryReader.prototype.getFieldCursor=function(){return this.fieldCursor_},jspb.BinaryReader.prototype.getCursor=function(){return this.decoder_.getCursor()},jspb.BinaryReader.prototype.getBuffer=function(){return this.decoder_.getBuffer()},jspb.BinaryReader.prototype.getFieldNumber=function(){return this.nextField_},jspb.BinaryReader.prototype.getWireType=function(){return this.nextWireType_},jspb.BinaryReader.prototype.isDelimited=function(){return this.nextWireType_==jspb.BinaryConstants.WireType.DELIMITED},jspb.BinaryReader.prototype.isEndGroup=function(){return this.nextWireType_==jspb.BinaryConstants.WireType.END_GROUP},jspb.BinaryReader.prototype.getError=function(){return this.error_||this.decoder_.getError()},jspb.BinaryReader.prototype.setBlock=function(o,i,s){this.decoder_.setBlock(o,i,s),this.nextField_=jspb.BinaryConstants.INVALID_FIELD_NUMBER,this.nextWireType_=jspb.BinaryConstants.WireType.INVALID},jspb.BinaryReader.prototype.reset=function(){this.decoder_.reset(),this.nextField_=jspb.BinaryConstants.INVALID_FIELD_NUMBER,this.nextWireType_=jspb.BinaryConstants.WireType.INVALID},jspb.BinaryReader.prototype.advance=function(o){this.decoder_.advance(o)},jspb.BinaryReader.prototype.nextField=function(){if(this.decoder_.atEnd())return!1;if(this.getError())return goog.asserts.fail("Decoder hit an error"),!1;this.fieldCursor_=this.decoder_.getCursor();var o=this.decoder_.readUnsignedVarint32(),i=o>>>3;return(o&=7)!=jspb.BinaryConstants.WireType.VARINT&&o!=jspb.BinaryConstants.WireType.FIXED32&&o!=jspb.BinaryConstants.WireType.FIXED64&&o!=jspb.BinaryConstants.WireType.DELIMITED&&o!=jspb.BinaryConstants.WireType.START_GROUP&&o!=jspb.BinaryConstants.WireType.END_GROUP?(goog.asserts.fail("Invalid wire type: %s (at position %s)",o,this.fieldCursor_),this.error_=!0,!1):(this.nextField_=i,this.nextWireType_=o,!0)},jspb.BinaryReader.prototype.unskipHeader=function(){this.decoder_.unskipVarint(this.nextField_<<3|this.nextWireType_)},jspb.BinaryReader.prototype.skipMatchingFields=function(){var o=this.nextField_;for(this.unskipHeader();this.nextField()&&this.getFieldNumber()==o;)this.skipField();this.decoder_.atEnd()||this.unskipHeader()},jspb.BinaryReader.prototype.skipVarintField=function(){this.nextWireType_!=jspb.BinaryConstants.WireType.VARINT?(goog.asserts.fail("Invalid wire type for skipVarintField"),this.skipField()):this.decoder_.skipVarint()},jspb.BinaryReader.prototype.skipDelimitedField=function(){if(this.nextWireType_!=jspb.BinaryConstants.WireType.DELIMITED)goog.asserts.fail("Invalid wire type for skipDelimitedField"),this.skipField();else{var o=this.decoder_.readUnsignedVarint32();this.decoder_.advance(o)}},jspb.BinaryReader.prototype.skipFixed32Field=function(){this.nextWireType_!=jspb.BinaryConstants.WireType.FIXED32?(goog.asserts.fail("Invalid wire type for skipFixed32Field"),this.skipField()):this.decoder_.advance(4)},jspb.BinaryReader.prototype.skipFixed64Field=function(){this.nextWireType_!=jspb.BinaryConstants.WireType.FIXED64?(goog.asserts.fail("Invalid wire type for skipFixed64Field"),this.skipField()):this.decoder_.advance(8)},jspb.BinaryReader.prototype.skipGroup=function(){for(var o=this.nextField_;;){if(!this.nextField()){goog.asserts.fail("Unmatched start-group tag: stream EOF"),this.error_=!0;break}if(this.nextWireType_==jspb.BinaryConstants.WireType.END_GROUP){this.nextField_!=o&&(goog.asserts.fail("Unmatched end-group tag"),this.error_=!0);break}this.skipField()}},jspb.BinaryReader.prototype.skipField=function(){switch(this.nextWireType_){case jspb.BinaryConstants.WireType.VARINT:this.skipVarintField();break;case jspb.BinaryConstants.WireType.FIXED64:this.skipFixed64Field();break;case jspb.BinaryConstants.WireType.DELIMITED:this.skipDelimitedField();break;case jspb.BinaryConstants.WireType.FIXED32:this.skipFixed32Field();break;case jspb.BinaryConstants.WireType.START_GROUP:this.skipGroup();break;default:goog.asserts.fail("Invalid wire encoding for field.")}},jspb.BinaryReader.prototype.registerReadCallback=function(o,i){this.readCallbacks_===null&&(this.readCallbacks_={}),goog.asserts.assert(!this.readCallbacks_[o]),this.readCallbacks_[o]=i},jspb.BinaryReader.prototype.runReadCallback=function(o){return goog.asserts.assert(this.readCallbacks_!==null),o=this.readCallbacks_[o],goog.asserts.assert(o),o(this)},jspb.BinaryReader.prototype.readAny=function(o){this.nextWireType_=jspb.BinaryConstants.FieldTypeToWireType(o);var i=jspb.BinaryConstants.FieldType;switch(o){case i.DOUBLE:return this.readDouble();case i.FLOAT:return this.readFloat();case i.INT64:return this.readInt64();case i.UINT64:return this.readUint64();case i.INT32:return this.readInt32();case i.FIXED64:return this.readFixed64();case i.FIXED32:return this.readFixed32();case i.BOOL:return this.readBool();case i.STRING:return this.readString();case i.GROUP:goog.asserts.fail("Group field type not supported in readAny()");case i.MESSAGE:goog.asserts.fail("Message field type not supported in readAny()");case i.BYTES:return this.readBytes();case i.UINT32:return this.readUint32();case i.ENUM:return this.readEnum();case i.SFIXED32:return this.readSfixed32();case i.SFIXED64:return this.readSfixed64();case i.SINT32:return this.readSint32();case i.SINT64:return this.readSint64();case i.FHASH64:return this.readFixedHash64();case i.VHASH64:return this.readVarintHash64();default:goog.asserts.fail("Invalid field type in readAny()")}return 0},jspb.BinaryReader.prototype.readMessage=function(o,i){goog.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.DELIMITED);var s=this.decoder_.getEnd(),j=this.decoder_.readUnsignedVarint32();j=this.decoder_.getCursor()+j,this.decoder_.setEnd(j),i(o,this),this.decoder_.setCursor(j),this.decoder_.setEnd(s)},jspb.BinaryReader.prototype.readGroup=function(o,i,s){goog.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.START_GROUP),goog.asserts.assert(this.nextField_==o),s(i,this),this.error_||this.nextWireType_==jspb.BinaryConstants.WireType.END_GROUP||(goog.asserts.fail("Group submessage did not end with an END_GROUP tag"),this.error_=!0)},jspb.BinaryReader.prototype.getFieldDecoder=function(){goog.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.DELIMITED);var o=this.decoder_.readUnsignedVarint32(),i=this.decoder_.getCursor(),s=i+o;return o=jspb.BinaryDecoder.alloc(this.decoder_.getBuffer(),i,o),this.decoder_.setCursor(s),o},jspb.BinaryReader.prototype.readInt32=function(){return goog.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.VARINT),this.decoder_.readSignedVarint32()},jspb.BinaryReader.prototype.readInt32String=function(){return goog.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.VARINT),this.decoder_.readSignedVarint32String()},jspb.BinaryReader.prototype.readInt64=function(){return goog.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.VARINT),this.decoder_.readSignedVarint64()},jspb.BinaryReader.prototype.readInt64String=function(){return goog.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.VARINT),this.decoder_.readSignedVarint64String()},jspb.BinaryReader.prototype.readUint32=function(){return goog.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.VARINT),this.decoder_.readUnsignedVarint32()},jspb.BinaryReader.prototype.readUint32String=function(){return goog.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.VARINT),this.decoder_.readUnsignedVarint32String()},jspb.BinaryReader.prototype.readUint64=function(){return goog.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.VARINT),this.decoder_.readUnsignedVarint64()},jspb.BinaryReader.prototype.readUint64String=function(){return goog.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.VARINT),this.decoder_.readUnsignedVarint64String()},jspb.BinaryReader.prototype.readSint32=function(){return goog.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.VARINT),this.decoder_.readZigzagVarint32()},jspb.BinaryReader.prototype.readSint64=function(){return goog.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.VARINT),this.decoder_.readZigzagVarint64()},jspb.BinaryReader.prototype.readSint64String=function(){return goog.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.VARINT),this.decoder_.readZigzagVarint64String()},jspb.BinaryReader.prototype.readFixed32=function(){return goog.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.FIXED32),this.decoder_.readUint32()},jspb.BinaryReader.prototype.readFixed64=function(){return goog.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.FIXED64),this.decoder_.readUint64()},jspb.BinaryReader.prototype.readFixed64String=function(){return goog.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.FIXED64),this.decoder_.readUint64String()},jspb.BinaryReader.prototype.readSfixed32=function(){return goog.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.FIXED32),this.decoder_.readInt32()},jspb.BinaryReader.prototype.readSfixed32String=function(){return goog.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.FIXED32),this.decoder_.readInt32().toString()},jspb.BinaryReader.prototype.readSfixed64=function(){return goog.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.FIXED64),this.decoder_.readInt64()},jspb.BinaryReader.prototype.readSfixed64String=function(){return goog.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.FIXED64),this.decoder_.readInt64String()},jspb.BinaryReader.prototype.readFloat=function(){return goog.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.FIXED32),this.decoder_.readFloat()},jspb.BinaryReader.prototype.readDouble=function(){return goog.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.FIXED64),this.decoder_.readDouble()},jspb.BinaryReader.prototype.readBool=function(){return goog.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.VARINT),!!this.decoder_.readUnsignedVarint32()},jspb.BinaryReader.prototype.readEnum=function(){return goog.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.VARINT),this.decoder_.readSignedVarint64()},jspb.BinaryReader.prototype.readString=function(){goog.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.DELIMITED);var o=this.decoder_.readUnsignedVarint32();return this.decoder_.readString(o)},jspb.BinaryReader.prototype.readBytes=function(){goog.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.DELIMITED);var o=this.decoder_.readUnsignedVarint32();return this.decoder_.readBytes(o)},jspb.BinaryReader.prototype.readVarintHash64=function(){return goog.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.VARINT),this.decoder_.readVarintHash64()},jspb.BinaryReader.prototype.readSintHash64=function(){return goog.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.VARINT),this.decoder_.readZigzagVarintHash64()},jspb.BinaryReader.prototype.readSplitVarint64=function(o){return goog.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.VARINT),this.decoder_.readSplitVarint64(o)},jspb.BinaryReader.prototype.readSplitZigzagVarint64=function(o){return goog.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.VARINT),this.decoder_.readSplitVarint64(function(i,s){return jspb.utils.fromZigzag64(i,s,o)})},jspb.BinaryReader.prototype.readFixedHash64=function(){return goog.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.FIXED64),this.decoder_.readFixedHash64()},jspb.BinaryReader.prototype.readSplitFixed64=function(o){return goog.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.FIXED64),this.decoder_.readSplitFixed64(o)},jspb.BinaryReader.prototype.readPackedField_=function(o){goog.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.DELIMITED);var i=this.decoder_.readUnsignedVarint32();i=this.decoder_.getCursor()+i;for(var s=[];this.decoder_.getCursor()i.length?s.length:i.length;for(o.getJsPbMessageId()&&(j[0]=o.getJsPbMessageId(),$=1);$>>1|(1&this.hi)<<31)>>>0,this.hi>>>1>>>0)},jspb.arith.UInt64.prototype.leftShift=function(){return new jspb.arith.UInt64(this.lo<<1>>>0,(this.hi<<1|this.lo>>>31)>>>0)},jspb.arith.UInt64.prototype.msb=function(){return!!(2147483648&this.hi)},jspb.arith.UInt64.prototype.lsb=function(){return!!(1&this.lo)},jspb.arith.UInt64.prototype.zero=function(){return this.lo==0&&this.hi==0},jspb.arith.UInt64.prototype.add=function(o){return new jspb.arith.UInt64((this.lo+o.lo&4294967295)>>>0>>>0,((this.hi+o.hi&4294967295)>>>0)+(4294967296<=this.lo+o.lo?1:0)>>>0)},jspb.arith.UInt64.prototype.sub=function(o){return new jspb.arith.UInt64((this.lo-o.lo&4294967295)>>>0>>>0,((this.hi-o.hi&4294967295)>>>0)-(0>this.lo-o.lo?1:0)>>>0)},jspb.arith.UInt64.mul32x32=function(o,i){var s=65535&o,j=65535&i,$=i>>>16;for(i=s*j+65536*(s*$&65535)+65536*((o>>>=16)*j&65535),s=o*$+(s*$>>>16)+(o*j>>>16);4294967296<=i;)i-=4294967296,s+=1;return new jspb.arith.UInt64(i>>>0,s>>>0)},jspb.arith.UInt64.prototype.mul=function(o){var i=jspb.arith.UInt64.mul32x32(this.lo,o);return(o=jspb.arith.UInt64.mul32x32(this.hi,o)).hi=o.lo,o.lo=0,i.add(o)},jspb.arith.UInt64.prototype.div=function(o){if(o==0)return[];var i=new jspb.arith.UInt64(0,0),s=new jspb.arith.UInt64(this.lo,this.hi);o=new jspb.arith.UInt64(o,0);for(var j=new jspb.arith.UInt64(1,0);!o.msb();)o=o.leftShift(),j=j.leftShift();for(;!j.zero();)0>=o.cmp(s)&&(i=i.add(j),s=s.sub(o)),o=o.rightShift(),j=j.rightShift();return[i,s]},jspb.arith.UInt64.prototype.toString=function(){for(var o="",i=this;!i.zero();){var s=(i=i.div(10))[0];o=i[1].lo+o,i=s}return o==""&&(o="0"),o},jspb.arith.UInt64.fromString=function(o){for(var i=new jspb.arith.UInt64(0,0),s=new jspb.arith.UInt64(0,0),j=0;jo[j]||"9">>0>>>0,((this.hi+o.hi&4294967295)>>>0)+(4294967296<=this.lo+o.lo?1:0)>>>0)},jspb.arith.Int64.prototype.sub=function(o){return new jspb.arith.Int64((this.lo-o.lo&4294967295)>>>0>>>0,((this.hi-o.hi&4294967295)>>>0)-(0>this.lo-o.lo?1:0)>>>0)},jspb.arith.Int64.prototype.clone=function(){return new jspb.arith.Int64(this.lo,this.hi)},jspb.arith.Int64.prototype.toString=function(){var o=(2147483648&this.hi)!=0,i=new jspb.arith.UInt64(this.lo,this.hi);return o&&(i=new jspb.arith.UInt64(0,0).sub(i)),(o?"-":"")+i.toString()},jspb.arith.Int64.fromString=function(o){var i=0>>7|i<<25)>>>0,i>>>=7;this.buffer_.push(o)},jspb.BinaryEncoder.prototype.writeSplitFixed64=function(o,i){goog.asserts.assert(o==Math.floor(o)),goog.asserts.assert(i==Math.floor(i)),goog.asserts.assert(0<=o&&o>>=7;this.buffer_.push(o)},jspb.BinaryEncoder.prototype.writeSignedVarint32=function(o){if(goog.asserts.assert(o==Math.floor(o)),goog.asserts.assert(o>=-jspb.BinaryConstants.TWO_TO_31&&oi;i++)this.buffer_.push(127&o|128),o>>=7;this.buffer_.push(1)}},jspb.BinaryEncoder.prototype.writeUnsignedVarint64=function(o){goog.asserts.assert(o==Math.floor(o)),goog.asserts.assert(0<=o&&o=-jspb.BinaryConstants.TWO_TO_63&&o=-jspb.BinaryConstants.TWO_TO_31&&o>31)>>>0)},jspb.BinaryEncoder.prototype.writeZigzagVarint64=function(o){goog.asserts.assert(o==Math.floor(o)),goog.asserts.assert(o>=-jspb.BinaryConstants.TWO_TO_63&&o>>0,j>>>0)})},jspb.BinaryEncoder.prototype.writeUint8=function(o){goog.asserts.assert(o==Math.floor(o)),goog.asserts.assert(0<=o&&256>o),this.buffer_.push(o>>>0&255)},jspb.BinaryEncoder.prototype.writeUint16=function(o){goog.asserts.assert(o==Math.floor(o)),goog.asserts.assert(0<=o&&65536>o),this.buffer_.push(o>>>0&255),this.buffer_.push(o>>>8&255)},jspb.BinaryEncoder.prototype.writeUint32=function(o){goog.asserts.assert(o==Math.floor(o)),goog.asserts.assert(0<=o&&o>>0&255),this.buffer_.push(o>>>8&255),this.buffer_.push(o>>>16&255),this.buffer_.push(o>>>24&255)},jspb.BinaryEncoder.prototype.writeUint64=function(o){goog.asserts.assert(o==Math.floor(o)),goog.asserts.assert(0<=o&&oo),this.buffer_.push(o>>>0&255)},jspb.BinaryEncoder.prototype.writeInt16=function(o){goog.asserts.assert(o==Math.floor(o)),goog.asserts.assert(-32768<=o&&32768>o),this.buffer_.push(o>>>0&255),this.buffer_.push(o>>>8&255)},jspb.BinaryEncoder.prototype.writeInt32=function(o){goog.asserts.assert(o==Math.floor(o)),goog.asserts.assert(o>=-jspb.BinaryConstants.TWO_TO_31&&o>>0&255),this.buffer_.push(o>>>8&255),this.buffer_.push(o>>>16&255),this.buffer_.push(o>>>24&255)},jspb.BinaryEncoder.prototype.writeInt64=function(o){goog.asserts.assert(o==Math.floor(o)),goog.asserts.assert(o>=-jspb.BinaryConstants.TWO_TO_63&&o=-jspb.BinaryConstants.TWO_TO_63&&+o=-jspb.BinaryConstants.FLOAT32_MAX&&o<=jspb.BinaryConstants.FLOAT32_MAX),jspb.utils.splitFloat32(o),this.writeUint32(jspb.utils.split64Low)},jspb.BinaryEncoder.prototype.writeDouble=function(o){goog.asserts.assert(1/0===o||-1/0===o||isNaN(o)||o>=-jspb.BinaryConstants.FLOAT64_MAX&&o<=jspb.BinaryConstants.FLOAT64_MAX),jspb.utils.splitFloat64(o),this.writeUint32(jspb.utils.split64Low),this.writeUint32(jspb.utils.split64High)},jspb.BinaryEncoder.prototype.writeBool=function(o){goog.asserts.assert(typeof o=="boolean"||typeof o=="number"),this.buffer_.push(o?1:0)},jspb.BinaryEncoder.prototype.writeEnum=function(o){goog.asserts.assert(o==Math.floor(o)),goog.asserts.assert(o>=-jspb.BinaryConstants.TWO_TO_31&&oj)this.buffer_.push(j);else if(2048>j)this.buffer_.push(j>>6|192),this.buffer_.push(63&j|128);else if(65536>j)if(55296<=j&&56319>=j&&s+1=$&&(j=1024*(j-55296)+$-56320+65536,this.buffer_.push(j>>18|240),this.buffer_.push(j>>12&63|128),this.buffer_.push(j>>6&63|128),this.buffer_.push(63&j|128),s++)}else this.buffer_.push(j>>12|224),this.buffer_.push(j>>6&63|128),this.buffer_.push(63&j|128)}return this.buffer_.length-i},jspb.BinaryWriter=function(){this.blocks_=[],this.totalLength_=0,this.encoder_=new jspb.BinaryEncoder,this.bookmarks_=[]},jspb.BinaryWriter.prototype.appendUint8Array_=function(o){var i=this.encoder_.end();this.blocks_.push(i),this.blocks_.push(o),this.totalLength_+=i.length+o.length},jspb.BinaryWriter.prototype.beginDelimited_=function(o){return this.writeFieldHeader_(o,jspb.BinaryConstants.WireType.DELIMITED),o=this.encoder_.end(),this.blocks_.push(o),this.totalLength_+=o.length,o.push(this.totalLength_),o},jspb.BinaryWriter.prototype.endDelimited_=function(o){var i=o.pop();for(i=this.totalLength_+this.encoder_.length()-i,goog.asserts.assert(0<=i);127>>=7,this.totalLength_++;o.push(i),this.totalLength_++},jspb.BinaryWriter.prototype.writeSerializedMessage=function(o,i,s){this.appendUint8Array_(o.subarray(i,s))},jspb.BinaryWriter.prototype.maybeWriteSerializedMessage=function(o,i,s){o!=null&&i!=null&&s!=null&&this.writeSerializedMessage(o,i,s)},jspb.BinaryWriter.prototype.reset=function(){this.blocks_=[],this.encoder_.end(),this.totalLength_=0,this.bookmarks_=[]},jspb.BinaryWriter.prototype.getResultBuffer=function(){goog.asserts.assert(this.bookmarks_.length==0);for(var o=new Uint8Array(this.totalLength_+this.encoder_.length()),i=this.blocks_,s=i.length,j=0,$=0;$=-jspb.BinaryConstants.TWO_TO_31&&i=-jspb.BinaryConstants.TWO_TO_31&&i=-jspb.BinaryConstants.TWO_TO_63&&i=-jspb.BinaryConstants.TWO_TO_31&&i=-jspb.BinaryConstants.TWO_TO_63&&i=-jspb.BinaryConstants.TWO_TO_31&&i=-jspb.BinaryConstants.TWO_TO_63&&i=-jspb.BinaryConstants.TWO_TO_31&&i>>0,Z>>>0)})},jspb.BinaryWriter.prototype.writeRepeatedInt32=function(o,i){if(i!=null)for(var s=0;s>>0,_e>>>0)});this.endDelimited_(o)}},jspb.BinaryWriter.prototype.writePackedInt64String=function(o,i){if(i!=null&&i.length){o=this.beginDelimited_(o);for(var s=0;s>>((3&et)<<3)&255;return $}}},function(o,i){for(var s=[],j=0;j<256;++j)s[j]=(j+256).toString(16).substr(1);o.exports=function($,Z){var et=Z||0,_e=s;return[_e[$[et++]],_e[$[et++]],_e[$[et++]],_e[$[et++]],"-",_e[$[et++]],_e[$[et++]],"-",_e[$[et++]],_e[$[et++]],"-",_e[$[et++]],_e[$[et++]],"-",_e[$[et++]],_e[$[et++]],_e[$[et++]],_e[$[et++]],_e[$[et++]],_e[$[et++]]].join("")}},function(o,i,s){(function(j){const $=s(210),Z=s(49),et=(_e,nt)=>({from:et,EnvVarError:s(49),get:function(rt){if(!rt)return _e;if(arguments.length>1)throw new Z("It looks like you passed more than one argument to env.get(). Since env-var@6.0.0 this is no longer supported. To set a default value use env.get(TARGET).default(DEFAULT)");return $(_e,rt,nt||{})}});o.exports=et(j.env)}).call(this,s(2))},function(o,i,s){var j=s(10),$=s(71),Z=s(3).LEVEL,et=o.exports=function(){var _e=this,nt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};$.call(this,{objectMode:!0,highWaterMark:nt.highWaterMark}),this.format=nt.format,this.level=nt.level,this.handleExceptions=nt.handleExceptions,this.silent=nt.silent,nt.log&&(this.log=nt.log),nt.logv&&(this.logv=nt.logv),nt.close&&(this.close=nt.close),this.once("pipe",function(rt){_e.levels=rt.levels,_e.parent=rt}),this.once("unpipe",function(rt){rt===_e.parent&&(_e.parent=null,_e.close&&_e.close())})};j.inherits(et,$),et.prototype._write=function(_e,nt,rt){if(this.silent||_e.exception===!0&&!this.handleExceptions)return rt(null);var at=this.level||this.parent&&this.parent.level;if(!at||this.levels[at]>=this.levels[_e[Z]]){if(_e&&!this.format)return this.log(_e,rt);var ft=void 0,st=void 0;try{st=this.format.transform(Object.assign({},_e),this.format.options)}catch(lt){ft=lt}if(ft||!st){if(rt(),ft)throw ft;return}return this.log(st,rt)}return rt(null)},et.prototype._writev=function(_e,nt){if(this.logv){var rt=_e.filter(this._accept,this);return rt.length?this.logv(rt,nt):nt(null)}for(var at=0;at<_e.length;at++)if(this._accept(_e[at]))if(!_e[at].chunk||this.format){var ft=void 0,st=void 0;try{st=this.format.transform(Object.assign({},_e[at].chunk),this.format.options)}catch(lt){ft=lt}if(ft||!st){if(_e[at].callback(),ft)throw nt(null),ft}else this.log(st,_e[at].callback)}else this.log(_e[at].chunk,_e[at].callback);return nt(null)},et.prototype._accept=function(_e){var nt=_e.chunk;if(this.silent)return!1;var rt=this.level||this.parent&&this.parent.level;return!(nt.exception!==!0&&rt&&!(this.levels[rt]>=this.levels[nt[Z]])||!this.handleExceptions&&nt.exception===!0)},et.prototype._nop=function(){}},function(o,i,s){const{AbortController:j,AbortSignal:$}=typeof self!="undefined"?self:typeof window!="undefined"?window:void 0;o.exports=j,o.exports.AbortSignal=$,o.exports.default=j},function(o,i){var s=function(j){function $(){this.fetch=!1,this.DOMException=j.DOMException}return $.prototype=j,new $}(typeof self!="undefined"?self:this);(function(j){(function($){var Z="URLSearchParams"in j,et="Symbol"in j&&"iterator"in Symbol,_e="FileReader"in j&&"Blob"in j&&function(){try{return new Blob,!0}catch{return!1}}(),nt="FormData"in j,rt="ArrayBuffer"in j;if(rt)var at=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],ft=ArrayBuffer.isView||function(Ct){return Ct&&at.indexOf(Object.prototype.toString.call(Ct))>-1};function st(Ct){if(typeof Ct!="string"&&(Ct=String(Ct)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(Ct))throw new TypeError("Invalid character in header field name");return Ct.toLowerCase()}function lt(Ct){return typeof Ct!="string"&&(Ct=String(Ct)),Ct}function it(Ct){var St={next:function(){var kt=Ct.shift();return{done:kt===void 0,value:kt}}};return et&&(St[Symbol.iterator]=function(){return St}),St}function ut(Ct){this.map={},Ct instanceof ut?Ct.forEach(function(St,kt){this.append(kt,St)},this):Array.isArray(Ct)?Ct.forEach(function(St){this.append(St[0],St[1])},this):Ct&&Object.getOwnPropertyNames(Ct).forEach(function(St){this.append(St,Ct[St])},this)}function pt(Ct){if(Ct.bodyUsed)return Promise.reject(new TypeError("Already read"));Ct.bodyUsed=!0}function bt(Ct){return new Promise(function(St,kt){Ct.onload=function(){St(Ct.result)},Ct.onerror=function(){kt(Ct.error)}})}function xt(Ct){var St=new FileReader,kt=bt(St);return St.readAsArrayBuffer(Ct),kt}function vt(Ct){if(Ct.slice)return Ct.slice(0);var St=new Uint8Array(Ct.byteLength);return St.set(new Uint8Array(Ct)),St.buffer}function mt(){return this.bodyUsed=!1,this._initBody=function(Ct){var St;this._bodyInit=Ct,Ct?typeof Ct=="string"?this._bodyText=Ct:_e&&Blob.prototype.isPrototypeOf(Ct)?this._bodyBlob=Ct:nt&&FormData.prototype.isPrototypeOf(Ct)?this._bodyFormData=Ct:Z&&URLSearchParams.prototype.isPrototypeOf(Ct)?this._bodyText=Ct.toString():rt&&_e&&(St=Ct)&&DataView.prototype.isPrototypeOf(St)?(this._bodyArrayBuffer=vt(Ct.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):rt&&(ArrayBuffer.prototype.isPrototypeOf(Ct)||ft(Ct))?this._bodyArrayBuffer=vt(Ct):this._bodyText=Ct=Object.prototype.toString.call(Ct):this._bodyText="",this.headers.get("content-type")||(typeof Ct=="string"?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):Z&&URLSearchParams.prototype.isPrototypeOf(Ct)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},_e&&(this.blob=function(){var Ct=pt(this);if(Ct)return Ct;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?pt(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(xt)}),this.text=function(){var Ct,St,kt,Lt=pt(this);if(Lt)return Lt;if(this._bodyBlob)return Ct=this._bodyBlob,St=new FileReader,kt=bt(St),St.readAsText(Ct),kt;if(this._bodyArrayBuffer)return Promise.resolve(function(Mt){for(var Tt=new Uint8Array(Mt),Ot=new Array(Tt.length),At=0;At-1?Lt:kt),this.mode=St.mode||this.mode||null,this.signal=St.signal||this.signal,this.referrer=null,(this.method==="GET"||this.method==="HEAD")&&Mt)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(Mt)}function Ft(Ct){var St=new FormData;return Ct.trim().split("&").forEach(function(kt){if(kt){var Lt=kt.split("="),Mt=Lt.shift().replace(/\+/g," "),Tt=Lt.join("=").replace(/\+/g," ");St.append(decodeURIComponent(Mt),decodeURIComponent(Tt))}}),St}function Ut(Ct,St){St||(St={}),this.type="default",this.status=St.status===void 0?200:St.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in St?St.statusText:"OK",this.headers=new ut(St.headers),this.url=St.url||"",this._initBody(Ct)}Rt.prototype.clone=function(){return new Rt(this,{body:this._bodyInit})},mt.call(Rt.prototype),mt.call(Ut.prototype),Ut.prototype.clone=function(){return new Ut(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new ut(this.headers),url:this.url})},Ut.error=function(){var Ct=new Ut(null,{status:0,statusText:""});return Ct.type="error",Ct};var yt=[301,302,303,307,308];Ut.redirect=function(Ct,St){if(yt.indexOf(St)===-1)throw new RangeError("Invalid status code");return new Ut(null,{status:St,headers:{location:Ct}})},$.DOMException=j.DOMException;try{new $.DOMException}catch{$.DOMException=function(St,kt){this.message=St,this.name=kt;var Lt=Error(St);this.stack=Lt.stack},$.DOMException.prototype=Object.create(Error.prototype),$.DOMException.prototype.constructor=$.DOMException}function ht(Ct,St){return new Promise(function(kt,Lt){var Mt=new Rt(Ct,St);if(Mt.signal&&Mt.signal.aborted)return Lt(new $.DOMException("Aborted","AbortError"));var Tt=new XMLHttpRequest;function Ot(){Tt.abort()}Tt.onload=function(){var At,wt,gt={status:Tt.status,statusText:Tt.statusText,headers:(At=Tt.getAllResponseHeaders()||"",wt=new ut,At.replace(/\r?\n[\t ]+/g," ").split(/\r?\n/).forEach(function(Bt){var Gt=Bt.split(":"),Kt=Gt.shift().trim();if(Kt){var Zt=Gt.join(":").trim();wt.append(Kt,Zt)}}),wt)};gt.url="responseURL"in Tt?Tt.responseURL:gt.headers.get("X-Request-URL");var Nt="response"in Tt?Tt.response:Tt.responseText;kt(new Ut(Nt,gt))},Tt.onerror=function(){Lt(new TypeError("Network request failed"))},Tt.ontimeout=function(){Lt(new TypeError("Network request failed"))},Tt.onabort=function(){Lt(new $.DOMException("Aborted","AbortError"))},Tt.open(Mt.method,Mt.url,!0),Mt.credentials==="include"?Tt.withCredentials=!0:Mt.credentials==="omit"&&(Tt.withCredentials=!1),"responseType"in Tt&&_e&&(Tt.responseType="blob"),Mt.headers.forEach(function(At,wt){Tt.setRequestHeader(wt,At)}),Mt.signal&&(Mt.signal.addEventListener("abort",Ot),Tt.onreadystatechange=function(){Tt.readyState===4&&Mt.signal.removeEventListener("abort",Ot)}),Tt.send(Mt._bodyInit===void 0?null:Mt._bodyInit)})}ht.polyfill=!0,j.fetch||(j.fetch=ht,j.Headers=ut,j.Request=Rt,j.Response=Ut),$.Headers=ut,$.Request=Rt,$.Response=Ut,$.fetch=ht})({})})(s),delete s.fetch.polyfill,(i=s.fetch).default=s.fetch,i.fetch=s.fetch,i.Headers=s.Headers,i.Request=s.Request,i.Response=s.Response,o.exports=i},function(o,i,s){const j=s(222),$=Symbol("max"),Z=Symbol("length"),et=Symbol("lengthCalculator"),_e=Symbol("allowStale"),nt=Symbol("maxAge"),rt=Symbol("dispose"),at=Symbol("noDisposeOnSet"),ft=Symbol("lruList"),st=Symbol("cache"),lt=Symbol("updateAgeOnGet"),it=()=>1,ut=(ct,Rt,Ft)=>{const Ut=ct[st].get(Rt);if(Ut){const yt=Ut.value;if(pt(ct,yt)){if(xt(ct,Ut),!ct[_e])return}else Ft&&(ct[lt]&&(Ut.value.now=Date.now()),ct[ft].unshiftNode(Ut));return yt.value}},pt=(ct,Rt)=>{if(!Rt||!Rt.maxAge&&!ct[nt])return!1;const Ft=Date.now()-Rt.now;return Rt.maxAge?Ft>Rt.maxAge:ct[nt]&&Ft>ct[nt]},bt=ct=>{if(ct[Z]>ct[$])for(let Rt=ct[ft].tail;ct[Z]>ct[$]&&Rt!==null;){const Ft=Rt.prev;xt(ct,Rt),Rt=Ft}},xt=(ct,Rt)=>{if(Rt){const Ft=Rt.value;ct[rt]&&ct[rt](Ft.key,Ft.value),ct[Z]-=Ft.length,ct[st].delete(Ft.key),ct[ft].removeNode(Rt)}};class vt{constructor(Rt,Ft,Ut,yt,ht){this.key=Rt,this.value=Ft,this.length=Ut,this.now=yt,this.maxAge=ht||0}}const mt=(ct,Rt,Ft,Ut)=>{let yt=Ft.value;pt(ct,yt)&&(xt(ct,Ft),ct[_e]||(yt=void 0)),yt&&Rt.call(Ut,yt.value,yt.key,ct)};o.exports=class{constructor(ct){if(typeof ct=="number"&&(ct={max:ct}),ct||(ct={}),ct.max&&(typeof ct.max!="number"||ct.max<0))throw new TypeError("max must be a non-negative number");this[$]=ct.max||1/0;const Rt=ct.length||it;if(this[et]=typeof Rt!="function"?it:Rt,this[_e]=ct.stale||!1,ct.maxAge&&typeof ct.maxAge!="number")throw new TypeError("maxAge must be a number");this[nt]=ct.maxAge||0,this[rt]=ct.dispose,this[at]=ct.noDisposeOnSet||!1,this[lt]=ct.updateAgeOnGet||!1,this.reset()}set max(ct){if(typeof ct!="number"||ct<0)throw new TypeError("max must be a non-negative number");this[$]=ct||1/0,bt(this)}get max(){return this[$]}set allowStale(ct){this[_e]=!!ct}get allowStale(){return this[_e]}set maxAge(ct){if(typeof ct!="number")throw new TypeError("maxAge must be a non-negative number");this[nt]=ct,bt(this)}get maxAge(){return this[nt]}set lengthCalculator(ct){typeof ct!="function"&&(ct=it),ct!==this[et]&&(this[et]=ct,this[Z]=0,this[ft].forEach(Rt=>{Rt.length=this[et](Rt.value,Rt.key),this[Z]+=Rt.length})),bt(this)}get lengthCalculator(){return this[et]}get length(){return this[Z]}get itemCount(){return this[ft].length}rforEach(ct,Rt){Rt=Rt||this;for(let Ft=this[ft].tail;Ft!==null;){const Ut=Ft.prev;mt(this,ct,Ft,Rt),Ft=Ut}}forEach(ct,Rt){Rt=Rt||this;for(let Ft=this[ft].head;Ft!==null;){const Ut=Ft.next;mt(this,ct,Ft,Rt),Ft=Ut}}keys(){return this[ft].toArray().map(ct=>ct.key)}values(){return this[ft].toArray().map(ct=>ct.value)}reset(){this[rt]&&this[ft]&&this[ft].length&&this[ft].forEach(ct=>this[rt](ct.key,ct.value)),this[st]=new Map,this[ft]=new j,this[Z]=0}dump(){return this[ft].map(ct=>!pt(this,ct)&&{k:ct.key,v:ct.value,e:ct.now+(ct.maxAge||0)}).toArray().filter(ct=>ct)}dumpLru(){return this[ft]}set(ct,Rt,Ft){if((Ft=Ft||this[nt])&&typeof Ft!="number")throw new TypeError("maxAge must be a number");const Ut=Ft?Date.now():0,yt=this[et](Rt,ct);if(this[st].has(ct)){if(yt>this[$])return xt(this,this[st].get(ct)),!1;const Ct=this[st].get(ct).value;return this[rt]&&(this[at]||this[rt](ct,Ct.value)),Ct.now=Ut,Ct.maxAge=Ft,Ct.value=Rt,this[Z]+=yt-Ct.length,Ct.length=yt,this.get(ct),bt(this),!0}const ht=new vt(ct,Rt,yt,Ut,Ft);return ht.length>this[$]?(this[rt]&&this[rt](ct,Rt),!1):(this[Z]+=ht.length,this[ft].unshift(ht),this[st].set(ct,this[ft].head),bt(this),!0)}has(ct){if(!this[st].has(ct))return!1;const Rt=this[st].get(ct).value;return!pt(this,Rt)}get(ct){return ut(this,ct,!0)}peek(ct){return ut(this,ct,!1)}pop(){const ct=this[ft].tail;return ct?(xt(this,ct),ct.value):null}del(ct){xt(this,this[st].get(ct))}load(ct){this.reset();const Rt=Date.now();for(let Ft=ct.length-1;Ft>=0;Ft--){const Ut=ct[Ft],yt=Ut.e||0;if(yt===0)this.set(Ut.k,Ut.v);else{const ht=yt-Rt;ht>0&&this.set(Ut.k,Ut.v,ht)}}}prune(){this[st].forEach((ct,Rt)=>ut(this,Rt,!1))}}},function(o,i,s){var j=s(225),$=s(226),Z=$;Z.v1=j,Z.v4=$,o.exports=Z},function(o,i,s){var j=s(37).Colorizer;o.exports=function($){return j.addColors($.colors||$),$}},function(o,i,s){var j={};o.exports=j,j.themes={};var $=s(10),Z=j.styles=s(108),et=Object.defineProperties,_e=new RegExp(/[\r\n]+/g);j.supportsColor=s(109).supportsColor,j.enabled===void 0&&(j.enabled=j.supportsColor()!==!1),j.enable=function(){j.enabled=!0},j.disable=function(){j.enabled=!1},j.stripColors=j.strip=function(pt){return(""+pt).replace(/\x1B\[\d+m/g,"")},j.stylize=function(pt,bt){return j.enabled?Z[bt].open+pt+Z[bt].close:pt+""};var nt=/[|\\{}()[\]^$+*?.]/g;function rt(pt){var bt=function xt(){return lt.apply(xt,arguments)};return bt._styles=pt,bt.__proto__=st,bt}var at,ft=(at={},Z.grey=Z.gray,Object.keys(Z).forEach(function(pt){Z[pt].closeRe=new RegExp(function(bt){if(typeof bt!="string")throw new TypeError("Expected a string");return bt.replace(nt,"\\$&")}(Z[pt].close),"g"),at[pt]={get:function(){return rt(this._styles.concat(pt))}}}),at),st=et(function(){},ft);function lt(){var pt=Array.prototype.slice.call(arguments),bt=pt.map(function(Rt){return Rt!==void 0&&Rt.constructor===String?Rt:$.inspect(Rt)}).join(" ");if(!j.enabled||!bt)return bt;for(var xt=bt.indexOf(` +`)!=-1,vt=this._styles,mt=vt.length;mt--;){var ct=Z[vt[mt]];bt=ct.open+bt.replace(ct.closeRe,ct.open)+ct.close,xt&&(bt=bt.replace(_e,function(Rt){return ct.close+Rt+ct.open}))}return bt}j.setTheme=function(pt){if(typeof pt!="string")for(var bt in pt)(function(xt){j[xt]=function(vt){if(typeof pt[xt]=="object"){var mt=vt;for(var ct in pt[xt])mt=j[pt[xt][ct]](mt);return mt}return j[pt[xt]](vt)}})(bt);else console.log("colors.setTheme now only accepts an object, not a string. If you are trying to set a theme from a file, it is now your (the caller's) responsibility to require the file. The old syntax looked like colors.setTheme(__dirname + '/../themes/generic-logging.js'); The new syntax looks like colors.setTheme(require(__dirname + '/../themes/generic-logging.js'));")};var it=function(pt,bt){var xt=bt.split("");return(xt=xt.map(pt)).join("")};for(var ut in j.trap=s(111),j.zalgo=s(112),j.maps={},j.maps.america=s(113)(j),j.maps.zebra=s(114)(j),j.maps.rainbow=s(115)(j),j.maps.random=s(116)(j),j.maps)(function(pt){j[pt]=function(bt){return it(j.maps[pt],bt)}})(ut);et(j,function(){var pt={};return Object.keys(ft).forEach(function(bt){pt[bt]={get:function(){return rt([bt])}}}),pt}())},function(o,i){o.exports=function(s){return s&&typeof s=="object"&&typeof s.copy=="function"&&typeof s.fill=="function"&&typeof s.readUInt8=="function"}},function(o,i){typeof Object.create=="function"?o.exports=function(s,j){s.super_=j,s.prototype=Object.create(j.prototype,{constructor:{value:s,enumerable:!1,writable:!0,configurable:!0}})}:o.exports=function(s,j){s.super_=j;var $=function(){};$.prototype=j.prototype,s.prototype=new $,s.prototype.constructor=s}},function(o,i){var s={};o.exports=s;var j={reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29],black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],gray:[90,39],grey:[90,39],bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],blackBG:[40,49],redBG:[41,49],greenBG:[42,49],yellowBG:[43,49],blueBG:[44,49],magentaBG:[45,49],cyanBG:[46,49],whiteBG:[47,49]};Object.keys(j).forEach(function($){var Z=j[$],et=s[$]=[];et.open="\x1B["+Z[0]+"m",et.close="\x1B["+Z[1]+"m"})},function(o,i,s){(function(j){var $=s(15),Z=s(110),et=j.env,_e=void 0;function nt(rt){return function(at){return at!==0&&{level:at,hasBasic:!0,has256:at>=2,has16m:at>=3}}(function(at){if(_e===!1)return 0;if(Z("color=16m")||Z("color=full")||Z("color=truecolor"))return 3;if(Z("color=256"))return 2;if(at&&!at.isTTY&&_e!==!0)return 0;var ft=_e?1:0;if(j.platform==="win32"){var st=$.release().split(".");return Number(j.versions.node.split(".")[0])>=8&&Number(st[0])>=10&&Number(st[2])>=10586?Number(st[2])>=14931?3:2:1}if("CI"in et)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI"].some(function(it){return it in et})||et.CI_NAME==="codeship"?1:ft;if("TEAMCITY_VERSION"in et)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(et.TEAMCITY_VERSION)?1:0;if("TERM_PROGRAM"in et){var lt=parseInt((et.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(et.TERM_PROGRAM){case"iTerm.app":return lt>=3?3:2;case"Hyper":return 3;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test("xterm-256color")?2:/^screen|^xterm|^vt100|^rxvt|color|ansi|cygwin|linux/i.test("xterm-256color")||"COLORTERM"in et?1:ft}(rt))}Z("no-color")||Z("no-colors")||Z("color=false")?_e=!1:(Z("color")||Z("colors")||Z("color=true")||Z("color=always"))&&(_e=!0),"FORCE_COLOR"in et&&(_e=et.FORCE_COLOR.length===0||parseInt(et.FORCE_COLOR,10)!==0),o.exports={supportsColor:nt,stdout:nt(j.stdout),stderr:nt(j.stderr)}}).call(this,s(2))},function(o,i,s){(function(j){o.exports=function($,Z){var et=(Z=Z||j.argv).indexOf("--"),_e=/^-{1,2}/.test($)?"":"--",nt=Z.indexOf(_e+$);return nt!==-1&&(et===-1||nt0&&arguments[0]!==void 0?arguments[0]:{};j(this,ft),it.levels||(it.levels=nt.npm.levels),this.colorizer=new Z(it),this.padder=new et(it),this.options=it}var st,lt;return st=ft,(lt=[{key:"transform",value:function(it,ut){return this.colorizer.transform(this.padder.transform(it,ut),ut),it[rt]="".concat(it.level,":").concat(it.message),it}}])&&$(st.prototype,lt),ft}();o.exports=function(ft){return new at(ft)},o.exports.Format=at},function(o,i,s){var j=s(9);function $(et){if(et.every(Z))return function(_e){for(var nt=_e,rt=0;rt1&&arguments[1]!==void 0?arguments[1]:{};return nt[Z]=(rt.stable?et.stableStringify:et)(nt,rt.replacer||_e,rt.space),nt})}).call(this,s(4).Buffer)},function(o,i,s){i.byteLength=function(ft){var st=rt(ft),lt=st[0],it=st[1];return 3*(lt+it)/4-it},i.toByteArray=function(ft){for(var st,lt=rt(ft),it=lt[0],ut=lt[1],pt=new Z(function(mt,ct,Rt){return 3*(ct+Rt)/4-Rt}(0,it,ut)),bt=0,xt=ut>0?it-4:it,vt=0;vt>16&255,pt[bt++]=st>>8&255,pt[bt++]=255&st;return ut===2&&(st=$[ft.charCodeAt(vt)]<<2|$[ft.charCodeAt(vt+1)]>>4,pt[bt++]=255&st),ut===1&&(st=$[ft.charCodeAt(vt)]<<10|$[ft.charCodeAt(vt+1)]<<4|$[ft.charCodeAt(vt+2)]>>2,pt[bt++]=st>>8&255,pt[bt++]=255&st),pt},i.fromByteArray=function(ft){for(var st,lt=ft.length,it=lt%3,ut=[],pt=0,bt=lt-it;ptbt?bt:pt+16383));return it===1?(st=ft[lt-1],ut.push(j[st>>2]+j[st<<4&63]+"==")):it===2&&(st=(ft[lt-2]<<8)+ft[lt-1],ut.push(j[st>>10]+j[st>>4&63]+j[st<<2&63]+"=")),ut.join("")};for(var j=[],$=[],Z=typeof Uint8Array!="undefined"?Uint8Array:Array,et="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",_e=0,nt=et.length;_e0)throw new Error("Invalid string. Length must be a multiple of 4");var lt=ft.indexOf("=");return lt===-1&&(lt=st),[lt,lt===st?0:4-lt%4]}function at(ft,st,lt){for(var it,ut,pt=[],bt=st;bt>18&63]+j[ut>>12&63]+j[ut>>6&63]+j[63&ut]);return pt.join("")}$["-".charCodeAt(0)]=62,$["_".charCodeAt(0)]=63},function(o,i){i.read=function(s,j,$,Z,et){var _e,nt,rt=8*et-Z-1,at=(1<>1,st=-7,lt=$?et-1:0,it=$?-1:1,ut=s[j+lt];for(lt+=it,_e=ut&(1<<-st)-1,ut>>=-st,st+=rt;st>0;_e=256*_e+s[j+lt],lt+=it,st-=8);for(nt=_e&(1<<-st)-1,_e>>=-st,st+=Z;st>0;nt=256*nt+s[j+lt],lt+=it,st-=8);if(_e===0)_e=1-ft;else{if(_e===at)return nt?NaN:1/0*(ut?-1:1);nt+=Math.pow(2,Z),_e-=ft}return(ut?-1:1)*nt*Math.pow(2,_e-Z)},i.write=function(s,j,$,Z,et,_e){var nt,rt,at,ft=8*_e-et-1,st=(1<>1,it=et===23?Math.pow(2,-24)-Math.pow(2,-77):0,ut=Z?0:_e-1,pt=Z?1:-1,bt=j<0||j===0&&1/j<0?1:0;for(j=Math.abs(j),isNaN(j)||j===1/0?(rt=isNaN(j)?1:0,nt=st):(nt=Math.floor(Math.log(j)/Math.LN2),j*(at=Math.pow(2,-nt))<1&&(nt--,at*=2),(j+=nt+lt>=1?it/at:it*Math.pow(2,1-lt))*at>=2&&(nt++,at/=2),nt+lt>=st?(rt=0,nt=st):nt+lt>=1?(rt=(j*at-1)*Math.pow(2,et),nt+=lt):(rt=j*Math.pow(2,lt-1)*Math.pow(2,et),nt=0));et>=8;s[$+ut]=255&rt,ut+=pt,rt/=256,et-=8);for(nt=nt<0;s[$+ut]=255&nt,ut+=pt,nt/=256,ft-=8);s[$+ut-pt]|=128*bt}},function(o,i,s){var j=s(9);o.exports=j(function($,Z){return Z.message?($.message="[".concat(Z.label,"] ").concat($.message),$):($.label=Z.label,$)})},function(o,i,s){var j=s(9),$=s(3).MESSAGE,Z=s(31);o.exports=j(function(et){var _e={};return et.message&&(_e["@message"]=et.message,delete et.message),et.timestamp&&(_e["@timestamp"]=et.timestamp,delete et.timestamp),_e["@fields"]=et,et[$]=Z(_e),et})},function(o,i,s){var j=s(9);function $(et,_e,nt){var rt,at,ft,st=_e.reduce(function(it,ut){return it[ut]=et[ut],delete et[ut],it},{}),lt=Object.keys(et).reduce(function(it,ut){return it[ut]=et[ut],delete et[ut],it},{});return Object.assign(et,st,(ft=lt,(at=nt)in(rt={})?Object.defineProperty(rt,at,{value:ft,enumerable:!0,configurable:!0,writable:!0}):rt[at]=ft,rt)),et}function Z(et,_e,nt){return et[nt]=_e.reduce(function(rt,at){return rt[at]=et[at],delete et[at],rt},{}),et}o.exports=j(function(et){var _e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},nt="metadata";_e.key&&(nt=_e.key);var rt=[];return _e.fillExcept||_e.fillWith||(rt.push("level"),rt.push("message")),_e.fillExcept&&(rt=_e.fillExcept),rt.length>0?$(et,rt,nt):_e.fillWith?Z(et,_e.fillWith,nt):et})},function(o,i,s){var j=s(10).inspect,$=s(9),Z=s(3),et=Z.LEVEL,_e=Z.MESSAGE,nt=Z.SPLAT;o.exports=$(function(rt){var at=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},ft=Object.assign({},rt);return delete ft[et],delete ft[_e],delete ft[nt],rt[_e]=j(ft,!1,at.depth||null,at.colorize),rt})},function(o,i,s){function j(et,_e){for(var nt=0;nt<_e.length;nt++){var rt=_e[nt];rt.enumerable=rt.enumerable||!1,rt.configurable=!0,"value"in rt&&(rt.writable=!0),Object.defineProperty(et,rt.key,rt)}}var $=s(3).MESSAGE,Z=function(){function et(rt){(function(at,ft){if(!(at instanceof ft))throw new TypeError("Cannot call a class as a function")})(this,et),this.template=rt}var _e,nt;return _e=et,(nt=[{key:"transform",value:function(rt){return rt[$]=this.template(rt),rt}}])&&j(_e.prototype,nt),et}();o.exports=function(et){return new Z(et)},o.exports.Printf=o.exports.Format=Z},function(o,i,s){var j=s(9),$=s(3).MESSAGE,Z=s(31);o.exports=j(function(et){var _e=Z(Object.assign({},et,{level:void 0,message:void 0,splat:void 0})),nt=et.padding&&et.padding[et.level]||"";return et[$]=_e!=="{}"?"".concat(et.level,":").concat(nt," ").concat(et.message," ").concat(_e):"".concat(et.level,":").concat(nt," ").concat(et.message),et})},function(o,i,s){function j(ft){return function(st){if(Array.isArray(st))return $(st)}(ft)||function(st){if(typeof Symbol!="undefined"&&Symbol.iterator in Object(st))return Array.from(st)}(ft)||function(st,lt){if(!!st){if(typeof st=="string")return $(st,lt);var it=Object.prototype.toString.call(st).slice(8,-1);if(it==="Object"&&st.constructor&&(it=st.constructor.name),it==="Map"||it==="Set")return Array.from(st);if(it==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(it))return $(st,lt)}}(ft)||function(){throw new TypeError(`Invalid attempt to spread non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function $(ft,st){(st==null||st>ft.length)&&(st=ft.length);for(var lt=0,it=new Array(st);lt1?pt.splice(0):pt,vt=xt.length;if(vt)for(var mt=0;mt1&&arguments[1]!==void 0?arguments[1]:{};return et.format&&(Z.timestamp=typeof et.format=="function"?et.format():j.format(new Date,et.format)),Z.timestamp||(Z.timestamp=new Date().toISOString()),et.alias&&(Z[et.alias]=Z.timestamp),Z})},function(o,i,s){s.r(i),s.d(i,"assign",function(){return nt}),s.d(i,"format",function(){return ht}),s.d(i,"parse",function(){return Ct}),s.d(i,"defaultI18n",function(){return st}),s.d(i,"setGlobalDateI18n",function(){return it}),s.d(i,"setGlobalDateMasks",function(){return yt});var j=/d{1,4}|M{1,4}|YY(?:YY)?|S{1,3}|Do|ZZ|Z|([HhMsDm])\1?|[aA]|"[^"]*"|'[^']*'/g,$="[^\\s]+",Z=/\[([^]*?)\]/gm;function et(kt,Lt){for(var Mt=[],Tt=0,Ot=kt.length;Tt-1?Tt:null}};function nt(kt){for(var Lt=[],Mt=1;Mt3?0:(kt-kt%10!=10?1:0)*kt%10]}},lt=nt({},st),it=function(kt){return lt=nt(lt,kt)},ut=function(kt){return kt.replace(/[|\\{()[^$+*?.-]/g,"\\$&")},pt=function(kt,Lt){for(Lt===void 0&&(Lt=2),kt=String(kt);kt.length0?"-":"+")+pt(100*Math.floor(Math.abs(Lt)/60)+Math.abs(Lt)%60,4)},Z:function(kt){var Lt=kt.getTimezoneOffset();return(Lt>0?"-":"+")+pt(Math.floor(Math.abs(Lt)/60),2)+":"+pt(Math.abs(Lt)%60,2)}},xt=function(kt){return+kt-1},vt=[null,"[1-9]\\d?"],mt=[null,$],ct=["isPm",$,function(kt,Lt){var Mt=kt.toLowerCase();return Mt===Lt.amPm[0]?0:Mt===Lt.amPm[1]?1:null}],Rt=["timezoneOffset","[^\\s]*?[\\+\\-]\\d\\d:?\\d\\d|[^\\s]*?Z?",function(kt){var Lt=(kt+"").match(/([+-]|\d\d)/gi);if(Lt){var Mt=60*+Lt[1]+parseInt(Lt[2],10);return Lt[0]==="+"?Mt:-Mt}return 0}],Ft={D:["day","[1-9]\\d?"],DD:["day","\\d\\d"],Do:["day","[1-9]\\d?"+$,function(kt){return parseInt(kt,10)}],M:["month","[1-9]\\d?",xt],MM:["month","\\d\\d",xt],YY:["year","\\d\\d",function(kt){var Lt=+(""+new Date().getFullYear()).substr(0,2);return+(""+(+kt>68?Lt-1:Lt)+kt)}],h:["hour","[1-9]\\d?",void 0,"isPm"],hh:["hour","\\d\\d",void 0,"isPm"],H:["hour","[1-9]\\d?"],HH:["hour","\\d\\d"],m:["minute","[1-9]\\d?"],mm:["minute","\\d\\d"],s:["second","[1-9]\\d?"],ss:["second","\\d\\d"],YYYY:["year","\\d{4}"],S:["millisecond","\\d",function(kt){return 100*+kt}],SS:["millisecond","\\d\\d",function(kt){return 10*+kt}],SSS:["millisecond","\\d{3}"],d:vt,dd:vt,ddd:mt,dddd:mt,MMM:["month",$,_e("monthNamesShort")],MMMM:["month",$,_e("monthNames")],a:ct,A:ct,ZZ:Rt,Z:Rt},Ut={default:"ddd MMM DD YYYY HH:mm:ss",shortDate:"M/D/YY",mediumDate:"MMM D, YYYY",longDate:"MMMM D, YYYY",fullDate:"dddd, MMMM D, YYYY",isoDate:"YYYY-MM-DD",isoDateTime:"YYYY-MM-DDTHH:mm:ssZ",shortTime:"HH:mm",mediumTime:"HH:mm:ss",longTime:"HH:mm:ss.SSS"},yt=function(kt){return nt(Ut,kt)},ht=function(kt,Lt,Mt){if(Lt===void 0&&(Lt=Ut.default),Mt===void 0&&(Mt={}),typeof kt=="number"&&(kt=new Date(kt)),Object.prototype.toString.call(kt)!=="[object Date]"||isNaN(kt.getTime()))throw new Error("Invalid Date pass to format");var Tt=[];Lt=(Lt=Ut[Lt]||Lt).replace(Z,function(At,wt){return Tt.push(wt),"@@@"});var Ot=nt(nt({},lt),Mt);return(Lt=Lt.replace(j,function(At){return bt[At](kt,Ot)})).replace(/@@@/g,function(){return Tt.shift()})};function Ct(kt,Lt,Mt){if(Mt===void 0&&(Mt={}),typeof Lt!="string")throw new Error("Invalid format in fecha parse");if(Lt=Ut[Lt]||Lt,kt.length>1e3)return null;var Tt={year:new Date().getFullYear(),month:0,day:1,hour:0,minute:0,second:0,millisecond:0,isPm:null,timezoneOffset:null},Ot=[],At=[],wt=Lt.replace(Z,function(Qt,nn){return At.push(ut(nn)),"@@@"}),gt={},Nt={};wt=ut(wt).replace(j,function(Qt){var nn=Ft[Qt],cn=nn[0],sn=nn[1],Vt=nn[3];if(gt[cn])throw new Error("Invalid format. "+cn+" specified twice in format");return gt[cn]=!0,Vt&&(Nt[Vt]=!0),Ot.push(nn),"("+sn+")"}),Object.keys(Nt).forEach(function(Qt){if(!gt[Qt])throw new Error("Invalid format. "+Qt+" is required in specified format")}),wt=wt.replace(/@@@/g,function(){return At.shift()});var Bt=kt.match(new RegExp(wt,"i"));if(!Bt)return null;for(var Gt=nt(nt({},lt),Mt),Kt=1;Kt","maintainers":["Jarrett Cruger ","Chris Alderson ","David Hyde "],"repository":{"type":"git","url":"https://github.com/winstonjs/winston.git"},"keywords":["winston","logger","logging","logs","sysadmin","bunyan","pino","loglevel","tools","json","stream"],"dependencies":{"async":"^3.1.0","@dabh/diagnostics":"^2.0.2","is-stream":"^2.0.0","logform":"^2.2.0","one-time":"^1.0.0","readable-stream":"^3.4.0","stack-trace":"0.0.x","triple-beam":"^1.3.0","winston-transport":"^4.4.0"},"devDependencies":{"@babel/cli":"^7.10.3","@babel/core":"^7.10.3","@babel/preset-env":"^7.10.3","@types/node":"^14.0.13","abstract-winston-transport":"^0.5.1","assume":"^2.2.0","colors":"^1.4.0","cross-spawn-async":"^2.2.5","eslint-config-populist":"^4.2.0","hock":"^1.4.1","mocha":"^8.0.1","nyc":"^15.1.0","rimraf":"^3.0.2","split2":"^3.1.1","std-mocks":"^1.0.1","through2":"^3.0.1","winston-compat":"^0.1.5"},"main":"./lib/winston","browser":"./dist/winston","types":"./index.d.ts","scripts":{"lint":"populist lib/*.js lib/winston/*.js lib/winston/**/*.js","pretest":"npm run lint","test":"nyc --reporter=text --reporter lcov npm run test:mocha","test:mocha":"mocha test/*.test.js test/**/*.test.js --exit","build":"./node_modules/.bin/rimraf dist && babel lib -d dist","prepublishOnly":"npm run build"},"engines":{"node":">= 6.4.0"},"license":"MIT"}')},function(o,i,s){Object.defineProperty(i,"Console",{configurable:!0,enumerable:!0,get:function(){return s(139)}}),Object.defineProperty(i,"File",{configurable:!0,enumerable:!0,get:function(){return s(148)}}),Object.defineProperty(i,"Http",{configurable:!0,enumerable:!0,get:function(){return s(188)}}),Object.defineProperty(i,"Stream",{configurable:!0,enumerable:!0,get:function(){return s(200)}})},function(o,i,s){(function(j){function $(pt){return($=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(bt){return typeof bt}:function(bt){return bt&&typeof Symbol=="function"&&bt.constructor===Symbol&&bt!==Symbol.prototype?"symbol":typeof bt})(pt)}function Z(pt,bt){if(!(pt instanceof bt))throw new TypeError("Cannot call a class as a function")}function et(pt,bt){for(var xt=0;xt0&&arguments[0]!==void 0?arguments[0]:{};return Z(this,mt),(ct=vt.call(this,Rt)).name=Rt.name||"console",ct.stderrLevels=ct._stringArrayToSet(Rt.stderrLevels),ct.consoleWarnLevels=ct._stringArrayToSet(Rt.consoleWarnLevels),ct.eol=Rt.eol||ft.EOL,ct.setMaxListeners(30),ct}return bt=mt,(xt=[{key:"log",value:function(ct,Rt){var Ft=this;return j(function(){return Ft.emit("logged",ct)}),this.stderrLevels[ct[lt]]?(console._stderr?console._stderr.write("".concat(ct[it]).concat(this.eol)):console.error(ct[it]),void(Rt&&Rt())):this.consoleWarnLevels[ct[lt]]?(console._stderr?console._stderr.write("".concat(ct[it]).concat(this.eol)):console.warn(ct[it]),void(Rt&&Rt())):(console._stdout?console._stdout.write("".concat(ct[it]).concat(this.eol)):console.log(ct[it]),void(Rt&&Rt()))}},{key:"_stringArrayToSet",value:function(ct,Rt){if(!ct)return{};if(Rt=Rt||"Cannot make set from type other than Array of string elements",!Array.isArray(ct))throw new Error(Rt);return ct.reduce(function(Ft,Ut){if(typeof Ut!="string")throw new Error(Rt);return Ft[Ut]=!0,Ft},{})}}])&&et(bt.prototype,xt),mt}(ut)}).call(this,s(12).setImmediate)},function(o,i,s){(function(j,$){(function(Z,et){if(!Z.setImmediate){var _e,nt,rt,at,ft,st=1,lt={},it=!1,ut=Z.document,pt=Object.getPrototypeOf&&Object.getPrototypeOf(Z);pt=pt&&pt.setTimeout?pt:Z,{}.toString.call(Z.process)==="[object process]"?_e=function(vt){$.nextTick(function(){xt(vt)})}:function(){if(Z.postMessage&&!Z.importScripts){var vt=!0,mt=Z.onmessage;return Z.onmessage=function(){vt=!1},Z.postMessage("","*"),Z.onmessage=mt,vt}}()?(at="setImmediate$"+Math.random()+"$",ft=function(vt){vt.source===Z&&typeof vt.data=="string"&&vt.data.indexOf(at)===0&&xt(+vt.data.slice(at.length))},Z.addEventListener?Z.addEventListener("message",ft,!1):Z.attachEvent("onmessage",ft),_e=function(vt){Z.postMessage(at+vt,"*")}):Z.MessageChannel?((rt=new MessageChannel).port1.onmessage=function(vt){xt(vt.data)},_e=function(vt){rt.port2.postMessage(vt)}):ut&&"onreadystatechange"in ut.createElement("script")?(nt=ut.documentElement,_e=function(vt){var mt=ut.createElement("script");mt.onreadystatechange=function(){xt(vt),mt.onreadystatechange=null,nt.removeChild(mt),mt=null},nt.appendChild(mt)}):_e=function(vt){setTimeout(xt,0,vt)},pt.setImmediate=function(vt){typeof vt!="function"&&(vt=new Function(""+vt));for(var mt=new Array(arguments.length-1),ct=0;ct0?(typeof gt=="string"||Zt.objectMode||Object.getPrototypeOf(gt)===at.prototype||(gt=function(zt){return at.from(zt)}(gt)),Bt?Zt.endEmitted?wt.emit("error",new Error("stream.unshift() after end event")):Rt(wt,Zt,gt,!0):Zt.ended?wt.emit("error",new Error("stream.push() after EOF")):(Zt.reading=!1,Zt.decoder&&!Nt?(gt=Zt.decoder.write(gt),Zt.objectMode||gt.length!==0?Rt(wt,Zt,gt,!1):ht(wt,Zt)):Rt(wt,Zt,gt,!1))):Bt||(Zt.reading=!1)),function(zt){return!zt.ended&&(zt.needReadable||zt.lengthgt.highWaterMark&&(gt.highWaterMark=function(Nt){return Nt>=8388608?Nt=8388608:(Nt--,Nt|=Nt>>>1,Nt|=Nt>>>2,Nt|=Nt>>>4,Nt|=Nt>>>8,Nt|=Nt>>>16,Nt++),Nt}(wt)),wt<=gt.length?wt:gt.ended?gt.length:(gt.needReadable=!0,0))}function Ut(wt){var gt=wt._readableState;gt.needReadable=!1,gt.emittedReadable||(it("emitReadable",gt.flowing),gt.emittedReadable=!0,gt.sync?Z.nextTick(yt,wt):yt(wt))}function yt(wt){it("emit readable"),wt.emit("readable"),Lt(wt)}function ht(wt,gt){gt.readingMore||(gt.readingMore=!0,Z.nextTick(Ct,wt,gt))}function Ct(wt,gt){for(var Nt=gt.length;!gt.reading&&!gt.flowing&&!gt.ended&>.length=gt.length?(Nt=gt.decoder?gt.buffer.join(""):gt.buffer.length===1?gt.buffer.head.data:gt.buffer.concat(gt.length),gt.buffer.clear()):Nt=function(Bt,Gt,Kt){var Zt;return BtJt.length?Jt.length:zt;if(Qt===Jt.length?Dt+=Jt:Dt+=Jt.slice(0,zt),(zt-=Qt)===0){Qt===Jt.length?(++It,Et.next?$t.head=Et.next:$t.head=$t.tail=null):($t.head=Et,Et.data=Jt.slice(Qt));break}++It}return $t.length-=It,Dt}(Bt,Gt):function(zt,$t){var Et=at.allocUnsafe(zt),It=$t.head,Dt=1;for(It.data.copy(Et),zt-=It.data.length;It=It.next;){var Jt=It.data,Qt=zt>Jt.length?Jt.length:zt;if(Jt.copy(Et,Et.length-zt,0,Qt),(zt-=Qt)===0){Qt===Jt.length?(++Dt,It.next?$t.head=It.next:$t.head=$t.tail=null):($t.head=It,It.data=Jt.slice(Qt));break}++Dt}return $t.length-=Dt,Et}(Bt,Gt),Zt}(wt,gt.buffer,gt.decoder),Nt);var Nt}function Tt(wt){var gt=wt._readableState;if(gt.length>0)throw new Error('"endReadable()" called on non-empty stream');gt.endEmitted||(gt.ended=!0,Z.nextTick(Ot,gt,wt))}function Ot(wt,gt){wt.endEmitted||wt.length!==0||(wt.endEmitted=!0,gt.readable=!1,gt.emit("end"))}function At(wt,gt){for(var Nt=0,Bt=wt.length;Nt=gt.highWaterMark||gt.ended))return it("read: emitReadable",gt.length,gt.ended),gt.length===0&>.ended?Tt(this):Ut(this),null;if((wt=Ft(wt,gt))===0&>.ended)return gt.length===0&&Tt(this),null;var Bt,Gt=gt.needReadable;return it("need readable",Gt),(gt.length===0||gt.length-wt0?Mt(wt,gt):null)===null?(gt.needReadable=!0,wt=0):gt.length-=wt,gt.length===0&&(gt.ended||(gt.needReadable=!0),Nt!==wt&>.ended&&Tt(this)),Bt!==null&&this.emit("data",Bt),Bt},mt.prototype._read=function(wt){this.emit("error",new Error("_read() is not implemented"))},mt.prototype.pipe=function(wt,gt){var Nt=this,Bt=this._readableState;switch(Bt.pipesCount){case 0:Bt.pipes=wt;break;case 1:Bt.pipes=[Bt.pipes,wt];break;default:Bt.pipes.push(wt)}Bt.pipesCount+=1,it("pipe count=%d opts=%j",Bt.pipesCount,gt);var Gt=(!gt||gt.end!==!1)&&wt!==$.stdout&&wt!==$.stderr?Zt:nn;function Kt(cn,sn){it("onunpipe"),cn===Nt&&sn&&sn.hasUnpiped===!1&&(sn.hasUnpiped=!0,it("cleanup"),wt.removeListener("close",Jt),wt.removeListener("finish",Qt),wt.removeListener("drain",zt),wt.removeListener("error",Dt),wt.removeListener("unpipe",Kt),Nt.removeListener("end",Zt),Nt.removeListener("end",nn),Nt.removeListener("data",It),$t=!0,!Bt.awaitDrain||wt._writableState&&!wt._writableState.needDrain||zt())}function Zt(){it("onend"),wt.end()}Bt.endEmitted?Z.nextTick(Gt):Nt.once("end",Gt),wt.on("unpipe",Kt);var zt=function(cn){return function(){var sn=cn._readableState;it("pipeOnDrain",sn.awaitDrain),sn.awaitDrain&&sn.awaitDrain--,sn.awaitDrain===0&&nt(cn,"data")&&(sn.flowing=!0,Lt(cn))}}(Nt);wt.on("drain",zt);var $t=!1,Et=!1;function It(cn){it("ondata"),Et=!1,wt.write(cn)!==!1||Et||((Bt.pipesCount===1&&Bt.pipes===wt||Bt.pipesCount>1&&At(Bt.pipes,wt)!==-1)&&!$t&&(it("false write response, pause",Nt._readableState.awaitDrain),Nt._readableState.awaitDrain++,Et=!0),Nt.pause())}function Dt(cn){it("onerror",cn),nn(),wt.removeListener("error",Dt),nt(wt,"error")===0&&wt.emit("error",cn)}function Jt(){wt.removeListener("finish",Qt),nn()}function Qt(){it("onfinish"),wt.removeListener("close",Jt),nn()}function nn(){it("unpipe"),Nt.unpipe(wt)}return Nt.on("data",It),function(cn,sn,Vt){if(typeof cn.prependListener=="function")return cn.prependListener(sn,Vt);cn._events&&cn._events[sn]?_e(cn._events[sn])?cn._events[sn].unshift(Vt):cn._events[sn]=[Vt,cn._events[sn]]:cn.on(sn,Vt)}(wt,"error",Dt),wt.once("close",Jt),wt.once("finish",Qt),wt.emit("pipe",Nt),Bt.flowing||(it("pipe resume"),Nt.resume()),wt},mt.prototype.unpipe=function(wt){var gt=this._readableState,Nt={hasUnpiped:!1};if(gt.pipesCount===0)return this;if(gt.pipesCount===1)return wt&&wt!==gt.pipes||(wt||(wt=gt.pipes),gt.pipes=null,gt.pipesCount=0,gt.flowing=!1,wt&&wt.emit("unpipe",this,Nt)),this;if(!wt){var Bt=gt.pipes,Gt=gt.pipesCount;gt.pipes=null,gt.pipesCount=0,gt.flowing=!1;for(var Kt=0;Kt0?this.tail.next=_e:this.head=_e,this.tail=_e,++this.length},Z.prototype.unshift=function(et){var _e={data:et,next:this.head};this.length===0&&(this.tail=_e),this.head=_e,++this.length},Z.prototype.shift=function(){if(this.length!==0){var et=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,et}},Z.prototype.clear=function(){this.head=this.tail=null,this.length=0},Z.prototype.join=function(et){if(this.length===0)return"";for(var _e=this.head,nt=""+_e.data;_e=_e.next;)nt+=et+_e.data;return nt},Z.prototype.concat=function(et){if(this.length===0)return j.alloc(0);if(this.length===1)return this.head.data;for(var _e,nt,rt,at=j.allocUnsafe(et>>>0),ft=this.head,st=0;ft;)_e=ft.data,nt=at,rt=st,_e.copy(nt,rt),st+=ft.data.length,ft=ft.next;return at},Z}(),$&&$.inspect&&$.inspect.custom&&(o.exports.prototype[$.inspect.custom]=function(){var Z=$.inspect({length:this.length});return this.constructor.name+" "+Z})},function(o,i){},function(o,i,s){var j=s(4),$=j.Buffer;function Z(_e,nt){for(var rt in _e)nt[rt]=_e[rt]}function et(_e,nt,rt){return $(_e,nt,rt)}$.from&&$.alloc&&$.allocUnsafe&&$.allocUnsafeSlow?o.exports=j:(Z(j,i),i.Buffer=et),Z($,et),et.from=function(_e,nt,rt){if(typeof _e=="number")throw new TypeError("Argument must not be a number");return $(_e,nt,rt)},et.alloc=function(_e,nt,rt){if(typeof _e!="number")throw new TypeError("Argument must be a number");var at=$(_e);return nt!==void 0?typeof rt=="string"?at.fill(nt,rt):at.fill(nt):at.fill(0),at},et.allocUnsafe=function(_e){if(typeof _e!="number")throw new TypeError("Argument must be a number");return $(_e)},et.allocUnsafeSlow=function(_e){if(typeof _e!="number")throw new TypeError("Argument must be a number");return j.SlowBuffer(_e)}},function(o,i,s){var j=s(10),$=s(3).LEVEL,Z=s(17),et=o.exports=function(){var _e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(Z.call(this,_e),!_e.transport||typeof _e.transport.log!="function")throw new Error("Invalid transport, must be an object with a log method.");function nt(rt){this.emit("error",rt,this.transport)}this.transport=_e.transport,this.level=this.level||_e.transport.level,this.handleExceptions=this.handleExceptions||_e.transport.handleExceptions,this._deprecated(),this.transport.__winstonError||(this.transport.__winstonError=nt.bind(this),this.transport.on("error",this.transport.__winstonError))};j.inherits(et,Z),et.prototype._write=function(_e,nt,rt){if(this.silent||_e.exception===!0&&!this.handleExceptions)return rt(null);(!this.level||this.levels[this.level]>=this.levels[_e[$]])&&this.transport.log(_e[$],_e.message,_e,this._nop),rt(null)},et.prototype._writev=function(_e,nt){for(var rt=0;rt<_e.length;rt++)this._accept(_e[rt])&&(this.transport.log(_e[rt].chunk[$],_e[rt].chunk.message,_e[rt].chunk,this._nop),_e[rt].callback());return nt(null)},et.prototype._deprecated=function(){console.error([this.transport.name+" is a legacy winston transport. Consider upgrading: ","- Upgrade docs: https://github.com/winstonjs/winston/blob/master/UPGRADE-3.0.md"].join(` +`))},et.prototype.close=function(){this.transport.close&&this.transport.close(),this.transport.__winstonError&&(this.transport.removeListener("error",this.transport.__winstonError),this.transport.__winstonError=null)}},function(o,i,s){(function(j,$){function Z(yt){return(Z=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(ht){return typeof ht}:function(ht){return ht&&typeof Symbol=="function"&&ht.constructor===Symbol&&ht!==Symbol.prototype?"symbol":typeof ht})(yt)}function et(yt,ht){if(!(yt instanceof ht))throw new TypeError("Cannot call a class as a function")}function _e(yt,ht){for(var Ct=0;Ct0&&arguments[0]!==void 0?arguments[0]:{};function Tt(Ot){for(var At=arguments.length,wt=new Array(At>1?At-1:0),gt=1;gt1&&arguments[1]!==void 0?arguments[1]:function(){};if(this.silent)return Tt(),!0;if(this._drain)this._stream.once("drain",function(){Mt._drain=!1,Mt.log(Lt,Tt)});else{if(!this._rotate){var Ot="".concat(Lt[bt]).concat(this.eol),At=$.byteLength(Ot);this._pendingSize+=At,this._opening&&!this.rotatedWhileOpening&&this._needsNewFile(this._size+this._pendingSize)&&(this.rotatedWhileOpening=!0);var wt=this._stream.write(Ot,gt.bind(this));return wt?Tt():(this._drain=!0,this._stream.once("drain",function(){Mt._drain=!1,Tt()})),Rt("written",wt,this._drain),this.finishIfEnding(),wt}this._stream.once("rotate",function(){Mt._rotate=!1,Mt.log(Lt,Tt)})}function gt(){var Nt=this;this._size+=At,this._pendingSize-=At,Rt("logged %s %s",this._size,Ot),this.emit("logged",Lt),this._opening||this._needsNewFile()&&(this._rotate=!0,this._endStream(function(){return Nt._rotateFile()}))}}},{key:"query",value:function(Lt,Mt){typeof Lt=="function"&&(Mt=Lt,Lt={}),Lt=function(Bt){return(Bt=Bt||{}).rows=Bt.rows||Bt.limit||10,Bt.start=Bt.start||0,Bt.until=Bt.until||new Date,Z(Bt.until)!=="object"&&(Bt.until=new Date(Bt.until)),Bt.from=Bt.from||Bt.until-864e5,Z(Bt.from)!=="object"&&(Bt.from=new Date(Bt.from)),Bt.order=Bt.order||"desc",Bt}(Lt);var Tt=it.join(this.dirname,this.filename),Ot="",At=[],wt=0,gt=lt.createReadStream(Tt,{encoding:"utf8"});function Nt(Bt,Gt){try{var Kt=JSON.parse(Bt);(function(Zt){if(Zt&&Z(Zt)==="object"){var zt=new Date(Zt.timestamp);if(!(Lt.from&&ztLt.until||Lt.level&&Lt.level!==Zt.level))return!0}})(Kt)&&function(Zt){Lt.rows&&At.length>=Lt.rows&&Lt.order!=="desc"?gt.readable&>.destroy():(Lt.fields&&(Zt=Lt.fields.reduce(function(zt,$t){return zt[$t]=Zt[$t],zt},{})),Lt.order==="desc"&&At.length>=Lt.rows&&At.shift(),At.push(Zt))}(Kt)}catch(Zt){Gt||gt.emit("error",Zt)}}gt.on("error",function(Bt){if(gt.readable&>.destroy(),Mt)return Bt.code!=="ENOENT"?Mt(Bt):Mt(null,At)}),gt.on("data",function(Bt){for(var Gt=(Bt=(Ot+Bt).split(/\n+/)).length-1,Kt=0;Kt=Lt.start)&&Nt(Bt[Kt]),wt++;Ot=Bt[Gt]}),gt.on("close",function(){Ot&&Nt(Ot,!0),Lt.order==="desc"&&(At=At.reverse()),Mt&&Mt(null,At)})}},{key:"stream",value:function(){var Lt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},Mt=it.join(this.dirname,this.filename),Tt=new vt,Ot={file:Mt,start:Lt.start};return Tt.destroy=Ut(Ot,function(At,wt){if(At)return Tt.emit("error",At);try{Tt.emit("data",wt),wt=JSON.parse(wt),Tt.emit("log",wt)}catch(gt){Tt.emit("error",gt)}}),Tt}},{key:"open",value:function(){var Lt=this;this.filename&&(this._opening||(this._opening=!0,this.stat(function(Mt,Tt){if(Mt)return Lt.emit("error",Mt);Rt("stat done: %s { size: %s }",Lt.filename,Tt),Lt._size=Tt,Lt._dest=Lt._createStream(Lt._stream),Lt._opening=!1,Lt.once("open",function(){Lt._stream.eventNames().includes("rotate")?Lt._stream.emit("rotate"):Lt._rotate=!1})})))}},{key:"stat",value:function(Lt){var Mt=this,Tt=this._getFile(),Ot=it.join(this.dirname,Tt);lt.stat(Ot,function(At,wt){return At&&At.code==="ENOENT"?(Rt("ENOENT\xA0ok",Ot),Mt.filename=Tt,Lt(null,0)):At?(Rt("err ".concat(At.code," ").concat(Ot)),Lt(At)):!wt||Mt._needsNewFile(wt.size)?Mt._incFile(function(){return Mt.stat(Lt)}):(Mt.filename=Tt,void Lt(null,wt.size))})}},{key:"close",value:function(Lt){var Mt=this;this._stream&&this._stream.end(function(){Lt&&Lt(),Mt.emit("flush"),Mt.emit("closed")})}},{key:"_needsNewFile",value:function(Lt){return Lt=Lt||this._size,this.maxsize&&Lt>=this.maxsize}},{key:"_onError",value:function(Lt){this.emit("error",Lt)}},{key:"_setupStream",value:function(Lt){return Lt.on("error",this._onError),Lt}},{key:"_cleanupStream",value:function(Lt){return Lt.removeListener("error",this._onError),Lt}},{key:"_rotateFile",value:function(){var Lt=this;this._incFile(function(){return Lt.open()})}},{key:"_endStream",value:function(){var Lt=this,Mt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:function(){};this._dest?(this._stream.unpipe(this._dest),this._dest.end(function(){Lt._cleanupStream(Lt._dest),Mt()})):Mt()}},{key:"_createStream",value:function(Lt){var Mt=this,Tt=it.join(this.dirname,this.filename);Rt("create stream start",Tt,this.options);var Ot=lt.createWriteStream(Tt,this.options).on("error",function(wt){return Rt(wt)}).on("close",function(){return Rt("close",Ot.path,Ot.bytesWritten)}).on("open",function(){Rt("file open ok",Tt),Mt.emit("open",Tt),Lt.pipe(Ot),Mt.rotatedWhileOpening&&(Mt._stream=new mt,Mt._stream.setMaxListeners(30),Mt._rotateFile(),Mt.rotatedWhileOpening=!1,Mt._cleanupStream(Ot),Lt.end())});if(Rt("create stream ok",Tt),this.zippedArchive){var At=pt.createGzip();return At.pipe(Ot),At}return Ot}},{key:"_incFile",value:function(Lt){Rt("_incFile",this.filename);var Mt=it.extname(this._basename),Tt=it.basename(this._basename,Mt);this.tailable?this._checkMaxFilesTailable(Mt,Tt,Lt):(this._created+=1,this._checkMaxFilesIncrementing(Mt,Tt,Lt))}},{key:"_getFile",value:function(){var Lt=it.extname(this._basename),Mt=it.basename(this._basename,Lt),Tt=this.rotationFormat?this.rotationFormat():this._created,Ot=!this.tailable&&this._created?"".concat(Mt).concat(Tt).concat(Lt):"".concat(Mt).concat(Lt);return this.zippedArchive&&!this.tailable?"".concat(Ot,".gz"):Ot}},{key:"_checkMaxFilesIncrementing",value:function(Lt,Mt,Tt){if(!this.maxFiles||this._created1;gt--)At.push(function(Nt,Bt){var Gt=this,Kt="".concat(Mt).concat(Nt-1).concat(Lt).concat(wt),Zt=it.join(this.dirname,Kt);lt.exists(Zt,function(zt){if(!zt)return Bt(null);Kt="".concat(Mt).concat(Nt).concat(Lt).concat(wt),lt.rename(Zt,it.join(Gt.dirname,Kt),Bt)})}.bind(this,gt));ut(At,function(){lt.rename(it.join(Ot.dirname,"".concat(Mt).concat(Lt)),it.join(Ot.dirname,"".concat(Mt,"1").concat(Lt).concat(wt)),Tt)})}}},{key:"_createLogDirIfNotExist",value:function(Lt){lt.existsSync(Lt)||lt.mkdirSync(Lt,{recursive:!0})}}])&&_e(ht.prototype,Ct),kt}(ct)}).call(this,s(12).setImmediate,s(4).Buffer)},function(o,i,s){Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(et,_e){return(0,j.default)($.default,et,_e)};var j=Z(s(150)),$=Z(s(154));function Z(et){return et&&et.__esModule?et:{default:et}}o.exports=i.default},function(o,i,s){Object.defineProperty(i,"__esModule",{value:!0});var j=et(s(41)),$=et(s(23)),Z=et(s(27));function et(_e){return _e&&_e.__esModule?_e:{default:_e}}i.default=(0,Z.default)((_e,nt,rt)=>{var at=(0,j.default)(nt)?[]:{};_e(nt,(ft,st,lt)=>{(0,$.default)(ft)((it,...ut)=>{ut.length<2&&([ut]=ut),at[st]=ut,lt(it)})},ft=>rt(ft,at))},3),o.exports=i.default},function(o,i,s){Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(rt){return(0,Z.isAsync)(rt)?function(...at){const ft=at.pop();return _e(rt.apply(this,at),ft)}:(0,j.default)(function(at,ft){var st;try{st=rt.apply(this,at)}catch(lt){return ft(lt)}if(st&&typeof st.then=="function")return _e(st,ft);ft(null,st)})};var j=et(s(152)),$=et(s(153)),Z=s(23);function et(rt){return rt&&rt.__esModule?rt:{default:rt}}function _e(rt,at){return rt.then(ft=>{nt(at,null,ft)},ft=>{nt(at,ft&&ft.message?ft:new Error(ft))})}function nt(rt,at,ft){try{rt(at,ft)}catch(st){(0,$.default)(lt=>{throw lt},st)}}o.exports=i.default},function(o,i,s){Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(j){return function(...$){var Z=$.pop();return j.call(this,$,Z)}},o.exports=i.default},function(o,i,s){(function(j,$){Object.defineProperty(i,"__esModule",{value:!0}),i.fallback=nt,i.wrap=rt;var Z,et=i.hasSetImmediate=typeof j=="function"&&j,_e=i.hasNextTick=typeof $=="object"&&typeof $.nextTick=="function";function nt(at){setTimeout(at,0)}function rt(at){return(ft,...st)=>at(()=>ft(...st))}Z=et?j:_e?$.nextTick:nt,i.default=rt(Z)}).call(this,s(12).setImmediate,s(2))},function(o,i,s){Object.defineProperty(i,"__esModule",{value:!0});var j=Z(s(64)),$=Z(s(27));function Z(et){return et&&et.__esModule?et:{default:et}}i.default=(0,$.default)(function(et,_e,nt){return(0,j.default)(et,1,_e,nt)},3),o.exports=i.default},function(o,i,s){Object.defineProperty(i,"__esModule",{value:!0});var j=rt(s(65)),$=rt(s(156)),Z=rt(s(66)),et=s(23),_e=rt(s(158)),nt=rt(s(42));function rt(at){return at&&at.__esModule?at:{default:at}}i.default=at=>(ft,st,lt)=>{if(lt=(0,j.default)(lt),at<=0)throw new RangeError("concurrency limit cannot be less than 1");if(!ft)return lt(null);if((0,et.isAsyncGenerator)(ft))return(0,_e.default)(ft,at,st,lt);if((0,et.isAsyncIterable)(ft))return(0,_e.default)(ft[Symbol.asyncIterator](),at,st,lt);var it=(0,$.default)(ft),ut=!1,pt=!1,bt=0,xt=!1;function vt(ct,Rt){if(!pt)if(bt-=1,ct)ut=!0,lt(ct);else if(ct===!1)ut=!0,pt=!0;else{if(Rt===nt.default||ut&&bt<=0)return ut=!0,lt(null);xt||mt()}}function mt(){for(xt=!0;bt=_e||st||at||(st=!0,et.next().then(({value:xt,done:vt})=>{if(!ft&&!at){if(st=!1,vt)return at=!0,void(lt<=0&&rt(null));lt++,nt(xt,it,pt),it++,ut()}}).catch(bt))}function pt(xt,vt){if(lt-=1,!ft)return xt?bt(xt):xt===!1?(at=!0,void(ft=!0)):vt===Z.default||at&<<=0?(at=!0,rt(null)):void ut()}function bt(xt){ft||(st=!1,at=!0,rt(xt))}ut()};var j,$=s(42),Z=(j=$)&&j.__esModule?j:{default:j};o.exports=i.default},function(o,i,s){(function(j){var $=s(4).Buffer,Z=s(160).Transform,et=s(168),_e=s(10),nt=s(72).ok,rt=s(4).kMaxLength,at="Cannot create final Buffer. It would be larger than 0x"+rt.toString(16)+" bytes";et.Z_MIN_WINDOWBITS=8,et.Z_MAX_WINDOWBITS=15,et.Z_DEFAULT_WINDOWBITS=15,et.Z_MIN_CHUNK=64,et.Z_MAX_CHUNK=1/0,et.Z_DEFAULT_CHUNK=16384,et.Z_MIN_MEMLEVEL=1,et.Z_MAX_MEMLEVEL=9,et.Z_DEFAULT_MEMLEVEL=8,et.Z_MIN_LEVEL=-1,et.Z_MAX_LEVEL=9,et.Z_DEFAULT_LEVEL=et.Z_DEFAULT_COMPRESSION;for(var ft=Object.keys(et),st=0;st=rt?Gt=new RangeError(at):Bt=$.concat(At,wt),At=[],Mt.close(),Ot(Gt,Bt)}Mt.on("error",function(Bt){Mt.removeListener("end",Nt),Mt.removeListener("readable",gt),Ot(Bt)}),Mt.on("end",Nt),Mt.end(Tt),gt()}function vt(Mt,Tt){if(typeof Tt=="string"&&(Tt=$.from(Tt)),!$.isBuffer(Tt))throw new TypeError("Not a string or buffer");var Ot=Mt._finishFlushFlag;return Mt._processChunk(Tt,Ot)}function mt(Mt){if(!(this instanceof mt))return new mt(Mt);St.call(this,Mt,et.DEFLATE)}function ct(Mt){if(!(this instanceof ct))return new ct(Mt);St.call(this,Mt,et.INFLATE)}function Rt(Mt){if(!(this instanceof Rt))return new Rt(Mt);St.call(this,Mt,et.GZIP)}function Ft(Mt){if(!(this instanceof Ft))return new Ft(Mt);St.call(this,Mt,et.GUNZIP)}function Ut(Mt){if(!(this instanceof Ut))return new Ut(Mt);St.call(this,Mt,et.DEFLATERAW)}function yt(Mt){if(!(this instanceof yt))return new yt(Mt);St.call(this,Mt,et.INFLATERAW)}function ht(Mt){if(!(this instanceof ht))return new ht(Mt);St.call(this,Mt,et.UNZIP)}function Ct(Mt){return Mt===et.Z_NO_FLUSH||Mt===et.Z_PARTIAL_FLUSH||Mt===et.Z_SYNC_FLUSH||Mt===et.Z_FULL_FLUSH||Mt===et.Z_FINISH||Mt===et.Z_BLOCK}function St(Mt,Tt){var Ot=this;if(this._opts=Mt=Mt||{},this._chunkSize=Mt.chunkSize||i.Z_DEFAULT_CHUNK,Z.call(this,Mt),Mt.flush&&!Ct(Mt.flush))throw new Error("Invalid flush flag: "+Mt.flush);if(Mt.finishFlush&&!Ct(Mt.finishFlush))throw new Error("Invalid flush flag: "+Mt.finishFlush);if(this._flushFlag=Mt.flush||et.Z_NO_FLUSH,this._finishFlushFlag=Mt.finishFlush!==void 0?Mt.finishFlush:et.Z_FINISH,Mt.chunkSize&&(Mt.chunkSizei.Z_MAX_CHUNK))throw new Error("Invalid chunk size: "+Mt.chunkSize);if(Mt.windowBits&&(Mt.windowBitsi.Z_MAX_WINDOWBITS))throw new Error("Invalid windowBits: "+Mt.windowBits);if(Mt.level&&(Mt.leveli.Z_MAX_LEVEL))throw new Error("Invalid compression level: "+Mt.level);if(Mt.memLevel&&(Mt.memLeveli.Z_MAX_MEMLEVEL))throw new Error("Invalid memLevel: "+Mt.memLevel);if(Mt.strategy&&Mt.strategy!=i.Z_FILTERED&&Mt.strategy!=i.Z_HUFFMAN_ONLY&&Mt.strategy!=i.Z_RLE&&Mt.strategy!=i.Z_FIXED&&Mt.strategy!=i.Z_DEFAULT_STRATEGY)throw new Error("Invalid strategy: "+Mt.strategy);if(Mt.dictionary&&!$.isBuffer(Mt.dictionary))throw new Error("Invalid dictionary: it should be a Buffer instance");this._handle=new et.Zlib(Tt);var At=this;this._hadError=!1,this._handle.onerror=function(Nt,Bt){kt(At),At._hadError=!0;var Gt=new Error(Nt);Gt.errno=Bt,Gt.code=i.codes[Bt],At.emit("error",Gt)};var wt=i.Z_DEFAULT_COMPRESSION;typeof Mt.level=="number"&&(wt=Mt.level);var gt=i.Z_DEFAULT_STRATEGY;typeof Mt.strategy=="number"&&(gt=Mt.strategy),this._handle.init(Mt.windowBits||i.Z_DEFAULT_WINDOWBITS,wt,Mt.memLevel||i.Z_DEFAULT_MEMLEVEL,gt,Mt.dictionary),this._buffer=$.allocUnsafe(this._chunkSize),this._offset=0,this._level=wt,this._strategy=gt,this.once("end",this.close),Object.defineProperty(this,"_closed",{get:function(){return!Ot._handle},configurable:!0,enumerable:!0})}function kt(Mt,Tt){Tt&&j.nextTick(Tt),Mt._handle&&(Mt._handle.close(),Mt._handle=null)}function Lt(Mt){Mt.emit("close")}Object.defineProperty(i,"codes",{enumerable:!0,value:Object.freeze(it),writable:!1}),i.Deflate=mt,i.Inflate=ct,i.Gzip=Rt,i.Gunzip=Ft,i.DeflateRaw=Ut,i.InflateRaw=yt,i.Unzip=ht,i.createDeflate=function(Mt){return new mt(Mt)},i.createInflate=function(Mt){return new ct(Mt)},i.createDeflateRaw=function(Mt){return new Ut(Mt)},i.createInflateRaw=function(Mt){return new yt(Mt)},i.createGzip=function(Mt){return new Rt(Mt)},i.createGunzip=function(Mt){return new Ft(Mt)},i.createUnzip=function(Mt){return new ht(Mt)},i.deflate=function(Mt,Tt,Ot){return typeof Tt=="function"&&(Ot=Tt,Tt={}),xt(new mt(Tt),Mt,Ot)},i.deflateSync=function(Mt,Tt){return vt(new mt(Tt),Mt)},i.gzip=function(Mt,Tt,Ot){return typeof Tt=="function"&&(Ot=Tt,Tt={}),xt(new Rt(Tt),Mt,Ot)},i.gzipSync=function(Mt,Tt){return vt(new Rt(Tt),Mt)},i.deflateRaw=function(Mt,Tt,Ot){return typeof Tt=="function"&&(Ot=Tt,Tt={}),xt(new Ut(Tt),Mt,Ot)},i.deflateRawSync=function(Mt,Tt){return vt(new Ut(Tt),Mt)},i.unzip=function(Mt,Tt,Ot){return typeof Tt=="function"&&(Ot=Tt,Tt={}),xt(new ht(Tt),Mt,Ot)},i.unzipSync=function(Mt,Tt){return vt(new ht(Tt),Mt)},i.inflate=function(Mt,Tt,Ot){return typeof Tt=="function"&&(Ot=Tt,Tt={}),xt(new ct(Tt),Mt,Ot)},i.inflateSync=function(Mt,Tt){return vt(new ct(Tt),Mt)},i.gunzip=function(Mt,Tt,Ot){return typeof Tt=="function"&&(Ot=Tt,Tt={}),xt(new Ft(Tt),Mt,Ot)},i.gunzipSync=function(Mt,Tt){return vt(new Ft(Tt),Mt)},i.inflateRaw=function(Mt,Tt,Ot){return typeof Tt=="function"&&(Ot=Tt,Tt={}),xt(new yt(Tt),Mt,Ot)},i.inflateRawSync=function(Mt,Tt){return vt(new yt(Tt),Mt)},_e.inherits(St,Z),St.prototype.params=function(Mt,Tt,Ot){if(Mti.Z_MAX_LEVEL)throw new RangeError("Invalid compression level: "+Mt);if(Tt!=i.Z_FILTERED&&Tt!=i.Z_HUFFMAN_ONLY&&Tt!=i.Z_RLE&&Tt!=i.Z_FIXED&&Tt!=i.Z_DEFAULT_STRATEGY)throw new TypeError("Invalid strategy: "+Tt);if(this._level!==Mt||this._strategy!==Tt){var At=this;this.flush(et.Z_SYNC_FLUSH,function(){nt(At._handle,"zlib binding closed"),At._handle.params(Mt,Tt),At._hadError||(At._level=Mt,At._strategy=Tt,Ot&&Ot())})}else j.nextTick(Ot)},St.prototype.reset=function(){return nt(this._handle,"zlib binding closed"),this._handle.reset()},St.prototype._flush=function(Mt){this._transform($.alloc(0),"",Mt)},St.prototype.flush=function(Mt,Tt){var Ot=this,At=this._writableState;(typeof Mt=="function"||Mt===void 0&&!Tt)&&(Tt=Mt,Mt=et.Z_FULL_FLUSH),At.ended?Tt&&j.nextTick(Tt):At.ending?Tt&&this.once("end",Tt):At.needDrain?Tt&&this.once("drain",function(){return Ot.flush(Mt,Tt)}):(this._flushFlag=Mt,this.write($.alloc(0),"",Tt))},St.prototype.close=function(Mt){kt(this,Mt),j.nextTick(Lt,this)},St.prototype._transform=function(Mt,Tt,Ot){var At,wt=this._writableState,gt=(wt.ending||wt.ended)&&(!Mt||wt.length===Mt.length);return Mt===null||$.isBuffer(Mt)?this._handle?(gt?At=this._finishFlushFlag:(At=this._flushFlag,Mt.length>=wt.length&&(this._flushFlag=this._opts.flush||et.Z_NO_FLUSH)),void this._processChunk(Mt,At,Ot)):Ot(new Error("zlib binding closed")):Ot(new Error("invalid input"))},St.prototype._processChunk=function(Mt,Tt,Ot){var At=Mt&&Mt.length,wt=this._chunkSize-this._offset,gt=0,Nt=this,Bt=typeof Ot=="function";if(!Bt){var Gt,Kt=[],Zt=0;this.on("error",function(Dt){Gt=Dt}),nt(this._handle,"zlib binding closed");do var zt=this._handle.writeSync(Tt,Mt,gt,At,this._buffer,this._offset,wt);while(!this._hadError&&It(zt[0],zt[1]));if(this._hadError)throw Gt;if(Zt>=rt)throw kt(this),new RangeError(at);var $t=$.concat(Kt,Zt);return kt(this),$t}nt(this._handle,"zlib binding closed");var Et=this._handle.write(Tt,Mt,gt,At,this._buffer,this._offset,wt);function It(Dt,Jt){if(this&&(this.buffer=null,this.callback=null),!Nt._hadError){var Qt=wt-Jt;if(nt(Qt>=0,"have should not go down"),Qt>0){var nn=Nt._buffer.slice(Nt._offset,Nt._offset+Qt);Nt._offset+=Qt,Bt?Nt.push(nn):(Kt.push(nn),Zt+=nn.length)}if((Jt===0||Nt._offset>=Nt._chunkSize)&&(wt=Nt._chunkSize,Nt._offset=0,Nt._buffer=$.allocUnsafe(Nt._chunkSize)),Jt===0){if(gt+=At-Dt,At=Dt,!Bt)return!0;var cn=Nt._handle.write(Tt,Mt,gt,At,Nt._buffer,Nt._offset,Nt._chunkSize);return cn.callback=It,void(cn.buffer=Mt)}if(!Bt)return!1;Ot()}}Et.buffer=Mt,Et.callback=It},_e.inherits(mt,St),_e.inherits(ct,St),_e.inherits(Rt,St),_e.inherits(Ft,St),_e.inherits(Ut,St),_e.inherits(yt,St),_e.inherits(ht,St)}).call(this,s(2))},function(o,i,s){o.exports=$;var j=s(18).EventEmitter;function $(){j.call(this)}s(6)($,j),$.Readable=s(28),$.Writable=s(71),$.Duplex=s(165),$.Transform=s(166),$.PassThrough=s(167),$.Stream=$,$.prototype.pipe=function(Z,et){var _e=this;function nt(ut){Z.writable&&Z.write(ut)===!1&&_e.pause&&_e.pause()}function rt(){_e.readable&&_e.resume&&_e.resume()}_e.on("data",nt),Z.on("drain",rt),Z._isStdio||et&&et.end===!1||(_e.on("end",ft),_e.on("close",st));var at=!1;function ft(){at||(at=!0,Z.end())}function st(){at||(at=!0,typeof Z.destroy=="function"&&Z.destroy())}function lt(ut){if(it(),j.listenerCount(this,"error")===0)throw ut}function it(){_e.removeListener("data",nt),Z.removeListener("drain",rt),_e.removeListener("end",ft),_e.removeListener("close",st),_e.removeListener("error",lt),Z.removeListener("error",lt),_e.removeListener("end",it),_e.removeListener("close",it),Z.removeListener("close",it)}return _e.on("error",lt),Z.on("error",lt),_e.on("end",it),_e.on("close",it),Z.on("close",it),Z.emit("pipe",_e),Z}},function(o,i){},function(o,i,s){var j=s(43).Buffer,$=s(163);o.exports=function(){function Z(){(function(et,_e){if(!(et instanceof _e))throw new TypeError("Cannot call a class as a function")})(this,Z),this.head=null,this.tail=null,this.length=0}return Z.prototype.push=function(et){var _e={data:et,next:null};this.length>0?this.tail.next=_e:this.head=_e,this.tail=_e,++this.length},Z.prototype.unshift=function(et){var _e={data:et,next:this.head};this.length===0&&(this.tail=_e),this.head=_e,++this.length},Z.prototype.shift=function(){if(this.length!==0){var et=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,et}},Z.prototype.clear=function(){this.head=this.tail=null,this.length=0},Z.prototype.join=function(et){if(this.length===0)return"";for(var _e=this.head,nt=""+_e.data;_e=_e.next;)nt+=et+_e.data;return nt},Z.prototype.concat=function(et){if(this.length===0)return j.alloc(0);if(this.length===1)return this.head.data;for(var _e,nt,rt,at=j.allocUnsafe(et>>>0),ft=this.head,st=0;ft;)_e=ft.data,nt=at,rt=st,_e.copy(nt,rt),st+=ft.data.length,ft=ft.next;return at},Z}(),$&&$.inspect&&$.inspect.custom&&(o.exports.prototype[$.inspect.custom]=function(){var Z=$.inspect({length:this.length});return this.constructor.name+" "+Z})},function(o,i){},function(o,i,s){o.exports=Z;var j=s(70),$=s(14);function Z(et){if(!(this instanceof Z))return new Z(et);j.call(this,et)}$.inherits=s(6),$.inherits(Z,j),Z.prototype._transform=function(et,_e,nt){nt(null,et)}},function(o,i,s){o.exports=s(20)},function(o,i,s){o.exports=s(28).Transform},function(o,i,s){o.exports=s(28).PassThrough},function(o,i,s){(function(j,$){var Z=s(72),et=s(170),_e=s(171),nt=s(174),rt=s(177);for(var at in rt)i[at]=rt[at];i.NONE=0,i.DEFLATE=1,i.INFLATE=2,i.GZIP=3,i.GUNZIP=4,i.DEFLATERAW=5,i.INFLATERAW=6,i.UNZIP=7;function ft(st){if(typeof st!="number"||sti.UNZIP)throw new TypeError("Bad argument");this.dictionary=null,this.err=0,this.flush=0,this.init_done=!1,this.level=0,this.memLevel=0,this.mode=st,this.strategy=0,this.windowBits=0,this.write_in_progress=!1,this.pending_close=!1,this.gzip_id_bytes_read=0}ft.prototype.close=function(){this.write_in_progress?this.pending_close=!0:(this.pending_close=!1,Z(this.init_done,"close before init"),Z(this.mode<=i.UNZIP),this.mode===i.DEFLATE||this.mode===i.GZIP||this.mode===i.DEFLATERAW?_e.deflateEnd(this.strm):this.mode!==i.INFLATE&&this.mode!==i.GUNZIP&&this.mode!==i.INFLATERAW&&this.mode!==i.UNZIP||nt.inflateEnd(this.strm),this.mode=i.NONE,this.dictionary=null)},ft.prototype.write=function(st,lt,it,ut,pt,bt,xt){return this._write(!0,st,lt,it,ut,pt,bt,xt)},ft.prototype.writeSync=function(st,lt,it,ut,pt,bt,xt){return this._write(!1,st,lt,it,ut,pt,bt,xt)},ft.prototype._write=function(st,lt,it,ut,pt,bt,xt,vt){if(Z.equal(arguments.length,8),Z(this.init_done,"write before init"),Z(this.mode!==i.NONE,"already finalized"),Z.equal(!1,this.write_in_progress,"write already in progress"),Z.equal(!1,this.pending_close,"close is pending"),this.write_in_progress=!0,Z.equal(!1,lt===void 0,"must provide flush value"),this.write_in_progress=!0,lt!==i.Z_NO_FLUSH&<!==i.Z_PARTIAL_FLUSH&<!==i.Z_SYNC_FLUSH&<!==i.Z_FULL_FLUSH&<!==i.Z_FINISH&<!==i.Z_BLOCK)throw new Error("Invalid flush value");if(it==null&&(it=j.alloc(0),pt=0,ut=0),this.strm.avail_in=pt,this.strm.input=it,this.strm.next_in=ut,this.strm.avail_out=vt,this.strm.output=bt,this.strm.next_out=xt,this.flush=lt,!st)return this._process(),this._checkError()?this._afterSync():void 0;var mt=this;return $.nextTick(function(){mt._process(),mt._after()}),this},ft.prototype._afterSync=function(){var st=this.strm.avail_out,lt=this.strm.avail_in;return this.write_in_progress=!1,[lt,st]},ft.prototype._process=function(){var st=null;switch(this.mode){case i.DEFLATE:case i.GZIP:case i.DEFLATERAW:this.err=_e.deflate(this.strm,this.flush);break;case i.UNZIP:switch(this.strm.avail_in>0&&(st=this.strm.next_in),this.gzip_id_bytes_read){case 0:if(st===null)break;if(this.strm.input[st]!==31){this.mode=i.INFLATE;break}if(this.gzip_id_bytes_read=1,st++,this.strm.avail_in===1)break;case 1:if(st===null)break;this.strm.input[st]===139?(this.gzip_id_bytes_read=2,this.mode=i.GUNZIP):this.mode=i.INFLATE;break;default:throw new Error("invalid number of gzip magic number bytes read")}case i.INFLATE:case i.GUNZIP:case i.INFLATERAW:for(this.err=nt.inflate(this.strm,this.flush),this.err===i.Z_NEED_DICT&&this.dictionary&&(this.err=nt.inflateSetDictionary(this.strm,this.dictionary),this.err===i.Z_OK?this.err=nt.inflate(this.strm,this.flush):this.err===i.Z_DATA_ERROR&&(this.err=i.Z_NEED_DICT));this.strm.avail_in>0&&this.mode===i.GUNZIP&&this.err===i.Z_STREAM_END&&this.strm.next_in[0]!==0;)this.reset(),this.err=nt.inflate(this.strm,this.flush);break;default:throw new Error("Unknown mode "+this.mode)}},ft.prototype._checkError=function(){switch(this.err){case i.Z_OK:case i.Z_BUF_ERROR:if(this.strm.avail_out!==0&&this.flush===i.Z_FINISH)return this._error("unexpected end of file"),!1;break;case i.Z_STREAM_END:break;case i.Z_NEED_DICT:return this.dictionary==null?this._error("Missing dictionary"):this._error("Bad dictionary"),!1;default:return this._error("Zlib error"),!1}return!0},ft.prototype._after=function(){if(this._checkError()){var st=this.strm.avail_out,lt=this.strm.avail_in;this.write_in_progress=!1,this.callback(lt,st),this.pending_close&&this.close()}},ft.prototype._error=function(st){this.strm.msg&&(st=this.strm.msg),this.onerror(st,this.err),this.write_in_progress=!1,this.pending_close&&this.close()},ft.prototype.init=function(st,lt,it,ut,pt){Z(arguments.length===4||arguments.length===5,"init(windowBits, level, memLevel, strategy, [dictionary])"),Z(st>=8&&st<=15,"invalid windowBits"),Z(lt>=-1&<<=9,"invalid compression level"),Z(it>=1&&it<=9,"invalid memlevel"),Z(ut===i.Z_FILTERED||ut===i.Z_HUFFMAN_ONLY||ut===i.Z_RLE||ut===i.Z_FIXED||ut===i.Z_DEFAULT_STRATEGY,"invalid strategy"),this._init(lt,st,it,ut,pt),this._setDictionary()},ft.prototype.params=function(){throw new Error("deflateParams Not supported")},ft.prototype.reset=function(){this._reset(),this._setDictionary()},ft.prototype._init=function(st,lt,it,ut,pt){switch(this.level=st,this.windowBits=lt,this.memLevel=it,this.strategy=ut,this.flush=i.Z_NO_FLUSH,this.err=i.Z_OK,this.mode!==i.GZIP&&this.mode!==i.GUNZIP||(this.windowBits+=16),this.mode===i.UNZIP&&(this.windowBits+=32),this.mode!==i.DEFLATERAW&&this.mode!==i.INFLATERAW||(this.windowBits=-1*this.windowBits),this.strm=new et,this.mode){case i.DEFLATE:case i.GZIP:case i.DEFLATERAW:this.err=_e.deflateInit2(this.strm,this.level,i.Z_DEFLATED,this.windowBits,this.memLevel,this.strategy);break;case i.INFLATE:case i.GUNZIP:case i.INFLATERAW:case i.UNZIP:this.err=nt.inflateInit2(this.strm,this.windowBits);break;default:throw new Error("Unknown mode "+this.mode)}this.err!==i.Z_OK&&this._error("Init error"),this.dictionary=pt,this.write_in_progress=!1,this.init_done=!0},ft.prototype._setDictionary=function(){if(this.dictionary!=null){switch(this.err=i.Z_OK,this.mode){case i.DEFLATE:case i.DEFLATERAW:this.err=_e.deflateSetDictionary(this.strm,this.dictionary)}this.err!==i.Z_OK&&this._error("Failed to set dictionary")}},ft.prototype._reset=function(){switch(this.err=i.Z_OK,this.mode){case i.DEFLATE:case i.DEFLATERAW:case i.GZIP:this.err=_e.deflateReset(this.strm);break;case i.INFLATE:case i.INFLATERAW:case i.GUNZIP:this.err=nt.inflateReset(this.strm)}this.err!==i.Z_OK&&this._error("Failed to reset stream")},i.Zlib=ft}).call(this,s(4).Buffer,s(2))},function(o,i,s){var j=Object.getOwnPropertySymbols,$=Object.prototype.hasOwnProperty,Z=Object.prototype.propertyIsEnumerable;function et(_e){if(_e==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(_e)}o.exports=function(){try{if(!Object.assign)return!1;var _e=new String("abc");if(_e[5]="de",Object.getOwnPropertyNames(_e)[0]==="5")return!1;for(var nt={},rt=0;rt<10;rt++)nt["_"+String.fromCharCode(rt)]=rt;if(Object.getOwnPropertyNames(nt).map(function(ft){return nt[ft]}).join("")!=="0123456789")return!1;var at={};return"abcdefghijklmnopqrst".split("").forEach(function(ft){at[ft]=ft}),Object.keys(Object.assign({},at)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}()?Object.assign:function(_e,nt){for(var rt,at,ft=et(_e),st=1;st4?9:0)}function ft(yt){for(var ht=yt.length;--ht>=0;)yt[ht]=0}function st(yt){var ht=yt.state,Ct=ht.pending;Ct>yt.avail_out&&(Ct=yt.avail_out),Ct!==0&&($.arraySet(yt.output,ht.pending_buf,ht.pending_out,Ct,yt.next_out),yt.next_out+=Ct,ht.pending_out+=Ct,yt.total_out+=Ct,yt.avail_out-=Ct,ht.pending-=Ct,ht.pending===0&&(ht.pending_out=0))}function lt(yt,ht){Z._tr_flush_block(yt,yt.block_start>=0?yt.block_start:-1,yt.strstart-yt.block_start,ht),yt.block_start=yt.strstart,st(yt.strm)}function it(yt,ht){yt.pending_buf[yt.pending++]=ht}function ut(yt,ht){yt.pending_buf[yt.pending++]=ht>>>8&255,yt.pending_buf[yt.pending++]=255&ht}function pt(yt,ht){var Ct,St,kt=yt.max_chain_length,Lt=yt.strstart,Mt=yt.prev_length,Tt=yt.nice_match,Ot=yt.strstart>yt.w_size-262?yt.strstart-(yt.w_size-262):0,At=yt.window,wt=yt.w_mask,gt=yt.prev,Nt=yt.strstart+258,Bt=At[Lt+Mt-1],Gt=At[Lt+Mt];yt.prev_length>=yt.good_match&&(kt>>=2),Tt>yt.lookahead&&(Tt=yt.lookahead);do if(At[(Ct=ht)+Mt]===Gt&&At[Ct+Mt-1]===Bt&&At[Ct]===At[Lt]&&At[++Ct]===At[Lt+1]){Lt+=2,Ct++;do;while(At[++Lt]===At[++Ct]&&At[++Lt]===At[++Ct]&&At[++Lt]===At[++Ct]&&At[++Lt]===At[++Ct]&&At[++Lt]===At[++Ct]&&At[++Lt]===At[++Ct]&&At[++Lt]===At[++Ct]&&At[++Lt]===At[++Ct]&&LtMt){if(yt.match_start=ht,Mt=St,St>=Tt)break;Bt=At[Lt+Mt-1],Gt=At[Lt+Mt]}}while((ht=gt[ht&wt])>Ot&&--kt!=0);return Mt<=yt.lookahead?Mt:yt.lookahead}function bt(yt){var ht,Ct,St,kt,Lt,Mt,Tt,Ot,At,wt,gt=yt.w_size;do{if(kt=yt.window_size-yt.lookahead-yt.strstart,yt.strstart>=gt+(gt-262)){$.arraySet(yt.window,yt.window,gt,gt,0),yt.match_start-=gt,yt.strstart-=gt,yt.block_start-=gt,ht=Ct=yt.hash_size;do St=yt.head[--ht],yt.head[ht]=St>=gt?St-gt:0;while(--Ct);ht=Ct=gt;do St=yt.prev[--ht],yt.prev[ht]=St>=gt?St-gt:0;while(--Ct);kt+=gt}if(yt.strm.avail_in===0)break;if(Mt=yt.strm,Tt=yt.window,Ot=yt.strstart+yt.lookahead,At=kt,wt=void 0,(wt=Mt.avail_in)>At&&(wt=At),Ct=wt===0?0:(Mt.avail_in-=wt,$.arraySet(Tt,Mt.input,Mt.next_in,wt,Ot),Mt.state.wrap===1?Mt.adler=et(Mt.adler,Tt,wt,Ot):Mt.state.wrap===2&&(Mt.adler=_e(Mt.adler,Tt,wt,Ot)),Mt.next_in+=wt,Mt.total_in+=wt,wt),yt.lookahead+=Ct,yt.lookahead+yt.insert>=3)for(Lt=yt.strstart-yt.insert,yt.ins_h=yt.window[Lt],yt.ins_h=(yt.ins_h<=3&&(yt.ins_h=(yt.ins_h<=3)if(St=Z._tr_tally(yt,yt.strstart-yt.match_start,yt.match_length-3),yt.lookahead-=yt.match_length,yt.match_length<=yt.max_lazy_match&&yt.lookahead>=3){yt.match_length--;do yt.strstart++,yt.ins_h=(yt.ins_h<=3&&(yt.ins_h=(yt.ins_h<4096)&&(yt.match_length=2)),yt.prev_length>=3&&yt.match_length<=yt.prev_length){kt=yt.strstart+yt.lookahead-3,St=Z._tr_tally(yt,yt.strstart-1-yt.prev_match,yt.prev_length-3),yt.lookahead-=yt.prev_length-1,yt.prev_length-=2;do++yt.strstart<=kt&&(yt.ins_h=(yt.ins_h<15&&(Mt=2,St-=16),kt<1||kt>9||Ct!==8||St<8||St>15||ht<0||ht>9||Lt<0||Lt>4)return rt(yt,-2);St===8&&(St=9);var Tt=new ct;return yt.state=Tt,Tt.strm=yt,Tt.wrap=Mt,Tt.gzhead=null,Tt.w_bits=St,Tt.w_size=1<yt.pending_buf_size-5&&(Ct=yt.pending_buf_size-5);;){if(yt.lookahead<=1){if(bt(yt),yt.lookahead===0&&ht===0)return 1;if(yt.lookahead===0)break}yt.strstart+=yt.lookahead,yt.lookahead=0;var St=yt.block_start+Ct;if((yt.strstart===0||yt.strstart>=St)&&(yt.lookahead=yt.strstart-St,yt.strstart=St,lt(yt,!1),yt.strm.avail_out===0)||yt.strstart-yt.block_start>=yt.w_size-262&&(lt(yt,!1),yt.strm.avail_out===0))return 1}return yt.insert=0,ht===4?(lt(yt,!0),yt.strm.avail_out===0?3:4):(yt.strstart>yt.block_start&&(lt(yt,!1),yt.strm.avail_out),1)}),new mt(4,4,8,4,xt),new mt(4,5,16,8,xt),new mt(4,6,32,32,xt),new mt(4,4,16,16,vt),new mt(8,16,32,32,vt),new mt(8,16,128,128,vt),new mt(8,32,128,256,vt),new mt(32,128,258,1024,vt),new mt(32,258,258,4096,vt)],i.deflateInit=function(yt,ht){return Ut(yt,ht,8,15,8,0)},i.deflateInit2=Ut,i.deflateReset=Ft,i.deflateResetKeep=Rt,i.deflateSetHeader=function(yt,ht){return yt&&yt.state?yt.state.wrap!==2?-2:(yt.state.gzhead=ht,0):-2},i.deflate=function(yt,ht){var Ct,St,kt,Lt;if(!yt||!yt.state||ht>5||ht<0)return yt?rt(yt,-2):-2;if(St=yt.state,!yt.output||!yt.input&&yt.avail_in!==0||St.status===666&&ht!==4)return rt(yt,yt.avail_out===0?-5:-2);if(St.strm=yt,Ct=St.last_flush,St.last_flush=ht,St.status===42)if(St.wrap===2)yt.adler=0,it(St,31),it(St,139),it(St,8),St.gzhead?(it(St,(St.gzhead.text?1:0)+(St.gzhead.hcrc?2:0)+(St.gzhead.extra?4:0)+(St.gzhead.name?8:0)+(St.gzhead.comment?16:0)),it(St,255&St.gzhead.time),it(St,St.gzhead.time>>8&255),it(St,St.gzhead.time>>16&255),it(St,St.gzhead.time>>24&255),it(St,St.level===9?2:St.strategy>=2||St.level<2?4:0),it(St,255&St.gzhead.os),St.gzhead.extra&&St.gzhead.extra.length&&(it(St,255&St.gzhead.extra.length),it(St,St.gzhead.extra.length>>8&255)),St.gzhead.hcrc&&(yt.adler=_e(yt.adler,St.pending_buf,St.pending,0)),St.gzindex=0,St.status=69):(it(St,0),it(St,0),it(St,0),it(St,0),it(St,0),it(St,St.level===9?2:St.strategy>=2||St.level<2?4:0),it(St,3),St.status=113);else{var Mt=8+(St.w_bits-8<<4)<<8;Mt|=(St.strategy>=2||St.level<2?0:St.level<6?1:St.level===6?2:3)<<6,St.strstart!==0&&(Mt|=32),Mt+=31-Mt%31,St.status=113,ut(St,Mt),St.strstart!==0&&(ut(St,yt.adler>>>16),ut(St,65535&yt.adler)),yt.adler=1}if(St.status===69)if(St.gzhead.extra){for(kt=St.pending;St.gzindex<(65535&St.gzhead.extra.length)&&(St.pending!==St.pending_buf_size||(St.gzhead.hcrc&&St.pending>kt&&(yt.adler=_e(yt.adler,St.pending_buf,St.pending-kt,kt)),st(yt),kt=St.pending,St.pending!==St.pending_buf_size));)it(St,255&St.gzhead.extra[St.gzindex]),St.gzindex++;St.gzhead.hcrc&&St.pending>kt&&(yt.adler=_e(yt.adler,St.pending_buf,St.pending-kt,kt)),St.gzindex===St.gzhead.extra.length&&(St.gzindex=0,St.status=73)}else St.status=73;if(St.status===73)if(St.gzhead.name){kt=St.pending;do{if(St.pending===St.pending_buf_size&&(St.gzhead.hcrc&&St.pending>kt&&(yt.adler=_e(yt.adler,St.pending_buf,St.pending-kt,kt)),st(yt),kt=St.pending,St.pending===St.pending_buf_size)){Lt=1;break}Lt=St.gzindexkt&&(yt.adler=_e(yt.adler,St.pending_buf,St.pending-kt,kt)),Lt===0&&(St.gzindex=0,St.status=91)}else St.status=91;if(St.status===91)if(St.gzhead.comment){kt=St.pending;do{if(St.pending===St.pending_buf_size&&(St.gzhead.hcrc&&St.pending>kt&&(yt.adler=_e(yt.adler,St.pending_buf,St.pending-kt,kt)),st(yt),kt=St.pending,St.pending===St.pending_buf_size)){Lt=1;break}Lt=St.gzindexkt&&(yt.adler=_e(yt.adler,St.pending_buf,St.pending-kt,kt)),Lt===0&&(St.status=103)}else St.status=103;if(St.status===103&&(St.gzhead.hcrc?(St.pending+2>St.pending_buf_size&&st(yt),St.pending+2<=St.pending_buf_size&&(it(St,255&yt.adler),it(St,yt.adler>>8&255),yt.adler=0,St.status=113)):St.status=113),St.pending!==0){if(st(yt),yt.avail_out===0)return St.last_flush=-1,0}else if(yt.avail_in===0&&at(ht)<=at(Ct)&&ht!==4)return rt(yt,-5);if(St.status===666&&yt.avail_in!==0)return rt(yt,-5);if(yt.avail_in!==0||St.lookahead!==0||ht!==0&&St.status!==666){var Tt=St.strategy===2?function(Ot,At){for(var wt;;){if(Ot.lookahead===0&&(bt(Ot),Ot.lookahead===0)){if(At===0)return 1;break}if(Ot.match_length=0,wt=Z._tr_tally(Ot,0,Ot.window[Ot.strstart]),Ot.lookahead--,Ot.strstart++,wt&&(lt(Ot,!1),Ot.strm.avail_out===0))return 1}return Ot.insert=0,At===4?(lt(Ot,!0),Ot.strm.avail_out===0?3:4):Ot.last_lit&&(lt(Ot,!1),Ot.strm.avail_out===0)?1:2}(St,ht):St.strategy===3?function(Ot,At){for(var wt,gt,Nt,Bt,Gt=Ot.window;;){if(Ot.lookahead<=258){if(bt(Ot),Ot.lookahead<=258&&At===0)return 1;if(Ot.lookahead===0)break}if(Ot.match_length=0,Ot.lookahead>=3&&Ot.strstart>0&&(gt=Gt[Nt=Ot.strstart-1])===Gt[++Nt]&>===Gt[++Nt]&>===Gt[++Nt]){Bt=Ot.strstart+258;do;while(gt===Gt[++Nt]&>===Gt[++Nt]&>===Gt[++Nt]&>===Gt[++Nt]&>===Gt[++Nt]&>===Gt[++Nt]&>===Gt[++Nt]&>===Gt[++Nt]&&NtOt.lookahead&&(Ot.match_length=Ot.lookahead)}if(Ot.match_length>=3?(wt=Z._tr_tally(Ot,1,Ot.match_length-3),Ot.lookahead-=Ot.match_length,Ot.strstart+=Ot.match_length,Ot.match_length=0):(wt=Z._tr_tally(Ot,0,Ot.window[Ot.strstart]),Ot.lookahead--,Ot.strstart++),wt&&(lt(Ot,!1),Ot.strm.avail_out===0))return 1}return Ot.insert=0,At===4?(lt(Ot,!0),Ot.strm.avail_out===0?3:4):Ot.last_lit&&(lt(Ot,!1),Ot.strm.avail_out===0)?1:2}(St,ht):j[St.level].func(St,ht);if(Tt!==3&&Tt!==4||(St.status=666),Tt===1||Tt===3)return yt.avail_out===0&&(St.last_flush=-1),0;if(Tt===2&&(ht===1?Z._tr_align(St):ht!==5&&(Z._tr_stored_block(St,0,0,!1),ht===3&&(ft(St.head),St.lookahead===0&&(St.strstart=0,St.block_start=0,St.insert=0))),st(yt),yt.avail_out===0))return St.last_flush=-1,0}return ht!==4?0:St.wrap<=0?1:(St.wrap===2?(it(St,255&yt.adler),it(St,yt.adler>>8&255),it(St,yt.adler>>16&255),it(St,yt.adler>>24&255),it(St,255&yt.total_in),it(St,yt.total_in>>8&255),it(St,yt.total_in>>16&255),it(St,yt.total_in>>24&255)):(ut(St,yt.adler>>>16),ut(St,65535&yt.adler)),st(yt),St.wrap>0&&(St.wrap=-St.wrap),St.pending!==0?0:1)},i.deflateEnd=function(yt){var ht;return yt&&yt.state?(ht=yt.state.status)!==42&&ht!==69&&ht!==73&&ht!==91&&ht!==103&&ht!==113&&ht!==666?rt(yt,-2):(yt.state=null,ht===113?rt(yt,-3):0):-2},i.deflateSetDictionary=function(yt,ht){var Ct,St,kt,Lt,Mt,Tt,Ot,At,wt=ht.length;if(!yt||!yt.state||(Lt=(Ct=yt.state).wrap)===2||Lt===1&&Ct.status!==42||Ct.lookahead)return-2;for(Lt===1&&(yt.adler=et(yt.adler,ht,wt,0)),Ct.wrap=0,wt>=Ct.w_size&&(Lt===0&&(ft(Ct.head),Ct.strstart=0,Ct.block_start=0,Ct.insert=0),At=new $.Buf8(Ct.w_size),$.arraySet(At,ht,wt-Ct.w_size,Ct.w_size,0),ht=At,wt=Ct.w_size),Mt=yt.avail_in,Tt=yt.next_in,Ot=yt.input,yt.avail_in=wt,yt.next_in=0,yt.input=ht,bt(Ct);Ct.lookahead>=3;){St=Ct.strstart,kt=Ct.lookahead-2;do Ct.ins_h=(Ct.ins_h<=0;)gt[Nt]=0}var Z=[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],et=[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],_e=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],nt=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],rt=new Array(576);$(rt);var at=new Array(60);$(at);var ft=new Array(512);$(ft);var st=new Array(256);$(st);var lt=new Array(29);$(lt);var it,ut,pt,bt=new Array(30);function xt(gt,Nt,Bt,Gt,Kt){this.static_tree=gt,this.extra_bits=Nt,this.extra_base=Bt,this.elems=Gt,this.max_length=Kt,this.has_stree=gt&>.length}function vt(gt,Nt){this.dyn_tree=gt,this.max_code=0,this.stat_desc=Nt}function mt(gt){return gt<256?ft[gt]:ft[256+(gt>>>7)]}function ct(gt,Nt){gt.pending_buf[gt.pending++]=255&Nt,gt.pending_buf[gt.pending++]=Nt>>>8&255}function Rt(gt,Nt,Bt){gt.bi_valid>16-Bt?(gt.bi_buf|=Nt<>16-gt.bi_valid,gt.bi_valid+=Bt-16):(gt.bi_buf|=Nt<>>=1,Bt<<=1;while(--Nt>0);return Bt>>>1}function yt(gt,Nt,Bt){var Gt,Kt,Zt=new Array(16),zt=0;for(Gt=1;Gt<=15;Gt++)Zt[Gt]=zt=zt+Bt[Gt-1]<<1;for(Kt=0;Kt<=Nt;Kt++){var $t=gt[2*Kt+1];$t!==0&&(gt[2*Kt]=Ut(Zt[$t]++,$t))}}function ht(gt){var Nt;for(Nt=0;Nt<286;Nt++)gt.dyn_ltree[2*Nt]=0;for(Nt=0;Nt<30;Nt++)gt.dyn_dtree[2*Nt]=0;for(Nt=0;Nt<19;Nt++)gt.bl_tree[2*Nt]=0;gt.dyn_ltree[512]=1,gt.opt_len=gt.static_len=0,gt.last_lit=gt.matches=0}function Ct(gt){gt.bi_valid>8?ct(gt,gt.bi_buf):gt.bi_valid>0&&(gt.pending_buf[gt.pending++]=gt.bi_buf),gt.bi_buf=0,gt.bi_valid=0}function St(gt,Nt,Bt,Gt){var Kt=2*Nt,Zt=2*Bt;return gt[Kt]>1;Bt>=1;Bt--)kt(gt,Zt,Bt);Kt=Et;do Bt=gt.heap[1],gt.heap[1]=gt.heap[gt.heap_len--],kt(gt,Zt,1),Gt=gt.heap[1],gt.heap[--gt.heap_max]=Bt,gt.heap[--gt.heap_max]=Gt,Zt[2*Kt]=Zt[2*Bt]+Zt[2*Gt],gt.depth[Kt]=(gt.depth[Bt]>=gt.depth[Gt]?gt.depth[Bt]:gt.depth[Gt])+1,Zt[2*Bt+1]=Zt[2*Gt+1]=Kt,gt.heap[1]=Kt++,kt(gt,Zt,1);while(gt.heap_len>=2);gt.heap[--gt.heap_max]=gt.heap[1],function(Dt,Jt){var Qt,nn,cn,sn,Vt,qt,tn=Jt.dyn_tree,hn=Jt.max_code,an=Jt.stat_desc.static_tree,_n=Jt.stat_desc.has_stree,mn=Jt.stat_desc.extra_bits,vn=Jt.stat_desc.extra_base,un=Jt.stat_desc.max_length,fn=0;for(sn=0;sn<=15;sn++)Dt.bl_count[sn]=0;for(tn[2*Dt.heap[Dt.heap_max]+1]=0,Qt=Dt.heap_max+1;Qt<573;Qt++)(sn=tn[2*tn[2*(nn=Dt.heap[Qt])+1]+1]+1)>un&&(sn=un,fn++),tn[2*nn+1]=sn,nn>hn||(Dt.bl_count[sn]++,Vt=0,nn>=vn&&(Vt=mn[nn-vn]),qt=tn[2*nn],Dt.opt_len+=qt*(sn+Vt),_n&&(Dt.static_len+=qt*(an[2*nn+1]+Vt)));if(fn!==0){do{for(sn=un-1;Dt.bl_count[sn]===0;)sn--;Dt.bl_count[sn]--,Dt.bl_count[sn+1]+=2,Dt.bl_count[un]--,fn-=2}while(fn>0);for(sn=un;sn!==0;sn--)for(nn=Dt.bl_count[sn];nn!==0;)(cn=Dt.heap[--Qt])>hn||(tn[2*cn+1]!==sn&&(Dt.opt_len+=(sn-tn[2*cn+1])*tn[2*cn],tn[2*cn+1]=sn),nn--)}}(gt,Nt),yt(Zt,It,gt.bl_count)}function Tt(gt,Nt,Bt){var Gt,Kt,Zt=-1,zt=Nt[1],$t=0,Et=7,It=4;for(zt===0&&(Et=138,It=3),Nt[2*(Bt+1)+1]=65535,Gt=0;Gt<=Bt;Gt++)Kt=zt,zt=Nt[2*(Gt+1)+1],++$t>=7;Kt<30;Kt++)for(bt[Kt]=Zt<<7,Nt=0;Nt<1<0?(gt.strm.data_type===2&&(gt.strm.data_type=function($t){var Et,It=4093624447;for(Et=0;Et<=31;Et++,It>>>=1)if(1&It&&$t.dyn_ltree[2*Et]!==0)return 0;if($t.dyn_ltree[18]!==0||$t.dyn_ltree[20]!==0||$t.dyn_ltree[26]!==0)return 1;for(Et=32;Et<256;Et++)if($t.dyn_ltree[2*Et]!==0)return 1;return 0}(gt)),Mt(gt,gt.l_desc),Mt(gt,gt.d_desc),zt=function($t){var Et;for(Tt($t,$t.dyn_ltree,$t.l_desc.max_code),Tt($t,$t.dyn_dtree,$t.d_desc.max_code),Mt($t,$t.bl_desc),Et=18;Et>=3&&$t.bl_tree[2*nt[Et]+1]===0;Et--);return $t.opt_len+=3*(Et+1)+5+5+4,Et}(gt),Kt=gt.opt_len+3+7>>>3,(Zt=gt.static_len+3+7>>>3)<=Kt&&(Kt=Zt)):Kt=Zt=Bt+5,Bt+4<=Kt&&Nt!==-1?wt(gt,Nt,Bt,Gt):gt.strategy===4||Zt===Kt?(Rt(gt,2+(Gt?1:0),3),Lt(gt,rt,at)):(Rt(gt,4+(Gt?1:0),3),function($t,Et,It,Dt){var Jt;for(Rt($t,Et-257,5),Rt($t,It-1,5),Rt($t,Dt-4,4),Jt=0;Jt>>8&255,gt.pending_buf[gt.d_buf+2*gt.last_lit+1]=255&Nt,gt.pending_buf[gt.l_buf+gt.last_lit]=255&Bt,gt.last_lit++,Nt===0?gt.dyn_ltree[2*Bt]++:(gt.matches++,Nt--,gt.dyn_ltree[2*(st[Bt]+256+1)]++,gt.dyn_dtree[2*mt(Nt)]++),gt.last_lit===gt.lit_bufsize-1},i._tr_align=function(gt){Rt(gt,2,3),Ft(gt,256,rt),function(Nt){Nt.bi_valid===16?(ct(Nt,Nt.bi_buf),Nt.bi_buf=0,Nt.bi_valid=0):Nt.bi_valid>=8&&(Nt.pending_buf[Nt.pending++]=255&Nt.bi_buf,Nt.bi_buf>>=8,Nt.bi_valid-=8)}(gt)}},function(o,i,s){o.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"}},function(o,i,s){var j=s(33),$=s(73),Z=s(74),et=s(175),_e=s(176);function nt(vt){return(vt>>>24&255)+(vt>>>8&65280)+((65280&vt)<<8)+((255&vt)<<24)}function rt(){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 j.Buf16(320),this.work=new j.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function at(vt){var mt;return vt&&vt.state?(mt=vt.state,vt.total_in=vt.total_out=mt.total=0,vt.msg="",mt.wrap&&(vt.adler=1&mt.wrap),mt.mode=1,mt.last=0,mt.havedict=0,mt.dmax=32768,mt.head=null,mt.hold=0,mt.bits=0,mt.lencode=mt.lendyn=new j.Buf32(852),mt.distcode=mt.distdyn=new j.Buf32(592),mt.sane=1,mt.back=-1,0):-2}function ft(vt){var mt;return vt&&vt.state?((mt=vt.state).wsize=0,mt.whave=0,mt.wnext=0,at(vt)):-2}function st(vt,mt){var ct,Rt;return vt&&vt.state?(Rt=vt.state,mt<0?(ct=0,mt=-mt):(ct=1+(mt>>4),mt<48&&(mt&=15)),mt&&(mt<8||mt>15)?-2:(Rt.window!==null&&Rt.wbits!==mt&&(Rt.window=null),Rt.wrap=ct,Rt.wbits=mt,ft(vt))):-2}function lt(vt,mt){var ct,Rt;return vt?(Rt=new rt,vt.state=Rt,Rt.window=null,(ct=st(vt,mt))!==0&&(vt.state=null),ct):-2}var it,ut,pt=!0;function bt(vt){if(pt){var mt;for(it=new j.Buf32(512),ut=new j.Buf32(32),mt=0;mt<144;)vt.lens[mt++]=8;for(;mt<256;)vt.lens[mt++]=9;for(;mt<280;)vt.lens[mt++]=7;for(;mt<288;)vt.lens[mt++]=8;for(_e(1,vt.lens,0,288,it,0,vt.work,{bits:9}),mt=0;mt<32;)vt.lens[mt++]=5;_e(2,vt.lens,0,32,ut,0,vt.work,{bits:5}),pt=!1}vt.lencode=it,vt.lenbits=9,vt.distcode=ut,vt.distbits=5}function xt(vt,mt,ct,Rt){var Ft,Ut=vt.state;return Ut.window===null&&(Ut.wsize=1<=Ut.wsize?(j.arraySet(Ut.window,mt,ct-Ut.wsize,Ut.wsize,0),Ut.wnext=0,Ut.whave=Ut.wsize):((Ft=Ut.wsize-Ut.wnext)>Rt&&(Ft=Rt),j.arraySet(Ut.window,mt,ct-Rt,Ft,Ut.wnext),(Rt-=Ft)?(j.arraySet(Ut.window,mt,ct-Rt,Rt,0),Ut.wnext=Rt,Ut.whave=Ut.wsize):(Ut.wnext+=Ft,Ut.wnext===Ut.wsize&&(Ut.wnext=0),Ut.whave>>8&255,ct.check=Z(ct.check,Dt,2,0),St=0,kt=0,ct.mode=2;break}if(ct.flags=0,ct.head&&(ct.head.done=!1),!(1&ct.wrap)||(((255&St)<<8)+(St>>8))%31){vt.msg="incorrect header check",ct.mode=30;break}if((15&St)!=8){vt.msg="unknown compression method",ct.mode=30;break}if(kt-=4,Zt=8+(15&(St>>>=4)),ct.wbits===0)ct.wbits=Zt;else if(Zt>ct.wbits){vt.msg="invalid window size",ct.mode=30;break}ct.dmax=1<>8&1),512&ct.flags&&(Dt[0]=255&St,Dt[1]=St>>>8&255,ct.check=Z(ct.check,Dt,2,0)),St=0,kt=0,ct.mode=3;case 3:for(;kt<32;){if(ht===0)break e;ht--,St+=Rt[Ut++]<>>8&255,Dt[2]=St>>>16&255,Dt[3]=St>>>24&255,ct.check=Z(ct.check,Dt,4,0)),St=0,kt=0,ct.mode=4;case 4:for(;kt<16;){if(ht===0)break e;ht--,St+=Rt[Ut++]<>8),512&ct.flags&&(Dt[0]=255&St,Dt[1]=St>>>8&255,ct.check=Z(ct.check,Dt,2,0)),St=0,kt=0,ct.mode=5;case 5:if(1024&ct.flags){for(;kt<16;){if(ht===0)break e;ht--,St+=Rt[Ut++]<>>8&255,ct.check=Z(ct.check,Dt,2,0)),St=0,kt=0}else ct.head&&(ct.head.extra=null);ct.mode=6;case 6:if(1024&ct.flags&&((Tt=ct.length)>ht&&(Tt=ht),Tt&&(ct.head&&(Zt=ct.head.extra_len-ct.length,ct.head.extra||(ct.head.extra=new Array(ct.head.extra_len)),j.arraySet(ct.head.extra,Rt,Ut,Tt,Zt)),512&ct.flags&&(ct.check=Z(ct.check,Rt,Tt,Ut)),ht-=Tt,Ut+=Tt,ct.length-=Tt),ct.length))break e;ct.length=0,ct.mode=7;case 7:if(2048&ct.flags){if(ht===0)break e;Tt=0;do Zt=Rt[Ut+Tt++],ct.head&&Zt&&ct.length<65536&&(ct.head.name+=String.fromCharCode(Zt));while(Zt&&Tt>9&1,ct.head.done=!0),vt.adler=ct.check=0,ct.mode=12;break;case 10:for(;kt<32;){if(ht===0)break e;ht--,St+=Rt[Ut++]<>>=7&kt,kt-=7&kt,ct.mode=27;break}for(;kt<3;){if(ht===0)break e;ht--,St+=Rt[Ut++]<>>=1)){case 0:ct.mode=14;break;case 1:if(bt(ct),ct.mode=20,mt===6){St>>>=2,kt-=2;break e}break;case 2:ct.mode=17;break;case 3:vt.msg="invalid block type",ct.mode=30}St>>>=2,kt-=2;break;case 14:for(St>>>=7&kt,kt-=7&kt;kt<32;){if(ht===0)break e;ht--,St+=Rt[Ut++]<>>16^65535)){vt.msg="invalid stored block lengths",ct.mode=30;break}if(ct.length=65535&St,St=0,kt=0,ct.mode=15,mt===6)break e;case 15:ct.mode=16;case 16:if(Tt=ct.length){if(Tt>ht&&(Tt=ht),Tt>Ct&&(Tt=Ct),Tt===0)break e;j.arraySet(Ft,Rt,Ut,Tt,yt),ht-=Tt,Ut+=Tt,Ct-=Tt,yt+=Tt,ct.length-=Tt;break}ct.mode=12;break;case 17:for(;kt<14;){if(ht===0)break e;ht--,St+=Rt[Ut++]<>>=5,kt-=5,ct.ndist=1+(31&St),St>>>=5,kt-=5,ct.ncode=4+(15&St),St>>>=4,kt-=4,ct.nlen>286||ct.ndist>30){vt.msg="too many length or distance symbols",ct.mode=30;break}ct.have=0,ct.mode=18;case 18:for(;ct.have>>=3,kt-=3}for(;ct.have<19;)ct.lens[Jt[ct.have++]]=0;if(ct.lencode=ct.lendyn,ct.lenbits=7,$t={bits:ct.lenbits},zt=_e(0,ct.lens,0,19,ct.lencode,0,ct.work,$t),ct.lenbits=$t.bits,zt){vt.msg="invalid code lengths set",ct.mode=30;break}ct.have=0,ct.mode=19;case 19:for(;ct.have>>16&255,Nt=65535&It,!((wt=It>>>24)<=kt);){if(ht===0)break e;ht--,St+=Rt[Ut++]<>>=wt,kt-=wt,ct.lens[ct.have++]=Nt;else{if(Nt===16){for(Et=wt+2;kt>>=wt,kt-=wt,ct.have===0){vt.msg="invalid bit length repeat",ct.mode=30;break}Zt=ct.lens[ct.have-1],Tt=3+(3&St),St>>>=2,kt-=2}else if(Nt===17){for(Et=wt+3;kt>>=wt)),St>>>=3,kt-=3}else{for(Et=wt+7;kt>>=wt)),St>>>=7,kt-=7}if(ct.have+Tt>ct.nlen+ct.ndist){vt.msg="invalid bit length repeat",ct.mode=30;break}for(;Tt--;)ct.lens[ct.have++]=Zt}}if(ct.mode===30)break;if(ct.lens[256]===0){vt.msg="invalid code -- missing end-of-block",ct.mode=30;break}if(ct.lenbits=9,$t={bits:ct.lenbits},zt=_e(1,ct.lens,0,ct.nlen,ct.lencode,0,ct.work,$t),ct.lenbits=$t.bits,zt){vt.msg="invalid literal/lengths set",ct.mode=30;break}if(ct.distbits=6,ct.distcode=ct.distdyn,$t={bits:ct.distbits},zt=_e(2,ct.lens,ct.nlen,ct.ndist,ct.distcode,0,ct.work,$t),ct.distbits=$t.bits,zt){vt.msg="invalid distances set",ct.mode=30;break}if(ct.mode=20,mt===6)break e;case 20:ct.mode=21;case 21:if(ht>=6&&Ct>=258){vt.next_out=yt,vt.avail_out=Ct,vt.next_in=Ut,vt.avail_in=ht,ct.hold=St,ct.bits=kt,et(vt,Mt),yt=vt.next_out,Ft=vt.output,Ct=vt.avail_out,Ut=vt.next_in,Rt=vt.input,ht=vt.avail_in,St=ct.hold,kt=ct.bits,ct.mode===12&&(ct.back=-1);break}for(ct.back=0;gt=(It=ct.lencode[St&(1<>>16&255,Nt=65535&It,!((wt=It>>>24)<=kt);){if(ht===0)break e;ht--,St+=Rt[Ut++]<>Bt)])>>>16&255,Nt=65535&It,!(Bt+(wt=It>>>24)<=kt);){if(ht===0)break e;ht--,St+=Rt[Ut++]<>>=Bt,kt-=Bt,ct.back+=Bt}if(St>>>=wt,kt-=wt,ct.back+=wt,ct.length=Nt,gt===0){ct.mode=26;break}if(32>){ct.back=-1,ct.mode=12;break}if(64>){vt.msg="invalid literal/length code",ct.mode=30;break}ct.extra=15>,ct.mode=22;case 22:if(ct.extra){for(Et=ct.extra;kt>>=ct.extra,kt-=ct.extra,ct.back+=ct.extra}ct.was=ct.length,ct.mode=23;case 23:for(;gt=(It=ct.distcode[St&(1<>>16&255,Nt=65535&It,!((wt=It>>>24)<=kt);){if(ht===0)break e;ht--,St+=Rt[Ut++]<>Bt)])>>>16&255,Nt=65535&It,!(Bt+(wt=It>>>24)<=kt);){if(ht===0)break e;ht--,St+=Rt[Ut++]<>>=Bt,kt-=Bt,ct.back+=Bt}if(St>>>=wt,kt-=wt,ct.back+=wt,64>){vt.msg="invalid distance code",ct.mode=30;break}ct.offset=Nt,ct.extra=15>,ct.mode=24;case 24:if(ct.extra){for(Et=ct.extra;kt>>=ct.extra,kt-=ct.extra,ct.back+=ct.extra}if(ct.offset>ct.dmax){vt.msg="invalid distance too far back",ct.mode=30;break}ct.mode=25;case 25:if(Ct===0)break e;if(Tt=Mt-Ct,ct.offset>Tt){if((Tt=ct.offset-Tt)>ct.whave&&ct.sane){vt.msg="invalid distance too far back",ct.mode=30;break}Tt>ct.wnext?(Tt-=ct.wnext,Ot=ct.wsize-Tt):Ot=ct.wnext-Tt,Tt>ct.length&&(Tt=ct.length),At=ct.window}else At=Ft,Ot=yt-ct.offset,Tt=ct.length;Tt>Ct&&(Tt=Ct),Ct-=Tt,ct.length-=Tt;do Ft[yt++]=At[Ot++];while(--Tt);ct.length===0&&(ct.mode=21);break;case 26:if(Ct===0)break e;Ft[yt++]=ct.length,Ct--,ct.mode=21;break;case 27:if(ct.wrap){for(;kt<32;){if(ht===0)break e;ht--,St|=Rt[Ut++]<>>=Ft=Rt>>>24,bt-=Ft,(Ft=Rt>>>16&255)===0)kt[nt++]=65535&Rt;else{if(!(16&Ft)){if((64&Ft)==0){Rt=xt[(65535&Rt)+(pt&(1<>>=Ft,bt-=Ft),bt<15&&(pt+=St[et++]<>>=Ft=Rt>>>24,bt-=Ft,!(16&(Ft=Rt>>>16&255))){if((64&Ft)==0){Rt=vt[(65535&Rt)+(pt&(1<ft){j.msg="invalid distance too far back",Z.mode=30;break e}if(pt>>>=Ft,bt-=Ft,yt>(Ft=nt-rt)){if((Ft=yt-Ft)>lt&&Z.sane){j.msg="invalid distance too far back",Z.mode=30;break e}if(ht=0,Ct=ut,it===0){if(ht+=st-Ft,Ft2;)kt[nt++]=Ct[ht++],kt[nt++]=Ct[ht++],kt[nt++]=Ct[ht++],Ut-=3;Ut&&(kt[nt++]=Ct[ht++],Ut>1&&(kt[nt++]=Ct[ht++]))}else{ht=nt-yt;do kt[nt++]=kt[ht++],kt[nt++]=kt[ht++],kt[nt++]=kt[ht++],Ut-=3;while(Ut>2);Ut&&(kt[nt++]=kt[ht++],Ut>1&&(kt[nt++]=kt[ht++]))}break}}break}}while(et<_e&&nt>3,pt&=(1<<(bt-=Ut<<3))-1,j.next_in=et,j.next_out=nt,j.avail_in=et<_e?_e-et+5:5-(et-_e),j.avail_out=nt=1&&Bt[kt]===0;kt--);if(Lt>kt&&(Lt=kt),kt===0)return st[lt++]=20971520,st[lt++]=20971520,ut.bits=1,0;for(St=1;St0&&(nt===0||kt!==1))return-1;for(Gt[1]=0,ht=1;ht<15;ht++)Gt[ht+1]=Gt[ht]+Bt[ht];for(Ct=0;Ct852||nt===2&&At>592)return 1;for(;;){Rt=ht-Tt,it[Ct]ct?(Ft=Kt[Zt+it[Ct]],Ut=gt[Nt+it[Ct]]):(Ft=96,Ut=0),pt=1<>Tt)+(bt-=pt)]=Rt<<24|Ft<<16|Ut|0;while(bt!==0);for(pt=1<>=1;if(pt!==0?(wt&=pt-1,wt+=pt):wt=0,Ct++,--Bt[ht]==0){if(ht===kt)break;ht=rt[at+it[Ct]]}if(ht>Lt&&(wt&vt)!==xt){for(Tt===0&&(Tt=Lt),mt+=St,Ot=1<<(Mt=ht-Tt);Mt+Tt852||nt===2&&At>592)return 1;st[xt=wt&vt]=Lt<<24|Mt<<16|mt-lt|0}}return wt!==0&&(st[mt+wt]=ht-Tt<<24|64<<16|0),ut.bits=Lt,0}},function(o,i,s){o.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}},function(o,i){},function(o,i,s){function j(rt,at){var ft=Object.keys(rt);if(Object.getOwnPropertySymbols){var st=Object.getOwnPropertySymbols(rt);at&&(st=st.filter(function(lt){return Object.getOwnPropertyDescriptor(rt,lt).enumerable})),ft.push.apply(ft,st)}return ft}function $(rt,at,ft){return at in rt?Object.defineProperty(rt,at,{value:ft,enumerable:!0,configurable:!0,writable:!0}):rt[at]=ft,rt}function Z(rt,at){for(var ft=0;ft0?this.tail.next=lt:this.head=lt,this.tail=lt,++this.length}},{key:"unshift",value:function(st){var lt={data:st,next:this.head};this.length===0&&(this.tail=lt),this.head=lt,++this.length}},{key:"shift",value:function(){if(this.length!==0){var st=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,st}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(st){if(this.length===0)return"";for(var lt=this.head,it=""+lt.data;lt=lt.next;)it+=st+lt.data;return it}},{key:"concat",value:function(st){if(this.length===0)return et.alloc(0);for(var lt,it,ut,pt=et.allocUnsafe(st>>>0),bt=this.head,xt=0;bt;)lt=bt.data,it=pt,ut=xt,et.prototype.copy.call(lt,it,ut),xt+=bt.data.length,bt=bt.next;return pt}},{key:"consume",value:function(st,lt){var it;return stpt.length?pt.length:st;if(bt===pt.length?ut+=pt:ut+=pt.slice(0,st),(st-=bt)==0){bt===pt.length?(++it,lt.next?this.head=lt.next:this.head=this.tail=null):(this.head=lt,lt.data=pt.slice(bt));break}++it}return this.length-=it,ut}},{key:"_getBuffer",value:function(st){var lt=et.allocUnsafe(st),it=this.head,ut=1;for(it.data.copy(lt),st-=it.data.length;it=it.next;){var pt=it.data,bt=st>pt.length?pt.length:st;if(pt.copy(lt,lt.length-st,0,bt),(st-=bt)==0){bt===pt.length?(++ut,it.next?this.head=it.next:this.head=this.tail=null):(this.head=it,it.data=pt.slice(bt));break}++ut}return this.length-=ut,lt}},{key:nt,value:function(st,lt){return _e(this,function(it){for(var ut=1;ut0,function(ct){ut||(ut=ct),ct&&bt.forEach(rt),mt||(bt.forEach(rt),pt(ut))})});return lt.reduce(at)}},function(o,i,s){var j=s(186)(function $(Z,et){return(et=et||{}).namespace=Z,et.prod=!0,et.dev=!1,et.force||$.force?$.yep(et):$.nope(et)});o.exports=j},function(o,i){var s=[],j=[],$=function(){};function Z(it){return!~s.indexOf(it)&&(s.push(it),!0)}function et(it){$=it}function _e(it){for(var ut=[],pt=0;ptnt.start)&&(rt?rt(null,lt):st.emit("line",lt)),ut++,lt=""),setTimeout(xt,1e3);var ct=ft.write(at.slice(0,mt));rt||st.emit("data",ct);for(var Rt=(ct=(lt+ct).split(/\n+/)).length-1,Ft=0;Ftnt.start)&&(rt?rt(null,ct[Ft]):st.emit("line",ct[Ft])),ut++;return lt=ct[Rt],it+=mt,xt()});$.close(bt,_e)})()}),rt?st.destroy:st}}).call(this,s(4).Buffer)},function(o,i,s){(function(j,$){function Z(vt){return(Z=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(mt){return typeof mt}:function(mt){return mt&&typeof Symbol=="function"&&mt.constructor===Symbol&&mt!==Symbol.prototype?"symbol":typeof mt})(vt)}function et(vt,mt){var ct=Object.keys(vt);if(Object.getOwnPropertySymbols){var Rt=Object.getOwnPropertySymbols(vt);mt&&(Rt=Rt.filter(function(Ft){return Object.getOwnPropertyDescriptor(vt,Ft).enumerable})),ct.push.apply(ct,Rt)}return ct}function _e(vt){for(var mt=1;mt0&&arguments[0]!==void 0?arguments[0]:{};return rt(this,Ft),(Ut=Rt.call(this,yt)).options=yt,Ut.name=yt.name||"http",Ut.ssl=!!yt.ssl,Ut.host=yt.host||"localhost",Ut.port=yt.port,Ut.auth=yt.auth,Ut.path=yt.path||"",Ut.agent=yt.agent,Ut.headers=yt.headers||{},Ut.headers["content-type"]="application/json",Ut.port||(Ut.port=Ut.ssl?443:80),Ut}return mt=Ft,(ct=[{key:"log",value:function(Ut,yt){var ht=this;this._request(Ut,function(Ct,St){St&&St.statusCode!==200&&(Ct=new Error("Invalid HTTP Status Code: ".concat(St.statusCode))),Ct?ht.emit("warn",Ct):ht.emit("logged",Ut)}),yt&&j(yt)}},{key:"query",value:function(Ut,yt){typeof Ut=="function"&&(yt=Ut,Ut={}),(Ut={method:"query",params:this.normalizeQuery(Ut)}).params.path&&(Ut.path=Ut.params.path,delete Ut.params.path),Ut.params.auth&&(Ut.auth=Ut.params.auth,delete Ut.params.auth),this._request(Ut,function(ht,Ct,St){if(Ct&&Ct.statusCode!==200&&(ht=new Error("Invalid HTTP Status Code: ".concat(Ct.statusCode))),ht)return yt(ht);if(typeof St=="string")try{St=JSON.parse(St)}catch(kt){return yt(kt)}yt(null,St)})}},{key:"stream",value:function(){var Ut=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},yt=new bt;(Ut={method:"stream",params:Ut}).params.path&&(Ut.path=Ut.params.path,delete Ut.params.path),Ut.params.auth&&(Ut.auth=Ut.params.auth,delete Ut.params.auth);var ht="",Ct=this._request(Ut);return yt.destroy=function(){return Ct.destroy()},Ct.on("data",function(St){for(var kt=(St=(ht+St).split(/\n+/)).length-1,Lt=0;Lt= 0x80 (not a basic code point)","invalid-input":"Invalid input"},it=Math.floor,ut=String.fromCharCode;function pt(yt){throw new RangeError(lt[yt])}function bt(yt,ht){for(var Ct=yt.length,St=[];Ct--;)St[Ct]=ht(yt[Ct]);return St}function xt(yt,ht){var Ct=yt.split("@"),St="";return Ct.length>1&&(St=Ct[0]+"@",yt=Ct[1]),St+bt((yt=yt.replace(st,".")).split("."),ht).join(".")}function vt(yt){for(var ht,Ct,St=[],kt=0,Lt=yt.length;kt=55296&&ht<=56319&&kt65535&&(Ct+=ut((ht-=65536)>>>10&1023|55296),ht=56320|1023&ht),Ct+=ut(ht)}).join("")}function ct(yt,ht){return yt+22+75*(yt<26)-((ht!=0)<<5)}function Rt(yt,ht,Ct){var St=0;for(yt=Ct?it(yt/700):yt>>1,yt+=it(yt/ht);yt>455;St+=36)yt=it(yt/35);return it(St+36*yt/(yt+38))}function Ft(yt){var ht,Ct,St,kt,Lt,Mt,Tt,Ot,At,wt,gt,Nt=[],Bt=yt.length,Gt=0,Kt=128,Zt=72;for((Ct=yt.lastIndexOf("-"))<0&&(Ct=0),St=0;St=128&&pt("not-basic"),Nt.push(yt.charCodeAt(St));for(kt=Ct>0?Ct+1:0;kt=Bt&&pt("invalid-input"),((Ot=(gt=yt.charCodeAt(kt++))-48<10?gt-22:gt-65<26?gt-65:gt-97<26?gt-97:36)>=36||Ot>it((rt-Gt)/Mt))&&pt("overflow"),Gt+=Ot*Mt,!(Ot<(At=Tt<=Zt?1:Tt>=Zt+26?26:Tt-Zt));Tt+=36)Mt>it(rt/(wt=36-At))&&pt("overflow"),Mt*=wt;Zt=Rt(Gt-Lt,ht=Nt.length+1,Lt==0),it(Gt/ht)>rt-Kt&&pt("overflow"),Kt+=it(Gt/ht),Gt%=ht,Nt.splice(Gt++,0,Kt)}return mt(Nt)}function Ut(yt){var ht,Ct,St,kt,Lt,Mt,Tt,Ot,At,wt,gt,Nt,Bt,Gt,Kt,Zt=[];for(Nt=(yt=vt(yt)).length,ht=128,Ct=0,Lt=72,Mt=0;Mt=ht&>it((rt-Ct)/(Bt=St+1))&&pt("overflow"),Ct+=(Tt-ht)*Bt,ht=Tt,Mt=0;Mtrt&&pt("overflow"),gt==ht){for(Ot=Ct,At=36;!(Ot<(wt=At<=Lt?1:At>=Lt+26?26:At-Lt));At+=36)Kt=Ot-wt,Gt=36-wt,Zt.push(ut(ct(wt+Kt%Gt,0))),Ot=it(Kt/Gt);Zt.push(ut(ct(Ot,0))),Lt=Rt(Ct,Bt,St==kt),Ct=0,++St}++Ct,++ht}return Zt.join("")}nt={version:"1.4.1",ucs2:{decode:vt,encode:mt},decode:Ft,encode:Ut,toASCII:function(yt){return xt(yt,function(ht){return ft.test(ht)?"xn--"+Ut(ht):ht})},toUnicode:function(yt){return xt(yt,function(ht){return at.test(ht)?Ft(ht.slice(4).toLowerCase()):ht})}},(Z=function(){return nt}.call(i,s,i,j))===void 0||(j.exports=Z)})()}).call(this,s(194)(o),s(5))},function(o,i){o.exports=function(s){return s.webpackPolyfill||(s.deprecate=function(){},s.paths=[],s.children||(s.children=[]),Object.defineProperty(s,"loaded",{enumerable:!0,get:function(){return s.l}}),Object.defineProperty(s,"id",{enumerable:!0,get:function(){return s.i}}),s.webpackPolyfill=1),s}},function(o,i,s){o.exports={isString:function(j){return typeof j=="string"},isObject:function(j){return typeof j=="object"&&j!==null},isNull:function(j){return j===null},isNullOrUndefined:function(j){return j==null}}},function(o,i,s){i.decode=i.parse=s(197),i.encode=i.stringify=s(198)},function(o,i,s){function j(Z,et){return Object.prototype.hasOwnProperty.call(Z,et)}o.exports=function(Z,et,_e,nt){et=et||"&",_e=_e||"=";var rt={};if(typeof Z!="string"||Z.length===0)return rt;var at=/\+/g;Z=Z.split(et);var ft=1e3;nt&&typeof nt.maxKeys=="number"&&(ft=nt.maxKeys);var st=Z.length;ft>0&&st>ft&&(st=ft);for(var lt=0;lt=0?(it=xt.substr(0,vt),ut=xt.substr(vt+1)):(it=xt,ut=""),pt=decodeURIComponent(it),bt=decodeURIComponent(ut),j(rt,pt)?$(rt[pt])?rt[pt].push(bt):rt[pt]=[rt[pt],bt]:rt[pt]=bt}return rt};var $=Array.isArray||function(Z){return Object.prototype.toString.call(Z)==="[object Array]"}},function(o,i,s){var j=function(_e){switch(typeof _e){case"string":return _e;case"boolean":return _e?"true":"false";case"number":return isFinite(_e)?_e:"";default:return""}};o.exports=function(_e,nt,rt,at){return nt=nt||"&",rt=rt||"=",_e===null&&(_e=void 0),typeof _e=="object"?Z(et(_e),function(ft){var st=encodeURIComponent(j(ft))+rt;return $(_e[ft])?Z(_e[ft],function(lt){return st+encodeURIComponent(j(lt))}).join(nt):st+encodeURIComponent(j(_e[ft]))}).join(nt):at?encodeURIComponent(j(at))+rt+encodeURIComponent(j(_e)):""};var $=Array.isArray||function(_e){return Object.prototype.toString.call(_e)==="[object Array]"};function Z(_e,nt){if(_e.map)return _e.map(nt);for(var rt=[],at=0;at<_e.length;at++)rt.push(nt(_e[at],at));return rt}var et=Object.keys||function(_e){var nt=[];for(var rt in _e)Object.prototype.hasOwnProperty.call(_e,rt)&&nt.push(rt);return nt}},function(o,i,s){var j=s(81),$=s(46),Z=o.exports;for(var et in j)j.hasOwnProperty(et)&&(Z[et]=j[et]);function _e(nt){if(typeof nt=="string"&&(nt=$.parse(nt)),nt.protocol||(nt.protocol="https:"),nt.protocol!=="https:")throw new Error('Protocol "'+nt.protocol+'" not supported. Expected "https:"');return nt}Z.request=function(nt,rt){return nt=_e(nt),j.request.call(this,nt,rt)},Z.get=function(nt,rt){return nt=_e(nt),j.get.call(this,nt,rt)}},function(o,i,s){(function(j){function $(ut){return($=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(pt){return typeof pt}:function(pt){return pt&&typeof Symbol=="function"&&pt.constructor===Symbol&&pt!==Symbol.prototype?"symbol":typeof pt})(ut)}function Z(ut,pt){if(!(ut instanceof pt))throw new TypeError("Cannot call a class as a function")}function et(ut,pt){for(var bt=0;bt0&&arguments[0]!==void 0?arguments[0]:{};if(Z(this,vt),mt=xt.call(this,ct),!ct.stream||!ft(ct.stream))throw new Error("options.stream is required.");return mt._stream=ct.stream,mt._stream.setMaxListeners(1/0),mt.isObjectMode=ct.stream._writableState.objectMode,mt.eol=ct.eol||lt.EOL,mt}return pt=vt,(bt=[{key:"log",value:function(mt,ct){var Rt=this;if(j(function(){return Rt.emit("logged",mt)}),this.isObjectMode)return this._stream.write(mt),void(ct&&ct());this._stream.write("".concat(mt[st]).concat(this.eol)),ct&&ct()}}])&&et(pt.prototype,bt),vt}(it)}).call(this,s(12).setImmediate)},function(o,i,s){(function(j){function $(St,kt,Lt){return kt in St?Object.defineProperty(St,kt,{value:Lt,enumerable:!0,configurable:!0,writable:!0}):St[kt]=Lt,St}function Z(St){return(Z=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(kt){return typeof kt}:function(kt){return kt&&typeof Symbol=="function"&&kt.constructor===Symbol&&kt!==Symbol.prototype?"symbol":typeof kt})(St)}function et(St,kt){for(var Lt=0;Lt0&&arguments[0]!==void 0?arguments[0]:{},wt=At.silent,gt=At.format,Nt=At.defaultMeta,Bt=At.levels,Gt=At.level,Kt=Gt===void 0?"info":Gt,Zt=At.exitOnError,zt=Zt===void 0||Zt,$t=At.transports,Et=At.colors,It=At.emitErrs,Dt=At.formatters,Jt=At.padLevels,Qt=At.rewriters,nn=At.stripColors,cn=At.exceptionHandlers,sn=At.rejectionHandlers;if(this.transports.length&&this.clear(),this.silent=wt,this.format=gt||this.format||s(207)(),this.defaultMeta=Nt||null,this.levels=Bt||this.levels||Ut.npm.levels,this.level=Kt,this.exceptions=new vt(this),this.rejections=new mt(this),this.profilers={},this.exitOnError=zt,$t&&($t=Array.isArray($t)?$t:[$t]).forEach(function(Vt){return Ot.add(Vt)}),Et||It||Dt||Jt||Qt||nn)throw new Error(["{ colors, emitErrs, formatters, padLevels, rewriters, stripColors } were removed in winston@3.0.0.","Use a custom winston.format(function) instead.","See: https://github.com/winstonjs/winston/tree/master/UPGRADE-3.0.md"].join(` +`));cn&&this.exceptions.handle(cn),sn&&this.rejections.handle(sn)}},{key:"isLevelEnabled",value:function(Ot){var At=this,wt=Ct(this.levels,Ot);if(wt===null)return!1;var gt=Ct(this.levels,this.level);return gt!==null&&(this.transports&&this.transports.length!==0?this.transports.findIndex(function(Nt){var Bt=Ct(At.levels,Nt.level);return Bt===null&&(Bt=gt),Bt>=wt})!==-1:gt>=wt)}},{key:"log",value:function(Ot,At){for(var wt,gt,Nt=arguments.length,Bt=new Array(Nt>2?Nt-2:0),Gt=2;Gt2?new ct({transport:Ot}):Ot;if(!At._writableState||!At._writableState.objectMode)throw new Error("Transports must WritableStreams in objectMode. Set { objectMode: true }.");return this._onEvent("error",At),this._onEvent("warn",At),this.pipe(At),Ot.handleExceptions&&this.exceptions.handle(),Ot.handleRejections&&this.rejections.handle(),this}},{key:"remove",value:function(Ot){if(!Ot)return this;var At=Ot;return(!xt(Ot)||Ot.log.length>2)&&(At=this.transports.filter(function(wt){return wt.transport===Ot})[0]),At&&this.unpipe(At),this}},{key:"clear",value:function(){return this.unpipe(),this}},{key:"close",value:function(){return this.clear(),this.emit("close"),this}},{key:"setLevels",value:function(){Ft.deprecated("setLevels")}},{key:"query",value:function(Ot,At){typeof Ot=="function"&&(At=Ot,Ot={}),Ot=Ot||{};var wt={},gt=Object.assign({},Ot.query||{});it(this.transports.filter(function(Nt){return!!Nt.query}),function(Nt,Bt){(function(Gt,Kt){Ot.query&&typeof Gt.formatQuery=="function"&&(Ot.query=Gt.formatQuery(gt)),Gt.query(Ot,function(Zt,zt){if(Zt)return Kt(Zt);typeof Gt.formatResults=="function"&&(zt=Gt.formatResults(zt,Ot.format)),Kt(null,zt)})})(Nt,function(Gt,Kt){Bt&&((Kt=Gt||Kt)&&(wt[Nt.name]=Kt),Bt()),Bt=null})},function(){return At(null,wt)})}},{key:"stream",value:function(){var Ot=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},At=new st,wt=[];return At._streams=wt,At.destroy=function(){for(var gt=wt.length;gt--;)wt[gt].destroy()},this.transports.filter(function(gt){return!!gt.stream}).forEach(function(gt){var Nt=gt.stream(Ot);Nt&&(wt.push(Nt),Nt.on("log",function(Bt){Bt.transport=Bt.transport||[],Bt.transport.push(gt.name),At.emit("log",Bt)}),Nt.on("error",function(Bt){Bt.transport=Bt.transport||[],Bt.transport.push(gt.name),At.emit("error",Bt)}))}),At}},{key:"startTimer",value:function(){return new Rt(this)}},{key:"profile",value:function(Ot){var At=Date.now();if(this.profilers[Ot]){var wt=this.profilers[Ot];delete this.profilers[Ot];for(var gt=arguments.length,Nt=new Array(gt>1?gt-1:0),Bt=1;Btj($,et)},o.exports=i.default},function(o,i,s){var j=Object.prototype.toString;o.exports=function($){if(typeof $.displayName=="string"&&$.constructor.name)return $.displayName;if(typeof $.name=="string"&&$.name)return $.name;if(typeof $=="object"&&$.constructor&&typeof $.constructor.name=="string")return $.constructor.name;var Z=$.toString(),et=j.call($).slice(8,-1);return(Z=et==="Function"?Z.substring(Z.indexOf("(")+1,Z.indexOf(")")):et)||"anonymous"}},function(o,i,s){const j=s(10),{LEVEL:$}=s(3),Z=s(17),et=o.exports=function(_e={}){if(Z.call(this,_e),!_e.transport||typeof _e.transport.log!="function")throw new Error("Invalid transport, must be an object with a log method.");this.transport=_e.transport,this.level=this.level||_e.transport.level,this.handleExceptions=this.handleExceptions||_e.transport.handleExceptions,this._deprecated(),this.transport.__winstonError||(this.transport.__winstonError=function(nt){this.emit("error",nt,this.transport)}.bind(this),this.transport.on("error",this.transport.__winstonError))};j.inherits(et,Z),et.prototype._write=function(_e,nt,rt){if(this.silent||_e.exception===!0&&!this.handleExceptions)return rt(null);(!this.level||this.levels[this.level]>=this.levels[_e[$]])&&this.transport.log(_e[$],_e.message,_e,this._nop),rt(null)},et.prototype._writev=function(_e,nt){for(let rt=0;rt<_e.length;rt++)this._accept(_e[rt])&&(this.transport.log(_e[rt].chunk[$],_e[rt].chunk.message,_e[rt].chunk,this._nop),_e[rt].callback());return nt(null)},et.prototype._deprecated=function(){console.error([`${this.transport.name} is a legacy winston transport. Consider upgrading: `,"- Upgrade docs: https://github.com/winstonjs/winston/blob/master/UPGRADE-3.0.md"].join(` +`))},et.prototype.close=function(){this.transport.close&&this.transport.close(),this.transport.__winstonError&&(this.transport.removeListener("error",this.transport.__winstonError),this.transport.__winstonError=null)}},function(o,i,s){function j(Z){return(j=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(et){return typeof et}:function(et){return et&&typeof Symbol=="function"&&et.constructor===Symbol&&et!==Symbol.prototype?"symbol":typeof et})(Z)}function $(Z,et){for(var _e=0;_e(nt[Z]=(rt.stable?et.stableStringify:et)(nt,rt.replacer||_e,rt.space),nt))}).call(this,s(4).Buffer)},function(o,i,s){class j extends Error{constructor(Z){super(`Format functions must be synchronous taking a two arguments: (info, opts) +Found: ${Z.toString().split(` +`)[0]} +`),Error.captureStackTrace(this,j)}}o.exports=$=>{if($.length>2)throw new j($);function Z(_e={}){this.options=_e}function et(_e){return new Z(_e)}return Z.prototype.transform=$,et.Format=Z,et}},function(o,i,s){function j(et,_e){if(!(et instanceof _e))throw new TypeError("Cannot call a class as a function")}function $(et,_e){for(var nt=0;nt<_e.length;nt++){var rt=_e[nt];rt.enumerable=rt.enumerable||!1,rt.configurable=!0,"value"in rt&&(rt.writable=!0),Object.defineProperty(et,rt.key,rt)}}var Z=s(85);o.exports=function(){function et(){var rt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};j(this,et),this.loggers=new Map,this.options=rt}var _e,nt;return _e=et,(nt=[{key:"add",value:function(rt,at){var ft=this;if(!this.loggers.has(rt)){var st=(at=Object.assign({},at||this.options)).transports||this.options.transports;at.transports=st?st.slice():[];var lt=Z(at);lt.on("close",function(){return ft._delete(rt)}),this.loggers.set(rt,lt)}return this.loggers.get(rt)}},{key:"get",value:function(rt,at){return this.add(rt,at)}},{key:"has",value:function(rt){return!!this.loggers.has(rt)}},{key:"close",value:function(rt){var at=this;if(rt)return this._removeLogger(rt);this.loggers.forEach(function(ft,st){return at._removeLogger(st)})}},{key:"_removeLogger",value:function(rt){this.loggers.has(rt)&&(this.loggers.get(rt).close(),this._delete(rt))}},{key:"_delete",value:function(rt){this.loggers.delete(rt)}}])&&$(_e.prototype,nt),et}()},function(o,i,s){(function(j){const $=s(49),Z=/^([A-Za-z0-9+/]{4})*([A-Za-z0-9+/]{4}|[A-Za-z0-9+/]{3}=|[A-Za-z0-9+/]{2}==)$/;o.exports=function(et,_e,nt){let rt,at,ft=!1,st=!1;function lt(pt,bt){let xt=`"${_e}" ${bt}`;throw pt&&(xt=`${xt}, but is set to "${pt}"`),at&&(xt=`${xt}. An example of a valid value would be: ${at}`),new $(xt)}function it(pt){return function(){let bt=et[_e];if(bt===void 0)if(rt===void 0&&st)lt(void 0,"is a required variable, but it was not set");else{if(rt===void 0)return;bt=rt}st&&bt.trim().length===0&<(void 0,"is a required variable, but its value was empty"),ft&&(bt.match(Z)||lt(bt,"should be a valid base64 string if using convertFromBase64"),bt=j.from(bt,"base64").toString());const xt=[bt].concat(Array.prototype.slice.call(arguments));try{return pt.apply(pt,xt)}catch(vt){lt(bt,vt.message)}}}const ut={asArray:it(s(211)),asBoolStrict:it(s(212)),asBool:it(s(213)),asPortNumber:it(s(214)),asEnum:it(s(215)),asFloatNegative:it(s(216)),asFloatPositive:it(s(217)),asFloat:it(s(51)),asIntNegative:it(s(218)),asIntPositive:it(s(91)),asInt:it(s(50)),asJsonArray:it(s(219)),asJsonObject:it(s(220)),asJson:it(s(52)),asString:it(s(35)),asUrlObject:it(s(92)),asUrlString:it(s(221)),convertFromBase64:function(){return ft=!0,ut},default:function(pt){if(typeof pt=="number")rt=pt.toString();else if(Array.isArray(pt)||typeof pt=="object"&&pt!==null)rt=JSON.stringify(pt);else{if(typeof pt!="string")throw new $("values passed to default() must be of Number, String, Array, or Object type");rt=pt}return ut},required:function(pt){return st=pt===void 0||pt,ut},example:function(pt){return at=pt,ut}};return Object.entries(nt).forEach(([pt,bt])=>{ut[pt]=it(bt)}),ut}}).call(this,s(4).Buffer)},function(o,i,s){const j=s(35);o.exports=function($,Z){return Z=Z||",",$.length?j($).split(Z).filter(Boolean):[]}},function(o,i,s){o.exports=function(j){const $=j.toLowerCase();if($!=="false"&&$!=="true")throw new Error('should be either "true", "false", "TRUE", or "FALSE"');return $!=="false"}},function(o,i,s){o.exports=function(j){const $=j.toLowerCase();if(["false","0","true","1"].indexOf($)===-1)throw new Error('should be either "true", "false", "TRUE", "FALSE", 1, or 0');return!($==="0"||$==="false")}},function(o,i,s){const j=s(91);o.exports=function($){var Z=j($);if(Z>65535)throw new Error("cannot assign a port number greater than 65535");return Z}},function(o,i,s){const j=s(35);o.exports=function($,Z){const et=j($);if(Z.indexOf(et)<0)throw new Error(`should be one of [${Z.join(", ")}]`);return et}},function(o,i,s){const j=s(51);o.exports=function($){const Z=j($);if(Z>0)throw new Error("should be a negative float");return Z}},function(o,i,s){const j=s(51);o.exports=function($){const Z=j($);if(Z<0)throw new Error("should be a positive float");return Z}},function(o,i,s){const j=s(50);o.exports=function($){const Z=j($);if(Z>0)throw new Error("should be a negative integer");return Z}},function(o,i,s){const j=s(52);o.exports=function($){var Z=j($);if(!Array.isArray(Z))throw new Error("should be a parseable JSON Array");return Z}},function(o,i,s){const j=s(52);o.exports=function($){var Z=j($);if(Array.isArray(Z))throw new Error("should be a parseable JSON Object");return Z}},function(o,i,s){const j=s(92);o.exports=function($){return j($).toString()}},function(o,i,s){function j(_e){var nt=this;if(nt instanceof j||(nt=new j),nt.tail=null,nt.head=null,nt.length=0,_e&&typeof _e.forEach=="function")_e.forEach(function(ft){nt.push(ft)});else if(arguments.length>0)for(var rt=0,at=arguments.length;rt1)rt=nt;else{if(!this.head)throw new TypeError("Reduce of empty list with no initial value");at=this.head.next,rt=this.head.value}for(var ft=0;at!==null;ft++)rt=_e(rt,at.value,ft),at=at.next;return rt},j.prototype.reduceReverse=function(_e,nt){var rt,at=this.tail;if(arguments.length>1)rt=nt;else{if(!this.tail)throw new TypeError("Reduce of empty list with no initial value");at=this.tail.prev,rt=this.tail.value}for(var ft=this.length-1;at!==null;ft--)rt=_e(rt,at.value,ft),at=at.prev;return rt},j.prototype.toArray=function(){for(var _e=new Array(this.length),nt=0,rt=this.head;rt!==null;nt++)_e[nt]=rt.value,rt=rt.next;return _e},j.prototype.toArrayReverse=function(){for(var _e=new Array(this.length),nt=0,rt=this.tail;rt!==null;nt++)_e[nt]=rt.value,rt=rt.prev;return _e},j.prototype.slice=function(_e,nt){(nt=nt||this.length)<0&&(nt+=this.length),(_e=_e||0)<0&&(_e+=this.length);var rt=new j;if(nt<_e||nt<0)return rt;_e<0&&(_e=0),nt>this.length&&(nt=this.length);for(var at=0,ft=this.head;ft!==null&&at<_e;at++)ft=ft.next;for(;ft!==null&&atthis.length&&(nt=this.length);for(var at=this.length,ft=this.tail;ft!==null&&at>nt;at--)ft=ft.prev;for(;ft!==null&&at>_e;at--,ft=ft.prev)rt.push(ft.value);return rt},j.prototype.reverse=function(){for(var _e=this.head,nt=this.tail,rt=_e;rt!==null;rt=rt.prev){var at=rt.prev;rt.prev=rt.next,rt.next=at}return this.head=nt,this.tail=_e,this};try{s(223)(j)}catch{}},function(o,i,s){o.exports=function(j){j.prototype[Symbol.iterator]=function*(){for(let $=this.head;$;$=$.next)yield $.value}}},function(o,i,s){(function(j){(function(){var $,Z,et,_e,nt,rt;typeof performance!="undefined"&&performance!==null&&performance.now?o.exports=function(){return performance.now()}:j!=null&&j.hrtime?(o.exports=function(){return($()-nt)/1e6},Z=j.hrtime,_e=($=function(){var at;return 1e9*(at=Z())[0]+at[1]})(),rt=1e9*j.uptime(),nt=_e-rt):Date.now?(o.exports=function(){return Date.now()-et},et=Date.now()):(o.exports=function(){return new Date().getTime()-et},et=new Date().getTime())}).call(this)}).call(this,s(2))},function(o,i,s){var j,$,Z=s(96),et=s(97),_e=0,nt=0;o.exports=function(rt,at,ft){var st=at&&ft||0,lt=at||[],it=(rt=rt||{}).node||j,ut=rt.clockseq!==void 0?rt.clockseq:$;if(it==null||ut==null){var pt=Z();it==null&&(it=j=[1|pt[0],pt[1],pt[2],pt[3],pt[4],pt[5]]),ut==null&&(ut=$=16383&(pt[6]<<8|pt[7]))}var bt=rt.msecs!==void 0?rt.msecs:new Date().getTime(),xt=rt.nsecs!==void 0?rt.nsecs:nt+1,vt=bt-_e+(xt-nt)/1e4;if(vt<0&&rt.clockseq===void 0&&(ut=ut+1&16383),(vt<0||bt>_e)&&rt.nsecs===void 0&&(xt=0),xt>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");_e=bt,nt=xt,$=ut;var mt=(1e4*(268435455&(bt+=122192928e5))+xt)%4294967296;lt[st++]=mt>>>24&255,lt[st++]=mt>>>16&255,lt[st++]=mt>>>8&255,lt[st++]=255&mt;var ct=bt/4294967296*1e4&268435455;lt[st++]=ct>>>8&255,lt[st++]=255&ct,lt[st++]=ct>>>24&15|16,lt[st++]=ct>>>16&255,lt[st++]=ut>>>8|128,lt[st++]=255&ut;for(var Rt=0;Rt<6;++Rt)lt[st+Rt]=it[Rt];return at||et(lt)}},function(o,i,s){var j=s(96),$=s(97);o.exports=function(Z,et,_e){var nt=et&&_e||0;typeof Z=="string"&&(et=Z==="binary"?new Array(16):null,Z=null);var rt=(Z=Z||{}).random||(Z.rng||j)();if(rt[6]=15&rt[6]|64,rt[8]=63&rt[8]|128,et)for(var at=0;at<16;++at)et[nt+at]=rt[at];return et||$(rt)}},function(o,i,s){(function(j){(function($){function Z(_e){if((_e=_e===void 0?"utf-8":_e)!=="utf-8")throw new RangeError("Failed to construct 'TextEncoder': The encoding label provided ('"+_e+"') is invalid.")}function et(_e,nt){if(nt=nt===void 0?{fatal:!1}:nt,(_e=_e===void 0?"utf-8":_e)!=="utf-8")throw new RangeError("Failed to construct 'TextDecoder': The encoding label provided ('"+_e+"') is invalid.");if(nt.fatal)throw Error("Failed to construct 'TextDecoder': the 'fatal' option is unsupported.")}if($.TextEncoder&&$.TextDecoder)return!1;Object.defineProperty(Z.prototype,"encoding",{value:"utf-8"}),Z.prototype.encode=function(_e,nt){if((nt=nt===void 0?{stream:!1}:nt).stream)throw Error("Failed to encode: the 'stream' option is unsupported.");nt=0;for(var rt=_e.length,at=0,ft=Math.max(32,rt+(rt>>1)+7),st=new Uint8Array(ft>>3<<3);nt=lt){if(nt=lt)continue}if(at+4>st.length&&(ft+=8,ft=(ft*=1+nt/_e.length*2)>>3<<3,(it=new Uint8Array(ft)).set(st),st=it),(4294967168<)==0)st[at++]=lt;else{if((4294965248<)==0)st[at++]=lt>>6&31|192;else if((4294901760<)==0)st[at++]=lt>>12&15|224,st[at++]=lt>>6&63|128;else{if((4292870144<)!=0)continue;st[at++]=lt>>18&7|240,st[at++]=lt>>12&63|128,st[at++]=lt>>6&63|128}st[at++]=63<|128}}return st.slice(0,at)},Object.defineProperty(et.prototype,"encoding",{value:"utf-8"}),Object.defineProperty(et.prototype,"fatal",{value:!1}),Object.defineProperty(et.prototype,"ignoreBOM",{value:!1}),et.prototype.decode=function(_e,nt){if((nt=nt===void 0?{stream:!1}:nt).stream)throw Error("Failed to decode: the 'stream' option is unsupported.");nt=0;for(var rt=(_e=new Uint8Array(_e)).length,at=[];nt>>10&1023|55296),ft=56320|1023&ft),at.push(ft))}return String.fromCharCode.apply(null,at)},$.TextEncoder=Z,$.TextDecoder=et})(typeof window!="undefined"?window:j!==void 0?j:this)}).call(this,s(5))},function(o,i,s){s.r(i),s.d(i,"AuthClient",function(){return Z}),s.d(i,"RtcSignalingClient",function(){return _e}),s.d(i,"Credentials",function(){return ut}),s.d(i,"SignalingPromiseClient",function(){return pt.SignalingPromiseClient}),s.d(i,"IRtcClientConfiguration",function(){}),s.d(i,"IRtcConnectConfiguration",function(){}),s.d(i,"IRtcConnectionStatsInfo",function(){}),s.d(i,"IRtcSendConfiguration",function(){}),s.d(i,"IRtcSessionMetricsMessageCounts",function(){}),s.d(i,"IRtcStreamMessage",function(){}),s.d(i,"IStreamControl",function(){}),s.d(i,"RtcClient",function(){return cn});var j=s(26),$=function(sn,Vt,qt,tn){return new(qt||(qt=Promise))(function(hn,an){function _n(un){try{vn(tn.next(un))}catch(fn){an(fn)}}function mn(un){try{vn(tn.throw(un))}catch(fn){an(fn)}}function vn(un){var fn;un.done?hn(un.value):(fn=un.value,fn instanceof qt?fn:new qt(function(An){An(fn)})).then(_n,mn)}vn((tn=tn.apply(sn,Vt||[])).next())})};class Z extends j.a{adminSignup(Vt,qt){return $(this,void 0,void 0,function*(){return yield this.fetch("auth/admin-signup",{token:qt,method:"POST",body:JSON.stringify(Vt)})})}login(Vt){return $(this,void 0,void 0,function*(){return yield this.fetch("auth/login",{method:"POST",body:JSON.stringify(Vt),allowUnsafeRetries:!0})})}loginWithGoogleToken(Vt){return $(this,void 0,void 0,function*(){return yield this.fetch("auth/login-google",{method:"POST",body:JSON.stringify(Vt),allowUnsafeRetries:!0})})}refresh(Vt,qt){return $(this,void 0,void 0,function*(){return yield this.fetch("auth/refresh",{method:"POST",body:JSON.stringify({refreshToken:Vt,tokenExpirationSeconds:qt}),allowUnsafeRetries:!0})})}respondToNewPasswordRequiredChallenge(Vt){return $(this,void 0,void 0,function*(){return yield this.fetch("auth/respond-to-new-password-required-challenge",{method:"POST",body:JSON.stringify(Vt)})})}forgotPassword(Vt){return $(this,void 0,void 0,function*(){return yield this.fetch("auth/forgot-password",{method:"POST",body:JSON.stringify({email:Vt})})})}confirmForgotPassword(Vt){return $(this,void 0,void 0,function*(){return yield this.fetch("auth/confirm-forgot-password",{method:"POST",body:JSON.stringify(Vt)})})}resendInvitation(Vt){return $(this,void 0,void 0,function*(){return yield this.fetch("auth/resend-invitation",{method:"POST",body:JSON.stringify({email:Vt})})})}changePassword({token:Vt,refreshToken:qt,currentPassword:tn,newPassword:hn}){return $(this,void 0,void 0,function*(){return yield this.fetch("auth/change-password",{token:Vt,method:"POST",body:JSON.stringify({refreshToken:qt,currentPassword:tn,newPassword:hn})})})}getDeviceCredentials(Vt){return $(this,void 0,void 0,function*(){return yield this.fetch("auth/device-credentials",{token:Vt,method:"POST",allowUnsafeRetries:!0})})}impersonate(Vt,qt){return $(this,void 0,void 0,function*(){return yield this.fetch("auth/impersonate",{token:Vt,method:"POST",allowUnsafeRetries:!0,body:JSON.stringify({userId:qt})})})}createServiceAccount(Vt,qt,tn){return $(this,void 0,void 0,function*(){return yield this.fetch("auth/service-account",{token:Vt,method:"POST",allowUnsafeRetries:!0,body:JSON.stringify({name:qt,roleId:tn})})})}getFeatures(Vt){return $(this,void 0,void 0,function*(){return(yield this.fetch("auth/features",{token:Vt})).features})}}var et=function(sn,Vt,qt,tn){return new(qt||(qt=Promise))(function(hn,an){function _n(un){try{vn(tn.next(un))}catch(fn){an(fn)}}function mn(un){try{vn(tn.throw(un))}catch(fn){an(fn)}}function vn(un){var fn;un.done?hn(un.value):(fn=un.value,fn instanceof qt?fn:new qt(function(An){An(fn)})).then(_n,mn)}vn((tn=tn.apply(sn,Vt||[])).next())})};class _e extends j.a{createPeer(Vt,qt){return et(this,void 0,void 0,function*(){return yield this.fetch("peers",{token:Vt,method:"POST",body:JSON.stringify(qt)})})}getPeers(Vt){return et(this,void 0,void 0,function*(){return(yield this.fetch("peers",{token:Vt})).items})}refreshPeer(Vt,qt){return et(this,void 0,void 0,function*(){yield this.fetch(`peers/${qt}/refresh`,{token:Vt,method:"POST",allowUnsafeRetries:!0})})}createSession(Vt,qt){return et(this,void 0,void 0,function*(){return yield this.fetch("sessions",{token:Vt,method:"POST",body:JSON.stringify(qt)})})}refreshSession(Vt,qt){return et(this,void 0,void 0,function*(){yield this.fetch(`sessions/${qt}/refresh`,{token:Vt,method:"POST",allowUnsafeRetries:!0})})}deleteSession(Vt,qt){return et(this,void 0,void 0,function*(){yield this.fetch(`sessions/${qt}`,{token:Vt,method:"DELETE",allowUnsafeRetries:!0})})}getSessions(Vt){return et(this,void 0,void 0,function*(){return(yield this.fetch("sessions",{token:Vt})).items})}getIceServers(Vt){return et(this,void 0,void 0,function*(){return(yield this.fetch("ice-servers",{token:Vt})).items})}addSignals(Vt,qt,tn){return et(this,void 0,void 0,function*(){yield this.fetch(`sessions/${qt}/add-signals`,{token:Vt,method:"POST",body:JSON.stringify(tn)})})}takeSignals(Vt,qt){return et(this,void 0,void 0,function*(){return(yield this.fetch(`sessions/${qt}/take-signals`,{token:Vt,method:"POST"})).items})}}var nt=s(1),rt=s(11),at=s(21),ft=s(102),st=function(sn,Vt,qt,tn){return new(qt||(qt=Promise))(function(hn,an){function _n(un){try{vn(tn.next(un))}catch(fn){an(fn)}}function mn(un){try{vn(tn.throw(un))}catch(fn){an(fn)}}function vn(un){var fn;un.done?hn(un.value):(fn=un.value,fn instanceof qt?fn:new qt(function(An){An(fn)})).then(_n,mn)}vn((tn=tn.apply(sn,Vt||[])).next())})};class lt extends class{constructor(Vt={}){this.cache=new ft(Vt),this.stringify=Vt.fastStringify?JSON.stringify:at}set(Vt,qt,tn){if(!this.cache.set(this.stringify(Vt),qt,tn))throw Error(`Value too large (${this.cache.lengthCalculator(qt)} > ${this.cache.max})`)}get(Vt){return this.cache.get(this.stringify(Vt))}del(Vt){this.cache.del(this.stringify(Vt))}length(){return this.cache.length}reset(){this.cache.reset()}prune(){return this.cache.prune()}forEach(Vt){return this.cache.forEach(Vt)}}{constructor(Vt={}){if(super(Vt),this.expireRejectedPromiseValues=Vt.expireRejectedPromiseValues===void 0||Vt.expireRejectedPromiseValues,this.rejectedPromiseValueTtl=Vt.rejectedPromiseValueTtl!==void 0?Vt.rejectedPromiseValueTtl:nt.a.second,this.rejectedPromiseValueTtl<0)throw new Error("rejectedPromiseValueTtl must not be negative")}set(Vt,qt,tn){const hn=this.stringify(Vt);this.cache.set(hn,qt,tn),this.expireRejectedPromiseValues&&Promise.resolve(qt).catch(()=>st(this,void 0,void 0,function*(){yield Object(rt.a)(this.rejectedPromiseValueTtl),this.cache.peek(hn)===qt&&this.cache.del(hn)}))}}var it=function(sn,Vt,qt,tn){return new(qt||(qt=Promise))(function(hn,an){function _n(un){try{vn(tn.next(un))}catch(fn){an(fn)}}function mn(un){try{vn(tn.throw(un))}catch(fn){an(fn)}}function vn(un){var fn;un.done?hn(un.value):(fn=un.value,fn instanceof qt?fn:new qt(function(An){An(fn)})).then(_n,mn)}vn((tn=tn.apply(sn,Vt||[])).next())})};class ut{constructor(Vt,qt,tn){this.authClient=Vt,this.email=qt,this.password=tn,this.tokenTtlMs=1*nt.a.hour,this.tokenCache=new lt({max:100,maxAge:this.tokenTtlMs-5*nt.a.minute,fastStringify:!0})}getToken(){return it(this,void 0,void 0,function*(){let Vt=this.tokenCache.get(this.email);return Vt||(Vt=(()=>it(this,void 0,void 0,function*(){const{authentication:qt}=yield this.authClient.login({email:this.email,password:this.password,tokenExpirationSeconds:this.tokenTtlMs/nt.a.second});if(!qt)throw new Error("User account not verified.");return qt.accessToken}))(),this.tokenCache.set(this.email,Vt)),Vt})}}var pt=s(93),bt=function(sn,Vt,qt,tn){return new(qt||(qt=Promise))(function(hn,an){function _n(un){try{vn(tn.next(un))}catch(fn){an(fn)}}function mn(un){try{vn(tn.throw(un))}catch(fn){an(fn)}}function vn(un){var fn;un.done?hn(un.value):(fn=un.value,fn instanceof qt?fn:new qt(function(An){An(fn)})).then(_n,mn)}vn((tn=tn.apply(sn,Vt||[])).next())})};function xt(sn){return bt(this,void 0,void 0,function*(){return(yield Promise.all(sn.map(Vt=>Vt.catch(qt=>qt)))).filter(Vt=>Vt instanceof Error)})}function vt(sn){if(sn!==void 0)return sn;throw new Error("Value is undefined")}var mt=s(0),ct=function(sn,Vt,qt,tn){return new(qt||(qt=Promise))(function(hn,an){function _n(un){try{vn(tn.next(un))}catch(fn){an(fn)}}function mn(un){try{vn(tn.throw(un))}catch(fn){an(fn)}}function vn(un){var fn;un.done?hn(un.value):(fn=un.value,fn instanceof qt?fn:new qt(function(An){An(fn)})).then(_n,mn)}vn((tn=tn.apply(sn,Vt||[])).next())})};function Rt({func:sn,delay:Vt,immediate:qt}){let tn=!1,hn=setTimeout(function _n(){return ct(this,void 0,void 0,function*(){if(tn)return;const mn=new Date().getTime();try{an=sn(),yield an}finally{if(!tn){const vn=new Date().getTime();hn=setTimeout(_n,Math.max(Vt-(vn-mn),0))}}})},qt?0:Vt),an=Promise.resolve();return{stop(){return ct(this,void 0,void 0,function*(){tn=!0,clearTimeout(hn),yield an})}}}function Ft(sn,Vt){return Object.keys(sn).reduce((qt,tn)=>Object.assign(Object.assign({},qt),{[tn]:Vt(sn[tn])}),{})}var Ut=function(sn,Vt,qt,tn){return new(qt||(qt=Promise))(function(hn,an){function _n(un){try{vn(tn.next(un))}catch(fn){an(fn)}}function mn(un){try{vn(tn.throw(un))}catch(fn){an(fn)}}function vn(un){var fn;un.done?hn(un.value):(fn=un.value,fn instanceof qt?fn:new qt(function(An){An(fn)})).then(_n,mn)}vn((tn=tn.apply(sn,Vt||[])).next())})};class yt{constructor(Vt){this.message=Vt}send(Vt){return Ut(this,void 0,void 0,function*(){mt.a.info(this.message,Ft(Vt,qt=>{const{sum:tn,count:hn}=qt,an=tn/hn;return Object.assign(Object.assign({},qt),{average:an})}))})}}var ht=function(sn,Vt,qt,tn){return new(qt||(qt=Promise))(function(hn,an){function _n(un){try{vn(tn.next(un))}catch(fn){an(fn)}}function mn(un){try{vn(tn.throw(un))}catch(fn){an(fn)}}function vn(un){var fn;un.done?hn(un.value):(fn=un.value,fn instanceof qt?fn:new qt(function(An){An(fn)})).then(_n,mn)}vn((tn=tn.apply(sn,Vt||[])).next())})};const Ct=s(224),St=!!s(7).c,kt=new class{constructor(sn=60){this.buffer={},this.metrics={},this.reporters=[],this.flushInterval=Rt({func:()=>this.flushStats(),delay:sn*nt.a.second})}shutdown(){return ht(this,void 0,void 0,function*(){yield this.flushInterval.stop(),yield this.flushStats(),yield Object(rt.a)(2*nt.a.second)})}aggregate(sn,Vt){if(this.buffer[sn]){const{min:qt,max:tn,sum:hn,count:an}=this.buffer[sn];this.buffer[sn]={min:Math.min(qt,Vt),max:Math.max(tn,Vt),sum:hn+Vt,count:an+1}}else this.buffer[sn]={min:Vt,max:Vt,sum:Vt,count:1}}increment(sn){this.aggregate(sn,1)}timer(sn,Vt){return ht(this,void 0,void 0,function*(){const qt=Ct(),tn=yield Vt(),hn=Ct();return this.aggregate(sn,hn-qt),tn})}metric(sn,Vt){this.metrics[sn]=Vt}registerStatsReporter(sn){this.reporters.push(sn)}write(sn){return ht(this,void 0,void 0,function*(){if(Object.values(sn).length===0)return;const Vt=yield xt(this.reporters.map(qt=>qt.send(sn)));for(const qt of Vt)mt.a.warn("Failed to write stats",{error:qt})})}flushStats(){return ht(this,void 0,void 0,function*(){const sn=Object.assign(Object.assign({},this.buffer),Ft(this.metrics,Vt=>{const qt=Vt();return{min:qt,max:qt,sum:qt,count:1}}));Object.keys(sn).length>0&&(yield this.write(sn),this.buffer={})})}};St||kt.registerStatsReporter(new yt("stats"));var Lt=s(8),Mt=s(22),Tt=s(103),Ot=s(36),At=function(sn,Vt,qt,tn){return new(qt||(qt=Promise))(function(hn,an){function _n(un){try{vn(tn.next(un))}catch(fn){an(fn)}}function mn(un){try{vn(tn.throw(un))}catch(fn){an(fn)}}function vn(un){var fn;un.done?hn(un.value):(fn=un.value,fn instanceof qt?fn:new qt(function(An){An(fn)})).then(_n,mn)}vn((tn=tn.apply(sn,Vt||[])).next())})};class wt extends Ot.a{constructor(Vt){super(Vt)}postLanRtcOffer(Vt){return At(this,void 0,void 0,function*(){return yield this.fetch("v1/lan-rtc-offer",{method:"POST",body:JSON.stringify(Vt)})})}}var gt=s(55);const Nt={ordered:!1,maxPacketLifeTime:300*nt.a.millisecond},Bt={ordered:!0},Gt={ordered:!0},Kt={ordered:!1,maxRetransmits:0},Zt={ordered:!1,maxRetransmits:0};function zt({entityId:sn,streamName:Vt,streamType:qt}){return`${sn}.${Vt}.${qt}`}var $t=function(sn,Vt,qt,tn){return new(qt||(qt=Promise))(function(hn,an){function _n(un){try{vn(tn.next(un))}catch(fn){an(fn)}}function mn(un){try{vn(tn.throw(un))}catch(fn){an(fn)}}function vn(un){var fn;un.done?hn(un.value):(fn=un.value,fn instanceof qt?fn:new qt(function(An){An(fn)})).then(_n,mn)}vn((tn=tn.apply(sn,Vt||[])).next())})};class Et{constructor(Vt,qt){this.sessionId=Vt,this.connection=qt,this.counts={localSent:new Map,localReceived:new Map,remoteSent:new Map,remoteReceived:new Map},this.sessionId=Vt,this.connection=qt}updateRemoteMessagesCounts(Vt){if(Vt.payload.streamsInfo){this.counts.remoteSent=new Map,this.counts.remoteReceived=new Map;for(const qt of Vt.payload.streamsInfo.items)this.counts.remoteSent.set(qt.streamId,qt.sentCount),this.counts.remoteReceived.set(qt.streamId,qt.receivedCount)}}getLocalStreamsInfo(Vt){const{localSent:qt,localReceived:tn}=this.counts;return{items:[...new Set([...qt.keys(),...tn.keys()])].map(hn=>{var an,_n;return{streamId:hn,sentCount:(an=qt.get(hn))!==null&&an!==void 0?an:0,receivedCount:(_n=tn.get(hn))!==null&&_n!==void 0?_n:0}}),timestamp:Vt}}incrementLocalSent(Vt){const{localSent:qt}=this.counts,tn=zt(Vt.header.stream);qt.set(tn,(qt.get(tn)||0)+1)}incrementLocalReceived(Vt){const{localReceived:qt}=this.counts,tn=zt(Vt.header.stream),hn=qt.get(tn)||0;if(hn===0){const{streamName:an,streamType:_n}=Vt.header.stream;mt.a.debug("RTC client received first message for stream",{streamName:an,streamType:_n})}qt.set(tn,hn+1)}uploadMetrics(){return $t(this,void 0,void 0,function*(){const{sessionId:Vt}=this,qt=yield this.connection.peerConnection.getStats(),tn={};qt.forEach(un=>tn[un.id]=un),mt.a.debug("rtc-stats",Object.assign(Object.assign({},tn),{sessionId:Vt}));const{localSent:hn,localReceived:an,remoteSent:_n,remoteReceived:mn}=this.counts,vn=[...new Set([...hn.keys(),...an.keys()])].reduce((un,fn)=>{const An=hn.get(fn),kn=an.get(fn),Tn=_n.get(fn),Dn=mn.get(fn);return Object.assign(Object.assign({},un),{[`local-${fn}-sent`]:An,[`local-${fn}-received`]:kn,[`remote-${fn}-sent`]:Tn,[`remote-${fn}-received`]:Dn})},{sessionId:Vt});mt.a.debug("rtc-message-report",Object.assign({deviceId:this.connection.getRemoteDeviceId()},vn))})}}function It(sn){return new Set(["disconnected","failed","closed"]).has(sn.iceConnectionState)}var Dt=function(sn,Vt,qt,tn){return new(qt||(qt=Promise))(function(hn,an){function _n(un){try{vn(tn.next(un))}catch(fn){an(fn)}}function mn(un){try{vn(tn.throw(un))}catch(fn){an(fn)}}function vn(un){var fn;un.done?hn(un.value):(fn=un.value,fn instanceof qt?fn:new qt(function(An){An(fn)})).then(_n,mn)}vn((tn=tn.apply(sn,Vt||[])).next())})};class Jt{constructor(Vt,qt,tn){this.peerConnection=Vt,this.config=qt,this.dataChannelNotifier=tn,this.connectTimeoutMs=20*nt.a.second,this.iceGatheringTimeoutMs=15*nt.a.second,this.pingUpdateTimeoutMs=1*nt.a.second,this.streamsInfoUpdateTimeoutMs=2*nt.a.second,this.reassemblyTimeoutMs=500*nt.a.millisecond,this.reassemblyTableCleanupMs=1*nt.a.second,this.heartbeatTimeoutMs=20*nt.a.millisecond,this.streamLatestTimestamp=new Map,this.reassemblyTable=new Map,this.reassemblyTableLastTimestamp=new Map,this.closeCalled=!1,this.gotOffer=!1,this.hasIceCandidate=!1;const{isOffer:hn}=qt.baseConfig;hn?this.initializeChannels(Vt):Vt.ondatachannel=an=>{switch(an.channel.label){case"stream.latest-ttl":this.latestTtlStreamChannel=an.channel;break;case"stream.reliable":this.reliableStreamChannel=an.channel;break;case"stream.latest-reliable":this.latestReliableStreamChannel=an.channel;break;case"stream.latest-try-once":this.latestTryOnceStreamChannel=an.channel;break;case"heartbeat":return void(this.heartbeatChannel=an.channel);default:return void this.dataChannelNotifier(an.channel)}this.setupChannel(an.channel)},this.pingUpdateTimeout=setInterval(()=>{const{reliableStreamChannel:an}=this;an&&this.sendSystemMessage(an,{type:"ping"})},this.pingUpdateTimeoutMs),this.streamsInfoUpdateTimeout=setInterval(()=>{const{latestTtlStreamChannel:an}=this;an&&this.sendSystemMessage(an,{type:"streams-info"})},this.streamsInfoUpdateTimeoutMs),this.reassemblyTableCleanupTimeout=setInterval(()=>{const an=new Date().getTime();this.reassemblyTableLastTimestamp.forEach((_n,mn,vn)=>{an>mn+this.reassemblyTimeoutMs&&this.reassemblyTable.delete(_n)})},this.reassemblyTableCleanupMs),this.heartbeatTimeout=setInterval(()=>{const{heartbeatChannel:an}=this;an&&an.readyState==="open"&&an.send(new Uint8Array([1]))},this.heartbeatTimeoutMs)}handleSignal(Vt){return Dt(this,void 0,void 0,function*(){const{peerConnection:qt}=this,{track:tn}=this.config.baseConfig,hn=(()=>{try{return JSON.parse(Vt.getPayload())}catch{return}})();if(!hn)return void mt.a.error("Received unparseable signal.");mt.a.debug("Handling signal",{description:hn});const{sdp:an,type:_n}=hn;if(!an||!_n)return void mt.a.warn("Received non-SDP signal");const{signalingState:mn,connectionState:vn}=qt;if(mn!=="stable"||vn!=="connected")if(qt.remoteDescription)mt.a.warn(`Received SDP after remote description was set: ${an}`);else{if(_n==="offer"){if(mn!=="stable")return void mt.a.warn("Received offer SDP when signaling is ongoing.");yield qt.setRemoteDescription(hn);const un=yield qt.createAnswer();yield qt.setLocalDescription(un);const fn=Vt.clone();return tn==null||tn("Answer Received",fn),fn.setPayload(JSON.stringify(un)),fn.setReceiverId(Vt.getSenderId()),fn.setSenderId(Vt.getReceiverId()),fn}if(_n==="answer"){if(mn==="stable")return void mt.a.warn("Received answer SDP when signaling hasn't started.");yield qt.setRemoteDescription(hn)}}else mt.a.warn(`Received SDP when already connected: ${an}`)})}send(Vt,qt){const tn=this.getChannelFromLabel(qt.channelLabel);tn?this.sendOnChannel(tn,Vt):mt.a.warn("Send called with unexpected channel label",{channelLabel:qt.channelLabel})}controlRemoteStream(Vt){this.sendSystemMessage(vt(this.reliableStreamChannel),{type:"stream-control",streamControl:Vt})}isActive(){return new Set(["new","checking","connected","completed"]).has(this.peerConnection.iceConnectionState)||this.isReady()}isReady(){const{reliableStreamChannel:Vt,latestTtlStreamChannel:qt,latestTryOnceStreamChannel:tn,latestReliableStreamChannel:hn}=this;return(Vt==null?void 0:Vt.readyState)==="open"&&(qt==null?void 0:qt.readyState)==="open"&&(tn==null?void 0:tn.readyState)==="open"&&(hn==null?void 0:hn.readyState)==="open"}close(){return Dt(this,void 0,void 0,function*(){if(this.closeCalled)return;this.closeCalled=!0,this.sessionMetrics&&(yield this.sessionMetrics.uploadMetrics()),this.pingUpdateTimeout&&clearInterval(this.pingUpdateTimeout),this.reassemblyTableCleanupTimeout&&clearInterval(this.reassemblyTableCleanupTimeout),this.streamsInfoUpdateTimeout&&clearInterval(this.streamsInfoUpdateTimeout),this.heartbeatTimeout&&clearInterval(this.heartbeatTimeout);const{peerConnection:Vt,reliableStreamChannel:qt,latestTtlStreamChannel:tn,latestTryOnceStreamChannel:hn,latestReliableStreamChannel:an}=this;Vt.close(),qt==null||qt.close(),tn==null||tn.close(),hn==null||hn.close(),an==null||an.close()})}getPing(){return this.pingTimeMs}getLastMessageTimestamp(){return this.lastMessageTimestamp}getSessionCreatedTimestamp(){var Vt;return(Vt=this.config.remoteConfig)===null||Vt===void 0?void 0:Vt.sessionCreatedTimestamp}setSessionCreatedTimestamp(Vt){this.config.remoteConfig&&(this.config.remoteConfig.sessionCreatedTimestamp=Vt)}getSessionId(){var Vt;return(Vt=this.config.remoteConfig)===null||Vt===void 0?void 0:Vt.sessionId}setSessionId(Vt){this.config.remoteConfig&&(this.config.remoteConfig.sessionId=Vt,this.sessionMetrics=new Et(Vt,this))}getRemotePeerId(){return this.config.baseConfig.remotePeerId}getRemoteDeviceId(){var Vt;return(Vt=this.config.baseConfig)===null||Vt===void 0?void 0:Vt.remoteDeviceId}setRemoteDeviceId(Vt){this.config.baseConfig.remoteDeviceId=Vt}getSessionMetricsMessageCounts(){var Vt;return(Vt=this.sessionMetrics)===null||Vt===void 0?void 0:Vt.counts}getConnectionStatsInfo(){return Dt(this,void 0,void 0,function*(){const{peerConnection:Vt}=this;if(!Vt)return;const qt=yield Vt.getStats(null),tn=[];qt.forEach(vn=>{tn.push(vn)});const hn=tn.find(vn=>vn.type==="transport");if(!hn)return;const an=tn.find(vn=>(vn.type==="candidate-pair"||vn.type==="candidatepair")&&vn.id===hn.selectedCandidatePairId);if(!an)return;const _n=tn.find(vn=>vn.id===an.localCandidateId),mn=tn.find(vn=>vn.id===an.remoteCandidateId);return _n&&mn&&(_n.address=_n.address||_n.ip,mn.address=mn.address||mn.ip,_n.address!==void 0&&mn.address!==void 0)?{transport:hn,localCandidate:_n,remoteCandidate:mn}:void 0})}initializeChannels(Vt){this.heartbeatChannel=Vt.createDataChannel("heartbeat",Zt),this.heartbeatChannel.binaryType="arraybuffer",this.latestTtlStreamChannel=Vt.createDataChannel("stream.latest-ttl",Nt),this.latestTtlStreamChannel.binaryType="arraybuffer",this.reliableStreamChannel=Vt.createDataChannel("stream.reliable",Bt),this.reliableStreamChannel.binaryType="arraybuffer",this.latestReliableStreamChannel=Vt.createDataChannel("stream.latest-reliable",Gt),this.latestReliableStreamChannel.binaryType="arraybuffer",this.latestTryOnceStreamChannel=Vt.createDataChannel("stream.latest-try-once",Kt),this.latestTryOnceStreamChannel.binaryType="arraybuffer",this.setupChannel(this.latestTtlStreamChannel),this.setupChannel(this.reliableStreamChannel),this.setupChannel(this.latestReliableStreamChannel),this.setupChannel(this.latestTryOnceStreamChannel)}getOffer(){var Vt,qt,tn;return Dt(this,void 0,void 0,function*(){const{gotOffer:hn}=this,{peerConnection:an,config:_n}=this;if(this.config.baseConfig.isLan)throw new Error('"getOffer" method can only be called with internet connections. LAN connections should call the "getLanOffer" method.');const mn=(Vt=this.config.remoteConfig)===null||Vt===void 0?void 0:Vt.sessionId;if(hn)return void mt.a.debug("Failed to generate offer because gotOffer was already called.");if(this.gotOffer=!0,It(this.peerConnection))return void mt.a.debug("Failed to generate offer because the peer connection was inactive.");const vn=_n.baseConfig.track;an.onicecandidate=()=>{this.hasIceCandidate=!0},an.oniceconnectionstatechange=()=>Dt(this,void 0,void 0,function*(){const Tn=an.iceConnectionState;if(Tn==="connected"||Tn==="completed"){const Dn=yield this.getConnectionStatsInfo(),Pn=Dn?function(Gn){const tr=Gn.localCandidate.candidateType,Qn=Gn.remoteCandidate.candidateType;return tr==="host"&&Qn==="host"?"local":tr==="relay"||Qn==="relay"?"TURN":"STUN"}(Dn):void 0;mt.a.info(`ICE connection state changed to ${Tn}`,{sessionId:mn,connectionStatsInfo:Dn,iceMode:Pn}),vn==null||vn("ICE connection state change",{iceConnectionState:Tn,sessionId:mn,connectionStatsInfo:Dn,iceMode:Pn})}}),yield an.setLocalDescription(yield an.createOffer());const un=new Date().getTime();for(;;){const Tn=new Date().getTime()-un;if(Tn>this.connectTimeoutMs)return void mt.a.debug("Failed to generate offer because ICE gathering timed out.");if(Tn>this.iceGatheringTimeoutMs&&this.hasIceCandidate){mt.a.debug("ICE gathering partially completed; proceeding",{iceTransportPolicy:an.getConfiguration().iceTransportPolicy,waitTime:Tn}),vn==null||vn("ICE gathering partially completed",{sessionId:mn,iceTransportPolicy:an.getConfiguration().iceTransportPolicy,waitTime:Tn});break}if(an.iceGatheringState==="complete"){mt.a.debug("ICE gathering complete",{iceTransportPolicy:an.getConfiguration().iceTransportPolicy,waitTime:Tn}),vn==null||vn("ICE gathering completed",{sessionId:mn,iceTransportPolicy:an.getConfiguration().iceTransportPolicy,waitTime:Tn});break}yield Object(rt.a)(.1*nt.a.second)}const fn=(qt=this.peerConnection.getConfiguration().iceServers)!==null&&qt!==void 0?qt:[];for(const Tn of fn)Tn.credentialType=void 0;const An=JSON.stringify(fn),kn=new Lt.Signal;return kn.setPayload(JSON.stringify(an.localDescription)),kn.setSenderId(this.config.baseConfig.localPeerId),kn.setReceiverId(this.config.baseConfig.remotePeerId),kn.setIceServers(An),kn.setIceTransportPolicy((tn=this.peerConnection.getConfiguration().iceTransportPolicy)!==null&&tn!==void 0?tn:"all"),kn.setSessionType(Lt.SessionType.TELEOP),mt.a.debug("Sending offer signal with description",{description:kn.getPayload()}),kn})}getLanOffer(){return Dt(this,void 0,void 0,function*(){const{peerConnection:Vt,gotOffer:qt}=this;if(!this.config.baseConfig.isLan)throw new Error('"getLanOffer" method can only be used with LAN connections. Internet connections should call the "getOffer" method.');if(qt)return void mt.a.debug("Failed to generate offer because gotOffer was already called.");if(this.gotOffer=!0,It(this.peerConnection))return void mt.a.debug("Failed to generate offer because the peer connection was inactive.");yield Vt.setLocalDescription(yield Vt.createOffer());const tn=new Date().getTime();for(;;){if(new Date().getTime()-tn>this.iceGatheringTimeoutMs)return void mt.a.debug("Failed to generate offer because ICE gathering timed out.");if(Vt.iceGatheringState==="complete")break;yield Object(rt.a)(.1*nt.a.second)}const hn=Vt.localDescription;if(hn)return mt.a.debug("Sending LAN offer signal with description",{description:hn}),hn;mt.a.error("Failed to generate LAN offer description")})}handleLanAnswer(Vt){return Dt(this,void 0,void 0,function*(){const{peerConnection:qt}=this;if(!this.config.baseConfig.isLan)throw new Error('"handleLanAnswer" method can only be used with LAN connections. Internet connections should call the "handleSignal" method.');yield qt.setRemoteDescription(Vt)})}getChannelFromLabel(Vt){switch(Vt){case"stream.latest-ttl":return this.latestTtlStreamChannel;case"stream.reliable":return this.reliableStreamChannel;case"stream.latest-reliable":return this.latestReliableStreamChannel;case"stream.latest-try-once":return this.latestTryOnceStreamChannel}}sendOnChannel(Vt,qt){let tn;try{tn=Object(gt.encode)(JSON.stringify(qt))}catch(hn){return void mt.a.warn("Failed to encode RTC message",{error:hn})}try{Vt.send(tn),this.sessionMetrics&&this.sessionMetrics.incrementLocalSent(qt)}catch(hn){mt.a.warn("Failed to send message to channel",{error:hn,channel:Vt.label})}}channelNotRecognized(Vt){return Vt!==this.latestTtlStreamChannel&&Vt!==this.latestReliableStreamChannel&&Vt!==this.latestTryOnceStreamChannel&&Vt!==this.reliableStreamChannel}setupChannel(Vt){Vt.onmessage=qt=>{if(this.channelNotRecognized(Vt))return void mt.a.warn("Received message on unrecognized data channel.");let tn;try{tn=JSON.parse(Object(gt.decode)(qt.data))}catch(hn){return void mt.a.warn("Received unparseable message on RTC stream data channel",{error:hn,channel:Vt.label})}tn.communicationType==="message-chunk"?this.receiveChannelMessageChunk(Vt,tn):this.receiveChannelMessage(Vt,tn)},Vt.onerror=qt=>{mt.a.warn(`Channel error: ${qt.error}`,{error:qt.error,sessionId:this.getSessionId(),channelLabel:Vt.label})},Vt.onopen=()=>{mt.a.debug("Channel opened",{sessionId:this.getSessionId(),channelLabel:Vt.label})},Vt.onclose=()=>{const qt={bufferedAmount:Vt.bufferedAmount,sessionId:this.getSessionId(),channelLabel:Vt.label};this.closeCalled===!1?mt.a.debug("Unexpected channel closed",qt):mt.a.debug("Channel closed",qt)}}receiveChannelMessage(Vt,qt){const{config:tn}=this,{remotePeerId:hn}=this.config.baseConfig;this.lastMessageTimestamp=new Date().getTime(),qt=function(an){switch(an.header.stream.streamType){case"twist":const{twist:_n}=an.payload;if(!_n)throw Error("twist not in payload of RTC message with type twist");return{header:an.header,payload:{twist:{linear:Object.assign({x:0,y:0,z:0},_n.linear),angular:Object.assign({x:0,y:0,z:0},_n.angular)}}};case"pose":const{pose:mn}=an.payload;if(!mn)throw Error("pose not in payload of RTC message with type pose");return{header:an.header,payload:{pose:{translation:Object.assign({x:0,y:0,z:0},mn.translation),rotation:Object.assign({x:0,y:0,z:0,w:0},mn.rotation)}}};case"pose-with-covariance":const{poseWithCovariance:vn}=an.payload;if(!vn)throw Error("poseWithCovariance not in payload of RTC message with type pose-with-covariance");const un=new Array(36).fill(0);return vn.covariance.forEach((An,kn)=>{if(kn>=36)throw Error("covariance contains more than 36 elements");un[kn]=An}),{header:an.header,payload:{poseWithCovariance:{pose:{translation:Object.assign({x:0,y:0,z:0},vn.pose.translation),rotation:Object.assign({x:0,y:0,z:0,w:0},vn.pose.rotation)},covariance:un}}};case"point":const{point:fn}=an.payload;if(!fn)throw Error("point not in payload of RTC message with type point");return{header:an.header,payload:{point:Object.assign({x:0,y:0,z:0},fn)}};default:return an}}(qt),this.sessionMetrics&&this.sessionMetrics.incrementLocalReceived(qt),this.handleSystemMessage(Vt,qt)||(Vt===this.latestTryOnceStreamChannel||Vt===this.latestTtlStreamChannel||Vt===this.latestReliableStreamChannel)&&!this.isLatestMessage(qt)||tn.baseConfig.receive(hn,qt)}receiveChannelMessageChunk(Vt,qt){const tn=this.reassemblyTable.get(qt.id)||[];if(tn.push(qt),tn.length===qt.total){const hn=function(an){const _n=an.sort((mn,vn)=>mn.seqmn.part).reduce((mn,vn)=>mn+vn);try{return JSON.parse(_n)}catch{return void mt.a.warn("Could not reassemble RTC message chunks")}}(tn);return hn&&this.receiveChannelMessage(Vt,hn),void this.reassemblyTable.delete(qt.id)}this.reassemblyTable.set(qt.id,tn),this.reassemblyTableLastTimestamp.set(qt.id,new Date().getTime())}handleSystemMessage(Vt,qt){var tn,hn;const{config:an}=this,{baseConfig:_n}=an,{remotePeerId:mn}=_n;switch(qt.header.stream.streamType){case"ping":return this.sendSystemMessage(Vt,{type:"pong",timestamp:vt(qt.payload.ping)}),!0;case"pong":const vn=new Date().getTime()-vt(qt.payload.pong);return this.pingTimeMs=vn,kt.aggregate("rtc-ping-time",vn),!0;case"streams-info":const{sessionMetrics:un}=this,fn=(tn=qt.payload.streamsInfo)===null||tn===void 0?void 0:tn.timestamp;return!!fn&&(un==null||un.updateRemoteMessagesCounts(qt),(hn=_n.onStreamsInfoUpdate)===null||hn===void 0||hn.call(_n,mn,fn),!0);case"stream-control":return!0;default:return!1}}sendSystemMessage(Vt,qt){var tn;const{localUserId:hn,localPeerId:an}=this.config.baseConfig;if(Vt.readyState!=="open")return;const _n={entityId:hn!=null?hn:an,streamName:`$.${qt.type}`,streamType:qt.type};let mn;switch(qt.type){case"ping":mn={ping:new Date().getTime()};break;case"pong":mn={pong:qt.timestamp};break;case"stream-control":mn={streamControl:qt.streamControl};break;case"streams-info":mn={streamsInfo:(tn=this.sessionMetrics)===null||tn===void 0?void 0:tn.getLocalStreamsInfo(new Date().getTime())}}this.sendOnChannel(Vt,function(vn,un){return{header:{stream:vn,created:Date.now(),frameId:""},payload:un}}(_n,mn))}isLatestMessage(Vt){const qt=zt(Vt.header.stream),tn=(this.streamLatestTimestamp.get(qt)||0)<=Vt.header.created;return tn&&this.streamLatestTimestamp.set(qt,Vt.header.created),tn}}function Qt(sn){var Vt,qt;return{userId:(Vt=sn.getUserId())===null||Vt===void 0?void 0:Vt.getValue(),deviceId:(qt=sn.getDeviceId())===null||qt===void 0?void 0:qt.getValue(),organizationId:sn.getOrganizationId(),id:sn.getPeerId(),capabilities:[],capabilitySet:{}}}var nn=function(sn,Vt,qt,tn){return new(qt||(qt=Promise))(function(hn,an){function _n(un){try{vn(tn.next(un))}catch(fn){an(fn)}}function mn(un){try{vn(tn.throw(un))}catch(fn){an(fn)}}function vn(un){var fn;un.done?hn(un.value):(fn=un.value,fn instanceof qt?fn:new qt(function(An){An(fn)})).then(_n,mn)}vn((tn=tn.apply(sn,Vt||[])).next())})};class cn{constructor(Vt){this.config=Vt,this.grpcCallDeadline=5*nt.a.second,this.refreshIntervalDelayMs=2*nt.a.second,this.iceServersTtl=30*nt.a.minute,this.connections=[],this.localConnections=[],this.isConnectionInitiator=new Map,this.isOutgoingConnection=new Map,this.peerDataChannelListeners=[];const{refreshIntervalDelayMs:qt}=this;this.refreshInterval=Rt({func:()=>nn(this,void 0,void 0,function*(){try{yield this.update()}catch(tn){mt.a.warn("RTC refresh failed",{error:tn})}}),delay:qt,immediate:!0})}send(Vt,qt,tn){const hn=this.getActiveConnection(Vt);hn?hn.isReady()?hn.send(qt,tn):mt.a.warn("Send called with unready connection."):mt.a.warn("Send called with no connection.")}controlRemoteStream(Vt,qt){const tn=this.getActiveConnection(Vt);tn?tn.isReady()?tn.controlRemoteStream(qt):mt.a.warn("controlRemoteStream called with unready connection."):mt.a.warn("controlRemoteStream called with no connection.")}getLocalPeer(){return nn(this,void 0,void 0,function*(){for(;!this.localPeer;)yield Object(rt.a)(.1*nt.a.second);return Qt(this.localPeer)})}connect(Vt,qt){var tn,hn,an;return nn(this,void 0,void 0,function*(){if(this.config.lanOnlyMode===!0)throw new Error("connect method called in local only mode.");const{track:_n,signalingClient:mn}=this.config,{localPeer:vn,receiveSignalStream:un,iceServers:fn}=this;if(!vn||!un||!fn)return void mt.a.warn("Connect called prior to local peer, receiveSignalStream, and ICE servers ready");if(this.getActiveConnection(Vt))return void mt.a.warn("Connect called for peer with existing connection.");if(this.isOutgoingConnection.get(Vt))return void mt.a.warn("Connect called for peer with an existing outgoing connection offer.");this.isOutgoingConnection.set(Vt,!0);const An=new Jt(yield this.createRTCPeerConnection(fn,qt),{baseConfig:{isOffer:!0,isLan:!1,receive:(tr,Qn)=>this.config.receive(tr,Qn),onStreamsInfoUpdate:this.config.onStreamsInfoUpdate?(tr,Qn)=>{var ir,yr;return(yr=(ir=this.config).onStreamsInfoUpdate)===null||yr===void 0?void 0:yr.call(ir,tr,Qn)}:void 0,track:this.config.lanOnlyMode?void 0:this.config.track,localUserId:(tn=vn.getUserId())===null||tn===void 0?void 0:tn.getValue(),localPeerId:vn.getPeerId(),remotePeerId:Vt},remoteConfig:{}},tr=>this.onCustomDataChannel(Vt,tr)),kn=yield An.getOffer();if(!kn)return mt.a.error("Failed to generate offer."),void this.isOutgoingConnection.delete(Vt);mt.a.debug("Sending offer."),_n==null||_n("Sending offer",kn);const Tn=new Lt.SendSignalRequest;Tn.setSignal(kn);const Dn=yield(()=>nn(this,void 0,void 0,function*(){try{return yield mn.sendSignal(Tn,yield this.getMetadata({}))}catch(tr){mt.a.warn("Error when sending signal",{error:tr})}}))();if(!this.isOutgoingConnection.get(Vt))return void mt.a.debug("No offer set after receiving offer signal response.");mt.a.debug("Offer sent.");const Pn=(hn=Dn==null?void 0:Dn.getSessionId())===null||hn===void 0?void 0:hn.getValue(),Gn=(an=Dn==null?void 0:Dn.getSessionCreatedTimestamp())===null||an===void 0?void 0:an.getValue();return Pn&&Gn?(An.setSessionId(Pn),An.setSessionCreatedTimestamp(Gn),this.isOutgoingConnection.delete(Vt),this.connections.push(An),this.isConnectionInitiator.set(An,!0),this.setupHandlers(An),Pn):(mt.a.warn("No session ID or no session created timestamp on send signal response."),void this.isOutgoingConnection.delete(Vt))})}connectLan(Vt){var qt,tn;return nn(this,void 0,void 0,function*(){const hn=new wt(Vt),an=new Jt(yield this.createRTCPeerConnection([]),{baseConfig:{isOffer:!0,isLan:!0,receive:(un,fn)=>this.config.receive(un,fn),onStreamsInfoUpdate:this.config.onStreamsInfoUpdate?(un,fn)=>{var An,kn;return(kn=(An=this.config).onStreamsInfoUpdate)===null||kn===void 0?void 0:kn.call(An,un,fn)}:void 0,track:this.config.lanOnlyMode?void 0:this.config.track,localUserId:(tn=(qt=this.localPeer)===null||qt===void 0?void 0:qt.getUserId())===null||tn===void 0?void 0:tn.getValue(),localPeerId:"lan_client",remotePeerId:Vt}},un=>this.onCustomDataChannel(Vt,un)),_n=yield an.getLanOffer();if(!_n)return mt.a.warn("Could not generate LAN offer"),!1;const mn=yield hn.postLanRtcOffer({offer:JSON.stringify(_n)}),vn=new RTCSessionDescription(JSON.parse(mn.answer));return yield an.handleLanAnswer(vn),this.localConnections.push(an),Object(Tt.v4)()})}getConnections(){return[...this.connections,...this.localConnections]}createCustomDataChannel(Vt,qt,tn,hn,an){const _n=this.getActiveConnection(Vt);if(_n&&this.isConnectionInitiator.has(_n)){const vn=_n.peerConnection.createDataChannel("custom."+qt,tn);return hn&&(vn.binaryType="arraybuffer"),an(Vt,vn),()=>{}}const mn=(vn,un)=>{Vt===vn&&un.label==="custom."+qt&&an(Vt,un)};return this.peerDataChannelListeners.push(mn),()=>{this.peerDataChannelListeners=this.peerDataChannelListeners.filter(vn=>vn!==mn)}}onCustomDataChannel(Vt,qt){this.peerDataChannelListeners.forEach(tn=>tn(Vt,qt))}getConnectionStatus(Vt){if(this.isOutgoingConnection.get(Vt))return"connecting";const qt=this.getActiveConnection(Vt);return qt?qt.isReady()?"connected":"connecting":"disconnected"}getConnectionStatsInfo(Vt){return nn(this,void 0,void 0,function*(){const qt=this.getActiveConnection(Vt);if(qt)return yield qt.getConnectionStatsInfo()})}disconnect(Vt){return nn(this,void 0,void 0,function*(){const qt=this.getActiveConnection(Vt);qt&&(yield qt.close())})}getPeers(){return nn(this,void 0,void 0,function*(){if(this.config.lanOnlyMode)throw new Error("getPeers method cannot be used in local-only mode.");const{signalingClient:Vt}=this.config,qt=yield(()=>nn(this,void 0,void 0,function*(){try{return yield Vt.getPeers(new Lt.GetPeersRequest,yield this.getMetadata({}))}catch(an){mt.a.warn("Error when getting peers",{error:an})}}))();if(!qt)return[];const tn=qt.getPeersList();if(!tn)return[];const hn=an=>{var _n,mn;return(mn=(_n=an.getPeerCreatedTimestamp())===null||_n===void 0?void 0:_n.getValue())!==null&&mn!==void 0?mn:0};return tn.sort((an,_n)=>hn(_n)-hn(an)).map(an=>Qt(an))})}getSessions(){return nn(this,void 0,void 0,function*(){if(this.config.lanOnlyMode)throw new Error("getPeers method cannot be used in local-only mode.");const{signalingClient:Vt}=this.config,qt=yield(()=>nn(this,void 0,void 0,function*(){try{return yield Vt.getPeers(new Lt.GetPeersRequest,yield this.getMetadata({}))}catch(an){mt.a.warn("Error when getting peers",{error:an})}}))();if(!qt)return{};const tn=qt.getPeersList(),hn={};for(const an of tn)hn[an.getPeerId()]=an.getSessionIdsList();return hn})}getPing(Vt){const qt=this.getActiveConnection(Vt);if(qt)return qt.getPing();mt.a.warn("Attempted to get ping time from inactive peer.")}getLastMessageTimestamp(Vt){const qt=this.getActiveConnection(Vt);if(qt)return qt.getLastMessageTimestamp();mt.a.warn("Attempted to get last message time from inactive peer.")}getSessionMetricsMessageCounts(Vt){const qt=this.getActiveConnection(Vt);if(qt)return qt.getSessionMetricsMessageCounts();mt.a.warn("Attempted to get session metrics counts from inactive peer.")}isReady(){if(this.config.lanOnlyMode)return!0;const{localPeer:Vt,receiveSignalStream:qt,iceServers:tn}=this;return!!(Vt&&qt&&tn)}shutdown(){return nn(this,void 0,void 0,function*(){mt.a.info("Shutdown called on RTC client"),yield this.refreshInterval.stop(),this.receiveSignalStream&&this.receiveSignalStream.cancel();const Vt=this.connections;this.connections=[],yield this.closeConnections(Vt);const{localPeer:qt}=this;if(!qt||this.config.lanOnlyMode)return;const{signalingClient:tn}=this.config;yield(()=>nn(this,void 0,void 0,function*(){try{const hn=new Lt.DeletePeerRequest;hn.setPeerId(qt.getPeerId()),yield tn.deletePeer(hn,yield this.getMetadata({}))}catch(hn){return void mt.a.warn("Error deleting local peer",{error:hn})}}))()})}createPeer(){return nn(this,void 0,void 0,function*(){if(this.config.lanOnlyMode)throw new Error("createPeer method cannot be used in local-only mode.");const{signalingClient:Vt}=this.config,qt=yield(()=>nn(this,void 0,void 0,function*(){try{return yield Vt.createPeer(new Lt.CreatePeerRequest,yield this.getMetadata({}))}catch(hn){throw new Error(`Was not able to create peer: ${JSON.stringify(hn)}`)}}))(),tn=qt==null?void 0:qt.getPeer();if(!tn)throw new Error("Response did not provide peer.");return this.localPeer=tn})}createReceiveSignalStream(){return nn(this,void 0,void 0,function*(){if(this.config.lanOnlyMode)throw new Error("createReceiveSignalStream method cannot be used in local-only mode.");const{signalingClient:Vt}=this.config,{localPeer:qt,iceServers:tn}=this;if(!qt||!tn)return;const{receiveSignalStream:hn}=this;hn&&hn.cancel();const an=new Lt.ReceiveSignalStreamRequest;an.setPeerId(qt.getPeerId());const _n=yield(()=>nn(this,void 0,void 0,function*(){try{return Vt.receiveSignalStream(an,yield this.getMetadata({hasDeadline:!1}))}catch(mn){throw new Error(`Unable to create receive signal stream: ${JSON.stringify(mn)}`)}}))();if(!_n)throw new Error("Response did not provide stream.");return _n.on("data",mn=>nn(this,void 0,void 0,function*(){var vn,un,fn,An;const kn=mn.getSignal(),Tn=(vn=kn==null?void 0:kn.getSessionId())===null||vn===void 0?void 0:vn.getValue(),Dn=kn==null?void 0:kn.getSenderId(),Pn=kn==null?void 0:kn.getReceiverId(),Gn=(un=kn==null?void 0:kn.getSessionCreatedTimestamp())===null||un===void 0?void 0:un.getValue();if(!(kn&&Tn&&Dn&&Pn&&Gn))return void mt.a.warn("Received signal with missing information.");const tr=this.getActiveConnection(Dn);if(tr)if(tr.getSessionId()!==Tn){if(mt.a.debug("Received signal: different session for a peer we're already connected to."),(tr.getSessionCreatedTimestamp()||0)>Gn)return;const Qn=new Jt(yield this.createRTCPeerConnection(tn),{baseConfig:{isOffer:!1,isLan:!1,receive:(ir,yr)=>this.config.receive(ir,yr),onStreamsInfoUpdate:this.config.onStreamsInfoUpdate?(ir,yr)=>{var Rr,jr;return(jr=(Rr=this.config).onStreamsInfoUpdate)===null||jr===void 0?void 0:jr.call(Rr,ir,yr)}:void 0,track:this.config.lanOnlyMode?void 0:this.config.track,localPeerId:qt.getPeerId(),localUserId:(An=qt.getUserId())===null||An===void 0?void 0:An.getValue(),remotePeerId:Dn},remoteConfig:{sessionId:Tn,sessionCreatedTimestamp:Gn}},ir=>this.onCustomDataChannel(Dn,ir));yield Qn.handleSignal(kn),this.connections.push(Qn)}else mt.a.debug("Received signal: for an existing connection."),yield tr.handleSignal(kn);else{mt.a.debug("Received signal: new connection.");const Qn=new Jt(yield this.createRTCPeerConnection(tn),{baseConfig:{isOffer:!1,isLan:!1,receive:(ir,yr)=>this.config.receive(ir,yr),onStreamsInfoUpdate:this.config.onStreamsInfoUpdate?(ir,yr)=>{var Rr,jr;return(jr=(Rr=this.config).onStreamsInfoUpdate)===null||jr===void 0?void 0:jr.call(Rr,ir,yr)}:void 0,track:this.config.lanOnlyMode?void 0:this.config.track,localPeerId:qt.getPeerId(),localUserId:(fn=qt.getUserId())===null||fn===void 0?void 0:fn.getValue(),remotePeerId:Dn},remoteConfig:{sessionId:Tn,sessionCreatedTimestamp:Gn}},ir=>this.onCustomDataChannel(Dn,ir));yield Qn.handleSignal(kn),this.connections.push(Qn)}})),_n.on("end",()=>{_n.cancel(),this.receiveSignalStream=void 0}),_n.on("error",mn=>{switch(mn.code){case Mt.StatusCode.CANCELLED:case Mt.StatusCode.UNAVAILABLE:case Mt.StatusCode.UNKNOWN:mt.a.debug("Receive signal stream error",{error:mn});break;case Mt.StatusCode.UNAUTHENTICATED:mt.a.warn("Receive signal stream error",{error:mn});break;default:mt.a.error("Receive signal stream error",{error:mn})}_n.cancel(),this.receiveSignalStream=void 0}),this.receiveSignalStream=_n})}createRTCPeerConnection(Vt,qt){var tn;return nn(this,void 0,void 0,function*(){const hn=qt==null?void 0:qt.rtcIceTransportPolicy,an=qt==null?void 0:qt.rtcIceServerProtocol,_n=(un,fn)=>typeof un=="string"?un.endsWith(`transport=${fn}`):un.some(An=>An.endsWith(`transport=${fn}`)),mn=Vt.filter(un=>{return hn!=="relay"||(typeof(fn=un.urls)=="string"?fn.startsWith("turn:"):fn.some(An=>An.startsWith("turn:")));var fn}).filter(un=>an!=="udp"||_n(un.urls,"udp")).filter(un=>an!=="tcp"||_n(un.urls,"tcp")),vn=(tn=this.config.alternateRTCPeerConnection)!==null&&tn!==void 0?tn:window.RTCPeerConnection;if(!vn)throw new Error("RTCPeerConnection class not found. WebRTC must be enabled.");return new vn(Object.assign({iceServers:mn,iceTransportPolicy:hn},qt))})}closeConnections(Vt){return nn(this,void 0,void 0,function*(){const qt=yield xt(Vt.map(tn=>nn(this,void 0,void 0,function*(){yield tn.close()})));for(const tn of qt)mt.a.warn("Request to close session failed",{error:tn})})}getActiveConnection(Vt){return this.getConnections().find(qt=>qt.getRemotePeerId()===Vt&&qt.isActive())}update(){var Vt;return nn(this,void 0,void 0,function*(){if(this.localConnections=this.localConnections.filter(mn=>mn.isActive()),this.config.lanOnlyMode)return;const{signalingClient:qt}=this.config;if(!this.localPeer||!this.receiveSignalStream||!this.iceServers)return this.localPeer||(yield this.createPeer()),this.iceServers||(yield this.updateIceServers()),void(this.receiveSignalStream||(yield this.createReceiveSignalStream()));yield this.closeConnections(this.connections.filter(mn=>!mn.isActive())),this.connections=this.connections.filter(mn=>mn.isActive());const{localPeer:tn}=this,hn=this.connections.filter(mn=>mn.getSessionId).map(mn=>vt(mn.getSessionId()));tn.setSessionIdsList(hn);const an=new Lt.RefreshPeerRequest;an.setPeer(tn);try{yield qt.refreshPeer(an,yield this.getMetadata({}))}catch(mn){mn.code===Mt.StatusCode.NOT_FOUND?(mt.a.warn("Peer expired, creating new peer",{peerId:tn.getPeerId()}),yield this.reset()):mt.a.warn("Error calling RefreshPeer",{error:mn})}const _n=yield this.getPeers();for(const mn of this.connections)mn.setRemoteDeviceId((Vt=_n.find(vn=>vn.id===mn.getRemotePeerId()))===null||Vt===void 0?void 0:Vt.deviceId)})}reset(){return nn(this,void 0,void 0,function*(){yield this.closeConnections(this.connections),this.connections=[],this.isOutgoingConnection=new Map,yield this.createPeer(),yield this.createReceiveSignalStream()})}updateIceServers(){return nn(this,void 0,void 0,function*(){if(this.config.lanOnlyMode)return;const{iceServersLastUpdate:Vt,iceServersTtl:qt}=this,tn=new Date().getTime();if(!Vt||tn-Vt>qt)try{const hn=(yield this.config.signalingClient.getIceServers(new Lt.GetIceServersRequest,yield this.getMetadata({}))).getIceServers();this.iceServers=JSON.parse(hn),this.iceServersLastUpdate=tn}catch(hn){mt.a.warn("Error in updateIceServers",{error:hn})}})}setupHandlers(Vt){const{peerConnection:qt}=Vt,tn=Vt.getSessionCreatedTimestamp();qt.onconnectionstatechange=()=>nn(this,void 0,void 0,function*(){const hn=qt.connectionState;if(tn)switch(hn){case"connected":kt.aggregate("rtc-connect-time",new Date().getTime()-tn);break;case"failed":kt.increment("rtc-connect-failed")}})}getMetadata(Vt){return nn(this,void 0,void 0,function*(){if(this.config.lanOnlyMode)throw new Error("getMetadata method cannot be called in local-only mode");const{getToken:qt}=this.config,{grpcCallDeadline:tn}=this,{hasDeadline:hn}=Vt,an=hn===!1?void 0:new Date().getTime()+tn;return{authorization:yield qt(),deadline:an}})}}},,function(o,i,s){s.r(i),s.d(i,"LogClient",function(){return Z});var j=s(26),$=function(et,_e,nt,rt){return new(nt||(nt=Promise))(function(at,ft){function st(ut){try{it(rt.next(ut))}catch(pt){ft(pt)}}function lt(ut){try{it(rt.throw(ut))}catch(pt){ft(pt)}}function it(ut){var pt;ut.done?at(ut.value):(pt=ut.value,pt instanceof nt?pt:new nt(function(bt){bt(pt)})).then(st,lt)}it((rt=rt.apply(et,_e||[])).next())})};class Z extends j.a{log(_e){return $(this,void 0,void 0,function*(){yield this.fetch("logs",{method:"POST",body:JSON.stringify({logs:_e}),allowUnsafeRetries:!0})})}}}])})})(dist);let FORMANT_API_URL="https://api.formant.io";typeof window!="undefined"&&(FORMANT_API_URL=window.FORMANT_API_URL||FORMANT_API_URL);let urlParams$1=new URLSearchParams("");typeof window!="undefined"&&(urlParams$1=new URLSearchParams(window.location.search));const envDev=urlParams$1.get("formant_dev");envDev&&(FORMANT_API_URL="https://api-dev.formant.io");const envStage=urlParams$1.get("formant_stage");envStage&&(FORMANT_API_URL="https://api-stage.formant.io");function delay(o){return new Promise(i=>setTimeout(i,o))}function defined(o,i){if(o!==void 0)return o;throw new Error(i||"Value is undefined")}class App$2{static sendAppMessage(i){window.parent.postMessage(i,"*")}static getCurrentModuleContext(){let i=new URLSearchParams("");return typeof window!="undefined"&&(i=new URLSearchParams(window.location.search)),i.get("module")}static isModule(){return this.getCurrentModuleContext()!==null}static goToTime(i){this.sendAppMessage({type:"go_to_time",time:i.getTime()})}static showMessage(i){this.sendAppMessage({type:"show_message",message:i})}static requestModuleData(){const i=this.getCurrentModuleContext();if(!i)throw new Error("No module context");this.sendAppMessage({type:"request_module_data",module:i})}static setModuleDateTimeRange(i,s){const j=this.getCurrentModuleContext();if(!j)throw new Error("No module context");this.sendAppMessage({type:"set_module_data_time_range",module:j,before:i,after:s||0})}static refreshAuthToken(){const i=this.getCurrentModuleContext();if(!i)throw new Error("No module context");this.sendAppMessage({type:"refresh_auth_token",module:i})}static setupModuleMenus(i){const s=this.getCurrentModuleContext();if(!s)throw new Error("No module context");this.sendAppMessage({type:"setup_module_menus",module:s,menus:i})}static addMenuListener(i){window.addEventListener("message",s=>{const j=s.data;j.type==="module_menu_item_clicked"&&i(j.menu)})}static addAccessTokenRefreshListener(i){window.addEventListener("message",s=>{const j=s.data;j.type==="auth_token"&&i(j.token)})}static addModuleDataListener(i){window.addEventListener("message",s=>{const j=s.data;j.type==="module_data"&&i({streams:j.streams,time:j.time,queryRange:j.queryRange})})}}const _Authentication=class{static async login(o,i){try{const s=await fetch(`${FORMANT_API_URL}/v1/admin/auth/login`,{method:"POST",body:JSON.stringify({email:o,password:i}),headers:{"Content-Type":"application/json"}}),j=await s.json();if(s.status!==200)throw new Error(j.message);return await _Authentication.loginWithToken(j.authentication.accessToken,j.authentication.refreshToken),j.authentication}catch(s){return _Authentication.waitingForAuth.forEach(j=>j(!1)),_Authentication.waitingForAuth=[],Promise.reject(s)}}static async loginWithToken(o,i){const s=JSON.parse(atob(o.split(".")[1]));try{let j;if(_Authentication.isShareToken=s["formant:claims"]&&s["formant:claims"].type=="share",s["formant:claims"]&&(_Authentication.currentOrganization=s["formant:claims"].organizationId),s["custom:organization_id"]&&(_Authentication.currentOrganization=s["custom:organization_id"]),_Authentication.isShareToken||(j=s.sub),s["formant:claims"]&&s["formant:claims"].userId&&(j=s["formant:claims"].userId),j){const $=await fetch(`${FORMANT_API_URL}/v1/admin/users/${j}`,{method:"GET",headers:{"Content-Type":"application/json",Authorization:"Bearer "+o}}),Z=await $.json();if($.status!==200)throw new Error(Z.message);_Authentication.currentUser=Z}_Authentication.token=o,_Authentication.waitingForAuth.forEach($=>$(!0))}catch(j){console.error(j),_Authentication.waitingForAuth.forEach($=>$(!1))}_Authentication.waitingForAuth=[],i&&(_Authentication.refreshToken=i,setInterval(async()=>{if(_Authentication.refreshToken){const $=await(await fetch(`${FORMANT_API_URL}/v1/admin/auth/refresh`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({refreshToken:_Authentication.refreshToken})})).json();_Authentication.token=$.authentication.accessToken}},1e3*60*60))}static isAuthenticated(){return _Authentication.token!==void 0}static getCurrentUser(){return _Authentication.currentUser}static async waitTilAuthenticated(){return _Authentication.token!==void 0?!0:new Promise(o=>{_Authentication.waitingForAuth.push(function(i){o(i)})})}static async listenForRefresh(){App$2.addAccessTokenRefreshListener(o=>{this.loginWithToken(o)}),setInterval(async()=>{App$2.refreshAuthToken()},1e3*60*60)}};let Authentication=_Authentication;__publicField(Authentication,"token");__publicField(Authentication,"refreshToken");__publicField(Authentication,"currentUser");__publicField(Authentication,"currentOrganization");__publicField(Authentication,"isShareToken",!1);__publicField(Authentication,"defaultDeviceId");__publicField(Authentication,"waitingForAuth",[]);class DataChannel{constructor(i){__publicField(this,"ready",!1),__publicField(this,"listeners",[]),__publicField(this,"binaryListeners",[]),__publicField(this,"error"),__publicField(this,"decoder",new TextDecoder),this.dataChannel=i,this.dataChannel.binaryType="arraybuffer",this.dataChannel.onopen=()=>{this.ready=!0},this.dataChannel.onclose=()=>{this.ready=!1},this.dataChannel.onerror=s=>{console.error(s),this.error="An error occurred in DataChannel"},this.dataChannel.onmessage=s=>{this.listeners.forEach(j=>{const $=new Uint8Array(s.data),Z=this.decoder.decode($);j(Z)}),this.binaryListeners.forEach(j=>{j(new Uint8Array(s.data))})}}async waitTilReady(){return this.ready?!0:new Promise((s,j)=>{let $=window.setInterval(()=>{this.ready&&(window.clearInterval($),s(!0)),this.error&&j(this.error)},10)})}send(i){if(!this.ready)throw new Error("Connection has been closed");this.dataChannel.send(i)}sendBinary(i){if(!this.ready)throw new Error("Connection has been closed");this.dataChannel.send(i)}addListener(i){this.listeners.push(i)}removeListener(i){const s=this.listeners.indexOf(i);if(s===-1)throw new Error("Could not find data channel listener to remove");if(this.error)throw new Error(this.error);this.listeners.splice(s,1)}addBinaryListener(i){this.binaryListeners.push(i)}removeBinaryListener(i){const s=this.binaryListeners.indexOf(i);if(s===-1)throw new Error("Could not find data channel listener to remove");if(this.error)throw new Error(this.error);this.binaryListeners.splice(s,1)}}class CaptureStream{constructor(i){__publicField(this,"token"),this.captureSession=i}async ingestJSON(i){if(!this.token){const j=await(await fetch(`${FORMANT_API_URL}/v1/admin/capture-sessions/${this.captureSession.code}/authenticate`,{method:"POST"})).json();this.token=j.token}await fetch(`${FORMANT_API_URL}/v1/ingest`,{method:"POST",body:JSON.stringify({deviceId:this.captureSession.deviceId,name:this.captureSession.streamName,type:"json",points:[[Date.now(),JSON.stringify(i)]]}),headers:{"Content-Type":"application/json",Authorization:"Bearer "+this.token}})}}class Manipulator{constructor(i,s){__publicField(this,"currentListeners",[]),__publicField(this,"onRealtimeMessage",(j,$)=>{$.payload.jointState&&this.currentListeners.forEach(Z=>Z($.payload.jointState))}),this.device=i,this.config=s}async synchronize(){this.device.addRealtimeListener(this.onRealtimeMessage),this.device.startListeningToRealtimeDataStream(this.config.currentJointStateStream)}async desynchronize(){this.device.removeRealtimeListener(this.onRealtimeMessage),this.device.stopListeningToRealtimeDataStream(this.config.currentJointStateStream)}async addCurrentJointStateListener(i){this.currentListeners.push(i)}}class RequestDataChannel{constructor(i,s,j){__publicField(this,"channel"),__publicField(this,"requestIdToResponseMap",new Map),this.device=i,this.channel_name=s,this.timeout=j}}class BinaryRequestDataChannel extends RequestDataChannel{constructor(){super(...arguments),__publicField(this,"RESPONSE_SUCCESS_BYTE",0),__publicField(this,"decoder",new TextDecoder)}generateBinaryId(){const i=new Uint8Array(16);for(let s=0;s{const j=i.slice(0,16).toString();if(j.length===0)throw new Error("Invalid response");const $=i.slice(16);if($.length===0)throw new Error("Invalid response");this.requestIdToResponseMap.has(j)&&this.requestIdToResponseMap.set(j,$)})}async request(i){if(this.channel||await this.initialize(),!this.channel)throw new Error("Failed to create channel");const{channel:s,requestIdToResponseMap:j,timeout:$}=this;await s.waitTilReady();const Z=this.generateBinaryId(),et=Z.toString();j.set(et,!0),s.sendBinary(new Uint8Array([...Z,...i]));const _e=new Date().getTime();for(;new Date().getTime()<_e+$;)if(await delay(50),j.has(et)){const nt=j.get(et);if(nt!==!0){j.delete(et);const rt=nt[0]===this.RESPONSE_SUCCESS_BYTE,at=nt.slice(1);if(rt)return at;throw{name:"AdapterError",message:this.decoder.decode(at)}}}throw j.delete(et),{name:"TimeoutError",message:`Request timed out after ${$/1e3} seconds`}}}class TextRequestDataChannel extends RequestDataChannel{generateTextId(){return Math.random().toString(36).substring(2)+"-"+Math.random().toString(36).substring(2)}async initialize(){this.channel=await this.device.createCustomDataChannel(this.channel_name),this.channel.addListener(i=>{const s=JSON.parse(i),{id:j,data:$,error:Z}=s;if(!j)throw new Error("Invalid response");if(!$&&!Z)throw new Error("Invalid response");this.requestIdToResponseMap.has(j)&&this.requestIdToResponseMap.set(j,s)})}async request(i){if(this.channel||await this.initialize(),!this.channel)throw new Error("Failed to create channel");const{channel:s,requestIdToResponseMap:j,timeout:$}=this;await s.waitTilReady();const Z=this.generateTextId();j.set(Z,!0),s.send(JSON.stringify({id:Z,data:i}));const et=new Date().getTime();for(;new Date().getTime(){this.realtimeListeners.forEach(et=>et($,Z))}),this.id=i,this.name=s,this.organizationId=j}async getLatestTelemetry(){return(await(await fetch(`${FORMANT_API_URL}/v1/queries/stream-current-value`,{method:"POST",body:JSON.stringify({deviceIds:[this.id]}),headers:{"Content-Type":"application/json",Authorization:"Bearer "+Authentication.token}})).json()).items}async getConfiguration(){let i=await fetch(`${FORMANT_API_URL}/v1/admin/devices/${this.id}`,{method:"GET",headers:{"Content-Type":"application/json",Authorization:"Bearer "+Authentication.token}});const s=await i.json();if(!s.state.reportedConfiguration)throw new Error("Device has no configuration, has it ever been turned on?");const j=s.state.reportedConfiguration.version;return i=await fetch(`${FORMANT_API_URL}/v1/admin/devices/${this.id}/configurations/${j}`,{method:"GET",headers:{"Content-Type":"application/json",Authorization:"Bearer "+Authentication.token}}),(await i.json()).document}async getFileUrl(i){return(await(await fetch(`${FORMANT_API_URL}/v1/admin/files/query`,{method:"POST",body:JSON.stringify({fileId:[i]}),headers:{"Content-Type":"application/json",Authorization:"Bearer "+Authentication.token}})).json()).fileUrls}async startRealtimeConnection(){if(this.rtcClient)throw new Error(`Already created realtime connection to device ${this.id}`);{const i=new dist.exports.RtcClient({signalingClient:new dist.exports.SignalingPromiseClient(FORMANT_API_URL,null,null),getToken:async()=>defined(Authentication.token,"Realtime when user isn't authorized"),receive:this.handleMessage});for(;!i.isReady();)await delay(100);const j=(await i.getPeers()).find(Z=>Z.deviceId===this.id);if(!j)throw new Error("Cannot find peer, is the robot offline?");const $=j.id;for(await i.connect($);i.getConnectionStatus($)!=="connected";)await delay(100);this.rtcClient=i}}addRealtimeListener(i){this.realtimeListeners.push(i)}removeRealtimeListener(i){const s=this.realtimeListeners.indexOf(i);if(s===-1)throw new Error("Could not find realtime listener to remove");this.realtimeListeners.splice(s,1)}async getRealtimeVideoStreams(){var i,s,j;const $=await this.getConfiguration(),Z=[];for(const et of(i=$.teleop.hardwareStreams)!=null?i:[])et.rtcStreamType==="h264-video-frame"&&Z.push({name:et.name});for(const et of(s=$.teleop.rosStreams)!=null?s:[])et.topicType=="formant/H264VideoFrame"&&Z.push({name:et.topicName});for(const et of(j=$.teleop.customStreams)!=null?j:[])et.rtcStreamType==="h264-video-frame"&&Z.push({name:et.name});return Z}async getRealtimeManipulators(){var i;const s=await this.getConfiguration(),j=[];for(const $ of(i=s.teleop.rosStreams)!=null?i:[])$.topicType=="sensor_msgs/JointState"&&j.push(new Manipulator(this,{currentJointStateStream:{name:$.topicName},plannedJointStateStream:$.plannedTopic?{name:$.plannedTopic}:void 0,planValidStream:$.planValidTopic?{name:$.planValidTopic}:void 0,endEffectorStream:$.endEffectorTopic?{name:$.endEffectorTopic}:void 0,endEffectorLinkName:$.endEffectorLinkName,baseReferenceFrame:$.baseReferenceFrame,localFrame:$.localFrame}));return j}async startListeningToRealtimeVideo(i){const s=defined(this.rtcClient,"Realtime connection has not been started"),j=await this.getRemotePeer();s.controlRemoteStream(defined(j).id,{streamName:i.name,enable:!0,pipeline:"rtc"})}async stopListeningToRealtimeVideo(i){const s=defined(this.rtcClient,"Realtime connection has not been started"),j=await this.getRemotePeer();s.controlRemoteStream(defined(j).id,{streamName:i.name,enable:!1,pipeline:"rtc"})}async startListeningToRealtimeDataStream(i){const s=defined(this.rtcClient,"Realtime connection has not been started"),j=await this.getRemotePeer();s.controlRemoteStream(defined(j).id,{streamName:i.name,enable:!0,pipeline:"rtc"})}async stopListeningToRealtimeDataStream(i){const s=defined(this.rtcClient,"Realtime connection has not been started"),j=await this.getRemotePeer();s.controlRemoteStream(defined(j).id,{streamName:i.name,enable:!1,pipeline:"rtc"})}async enableRealtimeTelemetryPriorityIngestion(i){const s=defined(this.rtcClient,"Realtime connection has not been started"),j=await this.getRemotePeer();s.controlRemoteStream(defined(j).id,{streamName:i,enablePriorityUpload:!0,pipeline:"telemetry"})}async disableRealtimeTelemetryPriorityIngestion(i){const s=defined(this.rtcClient,"Realtime connection has not been started"),j=await this.getRemotePeer();s.controlRemoteStream(defined(j).id,{streamName:i,enablePriorityUpload:!1,pipeline:"telemetry"})}async getRemotePeer(){const s=(await defined(this.rtcClient,"Realtime connection has not been started").getPeers()).find(j=>j.deviceId===this.id);return defined(s,"Could not find remote peer for device "+this.id)}async stopRealtimeConnection(){if(this.rtcClient)await this.rtcClient.disconnect(this.id);else throw new Error(`Realtime connection hasn't been started for ${this.id}`)}async isInRealtimeSession(){let i=await Fleet.getPeers(),s=await Fleet.getRealtimeSessions(),j=i.find($=>$.deviceId===this.id);return j?s[j.id].length>0:!1}async getAvailableCommands(){return(await(await fetch(`${FORMANT_API_URL}/v1/admin/command-templates/`,{method:"GET",headers:{"Content-Type":"application/json",Authorization:"Bearer "+Authentication.token}})).json()).items.map(j=>({name:j.name,id:j.id,command:j.command,description:j.description,parameterEnabled:j.parameterEnabled,parameterValue:j.parameterValue,parameterMeta:j.parameterMeta}))}async sendCommand(i,s,j,$){var Z;const _e=(await this.getAvailableCommands()).find(st=>st.name===i);if(!_e)throw new Error(`Could not find command with name "${i}"`);let nt;if(s===void 0)if(_e.parameterEnabled&&_e.parameterValue)nt=_e.parameterValue;else throw new Error("Command has no default parameter value, you must provide one");else nt=s;let rt={value:nt,scrubberTime:(j||new Date).toISOString(),meta:__spreadValues(__spreadValues({},_e.parameterMeta),$)};return(await(await fetch(`${FORMANT_API_URL}/v1/admin/commands`,{method:"POST",body:JSON.stringify({commandTemplateId:_e.id,organizationId:this.organizationId,deviceId:this.id,command:_e.command,parameter:rt,userId:(Z=Authentication.currentUser)==null?void 0:Z.id}),headers:{"Content-Type":"application/json",Authorization:"Bearer "+Authentication.token}})).json()).fileUrls}async createCustomDataChannel(i,s){const j=defined(this.rtcClient,"Realtime connection has not been started"),$=await this.getRemotePeer();return new Promise(et=>{j.createCustomDataChannel(defined($).id,i,__spreadValues({ordered:!0},s),!1,(_e,nt)=>{const rt=new DataChannel(nt);et(rt)})})}createCustomRequestDataChannel(i,s=3e3){return new TextRequestDataChannel(this,i,s)}createCustomBinaryRequestDataChannel(i,s=3e3){return new BinaryRequestDataChannel(this,i,s)}async createCaptureStream(i){const j=await(await fetch(`${FORMANT_API_URL}/v1/admin/capture-sessions`,{method:"POST",body:JSON.stringify({deviceId:this.id,streamName:i,tags:{}}),headers:{"Content-Type":"application/json",Authorization:"Bearer "+Authentication.token}})).json();return new CaptureStream(j)}async getTelemetry(i,s,j,$){return await Fleet.getTelemetry(this.id,i,s,j,$)}async getTelemetryStreams(){var i,s;const j=await this.getConfiguration(),$=await fetch(`${FORMANT_API_URL}/v1/queries/metadata/stream-names`,{method:"POST",body:JSON.stringify({deviceIds:[this.id]}),headers:{"Content-Type":"application/json",Authorization:"Bearer "+Authentication.token}}),Z=[],et=[];return(s=(i=j.telemetry)==null?void 0:i.streams)==null||s.forEach(rt=>{rt.disabled!==!0&&Z.push(rt.name),rt.onDemand===!0&&et.push(rt.name)}),console.log(et),(await $.json()).items.filter(rt=>!Z.includes(rt)).map(rt=>({name:rt,onDemand:et.includes(rt)}))}}const _Fleet=class{static async setDefaultDevice(o){_Fleet.defaultDeviceId=o}static async getCurrentDevice(){if(!Authentication.token)throw new Error("Not authenticated");if(!_Fleet.defaultDeviceId)throw new Error("No known default device");const j=(await(await fetch(`${FORMANT_API_URL}/v1/admin/device-details/query`,{method:"POST",headers:{"Content-Type":"application/json",Authorization:"Bearer "+Authentication.token}})).json()).items.find(Z=>Z.id===_Fleet.defaultDeviceId).name,$=new Device(_Fleet.defaultDeviceId,j,defined(Authentication.currentOrganization));return _Fleet.knownContext.push(new WeakRef($)),$}static async getDevice(o){if(!Authentication.token)throw new Error("Not authenticated");const s=await(await fetch(`${FORMANT_API_URL}/v1/admin/devices/${o}`,{method:"GET",headers:{"Content-Type":"application/json",Authorization:"Bearer "+Authentication.token}})).json(),j=s.name,$=new Device(o,j,s.organizationId);return _Fleet.knownContext.push(new WeakRef($)),$}static async getDevices(){if(!Authentication.token)throw new Error("Not authenticated");const i=await(await fetch(`${FORMANT_API_URL}/v1/admin/device-details/query`,{method:"POST",body:JSON.stringify({enabled:!0,type:"default"}),headers:{"Content-Type":"application/json",Authorization:"Bearer "+Authentication.token}})).json();return i.items,i.items.map(s=>new Device(s.id,s.name,s.organizationId))}static async getOnlineDevices(){if(!Authentication.token)throw new Error("Not authenticated");const s=(await(await fetch(`${FORMANT_API_URL}/v1/queries/online-devices`,{method:"GET",headers:{"Content-Type":"application/json",Authorization:"Bearer "+Authentication.token}})).json()).items;return(await _Fleet.getDevices()).filter($=>s.includes($.id))}static async getPeers(){if(!Authentication.token)throw new Error("Not authenticated");return await new dist.exports.RtcClient({signalingClient:new dist.exports.SignalingPromiseClient(FORMANT_API_URL,null,null),getToken:async()=>defined(Authentication.token,"Realtime when user isn't authorized"),receive:()=>{}}).getPeers()}static async getRealtimeSessions(){if(!Authentication.token)throw new Error("Not authenticated");return await new dist.exports.RtcClient({signalingClient:new dist.exports.SignalingPromiseClient(FORMANT_API_URL,null,null),getToken:async()=>defined(Authentication.token,"Realtime when user isn't authorized"),receive:()=>{}}).getSessions()}static async getRealtimeDevices(){if(!Authentication.token)throw new Error("Not authenticated");const s=(await(await fetch(`${FORMANT_API_URL}/v1/signaling/peers`,{method:"GET",headers:{"Content-Type":"application/json",Authorization:"Bearer "+Authentication.token}})).json()).items.map($=>$.deviceId);return(await _Fleet.getDevices()).filter($=>s.includes($.id))}static async getLatestTelemetry(o){let i=o;return o&&!Array.isArray(o)&&(o=[o]),(await(await fetch(`${FORMANT_API_URL}/v1/queries/stream-current-value`,{method:"POST",body:JSON.stringify({deviceIds:i}),headers:{"Content-Type":"application/json",Authorization:"Bearer "+Authentication.token}})).json()).items}static async getTelemetry(o,i,s,j,$){let Z=o;Array.isArray(o)||(Z=[o]);let et=i;return Array.isArray(i)||(et=[i]),(await(await fetch(`${FORMANT_API_URL}/v1/queries/queries`,{method:"POST",body:JSON.stringify({deviceIds:Z,end:j.toISOString(),names:et,start:s.toISOString(),tags:$}),headers:{"Content-Type":"application/json",Authorization:"Bearer "+Authentication.token}})).json()).items}static async getFileUrl(o){const s=await(await fetch(`${FORMANT_API_URL}/v1/admin/files/query`,{method:"POST",body:JSON.stringify({fileIds:[o]}),headers:{"Content-Type":"application/json",Authorization:"Bearer "+Authentication.token}})).json();if(s.fileUrls.length===0)throw new Error("File not found");return s.fileUrls[0]}static async queryTelemetry(o){if(!Authentication.token)throw new Error("Not authenticated");return(await(await fetch(`${FORMANT_API_URL}/v1/queries/queries`,{method:"POST",body:JSON.stringify(o),headers:{"Content-Type":"application/json",Authorization:"Bearer "+Authentication.token}})).json()).items}static async queryEvents(o){if(!Authentication.token)throw new Error("Not authenticated");return(await(await fetch(`${FORMANT_API_URL}/v1/admin/events/query`,{method:"POST",body:JSON.stringify(o),headers:{"Content-Type":"application/json",Authorization:"Bearer "+Authentication.token}})).json()).items}};let Fleet=_Fleet;__publicField(Fleet,"defaultDeviceId");__publicField(Fleet,"knownContext",[]);let urlParams=new URLSearchParams("");typeof window!="undefined"&&(urlParams=new URLSearchParams(window.location.search));const urlDevice=urlParams.get("device");urlDevice&&Fleet.setDefaultDevice(urlDevice);const urlAuth=urlParams.get("auth");urlAuth&&Authentication.loginWithToken(urlAuth);const moduleName=urlParams.get("module");moduleName&&Authentication.listenForRefresh();const useDevice=o=>{const[i,s]=react.exports.useState();react.exports.useEffect(()=>{j()},[]);const j=async()=>{try{if(await Authentication.waitTilAuthenticated()){if(o){const Z=await Fleet.getDevice(o);s(Z);return}const $=await Fleet.getCurrentDevice();s($)}}catch{throw new Error("Authentication failed, please authenticate and try again")}};return i},useLatestTelemetry=o=>{const[i,s]=react.exports.useState();react.exports.useEffect(()=>{j()},[]);const j=async()=>{let $=null;await Authentication.waitTilAuthenticated()&&(typeof o=="string"&&($=await Fleet.getLatestTelemetry([o])),!!o&&typeof o!="string"&&($=await Fleet.getLatestTelemetry(o)),o||($=await(await Fleet.getCurrentDevice()).getLatestTelemetry()),s($))};return i};var App$1="",lodash={exports:{}};/** + * @license + * Lodash + * Copyright OpenJS Foundation and other contributors + * Released under MIT license + * Based on Underscore.js 1.8.3 + * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors + */(function(o,i){(function(){var s,j="4.17.21",$=200,Z="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",et="Expected a function",_e="Invalid `variable` option passed into `_.template`",nt="__lodash_hash_undefined__",rt=500,at="__lodash_placeholder__",ft=1,st=2,lt=4,it=1,ut=2,pt=1,bt=2,xt=4,vt=8,mt=16,ct=32,Rt=64,Ft=128,Ut=256,yt=512,ht=30,Ct="...",St=800,kt=16,Lt=1,Mt=2,Tt=3,Ot=1/0,At=9007199254740991,wt=17976931348623157e292,gt=0/0,Nt=4294967295,Bt=Nt-1,Gt=Nt>>>1,Kt=[["ary",Ft],["bind",pt],["bindKey",bt],["curry",vt],["curryRight",mt],["flip",yt],["partial",ct],["partialRight",Rt],["rearg",Ut]],Zt="[object Arguments]",zt="[object Array]",$t="[object AsyncFunction]",Et="[object Boolean]",It="[object Date]",Dt="[object DOMException]",Jt="[object Error]",Qt="[object Function]",nn="[object GeneratorFunction]",cn="[object Map]",sn="[object Number]",Vt="[object Null]",qt="[object Object]",tn="[object Promise]",hn="[object Proxy]",an="[object RegExp]",_n="[object Set]",mn="[object String]",vn="[object Symbol]",un="[object Undefined]",fn="[object WeakMap]",An="[object WeakSet]",kn="[object ArrayBuffer]",Tn="[object DataView]",Dn="[object Float32Array]",Pn="[object Float64Array]",Gn="[object Int8Array]",tr="[object Int16Array]",Qn="[object Int32Array]",ir="[object Uint8Array]",yr="[object Uint8ClampedArray]",Rr="[object Uint16Array]",jr="[object Uint32Array]",yu=/\b__p \+= '';/g,ys=/\b(__p \+=) '' \+/g,qo=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Yo=/&(?:amp|lt|gt|quot|#39);/g,Ko=/[&<>"']/g,vs=RegExp(Yo.source),bs=RegExp(Ko.source),Zo=/<%-([\s\S]+?)%>/g,Ks=/<%([\s\S]+?)%>/g,_s=/<%=([\s\S]+?)%>/g,Zs=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Xs=/^\w*$/,Js=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,ws=/[\\^$.*+?()[\]{}|]/g,Xo=RegExp(ws.source),No=/^\s+/,Ss=/\s/,wo=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Jr=/\{\n\/\* \[wrapped with (.+)\] \*/,Qs=/,? & /,ca=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Es=/[()=,{}\[\]\/\s]/,Ts=/\\(\\)?/g,Jo=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,xs=/\w*$/,vu=/^[-+]0x[0-9a-f]+$/i,bu=/^0b[01]+$/i,ga=/^\[object .+?Constructor\]$/,Rs=/^0o[0-7]+$/i,Cs=/^(?:0|[1-9]\d*)$/,Qo=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,vr=/($^)/,ya=/['\n\r\u2028\u2029\\]/g,Lo="\\ud800-\\udfff",_a="\\u0300-\\u036f",yl="\\ufe20-\\ufe2f",vl="\\u20d0-\\u20ff",oo=_a+yl+vl,_i="\\u2700-\\u27bf",As="a-z\\xdf-\\xf6\\xf8-\\xff",So="\\xac\\xb1\\xd7\\xf7",_u="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",io="\\u2000-\\u206f",_l=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",wl="A-Z\\xc0-\\xd6\\xd8-\\xde",Sl="\\ufe0e\\ufe0f",El=So+_u+io+_l,Os="['\u2019]",wu="["+Lo+"]",Tl="["+El+"]",Bo="["+oo+"]",Is="\\d+",xl="["+_i+"]",es="["+As+"]",Ps="[^"+Lo+El+Is+_i+As+wl+"]",Qr="\\ud83c[\\udffb-\\udfff]",Rl="(?:"+Bo+"|"+Qr+")",$r="[^"+Lo+"]",ts="(?:\\ud83c[\\udde6-\\uddff]){2}",uo="[\\ud800-\\udbff][\\udc00-\\udfff]",Eo="["+wl+"]",ks="\\u200d",Cl="(?:"+es+"|"+Ps+")",Wr="(?:"+Eo+"|"+Ps+")",To="(?:"+Os+"(?:d|ll|m|re|s|t|ve))?",co="(?:"+Os+"(?:D|LL|M|RE|S|T|VE))?",Er=Rl+"?",ns="["+Sl+"]?",Al="(?:"+ks+"(?:"+[$r,ts,uo].join("|")+")"+ns+Er+")*",Ms="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",jt="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Ht=ns+Er+Al,en="(?:"+[xl,ts,uo].join("|")+")"+Ht,on="(?:"+[$r+Bo+"?",Bo,ts,uo,wu].join("|")+")",yn=RegExp(Os,"g"),Sn=RegExp(Bo,"g"),dn=RegExp(Qr+"(?="+Qr+")|"+on+Ht,"g"),bn=RegExp([Eo+"?"+es+"+"+To+"(?="+[Tl,Eo,"$"].join("|")+")",Wr+"+"+co+"(?="+[Tl,Eo+Cl,"$"].join("|")+")",Eo+"?"+Cl+"+"+To,Eo+"+"+co,jt,Ms,Is,en].join("|"),"g"),In=RegExp("["+ks+Lo+oo+Sl+"]"),On=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,jn=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],er=-1,Bn={};Bn[Dn]=Bn[Pn]=Bn[Gn]=Bn[tr]=Bn[Qn]=Bn[ir]=Bn[yr]=Bn[Rr]=Bn[jr]=!0,Bn[Zt]=Bn[zt]=Bn[kn]=Bn[Et]=Bn[Tn]=Bn[It]=Bn[Jt]=Bn[Qt]=Bn[cn]=Bn[sn]=Bn[qt]=Bn[an]=Bn[_n]=Bn[mn]=Bn[fn]=!1;var Fn={};Fn[Zt]=Fn[zt]=Fn[kn]=Fn[Tn]=Fn[Et]=Fn[It]=Fn[Dn]=Fn[Pn]=Fn[Gn]=Fn[tr]=Fn[Qn]=Fn[cn]=Fn[sn]=Fn[qt]=Fn[an]=Fn[_n]=Fn[mn]=Fn[vn]=Fn[ir]=Fn[yr]=Fn[Rr]=Fn[jr]=!0,Fn[Jt]=Fn[Qt]=Fn[fn]=!1;var sr={\u00C0:"A",\u00C1:"A",\u00C2:"A",\u00C3:"A",\u00C4:"A",\u00C5:"A",\u00E0:"a",\u00E1:"a",\u00E2:"a",\u00E3:"a",\u00E4:"a",\u00E5:"a",\u00C7:"C",\u00E7:"c",\u00D0:"D",\u00F0:"d",\u00C8:"E",\u00C9:"E",\u00CA:"E",\u00CB:"E",\u00E8:"e",\u00E9:"e",\u00EA:"e",\u00EB:"e",\u00CC:"I",\u00CD:"I",\u00CE:"I",\u00CF:"I",\u00EC:"i",\u00ED:"i",\u00EE:"i",\u00EF:"i",\u00D1:"N",\u00F1:"n",\u00D2:"O",\u00D3:"O",\u00D4:"O",\u00D5:"O",\u00D6:"O",\u00D8:"O",\u00F2:"o",\u00F3:"o",\u00F4:"o",\u00F5:"o",\u00F6:"o",\u00F8:"o",\u00D9:"U",\u00DA:"U",\u00DB:"U",\u00DC:"U",\u00F9:"u",\u00FA:"u",\u00FB:"u",\u00FC:"u",\u00DD:"Y",\u00FD:"y",\u00FF:"y",\u00C6:"Ae",\u00E6:"ae",\u00DE:"Th",\u00FE:"th",\u00DF:"ss",\u0100:"A",\u0102:"A",\u0104:"A",\u0101:"a",\u0103:"a",\u0105:"a",\u0106:"C",\u0108:"C",\u010A:"C",\u010C:"C",\u0107:"c",\u0109:"c",\u010B:"c",\u010D:"c",\u010E:"D",\u0110:"D",\u010F:"d",\u0111:"d",\u0112:"E",\u0114:"E",\u0116:"E",\u0118:"E",\u011A:"E",\u0113:"e",\u0115:"e",\u0117:"e",\u0119:"e",\u011B:"e",\u011C:"G",\u011E:"G",\u0120:"G",\u0122:"G",\u011D:"g",\u011F:"g",\u0121:"g",\u0123:"g",\u0124:"H",\u0126:"H",\u0125:"h",\u0127:"h",\u0128:"I",\u012A:"I",\u012C:"I",\u012E:"I",\u0130:"I",\u0129:"i",\u012B:"i",\u012D:"i",\u012F:"i",\u0131:"i",\u0134:"J",\u0135:"j",\u0136:"K",\u0137:"k",\u0138:"k",\u0139:"L",\u013B:"L",\u013D:"L",\u013F:"L",\u0141:"L",\u013A:"l",\u013C:"l",\u013E:"l",\u0140:"l",\u0142:"l",\u0143:"N",\u0145:"N",\u0147:"N",\u014A:"N",\u0144:"n",\u0146:"n",\u0148:"n",\u014B:"n",\u014C:"O",\u014E:"O",\u0150:"O",\u014D:"o",\u014F:"o",\u0151:"o",\u0154:"R",\u0156:"R",\u0158:"R",\u0155:"r",\u0157:"r",\u0159:"r",\u015A:"S",\u015C:"S",\u015E:"S",\u0160:"S",\u015B:"s",\u015D:"s",\u015F:"s",\u0161:"s",\u0162:"T",\u0164:"T",\u0166:"T",\u0163:"t",\u0165:"t",\u0167:"t",\u0168:"U",\u016A:"U",\u016C:"U",\u016E:"U",\u0170:"U",\u0172:"U",\u0169:"u",\u016B:"u",\u016D:"u",\u016F:"u",\u0171:"u",\u0173:"u",\u0174:"W",\u0175:"w",\u0176:"Y",\u0177:"y",\u0178:"Y",\u0179:"Z",\u017B:"Z",\u017D:"Z",\u017A:"z",\u017C:"z",\u017E:"z",\u0132:"IJ",\u0133:"ij",\u0152:"Oe",\u0153:"oe",\u0149:"'n",\u017F:"s"},lr={"&":"&","<":"<",">":">",'"':""","'":"'"},Yn={"&":"&","<":"<",">":">",""":'"',"'":"'"},zr={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},xo=parseFloat,Py=parseInt,Ep=typeof commonjsGlobal$1=="object"&&commonjsGlobal$1&&commonjsGlobal$1.Object===Object&&commonjsGlobal$1,ky=typeof self=="object"&&self&&self.Object===Object&&self,br=Ep||ky||Function("return this")(),Su=i&&!i.nodeType&&i,Do=Su&&!0&&o&&!o.nodeType&&o,Tp=Do&&Do.exports===Su,Eu=Tp&&Ep.process,Vr=function(){try{var gn=Do&&Do.require&&Do.require("util").types;return gn||Eu&&Eu.binding&&Eu.binding("util")}catch{}}(),xp=Vr&&Vr.isArrayBuffer,Rp=Vr&&Vr.isDate,Cp=Vr&&Vr.isMap,Ap=Vr&&Vr.isRegExp,Op=Vr&&Vr.isSet,Ip=Vr&&Vr.isTypedArray;function Nr(gn,En,wn){switch(wn.length){case 0:return gn.call(En);case 1:return gn.call(En,wn[0]);case 2:return gn.call(En,wn[0],wn[1]);case 3:return gn.call(En,wn[0],wn[1],wn[2])}return gn.apply(En,wn)}function My(gn,En,wn,Nn){for(var zn=-1,nr=gn==null?0:gn.length;++zn-1}function Tu(gn,En,wn){for(var Nn=-1,zn=gn==null?0:gn.length;++Nn-1;);return wn}function Dp(gn,En){for(var wn=gn.length;wn--&&rs(En,gn[wn],0)>-1;);return wn}function Wy(gn,En){for(var wn=gn.length,Nn=0;wn--;)gn[wn]===En&&++Nn;return Nn}var zy=Au(sr),Vy=Au(lr);function Hy(gn){return"\\"+zr[gn]}function Gy(gn,En){return gn==null?s:gn[En]}function is(gn){return In.test(gn)}function qy(gn){return On.test(gn)}function Yy(gn){for(var En,wn=[];!(En=gn.next()).done;)wn.push(En.value);return wn}function ku(gn){var En=-1,wn=Array(gn.size);return gn.forEach(function(Nn,zn){wn[++En]=[zn,Nn]}),wn}function Fp(gn,En){return function(wn){return gn(En(wn))}}function Ao(gn,En){for(var wn=-1,Nn=gn.length,zn=0,nr=[];++wn-1}function Nv(tt,ot){var dt=this.__data__,Pt=Kl(dt,tt);return Pt<0?(++this.size,dt.push([tt,ot])):dt[Pt][1]=ot,this}fo.prototype.clear=Pv,fo.prototype.delete=kv,fo.prototype.get=Mv,fo.prototype.has=jv,fo.prototype.set=Nv;function go(tt){var ot=-1,dt=tt==null?0:tt.length;for(this.clear();++ot=ot?tt:ot)),tt}function Yr(tt,ot,dt,Pt,Wt,Xt){var rn,ln=ot&ft,pn=ot&st,xn=ot<if(dt&&(rn=Wt?dt(tt,Pt,Wt,Xt):dt(tt)),rn!==s)return rn;if(!cr(tt))return tt;var Rn=Vn(tt);if(Rn){if(rn=B0(tt),!ln)return Ir(tt,rn)}else{var Cn=xr(tt),Mn=Cn==Qt||Cn==nn;if(jo(tt))return _m(tt,ln);if(Cn==qt||Cn==Zt||Mn&&!Wt){if(rn=pn||Mn?{}:Fm(tt),!ln)return pn?R0(tt,Xv(rn,tt)):x0(tt,Xp(rn,tt))}else{if(!Fn[Cn])return Wt?tt:{};rn=D0(tt,Cn,ln)}}Xt||(Xt=new to);var Ln=Xt.get(tt);if(Ln)return Ln;Xt.set(tt,rn),py(tt)?tt.forEach(function(Wn){rn.add(Yr(Wn,ot,dt,Wn,tt,Xt))}):dy(tt)&&tt.forEach(function(Wn,Zn){rn.set(Zn,Yr(Wn,ot,dt,Zn,tt,Xt))});var $n=xn?pn?ep:_g:pn?kr:mr,qn=Rn?s:$n(tt);return Hr(qn||tt,function(Wn,Zn){qn&&(Zn=Wn,Wn=tt[Zn]),Us(rn,Zn,Yr(Wn,ot,dt,Zn,tt,Xt))}),rn}function Jv(tt){var ot=mr(tt);return function(dt){return Jp(dt,tt,ot)}}function Jp(tt,ot,dt){var Pt=dt.length;if(tt==null)return!Pt;for(tt=ar(tt);Pt--;){var Wt=dt[Pt],Xt=ot[Wt],rn=tt[Wt];if(rn===s&&!(Wt in tt)||!Xt(rn))return!1}return!0}function Qp(tt,ot,dt){if(typeof tt!="function")throw new Gr(et);return qs(function(){tt.apply(s,dt)},ot)}function $s(tt,ot,dt,Pt){var Wt=-1,Xt=Ol,rn=!0,ln=tt.length,pn=[],xn=ot.length;if(!ln)return pn;dt&&(ot=ur(ot,Lr(dt))),Pt?(Xt=Tu,rn=!1):ot.length>=$&&(Xt=js,rn=!1,ot=new $o(ot));e:for(;++WtWt?0:Wt+dt),Pt=Pt===s||Pt>Wt?Wt:Hn(Pt),Pt<0&&(Pt+=Wt),Pt=dt>Pt?0:my(Pt);dt0&&dt(ln)?ot>1?_r(ln,ot-1,dt,Pt,Wt):Co(Wt,ln):Pt||(Wt[Wt.length]=ln)}return Wt}var Fu=Rm(),tm=Rm(!0);function so(tt,ot){return tt&&Fu(tt,ot,mr)}function Uu(tt,ot){return tt&&tm(tt,ot,mr)}function Xl(tt,ot){return Ro(ot,function(dt){return vo(tt[dt])})}function zo(tt,ot){ot=ko(ot,tt);for(var dt=0,Pt=ot.length;tt!=null&&dtot}function _b(tt,ot){return tt!=null&&or.call(tt,ot)}function e0(tt,ot){return tt!=null&&ot in ar(tt)}function t0(tt,ot,dt){return tt>=Tr(ot,dt)&&tt=120&&Rn.length>=120)?new $o(rn&&Rn):s}Rn=tt[0];var Cn=-1,Mn=ln[0];e:for(;++Cn-1;)ln!==tt&&$l.call(ln,pn,1),$l.call(tt,pn,1);return tt}function dm(tt,ot){for(var dt=tt?ot.length:0,Pt=dt-1;dt--;){var Wt=ot[dt];if(dt==Pt||Wt!==Xt){var Xt=Wt;yo(Wt)?$l.call(tt,Wt,1):Zu(tt,Wt)}}return tt}function qu(tt,ot){return tt+Vl(qp()*(ot-tt+1))}function p0(tt,ot,dt,Pt){for(var Wt=-1,Xt=hr(zl((ot-tt)/(dt||1)),0),rn=wn(Xt);Xt--;)rn[Pt?Xt:++Wt]=tt,tt+=dt;return rn}function Yu(tt,ot){var dt="";if(!tt||ot<1||ot>At)return dt;do ot%2&&(dt+=tt),ot=Vl(ot/2),ot&&(tt+=tt);while(ot);return dt}function Kn(tt,ot){return ap(Wm(tt,ot,Mr),tt+"")}function h0(tt){return Zp(ms(tt))}function m0(tt,ot){var dt=ms(tt);return lu(dt,Wo(ot,0,dt.length))}function Vs(tt,ot,dt,Pt){if(!cr(tt))return tt;ot=ko(ot,tt);for(var Wt=-1,Xt=ot.length,rn=Xt-1,ln=tt;ln!=null&&++WtWt?0:Wt+ot),dt=dt>Wt?Wt:dt,dt<0&&(dt+=Wt),Wt=ot>dt?0:dt-ot>>>0,ot>>>=0;for(var Xt=wn(Wt);++Pt>>1,rn=tt[Xt];rn!==null&&!Dr(rn)&&(dt?rn<=ot:rn=$){var xn=ot?null:I0(tt);if(xn)return Pl(xn);rn=!1,Wt=js,pn=new $o}else pn=ot?[]:ln;e:for(;++Pt=Pt?tt:Kr(tt,ot,dt)}var bm=uv||function(tt){return br.clearTimeout(tt)};function _m(tt,ot){if(ot)return tt.slice();var dt=tt.length,Pt=Wp?Wp(dt):new tt.constructor(dt);return tt.copy(Pt),Pt}function _c(tt){var ot=new tt.constructor(tt.byteLength);return new Fl(ot).set(new Fl(tt)),ot}function w0(tt,ot){var dt=ot?_c(tt.buffer):tt.buffer;return new tt.constructor(dt,tt.byteOffset,tt.byteLength)}function S0(tt){var ot=new tt.constructor(tt.source,xs.exec(tt));return ot.lastIndex=tt.lastIndex,ot}function E0(tt){return Fs?ar(Fs.call(tt)):{}}function wm(tt,ot){var dt=ot?_c(tt.buffer):tt.buffer;return new tt.constructor(dt,tt.byteOffset,tt.length)}function Sm(tt,ot){if(tt!==ot){var dt=tt!==s,Pt=tt===null,Wt=tt===tt,Xt=Dr(tt),rn=ot!==s,ln=ot===null,pn=ot===ot,xn=Dr(ot);if(!ln&&!xn&&!Xt&&tt>ot||Xt&&rn&&pn&&!ln&&!xn||Pt&&rn&&pn||!dt&&pn||!Wt)return 1;if(!Pt&&!Xt&&!xn&&tt=ln)return pn;var xn=dt[Pt];return pn*(xn=="desc"?-1:1)}}return tt.index-ot.index}function Em(tt,ot,dt,Pt){for(var Wt=-1,Xt=tt.length,rn=dt.length,ln=-1,pn=ot.length,xn=hr(Xt-rn,0),Rn=wn(pn+xn),Cn=!Pt;++ln1?dt[Wt-1]:s,rn=Wt>2?dt[2]:s;for(Xt=tt.length>3&&typeof Xt=="function"?(Wt--,Xt):s,rn&&Ar(dt[0],dt[1],rn)&&(Xt=Wt<3?s:Xt,Wt=1),ot=ar(ot);++Pt-1?Wt[Xt?ot[rn]:rn]:s}}function Om(tt){return mo(function(ot){var dt=ot.length,Pt=dt,Wt=qr.prototype.thru;for(tt&&ot.reverse();Pt--;){var Xt=ot[Pt];if(typeof Xt!="function")throw new Gr(et);if(Wt&&!rn&&su(Xt)=="wrapper")var rn=new qr([],!0)}for(Pt=rn?Pt:dt;++Pt1&&Jn.reverse(),Rn&&pnln))return!1;var xn=Xt.get(tt),Rn=Xt.get(ot);if(xn&&Rn)return xn==ot&&Rn==tt;var Cn=-1,Mn=!0,Ln=dt&ut?new $o:s;for(Xt.set(tt,ot),Xt.set(ot,tt);++Cn1?"& ":"")+ot[Pt],ot=ot.join(dt>2?", ":" "),tt.replace(wo,`{ +/* [wrapped with `+ot+`] */ +`)}function U0(tt){return Vn(tt)||Go(tt)||!!(Hp&&tt&&tt[Hp])}function yo(tt,ot){var dt=typeof tt;return ot=ot==null?At:ot,!!ot&&(dt=="number"||dt!="symbol"&&Cs.test(tt))&&tt>-1&&tt%1==0&&tt0){if(++ot>=St)return arguments[0]}else ot=0;return tt.apply(s,arguments)}}function lu(tt,ot){var dt=-1,Pt=tt.length,Wt=Pt-1;for(ot=ot===s?Pt:ot;++dt1?tt[ot-1]:s;return dt=typeof dt=="function"?(tt.pop(),dt):s,ey(tt,dt)});function ty(tt){var ot=Yt(tt);return ot.__chain__=!0,ot}function X_(tt,ot){return ot(tt),tt}function uu(tt,ot){return ot(tt)}var J_=mo(function(tt){var ot=tt.length,dt=ot?tt[0]:0,Pt=this.__wrapped__,Wt=function(Xt){return Du(Xt,tt)};return ot>1||this.__actions__.length||!(Pt instanceof Xn)||!yo(dt)?this.thru(Wt):(Pt=Pt.slice(dt,+dt+(ot?1:0)),Pt.__actions__.push({func:uu,args:[Wt],thisArg:s}),new qr(Pt,this.__chain__).thru(function(Xt){return ot&&!Xt.length&&Xt.push(s),Xt}))});function Q_(){return ty(this)}function e1(){return new qr(this.value(),this.__chain__)}function t1(){this.__values__===s&&(this.__values__=hy(this.value()));var tt=this.__index__>=this.__values__.length,ot=tt?s:this.__values__[this.__index__++];return{done:tt,value:ot}}function n1(){return this}function r1(tt){for(var ot,dt=this;dt instanceof Yl;){var Pt=Ym(dt);Pt.__index__=0,Pt.__values__=s,ot?Wt.__wrapped__=Pt:ot=Pt;var Wt=Pt;dt=dt.__wrapped__}return Wt.__wrapped__=tt,ot}function o1(){var tt=this.__wrapped__;if(tt instanceof Xn){var ot=tt;return this.__actions__.length&&(ot=new Xn(this)),ot=ot.reverse(),ot.__actions__.push({func:uu,args:[lp],thisArg:s}),new qr(ot,this.__chain__)}return this.thru(lp)}function i1(){return ym(this.__wrapped__,this.__actions__)}var s1=tu(function(tt,ot,dt){or.call(tt,dt)?++tt[dt]:po(tt,dt,1)});function a1(tt,ot,dt){var Pt=Vn(tt)?Pp:Qv;return dt&&Ar(tt,ot,dt)&&(ot=s),Pt(tt,Un(ot,3))}function l1(tt,ot){var dt=Vn(tt)?Ro:em;return dt(tt,Un(ot,3))}var u1=Am(Km),c1=Am(Zm);function f1(tt,ot){return _r(cu(tt,ot),1)}function d1(tt,ot){return _r(cu(tt,ot),Ot)}function g1(tt,ot,dt){return dt=dt===s?1:Hn(dt),_r(cu(tt,ot),dt)}function ny(tt,ot){var dt=Vn(tt)?Hr:Io;return dt(tt,Un(ot,3))}function ry(tt,ot){var dt=Vn(tt)?jy:_h;return dt(tt,Un(ot,3))}var p1=tu(function(tt,ot,dt){or.call(tt,dt)?tt[dt].push(ot):po(tt,dt,[ot])});function h1(tt,ot,dt,Pt){tt=Pr(tt)?tt:ms(tt),dt=dt&&!Pt?Hn(dt):0;var Wt=tt.length;return dt<0&&(dt=hr(Wt+dt,0)),hu(tt)?dt<=Wt&&tt.indexOf(ot,dt)>-1:!!Wt&&rs(tt,ot,dt)>-1}var m1=Kn(function(tt,ot,dt){var Pt=-1,Wt=typeof ot=="function",Xt=Pr(tt)?wn(tt.length):[];return Io(tt,function(rn){Xt[++Pt]=Wt?Nr(ot,rn,dt):Ws(rn,ot,dt)}),Xt}),y1=tu(function(tt,ot,dt){po(tt,dt,ot)});function cu(tt,ot){var dt=Vn(tt)?ur:sm;return dt(tt,Un(ot,3))}function v1(tt,ot,dt,Pt){return tt==null?[]:(Vn(ot)||(ot=ot==null?[]:[ot]),dt=Pt?s:dt,Vn(dt)||(dt=dt==null?[]:[dt]),cm(tt,ot,dt))}var b1=tu(function(tt,ot,dt){tt[dt?0:1].push(ot)},function(){return[[],[]]});function _1(tt,ot,dt){var Pt=Vn(tt)?xu:Np,Wt=arguments.length<3;return Pt(tt,Un(ot,4),dt,Wt,Io)}function w1(tt,ot,dt){var Pt=Vn(tt)?Ny:Np,Wt=arguments.length<3;return Pt(tt,Un(ot,4),dt,Wt,_h)}function S1(tt,ot){var dt=Vn(tt)?Ro:em;return dt(tt,gu(Un(ot,3)))}function E1(tt){var ot=Vn(tt)?Zp:h0;return ot(tt)}function T1(tt,ot,dt){(dt?Ar(tt,ot,dt):ot===s)?ot=1:ot=Hn(ot);var Pt=Vn(tt)?Yv:m0;return Pt(tt,ot)}function x1(tt){var ot=Vn(tt)?Kv:v0;return ot(tt)}function R1(tt){if(tt==null)return 0;if(Pr(tt))return hu(tt)?ss(tt):tt.length;var ot=xr(tt);return ot==cn||ot==_n?tt.size:Vu(tt).length}function C1(tt,ot,dt){var Pt=Vn(tt)?Ru:b0;return dt&&Ar(tt,ot,dt)&&(ot=s),Pt(tt,Un(ot,3))}var A1=Kn(function(tt,ot){if(tt==null)return[];var dt=ot.length;return dt>1&&Ar(tt,ot[0],ot[1])?ot=[]:dt>2&&Ar(ot[0],ot[1],ot[2])&&(ot=[ot[0]]),cm(tt,_r(ot,1),[])}),fu=cv||function(){return br.Date.now()};function O1(tt,ot){if(typeof ot!="function")throw new Gr(et);return tt=Hn(tt),function(){if(--tt<1)return ot.apply(this,arguments)}}function oy(tt,ot,dt){return ot=dt?s:ot,ot=tt&&ot==null?tt.length:ot,ho(tt,Ft,s,s,s,s,ot)}function iy(tt,ot){var dt;if(typeof ot!="function")throw new Gr(et);return tt=Hn(tt),function(){return--tt>0&&(dt=ot.apply(this,arguments)),tt<=1&&(ot=s),dt}}var cp=Kn(function(tt,ot,dt){var Pt=pt;if(dt.length){var Wt=Ao(dt,ps(cp));Pt|=ct}return ho(tt,Pt,ot,dt,Wt)}),sy=Kn(function(tt,ot,dt){var Pt=pt|bt;if(dt.length){var Wt=Ao(dt,ps(sy));Pt|=ct}return ho(ot,Pt,tt,dt,Wt)});function ay(tt,ot,dt){ot=dt?s:ot;var Pt=ho(tt,vt,s,s,s,s,s,ot);return Pt.placeholder=ay.placeholder,Pt}function ly(tt,ot,dt){ot=dt?s:ot;var Pt=ho(tt,mt,s,s,s,s,s,ot);return Pt.placeholder=ly.placeholder,Pt}function uy(tt,ot,dt){var Pt,Wt,Xt,rn,ln,pn,xn=0,Rn=!1,Cn=!1,Mn=!0;if(typeof tt!="function")throw new Gr(et);ot=Xr(ot)||0,cr(dt)&&(Rn=!!dt.leading,Cn="maxWait"in dt,Xt=Cn?hr(Xr(dt.maxWait)||0,ot):Xt,Mn="trailing"in dt?!!dt.trailing:Mn);function Ln(gr){var ro=Pt,_o=Wt;return Pt=Wt=s,xn=gr,rn=tt.apply(_o,ro),rn}function $n(gr){return xn=gr,ln=qs(Zn,ot),Rn?Ln(gr):rn}function qn(gr){var ro=gr-pn,_o=gr-xn,Ay=ot-ro;return Cn?Tr(Ay,Xt-_o):Ay}function Wn(gr){var ro=gr-pn,_o=gr-xn;return pn===s||ro>=ot||ro<0||Cn&&_o>=Xt}function Zn(){var gr=fu();if(Wn(gr))return Jn(gr);ln=qs(Zn,qn(gr))}function Jn(gr){return ln=s,Mn&&Pt?Ln(gr):(Pt=Wt=s,rn)}function Fr(){ln!==s&&bm(ln),xn=0,Pt=pn=Wt=ln=s}function Or(){return ln===s?rn:Jn(fu())}function Ur(){var gr=fu(),ro=Wn(gr);if(Pt=arguments,Wt=this,pn=gr,ro){if(ln===s)return $n(pn);if(Cn)return bm(ln),ln=qs(Zn,ot),Ln(pn)}return ln===s&&(ln=qs(Zn,ot)),rn}return Ur.cancel=Fr,Ur.flush=Or,Ur}var I1=Kn(function(tt,ot){return Qp(tt,1,ot)}),P1=Kn(function(tt,ot,dt){return Qp(tt,Xr(ot)||0,dt)});function k1(tt){return ho(tt,yt)}function du(tt,ot){if(typeof tt!="function"||ot!=null&&typeof ot!="function")throw new Gr(et);var dt=function(){var Pt=arguments,Wt=ot?ot.apply(this,Pt):Pt[0],Xt=dt.cache;if(Xt.has(Wt))return Xt.get(Wt);var rn=tt.apply(this,Pt);return dt.cache=Xt.set(Wt,rn)||Xt,rn};return dt.cache=new(du.Cache||go),dt}du.Cache=go;function gu(tt){if(typeof tt!="function")throw new Gr(et);return function(){var ot=arguments;switch(ot.length){case 0:return!tt.call(this);case 1:return!tt.call(this,ot[0]);case 2:return!tt.call(this,ot[0],ot[1]);case 3:return!tt.call(this,ot[0],ot[1],ot[2])}return!tt.apply(this,ot)}}function M1(tt){return iy(2,tt)}var j1=_0(function(tt,ot){ot=ot.length==1&&Vn(ot[0])?ur(ot[0],Lr(Un())):ur(_r(ot,1),Lr(Un()));var dt=ot.length;return Kn(function(Pt){for(var Wt=-1,Xt=Tr(Pt.length,dt);++Wt=ot}),Go=rm(function(){return arguments}())?rm:function(tt){return fr(tt)&&or.call(tt,"callee")&&!Vp.call(tt,"callee")},Vn=wn.isArray,K1=xp?Lr(xp):r0;function Pr(tt){return tt!=null&&pu(tt.length)&&!vo(tt)}function dr(tt){return fr(tt)&&Pr(tt)}function Z1(tt){return tt===!0||tt===!1||fr(tt)&&Cr(tt)==Et}var jo=dv||Sp,X1=Rp?Lr(Rp):o0;function J1(tt){return fr(tt)&&tt.nodeType===1&&!Ys(tt)}function Q1(tt){if(tt==null)return!0;if(Pr(tt)&&(Vn(tt)||typeof tt=="string"||typeof tt.splice=="function"||jo(tt)||hs(tt)||Go(tt)))return!tt.length;var ot=xr(tt);if(ot==cn||ot==_n)return!tt.size;if(Gs(tt))return!Vu(tt).length;for(var dt in tt)if(or.call(tt,dt))return!1;return!0}function ew(tt,ot){return zs(tt,ot)}function tw(tt,ot,dt){dt=typeof dt=="function"?dt:s;var Pt=dt?dt(tt,ot):s;return Pt===s?zs(tt,ot,s,dt):!!Pt}function dp(tt){if(!fr(tt))return!1;var ot=Cr(tt);return ot==Jt||ot==Dt||typeof tt.message=="string"&&typeof tt.name=="string"&&!Ys(tt)}function nw(tt){return typeof tt=="number"&&Gp(tt)}function vo(tt){if(!cr(tt))return!1;var ot=Cr(tt);return ot==Qt||ot==nn||ot==$t||ot==hn}function fy(tt){return typeof tt=="number"&&tt==Hn(tt)}function pu(tt){return typeof tt=="number"&&tt>-1&&tt%1==0&&tt<=At}function cr(tt){var ot=typeof tt;return tt!=null&&(ot=="object"||ot=="function")}function fr(tt){return tt!=null&&typeof tt=="object"}var dy=Cp?Lr(Cp):s0;function rw(tt,ot){return tt===ot||zu(tt,ot,np(ot))}function ow(tt,ot,dt){return dt=typeof dt=="function"?dt:s,zu(tt,ot,np(ot),dt)}function iw(tt){return gy(tt)&&tt!=+tt}function sw(tt){if(z0(tt))throw new zn(Z);return om(tt)}function aw(tt){return tt===null}function lw(tt){return tt==null}function gy(tt){return typeof tt=="number"||fr(tt)&&Cr(tt)==sn}function Ys(tt){if(!fr(tt)||Cr(tt)!=qt)return!1;var ot=Ul(tt);if(ot===null)return!0;var dt=or.call(ot,"constructor")&&ot.constructor;return typeof dt=="function"&&dt instanceof dt&&Ll.call(dt)==sv}var gp=Ap?Lr(Ap):a0;function uw(tt){return fy(tt)&&tt>=-At&&tt<=At}var py=Op?Lr(Op):l0;function hu(tt){return typeof tt=="string"||!Vn(tt)&&fr(tt)&&Cr(tt)==mn}function Dr(tt){return typeof tt=="symbol"||fr(tt)&&Cr(tt)==vn}var hs=Ip?Lr(Ip):u0;function cw(tt){return tt===s}function fw(tt){return fr(tt)&&xr(tt)==fn}function dw(tt){return fr(tt)&&Cr(tt)==An}var gw=iu(Hu),pw=iu(function(tt,ot){return tt<=ot});function hy(tt){if(!tt)return[];if(Pr(tt))return hu(tt)?eo(tt):Ir(tt);if(Ns&&tt[Ns])return Yy(tt[Ns]());var ot=xr(tt),dt=ot==cn?ku:ot==_n?Pl:ms;return dt(tt)}function bo(tt){if(!tt)return tt===0?tt:0;if(tt=Xr(tt),tt===Ot||tt===-Ot){var ot=tt<0?-1:1;return ot*wt}return tt===tt?tt:0}function Hn(tt){var ot=bo(tt),dt=ot%1;return ot===ot?dt?ot-dt:ot:0}function my(tt){return tt?Wo(Hn(tt),0,Nt):0}function Xr(tt){if(typeof tt=="number")return tt;if(Dr(tt))return gt;if(cr(tt)){var ot=typeof tt.valueOf=="function"?tt.valueOf():tt;tt=cr(ot)?ot+"":ot}if(typeof tt!="string")return tt===0?tt:+tt;tt=Lp(tt);var dt=bu.test(tt);return dt||Rs.test(tt)?Py(tt.slice(2),dt?2:8):vu.test(tt)?gt:+tt}function yy(tt){return ao(tt,kr(tt))}function hw(tt){return tt?Wo(Hn(tt),-At,At):tt===0?tt:0}function rr(tt){return tt==null?"":Br(tt)}var mw=ds(function(tt,ot){if(Gs(ot)||Pr(ot)){ao(ot,mr(ot),tt);return}for(var dt in ot)or.call(ot,dt)&&Us(tt,dt,ot[dt])}),vy=ds(function(tt,ot){ao(ot,kr(ot),tt)}),mu=ds(function(tt,ot,dt,Pt){ao(ot,kr(ot),tt,Pt)}),yw=ds(function(tt,ot,dt,Pt){ao(ot,mr(ot),tt,Pt)}),vw=mo(Du);function bw(tt,ot){var dt=fs(tt);return ot==null?dt:Xp(dt,ot)}var _w=Kn(function(tt,ot){tt=ar(tt);var dt=-1,Pt=ot.length,Wt=Pt>2?ot[2]:s;for(Wt&&Ar(ot[0],ot[1],Wt)&&(Pt=1);++dt1),Xt}),ao(tt,ep(tt),dt),Pt&&(dt=Yr(dt,ft|st|lt,P0));for(var Wt=ot.length;Wt--;)Zu(dt,ot[Wt]);return dt});function Dw(tt,ot){return _y(tt,gu(Un(ot)))}var Fw=mo(function(tt,ot){return tt==null?{}:d0(tt,ot)});function _y(tt,ot){if(tt==null)return{};var dt=ur(ep(tt),function(Pt){return[Pt]});return ot=Un(ot),fm(tt,dt,function(Pt,Wt){return ot(Pt,Wt[0])})}function Uw(tt,ot,dt){ot=ko(ot,tt);var Pt=-1,Wt=ot.length;for(Wt||(Wt=1,tt=s);++Ptot){var Pt=tt;tt=ot,ot=Pt}if(dt||tt%1||ot%1){var Wt=qp();return Tr(tt+Wt*(ot-tt+xo("1e-"+((Wt+"").length-1))),ot)}return qu(tt,ot)}var Xw=gs(function(tt,ot,dt){return ot=ot.toLowerCase(),tt+(dt?Ey(ot):ot)});function Ey(tt){return mp(rr(tt).toLowerCase())}function Ty(tt){return tt=rr(tt),tt&&tt.replace(Qo,zy).replace(Sn,"")}function Jw(tt,ot,dt){tt=rr(tt),ot=Br(ot);var Pt=tt.length;dt=dt===s?Pt:Wo(Hn(dt),0,Pt);var Wt=dt;return dt-=ot.length,dt>=0&&tt.slice(dt,Wt)==ot}function Qw(tt){return tt=rr(tt),tt&&bs.test(tt)?tt.replace(Ko,Vy):tt}function eS(tt){return tt=rr(tt),tt&&Xo.test(tt)?tt.replace(ws,"\\$&"):tt}var tS=gs(function(tt,ot,dt){return tt+(dt?"-":"")+ot.toLowerCase()}),nS=gs(function(tt,ot,dt){return tt+(dt?" ":"")+ot.toLowerCase()}),rS=Cm("toLowerCase");function oS(tt,ot,dt){tt=rr(tt),ot=Hn(ot);var Pt=ot?ss(tt):0;if(!ot||Pt>=ot)return tt;var Wt=(ot-Pt)/2;return ou(Vl(Wt),dt)+tt+ou(zl(Wt),dt)}function iS(tt,ot,dt){tt=rr(tt),ot=Hn(ot);var Pt=ot?ss(tt):0;return ot&&Pt>>0,dt?(tt=rr(tt),tt&&(typeof ot=="string"||ot!=null&&!gp(ot))&&(ot=Br(ot),!ot&&is(tt))?Mo(eo(tt),0,dt):tt.split(ot,dt)):[]}var dS=gs(function(tt,ot,dt){return tt+(dt?" ":"")+mp(ot)});function gS(tt,ot,dt){return tt=rr(tt),dt=dt==null?0:Wo(Hn(dt),0,tt.length),ot=Br(ot),tt.slice(dt,dt+ot.length)==ot}function pS(tt,ot,dt){var Pt=Yt.templateSettings;dt&&Ar(tt,ot,dt)&&(ot=s),tt=rr(tt),ot=mu({},ot,Pt,jm);var Wt=mu({},ot.imports,Pt.imports,jm),Xt=mr(Wt),rn=Pu(Wt,Xt),ln,pn,xn=0,Rn=ot.interpolate||vr,Cn="__p += '",Mn=Mu((ot.escape||vr).source+"|"+Rn.source+"|"+(Rn===_s?Jo:vr).source+"|"+(ot.evaluate||vr).source+"|$","g"),Ln="//# sourceURL="+(or.call(ot,"sourceURL")?(ot.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++er+"]")+` +`;tt.replace(Mn,function(Wn,Zn,Jn,Fr,Or,Ur){return Jn||(Jn=Fr),Cn+=tt.slice(xn,Ur).replace(ya,Hy),Zn&&(ln=!0,Cn+=`' + +__e(`+Zn+`) + +'`),Or&&(pn=!0,Cn+=`'; +`+Or+`; +__p += '`),Jn&&(Cn+=`' + +((__t = (`+Jn+`)) == null ? '' : __t) + +'`),xn=Ur+Wn.length,Wn}),Cn+=`'; +`;var $n=or.call(ot,"variable")&&ot.variable;if(!$n)Cn=`with (obj) { +`+Cn+` +} +`;else if(Es.test($n))throw new zn(_e);Cn=(pn?Cn.replace(yu,""):Cn).replace(ys,"$1").replace(qo,"$1;"),Cn="function("+($n||"obj")+`) { +`+($n?"":`obj || (obj = {}); +`)+"var __t, __p = ''"+(ln?", __e = _.escape":"")+(pn?`, __j = Array.prototype.join; +function print() { __p += __j.call(arguments, '') } +`:`; +`)+Cn+`return __p +}`;var qn=Ry(function(){return nr(Xt,Ln+"return "+Cn).apply(s,rn)});if(qn.source=Cn,dp(qn))throw qn;return qn}function hS(tt){return rr(tt).toLowerCase()}function mS(tt){return rr(tt).toUpperCase()}function yS(tt,ot,dt){if(tt=rr(tt),tt&&(dt||ot===s))return Lp(tt);if(!tt||!(ot=Br(ot)))return tt;var Pt=eo(tt),Wt=eo(ot),Xt=Bp(Pt,Wt),rn=Dp(Pt,Wt)+1;return Mo(Pt,Xt,rn).join("")}function vS(tt,ot,dt){if(tt=rr(tt),tt&&(dt||ot===s))return tt.slice(0,Up(tt)+1);if(!tt||!(ot=Br(ot)))return tt;var Pt=eo(tt),Wt=Dp(Pt,eo(ot))+1;return Mo(Pt,0,Wt).join("")}function bS(tt,ot,dt){if(tt=rr(tt),tt&&(dt||ot===s))return tt.replace(No,"");if(!tt||!(ot=Br(ot)))return tt;var Pt=eo(tt),Wt=Bp(Pt,eo(ot));return Mo(Pt,Wt).join("")}function _S(tt,ot){var dt=ht,Pt=Ct;if(cr(ot)){var Wt="separator"in ot?ot.separator:Wt;dt="length"in ot?Hn(ot.length):dt,Pt="omission"in ot?Br(ot.omission):Pt}tt=rr(tt);var Xt=tt.length;if(is(tt)){var rn=eo(tt);Xt=rn.length}if(dt>=Xt)return tt;var ln=dt-ss(Pt);if(ln<1)return Pt;var pn=rn?Mo(rn,0,ln).join(""):tt.slice(0,ln);if(Wt===s)return pn+Pt;if(rn&&(ln+=pn.length-ln),gp(Wt)){if(tt.slice(ln).search(Wt)){var xn,Rn=pn;for(Wt.global||(Wt=Mu(Wt.source,rr(xs.exec(Wt))+"g")),Wt.lastIndex=0;xn=Wt.exec(Rn);)var Cn=xn.index;pn=pn.slice(0,Cn===s?ln:Cn)}}else if(tt.indexOf(Br(Wt),ln)!=ln){var Mn=pn.lastIndexOf(Wt);Mn>-1&&(pn=pn.slice(0,Mn))}return pn+Pt}function wS(tt){return tt=rr(tt),tt&&vs.test(tt)?tt.replace(Yo,Jy):tt}var SS=gs(function(tt,ot,dt){return tt+(dt?" ":"")+ot.toUpperCase()}),mp=Cm("toUpperCase");function xy(tt,ot,dt){return tt=rr(tt),ot=dt?s:ot,ot===s?qy(tt)?tv(tt):Dy(tt):tt.match(ot)||[]}var Ry=Kn(function(tt,ot){try{return Nr(tt,s,ot)}catch(dt){return dp(dt)?dt:new zn(dt)}}),ES=mo(function(tt,ot){return Hr(ot,function(dt){dt=lo(dt),po(tt,dt,cp(tt[dt],tt))}),tt});function TS(tt){var ot=tt==null?0:tt.length,dt=Un();return tt=ot?ur(tt,function(Pt){if(typeof Pt[1]!="function")throw new Gr(et);return[dt(Pt[0]),Pt[1]]}):[],Kn(function(Pt){for(var Wt=-1;++WtAt)return[];var dt=Nt,Pt=Tr(tt,Nt);ot=Un(ot),tt-=Nt;for(var Wt=Iu(Pt,ot);++dt0||ot<0)?new Xn(dt):(tt<0?dt=dt.takeRight(-tt):tt&&(dt=dt.drop(tt)),ot!==s&&(ot=Hn(ot),dt=ot<0?dt.dropRight(-ot):dt.take(ot-tt)),dt)},Xn.prototype.takeRightWhile=function(tt){return this.reverse().takeWhile(tt).reverse()},Xn.prototype.toArray=function(){return this.take(Nt)},so(Xn.prototype,function(tt,ot){var dt=/^(?:filter|find|map|reject)|While$/.test(ot),Pt=/^(?:head|last)$/.test(ot),Wt=Yt[Pt?"take"+(ot=="last"?"Right":""):ot],Xt=Pt||/^find/.test(ot);!Wt||(Yt.prototype[ot]=function(){var rn=this.__wrapped__,ln=Pt?[1]:arguments,pn=rn instanceof Xn,xn=ln[0],Rn=pn||Vn(rn),Cn=function(Zn){var Jn=Wt.apply(Yt,Co([Zn],ln));return Pt&&Mn?Jn[0]:Jn};Rn&&dt&&typeof xn=="function"&&xn.length!=1&&(pn=Rn=!1);var Mn=this.__chain__,Ln=!!this.__actions__.length,$n=Xt&&!Mn,qn=pn&&!Ln;if(!Xt&&Rn){rn=qn?rn:new Xn(this);var Wn=tt.apply(rn,ln);return Wn.__actions__.push({func:uu,args:[Cn],thisArg:s}),new qr(Wn,Mn)}return $n&&qn?tt.apply(this,ln):(Wn=this.thru(Cn),$n?Pt?Wn.value()[0]:Wn.value():Wn)})}),Hr(["pop","push","shift","sort","splice","unshift"],function(tt){var ot=Ml[tt],dt=/^(?:push|sort|unshift)$/.test(tt)?"tap":"thru",Pt=/^(?:pop|shift)$/.test(tt);Yt.prototype[tt]=function(){var Wt=arguments;if(Pt&&!this.__chain__){var Xt=this.value();return ot.apply(Vn(Xt)?Xt:[],Wt)}return this[dt](function(rn){return ot.apply(Vn(rn)?rn:[],Wt)})}}),so(Xn.prototype,function(tt,ot){var dt=Yt[ot];if(dt){var Pt=dt.name+"";or.call(cs,Pt)||(cs[Pt]=[]),cs[Pt].push({name:ot,func:dt})}}),cs[nu(s,bt).name]=[{name:"wrapper",func:s}],Xn.prototype.clone=Ev,Xn.prototype.reverse=Tv,Xn.prototype.value=xv,Yt.prototype.at=J_,Yt.prototype.chain=Q_,Yt.prototype.commit=e1,Yt.prototype.next=t1,Yt.prototype.plant=r1,Yt.prototype.reverse=o1,Yt.prototype.toJSON=Yt.prototype.valueOf=Yt.prototype.value=i1,Yt.prototype.first=Yt.prototype.head,Ns&&(Yt.prototype[Ns]=n1),Yt},as=nv();Do?((Do.exports=as)._=as,Su._=as):br._=as}).call(commonjsGlobal$1)})(lodash,lodash.exports);const updatePath=(o,i,s)=>lodash.exports.setWith(lodash.exports.clone(o),i,s,lodash.exports.clone),capitalize=o=>o[0].toUpperCase()+o.slice(1),TextInput=o=>{var et;const{params:i,schema:s,setParams:j,path:$}=o,Z=react.exports.useCallback(_e=>j(nt=>updatePath(nt,$,_e.target.value)),[$,j]);return jsx(TextField$1,{type:"text",sx:{marginBottom:"16px"},fullWidth:!0,onChange:Z,value:(et=lodash.exports.get(i,$))!=null?et:"",label:capitalize(s.title),variant:"filled"})},NumberInput=o=>{var et;const{path:i,params:s,setParams:j,schema:$}=o,Z=react.exports.useCallback(_e=>j(nt=>updatePath(nt,i,_e.target.value)),[i,j]);return jsx(TextField$1,{type:"number",sx:{marginBottom:"16px"},fullWidth:!0,value:(et=lodash.exports.get(s,i))!=null?et:"",onChange:Z,label:capitalize($.title),variant:"filled"})},BooleanInput=o=>{var et;const{params:i,schema:s,setParams:j,path:$}=o,Z=react.exports.useCallback(_e=>j(nt=>updatePath(nt,$,_e.target.checked)),[$,j]);return jsxs(Box$1,{display:"flex",height:56,alignItems:"center",marginBottom:2,children:[jsxs(Typography$1,{children:[capitalize(s.title),": "]}),jsx(Switch$1,{size:"small",checked:(et=lodash.exports.get(i,$))!=null?et:!1,onChange:Z})]})},IntegerInput=o=>{var nt;const[i,s]=react.exports.useState(""),{params:j,path:$,setParams:Z,schema:et}=o,_e=react.exports.useCallback(rt=>{const{value:at}=rt.target;if(s(""),at===""){Z(lt=>updatePath(lt,$,rt.target.value));return}const ft=at.at(-1),st=parseFloat(ft);lodash.exports.isInteger(st)?Z(lt=>updatePath(lt,$,rt.target.value)):s("Please enter a valid integer")},[$,Z]);return jsx(TextField$1,{className:"formant-integer-input ",type:"text",sx:{marginBottom:"36px"},fullWidth:!0,value:(nt=lodash.exports.get(j,$))!=null?nt:"",onChange:_e,label:capitalize(et.title),helperText:i,variant:"filled"})},ArrayInput=o=>{const{params:i,schema:s,setParams:j,path:$}=o,[Z,et]=react.exports.useState(""),_e=react.exports.useMemo(()=>lodash.exports.get(i,$)!==void 0?lodash.exports.get(i,$):[""],[i,j]),nt=react.exports.useCallback(ft=>{if(et(""),_e.length===2&&_e[1].length===0){setTimeout(()=>{_e.pop(),j(st=>updatePath(st,$,_e))},5e3);return}if(_e[ft].length>0){j(st=>updatePath(st,$,_e));return}if(_e.pop(),!(_e[ft].length>0)){j(st=>updatePath(st,$,[..._e.slice(0,ft),..._e.slice(ft+1)]));return}j(st=>updatePath(st,$,_e))},[_e]),rt=react.exports.useCallback(ft=>{ft+1===_e.length&&(_e.push(""),j(st=>updatePath(st,$,_e)))},[_e]),at=react.exports.useCallback((ft,st)=>{const{value:lt}=ft.target;if(et(""),s.items.type==="integer"){if(lt===""){_e[st]=ft.target.value,j(pt=>updatePath(pt,$,_e));return}const it=lt.at(-1),ut=parseFloat(it);if(lodash.exports.isInteger(ut)){_e[st]=ft.target.value,j(pt=>updatePath(pt,$,_e));return}et("Please enter a valid integer");return}_e[st]=ft.target.value,j(it=>updatePath(it,$,_e))},[$,j]);return jsx(Fragment,{children:_e.map((ft,st)=>{var lt;return jsx(TextField$1,{className:"formant-integer-input ",type:"text",sx:{marginBottom:"16px"},label:capitalize(s.title),fullWidth:!0,onFocus:()=>rt(st),onBlur:()=>nt(st),onChange:it=>at(it,st),value:(lt=_e[st])!=null?lt:"",helperText:st+1===_e.length&&Z.length>1?Z:"",variant:"filled"},st)})})},JsonSchemaForm=({schema:o,params:i,setParams:s,path:j})=>{switch(o.type){case"string":return jsx(TextInput,{params:i,path:j,schema:o,setParams:s});case"number":return jsx(NumberInput,{params:i,path:j,schema:o,setParams:s});case"boolean":return jsx(BooleanInput,{params:i,path:j,schema:o,setParams:s});case"integer":return jsx(IntegerInput,{params:i,path:j,schema:o,setParams:s});case"array":return jsx(ArrayInput,{params:i,path:j,schema:o,setParams:s});case"object":{const{properties:$}=o;return jsxs(Fragment,{children:[jsx(Typography$1,{variant:"h3",children:capitalize(o.title)}),jsx("div",{style:{marginLeft:10},children:Object.keys($).map(Z=>{const et=$[Z],_e=j?[...j,Z]:[Z];return jsx(JsonSchemaForm,{schema:et,path:_e,params:i,setParams:s},_e.join("."))})})]})}default:return jsx(Fragment,{children:"Unsupported schema.type"})}},getDefaultParams=o=>Object.keys(o.properties).reduce((i,s)=>{const j=o.properties[s];switch(j.type){case"object":return Sr(wr({},i),{[s]:getDefaultParams(j)});case"string":case"number":case"integer":return j.default?Sr(wr({},i),{[s]:j.default}):i;case"boolean":return j.default?Sr(wr({},i),{[s]:/^true$/.test(j.default)}):i;case"array":return i;default:return i}},{}),getServices=async o=>{const i=o.filter($=>$.streamName==="ros.services.json"),s=await fetch(i[0].currentValue);return await(await fetch(s.url)).json()},App=()=>{const o=useLatestTelemetry(),i=useDevice(),[s,j]=react.exports.useState(),[$,Z]=react.exports.useState(null),[et,_e]=react.exports.useState(!1),[nt,rt]=react.exports.useState({});react.exports.useEffect(()=>{!o||getServices(o).then(lt=>j(lt))},[o]);const at=react.exports.useCallback(()=>{!i||!$||(i.sendCommand("rosservice",JSON.stringify({[$]:nt})),Z(null),_e(!0),rt({}))},[s,nt,$]),ft=react.exports.useCallback(lt=>{s&&(Z(lt),rt(getDefaultParams(s[lt])))},[s]),st=react.exports.useMemo(()=>Object.keys(s!=null?s:{}).map(lt=>({label:lt,value:lt})),[$,s]);return jsx("div",{className:"App",children:jsxs(Box$1,{position:"relative",textAlign:"left",width:350,children:[jsx(Typography$1,{sx:{marginBottom:"8px"},variant:"h2",children:"ROS Service Command"}),jsx(Box$1,{display:"flex",flexDirection:"row",children:jsx(Box$1,{width:"100%",display:"flex",justifyContent:"space-between"})}),jsx(Select,{sx:{width:350,textAlign:"left",marginBottom:"16px"},onChange:ft,label:"Service",value:$!=null?$:"",items:st}),s&&$&&jsx(JsonSchemaForm,{schema:s[$],params:nt,path:[],setParams:rt}),jsx(Button$1,{sx:{position:"absolute",bottom:-50,right:0},onClick:at,disabled:$===null||s===void 0,size:"large",variant:"contained",color:"secondary",children:"Send command"}),jsx(Snackbar$1,{message:"Command sent",open:et,onClose:()=>_e(!1),autoHideDuration:3e3})]})})};var index="";client.createRoot(document.getElementById("root")).render(jsx(React$1.StrictMode,{children:jsx(FormantProvider,{children:jsx(App,{})})})); diff --git a/examples/ros-service-call-module/dist/assets/index.e4554344.js b/examples/ros-service-call-module/dist/assets/index.e4554344.js deleted file mode 100644 index c8ab78ccb..000000000 --- a/examples/ros-service-call-module/dist/assets/index.e4554344.js +++ /dev/null @@ -1,205 +0,0 @@ -function _mergeNamespaces(o,i){return i.forEach(function(s){s&&typeof s!="string"&&!Array.isArray(s)&&Object.keys(s).forEach(function(j){if(j!=="default"&&!(j in o)){var $=Object.getOwnPropertyDescriptor(s,j);Object.defineProperty(o,j,$.get?$:{enumerable:!0,get:function(){return s[j]}})}})}),Object.freeze(Object.defineProperty(o,Symbol.toStringTag,{value:"Module"}))}const p$5=function(){const i=document.createElement("link").relList;if(i&&i.supports&&i.supports("modulepreload"))return;for(const $ of document.querySelectorAll('link[rel="modulepreload"]'))j($);new MutationObserver($=>{for(const _e of $)if(_e.type==="childList")for(const tt of _e.addedNodes)tt.tagName==="LINK"&&tt.rel==="modulepreload"&&j(tt)}).observe(document,{childList:!0,subtree:!0});function s($){const _e={};return $.integrity&&(_e.integrity=$.integrity),$.referrerpolicy&&(_e.referrerPolicy=$.referrerpolicy),$.crossorigin==="use-credentials"?_e.credentials="include":$.crossorigin==="anonymous"?_e.credentials="omit":_e.credentials="same-origin",_e}function j($){if($.ep)return;$.ep=!0;const _e=s($);fetch($.href,_e)}};p$5();var commonjsGlobal$1=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{},react={exports:{}},react_production_min={};/** - * @license React - * react.production.min.js - * - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */var l$3=Symbol.for("react.element"),n$3=Symbol.for("react.portal"),p$4=Symbol.for("react.fragment"),q$3=Symbol.for("react.strict_mode"),r$2=Symbol.for("react.profiler"),t$2=Symbol.for("react.provider"),u$1=Symbol.for("react.context"),v$3=Symbol.for("react.forward_ref"),w$1=Symbol.for("react.suspense"),x$1=Symbol.for("react.memo"),y$1=Symbol.for("react.lazy"),z$2=Symbol.iterator;function A$2(o){return o===null||typeof o!="object"?null:(o=z$2&&o[z$2]||o["@@iterator"],typeof o=="function"?o:null)}var B$1={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},C$1=Object.assign,D$1={};function E$1(o,i,s){this.props=o,this.context=i,this.refs=D$1,this.updater=s||B$1}E$1.prototype.isReactComponent={};E$1.prototype.setState=function(o,i){if(typeof o!="object"&&typeof o!="function"&&o!=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,o,i,"setState")};E$1.prototype.forceUpdate=function(o){this.updater.enqueueForceUpdate(this,o,"forceUpdate")};function F(){}F.prototype=E$1.prototype;function G$1(o,i,s){this.props=o,this.context=i,this.refs=D$1,this.updater=s||B$1}var H$1=G$1.prototype=new F;H$1.constructor=G$1;C$1(H$1,E$1.prototype);H$1.isPureReactComponent=!0;var I$1=Array.isArray,J=Object.prototype.hasOwnProperty,K$1={current:null},L$1={key:!0,ref:!0,__self:!0,__source:!0};function M$1(o,i,s){var j,$={},_e=null,tt=null;if(i!=null)for(j in i.ref!==void 0&&(tt=i.ref),i.key!==void 0&&(_e=""+i.key),i)J.call(i,j)&&!L$1.hasOwnProperty(j)&&($[j]=i[j]);var et=arguments.length-2;if(et===1)$.children=s;else if(1>>1,Dt=It[Bt];if(0<$(Dt,St))It[Bt]=St,It[gt]=Dt,gt=Bt;else break e}}function s(It){return It.length===0?null:It[0]}function j(It){if(It.length===0)return null;var St=It[0],gt=It.pop();if(gt!==St){It[0]=gt;e:for(var Bt=0,Dt=It.length,Yt=Dt>>>1;Bt$(Jt,gt))zt$(Wt,Jt)?(It[Bt]=Wt,It[zt]=gt,Bt=zt):(It[Bt]=Jt,It[Xt]=gt,Bt=Xt);else if(zt$(Wt,gt))It[Bt]=Wt,It[zt]=gt,Bt=zt;else break e}}return St}function $(It,St){var gt=It.sortIndex-St.sortIndex;return gt!==0?gt:It.id-St.id}if(typeof performance=="object"&&typeof performance.now=="function"){var _e=performance;o.unstable_now=function(){return _e.now()}}else{var tt=Date,et=tt.now();o.unstable_now=function(){return tt.now()-et}}var rt=[],ot=[],lt=1,dt=null,at=3,ct=!1,st=!1,ut=!1,mt=typeof setTimeout=="function"?setTimeout:null,bt=typeof clearTimeout=="function"?clearTimeout:null,Tt=typeof setImmediate!="undefined"?setImmediate:null;typeof navigator!="undefined"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function ht(It){for(var St=s(ot);St!==null;){if(St.callback===null)j(ot);else if(St.startTime<=It)j(ot),St.sortIndex=St.expirationTime,i(rt,St);else break;St=s(ot)}}function yt(It){if(ut=!1,ht(It),!st)if(s(rt)!==null)st=!0,Rt(ft);else{var St=s(ot);St!==null&&Ot(yt,St.startTime-It)}}function ft(It,St){st=!1,ut&&(ut=!1,bt(Ut),Ut=-1),ct=!0;var gt=at;try{for(ht(St),dt=s(rt);dt!==null&&(!(dt.expirationTime>St)||It&&!At());){var Bt=dt.callback;if(typeof Bt=="function"){dt.callback=null,at=dt.priorityLevel;var Dt=Bt(dt.expirationTime<=St);St=o.unstable_now(),typeof Dt=="function"?dt.callback=Dt:dt===s(rt)&&j(rt),ht(St)}else j(rt);dt=s(rt)}if(dt!==null)var Yt=!0;else{var Xt=s(ot);Xt!==null&&Ot(yt,Xt.startTime-St),Yt=!1}return Yt}finally{dt=null,at=gt,ct=!1}}var Ct=!1,Ft=null,Ut=-1,wt=5,vt=-1;function At(){return!(o.unstable_now()-vtIt||125Bt?(It.sortIndex=gt,i(ot,It),s(rt)===null&&It===s(ot)&&(ut?(bt(Ut),Ut=-1):ut=!0,Ot(yt,gt-Bt))):(It.sortIndex=Dt,i(rt,It),st||ct||(st=!0,Rt(ft))),It},o.unstable_shouldYield=At,o.unstable_wrapCallback=function(It){var St=at;return function(){var gt=at;at=St;try{return It.apply(this,arguments)}finally{at=gt}}}})(scheduler_production_min);scheduler.exports=scheduler_production_min;/** - * @license React - * react-dom.production.min.js - * - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */var aa=react.exports,ca=scheduler.exports;function p$3(o){for(var i="https://reactjs.org/docs/error-decoder.html?invariant="+o,s=1;si}return!1}function v$2(o,i,s,j,$,_e,tt){this.acceptsBooleans=i===2||i===3||i===4,this.attributeName=j,this.attributeNamespace=$,this.mustUseProperty=s,this.propertyName=o,this.type=i,this.sanitizeURL=_e,this.removeEmptyString=tt}var z$1={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(o){z$1[o]=new v$2(o,0,!1,o,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(o){var i=o[0];z$1[i]=new v$2(i,1,!1,o[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(o){z$1[o]=new v$2(o,2,!1,o.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(o){z$1[o]=new v$2(o,2,!1,o,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(o){z$1[o]=new v$2(o,3,!1,o.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(o){z$1[o]=new v$2(o,3,!0,o,null,!1,!1)});["capture","download"].forEach(function(o){z$1[o]=new v$2(o,4,!1,o,null,!1,!1)});["cols","rows","size","span"].forEach(function(o){z$1[o]=new v$2(o,6,!1,o,null,!1,!1)});["rowSpan","start"].forEach(function(o){z$1[o]=new v$2(o,5,!1,o.toLowerCase(),null,!1,!1)});var ra=/[\-:]([a-z])/g;function sa(o){return o[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(o){var i=o.replace(ra,sa);z$1[i]=new v$2(i,1,!1,o,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(o){var i=o.replace(ra,sa);z$1[i]=new v$2(i,1,!1,o,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(o){var i=o.replace(ra,sa);z$1[i]=new v$2(i,1,!1,o,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(o){z$1[o]=new v$2(o,1,!1,o.toLowerCase(),null,!1,!1)});z$1.xlinkHref=new v$2("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(o){z$1[o]=new v$2(o,1,!1,o.toLowerCase(),null,!0,!0)});function ta(o,i,s,j){var $=z$1.hasOwnProperty(i)?z$1[i]:null;($!==null?$.type!==0:j||!(2et||$[tt]!==_e[et]){var rt=` -`+$[tt].replace(" at new "," at ");return o.displayName&&rt.includes("")&&(rt=rt.replace("",o.displayName)),rt}while(1<=tt&&0<=et);break}}}finally{Na=!1,Error.prepareStackTrace=s}return(o=o?o.displayName||o.name:"")?Ma(o):""}function Pa(o){switch(o.tag){case 5:return Ma(o.type);case 16:return Ma("Lazy");case 13:return Ma("Suspense");case 19:return Ma("SuspenseList");case 0:case 2:case 15:return o=Oa(o.type,!1),o;case 11:return o=Oa(o.type.render,!1),o;case 1:return o=Oa(o.type,!0),o;default:return""}}function Qa(o){if(o==null)return null;if(typeof o=="function")return o.displayName||o.name||null;if(typeof o=="string")return o;switch(o){case ya:return"Fragment";case wa:return"Portal";case Aa:return"Profiler";case za:return"StrictMode";case Ea:return"Suspense";case Fa:return"SuspenseList"}if(typeof o=="object")switch(o.$$typeof){case Ca:return(o.displayName||"Context")+".Consumer";case Ba:return(o._context.displayName||"Context")+".Provider";case Da:var i=o.render;return o=o.displayName,o||(o=i.displayName||i.name||"",o=o!==""?"ForwardRef("+o+")":"ForwardRef"),o;case Ga:return i=o.displayName||null,i!==null?i:Qa(o.type)||"Memo";case Ha:i=o._payload,o=o._init;try{return Qa(o(i))}catch{}}return null}function Ra(o){var i=o.type;switch(o.tag){case 24:return"Cache";case 9:return(i.displayName||"Context")+".Consumer";case 10:return(i._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return o=i.render,o=o.displayName||o.name||"",i.displayName||(o!==""?"ForwardRef("+o+")":"ForwardRef");case 7:return"Fragment";case 5:return i;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Qa(i);case 8:return i===za?"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 i=="function")return i.displayName||i.name||null;if(typeof i=="string")return i}return null}function Sa(o){switch(typeof o){case"boolean":case"number":case"string":case"undefined":return o;case"object":return o;default:return""}}function Ta(o){var i=o.type;return(o=o.nodeName)&&o.toLowerCase()==="input"&&(i==="checkbox"||i==="radio")}function Ua(o){var i=Ta(o)?"checked":"value",s=Object.getOwnPropertyDescriptor(o.constructor.prototype,i),j=""+o[i];if(!o.hasOwnProperty(i)&&typeof s!="undefined"&&typeof s.get=="function"&&typeof s.set=="function"){var $=s.get,_e=s.set;return Object.defineProperty(o,i,{configurable:!0,get:function(){return $.call(this)},set:function(tt){j=""+tt,_e.call(this,tt)}}),Object.defineProperty(o,i,{enumerable:s.enumerable}),{getValue:function(){return j},setValue:function(tt){j=""+tt},stopTracking:function(){o._valueTracker=null,delete o[i]}}}}function Va(o){o._valueTracker||(o._valueTracker=Ua(o))}function Wa(o){if(!o)return!1;var i=o._valueTracker;if(!i)return!0;var s=i.getValue(),j="";return o&&(j=Ta(o)?o.checked?"true":"false":o.value),o=j,o!==s?(i.setValue(o),!0):!1}function Xa(o){if(o=o||(typeof document!="undefined"?document:void 0),typeof o=="undefined")return null;try{return o.activeElement||o.body}catch{return o.body}}function Ya(o,i){var s=i.checked;return A$1({},i,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:s!=null?s:o._wrapperState.initialChecked})}function Za(o,i){var s=i.defaultValue==null?"":i.defaultValue,j=i.checked!=null?i.checked:i.defaultChecked;s=Sa(i.value!=null?i.value:s),o._wrapperState={initialChecked:j,initialValue:s,controlled:i.type==="checkbox"||i.type==="radio"?i.checked!=null:i.value!=null}}function ab(o,i){i=i.checked,i!=null&&ta(o,"checked",i,!1)}function bb(o,i){ab(o,i);var s=Sa(i.value),j=i.type;if(s!=null)j==="number"?(s===0&&o.value===""||o.value!=s)&&(o.value=""+s):o.value!==""+s&&(o.value=""+s);else if(j==="submit"||j==="reset"){o.removeAttribute("value");return}i.hasOwnProperty("value")?cb(o,i.type,s):i.hasOwnProperty("defaultValue")&&cb(o,i.type,Sa(i.defaultValue)),i.checked==null&&i.defaultChecked!=null&&(o.defaultChecked=!!i.defaultChecked)}function db(o,i,s){if(i.hasOwnProperty("value")||i.hasOwnProperty("defaultValue")){var j=i.type;if(!(j!=="submit"&&j!=="reset"||i.value!==void 0&&i.value!==null))return;i=""+o._wrapperState.initialValue,s||i===o.value||(o.value=i),o.defaultValue=i}s=o.name,s!==""&&(o.name=""),o.defaultChecked=!!o._wrapperState.initialChecked,s!==""&&(o.name=s)}function cb(o,i,s){(i!=="number"||Xa(o.ownerDocument)!==o)&&(s==null?o.defaultValue=""+o._wrapperState.initialValue:o.defaultValue!==""+s&&(o.defaultValue=""+s))}var eb=Array.isArray;function fb(o,i,s,j){if(o=o.options,i){i={};for(var $=0;$"+i.valueOf().toString()+"",i=mb.firstChild;o.firstChild;)o.removeChild(o.firstChild);for(;i.firstChild;)o.appendChild(i.firstChild)}});function ob(o,i){if(i){var s=o.firstChild;if(s&&s===o.lastChild&&s.nodeType===3){s.nodeValue=i;return}}o.textContent=i}var pb={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},qb=["Webkit","ms","Moz","O"];Object.keys(pb).forEach(function(o){qb.forEach(function(i){i=i+o.charAt(0).toUpperCase()+o.substring(1),pb[i]=pb[o]})});function rb(o,i,s){return i==null||typeof i=="boolean"||i===""?"":s||typeof i!="number"||i===0||pb.hasOwnProperty(o)&&pb[o]?(""+i).trim():i+"px"}function sb(o,i){o=o.style;for(var s in i)if(i.hasOwnProperty(s)){var j=s.indexOf("--")===0,$=rb(s,i[s],j);s==="float"&&(s="cssFloat"),j?o.setProperty(s,$):o[s]=$}}var tb=A$1({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 ub(o,i){if(i){if(tb[o]&&(i.children!=null||i.dangerouslySetInnerHTML!=null))throw Error(p$3(137,o));if(i.dangerouslySetInnerHTML!=null){if(i.children!=null)throw Error(p$3(60));if(typeof i.dangerouslySetInnerHTML!="object"||!("__html"in i.dangerouslySetInnerHTML))throw Error(p$3(61))}if(i.style!=null&&typeof i.style!="object")throw Error(p$3(62))}}function vb(o,i){if(o.indexOf("-")===-1)return typeof i.is=="string";switch(o){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 wb=null;function xb(o){return o=o.target||o.srcElement||window,o.correspondingUseElement&&(o=o.correspondingUseElement),o.nodeType===3?o.parentNode:o}var yb=null,zb=null,Ab=null;function Bb(o){if(o=Cb(o)){if(typeof yb!="function")throw Error(p$3(280));var i=o.stateNode;i&&(i=Db(i),yb(o.stateNode,o.type,i))}}function Eb(o){zb?Ab?Ab.push(o):Ab=[o]:zb=o}function Fb(){if(zb){var o=zb,i=Ab;if(Ab=zb=null,Bb(o),i)for(o=0;o>>=0,o===0?32:31-(pc(o)/qc|0)|0}var rc=64,sc=4194304;function tc(o){switch(o&-o){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 o&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return o&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return o}}function uc(o,i){var s=o.pendingLanes;if(s===0)return 0;var j=0,$=o.suspendedLanes,_e=o.pingedLanes,tt=s&268435455;if(tt!==0){var et=tt&~$;et!==0?j=tc(et):(_e&=tt,_e!==0&&(j=tc(_e)))}else tt=s&~$,tt!==0?j=tc(tt):_e!==0&&(j=tc(_e));if(j===0)return 0;if(i!==0&&i!==j&&(i&$)===0&&($=j&-j,_e=i&-i,$>=_e||$===16&&(_e&4194240)!==0))return i;if((j&4)!==0&&(j|=s&16),i=o.entangledLanes,i!==0)for(o=o.entanglements,i&=j;0s;s++)i.push(o);return i}function Ac(o,i,s){o.pendingLanes|=i,i!==536870912&&(o.suspendedLanes=0,o.pingedLanes=0),o=o.eventTimes,i=31-oc(i),o[i]=s}function Bc(o,i){var s=o.pendingLanes&~i;o.pendingLanes=i,o.suspendedLanes=0,o.pingedLanes=0,o.expiredLanes&=i,o.mutableReadLanes&=i,o.entangledLanes&=i,i=o.entanglements;var j=o.eventTimes;for(o=o.expirationTimes;0=be),ee=String.fromCharCode(32),fe=!1;function ge(o,i){switch(o){case"keyup":return $d.indexOf(i.keyCode)!==-1;case"keydown":return i.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function he(o){return o=o.detail,typeof o=="object"&&"data"in o?o.data:null}var ie=!1;function je(o,i){switch(o){case"compositionend":return he(i);case"keypress":return i.which!==32?null:(fe=!0,ee);case"textInput":return o=i.data,o===ee&&fe?null:o;default:return null}}function ke(o,i){if(ie)return o==="compositionend"||!ae&&ge(o,i)?(o=nd(),md=ld=kd=null,ie=!1,o):null;switch(o){case"paste":return null;case"keypress":if(!(i.ctrlKey||i.altKey||i.metaKey)||i.ctrlKey&&i.altKey){if(i.char&&1=i)return{node:s,offset:i-o};o=j}e:{for(;s;){if(s.nextSibling){s=s.nextSibling;break e}s=s.parentNode}s=void 0}s=Je(s)}}function Le(o,i){return o&&i?o===i?!0:o&&o.nodeType===3?!1:i&&i.nodeType===3?Le(o,i.parentNode):"contains"in o?o.contains(i):o.compareDocumentPosition?!!(o.compareDocumentPosition(i)&16):!1:!1}function Me(){for(var o=window,i=Xa();i instanceof o.HTMLIFrameElement;){try{var s=typeof i.contentWindow.location.href=="string"}catch{s=!1}if(s)o=i.contentWindow;else break;i=Xa(o.document)}return i}function Ne(o){var i=o&&o.nodeName&&o.nodeName.toLowerCase();return i&&(i==="input"&&(o.type==="text"||o.type==="search"||o.type==="tel"||o.type==="url"||o.type==="password")||i==="textarea"||o.contentEditable==="true")}function Oe(o){var i=Me(),s=o.focusedElem,j=o.selectionRange;if(i!==s&&s&&s.ownerDocument&&Le(s.ownerDocument.documentElement,s)){if(j!==null&&Ne(s)){if(i=j.start,o=j.end,o===void 0&&(o=i),"selectionStart"in s)s.selectionStart=i,s.selectionEnd=Math.min(o,s.value.length);else if(o=(i=s.ownerDocument||document)&&i.defaultView||window,o.getSelection){o=o.getSelection();var $=s.textContent.length,_e=Math.min(j.start,$);j=j.end===void 0?_e:Math.min(j.end,$),!o.extend&&_e>j&&($=j,j=_e,_e=$),$=Ke(s,_e);var tt=Ke(s,j);$&&tt&&(o.rangeCount!==1||o.anchorNode!==$.node||o.anchorOffset!==$.offset||o.focusNode!==tt.node||o.focusOffset!==tt.offset)&&(i=i.createRange(),i.setStart($.node,$.offset),o.removeAllRanges(),_e>j?(o.addRange(i),o.extend(tt.node,tt.offset)):(i.setEnd(tt.node,tt.offset),o.addRange(i)))}}for(i=[],o=s;o=o.parentNode;)o.nodeType===1&&i.push({element:o,left:o.scrollLeft,top:o.scrollTop});for(typeof s.focus=="function"&&s.focus(),s=0;s=document.documentMode,Qe=null,Re=null,Se=null,Te=!1;function Ue(o,i,s){var j=s.window===s?s.document:s.nodeType===9?s:s.ownerDocument;Te||Qe==null||Qe!==Xa(j)||(j=Qe,"selectionStart"in j&&Ne(j)?j={start:j.selectionStart,end:j.selectionEnd}:(j=(j.ownerDocument&&j.ownerDocument.defaultView||window).getSelection(),j={anchorNode:j.anchorNode,anchorOffset:j.anchorOffset,focusNode:j.focusNode,focusOffset:j.focusOffset}),Se&&Ie(Se,j)||(Se=j,j=oe(Re,"onSelect"),0Tf||(o.current=Sf[Tf],Sf[Tf]=null,Tf--)}function G(o,i){Tf++,Sf[Tf]=o.current,o.current=i}var Vf={},H=Uf(Vf),Wf=Uf(!1),Xf=Vf;function Yf(o,i){var s=o.type.contextTypes;if(!s)return Vf;var j=o.stateNode;if(j&&j.__reactInternalMemoizedUnmaskedChildContext===i)return j.__reactInternalMemoizedMaskedChildContext;var $={},_e;for(_e in s)$[_e]=i[_e];return j&&(o=o.stateNode,o.__reactInternalMemoizedUnmaskedChildContext=i,o.__reactInternalMemoizedMaskedChildContext=$),$}function Zf(o){return o=o.childContextTypes,o!=null}function $f(){E(Wf),E(H)}function ag(o,i,s){if(H.current!==Vf)throw Error(p$3(168));G(H,i),G(Wf,s)}function bg(o,i,s){var j=o.stateNode;if(i=i.childContextTypes,typeof j.getChildContext!="function")return s;j=j.getChildContext();for(var $ in j)if(!($ in i))throw Error(p$3(108,Ra(o)||"Unknown",$));return A$1({},s,j)}function cg(o){return o=(o=o.stateNode)&&o.__reactInternalMemoizedMergedChildContext||Vf,Xf=H.current,G(H,o),G(Wf,Wf.current),!0}function dg(o,i,s){var j=o.stateNode;if(!j)throw Error(p$3(169));s?(o=bg(o,i,Xf),j.__reactInternalMemoizedMergedChildContext=o,E(Wf),E(H),G(H,o)):E(Wf),G(Wf,s)}var eg=null,fg=!1,gg=!1;function hg(o){eg===null?eg=[o]:eg.push(o)}function ig(o){fg=!0,hg(o)}function jg(){if(!gg&&eg!==null){gg=!0;var o=0,i=C;try{var s=eg;for(C=1;o>=tt,$-=tt,rg=1<<32-oc(i)+$|s<<$|j,sg=_e+o}else rg=1<<_e|s<<$|j,sg=o}function vg(o){o.return!==null&&(tg(o,1),ug(o,1,0))}function wg(o){for(;o===mg;)mg=kg[--lg],kg[lg]=null,ng=kg[--lg],kg[lg]=null;for(;o===qg;)qg=og[--pg],og[pg]=null,sg=og[--pg],og[pg]=null,rg=og[--pg],og[pg]=null}var xg=null,yg=null,I=!1,zg=null;function Ag(o,i){var s=Bg(5,null,null,0);s.elementType="DELETED",s.stateNode=i,s.return=o,i=o.deletions,i===null?(o.deletions=[s],o.flags|=16):i.push(s)}function Cg(o,i){switch(o.tag){case 5:var s=o.type;return i=i.nodeType!==1||s.toLowerCase()!==i.nodeName.toLowerCase()?null:i,i!==null?(o.stateNode=i,xg=o,yg=Lf(i.firstChild),!0):!1;case 6:return i=o.pendingProps===""||i.nodeType!==3?null:i,i!==null?(o.stateNode=i,xg=o,yg=null,!0):!1;case 13:return i=i.nodeType!==8?null:i,i!==null?(s=qg!==null?{id:rg,overflow:sg}:null,o.memoizedState={dehydrated:i,treeContext:s,retryLane:1073741824},s=Bg(18,null,null,0),s.stateNode=i,s.return=o,o.child=s,xg=o,yg=null,!0):!1;default:return!1}}function Dg(o){return(o.mode&1)!==0&&(o.flags&128)===0}function Eg(o){if(I){var i=yg;if(i){var s=i;if(!Cg(o,i)){if(Dg(o))throw Error(p$3(418));i=Lf(s.nextSibling);var j=xg;i&&Cg(o,i)?Ag(j,s):(o.flags=o.flags&-4097|2,I=!1,xg=o)}}else{if(Dg(o))throw Error(p$3(418));o.flags=o.flags&-4097|2,I=!1,xg=o}}}function Fg(o){for(o=o.return;o!==null&&o.tag!==5&&o.tag!==3&&o.tag!==13;)o=o.return;xg=o}function Gg(o){if(o!==xg)return!1;if(!I)return Fg(o),I=!0,!1;var i;if((i=o.tag!==3)&&!(i=o.tag!==5)&&(i=o.type,i=i!=="head"&&i!=="body"&&!Ef(o.type,o.memoizedProps)),i&&(i=yg)){if(Dg(o))throw Hg(),Error(p$3(418));for(;i;)Ag(o,i),i=Lf(i.nextSibling)}if(Fg(o),o.tag===13){if(o=o.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(p$3(317));e:{for(o=o.nextSibling,i=0;o;){if(o.nodeType===8){var s=o.data;if(s==="/$"){if(i===0){yg=Lf(o.nextSibling);break e}i--}else s!=="$"&&s!=="$!"&&s!=="$?"||i++}o=o.nextSibling}yg=null}}else yg=xg?Lf(o.stateNode.nextSibling):null;return!0}function Hg(){for(var o=yg;o;)o=Lf(o.nextSibling)}function Ig(){yg=xg=null,I=!1}function Jg(o){zg===null?zg=[o]:zg.push(o)}var Kg=ua$1.ReactCurrentBatchConfig;function Lg(o,i){if(o&&o.defaultProps){i=A$1({},i),o=o.defaultProps;for(var s in o)i[s]===void 0&&(i[s]=o[s]);return i}return i}var Mg=Uf(null),Ng=null,Og=null,Pg=null;function Qg(){Pg=Og=Ng=null}function Rg(o){var i=Mg.current;E(Mg),o._currentValue=i}function Sg(o,i,s){for(;o!==null;){var j=o.alternate;if((o.childLanes&i)!==i?(o.childLanes|=i,j!==null&&(j.childLanes|=i)):j!==null&&(j.childLanes&i)!==i&&(j.childLanes|=i),o===s)break;o=o.return}}function Tg(o,i){Ng=o,Pg=Og=null,o=o.dependencies,o!==null&&o.firstContext!==null&&((o.lanes&i)!==0&&(Ug=!0),o.firstContext=null)}function Vg(o){var i=o._currentValue;if(Pg!==o)if(o={context:o,memoizedValue:i,next:null},Og===null){if(Ng===null)throw Error(p$3(308));Og=o,Ng.dependencies={lanes:0,firstContext:o}}else Og=Og.next=o;return i}var Wg=null;function Xg(o){Wg===null?Wg=[o]:Wg.push(o)}function Yg(o,i,s,j){var $=i.interleaved;return $===null?(s.next=s,Xg(i)):(s.next=$.next,$.next=s),i.interleaved=s,Zg(o,j)}function Zg(o,i){o.lanes|=i;var s=o.alternate;for(s!==null&&(s.lanes|=i),s=o,o=o.return;o!==null;)o.childLanes|=i,s=o.alternate,s!==null&&(s.childLanes|=i),s=o,o=o.return;return s.tag===3?s.stateNode:null}var $g=!1;function ah(o){o.updateQueue={baseState:o.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function bh(o,i){o=o.updateQueue,i.updateQueue===o&&(i.updateQueue={baseState:o.baseState,firstBaseUpdate:o.firstBaseUpdate,lastBaseUpdate:o.lastBaseUpdate,shared:o.shared,effects:o.effects})}function ch(o,i){return{eventTime:o,lane:i,tag:0,payload:null,callback:null,next:null}}function dh(o,i,s){var j=o.updateQueue;if(j===null)return null;if(j=j.shared,(K&2)!==0){var $=j.pending;return $===null?i.next=i:(i.next=$.next,$.next=i),j.pending=i,Zg(o,s)}return $=j.interleaved,$===null?(i.next=i,Xg(j)):(i.next=$.next,$.next=i),j.interleaved=i,Zg(o,s)}function eh(o,i,s){if(i=i.updateQueue,i!==null&&(i=i.shared,(s&4194240)!==0)){var j=i.lanes;j&=o.pendingLanes,s|=j,i.lanes=s,Cc(o,s)}}function fh(o,i){var s=o.updateQueue,j=o.alternate;if(j!==null&&(j=j.updateQueue,s===j)){var $=null,_e=null;if(s=s.firstBaseUpdate,s!==null){do{var tt={eventTime:s.eventTime,lane:s.lane,tag:s.tag,payload:s.payload,callback:s.callback,next:null};_e===null?$=_e=tt:_e=_e.next=tt,s=s.next}while(s!==null);_e===null?$=_e=i:_e=_e.next=i}else $=_e=i;s={baseState:j.baseState,firstBaseUpdate:$,lastBaseUpdate:_e,shared:j.shared,effects:j.effects},o.updateQueue=s;return}o=s.lastBaseUpdate,o===null?s.firstBaseUpdate=i:o.next=i,s.lastBaseUpdate=i}function gh(o,i,s,j){var $=o.updateQueue;$g=!1;var _e=$.firstBaseUpdate,tt=$.lastBaseUpdate,et=$.shared.pending;if(et!==null){$.shared.pending=null;var rt=et,ot=rt.next;rt.next=null,tt===null?_e=ot:tt.next=ot,tt=rt;var lt=o.alternate;lt!==null&&(lt=lt.updateQueue,et=lt.lastBaseUpdate,et!==tt&&(et===null?lt.firstBaseUpdate=ot:et.next=ot,lt.lastBaseUpdate=rt))}if(_e!==null){var dt=$.baseState;tt=0,lt=ot=rt=null,et=_e;do{var at=et.lane,ct=et.eventTime;if((j&at)===at){lt!==null&&(lt=lt.next={eventTime:ct,lane:0,tag:et.tag,payload:et.payload,callback:et.callback,next:null});e:{var st=o,ut=et;switch(at=i,ct=s,ut.tag){case 1:if(st=ut.payload,typeof st=="function"){dt=st.call(ct,dt,at);break e}dt=st;break e;case 3:st.flags=st.flags&-65537|128;case 0:if(st=ut.payload,at=typeof st=="function"?st.call(ct,dt,at):st,at==null)break e;dt=A$1({},dt,at);break e;case 2:$g=!0}}et.callback!==null&&et.lane!==0&&(o.flags|=64,at=$.effects,at===null?$.effects=[et]:at.push(et))}else ct={eventTime:ct,lane:at,tag:et.tag,payload:et.payload,callback:et.callback,next:null},lt===null?(ot=lt=ct,rt=dt):lt=lt.next=ct,tt|=at;if(et=et.next,et===null){if(et=$.shared.pending,et===null)break;at=et,et=at.next,at.next=null,$.lastBaseUpdate=at,$.shared.pending=null}}while(1);if(lt===null&&(rt=dt),$.baseState=rt,$.firstBaseUpdate=ot,$.lastBaseUpdate=lt,i=$.shared.interleaved,i!==null){$=i;do tt|=$.lane,$=$.next;while($!==i)}else _e===null&&($.shared.lanes=0);hh|=tt,o.lanes=tt,o.memoizedState=dt}}function ih(o,i,s){if(o=i.effects,i.effects=null,o!==null)for(i=0;iUt?(wt=Ft,Ft=null):wt=Ft.sibling;var vt=at(bt,Ft,ht[Ut],yt);if(vt===null){Ft===null&&(Ft=wt);break}o&&Ft&&vt.alternate===null&&i(bt,Ft),Tt=_e(vt,Tt,Ut),Ct===null?ft=vt:Ct.sibling=vt,Ct=vt,Ft=wt}if(Ut===ht.length)return s(bt,Ft),I&&tg(bt,Ut),ft;if(Ft===null){for(;UtUt?(wt=Ft,Ft=null):wt=Ft.sibling;var At=at(bt,Ft,vt.value,yt);if(At===null){Ft===null&&(Ft=wt);break}o&&Ft&&At.alternate===null&&i(bt,Ft),Tt=_e(At,Tt,Ut),Ct===null?ft=At:Ct.sibling=At,Ct=At,Ft=wt}if(vt.done)return s(bt,Ft),I&&tg(bt,Ut),ft;if(Ft===null){for(;!vt.done;Ut++,vt=ht.next())vt=dt(bt,vt.value,yt),vt!==null&&(Tt=_e(vt,Tt,Ut),Ct===null?ft=vt:Ct.sibling=vt,Ct=vt);return I&&tg(bt,Ut),ft}for(Ft=j(bt,Ft);!vt.done;Ut++,vt=ht.next())vt=ct(Ft,bt,Ut,vt.value,yt),vt!==null&&(o&&vt.alternate!==null&&Ft.delete(vt.key===null?Ut:vt.key),Tt=_e(vt,Tt,Ut),Ct===null?ft=vt:Ct.sibling=vt,Ct=vt);return o&&Ft.forEach(function(Et){return i(bt,Et)}),I&&tg(bt,Ut),ft}function mt(bt,Tt,ht,yt){if(typeof ht=="object"&&ht!==null&&ht.type===ya&&ht.key===null&&(ht=ht.props.children),typeof ht=="object"&&ht!==null){switch(ht.$$typeof){case va:e:{for(var ft=ht.key,Ct=Tt;Ct!==null;){if(Ct.key===ft){if(ft=ht.type,ft===ya){if(Ct.tag===7){s(bt,Ct.sibling),Tt=$(Ct,ht.props.children),Tt.return=bt,bt=Tt;break e}}else if(Ct.elementType===ft||typeof ft=="object"&&ft!==null&&ft.$$typeof===Ha&&uh(ft)===Ct.type){s(bt,Ct.sibling),Tt=$(Ct,ht.props),Tt.ref=sh(bt,Ct,ht),Tt.return=bt,bt=Tt;break e}s(bt,Ct);break}else i(bt,Ct);Ct=Ct.sibling}ht.type===ya?(Tt=Ah(ht.props.children,bt.mode,yt,ht.key),Tt.return=bt,bt=Tt):(yt=yh(ht.type,ht.key,ht.props,null,bt.mode,yt),yt.ref=sh(bt,Tt,ht),yt.return=bt,bt=yt)}return tt(bt);case wa:e:{for(Ct=ht.key;Tt!==null;){if(Tt.key===Ct)if(Tt.tag===4&&Tt.stateNode.containerInfo===ht.containerInfo&&Tt.stateNode.implementation===ht.implementation){s(bt,Tt.sibling),Tt=$(Tt,ht.children||[]),Tt.return=bt,bt=Tt;break e}else{s(bt,Tt);break}else i(bt,Tt);Tt=Tt.sibling}Tt=zh(ht,bt.mode,yt),Tt.return=bt,bt=Tt}return tt(bt);case Ha:return Ct=ht._init,mt(bt,Tt,Ct(ht._payload),yt)}if(eb(ht))return st(bt,Tt,ht,yt);if(Ka(ht))return ut(bt,Tt,ht,yt);th(bt,ht)}return typeof ht=="string"&&ht!==""||typeof ht=="number"?(ht=""+ht,Tt!==null&&Tt.tag===6?(s(bt,Tt.sibling),Tt=$(Tt,ht),Tt.return=bt,bt=Tt):(s(bt,Tt),Tt=xh(ht,bt.mode,yt),Tt.return=bt,bt=Tt),tt(bt)):s(bt,Tt)}return mt}var Bh=vh(!0),Ch=vh(!1),Dh={},Eh=Uf(Dh),Fh=Uf(Dh),Gh=Uf(Dh);function Hh(o){if(o===Dh)throw Error(p$3(174));return o}function Ih(o,i){switch(G(Gh,i),G(Fh,o),G(Eh,Dh),o=i.nodeType,o){case 9:case 11:i=(i=i.documentElement)?i.namespaceURI:lb(null,"");break;default:o=o===8?i.parentNode:i,i=o.namespaceURI||null,o=o.tagName,i=lb(i,o)}E(Eh),G(Eh,i)}function Jh(){E(Eh),E(Fh),E(Gh)}function Kh(o){Hh(Gh.current);var i=Hh(Eh.current),s=lb(i,o.type);i!==s&&(G(Fh,o),G(Eh,s))}function Lh(o){Fh.current===o&&(E(Eh),E(Fh))}var M=Uf(0);function Mh(o){for(var i=o;i!==null;){if(i.tag===13){var s=i.memoizedState;if(s!==null&&(s=s.dehydrated,s===null||s.data==="$?"||s.data==="$!"))return i}else if(i.tag===19&&i.memoizedProps.revealOrder!==void 0){if((i.flags&128)!==0)return i}else if(i.child!==null){i.child.return=i,i=i.child;continue}if(i===o)break;for(;i.sibling===null;){if(i.return===null||i.return===o)return null;i=i.return}i.sibling.return=i.return,i=i.sibling}return null}var Nh=[];function Oh(){for(var o=0;os?s:4,o(!0);var j=Qh.transition;Qh.transition={};try{o(!1),i()}finally{C=s,Qh.transition=j}}function Fi(){return di().memoizedState}function Gi(o,i,s){var j=lh(o);if(s={lane:j,action:s,hasEagerState:!1,eagerState:null,next:null},Hi(o))Ii(i,s);else if(s=Yg(o,i,s,j),s!==null){var $=L();mh(s,o,j,$),Ji(s,i,j)}}function ri(o,i,s){var j=lh(o),$={lane:j,action:s,hasEagerState:!1,eagerState:null,next:null};if(Hi(o))Ii(i,$);else{var _e=o.alternate;if(o.lanes===0&&(_e===null||_e.lanes===0)&&(_e=i.lastRenderedReducer,_e!==null))try{var tt=i.lastRenderedState,et=_e(tt,s);if($.hasEagerState=!0,$.eagerState=et,He(et,tt)){var rt=i.interleaved;rt===null?($.next=$,Xg(i)):($.next=rt.next,rt.next=$),i.interleaved=$;return}}catch{}finally{}s=Yg(o,i,$,j),s!==null&&($=L(),mh(s,o,j,$),Ji(s,i,j))}}function Hi(o){var i=o.alternate;return o===N||i!==null&&i===N}function Ii(o,i){Th=Sh=!0;var s=o.pending;s===null?i.next=i:(i.next=s.next,s.next=i),o.pending=i}function Ji(o,i,s){if((s&4194240)!==0){var j=i.lanes;j&=o.pendingLanes,s|=j,i.lanes=s,Cc(o,s)}}var ai={readContext:Vg,useCallback:Q,useContext:Q,useEffect:Q,useImperativeHandle:Q,useInsertionEffect:Q,useLayoutEffect:Q,useMemo:Q,useReducer:Q,useRef:Q,useState:Q,useDebugValue:Q,useDeferredValue:Q,useTransition:Q,useMutableSource:Q,useSyncExternalStore:Q,useId:Q,unstable_isNewReconciler:!1},Yh={readContext:Vg,useCallback:function(o,i){return ci().memoizedState=[o,i===void 0?null:i],o},useContext:Vg,useEffect:vi,useImperativeHandle:function(o,i,s){return s=s!=null?s.concat([o]):null,ti(4194308,4,yi.bind(null,i,o),s)},useLayoutEffect:function(o,i){return ti(4194308,4,o,i)},useInsertionEffect:function(o,i){return ti(4,2,o,i)},useMemo:function(o,i){var s=ci();return i=i===void 0?null:i,o=o(),s.memoizedState=[o,i],o},useReducer:function(o,i,s){var j=ci();return i=s!==void 0?s(i):i,j.memoizedState=j.baseState=i,o={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:o,lastRenderedState:i},j.queue=o,o=o.dispatch=Gi.bind(null,N,o),[j.memoizedState,o]},useRef:function(o){var i=ci();return o={current:o},i.memoizedState=o},useState:qi,useDebugValue:Ai,useDeferredValue:function(o){return ci().memoizedState=o},useTransition:function(){var o=qi(!1),i=o[0];return o=Ei.bind(null,o[1]),ci().memoizedState=o,[i,o]},useMutableSource:function(){},useSyncExternalStore:function(o,i,s){var j=N,$=ci();if(I){if(s===void 0)throw Error(p$3(407));s=s()}else{if(s=i(),R===null)throw Error(p$3(349));(Rh&30)!==0||ni(j,i,s)}$.memoizedState=s;var _e={value:s,getSnapshot:i};return $.queue=_e,vi(ki.bind(null,j,_e,o),[o]),j.flags|=2048,li(9,mi.bind(null,j,_e,s,i),void 0,null),s},useId:function(){var o=ci(),i=R.identifierPrefix;if(I){var s=sg,j=rg;s=(j&~(1<<32-oc(j)-1)).toString(32)+s,i=":"+i+"R"+s,s=Uh++,0<\/script>",o=o.removeChild(o.firstChild)):typeof j.is=="string"?o=tt.createElement(s,{is:j.is}):(o=tt.createElement(s),s==="select"&&(tt=o,j.multiple?tt.multiple=!0:j.size&&(tt.size=j.size))):o=tt.createElementNS(o,s),o[Of]=i,o[Pf]=j,Aj(o,i,!1,!1),i.stateNode=o;e:{switch(tt=vb(s,j),s){case"dialog":D("cancel",o),D("close",o),$=j;break;case"iframe":case"object":case"embed":D("load",o),$=j;break;case"video":case"audio":for($=0;$Hj&&(i.flags|=128,j=!0,Ej(_e,!1),i.lanes=4194304)}else{if(!j)if(o=Mh(tt),o!==null){if(i.flags|=128,j=!0,s=o.updateQueue,s!==null&&(i.updateQueue=s,i.flags|=4),Ej(_e,!0),_e.tail===null&&_e.tailMode==="hidden"&&!tt.alternate&&!I)return S(i),null}else 2*B()-_e.renderingStartTime>Hj&&s!==1073741824&&(i.flags|=128,j=!0,Ej(_e,!1),i.lanes=4194304);_e.isBackwards?(tt.sibling=i.child,i.child=tt):(s=_e.last,s!==null?s.sibling=tt:i.child=tt,_e.last=tt)}return _e.tail!==null?(i=_e.tail,_e.rendering=i,_e.tail=i.sibling,_e.renderingStartTime=B(),i.sibling=null,s=M.current,G(M,j?s&1|2:s&1),i):(S(i),null);case 22:case 23:return Ij(),j=i.memoizedState!==null,o!==null&&o.memoizedState!==null!==j&&(i.flags|=8192),j&&(i.mode&1)!==0?(gj&1073741824)!==0&&(S(i),i.subtreeFlags&6&&(i.flags|=8192)):S(i),null;case 24:return null;case 25:return null}throw Error(p$3(156,i.tag))}function Jj(o,i){switch(wg(i),i.tag){case 1:return Zf(i.type)&&$f(),o=i.flags,o&65536?(i.flags=o&-65537|128,i):null;case 3:return Jh(),E(Wf),E(H),Oh(),o=i.flags,(o&65536)!==0&&(o&128)===0?(i.flags=o&-65537|128,i):null;case 5:return Lh(i),null;case 13:if(E(M),o=i.memoizedState,o!==null&&o.dehydrated!==null){if(i.alternate===null)throw Error(p$3(340));Ig()}return o=i.flags,o&65536?(i.flags=o&-65537|128,i):null;case 19:return E(M),null;case 4:return Jh(),null;case 10:return Rg(i.type._context),null;case 22:case 23:return Ij(),null;case 24:return null;default:return null}}var Kj=!1,U=!1,Lj=typeof WeakSet=="function"?WeakSet:Set,V=null;function Mj(o,i){var s=o.ref;if(s!==null)if(typeof s=="function")try{s(null)}catch(j){W(o,i,j)}else s.current=null}function Nj(o,i,s){try{s()}catch(j){W(o,i,j)}}var Oj=!1;function Pj(o,i){if(Cf=dd,o=Me(),Ne(o)){if("selectionStart"in o)var s={start:o.selectionStart,end:o.selectionEnd};else e:{s=(s=o.ownerDocument)&&s.defaultView||window;var j=s.getSelection&&s.getSelection();if(j&&j.rangeCount!==0){s=j.anchorNode;var $=j.anchorOffset,_e=j.focusNode;j=j.focusOffset;try{s.nodeType,_e.nodeType}catch{s=null;break e}var tt=0,et=-1,rt=-1,ot=0,lt=0,dt=o,at=null;t:for(;;){for(var ct;dt!==s||$!==0&&dt.nodeType!==3||(et=tt+$),dt!==_e||j!==0&&dt.nodeType!==3||(rt=tt+j),dt.nodeType===3&&(tt+=dt.nodeValue.length),(ct=dt.firstChild)!==null;)at=dt,dt=ct;for(;;){if(dt===o)break t;if(at===s&&++ot===$&&(et=tt),at===_e&&++lt===j&&(rt=tt),(ct=dt.nextSibling)!==null)break;dt=at,at=dt.parentNode}dt=ct}s=et===-1||rt===-1?null:{start:et,end:rt}}else s=null}s=s||{start:0,end:0}}else s=null;for(Df={focusedElem:o,selectionRange:s},dd=!1,V=i;V!==null;)if(i=V,o=i.child,(i.subtreeFlags&1028)!==0&&o!==null)o.return=i,V=o;else for(;V!==null;){i=V;try{var st=i.alternate;if((i.flags&1024)!==0)switch(i.tag){case 0:case 11:case 15:break;case 1:if(st!==null){var ut=st.memoizedProps,mt=st.memoizedState,bt=i.stateNode,Tt=bt.getSnapshotBeforeUpdate(i.elementType===i.type?ut:Lg(i.type,ut),mt);bt.__reactInternalSnapshotBeforeUpdate=Tt}break;case 3:var ht=i.stateNode.containerInfo;ht.nodeType===1?ht.textContent="":ht.nodeType===9&&ht.documentElement&&ht.removeChild(ht.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(p$3(163))}}catch(yt){W(i,i.return,yt)}if(o=i.sibling,o!==null){o.return=i.return,V=o;break}V=i.return}return st=Oj,Oj=!1,st}function Qj(o,i,s){var j=i.updateQueue;if(j=j!==null?j.lastEffect:null,j!==null){var $=j=j.next;do{if(($.tag&o)===o){var _e=$.destroy;$.destroy=void 0,_e!==void 0&&Nj(i,s,_e)}$=$.next}while($!==j)}}function Rj(o,i){if(i=i.updateQueue,i=i!==null?i.lastEffect:null,i!==null){var s=i=i.next;do{if((s.tag&o)===o){var j=s.create;s.destroy=j()}s=s.next}while(s!==i)}}function Sj(o){var i=o.ref;if(i!==null){var s=o.stateNode;switch(o.tag){case 5:o=s;break;default:o=s}typeof i=="function"?i(o):i.current=o}}function Tj(o){var i=o.alternate;i!==null&&(o.alternate=null,Tj(i)),o.child=null,o.deletions=null,o.sibling=null,o.tag===5&&(i=o.stateNode,i!==null&&(delete i[Of],delete i[Pf],delete i[of],delete i[Qf],delete i[Rf])),o.stateNode=null,o.return=null,o.dependencies=null,o.memoizedProps=null,o.memoizedState=null,o.pendingProps=null,o.stateNode=null,o.updateQueue=null}function Uj(o){return o.tag===5||o.tag===3||o.tag===4}function Vj(o){e:for(;;){for(;o.sibling===null;){if(o.return===null||Uj(o.return))return null;o=o.return}for(o.sibling.return=o.return,o=o.sibling;o.tag!==5&&o.tag!==6&&o.tag!==18;){if(o.flags&2||o.child===null||o.tag===4)continue e;o.child.return=o,o=o.child}if(!(o.flags&2))return o.stateNode}}function Wj(o,i,s){var j=o.tag;if(j===5||j===6)o=o.stateNode,i?s.nodeType===8?s.parentNode.insertBefore(o,i):s.insertBefore(o,i):(s.nodeType===8?(i=s.parentNode,i.insertBefore(o,s)):(i=s,i.appendChild(o)),s=s._reactRootContainer,s!=null||i.onclick!==null||(i.onclick=Bf));else if(j!==4&&(o=o.child,o!==null))for(Wj(o,i,s),o=o.sibling;o!==null;)Wj(o,i,s),o=o.sibling}function Xj(o,i,s){var j=o.tag;if(j===5||j===6)o=o.stateNode,i?s.insertBefore(o,i):s.appendChild(o);else if(j!==4&&(o=o.child,o!==null))for(Xj(o,i,s),o=o.sibling;o!==null;)Xj(o,i,s),o=o.sibling}var X=null,Yj=!1;function Zj(o,i,s){for(s=s.child;s!==null;)ak(o,i,s),s=s.sibling}function ak(o,i,s){if(lc&&typeof lc.onCommitFiberUnmount=="function")try{lc.onCommitFiberUnmount(kc,s)}catch{}switch(s.tag){case 5:U||Mj(s,i);case 6:var j=X,$=Yj;X=null,Zj(o,i,s),X=j,Yj=$,X!==null&&(Yj?(o=X,s=s.stateNode,o.nodeType===8?o.parentNode.removeChild(s):o.removeChild(s)):X.removeChild(s.stateNode));break;case 18:X!==null&&(Yj?(o=X,s=s.stateNode,o.nodeType===8?Kf(o.parentNode,s):o.nodeType===1&&Kf(o,s),bd(o)):Kf(X,s.stateNode));break;case 4:j=X,$=Yj,X=s.stateNode.containerInfo,Yj=!0,Zj(o,i,s),X=j,Yj=$;break;case 0:case 11:case 14:case 15:if(!U&&(j=s.updateQueue,j!==null&&(j=j.lastEffect,j!==null))){$=j=j.next;do{var _e=$,tt=_e.destroy;_e=_e.tag,tt!==void 0&&((_e&2)!==0||(_e&4)!==0)&&Nj(s,i,tt),$=$.next}while($!==j)}Zj(o,i,s);break;case 1:if(!U&&(Mj(s,i),j=s.stateNode,typeof j.componentWillUnmount=="function"))try{j.props=s.memoizedProps,j.state=s.memoizedState,j.componentWillUnmount()}catch(et){W(s,i,et)}Zj(o,i,s);break;case 21:Zj(o,i,s);break;case 22:s.mode&1?(U=(j=U)||s.memoizedState!==null,Zj(o,i,s),U=j):Zj(o,i,s);break;default:Zj(o,i,s)}}function bk(o){var i=o.updateQueue;if(i!==null){o.updateQueue=null;var s=o.stateNode;s===null&&(s=o.stateNode=new Lj),i.forEach(function(j){var $=ck.bind(null,o,j);s.has(j)||(s.add(j),j.then($,$))})}}function dk(o,i){var s=i.deletions;if(s!==null)for(var j=0;j$&&($=tt),j&=~_e}if(j=$,j=B()-j,j=(120>j?120:480>j?480:1080>j?1080:1920>j?1920:3e3>j?3e3:4320>j?4320:1960*mk(j/1960))-j,10o?16:o,xk===null)var j=!1;else{if(o=xk,xk=null,yk=0,(K&6)!==0)throw Error(p$3(331));var $=K;for(K|=4,V=o.current;V!==null;){var _e=V,tt=_e.child;if((V.flags&16)!==0){var et=_e.deletions;if(et!==null){for(var rt=0;rtB()-gk?Lk(o,0):sk|=s),Ek(o,i)}function Zk(o,i){i===0&&((o.mode&1)===0?i=1:(i=sc,sc<<=1,(sc&130023424)===0&&(sc=4194304)));var s=L();o=Zg(o,i),o!==null&&(Ac(o,i,s),Ek(o,s))}function vj(o){var i=o.memoizedState,s=0;i!==null&&(s=i.retryLane),Zk(o,s)}function ck(o,i){var s=0;switch(o.tag){case 13:var j=o.stateNode,$=o.memoizedState;$!==null&&(s=$.retryLane);break;case 19:j=o.stateNode;break;default:throw Error(p$3(314))}j!==null&&j.delete(i),Zk(o,s)}var Wk;Wk=function(o,i,s){if(o!==null)if(o.memoizedProps!==i.pendingProps||Wf.current)Ug=!0;else{if((o.lanes&s)===0&&(i.flags&128)===0)return Ug=!1,zj(o,i,s);Ug=(o.flags&131072)!==0}else Ug=!1,I&&(i.flags&1048576)!==0&&ug(i,ng,i.index);switch(i.lanes=0,i.tag){case 2:var j=i.type;jj(o,i),o=i.pendingProps;var $=Yf(i,H.current);Tg(i,s),$=Xh(null,i,j,o,$,s);var _e=bi();return i.flags|=1,typeof $=="object"&&$!==null&&typeof $.render=="function"&&$.$$typeof===void 0?(i.tag=1,i.memoizedState=null,i.updateQueue=null,Zf(j)?(_e=!0,cg(i)):_e=!1,i.memoizedState=$.state!==null&&$.state!==void 0?$.state:null,ah(i),$.updater=nh,i.stateNode=$,$._reactInternals=i,rh(i,j,o,s),i=kj(null,i,j,!0,_e,s)):(i.tag=0,I&&_e&&vg(i),Yi(null,i,$,s),i=i.child),i;case 16:j=i.elementType;e:{switch(jj(o,i),o=i.pendingProps,$=j._init,j=$(j._payload),i.type=j,$=i.tag=$k(j),o=Lg(j,o),$){case 0:i=dj(null,i,j,o,s);break e;case 1:i=ij(null,i,j,o,s);break e;case 11:i=Zi(null,i,j,o,s);break e;case 14:i=aj(null,i,j,Lg(j.type,o),s);break e}throw Error(p$3(306,j,""))}return i;case 0:return j=i.type,$=i.pendingProps,$=i.elementType===j?$:Lg(j,$),dj(o,i,j,$,s);case 1:return j=i.type,$=i.pendingProps,$=i.elementType===j?$:Lg(j,$),ij(o,i,j,$,s);case 3:e:{if(lj(i),o===null)throw Error(p$3(387));j=i.pendingProps,_e=i.memoizedState,$=_e.element,bh(o,i),gh(i,j,null,s);var tt=i.memoizedState;if(j=tt.element,_e.isDehydrated)if(_e={element:j,isDehydrated:!1,cache:tt.cache,pendingSuspenseBoundaries:tt.pendingSuspenseBoundaries,transitions:tt.transitions},i.updateQueue.baseState=_e,i.memoizedState=_e,i.flags&256){$=Ki(Error(p$3(423)),i),i=mj(o,i,j,s,$);break e}else if(j!==$){$=Ki(Error(p$3(424)),i),i=mj(o,i,j,s,$);break e}else for(yg=Lf(i.stateNode.containerInfo.firstChild),xg=i,I=!0,zg=null,s=Ch(i,null,j,s),i.child=s;s;)s.flags=s.flags&-3|4096,s=s.sibling;else{if(Ig(),j===$){i=$i(o,i,s);break e}Yi(o,i,j,s)}i=i.child}return i;case 5:return Kh(i),o===null&&Eg(i),j=i.type,$=i.pendingProps,_e=o!==null?o.memoizedProps:null,tt=$.children,Ef(j,$)?tt=null:_e!==null&&Ef(j,_e)&&(i.flags|=32),hj(o,i),Yi(o,i,tt,s),i.child;case 6:return o===null&&Eg(i),null;case 13:return pj(o,i,s);case 4:return Ih(i,i.stateNode.containerInfo),j=i.pendingProps,o===null?i.child=Bh(i,null,j,s):Yi(o,i,j,s),i.child;case 11:return j=i.type,$=i.pendingProps,$=i.elementType===j?$:Lg(j,$),Zi(o,i,j,$,s);case 7:return Yi(o,i,i.pendingProps,s),i.child;case 8:return Yi(o,i,i.pendingProps.children,s),i.child;case 12:return Yi(o,i,i.pendingProps.children,s),i.child;case 10:e:{if(j=i.type._context,$=i.pendingProps,_e=i.memoizedProps,tt=$.value,G(Mg,j._currentValue),j._currentValue=tt,_e!==null)if(He(_e.value,tt)){if(_e.children===$.children&&!Wf.current){i=$i(o,i,s);break e}}else for(_e=i.child,_e!==null&&(_e.return=i);_e!==null;){var et=_e.dependencies;if(et!==null){tt=_e.child;for(var rt=et.firstContext;rt!==null;){if(rt.context===j){if(_e.tag===1){rt=ch(-1,s&-s),rt.tag=2;var ot=_e.updateQueue;if(ot!==null){ot=ot.shared;var lt=ot.pending;lt===null?rt.next=rt:(rt.next=lt.next,lt.next=rt),ot.pending=rt}}_e.lanes|=s,rt=_e.alternate,rt!==null&&(rt.lanes|=s),Sg(_e.return,s,i),et.lanes|=s;break}rt=rt.next}}else if(_e.tag===10)tt=_e.type===i.type?null:_e.child;else if(_e.tag===18){if(tt=_e.return,tt===null)throw Error(p$3(341));tt.lanes|=s,et=tt.alternate,et!==null&&(et.lanes|=s),Sg(tt,s,i),tt=_e.sibling}else tt=_e.child;if(tt!==null)tt.return=_e;else for(tt=_e;tt!==null;){if(tt===i){tt=null;break}if(_e=tt.sibling,_e!==null){_e.return=tt.return,tt=_e;break}tt=tt.return}_e=tt}Yi(o,i,$.children,s),i=i.child}return i;case 9:return $=i.type,j=i.pendingProps.children,Tg(i,s),$=Vg($),j=j($),i.flags|=1,Yi(o,i,j,s),i.child;case 14:return j=i.type,$=Lg(j,i.pendingProps),$=Lg(j.type,$),aj(o,i,j,$,s);case 15:return cj(o,i,i.type,i.pendingProps,s);case 17:return j=i.type,$=i.pendingProps,$=i.elementType===j?$:Lg(j,$),jj(o,i),i.tag=1,Zf(j)?(o=!0,cg(i)):o=!1,Tg(i,s),ph(i,j,$),rh(i,j,$,s),kj(null,i,j,!0,o,s);case 19:return yj(o,i,s);case 22:return ej(o,i,s)}throw Error(p$3(156,i.tag))};function Gk(o,i){return ac(o,i)}function al(o,i,s,j){this.tag=o,this.key=s,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=i,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=j,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Bg(o,i,s,j){return new al(o,i,s,j)}function bj(o){return o=o.prototype,!(!o||!o.isReactComponent)}function $k(o){if(typeof o=="function")return bj(o)?1:0;if(o!=null){if(o=o.$$typeof,o===Da)return 11;if(o===Ga)return 14}return 2}function wh(o,i){var s=o.alternate;return s===null?(s=Bg(o.tag,i,o.key,o.mode),s.elementType=o.elementType,s.type=o.type,s.stateNode=o.stateNode,s.alternate=o,o.alternate=s):(s.pendingProps=i,s.type=o.type,s.flags=0,s.subtreeFlags=0,s.deletions=null),s.flags=o.flags&14680064,s.childLanes=o.childLanes,s.lanes=o.lanes,s.child=o.child,s.memoizedProps=o.memoizedProps,s.memoizedState=o.memoizedState,s.updateQueue=o.updateQueue,i=o.dependencies,s.dependencies=i===null?null:{lanes:i.lanes,firstContext:i.firstContext},s.sibling=o.sibling,s.index=o.index,s.ref=o.ref,s}function yh(o,i,s,j,$,_e){var tt=2;if(j=o,typeof o=="function")bj(o)&&(tt=1);else if(typeof o=="string")tt=5;else e:switch(o){case ya:return Ah(s.children,$,_e,i);case za:tt=8,$|=8;break;case Aa:return o=Bg(12,s,i,$|2),o.elementType=Aa,o.lanes=_e,o;case Ea:return o=Bg(13,s,i,$),o.elementType=Ea,o.lanes=_e,o;case Fa:return o=Bg(19,s,i,$),o.elementType=Fa,o.lanes=_e,o;case Ia:return qj(s,$,_e,i);default:if(typeof o=="object"&&o!==null)switch(o.$$typeof){case Ba:tt=10;break e;case Ca:tt=9;break e;case Da:tt=11;break e;case Ga:tt=14;break e;case Ha:tt=16,j=null;break e}throw Error(p$3(130,o==null?o:typeof o,""))}return i=Bg(tt,s,i,$),i.elementType=o,i.type=j,i.lanes=_e,i}function Ah(o,i,s,j){return o=Bg(7,o,j,i),o.lanes=s,o}function qj(o,i,s,j){return o=Bg(22,o,j,i),o.elementType=Ia,o.lanes=s,o.stateNode={isHidden:!1},o}function xh(o,i,s){return o=Bg(6,o,null,i),o.lanes=s,o}function zh(o,i,s){return i=Bg(4,o.children!==null?o.children:[],o.key,i),i.lanes=s,i.stateNode={containerInfo:o.containerInfo,pendingChildren:null,implementation:o.implementation},i}function bl(o,i,s,j,$){this.tag=i,this.containerInfo=o,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=zc(0),this.expirationTimes=zc(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=zc(0),this.identifierPrefix=j,this.onRecoverableError=$,this.mutableSourceEagerHydrationData=null}function cl(o,i,s,j,$,_e,tt,et,rt){return o=new bl(o,i,s,et,rt),i===1?(i=1,_e===!0&&(i|=8)):i=0,_e=Bg(3,null,null,i),o.current=_e,_e.stateNode=o,_e.memoizedState={element:j,isDehydrated:s,cache:null,transitions:null,pendingSuspenseBoundaries:null},ah(_e),o}function dl(o,i,s){var j=3=0)&&(s[$]=o[$]);return s}function isPlainObject(o){return o!==null&&typeof o=="object"&&o.constructor===Object}function deepClone(o){if(!isPlainObject(o))return o;const i={};return Object.keys(o).forEach(s=>{i[s]=deepClone(o[s])}),i}function deepmerge(o,i,s={clone:!0}){const j=s.clone?_extends({},o):o;return isPlainObject(o)&&isPlainObject(i)&&Object.keys(i).forEach($=>{$!=="__proto__"&&(isPlainObject(i[$])&&$ in o&&isPlainObject(o[$])?j[$]=deepmerge(o[$],i[$],s):s.clone?j[$]=isPlainObject(i[$])?deepClone(i[$]):i[$]:j[$]=i[$])}),j}function formatMuiErrorMessage(o){let i="https://mui.com/production-error/?code="+o;for(let s=1;ss==null?i:function(...$){i.apply(this,$),s.apply(this,$)},()=>{})}function debounce(o,i=166){let s;function j(...$){const _e=()=>{o.apply(this,$)};clearTimeout(s),s=setTimeout(_e,i)}return j.clear=()=>{clearTimeout(s)},j}function isMuiElement(o,i){return react.exports.isValidElement(o)&&i.indexOf(o.type.muiName)!==-1}function ownerDocument(o){return o&&o.ownerDocument||document}function ownerWindow(o){return ownerDocument(o).defaultView||window}function setRef(o,i){typeof o=="function"?o(i):o&&(o.current=i)}const useEnhancedEffect=typeof window!="undefined"?react.exports.useLayoutEffect:react.exports.useEffect;var useEnhancedEffect$1=useEnhancedEffect;let globalId=0;function useGlobalId(o){const[i,s]=react.exports.useState(o),j=o||i;return react.exports.useEffect(()=>{i==null&&(globalId+=1,s(`mui-${globalId}`))},[i]),j}const maybeReactUseId=React$2["useId".toString()];function useId(o){if(maybeReactUseId!==void 0){const i=maybeReactUseId();return o!=null?o:i}return useGlobalId(o)}function useControlled({controlled:o,default:i,name:s,state:j="value"}){const{current:$}=react.exports.useRef(o!==void 0),[_e,tt]=react.exports.useState(i),et=$?o:_e,rt=react.exports.useCallback(ot=>{$||tt(ot)},[]);return[et,rt]}function useEventCallback(o){const i=react.exports.useRef(o);return useEnhancedEffect$1(()=>{i.current=o}),react.exports.useCallback((...s)=>(0,i.current)(...s),[])}function useForkRef(...o){return react.exports.useMemo(()=>o.every(i=>i==null)?null:i=>{o.forEach(s=>{setRef(s,i)})},o)}let hadKeyboardEvent=!0,hadFocusVisibleRecently=!1,hadFocusVisibleRecentlyTimeout;const inputTypesWhitelist={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function focusTriggersKeyboardModality(o){const{type:i,tagName:s}=o;return!!(s==="INPUT"&&inputTypesWhitelist[i]&&!o.readOnly||s==="TEXTAREA"&&!o.readOnly||o.isContentEditable)}function handleKeyDown(o){o.metaKey||o.altKey||o.ctrlKey||(hadKeyboardEvent=!0)}function handlePointerDown(){hadKeyboardEvent=!1}function handleVisibilityChange(){this.visibilityState==="hidden"&&hadFocusVisibleRecently&&(hadKeyboardEvent=!0)}function prepare(o){o.addEventListener("keydown",handleKeyDown,!0),o.addEventListener("mousedown",handlePointerDown,!0),o.addEventListener("pointerdown",handlePointerDown,!0),o.addEventListener("touchstart",handlePointerDown,!0),o.addEventListener("visibilitychange",handleVisibilityChange,!0)}function isFocusVisible(o){const{target:i}=o;try{return i.matches(":focus-visible")}catch{}return hadKeyboardEvent||focusTriggersKeyboardModality(i)}function useIsFocusVisible(){const o=react.exports.useCallback($=>{$!=null&&prepare($.ownerDocument)},[]),i=react.exports.useRef(!1);function s(){return i.current?(hadFocusVisibleRecently=!0,window.clearTimeout(hadFocusVisibleRecentlyTimeout),hadFocusVisibleRecentlyTimeout=window.setTimeout(()=>{hadFocusVisibleRecently=!1},100),i.current=!1,!0):!1}function j($){return isFocusVisible($)?(i.current=!0,!0):!1}return{isFocusVisibleRef:i,onFocus:j,onBlur:s,ref:o}}function getScrollbarSize(o){const i=o.documentElement.clientWidth;return Math.abs(window.innerWidth-i)}function resolveProps(o,i){const s=_extends({},i);return Object.keys(o).forEach(j=>{if(j.toString().match(/^(components|slots)$/))s[j]=_extends({},o[j],s[j]);else if(j.toString().match(/^(componentsProps|slotProps)$/)){const $=o[j]||{},_e=i[j];s[j]={},!_e||!Object.keys(_e)?s[j]=$:!$||!Object.keys($)?s[j]=_e:(s[j]=_extends({},_e),Object.keys($).forEach(tt=>{s[j][tt]=resolveProps($[tt],_e[tt])}))}else s[j]===void 0&&(s[j]=o[j])}),s}function composeClasses(o,i,s=void 0){const j={};return Object.keys(o).forEach($=>{j[$]=o[$].reduce((_e,tt)=>{if(tt){const et=i(tt);et!==""&&_e.push(et),s&&s[tt]&&_e.push(s[tt])}return _e},[]).join(" ")}),j}const defaultGenerator=o=>o,createClassNameGenerator=()=>{let o=defaultGenerator;return{configure(i){o=i},generate(i){return o(i)},reset(){o=defaultGenerator}}},ClassNameGenerator=createClassNameGenerator();var ClassNameGenerator$1=ClassNameGenerator;const globalStateClassesMapping={active:"active",checked:"checked",completed:"completed",disabled:"disabled",readOnly:"readOnly",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",required:"required",selected:"selected"};function generateUtilityClass(o,i,s="Mui"){const j=globalStateClassesMapping[i];return j?`${s}-${j}`:`${ClassNameGenerator$1.generate(o)}-${i}`}function generateUtilityClasses(o,i,s="Mui"){const j={};return i.forEach($=>{j[$]=generateUtilityClass(o,$,s)}),j}function memoize$1(o){var i=Object.create(null);return function(s){return i[s]===void 0&&(i[s]=o(s)),i[s]}}var reactPropsRegex=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,isPropValid=memoize$1(function(o){return reactPropsRegex.test(o)||o.charCodeAt(0)===111&&o.charCodeAt(1)===110&&o.charCodeAt(2)<91});function sheetForTag(o){if(o.sheet)return o.sheet;for(var i=0;i0?charat(characters,--position):0,column--,character===10&&(column=1,line--),character}function next(){return character=position2||token(character)>3?"":" "}function escaping(o,i){for(;--i&&next()&&!(character<48||character>102||character>57&&character<65||character>70&&character<97););return slice(o,caret()+(i<6&&peek()==32&&next()==32))}function delimiter(o){for(;next();)switch(character){case o:return position;case 34:case 39:o!==34&&o!==39&&delimiter(character);break;case 40:o===41&&delimiter(o);break;case 92:next();break}return position}function commenter(o,i){for(;next()&&o+character!==47+10;)if(o+character===42+42&&peek()===47)break;return"/*"+slice(i,position-1)+"*"+from(o===47?o:next())}function identifier(o){for(;!token(peek());)next();return slice(o,position)}function compile(o){return dealloc(parse("",null,null,null,[""],o=alloc(o),0,[0],o))}function parse(o,i,s,j,$,_e,tt,et,rt){for(var ot=0,lt=0,dt=tt,at=0,ct=0,st=0,ut=1,mt=1,bt=1,Tt=0,ht="",yt=$,ft=_e,Ct=j,Ft=ht;mt;)switch(st=Tt,Tt=next()){case 40:if(st!=108&&charat(Ft,dt-1)==58){indexof(Ft+=replace(delimit(Tt),"&","&\f"),"&\f")!=-1&&(bt=-1);break}case 34:case 39:case 91:Ft+=delimit(Tt);break;case 9:case 10:case 13:case 32:Ft+=whitespace(st);break;case 92:Ft+=escaping(caret()-1,7);continue;case 47:switch(peek()){case 42:case 47:append(comment(commenter(next(),caret()),i,s),rt);break;default:Ft+="/"}break;case 123*ut:et[ot++]=strlen(Ft)*bt;case 125*ut:case 59:case 0:switch(Tt){case 0:case 125:mt=0;case 59+lt:bt==-1&&(Ft=replace(Ft,/\f/g,"")),ct>0&&strlen(Ft)-dt&&append(ct>32?declaration(Ft+";",j,s,dt-1):declaration(replace(Ft," ","")+";",j,s,dt-2),rt);break;case 59:Ft+=";";default:if(append(Ct=ruleset(Ft,i,s,ot,lt,$,et,ht,yt=[],ft=[],dt),_e),Tt===123)if(lt===0)parse(Ft,i,Ct,Ct,yt,_e,dt,et,ft);else switch(at===99&&charat(Ft,3)===110?100:at){case 100:case 108:case 109:case 115:parse(o,Ct,Ct,j&&append(ruleset(o,Ct,Ct,0,0,$,et,ht,$,yt=[],dt),ft),$,ft,dt,et,j?yt:ft);break;default:parse(Ft,Ct,Ct,Ct,[""],ft,0,et,ft)}}ot=lt=ct=0,ut=bt=1,ht=Ft="",dt=tt;break;case 58:dt=1+strlen(Ft),ct=st;default:if(ut<1){if(Tt==123)--ut;else if(Tt==125&&ut++==0&&prev()==125)continue}switch(Ft+=from(Tt),Tt*ut){case 38:bt=lt>0?1:(Ft+="\f",-1);break;case 44:et[ot++]=(strlen(Ft)-1)*bt,bt=1;break;case 64:peek()===45&&(Ft+=delimit(next())),at=peek(),lt=dt=strlen(ht=Ft+=identifier(caret())),Tt++;break;case 45:st===45&&strlen(Ft)==2&&(ut=0)}}return _e}function ruleset(o,i,s,j,$,_e,tt,et,rt,ot,lt){for(var dt=$-1,at=$===0?_e:[""],ct=sizeof(at),st=0,ut=0,mt=0;st0?at[bt]+" "+Tt:replace(Tt,/&\f/g,at[bt])))&&(rt[mt++]=ht);return node(o,i,s,$===0?RULESET:et,rt,ot,lt)}function comment(o,i,s){return node(o,i,s,COMMENT,from(char()),substr(o,2,-2),0)}function declaration(o,i,s,j){return node(o,i,s,DECLARATION,substr(o,0,j),substr(o,j+1,-1),j)}function serialize(o,i){for(var s="",j=sizeof(o),$=0;$6)switch(charat(o,i+1)){case 109:if(charat(o,i+4)!==45)break;case 102:return replace(o,/(.+:)(.+)-([^]+)/,"$1"+WEBKIT+"$2-$3$1"+MOZ+(charat(o,i+3)==108?"$3":"$2-$3"))+o;case 115:return~indexof(o,"stretch")?prefix(replace(o,"stretch","fill-available"),i)+o:o}break;case 4949:if(charat(o,i+1)!==115)break;case 6444:switch(charat(o,strlen(o)-3-(~indexof(o,"!important")&&10))){case 107:return replace(o,":",":"+WEBKIT)+o;case 101:return replace(o,/(.+:)([^;!]+)(;|!.+)?/,"$1"+WEBKIT+(charat(o,14)===45?"inline-":"")+"box$3$1"+WEBKIT+"$2$3$1"+MS+"$2box$3")+o}break;case 5936:switch(charat(o,i+11)){case 114:return WEBKIT+o+MS+replace(o,/[svh]\w+-[tblr]{2}/,"tb")+o;case 108:return WEBKIT+o+MS+replace(o,/[svh]\w+-[tblr]{2}/,"tb-rl")+o;case 45:return WEBKIT+o+MS+replace(o,/[svh]\w+-[tblr]{2}/,"lr")+o}return WEBKIT+o+MS+o+o}return o}var prefixer=function(i,s,j,$){if(i.length>-1&&!i.return)switch(i.type){case DECLARATION:i.return=prefix(i.value,i.length);break;case KEYFRAMES:return serialize([copy(i,{value:replace(i.value,"@","@"+WEBKIT)})],$);case RULESET:if(i.length)return combine(i.props,function(_e){switch(match(_e,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return serialize([copy(i,{props:[replace(_e,/:(read-\w+)/,":"+MOZ+"$1")]})],$);case"::placeholder":return serialize([copy(i,{props:[replace(_e,/:(plac\w+)/,":"+WEBKIT+"input-$1")]}),copy(i,{props:[replace(_e,/:(plac\w+)/,":"+MOZ+"$1")]}),copy(i,{props:[replace(_e,/:(plac\w+)/,MS+"input-$1")]})],$)}return""})}},defaultStylisPlugins=[prefixer],createCache=function(i){var s=i.key;if(s==="css"){var j=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(j,function(ut){var mt=ut.getAttribute("data-emotion");mt.indexOf(" ")!==-1&&(document.head.appendChild(ut),ut.setAttribute("data-s",""))})}var $=i.stylisPlugins||defaultStylisPlugins,_e={},tt,et=[];tt=i.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+s+' "]'),function(ut){for(var mt=ut.getAttribute("data-emotion").split(" "),bt=1;bt=4;++j,$-=4)s=o.charCodeAt(j)&255|(o.charCodeAt(++j)&255)<<8|(o.charCodeAt(++j)&255)<<16|(o.charCodeAt(++j)&255)<<24,s=(s&65535)*1540483477+((s>>>16)*59797<<16),s^=s>>>24,i=(s&65535)*1540483477+((s>>>16)*59797<<16)^(i&65535)*1540483477+((i>>>16)*59797<<16);switch($){case 3:i^=(o.charCodeAt(j+2)&255)<<16;case 2:i^=(o.charCodeAt(j+1)&255)<<8;case 1:i^=o.charCodeAt(j)&255,i=(i&65535)*1540483477+((i>>>16)*59797<<16)}return i^=i>>>13,i=(i&65535)*1540483477+((i>>>16)*59797<<16),((i^i>>>15)>>>0).toString(36)}var unitlessKeys={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},hyphenateRegex=/[A-Z]|^ms/g,animationRegex=/_EMO_([^_]+?)_([^]*?)_EMO_/g,isCustomProperty=function(i){return i.charCodeAt(1)===45},isProcessableValue=function(i){return i!=null&&typeof i!="boolean"},processStyleName=memoize$1(function(o){return isCustomProperty(o)?o:o.replace(hyphenateRegex,"-$&").toLowerCase()}),processStyleValue=function(i,s){switch(i){case"animation":case"animationName":if(typeof s=="string")return s.replace(animationRegex,function(j,$,_e){return cursor={name:$,styles:_e,next:cursor},$})}return unitlessKeys[i]!==1&&!isCustomProperty(i)&&typeof s=="number"&&s!==0?s+"px":s},noComponentSelectorMessage="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function handleInterpolation(o,i,s){if(s==null)return"";if(s.__emotion_styles!==void 0)return s;switch(typeof s){case"boolean":return"";case"object":{if(s.anim===1)return cursor={name:s.name,styles:s.styles,next:cursor},s.name;if(s.styles!==void 0){var j=s.next;if(j!==void 0)for(;j!==void 0;)cursor={name:j.name,styles:j.styles,next:cursor},j=j.next;var $=s.styles+";";return $}return createStringFromObject(o,i,s)}case"function":{if(o!==void 0){var _e=cursor,tt=s(o);return cursor=_e,handleInterpolation(o,i,tt)}break}}if(i==null)return s;var et=i[s];return et!==void 0?et:s}function createStringFromObject(o,i,s){var j="";if(Array.isArray(s))for(var $=0;$96?testOmitPropsOnStringTag:testOmitPropsOnComponent},composeShouldForwardProps=function(i,s,j){var $;if(s){var _e=s.shouldForwardProp;$=i.__emotion_forwardProp&&_e?function(tt){return i.__emotion_forwardProp(tt)&&_e(tt)}:_e}return typeof $!="function"&&j&&($=i.__emotion_forwardProp),$},Insertion=function(i){var s=i.cache,j=i.serialized,$=i.isStringTag;return registerStyles(s,j,$),useInsertionEffectAlwaysWithSyncFallback(function(){return insertStyles(s,j,$)}),null},createStyled$1=function o(i,s){var j=i.__emotion_real===i,$=j&&i.__emotion_base||i,_e,tt;s!==void 0&&(_e=s.label,tt=s.target);var et=composeShouldForwardProps(i,s,j),rt=et||getDefaultShouldForwardProp($),ot=!rt("as");return function(){var lt=arguments,dt=j&&i.__emotion_styles!==void 0?i.__emotion_styles.slice(0):[];if(_e!==void 0&&dt.push("label:"+_e+";"),lt[0]==null||lt[0].raw===void 0)dt.push.apply(dt,lt);else{dt.push(lt[0][0]);for(var at=lt.length,ct=1;cti(isEmpty$4($)?s:$):i})}/** - * @mui/styled-engine v5.13.2 - * - * @license MIT - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */function styled$2(o,i){return newStyled(o,i)}const internal_processStyles=(o,i)=>{Array.isArray(o.__emotion_styles)&&(o.__emotion_styles=i(o.__emotion_styles))},_excluded$K=["values","unit","step"],sortBreakpointsValues=o=>{const i=Object.keys(o).map(s=>({key:s,val:o[s]}))||[];return i.sort((s,j)=>s.val-j.val),i.reduce((s,j)=>_extends({},s,{[j.key]:j.val}),{})};function createBreakpoints(o){const{values:i={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:s="px",step:j=5}=o,$=_objectWithoutPropertiesLoose$1(o,_excluded$K),_e=sortBreakpointsValues(i),tt=Object.keys(_e);function et(at){return`@media (min-width:${typeof i[at]=="number"?i[at]:at}${s})`}function rt(at){return`@media (max-width:${(typeof i[at]=="number"?i[at]:at)-j/100}${s})`}function ot(at,ct){const st=tt.indexOf(ct);return`@media (min-width:${typeof i[at]=="number"?i[at]:at}${s}) and (max-width:${(st!==-1&&typeof i[tt[st]]=="number"?i[tt[st]]:ct)-j/100}${s})`}function lt(at){return tt.indexOf(at)+1`@media (min-width:${values$1[o]}px)`};function handleBreakpoints(o,i,s){const j=o.theme||{};if(Array.isArray(i)){const _e=j.breakpoints||defaultBreakpoints;return i.reduce((tt,et,rt)=>(tt[_e.up(_e.keys[rt])]=s(i[rt]),tt),{})}if(typeof i=="object"){const _e=j.breakpoints||defaultBreakpoints;return Object.keys(i).reduce((tt,et)=>{if(Object.keys(_e.values||values$1).indexOf(et)!==-1){const rt=_e.up(et);tt[rt]=s(i[et],et)}else{const rt=et;tt[rt]=i[rt]}return tt},{})}return s(i)}function createEmptyBreakpointObject(o={}){var i;return((i=o.keys)==null?void 0:i.reduce((j,$)=>{const _e=o.up($);return j[_e]={},j},{}))||{}}function removeUnusedBreakpoints(o,i){return o.reduce((s,j)=>{const $=s[j];return(!$||Object.keys($).length===0)&&delete s[j],s},i)}function getPath(o,i,s=!0){if(!i||typeof i!="string")return null;if(o&&o.vars&&s){const j=`vars.${i}`.split(".").reduce(($,_e)=>$&&$[_e]?$[_e]:null,o);if(j!=null)return j}return i.split(".").reduce((j,$)=>j&&j[$]!=null?j[$]:null,o)}function getStyleValue$1(o,i,s,j=s){let $;return typeof o=="function"?$=o(s):Array.isArray(o)?$=o[s]||j:$=getPath(o,s)||j,i&&($=i($,j,o)),$}function style$1(o){const{prop:i,cssProperty:s=o.prop,themeKey:j,transform:$}=o,_e=tt=>{if(tt[i]==null)return null;const et=tt[i],rt=tt.theme,ot=getPath(rt,j)||{};return handleBreakpoints(tt,et,dt=>{let at=getStyleValue$1(ot,$,dt);return dt===at&&typeof dt=="string"&&(at=getStyleValue$1(ot,$,`${i}${dt==="default"?"":capitalize$1(dt)}`,dt)),s===!1?at:{[s]:at}})};return _e.propTypes={},_e.filterProps=[i],_e}function memoize(o){const i={};return s=>(i[s]===void 0&&(i[s]=o(s)),i[s])}const properties={m:"margin",p:"padding"},directions={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},aliases={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},getCssProperties=memoize(o=>{if(o.length>2)if(aliases[o])o=aliases[o];else return[o];const[i,s]=o.split(""),j=properties[i],$=directions[s]||"";return Array.isArray($)?$.map(_e=>j+_e):[j+$]}),marginKeys=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],paddingKeys=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...marginKeys,...paddingKeys];function createUnaryUnit(o,i,s,j){var $;const _e=($=getPath(o,i,!1))!=null?$:s;return typeof _e=="number"?tt=>typeof tt=="string"?tt:_e*tt:Array.isArray(_e)?tt=>typeof tt=="string"?tt:_e[tt]:typeof _e=="function"?_e:()=>{}}function createUnarySpacing(o){return createUnaryUnit(o,"spacing",8)}function getValue(o,i){if(typeof i=="string"||i==null)return i;const s=Math.abs(i),j=o(s);return i>=0?j:typeof j=="number"?-j:`-${j}`}function getStyleFromPropValue(o,i){return s=>o.reduce((j,$)=>(j[$]=getValue(i,s),j),{})}function resolveCssProperty(o,i,s,j){if(i.indexOf(s)===-1)return null;const $=getCssProperties(s),_e=getStyleFromPropValue($,j),tt=o[s];return handleBreakpoints(o,tt,_e)}function style(o,i){const s=createUnarySpacing(o.theme);return Object.keys(o).map(j=>resolveCssProperty(o,i,j,s)).reduce(merge,{})}function margin(o){return style(o,marginKeys)}margin.propTypes={};margin.filterProps=marginKeys;function padding(o){return style(o,paddingKeys)}padding.propTypes={};padding.filterProps=paddingKeys;function createSpacing(o=8){if(o.mui)return o;const i=createUnarySpacing({spacing:o}),s=(...j)=>(j.length===0?[1]:j).map(_e=>{const tt=i(_e);return typeof tt=="number"?`${tt}px`:tt}).join(" ");return s.mui=!0,s}function compose(...o){const i=o.reduce((j,$)=>($.filterProps.forEach(_e=>{j[_e]=$}),j),{}),s=j=>Object.keys(j).reduce(($,_e)=>i[_e]?merge($,i[_e](j)):$,{});return s.propTypes={},s.filterProps=o.reduce((j,$)=>j.concat($.filterProps),[]),s}function borderTransform(o){return typeof o!="number"?o:`${o}px solid`}const border=style$1({prop:"border",themeKey:"borders",transform:borderTransform}),borderTop=style$1({prop:"borderTop",themeKey:"borders",transform:borderTransform}),borderRight=style$1({prop:"borderRight",themeKey:"borders",transform:borderTransform}),borderBottom=style$1({prop:"borderBottom",themeKey:"borders",transform:borderTransform}),borderLeft=style$1({prop:"borderLeft",themeKey:"borders",transform:borderTransform}),borderColor=style$1({prop:"borderColor",themeKey:"palette"}),borderTopColor=style$1({prop:"borderTopColor",themeKey:"palette"}),borderRightColor=style$1({prop:"borderRightColor",themeKey:"palette"}),borderBottomColor=style$1({prop:"borderBottomColor",themeKey:"palette"}),borderLeftColor=style$1({prop:"borderLeftColor",themeKey:"palette"}),borderRadius=o=>{if(o.borderRadius!==void 0&&o.borderRadius!==null){const i=createUnaryUnit(o.theme,"shape.borderRadius",4),s=j=>({borderRadius:getValue(i,j)});return handleBreakpoints(o,o.borderRadius,s)}return null};borderRadius.propTypes={};borderRadius.filterProps=["borderRadius"];compose(border,borderTop,borderRight,borderBottom,borderLeft,borderColor,borderTopColor,borderRightColor,borderBottomColor,borderLeftColor,borderRadius);const gap=o=>{if(o.gap!==void 0&&o.gap!==null){const i=createUnaryUnit(o.theme,"spacing",8),s=j=>({gap:getValue(i,j)});return handleBreakpoints(o,o.gap,s)}return null};gap.propTypes={};gap.filterProps=["gap"];const columnGap=o=>{if(o.columnGap!==void 0&&o.columnGap!==null){const i=createUnaryUnit(o.theme,"spacing",8),s=j=>({columnGap:getValue(i,j)});return handleBreakpoints(o,o.columnGap,s)}return null};columnGap.propTypes={};columnGap.filterProps=["columnGap"];const rowGap=o=>{if(o.rowGap!==void 0&&o.rowGap!==null){const i=createUnaryUnit(o.theme,"spacing",8),s=j=>({rowGap:getValue(i,j)});return handleBreakpoints(o,o.rowGap,s)}return null};rowGap.propTypes={};rowGap.filterProps=["rowGap"];const gridColumn=style$1({prop:"gridColumn"}),gridRow=style$1({prop:"gridRow"}),gridAutoFlow=style$1({prop:"gridAutoFlow"}),gridAutoColumns=style$1({prop:"gridAutoColumns"}),gridAutoRows=style$1({prop:"gridAutoRows"}),gridTemplateColumns=style$1({prop:"gridTemplateColumns"}),gridTemplateRows=style$1({prop:"gridTemplateRows"}),gridTemplateAreas=style$1({prop:"gridTemplateAreas"}),gridArea=style$1({prop:"gridArea"});compose(gap,columnGap,rowGap,gridColumn,gridRow,gridAutoFlow,gridAutoColumns,gridAutoRows,gridTemplateColumns,gridTemplateRows,gridTemplateAreas,gridArea);function paletteTransform(o,i){return i==="grey"?i:o}const color=style$1({prop:"color",themeKey:"palette",transform:paletteTransform}),bgcolor=style$1({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:paletteTransform}),backgroundColor=style$1({prop:"backgroundColor",themeKey:"palette",transform:paletteTransform});compose(color,bgcolor,backgroundColor);function sizingTransform(o){return o<=1&&o!==0?`${o*100}%`:o}const width=style$1({prop:"width",transform:sizingTransform}),maxWidth=o=>{if(o.maxWidth!==void 0&&o.maxWidth!==null){const i=s=>{var j;return{maxWidth:((j=o.theme)==null||(j=j.breakpoints)==null||(j=j.values)==null?void 0:j[s])||values$1[s]||sizingTransform(s)}};return handleBreakpoints(o,o.maxWidth,i)}return null};maxWidth.filterProps=["maxWidth"];const minWidth=style$1({prop:"minWidth",transform:sizingTransform}),height=style$1({prop:"height",transform:sizingTransform}),maxHeight=style$1({prop:"maxHeight",transform:sizingTransform}),minHeight=style$1({prop:"minHeight",transform:sizingTransform});style$1({prop:"size",cssProperty:"width",transform:sizingTransform});style$1({prop:"size",cssProperty:"height",transform:sizingTransform});const boxSizing=style$1({prop:"boxSizing"});compose(width,maxWidth,minWidth,height,maxHeight,minHeight,boxSizing);const defaultSxConfig={border:{themeKey:"borders",transform:borderTransform},borderTop:{themeKey:"borders",transform:borderTransform},borderRight:{themeKey:"borders",transform:borderTransform},borderBottom:{themeKey:"borders",transform:borderTransform},borderLeft:{themeKey:"borders",transform:borderTransform},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:borderRadius},color:{themeKey:"palette",transform:paletteTransform},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:paletteTransform},backgroundColor:{themeKey:"palette",transform:paletteTransform},p:{style:padding},pt:{style:padding},pr:{style:padding},pb:{style:padding},pl:{style:padding},px:{style:padding},py:{style:padding},padding:{style:padding},paddingTop:{style:padding},paddingRight:{style:padding},paddingBottom:{style:padding},paddingLeft:{style:padding},paddingX:{style:padding},paddingY:{style:padding},paddingInline:{style:padding},paddingInlineStart:{style:padding},paddingInlineEnd:{style:padding},paddingBlock:{style:padding},paddingBlockStart:{style:padding},paddingBlockEnd:{style:padding},m:{style:margin},mt:{style:margin},mr:{style:margin},mb:{style:margin},ml:{style:margin},mx:{style:margin},my:{style:margin},margin:{style:margin},marginTop:{style:margin},marginRight:{style:margin},marginBottom:{style:margin},marginLeft:{style:margin},marginX:{style:margin},marginY:{style:margin},marginInline:{style:margin},marginInlineStart:{style:margin},marginInlineEnd:{style:margin},marginBlock:{style:margin},marginBlockStart:{style:margin},marginBlockEnd:{style:margin},displayPrint:{cssProperty:!1,transform:o=>({"@media print":{display:o}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:gap},rowGap:{style:rowGap},columnGap:{style:columnGap},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:sizingTransform},maxWidth:{style:maxWidth},minWidth:{transform:sizingTransform},height:{transform:sizingTransform},maxHeight:{transform:sizingTransform},minHeight:{transform:sizingTransform},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};var defaultSxConfig$1=defaultSxConfig;function objectsHaveSameKeys(...o){const i=o.reduce((j,$)=>j.concat(Object.keys($)),[]),s=new Set(i);return o.every(j=>s.size===Object.keys(j).length)}function callIfFn(o,i){return typeof o=="function"?o(i):o}function unstable_createStyleFunctionSx(){function o(s,j,$,_e){const tt={[s]:j,theme:$},et=_e[s];if(!et)return{[s]:j};const{cssProperty:rt=s,themeKey:ot,transform:lt,style:dt}=et;if(j==null)return null;if(ot==="typography"&&j==="inherit")return{[s]:j};const at=getPath($,ot)||{};return dt?dt(tt):handleBreakpoints(tt,j,st=>{let ut=getStyleValue$1(at,lt,st);return st===ut&&typeof st=="string"&&(ut=getStyleValue$1(at,lt,`${s}${st==="default"?"":capitalize$1(st)}`,st)),rt===!1?ut:{[rt]:ut}})}function i(s){var j;const{sx:$,theme:_e={}}=s||{};if(!$)return null;const tt=(j=_e.unstable_sxConfig)!=null?j:defaultSxConfig$1;function et(rt){let ot=rt;if(typeof rt=="function")ot=rt(_e);else if(typeof rt!="object")return rt;if(!ot)return null;const lt=createEmptyBreakpointObject(_e.breakpoints),dt=Object.keys(lt);let at=lt;return Object.keys(ot).forEach(ct=>{const st=callIfFn(ot[ct],_e);if(st!=null)if(typeof st=="object")if(tt[ct])at=merge(at,o(ct,st,_e,tt));else{const ut=handleBreakpoints({theme:_e},st,mt=>({[ct]:mt}));objectsHaveSameKeys(ut,st)?at[ct]=i({sx:st,theme:_e}):at=merge(at,ut)}else at=merge(at,o(ct,st,_e,tt))}),removeUnusedBreakpoints(dt,at)}return Array.isArray($)?$.map(et):et($)}return i}const styleFunctionSx=unstable_createStyleFunctionSx();styleFunctionSx.filterProps=["sx"];var styleFunctionSx$1=styleFunctionSx;const _excluded$J=["breakpoints","palette","spacing","shape"];function createTheme$1(o={},...i){const{breakpoints:s={},palette:j={},spacing:$,shape:_e={}}=o,tt=_objectWithoutPropertiesLoose$1(o,_excluded$J),et=createBreakpoints(s),rt=createSpacing($);let ot=deepmerge({breakpoints:et,direction:"ltr",components:{},palette:_extends({mode:"light"},j),spacing:rt,shape:_extends({},shape$1,_e)},tt);return ot=i.reduce((lt,dt)=>deepmerge(lt,dt),ot),ot.unstable_sxConfig=_extends({},defaultSxConfig$1,tt==null?void 0:tt.unstable_sxConfig),ot.unstable_sx=function(dt){return styleFunctionSx$1({sx:dt,theme:this})},ot}function isObjectEmpty(o){return Object.keys(o).length===0}function useTheme$3(o=null){const i=react.exports.useContext(ThemeContext$2);return!i||isObjectEmpty(i)?o:i}const systemDefaultTheme$1=createTheme$1();function useTheme$2(o=systemDefaultTheme$1){return useTheme$3(o)}function GlobalStyles$1({styles:o,themeId:i,defaultTheme:s={}}){const j=useTheme$2(s),$=typeof o=="function"?o(i&&j[i]||j):o;return jsx(GlobalStyles$2,{styles:$})}const _excluded$I=["sx"],splitProps=o=>{var i,s;const j={systemProps:{},otherProps:{}},$=(i=o==null||(s=o.theme)==null?void 0:s.unstable_sxConfig)!=null?i:defaultSxConfig$1;return Object.keys(o).forEach(_e=>{$[_e]?j.systemProps[_e]=o[_e]:j.otherProps[_e]=o[_e]}),j};function extendSxProp(o){const{sx:i}=o,s=_objectWithoutPropertiesLoose$1(o,_excluded$I),{systemProps:j,otherProps:$}=splitProps(s);let _e;return Array.isArray(i)?_e=[j,...i]:typeof i=="function"?_e=(...tt)=>{const et=i(...tt);return isPlainObject(et)?_extends({},j,et):j}:_e=_extends({},j,i),_extends({},$,{sx:_e})}function r(o){var i,s,j="";if(typeof o=="string"||typeof o=="number")j+=o;else if(typeof o=="object")if(Array.isArray(o))for(i=0;iet!=="theme"&&et!=="sx"&&et!=="as"})(styleFunctionSx$1);return react.exports.forwardRef(function(rt,ot){const lt=useTheme$2(s),dt=extendSxProp(rt),{className:at,component:ct="div"}=dt,st=_objectWithoutPropertiesLoose$1(dt,_excluded$H);return jsx(_e,_extends({as:ct,ref:ot,className:clsx(at,$?$(j):j),theme:i&<[i]||lt},st))})}const _excluded$G=["variant"];function isEmpty$3(o){return o.length===0}function propsToClassKey(o){const{variant:i}=o,s=_objectWithoutPropertiesLoose$1(o,_excluded$G);let j=i||"";return Object.keys(s).sort().forEach($=>{$==="color"?j+=isEmpty$3(j)?o[$]:capitalize$1(o[$]):j+=`${isEmpty$3(j)?$:capitalize$1($)}${capitalize$1(o[$].toString())}`}),j}const _excluded$F=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function isEmpty$2(o){return Object.keys(o).length===0}function isStringTag(o){return typeof o=="string"&&o.charCodeAt(0)>96}const getStyleOverrides=(o,i)=>i.components&&i.components[o]&&i.components[o].styleOverrides?i.components[o].styleOverrides:null,getVariantStyles=(o,i)=>{let s=[];i&&i.components&&i.components[o]&&i.components[o].variants&&(s=i.components[o].variants);const j={};return s.forEach($=>{const _e=propsToClassKey($.props);j[_e]=$.style}),j},variantsResolver=(o,i,s,j)=>{var $;const{ownerState:_e={}}=o,tt=[],et=s==null||($=s.components)==null||($=$[j])==null?void 0:$.variants;return et&&et.forEach(rt=>{let ot=!0;Object.keys(rt.props).forEach(lt=>{_e[lt]!==rt.props[lt]&&o[lt]!==rt.props[lt]&&(ot=!1)}),ot&&tt.push(i[propsToClassKey(rt.props)])}),tt};function shouldForwardProp(o){return o!=="ownerState"&&o!=="theme"&&o!=="sx"&&o!=="as"}const systemDefaultTheme=createTheme$1();function resolveTheme({defaultTheme:o,theme:i,themeId:s}){return isEmpty$2(i)?o:i[s]||i}function createStyled(o={}){const{themeId:i,defaultTheme:s=systemDefaultTheme,rootShouldForwardProp:j=shouldForwardProp,slotShouldForwardProp:$=shouldForwardProp}=o,_e=tt=>styleFunctionSx$1(_extends({},tt,{theme:resolveTheme(_extends({},tt,{defaultTheme:s,themeId:i}))}));return _e.__mui_systemSx=!0,(tt,et={})=>{internal_processStyles(tt,yt=>yt.filter(ft=>!(ft!=null&&ft.__mui_systemSx)));const{name:rt,slot:ot,skipVariantsResolver:lt,skipSx:dt,overridesResolver:at}=et,ct=_objectWithoutPropertiesLoose$1(et,_excluded$F),st=lt!==void 0?lt:ot&&ot!=="Root"||!1,ut=dt||!1;let mt,bt=shouldForwardProp;ot==="Root"?bt=j:ot?bt=$:isStringTag(tt)&&(bt=void 0);const Tt=styled$2(tt,_extends({shouldForwardProp:bt,label:mt},ct)),ht=(yt,...ft)=>{const Ct=ft?ft.map(vt=>typeof vt=="function"&&vt.__emotion_real!==vt?At=>vt(_extends({},At,{theme:resolveTheme(_extends({},At,{defaultTheme:s,themeId:i}))})):vt):[];let Ft=yt;rt&&at&&Ct.push(vt=>{const At=resolveTheme(_extends({},vt,{defaultTheme:s,themeId:i})),Et=getStyleOverrides(rt,At);if(Et){const Mt={};return Object.entries(Et).forEach(([Lt,kt])=>{Mt[Lt]=typeof kt=="function"?kt(_extends({},vt,{theme:At})):kt}),at(vt,Mt)}return null}),rt&&!st&&Ct.push(vt=>{const At=resolveTheme(_extends({},vt,{defaultTheme:s,themeId:i}));return variantsResolver(vt,getVariantStyles(rt,At),At,rt)}),ut||Ct.push(_e);const Ut=Ct.length-ft.length;if(Array.isArray(yt)&&Ut>0){const vt=new Array(Ut).fill("");Ft=[...yt,...vt],Ft.raw=[...yt.raw,...vt]}else typeof yt=="function"&&yt.__emotion_real!==yt&&(Ft=vt=>yt(_extends({},vt,{theme:resolveTheme(_extends({},vt,{defaultTheme:s,themeId:i}))})));const wt=Tt(Ft,...Ct);return tt.muiName&&(wt.muiName=tt.muiName),wt};return Tt.withConfig&&(ht.withConfig=Tt.withConfig),ht}}function getThemeProps(o){const{theme:i,name:s,props:j}=o;return!i||!i.components||!i.components[s]||!i.components[s].defaultProps?j:resolveProps(i.components[s].defaultProps,j)}function useThemeProps$1({props:o,name:i,defaultTheme:s,themeId:j}){let $=useTheme$2(s);return j&&($=$[j]||$),getThemeProps({theme:$,name:i,props:o})}function clamp(o,i=0,s=1){return Math.min(Math.max(i,o),s)}function hexToRgb(o){o=o.slice(1);const i=new RegExp(`.{1,${o.length>=6?2:1}}`,"g");let s=o.match(i);return s&&s[0].length===1&&(s=s.map(j=>j+j)),s?`rgb${s.length===4?"a":""}(${s.map((j,$)=>$<3?parseInt(j,16):Math.round(parseInt(j,16)/255*1e3)/1e3).join(", ")})`:""}function decomposeColor(o){if(o.type)return o;if(o.charAt(0)==="#")return decomposeColor(hexToRgb(o));const i=o.indexOf("("),s=o.substring(0,i);if(["rgb","rgba","hsl","hsla","color"].indexOf(s)===-1)throw new Error(formatMuiErrorMessage(9,o));let j=o.substring(i+1,o.length-1),$;if(s==="color"){if(j=j.split(" "),$=j.shift(),j.length===4&&j[3].charAt(0)==="/"&&(j[3]=j[3].slice(1)),["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf($)===-1)throw new Error(formatMuiErrorMessage(10,$))}else j=j.split(",");return j=j.map(_e=>parseFloat(_e)),{type:s,values:j,colorSpace:$}}function recomposeColor(o){const{type:i,colorSpace:s}=o;let{values:j}=o;return i.indexOf("rgb")!==-1?j=j.map(($,_e)=>_e<3?parseInt($,10):$):i.indexOf("hsl")!==-1&&(j[1]=`${j[1]}%`,j[2]=`${j[2]}%`),i.indexOf("color")!==-1?j=`${s} ${j.join(" ")}`:j=`${j.join(", ")}`,`${i}(${j})`}function hslToRgb(o){o=decomposeColor(o);const{values:i}=o,s=i[0],j=i[1]/100,$=i[2]/100,_e=j*Math.min($,1-$),tt=(ot,lt=(ot+s/30)%12)=>$-_e*Math.max(Math.min(lt-3,9-lt,1),-1);let et="rgb";const rt=[Math.round(tt(0)*255),Math.round(tt(8)*255),Math.round(tt(4)*255)];return o.type==="hsla"&&(et+="a",rt.push(i[3])),recomposeColor({type:et,values:rt})}function getLuminance(o){o=decomposeColor(o);let i=o.type==="hsl"||o.type==="hsla"?decomposeColor(hslToRgb(o)).values:o.values;return i=i.map(s=>(o.type!=="color"&&(s/=255),s<=.03928?s/12.92:((s+.055)/1.055)**2.4)),Number((.2126*i[0]+.7152*i[1]+.0722*i[2]).toFixed(3))}function getContrastRatio(o,i){const s=getLuminance(o),j=getLuminance(i);return(Math.max(s,j)+.05)/(Math.min(s,j)+.05)}function alpha(o,i){return o=decomposeColor(o),i=clamp(i),(o.type==="rgb"||o.type==="hsl")&&(o.type+="a"),o.type==="color"?o.values[3]=`/${i}`:o.values[3]=i,recomposeColor(o)}function darken(o,i){if(o=decomposeColor(o),i=clamp(i),o.type.indexOf("hsl")!==-1)o.values[2]*=1-i;else if(o.type.indexOf("rgb")!==-1||o.type.indexOf("color")!==-1)for(let s=0;s<3;s+=1)o.values[s]*=1-i;return recomposeColor(o)}function lighten(o,i){if(o=decomposeColor(o),i=clamp(i),o.type.indexOf("hsl")!==-1)o.values[2]+=(100-o.values[2])*i;else if(o.type.indexOf("rgb")!==-1)for(let s=0;s<3;s+=1)o.values[s]+=(255-o.values[s])*i;else if(o.type.indexOf("color")!==-1)for(let s=0;s<3;s+=1)o.values[s]+=(1-o.values[s])*i;return recomposeColor(o)}function emphasize(o,i=.15){return getLuminance(o)>.5?darken(o,i):lighten(o,i)}const ThemeContext=react.exports.createContext(null);var ThemeContext$1=ThemeContext;function useTheme$1(){return react.exports.useContext(ThemeContext$1)}const hasSymbol=typeof Symbol=="function"&&Symbol.for;var nested=hasSymbol?Symbol.for("mui.nested"):"__THEME_NESTED__";function mergeOuterLocalTheme(o,i){return typeof i=="function"?i(o):_extends({},o,i)}function ThemeProvider$2(o){const{children:i,theme:s}=o,j=useTheme$1(),$=react.exports.useMemo(()=>{const _e=j===null?s:mergeOuterLocalTheme(j,s);return _e!=null&&(_e[nested]=j!==null),_e},[s,j]);return jsx(ThemeContext$1.Provider,{value:$,children:i})}const EMPTY_THEME={};function useThemeScoping(o,i,s,j=!1){return react.exports.useMemo(()=>{const $=o&&i[o]||i;if(typeof s=="function"){const _e=s($),tt=o?_extends({},i,{[o]:_e}):_e;return j?()=>tt:tt}return o?_extends({},i,{[o]:s}):_extends({},i,s)},[o,i,s,j])}function ThemeProvider$1(o){const{children:i,theme:s,themeId:j}=o,$=useTheme$3(EMPTY_THEME),_e=useTheme$1()||EMPTY_THEME,tt=useThemeScoping(j,$,s),et=useThemeScoping(j,_e,s,!0);return jsx(ThemeProvider$2,{theme:et,children:jsx(ThemeContext$2.Provider,{value:tt,children:i})})}var THEME_ID="$$material";const _excluded$E=["theme"];function ThemeProvider(o){let{theme:i}=o,s=_objectWithoutPropertiesLoose$1(o,_excluded$E);const j=i[THEME_ID];return jsx(ThemeProvider$1,_extends({},s,{themeId:j?THEME_ID:void 0,theme:j||i}))}function createMixins(o,i){return _extends({toolbar:{minHeight:56,[o.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[o.up("sm")]:{minHeight:64}}},i)}const common={black:"#000",white:"#fff"};var common$1=common;const grey={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"};var grey$1=grey;const purple={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff"};var purple$1=purple;const red={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"};var red$1=red;const orange={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"};var orange$1=orange;const blue={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"};var blue$1=blue;const lightBlue={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea"};var lightBlue$1=lightBlue;const green={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"};var green$1=green;const _excluded$D=["mode","contrastThreshold","tonalOffset"],light={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:common$1.white,default:common$1.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}},dark={text:{primary:common$1.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:common$1.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function addLightOrDark(o,i,s,j){const $=j.light||j,_e=j.dark||j*1.5;o[i]||(o.hasOwnProperty(s)?o[i]=o[s]:i==="light"?o.light=lighten(o.main,$):i==="dark"&&(o.dark=darken(o.main,_e)))}function getDefaultPrimary(o="light"){return o==="dark"?{main:blue$1[200],light:blue$1[50],dark:blue$1[400]}:{main:blue$1[700],light:blue$1[400],dark:blue$1[800]}}function getDefaultSecondary(o="light"){return o==="dark"?{main:purple$1[200],light:purple$1[50],dark:purple$1[400]}:{main:purple$1[500],light:purple$1[300],dark:purple$1[700]}}function getDefaultError(o="light"){return o==="dark"?{main:red$1[500],light:red$1[300],dark:red$1[700]}:{main:red$1[700],light:red$1[400],dark:red$1[800]}}function getDefaultInfo(o="light"){return o==="dark"?{main:lightBlue$1[400],light:lightBlue$1[300],dark:lightBlue$1[700]}:{main:lightBlue$1[700],light:lightBlue$1[500],dark:lightBlue$1[900]}}function getDefaultSuccess(o="light"){return o==="dark"?{main:green$1[400],light:green$1[300],dark:green$1[700]}:{main:green$1[800],light:green$1[500],dark:green$1[900]}}function getDefaultWarning(o="light"){return o==="dark"?{main:orange$1[400],light:orange$1[300],dark:orange$1[700]}:{main:"#ed6c02",light:orange$1[500],dark:orange$1[900]}}function createPalette(o){const{mode:i="light",contrastThreshold:s=3,tonalOffset:j=.2}=o,$=_objectWithoutPropertiesLoose$1(o,_excluded$D),_e=o.primary||getDefaultPrimary(i),tt=o.secondary||getDefaultSecondary(i),et=o.error||getDefaultError(i),rt=o.info||getDefaultInfo(i),ot=o.success||getDefaultSuccess(i),lt=o.warning||getDefaultWarning(i);function dt(ut){return getContrastRatio(ut,dark.text.primary)>=s?dark.text.primary:light.text.primary}const at=({color:ut,name:mt,mainShade:bt=500,lightShade:Tt=300,darkShade:ht=700})=>{if(ut=_extends({},ut),!ut.main&&ut[bt]&&(ut.main=ut[bt]),!ut.hasOwnProperty("main"))throw new Error(formatMuiErrorMessage(11,mt?` (${mt})`:"",bt));if(typeof ut.main!="string")throw new Error(formatMuiErrorMessage(12,mt?` (${mt})`:"",JSON.stringify(ut.main)));return addLightOrDark(ut,"light",Tt,j),addLightOrDark(ut,"dark",ht,j),ut.contrastText||(ut.contrastText=dt(ut.main)),ut},ct={dark,light};return deepmerge(_extends({common:_extends({},common$1),mode:i,primary:at({color:_e,name:"primary"}),secondary:at({color:tt,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:at({color:et,name:"error"}),warning:at({color:lt,name:"warning"}),info:at({color:rt,name:"info"}),success:at({color:ot,name:"success"}),grey:grey$1,contrastThreshold:s,getContrastText:dt,augmentColor:at,tonalOffset:j},ct[i]),$)}const _excluded$C=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];function round(o){return Math.round(o*1e5)/1e5}const caseAllCaps={textTransform:"uppercase"},defaultFontFamily='"Roboto", "Helvetica", "Arial", sans-serif';function createTypography(o,i){const s=typeof i=="function"?i(o):i,{fontFamily:j=defaultFontFamily,fontSize:$=14,fontWeightLight:_e=300,fontWeightRegular:tt=400,fontWeightMedium:et=500,fontWeightBold:rt=700,htmlFontSize:ot=16,allVariants:lt,pxToRem:dt}=s,at=_objectWithoutPropertiesLoose$1(s,_excluded$C),ct=$/14,st=dt||(bt=>`${bt/ot*ct}rem`),ut=(bt,Tt,ht,yt,ft)=>_extends({fontFamily:j,fontWeight:bt,fontSize:st(Tt),lineHeight:ht},j===defaultFontFamily?{letterSpacing:`${round(yt/Tt)}em`}:{},ft,lt),mt={h1:ut(_e,96,1.167,-1.5),h2:ut(_e,60,1.2,-.5),h3:ut(tt,48,1.167,0),h4:ut(tt,34,1.235,.25),h5:ut(tt,24,1.334,0),h6:ut(et,20,1.6,.15),subtitle1:ut(tt,16,1.75,.15),subtitle2:ut(et,14,1.57,.1),body1:ut(tt,16,1.5,.15),body2:ut(tt,14,1.43,.15),button:ut(et,14,1.75,.4,caseAllCaps),caption:ut(tt,12,1.66,.4),overline:ut(tt,12,2.66,1,caseAllCaps),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return deepmerge(_extends({htmlFontSize:ot,pxToRem:st,fontFamily:j,fontSize:$,fontWeightLight:_e,fontWeightRegular:tt,fontWeightMedium:et,fontWeightBold:rt},mt),at,{clone:!1})}const shadowKeyUmbraOpacity=.2,shadowKeyPenumbraOpacity=.14,shadowAmbientShadowOpacity=.12;function createShadow(...o){return[`${o[0]}px ${o[1]}px ${o[2]}px ${o[3]}px rgba(0,0,0,${shadowKeyUmbraOpacity})`,`${o[4]}px ${o[5]}px ${o[6]}px ${o[7]}px rgba(0,0,0,${shadowKeyPenumbraOpacity})`,`${o[8]}px ${o[9]}px ${o[10]}px ${o[11]}px rgba(0,0,0,${shadowAmbientShadowOpacity})`].join(",")}const shadows=["none",createShadow(0,2,1,-1,0,1,1,0,0,1,3,0),createShadow(0,3,1,-2,0,2,2,0,0,1,5,0),createShadow(0,3,3,-2,0,3,4,0,0,1,8,0),createShadow(0,2,4,-1,0,4,5,0,0,1,10,0),createShadow(0,3,5,-1,0,5,8,0,0,1,14,0),createShadow(0,3,5,-1,0,6,10,0,0,1,18,0),createShadow(0,4,5,-2,0,7,10,1,0,2,16,1),createShadow(0,5,5,-3,0,8,10,1,0,3,14,2),createShadow(0,5,6,-3,0,9,12,1,0,3,16,2),createShadow(0,6,6,-3,0,10,14,1,0,4,18,3),createShadow(0,6,7,-4,0,11,15,1,0,4,20,3),createShadow(0,7,8,-4,0,12,17,2,0,5,22,4),createShadow(0,7,8,-4,0,13,19,2,0,5,24,4),createShadow(0,7,9,-4,0,14,21,2,0,5,26,4),createShadow(0,8,9,-5,0,15,22,2,0,6,28,5),createShadow(0,8,10,-5,0,16,24,2,0,6,30,5),createShadow(0,8,11,-5,0,17,26,2,0,6,32,5),createShadow(0,9,11,-5,0,18,28,2,0,7,34,6),createShadow(0,9,12,-6,0,19,29,2,0,7,36,6),createShadow(0,10,13,-6,0,20,31,3,0,8,38,7),createShadow(0,10,13,-6,0,21,33,3,0,8,40,7),createShadow(0,10,14,-6,0,22,35,3,0,8,42,7),createShadow(0,11,14,-7,0,23,36,3,0,9,44,8),createShadow(0,11,15,-7,0,24,38,3,0,9,46,8)];var shadows$1=shadows;const _excluded$B=["duration","easing","delay"],easing={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},duration={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function formatMs(o){return`${Math.round(o)}ms`}function getAutoHeightDuration(o){if(!o)return 0;const i=o/36;return Math.round((4+15*i**.25+i/5)*10)}function createTransitions(o){const i=_extends({},easing,o.easing),s=_extends({},duration,o.duration);return _extends({getAutoHeightDuration,create:($=["all"],_e={})=>{const{duration:tt=s.standard,easing:et=i.easeInOut,delay:rt=0}=_e;return _objectWithoutPropertiesLoose$1(_e,_excluded$B),(Array.isArray($)?$:[$]).map(ot=>`${ot} ${typeof tt=="string"?tt:formatMs(tt)} ${et} ${typeof rt=="string"?rt:formatMs(rt)}`).join(",")}},o,{easing:i,duration:s})}const zIndex={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};var zIndex$1=zIndex;const _excluded$A=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function createTheme(o={},...i){const{mixins:s={},palette:j={},transitions:$={},typography:_e={}}=o,tt=_objectWithoutPropertiesLoose$1(o,_excluded$A);if(o.vars)throw new Error(formatMuiErrorMessage(18));const et=createPalette(j),rt=createTheme$1(o);let ot=deepmerge(rt,{mixins:createMixins(rt.breakpoints,s),palette:et,shadows:shadows$1.slice(),typography:createTypography(et,_e),transitions:createTransitions($),zIndex:_extends({},zIndex$1)});return ot=deepmerge(ot,tt),ot=i.reduce((lt,dt)=>deepmerge(lt,dt),ot),ot.unstable_sxConfig=_extends({},defaultSxConfig$1,tt==null?void 0:tt.unstable_sxConfig),ot.unstable_sx=function(dt){return styleFunctionSx$1({sx:dt,theme:this})},ot}const defaultTheme$2=createTheme();var defaultTheme$3=defaultTheme$2;function useThemeProps({props:o,name:i}){return useThemeProps$1({props:o,name:i,defaultTheme:defaultTheme$3,themeId:THEME_ID})}function GlobalStyles(o){return jsx(GlobalStyles$1,_extends({},o,{defaultTheme:defaultTheme$3,themeId:THEME_ID}))}const html=(o,i)=>_extends({WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",boxSizing:"border-box",WebkitTextSizeAdjust:"100%"},i&&!o.vars&&{colorScheme:o.palette.mode}),body=o=>_extends({color:(o.vars||o).palette.text.primary},o.typography.body1,{backgroundColor:(o.vars||o).palette.background.default,"@media print":{backgroundColor:(o.vars||o).palette.common.white}}),styles$3=(o,i=!1)=>{var s;const j={};i&&o.colorSchemes&&Object.entries(o.colorSchemes).forEach(([tt,et])=>{var rt;j[o.getColorSchemeSelector(tt).replace(/\s*&/,"")]={colorScheme:(rt=et.palette)==null?void 0:rt.mode}});let $=_extends({html:html(o,i),"*, *::before, *::after":{boxSizing:"inherit"},"strong, b":{fontWeight:o.typography.fontWeightBold},body:_extends({margin:0},body(o),{"&::backdrop":{backgroundColor:(o.vars||o).palette.background.default}})},j);const _e=(s=o.components)==null||(s=s.MuiCssBaseline)==null?void 0:s.styleOverrides;return _e&&($=[$,_e]),$};function CssBaseline(o){const i=useThemeProps({props:o,name:"MuiCssBaseline"}),{children:s,enableColorScheme:j=!1}=i;return jsxs(react.exports.Fragment,{children:[jsx(GlobalStyles,{styles:$=>styles$3($,j)}),s]})}function useTheme(){const o=useTheme$2(defaultTheme$3);return o[THEME_ID]||o}const rootShouldForwardProp=o=>shouldForwardProp(o)&&o!=="classes",slotShouldForwardProp=shouldForwardProp,styled=createStyled({themeId:THEME_ID,defaultTheme:defaultTheme$3,rootShouldForwardProp});var styled$1=styled;const getOverlayAlpha=o=>{let i;return o<1?i=5.11916*o**2:i=4.5*Math.log(o+1)+2,(i/100).toFixed(2)};var getOverlayAlpha$1=getOverlayAlpha;function isHostComponent(o){return typeof o=="string"}function appendOwnerState(o,i,s){return o===void 0||isHostComponent(o)?i:_extends({},i,{ownerState:_extends({},i.ownerState,s)})}const defaultContextValue={disableDefaultClasses:!1},ClassNameConfiguratorContext=react.exports.createContext(defaultContextValue);function useClassNamesOverride(o){const{disableDefaultClasses:i}=react.exports.useContext(ClassNameConfiguratorContext);return s=>i?"":o(s)}function extractEventHandlers(o,i=[]){if(o===void 0)return{};const s={};return Object.keys(o).filter(j=>j.match(/^on[A-Z]/)&&typeof o[j]=="function"&&!i.includes(j)).forEach(j=>{s[j]=o[j]}),s}function resolveComponentProps(o,i,s){return typeof o=="function"?o(i,s):o}function omitEventHandlers(o){if(o===void 0)return{};const i={};return Object.keys(o).filter(s=>!(s.match(/^on[A-Z]/)&&typeof o[s]=="function")).forEach(s=>{i[s]=o[s]}),i}function mergeSlotProps(o){const{getSlotProps:i,additionalProps:s,externalSlotProps:j,externalForwardedProps:$,className:_e}=o;if(!i){const ct=clsx($==null?void 0:$.className,j==null?void 0:j.className,_e,s==null?void 0:s.className),st=_extends({},s==null?void 0:s.style,$==null?void 0:$.style,j==null?void 0:j.style),ut=_extends({},s,$,j);return ct.length>0&&(ut.className=ct),Object.keys(st).length>0&&(ut.style=st),{props:ut,internalRef:void 0}}const tt=extractEventHandlers(_extends({},$,j)),et=omitEventHandlers(j),rt=omitEventHandlers($),ot=i(tt),lt=clsx(ot==null?void 0:ot.className,s==null?void 0:s.className,_e,$==null?void 0:$.className,j==null?void 0:j.className),dt=_extends({},ot==null?void 0:ot.style,s==null?void 0:s.style,$==null?void 0:$.style,j==null?void 0:j.style),at=_extends({},ot,s,rt,et);return lt.length>0&&(at.className=lt),Object.keys(dt).length>0&&(at.style=dt),{props:at,internalRef:ot.ref}}const _excluded$z=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function useSlotProps(o){var i;const{elementType:s,externalSlotProps:j,ownerState:$,skipResolvingSlotProps:_e=!1}=o,tt=_objectWithoutPropertiesLoose$1(o,_excluded$z),et=_e?{}:resolveComponentProps(j,$),{props:rt,internalRef:ot}=mergeSlotProps(_extends({},tt,{externalSlotProps:et})),lt=useForkRef(ot,et==null?void 0:et.ref,(i=o.additionalProps)==null?void 0:i.ref);return appendOwnerState(s,_extends({},rt,{ref:lt}),$)}function mapEventPropToEvent(o){return o.substring(2).toLowerCase()}function clickedRootScrollbar(o,i){return i.documentElement.clientWidth(setTimeout(()=>{rt.current=!0},0),()=>{rt.current=!1}),[]);const lt=useForkRef(i.ref,et),dt=useEventCallback(st=>{const ut=ot.current;ot.current=!1;const mt=ownerDocument(et.current);if(!rt.current||!et.current||"clientX"in st&&clickedRootScrollbar(st,mt))return;if(tt.current){tt.current=!1;return}let bt;st.composedPath?bt=st.composedPath().indexOf(et.current)>-1:bt=!mt.documentElement.contains(st.target)||et.current.contains(st.target),!bt&&(s||!ut)&&$(st)}),at=st=>ut=>{ot.current=!0;const mt=i.props[st];mt&&mt(ut)},ct={ref:lt};return _e!==!1&&(ct[_e]=at(_e)),react.exports.useEffect(()=>{if(_e!==!1){const st=mapEventPropToEvent(_e),ut=ownerDocument(et.current),mt=()=>{tt.current=!0};return ut.addEventListener(st,dt),ut.addEventListener("touchmove",mt),()=>{ut.removeEventListener(st,dt),ut.removeEventListener("touchmove",mt)}}},[dt,_e]),j!==!1&&(ct[j]=at(j)),react.exports.useEffect(()=>{if(j!==!1){const st=mapEventPropToEvent(j),ut=ownerDocument(et.current);return ut.addEventListener(st,dt),()=>{ut.removeEventListener(st,dt)}}},[dt,j]),jsx(react.exports.Fragment,{children:react.exports.cloneElement(i,ct)})}const candidatesSelector=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function getTabIndex(o){const i=parseInt(o.getAttribute("tabindex")||"",10);return Number.isNaN(i)?o.contentEditable==="true"||(o.nodeName==="AUDIO"||o.nodeName==="VIDEO"||o.nodeName==="DETAILS")&&o.getAttribute("tabindex")===null?0:o.tabIndex:i}function isNonTabbableRadio(o){if(o.tagName!=="INPUT"||o.type!=="radio"||!o.name)return!1;const i=j=>o.ownerDocument.querySelector(`input[type="radio"]${j}`);let s=i(`[name="${o.name}"]:checked`);return s||(s=i(`[name="${o.name}"]`)),s!==o}function isNodeMatchingSelectorFocusable(o){return!(o.disabled||o.tagName==="INPUT"&&o.type==="hidden"||isNonTabbableRadio(o))}function defaultGetTabbable(o){const i=[],s=[];return Array.from(o.querySelectorAll(candidatesSelector)).forEach((j,$)=>{const _e=getTabIndex(j);_e===-1||!isNodeMatchingSelectorFocusable(j)||(_e===0?i.push(j):s.push({documentOrder:$,tabIndex:_e,node:j}))}),s.sort((j,$)=>j.tabIndex===$.tabIndex?j.documentOrder-$.documentOrder:j.tabIndex-$.tabIndex).map(j=>j.node).concat(i)}function defaultIsEnabled(){return!0}function FocusTrap(o){const{children:i,disableAutoFocus:s=!1,disableEnforceFocus:j=!1,disableRestoreFocus:$=!1,getTabbable:_e=defaultGetTabbable,isEnabled:tt=defaultIsEnabled,open:et}=o,rt=react.exports.useRef(!1),ot=react.exports.useRef(null),lt=react.exports.useRef(null),dt=react.exports.useRef(null),at=react.exports.useRef(null),ct=react.exports.useRef(!1),st=react.exports.useRef(null),ut=useForkRef(i.ref,st),mt=react.exports.useRef(null);react.exports.useEffect(()=>{!et||!st.current||(ct.current=!s)},[s,et]),react.exports.useEffect(()=>{if(!et||!st.current)return;const ht=ownerDocument(st.current);return st.current.contains(ht.activeElement)||(st.current.hasAttribute("tabIndex")||st.current.setAttribute("tabIndex","-1"),ct.current&&st.current.focus()),()=>{$||(dt.current&&dt.current.focus&&(rt.current=!0,dt.current.focus()),dt.current=null)}},[et]),react.exports.useEffect(()=>{if(!et||!st.current)return;const ht=ownerDocument(st.current),yt=Ft=>{const{current:Ut}=st;if(Ut!==null){if(!ht.hasFocus()||j||!tt()||rt.current){rt.current=!1;return}if(!Ut.contains(ht.activeElement)){if(Ft&&at.current!==Ft.target||ht.activeElement!==at.current)at.current=null;else if(at.current!==null)return;if(!ct.current)return;let At=[];if((ht.activeElement===ot.current||ht.activeElement===lt.current)&&(At=_e(st.current)),At.length>0){var wt,vt;const Et=Boolean(((wt=mt.current)==null?void 0:wt.shiftKey)&&((vt=mt.current)==null?void 0:vt.key)==="Tab"),Mt=At[0],Lt=At[At.length-1];typeof Mt!="string"&&typeof Lt!="string"&&(Et?Lt.focus():Mt.focus())}else Ut.focus()}}},ft=Ft=>{mt.current=Ft,!(j||!tt()||Ft.key!=="Tab")&&ht.activeElement===st.current&&Ft.shiftKey&&(rt.current=!0,lt.current&<.current.focus())};ht.addEventListener("focusin",yt),ht.addEventListener("keydown",ft,!0);const Ct=setInterval(()=>{ht.activeElement&&ht.activeElement.tagName==="BODY"&&yt(null)},50);return()=>{clearInterval(Ct),ht.removeEventListener("focusin",yt),ht.removeEventListener("keydown",ft,!0)}},[s,j,$,tt,et,_e]);const bt=ht=>{dt.current===null&&(dt.current=ht.relatedTarget),ct.current=!0,at.current=ht.target;const yt=i.props.onFocus;yt&&yt(ht)},Tt=ht=>{dt.current===null&&(dt.current=ht.relatedTarget),ct.current=!0};return jsxs(react.exports.Fragment,{children:[jsx("div",{tabIndex:et?0:-1,onFocus:Tt,ref:ot,"data-testid":"sentinelStart"}),react.exports.cloneElement(i,{ref:ut,onFocus:bt}),jsx("div",{tabIndex:et?0:-1,onFocus:Tt,ref:lt,"data-testid":"sentinelEnd"})]})}function getContainer$1(o){return typeof o=="function"?o():o}const Portal=react.exports.forwardRef(function(i,s){const{children:j,container:$,disablePortal:_e=!1}=i,[tt,et]=react.exports.useState(null),rt=useForkRef(react.exports.isValidElement(j)?j.ref:null,s);if(useEnhancedEffect$1(()=>{_e||et(getContainer$1($)||document.body)},[$,_e]),useEnhancedEffect$1(()=>{if(tt&&!_e)return setRef(s,tt),()=>{setRef(s,null)}},[s,tt,_e]),_e){if(react.exports.isValidElement(j)){const ot={ref:rt};return react.exports.cloneElement(j,ot)}return jsx(react.exports.Fragment,{children:j})}return jsx(react.exports.Fragment,{children:tt&&reactDom.exports.createPortal(j,tt)})});var Portal$1=Portal;function isOverflowing(o){const i=ownerDocument(o);return i.body===o?ownerWindow(o).innerWidth>i.documentElement.clientWidth:o.scrollHeight>o.clientHeight}function ariaHidden(o,i){i?o.setAttribute("aria-hidden","true"):o.removeAttribute("aria-hidden")}function getPaddingRight(o){return parseInt(ownerWindow(o).getComputedStyle(o).paddingRight,10)||0}function isAriaHiddenForbiddenOnElement(o){const s=["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].indexOf(o.tagName)!==-1,j=o.tagName==="INPUT"&&o.getAttribute("type")==="hidden";return s||j}function ariaHiddenSiblings(o,i,s,j,$){const _e=[i,s,...j];[].forEach.call(o.children,tt=>{const et=_e.indexOf(tt)===-1,rt=!isAriaHiddenForbiddenOnElement(tt);et&&rt&&ariaHidden(tt,$)})}function findIndexOf(o,i){let s=-1;return o.some((j,$)=>i(j)?(s=$,!0):!1),s}function handleContainer(o,i){const s=[],j=o.container;if(!i.disableScrollLock){if(isOverflowing(j)){const tt=getScrollbarSize(ownerDocument(j));s.push({value:j.style.paddingRight,property:"padding-right",el:j}),j.style.paddingRight=`${getPaddingRight(j)+tt}px`;const et=ownerDocument(j).querySelectorAll(".mui-fixed");[].forEach.call(et,rt=>{s.push({value:rt.style.paddingRight,property:"padding-right",el:rt}),rt.style.paddingRight=`${getPaddingRight(rt)+tt}px`})}let _e;if(j.parentNode instanceof DocumentFragment)_e=ownerDocument(j).body;else{const tt=j.parentElement,et=ownerWindow(j);_e=(tt==null?void 0:tt.nodeName)==="HTML"&&et.getComputedStyle(tt).overflowY==="scroll"?tt:j}s.push({value:_e.style.overflow,property:"overflow",el:_e},{value:_e.style.overflowX,property:"overflow-x",el:_e},{value:_e.style.overflowY,property:"overflow-y",el:_e}),_e.style.overflow="hidden"}return()=>{s.forEach(({value:_e,el:tt,property:et})=>{_e?tt.style.setProperty(et,_e):tt.style.removeProperty(et)})}}function getHiddenSiblings(o){const i=[];return[].forEach.call(o.children,s=>{s.getAttribute("aria-hidden")==="true"&&i.push(s)}),i}class ModalManager{constructor(){this.containers=void 0,this.modals=void 0,this.modals=[],this.containers=[]}add(i,s){let j=this.modals.indexOf(i);if(j!==-1)return j;j=this.modals.length,this.modals.push(i),i.modalRef&&ariaHidden(i.modalRef,!1);const $=getHiddenSiblings(s);ariaHiddenSiblings(s,i.mount,i.modalRef,$,!0);const _e=findIndexOf(this.containers,tt=>tt.container===s);return _e!==-1?(this.containers[_e].modals.push(i),j):(this.containers.push({modals:[i],container:s,restore:null,hiddenSiblings:$}),j)}mount(i,s){const j=findIndexOf(this.containers,_e=>_e.modals.indexOf(i)!==-1),$=this.containers[j];$.restore||($.restore=handleContainer($,s))}remove(i,s=!0){const j=this.modals.indexOf(i);if(j===-1)return j;const $=findIndexOf(this.containers,tt=>tt.modals.indexOf(i)!==-1),_e=this.containers[$];if(_e.modals.splice(_e.modals.indexOf(i),1),this.modals.splice(j,1),_e.modals.length===0)_e.restore&&_e.restore(),i.modalRef&&ariaHidden(i.modalRef,s),ariaHiddenSiblings(_e.container,i.mount,i.modalRef,_e.hiddenSiblings,!1),this.containers.splice($,1);else{const tt=_e.modals[_e.modals.length-1];tt.modalRef&&ariaHidden(tt.modalRef,!1)}return j}isTopModal(i){return this.modals.length>0&&this.modals[this.modals.length-1]===i}}function getModalUtilityClass(o){return generateUtilityClass("MuiModal",o)}generateUtilityClasses("MuiModal",["root","hidden","backdrop"]);const _excluded$y=["children","closeAfterTransition","container","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","manager","onBackdropClick","onClose","onKeyDown","open","onTransitionEnter","onTransitionExited","slotProps","slots"],useUtilityClasses$r=o=>{const{open:i,exited:s}=o;return composeClasses({root:["root",!i&&s&&"hidden"],backdrop:["backdrop"]},useClassNamesOverride(getModalUtilityClass))};function getContainer(o){return typeof o=="function"?o():o}function getHasTransition(o){return o?o.props.hasOwnProperty("in"):!1}const defaultManager=new ModalManager,Modal$2=react.exports.forwardRef(function(i,s){var j,$;const{children:_e,closeAfterTransition:tt=!1,container:et,disableAutoFocus:rt=!1,disableEnforceFocus:ot=!1,disableEscapeKeyDown:lt=!1,disablePortal:dt=!1,disableRestoreFocus:at=!1,disableScrollLock:ct=!1,hideBackdrop:st=!1,keepMounted:ut=!1,manager:mt=defaultManager,onBackdropClick:bt,onClose:Tt,onKeyDown:ht,open:yt,onTransitionEnter:ft,onTransitionExited:Ct,slotProps:Ft={},slots:Ut={}}=i,wt=_objectWithoutPropertiesLoose$1(i,_excluded$y),vt=mt,[At,Et]=react.exports.useState(!yt),Mt=react.exports.useRef({}),Lt=react.exports.useRef(null),kt=react.exports.useRef(null),Rt=useForkRef(kt,s),Ot=getHasTransition(_e),It=(j=i["aria-hidden"])!=null?j:!0,St=()=>ownerDocument(Lt.current),gt=()=>(Mt.current.modalRef=kt.current,Mt.current.mountNode=Lt.current,Mt.current),Bt=()=>{vt.mount(gt(),{disableScrollLock:ct}),kt.current&&(kt.current.scrollTop=0)},Dt=useEventCallback(()=>{const qt=getContainer(et)||St().body;vt.add(gt(),qt),kt.current&&Bt()}),Yt=react.exports.useCallback(()=>vt.isTopModal(gt()),[vt]),Xt=useEventCallback(qt=>{Lt.current=qt,!(!qt||!kt.current)&&(yt&&Yt()?Bt():ariaHidden(kt.current,It))}),Jt=react.exports.useCallback(()=>{vt.remove(gt(),It)},[vt,It]);react.exports.useEffect(()=>()=>{Jt()},[Jt]),react.exports.useEffect(()=>{yt?Dt():(!Ot||!tt)&&Jt()},[yt,Jt,Ot,tt,Dt]);const zt=_extends({},i,{closeAfterTransition:tt,disableAutoFocus:rt,disableEnforceFocus:ot,disableEscapeKeyDown:lt,disablePortal:dt,disableRestoreFocus:at,disableScrollLock:ct,exited:At,hideBackdrop:st,keepMounted:ut}),Wt=useUtilityClasses$r(zt),xt=()=>{Et(!1),ft&&ft()},Pt=()=>{Et(!0),Ct&&Ct(),tt&&Jt()},$t=qt=>{qt.target===qt.currentTarget&&(bt&&bt(qt),Tt&&Tt(qt,"backdropClick"))},en=qt=>{ht&&ht(qt),!(qt.key!=="Escape"||!Yt())&&(lt||(qt.stopPropagation(),Tt&&Tt(qt,"escapeKeyDown")))},Zt={};_e.props.tabIndex===void 0&&(Zt.tabIndex="-1"),Ot&&(Zt.onEnter=createChainedFunction(xt,_e.props.onEnter),Zt.onExited=createChainedFunction(Pt,_e.props.onExited));const rn=($=Ut.root)!=null?$:"div",cn=useSlotProps({elementType:rn,externalSlotProps:Ft.root,externalForwardedProps:wt,additionalProps:{ref:Rt,role:"presentation",onKeyDown:en},className:Wt.root,ownerState:zt}),sn=Ut.backdrop,Ht=useSlotProps({elementType:sn,externalSlotProps:Ft.backdrop,additionalProps:{"aria-hidden":!0,onClick:$t,open:yt},className:Wt.backdrop,ownerState:zt});return!ut&&!yt&&(!Ot||At)?null:jsx(Portal$1,{ref:Xt,container:et,disablePortal:dt,children:jsxs(rn,_extends({},cn,{children:[!st&&sn?jsx(sn,_extends({},Ht)):null,jsx(FocusTrap,{disableEnforceFocus:ot,disableAutoFocus:rt,disableRestoreFocus:at,isEnabled:Yt,open:yt,children:react.exports.cloneElement(_e,Zt)})]}))})});var ModalUnstyled=Modal$2;function useSnackbar(o){const{autoHideDuration:i=null,disableWindowBlurListener:s=!1,onClose:j,open:$,resumeHideDuration:_e}=o,tt=react.exports.useRef();react.exports.useEffect(()=>{if(!$)return;function bt(Tt){Tt.defaultPrevented||(Tt.key==="Escape"||Tt.key==="Esc")&&(j==null||j(Tt,"escapeKeyDown"))}return document.addEventListener("keydown",bt),()=>{document.removeEventListener("keydown",bt)}},[$,j]);const et=useEventCallback((bt,Tt)=>{j==null||j(bt,Tt)}),rt=useEventCallback(bt=>{!j||bt==null||(clearTimeout(tt.current),tt.current=setTimeout(()=>{et(null,"timeout")},bt))});react.exports.useEffect(()=>($&&rt(i),()=>{clearTimeout(tt.current)}),[$,i,rt]);const ot=bt=>{j==null||j(bt,"clickaway")},lt=()=>{clearTimeout(tt.current)},dt=react.exports.useCallback(()=>{i!=null&&rt(_e!=null?_e:i*.5)},[i,_e,rt]),at=bt=>Tt=>{const ht=bt.onBlur;ht==null||ht(Tt),dt()},ct=bt=>Tt=>{const ht=bt.onFocus;ht==null||ht(Tt),lt()},st=bt=>Tt=>{const ht=bt.onMouseEnter;ht==null||ht(Tt),lt()},ut=bt=>Tt=>{const ht=bt.onMouseLeave;ht==null||ht(Tt),dt()};return react.exports.useEffect(()=>{if(!s&&$)return window.addEventListener("focus",dt),window.addEventListener("blur",lt),()=>{window.removeEventListener("focus",dt),window.removeEventListener("blur",lt)}},[s,dt,$]),{getRootProps:(bt={})=>{const Tt=extractEventHandlers(o),ht=_extends({},Tt,bt);return _extends({role:"presentation"},ht,{onBlur:at(ht),onFocus:ct(ht),onMouseEnter:st(ht),onMouseLeave:ut(ht)})},onClickAway:ot}}const _excluded$x=["onChange","maxRows","minRows","style","value"];function getStyleValue(o){return parseInt(o,10)||0}const styles$2={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function isEmpty$1(o){return o==null||Object.keys(o).length===0||o.outerHeightStyle===0&&!o.overflow}const TextareaAutosize=react.exports.forwardRef(function(i,s){const{onChange:j,maxRows:$,minRows:_e=1,style:tt,value:et}=i,rt=_objectWithoutPropertiesLoose$1(i,_excluded$x),{current:ot}=react.exports.useRef(et!=null),lt=react.exports.useRef(null),dt=useForkRef(s,lt),at=react.exports.useRef(null),ct=react.exports.useRef(0),[st,ut]=react.exports.useState({outerHeightStyle:0}),mt=react.exports.useCallback(()=>{const ft=lt.current,Ft=ownerWindow(ft).getComputedStyle(ft);if(Ft.width==="0px")return{outerHeightStyle:0};const Ut=at.current;Ut.style.width=Ft.width,Ut.value=ft.value||i.placeholder||"x",Ut.value.slice(-1)===` -`&&(Ut.value+=" ");const wt=Ft.boxSizing,vt=getStyleValue(Ft.paddingBottom)+getStyleValue(Ft.paddingTop),At=getStyleValue(Ft.borderBottomWidth)+getStyleValue(Ft.borderTopWidth),Et=Ut.scrollHeight;Ut.value="x";const Mt=Ut.scrollHeight;let Lt=Et;_e&&(Lt=Math.max(Number(_e)*Mt,Lt)),$&&(Lt=Math.min(Number($)*Mt,Lt)),Lt=Math.max(Lt,Mt);const kt=Lt+(wt==="border-box"?vt+At:0),Rt=Math.abs(Lt-Et)<=1;return{outerHeightStyle:kt,overflow:Rt}},[$,_e,i.placeholder]),bt=(ft,Ct)=>{const{outerHeightStyle:Ft,overflow:Ut}=Ct;return ct.current<20&&(Ft>0&&Math.abs((ft.outerHeightStyle||0)-Ft)>1||ft.overflow!==Ut)?(ct.current+=1,{overflow:Ut,outerHeightStyle:Ft}):ft},Tt=react.exports.useCallback(()=>{const ft=mt();isEmpty$1(ft)||ut(Ct=>bt(Ct,ft))},[mt]),ht=()=>{const ft=mt();isEmpty$1(ft)||reactDom.exports.flushSync(()=>{ut(Ct=>bt(Ct,ft))})};react.exports.useEffect(()=>{const ft=debounce(()=>{ct.current=0,lt.current&&ht()});let Ct;const Ft=lt.current,Ut=ownerWindow(Ft);return Ut.addEventListener("resize",ft),typeof ResizeObserver!="undefined"&&(Ct=new ResizeObserver(ft),Ct.observe(Ft)),()=>{ft.clear(),Ut.removeEventListener("resize",ft),Ct&&Ct.disconnect()}}),useEnhancedEffect$1(()=>{Tt()}),react.exports.useEffect(()=>{ct.current=0},[et]);const yt=ft=>{ct.current=0,ot||Tt(),j&&j(ft)};return jsxs(react.exports.Fragment,{children:[jsx("textarea",_extends({value:et,onChange:yt,ref:dt,rows:_e,style:_extends({height:st.outerHeightStyle,overflow:st.overflow?"hidden":void 0},tt)},rt)),jsx("textarea",{"aria-hidden":!0,className:i.className,readOnly:!0,ref:at,tabIndex:-1,style:_extends({},styles$2.shadow,tt,{paddingTop:0,paddingBottom:0})})]})});var TextareaAutosize$1=TextareaAutosize;function getSvgIconUtilityClass(o){return generateUtilityClass("MuiSvgIcon",o)}generateUtilityClasses("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const _excluded$w=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],useUtilityClasses$q=o=>{const{color:i,fontSize:s,classes:j}=o,$={root:["root",i!=="inherit"&&`color${capitalize$1(i)}`,`fontSize${capitalize$1(s)}`]};return composeClasses($,getSvgIconUtilityClass,j)},SvgIconRoot=styled$1("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(o,i)=>{const{ownerState:s}=o;return[i.root,s.color!=="inherit"&&i[`color${capitalize$1(s.color)}`],i[`fontSize${capitalize$1(s.fontSize)}`]]}})(({theme:o,ownerState:i})=>{var s,j,$,_e,tt,et,rt,ot,lt,dt,at,ct,st;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:i.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:(s=o.transitions)==null||(j=s.create)==null?void 0:j.call(s,"fill",{duration:($=o.transitions)==null||($=$.duration)==null?void 0:$.shorter}),fontSize:{inherit:"inherit",small:((_e=o.typography)==null||(tt=_e.pxToRem)==null?void 0:tt.call(_e,20))||"1.25rem",medium:((et=o.typography)==null||(rt=et.pxToRem)==null?void 0:rt.call(et,24))||"1.5rem",large:((ot=o.typography)==null||(lt=ot.pxToRem)==null?void 0:lt.call(ot,35))||"2.1875rem"}[i.fontSize],color:(dt=(at=(o.vars||o).palette)==null||(at=at[i.color])==null?void 0:at.main)!=null?dt:{action:(ct=(o.vars||o).palette)==null||(ct=ct.action)==null?void 0:ct.active,disabled:(st=(o.vars||o).palette)==null||(st=st.action)==null?void 0:st.disabled,inherit:void 0}[i.color]}}),SvgIcon=react.exports.forwardRef(function(i,s){const j=useThemeProps({props:i,name:"MuiSvgIcon"}),{children:$,className:_e,color:tt="inherit",component:et="svg",fontSize:rt="medium",htmlColor:ot,inheritViewBox:lt=!1,titleAccess:dt,viewBox:at="0 0 24 24"}=j,ct=_objectWithoutPropertiesLoose$1(j,_excluded$w),st=react.exports.isValidElement($)&&$.type==="svg",ut=_extends({},j,{color:tt,component:et,fontSize:rt,instanceFontSize:i.fontSize,inheritViewBox:lt,viewBox:at,hasSvgAsChild:st}),mt={};lt||(mt.viewBox=at);const bt=useUtilityClasses$q(ut);return jsxs(SvgIconRoot,_extends({as:et,className:clsx(bt.root,_e),focusable:"false",color:ot,"aria-hidden":dt?void 0:!0,role:dt?"img":void 0,ref:s},mt,ct,st&&$.props,{ownerState:ut,children:[st?$.props.children:$,dt?jsx("title",{children:dt}):null]}))});SvgIcon.muiName="SvgIcon";var SvgIcon$1=SvgIcon;function createSvgIcon(o,i){function s(j,$){return jsx(SvgIcon$1,_extends({"data-testid":`${i}Icon`,ref:$},j,{children:o}))}return s.muiName=SvgIcon$1.muiName,react.exports.memo(react.exports.forwardRef(s))}function _setPrototypeOf$1(o,i){return _setPrototypeOf$1=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(j,$){return j.__proto__=$,j},_setPrototypeOf$1(o,i)}function _inheritsLoose(o,i){o.prototype=Object.create(i.prototype),o.prototype.constructor=o,_setPrototypeOf$1(o,i)}var config={disabled:!1},TransitionGroupContext=React$1.createContext(null),forceReflow=function(i){return i.scrollTop},UNMOUNTED="unmounted",EXITED="exited",ENTERING="entering",ENTERED="entered",EXITING="exiting",Transition=function(o){_inheritsLoose(i,o);function i(j,$){var _e;_e=o.call(this,j,$)||this;var tt=$,et=tt&&!tt.isMounting?j.enter:j.appear,rt;return _e.appearStatus=null,j.in?et?(rt=EXITED,_e.appearStatus=ENTERING):rt=ENTERED:j.unmountOnExit||j.mountOnEnter?rt=UNMOUNTED:rt=EXITED,_e.state={status:rt},_e.nextCallback=null,_e}i.getDerivedStateFromProps=function($,_e){var tt=$.in;return tt&&_e.status===UNMOUNTED?{status:EXITED}:null};var s=i.prototype;return s.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},s.componentDidUpdate=function($){var _e=null;if($!==this.props){var tt=this.state.status;this.props.in?tt!==ENTERING&&tt!==ENTERED&&(_e=ENTERING):(tt===ENTERING||tt===ENTERED)&&(_e=EXITING)}this.updateStatus(!1,_e)},s.componentWillUnmount=function(){this.cancelNextCallback()},s.getTimeouts=function(){var $=this.props.timeout,_e,tt,et;return _e=tt=et=$,$!=null&&typeof $!="number"&&(_e=$.exit,tt=$.enter,et=$.appear!==void 0?$.appear:tt),{exit:_e,enter:tt,appear:et}},s.updateStatus=function($,_e){if($===void 0&&($=!1),_e!==null)if(this.cancelNextCallback(),_e===ENTERING){if(this.props.unmountOnExit||this.props.mountOnEnter){var tt=this.props.nodeRef?this.props.nodeRef.current:ReactDOM.findDOMNode(this);tt&&forceReflow(tt)}this.performEnter($)}else this.performExit();else this.props.unmountOnExit&&this.state.status===EXITED&&this.setState({status:UNMOUNTED})},s.performEnter=function($){var _e=this,tt=this.props.enter,et=this.context?this.context.isMounting:$,rt=this.props.nodeRef?[et]:[ReactDOM.findDOMNode(this),et],ot=rt[0],lt=rt[1],dt=this.getTimeouts(),at=et?dt.appear:dt.enter;if(!$&&!tt||config.disabled){this.safeSetState({status:ENTERED},function(){_e.props.onEntered(ot)});return}this.props.onEnter(ot,lt),this.safeSetState({status:ENTERING},function(){_e.props.onEntering(ot,lt),_e.onTransitionEnd(at,function(){_e.safeSetState({status:ENTERED},function(){_e.props.onEntered(ot,lt)})})})},s.performExit=function(){var $=this,_e=this.props.exit,tt=this.getTimeouts(),et=this.props.nodeRef?void 0:ReactDOM.findDOMNode(this);if(!_e||config.disabled){this.safeSetState({status:EXITED},function(){$.props.onExited(et)});return}this.props.onExit(et),this.safeSetState({status:EXITING},function(){$.props.onExiting(et),$.onTransitionEnd(tt.exit,function(){$.safeSetState({status:EXITED},function(){$.props.onExited(et)})})})},s.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},s.safeSetState=function($,_e){_e=this.setNextCallback(_e),this.setState($,_e)},s.setNextCallback=function($){var _e=this,tt=!0;return this.nextCallback=function(et){tt&&(tt=!1,_e.nextCallback=null,$(et))},this.nextCallback.cancel=function(){tt=!1},this.nextCallback},s.onTransitionEnd=function($,_e){this.setNextCallback(_e);var tt=this.props.nodeRef?this.props.nodeRef.current:ReactDOM.findDOMNode(this),et=$==null&&!this.props.addEndListener;if(!tt||et){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var rt=this.props.nodeRef?[this.nextCallback]:[tt,this.nextCallback],ot=rt[0],lt=rt[1];this.props.addEndListener(ot,lt)}$!=null&&setTimeout(this.nextCallback,$)},s.render=function(){var $=this.state.status;if($===UNMOUNTED)return null;var _e=this.props,tt=_e.children;_e.in,_e.mountOnEnter,_e.unmountOnExit,_e.appear,_e.enter,_e.exit,_e.timeout,_e.addEndListener,_e.onEnter,_e.onEntering,_e.onEntered,_e.onExit,_e.onExiting,_e.onExited,_e.nodeRef;var et=_objectWithoutPropertiesLoose$1(_e,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return React$1.createElement(TransitionGroupContext.Provider,{value:null},typeof tt=="function"?tt($,et):React$1.cloneElement(React$1.Children.only(tt),et))},i}(React$1.Component);Transition.contextType=TransitionGroupContext;Transition.propTypes={};function noop(){}Transition.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:noop,onEntering:noop,onEntered:noop,onExit:noop,onExiting:noop,onExited:noop};Transition.UNMOUNTED=UNMOUNTED;Transition.EXITED=EXITED;Transition.ENTERING=ENTERING;Transition.ENTERED=ENTERED;Transition.EXITING=EXITING;var Transition$1=Transition;function _assertThisInitialized$1(o){if(o===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return o}function getChildMapping(o,i){var s=function(_e){return i&&react.exports.isValidElement(_e)?i(_e):_e},j=Object.create(null);return o&&react.exports.Children.map(o,function($){return $}).forEach(function($){j[$.key]=s($)}),j}function mergeChildMappings(o,i){o=o||{},i=i||{};function s(lt){return lt in i?i[lt]:o[lt]}var j=Object.create(null),$=[];for(var _e in o)_e in i?$.length&&(j[_e]=$,$=[]):$.push(_e);var tt,et={};for(var rt in i){if(j[rt])for(tt=0;tto.scrollTop;function getTransitionProps(o,i){var s,j;const{timeout:$,easing:_e,style:tt={}}=o;return{duration:(s=tt.transitionDuration)!=null?s:typeof $=="number"?$:$[i.mode]||0,easing:(j=tt.transitionTimingFunction)!=null?j:typeof _e=="object"?_e[i.mode]:_e,delay:tt.transitionDelay}}function getPaperUtilityClass(o){return generateUtilityClass("MuiPaper",o)}generateUtilityClasses("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]);const _excluded$v=["className","component","elevation","square","variant"],useUtilityClasses$p=o=>{const{square:i,elevation:s,variant:j,classes:$}=o,_e={root:["root",j,!i&&"rounded",j==="elevation"&&`elevation${s}`]};return composeClasses(_e,getPaperUtilityClass,$)},PaperRoot=styled$1("div",{name:"MuiPaper",slot:"Root",overridesResolver:(o,i)=>{const{ownerState:s}=o;return[i.root,i[s.variant],!s.square&&i.rounded,s.variant==="elevation"&&i[`elevation${s.elevation}`]]}})(({theme:o,ownerState:i})=>{var s;return _extends({backgroundColor:(o.vars||o).palette.background.paper,color:(o.vars||o).palette.text.primary,transition:o.transitions.create("box-shadow")},!i.square&&{borderRadius:o.shape.borderRadius},i.variant==="outlined"&&{border:`1px solid ${(o.vars||o).palette.divider}`},i.variant==="elevation"&&_extends({boxShadow:(o.vars||o).shadows[i.elevation]},!o.vars&&o.palette.mode==="dark"&&{backgroundImage:`linear-gradient(${alpha("#fff",getOverlayAlpha$1(i.elevation))}, ${alpha("#fff",getOverlayAlpha$1(i.elevation))})`},o.vars&&{backgroundImage:(s=o.vars.overlays)==null?void 0:s[i.elevation]}))}),Paper=react.exports.forwardRef(function(i,s){const j=useThemeProps({props:i,name:"MuiPaper"}),{className:$,component:_e="div",elevation:tt=1,square:et=!1,variant:rt="elevation"}=j,ot=_objectWithoutPropertiesLoose$1(j,_excluded$v),lt=_extends({},j,{component:_e,elevation:tt,square:et,variant:rt}),dt=useUtilityClasses$p(lt);return jsx(PaperRoot,_extends({as:_e,ownerState:lt,className:clsx(dt.root,$),ref:s},ot))});var Paper$1=Paper;function Ripple(o){const{className:i,classes:s,pulsate:j=!1,rippleX:$,rippleY:_e,rippleSize:tt,in:et,onExited:rt,timeout:ot}=o,[lt,dt]=react.exports.useState(!1),at=clsx(i,s.ripple,s.rippleVisible,j&&s.ripplePulsate),ct={width:tt,height:tt,top:-(tt/2)+_e,left:-(tt/2)+$},st=clsx(s.child,lt&&s.childLeaving,j&&s.childPulsate);return!et&&!lt&&dt(!0),react.exports.useEffect(()=>{if(!et&&rt!=null){const ut=setTimeout(rt,ot);return()=>{clearTimeout(ut)}}},[rt,et,ot]),jsx("span",{className:at,style:ct,children:jsx("span",{className:st})})}const touchRippleClasses=generateUtilityClasses("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]);var touchRippleClasses$1=touchRippleClasses;const _excluded$u=["center","classes","className"];let _=o=>o,_t,_t2,_t3,_t4;const DURATION=550,DELAY_RIPPLE=80,enterKeyframe=keyframes(_t||(_t=_` - 0% { - transform: scale(0); - opacity: 0.1; - } - - 100% { - transform: scale(1); - opacity: 0.3; - } -`)),exitKeyframe=keyframes(_t2||(_t2=_` - 0% { - opacity: 1; - } - - 100% { - opacity: 0; - } -`)),pulsateKeyframe=keyframes(_t3||(_t3=_` - 0% { - transform: scale(1); - } - - 50% { - transform: scale(0.92); - } - - 100% { - transform: scale(1); - } -`)),TouchRippleRoot=styled$1("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),TouchRippleRipple=styled$1(Ripple,{name:"MuiTouchRipple",slot:"Ripple"})(_t4||(_t4=_` - opacity: 0; - position: absolute; - - &.${0} { - opacity: 0.3; - transform: scale(1); - animation-name: ${0}; - animation-duration: ${0}ms; - animation-timing-function: ${0}; - } - - &.${0} { - animation-duration: ${0}ms; - } - - & .${0} { - opacity: 1; - display: block; - width: 100%; - height: 100%; - border-radius: 50%; - background-color: currentColor; - } - - & .${0} { - opacity: 0; - animation-name: ${0}; - animation-duration: ${0}ms; - animation-timing-function: ${0}; - } - - & .${0} { - position: absolute; - /* @noflip */ - left: 0px; - top: 0; - animation-name: ${0}; - animation-duration: 2500ms; - animation-timing-function: ${0}; - animation-iteration-count: infinite; - animation-delay: 200ms; - } -`),touchRippleClasses$1.rippleVisible,enterKeyframe,DURATION,({theme:o})=>o.transitions.easing.easeInOut,touchRippleClasses$1.ripplePulsate,({theme:o})=>o.transitions.duration.shorter,touchRippleClasses$1.child,touchRippleClasses$1.childLeaving,exitKeyframe,DURATION,({theme:o})=>o.transitions.easing.easeInOut,touchRippleClasses$1.childPulsate,pulsateKeyframe,({theme:o})=>o.transitions.easing.easeInOut),TouchRipple=react.exports.forwardRef(function(i,s){const j=useThemeProps({props:i,name:"MuiTouchRipple"}),{center:$=!1,classes:_e={},className:tt}=j,et=_objectWithoutPropertiesLoose$1(j,_excluded$u),[rt,ot]=react.exports.useState([]),lt=react.exports.useRef(0),dt=react.exports.useRef(null);react.exports.useEffect(()=>{dt.current&&(dt.current(),dt.current=null)},[rt]);const at=react.exports.useRef(!1),ct=react.exports.useRef(0),st=react.exports.useRef(null),ut=react.exports.useRef(null);react.exports.useEffect(()=>()=>{ct.current&&clearTimeout(ct.current)},[]);const mt=react.exports.useCallback(yt=>{const{pulsate:ft,rippleX:Ct,rippleY:Ft,rippleSize:Ut,cb:wt}=yt;ot(vt=>[...vt,jsx(TouchRippleRipple,{classes:{ripple:clsx(_e.ripple,touchRippleClasses$1.ripple),rippleVisible:clsx(_e.rippleVisible,touchRippleClasses$1.rippleVisible),ripplePulsate:clsx(_e.ripplePulsate,touchRippleClasses$1.ripplePulsate),child:clsx(_e.child,touchRippleClasses$1.child),childLeaving:clsx(_e.childLeaving,touchRippleClasses$1.childLeaving),childPulsate:clsx(_e.childPulsate,touchRippleClasses$1.childPulsate)},timeout:DURATION,pulsate:ft,rippleX:Ct,rippleY:Ft,rippleSize:Ut},lt.current)]),lt.current+=1,dt.current=wt},[_e]),bt=react.exports.useCallback((yt={},ft={},Ct=()=>{})=>{const{pulsate:Ft=!1,center:Ut=$||ft.pulsate,fakeElement:wt=!1}=ft;if((yt==null?void 0:yt.type)==="mousedown"&&at.current){at.current=!1;return}(yt==null?void 0:yt.type)==="touchstart"&&(at.current=!0);const vt=wt?null:ut.current,At=vt?vt.getBoundingClientRect():{width:0,height:0,left:0,top:0};let Et,Mt,Lt;if(Ut||yt===void 0||yt.clientX===0&&yt.clientY===0||!yt.clientX&&!yt.touches)Et=Math.round(At.width/2),Mt=Math.round(At.height/2);else{const{clientX:kt,clientY:Rt}=yt.touches&&yt.touches.length>0?yt.touches[0]:yt;Et=Math.round(kt-At.left),Mt=Math.round(Rt-At.top)}if(Ut)Lt=Math.sqrt((2*At.width**2+At.height**2)/3),Lt%2===0&&(Lt+=1);else{const kt=Math.max(Math.abs((vt?vt.clientWidth:0)-Et),Et)*2+2,Rt=Math.max(Math.abs((vt?vt.clientHeight:0)-Mt),Mt)*2+2;Lt=Math.sqrt(kt**2+Rt**2)}yt!=null&&yt.touches?st.current===null&&(st.current=()=>{mt({pulsate:Ft,rippleX:Et,rippleY:Mt,rippleSize:Lt,cb:Ct})},ct.current=setTimeout(()=>{st.current&&(st.current(),st.current=null)},DELAY_RIPPLE)):mt({pulsate:Ft,rippleX:Et,rippleY:Mt,rippleSize:Lt,cb:Ct})},[$,mt]),Tt=react.exports.useCallback(()=>{bt({},{pulsate:!0})},[bt]),ht=react.exports.useCallback((yt,ft)=>{if(clearTimeout(ct.current),(yt==null?void 0:yt.type)==="touchend"&&st.current){st.current(),st.current=null,ct.current=setTimeout(()=>{ht(yt,ft)});return}st.current=null,ot(Ct=>Ct.length>0?Ct.slice(1):Ct),dt.current=ft},[]);return react.exports.useImperativeHandle(s,()=>({pulsate:Tt,start:bt,stop:ht}),[Tt,bt,ht]),jsx(TouchRippleRoot,_extends({className:clsx(touchRippleClasses$1.root,_e.root,tt),ref:ut},et,{children:jsx(TransitionGroup$1,{component:null,exit:!0,children:rt})}))});var TouchRipple$1=TouchRipple;function getButtonBaseUtilityClass(o){return generateUtilityClass("MuiButtonBase",o)}const buttonBaseClasses=generateUtilityClasses("MuiButtonBase",["root","disabled","focusVisible"]);var buttonBaseClasses$1=buttonBaseClasses;const _excluded$t=["action","centerRipple","children","className","component","disabled","disableRipple","disableTouchRipple","focusRipple","focusVisibleClassName","LinkComponent","onBlur","onClick","onContextMenu","onDragLeave","onFocus","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","tabIndex","TouchRippleProps","touchRippleRef","type"],useUtilityClasses$o=o=>{const{disabled:i,focusVisible:s,focusVisibleClassName:j,classes:$}=o,tt=composeClasses({root:["root",i&&"disabled",s&&"focusVisible"]},getButtonBaseUtilityClass,$);return s&&j&&(tt.root+=` ${j}`),tt},ButtonBaseRoot=styled$1("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:(o,i)=>i.root})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${buttonBaseClasses$1.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),ButtonBase=react.exports.forwardRef(function(i,s){const j=useThemeProps({props:i,name:"MuiButtonBase"}),{action:$,centerRipple:_e=!1,children:tt,className:et,component:rt="button",disabled:ot=!1,disableRipple:lt=!1,disableTouchRipple:dt=!1,focusRipple:at=!1,LinkComponent:ct="a",onBlur:st,onClick:ut,onContextMenu:mt,onDragLeave:bt,onFocus:Tt,onFocusVisible:ht,onKeyDown:yt,onKeyUp:ft,onMouseDown:Ct,onMouseLeave:Ft,onMouseUp:Ut,onTouchEnd:wt,onTouchMove:vt,onTouchStart:At,tabIndex:Et=0,TouchRippleProps:Mt,touchRippleRef:Lt,type:kt}=j,Rt=_objectWithoutPropertiesLoose$1(j,_excluded$t),Ot=react.exports.useRef(null),It=react.exports.useRef(null),St=useForkRef(It,Lt),{isFocusVisibleRef:gt,onFocus:Bt,onBlur:Dt,ref:Yt}=useIsFocusVisible(),[Xt,Jt]=react.exports.useState(!1);ot&&Xt&&Jt(!1),react.exports.useImperativeHandle($,()=>({focusVisible:()=>{Jt(!0),Ot.current.focus()}}),[]);const[zt,Wt]=react.exports.useState(!1);react.exports.useEffect(()=>{Wt(!0)},[]);const xt=zt&&!lt&&!ot;react.exports.useEffect(()=>{Xt&&at&&!lt&&zt&&It.current.pulsate()},[lt,at,Xt,zt]);function Pt(Mn,kn,Vn=dt){return useEventCallback(Hn=>(kn&&kn(Hn),!Vn&&It.current&&It.current[Mn](Hn),!0))}const $t=Pt("start",Ct),en=Pt("stop",mt),Zt=Pt("stop",bt),rn=Pt("stop",Ut),cn=Pt("stop",Mn=>{Xt&&Mn.preventDefault(),Ft&&Ft(Mn)}),sn=Pt("start",At),Ht=Pt("stop",wt),qt=Pt("stop",vt),nn=Pt("stop",Mn=>{Dt(Mn),gt.current===!1&&Jt(!1),st&&st(Mn)},!1),yn=useEventCallback(Mn=>{Ot.current||(Ot.current=Mn.currentTarget),Bt(Mn),gt.current===!0&&(Jt(!0),ht&&ht(Mn)),Tt&&Tt(Mn)}),ln=()=>{const Mn=Ot.current;return rt&&rt!=="button"&&!(Mn.tagName==="A"&&Mn.href)},_n=react.exports.useRef(!1),vn=useEventCallback(Mn=>{at&&!_n.current&&Xt&&It.current&&Mn.key===" "&&(_n.current=!0,It.current.stop(Mn,()=>{It.current.start(Mn)})),Mn.target===Mn.currentTarget&&ln()&&Mn.key===" "&&Mn.preventDefault(),yt&&yt(Mn),Mn.target===Mn.currentTarget&&ln()&&Mn.key==="Enter"&&!ot&&(Mn.preventDefault(),ut&&ut(Mn))}),hn=useEventCallback(Mn=>{at&&Mn.key===" "&&It.current&&Xt&&!Mn.defaultPrevented&&(_n.current=!1,It.current.stop(Mn,()=>{It.current.pulsate(Mn)})),ft&&ft(Mn),ut&&Mn.target===Mn.currentTarget&&ln()&&Mn.key===" "&&!Mn.defaultPrevented&&ut(Mn)});let fn=rt;fn==="button"&&(Rt.href||Rt.to)&&(fn=ct);const dn={};fn==="button"?(dn.type=kt===void 0?"button":kt,dn.disabled=ot):(!Rt.href&&!Rt.to&&(dn.role="button"),ot&&(dn["aria-disabled"]=ot));const An=useForkRef(s,Yt,Ot),Fn=_extends({},j,{centerRipple:_e,component:rt,disabled:ot,disableRipple:lt,disableTouchRipple:dt,focusRipple:at,tabIndex:Et,focusVisible:Xt}),In=useUtilityClasses$o(Fn);return jsxs(ButtonBaseRoot,_extends({as:fn,className:clsx(In.root,et),ownerState:Fn,onBlur:nn,onClick:ut,onContextMenu:en,onFocus:yn,onKeyDown:vn,onKeyUp:hn,onMouseDown:$t,onMouseLeave:cn,onMouseUp:rn,onDragLeave:Zt,onTouchEnd:Ht,onTouchMove:qt,onTouchStart:sn,ref:An,tabIndex:ot?-1:Et,type:kt},dn,Rt,{children:[tt,xt?jsx(TouchRipple$1,_extends({ref:St,center:_e},Mt)):null]}))});var ButtonBase$1=ButtonBase;function getTypographyUtilityClass(o){return generateUtilityClass("MuiTypography",o)}generateUtilityClasses("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const _excluded$s=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],useUtilityClasses$n=o=>{const{align:i,gutterBottom:s,noWrap:j,paragraph:$,variant:_e,classes:tt}=o,et={root:["root",_e,o.align!=="inherit"&&`align${capitalize$1(i)}`,s&&"gutterBottom",j&&"noWrap",$&&"paragraph"]};return composeClasses(et,getTypographyUtilityClass,tt)},TypographyRoot=styled$1("span",{name:"MuiTypography",slot:"Root",overridesResolver:(o,i)=>{const{ownerState:s}=o;return[i.root,s.variant&&i[s.variant],s.align!=="inherit"&&i[`align${capitalize$1(s.align)}`],s.noWrap&&i.noWrap,s.gutterBottom&&i.gutterBottom,s.paragraph&&i.paragraph]}})(({theme:o,ownerState:i})=>_extends({margin:0},i.variant&&o.typography[i.variant],i.align!=="inherit"&&{textAlign:i.align},i.noWrap&&{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},i.gutterBottom&&{marginBottom:"0.35em"},i.paragraph&&{marginBottom:16})),defaultVariantMapping={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},colorTransformations={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},transformDeprecatedColors=o=>colorTransformations[o]||o,Typography=react.exports.forwardRef(function(i,s){const j=useThemeProps({props:i,name:"MuiTypography"}),$=transformDeprecatedColors(j.color),_e=extendSxProp(_extends({},j,{color:$})),{align:tt="inherit",className:et,component:rt,gutterBottom:ot=!1,noWrap:lt=!1,paragraph:dt=!1,variant:at="body1",variantMapping:ct=defaultVariantMapping}=_e,st=_objectWithoutPropertiesLoose$1(_e,_excluded$s),ut=_extends({},_e,{align:tt,color:$,className:et,component:rt,gutterBottom:ot,noWrap:lt,paragraph:dt,variant:at,variantMapping:ct}),mt=rt||(dt?"p":ct[at]||defaultVariantMapping[at])||"span",bt=useUtilityClasses$n(ut);return jsx(TypographyRoot,_extends({as:mt,ref:s,ownerState:ut,className:clsx(bt.root,et)},st))});var Typography$1=Typography;function formControlState({props:o,states:i,muiFormControl:s}){return i.reduce((j,$)=>(j[$]=o[$],s&&typeof o[$]=="undefined"&&(j[$]=s[$]),j),{})}const FormControlContext=react.exports.createContext(void 0);var FormControlContext$1=FormControlContext;function useFormControl(){return react.exports.useContext(FormControlContext$1)}function hasValue(o){return o!=null&&!(Array.isArray(o)&&o.length===0)}function isFilled(o,i=!1){return o&&(hasValue(o.value)&&o.value!==""||i&&hasValue(o.defaultValue)&&o.defaultValue!=="")}function isAdornedStart(o){return o.startAdornment}function getInputBaseUtilityClass(o){return generateUtilityClass("MuiInputBase",o)}const inputBaseClasses=generateUtilityClasses("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]);var inputBaseClasses$1=inputBaseClasses;const _excluded$r=["aria-describedby","autoComplete","autoFocus","className","color","components","componentsProps","defaultValue","disabled","disableInjectingGlobalStyles","endAdornment","error","fullWidth","id","inputComponent","inputProps","inputRef","margin","maxRows","minRows","multiline","name","onBlur","onChange","onClick","onFocus","onKeyDown","onKeyUp","placeholder","readOnly","renderSuffix","rows","size","slotProps","slots","startAdornment","type","value"],rootOverridesResolver=(o,i)=>{const{ownerState:s}=o;return[i.root,s.formControl&&i.formControl,s.startAdornment&&i.adornedStart,s.endAdornment&&i.adornedEnd,s.error&&i.error,s.size==="small"&&i.sizeSmall,s.multiline&&i.multiline,s.color&&i[`color${capitalize$1(s.color)}`],s.fullWidth&&i.fullWidth,s.hiddenLabel&&i.hiddenLabel]},inputOverridesResolver=(o,i)=>{const{ownerState:s}=o;return[i.input,s.size==="small"&&i.inputSizeSmall,s.multiline&&i.inputMultiline,s.type==="search"&&i.inputTypeSearch,s.startAdornment&&i.inputAdornedStart,s.endAdornment&&i.inputAdornedEnd,s.hiddenLabel&&i.inputHiddenLabel]},useUtilityClasses$m=o=>{const{classes:i,color:s,disabled:j,error:$,endAdornment:_e,focused:tt,formControl:et,fullWidth:rt,hiddenLabel:ot,multiline:lt,readOnly:dt,size:at,startAdornment:ct,type:st}=o,ut={root:["root",`color${capitalize$1(s)}`,j&&"disabled",$&&"error",rt&&"fullWidth",tt&&"focused",et&&"formControl",at==="small"&&"sizeSmall",lt&&"multiline",ct&&"adornedStart",_e&&"adornedEnd",ot&&"hiddenLabel",dt&&"readOnly"],input:["input",j&&"disabled",st==="search"&&"inputTypeSearch",lt&&"inputMultiline",at==="small"&&"inputSizeSmall",ot&&"inputHiddenLabel",ct&&"inputAdornedStart",_e&&"inputAdornedEnd",dt&&"readOnly"]};return composeClasses(ut,getInputBaseUtilityClass,i)},InputBaseRoot=styled$1("div",{name:"MuiInputBase",slot:"Root",overridesResolver:rootOverridesResolver})(({theme:o,ownerState:i})=>_extends({},o.typography.body1,{color:(o.vars||o).palette.text.primary,lineHeight:"1.4375em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center",[`&.${inputBaseClasses$1.disabled}`]:{color:(o.vars||o).palette.text.disabled,cursor:"default"}},i.multiline&&_extends({padding:"4px 0 5px"},i.size==="small"&&{paddingTop:1}),i.fullWidth&&{width:"100%"})),InputBaseComponent=styled$1("input",{name:"MuiInputBase",slot:"Input",overridesResolver:inputOverridesResolver})(({theme:o,ownerState:i})=>{const s=o.palette.mode==="light",j=_extends({color:"currentColor"},o.vars?{opacity:o.vars.opacity.inputPlaceholder}:{opacity:s?.42:.5},{transition:o.transitions.create("opacity",{duration:o.transitions.duration.shorter})}),$={opacity:"0 !important"},_e=o.vars?{opacity:o.vars.opacity.inputPlaceholder}:{opacity:s?.42:.5};return _extends({font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"4px 0 5px",border:0,boxSizing:"content-box",background:"none",height:"1.4375em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%",animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&::-webkit-input-placeholder":j,"&::-moz-placeholder":j,"&:-ms-input-placeholder":j,"&::-ms-input-placeholder":j,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${inputBaseClasses$1.formControl} &`]:{"&::-webkit-input-placeholder":$,"&::-moz-placeholder":$,"&:-ms-input-placeholder":$,"&::-ms-input-placeholder":$,"&:focus::-webkit-input-placeholder":_e,"&:focus::-moz-placeholder":_e,"&:focus:-ms-input-placeholder":_e,"&:focus::-ms-input-placeholder":_e},[`&.${inputBaseClasses$1.disabled}`]:{opacity:1,WebkitTextFillColor:(o.vars||o).palette.text.disabled},"&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}},i.size==="small"&&{paddingTop:1},i.multiline&&{height:"auto",resize:"none",padding:0,paddingTop:0},i.type==="search"&&{MozAppearance:"textfield"})}),inputGlobalStyles=jsx(GlobalStyles,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),InputBase=react.exports.forwardRef(function(i,s){var j;const $=useThemeProps({props:i,name:"MuiInputBase"}),{"aria-describedby":_e,autoComplete:tt,autoFocus:et,className:rt,components:ot={},componentsProps:lt={},defaultValue:dt,disabled:at,disableInjectingGlobalStyles:ct,endAdornment:st,fullWidth:ut=!1,id:mt,inputComponent:bt="input",inputProps:Tt={},inputRef:ht,maxRows:yt,minRows:ft,multiline:Ct=!1,name:Ft,onBlur:Ut,onChange:wt,onClick:vt,onFocus:At,onKeyDown:Et,onKeyUp:Mt,placeholder:Lt,readOnly:kt,renderSuffix:Rt,rows:Ot,slotProps:It={},slots:St={},startAdornment:gt,type:Bt="text",value:Dt}=$,Yt=_objectWithoutPropertiesLoose$1($,_excluded$r),Xt=Tt.value!=null?Tt.value:Dt,{current:Jt}=react.exports.useRef(Xt!=null),zt=react.exports.useRef(),Wt=react.exports.useCallback(In=>{},[]),xt=useForkRef(zt,ht,Tt.ref,Wt),[Pt,$t]=react.exports.useState(!1),en=useFormControl(),Zt=formControlState({props:$,muiFormControl:en,states:["color","disabled","error","hiddenLabel","size","required","filled"]});Zt.focused=en?en.focused:Pt,react.exports.useEffect(()=>{!en&&at&&Pt&&($t(!1),Ut&&Ut())},[en,at,Pt,Ut]);const rn=en&&en.onFilled,cn=en&&en.onEmpty,sn=react.exports.useCallback(In=>{isFilled(In)?rn&&rn():cn&&cn()},[rn,cn]);useEnhancedEffect$1(()=>{Jt&&sn({value:Xt})},[Xt,sn,Jt]);const Ht=In=>{if(Zt.disabled){In.stopPropagation();return}At&&At(In),Tt.onFocus&&Tt.onFocus(In),en&&en.onFocus?en.onFocus(In):$t(!0)},qt=In=>{Ut&&Ut(In),Tt.onBlur&&Tt.onBlur(In),en&&en.onBlur?en.onBlur(In):$t(!1)},nn=(In,...Mn)=>{if(!Jt){const kn=In.target||zt.current;if(kn==null)throw new Error(formatMuiErrorMessage(1));sn({value:kn.value})}Tt.onChange&&Tt.onChange(In,...Mn),wt&&wt(In,...Mn)};react.exports.useEffect(()=>{sn(zt.current)},[]);const yn=In=>{zt.current&&In.currentTarget===In.target&&zt.current.focus(),vt&&!Zt.disabled&&vt(In)};let ln=bt,_n=Tt;Ct&&ln==="input"&&(Ot?_n=_extends({type:void 0,minRows:Ot,maxRows:Ot},_n):_n=_extends({type:void 0,maxRows:yt,minRows:ft},_n),ln=TextareaAutosize$1);const vn=In=>{sn(In.animationName==="mui-auto-fill-cancel"?zt.current:{value:"x"})};react.exports.useEffect(()=>{en&&en.setAdornedStart(Boolean(gt))},[en,gt]);const hn=_extends({},$,{color:Zt.color||"primary",disabled:Zt.disabled,endAdornment:st,error:Zt.error,focused:Zt.focused,formControl:en,fullWidth:ut,hiddenLabel:Zt.hiddenLabel,multiline:Ct,size:Zt.size,startAdornment:gt,type:Bt}),fn=useUtilityClasses$m(hn),dn=St.root||ot.Root||InputBaseRoot,An=It.root||lt.root||{},Fn=St.input||ot.Input||InputBaseComponent;return _n=_extends({},_n,(j=It.input)!=null?j:lt.input),jsxs(react.exports.Fragment,{children:[!ct&&inputGlobalStyles,jsxs(dn,_extends({},An,!isHostComponent(dn)&&{ownerState:_extends({},hn,An.ownerState)},{ref:s,onClick:yn},Yt,{className:clsx(fn.root,An.className,rt,kt&&"MuiInputBase-readOnly"),children:[gt,jsx(FormControlContext$1.Provider,{value:null,children:jsx(Fn,_extends({ownerState:hn,"aria-invalid":Zt.error,"aria-describedby":_e,autoComplete:tt,autoFocus:et,defaultValue:dt,disabled:Zt.disabled,id:mt,onAnimationStart:vn,name:Ft,placeholder:Lt,readOnly:kt,required:Zt.required,rows:Ot,value:Xt,onKeyDown:Et,onKeyUp:Mt,type:Bt},_n,!isHostComponent(Fn)&&{as:ln,ownerState:_extends({},hn,_n.ownerState)},{ref:xt,className:clsx(fn.input,_n.className,kt&&"MuiInputBase-readOnly"),onBlur:qt,onChange:nn,onFocus:Ht}))}),st,Rt?Rt(_extends({},Zt,{startAdornment:gt})):null]}))]})});var InputBase$1=InputBase;function getInputUtilityClass(o){return generateUtilityClass("MuiInput",o)}const inputClasses=_extends({},inputBaseClasses$1,generateUtilityClasses("MuiInput",["root","underline","input"]));var inputClasses$1=inputClasses;function getOutlinedInputUtilityClass(o){return generateUtilityClass("MuiOutlinedInput",o)}const outlinedInputClasses=_extends({},inputBaseClasses$1,generateUtilityClasses("MuiOutlinedInput",["root","notchedOutline","input"]));var outlinedInputClasses$1=outlinedInputClasses;function getFilledInputUtilityClass(o){return generateUtilityClass("MuiFilledInput",o)}const filledInputClasses=_extends({},inputBaseClasses$1,generateUtilityClasses("MuiFilledInput",["root","underline","input"]));var filledInputClasses$1=filledInputClasses,ArrowDropDownIcon=createSvgIcon(jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown");const _excluded$q=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],styles$1={entering:{opacity:1},entered:{opacity:1}},Fade=react.exports.forwardRef(function(i,s){const j=useTheme(),$={enter:j.transitions.duration.enteringScreen,exit:j.transitions.duration.leavingScreen},{addEndListener:_e,appear:tt=!0,children:et,easing:rt,in:ot,onEnter:lt,onEntered:dt,onEntering:at,onExit:ct,onExited:st,onExiting:ut,style:mt,timeout:bt=$,TransitionComponent:Tt=Transition$1}=i,ht=_objectWithoutPropertiesLoose$1(i,_excluded$q),yt=react.exports.useRef(null),ft=useForkRef(yt,et.ref,s),Ct=Lt=>kt=>{if(Lt){const Rt=yt.current;kt===void 0?Lt(Rt):Lt(Rt,kt)}},Ft=Ct(at),Ut=Ct((Lt,kt)=>{reflow(Lt);const Rt=getTransitionProps({style:mt,timeout:bt,easing:rt},{mode:"enter"});Lt.style.webkitTransition=j.transitions.create("opacity",Rt),Lt.style.transition=j.transitions.create("opacity",Rt),lt&<(Lt,kt)}),wt=Ct(dt),vt=Ct(ut),At=Ct(Lt=>{const kt=getTransitionProps({style:mt,timeout:bt,easing:rt},{mode:"exit"});Lt.style.webkitTransition=j.transitions.create("opacity",kt),Lt.style.transition=j.transitions.create("opacity",kt),ct&&ct(Lt)}),Et=Ct(st);return jsx(Tt,_extends({appear:tt,in:ot,nodeRef:yt,onEnter:Ut,onEntered:wt,onEntering:Ft,onExit:At,onExited:Et,onExiting:vt,addEndListener:Lt=>{_e&&_e(yt.current,Lt)},timeout:bt},ht,{children:(Lt,kt)=>react.exports.cloneElement(et,_extends({style:_extends({opacity:0,visibility:Lt==="exited"&&!ot?"hidden":void 0},styles$1[Lt],mt,et.props.style),ref:ft},kt))}))});var Fade$1=Fade;function getBackdropUtilityClass(o){return generateUtilityClass("MuiBackdrop",o)}generateUtilityClasses("MuiBackdrop",["root","invisible"]);const _excluded$p=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],useUtilityClasses$l=o=>{const{classes:i,invisible:s}=o;return composeClasses({root:["root",s&&"invisible"]},getBackdropUtilityClass,i)},BackdropRoot=styled$1("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(o,i)=>{const{ownerState:s}=o;return[i.root,s.invisible&&i.invisible]}})(({ownerState:o})=>_extends({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent"},o.invisible&&{backgroundColor:"transparent"})),Backdrop=react.exports.forwardRef(function(i,s){var j,$,_e;const tt=useThemeProps({props:i,name:"MuiBackdrop"}),{children:et,className:rt,component:ot="div",components:lt={},componentsProps:dt={},invisible:at=!1,open:ct,slotProps:st={},slots:ut={},TransitionComponent:mt=Fade$1,transitionDuration:bt}=tt,Tt=_objectWithoutPropertiesLoose$1(tt,_excluded$p),ht=_extends({},tt,{component:ot,invisible:at}),yt=useUtilityClasses$l(ht),ft=(j=st.root)!=null?j:dt.root;return jsx(mt,_extends({in:ct,timeout:bt},Tt,{children:jsx(BackdropRoot,_extends({"aria-hidden":!0},ft,{as:($=(_e=ut.root)!=null?_e:lt.Root)!=null?$:ot,className:clsx(yt.root,rt,ft==null?void 0:ft.className),ownerState:_extends({},ht,ft==null?void 0:ft.ownerState),classes:yt,ref:s,children:et}))}))});var Backdrop$1=Backdrop;const defaultTheme$1=createTheme(),Box=createBox({themeId:THEME_ID,defaultTheme:defaultTheme$1,defaultClassName:"MuiBox-root",generateClassName:ClassNameGenerator$1.generate});var Box$1=Box;function getButtonUtilityClass(o){return generateUtilityClass("MuiButton",o)}const buttonClasses=generateUtilityClasses("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","iconSizeSmall","iconSizeMedium","iconSizeLarge"]);var buttonClasses$1=buttonClasses;const ButtonGroupContext=react.exports.createContext({});var ButtonGroupContext$1=ButtonGroupContext;const _excluded$o=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],useUtilityClasses$k=o=>{const{color:i,disableElevation:s,fullWidth:j,size:$,variant:_e,classes:tt}=o,et={root:["root",_e,`${_e}${capitalize$1(i)}`,`size${capitalize$1($)}`,`${_e}Size${capitalize$1($)}`,i==="inherit"&&"colorInherit",s&&"disableElevation",j&&"fullWidth"],label:["label"],startIcon:["startIcon",`iconSize${capitalize$1($)}`],endIcon:["endIcon",`iconSize${capitalize$1($)}`]},rt=composeClasses(et,getButtonUtilityClass,tt);return _extends({},tt,rt)},commonIconStyles=o=>_extends({},o.size==="small"&&{"& > *:nth-of-type(1)":{fontSize:18}},o.size==="medium"&&{"& > *:nth-of-type(1)":{fontSize:20}},o.size==="large"&&{"& > *:nth-of-type(1)":{fontSize:22}}),ButtonRoot=styled$1(ButtonBase$1,{shouldForwardProp:o=>rootShouldForwardProp(o)||o==="classes",name:"MuiButton",slot:"Root",overridesResolver:(o,i)=>{const{ownerState:s}=o;return[i.root,i[s.variant],i[`${s.variant}${capitalize$1(s.color)}`],i[`size${capitalize$1(s.size)}`],i[`${s.variant}Size${capitalize$1(s.size)}`],s.color==="inherit"&&i.colorInherit,s.disableElevation&&i.disableElevation,s.fullWidth&&i.fullWidth]}})(({theme:o,ownerState:i})=>{var s,j;const $=o.palette.mode==="light"?o.palette.grey[300]:o.palette.grey[800],_e=o.palette.mode==="light"?o.palette.grey.A100:o.palette.grey[700];return _extends({},o.typography.button,{minWidth:64,padding:"6px 16px",borderRadius:(o.vars||o).shape.borderRadius,transition:o.transitions.create(["background-color","box-shadow","border-color","color"],{duration:o.transitions.duration.short}),"&:hover":_extends({textDecoration:"none",backgroundColor:o.vars?`rgba(${o.vars.palette.text.primaryChannel} / ${o.vars.palette.action.hoverOpacity})`:alpha(o.palette.text.primary,o.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},i.variant==="text"&&i.color!=="inherit"&&{backgroundColor:o.vars?`rgba(${o.vars.palette[i.color].mainChannel} / ${o.vars.palette.action.hoverOpacity})`:alpha(o.palette[i.color].main,o.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},i.variant==="outlined"&&i.color!=="inherit"&&{border:`1px solid ${(o.vars||o).palette[i.color].main}`,backgroundColor:o.vars?`rgba(${o.vars.palette[i.color].mainChannel} / ${o.vars.palette.action.hoverOpacity})`:alpha(o.palette[i.color].main,o.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},i.variant==="contained"&&{backgroundColor:o.vars?o.vars.palette.Button.inheritContainedHoverBg:_e,boxShadow:(o.vars||o).shadows[4],"@media (hover: none)":{boxShadow:(o.vars||o).shadows[2],backgroundColor:(o.vars||o).palette.grey[300]}},i.variant==="contained"&&i.color!=="inherit"&&{backgroundColor:(o.vars||o).palette[i.color].dark,"@media (hover: none)":{backgroundColor:(o.vars||o).palette[i.color].main}}),"&:active":_extends({},i.variant==="contained"&&{boxShadow:(o.vars||o).shadows[8]}),[`&.${buttonClasses$1.focusVisible}`]:_extends({},i.variant==="contained"&&{boxShadow:(o.vars||o).shadows[6]}),[`&.${buttonClasses$1.disabled}`]:_extends({color:(o.vars||o).palette.action.disabled},i.variant==="outlined"&&{border:`1px solid ${(o.vars||o).palette.action.disabledBackground}`},i.variant==="contained"&&{color:(o.vars||o).palette.action.disabled,boxShadow:(o.vars||o).shadows[0],backgroundColor:(o.vars||o).palette.action.disabledBackground})},i.variant==="text"&&{padding:"6px 8px"},i.variant==="text"&&i.color!=="inherit"&&{color:(o.vars||o).palette[i.color].main},i.variant==="outlined"&&{padding:"5px 15px",border:"1px solid currentColor"},i.variant==="outlined"&&i.color!=="inherit"&&{color:(o.vars||o).palette[i.color].main,border:o.vars?`1px solid rgba(${o.vars.palette[i.color].mainChannel} / 0.5)`:`1px solid ${alpha(o.palette[i.color].main,.5)}`},i.variant==="contained"&&{color:o.vars?o.vars.palette.text.primary:(s=(j=o.palette).getContrastText)==null?void 0:s.call(j,o.palette.grey[300]),backgroundColor:o.vars?o.vars.palette.Button.inheritContainedBg:$,boxShadow:(o.vars||o).shadows[2]},i.variant==="contained"&&i.color!=="inherit"&&{color:(o.vars||o).palette[i.color].contrastText,backgroundColor:(o.vars||o).palette[i.color].main},i.color==="inherit"&&{color:"inherit",borderColor:"currentColor"},i.size==="small"&&i.variant==="text"&&{padding:"4px 5px",fontSize:o.typography.pxToRem(13)},i.size==="large"&&i.variant==="text"&&{padding:"8px 11px",fontSize:o.typography.pxToRem(15)},i.size==="small"&&i.variant==="outlined"&&{padding:"3px 9px",fontSize:o.typography.pxToRem(13)},i.size==="large"&&i.variant==="outlined"&&{padding:"7px 21px",fontSize:o.typography.pxToRem(15)},i.size==="small"&&i.variant==="contained"&&{padding:"4px 10px",fontSize:o.typography.pxToRem(13)},i.size==="large"&&i.variant==="contained"&&{padding:"8px 22px",fontSize:o.typography.pxToRem(15)},i.fullWidth&&{width:"100%"})},({ownerState:o})=>o.disableElevation&&{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${buttonClasses$1.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${buttonClasses$1.disabled}`]:{boxShadow:"none"}}),ButtonStartIcon=styled$1("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(o,i)=>{const{ownerState:s}=o;return[i.startIcon,i[`iconSize${capitalize$1(s.size)}`]]}})(({ownerState:o})=>_extends({display:"inherit",marginRight:8,marginLeft:-4},o.size==="small"&&{marginLeft:-2},commonIconStyles(o))),ButtonEndIcon=styled$1("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(o,i)=>{const{ownerState:s}=o;return[i.endIcon,i[`iconSize${capitalize$1(s.size)}`]]}})(({ownerState:o})=>_extends({display:"inherit",marginRight:-4,marginLeft:8},o.size==="small"&&{marginRight:-2},commonIconStyles(o))),Button=react.exports.forwardRef(function(i,s){const j=react.exports.useContext(ButtonGroupContext$1),$=resolveProps(j,i),_e=useThemeProps({props:$,name:"MuiButton"}),{children:tt,color:et="primary",component:rt="button",className:ot,disabled:lt=!1,disableElevation:dt=!1,disableFocusRipple:at=!1,endIcon:ct,focusVisibleClassName:st,fullWidth:ut=!1,size:mt="medium",startIcon:bt,type:Tt,variant:ht="text"}=_e,yt=_objectWithoutPropertiesLoose$1(_e,_excluded$o),ft=_extends({},_e,{color:et,component:rt,disabled:lt,disableElevation:dt,disableFocusRipple:at,fullWidth:ut,size:mt,type:Tt,variant:ht}),Ct=useUtilityClasses$k(ft),Ft=bt&&jsx(ButtonStartIcon,{className:Ct.startIcon,ownerState:ft,children:bt}),Ut=ct&&jsx(ButtonEndIcon,{className:Ct.endIcon,ownerState:ft,children:ct});return jsxs(ButtonRoot,_extends({ownerState:ft,className:clsx(j.className,Ct.root,ot),component:rt,disabled:lt,focusRipple:!at,focusVisibleClassName:clsx(Ct.focusVisible,st),ref:s,type:Tt},yt,{classes:Ct,children:[Ft,tt,Ut]}))});var Button$1=Button;function getSwitchBaseUtilityClass(o){return generateUtilityClass("PrivateSwitchBase",o)}generateUtilityClasses("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const _excluded$n=["autoFocus","checked","checkedIcon","className","defaultChecked","disabled","disableFocusRipple","edge","icon","id","inputProps","inputRef","name","onBlur","onChange","onFocus","readOnly","required","tabIndex","type","value"],useUtilityClasses$j=o=>{const{classes:i,checked:s,disabled:j,edge:$}=o,_e={root:["root",s&&"checked",j&&"disabled",$&&`edge${capitalize$1($)}`],input:["input"]};return composeClasses(_e,getSwitchBaseUtilityClass,i)},SwitchBaseRoot=styled$1(ButtonBase$1)(({ownerState:o})=>_extends({padding:9,borderRadius:"50%"},o.edge==="start"&&{marginLeft:o.size==="small"?-3:-12},o.edge==="end"&&{marginRight:o.size==="small"?-3:-12})),SwitchBaseInput=styled$1("input")({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),SwitchBase=react.exports.forwardRef(function(i,s){const{autoFocus:j,checked:$,checkedIcon:_e,className:tt,defaultChecked:et,disabled:rt,disableFocusRipple:ot=!1,edge:lt=!1,icon:dt,id:at,inputProps:ct,inputRef:st,name:ut,onBlur:mt,onChange:bt,onFocus:Tt,readOnly:ht,required:yt=!1,tabIndex:ft,type:Ct,value:Ft}=i,Ut=_objectWithoutPropertiesLoose$1(i,_excluded$n),[wt,vt]=useControlled({controlled:$,default:Boolean(et),name:"SwitchBase",state:"checked"}),At=useFormControl(),Et=St=>{Tt&&Tt(St),At&&At.onFocus&&At.onFocus(St)},Mt=St=>{mt&&mt(St),At&&At.onBlur&&At.onBlur(St)},Lt=St=>{if(St.nativeEvent.defaultPrevented)return;const gt=St.target.checked;vt(gt),bt&&bt(St,gt)};let kt=rt;At&&typeof kt=="undefined"&&(kt=At.disabled);const Rt=Ct==="checkbox"||Ct==="radio",Ot=_extends({},i,{checked:wt,disabled:kt,disableFocusRipple:ot,edge:lt}),It=useUtilityClasses$j(Ot);return jsxs(SwitchBaseRoot,_extends({component:"span",className:clsx(It.root,tt),centerRipple:!0,focusRipple:!ot,disabled:kt,tabIndex:null,role:void 0,onFocus:Et,onBlur:Mt,ownerState:Ot,ref:s},Ut,{children:[jsx(SwitchBaseInput,_extends({autoFocus:j,checked:$,defaultChecked:et,className:It.input,disabled:kt,id:Rt?at:void 0,name:ut,onChange:Lt,readOnly:ht,ref:st,required:yt,ownerState:Ot,tabIndex:ft,type:Ct},Ct==="checkbox"&&Ft===void 0?{}:{value:Ft},ct)),wt?_e:dt]}))});var SwitchBase$1=SwitchBase;const _excluded$m=["BackdropComponent","BackdropProps","classes","className","closeAfterTransition","children","container","component","components","componentsProps","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","onBackdropClick","onClose","open","slotProps","slots","theme"],ModalRoot=styled$1("div",{name:"MuiModal",slot:"Root",overridesResolver:(o,i)=>{const{ownerState:s}=o;return[i.root,!s.open&&s.exited&&i.hidden]}})(({theme:o,ownerState:i})=>_extends({position:"fixed",zIndex:(o.vars||o).zIndex.modal,right:0,bottom:0,top:0,left:0},!i.open&&i.exited&&{visibility:"hidden"})),ModalBackdrop=styled$1(Backdrop$1,{name:"MuiModal",slot:"Backdrop",overridesResolver:(o,i)=>i.backdrop})({zIndex:-1}),Modal=react.exports.forwardRef(function(i,s){var j,$,_e,tt,et,rt;const ot=useThemeProps({name:"MuiModal",props:i}),{BackdropComponent:lt=ModalBackdrop,BackdropProps:dt,classes:at,className:ct,closeAfterTransition:st=!1,children:ut,container:mt,component:bt,components:Tt={},componentsProps:ht={},disableAutoFocus:yt=!1,disableEnforceFocus:ft=!1,disableEscapeKeyDown:Ct=!1,disablePortal:Ft=!1,disableRestoreFocus:Ut=!1,disableScrollLock:wt=!1,hideBackdrop:vt=!1,keepMounted:At=!1,onBackdropClick:Et,onClose:Mt,open:Lt,slotProps:kt,slots:Rt,theme:Ot}=ot,It=_objectWithoutPropertiesLoose$1(ot,_excluded$m),[St,gt]=react.exports.useState(!0),Bt={container:mt,closeAfterTransition:st,disableAutoFocus:yt,disableEnforceFocus:ft,disableEscapeKeyDown:Ct,disablePortal:Ft,disableRestoreFocus:Ut,disableScrollLock:wt,hideBackdrop:vt,keepMounted:At,onBackdropClick:Et,onClose:Mt,open:Lt},Dt=_extends({},ot,Bt,{exited:St}),Yt=(j=($=Rt==null?void 0:Rt.root)!=null?$:Tt.Root)!=null?j:ModalRoot,Xt=(_e=(tt=Rt==null?void 0:Rt.backdrop)!=null?tt:Tt.Backdrop)!=null?_e:lt,Jt=(et=kt==null?void 0:kt.root)!=null?et:ht.root,zt=(rt=kt==null?void 0:kt.backdrop)!=null?rt:ht.backdrop;return jsx(ModalUnstyled,_extends({slots:{root:Yt,backdrop:Xt},slotProps:{root:()=>_extends({},resolveComponentProps(Jt,Dt),!isHostComponent(Yt)&&{as:bt,theme:Ot},{className:clsx(ct,Jt==null?void 0:Jt.className,at==null?void 0:at.root,!Dt.open&&Dt.exited&&(at==null?void 0:at.hidden))}),backdrop:()=>_extends({},dt,resolveComponentProps(zt,Dt),{className:clsx(zt==null?void 0:zt.className,dt==null?void 0:dt.className,at==null?void 0:at.backdrop)})},onTransitionEnter:()=>gt(!1),onTransitionExited:()=>gt(!0),ref:s},It,Bt,{children:ut}))});var Modal$1=Modal;const dividerClasses=generateUtilityClasses("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]);var dividerClasses$1=dividerClasses;const _excluded$l=["disableUnderline","components","componentsProps","fullWidth","hiddenLabel","inputComponent","multiline","slotProps","slots","type"],useUtilityClasses$i=o=>{const{classes:i,disableUnderline:s}=o,$=composeClasses({root:["root",!s&&"underline"],input:["input"]},getFilledInputUtilityClass,i);return _extends({},i,$)},FilledInputRoot=styled$1(InputBaseRoot,{shouldForwardProp:o=>rootShouldForwardProp(o)||o==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(o,i)=>{const{ownerState:s}=o;return[...rootOverridesResolver(o,i),!s.disableUnderline&&i.underline]}})(({theme:o,ownerState:i})=>{var s;const j=o.palette.mode==="light",$=j?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",_e=j?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",tt=j?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",et=j?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return _extends({position:"relative",backgroundColor:o.vars?o.vars.palette.FilledInput.bg:_e,borderTopLeftRadius:(o.vars||o).shape.borderRadius,borderTopRightRadius:(o.vars||o).shape.borderRadius,transition:o.transitions.create("background-color",{duration:o.transitions.duration.shorter,easing:o.transitions.easing.easeOut}),"&:hover":{backgroundColor:o.vars?o.vars.palette.FilledInput.hoverBg:tt,"@media (hover: none)":{backgroundColor:o.vars?o.vars.palette.FilledInput.bg:_e}},[`&.${filledInputClasses$1.focused}`]:{backgroundColor:o.vars?o.vars.palette.FilledInput.bg:_e},[`&.${filledInputClasses$1.disabled}`]:{backgroundColor:o.vars?o.vars.palette.FilledInput.disabledBg:et}},!i.disableUnderline&&{"&:after":{borderBottom:`2px solid ${(s=(o.vars||o).palette[i.color||"primary"])==null?void 0:s.main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:o.transitions.create("transform",{duration:o.transitions.duration.shorter,easing:o.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${filledInputClasses$1.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${filledInputClasses$1.error}`]:{"&:before, &:after":{borderBottomColor:(o.vars||o).palette.error.main}},"&:before":{borderBottom:`1px solid ${o.vars?`rgba(${o.vars.palette.common.onBackgroundChannel} / ${o.vars.opacity.inputUnderline})`:$}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:o.transitions.create("border-bottom-color",{duration:o.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${filledInputClasses$1.disabled}, .${filledInputClasses$1.error}):before`]:{borderBottom:`1px solid ${(o.vars||o).palette.text.primary}`},[`&.${filledInputClasses$1.disabled}:before`]:{borderBottomStyle:"dotted"}},i.startAdornment&&{paddingLeft:12},i.endAdornment&&{paddingRight:12},i.multiline&&_extends({padding:"25px 12px 8px"},i.size==="small"&&{paddingTop:21,paddingBottom:4},i.hiddenLabel&&{paddingTop:16,paddingBottom:17}))}),FilledInputInput=styled$1(InputBaseComponent,{name:"MuiFilledInput",slot:"Input",overridesResolver:inputOverridesResolver})(({theme:o,ownerState:i})=>_extends({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12},!o.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:o.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:o.palette.mode==="light"?null:"#fff",caretColor:o.palette.mode==="light"?null:"#fff",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},o.vars&&{"&:-webkit-autofill":{borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"},[o.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},i.size==="small"&&{paddingTop:21,paddingBottom:4},i.hiddenLabel&&{paddingTop:16,paddingBottom:17},i.multiline&&{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0},i.startAdornment&&{paddingLeft:0},i.endAdornment&&{paddingRight:0},i.hiddenLabel&&i.size==="small"&&{paddingTop:8,paddingBottom:9})),FilledInput=react.exports.forwardRef(function(i,s){var j,$,_e,tt;const et=useThemeProps({props:i,name:"MuiFilledInput"}),{components:rt={},componentsProps:ot,fullWidth:lt=!1,inputComponent:dt="input",multiline:at=!1,slotProps:ct,slots:st={},type:ut="text"}=et,mt=_objectWithoutPropertiesLoose$1(et,_excluded$l),bt=_extends({},et,{fullWidth:lt,inputComponent:dt,multiline:at,type:ut}),Tt=useUtilityClasses$i(et),ht={root:{ownerState:bt},input:{ownerState:bt}},yt=(ct!=null?ct:ot)?deepmerge(ct!=null?ct:ot,ht):ht,ft=(j=($=st.root)!=null?$:rt.Root)!=null?j:FilledInputRoot,Ct=(_e=(tt=st.input)!=null?tt:rt.Input)!=null?_e:FilledInputInput;return jsx(InputBase$1,_extends({slots:{root:ft,input:Ct},componentsProps:yt,fullWidth:lt,inputComponent:dt,multiline:at,ref:s,type:ut},mt,{classes:Tt}))});FilledInput.muiName="Input";var FilledInput$1=FilledInput;function getFormControlUtilityClasses(o){return generateUtilityClass("MuiFormControl",o)}generateUtilityClasses("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const _excluded$k=["children","className","color","component","disabled","error","focused","fullWidth","hiddenLabel","margin","required","size","variant"],useUtilityClasses$h=o=>{const{classes:i,margin:s,fullWidth:j}=o,$={root:["root",s!=="none"&&`margin${capitalize$1(s)}`,j&&"fullWidth"]};return composeClasses($,getFormControlUtilityClasses,i)},FormControlRoot=styled$1("div",{name:"MuiFormControl",slot:"Root",overridesResolver:({ownerState:o},i)=>_extends({},i.root,i[`margin${capitalize$1(o.margin)}`],o.fullWidth&&i.fullWidth)})(({ownerState:o})=>_extends({display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top"},o.margin==="normal"&&{marginTop:16,marginBottom:8},o.margin==="dense"&&{marginTop:8,marginBottom:4},o.fullWidth&&{width:"100%"})),FormControl=react.exports.forwardRef(function(i,s){const j=useThemeProps({props:i,name:"MuiFormControl"}),{children:$,className:_e,color:tt="primary",component:et="div",disabled:rt=!1,error:ot=!1,focused:lt,fullWidth:dt=!1,hiddenLabel:at=!1,margin:ct="none",required:st=!1,size:ut="medium",variant:mt="outlined"}=j,bt=_objectWithoutPropertiesLoose$1(j,_excluded$k),Tt=_extends({},j,{color:tt,component:et,disabled:rt,error:ot,fullWidth:dt,hiddenLabel:at,margin:ct,required:st,size:ut,variant:mt}),ht=useUtilityClasses$h(Tt),[yt,ft]=react.exports.useState(()=>{let Mt=!1;return $&&react.exports.Children.forEach($,Lt=>{if(!isMuiElement(Lt,["Input","Select"]))return;const kt=isMuiElement(Lt,["Select"])?Lt.props.input:Lt;kt&&isAdornedStart(kt.props)&&(Mt=!0)}),Mt}),[Ct,Ft]=react.exports.useState(()=>{let Mt=!1;return $&&react.exports.Children.forEach($,Lt=>{!isMuiElement(Lt,["Input","Select"])||(isFilled(Lt.props,!0)||isFilled(Lt.props.inputProps,!0))&&(Mt=!0)}),Mt}),[Ut,wt]=react.exports.useState(!1);rt&&Ut&&wt(!1);const vt=lt!==void 0&&!rt?lt:Ut;let At;const Et=react.exports.useMemo(()=>({adornedStart:yt,setAdornedStart:ft,color:tt,disabled:rt,error:ot,filled:Ct,focused:vt,fullWidth:dt,hiddenLabel:at,size:ut,onBlur:()=>{wt(!1)},onEmpty:()=>{Ft(!1)},onFilled:()=>{Ft(!0)},onFocus:()=>{wt(!0)},registerEffect:At,required:st,variant:mt}),[yt,tt,rt,ot,Ct,vt,dt,at,At,st,ut,mt]);return jsx(FormControlContext$1.Provider,{value:Et,children:jsx(FormControlRoot,_extends({as:et,ownerState:Tt,className:clsx(ht.root,_e),ref:s},bt,{children:$}))})});var FormControl$1=FormControl;function getFormHelperTextUtilityClasses(o){return generateUtilityClass("MuiFormHelperText",o)}const formHelperTextClasses=generateUtilityClasses("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]);var formHelperTextClasses$1=formHelperTextClasses,_span$2;const _excluded$j=["children","className","component","disabled","error","filled","focused","margin","required","variant"],useUtilityClasses$g=o=>{const{classes:i,contained:s,size:j,disabled:$,error:_e,filled:tt,focused:et,required:rt}=o,ot={root:["root",$&&"disabled",_e&&"error",j&&`size${capitalize$1(j)}`,s&&"contained",et&&"focused",tt&&"filled",rt&&"required"]};return composeClasses(ot,getFormHelperTextUtilityClasses,i)},FormHelperTextRoot=styled$1("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(o,i)=>{const{ownerState:s}=o;return[i.root,s.size&&i[`size${capitalize$1(s.size)}`],s.contained&&i.contained,s.filled&&i.filled]}})(({theme:o,ownerState:i})=>_extends({color:(o.vars||o).palette.text.secondary},o.typography.caption,{textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${formHelperTextClasses$1.disabled}`]:{color:(o.vars||o).palette.text.disabled},[`&.${formHelperTextClasses$1.error}`]:{color:(o.vars||o).palette.error.main}},i.size==="small"&&{marginTop:4},i.contained&&{marginLeft:14,marginRight:14})),FormHelperText=react.exports.forwardRef(function(i,s){const j=useThemeProps({props:i,name:"MuiFormHelperText"}),{children:$,className:_e,component:tt="p"}=j,et=_objectWithoutPropertiesLoose$1(j,_excluded$j),rt=useFormControl(),ot=formControlState({props:j,muiFormControl:rt,states:["variant","size","disabled","error","filled","focused","required"]}),lt=_extends({},j,{component:tt,contained:ot.variant==="filled"||ot.variant==="outlined",variant:ot.variant,size:ot.size,disabled:ot.disabled,error:ot.error,filled:ot.filled,focused:ot.focused,required:ot.required}),dt=useUtilityClasses$g(lt);return jsx(FormHelperTextRoot,_extends({as:tt,ownerState:lt,className:clsx(dt.root,_e),ref:s},et,{children:$===" "?_span$2||(_span$2=jsx("span",{className:"notranslate",children:"\u200B"})):$}))});var FormHelperText$1=FormHelperText;function getFormLabelUtilityClasses(o){return generateUtilityClass("MuiFormLabel",o)}const formLabelClasses=generateUtilityClasses("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]);var formLabelClasses$1=formLabelClasses;const _excluded$i=["children","className","color","component","disabled","error","filled","focused","required"],useUtilityClasses$f=o=>{const{classes:i,color:s,focused:j,disabled:$,error:_e,filled:tt,required:et}=o,rt={root:["root",`color${capitalize$1(s)}`,$&&"disabled",_e&&"error",tt&&"filled",j&&"focused",et&&"required"],asterisk:["asterisk",_e&&"error"]};return composeClasses(rt,getFormLabelUtilityClasses,i)},FormLabelRoot=styled$1("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:({ownerState:o},i)=>_extends({},i.root,o.color==="secondary"&&i.colorSecondary,o.filled&&i.filled)})(({theme:o,ownerState:i})=>_extends({color:(o.vars||o).palette.text.secondary},o.typography.body1,{lineHeight:"1.4375em",padding:0,position:"relative",[`&.${formLabelClasses$1.focused}`]:{color:(o.vars||o).palette[i.color].main},[`&.${formLabelClasses$1.disabled}`]:{color:(o.vars||o).palette.text.disabled},[`&.${formLabelClasses$1.error}`]:{color:(o.vars||o).palette.error.main}})),AsteriskComponent=styled$1("span",{name:"MuiFormLabel",slot:"Asterisk",overridesResolver:(o,i)=>i.asterisk})(({theme:o})=>({[`&.${formLabelClasses$1.error}`]:{color:(o.vars||o).palette.error.main}})),FormLabel=react.exports.forwardRef(function(i,s){const j=useThemeProps({props:i,name:"MuiFormLabel"}),{children:$,className:_e,component:tt="label"}=j,et=_objectWithoutPropertiesLoose$1(j,_excluded$i),rt=useFormControl(),ot=formControlState({props:j,muiFormControl:rt,states:["color","required","focused","disabled","error","filled"]}),lt=_extends({},j,{color:ot.color||"primary",component:tt,disabled:ot.disabled,error:ot.error,filled:ot.filled,focused:ot.focused,required:ot.required}),dt=useUtilityClasses$f(lt);return jsxs(FormLabelRoot,_extends({as:tt,ownerState:lt,className:clsx(dt.root,_e),ref:s},et,{children:[$,ot.required&&jsxs(AsteriskComponent,{ownerState:lt,"aria-hidden":!0,className:dt.asterisk,children:["\u2009","*"]})]}))});var FormLabel$1=FormLabel;const _excluded$h=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function getScale(o){return`scale(${o}, ${o**2})`}const styles={entering:{opacity:1,transform:getScale(1)},entered:{opacity:1,transform:"none"}},isWebKit154=typeof navigator!="undefined"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),Grow=react.exports.forwardRef(function(i,s){const{addEndListener:j,appear:$=!0,children:_e,easing:tt,in:et,onEnter:rt,onEntered:ot,onEntering:lt,onExit:dt,onExited:at,onExiting:ct,style:st,timeout:ut="auto",TransitionComponent:mt=Transition$1}=i,bt=_objectWithoutPropertiesLoose$1(i,_excluded$h),Tt=react.exports.useRef(),ht=react.exports.useRef(),yt=useTheme(),ft=react.exports.useRef(null),Ct=useForkRef(ft,_e.ref,s),Ft=kt=>Rt=>{if(kt){const Ot=ft.current;Rt===void 0?kt(Ot):kt(Ot,Rt)}},Ut=Ft(lt),wt=Ft((kt,Rt)=>{reflow(kt);const{duration:Ot,delay:It,easing:St}=getTransitionProps({style:st,timeout:ut,easing:tt},{mode:"enter"});let gt;ut==="auto"?(gt=yt.transitions.getAutoHeightDuration(kt.clientHeight),ht.current=gt):gt=Ot,kt.style.transition=[yt.transitions.create("opacity",{duration:gt,delay:It}),yt.transitions.create("transform",{duration:isWebKit154?gt:gt*.666,delay:It,easing:St})].join(","),rt&&rt(kt,Rt)}),vt=Ft(ot),At=Ft(ct),Et=Ft(kt=>{const{duration:Rt,delay:Ot,easing:It}=getTransitionProps({style:st,timeout:ut,easing:tt},{mode:"exit"});let St;ut==="auto"?(St=yt.transitions.getAutoHeightDuration(kt.clientHeight),ht.current=St):St=Rt,kt.style.transition=[yt.transitions.create("opacity",{duration:St,delay:Ot}),yt.transitions.create("transform",{duration:isWebKit154?St:St*.666,delay:isWebKit154?Ot:Ot||St*.333,easing:It})].join(","),kt.style.opacity=0,kt.style.transform=getScale(.75),dt&&dt(kt)}),Mt=Ft(at),Lt=kt=>{ut==="auto"&&(Tt.current=setTimeout(kt,ht.current||0)),j&&j(ft.current,kt)};return react.exports.useEffect(()=>()=>{clearTimeout(Tt.current)},[]),jsx(mt,_extends({appear:$,in:et,nodeRef:ft,onEnter:wt,onEntered:vt,onEntering:Ut,onExit:Et,onExited:Mt,onExiting:At,addEndListener:Lt,timeout:ut==="auto"?null:ut},bt,{children:(kt,Rt)=>react.exports.cloneElement(_e,_extends({style:_extends({opacity:0,transform:getScale(.75),visibility:kt==="exited"&&!et?"hidden":void 0},styles[kt],st,_e.props.style),ref:Ct},Rt))}))});Grow.muiSupportAuto=!0;var Grow$1=Grow;const _excluded$g=["disableUnderline","components","componentsProps","fullWidth","inputComponent","multiline","slotProps","slots","type"],useUtilityClasses$e=o=>{const{classes:i,disableUnderline:s}=o,$=composeClasses({root:["root",!s&&"underline"],input:["input"]},getInputUtilityClass,i);return _extends({},i,$)},InputRoot=styled$1(InputBaseRoot,{shouldForwardProp:o=>rootShouldForwardProp(o)||o==="classes",name:"MuiInput",slot:"Root",overridesResolver:(o,i)=>{const{ownerState:s}=o;return[...rootOverridesResolver(o,i),!s.disableUnderline&&i.underline]}})(({theme:o,ownerState:i})=>{let j=o.palette.mode==="light"?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return o.vars&&(j=`rgba(${o.vars.palette.common.onBackgroundChannel} / ${o.vars.opacity.inputUnderline})`),_extends({position:"relative"},i.formControl&&{"label + &":{marginTop:16}},!i.disableUnderline&&{"&:after":{borderBottom:`2px solid ${(o.vars||o).palette[i.color].main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:o.transitions.create("transform",{duration:o.transitions.duration.shorter,easing:o.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${inputClasses$1.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${inputClasses$1.error}`]:{"&:before, &:after":{borderBottomColor:(o.vars||o).palette.error.main}},"&:before":{borderBottom:`1px solid ${j}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:o.transitions.create("border-bottom-color",{duration:o.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${inputClasses$1.disabled}, .${inputClasses$1.error}):before`]:{borderBottom:`2px solid ${(o.vars||o).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${j}`}},[`&.${inputClasses$1.disabled}:before`]:{borderBottomStyle:"dotted"}})}),InputInput=styled$1(InputBaseComponent,{name:"MuiInput",slot:"Input",overridesResolver:inputOverridesResolver})({}),Input=react.exports.forwardRef(function(i,s){var j,$,_e,tt;const et=useThemeProps({props:i,name:"MuiInput"}),{disableUnderline:rt,components:ot={},componentsProps:lt,fullWidth:dt=!1,inputComponent:at="input",multiline:ct=!1,slotProps:st,slots:ut={},type:mt="text"}=et,bt=_objectWithoutPropertiesLoose$1(et,_excluded$g),Tt=useUtilityClasses$e(et),yt={root:{ownerState:{disableUnderline:rt}}},ft=(st!=null?st:lt)?deepmerge(st!=null?st:lt,yt):yt,Ct=(j=($=ut.root)!=null?$:ot.Root)!=null?j:InputRoot,Ft=(_e=(tt=ut.input)!=null?tt:ot.Input)!=null?_e:InputInput;return jsx(InputBase$1,_extends({slots:{root:Ct,input:Ft},slotProps:ft,fullWidth:dt,inputComponent:at,multiline:ct,ref:s,type:mt},bt,{classes:Tt}))});Input.muiName="Input";var Input$1=Input;function getInputLabelUtilityClasses(o){return generateUtilityClass("MuiInputLabel",o)}generateUtilityClasses("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const _excluded$f=["disableAnimation","margin","shrink","variant","className"],useUtilityClasses$d=o=>{const{classes:i,formControl:s,size:j,shrink:$,disableAnimation:_e,variant:tt,required:et}=o,ot=composeClasses({root:["root",s&&"formControl",!_e&&"animated",$&&"shrink",j==="small"&&"sizeSmall",tt],asterisk:[et&&"asterisk"]},getInputLabelUtilityClasses,i);return _extends({},i,ot)},InputLabelRoot=styled$1(FormLabel$1,{shouldForwardProp:o=>rootShouldForwardProp(o)||o==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(o,i)=>{const{ownerState:s}=o;return[{[`& .${formLabelClasses$1.asterisk}`]:i.asterisk},i.root,s.formControl&&i.formControl,s.size==="small"&&i.sizeSmall,s.shrink&&i.shrink,!s.disableAnimation&&i.animated,i[s.variant]]}})(({theme:o,ownerState:i})=>_extends({display:"block",transformOrigin:"top left",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%"},i.formControl&&{position:"absolute",left:0,top:0,transform:"translate(0, 20px) scale(1)"},i.size==="small"&&{transform:"translate(0, 17px) scale(1)"},i.shrink&&{transform:"translate(0, -1.5px) scale(0.75)",transformOrigin:"top left",maxWidth:"133%"},!i.disableAnimation&&{transition:o.transitions.create(["color","transform","max-width"],{duration:o.transitions.duration.shorter,easing:o.transitions.easing.easeOut})},i.variant==="filled"&&_extends({zIndex:1,pointerEvents:"none",transform:"translate(12px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},i.size==="small"&&{transform:"translate(12px, 13px) scale(1)"},i.shrink&&_extends({userSelect:"none",pointerEvents:"auto",transform:"translate(12px, 7px) scale(0.75)",maxWidth:"calc(133% - 24px)"},i.size==="small"&&{transform:"translate(12px, 4px) scale(0.75)"})),i.variant==="outlined"&&_extends({zIndex:1,pointerEvents:"none",transform:"translate(14px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},i.size==="small"&&{transform:"translate(14px, 9px) scale(1)"},i.shrink&&{userSelect:"none",pointerEvents:"auto",maxWidth:"calc(133% - 32px)",transform:"translate(14px, -9px) scale(0.75)"}))),InputLabel=react.exports.forwardRef(function(i,s){const j=useThemeProps({name:"MuiInputLabel",props:i}),{disableAnimation:$=!1,shrink:_e,className:tt}=j,et=_objectWithoutPropertiesLoose$1(j,_excluded$f),rt=useFormControl();let ot=_e;typeof ot=="undefined"&&rt&&(ot=rt.filled||rt.focused||rt.adornedStart);const lt=formControlState({props:j,muiFormControl:rt,states:["size","variant","required"]}),dt=_extends({},j,{disableAnimation:$,formControl:rt,shrink:ot,size:lt.size,variant:lt.variant,required:lt.required}),at=useUtilityClasses$d(dt);return jsx(InputLabelRoot,_extends({"data-shrink":ot,ownerState:dt,ref:s,className:clsx(at.root,tt)},et,{classes:at}))});var InputLabel$1=InputLabel;const ListContext=react.exports.createContext({});var ListContext$1=ListContext;function getListUtilityClass(o){return generateUtilityClass("MuiList",o)}generateUtilityClasses("MuiList",["root","padding","dense","subheader"]);const _excluded$e=["children","className","component","dense","disablePadding","subheader"],useUtilityClasses$c=o=>{const{classes:i,disablePadding:s,dense:j,subheader:$}=o;return composeClasses({root:["root",!s&&"padding",j&&"dense",$&&"subheader"]},getListUtilityClass,i)},ListRoot=styled$1("ul",{name:"MuiList",slot:"Root",overridesResolver:(o,i)=>{const{ownerState:s}=o;return[i.root,!s.disablePadding&&i.padding,s.dense&&i.dense,s.subheader&&i.subheader]}})(({ownerState:o})=>_extends({listStyle:"none",margin:0,padding:0,position:"relative"},!o.disablePadding&&{paddingTop:8,paddingBottom:8},o.subheader&&{paddingTop:0})),List=react.exports.forwardRef(function(i,s){const j=useThemeProps({props:i,name:"MuiList"}),{children:$,className:_e,component:tt="ul",dense:et=!1,disablePadding:rt=!1,subheader:ot}=j,lt=_objectWithoutPropertiesLoose$1(j,_excluded$e),dt=react.exports.useMemo(()=>({dense:et}),[et]),at=_extends({},j,{component:tt,dense:et,disablePadding:rt}),ct=useUtilityClasses$c(at);return jsx(ListContext$1.Provider,{value:dt,children:jsxs(ListRoot,_extends({as:tt,className:clsx(ct.root,_e),ref:s,ownerState:at},lt,{children:[ot,$]}))})});var List$1=List;const listItemIconClasses=generateUtilityClasses("MuiListItemIcon",["root","alignItemsFlexStart"]);var listItemIconClasses$1=listItemIconClasses;const listItemTextClasses=generateUtilityClasses("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]);var listItemTextClasses$1=listItemTextClasses;const _excluded$d=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function nextItem(o,i,s){return o===i?o.firstChild:i&&i.nextElementSibling?i.nextElementSibling:s?null:o.firstChild}function previousItem(o,i,s){return o===i?s?o.firstChild:o.lastChild:i&&i.previousElementSibling?i.previousElementSibling:s?null:o.lastChild}function textCriteriaMatches(o,i){if(i===void 0)return!0;let s=o.innerText;return s===void 0&&(s=o.textContent),s=s.trim().toLowerCase(),s.length===0?!1:i.repeating?s[0]===i.keys[0]:s.indexOf(i.keys.join(""))===0}function moveFocus(o,i,s,j,$,_e){let tt=!1,et=$(o,i,i?s:!1);for(;et;){if(et===o.firstChild){if(tt)return!1;tt=!0}const rt=j?!1:et.disabled||et.getAttribute("aria-disabled")==="true";if(!et.hasAttribute("tabindex")||!textCriteriaMatches(et,_e)||rt)et=$(o,et,s);else return et.focus(),!0}return!1}const MenuList=react.exports.forwardRef(function(i,s){const{actions:j,autoFocus:$=!1,autoFocusItem:_e=!1,children:tt,className:et,disabledItemsFocusable:rt=!1,disableListWrap:ot=!1,onKeyDown:lt,variant:dt="selectedMenu"}=i,at=_objectWithoutPropertiesLoose$1(i,_excluded$d),ct=react.exports.useRef(null),st=react.exports.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});useEnhancedEffect$1(()=>{$&&ct.current.focus()},[$]),react.exports.useImperativeHandle(j,()=>({adjustStyleForScrollbar:(ht,yt)=>{const ft=!ct.current.style.width;if(ht.clientHeight{const yt=ct.current,ft=ht.key,Ct=ownerDocument(yt).activeElement;if(ft==="ArrowDown")ht.preventDefault(),moveFocus(yt,Ct,ot,rt,nextItem);else if(ft==="ArrowUp")ht.preventDefault(),moveFocus(yt,Ct,ot,rt,previousItem);else if(ft==="Home")ht.preventDefault(),moveFocus(yt,null,ot,rt,nextItem);else if(ft==="End")ht.preventDefault(),moveFocus(yt,null,ot,rt,previousItem);else if(ft.length===1){const Ft=st.current,Ut=ft.toLowerCase(),wt=performance.now();Ft.keys.length>0&&(wt-Ft.lastTime>500?(Ft.keys=[],Ft.repeating=!0,Ft.previousKeyMatched=!0):Ft.repeating&&Ut!==Ft.keys[0]&&(Ft.repeating=!1)),Ft.lastTime=wt,Ft.keys.push(Ut);const vt=Ct&&!Ft.repeating&&textCriteriaMatches(Ct,Ft);Ft.previousKeyMatched&&(vt||moveFocus(yt,Ct,!1,rt,nextItem,Ft))?ht.preventDefault():Ft.previousKeyMatched=!1}lt&<(ht)},mt=useForkRef(ct,s);let bt=-1;react.exports.Children.forEach(tt,(ht,yt)=>{if(!react.exports.isValidElement(ht)){bt===yt&&(bt+=1,bt>=tt.length&&(bt=-1));return}ht.props.disabled||(dt==="selectedMenu"&&ht.props.selected||bt===-1)&&(bt=yt),bt===yt&&(ht.props.disabled||ht.props.muiSkipListHighlight||ht.type.muiSkipListHighlight)&&(bt+=1,bt>=tt.length&&(bt=-1))});const Tt=react.exports.Children.map(tt,(ht,yt)=>{if(yt===bt){const ft={};return _e&&(ft.autoFocus=!0),ht.props.tabIndex===void 0&&dt==="selectedMenu"&&(ft.tabIndex=0),react.exports.cloneElement(ht,ft)}return ht});return jsx(List$1,_extends({role:"menu",ref:mt,className:et,onKeyDown:ut,tabIndex:$?0:-1},at,{children:Tt}))});var MenuList$1=MenuList;function getPopoverUtilityClass(o){return generateUtilityClass("MuiPopover",o)}generateUtilityClasses("MuiPopover",["root","paper"]);const _excluded$c=["onEntering"],_excluded2$3=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps"],_excluded3=["slotProps"];function getOffsetTop(o,i){let s=0;return typeof i=="number"?s=i:i==="center"?s=o.height/2:i==="bottom"&&(s=o.height),s}function getOffsetLeft(o,i){let s=0;return typeof i=="number"?s=i:i==="center"?s=o.width/2:i==="right"&&(s=o.width),s}function getTransformOriginValue(o){return[o.horizontal,o.vertical].map(i=>typeof i=="number"?`${i}px`:i).join(" ")}function resolveAnchorEl(o){return typeof o=="function"?o():o}const useUtilityClasses$b=o=>{const{classes:i}=o;return composeClasses({root:["root"],paper:["paper"]},getPopoverUtilityClass,i)},PopoverRoot=styled$1(Modal$1,{name:"MuiPopover",slot:"Root",overridesResolver:(o,i)=>i.root})({}),PopoverPaper=styled$1(Paper$1,{name:"MuiPopover",slot:"Paper",overridesResolver:(o,i)=>i.paper})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),Popover=react.exports.forwardRef(function(i,s){var j,$,_e;const tt=useThemeProps({props:i,name:"MuiPopover"}),{action:et,anchorEl:rt,anchorOrigin:ot={vertical:"top",horizontal:"left"},anchorPosition:lt,anchorReference:dt="anchorEl",children:at,className:ct,container:st,elevation:ut=8,marginThreshold:mt=16,open:bt,PaperProps:Tt={},slots:ht,slotProps:yt,transformOrigin:ft={vertical:"top",horizontal:"left"},TransitionComponent:Ct=Grow$1,transitionDuration:Ft="auto",TransitionProps:{onEntering:Ut}={}}=tt,wt=_objectWithoutPropertiesLoose$1(tt.TransitionProps,_excluded$c),vt=_objectWithoutPropertiesLoose$1(tt,_excluded2$3),At=(j=yt==null?void 0:yt.paper)!=null?j:Tt,Et=react.exports.useRef(),Mt=useForkRef(Et,At.ref),Lt=_extends({},tt,{anchorOrigin:ot,anchorReference:dt,elevation:ut,marginThreshold:mt,externalPaperSlotProps:At,transformOrigin:ft,TransitionComponent:Ct,transitionDuration:Ft,TransitionProps:wt}),kt=useUtilityClasses$b(Lt),Rt=react.exports.useCallback(()=>{if(dt==="anchorPosition")return lt;const Zt=resolveAnchorEl(rt),cn=(Zt&&Zt.nodeType===1?Zt:ownerDocument(Et.current).body).getBoundingClientRect();return{top:cn.top+getOffsetTop(cn,ot.vertical),left:cn.left+getOffsetLeft(cn,ot.horizontal)}},[rt,ot.horizontal,ot.vertical,lt,dt]),Ot=react.exports.useCallback(Zt=>({vertical:getOffsetTop(Zt,ft.vertical),horizontal:getOffsetLeft(Zt,ft.horizontal)}),[ft.horizontal,ft.vertical]),It=react.exports.useCallback(Zt=>{const rn={width:Zt.offsetWidth,height:Zt.offsetHeight},cn=Ot(rn);if(dt==="none")return{top:null,left:null,transformOrigin:getTransformOriginValue(cn)};const sn=Rt();let Ht=sn.top-cn.vertical,qt=sn.left-cn.horizontal;const nn=Ht+rn.height,yn=qt+rn.width,ln=ownerWindow(resolveAnchorEl(rt)),_n=ln.innerHeight-mt,vn=ln.innerWidth-mt;if(Ht_n){const hn=nn-_n;Ht-=hn,cn.vertical+=hn}if(qtvn){const hn=yn-vn;qt-=hn,cn.horizontal+=hn}return{top:`${Math.round(Ht)}px`,left:`${Math.round(qt)}px`,transformOrigin:getTransformOriginValue(cn)}},[rt,dt,Rt,Ot,mt]),[St,gt]=react.exports.useState(bt),Bt=react.exports.useCallback(()=>{const Zt=Et.current;if(!Zt)return;const rn=It(Zt);rn.top!==null&&(Zt.style.top=rn.top),rn.left!==null&&(Zt.style.left=rn.left),Zt.style.transformOrigin=rn.transformOrigin,gt(!0)},[It]),Dt=(Zt,rn)=>{Ut&&Ut(Zt,rn),Bt()},Yt=()=>{gt(!1)};react.exports.useEffect(()=>{bt&&Bt()}),react.exports.useImperativeHandle(et,()=>bt?{updatePosition:()=>{Bt()}}:null,[bt,Bt]),react.exports.useEffect(()=>{if(!bt)return;const Zt=debounce(()=>{Bt()}),rn=ownerWindow(rt);return rn.addEventListener("resize",Zt),()=>{Zt.clear(),rn.removeEventListener("resize",Zt)}},[rt,bt,Bt]);let Xt=Ft;Ft==="auto"&&!Ct.muiSupportAuto&&(Xt=void 0);const Jt=st||(rt?ownerDocument(resolveAnchorEl(rt)).body:void 0),zt=($=ht==null?void 0:ht.root)!=null?$:PopoverRoot,Wt=(_e=ht==null?void 0:ht.paper)!=null?_e:PopoverPaper,xt=useSlotProps({elementType:Wt,externalSlotProps:_extends({},At,{style:St?At.style:_extends({},At.style,{opacity:0})}),additionalProps:{elevation:ut,ref:Mt},ownerState:Lt,className:clsx(kt.paper,At==null?void 0:At.className)}),Pt=useSlotProps({elementType:zt,externalSlotProps:(yt==null?void 0:yt.root)||{},externalForwardedProps:vt,additionalProps:{ref:s,slotProps:{backdrop:{invisible:!0}},container:Jt,open:bt},ownerState:Lt,className:clsx(kt.root,ct)}),{slotProps:$t}=Pt,en=_objectWithoutPropertiesLoose$1(Pt,_excluded3);return jsx(zt,_extends({},en,!isHostComponent(zt)&&{slotProps:$t},{children:jsx(Ct,_extends({appear:!0,in:bt,onEntering:Dt,onExited:Yt,timeout:Xt},wt,{children:jsx(Wt,_extends({},xt,{children:at}))}))}))});var Popover$1=Popover;function getMenuUtilityClass(o){return generateUtilityClass("MuiMenu",o)}generateUtilityClasses("MuiMenu",["root","paper","list"]);const _excluded$b=["onEntering"],_excluded2$2=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],RTL_ORIGIN={vertical:"top",horizontal:"right"},LTR_ORIGIN={vertical:"top",horizontal:"left"},useUtilityClasses$a=o=>{const{classes:i}=o;return composeClasses({root:["root"],paper:["paper"],list:["list"]},getMenuUtilityClass,i)},MenuRoot=styled$1(Popover$1,{shouldForwardProp:o=>rootShouldForwardProp(o)||o==="classes",name:"MuiMenu",slot:"Root",overridesResolver:(o,i)=>i.root})({}),MenuPaper=styled$1(PopoverPaper,{name:"MuiMenu",slot:"Paper",overridesResolver:(o,i)=>i.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),MenuMenuList=styled$1(MenuList$1,{name:"MuiMenu",slot:"List",overridesResolver:(o,i)=>i.list})({outline:0}),Menu=react.exports.forwardRef(function(i,s){var j,$;const _e=useThemeProps({props:i,name:"MuiMenu"}),{autoFocus:tt=!0,children:et,className:rt,disableAutoFocusItem:ot=!1,MenuListProps:lt={},onClose:dt,open:at,PaperProps:ct={},PopoverClasses:st,transitionDuration:ut="auto",TransitionProps:{onEntering:mt}={},variant:bt="selectedMenu",slots:Tt={},slotProps:ht={}}=_e,yt=_objectWithoutPropertiesLoose$1(_e.TransitionProps,_excluded$b),ft=_objectWithoutPropertiesLoose$1(_e,_excluded2$2),Ct=useTheme(),Ft=Ct.direction==="rtl",Ut=_extends({},_e,{autoFocus:tt,disableAutoFocusItem:ot,MenuListProps:lt,onEntering:mt,PaperProps:ct,transitionDuration:ut,TransitionProps:yt,variant:bt}),wt=useUtilityClasses$a(Ut),vt=tt&&!ot&&at,At=react.exports.useRef(null),Et=(St,gt)=>{At.current&&At.current.adjustStyleForScrollbar(St,Ct),mt&&mt(St,gt)},Mt=St=>{St.key==="Tab"&&(St.preventDefault(),dt&&dt(St,"tabKeyDown"))};let Lt=-1;react.exports.Children.map(et,(St,gt)=>{!react.exports.isValidElement(St)||St.props.disabled||(bt==="selectedMenu"&&St.props.selected||Lt===-1)&&(Lt=gt)});const kt=(j=Tt.paper)!=null?j:MenuPaper,Rt=($=ht.paper)!=null?$:ct,Ot=useSlotProps({elementType:Tt.root,externalSlotProps:ht.root,ownerState:Ut,className:[wt.root,rt]}),It=useSlotProps({elementType:kt,externalSlotProps:Rt,ownerState:Ut,className:wt.paper});return jsx(MenuRoot,_extends({onClose:dt,anchorOrigin:{vertical:"bottom",horizontal:Ft?"right":"left"},transformOrigin:Ft?RTL_ORIGIN:LTR_ORIGIN,slots:{paper:kt,root:Tt.root},slotProps:{root:Ot,paper:It},open:at,ref:s,transitionDuration:ut,TransitionProps:_extends({onEntering:Et},yt),ownerState:Ut},ft,{classes:st,children:jsx(MenuMenuList,_extends({onKeyDown:Mt,actions:At,autoFocus:tt&&(Lt===-1||ot),autoFocusItem:vt,variant:bt},lt,{className:clsx(wt.list,lt.className),children:et}))}))});var Menu$1=Menu;function getMenuItemUtilityClass(o){return generateUtilityClass("MuiMenuItem",o)}const menuItemClasses=generateUtilityClasses("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]);var menuItemClasses$1=menuItemClasses;const _excluded$a=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],overridesResolver=(o,i)=>{const{ownerState:s}=o;return[i.root,s.dense&&i.dense,s.divider&&i.divider,!s.disableGutters&&i.gutters]},useUtilityClasses$9=o=>{const{disabled:i,dense:s,divider:j,disableGutters:$,selected:_e,classes:tt}=o,rt=composeClasses({root:["root",s&&"dense",i&&"disabled",!$&&"gutters",j&&"divider",_e&&"selected"]},getMenuItemUtilityClass,tt);return _extends({},tt,rt)},MenuItemRoot=styled$1(ButtonBase$1,{shouldForwardProp:o=>rootShouldForwardProp(o)||o==="classes",name:"MuiMenuItem",slot:"Root",overridesResolver})(({theme:o,ownerState:i})=>_extends({},o.typography.body1,{display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",whiteSpace:"nowrap"},!i.disableGutters&&{paddingLeft:16,paddingRight:16},i.divider&&{borderBottom:`1px solid ${(o.vars||o).palette.divider}`,backgroundClip:"padding-box"},{"&:hover":{textDecoration:"none",backgroundColor:(o.vars||o).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${menuItemClasses$1.selected}`]:{backgroundColor:o.vars?`rgba(${o.vars.palette.primary.mainChannel} / ${o.vars.palette.action.selectedOpacity})`:alpha(o.palette.primary.main,o.palette.action.selectedOpacity),[`&.${menuItemClasses$1.focusVisible}`]:{backgroundColor:o.vars?`rgba(${o.vars.palette.primary.mainChannel} / calc(${o.vars.palette.action.selectedOpacity} + ${o.vars.palette.action.focusOpacity}))`:alpha(o.palette.primary.main,o.palette.action.selectedOpacity+o.palette.action.focusOpacity)}},[`&.${menuItemClasses$1.selected}:hover`]:{backgroundColor:o.vars?`rgba(${o.vars.palette.primary.mainChannel} / calc(${o.vars.palette.action.selectedOpacity} + ${o.vars.palette.action.hoverOpacity}))`:alpha(o.palette.primary.main,o.palette.action.selectedOpacity+o.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:o.vars?`rgba(${o.vars.palette.primary.mainChannel} / ${o.vars.palette.action.selectedOpacity})`:alpha(o.palette.primary.main,o.palette.action.selectedOpacity)}},[`&.${menuItemClasses$1.focusVisible}`]:{backgroundColor:(o.vars||o).palette.action.focus},[`&.${menuItemClasses$1.disabled}`]:{opacity:(o.vars||o).palette.action.disabledOpacity},[`& + .${dividerClasses$1.root}`]:{marginTop:o.spacing(1),marginBottom:o.spacing(1)},[`& + .${dividerClasses$1.inset}`]:{marginLeft:52},[`& .${listItemTextClasses$1.root}`]:{marginTop:0,marginBottom:0},[`& .${listItemTextClasses$1.inset}`]:{paddingLeft:36},[`& .${listItemIconClasses$1.root}`]:{minWidth:36}},!i.dense&&{[o.breakpoints.up("sm")]:{minHeight:"auto"}},i.dense&&_extends({minHeight:32,paddingTop:4,paddingBottom:4},o.typography.body2,{[`& .${listItemIconClasses$1.root} svg`]:{fontSize:"1.25rem"}}))),MenuItem=react.exports.forwardRef(function(i,s){const j=useThemeProps({props:i,name:"MuiMenuItem"}),{autoFocus:$=!1,component:_e="li",dense:tt=!1,divider:et=!1,disableGutters:rt=!1,focusVisibleClassName:ot,role:lt="menuitem",tabIndex:dt,className:at}=j,ct=_objectWithoutPropertiesLoose$1(j,_excluded$a),st=react.exports.useContext(ListContext$1),ut=react.exports.useMemo(()=>({dense:tt||st.dense||!1,disableGutters:rt}),[st.dense,tt,rt]),mt=react.exports.useRef(null);useEnhancedEffect$1(()=>{$&&mt.current&&mt.current.focus()},[$]);const bt=_extends({},j,{dense:ut.dense,divider:et,disableGutters:rt}),Tt=useUtilityClasses$9(j),ht=useForkRef(mt,s);let yt;return j.disabled||(yt=dt!==void 0?dt:-1),jsx(ListContext$1.Provider,{value:ut,children:jsx(MenuItemRoot,_extends({ref:ht,role:lt,tabIndex:yt,component:_e,focusVisibleClassName:clsx(Tt.focusVisible,ot),className:clsx(Tt.root,at)},ct,{ownerState:bt,classes:Tt}))})});var MenuItem$1=MenuItem;function getNativeSelectUtilityClasses(o){return generateUtilityClass("MuiNativeSelect",o)}const nativeSelectClasses=generateUtilityClasses("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);var nativeSelectClasses$1=nativeSelectClasses;const _excluded$9=["className","disabled","error","IconComponent","inputRef","variant"],useUtilityClasses$8=o=>{const{classes:i,variant:s,disabled:j,multiple:$,open:_e,error:tt}=o,et={select:["select",s,j&&"disabled",$&&"multiple",tt&&"error"],icon:["icon",`icon${capitalize$1(s)}`,_e&&"iconOpen",j&&"disabled"]};return composeClasses(et,getNativeSelectUtilityClasses,i)},nativeSelectSelectStyles=({ownerState:o,theme:i})=>_extends({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":_extends({},i.vars?{backgroundColor:`rgba(${i.vars.palette.common.onBackgroundChannel} / 0.05)`}:{backgroundColor:i.palette.mode==="light"?"rgba(0, 0, 0, 0.05)":"rgba(255, 255, 255, 0.05)"},{borderRadius:0}),"&::-ms-expand":{display:"none"},[`&.${nativeSelectClasses$1.disabled}`]:{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:(i.vars||i).palette.background.paper},"&&&":{paddingRight:24,minWidth:16}},o.variant==="filled"&&{"&&&":{paddingRight:32}},o.variant==="outlined"&&{borderRadius:(i.vars||i).shape.borderRadius,"&:focus":{borderRadius:(i.vars||i).shape.borderRadius},"&&&":{paddingRight:32}}),NativeSelectSelect=styled$1("select",{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:rootShouldForwardProp,overridesResolver:(o,i)=>{const{ownerState:s}=o;return[i.select,i[s.variant],s.error&&i.error,{[`&.${nativeSelectClasses$1.multiple}`]:i.multiple}]}})(nativeSelectSelectStyles),nativeSelectIconStyles=({ownerState:o,theme:i})=>_extends({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(i.vars||i).palette.action.active,[`&.${nativeSelectClasses$1.disabled}`]:{color:(i.vars||i).palette.action.disabled}},o.open&&{transform:"rotate(180deg)"},o.variant==="filled"&&{right:7},o.variant==="outlined"&&{right:7}),NativeSelectIcon=styled$1("svg",{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(o,i)=>{const{ownerState:s}=o;return[i.icon,s.variant&&i[`icon${capitalize$1(s.variant)}`],s.open&&i.iconOpen]}})(nativeSelectIconStyles),NativeSelectInput=react.exports.forwardRef(function(i,s){const{className:j,disabled:$,error:_e,IconComponent:tt,inputRef:et,variant:rt="standard"}=i,ot=_objectWithoutPropertiesLoose$1(i,_excluded$9),lt=_extends({},i,{disabled:$,variant:rt,error:_e}),dt=useUtilityClasses$8(lt);return jsxs(react.exports.Fragment,{children:[jsx(NativeSelectSelect,_extends({ownerState:lt,className:clsx(dt.select,j),disabled:$,ref:et||s},ot)),i.multiple?null:jsx(NativeSelectIcon,{as:tt,ownerState:lt,className:dt.icon})]})});var NativeSelectInput$1=NativeSelectInput;const _excluded$8=["className","children","classes","IconComponent","input","inputProps","variant"],_excluded2$1=["root"],useUtilityClasses$7=o=>{const{classes:i}=o;return composeClasses({root:["root"]},getNativeSelectUtilityClasses,i)},defaultInput=jsx(Input$1,{}),NativeSelect=react.exports.forwardRef(function(i,s){const j=useThemeProps({name:"MuiNativeSelect",props:i}),{className:$,children:_e,classes:tt={},IconComponent:et=ArrowDropDownIcon,input:rt=defaultInput,inputProps:ot}=j,lt=_objectWithoutPropertiesLoose$1(j,_excluded$8),dt=useFormControl(),at=formControlState({props:j,muiFormControl:dt,states:["variant"]}),ct=_extends({},j,{classes:tt}),st=useUtilityClasses$7(ct),ut=_objectWithoutPropertiesLoose$1(tt,_excluded2$1);return jsx(react.exports.Fragment,{children:react.exports.cloneElement(rt,_extends({inputComponent:NativeSelectInput$1,inputProps:_extends({children:_e,classes:ut,IconComponent:et,variant:at.variant,type:void 0},ot,rt?rt.props.inputProps:{}),ref:s},lt,{className:clsx(st.root,rt.props.className,$)}))})});NativeSelect.muiName="Select";var NativeSelect$1=NativeSelect,_span$1;const _excluded$7=["children","classes","className","label","notched"],NotchedOutlineRoot$1=styled$1("fieldset")({textAlign:"left",position:"absolute",bottom:0,right:0,top:-5,left:0,margin:0,padding:"0 8px",pointerEvents:"none",borderRadius:"inherit",borderStyle:"solid",borderWidth:1,overflow:"hidden",minWidth:"0%"}),NotchedOutlineLegend=styled$1("legend")(({ownerState:o,theme:i})=>_extends({float:"unset",width:"auto",overflow:"hidden"},!o.withLabel&&{padding:0,lineHeight:"11px",transition:i.transitions.create("width",{duration:150,easing:i.transitions.easing.easeOut})},o.withLabel&&_extends({display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:i.transitions.create("max-width",{duration:50,easing:i.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}},o.notched&&{maxWidth:"100%",transition:i.transitions.create("max-width",{duration:100,easing:i.transitions.easing.easeOut,delay:50})})));function NotchedOutline(o){const{className:i,label:s,notched:j}=o,$=_objectWithoutPropertiesLoose$1(o,_excluded$7),_e=s!=null&&s!=="",tt=_extends({},o,{notched:j,withLabel:_e});return jsx(NotchedOutlineRoot$1,_extends({"aria-hidden":!0,className:i,ownerState:tt},$,{children:jsx(NotchedOutlineLegend,{ownerState:tt,children:_e?jsx("span",{children:s}):_span$1||(_span$1=jsx("span",{className:"notranslate",children:"\u200B"}))})}))}const _excluded$6=["components","fullWidth","inputComponent","label","multiline","notched","slots","type"],useUtilityClasses$6=o=>{const{classes:i}=o,j=composeClasses({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},getOutlinedInputUtilityClass,i);return _extends({},i,j)},OutlinedInputRoot=styled$1(InputBaseRoot,{shouldForwardProp:o=>rootShouldForwardProp(o)||o==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:rootOverridesResolver})(({theme:o,ownerState:i})=>{const s=o.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return _extends({position:"relative",borderRadius:(o.vars||o).shape.borderRadius,[`&:hover .${outlinedInputClasses$1.notchedOutline}`]:{borderColor:(o.vars||o).palette.text.primary},"@media (hover: none)":{[`&:hover .${outlinedInputClasses$1.notchedOutline}`]:{borderColor:o.vars?`rgba(${o.vars.palette.common.onBackgroundChannel} / 0.23)`:s}},[`&.${outlinedInputClasses$1.focused} .${outlinedInputClasses$1.notchedOutline}`]:{borderColor:(o.vars||o).palette[i.color].main,borderWidth:2},[`&.${outlinedInputClasses$1.error} .${outlinedInputClasses$1.notchedOutline}`]:{borderColor:(o.vars||o).palette.error.main},[`&.${outlinedInputClasses$1.disabled} .${outlinedInputClasses$1.notchedOutline}`]:{borderColor:(o.vars||o).palette.action.disabled}},i.startAdornment&&{paddingLeft:14},i.endAdornment&&{paddingRight:14},i.multiline&&_extends({padding:"16.5px 14px"},i.size==="small"&&{padding:"8.5px 14px"}))}),NotchedOutlineRoot=styled$1(NotchedOutline,{name:"MuiOutlinedInput",slot:"NotchedOutline",overridesResolver:(o,i)=>i.notchedOutline})(({theme:o})=>{const i=o.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{borderColor:o.vars?`rgba(${o.vars.palette.common.onBackgroundChannel} / 0.23)`:i}}),OutlinedInputInput=styled$1(InputBaseComponent,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:inputOverridesResolver})(({theme:o,ownerState:i})=>_extends({padding:"16.5px 14px"},!o.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:o.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:o.palette.mode==="light"?null:"#fff",caretColor:o.palette.mode==="light"?null:"#fff",borderRadius:"inherit"}},o.vars&&{"&:-webkit-autofill":{borderRadius:"inherit"},[o.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},i.size==="small"&&{padding:"8.5px 14px"},i.multiline&&{padding:0},i.startAdornment&&{paddingLeft:0},i.endAdornment&&{paddingRight:0})),OutlinedInput=react.exports.forwardRef(function(i,s){var j,$,_e,tt,et;const rt=useThemeProps({props:i,name:"MuiOutlinedInput"}),{components:ot={},fullWidth:lt=!1,inputComponent:dt="input",label:at,multiline:ct=!1,notched:st,slots:ut={},type:mt="text"}=rt,bt=_objectWithoutPropertiesLoose$1(rt,_excluded$6),Tt=useUtilityClasses$6(rt),ht=useFormControl(),yt=formControlState({props:rt,muiFormControl:ht,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),ft=_extends({},rt,{color:yt.color||"primary",disabled:yt.disabled,error:yt.error,focused:yt.focused,formControl:ht,fullWidth:lt,hiddenLabel:yt.hiddenLabel,multiline:ct,size:yt.size,type:mt}),Ct=(j=($=ut.root)!=null?$:ot.Root)!=null?j:OutlinedInputRoot,Ft=(_e=(tt=ut.input)!=null?tt:ot.Input)!=null?_e:OutlinedInputInput;return jsx(InputBase$1,_extends({slots:{root:Ct,input:Ft},renderSuffix:Ut=>jsx(NotchedOutlineRoot,{ownerState:ft,className:Tt.notchedOutline,label:at!=null&&at!==""&&yt.required?et||(et=jsxs(react.exports.Fragment,{children:[at,"\u2009","*"]})):at,notched:typeof st!="undefined"?st:Boolean(Ut.startAdornment||Ut.filled||Ut.focused)}),fullWidth:lt,inputComponent:dt,multiline:ct,ref:s,type:mt},bt,{classes:_extends({},Tt,{notchedOutline:null})}))});OutlinedInput.muiName="Input";var OutlinedInput$1=OutlinedInput;function getSelectUtilityClasses(o){return generateUtilityClass("MuiSelect",o)}const selectClasses=generateUtilityClasses("MuiSelect",["select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);var selectClasses$1=selectClasses,_span;const _excluded$5=["aria-describedby","aria-label","autoFocus","autoWidth","children","className","defaultOpen","defaultValue","disabled","displayEmpty","error","IconComponent","inputRef","labelId","MenuProps","multiple","name","onBlur","onChange","onClose","onFocus","onOpen","open","readOnly","renderValue","SelectDisplayProps","tabIndex","type","value","variant"],SelectSelect=styled$1("div",{name:"MuiSelect",slot:"Select",overridesResolver:(o,i)=>{const{ownerState:s}=o;return[{[`&.${selectClasses$1.select}`]:i.select},{[`&.${selectClasses$1.select}`]:i[s.variant]},{[`&.${selectClasses$1.error}`]:i.error},{[`&.${selectClasses$1.multiple}`]:i.multiple}]}})(nativeSelectSelectStyles,{[`&.${selectClasses$1.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),SelectIcon=styled$1("svg",{name:"MuiSelect",slot:"Icon",overridesResolver:(o,i)=>{const{ownerState:s}=o;return[i.icon,s.variant&&i[`icon${capitalize$1(s.variant)}`],s.open&&i.iconOpen]}})(nativeSelectIconStyles),SelectNativeInput=styled$1("input",{shouldForwardProp:o=>slotShouldForwardProp(o)&&o!=="classes",name:"MuiSelect",slot:"NativeInput",overridesResolver:(o,i)=>i.nativeInput})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"});function areEqualValues(o,i){return typeof i=="object"&&i!==null?o===i:String(o)===String(i)}function isEmpty(o){return o==null||typeof o=="string"&&!o.trim()}const useUtilityClasses$5=o=>{const{classes:i,variant:s,disabled:j,multiple:$,open:_e,error:tt}=o,et={select:["select",s,j&&"disabled",$&&"multiple",tt&&"error"],icon:["icon",`icon${capitalize$1(s)}`,_e&&"iconOpen",j&&"disabled"],nativeInput:["nativeInput"]};return composeClasses(et,getSelectUtilityClasses,i)},SelectInput=react.exports.forwardRef(function(i,s){const{"aria-describedby":j,"aria-label":$,autoFocus:_e,autoWidth:tt,children:et,className:rt,defaultOpen:ot,defaultValue:lt,disabled:dt,displayEmpty:at,error:ct=!1,IconComponent:st,inputRef:ut,labelId:mt,MenuProps:bt={},multiple:Tt,name:ht,onBlur:yt,onChange:ft,onClose:Ct,onFocus:Ft,onOpen:Ut,open:wt,readOnly:vt,renderValue:At,SelectDisplayProps:Et={},tabIndex:Mt,value:Lt,variant:kt="standard"}=i,Rt=_objectWithoutPropertiesLoose$1(i,_excluded$5),[Ot,It]=useControlled({controlled:Lt,default:lt,name:"Select"}),[St,gt]=useControlled({controlled:wt,default:ot,name:"Select"}),Bt=react.exports.useRef(null),Dt=react.exports.useRef(null),[Yt,Xt]=react.exports.useState(null),{current:Jt}=react.exports.useRef(wt!=null),[zt,Wt]=react.exports.useState(),xt=useForkRef(s,ut),Pt=react.exports.useCallback(kn=>{Dt.current=kn,kn&&Xt(kn)},[]),$t=Yt==null?void 0:Yt.parentNode;react.exports.useImperativeHandle(xt,()=>({focus:()=>{Dt.current.focus()},node:Bt.current,value:Ot}),[Ot]),react.exports.useEffect(()=>{ot&&St&&Yt&&!Jt&&(Wt(tt?null:$t.clientWidth),Dt.current.focus())},[Yt,tt]),react.exports.useEffect(()=>{_e&&Dt.current.focus()},[_e]),react.exports.useEffect(()=>{if(!mt)return;const kn=ownerDocument(Dt.current).getElementById(mt);if(kn){const Vn=()=>{getSelection().isCollapsed&&Dt.current.focus()};return kn.addEventListener("click",Vn),()=>{kn.removeEventListener("click",Vn)}}},[mt]);const en=(kn,Vn)=>{kn?Ut&&Ut(Vn):Ct&&Ct(Vn),Jt||(Wt(tt?null:$t.clientWidth),gt(kn))},Zt=kn=>{kn.button===0&&(kn.preventDefault(),Dt.current.focus(),en(!0,kn))},rn=kn=>{en(!1,kn)},cn=react.exports.Children.toArray(et),sn=kn=>{const Vn=cn.find(Hn=>Hn.props.value===kn.target.value);Vn!==void 0&&(It(Vn.props.value),ft&&ft(kn,Vn))},Ht=kn=>Vn=>{let Hn;if(!!Vn.currentTarget.hasAttribute("tabindex")){if(Tt){Hn=Array.isArray(Ot)?Ot.slice():[];const nr=Ot.indexOf(kn.props.value);nr===-1?Hn.push(kn.props.value):Hn.splice(nr,1)}else Hn=kn.props.value;if(kn.props.onClick&&kn.props.onClick(Vn),Ot!==Hn&&(It(Hn),ft)){const nr=Vn.nativeEvent||Vn,ar=new nr.constructor(nr.type,nr);Object.defineProperty(ar,"target",{writable:!0,value:{value:Hn,name:ht}}),ft(ar,kn)}Tt||en(!1,Vn)}},qt=kn=>{vt||[" ","ArrowUp","ArrowDown","Enter"].indexOf(kn.key)!==-1&&(kn.preventDefault(),en(!0,kn))},nn=Yt!==null&&St,yn=kn=>{!nn&&yt&&(Object.defineProperty(kn,"target",{writable:!0,value:{value:Ot,name:ht}}),yt(kn))};delete Rt["aria-invalid"];let ln,_n;const vn=[];let hn=!1;(isFilled({value:Ot})||at)&&(At?ln=At(Ot):hn=!0);const fn=cn.map(kn=>{if(!react.exports.isValidElement(kn))return null;let Vn;if(Tt){if(!Array.isArray(Ot))throw new Error(formatMuiErrorMessage(2));Vn=Ot.some(Hn=>areEqualValues(Hn,kn.props.value)),Vn&&hn&&vn.push(kn.props.children)}else Vn=areEqualValues(Ot,kn.props.value),Vn&&hn&&(_n=kn.props.children);return react.exports.cloneElement(kn,{"aria-selected":Vn?"true":"false",onClick:Ht(kn),onKeyUp:Hn=>{Hn.key===" "&&Hn.preventDefault(),kn.props.onKeyUp&&kn.props.onKeyUp(Hn)},role:"option",selected:Vn,value:void 0,"data-value":kn.props.value})});hn&&(Tt?vn.length===0?ln=null:ln=vn.reduce((kn,Vn,Hn)=>(kn.push(Vn),Hn{const{classes:i}=o;return i},styledRootConfig={name:"MuiSelect",overridesResolver:(o,i)=>i.root,shouldForwardProp:o=>rootShouldForwardProp(o)&&o!=="variant",slot:"Root"},StyledInput=styled$1(Input$1,styledRootConfig)(""),StyledOutlinedInput=styled$1(OutlinedInput$1,styledRootConfig)(""),StyledFilledInput=styled$1(FilledInput$1,styledRootConfig)(""),Select$1=react.exports.forwardRef(function(i,s){const j=useThemeProps({name:"MuiSelect",props:i}),{autoWidth:$=!1,children:_e,classes:tt={},className:et,defaultOpen:rt=!1,displayEmpty:ot=!1,IconComponent:lt=ArrowDropDownIcon,id:dt,input:at,inputProps:ct,label:st,labelId:ut,MenuProps:mt,multiple:bt=!1,native:Tt=!1,onClose:ht,onOpen:yt,open:ft,renderValue:Ct,SelectDisplayProps:Ft,variant:Ut="outlined"}=j,wt=_objectWithoutPropertiesLoose$1(j,_excluded$4),vt=Tt?NativeSelectInput$1:SelectInput$1,At=useFormControl(),Et=formControlState({props:j,muiFormControl:At,states:["variant","error"]}),Mt=Et.variant||Ut,Lt=_extends({},j,{variant:Mt,classes:tt}),kt=useUtilityClasses$4(Lt),Rt=at||{standard:jsx(StyledInput,{ownerState:Lt}),outlined:jsx(StyledOutlinedInput,{label:st,ownerState:Lt}),filled:jsx(StyledFilledInput,{ownerState:Lt})}[Mt],Ot=useForkRef(s,Rt.ref);return jsx(react.exports.Fragment,{children:react.exports.cloneElement(Rt,_extends({inputComponent:vt,inputProps:_extends({children:_e,error:Et.error,IconComponent:lt,variant:Mt,type:void 0,multiple:bt},Tt?{id:dt}:{autoWidth:$,defaultOpen:rt,displayEmpty:ot,labelId:ut,MenuProps:mt,onClose:ht,onOpen:yt,open:ft,renderValue:Ct,SelectDisplayProps:_extends({id:dt},Ft)},ct,{classes:ct?deepmerge(kt,ct.classes):kt},at?at.props.inputProps:{})},bt&&Tt&&Mt==="outlined"?{notched:!0}:{},{ref:Ot,className:clsx(Rt.props.className,et)},!at&&{variant:Mt},wt))})});Select$1.muiName="Select";var Select$1$1=Select$1;function getSnackbarContentUtilityClass(o){return generateUtilityClass("MuiSnackbarContent",o)}generateUtilityClasses("MuiSnackbarContent",["root","message","action"]);const _excluded$3=["action","className","message","role"],useUtilityClasses$3=o=>{const{classes:i}=o;return composeClasses({root:["root"],action:["action"],message:["message"]},getSnackbarContentUtilityClass,i)},SnackbarContentRoot=styled$1(Paper$1,{name:"MuiSnackbarContent",slot:"Root",overridesResolver:(o,i)=>i.root})(({theme:o})=>{const i=o.palette.mode==="light"?.8:.98,s=emphasize(o.palette.background.default,i);return _extends({},o.typography.body2,{color:o.vars?o.vars.palette.SnackbarContent.color:o.palette.getContrastText(s),backgroundColor:o.vars?o.vars.palette.SnackbarContent.bg:s,display:"flex",alignItems:"center",flexWrap:"wrap",padding:"6px 16px",borderRadius:(o.vars||o).shape.borderRadius,flexGrow:1,[o.breakpoints.up("sm")]:{flexGrow:"initial",minWidth:288}})}),SnackbarContentMessage=styled$1("div",{name:"MuiSnackbarContent",slot:"Message",overridesResolver:(o,i)=>i.message})({padding:"8px 0"}),SnackbarContentAction=styled$1("div",{name:"MuiSnackbarContent",slot:"Action",overridesResolver:(o,i)=>i.action})({display:"flex",alignItems:"center",marginLeft:"auto",paddingLeft:16,marginRight:-8}),SnackbarContent=react.exports.forwardRef(function(i,s){const j=useThemeProps({props:i,name:"MuiSnackbarContent"}),{action:$,className:_e,message:tt,role:et="alert"}=j,rt=_objectWithoutPropertiesLoose$1(j,_excluded$3),ot=j,lt=useUtilityClasses$3(ot);return jsxs(SnackbarContentRoot,_extends({role:et,square:!0,elevation:6,className:clsx(lt.root,_e),ownerState:ot,ref:s},rt,{children:[jsx(SnackbarContentMessage,{className:lt.message,ownerState:ot,children:tt}),$?jsx(SnackbarContentAction,{className:lt.action,ownerState:ot,children:$}):null]}))});var SnackbarContent$1=SnackbarContent;function getSnackbarUtilityClass(o){return generateUtilityClass("MuiSnackbar",o)}generateUtilityClasses("MuiSnackbar",["root","anchorOriginTopCenter","anchorOriginBottomCenter","anchorOriginTopRight","anchorOriginBottomRight","anchorOriginTopLeft","anchorOriginBottomLeft"]);const _excluded$2=["onEnter","onExited"],_excluded2=["action","anchorOrigin","autoHideDuration","children","className","ClickAwayListenerProps","ContentProps","disableWindowBlurListener","message","onBlur","onClose","onFocus","onMouseEnter","onMouseLeave","open","resumeHideDuration","TransitionComponent","transitionDuration","TransitionProps"],useUtilityClasses$2=o=>{const{classes:i,anchorOrigin:s}=o,j={root:["root",`anchorOrigin${capitalize$1(s.vertical)}${capitalize$1(s.horizontal)}`]};return composeClasses(j,getSnackbarUtilityClass,i)},SnackbarRoot=styled$1("div",{name:"MuiSnackbar",slot:"Root",overridesResolver:(o,i)=>{const{ownerState:s}=o;return[i.root,i[`anchorOrigin${capitalize$1(s.anchorOrigin.vertical)}${capitalize$1(s.anchorOrigin.horizontal)}`]]}})(({theme:o,ownerState:i})=>{const s={left:"50%",right:"auto",transform:"translateX(-50%)"};return _extends({zIndex:(o.vars||o).zIndex.snackbar,position:"fixed",display:"flex",left:8,right:8,justifyContent:"center",alignItems:"center"},i.anchorOrigin.vertical==="top"?{top:8}:{bottom:8},i.anchorOrigin.horizontal==="left"&&{justifyContent:"flex-start"},i.anchorOrigin.horizontal==="right"&&{justifyContent:"flex-end"},{[o.breakpoints.up("sm")]:_extends({},i.anchorOrigin.vertical==="top"?{top:24}:{bottom:24},i.anchorOrigin.horizontal==="center"&&s,i.anchorOrigin.horizontal==="left"&&{left:24,right:"auto"},i.anchorOrigin.horizontal==="right"&&{right:24,left:"auto"})})}),Snackbar=react.exports.forwardRef(function(i,s){const j=useThemeProps({props:i,name:"MuiSnackbar"}),$=useTheme(),_e={enter:$.transitions.duration.enteringScreen,exit:$.transitions.duration.leavingScreen},{action:tt,anchorOrigin:{vertical:et,horizontal:rt}={vertical:"bottom",horizontal:"left"},autoHideDuration:ot=null,children:lt,className:dt,ClickAwayListenerProps:at,ContentProps:ct,disableWindowBlurListener:st=!1,message:ut,open:mt,TransitionComponent:bt=Grow$1,transitionDuration:Tt=_e,TransitionProps:{onEnter:ht,onExited:yt}={}}=j,ft=_objectWithoutPropertiesLoose$1(j.TransitionProps,_excluded$2),Ct=_objectWithoutPropertiesLoose$1(j,_excluded2),Ft=_extends({},j,{anchorOrigin:{vertical:et,horizontal:rt},autoHideDuration:ot,disableWindowBlurListener:st,TransitionComponent:bt,transitionDuration:Tt}),Ut=useUtilityClasses$2(Ft),{getRootProps:wt,onClickAway:vt}=useSnackbar(_extends({},Ft)),[At,Et]=react.exports.useState(!0),Mt=useSlotProps({elementType:SnackbarRoot,getSlotProps:wt,externalForwardedProps:Ct,ownerState:Ft,additionalProps:{ref:s},className:[Ut.root,dt]}),Lt=Rt=>{Et(!0),yt&&yt(Rt)},kt=(Rt,Ot)=>{Et(!1),ht&&ht(Rt,Ot)};return!mt&&At?null:jsx(ClickAwayListener,_extends({onClickAway:vt},at,{children:jsx(SnackbarRoot,_extends({},Mt,{children:jsx(bt,_extends({appear:!0,in:mt,timeout:Tt,direction:et==="top"?"down":"up",onEnter:kt,onExited:Lt},ft,{children:lt||jsx(SnackbarContent$1,_extends({message:ut,action:tt},ct))}))}))}))});var Snackbar$1=Snackbar;function getSwitchUtilityClass(o){return generateUtilityClass("MuiSwitch",o)}const switchClasses=generateUtilityClasses("MuiSwitch",["root","edgeStart","edgeEnd","switchBase","colorPrimary","colorSecondary","sizeSmall","sizeMedium","checked","disabled","input","thumb","track"]);var switchClasses$1=switchClasses;const _excluded$1=["className","color","edge","size","sx"],useUtilityClasses$1=o=>{const{classes:i,edge:s,size:j,color:$,checked:_e,disabled:tt}=o,et={root:["root",s&&`edge${capitalize$1(s)}`,`size${capitalize$1(j)}`],switchBase:["switchBase",`color${capitalize$1($)}`,_e&&"checked",tt&&"disabled"],thumb:["thumb"],track:["track"],input:["input"]},rt=composeClasses(et,getSwitchUtilityClass,i);return _extends({},i,rt)},SwitchRoot=styled$1("span",{name:"MuiSwitch",slot:"Root",overridesResolver:(o,i)=>{const{ownerState:s}=o;return[i.root,s.edge&&i[`edge${capitalize$1(s.edge)}`],i[`size${capitalize$1(s.size)}`]]}})(({ownerState:o})=>_extends({display:"inline-flex",width:34+12*2,height:14+12*2,overflow:"hidden",padding:12,boxSizing:"border-box",position:"relative",flexShrink:0,zIndex:0,verticalAlign:"middle","@media print":{colorAdjust:"exact"}},o.edge==="start"&&{marginLeft:-8},o.edge==="end"&&{marginRight:-8},o.size==="small"&&{width:40,height:24,padding:7,[`& .${switchClasses$1.thumb}`]:{width:16,height:16},[`& .${switchClasses$1.switchBase}`]:{padding:4,[`&.${switchClasses$1.checked}`]:{transform:"translateX(16px)"}}})),SwitchSwitchBase=styled$1(SwitchBase$1,{name:"MuiSwitch",slot:"SwitchBase",overridesResolver:(o,i)=>{const{ownerState:s}=o;return[i.switchBase,{[`& .${switchClasses$1.input}`]:i.input},s.color!=="default"&&i[`color${capitalize$1(s.color)}`]]}})(({theme:o})=>({position:"absolute",top:0,left:0,zIndex:1,color:o.vars?o.vars.palette.Switch.defaultColor:`${o.palette.mode==="light"?o.palette.common.white:o.palette.grey[300]}`,transition:o.transitions.create(["left","transform"],{duration:o.transitions.duration.shortest}),[`&.${switchClasses$1.checked}`]:{transform:"translateX(20px)"},[`&.${switchClasses$1.disabled}`]:{color:o.vars?o.vars.palette.Switch.defaultDisabledColor:`${o.palette.mode==="light"?o.palette.grey[100]:o.palette.grey[600]}`},[`&.${switchClasses$1.checked} + .${switchClasses$1.track}`]:{opacity:.5},[`&.${switchClasses$1.disabled} + .${switchClasses$1.track}`]:{opacity:o.vars?o.vars.opacity.switchTrackDisabled:`${o.palette.mode==="light"?.12:.2}`},[`& .${switchClasses$1.input}`]:{left:"-100%",width:"300%"}}),({theme:o,ownerState:i})=>_extends({"&:hover":{backgroundColor:o.vars?`rgba(${o.vars.palette.action.activeChannel} / ${o.vars.palette.action.hoverOpacity})`:alpha(o.palette.action.active,o.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},i.color!=="default"&&{[`&.${switchClasses$1.checked}`]:{color:(o.vars||o).palette[i.color].main,"&:hover":{backgroundColor:o.vars?`rgba(${o.vars.palette[i.color].mainChannel} / ${o.vars.palette.action.hoverOpacity})`:alpha(o.palette[i.color].main,o.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${switchClasses$1.disabled}`]:{color:o.vars?o.vars.palette.Switch[`${i.color}DisabledColor`]:`${o.palette.mode==="light"?lighten(o.palette[i.color].main,.62):darken(o.palette[i.color].main,.55)}`}},[`&.${switchClasses$1.checked} + .${switchClasses$1.track}`]:{backgroundColor:(o.vars||o).palette[i.color].main}})),SwitchTrack=styled$1("span",{name:"MuiSwitch",slot:"Track",overridesResolver:(o,i)=>i.track})(({theme:o})=>({height:"100%",width:"100%",borderRadius:14/2,zIndex:-1,transition:o.transitions.create(["opacity","background-color"],{duration:o.transitions.duration.shortest}),backgroundColor:o.vars?o.vars.palette.common.onBackground:`${o.palette.mode==="light"?o.palette.common.black:o.palette.common.white}`,opacity:o.vars?o.vars.opacity.switchTrack:`${o.palette.mode==="light"?.38:.3}`})),SwitchThumb=styled$1("span",{name:"MuiSwitch",slot:"Thumb",overridesResolver:(o,i)=>i.thumb})(({theme:o})=>({boxShadow:(o.vars||o).shadows[1],backgroundColor:"currentColor",width:20,height:20,borderRadius:"50%"})),Switch=react.exports.forwardRef(function(i,s){const j=useThemeProps({props:i,name:"MuiSwitch"}),{className:$,color:_e="primary",edge:tt=!1,size:et="medium",sx:rt}=j,ot=_objectWithoutPropertiesLoose$1(j,_excluded$1),lt=_extends({},j,{color:_e,edge:tt,size:et}),dt=useUtilityClasses$1(lt),at=jsx(SwitchThumb,{className:dt.thumb,ownerState:lt});return jsxs(SwitchRoot,{className:clsx(dt.root,$),sx:rt,ownerState:lt,children:[jsx(SwitchSwitchBase,_extends({type:"checkbox",icon:at,checkedIcon:at,ref:s,ownerState:lt},ot,{classes:_extends({},dt,{root:dt.switchBase})})),jsx(SwitchTrack,{className:dt.track,ownerState:lt})]})});var Switch$1=Switch;function getTextFieldUtilityClass(o){return generateUtilityClass("MuiTextField",o)}generateUtilityClasses("MuiTextField",["root"]);const _excluded=["autoComplete","autoFocus","children","className","color","defaultValue","disabled","error","FormHelperTextProps","fullWidth","helperText","id","InputLabelProps","inputProps","InputProps","inputRef","label","maxRows","minRows","multiline","name","onBlur","onChange","onClick","onFocus","placeholder","required","rows","select","SelectProps","type","value","variant"],variantComponent={standard:Input$1,filled:FilledInput$1,outlined:OutlinedInput$1},useUtilityClasses=o=>{const{classes:i}=o;return composeClasses({root:["root"]},getTextFieldUtilityClass,i)},TextFieldRoot=styled$1(FormControl$1,{name:"MuiTextField",slot:"Root",overridesResolver:(o,i)=>i.root})({}),TextField=react.exports.forwardRef(function(i,s){const j=useThemeProps({props:i,name:"MuiTextField"}),{autoComplete:$,autoFocus:_e=!1,children:tt,className:et,color:rt="primary",defaultValue:ot,disabled:lt=!1,error:dt=!1,FormHelperTextProps:at,fullWidth:ct=!1,helperText:st,id:ut,InputLabelProps:mt,inputProps:bt,InputProps:Tt,inputRef:ht,label:yt,maxRows:ft,minRows:Ct,multiline:Ft=!1,name:Ut,onBlur:wt,onChange:vt,onClick:At,onFocus:Et,placeholder:Mt,required:Lt=!1,rows:kt,select:Rt=!1,SelectProps:Ot,type:It,value:St,variant:gt="outlined"}=j,Bt=_objectWithoutPropertiesLoose$1(j,_excluded),Dt=_extends({},j,{autoFocus:_e,color:rt,disabled:lt,error:dt,fullWidth:ct,multiline:Ft,required:Lt,select:Rt,variant:gt}),Yt=useUtilityClasses(Dt),Xt={};gt==="outlined"&&(mt&&typeof mt.shrink!="undefined"&&(Xt.notched=mt.shrink),Xt.label=yt),Rt&&((!Ot||!Ot.native)&&(Xt.id=void 0),Xt["aria-describedby"]=void 0);const Jt=useId(ut),zt=st&&Jt?`${Jt}-helper-text`:void 0,Wt=yt&&Jt?`${Jt}-label`:void 0,xt=variantComponent[gt],Pt=jsx(xt,_extends({"aria-describedby":zt,autoComplete:$,autoFocus:_e,defaultValue:ot,fullWidth:ct,multiline:Ft,name:Ut,rows:kt,maxRows:ft,minRows:Ct,type:It,value:St,id:Jt,inputRef:ht,onBlur:wt,onChange:vt,onFocus:Et,onClick:At,placeholder:Mt,inputProps:bt},Xt,Tt));return jsxs(TextFieldRoot,_extends({className:clsx(Yt.root,et),disabled:lt,error:dt,fullWidth:ct,ref:s,required:Lt,color:rt,variant:gt,ownerState:Dt},Bt,{children:[yt!=null&&yt!==""&&jsx(InputLabel$1,_extends({htmlFor:Jt,id:Wt},mt,{children:yt})),Rt?jsx(Select$1$1,_extends({"aria-describedby":zt,id:Jt,labelId:Wt,value:St,input:Pt},Ot,{children:tt})):Pt,st&&jsx(FormHelperText$1,_extends({id:zt},at,{children:st}))]}))});var TextField$1=TextField,__defProp2=Object.defineProperty,__getOwnPropSymbols2=Object.getOwnPropertySymbols,__hasOwnProp2=Object.prototype.hasOwnProperty,__propIsEnum2=Object.prototype.propertyIsEnumerable,__defNormalProp2=(o,i,s)=>i in o?__defProp2(o,i,{enumerable:!0,configurable:!0,writable:!0,value:s}):o[i]=s,__spreadValues2=(o,i)=>{for(var s in i||(i={}))__hasOwnProp2.call(i,s)&&__defNormalProp2(o,s,i[s]);if(__getOwnPropSymbols2)for(var s of __getOwnPropSymbols2(i))__propIsEnum2.call(i,s)&&__defNormalProp2(o,s,i[s]);return o};const baseTheme=createTheme({typography:{fontFamily:"'Moderat', 'Inter', 'Source Sans Pro', sans-serif",h1:{fontStyle:"normal",fontWeight:"normal",fontSize:"2rem",lineHeight:"2.5rem",letterSpacing:0},h2:{fontStyle:"normal",fontWeight:"normal",fontSize:"1.5rem",lineHeight:"2.125rem",letterSpacing:"0.069rem",fontFeatureSettings:'"zero" on'},h3:{fontStyle:"normal",fontWeight:500,fontSize:"1.125rem",lineHeight:"1.688rem",letterSpacing:"0.069rem"},h4:{fontStyle:"normal",fontWeight:700,fontSize:"0.813rem",lineHeight:"1.375rem",letterSpacing:"0.069rem",textTransform:"uppercase"},h5:{fontStyle:"normal",fontWeight:700,fontSize:"0.813rem",lineHeight:"1.125rem",letterSpacing:"0.038rem",textTransform:"uppercase"},h6:{fontStyle:"normal",fontWeight:"normal",fontSize:"0.625rem",lineHeight:"0.938rem",letterSpacing:"0.063rem"},body1:{fontStyle:"normal",fontWeight:"normal",fontSize:"1rem",lineHeight:"1.688rem",letterSpacing:"0.063rem",fontFeatureSettings:'"zero" on'},body2:{fontStyle:"normal",fontWeight:"normal",fontSize:"1rem",lineHeight:"1.688rem",letterSpacing:"0.063rem",fontFeatureSettings:'"zero" on',fontVariantNumeric:"tabular-nums"},button:{fontWeight:500,fontSize:"0.875rem",lineHeight:"1.05rem",letterSpacing:"0.053.rem",textTransform:"uppercase"}}}),lightPalette={palette:{mode:"light",success:{main:"#34dea9",dark:"#2d8376"},info:{main:"#297ceb",dark:"#256faf",light:"#3BABFF"},error:{main:"#fd76a7",dark:"#7f5072"},warning:{main:"#ffb179",dark:"#94645f"},primary:{main:"#657197",light:"#BAC4E2",dark:"#3B4668"},secondary:{main:"#3babff",dark:"#76a7dc"},background:{default:"#FFFFFF",paper:"#F1F3F9"},common:{black:"#ffffff",white:"#000000"}}},darkPalette={palette:{mode:"dark",primary:{main:"#657197",dark:"#3B4668",light:"#BAC4E2",contrastText:"#ffffff"},secondary:{main:"#18d2ff",light:"#18d2ff",dark:"#256faf"},background:{default:"#2d3855",paper:"#2d3855"},common:{black:"#000000",white:"#ffffff"},text:{primary:"#bac4e2"},error:{main:"#ea719d",dark:"#7F5072"},warning:{main:"#a961e4",dark:"#564A94"},info:{main:"#20a0ff",dark:"#256FAF"},success:{main:"#2ec495",dark:"#2D8376"}}};function createComponents(o){const i={components:{MuiCssBaseline:{styleOverrides:{body:{"&::-webkit-scrollbar, & *::-webkit-scrollbar":{background:"transparent",width:"0.5rem",height:"0.5rem"},"&::-webkit-scrollbar-thumb, & *::-webkit-scrollbar-thumb":{background:o.palette.primary.light,borderRadius:"0.25rem"},"&::-webkit-scrollbar-thumb:hover, & *::-webkit-scrollbar-thumb:hover":{backgroundColor:o.palette.primary.light},"&::-webkit-scrollbar-corner, & *::-webkit-scrollbar-corner":{backgroundColor:o.palette.primary.light}}}},MuiLink:{styleOverrides:{root:{color:o.palette.secondary.main}}},MuiDialogActions:{styleOverrides:{root:{padding:baseTheme.spacing(3)}}},MuiInputLabel:{styleOverrides:{root:{color:o.palette.primary.light,"&.Mui-focused":{color:o.palette.secondary.main}}}},MuiFilledInput:{styleOverrides:{root:{backgroundColor:o.palette.primary.dark,borderTop:"1px solid transparent",":before":{borderBottom:`1px dotted ${o.palette.primary.light}`},"&.Mui-focused":{background:o.palette.common.black,border:`1px solid ${o.palette.secondary.main}`,borderBottom:"none",borderTop:`1px solid ${o.palette.secondary.main}`},":after":{borderBottom:`1px solid ${o.palette.secondary.main}`}}}},MuiOutlinedInput:{styleOverrides:{input:{"&:-webkit-autofill":{"-webkit-box-shadow":`0 0 0 100px ${o.palette.primary.dark} inset`,"-webkit-text-fill-color":o.palette.primary.light}}}},MuiTooltip:{styleOverrides:{tooltip:{backgroundColor:"rgba(0, 0, 0, 0.87)",color:"white",padding:baseTheme.spacing(1.2)}}},MuiDialogTitle:{styleOverrides:{root:__spreadValues2({color:o.palette.common.white,fontStyle:"normal",fontWeight:500},baseTheme.typography.h3)}},MuiDialogContentText:{styleOverrides:{root:{color:o.palette.primary.light}}},MuiButtonBase:{defaultProps:{disableRipple:!0}},MuiButton:{styleOverrides:{root:{willChange:"background-color , color , border-color , box-shadow",transition:"background-color 200ms ease-in-out 0ms , color 200ms ease-in-out 0ms , border-color 200ms ease-in-out 0ms , box-shadow 200ms ease-in-out 0ms",borderRadius:40,boxShadow:`0 0 0 0rem ${o.palette.primary.main}`,"&.Mui-disabled":{color:o.palette.primary.main}},sizeSmall:{height:"1.25rem",fontWeight:500,fontSize:"0.688rem",lineHeight:"0.825rem",letterSpacing:"0.047rem"},sizeMedium:{height:"1.813rem",fontWeight:500},sizeLarge:{height:"2.563rem",fontWeight:500,fontSize:"0.875rem",lineHeight:"1.05rem",letterSpacing:"0.053rem"},containedPrimary:{background:o.palette.primary.light,color:o.palette.common.black,"@media(hover: hover)":{"&:hover":{boxShadow:`0 0 0 0.4rem ${o.palette.primary.light}`,background:o.palette.primary.light}}},containedSecondary:{color:o.palette.common.black,"@media(hover: hover)":{"&:hover":{boxShadow:`0 0 0 0.4rem ${o.palette.secondary.main}`,background:o.palette.secondary.main}}},outlinedPrimary:{color:o.palette.primary.light}}},MuiDialog:{styleOverrides:{paper:{background:o.palette.background.paper}}},MuiNativeSelect:{styleOverrides:{root:{backgroundColor:o.palette.primary.dark,borderTop:"1px solid transparent"},icon:{color:o.palette.primary.light}}},MuiSelect:{styleOverrides:{icon:{color:o.palette.primary.light}}},MuiSnackbarContent:{styleOverrides:{root:{backgroundColor:o.palette.primary.dark,color:o.palette.primary.light}}},MuiSwitch:{styleOverrides:{switchBase:{"&.Mui-checked+.MuiSwitch-track":{backgroundColor:o.palette.common.black},"&.Mui-checked .MuiSwitch-thumb":{backgroundColor:o.palette.secondary.main}},thumb:{backgroundColor:o.palette.primary.light},track:{backgroundColor:o.palette.common.black}}}}};return createTheme(o,i)}const darkTheme=createComponents(createTheme(baseTheme,darkPalette)),lightTheme=createComponents(createTheme(baseTheme,lightPalette)),defaultTheme=darkTheme,FormantContext=react.exports.createContext(void 0);function FormantProvider({theme:o,children:i}){const s=createTheme(o==="dark"?darkTheme:o==="light"?lightTheme:defaultTheme),j={};return react.exports.createElement(ThemeProvider,{theme:s},react.exports.createElement(CssBaseline,null,react.exports.createElement(FormantContext.Provider,{value:j},i)))}var commonjsGlobal=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{},lib={},uaParser_min={exports:{}};(function(o,i){(function(s,j){var $="1.0.2",_e="",tt="?",et="function",rt="undefined",ot="object",lt="string",dt="major",at="model",ct="name",st="type",ut="vendor",mt="version",bt="architecture",Tt="console",ht="mobile",yt="tablet",ft="smarttv",Ct="wearable",Ft="embedded",Ut=255,wt="Amazon",vt="Apple",At="ASUS",Et="BlackBerry",Mt="Browser",Lt="Chrome",kt="Edge",Rt="Firefox",Ot="Google",It="Huawei",St="LG",gt="Microsoft",Bt="Motorola",Dt="Opera",Yt="Samsung",Xt="Sony",Jt="Xiaomi",zt="Zebra",Wt="Facebook",xt=function(vn,hn){var fn={};for(var dn in vn)hn[dn]&&hn[dn].length%2===0?fn[dn]=hn[dn].concat(vn[dn]):fn[dn]=vn[dn];return fn},Pt=function(vn){for(var hn={},fn=0;fn0?In.length===2?typeof In[1]==et?this[In[0]]=In[1].call(this,kn):this[In[0]]=In[1]:In.length===3?typeof In[1]===et&&!(In[1].exec&&In[1].test)?this[In[0]]=kn?In[1].call(this,kn,In[2]):j:this[In[0]]=kn?kn.replace(In[1],In[2]):j:In.length===4&&(this[In[0]]=kn?In[3].call(this,kn.replace(In[1],In[2])):j):this[In]=kn||j;fn+=2}},sn=function(vn,hn){for(var fn in hn)if(typeof hn[fn]===ot&&hn[fn].length>0){for(var dn=0;dnUt?rn(An,Ut):An,this},this.setUA(fn),this};yn.VERSION=$,yn.BROWSER=Pt([ct,mt,dt]),yn.CPU=Pt([bt]),yn.DEVICE=Pt([at,ut,st,Tt,ht,ft,yt,Ct,Ft]),yn.ENGINE=yn.OS=Pt([ct,mt]),o.exports&&(i=o.exports=yn),i.UAParser=yn;var ln=typeof s!==rt&&(s.jQuery||s.Zepto);if(ln&&!ln.ua){var _n=new yn;ln.ua=_n.getResult(),ln.ua.get=function(){return _n.getUA()},ln.ua.set=function(vn){_n.setUA(vn);var hn=_n.getResult();for(var fn in hn)ln.ua[fn]=hn[fn]}}})(typeof window=="object"?window:commonjsGlobal)})(uaParser_min,uaParser_min.exports);Object.defineProperty(lib,"__esModule",{value:!0});function _interopDefault(o){return o&&typeof o=="object"&&"default"in o?o.default:o}var React=React$1,React__default=_interopDefault(React),UAParser=uaParser_min.exports,ClientUAInstance=new UAParser,browser=ClientUAInstance.getBrowser(),cpu=ClientUAInstance.getCPU(),device=ClientUAInstance.getDevice(),engine=ClientUAInstance.getEngine(),os=ClientUAInstance.getOS(),ua=ClientUAInstance.getUA(),setUa=function(i){return ClientUAInstance.setUA(i)},parseUserAgent=function(i){if(!i){console.error("No userAgent string was provided");return}var s=new UAParser(i);return{UA:s,browser:s.getBrowser(),cpu:s.getCPU(),device:s.getDevice(),engine:s.getEngine(),os:s.getOS(),ua:s.getUA(),setUserAgent:function($){return s.setUA($)}}},UAHelper=Object.freeze({ClientUAInstance,browser,cpu,device,engine,os,ua,setUa,parseUserAgent});function ownKeys(o,i){var s=Object.keys(o);if(Object.getOwnPropertySymbols){var j=Object.getOwnPropertySymbols(o);i&&(j=j.filter(function($){return Object.getOwnPropertyDescriptor(o,$).enumerable})),s.push.apply(s,j)}return s}function _objectSpread2(o){for(var i=1;i=0)&&(s[$]=o[$]);return s}function _objectWithoutProperties(o,i){if(o==null)return{};var s=_objectWithoutPropertiesLoose(o,i),j,$;if(Object.getOwnPropertySymbols){var _e=Object.getOwnPropertySymbols(o);for($=0;$<_e.length;$++)j=_e[$],!(i.indexOf(j)>=0)&&(!Object.prototype.propertyIsEnumerable.call(o,j)||(s[j]=o[j]))}return s}function _assertThisInitialized(o){if(o===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return o}function _possibleConstructorReturn(o,i){if(i&&(typeof i=="object"||typeof i=="function"))return i;if(i!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized(o)}function _slicedToArray(o,i){return _arrayWithHoles(o)||_iterableToArrayLimit(o,i)||_unsupportedIterableToArray(o,i)||_nonIterableRest()}function _arrayWithHoles(o){if(Array.isArray(o))return o}function _iterableToArrayLimit(o,i){var s=o==null?null:typeof Symbol!="undefined"&&o[Symbol.iterator]||o["@@iterator"];if(s!=null){var j=[],$=!0,_e=!1,tt,et;try{for(s=s.call(o);!($=(tt=s.next()).done)&&(j.push(tt.value),!(i&&j.length===i));$=!0);}catch(rt){_e=!0,et=rt}finally{try{!$&&s.return!=null&&s.return()}finally{if(_e)throw et}}return j}}function _unsupportedIterableToArray(o,i){if(!!o){if(typeof o=="string")return _arrayLikeToArray(o,i);var s=Object.prototype.toString.call(o).slice(8,-1);if(s==="Object"&&o.constructor&&(s=o.constructor.name),s==="Map"||s==="Set")return Array.from(o);if(s==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(s))return _arrayLikeToArray(o,i)}}function _arrayLikeToArray(o,i){(i==null||i>o.length)&&(i=o.length);for(var s=0,j=new Array(i);s1&&arguments[1]!==void 0?arguments[1]:"none";return i||s},getNavigatorInstance=function(){return typeof window!="undefined"&&(window.navigator||navigator)?window.navigator||navigator:!1},isIOS13Check=function(i){var s=getNavigatorInstance();return s&&s.platform&&(s.platform.indexOf(i)!==-1||s.platform==="MacIntel"&&s.maxTouchPoints>1&&!window.MSStream)},browserPayload=function(i,s,j,$,_e){return{isBrowser:i,browserMajorVersion:setDefaults(s.major),browserFullVersion:setDefaults(s.version),browserName:setDefaults(s.name),engineName:setDefaults(j.name),engineVersion:setDefaults(j.version),osName:setDefaults($.name),osVersion:setDefaults($.version),userAgent:setDefaults(_e)}},mobilePayload=function(i,s,j,$){return _objectSpread2({},i,{vendor:setDefaults(s.vendor),model:setDefaults(s.model),os:setDefaults(j.name),osVersion:setDefaults(j.version),ua:setDefaults($)})},smartTvPayload=function(i,s,j,$){return{isSmartTV:i,engineName:setDefaults(s.name),engineVersion:setDefaults(s.version),osName:setDefaults(j.name),osVersion:setDefaults(j.version),userAgent:setDefaults($)}},consolePayload=function(i,s,j,$){return{isConsole:i,engineName:setDefaults(s.name),engineVersion:setDefaults(s.version),osName:setDefaults(j.name),osVersion:setDefaults(j.version),userAgent:setDefaults($)}},wearablePayload=function(i,s,j,$){return{isWearable:i,engineName:setDefaults(s.name),engineVersion:setDefaults(s.version),osName:setDefaults(j.name),osVersion:setDefaults(j.version),userAgent:setDefaults($)}},embeddedPayload=function(i,s,j,$,_e){return{isEmbedded:i,vendor:setDefaults(s.vendor),model:setDefaults(s.model),engineName:setDefaults(j.name),engineVersion:setDefaults(j.version),osName:setDefaults($.name),osVersion:setDefaults($.version),userAgent:setDefaults(_e)}};function deviceDetect(o){var i=o?parseUserAgent(o):UAHelper,s=i.device,j=i.browser,$=i.engine,_e=i.os,tt=i.ua,et=checkDeviceType(s.type),rt=et.isBrowser,ot=et.isMobile,lt=et.isTablet,dt=et.isSmartTV,at=et.isConsole,ct=et.isWearable,st=et.isEmbedded;if(rt)return browserPayload(rt,j,$,_e,tt);if(dt)return smartTvPayload(dt,$,_e,tt);if(at)return consolePayload(at,$,_e,tt);if(ot||lt)return mobilePayload(et,s,_e,tt);if(ct)return wearablePayload(ct,$,_e,tt);if(st)return embeddedPayload(st,s,$,_e,tt)}var isMobileType=function(i){var s=i.type;return s===DeviceTypes.Mobile},isTabletType=function(i){var s=i.type;return s===DeviceTypes.Tablet},isMobileAndTabletType=function(i){var s=i.type;return s===DeviceTypes.Mobile||s===DeviceTypes.Tablet},isSmartTVType=function(i){var s=i.type;return s===DeviceTypes.SmartTv},isBrowserType=function(i){var s=i.type;return s===DeviceTypes.Browser},isWearableType=function(i){var s=i.type;return s===DeviceTypes.Wearable},isConsoleType=function(i){var s=i.type;return s===DeviceTypes.Console},isEmbeddedType=function(i){var s=i.type;return s===DeviceTypes.Embedded},getMobileVendor=function(i){var s=i.vendor;return setDefaults(s)},getMobileModel=function(i){var s=i.model;return setDefaults(s)},getDeviceType=function(i){var s=i.type;return setDefaults(s,"browser")},isAndroidType=function(i){var s=i.name;return s===OsTypes.Android},isWindowsType=function(i){var s=i.name;return s===OsTypes.Windows},isMacOsType=function(i){var s=i.name;return s===OsTypes.MAC_OS},isWinPhoneType=function(i){var s=i.name;return s===OsTypes.WindowsPhone},isIOSType=function(i){var s=i.name;return s===OsTypes.IOS},getOsVersion=function(i){var s=i.version;return setDefaults(s)},getOsName=function(i){var s=i.name;return setDefaults(s)},isChromeType=function(i){var s=i.name;return s===BrowserTypes.Chrome},isFirefoxType=function(i){var s=i.name;return s===BrowserTypes.Firefox},isChromiumType=function(i){var s=i.name;return s===BrowserTypes.Chromium},isEdgeType=function(i){var s=i.name;return s===BrowserTypes.Edge},isYandexType=function(i){var s=i.name;return s===BrowserTypes.Yandex},isSafariType=function(i){var s=i.name;return s===BrowserTypes.Safari||s===BrowserTypes.MobileSafari},isMobileSafariType=function(i){var s=i.name;return s===BrowserTypes.MobileSafari},isOperaType=function(i){var s=i.name;return s===BrowserTypes.Opera},isIEType=function(i){var s=i.name;return s===BrowserTypes.InternetExplorer||s===BrowserTypes.Ie},isMIUIType=function(i){var s=i.name;return s===BrowserTypes.MIUI},isSamsungBrowserType=function(i){var s=i.name;return s===BrowserTypes.SamsungBrowser},getBrowserFullVersion=function(i){var s=i.version;return setDefaults(s)},getBrowserVersion=function(i){var s=i.major;return setDefaults(s)},getBrowserName=function(i){var s=i.name;return setDefaults(s)},getEngineName=function(i){var s=i.name;return setDefaults(s)},getEngineVersion=function(i){var s=i.version;return setDefaults(s)},isElectronType=function(){var i=getNavigatorInstance(),s=i&&i.userAgent&&i.userAgent.toLowerCase();return typeof s=="string"?/electron/.test(s):!1},isEdgeChromiumType=function(i){return typeof i=="string"&&i.indexOf("Edg/")!==-1},getIOS13=function(){var i=getNavigatorInstance();return i&&(/iPad|iPhone|iPod/.test(i.platform)||i.platform==="MacIntel"&&i.maxTouchPoints>1)&&!window.MSStream},getIPad13=function(){return isIOS13Check("iPad")},getIphone13=function(){return isIOS13Check("iPhone")},getIPod13=function(){return isIOS13Check("iPod")},getUseragent=function(i){return setDefaults(i)};function buildSelectorsObject(o){var i=o||UAHelper,s=i.device,j=i.browser,$=i.os,_e=i.engine,tt=i.ua;return{isSmartTV:isSmartTVType(s),isConsole:isConsoleType(s),isWearable:isWearableType(s),isEmbedded:isEmbeddedType(s),isMobileSafari:isMobileSafariType(j)||getIPad13(),isChromium:isChromiumType(j),isMobile:isMobileAndTabletType(s)||getIPad13(),isMobileOnly:isMobileType(s),isTablet:isTabletType(s)||getIPad13(),isBrowser:isBrowserType(s),isDesktop:isBrowserType(s),isAndroid:isAndroidType($),isWinPhone:isWinPhoneType($),isIOS:isIOSType($)||getIPad13(),isChrome:isChromeType(j),isFirefox:isFirefoxType(j),isSafari:isSafariType(j),isOpera:isOperaType(j),isIE:isIEType(j),osVersion:getOsVersion($),osName:getOsName($),fullBrowserVersion:getBrowserFullVersion(j),browserVersion:getBrowserVersion(j),browserName:getBrowserName(j),mobileVendor:getMobileVendor(s),mobileModel:getMobileModel(s),engineName:getEngineName(_e),engineVersion:getEngineVersion(_e),getUA:getUseragent(tt),isEdge:isEdgeType(j)||isEdgeChromiumType(tt),isYandex:isYandexType(j),deviceType:getDeviceType(s),isIOS13:getIOS13(),isIPad13:getIPad13(),isIPhone13:getIphone13(),isIPod13:getIPod13(),isElectron:isElectronType(),isEdgeChromium:isEdgeChromiumType(tt),isLegacyEdge:isEdgeType(j)&&!isEdgeChromiumType(tt),isWindows:isWindowsType($),isMacOs:isMacOsType($),isMIUI:isMIUIType(j),isSamsungBrowser:isSamsungBrowserType(j)}}var isSmartTV=isSmartTVType(device),isConsole=isConsoleType(device),isWearable=isWearableType(device),isEmbedded=isEmbeddedType(device),isMobileSafari=isMobileSafariType(browser)||getIPad13(),isChromium=isChromiumType(browser),isMobile=isMobileAndTabletType(device)||getIPad13(),isMobileOnly=isMobileType(device),isTablet=isTabletType(device)||getIPad13(),isBrowser=isBrowserType(device),isDesktop=isBrowserType(device),isAndroid=isAndroidType(os),isWinPhone=isWinPhoneType(os),isIOS=isIOSType(os)||getIPad13(),isChrome=isChromeType(browser),isFirefox=isFirefoxType(browser),isSafari=isSafariType(browser),isOpera=isOperaType(browser),isIE=isIEType(browser),osVersion=getOsVersion(os),osName=getOsName(os),fullBrowserVersion=getBrowserFullVersion(browser),browserVersion=getBrowserVersion(browser),browserName=getBrowserName(browser),mobileVendor=getMobileVendor(device),mobileModel=getMobileModel(device),engineName=getEngineName(engine),engineVersion=getEngineVersion(engine),getUA=getUseragent(ua),isEdge=isEdgeType(browser)||isEdgeChromiumType(ua),isYandex=isYandexType(browser),deviceType=getDeviceType(device),isIOS13=getIOS13(),isIPad13=getIPad13(),isIPhone13=getIphone13(),isIPod13=getIPod13(),isElectron=isElectronType(),isEdgeChromium=isEdgeChromiumType(ua),isLegacyEdge=isEdgeType(browser)&&!isEdgeChromiumType(ua),isWindows=isWindowsType(os),isMacOs=isMacOsType(os),isMIUI=isMIUIType(browser),isSamsungBrowser=isSamsungBrowserType(browser),getSelectorsByUserAgent=function(i){if(!i||typeof i!="string"){console.error("No valid user agent string was provided");return}var s=parseUserAgent(i),j=s.device,$=s.browser,_e=s.os,tt=s.engine,et=s.ua;return buildSelectorsObject({device:j,browser:$,os:_e,engine:tt,ua:et})},AndroidView=function(i){var s=i.renderWithFragment,j=i.children,$=_objectWithoutProperties(i,["renderWithFragment","children"]);return isAndroid?s?jsx(Fragment,{children:j}):jsx("div",{...$,children:j}):null},BrowserView=function(i){var s=i.renderWithFragment,j=i.children,$=_objectWithoutProperties(i,["renderWithFragment","children"]);return isBrowser?s?jsx(Fragment,{children:j}):jsx("div",{...$,children:j}):null},IEView=function(i){var s=i.renderWithFragment,j=i.children,$=_objectWithoutProperties(i,["renderWithFragment","children"]);return isIE?s?jsx(Fragment,{children:j}):jsx("div",{...$,children:j}):null},IOSView=function(i){var s=i.renderWithFragment,j=i.children,$=_objectWithoutProperties(i,["renderWithFragment","children"]);return isIOS?s?jsx(Fragment,{children:j}):jsx("div",{...$,children:j}):null},MobileView=function(i){var s=i.renderWithFragment,j=i.children,$=_objectWithoutProperties(i,["renderWithFragment","children"]);return isMobile?s?jsx(Fragment,{children:j}):jsx("div",{...$,children:j}):null},TabletView=function(i){var s=i.renderWithFragment,j=i.children,$=_objectWithoutProperties(i,["renderWithFragment","children"]);return isTablet?s?jsx(Fragment,{children:j}):jsx("div",{...$,children:j}):null},WinPhoneView=function(i){var s=i.renderWithFragment,j=i.children,$=_objectWithoutProperties(i,["renderWithFragment","children"]);return isWinPhone?s?jsx(Fragment,{children:j}):jsx("div",{...$,children:j}):null},MobileOnlyView=function(i){var s=i.renderWithFragment,j=i.children;i.viewClassName,i.style;var $=_objectWithoutProperties(i,["renderWithFragment","children","viewClassName","style"]);return isMobileOnly?s?jsx(Fragment,{children:j}):jsx("div",{...$,children:j}):null},SmartTVView=function(i){var s=i.renderWithFragment,j=i.children,$=_objectWithoutProperties(i,["renderWithFragment","children"]);return isSmartTV?s?jsx(Fragment,{children:j}):jsx("div",{...$,children:j}):null},ConsoleView=function(i){var s=i.renderWithFragment,j=i.children,$=_objectWithoutProperties(i,["renderWithFragment","children"]);return isConsole?s?jsx(Fragment,{children:j}):jsx("div",{...$,children:j}):null},WearableView=function(i){var s=i.renderWithFragment,j=i.children,$=_objectWithoutProperties(i,["renderWithFragment","children"]);return isWearable?s?jsx(Fragment,{children:j}):jsx("div",{...$,children:j}):null},CustomView=function(i){var s=i.renderWithFragment,j=i.children;i.viewClassName,i.style;var $=i.condition,_e=_objectWithoutProperties(i,["renderWithFragment","children","viewClassName","style","condition"]);return $?s?jsx(Fragment,{children:j}):jsx("div",{..._e,children:j}):null};function withOrientationChange(o){return function(i){_inherits(s,i);function s(j){var $;return _classCallCheck(this,s),$=_possibleConstructorReturn(this,_getPrototypeOf(s).call(this,j)),$.isEventListenerAdded=!1,$.handleOrientationChange=$.handleOrientationChange.bind(_assertThisInitialized($)),$.onOrientationChange=$.onOrientationChange.bind(_assertThisInitialized($)),$.onPageLoad=$.onPageLoad.bind(_assertThisInitialized($)),$.state={isLandscape:!1,isPortrait:!1},$}return _createClass(s,[{key:"handleOrientationChange",value:function(){this.isEventListenerAdded||(this.isEventListenerAdded=!0);var $=window.innerWidth>window.innerHeight?90:0;this.setState({isPortrait:$===0,isLandscape:$===90})}},{key:"onOrientationChange",value:function(){this.handleOrientationChange()}},{key:"onPageLoad",value:function(){this.handleOrientationChange()}},{key:"componentDidMount",value:function(){(typeof window=="undefined"?"undefined":_typeof(window))!==void 0&&isMobile&&(this.isEventListenerAdded?window.removeEventListener("load",this.onPageLoad,!1):(this.handleOrientationChange(),window.addEventListener("load",this.onPageLoad,!1)),window.addEventListener("resize",this.onOrientationChange,!1))}},{key:"componentWillUnmount",value:function(){window.removeEventListener("resize",this.onOrientationChange,!1)}},{key:"render",value:function(){return jsx(o,{...this.props,isLandscape:this.state.isLandscape,isPortrait:this.state.isPortrait})}}]),s}(React__default.Component)}function useMobileOrientation(){var o=React.useState(function(){var _e=window.innerWidth>window.innerHeight?90:0;return{isPortrait:_e===0,isLandscape:_e===90,orientation:_e===0?"portrait":"landscape"}}),i=_slicedToArray(o,2),s=i[0],j=i[1],$=React.useCallback(function(){var _e=window.innerWidth>window.innerHeight?90:0,tt={isPortrait:_e===0,isLandscape:_e===90,orientation:_e===0?"portrait":"landscape"};s.orientation!==tt.orientation&&j(tt)},[s.orientation]);return React.useEffect(function(){return(typeof window=="undefined"?"undefined":_typeof(window))!==void 0&&isMobile&&($(),window.addEventListener("load",$,!1),window.addEventListener("resize",$,!1)),function(){window.removeEventListener("resize",$,!1),window.removeEventListener("load",$,!1)}},[$]),s}function useDeviceData(o){var i=o||window.navigator.userAgent;return parseUserAgent(i)}function useDeviceSelectors(o){var i=o||window.navigator.userAgent,s=useDeviceData(i),j=buildSelectorsObject(s);return[j,s]}lib.AndroidView=AndroidView;lib.BrowserTypes=BrowserTypes;var BrowserView_1=lib.BrowserView=BrowserView;lib.ConsoleView=ConsoleView;lib.CustomView=CustomView;lib.IEView=IEView;lib.IOSView=IOSView;lib.MobileOnlyView=MobileOnlyView;var MobileView_1=lib.MobileView=MobileView;lib.OsTypes=OsTypes;lib.SmartTVView=SmartTVView;lib.TabletView=TabletView;lib.WearableView=WearableView;lib.WinPhoneView=WinPhoneView;lib.browserName=browserName;lib.browserVersion=browserVersion;lib.deviceDetect=deviceDetect;lib.deviceType=deviceType;lib.engineName=engineName;lib.engineVersion=engineVersion;lib.fullBrowserVersion=fullBrowserVersion;lib.getSelectorsByUserAgent=getSelectorsByUserAgent;lib.getUA=getUA;lib.isAndroid=isAndroid;lib.isBrowser=isBrowser;lib.isChrome=isChrome;lib.isChromium=isChromium;lib.isConsole=isConsole;lib.isDesktop=isDesktop;lib.isEdge=isEdge;lib.isEdgeChromium=isEdgeChromium;lib.isElectron=isElectron;lib.isEmbedded=isEmbedded;lib.isFirefox=isFirefox;lib.isIE=isIE;lib.isIOS=isIOS;lib.isIOS13=isIOS13;lib.isIPad13=isIPad13;lib.isIPhone13=isIPhone13;lib.isIPod13=isIPod13;lib.isLegacyEdge=isLegacyEdge;lib.isMIUI=isMIUI;lib.isMacOs=isMacOs;lib.isMobile=isMobile;lib.isMobileOnly=isMobileOnly;lib.isMobileSafari=isMobileSafari;lib.isOpera=isOpera;lib.isSafari=isSafari;lib.isSamsungBrowser=isSamsungBrowser;lib.isSmartTV=isSmartTV;lib.isTablet=isTablet;lib.isWearable=isWearable;lib.isWinPhone=isWinPhone;lib.isWindows=isWindows;lib.isYandex=isYandex;lib.mobileModel=mobileModel;lib.mobileVendor=mobileVendor;lib.osName=osName;lib.osVersion=osVersion;lib.parseUserAgent=parseUserAgent;lib.setUserAgent=setUserAgent;lib.useDeviceData=useDeviceData;lib.useDeviceSelectors=useDeviceSelectors;lib.useMobileOrientation=useMobileOrientation;lib.withOrientationChange=withOrientationChange;function Select(o){const i=j=>{o.onChange&&o.onChange(j.target.value)},s=j=>{o.onChange&&o.onChange(j.target.value)};return React$1.createElement(React$1.Fragment,null,React$1.createElement(MobileView_1,null,React$1.createElement(FormControl$1,{sx:__spreadValues2({minWidth:"20rem"},o.sx||{}),fullWidth:o.fullWidth},React$1.createElement(NativeSelect$1,{value:o.value,onChange:s},(o.items||[]).map(j=>React$1.createElement("option",{key:j.label,value:j.value},j.label))))),React$1.createElement(BrowserView_1,null,React$1.createElement(FormControl$1,{sx:__spreadValues2({minWidth:"20rem"},o.sx||{}),fullWidth:o.fullWidth,variant:"filled"},React$1.createElement(InputLabel$1,null,o.label),React$1.createElement(Select$1$1,{value:o.value,label:o.label,onChange:i},(o.items||[]).map(j=>React$1.createElement(MenuItem$1,{key:j.label,value:j.value},j.label))))))}var __defProp=Object.defineProperty,__getOwnPropSymbols=Object.getOwnPropertySymbols,__hasOwnProp=Object.prototype.hasOwnProperty,__propIsEnum=Object.prototype.propertyIsEnumerable,__defNormalProp=(o,i,s)=>i in o?__defProp(o,i,{enumerable:!0,configurable:!0,writable:!0,value:s}):o[i]=s,__spreadValues=(o,i)=>{for(var s in i||(i={}))__hasOwnProp.call(i,s)&&__defNormalProp(o,s,i[s]);if(__getOwnPropSymbols)for(var s of __getOwnPropSymbols(i))__propIsEnum.call(i,s)&&__defNormalProp(o,s,i[s]);return o},__publicField=(o,i,s)=>(__defNormalProp(o,typeof i!="symbol"?i+"":i,s),s),dist={exports:{}};/*! For license information please see index.js.LICENSE.txt */(function(module,exports){(function(o,i){module.exports=i()})(window,function(){return function(o){function i(ot){for(var lt,dt,at=ot[0],ct=ot[1],st=0,ut=[];stOt.redacted!==!1?Object(Tt.a)(Yt):Yt;if(!Rt.stack)return{message:bt(It(Rt),{cycles:!0})};const{name:St,message:gt,stack:Bt}=Rt,Dt=ht(Rt,["name","message","stack"]);return{name:St,message:gt!==void 0?gt:bt(It(Rt),{cycles:!0}),stack:Bt,meta:Dt&&Object.keys(Dt).length===0?void 0:It(Dt)}}function ft(Rt,Ot={}){const{message:It,stack:St,meta:gt}=yt(Rt,Ot);return`${St||It||""}${gt&&Object.keys(gt).length>0?` -- ${bt(gt,{cycles:!0})}`:""}`}var Ct=s(99),Ft=function(Rt,Ot,It,St){return new(It||(It=Promise))(function(gt,Bt){function Dt(Jt){try{Xt(St.next(Jt))}catch(zt){Bt(zt)}}function Yt(Jt){try{Xt(St.throw(Jt))}catch(zt){Bt(zt)}}function Xt(Jt){var zt;Jt.done?gt(Jt.value):(zt=Jt.value,zt instanceof It?zt:new It(function(Wt){Wt(zt)})).then(Dt,Yt)}Xt((St=St.apply(Rt,Ot||[])).next())})},Ut=function(Rt,Ot){var It={};for(var St in Rt)Object.prototype.hasOwnProperty.call(Rt,St)&&Ot.indexOf(St)<0&&(It[St]=Rt[St]);if(Rt!=null&&typeof Object.getOwnPropertySymbols=="function"){var gt=0;for(St=Object.getOwnPropertySymbols(Rt);gt{var{timestamp:Ot,level:It,message:St,error:gt}=Rt,Bt=vt(Rt,["timestamp","level","message","error"]);const Dt=Object.assign(Object.assign({timestamp:Ot?new Date(Ot).getTime():new Date().getTime(),level:It.toUpperCase(),message:St},gt?{error:yt(gt)}:{}),{meta:Object.assign(Object.assign(Object.assign({},At),Et),Bt)});try{return JSON.stringify(Dt)}catch{return _e(Dt)}}):ut.format.printf(Rt=>{var{timestamp:Ot,level:It,message:St,error:gt}=Rt,Bt=vt(Rt,["timestamp","level","message","error"]);let Dt=`${Ot||new Date().toISOString()} ${It.toUpperCase()}: ${St} `;if(Object.keys(Bt).length>0)try{Dt+=JSON.stringify(Bt)}catch{Dt+=_e(Bt)}return gt&&(Dt+=` -${ft(gt)}`),Dt}),Lt=Object(ut.createLogger)({level:mt.f});if(mt.g&&Lt.add(new ut.transports.Console({format:Mt,level:"debug"})),mt.d&&Lt.add(new wt(mt.d,()=>Object.assign(Object.assign(Object.assign({},At),Et),{level:"debug"}))),mt.h){const Rt=et.resolve(tt.tmpdir(),`silly-${mt.a}.log`);Lt.debug("Logging silly logs to file",{filename:Rt}),Lt.add(new ut.transports.File({filename:Rt,maxsize:1*$,maxFiles:10,format:ut.format.combine((kt="silly",Object(ut.format)(Ot=>Ot.level===kt&&Ot)()),Mt),level:"silly"}))}var kt},function(o,i,s){s.d(i,"a",function(){return j});const j={millisecond:1,second:1e3,minute:6e4,hour:36e5,day:864e5,week:6048e5,month:2592e6,year:31536e6}},function(o,i){var s,j,$=o.exports={};function _e(){throw new Error("setTimeout has not been defined")}function tt(){throw new Error("clearTimeout has not been defined")}function et(mt){if(s===setTimeout)return setTimeout(mt,0);if((s===_e||!s)&&setTimeout)return s=setTimeout,setTimeout(mt,0);try{return s(mt,0)}catch{try{return s.call(null,mt,0)}catch{return s.call(this,mt,0)}}}(function(){try{s=typeof setTimeout=="function"?setTimeout:_e}catch{s=_e}try{j=typeof clearTimeout=="function"?clearTimeout:tt}catch{j=tt}})();var rt,ot=[],lt=!1,dt=-1;function at(){lt&&rt&&(lt=!1,rt.length?ot=rt.concat(ot):dt=-1,ot.length&&ct())}function ct(){if(!lt){var mt=et(at);lt=!0;for(var bt=ot.length;bt;){for(rt=ot,ot=[];++dt1)for(var Tt=1;Tt=et())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+et().toString(16)+" bytes");return 0|xt}function ut(xt,Pt){if(ot.isBuffer(xt))return xt.length;if(typeof ArrayBuffer!="undefined"&&typeof ArrayBuffer.isView=="function"&&(ArrayBuffer.isView(xt)||xt instanceof ArrayBuffer))return xt.byteLength;typeof xt!="string"&&(xt=""+xt);var $t=xt.length;if($t===0)return 0;for(var en=!1;;)switch(Pt){case"ascii":case"latin1":case"binary":return $t;case"utf8":case"utf-8":case void 0:return Jt(xt).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*$t;case"hex":return $t>>>1;case"base64":return zt(xt).length;default:if(en)return Jt(xt).length;Pt=(""+Pt).toLowerCase(),en=!0}}function mt(xt,Pt,$t){var en=!1;if((Pt===void 0||Pt<0)&&(Pt=0),Pt>this.length||(($t===void 0||$t>this.length)&&($t=this.length),$t<=0)||($t>>>=0)<=(Pt>>>=0))return"";for(xt||(xt="utf8");;)switch(xt){case"hex":return Lt(this,Pt,$t);case"utf8":case"utf-8":return At(this,Pt,$t);case"ascii":return Et(this,Pt,$t);case"latin1":case"binary":return Mt(this,Pt,$t);case"base64":return vt(this,Pt,$t);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return kt(this,Pt,$t);default:if(en)throw new TypeError("Unknown encoding: "+xt);xt=(xt+"").toLowerCase(),en=!0}}function bt(xt,Pt,$t){var en=xt[Pt];xt[Pt]=xt[$t],xt[$t]=en}function Tt(xt,Pt,$t,en,Zt){if(xt.length===0)return-1;if(typeof $t=="string"?(en=$t,$t=0):$t>2147483647?$t=2147483647:$t<-2147483648&&($t=-2147483648),$t=+$t,isNaN($t)&&($t=Zt?0:xt.length-1),$t<0&&($t=xt.length+$t),$t>=xt.length){if(Zt)return-1;$t=xt.length-1}else if($t<0){if(!Zt)return-1;$t=0}if(typeof Pt=="string"&&(Pt=ot.from(Pt,en)),ot.isBuffer(Pt))return Pt.length===0?-1:ht(xt,Pt,$t,en,Zt);if(typeof Pt=="number")return Pt&=255,ot.TYPED_ARRAY_SUPPORT&&typeof Uint8Array.prototype.indexOf=="function"?Zt?Uint8Array.prototype.indexOf.call(xt,Pt,$t):Uint8Array.prototype.lastIndexOf.call(xt,Pt,$t):ht(xt,[Pt],$t,en,Zt);throw new TypeError("val must be string, number or Buffer")}function ht(xt,Pt,$t,en,Zt){var rn,cn=1,sn=xt.length,Ht=Pt.length;if(en!==void 0&&((en=String(en).toLowerCase())==="ucs2"||en==="ucs-2"||en==="utf16le"||en==="utf-16le")){if(xt.length<2||Pt.length<2)return-1;cn=2,sn/=2,Ht/=2,$t/=2}function qt(_n,vn){return cn===1?_n[vn]:_n.readUInt16BE(vn*cn)}if(Zt){var nn=-1;for(rn=$t;rnsn&&($t=sn-Ht),rn=$t;rn>=0;rn--){for(var yn=!0,ln=0;lnZt&&(en=Zt):en=Zt;var rn=Pt.length;if(rn%2!=0)throw new TypeError("Invalid hex string");en>rn/2&&(en=rn/2);for(var cn=0;cn>8,Ht=cn%256,qt.push(Ht),qt.push(sn);return qt}(Pt,xt.length-$t),xt,$t,en)}function vt(xt,Pt,$t){return Pt===0&&$t===xt.length?$.fromByteArray(xt):$.fromByteArray(xt.slice(Pt,$t))}function At(xt,Pt,$t){$t=Math.min(xt.length,$t);for(var en=[],Zt=Pt;Zt<$t;){var rn,cn,sn,Ht,qt=xt[Zt],nn=null,yn=qt>239?4:qt>223?3:qt>191?2:1;if(Zt+yn<=$t)switch(yn){case 1:qt<128&&(nn=qt);break;case 2:(192&(rn=xt[Zt+1]))==128&&(Ht=(31&qt)<<6|63&rn)>127&&(nn=Ht);break;case 3:rn=xt[Zt+1],cn=xt[Zt+2],(192&rn)==128&&(192&cn)==128&&(Ht=(15&qt)<<12|(63&rn)<<6|63&cn)>2047&&(Ht<55296||Ht>57343)&&(nn=Ht);break;case 4:rn=xt[Zt+1],cn=xt[Zt+2],sn=xt[Zt+3],(192&rn)==128&&(192&cn)==128&&(192&sn)==128&&(Ht=(15&qt)<<18|(63&rn)<<12|(63&cn)<<6|63&sn)>65535&&Ht<1114112&&(nn=Ht)}nn===null?(nn=65533,yn=1):nn>65535&&(nn-=65536,en.push(nn>>>10&1023|55296),nn=56320|1023&nn),en.push(nn),Zt+=yn}return function(ln){var _n=ln.length;if(_n<=4096)return String.fromCharCode.apply(String,ln);for(var vn="",hn=0;hn<_n;)vn+=String.fromCharCode.apply(String,ln.slice(hn,hn+=4096));return vn}(en)}i.Buffer=ot,i.SlowBuffer=function(xt){return+xt!=xt&&(xt=0),ot.alloc(+xt)},i.INSPECT_MAX_BYTES=50,ot.TYPED_ARRAY_SUPPORT=j.TYPED_ARRAY_SUPPORT!==void 0?j.TYPED_ARRAY_SUPPORT:function(){try{var xt=new Uint8Array(1);return xt.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},xt.foo()===42&&typeof xt.subarray=="function"&&xt.subarray(1,1).byteLength===0}catch{return!1}}(),i.kMaxLength=et(),ot.poolSize=8192,ot._augment=function(xt){return xt.__proto__=ot.prototype,xt},ot.from=function(xt,Pt,$t){return lt(null,xt,Pt,$t)},ot.TYPED_ARRAY_SUPPORT&&(ot.prototype.__proto__=Uint8Array.prototype,ot.__proto__=Uint8Array,typeof Symbol!="undefined"&&Symbol.species&&ot[Symbol.species]===ot&&Object.defineProperty(ot,Symbol.species,{value:null,configurable:!0})),ot.alloc=function(xt,Pt,$t){return function(en,Zt,rn,cn){return dt(Zt),Zt<=0?rt(en,Zt):rn!==void 0?typeof cn=="string"?rt(en,Zt).fill(rn,cn):rt(en,Zt).fill(rn):rt(en,Zt)}(null,xt,Pt,$t)},ot.allocUnsafe=function(xt){return at(null,xt)},ot.allocUnsafeSlow=function(xt){return at(null,xt)},ot.isBuffer=function(xt){return!(xt==null||!xt._isBuffer)},ot.compare=function(xt,Pt){if(!ot.isBuffer(xt)||!ot.isBuffer(Pt))throw new TypeError("Arguments must be Buffers");if(xt===Pt)return 0;for(var $t=xt.length,en=Pt.length,Zt=0,rn=Math.min($t,en);Zt0&&(xt=this.toString("hex",0,Pt).match(/.{2}/g).join(" "),this.length>Pt&&(xt+=" ... ")),""},ot.prototype.compare=function(xt,Pt,$t,en,Zt){if(!ot.isBuffer(xt))throw new TypeError("Argument must be a Buffer");if(Pt===void 0&&(Pt=0),$t===void 0&&($t=xt?xt.length:0),en===void 0&&(en=0),Zt===void 0&&(Zt=this.length),Pt<0||$t>xt.length||en<0||Zt>this.length)throw new RangeError("out of range index");if(en>=Zt&&Pt>=$t)return 0;if(en>=Zt)return-1;if(Pt>=$t)return 1;if(this===xt)return 0;for(var rn=(Zt>>>=0)-(en>>>=0),cn=($t>>>=0)-(Pt>>>=0),sn=Math.min(rn,cn),Ht=this.slice(en,Zt),qt=xt.slice(Pt,$t),nn=0;nnZt)&&($t=Zt),xt.length>0&&($t<0||Pt<0)||Pt>this.length)throw new RangeError("Attempt to write outside buffer bounds");en||(en="utf8");for(var rn=!1;;)switch(en){case"hex":return yt(this,xt,Pt,$t);case"utf8":case"utf-8":return ft(this,xt,Pt,$t);case"ascii":return Ct(this,xt,Pt,$t);case"latin1":case"binary":return Ft(this,xt,Pt,$t);case"base64":return Ut(this,xt,Pt,$t);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return wt(this,xt,Pt,$t);default:if(rn)throw new TypeError("Unknown encoding: "+en);en=(""+en).toLowerCase(),rn=!0}},ot.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function Et(xt,Pt,$t){var en="";$t=Math.min(xt.length,$t);for(var Zt=Pt;Zt<$t;++Zt)en+=String.fromCharCode(127&xt[Zt]);return en}function Mt(xt,Pt,$t){var en="";$t=Math.min(xt.length,$t);for(var Zt=Pt;Zt<$t;++Zt)en+=String.fromCharCode(xt[Zt]);return en}function Lt(xt,Pt,$t){var en=xt.length;(!Pt||Pt<0)&&(Pt=0),(!$t||$t<0||$t>en)&&($t=en);for(var Zt="",rn=Pt;rn<$t;++rn)Zt+=Xt(xt[rn]);return Zt}function kt(xt,Pt,$t){for(var en=xt.slice(Pt,$t),Zt="",rn=0;rn$t)throw new RangeError("Trying to access beyond buffer length")}function Ot(xt,Pt,$t,en,Zt,rn){if(!ot.isBuffer(xt))throw new TypeError('"buffer" argument must be a Buffer instance');if(Pt>Zt||Ptxt.length)throw new RangeError("Index out of range")}function It(xt,Pt,$t,en){Pt<0&&(Pt=65535+Pt+1);for(var Zt=0,rn=Math.min(xt.length-$t,2);Zt>>8*(en?Zt:1-Zt)}function St(xt,Pt,$t,en){Pt<0&&(Pt=4294967295+Pt+1);for(var Zt=0,rn=Math.min(xt.length-$t,4);Zt>>8*(en?Zt:3-Zt)&255}function gt(xt,Pt,$t,en,Zt,rn){if($t+en>xt.length)throw new RangeError("Index out of range");if($t<0)throw new RangeError("Index out of range")}function Bt(xt,Pt,$t,en,Zt){return Zt||gt(xt,0,$t,4),_e.write(xt,Pt,$t,en,23,4),$t+4}function Dt(xt,Pt,$t,en,Zt){return Zt||gt(xt,0,$t,8),_e.write(xt,Pt,$t,en,52,8),$t+8}ot.prototype.slice=function(xt,Pt){var $t,en=this.length;if((xt=~~xt)<0?(xt+=en)<0&&(xt=0):xt>en&&(xt=en),(Pt=Pt===void 0?en:~~Pt)<0?(Pt+=en)<0&&(Pt=0):Pt>en&&(Pt=en),Pt0&&(Zt*=256);)en+=this[xt+--Pt]*Zt;return en},ot.prototype.readUInt8=function(xt,Pt){return Pt||Rt(xt,1,this.length),this[xt]},ot.prototype.readUInt16LE=function(xt,Pt){return Pt||Rt(xt,2,this.length),this[xt]|this[xt+1]<<8},ot.prototype.readUInt16BE=function(xt,Pt){return Pt||Rt(xt,2,this.length),this[xt]<<8|this[xt+1]},ot.prototype.readUInt32LE=function(xt,Pt){return Pt||Rt(xt,4,this.length),(this[xt]|this[xt+1]<<8|this[xt+2]<<16)+16777216*this[xt+3]},ot.prototype.readUInt32BE=function(xt,Pt){return Pt||Rt(xt,4,this.length),16777216*this[xt]+(this[xt+1]<<16|this[xt+2]<<8|this[xt+3])},ot.prototype.readIntLE=function(xt,Pt,$t){xt|=0,Pt|=0,$t||Rt(xt,Pt,this.length);for(var en=this[xt],Zt=1,rn=0;++rn=(Zt*=128)&&(en-=Math.pow(2,8*Pt)),en},ot.prototype.readIntBE=function(xt,Pt,$t){xt|=0,Pt|=0,$t||Rt(xt,Pt,this.length);for(var en=Pt,Zt=1,rn=this[xt+--en];en>0&&(Zt*=256);)rn+=this[xt+--en]*Zt;return rn>=(Zt*=128)&&(rn-=Math.pow(2,8*Pt)),rn},ot.prototype.readInt8=function(xt,Pt){return Pt||Rt(xt,1,this.length),128&this[xt]?-1*(255-this[xt]+1):this[xt]},ot.prototype.readInt16LE=function(xt,Pt){Pt||Rt(xt,2,this.length);var $t=this[xt]|this[xt+1]<<8;return 32768&$t?4294901760|$t:$t},ot.prototype.readInt16BE=function(xt,Pt){Pt||Rt(xt,2,this.length);var $t=this[xt+1]|this[xt]<<8;return 32768&$t?4294901760|$t:$t},ot.prototype.readInt32LE=function(xt,Pt){return Pt||Rt(xt,4,this.length),this[xt]|this[xt+1]<<8|this[xt+2]<<16|this[xt+3]<<24},ot.prototype.readInt32BE=function(xt,Pt){return Pt||Rt(xt,4,this.length),this[xt]<<24|this[xt+1]<<16|this[xt+2]<<8|this[xt+3]},ot.prototype.readFloatLE=function(xt,Pt){return Pt||Rt(xt,4,this.length),_e.read(this,xt,!0,23,4)},ot.prototype.readFloatBE=function(xt,Pt){return Pt||Rt(xt,4,this.length),_e.read(this,xt,!1,23,4)},ot.prototype.readDoubleLE=function(xt,Pt){return Pt||Rt(xt,8,this.length),_e.read(this,xt,!0,52,8)},ot.prototype.readDoubleBE=function(xt,Pt){return Pt||Rt(xt,8,this.length),_e.read(this,xt,!1,52,8)},ot.prototype.writeUIntLE=function(xt,Pt,$t,en){xt=+xt,Pt|=0,$t|=0,en||Ot(this,xt,Pt,$t,Math.pow(2,8*$t)-1,0);var Zt=1,rn=0;for(this[Pt]=255&xt;++rn<$t&&(Zt*=256);)this[Pt+rn]=xt/Zt&255;return Pt+$t},ot.prototype.writeUIntBE=function(xt,Pt,$t,en){xt=+xt,Pt|=0,$t|=0,en||Ot(this,xt,Pt,$t,Math.pow(2,8*$t)-1,0);var Zt=$t-1,rn=1;for(this[Pt+Zt]=255&xt;--Zt>=0&&(rn*=256);)this[Pt+Zt]=xt/rn&255;return Pt+$t},ot.prototype.writeUInt8=function(xt,Pt,$t){return xt=+xt,Pt|=0,$t||Ot(this,xt,Pt,1,255,0),ot.TYPED_ARRAY_SUPPORT||(xt=Math.floor(xt)),this[Pt]=255&xt,Pt+1},ot.prototype.writeUInt16LE=function(xt,Pt,$t){return xt=+xt,Pt|=0,$t||Ot(this,xt,Pt,2,65535,0),ot.TYPED_ARRAY_SUPPORT?(this[Pt]=255&xt,this[Pt+1]=xt>>>8):It(this,xt,Pt,!0),Pt+2},ot.prototype.writeUInt16BE=function(xt,Pt,$t){return xt=+xt,Pt|=0,$t||Ot(this,xt,Pt,2,65535,0),ot.TYPED_ARRAY_SUPPORT?(this[Pt]=xt>>>8,this[Pt+1]=255&xt):It(this,xt,Pt,!1),Pt+2},ot.prototype.writeUInt32LE=function(xt,Pt,$t){return xt=+xt,Pt|=0,$t||Ot(this,xt,Pt,4,4294967295,0),ot.TYPED_ARRAY_SUPPORT?(this[Pt+3]=xt>>>24,this[Pt+2]=xt>>>16,this[Pt+1]=xt>>>8,this[Pt]=255&xt):St(this,xt,Pt,!0),Pt+4},ot.prototype.writeUInt32BE=function(xt,Pt,$t){return xt=+xt,Pt|=0,$t||Ot(this,xt,Pt,4,4294967295,0),ot.TYPED_ARRAY_SUPPORT?(this[Pt]=xt>>>24,this[Pt+1]=xt>>>16,this[Pt+2]=xt>>>8,this[Pt+3]=255&xt):St(this,xt,Pt,!1),Pt+4},ot.prototype.writeIntLE=function(xt,Pt,$t,en){if(xt=+xt,Pt|=0,!en){var Zt=Math.pow(2,8*$t-1);Ot(this,xt,Pt,$t,Zt-1,-Zt)}var rn=0,cn=1,sn=0;for(this[Pt]=255&xt;++rn<$t&&(cn*=256);)xt<0&&sn===0&&this[Pt+rn-1]!==0&&(sn=1),this[Pt+rn]=(xt/cn>>0)-sn&255;return Pt+$t},ot.prototype.writeIntBE=function(xt,Pt,$t,en){if(xt=+xt,Pt|=0,!en){var Zt=Math.pow(2,8*$t-1);Ot(this,xt,Pt,$t,Zt-1,-Zt)}var rn=$t-1,cn=1,sn=0;for(this[Pt+rn]=255&xt;--rn>=0&&(cn*=256);)xt<0&&sn===0&&this[Pt+rn+1]!==0&&(sn=1),this[Pt+rn]=(xt/cn>>0)-sn&255;return Pt+$t},ot.prototype.writeInt8=function(xt,Pt,$t){return xt=+xt,Pt|=0,$t||Ot(this,xt,Pt,1,127,-128),ot.TYPED_ARRAY_SUPPORT||(xt=Math.floor(xt)),xt<0&&(xt=255+xt+1),this[Pt]=255&xt,Pt+1},ot.prototype.writeInt16LE=function(xt,Pt,$t){return xt=+xt,Pt|=0,$t||Ot(this,xt,Pt,2,32767,-32768),ot.TYPED_ARRAY_SUPPORT?(this[Pt]=255&xt,this[Pt+1]=xt>>>8):It(this,xt,Pt,!0),Pt+2},ot.prototype.writeInt16BE=function(xt,Pt,$t){return xt=+xt,Pt|=0,$t||Ot(this,xt,Pt,2,32767,-32768),ot.TYPED_ARRAY_SUPPORT?(this[Pt]=xt>>>8,this[Pt+1]=255&xt):It(this,xt,Pt,!1),Pt+2},ot.prototype.writeInt32LE=function(xt,Pt,$t){return xt=+xt,Pt|=0,$t||Ot(this,xt,Pt,4,2147483647,-2147483648),ot.TYPED_ARRAY_SUPPORT?(this[Pt]=255&xt,this[Pt+1]=xt>>>8,this[Pt+2]=xt>>>16,this[Pt+3]=xt>>>24):St(this,xt,Pt,!0),Pt+4},ot.prototype.writeInt32BE=function(xt,Pt,$t){return xt=+xt,Pt|=0,$t||Ot(this,xt,Pt,4,2147483647,-2147483648),xt<0&&(xt=4294967295+xt+1),ot.TYPED_ARRAY_SUPPORT?(this[Pt]=xt>>>24,this[Pt+1]=xt>>>16,this[Pt+2]=xt>>>8,this[Pt+3]=255&xt):St(this,xt,Pt,!1),Pt+4},ot.prototype.writeFloatLE=function(xt,Pt,$t){return Bt(this,xt,Pt,!0,$t)},ot.prototype.writeFloatBE=function(xt,Pt,$t){return Bt(this,xt,Pt,!1,$t)},ot.prototype.writeDoubleLE=function(xt,Pt,$t){return Dt(this,xt,Pt,!0,$t)},ot.prototype.writeDoubleBE=function(xt,Pt,$t){return Dt(this,xt,Pt,!1,$t)},ot.prototype.copy=function(xt,Pt,$t,en){if($t||($t=0),en||en===0||(en=this.length),Pt>=xt.length&&(Pt=xt.length),Pt||(Pt=0),en>0&&en<$t&&(en=$t),en===$t||xt.length===0||this.length===0)return 0;if(Pt<0)throw new RangeError("targetStart out of bounds");if($t<0||$t>=this.length)throw new RangeError("sourceStart out of bounds");if(en<0)throw new RangeError("sourceEnd out of bounds");en>this.length&&(en=this.length),xt.length-Pt=0;--Zt)xt[Zt+Pt]=this[Zt+$t];else if(rn<1e3||!ot.TYPED_ARRAY_SUPPORT)for(Zt=0;Zt>>=0,$t=$t===void 0?this.length:$t>>>0,xt||(xt=0),typeof xt=="number")for(rn=Pt;rn<$t;++rn)this[rn]=xt;else{var cn=ot.isBuffer(xt)?xt:Jt(new ot(xt,en).toString()),sn=cn.length;for(rn=0;rn<$t-Pt;++rn)this[rn+Pt]=cn[rn%sn]}return this};var Yt=/[^+\/0-9A-Za-z-_]/g;function Xt(xt){return xt<16?"0"+xt.toString(16):xt.toString(16)}function Jt(xt,Pt){var $t;Pt=Pt||1/0;for(var en=xt.length,Zt=null,rn=[],cn=0;cn55295&&$t<57344){if(!Zt){if($t>56319){(Pt-=3)>-1&&rn.push(239,191,189);continue}if(cn+1===en){(Pt-=3)>-1&&rn.push(239,191,189);continue}Zt=$t;continue}if($t<56320){(Pt-=3)>-1&&rn.push(239,191,189),Zt=$t;continue}$t=65536+(Zt-55296<<10|$t-56320)}else Zt&&(Pt-=3)>-1&&rn.push(239,191,189);if(Zt=null,$t<128){if((Pt-=1)<0)break;rn.push($t)}else if($t<2048){if((Pt-=2)<0)break;rn.push($t>>6|192,63&$t|128)}else if($t<65536){if((Pt-=3)<0)break;rn.push($t>>12|224,$t>>6&63|128,63&$t|128)}else{if(!($t<1114112))throw new Error("Invalid code point");if((Pt-=4)<0)break;rn.push($t>>18|240,$t>>12&63|128,$t>>6&63|128,63&$t|128)}}return rn}function zt(xt){return $.toByteArray(function(Pt){if((Pt=function($t){return $t.trim?$t.trim():$t.replace(/^\s+|\s+$/g,"")}(Pt).replace(Yt,"")).length<2)return"";for(;Pt.length%4!=0;)Pt+="=";return Pt}(xt))}function Wt(xt,Pt,$t,en){for(var Zt=0;Zt=Pt.length||Zt>=xt.length);++Zt)Pt[Zt+$t]=xt[Zt];return Zt}}).call(this,s(5))},function(o,i){var s;s=function(){return this}();try{s=s||new Function("return this")()}catch{typeof window=="object"&&(s=window)}o.exports=s},function(o,i){typeof Object.create=="function"?o.exports=function(s,j){j&&(s.super_=j,s.prototype=Object.create(j.prototype,{constructor:{value:s,enumerable:!1,writable:!0,configurable:!0}}))}:o.exports=function(s,j){if(j){s.super_=j;var $=function(){};$.prototype=j.prototype,s.prototype=new $,s.prototype.constructor=s}}},function(o,i,s){(function(j){s.d(i,"a",function(){return tt}),s.d(i,"i",function(){return et}),s.d(i,"j",function(){return rt}),s.d(i,"b",function(){return ot}),s.d(i,"f",function(){return lt}),s.d(i,"e",function(){return dt}),s.d(i,"g",function(){return at}),s.d(i,"d",function(){return ct}),s.d(i,"c",function(){return st}),s.d(i,"h",function(){return ut});var $=s(98);const _e=$.from(Object.assign(Object.assign({},j.env),{ENVIRONMENT:j.env.ENV,APP:"realtime-sdk",NAMESPACE:"production",VERSION:j.env.VERSION,BUILD_TAG:j.env.BUILD_TAG,GIT_COMMIT:j.env.GIT_COMMIT,LOG_LEVEL:j.env.LOG_LEVEL,LOG_JSON:"false",LOG_API_ENDPOINT:j.env.LOG_API_ENDPOINT,JEST_WORKER_ID:j.env.JEST_WORKER_ID,ENABLE_SENTRY:j.env.ENABLE_SENTRY,SENTRY_DSN:j.env.SENTRY_DSN,STABLE_AGENT_VERSION:j.env.STABLE_AGENT_VERSION})),tt=(_e.get("ENVIRONMENT").default("").asString(),_e.get("APP").default("").asString()),et=(_e.get("APP_PATH").default("").asString(),_e.get("API_ENDPOINT").default("").asString(),_e.get("NAMESPACE").default("").asString()),rt=_e.get("VERSION").default("").asString(),ot=_e.get("BUILD_TAG").default("").asString(),lt=(_e.get("GIT_COMMIT").default("").asString(),_e.get("ENABLE_SENTRY").default("false").asBool(),_e.get("SENTRY_DSN").default("").asString(),_e.get("LOG_LEVEL").default("debug").asString()),dt=_e.get("LOG_JSON").default("true").asBool(),at=_e.get("LOG_TO_CONSOLE").default("true").asBool(),ct=(_e.get("STABLE_AGENT_VERSION").default("").asString(),_e.get("LOG_API_ENDPOINT").asString()),st=_e.get("JEST_WORKER_ID").asString(),ut=(_e.get("SHEET_EXPORT_MAX_ROW_COUNT").default("10000").asIntPositive(),_e.get("LOG_TO_FILE").default("false").asBoolStrict())}).call(this,s(2))},function(o,i,s){var j=s(95),$=j,_e=Function("return this")(),tt=s(94);$.object.extend(proto,tt),$.exportSymbol("proto.v1.signaling.api.CreatePeerRequest",null,_e),$.exportSymbol("proto.v1.signaling.api.CreatePeerResponse",null,_e),$.exportSymbol("proto.v1.signaling.api.DeletePeerRequest",null,_e),$.exportSymbol("proto.v1.signaling.api.DeletePeerResponse",null,_e),$.exportSymbol("proto.v1.signaling.api.GetIceServersRequest",null,_e),$.exportSymbol("proto.v1.signaling.api.GetIceServersResponse",null,_e),$.exportSymbol("proto.v1.signaling.api.GetPeersRequest",null,_e),$.exportSymbol("proto.v1.signaling.api.GetPeersResponse",null,_e),$.exportSymbol("proto.v1.signaling.api.Peer",null,_e),$.exportSymbol("proto.v1.signaling.api.ReceiveSignalStreamRequest",null,_e),$.exportSymbol("proto.v1.signaling.api.ReceiveSignalStreamResponse",null,_e),$.exportSymbol("proto.v1.signaling.api.RefreshPeerRequest",null,_e),$.exportSymbol("proto.v1.signaling.api.RefreshPeerResponse",null,_e),$.exportSymbol("proto.v1.signaling.api.SendSignalRequest",null,_e),$.exportSymbol("proto.v1.signaling.api.SendSignalResponse",null,_e),$.exportSymbol("proto.v1.signaling.api.SessionType",null,_e),$.exportSymbol("proto.v1.signaling.api.Signal",null,_e),proto.v1.signaling.api.Peer=function(et){j.Message.initialize(this,et,0,-1,proto.v1.signaling.api.Peer.repeatedFields_,null)},$.inherits(proto.v1.signaling.api.Peer,j.Message),$.DEBUG&&!COMPILED&&(proto.v1.signaling.api.Peer.displayName="proto.v1.signaling.api.Peer"),proto.v1.signaling.api.Signal=function(et){j.Message.initialize(this,et,0,-1,null,null)},$.inherits(proto.v1.signaling.api.Signal,j.Message),$.DEBUG&&!COMPILED&&(proto.v1.signaling.api.Signal.displayName="proto.v1.signaling.api.Signal"),proto.v1.signaling.api.CreatePeerRequest=function(et){j.Message.initialize(this,et,0,-1,null,null)},$.inherits(proto.v1.signaling.api.CreatePeerRequest,j.Message),$.DEBUG&&!COMPILED&&(proto.v1.signaling.api.CreatePeerRequest.displayName="proto.v1.signaling.api.CreatePeerRequest"),proto.v1.signaling.api.CreatePeerResponse=function(et){j.Message.initialize(this,et,0,-1,null,null)},$.inherits(proto.v1.signaling.api.CreatePeerResponse,j.Message),$.DEBUG&&!COMPILED&&(proto.v1.signaling.api.CreatePeerResponse.displayName="proto.v1.signaling.api.CreatePeerResponse"),proto.v1.signaling.api.DeletePeerRequest=function(et){j.Message.initialize(this,et,0,-1,null,null)},$.inherits(proto.v1.signaling.api.DeletePeerRequest,j.Message),$.DEBUG&&!COMPILED&&(proto.v1.signaling.api.DeletePeerRequest.displayName="proto.v1.signaling.api.DeletePeerRequest"),proto.v1.signaling.api.DeletePeerResponse=function(et){j.Message.initialize(this,et,0,-1,null,null)},$.inherits(proto.v1.signaling.api.DeletePeerResponse,j.Message),$.DEBUG&&!COMPILED&&(proto.v1.signaling.api.DeletePeerResponse.displayName="proto.v1.signaling.api.DeletePeerResponse"),proto.v1.signaling.api.RefreshPeerRequest=function(et){j.Message.initialize(this,et,0,-1,null,null)},$.inherits(proto.v1.signaling.api.RefreshPeerRequest,j.Message),$.DEBUG&&!COMPILED&&(proto.v1.signaling.api.RefreshPeerRequest.displayName="proto.v1.signaling.api.RefreshPeerRequest"),proto.v1.signaling.api.RefreshPeerResponse=function(et){j.Message.initialize(this,et,0,-1,null,null)},$.inherits(proto.v1.signaling.api.RefreshPeerResponse,j.Message),$.DEBUG&&!COMPILED&&(proto.v1.signaling.api.RefreshPeerResponse.displayName="proto.v1.signaling.api.RefreshPeerResponse"),proto.v1.signaling.api.GetPeersRequest=function(et){j.Message.initialize(this,et,0,-1,null,null)},$.inherits(proto.v1.signaling.api.GetPeersRequest,j.Message),$.DEBUG&&!COMPILED&&(proto.v1.signaling.api.GetPeersRequest.displayName="proto.v1.signaling.api.GetPeersRequest"),proto.v1.signaling.api.GetPeersResponse=function(et){j.Message.initialize(this,et,0,-1,proto.v1.signaling.api.GetPeersResponse.repeatedFields_,null)},$.inherits(proto.v1.signaling.api.GetPeersResponse,j.Message),$.DEBUG&&!COMPILED&&(proto.v1.signaling.api.GetPeersResponse.displayName="proto.v1.signaling.api.GetPeersResponse"),proto.v1.signaling.api.GetIceServersRequest=function(et){j.Message.initialize(this,et,0,-1,null,null)},$.inherits(proto.v1.signaling.api.GetIceServersRequest,j.Message),$.DEBUG&&!COMPILED&&(proto.v1.signaling.api.GetIceServersRequest.displayName="proto.v1.signaling.api.GetIceServersRequest"),proto.v1.signaling.api.GetIceServersResponse=function(et){j.Message.initialize(this,et,0,-1,null,null)},$.inherits(proto.v1.signaling.api.GetIceServersResponse,j.Message),$.DEBUG&&!COMPILED&&(proto.v1.signaling.api.GetIceServersResponse.displayName="proto.v1.signaling.api.GetIceServersResponse"),proto.v1.signaling.api.SendSignalRequest=function(et){j.Message.initialize(this,et,0,-1,null,null)},$.inherits(proto.v1.signaling.api.SendSignalRequest,j.Message),$.DEBUG&&!COMPILED&&(proto.v1.signaling.api.SendSignalRequest.displayName="proto.v1.signaling.api.SendSignalRequest"),proto.v1.signaling.api.SendSignalResponse=function(et){j.Message.initialize(this,et,0,-1,null,null)},$.inherits(proto.v1.signaling.api.SendSignalResponse,j.Message),$.DEBUG&&!COMPILED&&(proto.v1.signaling.api.SendSignalResponse.displayName="proto.v1.signaling.api.SendSignalResponse"),proto.v1.signaling.api.ReceiveSignalStreamRequest=function(et){j.Message.initialize(this,et,0,-1,null,null)},$.inherits(proto.v1.signaling.api.ReceiveSignalStreamRequest,j.Message),$.DEBUG&&!COMPILED&&(proto.v1.signaling.api.ReceiveSignalStreamRequest.displayName="proto.v1.signaling.api.ReceiveSignalStreamRequest"),proto.v1.signaling.api.ReceiveSignalStreamResponse=function(et){j.Message.initialize(this,et,0,-1,null,null)},$.inherits(proto.v1.signaling.api.ReceiveSignalStreamResponse,j.Message),$.DEBUG&&!COMPILED&&(proto.v1.signaling.api.ReceiveSignalStreamResponse.displayName="proto.v1.signaling.api.ReceiveSignalStreamResponse"),proto.v1.signaling.api.Peer.repeatedFields_=[5],j.Message.GENERATE_TO_OBJECT&&(proto.v1.signaling.api.Peer.prototype.toObject=function(et){return proto.v1.signaling.api.Peer.toObject(et,this)},proto.v1.signaling.api.Peer.toObject=function(et,rt){var ot,lt={peerId:j.Message.getFieldWithDefault(rt,1,""),organizationId:j.Message.getFieldWithDefault(rt,2,""),userId:(ot=rt.getUserId())&&tt.StringValue.toObject(et,ot),deviceId:(ot=rt.getDeviceId())&&tt.StringValue.toObject(et,ot),sessionIdsList:(ot=j.Message.getRepeatedField(rt,5))==null?void 0:ot,peerCreatedTimestamp:(ot=rt.getPeerCreatedTimestamp())&&tt.Int64Value.toObject(et,ot)};return et&&(lt.$jspbMessageInstance=rt),lt}),proto.v1.signaling.api.Peer.deserializeBinary=function(et){var rt=new j.BinaryReader(et),ot=new proto.v1.signaling.api.Peer;return proto.v1.signaling.api.Peer.deserializeBinaryFromReader(ot,rt)},proto.v1.signaling.api.Peer.deserializeBinaryFromReader=function(et,rt){for(;rt.nextField()&&!rt.isEndGroup();)switch(rt.getFieldNumber()){case 1:var ot=rt.readString();et.setPeerId(ot);break;case 2:ot=rt.readString(),et.setOrganizationId(ot);break;case 3:ot=new tt.StringValue,rt.readMessage(ot,tt.StringValue.deserializeBinaryFromReader),et.setUserId(ot);break;case 4:ot=new tt.StringValue,rt.readMessage(ot,tt.StringValue.deserializeBinaryFromReader),et.setDeviceId(ot);break;case 5:ot=rt.readString(),et.addSessionIds(ot);break;case 6:ot=new tt.Int64Value,rt.readMessage(ot,tt.Int64Value.deserializeBinaryFromReader),et.setPeerCreatedTimestamp(ot);break;default:rt.skipField()}return et},proto.v1.signaling.api.Peer.prototype.serializeBinary=function(){var et=new j.BinaryWriter;return proto.v1.signaling.api.Peer.serializeBinaryToWriter(this,et),et.getResultBuffer()},proto.v1.signaling.api.Peer.serializeBinaryToWriter=function(et,rt){var ot=void 0;(ot=et.getPeerId()).length>0&&rt.writeString(1,ot),(ot=et.getOrganizationId()).length>0&&rt.writeString(2,ot),(ot=et.getUserId())!=null&&rt.writeMessage(3,ot,tt.StringValue.serializeBinaryToWriter),(ot=et.getDeviceId())!=null&&rt.writeMessage(4,ot,tt.StringValue.serializeBinaryToWriter),(ot=et.getSessionIdsList()).length>0&&rt.writeRepeatedString(5,ot),(ot=et.getPeerCreatedTimestamp())!=null&&rt.writeMessage(6,ot,tt.Int64Value.serializeBinaryToWriter)},proto.v1.signaling.api.Peer.prototype.getPeerId=function(){return j.Message.getFieldWithDefault(this,1,"")},proto.v1.signaling.api.Peer.prototype.setPeerId=function(et){return j.Message.setProto3StringField(this,1,et)},proto.v1.signaling.api.Peer.prototype.getOrganizationId=function(){return j.Message.getFieldWithDefault(this,2,"")},proto.v1.signaling.api.Peer.prototype.setOrganizationId=function(et){return j.Message.setProto3StringField(this,2,et)},proto.v1.signaling.api.Peer.prototype.getUserId=function(){return j.Message.getWrapperField(this,tt.StringValue,3)},proto.v1.signaling.api.Peer.prototype.setUserId=function(et){return j.Message.setWrapperField(this,3,et)},proto.v1.signaling.api.Peer.prototype.clearUserId=function(){return this.setUserId(void 0)},proto.v1.signaling.api.Peer.prototype.hasUserId=function(){return j.Message.getField(this,3)!=null},proto.v1.signaling.api.Peer.prototype.getDeviceId=function(){return j.Message.getWrapperField(this,tt.StringValue,4)},proto.v1.signaling.api.Peer.prototype.setDeviceId=function(et){return j.Message.setWrapperField(this,4,et)},proto.v1.signaling.api.Peer.prototype.clearDeviceId=function(){return this.setDeviceId(void 0)},proto.v1.signaling.api.Peer.prototype.hasDeviceId=function(){return j.Message.getField(this,4)!=null},proto.v1.signaling.api.Peer.prototype.getSessionIdsList=function(){return j.Message.getRepeatedField(this,5)},proto.v1.signaling.api.Peer.prototype.setSessionIdsList=function(et){return j.Message.setField(this,5,et||[])},proto.v1.signaling.api.Peer.prototype.addSessionIds=function(et,rt){return j.Message.addToRepeatedField(this,5,et,rt)},proto.v1.signaling.api.Peer.prototype.clearSessionIdsList=function(){return this.setSessionIdsList([])},proto.v1.signaling.api.Peer.prototype.getPeerCreatedTimestamp=function(){return j.Message.getWrapperField(this,tt.Int64Value,6)},proto.v1.signaling.api.Peer.prototype.setPeerCreatedTimestamp=function(et){return j.Message.setWrapperField(this,6,et)},proto.v1.signaling.api.Peer.prototype.clearPeerCreatedTimestamp=function(){return this.setPeerCreatedTimestamp(void 0)},proto.v1.signaling.api.Peer.prototype.hasPeerCreatedTimestamp=function(){return j.Message.getField(this,6)!=null},j.Message.GENERATE_TO_OBJECT&&(proto.v1.signaling.api.Signal.prototype.toObject=function(et){return proto.v1.signaling.api.Signal.toObject(et,this)},proto.v1.signaling.api.Signal.toObject=function(et,rt){var ot,lt={sessionId:(ot=rt.getSessionId())&&tt.StringValue.toObject(et,ot),sessionCreatedTimestamp:(ot=rt.getSessionCreatedTimestamp())&&tt.Int64Value.toObject(et,ot),senderId:j.Message.getFieldWithDefault(rt,3,""),receiverId:j.Message.getFieldWithDefault(rt,4,""),payload:j.Message.getFieldWithDefault(rt,5,""),iceServers:j.Message.getFieldWithDefault(rt,6,""),iceTransportPolicy:j.Message.getFieldWithDefault(rt,7,""),sessionType:j.Message.getFieldWithDefault(rt,8,0)};return et&&(lt.$jspbMessageInstance=rt),lt}),proto.v1.signaling.api.Signal.deserializeBinary=function(et){var rt=new j.BinaryReader(et),ot=new proto.v1.signaling.api.Signal;return proto.v1.signaling.api.Signal.deserializeBinaryFromReader(ot,rt)},proto.v1.signaling.api.Signal.deserializeBinaryFromReader=function(et,rt){for(;rt.nextField()&&!rt.isEndGroup();)switch(rt.getFieldNumber()){case 1:var ot=new tt.StringValue;rt.readMessage(ot,tt.StringValue.deserializeBinaryFromReader),et.setSessionId(ot);break;case 2:ot=new tt.Int64Value,rt.readMessage(ot,tt.Int64Value.deserializeBinaryFromReader),et.setSessionCreatedTimestamp(ot);break;case 3:ot=rt.readString(),et.setSenderId(ot);break;case 4:ot=rt.readString(),et.setReceiverId(ot);break;case 5:ot=rt.readString(),et.setPayload(ot);break;case 6:ot=rt.readString(),et.setIceServers(ot);break;case 7:ot=rt.readString(),et.setIceTransportPolicy(ot);break;case 8:ot=rt.readEnum(),et.setSessionType(ot);break;default:rt.skipField()}return et},proto.v1.signaling.api.Signal.prototype.serializeBinary=function(){var et=new j.BinaryWriter;return proto.v1.signaling.api.Signal.serializeBinaryToWriter(this,et),et.getResultBuffer()},proto.v1.signaling.api.Signal.serializeBinaryToWriter=function(et,rt){var ot=void 0;(ot=et.getSessionId())!=null&&rt.writeMessage(1,ot,tt.StringValue.serializeBinaryToWriter),(ot=et.getSessionCreatedTimestamp())!=null&&rt.writeMessage(2,ot,tt.Int64Value.serializeBinaryToWriter),(ot=et.getSenderId()).length>0&&rt.writeString(3,ot),(ot=et.getReceiverId()).length>0&&rt.writeString(4,ot),(ot=et.getPayload()).length>0&&rt.writeString(5,ot),(ot=et.getIceServers()).length>0&&rt.writeString(6,ot),(ot=et.getIceTransportPolicy()).length>0&&rt.writeString(7,ot),(ot=et.getSessionType())!==0&&rt.writeEnum(8,ot)},proto.v1.signaling.api.Signal.prototype.getSessionId=function(){return j.Message.getWrapperField(this,tt.StringValue,1)},proto.v1.signaling.api.Signal.prototype.setSessionId=function(et){return j.Message.setWrapperField(this,1,et)},proto.v1.signaling.api.Signal.prototype.clearSessionId=function(){return this.setSessionId(void 0)},proto.v1.signaling.api.Signal.prototype.hasSessionId=function(){return j.Message.getField(this,1)!=null},proto.v1.signaling.api.Signal.prototype.getSessionCreatedTimestamp=function(){return j.Message.getWrapperField(this,tt.Int64Value,2)},proto.v1.signaling.api.Signal.prototype.setSessionCreatedTimestamp=function(et){return j.Message.setWrapperField(this,2,et)},proto.v1.signaling.api.Signal.prototype.clearSessionCreatedTimestamp=function(){return this.setSessionCreatedTimestamp(void 0)},proto.v1.signaling.api.Signal.prototype.hasSessionCreatedTimestamp=function(){return j.Message.getField(this,2)!=null},proto.v1.signaling.api.Signal.prototype.getSenderId=function(){return j.Message.getFieldWithDefault(this,3,"")},proto.v1.signaling.api.Signal.prototype.setSenderId=function(et){return j.Message.setProto3StringField(this,3,et)},proto.v1.signaling.api.Signal.prototype.getReceiverId=function(){return j.Message.getFieldWithDefault(this,4,"")},proto.v1.signaling.api.Signal.prototype.setReceiverId=function(et){return j.Message.setProto3StringField(this,4,et)},proto.v1.signaling.api.Signal.prototype.getPayload=function(){return j.Message.getFieldWithDefault(this,5,"")},proto.v1.signaling.api.Signal.prototype.setPayload=function(et){return j.Message.setProto3StringField(this,5,et)},proto.v1.signaling.api.Signal.prototype.getIceServers=function(){return j.Message.getFieldWithDefault(this,6,"")},proto.v1.signaling.api.Signal.prototype.setIceServers=function(et){return j.Message.setProto3StringField(this,6,et)},proto.v1.signaling.api.Signal.prototype.getIceTransportPolicy=function(){return j.Message.getFieldWithDefault(this,7,"")},proto.v1.signaling.api.Signal.prototype.setIceTransportPolicy=function(et){return j.Message.setProto3StringField(this,7,et)},proto.v1.signaling.api.Signal.prototype.getSessionType=function(){return j.Message.getFieldWithDefault(this,8,0)},proto.v1.signaling.api.Signal.prototype.setSessionType=function(et){return j.Message.setProto3EnumField(this,8,et)},j.Message.GENERATE_TO_OBJECT&&(proto.v1.signaling.api.CreatePeerRequest.prototype.toObject=function(et){return proto.v1.signaling.api.CreatePeerRequest.toObject(et,this)},proto.v1.signaling.api.CreatePeerRequest.toObject=function(et,rt){var ot={};return et&&(ot.$jspbMessageInstance=rt),ot}),proto.v1.signaling.api.CreatePeerRequest.deserializeBinary=function(et){var rt=new j.BinaryReader(et),ot=new proto.v1.signaling.api.CreatePeerRequest;return proto.v1.signaling.api.CreatePeerRequest.deserializeBinaryFromReader(ot,rt)},proto.v1.signaling.api.CreatePeerRequest.deserializeBinaryFromReader=function(et,rt){for(;rt.nextField()&&!rt.isEndGroup();)rt.getFieldNumber(),rt.skipField();return et},proto.v1.signaling.api.CreatePeerRequest.prototype.serializeBinary=function(){var et=new j.BinaryWriter;return proto.v1.signaling.api.CreatePeerRequest.serializeBinaryToWriter(this,et),et.getResultBuffer()},proto.v1.signaling.api.CreatePeerRequest.serializeBinaryToWriter=function(et,rt){},j.Message.GENERATE_TO_OBJECT&&(proto.v1.signaling.api.CreatePeerResponse.prototype.toObject=function(et){return proto.v1.signaling.api.CreatePeerResponse.toObject(et,this)},proto.v1.signaling.api.CreatePeerResponse.toObject=function(et,rt){var ot,lt={peer:(ot=rt.getPeer())&&proto.v1.signaling.api.Peer.toObject(et,ot)};return et&&(lt.$jspbMessageInstance=rt),lt}),proto.v1.signaling.api.CreatePeerResponse.deserializeBinary=function(et){var rt=new j.BinaryReader(et),ot=new proto.v1.signaling.api.CreatePeerResponse;return proto.v1.signaling.api.CreatePeerResponse.deserializeBinaryFromReader(ot,rt)},proto.v1.signaling.api.CreatePeerResponse.deserializeBinaryFromReader=function(et,rt){for(;rt.nextField()&&!rt.isEndGroup();)switch(rt.getFieldNumber()){case 1:var ot=new proto.v1.signaling.api.Peer;rt.readMessage(ot,proto.v1.signaling.api.Peer.deserializeBinaryFromReader),et.setPeer(ot);break;default:rt.skipField()}return et},proto.v1.signaling.api.CreatePeerResponse.prototype.serializeBinary=function(){var et=new j.BinaryWriter;return proto.v1.signaling.api.CreatePeerResponse.serializeBinaryToWriter(this,et),et.getResultBuffer()},proto.v1.signaling.api.CreatePeerResponse.serializeBinaryToWriter=function(et,rt){var ot;(ot=et.getPeer())!=null&&rt.writeMessage(1,ot,proto.v1.signaling.api.Peer.serializeBinaryToWriter)},proto.v1.signaling.api.CreatePeerResponse.prototype.getPeer=function(){return j.Message.getWrapperField(this,proto.v1.signaling.api.Peer,1)},proto.v1.signaling.api.CreatePeerResponse.prototype.setPeer=function(et){return j.Message.setWrapperField(this,1,et)},proto.v1.signaling.api.CreatePeerResponse.prototype.clearPeer=function(){return this.setPeer(void 0)},proto.v1.signaling.api.CreatePeerResponse.prototype.hasPeer=function(){return j.Message.getField(this,1)!=null},j.Message.GENERATE_TO_OBJECT&&(proto.v1.signaling.api.DeletePeerRequest.prototype.toObject=function(et){return proto.v1.signaling.api.DeletePeerRequest.toObject(et,this)},proto.v1.signaling.api.DeletePeerRequest.toObject=function(et,rt){var ot={peerId:j.Message.getFieldWithDefault(rt,1,"")};return et&&(ot.$jspbMessageInstance=rt),ot}),proto.v1.signaling.api.DeletePeerRequest.deserializeBinary=function(et){var rt=new j.BinaryReader(et),ot=new proto.v1.signaling.api.DeletePeerRequest;return proto.v1.signaling.api.DeletePeerRequest.deserializeBinaryFromReader(ot,rt)},proto.v1.signaling.api.DeletePeerRequest.deserializeBinaryFromReader=function(et,rt){for(;rt.nextField()&&!rt.isEndGroup();)switch(rt.getFieldNumber()){case 1:var ot=rt.readString();et.setPeerId(ot);break;default:rt.skipField()}return et},proto.v1.signaling.api.DeletePeerRequest.prototype.serializeBinary=function(){var et=new j.BinaryWriter;return proto.v1.signaling.api.DeletePeerRequest.serializeBinaryToWriter(this,et),et.getResultBuffer()},proto.v1.signaling.api.DeletePeerRequest.serializeBinaryToWriter=function(et,rt){var ot;(ot=et.getPeerId()).length>0&&rt.writeString(1,ot)},proto.v1.signaling.api.DeletePeerRequest.prototype.getPeerId=function(){return j.Message.getFieldWithDefault(this,1,"")},proto.v1.signaling.api.DeletePeerRequest.prototype.setPeerId=function(et){return j.Message.setProto3StringField(this,1,et)},j.Message.GENERATE_TO_OBJECT&&(proto.v1.signaling.api.DeletePeerResponse.prototype.toObject=function(et){return proto.v1.signaling.api.DeletePeerResponse.toObject(et,this)},proto.v1.signaling.api.DeletePeerResponse.toObject=function(et,rt){var ot={};return et&&(ot.$jspbMessageInstance=rt),ot}),proto.v1.signaling.api.DeletePeerResponse.deserializeBinary=function(et){var rt=new j.BinaryReader(et),ot=new proto.v1.signaling.api.DeletePeerResponse;return proto.v1.signaling.api.DeletePeerResponse.deserializeBinaryFromReader(ot,rt)},proto.v1.signaling.api.DeletePeerResponse.deserializeBinaryFromReader=function(et,rt){for(;rt.nextField()&&!rt.isEndGroup();)rt.getFieldNumber(),rt.skipField();return et},proto.v1.signaling.api.DeletePeerResponse.prototype.serializeBinary=function(){var et=new j.BinaryWriter;return proto.v1.signaling.api.DeletePeerResponse.serializeBinaryToWriter(this,et),et.getResultBuffer()},proto.v1.signaling.api.DeletePeerResponse.serializeBinaryToWriter=function(et,rt){},j.Message.GENERATE_TO_OBJECT&&(proto.v1.signaling.api.RefreshPeerRequest.prototype.toObject=function(et){return proto.v1.signaling.api.RefreshPeerRequest.toObject(et,this)},proto.v1.signaling.api.RefreshPeerRequest.toObject=function(et,rt){var ot,lt={peer:(ot=rt.getPeer())&&proto.v1.signaling.api.Peer.toObject(et,ot)};return et&&(lt.$jspbMessageInstance=rt),lt}),proto.v1.signaling.api.RefreshPeerRequest.deserializeBinary=function(et){var rt=new j.BinaryReader(et),ot=new proto.v1.signaling.api.RefreshPeerRequest;return proto.v1.signaling.api.RefreshPeerRequest.deserializeBinaryFromReader(ot,rt)},proto.v1.signaling.api.RefreshPeerRequest.deserializeBinaryFromReader=function(et,rt){for(;rt.nextField()&&!rt.isEndGroup();)switch(rt.getFieldNumber()){case 1:var ot=new proto.v1.signaling.api.Peer;rt.readMessage(ot,proto.v1.signaling.api.Peer.deserializeBinaryFromReader),et.setPeer(ot);break;default:rt.skipField()}return et},proto.v1.signaling.api.RefreshPeerRequest.prototype.serializeBinary=function(){var et=new j.BinaryWriter;return proto.v1.signaling.api.RefreshPeerRequest.serializeBinaryToWriter(this,et),et.getResultBuffer()},proto.v1.signaling.api.RefreshPeerRequest.serializeBinaryToWriter=function(et,rt){var ot;(ot=et.getPeer())!=null&&rt.writeMessage(1,ot,proto.v1.signaling.api.Peer.serializeBinaryToWriter)},proto.v1.signaling.api.RefreshPeerRequest.prototype.getPeer=function(){return j.Message.getWrapperField(this,proto.v1.signaling.api.Peer,1)},proto.v1.signaling.api.RefreshPeerRequest.prototype.setPeer=function(et){return j.Message.setWrapperField(this,1,et)},proto.v1.signaling.api.RefreshPeerRequest.prototype.clearPeer=function(){return this.setPeer(void 0)},proto.v1.signaling.api.RefreshPeerRequest.prototype.hasPeer=function(){return j.Message.getField(this,1)!=null},j.Message.GENERATE_TO_OBJECT&&(proto.v1.signaling.api.RefreshPeerResponse.prototype.toObject=function(et){return proto.v1.signaling.api.RefreshPeerResponse.toObject(et,this)},proto.v1.signaling.api.RefreshPeerResponse.toObject=function(et,rt){var ot={};return et&&(ot.$jspbMessageInstance=rt),ot}),proto.v1.signaling.api.RefreshPeerResponse.deserializeBinary=function(et){var rt=new j.BinaryReader(et),ot=new proto.v1.signaling.api.RefreshPeerResponse;return proto.v1.signaling.api.RefreshPeerResponse.deserializeBinaryFromReader(ot,rt)},proto.v1.signaling.api.RefreshPeerResponse.deserializeBinaryFromReader=function(et,rt){for(;rt.nextField()&&!rt.isEndGroup();)rt.getFieldNumber(),rt.skipField();return et},proto.v1.signaling.api.RefreshPeerResponse.prototype.serializeBinary=function(){var et=new j.BinaryWriter;return proto.v1.signaling.api.RefreshPeerResponse.serializeBinaryToWriter(this,et),et.getResultBuffer()},proto.v1.signaling.api.RefreshPeerResponse.serializeBinaryToWriter=function(et,rt){},j.Message.GENERATE_TO_OBJECT&&(proto.v1.signaling.api.GetPeersRequest.prototype.toObject=function(et){return proto.v1.signaling.api.GetPeersRequest.toObject(et,this)},proto.v1.signaling.api.GetPeersRequest.toObject=function(et,rt){var ot={};return et&&(ot.$jspbMessageInstance=rt),ot}),proto.v1.signaling.api.GetPeersRequest.deserializeBinary=function(et){var rt=new j.BinaryReader(et),ot=new proto.v1.signaling.api.GetPeersRequest;return proto.v1.signaling.api.GetPeersRequest.deserializeBinaryFromReader(ot,rt)},proto.v1.signaling.api.GetPeersRequest.deserializeBinaryFromReader=function(et,rt){for(;rt.nextField()&&!rt.isEndGroup();)rt.getFieldNumber(),rt.skipField();return et},proto.v1.signaling.api.GetPeersRequest.prototype.serializeBinary=function(){var et=new j.BinaryWriter;return proto.v1.signaling.api.GetPeersRequest.serializeBinaryToWriter(this,et),et.getResultBuffer()},proto.v1.signaling.api.GetPeersRequest.serializeBinaryToWriter=function(et,rt){},proto.v1.signaling.api.GetPeersResponse.repeatedFields_=[1],j.Message.GENERATE_TO_OBJECT&&(proto.v1.signaling.api.GetPeersResponse.prototype.toObject=function(et){return proto.v1.signaling.api.GetPeersResponse.toObject(et,this)},proto.v1.signaling.api.GetPeersResponse.toObject=function(et,rt){var ot={peersList:j.Message.toObjectList(rt.getPeersList(),proto.v1.signaling.api.Peer.toObject,et)};return et&&(ot.$jspbMessageInstance=rt),ot}),proto.v1.signaling.api.GetPeersResponse.deserializeBinary=function(et){var rt=new j.BinaryReader(et),ot=new proto.v1.signaling.api.GetPeersResponse;return proto.v1.signaling.api.GetPeersResponse.deserializeBinaryFromReader(ot,rt)},proto.v1.signaling.api.GetPeersResponse.deserializeBinaryFromReader=function(et,rt){for(;rt.nextField()&&!rt.isEndGroup();)switch(rt.getFieldNumber()){case 1:var ot=new proto.v1.signaling.api.Peer;rt.readMessage(ot,proto.v1.signaling.api.Peer.deserializeBinaryFromReader),et.addPeers(ot);break;default:rt.skipField()}return et},proto.v1.signaling.api.GetPeersResponse.prototype.serializeBinary=function(){var et=new j.BinaryWriter;return proto.v1.signaling.api.GetPeersResponse.serializeBinaryToWriter(this,et),et.getResultBuffer()},proto.v1.signaling.api.GetPeersResponse.serializeBinaryToWriter=function(et,rt){var ot;(ot=et.getPeersList()).length>0&&rt.writeRepeatedMessage(1,ot,proto.v1.signaling.api.Peer.serializeBinaryToWriter)},proto.v1.signaling.api.GetPeersResponse.prototype.getPeersList=function(){return j.Message.getRepeatedWrapperField(this,proto.v1.signaling.api.Peer,1)},proto.v1.signaling.api.GetPeersResponse.prototype.setPeersList=function(et){return j.Message.setRepeatedWrapperField(this,1,et)},proto.v1.signaling.api.GetPeersResponse.prototype.addPeers=function(et,rt){return j.Message.addToRepeatedWrapperField(this,1,et,proto.v1.signaling.api.Peer,rt)},proto.v1.signaling.api.GetPeersResponse.prototype.clearPeersList=function(){return this.setPeersList([])},j.Message.GENERATE_TO_OBJECT&&(proto.v1.signaling.api.GetIceServersRequest.prototype.toObject=function(et){return proto.v1.signaling.api.GetIceServersRequest.toObject(et,this)},proto.v1.signaling.api.GetIceServersRequest.toObject=function(et,rt){var ot={};return et&&(ot.$jspbMessageInstance=rt),ot}),proto.v1.signaling.api.GetIceServersRequest.deserializeBinary=function(et){var rt=new j.BinaryReader(et),ot=new proto.v1.signaling.api.GetIceServersRequest;return proto.v1.signaling.api.GetIceServersRequest.deserializeBinaryFromReader(ot,rt)},proto.v1.signaling.api.GetIceServersRequest.deserializeBinaryFromReader=function(et,rt){for(;rt.nextField()&&!rt.isEndGroup();)rt.getFieldNumber(),rt.skipField();return et},proto.v1.signaling.api.GetIceServersRequest.prototype.serializeBinary=function(){var et=new j.BinaryWriter;return proto.v1.signaling.api.GetIceServersRequest.serializeBinaryToWriter(this,et),et.getResultBuffer()},proto.v1.signaling.api.GetIceServersRequest.serializeBinaryToWriter=function(et,rt){},j.Message.GENERATE_TO_OBJECT&&(proto.v1.signaling.api.GetIceServersResponse.prototype.toObject=function(et){return proto.v1.signaling.api.GetIceServersResponse.toObject(et,this)},proto.v1.signaling.api.GetIceServersResponse.toObject=function(et,rt){var ot={iceServers:j.Message.getFieldWithDefault(rt,1,"")};return et&&(ot.$jspbMessageInstance=rt),ot}),proto.v1.signaling.api.GetIceServersResponse.deserializeBinary=function(et){var rt=new j.BinaryReader(et),ot=new proto.v1.signaling.api.GetIceServersResponse;return proto.v1.signaling.api.GetIceServersResponse.deserializeBinaryFromReader(ot,rt)},proto.v1.signaling.api.GetIceServersResponse.deserializeBinaryFromReader=function(et,rt){for(;rt.nextField()&&!rt.isEndGroup();)switch(rt.getFieldNumber()){case 1:var ot=rt.readString();et.setIceServers(ot);break;default:rt.skipField()}return et},proto.v1.signaling.api.GetIceServersResponse.prototype.serializeBinary=function(){var et=new j.BinaryWriter;return proto.v1.signaling.api.GetIceServersResponse.serializeBinaryToWriter(this,et),et.getResultBuffer()},proto.v1.signaling.api.GetIceServersResponse.serializeBinaryToWriter=function(et,rt){var ot;(ot=et.getIceServers()).length>0&&rt.writeString(1,ot)},proto.v1.signaling.api.GetIceServersResponse.prototype.getIceServers=function(){return j.Message.getFieldWithDefault(this,1,"")},proto.v1.signaling.api.GetIceServersResponse.prototype.setIceServers=function(et){return j.Message.setProto3StringField(this,1,et)},j.Message.GENERATE_TO_OBJECT&&(proto.v1.signaling.api.SendSignalRequest.prototype.toObject=function(et){return proto.v1.signaling.api.SendSignalRequest.toObject(et,this)},proto.v1.signaling.api.SendSignalRequest.toObject=function(et,rt){var ot,lt={signal:(ot=rt.getSignal())&&proto.v1.signaling.api.Signal.toObject(et,ot)};return et&&(lt.$jspbMessageInstance=rt),lt}),proto.v1.signaling.api.SendSignalRequest.deserializeBinary=function(et){var rt=new j.BinaryReader(et),ot=new proto.v1.signaling.api.SendSignalRequest;return proto.v1.signaling.api.SendSignalRequest.deserializeBinaryFromReader(ot,rt)},proto.v1.signaling.api.SendSignalRequest.deserializeBinaryFromReader=function(et,rt){for(;rt.nextField()&&!rt.isEndGroup();)switch(rt.getFieldNumber()){case 1:var ot=new proto.v1.signaling.api.Signal;rt.readMessage(ot,proto.v1.signaling.api.Signal.deserializeBinaryFromReader),et.setSignal(ot);break;default:rt.skipField()}return et},proto.v1.signaling.api.SendSignalRequest.prototype.serializeBinary=function(){var et=new j.BinaryWriter;return proto.v1.signaling.api.SendSignalRequest.serializeBinaryToWriter(this,et),et.getResultBuffer()},proto.v1.signaling.api.SendSignalRequest.serializeBinaryToWriter=function(et,rt){var ot;(ot=et.getSignal())!=null&&rt.writeMessage(1,ot,proto.v1.signaling.api.Signal.serializeBinaryToWriter)},proto.v1.signaling.api.SendSignalRequest.prototype.getSignal=function(){return j.Message.getWrapperField(this,proto.v1.signaling.api.Signal,1)},proto.v1.signaling.api.SendSignalRequest.prototype.setSignal=function(et){return j.Message.setWrapperField(this,1,et)},proto.v1.signaling.api.SendSignalRequest.prototype.clearSignal=function(){return this.setSignal(void 0)},proto.v1.signaling.api.SendSignalRequest.prototype.hasSignal=function(){return j.Message.getField(this,1)!=null},j.Message.GENERATE_TO_OBJECT&&(proto.v1.signaling.api.SendSignalResponse.prototype.toObject=function(et){return proto.v1.signaling.api.SendSignalResponse.toObject(et,this)},proto.v1.signaling.api.SendSignalResponse.toObject=function(et,rt){var ot,lt={sessionId:(ot=rt.getSessionId())&&tt.StringValue.toObject(et,ot),sessionCreatedTimestamp:(ot=rt.getSessionCreatedTimestamp())&&tt.Int64Value.toObject(et,ot)};return et&&(lt.$jspbMessageInstance=rt),lt}),proto.v1.signaling.api.SendSignalResponse.deserializeBinary=function(et){var rt=new j.BinaryReader(et),ot=new proto.v1.signaling.api.SendSignalResponse;return proto.v1.signaling.api.SendSignalResponse.deserializeBinaryFromReader(ot,rt)},proto.v1.signaling.api.SendSignalResponse.deserializeBinaryFromReader=function(et,rt){for(;rt.nextField()&&!rt.isEndGroup();)switch(rt.getFieldNumber()){case 1:var ot=new tt.StringValue;rt.readMessage(ot,tt.StringValue.deserializeBinaryFromReader),et.setSessionId(ot);break;case 2:ot=new tt.Int64Value,rt.readMessage(ot,tt.Int64Value.deserializeBinaryFromReader),et.setSessionCreatedTimestamp(ot);break;default:rt.skipField()}return et},proto.v1.signaling.api.SendSignalResponse.prototype.serializeBinary=function(){var et=new j.BinaryWriter;return proto.v1.signaling.api.SendSignalResponse.serializeBinaryToWriter(this,et),et.getResultBuffer()},proto.v1.signaling.api.SendSignalResponse.serializeBinaryToWriter=function(et,rt){var ot=void 0;(ot=et.getSessionId())!=null&&rt.writeMessage(1,ot,tt.StringValue.serializeBinaryToWriter),(ot=et.getSessionCreatedTimestamp())!=null&&rt.writeMessage(2,ot,tt.Int64Value.serializeBinaryToWriter)},proto.v1.signaling.api.SendSignalResponse.prototype.getSessionId=function(){return j.Message.getWrapperField(this,tt.StringValue,1)},proto.v1.signaling.api.SendSignalResponse.prototype.setSessionId=function(et){return j.Message.setWrapperField(this,1,et)},proto.v1.signaling.api.SendSignalResponse.prototype.clearSessionId=function(){return this.setSessionId(void 0)},proto.v1.signaling.api.SendSignalResponse.prototype.hasSessionId=function(){return j.Message.getField(this,1)!=null},proto.v1.signaling.api.SendSignalResponse.prototype.getSessionCreatedTimestamp=function(){return j.Message.getWrapperField(this,tt.Int64Value,2)},proto.v1.signaling.api.SendSignalResponse.prototype.setSessionCreatedTimestamp=function(et){return j.Message.setWrapperField(this,2,et)},proto.v1.signaling.api.SendSignalResponse.prototype.clearSessionCreatedTimestamp=function(){return this.setSessionCreatedTimestamp(void 0)},proto.v1.signaling.api.SendSignalResponse.prototype.hasSessionCreatedTimestamp=function(){return j.Message.getField(this,2)!=null},j.Message.GENERATE_TO_OBJECT&&(proto.v1.signaling.api.ReceiveSignalStreamRequest.prototype.toObject=function(et){return proto.v1.signaling.api.ReceiveSignalStreamRequest.toObject(et,this)},proto.v1.signaling.api.ReceiveSignalStreamRequest.toObject=function(et,rt){var ot={peerId:j.Message.getFieldWithDefault(rt,1,"")};return et&&(ot.$jspbMessageInstance=rt),ot}),proto.v1.signaling.api.ReceiveSignalStreamRequest.deserializeBinary=function(et){var rt=new j.BinaryReader(et),ot=new proto.v1.signaling.api.ReceiveSignalStreamRequest;return proto.v1.signaling.api.ReceiveSignalStreamRequest.deserializeBinaryFromReader(ot,rt)},proto.v1.signaling.api.ReceiveSignalStreamRequest.deserializeBinaryFromReader=function(et,rt){for(;rt.nextField()&&!rt.isEndGroup();)switch(rt.getFieldNumber()){case 1:var ot=rt.readString();et.setPeerId(ot);break;default:rt.skipField()}return et},proto.v1.signaling.api.ReceiveSignalStreamRequest.prototype.serializeBinary=function(){var et=new j.BinaryWriter;return proto.v1.signaling.api.ReceiveSignalStreamRequest.serializeBinaryToWriter(this,et),et.getResultBuffer()},proto.v1.signaling.api.ReceiveSignalStreamRequest.serializeBinaryToWriter=function(et,rt){var ot;(ot=et.getPeerId()).length>0&&rt.writeString(1,ot)},proto.v1.signaling.api.ReceiveSignalStreamRequest.prototype.getPeerId=function(){return j.Message.getFieldWithDefault(this,1,"")},proto.v1.signaling.api.ReceiveSignalStreamRequest.prototype.setPeerId=function(et){return j.Message.setProto3StringField(this,1,et)},j.Message.GENERATE_TO_OBJECT&&(proto.v1.signaling.api.ReceiveSignalStreamResponse.prototype.toObject=function(et){return proto.v1.signaling.api.ReceiveSignalStreamResponse.toObject(et,this)},proto.v1.signaling.api.ReceiveSignalStreamResponse.toObject=function(et,rt){var ot,lt={signal:(ot=rt.getSignal())&&proto.v1.signaling.api.Signal.toObject(et,ot)};return et&&(lt.$jspbMessageInstance=rt),lt}),proto.v1.signaling.api.ReceiveSignalStreamResponse.deserializeBinary=function(et){var rt=new j.BinaryReader(et),ot=new proto.v1.signaling.api.ReceiveSignalStreamResponse;return proto.v1.signaling.api.ReceiveSignalStreamResponse.deserializeBinaryFromReader(ot,rt)},proto.v1.signaling.api.ReceiveSignalStreamResponse.deserializeBinaryFromReader=function(et,rt){for(;rt.nextField()&&!rt.isEndGroup();)switch(rt.getFieldNumber()){case 1:var ot=new proto.v1.signaling.api.Signal;rt.readMessage(ot,proto.v1.signaling.api.Signal.deserializeBinaryFromReader),et.setSignal(ot);break;default:rt.skipField()}return et},proto.v1.signaling.api.ReceiveSignalStreamResponse.prototype.serializeBinary=function(){var et=new j.BinaryWriter;return proto.v1.signaling.api.ReceiveSignalStreamResponse.serializeBinaryToWriter(this,et),et.getResultBuffer()},proto.v1.signaling.api.ReceiveSignalStreamResponse.serializeBinaryToWriter=function(et,rt){var ot;(ot=et.getSignal())!=null&&rt.writeMessage(1,ot,proto.v1.signaling.api.Signal.serializeBinaryToWriter)},proto.v1.signaling.api.ReceiveSignalStreamResponse.prototype.getSignal=function(){return j.Message.getWrapperField(this,proto.v1.signaling.api.Signal,1)},proto.v1.signaling.api.ReceiveSignalStreamResponse.prototype.setSignal=function(et){return j.Message.setWrapperField(this,1,et)},proto.v1.signaling.api.ReceiveSignalStreamResponse.prototype.clearSignal=function(){return this.setSignal(void 0)},proto.v1.signaling.api.ReceiveSignalStreamResponse.prototype.hasSignal=function(){return j.Message.getField(this,1)!=null},proto.v1.signaling.api.SessionType={UNKNOWN:0,TELEOP:1,PORT_FORWARD:2},$.object.extend(i,proto.v1.signaling.api)},function(o,i,s){function j(at){return(j=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(ct){return typeof ct}:function(ct){return ct&&typeof Symbol=="function"&&ct.constructor===Symbol&&ct!==Symbol.prototype?"symbol":typeof ct})(at)}function $(at,ct){return!ct||j(ct)!=="object"&&typeof ct!="function"?_e(at):ct}function _e(at){if(at===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return at}function tt(at){var ct=typeof Map=="function"?new Map:void 0;return(tt=function(st){if(st===null||(ut=st,Function.toString.call(ut).indexOf("[native code]")===-1))return st;var ut;if(typeof st!="function")throw new TypeError("Super expression must either be null or a function");if(ct!==void 0){if(ct.has(st))return ct.get(st);ct.set(st,mt)}function mt(){return et(st,arguments,lt(this).constructor)}return mt.prototype=Object.create(st.prototype,{constructor:{value:mt,enumerable:!1,writable:!0,configurable:!0}}),ot(mt,st)})(at)}function et(at,ct,st){return(et=rt()?Reflect.construct:function(ut,mt,bt){var Tt=[null];Tt.push.apply(Tt,mt);var ht=new(Function.bind.apply(ut,Tt));return bt&&ot(ht,bt.prototype),ht}).apply(null,arguments)}function rt(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function ot(at,ct){return(ot=Object.setPrototypeOf||function(st,ut){return st.__proto__=ut,st})(at,ct)}function lt(at){return(lt=Object.setPrototypeOf?Object.getPrototypeOf:function(ct){return ct.__proto__||Object.getPrototypeOf(ct)})(at)}var dt=function(at){(function(bt,Tt){if(typeof Tt!="function"&&Tt!==null)throw new TypeError("Super expression must either be null or a function");bt.prototype=Object.create(Tt&&Tt.prototype,{constructor:{value:bt,writable:!0,configurable:!0}}),Tt&&ot(bt,Tt)})(mt,at);var ct,st,ut=(ct=mt,st=rt(),function(){var bt,Tt=lt(ct);if(st){var ht=lt(this).constructor;bt=Reflect.construct(Tt,arguments,ht)}else bt=Tt.apply(this,arguments);return $(this,bt)});function mt(bt){var Tt;return function(ht,yt){if(!(ht instanceof yt))throw new TypeError("Cannot call a class as a function")}(this,mt),Tt=ut.call(this,`Format functions must be synchronous taking a two arguments: (info, opts) -Found: `.concat(bt.toString().split(` -`)[0],` -`)),Error.captureStackTrace(_e(Tt),mt),Tt}return mt}(tt(Error));o.exports=function(at){if(at.length>2)throw new dt(at);function ct(){var ut=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.options=ut}function st(ut){return new ct(ut)}return ct.prototype.transform=at,st.Format=ct,st}},function(o,i,s){(function(j){var $=Object.getOwnPropertyDescriptors||function(Rt){for(var Ot=Object.keys(Rt),It={},St=0;St=gt)return Yt;switch(Yt){case"%s":return String(St[It++]);case"%d":return Number(St[It++]);case"%j":try{return JSON.stringify(St[It++])}catch{return"[Circular]"}default:return Yt}}),Dt=St[It];It=3&&(It.depth=arguments[2]),arguments.length>=4&&(It.colors=arguments[3]),ut(Ot)?It.showHidden=Ot:Ot&&i._extend(It,Ot),ht(It.showHidden)&&(It.showHidden=!1),ht(It.depth)&&(It.depth=2),ht(It.colors)&&(It.colors=!1),ht(It.customInspect)&&(It.customInspect=!0),It.colors&&(It.stylize=ot),dt(It,Rt,It.depth)}function ot(Rt,Ot){var It=rt.styles[Ot];return It?"\x1B["+rt.colors[It][0]+"m"+Rt+"\x1B["+rt.colors[It][1]+"m":Rt}function lt(Rt,Ot){return Rt}function dt(Rt,Ot,It){if(Rt.customInspect&&Ot&&Ut(Ot.inspect)&&Ot.inspect!==i.inspect&&(!Ot.constructor||Ot.constructor.prototype!==Ot)){var St=Ot.inspect(It,Rt);return Tt(St)||(St=dt(Rt,St,It)),St}var gt=function(xt,Pt){if(ht(Pt))return xt.stylize("undefined","undefined");if(Tt(Pt)){var $t="'"+JSON.stringify(Pt).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return xt.stylize($t,"string")}if(bt(Pt))return xt.stylize(""+Pt,"number");if(ut(Pt))return xt.stylize(""+Pt,"boolean");if(mt(Pt))return xt.stylize("null","null")}(Rt,Ot);if(gt)return gt;var Bt=Object.keys(Ot),Dt=function(xt){var Pt={};return xt.forEach(function($t,en){Pt[$t]=!0}),Pt}(Bt);if(Rt.showHidden&&(Bt=Object.getOwnPropertyNames(Ot)),Ft(Ot)&&(Bt.indexOf("message")>=0||Bt.indexOf("description")>=0))return at(Ot);if(Bt.length===0){if(Ut(Ot)){var Yt=Ot.name?": "+Ot.name:"";return Rt.stylize("[Function"+Yt+"]","special")}if(yt(Ot))return Rt.stylize(RegExp.prototype.toString.call(Ot),"regexp");if(Ct(Ot))return Rt.stylize(Date.prototype.toString.call(Ot),"date");if(Ft(Ot))return at(Ot)}var Xt,Jt="",zt=!1,Wt=["{","}"];return st(Ot)&&(zt=!0,Wt=["[","]"]),Ut(Ot)&&(Jt=" [Function"+(Ot.name?": "+Ot.name:"")+"]"),yt(Ot)&&(Jt=" "+RegExp.prototype.toString.call(Ot)),Ct(Ot)&&(Jt=" "+Date.prototype.toUTCString.call(Ot)),Ft(Ot)&&(Jt=" "+at(Ot)),Bt.length!==0||zt&&Ot.length!=0?It<0?yt(Ot)?Rt.stylize(RegExp.prototype.toString.call(Ot),"regexp"):Rt.stylize("[Object]","special"):(Rt.seen.push(Ot),Xt=zt?function(xt,Pt,$t,en,Zt){for(var rn=[],cn=0,sn=Pt.length;cn=0,en+Zt.replace(/\u001b\[\d\d?m/g,"").length+1},0)>60?$t[0]+(Pt===""?"":Pt+` - `)+" "+xt.join(`, - `)+" "+$t[1]:$t[0]+Pt+" "+xt.join(", ")+" "+$t[1]}(Xt,Jt,Wt)):Wt[0]+Jt+Wt[1]}function at(Rt){return"["+Error.prototype.toString.call(Rt)+"]"}function ct(Rt,Ot,It,St,gt,Bt){var Dt,Yt,Xt;if((Xt=Object.getOwnPropertyDescriptor(Ot,gt)||{value:Ot[gt]}).get?Yt=Xt.set?Rt.stylize("[Getter/Setter]","special"):Rt.stylize("[Getter]","special"):Xt.set&&(Yt=Rt.stylize("[Setter]","special")),Mt(St,gt)||(Dt="["+gt+"]"),Yt||(Rt.seen.indexOf(Xt.value)<0?(Yt=mt(It)?dt(Rt,Xt.value,null):dt(Rt,Xt.value,It-1)).indexOf(` -`)>-1&&(Yt=Bt?Yt.split(` -`).map(function(Jt){return" "+Jt}).join(` -`).substr(2):` -`+Yt.split(` -`).map(function(Jt){return" "+Jt}).join(` -`)):Yt=Rt.stylize("[Circular]","special")),ht(Dt)){if(Bt&>.match(/^\d+$/))return Yt;(Dt=JSON.stringify(""+gt)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(Dt=Dt.substr(1,Dt.length-2),Dt=Rt.stylize(Dt,"name")):(Dt=Dt.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),Dt=Rt.stylize(Dt,"string"))}return Dt+": "+Yt}function st(Rt){return Array.isArray(Rt)}function ut(Rt){return typeof Rt=="boolean"}function mt(Rt){return Rt===null}function bt(Rt){return typeof Rt=="number"}function Tt(Rt){return typeof Rt=="string"}function ht(Rt){return Rt===void 0}function yt(Rt){return ft(Rt)&&wt(Rt)==="[object RegExp]"}function ft(Rt){return typeof Rt=="object"&&Rt!==null}function Ct(Rt){return ft(Rt)&&wt(Rt)==="[object Date]"}function Ft(Rt){return ft(Rt)&&(wt(Rt)==="[object Error]"||Rt instanceof Error)}function Ut(Rt){return typeof Rt=="function"}function wt(Rt){return Object.prototype.toString.call(Rt)}function vt(Rt){return Rt<10?"0"+Rt.toString(10):Rt.toString(10)}i.debuglog=function(Rt){if(ht(tt)&&(tt=j.env.NODE_DEBUG||""),Rt=Rt.toUpperCase(),!et[Rt])if(new RegExp("\\b"+Rt+"\\b","i").test(tt)){var Ot=j.pid;et[Rt]=function(){var It=i.format.apply(i,arguments);console.error("%s %d: %s",Rt,Ot,It)}}else et[Rt]=function(){};return et[Rt]},i.inspect=rt,rt.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]},rt.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},i.isArray=st,i.isBoolean=ut,i.isNull=mt,i.isNullOrUndefined=function(Rt){return Rt==null},i.isNumber=bt,i.isString=Tt,i.isSymbol=function(Rt){return typeof Rt=="symbol"},i.isUndefined=ht,i.isRegExp=yt,i.isObject=ft,i.isDate=Ct,i.isError=Ft,i.isFunction=Ut,i.isPrimitive=function(Rt){return Rt===null||typeof Rt=="boolean"||typeof Rt=="number"||typeof Rt=="string"||typeof Rt=="symbol"||Rt===void 0},i.isBuffer=s(106);var At=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function Et(){var Rt=new Date,Ot=[vt(Rt.getHours()),vt(Rt.getMinutes()),vt(Rt.getSeconds())].join(":");return[Rt.getDate(),At[Rt.getMonth()],Ot].join(" ")}function Mt(Rt,Ot){return Object.prototype.hasOwnProperty.call(Rt,Ot)}i.log=function(){console.log("%s - %s",Et(),i.format.apply(i,arguments))},i.inherits=s(107),i._extend=function(Rt,Ot){if(!Ot||!ft(Ot))return Rt;for(var It=Object.keys(Ot),St=It.length;St--;)Rt[It[St]]=Ot[It[St]];return Rt};var Lt=typeof Symbol!="undefined"?Symbol("util.promisify.custom"):void 0;function kt(Rt,Ot){if(!Rt){var It=new Error("Promise was rejected with a falsy value");It.reason=Rt,Rt=It}return Ot(Rt)}i.promisify=function(Rt){if(typeof Rt!="function")throw new TypeError('The "original" argument must be of type Function');if(Lt&&Rt[Lt]){var Ot;if(typeof(Ot=Rt[Lt])!="function")throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(Ot,Lt,{value:Ot,enumerable:!1,writable:!1,configurable:!0}),Ot}function Ot(){for(var It,St,gt=new Promise(function(Yt,Xt){It=Yt,St=Xt}),Bt=[],Dt=0;Dtnew Promise(_e=>setTimeout(_e,$||0))},function(o,i,s){(function(j){var $=j!==void 0&&j||typeof self!="undefined"&&self||window,_e=Function.prototype.apply;function tt(et,rt){this._id=et,this._clearFn=rt}i.setTimeout=function(){return new tt(_e.call(setTimeout,$,arguments),clearTimeout)},i.setInterval=function(){return new tt(_e.call(setInterval,$,arguments),clearInterval)},i.clearTimeout=i.clearInterval=function(et){et&&et.close()},tt.prototype.unref=tt.prototype.ref=function(){},tt.prototype.close=function(){this._clearFn.call($,this._id)},i.enroll=function(et,rt){clearTimeout(et._idleTimeoutId),et._idleTimeout=rt},i.unenroll=function(et){clearTimeout(et._idleTimeoutId),et._idleTimeout=-1},i._unrefActive=i.active=function(et){clearTimeout(et._idleTimeoutId);var rt=et._idleTimeout;rt>=0&&(et._idleTimeoutId=setTimeout(function(){et._onTimeout&&et._onTimeout()},rt))},s(140),i.setImmediate=typeof self!="undefined"&&self.setImmediate||j!==void 0&&j.setImmediate||this&&this.setImmediate,i.clearImmediate=typeof self!="undefined"&&self.clearImmediate||j!==void 0&&j.clearImmediate||this&&this.clearImmediate}).call(this,s(5))},function(o,i,s){(function(j){j===void 0||!j.version||j.version.indexOf("v0.")===0||j.version.indexOf("v1.")===0&&j.version.indexOf("v1.8.")!==0?o.exports={nextTick:function($,_e,tt,et){if(typeof $!="function")throw new TypeError('"callback" argument must be a function');var rt,ot,lt=arguments.length;switch(lt){case 0:case 1:return j.nextTick($);case 2:return j.nextTick(function(){$.call(null,_e)});case 3:return j.nextTick(function(){$.call(null,_e,tt)});case 4:return j.nextTick(function(){$.call(null,_e,tt,et)});default:for(rt=new Array(lt-1),ot=0;ot0&&arguments[0]!==void 0?arguments[0]:{};$.call(this,{objectMode:!0,highWaterMark:rt.highWaterMark}),this.format=rt.format,this.level=rt.level,this.handleExceptions=rt.handleExceptions,this.handleRejections=rt.handleRejections,this.silent=rt.silent,rt.log&&(this.log=rt.log),rt.logv&&(this.logv=rt.logv),rt.close&&(this.close=rt.close),this.once("pipe",function(ot){et.levels=ot.levels,et.parent=ot}),this.once("unpipe",function(ot){ot===et.parent&&(et.parent=null,et.close&&et.close())})};j.inherits(tt,$),tt.prototype._write=function(et,rt,ot){if(this.silent||et.exception===!0&&!this.handleExceptions)return ot(null);var lt=this.level||this.parent&&this.parent.level;if(!lt||this.levels[lt]>=this.levels[et[_e]]){if(et&&!this.format)return this.log(et,ot);var dt=void 0,at=void 0;try{at=this.format.transform(Object.assign({},et),this.format.options)}catch(ct){dt=ct}if(dt||!at){if(ot(),dt)throw dt;return}return this.log(at,ot)}return ot(null)},tt.prototype._writev=function(et,rt){if(this.logv){var ot=et.filter(this._accept,this);return ot.length?this.logv(ot,rt):rt(null)}for(var lt=0;lt=this.levels[rt[_e]])||!this.handleExceptions&&rt.exception===!0)},tt.prototype._nop=function(){},o.exports.LegacyTransportStream=s(147)},function(o,i,s){var j,$=typeof Reflect=="object"?Reflect:null,_e=$&&typeof $.apply=="function"?$.apply:function(mt,bt,Tt){return Function.prototype.apply.call(mt,bt,Tt)};j=$&&typeof $.ownKeys=="function"?$.ownKeys:Object.getOwnPropertySymbols?function(mt){return Object.getOwnPropertyNames(mt).concat(Object.getOwnPropertySymbols(mt))}:function(mt){return Object.getOwnPropertyNames(mt)};var tt=Number.isNaN||function(mt){return mt!=mt};function et(){et.init.call(this)}o.exports=et,et.EventEmitter=et,et.prototype._events=void 0,et.prototype._eventsCount=0,et.prototype._maxListeners=void 0;var rt=10;function ot(mt){return mt._maxListeners===void 0?et.defaultMaxListeners:mt._maxListeners}function lt(mt,bt,Tt,ht){var yt,ft,Ct,Ft;if(typeof Tt!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof Tt);if((ft=mt._events)===void 0?(ft=mt._events=Object.create(null),mt._eventsCount=0):(ft.newListener!==void 0&&(mt.emit("newListener",bt,Tt.listener?Tt.listener:Tt),ft=mt._events),Ct=ft[bt]),Ct===void 0)Ct=ft[bt]=Tt,++mt._eventsCount;else if(typeof Ct=="function"?Ct=ft[bt]=ht?[Tt,Ct]:[Ct,Tt]:ht?Ct.unshift(Tt):Ct.push(Tt),(yt=ot(mt))>0&&Ct.length>yt&&!Ct.warned){Ct.warned=!0;var Ut=new Error("Possible EventEmitter memory leak detected. "+Ct.length+" "+String(bt)+" listeners added. Use emitter.setMaxListeners() to increase limit");Ut.name="MaxListenersExceededWarning",Ut.emitter=mt,Ut.type=bt,Ut.count=Ct.length,Ft=Ut,console&&console.warn&&console.warn(Ft)}return mt}function dt(){for(var mt=[],bt=0;bt0&&(ft=bt[0]),ft instanceof Error)throw ft;var Ct=new Error("Unhandled error."+(ft?" ("+ft.message+")":""));throw Ct.context=ft,Ct}var Ft=yt[mt];if(Ft===void 0)return!1;if(typeof Ft=="function")_e(Ft,this,bt);else{var Ut=Ft.length,wt=ut(Ft,Ut);for(Tt=0;Tt=0;ft--)if(Tt[ft]===bt||Tt[ft].listener===bt){Ct=Tt[ft].listener,yt=ft;break}if(yt<0)return this;yt===0?Tt.shift():function(Ft,Ut){for(;Ut+1=0;ht--)this.removeListener(mt,bt[ht]);return this},et.prototype.listeners=function(mt){return ct(this,mt,!0)},et.prototype.rawListeners=function(mt){return ct(this,mt,!1)},et.listenerCount=function(mt,bt){return typeof mt.listenerCount=="function"?mt.listenerCount(bt):st.call(mt,bt)},et.prototype.listenerCount=st,et.prototype.eventNames=function(){return this._eventsCount>0?j(this._events):[]}},function(o,i,s){var j=s(146).Buffer,$=j.isEncoding||function(st){switch((st=""+st)&&st.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 _e(st){var ut;switch(this.encoding=function(mt){var bt=function(Tt){if(!Tt)return"utf8";for(var ht;;)switch(Tt){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 Tt;default:if(ht)return;Tt=(""+Tt).toLowerCase(),ht=!0}}(mt);if(typeof bt!="string"&&(j.isEncoding===$||!$(mt)))throw new Error("Unknown encoding: "+mt);return bt||mt}(st),this.encoding){case"utf16le":this.text=rt,this.end=ot,ut=4;break;case"utf8":this.fillLast=et,ut=4;break;case"base64":this.text=lt,this.end=dt,ut=3;break;default:return this.write=at,void(this.end=ct)}this.lastNeed=0,this.lastTotal=0,this.lastChar=j.allocUnsafe(ut)}function tt(st){return st<=127?0:st>>5==6?2:st>>4==14?3:st>>3==30?4:st>>6==2?-1:-2}function et(st){var ut=this.lastTotal-this.lastNeed,mt=function(bt,Tt,ht){if((192&Tt[0])!=128)return bt.lastNeed=0,"\uFFFD";if(bt.lastNeed>1&&Tt.length>1){if((192&Tt[1])!=128)return bt.lastNeed=1,"\uFFFD";if(bt.lastNeed>2&&Tt.length>2&&(192&Tt[2])!=128)return bt.lastNeed=2,"\uFFFD"}}(this,st);return mt!==void 0?mt:this.lastNeed<=st.length?(st.copy(this.lastChar,ut,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(st.copy(this.lastChar,ut,0,st.length),void(this.lastNeed-=st.length))}function rt(st,ut){if((st.length-ut)%2==0){var mt=st.toString("utf16le",ut);if(mt){var bt=mt.charCodeAt(mt.length-1);if(bt>=55296&&bt<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=st[st.length-2],this.lastChar[1]=st[st.length-1],mt.slice(0,-1)}return mt}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=st[st.length-1],st.toString("utf16le",ut,st.length-1)}function ot(st){var ut=st&&st.length?this.write(st):"";if(this.lastNeed){var mt=this.lastTotal-this.lastNeed;return ut+this.lastChar.toString("utf16le",0,mt)}return ut}function lt(st,ut){var mt=(st.length-ut)%3;return mt===0?st.toString("base64",ut):(this.lastNeed=3-mt,this.lastTotal=3,mt===1?this.lastChar[0]=st[st.length-1]:(this.lastChar[0]=st[st.length-2],this.lastChar[1]=st[st.length-1]),st.toString("base64",ut,st.length-mt))}function dt(st){var ut=st&&st.length?this.write(st):"";return this.lastNeed?ut+this.lastChar.toString("base64",0,3-this.lastNeed):ut}function at(st){return st.toString(this.encoding)}function ct(st){return st&&st.length?this.write(st):""}i.StringDecoder=_e,_e.prototype.write=function(st){if(st.length===0)return"";var ut,mt;if(this.lastNeed){if((ut=this.fillLast(st))===void 0)return"";mt=this.lastNeed,this.lastNeed=0}else mt=0;return mt=0?(Ct>0&&(Tt.lastNeed=Ct-1),Ct):--ft=0?(Ct>0&&(Tt.lastNeed=Ct-2),Ct):--ft=0?(Ct>0&&(Ct===2?Ct=0:Tt.lastNeed=Ct-3),Ct):0}(this,st,ut);if(!this.lastNeed)return st.toString("utf8",ut);this.lastTotal=mt;var bt=st.length-(mt-this.lastNeed);return st.copy(this.lastChar,0,bt),st.toString("utf8",ut,bt)},_e.prototype.fillLast=function(st){if(this.lastNeed<=st.length)return st.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);st.copy(this.lastChar,this.lastTotal-this.lastNeed,0,st.length),this.lastNeed-=st.length}},function(o,i,s){var j=s(13),$=Object.keys||function(st){var ut=[];for(var mt in st)ut.push(mt);return ut};o.exports=dt;var _e=s(14);_e.inherits=s(6);var tt=s(67),et=s(44);_e.inherits(dt,tt);for(var rt=$(et.prototype),ot=0;ot(tn=tn||0)&&(tn=Math.max(tn+bn,0));tnGt?1:0}e:{var zt=lt.navigator;if(zt){var Wt=zt.userAgent;if(Wt){Dt=Wt;break e}}Dt=""}var xt="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");function Pt(Nt){var Gt=1;Nt=Nt.split(":");for(var tn=[];0parseFloat(yn)){en=String(_n);break e}}en=yn}var vn,hn={};function fn(Nt){return function(Gt,tn){var an=hn;return Object.prototype.hasOwnProperty.call(an,Gt)?an[Gt]:an[Gt]=tn(Gt)}(Nt,function(){for(var Gt=0,tn=Yt(String(en)).split("."),an=Yt(String(Nt)).split("."),bn=Math.max(tn.length,an.length),En=0;Gt==0&&En=Nt.keyCode)&&(Nt.keyCode=-1)}catch{}};var xr="closure_listenable_"+(1e6*Math.random()|0),Mr=0;function mu(Nt,Gt,tn,an,bn){this.listener=Nt,this.proxy=null,this.src=Gt,this.type=tn,this.capture=!!an,this.A=bn,this.key=++Mr,this.s=this.v=!1}function ms(Nt){Nt.s=!0,Nt.listener=null,Nt.proxy=null,Nt.src=null,Nt.A=null}function Go(Nt){this.src=Nt,this.a={},this.b=0}function qo(Nt,Gt){var tn=Gt.type;if(tn in Nt.a){var an,bn=Nt.a[tn],En=Bt(bn,Gt);(an=0<=En)&&Array.prototype.splice.call(bn,En,1),an&&(ms(Gt),Nt.a[tn].length==0&&(delete Nt.a[tn],Nt.b--))}}function Yo(Nt,Gt,tn,an){for(var bn=0;bntn.keyCode||tn.returnValue!=null)){e:{var bn=!1;if(tn.keyCode==0)try{tn.keyCode=-1;break e}catch{bn=!0}(bn||tn.returnValue==null)&&(tn.returnValue=!0)}for(tn=[],bn=Gt.a;bn;bn=bn.parentNode)tn.push(bn);for(Nt=Nt.type,bn=tn.length-1;0<=bn;bn--){Gt.a=tn[bn];var En=Zs(tn[bn],Nt,!0,Gt);an=an&&En}for(bn=0;bn>>0);function ws(Nt){return ct(Nt)=="function"?Nt:(Nt[jo]||(Nt[jo]=function(Gt){return Nt.handleEvent(Gt)}),Nt[jo])}function _o(){Fn.call(this),this.f=new Go(this),this.N=this}function Xr(Nt,Gt){Nt=Nt.N;var tn=Gt.type||Gt;if(typeof Gt=="string")Gt=new nr(Gt,Nt);else if(Gt instanceof nr)Gt.target=Gt.target||Nt;else{var an=Gt;(function(bn,En){for(var gn,wn,Pn=1;Pn=na(this).value)for(ct(Gt)=="function"&&(Gt=Gt()),Nt=new Ss(Nt,String(Gt),this.f),tn&&(Nt.a=tn),tn=this;tn;)tn=tn.a};var xs,Rs={},Jo=null;function br(Nt,Gt){Nt&&Nt.log(vu,Gt,void 0)}function ga(){}function No(Nt){var Gt;return(Gt=Nt.a)||(Gt={},xa(Nt)&&(Gt[0]=!0,Gt[1]=!0),Gt=Nt.a=Gt),Gt}function ba(){}function _a(Nt){return(Nt=xa(Nt))?new ActiveXObject(Nt):new XMLHttpRequest}function xa(Nt){if(!Nt.b&&typeof XMLHttpRequest=="undefined"&&typeof ActiveXObject!="undefined"){for(var Gt=["MSXML2.XMLHTTP.6.0","MSXML2.XMLHTTP.3.0","MSXML2.XMLHTTP","Microsoft.XMLHTTP"],tn=0;tngn?null:typeof En=="string"?En.charAt(gn):En[gn]}((tn=new ro(Nt.headers)).f()),bn=lt.FormData&&Gt instanceof lt.FormData;!(0<=Bt(As,"POST"))||an||bn||tn.set("Content-Type","application/x-www-form-urlencoded;charset=utf-8"),tn.forEach(function(En,gn){this.a.setRequestHeader(gn,En)},Nt),Nt.j&&(Nt.a.responseType=Nt.j),"withCredentials"in Nt.a&&Nt.a.withCredentials!==Nt.H&&(Nt.a.withCredentials=Nt.H);try{Is(Nt),0>4),tr!=64&&(gn(Nn<<4&240|tr>>2),Dn!=64&&gn(tr<<6&192|Dn))}}(Nt,function(En){an[bn++]=En}),an.subarray(0,bn)}function Ps(){if(!lo){lo={};for(var Nt="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".split(""),Gt=["+/=","+/","-_=","-_.","-_"],tn=0;5>tn;tn++){var an=Nt.concat(Gt[tn].split(""));es[tn]=an;for(var bn=0;bn2*wn.c&&Qo(wn)),1/0===gn&&(gn=0),0(gn=bn.indexOf("#"))&&(gn=bn.length),0>(wn=bn.indexOf("?"))||wn>gn?(wn=gn,Pn=""):Pn=bn.substring(wn+1,gn),gn=(bn=[bn.substr(0,wn),Pn,bn.substr(gn)])[1],bn[1]=Nn?gn?gn+"&"+Nn:Nn:gn,bn=bn[0]+(bn[1]?"?"+bn[1]:"")+bn[2])):bn.a("$httpHeaders",gn))}for(an=(Gt=(0,an.a)(Gt.getRequestMessage())).length,Nn=[0,0,0,0],gn=new Uint8Array(5+an),wn=3;0<=wn;wn--)Nn[wn]=an%256,an>>>=8;if(gn.set(new Uint8Array(Nn),1),gn.set(Gt,5),Gt=gn,Nt.a=="text"){var tr;for(Nt=Gt,tr===void 0&&(tr=0),Ps(),tr=es[tr],Gt=[],an=0;an>2,On=(3&On)<<4|Dn>>4,Dn=(15&Dn)<<2|(Pn=(gn=an+2>6,Pn&=63,gn||(Pn=64,Nn||(Dn=64)),Gt.push(tr[wn],tr[On],tr[Dn]||"",tr[Pn]||"")}Gt=Gt.join("")}else Nt.a=="binary"&&(tn.j="arraybuffer");return _u(tn,bn,Gt),En}function Cl(Nt,Gt,tn){var an=null,bn=!1;Nt.on("data",function(En){an=En}),Nt.on("error",function(En){En.code==0||bn||(bn=!0,Gt(En,null))}),Nt.on("status",function(En){En.code==0||bn?tn&&Gt(null,null,En):(bn=!0,Gt({code:En.code,message:En.details,metadata:En.metadata},null))}),tn&&Nt.on("metadata",function(En){Gt(null,null,null,En)}),Nt.on("end",function(){bn||(an==null?Gt({code:2,message:"Incomplete response"}):Gt(null,an)),tn&&Gt(null,null)})}function ks(Nt,Gt){var tn=Nt;return Gt.forEach(function(an){var bn=tn;tn=function(En){return an.intercept(En,bn)}}),tn}$r.prototype.on=function(Nt,Gt){return Nt=="data"?this.b.push(Gt):Nt=="status"?this.h.push(Gt):Nt=="metadata"?this.g.push(Gt):Nt=="end"?this.c.push(Gt):Nt=="error"&&this.f.push(Gt),this},$r.prototype.removeListener=function(Nt,Gt){return Nt=="data"?Eo(this.b,Gt):Nt=="status"?Eo(this.h,Gt):Nt=="metadata"?Eo(this.g,Gt):Nt=="end"?Eo(this.c,Gt):Nt=="error"&&Eo(this.f,Gt),this},$r.prototype.cancel=function(){this.j=!0,this.a.abort()},$r.prototype.cancel=$r.prototype.cancel,$r.prototype.removeListener=$r.prototype.removeListener,$r.prototype.on=$r.prototype.on,Sr.prototype.P=function(Nt,Gt,tn,an,bn){var En=this;an=Ut(Nt,Gt,"unary",an);var gn=Nt.substr(0,Nt.length-an.name.length);return Cl(Nt=ks(function(wn){return ts(En,wn,gn)},this.b).call(this,Ft(an,Gt,tn)),bn,!1),new wt(Nt)},Sr.prototype.M=function(Nt,Gt,tn,an){var bn=this;an=Ut(Nt,Gt,"unary",an);var En=Nt.substr(0,Nt.length-an.name.length);return ks(function(gn){return new Promise(function(wn,Pn){var On,Nn,tr;Cl(ts(bn,gn,En),function(Dn,Un,sr,ur){Dn?Pn(Dn):Un?tr=Un:sr?Nn=sr:ur?On=ur:(Dn=gn.getMethodDescriptor(),wn(new ft(tr,Dn,Un=(Un=On)===void 0?{}:Un,Nn===void 0?null:Nn)))},!0)})},this.g).call(this,Ft(an,Gt,tn)).then(function(gn){return gn.getResponseMessage()})},Sr.prototype.unaryCall=function(Nt,Gt,tn,an){return this.M(Nt,Gt,tn,an)},Sr.prototype.R=function(Nt,Gt,tn,an){var bn=this;an=Ut(Nt,Gt,"server_streaming",an);var En=Nt.substr(0,Nt.length-an.name.length);return ks(function(gn){return ts(bn,gn,En)},this.b).call(this,Ft(an,Gt,tn))},Sr.prototype.serverStreaming=Sr.prototype.R,Sr.prototype.unaryCall=Sr.prototype.unaryCall,Sr.prototype.thenableCall=Sr.prototype.M,Sr.prototype.rpcCall=Sr.prototype.P,o.exports.AbstractClientBase={MethodInfo:function(Nt,Gt,tn,an,bn){this.name=an,this.b=bn,this.f=Nt,this.a=Gt,this.c=tn}},o.exports.GrpcWebClientBase=Sr,o.exports.StatusCode={OK:0,CANCELLED:1,UNKNOWN:2,INVALID_ARGUMENT:3,DEADLINE_EXCEEDED:4,NOT_FOUND:5,ALREADY_EXISTS:6,PERMISSION_DENIED:7,UNAUTHENTICATED:16,RESOURCE_EXHAUSTED:8,FAILED_PRECONDITION:9,ABORTED:10,OUT_OF_RANGE:11,UNIMPLEMENTED:12,INTERNAL:13,UNAVAILABLE:14,DATA_LOSS:15},o.exports.MethodDescriptor=Ct,o.exports.MethodType={UNARY:"unary",SERVER_STREAMING:"server_streaming"}}).call(this,s(5))},function(o,i,s){Object.defineProperty(i,"__esModule",{value:!0}),i.isAsyncIterable=i.isAsyncGenerator=i.isAsync=void 0;var j,$=s(151),_e=(j=$)&&j.__esModule?j:{default:j};function tt(et){return et[Symbol.toStringTag]==="AsyncFunction"}i.default=function(et){if(typeof et!="function")throw new Error("expected a function");return tt(et)?(0,_e.default)(et):et},i.isAsync=tt,i.isAsyncGenerator=function(et){return et[Symbol.toStringTag]==="AsyncGenerator"},i.isAsyncIterable=function(et){return typeof et[Symbol.asyncIterator]=="function"}},function(o,i,s){var j={};function $(tt,et,rt){rt||(rt=Error);var ot=function(lt){var dt,at;function ct(st,ut,mt){return lt.call(this,function(bt,Tt,ht){return typeof et=="string"?et:et(bt,Tt,ht)}(st,ut,mt))||this}return at=lt,(dt=ct).prototype=Object.create(at.prototype),dt.prototype.constructor=dt,dt.__proto__=at,ct}(rt);ot.prototype.name=rt.name,ot.prototype.code=tt,j[tt]=ot}function _e(tt,et){if(Array.isArray(tt)){var rt=tt.length;return tt=tt.map(function(ot){return String(ot)}),rt>2?"one of ".concat(et," ").concat(tt.slice(0,rt-1).join(", "),", or ")+tt[rt-1]:rt===2?"one of ".concat(et," ").concat(tt[0]," or ").concat(tt[1]):"of ".concat(et," ").concat(tt[0])}return"of ".concat(et," ").concat(String(tt))}$("ERR_INVALID_OPT_VALUE",function(tt,et){return'The value "'+et+'" is invalid for option "'+tt+'"'},TypeError),$("ERR_INVALID_ARG_TYPE",function(tt,et,rt){var ot,lt,dt;if(typeof et=="string"&&(lt="not ",et.substr(0,lt.length)===lt)?(ot="must not be",et=et.replace(/^not /,"")):ot="must be",function(ct,st,ut){return(ut===void 0||ut>ct.length)&&(ut=ct.length),ct.substring(ut-st.length,ut)===st}(tt," argument"))dt="The ".concat(tt," ").concat(ot," ").concat(_e(et,"type"));else{var at=function(ct,st,ut){return typeof ut!="number"&&(ut=0),!(ut+st.length>ct.length)&&ct.indexOf(st,ut)!==-1}(tt,".")?"property":"argument";dt='The "'.concat(tt,'" ').concat(at," ").concat(ot," ").concat(_e(et,"type"))}return dt+=". Received type ".concat(typeof rt)},TypeError),$("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),$("ERR_METHOD_NOT_IMPLEMENTED",function(tt){return"The "+tt+" method is not implemented"}),$("ERR_STREAM_PREMATURE_CLOSE","Premature close"),$("ERR_STREAM_DESTROYED",function(tt){return"Cannot call "+tt+" after a stream was destroyed"}),$("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),$("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),$("ERR_STREAM_WRITE_AFTER_END","write after end"),$("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),$("ERR_UNKNOWN_ENCODING",function(tt){return"Unknown encoding: "+tt},TypeError),$("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),o.exports.codes=j},function(o,i,s){(function(j){var $=Object.keys||function(ct){var st=[];for(var ut in ct)st.push(ut);return st};o.exports=lt;var _e=s(75),tt=s(79);s(6)(lt,_e);for(var et=$(tt.prototype),rt=0;rt`${lt.get("app-id")}`.startsWith("formant/")?{}:_e,headers:Object.assign(Object.assign({},tt.headers),{"App-ID":`formant/${$.a}`,"App-Version":$.j})},ot)),this.endpoint=rt}}tt.headers={}},function(o,i,s){Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(j,$=j.length){if(!$)throw new Error("arity is undefined");return function(..._e){return typeof _e[$-1]=="function"?j.apply(this,_e):new Promise((tt,et)=>{_e[$-1]=(rt,...ot)=>{if(rt)return et(rt);tt(ot.length>1?ot:ot[0])},j.apply(this,_e)})}},o.exports=i.default},function(o,i,s){(i=o.exports=s(67)).Stream=i,i.Readable=i,i.Writable=s(44),i.Duplex=s(20),i.Transform=s(70),i.PassThrough=s(164)},function(o,i,s){(i=o.exports=s(75)).Stream=i,i.Readable=i,i.Writable=s(79),i.Duplex=s(25),i.Transform=s(80),i.PassThrough=s(183),i.finished=s(45),i.pipeline=s(184)},function(o,i,s){s.d(i,"a",function(){return $});const j=["password","secret","token","key","buffer"];function $(_e,tt=new Set){return tt.has(_e)?"[ RECURSIVE ]":!(et=_e)||typeof et!="object"&&typeof et!="function"?_e:(tt.add(_e),Object.keys(_e).reduce((rt,ot)=>(rt[ot]=j.some(lt=>ot.toLowerCase().includes(lt.toLowerCase()))?"[ REDACTED ]":$(_e[ot],tt),rt),{}));var et}},function(o,i){o.exports=j,j.default=j,j.stable=_e,j.stableStringify=_e;var s=[];function j(tt,et,rt){(function dt(at,ct,st,ut){var mt;if(typeof at=="object"&&at!==null){for(mt=0;mtet?1:0}function _e(tt,et,rt){for(var ot=function at(ct,st,ut,mt){var bt;if(typeof ct=="object"&&ct!==null){for(bt=0;bt!0){if(Tt instanceof ht&&yt(Tt))return Tt;throw Tt}var tt=s(1),et=s(100),rt=s.n(et),ot=s(101),lt=s.n(ot);class dt extends Error{constructor(ht,yt,ft){super(`Connection failure: ${ht.message}`),this.cause=ht,this.url=yt,this.retryable=ft}}var at=s(30);class ct extends Error{constructor(ht,yt,ft,Ct,Ft={},Ut){super(`Unexpected response (${ft}) for ${ht} ${yt}: ${JSON.stringify(Ut?Object(at.a)([...Ut.entries()].reduce((wt,[vt,At])=>(wt[vt]=At,wt),{})):{})} -- ${JSON.stringify(Object(at.a)(Ct))}`),this.method=ht,this.url=yt,this.statusCode=ft,this.body=Ct,this.validationErrors=Ft,this.headers=Ut}}class st extends Error{constructor(ht,yt){super(`Invalid headers (${JSON.stringify(ht)}) for response: ${yt.message}`),this.validationErrors=ht,this.responseError=yt}}var ut=function(Tt,ht,yt,ft){return new(yt||(yt=Promise))(function(Ct,Ft){function Ut(At){try{vt(ft.next(At))}catch(Et){Ft(Et)}}function wt(At){try{vt(ft.throw(At))}catch(Et){Ft(Et)}}function vt(At){var Et;At.done?Ct(At.value):(Et=At.value,Et instanceof yt?Et:new yt(function(Mt){Mt(Et)})).then(Ut,wt)}vt((ft=ft.apply(Tt,ht||[])).next())})},mt=function(Tt,ht){var yt={};for(var ft in Tt)Object.prototype.hasOwnProperty.call(Tt,ft)&&ht.indexOf(ft)<0&&(yt[ft]=Tt[ft]);if(Tt!=null&&typeof Object.getOwnPropertySymbols=="function"){var Ct=0;for(ft=Object.getOwnPropertySymbols(Tt);Ctyt.validateHeaders?yt.validateHeaders(ft):{},this.verbose=yt.verbose!==!1,this.retries=yt.retries!==void 0?yt.retries:bt.retries,this.headers=yt.headers||{},this.timeoutMs=yt.timeoutMs,!(this.retries>=0))throw new Error("retries must be positive or zero");if(this.timeoutMs!==void 0&&!(this.timeoutMs>0))throw new Error("timeoutMs must be positive")}fetch(ht,yt={}){return ut(this,void 0,void 0,function*(){return(yield this.fetchVerbose(ht,yt)).body})}fetchVerbose(ht,yt={}){return ut(this,void 0,void 0,function*(){let ft=100*tt.a.millisecond,Ct=0;const Ft=this.timeoutMs!==void 0?new Date().getTime()+this.timeoutMs:void 0,Ut=Ft?()=>Math.max(Ft-new Date().getTime(),0):void 0;for(;;)try{return yield this.doFetch(ht,yt,Ut)}catch(wt){const vt=_e(wt,dt);if((Ut==null?void 0:Ut())===0||Ct===this.retries||!vt.retryable&&!yt.allowUnsafeRetries)throw vt;Ct++,ft*=2+.1*(Math.random()-.5),yield Object(j.a)(Ut?Math.min(ft,Ut()):ft),this.verbose&&$.a.warn(`Connection failure, retrying. Error: ${wt.cause.message}`,{url:wt.url,error:wt.cause})}})}doFetch(ht,yt,ft){return ut(this,void 0,void 0,function*(){const{token:Ct,json:Ft}=yt,Ut=mt(yt,["token","json"]),wt=(Ut.method||"GET").toUpperCase(),vt=wt!=="POST"&&wt!=="PATCH",At=this.endpoint!==void 0?`${this.endpoint}${ht?`/${ht}`:""}`:ht,Et=new rt.a;let Mt;if(ft){const Lt=ft();Lt>0?Mt=setTimeout(()=>{Et.abort()},Lt):Et.abort()}try{let Lt;yield Promise.race([bt.waitForConnectivity(),new Promise(Bt=>{Lt=setTimeout(Bt,ft?Math.min(tt.a.minute,ft()):tt.a.minute)})]),Lt&&clearTimeout(Lt);const kt=yield lt()(At,Object.assign(Object.assign({},Ut),{headers:Object.assign(Object.assign(Object.assign(Object.assign({},Ft!==!1?{"Content-Type":"application/json"}:{}),this.headers),Ut.headers||{}),Ct!==void 0?{Authorization:`Bearer ${Ct}`}:{}),signal:Et.signal})),Rt=kt.headers.get("content-type")||"",Ot=Rt&&Rt.startsWith("application/json"),It=Ot?yield kt.json():yield kt.text(),St=()=>new ct(wt,At,kt.status,It,It&&It.validationErrors||{},kt.headers);if(!kt.ok)throw this.verbose&&$.a[kt.status>=500?"warn":"info"]("Response error",{method:wt,url:At,statusCode:kt.status}),St();const gt=this.validateHeaders(kt.headers);if(Object.keys(gt).length!==0)throw new st(gt,St());if(kt.status===204)return{body:void 0,headers:kt.headers};if(Ft&&!Ot)throw new Error(`Response is not JSON: ${JSON.stringify(It)}`);return{body:It,headers:kt.headers}}catch(Lt){if(Lt.message==="Network request failed")throw new dt(Lt,At,vt);if(Lt.type==="system"&&["EAI_AGAIN","ECONNREFUSED","EHOSTUNREACH","ENOTFOUND"].find(It=>It===Lt.code))throw new dt(Lt,At,!0);if(Lt.type==="system"&&["ETIMEDOUT","ECONNRESET","ESOCKETTIMEDOUT","EPIPE"].find(It=>It===Lt.code))throw new dt(Lt,At,vt);if(Lt.name==="AbortError")throw new dt(Lt,At,vt);const kt=_e(Lt,ct),{statusCode:Rt}=kt;if(Rt===408||Rt===429||Rt===502||Rt===503||Rt===504)throw this.verbose&&!vt&&$.a.warn("Potentially unsafe retry"),new dt(Lt,At,!0);const Ot=this.validateHeaders(kt.headers);throw Object.keys(Ot).length!==0?new st(Ot,kt):(yield bt.onResponseError(kt),Lt)}finally{Mt&&clearTimeout(Mt)}})}}bt.retries=8,bt.waitForConnectivity=()=>ut(void 0,void 0,void 0,function*(){}),bt.onResponseError=()=>ut(void 0,void 0,void 0,function*(){})},function(o,i,s){function j(dt,at){if(!(dt instanceof at))throw new TypeError("Cannot call a class as a function")}function $(dt,at){for(var ct=0;ct0&&arguments[0]!==void 0?arguments[0]:{};j(this,dt),ut.colors&&this.addColors(ut.colors),this.options=ut}var at,ct,st;return at=dt,st=[{key:"addColors",value:function(ut){var mt=Object.keys(ut).reduce(function(bt,Tt){return bt[Tt]=ot.test(ut[Tt])?ut[Tt].split(ot):ut[Tt],bt},{});return dt.allColors=Object.assign({},dt.allColors||{},mt),dt.allColors}}],(ct=[{key:"addColors",value:function(ut){return dt.addColors(ut)}},{key:"colorize",value:function(ut,mt,bt){if(bt===void 0&&(bt=mt),!Array.isArray(dt.allColors[ut]))return _e[dt.allColors[ut]](bt);for(var Tt=0,ht=dt.allColors[ut].length;Tt=0&&j.length%1==0},o.exports=i.default},function(o,i,s){Object.defineProperty(i,"__esModule",{value:!0}),i.default={},o.exports=i.default},function(o,i,s){var j=s(4),$=j.Buffer;function _e(et,rt){for(var ot in et)rt[ot]=et[ot]}function tt(et,rt,ot){return $(et,rt,ot)}$.from&&$.alloc&&$.allocUnsafe&&$.allocUnsafeSlow?o.exports=j:(_e(j,i),i.Buffer=tt),_e($,tt),tt.from=function(et,rt,ot){if(typeof et=="number")throw new TypeError("Argument must not be a number");return $(et,rt,ot)},tt.alloc=function(et,rt,ot){if(typeof et!="number")throw new TypeError("Argument must be a number");var lt=$(et);return rt!==void 0?typeof ot=="string"?lt.fill(rt,ot):lt.fill(rt):lt.fill(0),lt},tt.allocUnsafe=function(et){if(typeof et!="number")throw new TypeError("Argument must be a number");return $(et)},tt.allocUnsafeSlow=function(et){if(typeof et!="number")throw new TypeError("Argument must be a number");return j.SlowBuffer(et)}},function(o,i,s){(function(j,$,_e){var tt=s(13);function et(vt){var At=this;this.next=null,this.entry=null,this.finish=function(){(function(Et,Mt,Lt){var kt=Et.entry;for(Et.entry=null;kt;){var Rt=kt.callback;Mt.pendingcb--,Rt(Lt),kt=kt.next}Mt.corkedRequestsFree?Mt.corkedRequestsFree.next=Et:Mt.corkedRequestsFree=Et})(At,vt)}}o.exports=ht;var rt,ot=!j.browser&&["v0.10","v0.9."].indexOf(j.version.slice(0,5))>-1?$:tt.nextTick;ht.WritableState=Tt;var lt=s(14);lt.inherits=s(6);var dt={deprecate:s(39)},at=s(68),ct=s(43).Buffer,st=_e.Uint8Array||function(){},ut,mt=s(69);function bt(){}function Tt(vt,At){rt=rt||s(20),vt=vt||{};var Et=At instanceof rt;this.objectMode=!!vt.objectMode,Et&&(this.objectMode=this.objectMode||!!vt.writableObjectMode);var Mt=vt.highWaterMark,Lt=vt.writableHighWaterMark,kt=this.objectMode?16:16384;this.highWaterMark=Mt||Mt===0?Mt:Et&&(Lt||Lt===0)?Lt:kt,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var Rt=vt.decodeStrings===!1;this.decodeStrings=!Rt,this.defaultEncoding=vt.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(Ot){(function(It,St){var gt=It._writableState,Bt=gt.sync,Dt=gt.writecb;if(function(Xt){Xt.writing=!1,Xt.writecb=null,Xt.length-=Xt.writelen,Xt.writelen=0}(gt),St)(function(Xt,Jt,zt,Wt,xt){--Jt.pendingcb,zt?(tt.nextTick(xt,Wt),tt.nextTick(wt,Xt,Jt),Xt._writableState.errorEmitted=!0,Xt.emit("error",Wt)):(xt(Wt),Xt._writableState.errorEmitted=!0,Xt.emit("error",Wt),wt(Xt,Jt))})(It,gt,Bt,St,Dt);else{var Yt=Ft(gt);Yt||gt.corked||gt.bufferProcessing||!gt.bufferedRequest||Ct(It,gt),Bt?ot(ft,It,gt,Yt,Dt):ft(It,gt,Yt,Dt)}})(At,Ot)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new et(this)}function ht(vt){if(rt=rt||s(20),!(ut.call(ht,this)||this instanceof rt))return new ht(vt);this._writableState=new Tt(vt,this),this.writable=!0,vt&&(typeof vt.write=="function"&&(this._write=vt.write),typeof vt.writev=="function"&&(this._writev=vt.writev),typeof vt.destroy=="function"&&(this._destroy=vt.destroy),typeof vt.final=="function"&&(this._final=vt.final)),at.call(this)}function yt(vt,At,Et,Mt,Lt,kt,Rt){At.writelen=Mt,At.writecb=Rt,At.writing=!0,At.sync=!0,Et?vt._writev(Lt,At.onwrite):vt._write(Lt,kt,At.onwrite),At.sync=!1}function ft(vt,At,Et,Mt){Et||function(Lt,kt){kt.length===0&&kt.needDrain&&(kt.needDrain=!1,Lt.emit("drain"))}(vt,At),At.pendingcb--,Mt(),wt(vt,At)}function Ct(vt,At){At.bufferProcessing=!0;var Et=At.bufferedRequest;if(vt._writev&&Et&&Et.next){var Mt=At.bufferedRequestCount,Lt=new Array(Mt),kt=At.corkedRequestsFree;kt.entry=Et;for(var Rt=0,Ot=!0;Et;)Lt[Rt]=Et,Et.isBuf||(Ot=!1),Et=Et.next,Rt+=1;Lt.allBuffers=Ot,yt(vt,At,!0,At.length,Lt,"",kt.finish),At.pendingcb++,At.lastBufferedRequest=null,kt.next?(At.corkedRequestsFree=kt.next,kt.next=null):At.corkedRequestsFree=new et(At),At.bufferedRequestCount=0}else{for(;Et;){var It=Et.chunk,St=Et.encoding,gt=Et.callback;if(yt(vt,At,!1,At.objectMode?1:It.length,It,St,gt),Et=Et.next,At.bufferedRequestCount--,At.writing)break}Et===null&&(At.lastBufferedRequest=null)}At.bufferedRequest=Et,At.bufferProcessing=!1}function Ft(vt){return vt.ending&&vt.length===0&&vt.bufferedRequest===null&&!vt.finished&&!vt.writing}function Ut(vt,At){vt._final(function(Et){At.pendingcb--,Et&&vt.emit("error",Et),At.prefinished=!0,vt.emit("prefinish"),wt(vt,At)})}function wt(vt,At){var Et=Ft(At);return Et&&(function(Mt,Lt){Lt.prefinished||Lt.finalCalled||(typeof Mt._final=="function"?(Lt.pendingcb++,Lt.finalCalled=!0,tt.nextTick(Ut,Mt,Lt)):(Lt.prefinished=!0,Mt.emit("prefinish")))}(vt,At),At.pendingcb===0&&(At.finished=!0,vt.emit("finish"))),Et}lt.inherits(ht,at),Tt.prototype.getBuffer=function(){for(var vt=this.bufferedRequest,At=[];vt;)At.push(vt),vt=vt.next;return At},function(){try{Object.defineProperty(Tt.prototype,"buffer",{get:dt.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}}(),typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(ut=Function.prototype[Symbol.hasInstance],Object.defineProperty(ht,Symbol.hasInstance,{value:function(vt){return!!ut.call(this,vt)||this===ht&&vt&&vt._writableState instanceof Tt}})):ut=function(vt){return vt instanceof this},ht.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))},ht.prototype.write=function(vt,At,Et){var Mt,Lt=this._writableState,kt=!1,Rt=!Lt.objectMode&&(Mt=vt,ct.isBuffer(Mt)||Mt instanceof st);return Rt&&!ct.isBuffer(vt)&&(vt=function(Ot){return ct.from(Ot)}(vt)),typeof At=="function"&&(Et=At,At=null),Rt?At="buffer":At||(At=Lt.defaultEncoding),typeof Et!="function"&&(Et=bt),Lt.ended?function(Ot,It){var St=new Error("write after end");Ot.emit("error",St),tt.nextTick(It,St)}(this,Et):(Rt||function(Ot,It,St,gt){var Bt=!0,Dt=!1;return St===null?Dt=new TypeError("May not write null values to stream"):typeof St=="string"||St===void 0||It.objectMode||(Dt=new TypeError("Invalid non-string/buffer chunk")),Dt&&(Ot.emit("error",Dt),tt.nextTick(gt,Dt),Bt=!1),Bt}(this,Lt,vt,Et))&&(Lt.pendingcb++,kt=function(Ot,It,St,gt,Bt,Dt){if(!St){var Yt=function(Wt,xt,Pt){return Wt.objectMode||Wt.decodeStrings===!1||typeof xt!="string"||(xt=ct.from(xt,Pt)),xt}(It,gt,Bt);gt!==Yt&&(St=!0,Bt="buffer",gt=Yt)}var Xt=It.objectMode?1:gt.length;It.length+=Xt;var Jt=It.length-1))throw new TypeError("Unknown encoding: "+vt);return this._writableState.defaultEncoding=vt,this},Object.defineProperty(ht.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),ht.prototype._write=function(vt,At,Et){Et(new Error("_write() is not implemented"))},ht.prototype._writev=null,ht.prototype.end=function(vt,At,Et){var Mt=this._writableState;typeof vt=="function"?(Et=vt,vt=null,At=null):typeof At=="function"&&(Et=At,At=null),vt!=null&&this.write(vt,At),Mt.corked&&(Mt.corked=1,this.uncork()),Mt.ending||Mt.finished||function(Lt,kt,Rt){kt.ending=!0,wt(Lt,kt),Rt&&(kt.finished?tt.nextTick(Rt):Lt.once("finish",Rt)),kt.ended=!0,Lt.writable=!1}(this,Mt,Et)},Object.defineProperty(ht.prototype,"destroyed",{get:function(){return this._writableState!==void 0&&this._writableState.destroyed},set:function(vt){this._writableState&&(this._writableState.destroyed=vt)}}),ht.prototype.destroy=mt.destroy,ht.prototype._undestroy=mt.undestroy,ht.prototype._destroy=function(vt,At){this.end(),At(vt)}}).call(this,s(2),s(12).setImmediate,s(5))},function(o,i,s){var j=s(24).codes.ERR_STREAM_PREMATURE_CLOSE;function $(){}o.exports=function _e(tt,et,rt){if(typeof et=="function")return _e(tt,null,et);et||(et={}),rt=function(ht){var yt=!1;return function(){if(!yt){yt=!0;for(var ft=arguments.length,Ct=new Array(ft),Ft=0;Ft",'"',"`"," ","\r",` -`," "]),lt=["'"].concat(ot),dt=["%","/","?",";","#"].concat(lt),at=["/","?","#"],ct=/^[+a-z0-9A-Z_-]{0,63}$/,st=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,ut={javascript:!0,"javascript:":!0},mt={javascript:!0,"javascript:":!0},bt={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},Tt=s(196);function ht(yt,ft,Ct){if(yt&&$.isObject(yt)&&yt instanceof _e)return yt;var Ft=new _e;return Ft.parse(yt,ft,Ct),Ft}_e.prototype.parse=function(yt,ft,Ct){if(!$.isString(yt))throw new TypeError("Parameter 'url' must be a string, not "+typeof yt);var Ft=yt.indexOf("?"),Ut=Ft!==-1&&Ft127?Xt+="x":Xt+=Yt[Jt];if(!Xt.match(ct)){var Wt=Bt.slice(0,It),xt=Bt.slice(It+1),Pt=Yt.match(st);Pt&&(Wt.push(Pt[1]),xt.unshift(Pt[2])),xt.length&&(vt="/"+xt.join(".")+vt),this.hostname=Wt.join(".");break}}}this.hostname.length>255?this.hostname="":this.hostname=this.hostname.toLowerCase(),gt||(this.hostname=j.toASCII(this.hostname));var $t=this.port?":"+this.port:"",en=this.hostname||"";this.host=en+$t,this.href+=this.host,gt&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),vt[0]!=="/"&&(vt="/"+vt))}if(!ut[Mt])for(It=0,Dt=lt.length;It0)&&Ct.host.split("@"))&&(Ct.auth=Pt.shift(),Ct.host=Ct.hostname=Pt.shift())),Ct.search=yt.search,Ct.query=yt.query,$.isNull(Ct.pathname)&&$.isNull(Ct.search)||(Ct.path=(Ct.pathname?Ct.pathname:"")+(Ct.search?Ct.search:"")),Ct.href=Ct.format(),Ct;if(!Yt.length)return Ct.pathname=null,Ct.search?Ct.path="/"+Ct.search:Ct.path=null,Ct.href=Ct.format(),Ct;for(var Jt=Yt.slice(-1)[0],zt=(Ct.host||yt.host||Yt.length>1)&&(Jt==="."||Jt==="..")||Jt==="",Wt=0,xt=Yt.length;xt>=0;xt--)(Jt=Yt[xt])==="."?Yt.splice(xt,1):Jt===".."?(Yt.splice(xt,1),Wt++):Wt&&(Yt.splice(xt,1),Wt--);if(!Bt&&!Dt)for(;Wt--;Wt)Yt.unshift("..");!Bt||Yt[0]===""||Yt[0]&&Yt[0].charAt(0)==="/"||Yt.unshift(""),zt&&Yt.join("/").substr(-1)!=="/"&&Yt.push("");var Pt,$t=Yt[0]===""||Yt[0]&&Yt[0].charAt(0)==="/";return Xt&&(Ct.hostname=Ct.host=$t?"":Yt.length?Yt.shift():"",(Pt=!!(Ct.host&&Ct.host.indexOf("@")>0)&&Ct.host.split("@"))&&(Ct.auth=Pt.shift(),Ct.host=Ct.hostname=Pt.shift())),(Bt=Bt||Ct.host&&Yt.length)&&!$t&&Yt.unshift(""),Yt.length?Ct.pathname=Yt.join("/"):(Ct.pathname=null,Ct.path=null),$.isNull(Ct.pathname)&&$.isNull(Ct.search)||(Ct.path=(Ct.pathname?Ct.pathname:"")+(Ct.search?Ct.search:"")),Ct.auth=yt.auth||Ct.auth,Ct.slashes=Ct.slashes||yt.slashes,Ct.href=Ct.format(),Ct},_e.prototype.parseHost=function(){var yt=this.host,ft=et.exec(yt);ft&&((ft=ft[0])!==":"&&(this.port=ft.substr(1)),yt=yt.substr(0,yt.length-ft.length)),yt&&(this.hostname=yt)}},function(o,i,s){var j=s(56),$=s(3).configs;i.cli=j.levels($.cli),i.npm=j.levels($.npm),i.syslog=j.levels($.syslog),i.addColors=j.levels},function(o,i,s){Object.defineProperty(i,"__esModule",{value:!0});var j=et(s(202)),$=et(s(203)),_e=et(s(23)),tt=et(s(27));function et(rt){return rt&&rt.__esModule?rt:{default:rt}}i.default=(0,tt.default)(function(rt,ot,lt){return(0,j.default)(rt,(0,$.default)((0,_e.default)(ot)),lt)},3),o.exports=i.default},function(o,i,s){function j($){Error.captureStackTrace(this,this.constructor),this.name="EnvVarError",this.message=`env-var: ${$}`}(0,s(10).inherits)(j,Error),o.exports=j},function(o,i,s){o.exports=function(j){const $=parseInt(j,10);if(isNaN($)||j.toString().indexOf(".")!==-1)throw new Error("should be a valid integer");return $}},function(o,i,s){o.exports=function(j){const $=parseFloat(j);if(isNaN($))throw new Error("should be a valid float");return $}},function(o,i,s){o.exports=function(j){try{return JSON.parse(j)}catch{throw new Error("should be valid (parseable) JSON")}}},function(o,i,s){(function(j){function $(et,rt){for(var ot=0,lt=et.length-1;lt>=0;lt--){var dt=et[lt];dt==="."?et.splice(lt,1):dt===".."?(et.splice(lt,1),ot++):ot&&(et.splice(lt,1),ot--)}if(rt)for(;ot--;ot)et.unshift("..");return et}function _e(et,rt){if(et.filter)return et.filter(rt);for(var ot=[],lt=0;lt=-1&&!rt;ot--){var lt=ot>=0?arguments[ot]:j.cwd();if(typeof lt!="string")throw new TypeError("Arguments to path.resolve must be strings");lt&&(et=lt+"/"+et,rt=lt.charAt(0)==="/")}return(rt?"/":"")+(et=$(_e(et.split("/"),function(dt){return!!dt}),!rt).join("/"))||"."},i.normalize=function(et){var rt=i.isAbsolute(et),ot=tt(et,-1)==="/";return(et=$(_e(et.split("/"),function(lt){return!!lt}),!rt).join("/"))||rt||(et="."),et&&ot&&(et+="/"),(rt?"/":"")+et},i.isAbsolute=function(et){return et.charAt(0)==="/"},i.join=function(){var et=Array.prototype.slice.call(arguments,0);return i.normalize(_e(et,function(rt,ot){if(typeof rt!="string")throw new TypeError("Arguments to path.join must be strings");return rt}).join("/"))},i.relative=function(et,rt){function ot(mt){for(var bt=0;bt=0&&mt[Tt]==="";Tt--);return bt>Tt?[]:mt.slice(bt,Tt-bt+1)}et=i.resolve(et).substr(1),rt=i.resolve(rt).substr(1);for(var lt=ot(et.split("/")),dt=ot(rt.split("/")),at=Math.min(lt.length,dt.length),ct=at,st=0;st=1;--at)if((rt=et.charCodeAt(at))===47){if(!dt){lt=at;break}}else dt=!1;return lt===-1?ot?"/":".":ot&<===1?"/":et.slice(0,lt)},i.basename=function(et,rt){var ot=function(lt){typeof lt!="string"&&(lt+="");var dt,at=0,ct=-1,st=!0;for(dt=lt.length-1;dt>=0;--dt)if(lt.charCodeAt(dt)===47){if(!st){at=dt+1;break}}else ct===-1&&(st=!1,ct=dt+1);return ct===-1?"":lt.slice(at,ct)}(et);return rt&&ot.substr(-1*rt.length)===rt&&(ot=ot.substr(0,ot.length-rt.length)),ot},i.extname=function(et){typeof et!="string"&&(et+="");for(var rt=-1,ot=0,lt=-1,dt=!0,at=0,ct=et.length-1;ct>=0;--ct){var st=et.charCodeAt(ct);if(st!==47)lt===-1&&(dt=!1,lt=ct+1),st===46?rt===-1?rt=ct:at!==1&&(at=1):rt!==-1&&(at=-1);else if(!dt){ot=ct+1;break}}return rt===-1||lt===-1||at===0||at===1&&rt===lt-1&&rt===ot+1?"":et.slice(rt,lt)};var tt="ab".substr(-1)==="b"?function(et,rt,ot){return et.substr(rt,ot)}:function(et,rt,ot){return rt<0&&(rt=et.length+rt),et.substr(rt,ot)}}).call(this,s(2))},function(o,i){function s(j,$){var _e=[],tt=[];return $==null&&($=function(et,rt){return _e[0]===rt?"[Circular ~]":"[Circular ~."+tt.slice(0,_e.indexOf(rt)).join(".")+"]"}),function(et,rt){if(_e.length>0){var ot=_e.indexOf(this);~ot?_e.splice(ot+1):_e.push(this),~ot?tt.splice(ot,1/0,et):tt.push(et),~_e.indexOf(rt)&&(rt=$.call(this,et,rt))}else _e.push(rt);return j==null?rt:j.call(this,et,rt)}}(o.exports=function(j,$,_e,tt){return JSON.stringify(j,s($,tt),_e)}).getSerialize=s},function(o,i,s){s(227),o.exports={encode:j=>new TextEncoder().encode(j),decode:j=>new TextDecoder().decode(j)}},function(o,i,s){var j=i.format=s(9);i.levels=s(104),Object.defineProperty(j,"align",{value:s(121)}),Object.defineProperty(j,"cli",{value:s(122)}),Object.defineProperty(j,"combine",{value:s(123)}),Object.defineProperty(j,"colorize",{value:s(37)}),Object.defineProperty(j,"json",{value:s(124)}),Object.defineProperty(j,"label",{value:s(127)}),Object.defineProperty(j,"logstash",{value:s(128)}),Object.defineProperty(j,"metadata",{value:s(129)}),Object.defineProperty(j,"padLevels",{value:s(58)}),Object.defineProperty(j,"prettyPrint",{value:s(130)}),Object.defineProperty(j,"printf",{value:s(131)}),Object.defineProperty(j,"simple",{value:s(132)}),Object.defineProperty(j,"splat",{value:s(133)}),Object.defineProperty(j,"timestamp",{value:s(134)}),Object.defineProperty(j,"uncolorize",{value:s(136)})},function(o,i,s){var j=s(105);o.exports=j},function(o,i,s){function j(at){return function(ct){if(Array.isArray(ct))return $(ct)}(at)||function(ct){if(typeof Symbol!="undefined"&&Symbol.iterator in Object(ct))return Array.from(ct)}(at)||function(ct,st){if(!!ct){if(typeof ct=="string")return $(ct,st);var ut=Object.prototype.toString.call(ct).slice(8,-1);if(ut==="Object"&&ct.constructor&&(ut=ct.constructor.name),ut==="Map"||ut==="Set")return Array.from(ct);if(ut==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(ut))return $(ct,st)}}(at)||function(){throw new TypeError(`Invalid attempt to spread non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function $(at,ct){(ct==null||ct>at.length)&&(ct=at.length);for(var st=0,ut=new Array(ct);st0&&arguments[0]!==void 0?arguments[0]:{levels:rt.npm.levels};_e(this,at),this.paddings=at.paddingForLevels(mt.levels,mt.filler),this.options=mt}var ct,st,ut;return ct=at,ut=[{key:"getLongestLevel",value:function(mt){var bt=Object.keys(mt).map(function(Tt){return Tt.length});return Math.max.apply(Math,j(bt))}},{key:"paddingForLevel",value:function(mt,bt,Tt){var ht=Tt+1-mt.length,yt=Math.floor(ht/bt.length);return"".concat(bt).concat(bt.repeat(yt)).slice(0,ht)}},{key:"paddingForLevels",value:function(mt){var bt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:" ",Tt=at.getLongestLevel(mt);return Object.keys(mt).reduce(function(ht,yt){return ht[yt]=at.paddingForLevel(yt,bt,Tt),ht},{})}}],(st=[{key:"transform",value:function(mt,bt){return mt.message="".concat(this.paddings[mt[ot]]).concat(mt.message),mt[lt]&&(mt[lt]="".concat(this.paddings[mt[ot]]).concat(mt[lt])),mt}}])&&tt(ct.prototype,st),ut&&tt(ct,ut),at}();o.exports=function(at){return new dt(at)},o.exports.Padder=o.exports.Format=dt},function(o,i,s){var j=s(10).format;i.warn={deprecated:function($){return function(){throw new Error(j("{ %s } was removed in winston@3.0.0.",$))}},useFormat:function($){return function(){throw new Error([j("{ %s } was removed in winston@3.0.0.",$),"Use a custom winston.format = winston.format(function) instead."].join(` -`))}},forFunctions:function($,_e,tt){tt.forEach(function(et){$[et]=i.warn[_e](et)})},moved:function($,_e,tt){function et(){return function(){throw new Error([j("winston.%s was moved in winston@3.0.0.",tt),j("Use a winston.%s instead.",_e)].join(` -`))}}Object.defineProperty($,tt,{get:et,set:et})},forProperties:function($,_e,tt){tt.forEach(function(et){var rt=i.warn[_e](et);Object.defineProperty($,et,{get:rt,set:rt})})}}},function(o,i,s){(function(j,$,_e){var tt=s(13);function et(vt){var At=this;this.next=null,this.entry=null,this.finish=function(){(function(Et,Mt,Lt){var kt=Et.entry;for(Et.entry=null;kt;){var Rt=kt.callback;Mt.pendingcb--,Rt(Lt),kt=kt.next}Mt.corkedRequestsFree?Mt.corkedRequestsFree.next=Et:Mt.corkedRequestsFree=Et})(At,vt)}}o.exports=ht;var rt,ot=!j.browser&&["v0.10","v0.9."].indexOf(j.version.slice(0,5))>-1?$:tt.nextTick;ht.WritableState=Tt;var lt=Object.create(s(14));lt.inherits=s(6);var dt={deprecate:s(39)},at=s(61),ct=s(40).Buffer,st=_e.Uint8Array||function(){},ut,mt=s(62);function bt(){}function Tt(vt,At){rt=rt||s(32),vt=vt||{};var Et=At instanceof rt;this.objectMode=!!vt.objectMode,Et&&(this.objectMode=this.objectMode||!!vt.writableObjectMode);var Mt=vt.highWaterMark,Lt=vt.writableHighWaterMark,kt=this.objectMode?16:16384;this.highWaterMark=Mt||Mt===0?Mt:Et&&(Lt||Lt===0)?Lt:kt,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var Rt=vt.decodeStrings===!1;this.decodeStrings=!Rt,this.defaultEncoding=vt.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(Ot){(function(It,St){var gt=It._writableState,Bt=gt.sync,Dt=gt.writecb;if(function(Xt){Xt.writing=!1,Xt.writecb=null,Xt.length-=Xt.writelen,Xt.writelen=0}(gt),St)(function(Xt,Jt,zt,Wt,xt){--Jt.pendingcb,zt?(tt.nextTick(xt,Wt),tt.nextTick(wt,Xt,Jt),Xt._writableState.errorEmitted=!0,Xt.emit("error",Wt)):(xt(Wt),Xt._writableState.errorEmitted=!0,Xt.emit("error",Wt),wt(Xt,Jt))})(It,gt,Bt,St,Dt);else{var Yt=Ft(gt);Yt||gt.corked||gt.bufferProcessing||!gt.bufferedRequest||Ct(It,gt),Bt?ot(ft,It,gt,Yt,Dt):ft(It,gt,Yt,Dt)}})(At,Ot)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new et(this)}function ht(vt){if(rt=rt||s(32),!(ut.call(ht,this)||this instanceof rt))return new ht(vt);this._writableState=new Tt(vt,this),this.writable=!0,vt&&(typeof vt.write=="function"&&(this._write=vt.write),typeof vt.writev=="function"&&(this._writev=vt.writev),typeof vt.destroy=="function"&&(this._destroy=vt.destroy),typeof vt.final=="function"&&(this._final=vt.final)),at.call(this)}function yt(vt,At,Et,Mt,Lt,kt,Rt){At.writelen=Mt,At.writecb=Rt,At.writing=!0,At.sync=!0,Et?vt._writev(Lt,At.onwrite):vt._write(Lt,kt,At.onwrite),At.sync=!1}function ft(vt,At,Et,Mt){Et||function(Lt,kt){kt.length===0&&kt.needDrain&&(kt.needDrain=!1,Lt.emit("drain"))}(vt,At),At.pendingcb--,Mt(),wt(vt,At)}function Ct(vt,At){At.bufferProcessing=!0;var Et=At.bufferedRequest;if(vt._writev&&Et&&Et.next){var Mt=At.bufferedRequestCount,Lt=new Array(Mt),kt=At.corkedRequestsFree;kt.entry=Et;for(var Rt=0,Ot=!0;Et;)Lt[Rt]=Et,Et.isBuf||(Ot=!1),Et=Et.next,Rt+=1;Lt.allBuffers=Ot,yt(vt,At,!0,At.length,Lt,"",kt.finish),At.pendingcb++,At.lastBufferedRequest=null,kt.next?(At.corkedRequestsFree=kt.next,kt.next=null):At.corkedRequestsFree=new et(At),At.bufferedRequestCount=0}else{for(;Et;){var It=Et.chunk,St=Et.encoding,gt=Et.callback;if(yt(vt,At,!1,At.objectMode?1:It.length,It,St,gt),Et=Et.next,At.bufferedRequestCount--,At.writing)break}Et===null&&(At.lastBufferedRequest=null)}At.bufferedRequest=Et,At.bufferProcessing=!1}function Ft(vt){return vt.ending&&vt.length===0&&vt.bufferedRequest===null&&!vt.finished&&!vt.writing}function Ut(vt,At){vt._final(function(Et){At.pendingcb--,Et&&vt.emit("error",Et),At.prefinished=!0,vt.emit("prefinish"),wt(vt,At)})}function wt(vt,At){var Et=Ft(At);return Et&&(function(Mt,Lt){Lt.prefinished||Lt.finalCalled||(typeof Mt._final=="function"?(Lt.pendingcb++,Lt.finalCalled=!0,tt.nextTick(Ut,Mt,Lt)):(Lt.prefinished=!0,Mt.emit("prefinish")))}(vt,At),At.pendingcb===0&&(At.finished=!0,vt.emit("finish"))),Et}lt.inherits(ht,at),Tt.prototype.getBuffer=function(){for(var vt=this.bufferedRequest,At=[];vt;)At.push(vt),vt=vt.next;return At},function(){try{Object.defineProperty(Tt.prototype,"buffer",{get:dt.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}}(),typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(ut=Function.prototype[Symbol.hasInstance],Object.defineProperty(ht,Symbol.hasInstance,{value:function(vt){return!!ut.call(this,vt)||this===ht&&vt&&vt._writableState instanceof Tt}})):ut=function(vt){return vt instanceof this},ht.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))},ht.prototype.write=function(vt,At,Et){var Mt,Lt=this._writableState,kt=!1,Rt=!Lt.objectMode&&(Mt=vt,ct.isBuffer(Mt)||Mt instanceof st);return Rt&&!ct.isBuffer(vt)&&(vt=function(Ot){return ct.from(Ot)}(vt)),typeof At=="function"&&(Et=At,At=null),Rt?At="buffer":At||(At=Lt.defaultEncoding),typeof Et!="function"&&(Et=bt),Lt.ended?function(Ot,It){var St=new Error("write after end");Ot.emit("error",St),tt.nextTick(It,St)}(this,Et):(Rt||function(Ot,It,St,gt){var Bt=!0,Dt=!1;return St===null?Dt=new TypeError("May not write null values to stream"):typeof St=="string"||St===void 0||It.objectMode||(Dt=new TypeError("Invalid non-string/buffer chunk")),Dt&&(Ot.emit("error",Dt),tt.nextTick(gt,Dt),Bt=!1),Bt}(this,Lt,vt,Et))&&(Lt.pendingcb++,kt=function(Ot,It,St,gt,Bt,Dt){if(!St){var Yt=function(Wt,xt,Pt){return Wt.objectMode||Wt.decodeStrings===!1||typeof xt!="string"||(xt=ct.from(xt,Pt)),xt}(It,gt,Bt);gt!==Yt&&(St=!0,Bt="buffer",gt=Yt)}var Xt=It.objectMode?1:gt.length;It.length+=Xt;var Jt=It.length-1))throw new TypeError("Unknown encoding: "+vt);return this._writableState.defaultEncoding=vt,this},Object.defineProperty(ht.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),ht.prototype._write=function(vt,At,Et){Et(new Error("_write() is not implemented"))},ht.prototype._writev=null,ht.prototype.end=function(vt,At,Et){var Mt=this._writableState;typeof vt=="function"?(Et=vt,vt=null,At=null):typeof At=="function"&&(Et=At,At=null),vt!=null&&this.write(vt,At),Mt.corked&&(Mt.corked=1,this.uncork()),Mt.ending||Mt.finished||function(Lt,kt,Rt){kt.ending=!0,wt(Lt,kt),Rt&&(kt.finished?tt.nextTick(Rt):Lt.once("finish",Rt)),kt.ended=!0,Lt.writable=!1}(this,Mt,Et)},Object.defineProperty(ht.prototype,"destroyed",{get:function(){return this._writableState!==void 0&&this._writableState.destroyed},set:function(vt){this._writableState&&(this._writableState.destroyed=vt)}}),ht.prototype.destroy=mt.destroy,ht.prototype._undestroy=mt.undestroy,ht.prototype._destroy=function(vt,At){this.end(),At(vt)}}).call(this,s(2),s(12).setImmediate,s(5))},function(o,i,s){o.exports=s(18).EventEmitter},function(o,i,s){var j=s(13);function $(_e,tt){_e.emit("error",tt)}o.exports={destroy:function(_e,tt){var et=this,rt=this._readableState&&this._readableState.destroyed,ot=this._writableState&&this._writableState.destroyed;return rt||ot?(tt?tt(_e):!_e||this._writableState&&this._writableState.errorEmitted||j.nextTick($,this,_e),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(_e||null,function(lt){!tt&<?(j.nextTick($,et,lt),et._writableState&&(et._writableState.errorEmitted=!0)):tt&&tt(lt)}),this)},undestroy:function(){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.finished=!1,this._writableState.errorEmitted=!1)}}},function(o,i){},function(o,i,s){Object.defineProperty(i,"__esModule",{value:!0});var j=tt(s(155)),$=tt(s(23)),_e=tt(s(27));function tt(et){return et&&et.__esModule?et:{default:et}}i.default=(0,_e.default)(function(et,rt,ot,lt){return(0,j.default)(rt)(et,(0,$.default)(ot),lt)},4),o.exports=i.default},function(o,i,s){Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(j){function $(..._e){if(j!==null){var tt=j;j=null,tt.apply(this,_e)}}return Object.assign($,j),$},o.exports=i.default},function(o,i,s){Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(j){return function(...$){if(j===null)throw new Error("Callback was already called.");var _e=j;j=null,_e.apply(this,$)}},o.exports=i.default},function(o,i,s){(function(j,$){var _e=s(13);o.exports=yt;var tt,et=s(38);yt.ReadableState=ht,s(18).EventEmitter;var rt=function(St,gt){return St.listeners(gt).length},ot=s(68),lt=s(43).Buffer,dt=j.Uint8Array||function(){},at=s(14);at.inherits=s(6);var ct=s(161),st=void 0;st=ct&&ct.debuglog?ct.debuglog("stream"):function(){};var ut,mt=s(162),bt=s(69);at.inherits(yt,ot);var Tt=["error","close","destroy","pause","resume"];function ht(St,gt){St=St||{};var Bt=gt instanceof(tt=tt||s(20));this.objectMode=!!St.objectMode,Bt&&(this.objectMode=this.objectMode||!!St.readableObjectMode);var Dt=St.highWaterMark,Yt=St.readableHighWaterMark,Xt=this.objectMode?16:16384;this.highWaterMark=Dt||Dt===0?Dt:Bt&&(Yt||Yt===0)?Yt:Xt,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new mt,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.destroyed=!1,this.defaultEncoding=St.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,St.encoding&&(ut||(ut=s(19).StringDecoder),this.decoder=new ut(St.encoding),this.encoding=St.encoding)}function yt(St){if(tt=tt||s(20),!(this instanceof yt))return new yt(St);this._readableState=new ht(St,this),this.readable=!0,St&&(typeof St.read=="function"&&(this._read=St.read),typeof St.destroy=="function"&&(this._destroy=St.destroy)),ot.call(this)}function ft(St,gt,Bt,Dt,Yt){var Xt,Jt=St._readableState;return gt===null?(Jt.reading=!1,function(zt,Wt){if(!Wt.ended){if(Wt.decoder){var xt=Wt.decoder.end();xt&&xt.length&&(Wt.buffer.push(xt),Wt.length+=Wt.objectMode?1:xt.length)}Wt.ended=!0,Ut(zt)}}(St,Jt)):(Yt||(Xt=function(zt,Wt){var xt;Pt=Wt,lt.isBuffer(Pt)||Pt instanceof dt||typeof Wt=="string"||Wt===void 0||zt.objectMode||(xt=new TypeError("Invalid non-string/buffer chunk"));var Pt;return xt}(Jt,gt)),Xt?St.emit("error",Xt):Jt.objectMode||gt&>.length>0?(typeof gt=="string"||Jt.objectMode||Object.getPrototypeOf(gt)===lt.prototype||(gt=function(zt){return lt.from(zt)}(gt)),Dt?Jt.endEmitted?St.emit("error",new Error("stream.unshift() after end event")):Ct(St,Jt,gt,!0):Jt.ended?St.emit("error",new Error("stream.push() after EOF")):(Jt.reading=!1,Jt.decoder&&!Bt?(gt=Jt.decoder.write(gt),Jt.objectMode||gt.length!==0?Ct(St,Jt,gt,!1):vt(St,Jt)):Ct(St,Jt,gt,!1))):Dt||(Jt.reading=!1)),function(zt){return!zt.ended&&(zt.needReadable||zt.lengthgt.highWaterMark&&(gt.highWaterMark=function(Bt){return Bt>=8388608?Bt=8388608:(Bt--,Bt|=Bt>>>1,Bt|=Bt>>>2,Bt|=Bt>>>4,Bt|=Bt>>>8,Bt|=Bt>>>16,Bt++),Bt}(St)),St<=gt.length?St:gt.ended?gt.length:(gt.needReadable=!0,0))}function Ut(St){var gt=St._readableState;gt.needReadable=!1,gt.emittedReadable||(st("emitReadable",gt.flowing),gt.emittedReadable=!0,gt.sync?_e.nextTick(wt,St):wt(St))}function wt(St){st("emit readable"),St.emit("readable"),Lt(St)}function vt(St,gt){gt.readingMore||(gt.readingMore=!0,_e.nextTick(At,St,gt))}function At(St,gt){for(var Bt=gt.length;!gt.reading&&!gt.flowing&&!gt.ended&>.length=gt.length?(Bt=gt.decoder?gt.buffer.join(""):gt.buffer.length===1?gt.buffer.head.data:gt.buffer.concat(gt.length),gt.buffer.clear()):Bt=function(Dt,Yt,Xt){var Jt;return Dten.length?en.length:zt;if(Zt===en.length?$t+=en:$t+=en.slice(0,zt),(zt-=Zt)===0){Zt===en.length?(++Pt,xt.next?Wt.head=xt.next:Wt.head=Wt.tail=null):(Wt.head=xt,xt.data=en.slice(Zt));break}++Pt}return Wt.length-=Pt,$t}(Dt,Yt):function(zt,Wt){var xt=lt.allocUnsafe(zt),Pt=Wt.head,$t=1;for(Pt.data.copy(xt),zt-=Pt.data.length;Pt=Pt.next;){var en=Pt.data,Zt=zt>en.length?en.length:zt;if(en.copy(xt,xt.length-zt,0,Zt),(zt-=Zt)===0){Zt===en.length?(++$t,Pt.next?Wt.head=Pt.next:Wt.head=Wt.tail=null):(Wt.head=Pt,Pt.data=en.slice(Zt));break}++$t}return Wt.length-=$t,xt}(Dt,Yt),Jt}(St,gt.buffer,gt.decoder),Bt);var Bt}function Rt(St){var gt=St._readableState;if(gt.length>0)throw new Error('"endReadable()" called on non-empty stream');gt.endEmitted||(gt.ended=!0,_e.nextTick(Ot,gt,St))}function Ot(St,gt){St.endEmitted||St.length!==0||(St.endEmitted=!0,gt.readable=!1,gt.emit("end"))}function It(St,gt){for(var Bt=0,Dt=St.length;Bt=gt.highWaterMark||gt.ended))return st("read: emitReadable",gt.length,gt.ended),gt.length===0&>.ended?Rt(this):Ut(this),null;if((St=Ft(St,gt))===0&>.ended)return gt.length===0&&Rt(this),null;var Dt,Yt=gt.needReadable;return st("need readable",Yt),(gt.length===0||gt.length-St0?kt(St,gt):null)===null?(gt.needReadable=!0,St=0):gt.length-=St,gt.length===0&&(gt.ended||(gt.needReadable=!0),Bt!==St&>.ended&&Rt(this)),Dt!==null&&this.emit("data",Dt),Dt},yt.prototype._read=function(St){this.emit("error",new Error("_read() is not implemented"))},yt.prototype.pipe=function(St,gt){var Bt=this,Dt=this._readableState;switch(Dt.pipesCount){case 0:Dt.pipes=St;break;case 1:Dt.pipes=[Dt.pipes,St];break;default:Dt.pipes.push(St)}Dt.pipesCount+=1,st("pipe count=%d opts=%j",Dt.pipesCount,gt);var Yt=(!gt||gt.end!==!1)&&St!==$.stdout&&St!==$.stderr?Jt:rn;function Xt(cn,sn){st("onunpipe"),cn===Bt&&sn&&sn.hasUnpiped===!1&&(sn.hasUnpiped=!0,st("cleanup"),St.removeListener("close",en),St.removeListener("finish",Zt),St.removeListener("drain",zt),St.removeListener("error",$t),St.removeListener("unpipe",Xt),Bt.removeListener("end",Jt),Bt.removeListener("end",rn),Bt.removeListener("data",Pt),Wt=!0,!Dt.awaitDrain||St._writableState&&!St._writableState.needDrain||zt())}function Jt(){st("onend"),St.end()}Dt.endEmitted?_e.nextTick(Yt):Bt.once("end",Yt),St.on("unpipe",Xt);var zt=function(cn){return function(){var sn=cn._readableState;st("pipeOnDrain",sn.awaitDrain),sn.awaitDrain&&sn.awaitDrain--,sn.awaitDrain===0&&rt(cn,"data")&&(sn.flowing=!0,Lt(cn))}}(Bt);St.on("drain",zt);var Wt=!1,xt=!1;function Pt(cn){st("ondata"),xt=!1,St.write(cn)!==!1||xt||((Dt.pipesCount===1&&Dt.pipes===St||Dt.pipesCount>1&&It(Dt.pipes,St)!==-1)&&!Wt&&(st("false write response, pause",Bt._readableState.awaitDrain),Bt._readableState.awaitDrain++,xt=!0),Bt.pause())}function $t(cn){st("onerror",cn),rn(),St.removeListener("error",$t),rt(St,"error")===0&&St.emit("error",cn)}function en(){St.removeListener("finish",Zt),rn()}function Zt(){st("onfinish"),St.removeListener("close",en),rn()}function rn(){st("unpipe"),Bt.unpipe(St)}return Bt.on("data",Pt),function(cn,sn,Ht){if(typeof cn.prependListener=="function")return cn.prependListener(sn,Ht);cn._events&&cn._events[sn]?et(cn._events[sn])?cn._events[sn].unshift(Ht):cn._events[sn]=[Ht,cn._events[sn]]:cn.on(sn,Ht)}(St,"error",$t),St.once("close",en),St.once("finish",Zt),St.emit("pipe",Bt),Dt.flowing||(st("pipe resume"),Bt.resume()),St},yt.prototype.unpipe=function(St){var gt=this._readableState,Bt={hasUnpiped:!1};if(gt.pipesCount===0)return this;if(gt.pipesCount===1)return St&&St!==gt.pipes||(St||(St=gt.pipes),gt.pipes=null,gt.pipesCount=0,gt.flowing=!1,St&&St.emit("unpipe",this,Bt)),this;if(!St){var Dt=gt.pipes,Yt=gt.pipesCount;gt.pipes=null,gt.pipesCount=0,gt.flowing=!1;for(var Xt=0;Xt=0;Bt--)if(Dt[Bt]!==Yt[Bt])return!1;for(Bt=Dt.length-1;Bt>=0;Bt--)if(gt=Dt[Bt],!yt(Lt[gt],kt[gt],Rt,Ot))return!1;return!0}(wt,vt,At,Et))}return At?wt===vt:wt==vt}function ft(wt){return Object.prototype.toString.call(wt)=="[object Arguments]"}function Ct(wt,vt){if(!wt||!vt)return!1;if(Object.prototype.toString.call(vt)=="[object RegExp]")return vt.test(wt);try{if(wt instanceof vt)return!0}catch{}return!Error.isPrototypeOf(vt)&&vt.call({},wt)===!0}function Ft(wt,vt,At,Et){var Mt;if(typeof vt!="function")throw new TypeError('"block" argument must be a function');typeof At=="string"&&(Et=At,At=null),Mt=function(Rt){var Ot;try{Rt()}catch(It){Ot=It}return Ot}(vt),Et=(At&&At.name?" ("+At.name+").":".")+(Et?" "+Et:"."),wt&&!Mt&&Tt(Mt,At,"Missing expected exception"+Et);var Lt=typeof Et=="string",kt=!wt&&Mt&&!At;if((!wt&&et.isError(Mt)&&Lt&&Ct(Mt,At)||kt)&&Tt(Mt,At,"Got unwanted exception"+Et),wt&&Mt&&At&&!Ct(Mt,At)||!wt&&Mt)throw Mt}ct.AssertionError=function(wt){this.name="AssertionError",this.actual=wt.actual,this.expected=wt.expected,this.operator=wt.operator,wt.message?(this.message=wt.message,this.generatedMessage=!1):(this.message=function(Rt){return mt(bt(Rt.actual),128)+" "+Rt.operator+" "+mt(bt(Rt.expected),128)}(this),this.generatedMessage=!0);var vt=wt.stackStartFunction||Tt;if(Error.captureStackTrace)Error.captureStackTrace(this,vt);else{var At=new Error;if(At.stack){var Et=At.stack,Mt=ut(vt),Lt=Et.indexOf(` -`+Mt);if(Lt>=0){var kt=Et.indexOf(` -`,Lt+1);Et=Et.substring(kt+1)}this.stack=Et}}},et.inherits(ct.AssertionError,Error),ct.fail=Tt,ct.ok=ht,ct.equal=function(wt,vt,At){wt!=vt&&Tt(wt,vt,At,"==",ct.equal)},ct.notEqual=function(wt,vt,At){wt==vt&&Tt(wt,vt,At,"!=",ct.notEqual)},ct.deepEqual=function(wt,vt,At){yt(wt,vt,!1)||Tt(wt,vt,At,"deepEqual",ct.deepEqual)},ct.deepStrictEqual=function(wt,vt,At){yt(wt,vt,!0)||Tt(wt,vt,At,"deepStrictEqual",ct.deepStrictEqual)},ct.notDeepEqual=function(wt,vt,At){yt(wt,vt,!1)&&Tt(wt,vt,At,"notDeepEqual",ct.notDeepEqual)},ct.notDeepStrictEqual=function wt(vt,At,Et){yt(vt,At,!0)&&Tt(vt,At,Et,"notDeepStrictEqual",wt)},ct.strictEqual=function(wt,vt,At){wt!==vt&&Tt(wt,vt,At,"===",ct.strictEqual)},ct.notStrictEqual=function(wt,vt,At){wt===vt&&Tt(wt,vt,At,"!==",ct.notStrictEqual)},ct.throws=function(wt,vt,At){Ft(!0,wt,vt,At)},ct.doesNotThrow=function(wt,vt,At){Ft(!1,wt,vt,At)},ct.ifError=function(wt){if(wt)throw wt},ct.strict=$(function wt(vt,At){vt||Tt(vt,!0,At,"==",wt)},ct,{equal:ct.strictEqual,deepEqual:ct.deepStrictEqual,notEqual:ct.notStrictEqual,notDeepEqual:ct.notDeepStrictEqual}),ct.strict.strict=ct.strict;var Ut=Object.keys||function(wt){var vt=[];for(var At in wt)rt.call(wt,At)&&vt.push(At);return vt}}).call(this,s(5))},function(o,i,s){o.exports=function(j,$,_e,tt){for(var et=65535&j|0,rt=j>>>16&65535|0,ot=0;_e!==0;){_e-=ot=_e>2e3?2e3:_e;do rt=rt+(et=et+$[tt++]|0)|0;while(--ot);et%=65521,rt%=65521}return et|rt<<16|0}},function(o,i,s){var j=function(){for(var $,_e=[],tt=0;tt<256;tt++){$=tt;for(var et=0;et<8;et++)$=1&$?3988292384^$>>>1:$>>>1;_e[tt]=$}return _e}();o.exports=function($,_e,tt,et){var rt=j,ot=et+tt;$^=-1;for(var lt=et;lt>>8^rt[255&($^_e[lt])];return-1^$}},function(o,i,s){(function(j,$){var _e;o.exports=vt,vt.ReadableState=wt,s(18).EventEmitter;var tt=function(zt,Wt){return zt.listeners(Wt).length},et=s(76),rt=s(4).Buffer,ot=j.Uint8Array||function(){},lt,dt=s(178);lt=dt&&dt.debuglog?dt.debuglog("stream"):function(){};var at,ct,st,ut=s(179),mt=s(77),bt=s(78).getHighWaterMark,Tt=s(24).codes,ht=Tt.ERR_INVALID_ARG_TYPE,yt=Tt.ERR_STREAM_PUSH_AFTER_EOF,ft=Tt.ERR_METHOD_NOT_IMPLEMENTED,Ct=Tt.ERR_STREAM_UNSHIFT_AFTER_END_EVENT;s(6)(vt,et);var Ft=mt.errorOrDestroy,Ut=["error","close","destroy","pause","resume"];function wt(zt,Wt,xt){_e=_e||s(25),zt=zt||{},typeof xt!="boolean"&&(xt=Wt instanceof _e),this.objectMode=!!zt.objectMode,xt&&(this.objectMode=this.objectMode||!!zt.readableObjectMode),this.highWaterMark=bt(this,zt,"readableHighWaterMark",xt),this.buffer=new ut,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=zt.emitClose!==!1,this.autoDestroy=!!zt.autoDestroy,this.destroyed=!1,this.defaultEncoding=zt.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,zt.encoding&&(at||(at=s(19).StringDecoder),this.decoder=new at(zt.encoding),this.encoding=zt.encoding)}function vt(zt){if(_e=_e||s(25),!(this instanceof vt))return new vt(zt);var Wt=this instanceof _e;this._readableState=new wt(zt,this,Wt),this.readable=!0,zt&&(typeof zt.read=="function"&&(this._read=zt.read),typeof zt.destroy=="function"&&(this._destroy=zt.destroy)),et.call(this)}function At(zt,Wt,xt,Pt,$t){lt("readableAddChunk",Wt);var en,Zt=zt._readableState;if(Wt===null)Zt.reading=!1,function(rn,cn){if(lt("onEofChunk"),!cn.ended){if(cn.decoder){var sn=cn.decoder.end();sn&&sn.length&&(cn.buffer.push(sn),cn.length+=cn.objectMode?1:sn.length)}cn.ended=!0,cn.sync?Lt(rn):(cn.needReadable=!1,cn.emittedReadable||(cn.emittedReadable=!0,kt(rn)))}}(zt,Zt);else if($t||(en=function(rn,cn){var sn;Ht=cn,rt.isBuffer(Ht)||Ht instanceof ot||typeof cn=="string"||cn===void 0||rn.objectMode||(sn=new ht("chunk",["string","Buffer","Uint8Array"],cn));var Ht;return sn}(Zt,Wt)),en)Ft(zt,en);else if(Zt.objectMode||Wt&&Wt.length>0)if(typeof Wt=="string"||Zt.objectMode||Object.getPrototypeOf(Wt)===rt.prototype||(Wt=function(rn){return rt.from(rn)}(Wt)),Pt)Zt.endEmitted?Ft(zt,new Ct):Et(zt,Zt,Wt,!0);else if(Zt.ended)Ft(zt,new yt);else{if(Zt.destroyed)return!1;Zt.reading=!1,Zt.decoder&&!xt?(Wt=Zt.decoder.write(Wt),Zt.objectMode||Wt.length!==0?Et(zt,Zt,Wt,!1):Rt(zt,Zt)):Et(zt,Zt,Wt,!1)}else Pt||(Zt.reading=!1,Rt(zt,Zt));return!Zt.ended&&(Zt.lengthWt.highWaterMark&&(Wt.highWaterMark=function(xt){return xt>=1073741824?xt=1073741824:(xt--,xt|=xt>>>1,xt|=xt>>>2,xt|=xt>>>4,xt|=xt>>>8,xt|=xt>>>16,xt++),xt}(zt)),zt<=Wt.length?zt:Wt.ended?Wt.length:(Wt.needReadable=!0,0))}function Lt(zt){var Wt=zt._readableState;lt("emitReadable",Wt.needReadable,Wt.emittedReadable),Wt.needReadable=!1,Wt.emittedReadable||(lt("emitReadable",Wt.flowing),Wt.emittedReadable=!0,$.nextTick(kt,zt))}function kt(zt){var Wt=zt._readableState;lt("emitReadable_",Wt.destroyed,Wt.length,Wt.ended),Wt.destroyed||!Wt.length&&!Wt.ended||(zt.emit("readable"),Wt.emittedReadable=!1),Wt.needReadable=!Wt.flowing&&!Wt.ended&&Wt.length<=Wt.highWaterMark,Bt(zt)}function Rt(zt,Wt){Wt.readingMore||(Wt.readingMore=!0,$.nextTick(Ot,zt,Wt))}function Ot(zt,Wt){for(;!Wt.reading&&!Wt.ended&&(Wt.length0,Wt.resumeScheduled&&!Wt.paused?Wt.flowing=!0:zt.listenerCount("data")>0&&zt.resume()}function St(zt){lt("readable nexttick read 0"),zt.read(0)}function gt(zt,Wt){lt("resume",Wt.reading),Wt.reading||zt.read(0),Wt.resumeScheduled=!1,zt.emit("resume"),Bt(zt),Wt.flowing&&!Wt.reading&&zt.read(0)}function Bt(zt){var Wt=zt._readableState;for(lt("flow",Wt.flowing);Wt.flowing&&zt.read()!==null;);}function Dt(zt,Wt){return Wt.length===0?null:(Wt.objectMode?xt=Wt.buffer.shift():!zt||zt>=Wt.length?(xt=Wt.decoder?Wt.buffer.join(""):Wt.buffer.length===1?Wt.buffer.first():Wt.buffer.concat(Wt.length),Wt.buffer.clear()):xt=Wt.buffer.consume(zt,Wt.decoder),xt);var xt}function Yt(zt){var Wt=zt._readableState;lt("endReadable",Wt.endEmitted),Wt.endEmitted||(Wt.ended=!0,$.nextTick(Xt,Wt,zt))}function Xt(zt,Wt){if(lt("endReadableNT",zt.endEmitted,zt.length),!zt.endEmitted&&zt.length===0&&(zt.endEmitted=!0,Wt.readable=!1,Wt.emit("end"),zt.autoDestroy)){var xt=Wt._writableState;(!xt||xt.autoDestroy&&xt.finished)&&Wt.destroy()}}function Jt(zt,Wt){for(var xt=0,Pt=zt.length;xt=Wt.highWaterMark:Wt.length>0)||Wt.ended))return lt("read: emitReadable",Wt.length,Wt.ended),Wt.length===0&&Wt.ended?Yt(this):Lt(this),null;if((zt=Mt(zt,Wt))===0&&Wt.ended)return Wt.length===0&&Yt(this),null;var Pt,$t=Wt.needReadable;return lt("need readable",$t),(Wt.length===0||Wt.length-zt0?Dt(zt,Wt):null)===null?(Wt.needReadable=Wt.length<=Wt.highWaterMark,zt=0):(Wt.length-=zt,Wt.awaitDrain=0),Wt.length===0&&(Wt.ended||(Wt.needReadable=!0),xt!==zt&&Wt.ended&&Yt(this)),Pt!==null&&this.emit("data",Pt),Pt},vt.prototype._read=function(zt){Ft(this,new ft("_read()"))},vt.prototype.pipe=function(zt,Wt){var xt=this,Pt=this._readableState;switch(Pt.pipesCount){case 0:Pt.pipes=zt;break;case 1:Pt.pipes=[Pt.pipes,zt];break;default:Pt.pipes.push(zt)}Pt.pipesCount+=1,lt("pipe count=%d opts=%j",Pt.pipesCount,Wt);var $t=(!Wt||Wt.end!==!1)&&zt!==$.stdout&&zt!==$.stderr?Zt:yn;function en(ln,_n){lt("onunpipe"),ln===xt&&_n&&_n.hasUnpiped===!1&&(_n.hasUnpiped=!0,lt("cleanup"),zt.removeListener("close",qt),zt.removeListener("finish",nn),zt.removeListener("drain",rn),zt.removeListener("error",Ht),zt.removeListener("unpipe",en),xt.removeListener("end",Zt),xt.removeListener("end",yn),xt.removeListener("data",sn),cn=!0,!Pt.awaitDrain||zt._writableState&&!zt._writableState.needDrain||rn())}function Zt(){lt("onend"),zt.end()}Pt.endEmitted?$.nextTick($t):xt.once("end",$t),zt.on("unpipe",en);var rn=function(ln){return function(){var _n=ln._readableState;lt("pipeOnDrain",_n.awaitDrain),_n.awaitDrain&&_n.awaitDrain--,_n.awaitDrain===0&&tt(ln,"data")&&(_n.flowing=!0,Bt(ln))}}(xt);zt.on("drain",rn);var cn=!1;function sn(ln){lt("ondata");var _n=zt.write(ln);lt("dest.write",_n),_n===!1&&((Pt.pipesCount===1&&Pt.pipes===zt||Pt.pipesCount>1&&Jt(Pt.pipes,zt)!==-1)&&!cn&&(lt("false write response, pause",Pt.awaitDrain),Pt.awaitDrain++),xt.pause())}function Ht(ln){lt("onerror",ln),yn(),zt.removeListener("error",Ht),tt(zt,"error")===0&&Ft(zt,ln)}function qt(){zt.removeListener("finish",nn),yn()}function nn(){lt("onfinish"),zt.removeListener("close",qt),yn()}function yn(){lt("unpipe"),xt.unpipe(zt)}return xt.on("data",sn),function(ln,_n,vn){if(typeof ln.prependListener=="function")return ln.prependListener(_n,vn);ln._events&&ln._events[_n]?Array.isArray(ln._events[_n])?ln._events[_n].unshift(vn):ln._events[_n]=[vn,ln._events[_n]]:ln.on(_n,vn)}(zt,"error",Ht),zt.once("close",qt),zt.once("finish",nn),zt.emit("pipe",xt),Pt.flowing||(lt("pipe resume"),xt.resume()),zt},vt.prototype.unpipe=function(zt){var Wt=this._readableState,xt={hasUnpiped:!1};if(Wt.pipesCount===0)return this;if(Wt.pipesCount===1)return zt&&zt!==Wt.pipes||(zt||(zt=Wt.pipes),Wt.pipes=null,Wt.pipesCount=0,Wt.flowing=!1,zt&&zt.emit("unpipe",this,xt)),this;if(!zt){var Pt=Wt.pipes,$t=Wt.pipesCount;Wt.pipes=null,Wt.pipesCount=0,Wt.flowing=!1;for(var en=0;en<$t;en++)Pt[en].emit("unpipe",this,{hasUnpiped:!1});return this}var Zt=Jt(Wt.pipes,zt);return Zt===-1||(Wt.pipes.splice(Zt,1),Wt.pipesCount-=1,Wt.pipesCount===1&&(Wt.pipes=Wt.pipes[0]),zt.emit("unpipe",this,xt)),this},vt.prototype.on=function(zt,Wt){var xt=et.prototype.on.call(this,zt,Wt),Pt=this._readableState;return zt==="data"?(Pt.readableListening=this.listenerCount("readable")>0,Pt.flowing!==!1&&this.resume()):zt==="readable"&&(Pt.endEmitted||Pt.readableListening||(Pt.readableListening=Pt.needReadable=!0,Pt.flowing=!1,Pt.emittedReadable=!1,lt("on readable",Pt.length,Pt.reading),Pt.length?Lt(this):Pt.reading||$.nextTick(St,this))),xt},vt.prototype.addListener=vt.prototype.on,vt.prototype.removeListener=function(zt,Wt){var xt=et.prototype.removeListener.call(this,zt,Wt);return zt==="readable"&&$.nextTick(It,this),xt},vt.prototype.removeAllListeners=function(zt){var Wt=et.prototype.removeAllListeners.apply(this,arguments);return zt!=="readable"&&zt!==void 0||$.nextTick(It,this),Wt},vt.prototype.resume=function(){var zt=this._readableState;return zt.flowing||(lt("resume"),zt.flowing=!zt.readableListening,function(Wt,xt){xt.resumeScheduled||(xt.resumeScheduled=!0,$.nextTick(gt,Wt,xt))}(this,zt)),zt.paused=!1,this},vt.prototype.pause=function(){return lt("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(lt("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},vt.prototype.wrap=function(zt){var Wt=this,xt=this._readableState,Pt=!1;for(var $t in zt.on("end",function(){if(lt("wrapped end"),xt.decoder&&!xt.ended){var Zt=xt.decoder.end();Zt&&Zt.length&&Wt.push(Zt)}Wt.push(null)}),zt.on("data",function(Zt){lt("wrapped data"),xt.decoder&&(Zt=xt.decoder.write(Zt)),xt.objectMode&&Zt==null||(xt.objectMode||Zt&&Zt.length)&&(Wt.push(Zt)||(Pt=!0,zt.pause()))}),zt)this[$t]===void 0&&typeof zt[$t]=="function"&&(this[$t]=function(Zt){return function(){return zt[Zt].apply(zt,arguments)}}($t));for(var en=0;en-1))throw new Ct(Ot);return this._writableState.defaultEncoding=Ot,this},Object.defineProperty(vt.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(vt.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),vt.prototype._write=function(Ot,It,St){St(new mt("_write()"))},vt.prototype._writev=null,vt.prototype.end=function(Ot,It,St){var gt=this._writableState;return typeof Ot=="function"?(St=Ot,Ot=null,It=null):typeof It=="function"&&(St=It,It=null),Ot!=null&&this.write(Ot,It),gt.corked&&(gt.corked=1,this.uncork()),gt.ending||function(Bt,Dt,Yt){Dt.ending=!0,Rt(Bt,Dt),Yt&&(Dt.finished?$.nextTick(Yt):Bt.once("finish",Yt)),Dt.ended=!0,Bt.writable=!1}(this,gt,St),this},Object.defineProperty(vt.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(vt.prototype,"destroyed",{enumerable:!1,get:function(){return this._writableState!==void 0&&this._writableState.destroyed},set:function(Ot){this._writableState&&(this._writableState.destroyed=Ot)}}),vt.prototype.destroy=at.destroy,vt.prototype._undestroy=at.undestroy,vt.prototype._destroy=function(Ot,It){It(Ot)}}).call(this,s(5),s(2))},function(o,i,s){o.exports=lt;var j=s(24).codes,$=j.ERR_METHOD_NOT_IMPLEMENTED,_e=j.ERR_MULTIPLE_CALLBACK,tt=j.ERR_TRANSFORM_ALREADY_TRANSFORMING,et=j.ERR_TRANSFORM_WITH_LENGTH_0,rt=s(25);function ot(ct,st){var ut=this._transformState;ut.transforming=!1;var mt=ut.writecb;if(mt===null)return this.emit("error",new _e);ut.writechunk=null,ut.writecb=null,st!=null&&this.push(st),mt(ct);var bt=this._readableState;bt.reading=!1,(bt.needReadable||bt.lengthdt._pos){var st=ct.substr(dt._pos);if(dt._charset==="x-user-defined"){for(var ut=new $(st.length),mt=0;mtdt._pos&&(dt.push(new $(new Uint8Array(bt.result.slice(dt._pos)))),dt._pos=bt.result.byteLength)},bt.onload=function(){dt.push(null)},bt.readAsArrayBuffer(ct)}dt._xhr.readyState===ot.DONE&&dt._mode!=="ms-stream"&&dt.push(null)}}).call(this,s(2),s(4).Buffer,s(5))},function(o,i,s){const j=$=>$!==null&&typeof $=="object"&&typeof $.pipe=="function";j.writable=$=>j($)&&$.writable!==!1&&typeof $._write=="function"&&typeof $._writableState=="object",j.readable=$=>j($)&&$.readable!==!1&&typeof $._read=="function"&&typeof $._readableState=="object",j.duplex=$=>j.writable($)&&j.readable($),j.transform=$=>j.duplex($)&&typeof $._transform=="function"&&typeof $._transformState=="object",o.exports=j},function(o,i,s){function j(ut){return(j=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(mt){return typeof mt}:function(mt){return mt&&typeof Symbol=="function"&&mt.constructor===Symbol&&mt!==Symbol.prototype?"symbol":typeof mt})(ut)}function $(ut,mt){if(!(ut instanceof mt))throw new TypeError("Cannot call a class as a function")}function _e(ut,mt){if(typeof mt!="function"&&mt!==null)throw new TypeError("Super expression must either be null or a function");ut.prototype=Object.create(mt&&mt.prototype,{constructor:{value:ut,writable:!0,configurable:!0}}),mt&&tt(ut,mt)}function tt(ut,mt){return(tt=Object.setPrototypeOf||function(bt,Tt){return bt.__proto__=Tt,bt})(ut,mt)}function et(ut){var mt=function(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}();return function(){var bt,Tt=ot(ut);if(mt){var ht=ot(this).constructor;bt=Reflect.construct(Tt,arguments,ht)}else bt=Tt.apply(this,arguments);return rt(this,bt)}}function rt(ut,mt){return!mt||j(mt)!=="object"&&typeof mt!="function"?function(bt){if(bt===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return bt}(ut):mt}function ot(ut){return(ot=Object.setPrototypeOf?Object.getPrototypeOf:function(mt){return mt.__proto__||Object.getPrototypeOf(mt)})(ut)}var lt=s(3).LEVEL,dt=s(47),at=s(201),ct=s(34)("winston:create-logger");function st(ut){return"is"+ut.charAt(0).toUpperCase()+ut.slice(1)+"Enabled"}o.exports=function(){var ut=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};ut.levels=ut.levels||dt.npm.levels;var mt=function(Tt){_e(yt,Tt);var ht=et(yt);function yt(ft){return $(this,yt),ht.call(this,ft)}return yt}(at),bt=new mt(ut);return Object.keys(ut.levels).forEach(function(Tt){ct('Define prototype method for "%s"',Tt),Tt!=="log"?(mt.prototype[Tt]=function(){for(var ht=this||bt,yt=arguments.length,ft=new Array(yt),Ct=0;Ct0){et=ot.substr(0,ct),rt=ot.substr(ct+1);var st=et.indexOf(".Module");st>0&&(ot=ot.substr(st+1),et=et.substr(0,st))}lt=null}rt&&(lt=et,dt=rt),rt===""&&(dt=null,ot=null);var ut={fileName:tt[2]||null,lineNumber:parseInt(tt[3],10)||null,functionName:ot,typeName:lt,methodName:dt,columnNumber:parseInt(tt[4],10)||null,native:at};return $._createParsedCallSite(ut)}}).filter(function(_e){return!!_e})},["this","typeName","functionName","methodName","fileName","lineNumber","columnNumber","function","evalOrigin"].forEach(function(j){s.prototype[j]=null,s.prototype["get"+j[0].toUpperCase()+j.substr(1)]=function(){return this[j]}}),["topLevel","eval","native","constructor"].forEach(function(j){s.prototype[j]=!1,s.prototype["is"+j[0].toUpperCase()+j.substr(1)]=function(){return this[j]}}),i._createParsedCallSite=function(j){return new s(j)}},function(o,i,s){function j(lt){return(j=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(dt){return typeof dt}:function(dt){return dt&&typeof Symbol=="function"&&dt.constructor===Symbol&&dt!==Symbol.prototype?"symbol":typeof dt})(lt)}function $(lt,dt){for(var at=0;at0&&et.writeString(1,rt)},proto.google.protobuf.StringValue.prototype.getValue=function(){return j.Message.getFieldWithDefault(this,1,"")},proto.google.protobuf.StringValue.prototype.setValue=function(tt){return j.Message.setProto3StringField(this,1,tt)},j.Message.GENERATE_TO_OBJECT&&(proto.google.protobuf.BytesValue.prototype.toObject=function(tt){return proto.google.protobuf.BytesValue.toObject(tt,this)},proto.google.protobuf.BytesValue.toObject=function(tt,et){var rt={value:et.getValue_asB64()};return tt&&(rt.$jspbMessageInstance=et),rt}),proto.google.protobuf.BytesValue.deserializeBinary=function(tt){var et=new j.BinaryReader(tt),rt=new proto.google.protobuf.BytesValue;return proto.google.protobuf.BytesValue.deserializeBinaryFromReader(rt,et)},proto.google.protobuf.BytesValue.deserializeBinaryFromReader=function(tt,et){for(;et.nextField()&&!et.isEndGroup();)switch(et.getFieldNumber()){case 1:var rt=et.readBytes();tt.setValue(rt);break;default:et.skipField()}return tt},proto.google.protobuf.BytesValue.prototype.serializeBinary=function(){var tt=new j.BinaryWriter;return proto.google.protobuf.BytesValue.serializeBinaryToWriter(this,tt),tt.getResultBuffer()},proto.google.protobuf.BytesValue.serializeBinaryToWriter=function(tt,et){var rt;(rt=tt.getValue_asU8()).length>0&&et.writeBytes(1,rt)},proto.google.protobuf.BytesValue.prototype.getValue=function(){return j.Message.getFieldWithDefault(this,1,"")},proto.google.protobuf.BytesValue.prototype.getValue_asB64=function(){return j.Message.bytesAsB64(this.getValue())},proto.google.protobuf.BytesValue.prototype.getValue_asU8=function(){return j.Message.bytesAsU8(this.getValue())},proto.google.protobuf.BytesValue.prototype.setValue=function(tt){return j.Message.setProto3BytesField(this,1,tt)},$.object.extend(i,proto.google.protobuf)},function(module,exports,__webpack_require__){(function(global,Buffer){var $jscomp=$jscomp||{};$jscomp.scope={},$jscomp.findInternal=function(o,i,s){o instanceof String&&(o=String(o));for(var j=o.length,$=0;$=$}},"es6","es3"),$jscomp.polyfill("Array.prototype.find",function(o){return o||function(i,s){return $jscomp.findInternal(this,i,s).v}},"es6","es3"),$jscomp.polyfill("String.prototype.startsWith",function(o){return o||function(i,s){var j=$jscomp.checkStringArgs(this,i,"startsWith");i+="";var $=j.length,_e=i.length;s=Math.max(0,Math.min(0|s,j.length));for(var tt=0;tt<_e&&s<$;)if(j[s++]!=i[tt++])return!1;return tt>=_e}},"es6","es3"),$jscomp.polyfill("String.prototype.repeat",function(o){return o||function(i){var s=$jscomp.checkStringArgs(this,null,"repeat");if(0>i||1342177279>>=1)&&(s+=s);return j}},"es6","es3");var COMPILED=!0,goog=goog||{};goog.global=this||self,goog.isDef=function(o){return o!==void 0},goog.isString=function(o){return typeof o=="string"},goog.isBoolean=function(o){return typeof o=="boolean"},goog.isNumber=function(o){return typeof o=="number"},goog.exportPath_=function(o,i,s){o=o.split("."),s=s||goog.global,o[0]in s||s.execScript===void 0||s.execScript("var "+o[0]);for(var j;o.length&&(j=o.shift());)!o.length&&goog.isDef(i)?s[j]=i:s=s[j]&&s[j]!==Object.prototype[j]?s[j]:s[j]={}},goog.define=function(o,i){return i},goog.FEATURESET_YEAR=2012,goog.DEBUG=!0,goog.LOCALE="en",goog.TRUSTED_SITE=!0,goog.STRICT_MODE_COMPATIBLE=!1,goog.DISALLOW_TEST_ONLY_CODE=!goog.DEBUG,goog.ENABLE_CHROME_APP_SAFE_SCRIPT_LOADING=!1,goog.provide=function(o){if(goog.isInModuleLoader_())throw Error("goog.provide cannot be used within a module.");goog.constructNamespace_(o)},goog.constructNamespace_=function(o,i){goog.exportPath_(o,i)},goog.getScriptNonce=function(o){return o&&o!=goog.global?goog.getScriptNonce_(o.document):(goog.cspNonce_===null&&(goog.cspNonce_=goog.getScriptNonce_(goog.global.document)),goog.cspNonce_)},goog.NONCE_PATTERN_=/^[\w+/_-]+[=]{0,2}$/,goog.cspNonce_=null,goog.getScriptNonce_=function(o){return(o=o.querySelector&&o.querySelector("script[nonce]"))&&(o=o.nonce||o.getAttribute("nonce"))&&goog.NONCE_PATTERN_.test(o)?o:""},goog.VALID_MODULE_RE_=/^[a-zA-Z_$][a-zA-Z0-9._$]*$/,goog.module=function(o){if(!goog.isString(o)||!o||o.search(goog.VALID_MODULE_RE_)==-1)throw Error("Invalid module identifier");if(!goog.isInGoogModuleLoader_())throw Error("Module "+o+" has been loaded incorrectly. Note, modules cannot be loaded as normal scripts. They require some kind of pre-processing step. You're likely trying to load a module via a script tag or as a part of a concatenated bundle without rewriting the module. For more info see: https://github.com/google/closure-library/wiki/goog.module:-an-ES6-module-like-alternative-to-goog.provide.");if(goog.moduleLoaderState_.moduleName)throw Error("goog.module may only be called once per module.");goog.moduleLoaderState_.moduleName=o},goog.module.get=function(o){return goog.module.getInternal_(o)},goog.module.getInternal_=function(o){return null},goog.ModuleType={ES6:"es6",GOOG:"goog"},goog.moduleLoaderState_=null,goog.isInModuleLoader_=function(){return goog.isInGoogModuleLoader_()||goog.isInEs6ModuleLoader_()},goog.isInGoogModuleLoader_=function(){return!!goog.moduleLoaderState_&&goog.moduleLoaderState_.type==goog.ModuleType.GOOG},goog.isInEs6ModuleLoader_=function(){if(goog.moduleLoaderState_&&goog.moduleLoaderState_.type==goog.ModuleType.ES6)return!0;var o=goog.global.$jscomp;return!!o&&typeof o.getCurrentModulePath=="function"&&!!o.getCurrentModulePath()},goog.module.declareLegacyNamespace=function(){goog.moduleLoaderState_.declareLegacyNamespace=!0},goog.declareModuleId=function(o){if(goog.moduleLoaderState_)goog.moduleLoaderState_.moduleName=o;else{var i=goog.global.$jscomp;if(!i||typeof i.getCurrentModulePath!="function")throw Error('Module with namespace "'+o+'" has been loaded incorrectly.');i=i.require(i.getCurrentModulePath()),goog.loadedModules_[o]={exports:i,type:goog.ModuleType.ES6,moduleId:o}}},goog.setTestOnly=function(o){if(goog.DISALLOW_TEST_ONLY_CODE)throw o=o||"",Error("Importing test-only code into non-debug environment"+(o?": "+o:"."))},goog.forwardDeclare=function(o){},goog.getObjectByName=function(o,i){o=o.split("."),i=i||goog.global;for(var s=0;s>>0),goog.uidCounter_=0,goog.getHashCode=goog.getUid,goog.removeHashCode=goog.removeUid,goog.cloneObject=function(o){var i=goog.typeOf(o);if(i=="object"||i=="array"){if(typeof o.clone=="function")return o.clone();for(var s in i=i=="array"?[]:{},o)i[s]=goog.cloneObject(o[s]);return i}return o},goog.bindNative_=function(o,i,s){return o.call.apply(o.bind,arguments)},goog.bindJs_=function(o,i,s){if(!o)throw Error();if(2s?Math.max(0,o.length+s):s,goog.isString(o))return goog.isString(i)&&i.length==1?o.indexOf(i,s):-1;for(;s(s=s==null?o.length-1:s)&&(s=Math.max(0,o.length+s)),goog.isString(o))return goog.isString(i)&&i.length==1?o.lastIndexOf(i,s):-1;for(;0<=s;s--)if(s in o&&o[s]===i)return s;return-1},goog.array.forEach=goog.NATIVE_ARRAY_PROTOTYPES&&(goog.array.ASSUME_NATIVE_FUNCTIONS||Array.prototype.forEach)?function(o,i,s){goog.asserts.assert(o.length!=null),Array.prototype.forEach.call(o,i,s)}:function(o,i,s){for(var j=o.length,$=goog.isString(o)?o.split(""):o,_e=0;_e(i=goog.array.findIndex(o,i,s))?null:goog.isString(o)?o.charAt(i):o[i]},goog.array.findIndex=function(o,i,s){for(var j=o.length,$=goog.isString(o)?o.split(""):o,_e=0;_e(i=goog.array.findIndexRight(o,i,s))?null:goog.isString(o)?o.charAt(i):o[i]},goog.array.findIndexRight=function(o,i,s){var j=o.length,$=goog.isString(o)?o.split(""):o;for(--j;0<=j;j--)if(j in $&&i.call(s,$[j],j,o))return j;return-1},goog.array.contains=function(o,i){return 0<=goog.array.indexOf(o,i)},goog.array.isEmpty=function(o){return o.length==0},goog.array.clear=function(o){if(!goog.isArray(o))for(var i=o.length-1;0<=i;i--)delete o[i];o.length=0},goog.array.insert=function(o,i){goog.array.contains(o,i)||o.push(i)},goog.array.insertAt=function(o,i,s){goog.array.splice(o,s,0,i)},goog.array.insertArrayAt=function(o,i,s){goog.partial(goog.array.splice,o,s,0).apply(null,i)},goog.array.insertBefore=function(o,i,s){var j;arguments.length==2||0>(j=goog.array.indexOf(o,s))?o.push(i):goog.array.insertAt(o,i,j)},goog.array.remove=function(o,i){var s;return(s=0<=(i=goog.array.indexOf(o,i)))&&goog.array.removeAt(o,i),s},goog.array.removeLast=function(o,i){return 0<=(i=goog.array.lastIndexOf(o,i))&&(goog.array.removeAt(o,i),!0)},goog.array.removeAt=function(o,i){return goog.asserts.assert(o.length!=null),Array.prototype.splice.call(o,i,1).length==1},goog.array.removeIf=function(o,i,s){return 0<=(i=goog.array.findIndex(o,i,s))&&(goog.array.removeAt(o,i),!0)},goog.array.removeAllIf=function(o,i,s){var j=0;return goog.array.forEachRight(o,function($,_e){i.call(s,$,_e,o)&&goog.array.removeAt(o,_e)&&j++}),j},goog.array.concat=function(o){return Array.prototype.concat.apply([],arguments)},goog.array.join=function(o){return Array.prototype.concat.apply([],arguments)},goog.array.toArray=function(o){var i=o.length;if(0=arguments.length?Array.prototype.slice.call(o,i):Array.prototype.slice.call(o,i,s)},goog.array.removeDuplicates=function(o,i,s){i=i||o;var j=function(rt){return goog.isObject(rt)?"o"+goog.getUid(rt):(typeof rt).charAt(0)+rt};s=s||j,j={};for(var $=0,_e=0;_e>1,ot=s?i.call($,o[rt],rt,o):i(j,o[rt]);0i?1:o(s=goog.array.binarySearch(o,i,s))&&(goog.array.insertAt(o,i,-(s+1)),!0)},goog.array.binaryRemove=function(o,i,s){return 0<=(i=goog.array.binarySearch(o,i,s))&&goog.array.removeAt(o,i)},goog.array.bucket=function(o,i,s){for(var j={},$=0;$(s=s||1)*(_e-$))return[];if(0_e;o+=s)j.push(o);return j},goog.array.repeat=function(o,i){for(var s=[],j=0;ji&&Array.prototype.push.apply(o,o.splice(0,-i))),o},goog.array.moveItem=function(o,i,s){goog.asserts.assert(0<=i&&i>=8),i[s++]=$}return i},goog.crypt.byteArrayToString=function(o){if(8192>=o.length)return String.fromCharCode.apply(null,o);for(var i="",s=0;s$?i[s++]=$:(2048>$?i[s++]=$>>6|192:((64512&$)==55296&&j+1>18|240,i[s++]=$>>12&63|128):i[s++]=$>>12|224,i[s++]=$>>6&63|128),i[s++]=63&$|128)}return i},goog.crypt.utf8ByteArrayToString=function(o){for(var i=[],s=0,j=0;s$)i[j++]=String.fromCharCode($);else if(191<$&&224>$){var _e=o[s++];i[j++]=String.fromCharCode((31&$)<<6|63&_e)}else if(239<$&&365>$){_e=o[s++];var tt=o[s++];$=((7&$)<<18|(63&_e)<<12|(63&tt)<<6|63&o[s++])-65536,i[j++]=String.fromCharCode(55296+($>>10)),i[j++]=String.fromCharCode(56320+(1023&$))}else _e=o[s++],tt=o[s++],i[j++]=String.fromCharCode((15&$)<<12|(63&_e)<<6|63&tt)}return i.join("")},goog.crypt.xorByteArray=function(o,i){goog.asserts.assert(o.length==i.length,"XOR array lengths must match");for(var s=[],j=0;j":"
")},goog.string.internal.htmlEscape=function(o,i){if(i)o=o.replace(goog.string.internal.AMP_RE_,"&").replace(goog.string.internal.LT_RE_,"<").replace(goog.string.internal.GT_RE_,">").replace(goog.string.internal.QUOT_RE_,""").replace(goog.string.internal.SINGLE_QUOTE_RE_,"'").replace(goog.string.internal.NULL_RE_,"�");else{if(!goog.string.internal.ALL_RE_.test(o))return o;o.indexOf("&")!=-1&&(o=o.replace(goog.string.internal.AMP_RE_,"&")),o.indexOf("<")!=-1&&(o=o.replace(goog.string.internal.LT_RE_,"<")),o.indexOf(">")!=-1&&(o=o.replace(goog.string.internal.GT_RE_,">")),o.indexOf('"')!=-1&&(o=o.replace(goog.string.internal.QUOT_RE_,""")),o.indexOf("'")!=-1&&(o=o.replace(goog.string.internal.SINGLE_QUOTE_RE_,"'")),o.indexOf("\0")!=-1&&(o=o.replace(goog.string.internal.NULL_RE_,"�"))}return o},goog.string.internal.AMP_RE_=/&/g,goog.string.internal.LT_RE_=//g,goog.string.internal.QUOT_RE_=/"/g,goog.string.internal.SINGLE_QUOTE_RE_=/'/g,goog.string.internal.NULL_RE_=/\x00/g,goog.string.internal.ALL_RE_=/[\x00&<>"']/,goog.string.internal.whitespaceEscape=function(o,i){return goog.string.internal.newLineToBr(o.replace(/ /g,"  "),i)},goog.string.internal.contains=function(o,i){return o.indexOf(i)!=-1},goog.string.internal.caseInsensitiveContains=function(o,i){return goog.string.internal.contains(o.toLowerCase(),i.toLowerCase())},goog.string.internal.compareVersions=function(o,i){var s=0;o=goog.string.internal.trim(String(o)).split("."),i=goog.string.internal.trim(String(i)).split(".");for(var j=Math.max(o.length,i.length),$=0;s==0&&$i?1:0},goog.string.TypedString=function(){},goog.string.Const=function(o,i){this.stringConstValueWithSecurityContract__googStringSecurityPrivate_=o===goog.string.Const.GOOG_STRING_CONSTRUCTOR_TOKEN_PRIVATE_&&i||"",this.STRING_CONST_TYPE_MARKER__GOOG_STRING_SECURITY_PRIVATE_=goog.string.Const.TYPE_MARKER_},goog.string.Const.prototype.implementsGoogStringTypedString=!0,goog.string.Const.prototype.getTypedStringValue=function(){return this.stringConstValueWithSecurityContract__googStringSecurityPrivate_},goog.string.Const.prototype.toString=function(){return"Const{"+this.stringConstValueWithSecurityContract__googStringSecurityPrivate_+"}"},goog.string.Const.unwrap=function(o){return o instanceof goog.string.Const&&o.constructor===goog.string.Const&&o.STRING_CONST_TYPE_MARKER__GOOG_STRING_SECURITY_PRIVATE_===goog.string.Const.TYPE_MARKER_?o.stringConstValueWithSecurityContract__googStringSecurityPrivate_:(goog.asserts.fail("expected object of type Const, got '"+o+"'"),"type_error:Const")},goog.string.Const.from=function(o){return new goog.string.Const(goog.string.Const.GOOG_STRING_CONSTRUCTOR_TOKEN_PRIVATE_,o)},goog.string.Const.TYPE_MARKER_={},goog.string.Const.GOOG_STRING_CONSTRUCTOR_TOKEN_PRIVATE_={},goog.string.Const.EMPTY=goog.string.Const.from(""),goog.fs={},goog.fs.url={},goog.fs.url.createObjectUrl=function(o){return goog.fs.url.getUrlObject_().createObjectURL(o)},goog.fs.url.revokeObjectUrl=function(o){goog.fs.url.getUrlObject_().revokeObjectURL(o)},goog.fs.url.getUrlObject_=function(){var o=goog.fs.url.findUrlObject_();if(o!=null)return o;throw Error("This browser doesn't seem to support blob URLs")},goog.fs.url.findUrlObject_=function(){return goog.isDef(goog.global.URL)&&goog.isDef(goog.global.URL.createObjectURL)?goog.global.URL:goog.isDef(goog.global.webkitURL)&&goog.isDef(goog.global.webkitURL.createObjectURL)?goog.global.webkitURL:goog.isDef(goog.global.createObjectURL)?goog.global:null},goog.fs.url.browserSupportsObjectUrls=function(){return goog.fs.url.findUrlObject_()!=null},goog.html={},goog.html.trustedtypes={},goog.html.trustedtypes.PRIVATE_DO_NOT_ACCESS_OR_ELSE_POLICY=goog.TRUSTED_TYPES_POLICY_NAME?goog.createTrustedTypesPolicy(goog.TRUSTED_TYPES_POLICY_NAME+"#html"):null,goog.i18n={},goog.i18n.bidi={},goog.i18n.bidi.FORCE_RTL=!1,goog.i18n.bidi.IS_RTL=goog.i18n.bidi.FORCE_RTL||(goog.LOCALE.substring(0,2).toLowerCase()=="ar"||goog.LOCALE.substring(0,2).toLowerCase()=="fa"||goog.LOCALE.substring(0,2).toLowerCase()=="he"||goog.LOCALE.substring(0,2).toLowerCase()=="iw"||goog.LOCALE.substring(0,2).toLowerCase()=="ps"||goog.LOCALE.substring(0,2).toLowerCase()=="sd"||goog.LOCALE.substring(0,2).toLowerCase()=="ug"||goog.LOCALE.substring(0,2).toLowerCase()=="ur"||goog.LOCALE.substring(0,2).toLowerCase()=="yi")&&(goog.LOCALE.length==2||goog.LOCALE.substring(2,3)=="-"||goog.LOCALE.substring(2,3)=="_")||3<=goog.LOCALE.length&&goog.LOCALE.substring(0,3).toLowerCase()=="ckb"&&(goog.LOCALE.length==3||goog.LOCALE.substring(3,4)=="-"||goog.LOCALE.substring(3,4)=="_")||7<=goog.LOCALE.length&&(goog.LOCALE.substring(2,3)=="-"||goog.LOCALE.substring(2,3)=="_")&&(goog.LOCALE.substring(3,7).toLowerCase()=="adlm"||goog.LOCALE.substring(3,7).toLowerCase()=="arab"||goog.LOCALE.substring(3,7).toLowerCase()=="hebr"||goog.LOCALE.substring(3,7).toLowerCase()=="nkoo"||goog.LOCALE.substring(3,7).toLowerCase()=="rohg"||goog.LOCALE.substring(3,7).toLowerCase()=="thaa")||8<=goog.LOCALE.length&&(goog.LOCALE.substring(3,4)=="-"||goog.LOCALE.substring(3,4)=="_")&&(goog.LOCALE.substring(4,8).toLowerCase()=="adlm"||goog.LOCALE.substring(4,8).toLowerCase()=="arab"||goog.LOCALE.substring(4,8).toLowerCase()=="hebr"||goog.LOCALE.substring(4,8).toLowerCase()=="nkoo"||goog.LOCALE.substring(4,8).toLowerCase()=="rohg"||goog.LOCALE.substring(4,8).toLowerCase()=="thaa"),goog.i18n.bidi.Format={LRE:"\u202A",RLE:"\u202B",PDF:"\u202C",LRM:"\u200E",RLM:"\u200F"},goog.i18n.bidi.Dir={LTR:1,RTL:-1,NEUTRAL:0},goog.i18n.bidi.RIGHT="right",goog.i18n.bidi.LEFT="left",goog.i18n.bidi.I18N_RIGHT=goog.i18n.bidi.IS_RTL?goog.i18n.bidi.LEFT:goog.i18n.bidi.RIGHT,goog.i18n.bidi.I18N_LEFT=goog.i18n.bidi.IS_RTL?goog.i18n.bidi.RIGHT:goog.i18n.bidi.LEFT,goog.i18n.bidi.toDir=function(o,i){return typeof o=="number"?0o?goog.i18n.bidi.Dir.RTL:i?null:goog.i18n.bidi.Dir.NEUTRAL:o==null?null:o?goog.i18n.bidi.Dir.RTL:goog.i18n.bidi.Dir.LTR},goog.i18n.bidi.ltrChars_="A-Za-z\xC0-\xD6\xD8-\xF6\xF8-\u02B8\u0300-\u0590\u0900-\u1FFF\u200E\u2C00-\uD801\uD804-\uD839\uD83C-\uDBFF\uF900-\uFB1C\uFE00-\uFE6F\uFEFD-\uFFFF",goog.i18n.bidi.rtlChars_="\u0591-\u06EF\u06FA-\u08FF\u200F\uD802-\uD803\uD83A-\uD83B\uFB1D-\uFDFF\uFE70-\uFEFC",goog.i18n.bidi.htmlSkipReg_=/<[^>]*>|&[^;]+;/g,goog.i18n.bidi.stripHtmlIfNeeded_=function(o,i){return i?o.replace(goog.i18n.bidi.htmlSkipReg_,""):o},goog.i18n.bidi.rtlCharReg_=new RegExp("["+goog.i18n.bidi.rtlChars_+"]"),goog.i18n.bidi.ltrCharReg_=new RegExp("["+goog.i18n.bidi.ltrChars_+"]"),goog.i18n.bidi.hasAnyRtl=function(o,i){return goog.i18n.bidi.rtlCharReg_.test(goog.i18n.bidi.stripHtmlIfNeeded_(o,i))},goog.i18n.bidi.hasRtlChar=goog.i18n.bidi.hasAnyRtl,goog.i18n.bidi.hasAnyLtr=function(o,i){return goog.i18n.bidi.ltrCharReg_.test(goog.i18n.bidi.stripHtmlIfNeeded_(o,i))},goog.i18n.bidi.ltrRe_=new RegExp("^["+goog.i18n.bidi.ltrChars_+"]"),goog.i18n.bidi.rtlRe_=new RegExp("^["+goog.i18n.bidi.rtlChars_+"]"),goog.i18n.bidi.isRtlChar=function(o){return goog.i18n.bidi.rtlRe_.test(o)},goog.i18n.bidi.isLtrChar=function(o){return goog.i18n.bidi.ltrRe_.test(o)},goog.i18n.bidi.isNeutralChar=function(o){return!goog.i18n.bidi.isLtrChar(o)&&!goog.i18n.bidi.isRtlChar(o)},goog.i18n.bidi.ltrDirCheckRe_=new RegExp("^[^"+goog.i18n.bidi.rtlChars_+"]*["+goog.i18n.bidi.ltrChars_+"]"),goog.i18n.bidi.rtlDirCheckRe_=new RegExp("^[^"+goog.i18n.bidi.ltrChars_+"]*["+goog.i18n.bidi.rtlChars_+"]"),goog.i18n.bidi.startsWithRtl=function(o,i){return goog.i18n.bidi.rtlDirCheckRe_.test(goog.i18n.bidi.stripHtmlIfNeeded_(o,i))},goog.i18n.bidi.isRtlText=goog.i18n.bidi.startsWithRtl,goog.i18n.bidi.startsWithLtr=function(o,i){return goog.i18n.bidi.ltrDirCheckRe_.test(goog.i18n.bidi.stripHtmlIfNeeded_(o,i))},goog.i18n.bidi.isLtrText=goog.i18n.bidi.startsWithLtr,goog.i18n.bidi.isRequiredLtrRe_=/^http:\/\/.*/,goog.i18n.bidi.isNeutralText=function(o,i){return o=goog.i18n.bidi.stripHtmlIfNeeded_(o,i),goog.i18n.bidi.isRequiredLtrRe_.test(o)||!goog.i18n.bidi.hasAnyLtr(o)&&!goog.i18n.bidi.hasAnyRtl(o)},goog.i18n.bidi.ltrExitDirCheckRe_=new RegExp("["+goog.i18n.bidi.ltrChars_+"][^"+goog.i18n.bidi.rtlChars_+"]*$"),goog.i18n.bidi.rtlExitDirCheckRe_=new RegExp("["+goog.i18n.bidi.rtlChars_+"][^"+goog.i18n.bidi.ltrChars_+"]*$"),goog.i18n.bidi.endsWithLtr=function(o,i){return goog.i18n.bidi.ltrExitDirCheckRe_.test(goog.i18n.bidi.stripHtmlIfNeeded_(o,i))},goog.i18n.bidi.isLtrExitText=goog.i18n.bidi.endsWithLtr,goog.i18n.bidi.endsWithRtl=function(o,i){return goog.i18n.bidi.rtlExitDirCheckRe_.test(goog.i18n.bidi.stripHtmlIfNeeded_(o,i))},goog.i18n.bidi.isRtlExitText=goog.i18n.bidi.endsWithRtl,goog.i18n.bidi.rtlLocalesRe_=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i,goog.i18n.bidi.isRtlLanguage=function(o){return goog.i18n.bidi.rtlLocalesRe_.test(o)},goog.i18n.bidi.bracketGuardTextRe_=/(\(.*?\)+)|(\[.*?\]+)|(\{.*?\}+)|(<.*?>+)/g,goog.i18n.bidi.guardBracketInText=function(o,i){return i=(i===void 0?goog.i18n.bidi.hasAnyRtl(o):i)?goog.i18n.bidi.Format.RLM:goog.i18n.bidi.Format.LRM,o.replace(goog.i18n.bidi.bracketGuardTextRe_,i+"$&"+i)},goog.i18n.bidi.enforceRtlInHtml=function(o){return o.charAt(0)=="<"?o.replace(/<\w+/,"$& dir=rtl"):` -`+o+""},goog.i18n.bidi.enforceRtlInText=function(o){return goog.i18n.bidi.Format.RLE+o+goog.i18n.bidi.Format.PDF},goog.i18n.bidi.enforceLtrInHtml=function(o){return o.charAt(0)=="<"?o.replace(/<\w+/,"$& dir=ltr"):` -`+o+""},goog.i18n.bidi.enforceLtrInText=function(o){return goog.i18n.bidi.Format.LRE+o+goog.i18n.bidi.Format.PDF},goog.i18n.bidi.dimensionsRe_=/:\s*([.\d][.\w]*)\s+([.\d][.\w]*)\s+([.\d][.\w]*)\s+([.\d][.\w]*)/g,goog.i18n.bidi.leftRe_=/left/gi,goog.i18n.bidi.rightRe_=/right/gi,goog.i18n.bidi.tempRe_=/%%%%/g,goog.i18n.bidi.mirrorCSS=function(o){return o.replace(goog.i18n.bidi.dimensionsRe_,":$1 $4 $3 $2").replace(goog.i18n.bidi.leftRe_,"%%%%").replace(goog.i18n.bidi.rightRe_,goog.i18n.bidi.LEFT).replace(goog.i18n.bidi.tempRe_,goog.i18n.bidi.RIGHT)},goog.i18n.bidi.doubleQuoteSubstituteRe_=/([\u0591-\u05f2])"/g,goog.i18n.bidi.singleQuoteSubstituteRe_=/([\u0591-\u05f2])'/g,goog.i18n.bidi.normalizeHebrewQuote=function(o){return o.replace(goog.i18n.bidi.doubleQuoteSubstituteRe_,"$1\u05F4").replace(goog.i18n.bidi.singleQuoteSubstituteRe_,"$1\u05F3")},goog.i18n.bidi.wordSeparatorRe_=/\s+/,goog.i18n.bidi.hasNumeralsRe_=/[\d\u06f0-\u06f9]/,goog.i18n.bidi.rtlDetectionThreshold_=.4,goog.i18n.bidi.estimateDirection=function(o,i){var s=0,j=0,$=!1;for(o=goog.i18n.bidi.stripHtmlIfNeeded_(o,i).split(goog.i18n.bidi.wordSeparatorRe_),i=0;igoog.i18n.bidi.rtlDetectionThreshold_?goog.i18n.bidi.Dir.RTL:goog.i18n.bidi.Dir.LTR},goog.i18n.bidi.detectRtlDirectionality=function(o,i){return goog.i18n.bidi.estimateDirection(o,i)==goog.i18n.bidi.Dir.RTL},goog.i18n.bidi.setElementDirAndAlign=function(o,i){o&&(i=goog.i18n.bidi.toDir(i))&&(o.style.textAlign=i==goog.i18n.bidi.Dir.RTL?goog.i18n.bidi.RIGHT:goog.i18n.bidi.LEFT,o.dir=i==goog.i18n.bidi.Dir.RTL?"rtl":"ltr")},goog.i18n.bidi.setElementDirByTextDirectionality=function(o,i){switch(goog.i18n.bidi.estimateDirection(i)){case goog.i18n.bidi.Dir.LTR:o.dir="ltr";break;case goog.i18n.bidi.Dir.RTL:o.dir="rtl";break;default:o.removeAttribute("dir")}},goog.i18n.bidi.DirectionalString=function(){},goog.html.TrustedResourceUrl=function(){this.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue_="",this.trustedURL_=null,this.TRUSTED_RESOURCE_URL_TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_=goog.html.TrustedResourceUrl.TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_},goog.html.TrustedResourceUrl.prototype.implementsGoogStringTypedString=!0,goog.html.TrustedResourceUrl.prototype.getTypedStringValue=function(){return this.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue_.toString()},goog.html.TrustedResourceUrl.prototype.implementsGoogI18nBidiDirectionalString=!0,goog.html.TrustedResourceUrl.prototype.getDirection=function(){return goog.i18n.bidi.Dir.LTR},goog.html.TrustedResourceUrl.prototype.cloneWithParams=function(o,i){var s=goog.html.TrustedResourceUrl.unwrap(this),j=(s=goog.html.TrustedResourceUrl.URL_PARAM_PARSER_.exec(s))[3]||"";return goog.html.TrustedResourceUrl.createTrustedResourceUrlSecurityPrivateDoNotAccessOrElse(s[1]+goog.html.TrustedResourceUrl.stringifyParams_("?",s[2]||"",o)+goog.html.TrustedResourceUrl.stringifyParams_("#",j,i))},goog.DEBUG&&(goog.html.TrustedResourceUrl.prototype.toString=function(){return"TrustedResourceUrl{"+this.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue_+"}"}),goog.html.TrustedResourceUrl.unwrap=function(o){return goog.html.TrustedResourceUrl.unwrapTrustedScriptURL(o).toString()},goog.html.TrustedResourceUrl.unwrapTrustedScriptURL=function(o){return o instanceof goog.html.TrustedResourceUrl&&o.constructor===goog.html.TrustedResourceUrl&&o.TRUSTED_RESOURCE_URL_TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_===goog.html.TrustedResourceUrl.TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_?o.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue_:(goog.asserts.fail("expected object of type TrustedResourceUrl, got '"+o+"' of type "+goog.typeOf(o)),"type_error:TrustedResourceUrl")},goog.html.TrustedResourceUrl.unwrapTrustedURL=function(o){return o.trustedURL_?o.trustedURL_:goog.html.TrustedResourceUrl.unwrap(o)},goog.html.TrustedResourceUrl.format=function(o,i){var s=goog.string.Const.unwrap(o);if(!goog.html.TrustedResourceUrl.BASE_URL_.test(s))throw Error("Invalid TrustedResourceUrl format: "+s);return o=s.replace(goog.html.TrustedResourceUrl.FORMAT_MARKER_,function(j,$){if(!Object.prototype.hasOwnProperty.call(i,$))throw Error('Found marker, "'+$+'", in format string, "'+s+'", but no valid label mapping found in args: '+JSON.stringify(i));return(j=i[$])instanceof goog.string.Const?goog.string.Const.unwrap(j):encodeURIComponent(String(j))}),goog.html.TrustedResourceUrl.createTrustedResourceUrlSecurityPrivateDoNotAccessOrElse(o)},goog.html.TrustedResourceUrl.FORMAT_MARKER_=/%{(\w+)}/g,goog.html.TrustedResourceUrl.BASE_URL_=/^((https:)?\/\/[0-9a-z.:[\]-]+\/|\/[^/\\]|[^:/\\%]+\/|[^:/\\%]*[?#]|about:blank#)/i,goog.html.TrustedResourceUrl.URL_PARAM_PARSER_=/^([^?#]*)(\?[^#]*)?(#[\s\S]*)?/,goog.html.TrustedResourceUrl.formatWithParams=function(o,i,s,j){return goog.html.TrustedResourceUrl.format(o,i).cloneWithParams(s,j)},goog.html.TrustedResourceUrl.fromConstant=function(o){return goog.html.TrustedResourceUrl.createTrustedResourceUrlSecurityPrivateDoNotAccessOrElse(goog.string.Const.unwrap(o))},goog.html.TrustedResourceUrl.fromConstants=function(o){for(var i="",s=0;so.length?"&":"")+encodeURIComponent(j)+"="+encodeURIComponent(String(tt)))}}return i},goog.html.SafeUrl=function(){this.privateDoNotAccessOrElseSafeUrlWrappedValue_="",this.SAFE_URL_TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_=goog.html.SafeUrl.TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_},goog.html.SafeUrl.INNOCUOUS_STRING="about:invalid#zClosurez",goog.html.SafeUrl.prototype.implementsGoogStringTypedString=!0,goog.html.SafeUrl.prototype.getTypedStringValue=function(){return this.privateDoNotAccessOrElseSafeUrlWrappedValue_.toString()},goog.html.SafeUrl.prototype.implementsGoogI18nBidiDirectionalString=!0,goog.html.SafeUrl.prototype.getDirection=function(){return goog.i18n.bidi.Dir.LTR},goog.DEBUG&&(goog.html.SafeUrl.prototype.toString=function(){return"SafeUrl{"+this.privateDoNotAccessOrElseSafeUrlWrappedValue_+"}"}),goog.html.SafeUrl.unwrap=function(o){return goog.html.SafeUrl.unwrapTrustedURL(o).toString()},goog.html.SafeUrl.unwrapTrustedURL=function(o){return o instanceof goog.html.SafeUrl&&o.constructor===goog.html.SafeUrl&&o.SAFE_URL_TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_===goog.html.SafeUrl.TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_?o.privateDoNotAccessOrElseSafeUrlWrappedValue_:(goog.asserts.fail("expected object of type SafeUrl, got '"+o+"' of type "+goog.typeOf(o)),"type_error:SafeUrl")},goog.html.SafeUrl.fromConstant=function(o){return goog.html.SafeUrl.createSafeUrlSecurityPrivateDoNotAccessOrElse(goog.string.Const.unwrap(o))},goog.html.SAFE_MIME_TYPE_PATTERN_=/^(?:audio\/(?:3gpp2|3gpp|aac|L16|midi|mp3|mp4|mpeg|oga|ogg|opus|x-m4a|x-wav|wav|webm)|image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp|x-icon)|text\/csv|video\/(?:mpeg|mp4|ogg|webm|quicktime))(?:;\w+=(?:\w+|"[\w;=]+"))*$/i,goog.html.SafeUrl.isSafeMimeType=function(o){return goog.html.SAFE_MIME_TYPE_PATTERN_.test(o)},goog.html.SafeUrl.fromBlob=function(o){return o=goog.html.SAFE_MIME_TYPE_PATTERN_.test(o.type)?goog.fs.url.createObjectUrl(o):goog.html.SafeUrl.INNOCUOUS_STRING,goog.html.SafeUrl.createSafeUrlSecurityPrivateDoNotAccessOrElse(o)},goog.html.DATA_URL_PATTERN_=/^data:([^,]*);base64,[a-z0-9+\/]+=*$/i,goog.html.SafeUrl.fromDataUrl=function(o){var i=(o=o.replace(/(%0A|%0D)/g,"")).match(goog.html.DATA_URL_PATTERN_);return i=i&&goog.html.SAFE_MIME_TYPE_PATTERN_.test(i[1]),goog.html.SafeUrl.createSafeUrlSecurityPrivateDoNotAccessOrElse(i?o:goog.html.SafeUrl.INNOCUOUS_STRING)},goog.html.SafeUrl.fromTelUrl=function(o){return goog.string.internal.caseInsensitiveStartsWith(o,"tel:")||(o=goog.html.SafeUrl.INNOCUOUS_STRING),goog.html.SafeUrl.createSafeUrlSecurityPrivateDoNotAccessOrElse(o)},goog.html.SIP_URL_PATTERN_=/^sip[s]?:[+a-z0-9_.!$%&'*\/=^`{|}~-]+@([a-z0-9-]+\.)+[a-z0-9]{2,63}$/i,goog.html.SafeUrl.fromSipUrl=function(o){return goog.html.SIP_URL_PATTERN_.test(decodeURIComponent(o))||(o=goog.html.SafeUrl.INNOCUOUS_STRING),goog.html.SafeUrl.createSafeUrlSecurityPrivateDoNotAccessOrElse(o)},goog.html.SafeUrl.fromFacebookMessengerUrl=function(o){return goog.string.internal.caseInsensitiveStartsWith(o,"fb-messenger://share")||(o=goog.html.SafeUrl.INNOCUOUS_STRING),goog.html.SafeUrl.createSafeUrlSecurityPrivateDoNotAccessOrElse(o)},goog.html.SafeUrl.fromWhatsAppUrl=function(o){return goog.string.internal.caseInsensitiveStartsWith(o,"whatsapp://send")||(o=goog.html.SafeUrl.INNOCUOUS_STRING),goog.html.SafeUrl.createSafeUrlSecurityPrivateDoNotAccessOrElse(o)},goog.html.SafeUrl.fromSmsUrl=function(o){return goog.string.internal.caseInsensitiveStartsWith(o,"sms:")&&goog.html.SafeUrl.isSmsUrlBodyValid_(o)||(o=goog.html.SafeUrl.INNOCUOUS_STRING),goog.html.SafeUrl.createSafeUrlSecurityPrivateDoNotAccessOrElse(o)},goog.html.SafeUrl.isSmsUrlBodyValid_=function(o){var i=o.indexOf("#");if(0+~[\]()=^$|]+$/.test(s))throw Error("Selector allows only [-_a-zA-Z0-9#.:* ,>+~[\\]()=^$|] and strings, got: "+o);if(!goog.html.SafeStyleSheet.hasBalancedBrackets_(s))throw Error("() and [] in selector must be balanced, got: "+o);return i instanceof goog.html.SafeStyle||(i=goog.html.SafeStyle.create(i)),o=o+"{"+goog.html.SafeStyle.unwrap(i).replace(/.");if(o.toUpperCase()in goog.html.SafeHtml.NOT_ALLOWED_TAG_NAMES_)throw Error("Tag name <"+o+"> is not allowed for SafeHtml.")},goog.html.SafeHtml.createIframe=function(o,i,s,j){o&&goog.html.TrustedResourceUrl.unwrap(o);var $={};return $.src=o||null,$.srcdoc=i&&goog.html.SafeHtml.unwrap(i),o=goog.html.SafeHtml.combineAttributes($,{sandbox:""},s),goog.html.SafeHtml.createSafeHtmlTagSecurityPrivateDoNotAccessOrElse("iframe",o,j)},goog.html.SafeHtml.createSandboxIframe=function(o,i,s,j){if(!goog.html.SafeHtml.canUseSandboxIframe())throw Error("The browser does not support sandboxed iframes.");var $={};return $.src=o?goog.html.SafeUrl.unwrap(goog.html.SafeUrl.sanitize(o)):null,$.srcdoc=i||null,$.sandbox="",o=goog.html.SafeHtml.combineAttributes($,{},s),goog.html.SafeHtml.createSafeHtmlTagSecurityPrivateDoNotAccessOrElse("iframe",o,j)},goog.html.SafeHtml.canUseSandboxIframe=function(){return goog.global.HTMLIFrameElement&&"sandbox"in goog.global.HTMLIFrameElement.prototype},goog.html.SafeHtml.createScriptSrc=function(o,i){return goog.html.TrustedResourceUrl.unwrap(o),o=goog.html.SafeHtml.combineAttributes({src:o},{},i),goog.html.SafeHtml.createSafeHtmlTagSecurityPrivateDoNotAccessOrElse("script",o)},goog.html.SafeHtml.createScript=function(o,i){for(var s in i){var j=s.toLowerCase();if(j=="language"||j=="src"||j=="text"||j=="type")throw Error('Cannot set "'+j+'" attribute')}for(s="",o=goog.array.concat(o),j=0;j does not allow content."),$+=">"):(j=goog.html.SafeHtml.concat(s),$+=">"+goog.html.SafeHtml.unwrap(j)+"",j=j.getDirection()),(o=i&&i.dir)&&(j=/^(ltr|rtl|auto)$/i.test(o)?goog.i18n.bidi.Dir.NEUTRAL:null),goog.html.SafeHtml.createSafeHtmlSecurityPrivateDoNotAccessOrElse($,j)},goog.html.SafeHtml.stringifyAttributes=function(o,i){var s="";if(i)for(var j in i){if(!goog.html.SafeHtml.VALID_NAMES_IN_TAG_.test(j))throw Error('Invalid attribute name "'+j+'".');var $=i[j];goog.isDefAndNotNull($)&&(s+=" "+goog.html.SafeHtml.getAttrNameAndValue_(o,j,$))}return s},goog.html.SafeHtml.combineAttributes=function(o,i,s){var j,$={};for(j in o)goog.asserts.assert(j.toLowerCase()==j,"Must be lower case"),$[j]=o[j];for(j in i)goog.asserts.assert(j.toLowerCase()==j,"Must be lower case"),$[j]=i[j];for(j in s){var _e=j.toLowerCase();if(_e in o)throw Error('Cannot override "'+_e+'" attribute, got "'+j+'" with value "'+s[j]+'"');_e in i&&delete $[_e],$[j]=s[j]}return $},goog.html.SafeHtml.DOCTYPE_HTML=goog.html.SafeHtml.createSafeHtmlSecurityPrivateDoNotAccessOrElse("",goog.i18n.bidi.Dir.NEUTRAL),goog.html.SafeHtml.EMPTY=goog.html.SafeHtml.createSafeHtmlSecurityPrivateDoNotAccessOrElse("",goog.i18n.bidi.Dir.NEUTRAL),goog.html.SafeHtml.BR=goog.html.SafeHtml.createSafeHtmlSecurityPrivateDoNotAccessOrElse("
",goog.i18n.bidi.Dir.NEUTRAL),goog.html.uncheckedconversions={},goog.html.uncheckedconversions.safeHtmlFromStringKnownToSatisfyTypeContract=function(o,i,s){return goog.asserts.assertString(goog.string.Const.unwrap(o),"must provide justification"),goog.asserts.assert(!goog.string.internal.isEmptyOrWhitespace(goog.string.Const.unwrap(o)),"must provide non-empty justification"),goog.html.SafeHtml.createSafeHtmlSecurityPrivateDoNotAccessOrElse(i,s||null)},goog.html.uncheckedconversions.safeScriptFromStringKnownToSatisfyTypeContract=function(o,i){return goog.asserts.assertString(goog.string.Const.unwrap(o),"must provide justification"),goog.asserts.assert(!goog.string.internal.isEmptyOrWhitespace(goog.string.Const.unwrap(o)),"must provide non-empty justification"),goog.html.SafeScript.createSafeScriptSecurityPrivateDoNotAccessOrElse(i)},goog.html.uncheckedconversions.safeStyleFromStringKnownToSatisfyTypeContract=function(o,i){return goog.asserts.assertString(goog.string.Const.unwrap(o),"must provide justification"),goog.asserts.assert(!goog.string.internal.isEmptyOrWhitespace(goog.string.Const.unwrap(o)),"must provide non-empty justification"),goog.html.SafeStyle.createSafeStyleSecurityPrivateDoNotAccessOrElse(i)},goog.html.uncheckedconversions.safeStyleSheetFromStringKnownToSatisfyTypeContract=function(o,i){return goog.asserts.assertString(goog.string.Const.unwrap(o),"must provide justification"),goog.asserts.assert(!goog.string.internal.isEmptyOrWhitespace(goog.string.Const.unwrap(o)),"must provide non-empty justification"),goog.html.SafeStyleSheet.createSafeStyleSheetSecurityPrivateDoNotAccessOrElse(i)},goog.html.uncheckedconversions.safeUrlFromStringKnownToSatisfyTypeContract=function(o,i){return goog.asserts.assertString(goog.string.Const.unwrap(o),"must provide justification"),goog.asserts.assert(!goog.string.internal.isEmptyOrWhitespace(goog.string.Const.unwrap(o)),"must provide non-empty justification"),goog.html.SafeUrl.createSafeUrlSecurityPrivateDoNotAccessOrElse(i)},goog.html.uncheckedconversions.trustedResourceUrlFromStringKnownToSatisfyTypeContract=function(o,i){return goog.asserts.assertString(goog.string.Const.unwrap(o),"must provide justification"),goog.asserts.assert(!goog.string.internal.isEmptyOrWhitespace(goog.string.Const.unwrap(o)),"must provide non-empty justification"),goog.html.TrustedResourceUrl.createTrustedResourceUrlSecurityPrivateDoNotAccessOrElse(i)},goog.dom.asserts={},goog.dom.asserts.assertIsLocation=function(o){if(goog.asserts.ENABLE_ASSERTS){var i=goog.dom.asserts.getWindow_(o);i&&(!o||!(o instanceof i.Location)&&o instanceof i.Element)&&goog.asserts.fail("Argument is not a Location (or a non-Element mock); got: %s",goog.dom.asserts.debugStringForType_(o))}return o},goog.dom.asserts.assertIsElementType_=function(o,i){if(goog.asserts.ENABLE_ASSERTS){var s=goog.dom.asserts.getWindow_(o);s&&s[i]!==void 0&&(o&&(o instanceof s[i]||!(o instanceof s.Location||o instanceof s.Element))||goog.asserts.fail("Argument is not a %s (or a non-Element, non-Location mock); got: %s",i,goog.dom.asserts.debugStringForType_(o)))}return o},goog.dom.asserts.assertIsHTMLAnchorElement=function(o){return goog.dom.asserts.assertIsElementType_(o,"HTMLAnchorElement")},goog.dom.asserts.assertIsHTMLButtonElement=function(o){return goog.dom.asserts.assertIsElementType_(o,"HTMLButtonElement")},goog.dom.asserts.assertIsHTMLLinkElement=function(o){return goog.dom.asserts.assertIsElementType_(o,"HTMLLinkElement")},goog.dom.asserts.assertIsHTMLImageElement=function(o){return goog.dom.asserts.assertIsElementType_(o,"HTMLImageElement")},goog.dom.asserts.assertIsHTMLAudioElement=function(o){return goog.dom.asserts.assertIsElementType_(o,"HTMLAudioElement")},goog.dom.asserts.assertIsHTMLVideoElement=function(o){return goog.dom.asserts.assertIsElementType_(o,"HTMLVideoElement")},goog.dom.asserts.assertIsHTMLInputElement=function(o){return goog.dom.asserts.assertIsElementType_(o,"HTMLInputElement")},goog.dom.asserts.assertIsHTMLTextAreaElement=function(o){return goog.dom.asserts.assertIsElementType_(o,"HTMLTextAreaElement")},goog.dom.asserts.assertIsHTMLCanvasElement=function(o){return goog.dom.asserts.assertIsElementType_(o,"HTMLCanvasElement")},goog.dom.asserts.assertIsHTMLEmbedElement=function(o){return goog.dom.asserts.assertIsElementType_(o,"HTMLEmbedElement")},goog.dom.asserts.assertIsHTMLFormElement=function(o){return goog.dom.asserts.assertIsElementType_(o,"HTMLFormElement")},goog.dom.asserts.assertIsHTMLFrameElement=function(o){return goog.dom.asserts.assertIsElementType_(o,"HTMLFrameElement")},goog.dom.asserts.assertIsHTMLIFrameElement=function(o){return goog.dom.asserts.assertIsElementType_(o,"HTMLIFrameElement")},goog.dom.asserts.assertIsHTMLObjectElement=function(o){return goog.dom.asserts.assertIsElementType_(o,"HTMLObjectElement")},goog.dom.asserts.assertIsHTMLScriptElement=function(o){return goog.dom.asserts.assertIsElementType_(o,"HTMLScriptElement")},goog.dom.asserts.debugStringForType_=function(o){if(!goog.isObject(o))return o===void 0?"undefined":o===null?"null":typeof o;try{return o.constructor.displayName||o.constructor.name||Object.prototype.toString.call(o)}catch{return""}},goog.dom.asserts.getWindow_=function(o){try{var i=o&&o.ownerDocument,s=i&&(i.defaultView||i.parentWindow);if((s=s||goog.global).Element&&s.Location)return s}catch{}return null},goog.functions={},goog.functions.constant=function(o){return function(){return o}},goog.functions.FALSE=function(){return!1},goog.functions.TRUE=function(){return!0},goog.functions.NULL=function(){return null},goog.functions.identity=function(o,i){return o},goog.functions.error=function(o){return function(){throw Error(o)}},goog.functions.fail=function(o){return function(){throw o}},goog.functions.lock=function(o,i){return i=i||0,function(){return o.apply(this,Array.prototype.slice.call(arguments,0,i))}},goog.functions.nth=function(o){return function(){return arguments[o]}},goog.functions.partialRight=function(o,i){var s=Array.prototype.slice.call(arguments,1);return function(){var j=Array.prototype.slice.call(arguments);return j.push.apply(j,s),o.apply(this,j)}},goog.functions.withReturnValue=function(o,i){return goog.functions.sequence(o,goog.functions.constant(i))},goog.functions.equalTo=function(o,i){return function(s){return i?o==s:o===s}},goog.functions.compose=function(o,i){var s=arguments,j=s.length;return function(){var $;j&&($=s[j-1].apply(this,arguments));for(var _e=j-2;0<=_e;_e--)$=s[_e].call(this,$);return $}},goog.functions.sequence=function(o){var i=arguments,s=i.length;return function(){for(var j,$=0;$=o||"\x80"<=o&&"\uFFFD">=o},goog.string.stripNewlines=function(o){return o.replace(/(\r\n|\r|\n)+/g," ")},goog.string.canonicalizeNewlines=function(o){return o.replace(/(\r\n|\r|\n)/g,` -`)},goog.string.normalizeWhitespace=function(o){return o.replace(/\xa0|\s/g," ")},goog.string.normalizeSpaces=function(o){return o.replace(/\xa0|[ \t]+/g," ")},goog.string.collapseBreakingSpaces=function(o){return o.replace(/[\t\r\n ]+/g," ").replace(/^[\t\r\n ]+|[\t\r\n ]+$/g,"")},goog.string.trim=goog.string.internal.trim,goog.string.trimLeft=function(o){return o.replace(/^[\s\xa0]+/,"")},goog.string.trimRight=function(o){return o.replace(/[\s\xa0]+$/,"")},goog.string.caseInsensitiveCompare=goog.string.internal.caseInsensitiveCompare,goog.string.numberAwareCompare_=function(o,i,s){if(o==i)return 0;if(!o)return-1;if(!i)return 1;for(var j=o.toLowerCase().match(s),$=i.toLowerCase().match(s),_e=Math.min(j.length,$.length),tt=0;tt<_e;tt++){s=j[tt];var et=$[tt];if(s!=et)return o=parseInt(s,10),!isNaN(o)&&(i=parseInt(et,10),!isNaN(i)&&o-i)?o-i:s",""":'"'},j=i?i.createElement("div"):goog.global.document.createElement("div");return o.replace(goog.string.HTML_ENTITY_PATTERN_,function($,_e){var tt=s[$];return tt||(_e.charAt(0)=="#"&&(_e=Number("0"+_e.substr(1)),isNaN(_e)||(tt=String.fromCharCode(_e))),tt||(goog.dom.safe.setInnerHtml(j,goog.html.uncheckedconversions.safeHtmlFromStringKnownToSatisfyTypeContract(goog.string.Const.from("Single HTML entity."),$+" ")),tt=j.firstChild.nodeValue.slice(0,-1)),s[$]=tt)})},goog.string.unescapePureXmlEntities_=function(o){return o.replace(/&([^;]+);/g,function(i,s){switch(s){case"amp":return"&";case"lt":return"<";case"gt":return">";case"quot":return'"';default:return s.charAt(0)!="#"||(s=Number("0"+s.substr(1)),isNaN(s))?i:String.fromCharCode(s)}})},goog.string.HTML_ENTITY_PATTERN_=/&([^;\s<&]+);?/g,goog.string.whitespaceEscape=function(o,i){return goog.string.newLineToBr(o.replace(/ /g,"  "),i)},goog.string.preserveSpaces=function(o){return o.replace(/(^|[\n ]) /g,"$1"+goog.string.Unicode.NBSP)},goog.string.stripQuotes=function(o,i){for(var s=i.length,j=0;ji&&(o=o.substring(0,i-3)+"..."),s&&(o=goog.string.htmlEscape(o)),o},goog.string.truncateMiddle=function(o,i,s,j){if(s&&(o=goog.string.unescapeEntities(o)),j&&o.length>i){j>i&&(j=i);var $=o.length-j;o=o.substring(0,i-j)+"..."+o.substring($)}else o.length>i&&(j=Math.floor(i/2),$=o.length-j,o=o.substring(0,j+i%2)+"..."+o.substring($));return s&&(o=goog.string.htmlEscape(o)),o},goog.string.specialEscapeChars_={"\0":"\\0","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r"," ":"\\t","\v":"\\x0B",'"':'\\"',"\\":"\\\\","<":"\\u003C"},goog.string.jsEscapeCache_={"'":"\\'"},goog.string.quote=function(o){o=String(o);for(var i=['"'],s=0;s$?j:goog.string.escapeChar(j))}return i.push('"'),i.join("")},goog.string.escapeString=function(o){for(var i=[],s=0;si)var s=o;else 256>i?(s="\\x",(16>i||256i&&(s+="0")),s+=i.toString(16).toUpperCase();return goog.string.jsEscapeCache_[o]=s},goog.string.contains=goog.string.internal.contains,goog.string.caseInsensitiveContains=goog.string.internal.caseInsensitiveContains,goog.string.countOf=function(o,i){return o&&i?o.split(i).length-1:0},goog.string.removeAt=function(o,i,s){var j=o;return 0<=i&&i>>0;return i},goog.string.uniqueStringCounter_=2147483648*Math.random()|0,goog.string.createUniqueString=function(){return"goog_"+goog.string.uniqueStringCounter_++},goog.string.toNumber=function(o){var i=Number(o);return i==0&&goog.string.isEmptyOrWhitespace(o)?NaN:i},goog.string.isLowerCamelCase=function(o){return/^[a-z]+([A-Z][a-z]*)*$/.test(o)},goog.string.isUpperCamelCase=function(o){return/^([A-Z][a-z]*)+$/.test(o)},goog.string.toCamelCase=function(o){return String(o).replace(/\-([a-z])/g,function(i,s){return s.toUpperCase()})},goog.string.toSelectorCase=function(o){return String(o).replace(/([A-Z])/g,"-$1").toLowerCase()},goog.string.toTitleCase=function(o,i){return i=goog.isString(i)?goog.string.regExpEscape(i):"\\s",o.replace(new RegExp("(^"+(i?"|["+i+"]+":"")+")([a-z])","g"),function(s,j,$){return j+$.toUpperCase()})},goog.string.capitalize=function(o){return String(o.charAt(0)).toUpperCase()+String(o.substr(1)).toLowerCase()},goog.string.parseInt=function(o){return isFinite(o)&&(o=String(o)),goog.isString(o)?/^\s*-?0x/i.test(o)?parseInt(o,16):parseInt(o,10):NaN},goog.string.splitLimit=function(o,i,s){o=o.split(i);for(var j=[];0s&&(s=$)}return s==-1?o:o.slice(s+1)},goog.string.editDistance=function(o,i){var s=[],j=[];if(o==i)return 0;if(!o.length||!i.length)return Math.max(o.length,i.length);for(var $=0;$parseFloat(o)?String(i):o},goog.userAgent.getVersionRegexResult_=function(){var o=goog.userAgent.getUserAgentString();return goog.userAgent.GECKO?/rv:([^\);]+)(\)|;)/.exec(o):goog.userAgent.EDGE?/Edge\/([\d\.]+)/.exec(o):goog.userAgent.IE?/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(o):goog.userAgent.WEBKIT?/WebKit\/(\S+)/.exec(o):goog.userAgent.OPERA?/(?:Version)[ \/]?(\S+)/.exec(o):void 0},goog.userAgent.getDocumentMode_=function(){var o=goog.global.document;return o?o.documentMode:void 0},goog.userAgent.VERSION=goog.userAgent.determineVersion_(),goog.userAgent.compare=function(o,i){return goog.string.compareVersions(o,i)},goog.userAgent.isVersionOrHigherCache_={},goog.userAgent.isVersionOrHigher=function(o){return goog.userAgent.ASSUME_ANY_VERSION||goog.reflect.cache(goog.userAgent.isVersionOrHigherCache_,o,function(){return 0<=goog.string.compareVersions(goog.userAgent.VERSION,o)})},goog.userAgent.isVersion=goog.userAgent.isVersionOrHigher,goog.userAgent.isDocumentModeOrHigher=function(o){return Number(goog.userAgent.DOCUMENT_MODE)>=o},goog.userAgent.isDocumentMode=goog.userAgent.isDocumentModeOrHigher,goog.userAgent.DOCUMENT_MODE=function(){if(goog.global.document&&goog.userAgent.IE)return goog.userAgent.getDocumentMode_()}(),goog.userAgent.product={},goog.userAgent.product.ASSUME_FIREFOX=!1,goog.userAgent.product.ASSUME_IPHONE=!1,goog.userAgent.product.ASSUME_IPAD=!1,goog.userAgent.product.ASSUME_ANDROID=!1,goog.userAgent.product.ASSUME_CHROME=!1,goog.userAgent.product.ASSUME_SAFARI=!1,goog.userAgent.product.PRODUCT_KNOWN_=goog.userAgent.ASSUME_IE||goog.userAgent.ASSUME_EDGE||goog.userAgent.ASSUME_OPERA||goog.userAgent.product.ASSUME_FIREFOX||goog.userAgent.product.ASSUME_IPHONE||goog.userAgent.product.ASSUME_IPAD||goog.userAgent.product.ASSUME_ANDROID||goog.userAgent.product.ASSUME_CHROME||goog.userAgent.product.ASSUME_SAFARI,goog.userAgent.product.OPERA=goog.userAgent.OPERA,goog.userAgent.product.IE=goog.userAgent.IE,goog.userAgent.product.EDGE=goog.userAgent.EDGE,goog.userAgent.product.FIREFOX=goog.userAgent.product.PRODUCT_KNOWN_?goog.userAgent.product.ASSUME_FIREFOX:goog.labs.userAgent.browser.isFirefox(),goog.userAgent.product.isIphoneOrIpod_=function(){return goog.labs.userAgent.platform.isIphone()||goog.labs.userAgent.platform.isIpod()},goog.userAgent.product.IPHONE=goog.userAgent.product.PRODUCT_KNOWN_?goog.userAgent.product.ASSUME_IPHONE:goog.userAgent.product.isIphoneOrIpod_(),goog.userAgent.product.IPAD=goog.userAgent.product.PRODUCT_KNOWN_?goog.userAgent.product.ASSUME_IPAD:goog.labs.userAgent.platform.isIpad(),goog.userAgent.product.ANDROID=goog.userAgent.product.PRODUCT_KNOWN_?goog.userAgent.product.ASSUME_ANDROID:goog.labs.userAgent.browser.isAndroidBrowser(),goog.userAgent.product.CHROME=goog.userAgent.product.PRODUCT_KNOWN_?goog.userAgent.product.ASSUME_CHROME:goog.labs.userAgent.browser.isChrome(),goog.userAgent.product.isSafariDesktop_=function(){return goog.labs.userAgent.browser.isSafari()&&!goog.labs.userAgent.platform.isIos()},goog.userAgent.product.SAFARI=goog.userAgent.product.PRODUCT_KNOWN_?goog.userAgent.product.ASSUME_SAFARI:goog.userAgent.product.isSafariDesktop_(),goog.crypt.base64={},goog.crypt.base64.DEFAULT_ALPHABET_COMMON_="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",goog.crypt.base64.ENCODED_VALS=goog.crypt.base64.DEFAULT_ALPHABET_COMMON_+"+/=",goog.crypt.base64.ENCODED_VALS_WEBSAFE=goog.crypt.base64.DEFAULT_ALPHABET_COMMON_+"-_.",goog.crypt.base64.Alphabet={DEFAULT:0,NO_PADDING:1,WEBSAFE:2,WEBSAFE_DOT_PADDING:3,WEBSAFE_NO_PADDING:4},goog.crypt.base64.paddingChars_="=.",goog.crypt.base64.isPadding_=function(o){return goog.string.contains(goog.crypt.base64.paddingChars_,o)},goog.crypt.base64.byteToCharMaps_={},goog.crypt.base64.charToByteMap_=null,goog.crypt.base64.ASSUME_NATIVE_SUPPORT_=goog.userAgent.GECKO||goog.userAgent.WEBKIT&&!goog.userAgent.product.SAFARI||goog.userAgent.OPERA,goog.crypt.base64.HAS_NATIVE_ENCODE_=goog.crypt.base64.ASSUME_NATIVE_SUPPORT_||typeof goog.global.btoa=="function",goog.crypt.base64.HAS_NATIVE_DECODE_=goog.crypt.base64.ASSUME_NATIVE_SUPPORT_||!goog.userAgent.product.SAFARI&&!goog.userAgent.IE&&typeof goog.global.atob=="function",goog.crypt.base64.encodeByteArray=function(o,i){goog.asserts.assert(goog.isArrayLike(o),"encodeByteArray takes an array as a parameter"),i===void 0&&(i=goog.crypt.base64.Alphabet.DEFAULT),goog.crypt.base64.init_(),i=goog.crypt.base64.byteToCharMaps_[i];for(var s=[],j=0;j>2;$=(3&$)<<4|tt>>4,tt=(15&tt)<<2|rt>>6,rt&=63,et||(rt=64,_e||(tt=64)),s.push(i[ot],i[$],i[tt]||"",i[rt]||"")}return s.join("")},goog.crypt.base64.encodeString=function(o,i){return goog.crypt.base64.HAS_NATIVE_ENCODE_&&!i?goog.global.btoa(o):goog.crypt.base64.encodeByteArray(goog.crypt.stringToByteArray(o),i)},goog.crypt.base64.decodeString=function(o,i){if(goog.crypt.base64.HAS_NATIVE_DECODE_&&!i)return goog.global.atob(o);var s="";return goog.crypt.base64.decodeStringInternal_(o,function(j){s+=String.fromCharCode(j)}),s},goog.crypt.base64.decodeStringToByteArray=function(o,i){var s=[];return goog.crypt.base64.decodeStringInternal_(o,function(j){s.push(j)}),s},goog.crypt.base64.decodeStringToUint8Array=function(o){goog.asserts.assert(!goog.userAgent.IE||goog.userAgent.isVersionOrHigher("10"),"Browser does not support typed arrays");var i=o.length,s=3*i/4;s%3?s=Math.floor(s):goog.crypt.base64.isPadding_(o[i-1])&&(s=goog.crypt.base64.isPadding_(o[i-2])?s-2:s-1);var j=new Uint8Array(s),$=0;return goog.crypt.base64.decodeStringInternal_(o,function(_e){j[$++]=_e}),j.subarray(0,$)},goog.crypt.base64.decodeStringInternal_=function(o,i){function s(rt){for(;j>4),tt!=64&&(i(_e<<4&240|tt>>2),et!=64&&i(tt<<6&192|et))}},goog.crypt.base64.init_=function(){if(!goog.crypt.base64.charToByteMap_){goog.crypt.base64.charToByteMap_={};for(var o=goog.crypt.base64.DEFAULT_ALPHABET_COMMON_.split(""),i=["+/=","+/","-_=","-_.","-_"],s=0;5>s;s++){var j=o.concat(i[s].split(""));goog.crypt.base64.byteToCharMaps_[s]=j;for(var $=0;$>>0;o=Math.floor((o-i)/jspb.BinaryConstants.TWO_TO_32)>>>0,jspb.utils.split64Low=i,jspb.utils.split64High=o},jspb.utils.splitInt64=function(o){var i=0>o,s=(o=Math.abs(o))>>>0;o=Math.floor((o-s)/jspb.BinaryConstants.TWO_TO_32),o>>>=0,i&&(o=~o>>>0,4294967295<(s=1+(~s>>>0))&&(s=0,4294967295<++o&&(o=0))),jspb.utils.split64Low=s,jspb.utils.split64High=o},jspb.utils.splitZigzag64=function(o){var i=0>o;o=2*Math.abs(o),jspb.utils.splitUint64(o),o=jspb.utils.split64Low;var s=jspb.utils.split64High;i&&(o==0?s==0?s=o=4294967295:(s--,o=4294967295):o--),jspb.utils.split64Low=o,jspb.utils.split64High=s},jspb.utils.splitFloat32=function(o){var i=0>o?1:0;if((o=i?-o:o)===0)0<1/o?(jspb.utils.split64High=0,jspb.utils.split64Low=0):(jspb.utils.split64High=0,jspb.utils.split64Low=2147483648);else if(isNaN(o))jspb.utils.split64High=0,jspb.utils.split64Low=2147483647;else if(o>jspb.BinaryConstants.FLOAT32_MAX)jspb.utils.split64High=0,jspb.utils.split64Low=(i<<31|2139095040)>>>0;else if(o>>0;else{var s=Math.floor(Math.log(o)/Math.LN2);o*=Math.pow(2,-s),o=8388607&Math.round(o*jspb.BinaryConstants.TWO_TO_23),jspb.utils.split64High=0,jspb.utils.split64Low=(i<<31|s+127<<23|o)>>>0}},jspb.utils.splitFloat64=function(o){var i=0>o?1:0;if((o=i?-o:o)===0)jspb.utils.split64High=0<1/o?0:2147483648,jspb.utils.split64Low=0;else if(isNaN(o))jspb.utils.split64High=2147483647,jspb.utils.split64Low=4294967295;else if(o>jspb.BinaryConstants.FLOAT64_MAX)jspb.utils.split64High=(i<<31|2146435072)>>>0,jspb.utils.split64Low=0;else if(o>>0,jspb.utils.split64Low=s>>>0}else{var j=0;if(2<=(s=o))for(;2<=s&&1023>j;)j++,s/=2;else for(;1>s&&-1022>>0,jspb.utils.split64High=(i<<31|j+1023<<20|o)>>>0,jspb.utils.split64Low=s}},jspb.utils.splitHash64=function(o){var i=o.charCodeAt(0),s=o.charCodeAt(1),j=o.charCodeAt(2),$=o.charCodeAt(3),_e=o.charCodeAt(4),tt=o.charCodeAt(5),et=o.charCodeAt(6);o=o.charCodeAt(7),jspb.utils.split64Low=i+(s<<8)+(j<<16)+($<<24)>>>0,jspb.utils.split64High=_e+(tt<<8)+(et<<16)+(o<<24)>>>0},jspb.utils.joinUint64=function(o,i){return i*jspb.BinaryConstants.TWO_TO_32+(o>>>0)},jspb.utils.joinInt64=function(o,i){var s=2147483648&i;return s&&(i=~i>>>0,(o=1+~o>>>0)==0&&(i=i+1>>>0)),o=jspb.utils.joinUint64(o,i),s?-o:o},jspb.utils.toZigzag64=function(o,i,s){var j=i>>31;return s(o<<1^j,(i<<1|o>>>31)^j)},jspb.utils.joinZigzag64=function(o,i){return jspb.utils.fromZigzag64(o,i,jspb.utils.joinInt64)},jspb.utils.fromZigzag64=function(o,i,s){var j=-(1&o);return s((o>>>1|i<<31)^j,i>>>1^j)},jspb.utils.joinFloat32=function(o,i){i=2*(o>>31)+1;var s=o>>>23&255;return o&=8388607,s==255?o?NaN:1/0*i:s==0?i*Math.pow(2,-149)*o:i*Math.pow(2,s-150)*(o+Math.pow(2,23))},jspb.utils.joinFloat64=function(o,i){var s=2*(i>>31)+1,j=i>>>20&2047;return o=jspb.BinaryConstants.TWO_TO_32*(1048575&i)+o,j==2047?o?NaN:1/0*s:j==0?s*Math.pow(2,-1074)*o:s*Math.pow(2,j-1075)*(o+jspb.BinaryConstants.TWO_TO_52)},jspb.utils.joinHash64=function(o,i){return String.fromCharCode(o>>>0&255,o>>>8&255,o>>>16&255,o>>>24&255,i>>>0&255,i>>>8&255,i>>>16&255,i>>>24&255)},jspb.utils.DIGITS="0123456789abcdef".split(""),jspb.utils.ZERO_CHAR_CODE_=48,jspb.utils.A_CHAR_CODE_=97,jspb.utils.joinUnsignedDecimalString=function(o,i){function s($,_e){return $=$?String($):"",_e?"0000000".slice($.length)+$:$}if(2097151>=i)return""+(jspb.BinaryConstants.TWO_TO_32*i+o);var j=(o>>>24|i<<8)>>>0&16777215;return o=(16777215&o)+6777216*j+6710656*(i=i>>16&65535),j+=8147497*i,i*=2,1e7<=o&&(j+=Math.floor(o/1e7),o%=1e7),1e7<=j&&(i+=Math.floor(j/1e7),j%=1e7),s(i,0)+s(j,i)+s(o,1)},jspb.utils.joinSignedDecimalString=function(o,i){var s=2147483648&i;return s&&(i=~i+((o=1+~o>>>0)==0?1:0)>>>0),o=jspb.utils.joinUnsignedDecimalString(o,i),s?"-"+o:o},jspb.utils.hash64ToDecimalString=function(o,i){jspb.utils.splitHash64(o),o=jspb.utils.split64Low;var s=jspb.utils.split64High;return i?jspb.utils.joinSignedDecimalString(o,s):jspb.utils.joinUnsignedDecimalString(o,s)},jspb.utils.hash64ArrayToDecimalStrings=function(o,i){for(var s=Array(o.length),j=0;jet&&(_e!==1||0>>=8}goog.asserts.assert(0_e;_e++)j[_e]=255&~j[_e]}(),i(1,1)),goog.crypt.byteArrayToString(j)},jspb.utils.splitDecimalString=function(o){jspb.utils.splitHash64(jspb.utils.decimalStringToHash64(o))},jspb.utils.toHexDigit_=function(o){return String.fromCharCode(10>o?jspb.utils.ZERO_CHAR_CODE_+o:jspb.utils.A_CHAR_CODE_-10+o)},jspb.utils.fromHexCharCode_=function(o){return o>=jspb.utils.A_CHAR_CODE_?o-jspb.utils.A_CHAR_CODE_+10:o-jspb.utils.ZERO_CHAR_CODE_},jspb.utils.hash64ToHexString=function(o){var i=Array(18);i[0]="0",i[1]="x";for(var s=0;8>s;s++){var j=o.charCodeAt(7-s);i[2*s+2]=jspb.utils.toHexDigit_(j>>4),i[2*s+3]=jspb.utils.toHexDigit_(15&j)}return i.join("")},jspb.utils.hexStringToHash64=function(o){o=o.toLowerCase(),goog.asserts.assert(o.length==18),goog.asserts.assert(o[0]=="0"),goog.asserts.assert(o[1]=="x");for(var i="",s=0;8>s;s++){var j=jspb.utils.fromHexCharCode_(o.charCodeAt(2*s+2)),$=jspb.utils.fromHexCharCode_(o.charCodeAt(2*s+3));i=String.fromCharCode(16*j+$)+i}return i},jspb.utils.hash64ToNumber=function(o,i){jspb.utils.splitHash64(o),o=jspb.utils.split64Low;var s=jspb.utils.split64High;return i?jspb.utils.joinInt64(o,s):jspb.utils.joinUint64(o,s)},jspb.utils.numberToHash64=function(o){return jspb.utils.splitInt64(o),jspb.utils.joinHash64(jspb.utils.split64Low,jspb.utils.split64High)},jspb.utils.countVarints=function(o,i,s){for(var j=0,$=i;$>7;return s-i-j},jspb.utils.countVarintFields=function(o,i,s,j){var $=0;if(128>(j=8*j+jspb.BinaryConstants.WireType.VARINT))for(;i>=7}if(o[i++]!=_e)break;for($++;(128&(_e=o[i++]))!=0;);}return $},jspb.utils.countFixedFields_=function(o,i,s,j,$){var _e=0;if(128>j)for(;i>=7}if(o[i++]!=tt)break;_e++,i+=$}return _e},jspb.utils.countFixed32Fields=function(o,i,s,j){return jspb.utils.countFixedFields_(o,i,s,8*j+jspb.BinaryConstants.WireType.FIXED32,4)},jspb.utils.countFixed64Fields=function(o,i,s,j){return jspb.utils.countFixedFields_(o,i,s,8*j+jspb.BinaryConstants.WireType.FIXED64,8)},jspb.utils.countDelimitedFields=function(o,i,s,j){var $=0;for(j=8*j+jspb.BinaryConstants.WireType.DELIMITED;i>=7}if(o[i++]!=_e)break;$++;for(var tt=0,et=1;tt+=(127&(_e=o[i++]))*et,et*=128,(128&_e)!=0;);i+=tt}return $},jspb.utils.debugBytesToTextFormat=function(o){var i='"';if(o){o=jspb.utils.byteSourceToUint8Array(o);for(var s=0;so[s]&&(i+="0"),i+=o[s].toString(16)}return i+'"'},jspb.utils.debugScalarToTextFormat=function(o){return typeof o=="string"?goog.string.quote(o):o.toString()},jspb.utils.stringToByteArray=function(o){for(var i=new Uint8Array(o.length),s=0;sjspb.BinaryDecoder.instanceCache_.length&&jspb.BinaryDecoder.instanceCache_.push(this)},jspb.BinaryDecoder.prototype.clone=function(){return jspb.BinaryDecoder.alloc(this.bytes_,this.start_,this.end_-this.start_)},jspb.BinaryDecoder.prototype.clear=function(){this.bytes_=null,this.cursor_=this.end_=this.start_=0,this.error_=!1},jspb.BinaryDecoder.prototype.getBuffer=function(){return this.bytes_},jspb.BinaryDecoder.prototype.setBlock=function(o,i,s){this.bytes_=jspb.utils.byteSourceToUint8Array(o),this.start_=i!==void 0?i:0,this.end_=s!==void 0?this.start_+s:this.bytes_.length,this.cursor_=this.start_},jspb.BinaryDecoder.prototype.getEnd=function(){return this.end_},jspb.BinaryDecoder.prototype.setEnd=function(o){this.end_=o},jspb.BinaryDecoder.prototype.reset=function(){this.cursor_=this.start_},jspb.BinaryDecoder.prototype.getCursor=function(){return this.cursor_},jspb.BinaryDecoder.prototype.setCursor=function(o){this.cursor_=o},jspb.BinaryDecoder.prototype.advance=function(o){this.cursor_+=o,goog.asserts.assert(this.cursor_<=this.end_)},jspb.BinaryDecoder.prototype.atEnd=function(){return this.cursor_==this.end_},jspb.BinaryDecoder.prototype.pastEnd=function(){return this.cursor_>this.end_},jspb.BinaryDecoder.prototype.getError=function(){return this.error_||0>this.cursor_||this.cursor_>this.end_},jspb.BinaryDecoder.prototype.readSplitVarint64=function(o){for(var i=128,s=0,j=0,$=0;4>$&&128<=i;$++)s|=(127&(i=this.bytes_[this.cursor_++]))<<7*$;if(128<=i&&(s|=(127&(i=this.bytes_[this.cursor_++]))<<28,j|=(127&i)>>4),128<=i)for($=0;5>$&&128<=i;$++)j|=(127&(i=this.bytes_[this.cursor_++]))<<7*$+3;if(128>i)return o(s>>>0,j>>>0);goog.asserts.fail("Failed to read varint, encoding is invalid."),this.error_=!0},jspb.BinaryDecoder.prototype.readSplitZigzagVarint64=function(o){return this.readSplitVarint64(function(i,s){return jspb.utils.fromZigzag64(i,s,o)})},jspb.BinaryDecoder.prototype.readSplitFixed64=function(o){var i=this.bytes_,s=this.cursor_;this.cursor_+=8;for(var j=0,$=0,_e=s+7;_e>=s;_e--)j=j<<8|i[_e],$=$<<8|i[_e+4];return o(j,$)},jspb.BinaryDecoder.prototype.skipVarint=function(){for(;128&this.bytes_[this.cursor_];)this.cursor_++;this.cursor_++},jspb.BinaryDecoder.prototype.unskipVarint=function(o){for(;128>>=7;this.cursor_--},jspb.BinaryDecoder.prototype.readUnsignedVarint32=function(){var o=this.bytes_,i=o[this.cursor_+0],s=127&i;return 128>i?(this.cursor_+=1,goog.asserts.assert(this.cursor_<=this.end_),s):(s|=(127&(i=o[this.cursor_+1]))<<7,128>i?(this.cursor_+=2,goog.asserts.assert(this.cursor_<=this.end_),s):(s|=(127&(i=o[this.cursor_+2]))<<14,128>i?(this.cursor_+=3,goog.asserts.assert(this.cursor_<=this.end_),s):(s|=(127&(i=o[this.cursor_+3]))<<21,128>i?(this.cursor_+=4,goog.asserts.assert(this.cursor_<=this.end_),s):(s|=(15&(i=o[this.cursor_+4]))<<28,128>i?(this.cursor_+=5,goog.asserts.assert(this.cursor_<=this.end_),s>>>0):(this.cursor_+=5,128<=o[this.cursor_++]&&128<=o[this.cursor_++]&&128<=o[this.cursor_++]&&128<=o[this.cursor_++]&&128<=o[this.cursor_++]&&goog.asserts.assert(!1),goog.asserts.assert(this.cursor_<=this.end_),s)))))},jspb.BinaryDecoder.prototype.readSignedVarint32=jspb.BinaryDecoder.prototype.readUnsignedVarint32,jspb.BinaryDecoder.prototype.readUnsignedVarint32String=function(){return this.readUnsignedVarint32().toString()},jspb.BinaryDecoder.prototype.readSignedVarint32String=function(){return this.readSignedVarint32().toString()},jspb.BinaryDecoder.prototype.readZigzagVarint32=function(){var o=this.readUnsignedVarint32();return o>>>1^-(1&o)},jspb.BinaryDecoder.prototype.readUnsignedVarint64=function(){return this.readSplitVarint64(jspb.utils.joinUint64)},jspb.BinaryDecoder.prototype.readUnsignedVarint64String=function(){return this.readSplitVarint64(jspb.utils.joinUnsignedDecimalString)},jspb.BinaryDecoder.prototype.readSignedVarint64=function(){return this.readSplitVarint64(jspb.utils.joinInt64)},jspb.BinaryDecoder.prototype.readSignedVarint64String=function(){return this.readSplitVarint64(jspb.utils.joinSignedDecimalString)},jspb.BinaryDecoder.prototype.readZigzagVarint64=function(){return this.readSplitVarint64(jspb.utils.joinZigzag64)},jspb.BinaryDecoder.prototype.readZigzagVarintHash64=function(){return this.readSplitZigzagVarint64(jspb.utils.joinHash64)},jspb.BinaryDecoder.prototype.readZigzagVarint64String=function(){return this.readSplitZigzagVarint64(jspb.utils.joinSignedDecimalString)},jspb.BinaryDecoder.prototype.readUint8=function(){var o=this.bytes_[this.cursor_+0];return this.cursor_+=1,goog.asserts.assert(this.cursor_<=this.end_),o},jspb.BinaryDecoder.prototype.readUint16=function(){var o=this.bytes_[this.cursor_+0],i=this.bytes_[this.cursor_+1];return this.cursor_+=2,goog.asserts.assert(this.cursor_<=this.end_),o<<0|i<<8},jspb.BinaryDecoder.prototype.readUint32=function(){var o=this.bytes_[this.cursor_+0],i=this.bytes_[this.cursor_+1],s=this.bytes_[this.cursor_+2],j=this.bytes_[this.cursor_+3];return this.cursor_+=4,goog.asserts.assert(this.cursor_<=this.end_),(o<<0|i<<8|s<<16|j<<24)>>>0},jspb.BinaryDecoder.prototype.readUint64=function(){var o=this.readUint32(),i=this.readUint32();return jspb.utils.joinUint64(o,i)},jspb.BinaryDecoder.prototype.readUint64String=function(){var o=this.readUint32(),i=this.readUint32();return jspb.utils.joinUnsignedDecimalString(o,i)},jspb.BinaryDecoder.prototype.readInt8=function(){var o=this.bytes_[this.cursor_+0];return this.cursor_+=1,goog.asserts.assert(this.cursor_<=this.end_),o<<24>>24},jspb.BinaryDecoder.prototype.readInt16=function(){var o=this.bytes_[this.cursor_+0],i=this.bytes_[this.cursor_+1];return this.cursor_+=2,goog.asserts.assert(this.cursor_<=this.end_),(o<<0|i<<8)<<16>>16},jspb.BinaryDecoder.prototype.readInt32=function(){var o=this.bytes_[this.cursor_+0],i=this.bytes_[this.cursor_+1],s=this.bytes_[this.cursor_+2],j=this.bytes_[this.cursor_+3];return this.cursor_+=4,goog.asserts.assert(this.cursor_<=this.end_),o<<0|i<<8|s<<16|j<<24},jspb.BinaryDecoder.prototype.readInt64=function(){var o=this.readUint32(),i=this.readUint32();return jspb.utils.joinInt64(o,i)},jspb.BinaryDecoder.prototype.readInt64String=function(){var o=this.readUint32(),i=this.readUint32();return jspb.utils.joinSignedDecimalString(o,i)},jspb.BinaryDecoder.prototype.readFloat=function(){var o=this.readUint32();return jspb.utils.joinFloat32(o,0)},jspb.BinaryDecoder.prototype.readDouble=function(){var o=this.readUint32(),i=this.readUint32();return jspb.utils.joinFloat64(o,i)},jspb.BinaryDecoder.prototype.readBool=function(){return!!this.bytes_[this.cursor_++]},jspb.BinaryDecoder.prototype.readEnum=function(){return this.readSignedVarint32()},jspb.BinaryDecoder.prototype.readString=function(o){var i=this.bytes_,s=this.cursor_;o=s+o;for(var j=[],$="";s_e)j.push(_e);else{if(192>_e)continue;if(224>_e){var tt=i[s++];j.push((31&_e)<<6|63&tt)}else if(240>_e){tt=i[s++];var et=i[s++];j.push((15&_e)<<12|(63&tt)<<6|63&et)}else 248>_e&&(_e=(7&_e)<<18|(63&(tt=i[s++]))<<12|(63&(et=i[s++]))<<6|63&i[s++],_e-=65536,j.push(55296+(_e>>10&1023),56320+(1023&_e)))}8192<=j.length&&($+=String.fromCharCode.apply(null,j),j.length=0)}return $+=goog.crypt.byteArrayToString(j),this.cursor_=s,$},jspb.BinaryDecoder.prototype.readStringWithLength=function(){var o=this.readUnsignedVarint32();return this.readString(o)},jspb.BinaryDecoder.prototype.readBytes=function(o){if(0>o||this.cursor_+o>this.bytes_.length)return this.error_=!0,goog.asserts.fail("Invalid byte length!"),new Uint8Array(0);var i=this.bytes_.subarray(this.cursor_,this.cursor_+o);return this.cursor_+=o,goog.asserts.assert(this.cursor_<=this.end_),i},jspb.BinaryDecoder.prototype.readVarintHash64=function(){return this.readSplitVarint64(jspb.utils.joinHash64)},jspb.BinaryDecoder.prototype.readFixedHash64=function(){var o=this.bytes_,i=this.cursor_,s=o[i+0],j=o[i+1],$=o[i+2],_e=o[i+3],tt=o[i+4],et=o[i+5],rt=o[i+6];return o=o[i+7],this.cursor_+=8,String.fromCharCode(s,j,$,_e,tt,et,rt,o)},jspb.BinaryReader=function(o,i,s){this.decoder_=jspb.BinaryDecoder.alloc(o,i,s),this.fieldCursor_=this.decoder_.getCursor(),this.nextField_=jspb.BinaryConstants.INVALID_FIELD_NUMBER,this.nextWireType_=jspb.BinaryConstants.WireType.INVALID,this.error_=!1,this.readCallbacks_=null},jspb.BinaryReader.instanceCache_=[],jspb.BinaryReader.alloc=function(o,i,s){if(jspb.BinaryReader.instanceCache_.length){var j=jspb.BinaryReader.instanceCache_.pop();return o&&j.decoder_.setBlock(o,i,s),j}return new jspb.BinaryReader(o,i,s)},jspb.BinaryReader.prototype.alloc=jspb.BinaryReader.alloc,jspb.BinaryReader.prototype.free=function(){this.decoder_.clear(),this.nextField_=jspb.BinaryConstants.INVALID_FIELD_NUMBER,this.nextWireType_=jspb.BinaryConstants.WireType.INVALID,this.error_=!1,this.readCallbacks_=null,100>jspb.BinaryReader.instanceCache_.length&&jspb.BinaryReader.instanceCache_.push(this)},jspb.BinaryReader.prototype.getFieldCursor=function(){return this.fieldCursor_},jspb.BinaryReader.prototype.getCursor=function(){return this.decoder_.getCursor()},jspb.BinaryReader.prototype.getBuffer=function(){return this.decoder_.getBuffer()},jspb.BinaryReader.prototype.getFieldNumber=function(){return this.nextField_},jspb.BinaryReader.prototype.getWireType=function(){return this.nextWireType_},jspb.BinaryReader.prototype.isDelimited=function(){return this.nextWireType_==jspb.BinaryConstants.WireType.DELIMITED},jspb.BinaryReader.prototype.isEndGroup=function(){return this.nextWireType_==jspb.BinaryConstants.WireType.END_GROUP},jspb.BinaryReader.prototype.getError=function(){return this.error_||this.decoder_.getError()},jspb.BinaryReader.prototype.setBlock=function(o,i,s){this.decoder_.setBlock(o,i,s),this.nextField_=jspb.BinaryConstants.INVALID_FIELD_NUMBER,this.nextWireType_=jspb.BinaryConstants.WireType.INVALID},jspb.BinaryReader.prototype.reset=function(){this.decoder_.reset(),this.nextField_=jspb.BinaryConstants.INVALID_FIELD_NUMBER,this.nextWireType_=jspb.BinaryConstants.WireType.INVALID},jspb.BinaryReader.prototype.advance=function(o){this.decoder_.advance(o)},jspb.BinaryReader.prototype.nextField=function(){if(this.decoder_.atEnd())return!1;if(this.getError())return goog.asserts.fail("Decoder hit an error"),!1;this.fieldCursor_=this.decoder_.getCursor();var o=this.decoder_.readUnsignedVarint32(),i=o>>>3;return(o&=7)!=jspb.BinaryConstants.WireType.VARINT&&o!=jspb.BinaryConstants.WireType.FIXED32&&o!=jspb.BinaryConstants.WireType.FIXED64&&o!=jspb.BinaryConstants.WireType.DELIMITED&&o!=jspb.BinaryConstants.WireType.START_GROUP&&o!=jspb.BinaryConstants.WireType.END_GROUP?(goog.asserts.fail("Invalid wire type: %s (at position %s)",o,this.fieldCursor_),this.error_=!0,!1):(this.nextField_=i,this.nextWireType_=o,!0)},jspb.BinaryReader.prototype.unskipHeader=function(){this.decoder_.unskipVarint(this.nextField_<<3|this.nextWireType_)},jspb.BinaryReader.prototype.skipMatchingFields=function(){var o=this.nextField_;for(this.unskipHeader();this.nextField()&&this.getFieldNumber()==o;)this.skipField();this.decoder_.atEnd()||this.unskipHeader()},jspb.BinaryReader.prototype.skipVarintField=function(){this.nextWireType_!=jspb.BinaryConstants.WireType.VARINT?(goog.asserts.fail("Invalid wire type for skipVarintField"),this.skipField()):this.decoder_.skipVarint()},jspb.BinaryReader.prototype.skipDelimitedField=function(){if(this.nextWireType_!=jspb.BinaryConstants.WireType.DELIMITED)goog.asserts.fail("Invalid wire type for skipDelimitedField"),this.skipField();else{var o=this.decoder_.readUnsignedVarint32();this.decoder_.advance(o)}},jspb.BinaryReader.prototype.skipFixed32Field=function(){this.nextWireType_!=jspb.BinaryConstants.WireType.FIXED32?(goog.asserts.fail("Invalid wire type for skipFixed32Field"),this.skipField()):this.decoder_.advance(4)},jspb.BinaryReader.prototype.skipFixed64Field=function(){this.nextWireType_!=jspb.BinaryConstants.WireType.FIXED64?(goog.asserts.fail("Invalid wire type for skipFixed64Field"),this.skipField()):this.decoder_.advance(8)},jspb.BinaryReader.prototype.skipGroup=function(){for(var o=this.nextField_;;){if(!this.nextField()){goog.asserts.fail("Unmatched start-group tag: stream EOF"),this.error_=!0;break}if(this.nextWireType_==jspb.BinaryConstants.WireType.END_GROUP){this.nextField_!=o&&(goog.asserts.fail("Unmatched end-group tag"),this.error_=!0);break}this.skipField()}},jspb.BinaryReader.prototype.skipField=function(){switch(this.nextWireType_){case jspb.BinaryConstants.WireType.VARINT:this.skipVarintField();break;case jspb.BinaryConstants.WireType.FIXED64:this.skipFixed64Field();break;case jspb.BinaryConstants.WireType.DELIMITED:this.skipDelimitedField();break;case jspb.BinaryConstants.WireType.FIXED32:this.skipFixed32Field();break;case jspb.BinaryConstants.WireType.START_GROUP:this.skipGroup();break;default:goog.asserts.fail("Invalid wire encoding for field.")}},jspb.BinaryReader.prototype.registerReadCallback=function(o,i){this.readCallbacks_===null&&(this.readCallbacks_={}),goog.asserts.assert(!this.readCallbacks_[o]),this.readCallbacks_[o]=i},jspb.BinaryReader.prototype.runReadCallback=function(o){return goog.asserts.assert(this.readCallbacks_!==null),o=this.readCallbacks_[o],goog.asserts.assert(o),o(this)},jspb.BinaryReader.prototype.readAny=function(o){this.nextWireType_=jspb.BinaryConstants.FieldTypeToWireType(o);var i=jspb.BinaryConstants.FieldType;switch(o){case i.DOUBLE:return this.readDouble();case i.FLOAT:return this.readFloat();case i.INT64:return this.readInt64();case i.UINT64:return this.readUint64();case i.INT32:return this.readInt32();case i.FIXED64:return this.readFixed64();case i.FIXED32:return this.readFixed32();case i.BOOL:return this.readBool();case i.STRING:return this.readString();case i.GROUP:goog.asserts.fail("Group field type not supported in readAny()");case i.MESSAGE:goog.asserts.fail("Message field type not supported in readAny()");case i.BYTES:return this.readBytes();case i.UINT32:return this.readUint32();case i.ENUM:return this.readEnum();case i.SFIXED32:return this.readSfixed32();case i.SFIXED64:return this.readSfixed64();case i.SINT32:return this.readSint32();case i.SINT64:return this.readSint64();case i.FHASH64:return this.readFixedHash64();case i.VHASH64:return this.readVarintHash64();default:goog.asserts.fail("Invalid field type in readAny()")}return 0},jspb.BinaryReader.prototype.readMessage=function(o,i){goog.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.DELIMITED);var s=this.decoder_.getEnd(),j=this.decoder_.readUnsignedVarint32();j=this.decoder_.getCursor()+j,this.decoder_.setEnd(j),i(o,this),this.decoder_.setCursor(j),this.decoder_.setEnd(s)},jspb.BinaryReader.prototype.readGroup=function(o,i,s){goog.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.START_GROUP),goog.asserts.assert(this.nextField_==o),s(i,this),this.error_||this.nextWireType_==jspb.BinaryConstants.WireType.END_GROUP||(goog.asserts.fail("Group submessage did not end with an END_GROUP tag"),this.error_=!0)},jspb.BinaryReader.prototype.getFieldDecoder=function(){goog.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.DELIMITED);var o=this.decoder_.readUnsignedVarint32(),i=this.decoder_.getCursor(),s=i+o;return o=jspb.BinaryDecoder.alloc(this.decoder_.getBuffer(),i,o),this.decoder_.setCursor(s),o},jspb.BinaryReader.prototype.readInt32=function(){return goog.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.VARINT),this.decoder_.readSignedVarint32()},jspb.BinaryReader.prototype.readInt32String=function(){return goog.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.VARINT),this.decoder_.readSignedVarint32String()},jspb.BinaryReader.prototype.readInt64=function(){return goog.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.VARINT),this.decoder_.readSignedVarint64()},jspb.BinaryReader.prototype.readInt64String=function(){return goog.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.VARINT),this.decoder_.readSignedVarint64String()},jspb.BinaryReader.prototype.readUint32=function(){return goog.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.VARINT),this.decoder_.readUnsignedVarint32()},jspb.BinaryReader.prototype.readUint32String=function(){return goog.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.VARINT),this.decoder_.readUnsignedVarint32String()},jspb.BinaryReader.prototype.readUint64=function(){return goog.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.VARINT),this.decoder_.readUnsignedVarint64()},jspb.BinaryReader.prototype.readUint64String=function(){return goog.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.VARINT),this.decoder_.readUnsignedVarint64String()},jspb.BinaryReader.prototype.readSint32=function(){return goog.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.VARINT),this.decoder_.readZigzagVarint32()},jspb.BinaryReader.prototype.readSint64=function(){return goog.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.VARINT),this.decoder_.readZigzagVarint64()},jspb.BinaryReader.prototype.readSint64String=function(){return goog.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.VARINT),this.decoder_.readZigzagVarint64String()},jspb.BinaryReader.prototype.readFixed32=function(){return goog.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.FIXED32),this.decoder_.readUint32()},jspb.BinaryReader.prototype.readFixed64=function(){return goog.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.FIXED64),this.decoder_.readUint64()},jspb.BinaryReader.prototype.readFixed64String=function(){return goog.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.FIXED64),this.decoder_.readUint64String()},jspb.BinaryReader.prototype.readSfixed32=function(){return goog.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.FIXED32),this.decoder_.readInt32()},jspb.BinaryReader.prototype.readSfixed32String=function(){return goog.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.FIXED32),this.decoder_.readInt32().toString()},jspb.BinaryReader.prototype.readSfixed64=function(){return goog.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.FIXED64),this.decoder_.readInt64()},jspb.BinaryReader.prototype.readSfixed64String=function(){return goog.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.FIXED64),this.decoder_.readInt64String()},jspb.BinaryReader.prototype.readFloat=function(){return goog.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.FIXED32),this.decoder_.readFloat()},jspb.BinaryReader.prototype.readDouble=function(){return goog.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.FIXED64),this.decoder_.readDouble()},jspb.BinaryReader.prototype.readBool=function(){return goog.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.VARINT),!!this.decoder_.readUnsignedVarint32()},jspb.BinaryReader.prototype.readEnum=function(){return goog.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.VARINT),this.decoder_.readSignedVarint64()},jspb.BinaryReader.prototype.readString=function(){goog.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.DELIMITED);var o=this.decoder_.readUnsignedVarint32();return this.decoder_.readString(o)},jspb.BinaryReader.prototype.readBytes=function(){goog.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.DELIMITED);var o=this.decoder_.readUnsignedVarint32();return this.decoder_.readBytes(o)},jspb.BinaryReader.prototype.readVarintHash64=function(){return goog.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.VARINT),this.decoder_.readVarintHash64()},jspb.BinaryReader.prototype.readSintHash64=function(){return goog.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.VARINT),this.decoder_.readZigzagVarintHash64()},jspb.BinaryReader.prototype.readSplitVarint64=function(o){return goog.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.VARINT),this.decoder_.readSplitVarint64(o)},jspb.BinaryReader.prototype.readSplitZigzagVarint64=function(o){return goog.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.VARINT),this.decoder_.readSplitVarint64(function(i,s){return jspb.utils.fromZigzag64(i,s,o)})},jspb.BinaryReader.prototype.readFixedHash64=function(){return goog.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.FIXED64),this.decoder_.readFixedHash64()},jspb.BinaryReader.prototype.readSplitFixed64=function(o){return goog.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.FIXED64),this.decoder_.readSplitFixed64(o)},jspb.BinaryReader.prototype.readPackedField_=function(o){goog.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.DELIMITED);var i=this.decoder_.readUnsignedVarint32();i=this.decoder_.getCursor()+i;for(var s=[];this.decoder_.getCursor()i.length?s.length:i.length;for(o.getJsPbMessageId()&&(j[0]=o.getJsPbMessageId(),$=1);$<_e;$++)jspb.Message.compareFields(s[$],i[$])||(j[$]=i[$]);return new o.constructor(j)},jspb.Message.equals=function(o,i){return o==i||!(!o||!i)&&o instanceof i.constructor&&jspb.Message.compareFields(o.toArray(),i.toArray())},jspb.Message.compareExtensions=function(o,i){o=o||{},i=i||{};var s,j={};for(s in o)j[s]=0;for(s in i)j[s]=0;for(s in j)if(!jspb.Message.compareFields(o[s],i[s]))return!1;return!0},jspb.Message.compareFields=function(o,i){if(o==i)return!0;if(!goog.isObject(o)||!goog.isObject(i))return!!(typeof o=="number"&&isNaN(o)||typeof i=="number"&&isNaN(i))&&String(o)==String(i);if(o.constructor!=i.constructor)return!1;if(jspb.Message.SUPPORTS_UINT8ARRAY_&&o.constructor===Uint8Array){if(o.length!=i.length)return!1;for(var s=0;s>>1|(1&this.hi)<<31)>>>0,this.hi>>>1>>>0)},jspb.arith.UInt64.prototype.leftShift=function(){return new jspb.arith.UInt64(this.lo<<1>>>0,(this.hi<<1|this.lo>>>31)>>>0)},jspb.arith.UInt64.prototype.msb=function(){return!!(2147483648&this.hi)},jspb.arith.UInt64.prototype.lsb=function(){return!!(1&this.lo)},jspb.arith.UInt64.prototype.zero=function(){return this.lo==0&&this.hi==0},jspb.arith.UInt64.prototype.add=function(o){return new jspb.arith.UInt64((this.lo+o.lo&4294967295)>>>0>>>0,((this.hi+o.hi&4294967295)>>>0)+(4294967296<=this.lo+o.lo?1:0)>>>0)},jspb.arith.UInt64.prototype.sub=function(o){return new jspb.arith.UInt64((this.lo-o.lo&4294967295)>>>0>>>0,((this.hi-o.hi&4294967295)>>>0)-(0>this.lo-o.lo?1:0)>>>0)},jspb.arith.UInt64.mul32x32=function(o,i){var s=65535&o,j=65535&i,$=i>>>16;for(i=s*j+65536*(s*$&65535)+65536*((o>>>=16)*j&65535),s=o*$+(s*$>>>16)+(o*j>>>16);4294967296<=i;)i-=4294967296,s+=1;return new jspb.arith.UInt64(i>>>0,s>>>0)},jspb.arith.UInt64.prototype.mul=function(o){var i=jspb.arith.UInt64.mul32x32(this.lo,o);return(o=jspb.arith.UInt64.mul32x32(this.hi,o)).hi=o.lo,o.lo=0,i.add(o)},jspb.arith.UInt64.prototype.div=function(o){if(o==0)return[];var i=new jspb.arith.UInt64(0,0),s=new jspb.arith.UInt64(this.lo,this.hi);o=new jspb.arith.UInt64(o,0);for(var j=new jspb.arith.UInt64(1,0);!o.msb();)o=o.leftShift(),j=j.leftShift();for(;!j.zero();)0>=o.cmp(s)&&(i=i.add(j),s=s.sub(o)),o=o.rightShift(),j=j.rightShift();return[i,s]},jspb.arith.UInt64.prototype.toString=function(){for(var o="",i=this;!i.zero();){var s=(i=i.div(10))[0];o=i[1].lo+o,i=s}return o==""&&(o="0"),o},jspb.arith.UInt64.fromString=function(o){for(var i=new jspb.arith.UInt64(0,0),s=new jspb.arith.UInt64(0,0),j=0;jo[j]||"9">>0>>>0,((this.hi+o.hi&4294967295)>>>0)+(4294967296<=this.lo+o.lo?1:0)>>>0)},jspb.arith.Int64.prototype.sub=function(o){return new jspb.arith.Int64((this.lo-o.lo&4294967295)>>>0>>>0,((this.hi-o.hi&4294967295)>>>0)-(0>this.lo-o.lo?1:0)>>>0)},jspb.arith.Int64.prototype.clone=function(){return new jspb.arith.Int64(this.lo,this.hi)},jspb.arith.Int64.prototype.toString=function(){var o=(2147483648&this.hi)!=0,i=new jspb.arith.UInt64(this.lo,this.hi);return o&&(i=new jspb.arith.UInt64(0,0).sub(i)),(o?"-":"")+i.toString()},jspb.arith.Int64.fromString=function(o){var i=0>>7|i<<25)>>>0,i>>>=7;this.buffer_.push(o)},jspb.BinaryEncoder.prototype.writeSplitFixed64=function(o,i){goog.asserts.assert(o==Math.floor(o)),goog.asserts.assert(i==Math.floor(i)),goog.asserts.assert(0<=o&&o>>=7;this.buffer_.push(o)},jspb.BinaryEncoder.prototype.writeSignedVarint32=function(o){if(goog.asserts.assert(o==Math.floor(o)),goog.asserts.assert(o>=-jspb.BinaryConstants.TWO_TO_31&&oi;i++)this.buffer_.push(127&o|128),o>>=7;this.buffer_.push(1)}},jspb.BinaryEncoder.prototype.writeUnsignedVarint64=function(o){goog.asserts.assert(o==Math.floor(o)),goog.asserts.assert(0<=o&&o=-jspb.BinaryConstants.TWO_TO_63&&o=-jspb.BinaryConstants.TWO_TO_31&&o>31)>>>0)},jspb.BinaryEncoder.prototype.writeZigzagVarint64=function(o){goog.asserts.assert(o==Math.floor(o)),goog.asserts.assert(o>=-jspb.BinaryConstants.TWO_TO_63&&o>>0,j>>>0)})},jspb.BinaryEncoder.prototype.writeUint8=function(o){goog.asserts.assert(o==Math.floor(o)),goog.asserts.assert(0<=o&&256>o),this.buffer_.push(o>>>0&255)},jspb.BinaryEncoder.prototype.writeUint16=function(o){goog.asserts.assert(o==Math.floor(o)),goog.asserts.assert(0<=o&&65536>o),this.buffer_.push(o>>>0&255),this.buffer_.push(o>>>8&255)},jspb.BinaryEncoder.prototype.writeUint32=function(o){goog.asserts.assert(o==Math.floor(o)),goog.asserts.assert(0<=o&&o>>0&255),this.buffer_.push(o>>>8&255),this.buffer_.push(o>>>16&255),this.buffer_.push(o>>>24&255)},jspb.BinaryEncoder.prototype.writeUint64=function(o){goog.asserts.assert(o==Math.floor(o)),goog.asserts.assert(0<=o&&oo),this.buffer_.push(o>>>0&255)},jspb.BinaryEncoder.prototype.writeInt16=function(o){goog.asserts.assert(o==Math.floor(o)),goog.asserts.assert(-32768<=o&&32768>o),this.buffer_.push(o>>>0&255),this.buffer_.push(o>>>8&255)},jspb.BinaryEncoder.prototype.writeInt32=function(o){goog.asserts.assert(o==Math.floor(o)),goog.asserts.assert(o>=-jspb.BinaryConstants.TWO_TO_31&&o>>0&255),this.buffer_.push(o>>>8&255),this.buffer_.push(o>>>16&255),this.buffer_.push(o>>>24&255)},jspb.BinaryEncoder.prototype.writeInt64=function(o){goog.asserts.assert(o==Math.floor(o)),goog.asserts.assert(o>=-jspb.BinaryConstants.TWO_TO_63&&o=-jspb.BinaryConstants.TWO_TO_63&&+o=-jspb.BinaryConstants.FLOAT32_MAX&&o<=jspb.BinaryConstants.FLOAT32_MAX),jspb.utils.splitFloat32(o),this.writeUint32(jspb.utils.split64Low)},jspb.BinaryEncoder.prototype.writeDouble=function(o){goog.asserts.assert(1/0===o||-1/0===o||isNaN(o)||o>=-jspb.BinaryConstants.FLOAT64_MAX&&o<=jspb.BinaryConstants.FLOAT64_MAX),jspb.utils.splitFloat64(o),this.writeUint32(jspb.utils.split64Low),this.writeUint32(jspb.utils.split64High)},jspb.BinaryEncoder.prototype.writeBool=function(o){goog.asserts.assert(typeof o=="boolean"||typeof o=="number"),this.buffer_.push(o?1:0)},jspb.BinaryEncoder.prototype.writeEnum=function(o){goog.asserts.assert(o==Math.floor(o)),goog.asserts.assert(o>=-jspb.BinaryConstants.TWO_TO_31&&oj)this.buffer_.push(j);else if(2048>j)this.buffer_.push(j>>6|192),this.buffer_.push(63&j|128);else if(65536>j)if(55296<=j&&56319>=j&&s+1=$&&(j=1024*(j-55296)+$-56320+65536,this.buffer_.push(j>>18|240),this.buffer_.push(j>>12&63|128),this.buffer_.push(j>>6&63|128),this.buffer_.push(63&j|128),s++)}else this.buffer_.push(j>>12|224),this.buffer_.push(j>>6&63|128),this.buffer_.push(63&j|128)}return this.buffer_.length-i},jspb.BinaryWriter=function(){this.blocks_=[],this.totalLength_=0,this.encoder_=new jspb.BinaryEncoder,this.bookmarks_=[]},jspb.BinaryWriter.prototype.appendUint8Array_=function(o){var i=this.encoder_.end();this.blocks_.push(i),this.blocks_.push(o),this.totalLength_+=i.length+o.length},jspb.BinaryWriter.prototype.beginDelimited_=function(o){return this.writeFieldHeader_(o,jspb.BinaryConstants.WireType.DELIMITED),o=this.encoder_.end(),this.blocks_.push(o),this.totalLength_+=o.length,o.push(this.totalLength_),o},jspb.BinaryWriter.prototype.endDelimited_=function(o){var i=o.pop();for(i=this.totalLength_+this.encoder_.length()-i,goog.asserts.assert(0<=i);127>>=7,this.totalLength_++;o.push(i),this.totalLength_++},jspb.BinaryWriter.prototype.writeSerializedMessage=function(o,i,s){this.appendUint8Array_(o.subarray(i,s))},jspb.BinaryWriter.prototype.maybeWriteSerializedMessage=function(o,i,s){o!=null&&i!=null&&s!=null&&this.writeSerializedMessage(o,i,s)},jspb.BinaryWriter.prototype.reset=function(){this.blocks_=[],this.encoder_.end(),this.totalLength_=0,this.bookmarks_=[]},jspb.BinaryWriter.prototype.getResultBuffer=function(){goog.asserts.assert(this.bookmarks_.length==0);for(var o=new Uint8Array(this.totalLength_+this.encoder_.length()),i=this.blocks_,s=i.length,j=0,$=0;$=-jspb.BinaryConstants.TWO_TO_31&&i=-jspb.BinaryConstants.TWO_TO_31&&i=-jspb.BinaryConstants.TWO_TO_63&&i=-jspb.BinaryConstants.TWO_TO_31&&i=-jspb.BinaryConstants.TWO_TO_63&&i=-jspb.BinaryConstants.TWO_TO_31&&i=-jspb.BinaryConstants.TWO_TO_63&&i=-jspb.BinaryConstants.TWO_TO_31&&i>>0,_e>>>0)})},jspb.BinaryWriter.prototype.writeRepeatedInt32=function(o,i){if(i!=null)for(var s=0;s>>0,et>>>0)});this.endDelimited_(o)}},jspb.BinaryWriter.prototype.writePackedInt64String=function(o,i){if(i!=null&&i.length){o=this.beginDelimited_(o);for(var s=0;s>>((3&tt)<<3)&255;return $}}},function(o,i){for(var s=[],j=0;j<256;++j)s[j]=(j+256).toString(16).substr(1);o.exports=function($,_e){var tt=_e||0,et=s;return[et[$[tt++]],et[$[tt++]],et[$[tt++]],et[$[tt++]],"-",et[$[tt++]],et[$[tt++]],"-",et[$[tt++]],et[$[tt++]],"-",et[$[tt++]],et[$[tt++]],"-",et[$[tt++]],et[$[tt++]],et[$[tt++]],et[$[tt++]],et[$[tt++]],et[$[tt++]]].join("")}},function(o,i,s){(function(j){const $=s(210),_e=s(49),tt=(et,rt)=>({from:tt,EnvVarError:s(49),get:function(ot){if(!ot)return et;if(arguments.length>1)throw new _e("It looks like you passed more than one argument to env.get(). Since env-var@6.0.0 this is no longer supported. To set a default value use env.get(TARGET).default(DEFAULT)");return $(et,ot,rt||{})}});o.exports=tt(j.env)}).call(this,s(2))},function(o,i,s){var j=s(10),$=s(71),_e=s(3).LEVEL,tt=o.exports=function(){var et=this,rt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};$.call(this,{objectMode:!0,highWaterMark:rt.highWaterMark}),this.format=rt.format,this.level=rt.level,this.handleExceptions=rt.handleExceptions,this.silent=rt.silent,rt.log&&(this.log=rt.log),rt.logv&&(this.logv=rt.logv),rt.close&&(this.close=rt.close),this.once("pipe",function(ot){et.levels=ot.levels,et.parent=ot}),this.once("unpipe",function(ot){ot===et.parent&&(et.parent=null,et.close&&et.close())})};j.inherits(tt,$),tt.prototype._write=function(et,rt,ot){if(this.silent||et.exception===!0&&!this.handleExceptions)return ot(null);var lt=this.level||this.parent&&this.parent.level;if(!lt||this.levels[lt]>=this.levels[et[_e]]){if(et&&!this.format)return this.log(et,ot);var dt=void 0,at=void 0;try{at=this.format.transform(Object.assign({},et),this.format.options)}catch(ct){dt=ct}if(dt||!at){if(ot(),dt)throw dt;return}return this.log(at,ot)}return ot(null)},tt.prototype._writev=function(et,rt){if(this.logv){var ot=et.filter(this._accept,this);return ot.length?this.logv(ot,rt):rt(null)}for(var lt=0;lt=this.levels[rt[_e]])||!this.handleExceptions&&rt.exception===!0)},tt.prototype._nop=function(){}},function(o,i,s){const{AbortController:j,AbortSignal:$}=typeof self!="undefined"?self:typeof window!="undefined"?window:void 0;o.exports=j,o.exports.AbortSignal=$,o.exports.default=j},function(o,i){var s=function(j){function $(){this.fetch=!1,this.DOMException=j.DOMException}return $.prototype=j,new $}(typeof self!="undefined"?self:this);(function(j){(function($){var _e="URLSearchParams"in j,tt="Symbol"in j&&"iterator"in Symbol,et="FileReader"in j&&"Blob"in j&&function(){try{return new Blob,!0}catch{return!1}}(),rt="FormData"in j,ot="ArrayBuffer"in j;if(ot)var lt=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],dt=ArrayBuffer.isView||function(At){return At&<.indexOf(Object.prototype.toString.call(At))>-1};function at(At){if(typeof At!="string"&&(At=String(At)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(At))throw new TypeError("Invalid character in header field name");return At.toLowerCase()}function ct(At){return typeof At!="string"&&(At=String(At)),At}function st(At){var Et={next:function(){var Mt=At.shift();return{done:Mt===void 0,value:Mt}}};return tt&&(Et[Symbol.iterator]=function(){return Et}),Et}function ut(At){this.map={},At instanceof ut?At.forEach(function(Et,Mt){this.append(Mt,Et)},this):Array.isArray(At)?At.forEach(function(Et){this.append(Et[0],Et[1])},this):At&&Object.getOwnPropertyNames(At).forEach(function(Et){this.append(Et,At[Et])},this)}function mt(At){if(At.bodyUsed)return Promise.reject(new TypeError("Already read"));At.bodyUsed=!0}function bt(At){return new Promise(function(Et,Mt){At.onload=function(){Et(At.result)},At.onerror=function(){Mt(At.error)}})}function Tt(At){var Et=new FileReader,Mt=bt(Et);return Et.readAsArrayBuffer(At),Mt}function ht(At){if(At.slice)return At.slice(0);var Et=new Uint8Array(At.byteLength);return Et.set(new Uint8Array(At)),Et.buffer}function yt(){return this.bodyUsed=!1,this._initBody=function(At){var Et;this._bodyInit=At,At?typeof At=="string"?this._bodyText=At:et&&Blob.prototype.isPrototypeOf(At)?this._bodyBlob=At:rt&&FormData.prototype.isPrototypeOf(At)?this._bodyFormData=At:_e&&URLSearchParams.prototype.isPrototypeOf(At)?this._bodyText=At.toString():ot&&et&&(Et=At)&&DataView.prototype.isPrototypeOf(Et)?(this._bodyArrayBuffer=ht(At.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):ot&&(ArrayBuffer.prototype.isPrototypeOf(At)||dt(At))?this._bodyArrayBuffer=ht(At):this._bodyText=At=Object.prototype.toString.call(At):this._bodyText="",this.headers.get("content-type")||(typeof At=="string"?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):_e&&URLSearchParams.prototype.isPrototypeOf(At)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},et&&(this.blob=function(){var At=mt(this);if(At)return At;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?mt(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(Tt)}),this.text=function(){var At,Et,Mt,Lt=mt(this);if(Lt)return Lt;if(this._bodyBlob)return At=this._bodyBlob,Et=new FileReader,Mt=bt(Et),Et.readAsText(At),Mt;if(this._bodyArrayBuffer)return Promise.resolve(function(kt){for(var Rt=new Uint8Array(kt),Ot=new Array(Rt.length),It=0;It-1?Lt:Mt),this.mode=Et.mode||this.mode||null,this.signal=Et.signal||this.signal,this.referrer=null,(this.method==="GET"||this.method==="HEAD")&&kt)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(kt)}function Ft(At){var Et=new FormData;return At.trim().split("&").forEach(function(Mt){if(Mt){var Lt=Mt.split("="),kt=Lt.shift().replace(/\+/g," "),Rt=Lt.join("=").replace(/\+/g," ");Et.append(decodeURIComponent(kt),decodeURIComponent(Rt))}}),Et}function Ut(At,Et){Et||(Et={}),this.type="default",this.status=Et.status===void 0?200:Et.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in Et?Et.statusText:"OK",this.headers=new ut(Et.headers),this.url=Et.url||"",this._initBody(At)}Ct.prototype.clone=function(){return new Ct(this,{body:this._bodyInit})},yt.call(Ct.prototype),yt.call(Ut.prototype),Ut.prototype.clone=function(){return new Ut(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new ut(this.headers),url:this.url})},Ut.error=function(){var At=new Ut(null,{status:0,statusText:""});return At.type="error",At};var wt=[301,302,303,307,308];Ut.redirect=function(At,Et){if(wt.indexOf(Et)===-1)throw new RangeError("Invalid status code");return new Ut(null,{status:Et,headers:{location:At}})},$.DOMException=j.DOMException;try{new $.DOMException}catch{$.DOMException=function(Et,Mt){this.message=Et,this.name=Mt;var Lt=Error(Et);this.stack=Lt.stack},$.DOMException.prototype=Object.create(Error.prototype),$.DOMException.prototype.constructor=$.DOMException}function vt(At,Et){return new Promise(function(Mt,Lt){var kt=new Ct(At,Et);if(kt.signal&&kt.signal.aborted)return Lt(new $.DOMException("Aborted","AbortError"));var Rt=new XMLHttpRequest;function Ot(){Rt.abort()}Rt.onload=function(){var It,St,gt={status:Rt.status,statusText:Rt.statusText,headers:(It=Rt.getAllResponseHeaders()||"",St=new ut,It.replace(/\r?\n[\t ]+/g," ").split(/\r?\n/).forEach(function(Dt){var Yt=Dt.split(":"),Xt=Yt.shift().trim();if(Xt){var Jt=Yt.join(":").trim();St.append(Xt,Jt)}}),St)};gt.url="responseURL"in Rt?Rt.responseURL:gt.headers.get("X-Request-URL");var Bt="response"in Rt?Rt.response:Rt.responseText;Mt(new Ut(Bt,gt))},Rt.onerror=function(){Lt(new TypeError("Network request failed"))},Rt.ontimeout=function(){Lt(new TypeError("Network request failed"))},Rt.onabort=function(){Lt(new $.DOMException("Aborted","AbortError"))},Rt.open(kt.method,kt.url,!0),kt.credentials==="include"?Rt.withCredentials=!0:kt.credentials==="omit"&&(Rt.withCredentials=!1),"responseType"in Rt&&et&&(Rt.responseType="blob"),kt.headers.forEach(function(It,St){Rt.setRequestHeader(St,It)}),kt.signal&&(kt.signal.addEventListener("abort",Ot),Rt.onreadystatechange=function(){Rt.readyState===4&&kt.signal.removeEventListener("abort",Ot)}),Rt.send(kt._bodyInit===void 0?null:kt._bodyInit)})}vt.polyfill=!0,j.fetch||(j.fetch=vt,j.Headers=ut,j.Request=Ct,j.Response=Ut),$.Headers=ut,$.Request=Ct,$.Response=Ut,$.fetch=vt})({})})(s),delete s.fetch.polyfill,(i=s.fetch).default=s.fetch,i.fetch=s.fetch,i.Headers=s.Headers,i.Request=s.Request,i.Response=s.Response,o.exports=i},function(o,i,s){const j=s(222),$=Symbol("max"),_e=Symbol("length"),tt=Symbol("lengthCalculator"),et=Symbol("allowStale"),rt=Symbol("maxAge"),ot=Symbol("dispose"),lt=Symbol("noDisposeOnSet"),dt=Symbol("lruList"),at=Symbol("cache"),ct=Symbol("updateAgeOnGet"),st=()=>1,ut=(ft,Ct,Ft)=>{const Ut=ft[at].get(Ct);if(Ut){const wt=Ut.value;if(mt(ft,wt)){if(Tt(ft,Ut),!ft[et])return}else Ft&&(ft[ct]&&(Ut.value.now=Date.now()),ft[dt].unshiftNode(Ut));return wt.value}},mt=(ft,Ct)=>{if(!Ct||!Ct.maxAge&&!ft[rt])return!1;const Ft=Date.now()-Ct.now;return Ct.maxAge?Ft>Ct.maxAge:ft[rt]&&Ft>ft[rt]},bt=ft=>{if(ft[_e]>ft[$])for(let Ct=ft[dt].tail;ft[_e]>ft[$]&&Ct!==null;){const Ft=Ct.prev;Tt(ft,Ct),Ct=Ft}},Tt=(ft,Ct)=>{if(Ct){const Ft=Ct.value;ft[ot]&&ft[ot](Ft.key,Ft.value),ft[_e]-=Ft.length,ft[at].delete(Ft.key),ft[dt].removeNode(Ct)}};class ht{constructor(Ct,Ft,Ut,wt,vt){this.key=Ct,this.value=Ft,this.length=Ut,this.now=wt,this.maxAge=vt||0}}const yt=(ft,Ct,Ft,Ut)=>{let wt=Ft.value;mt(ft,wt)&&(Tt(ft,Ft),ft[et]||(wt=void 0)),wt&&Ct.call(Ut,wt.value,wt.key,ft)};o.exports=class{constructor(ft){if(typeof ft=="number"&&(ft={max:ft}),ft||(ft={}),ft.max&&(typeof ft.max!="number"||ft.max<0))throw new TypeError("max must be a non-negative number");this[$]=ft.max||1/0;const Ct=ft.length||st;if(this[tt]=typeof Ct!="function"?st:Ct,this[et]=ft.stale||!1,ft.maxAge&&typeof ft.maxAge!="number")throw new TypeError("maxAge must be a number");this[rt]=ft.maxAge||0,this[ot]=ft.dispose,this[lt]=ft.noDisposeOnSet||!1,this[ct]=ft.updateAgeOnGet||!1,this.reset()}set max(ft){if(typeof ft!="number"||ft<0)throw new TypeError("max must be a non-negative number");this[$]=ft||1/0,bt(this)}get max(){return this[$]}set allowStale(ft){this[et]=!!ft}get allowStale(){return this[et]}set maxAge(ft){if(typeof ft!="number")throw new TypeError("maxAge must be a non-negative number");this[rt]=ft,bt(this)}get maxAge(){return this[rt]}set lengthCalculator(ft){typeof ft!="function"&&(ft=st),ft!==this[tt]&&(this[tt]=ft,this[_e]=0,this[dt].forEach(Ct=>{Ct.length=this[tt](Ct.value,Ct.key),this[_e]+=Ct.length})),bt(this)}get lengthCalculator(){return this[tt]}get length(){return this[_e]}get itemCount(){return this[dt].length}rforEach(ft,Ct){Ct=Ct||this;for(let Ft=this[dt].tail;Ft!==null;){const Ut=Ft.prev;yt(this,ft,Ft,Ct),Ft=Ut}}forEach(ft,Ct){Ct=Ct||this;for(let Ft=this[dt].head;Ft!==null;){const Ut=Ft.next;yt(this,ft,Ft,Ct),Ft=Ut}}keys(){return this[dt].toArray().map(ft=>ft.key)}values(){return this[dt].toArray().map(ft=>ft.value)}reset(){this[ot]&&this[dt]&&this[dt].length&&this[dt].forEach(ft=>this[ot](ft.key,ft.value)),this[at]=new Map,this[dt]=new j,this[_e]=0}dump(){return this[dt].map(ft=>!mt(this,ft)&&{k:ft.key,v:ft.value,e:ft.now+(ft.maxAge||0)}).toArray().filter(ft=>ft)}dumpLru(){return this[dt]}set(ft,Ct,Ft){if((Ft=Ft||this[rt])&&typeof Ft!="number")throw new TypeError("maxAge must be a number");const Ut=Ft?Date.now():0,wt=this[tt](Ct,ft);if(this[at].has(ft)){if(wt>this[$])return Tt(this,this[at].get(ft)),!1;const At=this[at].get(ft).value;return this[ot]&&(this[lt]||this[ot](ft,At.value)),At.now=Ut,At.maxAge=Ft,At.value=Ct,this[_e]+=wt-At.length,At.length=wt,this.get(ft),bt(this),!0}const vt=new ht(ft,Ct,wt,Ut,Ft);return vt.length>this[$]?(this[ot]&&this[ot](ft,Ct),!1):(this[_e]+=vt.length,this[dt].unshift(vt),this[at].set(ft,this[dt].head),bt(this),!0)}has(ft){if(!this[at].has(ft))return!1;const Ct=this[at].get(ft).value;return!mt(this,Ct)}get(ft){return ut(this,ft,!0)}peek(ft){return ut(this,ft,!1)}pop(){const ft=this[dt].tail;return ft?(Tt(this,ft),ft.value):null}del(ft){Tt(this,this[at].get(ft))}load(ft){this.reset();const Ct=Date.now();for(let Ft=ft.length-1;Ft>=0;Ft--){const Ut=ft[Ft],wt=Ut.e||0;if(wt===0)this.set(Ut.k,Ut.v);else{const vt=wt-Ct;vt>0&&this.set(Ut.k,Ut.v,vt)}}}prune(){this[at].forEach((ft,Ct)=>ut(this,Ct,!1))}}},function(o,i,s){var j=s(225),$=s(226),_e=$;_e.v1=j,_e.v4=$,o.exports=_e},function(o,i,s){var j=s(37).Colorizer;o.exports=function($){return j.addColors($.colors||$),$}},function(o,i,s){var j={};o.exports=j,j.themes={};var $=s(10),_e=j.styles=s(108),tt=Object.defineProperties,et=new RegExp(/[\r\n]+/g);j.supportsColor=s(109).supportsColor,j.enabled===void 0&&(j.enabled=j.supportsColor()!==!1),j.enable=function(){j.enabled=!0},j.disable=function(){j.enabled=!1},j.stripColors=j.strip=function(mt){return(""+mt).replace(/\x1B\[\d+m/g,"")},j.stylize=function(mt,bt){return j.enabled?_e[bt].open+mt+_e[bt].close:mt+""};var rt=/[|\\{}()[\]^$+*?.]/g;function ot(mt){var bt=function Tt(){return ct.apply(Tt,arguments)};return bt._styles=mt,bt.__proto__=at,bt}var lt,dt=(lt={},_e.grey=_e.gray,Object.keys(_e).forEach(function(mt){_e[mt].closeRe=new RegExp(function(bt){if(typeof bt!="string")throw new TypeError("Expected a string");return bt.replace(rt,"\\$&")}(_e[mt].close),"g"),lt[mt]={get:function(){return ot(this._styles.concat(mt))}}}),lt),at=tt(function(){},dt);function ct(){var mt=Array.prototype.slice.call(arguments),bt=mt.map(function(Ct){return Ct!==void 0&&Ct.constructor===String?Ct:$.inspect(Ct)}).join(" ");if(!j.enabled||!bt)return bt;for(var Tt=bt.indexOf(` -`)!=-1,ht=this._styles,yt=ht.length;yt--;){var ft=_e[ht[yt]];bt=ft.open+bt.replace(ft.closeRe,ft.open)+ft.close,Tt&&(bt=bt.replace(et,function(Ct){return ft.close+Ct+ft.open}))}return bt}j.setTheme=function(mt){if(typeof mt!="string")for(var bt in mt)(function(Tt){j[Tt]=function(ht){if(typeof mt[Tt]=="object"){var yt=ht;for(var ft in mt[Tt])yt=j[mt[Tt][ft]](yt);return yt}return j[mt[Tt]](ht)}})(bt);else console.log("colors.setTheme now only accepts an object, not a string. If you are trying to set a theme from a file, it is now your (the caller's) responsibility to require the file. The old syntax looked like colors.setTheme(__dirname + '/../themes/generic-logging.js'); The new syntax looks like colors.setTheme(require(__dirname + '/../themes/generic-logging.js'));")};var st=function(mt,bt){var Tt=bt.split("");return(Tt=Tt.map(mt)).join("")};for(var ut in j.trap=s(111),j.zalgo=s(112),j.maps={},j.maps.america=s(113)(j),j.maps.zebra=s(114)(j),j.maps.rainbow=s(115)(j),j.maps.random=s(116)(j),j.maps)(function(mt){j[mt]=function(bt){return st(j.maps[mt],bt)}})(ut);tt(j,function(){var mt={};return Object.keys(dt).forEach(function(bt){mt[bt]={get:function(){return ot([bt])}}}),mt}())},function(o,i){o.exports=function(s){return s&&typeof s=="object"&&typeof s.copy=="function"&&typeof s.fill=="function"&&typeof s.readUInt8=="function"}},function(o,i){typeof Object.create=="function"?o.exports=function(s,j){s.super_=j,s.prototype=Object.create(j.prototype,{constructor:{value:s,enumerable:!1,writable:!0,configurable:!0}})}:o.exports=function(s,j){s.super_=j;var $=function(){};$.prototype=j.prototype,s.prototype=new $,s.prototype.constructor=s}},function(o,i){var s={};o.exports=s;var j={reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29],black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],gray:[90,39],grey:[90,39],bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],blackBG:[40,49],redBG:[41,49],greenBG:[42,49],yellowBG:[43,49],blueBG:[44,49],magentaBG:[45,49],cyanBG:[46,49],whiteBG:[47,49]};Object.keys(j).forEach(function($){var _e=j[$],tt=s[$]=[];tt.open="\x1B["+_e[0]+"m",tt.close="\x1B["+_e[1]+"m"})},function(o,i,s){(function(j){var $=s(15),_e=s(110),tt=j.env,et=void 0;function rt(ot){return function(lt){return lt!==0&&{level:lt,hasBasic:!0,has256:lt>=2,has16m:lt>=3}}(function(lt){if(et===!1)return 0;if(_e("color=16m")||_e("color=full")||_e("color=truecolor"))return 3;if(_e("color=256"))return 2;if(lt&&!lt.isTTY&&et!==!0)return 0;var dt=et?1:0;if(j.platform==="win32"){var at=$.release().split(".");return Number(j.versions.node.split(".")[0])>=8&&Number(at[0])>=10&&Number(at[2])>=10586?Number(at[2])>=14931?3:2:1}if("CI"in tt)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI"].some(function(st){return st in tt})||tt.CI_NAME==="codeship"?1:dt;if("TEAMCITY_VERSION"in tt)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(tt.TEAMCITY_VERSION)?1:0;if("TERM_PROGRAM"in tt){var ct=parseInt((tt.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(tt.TERM_PROGRAM){case"iTerm.app":return ct>=3?3:2;case"Hyper":return 3;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test("xterm-256color")?2:/^screen|^xterm|^vt100|^rxvt|color|ansi|cygwin|linux/i.test("xterm-256color")||"COLORTERM"in tt?1:dt}(ot))}_e("no-color")||_e("no-colors")||_e("color=false")?et=!1:(_e("color")||_e("colors")||_e("color=true")||_e("color=always"))&&(et=!0),"FORCE_COLOR"in tt&&(et=tt.FORCE_COLOR.length===0||parseInt(tt.FORCE_COLOR,10)!==0),o.exports={supportsColor:rt,stdout:rt(j.stdout),stderr:rt(j.stderr)}}).call(this,s(2))},function(o,i,s){(function(j){o.exports=function($,_e){var tt=(_e=_e||j.argv).indexOf("--"),et=/^-{1,2}/.test($)?"":"--",rt=_e.indexOf(et+$);return rt!==-1&&(tt===-1||rt0&&arguments[0]!==void 0?arguments[0]:{};j(this,dt),st.levels||(st.levels=rt.npm.levels),this.colorizer=new _e(st),this.padder=new tt(st),this.options=st}var at,ct;return at=dt,(ct=[{key:"transform",value:function(st,ut){return this.colorizer.transform(this.padder.transform(st,ut),ut),st[ot]="".concat(st.level,":").concat(st.message),st}}])&&$(at.prototype,ct),dt}();o.exports=function(dt){return new lt(dt)},o.exports.Format=lt},function(o,i,s){var j=s(9);function $(tt){if(tt.every(_e))return function(et){for(var rt=et,ot=0;ot1&&arguments[1]!==void 0?arguments[1]:{};return rt[_e]=(ot.stable?tt.stableStringify:tt)(rt,ot.replacer||et,ot.space),rt})}).call(this,s(4).Buffer)},function(o,i,s){i.byteLength=function(dt){var at=ot(dt),ct=at[0],st=at[1];return 3*(ct+st)/4-st},i.toByteArray=function(dt){for(var at,ct=ot(dt),st=ct[0],ut=ct[1],mt=new _e(function(yt,ft,Ct){return 3*(ft+Ct)/4-Ct}(0,st,ut)),bt=0,Tt=ut>0?st-4:st,ht=0;ht>16&255,mt[bt++]=at>>8&255,mt[bt++]=255&at;return ut===2&&(at=$[dt.charCodeAt(ht)]<<2|$[dt.charCodeAt(ht+1)]>>4,mt[bt++]=255&at),ut===1&&(at=$[dt.charCodeAt(ht)]<<10|$[dt.charCodeAt(ht+1)]<<4|$[dt.charCodeAt(ht+2)]>>2,mt[bt++]=at>>8&255,mt[bt++]=255&at),mt},i.fromByteArray=function(dt){for(var at,ct=dt.length,st=ct%3,ut=[],mt=0,bt=ct-st;mtbt?bt:mt+16383));return st===1?(at=dt[ct-1],ut.push(j[at>>2]+j[at<<4&63]+"==")):st===2&&(at=(dt[ct-2]<<8)+dt[ct-1],ut.push(j[at>>10]+j[at>>4&63]+j[at<<2&63]+"=")),ut.join("")};for(var j=[],$=[],_e=typeof Uint8Array!="undefined"?Uint8Array:Array,tt="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",et=0,rt=tt.length;et0)throw new Error("Invalid string. Length must be a multiple of 4");var ct=dt.indexOf("=");return ct===-1&&(ct=at),[ct,ct===at?0:4-ct%4]}function lt(dt,at,ct){for(var st,ut,mt=[],bt=at;bt>18&63]+j[ut>>12&63]+j[ut>>6&63]+j[63&ut]);return mt.join("")}$["-".charCodeAt(0)]=62,$["_".charCodeAt(0)]=63},function(o,i){i.read=function(s,j,$,_e,tt){var et,rt,ot=8*tt-_e-1,lt=(1<>1,at=-7,ct=$?tt-1:0,st=$?-1:1,ut=s[j+ct];for(ct+=st,et=ut&(1<<-at)-1,ut>>=-at,at+=ot;at>0;et=256*et+s[j+ct],ct+=st,at-=8);for(rt=et&(1<<-at)-1,et>>=-at,at+=_e;at>0;rt=256*rt+s[j+ct],ct+=st,at-=8);if(et===0)et=1-dt;else{if(et===lt)return rt?NaN:1/0*(ut?-1:1);rt+=Math.pow(2,_e),et-=dt}return(ut?-1:1)*rt*Math.pow(2,et-_e)},i.write=function(s,j,$,_e,tt,et){var rt,ot,lt,dt=8*et-tt-1,at=(1<>1,st=tt===23?Math.pow(2,-24)-Math.pow(2,-77):0,ut=_e?0:et-1,mt=_e?1:-1,bt=j<0||j===0&&1/j<0?1:0;for(j=Math.abs(j),isNaN(j)||j===1/0?(ot=isNaN(j)?1:0,rt=at):(rt=Math.floor(Math.log(j)/Math.LN2),j*(lt=Math.pow(2,-rt))<1&&(rt--,lt*=2),(j+=rt+ct>=1?st/lt:st*Math.pow(2,1-ct))*lt>=2&&(rt++,lt/=2),rt+ct>=at?(ot=0,rt=at):rt+ct>=1?(ot=(j*lt-1)*Math.pow(2,tt),rt+=ct):(ot=j*Math.pow(2,ct-1)*Math.pow(2,tt),rt=0));tt>=8;s[$+ut]=255&ot,ut+=mt,ot/=256,tt-=8);for(rt=rt<0;s[$+ut]=255&rt,ut+=mt,rt/=256,dt-=8);s[$+ut-mt]|=128*bt}},function(o,i,s){var j=s(9);o.exports=j(function($,_e){return _e.message?($.message="[".concat(_e.label,"] ").concat($.message),$):($.label=_e.label,$)})},function(o,i,s){var j=s(9),$=s(3).MESSAGE,_e=s(31);o.exports=j(function(tt){var et={};return tt.message&&(et["@message"]=tt.message,delete tt.message),tt.timestamp&&(et["@timestamp"]=tt.timestamp,delete tt.timestamp),et["@fields"]=tt,tt[$]=_e(et),tt})},function(o,i,s){var j=s(9);function $(tt,et,rt){var ot,lt,dt,at=et.reduce(function(st,ut){return st[ut]=tt[ut],delete tt[ut],st},{}),ct=Object.keys(tt).reduce(function(st,ut){return st[ut]=tt[ut],delete tt[ut],st},{});return Object.assign(tt,at,(dt=ct,(lt=rt)in(ot={})?Object.defineProperty(ot,lt,{value:dt,enumerable:!0,configurable:!0,writable:!0}):ot[lt]=dt,ot)),tt}function _e(tt,et,rt){return tt[rt]=et.reduce(function(ot,lt){return ot[lt]=tt[lt],delete tt[lt],ot},{}),tt}o.exports=j(function(tt){var et=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},rt="metadata";et.key&&(rt=et.key);var ot=[];return et.fillExcept||et.fillWith||(ot.push("level"),ot.push("message")),et.fillExcept&&(ot=et.fillExcept),ot.length>0?$(tt,ot,rt):et.fillWith?_e(tt,et.fillWith,rt):tt})},function(o,i,s){var j=s(10).inspect,$=s(9),_e=s(3),tt=_e.LEVEL,et=_e.MESSAGE,rt=_e.SPLAT;o.exports=$(function(ot){var lt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},dt=Object.assign({},ot);return delete dt[tt],delete dt[et],delete dt[rt],ot[et]=j(dt,!1,lt.depth||null,lt.colorize),ot})},function(o,i,s){function j(tt,et){for(var rt=0;rtdt.length)&&(at=dt.length);for(var ct=0,st=new Array(at);ct1?mt.splice(0):mt,ht=Tt.length;if(ht)for(var yt=0;yt1&&arguments[1]!==void 0?arguments[1]:{};return tt.format&&(_e.timestamp=typeof tt.format=="function"?tt.format():j.format(new Date,tt.format)),_e.timestamp||(_e.timestamp=new Date().toISOString()),tt.alias&&(_e[tt.alias]=_e.timestamp),_e})},function(o,i,s){s.r(i),s.d(i,"assign",function(){return rt}),s.d(i,"format",function(){return vt}),s.d(i,"parse",function(){return At}),s.d(i,"defaultI18n",function(){return at}),s.d(i,"setGlobalDateI18n",function(){return st}),s.d(i,"setGlobalDateMasks",function(){return wt});var j=/d{1,4}|M{1,4}|YY(?:YY)?|S{1,3}|Do|ZZ|Z|([HhMsDm])\1?|[aA]|"[^"]*"|'[^']*'/g,$="[^\\s]+",_e=/\[([^]*?)\]/gm;function tt(Mt,Lt){for(var kt=[],Rt=0,Ot=Mt.length;Rt-1?Rt:null}};function rt(Mt){for(var Lt=[],kt=1;kt3?0:(Mt-Mt%10!=10?1:0)*Mt%10]}},ct=rt({},at),st=function(Mt){return ct=rt(ct,Mt)},ut=function(Mt){return Mt.replace(/[|\\{()[^$+*?.-]/g,"\\$&")},mt=function(Mt,Lt){for(Lt===void 0&&(Lt=2),Mt=String(Mt);Mt.length0?"-":"+")+mt(100*Math.floor(Math.abs(Lt)/60)+Math.abs(Lt)%60,4)},Z:function(Mt){var Lt=Mt.getTimezoneOffset();return(Lt>0?"-":"+")+mt(Math.floor(Math.abs(Lt)/60),2)+":"+mt(Math.abs(Lt)%60,2)}},Tt=function(Mt){return+Mt-1},ht=[null,"[1-9]\\d?"],yt=[null,$],ft=["isPm",$,function(Mt,Lt){var kt=Mt.toLowerCase();return kt===Lt.amPm[0]?0:kt===Lt.amPm[1]?1:null}],Ct=["timezoneOffset","[^\\s]*?[\\+\\-]\\d\\d:?\\d\\d|[^\\s]*?Z?",function(Mt){var Lt=(Mt+"").match(/([+-]|\d\d)/gi);if(Lt){var kt=60*+Lt[1]+parseInt(Lt[2],10);return Lt[0]==="+"?kt:-kt}return 0}],Ft={D:["day","[1-9]\\d?"],DD:["day","\\d\\d"],Do:["day","[1-9]\\d?"+$,function(Mt){return parseInt(Mt,10)}],M:["month","[1-9]\\d?",Tt],MM:["month","\\d\\d",Tt],YY:["year","\\d\\d",function(Mt){var Lt=+(""+new Date().getFullYear()).substr(0,2);return+(""+(+Mt>68?Lt-1:Lt)+Mt)}],h:["hour","[1-9]\\d?",void 0,"isPm"],hh:["hour","\\d\\d",void 0,"isPm"],H:["hour","[1-9]\\d?"],HH:["hour","\\d\\d"],m:["minute","[1-9]\\d?"],mm:["minute","\\d\\d"],s:["second","[1-9]\\d?"],ss:["second","\\d\\d"],YYYY:["year","\\d{4}"],S:["millisecond","\\d",function(Mt){return 100*+Mt}],SS:["millisecond","\\d\\d",function(Mt){return 10*+Mt}],SSS:["millisecond","\\d{3}"],d:ht,dd:ht,ddd:yt,dddd:yt,MMM:["month",$,et("monthNamesShort")],MMMM:["month",$,et("monthNames")],a:ft,A:ft,ZZ:Ct,Z:Ct},Ut={default:"ddd MMM DD YYYY HH:mm:ss",shortDate:"M/D/YY",mediumDate:"MMM D, YYYY",longDate:"MMMM D, YYYY",fullDate:"dddd, MMMM D, YYYY",isoDate:"YYYY-MM-DD",isoDateTime:"YYYY-MM-DDTHH:mm:ssZ",shortTime:"HH:mm",mediumTime:"HH:mm:ss",longTime:"HH:mm:ss.SSS"},wt=function(Mt){return rt(Ut,Mt)},vt=function(Mt,Lt,kt){if(Lt===void 0&&(Lt=Ut.default),kt===void 0&&(kt={}),typeof Mt=="number"&&(Mt=new Date(Mt)),Object.prototype.toString.call(Mt)!=="[object Date]"||isNaN(Mt.getTime()))throw new Error("Invalid Date pass to format");var Rt=[];Lt=(Lt=Ut[Lt]||Lt).replace(_e,function(It,St){return Rt.push(St),"@@@"});var Ot=rt(rt({},ct),kt);return(Lt=Lt.replace(j,function(It){return bt[It](Mt,Ot)})).replace(/@@@/g,function(){return Rt.shift()})};function At(Mt,Lt,kt){if(kt===void 0&&(kt={}),typeof Lt!="string")throw new Error("Invalid format in fecha parse");if(Lt=Ut[Lt]||Lt,Mt.length>1e3)return null;var Rt={year:new Date().getFullYear(),month:0,day:1,hour:0,minute:0,second:0,millisecond:0,isPm:null,timezoneOffset:null},Ot=[],It=[],St=Lt.replace(_e,function(Zt,rn){return It.push(ut(rn)),"@@@"}),gt={},Bt={};St=ut(St).replace(j,function(Zt){var rn=Ft[Zt],cn=rn[0],sn=rn[1],Ht=rn[3];if(gt[cn])throw new Error("Invalid format. "+cn+" specified twice in format");return gt[cn]=!0,Ht&&(Bt[Ht]=!0),Ot.push(rn),"("+sn+")"}),Object.keys(Bt).forEach(function(Zt){if(!gt[Zt])throw new Error("Invalid format. "+Zt+" is required in specified format")}),St=St.replace(/@@@/g,function(){return It.shift()});var Dt=Mt.match(new RegExp(St,"i"));if(!Dt)return null;for(var Yt=rt(rt({},ct),kt),Xt=1;Xt","maintainers":["Jarrett Cruger ","Chris Alderson ","David Hyde "],"repository":{"type":"git","url":"https://github.com/winstonjs/winston.git"},"keywords":["winston","logger","logging","logs","sysadmin","bunyan","pino","loglevel","tools","json","stream"],"dependencies":{"async":"^3.1.0","@dabh/diagnostics":"^2.0.2","is-stream":"^2.0.0","logform":"^2.2.0","one-time":"^1.0.0","readable-stream":"^3.4.0","stack-trace":"0.0.x","triple-beam":"^1.3.0","winston-transport":"^4.4.0"},"devDependencies":{"@babel/cli":"^7.10.3","@babel/core":"^7.10.3","@babel/preset-env":"^7.10.3","@types/node":"^14.0.13","abstract-winston-transport":"^0.5.1","assume":"^2.2.0","colors":"^1.4.0","cross-spawn-async":"^2.2.5","eslint-config-populist":"^4.2.0","hock":"^1.4.1","mocha":"^8.0.1","nyc":"^15.1.0","rimraf":"^3.0.2","split2":"^3.1.1","std-mocks":"^1.0.1","through2":"^3.0.1","winston-compat":"^0.1.5"},"main":"./lib/winston","browser":"./dist/winston","types":"./index.d.ts","scripts":{"lint":"populist lib/*.js lib/winston/*.js lib/winston/**/*.js","pretest":"npm run lint","test":"nyc --reporter=text --reporter lcov npm run test:mocha","test:mocha":"mocha test/*.test.js test/**/*.test.js --exit","build":"./node_modules/.bin/rimraf dist && babel lib -d dist","prepublishOnly":"npm run build"},"engines":{"node":">= 6.4.0"},"license":"MIT"}')},function(o,i,s){Object.defineProperty(i,"Console",{configurable:!0,enumerable:!0,get:function(){return s(139)}}),Object.defineProperty(i,"File",{configurable:!0,enumerable:!0,get:function(){return s(148)}}),Object.defineProperty(i,"Http",{configurable:!0,enumerable:!0,get:function(){return s(188)}}),Object.defineProperty(i,"Stream",{configurable:!0,enumerable:!0,get:function(){return s(200)}})},function(o,i,s){(function(j){function $(mt){return($=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(bt){return typeof bt}:function(bt){return bt&&typeof Symbol=="function"&&bt.constructor===Symbol&&bt!==Symbol.prototype?"symbol":typeof bt})(mt)}function _e(mt,bt){if(!(mt instanceof bt))throw new TypeError("Cannot call a class as a function")}function tt(mt,bt){for(var Tt=0;Tt0&&arguments[0]!==void 0?arguments[0]:{};return _e(this,yt),(ft=ht.call(this,Ct)).name=Ct.name||"console",ft.stderrLevels=ft._stringArrayToSet(Ct.stderrLevels),ft.consoleWarnLevels=ft._stringArrayToSet(Ct.consoleWarnLevels),ft.eol=Ct.eol||dt.EOL,ft.setMaxListeners(30),ft}return bt=yt,(Tt=[{key:"log",value:function(ft,Ct){var Ft=this;return j(function(){return Ft.emit("logged",ft)}),this.stderrLevels[ft[ct]]?(console._stderr?console._stderr.write("".concat(ft[st]).concat(this.eol)):console.error(ft[st]),void(Ct&&Ct())):this.consoleWarnLevels[ft[ct]]?(console._stderr?console._stderr.write("".concat(ft[st]).concat(this.eol)):console.warn(ft[st]),void(Ct&&Ct())):(console._stdout?console._stdout.write("".concat(ft[st]).concat(this.eol)):console.log(ft[st]),void(Ct&&Ct()))}},{key:"_stringArrayToSet",value:function(ft,Ct){if(!ft)return{};if(Ct=Ct||"Cannot make set from type other than Array of string elements",!Array.isArray(ft))throw new Error(Ct);return ft.reduce(function(Ft,Ut){if(typeof Ut!="string")throw new Error(Ct);return Ft[Ut]=!0,Ft},{})}}])&&tt(bt.prototype,Tt),yt}(ut)}).call(this,s(12).setImmediate)},function(o,i,s){(function(j,$){(function(_e,tt){if(!_e.setImmediate){var et,rt,ot,lt,dt,at=1,ct={},st=!1,ut=_e.document,mt=Object.getPrototypeOf&&Object.getPrototypeOf(_e);mt=mt&&mt.setTimeout?mt:_e,{}.toString.call(_e.process)==="[object process]"?et=function(ht){$.nextTick(function(){Tt(ht)})}:function(){if(_e.postMessage&&!_e.importScripts){var ht=!0,yt=_e.onmessage;return _e.onmessage=function(){ht=!1},_e.postMessage("","*"),_e.onmessage=yt,ht}}()?(lt="setImmediate$"+Math.random()+"$",dt=function(ht){ht.source===_e&&typeof ht.data=="string"&&ht.data.indexOf(lt)===0&&Tt(+ht.data.slice(lt.length))},_e.addEventListener?_e.addEventListener("message",dt,!1):_e.attachEvent("onmessage",dt),et=function(ht){_e.postMessage(lt+ht,"*")}):_e.MessageChannel?((ot=new MessageChannel).port1.onmessage=function(ht){Tt(ht.data)},et=function(ht){ot.port2.postMessage(ht)}):ut&&"onreadystatechange"in ut.createElement("script")?(rt=ut.documentElement,et=function(ht){var yt=ut.createElement("script");yt.onreadystatechange=function(){Tt(ht),yt.onreadystatechange=null,rt.removeChild(yt),yt=null},rt.appendChild(yt)}):et=function(ht){setTimeout(Tt,0,ht)},mt.setImmediate=function(ht){typeof ht!="function"&&(ht=new Function(""+ht));for(var yt=new Array(arguments.length-1),ft=0;ft0?(typeof gt=="string"||Jt.objectMode||Object.getPrototypeOf(gt)===lt.prototype||(gt=function(zt){return lt.from(zt)}(gt)),Dt?Jt.endEmitted?St.emit("error",new Error("stream.unshift() after end event")):Ct(St,Jt,gt,!0):Jt.ended?St.emit("error",new Error("stream.push() after EOF")):(Jt.reading=!1,Jt.decoder&&!Bt?(gt=Jt.decoder.write(gt),Jt.objectMode||gt.length!==0?Ct(St,Jt,gt,!1):vt(St,Jt)):Ct(St,Jt,gt,!1))):Dt||(Jt.reading=!1)),function(zt){return!zt.ended&&(zt.needReadable||zt.lengthgt.highWaterMark&&(gt.highWaterMark=function(Bt){return Bt>=8388608?Bt=8388608:(Bt--,Bt|=Bt>>>1,Bt|=Bt>>>2,Bt|=Bt>>>4,Bt|=Bt>>>8,Bt|=Bt>>>16,Bt++),Bt}(St)),St<=gt.length?St:gt.ended?gt.length:(gt.needReadable=!0,0))}function Ut(St){var gt=St._readableState;gt.needReadable=!1,gt.emittedReadable||(st("emitReadable",gt.flowing),gt.emittedReadable=!0,gt.sync?_e.nextTick(wt,St):wt(St))}function wt(St){st("emit readable"),St.emit("readable"),Lt(St)}function vt(St,gt){gt.readingMore||(gt.readingMore=!0,_e.nextTick(At,St,gt))}function At(St,gt){for(var Bt=gt.length;!gt.reading&&!gt.flowing&&!gt.ended&>.length=gt.length?(Bt=gt.decoder?gt.buffer.join(""):gt.buffer.length===1?gt.buffer.head.data:gt.buffer.concat(gt.length),gt.buffer.clear()):Bt=function(Dt,Yt,Xt){var Jt;return Dten.length?en.length:zt;if(Zt===en.length?$t+=en:$t+=en.slice(0,zt),(zt-=Zt)===0){Zt===en.length?(++Pt,xt.next?Wt.head=xt.next:Wt.head=Wt.tail=null):(Wt.head=xt,xt.data=en.slice(Zt));break}++Pt}return Wt.length-=Pt,$t}(Dt,Yt):function(zt,Wt){var xt=lt.allocUnsafe(zt),Pt=Wt.head,$t=1;for(Pt.data.copy(xt),zt-=Pt.data.length;Pt=Pt.next;){var en=Pt.data,Zt=zt>en.length?en.length:zt;if(en.copy(xt,xt.length-zt,0,Zt),(zt-=Zt)===0){Zt===en.length?(++$t,Pt.next?Wt.head=Pt.next:Wt.head=Wt.tail=null):(Wt.head=Pt,Pt.data=en.slice(Zt));break}++$t}return Wt.length-=$t,xt}(Dt,Yt),Jt}(St,gt.buffer,gt.decoder),Bt);var Bt}function Rt(St){var gt=St._readableState;if(gt.length>0)throw new Error('"endReadable()" called on non-empty stream');gt.endEmitted||(gt.ended=!0,_e.nextTick(Ot,gt,St))}function Ot(St,gt){St.endEmitted||St.length!==0||(St.endEmitted=!0,gt.readable=!1,gt.emit("end"))}function It(St,gt){for(var Bt=0,Dt=St.length;Bt=gt.highWaterMark||gt.ended))return st("read: emitReadable",gt.length,gt.ended),gt.length===0&>.ended?Rt(this):Ut(this),null;if((St=Ft(St,gt))===0&>.ended)return gt.length===0&&Rt(this),null;var Dt,Yt=gt.needReadable;return st("need readable",Yt),(gt.length===0||gt.length-St0?kt(St,gt):null)===null?(gt.needReadable=!0,St=0):gt.length-=St,gt.length===0&&(gt.ended||(gt.needReadable=!0),Bt!==St&>.ended&&Rt(this)),Dt!==null&&this.emit("data",Dt),Dt},yt.prototype._read=function(St){this.emit("error",new Error("_read() is not implemented"))},yt.prototype.pipe=function(St,gt){var Bt=this,Dt=this._readableState;switch(Dt.pipesCount){case 0:Dt.pipes=St;break;case 1:Dt.pipes=[Dt.pipes,St];break;default:Dt.pipes.push(St)}Dt.pipesCount+=1,st("pipe count=%d opts=%j",Dt.pipesCount,gt);var Yt=(!gt||gt.end!==!1)&&St!==$.stdout&&St!==$.stderr?Jt:rn;function Xt(cn,sn){st("onunpipe"),cn===Bt&&sn&&sn.hasUnpiped===!1&&(sn.hasUnpiped=!0,st("cleanup"),St.removeListener("close",en),St.removeListener("finish",Zt),St.removeListener("drain",zt),St.removeListener("error",$t),St.removeListener("unpipe",Xt),Bt.removeListener("end",Jt),Bt.removeListener("end",rn),Bt.removeListener("data",Pt),Wt=!0,!Dt.awaitDrain||St._writableState&&!St._writableState.needDrain||zt())}function Jt(){st("onend"),St.end()}Dt.endEmitted?_e.nextTick(Yt):Bt.once("end",Yt),St.on("unpipe",Xt);var zt=function(cn){return function(){var sn=cn._readableState;st("pipeOnDrain",sn.awaitDrain),sn.awaitDrain&&sn.awaitDrain--,sn.awaitDrain===0&&rt(cn,"data")&&(sn.flowing=!0,Lt(cn))}}(Bt);St.on("drain",zt);var Wt=!1,xt=!1;function Pt(cn){st("ondata"),xt=!1,St.write(cn)!==!1||xt||((Dt.pipesCount===1&&Dt.pipes===St||Dt.pipesCount>1&&It(Dt.pipes,St)!==-1)&&!Wt&&(st("false write response, pause",Bt._readableState.awaitDrain),Bt._readableState.awaitDrain++,xt=!0),Bt.pause())}function $t(cn){st("onerror",cn),rn(),St.removeListener("error",$t),rt(St,"error")===0&&St.emit("error",cn)}function en(){St.removeListener("finish",Zt),rn()}function Zt(){st("onfinish"),St.removeListener("close",en),rn()}function rn(){st("unpipe"),Bt.unpipe(St)}return Bt.on("data",Pt),function(cn,sn,Ht){if(typeof cn.prependListener=="function")return cn.prependListener(sn,Ht);cn._events&&cn._events[sn]?et(cn._events[sn])?cn._events[sn].unshift(Ht):cn._events[sn]=[Ht,cn._events[sn]]:cn.on(sn,Ht)}(St,"error",$t),St.once("close",en),St.once("finish",Zt),St.emit("pipe",Bt),Dt.flowing||(st("pipe resume"),Bt.resume()),St},yt.prototype.unpipe=function(St){var gt=this._readableState,Bt={hasUnpiped:!1};if(gt.pipesCount===0)return this;if(gt.pipesCount===1)return St&&St!==gt.pipes||(St||(St=gt.pipes),gt.pipes=null,gt.pipesCount=0,gt.flowing=!1,St&&St.emit("unpipe",this,Bt)),this;if(!St){var Dt=gt.pipes,Yt=gt.pipesCount;gt.pipes=null,gt.pipesCount=0,gt.flowing=!1;for(var Xt=0;Xt0?this.tail.next=et:this.head=et,this.tail=et,++this.length},_e.prototype.unshift=function(tt){var et={data:tt,next:this.head};this.length===0&&(this.tail=et),this.head=et,++this.length},_e.prototype.shift=function(){if(this.length!==0){var tt=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,tt}},_e.prototype.clear=function(){this.head=this.tail=null,this.length=0},_e.prototype.join=function(tt){if(this.length===0)return"";for(var et=this.head,rt=""+et.data;et=et.next;)rt+=tt+et.data;return rt},_e.prototype.concat=function(tt){if(this.length===0)return j.alloc(0);if(this.length===1)return this.head.data;for(var et,rt,ot,lt=j.allocUnsafe(tt>>>0),dt=this.head,at=0;dt;)et=dt.data,rt=lt,ot=at,et.copy(rt,ot),at+=dt.data.length,dt=dt.next;return lt},_e}(),$&&$.inspect&&$.inspect.custom&&(o.exports.prototype[$.inspect.custom]=function(){var _e=$.inspect({length:this.length});return this.constructor.name+" "+_e})},function(o,i){},function(o,i,s){var j=s(4),$=j.Buffer;function _e(et,rt){for(var ot in et)rt[ot]=et[ot]}function tt(et,rt,ot){return $(et,rt,ot)}$.from&&$.alloc&&$.allocUnsafe&&$.allocUnsafeSlow?o.exports=j:(_e(j,i),i.Buffer=tt),_e($,tt),tt.from=function(et,rt,ot){if(typeof et=="number")throw new TypeError("Argument must not be a number");return $(et,rt,ot)},tt.alloc=function(et,rt,ot){if(typeof et!="number")throw new TypeError("Argument must be a number");var lt=$(et);return rt!==void 0?typeof ot=="string"?lt.fill(rt,ot):lt.fill(rt):lt.fill(0),lt},tt.allocUnsafe=function(et){if(typeof et!="number")throw new TypeError("Argument must be a number");return $(et)},tt.allocUnsafeSlow=function(et){if(typeof et!="number")throw new TypeError("Argument must be a number");return j.SlowBuffer(et)}},function(o,i,s){var j=s(10),$=s(3).LEVEL,_e=s(17),tt=o.exports=function(){var et=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(_e.call(this,et),!et.transport||typeof et.transport.log!="function")throw new Error("Invalid transport, must be an object with a log method.");function rt(ot){this.emit("error",ot,this.transport)}this.transport=et.transport,this.level=this.level||et.transport.level,this.handleExceptions=this.handleExceptions||et.transport.handleExceptions,this._deprecated(),this.transport.__winstonError||(this.transport.__winstonError=rt.bind(this),this.transport.on("error",this.transport.__winstonError))};j.inherits(tt,_e),tt.prototype._write=function(et,rt,ot){if(this.silent||et.exception===!0&&!this.handleExceptions)return ot(null);(!this.level||this.levels[this.level]>=this.levels[et[$]])&&this.transport.log(et[$],et.message,et,this._nop),ot(null)},tt.prototype._writev=function(et,rt){for(var ot=0;ot0&&arguments[0]!==void 0?arguments[0]:{};function Rt(Ot){for(var It=arguments.length,St=new Array(It>1?It-1:0),gt=1;gt1&&arguments[1]!==void 0?arguments[1]:function(){};if(this.silent)return Rt(),!0;if(this._drain)this._stream.once("drain",function(){kt._drain=!1,kt.log(Lt,Rt)});else{if(!this._rotate){var Ot="".concat(Lt[bt]).concat(this.eol),It=$.byteLength(Ot);this._pendingSize+=It,this._opening&&!this.rotatedWhileOpening&&this._needsNewFile(this._size+this._pendingSize)&&(this.rotatedWhileOpening=!0);var St=this._stream.write(Ot,gt.bind(this));return St?Rt():(this._drain=!0,this._stream.once("drain",function(){kt._drain=!1,Rt()})),Ct("written",St,this._drain),this.finishIfEnding(),St}this._stream.once("rotate",function(){kt._rotate=!1,kt.log(Lt,Rt)})}function gt(){var Bt=this;this._size+=It,this._pendingSize-=It,Ct("logged %s %s",this._size,Ot),this.emit("logged",Lt),this._opening||this._needsNewFile()&&(this._rotate=!0,this._endStream(function(){return Bt._rotateFile()}))}}},{key:"query",value:function(Lt,kt){typeof Lt=="function"&&(kt=Lt,Lt={}),Lt=function(Dt){return(Dt=Dt||{}).rows=Dt.rows||Dt.limit||10,Dt.start=Dt.start||0,Dt.until=Dt.until||new Date,_e(Dt.until)!=="object"&&(Dt.until=new Date(Dt.until)),Dt.from=Dt.from||Dt.until-864e5,_e(Dt.from)!=="object"&&(Dt.from=new Date(Dt.from)),Dt.order=Dt.order||"desc",Dt}(Lt);var Rt=st.join(this.dirname,this.filename),Ot="",It=[],St=0,gt=ct.createReadStream(Rt,{encoding:"utf8"});function Bt(Dt,Yt){try{var Xt=JSON.parse(Dt);(function(Jt){if(Jt&&_e(Jt)==="object"){var zt=new Date(Jt.timestamp);if(!(Lt.from&&ztLt.until||Lt.level&&Lt.level!==Jt.level))return!0}})(Xt)&&function(Jt){Lt.rows&&It.length>=Lt.rows&&Lt.order!=="desc"?gt.readable&>.destroy():(Lt.fields&&(Jt=Lt.fields.reduce(function(zt,Wt){return zt[Wt]=Jt[Wt],zt},{})),Lt.order==="desc"&&It.length>=Lt.rows&&It.shift(),It.push(Jt))}(Xt)}catch(Jt){Yt||gt.emit("error",Jt)}}gt.on("error",function(Dt){if(gt.readable&>.destroy(),kt)return Dt.code!=="ENOENT"?kt(Dt):kt(null,It)}),gt.on("data",function(Dt){for(var Yt=(Dt=(Ot+Dt).split(/\n+/)).length-1,Xt=0;Xt=Lt.start)&&Bt(Dt[Xt]),St++;Ot=Dt[Yt]}),gt.on("close",function(){Ot&&Bt(Ot,!0),Lt.order==="desc"&&(It=It.reverse()),kt&&kt(null,It)})}},{key:"stream",value:function(){var Lt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},kt=st.join(this.dirname,this.filename),Rt=new ht,Ot={file:kt,start:Lt.start};return Rt.destroy=Ut(Ot,function(It,St){if(It)return Rt.emit("error",It);try{Rt.emit("data",St),St=JSON.parse(St),Rt.emit("log",St)}catch(gt){Rt.emit("error",gt)}}),Rt}},{key:"open",value:function(){var Lt=this;this.filename&&(this._opening||(this._opening=!0,this.stat(function(kt,Rt){if(kt)return Lt.emit("error",kt);Ct("stat done: %s { size: %s }",Lt.filename,Rt),Lt._size=Rt,Lt._dest=Lt._createStream(Lt._stream),Lt._opening=!1,Lt.once("open",function(){Lt._stream.eventNames().includes("rotate")?Lt._stream.emit("rotate"):Lt._rotate=!1})})))}},{key:"stat",value:function(Lt){var kt=this,Rt=this._getFile(),Ot=st.join(this.dirname,Rt);ct.stat(Ot,function(It,St){return It&&It.code==="ENOENT"?(Ct("ENOENT\xA0ok",Ot),kt.filename=Rt,Lt(null,0)):It?(Ct("err ".concat(It.code," ").concat(Ot)),Lt(It)):!St||kt._needsNewFile(St.size)?kt._incFile(function(){return kt.stat(Lt)}):(kt.filename=Rt,void Lt(null,St.size))})}},{key:"close",value:function(Lt){var kt=this;this._stream&&this._stream.end(function(){Lt&&Lt(),kt.emit("flush"),kt.emit("closed")})}},{key:"_needsNewFile",value:function(Lt){return Lt=Lt||this._size,this.maxsize&&Lt>=this.maxsize}},{key:"_onError",value:function(Lt){this.emit("error",Lt)}},{key:"_setupStream",value:function(Lt){return Lt.on("error",this._onError),Lt}},{key:"_cleanupStream",value:function(Lt){return Lt.removeListener("error",this._onError),Lt}},{key:"_rotateFile",value:function(){var Lt=this;this._incFile(function(){return Lt.open()})}},{key:"_endStream",value:function(){var Lt=this,kt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:function(){};this._dest?(this._stream.unpipe(this._dest),this._dest.end(function(){Lt._cleanupStream(Lt._dest),kt()})):kt()}},{key:"_createStream",value:function(Lt){var kt=this,Rt=st.join(this.dirname,this.filename);Ct("create stream start",Rt,this.options);var Ot=ct.createWriteStream(Rt,this.options).on("error",function(St){return Ct(St)}).on("close",function(){return Ct("close",Ot.path,Ot.bytesWritten)}).on("open",function(){Ct("file open ok",Rt),kt.emit("open",Rt),Lt.pipe(Ot),kt.rotatedWhileOpening&&(kt._stream=new yt,kt._stream.setMaxListeners(30),kt._rotateFile(),kt.rotatedWhileOpening=!1,kt._cleanupStream(Ot),Lt.end())});if(Ct("create stream ok",Rt),this.zippedArchive){var It=mt.createGzip();return It.pipe(Ot),It}return Ot}},{key:"_incFile",value:function(Lt){Ct("_incFile",this.filename);var kt=st.extname(this._basename),Rt=st.basename(this._basename,kt);this.tailable?this._checkMaxFilesTailable(kt,Rt,Lt):(this._created+=1,this._checkMaxFilesIncrementing(kt,Rt,Lt))}},{key:"_getFile",value:function(){var Lt=st.extname(this._basename),kt=st.basename(this._basename,Lt),Rt=this.rotationFormat?this.rotationFormat():this._created,Ot=!this.tailable&&this._created?"".concat(kt).concat(Rt).concat(Lt):"".concat(kt).concat(Lt);return this.zippedArchive&&!this.tailable?"".concat(Ot,".gz"):Ot}},{key:"_checkMaxFilesIncrementing",value:function(Lt,kt,Rt){if(!this.maxFiles||this._created1;gt--)It.push(function(Bt,Dt){var Yt=this,Xt="".concat(kt).concat(Bt-1).concat(Lt).concat(St),Jt=st.join(this.dirname,Xt);ct.exists(Jt,function(zt){if(!zt)return Dt(null);Xt="".concat(kt).concat(Bt).concat(Lt).concat(St),ct.rename(Jt,st.join(Yt.dirname,Xt),Dt)})}.bind(this,gt));ut(It,function(){ct.rename(st.join(Ot.dirname,"".concat(kt).concat(Lt)),st.join(Ot.dirname,"".concat(kt,"1").concat(Lt).concat(St)),Rt)})}}},{key:"_createLogDirIfNotExist",value:function(Lt){ct.existsSync(Lt)||ct.mkdirSync(Lt,{recursive:!0})}}])&&et(vt.prototype,At),Mt}(ft)}).call(this,s(12).setImmediate,s(4).Buffer)},function(o,i,s){Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(tt,et){return(0,j.default)($.default,tt,et)};var j=_e(s(150)),$=_e(s(154));function _e(tt){return tt&&tt.__esModule?tt:{default:tt}}o.exports=i.default},function(o,i,s){Object.defineProperty(i,"__esModule",{value:!0});var j=tt(s(41)),$=tt(s(23)),_e=tt(s(27));function tt(et){return et&&et.__esModule?et:{default:et}}i.default=(0,_e.default)((et,rt,ot)=>{var lt=(0,j.default)(rt)?[]:{};et(rt,(dt,at,ct)=>{(0,$.default)(dt)((st,...ut)=>{ut.length<2&&([ut]=ut),lt[at]=ut,ct(st)})},dt=>ot(dt,lt))},3),o.exports=i.default},function(o,i,s){Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(ot){return(0,_e.isAsync)(ot)?function(...lt){const dt=lt.pop();return et(ot.apply(this,lt),dt)}:(0,j.default)(function(lt,dt){var at;try{at=ot.apply(this,lt)}catch(ct){return dt(ct)}if(at&&typeof at.then=="function")return et(at,dt);dt(null,at)})};var j=tt(s(152)),$=tt(s(153)),_e=s(23);function tt(ot){return ot&&ot.__esModule?ot:{default:ot}}function et(ot,lt){return ot.then(dt=>{rt(lt,null,dt)},dt=>{rt(lt,dt&&dt.message?dt:new Error(dt))})}function rt(ot,lt,dt){try{ot(lt,dt)}catch(at){(0,$.default)(ct=>{throw ct},at)}}o.exports=i.default},function(o,i,s){Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(j){return function(...$){var _e=$.pop();return j.call(this,$,_e)}},o.exports=i.default},function(o,i,s){(function(j,$){Object.defineProperty(i,"__esModule",{value:!0}),i.fallback=rt,i.wrap=ot;var _e,tt=i.hasSetImmediate=typeof j=="function"&&j,et=i.hasNextTick=typeof $=="object"&&typeof $.nextTick=="function";function rt(lt){setTimeout(lt,0)}function ot(lt){return(dt,...at)=>lt(()=>dt(...at))}_e=tt?j:et?$.nextTick:rt,i.default=ot(_e)}).call(this,s(12).setImmediate,s(2))},function(o,i,s){Object.defineProperty(i,"__esModule",{value:!0});var j=_e(s(64)),$=_e(s(27));function _e(tt){return tt&&tt.__esModule?tt:{default:tt}}i.default=(0,$.default)(function(tt,et,rt){return(0,j.default)(tt,1,et,rt)},3),o.exports=i.default},function(o,i,s){Object.defineProperty(i,"__esModule",{value:!0});var j=ot(s(65)),$=ot(s(156)),_e=ot(s(66)),tt=s(23),et=ot(s(158)),rt=ot(s(42));function ot(lt){return lt&<.__esModule?lt:{default:lt}}i.default=lt=>(dt,at,ct)=>{if(ct=(0,j.default)(ct),lt<=0)throw new RangeError("concurrency limit cannot be less than 1");if(!dt)return ct(null);if((0,tt.isAsyncGenerator)(dt))return(0,et.default)(dt,lt,at,ct);if((0,tt.isAsyncIterable)(dt))return(0,et.default)(dt[Symbol.asyncIterator](),lt,at,ct);var st=(0,$.default)(dt),ut=!1,mt=!1,bt=0,Tt=!1;function ht(ft,Ct){if(!mt)if(bt-=1,ft)ut=!0,ct(ft);else if(ft===!1)ut=!0,mt=!0;else{if(Ct===rt.default||ut&&bt<=0)return ut=!0,ct(null);Tt||yt()}}function yt(){for(Tt=!0;bt=et||at||lt||(at=!0,tt.next().then(({value:Tt,done:ht})=>{if(!dt&&!lt){if(at=!1,ht)return lt=!0,void(ct<=0&&ot(null));ct++,rt(Tt,st,mt),st++,ut()}}).catch(bt))}function mt(Tt,ht){if(ct-=1,!dt)return Tt?bt(Tt):Tt===!1?(lt=!0,void(dt=!0)):ht===_e.default||lt&&ct<=0?(lt=!0,ot(null)):void ut()}function bt(Tt){dt||(at=!1,lt=!0,ot(Tt))}ut()};var j,$=s(42),_e=(j=$)&&j.__esModule?j:{default:j};o.exports=i.default},function(o,i,s){(function(j){var $=s(4).Buffer,_e=s(160).Transform,tt=s(168),et=s(10),rt=s(72).ok,ot=s(4).kMaxLength,lt="Cannot create final Buffer. It would be larger than 0x"+ot.toString(16)+" bytes";tt.Z_MIN_WINDOWBITS=8,tt.Z_MAX_WINDOWBITS=15,tt.Z_DEFAULT_WINDOWBITS=15,tt.Z_MIN_CHUNK=64,tt.Z_MAX_CHUNK=1/0,tt.Z_DEFAULT_CHUNK=16384,tt.Z_MIN_MEMLEVEL=1,tt.Z_MAX_MEMLEVEL=9,tt.Z_DEFAULT_MEMLEVEL=8,tt.Z_MIN_LEVEL=-1,tt.Z_MAX_LEVEL=9,tt.Z_DEFAULT_LEVEL=tt.Z_DEFAULT_COMPRESSION;for(var dt=Object.keys(tt),at=0;at=ot?Yt=new RangeError(lt):Dt=$.concat(It,St),It=[],kt.close(),Ot(Yt,Dt)}kt.on("error",function(Dt){kt.removeListener("end",Bt),kt.removeListener("readable",gt),Ot(Dt)}),kt.on("end",Bt),kt.end(Rt),gt()}function ht(kt,Rt){if(typeof Rt=="string"&&(Rt=$.from(Rt)),!$.isBuffer(Rt))throw new TypeError("Not a string or buffer");var Ot=kt._finishFlushFlag;return kt._processChunk(Rt,Ot)}function yt(kt){if(!(this instanceof yt))return new yt(kt);Et.call(this,kt,tt.DEFLATE)}function ft(kt){if(!(this instanceof ft))return new ft(kt);Et.call(this,kt,tt.INFLATE)}function Ct(kt){if(!(this instanceof Ct))return new Ct(kt);Et.call(this,kt,tt.GZIP)}function Ft(kt){if(!(this instanceof Ft))return new Ft(kt);Et.call(this,kt,tt.GUNZIP)}function Ut(kt){if(!(this instanceof Ut))return new Ut(kt);Et.call(this,kt,tt.DEFLATERAW)}function wt(kt){if(!(this instanceof wt))return new wt(kt);Et.call(this,kt,tt.INFLATERAW)}function vt(kt){if(!(this instanceof vt))return new vt(kt);Et.call(this,kt,tt.UNZIP)}function At(kt){return kt===tt.Z_NO_FLUSH||kt===tt.Z_PARTIAL_FLUSH||kt===tt.Z_SYNC_FLUSH||kt===tt.Z_FULL_FLUSH||kt===tt.Z_FINISH||kt===tt.Z_BLOCK}function Et(kt,Rt){var Ot=this;if(this._opts=kt=kt||{},this._chunkSize=kt.chunkSize||i.Z_DEFAULT_CHUNK,_e.call(this,kt),kt.flush&&!At(kt.flush))throw new Error("Invalid flush flag: "+kt.flush);if(kt.finishFlush&&!At(kt.finishFlush))throw new Error("Invalid flush flag: "+kt.finishFlush);if(this._flushFlag=kt.flush||tt.Z_NO_FLUSH,this._finishFlushFlag=kt.finishFlush!==void 0?kt.finishFlush:tt.Z_FINISH,kt.chunkSize&&(kt.chunkSizei.Z_MAX_CHUNK))throw new Error("Invalid chunk size: "+kt.chunkSize);if(kt.windowBits&&(kt.windowBitsi.Z_MAX_WINDOWBITS))throw new Error("Invalid windowBits: "+kt.windowBits);if(kt.level&&(kt.leveli.Z_MAX_LEVEL))throw new Error("Invalid compression level: "+kt.level);if(kt.memLevel&&(kt.memLeveli.Z_MAX_MEMLEVEL))throw new Error("Invalid memLevel: "+kt.memLevel);if(kt.strategy&&kt.strategy!=i.Z_FILTERED&&kt.strategy!=i.Z_HUFFMAN_ONLY&&kt.strategy!=i.Z_RLE&&kt.strategy!=i.Z_FIXED&&kt.strategy!=i.Z_DEFAULT_STRATEGY)throw new Error("Invalid strategy: "+kt.strategy);if(kt.dictionary&&!$.isBuffer(kt.dictionary))throw new Error("Invalid dictionary: it should be a Buffer instance");this._handle=new tt.Zlib(Rt);var It=this;this._hadError=!1,this._handle.onerror=function(Bt,Dt){Mt(It),It._hadError=!0;var Yt=new Error(Bt);Yt.errno=Dt,Yt.code=i.codes[Dt],It.emit("error",Yt)};var St=i.Z_DEFAULT_COMPRESSION;typeof kt.level=="number"&&(St=kt.level);var gt=i.Z_DEFAULT_STRATEGY;typeof kt.strategy=="number"&&(gt=kt.strategy),this._handle.init(kt.windowBits||i.Z_DEFAULT_WINDOWBITS,St,kt.memLevel||i.Z_DEFAULT_MEMLEVEL,gt,kt.dictionary),this._buffer=$.allocUnsafe(this._chunkSize),this._offset=0,this._level=St,this._strategy=gt,this.once("end",this.close),Object.defineProperty(this,"_closed",{get:function(){return!Ot._handle},configurable:!0,enumerable:!0})}function Mt(kt,Rt){Rt&&j.nextTick(Rt),kt._handle&&(kt._handle.close(),kt._handle=null)}function Lt(kt){kt.emit("close")}Object.defineProperty(i,"codes",{enumerable:!0,value:Object.freeze(st),writable:!1}),i.Deflate=yt,i.Inflate=ft,i.Gzip=Ct,i.Gunzip=Ft,i.DeflateRaw=Ut,i.InflateRaw=wt,i.Unzip=vt,i.createDeflate=function(kt){return new yt(kt)},i.createInflate=function(kt){return new ft(kt)},i.createDeflateRaw=function(kt){return new Ut(kt)},i.createInflateRaw=function(kt){return new wt(kt)},i.createGzip=function(kt){return new Ct(kt)},i.createGunzip=function(kt){return new Ft(kt)},i.createUnzip=function(kt){return new vt(kt)},i.deflate=function(kt,Rt,Ot){return typeof Rt=="function"&&(Ot=Rt,Rt={}),Tt(new yt(Rt),kt,Ot)},i.deflateSync=function(kt,Rt){return ht(new yt(Rt),kt)},i.gzip=function(kt,Rt,Ot){return typeof Rt=="function"&&(Ot=Rt,Rt={}),Tt(new Ct(Rt),kt,Ot)},i.gzipSync=function(kt,Rt){return ht(new Ct(Rt),kt)},i.deflateRaw=function(kt,Rt,Ot){return typeof Rt=="function"&&(Ot=Rt,Rt={}),Tt(new Ut(Rt),kt,Ot)},i.deflateRawSync=function(kt,Rt){return ht(new Ut(Rt),kt)},i.unzip=function(kt,Rt,Ot){return typeof Rt=="function"&&(Ot=Rt,Rt={}),Tt(new vt(Rt),kt,Ot)},i.unzipSync=function(kt,Rt){return ht(new vt(Rt),kt)},i.inflate=function(kt,Rt,Ot){return typeof Rt=="function"&&(Ot=Rt,Rt={}),Tt(new ft(Rt),kt,Ot)},i.inflateSync=function(kt,Rt){return ht(new ft(Rt),kt)},i.gunzip=function(kt,Rt,Ot){return typeof Rt=="function"&&(Ot=Rt,Rt={}),Tt(new Ft(Rt),kt,Ot)},i.gunzipSync=function(kt,Rt){return ht(new Ft(Rt),kt)},i.inflateRaw=function(kt,Rt,Ot){return typeof Rt=="function"&&(Ot=Rt,Rt={}),Tt(new wt(Rt),kt,Ot)},i.inflateRawSync=function(kt,Rt){return ht(new wt(Rt),kt)},et.inherits(Et,_e),Et.prototype.params=function(kt,Rt,Ot){if(kti.Z_MAX_LEVEL)throw new RangeError("Invalid compression level: "+kt);if(Rt!=i.Z_FILTERED&&Rt!=i.Z_HUFFMAN_ONLY&&Rt!=i.Z_RLE&&Rt!=i.Z_FIXED&&Rt!=i.Z_DEFAULT_STRATEGY)throw new TypeError("Invalid strategy: "+Rt);if(this._level!==kt||this._strategy!==Rt){var It=this;this.flush(tt.Z_SYNC_FLUSH,function(){rt(It._handle,"zlib binding closed"),It._handle.params(kt,Rt),It._hadError||(It._level=kt,It._strategy=Rt,Ot&&Ot())})}else j.nextTick(Ot)},Et.prototype.reset=function(){return rt(this._handle,"zlib binding closed"),this._handle.reset()},Et.prototype._flush=function(kt){this._transform($.alloc(0),"",kt)},Et.prototype.flush=function(kt,Rt){var Ot=this,It=this._writableState;(typeof kt=="function"||kt===void 0&&!Rt)&&(Rt=kt,kt=tt.Z_FULL_FLUSH),It.ended?Rt&&j.nextTick(Rt):It.ending?Rt&&this.once("end",Rt):It.needDrain?Rt&&this.once("drain",function(){return Ot.flush(kt,Rt)}):(this._flushFlag=kt,this.write($.alloc(0),"",Rt))},Et.prototype.close=function(kt){Mt(this,kt),j.nextTick(Lt,this)},Et.prototype._transform=function(kt,Rt,Ot){var It,St=this._writableState,gt=(St.ending||St.ended)&&(!kt||St.length===kt.length);return kt===null||$.isBuffer(kt)?this._handle?(gt?It=this._finishFlushFlag:(It=this._flushFlag,kt.length>=St.length&&(this._flushFlag=this._opts.flush||tt.Z_NO_FLUSH)),void this._processChunk(kt,It,Ot)):Ot(new Error("zlib binding closed")):Ot(new Error("invalid input"))},Et.prototype._processChunk=function(kt,Rt,Ot){var It=kt&&kt.length,St=this._chunkSize-this._offset,gt=0,Bt=this,Dt=typeof Ot=="function";if(!Dt){var Yt,Xt=[],Jt=0;this.on("error",function($t){Yt=$t}),rt(this._handle,"zlib binding closed");do var zt=this._handle.writeSync(Rt,kt,gt,It,this._buffer,this._offset,St);while(!this._hadError&&Pt(zt[0],zt[1]));if(this._hadError)throw Yt;if(Jt>=ot)throw Mt(this),new RangeError(lt);var Wt=$.concat(Xt,Jt);return Mt(this),Wt}rt(this._handle,"zlib binding closed");var xt=this._handle.write(Rt,kt,gt,It,this._buffer,this._offset,St);function Pt($t,en){if(this&&(this.buffer=null,this.callback=null),!Bt._hadError){var Zt=St-en;if(rt(Zt>=0,"have should not go down"),Zt>0){var rn=Bt._buffer.slice(Bt._offset,Bt._offset+Zt);Bt._offset+=Zt,Dt?Bt.push(rn):(Xt.push(rn),Jt+=rn.length)}if((en===0||Bt._offset>=Bt._chunkSize)&&(St=Bt._chunkSize,Bt._offset=0,Bt._buffer=$.allocUnsafe(Bt._chunkSize)),en===0){if(gt+=It-$t,It=$t,!Dt)return!0;var cn=Bt._handle.write(Rt,kt,gt,It,Bt._buffer,Bt._offset,Bt._chunkSize);return cn.callback=Pt,void(cn.buffer=kt)}if(!Dt)return!1;Ot()}}xt.buffer=kt,xt.callback=Pt},et.inherits(yt,Et),et.inherits(ft,Et),et.inherits(Ct,Et),et.inherits(Ft,Et),et.inherits(Ut,Et),et.inherits(wt,Et),et.inherits(vt,Et)}).call(this,s(2))},function(o,i,s){o.exports=$;var j=s(18).EventEmitter;function $(){j.call(this)}s(6)($,j),$.Readable=s(28),$.Writable=s(71),$.Duplex=s(165),$.Transform=s(166),$.PassThrough=s(167),$.Stream=$,$.prototype.pipe=function(_e,tt){var et=this;function rt(ut){_e.writable&&_e.write(ut)===!1&&et.pause&&et.pause()}function ot(){et.readable&&et.resume&&et.resume()}et.on("data",rt),_e.on("drain",ot),_e._isStdio||tt&&tt.end===!1||(et.on("end",dt),et.on("close",at));var lt=!1;function dt(){lt||(lt=!0,_e.end())}function at(){lt||(lt=!0,typeof _e.destroy=="function"&&_e.destroy())}function ct(ut){if(st(),j.listenerCount(this,"error")===0)throw ut}function st(){et.removeListener("data",rt),_e.removeListener("drain",ot),et.removeListener("end",dt),et.removeListener("close",at),et.removeListener("error",ct),_e.removeListener("error",ct),et.removeListener("end",st),et.removeListener("close",st),_e.removeListener("close",st)}return et.on("error",ct),_e.on("error",ct),et.on("end",st),et.on("close",st),_e.on("close",st),_e.emit("pipe",et),_e}},function(o,i){},function(o,i,s){var j=s(43).Buffer,$=s(163);o.exports=function(){function _e(){(function(tt,et){if(!(tt instanceof et))throw new TypeError("Cannot call a class as a function")})(this,_e),this.head=null,this.tail=null,this.length=0}return _e.prototype.push=function(tt){var et={data:tt,next:null};this.length>0?this.tail.next=et:this.head=et,this.tail=et,++this.length},_e.prototype.unshift=function(tt){var et={data:tt,next:this.head};this.length===0&&(this.tail=et),this.head=et,++this.length},_e.prototype.shift=function(){if(this.length!==0){var tt=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,tt}},_e.prototype.clear=function(){this.head=this.tail=null,this.length=0},_e.prototype.join=function(tt){if(this.length===0)return"";for(var et=this.head,rt=""+et.data;et=et.next;)rt+=tt+et.data;return rt},_e.prototype.concat=function(tt){if(this.length===0)return j.alloc(0);if(this.length===1)return this.head.data;for(var et,rt,ot,lt=j.allocUnsafe(tt>>>0),dt=this.head,at=0;dt;)et=dt.data,rt=lt,ot=at,et.copy(rt,ot),at+=dt.data.length,dt=dt.next;return lt},_e}(),$&&$.inspect&&$.inspect.custom&&(o.exports.prototype[$.inspect.custom]=function(){var _e=$.inspect({length:this.length});return this.constructor.name+" "+_e})},function(o,i){},function(o,i,s){o.exports=_e;var j=s(70),$=s(14);function _e(tt){if(!(this instanceof _e))return new _e(tt);j.call(this,tt)}$.inherits=s(6),$.inherits(_e,j),_e.prototype._transform=function(tt,et,rt){rt(null,tt)}},function(o,i,s){o.exports=s(20)},function(o,i,s){o.exports=s(28).Transform},function(o,i,s){o.exports=s(28).PassThrough},function(o,i,s){(function(j,$){var _e=s(72),tt=s(170),et=s(171),rt=s(174),ot=s(177);for(var lt in ot)i[lt]=ot[lt];i.NONE=0,i.DEFLATE=1,i.INFLATE=2,i.GZIP=3,i.GUNZIP=4,i.DEFLATERAW=5,i.INFLATERAW=6,i.UNZIP=7;function dt(at){if(typeof at!="number"||ati.UNZIP)throw new TypeError("Bad argument");this.dictionary=null,this.err=0,this.flush=0,this.init_done=!1,this.level=0,this.memLevel=0,this.mode=at,this.strategy=0,this.windowBits=0,this.write_in_progress=!1,this.pending_close=!1,this.gzip_id_bytes_read=0}dt.prototype.close=function(){this.write_in_progress?this.pending_close=!0:(this.pending_close=!1,_e(this.init_done,"close before init"),_e(this.mode<=i.UNZIP),this.mode===i.DEFLATE||this.mode===i.GZIP||this.mode===i.DEFLATERAW?et.deflateEnd(this.strm):this.mode!==i.INFLATE&&this.mode!==i.GUNZIP&&this.mode!==i.INFLATERAW&&this.mode!==i.UNZIP||rt.inflateEnd(this.strm),this.mode=i.NONE,this.dictionary=null)},dt.prototype.write=function(at,ct,st,ut,mt,bt,Tt){return this._write(!0,at,ct,st,ut,mt,bt,Tt)},dt.prototype.writeSync=function(at,ct,st,ut,mt,bt,Tt){return this._write(!1,at,ct,st,ut,mt,bt,Tt)},dt.prototype._write=function(at,ct,st,ut,mt,bt,Tt,ht){if(_e.equal(arguments.length,8),_e(this.init_done,"write before init"),_e(this.mode!==i.NONE,"already finalized"),_e.equal(!1,this.write_in_progress,"write already in progress"),_e.equal(!1,this.pending_close,"close is pending"),this.write_in_progress=!0,_e.equal(!1,ct===void 0,"must provide flush value"),this.write_in_progress=!0,ct!==i.Z_NO_FLUSH&&ct!==i.Z_PARTIAL_FLUSH&&ct!==i.Z_SYNC_FLUSH&&ct!==i.Z_FULL_FLUSH&&ct!==i.Z_FINISH&&ct!==i.Z_BLOCK)throw new Error("Invalid flush value");if(st==null&&(st=j.alloc(0),mt=0,ut=0),this.strm.avail_in=mt,this.strm.input=st,this.strm.next_in=ut,this.strm.avail_out=ht,this.strm.output=bt,this.strm.next_out=Tt,this.flush=ct,!at)return this._process(),this._checkError()?this._afterSync():void 0;var yt=this;return $.nextTick(function(){yt._process(),yt._after()}),this},dt.prototype._afterSync=function(){var at=this.strm.avail_out,ct=this.strm.avail_in;return this.write_in_progress=!1,[ct,at]},dt.prototype._process=function(){var at=null;switch(this.mode){case i.DEFLATE:case i.GZIP:case i.DEFLATERAW:this.err=et.deflate(this.strm,this.flush);break;case i.UNZIP:switch(this.strm.avail_in>0&&(at=this.strm.next_in),this.gzip_id_bytes_read){case 0:if(at===null)break;if(this.strm.input[at]!==31){this.mode=i.INFLATE;break}if(this.gzip_id_bytes_read=1,at++,this.strm.avail_in===1)break;case 1:if(at===null)break;this.strm.input[at]===139?(this.gzip_id_bytes_read=2,this.mode=i.GUNZIP):this.mode=i.INFLATE;break;default:throw new Error("invalid number of gzip magic number bytes read")}case i.INFLATE:case i.GUNZIP:case i.INFLATERAW:for(this.err=rt.inflate(this.strm,this.flush),this.err===i.Z_NEED_DICT&&this.dictionary&&(this.err=rt.inflateSetDictionary(this.strm,this.dictionary),this.err===i.Z_OK?this.err=rt.inflate(this.strm,this.flush):this.err===i.Z_DATA_ERROR&&(this.err=i.Z_NEED_DICT));this.strm.avail_in>0&&this.mode===i.GUNZIP&&this.err===i.Z_STREAM_END&&this.strm.next_in[0]!==0;)this.reset(),this.err=rt.inflate(this.strm,this.flush);break;default:throw new Error("Unknown mode "+this.mode)}},dt.prototype._checkError=function(){switch(this.err){case i.Z_OK:case i.Z_BUF_ERROR:if(this.strm.avail_out!==0&&this.flush===i.Z_FINISH)return this._error("unexpected end of file"),!1;break;case i.Z_STREAM_END:break;case i.Z_NEED_DICT:return this.dictionary==null?this._error("Missing dictionary"):this._error("Bad dictionary"),!1;default:return this._error("Zlib error"),!1}return!0},dt.prototype._after=function(){if(this._checkError()){var at=this.strm.avail_out,ct=this.strm.avail_in;this.write_in_progress=!1,this.callback(ct,at),this.pending_close&&this.close()}},dt.prototype._error=function(at){this.strm.msg&&(at=this.strm.msg),this.onerror(at,this.err),this.write_in_progress=!1,this.pending_close&&this.close()},dt.prototype.init=function(at,ct,st,ut,mt){_e(arguments.length===4||arguments.length===5,"init(windowBits, level, memLevel, strategy, [dictionary])"),_e(at>=8&&at<=15,"invalid windowBits"),_e(ct>=-1&&ct<=9,"invalid compression level"),_e(st>=1&&st<=9,"invalid memlevel"),_e(ut===i.Z_FILTERED||ut===i.Z_HUFFMAN_ONLY||ut===i.Z_RLE||ut===i.Z_FIXED||ut===i.Z_DEFAULT_STRATEGY,"invalid strategy"),this._init(ct,at,st,ut,mt),this._setDictionary()},dt.prototype.params=function(){throw new Error("deflateParams Not supported")},dt.prototype.reset=function(){this._reset(),this._setDictionary()},dt.prototype._init=function(at,ct,st,ut,mt){switch(this.level=at,this.windowBits=ct,this.memLevel=st,this.strategy=ut,this.flush=i.Z_NO_FLUSH,this.err=i.Z_OK,this.mode!==i.GZIP&&this.mode!==i.GUNZIP||(this.windowBits+=16),this.mode===i.UNZIP&&(this.windowBits+=32),this.mode!==i.DEFLATERAW&&this.mode!==i.INFLATERAW||(this.windowBits=-1*this.windowBits),this.strm=new tt,this.mode){case i.DEFLATE:case i.GZIP:case i.DEFLATERAW:this.err=et.deflateInit2(this.strm,this.level,i.Z_DEFLATED,this.windowBits,this.memLevel,this.strategy);break;case i.INFLATE:case i.GUNZIP:case i.INFLATERAW:case i.UNZIP:this.err=rt.inflateInit2(this.strm,this.windowBits);break;default:throw new Error("Unknown mode "+this.mode)}this.err!==i.Z_OK&&this._error("Init error"),this.dictionary=mt,this.write_in_progress=!1,this.init_done=!0},dt.prototype._setDictionary=function(){if(this.dictionary!=null){switch(this.err=i.Z_OK,this.mode){case i.DEFLATE:case i.DEFLATERAW:this.err=et.deflateSetDictionary(this.strm,this.dictionary)}this.err!==i.Z_OK&&this._error("Failed to set dictionary")}},dt.prototype._reset=function(){switch(this.err=i.Z_OK,this.mode){case i.DEFLATE:case i.DEFLATERAW:case i.GZIP:this.err=et.deflateReset(this.strm);break;case i.INFLATE:case i.INFLATERAW:case i.GUNZIP:this.err=rt.inflateReset(this.strm)}this.err!==i.Z_OK&&this._error("Failed to reset stream")},i.Zlib=dt}).call(this,s(4).Buffer,s(2))},function(o,i,s){var j=Object.getOwnPropertySymbols,$=Object.prototype.hasOwnProperty,_e=Object.prototype.propertyIsEnumerable;function tt(et){if(et==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(et)}o.exports=function(){try{if(!Object.assign)return!1;var et=new String("abc");if(et[5]="de",Object.getOwnPropertyNames(et)[0]==="5")return!1;for(var rt={},ot=0;ot<10;ot++)rt["_"+String.fromCharCode(ot)]=ot;if(Object.getOwnPropertyNames(rt).map(function(dt){return rt[dt]}).join("")!=="0123456789")return!1;var lt={};return"abcdefghijklmnopqrst".split("").forEach(function(dt){lt[dt]=dt}),Object.keys(Object.assign({},lt)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}()?Object.assign:function(et,rt){for(var ot,lt,dt=tt(et),at=1;at4?9:0)}function dt(wt){for(var vt=wt.length;--vt>=0;)wt[vt]=0}function at(wt){var vt=wt.state,At=vt.pending;At>wt.avail_out&&(At=wt.avail_out),At!==0&&($.arraySet(wt.output,vt.pending_buf,vt.pending_out,At,wt.next_out),wt.next_out+=At,vt.pending_out+=At,wt.total_out+=At,wt.avail_out-=At,vt.pending-=At,vt.pending===0&&(vt.pending_out=0))}function ct(wt,vt){_e._tr_flush_block(wt,wt.block_start>=0?wt.block_start:-1,wt.strstart-wt.block_start,vt),wt.block_start=wt.strstart,at(wt.strm)}function st(wt,vt){wt.pending_buf[wt.pending++]=vt}function ut(wt,vt){wt.pending_buf[wt.pending++]=vt>>>8&255,wt.pending_buf[wt.pending++]=255&vt}function mt(wt,vt){var At,Et,Mt=wt.max_chain_length,Lt=wt.strstart,kt=wt.prev_length,Rt=wt.nice_match,Ot=wt.strstart>wt.w_size-262?wt.strstart-(wt.w_size-262):0,It=wt.window,St=wt.w_mask,gt=wt.prev,Bt=wt.strstart+258,Dt=It[Lt+kt-1],Yt=It[Lt+kt];wt.prev_length>=wt.good_match&&(Mt>>=2),Rt>wt.lookahead&&(Rt=wt.lookahead);do if(It[(At=vt)+kt]===Yt&&It[At+kt-1]===Dt&&It[At]===It[Lt]&&It[++At]===It[Lt+1]){Lt+=2,At++;do;while(It[++Lt]===It[++At]&&It[++Lt]===It[++At]&&It[++Lt]===It[++At]&&It[++Lt]===It[++At]&&It[++Lt]===It[++At]&&It[++Lt]===It[++At]&&It[++Lt]===It[++At]&&It[++Lt]===It[++At]&&Ltkt){if(wt.match_start=vt,kt=Et,Et>=Rt)break;Dt=It[Lt+kt-1],Yt=It[Lt+kt]}}while((vt=gt[vt&St])>Ot&&--Mt!=0);return kt<=wt.lookahead?kt:wt.lookahead}function bt(wt){var vt,At,Et,Mt,Lt,kt,Rt,Ot,It,St,gt=wt.w_size;do{if(Mt=wt.window_size-wt.lookahead-wt.strstart,wt.strstart>=gt+(gt-262)){$.arraySet(wt.window,wt.window,gt,gt,0),wt.match_start-=gt,wt.strstart-=gt,wt.block_start-=gt,vt=At=wt.hash_size;do Et=wt.head[--vt],wt.head[vt]=Et>=gt?Et-gt:0;while(--At);vt=At=gt;do Et=wt.prev[--vt],wt.prev[vt]=Et>=gt?Et-gt:0;while(--At);Mt+=gt}if(wt.strm.avail_in===0)break;if(kt=wt.strm,Rt=wt.window,Ot=wt.strstart+wt.lookahead,It=Mt,St=void 0,(St=kt.avail_in)>It&&(St=It),At=St===0?0:(kt.avail_in-=St,$.arraySet(Rt,kt.input,kt.next_in,St,Ot),kt.state.wrap===1?kt.adler=tt(kt.adler,Rt,St,Ot):kt.state.wrap===2&&(kt.adler=et(kt.adler,Rt,St,Ot)),kt.next_in+=St,kt.total_in+=St,St),wt.lookahead+=At,wt.lookahead+wt.insert>=3)for(Lt=wt.strstart-wt.insert,wt.ins_h=wt.window[Lt],wt.ins_h=(wt.ins_h<=3&&(wt.ins_h=(wt.ins_h<=3)if(Et=_e._tr_tally(wt,wt.strstart-wt.match_start,wt.match_length-3),wt.lookahead-=wt.match_length,wt.match_length<=wt.max_lazy_match&&wt.lookahead>=3){wt.match_length--;do wt.strstart++,wt.ins_h=(wt.ins_h<=3&&(wt.ins_h=(wt.ins_h<4096)&&(wt.match_length=2)),wt.prev_length>=3&&wt.match_length<=wt.prev_length){Mt=wt.strstart+wt.lookahead-3,Et=_e._tr_tally(wt,wt.strstart-1-wt.prev_match,wt.prev_length-3),wt.lookahead-=wt.prev_length-1,wt.prev_length-=2;do++wt.strstart<=Mt&&(wt.ins_h=(wt.ins_h<15&&(kt=2,Et-=16),Mt<1||Mt>9||At!==8||Et<8||Et>15||vt<0||vt>9||Lt<0||Lt>4)return ot(wt,-2);Et===8&&(Et=9);var Rt=new ft;return wt.state=Rt,Rt.strm=wt,Rt.wrap=kt,Rt.gzhead=null,Rt.w_bits=Et,Rt.w_size=1<wt.pending_buf_size-5&&(At=wt.pending_buf_size-5);;){if(wt.lookahead<=1){if(bt(wt),wt.lookahead===0&&vt===0)return 1;if(wt.lookahead===0)break}wt.strstart+=wt.lookahead,wt.lookahead=0;var Et=wt.block_start+At;if((wt.strstart===0||wt.strstart>=Et)&&(wt.lookahead=wt.strstart-Et,wt.strstart=Et,ct(wt,!1),wt.strm.avail_out===0)||wt.strstart-wt.block_start>=wt.w_size-262&&(ct(wt,!1),wt.strm.avail_out===0))return 1}return wt.insert=0,vt===4?(ct(wt,!0),wt.strm.avail_out===0?3:4):(wt.strstart>wt.block_start&&(ct(wt,!1),wt.strm.avail_out),1)}),new yt(4,4,8,4,Tt),new yt(4,5,16,8,Tt),new yt(4,6,32,32,Tt),new yt(4,4,16,16,ht),new yt(8,16,32,32,ht),new yt(8,16,128,128,ht),new yt(8,32,128,256,ht),new yt(32,128,258,1024,ht),new yt(32,258,258,4096,ht)],i.deflateInit=function(wt,vt){return Ut(wt,vt,8,15,8,0)},i.deflateInit2=Ut,i.deflateReset=Ft,i.deflateResetKeep=Ct,i.deflateSetHeader=function(wt,vt){return wt&&wt.state?wt.state.wrap!==2?-2:(wt.state.gzhead=vt,0):-2},i.deflate=function(wt,vt){var At,Et,Mt,Lt;if(!wt||!wt.state||vt>5||vt<0)return wt?ot(wt,-2):-2;if(Et=wt.state,!wt.output||!wt.input&&wt.avail_in!==0||Et.status===666&&vt!==4)return ot(wt,wt.avail_out===0?-5:-2);if(Et.strm=wt,At=Et.last_flush,Et.last_flush=vt,Et.status===42)if(Et.wrap===2)wt.adler=0,st(Et,31),st(Et,139),st(Et,8),Et.gzhead?(st(Et,(Et.gzhead.text?1:0)+(Et.gzhead.hcrc?2:0)+(Et.gzhead.extra?4:0)+(Et.gzhead.name?8:0)+(Et.gzhead.comment?16:0)),st(Et,255&Et.gzhead.time),st(Et,Et.gzhead.time>>8&255),st(Et,Et.gzhead.time>>16&255),st(Et,Et.gzhead.time>>24&255),st(Et,Et.level===9?2:Et.strategy>=2||Et.level<2?4:0),st(Et,255&Et.gzhead.os),Et.gzhead.extra&&Et.gzhead.extra.length&&(st(Et,255&Et.gzhead.extra.length),st(Et,Et.gzhead.extra.length>>8&255)),Et.gzhead.hcrc&&(wt.adler=et(wt.adler,Et.pending_buf,Et.pending,0)),Et.gzindex=0,Et.status=69):(st(Et,0),st(Et,0),st(Et,0),st(Et,0),st(Et,0),st(Et,Et.level===9?2:Et.strategy>=2||Et.level<2?4:0),st(Et,3),Et.status=113);else{var kt=8+(Et.w_bits-8<<4)<<8;kt|=(Et.strategy>=2||Et.level<2?0:Et.level<6?1:Et.level===6?2:3)<<6,Et.strstart!==0&&(kt|=32),kt+=31-kt%31,Et.status=113,ut(Et,kt),Et.strstart!==0&&(ut(Et,wt.adler>>>16),ut(Et,65535&wt.adler)),wt.adler=1}if(Et.status===69)if(Et.gzhead.extra){for(Mt=Et.pending;Et.gzindex<(65535&Et.gzhead.extra.length)&&(Et.pending!==Et.pending_buf_size||(Et.gzhead.hcrc&&Et.pending>Mt&&(wt.adler=et(wt.adler,Et.pending_buf,Et.pending-Mt,Mt)),at(wt),Mt=Et.pending,Et.pending!==Et.pending_buf_size));)st(Et,255&Et.gzhead.extra[Et.gzindex]),Et.gzindex++;Et.gzhead.hcrc&&Et.pending>Mt&&(wt.adler=et(wt.adler,Et.pending_buf,Et.pending-Mt,Mt)),Et.gzindex===Et.gzhead.extra.length&&(Et.gzindex=0,Et.status=73)}else Et.status=73;if(Et.status===73)if(Et.gzhead.name){Mt=Et.pending;do{if(Et.pending===Et.pending_buf_size&&(Et.gzhead.hcrc&&Et.pending>Mt&&(wt.adler=et(wt.adler,Et.pending_buf,Et.pending-Mt,Mt)),at(wt),Mt=Et.pending,Et.pending===Et.pending_buf_size)){Lt=1;break}Lt=Et.gzindexMt&&(wt.adler=et(wt.adler,Et.pending_buf,Et.pending-Mt,Mt)),Lt===0&&(Et.gzindex=0,Et.status=91)}else Et.status=91;if(Et.status===91)if(Et.gzhead.comment){Mt=Et.pending;do{if(Et.pending===Et.pending_buf_size&&(Et.gzhead.hcrc&&Et.pending>Mt&&(wt.adler=et(wt.adler,Et.pending_buf,Et.pending-Mt,Mt)),at(wt),Mt=Et.pending,Et.pending===Et.pending_buf_size)){Lt=1;break}Lt=Et.gzindexMt&&(wt.adler=et(wt.adler,Et.pending_buf,Et.pending-Mt,Mt)),Lt===0&&(Et.status=103)}else Et.status=103;if(Et.status===103&&(Et.gzhead.hcrc?(Et.pending+2>Et.pending_buf_size&&at(wt),Et.pending+2<=Et.pending_buf_size&&(st(Et,255&wt.adler),st(Et,wt.adler>>8&255),wt.adler=0,Et.status=113)):Et.status=113),Et.pending!==0){if(at(wt),wt.avail_out===0)return Et.last_flush=-1,0}else if(wt.avail_in===0&<(vt)<=lt(At)&&vt!==4)return ot(wt,-5);if(Et.status===666&&wt.avail_in!==0)return ot(wt,-5);if(wt.avail_in!==0||Et.lookahead!==0||vt!==0&&Et.status!==666){var Rt=Et.strategy===2?function(Ot,It){for(var St;;){if(Ot.lookahead===0&&(bt(Ot),Ot.lookahead===0)){if(It===0)return 1;break}if(Ot.match_length=0,St=_e._tr_tally(Ot,0,Ot.window[Ot.strstart]),Ot.lookahead--,Ot.strstart++,St&&(ct(Ot,!1),Ot.strm.avail_out===0))return 1}return Ot.insert=0,It===4?(ct(Ot,!0),Ot.strm.avail_out===0?3:4):Ot.last_lit&&(ct(Ot,!1),Ot.strm.avail_out===0)?1:2}(Et,vt):Et.strategy===3?function(Ot,It){for(var St,gt,Bt,Dt,Yt=Ot.window;;){if(Ot.lookahead<=258){if(bt(Ot),Ot.lookahead<=258&&It===0)return 1;if(Ot.lookahead===0)break}if(Ot.match_length=0,Ot.lookahead>=3&&Ot.strstart>0&&(gt=Yt[Bt=Ot.strstart-1])===Yt[++Bt]&>===Yt[++Bt]&>===Yt[++Bt]){Dt=Ot.strstart+258;do;while(gt===Yt[++Bt]&>===Yt[++Bt]&>===Yt[++Bt]&>===Yt[++Bt]&>===Yt[++Bt]&>===Yt[++Bt]&>===Yt[++Bt]&>===Yt[++Bt]&&BtOt.lookahead&&(Ot.match_length=Ot.lookahead)}if(Ot.match_length>=3?(St=_e._tr_tally(Ot,1,Ot.match_length-3),Ot.lookahead-=Ot.match_length,Ot.strstart+=Ot.match_length,Ot.match_length=0):(St=_e._tr_tally(Ot,0,Ot.window[Ot.strstart]),Ot.lookahead--,Ot.strstart++),St&&(ct(Ot,!1),Ot.strm.avail_out===0))return 1}return Ot.insert=0,It===4?(ct(Ot,!0),Ot.strm.avail_out===0?3:4):Ot.last_lit&&(ct(Ot,!1),Ot.strm.avail_out===0)?1:2}(Et,vt):j[Et.level].func(Et,vt);if(Rt!==3&&Rt!==4||(Et.status=666),Rt===1||Rt===3)return wt.avail_out===0&&(Et.last_flush=-1),0;if(Rt===2&&(vt===1?_e._tr_align(Et):vt!==5&&(_e._tr_stored_block(Et,0,0,!1),vt===3&&(dt(Et.head),Et.lookahead===0&&(Et.strstart=0,Et.block_start=0,Et.insert=0))),at(wt),wt.avail_out===0))return Et.last_flush=-1,0}return vt!==4?0:Et.wrap<=0?1:(Et.wrap===2?(st(Et,255&wt.adler),st(Et,wt.adler>>8&255),st(Et,wt.adler>>16&255),st(Et,wt.adler>>24&255),st(Et,255&wt.total_in),st(Et,wt.total_in>>8&255),st(Et,wt.total_in>>16&255),st(Et,wt.total_in>>24&255)):(ut(Et,wt.adler>>>16),ut(Et,65535&wt.adler)),at(wt),Et.wrap>0&&(Et.wrap=-Et.wrap),Et.pending!==0?0:1)},i.deflateEnd=function(wt){var vt;return wt&&wt.state?(vt=wt.state.status)!==42&&vt!==69&&vt!==73&&vt!==91&&vt!==103&&vt!==113&&vt!==666?ot(wt,-2):(wt.state=null,vt===113?ot(wt,-3):0):-2},i.deflateSetDictionary=function(wt,vt){var At,Et,Mt,Lt,kt,Rt,Ot,It,St=vt.length;if(!wt||!wt.state||(Lt=(At=wt.state).wrap)===2||Lt===1&&At.status!==42||At.lookahead)return-2;for(Lt===1&&(wt.adler=tt(wt.adler,vt,St,0)),At.wrap=0,St>=At.w_size&&(Lt===0&&(dt(At.head),At.strstart=0,At.block_start=0,At.insert=0),It=new $.Buf8(At.w_size),$.arraySet(It,vt,St-At.w_size,At.w_size,0),vt=It,St=At.w_size),kt=wt.avail_in,Rt=wt.next_in,Ot=wt.input,wt.avail_in=St,wt.next_in=0,wt.input=vt,bt(At);At.lookahead>=3;){Et=At.strstart,Mt=At.lookahead-2;do At.ins_h=(At.ins_h<=0;)gt[Bt]=0}var _e=[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],tt=[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],et=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],rt=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],ot=new Array(576);$(ot);var lt=new Array(60);$(lt);var dt=new Array(512);$(dt);var at=new Array(256);$(at);var ct=new Array(29);$(ct);var st,ut,mt,bt=new Array(30);function Tt(gt,Bt,Dt,Yt,Xt){this.static_tree=gt,this.extra_bits=Bt,this.extra_base=Dt,this.elems=Yt,this.max_length=Xt,this.has_stree=gt&>.length}function ht(gt,Bt){this.dyn_tree=gt,this.max_code=0,this.stat_desc=Bt}function yt(gt){return gt<256?dt[gt]:dt[256+(gt>>>7)]}function ft(gt,Bt){gt.pending_buf[gt.pending++]=255&Bt,gt.pending_buf[gt.pending++]=Bt>>>8&255}function Ct(gt,Bt,Dt){gt.bi_valid>16-Dt?(gt.bi_buf|=Bt<>16-gt.bi_valid,gt.bi_valid+=Dt-16):(gt.bi_buf|=Bt<>>=1,Dt<<=1;while(--Bt>0);return Dt>>>1}function wt(gt,Bt,Dt){var Yt,Xt,Jt=new Array(16),zt=0;for(Yt=1;Yt<=15;Yt++)Jt[Yt]=zt=zt+Dt[Yt-1]<<1;for(Xt=0;Xt<=Bt;Xt++){var Wt=gt[2*Xt+1];Wt!==0&&(gt[2*Xt]=Ut(Jt[Wt]++,Wt))}}function vt(gt){var Bt;for(Bt=0;Bt<286;Bt++)gt.dyn_ltree[2*Bt]=0;for(Bt=0;Bt<30;Bt++)gt.dyn_dtree[2*Bt]=0;for(Bt=0;Bt<19;Bt++)gt.bl_tree[2*Bt]=0;gt.dyn_ltree[512]=1,gt.opt_len=gt.static_len=0,gt.last_lit=gt.matches=0}function At(gt){gt.bi_valid>8?ft(gt,gt.bi_buf):gt.bi_valid>0&&(gt.pending_buf[gt.pending++]=gt.bi_buf),gt.bi_buf=0,gt.bi_valid=0}function Et(gt,Bt,Dt,Yt){var Xt=2*Bt,Jt=2*Dt;return gt[Xt]>1;Dt>=1;Dt--)Mt(gt,Jt,Dt);Xt=xt;do Dt=gt.heap[1],gt.heap[1]=gt.heap[gt.heap_len--],Mt(gt,Jt,1),Yt=gt.heap[1],gt.heap[--gt.heap_max]=Dt,gt.heap[--gt.heap_max]=Yt,Jt[2*Xt]=Jt[2*Dt]+Jt[2*Yt],gt.depth[Xt]=(gt.depth[Dt]>=gt.depth[Yt]?gt.depth[Dt]:gt.depth[Yt])+1,Jt[2*Dt+1]=Jt[2*Yt+1]=Xt,gt.heap[1]=Xt++,Mt(gt,Jt,1);while(gt.heap_len>=2);gt.heap[--gt.heap_max]=gt.heap[1],function($t,en){var Zt,rn,cn,sn,Ht,qt,nn=en.dyn_tree,yn=en.max_code,ln=en.stat_desc.static_tree,_n=en.stat_desc.has_stree,vn=en.stat_desc.extra_bits,hn=en.stat_desc.extra_base,fn=en.stat_desc.max_length,dn=0;for(sn=0;sn<=15;sn++)$t.bl_count[sn]=0;for(nn[2*$t.heap[$t.heap_max]+1]=0,Zt=$t.heap_max+1;Zt<573;Zt++)(sn=nn[2*nn[2*(rn=$t.heap[Zt])+1]+1]+1)>fn&&(sn=fn,dn++),nn[2*rn+1]=sn,rn>yn||($t.bl_count[sn]++,Ht=0,rn>=hn&&(Ht=vn[rn-hn]),qt=nn[2*rn],$t.opt_len+=qt*(sn+Ht),_n&&($t.static_len+=qt*(ln[2*rn+1]+Ht)));if(dn!==0){do{for(sn=fn-1;$t.bl_count[sn]===0;)sn--;$t.bl_count[sn]--,$t.bl_count[sn+1]+=2,$t.bl_count[fn]--,dn-=2}while(dn>0);for(sn=fn;sn!==0;sn--)for(rn=$t.bl_count[sn];rn!==0;)(cn=$t.heap[--Zt])>yn||(nn[2*cn+1]!==sn&&($t.opt_len+=(sn-nn[2*cn+1])*nn[2*cn],nn[2*cn+1]=sn),rn--)}}(gt,Bt),wt(Jt,Pt,gt.bl_count)}function Rt(gt,Bt,Dt){var Yt,Xt,Jt=-1,zt=Bt[1],Wt=0,xt=7,Pt=4;for(zt===0&&(xt=138,Pt=3),Bt[2*(Dt+1)+1]=65535,Yt=0;Yt<=Dt;Yt++)Xt=zt,zt=Bt[2*(Yt+1)+1],++Wt>=7;Xt<30;Xt++)for(bt[Xt]=Jt<<7,Bt=0;Bt<1<0?(gt.strm.data_type===2&&(gt.strm.data_type=function(Wt){var xt,Pt=4093624447;for(xt=0;xt<=31;xt++,Pt>>>=1)if(1&Pt&&Wt.dyn_ltree[2*xt]!==0)return 0;if(Wt.dyn_ltree[18]!==0||Wt.dyn_ltree[20]!==0||Wt.dyn_ltree[26]!==0)return 1;for(xt=32;xt<256;xt++)if(Wt.dyn_ltree[2*xt]!==0)return 1;return 0}(gt)),kt(gt,gt.l_desc),kt(gt,gt.d_desc),zt=function(Wt){var xt;for(Rt(Wt,Wt.dyn_ltree,Wt.l_desc.max_code),Rt(Wt,Wt.dyn_dtree,Wt.d_desc.max_code),kt(Wt,Wt.bl_desc),xt=18;xt>=3&&Wt.bl_tree[2*rt[xt]+1]===0;xt--);return Wt.opt_len+=3*(xt+1)+5+5+4,xt}(gt),Xt=gt.opt_len+3+7>>>3,(Jt=gt.static_len+3+7>>>3)<=Xt&&(Xt=Jt)):Xt=Jt=Dt+5,Dt+4<=Xt&&Bt!==-1?St(gt,Bt,Dt,Yt):gt.strategy===4||Jt===Xt?(Ct(gt,2+(Yt?1:0),3),Lt(gt,ot,lt)):(Ct(gt,4+(Yt?1:0),3),function(Wt,xt,Pt,$t){var en;for(Ct(Wt,xt-257,5),Ct(Wt,Pt-1,5),Ct(Wt,$t-4,4),en=0;en<$t;en++)Ct(Wt,Wt.bl_tree[2*rt[en]+1],3);Ot(Wt,Wt.dyn_ltree,xt-1),Ot(Wt,Wt.dyn_dtree,Pt-1)}(gt,gt.l_desc.max_code+1,gt.d_desc.max_code+1,zt+1),Lt(gt,gt.dyn_ltree,gt.dyn_dtree)),vt(gt),Yt&&At(gt)},i._tr_tally=function(gt,Bt,Dt){return gt.pending_buf[gt.d_buf+2*gt.last_lit]=Bt>>>8&255,gt.pending_buf[gt.d_buf+2*gt.last_lit+1]=255&Bt,gt.pending_buf[gt.l_buf+gt.last_lit]=255&Dt,gt.last_lit++,Bt===0?gt.dyn_ltree[2*Dt]++:(gt.matches++,Bt--,gt.dyn_ltree[2*(at[Dt]+256+1)]++,gt.dyn_dtree[2*yt(Bt)]++),gt.last_lit===gt.lit_bufsize-1},i._tr_align=function(gt){Ct(gt,2,3),Ft(gt,256,ot),function(Bt){Bt.bi_valid===16?(ft(Bt,Bt.bi_buf),Bt.bi_buf=0,Bt.bi_valid=0):Bt.bi_valid>=8&&(Bt.pending_buf[Bt.pending++]=255&Bt.bi_buf,Bt.bi_buf>>=8,Bt.bi_valid-=8)}(gt)}},function(o,i,s){o.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"}},function(o,i,s){var j=s(33),$=s(73),_e=s(74),tt=s(175),et=s(176);function rt(ht){return(ht>>>24&255)+(ht>>>8&65280)+((65280&ht)<<8)+((255&ht)<<24)}function ot(){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 j.Buf16(320),this.work=new j.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function lt(ht){var yt;return ht&&ht.state?(yt=ht.state,ht.total_in=ht.total_out=yt.total=0,ht.msg="",yt.wrap&&(ht.adler=1&yt.wrap),yt.mode=1,yt.last=0,yt.havedict=0,yt.dmax=32768,yt.head=null,yt.hold=0,yt.bits=0,yt.lencode=yt.lendyn=new j.Buf32(852),yt.distcode=yt.distdyn=new j.Buf32(592),yt.sane=1,yt.back=-1,0):-2}function dt(ht){var yt;return ht&&ht.state?((yt=ht.state).wsize=0,yt.whave=0,yt.wnext=0,lt(ht)):-2}function at(ht,yt){var ft,Ct;return ht&&ht.state?(Ct=ht.state,yt<0?(ft=0,yt=-yt):(ft=1+(yt>>4),yt<48&&(yt&=15)),yt&&(yt<8||yt>15)?-2:(Ct.window!==null&&Ct.wbits!==yt&&(Ct.window=null),Ct.wrap=ft,Ct.wbits=yt,dt(ht))):-2}function ct(ht,yt){var ft,Ct;return ht?(Ct=new ot,ht.state=Ct,Ct.window=null,(ft=at(ht,yt))!==0&&(ht.state=null),ft):-2}var st,ut,mt=!0;function bt(ht){if(mt){var yt;for(st=new j.Buf32(512),ut=new j.Buf32(32),yt=0;yt<144;)ht.lens[yt++]=8;for(;yt<256;)ht.lens[yt++]=9;for(;yt<280;)ht.lens[yt++]=7;for(;yt<288;)ht.lens[yt++]=8;for(et(1,ht.lens,0,288,st,0,ht.work,{bits:9}),yt=0;yt<32;)ht.lens[yt++]=5;et(2,ht.lens,0,32,ut,0,ht.work,{bits:5}),mt=!1}ht.lencode=st,ht.lenbits=9,ht.distcode=ut,ht.distbits=5}function Tt(ht,yt,ft,Ct){var Ft,Ut=ht.state;return Ut.window===null&&(Ut.wsize=1<=Ut.wsize?(j.arraySet(Ut.window,yt,ft-Ut.wsize,Ut.wsize,0),Ut.wnext=0,Ut.whave=Ut.wsize):((Ft=Ut.wsize-Ut.wnext)>Ct&&(Ft=Ct),j.arraySet(Ut.window,yt,ft-Ct,Ft,Ut.wnext),(Ct-=Ft)?(j.arraySet(Ut.window,yt,ft-Ct,Ct,0),Ut.wnext=Ct,Ut.whave=Ut.wsize):(Ut.wnext+=Ft,Ut.wnext===Ut.wsize&&(Ut.wnext=0),Ut.whave>>8&255,ft.check=_e(ft.check,$t,2,0),Et=0,Mt=0,ft.mode=2;break}if(ft.flags=0,ft.head&&(ft.head.done=!1),!(1&ft.wrap)||(((255&Et)<<8)+(Et>>8))%31){ht.msg="incorrect header check",ft.mode=30;break}if((15&Et)!=8){ht.msg="unknown compression method",ft.mode=30;break}if(Mt-=4,Jt=8+(15&(Et>>>=4)),ft.wbits===0)ft.wbits=Jt;else if(Jt>ft.wbits){ht.msg="invalid window size",ft.mode=30;break}ft.dmax=1<>8&1),512&ft.flags&&($t[0]=255&Et,$t[1]=Et>>>8&255,ft.check=_e(ft.check,$t,2,0)),Et=0,Mt=0,ft.mode=3;case 3:for(;Mt<32;){if(vt===0)break e;vt--,Et+=Ct[Ut++]<>>8&255,$t[2]=Et>>>16&255,$t[3]=Et>>>24&255,ft.check=_e(ft.check,$t,4,0)),Et=0,Mt=0,ft.mode=4;case 4:for(;Mt<16;){if(vt===0)break e;vt--,Et+=Ct[Ut++]<>8),512&ft.flags&&($t[0]=255&Et,$t[1]=Et>>>8&255,ft.check=_e(ft.check,$t,2,0)),Et=0,Mt=0,ft.mode=5;case 5:if(1024&ft.flags){for(;Mt<16;){if(vt===0)break e;vt--,Et+=Ct[Ut++]<>>8&255,ft.check=_e(ft.check,$t,2,0)),Et=0,Mt=0}else ft.head&&(ft.head.extra=null);ft.mode=6;case 6:if(1024&ft.flags&&((Rt=ft.length)>vt&&(Rt=vt),Rt&&(ft.head&&(Jt=ft.head.extra_len-ft.length,ft.head.extra||(ft.head.extra=new Array(ft.head.extra_len)),j.arraySet(ft.head.extra,Ct,Ut,Rt,Jt)),512&ft.flags&&(ft.check=_e(ft.check,Ct,Rt,Ut)),vt-=Rt,Ut+=Rt,ft.length-=Rt),ft.length))break e;ft.length=0,ft.mode=7;case 7:if(2048&ft.flags){if(vt===0)break e;Rt=0;do Jt=Ct[Ut+Rt++],ft.head&&Jt&&ft.length<65536&&(ft.head.name+=String.fromCharCode(Jt));while(Jt&&Rt>9&1,ft.head.done=!0),ht.adler=ft.check=0,ft.mode=12;break;case 10:for(;Mt<32;){if(vt===0)break e;vt--,Et+=Ct[Ut++]<>>=7&Mt,Mt-=7&Mt,ft.mode=27;break}for(;Mt<3;){if(vt===0)break e;vt--,Et+=Ct[Ut++]<>>=1)){case 0:ft.mode=14;break;case 1:if(bt(ft),ft.mode=20,yt===6){Et>>>=2,Mt-=2;break e}break;case 2:ft.mode=17;break;case 3:ht.msg="invalid block type",ft.mode=30}Et>>>=2,Mt-=2;break;case 14:for(Et>>>=7&Mt,Mt-=7&Mt;Mt<32;){if(vt===0)break e;vt--,Et+=Ct[Ut++]<>>16^65535)){ht.msg="invalid stored block lengths",ft.mode=30;break}if(ft.length=65535&Et,Et=0,Mt=0,ft.mode=15,yt===6)break e;case 15:ft.mode=16;case 16:if(Rt=ft.length){if(Rt>vt&&(Rt=vt),Rt>At&&(Rt=At),Rt===0)break e;j.arraySet(Ft,Ct,Ut,Rt,wt),vt-=Rt,Ut+=Rt,At-=Rt,wt+=Rt,ft.length-=Rt;break}ft.mode=12;break;case 17:for(;Mt<14;){if(vt===0)break e;vt--,Et+=Ct[Ut++]<>>=5,Mt-=5,ft.ndist=1+(31&Et),Et>>>=5,Mt-=5,ft.ncode=4+(15&Et),Et>>>=4,Mt-=4,ft.nlen>286||ft.ndist>30){ht.msg="too many length or distance symbols",ft.mode=30;break}ft.have=0,ft.mode=18;case 18:for(;ft.have>>=3,Mt-=3}for(;ft.have<19;)ft.lens[en[ft.have++]]=0;if(ft.lencode=ft.lendyn,ft.lenbits=7,Wt={bits:ft.lenbits},zt=et(0,ft.lens,0,19,ft.lencode,0,ft.work,Wt),ft.lenbits=Wt.bits,zt){ht.msg="invalid code lengths set",ft.mode=30;break}ft.have=0,ft.mode=19;case 19:for(;ft.have>>16&255,Bt=65535&Pt,!((St=Pt>>>24)<=Mt);){if(vt===0)break e;vt--,Et+=Ct[Ut++]<>>=St,Mt-=St,ft.lens[ft.have++]=Bt;else{if(Bt===16){for(xt=St+2;Mt>>=St,Mt-=St,ft.have===0){ht.msg="invalid bit length repeat",ft.mode=30;break}Jt=ft.lens[ft.have-1],Rt=3+(3&Et),Et>>>=2,Mt-=2}else if(Bt===17){for(xt=St+3;Mt>>=St)),Et>>>=3,Mt-=3}else{for(xt=St+7;Mt>>=St)),Et>>>=7,Mt-=7}if(ft.have+Rt>ft.nlen+ft.ndist){ht.msg="invalid bit length repeat",ft.mode=30;break}for(;Rt--;)ft.lens[ft.have++]=Jt}}if(ft.mode===30)break;if(ft.lens[256]===0){ht.msg="invalid code -- missing end-of-block",ft.mode=30;break}if(ft.lenbits=9,Wt={bits:ft.lenbits},zt=et(1,ft.lens,0,ft.nlen,ft.lencode,0,ft.work,Wt),ft.lenbits=Wt.bits,zt){ht.msg="invalid literal/lengths set",ft.mode=30;break}if(ft.distbits=6,ft.distcode=ft.distdyn,Wt={bits:ft.distbits},zt=et(2,ft.lens,ft.nlen,ft.ndist,ft.distcode,0,ft.work,Wt),ft.distbits=Wt.bits,zt){ht.msg="invalid distances set",ft.mode=30;break}if(ft.mode=20,yt===6)break e;case 20:ft.mode=21;case 21:if(vt>=6&&At>=258){ht.next_out=wt,ht.avail_out=At,ht.next_in=Ut,ht.avail_in=vt,ft.hold=Et,ft.bits=Mt,tt(ht,kt),wt=ht.next_out,Ft=ht.output,At=ht.avail_out,Ut=ht.next_in,Ct=ht.input,vt=ht.avail_in,Et=ft.hold,Mt=ft.bits,ft.mode===12&&(ft.back=-1);break}for(ft.back=0;gt=(Pt=ft.lencode[Et&(1<>>16&255,Bt=65535&Pt,!((St=Pt>>>24)<=Mt);){if(vt===0)break e;vt--,Et+=Ct[Ut++]<>Dt)])>>>16&255,Bt=65535&Pt,!(Dt+(St=Pt>>>24)<=Mt);){if(vt===0)break e;vt--,Et+=Ct[Ut++]<>>=Dt,Mt-=Dt,ft.back+=Dt}if(Et>>>=St,Mt-=St,ft.back+=St,ft.length=Bt,gt===0){ft.mode=26;break}if(32>){ft.back=-1,ft.mode=12;break}if(64>){ht.msg="invalid literal/length code",ft.mode=30;break}ft.extra=15>,ft.mode=22;case 22:if(ft.extra){for(xt=ft.extra;Mt>>=ft.extra,Mt-=ft.extra,ft.back+=ft.extra}ft.was=ft.length,ft.mode=23;case 23:for(;gt=(Pt=ft.distcode[Et&(1<>>16&255,Bt=65535&Pt,!((St=Pt>>>24)<=Mt);){if(vt===0)break e;vt--,Et+=Ct[Ut++]<>Dt)])>>>16&255,Bt=65535&Pt,!(Dt+(St=Pt>>>24)<=Mt);){if(vt===0)break e;vt--,Et+=Ct[Ut++]<>>=Dt,Mt-=Dt,ft.back+=Dt}if(Et>>>=St,Mt-=St,ft.back+=St,64>){ht.msg="invalid distance code",ft.mode=30;break}ft.offset=Bt,ft.extra=15>,ft.mode=24;case 24:if(ft.extra){for(xt=ft.extra;Mt>>=ft.extra,Mt-=ft.extra,ft.back+=ft.extra}if(ft.offset>ft.dmax){ht.msg="invalid distance too far back",ft.mode=30;break}ft.mode=25;case 25:if(At===0)break e;if(Rt=kt-At,ft.offset>Rt){if((Rt=ft.offset-Rt)>ft.whave&&ft.sane){ht.msg="invalid distance too far back",ft.mode=30;break}Rt>ft.wnext?(Rt-=ft.wnext,Ot=ft.wsize-Rt):Ot=ft.wnext-Rt,Rt>ft.length&&(Rt=ft.length),It=ft.window}else It=Ft,Ot=wt-ft.offset,Rt=ft.length;Rt>At&&(Rt=At),At-=Rt,ft.length-=Rt;do Ft[wt++]=It[Ot++];while(--Rt);ft.length===0&&(ft.mode=21);break;case 26:if(At===0)break e;Ft[wt++]=ft.length,At--,ft.mode=21;break;case 27:if(ft.wrap){for(;Mt<32;){if(vt===0)break e;vt--,Et|=Ct[Ut++]<>>=Ft=Ct>>>24,bt-=Ft,(Ft=Ct>>>16&255)===0)Mt[rt++]=65535&Ct;else{if(!(16&Ft)){if((64&Ft)==0){Ct=Tt[(65535&Ct)+(mt&(1<>>=Ft,bt-=Ft),bt<15&&(mt+=Et[tt++]<>>=Ft=Ct>>>24,bt-=Ft,!(16&(Ft=Ct>>>16&255))){if((64&Ft)==0){Ct=ht[(65535&Ct)+(mt&(1<dt){j.msg="invalid distance too far back",_e.mode=30;break e}if(mt>>>=Ft,bt-=Ft,wt>(Ft=rt-ot)){if((Ft=wt-Ft)>ct&&_e.sane){j.msg="invalid distance too far back",_e.mode=30;break e}if(vt=0,At=ut,st===0){if(vt+=at-Ft,Ft2;)Mt[rt++]=At[vt++],Mt[rt++]=At[vt++],Mt[rt++]=At[vt++],Ut-=3;Ut&&(Mt[rt++]=At[vt++],Ut>1&&(Mt[rt++]=At[vt++]))}else{vt=rt-wt;do Mt[rt++]=Mt[vt++],Mt[rt++]=Mt[vt++],Mt[rt++]=Mt[vt++],Ut-=3;while(Ut>2);Ut&&(Mt[rt++]=Mt[vt++],Ut>1&&(Mt[rt++]=Mt[vt++]))}break}}break}}while(tt>3,mt&=(1<<(bt-=Ut<<3))-1,j.next_in=tt,j.next_out=rt,j.avail_in=tt=1&&Dt[Mt]===0;Mt--);if(Lt>Mt&&(Lt=Mt),Mt===0)return at[ct++]=20971520,at[ct++]=20971520,ut.bits=1,0;for(Et=1;Et0&&(rt===0||Mt!==1))return-1;for(Yt[1]=0,vt=1;vt<15;vt++)Yt[vt+1]=Yt[vt]+Dt[vt];for(At=0;At852||rt===2&&It>592)return 1;for(;;){Ct=vt-Rt,st[At]ft?(Ft=Xt[Jt+st[At]],Ut=gt[Bt+st[At]]):(Ft=96,Ut=0),mt=1<>Rt)+(bt-=mt)]=Ct<<24|Ft<<16|Ut|0;while(bt!==0);for(mt=1<>=1;if(mt!==0?(St&=mt-1,St+=mt):St=0,At++,--Dt[vt]==0){if(vt===Mt)break;vt=ot[lt+st[At]]}if(vt>Lt&&(St&ht)!==Tt){for(Rt===0&&(Rt=Lt),yt+=Et,Ot=1<<(kt=vt-Rt);kt+Rt852||rt===2&&It>592)return 1;at[Tt=St&ht]=Lt<<24|kt<<16|yt-ct|0}}return St!==0&&(at[yt+St]=vt-Rt<<24|64<<16|0),ut.bits=Lt,0}},function(o,i,s){o.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}},function(o,i){},function(o,i,s){function j(ot,lt){var dt=Object.keys(ot);if(Object.getOwnPropertySymbols){var at=Object.getOwnPropertySymbols(ot);lt&&(at=at.filter(function(ct){return Object.getOwnPropertyDescriptor(ot,ct).enumerable})),dt.push.apply(dt,at)}return dt}function $(ot,lt,dt){return lt in ot?Object.defineProperty(ot,lt,{value:dt,enumerable:!0,configurable:!0,writable:!0}):ot[lt]=dt,ot}function _e(ot,lt){for(var dt=0;dt0?this.tail.next=ct:this.head=ct,this.tail=ct,++this.length}},{key:"unshift",value:function(at){var ct={data:at,next:this.head};this.length===0&&(this.tail=ct),this.head=ct,++this.length}},{key:"shift",value:function(){if(this.length!==0){var at=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,at}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(at){if(this.length===0)return"";for(var ct=this.head,st=""+ct.data;ct=ct.next;)st+=at+ct.data;return st}},{key:"concat",value:function(at){if(this.length===0)return tt.alloc(0);for(var ct,st,ut,mt=tt.allocUnsafe(at>>>0),bt=this.head,Tt=0;bt;)ct=bt.data,st=mt,ut=Tt,tt.prototype.copy.call(ct,st,ut),Tt+=bt.data.length,bt=bt.next;return mt}},{key:"consume",value:function(at,ct){var st;return atmt.length?mt.length:at;if(bt===mt.length?ut+=mt:ut+=mt.slice(0,at),(at-=bt)==0){bt===mt.length?(++st,ct.next?this.head=ct.next:this.head=this.tail=null):(this.head=ct,ct.data=mt.slice(bt));break}++st}return this.length-=st,ut}},{key:"_getBuffer",value:function(at){var ct=tt.allocUnsafe(at),st=this.head,ut=1;for(st.data.copy(ct),at-=st.data.length;st=st.next;){var mt=st.data,bt=at>mt.length?mt.length:at;if(mt.copy(ct,ct.length-at,0,bt),(at-=bt)==0){bt===mt.length?(++ut,st.next?this.head=st.next:this.head=this.tail=null):(this.head=st,st.data=mt.slice(bt));break}++ut}return this.length-=ut,ct}},{key:rt,value:function(at,ct){return et(this,function(st){for(var ut=1;ut0,function(ft){ut||(ut=ft),ft&&bt.forEach(ot),yt||(bt.forEach(ot),mt(ut))})});return ct.reduce(lt)}},function(o,i,s){var j=s(186)(function $(_e,tt){return(tt=tt||{}).namespace=_e,tt.prod=!0,tt.dev=!1,tt.force||$.force?$.yep(tt):$.nope(tt)});o.exports=j},function(o,i){var s=[],j=[],$=function(){};function _e(st){return!~s.indexOf(st)&&(s.push(st),!0)}function tt(st){$=st}function et(st){for(var ut=[],mt=0;mtrt.start)&&(ot?ot(null,ct):at.emit("line",ct)),ut++,ct=""),setTimeout(Tt,1e3);var ft=dt.write(lt.slice(0,yt));ot||at.emit("data",ft);for(var Ct=(ft=(ct+ft).split(/\n+/)).length-1,Ft=0;Ftrt.start)&&(ot?ot(null,ft[Ft]):at.emit("line",ft[Ft])),ut++;return ct=ft[Ct],st+=yt,Tt()});$.close(bt,et)})()}),ot?at.destroy:at}}).call(this,s(4).Buffer)},function(o,i,s){(function(j,$){function _e(ht){return(_e=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(yt){return typeof yt}:function(yt){return yt&&typeof Symbol=="function"&&yt.constructor===Symbol&&yt!==Symbol.prototype?"symbol":typeof yt})(ht)}function tt(ht,yt){var ft=Object.keys(ht);if(Object.getOwnPropertySymbols){var Ct=Object.getOwnPropertySymbols(ht);yt&&(Ct=Ct.filter(function(Ft){return Object.getOwnPropertyDescriptor(ht,Ft).enumerable})),ft.push.apply(ft,Ct)}return ft}function et(ht){for(var yt=1;yt0&&arguments[0]!==void 0?arguments[0]:{};return ot(this,Ft),(Ut=Ct.call(this,wt)).options=wt,Ut.name=wt.name||"http",Ut.ssl=!!wt.ssl,Ut.host=wt.host||"localhost",Ut.port=wt.port,Ut.auth=wt.auth,Ut.path=wt.path||"",Ut.agent=wt.agent,Ut.headers=wt.headers||{},Ut.headers["content-type"]="application/json",Ut.port||(Ut.port=Ut.ssl?443:80),Ut}return yt=Ft,(ft=[{key:"log",value:function(Ut,wt){var vt=this;this._request(Ut,function(At,Et){Et&&Et.statusCode!==200&&(At=new Error("Invalid HTTP Status Code: ".concat(Et.statusCode))),At?vt.emit("warn",At):vt.emit("logged",Ut)}),wt&&j(wt)}},{key:"query",value:function(Ut,wt){typeof Ut=="function"&&(wt=Ut,Ut={}),(Ut={method:"query",params:this.normalizeQuery(Ut)}).params.path&&(Ut.path=Ut.params.path,delete Ut.params.path),Ut.params.auth&&(Ut.auth=Ut.params.auth,delete Ut.params.auth),this._request(Ut,function(vt,At,Et){if(At&&At.statusCode!==200&&(vt=new Error("Invalid HTTP Status Code: ".concat(At.statusCode))),vt)return wt(vt);if(typeof Et=="string")try{Et=JSON.parse(Et)}catch(Mt){return wt(Mt)}wt(null,Et)})}},{key:"stream",value:function(){var Ut=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},wt=new bt;(Ut={method:"stream",params:Ut}).params.path&&(Ut.path=Ut.params.path,delete Ut.params.path),Ut.params.auth&&(Ut.auth=Ut.params.auth,delete Ut.params.auth);var vt="",At=this._request(Ut);return wt.destroy=function(){return At.destroy()},At.on("data",function(Et){for(var Mt=(Et=(vt+Et).split(/\n+/)).length-1,Lt=0;Lt= 0x80 (not a basic code point)","invalid-input":"Invalid input"},st=Math.floor,ut=String.fromCharCode;function mt(wt){throw new RangeError(ct[wt])}function bt(wt,vt){for(var At=wt.length,Et=[];At--;)Et[At]=vt(wt[At]);return Et}function Tt(wt,vt){var At=wt.split("@"),Et="";return At.length>1&&(Et=At[0]+"@",wt=At[1]),Et+bt((wt=wt.replace(at,".")).split("."),vt).join(".")}function ht(wt){for(var vt,At,Et=[],Mt=0,Lt=wt.length;Mt=55296&&vt<=56319&&Mt65535&&(At+=ut((vt-=65536)>>>10&1023|55296),vt=56320|1023&vt),At+=ut(vt)}).join("")}function ft(wt,vt){return wt+22+75*(wt<26)-((vt!=0)<<5)}function Ct(wt,vt,At){var Et=0;for(wt=At?st(wt/700):wt>>1,wt+=st(wt/vt);wt>455;Et+=36)wt=st(wt/35);return st(Et+36*wt/(wt+38))}function Ft(wt){var vt,At,Et,Mt,Lt,kt,Rt,Ot,It,St,gt,Bt=[],Dt=wt.length,Yt=0,Xt=128,Jt=72;for((At=wt.lastIndexOf("-"))<0&&(At=0),Et=0;Et=128&&mt("not-basic"),Bt.push(wt.charCodeAt(Et));for(Mt=At>0?At+1:0;Mt=Dt&&mt("invalid-input"),((Ot=(gt=wt.charCodeAt(Mt++))-48<10?gt-22:gt-65<26?gt-65:gt-97<26?gt-97:36)>=36||Ot>st((ot-Yt)/kt))&&mt("overflow"),Yt+=Ot*kt,!(Ot<(It=Rt<=Jt?1:Rt>=Jt+26?26:Rt-Jt));Rt+=36)kt>st(ot/(St=36-It))&&mt("overflow"),kt*=St;Jt=Ct(Yt-Lt,vt=Bt.length+1,Lt==0),st(Yt/vt)>ot-Xt&&mt("overflow"),Xt+=st(Yt/vt),Yt%=vt,Bt.splice(Yt++,0,Xt)}return yt(Bt)}function Ut(wt){var vt,At,Et,Mt,Lt,kt,Rt,Ot,It,St,gt,Bt,Dt,Yt,Xt,Jt=[];for(Bt=(wt=ht(wt)).length,vt=128,At=0,Lt=72,kt=0;kt=vt&>st((ot-At)/(Dt=Et+1))&&mt("overflow"),At+=(Rt-vt)*Dt,vt=Rt,kt=0;ktot&&mt("overflow"),gt==vt){for(Ot=At,It=36;!(Ot<(St=It<=Lt?1:It>=Lt+26?26:It-Lt));It+=36)Xt=Ot-St,Yt=36-St,Jt.push(ut(ft(St+Xt%Yt,0))),Ot=st(Xt/Yt);Jt.push(ut(ft(Ot,0))),Lt=Ct(At,Dt,Et==Mt),At=0,++Et}++At,++vt}return Jt.join("")}rt={version:"1.4.1",ucs2:{decode:ht,encode:yt},decode:Ft,encode:Ut,toASCII:function(wt){return Tt(wt,function(vt){return dt.test(vt)?"xn--"+Ut(vt):vt})},toUnicode:function(wt){return Tt(wt,function(vt){return lt.test(vt)?Ft(vt.slice(4).toLowerCase()):vt})}},(_e=function(){return rt}.call(i,s,i,j))===void 0||(j.exports=_e)})()}).call(this,s(194)(o),s(5))},function(o,i){o.exports=function(s){return s.webpackPolyfill||(s.deprecate=function(){},s.paths=[],s.children||(s.children=[]),Object.defineProperty(s,"loaded",{enumerable:!0,get:function(){return s.l}}),Object.defineProperty(s,"id",{enumerable:!0,get:function(){return s.i}}),s.webpackPolyfill=1),s}},function(o,i,s){o.exports={isString:function(j){return typeof j=="string"},isObject:function(j){return typeof j=="object"&&j!==null},isNull:function(j){return j===null},isNullOrUndefined:function(j){return j==null}}},function(o,i,s){i.decode=i.parse=s(197),i.encode=i.stringify=s(198)},function(o,i,s){function j(_e,tt){return Object.prototype.hasOwnProperty.call(_e,tt)}o.exports=function(_e,tt,et,rt){tt=tt||"&",et=et||"=";var ot={};if(typeof _e!="string"||_e.length===0)return ot;var lt=/\+/g;_e=_e.split(tt);var dt=1e3;rt&&typeof rt.maxKeys=="number"&&(dt=rt.maxKeys);var at=_e.length;dt>0&&at>dt&&(at=dt);for(var ct=0;ct=0?(st=Tt.substr(0,ht),ut=Tt.substr(ht+1)):(st=Tt,ut=""),mt=decodeURIComponent(st),bt=decodeURIComponent(ut),j(ot,mt)?$(ot[mt])?ot[mt].push(bt):ot[mt]=[ot[mt],bt]:ot[mt]=bt}return ot};var $=Array.isArray||function(_e){return Object.prototype.toString.call(_e)==="[object Array]"}},function(o,i,s){var j=function(et){switch(typeof et){case"string":return et;case"boolean":return et?"true":"false";case"number":return isFinite(et)?et:"";default:return""}};o.exports=function(et,rt,ot,lt){return rt=rt||"&",ot=ot||"=",et===null&&(et=void 0),typeof et=="object"?_e(tt(et),function(dt){var at=encodeURIComponent(j(dt))+ot;return $(et[dt])?_e(et[dt],function(ct){return at+encodeURIComponent(j(ct))}).join(rt):at+encodeURIComponent(j(et[dt]))}).join(rt):lt?encodeURIComponent(j(lt))+ot+encodeURIComponent(j(et)):""};var $=Array.isArray||function(et){return Object.prototype.toString.call(et)==="[object Array]"};function _e(et,rt){if(et.map)return et.map(rt);for(var ot=[],lt=0;lt0&&arguments[0]!==void 0?arguments[0]:{};if(_e(this,ht),yt=Tt.call(this,ft),!ft.stream||!dt(ft.stream))throw new Error("options.stream is required.");return yt._stream=ft.stream,yt._stream.setMaxListeners(1/0),yt.isObjectMode=ft.stream._writableState.objectMode,yt.eol=ft.eol||ct.EOL,yt}return mt=ht,(bt=[{key:"log",value:function(yt,ft){var Ct=this;if(j(function(){return Ct.emit("logged",yt)}),this.isObjectMode)return this._stream.write(yt),void(ft&&ft());this._stream.write("".concat(yt[at]).concat(this.eol)),ft&&ft()}}])&&tt(mt.prototype,bt),ht}(st)}).call(this,s(12).setImmediate)},function(o,i,s){(function(j){function $(Et,Mt,Lt){return Mt in Et?Object.defineProperty(Et,Mt,{value:Lt,enumerable:!0,configurable:!0,writable:!0}):Et[Mt]=Lt,Et}function _e(Et){return(_e=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(Mt){return typeof Mt}:function(Mt){return Mt&&typeof Symbol=="function"&&Mt.constructor===Symbol&&Mt!==Symbol.prototype?"symbol":typeof Mt})(Et)}function tt(Et,Mt){for(var Lt=0;Lt0&&arguments[0]!==void 0?arguments[0]:{},St=It.silent,gt=It.format,Bt=It.defaultMeta,Dt=It.levels,Yt=It.level,Xt=Yt===void 0?"info":Yt,Jt=It.exitOnError,zt=Jt===void 0||Jt,Wt=It.transports,xt=It.colors,Pt=It.emitErrs,$t=It.formatters,en=It.padLevels,Zt=It.rewriters,rn=It.stripColors,cn=It.exceptionHandlers,sn=It.rejectionHandlers;if(this.transports.length&&this.clear(),this.silent=St,this.format=gt||this.format||s(207)(),this.defaultMeta=Bt||null,this.levels=Dt||this.levels||Ut.npm.levels,this.level=Xt,this.exceptions=new ht(this),this.rejections=new yt(this),this.profilers={},this.exitOnError=zt,Wt&&(Wt=Array.isArray(Wt)?Wt:[Wt]).forEach(function(Ht){return Ot.add(Ht)}),xt||Pt||$t||en||Zt||rn)throw new Error(["{ colors, emitErrs, formatters, padLevels, rewriters, stripColors } were removed in winston@3.0.0.","Use a custom winston.format(function) instead.","See: https://github.com/winstonjs/winston/tree/master/UPGRADE-3.0.md"].join(` -`));cn&&this.exceptions.handle(cn),sn&&this.rejections.handle(sn)}},{key:"isLevelEnabled",value:function(Ot){var It=this,St=At(this.levels,Ot);if(St===null)return!1;var gt=At(this.levels,this.level);return gt!==null&&(this.transports&&this.transports.length!==0?this.transports.findIndex(function(Bt){var Dt=At(It.levels,Bt.level);return Dt===null&&(Dt=gt),Dt>=St})!==-1:gt>=St)}},{key:"log",value:function(Ot,It){for(var St,gt,Bt=arguments.length,Dt=new Array(Bt>2?Bt-2:0),Yt=2;Yt2?new ft({transport:Ot}):Ot;if(!It._writableState||!It._writableState.objectMode)throw new Error("Transports must WritableStreams in objectMode. Set { objectMode: true }.");return this._onEvent("error",It),this._onEvent("warn",It),this.pipe(It),Ot.handleExceptions&&this.exceptions.handle(),Ot.handleRejections&&this.rejections.handle(),this}},{key:"remove",value:function(Ot){if(!Ot)return this;var It=Ot;return(!Tt(Ot)||Ot.log.length>2)&&(It=this.transports.filter(function(St){return St.transport===Ot})[0]),It&&this.unpipe(It),this}},{key:"clear",value:function(){return this.unpipe(),this}},{key:"close",value:function(){return this.clear(),this.emit("close"),this}},{key:"setLevels",value:function(){Ft.deprecated("setLevels")}},{key:"query",value:function(Ot,It){typeof Ot=="function"&&(It=Ot,Ot={}),Ot=Ot||{};var St={},gt=Object.assign({},Ot.query||{});st(this.transports.filter(function(Bt){return!!Bt.query}),function(Bt,Dt){(function(Yt,Xt){Ot.query&&typeof Yt.formatQuery=="function"&&(Ot.query=Yt.formatQuery(gt)),Yt.query(Ot,function(Jt,zt){if(Jt)return Xt(Jt);typeof Yt.formatResults=="function"&&(zt=Yt.formatResults(zt,Ot.format)),Xt(null,zt)})})(Bt,function(Yt,Xt){Dt&&((Xt=Yt||Xt)&&(St[Bt.name]=Xt),Dt()),Dt=null})},function(){return It(null,St)})}},{key:"stream",value:function(){var Ot=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},It=new at,St=[];return It._streams=St,It.destroy=function(){for(var gt=St.length;gt--;)St[gt].destroy()},this.transports.filter(function(gt){return!!gt.stream}).forEach(function(gt){var Bt=gt.stream(Ot);Bt&&(St.push(Bt),Bt.on("log",function(Dt){Dt.transport=Dt.transport||[],Dt.transport.push(gt.name),It.emit("log",Dt)}),Bt.on("error",function(Dt){Dt.transport=Dt.transport||[],Dt.transport.push(gt.name),It.emit("error",Dt)}))}),It}},{key:"startTimer",value:function(){return new Ct(this)}},{key:"profile",value:function(Ot){var It=Date.now();if(this.profilers[Ot]){var St=this.profilers[Ot];delete this.profilers[Ot];for(var gt=arguments.length,Bt=new Array(gt>1?gt-1:0),Dt=1;Dtj($,tt)},o.exports=i.default},function(o,i,s){var j=Object.prototype.toString;o.exports=function($){if(typeof $.displayName=="string"&&$.constructor.name)return $.displayName;if(typeof $.name=="string"&&$.name)return $.name;if(typeof $=="object"&&$.constructor&&typeof $.constructor.name=="string")return $.constructor.name;var _e=$.toString(),tt=j.call($).slice(8,-1);return(_e=tt==="Function"?_e.substring(_e.indexOf("(")+1,_e.indexOf(")")):tt)||"anonymous"}},function(o,i,s){const j=s(10),{LEVEL:$}=s(3),_e=s(17),tt=o.exports=function(et={}){if(_e.call(this,et),!et.transport||typeof et.transport.log!="function")throw new Error("Invalid transport, must be an object with a log method.");this.transport=et.transport,this.level=this.level||et.transport.level,this.handleExceptions=this.handleExceptions||et.transport.handleExceptions,this._deprecated(),this.transport.__winstonError||(this.transport.__winstonError=function(rt){this.emit("error",rt,this.transport)}.bind(this),this.transport.on("error",this.transport.__winstonError))};j.inherits(tt,_e),tt.prototype._write=function(et,rt,ot){if(this.silent||et.exception===!0&&!this.handleExceptions)return ot(null);(!this.level||this.levels[this.level]>=this.levels[et[$]])&&this.transport.log(et[$],et.message,et,this._nop),ot(null)},tt.prototype._writev=function(et,rt){for(let ot=0;ot(rt[_e]=(ot.stable?tt.stableStringify:tt)(rt,ot.replacer||et,ot.space),rt))}).call(this,s(4).Buffer)},function(o,i,s){class j extends Error{constructor(_e){super(`Format functions must be synchronous taking a two arguments: (info, opts) -Found: ${_e.toString().split(` -`)[0]} -`),Error.captureStackTrace(this,j)}}o.exports=$=>{if($.length>2)throw new j($);function _e(et={}){this.options=et}function tt(et){return new _e(et)}return _e.prototype.transform=$,tt.Format=_e,tt}},function(o,i,s){function j(tt,et){if(!(tt instanceof et))throw new TypeError("Cannot call a class as a function")}function $(tt,et){for(var rt=0;rt0&&arguments[0]!==void 0?arguments[0]:{};j(this,tt),this.loggers=new Map,this.options=ot}var et,rt;return et=tt,(rt=[{key:"add",value:function(ot,lt){var dt=this;if(!this.loggers.has(ot)){var at=(lt=Object.assign({},lt||this.options)).transports||this.options.transports;lt.transports=at?at.slice():[];var ct=_e(lt);ct.on("close",function(){return dt._delete(ot)}),this.loggers.set(ot,ct)}return this.loggers.get(ot)}},{key:"get",value:function(ot,lt){return this.add(ot,lt)}},{key:"has",value:function(ot){return!!this.loggers.has(ot)}},{key:"close",value:function(ot){var lt=this;if(ot)return this._removeLogger(ot);this.loggers.forEach(function(dt,at){return lt._removeLogger(at)})}},{key:"_removeLogger",value:function(ot){this.loggers.has(ot)&&(this.loggers.get(ot).close(),this._delete(ot))}},{key:"_delete",value:function(ot){this.loggers.delete(ot)}}])&&$(et.prototype,rt),tt}()},function(o,i,s){(function(j){const $=s(49),_e=/^([A-Za-z0-9+/]{4})*([A-Za-z0-9+/]{4}|[A-Za-z0-9+/]{3}=|[A-Za-z0-9+/]{2}==)$/;o.exports=function(tt,et,rt){let ot,lt,dt=!1,at=!1;function ct(mt,bt){let Tt=`"${et}" ${bt}`;throw mt&&(Tt=`${Tt}, but is set to "${mt}"`),lt&&(Tt=`${Tt}. An example of a valid value would be: ${lt}`),new $(Tt)}function st(mt){return function(){let bt=tt[et];if(bt===void 0)if(ot===void 0&&at)ct(void 0,"is a required variable, but it was not set");else{if(ot===void 0)return;bt=ot}at&&bt.trim().length===0&&ct(void 0,"is a required variable, but its value was empty"),dt&&(bt.match(_e)||ct(bt,"should be a valid base64 string if using convertFromBase64"),bt=j.from(bt,"base64").toString());const Tt=[bt].concat(Array.prototype.slice.call(arguments));try{return mt.apply(mt,Tt)}catch(ht){ct(bt,ht.message)}}}const ut={asArray:st(s(211)),asBoolStrict:st(s(212)),asBool:st(s(213)),asPortNumber:st(s(214)),asEnum:st(s(215)),asFloatNegative:st(s(216)),asFloatPositive:st(s(217)),asFloat:st(s(51)),asIntNegative:st(s(218)),asIntPositive:st(s(91)),asInt:st(s(50)),asJsonArray:st(s(219)),asJsonObject:st(s(220)),asJson:st(s(52)),asString:st(s(35)),asUrlObject:st(s(92)),asUrlString:st(s(221)),convertFromBase64:function(){return dt=!0,ut},default:function(mt){if(typeof mt=="number")ot=mt.toString();else if(Array.isArray(mt)||typeof mt=="object"&&mt!==null)ot=JSON.stringify(mt);else{if(typeof mt!="string")throw new $("values passed to default() must be of Number, String, Array, or Object type");ot=mt}return ut},required:function(mt){return at=mt===void 0||mt,ut},example:function(mt){return lt=mt,ut}};return Object.entries(rt).forEach(([mt,bt])=>{ut[mt]=st(bt)}),ut}}).call(this,s(4).Buffer)},function(o,i,s){const j=s(35);o.exports=function($,_e){return _e=_e||",",$.length?j($).split(_e).filter(Boolean):[]}},function(o,i,s){o.exports=function(j){const $=j.toLowerCase();if($!=="false"&&$!=="true")throw new Error('should be either "true", "false", "TRUE", or "FALSE"');return $!=="false"}},function(o,i,s){o.exports=function(j){const $=j.toLowerCase();if(["false","0","true","1"].indexOf($)===-1)throw new Error('should be either "true", "false", "TRUE", "FALSE", 1, or 0');return!($==="0"||$==="false")}},function(o,i,s){const j=s(91);o.exports=function($){var _e=j($);if(_e>65535)throw new Error("cannot assign a port number greater than 65535");return _e}},function(o,i,s){const j=s(35);o.exports=function($,_e){const tt=j($);if(_e.indexOf(tt)<0)throw new Error(`should be one of [${_e.join(", ")}]`);return tt}},function(o,i,s){const j=s(51);o.exports=function($){const _e=j($);if(_e>0)throw new Error("should be a negative float");return _e}},function(o,i,s){const j=s(51);o.exports=function($){const _e=j($);if(_e<0)throw new Error("should be a positive float");return _e}},function(o,i,s){const j=s(50);o.exports=function($){const _e=j($);if(_e>0)throw new Error("should be a negative integer");return _e}},function(o,i,s){const j=s(52);o.exports=function($){var _e=j($);if(!Array.isArray(_e))throw new Error("should be a parseable JSON Array");return _e}},function(o,i,s){const j=s(52);o.exports=function($){var _e=j($);if(Array.isArray(_e))throw new Error("should be a parseable JSON Object");return _e}},function(o,i,s){const j=s(92);o.exports=function($){return j($).toString()}},function(o,i,s){function j(et){var rt=this;if(rt instanceof j||(rt=new j),rt.tail=null,rt.head=null,rt.length=0,et&&typeof et.forEach=="function")et.forEach(function(dt){rt.push(dt)});else if(arguments.length>0)for(var ot=0,lt=arguments.length;ot1)ot=rt;else{if(!this.head)throw new TypeError("Reduce of empty list with no initial value");lt=this.head.next,ot=this.head.value}for(var dt=0;lt!==null;dt++)ot=et(ot,lt.value,dt),lt=lt.next;return ot},j.prototype.reduceReverse=function(et,rt){var ot,lt=this.tail;if(arguments.length>1)ot=rt;else{if(!this.tail)throw new TypeError("Reduce of empty list with no initial value");lt=this.tail.prev,ot=this.tail.value}for(var dt=this.length-1;lt!==null;dt--)ot=et(ot,lt.value,dt),lt=lt.prev;return ot},j.prototype.toArray=function(){for(var et=new Array(this.length),rt=0,ot=this.head;ot!==null;rt++)et[rt]=ot.value,ot=ot.next;return et},j.prototype.toArrayReverse=function(){for(var et=new Array(this.length),rt=0,ot=this.tail;ot!==null;rt++)et[rt]=ot.value,ot=ot.prev;return et},j.prototype.slice=function(et,rt){(rt=rt||this.length)<0&&(rt+=this.length),(et=et||0)<0&&(et+=this.length);var ot=new j;if(rtthis.length&&(rt=this.length);for(var lt=0,dt=this.head;dt!==null&<this.length&&(rt=this.length);for(var lt=this.length,dt=this.tail;dt!==null&<>rt;lt--)dt=dt.prev;for(;dt!==null&<>et;lt--,dt=dt.prev)ot.push(dt.value);return ot},j.prototype.reverse=function(){for(var et=this.head,rt=this.tail,ot=et;ot!==null;ot=ot.prev){var lt=ot.prev;ot.prev=ot.next,ot.next=lt}return this.head=rt,this.tail=et,this};try{s(223)(j)}catch{}},function(o,i,s){o.exports=function(j){j.prototype[Symbol.iterator]=function*(){for(let $=this.head;$;$=$.next)yield $.value}}},function(o,i,s){(function(j){(function(){var $,_e,tt,et,rt,ot;typeof performance!="undefined"&&performance!==null&&performance.now?o.exports=function(){return performance.now()}:j!=null&&j.hrtime?(o.exports=function(){return($()-rt)/1e6},_e=j.hrtime,et=($=function(){var lt;return 1e9*(lt=_e())[0]+lt[1]})(),ot=1e9*j.uptime(),rt=et-ot):Date.now?(o.exports=function(){return Date.now()-tt},tt=Date.now()):(o.exports=function(){return new Date().getTime()-tt},tt=new Date().getTime())}).call(this)}).call(this,s(2))},function(o,i,s){var j,$,_e=s(96),tt=s(97),et=0,rt=0;o.exports=function(ot,lt,dt){var at=lt&&dt||0,ct=lt||[],st=(ot=ot||{}).node||j,ut=ot.clockseq!==void 0?ot.clockseq:$;if(st==null||ut==null){var mt=_e();st==null&&(st=j=[1|mt[0],mt[1],mt[2],mt[3],mt[4],mt[5]]),ut==null&&(ut=$=16383&(mt[6]<<8|mt[7]))}var bt=ot.msecs!==void 0?ot.msecs:new Date().getTime(),Tt=ot.nsecs!==void 0?ot.nsecs:rt+1,ht=bt-et+(Tt-rt)/1e4;if(ht<0&&ot.clockseq===void 0&&(ut=ut+1&16383),(ht<0||bt>et)&&ot.nsecs===void 0&&(Tt=0),Tt>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");et=bt,rt=Tt,$=ut;var yt=(1e4*(268435455&(bt+=122192928e5))+Tt)%4294967296;ct[at++]=yt>>>24&255,ct[at++]=yt>>>16&255,ct[at++]=yt>>>8&255,ct[at++]=255&yt;var ft=bt/4294967296*1e4&268435455;ct[at++]=ft>>>8&255,ct[at++]=255&ft,ct[at++]=ft>>>24&15|16,ct[at++]=ft>>>16&255,ct[at++]=ut>>>8|128,ct[at++]=255&ut;for(var Ct=0;Ct<6;++Ct)ct[at+Ct]=st[Ct];return lt||tt(ct)}},function(o,i,s){var j=s(96),$=s(97);o.exports=function(_e,tt,et){var rt=tt&&et||0;typeof _e=="string"&&(tt=_e==="binary"?new Array(16):null,_e=null);var ot=(_e=_e||{}).random||(_e.rng||j)();if(ot[6]=15&ot[6]|64,ot[8]=63&ot[8]|128,tt)for(var lt=0;lt<16;++lt)tt[rt+lt]=ot[lt];return tt||$(ot)}},function(o,i,s){(function(j){(function($){function _e(et){if((et=et===void 0?"utf-8":et)!=="utf-8")throw new RangeError("Failed to construct 'TextEncoder': The encoding label provided ('"+et+"') is invalid.")}function tt(et,rt){if(rt=rt===void 0?{fatal:!1}:rt,(et=et===void 0?"utf-8":et)!=="utf-8")throw new RangeError("Failed to construct 'TextDecoder': The encoding label provided ('"+et+"') is invalid.");if(rt.fatal)throw Error("Failed to construct 'TextDecoder': the 'fatal' option is unsupported.")}if($.TextEncoder&&$.TextDecoder)return!1;Object.defineProperty(_e.prototype,"encoding",{value:"utf-8"}),_e.prototype.encode=function(et,rt){if((rt=rt===void 0?{stream:!1}:rt).stream)throw Error("Failed to encode: the 'stream' option is unsupported.");rt=0;for(var ot=et.length,lt=0,dt=Math.max(32,ot+(ot>>1)+7),at=new Uint8Array(dt>>3<<3);rt=ct){if(rt=ct)continue}if(lt+4>at.length&&(dt+=8,dt=(dt*=1+rt/et.length*2)>>3<<3,(st=new Uint8Array(dt)).set(at),at=st),(4294967168&ct)==0)at[lt++]=ct;else{if((4294965248&ct)==0)at[lt++]=ct>>6&31|192;else if((4294901760&ct)==0)at[lt++]=ct>>12&15|224,at[lt++]=ct>>6&63|128;else{if((4292870144&ct)!=0)continue;at[lt++]=ct>>18&7|240,at[lt++]=ct>>12&63|128,at[lt++]=ct>>6&63|128}at[lt++]=63&ct|128}}return at.slice(0,lt)},Object.defineProperty(tt.prototype,"encoding",{value:"utf-8"}),Object.defineProperty(tt.prototype,"fatal",{value:!1}),Object.defineProperty(tt.prototype,"ignoreBOM",{value:!1}),tt.prototype.decode=function(et,rt){if((rt=rt===void 0?{stream:!1}:rt).stream)throw Error("Failed to decode: the 'stream' option is unsupported.");rt=0;for(var ot=(et=new Uint8Array(et)).length,lt=[];rt>>10&1023|55296),dt=56320|1023&dt),lt.push(dt))}return String.fromCharCode.apply(null,lt)},$.TextEncoder=_e,$.TextDecoder=tt})(typeof window!="undefined"?window:j!==void 0?j:this)}).call(this,s(5))},function(o,i,s){s.r(i),s.d(i,"AuthClient",function(){return _e}),s.d(i,"RtcSignalingClient",function(){return et}),s.d(i,"Credentials",function(){return ut}),s.d(i,"SignalingPromiseClient",function(){return mt.SignalingPromiseClient}),s.d(i,"IRtcClientConfiguration",function(){}),s.d(i,"IRtcConnectConfiguration",function(){}),s.d(i,"IRtcConnectionStatsInfo",function(){}),s.d(i,"IRtcSendConfiguration",function(){}),s.d(i,"IRtcSessionMetricsMessageCounts",function(){}),s.d(i,"IRtcStreamMessage",function(){}),s.d(i,"IStreamControl",function(){}),s.d(i,"RtcClient",function(){return cn});var j=s(26),$=function(sn,Ht,qt,nn){return new(qt||(qt=Promise))(function(yn,ln){function _n(fn){try{hn(nn.next(fn))}catch(dn){ln(dn)}}function vn(fn){try{hn(nn.throw(fn))}catch(dn){ln(dn)}}function hn(fn){var dn;fn.done?yn(fn.value):(dn=fn.value,dn instanceof qt?dn:new qt(function(An){An(dn)})).then(_n,vn)}hn((nn=nn.apply(sn,Ht||[])).next())})};class _e extends j.a{adminSignup(Ht,qt){return $(this,void 0,void 0,function*(){return yield this.fetch("auth/admin-signup",{token:qt,method:"POST",body:JSON.stringify(Ht)})})}login(Ht){return $(this,void 0,void 0,function*(){return yield this.fetch("auth/login",{method:"POST",body:JSON.stringify(Ht),allowUnsafeRetries:!0})})}loginWithGoogleToken(Ht){return $(this,void 0,void 0,function*(){return yield this.fetch("auth/login-google",{method:"POST",body:JSON.stringify(Ht),allowUnsafeRetries:!0})})}refresh(Ht,qt){return $(this,void 0,void 0,function*(){return yield this.fetch("auth/refresh",{method:"POST",body:JSON.stringify({refreshToken:Ht,tokenExpirationSeconds:qt}),allowUnsafeRetries:!0})})}respondToNewPasswordRequiredChallenge(Ht){return $(this,void 0,void 0,function*(){return yield this.fetch("auth/respond-to-new-password-required-challenge",{method:"POST",body:JSON.stringify(Ht)})})}forgotPassword(Ht){return $(this,void 0,void 0,function*(){return yield this.fetch("auth/forgot-password",{method:"POST",body:JSON.stringify({email:Ht})})})}confirmForgotPassword(Ht){return $(this,void 0,void 0,function*(){return yield this.fetch("auth/confirm-forgot-password",{method:"POST",body:JSON.stringify(Ht)})})}resendInvitation(Ht){return $(this,void 0,void 0,function*(){return yield this.fetch("auth/resend-invitation",{method:"POST",body:JSON.stringify({email:Ht})})})}changePassword({token:Ht,refreshToken:qt,currentPassword:nn,newPassword:yn}){return $(this,void 0,void 0,function*(){return yield this.fetch("auth/change-password",{token:Ht,method:"POST",body:JSON.stringify({refreshToken:qt,currentPassword:nn,newPassword:yn})})})}getDeviceCredentials(Ht){return $(this,void 0,void 0,function*(){return yield this.fetch("auth/device-credentials",{token:Ht,method:"POST",allowUnsafeRetries:!0})})}impersonate(Ht,qt){return $(this,void 0,void 0,function*(){return yield this.fetch("auth/impersonate",{token:Ht,method:"POST",allowUnsafeRetries:!0,body:JSON.stringify({userId:qt})})})}createServiceAccount(Ht,qt,nn){return $(this,void 0,void 0,function*(){return yield this.fetch("auth/service-account",{token:Ht,method:"POST",allowUnsafeRetries:!0,body:JSON.stringify({name:qt,roleId:nn})})})}getFeatures(Ht){return $(this,void 0,void 0,function*(){return(yield this.fetch("auth/features",{token:Ht})).features})}}var tt=function(sn,Ht,qt,nn){return new(qt||(qt=Promise))(function(yn,ln){function _n(fn){try{hn(nn.next(fn))}catch(dn){ln(dn)}}function vn(fn){try{hn(nn.throw(fn))}catch(dn){ln(dn)}}function hn(fn){var dn;fn.done?yn(fn.value):(dn=fn.value,dn instanceof qt?dn:new qt(function(An){An(dn)})).then(_n,vn)}hn((nn=nn.apply(sn,Ht||[])).next())})};class et extends j.a{createPeer(Ht,qt){return tt(this,void 0,void 0,function*(){return yield this.fetch("peers",{token:Ht,method:"POST",body:JSON.stringify(qt)})})}getPeers(Ht){return tt(this,void 0,void 0,function*(){return(yield this.fetch("peers",{token:Ht})).items})}refreshPeer(Ht,qt){return tt(this,void 0,void 0,function*(){yield this.fetch(`peers/${qt}/refresh`,{token:Ht,method:"POST",allowUnsafeRetries:!0})})}createSession(Ht,qt){return tt(this,void 0,void 0,function*(){return yield this.fetch("sessions",{token:Ht,method:"POST",body:JSON.stringify(qt)})})}refreshSession(Ht,qt){return tt(this,void 0,void 0,function*(){yield this.fetch(`sessions/${qt}/refresh`,{token:Ht,method:"POST",allowUnsafeRetries:!0})})}deleteSession(Ht,qt){return tt(this,void 0,void 0,function*(){yield this.fetch(`sessions/${qt}`,{token:Ht,method:"DELETE",allowUnsafeRetries:!0})})}getSessions(Ht){return tt(this,void 0,void 0,function*(){return(yield this.fetch("sessions",{token:Ht})).items})}getIceServers(Ht){return tt(this,void 0,void 0,function*(){return(yield this.fetch("ice-servers",{token:Ht})).items})}addSignals(Ht,qt,nn){return tt(this,void 0,void 0,function*(){yield this.fetch(`sessions/${qt}/add-signals`,{token:Ht,method:"POST",body:JSON.stringify(nn)})})}takeSignals(Ht,qt){return tt(this,void 0,void 0,function*(){return(yield this.fetch(`sessions/${qt}/take-signals`,{token:Ht,method:"POST"})).items})}}var rt=s(1),ot=s(11),lt=s(21),dt=s(102),at=function(sn,Ht,qt,nn){return new(qt||(qt=Promise))(function(yn,ln){function _n(fn){try{hn(nn.next(fn))}catch(dn){ln(dn)}}function vn(fn){try{hn(nn.throw(fn))}catch(dn){ln(dn)}}function hn(fn){var dn;fn.done?yn(fn.value):(dn=fn.value,dn instanceof qt?dn:new qt(function(An){An(dn)})).then(_n,vn)}hn((nn=nn.apply(sn,Ht||[])).next())})};class ct extends class{constructor(Ht={}){this.cache=new dt(Ht),this.stringify=Ht.fastStringify?JSON.stringify:lt}set(Ht,qt,nn){if(!this.cache.set(this.stringify(Ht),qt,nn))throw Error(`Value too large (${this.cache.lengthCalculator(qt)} > ${this.cache.max})`)}get(Ht){return this.cache.get(this.stringify(Ht))}del(Ht){this.cache.del(this.stringify(Ht))}length(){return this.cache.length}reset(){this.cache.reset()}prune(){return this.cache.prune()}forEach(Ht){return this.cache.forEach(Ht)}}{constructor(Ht={}){if(super(Ht),this.expireRejectedPromiseValues=Ht.expireRejectedPromiseValues===void 0||Ht.expireRejectedPromiseValues,this.rejectedPromiseValueTtl=Ht.rejectedPromiseValueTtl!==void 0?Ht.rejectedPromiseValueTtl:rt.a.second,this.rejectedPromiseValueTtl<0)throw new Error("rejectedPromiseValueTtl must not be negative")}set(Ht,qt,nn){const yn=this.stringify(Ht);this.cache.set(yn,qt,nn),this.expireRejectedPromiseValues&&Promise.resolve(qt).catch(()=>at(this,void 0,void 0,function*(){yield Object(ot.a)(this.rejectedPromiseValueTtl),this.cache.peek(yn)===qt&&this.cache.del(yn)}))}}var st=function(sn,Ht,qt,nn){return new(qt||(qt=Promise))(function(yn,ln){function _n(fn){try{hn(nn.next(fn))}catch(dn){ln(dn)}}function vn(fn){try{hn(nn.throw(fn))}catch(dn){ln(dn)}}function hn(fn){var dn;fn.done?yn(fn.value):(dn=fn.value,dn instanceof qt?dn:new qt(function(An){An(dn)})).then(_n,vn)}hn((nn=nn.apply(sn,Ht||[])).next())})};class ut{constructor(Ht,qt,nn){this.authClient=Ht,this.email=qt,this.password=nn,this.tokenTtlMs=1*rt.a.hour,this.tokenCache=new ct({max:100,maxAge:this.tokenTtlMs-5*rt.a.minute,fastStringify:!0})}getToken(){return st(this,void 0,void 0,function*(){let Ht=this.tokenCache.get(this.email);return Ht||(Ht=(()=>st(this,void 0,void 0,function*(){const{authentication:qt}=yield this.authClient.login({email:this.email,password:this.password,tokenExpirationSeconds:this.tokenTtlMs/rt.a.second});if(!qt)throw new Error("User account not verified.");return qt.accessToken}))(),this.tokenCache.set(this.email,Ht)),Ht})}}var mt=s(93),bt=function(sn,Ht,qt,nn){return new(qt||(qt=Promise))(function(yn,ln){function _n(fn){try{hn(nn.next(fn))}catch(dn){ln(dn)}}function vn(fn){try{hn(nn.throw(fn))}catch(dn){ln(dn)}}function hn(fn){var dn;fn.done?yn(fn.value):(dn=fn.value,dn instanceof qt?dn:new qt(function(An){An(dn)})).then(_n,vn)}hn((nn=nn.apply(sn,Ht||[])).next())})};function Tt(sn){return bt(this,void 0,void 0,function*(){return(yield Promise.all(sn.map(Ht=>Ht.catch(qt=>qt)))).filter(Ht=>Ht instanceof Error)})}function ht(sn){if(sn!==void 0)return sn;throw new Error("Value is undefined")}var yt=s(0),ft=function(sn,Ht,qt,nn){return new(qt||(qt=Promise))(function(yn,ln){function _n(fn){try{hn(nn.next(fn))}catch(dn){ln(dn)}}function vn(fn){try{hn(nn.throw(fn))}catch(dn){ln(dn)}}function hn(fn){var dn;fn.done?yn(fn.value):(dn=fn.value,dn instanceof qt?dn:new qt(function(An){An(dn)})).then(_n,vn)}hn((nn=nn.apply(sn,Ht||[])).next())})};function Ct({func:sn,delay:Ht,immediate:qt}){let nn=!1,yn=setTimeout(function _n(){return ft(this,void 0,void 0,function*(){if(nn)return;const vn=new Date().getTime();try{ln=sn(),yield ln}finally{if(!nn){const hn=new Date().getTime();yn=setTimeout(_n,Math.max(Ht-(hn-vn),0))}}})},qt?0:Ht),ln=Promise.resolve();return{stop(){return ft(this,void 0,void 0,function*(){nn=!0,clearTimeout(yn),yield ln})}}}function Ft(sn,Ht){return Object.keys(sn).reduce((qt,nn)=>Object.assign(Object.assign({},qt),{[nn]:Ht(sn[nn])}),{})}var Ut=function(sn,Ht,qt,nn){return new(qt||(qt=Promise))(function(yn,ln){function _n(fn){try{hn(nn.next(fn))}catch(dn){ln(dn)}}function vn(fn){try{hn(nn.throw(fn))}catch(dn){ln(dn)}}function hn(fn){var dn;fn.done?yn(fn.value):(dn=fn.value,dn instanceof qt?dn:new qt(function(An){An(dn)})).then(_n,vn)}hn((nn=nn.apply(sn,Ht||[])).next())})};class wt{constructor(Ht){this.message=Ht}send(Ht){return Ut(this,void 0,void 0,function*(){yt.a.info(this.message,Ft(Ht,qt=>{const{sum:nn,count:yn}=qt,ln=nn/yn;return Object.assign(Object.assign({},qt),{average:ln})}))})}}var vt=function(sn,Ht,qt,nn){return new(qt||(qt=Promise))(function(yn,ln){function _n(fn){try{hn(nn.next(fn))}catch(dn){ln(dn)}}function vn(fn){try{hn(nn.throw(fn))}catch(dn){ln(dn)}}function hn(fn){var dn;fn.done?yn(fn.value):(dn=fn.value,dn instanceof qt?dn:new qt(function(An){An(dn)})).then(_n,vn)}hn((nn=nn.apply(sn,Ht||[])).next())})};const At=s(224),Et=!!s(7).c,Mt=new class{constructor(sn=60){this.buffer={},this.metrics={},this.reporters=[],this.flushInterval=Ct({func:()=>this.flushStats(),delay:sn*rt.a.second})}shutdown(){return vt(this,void 0,void 0,function*(){yield this.flushInterval.stop(),yield this.flushStats(),yield Object(ot.a)(2*rt.a.second)})}aggregate(sn,Ht){if(this.buffer[sn]){const{min:qt,max:nn,sum:yn,count:ln}=this.buffer[sn];this.buffer[sn]={min:Math.min(qt,Ht),max:Math.max(nn,Ht),sum:yn+Ht,count:ln+1}}else this.buffer[sn]={min:Ht,max:Ht,sum:Ht,count:1}}increment(sn){this.aggregate(sn,1)}timer(sn,Ht){return vt(this,void 0,void 0,function*(){const qt=At(),nn=yield Ht(),yn=At();return this.aggregate(sn,yn-qt),nn})}metric(sn,Ht){this.metrics[sn]=Ht}registerStatsReporter(sn){this.reporters.push(sn)}write(sn){return vt(this,void 0,void 0,function*(){if(Object.values(sn).length===0)return;const Ht=yield Tt(this.reporters.map(qt=>qt.send(sn)));for(const qt of Ht)yt.a.warn("Failed to write stats",{error:qt})})}flushStats(){return vt(this,void 0,void 0,function*(){const sn=Object.assign(Object.assign({},this.buffer),Ft(this.metrics,Ht=>{const qt=Ht();return{min:qt,max:qt,sum:qt,count:1}}));Object.keys(sn).length>0&&(yield this.write(sn),this.buffer={})})}};Et||Mt.registerStatsReporter(new wt("stats"));var Lt=s(8),kt=s(22),Rt=s(103),Ot=s(36),It=function(sn,Ht,qt,nn){return new(qt||(qt=Promise))(function(yn,ln){function _n(fn){try{hn(nn.next(fn))}catch(dn){ln(dn)}}function vn(fn){try{hn(nn.throw(fn))}catch(dn){ln(dn)}}function hn(fn){var dn;fn.done?yn(fn.value):(dn=fn.value,dn instanceof qt?dn:new qt(function(An){An(dn)})).then(_n,vn)}hn((nn=nn.apply(sn,Ht||[])).next())})};class St extends Ot.a{constructor(Ht){super(Ht)}postLanRtcOffer(Ht){return It(this,void 0,void 0,function*(){return yield this.fetch("v1/lan-rtc-offer",{method:"POST",body:JSON.stringify(Ht)})})}}var gt=s(55);const Bt={ordered:!1,maxPacketLifeTime:300*rt.a.millisecond},Dt={ordered:!0},Yt={ordered:!0},Xt={ordered:!1,maxRetransmits:0},Jt={ordered:!1,maxRetransmits:0};function zt({entityId:sn,streamName:Ht,streamType:qt}){return`${sn}.${Ht}.${qt}`}var Wt=function(sn,Ht,qt,nn){return new(qt||(qt=Promise))(function(yn,ln){function _n(fn){try{hn(nn.next(fn))}catch(dn){ln(dn)}}function vn(fn){try{hn(nn.throw(fn))}catch(dn){ln(dn)}}function hn(fn){var dn;fn.done?yn(fn.value):(dn=fn.value,dn instanceof qt?dn:new qt(function(An){An(dn)})).then(_n,vn)}hn((nn=nn.apply(sn,Ht||[])).next())})};class xt{constructor(Ht,qt){this.sessionId=Ht,this.connection=qt,this.counts={localSent:new Map,localReceived:new Map,remoteSent:new Map,remoteReceived:new Map},this.sessionId=Ht,this.connection=qt}updateRemoteMessagesCounts(Ht){if(Ht.payload.streamsInfo){this.counts.remoteSent=new Map,this.counts.remoteReceived=new Map;for(const qt of Ht.payload.streamsInfo.items)this.counts.remoteSent.set(qt.streamId,qt.sentCount),this.counts.remoteReceived.set(qt.streamId,qt.receivedCount)}}getLocalStreamsInfo(Ht){const{localSent:qt,localReceived:nn}=this.counts;return{items:[...new Set([...qt.keys(),...nn.keys()])].map(yn=>{var ln,_n;return{streamId:yn,sentCount:(ln=qt.get(yn))!==null&&ln!==void 0?ln:0,receivedCount:(_n=nn.get(yn))!==null&&_n!==void 0?_n:0}}),timestamp:Ht}}incrementLocalSent(Ht){const{localSent:qt}=this.counts,nn=zt(Ht.header.stream);qt.set(nn,(qt.get(nn)||0)+1)}incrementLocalReceived(Ht){const{localReceived:qt}=this.counts,nn=zt(Ht.header.stream),yn=qt.get(nn)||0;if(yn===0){const{streamName:ln,streamType:_n}=Ht.header.stream;yt.a.debug("RTC client received first message for stream",{streamName:ln,streamType:_n})}qt.set(nn,yn+1)}uploadMetrics(){return Wt(this,void 0,void 0,function*(){const{sessionId:Ht}=this,qt=yield this.connection.peerConnection.getStats(),nn={};qt.forEach(fn=>nn[fn.id]=fn),yt.a.debug("rtc-stats",Object.assign(Object.assign({},nn),{sessionId:Ht}));const{localSent:yn,localReceived:ln,remoteSent:_n,remoteReceived:vn}=this.counts,hn=[...new Set([...yn.keys(),...ln.keys()])].reduce((fn,dn)=>{const An=yn.get(dn),Fn=ln.get(dn),In=_n.get(dn),Mn=vn.get(dn);return Object.assign(Object.assign({},fn),{[`local-${dn}-sent`]:An,[`local-${dn}-received`]:Fn,[`remote-${dn}-sent`]:In,[`remote-${dn}-received`]:Mn})},{sessionId:Ht});yt.a.debug("rtc-message-report",Object.assign({deviceId:this.connection.getRemoteDeviceId()},hn))})}}function Pt(sn){return new Set(["disconnected","failed","closed"]).has(sn.iceConnectionState)}var $t=function(sn,Ht,qt,nn){return new(qt||(qt=Promise))(function(yn,ln){function _n(fn){try{hn(nn.next(fn))}catch(dn){ln(dn)}}function vn(fn){try{hn(nn.throw(fn))}catch(dn){ln(dn)}}function hn(fn){var dn;fn.done?yn(fn.value):(dn=fn.value,dn instanceof qt?dn:new qt(function(An){An(dn)})).then(_n,vn)}hn((nn=nn.apply(sn,Ht||[])).next())})};class en{constructor(Ht,qt,nn){this.peerConnection=Ht,this.config=qt,this.dataChannelNotifier=nn,this.connectTimeoutMs=20*rt.a.second,this.iceGatheringTimeoutMs=15*rt.a.second,this.pingUpdateTimeoutMs=1*rt.a.second,this.streamsInfoUpdateTimeoutMs=2*rt.a.second,this.reassemblyTimeoutMs=500*rt.a.millisecond,this.reassemblyTableCleanupMs=1*rt.a.second,this.heartbeatTimeoutMs=20*rt.a.millisecond,this.streamLatestTimestamp=new Map,this.reassemblyTable=new Map,this.reassemblyTableLastTimestamp=new Map,this.closeCalled=!1,this.gotOffer=!1,this.hasIceCandidate=!1;const{isOffer:yn}=qt.baseConfig;yn?this.initializeChannels(Ht):Ht.ondatachannel=ln=>{switch(ln.channel.label){case"stream.latest-ttl":this.latestTtlStreamChannel=ln.channel;break;case"stream.reliable":this.reliableStreamChannel=ln.channel;break;case"stream.latest-reliable":this.latestReliableStreamChannel=ln.channel;break;case"stream.latest-try-once":this.latestTryOnceStreamChannel=ln.channel;break;case"heartbeat":return void(this.heartbeatChannel=ln.channel);default:return void this.dataChannelNotifier(ln.channel)}this.setupChannel(ln.channel)},this.pingUpdateTimeout=setInterval(()=>{const{reliableStreamChannel:ln}=this;ln&&this.sendSystemMessage(ln,{type:"ping"})},this.pingUpdateTimeoutMs),this.streamsInfoUpdateTimeout=setInterval(()=>{const{latestTtlStreamChannel:ln}=this;ln&&this.sendSystemMessage(ln,{type:"streams-info"})},this.streamsInfoUpdateTimeoutMs),this.reassemblyTableCleanupTimeout=setInterval(()=>{const ln=new Date().getTime();this.reassemblyTableLastTimestamp.forEach((_n,vn,hn)=>{ln>vn+this.reassemblyTimeoutMs&&this.reassemblyTable.delete(_n)})},this.reassemblyTableCleanupMs),this.heartbeatTimeout=setInterval(()=>{const{heartbeatChannel:ln}=this;ln&&ln.readyState==="open"&&ln.send(new Uint8Array([1]))},this.heartbeatTimeoutMs)}handleSignal(Ht){return $t(this,void 0,void 0,function*(){const{peerConnection:qt}=this,{track:nn}=this.config.baseConfig,yn=(()=>{try{return JSON.parse(Ht.getPayload())}catch{return}})();if(!yn)return void yt.a.error("Received unparseable signal.");yt.a.debug("Handling signal",{description:yn});const{sdp:ln,type:_n}=yn;if(!ln||!_n)return void yt.a.warn("Received non-SDP signal");const{signalingState:vn,connectionState:hn}=qt;if(vn!=="stable"||hn!=="connected")if(qt.remoteDescription)yt.a.warn(`Received SDP after remote description was set: ${ln}`);else{if(_n==="offer"){if(vn!=="stable")return void yt.a.warn("Received offer SDP when signaling is ongoing.");yield qt.setRemoteDescription(yn);const fn=yield qt.createAnswer();yield qt.setLocalDescription(fn);const dn=Ht.clone();return nn==null||nn("Answer Received",dn),dn.setPayload(JSON.stringify(fn)),dn.setReceiverId(Ht.getSenderId()),dn.setSenderId(Ht.getReceiverId()),dn}if(_n==="answer"){if(vn==="stable")return void yt.a.warn("Received answer SDP when signaling hasn't started.");yield qt.setRemoteDescription(yn)}}else yt.a.warn(`Received SDP when already connected: ${ln}`)})}send(Ht,qt){const nn=this.getChannelFromLabel(qt.channelLabel);nn?this.sendOnChannel(nn,Ht):yt.a.warn("Send called with unexpected channel label",{channelLabel:qt.channelLabel})}controlRemoteStream(Ht){this.sendSystemMessage(ht(this.reliableStreamChannel),{type:"stream-control",streamControl:Ht})}isActive(){return new Set(["new","checking","connected","completed"]).has(this.peerConnection.iceConnectionState)||this.isReady()}isReady(){const{reliableStreamChannel:Ht,latestTtlStreamChannel:qt,latestTryOnceStreamChannel:nn,latestReliableStreamChannel:yn}=this;return(Ht==null?void 0:Ht.readyState)==="open"&&(qt==null?void 0:qt.readyState)==="open"&&(nn==null?void 0:nn.readyState)==="open"&&(yn==null?void 0:yn.readyState)==="open"}close(){return $t(this,void 0,void 0,function*(){if(this.closeCalled)return;this.closeCalled=!0,this.sessionMetrics&&(yield this.sessionMetrics.uploadMetrics()),this.pingUpdateTimeout&&clearInterval(this.pingUpdateTimeout),this.reassemblyTableCleanupTimeout&&clearInterval(this.reassemblyTableCleanupTimeout),this.streamsInfoUpdateTimeout&&clearInterval(this.streamsInfoUpdateTimeout),this.heartbeatTimeout&&clearInterval(this.heartbeatTimeout);const{peerConnection:Ht,reliableStreamChannel:qt,latestTtlStreamChannel:nn,latestTryOnceStreamChannel:yn,latestReliableStreamChannel:ln}=this;Ht.close(),qt==null||qt.close(),nn==null||nn.close(),yn==null||yn.close(),ln==null||ln.close()})}getPing(){return this.pingTimeMs}getLastMessageTimestamp(){return this.lastMessageTimestamp}getSessionCreatedTimestamp(){var Ht;return(Ht=this.config.remoteConfig)===null||Ht===void 0?void 0:Ht.sessionCreatedTimestamp}setSessionCreatedTimestamp(Ht){this.config.remoteConfig&&(this.config.remoteConfig.sessionCreatedTimestamp=Ht)}getSessionId(){var Ht;return(Ht=this.config.remoteConfig)===null||Ht===void 0?void 0:Ht.sessionId}setSessionId(Ht){this.config.remoteConfig&&(this.config.remoteConfig.sessionId=Ht,this.sessionMetrics=new xt(Ht,this))}getRemotePeerId(){return this.config.baseConfig.remotePeerId}getRemoteDeviceId(){var Ht;return(Ht=this.config.baseConfig)===null||Ht===void 0?void 0:Ht.remoteDeviceId}setRemoteDeviceId(Ht){this.config.baseConfig.remoteDeviceId=Ht}getSessionMetricsMessageCounts(){var Ht;return(Ht=this.sessionMetrics)===null||Ht===void 0?void 0:Ht.counts}getConnectionStatsInfo(){return $t(this,void 0,void 0,function*(){const{peerConnection:Ht}=this;if(!Ht)return;const qt=yield Ht.getStats(null),nn=[];qt.forEach(hn=>{nn.push(hn)});const yn=nn.find(hn=>hn.type==="transport");if(!yn)return;const ln=nn.find(hn=>(hn.type==="candidate-pair"||hn.type==="candidatepair")&&hn.id===yn.selectedCandidatePairId);if(!ln)return;const _n=nn.find(hn=>hn.id===ln.localCandidateId),vn=nn.find(hn=>hn.id===ln.remoteCandidateId);return _n&&vn&&(_n.address=_n.address||_n.ip,vn.address=vn.address||vn.ip,_n.address!==void 0&&vn.address!==void 0)?{transport:yn,localCandidate:_n,remoteCandidate:vn}:void 0})}initializeChannels(Ht){this.heartbeatChannel=Ht.createDataChannel("heartbeat",Jt),this.heartbeatChannel.binaryType="arraybuffer",this.latestTtlStreamChannel=Ht.createDataChannel("stream.latest-ttl",Bt),this.latestTtlStreamChannel.binaryType="arraybuffer",this.reliableStreamChannel=Ht.createDataChannel("stream.reliable",Dt),this.reliableStreamChannel.binaryType="arraybuffer",this.latestReliableStreamChannel=Ht.createDataChannel("stream.latest-reliable",Yt),this.latestReliableStreamChannel.binaryType="arraybuffer",this.latestTryOnceStreamChannel=Ht.createDataChannel("stream.latest-try-once",Xt),this.latestTryOnceStreamChannel.binaryType="arraybuffer",this.setupChannel(this.latestTtlStreamChannel),this.setupChannel(this.reliableStreamChannel),this.setupChannel(this.latestReliableStreamChannel),this.setupChannel(this.latestTryOnceStreamChannel)}getOffer(){var Ht,qt,nn;return $t(this,void 0,void 0,function*(){const{gotOffer:yn}=this,{peerConnection:ln,config:_n}=this;if(this.config.baseConfig.isLan)throw new Error('"getOffer" method can only be called with internet connections. LAN connections should call the "getLanOffer" method.');const vn=(Ht=this.config.remoteConfig)===null||Ht===void 0?void 0:Ht.sessionId;if(yn)return void yt.a.debug("Failed to generate offer because gotOffer was already called.");if(this.gotOffer=!0,Pt(this.peerConnection))return void yt.a.debug("Failed to generate offer because the peer connection was inactive.");const hn=_n.baseConfig.track;ln.onicecandidate=()=>{this.hasIceCandidate=!0},ln.oniceconnectionstatechange=()=>$t(this,void 0,void 0,function*(){const In=ln.iceConnectionState;if(In==="connected"||In==="completed"){const Mn=yield this.getConnectionStatsInfo(),kn=Mn?function(Vn){const Hn=Vn.localCandidate.candidateType,nr=Vn.remoteCandidate.candidateType;return Hn==="host"&&nr==="host"?"local":Hn==="relay"||nr==="relay"?"TURN":"STUN"}(Mn):void 0;yt.a.info(`ICE connection state changed to ${In}`,{sessionId:vn,connectionStatsInfo:Mn,iceMode:kn}),hn==null||hn("ICE connection state change",{iceConnectionState:In,sessionId:vn,connectionStatsInfo:Mn,iceMode:kn})}}),yield ln.setLocalDescription(yield ln.createOffer());const fn=new Date().getTime();for(;;){const In=new Date().getTime()-fn;if(In>this.connectTimeoutMs)return void yt.a.debug("Failed to generate offer because ICE gathering timed out.");if(In>this.iceGatheringTimeoutMs&&this.hasIceCandidate){yt.a.debug("ICE gathering partially completed; proceeding",{iceTransportPolicy:ln.getConfiguration().iceTransportPolicy,waitTime:In}),hn==null||hn("ICE gathering partially completed",{sessionId:vn,iceTransportPolicy:ln.getConfiguration().iceTransportPolicy,waitTime:In});break}if(ln.iceGatheringState==="complete"){yt.a.debug("ICE gathering complete",{iceTransportPolicy:ln.getConfiguration().iceTransportPolicy,waitTime:In}),hn==null||hn("ICE gathering completed",{sessionId:vn,iceTransportPolicy:ln.getConfiguration().iceTransportPolicy,waitTime:In});break}yield Object(ot.a)(.1*rt.a.second)}const dn=(qt=this.peerConnection.getConfiguration().iceServers)!==null&&qt!==void 0?qt:[];for(const In of dn)In.credentialType=void 0;const An=JSON.stringify(dn),Fn=new Lt.Signal;return Fn.setPayload(JSON.stringify(ln.localDescription)),Fn.setSenderId(this.config.baseConfig.localPeerId),Fn.setReceiverId(this.config.baseConfig.remotePeerId),Fn.setIceServers(An),Fn.setIceTransportPolicy((nn=this.peerConnection.getConfiguration().iceTransportPolicy)!==null&&nn!==void 0?nn:"all"),Fn.setSessionType(Lt.SessionType.TELEOP),yt.a.debug("Sending offer signal with description",{description:Fn.getPayload()}),Fn})}getLanOffer(){return $t(this,void 0,void 0,function*(){const{peerConnection:Ht,gotOffer:qt}=this;if(!this.config.baseConfig.isLan)throw new Error('"getLanOffer" method can only be used with LAN connections. Internet connections should call the "getOffer" method.');if(qt)return void yt.a.debug("Failed to generate offer because gotOffer was already called.");if(this.gotOffer=!0,Pt(this.peerConnection))return void yt.a.debug("Failed to generate offer because the peer connection was inactive.");yield Ht.setLocalDescription(yield Ht.createOffer());const nn=new Date().getTime();for(;;){if(new Date().getTime()-nn>this.iceGatheringTimeoutMs)return void yt.a.debug("Failed to generate offer because ICE gathering timed out.");if(Ht.iceGatheringState==="complete")break;yield Object(ot.a)(.1*rt.a.second)}const yn=Ht.localDescription;if(yn)return yt.a.debug("Sending LAN offer signal with description",{description:yn}),yn;yt.a.error("Failed to generate LAN offer description")})}handleLanAnswer(Ht){return $t(this,void 0,void 0,function*(){const{peerConnection:qt}=this;if(!this.config.baseConfig.isLan)throw new Error('"handleLanAnswer" method can only be used with LAN connections. Internet connections should call the "handleSignal" method.');yield qt.setRemoteDescription(Ht)})}getChannelFromLabel(Ht){switch(Ht){case"stream.latest-ttl":return this.latestTtlStreamChannel;case"stream.reliable":return this.reliableStreamChannel;case"stream.latest-reliable":return this.latestReliableStreamChannel;case"stream.latest-try-once":return this.latestTryOnceStreamChannel}}sendOnChannel(Ht,qt){let nn;try{nn=Object(gt.encode)(JSON.stringify(qt))}catch(yn){return void yt.a.warn("Failed to encode RTC message",{error:yn})}try{Ht.send(nn),this.sessionMetrics&&this.sessionMetrics.incrementLocalSent(qt)}catch(yn){yt.a.warn("Failed to send message to channel",{error:yn,channel:Ht.label})}}channelNotRecognized(Ht){return Ht!==this.latestTtlStreamChannel&&Ht!==this.latestReliableStreamChannel&&Ht!==this.latestTryOnceStreamChannel&&Ht!==this.reliableStreamChannel}setupChannel(Ht){Ht.onmessage=qt=>{if(this.channelNotRecognized(Ht))return void yt.a.warn("Received message on unrecognized data channel.");let nn;try{nn=JSON.parse(Object(gt.decode)(qt.data))}catch(yn){return void yt.a.warn("Received unparseable message on RTC stream data channel",{error:yn,channel:Ht.label})}nn.communicationType==="message-chunk"?this.receiveChannelMessageChunk(Ht,nn):this.receiveChannelMessage(Ht,nn)},Ht.onerror=qt=>{yt.a.warn(`Channel error: ${qt.error}`,{error:qt.error,sessionId:this.getSessionId(),channelLabel:Ht.label})},Ht.onopen=()=>{yt.a.debug("Channel opened",{sessionId:this.getSessionId(),channelLabel:Ht.label})},Ht.onclose=()=>{const qt={bufferedAmount:Ht.bufferedAmount,sessionId:this.getSessionId(),channelLabel:Ht.label};this.closeCalled===!1?yt.a.debug("Unexpected channel closed",qt):yt.a.debug("Channel closed",qt)}}receiveChannelMessage(Ht,qt){const{config:nn}=this,{remotePeerId:yn}=this.config.baseConfig;this.lastMessageTimestamp=new Date().getTime(),qt=function(ln){switch(ln.header.stream.streamType){case"twist":const{twist:_n}=ln.payload;if(!_n)throw Error("twist not in payload of RTC message with type twist");return{header:ln.header,payload:{twist:{linear:Object.assign({x:0,y:0,z:0},_n.linear),angular:Object.assign({x:0,y:0,z:0},_n.angular)}}};case"pose":const{pose:vn}=ln.payload;if(!vn)throw Error("pose not in payload of RTC message with type pose");return{header:ln.header,payload:{pose:{translation:Object.assign({x:0,y:0,z:0},vn.translation),rotation:Object.assign({x:0,y:0,z:0,w:0},vn.rotation)}}};case"pose-with-covariance":const{poseWithCovariance:hn}=ln.payload;if(!hn)throw Error("poseWithCovariance not in payload of RTC message with type pose-with-covariance");const fn=new Array(36).fill(0);return hn.covariance.forEach((An,Fn)=>{if(Fn>=36)throw Error("covariance contains more than 36 elements");fn[Fn]=An}),{header:ln.header,payload:{poseWithCovariance:{pose:{translation:Object.assign({x:0,y:0,z:0},hn.pose.translation),rotation:Object.assign({x:0,y:0,z:0,w:0},hn.pose.rotation)},covariance:fn}}};case"point":const{point:dn}=ln.payload;if(!dn)throw Error("point not in payload of RTC message with type point");return{header:ln.header,payload:{point:Object.assign({x:0,y:0,z:0},dn)}};default:return ln}}(qt),this.sessionMetrics&&this.sessionMetrics.incrementLocalReceived(qt),this.handleSystemMessage(Ht,qt)||(Ht===this.latestTryOnceStreamChannel||Ht===this.latestTtlStreamChannel||Ht===this.latestReliableStreamChannel)&&!this.isLatestMessage(qt)||nn.baseConfig.receive(yn,qt)}receiveChannelMessageChunk(Ht,qt){const nn=this.reassemblyTable.get(qt.id)||[];if(nn.push(qt),nn.length===qt.total){const yn=function(ln){const _n=ln.sort((vn,hn)=>vn.seqvn.part).reduce((vn,hn)=>vn+hn);try{return JSON.parse(_n)}catch{return void yt.a.warn("Could not reassemble RTC message chunks")}}(nn);return yn&&this.receiveChannelMessage(Ht,yn),void this.reassemblyTable.delete(qt.id)}this.reassemblyTable.set(qt.id,nn),this.reassemblyTableLastTimestamp.set(qt.id,new Date().getTime())}handleSystemMessage(Ht,qt){var nn,yn;const{config:ln}=this,{baseConfig:_n}=ln,{remotePeerId:vn}=_n;switch(qt.header.stream.streamType){case"ping":return this.sendSystemMessage(Ht,{type:"pong",timestamp:ht(qt.payload.ping)}),!0;case"pong":const hn=new Date().getTime()-ht(qt.payload.pong);return this.pingTimeMs=hn,Mt.aggregate("rtc-ping-time",hn),!0;case"streams-info":const{sessionMetrics:fn}=this,dn=(nn=qt.payload.streamsInfo)===null||nn===void 0?void 0:nn.timestamp;return!!dn&&(fn==null||fn.updateRemoteMessagesCounts(qt),(yn=_n.onStreamsInfoUpdate)===null||yn===void 0||yn.call(_n,vn,dn),!0);case"stream-control":return!0;default:return!1}}sendSystemMessage(Ht,qt){var nn;const{localUserId:yn,localPeerId:ln}=this.config.baseConfig;if(Ht.readyState!=="open")return;const _n={entityId:yn!=null?yn:ln,streamName:`$.${qt.type}`,streamType:qt.type};let vn;switch(qt.type){case"ping":vn={ping:new Date().getTime()};break;case"pong":vn={pong:qt.timestamp};break;case"stream-control":vn={streamControl:qt.streamControl};break;case"streams-info":vn={streamsInfo:(nn=this.sessionMetrics)===null||nn===void 0?void 0:nn.getLocalStreamsInfo(new Date().getTime())}}this.sendOnChannel(Ht,function(hn,fn){return{header:{stream:hn,created:Date.now(),frameId:""},payload:fn}}(_n,vn))}isLatestMessage(Ht){const qt=zt(Ht.header.stream),nn=(this.streamLatestTimestamp.get(qt)||0)<=Ht.header.created;return nn&&this.streamLatestTimestamp.set(qt,Ht.header.created),nn}}function Zt(sn){var Ht,qt;return{userId:(Ht=sn.getUserId())===null||Ht===void 0?void 0:Ht.getValue(),deviceId:(qt=sn.getDeviceId())===null||qt===void 0?void 0:qt.getValue(),organizationId:sn.getOrganizationId(),id:sn.getPeerId(),capabilities:[],capabilitySet:{}}}var rn=function(sn,Ht,qt,nn){return new(qt||(qt=Promise))(function(yn,ln){function _n(fn){try{hn(nn.next(fn))}catch(dn){ln(dn)}}function vn(fn){try{hn(nn.throw(fn))}catch(dn){ln(dn)}}function hn(fn){var dn;fn.done?yn(fn.value):(dn=fn.value,dn instanceof qt?dn:new qt(function(An){An(dn)})).then(_n,vn)}hn((nn=nn.apply(sn,Ht||[])).next())})};class cn{constructor(Ht){this.config=Ht,this.grpcCallDeadline=5*rt.a.second,this.refreshIntervalDelayMs=2*rt.a.second,this.iceServersTtl=30*rt.a.minute,this.connections=[],this.localConnections=[],this.isConnectionInitiator=new Map,this.isOutgoingConnection=new Map,this.peerDataChannelListeners=[];const{refreshIntervalDelayMs:qt}=this;this.refreshInterval=Ct({func:()=>rn(this,void 0,void 0,function*(){try{yield this.update()}catch(nn){yt.a.warn("RTC refresh failed",{error:nn})}}),delay:qt,immediate:!0})}send(Ht,qt,nn){const yn=this.getActiveConnection(Ht);yn?yn.isReady()?yn.send(qt,nn):yt.a.warn("Send called with unready connection."):yt.a.warn("Send called with no connection.")}controlRemoteStream(Ht,qt){const nn=this.getActiveConnection(Ht);nn?nn.isReady()?nn.controlRemoteStream(qt):yt.a.warn("controlRemoteStream called with unready connection."):yt.a.warn("controlRemoteStream called with no connection.")}getLocalPeer(){return rn(this,void 0,void 0,function*(){for(;!this.localPeer;)yield Object(ot.a)(.1*rt.a.second);return Zt(this.localPeer)})}connect(Ht,qt){var nn,yn,ln;return rn(this,void 0,void 0,function*(){if(this.config.lanOnlyMode===!0)throw new Error("connect method called in local only mode.");const{track:_n,signalingClient:vn}=this.config,{localPeer:hn,receiveSignalStream:fn,iceServers:dn}=this;if(!hn||!fn||!dn)return void yt.a.warn("Connect called prior to local peer, receiveSignalStream, and ICE servers ready");if(this.getActiveConnection(Ht))return void yt.a.warn("Connect called for peer with existing connection.");if(this.isOutgoingConnection.get(Ht))return void yt.a.warn("Connect called for peer with an existing outgoing connection offer.");this.isOutgoingConnection.set(Ht,!0);const An=new en(yield this.createRTCPeerConnection(dn,qt),{baseConfig:{isOffer:!0,isLan:!1,receive:(Hn,nr)=>this.config.receive(Hn,nr),onStreamsInfoUpdate:this.config.onStreamsInfoUpdate?(Hn,nr)=>{var ar,vr;return(vr=(ar=this.config).onStreamsInfoUpdate)===null||vr===void 0?void 0:vr.call(ar,Hn,nr)}:void 0,track:this.config.lanOnlyMode?void 0:this.config.track,localUserId:(nn=hn.getUserId())===null||nn===void 0?void 0:nn.getValue(),localPeerId:hn.getPeerId(),remotePeerId:Ht},remoteConfig:{}},Hn=>this.onCustomDataChannel(Ht,Hn)),Fn=yield An.getOffer();if(!Fn)return yt.a.error("Failed to generate offer."),void this.isOutgoingConnection.delete(Ht);yt.a.debug("Sending offer."),_n==null||_n("Sending offer",Fn);const In=new Lt.SendSignalRequest;In.setSignal(Fn);const Mn=yield(()=>rn(this,void 0,void 0,function*(){try{return yield vn.sendSignal(In,yield this.getMetadata({}))}catch(Hn){yt.a.warn("Error when sending signal",{error:Hn})}}))();if(!this.isOutgoingConnection.get(Ht))return void yt.a.debug("No offer set after receiving offer signal response.");yt.a.debug("Offer sent.");const kn=(yn=Mn==null?void 0:Mn.getSessionId())===null||yn===void 0?void 0:yn.getValue(),Vn=(ln=Mn==null?void 0:Mn.getSessionCreatedTimestamp())===null||ln===void 0?void 0:ln.getValue();return kn&&Vn?(An.setSessionId(kn),An.setSessionCreatedTimestamp(Vn),this.isOutgoingConnection.delete(Ht),this.connections.push(An),this.isConnectionInitiator.set(An,!0),this.setupHandlers(An),kn):(yt.a.warn("No session ID or no session created timestamp on send signal response."),void this.isOutgoingConnection.delete(Ht))})}connectLan(Ht){var qt,nn;return rn(this,void 0,void 0,function*(){const yn=new St(Ht),ln=new en(yield this.createRTCPeerConnection([]),{baseConfig:{isOffer:!0,isLan:!0,receive:(fn,dn)=>this.config.receive(fn,dn),onStreamsInfoUpdate:this.config.onStreamsInfoUpdate?(fn,dn)=>{var An,Fn;return(Fn=(An=this.config).onStreamsInfoUpdate)===null||Fn===void 0?void 0:Fn.call(An,fn,dn)}:void 0,track:this.config.lanOnlyMode?void 0:this.config.track,localUserId:(nn=(qt=this.localPeer)===null||qt===void 0?void 0:qt.getUserId())===null||nn===void 0?void 0:nn.getValue(),localPeerId:"lan_client",remotePeerId:Ht}},fn=>this.onCustomDataChannel(Ht,fn)),_n=yield ln.getLanOffer();if(!_n)return yt.a.warn("Could not generate LAN offer"),!1;const vn=yield yn.postLanRtcOffer({offer:JSON.stringify(_n)}),hn=new RTCSessionDescription(JSON.parse(vn.answer));return yield ln.handleLanAnswer(hn),this.localConnections.push(ln),Object(Rt.v4)()})}getConnections(){return[...this.connections,...this.localConnections]}createCustomDataChannel(Ht,qt,nn,yn,ln){const _n=this.getActiveConnection(Ht);if(_n&&this.isConnectionInitiator.has(_n)){const hn=_n.peerConnection.createDataChannel("custom."+qt,nn);return yn&&(hn.binaryType="arraybuffer"),ln(Ht,hn),()=>{}}const vn=(hn,fn)=>{Ht===hn&&fn.label==="custom."+qt&&ln(Ht,fn)};return this.peerDataChannelListeners.push(vn),()=>{this.peerDataChannelListeners=this.peerDataChannelListeners.filter(hn=>hn!==vn)}}onCustomDataChannel(Ht,qt){this.peerDataChannelListeners.forEach(nn=>nn(Ht,qt))}getConnectionStatus(Ht){if(this.isOutgoingConnection.get(Ht))return"connecting";const qt=this.getActiveConnection(Ht);return qt?qt.isReady()?"connected":"connecting":"disconnected"}getConnectionStatsInfo(Ht){return rn(this,void 0,void 0,function*(){const qt=this.getActiveConnection(Ht);if(qt)return yield qt.getConnectionStatsInfo()})}disconnect(Ht){return rn(this,void 0,void 0,function*(){const qt=this.getActiveConnection(Ht);qt&&(yield qt.close())})}getPeers(){return rn(this,void 0,void 0,function*(){if(this.config.lanOnlyMode)throw new Error("getPeers method cannot be used in local-only mode.");const{signalingClient:Ht}=this.config,qt=yield(()=>rn(this,void 0,void 0,function*(){try{return yield Ht.getPeers(new Lt.GetPeersRequest,yield this.getMetadata({}))}catch(ln){yt.a.warn("Error when getting peers",{error:ln})}}))();if(!qt)return[];const nn=qt.getPeersList();if(!nn)return[];const yn=ln=>{var _n,vn;return(vn=(_n=ln.getPeerCreatedTimestamp())===null||_n===void 0?void 0:_n.getValue())!==null&&vn!==void 0?vn:0};return nn.sort((ln,_n)=>yn(_n)-yn(ln)).map(ln=>Zt(ln))})}getSessions(){return rn(this,void 0,void 0,function*(){if(this.config.lanOnlyMode)throw new Error("getPeers method cannot be used in local-only mode.");const{signalingClient:Ht}=this.config,qt=yield(()=>rn(this,void 0,void 0,function*(){try{return yield Ht.getPeers(new Lt.GetPeersRequest,yield this.getMetadata({}))}catch(ln){yt.a.warn("Error when getting peers",{error:ln})}}))();if(!qt)return{};const nn=qt.getPeersList(),yn={};for(const ln of nn)yn[ln.getPeerId()]=ln.getSessionIdsList();return yn})}getPing(Ht){const qt=this.getActiveConnection(Ht);if(qt)return qt.getPing();yt.a.warn("Attempted to get ping time from inactive peer.")}getLastMessageTimestamp(Ht){const qt=this.getActiveConnection(Ht);if(qt)return qt.getLastMessageTimestamp();yt.a.warn("Attempted to get last message time from inactive peer.")}getSessionMetricsMessageCounts(Ht){const qt=this.getActiveConnection(Ht);if(qt)return qt.getSessionMetricsMessageCounts();yt.a.warn("Attempted to get session metrics counts from inactive peer.")}isReady(){if(this.config.lanOnlyMode)return!0;const{localPeer:Ht,receiveSignalStream:qt,iceServers:nn}=this;return!!(Ht&&qt&&nn)}shutdown(){return rn(this,void 0,void 0,function*(){yt.a.info("Shutdown called on RTC client"),yield this.refreshInterval.stop(),this.receiveSignalStream&&this.receiveSignalStream.cancel();const Ht=this.connections;this.connections=[],yield this.closeConnections(Ht);const{localPeer:qt}=this;if(!qt||this.config.lanOnlyMode)return;const{signalingClient:nn}=this.config;yield(()=>rn(this,void 0,void 0,function*(){try{const yn=new Lt.DeletePeerRequest;yn.setPeerId(qt.getPeerId()),yield nn.deletePeer(yn,yield this.getMetadata({}))}catch(yn){return void yt.a.warn("Error deleting local peer",{error:yn})}}))()})}createPeer(){return rn(this,void 0,void 0,function*(){if(this.config.lanOnlyMode)throw new Error("createPeer method cannot be used in local-only mode.");const{signalingClient:Ht}=this.config,qt=yield(()=>rn(this,void 0,void 0,function*(){try{return yield Ht.createPeer(new Lt.CreatePeerRequest,yield this.getMetadata({}))}catch(yn){throw new Error(`Was not able to create peer: ${JSON.stringify(yn)}`)}}))(),nn=qt==null?void 0:qt.getPeer();if(!nn)throw new Error("Response did not provide peer.");return this.localPeer=nn})}createReceiveSignalStream(){return rn(this,void 0,void 0,function*(){if(this.config.lanOnlyMode)throw new Error("createReceiveSignalStream method cannot be used in local-only mode.");const{signalingClient:Ht}=this.config,{localPeer:qt,iceServers:nn}=this;if(!qt||!nn)return;const{receiveSignalStream:yn}=this;yn&&yn.cancel();const ln=new Lt.ReceiveSignalStreamRequest;ln.setPeerId(qt.getPeerId());const _n=yield(()=>rn(this,void 0,void 0,function*(){try{return Ht.receiveSignalStream(ln,yield this.getMetadata({hasDeadline:!1}))}catch(vn){throw new Error(`Unable to create receive signal stream: ${JSON.stringify(vn)}`)}}))();if(!_n)throw new Error("Response did not provide stream.");return _n.on("data",vn=>rn(this,void 0,void 0,function*(){var hn,fn,dn,An;const Fn=vn.getSignal(),In=(hn=Fn==null?void 0:Fn.getSessionId())===null||hn===void 0?void 0:hn.getValue(),Mn=Fn==null?void 0:Fn.getSenderId(),kn=Fn==null?void 0:Fn.getReceiverId(),Vn=(fn=Fn==null?void 0:Fn.getSessionCreatedTimestamp())===null||fn===void 0?void 0:fn.getValue();if(!(Fn&&In&&Mn&&kn&&Vn))return void yt.a.warn("Received signal with missing information.");const Hn=this.getActiveConnection(Mn);if(Hn)if(Hn.getSessionId()!==In){if(yt.a.debug("Received signal: different session for a peer we're already connected to."),(Hn.getSessionCreatedTimestamp()||0)>Vn)return;const nr=new en(yield this.createRTCPeerConnection(nn),{baseConfig:{isOffer:!1,isLan:!1,receive:(ar,vr)=>this.config.receive(ar,vr),onStreamsInfoUpdate:this.config.onStreamsInfoUpdate?(ar,vr)=>{var xr,Mr;return(Mr=(xr=this.config).onStreamsInfoUpdate)===null||Mr===void 0?void 0:Mr.call(xr,ar,vr)}:void 0,track:this.config.lanOnlyMode?void 0:this.config.track,localPeerId:qt.getPeerId(),localUserId:(An=qt.getUserId())===null||An===void 0?void 0:An.getValue(),remotePeerId:Mn},remoteConfig:{sessionId:In,sessionCreatedTimestamp:Vn}},ar=>this.onCustomDataChannel(Mn,ar));yield nr.handleSignal(Fn),this.connections.push(nr)}else yt.a.debug("Received signal: for an existing connection."),yield Hn.handleSignal(Fn);else{yt.a.debug("Received signal: new connection.");const nr=new en(yield this.createRTCPeerConnection(nn),{baseConfig:{isOffer:!1,isLan:!1,receive:(ar,vr)=>this.config.receive(ar,vr),onStreamsInfoUpdate:this.config.onStreamsInfoUpdate?(ar,vr)=>{var xr,Mr;return(Mr=(xr=this.config).onStreamsInfoUpdate)===null||Mr===void 0?void 0:Mr.call(xr,ar,vr)}:void 0,track:this.config.lanOnlyMode?void 0:this.config.track,localPeerId:qt.getPeerId(),localUserId:(dn=qt.getUserId())===null||dn===void 0?void 0:dn.getValue(),remotePeerId:Mn},remoteConfig:{sessionId:In,sessionCreatedTimestamp:Vn}},ar=>this.onCustomDataChannel(Mn,ar));yield nr.handleSignal(Fn),this.connections.push(nr)}})),_n.on("end",()=>{_n.cancel(),this.receiveSignalStream=void 0}),_n.on("error",vn=>{switch(vn.code){case kt.StatusCode.CANCELLED:case kt.StatusCode.UNAVAILABLE:case kt.StatusCode.UNKNOWN:yt.a.debug("Receive signal stream error",{error:vn});break;case kt.StatusCode.UNAUTHENTICATED:yt.a.warn("Receive signal stream error",{error:vn});break;default:yt.a.error("Receive signal stream error",{error:vn})}_n.cancel(),this.receiveSignalStream=void 0}),this.receiveSignalStream=_n})}createRTCPeerConnection(Ht,qt){var nn;return rn(this,void 0,void 0,function*(){const yn=qt==null?void 0:qt.rtcIceTransportPolicy,ln=qt==null?void 0:qt.rtcIceServerProtocol,_n=(fn,dn)=>typeof fn=="string"?fn.endsWith(`transport=${dn}`):fn.some(An=>An.endsWith(`transport=${dn}`)),vn=Ht.filter(fn=>{return yn!=="relay"||(typeof(dn=fn.urls)=="string"?dn.startsWith("turn:"):dn.some(An=>An.startsWith("turn:")));var dn}).filter(fn=>ln!=="udp"||_n(fn.urls,"udp")).filter(fn=>ln!=="tcp"||_n(fn.urls,"tcp")),hn=(nn=this.config.alternateRTCPeerConnection)!==null&&nn!==void 0?nn:window.RTCPeerConnection;if(!hn)throw new Error("RTCPeerConnection class not found. WebRTC must be enabled.");return new hn(Object.assign({iceServers:vn,iceTransportPolicy:yn},qt))})}closeConnections(Ht){return rn(this,void 0,void 0,function*(){const qt=yield Tt(Ht.map(nn=>rn(this,void 0,void 0,function*(){yield nn.close()})));for(const nn of qt)yt.a.warn("Request to close session failed",{error:nn})})}getActiveConnection(Ht){return this.getConnections().find(qt=>qt.getRemotePeerId()===Ht&&qt.isActive())}update(){var Ht;return rn(this,void 0,void 0,function*(){if(this.localConnections=this.localConnections.filter(vn=>vn.isActive()),this.config.lanOnlyMode)return;const{signalingClient:qt}=this.config;if(!this.localPeer||!this.receiveSignalStream||!this.iceServers)return this.localPeer||(yield this.createPeer()),this.iceServers||(yield this.updateIceServers()),void(this.receiveSignalStream||(yield this.createReceiveSignalStream()));yield this.closeConnections(this.connections.filter(vn=>!vn.isActive())),this.connections=this.connections.filter(vn=>vn.isActive());const{localPeer:nn}=this,yn=this.connections.filter(vn=>vn.getSessionId).map(vn=>ht(vn.getSessionId()));nn.setSessionIdsList(yn);const ln=new Lt.RefreshPeerRequest;ln.setPeer(nn);try{yield qt.refreshPeer(ln,yield this.getMetadata({}))}catch(vn){vn.code===kt.StatusCode.NOT_FOUND?(yt.a.warn("Peer expired, creating new peer",{peerId:nn.getPeerId()}),yield this.reset()):yt.a.warn("Error calling RefreshPeer",{error:vn})}const _n=yield this.getPeers();for(const vn of this.connections)vn.setRemoteDeviceId((Ht=_n.find(hn=>hn.id===vn.getRemotePeerId()))===null||Ht===void 0?void 0:Ht.deviceId)})}reset(){return rn(this,void 0,void 0,function*(){yield this.closeConnections(this.connections),this.connections=[],this.isOutgoingConnection=new Map,yield this.createPeer(),yield this.createReceiveSignalStream()})}updateIceServers(){return rn(this,void 0,void 0,function*(){if(this.config.lanOnlyMode)return;const{iceServersLastUpdate:Ht,iceServersTtl:qt}=this,nn=new Date().getTime();if(!Ht||nn-Ht>qt)try{const yn=(yield this.config.signalingClient.getIceServers(new Lt.GetIceServersRequest,yield this.getMetadata({}))).getIceServers();this.iceServers=JSON.parse(yn),this.iceServersLastUpdate=nn}catch(yn){yt.a.warn("Error in updateIceServers",{error:yn})}})}setupHandlers(Ht){const{peerConnection:qt}=Ht,nn=Ht.getSessionCreatedTimestamp();qt.onconnectionstatechange=()=>rn(this,void 0,void 0,function*(){const yn=qt.connectionState;if(nn)switch(yn){case"connected":Mt.aggregate("rtc-connect-time",new Date().getTime()-nn);break;case"failed":Mt.increment("rtc-connect-failed")}})}getMetadata(Ht){return rn(this,void 0,void 0,function*(){if(this.config.lanOnlyMode)throw new Error("getMetadata method cannot be called in local-only mode");const{getToken:qt}=this.config,{grpcCallDeadline:nn}=this,{hasDeadline:yn}=Ht,ln=yn===!1?void 0:new Date().getTime()+nn;return{authorization:yield qt(),deadline:ln}})}}},,function(o,i,s){s.r(i),s.d(i,"LogClient",function(){return _e});var j=s(26),$=function(tt,et,rt,ot){return new(rt||(rt=Promise))(function(lt,dt){function at(ut){try{st(ot.next(ut))}catch(mt){dt(mt)}}function ct(ut){try{st(ot.throw(ut))}catch(mt){dt(mt)}}function st(ut){var mt;ut.done?lt(ut.value):(mt=ut.value,mt instanceof rt?mt:new rt(function(bt){bt(mt)})).then(at,ct)}st((ot=ot.apply(tt,et||[])).next())})};class _e extends j.a{log(et){return $(this,void 0,void 0,function*(){yield this.fetch("logs",{method:"POST",body:JSON.stringify({logs:et}),allowUnsafeRetries:!0})})}}}])})})(dist);let FORMANT_API_URL="https://api.formant.io";typeof window!="undefined"&&(FORMANT_API_URL=window.FORMANT_API_URL||FORMANT_API_URL);let urlParams$1=new URLSearchParams("");typeof window!="undefined"&&(urlParams$1=new URLSearchParams(window.location.search));const envDev=urlParams$1.get("formant_dev");envDev&&(FORMANT_API_URL="https://api-dev.formant.io");const envStage=urlParams$1.get("formant_stage");envStage&&(FORMANT_API_URL="https://api-stage.formant.io");function delay(o){return new Promise(i=>setTimeout(i,o))}function defined(o,i){if(o!==void 0)return o;throw new Error(i||"Value is undefined")}class App$2{static sendAppMessage(i){window.parent.postMessage(i,"*")}static getCurrentModuleContext(){let i=new URLSearchParams("");return typeof window!="undefined"&&(i=new URLSearchParams(window.location.search)),i.get("module")}static isModule(){return this.getCurrentModuleContext()!==null}static goToTime(i){this.sendAppMessage({type:"go_to_time",time:i.getTime()})}static showMessage(i){this.sendAppMessage({type:"show_message",message:i})}static requestModuleData(){const i=this.getCurrentModuleContext();if(!i)throw new Error("No module context");this.sendAppMessage({type:"request_module_data",module:i})}static setModuleDateTimeRange(i,s){const j=this.getCurrentModuleContext();if(!j)throw new Error("No module context");this.sendAppMessage({type:"set_module_data_time_range",module:j,before:i,after:s||0})}static refreshAuthToken(){const i=this.getCurrentModuleContext();if(!i)throw new Error("No module context");this.sendAppMessage({type:"refresh_auth_token",module:i})}static setupModuleMenus(i){const s=this.getCurrentModuleContext();if(!s)throw new Error("No module context");this.sendAppMessage({type:"setup_module_menus",module:s,menus:i})}static addMenuListener(i){window.addEventListener("message",s=>{const j=s.data;j.type==="module_menu_item_clicked"&&i(j.menu)})}static addAccessTokenRefreshListener(i){window.addEventListener("message",s=>{const j=s.data;j.type==="auth_token"&&i(j.token)})}static addModuleDataListener(i){window.addEventListener("message",s=>{const j=s.data;j.type==="module_data"&&i({streams:j.streams,time:j.time,queryRange:j.queryRange})})}}const _Authentication=class{static async login(o,i){try{const s=await fetch(`${FORMANT_API_URL}/v1/admin/auth/login`,{method:"POST",body:JSON.stringify({email:o,password:i}),headers:{"Content-Type":"application/json"}}),j=await s.json();if(s.status!==200)throw new Error(j.message);return await _Authentication.loginWithToken(j.authentication.accessToken,j.authentication.refreshToken),j.authentication}catch(s){return _Authentication.waitingForAuth.forEach(j=>j(!1)),_Authentication.waitingForAuth=[],Promise.reject(s)}}static async loginWithToken(o,i){const s=JSON.parse(atob(o.split(".")[1]));try{let j;if(_Authentication.isShareToken=s["formant:claims"]&&s["formant:claims"].type=="share",s["formant:claims"]&&(_Authentication.currentOrganization=s["formant:claims"].organizationId),s["custom:organization_id"]&&(_Authentication.currentOrganization=s["custom:organization_id"]),_Authentication.isShareToken||(j=s.sub),s["formant:claims"]&&s["formant:claims"].userId&&(j=s["formant:claims"].userId),j){const $=await fetch(`${FORMANT_API_URL}/v1/admin/users/${j}`,{method:"GET",headers:{"Content-Type":"application/json",Authorization:"Bearer "+o}}),_e=await $.json();if($.status!==200)throw new Error(_e.message);_Authentication.currentUser=_e}_Authentication.token=o,_Authentication.waitingForAuth.forEach($=>$(!0))}catch(j){console.error(j),_Authentication.waitingForAuth.forEach($=>$(!1))}_Authentication.waitingForAuth=[],i&&(_Authentication.refreshToken=i,setInterval(async()=>{if(_Authentication.refreshToken){const $=await(await fetch(`${FORMANT_API_URL}/v1/admin/auth/refresh`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({refreshToken:_Authentication.refreshToken})})).json();_Authentication.token=$.authentication.accessToken}},1e3*60*60))}static isAuthenticated(){return _Authentication.token!==void 0}static getCurrentUser(){return _Authentication.currentUser}static async waitTilAuthenticated(){return _Authentication.token!==void 0?!0:new Promise(o=>{_Authentication.waitingForAuth.push(function(i){o(i)})})}static async listenForRefresh(){App$2.addAccessTokenRefreshListener(o=>{this.loginWithToken(o)}),setInterval(async()=>{App$2.refreshAuthToken()},1e3*60*60)}};let Authentication=_Authentication;__publicField(Authentication,"token");__publicField(Authentication,"refreshToken");__publicField(Authentication,"currentUser");__publicField(Authentication,"currentOrganization");__publicField(Authentication,"isShareToken",!1);__publicField(Authentication,"defaultDeviceId");__publicField(Authentication,"waitingForAuth",[]);class DataChannel{constructor(i){__publicField(this,"ready",!1),__publicField(this,"listeners",[]),__publicField(this,"binaryListeners",[]),__publicField(this,"error"),__publicField(this,"decoder",new TextDecoder),this.dataChannel=i,this.dataChannel.binaryType="arraybuffer",this.dataChannel.onopen=()=>{this.ready=!0},this.dataChannel.onclose=()=>{this.ready=!1},this.dataChannel.onerror=s=>{console.error(s),this.error="An error occurred in DataChannel"},this.dataChannel.onmessage=s=>{this.listeners.forEach(j=>{const $=new Uint8Array(s.data),_e=this.decoder.decode($);j(_e)}),this.binaryListeners.forEach(j=>{j(new Uint8Array(s.data))})}}async waitTilReady(){return this.ready?!0:new Promise((s,j)=>{let $=window.setInterval(()=>{this.ready&&(window.clearInterval($),s(!0)),this.error&&j(this.error)},10)})}send(i){if(!this.ready)throw new Error("Connection has been closed");this.dataChannel.send(i)}sendBinary(i){if(!this.ready)throw new Error("Connection has been closed");this.dataChannel.send(i)}addListener(i){this.listeners.push(i)}removeListener(i){const s=this.listeners.indexOf(i);if(s===-1)throw new Error("Could not find data channel listener to remove");if(this.error)throw new Error(this.error);this.listeners.splice(s,1)}addBinaryListener(i){this.binaryListeners.push(i)}removeBinaryListener(i){const s=this.binaryListeners.indexOf(i);if(s===-1)throw new Error("Could not find data channel listener to remove");if(this.error)throw new Error(this.error);this.binaryListeners.splice(s,1)}}class CaptureStream{constructor(i){__publicField(this,"token"),this.captureSession=i}async ingestJSON(i){if(!this.token){const j=await(await fetch(`${FORMANT_API_URL}/v1/admin/capture-sessions/${this.captureSession.code}/authenticate`,{method:"POST"})).json();this.token=j.token}await fetch(`${FORMANT_API_URL}/v1/ingest`,{method:"POST",body:JSON.stringify({deviceId:this.captureSession.deviceId,name:this.captureSession.streamName,type:"json",points:[[Date.now(),JSON.stringify(i)]]}),headers:{"Content-Type":"application/json",Authorization:"Bearer "+this.token}})}}class Manipulator{constructor(i,s){__publicField(this,"currentListeners",[]),__publicField(this,"onRealtimeMessage",(j,$)=>{$.payload.jointState&&this.currentListeners.forEach(_e=>_e($.payload.jointState))}),this.device=i,this.config=s}async synchronize(){this.device.addRealtimeListener(this.onRealtimeMessage),this.device.startListeningToRealtimeDataStream(this.config.currentJointStateStream)}async desynchronize(){this.device.removeRealtimeListener(this.onRealtimeMessage),this.device.stopListeningToRealtimeDataStream(this.config.currentJointStateStream)}async addCurrentJointStateListener(i){this.currentListeners.push(i)}}class RequestDataChannel{constructor(i,s,j){__publicField(this,"channel"),__publicField(this,"requestIdToResponseMap",new Map),this.device=i,this.channel_name=s,this.timeout=j}}class BinaryRequestDataChannel extends RequestDataChannel{constructor(){super(...arguments),__publicField(this,"RESPONSE_SUCCESS_BYTE",0),__publicField(this,"decoder",new TextDecoder)}generateBinaryId(){const i=new Uint8Array(16);for(let s=0;s{const j=i.slice(0,16).toString();if(j.length===0)throw new Error("Invalid response");const $=i.slice(16);if($.length===0)throw new Error("Invalid response");this.requestIdToResponseMap.has(j)&&this.requestIdToResponseMap.set(j,$)})}async request(i){if(this.channel||await this.initialize(),!this.channel)throw new Error("Failed to create channel");const{channel:s,requestIdToResponseMap:j,timeout:$}=this;await s.waitTilReady();const _e=this.generateBinaryId(),tt=_e.toString();j.set(tt,!0),s.sendBinary(new Uint8Array([..._e,...i]));const et=new Date().getTime();for(;new Date().getTime(){const s=JSON.parse(i),{id:j,data:$,error:_e}=s;if(!j)throw new Error("Invalid response");if(!$&&!_e)throw new Error("Invalid response");this.requestIdToResponseMap.has(j)&&this.requestIdToResponseMap.set(j,s)})}async request(i){if(this.channel||await this.initialize(),!this.channel)throw new Error("Failed to create channel");const{channel:s,requestIdToResponseMap:j,timeout:$}=this;await s.waitTilReady();const _e=this.generateTextId();j.set(_e,!0),s.send(JSON.stringify({id:_e,data:i}));const tt=new Date().getTime();for(;new Date().getTime(){this.realtimeListeners.forEach(tt=>tt($,_e))}),this.id=i,this.name=s,this.organizationId=j}async getLatestTelemetry(){return(await(await fetch(`${FORMANT_API_URL}/v1/queries/stream-current-value`,{method:"POST",body:JSON.stringify({deviceIds:[this.id]}),headers:{"Content-Type":"application/json",Authorization:"Bearer "+Authentication.token}})).json()).items}async getConfiguration(){let i=await fetch(`${FORMANT_API_URL}/v1/admin/devices/${this.id}`,{method:"GET",headers:{"Content-Type":"application/json",Authorization:"Bearer "+Authentication.token}});const s=await i.json();if(!s.state.reportedConfiguration)throw new Error("Device has no configuration, has it ever been turned on?");const j=s.state.reportedConfiguration.version;return i=await fetch(`${FORMANT_API_URL}/v1/admin/devices/${this.id}/configurations/${j}`,{method:"GET",headers:{"Content-Type":"application/json",Authorization:"Bearer "+Authentication.token}}),(await i.json()).document}async getFileUrl(i){return(await(await fetch(`${FORMANT_API_URL}/v1/admin/files/query`,{method:"POST",body:JSON.stringify({fileId:[i]}),headers:{"Content-Type":"application/json",Authorization:"Bearer "+Authentication.token}})).json()).fileUrls}async startRealtimeConnection(){if(this.rtcClient)throw new Error(`Already created realtime connection to device ${this.id}`);{const i=new dist.exports.RtcClient({signalingClient:new dist.exports.SignalingPromiseClient(FORMANT_API_URL,null,null),getToken:async()=>defined(Authentication.token,"Realtime when user isn't authorized"),receive:this.handleMessage});for(;!i.isReady();)await delay(100);const j=(await i.getPeers()).find(_e=>_e.deviceId===this.id);if(!j)throw new Error("Cannot find peer, is the robot offline?");const $=j.id;for(await i.connect($);i.getConnectionStatus($)!=="connected";)await delay(100);this.rtcClient=i}}addRealtimeListener(i){this.realtimeListeners.push(i)}removeRealtimeListener(i){const s=this.realtimeListeners.indexOf(i);if(s===-1)throw new Error("Could not find realtime listener to remove");this.realtimeListeners.splice(s,1)}async getRealtimeVideoStreams(){var i,s,j;const $=await this.getConfiguration(),_e=[];for(const tt of(i=$.teleop.hardwareStreams)!=null?i:[])tt.rtcStreamType==="h264-video-frame"&&_e.push({name:tt.name});for(const tt of(s=$.teleop.rosStreams)!=null?s:[])tt.topicType=="formant/H264VideoFrame"&&_e.push({name:tt.topicName});for(const tt of(j=$.teleop.customStreams)!=null?j:[])tt.rtcStreamType==="h264-video-frame"&&_e.push({name:tt.name});return _e}async getRealtimeManipulators(){var i;const s=await this.getConfiguration(),j=[];for(const $ of(i=s.teleop.rosStreams)!=null?i:[])$.topicType=="sensor_msgs/JointState"&&j.push(new Manipulator(this,{currentJointStateStream:{name:$.topicName},plannedJointStateStream:$.plannedTopic?{name:$.plannedTopic}:void 0,planValidStream:$.planValidTopic?{name:$.planValidTopic}:void 0,endEffectorStream:$.endEffectorTopic?{name:$.endEffectorTopic}:void 0,endEffectorLinkName:$.endEffectorLinkName,baseReferenceFrame:$.baseReferenceFrame,localFrame:$.localFrame}));return j}async startListeningToRealtimeVideo(i){const s=defined(this.rtcClient,"Realtime connection has not been started"),j=await this.getRemotePeer();s.controlRemoteStream(defined(j).id,{streamName:i.name,enable:!0,pipeline:"rtc"})}async stopListeningToRealtimeVideo(i){const s=defined(this.rtcClient,"Realtime connection has not been started"),j=await this.getRemotePeer();s.controlRemoteStream(defined(j).id,{streamName:i.name,enable:!1,pipeline:"rtc"})}async startListeningToRealtimeDataStream(i){const s=defined(this.rtcClient,"Realtime connection has not been started"),j=await this.getRemotePeer();s.controlRemoteStream(defined(j).id,{streamName:i.name,enable:!0,pipeline:"rtc"})}async stopListeningToRealtimeDataStream(i){const s=defined(this.rtcClient,"Realtime connection has not been started"),j=await this.getRemotePeer();s.controlRemoteStream(defined(j).id,{streamName:i.name,enable:!1,pipeline:"rtc"})}async enableRealtimeTelemetryPriorityIngestion(i){const s=defined(this.rtcClient,"Realtime connection has not been started"),j=await this.getRemotePeer();s.controlRemoteStream(defined(j).id,{streamName:i,enablePriorityUpload:!0,pipeline:"telemetry"})}async disableRealtimeTelemetryPriorityIngestion(i){const s=defined(this.rtcClient,"Realtime connection has not been started"),j=await this.getRemotePeer();s.controlRemoteStream(defined(j).id,{streamName:i,enablePriorityUpload:!1,pipeline:"telemetry"})}async getRemotePeer(){const s=(await defined(this.rtcClient,"Realtime connection has not been started").getPeers()).find(j=>j.deviceId===this.id);return defined(s,"Could not find remote peer for device "+this.id)}async stopRealtimeConnection(){if(this.rtcClient)await this.rtcClient.disconnect(this.id);else throw new Error(`Realtime connection hasn't been started for ${this.id}`)}async isInRealtimeSession(){let i=await Fleet.getPeers(),s=await Fleet.getRealtimeSessions(),j=i.find($=>$.deviceId===this.id);return j?s[j.id].length>0:!1}async getAvailableCommands(){return(await(await fetch(`${FORMANT_API_URL}/v1/admin/command-templates/`,{method:"GET",headers:{"Content-Type":"application/json",Authorization:"Bearer "+Authentication.token}})).json()).items.map(j=>({name:j.name,id:j.id,command:j.command,description:j.description,parameterEnabled:j.parameterEnabled,parameterValue:j.parameterValue,parameterMeta:j.parameterMeta}))}async sendCommand(i,s,j,$){var _e;const et=(await this.getAvailableCommands()).find(at=>at.name===i);if(!et)throw new Error(`Could not find command with name "${i}"`);let rt;if(s===void 0)if(et.parameterEnabled&&et.parameterValue)rt=et.parameterValue;else throw new Error("Command has no default parameter value, you must provide one");else rt=s;let ot={value:rt,scrubberTime:(j||new Date).toISOString(),meta:__spreadValues(__spreadValues({},et.parameterMeta),$)};return(await(await fetch(`${FORMANT_API_URL}/v1/admin/commands`,{method:"POST",body:JSON.stringify({commandTemplateId:et.id,organizationId:this.organizationId,deviceId:this.id,command:et.command,parameter:ot,userId:(_e=Authentication.currentUser)==null?void 0:_e.id}),headers:{"Content-Type":"application/json",Authorization:"Bearer "+Authentication.token}})).json()).fileUrls}async createCustomDataChannel(i,s){const j=defined(this.rtcClient,"Realtime connection has not been started"),$=await this.getRemotePeer();return new Promise(tt=>{j.createCustomDataChannel(defined($).id,i,__spreadValues({ordered:!0},s),!1,(et,rt)=>{const ot=new DataChannel(rt);tt(ot)})})}createCustomRequestDataChannel(i,s=3e3){return new TextRequestDataChannel(this,i,s)}createCustomBinaryRequestDataChannel(i,s=3e3){return new BinaryRequestDataChannel(this,i,s)}async createCaptureStream(i){const j=await(await fetch(`${FORMANT_API_URL}/v1/admin/capture-sessions`,{method:"POST",body:JSON.stringify({deviceId:this.id,streamName:i,tags:{}}),headers:{"Content-Type":"application/json",Authorization:"Bearer "+Authentication.token}})).json();return new CaptureStream(j)}async getTelemetry(i,s,j,$){return await Fleet.getTelemetry(this.id,i,s,j,$)}async getTelemetryStreams(){var i,s;const j=await this.getConfiguration(),$=await fetch(`${FORMANT_API_URL}/v1/queries/metadata/stream-names`,{method:"POST",body:JSON.stringify({deviceIds:[this.id]}),headers:{"Content-Type":"application/json",Authorization:"Bearer "+Authentication.token}}),_e=[],tt=[];return(s=(i=j.telemetry)==null?void 0:i.streams)==null||s.forEach(ot=>{ot.disabled!==!0&&_e.push(ot.name),ot.onDemand===!0&&tt.push(ot.name)}),console.log(tt),(await $.json()).items.filter(ot=>!_e.includes(ot)).map(ot=>({name:ot,onDemand:tt.includes(ot)}))}}const _Fleet=class{static async setDefaultDevice(o){_Fleet.defaultDeviceId=o}static async getCurrentDevice(){if(!Authentication.token)throw new Error("Not authenticated");if(!_Fleet.defaultDeviceId)throw new Error("No known default device");const j=(await(await fetch(`${FORMANT_API_URL}/v1/admin/device-details/query`,{method:"POST",headers:{"Content-Type":"application/json",Authorization:"Bearer "+Authentication.token}})).json()).items.find(_e=>_e.id===_Fleet.defaultDeviceId).name,$=new Device(_Fleet.defaultDeviceId,j,defined(Authentication.currentOrganization));return _Fleet.knownContext.push(new WeakRef($)),$}static async getDevice(o){if(!Authentication.token)throw new Error("Not authenticated");const s=await(await fetch(`${FORMANT_API_URL}/v1/admin/devices/${o}`,{method:"GET",headers:{"Content-Type":"application/json",Authorization:"Bearer "+Authentication.token}})).json(),j=s.name,$=new Device(o,j,s.organizationId);return _Fleet.knownContext.push(new WeakRef($)),$}static async getDevices(){if(!Authentication.token)throw new Error("Not authenticated");const i=await(await fetch(`${FORMANT_API_URL}/v1/admin/device-details/query`,{method:"POST",body:JSON.stringify({enabled:!0,type:"default"}),headers:{"Content-Type":"application/json",Authorization:"Bearer "+Authentication.token}})).json();return i.items,i.items.map(s=>new Device(s.id,s.name,s.organizationId))}static async getOnlineDevices(){if(!Authentication.token)throw new Error("Not authenticated");const s=(await(await fetch(`${FORMANT_API_URL}/v1/queries/online-devices`,{method:"GET",headers:{"Content-Type":"application/json",Authorization:"Bearer "+Authentication.token}})).json()).items;return(await _Fleet.getDevices()).filter($=>s.includes($.id))}static async getPeers(){if(!Authentication.token)throw new Error("Not authenticated");return await new dist.exports.RtcClient({signalingClient:new dist.exports.SignalingPromiseClient(FORMANT_API_URL,null,null),getToken:async()=>defined(Authentication.token,"Realtime when user isn't authorized"),receive:()=>{}}).getPeers()}static async getRealtimeSessions(){if(!Authentication.token)throw new Error("Not authenticated");return await new dist.exports.RtcClient({signalingClient:new dist.exports.SignalingPromiseClient(FORMANT_API_URL,null,null),getToken:async()=>defined(Authentication.token,"Realtime when user isn't authorized"),receive:()=>{}}).getSessions()}static async getRealtimeDevices(){if(!Authentication.token)throw new Error("Not authenticated");const s=(await(await fetch(`${FORMANT_API_URL}/v1/signaling/peers`,{method:"GET",headers:{"Content-Type":"application/json",Authorization:"Bearer "+Authentication.token}})).json()).items.map($=>$.deviceId);return(await _Fleet.getDevices()).filter($=>s.includes($.id))}static async getLatestTelemetry(o){let i=o;return o&&!Array.isArray(o)&&(o=[o]),(await(await fetch(`${FORMANT_API_URL}/v1/queries/stream-current-value`,{method:"POST",body:JSON.stringify({deviceIds:i}),headers:{"Content-Type":"application/json",Authorization:"Bearer "+Authentication.token}})).json()).items}static async getTelemetry(o,i,s,j,$){let _e=o;Array.isArray(o)||(_e=[o]);let tt=i;return Array.isArray(i)||(tt=[i]),(await(await fetch(`${FORMANT_API_URL}/v1/queries/queries`,{method:"POST",body:JSON.stringify({deviceIds:_e,end:j.toISOString(),names:tt,start:s.toISOString(),tags:$}),headers:{"Content-Type":"application/json",Authorization:"Bearer "+Authentication.token}})).json()).items}static async getFileUrl(o){const s=await(await fetch(`${FORMANT_API_URL}/v1/admin/files/query`,{method:"POST",body:JSON.stringify({fileIds:[o]}),headers:{"Content-Type":"application/json",Authorization:"Bearer "+Authentication.token}})).json();if(s.fileUrls.length===0)throw new Error("File not found");return s.fileUrls[0]}static async queryTelemetry(o){if(!Authentication.token)throw new Error("Not authenticated");return(await(await fetch(`${FORMANT_API_URL}/v1/queries/queries`,{method:"POST",body:JSON.stringify(o),headers:{"Content-Type":"application/json",Authorization:"Bearer "+Authentication.token}})).json()).items}static async queryEvents(o){if(!Authentication.token)throw new Error("Not authenticated");return(await(await fetch(`${FORMANT_API_URL}/v1/admin/events/query`,{method:"POST",body:JSON.stringify(o),headers:{"Content-Type":"application/json",Authorization:"Bearer "+Authentication.token}})).json()).items}};let Fleet=_Fleet;__publicField(Fleet,"defaultDeviceId");__publicField(Fleet,"knownContext",[]);let urlParams=new URLSearchParams("");typeof window!="undefined"&&(urlParams=new URLSearchParams(window.location.search));const urlDevice=urlParams.get("device");urlDevice&&Fleet.setDefaultDevice(urlDevice);const urlAuth=urlParams.get("auth");urlAuth&&Authentication.loginWithToken(urlAuth);const moduleName=urlParams.get("module");moduleName&&Authentication.listenForRefresh();const useDevice=o=>{const[i,s]=react.exports.useState();react.exports.useEffect(()=>{j()},[]);const j=async()=>{try{if(await Authentication.waitTilAuthenticated()){if(o){const _e=await Fleet.getDevice(o);s(_e);return}const $=await Fleet.getCurrentDevice();s($)}}catch{throw new Error("Authentication failed, please authenticate and try again")}};return i},useLatestTelemetry=o=>{const[i,s]=react.exports.useState();react.exports.useEffect(()=>{j()},[]);const j=async()=>{let $=null;await Authentication.waitTilAuthenticated()&&(typeof o=="string"&&($=await Fleet.getLatestTelemetry([o])),!!o&&typeof o!="string"&&($=await Fleet.getLatestTelemetry(o)),o||($=await(await Fleet.getCurrentDevice()).getLatestTelemetry()),s($))};return i};var App$1="",lodash={exports:{}};/** - * @license - * Lodash - * Copyright OpenJS Foundation and other contributors - * Released under MIT license - * Based on Underscore.js 1.8.3 - * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors - */(function(o,i){(function(){var s,j="4.17.21",$=200,_e="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",tt="Expected a function",et="Invalid `variable` option passed into `_.template`",rt="__lodash_hash_undefined__",ot=500,lt="__lodash_placeholder__",dt=1,at=2,ct=4,st=1,ut=2,mt=1,bt=2,Tt=4,ht=8,yt=16,ft=32,Ct=64,Ft=128,Ut=256,wt=512,vt=30,At="...",Et=800,Mt=16,Lt=1,kt=2,Rt=3,Ot=1/0,It=9007199254740991,St=17976931348623157e292,gt=0/0,Bt=4294967295,Dt=Bt-1,Yt=Bt>>>1,Xt=[["ary",Ft],["bind",mt],["bindKey",bt],["curry",ht],["curryRight",yt],["flip",wt],["partial",ft],["partialRight",Ct],["rearg",Ut]],Jt="[object Arguments]",zt="[object Array]",Wt="[object AsyncFunction]",xt="[object Boolean]",Pt="[object Date]",$t="[object DOMException]",en="[object Error]",Zt="[object Function]",rn="[object GeneratorFunction]",cn="[object Map]",sn="[object Number]",Ht="[object Null]",qt="[object Object]",nn="[object Promise]",yn="[object Proxy]",ln="[object RegExp]",_n="[object Set]",vn="[object String]",hn="[object Symbol]",fn="[object Undefined]",dn="[object WeakMap]",An="[object WeakSet]",Fn="[object ArrayBuffer]",In="[object DataView]",Mn="[object Float32Array]",kn="[object Float64Array]",Vn="[object Int8Array]",Hn="[object Int16Array]",nr="[object Int32Array]",ar="[object Uint8Array]",vr="[object Uint8ClampedArray]",xr="[object Uint16Array]",Mr="[object Uint32Array]",mu=/\b__p \+= '';/g,ms=/\b(__p \+=) '' \+/g,Go=/(__e\(.*?\)|\b__t\)) \+\n'';/g,qo=/&(?:amp|lt|gt|quot|#39);/g,Yo=/[&<>"']/g,ys=RegExp(qo.source),vs=RegExp(Yo.source),Ko=/<%-([\s\S]+?)%>/g,Ys=/<%([\s\S]+?)%>/g,bs=/<%=([\s\S]+?)%>/g,Ks=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Zs=/^\w*$/,Xs=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,_s=/[\\^$.*+?()[\]{}|]/g,Zo=RegExp(_s.source),jo=/^\s+/,ws=/\s/,_o=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Xr=/\{\n\/\* \[wrapped with (.+)\] \*/,Js=/,? & /,Qs=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Ss=/[()=,{}\[\]\/\s]/,Es=/\\(\\)?/g,Xo=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Ts=/\w*$/,yu=/^[-+]0x[0-9a-f]+$/i,vu=/^0b[01]+$/i,na=/^\[object .+?Constructor\]$/,xs=/^0o[0-7]+$/i,Rs=/^(?:0|[1-9]\d*)$/,Jo=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,br=/($^)/,ga=/['\n\r\u2028\u2029\\]/g,No="\\ud800-\\udfff",ba="\\u0300-\\u036f",_a="\\ufe20-\\ufe2f",xa="\\u20d0-\\u20ff",ro=ba+_a+xa,Qo="\\u2700-\\u27bf",Cs="a-z\\xdf-\\xf6\\xf8-\\xff",wo="\\xac\\xb1\\xd7\\xf7",bu="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",oo="\\u2000-\\u206f",$a=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",yl="A-Z\\xc0-\\xd6\\xd8-\\xde",_l="\\ufe0e\\ufe0f",Sl=wo+bu+oo+$a,As="['\u2019]",_u="["+No+"]",El="["+Sl+"]",Lo="["+ro+"]",Os="\\d+",Tl="["+Qo+"]",_i="["+Cs+"]",Is="[^"+No+Sl+Os+Qo+Cs+yl+"]",Jr="\\ud83c[\\udffb-\\udfff]",xl="(?:"+Lo+"|"+Jr+")",Ur="[^"+No+"]",es="(?:\\ud83c[\\udde6-\\uddff]){2}",lo="[\\ud800-\\udbff][\\udc00-\\udfff]",So="["+yl+"]",Ps="\\u200d",Rl="(?:"+_i+"|"+Is+")",$r="(?:"+So+"|"+Is+")",Eo="(?:"+As+"(?:d|ll|m|re|s|t|ve))?",uo="(?:"+As+"(?:D|LL|M|RE|S|T|VE))?",Sr=xl+"?",ts="["+_l+"]?",Cl="(?:"+Ps+"(?:"+[Ur,es,lo].join("|")+")"+ts+Sr+")*",ks="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Nt="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Gt=ts+Sr+Cl,tn="(?:"+[Tl,es,lo].join("|")+")"+Gt,an="(?:"+[Ur+Lo+"?",Lo,es,lo,_u].join("|")+")",bn=RegExp(As,"g"),En=RegExp(Lo,"g"),gn=RegExp(Jr+"(?="+Jr+")|"+an+Gt,"g"),wn=RegExp([So+"?"+_i+"+"+Eo+"(?="+[El,So,"$"].join("|")+")",$r+"+"+uo+"(?="+[El,So+Rl,"$"].join("|")+")",So+"?"+Rl+"+"+Eo,So+"+"+uo,Nt,ks,Os,tn].join("|"),"g"),Pn=RegExp("["+Ps+No+ro+_l+"]"),On=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Nn=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],tr=-1,Dn={};Dn[Mn]=Dn[kn]=Dn[Vn]=Dn[Hn]=Dn[nr]=Dn[ar]=Dn[vr]=Dn[xr]=Dn[Mr]=!0,Dn[Jt]=Dn[zt]=Dn[Fn]=Dn[xt]=Dn[In]=Dn[Pt]=Dn[en]=Dn[Zt]=Dn[cn]=Dn[sn]=Dn[qt]=Dn[ln]=Dn[_n]=Dn[vn]=Dn[dn]=!1;var Un={};Un[Jt]=Un[zt]=Un[Fn]=Un[In]=Un[xt]=Un[Pt]=Un[Mn]=Un[kn]=Un[Vn]=Un[Hn]=Un[nr]=Un[cn]=Un[sn]=Un[qt]=Un[ln]=Un[_n]=Un[vn]=Un[hn]=Un[ar]=Un[vr]=Un[xr]=Un[Mr]=!0,Un[en]=Un[Zt]=Un[dn]=!1;var sr={\u00C0:"A",\u00C1:"A",\u00C2:"A",\u00C3:"A",\u00C4:"A",\u00C5:"A",\u00E0:"a",\u00E1:"a",\u00E2:"a",\u00E3:"a",\u00E4:"a",\u00E5:"a",\u00C7:"C",\u00E7:"c",\u00D0:"D",\u00F0:"d",\u00C8:"E",\u00C9:"E",\u00CA:"E",\u00CB:"E",\u00E8:"e",\u00E9:"e",\u00EA:"e",\u00EB:"e",\u00CC:"I",\u00CD:"I",\u00CE:"I",\u00CF:"I",\u00EC:"i",\u00ED:"i",\u00EE:"i",\u00EF:"i",\u00D1:"N",\u00F1:"n",\u00D2:"O",\u00D3:"O",\u00D4:"O",\u00D5:"O",\u00D6:"O",\u00D8:"O",\u00F2:"o",\u00F3:"o",\u00F4:"o",\u00F5:"o",\u00F6:"o",\u00F8:"o",\u00D9:"U",\u00DA:"U",\u00DB:"U",\u00DC:"U",\u00F9:"u",\u00FA:"u",\u00FB:"u",\u00FC:"u",\u00DD:"Y",\u00FD:"y",\u00FF:"y",\u00C6:"Ae",\u00E6:"ae",\u00DE:"Th",\u00FE:"th",\u00DF:"ss",\u0100:"A",\u0102:"A",\u0104:"A",\u0101:"a",\u0103:"a",\u0105:"a",\u0106:"C",\u0108:"C",\u010A:"C",\u010C:"C",\u0107:"c",\u0109:"c",\u010B:"c",\u010D:"c",\u010E:"D",\u0110:"D",\u010F:"d",\u0111:"d",\u0112:"E",\u0114:"E",\u0116:"E",\u0118:"E",\u011A:"E",\u0113:"e",\u0115:"e",\u0117:"e",\u0119:"e",\u011B:"e",\u011C:"G",\u011E:"G",\u0120:"G",\u0122:"G",\u011D:"g",\u011F:"g",\u0121:"g",\u0123:"g",\u0124:"H",\u0126:"H",\u0125:"h",\u0127:"h",\u0128:"I",\u012A:"I",\u012C:"I",\u012E:"I",\u0130:"I",\u0129:"i",\u012B:"i",\u012D:"i",\u012F:"i",\u0131:"i",\u0134:"J",\u0135:"j",\u0136:"K",\u0137:"k",\u0138:"k",\u0139:"L",\u013B:"L",\u013D:"L",\u013F:"L",\u0141:"L",\u013A:"l",\u013C:"l",\u013E:"l",\u0140:"l",\u0142:"l",\u0143:"N",\u0145:"N",\u0147:"N",\u014A:"N",\u0144:"n",\u0146:"n",\u0148:"n",\u014B:"n",\u014C:"O",\u014E:"O",\u0150:"O",\u014D:"o",\u014F:"o",\u0151:"o",\u0154:"R",\u0156:"R",\u0158:"R",\u0155:"r",\u0157:"r",\u0159:"r",\u015A:"S",\u015C:"S",\u015E:"S",\u0160:"S",\u015B:"s",\u015D:"s",\u015F:"s",\u0161:"s",\u0162:"T",\u0164:"T",\u0166:"T",\u0163:"t",\u0165:"t",\u0167:"t",\u0168:"U",\u016A:"U",\u016C:"U",\u016E:"U",\u0170:"U",\u0172:"U",\u0169:"u",\u016B:"u",\u016D:"u",\u016F:"u",\u0171:"u",\u0173:"u",\u0174:"W",\u0175:"w",\u0176:"Y",\u0177:"y",\u0178:"Y",\u0179:"Z",\u017B:"Z",\u017D:"Z",\u017A:"z",\u017C:"z",\u017E:"z",\u0132:"IJ",\u0133:"ij",\u0152:"Oe",\u0153:"oe",\u0149:"'n",\u017F:"s"},ur={"&":"&","<":"<",">":">",'"':""","'":"'"},Zn={"&":"&","<":"<",">":">",""":'"',"'":"'"},Wr={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},To=parseFloat,Ay=parseInt,Sp=typeof commonjsGlobal$1=="object"&&commonjsGlobal$1&&commonjsGlobal$1.Object===Object&&commonjsGlobal$1,Oy=typeof self=="object"&&self&&self.Object===Object&&self,_r=Sp||Oy||Function("return this")(),wu=i&&!i.nodeType&&i,Bo=wu&&!0&&o&&!o.nodeType&&o,Ep=Bo&&Bo.exports===wu,Su=Ep&&Sp.process,zr=function(){try{var pn=Bo&&Bo.require&&Bo.require("util").types;return pn||Su&&Su.binding&&Su.binding("util")}catch{}}(),Tp=zr&&zr.isArrayBuffer,xp=zr&&zr.isDate,Rp=zr&&zr.isMap,Cp=zr&&zr.isRegExp,Ap=zr&&zr.isSet,Op=zr&&zr.isTypedArray;function jr(pn,Tn,Sn){switch(Sn.length){case 0:return pn.call(Tn);case 1:return pn.call(Tn,Sn[0]);case 2:return pn.call(Tn,Sn[0],Sn[1]);case 3:return pn.call(Tn,Sn[0],Sn[1],Sn[2])}return pn.apply(Tn,Sn)}function Iy(pn,Tn,Sn,Ln){for(var Gn=-1,rr=pn==null?0:pn.length;++Gn-1}function Eu(pn,Tn,Sn){for(var Ln=-1,Gn=pn==null?0:pn.length;++Ln-1;);return Sn}function Bp(pn,Tn){for(var Sn=pn.length;Sn--&&ns(Tn,pn[Sn],0)>-1;);return Sn}function Fy(pn,Tn){for(var Sn=pn.length,Ln=0;Sn--;)pn[Sn]===Tn&&++Ln;return Ln}var Uy=Cu(sr),$y=Cu(ur);function Wy(pn){return"\\"+Wr[pn]}function zy(pn,Tn){return pn==null?s:pn[Tn]}function rs(pn){return Pn.test(pn)}function Vy(pn){return On.test(pn)}function Hy(pn){for(var Tn,Sn=[];!(Tn=pn.next()).done;)Sn.push(Tn.value);return Sn}function Pu(pn){var Tn=-1,Sn=Array(pn.size);return pn.forEach(function(Ln,Gn){Sn[++Tn]=[Gn,Ln]}),Sn}function Dp(pn,Tn){return function(Sn){return pn(Tn(Sn))}}function Co(pn,Tn){for(var Sn=-1,Ln=pn.length,Gn=0,rr=[];++Sn-1}function kv(nt,it){var pt=this.__data__,jt=Yl(pt,nt);return jt<0?(++this.size,pt.push([nt,it])):pt[jt][1]=it,this}co.prototype.clear=Av,co.prototype.delete=Ov,co.prototype.get=Iv,co.prototype.has=Pv,co.prototype.set=kv;function fo(nt){var it=-1,pt=nt==null?0:nt.length;for(this.clear();++it=it?nt:it)),nt}function qr(nt,it,pt,jt,Vt,Qt){var on,un=it&dt,mn=it&at,xn=it&ct;if(pt&&(on=Vt?pt(nt,jt,Vt,Qt):pt(nt)),on!==s)return on;if(!fr(nt))return nt;var Rn=qn(nt);if(Rn){if(on=N0(nt),!un)return Or(nt,on)}else{var Cn=Tr(nt),jn=Cn==Zt||Cn==rn;if(Mo(nt))return bm(nt,un);if(Cn==qt||Cn==Jt||jn&&!Vt){if(on=mn||jn?{}:Dm(nt),!un)return mn?T0(nt,Yv(on,nt)):E0(nt,Zp(on,nt))}else{if(!Un[Cn])return Vt?nt:{};on=L0(nt,Cn,un)}}Qt||(Qt=new eo);var Bn=Qt.get(nt);if(Bn)return Bn;Qt.set(nt,on),gy(nt)?nt.forEach(function(zn){on.add(qr(zn,it,pt,zn,nt,Qt))}):fy(nt)&&nt.forEach(function(zn,Jn){on.set(Jn,qr(zn,it,pt,Jn,nt,Qt))});var Wn=xn?mn?_g:_d:mn?Pr:yr,Kn=Rn?s:Wn(nt);return Vr(Kn||nt,function(zn,Jn){Kn&&(Jn=zn,zn=nt[Jn]),Fs(on,Jn,qr(zn,it,pt,Jn,nt,Qt))}),on}function Kv(nt){var it=yr(nt);return function(pt){return Xp(pt,nt,it)}}function Xp(nt,it,pt){var jt=pt.length;if(nt==null)return!jt;for(nt=lr(nt);jt--;){var Vt=pt[jt],Qt=it[Vt],on=nt[Vt];if(on===s&&!(Vt in nt)||!Qt(on))return!1}return!0}function Jp(nt,it,pt){if(typeof nt!="function")throw new Hr(tt);return Gs(function(){nt.apply(s,pt)},it)}function Us(nt,it,pt,jt){var Vt=-1,Qt=Al,on=!0,un=nt.length,mn=[],xn=it.length;if(!un)return mn;pt&&(it=cr(it,Nr(pt))),jt?(Qt=Eu,on=!1):it.length>=$&&(Qt=Ms,on=!1,it=new Uo(it));e:for(;++VtVt?0:Vt+pt),jt=jt===s||jt>Vt?Vt:Yn(jt),jt<0&&(jt+=Vt),jt=pt>jt?0:hy(jt);pt0&&pt(un)?it>1?wr(un,it-1,pt,jt,Vt):Ro(Vt,un):jt||(Vt[Vt.length]=un)}return Vt}var Du=xm(),em=xm(!0);function io(nt,it){return nt&&Du(nt,it,yr)}function Fu(nt,it){return nt&&em(nt,it,yr)}function Zl(nt,it){return xo(it,function(pt){return yo(nt[pt])})}function Wo(nt,it){it=Po(it,nt);for(var pt=0,jt=it.length;nt!=null&&ptit}function Jv(nt,it){return nt!=null&&ir.call(nt,it)}function Qv(nt,it){return nt!=null&&it in lr(nt)}function _b(nt,it,pt){return nt>=Er(it,pt)&&nt=120&&Rn.length>=120)?new Uo(on&&Rn):s}Rn=nt[0];var Cn=-1,jn=un[0];e:for(;++Cn-1;)un!==nt&&Ul.call(un,mn,1),Ul.call(nt,mn,1);return nt}function fm(nt,it){for(var pt=nt?it.length:0,jt=pt-1;pt--;){var Vt=it[pt];if(pt==jt||Vt!==Qt){var Qt=Vt;mo(Vt)?Ul.call(nt,Vt,1):Ku(nt,Vt)}}return nt}function Gu(nt,it){return nt+zl(Gp()*(it-nt+1))}function d0(nt,it,pt,jt){for(var Vt=-1,Qt=mr(Wl((it-nt)/(pt||1)),0),on=Sn(Qt);Qt--;)on[jt?Qt:++Vt]=nt,nt+=pt;return on}function qu(nt,it){var pt="";if(!nt||it<1||it>It)return pt;do it%2&&(pt+=nt),it=zl(it/2),it&&(nt+=nt);while(it);return pt}function Xn(nt,it){return sp($m(nt,it,kr),nt+"")}function g0(nt){return Kp(hs(nt))}function p0(nt,it){var pt=hs(nt);return au(pt,$o(it,0,pt.length))}function zs(nt,it,pt,jt){if(!fr(nt))return nt;it=Po(it,nt);for(var Vt=-1,Qt=it.length,on=Qt-1,un=nt;un!=null&&++VtVt?0:Vt+it),pt=pt>Vt?Vt:pt,pt<0&&(pt+=Vt),Vt=it>pt?0:pt-it>>>0,it>>>=0;for(var Qt=Sn(Vt);++jt>>1,on=nt[Qt];on!==null&&!Br(on)&&(pt?on<=it:on=$){var xn=it?null:A0(nt);if(xn)return Il(xn);on=!1,Vt=Ms,mn=new Uo}else mn=it?[]:un;e:for(;++jt=jt?nt:Yr(nt,it,pt)}var vm=sv||function(nt){return _r.clearTimeout(nt)};function bm(nt,it){if(it)return nt.slice();var pt=nt.length,jt=$p?$p(pt):new nt.constructor(pt);return nt.copy(jt),jt}function Qu(nt){var it=new nt.constructor(nt.byteLength);return new Dl(it).set(new Dl(nt)),it}function b0(nt,it){var pt=it?Qu(nt.buffer):nt.buffer;return new nt.constructor(pt,nt.byteOffset,nt.byteLength)}function _0(nt){var it=new nt.constructor(nt.source,Ts.exec(nt));return it.lastIndex=nt.lastIndex,it}function w0(nt){return Ds?lr(Ds.call(nt)):{}}function _m(nt,it){var pt=it?Qu(nt.buffer):nt.buffer;return new nt.constructor(pt,nt.byteOffset,nt.length)}function wm(nt,it){if(nt!==it){var pt=nt!==s,jt=nt===null,Vt=nt===nt,Qt=Br(nt),on=it!==s,un=it===null,mn=it===it,xn=Br(it);if(!un&&!xn&&!Qt&&nt>it||Qt&&on&&mn&&!un&&!xn||jt&&on&&mn||!pt&&mn||!Vt)return 1;if(!jt&&!Qt&&!xn&&nt=un)return mn;var xn=pt[jt];return mn*(xn=="desc"?-1:1)}}return nt.index-it.index}function Sm(nt,it,pt,jt){for(var Vt=-1,Qt=nt.length,on=pt.length,un=-1,mn=it.length,xn=mr(Qt-on,0),Rn=Sn(mn+xn),Cn=!jt;++un1?pt[Vt-1]:s,on=Vt>2?pt[2]:s;for(Qt=nt.length>3&&typeof Qt=="function"?(Vt--,Qt):s,on&&Cr(pt[0],pt[1],on)&&(Qt=Vt<3?s:Qt,Vt=1),it=lr(it);++jt-1?Vt[Qt?it[on]:on]:s}}function Am(nt){return ho(function(it){var pt=it.length,jt=pt,Vt=Gr.prototype.thru;for(nt&&it.reverse();jt--;){var Qt=it[jt];if(typeof Qt!="function")throw new Hr(tt);if(Vt&&!on&&iu(Qt)=="wrapper")var on=new Gr([],!0)}for(jt=on?jt:pt;++jt1&&er.reverse(),Rn&&mnun))return!1;var xn=Qt.get(nt),Rn=Qt.get(it);if(xn&&Rn)return xn==it&&Rn==nt;var Cn=-1,jn=!0,Bn=pt&ut?new Uo:s;for(Qt.set(nt,it),Qt.set(it,nt);++Cn1?"& ":"")+it[jt],it=it.join(pt>2?", ":" "),nt.replace(_o,`{ -/* [wrapped with `+it+`] */ -`)}function D0(nt){return qn(nt)||Ho(nt)||!!(Vp&&nt&&nt[Vp])}function mo(nt,it){var pt=typeof nt;return it=it==null?It:it,!!it&&(pt=="number"||pt!="symbol"&&Rs.test(nt))&&nt>-1&&nt%1==0&&nt0){if(++it>=Et)return arguments[0]}else it=0;return nt.apply(s,arguments)}}function au(nt,it){var pt=-1,jt=nt.length,Vt=jt-1;for(it=it===s?jt:it;++pt1?nt[it-1]:s;return pt=typeof pt=="function"?(nt.pop(),pt):s,Qm(nt,pt)});function ey(nt){var it=Kt(nt);return it.__chain__=!0,it}function K_(nt,it){return it(nt),nt}function lu(nt,it){return it(nt)}var Z_=ho(function(nt){var it=nt.length,pt=it?nt[0]:0,jt=this.__wrapped__,Vt=function(Qt){return Bu(Qt,nt)};return it>1||this.__actions__.length||!(jt instanceof Qn)||!mo(pt)?this.thru(Vt):(jt=jt.slice(pt,+pt+(it?1:0)),jt.__actions__.push({func:lu,args:[Vt],thisArg:s}),new Gr(jt,this.__chain__).thru(function(Qt){return it&&!Qt.length&&Qt.push(s),Qt}))});function X_(){return ey(this)}function J_(){return new Gr(this.value(),this.__chain__)}function Q_(){this.__values__===s&&(this.__values__=py(this.value()));var nt=this.__index__>=this.__values__.length,it=nt?s:this.__values__[this.__index__++];return{done:nt,value:it}}function e1(){return this}function t1(nt){for(var it,pt=this;pt instanceof Gl;){var jt=qm(pt);jt.__index__=0,jt.__values__=s,it?Vt.__wrapped__=jt:it=jt;var Vt=jt;pt=pt.__wrapped__}return Vt.__wrapped__=nt,it}function n1(){var nt=this.__wrapped__;if(nt instanceof Qn){var it=nt;return this.__actions__.length&&(it=new Qn(this)),it=it.reverse(),it.__actions__.push({func:lu,args:[ap],thisArg:s}),new Gr(it,this.__chain__)}return this.thru(ap)}function r1(){return mm(this.__wrapped__,this.__actions__)}var o1=eu(function(nt,it,pt){ir.call(nt,pt)?++nt[pt]:go(nt,pt,1)});function i1(nt,it,pt){var jt=qn(nt)?Ip:Zv;return pt&&Cr(nt,it,pt)&&(it=s),jt(nt,$n(it,3))}function s1(nt,it){var pt=qn(nt)?xo:_h;return pt(nt,$n(it,3))}var a1=Cm(Ym),l1=Cm(Km);function u1(nt,it){return wr(uu(nt,it),1)}function c1(nt,it){return wr(uu(nt,it),Ot)}function f1(nt,it,pt){return pt=pt===s?1:Yn(pt),wr(uu(nt,it),pt)}function ty(nt,it){var pt=qn(nt)?Vr:Oo;return pt(nt,$n(it,3))}function ny(nt,it){var pt=qn(nt)?Py:Qp;return pt(nt,$n(it,3))}var d1=eu(function(nt,it,pt){ir.call(nt,pt)?nt[pt].push(it):go(nt,pt,[it])});function g1(nt,it,pt,jt){nt=Ir(nt)?nt:hs(nt),pt=pt&&!jt?Yn(pt):0;var Vt=nt.length;return pt<0&&(pt=mr(Vt+pt,0)),pu(nt)?pt<=Vt&&nt.indexOf(it,pt)>-1:!!Vt&&ns(nt,it,pt)>-1}var p1=Xn(function(nt,it,pt){var jt=-1,Vt=typeof it=="function",Qt=Ir(nt)?Sn(nt.length):[];return Oo(nt,function(on){Qt[++jt]=Vt?jr(it,on,pt):$s(on,it,pt)}),Qt}),h1=eu(function(nt,it,pt){go(nt,pt,it)});function uu(nt,it){var pt=qn(nt)?cr:im;return pt(nt,$n(it,3))}function m1(nt,it,pt,jt){return nt==null?[]:(qn(it)||(it=it==null?[]:[it]),pt=jt?s:pt,qn(pt)||(pt=pt==null?[]:[pt]),um(nt,it,pt))}var y1=eu(function(nt,it,pt){nt[pt?0:1].push(it)},function(){return[[],[]]});function v1(nt,it,pt){var jt=qn(nt)?Tu:jp,Vt=arguments.length<3;return jt(nt,$n(it,4),pt,Vt,Oo)}function b1(nt,it,pt){var jt=qn(nt)?ky:jp,Vt=arguments.length<3;return jt(nt,$n(it,4),pt,Vt,Qp)}function _1(nt,it){var pt=qn(nt)?xo:_h;return pt(nt,du($n(it,3)))}function w1(nt){var it=qn(nt)?Kp:g0;return it(nt)}function S1(nt,it,pt){(pt?Cr(nt,it,pt):it===s)?it=1:it=Yn(it);var jt=qn(nt)?Hv:p0;return jt(nt,it)}function E1(nt){var it=qn(nt)?Gv:m0;return it(nt)}function T1(nt){if(nt==null)return 0;if(Ir(nt))return pu(nt)?is(nt):nt.length;var it=Tr(nt);return it==cn||it==_n?nt.size:zu(nt).length}function x1(nt,it,pt){var jt=qn(nt)?xu:y0;return pt&&Cr(nt,it,pt)&&(it=s),jt(nt,$n(it,3))}var R1=Xn(function(nt,it){if(nt==null)return[];var pt=it.length;return pt>1&&Cr(nt,it[0],it[1])?it=[]:pt>2&&Cr(it[0],it[1],it[2])&&(it=[it[0]]),um(nt,wr(it,1),[])}),cu=av||function(){return _r.Date.now()};function C1(nt,it){if(typeof it!="function")throw new Hr(tt);return nt=Yn(nt),function(){if(--nt<1)return it.apply(this,arguments)}}function ry(nt,it,pt){return it=pt?s:it,it=nt&&it==null?nt.length:it,po(nt,Ft,s,s,s,s,it)}function oy(nt,it){var pt;if(typeof it!="function")throw new Hr(tt);return nt=Yn(nt),function(){return--nt>0&&(pt=it.apply(this,arguments)),nt<=1&&(it=s),pt}}var up=Xn(function(nt,it,pt){var jt=mt;if(pt.length){var Vt=Co(pt,gs(up));jt|=ft}return po(nt,jt,it,pt,Vt)}),iy=Xn(function(nt,it,pt){var jt=mt|bt;if(pt.length){var Vt=Co(pt,gs(iy));jt|=ft}return po(it,jt,nt,pt,Vt)});function sy(nt,it,pt){it=pt?s:it;var jt=po(nt,ht,s,s,s,s,s,it);return jt.placeholder=sy.placeholder,jt}function ay(nt,it,pt){it=pt?s:it;var jt=po(nt,yt,s,s,s,s,s,it);return jt.placeholder=ay.placeholder,jt}function ly(nt,it,pt){var jt,Vt,Qt,on,un,mn,xn=0,Rn=!1,Cn=!1,jn=!0;if(typeof nt!="function")throw new Hr(tt);it=Zr(it)||0,fr(pt)&&(Rn=!!pt.leading,Cn="maxWait"in pt,Qt=Cn?mr(Zr(pt.maxWait)||0,it):Qt,jn="trailing"in pt?!!pt.trailing:jn);function Bn(pr){var no=jt,bo=Vt;return jt=Vt=s,xn=pr,on=nt.apply(bo,no),on}function Wn(pr){return xn=pr,un=Gs(Jn,it),Rn?Bn(pr):on}function Kn(pr){var no=pr-mn,bo=pr-xn,Cy=it-no;return Cn?Er(Cy,Qt-bo):Cy}function zn(pr){var no=pr-mn,bo=pr-xn;return mn===s||no>=it||no<0||Cn&&bo>=Qt}function Jn(){var pr=cu();if(zn(pr))return er(pr);un=Gs(Jn,Kn(pr))}function er(pr){return un=s,jn&&jt?Bn(pr):(jt=Vt=s,on)}function Dr(){un!==s&&vm(un),xn=0,jt=mn=Vt=un=s}function Ar(){return un===s?on:er(cu())}function Fr(){var pr=cu(),no=zn(pr);if(jt=arguments,Vt=this,mn=pr,no){if(un===s)return Wn(mn);if(Cn)return vm(un),un=Gs(Jn,it),Bn(mn)}return un===s&&(un=Gs(Jn,it)),on}return Fr.cancel=Dr,Fr.flush=Ar,Fr}var A1=Xn(function(nt,it){return Jp(nt,1,it)}),O1=Xn(function(nt,it,pt){return Jp(nt,Zr(it)||0,pt)});function I1(nt){return po(nt,wt)}function fu(nt,it){if(typeof nt!="function"||it!=null&&typeof it!="function")throw new Hr(tt);var pt=function(){var jt=arguments,Vt=it?it.apply(this,jt):jt[0],Qt=pt.cache;if(Qt.has(Vt))return Qt.get(Vt);var on=nt.apply(this,jt);return pt.cache=Qt.set(Vt,on)||Qt,on};return pt.cache=new(fu.Cache||fo),pt}fu.Cache=fo;function du(nt){if(typeof nt!="function")throw new Hr(tt);return function(){var it=arguments;switch(it.length){case 0:return!nt.call(this);case 1:return!nt.call(this,it[0]);case 2:return!nt.call(this,it[0],it[1]);case 3:return!nt.call(this,it[0],it[1],it[2])}return!nt.apply(this,it)}}function P1(nt){return oy(2,nt)}var k1=v0(function(nt,it){it=it.length==1&&qn(it[0])?cr(it[0],Nr($n())):cr(wr(it,1),Nr($n()));var pt=it.length;return Xn(function(jt){for(var Vt=-1,Qt=Er(jt.length,pt);++Vt=it}),Ho=nm(function(){return arguments}())?nm:function(nt){return dr(nt)&&ir.call(nt,"callee")&&!zp.call(nt,"callee")},qn=Sn.isArray,q1=Tp?Nr(Tp):t0;function Ir(nt){return nt!=null&&gu(nt.length)&&!yo(nt)}function gr(nt){return dr(nt)&&Ir(nt)}function Y1(nt){return nt===!0||nt===!1||dr(nt)&&Rr(nt)==xt}var Mo=uv||wp,K1=xp?Nr(xp):n0;function Z1(nt){return dr(nt)&&nt.nodeType===1&&!qs(nt)}function X1(nt){if(nt==null)return!0;if(Ir(nt)&&(qn(nt)||typeof nt=="string"||typeof nt.splice=="function"||Mo(nt)||ps(nt)||Ho(nt)))return!nt.length;var it=Tr(nt);if(it==cn||it==_n)return!nt.size;if(Hs(nt))return!zu(nt).length;for(var pt in nt)if(ir.call(nt,pt))return!1;return!0}function J1(nt,it){return Ws(nt,it)}function Q1(nt,it,pt){pt=typeof pt=="function"?pt:s;var jt=pt?pt(nt,it):s;return jt===s?Ws(nt,it,s,pt):!!jt}function fp(nt){if(!dr(nt))return!1;var it=Rr(nt);return it==en||it==$t||typeof nt.message=="string"&&typeof nt.name=="string"&&!qs(nt)}function ew(nt){return typeof nt=="number"&&Hp(nt)}function yo(nt){if(!fr(nt))return!1;var it=Rr(nt);return it==Zt||it==rn||it==Wt||it==yn}function cy(nt){return typeof nt=="number"&&nt==Yn(nt)}function gu(nt){return typeof nt=="number"&&nt>-1&&nt%1==0&&nt<=It}function fr(nt){var it=typeof nt;return nt!=null&&(it=="object"||it=="function")}function dr(nt){return nt!=null&&typeof nt=="object"}var fy=Rp?Nr(Rp):o0;function tw(nt,it){return nt===it||Wu(nt,it,tp(it))}function nw(nt,it,pt){return pt=typeof pt=="function"?pt:s,Wu(nt,it,tp(it),pt)}function rw(nt){return dy(nt)&&nt!=+nt}function ow(nt){if($0(nt))throw new Gn(_e);return rm(nt)}function iw(nt){return nt===null}function sw(nt){return nt==null}function dy(nt){return typeof nt=="number"||dr(nt)&&Rr(nt)==sn}function qs(nt){if(!dr(nt)||Rr(nt)!=qt)return!1;var it=Fl(nt);if(it===null)return!0;var pt=ir.call(it,"constructor")&&it.constructor;return typeof pt=="function"&&pt instanceof pt&&Nl.call(pt)==rv}var dp=Cp?Nr(Cp):i0;function aw(nt){return cy(nt)&&nt>=-It&&nt<=It}var gy=Ap?Nr(Ap):s0;function pu(nt){return typeof nt=="string"||!qn(nt)&&dr(nt)&&Rr(nt)==vn}function Br(nt){return typeof nt=="symbol"||dr(nt)&&Rr(nt)==hn}var ps=Op?Nr(Op):a0;function lw(nt){return nt===s}function uw(nt){return dr(nt)&&Tr(nt)==dn}function cw(nt){return dr(nt)&&Rr(nt)==An}var fw=ou(Vu),dw=ou(function(nt,it){return nt<=it});function py(nt){if(!nt)return[];if(Ir(nt))return pu(nt)?Qr(nt):Or(nt);if(js&&nt[js])return Hy(nt[js]());var it=Tr(nt),pt=it==cn?Pu:it==_n?Il:hs;return pt(nt)}function vo(nt){if(!nt)return nt===0?nt:0;if(nt=Zr(nt),nt===Ot||nt===-Ot){var it=nt<0?-1:1;return it*St}return nt===nt?nt:0}function Yn(nt){var it=vo(nt),pt=it%1;return it===it?pt?it-pt:it:0}function hy(nt){return nt?$o(Yn(nt),0,Bt):0}function Zr(nt){if(typeof nt=="number")return nt;if(Br(nt))return gt;if(fr(nt)){var it=typeof nt.valueOf=="function"?nt.valueOf():nt;nt=fr(it)?it+"":it}if(typeof nt!="string")return nt===0?nt:+nt;nt=Np(nt);var pt=vu.test(nt);return pt||xs.test(nt)?Ay(nt.slice(2),pt?2:8):yu.test(nt)?gt:+nt}function my(nt){return so(nt,Pr(nt))}function gw(nt){return nt?$o(Yn(nt),-It,It):nt===0?nt:0}function or(nt){return nt==null?"":Lr(nt)}var pw=fs(function(nt,it){if(Hs(it)||Ir(it)){so(it,yr(it),nt);return}for(var pt in it)ir.call(it,pt)&&Fs(nt,pt,it[pt])}),yy=fs(function(nt,it){so(it,Pr(it),nt)}),hu=fs(function(nt,it,pt,jt){so(it,Pr(it),nt,jt)}),hw=fs(function(nt,it,pt,jt){so(it,yr(it),nt,jt)}),mw=ho(Bu);function yw(nt,it){var pt=cs(nt);return it==null?pt:Zp(pt,it)}var vw=Xn(function(nt,it){nt=lr(nt);var pt=-1,jt=it.length,Vt=jt>2?it[2]:s;for(Vt&&Cr(it[0],it[1],Vt)&&(jt=1);++pt1),Qt}),so(nt,_g(nt),pt),jt&&(pt=qr(pt,dt|at|ct,O0));for(var Vt=it.length;Vt--;)Ku(pt,it[Vt]);return pt});function Lw(nt,it){return by(nt,du($n(it)))}var Bw=ho(function(nt,it){return nt==null?{}:c0(nt,it)});function by(nt,it){if(nt==null)return{};var pt=cr(_g(nt),function(jt){return[jt]});return it=$n(it),cm(nt,pt,function(jt,Vt){return it(jt,Vt[0])})}function Dw(nt,it,pt){it=Po(it,nt);var jt=-1,Vt=it.length;for(Vt||(Vt=1,nt=s);++jtit){var jt=nt;nt=it,it=jt}if(pt||nt%1||it%1){var Vt=Gp();return Er(nt+Vt*(it-nt+To("1e-"+((Vt+"").length-1))),it)}return Gu(nt,it)}var Kw=ds(function(nt,it,pt){return it=it.toLowerCase(),nt+(pt?Sy(it):it)});function Sy(nt){return hp(or(nt).toLowerCase())}function Ey(nt){return nt=or(nt),nt&&nt.replace(Jo,Uy).replace(En,"")}function Zw(nt,it,pt){nt=or(nt),it=Lr(it);var jt=nt.length;pt=pt===s?jt:$o(Yn(pt),0,jt);var Vt=pt;return pt-=it.length,pt>=0&&nt.slice(pt,Vt)==it}function Xw(nt){return nt=or(nt),nt&&vs.test(nt)?nt.replace(Yo,$y):nt}function Jw(nt){return nt=or(nt),nt&&Zo.test(nt)?nt.replace(_s,"\\$&"):nt}var Qw=ds(function(nt,it,pt){return nt+(pt?"-":"")+it.toLowerCase()}),eS=ds(function(nt,it,pt){return nt+(pt?" ":"")+it.toLowerCase()}),tS=Rm("toLowerCase");function nS(nt,it,pt){nt=or(nt),it=Yn(it);var jt=it?is(nt):0;if(!it||jt>=it)return nt;var Vt=(it-jt)/2;return ru(zl(Vt),pt)+nt+ru(Wl(Vt),pt)}function rS(nt,it,pt){nt=or(nt),it=Yn(it);var jt=it?is(nt):0;return it&&jt>>0,pt?(nt=or(nt),nt&&(typeof it=="string"||it!=null&&!dp(it))&&(it=Lr(it),!it&&rs(nt))?ko(Qr(nt),0,pt):nt.split(it,pt)):[]}var cS=ds(function(nt,it,pt){return nt+(pt?" ":"")+hp(it)});function fS(nt,it,pt){return nt=or(nt),pt=pt==null?0:$o(Yn(pt),0,nt.length),it=Lr(it),nt.slice(pt,pt+it.length)==it}function dS(nt,it,pt){var jt=Kt.templateSettings;pt&&Cr(nt,it,pt)&&(it=s),nt=or(nt),it=hu({},it,jt,Mm);var Vt=hu({},it.imports,jt.imports,Mm),Qt=yr(Vt),on=Iu(Vt,Qt),un,mn,xn=0,Rn=it.interpolate||br,Cn="__p += '",jn=ku((it.escape||br).source+"|"+Rn.source+"|"+(Rn===bs?Xo:br).source+"|"+(it.evaluate||br).source+"|$","g"),Bn="//# sourceURL="+(ir.call(it,"sourceURL")?(it.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++tr+"]")+` -`;nt.replace(jn,function(zn,Jn,er,Dr,Ar,Fr){return er||(er=Dr),Cn+=nt.slice(xn,Fr).replace(ga,Wy),Jn&&(un=!0,Cn+=`' + -__e(`+Jn+`) + -'`),Ar&&(mn=!0,Cn+=`'; -`+Ar+`; -__p += '`),er&&(Cn+=`' + -((__t = (`+er+`)) == null ? '' : __t) + -'`),xn=Fr+zn.length,zn}),Cn+=`'; -`;var Wn=ir.call(it,"variable")&&it.variable;if(!Wn)Cn=`with (obj) { -`+Cn+` -} -`;else if(Ss.test(Wn))throw new Gn(et);Cn=(mn?Cn.replace(mu,""):Cn).replace(ms,"$1").replace(Go,"$1;"),Cn="function("+(Wn||"obj")+`) { -`+(Wn?"":`obj || (obj = {}); -`)+"var __t, __p = ''"+(un?", __e = _.escape":"")+(mn?`, __j = Array.prototype.join; -function print() { __p += __j.call(arguments, '') } -`:`; -`)+Cn+`return __p -}`;var Kn=xy(function(){return rr(Qt,Bn+"return "+Cn).apply(s,on)});if(Kn.source=Cn,fp(Kn))throw Kn;return Kn}function gS(nt){return or(nt).toLowerCase()}function pS(nt){return or(nt).toUpperCase()}function hS(nt,it,pt){if(nt=or(nt),nt&&(pt||it===s))return Np(nt);if(!nt||!(it=Lr(it)))return nt;var jt=Qr(nt),Vt=Qr(it),Qt=Lp(jt,Vt),on=Bp(jt,Vt)+1;return ko(jt,Qt,on).join("")}function mS(nt,it,pt){if(nt=or(nt),nt&&(pt||it===s))return nt.slice(0,Fp(nt)+1);if(!nt||!(it=Lr(it)))return nt;var jt=Qr(nt),Vt=Bp(jt,Qr(it))+1;return ko(jt,0,Vt).join("")}function yS(nt,it,pt){if(nt=or(nt),nt&&(pt||it===s))return nt.replace(jo,"");if(!nt||!(it=Lr(it)))return nt;var jt=Qr(nt),Vt=Lp(jt,Qr(it));return ko(jt,Vt).join("")}function vS(nt,it){var pt=vt,jt=At;if(fr(it)){var Vt="separator"in it?it.separator:Vt;pt="length"in it?Yn(it.length):pt,jt="omission"in it?Lr(it.omission):jt}nt=or(nt);var Qt=nt.length;if(rs(nt)){var on=Qr(nt);Qt=on.length}if(pt>=Qt)return nt;var un=pt-is(jt);if(un<1)return jt;var mn=on?ko(on,0,un).join(""):nt.slice(0,un);if(Vt===s)return mn+jt;if(on&&(un+=mn.length-un),dp(Vt)){if(nt.slice(un).search(Vt)){var xn,Rn=mn;for(Vt.global||(Vt=ku(Vt.source,or(Ts.exec(Vt))+"g")),Vt.lastIndex=0;xn=Vt.exec(Rn);)var Cn=xn.index;mn=mn.slice(0,Cn===s?un:Cn)}}else if(nt.indexOf(Lr(Vt),un)!=un){var jn=mn.lastIndexOf(Vt);jn>-1&&(mn=mn.slice(0,jn))}return mn+jt}function bS(nt){return nt=or(nt),nt&&ys.test(nt)?nt.replace(qo,Ky):nt}var _S=ds(function(nt,it,pt){return nt+(pt?" ":"")+it.toUpperCase()}),hp=Rm("toUpperCase");function Ty(nt,it,pt){return nt=or(nt),it=pt?s:it,it===s?Vy(nt)?Jy(nt):Ny(nt):nt.match(it)||[]}var xy=Xn(function(nt,it){try{return jr(nt,s,it)}catch(pt){return fp(pt)?pt:new Gn(pt)}}),wS=ho(function(nt,it){return Vr(it,function(pt){pt=ao(pt),go(nt,pt,up(nt[pt],nt))}),nt});function SS(nt){var it=nt==null?0:nt.length,pt=$n();return nt=it?cr(nt,function(jt){if(typeof jt[1]!="function")throw new Hr(tt);return[pt(jt[0]),jt[1]]}):[],Xn(function(jt){for(var Vt=-1;++VtIt)return[];var pt=Bt,jt=Er(nt,Bt);it=$n(it),nt-=Bt;for(var Vt=Ou(jt,it);++pt0||it<0)?new Qn(pt):(nt<0?pt=pt.takeRight(-nt):nt&&(pt=pt.drop(nt)),it!==s&&(it=Yn(it),pt=it<0?pt.dropRight(-it):pt.take(it-nt)),pt)},Qn.prototype.takeRightWhile=function(nt){return this.reverse().takeWhile(nt).reverse()},Qn.prototype.toArray=function(){return this.take(Bt)},io(Qn.prototype,function(nt,it){var pt=/^(?:filter|find|map|reject)|While$/.test(it),jt=/^(?:head|last)$/.test(it),Vt=Kt[jt?"take"+(it=="last"?"Right":""):it],Qt=jt||/^find/.test(it);!Vt||(Kt.prototype[it]=function(){var on=this.__wrapped__,un=jt?[1]:arguments,mn=on instanceof Qn,xn=un[0],Rn=mn||qn(on),Cn=function(Jn){var er=Vt.apply(Kt,Ro([Jn],un));return jt&&jn?er[0]:er};Rn&&pt&&typeof xn=="function"&&xn.length!=1&&(mn=Rn=!1);var jn=this.__chain__,Bn=!!this.__actions__.length,Wn=Qt&&!jn,Kn=mn&&!Bn;if(!Qt&&Rn){on=Kn?on:new Qn(this);var zn=nt.apply(on,un);return zn.__actions__.push({func:lu,args:[Cn],thisArg:s}),new Gr(zn,jn)}return Wn&&Kn?nt.apply(this,un):(zn=this.thru(Cn),Wn?jt?zn.value()[0]:zn.value():zn)})}),Vr(["pop","push","shift","sort","splice","unshift"],function(nt){var it=Pl[nt],pt=/^(?:push|sort|unshift)$/.test(nt)?"tap":"thru",jt=/^(?:pop|shift)$/.test(nt);Kt.prototype[nt]=function(){var Vt=arguments;if(jt&&!this.__chain__){var Qt=this.value();return it.apply(qn(Qt)?Qt:[],Vt)}return this[pt](function(on){return it.apply(qn(on)?on:[],Vt)})}}),io(Qn.prototype,function(nt,it){var pt=Kt[it];if(pt){var jt=pt.name+"";ir.call(us,jt)||(us[jt]=[]),us[jt].push({name:it,func:pt})}}),us[tu(s,bt).name]=[{name:"wrapper",func:s}],Qn.prototype.clone=_v,Qn.prototype.reverse=wv,Qn.prototype.value=Sv,Kt.prototype.at=Z_,Kt.prototype.chain=X_,Kt.prototype.commit=J_,Kt.prototype.next=Q_,Kt.prototype.plant=t1,Kt.prototype.reverse=n1,Kt.prototype.toJSON=Kt.prototype.valueOf=Kt.prototype.value=r1,Kt.prototype.first=Kt.prototype.head,js&&(Kt.prototype[js]=e1),Kt},ss=Qy();Bo?((Bo.exports=ss)._=ss,wu._=ss):_r._=ss}).call(commonjsGlobal$1)})(lodash,lodash.exports);const updatePath=(o,i,s)=>lodash.exports.setWith(lodash.exports.clone(o),i,s,lodash.exports.clone),capitalize=o=>o[0].toUpperCase()+o.slice(1),TextInput=o=>{var tt;const{params:i,schema:s,setParams:j,path:$}=o,_e=react.exports.useCallback(et=>j(rt=>updatePath(rt,$,et.target.value)),[$,j]);return jsx(TextField$1,{type:"text",sx:{marginBottom:"16px"},fullWidth:!0,onChange:_e,value:(tt=lodash.exports.get(i,$))!=null?tt:"",label:capitalize(s.title),variant:"filled"})},NumberInput=o=>{var tt;const{path:i,params:s,setParams:j,schema:$}=o,_e=react.exports.useCallback(et=>j(rt=>updatePath(rt,i,et.target.value)),[i,j]);return jsx(TextField$1,{type:"number",sx:{marginBottom:"16px"},fullWidth:!0,value:(tt=lodash.exports.get(s,i))!=null?tt:"",onChange:_e,label:capitalize($.title),variant:"filled"})},BooleanInput=o=>{var tt;const{params:i,schema:s,setParams:j,path:$}=o,_e=react.exports.useCallback(et=>j(rt=>updatePath(rt,$,et.target.checked)),[$,j]);return jsxs(Box$1,{display:"flex",height:56,alignItems:"center",marginBottom:2,children:[jsxs(Typography$1,{children:[capitalize(s.title),": "]}),jsx(Switch$1,{size:"small",checked:(tt=lodash.exports.get(i,$))!=null?tt:!1,onChange:_e})]})},IntegerInput=o=>{var rt;const[i,s]=react.exports.useState(""),{params:j,path:$,setParams:_e,schema:tt}=o,et=react.exports.useCallback(ot=>{const{value:lt}=ot.target;if(s(""),lt===""){_e(ct=>updatePath(ct,$,ot.target.value));return}const dt=lt.at(-1),at=parseFloat(dt);lodash.exports.isInteger(at)?_e(ct=>updatePath(ct,$,ot.target.value)):s("Please enter a valid integer")},[$,_e]);return jsx(TextField$1,{className:"formant-integer-input ",type:"text",sx:{marginBottom:"36px"},fullWidth:!0,value:(rt=lodash.exports.get(j,$))!=null?rt:"",onChange:et,label:capitalize(tt.title),helperText:i,variant:"filled"})},ArrayInput=o=>{const{params:i,schema:s,setParams:j,path:$}=o,[_e,tt]=react.exports.useState(""),et=react.exports.useMemo(()=>lodash.exports.get(i,$)!==void 0?lodash.exports.get(i,$):[""],[i,j]),rt=react.exports.useCallback(dt=>{if(tt(""),et.length===2&&et[1].length===0){setTimeout(()=>{et.pop(),j(at=>updatePath(at,$,et))},5e3);return}if(et[dt].length>0){j(at=>updatePath(at,$,et));return}if(et.pop(),!(et[dt].length>0)){j(at=>updatePath(at,$,[...et.slice(0,dt),...et.slice(dt+1)]));return}j(at=>updatePath(at,$,et))},[et]),ot=react.exports.useCallback(dt=>{dt+1===et.length&&(et.push(""),j(at=>updatePath(at,$,et)))},[et]),lt=react.exports.useCallback((dt,at)=>{const{value:ct}=dt.target;if(tt(""),s.items.type==="integer"){if(ct===""){et[at]=dt.target.value,j(mt=>updatePath(mt,$,et));return}const st=ct.at(-1),ut=parseFloat(st);if(lodash.exports.isInteger(ut)){et[at]=dt.target.value,j(mt=>updatePath(mt,$,et));return}tt("Please enter a valid integer");return}et[at]=dt.target.value,j(st=>updatePath(st,$,et))},[$,j]);return jsx(Fragment,{children:et.map((dt,at)=>{var ct;return jsx(TextField$1,{className:"formant-integer-input ",type:"text",sx:{marginBottom:"16px"},label:capitalize(s.title),fullWidth:!0,onFocus:()=>ot(at),onBlur:()=>rt(at),onChange:st=>lt(st,at),value:(ct=et[at])!=null?ct:"",helperText:at+1===et.length&&_e.length>1?_e:"",variant:"filled"},at)})})},JsonSchemaForm=({schema:o,params:i,setParams:s,path:j})=>{switch(o.type){case"string":return jsx(TextInput,{params:i,path:j,schema:o,setParams:s});case"number":return jsx(NumberInput,{params:i,path:j,schema:o,setParams:s});case"boolean":return jsx(BooleanInput,{params:i,path:j,schema:o,setParams:s});case"integer":return jsx(IntegerInput,{params:i,path:j,schema:o,setParams:s});case"array":return jsx(ArrayInput,{params:i,path:j,schema:o,setParams:s});case"object":{const{properties:$}=o;return jsxs(Fragment,{children:[jsx(Typography$1,{variant:"h3",children:capitalize(o.title)}),jsx("div",{style:{marginLeft:10},children:Object.keys($).map(_e=>{const tt=$[_e],et=j?[...j,_e]:[_e];return jsx(JsonSchemaForm,{schema:tt,path:et,params:i,setParams:s},et.join("."))})})]})}default:return jsx(Fragment,{children:"Unsupported schema.type"})}},getDefaultParams=o=>Object.keys(o.properties).reduce((i,s)=>{const j=o.properties[s];switch(j.type){case"object":return{...i,[s]:getDefaultParams(j)};case"string":case"number":case"integer":return j.default?{...i,[s]:j.default}:i;case"boolean":return j.default?{...i,[s]:/^true$/.test(j.default)}:i;case"array":return i;default:return i}},{}),getServices=async o=>{const i=o.filter(s=>s.streamName==="ros.services.json");return i?i[0]?i[0].currentValue?i[0].currentValue.startsWith("http")?(await fetch(i[0].currentValue)).json():JSON.parse(i[0].currentValue):{}:{}:{}},App=()=>{const o=useLatestTelemetry(),i=useDevice(),[s,j]=react.exports.useState(),[$,_e]=react.exports.useState(null),[tt,et]=react.exports.useState(!1),[rt,ot]=react.exports.useState({});react.exports.useEffect(()=>{!o||getServices(o).then(ct=>j(ct))},[o]);const lt=react.exports.useCallback(()=>{!i||!$||(i.sendCommand("rosservice",JSON.stringify({[$]:rt})),_e(null),et(!0),ot({}))},[s,rt,$]),dt=react.exports.useCallback(ct=>{s&&(_e(ct),ot(getDefaultParams(s[ct])))},[s]),at=react.exports.useMemo(()=>Object.keys(s!=null?s:{}).map(ct=>({label:ct,value:ct})),[$,s]);return jsx("div",{className:"App",children:jsxs(Box$1,{position:"relative",textAlign:"left",width:350,children:[jsx(Typography$1,{sx:{marginBottom:"8px"},variant:"h2",children:"ROS Service Command"}),jsx(Box$1,{display:"flex",flexDirection:"row",children:jsx(Box$1,{width:"100%",display:"flex",justifyContent:"space-between"})}),jsx(Select,{sx:{width:350,textAlign:"left",marginBottom:"16px"},onChange:dt,label:"Service",value:$!=null?$:"",items:at}),s&&$&&jsx(JsonSchemaForm,{schema:s[$],params:rt,path:[],setParams:ot}),jsx(Button$1,{sx:{position:"absolute",bottom:-50,right:0},onClick:lt,disabled:$===null||s===void 0,size:"large",variant:"contained",color:"secondary",children:"Send command"}),jsx(Snackbar$1,{message:"Command sent",open:tt,onClose:()=>et(!1),autoHideDuration:3e3})]})})};var index="";client.createRoot(document.getElementById("root")).render(jsx(React$1.StrictMode,{children:jsx(FormantProvider,{children:jsx(App,{})})})); diff --git a/examples/ros-service-call-module/dist/index.html b/examples/ros-service-call-module/dist/index.html index 52eacc5b1..de432b7f1 100644 --- a/examples/ros-service-call-module/dist/index.html +++ b/examples/ros-service-call-module/dist/index.html @@ -2,14 +2,13 @@ - + Vite App - - + +
- From fc85acd5fa3ce4f9324e4302993c12b2206c1db9 Mon Sep 17 00:00:00 2001 From: Franklin Date: Thu, 3 Aug 2023 15:35:36 -0400 Subject: [PATCH 3/3] add json schema to button toggle adapter --- .../button-toggle-adapter/adapter/adapter.py | 1 - .../button-toggle-adapter/adapter/config.json | 31 ++-- .../button-toggle-adapter/adapter/config.py | 50 +++++- .../adapter/config_schema.json | 61 ++++++++ .../adapter/json_schema_validator.py | 142 ++++++++++++++++++ 5 files changed, 265 insertions(+), 20 deletions(-) create mode 100644 examples/button-toggle-adapter/adapter/config_schema.json create mode 100644 examples/button-toggle-adapter/adapter/json_schema_validator.py diff --git a/examples/button-toggle-adapter/adapter/adapter.py b/examples/button-toggle-adapter/adapter/adapter.py index 9daf6b1a3..de892cab7 100644 --- a/examples/button-toggle-adapter/adapter/adapter.py +++ b/examples/button-toggle-adapter/adapter/adapter.py @@ -15,5 +15,4 @@ def __init__(self): def start(self): while(not rospy.is_shutdown()): time.sleep(1) - self.shutdown() diff --git a/examples/button-toggle-adapter/adapter/config.json b/examples/button-toggle-adapter/adapter/config.json index 316dd5f1b..3705c8525 100644 --- a/examples/button-toggle-adapter/adapter/config.json +++ b/examples/button-toggle-adapter/adapter/config.json @@ -1,19 +1,18 @@ { - "API-buttons": { - "/api_button": { - "output_topic": "api_button_state" - } - }, - "ROS-buttons": { - "/ros_button": { - "output_topic": "ros_button_state" - }, - "/hos_button": { - "output_topic": "ros_button_state" - } - }, - "global-configuration": { - "initial-state": false, - "publish-on-sub": true + "button-toggle-adapter": { + "ros-buttons": [ + { + "input_topic": "/joy", + "output_topic": "/toggle" + } + ], + "api-buttons": [ + { + "api_button_name": "joy", + "output_topic": "/toggle" + } + ], + "default-button-state": false, + "publish-on-subscription": true } } \ No newline at end of file diff --git a/examples/button-toggle-adapter/adapter/config.py b/examples/button-toggle-adapter/adapter/config.py index 291a3868f..101b9244e 100644 --- a/examples/button-toggle-adapter/adapter/config.py +++ b/examples/button-toggle-adapter/adapter/config.py @@ -1,13 +1,57 @@ import json - +import time +import json_schema_validator +from formant.sdk.agent.v1.client import Client as AgentClient class Config: """The config class gets the config.json file and loads it into memory.""" + def callback(self, config): + self.config_raw = config + def __init__(self): """Initialize the Config class""" - with open("config.json", "r") as f: - self._config = json.load(f) + self.config_raw = {} + + agentClient = AgentClient() + + json_schema_validator.JsonSchemaValidator( + agentClient, + "button-toggle-adapter", + self.callback, + True, + True, + ) + + while len(self.config_raw) == 0: + time.sleep(0.1) + + self._config = {} + self._config["ROS-buttons"] = {} + self._config["API-buttons"] = {} + + for ros_button_config in self.config_raw["ros-buttons"]: + input_topic = ros_button_config["input_topic"] + output_topic = ros_button_config["output_topic"] + self._config["ROS-buttons"][input_topic] = { + "input_topic": input_topic, + "output_topic": output_topic, + } + + for api_button_config in self.config_raw["api-buttons"]: + name = api_button_config["api_button_name"] + output_topic = api_button_config["output_topic"] + self._config["API-buttons"][name] = { + "name": name, + "output_topic": output_topic, + } + + self._config["global-configuration"] = { + "initial-state": self.config_raw.get("default-button-state", False), + "publish-on-subscription": self.config_raw.get("publish-on-subscription", False), + } + + print("Using config:", self._config) def get_config(self): """Get the loaded config.""" diff --git a/examples/button-toggle-adapter/adapter/config_schema.json b/examples/button-toggle-adapter/adapter/config_schema.json new file mode 100644 index 000000000..ad694088b --- /dev/null +++ b/examples/button-toggle-adapter/adapter/config_schema.json @@ -0,0 +1,61 @@ +{ + "title": "Button Toggle Adapter Configuration", + "description": "Configuration for button toggle adapter.", + "type": "object", + "properties": { + "ros-buttons": { + "type": "array", + "title": "ROS Buttons", + "description": "Buttons that listen to ros topics to toggle", + "items": { + "title": "ROS Button", + "description": "button that is toggled based on a ros topic", + "type": "object", + "properties": { + "input_topic": { + "type": "string", + "title": "Input Topic", + "description": "Topic to listening for incoming booleans on" + }, + "output_topic": { + "type": "string", + "title": "Output Topic", + "description": "Topic to publish the toggled boolean on" + } + } + } + }, + "api-buttons": { + "type": "array", + "title": "API Buttons", + "description": "API Buttons", + "items": { + "title": "API Button", + "description": "API Button", + "type": "object", + "properties": { + "api_button_name": { + "type": "string", + "title": "API Button Name", + "description": "Name of button to be used in API" + }, + "output_topic": { + "type": "string", + "title": "Output Topic", + "description": "Topic to publish the toggled boolean on" + } + } + } + }, + "default-button-state": { + "type": "boolean", + "title": "Default Button State", + "description": "Default (initial) state that the button is in" + }, + "publish-on-subscription": { + "type": "boolean", + "title": "Publish on Subscription", + "description": "If true, the button toggle information is published everytime a new subscriber is added to the output topic" + } + } +} \ No newline at end of file diff --git a/examples/button-toggle-adapter/adapter/json_schema_validator.py b/examples/button-toggle-adapter/adapter/json_schema_validator.py new file mode 100644 index 000000000..c62da9e03 --- /dev/null +++ b/examples/button-toggle-adapter/adapter/json_schema_validator.py @@ -0,0 +1,142 @@ +from typing import Callable, Dict, Optional, Type +import json +import jsonschema +import logging +from threading import Lock +from functools import reduce +import re + +from formant.sdk.agent.v1.client import Client as AgentClient + +logging.basicConfig() + +JSONDecodeError = Exception # type: Type[Exception] +try: + JSONDecodeError = json.decoder.JSONDecodeError +except AttributeError: + # python2 doesn't have JSON Decode Error + pass + + +class JsonSchemaValidator: + def __init__( + self, + client, # type: AgentClient + adapter_name, # type: str + update_adapter_config_callback, # type: Callable[[Dict], None] + validate=True, # type: bool + use_app_config=True, # type: bool + logger=None, # type: Optional[logging.Logger] + logger_level=logging.INFO, # type: int + ): + self._lock = Lock() + self._client = client + self._adapter_name = adapter_name + self._update_adapter_config_callback = update_adapter_config_callback + self._use_app_config = use_app_config + self._validate = validate + if logger is None: + logger = logging.getLogger(adapter_name) + logger.setLevel(logger_level) + self.logger = logger + self._client.register_config_update_callback(self._update_adapter_config) + if self._client.ignore_unavailable: + self._update_adapter_config() + + def _update_adapter_config(self): + # Consumer might not be threadsafe + with self._lock: + try: + configs = [ + self._get_config_from_adapter_configuration(), + self._get_config_from_json(), + ] + config = reduce(lambda s1, s2: s1 or s2, configs) + if config is None: + raise Exception( + "Could not get configuration for '%s'" % self._adapter_name + ) + if self._use_app_config: + config = self._inject_app_config(config) + if self._validate: + self._validate_schema(config) + try: + self._update_adapter_config_callback(config) + except Exception as e: + self.logger.error( + "Error calling update config callback %s" % str(e) + ) + except Exception as e: + self.logger.warn("Failed to load config: %s" % str(e)) + self._client.create_event( + "%s configuration loading failed: %s." + % (self._adapter_name, str(e)), + notify=False, + severity="warning", + ) + + def _get_config_from_adapter_configuration(self): + self.logger.info("Trying to get config from adapter config") + try: + adapters = self._client.get_agent_configuration().document.adapters + for adapter in adapters: + try: + config = json.loads(adapter.configuration) + except: + continue + if self._adapter_name in adapter.name: + self.logger.info("Got config from adapter config") + return config + except Exception as e: + self.logger.warn("Error getting config from adapter config: %s" % str(e)) + return None + + def _inject_app_config(self, config: Dict): + """ + This function replaces all instances of + {{key}} with `key` from app_config + """ + config_string = json.dumps(config) + pattern = r"\{\{(.+?)\}\}" + matches = re.findall(pattern, config_string) + for match in matches: + val = self._client.get_app_config(match) + config_string = config_string.replace("{{%s}}" % match, val) + return json.loads(config_string) + + def _get_config_from_json(self): + # Try to get config from config.json + self.logger.info("Trying to get config from config.json file") + try: + with open("config.json") as f: + config = json.loads(f.read()) + return config + except Exception as e: + self.logger.info("Error getting config from config.json: %s" % str(e)) + return None + + def _validate_schema(self, config_blob): + # Validate configuration based on schema + with open("config_schema.json") as f: + try: + self.config_schema = json.load(f) + self.logger.info("Loaded config schema from config_schema.json file") + except JSONDecodeError as e: + self.logger.warn( + "Could not load config schema. Is the file valid json?" + ) + raise Exception("config schema error: %s" % str(e)) + self.logger.info("Validating config...") + try: + jsonschema.validate(config_blob, self.config_schema) + self.logger.info("Validation succeeded") + except ( + jsonschema.ValidationError, + jsonschema.SchemaError, + jsonschema.RefResolutionError, + ) as e: + self.logger.warn("Validation failed %s: %s", type(e).__name__, str(e)) + except Exception as e: + self.logger.warn( + "Validation failed with unkown error %s: %s", type(e).__name__, str(e) + )