-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathmedia-stream-player.min.js
More file actions
356 lines (347 loc) · 452 KB
/
media-stream-player.min.js
File metadata and controls
356 lines (347 loc) · 452 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
"use strict";var mediaStreamPlayer=(()=>{var yx=Object.create;var ms=Object.defineProperty,gx=Object.defineProperties,vx=Object.getOwnPropertyDescriptor,wx=Object.getOwnPropertyDescriptors,Sx=Object.getOwnPropertyNames,hl=Object.getOwnPropertySymbols,Ex=Object.getPrototypeOf,Sf=Object.prototype.hasOwnProperty,p0=Object.prototype.propertyIsEnumerable;var ke=Math.pow,d0=(e,t,r)=>t in e?ms(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,D=(e,t)=>{for(var r in t||(t={}))Sf.call(t,r)&&d0(e,r,t[r]);if(hl)for(var r of hl(t))p0.call(t,r)&&d0(e,r,t[r]);return e},Je=(e,t)=>gx(e,wx(t));var Ef=(e,t)=>{var r={};for(var n in e)Sf.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&hl)for(var n of hl(e))t.indexOf(n)<0&&p0.call(e,n)&&(r[n]=e[n]);return r};var ne=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),xx=(e,t)=>{for(var r in t)ms(e,r,{get:t[r],enumerable:!0})},h0=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of Sx(t))!Sf.call(e,i)&&i!==r&&ms(e,i,{get:()=>t[i],enumerable:!(n=vx(t,i))||n.enumerable});return e};var q=(e,t,r)=>(r=e!=null?yx(Ex(e)):{},h0(t||!e||!e.__esModule?ms(r,"default",{value:e,enumerable:!0}):r,e)),_x=e=>h0(ms({},"__esModule",{value:!0}),e);var C0=ne(de=>{"use strict";var ys=Symbol.for("react.element"),Tx=Symbol.for("react.portal"),Cx=Symbol.for("react.fragment"),bx=Symbol.for("react.strict_mode"),kx=Symbol.for("react.profiler"),Ix=Symbol.for("react.provider"),Mx=Symbol.for("react.context"),Px=Symbol.for("react.forward_ref"),Ox=Symbol.for("react.suspense"),Ax=Symbol.for("react.memo"),Nx=Symbol.for("react.lazy"),m0=Symbol.iterator;function Fx(e){return e===null||typeof e!="object"?null:(e=m0&&e[m0]||e["@@iterator"],typeof e=="function"?e:null)}var v0={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},w0=Object.assign,S0={};function qi(e,t,r){this.props=e,this.context=t,this.refs=S0,this.updater=r||v0}qi.prototype.isReactComponent={};qi.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};qi.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function E0(){}E0.prototype=qi.prototype;function _f(e,t,r){this.props=e,this.context=t,this.refs=S0,this.updater=r||v0}var Tf=_f.prototype=new E0;Tf.constructor=_f;w0(Tf,qi.prototype);Tf.isPureReactComponent=!0;var y0=Array.isArray,x0=Object.prototype.hasOwnProperty,Cf={current:null},_0={key:!0,ref:!0,__self:!0,__source:!0};function T0(e,t,r){var n,i={},o=null,s=null;if(t!=null)for(n in t.ref!==void 0&&(s=t.ref),t.key!==void 0&&(o=""+t.key),t)x0.call(t,n)&&!_0.hasOwnProperty(n)&&(i[n]=t[n]);var a=arguments.length-2;if(a===1)i.children=r;else if(1<a){for(var l=Array(a),u=0;u<a;u++)l[u]=arguments[u+2];i.children=l}if(e&&e.defaultProps)for(n in a=e.defaultProps,a)i[n]===void 0&&(i[n]=a[n]);return{$$typeof:ys,type:e,key:o,ref:s,props:i,_owner:Cf.current}}function Rx(e,t){return{$$typeof:ys,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function bf(e){return typeof e=="object"&&e!==null&&e.$$typeof===ys}function Lx(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(r){return t[r]})}var g0=/\/+/g;function xf(e,t){return typeof e=="object"&&e!==null&&e.key!=null?Lx(""+e.key):t.toString(36)}function yl(e,t,r,n,i){var o=typeof e;(o==="undefined"||o==="boolean")&&(e=null);var s=!1;if(e===null)s=!0;else switch(o){case"string":case"number":s=!0;break;case"object":switch(e.$$typeof){case ys:case Tx:s=!0}}if(s)return s=e,i=i(s),e=n===""?"."+xf(s,0):n,y0(i)?(r="",e!=null&&(r=e.replace(g0,"$&/")+"/"),yl(i,t,r,"",function(u){return u})):i!=null&&(bf(i)&&(i=Rx(i,r+(!i.key||s&&s.key===i.key?"":(""+i.key).replace(g0,"$&/")+"/")+e)),t.push(i)),1;if(s=0,n=n===""?".":n+":",y0(e))for(var a=0;a<e.length;a++){o=e[a];var l=n+xf(o,a);s+=yl(o,t,r,l,i)}else if(l=Fx(e),typeof l=="function")for(e=l.call(e),a=0;!(o=e.next()).done;)o=o.value,l=n+xf(o,a++),s+=yl(o,t,r,l,i);else if(o==="object")throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return s}function ml(e,t,r){if(e==null)return e;var n=[],i=0;return yl(e,n,"","",function(o){return t.call(r,o,i++)}),n}function Dx(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(r){(e._status===0||e._status===-1)&&(e._status=1,e._result=r)},function(r){(e._status===0||e._status===-1)&&(e._status=2,e._result=r)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var Nt={current:null},gl={transition:null},Bx={ReactCurrentDispatcher:Nt,ReactCurrentBatchConfig:gl,ReactCurrentOwner:Cf};de.Children={map:ml,forEach:function(e,t,r){ml(e,function(){t.apply(this,arguments)},r)},count:function(e){var t=0;return ml(e,function(){t++}),t},toArray:function(e){return ml(e,function(t){return t})||[]},only:function(e){if(!bf(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};de.Component=qi;de.Fragment=Cx;de.Profiler=kx;de.PureComponent=_f;de.StrictMode=bx;de.Suspense=Ox;de.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Bx;de.cloneElement=function(e,t,r){if(e==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var n=w0({},e.props),i=e.key,o=e.ref,s=e._owner;if(t!=null){if(t.ref!==void 0&&(o=t.ref,s=Cf.current),t.key!==void 0&&(i=""+t.key),e.type&&e.type.defaultProps)var a=e.type.defaultProps;for(l in t)x0.call(t,l)&&!_0.hasOwnProperty(l)&&(n[l]=t[l]===void 0&&a!==void 0?a[l]:t[l])}var l=arguments.length-2;if(l===1)n.children=r;else if(1<l){a=Array(l);for(var u=0;u<l;u++)a[u]=arguments[u+2];n.children=a}return{$$typeof:ys,type:e.type,key:i,ref:o,props:n,_owner:s}};de.createContext=function(e){return e={$$typeof:Mx,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:Ix,_context:e},e.Consumer=e};de.createElement=T0;de.createFactory=function(e){var t=T0.bind(null,e);return t.type=e,t};de.createRef=function(){return{current:null}};de.forwardRef=function(e){return{$$typeof:Px,render:e}};de.isValidElement=bf;de.lazy=function(e){return{$$typeof:Nx,_payload:{_status:-1,_result:e},_init:Dx}};de.memo=function(e,t){return{$$typeof:Ax,type:e,compare:t===void 0?null:t}};de.startTransition=function(e){var t=gl.transition;gl.transition={};try{e()}finally{gl.transition=t}};de.unstable_act=function(){throw Error("act(...) is not supported in production builds of React.")};de.useCallback=function(e,t){return Nt.current.useCallback(e,t)};de.useContext=function(e){return Nt.current.useContext(e)};de.useDebugValue=function(){};de.useDeferredValue=function(e){return Nt.current.useDeferredValue(e)};de.useEffect=function(e,t){return Nt.current.useEffect(e,t)};de.useId=function(){return Nt.current.useId()};de.useImperativeHandle=function(e,t,r){return Nt.current.useImperativeHandle(e,t,r)};de.useInsertionEffect=function(e,t){return Nt.current.useInsertionEffect(e,t)};de.useLayoutEffect=function(e,t){return Nt.current.useLayoutEffect(e,t)};de.useMemo=function(e,t){return Nt.current.useMemo(e,t)};de.useReducer=function(e,t,r){return Nt.current.useReducer(e,t,r)};de.useRef=function(e){return Nt.current.useRef(e)};de.useState=function(e){return Nt.current.useState(e)};de.useSyncExternalStore=function(e,t,r){return Nt.current.useSyncExternalStore(e,t,r)};de.useTransition=function(){return Nt.current.useTransition()};de.version="18.2.0"});var xe=ne((q6,b0)=>{"use strict";b0.exports=C0()});var L0=ne(Oe=>{"use strict";function Pf(e,t){var r=e.length;e.push(t);e:for(;0<r;){var n=r-1>>>1,i=e[n];if(0<vl(i,t))e[n]=t,e[r]=i,r=n;else break e}}function Sr(e){return e.length===0?null:e[0]}function Sl(e){if(e.length===0)return null;var t=e[0],r=e.pop();if(r!==t){e[0]=r;e:for(var n=0,i=e.length,o=i>>>1;n<o;){var s=2*(n+1)-1,a=e[s],l=s+1,u=e[l];if(0>vl(a,r))l<i&&0>vl(u,a)?(e[n]=u,e[l]=r,n=l):(e[n]=a,e[s]=r,n=s);else if(l<i&&0>vl(u,r))e[n]=u,e[l]=r,n=l;else break e}}return t}function vl(e,t){var r=e.sortIndex-t.sortIndex;return r!==0?r:e.id-t.id}typeof performance=="object"&&typeof performance.now=="function"?(k0=performance,Oe.unstable_now=function(){return k0.now()}):(kf=Date,I0=kf.now(),Oe.unstable_now=function(){return kf.now()-I0});var k0,kf,I0,Fr=[],_n=[],Ux=1,ir=null,It=3,El=!1,ci=!1,vs=!1,O0=typeof setTimeout=="function"?setTimeout:null,A0=typeof clearTimeout=="function"?clearTimeout:null,M0=typeof setImmediate!="undefined"?setImmediate:null;typeof navigator!="undefined"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function Of(e){for(var t=Sr(_n);t!==null;){if(t.callback===null)Sl(_n);else if(t.startTime<=e)Sl(_n),t.sortIndex=t.expirationTime,Pf(Fr,t);else break;t=Sr(_n)}}function Af(e){if(vs=!1,Of(e),!ci)if(Sr(Fr)!==null)ci=!0,Ff(Nf);else{var t=Sr(_n);t!==null&&Rf(Af,t.startTime-e)}}function Nf(e,t){ci=!1,vs&&(vs=!1,A0(ws),ws=-1),El=!0;var r=It;try{for(Of(t),ir=Sr(Fr);ir!==null&&(!(ir.expirationTime>t)||e&&!R0());){var n=ir.callback;if(typeof n=="function"){ir.callback=null,It=ir.priorityLevel;var i=n(ir.expirationTime<=t);t=Oe.unstable_now(),typeof i=="function"?ir.callback=i:ir===Sr(Fr)&&Sl(Fr),Of(t)}else Sl(Fr);ir=Sr(Fr)}if(ir!==null)var o=!0;else{var s=Sr(_n);s!==null&&Rf(Af,s.startTime-t),o=!1}return o}finally{ir=null,It=r,El=!1}}var xl=!1,wl=null,ws=-1,N0=5,F0=-1;function R0(){return!(Oe.unstable_now()-F0<N0)}function If(){if(wl!==null){var e=Oe.unstable_now();F0=e;var t=!0;try{t=wl(!0,e)}finally{t?gs():(xl=!1,wl=null)}}else xl=!1}var gs;typeof M0=="function"?gs=function(){M0(If)}:typeof MessageChannel!="undefined"?(Mf=new MessageChannel,P0=Mf.port2,Mf.port1.onmessage=If,gs=function(){P0.postMessage(null)}):gs=function(){O0(If,0)};var Mf,P0;function Ff(e){wl=e,xl||(xl=!0,gs())}function Rf(e,t){ws=O0(function(){e(Oe.unstable_now())},t)}Oe.unstable_IdlePriority=5;Oe.unstable_ImmediatePriority=1;Oe.unstable_LowPriority=4;Oe.unstable_NormalPriority=3;Oe.unstable_Profiling=null;Oe.unstable_UserBlockingPriority=2;Oe.unstable_cancelCallback=function(e){e.callback=null};Oe.unstable_continueExecution=function(){ci||El||(ci=!0,Ff(Nf))};Oe.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):N0=0<e?Math.floor(1e3/e):5};Oe.unstable_getCurrentPriorityLevel=function(){return It};Oe.unstable_getFirstCallbackNode=function(){return Sr(Fr)};Oe.unstable_next=function(e){switch(It){case 1:case 2:case 3:var t=3;break;default:t=It}var r=It;It=t;try{return e()}finally{It=r}};Oe.unstable_pauseExecution=function(){};Oe.unstable_requestPaint=function(){};Oe.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var r=It;It=e;try{return t()}finally{It=r}};Oe.unstable_scheduleCallback=function(e,t,r){var n=Oe.unstable_now();switch(typeof r=="object"&&r!==null?(r=r.delay,r=typeof r=="number"&&0<r?n+r:n):r=n,e){case 1:var i=-1;break;case 2:i=250;break;case 5:i=1073741823;break;case 4:i=1e4;break;default:i=5e3}return i=r+i,e={id:Ux++,callback:t,priorityLevel:e,startTime:r,expirationTime:i,sortIndex:-1},r>n?(e.sortIndex=r,Pf(_n,e),Sr(Fr)===null&&e===Sr(_n)&&(vs?(A0(ws),ws=-1):vs=!0,Rf(Af,r-n))):(e.sortIndex=i,Pf(Fr,e),ci||El||(ci=!0,Ff(Nf))),e};Oe.unstable_shouldYield=R0;Oe.unstable_wrapCallback=function(e){var t=It;return function(){var r=It;It=t;try{return e.apply(this,arguments)}finally{It=r}}}});var B0=ne((Z6,D0)=>{"use strict";D0.exports=L0()});var $v=ne(Kt=>{"use strict";var Wy=xe(),Qt=B0();function A(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,r=1;r<arguments.length;r++)t+="&args[]="+encodeURIComponent(arguments[r]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var qy=new Set,zs={};function _i(e,t){ho(e,t),ho(e+"Capture",t)}function ho(e,t){for(zs[e]=t,e=0;e<t.length;e++)qy.add(t[e])}var nn=!(typeof window=="undefined"||typeof window.document=="undefined"||typeof window.document.createElement=="undefined"),id=Object.prototype.hasOwnProperty,Hx=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,U0={},H0={};function zx(e){return id.call(H0,e)?!0:id.call(U0,e)?!1:Hx.test(e)?H0[e]=!0:(U0[e]=!0,!1)}function jx(e,t,r,n){if(r!==null&&r.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return n?!1:r!==null?!r.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function Vx(e,t,r,n){if(t===null||typeof t=="undefined"||jx(e,t,r,n))return!0;if(n)return!1;if(r!==null)switch(r.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function Lt(e,t,r,n,i,o,s){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=n,this.attributeNamespace=i,this.mustUseProperty=r,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=s}var Ct={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Ct[e]=new Lt(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Ct[t]=new Lt(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Ct[e]=new Lt(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Ct[e]=new Lt(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){Ct[e]=new Lt(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Ct[e]=new Lt(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Ct[e]=new Lt(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Ct[e]=new Lt(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Ct[e]=new Lt(e,5,!1,e.toLowerCase(),null,!1,!1)});var Xd=/[\-:]([a-z])/g;function Qd(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(Xd,Qd);Ct[t]=new Lt(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(Xd,Qd);Ct[t]=new Lt(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(Xd,Qd);Ct[t]=new Lt(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Ct[e]=new Lt(e,1,!1,e.toLowerCase(),null,!1,!1)});Ct.xlinkHref=new Lt("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Ct[e]=new Lt(e,1,!1,e.toLowerCase(),null,!0,!0)});function Jd(e,t,r,n){var i=Ct.hasOwnProperty(t)?Ct[t]:null;(i!==null?i.type!==0:n||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(Vx(t,r,i,n)&&(r=null),n||i===null?zx(t)&&(r===null?e.removeAttribute(t):e.setAttribute(t,""+r)):i.mustUseProperty?e[i.propertyName]=r===null?i.type===3?!1:"":r:(t=i.attributeName,n=i.attributeNamespace,r===null?e.removeAttribute(t):(i=i.type,r=i===3||i===4&&r===!0?"":""+r,n?e.setAttributeNS(n,t,r):e.setAttribute(t,r))))}var ln=Wy.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,_l=Symbol.for("react.element"),Yi=Symbol.for("react.portal"),Xi=Symbol.for("react.fragment"),Kd=Symbol.for("react.strict_mode"),od=Symbol.for("react.profiler"),Gy=Symbol.for("react.provider"),Zy=Symbol.for("react.context"),ep=Symbol.for("react.forward_ref"),sd=Symbol.for("react.suspense"),ad=Symbol.for("react.suspense_list"),tp=Symbol.for("react.memo"),Cn=Symbol.for("react.lazy");Symbol.for("react.scope");Symbol.for("react.debug_trace_mode");var Yy=Symbol.for("react.offscreen");Symbol.for("react.legacy_hidden");Symbol.for("react.cache");Symbol.for("react.tracing_marker");var z0=Symbol.iterator;function Ss(e){return e===null||typeof e!="object"?null:(e=z0&&e[z0]||e["@@iterator"],typeof e=="function"?e:null)}var We=Object.assign,Lf;function Is(e){if(Lf===void 0)try{throw Error()}catch(r){var t=r.stack.trim().match(/\n( *(at )?)/);Lf=t&&t[1]||""}return`
`+Lf+e}var Df=!1;function Bf(e,t){if(!e||Df)return"";Df=!0;var r=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(u){var n=u}Reflect.construct(e,[],t)}else{try{t.call()}catch(u){n=u}e.call(t.prototype)}else{try{throw Error()}catch(u){n=u}e()}}catch(u){if(u&&n&&typeof u.stack=="string"){for(var i=u.stack.split(`
`),o=n.stack.split(`
`),s=i.length-1,a=o.length-1;1<=s&&0<=a&&i[s]!==o[a];)a--;for(;1<=s&&0<=a;s--,a--)if(i[s]!==o[a]){if(s!==1||a!==1)do if(s--,a--,0>a||i[s]!==o[a]){var l=`
`+i[s].replace(" at new "," at ");return e.displayName&&l.includes("<anonymous>")&&(l=l.replace("<anonymous>",e.displayName)),l}while(1<=s&&0<=a);break}}}finally{Df=!1,Error.prepareStackTrace=r}return(e=e?e.displayName||e.name:"")?Is(e):""}function $x(e){switch(e.tag){case 5:return Is(e.type);case 16:return Is("Lazy");case 13:return Is("Suspense");case 19:return Is("SuspenseList");case 0:case 2:case 15:return e=Bf(e.type,!1),e;case 11:return e=Bf(e.type.render,!1),e;case 1:return e=Bf(e.type,!0),e;default:return""}}function ld(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case Xi:return"Fragment";case Yi:return"Portal";case od:return"Profiler";case Kd:return"StrictMode";case sd:return"Suspense";case ad:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Zy:return(e.displayName||"Context")+".Consumer";case Gy:return(e._context.displayName||"Context")+".Provider";case ep:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case tp:return t=e.displayName||null,t!==null?t:ld(e.type)||"Memo";case Cn:t=e._payload,e=e._init;try{return ld(e(t))}catch(r){}}return null}function Wx(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return ld(t);case 8:return t===Kd?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function Un(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Xy(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function qx(e){var t=Xy(e)?"checked":"value",r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),n=""+e[t];if(!e.hasOwnProperty(t)&&typeof r!="undefined"&&typeof r.get=="function"&&typeof r.set=="function"){var i=r.get,o=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(s){n=""+s,o.call(this,s)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(s){n=""+s},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Tl(e){e._valueTracker||(e._valueTracker=qx(e))}function Qy(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var r=t.getValue(),n="";return e&&(n=Xy(e)?e.checked?"true":"false":e.value),e=n,e!==r?(t.setValue(e),!0):!1}function Jl(e){if(e=e||(typeof document!="undefined"?document:void 0),typeof e=="undefined")return null;try{return e.activeElement||e.body}catch(t){return e.body}}function ud(e,t){var r=t.checked;return We({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:r!=null?r:e._wrapperState.initialChecked})}function j0(e,t){var r=t.defaultValue==null?"":t.defaultValue,n=t.checked!=null?t.checked:t.defaultChecked;r=Un(t.value!=null?t.value:r),e._wrapperState={initialChecked:n,initialValue:r,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function Jy(e,t){t=t.checked,t!=null&&Jd(e,"checked",t,!1)}function cd(e,t){Jy(e,t);var r=Un(t.value),n=t.type;if(r!=null)n==="number"?(r===0&&e.value===""||e.value!=r)&&(e.value=""+r):e.value!==""+r&&(e.value=""+r);else if(n==="submit"||n==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?fd(e,t.type,r):t.hasOwnProperty("defaultValue")&&fd(e,t.type,Un(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function V0(e,t,r){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var n=t.type;if(!(n!=="submit"&&n!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,r||t===e.value||(e.value=t),e.defaultValue=t}r=e.name,r!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,r!==""&&(e.name=r)}function fd(e,t,r){(t!=="number"||Jl(e.ownerDocument)!==e)&&(r==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+r&&(e.defaultValue=""+r))}var Ms=Array.isArray;function ao(e,t,r,n){if(e=e.options,t){t={};for(var i=0;i<r.length;i++)t["$"+r[i]]=!0;for(r=0;r<e.length;r++)i=t.hasOwnProperty("$"+e[r].value),e[r].selected!==i&&(e[r].selected=i),i&&n&&(e[r].defaultSelected=!0)}else{for(r=""+Un(r),t=null,i=0;i<e.length;i++){if(e[i].value===r){e[i].selected=!0,n&&(e[i].defaultSelected=!0);return}t!==null||e[i].disabled||(t=e[i])}t!==null&&(t.selected=!0)}}function dd(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(A(91));return We({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function $0(e,t){var r=t.value;if(r==null){if(r=t.children,t=t.defaultValue,r!=null){if(t!=null)throw Error(A(92));if(Ms(r)){if(1<r.length)throw Error(A(93));r=r[0]}t=r}t==null&&(t=""),r=t}e._wrapperState={initialValue:Un(r)}}function Ky(e,t){var r=Un(t.value),n=Un(t.defaultValue);r!=null&&(r=""+r,r!==e.value&&(e.value=r),t.defaultValue==null&&e.defaultValue!==r&&(e.defaultValue=r)),n!=null&&(e.defaultValue=""+n)}function W0(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function eg(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function pd(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?eg(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var Cl,tg=function(e){return typeof MSApp!="undefined"&&MSApp.execUnsafeLocalFunction?function(t,r,n,i){MSApp.execUnsafeLocalFunction(function(){return e(t,r,n,i)})}:e}(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(Cl=Cl||document.createElement("div"),Cl.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=Cl.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function js(e,t){if(t){var r=e.firstChild;if(r&&r===e.lastChild&&r.nodeType===3){r.nodeValue=t;return}}e.textContent=t}var As={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},Gx=["Webkit","ms","Moz","O"];Object.keys(As).forEach(function(e){Gx.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),As[t]=As[e]})});function rg(e,t,r){return t==null||typeof t=="boolean"||t===""?"":r||typeof t!="number"||t===0||As.hasOwnProperty(e)&&As[e]?(""+t).trim():t+"px"}function ng(e,t){e=e.style;for(var r in t)if(t.hasOwnProperty(r)){var n=r.indexOf("--")===0,i=rg(r,t[r],n);r==="float"&&(r="cssFloat"),n?e.setProperty(r,i):e[r]=i}}var Zx=We({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 hd(e,t){if(t){if(Zx[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(A(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(A(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(A(61))}if(t.style!=null&&typeof t.style!="object")throw Error(A(62))}}function md(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var yd=null;function rp(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var gd=null,lo=null,uo=null;function q0(e){if(e=sa(e)){if(typeof gd!="function")throw Error(A(280));var t=e.stateNode;t&&(t=bu(t),gd(e.stateNode,e.type,t))}}function ig(e){lo?uo?uo.push(e):uo=[e]:lo=e}function og(){if(lo){var e=lo,t=uo;if(uo=lo=null,q0(e),t)for(e=0;e<t.length;e++)q0(t[e])}}function sg(e,t){return e(t)}function ag(){}var Uf=!1;function lg(e,t,r){if(Uf)return e(t,r);Uf=!0;try{return sg(e,t,r)}finally{Uf=!1,(lo!==null||uo!==null)&&(ag(),og())}}function Vs(e,t){var r=e.stateNode;if(r===null)return null;var n=bu(r);if(n===null)return null;r=n[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(n=!n.disabled)||(e=e.type,n=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!n;break e;default:e=!1}if(e)return null;if(r&&typeof r!="function")throw Error(A(231,t,typeof r));return r}var vd=!1;if(nn)try{Gi={},Object.defineProperty(Gi,"passive",{get:function(){vd=!0}}),window.addEventListener("test",Gi,Gi),window.removeEventListener("test",Gi,Gi)}catch(e){vd=!1}var Gi;function Yx(e,t,r,n,i,o,s,a,l){var u=Array.prototype.slice.call(arguments,3);try{t.apply(r,u)}catch(c){this.onError(c)}}var Ns=!1,Kl=null,eu=!1,wd=null,Xx={onError:function(e){Ns=!0,Kl=e}};function Qx(e,t,r,n,i,o,s,a,l){Ns=!1,Kl=null,Yx.apply(Xx,arguments)}function Jx(e,t,r,n,i,o,s,a,l){if(Qx.apply(this,arguments),Ns){if(Ns){var u=Kl;Ns=!1,Kl=null}else throw Error(A(198));eu||(eu=!0,wd=u)}}function Ti(e){var t=e,r=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(r=t.return),e=t.return;while(e)}return t.tag===3?r:null}function ug(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function G0(e){if(Ti(e)!==e)throw Error(A(188))}function Kx(e){var t=e.alternate;if(!t){if(t=Ti(e),t===null)throw Error(A(188));return t!==e?null:e}for(var r=e,n=t;;){var i=r.return;if(i===null)break;var o=i.alternate;if(o===null){if(n=i.return,n!==null){r=n;continue}break}if(i.child===o.child){for(o=i.child;o;){if(o===r)return G0(i),e;if(o===n)return G0(i),t;o=o.sibling}throw Error(A(188))}if(r.return!==n.return)r=i,n=o;else{for(var s=!1,a=i.child;a;){if(a===r){s=!0,r=i,n=o;break}if(a===n){s=!0,n=i,r=o;break}a=a.sibling}if(!s){for(a=o.child;a;){if(a===r){s=!0,r=o,n=i;break}if(a===n){s=!0,n=o,r=i;break}a=a.sibling}if(!s)throw Error(A(189))}}if(r.alternate!==n)throw Error(A(190))}if(r.tag!==3)throw Error(A(188));return r.stateNode.current===r?e:t}function cg(e){return e=Kx(e),e!==null?fg(e):null}function fg(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=fg(e);if(t!==null)return t;e=e.sibling}return null}var dg=Qt.unstable_scheduleCallback,Z0=Qt.unstable_cancelCallback,e_=Qt.unstable_shouldYield,t_=Qt.unstable_requestPaint,Ke=Qt.unstable_now,r_=Qt.unstable_getCurrentPriorityLevel,np=Qt.unstable_ImmediatePriority,pg=Qt.unstable_UserBlockingPriority,tu=Qt.unstable_NormalPriority,n_=Qt.unstable_LowPriority,hg=Qt.unstable_IdlePriority,xu=null,Br=null;function i_(e){if(Br&&typeof Br.onCommitFiberRoot=="function")try{Br.onCommitFiberRoot(xu,e,void 0,(e.current.flags&128)===128)}catch(t){}}var Cr=Math.clz32?Math.clz32:a_,o_=Math.log,s_=Math.LN2;function a_(e){return e>>>=0,e===0?32:31-(o_(e)/s_|0)|0}var bl=64,kl=4194304;function Ps(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function ru(e,t){var r=e.pendingLanes;if(r===0)return 0;var n=0,i=e.suspendedLanes,o=e.pingedLanes,s=r&268435455;if(s!==0){var a=s&~i;a!==0?n=Ps(a):(o&=s,o!==0&&(n=Ps(o)))}else s=r&~i,s!==0?n=Ps(s):o!==0&&(n=Ps(o));if(n===0)return 0;if(t!==0&&t!==n&&(t&i)===0&&(i=n&-n,o=t&-t,i>=o||i===16&&(o&4194240)!==0))return t;if((n&4)!==0&&(n|=r&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=n;0<t;)r=31-Cr(t),i=1<<r,n|=e[r],t&=~i;return n}function l_(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function u_(e,t){for(var r=e.suspendedLanes,n=e.pingedLanes,i=e.expirationTimes,o=e.pendingLanes;0<o;){var s=31-Cr(o),a=1<<s,l=i[s];l===-1?((a&r)===0||(a&n)!==0)&&(i[s]=l_(a,t)):l<=t&&(e.expiredLanes|=a),o&=~a}}function Sd(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function mg(){var e=bl;return bl<<=1,(bl&4194240)===0&&(bl=64),e}function Hf(e){for(var t=[],r=0;31>r;r++)t.push(e);return t}function ia(e,t,r){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Cr(t),e[t]=r}function c_(e,t){var r=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var n=e.eventTimes;for(e=e.expirationTimes;0<r;){var i=31-Cr(r),o=1<<i;t[i]=0,n[i]=-1,e[i]=-1,r&=~o}}function ip(e,t){var r=e.entangledLanes|=t;for(e=e.entanglements;r;){var n=31-Cr(r),i=1<<n;i&t|e[n]&t&&(e[n]|=t),r&=~i}}var Te=0;function yg(e){return e&=-e,1<e?4<e?(e&268435455)!==0?16:536870912:4:1}var gg,op,vg,wg,Sg,Ed=!1,Il=[],On=null,An=null,Nn=null,$s=new Map,Ws=new Map,kn=[],f_="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function Y0(e,t){switch(e){case"focusin":case"focusout":On=null;break;case"dragenter":case"dragleave":An=null;break;case"mouseover":case"mouseout":Nn=null;break;case"pointerover":case"pointerout":$s.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Ws.delete(t.pointerId)}}function Es(e,t,r,n,i,o){return e===null||e.nativeEvent!==o?(e={blockedOn:t,domEventName:r,eventSystemFlags:n,nativeEvent:o,targetContainers:[i]},t!==null&&(t=sa(t),t!==null&&op(t)),e):(e.eventSystemFlags|=n,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function d_(e,t,r,n,i){switch(t){case"focusin":return On=Es(On,e,t,r,n,i),!0;case"dragenter":return An=Es(An,e,t,r,n,i),!0;case"mouseover":return Nn=Es(Nn,e,t,r,n,i),!0;case"pointerover":var o=i.pointerId;return $s.set(o,Es($s.get(o)||null,e,t,r,n,i)),!0;case"gotpointercapture":return o=i.pointerId,Ws.set(o,Es(Ws.get(o)||null,e,t,r,n,i)),!0}return!1}function Eg(e){var t=pi(e.target);if(t!==null){var r=Ti(t);if(r!==null){if(t=r.tag,t===13){if(t=ug(r),t!==null){e.blockedOn=t,Sg(e.priority,function(){vg(r)});return}}else if(t===3&&r.stateNode.current.memoizedState.isDehydrated){e.blockedOn=r.tag===3?r.stateNode.containerInfo:null;return}}}e.blockedOn=null}function jl(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var r=xd(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(r===null){r=e.nativeEvent;var n=new r.constructor(r.type,r);yd=n,r.target.dispatchEvent(n),yd=null}else return t=sa(r),t!==null&&op(t),e.blockedOn=r,!1;t.shift()}return!0}function X0(e,t,r){jl(e)&&r.delete(t)}function p_(){Ed=!1,On!==null&&jl(On)&&(On=null),An!==null&&jl(An)&&(An=null),Nn!==null&&jl(Nn)&&(Nn=null),$s.forEach(X0),Ws.forEach(X0)}function xs(e,t){e.blockedOn===t&&(e.blockedOn=null,Ed||(Ed=!0,Qt.unstable_scheduleCallback(Qt.unstable_NormalPriority,p_)))}function qs(e){function t(i){return xs(i,e)}if(0<Il.length){xs(Il[0],e);for(var r=1;r<Il.length;r++){var n=Il[r];n.blockedOn===e&&(n.blockedOn=null)}}for(On!==null&&xs(On,e),An!==null&&xs(An,e),Nn!==null&&xs(Nn,e),$s.forEach(t),Ws.forEach(t),r=0;r<kn.length;r++)n=kn[r],n.blockedOn===e&&(n.blockedOn=null);for(;0<kn.length&&(r=kn[0],r.blockedOn===null);)Eg(r),r.blockedOn===null&&kn.shift()}var co=ln.ReactCurrentBatchConfig,nu=!0;function h_(e,t,r,n){var i=Te,o=co.transition;co.transition=null;try{Te=1,sp(e,t,r,n)}finally{Te=i,co.transition=o}}function m_(e,t,r,n){var i=Te,o=co.transition;co.transition=null;try{Te=4,sp(e,t,r,n)}finally{Te=i,co.transition=o}}function sp(e,t,r,n){if(nu){var i=xd(e,t,r,n);if(i===null)Gf(e,t,n,iu,r),Y0(e,n);else if(d_(i,e,t,r,n))n.stopPropagation();else if(Y0(e,n),t&4&&-1<f_.indexOf(e)){for(;i!==null;){var o=sa(i);if(o!==null&&gg(o),o=xd(e,t,r,n),o===null&&Gf(e,t,n,iu,r),o===i)break;i=o}i!==null&&n.stopPropagation()}else Gf(e,t,n,null,r)}}var iu=null;function xd(e,t,r,n){if(iu=null,e=rp(n),e=pi(e),e!==null)if(t=Ti(e),t===null)e=null;else if(r=t.tag,r===13){if(e=ug(t),e!==null)return e;e=null}else if(r===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return iu=e,null}function xg(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(r_()){case np:return 1;case pg:return 4;case tu:case n_:return 16;case hg:return 536870912;default:return 16}default:return 16}}var Mn=null,ap=null,Vl=null;function _g(){if(Vl)return Vl;var e,t=ap,r=t.length,n,i="value"in Mn?Mn.value:Mn.textContent,o=i.length;for(e=0;e<r&&t[e]===i[e];e++);var s=r-e;for(n=1;n<=s&&t[r-n]===i[o-n];n++);return Vl=i.slice(e,1<n?1-n:void 0)}function $l(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function Ml(){return!0}function Q0(){return!1}function Jt(e){function t(r,n,i,o,s){this._reactName=r,this._targetInst=i,this.type=n,this.nativeEvent=o,this.target=s,this.currentTarget=null;for(var a in e)e.hasOwnProperty(a)&&(r=e[a],this[a]=r?r(o):o[a]);return this.isDefaultPrevented=(o.defaultPrevented!=null?o.defaultPrevented:o.returnValue===!1)?Ml:Q0,this.isPropagationStopped=Q0,this}return We(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var r=this.nativeEvent;r&&(r.preventDefault?r.preventDefault():typeof r.returnValue!="unknown"&&(r.returnValue=!1),this.isDefaultPrevented=Ml)},stopPropagation:function(){var r=this.nativeEvent;r&&(r.stopPropagation?r.stopPropagation():typeof r.cancelBubble!="unknown"&&(r.cancelBubble=!0),this.isPropagationStopped=Ml)},persist:function(){},isPersistent:Ml}),t}var Eo={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},lp=Jt(Eo),oa=We({},Eo,{view:0,detail:0}),y_=Jt(oa),zf,jf,_s,_u=We({},oa,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:up,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==_s&&(_s&&e.type==="mousemove"?(zf=e.screenX-_s.screenX,jf=e.screenY-_s.screenY):jf=zf=0,_s=e),zf)},movementY:function(e){return"movementY"in e?e.movementY:jf}}),J0=Jt(_u),g_=We({},_u,{dataTransfer:0}),v_=Jt(g_),w_=We({},oa,{relatedTarget:0}),Vf=Jt(w_),S_=We({},Eo,{animationName:0,elapsedTime:0,pseudoElement:0}),E_=Jt(S_),x_=We({},Eo,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),__=Jt(x_),T_=We({},Eo,{data:0}),K0=Jt(T_),C_={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},b_={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},k_={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function I_(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=k_[e])?!!t[e]:!1}function up(){return I_}var M_=We({},oa,{key:function(e){if(e.key){var t=C_[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=$l(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?b_[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:up,charCode:function(e){return e.type==="keypress"?$l(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?$l(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),P_=Jt(M_),O_=We({},_u,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),ey=Jt(O_),A_=We({},oa,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:up}),N_=Jt(A_),F_=We({},Eo,{propertyName:0,elapsedTime:0,pseudoElement:0}),R_=Jt(F_),L_=We({},_u,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),D_=Jt(L_),B_=[9,13,27,32],cp=nn&&"CompositionEvent"in window,Fs=null;nn&&"documentMode"in document&&(Fs=document.documentMode);var U_=nn&&"TextEvent"in window&&!Fs,Tg=nn&&(!cp||Fs&&8<Fs&&11>=Fs),ty=String.fromCharCode(32),ry=!1;function Cg(e,t){switch(e){case"keyup":return B_.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function bg(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Qi=!1;function H_(e,t){switch(e){case"compositionend":return bg(t);case"keypress":return t.which!==32?null:(ry=!0,ty);case"textInput":return e=t.data,e===ty&&ry?null:e;default:return null}}function z_(e,t){if(Qi)return e==="compositionend"||!cp&&Cg(e,t)?(e=_g(),Vl=ap=Mn=null,Qi=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Tg&&t.locale!=="ko"?null:t.data;default:return null}}var j_={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function ny(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!j_[e.type]:t==="textarea"}function kg(e,t,r,n){ig(n),t=ou(t,"onChange"),0<t.length&&(r=new lp("onChange","change",null,r,n),e.push({event:r,listeners:t}))}var Rs=null,Gs=null;function V_(e){Bg(e,0)}function Tu(e){var t=eo(e);if(Qy(t))return e}function $_(e,t){if(e==="change")return t}var Ig=!1;nn&&(nn?(Ol="oninput"in document,Ol||($f=document.createElement("div"),$f.setAttribute("oninput","return;"),Ol=typeof $f.oninput=="function"),Pl=Ol):Pl=!1,Ig=Pl&&(!document.documentMode||9<document.documentMode));var Pl,Ol,$f;function iy(){Rs&&(Rs.detachEvent("onpropertychange",Mg),Gs=Rs=null)}function Mg(e){if(e.propertyName==="value"&&Tu(Gs)){var t=[];kg(t,Gs,e,rp(e)),lg(V_,t)}}function W_(e,t,r){e==="focusin"?(iy(),Rs=t,Gs=r,Rs.attachEvent("onpropertychange",Mg)):e==="focusout"&&iy()}function q_(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Tu(Gs)}function G_(e,t){if(e==="click")return Tu(t)}function Z_(e,t){if(e==="input"||e==="change")return Tu(t)}function Y_(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var kr=typeof Object.is=="function"?Object.is:Y_;function Zs(e,t){if(kr(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(n=0;n<r.length;n++){var i=r[n];if(!id.call(t,i)||!kr(e[i],t[i]))return!1}return!0}function oy(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function sy(e,t){var r=oy(e);e=0;for(var n;r;){if(r.nodeType===3){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=oy(r)}}function Pg(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Pg(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Og(){for(var e=window,t=Jl();t instanceof e.HTMLIFrameElement;){try{var r=typeof t.contentWindow.location.href=="string"}catch(n){r=!1}if(r)e=t.contentWindow;else break;t=Jl(e.document)}return t}function fp(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function X_(e){var t=Og(),r=e.focusedElem,n=e.selectionRange;if(t!==r&&r&&r.ownerDocument&&Pg(r.ownerDocument.documentElement,r)){if(n!==null&&fp(r)){if(t=n.start,e=n.end,e===void 0&&(e=t),"selectionStart"in r)r.selectionStart=t,r.selectionEnd=Math.min(e,r.value.length);else if(e=(t=r.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var i=r.textContent.length,o=Math.min(n.start,i);n=n.end===void 0?o:Math.min(n.end,i),!e.extend&&o>n&&(i=n,n=o,o=i),i=sy(r,o);var s=sy(r,n);i&&s&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==s.node||e.focusOffset!==s.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),o>n?(e.addRange(t),e.extend(s.node,s.offset)):(t.setEnd(s.node,s.offset),e.addRange(t)))}}for(t=[],e=r;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof r.focus=="function"&&r.focus(),r=0;r<t.length;r++)e=t[r],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var Q_=nn&&"documentMode"in document&&11>=document.documentMode,Ji=null,_d=null,Ls=null,Td=!1;function ay(e,t,r){var n=r.window===r?r.document:r.nodeType===9?r:r.ownerDocument;Td||Ji==null||Ji!==Jl(n)||(n=Ji,"selectionStart"in n&&fp(n)?n={start:n.selectionStart,end:n.selectionEnd}:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection(),n={anchorNode:n.anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset}),Ls&&Zs(Ls,n)||(Ls=n,n=ou(_d,"onSelect"),0<n.length&&(t=new lp("onSelect","select",null,t,r),e.push({event:t,listeners:n}),t.target=Ji)))}function Al(e,t){var r={};return r[e.toLowerCase()]=t.toLowerCase(),r["Webkit"+e]="webkit"+t,r["Moz"+e]="moz"+t,r}var Ki={animationend:Al("Animation","AnimationEnd"),animationiteration:Al("Animation","AnimationIteration"),animationstart:Al("Animation","AnimationStart"),transitionend:Al("Transition","TransitionEnd")},Wf={},Ag={};nn&&(Ag=document.createElement("div").style,"AnimationEvent"in window||(delete Ki.animationend.animation,delete Ki.animationiteration.animation,delete Ki.animationstart.animation),"TransitionEvent"in window||delete Ki.transitionend.transition);function Cu(e){if(Wf[e])return Wf[e];if(!Ki[e])return e;var t=Ki[e],r;for(r in t)if(t.hasOwnProperty(r)&&r in Ag)return Wf[e]=t[r];return e}var Ng=Cu("animationend"),Fg=Cu("animationiteration"),Rg=Cu("animationstart"),Lg=Cu("transitionend"),Dg=new Map,ly="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function zn(e,t){Dg.set(e,t),_i(t,[e])}for(Nl=0;Nl<ly.length;Nl++)Fl=ly[Nl],uy=Fl.toLowerCase(),cy=Fl[0].toUpperCase()+Fl.slice(1),zn(uy,"on"+cy);var Fl,uy,cy,Nl;zn(Ng,"onAnimationEnd");zn(Fg,"onAnimationIteration");zn(Rg,"onAnimationStart");zn("dblclick","onDoubleClick");zn("focusin","onFocus");zn("focusout","onBlur");zn(Lg,"onTransitionEnd");ho("onMouseEnter",["mouseout","mouseover"]);ho("onMouseLeave",["mouseout","mouseover"]);ho("onPointerEnter",["pointerout","pointerover"]);ho("onPointerLeave",["pointerout","pointerover"]);_i("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));_i("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));_i("onBeforeInput",["compositionend","keypress","textInput","paste"]);_i("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));_i("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));_i("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Os="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),J_=new Set("cancel close invalid load scroll toggle".split(" ").concat(Os));function fy(e,t,r){var n=e.type||"unknown-event";e.currentTarget=r,Jx(n,t,void 0,e),e.currentTarget=null}function Bg(e,t){t=(t&4)!==0;for(var r=0;r<e.length;r++){var n=e[r],i=n.event;n=n.listeners;e:{var o=void 0;if(t)for(var s=n.length-1;0<=s;s--){var a=n[s],l=a.instance,u=a.currentTarget;if(a=a.listener,l!==o&&i.isPropagationStopped())break e;fy(i,a,u),o=l}else for(s=0;s<n.length;s++){if(a=n[s],l=a.instance,u=a.currentTarget,a=a.listener,l!==o&&i.isPropagationStopped())break e;fy(i,a,u),o=l}}}if(eu)throw e=wd,eu=!1,wd=null,e}function Fe(e,t){var r=t[Md];r===void 0&&(r=t[Md]=new Set);var n=e+"__bubble";r.has(n)||(Ug(t,e,2,!1),r.add(n))}function qf(e,t,r){var n=0;t&&(n|=4),Ug(r,e,n,t)}var Rl="_reactListening"+Math.random().toString(36).slice(2);function Ys(e){if(!e[Rl]){e[Rl]=!0,qy.forEach(function(r){r!=="selectionchange"&&(J_.has(r)||qf(r,!1,e),qf(r,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Rl]||(t[Rl]=!0,qf("selectionchange",!1,t))}}function Ug(e,t,r,n){switch(xg(t)){case 1:var i=h_;break;case 4:i=m_;break;default:i=sp}r=i.bind(null,t,r,e),i=void 0,!vd||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(i=!0),n?i!==void 0?e.addEventListener(t,r,{capture:!0,passive:i}):e.addEventListener(t,r,!0):i!==void 0?e.addEventListener(t,r,{passive:i}):e.addEventListener(t,r,!1)}function Gf(e,t,r,n,i){var o=n;if((t&1)===0&&(t&2)===0&&n!==null)e:for(;;){if(n===null)return;var s=n.tag;if(s===3||s===4){var a=n.stateNode.containerInfo;if(a===i||a.nodeType===8&&a.parentNode===i)break;if(s===4)for(s=n.return;s!==null;){var l=s.tag;if((l===3||l===4)&&(l=s.stateNode.containerInfo,l===i||l.nodeType===8&&l.parentNode===i))return;s=s.return}for(;a!==null;){if(s=pi(a),s===null)return;if(l=s.tag,l===5||l===6){n=o=s;continue e}a=a.parentNode}}n=n.return}lg(function(){var u=o,c=rp(r),f=[];e:{var h=Dg.get(e);if(h!==void 0){var d=lp,g=e;switch(e){case"keypress":if($l(r)===0)break e;case"keydown":case"keyup":d=P_;break;case"focusin":g="focus",d=Vf;break;case"focusout":g="blur",d=Vf;break;case"beforeblur":case"afterblur":d=Vf;break;case"click":if(r.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":d=J0;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":d=v_;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":d=N_;break;case Ng:case Fg:case Rg:d=E_;break;case Lg:d=R_;break;case"scroll":d=y_;break;case"wheel":d=D_;break;case"copy":case"cut":case"paste":d=__;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":d=ey}var y=(t&4)!==0,x=!y&&e==="scroll",m=y?h!==null?h+"Capture":null:h;y=[];for(var p=u,v;p!==null;){v=p;var w=v.stateNode;if(v.tag===5&&w!==null&&(v=w,m!==null&&(w=Vs(p,m),w!=null&&y.push(Xs(p,w,v)))),x)break;p=p.return}0<y.length&&(h=new d(h,g,null,r,c),f.push({event:h,listeners:y}))}}if((t&7)===0){e:{if(h=e==="mouseover"||e==="pointerover",d=e==="mouseout"||e==="pointerout",h&&r!==yd&&(g=r.relatedTarget||r.fromElement)&&(pi(g)||g[on]))break e;if((d||h)&&(h=c.window===c?c:(h=c.ownerDocument)?h.defaultView||h.parentWindow:window,d?(g=r.relatedTarget||r.toElement,d=u,g=g?pi(g):null,g!==null&&(x=Ti(g),g!==x||g.tag!==5&&g.tag!==6)&&(g=null)):(d=null,g=u),d!==g)){if(y=J0,w="onMouseLeave",m="onMouseEnter",p="mouse",(e==="pointerout"||e==="pointerover")&&(y=ey,w="onPointerLeave",m="onPointerEnter",p="pointer"),x=d==null?h:eo(d),v=g==null?h:eo(g),h=new y(w,p+"leave",d,r,c),h.target=x,h.relatedTarget=v,w=null,pi(c)===u&&(y=new y(m,p+"enter",g,r,c),y.target=v,y.relatedTarget=x,w=y),x=w,d&&g)t:{for(y=d,m=g,p=0,v=y;v;v=Zi(v))p++;for(v=0,w=m;w;w=Zi(w))v++;for(;0<p-v;)y=Zi(y),p--;for(;0<v-p;)m=Zi(m),v--;for(;p--;){if(y===m||m!==null&&y===m.alternate)break t;y=Zi(y),m=Zi(m)}y=null}else y=null;d!==null&&dy(f,h,d,y,!1),g!==null&&x!==null&&dy(f,x,g,y,!0)}}e:{if(h=u?eo(u):window,d=h.nodeName&&h.nodeName.toLowerCase(),d==="select"||d==="input"&&h.type==="file")var T=$_;else if(ny(h))if(Ig)T=Z_;else{T=q_;var k=W_}else(d=h.nodeName)&&d.toLowerCase()==="input"&&(h.type==="checkbox"||h.type==="radio")&&(T=G_);if(T&&(T=T(e,u))){kg(f,T,r,c);break e}k&&k(e,h,u),e==="focusout"&&(k=h._wrapperState)&&k.controlled&&h.type==="number"&&fd(h,"number",h.value)}switch(k=u?eo(u):window,e){case"focusin":(ny(k)||k.contentEditable==="true")&&(Ji=k,_d=u,Ls=null);break;case"focusout":Ls=_d=Ji=null;break;case"mousedown":Td=!0;break;case"contextmenu":case"mouseup":case"dragend":Td=!1,ay(f,r,c);break;case"selectionchange":if(Q_)break;case"keydown":case"keyup":ay(f,r,c)}var I;if(cp)e:{switch(e){case"compositionstart":var P="onCompositionStart";break e;case"compositionend":P="onCompositionEnd";break e;case"compositionupdate":P="onCompositionUpdate";break e}P=void 0}else Qi?Cg(e,r)&&(P="onCompositionEnd"):e==="keydown"&&r.keyCode===229&&(P="onCompositionStart");P&&(Tg&&r.locale!=="ko"&&(Qi||P!=="onCompositionStart"?P==="onCompositionEnd"&&Qi&&(I=_g()):(Mn=c,ap="value"in Mn?Mn.value:Mn.textContent,Qi=!0)),k=ou(u,P),0<k.length&&(P=new K0(P,e,null,r,c),f.push({event:P,listeners:k}),I?P.data=I:(I=bg(r),I!==null&&(P.data=I)))),(I=U_?H_(e,r):z_(e,r))&&(u=ou(u,"onBeforeInput"),0<u.length&&(c=new K0("onBeforeInput","beforeinput",null,r,c),f.push({event:c,listeners:u}),c.data=I))}Bg(f,t)})}function Xs(e,t,r){return{instance:e,listener:t,currentTarget:r}}function ou(e,t){for(var r=t+"Capture",n=[];e!==null;){var i=e,o=i.stateNode;i.tag===5&&o!==null&&(i=o,o=Vs(e,r),o!=null&&n.unshift(Xs(e,o,i)),o=Vs(e,t),o!=null&&n.push(Xs(e,o,i))),e=e.return}return n}function Zi(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function dy(e,t,r,n,i){for(var o=t._reactName,s=[];r!==null&&r!==n;){var a=r,l=a.alternate,u=a.stateNode;if(l!==null&&l===n)break;a.tag===5&&u!==null&&(a=u,i?(l=Vs(r,o),l!=null&&s.unshift(Xs(r,l,a))):i||(l=Vs(r,o),l!=null&&s.push(Xs(r,l,a)))),r=r.return}s.length!==0&&e.push({event:t,listeners:s})}var K_=/\r\n?/g,eT=/\u0000|\uFFFD/g;function py(e){return(typeof e=="string"?e:""+e).replace(K_,`
`).replace(eT,"")}function Ll(e,t,r){if(t=py(t),py(e)!==t&&r)throw Error(A(425))}function su(){}var Cd=null,bd=null;function kd(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var Id=typeof setTimeout=="function"?setTimeout:void 0,tT=typeof clearTimeout=="function"?clearTimeout:void 0,hy=typeof Promise=="function"?Promise:void 0,rT=typeof queueMicrotask=="function"?queueMicrotask:typeof hy!="undefined"?function(e){return hy.resolve(null).then(e).catch(nT)}:Id;function nT(e){setTimeout(function(){throw e})}function Zf(e,t){var r=t,n=0;do{var i=r.nextSibling;if(e.removeChild(r),i&&i.nodeType===8)if(r=i.data,r==="/$"){if(n===0){e.removeChild(i),qs(t);return}n--}else r!=="$"&&r!=="$?"&&r!=="$!"||n++;r=i}while(r);qs(t)}function Fn(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?")break;if(t==="/$")return null}}return e}function my(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var r=e.data;if(r==="$"||r==="$!"||r==="$?"){if(t===0)return e;t--}else r==="/$"&&t++}e=e.previousSibling}return null}var xo=Math.random().toString(36).slice(2),Dr="__reactFiber$"+xo,Qs="__reactProps$"+xo,on="__reactContainer$"+xo,Md="__reactEvents$"+xo,iT="__reactListeners$"+xo,oT="__reactHandles$"+xo;function pi(e){var t=e[Dr];if(t)return t;for(var r=e.parentNode;r;){if(t=r[on]||r[Dr]){if(r=t.alternate,t.child!==null||r!==null&&r.child!==null)for(e=my(e);e!==null;){if(r=e[Dr])return r;e=my(e)}return t}e=r,r=e.parentNode}return null}function sa(e){return e=e[Dr]||e[on],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function eo(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(A(33))}function bu(e){return e[Qs]||null}var Pd=[],to=-1;function jn(e){return{current:e}}function Re(e){0>to||(e.current=Pd[to],Pd[to]=null,to--)}function Ae(e,t){to++,Pd[to]=e.current,e.current=t}var Hn={},At=jn(Hn),Ht=jn(!1),vi=Hn;function mo(e,t){var r=e.type.contextTypes;if(!r)return Hn;var n=e.stateNode;if(n&&n.__reactInternalMemoizedUnmaskedChildContext===t)return n.__reactInternalMemoizedMaskedChildContext;var i={},o;for(o in r)i[o]=t[o];return n&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function zt(e){return e=e.childContextTypes,e!=null}function au(){Re(Ht),Re(At)}function yy(e,t,r){if(At.current!==Hn)throw Error(A(168));Ae(At,t),Ae(Ht,r)}function Hg(e,t,r){var n=e.stateNode;if(t=t.childContextTypes,typeof n.getChildContext!="function")return r;n=n.getChildContext();for(var i in n)if(!(i in t))throw Error(A(108,Wx(e)||"Unknown",i));return We({},r,n)}function lu(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Hn,vi=At.current,Ae(At,e),Ae(Ht,Ht.current),!0}function gy(e,t,r){var n=e.stateNode;if(!n)throw Error(A(169));r?(e=Hg(e,t,vi),n.__reactInternalMemoizedMergedChildContext=e,Re(Ht),Re(At),Ae(At,e)):Re(Ht),Ae(Ht,r)}var Kr=null,ku=!1,Yf=!1;function zg(e){Kr===null?Kr=[e]:Kr.push(e)}function sT(e){ku=!0,zg(e)}function Vn(){if(!Yf&&Kr!==null){Yf=!0;var e=0,t=Te;try{var r=Kr;for(Te=1;e<r.length;e++){var n=r[e];do n=n(!0);while(n!==null)}Kr=null,ku=!1}catch(i){throw Kr!==null&&(Kr=Kr.slice(e+1)),dg(np,Vn),i}finally{Te=t,Yf=!1}}return null}var ro=[],no=0,uu=null,cu=0,or=[],sr=0,wi=null,en=1,tn="";function fi(e,t){ro[no++]=cu,ro[no++]=uu,uu=e,cu=t}function jg(e,t,r){or[sr++]=en,or[sr++]=tn,or[sr++]=wi,wi=e;var n=en;e=tn;var i=32-Cr(n)-1;n&=~(1<<i),r+=1;var o=32-Cr(t)+i;if(30<o){var s=i-i%5;o=(n&(1<<s)-1).toString(32),n>>=s,i-=s,en=1<<32-Cr(t)+i|r<<i|n,tn=o+e}else en=1<<o|r<<i|n,tn=e}function dp(e){e.return!==null&&(fi(e,1),jg(e,1,0))}function pp(e){for(;e===uu;)uu=ro[--no],ro[no]=null,cu=ro[--no],ro[no]=null;for(;e===wi;)wi=or[--sr],or[sr]=null,tn=or[--sr],or[sr]=null,en=or[--sr],or[sr]=null}var Xt=null,Yt=null,De=!1,Tr=null;function Vg(e,t){var r=ar(5,null,null,0);r.elementType="DELETED",r.stateNode=t,r.return=e,t=e.deletions,t===null?(e.deletions=[r],e.flags|=16):t.push(r)}function vy(e,t){switch(e.tag){case 5:var r=e.type;return t=t.nodeType!==1||r.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,Xt=e,Yt=Fn(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,Xt=e,Yt=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(r=wi!==null?{id:en,overflow:tn}:null,e.memoizedState={dehydrated:t,treeContext:r,retryLane:1073741824},r=ar(18,null,null,0),r.stateNode=t,r.return=e,e.child=r,Xt=e,Yt=null,!0):!1;default:return!1}}function Od(e){return(e.mode&1)!==0&&(e.flags&128)===0}function Ad(e){if(De){var t=Yt;if(t){var r=t;if(!vy(e,t)){if(Od(e))throw Error(A(418));t=Fn(r.nextSibling);var n=Xt;t&&vy(e,t)?Vg(n,r):(e.flags=e.flags&-4097|2,De=!1,Xt=e)}}else{if(Od(e))throw Error(A(418));e.flags=e.flags&-4097|2,De=!1,Xt=e}}}function wy(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;Xt=e}function Dl(e){if(e!==Xt)return!1;if(!De)return wy(e),De=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!kd(e.type,e.memoizedProps)),t&&(t=Yt)){if(Od(e))throw $g(),Error(A(418));for(;t;)Vg(e,t),t=Fn(t.nextSibling)}if(wy(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(A(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var r=e.data;if(r==="/$"){if(t===0){Yt=Fn(e.nextSibling);break e}t--}else r!=="$"&&r!=="$!"&&r!=="$?"||t++}e=e.nextSibling}Yt=null}}else Yt=Xt?Fn(e.stateNode.nextSibling):null;return!0}function $g(){for(var e=Yt;e;)e=Fn(e.nextSibling)}function yo(){Yt=Xt=null,De=!1}function hp(e){Tr===null?Tr=[e]:Tr.push(e)}var aT=ln.ReactCurrentBatchConfig;function xr(e,t){if(e&&e.defaultProps){t=We({},t),e=e.defaultProps;for(var r in e)t[r]===void 0&&(t[r]=e[r]);return t}return t}var fu=jn(null),du=null,io=null,mp=null;function yp(){mp=io=du=null}function gp(e){var t=fu.current;Re(fu),e._currentValue=t}function Nd(e,t,r){for(;e!==null;){var n=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,n!==null&&(n.childLanes|=t)):n!==null&&(n.childLanes&t)!==t&&(n.childLanes|=t),e===r)break;e=e.return}}function fo(e,t){du=e,mp=io=null,e=e.dependencies,e!==null&&e.firstContext!==null&&((e.lanes&t)!==0&&(Ut=!0),e.firstContext=null)}function ur(e){var t=e._currentValue;if(mp!==e)if(e={context:e,memoizedValue:t,next:null},io===null){if(du===null)throw Error(A(308));io=e,du.dependencies={lanes:0,firstContext:e}}else io=io.next=e;return t}var hi=null;function vp(e){hi===null?hi=[e]:hi.push(e)}function Wg(e,t,r,n){var i=t.interleaved;return i===null?(r.next=r,vp(t)):(r.next=i.next,i.next=r),t.interleaved=r,sn(e,n)}function sn(e,t){e.lanes|=t;var r=e.alternate;for(r!==null&&(r.lanes|=t),r=e,e=e.return;e!==null;)e.childLanes|=t,r=e.alternate,r!==null&&(r.childLanes|=t),r=e,e=e.return;return r.tag===3?r.stateNode:null}var bn=!1;function wp(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function qg(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function rn(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Rn(e,t,r){var n=e.updateQueue;if(n===null)return null;if(n=n.shared,(ye&2)!==0){var i=n.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),n.pending=t,sn(e,r)}return i=n.interleaved,i===null?(t.next=t,vp(n)):(t.next=i.next,i.next=t),n.interleaved=t,sn(e,r)}function Wl(e,t,r){if(t=t.updateQueue,t!==null&&(t=t.shared,(r&4194240)!==0)){var n=t.lanes;n&=e.pendingLanes,r|=n,t.lanes=r,ip(e,r)}}function Sy(e,t){var r=e.updateQueue,n=e.alternate;if(n!==null&&(n=n.updateQueue,r===n)){var i=null,o=null;if(r=r.firstBaseUpdate,r!==null){do{var s={eventTime:r.eventTime,lane:r.lane,tag:r.tag,payload:r.payload,callback:r.callback,next:null};o===null?i=o=s:o=o.next=s,r=r.next}while(r!==null);o===null?i=o=t:o=o.next=t}else i=o=t;r={baseState:n.baseState,firstBaseUpdate:i,lastBaseUpdate:o,shared:n.shared,effects:n.effects},e.updateQueue=r;return}e=r.lastBaseUpdate,e===null?r.firstBaseUpdate=t:e.next=t,r.lastBaseUpdate=t}function pu(e,t,r,n){var i=e.updateQueue;bn=!1;var o=i.firstBaseUpdate,s=i.lastBaseUpdate,a=i.shared.pending;if(a!==null){i.shared.pending=null;var l=a,u=l.next;l.next=null,s===null?o=u:s.next=u,s=l;var c=e.alternate;c!==null&&(c=c.updateQueue,a=c.lastBaseUpdate,a!==s&&(a===null?c.firstBaseUpdate=u:a.next=u,c.lastBaseUpdate=l))}if(o!==null){var f=i.baseState;s=0,c=u=l=null,a=o;do{var h=a.lane,d=a.eventTime;if((n&h)===h){c!==null&&(c=c.next={eventTime:d,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:{var g=e,y=a;switch(h=t,d=r,y.tag){case 1:if(g=y.payload,typeof g=="function"){f=g.call(d,f,h);break e}f=g;break e;case 3:g.flags=g.flags&-65537|128;case 0:if(g=y.payload,h=typeof g=="function"?g.call(d,f,h):g,h==null)break e;f=We({},f,h);break e;case 2:bn=!0}}a.callback!==null&&a.lane!==0&&(e.flags|=64,h=i.effects,h===null?i.effects=[a]:h.push(a))}else d={eventTime:d,lane:h,tag:a.tag,payload:a.payload,callback:a.callback,next:null},c===null?(u=c=d,l=f):c=c.next=d,s|=h;if(a=a.next,a===null){if(a=i.shared.pending,a===null)break;h=a,a=h.next,h.next=null,i.lastBaseUpdate=h,i.shared.pending=null}}while(1);if(c===null&&(l=f),i.baseState=l,i.firstBaseUpdate=u,i.lastBaseUpdate=c,t=i.shared.interleaved,t!==null){i=t;do s|=i.lane,i=i.next;while(i!==t)}else o===null&&(i.shared.lanes=0);Ei|=s,e.lanes=s,e.memoizedState=f}}function Ey(e,t,r){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var n=e[t],i=n.callback;if(i!==null){if(n.callback=null,n=r,typeof i!="function")throw Error(A(191,i));i.call(n)}}}var Gg=new Wy.Component().refs;function Fd(e,t,r,n){t=e.memoizedState,r=r(n,t),r=r==null?t:We({},t,r),e.memoizedState=r,e.lanes===0&&(e.updateQueue.baseState=r)}var Iu={isMounted:function(e){return(e=e._reactInternals)?Ti(e)===e:!1},enqueueSetState:function(e,t,r){e=e._reactInternals;var n=Rt(),i=Dn(e),o=rn(n,i);o.payload=t,r!=null&&(o.callback=r),t=Rn(e,o,i),t!==null&&(br(t,e,i,n),Wl(t,e,i))},enqueueReplaceState:function(e,t,r){e=e._reactInternals;var n=Rt(),i=Dn(e),o=rn(n,i);o.tag=1,o.payload=t,r!=null&&(o.callback=r),t=Rn(e,o,i),t!==null&&(br(t,e,i,n),Wl(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var r=Rt(),n=Dn(e),i=rn(r,n);i.tag=2,t!=null&&(i.callback=t),t=Rn(e,i,n),t!==null&&(br(t,e,n,r),Wl(t,e,n))}};function xy(e,t,r,n,i,o,s){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(n,o,s):t.prototype&&t.prototype.isPureReactComponent?!Zs(r,n)||!Zs(i,o):!0}function Zg(e,t,r){var n=!1,i=Hn,o=t.contextType;return typeof o=="object"&&o!==null?o=ur(o):(i=zt(t)?vi:At.current,n=t.contextTypes,o=(n=n!=null)?mo(e,i):Hn),t=new t(r,o),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=Iu,e.stateNode=t,t._reactInternals=e,n&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=o),t}function _y(e,t,r,n){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(r,n),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(r,n),t.state!==e&&Iu.enqueueReplaceState(t,t.state,null)}function Rd(e,t,r,n){var i=e.stateNode;i.props=r,i.state=e.memoizedState,i.refs=Gg,wp(e);var o=t.contextType;typeof o=="object"&&o!==null?i.context=ur(o):(o=zt(t)?vi:At.current,i.context=mo(e,o)),i.state=e.memoizedState,o=t.getDerivedStateFromProps,typeof o=="function"&&(Fd(e,t,o,r),i.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof i.getSnapshotBeforeUpdate=="function"||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(t=i.state,typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount(),t!==i.state&&Iu.enqueueReplaceState(i,i.state,null),pu(e,r,i,n),i.state=e.memoizedState),typeof i.componentDidMount=="function"&&(e.flags|=4194308)}function Ts(e,t,r){if(e=r.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(r._owner){if(r=r._owner,r){if(r.tag!==1)throw Error(A(309));var n=r.stateNode}if(!n)throw Error(A(147,e));var i=n,o=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===o?t.ref:(t=function(s){var a=i.refs;a===Gg&&(a=i.refs={}),s===null?delete a[o]:a[o]=s},t._stringRef=o,t)}if(typeof e!="string")throw Error(A(284));if(!r._owner)throw Error(A(290,e))}return e}function Bl(e,t){throw e=Object.prototype.toString.call(t),Error(A(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function Ty(e){var t=e._init;return t(e._payload)}function Yg(e){function t(m,p){if(e){var v=m.deletions;v===null?(m.deletions=[p],m.flags|=16):v.push(p)}}function r(m,p){if(!e)return null;for(;p!==null;)t(m,p),p=p.sibling;return null}function n(m,p){for(m=new Map;p!==null;)p.key!==null?m.set(p.key,p):m.set(p.index,p),p=p.sibling;return m}function i(m,p){return m=Bn(m,p),m.index=0,m.sibling=null,m}function o(m,p,v){return m.index=v,e?(v=m.alternate,v!==null?(v=v.index,v<p?(m.flags|=2,p):v):(m.flags|=2,p)):(m.flags|=1048576,p)}function s(m){return e&&m.alternate===null&&(m.flags|=2),m}function a(m,p,v,w){return p===null||p.tag!==6?(p=rd(v,m.mode,w),p.return=m,p):(p=i(p,v),p.return=m,p)}function l(m,p,v,w){var T=v.type;return T===Xi?c(m,p,v.props.children,w,v.key):p!==null&&(p.elementType===T||typeof T=="object"&&T!==null&&T.$$typeof===Cn&&Ty(T)===p.type)?(w=i(p,v.props),w.ref=Ts(m,p,v),w.return=m,w):(w=Ql(v.type,v.key,v.props,null,m.mode,w),w.ref=Ts(m,p,v),w.return=m,w)}function u(m,p,v,w){return p===null||p.tag!==4||p.stateNode.containerInfo!==v.containerInfo||p.stateNode.implementation!==v.implementation?(p=nd(v,m.mode,w),p.return=m,p):(p=i(p,v.children||[]),p.return=m,p)}function c(m,p,v,w,T){return p===null||p.tag!==7?(p=gi(v,m.mode,w,T),p.return=m,p):(p=i(p,v),p.return=m,p)}function f(m,p,v){if(typeof p=="string"&&p!==""||typeof p=="number")return p=rd(""+p,m.mode,v),p.return=m,p;if(typeof p=="object"&&p!==null){switch(p.$$typeof){case _l:return v=Ql(p.type,p.key,p.props,null,m.mode,v),v.ref=Ts(m,null,p),v.return=m,v;case Yi:return p=nd(p,m.mode,v),p.return=m,p;case Cn:var w=p._init;return f(m,w(p._payload),v)}if(Ms(p)||Ss(p))return p=gi(p,m.mode,v,null),p.return=m,p;Bl(m,p)}return null}function h(m,p,v,w){var T=p!==null?p.key:null;if(typeof v=="string"&&v!==""||typeof v=="number")return T!==null?null:a(m,p,""+v,w);if(typeof v=="object"&&v!==null){switch(v.$$typeof){case _l:return v.key===T?l(m,p,v,w):null;case Yi:return v.key===T?u(m,p,v,w):null;case Cn:return T=v._init,h(m,p,T(v._payload),w)}if(Ms(v)||Ss(v))return T!==null?null:c(m,p,v,w,null);Bl(m,v)}return null}function d(m,p,v,w,T){if(typeof w=="string"&&w!==""||typeof w=="number")return m=m.get(v)||null,a(p,m,""+w,T);if(typeof w=="object"&&w!==null){switch(w.$$typeof){case _l:return m=m.get(w.key===null?v:w.key)||null,l(p,m,w,T);case Yi:return m=m.get(w.key===null?v:w.key)||null,u(p,m,w,T);case Cn:var k=w._init;return d(m,p,v,k(w._payload),T)}if(Ms(w)||Ss(w))return m=m.get(v)||null,c(p,m,w,T,null);Bl(p,w)}return null}function g(m,p,v,w){for(var T=null,k=null,I=p,P=p=0,V=null;I!==null&&P<v.length;P++){I.index>P?(V=I,I=null):V=I.sibling;var j=h(m,I,v[P],w);if(j===null){I===null&&(I=V);break}e&&I&&j.alternate===null&&t(m,I),p=o(j,p,P),k===null?T=j:k.sibling=j,k=j,I=V}if(P===v.length)return r(m,I),De&&fi(m,P),T;if(I===null){for(;P<v.length;P++)I=f(m,v[P],w),I!==null&&(p=o(I,p,P),k===null?T=I:k.sibling=I,k=I);return De&&fi(m,P),T}for(I=n(m,I);P<v.length;P++)V=d(I,m,P,v[P],w),V!==null&&(e&&V.alternate!==null&&I.delete(V.key===null?P:V.key),p=o(V,p,P),k===null?T=V:k.sibling=V,k=V);return e&&I.forEach(function(ve){return t(m,ve)}),De&&fi(m,P),T}function y(m,p,v,w){var T=Ss(v);if(typeof T!="function")throw Error(A(150));if(v=T.call(v),v==null)throw Error(A(151));for(var k=T=null,I=p,P=p=0,V=null,j=v.next();I!==null&&!j.done;P++,j=v.next()){I.index>P?(V=I,I=null):V=I.sibling;var ve=h(m,I,j.value,w);if(ve===null){I===null&&(I=V);break}e&&I&&ve.alternate===null&&t(m,I),p=o(ve,p,P),k===null?T=ve:k.sibling=ve,k=ve,I=V}if(j.done)return r(m,I),De&&fi(m,P),T;if(I===null){for(;!j.done;P++,j=v.next())j=f(m,j.value,w),j!==null&&(p=o(j,p,P),k===null?T=j:k.sibling=j,k=j);return De&&fi(m,P),T}for(I=n(m,I);!j.done;P++,j=v.next())j=d(I,m,P,j.value,w),j!==null&&(e&&j.alternate!==null&&I.delete(j.key===null?P:j.key),p=o(j,p,P),k===null?T=j:k.sibling=j,k=j);return e&&I.forEach(function(we){return t(m,we)}),De&&fi(m,P),T}function x(m,p,v,w){if(typeof v=="object"&&v!==null&&v.type===Xi&&v.key===null&&(v=v.props.children),typeof v=="object"&&v!==null){switch(v.$$typeof){case _l:e:{for(var T=v.key,k=p;k!==null;){if(k.key===T){if(T=v.type,T===Xi){if(k.tag===7){r(m,k.sibling),p=i(k,v.props.children),p.return=m,m=p;break e}}else if(k.elementType===T||typeof T=="object"&&T!==null&&T.$$typeof===Cn&&Ty(T)===k.type){r(m,k.sibling),p=i(k,v.props),p.ref=Ts(m,k,v),p.return=m,m=p;break e}r(m,k);break}else t(m,k);k=k.sibling}v.type===Xi?(p=gi(v.props.children,m.mode,w,v.key),p.return=m,m=p):(w=Ql(v.type,v.key,v.props,null,m.mode,w),w.ref=Ts(m,p,v),w.return=m,m=w)}return s(m);case Yi:e:{for(k=v.key;p!==null;){if(p.key===k)if(p.tag===4&&p.stateNode.containerInfo===v.containerInfo&&p.stateNode.implementation===v.implementation){r(m,p.sibling),p=i(p,v.children||[]),p.return=m,m=p;break e}else{r(m,p);break}else t(m,p);p=p.sibling}p=nd(v,m.mode,w),p.return=m,m=p}return s(m);case Cn:return k=v._init,x(m,p,k(v._payload),w)}if(Ms(v))return g(m,p,v,w);if(Ss(v))return y(m,p,v,w);Bl(m,v)}return typeof v=="string"&&v!==""||typeof v=="number"?(v=""+v,p!==null&&p.tag===6?(r(m,p.sibling),p=i(p,v),p.return=m,m=p):(r(m,p),p=rd(v,m.mode,w),p.return=m,m=p),s(m)):r(m,p)}return x}var go=Yg(!0),Xg=Yg(!1),aa={},Ur=jn(aa),Js=jn(aa),Ks=jn(aa);function mi(e){if(e===aa)throw Error(A(174));return e}function Sp(e,t){switch(Ae(Ks,t),Ae(Js,e),Ae(Ur,aa),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:pd(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=pd(t,e)}Re(Ur),Ae(Ur,t)}function vo(){Re(Ur),Re(Js),Re(Ks)}function Qg(e){mi(Ks.current);var t=mi(Ur.current),r=pd(t,e.type);t!==r&&(Ae(Js,e),Ae(Ur,r))}function Ep(e){Js.current===e&&(Re(Ur),Re(Js))}var Ve=jn(0);function hu(e){for(var t=e;t!==null;){if(t.tag===13){var r=t.memoizedState;if(r!==null&&(r=r.dehydrated,r===null||r.data==="$?"||r.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if((t.flags&128)!==0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Xf=[];function xp(){for(var e=0;e<Xf.length;e++)Xf[e]._workInProgressVersionPrimary=null;Xf.length=0}var ql=ln.ReactCurrentDispatcher,Qf=ln.ReactCurrentBatchConfig,Si=0,$e=null,lt=null,mt=null,mu=!1,Ds=!1,ea=0,lT=0;function Mt(){throw Error(A(321))}function _p(e,t){if(t===null)return!1;for(var r=0;r<t.length&&r<e.length;r++)if(!kr(e[r],t[r]))return!1;return!0}function Tp(e,t,r,n,i,o){if(Si=o,$e=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,ql.current=e===null||e.memoizedState===null?dT:pT,e=r(n,i),Ds){o=0;do{if(Ds=!1,ea=0,25<=o)throw Error(A(301));o+=1,mt=lt=null,t.updateQueue=null,ql.current=hT,e=r(n,i)}while(Ds)}if(ql.current=yu,t=lt!==null&<.next!==null,Si=0,mt=lt=$e=null,mu=!1,t)throw Error(A(300));return e}function Cp(){var e=ea!==0;return ea=0,e}function Lr(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return mt===null?$e.memoizedState=mt=e:mt=mt.next=e,mt}function cr(){if(lt===null){var e=$e.alternate;e=e!==null?e.memoizedState:null}else e=lt.next;var t=mt===null?$e.memoizedState:mt.next;if(t!==null)mt=t,lt=e;else{if(e===null)throw Error(A(310));lt=e,e={memoizedState:lt.memoizedState,baseState:lt.baseState,baseQueue:lt.baseQueue,queue:lt.queue,next:null},mt===null?$e.memoizedState=mt=e:mt=mt.next=e}return mt}function ta(e,t){return typeof t=="function"?t(e):t}function Jf(e){var t=cr(),r=t.queue;if(r===null)throw Error(A(311));r.lastRenderedReducer=e;var n=lt,i=n.baseQueue,o=r.pending;if(o!==null){if(i!==null){var s=i.next;i.next=o.next,o.next=s}n.baseQueue=i=o,r.pending=null}if(i!==null){o=i.next,n=n.baseState;var a=s=null,l=null,u=o;do{var c=u.lane;if((Si&c)===c)l!==null&&(l=l.next={lane:0,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),n=u.hasEagerState?u.eagerState:e(n,u.action);else{var f={lane:c,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null};l===null?(a=l=f,s=n):l=l.next=f,$e.lanes|=c,Ei|=c}u=u.next}while(u!==null&&u!==o);l===null?s=n:l.next=a,kr(n,t.memoizedState)||(Ut=!0),t.memoizedState=n,t.baseState=s,t.baseQueue=l,r.lastRenderedState=n}if(e=r.interleaved,e!==null){i=e;do o=i.lane,$e.lanes|=o,Ei|=o,i=i.next;while(i!==e)}else i===null&&(r.lanes=0);return[t.memoizedState,r.dispatch]}function Kf(e){var t=cr(),r=t.queue;if(r===null)throw Error(A(311));r.lastRenderedReducer=e;var n=r.dispatch,i=r.pending,o=t.memoizedState;if(i!==null){r.pending=null;var s=i=i.next;do o=e(o,s.action),s=s.next;while(s!==i);kr(o,t.memoizedState)||(Ut=!0),t.memoizedState=o,t.baseQueue===null&&(t.baseState=o),r.lastRenderedState=o}return[o,n]}function Jg(){}function Kg(e,t){var r=$e,n=cr(),i=t(),o=!kr(n.memoizedState,i);if(o&&(n.memoizedState=i,Ut=!0),n=n.queue,bp(rv.bind(null,r,n,e),[e]),n.getSnapshot!==t||o||mt!==null&&mt.memoizedState.tag&1){if(r.flags|=2048,ra(9,tv.bind(null,r,n,i,t),void 0,null),yt===null)throw Error(A(349));(Si&30)!==0||ev(r,t,i)}return i}function ev(e,t,r){e.flags|=16384,e={getSnapshot:t,value:r},t=$e.updateQueue,t===null?(t={lastEffect:null,stores:null},$e.updateQueue=t,t.stores=[e]):(r=t.stores,r===null?t.stores=[e]:r.push(e))}function tv(e,t,r,n){t.value=r,t.getSnapshot=n,nv(t)&&iv(e)}function rv(e,t,r){return r(function(){nv(t)&&iv(e)})}function nv(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!kr(e,r)}catch(n){return!0}}function iv(e){var t=sn(e,1);t!==null&&br(t,e,1,-1)}function Cy(e){var t=Lr();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:ta,lastRenderedState:e},t.queue=e,e=e.dispatch=fT.bind(null,$e,e),[t.memoizedState,e]}function ra(e,t,r,n){return e={tag:e,create:t,destroy:r,deps:n,next:null},t=$e.updateQueue,t===null?(t={lastEffect:null,stores:null},$e.updateQueue=t,t.lastEffect=e.next=e):(r=t.lastEffect,r===null?t.lastEffect=e.next=e:(n=r.next,r.next=e,e.next=n,t.lastEffect=e)),e}function ov(){return cr().memoizedState}function Gl(e,t,r,n){var i=Lr();$e.flags|=e,i.memoizedState=ra(1|t,r,void 0,n===void 0?null:n)}function Mu(e,t,r,n){var i=cr();n=n===void 0?null:n;var o=void 0;if(lt!==null){var s=lt.memoizedState;if(o=s.destroy,n!==null&&_p(n,s.deps)){i.memoizedState=ra(t,r,o,n);return}}$e.flags|=e,i.memoizedState=ra(1|t,r,o,n)}function by(e,t){return Gl(8390656,8,e,t)}function bp(e,t){return Mu(2048,8,e,t)}function sv(e,t){return Mu(4,2,e,t)}function av(e,t){return Mu(4,4,e,t)}function lv(e,t){if(typeof t=="function")return e=e(),t(e),function(){t(null)};if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function uv(e,t,r){return r=r!=null?r.concat([e]):null,Mu(4,4,lv.bind(null,t,e),r)}function kp(){}function cv(e,t){var r=cr();t=t===void 0?null:t;var n=r.memoizedState;return n!==null&&t!==null&&_p(t,n[1])?n[0]:(r.memoizedState=[e,t],e)}function fv(e,t){var r=cr();t=t===void 0?null:t;var n=r.memoizedState;return n!==null&&t!==null&&_p(t,n[1])?n[0]:(e=e(),r.memoizedState=[e,t],e)}function dv(e,t,r){return(Si&21)===0?(e.baseState&&(e.baseState=!1,Ut=!0),e.memoizedState=r):(kr(r,t)||(r=mg(),$e.lanes|=r,Ei|=r,e.baseState=!0),t)}function uT(e,t){var r=Te;Te=r!==0&&4>r?r:4,e(!0);var n=Qf.transition;Qf.transition={};try{e(!1),t()}finally{Te=r,Qf.transition=n}}function pv(){return cr().memoizedState}function cT(e,t,r){var n=Dn(e);if(r={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null},hv(e))mv(t,r);else if(r=Wg(e,t,r,n),r!==null){var i=Rt();br(r,e,n,i),yv(r,t,n)}}function fT(e,t,r){var n=Dn(e),i={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null};if(hv(e))mv(t,i);else{var o=e.alternate;if(e.lanes===0&&(o===null||o.lanes===0)&&(o=t.lastRenderedReducer,o!==null))try{var s=t.lastRenderedState,a=o(s,r);if(i.hasEagerState=!0,i.eagerState=a,kr(a,s)){var l=t.interleaved;l===null?(i.next=i,vp(t)):(i.next=l.next,l.next=i),t.interleaved=i;return}}catch(u){}finally{}r=Wg(e,t,i,n),r!==null&&(i=Rt(),br(r,e,n,i),yv(r,t,n))}}function hv(e){var t=e.alternate;return e===$e||t!==null&&t===$e}function mv(e,t){Ds=mu=!0;var r=e.pending;r===null?t.next=t:(t.next=r.next,r.next=t),e.pending=t}function yv(e,t,r){if((r&4194240)!==0){var n=t.lanes;n&=e.pendingLanes,r|=n,t.lanes=r,ip(e,r)}}var yu={readContext:ur,useCallback:Mt,useContext:Mt,useEffect:Mt,useImperativeHandle:Mt,useInsertionEffect:Mt,useLayoutEffect:Mt,useMemo:Mt,useReducer:Mt,useRef:Mt,useState:Mt,useDebugValue:Mt,useDeferredValue:Mt,useTransition:Mt,useMutableSource:Mt,useSyncExternalStore:Mt,useId:Mt,unstable_isNewReconciler:!1},dT={readContext:ur,useCallback:function(e,t){return Lr().memoizedState=[e,t===void 0?null:t],e},useContext:ur,useEffect:by,useImperativeHandle:function(e,t,r){return r=r!=null?r.concat([e]):null,Gl(4194308,4,lv.bind(null,t,e),r)},useLayoutEffect:function(e,t){return Gl(4194308,4,e,t)},useInsertionEffect:function(e,t){return Gl(4,2,e,t)},useMemo:function(e,t){var r=Lr();return t=t===void 0?null:t,e=e(),r.memoizedState=[e,t],e},useReducer:function(e,t,r){var n=Lr();return t=r!==void 0?r(t):t,n.memoizedState=n.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},n.queue=e,e=e.dispatch=cT.bind(null,$e,e),[n.memoizedState,e]},useRef:function(e){var t=Lr();return e={current:e},t.memoizedState=e},useState:Cy,useDebugValue:kp,useDeferredValue:function(e){return Lr().memoizedState=e},useTransition:function(){var e=Cy(!1),t=e[0];return e=uT.bind(null,e[1]),Lr().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,r){var n=$e,i=Lr();if(De){if(r===void 0)throw Error(A(407));r=r()}else{if(r=t(),yt===null)throw Error(A(349));(Si&30)!==0||ev(n,t,r)}i.memoizedState=r;var o={value:r,getSnapshot:t};return i.queue=o,by(rv.bind(null,n,o,e),[e]),n.flags|=2048,ra(9,tv.bind(null,n,o,r,t),void 0,null),r},useId:function(){var e=Lr(),t=yt.identifierPrefix;if(De){var r=tn,n=en;r=(n&~(1<<32-Cr(n)-1)).toString(32)+r,t=":"+t+"R"+r,r=ea++,0<r&&(t+="H"+r.toString(32)),t+=":"}else r=lT++,t=":"+t+"r"+r.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},pT={readContext:ur,useCallback:cv,useContext:ur,useEffect:bp,useImperativeHandle:uv,useInsertionEffect:sv,useLayoutEffect:av,useMemo:fv,useReducer:Jf,useRef:ov,useState:function(){return Jf(ta)},useDebugValue:kp,useDeferredValue:function(e){var t=cr();return dv(t,lt.memoizedState,e)},useTransition:function(){var e=Jf(ta)[0],t=cr().memoizedState;return[e,t]},useMutableSource:Jg,useSyncExternalStore:Kg,useId:pv,unstable_isNewReconciler:!1},hT={readContext:ur,useCallback:cv,useContext:ur,useEffect:bp,useImperativeHandle:uv,useInsertionEffect:sv,useLayoutEffect:av,useMemo:fv,useReducer:Kf,useRef:ov,useState:function(){return Kf(ta)},useDebugValue:kp,useDeferredValue:function(e){var t=cr();return lt===null?t.memoizedState=e:dv(t,lt.memoizedState,e)},useTransition:function(){var e=Kf(ta)[0],t=cr().memoizedState;return[e,t]},useMutableSource:Jg,useSyncExternalStore:Kg,useId:pv,unstable_isNewReconciler:!1};function wo(e,t){try{var r="",n=t;do r+=$x(n),n=n.return;while(n);var i=r}catch(o){i=`
Error generating stack: `+o.message+`
`+o.stack}return{value:e,source:t,stack:i,digest:null}}function ed(e,t,r){return{value:e,source:null,stack:r!=null?r:null,digest:t!=null?t:null}}function Ld(e,t){try{console.error(t.value)}catch(r){setTimeout(function(){throw r})}}var mT=typeof WeakMap=="function"?WeakMap:Map;function gv(e,t,r){r=rn(-1,r),r.tag=3,r.payload={element:null};var n=t.value;return r.callback=function(){vu||(vu=!0,qd=n),Ld(e,t)},r}function vv(e,t,r){r=rn(-1,r),r.tag=3;var n=e.type.getDerivedStateFromError;if(typeof n=="function"){var i=t.value;r.payload=function(){return n(i)},r.callback=function(){Ld(e,t)}}var o=e.stateNode;return o!==null&&typeof o.componentDidCatch=="function"&&(r.callback=function(){Ld(e,t),typeof n!="function"&&(Ln===null?Ln=new Set([this]):Ln.add(this));var s=t.stack;this.componentDidCatch(t.value,{componentStack:s!==null?s:""})}),r}function ky(e,t,r){var n=e.pingCache;if(n===null){n=e.pingCache=new mT;var i=new Set;n.set(t,i)}else i=n.get(t),i===void 0&&(i=new Set,n.set(t,i));i.has(r)||(i.add(r),e=MT.bind(null,e,t,r),t.then(e,e))}function Iy(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function My(e,t,r,n,i){return(e.mode&1)===0?(e===t?e.flags|=65536:(e.flags|=128,r.flags|=131072,r.flags&=-52805,r.tag===1&&(r.alternate===null?r.tag=17:(t=rn(-1,1),t.tag=2,Rn(r,t,1))),r.lanes|=1),e):(e.flags|=65536,e.lanes=i,e)}var yT=ln.ReactCurrentOwner,Ut=!1;function Ft(e,t,r,n){t.child=e===null?Xg(t,null,r,n):go(t,e.child,r,n)}function Py(e,t,r,n,i){r=r.render;var o=t.ref;return fo(t,i),n=Tp(e,t,r,n,o,i),r=Cp(),e!==null&&!Ut?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,an(e,t,i)):(De&&r&&dp(t),t.flags|=1,Ft(e,t,n,i),t.child)}function Oy(e,t,r,n,i){if(e===null){var o=r.type;return typeof o=="function"&&!Rp(o)&&o.defaultProps===void 0&&r.compare===null&&r.defaultProps===void 0?(t.tag=15,t.type=o,wv(e,t,o,n,i)):(e=Ql(r.type,null,n,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(o=e.child,(e.lanes&i)===0){var s=o.memoizedProps;if(r=r.compare,r=r!==null?r:Zs,r(s,n)&&e.ref===t.ref)return an(e,t,i)}return t.flags|=1,e=Bn(o,n),e.ref=t.ref,e.return=t,t.child=e}function wv(e,t,r,n,i){if(e!==null){var o=e.memoizedProps;if(Zs(o,n)&&e.ref===t.ref)if(Ut=!1,t.pendingProps=n=o,(e.lanes&i)!==0)(e.flags&131072)!==0&&(Ut=!0);else return t.lanes=e.lanes,an(e,t,i)}return Dd(e,t,r,n,i)}function Sv(e,t,r){var n=t.pendingProps,i=n.children,o=e!==null?e.memoizedState:null;if(n.mode==="hidden")if((t.mode&1)===0)t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Ae(so,Zt),Zt|=r;else{if((r&1073741824)===0)return e=o!==null?o.baseLanes|r:r,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Ae(so,Zt),Zt|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},n=o!==null?o.baseLanes:r,Ae(so,Zt),Zt|=n}else o!==null?(n=o.baseLanes|r,t.memoizedState=null):n=r,Ae(so,Zt),Zt|=n;return Ft(e,t,i,r),t.child}function Ev(e,t){var r=t.ref;(e===null&&r!==null||e!==null&&e.ref!==r)&&(t.flags|=512,t.flags|=2097152)}function Dd(e,t,r,n,i){var o=zt(r)?vi:At.current;return o=mo(t,o),fo(t,i),r=Tp(e,t,r,n,o,i),n=Cp(),e!==null&&!Ut?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,an(e,t,i)):(De&&n&&dp(t),t.flags|=1,Ft(e,t,r,i),t.child)}function Ay(e,t,r,n,i){if(zt(r)){var o=!0;lu(t)}else o=!1;if(fo(t,i),t.stateNode===null)Zl(e,t),Zg(t,r,n),Rd(t,r,n,i),n=!0;else if(e===null){var s=t.stateNode,a=t.memoizedProps;s.props=a;var l=s.context,u=r.contextType;typeof u=="object"&&u!==null?u=ur(u):(u=zt(r)?vi:At.current,u=mo(t,u));var c=r.getDerivedStateFromProps,f=typeof c=="function"||typeof s.getSnapshotBeforeUpdate=="function";f||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(a!==n||l!==u)&&_y(t,s,n,u),bn=!1;var h=t.memoizedState;s.state=h,pu(t,n,s,i),l=t.memoizedState,a!==n||h!==l||Ht.current||bn?(typeof c=="function"&&(Fd(t,r,c,n),l=t.memoizedState),(a=bn||xy(t,r,a,n,h,l,u))?(f||typeof s.UNSAFE_componentWillMount!="function"&&typeof s.componentWillMount!="function"||(typeof s.componentWillMount=="function"&&s.componentWillMount(),typeof s.UNSAFE_componentWillMount=="function"&&s.UNSAFE_componentWillMount()),typeof s.componentDidMount=="function"&&(t.flags|=4194308)):(typeof s.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=n,t.memoizedState=l),s.props=n,s.state=l,s.context=u,n=a):(typeof s.componentDidMount=="function"&&(t.flags|=4194308),n=!1)}else{s=t.stateNode,qg(e,t),a=t.memoizedProps,u=t.type===t.elementType?a:xr(t.type,a),s.props=u,f=t.pendingProps,h=s.context,l=r.contextType,typeof l=="object"&&l!==null?l=ur(l):(l=zt(r)?vi:At.current,l=mo(t,l));var d=r.getDerivedStateFromProps;(c=typeof d=="function"||typeof s.getSnapshotBeforeUpdate=="function")||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(a!==f||h!==l)&&_y(t,s,n,l),bn=!1,h=t.memoizedState,s.state=h,pu(t,n,s,i);var g=t.memoizedState;a!==f||h!==g||Ht.current||bn?(typeof d=="function"&&(Fd(t,r,d,n),g=t.memoizedState),(u=bn||xy(t,r,u,n,h,g,l)||!1)?(c||typeof s.UNSAFE_componentWillUpdate!="function"&&typeof s.componentWillUpdate!="function"||(typeof s.componentWillUpdate=="function"&&s.componentWillUpdate(n,g,l),typeof s.UNSAFE_componentWillUpdate=="function"&&s.UNSAFE_componentWillUpdate(n,g,l)),typeof s.componentDidUpdate=="function"&&(t.flags|=4),typeof s.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof s.componentDidUpdate!="function"||a===e.memoizedProps&&h===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&h===e.memoizedState||(t.flags|=1024),t.memoizedProps=n,t.memoizedState=g),s.props=n,s.state=g,s.context=l,n=u):(typeof s.componentDidUpdate!="function"||a===e.memoizedProps&&h===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&h===e.memoizedState||(t.flags|=1024),n=!1)}return Bd(e,t,r,n,o,i)}function Bd(e,t,r,n,i,o){Ev(e,t);var s=(t.flags&128)!==0;if(!n&&!s)return i&&gy(t,r,!1),an(e,t,o);n=t.stateNode,yT.current=t;var a=s&&typeof r.getDerivedStateFromError!="function"?null:n.render();return t.flags|=1,e!==null&&s?(t.child=go(t,e.child,null,o),t.child=go(t,null,a,o)):Ft(e,t,a,o),t.memoizedState=n.state,i&&gy(t,r,!0),t.child}function xv(e){var t=e.stateNode;t.pendingContext?yy(e,t.pendingContext,t.pendingContext!==t.context):t.context&&yy(e,t.context,!1),Sp(e,t.containerInfo)}function Ny(e,t,r,n,i){return yo(),hp(i),t.flags|=256,Ft(e,t,r,n),t.child}var Ud={dehydrated:null,treeContext:null,retryLane:0};function Hd(e){return{baseLanes:e,cachePool:null,transitions:null}}function _v(e,t,r){var n=t.pendingProps,i=Ve.current,o=!1,s=(t.flags&128)!==0,a;if((a=s)||(a=e!==null&&e.memoizedState===null?!1:(i&2)!==0),a?(o=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(i|=1),Ae(Ve,i&1),e===null)return Ad(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?((t.mode&1)===0?t.lanes=1:e.data==="$!"?t.lanes=8:t.lanes=1073741824,null):(s=n.children,e=n.fallback,o?(n=t.mode,o=t.child,s={mode:"hidden",children:s},(n&1)===0&&o!==null?(o.childLanes=0,o.pendingProps=s):o=Au(s,n,0,null),e=gi(e,n,r,null),o.return=t,e.return=t,o.sibling=e,t.child=o,t.child.memoizedState=Hd(r),t.memoizedState=Ud,e):Ip(t,s));if(i=e.memoizedState,i!==null&&(a=i.dehydrated,a!==null))return gT(e,t,s,n,a,i,r);if(o){o=n.fallback,s=t.mode,i=e.child,a=i.sibling;var l={mode:"hidden",children:n.children};return(s&1)===0&&t.child!==i?(n=t.child,n.childLanes=0,n.pendingProps=l,t.deletions=null):(n=Bn(i,l),n.subtreeFlags=i.subtreeFlags&14680064),a!==null?o=Bn(a,o):(o=gi(o,s,r,null),o.flags|=2),o.return=t,n.return=t,n.sibling=o,t.child=n,n=o,o=t.child,s=e.child.memoizedState,s=s===null?Hd(r):{baseLanes:s.baseLanes|r,cachePool:null,transitions:s.transitions},o.memoizedState=s,o.childLanes=e.childLanes&~r,t.memoizedState=Ud,n}return o=e.child,e=o.sibling,n=Bn(o,{mode:"visible",children:n.children}),(t.mode&1)===0&&(n.lanes=r),n.return=t,n.sibling=null,e!==null&&(r=t.deletions,r===null?(t.deletions=[e],t.flags|=16):r.push(e)),t.child=n,t.memoizedState=null,n}function Ip(e,t){return t=Au({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function Ul(e,t,r,n){return n!==null&&hp(n),go(t,e.child,null,r),e=Ip(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function gT(e,t,r,n,i,o,s){if(r)return t.flags&256?(t.flags&=-257,n=ed(Error(A(422))),Ul(e,t,s,n)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(o=n.fallback,i=t.mode,n=Au({mode:"visible",children:n.children},i,0,null),o=gi(o,i,s,null),o.flags|=2,n.return=t,o.return=t,n.sibling=o,t.child=n,(t.mode&1)!==0&&go(t,e.child,null,s),t.child.memoizedState=Hd(s),t.memoizedState=Ud,o);if((t.mode&1)===0)return Ul(e,t,s,null);if(i.data==="$!"){if(n=i.nextSibling&&i.nextSibling.dataset,n)var a=n.dgst;return n=a,o=Error(A(419)),n=ed(o,n,void 0),Ul(e,t,s,n)}if(a=(s&e.childLanes)!==0,Ut||a){if(n=yt,n!==null){switch(s&-s){case 4:i=2;break;case 16:i=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:i=32;break;case 536870912:i=268435456;break;default:i=0}i=(i&(n.suspendedLanes|s))!==0?0:i,i!==0&&i!==o.retryLane&&(o.retryLane=i,sn(e,i),br(n,e,i,-1))}return Fp(),n=ed(Error(A(421))),Ul(e,t,s,n)}return i.data==="$?"?(t.flags|=128,t.child=e.child,t=PT.bind(null,e),i._reactRetry=t,null):(e=o.treeContext,Yt=Fn(i.nextSibling),Xt=t,De=!0,Tr=null,e!==null&&(or[sr++]=en,or[sr++]=tn,or[sr++]=wi,en=e.id,tn=e.overflow,wi=t),t=Ip(t,n.children),t.flags|=4096,t)}function Fy(e,t,r){e.lanes|=t;var n=e.alternate;n!==null&&(n.lanes|=t),Nd(e.return,t,r)}function td(e,t,r,n,i){var o=e.memoizedState;o===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:n,tail:r,tailMode:i}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=n,o.tail=r,o.tailMode=i)}function Tv(e,t,r){var n=t.pendingProps,i=n.revealOrder,o=n.tail;if(Ft(e,t,n.children,r),n=Ve.current,(n&2)!==0)n=n&1|2,t.flags|=128;else{if(e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Fy(e,r,t);else if(e.tag===19)Fy(e,r,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}n&=1}if(Ae(Ve,n),(t.mode&1)===0)t.memoizedState=null;else switch(i){case"forwards":for(r=t.child,i=null;r!==null;)e=r.alternate,e!==null&&hu(e)===null&&(i=r),r=r.sibling;r=i,r===null?(i=t.child,t.child=null):(i=r.sibling,r.sibling=null),td(t,!1,i,r,o);break;case"backwards":for(r=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&hu(e)===null){t.child=i;break}e=i.sibling,i.sibling=r,r=i,i=e}td(t,!0,r,null,o);break;case"together":td(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Zl(e,t){(t.mode&1)===0&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function an(e,t,r){if(e!==null&&(t.dependencies=e.dependencies),Ei|=t.lanes,(r&t.childLanes)===0)return null;if(e!==null&&t.child!==e.child)throw Error(A(153));if(t.child!==null){for(e=t.child,r=Bn(e,e.pendingProps),t.child=r,r.return=t;e.sibling!==null;)e=e.sibling,r=r.sibling=Bn(e,e.pendingProps),r.return=t;r.sibling=null}return t.child}function vT(e,t,r){switch(t.tag){case 3:xv(t),yo();break;case 5:Qg(t);break;case 1:zt(t.type)&&lu(t);break;case 4:Sp(t,t.stateNode.containerInfo);break;case 10:var n=t.type._context,i=t.memoizedProps.value;Ae(fu,n._currentValue),n._currentValue=i;break;case 13:if(n=t.memoizedState,n!==null)return n.dehydrated!==null?(Ae(Ve,Ve.current&1),t.flags|=128,null):(r&t.child.childLanes)!==0?_v(e,t,r):(Ae(Ve,Ve.current&1),e=an(e,t,r),e!==null?e.sibling:null);Ae(Ve,Ve.current&1);break;case 19:if(n=(r&t.childLanes)!==0,(e.flags&128)!==0){if(n)return Tv(e,t,r);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),Ae(Ve,Ve.current),n)break;return null;case 22:case 23:return t.lanes=0,Sv(e,t,r)}return an(e,t,r)}var Cv,zd,bv,kv;Cv=function(e,t){for(var r=t.child;r!==null;){if(r.tag===5||r.tag===6)e.appendChild(r.stateNode);else if(r.tag!==4&&r.child!==null){r.child.return=r,r=r.child;continue}if(r===t)break;for(;r.sibling===null;){if(r.return===null||r.return===t)return;r=r.return}r.sibling.return=r.return,r=r.sibling}};zd=function(){};bv=function(e,t,r,n){var i=e.memoizedProps;if(i!==n){e=t.stateNode,mi(Ur.current);var o=null;switch(r){case"input":i=ud(e,i),n=ud(e,n),o=[];break;case"select":i=We({},i,{value:void 0}),n=We({},n,{value:void 0}),o=[];break;case"textarea":i=dd(e,i),n=dd(e,n),o=[];break;default:typeof i.onClick!="function"&&typeof n.onClick=="function"&&(e.onclick=su)}hd(r,n);var s;r=null;for(u in i)if(!n.hasOwnProperty(u)&&i.hasOwnProperty(u)&&i[u]!=null)if(u==="style"){var a=i[u];for(s in a)a.hasOwnProperty(s)&&(r||(r={}),r[s]="")}else u!=="dangerouslySetInnerHTML"&&u!=="children"&&u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&u!=="autoFocus"&&(zs.hasOwnProperty(u)?o||(o=[]):(o=o||[]).push(u,null));for(u in n){var l=n[u];if(a=i!=null?i[u]:void 0,n.hasOwnProperty(u)&&l!==a&&(l!=null||a!=null))if(u==="style")if(a){for(s in a)!a.hasOwnProperty(s)||l&&l.hasOwnProperty(s)||(r||(r={}),r[s]="");for(s in l)l.hasOwnProperty(s)&&a[s]!==l[s]&&(r||(r={}),r[s]=l[s])}else r||(o||(o=[]),o.push(u,r)),r=l;else u==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,a=a?a.__html:void 0,l!=null&&a!==l&&(o=o||[]).push(u,l)):u==="children"?typeof l!="string"&&typeof l!="number"||(o=o||[]).push(u,""+l):u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&(zs.hasOwnProperty(u)?(l!=null&&u==="onScroll"&&Fe("scroll",e),o||a===l||(o=[])):(o=o||[]).push(u,l))}r&&(o=o||[]).push("style",r);var u=o;(t.updateQueue=u)&&(t.flags|=4)}};kv=function(e,t,r,n){r!==n&&(t.flags|=4)};function Cs(e,t){if(!De)switch(e.tailMode){case"hidden":t=e.tail;for(var r=null;t!==null;)t.alternate!==null&&(r=t),t=t.sibling;r===null?e.tail=null:r.sibling=null;break;case"collapsed":r=e.tail;for(var n=null;r!==null;)r.alternate!==null&&(n=r),r=r.sibling;n===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:n.sibling=null}}function Pt(e){var t=e.alternate!==null&&e.alternate.child===e.child,r=0,n=0;if(t)for(var i=e.child;i!==null;)r|=i.lanes|i.childLanes,n|=i.subtreeFlags&14680064,n|=i.flags&14680064,i.return=e,i=i.sibling;else for(i=e.child;i!==null;)r|=i.lanes|i.childLanes,n|=i.subtreeFlags,n|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=n,e.childLanes=r,t}function wT(e,t,r){var n=t.pendingProps;switch(pp(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Pt(t),null;case 1:return zt(t.type)&&au(),Pt(t),null;case 3:return n=t.stateNode,vo(),Re(Ht),Re(At),xp(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(Dl(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,Tr!==null&&(Yd(Tr),Tr=null))),zd(e,t),Pt(t),null;case 5:Ep(t);var i=mi(Ks.current);if(r=t.type,e!==null&&t.stateNode!=null)bv(e,t,r,n,i),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!n){if(t.stateNode===null)throw Error(A(166));return Pt(t),null}if(e=mi(Ur.current),Dl(t)){n=t.stateNode,r=t.type;var o=t.memoizedProps;switch(n[Dr]=t,n[Qs]=o,e=(t.mode&1)!==0,r){case"dialog":Fe("cancel",n),Fe("close",n);break;case"iframe":case"object":case"embed":Fe("load",n);break;case"video":case"audio":for(i=0;i<Os.length;i++)Fe(Os[i],n);break;case"source":Fe("error",n);break;case"img":case"image":case"link":Fe("error",n),Fe("load",n);break;case"details":Fe("toggle",n);break;case"input":j0(n,o),Fe("invalid",n);break;case"select":n._wrapperState={wasMultiple:!!o.multiple},Fe("invalid",n);break;case"textarea":$0(n,o),Fe("invalid",n)}hd(r,o),i=null;for(var s in o)if(o.hasOwnProperty(s)){var a=o[s];s==="children"?typeof a=="string"?n.textContent!==a&&(o.suppressHydrationWarning!==!0&&Ll(n.textContent,a,e),i=["children",a]):typeof a=="number"&&n.textContent!==""+a&&(o.suppressHydrationWarning!==!0&&Ll(n.textContent,a,e),i=["children",""+a]):zs.hasOwnProperty(s)&&a!=null&&s==="onScroll"&&Fe("scroll",n)}switch(r){case"input":Tl(n),V0(n,o,!0);break;case"textarea":Tl(n),W0(n);break;case"select":case"option":break;default:typeof o.onClick=="function"&&(n.onclick=su)}n=i,t.updateQueue=n,n!==null&&(t.flags|=4)}else{s=i.nodeType===9?i:i.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=eg(r)),e==="http://www.w3.org/1999/xhtml"?r==="script"?(e=s.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof n.is=="string"?e=s.createElement(r,{is:n.is}):(e=s.createElement(r),r==="select"&&(s=e,n.multiple?s.multiple=!0:n.size&&(s.size=n.size))):e=s.createElementNS(e,r),e[Dr]=t,e[Qs]=n,Cv(e,t,!1,!1),t.stateNode=e;e:{switch(s=md(r,n),r){case"dialog":Fe("cancel",e),Fe("close",e),i=n;break;case"iframe":case"object":case"embed":Fe("load",e),i=n;break;case"video":case"audio":for(i=0;i<Os.length;i++)Fe(Os[i],e);i=n;break;case"source":Fe("error",e),i=n;break;case"img":case"image":case"link":Fe("error",e),Fe("load",e),i=n;break;case"details":Fe("toggle",e),i=n;break;case"input":j0(e,n),i=ud(e,n),Fe("invalid",e);break;case"option":i=n;break;case"select":e._wrapperState={wasMultiple:!!n.multiple},i=We({},n,{value:void 0}),Fe("invalid",e);break;case"textarea":$0(e,n),i=dd(e,n),Fe("invalid",e);break;default:i=n}hd(r,i),a=i;for(o in a)if(a.hasOwnProperty(o)){var l=a[o];o==="style"?ng(e,l):o==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,l!=null&&tg(e,l)):o==="children"?typeof l=="string"?(r!=="textarea"||l!=="")&&js(e,l):typeof l=="number"&&js(e,""+l):o!=="suppressContentEditableWarning"&&o!=="suppressHydrationWarning"&&o!=="autoFocus"&&(zs.hasOwnProperty(o)?l!=null&&o==="onScroll"&&Fe("scroll",e):l!=null&&Jd(e,o,l,s))}switch(r){case"input":Tl(e),V0(e,n,!1);break;case"textarea":Tl(e),W0(e);break;case"option":n.value!=null&&e.setAttribute("value",""+Un(n.value));break;case"select":e.multiple=!!n.multiple,o=n.value,o!=null?ao(e,!!n.multiple,o,!1):n.defaultValue!=null&&ao(e,!!n.multiple,n.defaultValue,!0);break;default:typeof i.onClick=="function"&&(e.onclick=su)}switch(r){case"button":case"input":case"select":case"textarea":n=!!n.autoFocus;break e;case"img":n=!0;break e;default:n=!1}}n&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return Pt(t),null;case 6:if(e&&t.stateNode!=null)kv(e,t,e.memoizedProps,n);else{if(typeof n!="string"&&t.stateNode===null)throw Error(A(166));if(r=mi(Ks.current),mi(Ur.current),Dl(t)){if(n=t.stateNode,r=t.memoizedProps,n[Dr]=t,(o=n.nodeValue!==r)&&(e=Xt,e!==null))switch(e.tag){case 3:Ll(n.nodeValue,r,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&Ll(n.nodeValue,r,(e.mode&1)!==0)}o&&(t.flags|=4)}else n=(r.nodeType===9?r:r.ownerDocument).createTextNode(n),n[Dr]=t,t.stateNode=n}return Pt(t),null;case 13:if(Re(Ve),n=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(De&&Yt!==null&&(t.mode&1)!==0&&(t.flags&128)===0)$g(),yo(),t.flags|=98560,o=!1;else if(o=Dl(t),n!==null&&n.dehydrated!==null){if(e===null){if(!o)throw Error(A(318));if(o=t.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(A(317));o[Dr]=t}else yo(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Pt(t),o=!1}else Tr!==null&&(Yd(Tr),Tr=null),o=!0;if(!o)return t.flags&65536?t:null}return(t.flags&128)!==0?(t.lanes=r,t):(n=n!==null,n!==(e!==null&&e.memoizedState!==null)&&n&&(t.child.flags|=8192,(t.mode&1)!==0&&(e===null||(Ve.current&1)!==0?ut===0&&(ut=3):Fp())),t.updateQueue!==null&&(t.flags|=4),Pt(t),null);case 4:return vo(),zd(e,t),e===null&&Ys(t.stateNode.containerInfo),Pt(t),null;case 10:return gp(t.type._context),Pt(t),null;case 17:return zt(t.type)&&au(),Pt(t),null;case 19:if(Re(Ve),o=t.memoizedState,o===null)return Pt(t),null;if(n=(t.flags&128)!==0,s=o.rendering,s===null)if(n)Cs(o,!1);else{if(ut!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(s=hu(e),s!==null){for(t.flags|=128,Cs(o,!1),n=s.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),t.subtreeFlags=0,n=r,r=t.child;r!==null;)o=r,e=n,o.flags&=14680066,s=o.alternate,s===null?(o.childLanes=0,o.lanes=e,o.child=null,o.subtreeFlags=0,o.memoizedProps=null,o.memoizedState=null,o.updateQueue=null,o.dependencies=null,o.stateNode=null):(o.childLanes=s.childLanes,o.lanes=s.lanes,o.child=s.child,o.subtreeFlags=0,o.deletions=null,o.memoizedProps=s.memoizedProps,o.memoizedState=s.memoizedState,o.updateQueue=s.updateQueue,o.type=s.type,e=s.dependencies,o.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),r=r.sibling;return Ae(Ve,Ve.current&1|2),t.child}e=e.sibling}o.tail!==null&&Ke()>So&&(t.flags|=128,n=!0,Cs(o,!1),t.lanes=4194304)}else{if(!n)if(e=hu(s),e!==null){if(t.flags|=128,n=!0,r=e.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),Cs(o,!0),o.tail===null&&o.tailMode==="hidden"&&!s.alternate&&!De)return Pt(t),null}else 2*Ke()-o.renderingStartTime>So&&r!==1073741824&&(t.flags|=128,n=!0,Cs(o,!1),t.lanes=4194304);o.isBackwards?(s.sibling=t.child,t.child=s):(r=o.last,r!==null?r.sibling=s:t.child=s,o.last=s)}return o.tail!==null?(t=o.tail,o.rendering=t,o.tail=t.sibling,o.renderingStartTime=Ke(),t.sibling=null,r=Ve.current,Ae(Ve,n?r&1|2:r&1),t):(Pt(t),null);case 22:case 23:return Np(),n=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==n&&(t.flags|=8192),n&&(t.mode&1)!==0?(Zt&1073741824)!==0&&(Pt(t),t.subtreeFlags&6&&(t.flags|=8192)):Pt(t),null;case 24:return null;case 25:return null}throw Error(A(156,t.tag))}function ST(e,t){switch(pp(t),t.tag){case 1:return zt(t.type)&&au(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return vo(),Re(Ht),Re(At),xp(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 5:return Ep(t),null;case 13:if(Re(Ve),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(A(340));yo()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Re(Ve),null;case 4:return vo(),null;case 10:return gp(t.type._context),null;case 22:case 23:return Np(),null;case 24:return null;default:return null}}var Hl=!1,Ot=!1,ET=typeof WeakSet=="function"?WeakSet:Set,U=null;function oo(e,t){var r=e.ref;if(r!==null)if(typeof r=="function")try{r(null)}catch(n){Ze(e,t,n)}else r.current=null}function jd(e,t,r){try{r()}catch(n){Ze(e,t,n)}}var Ry=!1;function xT(e,t){if(Cd=nu,e=Og(),fp(e)){if("selectionStart"in e)var r={start:e.selectionStart,end:e.selectionEnd};else e:{r=(r=e.ownerDocument)&&r.defaultView||window;var n=r.getSelection&&r.getSelection();if(n&&n.rangeCount!==0){r=n.anchorNode;var i=n.anchorOffset,o=n.focusNode;n=n.focusOffset;try{r.nodeType,o.nodeType}catch(w){r=null;break e}var s=0,a=-1,l=-1,u=0,c=0,f=e,h=null;t:for(;;){for(var d;f!==r||i!==0&&f.nodeType!==3||(a=s+i),f!==o||n!==0&&f.nodeType!==3||(l=s+n),f.nodeType===3&&(s+=f.nodeValue.length),(d=f.firstChild)!==null;)h=f,f=d;for(;;){if(f===e)break t;if(h===r&&++u===i&&(a=s),h===o&&++c===n&&(l=s),(d=f.nextSibling)!==null)break;f=h,h=f.parentNode}f=d}r=a===-1||l===-1?null:{start:a,end:l}}else r=null}r=r||{start:0,end:0}}else r=null;for(bd={focusedElem:e,selectionRange:r},nu=!1,U=t;U!==null;)if(t=U,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,U=e;else for(;U!==null;){t=U;try{var g=t.alternate;if((t.flags&1024)!==0)switch(t.tag){case 0:case 11:case 15:break;case 1:if(g!==null){var y=g.memoizedProps,x=g.memoizedState,m=t.stateNode,p=m.getSnapshotBeforeUpdate(t.elementType===t.type?y:xr(t.type,y),x);m.__reactInternalSnapshotBeforeUpdate=p}break;case 3:var v=t.stateNode.containerInfo;v.nodeType===1?v.textContent="":v.nodeType===9&&v.documentElement&&v.removeChild(v.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(A(163))}}catch(w){Ze(t,t.return,w)}if(e=t.sibling,e!==null){e.return=t.return,U=e;break}U=t.return}return g=Ry,Ry=!1,g}function Bs(e,t,r){var n=t.updateQueue;if(n=n!==null?n.lastEffect:null,n!==null){var i=n=n.next;do{if((i.tag&e)===e){var o=i.destroy;i.destroy=void 0,o!==void 0&&jd(t,r,o)}i=i.next}while(i!==n)}}function Pu(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var r=t=t.next;do{if((r.tag&e)===e){var n=r.create;r.destroy=n()}r=r.next}while(r!==t)}}function Vd(e){var t=e.ref;if(t!==null){var r=e.stateNode;switch(e.tag){case 5:e=r;break;default:e=r}typeof t=="function"?t(e):t.current=e}}function Iv(e){var t=e.alternate;t!==null&&(e.alternate=null,Iv(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Dr],delete t[Qs],delete t[Md],delete t[iT],delete t[oT])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function Mv(e){return e.tag===5||e.tag===3||e.tag===4}function Ly(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Mv(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function $d(e,t,r){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?r.nodeType===8?r.parentNode.insertBefore(e,t):r.insertBefore(e,t):(r.nodeType===8?(t=r.parentNode,t.insertBefore(e,r)):(t=r,t.appendChild(e)),r=r._reactRootContainer,r!=null||t.onclick!==null||(t.onclick=su));else if(n!==4&&(e=e.child,e!==null))for($d(e,t,r),e=e.sibling;e!==null;)$d(e,t,r),e=e.sibling}function Wd(e,t,r){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?r.insertBefore(e,t):r.appendChild(e);else if(n!==4&&(e=e.child,e!==null))for(Wd(e,t,r),e=e.sibling;e!==null;)Wd(e,t,r),e=e.sibling}var _t=null,_r=!1;function Tn(e,t,r){for(r=r.child;r!==null;)Pv(e,t,r),r=r.sibling}function Pv(e,t,r){if(Br&&typeof Br.onCommitFiberUnmount=="function")try{Br.onCommitFiberUnmount(xu,r)}catch(a){}switch(r.tag){case 5:Ot||oo(r,t);case 6:var n=_t,i=_r;_t=null,Tn(e,t,r),_t=n,_r=i,_t!==null&&(_r?(e=_t,r=r.stateNode,e.nodeType===8?e.parentNode.removeChild(r):e.removeChild(r)):_t.removeChild(r.stateNode));break;case 18:_t!==null&&(_r?(e=_t,r=r.stateNode,e.nodeType===8?Zf(e.parentNode,r):e.nodeType===1&&Zf(e,r),qs(e)):Zf(_t,r.stateNode));break;case 4:n=_t,i=_r,_t=r.stateNode.containerInfo,_r=!0,Tn(e,t,r),_t=n,_r=i;break;case 0:case 11:case 14:case 15:if(!Ot&&(n=r.updateQueue,n!==null&&(n=n.lastEffect,n!==null))){i=n=n.next;do{var o=i,s=o.destroy;o=o.tag,s!==void 0&&((o&2)!==0||(o&4)!==0)&&jd(r,t,s),i=i.next}while(i!==n)}Tn(e,t,r);break;case 1:if(!Ot&&(oo(r,t),n=r.stateNode,typeof n.componentWillUnmount=="function"))try{n.props=r.memoizedProps,n.state=r.memoizedState,n.componentWillUnmount()}catch(a){Ze(r,t,a)}Tn(e,t,r);break;case 21:Tn(e,t,r);break;case 22:r.mode&1?(Ot=(n=Ot)||r.memoizedState!==null,Tn(e,t,r),Ot=n):Tn(e,t,r);break;default:Tn(e,t,r)}}function Dy(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var r=e.stateNode;r===null&&(r=e.stateNode=new ET),t.forEach(function(n){var i=OT.bind(null,e,n);r.has(n)||(r.add(n),n.then(i,i))})}}function Er(e,t){var r=t.deletions;if(r!==null)for(var n=0;n<r.length;n++){var i=r[n];try{var o=e,s=t,a=s;e:for(;a!==null;){switch(a.tag){case 5:_t=a.stateNode,_r=!1;break e;case 3:_t=a.stateNode.containerInfo,_r=!0;break e;case 4:_t=a.stateNode.containerInfo,_r=!0;break e}a=a.return}if(_t===null)throw Error(A(160));Pv(o,s,i),_t=null,_r=!1;var l=i.alternate;l!==null&&(l.return=null),i.return=null}catch(u){Ze(i,t,u)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)Ov(t,e),t=t.sibling}function Ov(e,t){var r=e.alternate,n=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(Er(t,e),Rr(e),n&4){try{Bs(3,e,e.return),Pu(3,e)}catch(y){Ze(e,e.return,y)}try{Bs(5,e,e.return)}catch(y){Ze(e,e.return,y)}}break;case 1:Er(t,e),Rr(e),n&512&&r!==null&&oo(r,r.return);break;case 5:if(Er(t,e),Rr(e),n&512&&r!==null&&oo(r,r.return),e.flags&32){var i=e.stateNode;try{js(i,"")}catch(y){Ze(e,e.return,y)}}if(n&4&&(i=e.stateNode,i!=null)){var o=e.memoizedProps,s=r!==null?r.memoizedProps:o,a=e.type,l=e.updateQueue;if(e.updateQueue=null,l!==null)try{a==="input"&&o.type==="radio"&&o.name!=null&&Jy(i,o),md(a,s);var u=md(a,o);for(s=0;s<l.length;s+=2){var c=l[s],f=l[s+1];c==="style"?ng(i,f):c==="dangerouslySetInnerHTML"?tg(i,f):c==="children"?js(i,f):Jd(i,c,f,u)}switch(a){case"input":cd(i,o);break;case"textarea":Ky(i,o);break;case"select":var h=i._wrapperState.wasMultiple;i._wrapperState.wasMultiple=!!o.multiple;var d=o.value;d!=null?ao(i,!!o.multiple,d,!1):h!==!!o.multiple&&(o.defaultValue!=null?ao(i,!!o.multiple,o.defaultValue,!0):ao(i,!!o.multiple,o.multiple?[]:"",!1))}i[Qs]=o}catch(y){Ze(e,e.return,y)}}break;case 6:if(Er(t,e),Rr(e),n&4){if(e.stateNode===null)throw Error(A(162));i=e.stateNode,o=e.memoizedProps;try{i.nodeValue=o}catch(y){Ze(e,e.return,y)}}break;case 3:if(Er(t,e),Rr(e),n&4&&r!==null&&r.memoizedState.isDehydrated)try{qs(t.containerInfo)}catch(y){Ze(e,e.return,y)}break;case 4:Er(t,e),Rr(e);break;case 13:Er(t,e),Rr(e),i=e.child,i.flags&8192&&(o=i.memoizedState!==null,i.stateNode.isHidden=o,!o||i.alternate!==null&&i.alternate.memoizedState!==null||(Op=Ke())),n&4&&Dy(e);break;case 22:if(c=r!==null&&r.memoizedState!==null,e.mode&1?(Ot=(u=Ot)||c,Er(t,e),Ot=u):Er(t,e),Rr(e),n&8192){if(u=e.memoizedState!==null,(e.stateNode.isHidden=u)&&!c&&(e.mode&1)!==0)for(U=e,c=e.child;c!==null;){for(f=U=c;U!==null;){switch(h=U,d=h.child,h.tag){case 0:case 11:case 14:case 15:Bs(4,h,h.return);break;case 1:oo(h,h.return);var g=h.stateNode;if(typeof g.componentWillUnmount=="function"){n=h,r=h.return;try{t=n,g.props=t.memoizedProps,g.state=t.memoizedState,g.componentWillUnmount()}catch(y){Ze(n,r,y)}}break;case 5:oo(h,h.return);break;case 22:if(h.memoizedState!==null){Uy(f);continue}}d!==null?(d.return=h,U=d):Uy(f)}c=c.sibling}e:for(c=null,f=e;;){if(f.tag===5){if(c===null){c=f;try{i=f.stateNode,u?(o=i.style,typeof o.setProperty=="function"?o.setProperty("display","none","important"):o.display="none"):(a=f.stateNode,l=f.memoizedProps.style,s=l!=null&&l.hasOwnProperty("display")?l.display:null,a.style.display=rg("display",s))}catch(y){Ze(e,e.return,y)}}}else if(f.tag===6){if(c===null)try{f.stateNode.nodeValue=u?"":f.memoizedProps}catch(y){Ze(e,e.return,y)}}else if((f.tag!==22&&f.tag!==23||f.memoizedState===null||f===e)&&f.child!==null){f.child.return=f,f=f.child;continue}if(f===e)break e;for(;f.sibling===null;){if(f.return===null||f.return===e)break e;c===f&&(c=null),f=f.return}c===f&&(c=null),f.sibling.return=f.return,f=f.sibling}}break;case 19:Er(t,e),Rr(e),n&4&&Dy(e);break;case 21:break;default:Er(t,e),Rr(e)}}function Rr(e){var t=e.flags;if(t&2){try{e:{for(var r=e.return;r!==null;){if(Mv(r)){var n=r;break e}r=r.return}throw Error(A(160))}switch(n.tag){case 5:var i=n.stateNode;n.flags&32&&(js(i,""),n.flags&=-33);var o=Ly(e);Wd(e,o,i);break;case 3:case 4:var s=n.stateNode.containerInfo,a=Ly(e);$d(e,a,s);break;default:throw Error(A(161))}}catch(l){Ze(e,e.return,l)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function _T(e,t,r){U=e,Av(e,t,r)}function Av(e,t,r){for(var n=(e.mode&1)!==0;U!==null;){var i=U,o=i.child;if(i.tag===22&&n){var s=i.memoizedState!==null||Hl;if(!s){var a=i.alternate,l=a!==null&&a.memoizedState!==null||Ot;a=Hl;var u=Ot;if(Hl=s,(Ot=l)&&!u)for(U=i;U!==null;)s=U,l=s.child,s.tag===22&&s.memoizedState!==null?Hy(i):l!==null?(l.return=s,U=l):Hy(i);for(;o!==null;)U=o,Av(o,t,r),o=o.sibling;U=i,Hl=a,Ot=u}By(e,t,r)}else(i.subtreeFlags&8772)!==0&&o!==null?(o.return=i,U=o):By(e,t,r)}}function By(e){for(;U!==null;){var t=U;if((t.flags&8772)!==0){var r=t.alternate;try{if((t.flags&8772)!==0)switch(t.tag){case 0:case 11:case 15:Ot||Pu(5,t);break;case 1:var n=t.stateNode;if(t.flags&4&&!Ot)if(r===null)n.componentDidMount();else{var i=t.elementType===t.type?r.memoizedProps:xr(t.type,r.memoizedProps);n.componentDidUpdate(i,r.memoizedState,n.__reactInternalSnapshotBeforeUpdate)}var o=t.updateQueue;o!==null&&Ey(t,o,n);break;case 3:var s=t.updateQueue;if(s!==null){if(r=null,t.child!==null)switch(t.child.tag){case 5:r=t.child.stateNode;break;case 1:r=t.child.stateNode}Ey(t,s,r)}break;case 5:var a=t.stateNode;if(r===null&&t.flags&4){r=a;var l=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":l.autoFocus&&r.focus();break;case"img":l.src&&(r.src=l.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var u=t.alternate;if(u!==null){var c=u.memoizedState;if(c!==null){var f=c.dehydrated;f!==null&&qs(f)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(A(163))}Ot||t.flags&512&&Vd(t)}catch(h){Ze(t,t.return,h)}}if(t===e){U=null;break}if(r=t.sibling,r!==null){r.return=t.return,U=r;break}U=t.return}}function Uy(e){for(;U!==null;){var t=U;if(t===e){U=null;break}var r=t.sibling;if(r!==null){r.return=t.return,U=r;break}U=t.return}}function Hy(e){for(;U!==null;){var t=U;try{switch(t.tag){case 0:case 11:case 15:var r=t.return;try{Pu(4,t)}catch(l){Ze(t,r,l)}break;case 1:var n=t.stateNode;if(typeof n.componentDidMount=="function"){var i=t.return;try{n.componentDidMount()}catch(l){Ze(t,i,l)}}var o=t.return;try{Vd(t)}catch(l){Ze(t,o,l)}break;case 5:var s=t.return;try{Vd(t)}catch(l){Ze(t,s,l)}}}catch(l){Ze(t,t.return,l)}if(t===e){U=null;break}var a=t.sibling;if(a!==null){a.return=t.return,U=a;break}U=t.return}}var TT=Math.ceil,gu=ln.ReactCurrentDispatcher,Mp=ln.ReactCurrentOwner,lr=ln.ReactCurrentBatchConfig,ye=0,yt=null,nt=null,Tt=0,Zt=0,so=jn(0),ut=0,na=null,Ei=0,Ou=0,Pp=0,Us=null,Bt=null,Op=0,So=1/0,Jr=null,vu=!1,qd=null,Ln=null,zl=!1,Pn=null,wu=0,Hs=0,Gd=null,Yl=-1,Xl=0;function Rt(){return(ye&6)!==0?Ke():Yl!==-1?Yl:Yl=Ke()}function Dn(e){return(e.mode&1)===0?1:(ye&2)!==0&&Tt!==0?Tt&-Tt:aT.transition!==null?(Xl===0&&(Xl=mg()),Xl):(e=Te,e!==0||(e=window.event,e=e===void 0?16:xg(e.type)),e)}function br(e,t,r,n){if(50<Hs)throw Hs=0,Gd=null,Error(A(185));ia(e,r,n),((ye&2)===0||e!==yt)&&(e===yt&&((ye&2)===0&&(Ou|=r),ut===4&&In(e,Tt)),jt(e,n),r===1&&ye===0&&(t.mode&1)===0&&(So=Ke()+500,ku&&Vn()))}function jt(e,t){var r=e.callbackNode;u_(e,t);var n=ru(e,e===yt?Tt:0);if(n===0)r!==null&&Z0(r),e.callbackNode=null,e.callbackPriority=0;else if(t=n&-n,e.callbackPriority!==t){if(r!=null&&Z0(r),t===1)e.tag===0?sT(zy.bind(null,e)):zg(zy.bind(null,e)),rT(function(){(ye&6)===0&&Vn()}),r=null;else{switch(yg(n)){case 1:r=np;break;case 4:r=pg;break;case 16:r=tu;break;case 536870912:r=hg;break;default:r=tu}r=Hv(r,Nv.bind(null,e))}e.callbackPriority=t,e.callbackNode=r}}function Nv(e,t){if(Yl=-1,Xl=0,(ye&6)!==0)throw Error(A(327));var r=e.callbackNode;if(po()&&e.callbackNode!==r)return null;var n=ru(e,e===yt?Tt:0);if(n===0)return null;if((n&30)!==0||(n&e.expiredLanes)!==0||t)t=Su(e,n);else{t=n;var i=ye;ye|=2;var o=Rv();(yt!==e||Tt!==t)&&(Jr=null,So=Ke()+500,yi(e,t));do try{kT();break}catch(a){Fv(e,a)}while(1);yp(),gu.current=o,ye=i,nt!==null?t=0:(yt=null,Tt=0,t=ut)}if(t!==0){if(t===2&&(i=Sd(e),i!==0&&(n=i,t=Zd(e,i))),t===1)throw r=na,yi(e,0),In(e,n),jt(e,Ke()),r;if(t===6)In(e,n);else{if(i=e.current.alternate,(n&30)===0&&!CT(i)&&(t=Su(e,n),t===2&&(o=Sd(e),o!==0&&(n=o,t=Zd(e,o))),t===1))throw r=na,yi(e,0),In(e,n),jt(e,Ke()),r;switch(e.finishedWork=i,e.finishedLanes=n,t){case 0:case 1:throw Error(A(345));case 2:di(e,Bt,Jr);break;case 3:if(In(e,n),(n&130023424)===n&&(t=Op+500-Ke(),10<t)){if(ru(e,0)!==0)break;if(i=e.suspendedLanes,(i&n)!==n){Rt(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=Id(di.bind(null,e,Bt,Jr),t);break}di(e,Bt,Jr);break;case 4:if(In(e,n),(n&4194240)===n)break;for(t=e.eventTimes,i=-1;0<n;){var s=31-Cr(n);o=1<<s,s=t[s],s>i&&(i=s),n&=~o}if(n=i,n=Ke()-n,n=(120>n?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*TT(n/1960))-n,10<n){e.timeoutHandle=Id(di.bind(null,e,Bt,Jr),n);break}di(e,Bt,Jr);break;case 5:di(e,Bt,Jr);break;default:throw Error(A(329))}}}return jt(e,Ke()),e.callbackNode===r?Nv.bind(null,e):null}function Zd(e,t){var r=Us;return e.current.memoizedState.isDehydrated&&(yi(e,t).flags|=256),e=Su(e,t),e!==2&&(t=Bt,Bt=r,t!==null&&Yd(t)),e}function Yd(e){Bt===null?Bt=e:Bt.push.apply(Bt,e)}function CT(e){for(var t=e;;){if(t.flags&16384){var r=t.updateQueue;if(r!==null&&(r=r.stores,r!==null))for(var n=0;n<r.length;n++){var i=r[n],o=i.getSnapshot;i=i.value;try{if(!kr(o(),i))return!1}catch(s){return!1}}}if(r=t.child,t.subtreeFlags&16384&&r!==null)r.return=t,t=r;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function In(e,t){for(t&=~Pp,t&=~Ou,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var r=31-Cr(t),n=1<<r;e[r]=-1,t&=~n}}function zy(e){if((ye&6)!==0)throw Error(A(327));po();var t=ru(e,0);if((t&1)===0)return jt(e,Ke()),null;var r=Su(e,t);if(e.tag!==0&&r===2){var n=Sd(e);n!==0&&(t=n,r=Zd(e,n))}if(r===1)throw r=na,yi(e,0),In(e,t),jt(e,Ke()),r;if(r===6)throw Error(A(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,di(e,Bt,Jr),jt(e,Ke()),null}function Ap(e,t){var r=ye;ye|=1;try{return e(t)}finally{ye=r,ye===0&&(So=Ke()+500,ku&&Vn())}}function xi(e){Pn!==null&&Pn.tag===0&&(ye&6)===0&&po();var t=ye;ye|=1;var r=lr.transition,n=Te;try{if(lr.transition=null,Te=1,e)return e()}finally{Te=n,lr.transition=r,ye=t,(ye&6)===0&&Vn()}}function Np(){Zt=so.current,Re(so)}function yi(e,t){e.finishedWork=null,e.finishedLanes=0;var r=e.timeoutHandle;if(r!==-1&&(e.timeoutHandle=-1,tT(r)),nt!==null)for(r=nt.return;r!==null;){var n=r;switch(pp(n),n.tag){case 1:n=n.type.childContextTypes,n!=null&&au();break;case 3:vo(),Re(Ht),Re(At),xp();break;case 5:Ep(n);break;case 4:vo();break;case 13:Re(Ve);break;case 19:Re(Ve);break;case 10:gp(n.type._context);break;case 22:case 23:Np()}r=r.return}if(yt=e,nt=e=Bn(e.current,null),Tt=Zt=t,ut=0,na=null,Pp=Ou=Ei=0,Bt=Us=null,hi!==null){for(t=0;t<hi.length;t++)if(r=hi[t],n=r.interleaved,n!==null){r.interleaved=null;var i=n.next,o=r.pending;if(o!==null){var s=o.next;o.next=i,n.next=s}r.pending=n}hi=null}return e}function Fv(e,t){do{var r=nt;try{if(yp(),ql.current=yu,mu){for(var n=$e.memoizedState;n!==null;){var i=n.queue;i!==null&&(i.pending=null),n=n.next}mu=!1}if(Si=0,mt=lt=$e=null,Ds=!1,ea=0,Mp.current=null,r===null||r.return===null){ut=1,na=t,nt=null;break}e:{var o=e,s=r.return,a=r,l=t;if(t=Tt,a.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){var u=l,c=a,f=c.tag;if((c.mode&1)===0&&(f===0||f===11||f===15)){var h=c.alternate;h?(c.updateQueue=h.updateQueue,c.memoizedState=h.memoizedState,c.lanes=h.lanes):(c.updateQueue=null,c.memoizedState=null)}var d=Iy(s);if(d!==null){d.flags&=-257,My(d,s,a,o,t),d.mode&1&&ky(o,u,t),t=d,l=u;var g=t.updateQueue;if(g===null){var y=new Set;y.add(l),t.updateQueue=y}else g.add(l);break e}else{if((t&1)===0){ky(o,u,t),Fp();break e}l=Error(A(426))}}else if(De&&a.mode&1){var x=Iy(s);if(x!==null){(x.flags&65536)===0&&(x.flags|=256),My(x,s,a,o,t),hp(wo(l,a));break e}}o=l=wo(l,a),ut!==4&&(ut=2),Us===null?Us=[o]:Us.push(o),o=s;do{switch(o.tag){case 3:o.flags|=65536,t&=-t,o.lanes|=t;var m=gv(o,l,t);Sy(o,m);break e;case 1:a=l;var p=o.type,v=o.stateNode;if((o.flags&128)===0&&(typeof p.getDerivedStateFromError=="function"||v!==null&&typeof v.componentDidCatch=="function"&&(Ln===null||!Ln.has(v)))){o.flags|=65536,t&=-t,o.lanes|=t;var w=vv(o,a,t);Sy(o,w);break e}}o=o.return}while(o!==null)}Dv(r)}catch(T){t=T,nt===r&&r!==null&&(nt=r=r.return);continue}break}while(1)}function Rv(){var e=gu.current;return gu.current=yu,e===null?yu:e}function Fp(){(ut===0||ut===3||ut===2)&&(ut=4),yt===null||(Ei&268435455)===0&&(Ou&268435455)===0||In(yt,Tt)}function Su(e,t){var r=ye;ye|=2;var n=Rv();(yt!==e||Tt!==t)&&(Jr=null,yi(e,t));do try{bT();break}catch(i){Fv(e,i)}while(1);if(yp(),ye=r,gu.current=n,nt!==null)throw Error(A(261));return yt=null,Tt=0,ut}function bT(){for(;nt!==null;)Lv(nt)}function kT(){for(;nt!==null&&!e_();)Lv(nt)}function Lv(e){var t=Uv(e.alternate,e,Zt);e.memoizedProps=e.pendingProps,t===null?Dv(e):nt=t,Mp.current=null}function Dv(e){var t=e;do{var r=t.alternate;if(e=t.return,(t.flags&32768)===0){if(r=wT(r,t,Zt),r!==null){nt=r;return}}else{if(r=ST(r,t),r!==null){r.flags&=32767,nt=r;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{ut=6,nt=null;return}}if(t=t.sibling,t!==null){nt=t;return}nt=t=e}while(t!==null);ut===0&&(ut=5)}function di(e,t,r){var n=Te,i=lr.transition;try{lr.transition=null,Te=1,IT(e,t,r,n)}finally{lr.transition=i,Te=n}return null}function IT(e,t,r,n){do po();while(Pn!==null);if((ye&6)!==0)throw Error(A(327));r=e.finishedWork;var i=e.finishedLanes;if(r===null)return null;if(e.finishedWork=null,e.finishedLanes=0,r===e.current)throw Error(A(177));e.callbackNode=null,e.callbackPriority=0;var o=r.lanes|r.childLanes;if(c_(e,o),e===yt&&(nt=yt=null,Tt=0),(r.subtreeFlags&2064)===0&&(r.flags&2064)===0||zl||(zl=!0,Hv(tu,function(){return po(),null})),o=(r.flags&15990)!==0,(r.subtreeFlags&15990)!==0||o){o=lr.transition,lr.transition=null;var s=Te;Te=1;var a=ye;ye|=4,Mp.current=null,xT(e,r),Ov(r,e),X_(bd),nu=!!Cd,bd=Cd=null,e.current=r,_T(r,e,i),t_(),ye=a,Te=s,lr.transition=o}else e.current=r;if(zl&&(zl=!1,Pn=e,wu=i),o=e.pendingLanes,o===0&&(Ln=null),i_(r.stateNode,n),jt(e,Ke()),t!==null)for(n=e.onRecoverableError,r=0;r<t.length;r++)i=t[r],n(i.value,{componentStack:i.stack,digest:i.digest});if(vu)throw vu=!1,e=qd,qd=null,e;return(wu&1)!==0&&e.tag!==0&&po(),o=e.pendingLanes,(o&1)!==0?e===Gd?Hs++:(Hs=0,Gd=e):Hs=0,Vn(),null}function po(){if(Pn!==null){var e=yg(wu),t=lr.transition,r=Te;try{if(lr.transition=null,Te=16>e?16:e,Pn===null)var n=!1;else{if(e=Pn,Pn=null,wu=0,(ye&6)!==0)throw Error(A(331));var i=ye;for(ye|=4,U=e.current;U!==null;){var o=U,s=o.child;if((U.flags&16)!==0){var a=o.deletions;if(a!==null){for(var l=0;l<a.length;l++){var u=a[l];for(U=u;U!==null;){var c=U;switch(c.tag){case 0:case 11:case 15:Bs(8,c,o)}var f=c.child;if(f!==null)f.return=c,U=f;else for(;U!==null;){c=U;var h=c.sibling,d=c.return;if(Iv(c),c===u){U=null;break}if(h!==null){h.return=d,U=h;break}U=d}}}var g=o.alternate;if(g!==null){var y=g.child;if(y!==null){g.child=null;do{var x=y.sibling;y.sibling=null,y=x}while(y!==null)}}U=o}}if((o.subtreeFlags&2064)!==0&&s!==null)s.return=o,U=s;else e:for(;U!==null;){if(o=U,(o.flags&2048)!==0)switch(o.tag){case 0:case 11:case 15:Bs(9,o,o.return)}var m=o.sibling;if(m!==null){m.return=o.return,U=m;break e}U=o.return}}var p=e.current;for(U=p;U!==null;){s=U;var v=s.child;if((s.subtreeFlags&2064)!==0&&v!==null)v.return=s,U=v;else e:for(s=p;U!==null;){if(a=U,(a.flags&2048)!==0)try{switch(a.tag){case 0:case 11:case 15:Pu(9,a)}}catch(T){Ze(a,a.return,T)}if(a===s){U=null;break e}var w=a.sibling;if(w!==null){w.return=a.return,U=w;break e}U=a.return}}if(ye=i,Vn(),Br&&typeof Br.onPostCommitFiberRoot=="function")try{Br.onPostCommitFiberRoot(xu,e)}catch(T){}n=!0}return n}finally{Te=r,lr.transition=t}}return!1}function jy(e,t,r){t=wo(r,t),t=gv(e,t,1),e=Rn(e,t,1),t=Rt(),e!==null&&(ia(e,1,t),jt(e,t))}function Ze(e,t,r){if(e.tag===3)jy(e,e,r);else for(;t!==null;){if(t.tag===3){jy(t,e,r);break}else if(t.tag===1){var n=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof n.componentDidCatch=="function"&&(Ln===null||!Ln.has(n))){e=wo(r,e),e=vv(t,e,1),t=Rn(t,e,1),e=Rt(),t!==null&&(ia(t,1,e),jt(t,e));break}}t=t.return}}function MT(e,t,r){var n=e.pingCache;n!==null&&n.delete(t),t=Rt(),e.pingedLanes|=e.suspendedLanes&r,yt===e&&(Tt&r)===r&&(ut===4||ut===3&&(Tt&130023424)===Tt&&500>Ke()-Op?yi(e,0):Pp|=r),jt(e,t)}function Bv(e,t){t===0&&((e.mode&1)===0?t=1:(t=kl,kl<<=1,(kl&130023424)===0&&(kl=4194304)));var r=Rt();e=sn(e,t),e!==null&&(ia(e,t,r),jt(e,r))}function PT(e){var t=e.memoizedState,r=0;t!==null&&(r=t.retryLane),Bv(e,r)}function OT(e,t){var r=0;switch(e.tag){case 13:var n=e.stateNode,i=e.memoizedState;i!==null&&(r=i.retryLane);break;case 19:n=e.stateNode;break;default:throw Error(A(314))}n!==null&&n.delete(t),Bv(e,r)}var Uv;Uv=function(e,t,r){if(e!==null)if(e.memoizedProps!==t.pendingProps||Ht.current)Ut=!0;else{if((e.lanes&r)===0&&(t.flags&128)===0)return Ut=!1,vT(e,t,r);Ut=(e.flags&131072)!==0}else Ut=!1,De&&(t.flags&1048576)!==0&&jg(t,cu,t.index);switch(t.lanes=0,t.tag){case 2:var n=t.type;Zl(e,t),e=t.pendingProps;var i=mo(t,At.current);fo(t,r),i=Tp(null,t,n,e,i,r);var o=Cp();return t.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,zt(n)?(o=!0,lu(t)):o=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,wp(t),i.updater=Iu,t.stateNode=i,i._reactInternals=t,Rd(t,n,e,r),t=Bd(null,t,n,!0,o,r)):(t.tag=0,De&&o&&dp(t),Ft(null,t,i,r),t=t.child),t;case 16:n=t.elementType;e:{switch(Zl(e,t),e=t.pendingProps,i=n._init,n=i(n._payload),t.type=n,i=t.tag=NT(n),e=xr(n,e),i){case 0:t=Dd(null,t,n,e,r);break e;case 1:t=Ay(null,t,n,e,r);break e;case 11:t=Py(null,t,n,e,r);break e;case 14:t=Oy(null,t,n,xr(n.type,e),r);break e}throw Error(A(306,n,""))}return t;case 0:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:xr(n,i),Dd(e,t,n,i,r);case 1:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:xr(n,i),Ay(e,t,n,i,r);case 3:e:{if(xv(t),e===null)throw Error(A(387));n=t.pendingProps,o=t.memoizedState,i=o.element,qg(e,t),pu(t,n,null,r);var s=t.memoizedState;if(n=s.element,o.isDehydrated)if(o={element:n,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){i=wo(Error(A(423)),t),t=Ny(e,t,n,r,i);break e}else if(n!==i){i=wo(Error(A(424)),t),t=Ny(e,t,n,r,i);break e}else for(Yt=Fn(t.stateNode.containerInfo.firstChild),Xt=t,De=!0,Tr=null,r=Xg(t,null,n,r),t.child=r;r;)r.flags=r.flags&-3|4096,r=r.sibling;else{if(yo(),n===i){t=an(e,t,r);break e}Ft(e,t,n,r)}t=t.child}return t;case 5:return Qg(t),e===null&&Ad(t),n=t.type,i=t.pendingProps,o=e!==null?e.memoizedProps:null,s=i.children,kd(n,i)?s=null:o!==null&&kd(n,o)&&(t.flags|=32),Ev(e,t),Ft(e,t,s,r),t.child;case 6:return e===null&&Ad(t),null;case 13:return _v(e,t,r);case 4:return Sp(t,t.stateNode.containerInfo),n=t.pendingProps,e===null?t.child=go(t,null,n,r):Ft(e,t,n,r),t.child;case 11:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:xr(n,i),Py(e,t,n,i,r);case 7:return Ft(e,t,t.pendingProps,r),t.child;case 8:return Ft(e,t,t.pendingProps.children,r),t.child;case 12:return Ft(e,t,t.pendingProps.children,r),t.child;case 10:e:{if(n=t.type._context,i=t.pendingProps,o=t.memoizedProps,s=i.value,Ae(fu,n._currentValue),n._currentValue=s,o!==null)if(kr(o.value,s)){if(o.children===i.children&&!Ht.current){t=an(e,t,r);break e}}else for(o=t.child,o!==null&&(o.return=t);o!==null;){var a=o.dependencies;if(a!==null){s=o.child;for(var l=a.firstContext;l!==null;){if(l.context===n){if(o.tag===1){l=rn(-1,r&-r),l.tag=2;var u=o.updateQueue;if(u!==null){u=u.shared;var c=u.pending;c===null?l.next=l:(l.next=c.next,c.next=l),u.pending=l}}o.lanes|=r,l=o.alternate,l!==null&&(l.lanes|=r),Nd(o.return,r,t),a.lanes|=r;break}l=l.next}}else if(o.tag===10)s=o.type===t.type?null:o.child;else if(o.tag===18){if(s=o.return,s===null)throw Error(A(341));s.lanes|=r,a=s.alternate,a!==null&&(a.lanes|=r),Nd(s,r,t),s=o.sibling}else s=o.child;if(s!==null)s.return=o;else for(s=o;s!==null;){if(s===t){s=null;break}if(o=s.sibling,o!==null){o.return=s.return,s=o;break}s=s.return}o=s}Ft(e,t,i.children,r),t=t.child}return t;case 9:return i=t.type,n=t.pendingProps.children,fo(t,r),i=ur(i),n=n(i),t.flags|=1,Ft(e,t,n,r),t.child;case 14:return n=t.type,i=xr(n,t.pendingProps),i=xr(n.type,i),Oy(e,t,n,i,r);case 15:return wv(e,t,t.type,t.pendingProps,r);case 17:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:xr(n,i),Zl(e,t),t.tag=1,zt(n)?(e=!0,lu(t)):e=!1,fo(t,r),Zg(t,n,i),Rd(t,n,i,r),Bd(null,t,n,!0,e,r);case 19:return Tv(e,t,r);case 22:return Sv(e,t,r)}throw Error(A(156,t.tag))};function Hv(e,t){return dg(e,t)}function AT(e,t,r,n){this.tag=e,this.key=r,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=n,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function ar(e,t,r,n){return new AT(e,t,r,n)}function Rp(e){return e=e.prototype,!(!e||!e.isReactComponent)}function NT(e){if(typeof e=="function")return Rp(e)?1:0;if(e!=null){if(e=e.$$typeof,e===ep)return 11;if(e===tp)return 14}return 2}function Bn(e,t){var r=e.alternate;return r===null?(r=ar(e.tag,t,e.key,e.mode),r.elementType=e.elementType,r.type=e.type,r.stateNode=e.stateNode,r.alternate=e,e.alternate=r):(r.pendingProps=t,r.type=e.type,r.flags=0,r.subtreeFlags=0,r.deletions=null),r.flags=e.flags&14680064,r.childLanes=e.childLanes,r.lanes=e.lanes,r.child=e.child,r.memoizedProps=e.memoizedProps,r.memoizedState=e.memoizedState,r.updateQueue=e.updateQueue,t=e.dependencies,r.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},r.sibling=e.sibling,r.index=e.index,r.ref=e.ref,r}function Ql(e,t,r,n,i,o){var s=2;if(n=e,typeof e=="function")Rp(e)&&(s=1);else if(typeof e=="string")s=5;else e:switch(e){case Xi:return gi(r.children,i,o,t);case Kd:s=8,i|=8;break;case od:return e=ar(12,r,t,i|2),e.elementType=od,e.lanes=o,e;case sd:return e=ar(13,r,t,i),e.elementType=sd,e.lanes=o,e;case ad:return e=ar(19,r,t,i),e.elementType=ad,e.lanes=o,e;case Yy:return Au(r,i,o,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Gy:s=10;break e;case Zy:s=9;break e;case ep:s=11;break e;case tp:s=14;break e;case Cn:s=16,n=null;break e}throw Error(A(130,e==null?e:typeof e,""))}return t=ar(s,r,t,i),t.elementType=e,t.type=n,t.lanes=o,t}function gi(e,t,r,n){return e=ar(7,e,n,t),e.lanes=r,e}function Au(e,t,r,n){return e=ar(22,e,n,t),e.elementType=Yy,e.lanes=r,e.stateNode={isHidden:!1},e}function rd(e,t,r){return e=ar(6,e,null,t),e.lanes=r,e}function nd(e,t,r){return t=ar(4,e.children!==null?e.children:[],e.key,t),t.lanes=r,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function FT(e,t,r,n,i){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Hf(0),this.expirationTimes=Hf(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Hf(0),this.identifierPrefix=n,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function Lp(e,t,r,n,i,o,s,a,l){return e=new FT(e,t,r,a,l),t===1?(t=1,o===!0&&(t|=8)):t=0,o=ar(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:n,isDehydrated:r,cache:null,transitions:null,pendingSuspenseBoundaries:null},wp(o),e}function RT(e,t,r){var n=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:Yi,key:n==null?null:""+n,children:e,containerInfo:t,implementation:r}}function zv(e){if(!e)return Hn;e=e._reactInternals;e:{if(Ti(e)!==e||e.tag!==1)throw Error(A(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(zt(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(A(171))}if(e.tag===1){var r=e.type;if(zt(r))return Hg(e,r,t)}return t}function jv(e,t,r,n,i,o,s,a,l){return e=Lp(r,n,!0,e,i,o,s,a,l),e.context=zv(null),r=e.current,n=Rt(),i=Dn(r),o=rn(n,i),o.callback=t!=null?t:null,Rn(r,o,i),e.current.lanes=i,ia(e,i,n),jt(e,n),e}function Nu(e,t,r,n){var i=t.current,o=Rt(),s=Dn(i);return r=zv(r),t.context===null?t.context=r:t.pendingContext=r,t=rn(o,s),t.payload={element:e},n=n===void 0?null:n,n!==null&&(t.callback=n),e=Rn(i,t,s),e!==null&&(br(e,i,s,o),Wl(e,i,s)),s}function Eu(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function Vy(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var r=e.retryLane;e.retryLane=r!==0&&r<t?r:t}}function Dp(e,t){Vy(e,t),(e=e.alternate)&&Vy(e,t)}function LT(){return null}var Vv=typeof reportError=="function"?reportError:function(e){console.error(e)};function Bp(e){this._internalRoot=e}Fu.prototype.render=Bp.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(A(409));Nu(e,t,null,null)};Fu.prototype.unmount=Bp.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;xi(function(){Nu(null,e,null,null)}),t[on]=null}};function Fu(e){this._internalRoot=e}Fu.prototype.unstable_scheduleHydration=function(e){if(e){var t=wg();e={blockedOn:null,target:e,priority:t};for(var r=0;r<kn.length&&t!==0&&t<kn[r].priority;r++);kn.splice(r,0,e),r===0&&Eg(e)}};function Up(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function Ru(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function $y(){}function DT(e,t,r,n,i){if(i){if(typeof n=="function"){var o=n;n=function(){var u=Eu(s);o.call(u)}}var s=jv(t,n,e,0,null,!1,!1,"",$y);return e._reactRootContainer=s,e[on]=s.current,Ys(e.nodeType===8?e.parentNode:e),xi(),s}for(;i=e.lastChild;)e.removeChild(i);if(typeof n=="function"){var a=n;n=function(){var u=Eu(l);a.call(u)}}var l=Lp(e,0,!1,null,null,!1,!1,"",$y);return e._reactRootContainer=l,e[on]=l.current,Ys(e.nodeType===8?e.parentNode:e),xi(function(){Nu(t,l,r,n)}),l}function Lu(e,t,r,n,i){var o=r._reactRootContainer;if(o){var s=o;if(typeof i=="function"){var a=i;i=function(){var l=Eu(s);a.call(l)}}Nu(t,s,e,i)}else s=DT(r,t,e,i,n);return Eu(s)}gg=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var r=Ps(t.pendingLanes);r!==0&&(ip(t,r|1),jt(t,Ke()),(ye&6)===0&&(So=Ke()+500,Vn()))}break;case 13:xi(function(){var n=sn(e,1);if(n!==null){var i=Rt();br(n,e,1,i)}}),Dp(e,1)}};op=function(e){if(e.tag===13){var t=sn(e,134217728);if(t!==null){var r=Rt();br(t,e,134217728,r)}Dp(e,134217728)}};vg=function(e){if(e.tag===13){var t=Dn(e),r=sn(e,t);if(r!==null){var n=Rt();br(r,e,t,n)}Dp(e,t)}};wg=function(){return Te};Sg=function(e,t){var r=Te;try{return Te=e,t()}finally{Te=r}};gd=function(e,t,r){switch(t){case"input":if(cd(e,r),t=r.name,r.type==="radio"&&t!=null){for(r=e;r.parentNode;)r=r.parentNode;for(r=r.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<r.length;t++){var n=r[t];if(n!==e&&n.form===e.form){var i=bu(n);if(!i)throw Error(A(90));Qy(n),cd(n,i)}}}break;case"textarea":Ky(e,r);break;case"select":t=r.value,t!=null&&ao(e,!!r.multiple,t,!1)}};sg=Ap;ag=xi;var BT={usingClientEntryPoint:!1,Events:[sa,eo,bu,ig,og,Ap]},bs={findFiberByHostInstance:pi,bundleType:0,version:"18.2.0",rendererPackageName:"react-dom"},UT={bundleType:bs.bundleType,version:bs.version,rendererPackageName:bs.rendererPackageName,rendererConfig:bs.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:ln.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=cg(e),e===null?null:e.stateNode},findFiberByHostInstance:bs.findFiberByHostInstance||LT,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.2.0-next-9e3b772b8-20220608"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__!="undefined"&&(ks=__REACT_DEVTOOLS_GLOBAL_HOOK__,!ks.isDisabled&&ks.supportsFiber))try{xu=ks.inject(UT),Br=ks}catch(e){}var ks;Kt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=BT;Kt.createPortal=function(e,t){var r=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Up(t))throw Error(A(200));return RT(e,t,null,r)};Kt.createRoot=function(e,t){if(!Up(e))throw Error(A(299));var r=!1,n="",i=Vv;return t!=null&&(t.unstable_strictMode===!0&&(r=!0),t.identifierPrefix!==void 0&&(n=t.identifierPrefix),t.onRecoverableError!==void 0&&(i=t.onRecoverableError)),t=Lp(e,1,!1,null,null,r,!1,n,i),e[on]=t.current,Ys(e.nodeType===8?e.parentNode:e),new Bp(t)};Kt.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(A(188)):(e=Object.keys(e).join(","),Error(A(268,e)));return e=cg(t),e=e===null?null:e.stateNode,e};Kt.flushSync=function(e){return xi(e)};Kt.hydrate=function(e,t,r){if(!Ru(t))throw Error(A(200));return Lu(null,e,t,!0,r)};Kt.hydrateRoot=function(e,t,r){if(!Up(e))throw Error(A(405));var n=r!=null&&r.hydratedSources||null,i=!1,o="",s=Vv;if(r!=null&&(r.unstable_strictMode===!0&&(i=!0),r.identifierPrefix!==void 0&&(o=r.identifierPrefix),r.onRecoverableError!==void 0&&(s=r.onRecoverableError)),t=jv(t,null,e,1,r!=null?r:null,i,!1,o,s),e[on]=t.current,Ys(e),n)for(e=0;e<n.length;e++)r=n[e],i=r._getVersion,i=i(r._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[r,i]:t.mutableSourceEagerHydrationData.push(r,i);return new Fu(t)};Kt.render=function(e,t,r){if(!Ru(t))throw Error(A(200));return Lu(null,e,t,!1,r)};Kt.unmountComponentAtNode=function(e){if(!Ru(e))throw Error(A(40));return e._reactRootContainer?(xi(function(){Lu(null,null,e,!1,function(){e._reactRootContainer=null,e[on]=null})}),!0):!1};Kt.unstable_batchedUpdates=Ap;Kt.unstable_renderSubtreeIntoContainer=function(e,t,r,n){if(!Ru(r))throw Error(A(200));if(e==null||e._reactInternals===void 0)throw Error(A(38));return Lu(e,t,r,!1,n)};Kt.version="18.2.0-next-9e3b772b8-20220608"});var Gv=ne((X6,qv)=>{"use strict";function Wv(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__=="undefined"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Wv)}catch(e){console.error(e)}}Wv(),qv.exports=$v()});var Yv=ne(Ce=>{"use strict";var Hp=Symbol.for("react.element"),zp=Symbol.for("react.portal"),Du=Symbol.for("react.fragment"),Bu=Symbol.for("react.strict_mode"),Uu=Symbol.for("react.profiler"),Hu=Symbol.for("react.provider"),zu=Symbol.for("react.context"),HT=Symbol.for("react.server_context"),ju=Symbol.for("react.forward_ref"),Vu=Symbol.for("react.suspense"),$u=Symbol.for("react.suspense_list"),Wu=Symbol.for("react.memo"),qu=Symbol.for("react.lazy"),zT=Symbol.for("react.offscreen"),Zv;Zv=Symbol.for("react.module.reference");function fr(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case Hp:switch(e=e.type,e){case Du:case Uu:case Bu:case Vu:case $u:return e;default:switch(e=e&&e.$$typeof,e){case HT:case zu:case ju:case qu:case Wu:case Hu:return e;default:return t}}case zp:return t}}}Ce.ContextConsumer=zu;Ce.ContextProvider=Hu;Ce.Element=Hp;Ce.ForwardRef=ju;Ce.Fragment=Du;Ce.Lazy=qu;Ce.Memo=Wu;Ce.Portal=zp;Ce.Profiler=Uu;Ce.StrictMode=Bu;Ce.Suspense=Vu;Ce.SuspenseList=$u;Ce.isAsyncMode=function(){return!1};Ce.isConcurrentMode=function(){return!1};Ce.isContextConsumer=function(e){return fr(e)===zu};Ce.isContextProvider=function(e){return fr(e)===Hu};Ce.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===Hp};Ce.isForwardRef=function(e){return fr(e)===ju};Ce.isFragment=function(e){return fr(e)===Du};Ce.isLazy=function(e){return fr(e)===qu};Ce.isMemo=function(e){return fr(e)===Wu};Ce.isPortal=function(e){return fr(e)===zp};Ce.isProfiler=function(e){return fr(e)===Uu};Ce.isStrictMode=function(e){return fr(e)===Bu};Ce.isSuspense=function(e){return fr(e)===Vu};Ce.isSuspenseList=function(e){return fr(e)===$u};Ce.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===Du||e===Uu||e===Bu||e===Vu||e===$u||e===zT||typeof e=="object"&&e!==null&&(e.$$typeof===qu||e.$$typeof===Wu||e.$$typeof===Hu||e.$$typeof===zu||e.$$typeof===ju||e.$$typeof===Zv||e.getModuleId!==void 0)};Ce.typeOf=fr});var Qv=ne((J6,Xv)=>{"use strict";Xv.exports=Yv()});var Kv=ne((K6,Jv)=>{Jv.exports=function(t,r,n,i){var o=n?n.call(i,t,r):void 0;if(o!==void 0)return!!o;if(t===r)return!0;if(typeof t!="object"||!t||typeof r!="object"||!r)return!1;var s=Object.keys(t),a=Object.keys(r);if(s.length!==a.length)return!1;for(var l=Object.prototype.hasOwnProperty.bind(r),u=0;u<s.length;u++){var c=s[u];if(!l(c))return!1;var f=t[c],h=r[c];if(o=n?n.call(i,f,h,c):void 0,o===!1||o===void 0&&f!==h)return!1}return!0}});var i1=ne(be=>{"use strict";var gt=typeof Symbol=="function"&&Symbol.for,Vp=gt?Symbol.for("react.element"):60103,$p=gt?Symbol.for("react.portal"):60106,Gu=gt?Symbol.for("react.fragment"):60107,Zu=gt?Symbol.for("react.strict_mode"):60108,Yu=gt?Symbol.for("react.profiler"):60114,Xu=gt?Symbol.for("react.provider"):60109,Qu=gt?Symbol.for("react.context"):60110,Wp=gt?Symbol.for("react.async_mode"):60111,Ju=gt?Symbol.for("react.concurrent_mode"):60111,Ku=gt?Symbol.for("react.forward_ref"):60112,ec=gt?Symbol.for("react.suspense"):60113,GT=gt?Symbol.for("react.suspense_list"):60120,tc=gt?Symbol.for("react.memo"):60115,rc=gt?Symbol.for("react.lazy"):60116,ZT=gt?Symbol.for("react.block"):60121,YT=gt?Symbol.for("react.fundamental"):60117,XT=gt?Symbol.for("react.responder"):60118,QT=gt?Symbol.for("react.scope"):60119;function er(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case Vp:switch(e=e.type,e){case Wp:case Ju:case Gu:case Yu:case Zu:case ec:return e;default:switch(e=e&&e.$$typeof,e){case Qu:case Ku:case rc:case tc:case Xu:return e;default:return t}}case $p:return t}}}function n1(e){return er(e)===Ju}be.AsyncMode=Wp;be.ConcurrentMode=Ju;be.ContextConsumer=Qu;be.ContextProvider=Xu;be.Element=Vp;be.ForwardRef=Ku;be.Fragment=Gu;be.Lazy=rc;be.Memo=tc;be.Portal=$p;be.Profiler=Yu;be.StrictMode=Zu;be.Suspense=ec;be.isAsyncMode=function(e){return n1(e)||er(e)===Wp};be.isConcurrentMode=n1;be.isContextConsumer=function(e){return er(e)===Qu};be.isContextProvider=function(e){return er(e)===Xu};be.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===Vp};be.isForwardRef=function(e){return er(e)===Ku};be.isFragment=function(e){return er(e)===Gu};be.isLazy=function(e){return er(e)===rc};be.isMemo=function(e){return er(e)===tc};be.isPortal=function(e){return er(e)===$p};be.isProfiler=function(e){return er(e)===Yu};be.isStrictMode=function(e){return er(e)===Zu};be.isSuspense=function(e){return er(e)===ec};be.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===Gu||e===Ju||e===Yu||e===Zu||e===ec||e===GT||typeof e=="object"&&e!==null&&(e.$$typeof===rc||e.$$typeof===tc||e.$$typeof===Xu||e.$$typeof===Qu||e.$$typeof===Ku||e.$$typeof===YT||e.$$typeof===XT||e.$$typeof===QT||e.$$typeof===ZT)};be.typeOf=er});var s1=ne((sP,o1)=>{"use strict";o1.exports=i1()});var p1=ne((aP,d1)=>{"use strict";var qp=s1(),JT={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},KT={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},eC={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},c1={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},Gp={};Gp[qp.ForwardRef]=eC;Gp[qp.Memo]=c1;function a1(e){return qp.isMemo(e)?c1:Gp[e.$$typeof]||JT}var tC=Object.defineProperty,rC=Object.getOwnPropertyNames,l1=Object.getOwnPropertySymbols,nC=Object.getOwnPropertyDescriptor,iC=Object.getPrototypeOf,u1=Object.prototype;function f1(e,t,r){if(typeof t!="string"){if(u1){var n=iC(t);n&&n!==u1&&f1(e,n,r)}var i=rC(t);l1&&(i=i.concat(l1(t)));for(var o=a1(e),s=a1(t),a=0;a<i.length;++a){var l=i[a];if(!KT[l]&&!(r&&r[l])&&!(s&&s[l])&&!(o&&o[l])){var u=nC(t,l);try{tC(e,l,u)}catch(c){}}}}return e}d1.exports=f1});var N1=ne((EP,A1)=>{var To=1e3,Co=To*60,bo=Co*60,bi=bo*24,HC=bi*7,zC=bi*365.25;A1.exports=function(e,t){t=t||{};var r=typeof e;if(r==="string"&&e.length>0)return jC(e);if(r==="number"&&isFinite(e))return t.long?$C(e):VC(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))};function jC(e){if(e=String(e),!(e.length>100)){var t=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(!!t){var r=parseFloat(t[1]),n=(t[2]||"ms").toLowerCase();switch(n){case"years":case"year":case"yrs":case"yr":case"y":return r*zC;case"weeks":case"week":case"w":return r*HC;case"days":case"day":case"d":return r*bi;case"hours":case"hour":case"hrs":case"hr":case"h":return r*bo;case"minutes":case"minute":case"mins":case"min":case"m":return r*Co;case"seconds":case"second":case"secs":case"sec":case"s":return r*To;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return r;default:return}}}}function VC(e){var t=Math.abs(e);return t>=bi?Math.round(e/bi)+"d":t>=bo?Math.round(e/bo)+"h":t>=Co?Math.round(e/Co)+"m":t>=To?Math.round(e/To)+"s":e+"ms"}function $C(e){var t=Math.abs(e);return t>=bi?uc(e,t,bi,"day"):t>=bo?uc(e,t,bo,"hour"):t>=Co?uc(e,t,Co,"minute"):t>=To?uc(e,t,To,"second"):e+" ms"}function uc(e,t,r,n){var i=t>=r*1.5;return Math.round(e/r)+" "+n+(i?"s":"")}});var R1=ne((xP,F1)=>{function WC(e){r.debug=r,r.default=r,r.coerce=l,r.disable=o,r.enable=i,r.enabled=s,r.humanize=N1(),r.destroy=u,Object.keys(e).forEach(c=>{r[c]=e[c]}),r.names=[],r.skips=[],r.formatters={};function t(c){let f=0;for(let h=0;h<c.length;h++)f=(f<<5)-f+c.charCodeAt(h),f|=0;return r.colors[Math.abs(f)%r.colors.length]}r.selectColor=t;function r(c){let f,h=null,d,g;function y(...x){if(!y.enabled)return;let m=y,p=Number(new Date),v=p-(f||p);m.diff=v,m.prev=f,m.curr=p,f=p,x[0]=r.coerce(x[0]),typeof x[0]!="string"&&x.unshift("%O");let w=0;x[0]=x[0].replace(/%([a-zA-Z%])/g,(k,I)=>{if(k==="%%")return"%";w++;let P=r.formatters[I];if(typeof P=="function"){let V=x[w];k=P.call(m,V),x.splice(w,1),w--}return k}),r.formatArgs.call(m,x),(m.log||r.log).apply(m,x)}return y.namespace=c,y.useColors=r.useColors(),y.color=r.selectColor(c),y.extend=n,y.destroy=r.destroy,Object.defineProperty(y,"enabled",{enumerable:!0,configurable:!1,get:()=>h!==null?h:(d!==r.namespaces&&(d=r.namespaces,g=r.enabled(c)),g),set:x=>{h=x}}),typeof r.init=="function"&&r.init(y),y}function n(c,f){let h=r(this.namespace+(typeof f=="undefined"?":":f)+c);return h.log=this.log,h}function i(c){r.save(c),r.namespaces=c,r.names=[],r.skips=[];let f,h=(typeof c=="string"?c:"").split(/[\s,]+/),d=h.length;for(f=0;f<d;f++)!h[f]||(c=h[f].replace(/\*/g,".*?"),c[0]==="-"?r.skips.push(new RegExp("^"+c.slice(1)+"$")):r.names.push(new RegExp("^"+c+"$")))}function o(){let c=[...r.names.map(a),...r.skips.map(a).map(f=>"-"+f)].join(",");return r.enable(""),c}function s(c){if(c[c.length-1]==="*")return!0;let f,h;for(f=0,h=r.skips.length;f<h;f++)if(r.skips[f].test(c))return!1;for(f=0,h=r.names.length;f<h;f++)if(r.names[f].test(c))return!0;return!1}function a(c){return c.toString().substring(2,c.toString().length-2).replace(/\.\*\?$/,"*")}function l(c){return c instanceof Error?c.stack||c.message:c}function u(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}return r.enable(r.load()),r}F1.exports=WC});var ko=ne((tr,cc)=>{tr.formatArgs=GC;tr.save=ZC;tr.load=YC;tr.useColors=qC;tr.storage=XC();tr.destroy=(()=>{let e=!1;return()=>{e||(e=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})();tr.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function qC(){return typeof window!="undefined"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs)?!0:typeof navigator!="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/)?!1:typeof document!="undefined"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window!="undefined"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator!="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||typeof navigator!="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function GC(e){if(e[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+e[0]+(this.useColors?"%c ":" ")+"+"+cc.exports.humanize(this.diff),!this.useColors)return;let t="color: "+this.color;e.splice(1,0,t,"color: inherit");let r=0,n=0;e[0].replace(/%[a-zA-Z%]/g,i=>{i!=="%%"&&(r++,i==="%c"&&(n=r))}),e.splice(n,0,t)}tr.log=console.debug||console.log||(()=>{});function ZC(e){try{e?tr.storage.setItem("debug",e):tr.storage.removeItem("debug")}catch(t){}}function YC(){let e;try{e=tr.storage.getItem("debug")}catch(t){}return!e&&typeof process!="undefined"&&"env"in process&&(e=process.env.DEBUG),e}function XC(){try{return localStorage}catch(e){}}cc.exports=R1()(tr);var{formatters:QC}=cc.exports;QC.j=function(e){try{return JSON.stringify(e)}catch(t){return"[UnexpectedJSONParseError]: "+t.message}}});var B1=ne(fc=>{"use strict";fc.byteLength=KC;fc.toByteArray=tb;fc.fromByteArray=ib;var zr=[],dr=[],JC=typeof Uint8Array!="undefined"?Uint8Array:Array,sh="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(ki=0,L1=sh.length;ki<L1;++ki)zr[ki]=sh[ki],dr[sh.charCodeAt(ki)]=ki;var ki,L1;dr["-".charCodeAt(0)]=62;dr["_".charCodeAt(0)]=63;function D1(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var r=e.indexOf("=");r===-1&&(r=t);var n=r===t?0:4-r%4;return[r,n]}function KC(e){var t=D1(e),r=t[0],n=t[1];return(r+n)*3/4-n}function eb(e,t,r){return(t+r)*3/4-r}function tb(e){var t,r=D1(e),n=r[0],i=r[1],o=new JC(eb(e,n,i)),s=0,a=i>0?n-4:n,l;for(l=0;l<a;l+=4)t=dr[e.charCodeAt(l)]<<18|dr[e.charCodeAt(l+1)]<<12|dr[e.charCodeAt(l+2)]<<6|dr[e.charCodeAt(l+3)],o[s++]=t>>16&255,o[s++]=t>>8&255,o[s++]=t&255;return i===2&&(t=dr[e.charCodeAt(l)]<<2|dr[e.charCodeAt(l+1)]>>4,o[s++]=t&255),i===1&&(t=dr[e.charCodeAt(l)]<<10|dr[e.charCodeAt(l+1)]<<4|dr[e.charCodeAt(l+2)]>>2,o[s++]=t>>8&255,o[s++]=t&255),o}function rb(e){return zr[e>>18&63]+zr[e>>12&63]+zr[e>>6&63]+zr[e&63]}function nb(e,t,r){for(var n,i=[],o=t;o<r;o+=3)n=(e[o]<<16&16711680)+(e[o+1]<<8&65280)+(e[o+2]&255),i.push(rb(n));return i.join("")}function ib(e){for(var t,r=e.length,n=r%3,i=[],o=16383,s=0,a=r-n;s<a;s+=o)i.push(nb(e,s,s+o>a?a:s+o));return n===1?(t=e[r-1],i.push(zr[t>>2]+zr[t<<4&63]+"==")):n===2&&(t=(e[r-2]<<8)+e[r-1],i.push(zr[t>>10]+zr[t>>4&63]+zr[t<<2&63]+"=")),i.join("")}});var U1=ne(ah=>{ah.read=function(e,t,r,n,i){var o,s,a=i*8-n-1,l=(1<<a)-1,u=l>>1,c=-7,f=r?i-1:0,h=r?-1:1,d=e[t+f];for(f+=h,o=d&(1<<-c)-1,d>>=-c,c+=a;c>0;o=o*256+e[t+f],f+=h,c-=8);for(s=o&(1<<-c)-1,o>>=-c,c+=n;c>0;s=s*256+e[t+f],f+=h,c-=8);if(o===0)o=1-u;else{if(o===l)return s?NaN:(d?-1:1)*(1/0);s=s+Math.pow(2,n),o=o-u}return(d?-1:1)*s*Math.pow(2,o-n)};ah.write=function(e,t,r,n,i,o){var s,a,l,u=o*8-i-1,c=(1<<u)-1,f=c>>1,h=i===23?Math.pow(2,-24)-Math.pow(2,-77):0,d=n?0:o-1,g=n?1:-1,y=t<0||t===0&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(a=isNaN(t)?1:0,s=c):(s=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-s))<1&&(s--,l*=2),s+f>=1?t+=h/l:t+=h*Math.pow(2,1-f),t*l>=2&&(s++,l/=2),s+f>=c?(a=0,s=c):s+f>=1?(a=(t*l-1)*Math.pow(2,i),s=s+f):(a=t*Math.pow(2,f-1)*Math.pow(2,i),s=0));i>=8;e[r+d]=a&255,d+=g,a/=256,i-=8);for(s=s<<i|a,u+=i;u>0;e[r+d]=s&255,d+=g,s/=256,u-=8);e[r+d-g]|=y*128}});var Ao=ne(Oo=>{"use strict";var lh=B1(),Mo=U1(),H1=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;Oo.Buffer=b;Oo.SlowBuffer=cb;Oo.INSPECT_MAX_BYTES=50;var dc=2147483647;Oo.kMaxLength=dc;b.TYPED_ARRAY_SUPPORT=ob();!b.TYPED_ARRAY_SUPPORT&&typeof console!="undefined"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function ob(){try{let e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),e.foo()===42}catch(e){return!1}}Object.defineProperty(b.prototype,"parent",{enumerable:!0,get:function(){if(!!b.isBuffer(this))return this.buffer}});Object.defineProperty(b.prototype,"offset",{enumerable:!0,get:function(){if(!!b.isBuffer(this))return this.byteOffset}});function cn(e){if(e>dc)throw new RangeError('The value "'+e+'" is invalid for option "size"');let t=new Uint8Array(e);return Object.setPrototypeOf(t,b.prototype),t}function b(e,t,r){if(typeof e=="number"){if(typeof t=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return dh(e)}return $1(e,t,r)}b.poolSize=8192;function $1(e,t,r){if(typeof e=="string")return ab(e,t);if(ArrayBuffer.isView(e))return lb(e);if(e==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(jr(e,ArrayBuffer)||e&&jr(e.buffer,ArrayBuffer)||typeof SharedArrayBuffer!="undefined"&&(jr(e,SharedArrayBuffer)||e&&jr(e.buffer,SharedArrayBuffer)))return ch(e,t,r);if(typeof e=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');let n=e.valueOf&&e.valueOf();if(n!=null&&n!==e)return b.from(n,t,r);let i=ub(e);if(i)return i;if(typeof Symbol!="undefined"&&Symbol.toPrimitive!=null&&typeof e[Symbol.toPrimitive]=="function")return b.from(e[Symbol.toPrimitive]("string"),t,r);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}b.from=function(e,t,r){return $1(e,t,r)};Object.setPrototypeOf(b.prototype,Uint8Array.prototype);Object.setPrototypeOf(b,Uint8Array);function W1(e){if(typeof e!="number")throw new TypeError('"size" argument must be of type number');if(e<0)throw new RangeError('The value "'+e+'" is invalid for option "size"')}function sb(e,t,r){return W1(e),e<=0?cn(e):t!==void 0?typeof r=="string"?cn(e).fill(t,r):cn(e).fill(t):cn(e)}b.alloc=function(e,t,r){return sb(e,t,r)};function dh(e){return W1(e),cn(e<0?0:ph(e)|0)}b.allocUnsafe=function(e){return dh(e)};b.allocUnsafeSlow=function(e){return dh(e)};function ab(e,t){if((typeof t!="string"||t==="")&&(t="utf8"),!b.isEncoding(t))throw new TypeError("Unknown encoding: "+t);let r=q1(e,t)|0,n=cn(r),i=n.write(e,t);return i!==r&&(n=n.slice(0,i)),n}function uh(e){let t=e.length<0?0:ph(e.length)|0,r=cn(t);for(let n=0;n<t;n+=1)r[n]=e[n]&255;return r}function lb(e){if(jr(e,Uint8Array)){let t=new Uint8Array(e);return ch(t.buffer,t.byteOffset,t.byteLength)}return uh(e)}function ch(e,t,r){if(t<0||e.byteLength<t)throw new RangeError('"offset" is outside of buffer bounds');if(e.byteLength<t+(r||0))throw new RangeError('"length" is outside of buffer bounds');let n;return t===void 0&&r===void 0?n=new Uint8Array(e):r===void 0?n=new Uint8Array(e,t):n=new Uint8Array(e,t,r),Object.setPrototypeOf(n,b.prototype),n}function ub(e){if(b.isBuffer(e)){let t=ph(e.length)|0,r=cn(t);return r.length===0||e.copy(r,0,0,t),r}if(e.length!==void 0)return typeof e.length!="number"||mh(e.length)?cn(0):uh(e);if(e.type==="Buffer"&&Array.isArray(e.data))return uh(e.data)}function ph(e){if(e>=dc)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+dc.toString(16)+" bytes");return e|0}function cb(e){return+e!=e&&(e=0),b.alloc(+e)}b.isBuffer=function(t){return t!=null&&t._isBuffer===!0&&t!==b.prototype};b.compare=function(t,r){if(jr(t,Uint8Array)&&(t=b.from(t,t.offset,t.byteLength)),jr(r,Uint8Array)&&(r=b.from(r,r.offset,r.byteLength)),!b.isBuffer(t)||!b.isBuffer(r))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(t===r)return 0;let n=t.length,i=r.length;for(let o=0,s=Math.min(n,i);o<s;++o)if(t[o]!==r[o]){n=t[o],i=r[o];break}return n<i?-1:i<n?1:0};b.isEncoding=function(t){switch(String(t).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}};b.concat=function(t,r){if(!Array.isArray(t))throw new TypeError('"list" argument must be an Array of Buffers');if(t.length===0)return b.alloc(0);let n;if(r===void 0)for(r=0,n=0;n<t.length;++n)r+=t[n].length;let i=b.allocUnsafe(r),o=0;for(n=0;n<t.length;++n){let s=t[n];if(jr(s,Uint8Array))o+s.length>i.length?(b.isBuffer(s)||(s=b.from(s)),s.copy(i,o)):Uint8Array.prototype.set.call(i,s,o);else if(b.isBuffer(s))s.copy(i,o);else throw new TypeError('"list" argument must be an Array of Buffers');o+=s.length}return i};function q1(e,t){if(b.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||jr(e,ArrayBuffer))return e.byteLength;if(typeof e!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);let r=e.length,n=arguments.length>2&&arguments[2]===!0;if(!n&&r===0)return 0;let i=!1;for(;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return fh(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return r*2;case"hex":return r>>>1;case"base64":return tw(e).length;default:if(i)return n?-1:fh(e).length;t=(""+t).toLowerCase(),i=!0}}b.byteLength=q1;function fb(e,t,r){let n=!1;if((t===void 0||t<0)&&(t=0),t>this.length||((r===void 0||r>this.length)&&(r=this.length),r<=0)||(r>>>=0,t>>>=0,r<=t))return"";for(e||(e="utf8");;)switch(e){case"hex":return Eb(this,t,r);case"utf8":case"utf-8":return Z1(this,t,r);case"ascii":return wb(this,t,r);case"latin1":case"binary":return Sb(this,t,r);case"base64":return gb(this,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return xb(this,t,r);default:if(n)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),n=!0}}b.prototype._isBuffer=!0;function Ii(e,t,r){let n=e[t];e[t]=e[r],e[r]=n}b.prototype.swap16=function(){let t=this.length;if(t%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let r=0;r<t;r+=2)Ii(this,r,r+1);return this};b.prototype.swap32=function(){let t=this.length;if(t%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let r=0;r<t;r+=4)Ii(this,r,r+3),Ii(this,r+1,r+2);return this};b.prototype.swap64=function(){let t=this.length;if(t%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let r=0;r<t;r+=8)Ii(this,r,r+7),Ii(this,r+1,r+6),Ii(this,r+2,r+5),Ii(this,r+3,r+4);return this};b.prototype.toString=function(){let t=this.length;return t===0?"":arguments.length===0?Z1(this,0,t):fb.apply(this,arguments)};b.prototype.toLocaleString=b.prototype.toString;b.prototype.equals=function(t){if(!b.isBuffer(t))throw new TypeError("Argument must be a Buffer");return this===t?!0:b.compare(this,t)===0};b.prototype.inspect=function(){let t="",r=Oo.INSPECT_MAX_BYTES;return t=this.toString("hex",0,r).replace(/(.{2})/g,"$1 ").trim(),this.length>r&&(t+=" ... "),"<Buffer "+t+">"};H1&&(b.prototype[H1]=b.prototype.inspect);b.prototype.compare=function(t,r,n,i,o){if(jr(t,Uint8Array)&&(t=b.from(t,t.offset,t.byteLength)),!b.isBuffer(t))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof t);if(r===void 0&&(r=0),n===void 0&&(n=t?t.length:0),i===void 0&&(i=0),o===void 0&&(o=this.length),r<0||n>t.length||i<0||o>this.length)throw new RangeError("out of range index");if(i>=o&&r>=n)return 0;if(i>=o)return-1;if(r>=n)return 1;if(r>>>=0,n>>>=0,i>>>=0,o>>>=0,this===t)return 0;let s=o-i,a=n-r,l=Math.min(s,a),u=this.slice(i,o),c=t.slice(r,n);for(let f=0;f<l;++f)if(u[f]!==c[f]){s=u[f],a=c[f];break}return s<a?-1:a<s?1:0};function G1(e,t,r,n,i){if(e.length===0)return-1;if(typeof r=="string"?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),r=+r,mh(r)&&(r=i?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(i)return-1;r=e.length-1}else if(r<0)if(i)r=0;else return-1;if(typeof t=="string"&&(t=b.from(t,n)),b.isBuffer(t))return t.length===0?-1:z1(e,t,r,n,i);if(typeof t=="number")return t=t&255,typeof Uint8Array.prototype.indexOf=="function"?i?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):z1(e,[t],r,n,i);throw new TypeError("val must be string, number or Buffer")}function z1(e,t,r,n,i){let o=1,s=e.length,a=t.length;if(n!==void 0&&(n=String(n).toLowerCase(),n==="ucs2"||n==="ucs-2"||n==="utf16le"||n==="utf-16le")){if(e.length<2||t.length<2)return-1;o=2,s/=2,a/=2,r/=2}function l(c,f){return o===1?c[f]:c.readUInt16BE(f*o)}let u;if(i){let c=-1;for(u=r;u<s;u++)if(l(e,u)===l(t,c===-1?0:u-c)){if(c===-1&&(c=u),u-c+1===a)return c*o}else c!==-1&&(u-=u-c),c=-1}else for(r+a>s&&(r=s-a),u=r;u>=0;u--){let c=!0;for(let f=0;f<a;f++)if(l(e,u+f)!==l(t,f)){c=!1;break}if(c)return u}return-1}b.prototype.includes=function(t,r,n){return this.indexOf(t,r,n)!==-1};b.prototype.indexOf=function(t,r,n){return G1(this,t,r,n,!0)};b.prototype.lastIndexOf=function(t,r,n){return G1(this,t,r,n,!1)};function db(e,t,r,n){r=Number(r)||0;let i=e.length-r;n?(n=Number(n),n>i&&(n=i)):n=i;let o=t.length;n>o/2&&(n=o/2);let s;for(s=0;s<n;++s){let a=parseInt(t.substr(s*2,2),16);if(mh(a))return s;e[r+s]=a}return s}function pb(e,t,r,n){return pc(fh(t,e.length-r),e,r,n)}function hb(e,t,r,n){return pc(bb(t),e,r,n)}function mb(e,t,r,n){return pc(tw(t),e,r,n)}function yb(e,t,r,n){return pc(kb(t,e.length-r),e,r,n)}b.prototype.write=function(t,r,n,i){if(r===void 0)i="utf8",n=this.length,r=0;else if(n===void 0&&typeof r=="string")i=r,n=this.length,r=0;else if(isFinite(r))r=r>>>0,isFinite(n)?(n=n>>>0,i===void 0&&(i="utf8")):(i=n,n=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");let o=this.length-r;if((n===void 0||n>o)&&(n=o),t.length>0&&(n<0||r<0)||r>this.length)throw new RangeError("Attempt to write outside buffer bounds");i||(i="utf8");let s=!1;for(;;)switch(i){case"hex":return db(this,t,r,n);case"utf8":case"utf-8":return pb(this,t,r,n);case"ascii":case"latin1":case"binary":return hb(this,t,r,n);case"base64":return mb(this,t,r,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return yb(this,t,r,n);default:if(s)throw new TypeError("Unknown encoding: "+i);i=(""+i).toLowerCase(),s=!0}};b.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function gb(e,t,r){return t===0&&r===e.length?lh.fromByteArray(e):lh.fromByteArray(e.slice(t,r))}function Z1(e,t,r){r=Math.min(e.length,r);let n=[],i=t;for(;i<r;){let o=e[i],s=null,a=o>239?4:o>223?3:o>191?2:1;if(i+a<=r){let l,u,c,f;switch(a){case 1:o<128&&(s=o);break;case 2:l=e[i+1],(l&192)===128&&(f=(o&31)<<6|l&63,f>127&&(s=f));break;case 3:l=e[i+1],u=e[i+2],(l&192)===128&&(u&192)===128&&(f=(o&15)<<12|(l&63)<<6|u&63,f>2047&&(f<55296||f>57343)&&(s=f));break;case 4:l=e[i+1],u=e[i+2],c=e[i+3],(l&192)===128&&(u&192)===128&&(c&192)===128&&(f=(o&15)<<18|(l&63)<<12|(u&63)<<6|c&63,f>65535&&f<1114112&&(s=f))}}s===null?(s=65533,a=1):s>65535&&(s-=65536,n.push(s>>>10&1023|55296),s=56320|s&1023),n.push(s),i+=a}return vb(n)}var j1=4096;function vb(e){let t=e.length;if(t<=j1)return String.fromCharCode.apply(String,e);let r="",n=0;for(;n<t;)r+=String.fromCharCode.apply(String,e.slice(n,n+=j1));return r}function wb(e,t,r){let n="";r=Math.min(e.length,r);for(let i=t;i<r;++i)n+=String.fromCharCode(e[i]&127);return n}function Sb(e,t,r){let n="";r=Math.min(e.length,r);for(let i=t;i<r;++i)n+=String.fromCharCode(e[i]);return n}function Eb(e,t,r){let n=e.length;(!t||t<0)&&(t=0),(!r||r<0||r>n)&&(r=n);let i="";for(let o=t;o<r;++o)i+=Ib[e[o]];return i}function xb(e,t,r){let n=e.slice(t,r),i="";for(let o=0;o<n.length-1;o+=2)i+=String.fromCharCode(n[o]+n[o+1]*256);return i}b.prototype.slice=function(t,r){let n=this.length;t=~~t,r=r===void 0?n:~~r,t<0?(t+=n,t<0&&(t=0)):t>n&&(t=n),r<0?(r+=n,r<0&&(r=0)):r>n&&(r=n),r<t&&(r=t);let i=this.subarray(t,r);return Object.setPrototypeOf(i,b.prototype),i};function vt(e,t,r){if(e%1!==0||e<0)throw new RangeError("offset is not uint");if(e+t>r)throw new RangeError("Trying to access beyond buffer length")}b.prototype.readUintLE=b.prototype.readUIntLE=function(t,r,n){t=t>>>0,r=r>>>0,n||vt(t,r,this.length);let i=this[t],o=1,s=0;for(;++s<r&&(o*=256);)i+=this[t+s]*o;return i};b.prototype.readUintBE=b.prototype.readUIntBE=function(t,r,n){t=t>>>0,r=r>>>0,n||vt(t,r,this.length);let i=this[t+--r],o=1;for(;r>0&&(o*=256);)i+=this[t+--r]*o;return i};b.prototype.readUint8=b.prototype.readUInt8=function(t,r){return t=t>>>0,r||vt(t,1,this.length),this[t]};b.prototype.readUint16LE=b.prototype.readUInt16LE=function(t,r){return t=t>>>0,r||vt(t,2,this.length),this[t]|this[t+1]<<8};b.prototype.readUint16BE=b.prototype.readUInt16BE=function(t,r){return t=t>>>0,r||vt(t,2,this.length),this[t]<<8|this[t+1]};b.prototype.readUint32LE=b.prototype.readUInt32LE=function(t,r){return t=t>>>0,r||vt(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+this[t+3]*16777216};b.prototype.readUint32BE=b.prototype.readUInt32BE=function(t,r){return t=t>>>0,r||vt(t,4,this.length),this[t]*16777216+(this[t+1]<<16|this[t+2]<<8|this[t+3])};b.prototype.readBigUInt64LE=Gn(function(t){t=t>>>0,Po(t,"offset");let r=this[t],n=this[t+7];(r===void 0||n===void 0)&&da(t,this.length-8);let i=r+this[++t]*ke(2,8)+this[++t]*ke(2,16)+this[++t]*ke(2,24),o=this[++t]+this[++t]*ke(2,8)+this[++t]*ke(2,16)+n*ke(2,24);return BigInt(i)+(BigInt(o)<<BigInt(32))});b.prototype.readBigUInt64BE=Gn(function(t){t=t>>>0,Po(t,"offset");let r=this[t],n=this[t+7];(r===void 0||n===void 0)&&da(t,this.length-8);let i=r*ke(2,24)+this[++t]*ke(2,16)+this[++t]*ke(2,8)+this[++t],o=this[++t]*ke(2,24)+this[++t]*ke(2,16)+this[++t]*ke(2,8)+n;return(BigInt(i)<<BigInt(32))+BigInt(o)});b.prototype.readIntLE=function(t,r,n){t=t>>>0,r=r>>>0,n||vt(t,r,this.length);let i=this[t],o=1,s=0;for(;++s<r&&(o*=256);)i+=this[t+s]*o;return o*=128,i>=o&&(i-=Math.pow(2,8*r)),i};b.prototype.readIntBE=function(t,r,n){t=t>>>0,r=r>>>0,n||vt(t,r,this.length);let i=r,o=1,s=this[t+--i];for(;i>0&&(o*=256);)s+=this[t+--i]*o;return o*=128,s>=o&&(s-=Math.pow(2,8*r)),s};b.prototype.readInt8=function(t,r){return t=t>>>0,r||vt(t,1,this.length),this[t]&128?(255-this[t]+1)*-1:this[t]};b.prototype.readInt16LE=function(t,r){t=t>>>0,r||vt(t,2,this.length);let n=this[t]|this[t+1]<<8;return n&32768?n|4294901760:n};b.prototype.readInt16BE=function(t,r){t=t>>>0,r||vt(t,2,this.length);let n=this[t+1]|this[t]<<8;return n&32768?n|4294901760:n};b.prototype.readInt32LE=function(t,r){return t=t>>>0,r||vt(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24};b.prototype.readInt32BE=function(t,r){return t=t>>>0,r||vt(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]};b.prototype.readBigInt64LE=Gn(function(t){t=t>>>0,Po(t,"offset");let r=this[t],n=this[t+7];(r===void 0||n===void 0)&&da(t,this.length-8);let i=this[t+4]+this[t+5]*ke(2,8)+this[t+6]*ke(2,16)+(n<<24);return(BigInt(i)<<BigInt(32))+BigInt(r+this[++t]*ke(2,8)+this[++t]*ke(2,16)+this[++t]*ke(2,24))});b.prototype.readBigInt64BE=Gn(function(t){t=t>>>0,Po(t,"offset");let r=this[t],n=this[t+7];(r===void 0||n===void 0)&&da(t,this.length-8);let i=(r<<24)+this[++t]*ke(2,16)+this[++t]*ke(2,8)+this[++t];return(BigInt(i)<<BigInt(32))+BigInt(this[++t]*ke(2,24)+this[++t]*ke(2,16)+this[++t]*ke(2,8)+n)});b.prototype.readFloatLE=function(t,r){return t=t>>>0,r||vt(t,4,this.length),Mo.read(this,t,!0,23,4)};b.prototype.readFloatBE=function(t,r){return t=t>>>0,r||vt(t,4,this.length),Mo.read(this,t,!1,23,4)};b.prototype.readDoubleLE=function(t,r){return t=t>>>0,r||vt(t,8,this.length),Mo.read(this,t,!0,52,8)};b.prototype.readDoubleBE=function(t,r){return t=t>>>0,r||vt(t,8,this.length),Mo.read(this,t,!1,52,8)};function Vt(e,t,r,n,i,o){if(!b.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||t<o)throw new RangeError('"value" argument is out of bounds');if(r+n>e.length)throw new RangeError("Index out of range")}b.prototype.writeUintLE=b.prototype.writeUIntLE=function(t,r,n,i){if(t=+t,r=r>>>0,n=n>>>0,!i){let a=Math.pow(2,8*n)-1;Vt(this,t,r,n,a,0)}let o=1,s=0;for(this[r]=t&255;++s<n&&(o*=256);)this[r+s]=t/o&255;return r+n};b.prototype.writeUintBE=b.prototype.writeUIntBE=function(t,r,n,i){if(t=+t,r=r>>>0,n=n>>>0,!i){let a=Math.pow(2,8*n)-1;Vt(this,t,r,n,a,0)}let o=n-1,s=1;for(this[r+o]=t&255;--o>=0&&(s*=256);)this[r+o]=t/s&255;return r+n};b.prototype.writeUint8=b.prototype.writeUInt8=function(t,r,n){return t=+t,r=r>>>0,n||Vt(this,t,r,1,255,0),this[r]=t&255,r+1};b.prototype.writeUint16LE=b.prototype.writeUInt16LE=function(t,r,n){return t=+t,r=r>>>0,n||Vt(this,t,r,2,65535,0),this[r]=t&255,this[r+1]=t>>>8,r+2};b.prototype.writeUint16BE=b.prototype.writeUInt16BE=function(t,r,n){return t=+t,r=r>>>0,n||Vt(this,t,r,2,65535,0),this[r]=t>>>8,this[r+1]=t&255,r+2};b.prototype.writeUint32LE=b.prototype.writeUInt32LE=function(t,r,n){return t=+t,r=r>>>0,n||Vt(this,t,r,4,4294967295,0),this[r+3]=t>>>24,this[r+2]=t>>>16,this[r+1]=t>>>8,this[r]=t&255,r+4};b.prototype.writeUint32BE=b.prototype.writeUInt32BE=function(t,r,n){return t=+t,r=r>>>0,n||Vt(this,t,r,4,4294967295,0),this[r]=t>>>24,this[r+1]=t>>>16,this[r+2]=t>>>8,this[r+3]=t&255,r+4};function Y1(e,t,r,n,i){ew(t,n,i,e,r,7);let o=Number(t&BigInt(4294967295));e[r++]=o,o=o>>8,e[r++]=o,o=o>>8,e[r++]=o,o=o>>8,e[r++]=o;let s=Number(t>>BigInt(32)&BigInt(4294967295));return e[r++]=s,s=s>>8,e[r++]=s,s=s>>8,e[r++]=s,s=s>>8,e[r++]=s,r}function X1(e,t,r,n,i){ew(t,n,i,e,r,7);let o=Number(t&BigInt(4294967295));e[r+7]=o,o=o>>8,e[r+6]=o,o=o>>8,e[r+5]=o,o=o>>8,e[r+4]=o;let s=Number(t>>BigInt(32)&BigInt(4294967295));return e[r+3]=s,s=s>>8,e[r+2]=s,s=s>>8,e[r+1]=s,s=s>>8,e[r]=s,r+8}b.prototype.writeBigUInt64LE=Gn(function(t,r=0){return Y1(this,t,r,BigInt(0),BigInt("0xffffffffffffffff"))});b.prototype.writeBigUInt64BE=Gn(function(t,r=0){return X1(this,t,r,BigInt(0),BigInt("0xffffffffffffffff"))});b.prototype.writeIntLE=function(t,r,n,i){if(t=+t,r=r>>>0,!i){let l=Math.pow(2,8*n-1);Vt(this,t,r,n,l-1,-l)}let o=0,s=1,a=0;for(this[r]=t&255;++o<n&&(s*=256);)t<0&&a===0&&this[r+o-1]!==0&&(a=1),this[r+o]=(t/s>>0)-a&255;return r+n};b.prototype.writeIntBE=function(t,r,n,i){if(t=+t,r=r>>>0,!i){let l=Math.pow(2,8*n-1);Vt(this,t,r,n,l-1,-l)}let o=n-1,s=1,a=0;for(this[r+o]=t&255;--o>=0&&(s*=256);)t<0&&a===0&&this[r+o+1]!==0&&(a=1),this[r+o]=(t/s>>0)-a&255;return r+n};b.prototype.writeInt8=function(t,r,n){return t=+t,r=r>>>0,n||Vt(this,t,r,1,127,-128),t<0&&(t=255+t+1),this[r]=t&255,r+1};b.prototype.writeInt16LE=function(t,r,n){return t=+t,r=r>>>0,n||Vt(this,t,r,2,32767,-32768),this[r]=t&255,this[r+1]=t>>>8,r+2};b.prototype.writeInt16BE=function(t,r,n){return t=+t,r=r>>>0,n||Vt(this,t,r,2,32767,-32768),this[r]=t>>>8,this[r+1]=t&255,r+2};b.prototype.writeInt32LE=function(t,r,n){return t=+t,r=r>>>0,n||Vt(this,t,r,4,2147483647,-2147483648),this[r]=t&255,this[r+1]=t>>>8,this[r+2]=t>>>16,this[r+3]=t>>>24,r+4};b.prototype.writeInt32BE=function(t,r,n){return t=+t,r=r>>>0,n||Vt(this,t,r,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),this[r]=t>>>24,this[r+1]=t>>>16,this[r+2]=t>>>8,this[r+3]=t&255,r+4};b.prototype.writeBigInt64LE=Gn(function(t,r=0){return Y1(this,t,r,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});b.prototype.writeBigInt64BE=Gn(function(t,r=0){return X1(this,t,r,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function Q1(e,t,r,n,i,o){if(r+n>e.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function J1(e,t,r,n,i){return t=+t,r=r>>>0,i||Q1(e,t,r,4,34028234663852886e22,-34028234663852886e22),Mo.write(e,t,r,n,23,4),r+4}b.prototype.writeFloatLE=function(t,r,n){return J1(this,t,r,!0,n)};b.prototype.writeFloatBE=function(t,r,n){return J1(this,t,r,!1,n)};function K1(e,t,r,n,i){return t=+t,r=r>>>0,i||Q1(e,t,r,8,17976931348623157e292,-17976931348623157e292),Mo.write(e,t,r,n,52,8),r+8}b.prototype.writeDoubleLE=function(t,r,n){return K1(this,t,r,!0,n)};b.prototype.writeDoubleBE=function(t,r,n){return K1(this,t,r,!1,n)};b.prototype.copy=function(t,r,n,i){if(!b.isBuffer(t))throw new TypeError("argument should be a Buffer");if(n||(n=0),!i&&i!==0&&(i=this.length),r>=t.length&&(r=t.length),r||(r=0),i>0&&i<n&&(i=n),i===n||t.length===0||this.length===0)return 0;if(r<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("Index out of range");if(i<0)throw new RangeError("sourceEnd out of bounds");i>this.length&&(i=this.length),t.length-r<i-n&&(i=t.length-r+n);let o=i-n;return this===t&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(r,n,i):Uint8Array.prototype.set.call(t,this.subarray(n,i),r),o};b.prototype.fill=function(t,r,n,i){if(typeof t=="string"){if(typeof r=="string"?(i=r,r=0,n=this.length):typeof n=="string"&&(i=n,n=this.length),i!==void 0&&typeof i!="string")throw new TypeError("encoding must be a string");if(typeof i=="string"&&!b.isEncoding(i))throw new TypeError("Unknown encoding: "+i);if(t.length===1){let s=t.charCodeAt(0);(i==="utf8"&&s<128||i==="latin1")&&(t=s)}}else typeof t=="number"?t=t&255:typeof t=="boolean"&&(t=Number(t));if(r<0||this.length<r||this.length<n)throw new RangeError("Out of range index");if(n<=r)return this;r=r>>>0,n=n===void 0?this.length:n>>>0,t||(t=0);let o;if(typeof t=="number")for(o=r;o<n;++o)this[o]=t;else{let s=b.isBuffer(t)?t:b.from(t,i),a=s.length;if(a===0)throw new TypeError('The value "'+t+'" is invalid for argument "value"');for(o=0;o<n-r;++o)this[o+r]=s[o%a]}return this};var Io={};function hh(e,t,r){Io[e]=class extends r{constructor(){super(),Object.defineProperty(this,"message",{value:t.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${e}]`,this.stack,delete this.name}get code(){return e}set code(i){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:i,writable:!0})}toString(){return`${this.name} [${e}]: ${this.message}`}}}hh("ERR_BUFFER_OUT_OF_BOUNDS",function(e){return e?`${e} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError);hh("ERR_INVALID_ARG_TYPE",function(e,t){return`The "${e}" argument must be of type number. Received type ${typeof t}`},TypeError);hh("ERR_OUT_OF_RANGE",function(e,t,r){let n=`The value of "${e}" is out of range.`,i=r;return Number.isInteger(r)&&Math.abs(r)>ke(2,32)?i=V1(String(r)):typeof r=="bigint"&&(i=String(r),(r>ke(BigInt(2),BigInt(32))||r<-ke(BigInt(2),BigInt(32)))&&(i=V1(i)),i+="n"),n+=` It must be ${t}. Received ${i}`,n},RangeError);function V1(e){let t="",r=e.length,n=e[0]==="-"?1:0;for(;r>=n+4;r-=3)t=`_${e.slice(r-3,r)}${t}`;return`${e.slice(0,r)}${t}`}function _b(e,t,r){Po(t,"offset"),(e[t]===void 0||e[t+r]===void 0)&&da(t,e.length-(r+1))}function ew(e,t,r,n,i,o){if(e>r||e<t){let s=typeof t=="bigint"?"n":"",a;throw o>3?t===0||t===BigInt(0)?a=`>= 0${s} and < 2${s} ** ${(o+1)*8}${s}`:a=`>= -(2${s} ** ${(o+1)*8-1}${s}) and < 2 ** ${(o+1)*8-1}${s}`:a=`>= ${t}${s} and <= ${r}${s}`,new Io.ERR_OUT_OF_RANGE("value",a,e)}_b(n,i,o)}function Po(e,t){if(typeof e!="number")throw new Io.ERR_INVALID_ARG_TYPE(t,"number",e)}function da(e,t,r){throw Math.floor(e)!==e?(Po(e,r),new Io.ERR_OUT_OF_RANGE(r||"offset","an integer",e)):t<0?new Io.ERR_BUFFER_OUT_OF_BOUNDS:new Io.ERR_OUT_OF_RANGE(r||"offset",`>= ${r?1:0} and <= ${t}`,e)}var Tb=/[^+/0-9A-Za-z-_]/g;function Cb(e){if(e=e.split("=")[0],e=e.trim().replace(Tb,""),e.length<2)return"";for(;e.length%4!==0;)e=e+"=";return e}function fh(e,t){t=t||1/0;let r,n=e.length,i=null,o=[];for(let s=0;s<n;++s){if(r=e.charCodeAt(s),r>55295&&r<57344){if(!i){if(r>56319){(t-=3)>-1&&o.push(239,191,189);continue}else if(s+1===n){(t-=3)>-1&&o.push(239,191,189);continue}i=r;continue}if(r<56320){(t-=3)>-1&&o.push(239,191,189),i=r;continue}r=(i-55296<<10|r-56320)+65536}else i&&(t-=3)>-1&&o.push(239,191,189);if(i=null,r<128){if((t-=1)<0)break;o.push(r)}else if(r<2048){if((t-=2)<0)break;o.push(r>>6|192,r&63|128)}else if(r<65536){if((t-=3)<0)break;o.push(r>>12|224,r>>6&63|128,r&63|128)}else if(r<1114112){if((t-=4)<0)break;o.push(r>>18|240,r>>12&63|128,r>>6&63|128,r&63|128)}else throw new Error("Invalid code point")}return o}function bb(e){let t=[];for(let r=0;r<e.length;++r)t.push(e.charCodeAt(r)&255);return t}function kb(e,t){let r,n,i,o=[];for(let s=0;s<e.length&&!((t-=2)<0);++s)r=e.charCodeAt(s),n=r>>8,i=r%256,o.push(i),o.push(n);return o}function tw(e){return lh.toByteArray(Cb(e))}function pc(e,t,r,n){let i;for(i=0;i<n&&!(i+r>=t.length||i>=e.length);++i)t[i+r]=e[i];return i}function jr(e,t){return e instanceof t||e!=null&&e.constructor!=null&&e.constructor.name!=null&&e.constructor.name===t.name}function mh(e){return e!==e}var Ib=function(){let e="0123456789abcdef",t=new Array(256);for(let r=0;r<16;++r){let n=r*16;for(let i=0;i<16;++i)t[n+i]=e[r]+e[i]}return t}();function Gn(e){return typeof BigInt=="undefined"?Mb:e}function Mb(){throw new Error("BigInt not supported")}});var sw=ne((kP,ow)=>{var et=ow.exports={},Vr,$r;function yh(){throw new Error("setTimeout has not been defined")}function gh(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?Vr=setTimeout:Vr=yh}catch(e){Vr=yh}try{typeof clearTimeout=="function"?$r=clearTimeout:$r=gh}catch(e){$r=gh}})();function rw(e){if(Vr===setTimeout)return setTimeout(e,0);if((Vr===yh||!Vr)&&setTimeout)return Vr=setTimeout,setTimeout(e,0);try{return Vr(e,0)}catch(t){try{return Vr.call(null,e,0)}catch(r){return Vr.call(this,e,0)}}}function Pb(e){if($r===clearTimeout)return clearTimeout(e);if(($r===gh||!$r)&&clearTimeout)return $r=clearTimeout,clearTimeout(e);try{return $r(e)}catch(t){try{return $r.call(null,e)}catch(r){return $r.call(this,e)}}}var fn=[],No=!1,Mi,hc=-1;function Ob(){!No||!Mi||(No=!1,Mi.length?fn=Mi.concat(fn):hc=-1,fn.length&&nw())}function nw(){if(!No){var e=rw(Ob);No=!0;for(var t=fn.length;t;){for(Mi=fn,fn=[];++hc<t;)Mi&&Mi[hc].run();hc=-1,t=fn.length}Mi=null,No=!1,Pb(e)}}et.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)t[r-1]=arguments[r];fn.push(new iw(e,t)),fn.length===1&&!No&&rw(nw)};function iw(e,t){this.fun=e,this.array=t}iw.prototype.run=function(){this.fun.apply(null,this.array)};et.title="browser";et.browser=!0;et.env={};et.argv=[];et.version="";et.versions={};function dn(){}et.on=dn;et.addListener=dn;et.once=dn;et.off=dn;et.removeListener=dn;et.removeAllListeners=dn;et.emit=dn;et.prependListener=dn;et.prependOnceListener=dn;et.listeners=function(e){return[]};et.binding=function(e){throw new Error("process.binding is not supported")};et.cwd=function(){return"/"};et.chdir=function(e){throw new Error("process.chdir is not supported")};et.umask=function(){return 0}});var gc=ne((IP,vh)=>{"use strict";var Fo=typeof Reflect=="object"?Reflect:null,aw=Fo&&typeof Fo.apply=="function"?Fo.apply:function(t,r,n){return Function.prototype.apply.call(t,r,n)},mc;Fo&&typeof Fo.ownKeys=="function"?mc=Fo.ownKeys:Object.getOwnPropertySymbols?mc=function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:mc=function(t){return Object.getOwnPropertyNames(t)};function Ab(e){console&&console.warn&&console.warn(e)}var uw=Number.isNaN||function(t){return t!==t};function Ie(){Ie.init.call(this)}vh.exports=Ie;vh.exports.once=Lb;Ie.EventEmitter=Ie;Ie.prototype._events=void 0;Ie.prototype._eventsCount=0;Ie.prototype._maxListeners=void 0;var lw=10;function yc(e){if(typeof e!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}Object.defineProperty(Ie,"defaultMaxListeners",{enumerable:!0,get:function(){return lw},set:function(e){if(typeof e!="number"||e<0||uw(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");lw=e}});Ie.init=function(){(this._events===void 0||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0};Ie.prototype.setMaxListeners=function(t){if(typeof t!="number"||t<0||uw(t))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+t+".");return this._maxListeners=t,this};function cw(e){return e._maxListeners===void 0?Ie.defaultMaxListeners:e._maxListeners}Ie.prototype.getMaxListeners=function(){return cw(this)};Ie.prototype.emit=function(t){for(var r=[],n=1;n<arguments.length;n++)r.push(arguments[n]);var i=t==="error",o=this._events;if(o!==void 0)i=i&&o.error===void 0;else if(!i)return!1;if(i){var s;if(r.length>0&&(s=r[0]),s instanceof Error)throw s;var a=new Error("Unhandled error."+(s?" ("+s.message+")":""));throw a.context=s,a}var l=o[t];if(l===void 0)return!1;if(typeof l=="function")aw(l,this,r);else for(var u=l.length,c=mw(l,u),n=0;n<u;++n)aw(c[n],this,r);return!0};function fw(e,t,r,n){var i,o,s;if(yc(r),o=e._events,o===void 0?(o=e._events=Object.create(null),e._eventsCount=0):(o.newListener!==void 0&&(e.emit("newListener",t,r.listener?r.listener:r),o=e._events),s=o[t]),s===void 0)s=o[t]=r,++e._eventsCount;else if(typeof s=="function"?s=o[t]=n?[r,s]:[s,r]:n?s.unshift(r):s.push(r),i=cw(e),i>0&&s.length>i&&!s.warned){s.warned=!0;var a=new Error("Possible EventEmitter memory leak detected. "+s.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");a.name="MaxListenersExceededWarning",a.emitter=e,a.type=t,a.count=s.length,Ab(a)}return e}Ie.prototype.addListener=function(t,r){return fw(this,t,r,!1)};Ie.prototype.on=Ie.prototype.addListener;Ie.prototype.prependListener=function(t,r){return fw(this,t,r,!0)};function Nb(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function dw(e,t,r){var n={fired:!1,wrapFn:void 0,target:e,type:t,listener:r},i=Nb.bind(n);return i.listener=r,n.wrapFn=i,i}Ie.prototype.once=function(t,r){return yc(r),this.on(t,dw(this,t,r)),this};Ie.prototype.prependOnceListener=function(t,r){return yc(r),this.prependListener(t,dw(this,t,r)),this};Ie.prototype.removeListener=function(t,r){var n,i,o,s,a;if(yc(r),i=this._events,i===void 0)return this;if(n=i[t],n===void 0)return this;if(n===r||n.listener===r)--this._eventsCount===0?this._events=Object.create(null):(delete i[t],i.removeListener&&this.emit("removeListener",t,n.listener||r));else if(typeof n!="function"){for(o=-1,s=n.length-1;s>=0;s--)if(n[s]===r||n[s].listener===r){a=n[s].listener,o=s;break}if(o<0)return this;o===0?n.shift():Fb(n,o),n.length===1&&(i[t]=n[0]),i.removeListener!==void 0&&this.emit("removeListener",t,a||r)}return this};Ie.prototype.off=Ie.prototype.removeListener;Ie.prototype.removeAllListeners=function(t){var r,n,i;if(n=this._events,n===void 0)return this;if(n.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):n[t]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete n[t]),this;if(arguments.length===0){var o=Object.keys(n),s;for(i=0;i<o.length;++i)s=o[i],s!=="removeListener"&&this.removeAllListeners(s);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if(r=n[t],typeof r=="function")this.removeListener(t,r);else if(r!==void 0)for(i=r.length-1;i>=0;i--)this.removeListener(t,r[i]);return this};function pw(e,t,r){var n=e._events;if(n===void 0)return[];var i=n[t];return i===void 0?[]:typeof i=="function"?r?[i.listener||i]:[i]:r?Rb(i):mw(i,i.length)}Ie.prototype.listeners=function(t){return pw(this,t,!0)};Ie.prototype.rawListeners=function(t){return pw(this,t,!1)};Ie.listenerCount=function(e,t){return typeof e.listenerCount=="function"?e.listenerCount(t):hw.call(e,t)};Ie.prototype.listenerCount=hw;function hw(e){var t=this._events;if(t!==void 0){var r=t[e];if(typeof r=="function")return 1;if(r!==void 0)return r.length}return 0}Ie.prototype.eventNames=function(){return this._eventsCount>0?mc(this._events):[]};function mw(e,t){for(var r=new Array(t),n=0;n<t;++n)r[n]=e[n];return r}function Fb(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}function Rb(e){for(var t=new Array(e.length),r=0;r<t.length;++r)t[r]=e[r].listener||e[r];return t}function Lb(e,t){return new Promise(function(r,n){function i(s){e.removeListener(t,o),n(s)}function o(){typeof e.removeListener=="function"&&e.removeListener("error",i),r([].slice.call(arguments))}yw(e,t,o,{once:!0}),t!=="error"&&Db(e,i,{once:!0})})}function Db(e,t,r){typeof e.on=="function"&&yw(e,"error",t,r)}function yw(e,t,r,n){if(typeof e.on=="function")n.once?e.once(t,r):e.on(t,r);else if(typeof e.addEventListener=="function")e.addEventListener(t,function i(o){n.once&&e.removeEventListener(t,i),r(o)});else throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof e)}});var gw=ne((MP,wh)=>{typeof Object.create=="function"?wh.exports=function(t,r){r&&(t.super_=r,t.prototype=Object.create(r.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:wh.exports=function(t,r){if(r){t.super_=r;var n=function(){};n.prototype=r.prototype,t.prototype=new n,t.prototype.constructor=t}}});var Sh=ne((PP,vw)=>{vw.exports=gc().EventEmitter});var Eh=ne(()=>{});var xw=ne((NP,Ew)=>{"use strict";function ww(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Bb(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?ww(Object(r),!0).forEach(function(n){Ub(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ww(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Ub(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Hb(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Sw(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function zb(e,t,r){return t&&Sw(e.prototype,t),r&&Sw(e,r),e}var jb=Ao(),vc=jb.Buffer,Vb=Eh(),xh=Vb.inspect,$b=xh&&xh.custom||"inspect";function Wb(e,t,r){vc.prototype.copy.call(e,t,r)}Ew.exports=function(){function e(){Hb(this,e),this.head=null,this.tail=null,this.length=0}return zb(e,[{key:"push",value:function(r){var n={data:r,next:null};this.length>0?this.tail.next=n:this.head=n,this.tail=n,++this.length}},{key:"unshift",value:function(r){var n={data:r,next:this.head};this.length===0&&(this.tail=n),this.head=n,++this.length}},{key:"shift",value:function(){if(this.length!==0){var r=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,r}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(r){if(this.length===0)return"";for(var n=this.head,i=""+n.data;n=n.next;)i+=r+n.data;return i}},{key:"concat",value:function(r){if(this.length===0)return vc.alloc(0);for(var n=vc.allocUnsafe(r>>>0),i=this.head,o=0;i;)Wb(i.data,n,o),o+=i.data.length,i=i.next;return n}},{key:"consume",value:function(r,n){var i;return r<this.head.data.length?(i=this.head.data.slice(0,r),this.head.data=this.head.data.slice(r)):r===this.head.data.length?i=this.shift():i=n?this._getString(r):this._getBuffer(r),i}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(r){var n=this.head,i=1,o=n.data;for(r-=o.length;n=n.next;){var s=n.data,a=r>s.length?s.length:r;if(a===s.length?o+=s:o+=s.slice(0,r),r-=a,r===0){a===s.length?(++i,n.next?this.head=n.next:this.head=this.tail=null):(this.head=n,n.data=s.slice(a));break}++i}return this.length-=i,o}},{key:"_getBuffer",value:function(r){var n=vc.allocUnsafe(r),i=this.head,o=1;for(i.data.copy(n),r-=i.data.length;i=i.next;){var s=i.data,a=r>s.length?s.length:r;if(s.copy(n,n.length-r,0,a),r-=a,r===0){a===s.length?(++o,i.next?this.head=i.next:this.head=this.tail=null):(this.head=i,i.data=s.slice(a));break}++o}return this.length-=o,n}},{key:$b,value:function(r,n){return xh(this,Bb({},n,{depth:0,customInspect:!1}))}}]),e}()});var Th=ne((FP,Tw)=>{"use strict";function qb(e,t){var r=this,n=this._readableState&&this._readableState.destroyed,i=this._writableState&&this._writableState.destroyed;return n||i?(t?t(e):e&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,process.nextTick(_h,this,e)):process.nextTick(_h,this,e)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,function(o){!t&&o?r._writableState?r._writableState.errorEmitted?process.nextTick(wc,r):(r._writableState.errorEmitted=!0,process.nextTick(_w,r,o)):process.nextTick(_w,r,o):t?(process.nextTick(wc,r),t(o)):process.nextTick(wc,r)}),this)}function _w(e,t){_h(e,t),wc(e)}function wc(e){e._writableState&&!e._writableState.emitClose||e._readableState&&!e._readableState.emitClose||e.emit("close")}function Gb(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function _h(e,t){e.emit("error",t)}function Zb(e,t){var r=e._readableState,n=e._writableState;r&&r.autoDestroy||n&&n.autoDestroy?e.destroy(t):e.emit("error",t)}Tw.exports={destroy:qb,undestroy:Gb,errorOrDestroy:Zb}});var Pi=ne((RP,kw)=>{"use strict";function Yb(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var bw={};function pr(e,t,r){r||(r=Error);function n(o,s,a){return typeof t=="string"?t:t(o,s,a)}var i=function(o){Yb(s,o);function s(a,l,u){return o.call(this,n(a,l,u))||this}return s}(r);i.prototype.name=r.name,i.prototype.code=e,bw[e]=i}function Cw(e,t){if(Array.isArray(e)){var r=e.length;return e=e.map(function(n){return String(n)}),r>2?"one of ".concat(t," ").concat(e.slice(0,r-1).join(", "),", or ")+e[r-1]:r===2?"one of ".concat(t," ").concat(e[0]," or ").concat(e[1]):"of ".concat(t," ").concat(e[0])}else return"of ".concat(t," ").concat(String(e))}function Xb(e,t,r){return e.substr(!r||r<0?0:+r,t.length)===t}function Qb(e,t,r){return(r===void 0||r>e.length)&&(r=e.length),e.substring(r-t.length,r)===t}function Jb(e,t,r){return typeof r!="number"&&(r=0),r+t.length>e.length?!1:e.indexOf(t,r)!==-1}pr("ERR_INVALID_OPT_VALUE",function(e,t){return'The value "'+t+'" is invalid for option "'+e+'"'},TypeError);pr("ERR_INVALID_ARG_TYPE",function(e,t,r){var n;typeof t=="string"&&Xb(t,"not ")?(n="must not be",t=t.replace(/^not /,"")):n="must be";var i;if(Qb(e," argument"))i="The ".concat(e," ").concat(n," ").concat(Cw(t,"type"));else{var o=Jb(e,".")?"property":"argument";i='The "'.concat(e,'" ').concat(o," ").concat(n," ").concat(Cw(t,"type"))}return i+=". Received type ".concat(typeof r),i},TypeError);pr("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF");pr("ERR_METHOD_NOT_IMPLEMENTED",function(e){return"The "+e+" method is not implemented"});pr("ERR_STREAM_PREMATURE_CLOSE","Premature close");pr("ERR_STREAM_DESTROYED",function(e){return"Cannot call "+e+" after a stream was destroyed"});pr("ERR_MULTIPLE_CALLBACK","Callback called multiple times");pr("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable");pr("ERR_STREAM_WRITE_AFTER_END","write after end");pr("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError);pr("ERR_UNKNOWN_ENCODING",function(e){return"Unknown encoding: "+e},TypeError);pr("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event");kw.exports.codes=bw});var Ch=ne((LP,Iw)=>{"use strict";var Kb=Pi().codes.ERR_INVALID_OPT_VALUE;function ek(e,t,r){return e.highWaterMark!=null?e.highWaterMark:t?e[r]:null}function tk(e,t,r,n){var i=ek(t,n,r);if(i!=null){if(!(isFinite(i)&&Math.floor(i)===i)||i<0){var o=n?r:"highWaterMark";throw new Kb(o,i)}return Math.floor(i)}return e.objectMode?16:16*1024}Iw.exports={getHighWaterMark:tk}});var Ro=ne((DP,bh)=>{typeof Object.create=="function"?bh.exports=function(t,r){t.super_=r,t.prototype=Object.create(r.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}})}:bh.exports=function(t,r){t.super_=r;var n=function(){};n.prototype=r.prototype,t.prototype=new n,t.prototype.constructor=t}});var Pw=ne((BP,Mw)=>{Mw.exports=rk;function rk(e,t){if(kh("noDeprecation"))return e;var r=!1;function n(){if(!r){if(kh("throwDeprecation"))throw new Error(t);kh("traceDeprecation")?console.trace(t):console.warn(t),r=!0}return e.apply(this,arguments)}return n}function kh(e){try{if(!window.localStorage)return!1}catch(r){return!1}var t=window.localStorage[e];return t==null?!1:String(t).toLowerCase()==="true"}});var Ph=ne((UP,Lw)=>{"use strict";Lw.exports=Ye;function Aw(e){var t=this;this.next=null,this.entry=null,this.finish=function(){Mk(t,e)}}var Lo;Ye.WritableState=ha;var nk={deprecate:Pw()},Nw=Sh(),Ec=Ao().Buffer,ik=window.Uint8Array||function(){};function ok(e){return Ec.from(e)}function sk(e){return Ec.isBuffer(e)||e instanceof ik}var Mh=Th(),ak=Ch(),lk=ak.getHighWaterMark,Zn=Pi().codes,uk=Zn.ERR_INVALID_ARG_TYPE,ck=Zn.ERR_METHOD_NOT_IMPLEMENTED,fk=Zn.ERR_MULTIPLE_CALLBACK,dk=Zn.ERR_STREAM_CANNOT_PIPE,pk=Zn.ERR_STREAM_DESTROYED,hk=Zn.ERR_STREAM_NULL_VALUES,mk=Zn.ERR_STREAM_WRITE_AFTER_END,yk=Zn.ERR_UNKNOWN_ENCODING,Do=Mh.errorOrDestroy;Ro()(Ye,Nw);function gk(){}function ha(e,t,r){Lo=Lo||Oi(),e=e||{},typeof r!="boolean"&&(r=t instanceof Lo),this.objectMode=!!e.objectMode,r&&(this.objectMode=this.objectMode||!!e.writableObjectMode),this.highWaterMark=lk(this,e,"writableHighWaterMark",r),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var n=e.decodeStrings===!1;this.decodeStrings=!n,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(i){Tk(t,i)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=e.emitClose!==!1,this.autoDestroy=!!e.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new Aw(this)}ha.prototype.getBuffer=function(){for(var t=this.bufferedRequest,r=[];t;)r.push(t),t=t.next;return r};(function(){try{Object.defineProperty(ha.prototype,"buffer",{get:nk.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(e){}})();var Sc;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(Sc=Function.prototype[Symbol.hasInstance],Object.defineProperty(Ye,Symbol.hasInstance,{value:function(t){return Sc.call(this,t)?!0:this!==Ye?!1:t&&t._writableState instanceof ha}})):Sc=function(t){return t instanceof this};function Ye(e){Lo=Lo||Oi();var t=this instanceof Lo;if(!t&&!Sc.call(Ye,this))return new Ye(e);this._writableState=new ha(e,this,t),this.writable=!0,e&&(typeof e.write=="function"&&(this._write=e.write),typeof e.writev=="function"&&(this._writev=e.writev),typeof e.destroy=="function"&&(this._destroy=e.destroy),typeof e.final=="function"&&(this._final=e.final)),Nw.call(this)}Ye.prototype.pipe=function(){Do(this,new dk)};function vk(e,t){var r=new mk;Do(e,r),process.nextTick(t,r)}function wk(e,t,r,n){var i;return r===null?i=new hk:typeof r!="string"&&!t.objectMode&&(i=new uk("chunk",["string","Buffer"],r)),i?(Do(e,i),process.nextTick(n,i),!1):!0}Ye.prototype.write=function(e,t,r){var n=this._writableState,i=!1,o=!n.objectMode&&sk(e);return o&&!Ec.isBuffer(e)&&(e=ok(e)),typeof t=="function"&&(r=t,t=null),o?t="buffer":t||(t=n.defaultEncoding),typeof r!="function"&&(r=gk),n.ending?vk(this,r):(o||wk(this,n,e,r))&&(n.pendingcb++,i=Ek(this,n,o,e,t,r)),i};Ye.prototype.cork=function(){this._writableState.corked++};Ye.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,!e.writing&&!e.corked&&!e.bufferProcessing&&e.bufferedRequest&&Fw(this,e))};Ye.prototype.setDefaultEncoding=function(t){if(typeof t=="string"&&(t=t.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((t+"").toLowerCase())>-1))throw new yk(t);return this._writableState.defaultEncoding=t,this};Object.defineProperty(Ye.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});function Sk(e,t,r){return!e.objectMode&&e.decodeStrings!==!1&&typeof t=="string"&&(t=Ec.from(t,r)),t}Object.defineProperty(Ye.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function Ek(e,t,r,n,i,o){if(!r){var s=Sk(t,n,i);n!==s&&(r=!0,i="buffer",n=s)}var a=t.objectMode?1:n.length;t.length+=a;var l=t.length<t.highWaterMark;if(l||(t.needDrain=!0),t.writing||t.corked){var u=t.lastBufferedRequest;t.lastBufferedRequest={chunk:n,encoding:i,isBuf:r,callback:o,next:null},u?u.next=t.lastBufferedRequest:t.bufferedRequest=t.lastBufferedRequest,t.bufferedRequestCount+=1}else Ih(e,t,!1,a,n,i,o);return l}function Ih(e,t,r,n,i,o,s){t.writelen=n,t.writecb=s,t.writing=!0,t.sync=!0,t.destroyed?t.onwrite(new pk("write")):r?e._writev(i,t.onwrite):e._write(i,o,t.onwrite),t.sync=!1}function xk(e,t,r,n,i){--t.pendingcb,r?(process.nextTick(i,n),process.nextTick(pa,e,t),e._writableState.errorEmitted=!0,Do(e,n)):(i(n),e._writableState.errorEmitted=!0,Do(e,n),pa(e,t))}function _k(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}function Tk(e,t){var r=e._writableState,n=r.sync,i=r.writecb;if(typeof i!="function")throw new fk;if(_k(r),t)xk(e,r,n,t,i);else{var o=Rw(r)||e.destroyed;!o&&!r.corked&&!r.bufferProcessing&&r.bufferedRequest&&Fw(e,r),n?process.nextTick(Ow,e,r,o,i):Ow(e,r,o,i)}}function Ow(e,t,r,n){r||Ck(e,t),t.pendingcb--,n(),pa(e,t)}function Ck(e,t){t.length===0&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}function Fw(e,t){t.bufferProcessing=!0;var r=t.bufferedRequest;if(e._writev&&r&&r.next){var n=t.bufferedRequestCount,i=new Array(n),o=t.corkedRequestsFree;o.entry=r;for(var s=0,a=!0;r;)i[s]=r,r.isBuf||(a=!1),r=r.next,s+=1;i.allBuffers=a,Ih(e,t,!0,t.length,i,"",o.finish),t.pendingcb++,t.lastBufferedRequest=null,o.next?(t.corkedRequestsFree=o.next,o.next=null):t.corkedRequestsFree=new Aw(t),t.bufferedRequestCount=0}else{for(;r;){var l=r.chunk,u=r.encoding,c=r.callback,f=t.objectMode?1:l.length;if(Ih(e,t,!1,f,l,u,c),r=r.next,t.bufferedRequestCount--,t.writing)break}r===null&&(t.lastBufferedRequest=null)}t.bufferedRequest=r,t.bufferProcessing=!1}Ye.prototype._write=function(e,t,r){r(new ck("_write()"))};Ye.prototype._writev=null;Ye.prototype.end=function(e,t,r){var n=this._writableState;return typeof e=="function"?(r=e,e=null,t=null):typeof t=="function"&&(r=t,t=null),e!=null&&this.write(e,t),n.corked&&(n.corked=1,this.uncork()),n.ending||Ik(this,n,r),this};Object.defineProperty(Ye.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function Rw(e){return e.ending&&e.length===0&&e.bufferedRequest===null&&!e.finished&&!e.writing}function bk(e,t){e._final(function(r){t.pendingcb--,r&&Do(e,r),t.prefinished=!0,e.emit("prefinish"),pa(e,t)})}function kk(e,t){!t.prefinished&&!t.finalCalled&&(typeof e._final=="function"&&!t.destroyed?(t.pendingcb++,t.finalCalled=!0,process.nextTick(bk,e,t)):(t.prefinished=!0,e.emit("prefinish")))}function pa(e,t){var r=Rw(t);if(r&&(kk(e,t),t.pendingcb===0&&(t.finished=!0,e.emit("finish"),t.autoDestroy))){var n=e._readableState;(!n||n.autoDestroy&&n.endEmitted)&&e.destroy()}return r}function Ik(e,t,r){t.ending=!0,pa(e,t),r&&(t.finished?process.nextTick(r):e.once("finish",r)),t.ended=!0,e.writable=!1}function Mk(e,t,r){var n=e.entry;for(e.entry=null;n;){var i=n.callback;t.pendingcb--,i(r),n=n.next}t.corkedRequestsFree.next=e}Object.defineProperty(Ye.prototype,"destroyed",{enumerable:!1,get:function(){return this._writableState===void 0?!1:this._writableState.destroyed},set:function(t){!this._writableState||(this._writableState.destroyed=t)}});Ye.prototype.destroy=Mh.destroy;Ye.prototype._undestroy=Mh.undestroy;Ye.prototype._destroy=function(e,t){t(e)}});var Oi=ne((HP,Bw)=>{"use strict";var Pk=Object.keys||function(e){var t=[];for(var r in e)t.push(r);return t};Bw.exports=Wr;var Dw=Nh(),Ah=Ph();Ro()(Wr,Dw);for(Oh=Pk(Ah.prototype),xc=0;xc<Oh.length;xc++)_c=Oh[xc],Wr.prototype[_c]||(Wr.prototype[_c]=Ah.prototype[_c]);var Oh,_c,xc;function Wr(e){if(!(this instanceof Wr))return new Wr(e);Dw.call(this,e),Ah.call(this,e),this.allowHalfOpen=!0,e&&(e.readable===!1&&(this.readable=!1),e.writable===!1&&(this.writable=!1),e.allowHalfOpen===!1&&(this.allowHalfOpen=!1,this.once("end",Ok)))}Object.defineProperty(Wr.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});Object.defineProperty(Wr.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});Object.defineProperty(Wr.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function Ok(){this._writableState.ended||process.nextTick(Ak,this)}function Ak(e){e.end()}Object.defineProperty(Wr.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0||this._writableState===void 0?!1:this._readableState.destroyed&&this._writableState.destroyed},set:function(t){this._readableState===void 0||this._writableState===void 0||(this._readableState.destroyed=t,this._writableState.destroyed=t)}})});var zw=ne((Fh,Hw)=>{var Tc=Ao(),pn=Tc.Buffer;function Uw(e,t){for(var r in e)t[r]=e[r]}pn.from&&pn.alloc&&pn.allocUnsafe&&pn.allocUnsafeSlow?Hw.exports=Tc:(Uw(Tc,Fh),Fh.Buffer=Bo);function Bo(e,t,r){return pn(e,t,r)}Uw(pn,Bo);Bo.from=function(e,t,r){if(typeof e=="number")throw new TypeError("Argument must not be a number");return pn(e,t,r)};Bo.alloc=function(e,t,r){if(typeof e!="number")throw new TypeError("Argument must be a number");var n=pn(e);return t!==void 0?typeof r=="string"?n.fill(t,r):n.fill(t):n.fill(0),n};Bo.allocUnsafe=function(e){if(typeof e!="number")throw new TypeError("Argument must be a number");return pn(e)};Bo.allocUnsafeSlow=function(e){if(typeof e!="number")throw new TypeError("Argument must be a number");return Tc.SlowBuffer(e)}});var Dh=ne(Vw=>{"use strict";var Lh=zw().Buffer,jw=Lh.isEncoding||function(e){switch(e=""+e,e&&e.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 Nk(e){if(!e)return"utf8";for(var t;;)switch(e){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 e;default:if(t)return;e=(""+e).toLowerCase(),t=!0}}function Fk(e){var t=Nk(e);if(typeof t!="string"&&(Lh.isEncoding===jw||!jw(e)))throw new Error("Unknown encoding: "+e);return t||e}Vw.StringDecoder=ma;function ma(e){this.encoding=Fk(e);var t;switch(this.encoding){case"utf16le":this.text=Hk,this.end=zk,t=4;break;case"utf8":this.fillLast=Dk,t=4;break;case"base64":this.text=jk,this.end=Vk,t=3;break;default:this.write=$k,this.end=Wk;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=Lh.allocUnsafe(t)}ma.prototype.write=function(e){if(e.length===0)return"";var t,r;if(this.lastNeed){if(t=this.fillLast(e),t===void 0)return"";r=this.lastNeed,this.lastNeed=0}else r=0;return r<e.length?t?t+this.text(e,r):this.text(e,r):t||""};ma.prototype.end=Uk;ma.prototype.text=Bk;ma.prototype.fillLast=function(e){if(this.lastNeed<=e.length)return e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,e.length),this.lastNeed-=e.length};function Rh(e){return e<=127?0:e>>5===6?2:e>>4===14?3:e>>3===30?4:e>>6===2?-1:-2}function Rk(e,t,r){var n=t.length-1;if(n<r)return 0;var i=Rh(t[n]);return i>=0?(i>0&&(e.lastNeed=i-1),i):--n<r||i===-2?0:(i=Rh(t[n]),i>=0?(i>0&&(e.lastNeed=i-2),i):--n<r||i===-2?0:(i=Rh(t[n]),i>=0?(i>0&&(i===2?i=0:e.lastNeed=i-3),i):0))}function Lk(e,t,r){if((t[0]&192)!==128)return e.lastNeed=0,"\uFFFD";if(e.lastNeed>1&&t.length>1){if((t[1]&192)!==128)return e.lastNeed=1,"\uFFFD";if(e.lastNeed>2&&t.length>2&&(t[2]&192)!==128)return e.lastNeed=2,"\uFFFD"}}function Dk(e){var t=this.lastTotal-this.lastNeed,r=Lk(this,e,t);if(r!==void 0)return r;if(this.lastNeed<=e.length)return e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,t,0,e.length),this.lastNeed-=e.length}function Bk(e,t){var r=Rk(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=r;var n=e.length-(r-this.lastNeed);return e.copy(this.lastChar,0,n),e.toString("utf8",t,n)}function Uk(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+"\uFFFD":t}function Hk(e,t){if((e.length-t)%2===0){var r=e.toString("utf16le",t);if(r){var n=r.charCodeAt(r.length-1);if(n>=55296&&n<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],r.slice(0,-1)}return r}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1)}function zk(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var r=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,r)}return t}function jk(e,t){var r=(e.length-t)%3;return r===0?e.toString("base64",t):(this.lastNeed=3-r,this.lastTotal=3,r===1?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",t,e.length-r))}function Vk(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function $k(e){return e.toString(this.encoding)}function Wk(e){return e&&e.length?this.write(e):""}});var Cc=ne((jP,qw)=>{"use strict";var $w=Pi().codes.ERR_STREAM_PREMATURE_CLOSE;function qk(e){var t=!1;return function(){if(!t){t=!0;for(var r=arguments.length,n=new Array(r),i=0;i<r;i++)n[i]=arguments[i];e.apply(this,n)}}}function Gk(){}function Zk(e){return e.setHeader&&typeof e.abort=="function"}function Ww(e,t,r){if(typeof t=="function")return Ww(e,null,t);t||(t={}),r=qk(r||Gk);var n=t.readable||t.readable!==!1&&e.readable,i=t.writable||t.writable!==!1&&e.writable,o=function(){e.writable||a()},s=e._writableState&&e._writableState.finished,a=function(){i=!1,s=!0,n||r.call(e)},l=e._readableState&&e._readableState.endEmitted,u=function(){n=!1,l=!0,i||r.call(e)},c=function(g){r.call(e,g)},f=function(){var g;if(n&&!l)return(!e._readableState||!e._readableState.ended)&&(g=new $w),r.call(e,g);if(i&&!s)return(!e._writableState||!e._writableState.ended)&&(g=new $w),r.call(e,g)},h=function(){e.req.on("finish",a)};return Zk(e)?(e.on("complete",a),e.on("abort",f),e.req?h():e.on("request",h)):i&&!e._writableState&&(e.on("end",o),e.on("close",o)),e.on("end",u),e.on("finish",a),t.error!==!1&&e.on("error",c),e.on("close",f),function(){e.removeListener("complete",a),e.removeListener("abort",f),e.removeListener("request",h),e.req&&e.req.removeListener("finish",a),e.removeListener("end",o),e.removeListener("close",o),e.removeListener("finish",a),e.removeListener("end",u),e.removeListener("error",c),e.removeListener("close",f)}}qw.exports=Ww});var Zw=ne((VP,Gw)=>{"use strict";var bc;function Yn(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var Yk=Cc(),Xn=Symbol("lastResolve"),Ai=Symbol("lastReject"),ya=Symbol("error"),kc=Symbol("ended"),Ni=Symbol("lastPromise"),Bh=Symbol("handlePromise"),Fi=Symbol("stream");function Qn(e,t){return{value:e,done:t}}function Xk(e){var t=e[Xn];if(t!==null){var r=e[Fi].read();r!==null&&(e[Ni]=null,e[Xn]=null,e[Ai]=null,t(Qn(r,!1)))}}function Qk(e){process.nextTick(Xk,e)}function Jk(e,t){return function(r,n){e.then(function(){if(t[kc]){r(Qn(void 0,!0));return}t[Bh](r,n)},n)}}var Kk=Object.getPrototypeOf(function(){}),e3=Object.setPrototypeOf((bc={get stream(){return this[Fi]},next:function(){var t=this,r=this[ya];if(r!==null)return Promise.reject(r);if(this[kc])return Promise.resolve(Qn(void 0,!0));if(this[Fi].destroyed)return new Promise(function(s,a){process.nextTick(function(){t[ya]?a(t[ya]):s(Qn(void 0,!0))})});var n=this[Ni],i;if(n)i=new Promise(Jk(n,this));else{var o=this[Fi].read();if(o!==null)return Promise.resolve(Qn(o,!1));i=new Promise(this[Bh])}return this[Ni]=i,i}},Yn(bc,Symbol.asyncIterator,function(){return this}),Yn(bc,"return",function(){var t=this;return new Promise(function(r,n){t[Fi].destroy(null,function(i){if(i){n(i);return}r(Qn(void 0,!0))})})}),bc),Kk),t3=function(t){var r,n=Object.create(e3,(r={},Yn(r,Fi,{value:t,writable:!0}),Yn(r,Xn,{value:null,writable:!0}),Yn(r,Ai,{value:null,writable:!0}),Yn(r,ya,{value:null,writable:!0}),Yn(r,kc,{value:t._readableState.endEmitted,writable:!0}),Yn(r,Bh,{value:function(o,s){var a=n[Fi].read();a?(n[Ni]=null,n[Xn]=null,n[Ai]=null,o(Qn(a,!1))):(n[Xn]=o,n[Ai]=s)},writable:!0}),r));return n[Ni]=null,Yk(t,function(i){if(i&&i.code!=="ERR_STREAM_PREMATURE_CLOSE"){var o=n[Ai];o!==null&&(n[Ni]=null,n[Xn]=null,n[Ai]=null,o(i)),n[ya]=i;return}var s=n[Xn];s!==null&&(n[Ni]=null,n[Xn]=null,n[Ai]=null,s(Qn(void 0,!0))),n[kc]=!0}),t.on("readable",Qk.bind(null,n)),n};Gw.exports=t3});var Xw=ne(($P,Yw)=>{Yw.exports=function(){throw new Error("Readable.from is not available in the browser")}});var Nh=ne((qP,sS)=>{"use strict";sS.exports=ge;var Uo;ge.ReadableState=eS;var WP=gc().EventEmitter,Kw=function(t,r){return t.listeners(r).length},va=Sh(),Ic=Ao().Buffer,r3=window.Uint8Array||function(){};function n3(e){return Ic.from(e)}function i3(e){return Ic.isBuffer(e)||e instanceof r3}var Uh=Eh(),ce;Uh&&Uh.debuglog?ce=Uh.debuglog("stream"):ce=function(){};var o3=xw(),qh=Th(),s3=Ch(),a3=s3.getHighWaterMark,Mc=Pi().codes,l3=Mc.ERR_INVALID_ARG_TYPE,u3=Mc.ERR_STREAM_PUSH_AFTER_EOF,c3=Mc.ERR_METHOD_NOT_IMPLEMENTED,f3=Mc.ERR_STREAM_UNSHIFT_AFTER_END_EVENT,Ho,Hh,zh;Ro()(ge,va);var ga=qh.errorOrDestroy,jh=["error","close","destroy","pause","resume"];function d3(e,t,r){if(typeof e.prependListener=="function")return e.prependListener(t,r);!e._events||!e._events[t]?e.on(t,r):Array.isArray(e._events[t])?e._events[t].unshift(r):e._events[t]=[r,e._events[t]]}function eS(e,t,r){Uo=Uo||Oi(),e=e||{},typeof r!="boolean"&&(r=t instanceof Uo),this.objectMode=!!e.objectMode,r&&(this.objectMode=this.objectMode||!!e.readableObjectMode),this.highWaterMark=a3(this,e,"readableHighWaterMark",r),this.buffer=new o3,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=e.emitClose!==!1,this.autoDestroy=!!e.autoDestroy,this.destroyed=!1,this.defaultEncoding=e.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(Ho||(Ho=Dh().StringDecoder),this.decoder=new Ho(e.encoding),this.encoding=e.encoding)}function ge(e){if(Uo=Uo||Oi(),!(this instanceof ge))return new ge(e);var t=this instanceof Uo;this._readableState=new eS(e,this,t),this.readable=!0,e&&(typeof e.read=="function"&&(this._read=e.read),typeof e.destroy=="function"&&(this._destroy=e.destroy)),va.call(this)}Object.defineProperty(ge.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(t){!this._readableState||(this._readableState.destroyed=t)}});ge.prototype.destroy=qh.destroy;ge.prototype._undestroy=qh.undestroy;ge.prototype._destroy=function(e,t){t(e)};ge.prototype.push=function(e,t){var r=this._readableState,n;return r.objectMode?n=!0:typeof e=="string"&&(t=t||r.defaultEncoding,t!==r.encoding&&(e=Ic.from(e,t),t=""),n=!0),tS(this,e,t,!1,n)};ge.prototype.unshift=function(e){return tS(this,e,null,!0,!1)};function tS(e,t,r,n,i){ce("readableAddChunk",t);var o=e._readableState;if(t===null)o.reading=!1,m3(e,o);else{var s;if(i||(s=p3(o,t)),s)ga(e,s);else if(o.objectMode||t&&t.length>0)if(typeof t!="string"&&!o.objectMode&&Object.getPrototypeOf(t)!==Ic.prototype&&(t=n3(t)),n)o.endEmitted?ga(e,new f3):Vh(e,o,t,!0);else if(o.ended)ga(e,new u3);else{if(o.destroyed)return!1;o.reading=!1,o.decoder&&!r?(t=o.decoder.write(t),o.objectMode||t.length!==0?Vh(e,o,t,!1):Wh(e,o)):Vh(e,o,t,!1)}else n||(o.reading=!1,Wh(e,o))}return!o.ended&&(o.length<o.highWaterMark||o.length===0)}function Vh(e,t,r,n){t.flowing&&t.length===0&&!t.sync?(t.awaitDrain=0,e.emit("data",r)):(t.length+=t.objectMode?1:r.length,n?t.buffer.unshift(r):t.buffer.push(r),t.needReadable&&Pc(e)),Wh(e,t)}function p3(e,t){var r;return!i3(t)&&typeof t!="string"&&t!==void 0&&!e.objectMode&&(r=new l3("chunk",["string","Buffer","Uint8Array"],t)),r}ge.prototype.isPaused=function(){return this._readableState.flowing===!1};ge.prototype.setEncoding=function(e){Ho||(Ho=Dh().StringDecoder);var t=new Ho(e);this._readableState.decoder=t,this._readableState.encoding=this._readableState.decoder.encoding;for(var r=this._readableState.buffer.head,n="";r!==null;)n+=t.write(r.data),r=r.next;return this._readableState.buffer.clear(),n!==""&&this._readableState.buffer.push(n),this._readableState.length=n.length,this};var Qw=1073741824;function h3(e){return e>=Qw?e=Qw:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}function Jw(e,t){return e<=0||t.length===0&&t.ended?0:t.objectMode?1:e!==e?t.flowing&&t.length?t.buffer.head.data.length:t.length:(e>t.highWaterMark&&(t.highWaterMark=h3(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}ge.prototype.read=function(e){ce("read",e),e=parseInt(e,10);var t=this._readableState,r=e;if(e!==0&&(t.emittedReadable=!1),e===0&&t.needReadable&&((t.highWaterMark!==0?t.length>=t.highWaterMark:t.length>0)||t.ended))return ce("read: emitReadable",t.length,t.ended),t.length===0&&t.ended?$h(this):Pc(this),null;if(e=Jw(e,t),e===0&&t.ended)return t.length===0&&$h(this),null;var n=t.needReadable;ce("need readable",n),(t.length===0||t.length-e<t.highWaterMark)&&(n=!0,ce("length less than watermark",n)),t.ended||t.reading?(n=!1,ce("reading or ended",n)):n&&(ce("do read"),t.reading=!0,t.sync=!0,t.length===0&&(t.needReadable=!0),this._read(t.highWaterMark),t.sync=!1,t.reading||(e=Jw(r,t)));var i;return e>0?i=iS(e,t):i=null,i===null?(t.needReadable=t.length<=t.highWaterMark,e=0):(t.length-=e,t.awaitDrain=0),t.length===0&&(t.ended||(t.needReadable=!0),r!==e&&t.ended&&$h(this)),i!==null&&this.emit("data",i),i};function m3(e,t){if(ce("onEofChunk"),!t.ended){if(t.decoder){var r=t.decoder.end();r&&r.length&&(t.buffer.push(r),t.length+=t.objectMode?1:r.length)}t.ended=!0,t.sync?Pc(e):(t.needReadable=!1,t.emittedReadable||(t.emittedReadable=!0,rS(e)))}}function Pc(e){var t=e._readableState;ce("emitReadable",t.needReadable,t.emittedReadable),t.needReadable=!1,t.emittedReadable||(ce("emitReadable",t.flowing),t.emittedReadable=!0,process.nextTick(rS,e))}function rS(e){var t=e._readableState;ce("emitReadable_",t.destroyed,t.length,t.ended),!t.destroyed&&(t.length||t.ended)&&(e.emit("readable"),t.emittedReadable=!1),t.needReadable=!t.flowing&&!t.ended&&t.length<=t.highWaterMark,Gh(e)}function Wh(e,t){t.readingMore||(t.readingMore=!0,process.nextTick(y3,e,t))}function y3(e,t){for(;!t.reading&&!t.ended&&(t.length<t.highWaterMark||t.flowing&&t.length===0);){var r=t.length;if(ce("maybeReadMore read 0"),e.read(0),r===t.length)break}t.readingMore=!1}ge.prototype._read=function(e){ga(this,new c3("_read()"))};ge.prototype.pipe=function(e,t){var r=this,n=this._readableState;switch(n.pipesCount){case 0:n.pipes=e;break;case 1:n.pipes=[n.pipes,e];break;default:n.pipes.push(e);break}n.pipesCount+=1,ce("pipe count=%d opts=%j",n.pipesCount,t);var i=(!t||t.end!==!1)&&e!==process.stdout&&e!==process.stderr,o=i?a:y;n.endEmitted?process.nextTick(o):r.once("end",o),e.on("unpipe",s);function s(x,m){ce("onunpipe"),x===r&&m&&m.hasUnpiped===!1&&(m.hasUnpiped=!0,c())}function a(){ce("onend"),e.end()}var l=g3(r);e.on("drain",l);var u=!1;function c(){ce("cleanup"),e.removeListener("close",d),e.removeListener("finish",g),e.removeListener("drain",l),e.removeListener("error",h),e.removeListener("unpipe",s),r.removeListener("end",a),r.removeListener("end",y),r.removeListener("data",f),u=!0,n.awaitDrain&&(!e._writableState||e._writableState.needDrain)&&l()}r.on("data",f);function f(x){ce("ondata");var m=e.write(x);ce("dest.write",m),m===!1&&((n.pipesCount===1&&n.pipes===e||n.pipesCount>1&&oS(n.pipes,e)!==-1)&&!u&&(ce("false write response, pause",n.awaitDrain),n.awaitDrain++),r.pause())}function h(x){ce("onerror",x),y(),e.removeListener("error",h),Kw(e,"error")===0&&ga(e,x)}d3(e,"error",h);function d(){e.removeListener("finish",g),y()}e.once("close",d);function g(){ce("onfinish"),e.removeListener("close",d),y()}e.once("finish",g);function y(){ce("unpipe"),r.unpipe(e)}return e.emit("pipe",r),n.flowing||(ce("pipe resume"),r.resume()),e};function g3(e){return function(){var r=e._readableState;ce("pipeOnDrain",r.awaitDrain),r.awaitDrain&&r.awaitDrain--,r.awaitDrain===0&&Kw(e,"data")&&(r.flowing=!0,Gh(e))}}ge.prototype.unpipe=function(e){var t=this._readableState,r={hasUnpiped:!1};if(t.pipesCount===0)return this;if(t.pipesCount===1)return e&&e!==t.pipes?this:(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,r),this);if(!e){var n=t.pipes,i=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var o=0;o<i;o++)n[o].emit("unpipe",this,{hasUnpiped:!1});return this}var s=oS(t.pipes,e);return s===-1?this:(t.pipes.splice(s,1),t.pipesCount-=1,t.pipesCount===1&&(t.pipes=t.pipes[0]),e.emit("unpipe",this,r),this)};ge.prototype.on=function(e,t){var r=va.prototype.on.call(this,e,t),n=this._readableState;return e==="data"?(n.readableListening=this.listenerCount("readable")>0,n.flowing!==!1&&this.resume()):e==="readable"&&!n.endEmitted&&!n.readableListening&&(n.readableListening=n.needReadable=!0,n.flowing=!1,n.emittedReadable=!1,ce("on readable",n.length,n.reading),n.length?Pc(this):n.reading||process.nextTick(v3,this)),r};ge.prototype.addListener=ge.prototype.on;ge.prototype.removeListener=function(e,t){var r=va.prototype.removeListener.call(this,e,t);return e==="readable"&&process.nextTick(nS,this),r};ge.prototype.removeAllListeners=function(e){var t=va.prototype.removeAllListeners.apply(this,arguments);return(e==="readable"||e===void 0)&&process.nextTick(nS,this),t};function nS(e){var t=e._readableState;t.readableListening=e.listenerCount("readable")>0,t.resumeScheduled&&!t.paused?t.flowing=!0:e.listenerCount("data")>0&&e.resume()}function v3(e){ce("readable nexttick read 0"),e.read(0)}ge.prototype.resume=function(){var e=this._readableState;return e.flowing||(ce("resume"),e.flowing=!e.readableListening,w3(this,e)),e.paused=!1,this};function w3(e,t){t.resumeScheduled||(t.resumeScheduled=!0,process.nextTick(S3,e,t))}function S3(e,t){ce("resume",t.reading),t.reading||e.read(0),t.resumeScheduled=!1,e.emit("resume"),Gh(e),t.flowing&&!t.reading&&e.read(0)}ge.prototype.pause=function(){return ce("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(ce("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this};function Gh(e){var t=e._readableState;for(ce("flow",t.flowing);t.flowing&&e.read()!==null;);}ge.prototype.wrap=function(e){var t=this,r=this._readableState,n=!1;e.on("end",function(){if(ce("wrapped end"),r.decoder&&!r.ended){var s=r.decoder.end();s&&s.length&&t.push(s)}t.push(null)}),e.on("data",function(s){if(ce("wrapped data"),r.decoder&&(s=r.decoder.write(s)),!(r.objectMode&&s==null)&&!(!r.objectMode&&(!s||!s.length))){var a=t.push(s);a||(n=!0,e.pause())}});for(var i in e)this[i]===void 0&&typeof e[i]=="function"&&(this[i]=function(a){return function(){return e[a].apply(e,arguments)}}(i));for(var o=0;o<jh.length;o++)e.on(jh[o],this.emit.bind(this,jh[o]));return this._read=function(s){ce("wrapped _read",s),n&&(n=!1,e.resume())},this};typeof Symbol=="function"&&(ge.prototype[Symbol.asyncIterator]=function(){return Hh===void 0&&(Hh=Zw()),Hh(this)});Object.defineProperty(ge.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}});Object.defineProperty(ge.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}});Object.defineProperty(ge.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(t){this._readableState&&(this._readableState.flowing=t)}});ge._fromList=iS;Object.defineProperty(ge.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}});function iS(e,t){if(t.length===0)return null;var r;return t.objectMode?r=t.buffer.shift():!e||e>=t.length?(t.decoder?r=t.buffer.join(""):t.buffer.length===1?r=t.buffer.first():r=t.buffer.concat(t.length),t.buffer.clear()):r=t.buffer.consume(e,t.decoder),r}function $h(e){var t=e._readableState;ce("endReadable",t.endEmitted),t.endEmitted||(t.ended=!0,process.nextTick(E3,t,e))}function E3(e,t){if(ce("endReadableNT",e.endEmitted,e.length),!e.endEmitted&&e.length===0&&(e.endEmitted=!0,t.readable=!1,t.emit("end"),e.autoDestroy)){var r=t._writableState;(!r||r.autoDestroy&&r.finished)&&t.destroy()}}typeof Symbol=="function"&&(ge.from=function(e,t){return zh===void 0&&(zh=Xw()),zh(ge,e,t)});function oS(e,t){for(var r=0,n=e.length;r<n;r++)if(e[r]===t)return r;return-1}});var Zh=ne((GP,lS)=>{"use strict";lS.exports=hn;var Oc=Pi().codes,x3=Oc.ERR_METHOD_NOT_IMPLEMENTED,_3=Oc.ERR_MULTIPLE_CALLBACK,T3=Oc.ERR_TRANSFORM_ALREADY_TRANSFORMING,C3=Oc.ERR_TRANSFORM_WITH_LENGTH_0,Ac=Oi();Ro()(hn,Ac);function b3(e,t){var r=this._transformState;r.transforming=!1;var n=r.writecb;if(n===null)return this.emit("error",new _3);r.writechunk=null,r.writecb=null,t!=null&&this.push(t),n(e);var i=this._readableState;i.reading=!1,(i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}function hn(e){if(!(this instanceof hn))return new hn(e);Ac.call(this,e),this._transformState={afterTransform:b3.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,e&&(typeof e.transform=="function"&&(this._transform=e.transform),typeof e.flush=="function"&&(this._flush=e.flush)),this.on("prefinish",k3)}function k3(){var e=this;typeof this._flush=="function"&&!this._readableState.destroyed?this._flush(function(t,r){aS(e,t,r)}):aS(this,null,null)}hn.prototype.push=function(e,t){return this._transformState.needTransform=!1,Ac.prototype.push.call(this,e,t)};hn.prototype._transform=function(e,t,r){r(new x3("_transform()"))};hn.prototype._write=function(e,t,r){var n=this._transformState;if(n.writecb=r,n.writechunk=e,n.writeencoding=t,!n.transforming){var i=this._readableState;(n.needTransform||i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}};hn.prototype._read=function(e){var t=this._transformState;t.writechunk!==null&&!t.transforming?(t.transforming=!0,this._transform(t.writechunk,t.writeencoding,t.afterTransform)):t.needTransform=!0};hn.prototype._destroy=function(e,t){Ac.prototype._destroy.call(this,e,function(r){t(r)})};function aS(e,t,r){if(t)return e.emit("error",t);if(r!=null&&e.push(r),e._writableState.length)throw new C3;if(e._transformState.transforming)throw new T3;return e.push(null)}});var fS=ne((ZP,cS)=>{"use strict";cS.exports=wa;var uS=Zh();Ro()(wa,uS);function wa(e){if(!(this instanceof wa))return new wa(e);uS.call(this,e)}wa.prototype._transform=function(e,t,r){r(null,e)}});var yS=ne((YP,mS)=>{"use strict";var Yh;function I3(e){var t=!1;return function(){t||(t=!0,e.apply(void 0,arguments))}}var hS=Pi().codes,M3=hS.ERR_MISSING_ARGS,P3=hS.ERR_STREAM_DESTROYED;function dS(e){if(e)throw e}function O3(e){return e.setHeader&&typeof e.abort=="function"}function A3(e,t,r,n){n=I3(n);var i=!1;e.on("close",function(){i=!0}),Yh===void 0&&(Yh=Cc()),Yh(e,{readable:t,writable:r},function(s){if(s)return n(s);i=!0,n()});var o=!1;return function(s){if(!i&&!o){if(o=!0,O3(e))return e.abort();if(typeof e.destroy=="function")return e.destroy();n(s||new P3("pipe"))}}}function pS(e){e()}function N3(e,t){return e.pipe(t)}function F3(e){return!e.length||typeof e[e.length-1]!="function"?dS:e.pop()}function R3(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var n=F3(t);if(Array.isArray(t[0])&&(t=t[0]),t.length<2)throw new M3("streams");var i,o=t.map(function(s,a){var l=a<t.length-1,u=a>0;return A3(s,l,u,function(c){i||(i=c),c&&o.forEach(pS),!l&&(o.forEach(pS),n(i))})});return t.reduce(N3)}mS.exports=R3});var bt=ne((XP,gS)=>{gS.exports=hr;var Xh=gc().EventEmitter,L3=gw();L3(hr,Xh);hr.Readable=Nh();hr.Writable=Ph();hr.Duplex=Oi();hr.Transform=Zh();hr.PassThrough=fS();hr.finished=Cc();hr.pipeline=yS();hr.Stream=hr;function hr(){Xh.call(this)}hr.prototype.pipe=function(e,t){var r=this;function n(c){e.writable&&e.write(c)===!1&&r.pause&&r.pause()}r.on("data",n);function i(){r.readable&&r.resume&&r.resume()}e.on("drain",i),!e._isStdio&&(!t||t.end!==!1)&&(r.on("end",s),r.on("close",a));var o=!1;function s(){o||(o=!0,e.end())}function a(){o||(o=!0,typeof e.destroy=="function"&&e.destroy())}function l(c){if(u(),Xh.listenerCount(this,"error")===0)throw c}r.on("error",l),e.on("error",l);function u(){r.removeListener("data",n),e.removeListener("drain",i),r.removeListener("end",s),r.removeListener("close",a),r.removeListener("error",l),e.removeListener("error",l),r.removeListener("end",u),r.removeListener("close",u),e.removeListener("close",u)}return r.on("end",u),r.on("close",u),e.on("close",u),e.emit("pipe",r),e}});var tx=ne((hf,n0)=>{(function(e,t){typeof hf=="object"&&typeof n0=="object"?n0.exports=t(xe()):typeof define=="function"&&define.amd?define(["react"],t):typeof hf=="object"?hf["react-hooks-shareable"]=t(xe()):e["react-hooks-shareable"]=t(e[void 0])})(self,e=>(()=>{"use strict";var t={840:o=>{o.exports=e}},r={};function n(o){var s=r[o];if(s!==void 0)return s.exports;var a=r[o]={exports:{}};return t[o](a,a.exports,n),a.exports}n.d=(o,s)=>{for(var a in s)n.o(s,a)&&!n.o(o,a)&&Object.defineProperty(o,a,{enumerable:!0,get:s[a]})},n.o=(o,s)=>Object.prototype.hasOwnProperty.call(o,s),n.r=o=>{typeof Symbol!="undefined"&&Symbol.toStringTag&&Object.defineProperty(o,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(o,"__esModule",{value:!0})};var i={};return(()=>{n.r(i),n.d(i,{getLocalStorage:()=>tt,useAnalytics:()=>N,useBoolean:()=>ue,useClickOutside:()=>oe,useDeferredTrigger:()=>pe,useDraggable:()=>K,useFocusDetection:()=>ot,useHasOverflow:()=>he,useHasOverflowWithResizeEvent:()=>ht,useId:()=>st,useInterval:()=>li,useLocalStorage:()=>Wi,usePressed:()=>ui,useResetScroll:()=>J,useScrollPosition:()=>ze,useSelection:()=>Nr,useSynchronizedAnimation:()=>sx,useTrigger:()=>ax,useUserActive:()=>lx,useVisibleFocus:()=>ux});var o,s=[],a="ResizeObserver loop completed with undelivered notifications.";(function(E){E.BORDER_BOX="border-box",E.CONTENT_BOX="content-box",E.DEVICE_PIXEL_CONTENT_BOX="device-pixel-content-box"})(o||(o={}));var l,u=function(E){return Object.freeze(E)},c=function(E,S){this.inlineSize=E,this.blockSize=S,u(this)},f=function(){function E(S,_,O,z){return this.x=S,this.y=_,this.width=O,this.height=z,this.top=this.y,this.left=this.x,this.bottom=this.top+this.height,this.right=this.left+this.width,u(this)}return E.prototype.toJSON=function(){var S=this;return{x:S.x,y:S.y,top:S.top,right:S.right,bottom:S.bottom,left:S.left,width:S.width,height:S.height}},E.fromRect=function(S){return new E(S.x,S.y,S.width,S.height)},E}(),h=function(E){return E instanceof SVGElement&&"getBBox"in E},d=function(E){if(h(E)){var S=E.getBBox(),_=S.width,O=S.height;return!_&&!O}var z=E,X=z.offsetWidth,se=z.offsetHeight;return!(X||se||E.getClientRects().length)},g=function(E){var S,_;if(E instanceof Element)return!0;var O=(_=(S=E)===null||S===void 0?void 0:S.ownerDocument)===null||_===void 0?void 0:_.defaultView;return!!(O&&E instanceof O.Element)},y=typeof window!="undefined"?window:{},x=new WeakMap,m=/auto|scroll/,p=/^tb|vertical/,v=/msie|trident/i.test(y.navigator&&y.navigator.userAgent),w=function(E){return parseFloat(E||"0")},T=function(E,S,_){return E===void 0&&(E=0),S===void 0&&(S=0),_===void 0&&(_=!1),new c((_?S:E)||0,(_?E:S)||0)},k=u({devicePixelContentBoxSize:T(),borderBoxSize:T(),contentBoxSize:T(),contentRect:new f(0,0,0,0)}),I=function(E,S){if(S===void 0&&(S=!1),x.has(E)&&!S)return x.get(E);if(d(E))return x.set(E,k),k;var _=getComputedStyle(E),O=h(E)&&E.ownerSVGElement&&E.getBBox(),z=!v&&_.boxSizing==="border-box",X=p.test(_.writingMode||""),se=!O&&m.test(_.overflowY||""),je=!O&&m.test(_.overflowX||""),rt=O?0:w(_.paddingTop),Qr=O?0:w(_.paddingRight),Gt=O?0:w(_.paddingBottom),hs=O?0:w(_.paddingLeft),fl=O?0:w(_.borderTopWidth),cx=O?0:w(_.borderRightWidth),fx=O?0:w(_.borderBottomWidth),a0=hs+Qr,l0=rt+Gt,vf=(O?0:w(_.borderLeftWidth))+cx,wf=fl+fx,u0=je?E.offsetHeight-wf-E.clientHeight:0,c0=se?E.offsetWidth-vf-E.clientWidth:0,dx=z?a0+vf:0,px=z?l0+wf:0,dl=O?O.width:w(_.width)-dx-c0,pl=O?O.height:w(_.height)-px-u0,hx=dl+a0+c0+vf,mx=pl+l0+u0+wf,f0=u({devicePixelContentBoxSize:T(Math.round(dl*devicePixelRatio),Math.round(pl*devicePixelRatio),X),borderBoxSize:T(hx,mx,X),contentBoxSize:T(dl,pl,X),contentRect:new f(hs,rt,dl,pl)});return x.set(E,f0),f0},P=function(E,S,_){var O=I(E,_),z=O.borderBoxSize,X=O.contentBoxSize,se=O.devicePixelContentBoxSize;switch(S){case o.DEVICE_PIXEL_CONTENT_BOX:return se;case o.BORDER_BOX:return z;default:return X}},V=function(E){var S=I(E);this.target=E,this.contentRect=S.contentRect,this.borderBoxSize=u([S.borderBoxSize]),this.contentBoxSize=u([S.contentBoxSize]),this.devicePixelContentBoxSize=u([S.devicePixelContentBoxSize])},j=function(E){if(d(E))return 1/0;for(var S=0,_=E.parentNode;_;)S+=1,_=_.parentNode;return S},ve=function(){var E=1/0,S=[];s.forEach(function(z){if(z.activeTargets.length!==0){var X=[];z.activeTargets.forEach(function(se){var je=new V(se.target),rt=j(se.target);X.push(je),se.lastReportedSize=P(se.target,se.observedBox),rt<E&&(E=rt)}),S.push(function(){z.callback.call(z.observer,X,z.observer)}),z.activeTargets.splice(0,z.activeTargets.length)}});for(var _=0,O=S;_<O.length;_++)(0,O[_])();return E},we=function(E){s.forEach(function(S){S.activeTargets.splice(0,S.activeTargets.length),S.skippedTargets.splice(0,S.skippedTargets.length),S.observationTargets.forEach(function(_){_.isActive()&&(j(_.target)>E?S.activeTargets.push(_):S.skippedTargets.push(_))})})},He=[],re=0,fe={attributes:!0,characterData:!0,childList:!0,subtree:!0},ie=["resize","load","transitionend","animationend","animationstart","animationiteration","keyup","keydown","mouseup","mousedown","mouseover","mouseout","blur","focus"],Xe=function(E){return E===void 0&&(E=0),Date.now()+E},Q=!1,pt=new(function(){function E(){var S=this;this.stopped=!0,this.listener=function(){return S.schedule()}}return E.prototype.run=function(S){var _=this;if(S===void 0&&(S=250),!Q){Q=!0;var O,z=Xe(S);O=function(){var X=!1;try{X=function(){var se,je=0;for(we(je);s.some(function(rt){return rt.activeTargets.length>0});)je=ve(),we(je);return s.some(function(rt){return rt.skippedTargets.length>0})&&(typeof ErrorEvent=="function"?se=new ErrorEvent("error",{message:a}):((se=document.createEvent("Event")).initEvent("error",!1,!1),se.message=a),window.dispatchEvent(se)),je>0}()}finally{if(Q=!1,S=z-Xe(),!re)return;X?_.run(1e3):S>0?_.run(S):_.start()}},function(X){if(!l){var se=0,je=document.createTextNode("");new MutationObserver(function(){return He.splice(0).forEach(function(rt){return rt()})}).observe(je,{characterData:!0}),l=function(){je.textContent=""+(se?se--:se++)}}He.push(X),l()}(function(){requestAnimationFrame(O)})}},E.prototype.schedule=function(){this.stop(),this.run()},E.prototype.observe=function(){var S=this,_=function(){return S.observer&&S.observer.observe(document.body,fe)};document.body?_():y.addEventListener("DOMContentLoaded",_)},E.prototype.start=function(){var S=this;this.stopped&&(this.stopped=!1,this.observer=new MutationObserver(this.listener),this.observe(),ie.forEach(function(_){return y.addEventListener(_,S.listener,!0)}))},E.prototype.stop=function(){var S=this;this.stopped||(this.observer&&this.observer.disconnect(),ie.forEach(function(_){return y.removeEventListener(_,S.listener,!0)}),this.stopped=!0)},E}()),Qe=function(E){!re&&E>0&&pt.start(),!(re+=E)&&pt.stop()},Et=function(){function E(S,_){this.target=S,this.observedBox=_||o.CONTENT_BOX,this.lastReportedSize={inlineSize:0,blockSize:0}}return E.prototype.isActive=function(){var S,_=P(this.target,this.observedBox,!0);return S=this.target,h(S)||function(O){switch(O.tagName){case"INPUT":if(O.type!=="image")break;case"VIDEO":case"AUDIO":case"EMBED":case"OBJECT":case"CANVAS":case"IFRAME":case"IMG":return!0}return!1}(S)||getComputedStyle(S).display!=="inline"||(this.lastReportedSize=_),this.lastReportedSize.inlineSize!==_.inlineSize||this.lastReportedSize.blockSize!==_.blockSize},E}(),H=function(E,S){this.activeTargets=[],this.skippedTargets=[],this.observationTargets=[],this.observer=E,this.callback=S},F=new WeakMap,R=function(E,S){for(var _=0;_<E.length;_+=1)if(E[_].target===S)return _;return-1},W=function(){function E(){}return E.connect=function(S,_){var O=new H(S,_);F.set(S,O)},E.observe=function(S,_,O){var z=F.get(S),X=z.observationTargets.length===0;R(z.observationTargets,_)<0&&(X&&s.push(z),z.observationTargets.push(new Et(_,O&&O.box)),Qe(1),pt.schedule())},E.unobserve=function(S,_){var O=F.get(S),z=R(O.observationTargets,_),X=O.observationTargets.length===1;z>=0&&(X&&s.splice(s.indexOf(O),1),O.observationTargets.splice(z,1),Qe(-1))},E.disconnect=function(S){var _=this,O=F.get(S);O.observationTargets.slice().forEach(function(z){return _.unobserve(S,z.target)}),O.activeTargets.splice(0,O.activeTargets.length)},E}(),C=function(){function E(S){if(arguments.length===0)throw new TypeError("Failed to construct 'ResizeObserver': 1 argument required, but only 0 present.");if(typeof S!="function")throw new TypeError("Failed to construct 'ResizeObserver': The callback provided as parameter 1 is not a function.");W.connect(this,S)}return E.prototype.observe=function(S,_){if(arguments.length===0)throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!g(S))throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': parameter 1 is not of type 'Element");W.observe(this,S,_)},E.prototype.unobserve=function(S){if(arguments.length===0)throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!g(S))throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': parameter 1 is not of type 'Element");W.unobserve(this,S)},E.prototype.disconnect=function(){W.disconnect(this)},E.toString=function(){return"function ResizeObserver () { [polyfill code] }"},E}(),M=n(840),N=E=>({pageView:(0,M.useCallback)(S=>{window.gtag!==void 0&&window.navigator.onLine&&window.gtag("config",E,S)},[E]),event:(0,M.useCallback)((S,_)=>{window.gtag!==void 0&&window.navigator.onLine&&window.gtag("event",S,_)},[])}),ue=function(){var E=arguments.length>0&&arguments[0]!==void 0&&arguments[0],[S,_]=(0,M.useState)(E),O=(0,M.useCallback)(()=>_(!0),[]),z=(0,M.useCallback)(()=>_(!1),[]),X=(0,M.useCallback)(()=>_(se=>!se),[]);return[S,O,z,X]},oe=E=>{var S=(0,M.useRef)(!1);return(0,M.useEffect)(()=>{var _=O=>{S.current||E(O),S.current=!1};return document.addEventListener("pointerdown",_),()=>document.removeEventListener("pointerdown",_)}),()=>{S.current=!0}},pe=function(E){var{delay:S=100,minDuration:_=400,base:O=!1}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},[z,X]=(0,M.useState)(O),se=(0,M.useRef)(),je=(0,M.useRef)();return(0,M.useEffect)(()=>{if(E!==z){if(se.current===void 0){var rt=()=>{se.current=void 0,je.current=E!==O?Date.now():void 0,X(E)},Qr=E===O?je.current!==void 0?Math.max(0,_-(Date.now()-je.current)):0:S;Qr===0?rt():se.current=setTimeout(rt,Qr)}}else se.current!==void 0&&(clearTimeout(se.current),se.current=void 0)},[E,z,O,S,_]),z},K=E=>{var[S,_]=(0,M.useState)(!1),[O,z]=(0,M.useState)([0,0]);return[O,(0,M.useCallback)(X=>{X.stopPropagation(),X.preventDefault(),_(!0);var[se,je]=[X.pageX,X.pageY],rt=Gt=>{Gt.stopPropagation(),Gt.preventDefault(),z([Gt.pageX-se,Gt.pageY-je])},Qr=Gt=>{Gt.stopPropagation(),Gt.preventDefault(),z([0,0]),_(!1),E([Gt.pageX-se,Gt.pageY-je]),document.removeEventListener("pointermove",rt),document.removeEventListener("pointerup",Qr)};document.addEventListener("pointermove",rt),document.addEventListener("pointerup",Qr)},[E]),S]},ot=function(){var E=arguments.length>0&&arguments[0]!==void 0?arguments[0]:5e3,[S,_]=(0,M.useState)(document.hasFocus());return(0,M.useEffect)(()=>{var O=setInterval(()=>{_(document.hasFocus())},E);return()=>{clearInterval(O)}},[E]),S},xt=E=>{var{offsetWidth:S,offsetHeight:_,scrollWidth:O,scrollHeight:z}=E;return _<z||S<O},he=()=>{var[E,S]=(0,M.useState)(!1),_=(0,M.createRef)();return(0,M.useLayoutEffect)(()=>{_.current!==null&&S(xt(_.current))},[_]),{hasOverflow:E,ref:_}},ht=()=>{var[E,S]=(0,M.useState)(!1),_=(0,M.createRef)();return(0,M.useLayoutEffect)(()=>{if(_.current!==null){var O=new window.ResizeObserver(()=>{_.current!==null&&S(xt(_.current))});return O.observe(_.current),()=>O.disconnect()}},[_]),{hasOverflow:E,ref:_}},me=0,st=function(){var E=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",S=(0,M.useMemo)(()=>(me+=1,E.length>0?"".concat(E,"-").concat(me):String(me)),[E]);return S},li=(E,S)=>{var _=(0,M.useRef)();(0,M.useEffect)(()=>{_.current=E},[E]),(0,M.useEffect)(()=>{var O=setInterval(()=>{_.current!==void 0&&_.current()},S);return()=>clearInterval(O)},[S])},tt=()=>new Proxy(localStorage,{set:(E,S,_)=>{if(typeof S!="string")throw new Error("The key should be a string");return localStorage.setItem(S,JSON.stringify(_)),!0},get:(E,S)=>{if(typeof S!="string")throw new Error("The key should be a string");var _=localStorage.getItem(S);if(_===null)return null;try{return JSON.parse(_)}catch(O){return _}}});function Wi(E){var S=tt(),[_,O]=(0,M.useState)(()=>S[E]);return[_,(0,M.useCallback)(z=>{try{O(z),S[E]=z}catch(X){console.log(X)}},[E,S])]}function ui(E){var[S,_]=(0,M.useState)(!1);return(0,M.useEffect)(()=>{var O=E.current;if(O!==null&&!S){var z=()=>_(!0);return O.addEventListener("pointerdown",z),()=>O.removeEventListener("pointerdown",z)}var X=()=>_(!1);return document.addEventListener("pointerup",X),()=>document.removeEventListener("pointerup",X)},[S,E]),S}var at,J=(E,S)=>{var _=(0,M.useRef)(S);(0,M.useEffect)(()=>{var O;S!==_.current&&((O=E.current)===null||O===void 0||O.scrollTo(0,0),_.current=S)},[E,S])},ze=()=>{var[E,S]=(0,M.useState)(null),[_,O]=(0,M.useState)(),[z,X]=(0,M.useState)();return(0,M.useEffect)(()=>{if(E!==null){var se=()=>{var{scrollTop:rt,scrollHeight:Qr,clientHeight:Gt}=E,hs=rt<=1;_!==hs&&O(hs);var fl=Qr-(rt+Gt)<=1;z!==fl&&X(fl)};se();var je=new window.ResizeObserver(se);return je.observe(E),E.addEventListener("scroll",se),window.addEventListener("resize",se),()=>{je.disconnect(),E.removeEventListener("scroll",se),window.removeEventListener("resize",se)}}},[_,z,O,X,E]),{scrollRef:S,atTop:_,atBottom:z}},ds=new Set;(function(E){E[E.ADD=0]="ADD",E[E.REMOVE=1]="REMOVE",E[E.SET=2]="SET"})(at||(at={}));var ps=(E,S)=>{if(S.type===at.ADD)return typeof S.ids=="string"?new Set([...E,S.ids]):new Set([...E,...S.ids]);if(S.type===at.REMOVE){var _=new Set(E);if(typeof S.ids=="string")_.delete(S.ids);else for(var O of S.ids)_.delete(O);return _}return new Set(S.ids)},Nr=()=>{var[E,S]=(0,M.useReducer)(ps,ds);return[E,(0,M.useCallback)(_=>{S({ids:_,type:at.ADD})},[S]),(0,M.useCallback)(_=>{S({ids:_,type:at.REMOVE})},[S]),(0,M.useCallback)(_=>{S({ids:_,type:at.SET})},[S])]},sx=E=>{var S=(0,M.useRef)(null);return(0,M.useLayoutEffect)(()=>{var _,O,z,X,se=(_=(O=document.timeline)===null||O===void 0?void 0:O.currentTime)!==null&&_!==void 0?_:0;(z=S.current)===null||z===void 0||(X=z.getAnimations(E))===null||X===void 0||X.forEach(je=>je.currentTime=se)},[E]),S},ax=()=>{var[E,S]=(0,M.useState)(Number.MIN_SAFE_INTEGER),_=(0,M.useCallback)(()=>{S(z=>z!==Number.MAX_SAFE_INTEGER?z+1:Number.MIN_SAFE_INTEGER+1)},[]),O=(0,M.useCallback)(()=>{S(Number.MIN_SAFE_INTEGER)},[]);return[E!==Number.MIN_SAFE_INTEGER?E:void 0,_,O]};function lx(E){var S=arguments.length>1&&arguments[1]!==void 0?arguments[1]:3e3,[_,O,z]=ue();return(0,M.useEffect)(()=>{if(_){var X=setTimeout(z,S);return()=>{clearTimeout(X)}}}),(0,M.useEffect)(()=>{var X=E.current;if(X!==null)return X.addEventListener("pointermove",O),_&&X.addEventListener("pointerleave",z),()=>{X.removeEventListener("pointermove",O),_&&X.removeEventListener("pointerleave",z)}},[E,_,O,z]),_}var ux=()=>{var[E,S,_]=ue(!1),[O,z]=(0,M.useState)(!0);return{isPointerOn:S,isPointerOff:_,determineVisibleFocus:(0,M.useCallback)(()=>z(!E),[E,z]),visibleFocus:O}};typeof window!="undefined"&&window.ResizeObserver===void 0&&(window.ResizeObserver=C)})(),i})())});var V6={};xx(V6,{AxisApi:()=>UE,BasicPlayer:()=>pf,Container:()=>fa,FORMAT_API:()=>ka,Format:()=>Ir,Layer:()=>qn,PlaybackArea:()=>Ia,Player:()=>yf,Protocol:()=>HE,Stats:()=>i0,browserSupportedFormats:()=>H6,getImageURL:()=>o0});var Xr=q(xe()),s0=q(Gv());var _e=q(xe());var O1=q(xe());var lc=q(Qv()),Be=q(xe()),E1=q(Kv());function jT(e){function t(H,F,R,W,C){for(var M=0,N=0,ue=0,oe=0,pe,K,ot=0,xt=0,he,ht=he=pe=0,me=0,st=0,li=0,tt=0,Wi=R.length,ui=Wi-1,at,J="",ze="",ds="",ps="",Nr;me<Wi;){if(K=R.charCodeAt(me),me===ui&&N+oe+ue+M!==0&&(N!==0&&(K=N===47?10:47),oe=ue=M=0,Wi++,ui++),N+oe+ue+M===0){if(me===ui&&(0<st&&(J=J.replace(h,"")),0<J.trim().length)){switch(K){case 32:case 9:case 59:case 13:case 10:break;default:J+=R.charAt(me)}K=59}switch(K){case 123:for(J=J.trim(),pe=J.charCodeAt(0),he=1,tt=++me;me<Wi;){switch(K=R.charCodeAt(me)){case 123:he++;break;case 125:he--;break;case 47:switch(K=R.charCodeAt(me+1)){case 42:case 47:e:{for(ht=me+1;ht<ui;++ht)switch(R.charCodeAt(ht)){case 47:if(K===42&&R.charCodeAt(ht-1)===42&&me+2!==ht){me=ht+1;break e}break;case 10:if(K===47){me=ht+1;break e}}me=ht}}break;case 91:K++;case 40:K++;case 34:case 39:for(;me++<ui&&R.charCodeAt(me)!==K;);}if(he===0)break;me++}switch(he=R.substring(tt,me),pe===0&&(pe=(J=J.replace(f,"").trim()).charCodeAt(0)),pe){case 64:switch(0<st&&(J=J.replace(h,"")),K=J.charCodeAt(1),K){case 100:case 109:case 115:case 45:st=F;break;default:st=ie}if(he=t(F,st,he,K,C+1),tt=he.length,0<Q&&(st=r(ie,J,li),Nr=a(3,he,st,F,He,we,tt,K,C,W),J=st.join(""),Nr!==void 0&&(tt=(he=Nr.trim()).length)===0&&(K=0,he="")),0<tt)switch(K){case 115:J=J.replace(k,s);case 100:case 109:case 45:he=J+"{"+he+"}";break;case 107:J=J.replace(p,"$1 $2"),he=J+"{"+he+"}",he=fe===1||fe===2&&o("@"+he,3)?"@-webkit-"+he+"@"+he:"@"+he;break;default:he=J+he,W===112&&(he=(ze+=he,""))}else he="";break;default:he=t(F,r(F,J,li),he,W,C+1)}ds+=he,he=li=st=ht=pe=0,J="",K=R.charCodeAt(++me);break;case 125:case 59:if(J=(0<st?J.replace(h,""):J).trim(),1<(tt=J.length))switch(ht===0&&(pe=J.charCodeAt(0),pe===45||96<pe&&123>pe)&&(tt=(J=J.replace(" ",":")).length),0<Q&&(Nr=a(1,J,F,H,He,we,ze.length,W,C,W))!==void 0&&(tt=(J=Nr.trim()).length)===0&&(J="\0\0"),pe=J.charCodeAt(0),K=J.charCodeAt(1),pe){case 0:break;case 64:if(K===105||K===99){ps+=J+R.charAt(me);break}default:J.charCodeAt(tt-1)!==58&&(ze+=i(J,pe,K,J.charCodeAt(2)))}li=st=ht=pe=0,J="",K=R.charCodeAt(++me)}}switch(K){case 13:case 10:N===47?N=0:1+pe===0&&W!==107&&0<J.length&&(st=1,J+="\0"),0<Q*Qe&&a(0,J,F,H,He,we,ze.length,W,C,W),we=1,He++;break;case 59:case 125:if(N+oe+ue+M===0){we++;break}default:switch(we++,at=R.charAt(me),K){case 9:case 32:if(oe+M+N===0)switch(ot){case 44:case 58:case 9:case 32:at="";break;default:K!==32&&(at=" ")}break;case 0:at="\\0";break;case 12:at="\\f";break;case 11:at="\\v";break;case 38:oe+N+M===0&&(st=li=1,at="\f"+at);break;case 108:if(oe+N+M+re===0&&0<ht)switch(me-ht){case 2:ot===112&&R.charCodeAt(me-3)===58&&(re=ot);case 8:xt===111&&(re=xt)}break;case 58:oe+N+M===0&&(ht=me);break;case 44:N+ue+oe+M===0&&(st=1,at+="\r");break;case 34:case 39:N===0&&(oe=oe===K?0:oe===0?K:oe);break;case 91:oe+N+ue===0&&M++;break;case 93:oe+N+ue===0&&M--;break;case 41:oe+N+M===0&&ue--;break;case 40:if(oe+N+M===0){if(pe===0)switch(2*ot+3*xt){case 533:break;default:pe=1}ue++}break;case 64:N+ue+oe+M+ht+he===0&&(he=1);break;case 42:case 47:if(!(0<oe+M+ue))switch(N){case 0:switch(2*K+3*R.charCodeAt(me+1)){case 235:N=47;break;case 220:tt=me,N=42}break;case 42:K===47&&ot===42&&tt+2!==me&&(R.charCodeAt(tt+2)===33&&(ze+=R.substring(tt,me+1)),at="",N=0)}}N===0&&(J+=at)}xt=ot,ot=K,me++}if(tt=ze.length,0<tt){if(st=F,0<Q&&(Nr=a(2,ze,st,H,He,we,tt,W,C,W),Nr!==void 0&&(ze=Nr).length===0))return ps+ze+ds;if(ze=st.join(",")+"{"+ze+"}",fe*re!==0){switch(fe!==2||o(ze,2)||(re=0),re){case 111:ze=ze.replace(w,":-moz-$1")+ze;break;case 112:ze=ze.replace(v,"::-webkit-input-$1")+ze.replace(v,"::-moz-$1")+ze.replace(v,":-ms-input-$1")+ze}re=0}}return ps+ze+ds}function r(H,F,R){var W=F.trim().split(x);F=W;var C=W.length,M=H.length;switch(M){case 0:case 1:var N=0;for(H=M===0?"":H[0]+" ";N<C;++N)F[N]=n(H,F[N],R).trim();break;default:var ue=N=0;for(F=[];N<C;++N)for(var oe=0;oe<M;++oe)F[ue++]=n(H[oe]+" ",W[N],R).trim()}return F}function n(H,F,R){var W=F.charCodeAt(0);switch(33>W&&(W=(F=F.trim()).charCodeAt(0)),W){case 38:return F.replace(m,"$1"+H.trim());case 58:return H.trim()+F.replace(m,"$1"+H.trim());default:if(0<1*R&&0<F.indexOf("\f"))return F.replace(m,(H.charCodeAt(0)===58?"":"$1")+H.trim())}return H+F}function i(H,F,R,W){var C=H+";",M=2*F+3*R+4*W;if(M===944){H=C.indexOf(":",9)+1;var N=C.substring(H,C.length-1).trim();return N=C.substring(0,H).trim()+N+";",fe===1||fe===2&&o(N,1)?"-webkit-"+N+N:N}if(fe===0||fe===2&&!o(C,1))return C;switch(M){case 1015:return C.charCodeAt(10)===97?"-webkit-"+C+C:C;case 951:return C.charCodeAt(3)===116?"-webkit-"+C+C:C;case 963:return C.charCodeAt(5)===110?"-webkit-"+C+C:C;case 1009:if(C.charCodeAt(4)!==100)break;case 969:case 942:return"-webkit-"+C+C;case 978:return"-webkit-"+C+"-moz-"+C+C;case 1019:case 983:return"-webkit-"+C+"-moz-"+C+"-ms-"+C+C;case 883:if(C.charCodeAt(8)===45)return"-webkit-"+C+C;if(0<C.indexOf("image-set(",11))return C.replace(ve,"$1-webkit-$2")+C;break;case 932:if(C.charCodeAt(4)===45)switch(C.charCodeAt(5)){case 103:return"-webkit-box-"+C.replace("-grow","")+"-webkit-"+C+"-ms-"+C.replace("grow","positive")+C;case 115:return"-webkit-"+C+"-ms-"+C.replace("shrink","negative")+C;case 98:return"-webkit-"+C+"-ms-"+C.replace("basis","preferred-size")+C}return"-webkit-"+C+"-ms-"+C+C;case 964:return"-webkit-"+C+"-ms-flex-"+C+C;case 1023:if(C.charCodeAt(8)!==99)break;return N=C.substring(C.indexOf(":",15)).replace("flex-","").replace("space-between","justify"),"-webkit-box-pack"+N+"-webkit-"+C+"-ms-flex-pack"+N+C;case 1005:return g.test(C)?C.replace(d,":-webkit-")+C.replace(d,":-moz-")+C:C;case 1e3:switch(N=C.substring(13).trim(),F=N.indexOf("-")+1,N.charCodeAt(0)+N.charCodeAt(F)){case 226:N=C.replace(T,"tb");break;case 232:N=C.replace(T,"tb-rl");break;case 220:N=C.replace(T,"lr");break;default:return C}return"-webkit-"+C+"-ms-"+N+C;case 1017:if(C.indexOf("sticky",9)===-1)break;case 975:switch(F=(C=H).length-10,N=(C.charCodeAt(F)===33?C.substring(0,F):C).substring(H.indexOf(":",7)+1).trim(),M=N.charCodeAt(0)+(N.charCodeAt(7)|0)){case 203:if(111>N.charCodeAt(8))break;case 115:C=C.replace(N,"-webkit-"+N)+";"+C;break;case 207:case 102:C=C.replace(N,"-webkit-"+(102<M?"inline-":"")+"box")+";"+C.replace(N,"-webkit-"+N)+";"+C.replace(N,"-ms-"+N+"box")+";"+C}return C+";";case 938:if(C.charCodeAt(5)===45)switch(C.charCodeAt(6)){case 105:return N=C.replace("-items",""),"-webkit-"+C+"-webkit-box-"+N+"-ms-flex-"+N+C;case 115:return"-webkit-"+C+"-ms-flex-item-"+C.replace(P,"")+C;default:return"-webkit-"+C+"-ms-flex-line-pack"+C.replace("align-content","").replace(P,"")+C}break;case 973:case 989:if(C.charCodeAt(3)!==45||C.charCodeAt(4)===122)break;case 931:case 953:if(j.test(H)===!0)return(N=H.substring(H.indexOf(":")+1)).charCodeAt(0)===115?i(H.replace("stretch","fill-available"),F,R,W).replace(":fill-available",":stretch"):C.replace(N,"-webkit-"+N)+C.replace(N,"-moz-"+N.replace("fill-",""))+C;break;case 962:if(C="-webkit-"+C+(C.charCodeAt(5)===102?"-ms-"+C:"")+C,R+W===211&&C.charCodeAt(13)===105&&0<C.indexOf("transform",10))return C.substring(0,C.indexOf(";",27)+1).replace(y,"$1-webkit-$2")+C}return C}function o(H,F){var R=H.indexOf(F===1?":":"{"),W=H.substring(0,F!==3?R:10);return R=H.substring(R+1,H.length-1),pt(F!==2?W:W.replace(V,"$1"),R,F)}function s(H,F){var R=i(F,F.charCodeAt(0),F.charCodeAt(1),F.charCodeAt(2));return R!==F+";"?R.replace(I," or ($1)").substring(4):"("+F+")"}function a(H,F,R,W,C,M,N,ue,oe,pe){for(var K=0,ot=F,xt;K<Q;++K)switch(xt=Xe[K].call(c,H,ot,R,W,C,M,N,ue,oe,pe)){case void 0:case!1:case!0:case null:break;default:ot=xt}if(ot!==F)return ot}function l(H){switch(H){case void 0:case null:Q=Xe.length=0;break;default:if(typeof H=="function")Xe[Q++]=H;else if(typeof H=="object")for(var F=0,R=H.length;F<R;++F)l(H[F]);else Qe=!!H|0}return l}function u(H){return H=H.prefix,H!==void 0&&(pt=null,H?typeof H!="function"?fe=1:(fe=2,pt=H):fe=0),u}function c(H,F){var R=H;if(33>R.charCodeAt(0)&&(R=R.trim()),Et=R,R=[Et],0<Q){var W=a(-1,F,R,R,He,we,0,0,0,0);W!==void 0&&typeof W=="string"&&(F=W)}var C=t(ie,R,F,0,0);return 0<Q&&(W=a(-2,C,R,R,He,we,C.length,0,0,0),W!==void 0&&(C=W)),Et="",re=0,we=He=1,C}var f=/^\0+/g,h=/[\0\r\f]/g,d=/: */g,g=/zoo|gra/,y=/([,: ])(transform)/g,x=/,\r+?/g,m=/([\t\r\n ])*\f?&/g,p=/@(k\w+)\s*(\S*)\s*/,v=/::(place)/g,w=/:(read-only)/g,T=/[svh]\w+-[tblr]{2}/,k=/\(\s*(.*)\s*\)/g,I=/([\s\S]*?);/g,P=/-self|flex-/g,V=/[^]*?(:[rp][el]a[\w-]+)[^]*/,j=/stretch|:\s*\w+\-(?:conte|avail)/,ve=/([^-])(image-set\()/,we=1,He=1,re=0,fe=1,ie=[],Xe=[],Q=0,pt=null,Qe=0,Et="";return c.use=l,c.set=u,e!==void 0&&u(e),c}var e1=jT;var VT={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},t1=VT;function $T(e){var t=Object.create(null);return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}var r1=$T;var WT=/^((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)-.*))$/,qT=r1(function(e){return WT.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),jp=qT;var x1=q(p1());function Hr(){return(Hr=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}var h1=function(e,t){for(var r=[e[0]],n=0,i=t.length;n<i;n+=1)r.push(t[n],e[n+1]);return r},Xp=function(e){return e!==null&&typeof e=="object"&&(e.toString?e.toString():Object.prototype.toString.call(e))==="[object Object]"&&!(0,lc.typeOf)(e)},sc=Object.freeze([]),$n=Object.freeze({});function ua(e){return typeof e=="function"}function m1(e){return e.displayName||e.name||"Component"}function rh(e){return e&&typeof e.styledComponentId=="string"}var Wn=typeof process!="undefined"&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled";var nh=typeof window!="undefined"&&"HTMLElement"in window,oC=Boolean(typeof SC_DISABLE_SPEEDY=="boolean"?SC_DISABLE_SPEEDY:typeof process!="undefined"&&process.env.REACT_APP_SC_DISABLE_SPEEDY!==void 0&&process.env.REACT_APP_SC_DISABLE_SPEEDY!==""?process.env.REACT_APP_SC_DISABLE_SPEEDY!=="false"&&process.env.REACT_APP_SC_DISABLE_SPEEDY:typeof process!="undefined"&&process.env.SC_DISABLE_SPEEDY!==void 0&&process.env.SC_DISABLE_SPEEDY!==""?process.env.SC_DISABLE_SPEEDY!=="false"&&process.env.SC_DISABLE_SPEEDY:!1);function un(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];throw new Error("An error occurred. See https://git.io/JUIaE#"+e+" for more information."+(r.length>0?" Args: "+r.join(", "):""))}var sC=function(){function e(r){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=r}var t=e.prototype;return t.indexOfGroup=function(r){for(var n=0,i=0;i<r;i++)n+=this.groupSizes[i];return n},t.insertRules=function(r,n){if(r>=this.groupSizes.length){for(var i=this.groupSizes,o=i.length,s=o;r>=s;)(s<<=1)<0&&un(16,""+r);this.groupSizes=new Uint32Array(s),this.groupSizes.set(i),this.length=s;for(var a=o;a<s;a++)this.groupSizes[a]=0}for(var l=this.indexOfGroup(r+1),u=0,c=n.length;u<c;u++)this.tag.insertRule(l,n[u])&&(this.groupSizes[r]++,l++)},t.clearGroup=function(r){if(r<this.length){var n=this.groupSizes[r],i=this.indexOfGroup(r),o=i+n;this.groupSizes[r]=0;for(var s=i;s<o;s++)this.tag.deleteRule(i)}},t.getGroup=function(r){var n="";if(r>=this.length||this.groupSizes[r]===0)return n;for(var i=this.groupSizes[r],o=this.indexOfGroup(r),s=o+i,a=o;a<s;a++)n+=this.tag.getRule(a)+`/*!sc*/
`;return n},e}(),oc=new Map,ac=new Map,la=1,nc=function(e){if(oc.has(e))return oc.get(e);for(;ac.has(la);)la++;var t=la++;return oc.set(e,t),ac.set(t,e),t},aC=function(e){return ac.get(e)},lC=function(e,t){t>=la&&(la=t+1),oc.set(e,t),ac.set(t,e)},uC="style["+Wn+'][data-styled-version="5.3.5"]',cC=new RegExp("^"+Wn+'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)'),fC=function(e,t,r){for(var n,i=r.split(","),o=0,s=i.length;o<s;o++)(n=i[o])&&e.registerName(t,n)},dC=function(e,t){for(var r=(t.textContent||"").split(`/*!sc*/
`),n=[],i=0,o=r.length;i<o;i++){var s=r[i].trim();if(s){var a=s.match(cC);if(a){var l=0|parseInt(a[1],10),u=a[2];l!==0&&(lC(u,l),fC(e,u,a[3]),e.getTag().insertRules(l,n)),n.length=0}else n.push(s)}}},Qp=function(){return typeof window!="undefined"&&window.__webpack_nonce__!==void 0?window.__webpack_nonce__:null},_1=function(e){var t=document.head,r=e||t,n=document.createElement("style"),i=function(a){for(var l=a.childNodes,u=l.length;u>=0;u--){var c=l[u];if(c&&c.nodeType===1&&c.hasAttribute(Wn))return c}}(r),o=i!==void 0?i.nextSibling:null;n.setAttribute(Wn,"active"),n.setAttribute("data-styled-version","5.3.5");var s=Qp();return s&&n.setAttribute("nonce",s),r.insertBefore(n,o),n},pC=function(){function e(r){var n=this.element=_1(r);n.appendChild(document.createTextNode("")),this.sheet=function(i){if(i.sheet)return i.sheet;for(var o=document.styleSheets,s=0,a=o.length;s<a;s++){var l=o[s];if(l.ownerNode===i)return l}un(17)}(n),this.length=0}var t=e.prototype;return t.insertRule=function(r,n){try{return this.sheet.insertRule(n,r),this.length++,!0}catch(i){return!1}},t.deleteRule=function(r){this.sheet.deleteRule(r),this.length--},t.getRule=function(r){var n=this.sheet.cssRules[r];return n!==void 0&&typeof n.cssText=="string"?n.cssText:""},e}(),hC=function(){function e(r){var n=this.element=_1(r);this.nodes=n.childNodes,this.length=0}var t=e.prototype;return t.insertRule=function(r,n){if(r<=this.length&&r>=0){var i=document.createTextNode(n),o=this.nodes[r];return this.element.insertBefore(i,o||null),this.length++,!0}return!1},t.deleteRule=function(r){this.element.removeChild(this.nodes[r]),this.length--},t.getRule=function(r){return r<this.length?this.nodes[r].textContent:""},e}(),mC=function(){function e(r){this.rules=[],this.length=0}var t=e.prototype;return t.insertRule=function(r,n){return r<=this.length&&(this.rules.splice(r,0,n),this.length++,!0)},t.deleteRule=function(r){this.rules.splice(r,1),this.length--},t.getRule=function(r){return r<this.length?this.rules[r]:""},e}(),y1=nh,yC={isServer:!nh,useCSSOMInjection:!oC},ca=function(){function e(r,n,i){r===void 0&&(r=$n),n===void 0&&(n={}),this.options=Hr({},yC,{},r),this.gs=n,this.names=new Map(i),this.server=!!r.isServer,!this.server&&nh&&y1&&(y1=!1,function(o){for(var s=document.querySelectorAll(uC),a=0,l=s.length;a<l;a++){var u=s[a];u&&u.getAttribute(Wn)!=="active"&&(dC(o,u),u.parentNode&&u.parentNode.removeChild(u))}}(this))}e.registerId=function(r){return nc(r)};var t=e.prototype;return t.reconstructWithOptions=function(r,n){return n===void 0&&(n=!0),new e(Hr({},this.options,{},r),this.gs,n&&this.names||void 0)},t.allocateGSInstance=function(r){return this.gs[r]=(this.gs[r]||0)+1},t.getTag=function(){return this.tag||(this.tag=(i=(n=this.options).isServer,o=n.useCSSOMInjection,s=n.target,r=i?new mC(s):o?new pC(s):new hC(s),new sC(r)));var r,n,i,o,s},t.hasNameForId=function(r,n){return this.names.has(r)&&this.names.get(r).has(n)},t.registerName=function(r,n){if(nc(r),this.names.has(r))this.names.get(r).add(n);else{var i=new Set;i.add(n),this.names.set(r,i)}},t.insertRules=function(r,n,i){this.registerName(r,n),this.getTag().insertRules(nc(r),i)},t.clearNames=function(r){this.names.has(r)&&this.names.get(r).clear()},t.clearRules=function(r){this.getTag().clearGroup(nc(r)),this.clearNames(r)},t.clearTag=function(){this.tag=void 0},t.toString=function(){return function(r){for(var n=r.getTag(),i=n.length,o="",s=0;s<i;s++){var a=aC(s);if(a!==void 0){var l=r.names.get(a),u=n.getGroup(s);if(l&&u&&l.size){var c=Wn+".g"+s+'[id="'+a+'"]',f="";l!==void 0&&l.forEach(function(h){h.length>0&&(f+=h+",")}),o+=""+u+c+'{content:"'+f+`"}/*!sc*/
`}}}return o}(this)},e}(),gC=/(a)(d)/gi,g1=function(e){return String.fromCharCode(e+(e>25?39:97))};function Jp(e){var t,r="";for(t=Math.abs(e);t>52;t=t/52|0)r=g1(t%52)+r;return(g1(t%52)+r).replace(gC,"$1-$2")}var _o=function(e,t){for(var r=t.length;r;)e=33*e^t.charCodeAt(--r);return e},T1=function(e){return _o(5381,e)};function C1(e){for(var t=0;t<e.length;t+=1){var r=e[t];if(ua(r)&&!rh(r))return!1}return!0}var vC=T1("5.3.5"),wC=function(){function e(t,r,n){this.rules=t,this.staticRulesId="",this.isStatic=(n===void 0||n.isStatic)&&C1(t),this.componentId=r,this.baseHash=_o(vC,r),this.baseStyle=n,ca.registerId(r)}return e.prototype.generateAndInjectStyles=function(t,r,n){var i=this.componentId,o=[];if(this.baseStyle&&o.push(this.baseStyle.generateAndInjectStyles(t,r,n)),this.isStatic&&!n.hash)if(this.staticRulesId&&r.hasNameForId(i,this.staticRulesId))o.push(this.staticRulesId);else{var s=Ci(this.rules,t,r,n).join(""),a=Jp(_o(this.baseHash,s)>>>0);if(!r.hasNameForId(i,a)){var l=n(s,"."+a,void 0,i);r.insertRules(i,a,l)}o.push(a),this.staticRulesId=a}else{for(var u=this.rules.length,c=_o(this.baseHash,n.hash),f="",h=0;h<u;h++){var d=this.rules[h];if(typeof d=="string")f+=d;else if(d){var g=Ci(d,t,r,n),y=Array.isArray(g)?g.join(""):g;c=_o(c,y+h),f+=y}}if(f){var x=Jp(c>>>0);if(!r.hasNameForId(i,x)){var m=n(f,"."+x,void 0,i);r.insertRules(i,x,m)}o.push(x)}}return o.join(" ")},e}(),SC=/^\s*\/\/.*$/gm,EC=[":","[",".","#"];function b1(e){var t,r,n,i,o=e===void 0?$n:e,s=o.options,a=s===void 0?$n:s,l=o.plugins,u=l===void 0?sc:l,c=new e1(a),f=[],h=function(y){function x(m){if(m)try{y(m+"}")}catch(p){}}return function(m,p,v,w,T,k,I,P,V,j){switch(m){case 1:if(V===0&&p.charCodeAt(0)===64)return y(p+";"),"";break;case 2:if(P===0)return p+"/*|*/";break;case 3:switch(P){case 102:case 112:return y(v[0]+p),"";default:return p+(j===0?"/*|*/":"")}case-2:p.split("/*|*/}").forEach(x)}}}(function(y){f.push(y)}),d=function(y,x,m){return x===0&&EC.indexOf(m[r.length])!==-1||m.match(i)?y:"."+t};function g(y,x,m,p){p===void 0&&(p="&");var v=y.replace(SC,""),w=x&&m?m+" "+x+" { "+v+" }":v;return t=p,r=x,n=new RegExp("\\"+r+"\\b","g"),i=new RegExp("(\\"+r+"\\b){2,}"),c(m||!x?"":x,w)}return c.use([].concat(u,[function(y,x,m){y===2&&m.length&&m[0].lastIndexOf(r)>0&&(m[0]=m[0].replace(n,d))},h,function(y){if(y===-2){var x=f;return f=[],x}}])),g.hash=u.length?u.reduce(function(y,x){return x.name||un(15),_o(y,x.name)},5381).toString():"",g}var ih=Be.default.createContext(),pP=ih.Consumer,oh=Be.default.createContext(),xC=(oh.Consumer,new ca),Kp=b1();function k1(){return(0,Be.useContext)(ih)||xC}function _C(){return(0,Be.useContext)(oh)||Kp}function TC(e){var t=(0,Be.useState)(e.stylisPlugins),r=t[0],n=t[1],i=k1(),o=(0,Be.useMemo)(function(){var a=i;return e.sheet?a=e.sheet:e.target&&(a=a.reconstructWithOptions({target:e.target},!1)),e.disableCSSOMInjection&&(a=a.reconstructWithOptions({useCSSOMInjection:!1})),a},[e.disableCSSOMInjection,e.sheet,e.target]),s=(0,Be.useMemo)(function(){return b1({options:{prefix:!e.disableVendorPrefixes},plugins:r})},[e.disableVendorPrefixes,r]);return(0,Be.useEffect)(function(){(0,E1.default)(r,e.stylisPlugins)||n(e.stylisPlugins)},[e.stylisPlugins]),Be.default.createElement(ih.Provider,{value:o},Be.default.createElement(oh.Provider,{value:s},e.children))}var CC=function(){function e(t,r){var n=this;this.inject=function(i,o){o===void 0&&(o=Kp);var s=n.name+o.hash;i.hasNameForId(n.id,s)||i.insertRules(n.id,s,o(n.rules,s,"@keyframes"))},this.toString=function(){return un(12,String(n.name))},this.name=t,this.id="sc-keyframes-"+t,this.rules=r}return e.prototype.getName=function(t){return t===void 0&&(t=Kp),this.name+t.hash},e}(),bC=/([A-Z])/,kC=/([A-Z])/g,IC=/^ms-/,MC=function(e){return"-"+e.toLowerCase()};function v1(e){return bC.test(e)?e.replace(kC,MC).replace(IC,"-ms-"):e}var w1=function(e){return e==null||e===!1||e===""};function Ci(e,t,r,n){if(Array.isArray(e)){for(var i,o=[],s=0,a=e.length;s<a;s+=1)(i=Ci(e[s],t,r,n))!==""&&(Array.isArray(i)?o.push.apply(o,i):o.push(i));return o}if(w1(e))return"";if(rh(e))return"."+e.styledComponentId;if(ua(e)){if(typeof(u=e)!="function"||u.prototype&&u.prototype.isReactComponent||!t)return e;var l=e(t);return Ci(l,t,r,n)}var u;return e instanceof CC?r?(e.inject(r,n),e.getName(n)):e:Xp(e)?function c(f,h){var d,g,y=[];for(var x in f)f.hasOwnProperty(x)&&!w1(f[x])&&(Array.isArray(f[x])&&f[x].isCss||ua(f[x])?y.push(v1(x)+":",f[x],";"):Xp(f[x])?y.push.apply(y,c(f[x],x)):y.push(v1(x)+": "+(d=x,(g=f[x])==null||typeof g=="boolean"||g===""?"":typeof g!="number"||g===0||d in t1?String(g).trim():g+"px")+";"));return h?[h+" {"].concat(y,["}"]):y}(e):e.toString()}var S1=function(e){return Array.isArray(e)&&(e.isCss=!0),e};function PC(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];return ua(e)||Xp(e)?S1(Ci(h1(sc,[e].concat(r)))):r.length===0&&e.length===1&&typeof e[0]=="string"?e:S1(Ci(h1(e,r)))}var OC=function(e,t,r){return r===void 0&&(r=$n),e.theme!==r.theme&&e.theme||t||r.theme},AC=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,NC=/(^-|-$)/g;function Zp(e){return e.replace(AC,"-").replace(NC,"")}var FC=function(e){return Jp(T1(e)>>>0)};function ic(e){return typeof e=="string"&&!0}var eh=function(e){return typeof e=="function"||typeof e=="object"&&e!==null&&!Array.isArray(e)},RC=function(e){return e!=="__proto__"&&e!=="constructor"&&e!=="prototype"};function LC(e,t,r){var n=e[r];eh(t)&&eh(n)?I1(n,t):e[r]=t}function I1(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];for(var i=0,o=r;i<o.length;i++){var s=o[i];if(eh(s))for(var a in s)RC(a)&&LC(e,s[a],a)}return e}var M1=Be.default.createContext(),hP=M1.Consumer;var Yp={};function P1(e,t,r){var n=rh(e),i=!ic(e),o=t.attrs,s=o===void 0?sc:o,a=t.componentId,l=a===void 0?function(p,v){var w=typeof p!="string"?"sc":Zp(p);Yp[w]=(Yp[w]||0)+1;var T=w+"-"+FC("5.3.5"+w+Yp[w]);return v?v+"-"+T:T}(t.displayName,t.parentComponentId):a,u=t.displayName,c=u===void 0?function(p){return ic(p)?"styled."+p:"Styled("+m1(p)+")"}(e):u,f=t.displayName&&t.componentId?Zp(t.displayName)+"-"+t.componentId:t.componentId||l,h=n&&e.attrs?Array.prototype.concat(e.attrs,s).filter(Boolean):s,d=t.shouldForwardProp;n&&e.shouldForwardProp&&(d=t.shouldForwardProp?function(p,v,w){return e.shouldForwardProp(p,v,w)&&t.shouldForwardProp(p,v,w)}:e.shouldForwardProp);var g,y=new wC(r,f,n?e.componentStyle:void 0),x=y.isStatic&&s.length===0,m=function(p,v){return function(w,T,k,I){var P=w.attrs,V=w.componentStyle,j=w.defaultProps,ve=w.foldedComponentIds,we=w.shouldForwardProp,He=w.styledComponentId,re=w.target,fe=function(W,C,M){W===void 0&&(W=$n);var N=Hr({},C,{theme:W}),ue={};return M.forEach(function(oe){var pe,K,ot,xt=oe;for(pe in ua(xt)&&(xt=xt(N)),xt)N[pe]=ue[pe]=pe==="className"?(K=ue[pe],ot=xt[pe],K&&ot?K+" "+ot:K||ot):xt[pe]}),[N,ue]}(OC(T,(0,Be.useContext)(M1),j)||$n,T,P),ie=fe[0],Xe=fe[1],Q=function(W,C,M,N){var ue=k1(),oe=_C(),pe=C?W.generateAndInjectStyles($n,ue,oe):W.generateAndInjectStyles(M,ue,oe);return pe}(V,I,ie,void 0),pt=k,Qe=Xe.$as||T.$as||Xe.as||T.as||re,Et=ic(Qe),H=Xe!==T?Hr({},T,{},Xe):T,F={};for(var R in H)R[0]!=="$"&&R!=="as"&&(R==="forwardedAs"?F.as=H[R]:(we?we(R,jp,Qe):!Et||jp(R))&&(F[R]=H[R]));return T.style&&Xe.style!==T.style&&(F.style=Hr({},T.style,{},Xe.style)),F.className=Array.prototype.concat(ve,He,Q!==He?Q:null,T.className,Xe.className).filter(Boolean).join(" "),F.ref=pt,(0,Be.createElement)(Qe,F)}(g,p,v,x)};return m.displayName=c,(g=Be.default.forwardRef(m)).attrs=h,g.componentStyle=y,g.displayName=c,g.shouldForwardProp=d,g.foldedComponentIds=n?Array.prototype.concat(e.foldedComponentIds,e.styledComponentId):sc,g.styledComponentId=f,g.target=n?e.target:e,g.withComponent=function(p){var v=t.componentId,w=function(k,I){if(k==null)return{};var P,V,j={},ve=Object.keys(k);for(V=0;V<ve.length;V++)P=ve[V],I.indexOf(P)>=0||(j[P]=k[P]);return j}(t,["componentId"]),T=v&&v+"-"+(ic(p)?p:Zp(m1(p)));return P1(p,Hr({},w,{attrs:h,componentId:T}),r)},Object.defineProperty(g,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(p){this._foldedDefaultProps=n?I1({},e.defaultProps,p):p}}),g.toString=function(){return"."+g.styledComponentId},i&&(0,x1.default)(g,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0,withComponent:!0}),g}var th=function(e){return function t(r,n,i){if(i===void 0&&(i=$n),!(0,lc.isValidElementType)(n))return un(1,String(n));var o=function(){return r(n,i,PC.apply(void 0,arguments))};return o.withConfig=function(s){return t(r,n,Hr({},i,{},s))},o.attrs=function(s){return t(r,n,Hr({},i,{attrs:Array.prototype.concat(i.attrs,s).filter(Boolean)}))},o}(P1,e)};["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","textPath","tspan"].forEach(function(e){th[e]=th(e)});var mP=function(){function e(r,n){this.rules=r,this.componentId=n,this.isStatic=C1(r),ca.registerId(this.componentId+1)}var t=e.prototype;return t.createStyles=function(r,n,i,o){var s=o(Ci(this.rules,n,i,o).join(""),""),a=this.componentId+r;i.insertRules(a,a,s)},t.removeStyles=function(r,n){n.clearRules(this.componentId+r)},t.renderStyles=function(r,n,i,o){r>2&&ca.registerId(this.componentId+r),this.removeStyles(r,i),this.createStyles(r,n,i,o)},e}();var yP=function(){function e(){var r=this;this._emitSheetCSS=function(){var n=r.instance.toString();if(!n)return"";var i=Qp();return"<style "+[i&&'nonce="'+i+'"',Wn+'="true"','data-styled-version="5.3.5"'].filter(Boolean).join(" ")+">"+n+"</style>"},this.getStyleTags=function(){return r.sealed?un(2):r._emitSheetCSS()},this.getStyleElement=function(){var n;if(r.sealed)return un(2);var i=((n={})[Wn]="",n["data-styled-version"]="5.3.5",n.dangerouslySetInnerHTML={__html:r.instance.toString()},n),o=Qp();return o&&(i.nonce=o),[Be.default.createElement("style",Hr({},i,{key:"sc-0-0"}))]},this.seal=function(){r.sealed=!0},this.instance=new ca({isServer:!0}),this.sealed=!1}var t=e.prototype;return t.collectStyles=function(r){return this.sealed?un(2):Be.default.createElement(TC,{sheet:this.instance},r)},t.interleaveWithNodeStream=function(r){return un(3)},e}();var Y=th;var DC=16/9,BC=e=>{if(e===0)throw new Error("Cannot handle aspect ratio 0");return 100/e},UC=Y.div.attrs(({aspectRatio:e})=>({style:{paddingTop:`${BC(e)}%`}}))`
width: 100%;
background: black;
position: relative;
`,qn=Y.div`
position: absolute;
top: 0;
left: 0;
bottom: 0;
right: 0;
`,fa=({aspectRatio:e=DC,children:t})=>O1.default.createElement(UC,{aspectRatio:e},t);var ba=q(xe()),BE=q(ko());var ft=q(xe());var IE=q(ko());var BS=q(Ao()),q3=q(sw()),yn=q(bt()),Jn=q(bt()),HS=q(bt()),zc=q(bt()),$S=q(bt()),qS=q(bt()),nm=q(bt()),GS=q(bt()),YS=q(bt()),QS=q(bt()),jc=q(bt()),oE=q(bt()),om=q(bt()),vE=q(bt()),Vc=q(bt()),bE=q(bt()),D3=Object.create,Lc=Object.defineProperty,B3=Object.defineProperties,U3=Object.getOwnPropertyDescriptor,H3=Object.getOwnPropertyDescriptors,z3=Object.getOwnPropertyNames,vS=Object.getOwnPropertySymbols,j3=Object.getPrototypeOf,DS=Object.prototype.hasOwnProperty,V3=Object.prototype.propertyIsEnumerable,wS=(e,t,r)=>t in e?Lc(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,ei=(e,t)=>{for(var r in t||(t={}))DS.call(t,r)&&wS(e,r,t[r]);if(vS)for(var r of vS(t))V3.call(t,r)&&wS(e,r,t[r]);return e},Vo=(e,t)=>B3(e,H3(t)),$3=(e,t)=>()=>(e&&(t=e(e=0)),t),Dc=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),sm=(e,t)=>{for(var r in t)Lc(e,r,{get:t[r],enumerable:!0})},W3=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of z3(t))!DS.call(e,i)&&i!==r&&Lc(e,i,{get:()=>t[i],enumerable:!(n=U3(t,i))||n.enumerable});return e},qr=(e,t,r)=>(r=e!=null?D3(j3(e)):{},W3(t||!e||!e.__esModule?Lc(r,"default",{value:e,enumerable:!0}):r,e)),$o=(e,t,r)=>new Promise((n,i)=>{var o=l=>{try{a(r.next(l))}catch(u){i(u)}},s=l=>{try{a(r.throw(l))}catch(u){i(u)}},a=l=>l.done?n(l.value):Promise.resolve(l.value).then(o,s);a((r=r.apply(e,t)).next())}),B=$3(()=>{window.Buffer=BS.Buffer,window.process=q3}),G3=Dc((e,t)=>{B();var r=1e3,n=r*60,i=n*60,o=i*24,s=o*7,a=o*365.25;t.exports=function(h,d){d=d||{};var g=typeof h;if(g==="string"&&h.length>0)return l(h);if(g==="number"&&isFinite(h))return d.long?c(h):u(h);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(h))};function l(h){if(h=String(h),!(h.length>100)){var d=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(h);if(d){var g=parseFloat(d[1]),y=(d[2]||"ms").toLowerCase();switch(y){case"years":case"year":case"yrs":case"yr":case"y":return g*a;case"weeks":case"week":case"w":return g*s;case"days":case"day":case"d":return g*o;case"hours":case"hour":case"hrs":case"hr":case"h":return g*i;case"minutes":case"minute":case"mins":case"min":case"m":return g*n;case"seconds":case"second":case"secs":case"sec":case"s":return g*r;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return g;default:return}}}}function u(h){var d=Math.abs(h);return d>=o?Math.round(h/o)+"d":d>=i?Math.round(h/i)+"h":d>=n?Math.round(h/n)+"m":d>=r?Math.round(h/r)+"s":h+"ms"}function c(h){var d=Math.abs(h);return d>=o?f(h,d,o,"day"):d>=i?f(h,d,i,"hour"):d>=n?f(h,d,n,"minute"):d>=r?f(h,d,r,"second"):h+" ms"}function f(h,d,g,y){var x=d>=g*1.5;return Math.round(h/g)+" "+y+(x?"s":"")}}),Z3=Dc((e,t)=>{B();function r(n){o.debug=o,o.default=o,o.coerce=f,o.disable=l,o.enable=a,o.enabled=u,o.humanize=G3(),o.destroy=h,Object.keys(n).forEach(d=>{o[d]=n[d]}),o.names=[],o.skips=[],o.formatters={};function i(d){let g=0;for(let y=0;y<d.length;y++)g=(g<<5)-g+d.charCodeAt(y),g|=0;return o.colors[Math.abs(g)%o.colors.length]}o.selectColor=i;function o(d){let g,y=null,x,m;function p(...v){if(!p.enabled)return;let w=p,T=Number(new Date),k=T-(g||T);w.diff=k,w.prev=g,w.curr=T,g=T,v[0]=o.coerce(v[0]),typeof v[0]!="string"&&v.unshift("%O");let I=0;v[0]=v[0].replace(/%([a-zA-Z%])/g,(P,V)=>{if(P==="%%")return"%";I++;let j=o.formatters[V];if(typeof j=="function"){let ve=v[I];P=j.call(w,ve),v.splice(I,1),I--}return P}),o.formatArgs.call(w,v),(w.log||o.log).apply(w,v)}return p.namespace=d,p.useColors=o.useColors(),p.color=o.selectColor(d),p.extend=s,p.destroy=o.destroy,Object.defineProperty(p,"enabled",{enumerable:!0,configurable:!1,get:()=>y!==null?y:(x!==o.namespaces&&(x=o.namespaces,m=o.enabled(d)),m),set:v=>{y=v}}),typeof o.init=="function"&&o.init(p),p}function s(d,g){let y=o(this.namespace+(typeof g=="undefined"?":":g)+d);return y.log=this.log,y}function a(d){o.save(d),o.namespaces=d,o.names=[],o.skips=[];let g,y=(typeof d=="string"?d:"").split(/[\s,]+/),x=y.length;for(g=0;g<x;g++)!y[g]||(d=y[g].replace(/\*/g,".*?"),d[0]==="-"?o.skips.push(new RegExp("^"+d.slice(1)+"$")):o.names.push(new RegExp("^"+d+"$")))}function l(){let d=[...o.names.map(c),...o.skips.map(c).map(g=>"-"+g)].join(",");return o.enable(""),d}function u(d){if(d[d.length-1]==="*")return!0;let g,y;for(g=0,y=o.skips.length;g<y;g++)if(o.skips[g].test(d))return!1;for(g=0,y=o.names.length;g<y;g++)if(o.names[g].test(d))return!0;return!1}function c(d){return d.toString().substring(2,d.toString().length-2).replace(/\.\*\?$/,"*")}function f(d){return d instanceof Error?d.stack||d.message:d}function h(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}return o.enable(o.load()),o}t.exports=r}),gn=Dc((e,t)=>{B(),e.formatArgs=n,e.save=i,e.load=o,e.useColors=r,e.storage=s(),e.destroy=(()=>{let l=!1;return()=>{l||(l=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),e.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function r(){return typeof window!="undefined"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs)?!0:typeof navigator!="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/)?!1:typeof document!="undefined"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window!="undefined"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator!="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||typeof navigator!="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function n(l){if(l[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+l[0]+(this.useColors?"%c ":" ")+"+"+t.exports.humanize(this.diff),!this.useColors)return;let u="color: "+this.color;l.splice(1,0,u,"color: inherit");let c=0,f=0;l[0].replace(/%[a-zA-Z%]/g,h=>{h!=="%%"&&(c++,h==="%c"&&(f=c))}),l.splice(f,0,u)}e.log=console.debug||console.log||(()=>{});function i(l){try{l?e.storage.setItem("debug",l):e.storage.removeItem("debug")}catch(u){}}function o(){let l;try{l=e.storage.getItem("debug")}catch(u){}return!l&&typeof process!="undefined"&&"env"in process&&(l=process.env.DEBUG),l}function s(){try{return localStorage}catch(l){}}t.exports=Z3()(e);var{formatters:a}=t.exports;a.j=function(l){try{return JSON.stringify(l)}catch(u){return"[UnexpectedJSONParseError]: "+u.message}}}),Y3=Dc(e=>{"use strict";B(),Object.defineProperty(e,"__esModule",{value:!0});var t=function(){function r(){this._dataLength=0,this._bufferLength=0,this._state=new Int32Array(4),this._buffer=new ArrayBuffer(68),this._buffer8=new Uint8Array(this._buffer,0,68),this._buffer32=new Uint32Array(this._buffer,0,17),this.start()}return r.hashStr=function(n,i){return i===void 0&&(i=!1),this.onePassHasher.start().appendStr(n).end(i)},r.hashAsciiStr=function(n,i){return i===void 0&&(i=!1),this.onePassHasher.start().appendAsciiStr(n).end(i)},r._hex=function(n){var i=r.hexChars,o=r.hexOut,s,a,l,u;for(u=0;u<4;u+=1)for(a=u*8,s=n[u],l=0;l<8;l+=2)o[a+1+l]=i.charAt(s&15),s>>>=4,o[a+0+l]=i.charAt(s&15),s>>>=4;return o.join("")},r._md5cycle=function(n,i){var o=n[0],s=n[1],a=n[2],l=n[3];o+=(s&a|~s&l)+i[0]-680876936|0,o=(o<<7|o>>>25)+s|0,l+=(o&s|~o&a)+i[1]-389564586|0,l=(l<<12|l>>>20)+o|0,a+=(l&o|~l&s)+i[2]+606105819|0,a=(a<<17|a>>>15)+l|0,s+=(a&l|~a&o)+i[3]-1044525330|0,s=(s<<22|s>>>10)+a|0,o+=(s&a|~s&l)+i[4]-176418897|0,o=(o<<7|o>>>25)+s|0,l+=(o&s|~o&a)+i[5]+1200080426|0,l=(l<<12|l>>>20)+o|0,a+=(l&o|~l&s)+i[6]-1473231341|0,a=(a<<17|a>>>15)+l|0,s+=(a&l|~a&o)+i[7]-45705983|0,s=(s<<22|s>>>10)+a|0,o+=(s&a|~s&l)+i[8]+1770035416|0,o=(o<<7|o>>>25)+s|0,l+=(o&s|~o&a)+i[9]-1958414417|0,l=(l<<12|l>>>20)+o|0,a+=(l&o|~l&s)+i[10]-42063|0,a=(a<<17|a>>>15)+l|0,s+=(a&l|~a&o)+i[11]-1990404162|0,s=(s<<22|s>>>10)+a|0,o+=(s&a|~s&l)+i[12]+1804603682|0,o=(o<<7|o>>>25)+s|0,l+=(o&s|~o&a)+i[13]-40341101|0,l=(l<<12|l>>>20)+o|0,a+=(l&o|~l&s)+i[14]-1502002290|0,a=(a<<17|a>>>15)+l|0,s+=(a&l|~a&o)+i[15]+1236535329|0,s=(s<<22|s>>>10)+a|0,o+=(s&l|a&~l)+i[1]-165796510|0,o=(o<<5|o>>>27)+s|0,l+=(o&a|s&~a)+i[6]-1069501632|0,l=(l<<9|l>>>23)+o|0,a+=(l&s|o&~s)+i[11]+643717713|0,a=(a<<14|a>>>18)+l|0,s+=(a&o|l&~o)+i[0]-373897302|0,s=(s<<20|s>>>12)+a|0,o+=(s&l|a&~l)+i[5]-701558691|0,o=(o<<5|o>>>27)+s|0,l+=(o&a|s&~a)+i[10]+38016083|0,l=(l<<9|l>>>23)+o|0,a+=(l&s|o&~s)+i[15]-660478335|0,a=(a<<14|a>>>18)+l|0,s+=(a&o|l&~o)+i[4]-405537848|0,s=(s<<20|s>>>12)+a|0,o+=(s&l|a&~l)+i[9]+568446438|0,o=(o<<5|o>>>27)+s|0,l+=(o&a|s&~a)+i[14]-1019803690|0,l=(l<<9|l>>>23)+o|0,a+=(l&s|o&~s)+i[3]-187363961|0,a=(a<<14|a>>>18)+l|0,s+=(a&o|l&~o)+i[8]+1163531501|0,s=(s<<20|s>>>12)+a|0,o+=(s&l|a&~l)+i[13]-1444681467|0,o=(o<<5|o>>>27)+s|0,l+=(o&a|s&~a)+i[2]-51403784|0,l=(l<<9|l>>>23)+o|0,a+=(l&s|o&~s)+i[7]+1735328473|0,a=(a<<14|a>>>18)+l|0,s+=(a&o|l&~o)+i[12]-1926607734|0,s=(s<<20|s>>>12)+a|0,o+=(s^a^l)+i[5]-378558|0,o=(o<<4|o>>>28)+s|0,l+=(o^s^a)+i[8]-2022574463|0,l=(l<<11|l>>>21)+o|0,a+=(l^o^s)+i[11]+1839030562|0,a=(a<<16|a>>>16)+l|0,s+=(a^l^o)+i[14]-35309556|0,s=(s<<23|s>>>9)+a|0,o+=(s^a^l)+i[1]-1530992060|0,o=(o<<4|o>>>28)+s|0,l+=(o^s^a)+i[4]+1272893353|0,l=(l<<11|l>>>21)+o|0,a+=(l^o^s)+i[7]-155497632|0,a=(a<<16|a>>>16)+l|0,s+=(a^l^o)+i[10]-1094730640|0,s=(s<<23|s>>>9)+a|0,o+=(s^a^l)+i[13]+681279174|0,o=(o<<4|o>>>28)+s|0,l+=(o^s^a)+i[0]-358537222|0,l=(l<<11|l>>>21)+o|0,a+=(l^o^s)+i[3]-722521979|0,a=(a<<16|a>>>16)+l|0,s+=(a^l^o)+i[6]+76029189|0,s=(s<<23|s>>>9)+a|0,o+=(s^a^l)+i[9]-640364487|0,o=(o<<4|o>>>28)+s|0,l+=(o^s^a)+i[12]-421815835|0,l=(l<<11|l>>>21)+o|0,a+=(l^o^s)+i[15]+530742520|0,a=(a<<16|a>>>16)+l|0,s+=(a^l^o)+i[2]-995338651|0,s=(s<<23|s>>>9)+a|0,o+=(a^(s|~l))+i[0]-198630844|0,o=(o<<6|o>>>26)+s|0,l+=(s^(o|~a))+i[7]+1126891415|0,l=(l<<10|l>>>22)+o|0,a+=(o^(l|~s))+i[14]-1416354905|0,a=(a<<15|a>>>17)+l|0,s+=(l^(a|~o))+i[5]-57434055|0,s=(s<<21|s>>>11)+a|0,o+=(a^(s|~l))+i[12]+1700485571|0,o=(o<<6|o>>>26)+s|0,l+=(s^(o|~a))+i[3]-1894986606|0,l=(l<<10|l>>>22)+o|0,a+=(o^(l|~s))+i[10]-1051523|0,a=(a<<15|a>>>17)+l|0,s+=(l^(a|~o))+i[1]-2054922799|0,s=(s<<21|s>>>11)+a|0,o+=(a^(s|~l))+i[8]+1873313359|0,o=(o<<6|o>>>26)+s|0,l+=(s^(o|~a))+i[15]-30611744|0,l=(l<<10|l>>>22)+o|0,a+=(o^(l|~s))+i[6]-1560198380|0,a=(a<<15|a>>>17)+l|0,s+=(l^(a|~o))+i[13]+1309151649|0,s=(s<<21|s>>>11)+a|0,o+=(a^(s|~l))+i[4]-145523070|0,o=(o<<6|o>>>26)+s|0,l+=(s^(o|~a))+i[11]-1120210379|0,l=(l<<10|l>>>22)+o|0,a+=(o^(l|~s))+i[2]+718787259|0,a=(a<<15|a>>>17)+l|0,s+=(l^(a|~o))+i[9]-343485551|0,s=(s<<21|s>>>11)+a|0,n[0]=o+n[0]|0,n[1]=s+n[1]|0,n[2]=a+n[2]|0,n[3]=l+n[3]|0},r.prototype.start=function(){return this._dataLength=0,this._bufferLength=0,this._state.set(r.stateIdentity),this},r.prototype.appendStr=function(n){var i=this._buffer8,o=this._buffer32,s=this._bufferLength,a,l;for(l=0;l<n.length;l+=1){if(a=n.charCodeAt(l),a<128)i[s++]=a;else if(a<2048)i[s++]=(a>>>6)+192,i[s++]=a&63|128;else if(a<55296||a>56319)i[s++]=(a>>>12)+224,i[s++]=a>>>6&63|128,i[s++]=a&63|128;else{if(a=(a-55296)*1024+(n.charCodeAt(++l)-56320)+65536,a>1114111)throw new Error("Unicode standard supports code points up to U+10FFFF");i[s++]=(a>>>18)+240,i[s++]=a>>>12&63|128,i[s++]=a>>>6&63|128,i[s++]=a&63|128}s>=64&&(this._dataLength+=64,r._md5cycle(this._state,o),s-=64,o[0]=o[16])}return this._bufferLength=s,this},r.prototype.appendAsciiStr=function(n){for(var i=this._buffer8,o=this._buffer32,s=this._bufferLength,a,l=0;;){for(a=Math.min(n.length-l,64-s);a--;)i[s++]=n.charCodeAt(l++);if(s<64)break;this._dataLength+=64,r._md5cycle(this._state,o),s=0}return this._bufferLength=s,this},r.prototype.appendByteArray=function(n){for(var i=this._buffer8,o=this._buffer32,s=this._bufferLength,a,l=0;;){for(a=Math.min(n.length-l,64-s);a--;)i[s++]=n[l++];if(s<64)break;this._dataLength+=64,r._md5cycle(this._state,o),s=0}return this._bufferLength=s,this},r.prototype.getState=function(){var n=this._state;return{buffer:String.fromCharCode.apply(null,Array.from(this._buffer8)),buflen:this._bufferLength,length:this._dataLength,state:[n[0],n[1],n[2],n[3]]}},r.prototype.setState=function(n){var i=n.buffer,o=n.state,s=this._state,a;for(this._dataLength=n.length,this._bufferLength=n.buflen,s[0]=o[0],s[1]=o[1],s[2]=o[2],s[3]=o[3],a=0;a<i.length;a+=1)this._buffer8[a]=i.charCodeAt(a)},r.prototype.end=function(n){n===void 0&&(n=!1);var i=this._bufferLength,o=this._buffer8,s=this._buffer32,a=(i>>2)+1;this._dataLength+=i;var l=this._dataLength*8;if(o[i]=128,o[i+1]=o[i+2]=o[i+3]=0,s.set(r.buffer32Identity.subarray(a),a),i>55&&(r._md5cycle(this._state,s),s.set(r.buffer32Identity)),l<=4294967295)s[14]=l;else{var u=l.toString(16).match(/(.*?)(.{0,8})$/);if(u===null)return;var c=parseInt(u[2],16),f=parseInt(u[1],16)||0;s[14]=c,s[15]=f}return r._md5cycle(this._state,s),n?this._state:r._hex(this._state)},r.stateIdentity=new Int32Array([1732584193,-271733879,-1732584194,271733878]),r.buffer32Identity=new Int32Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]),r.hexChars="0123456789abcdef",r.hexOut=[],r.onePassHasher=new r,r}();if(e.Md5=t,t.hashStr("hello")!=="5d41402abc4b2a76b9719d911017c592")throw new Error("Md5 self test failed.")});B();var Bc={};sm(Bc,{AACDepay:()=>zS,BasicDepay:()=>n4,CanvasSink:()=>VS,H264Depay:()=>WS,HttpSource:()=>f4,Inspector:()=>d4,JPEGDepay:()=>ZS,MessageType:()=>Hc,Mp4Capture:()=>_4,Mp4Muxer:()=>JS,MseSink:()=>lm,ONVIFDepay:()=>um,RTSPResponseError:()=>EE,RTSP_METHOD:()=>SE,RtspParser:()=>gE,RtspSession:()=>xE,Sink:()=>Ea,Source:()=>Wo,Tube:()=>Wt,WSSource:()=>Zo,createTransform:()=>Sa});B();B();B();var jo=class{static consumer(e=()=>{}){return new Jn.Writable({objectMode:!0,write(t,r,n){e(t),n()}})}static peeker(e){if(typeof e!="function")throw new Error("you must supply a function");return new Jn.Transform({objectMode:!0,transform(t,r,n){e(t),n(void 0,t)}})}static producer(e){let t=0;return new Jn.Readable({objectMode:!0,read(){e!==void 0&&(t<e.length?this.push(e[t++]):this.push(null))}})}static recorder(e,t){return new Jn.Transform({objectMode:!0,transform(r,n,i){let o=Date.now(),s=Object.assign({},r,{data:r.data.toString("base64")});t.write(JSON.stringify({type:e,timestamp:o,message:s},null,2)),t.write(`,
`),i(void 0,r)}})}static replayer(e){let t=0,r=e[0].timestamp;return new Jn.Readable({objectMode:!0,read(){let n=e[t++];if(n){let{type:i,timestamp:o,message:s}=n,a=o-r;if(r=o,s){let l=s.data?Buffer.from(s.data,"base64"):Buffer.alloc(0),u=Object.assign({},s,{data:l});this.push({type:i,delay:a,msg:u})}else this.push({type:i,delay:a,msg:null})}else this.push(null)}})}},US=class{},Wo=class extends US{constructor(e=new yn.Readable({objectMode:!0}),t=new yn.Writable({objectMode:!0})){super(),this.incoming=e,this.outgoing=t,this.next=null,this.prev=null}static fromMessages(e){return new Wo(jo.producer(e),jo.consumer())}connect(e){if(e===null)return this;if(this.next!==null||e.prev!==null)throw new Error("connection failed: component(s) already connected");if(!this.incoming.readable||!this.outgoing.writable)throw new Error("connection failed: this component not compatible");if(!e.incoming.writable||!e.outgoing.readable)throw new Error("connection failed: next component not compatible");try{this.incoming.pipe(e.incoming),e.outgoing.pipe(this.outgoing)}catch(n){throw new Error(`connection failed: ${n.message}`)}let t=n=>{this.incoming.emit("error",n)};e.incoming.on("error",t);let r=n=>{e.outgoing.emit("error",n)};return this.outgoing.on("error",r),this.next=e,e.prev=this,this._incomingErrorHandler=t,this._outgoingErrorHandler=r,e}disconnect(){let e=this.next;return e!==null&&(this.incoming.unpipe(e.incoming),e.outgoing.unpipe(this.outgoing),typeof this._incomingErrorHandler!="undefined"&&e.incoming.removeListener("error",this._incomingErrorHandler),typeof this._outgoingErrorHandler!="undefined"&&this.outgoing.removeListener("error",this._outgoingErrorHandler),this.next=null,e.prev=null,delete this._incomingErrorHandler,delete this._outgoingErrorHandler),this}},Wt=class extends Wo{constructor(e=new yn.PassThrough({objectMode:!0}),t=new yn.PassThrough({objectMode:!0})){super(e,t),this.incoming=e,this.outgoing=t}static fromHandlers(e,t){let r=e?jo.peeker(e):void 0,n=t?jo.peeker(t):void 0;return new Wt(r,n)}},Ea=class extends US{constructor(e=new yn.Writable({objectMode:!0}),t=new yn.Readable({objectMode:!0})){super(),this.incoming=e,this.outgoing=t,this.next=null,this.prev=null}static fromHandler(e){let t=new Ea(jo.consumer(e),jo.producer(void 0));return t.incoming.on("finish",()=>{t.outgoing.push(null)}),t}connect(){throw new Error("connection failed: attempting to connect after a sink")}disconnect(){return this}};B();B();B();var Uc=[128,64,32,16,8,4,2,1],X3=e=>e[0]>>>6,Q3=e=>!!(e[0]&Uc[2]),am=e=>!!(e[0]&Uc[3]),Li=e=>e[0]&15,xa=e=>!!(e[1]&Uc[0]),mr=e=>e[1]&127,J3=e=>e.readUInt16BE(2),Kn=e=>e.readUInt32BE(4),K3=e=>e.readUInt32BE(8),e4=(e,t=0)=>Li(e)>t?e.readUInt32BE(12+t*4):0,Rc=e=>am(e)?e.readUInt16BE(12+Li(e)*4+2):0,t4=e=>Rc(e)===0?Buffer.from([]):e.slice(12+Li(e)*4,12+Li(e)*4+4+Rc(e)*4),qo=e=>am(e)?e.slice(12+Li(e)*4+4+Rc(e)*4):e.slice(12+Li(e)*4);B();var Hc=(e=>(e[e.UNKNOWN=0]="UNKNOWN",e[e.RAW=1]="RAW",e[e.RTP=2]="RTP",e[e.RTCP=3]="RTCP",e[e.RTSP=4]="RTSP",e[e.SDP=5]="SDP",e[e.ELEMENTARY=6]="ELEMENTARY",e[e.H264=7]="H264",e[e.ISOM=8]="ISOM",e[e.XML=9]="XML",e[e.JPEG=10]="JPEG",e))(Hc||{});B();function r4(e,t,r){let n=qo(e.data),i=0;if(t){let s=n.readUInt16BE(0);i=2+(s+s%8)/8}let o={type:6,data:n.slice(i),payloadType:mr(e.data),timestamp:Kn(e.data),ntpTimestamp:e.ntpTimestamp};r(o)}B();var Sa=e=>new HS.Transform({objectMode:!0,transform:e}),zS=class extends Wt{constructor(){let e,t,r=Sa(function(n,i,o){if(n.type===5){let s;for(let a of n.sdp.media)a.type==="audio"&&a.fmtp&&a.fmtp.parameters&&a.fmtp.parameters.mode==="AAC-hbr"&&(s=a);if(s&&s.rtpmap!==void 0){e=Number(s.rtpmap.payloadType);let a=s.fmtp.parameters,l=Number(a.sizelength)||0,u=Number(a.indexlength)||0,c=Number(a.indexdeltalength)||0,f=Number(a.ctsdeltalength)||0,h=Number(a.dtsdeltalength)||0,d=Number(a.randomaccessindication)||0,g=Number(a.streamstateindication)||0,y=Number(a.auxiliarydatasizelength)||0;t=l+Math.max(u,c)+f+h+d+g+y>0}o(void 0,n)}else n.type===2&&mr(n.data)===e?(r4(n,t,this.push.bind(this)),o()):o(void 0,n)});super(r)}};B();var n4=class extends Wt{constructor(e){if(e===void 0)throw new Error("you must supply a payload type to BasicDepayComponent");let t=Buffer.alloc(0),r=Sa(function(n,i,o){if(n.type===2&&mr(n.data)===e){let s=qo(n.data);t=Buffer.concat([t,s]),xa(n.data)&&(t.length>0&&this.push({data:t,timestamp:Kn(n.data),ntpTimestamp:n.ntpTimestamp,payloadType:mr(n.data),type:6}),t=Buffer.alloc(0)),o()}else o(void 0,n)});super(r)}};B();B();var i4=class{constructor(){this.elapsed=0,this.started=0,this.stopped=!0}start(){this.stopped&&(this.started=window.performance.now(),this.stopped=!1)}stop(){this.stopped||(this.elapsed=this.now(),this.stopped=!0)}reset(){this.elapsed=0,this.started=0,this.stopped=!0}now(){return this.stopped?this.elapsed:this.elapsed+(window.performance.now()-this.started)}play(){this.start()}pause(){this.stop()}get currentTime(){return this.now()/1e3}};B();var jS=class{constructor(e,t,r=10){this._clock=e,this._handler=t,this._tolerance=r,this._nextRun=0,this._nextPlay=0,this._fifo=[],this._ntpPresentationTime=0,this._suspended=!1}reset(){clearTimeout(this._nextRun),clearTimeout(this._nextPlay),this._fifo=[],this._ntpPresentationTime=0,this._suspended=!1}init(e){this._ntpPresentationTime=e}suspend(){clearTimeout(this._nextPlay),this._suspended=!0}resume(){this._suspended=!1,this.run(void 0)}run(e){if(clearTimeout(this._nextRun),typeof this._ntpPresentationTime=="undefined"||(typeof e!="undefined"&&this._fifo.push(e),this._suspended)||this._fifo.length===0)return;let t=0,r;do{let n=this._fifo.shift();if(n===void 0)throw new Error("internal error: message should never be undefined");r=n;let i=r.ntpTimestamp;i!==void 0&&(t=i-this._ntpPresentationTime-this._clock.currentTime*1e3,Math.abs(t)<this._tolerance&&this._handler&&this._handler(r))}while(t<this._tolerance&&this._fifo.length>0);t<-this._tolerance?(clearTimeout(this._nextPlay),this._clock.pause(),this._nextPlay=window.setTimeout(()=>this._clock.play(),-t)):t>this._tolerance&&(this._fifo.unshift(r),this._nextRun=window.setTimeout(()=>this.run(void 0),t))}},o4=e=>{e.bitrate=0,e.framerate=0,e.renderedFrames=0},s4=e=>{let t=0,r=0,n=0;return(i,{byteLength:o,duration:s})=>{if(t+=o,r+=s,n++,r>=e){let a=8*t,l=n,u=r/e;i.bitrate=a/u,i.framerate=l/u,t=0,r=0,n=0}}},VS=class extends Ea{constructor(e){if(e===void 0)throw new Error("canvas element argument missing");let t=0,r=0,n=0,i={bitrate:0,framerate:0,renderedFrames:0},o,s=null;window.createImageBitmap!==void 0&&(s=e.getContext("bitmaprenderer")),s===null&&(s=e.getContext("2d"));let a;if(s===null)a=()=>{};else if("transferFromImageBitmap"in s){let y=s;a=({blob:x})=>{i.renderedFrames++,window.createImageBitmap(x).then(m=>{y.transferFromImageBitmap(m)}).catch(()=>{})}}else{let y=s,x=new Image;x.onload=()=>{y.drawImage(x,0,0)},a=({blob:m})=>{i.renderedFrames++;let p=window.URL.createObjectURL(m);x.src=p}}let l=new i4,u=new jS(l,a),c=0,f=()=>{this.onCanplay&&this.onCanplay()},h=y=>{this.onSync&&this.onSync(y)},d=new zc.Writable({objectMode:!0,write:(y,x,m)=>{if(y.type===5){l.reset(),u.reset(),t=0;let p=y.sdp.media.find(v=>v.type==="video"&&v.rtpmap!==void 0&&v.rtpmap.encodingName==="JPEG");p!==void 0&&p.rtpmap!==void 0&&(n=p.rtpmap.clockrate,o4(i),o=s4(n)),m()}else if(y.type===10){let{timestamp:p,ntpTimestamp:v}=y;if(!t){t=p,r=p;let{width:k,height:I}=y.framesize;e.width=k,e.height=I,u.init(0)}let w=1e3*(p-t)/n,T=new window.Blob([y.data],{type:"image/jpeg"});!c&&v&&(c=v-w,h(c)),u.run({ntpTimestamp:w,blob:T}),p===t&&f(),o(i,{byteLength:y.data.length,duration:p-r}),r=p,m()}else m()}}),g=new zc.Readable({objectMode:!0,read:function(){}});g.on("error",()=>{console.warn("outgoing stream broke somewhere")}),super(d,g),this._clock=l,this._scheduler=u,this._info=i,this.onCanplay=void 0,this.onSync=void 0}get currentTime(){return this._clock.currentTime}pause(){this._scheduler.suspend(),this._clock.pause()}play(){this._clock.play(),this._scheduler.resume()}get bitrate(){return this._info.bitrate}get framerate(){return this._info.framerate}};B();B();var a4=qr(gn()),l4=(0,a4.default)("msl:h264depay"),u4=class{constructor(){this._buffer=Buffer.alloc(0)}parse(e){let t=qo(e.data),r=t[0]&31;if(r===28){let n=t[0],i=t[1],o=!!(i>>7),s=i&31,a=n&224|s,l=i&64;if(o)return this._buffer=Buffer.concat([Buffer.from([0,0,0,0,a]),t.slice(2)]),null;if(l){let u=Buffer.concat([this._buffer,t.slice(2)]);u.writeUInt32BE(u.length-4,0);let c={data:u,type:7,timestamp:Kn(e.data),ntpTimestamp:e.ntpTimestamp,payloadType:mr(e.data),nalType:s};return this._buffer=Buffer.alloc(0),c}else return this._buffer=Buffer.concat([this._buffer,t.slice(2)]),null}else if((r===1||r===5)&&this._buffer.length===0){let n=Buffer.concat([Buffer.from([0,0,0,0]),t]);n.writeUInt32BE(n.length-4,0);let i={data:n,type:7,timestamp:Kn(e.data),ntpTimestamp:e.ntpTimestamp,payloadType:mr(e.data),nalType:r};return this._buffer=Buffer.alloc(0),i}else return l4(`H264depayComponent can only extract types 1,5 and 28, got ${r}`),this._buffer=Buffer.alloc(0),null}},WS=class extends Wt{constructor(){let e,t=!1,r=[],n=new u4,i=new $S.Transform({objectMode:!0,transform:function(o,s,a){if(o.type===5){let l=o.sdp.media.find(u=>u.type==="video"&&u.rtpmap!==void 0&&u.rtpmap.encodingName==="H264");l!==void 0&&l.rtpmap!==void 0&&(e=l.rtpmap.payloadType),a(void 0,o)}else if(o.type===2&&mr(o.data)===e){let l=xa(o.data),u=n.parse(o);if(u===null||!t&&u.nalType!==5){a();return}t=!0,r.push(u.data),l&&(this.push(Vo(ei({},u),{data:r.length===1?r[0]:Buffer.concat(r)})),r=[]),a()}else a(void 0,o)}});super(i)}};B();var c4=qr(gn()),Qh=(0,c4.default)("msl:http-source"),f4=class extends Wo{constructor(e){let{uri:t,options:r}=e,n=new qS.Readable({objectMode:!0,read:function(){}});n.on("error",i=>{console.warn("closing socket due to incoming error",i),this._reader&&this._reader.cancel()}),super(n),n._read=()=>{this._pull()},this.uri=t,this.options=r,this._allDone=!1}play(){if(this.uri===void 0)throw new Error("cannot start playing when there is no URI");this._abortController=new AbortController,this.length=0,fetch(this.uri,ei({credentials:"include",signal:this._abortController.signal},this.options)).then(e=>{if(e.body===null)throw new Error("empty response body");this.onHeaders&&this.onHeaders(e.headers),this._reader=e.body.getReader(),this._pull()}).catch(e=>{console.error("http-source: fetch failed: ",e)})}abort(){this._reader&&this._reader.cancel().catch(e=>{console.log("http-source: cancel reader failed: ",e)}),this._abortController&&this._abortController.abort()}_isClosed(){return this._allDone}_close(){var e;this._reader=void 0,this._allDone=!0,this.incoming.push(null),(e=this.onServerClose)==null||e.call(this)}_pull(){this._reader!==void 0&&this._reader.read().then(({done:e,value:t})=>{if(e){this._isClosed()||(Qh("fetch completed, total downloaded: ",this.length," bytes"),this._close());return}if(t===void 0)throw new Error("expected value to be defined");if(this.length===void 0)throw new Error("expected length to be defined");this.length+=t.length;let r=Buffer.from(t);this.incoming.push({data:r,type:1})?this._pull():Qh("downstream back pressure: pausing read")}).catch(e=>{Qh("http-source: read failed: ",e),this._isClosed()||this._close()})}};B();var SS=(e,t)=>{let r=Date.now(),n=i=>{let o=Date.now();console.log(`${e}: +${o-r}ms`,i),r=o};return t===void 0?n:i=>i.type===t&&n(i)},d4=class extends Wt{constructor(e){let t=SS("incoming",e),r=new nm.Transform({objectMode:!0,transform:function(o,s,a){t(o),a(void 0,o)}}),n=SS("outgoing",e),i=new nm.Transform({objectMode:!0,transform:function(o,s,a){n(o),a(void 0,o)}});super(r,i)}};B();B();B();function p4(){return Buffer.from([255,216])}function h4(e,t){let r=e&1?128:64,n=e&2?128:64;if(t.length!==r+n)throw new Error("invalid quantization table");let i=Buffer.from([255,219,0,r+3,0]),o=Buffer.from([255,219,0,n+3,1]);return Buffer.concat([i,t.slice(0,r),o,t.slice(r)])}function m4(e,t,r){return Buffer.from([255,192,0,17,8,t>>8,t,e>>8,e,3,0,r===0?33:34,0,1,17,1,2,17,1])}var ES=[0,1,5,1,1,1,1,1,1,0,0,0,0,0,0,0],xS=[0,1,2,3,4,5,6,7,8,9,10,11],_S=[0,2,1,3,3,2,4,3,5,5,4,4,0,0,1,125],TS=[1,2,3,0,4,17,5,18,33,49,65,6,19,81,97,7,34,113,20,50,129,145,161,8,35,66,177,193,21,82,209,240,36,51,98,114,130,9,10,22,23,24,25,26,37,38,39,40,41,42,52,53,54,55,56,57,58,67,68,69,70,71,72,73,74,83,84,85,86,87,88,89,90,99,100,101,102,103,104,105,106,115,116,117,118,119,120,121,122,131,132,133,134,135,136,137,138,146,147,148,149,150,151,152,153,154,162,163,164,165,166,167,168,169,170,178,179,180,181,182,183,184,185,186,194,195,196,197,198,199,200,201,202,210,211,212,213,214,215,216,217,218,225,226,227,228,229,230,231,232,233,234,241,242,243,244,245,246,247,248,249,250],CS=[0,3,1,1,1,1,1,1,1,1,1,0,0,0,0,0],bS=[0,1,2,3,4,5,6,7,8,9,10,11],kS=[0,2,1,2,4,4,3,4,7,5,4,4,0,1,2,119],IS=[0,1,2,3,17,4,5,33,49,6,18,65,81,7,97,113,19,34,50,129,8,20,66,145,161,177,193,9,35,51,82,240,21,98,114,209,10,22,36,52,225,37,241,23,24,25,26,38,39,40,41,42,53,54,55,56,57,58,67,68,69,70,71,72,73,74,83,84,85,86,87,88,89,90,99,100,101,102,103,104,105,106,115,116,117,118,119,120,121,122,130,131,132,133,134,135,136,137,138,146,147,148,149,150,151,152,153,154,162,163,164,165,166,167,168,169,170,178,179,180,181,182,183,184,185,186,194,195,196,197,198,199,200,201,202,210,211,212,213,214,215,216,217,218,226,227,228,229,230,231,232,233,234,242,243,244,245,246,247,248,249,250];function y4(){let e=[[255,196,0,3+ES.length+xS.length,0],ES,xS],t=[[255,196,0,3+_S.length+TS.length,1<<4|0],_S,TS],r=[[255,196,0,3+CS.length+bS.length,0<<4|1],CS,bS],n=[[255,196,0,3+kS.length+IS.length,1<<4|1],kS,IS];return Buffer.concat([...e.map(Buffer.from),...t.map(Buffer.from),...r.map(Buffer.from),...n.map(Buffer.from)])}function g4(){return Buffer.from([255,218,0,12,3,0,0,1,17,2,17,0,63,0])}function v4(e){return Buffer.from([255,221,0,4,e>>8,e&255])}B();B();function Jh(e,t,r){return e>r?r:e<t?t:e}var w4=[16,11,12,14,12,10,16,14,13,14,18,17,16,19,24,40,26,24,22,22,24,49,35,37,29,40,58,51,61,60,57,51,56,55,64,72,92,78,64,68,87,69,55,56,80,109,81,87,95,98,103,104,103,62,77,113,121,112,100,120,92,101,103,99],S4=[17,18,18,24,21,24,47,26,26,47,99,66,56,66,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99];function E4(e){let t=Jh(e,1,99),r=Buffer.alloc(128),n=e<50?Math.floor(5e3/t):200-t*2;for(let i=0;i<64;i++){let o=Math.floor((w4[i]*n+50)/100),s=Math.floor((S4[i]*n+50)/100);r.writeUInt8(Jh(o,1,255),i),r.writeUInt8(Jh(s,1,255),i+64)}return r}function MS(e=0,t=0){let r=p4(),n=y4(),i=g4();return function(o){let s,a=[];for(let x of o){let m=qo(x),p=m.readUInt8(0),v=m.readUInt8(1)<<16|m.readUInt8(2)<<8|m.readUInt8(3),w=m.readUInt8(4),T=m.readUInt8(5),k=m.readUInt8(6)*8||e,I=m.readUInt8(7)*8||t;m=m.slice(8);let P=0;if(w>=64&&w<=127&&(P=m.readUInt16BE(0),m=m.slice(4)),T>=128&&v===0){let V=m.readUInt8(1),j=m.readUInt16BE(2),ve=m.slice(4,4+j);s={typeSpecific:p,type:w,width:k,height:I,DRI:P,precision:V,qTable:ve},m=m.slice(4+j)}else if(T<128&&v===0){let V=E4(T);s={typeSpecific:p,type:w,width:k,height:I,DRI:P,precision:0,qTable:V}}a.push(m)}if(s===void 0)throw new Error("no quantization header present");let{precision:l,qTable:u,type:c,width:f,height:h}=s,d=h4(l,u),g=s.DRI===0?Buffer.alloc(0):v4(s.DRI),y=m4(f,h,c);return{size:{width:f,height:h},data:Buffer.concat([r,d,g,y,n,i,...a])}}}var ZS=class extends Wt{constructor(){let e,t=[],r,n=new GS.Transform({objectMode:!0,transform:function(i,o,s){if(i.type===5){let a=i.sdp.media.find(l=>l.type==="video"&&l.rtpmap!==void 0&&l.rtpmap.encodingName==="JPEG");if(a!==void 0&&a.rtpmap!==void 0){e=Number(a.rtpmap.payloadType);let l=a.framesize;if(l!==void 0){let[u,c]=l;r=MS(u,c)}else r=MS()}s(void 0,i)}else if(i.type===2&&mr(i.data)===e){if(t.push(i.data),xa(i.data)&&t.length>0){let a=r(t);this.push({timestamp:Kn(i.data),ntpTimestamp:i.ntpTimestamp,payloadType:mr(i.data),data:a.data,framesize:a.size,type:10}),t=[]}s()}else s(void 0,i)}});super(n)}};B();var PS=qr(gn()),x4=225e6,_4=class extends Wt{constructor(e=x4){let t=new YS.Transform({objectMode:!0,transform:(r,n,i)=>{this._active&&r.type===8&&r.tracks!==void 0&&(this._capture=!0),this._capture&&r.type===8&&(this._bufferOffset<this._buffer.byteLength-r.data.byteLength?(r.data.copy(this._buffer,this._bufferOffset),this._bufferOffset+=r.data.byteLength):this.stop()),i(void 0,r)}});t.on("finish",()=>{this.stop()}),super(t),this._buffer=Buffer.allocUnsafe(0),this._bufferSize=e,this._bufferOffset=0,this._active=!1,this._capture=!1,this._captureCallback=()=>{}}start(e){this._active||((0,PS.default)("msl:capture:start")(e),this._captureCallback=e,this._buffer=Buffer.allocUnsafe(this._bufferSize),this._bufferOffset=0,this._active=!0)}stop(){if(this._active){(0,PS.default)("msl:capture:stop")(`captured bytes: ${this._bufferOffset}`);try{this._captureCallback(this._buffer.slice(0,this._bufferOffset))}catch(e){console.error(e)}this._buffer=Buffer.allocUnsafe(0),this._bufferOffset=0,this._active=!1,this._capture=!1}}};B();var OS=qr(gn());B();var Kh=Math.pow(2,32),yr=class{constructor(e){this.byteLength=e}},mn=class extends yr{constructor(e=0){super(e),this.copy=(t,r)=>{t.fill(0,r,r+this.byteLength)}}load(){}},zo=class extends yr{constructor(e){super(e.length),this.copy=(t,r)=>{for(let n=0;n<this.byteLength;n+=1)t[r+n]=this.value.charCodeAt(n)},this.load=(t,r)=>{this.value=t.slice(r,r+this.byteLength).toString("ascii")},this.value=e}},ct=class extends yr{constructor(e=0){super(1),this.copy=(t,r)=>{t.writeUInt8(this.value,r)},this.load=(t,r)=>{this.value=t.readUInt8(r)},this.value=e}},im=class extends yr{constructor(e){super(e.length),this.copy=(t,r)=>{for(let n=0;n<this.value.length;++n)t.writeUInt8(this.value[n],r+n)},this.load=(t,r)=>{for(let n=0;n<this.value.length;++n)this.value[n]=t.readUInt8(r+n)},this.value=e}},Ne=class extends yr{constructor(e=0){super(2),this.copy=(t,r)=>{t.writeUInt16BE(this.value,r)},this.load=(t,r)=>{this.value=t.readUInt16BE(r)},this.value=e}},T4=class extends yr{constructor(e=0){super(3),this.copy=(t,r)=>{t.writeUInt8(this.value>>16&255,r),t.writeUInt8(this.value>>8&255,r+1),t.writeUInt8(this.value&255,r+2)},this.load=(t,r)=>{this.value=t.readUInt8(r)<<16+t.readUInt8(r+1)<<8+t.readUInt8(r+2)},this.value=e}},C4=class extends yr{constructor(e){super(e.length*2),this.copy=(t,r)=>{for(let n=0;n<this.value.length;++n)t.writeUInt16BE(this.value[n],r+2*n)},this.load=(t,r)=>{for(let n=0;n<this.value.length;++n)this.value[n]=t.readUInt16BE(r+2*n)},this.value=e}},Z=class extends yr{constructor(e=0){super(4),this.copy=(t,r)=>{t.writeUInt32BE(this.value,r)},this.load=(t,r)=>{this.value=t.readUInt32BE(r)},this.value=e}},Nc=class extends yr{constructor(e){super(e.length*4),this.copy=(t,r)=>{for(let n=0;n<this.value.length;++n)t.writeUInt32BE(this.value[n],r+4*n)},this.load=(t,r)=>{for(let n=0;n<this.value.length;++n)this.value[n]=t.readUInt32BE(r+4*n)},this.value=e}},b4=class extends yr{constructor(e=0){super(8),this.copy=(t,r)=>{let n=this.value/Kh|0,i=this.value-n*Kh;t.writeUInt32BE(n,r),t.writeUInt32BE(i,r+4)},this.load=(t,r)=>{let n=t.readUInt32BE(r),i=t.readUInt32BE(r+4);this.value=n*Kh+i},this.value=e}},AS=function(e=0){return class extends yr{constructor(t){super(0),this.copy=(r,n)=>{let i=0;for(let o of this.value)o.copy(r,n+i),i+=o.byteLength},this.load=()=>{},this.value=t.reduce((r,n)=>r.concat(new Ne(n.length),new im(n)),[new ct(e|t.length)]),this.byteLength=this.value.reduce((r,n)=>r+n.byteLength,0)}}},XS={ftyp:{container:"file",mandatory:!0,quantity:"one",box:"Box",is_container:!0,body:[["major_brand",zo,"isom"],["minor_version",Z,0],["compatible_brands",zo,"mp41"]]},moov:{container:"file",mandatory:!0,quantity:"one",box:"Box",is_container:!0},mdat:{container:"file",mandatory:!1,quantity:"any",box:"Box",is_container:!1,body:[]},mvhd:{container:"moov",mandatory:!0,quantity:"one",box:"FullBox",is_container:!1,body:[["creation_time",Z,0],["modification_time",Z,0],["timescale",Z,1e3],["duration",Z,4294967295],["rate",Z,65536],["volume",Ne,256],["reserved",mn,10],["matrix",Nc,[65536,0,0,0,65536,0,0,0,1073741824]],["pre_defined",mn,24],["next_track_ID",Z,4294967295]]},trak:{container:"moov",mandatory:!0,quantity:"one+",box:"Box",is_container:!0},tkhd:{container:"trak",mandatory:!0,quantity:"one",box:"FullBox",is_container:!1,config:{flags:3},body:[["creation_time",Z,0],["modification_time",Z,0],["track_ID",Z,1],["reserved",mn,4],["duration",Z,0],["reserved2",mn,8],["layer",Ne,0],["alternate_group",Ne,0],["volume",Ne,256],["reserved3",mn,2],["matrix",Nc,[65536,0,0,0,65536,0,0,0,1073741824]],["width",Z,0],["height",Z,0]]},tref:{container:"trak",mandatory:!1,quantity:"one-",box:"Box",is_container:!1},mdia:{container:"trak",mandatory:!1,quantity:"one",box:"Box",is_container:!0},mdhd:{container:"mdia",mandatory:!1,quantity:"one",box:"FullBox",is_container:!1,body:[["creation_time",Z,0],["modification_time",Z,0],["timescale",Z,1e3],["duration",Z,4294967295],["language",Ne,0],["pre_defined",Ne,0]]},hdlr:{container:"mdia",mandatory:!0,quantity:"one",box:"FullBox",is_container:!1,body:[["predefined",Z,0],["handler_type",zo,"vide"],["reserved",mn,12],["name",zo,"VideoHandler\0"]]},minf:{container:"mdia",mandatory:!0,quantity:"one",box:"Box",is_container:!0},vmhd:{container:"minf",mandatory:!0,quantity:"one",box:"FullBox",is_container:!1,config:{flags:1},body:[["graphicsmode",Ne,0],["opcolor",C4,[0,0,0]]]},smhd:{container:"minf",mandatory:!0,quantity:"one",box:"FullBox",is_container:!1,body:[["balance",Ne,0],["reserved",Ne]]},dinf:{container:"minf",mandatory:!0,quantity:"one",box:"Box",is_container:!0},dref:{container:"dinf",mandatory:!0,quantity:"one",box:"FullBox",is_container:!0,body:[["entry_count",Z,0]]},"url ":{container:"dref",mandatory:!0,quantity:"one+",box:"FullBox",is_container:!1,config:{flags:1},body:[]},stbl:{container:"minf",mandatory:!0,quantity:"one",box:"Box",is_container:!0},stts:{container:"stbl",mandatory:!0,quantity:"one",box:"FullBox",is_container:!1,body:[["entry_count",Z,0]]},stsd:{container:"stbl",mandatory:!0,quantity:"one",box:"FullBox",is_container:!0,body:[["entry_count",Z,1]]},avc1:{container:"stsd",mandatory:!1,quantity:"one",box:"Box",is_container:!0,body:[["reserved",mn,6],["data_reference_index",Ne,1],["pre_defined",Ne,0],["reserved2",mn,2],["pre_defined2",Nc,[0,0,0]],["width",Ne,1920],["height",Ne,1080],["horizresolution",Z,4718592],["vertresolution",Z,4718592],["reserved3",Z,0],["frame_count",Ne,1],["compressorname",im,Buffer.alloc(32)],["depth",Ne,24],["pre_defined3",Ne,65535]]},avcC:{container:"avc1",mandatory:!1,quantity:"one",box:"Box",is_container:!1,body:[["configurationVersion",ct,1],["AVCProfileIndication",ct,77],["profile_compatibility",ct,0],["AVCLevelIndication",ct,41],["lengthSizeMinusOne",ct,255],["sequenceParameterSets",AS(224),[]],["pictureParameterSets",AS(),[]]]},mp4a:{container:"stsd",mandatory:!1,quantity:"one",box:"Box",is_container:!0,body:[["reserved",mn,6],["data_reference_index",Ne,1],["reserved2",Nc,[0,0]],["channelcount",Ne,2],["samplesize",Ne,16],["pre_defined",Ne,0],["reserved3",Ne,0],["samplerate",Z,0]]},esds:{container:"mp4a",mandatory:!1,quantity:"one",box:"FullBox",is_container:!1,body:[["ES_DescrTag",ct,3],["ES_DescrLength",ct,25],["ES_ID",Ne,1],["flagsAndStreamPriority",ct,0],["DecoderConfigDescrTag",ct,4],["DecoderConfigDescrLength",ct,17],["objectProfileIndication",ct,64],["streamTypeUpstreamReserved",ct,21],["bufferSizeDB",im,[0,0,0]],["maxBitRate",Z,0],["avgBitRate",Z,0],["DecSpecificInfoShortTag",ct,5],["DecSpecificInfoShortLength",ct,2],["audioConfigBytes",Ne,0],["SLConfigDescrTag",ct,6],["SLConfigDescrLength",ct,1],["SLConfigDescrPredefined",ct,2]]},stsz:{container:"stbl",mandatory:!0,quantity:"one",box:"FullBox",is_container:!1,body:[["sample_size",Z,0],["sample_count",Z,0]]},stsc:{container:"stbl",mandatory:!0,quantity:"one",box:"FullBox",is_container:!1,body:[["entry_count",Z,0]]},stco:{container:"stbl",mandatory:!0,quantity:"one",box:"FullBox",is_container:!1,body:[["entry_count",Z,0]]},stss:{container:"stbl",mandatory:!1,quantity:"one-",box:"FullBox",is_container:!1,body:[["entry_count",Z,0]]},edts:{container:"trak",mandatory:!1,quantity:"one-",box:"Box",is_container:!0},elst:{container:"edts",mandatory:!1,quantity:"one-",box:"FullBox",is_container:!1,body:[["entry_count",Z,1],["segment_duration",Z,0],["media_time",Z,4294967295],["media_rate_integer",Ne,1],["media_rate_fraction",Ne,0]]},mvex:{container:"moov",mandatory:!1,quantity:"one-",box:"Box",is_container:!0},mehd:{container:"mvex",mandatory:!1,quantity:"one-",box:"FullBox",is_container:!1,body:[["fragment_duration",Z,0]]},trex:{container:"mvex",mandatory:!0,quantity:"one+",box:"FullBox",is_container:!1,body:[["track_ID",Z,1],["default_sample_description_index",Z,1],["default_sample_duration",Z,0],["default_sample_size",Z,0],["default_sample_flags",Z,0]]},moof:{container:"file",mandatory:!1,quantity:"zero+",box:"Box",is_container:!1},mfhd:{container:"moof",mandatory:!0,quantity:"one",box:"FullBox",is_container:!1,body:[["sequence_number",Z,0]]},traf:{container:"moof",mandatory:!1,quantity:"zero+",box:"Box",is_container:!0},tfhd:{container:"traf",mandatory:!0,quantity:"one",box:"FullBox",is_container:!1,config:{flags:32},body:[["track_ID",Z,1],["default_sample_flags",Z,0]]},tfdt:{container:"traf",mandatory:!1,quantity:"one-",box:"FullBox",is_container:!1,config:{version:1},body:[["baseMediaDecodeTime",b4,0]]},trun:{container:"traf",mandatory:!1,quantity:"zero+",box:"FullBox",is_container:!1,config:{flags:773},body:[["sample_count",Z,1],["data_offset",Z,0],["first_sample_flags",Z,0],["sample_duration",Z,0],["sample_size",Z,0]]},"....":{box:"Box",is_container:!1,body:[]},file:{box:"None",is_container:!0,mandatory:!0,quantity:"one"}},k4=class{static None(){return[]}static Box(e){return[["size",Z,0],["type",zo,e]]}static FullBox(e){return[].concat(this.Box(e),[["version",ct,0],["flags",T4,0]])}},Ue=class extends yr{constructor(e,t){super(0),this.type=e;let r=XS[this.type];if(r===void 0)throw new Error(`unknown box type: ${e}`);this.config=Object.assign({},r.config,t);let n=k4[r.box](this.type),i=r.body||[];this.struct=new Map;let o=0;for(let[s,a,l]of[].concat(n,i)){if(this.has(s))throw new Error("Trying to add existing key");let u=l;this.config[s]&&(u=this.config[s]);let c=new a(u);this.struct.set(s,{offset:o,element:c}),o+=c.byteLength}this.byteLength=o}element(e){let t=this.struct.get(e);if(t===void 0)throw new Error("invalid key");return t.element}set(e,t){this.element(e).value=t}get(e){return this.element(e).value}offset(e){let t=this.struct.get(e);if(t===void 0)throw new Error("invalid key");return t.offset}has(e){return this.struct.has(e)}add(e,t){if(this.has(e))throw new Error("Trying to add existing key");return this.struct.set(e,{offset:this.byteLength,element:t}),this.byteLength+=t.byteLength,this}buffer(){let e=Buffer.allocUnsafe(this.byteLength);return this.copy(e),e}copy(e,t=0){this.set("size",this.byteLength);for(let r of this.struct.values())r.element.copy(e,t+r.offset)}load(e,t=0){for(let r of this.struct.values())r.element.load!==void 0&&r.element.load(e,t+r.offset)}format(e=0){let t=[" ".repeat(e)+`[${this.type}] (${this.byteLength})`];for(let[r,n]of this.struct){let i=n.element;i.format!==void 0?t.push(i.format(e+2)):t.push(" ".repeat(e+2)+`${r} = ${i.value} (${i.byteLength})`)}return t.join(`
`)}print(e){console.warn(this.format(e))}},$t=class extends Ue{constructor(e,t,...r){super(e,t),this.boxSize=0,this.append(...r)}append(...e){for(let t of e)this.add(`box_${this.boxSize++}`,t);return this}parse(e){let t=[];for(;e.byteLength>0;){let r=new zo("....");r.load(e,4);let n=r.value,i=XS[n],o;if(i!==void 0){if(i.is_container){o=new $t(n),o.load(e);let s=o.parse(e.slice(o.byteLength,o.get("size")));t.push(...s)}else if(o=new Ue(n),o.load(e),n==="avcC"){let s=o.element("AVCProfileIndication").value.toString(16).padStart(2,0),a=o.element("profile_compatibility").value.toString(16).padStart(2,0),l=o.element("AVCLevelIndication").value.toString(16).padStart(2,0);t.push({type:"video",mime:`avc1.${s}${a}${l}`})}else if(n==="esds"){let s=o.element("audioConfigBytes").value>>>11&31;t.push({type:"audio",mime:`mp4a.40.${s}`})}}else o=new Ue("...."),o.load(e),o.type=o.get("type");this.append(o),e=e.slice(o.get("size"))}return t}};B();B();var I4={1:"AAC Main",2:"AAC LC"},M4={0:"96 kHz",1:"88.2 kHz",2:"64 kHz",3:"48 kHz",4:"44.1 kHz",5:"32 kHz",6:"24 kHz",7:"22.05 kHz",8:"16 kHz",9:"12 kHz",10:"11.025 kHz",11:"8 kHz",12:"7.35 kHz"},P4={1:"Mono",2:"Stereo"},O4=e=>{let t=e>>>11&31,r=e>>>7&15,n=e>>>3&15,i=I4[t]||`AAC (${t})`,o=M4[r]||"unknown",s=P4[n]||n.toString();return{coding:i,samplingRate:o,channels:s}},A4=(e,t,r)=>{let n=Number(e.fmtp.parameters.bitrate)||32e4,i=parseInt(e.fmtp.parameters.config,16),o=i>>>11&31;return{tkhd:{track_ID:r,creation_time:t,modification_time:t,width:0,height:0,volume:1},mdhd:{timescale:Number(e.rtpmap.clockrate),creation_time:t,modification_time:t,duration:0},hdlr:{handler_type:"soun",name:"SoundHandler\0"},mediaHeaderBox:new Ue("smhd"),sampleEntryBox:new $t("mp4a",{samplerate:e.rtpmap.clockrate<<16>>>0},new Ue("esds",{audioConfigBytes:i,maxBitRate:n,avgBitRate:n})),defaultFrameDuration:1024,mime:`mp4a.40.${o}`,codec:O4(i)}};B();B();function N4(e){return e>64&&e<91?e-65:e>96&&e<123?e-71:e>47&&e<58?e+4:e===43?62:e===47?63:0}function F4(e,t){let r=e.replace(/[^A-Za-z0-9+/]/g,""),n=r.length,i=t?Math.ceil((n*3+1>>2)/t)*t:n*3+1>>2,o=new Uint8Array(i),s,a,l=0,u=0;for(let c=0;c<n;c++)if(a=c&3,l|=N4(r.charCodeAt(c))<<18-6*a,a===3||n-c===1){for(s=0;s<3&&u<i;s++,u++)o[u]=l>>>(16>>>s&24)&255;l=0}return o}B();B();var R4=class{constructor(e){this._buffer=e,this._dataView=new DataView(this._buffer),this._offset=0,this._bitpos=0,this._byte=0}readUint8(e){return this._dataView.getUint8(e)}readUint16(e){return this._dataView.getUint16(e)}readUint32(e){return this._dataView.getUint32(e)}readNext(){let e=this.readUint8(this._offset);return this._offset+=1,e}readBits(e){if(e>32||e===0)throw new Error("length has to be between 0 - 31 bits");let t=0;for(let r=1;r<=e;++r)this._bitpos===0&&(this._byte=this.readNext()),t=t<<1|this._byte>>8-++this._bitpos&1,this._bitpos%=8;return t}readUnsignedExpGolomb(){let e=0;for(;this.readBits(1)!==1;)e++;if(e===0)return 0;if(e>=31)throw new Error("read unsigned exponential Golomb: internal error");let t=this.readBits(e);return t|=1<<e,t-1}readSignedExpGolomb(){let e=this.readUnsignedExpGolomb();return e&1?e=e+1>>1:e=-(e>>1),e}size(){return this._buffer.byteLength}getUint8Array(){return new Uint8Array(this._buffer)}getArrayBuffer(){return this._buffer}},L4=class{constructor(e){this.reader=new R4(e)}parse(){this.reader.readNext();let e=this.reader.readNext();this.reader.readNext();let t=this.reader.readNext();if(this.reader.readUnsignedExpGolomb(),[100,110,122,244,44,83,86,118].includes(e)){let d=this.reader.readUnsignedExpGolomb();if(d===3&&this.reader.readBits(1),this.reader.readUnsignedExpGolomb(),this.reader.readUnsignedExpGolomb(),this.reader.readBits(1),this.reader.readBits(1))for(let g=0;g<(d!==3?8:12);g++)this.reader.readBits(1)}this.reader.readUnsignedExpGolomb();let r=this.reader.readUnsignedExpGolomb();if(r===0)this.reader.readUnsignedExpGolomb();else if(r===1){let d=0;this.reader.readBits(1),this.reader.readSignedExpGolomb(),this.reader.readSignedExpGolomb(),d=this.reader.readUnsignedExpGolomb();for(let g=0;g<d;g++)this.reader.readSignedExpGolomb()}this.reader.readUnsignedExpGolomb(),this.reader.readBits(1);let n=this.reader.readUnsignedExpGolomb(),i=this.reader.readUnsignedExpGolomb(),o=this.reader.readBits(1);this.reader.readBits(1);let s=this.reader.readBits(1),a=s?this.reader.readUnsignedExpGolomb():0,l=s?this.reader.readUnsignedExpGolomb():0,u=s?this.reader.readUnsignedExpGolomb():0,c=s?this.reader.readUnsignedExpGolomb():0,f=(n+1)*16-a*2-l*2,h=(2-o)*(i+1)*16-u*2-c*2;return{profile:e,level:t/10,width:f,height:h}}},D4={66:"Baseline",77:"Main",100:"High"},B4=e=>{let t=parseInt(e.substr(0,2),16),r=parseInt(e.substr(4,2),16),n=D4[t]||t.toString(),i=(r/10).toFixed(1);return{coding:"H.264",profile:n,level:i}},U4=(e,t,r)=>{let n=e.fmtp.parameters["profile-level-id"],i=e.fmtp.parameters["sprop-parameter-sets"].split(",").map(F4),o=i.slice(0,1),s=i.slice(1),a=new L4(o[0].buffer).parse(),l=3600;return{mediaHeaderBox:new Ue("vmhd"),sampleEntryBox:new $t("avc1",{width:a.width,height:a.height},new Ue("avcC",{AVCProfileIndication:o[0][1],profile_compatibility:o[0][2],AVCLevelIndication:o[0][3],sequenceParameterSets:o,pictureParameterSets:s})),tkhd:{track_ID:r,creation_time:t,modification_time:t,width:a.width<<16,height:a.height<<16,volume:0},hdlr:{},mdhd:{timescale:e.rtpmap.clockrate,creation_time:t,modification_time:t,duration:0},defaultFrameDuration:e.framerate!==void 0&&e.framerate>0&&Number(e.rtpmap.clockrate)/Number(e.framerate)||l,mime:`avc1.${n}`,codec:B4(n)}},NS={"MPEG4-GENERIC":A4,H264:U4},H4=()=>({lastTimestamp:0,baseMediaDecodeTime:0,defaultFrameDuration:0,clockrate:0,bitrate:0,framerate:0,cumulativeByteLength:0,cumulativeDuration:0,cumulativeFrames:0}),z4=(e,{byteLength:t,duration:r})=>{if(e.cumulativeByteLength+=t,e.cumulativeDuration+=r,e.cumulativeFrames++,e.cumulativeDuration>=e.clockrate){let n=8*e.cumulativeByteLength,i=e.cumulativeFrames,o=e.cumulativeDuration/e.clockrate;e.bitrate=n/o,e.framerate=i/o,e.cumulativeByteLength=0,e.cumulativeDuration=0,e.cumulativeFrames=0}},j4=class{constructor(){this.trackIdMap={},this.sequenceNumber=0,this.ntpPresentationTime=0,this.trackData=[]}trak(e){let t=new $t("trak"),r=new $t("mdia"),n=new $t("minf"),i=new $t("dinf"),o=new $t("dref"),s=new $t("stbl");return o.set("entry_count",1),t.append(new Ue("tkhd",e.tkhd),r.append(new Ue("mdhd",e.mdhd),new Ue("hdlr",e.hdlr),n.append(e.mediaHeaderBox,i.append(o.append(new Ue("url "))),s.append(new $t("stsd",void 0,e.sampleEntryBox),new Ue("stts"),new Ue("stsc"),new Ue("stco"),new Ue("stsz"),new Ue("stss"))))),t}moov(e,t){let r=new $t("moov");r.append(new Ue("mvhd",{creation_time:t,modification_time:t,duration:0}));let n=new $t("mvex");this.trackIdMap={},this.sequenceNumber=0,this.ntpPresentationTime=0;let i=0;return this.trackData=[],e.media.forEach(o=>{if(o.rtpmap===void 0)return;let s=o.rtpmap.payloadType,a=o.rtpmap.encodingName;if(NS[a]!==void 0){this.trackIdMap[s]=++i,o.type.toLowerCase()==="video"&&(this.videoTrackId=i);let l=NS[a](o,t,i);o.mime=l.mime,o.codec=l.codec;let u=H4();u.clockrate=o.rtpmap.clockrate,u.defaultFrameDuration=l.defaultFrameDuration,this.trackData.push(u);let c=this.trak(l);r.append(c),n.append(new Ue("trex",{track_ID:i}))}}),r.append(n),r}moof(e){let{trackId:t,timestamp:r,byteLength:n}=e,i=t-1,o=this.trackData[i],s=o.lastTimestamp!==0?r-o.lastTimestamp|0:o.defaultFrameDuration;o.lastTimestamp=r;let a=new $t("moof"),l=new $t("traf"),u=new Ue("trun",{sample_duration:s,sample_size:n,first_sample_flags:64});return a.append(new Ue("mfhd",{sequence_number:this.sequenceNumber++}),l.append(new Ue("tfhd",{track_ID:t}),new Ue("tfdt",{baseMediaDecodeTime:o.baseMediaDecodeTime}),u)),o.baseMediaDecodeTime+=s,u.set("data_offset",a.byteLength+8),z4(o,{byteLength:n,duration:s}),a}mdat(e){let t=new Ue("mdat");return t.add("data",e),t}setPresentationTime(e,t){if(!this.ntpPresentationTime&&t&&e===this.videoTrackId){let r=e-1,n=this.trackData[r];this.ntpPresentationTime=t-1e3*(n.baseMediaDecodeTime/n.clockrate)}}},JS=class extends Wt{constructor(){let e=new j4,t=n=>{this.onSync&&this.onSync(n)},r=new QS.Transform({objectMode:!0,transform:function(n,i,o){if(n.type===5){let s=Math.floor(new Date().getTime()/1e3+2082852e3),a=new Ue("ftyp"),l=e.moov(n.sdp,s),u=Buffer.allocUnsafe(a.byteLength+l.byteLength);a.copy(u,0),l.copy(u,a.byteLength),(0,OS.default)("msl:mp4:isom")(`ftyp: ${a.format()}`),(0,OS.default)("msl:mp4:isom")(`moov: ${l.format()}`);let c=n.sdp.media.map(f=>({type:f.type,encoding:f.rtpmap&&f.rtpmap.encodingName,mime:f.mime,codec:f.codec}));this.push({type:8,data:u,tracks:c,ftyp:a,moov:l})}else if(n.type===6||n.type===7){let{payloadType:s,timestamp:a,ntpTimestamp:l}=n,u=e.trackIdMap[s];if(u){e.ntpPresentationTime||(e.setPresentationTime(u,l),e.ntpPresentationTime&&t(e.ntpPresentationTime));let c,f=n.type===7?n.nalType===5:void 0;e.ntpPresentationTime&&f&&n.ntpTimestamp!==void 0&&(c=(n.ntpTimestamp-e.ntpPresentationTime)/1e3);let h=n.data.byteLength,d=e.moof({trackId:u,timestamp:a,byteLength:h}),g=e.mdat(n.data),y=Buffer.allocUnsafe(d.byteLength+g.byteLength);d.copy(y,0),g.copy(y,d.byteLength),this.push({type:8,data:y,moof:d,mdat:g,ntpTimestamp:l,checkpointTime:c})}}else this.push(n);o()}});super(r),this.boxBuilder=e}get bitrate(){return this.boxBuilder.trackData&&this.boxBuilder.trackData.map(e=>e.bitrate)}get framerate(){return this.boxBuilder.trackData&&this.boxBuilder.trackData.map(e=>e.framerate)}get ntpPresentationTime(){return this.boxBuilder.ntpPresentationTime}};B();var V4=qr(gn());B();var KS=(e=>(e[e.SR=200]="SR",e[e.RR=201]="RR",e[e.SDES=202]="SDES",e[e.BYE=203]="BYE",e[e.APP=204]="APP",e))(KS||{}),$4=e=>({version:e[0]>>>6,padding:!!(e[0]&Uc[2]),count:e[0]&31,packetType:e.readUInt8(1),length:e.readUInt16BE(2)}),eE=e=>{let t=$4(e);switch(t.packetType){case 200:return q4(e,t);case 201:return G4(e,t);case 202:return Y4(e,t);case 203:return Q4(e,t);case 204:return J4(e,t);default:return t}},tE=(e,t)=>({type:3,data:t,channel:e,rtcp:eE(t)}),W4={packetType:200},rE=(e,t,r)=>{let n=[];for(let i=0;i<e;i++){let o=r+i*24;n.push({syncSource:t.readUInt32BE(o+0),fractionLost:t.readUInt8(o+4),cumulativeNumberOfPacketsLost:t.readUIntBE(o+5,3),extendedHighestSequenceNumberReceived:t.readUInt32BE(o+8),interarrivalJitter:t.readUInt32BE(o+12),lastSRTimestamp:t.readUInt32BE(o+16),delaySinceLastSR:t.readUInt32BE(o+20)})}return n},q4=(e,t)=>Vo(ei({},t),{syncSource:e.readUInt32BE(4),ntpMost:e.readUInt32BE(8),ntpLeast:e.readUInt32BE(12),rtpTimestamp:e.readUInt32BE(16),sendersPacketCount:e.readUInt32BE(20),sendersOctetCount:e.readUInt32BE(24),reports:rE(t.count,e,28)}),nE=e=>e.packetType===200,G4=(e,t)=>Vo(ei({},t),{syncSource:e.readUInt32BE(4),reports:rE(t.count,e,8)}),Z4=e=>e.packetType===201,iE=(e=>(e[e.CNAME=1]="CNAME",e[e.NAME=2]="NAME",e[e.EMAIL=3]="EMAIL",e[e.PHONE=4]="PHONE",e[e.LOC=5]="LOC",e[e.TOOL=6]="TOOL",e[e.NOTE=7]="NOTE",e[e.PRIV=8]="PRIV",e))(iE||{}),Y4=(e,t)=>{let r=[],n=4;for(let i=0;i<t.count;i++){let o={source:e.readUInt32BE(n),items:[]};for(n+=4;;){let s=e.readUInt8(n++);if(s===0){n%4!==0&&(n+=4-n%4);break}let a=e.readUInt8(n++);if(s===8){let l=e.readUInt8(n),u=e.toString("utf8",n+1,n+1+l),c=e.toString("utf8",n+1+l,n+a);o.items.push([8,u,c])}else{let l=e.toString("utf8",n,n+a);o.items.push([s,l])}n+=a}r.push(o)}return Vo(ei({},t),{syncSource:e.readUInt32BE(4),sourceDescriptions:r})},X4=e=>e.packetType===202,Q4=(e,t)=>{let r=[];for(let i=0;i<t.count;i++)r.push(e.readUInt32BE(4+4*i));let n;if(t.length>t.count){let i=4+4*t.count,o=e.readUInt8(i);n=e.toString("utf-8",i+1,i+1+o)}return Vo(ei({},t),{sources:r,reason:n})},Go=e=>e.packetType===203,J4=(e,t)=>Vo(ei({},t),{subtype:t.count,source:e.readUInt32BE(4),name:e.toString("ascii",8,12),data:e.slice(12)}),K4=e=>e.packetType===204,eI=100,FS=(0,V4.default)("msl:mse"),lm=class extends Ea{constructor(e){if(e===void 0)throw new Error("video element argument missing");let t,r,n=new jc.Writable({objectMode:!0,write:(o,s,a)=>{var l,u;if(o.type===8)if(this._done=a,o.tracks!==void 0||o.mime!==void 0){let c=(l=o.tracks)!=null?l:[],f=c.map(y=>y.mime).filter(y=>y),h=f.length!==0?f.join(", "):"avc1.640029, mp4a.40.2",d=(u=o.mime)!=null?u:`video/mp4; codecs="${h}"`;if(!MediaSource.isTypeSupported(d)){n.emit("error",`unsupported media type: ${d}`);return}this._lastCheckpointTime=0,t=new MediaSource,e.src=window.URL.createObjectURL(t);let g=()=>{if(t===void 0){n.emit("error","no MediaSource instance");return}window.URL.revokeObjectURL(e.src),t.removeEventListener("sourceopen",g),this.onSourceOpen&&this.onSourceOpen(t,c),r=this.addSourceBuffer(e,t,d),r.onerror=y=>{console.error("error on SourceBuffer: ",y),n.emit("error")};try{r.appendBuffer(o.data)}catch(y){FS("failed to append to SourceBuffer: ",y,o)}};t.addEventListener("sourceopen",g)}else{this._lastCheckpointTime=o.checkpointTime!==void 0?o.checkpointTime:this._lastCheckpointTime;try{r==null||r.appendBuffer(o.data)}catch(c){FS("failed to append to SourceBuffer: ",c,o)}}else o.type===3&&Go(o.rtcp)&&(t==null?void 0:t.readyState)==="open"&&t.endOfStream(),a()}});n.on("finish",()=>{console.warn("incoming stream finished: end stream"),t&&t.readyState==="open"&&t.endOfStream()}),n.on("error",o=>{console.error("error on incoming stream: ",o),r&&r.updating?r.addEventListener("updateend",()=>{(t==null?void 0:t.readyState)==="open"&&t.endOfStream()}):(t==null?void 0:t.readyState)==="open"&&t.endOfStream()});let i=new jc.Readable({objectMode:!0,read:function(){}});i.on("error",()=>{console.warn("outgoing stream broke somewhere")}),super(n,i),this._videoEl=e,this._lastCheckpointTime=0}addSourceBuffer(e,t,r){let n=t.addSourceBuffer(r),i=0,o=()=>{if(++i,i>eI&&n.buffered.length){i=0;let s=n.buffered.length-1,a=n.buffered.start(s),l=Math.min(e.currentTime,this._lastCheckpointTime)-10;try{if(l>a){n.remove(a,l);return}}catch(u){console.warn(u)}}this._done&&this._done()};return n.addEventListener("updateend",o),n}get currentTime(){return this._videoEl.currentTime}play(){return $o(this,null,function*(){return yield this._videoEl.play()})}pause(){return this._videoEl.pause()}};B();var um=class extends Wt{constructor(){let e,t=[],r=new oE.Transform({objectMode:!0,transform:function(n,i,o){if(n.type===5){let s;for(let a of n.sdp.media)a.type==="application"&&a.rtpmap&&a.rtpmap.encodingName==="VND.ONVIF.METADATA"&&(s=a);s&&s.rtpmap&&(e=Number(s.rtpmap.payloadType)),o(void 0,n)}else if(n.type===2&&mr(n.data)===e){if(t.push(qo(n.data)),xa(n.data)&&t.length>0){let s={timestamp:Kn(n.data),ntpTimestamp:n.ntpTimestamp,payloadType:mr(n.data),data:Buffer.concat(t),type:9};o(void 0,s),t=[];return}o()}else o(void 0,n)}});super(r)}};B();B();var tI=qr(gn()),rI="RTSP/1.0",nI=e=>{if(!e.method||!e.uri)throw new Error("message needs to contain a method and a uri");let t=e.protocol||rI,r=e.headers||{},n=[`${e.method} ${e.uri} ${t}`,Object.entries(r).map(([i,o])=>i+": "+o).join(`\r
`),`\r
`].join(`\r
`);return(0,tI.default)("msl:rtsp:outgoing")(n),Buffer.from(n)};B();B();var iI=(e,t,r=0)=>{let n=`
${t}`;r=e.indexOf(n,r);let i=0,o=[];for(;r>=0;)i=e.indexOf(`
`,r+n.length),o.push(e.toString("ascii",r+n.length,i).trim()),r=e.indexOf(n,i);return o},oI=e=>e.match(/^m=/),Fc=(e,t)=>{let r=t.indexOf(e);return r<0?[t.slice(0)]:[t.slice(0,r),t.slice(r+1)]},RS={fmtp:e=>{let[t,r]=Fc(" ",e);switch(t){default:let n=r.trim().split(";"),i={};return n.forEach(o=>{let[s,a]=Fc("=",o),l=s.trim().toLowerCase();l!==""&&(i[l]=a.trim())}),{format:t,parameters:i}}},framerate:Number,rtpmap:e=>{let[t,r]=Fc(" ",e),[n,i,o]=r.toUpperCase().split("/");return o===void 0?{payloadType:Number(t),encodingName:n,clockrate:Number(i)}:{payloadType:Number(t),encodingName:n,clockrate:Number(i),encodingParameters:o}},transform:e=>e.split(";").map(t=>t.split(",").map(Number)),"x-sensor-transform":e=>e.split(";").map(t=>t.split(",").map(Number)),framesize:e=>e.split(" ")[1].split("-").map(Number)},sI=e=>{let[t,r]=Fc(":",e);return r===void 0?{[t]:!0}:RS[t]!==void 0?{[t]:RS[t](r)}:{[t]:r}},aI=e=>{let t=e.slice(0,1),r=e.slice(2);switch(t){case"v":return{version:r};case"o":let[n,i,o,s,a,l]=r.split(" ");return{origin:{addrType:a,netType:s,sessionId:i,sessionVersion:o,unicastAddress:l,username:n}};case"s":return{sessionName:r};case"i":return{sessionInformation:r};case"u":return{uri:r};case"e":return{email:r};case"p":return{phone:r};case"c":let[u,c,f]=r.split(" ");return{connectionData:{addrType:c,connectionAddress:f,netType:u}};case"b":let[h,d]=r.split(":");return{bwtype:h,bandwidth:d};case"t":let[g,y]=r.split(" ").map(Number);return{time:{startTime:g,stopTime:y}};case"r":let[x,m,...p]=r.split(" ").map(Number);return{repeatTimes:{repeatInterval:x,activeDuration:m,offsets:p}};case"z":return;case"k":return;case"a":return sI(r);case"m":let[v,w,T,k]=r.split(" ");return{type:v,port:Number(w),protocol:T,fmt:Number(k)};default:}},lI=e=>{let t=e.indexOf(`
m=`);return iI(e,"a=control:",t)},sE=e=>{let t=e.toString("ascii").split(`
`).map(o=>o.trim()),r={session:{},media:[]},n=0,i=r.session;for(let o of t)oI(o)&&(r.media[n]={},i=r.media[n],++n),i=Object.assign(i,aI(o));return r},aE=e=>({type:5,data:e,sdp:sE(e)});B();var vn=(e,t)=>{let r=`
${t.toLowerCase()}: `,n=e.toString().toLowerCase().indexOf(r);if(n>=0){let i=e.indexOf(`
`,n+r.length);return e.toString("ascii",n+r.length,i).trim()}return null},lE=e=>{let t=vn(e,"CSeq");return t!==null?Number(t):null},uE=e=>{let t=vn(e,"Session");return t?t.split(";")[0]:null},cE=e=>{let t=vn(e,"Session");if(t===null)return null;let r=60,n="timeout=",i=t.toLowerCase().indexOf(n);if(i!==-1){let o=t.substring(i+n.length);o=o.split(";")[0];let s=parseInt(o);return isNaN(s)?r:s}return r},cm=e=>Number(e.toString("ascii",9,12)),fE=e=>vn(e,"Content-Base"),dE=e=>vn(e,"Content-Location"),pE=e=>{let t=vn(e,"Connection");return t!==null&&t.toLowerCase()==="close"},hE=e=>{let t=vn(e,"Range");if(t!==null)return t.split("=")[1].split("-")},mE=e=>{let t=[`
`,"\r\r",`\r
\r
`].map(r=>{let n=e.indexOf(r);return n!==-1?n+r.length:n}).filter(r=>r!==-1);return t.length>0?t.reduce((r,n)=>Math.min(r,n)):-1},yE=4,LS=36,uI=e=>{let t=Buffer.alloc(yE),r=0,n=0;for(;n<t.length;){let l=e[r++],u=Math.min(l.length,t.length-n);l.copy(t,n,0,u),n+=u}let i=t[1],o=t.length,s=t.readUInt16BE(2),a=o+s;return{channel:i,begin:o,end:a}},cI=class{constructor(){this._chunks=[],this._length=0,this._state=0,this._init()}_init(){this._chunks=[],this._length=0,this._state=0}_push(e){this._chunks.push(e),this._length+=e.length}_parseRtsp(){let e=[],t=Buffer.concat(this._chunks),r=mE(t);if(r===-1)return e;let n=r,i=vn(t,"Content-Length");if(i&&parseInt(i)>t.length-n)return e;if(this._init(),n===t.length||t[n]===LS){let o=t.slice(0,n);e.push({type:4,data:o});let s=t.slice(n);this._push(s)}else{let o=t,s=t.slice(n);e.push({type:4,data:o}),e.push(aE(s))}return e}_parseInterleaved(){let e=[];if(this._length<yE||(this._packet||(this._packet=uI(this._chunks)),this._length<this._packet.end))return e;let t=Buffer.concat(this._chunks),r=t.slice(this._packet.begin,this._packet.end),n=t.slice(this._packet.end),i=this._packet.channel;if(delete this._packet,this._init(),this._push(n),i%2===0)e.push({type:2,data:r,channel:i});else{let o=r;do{let s=o.readUInt16BE(2)*4+4;e.push(tE(i,o.slice(0,s))),o=o.slice(s)}while(o.length>0)}return e}_setState(){for(;this._chunks.length>0&&this._chunks[0].length===0;)this._chunks.shift();let e=this._chunks[0];if(this._chunks.length===0)this._state=0;else if(e[0]===LS)this._state=1;else if(e.toString("ascii",0,4)==="RTSP")this._state=2;else throw new Error(`Unknown chunk of length ${e.length}`)}parse(e){this._push(e),this._state===0&&this._setState();let t=[],r=!1;for(;!r;){let n=[];switch(this._state){case 0:break;case 1:n=this._parseInterleaved();break;case 2:n=this._parseRtsp();break;default:throw new Error("internal error: unknown state")}n.length>0?t=t.concat(n):r=!0,this._setState()}return t}},gE=class extends Wt{constructor(){let e=new cI,t=new om.Transform({objectMode:!0,transform:function(n,i,o){if(n.type===1)try{e.parse(n.data).forEach(s=>t.push(s)),o()}catch(s){o(s)}else o(void 0,n)}}),r=new om.Transform({objectMode:!0,transform:function(n,i,o){if(n.type===4){let s=nI(n);o(void 0,{type:1,data:s})}else o(void 0,n)}});super(t,r)}};B();var em=qr(gn());B();var fm=(e,t)=>{let r;if(t!==void 0){if(typeof t!="object")throw new Error("merge expects override to be an object!");r=Object.keys(t).reduce((n,i)=>(t[i]!==void 0&&(n[i]=t[i]),n),{})}return Object.assign({},e,r)};B();var fI=Date.UTC(1900,0,1);function wE(e,t){let r=(e+t/4294967296)*1e3;return fI+r}function dI(e){return/^[^:]+:\/\//.test(e)}var SE=(e=>(e.OPTIONS="OPTIONS",e.DESCRIBE="DESCRIBE",e.SETUP="SETUP",e.PLAY="PLAY",e.PAUSE="PAUSE",e.TEARDOWN="TEARDOWN",e))(SE||{}),pI=5,hI=(e=typeof window=="undefined"?"":window.location.hostname,t=[])=>({uri:t.length>0?`rtsp://${e}/axis-media/media.amp?${t.join("&")}`:`rtsp://${e}/axis-media/media.amp`}),EE=class extends Error{constructor(e,t){super(e),this.name="RTSPResponseError",this.code=t}},xE=class extends Wt{constructor(e={}){let{uri:t,headers:r,defaultHeaders:n}=fm(hI(e.hostname,e.parameters),e),i=new vE.Transform({objectMode:!0,transform:(o,s,a)=>{o.type===4?(this._onRtsp(o),a()):o.type===3?(this._onRtcp(o),this.onRtcp&&this.onRtcp(o.rtcp),a(void 0,o)):o.type===2?(this._onRtp(o),a(void 0,o)):(o.type===5&&(this._onSdp(o),this.onSdp&&this.onSdp(o.sdp)),a(void 0,o))}});i.on("end",()=>{this._outgoingClosed=!0}),super(i),this._outgoingClosed=!1,this._reset(),this.update(t,r,n),this._sessionControlURL=this._controlURL()}update(e,t={},r={}){if(e===void 0)throw new Error("You must supply an uri when creating a RtspSessionComponent");this.uri=e,this.defaultHeaders=r,this.headers=Object.assign({OPTIONS:{},PLAY:{},SETUP:{Blocksize:"64000"},DESCRIBE:{Accept:"application/sdp"},PAUSE:{}},t)}_reset(){this._sequence=1,this.retry=()=>console.error("No request sent, can't retry"),this._callStack=[],this._callHistory=[],this._state="idle",this._waiting=!1,this._contentBase=null,this._sessionId=null,this._renewSessionInterval!==null&&clearInterval(this._renewSessionInterval),this._renewSessionInterval=null,this.t0=void 0,this.n0=void 0,this.clockrates=void 0}_controlURL(e){var t,r;if(e!==void 0&&dI(e))return e;let n=(r=(t=this._contentBase)!=null?t:this._contentLocation)!=null?r:this.uri;if(n==null)throw new Error("relative or missing control attribute but no base URL available");return e===void 0||e==="*"?n:new URL(e,n).href}_onRtsp(e){this._waiting=!1;let t=cm(e.data),r=pE(e.data),n=lE(e.data);if(n===null)throw new Error("rtsp: expected sequence number");if(this._callHistory===void 0)throw new Error("rtsp: internal error");let i=this._callHistory[n-1];if((0,em.default)("msl:rtsp:incoming")(`${e.data}`),!this._sessionId&&!r){this._sessionId=uE(e.data);let o=cE(e.data);o!==null&&(this._renewSessionInterval!==null&&clearInterval(this._renewSessionInterval),this._renewSessionInterval=setInterval(()=>{this._enqueue({method:"OPTIONS"}),this._dequeue()},Math.max(pI,o-5)*1e3))}this._contentBase||(this._contentBase=fE(e.data)),this._contentLocation||(this._contentLocation=dE(e.data)),t>=400&&this.onError&&this.onError(new EE(e.data.toString("ascii"),t)),i==="PLAY"&&this.onPlay&&this.onPlay(hE(e.data)),r&&((0,em.default)("msl:rtsp:incoming")(`RTSP Session ${this._sessionId} ended with statusCode: ${t}`),this._sessionId=null),this._dequeue()}_onRtcp(e){if(this.t0===void 0||this.n0===void 0)throw new Error("rtsp: internal error");if(nE(e.rtcp)){let t=e.channel-1;this.t0[t]=e.rtcp.rtpTimestamp,this.n0[t]=wE(e.rtcp.ntpMost,e.rtcp.ntpLeast)}}_onRtp(e){if(this.t0===void 0||this.n0===void 0||this.clockrates===void 0)throw new Error("rtsp: internal error");let t=e.channel,r=this.t0[t],n=this.n0[t];if(typeof r!="undefined"&&typeof n!="undefined"){let i=this.clockrates[t],o=Kn(e.data)-r|0;e.ntpTimestamp=o/i*1e3+n}}_onSdp(e){this.n0={},this.t0={},this.clockrates={},this._sessionControlURL=this._controlURL(e.sdp.session.control),e.sdp.media.forEach((t,r)=>{if(t.rtpmap===void 0)return;let{clockrate:n}=t.rtpmap,i=r*2,o=i+1,s=t.control===void 0?this._sessionControlURL:this._controlURL(t.control);this._enqueue({method:"SETUP",headers:{Transport:"RTP/AVP/TCP;unicast;interleaved="+i+"-"+o},uri:s}),this.clockrates!==void 0&&(this.clockrates[i]=n)}),this._state==="playing"&&this._enqueue({method:"PLAY",headers:{Range:`npt=${this.startTime||0}-`},uri:this._sessionControlURL}),this._dequeue()}play(e=0){if(this._state==="idle")this.startTime=Number(e)||0,this._enqueue({method:"OPTIONS"}),this._enqueue({method:"DESCRIBE"});else if(this._state==="paused"){if(this._sessionId===null||this._sessionId===void 0)throw new Error("rtsp: internal error");this._enqueue({method:"PLAY",headers:{Session:this._sessionId},uri:this._sessionControlURL})}this._state="playing",this._dequeue()}pause(){this._enqueue({method:"PAUSE"}),this._state="paused",this._dequeue()}stop(){this._sessionId?this._enqueue({method:"TEARDOWN"}):this._callStack=[],this._state="idle",this._renewSessionInterval!==null&&(clearInterval(this._renewSessionInterval),this._renewSessionInterval=null),this._dequeue()}send(e){let{method:t,headers:r,uri:n}=e;if(t===void 0)throw new Error("missing method when send request");if(this._waiting=!0,this.retry=this.send.bind(this,e),this._sequence===void 0||this.headers===void 0||this._callHistory===void 0)throw new Error("rtsp: internal error");let i=Object.assign({type:4,uri:n||this._sessionControlURL,data:Buffer.alloc(0)},{method:t,headers:r},{headers:Object.assign({CSeq:this._sequence++},this.defaultHeaders,this.headers[t],r)});this._sessionId&&(i.headers.Session=this._sessionId),this._callHistory.push(t),this._outgoingClosed?(0,em.default)("msl:rtsp:outgoing")(`Unable to send ${t}, connection closed`):this.outgoing.push(i)}_enqueue(e){if(this._callStack===void 0)throw new Error("rtsp: internal error");this._callStack.push(e)}_dequeue(){if(this._callStack===void 0)throw new Error("rtsp: internal error");if(!this._waiting&&this._callStack.length>0){let e=this._callStack.shift();e!==void 0&&this.send(e)}}};B();var tm=qr(gn());B();var mI=10007,yI=(e=window.location.host,t=window.location.protocol)=>({uri:`${t==="https:"?"wss:":"ws:"}//${e}/rtsp-over-websocket`,tokenUri:`${t}//${e}/axis-cgi/rtspwssession.cgi`,protocol:"binary",timeout:mI}),gI=(...e)=>$o(void 0,[...e],function*(t={}){let{uri:r,tokenUri:n,protocol:i,timeout:o}=fm(yI(t.host,t.scheme),t);if(r===void 0)throw new Error("ws: internal error");return yield new Promise((s,a)=>{try{let l=new WebSocket(r,i),u=setTimeout(()=>{clearTimeout(u),l.readyState===WebSocket.CONNECTING&&(l.onerror=null,a(new Error("websocket connection timed out")))},o);l.binaryType="arraybuffer",l.onerror=c=>{clearTimeout(u);function f(){if(this.status>=400){console.warn("failed to load token",this.status,this.responseText),a(c);return}let d=this.responseText.trim(),g=`${r}?rtspwssession=${d}`,y=new WebSocket(g,i);y.binaryType="arraybuffer",y.onerror=x=>{a(x)},y.onopen=()=>s(y)}let h=new XMLHttpRequest;h.addEventListener("load",f),h.addEventListener("error",d=>{console.warn("failed to get token"),a(d)}),h.addEventListener("abort",()=>a(c)),h.open("GET",`${n}?${Date.now()}`);try{h.send()}catch(d){a(c)}},l.onopen=()=>{clearTimeout(u),s(l)}}catch(l){a(l)}})}),vI=1001,Zo=class extends Wo{constructor(e){if(e===void 0)throw new Error("socket argument missing");let t=new Vc.Readable({objectMode:!0,read:function(){}});e.onmessage=n=>{let i=Buffer.from(n.data);t.push({data:i,type:1})||e.readyState===WebSocket.OPEN&&((0,tm.default)("msl:websocket:incoming")("downstream frozen"),e.close())},t.on("error",n=>{console.warn("closing socket due to incoming error",n),e.close()});let r=new Vc.Writable({objectMode:!0,write:function(n,i,o){try{e.send(n.data)}catch(s){console.warn("message lost during send:",n)}o()}});r.on("error",n=>{console.warn("error during websocket send, ignoring:",n)}),r.on("finish",()=>{(0,tm.default)("msl:websocket:outgoing")("finish"),e.readyState!==WebSocket.CLOSED&&e.close()}),e.onclose=n=>{(0,tm.default)("msl:websocket:close")(`${n.code}`),n.code===vI&&this.onServerClose&&this.onServerClose(),t.push(null),r.end()},super(t,r)}static open(e){return $o(this,null,function*(){return yield gI(e).then(t=>new Zo(t))})}},Di={};sm(Di,{Html5CanvasPipeline:()=>_I,Html5VideoMetadataPipeline:()=>TI,Html5VideoPipeline:()=>CE,HttpMsePipeline:()=>PI,MetadataPipeline:()=>bI,Pipeline:()=>dm,RtspMjpegPipeline:()=>TE,RtspMp4Pipeline:()=>_E,RtspPipeline:()=>_a,WsSdpPipeline:()=>kI});B();B();var dm=class{constructor(...e){let[t,...r]=e;this._set=new Set(e),this.firstComponent=t,this.lastComponent=r.reduce((n,i)=>n.connect(i),t)}init(...e){let[t,...r]=e;this._set=new Set(e),this.firstComponent=t,this.lastComponent=r.reduce((n,i)=>n.connect(i),t)}insertAfter(e,t){if(!this._set.has(e))throw new Error("insertion point not part of pipeline");if(this._set.has(t))throw new Error("new component already in the pipeline");let r=e.next;return r===null?(e.connect(t),this.lastComponent=t):(e.disconnect(),e.connect(t).connect(r)),this._set.add(t),this}insertBefore(e,t){if(!this._set.has(e))throw new Error("insertion point not part of pipeline");if(this._set.has(t))throw new Error("new component already in the pipeline");let r=e.prev;return r===null?(t.connect(e),this.firstComponent=t):(r.disconnect(),r.connect(t).connect(e)),this._set.add(t),this}remove(e){if(!this._set.has(e))throw new Error("component not part of pipeline");let t=e.prev,r=e.next;if(t===null&&r===null)throw new Error("cannot remove last component");return t===null&&r!==null?(e.disconnect(),this.firstComponent=r):t!==null&&r===null?(t.disconnect(),this.lastComponent=t):t!==null&&r!==null&&(t.disconnect(),e.disconnect(),t.connect(r)),this._set.delete(e),this}append(...e){return e.forEach(t=>{this.insertAfter(this.lastComponent,t)}),this}prepend(...e){return e.forEach(t=>{this.insertBefore(this.firstComponent,t)}),this}};B();var _a=class extends dm{constructor(e){let t=new gE,r=new xE(e);r.onSdp=n=>{this.onSdp&&this.onSdp(n)},r.onPlay=n=>{this.onPlay&&this.onPlay(n)},super(t,r),this.rtsp=r}};B();var _E=class extends _a{constructor(e){super(e);let t=new WS,r=new zS,n=new JS;n.onSync=i=>{this.onSync&&this.onSync(i)},this.append(t,r,n),this._mp4Muxer=n}get bitrate(){return this._mp4Muxer.bitrate}get framerate(){return this._mp4Muxer.framerate}};B();var TE=class extends _a{constructor(e){super(e);let t=new ZS;this.append(t)}};B();B();B();var Ri=qr(Y3()),wI=class{constructor(e,t,r){this.nc=()=>(++this.count,this.count.toString(16).padStart(8,"0")),this.cnonce=()=>new Array(4).fill(0).map(()=>Math.floor(Math.random()*256)).map(a=>a.toString(16)).join(""),this.ha1=a=>{let l=this.ha1Base;return this.algorithm==="md5-sess"&&(l=new Ri.Md5().appendStr(`${l}:${this.nonce}:${a}`).end().toString()),l},this.ha2=(a,l,u="")=>{let c=new Ri.Md5().appendStr(`${a}:${l}`).end().toString();if(this.algorithm==="md5-sess"){let f=new Ri.Md5().appendStr(u).end().toString();c=new Ri.Md5().appendStr(`${a}:${l}:${f}`).end().toString()}return c},this.authorization=(a="GET",l="",u)=>{let c=this.nc(),f=this.cnonce(),h=this.ha1(f),d=this.ha2(a,l,u),g=this.qop===void 0?new Ri.Md5().appendStr(`${h}:${this.nonce}:${d}`).end().toString():new Ri.Md5().appendStr(`${h}:${this.nonce}:${c}:${f}:${this.qop}:${d}`).end().toString(),y=[];return y.push(`username="${this.username}"`),y.push(`realm="${this.realm}"`),y.push(`nonce="${this.nonce}"`),y.push(`uri="${l}"`),this.qop!==void 0&&(y.push(`qop=${this.qop}`),y.push(`nc=${c}`),y.push(`cnonce="${f}"`)),y.push(`response="${g}"`),this.opaque!==void 0&&y.push(`opaque="${this.opaque}"`),`Digest ${y.join(", ")}`};let n=e.get("realm");if(n===void 0)throw new Error("no realm in digest challenge");this.realm=n,this.ha1Base=new Ri.Md5().appendStr(`${t}:${n}:${r}`).end().toString();let i=e.get("nonce");if(i===void 0)throw new Error("no nonce in digest challenge");this.nonce=i,this.opaque=e.get("opaque");let o=e.get("algorithm");o!==void 0?o==="md5"?this.algorithm="md5":o==="md5-sess"&&(this.algorithm="md5-sess"):this.algorithm="md5";let s=e.get("qop");if(s!==void 0){let a=s.split(",").map(l=>l.trim());a.some(l=>l==="auth")?this.qop="auth":a.some(l=>l==="auth-int")&&(this.qop="auth-int")}this.count=0,this.username=t}};B();var SI=e=>{let[,t,...r]=e.split(" "),n=[],i=/\s*([^=]+)="([^"]*)",?/gm,o;do if(o=i.exec(r.join(" ")),o!==null){let[,a,l]=o;n.push([a,l])}while(o!==null);let s=new Map(n);return{type:t.toLowerCase(),params:s}},EI=401,xI={username:"root",password:"pass"},pm=class extends Wt{constructor(e={}){let{username:t,password:r}=fm(xI,e);if(t===void 0||r===void 0)throw new Error("need username and password");let n,i,o=Sa(function(a,l,u){a.type===4&&(n=a,i&&a.headers&&(a.headers.Authorization=i)),u(void 0,a)}),s=Sa(function(a,l,u){if(a.type===4&&cm(a.data)===EI){let c=a.data.toString().split(`
`).find(h=>/WWW-Auth/i.test(h));if(c===void 0)throw new Error("cannot find WWW-Authenticate header");let f=SI(c);if(f.type==="basic")i="Basic "+Buffer.from(t+":"+r).toString("base64");else if(f.type==="digest")i=new wI(f.params,t,r).authorization(n.method,n.uri);else return;o.write(n,()=>u())}else u(void 0,a)});super(s,o)}},_I=class extends TE{constructor(e){let{ws:t,rtsp:r,mediaElement:n,auth:i}=e;if(super(r),i){let a=new pm(i);this.insertBefore(this.rtsp,a)}let o=new VS(n);o.onCanplay=()=>{o.play(),this.onCanplay&&this.onCanplay()},o.onSync=a=>{this.onSync&&this.onSync(a)},this.append(o),this._sink=o;let s=Zo.open(t);this.ready=s.then(a=>{a.onServerClose=()=>{this.onServerClose&&this.onServerClose()},this.prepend(a),this._src=a})}close(){this._src&&this._src.outgoing.end()}get currentTime(){return this._sink.currentTime}play(){return this._sink.play()}pause(){return this._sink.pause()}get bitrate(){return this._sink.bitrate}get framerate(){return this._sink.framerate}};B();var CE=class extends _E{constructor(e){let{ws:t,rtsp:r,mediaElement:n,auth:i}=e;if(super(r),i){let a=new pm(i);this.insertBefore(this.rtsp,a)}let o=new lm(n);o.onSourceOpen=(a,l)=>{this.tracks=l,this.onSourceOpen&&this.onSourceOpen(a,l)},this.append(o),this._sink=o;let s=Zo.open(t);this.ready=s.then(a=>{a.onServerClose=()=>{this.onServerClose&&this.onServerClose()},this.prepend(a),this._src=a})}close(){this._src&&this._src.outgoing.end()}get currentTime(){return this._sink.currentTime}play(){return $o(this,null,function*(){return yield this._sink.play()})}pause(){return this._sink.pause()}};B();var TI=class extends CE{constructor(e){let{metadataHandler:t}=e;super(e);let r=new um;this.insertAfter(this.rtsp,r);let n=Wt.fromHandlers(i=>{i.type===9&&t(i)},void 0);this.insertAfter(r,n)}};B();var CI={parameters:["audio=0","video=0","event=on","ptz=all"]},bI=class extends _a{constructor(e){let{ws:t,rtsp:r,metadataHandler:n}=e;super(Object.assign({},CI,r));let i=new um;this.append(i);let o=Ea.fromHandler(a=>{a.type===9&&n(a)});this.append(o);let s=Zo.open(t);this.ready=s.then(a=>{a.onServerClose=()=>{this.onServerClose&&this.onServerClose()},this.prepend(a),this._src=a})}close(){this._src&&this._src.outgoing.end()}};B();var kI=class extends _a{constructor(e){let{ws:t,rtsp:r,auth:n}=e;if(super(r),n){let o=new pm(n);this.insertBefore(this.rtsp,o)}let i=Zo.open(t);this.ready=i.then(o=>{o.onServerClose=()=>{this.onServerClose&&this.onServerClose()},this.prepend(o),this._src=o})}close(){this._src&&this._src.outgoing.end()}get sdp(){return this.ready.then(()=>$o(this,null,function*(){let e=new Promise(t=>{this.rtsp.onSdp=t});return this.rtsp.send({method:"DESCRIBE"}),this.rtsp.send({method:"TEARDOWN"}),yield e}))}};B();B();var II=qr(gn()),rm=(0,II.default)("msl:http-mp4"),MI=class extends Wo{constructor(e){let{uri:t,options:r}=e,n=new bE.Readable({objectMode:!0,read:function(){}});n.on("error",i=>{console.warn("closing socket due to incoming error",i),this._reader&&this._reader.cancel()}),super(n),n._read=()=>{this._pull()},this.uri=t,this.options=r,this._allDone=!1}play(){if(this.uri===void 0)throw new Error("cannot start playing when there is no URI");this._abortController=new AbortController,this.length=0,fetch(this.uri,ei({credentials:"include",signal:this._abortController.signal},this.options)).then(e=>{if(e.body===null)throw new Error("empty response body");let t=e.headers.get("Content-Type");this.incoming.push({data:Buffer.alloc(0),type:8,mime:t}),this.onHeaders&&this.onHeaders(e.headers),this._reader=e.body.getReader(),this._pull()}).catch(e=>{console.error("http-source: fetch failed: ",e)})}abort(){this._reader&&this._reader.cancel().catch(e=>{console.log("http-source: cancel reader failed: ",e)}),this._abortController&&this._abortController.abort()}_isClosed(){return this._allDone}_close(){var e;this._reader=void 0,this._allDone=!0,this.incoming.push(null),(e=this.onServerClose)==null||e.call(this)}_pull(){this._reader!==void 0&&this._reader.read().then(({done:e,value:t})=>{if(e){this._isClosed()||(rm("fetch completed, total downloaded: ",this.length," bytes"),this._close());return}if(t===void 0)throw new Error("expected value to be defined");if(this.length===void 0)throw new Error("expected length to be defined");this.length+=t.length;let r=Buffer.from(t);this.incoming.push({data:r,type:8})?this._pull():rm("downstream back pressure: pausing read")}).catch(e=>{rm("http-source: read failed: ",e),this._isClosed()||this._close()})}},PI=class extends dm{constructor(e){let{http:t,mediaElement:r}=e,n=new MI(t),i=new lm(r);n.onHeaders=o=>{this.onHeaders&&this.onHeaders(o)},n.onServerClose=()=>{var o;return(o=this.onServerClose)==null?void 0:o.call(this)},super(n,i),this._src=n,this._sink=i,this.http=n}close(){this._src&&this._src.abort()}get currentTime(){return this._sink.currentTime}play(){return $o(this,null,function*(){return yield this._sink.play()})}pause(){return this._sink.pause()}},Bi={};sm(Bi,{RTCPPacketType:()=>KS,SDESItem:()=>iE,SR:()=>W4,Scheduler:()=>jS,addRTSPRetry:()=>OI,bodyOffset:()=>mE,cSrc:()=>e4,cSrcCount:()=>Li,connectionEnded:()=>pE,contentBase:()=>fE,contentLocation:()=>dE,extHeader:()=>t4,extHeaderLength:()=>Rc,extension:()=>am,extractHeaderValue:()=>vn,extractURIs:()=>lI,getTime:()=>wE,isRtcpApp:()=>K4,isRtcpBye:()=>Go,isRtcpRR:()=>Z4,isRtcpSDES:()=>X4,isRtcpSR:()=>nE,marker:()=>xa,messageFromBuffer:()=>aE,padding:()=>Q3,parse:()=>sE,parseRtcp:()=>eE,payload:()=>qo,payloadType:()=>mr,range:()=>hE,rtcpMessageFromBuffer:()=>tE,sSrc:()=>K3,sequence:()=>lE,sequenceNumber:()=>J3,sessionId:()=>uE,sessionTimeout:()=>cE,statusCode:()=>cm,timestamp:()=>Kn,version:()=>X3});B();B();B();var OI=(e,{maxRetries:t,errors:r}={maxRetries:20,errors:[503]})=>{let n=0,i=e.onError;e.onError=o=>{if(i==null||i(o),!!r.includes(o.code)){if((n+=1)>t){console.log("retry, too many",n,t);return}setTimeout(()=>{var s;return(s=e.retry)==null?void 0:s.call(e)},n*100)}}};var Ui=q(xe()),ti=(e,t)=>{let[r,n]=(0,Ui.useState)(!1),i=(0,Ui.useCallback)(()=>n(!0),[]),o=(0,Ui.useCallback)(()=>n(!1),[]);return(0,Ui.useEffect)(()=>{let s=e.current;if(!r&&s!==null)return s.addEventListener(t,i),()=>{s.removeEventListener(t,i)}},[r,t,e,i]),[r,o]};var kE=(e,{parser:t,cb:r})=>{let n=new Bi.Scheduler(e,r,30),i=new DOMParser,o=l=>{let u=i.parseFromString(l.data.toString(),"text/xml"),c=t(Je(D({},l),{xmlDocument:u}));l.ntpTimestamp!==void 0&&n.run(c)},s=new Bc.ONVIFDepay,a=Bc.Tube.fromHandlers(l=>{l.type===Hc.XML&&o(l)},void 0);return e.insertAfter(e.rtsp,s),e.insertAfter(s,a),e.onSync=l=>n.init(l),n};var ri={RTP_H264:!0,RTP_JPEG:!1,MP4_H264:!0,JPEG:!1};var Ir=(i=>(i.RTP_H264="RTP_H264",i.RTP_JPEG="RTP_JPEG",i.JPEG="JPEG",i.MP4_H264="MP4_H264",i))(Ir||{});var Ta=(0,IE.default)("msp:ws-rtsp-video"),AI=Y.video`
max-height: 100%;
object-fit: contain;
width: 100%;
`,ME=({forwardedRef:e,play:t=!1,ws:r,rtsp:n,autoPlay:i=!0,muted:o=!0,onPlaying:s,onEnded:a,onSdp:l,onRtcp:u,metadataHandler:c,offset:f=0,autoRetry:h=!1})=>{let d=(0,ft.useRef)(null);typeof e=="function"?e(d.current):e&&(d=e);let[g,y]=ti(d,"canplay"),[x,m]=ti(d,"playing"),[p,v]=(0,ft.useState)(null),[w,T]=(0,ft.useState)(!1),k=(0,ft.useRef)(f),I=(0,ft.useRef)([f,void 0]),P=(0,ft.useRef)(s);P.current=s;let V=(0,ft.useRef)(a);V.current=a;let j=(0,ft.useRef)();(0,ft.useEffect)(()=>{var fe;let re=d.current;re!==null&&(t&&g===!0&&x===!1?(Ta("play"),re.play().catch(ie=>{console.error("VideoElement error: ",ie.message)})):!t&&x===!0?(Ta("pause"),re.pause(),m()):t&&x===!0&&P.current!==void 0&&P.current({el:re,pipeline:p!=null?p:void 0,width:re.videoWidth,height:re.videoHeight,formatSupportsAudio:ri["RTP_H264"],volume:(fe=p==null?void 0:p.tracks)!=null&&fe.find(ie=>ie.type==="audio")?re.volume:void 0,range:I.current,sensorTm:j.current}))},[t,g,x,m,p]);let ve=(0,ft.useRef)(c);ve.current=c,(0,ft.useEffect)(()=>{let re=d.current;if(k.current=f,r!==void 0&&r.length>0&&n!==void 0&&n.length>0&&re!==null){Ta("create pipeline",r,n);let fe=new Di.Html5VideoPipeline({ws:{uri:r},rtsp:{uri:n},mediaElement:re});h&&Bi.addRTSPRetry(fe.rtsp),v(fe);let ie;return ve.current!==void 0&&(ie=kE(fe,ve.current)),()=>{Ta("close pipeline and clear video"),fe.close(),re.src="",ie==null||ie.reset(),v(null),T(!1),y(),m()}}},[r,n,f,y,m,h]);let we=(0,ft.useRef)(l);we.current=l;let He=(0,ft.useRef)(u);return He.current=u,(0,ft.useEffect)(()=>{t&&p&&!w&&(p.ready.then(()=>{p.onSdp=re=>{var ie;let fe=re.media.find(Xe=>Xe.type==="video");fe!==void 0&&(j.current=(ie=fe["x-sensor-transform"])!=null?ie:fe.transform),we.current!==void 0&&we.current(re)},p.rtsp.onRtcp=re=>{var fe,ie;(fe=He.current)==null||fe.call(He,re),Go(re)&&((ie=V.current)==null||ie.call(V))},p.rtsp.onPlay=re=>{re!==void 0&&(I.current=[parseFloat(re[0])||0,parseFloat(re[1])||void 0])},p.rtsp.play(k.current)}).catch(re=>{console.error(re)}),Ta("initiated data fetching"),T(!0))},[t,p,w]),ft.default.createElement(AI,{autoPlay:i,muted:o,ref:d})};var kt=q(xe());var PE=q(ko());var Yo=(0,PE.default)("msp:ws-rtsp-video"),NI=Y.canvas`
max-height: 100%;
object-fit: contain;
width: 100%;
`,OE=({forwardedRef:e,play:t=!0,ws:r="",rtsp:n="",onPlaying:i,onEnded:o,onSdp:s,onRtcp:a,offset:l=0,autoRetry:u=!1})=>{let c=(0,kt.useRef)(null);typeof e=="function"?e(c.current):e&&(c=e);let[f,h]=(0,kt.useState)(null),[d,g]=(0,kt.useState)(!1),y=(0,kt.useRef)(l),x=(0,kt.useRef)([l,void 0]);(0,kt.useEffect)(()=>{y.current=l;let k=c.current;if(r&&n&&k){Yo("create pipeline");let I=new Di.Html5CanvasPipeline({ws:{uri:r},rtsp:{uri:n},mediaElement:k});return u&&Bi.addRTSPRetry(I.rtsp),h(I),()=>{Yo("destroy pipeline"),I.pause(),I.close(),h(null),g(!1),Yo("canvas cleared")}}},[r,n,l,u]);let m=(0,kt.useRef)(i);m.current=i;let p=(0,kt.useRef)(o);p.current=o;let v=(0,kt.useRef)(s);v.current=s;let w=(0,kt.useRef)(a);w.current=a;let T=(0,kt.useRef)();return(0,kt.useEffect)(()=>{t&&f&&!d?f.ready.then(()=>{Yo("fetch"),f.onSdp=k=>{var P;let I=k.media.find(V=>V.type==="video");I!==void 0&&(T.current=(P=I["x-sensor-transform"])!=null?P:I.transform),v.current!==void 0&&v.current(k)},f.rtsp.onRtcp=k=>{var I,P;(I=w.current)==null||I.call(w,k),Go(k)&&((P=p.current)==null||P.call(p))},f.rtsp.onPlay=k=>{k!==void 0&&(x.current=[parseFloat(k[0])||0,parseFloat(k[1])||void 0])},f.rtsp.play(y.current),g(!0)}).catch(console.error):t&&f!==null?(Yo("play"),f.play(),f.onCanplay=()=>{c.current!==null&&m.current!==void 0&&m.current({el:c.current,width:c.current.width,height:c.current.height,formatSupportsAudio:ri["RTP_JPEG"],range:x.current,sensorTm:T.current})}):!t&&f&&(Yo("pause"),f.pause())},[t,f,d]),kt.default.createElement(NI,{ref:c})};var ni=q(xe());var AE=q(ko());var FI=(0,AE.default)("msp:still-image"),RI=Y.img`
max-height: 100%;
object-fit: contain;
width: 100%;
`,LI=0,NE=({forwardedRef:e,play:t=!1,onPlaying:r,src:n})=>{let i=(0,ni.useRef)(null);typeof e=="function"?e(i.current):e&&(i=e);let[o,s]=ti(i,"load");(0,ni.useEffect)(()=>{let l=i.current;if(l!==null&&t&&n!==void 0)return l.src=`${n}&cachebust=${LI++}`,()=>{l.src="",s()}},[t,n,s]);let a=(0,ni.useRef)(r);return a.current=r,(0,ni.useEffect)(()=>{let l=i.current;o&&l!==null&&a.current!==void 0&&a.current({el:l,width:l.naturalWidth,height:l.naturalHeight,formatSupportsAudio:ri["JPEG"]})},[o]),FI("render image",o),ni.default.createElement(RI,{ref:i})};var Dt=q(xe());var FE=q(ko());var Ca=(0,FE.default)("msp:http-mp4-video"),DI=Y.video`
max-height: 100%;
object-fit: contain;
width: 100%;
`,RE=({forwardedRef:e,play:t=!1,src:r,autoPlay:n=!0,muted:i=!0,onPlaying:o,onEnded:s,metadataHandler:a})=>{let l=(0,Dt.useRef)(null);typeof e=="function"?e(l.current):e&&(l=e);let[u,c]=ti(l,"canplay"),[f,h]=ti(l,"playing"),[d,g]=(0,Dt.useState)(null),[y,x]=(0,Dt.useState)(!1),m=(0,Dt.useRef)(o);m.current=o;let p=(0,Dt.useRef)(s);p.current=s;let v=(0,Dt.useRef)();(0,Dt.useEffect)(()=>{let T=l.current;T!==null&&(t&&u===!0&&f===!1?(Ca("play"),T.play().catch(k=>{console.error("VideoElement error: ",k.message)})):!t&&f===!0?(Ca("pause"),T.pause(),h()):t&&f===!0&&m.current!==void 0&&m.current({el:T,width:T.videoWidth,height:T.videoHeight,sensorTm:v.current,formatSupportsAudio:ri["MP4_H264"]}))},[t,u,f,h,d]);let w=(0,Dt.useRef)(a);return w.current=a,(0,Dt.useEffect)(()=>{let T=l.current;if(r!==void 0&&r.length>0&&T!==null){let k=()=>{var P;(P=p.current)==null||P.call(p)};Ca("create pipeline",r);let I=new Di.HttpMsePipeline({http:{uri:r},mediaElement:T});return g(I),I.onServerClose=k,()=>{Ca("close pipeline and clear video"),I.close(),T.src="",g(null),x(!1),c(),h()}}},[r,c,h]),(0,Dt.useEffect)(()=>{t&&d&&!y&&(d.onHeaders=T=>{var k;v.current=BI((k=T.get("video-sensor-transform"))!=null?k:T.get("video-metadata-transform"))},d.http.play(),Ca("initiated data fetching"),x(!0))},[t,d,y]),Dt.default.createElement(DI,{autoPlay:n,muted:i,ref:l})},BI=e=>{if(e!=null)return e.split(";").map(t=>t.split(",").map(Number))};var UI=(0,BE.default)("msp:api"),UE=(n=>(n.AXIS_IMAGE_CGI="AXIS_IMAGE_CGI",n.AXIS_MEDIA_AMP="AXIS_MEDIA_AMP",n.AXIS_MEDIA_CGI="AXIS_MEDIA_CGI",n))(UE||{}),HE=(i=>(i.HTTP="http:",i.HTTPS="https:",i.WS="ws:",i.WSS="wss:",i))(HE||{}),ka={RTP_H264:"AXIS_MEDIA_AMP",RTP_JPEG:"AXIS_MEDIA_AMP",MP4_H264:"AXIS_MEDIA_CGI",JPEG:"AXIS_IMAGE_CGI"},LE=(e,t)=>t.length!==0?`${e}//${t}/rtsp-over-websocket`:"",DE=(e,t)=>e.length!==0?`rtsp://${e}/axis-media/media.amp?${t}`:"",HI=(e,t,r)=>t.length!==0?`${e}//${t}/axis-cgi/media.cgi?${r}`:"",zI=(e,t,r)=>t.length!==0?`${e}//${t}/axis-cgi/jpg/image.cgi?${r}`:"",jI={["AXIS_IMAGE_CGI"]:["resolution","camera","compression","rotation","palette","squarepixel","timestamp"],["AXIS_MEDIA_AMP"]:["camera","resolution","h264profile","streamprofile","recordingid","audio","compression","colorlevel","color","palette","clock","date","text","textstring","textcolor","textbackgroundcolor","rotation","textpos","overlayimage","overlaypos","duration","nbrofframes","fps","pull","event","timestamp","videocodec"],["AXIS_MEDIA_CGI"]:["container","camera","resolution","h264profile","streamprofile","recordingid","audio","compression","colorlevel","color","palette","clock","date","text","textstring","textcolor","textbackgroundcolor","rotation","textpos","overlayimage","overlaypos","duration","nbrofframes","fps","pull","event","timestamp","videocodec"]},$c=(e,t={})=>{let r=jI[e];return Object.entries(t).map(([n,i])=>(r.includes(n)||UI(`undocumented VAPIX parameter ${n}`),`${encodeURIComponent(n)}=${encodeURIComponent(i)}`)).join("&")},Ia=({forwardedRef:e,host:t,format:r,parameters:n={},play:i,offset:o,refresh:s,onPlaying:a,onEnded:l,onSdp:u,onRtcp:c,metadataHandler:f,secure:h=window.location.protocol==="https:",autoRetry:d=!1})=>{let g=s.toString();if(r==="RTP_H264"){let y=LE(h?"wss:":"ws:",t),x=DE(t,$c(ka[r],Je(D({},n),{timestamp:g,videocodec:"h264"})));return ba.default.createElement(ME,D({key:s,forwardedRef:e},{ws:y,rtsp:x,play:i,offset:o,onPlaying:a,onEnded:l,onSdp:u,onRtcp:c,metadataHandler:f,autoRetry:d}))}if(r==="RTP_JPEG"){let y=LE(h?"wss:":"ws:",t),x=DE(t,$c(ka[r],Je(D({},n),{timestamp:g,videocodec:"jpeg"})));return ba.default.createElement(OE,D({key:s,forwardedRef:e},{ws:y,rtsp:x,play:i,offset:o,onPlaying:a,onEnded:l,onSdp:u,onRtcp:c}))}if(r==="JPEG"){let y=zI(h?"https:":"http:",t,$c(ka[r],Je(D({},n),{timestamp:g})));return ba.default.createElement(NE,D({key:s,forwardedRef:e},{src:y,play:i,onPlaying:a}))}if(r==="MP4_H264"){let y=HI(h?"https:":"http:",t,$c(ka[r],Je(D({},n),{timestamp:g,videocodec:"h264",container:"mp4"})));return ba.default.createElement(RE,D({key:s,forwardedRef:e},{src:y,play:i,onPlaying:a,onEnded:l}))}return console.warn(`Error: unknown format: ${r},
please use one of ${["RTP_H264","JPEG","MP4_H264","RTP_JPEG"].join(", ")}`),null};var le=q(xe());var wn=class extends Error{},Wc=class extends wn{constructor(t){super(`Invalid DateTime: ${t.toMessage()}`)}},qc=class extends wn{constructor(t){super(`Invalid Interval: ${t.toMessage()}`)}},Gc=class extends wn{constructor(t){super(`Invalid Duration: ${t.toMessage()}`)}},Sn=class extends wn{},Xo=class extends wn{constructor(t){super(`Invalid unit ${t}`)}},wt=class extends wn{},Mr=class extends wn{constructor(){super("Zone is an abstract class")}};var L="numeric",Pr="short",rr="long",Qo={year:L,month:L,day:L},Ma={year:L,month:Pr,day:L},hm={year:L,month:Pr,day:L,weekday:Pr},Pa={year:L,month:rr,day:L},Oa={year:L,month:rr,day:L,weekday:rr},Aa={hour:L,minute:L},Na={hour:L,minute:L,second:L},Fa={hour:L,minute:L,second:L,timeZoneName:Pr},Ra={hour:L,minute:L,second:L,timeZoneName:rr},La={hour:L,minute:L,hourCycle:"h23"},Da={hour:L,minute:L,second:L,hourCycle:"h23"},Ba={hour:L,minute:L,second:L,hourCycle:"h23",timeZoneName:Pr},Ua={hour:L,minute:L,second:L,hourCycle:"h23",timeZoneName:rr},Ha={year:L,month:L,day:L,hour:L,minute:L},za={year:L,month:L,day:L,hour:L,minute:L,second:L},ja={year:L,month:Pr,day:L,hour:L,minute:L},Va={year:L,month:Pr,day:L,hour:L,minute:L,second:L},mm={year:L,month:Pr,day:L,weekday:Pr,hour:L,minute:L},$a={year:L,month:rr,day:L,hour:L,minute:L,timeZoneName:Pr},Wa={year:L,month:rr,day:L,hour:L,minute:L,second:L,timeZoneName:Pr},qa={year:L,month:rr,day:L,weekday:rr,hour:L,minute:L,timeZoneName:rr},Ga={year:L,month:rr,day:L,weekday:rr,hour:L,minute:L,second:L,timeZoneName:rr};function ae(e){return typeof e=="undefined"}function Gr(e){return typeof e=="number"}function Za(e){return typeof e=="number"&&e%1===0}function zE(e){return typeof e=="string"}function jE(e){return Object.prototype.toString.call(e)==="[object Date]"}function Zc(){try{return typeof Intl!="undefined"&&!!Intl.RelativeTimeFormat}catch(e){return!1}}function VE(e){return Array.isArray(e)?e:[e]}function gm(e,t,r){if(e.length!==0)return e.reduce((n,i)=>{let o=[t(i),i];return n&&r(n[0],o[0])===n[0]?n:o},null)[1]}function $E(e,t){return t.reduce((r,n)=>(r[n]=e[n],r),{})}function ii(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function Zr(e,t,r){return Za(e)&&e>=t&&e<=r}function VI(e,t){return e-t*Math.floor(e/t)}function qe(e,t=2){let r=e<0,n;return r?n="-"+(""+-e).padStart(t,"0"):n=(""+e).padStart(t,"0"),n}function En(e){if(!(ae(e)||e===null||e===""))return parseInt(e,10)}function oi(e){if(!(ae(e)||e===null||e===""))return parseFloat(e)}function Ya(e){if(!(ae(e)||e===null||e==="")){let t=parseFloat("0."+e)*1e3;return Math.floor(t)}}function Jo(e,t,r=!1){let n=ke(10,t);return(r?Math.trunc:Math.round)(e*n)/n}function Hi(e){return e%4===0&&(e%100!==0||e%400===0)}function zi(e){return Hi(e)?366:365}function Ko(e,t){let r=VI(t-1,12)+1,n=e+(t-r)/12;return r===2?Hi(n)?29:28:[31,null,31,30,31,30,31,31,30,31,30,31][r-1]}function Xa(e){let t=Date.UTC(e.year,e.month-1,e.day,e.hour,e.minute,e.second,e.millisecond);return e.year<100&&e.year>=0&&(t=new Date(t),t.setUTCFullYear(t.getUTCFullYear()-1900)),+t}function es(e){let t=(e+Math.floor(e/4)-Math.floor(e/100)+Math.floor(e/400))%7,r=e-1,n=(r+Math.floor(r/4)-Math.floor(r/100)+Math.floor(r/400))%7;return t===4||n===3?53:52}function Qa(e){return e>99?e:e>60?1900+e:2e3+e}function Yc(e,t,r,n=null){let i=new Date(e),o={hourCycle:"h23",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"};n&&(o.timeZone=n);let s=D({timeZoneName:t},o),a=new Intl.DateTimeFormat(r,s).formatToParts(i).find(l=>l.type.toLowerCase()==="timezonename");return a?a.value:null}function ji(e,t){let r=parseInt(e,10);Number.isNaN(r)&&(r=0);let n=parseInt(t,10)||0,i=r<0||Object.is(r,-0)?-n:n;return r*60+i}function vm(e){let t=Number(e);if(typeof e=="boolean"||e===""||Number.isNaN(t))throw new wt(`Invalid unit value ${e}`);return t}function ts(e,t){let r={};for(let n in e)if(ii(e,n)){let i=e[n];if(i==null)continue;r[t(n)]=vm(i)}return r}function si(e,t){let r=Math.trunc(Math.abs(e/60)),n=Math.trunc(Math.abs(e%60)),i=e>=0?"+":"-";switch(t){case"short":return`${i}${qe(r,2)}:${qe(n,2)}`;case"narrow":return`${i}${r}${n>0?`:${n}`:""}`;case"techie":return`${i}${qe(r,2)}${qe(n,2)}`;default:throw new RangeError(`Value format ${t} is out of range for property format`)}}function Ja(e){return $E(e,["hour","minute","second","millisecond"])}var wm=/[A-Za-z_+-]{1,256}(?::?\/[A-Za-z0-9_+-]{1,256}(?:\/[A-Za-z0-9_+-]{1,256})?)?/;var $I=["January","February","March","April","May","June","July","August","September","October","November","December"],Sm=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],WI=["J","F","M","A","M","J","J","A","S","O","N","D"];function Em(e){switch(e){case"narrow":return[...WI];case"short":return[...Sm];case"long":return[...$I];case"numeric":return["1","2","3","4","5","6","7","8","9","10","11","12"];case"2-digit":return["01","02","03","04","05","06","07","08","09","10","11","12"];default:return null}}var xm=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],_m=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],qI=["M","T","W","T","F","S","S"];function Tm(e){switch(e){case"narrow":return[...qI];case"short":return[..._m];case"long":return[...xm];case"numeric":return["1","2","3","4","5","6","7"];default:return null}}var Cm=["AM","PM"],GI=["Before Christ","Anno Domini"],ZI=["BC","AD"],YI=["B","A"];function bm(e){switch(e){case"narrow":return[...YI];case"short":return[...ZI];case"long":return[...GI];default:return null}}function WE(e){return Cm[e.hour<12?0:1]}function qE(e,t){return Tm(t)[e.weekday-1]}function GE(e,t){return Em(t)[e.month-1]}function ZE(e,t){return bm(t)[e.year<0?0:1]}function YE(e,t,r="always",n=!1){let i={years:["year","yr."],quarters:["quarter","qtr."],months:["month","mo."],weeks:["week","wk."],days:["day","day","days"],hours:["hour","hr."],minutes:["minute","min."],seconds:["second","sec."]},o=["hours","minutes","seconds"].indexOf(e)===-1;if(r==="auto"&&o){let f=e==="days";switch(t){case 1:return f?"tomorrow":`next ${i[e][0]}`;case-1:return f?"yesterday":`last ${i[e][0]}`;case 0:return f?"today":`this ${i[e][0]}`;default:}}let s=Object.is(t,-0)||t<0,a=Math.abs(t),l=a===1,u=i[e],c=n?l?u[1]:u[2]||u[1]:l?i[e][0]:e;return s?`${a} ${c} ago`:`in ${a} ${c}`}function XE(e,t){let r="";for(let n of e)n.literal?r+=n.val:r+=t(n.val);return r}var XI={D:Qo,DD:Ma,DDD:Pa,DDDD:Oa,t:Aa,tt:Na,ttt:Fa,tttt:Ra,T:La,TT:Da,TTT:Ba,TTTT:Ua,f:Ha,ff:ja,fff:$a,ffff:qa,F:za,FF:Va,FFF:Wa,FFFF:Ga},it=class{static create(t,r={}){return new it(t,r)}static parseFormat(t){let r=null,n="",i=!1,o=[];for(let s=0;s<t.length;s++){let a=t.charAt(s);a==="'"?(n.length>0&&o.push({literal:i,val:n}),r=null,n="",i=!i):i||a===r?n+=a:(n.length>0&&o.push({literal:!1,val:n}),n=a,r=a)}return n.length>0&&o.push({literal:i,val:n}),o}static macroTokenToFormatOpts(t){return XI[t]}constructor(t,r){this.opts=r,this.loc=t,this.systemLoc=null}formatWithSystemDefault(t,r){return this.systemLoc===null&&(this.systemLoc=this.loc.redefaultToSystem()),this.systemLoc.dtFormatter(t,D(D({},this.opts),r)).format()}formatDateTime(t,r={}){return this.loc.dtFormatter(t,D(D({},this.opts),r)).format()}formatDateTimeParts(t,r={}){return this.loc.dtFormatter(t,D(D({},this.opts),r)).formatToParts()}resolvedOptions(t,r={}){return this.loc.dtFormatter(t,D(D({},this.opts),r)).resolvedOptions()}num(t,r=0){if(this.opts.forceSimple)return qe(t,r);let n=D({},this.opts);return r>0&&(n.padTo=r),this.loc.numberFormatter(n).format(t)}formatDateTimeFromString(t,r){let n=this.loc.listingMode()==="en",i=this.loc.outputCalendar&&this.loc.outputCalendar!=="gregory",o=(d,g)=>this.loc.extract(t,d,g),s=d=>t.isOffsetFixed&&t.offset===0&&d.allowZ?"Z":t.isValid?t.zone.formatOffset(t.ts,d.format):"",a=()=>n?WE(t):o({hour:"numeric",hourCycle:"h12"},"dayperiod"),l=(d,g)=>n?GE(t,d):o(g?{month:d}:{month:d,day:"numeric"},"month"),u=(d,g)=>n?qE(t,d):o(g?{weekday:d}:{weekday:d,month:"long",day:"numeric"},"weekday"),c=d=>{let g=it.macroTokenToFormatOpts(d);return g?this.formatWithSystemDefault(t,g):d},f=d=>n?ZE(t,d):o({era:d},"era"),h=d=>{switch(d){case"S":return this.num(t.millisecond);case"u":case"SSS":return this.num(t.millisecond,3);case"s":return this.num(t.second);case"ss":return this.num(t.second,2);case"uu":return this.num(Math.floor(t.millisecond/10),2);case"uuu":return this.num(Math.floor(t.millisecond/100));case"m":return this.num(t.minute);case"mm":return this.num(t.minute,2);case"h":return this.num(t.hour%12===0?12:t.hour%12);case"hh":return this.num(t.hour%12===0?12:t.hour%12,2);case"H":return this.num(t.hour);case"HH":return this.num(t.hour,2);case"Z":return s({format:"narrow",allowZ:this.opts.allowZ});case"ZZ":return s({format:"short",allowZ:this.opts.allowZ});case"ZZZ":return s({format:"techie",allowZ:this.opts.allowZ});case"ZZZZ":return t.zone.offsetName(t.ts,{format:"short",locale:this.loc.locale});case"ZZZZZ":return t.zone.offsetName(t.ts,{format:"long",locale:this.loc.locale});case"z":return t.zoneName;case"a":return a();case"d":return i?o({day:"numeric"},"day"):this.num(t.day);case"dd":return i?o({day:"2-digit"},"day"):this.num(t.day,2);case"c":return this.num(t.weekday);case"ccc":return u("short",!0);case"cccc":return u("long",!0);case"ccccc":return u("narrow",!0);case"E":return this.num(t.weekday);case"EEE":return u("short",!1);case"EEEE":return u("long",!1);case"EEEEE":return u("narrow",!1);case"L":return i?o({month:"numeric",day:"numeric"},"month"):this.num(t.month);case"LL":return i?o({month:"2-digit",day:"numeric"},"month"):this.num(t.month,2);case"LLL":return l("short",!0);case"LLLL":return l("long",!0);case"LLLLL":return l("narrow",!0);case"M":return i?o({month:"numeric"},"month"):this.num(t.month);case"MM":return i?o({month:"2-digit"},"month"):this.num(t.month,2);case"MMM":return l("short",!1);case"MMMM":return l("long",!1);case"MMMMM":return l("narrow",!1);case"y":return i?o({year:"numeric"},"year"):this.num(t.year);case"yy":return i?o({year:"2-digit"},"year"):this.num(t.year.toString().slice(-2),2);case"yyyy":return i?o({year:"numeric"},"year"):this.num(t.year,4);case"yyyyyy":return i?o({year:"numeric"},"year"):this.num(t.year,6);case"G":return f("short");case"GG":return f("long");case"GGGGG":return f("narrow");case"kk":return this.num(t.weekYear.toString().slice(-2),2);case"kkkk":return this.num(t.weekYear,4);case"W":return this.num(t.weekNumber);case"WW":return this.num(t.weekNumber,2);case"o":return this.num(t.ordinal);case"ooo":return this.num(t.ordinal,3);case"q":return this.num(t.quarter);case"qq":return this.num(t.quarter,2);case"X":return this.num(Math.floor(t.ts/1e3));case"x":return this.num(t.ts);default:return c(d)}};return XE(it.parseFormat(r),h)}formatDurationFromString(t,r){let n=l=>{switch(l[0]){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":return"hour";case"d":return"day";case"w":return"week";case"M":return"month";case"y":return"year";default:return null}},i=l=>u=>{let c=n(u);return c?this.num(l.get(c),u.length):u},o=it.parseFormat(r),s=o.reduce((l,{literal:u,val:c})=>u?l:l.concat(c),[]),a=t.shiftTo(...s.map(n).filter(l=>l));return XE(o,i(a))}};var St=class{constructor(t,r){this.reason=t,this.explanation=r}toMessage(){return this.explanation?`${this.reason}: ${this.explanation}`:this.reason}};var qt=class{get type(){throw new Mr}get name(){throw new Mr}get ianaName(){return this.name}get isUniversal(){throw new Mr}offsetName(t,r){throw new Mr}formatOffset(t,r){throw new Mr}offset(t){throw new Mr}equals(t){throw new Mr}get isValid(){throw new Mr}};var Im=null,Yr=class extends qt{static get instance(){return Im===null&&(Im=new Yr),Im}get type(){return"system"}get name(){return new Intl.DateTimeFormat().resolvedOptions().timeZone}get isUniversal(){return!1}offsetName(t,{format:r,locale:n}){return Yc(t,r,n)}formatOffset(t,r){return si(this.offset(t),r)}offset(t){return-new Date(t).getTimezoneOffset()}equals(t){return t.type==="system"}get isValid(){return!0}};var Qc={};function QI(e){return Qc[e]||(Qc[e]=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:e,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",era:"short"})),Qc[e]}var JI={year:0,month:1,day:2,era:3,hour:4,minute:5,second:6};function KI(e,t){let r=e.format(t).replace(/\u200E/g,""),n=/(\d+)\/(\d+)\/(\d+) (AD|BC),? (\d+):(\d+):(\d+)/.exec(r),[,i,o,s,a,l,u,c]=n;return[s,i,o,a,l,u,c]}function eM(e,t){let r=e.formatToParts(t),n=[];for(let i=0;i<r.length;i++){let{type:o,value:s}=r[i],a=JI[o];o==="era"?n[a]=s:ae(a)||(n[a]=parseInt(s,10))}return n}var Xc={},dt=class extends qt{static create(t){return Xc[t]||(Xc[t]=new dt(t)),Xc[t]}static resetCache(){Xc={},Qc={}}static isValidSpecifier(t){return this.isValidZone(t)}static isValidZone(t){if(!t)return!1;try{return new Intl.DateTimeFormat("en-US",{timeZone:t}).format(),!0}catch(r){return!1}}constructor(t){super(),this.zoneName=t,this.valid=dt.isValidZone(t)}get type(){return"iana"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(t,{format:r,locale:n}){return Yc(t,r,n,this.name)}formatOffset(t,r){return si(this.offset(t),r)}offset(t){let r=new Date(t);if(isNaN(r))return NaN;let n=QI(this.name),[i,o,s,a,l,u,c]=n.formatToParts?eM(n,r):KI(n,r);a==="BC"&&(i=-Math.abs(i)+1);let h=Xa({year:i,month:o,day:s,hour:l===24?0:l,minute:u,second:c,millisecond:0}),d=+r,g=d%1e3;return d-=g>=0?g:1e3+g,(h-d)/(60*1e3)}equals(t){return t.type==="iana"&&t.name===this.name}get isValid(){return this.valid}};var Mm=null,Ge=class extends qt{static get utcInstance(){return Mm===null&&(Mm=new Ge(0)),Mm}static instance(t){return t===0?Ge.utcInstance:new Ge(t)}static parseSpecifier(t){if(t){let r=t.match(/^utc(?:([+-]\d{1,2})(?::(\d{2}))?)?$/i);if(r)return new Ge(ji(r[1],r[2]))}return null}constructor(t){super(),this.fixed=t}get type(){return"fixed"}get name(){return this.fixed===0?"UTC":`UTC${si(this.fixed,"narrow")}`}get ianaName(){return this.fixed===0?"Etc/UTC":`Etc/GMT${si(-this.fixed,"narrow")}`}offsetName(){return this.name}formatOffset(t,r){return si(this.fixed,r)}get isUniversal(){return!0}offset(){return this.fixed}equals(t){return t.type==="fixed"&&t.fixed===this.fixed}get isValid(){return!0}};var rs=class extends qt{constructor(t){super(),this.zoneName=t}get type(){return"invalid"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(){return null}formatOffset(){return""}offset(){return NaN}equals(){return!1}get isValid(){return!1}};function Or(e,t){let r;if(ae(e)||e===null)return t;if(e instanceof qt)return e;if(zE(e)){let n=e.toLowerCase();return n==="default"?t:n==="local"||n==="system"?Yr.instance:n==="utc"||n==="gmt"?Ge.utcInstance:Ge.parseSpecifier(n)||dt.create(e)}else return Gr(e)?Ge.instance(e):typeof e=="object"&&e.offset&&typeof e.offset=="number"?e:new rs(e)}var QE=()=>Date.now(),JE="system",KE=null,e2=null,t2=null,r2,Me=class{static get now(){return QE}static set now(t){QE=t}static set defaultZone(t){JE=t}static get defaultZone(){return Or(JE,Yr.instance)}static get defaultLocale(){return KE}static set defaultLocale(t){KE=t}static get defaultNumberingSystem(){return e2}static set defaultNumberingSystem(t){e2=t}static get defaultOutputCalendar(){return t2}static set defaultOutputCalendar(t){t2=t}static get throwOnInvalid(){return r2}static set throwOnInvalid(t){r2=t}static resetCaches(){Se.resetCache(),dt.resetCache()}};var n2={};function tM(e,t={}){let r=JSON.stringify([e,t]),n=n2[r];return n||(n=new Intl.ListFormat(e,t),n2[r]=n),n}var Pm={};function Om(e,t={}){let r=JSON.stringify([e,t]),n=Pm[r];return n||(n=new Intl.DateTimeFormat(e,t),Pm[r]=n),n}var Am={};function rM(e,t={}){let r=JSON.stringify([e,t]),n=Am[r];return n||(n=new Intl.NumberFormat(e,t),Am[r]=n),n}var Nm={};function nM(e,t={}){let s=t,{base:r}=s,n=Ef(s,["base"]),i=JSON.stringify([e,n]),o=Nm[i];return o||(o=new Intl.RelativeTimeFormat(e,t),Nm[i]=o),o}var Ka=null;function iM(){return Ka||(Ka=new Intl.DateTimeFormat().resolvedOptions().locale,Ka)}function oM(e){let t=e.indexOf("-u-");if(t===-1)return[e];{let r,n=e.substring(0,t);try{r=Om(e).resolvedOptions()}catch(s){r=Om(n).resolvedOptions()}let{numberingSystem:i,calendar:o}=r;return[n,i,o]}}function sM(e,t,r){return(r||t)&&(e+="-u",r&&(e+=`-ca-${r}`),t&&(e+=`-nu-${t}`)),e}function aM(e){let t=[];for(let r=1;r<=12;r++){let n=G.utc(2016,r,1);t.push(e(n))}return t}function lM(e){let t=[];for(let r=1;r<=7;r++){let n=G.utc(2016,11,13+r);t.push(e(n))}return t}function Jc(e,t,r,n,i){let o=e.listingMode(r);return o==="error"?null:o==="en"?n(t):i(t)}function uM(e){return e.numberingSystem&&e.numberingSystem!=="latn"?!1:e.numberingSystem==="latn"||!e.locale||e.locale.startsWith("en")||new Intl.DateTimeFormat(e.intl).resolvedOptions().numberingSystem==="latn"}var Fm=class{constructor(t,r,n){this.padTo=n.padTo||0,this.floor=n.floor||!1;let a=n,{padTo:i,floor:o}=a,s=Ef(a,["padTo","floor"]);if(!r||Object.keys(s).length>0){let l=D({useGrouping:!1},n);n.padTo>0&&(l.minimumIntegerDigits=n.padTo),this.inf=rM(t,l)}}format(t){if(this.inf){let r=this.floor?Math.floor(t):t;return this.inf.format(r)}else{let r=this.floor?Math.floor(t):Jo(t,3);return qe(r,this.padTo)}}},Rm=class{constructor(t,r,n){this.opts=n;let i;if(t.zone.isUniversal){let s=-1*(t.offset/60),a=s>=0?`Etc/GMT+${s}`:`Etc/GMT${s}`;t.offset!==0&&dt.create(a).valid?(i=a,this.dt=t):(i="UTC",n.timeZoneName?this.dt=t:this.dt=t.offset===0?t:G.fromMillis(t.ts+t.offset*60*1e3))}else t.zone.type==="system"?this.dt=t:(this.dt=t,i=t.zone.name);let o=D({},this.opts);i&&(o.timeZone=i),this.dtf=Om(r,o)}format(){return this.dtf.format(this.dt.toJSDate())}formatToParts(){return this.dtf.formatToParts(this.dt.toJSDate())}resolvedOptions(){return this.dtf.resolvedOptions()}},Lm=class{constructor(t,r,n){this.opts=D({style:"long"},n),!r&&Zc()&&(this.rtf=nM(t,n))}format(t,r){return this.rtf?this.rtf.format(t,r):YE(r,t,this.opts.numeric,this.opts.style!=="long")}formatToParts(t,r){return this.rtf?this.rtf.formatToParts(t,r):[]}},Se=class{static fromOpts(t){return Se.create(t.locale,t.numberingSystem,t.outputCalendar,t.defaultToEN)}static create(t,r,n,i=!1){let o=t||Me.defaultLocale,s=o||(i?"en-US":iM()),a=r||Me.defaultNumberingSystem,l=n||Me.defaultOutputCalendar;return new Se(s,a,l,o)}static resetCache(){Ka=null,Pm={},Am={},Nm={}}static fromObject({locale:t,numberingSystem:r,outputCalendar:n}={}){return Se.create(t,r,n)}constructor(t,r,n,i){let[o,s,a]=oM(t);this.locale=o,this.numberingSystem=r||s||null,this.outputCalendar=n||a||null,this.intl=sM(this.locale,this.numberingSystem,this.outputCalendar),this.weekdaysCache={format:{},standalone:{}},this.monthsCache={format:{},standalone:{}},this.meridiemCache=null,this.eraCache={},this.specifiedLocale=i,this.fastNumbersCached=null}get fastNumbers(){return this.fastNumbersCached==null&&(this.fastNumbersCached=uM(this)),this.fastNumbersCached}listingMode(){let t=this.isEnglish(),r=(this.numberingSystem===null||this.numberingSystem==="latn")&&(this.outputCalendar===null||this.outputCalendar==="gregory");return t&&r?"en":"intl"}clone(t){return!t||Object.getOwnPropertyNames(t).length===0?this:Se.create(t.locale||this.specifiedLocale,t.numberingSystem||this.numberingSystem,t.outputCalendar||this.outputCalendar,t.defaultToEN||!1)}redefaultToEN(t={}){return this.clone(Je(D({},t),{defaultToEN:!0}))}redefaultToSystem(t={}){return this.clone(Je(D({},t),{defaultToEN:!1}))}months(t,r=!1,n=!0){return Jc(this,t,n,Em,()=>{let i=r?{month:t,day:"numeric"}:{month:t},o=r?"format":"standalone";return this.monthsCache[o][t]||(this.monthsCache[o][t]=aM(s=>this.extract(s,i,"month"))),this.monthsCache[o][t]})}weekdays(t,r=!1,n=!0){return Jc(this,t,n,Tm,()=>{let i=r?{weekday:t,year:"numeric",month:"long",day:"numeric"}:{weekday:t},o=r?"format":"standalone";return this.weekdaysCache[o][t]||(this.weekdaysCache[o][t]=lM(s=>this.extract(s,i,"weekday"))),this.weekdaysCache[o][t]})}meridiems(t=!0){return Jc(this,void 0,t,()=>Cm,()=>{if(!this.meridiemCache){let r={hour:"numeric",hourCycle:"h12"};this.meridiemCache=[G.utc(2016,11,13,9),G.utc(2016,11,13,19)].map(n=>this.extract(n,r,"dayperiod"))}return this.meridiemCache})}eras(t,r=!0){return Jc(this,t,r,bm,()=>{let n={era:t};return this.eraCache[t]||(this.eraCache[t]=[G.utc(-40,1,1),G.utc(2017,1,1)].map(i=>this.extract(i,n,"era"))),this.eraCache[t]})}extract(t,r,n){let i=this.dtFormatter(t,r),o=i.formatToParts(),s=o.find(a=>a.type.toLowerCase()===n);return s?s.value:null}numberFormatter(t={}){return new Fm(this.intl,t.forceSimple||this.fastNumbers,t)}dtFormatter(t,r={}){return new Rm(t,this.intl,r)}relFormatter(t={}){return new Lm(this.intl,this.isEnglish(),t)}listFormatter(t={}){return tM(this.intl,t)}isEnglish(){return this.locale==="en"||this.locale.toLowerCase()==="en-us"||new Intl.DateTimeFormat(this.intl).resolvedOptions().locale.startsWith("en-us")}equals(t){return this.locale===t.locale&&this.numberingSystem===t.numberingSystem&&this.outputCalendar===t.outputCalendar}};function is(...e){let t=e.reduce((r,n)=>r+n.source,"");return RegExp(`^${t}$`)}function os(...e){return t=>e.reduce(([r,n,i],o)=>{let[s,a,l]=o(t,i);return[D(D({},r),s),a||n,l]},[{},null,1]).slice(0,2)}function ss(e,...t){if(e==null)return[null,null];for(let[r,n]of t){let i=r.exec(e);if(i)return n(i)}return[null,null]}function o2(...e){return(t,r)=>{let n={},i;for(i=0;i<e.length;i++)n[e[i]]=En(t[r+i]);return[n,null,r+i]}}var s2=/(?:(Z)|([+-]\d\d)(?::?(\d\d))?)/,cM=`(?:${s2.source}?(?:\\[(${wm.source})\\])?)?`,Dm=/(\d\d)(?::?(\d\d)(?::?(\d\d)(?:[.,](\d{1,30}))?)?)?/,a2=RegExp(`${Dm.source}${cM}`),Bm=RegExp(`(?:T${a2.source})?`),fM=/([+-]\d{6}|\d{4})(?:-?(\d\d)(?:-?(\d\d))?)?/,dM=/(\d{4})-?W(\d\d)(?:-?(\d))?/,pM=/(\d{4})-?(\d{3})/,hM=o2("weekYear","weekNumber","weekDay"),mM=o2("year","ordinal"),yM=/(\d{4})-(\d\d)-(\d\d)/,l2=RegExp(`${Dm.source} ?(?:${s2.source}|(${wm.source}))?`),gM=RegExp(`(?: ${l2.source})?`);function ns(e,t,r){let n=e[t];return ae(n)?r:En(n)}function vM(e,t){return[{year:ns(e,t),month:ns(e,t+1,1),day:ns(e,t+2,1)},null,t+3]}function as(e,t){return[{hours:ns(e,t,0),minutes:ns(e,t+1,0),seconds:ns(e,t+2,0),milliseconds:Ya(e[t+3])},null,t+4]}function el(e,t){let r=!e[t]&&!e[t+1],n=ji(e[t+1],e[t+2]),i=r?null:Ge.instance(n);return[{},i,t+3]}function tl(e,t){let r=e[t]?dt.create(e[t]):null;return[{},r,t+1]}var wM=RegExp(`^T?${Dm.source}$`),SM=/^-?P(?:(?:(-?\d{1,20}(?:\.\d{1,20})?)Y)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20}(?:\.\d{1,20})?)W)?(?:(-?\d{1,20}(?:\.\d{1,20})?)D)?(?:T(?:(-?\d{1,20}(?:\.\d{1,20})?)H)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20})(?:[.,](-?\d{1,20}))?S)?)?)$/;function EM(e){let[t,r,n,i,o,s,a,l,u]=e,c=t[0]==="-",f=l&&l[0]==="-",h=(d,g=!1)=>d!==void 0&&(g||d&&c)?-d:d;return[{years:h(oi(r)),months:h(oi(n)),weeks:h(oi(i)),days:h(oi(o)),hours:h(oi(s)),minutes:h(oi(a)),seconds:h(oi(l),l==="-0"),milliseconds:h(Ya(u),f)}]}var xM={GMT:0,EDT:-4*60,EST:-5*60,CDT:-5*60,CST:-6*60,MDT:-6*60,MST:-7*60,PDT:-7*60,PST:-8*60};function Um(e,t,r,n,i,o,s){let a={year:t.length===2?Qa(En(t)):En(t),month:Sm.indexOf(r)+1,day:En(n),hour:En(i),minute:En(o)};return s&&(a.second=En(s)),e&&(a.weekday=e.length>3?xm.indexOf(e)+1:_m.indexOf(e)+1),a}var _M=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|(?:([+-]\d\d)(\d\d)))$/;function TM(e){let[,t,r,n,i,o,s,a,l,u,c,f]=e,h=Um(t,i,n,r,o,s,a),d;return l?d=xM[l]:u?d=0:d=ji(c,f),[h,new Ge(d)]}function CM(e){return e.replace(/\([^)]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").trim()}var bM=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\d\d) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\d{4}) (\d\d):(\d\d):(\d\d) GMT$/,kM=/^(Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|Sunday), (\d\d)-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\d\d) (\d\d):(\d\d):(\d\d) GMT$/,IM=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( \d|\d\d) (\d\d):(\d\d):(\d\d) (\d{4})$/;function i2(e){let[,t,r,n,i,o,s,a]=e;return[Um(t,i,n,r,o,s,a),Ge.utcInstance]}function MM(e){let[,t,r,n,i,o,s,a]=e;return[Um(t,a,r,n,i,o,s),Ge.utcInstance]}var PM=is(fM,Bm),OM=is(dM,Bm),AM=is(pM,Bm),NM=is(a2),u2=os(vM,as,el,tl),FM=os(hM,as,el,tl),RM=os(mM,as,el,tl),LM=os(as,el,tl);function c2(e){return ss(e,[PM,u2],[OM,FM],[AM,RM],[NM,LM])}function f2(e){return ss(CM(e),[_M,TM])}function d2(e){return ss(e,[bM,i2],[kM,i2],[IM,MM])}function p2(e){return ss(e,[SM,EM])}var DM=os(as);function h2(e){return ss(e,[wM,DM])}var BM=is(yM,gM),UM=is(l2),HM=os(as,el,tl);function m2(e){return ss(e,[BM,u2],[UM,HM])}var zM="Invalid Duration",y2={weeks:{days:7,hours:7*24,minutes:7*24*60,seconds:7*24*60*60,milliseconds:7*24*60*60*1e3},days:{hours:24,minutes:24*60,seconds:24*60*60,milliseconds:24*60*60*1e3},hours:{minutes:60,seconds:60*60,milliseconds:60*60*1e3},minutes:{seconds:60,milliseconds:60*1e3},seconds:{milliseconds:1e3}},jM=D({years:{quarters:4,months:12,weeks:52,days:365,hours:365*24,minutes:365*24*60,seconds:365*24*60*60,milliseconds:365*24*60*60*1e3},quarters:{months:3,weeks:13,days:91,hours:91*24,minutes:91*24*60,seconds:91*24*60*60,milliseconds:91*24*60*60*1e3},months:{weeks:4,days:30,hours:30*24,minutes:30*24*60,seconds:30*24*60*60,milliseconds:30*24*60*60*1e3}},y2),gr=146097/400,ls=146097/4800,VM=D({years:{quarters:4,months:12,weeks:gr/7,days:gr,hours:gr*24,minutes:gr*24*60,seconds:gr*24*60*60,milliseconds:gr*24*60*60*1e3},quarters:{months:3,weeks:gr/28,days:gr/4,hours:gr*24/4,minutes:gr*24*60/4,seconds:gr*24*60*60/4,milliseconds:gr*24*60*60*1e3/4},months:{weeks:ls/7,days:ls,hours:ls*24,minutes:ls*24*60,seconds:ls*24*60*60,milliseconds:ls*24*60*60*1e3}},y2),$i=["years","quarters","months","weeks","days","hours","minutes","seconds","milliseconds"],$M=$i.slice(0).reverse();function Vi(e,t,r=!1){let n={values:r?t.values:D(D({},e.values),t.values||{}),loc:e.loc.clone(t.loc),conversionAccuracy:t.conversionAccuracy||e.conversionAccuracy};return new ee(n)}function WM(e){return e<0?Math.floor(e):Math.ceil(e)}function g2(e,t,r,n,i){let o=e[i][r],s=t[r]/o,a=Math.sign(s)===Math.sign(n[i]),l=!a&&n[i]!==0&&Math.abs(s)<=1?WM(s):Math.trunc(s);n[i]+=l,t[r]-=l*o}function qM(e,t){$M.reduce((r,n)=>ae(t[n])?r:(r&&g2(e,t,r,t,n),n),null)}var ee=class{constructor(t){let r=t.conversionAccuracy==="longterm"||!1;this.values=t.values,this.loc=t.loc||Se.create(),this.conversionAccuracy=r?"longterm":"casual",this.invalid=t.invalid||null,this.matrix=r?VM:jM,this.isLuxonDuration=!0}static fromMillis(t,r){return ee.fromObject({milliseconds:t},r)}static fromObject(t,r={}){if(t==null||typeof t!="object")throw new wt(`Duration.fromObject: argument expected to be an object, got ${t===null?"null":typeof t}`);return new ee({values:ts(t,ee.normalizeUnit),loc:Se.fromObject(r),conversionAccuracy:r.conversionAccuracy})}static fromDurationLike(t){if(Gr(t))return ee.fromMillis(t);if(ee.isDuration(t))return t;if(typeof t=="object")return ee.fromObject(t);throw new wt(`Unknown duration argument ${t} of type ${typeof t}`)}static fromISO(t,r){let[n]=p2(t);return n?ee.fromObject(n,r):ee.invalid("unparsable",`the input "${t}" can't be parsed as ISO 8601`)}static fromISOTime(t,r){let[n]=h2(t);return n?ee.fromObject(n,r):ee.invalid("unparsable",`the input "${t}" can't be parsed as ISO 8601`)}static invalid(t,r=null){if(!t)throw new wt("need to specify a reason the Duration is invalid");let n=t instanceof St?t:new St(t,r);if(Me.throwOnInvalid)throw new Gc(n);return new ee({invalid:n})}static normalizeUnit(t){let r={year:"years",years:"years",quarter:"quarters",quarters:"quarters",month:"months",months:"months",week:"weeks",weeks:"weeks",day:"days",days:"days",hour:"hours",hours:"hours",minute:"minutes",minutes:"minutes",second:"seconds",seconds:"seconds",millisecond:"milliseconds",milliseconds:"milliseconds"}[t&&t.toLowerCase()];if(!r)throw new Xo(t);return r}static isDuration(t){return t&&t.isLuxonDuration||!1}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}toFormat(t,r={}){let n=Je(D({},r),{floor:r.round!==!1&&r.floor!==!1});return this.isValid?it.create(this.loc,n).formatDurationFromString(this,t):zM}toHuman(t={}){let r=$i.map(n=>{let i=this.values[n];return ae(i)?null:this.loc.numberFormatter(Je(D({style:"unit",unitDisplay:"long"},t),{unit:n.slice(0,-1)})).format(i)}).filter(n=>n);return this.loc.listFormatter(D({type:"conjunction",style:t.listStyle||"narrow"},t)).format(r)}toObject(){return this.isValid?D({},this.values):{}}toISO(){if(!this.isValid)return null;let t="P";return this.years!==0&&(t+=this.years+"Y"),(this.months!==0||this.quarters!==0)&&(t+=this.months+this.quarters*3+"M"),this.weeks!==0&&(t+=this.weeks+"W"),this.days!==0&&(t+=this.days+"D"),(this.hours!==0||this.minutes!==0||this.seconds!==0||this.milliseconds!==0)&&(t+="T"),this.hours!==0&&(t+=this.hours+"H"),this.minutes!==0&&(t+=this.minutes+"M"),(this.seconds!==0||this.milliseconds!==0)&&(t+=Jo(this.seconds+this.milliseconds/1e3,3)+"S"),t==="P"&&(t+="T0S"),t}toISOTime(t={}){if(!this.isValid)return null;let r=this.toMillis();if(r<0||r>=864e5)return null;t=D({suppressMilliseconds:!1,suppressSeconds:!1,includePrefix:!1,format:"extended"},t);let n=this.shiftTo("hours","minutes","seconds","milliseconds"),i=t.format==="basic"?"hhmm":"hh:mm";(!t.suppressSeconds||n.seconds!==0||n.milliseconds!==0)&&(i+=t.format==="basic"?"ss":":ss",(!t.suppressMilliseconds||n.milliseconds!==0)&&(i+=".SSS"));let o=n.toFormat(i);return t.includePrefix&&(o="T"+o),o}toJSON(){return this.toISO()}toString(){return this.toISO()}toMillis(){return this.as("milliseconds")}valueOf(){return this.toMillis()}plus(t){if(!this.isValid)return this;let r=ee.fromDurationLike(t),n={};for(let i of $i)(ii(r.values,i)||ii(this.values,i))&&(n[i]=r.get(i)+this.get(i));return Vi(this,{values:n},!0)}minus(t){if(!this.isValid)return this;let r=ee.fromDurationLike(t);return this.plus(r.negate())}mapUnits(t){if(!this.isValid)return this;let r={};for(let n of Object.keys(this.values))r[n]=vm(t(this.values[n],n));return Vi(this,{values:r},!0)}get(t){return this[ee.normalizeUnit(t)]}set(t){if(!this.isValid)return this;let r=D(D({},this.values),ts(t,ee.normalizeUnit));return Vi(this,{values:r})}reconfigure({locale:t,numberingSystem:r,conversionAccuracy:n}={}){let i=this.loc.clone({locale:t,numberingSystem:r}),o={loc:i};return n&&(o.conversionAccuracy=n),Vi(this,o)}as(t){return this.isValid?this.shiftTo(t).get(t):NaN}normalize(){if(!this.isValid)return this;let t=this.toObject();return qM(this.matrix,t),Vi(this,{values:t},!0)}shiftTo(...t){if(!this.isValid)return this;if(t.length===0)return this;t=t.map(s=>ee.normalizeUnit(s));let r={},n={},i=this.toObject(),o;for(let s of $i)if(t.indexOf(s)>=0){o=s;let a=0;for(let u in n)a+=this.matrix[u][s]*n[u],n[u]=0;Gr(i[s])&&(a+=i[s]);let l=Math.trunc(a);r[s]=l,n[s]=(a*1e3-l*1e3)/1e3;for(let u in i)$i.indexOf(u)>$i.indexOf(s)&&g2(this.matrix,i,u,r,s)}else Gr(i[s])&&(n[s]=i[s]);for(let s in n)n[s]!==0&&(r[o]+=s===o?n[s]:n[s]/this.matrix[o][s]);return Vi(this,{values:r},!0).normalize()}negate(){if(!this.isValid)return this;let t={};for(let r of Object.keys(this.values))t[r]=this.values[r]===0?0:-this.values[r];return Vi(this,{values:t},!0)}get years(){return this.isValid?this.values.years||0:NaN}get quarters(){return this.isValid?this.values.quarters||0:NaN}get months(){return this.isValid?this.values.months||0:NaN}get weeks(){return this.isValid?this.values.weeks||0:NaN}get days(){return this.isValid?this.values.days||0:NaN}get hours(){return this.isValid?this.values.hours||0:NaN}get minutes(){return this.isValid?this.values.minutes||0:NaN}get seconds(){return this.isValid?this.values.seconds||0:NaN}get milliseconds(){return this.isValid?this.values.milliseconds||0:NaN}get isValid(){return this.invalid===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}equals(t){if(!this.isValid||!t.isValid||!this.loc.equals(t.loc))return!1;function r(n,i){return n===void 0||n===0?i===void 0||i===0:n===i}for(let n of $i)if(!r(this.values[n],t.values[n]))return!1;return!0}};var rl="Invalid Interval";function GM(e,t){return!e||!e.isValid?Pe.invalid("missing or invalid start"):!t||!t.isValid?Pe.invalid("missing or invalid end"):t<e?Pe.invalid("end before start",`The end of an interval must be after its start, but you had start=${e.toISO()} and end=${t.toISO()}`):null}var Pe=class{constructor(t){this.s=t.start,this.e=t.end,this.invalid=t.invalid||null,this.isLuxonInterval=!0}static invalid(t,r=null){if(!t)throw new wt("need to specify a reason the Interval is invalid");let n=t instanceof St?t:new St(t,r);if(Me.throwOnInvalid)throw new qc(n);return new Pe({invalid:n})}static fromDateTimes(t,r){let n=us(t),i=us(r),o=GM(n,i);return o==null?new Pe({start:n,end:i}):o}static after(t,r){let n=ee.fromDurationLike(r),i=us(t);return Pe.fromDateTimes(i,i.plus(n))}static before(t,r){let n=ee.fromDurationLike(r),i=us(t);return Pe.fromDateTimes(i.minus(n),i)}static fromISO(t,r){let[n,i]=(t||"").split("/",2);if(n&&i){let o,s;try{o=G.fromISO(n,r),s=o.isValid}catch(u){s=!1}let a,l;try{a=G.fromISO(i,r),l=a.isValid}catch(u){l=!1}if(s&&l)return Pe.fromDateTimes(o,a);if(s){let u=ee.fromISO(i,r);if(u.isValid)return Pe.after(o,u)}else if(l){let u=ee.fromISO(n,r);if(u.isValid)return Pe.before(a,u)}}return Pe.invalid("unparsable",`the input "${t}" can't be parsed as ISO 8601`)}static isInterval(t){return t&&t.isLuxonInterval||!1}get start(){return this.isValid?this.s:null}get end(){return this.isValid?this.e:null}get isValid(){return this.invalidReason===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}length(t="milliseconds"){return this.isValid?this.toDuration(t).get(t):NaN}count(t="milliseconds"){if(!this.isValid)return NaN;let r=this.start.startOf(t),n=this.end.startOf(t);return Math.floor(n.diff(r,t).get(t))+1}hasSame(t){return this.isValid?this.isEmpty()||this.e.minus(1).hasSame(this.s,t):!1}isEmpty(){return this.s.valueOf()===this.e.valueOf()}isAfter(t){return this.isValid?this.s>t:!1}isBefore(t){return this.isValid?this.e<=t:!1}contains(t){return this.isValid?this.s<=t&&this.e>t:!1}set({start:t,end:r}={}){return this.isValid?Pe.fromDateTimes(t||this.s,r||this.e):this}splitAt(...t){if(!this.isValid)return[];let r=t.map(us).filter(s=>this.contains(s)).sort(),n=[],{s:i}=this,o=0;for(;i<this.e;){let s=r[o]||this.e,a=+s>+this.e?this.e:s;n.push(Pe.fromDateTimes(i,a)),i=a,o+=1}return n}splitBy(t){let r=ee.fromDurationLike(t);if(!this.isValid||!r.isValid||r.as("milliseconds")===0)return[];let{s:n}=this,i=1,o,s=[];for(;n<this.e;){let a=this.start.plus(r.mapUnits(l=>l*i));o=+a>+this.e?this.e:a,s.push(Pe.fromDateTimes(n,o)),n=o,i+=1}return s}divideEqually(t){return this.isValid?this.splitBy(this.length()/t).slice(0,t):[]}overlaps(t){return this.e>t.s&&this.s<t.e}abutsStart(t){return this.isValid?+this.e==+t.s:!1}abutsEnd(t){return this.isValid?+t.e==+this.s:!1}engulfs(t){return this.isValid?this.s<=t.s&&this.e>=t.e:!1}equals(t){return!this.isValid||!t.isValid?!1:this.s.equals(t.s)&&this.e.equals(t.e)}intersection(t){if(!this.isValid)return this;let r=this.s>t.s?this.s:t.s,n=this.e<t.e?this.e:t.e;return r>=n?null:Pe.fromDateTimes(r,n)}union(t){if(!this.isValid)return this;let r=this.s<t.s?this.s:t.s,n=this.e>t.e?this.e:t.e;return Pe.fromDateTimes(r,n)}static merge(t){let[r,n]=t.sort((i,o)=>i.s-o.s).reduce(([i,o],s)=>o?o.overlaps(s)||o.abutsStart(s)?[i,o.union(s)]:[i.concat([o]),s]:[i,s],[[],null]);return n&&r.push(n),r}static xor(t){let r=null,n=0,i=[],o=t.map(l=>[{time:l.s,type:"s"},{time:l.e,type:"e"}]),s=Array.prototype.concat(...o),a=s.sort((l,u)=>l.time-u.time);for(let l of a)n+=l.type==="s"?1:-1,n===1?r=l.time:(r&&+r!=+l.time&&i.push(Pe.fromDateTimes(r,l.time)),r=null);return Pe.merge(i)}difference(...t){return Pe.xor([this].concat(t)).map(r=>this.intersection(r)).filter(r=>r&&!r.isEmpty())}toString(){return this.isValid?`[${this.s.toISO()} \u2013 ${this.e.toISO()})`:rl}toISO(t){return this.isValid?`${this.s.toISO(t)}/${this.e.toISO(t)}`:rl}toISODate(){return this.isValid?`${this.s.toISODate()}/${this.e.toISODate()}`:rl}toISOTime(t){return this.isValid?`${this.s.toISOTime(t)}/${this.e.toISOTime(t)}`:rl}toFormat(t,{separator:r=" \u2013 "}={}){return this.isValid?`${this.s.toFormat(t)}${r}${this.e.toFormat(t)}`:rl}toDuration(t,r){return this.isValid?this.e.diff(this.s,t,r):ee.invalid(this.invalidReason)}mapEndpoints(t){return Pe.fromDateTimes(t(this.s),t(this.e))}};var xn=class{static hasDST(t=Me.defaultZone){let r=G.now().setZone(t).set({month:12});return!t.isUniversal&&r.offset!==r.set({month:6}).offset}static isValidIANAZone(t){return dt.isValidZone(t)}static normalizeZone(t){return Or(t,Me.defaultZone)}static months(t="long",{locale:r=null,numberingSystem:n=null,locObj:i=null,outputCalendar:o="gregory"}={}){return(i||Se.create(r,n,o)).months(t)}static monthsFormat(t="long",{locale:r=null,numberingSystem:n=null,locObj:i=null,outputCalendar:o="gregory"}={}){return(i||Se.create(r,n,o)).months(t,!0)}static weekdays(t="long",{locale:r=null,numberingSystem:n=null,locObj:i=null}={}){return(i||Se.create(r,n,null)).weekdays(t)}static weekdaysFormat(t="long",{locale:r=null,numberingSystem:n=null,locObj:i=null}={}){return(i||Se.create(r,n,null)).weekdays(t,!0)}static meridiems({locale:t=null}={}){return Se.create(t).meridiems()}static eras(t="short",{locale:r=null}={}){return Se.create(r,null,"gregory").eras(t)}static features(){return{relative:Zc()}}};function v2(e,t){let r=i=>i.toUTC(0,{keepLocalTime:!0}).startOf("day").valueOf(),n=r(t)-r(e);return Math.floor(ee.fromMillis(n).as("days"))}function ZM(e,t,r){let n=[["years",(a,l)=>l.year-a.year],["quarters",(a,l)=>l.quarter-a.quarter],["months",(a,l)=>l.month-a.month+(l.year-a.year)*12],["weeks",(a,l)=>{let u=v2(a,l);return(u-u%7)/7}],["days",v2]],i={},o,s;for(let[a,l]of n)if(r.indexOf(a)>=0){o=a;let u=l(e,t);s=e.plus({[a]:u}),s>t?(e=e.plus({[a]:u-1}),u-=1):e=s,i[a]=u}return[e,i,s,o]}function w2(e,t,r,n){let[i,o,s,a]=ZM(e,t,r),l=t-i,u=r.filter(f=>["hours","minutes","seconds","milliseconds"].indexOf(f)>=0);u.length===0&&(s<t&&(s=i.plus({[a]:1})),s!==i&&(o[a]=(o[a]||0)+l/(s-i)));let c=ee.fromObject(o,n);return u.length>0?ee.fromMillis(l,n).shiftTo(...u).plus(c):c}var Hm={arab:"[\u0660-\u0669]",arabext:"[\u06F0-\u06F9]",bali:"[\u1B50-\u1B59]",beng:"[\u09E6-\u09EF]",deva:"[\u0966-\u096F]",fullwide:"[\uFF10-\uFF19]",gujr:"[\u0AE6-\u0AEF]",hanidec:"[\u3007|\u4E00|\u4E8C|\u4E09|\u56DB|\u4E94|\u516D|\u4E03|\u516B|\u4E5D]",khmr:"[\u17E0-\u17E9]",knda:"[\u0CE6-\u0CEF]",laoo:"[\u0ED0-\u0ED9]",limb:"[\u1946-\u194F]",mlym:"[\u0D66-\u0D6F]",mong:"[\u1810-\u1819]",mymr:"[\u1040-\u1049]",orya:"[\u0B66-\u0B6F]",tamldec:"[\u0BE6-\u0BEF]",telu:"[\u0C66-\u0C6F]",thai:"[\u0E50-\u0E59]",tibt:"[\u0F20-\u0F29]",latn:"\\d"},S2={arab:[1632,1641],arabext:[1776,1785],bali:[6992,7001],beng:[2534,2543],deva:[2406,2415],fullwide:[65296,65303],gujr:[2790,2799],khmr:[6112,6121],knda:[3302,3311],laoo:[3792,3801],limb:[6470,6479],mlym:[3430,3439],mong:[6160,6169],mymr:[4160,4169],orya:[2918,2927],tamldec:[3046,3055],telu:[3174,3183],thai:[3664,3673],tibt:[3872,3881]},YM=Hm.hanidec.replace(/[\[|\]]/g,"").split("");function E2(e){let t=parseInt(e,10);if(isNaN(t)){t="";for(let r=0;r<e.length;r++){let n=e.charCodeAt(r);if(e[r].search(Hm.hanidec)!==-1)t+=YM.indexOf(e[r]);else for(let i in S2){let[o,s]=S2[i];n>=o&&n<=s&&(t+=n-o)}}return parseInt(t,10)}else return t}function vr({numberingSystem:e},t=""){return new RegExp(`${Hm[e||"latn"]}${t}`)}var XM="missing Intl.DateTimeFormat.formatToParts support";function Ee(e,t=r=>r){return{regex:e,deser:([r])=>t(E2(r))}}var QM=String.fromCharCode(160),T2=`[ ${QM}]`,C2=new RegExp(T2,"g");function JM(e){return e.replace(/\./g,"\\.?").replace(C2,T2)}function x2(e){return e.replace(/\./g,"").replace(C2," ").toLowerCase()}function Ar(e,t){return e===null?null:{regex:RegExp(e.map(JM).join("|")),deser:([r])=>e.findIndex(n=>x2(r)===x2(n))+t}}function _2(e,t){return{regex:e,deser:([,r,n])=>ji(r,n),groups:t}}function zm(e){return{regex:e,deser:([t])=>t}}function KM(e){return e.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}function e6(e,t){let r=vr(t),n=vr(t,"{2}"),i=vr(t,"{3}"),o=vr(t,"{4}"),s=vr(t,"{6}"),a=vr(t,"{1,2}"),l=vr(t,"{1,3}"),u=vr(t,"{1,6}"),c=vr(t,"{1,9}"),f=vr(t,"{2,4}"),h=vr(t,"{4,6}"),d=x=>({regex:RegExp(KM(x.val)),deser:([m])=>m,literal:!0}),y=(x=>{if(e.literal)return d(x);switch(x.val){case"G":return Ar(t.eras("short",!1),0);case"GG":return Ar(t.eras("long",!1),0);case"y":return Ee(u);case"yy":return Ee(f,Qa);case"yyyy":return Ee(o);case"yyyyy":return Ee(h);case"yyyyyy":return Ee(s);case"M":return Ee(a);case"MM":return Ee(n);case"MMM":return Ar(t.months("short",!0,!1),1);case"MMMM":return Ar(t.months("long",!0,!1),1);case"L":return Ee(a);case"LL":return Ee(n);case"LLL":return Ar(t.months("short",!1,!1),1);case"LLLL":return Ar(t.months("long",!1,!1),1);case"d":return Ee(a);case"dd":return Ee(n);case"o":return Ee(l);case"ooo":return Ee(i);case"HH":return Ee(n);case"H":return Ee(a);case"hh":return Ee(n);case"h":return Ee(a);case"mm":return Ee(n);case"m":return Ee(a);case"q":return Ee(a);case"qq":return Ee(n);case"s":return Ee(a);case"ss":return Ee(n);case"S":return Ee(l);case"SSS":return Ee(i);case"u":return zm(c);case"uu":return zm(a);case"uuu":return Ee(r);case"a":return Ar(t.meridiems(),0);case"kkkk":return Ee(o);case"kk":return Ee(f,Qa);case"W":return Ee(a);case"WW":return Ee(n);case"E":case"c":return Ee(r);case"EEE":return Ar(t.weekdays("short",!1,!1),1);case"EEEE":return Ar(t.weekdays("long",!1,!1),1);case"ccc":return Ar(t.weekdays("short",!0,!1),1);case"cccc":return Ar(t.weekdays("long",!0,!1),1);case"Z":case"ZZ":return _2(new RegExp(`([+-]${a.source})(?::(${n.source}))?`),2);case"ZZZ":return _2(new RegExp(`([+-]${a.source})(${n.source})?`),2);case"z":return zm(/[a-z_+-/]{1,256}?/i);default:return d(x)}})(e)||{invalidReason:XM};return y.token=e,y}var t6={year:{"2-digit":"yy",numeric:"yyyyy"},month:{numeric:"M","2-digit":"MM",short:"MMM",long:"MMMM"},day:{numeric:"d","2-digit":"dd"},weekday:{short:"EEE",long:"EEEE"},dayperiod:"a",dayPeriod:"a",hour:{numeric:"h","2-digit":"hh"},minute:{numeric:"m","2-digit":"mm"},second:{numeric:"s","2-digit":"ss"},timeZoneName:{long:"ZZZZZ",short:"ZZZ"}};function r6(e,t,r){let{type:n,value:i}=e;if(n==="literal")return{literal:!0,val:i};let o=r[n],s=t6[n];if(typeof s=="object"&&(s=s[o]),s)return{literal:!1,val:s}}function n6(e){return[`^${e.map(r=>r.regex).reduce((r,n)=>`${r}(${n.source})`,"")}$`,e]}function i6(e,t,r){let n=e.match(t);if(n){let i={},o=1;for(let s in r)if(ii(r,s)){let a=r[s],l=a.groups?a.groups+1:1;!a.literal&&a.token&&(i[a.token.val[0]]=a.deser(n.slice(o,o+l))),o+=l}return[n,i]}else return[n,{}]}function o6(e){let t=o=>{switch(o){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":case"H":return"hour";case"d":return"day";case"o":return"ordinal";case"L":case"M":return"month";case"y":return"year";case"E":case"c":return"weekday";case"W":return"weekNumber";case"k":return"weekYear";case"q":return"quarter";default:return null}},r=null,n;return ae(e.z)||(r=dt.create(e.z)),ae(e.Z)||(r||(r=new Ge(e.Z)),n=e.Z),ae(e.q)||(e.M=(e.q-1)*3+1),ae(e.h)||(e.h<12&&e.a===1?e.h+=12:e.h===12&&e.a===0&&(e.h=0)),e.G===0&&e.y&&(e.y=-e.y),ae(e.u)||(e.S=Ya(e.u)),[Object.keys(e).reduce((o,s)=>{let a=t(s);return a&&(o[a]=e[s]),o},{}),r,n]}var jm=null;function s6(){return jm||(jm=G.fromMillis(1555555555555)),jm}function a6(e,t){if(e.literal)return e;let r=it.macroTokenToFormatOpts(e.val),n=$m(r,t);return n==null||n.includes(void 0)?e:n}function l6(e,t){return Array.prototype.concat(...e.map(r=>a6(r,t)))}function Vm(e,t,r){let n=l6(it.parseFormat(r),e),i=n.map(s=>e6(s,e)),o=i.find(s=>s.invalidReason);if(o)return{input:t,tokens:n,invalidReason:o.invalidReason};{let[s,a]=n6(i),l=RegExp(s,"i"),[u,c]=i6(t,l,a),[f,h,d]=c?o6(c):[null,null,void 0];if(ii(c,"a")&&ii(c,"H"))throw new Sn("Can't include meridiem when specifying 24-hour format");return{input:t,tokens:n,regex:l,rawMatches:u,matches:c,result:f,zone:h,specificOffset:d}}}function b2(e,t,r){let{result:n,zone:i,specificOffset:o,invalidReason:s}=Vm(e,t,r);return[n,i,o,s]}function $m(e,t){return e?it.create(t,e).formatDateTimeParts(s6()).map(i=>r6(i,t,e)):null}var k2=[0,31,59,90,120,151,181,212,243,273,304,334],I2=[0,31,60,91,121,152,182,213,244,274,305,335];function wr(e,t){return new St("unit out of range",`you specified ${t} (of type ${typeof t}) as a ${e}, which is invalid`)}function M2(e,t,r){let n=new Date(Date.UTC(e,t-1,r));e<100&&e>=0&&n.setUTCFullYear(n.getUTCFullYear()-1900);let i=n.getUTCDay();return i===0?7:i}function P2(e,t,r){return r+(Hi(e)?I2:k2)[t-1]}function O2(e,t){let r=Hi(e)?I2:k2,n=r.findIndex(o=>o<t),i=t-r[n];return{month:n+1,day:i}}function Kc(e){let{year:t,month:r,day:n}=e,i=P2(t,r,n),o=M2(t,r,n),s=Math.floor((i-o+10)/7),a;return s<1?(a=t-1,s=es(a)):s>es(t)?(a=t+1,s=1):a=t,D({weekYear:a,weekNumber:s,weekday:o},Ja(e))}function Wm(e){let{weekYear:t,weekNumber:r,weekday:n}=e,i=M2(t,1,4),o=zi(t),s=r*7+n-i-3,a;s<1?(a=t-1,s+=zi(a)):s>o?(a=t+1,s-=zi(t)):a=t;let{month:l,day:u}=O2(a,s);return D({year:a,month:l,day:u},Ja(e))}function ef(e){let{year:t,month:r,day:n}=e,i=P2(t,r,n);return D({year:t,ordinal:i},Ja(e))}function qm(e){let{year:t,ordinal:r}=e,{month:n,day:i}=O2(t,r);return D({year:t,month:n,day:i},Ja(e))}function A2(e){let t=Za(e.weekYear),r=Zr(e.weekNumber,1,es(e.weekYear)),n=Zr(e.weekday,1,7);return t?r?n?!1:wr("weekday",e.weekday):wr("week",e.week):wr("weekYear",e.weekYear)}function N2(e){let t=Za(e.year),r=Zr(e.ordinal,1,zi(e.year));return t?r?!1:wr("ordinal",e.ordinal):wr("year",e.year)}function Gm(e){let t=Za(e.year),r=Zr(e.month,1,12),n=Zr(e.day,1,Ko(e.year,e.month));return t?r?n?!1:wr("day",e.day):wr("month",e.month):wr("year",e.year)}function Zm(e){let{hour:t,minute:r,second:n,millisecond:i}=e,o=Zr(t,0,23)||t===24&&r===0&&n===0&&i===0,s=Zr(r,0,59),a=Zr(n,0,59),l=Zr(i,0,999);return o?s?a?l?!1:wr("millisecond",i):wr("second",n):wr("minute",r):wr("hour",t)}var Ym="Invalid DateTime",F2=864e13;function tf(e){return new St("unsupported zone",`the zone "${e.name}" is not supported`)}function Xm(e){return e.weekData===null&&(e.weekData=Kc(e.c)),e.weekData}function nl(e,t){let r={ts:e.ts,zone:e.zone,c:e.c,o:e.o,loc:e.loc,invalid:e.invalid};return new G(Je(D(D({},r),t),{old:r}))}function j2(e,t,r){let n=e-t*60*1e3,i=r.offset(n);if(t===i)return[n,t];n-=(i-t)*60*1e3;let o=r.offset(n);return i===o?[n,i]:[e-Math.min(i,o)*60*1e3,Math.max(i,o)]}function R2(e,t){e+=t*60*1e3;let r=new Date(e);return{year:r.getUTCFullYear(),month:r.getUTCMonth()+1,day:r.getUTCDate(),hour:r.getUTCHours(),minute:r.getUTCMinutes(),second:r.getUTCSeconds(),millisecond:r.getUTCMilliseconds()}}function nf(e,t,r){return j2(Xa(e),t,r)}function L2(e,t){let r=e.o,n=e.c.year+Math.trunc(t.years),i=e.c.month+Math.trunc(t.months)+Math.trunc(t.quarters)*3,o=Je(D({},e.c),{year:n,month:i,day:Math.min(e.c.day,Ko(n,i))+Math.trunc(t.days)+Math.trunc(t.weeks)*7}),s=ee.fromObject({years:t.years-Math.trunc(t.years),quarters:t.quarters-Math.trunc(t.quarters),months:t.months-Math.trunc(t.months),weeks:t.weeks-Math.trunc(t.weeks),days:t.days-Math.trunc(t.days),hours:t.hours,minutes:t.minutes,seconds:t.seconds,milliseconds:t.milliseconds}).as("milliseconds"),a=Xa(o),[l,u]=j2(a,r,e.zone);return s!==0&&(l+=s,u=e.zone.offset(l)),{ts:l,o:u}}function il(e,t,r,n,i,o){let{setZone:s,zone:a}=r;if(e&&Object.keys(e).length!==0){let l=t||a,u=G.fromObject(e,Je(D({},r),{zone:l,specificOffset:o}));return s?u:u.setZone(a)}else return G.invalid(new St("unparsable",`the input "${i}" can't be parsed as ${n}`))}function rf(e,t,r=!0){return e.isValid?it.create(Se.create("en-US"),{allowZ:r,forceSimple:!0}).formatDateTimeFromString(e,t):null}function Qm(e,t){let r=e.c.year>9999||e.c.year<0,n="";return r&&e.c.year>=0&&(n+="+"),n+=qe(e.c.year,r?6:4),t?(n+="-",n+=qe(e.c.month),n+="-",n+=qe(e.c.day)):(n+=qe(e.c.month),n+=qe(e.c.day)),n}function D2(e,t,r,n,i,o){let s=qe(e.c.hour);return t?(s+=":",s+=qe(e.c.minute),(e.c.second!==0||!r)&&(s+=":")):s+=qe(e.c.minute),(e.c.second!==0||!r)&&(s+=qe(e.c.second),(e.c.millisecond!==0||!n)&&(s+=".",s+=qe(e.c.millisecond,3))),i&&(e.isOffsetFixed&&e.offset===0&&!o?s+="Z":e.o<0?(s+="-",s+=qe(Math.trunc(-e.o/60)),s+=":",s+=qe(Math.trunc(-e.o%60))):(s+="+",s+=qe(Math.trunc(e.o/60)),s+=":",s+=qe(Math.trunc(e.o%60)))),o&&(s+="["+e.zone.ianaName+"]"),s}var V2={month:1,day:1,hour:0,minute:0,second:0,millisecond:0},u6={weekNumber:1,weekday:1,hour:0,minute:0,second:0,millisecond:0},c6={ordinal:1,hour:0,minute:0,second:0,millisecond:0},$2=["year","month","day","hour","minute","second","millisecond"],f6=["weekYear","weekNumber","weekday","hour","minute","second","millisecond"],d6=["year","ordinal","hour","minute","second","millisecond"];function B2(e){let t={year:"year",years:"year",month:"month",months:"month",day:"day",days:"day",hour:"hour",hours:"hour",minute:"minute",minutes:"minute",quarter:"quarter",quarters:"quarter",second:"second",seconds:"second",millisecond:"millisecond",milliseconds:"millisecond",weekday:"weekday",weekdays:"weekday",weeknumber:"weekNumber",weeksnumber:"weekNumber",weeknumbers:"weekNumber",weekyear:"weekYear",weekyears:"weekYear",ordinal:"ordinal"}[e.toLowerCase()];if(!t)throw new Xo(e);return t}function U2(e,t){let r=Or(t.zone,Me.defaultZone),n=Se.fromObject(t),i=Me.now(),o,s;if(ae(e.year))o=i;else{for(let u of $2)ae(e[u])&&(e[u]=V2[u]);let a=Gm(e)||Zm(e);if(a)return G.invalid(a);let l=r.offset(i);[o,s]=nf(e,l,r)}return new G({ts:o,zone:r,loc:n,o:s})}function H2(e,t,r){let n=ae(r.round)?!0:r.round,i=(s,a)=>(s=Jo(s,n||r.calendary?0:2,!0),t.loc.clone(r).relFormatter(r).format(s,a)),o=s=>r.calendary?t.hasSame(e,s)?0:t.startOf(s).diff(e.startOf(s),s).get(s):t.diff(e,s).get(s);if(r.unit)return i(o(r.unit),r.unit);for(let s of r.units){let a=o(s);if(Math.abs(a)>=1)return i(a,s)}return i(e>t?-0:0,r.units[r.units.length-1])}function z2(e){let t={},r;return e.length>0&&typeof e[e.length-1]=="object"?(t=e[e.length-1],r=Array.from(e).slice(0,e.length-1)):r=Array.from(e),[t,r]}var G=class{constructor(t){let r=t.zone||Me.defaultZone,n=t.invalid||(Number.isNaN(t.ts)?new St("invalid input"):null)||(r.isValid?null:tf(r));this.ts=ae(t.ts)?Me.now():t.ts;let i=null,o=null;if(!n)if(t.old&&t.old.ts===this.ts&&t.old.zone.equals(r))[i,o]=[t.old.c,t.old.o];else{let a=r.offset(this.ts);i=R2(this.ts,a),n=Number.isNaN(i.year)?new St("invalid input"):null,i=n?null:i,o=n?null:a}this._zone=r,this.loc=t.loc||Se.create(),this.invalid=n,this.weekData=null,this.c=i,this.o=o,this.isLuxonDateTime=!0}static now(){return new G({})}static local(){let[t,r]=z2(arguments),[n,i,o,s,a,l,u]=r;return U2({year:n,month:i,day:o,hour:s,minute:a,second:l,millisecond:u},t)}static utc(){let[t,r]=z2(arguments),[n,i,o,s,a,l,u]=r;return t.zone=Ge.utcInstance,U2({year:n,month:i,day:o,hour:s,minute:a,second:l,millisecond:u},t)}static fromJSDate(t,r={}){let n=jE(t)?t.valueOf():NaN;if(Number.isNaN(n))return G.invalid("invalid input");let i=Or(r.zone,Me.defaultZone);return i.isValid?new G({ts:n,zone:i,loc:Se.fromObject(r)}):G.invalid(tf(i))}static fromMillis(t,r={}){if(Gr(t))return t<-F2||t>F2?G.invalid("Timestamp out of range"):new G({ts:t,zone:Or(r.zone,Me.defaultZone),loc:Se.fromObject(r)});throw new wt(`fromMillis requires a numerical input, but received a ${typeof t} with value ${t}`)}static fromSeconds(t,r={}){if(Gr(t))return new G({ts:t*1e3,zone:Or(r.zone,Me.defaultZone),loc:Se.fromObject(r)});throw new wt("fromSeconds requires a numerical input")}static fromObject(t,r={}){t=t||{};let n=Or(r.zone,Me.defaultZone);if(!n.isValid)return G.invalid(tf(n));let i=Me.now(),o=ae(r.specificOffset)?n.offset(i):r.specificOffset,s=ts(t,B2),a=!ae(s.ordinal),l=!ae(s.year),u=!ae(s.month)||!ae(s.day),c=l||u,f=s.weekYear||s.weekNumber,h=Se.fromObject(r);if((c||a)&&f)throw new Sn("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(u&&a)throw new Sn("Can't mix ordinal dates with month/day");let d=f||s.weekday&&!c,g,y,x=R2(i,o);d?(g=f6,y=u6,x=Kc(x)):a?(g=d6,y=c6,x=ef(x)):(g=$2,y=V2);let m=!1;for(let P of g){let V=s[P];ae(V)?m?s[P]=y[P]:s[P]=x[P]:m=!0}let p=d?A2(s):a?N2(s):Gm(s),v=p||Zm(s);if(v)return G.invalid(v);let w=d?Wm(s):a?qm(s):s,[T,k]=nf(w,o,n),I=new G({ts:T,zone:n,o:k,loc:h});return s.weekday&&c&&t.weekday!==I.weekday?G.invalid("mismatched weekday",`you can't specify both a weekday of ${s.weekday} and a date of ${I.toISO()}`):I}static fromISO(t,r={}){let[n,i]=c2(t);return il(n,i,r,"ISO 8601",t)}static fromRFC2822(t,r={}){let[n,i]=f2(t);return il(n,i,r,"RFC 2822",t)}static fromHTTP(t,r={}){let[n,i]=d2(t);return il(n,i,r,"HTTP",r)}static fromFormat(t,r,n={}){if(ae(t)||ae(r))throw new wt("fromFormat requires an input string and a format");let{locale:i=null,numberingSystem:o=null}=n,s=Se.fromOpts({locale:i,numberingSystem:o,defaultToEN:!0}),[a,l,u,c]=b2(s,t,r);return c?G.invalid(c):il(a,l,n,`format ${r}`,t,u)}static fromString(t,r,n={}){return G.fromFormat(t,r,n)}static fromSQL(t,r={}){let[n,i]=m2(t);return il(n,i,r,"SQL",t)}static invalid(t,r=null){if(!t)throw new wt("need to specify a reason the DateTime is invalid");let n=t instanceof St?t:new St(t,r);if(Me.throwOnInvalid)throw new Wc(n);return new G({invalid:n})}static isDateTime(t){return t&&t.isLuxonDateTime||!1}static parseFormatForOpts(t,r={}){let n=$m(t,Se.fromObject(r));return n?n.map(i=>i?i.val:null).join(""):null}get(t){return this[t]}get isValid(){return this.invalid===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}get outputCalendar(){return this.isValid?this.loc.outputCalendar:null}get zone(){return this._zone}get zoneName(){return this.isValid?this.zone.name:null}get year(){return this.isValid?this.c.year:NaN}get quarter(){return this.isValid?Math.ceil(this.c.month/3):NaN}get month(){return this.isValid?this.c.month:NaN}get day(){return this.isValid?this.c.day:NaN}get hour(){return this.isValid?this.c.hour:NaN}get minute(){return this.isValid?this.c.minute:NaN}get second(){return this.isValid?this.c.second:NaN}get millisecond(){return this.isValid?this.c.millisecond:NaN}get weekYear(){return this.isValid?Xm(this).weekYear:NaN}get weekNumber(){return this.isValid?Xm(this).weekNumber:NaN}get weekday(){return this.isValid?Xm(this).weekday:NaN}get ordinal(){return this.isValid?ef(this.c).ordinal:NaN}get monthShort(){return this.isValid?xn.months("short",{locObj:this.loc})[this.month-1]:null}get monthLong(){return this.isValid?xn.months("long",{locObj:this.loc})[this.month-1]:null}get weekdayShort(){return this.isValid?xn.weekdays("short",{locObj:this.loc})[this.weekday-1]:null}get weekdayLong(){return this.isValid?xn.weekdays("long",{locObj:this.loc})[this.weekday-1]:null}get offset(){return this.isValid?+this.o:NaN}get offsetNameShort(){return this.isValid?this.zone.offsetName(this.ts,{format:"short",locale:this.locale}):null}get offsetNameLong(){return this.isValid?this.zone.offsetName(this.ts,{format:"long",locale:this.locale}):null}get isOffsetFixed(){return this.isValid?this.zone.isUniversal:null}get isInDST(){return this.isOffsetFixed?!1:this.offset>this.set({month:1,day:1}).offset||this.offset>this.set({month:5}).offset}get isInLeapYear(){return Hi(this.year)}get daysInMonth(){return Ko(this.year,this.month)}get daysInYear(){return this.isValid?zi(this.year):NaN}get weeksInWeekYear(){return this.isValid?es(this.weekYear):NaN}resolvedLocaleOptions(t={}){let{locale:r,numberingSystem:n,calendar:i}=it.create(this.loc.clone(t),t).resolvedOptions(this);return{locale:r,numberingSystem:n,outputCalendar:i}}toUTC(t=0,r={}){return this.setZone(Ge.instance(t),r)}toLocal(){return this.setZone(Me.defaultZone)}setZone(t,{keepLocalTime:r=!1,keepCalendarTime:n=!1}={}){if(t=Or(t,Me.defaultZone),t.equals(this.zone))return this;if(t.isValid){let i=this.ts;if(r||n){let o=t.offset(this.ts),s=this.toObject();[i]=nf(s,o,t)}return nl(this,{ts:i,zone:t})}else return G.invalid(tf(t))}reconfigure({locale:t,numberingSystem:r,outputCalendar:n}={}){let i=this.loc.clone({locale:t,numberingSystem:r,outputCalendar:n});return nl(this,{loc:i})}setLocale(t){return this.reconfigure({locale:t})}set(t){if(!this.isValid)return this;let r=ts(t,B2),n=!ae(r.weekYear)||!ae(r.weekNumber)||!ae(r.weekday),i=!ae(r.ordinal),o=!ae(r.year),s=!ae(r.month)||!ae(r.day),a=o||s,l=r.weekYear||r.weekNumber;if((a||i)&&l)throw new Sn("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(s&&i)throw new Sn("Can't mix ordinal dates with month/day");let u;n?u=Wm(D(D({},Kc(this.c)),r)):ae(r.ordinal)?(u=D(D({},this.toObject()),r),ae(r.day)&&(u.day=Math.min(Ko(u.year,u.month),u.day))):u=qm(D(D({},ef(this.c)),r));let[c,f]=nf(u,this.o,this.zone);return nl(this,{ts:c,o:f})}plus(t){if(!this.isValid)return this;let r=ee.fromDurationLike(t);return nl(this,L2(this,r))}minus(t){if(!this.isValid)return this;let r=ee.fromDurationLike(t).negate();return nl(this,L2(this,r))}startOf(t){if(!this.isValid)return this;let r={},n=ee.normalizeUnit(t);switch(n){case"years":r.month=1;case"quarters":case"months":r.day=1;case"weeks":case"days":r.hour=0;case"hours":r.minute=0;case"minutes":r.second=0;case"seconds":r.millisecond=0;break;case"milliseconds":break}if(n==="weeks"&&(r.weekday=1),n==="quarters"){let i=Math.ceil(this.month/3);r.month=(i-1)*3+1}return this.set(r)}endOf(t){return this.isValid?this.plus({[t]:1}).startOf(t).minus(1):this}toFormat(t,r={}){return this.isValid?it.create(this.loc.redefaultToEN(r)).formatDateTimeFromString(this,t):Ym}toLocaleString(t=Qo,r={}){return this.isValid?it.create(this.loc.clone(r),t).formatDateTime(this):Ym}toLocaleParts(t={}){return this.isValid?it.create(this.loc.clone(t),t).formatDateTimeParts(this):[]}toISO({format:t="extended",suppressSeconds:r=!1,suppressMilliseconds:n=!1,includeOffset:i=!0,extendedZone:o=!1}={}){if(!this.isValid)return null;let s=t==="extended",a=Qm(this,s);return a+="T",a+=D2(this,s,r,n,i,o),a}toISODate({format:t="extended"}={}){return this.isValid?Qm(this,t==="extended"):null}toISOWeekDate(){return rf(this,"kkkk-'W'WW-c")}toISOTime({suppressMilliseconds:t=!1,suppressSeconds:r=!1,includeOffset:n=!0,includePrefix:i=!1,extendedZone:o=!1,format:s="extended"}={}){return this.isValid?(i?"T":"")+D2(this,s==="extended",r,t,n,o):null}toRFC2822(){return rf(this,"EEE, dd LLL yyyy HH:mm:ss ZZZ",!1)}toHTTP(){return rf(this.toUTC(),"EEE, dd LLL yyyy HH:mm:ss 'GMT'")}toSQLDate(){return this.isValid?Qm(this,!0):null}toSQLTime({includeOffset:t=!0,includeZone:r=!1,includeOffsetSpace:n=!0}={}){let i="HH:mm:ss.SSS";return(r||t)&&(n&&(i+=" "),r?i+="z":t&&(i+="ZZ")),rf(this,i,!0)}toSQL(t={}){return this.isValid?`${this.toSQLDate()} ${this.toSQLTime(t)}`:null}toString(){return this.isValid?this.toISO():Ym}valueOf(){return this.toMillis()}toMillis(){return this.isValid?this.ts:NaN}toSeconds(){return this.isValid?this.ts/1e3:NaN}toUnixInteger(){return this.isValid?Math.floor(this.ts/1e3):NaN}toJSON(){return this.toISO()}toBSON(){return this.toJSDate()}toObject(t={}){if(!this.isValid)return{};let r=D({},this.c);return t.includeConfig&&(r.outputCalendar=this.outputCalendar,r.numberingSystem=this.loc.numberingSystem,r.locale=this.loc.locale),r}toJSDate(){return new Date(this.isValid?this.ts:NaN)}diff(t,r="milliseconds",n={}){if(!this.isValid||!t.isValid)return ee.invalid("created by diffing an invalid DateTime");let i=D({locale:this.locale,numberingSystem:this.numberingSystem},n),o=VE(r).map(ee.normalizeUnit),s=t.valueOf()>this.valueOf(),a=s?this:t,l=s?t:this,u=w2(a,l,o,i);return s?u.negate():u}diffNow(t="milliseconds",r={}){return this.diff(G.now(),t,r)}until(t){return this.isValid?Pe.fromDateTimes(this,t):this}hasSame(t,r){if(!this.isValid)return!1;let n=t.valueOf(),i=this.setZone(t.zone,{keepLocalTime:!0});return i.startOf(r)<=n&&n<=i.endOf(r)}equals(t){return this.isValid&&t.isValid&&this.valueOf()===t.valueOf()&&this.zone.equals(t.zone)&&this.loc.equals(t.loc)}toRelative(t={}){if(!this.isValid)return null;let r=t.base||G.fromObject({},{zone:this.zone}),n=t.padding?this<r?-t.padding:t.padding:0,i=["years","months","days","hours","minutes","seconds"],o=t.unit;return Array.isArray(t.unit)&&(i=t.unit,o=void 0),H2(r,this.plus(n),Je(D({},t),{numeric:"always",units:i,unit:o}))}toRelativeCalendar(t={}){return this.isValid?H2(t.base||G.fromObject({},{zone:this.zone}),this,Je(D({},t),{numeric:"auto",units:["years","months","days"],calendary:!0})):null}static min(...t){if(!t.every(G.isDateTime))throw new wt("min requires all arguments be DateTimes");return gm(t,r=>r.valueOf(),Math.min)}static max(...t){if(!t.every(G.isDateTime))throw new wt("max requires all arguments be DateTimes");return gm(t,r=>r.valueOf(),Math.max)}static fromFormatExplain(t,r,n={}){let{locale:i=null,numberingSystem:o=null}=n,s=Se.fromOpts({locale:i,numberingSystem:o,defaultToEN:!0});return Vm(s,t,r)}static fromStringExplain(t,r,n={}){return G.fromFormatExplain(t,r,n)}static get DATE_SHORT(){return Qo}static get DATE_MED(){return Ma}static get DATE_MED_WITH_WEEKDAY(){return hm}static get DATE_FULL(){return Pa}static get DATE_HUGE(){return Oa}static get TIME_SIMPLE(){return Aa}static get TIME_WITH_SECONDS(){return Na}static get TIME_WITH_SHORT_OFFSET(){return Fa}static get TIME_WITH_LONG_OFFSET(){return Ra}static get TIME_24_SIMPLE(){return La}static get TIME_24_WITH_SECONDS(){return Da}static get TIME_24_WITH_SHORT_OFFSET(){return Ba}static get TIME_24_WITH_LONG_OFFSET(){return Ua}static get DATETIME_SHORT(){return Ha}static get DATETIME_SHORT_WITH_SECONDS(){return za}static get DATETIME_MED(){return ja}static get DATETIME_MED_WITH_SECONDS(){return Va}static get DATETIME_MED_WITH_WEEKDAY(){return mm}static get DATETIME_FULL(){return $a}static get DATETIME_FULL_WITH_SECONDS(){return Wa}static get DATETIME_HUGE(){return qa}static get DATETIME_HUGE_WITH_SECONDS(){return Ga}};function us(e){if(G.isDateTime(e))return e;if(e&&e.valueOf&&Gr(e.valueOf()))return G.fromJSDate(e);if(e&&typeof e=="object")return G.fromObject(e);throw new wt(`Unknown datetime argument: ${e}, of type ${typeof e}`)}var ol=q(xe()),p6=3e3,of=(e,t=p6)=>{let[r,n]=(0,ol.useState)(!1),i=()=>n(!0),o=()=>n(!1);return(0,ol.useEffect)(()=>{if(r){let s=setTimeout(o,t);return()=>{clearTimeout(s)}}}),(0,ol.useEffect)(()=>{let s=e.current;if(s!==null)return s.addEventListener("pointermove",i),r&&s.addEventListener("pointerleave",o),()=>{s.removeEventListener("pointermove",i),r&&s.removeEventListener("pointerleave",o)}},[r,e]),r};var ai=Y.button`
background: transparent;
fill: white;
border: none;
box-sizing: border-box;
padding: 0;
margin: 0;
line-height: 0;
:focus {
outline: none;
}
`;var sl=q(xe()),sf=({title:e})=>sl.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},e!==void 0?sl.default.createElement("title",null,e):null,sl.default.createElement("path",{d:"M6 19h4V5H6v14zm8-14v14h4V5h-4z"}),sl.default.createElement("path",{d:"M0 0h24v24H0z",fill:"none"}));var al=q(xe()),af=({title:e})=>al.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},e!==void 0?al.default.createElement("title",null,e):null,al.default.createElement("path",{d:"M8 5v14l11-7z"}),al.default.createElement("path",{d:"M0 0h24v24H0z",fill:"none"}));var ll=q(xe()),W2=({title:e})=>ll.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",height:"24",viewBox:"0 0 24 24",width:"24"},e!==void 0?ll.default.createElement("title",null,e):null,ll.default.createElement("path",{d:"M17.65 6.35C16.2 4.9 14.21 4 12 4c-4.42 0-7.99 3.58-7.99 8s3.57 8 7.99 8c3.73 0 6.84-2.55 7.73-6h-2.08c-.82 2.33-3.04 4-5.65 4-3.31 0-6-2.69-6-6s2.69-6 6-6c1.66 0 3.14.69 4.22 1.78L13 11h7V4l-2.35 2.35z"}),ll.default.createElement("path",{d:"M0 0h24v24H0z",fill:"none"}));var ul=q(xe()),q2=({title:e})=>ul.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 20 20"},e!==void 0?ul.default.createElement("title",null,e):null,ul.default.createElement("path",{fill:"none",d:"M0 0h20v20H0V0z"}),ul.default.createElement("path",{d:"M15.95 10.78c.03-.25.05-.51.05-.78s-.02-.53-.06-.78l1.69-1.32c.15-.12.19-.34.1-.51l-1.6-2.77c-.1-.18-.31-.24-.49-.18l-1.99.8c-.42-.32-.86-.58-1.35-.78L12 2.34c-.03-.2-.2-.34-.4-.34H8.4c-.2 0-.36.14-.39.34l-.3 2.12c-.49.2-.94.47-1.35.78l-1.99-.8c-.18-.07-.39 0-.49.18l-1.6 2.77c-.1.18-.06.39.1.51l1.69 1.32c-.04.25-.07.52-.07.78s.02.53.06.78L2.37 12.1c-.15.12-.19.34-.1.51l1.6 2.77c.1.18.31.24.49.18l1.99-.8c.42.32.86.58 1.35.78l.3 2.12c.04.2.2.34.4.34h3.2c.2 0 .37-.14.39-.34l.3-2.12c.49-.2.94-.47 1.35-.78l1.99.8c.18.07.39 0 .49-.18l1.6-2.77c.1-.18.06-.39-.1-.51l-1.67-1.32zM10 13c-1.65 0-3-1.35-3-3s1.35-3 3-3 3 1.35 3 3-1.35 3-3 3z"}));var nr=q(xe()),G2=()=>nr.default.createElement("svg",{width:"38",height:"38",viewBox:"0 0 38 38",xmlns:"http://www.w3.org/2000/svg"},nr.default.createElement("defs",null,nr.default.createElement("linearGradient",{x1:"8.042%",y1:"0%",x2:"65.682%",y2:"23.865%",id:"a"},nr.default.createElement("stop",{stopColor:"#fff",stopOpacity:"0",offset:"0%"}),nr.default.createElement("stop",{stopColor:"#fff",stopOpacity:".631",offset:"63.146%"}),nr.default.createElement("stop",{stopColor:"#fff",offset:"100%"}))),nr.default.createElement("g",{fill:"none",fillRule:"evenodd"},nr.default.createElement("g",{transform:"translate(1 1)"},nr.default.createElement("path",{d:"M36 18c0-9.94-8.06-18-18-18",id:"Oval-2",stroke:"url(#a)",strokeWidth:"2"},nr.default.createElement("animateTransform",{attributeName:"transform",type:"rotate",from:"0 18 18",to:"360 18 18",dur:"0.9s",repeatCount:"indefinite"})),nr.default.createElement("circle",{fill:"#fff",cx:"36",cy:"18",r:"1"},nr.default.createElement("animateTransform",{attributeName:"transform",type:"rotate",from:"0 18 18",to:"360 18 18",dur:"0.9s",repeatCount:"indefinite"})))));var cl=q(xe()),Z2=({title:e})=>cl.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},e!==void 0?cl.default.createElement("title",null,e):null,cl.default.createElement("path",{d:"M0 0h24v24H0z",fill:"none"}),cl.default.createElement("path",{d:"M6 6h12v12H6z"}));var cs=q(xe()),Y2=({title:e})=>cs.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},e!==void 0?cs.default.createElement("title",null,e):null,cs.default.createElement("path",{d:"M0 0h24v24H0z",fill:"none"}),cs.default.createElement("circle",{cx:"12",cy:"12",r:"3.2"}),cs.default.createElement("path",{d:"M9 2L7.17 4H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2h-3.17L15 2H9zm3 15c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5z"}));var lf=q(xe()),Jm=({title:e})=>lf.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},e!==void 0?lf.default.createElement("title",null,e):null,lf.default.createElement("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zM9 17H7v-7h2v7zm4 0h-2V7h2v10zm4 0h-2v-4h2v4z"}));var $=q(xe());var uf=q(xe());var h6=Y.label`
position: relative;
display: inline-block;
width: 28px;
height: 16px;
`,cf=Y.input`
opacity: 0;
width: 0;
height: 0;
`,m6=Y.span`
border-radius: 16px;
cursor: pointer;
position: absolute;
top: 0;
right: 0;
bottom: 0;
left: 0;
background-color: #ccc;
transition: 0.4s;
&:before {
border-radius: 50%;
content: '';
position: absolute;
height: 12px;
width: 12px;
left: 2px;
bottom: 2px;
background-color: white;
transition: 0.4s;
}
${cf}:checked + & {
background-color: #2196f3;
}
${cf}:checked + &:before {
transform: translateX(12px);
}
${cf}:focus + & {
box-shadow: 0 0 1px #2196f3;
}
`,Km=e=>uf.default.createElement(h6,null,uf.default.createElement(cf,D({type:"checkbox"},e)),uf.default.createElement(m6,null));var y6=Y.div`
font-family: sans-serif;
display: flex;
flex-direction: column;
position: absolute;
bottom: 32px;
right: 0;
background: rgb(0, 0, 0, 0.66);
padding: 8px 16px;
margin-bottom: 16px;
margin-right: 8px;
&:after {
content: '';
width: 10px;
height: 10px;
transform: rotate(45deg);
position: absolute;
bottom: -5px;
right: 12px;
background: rgb(0, 0, 0, 0.66);
}
`,fs=Y.div`
display: flex;
flex-direction: row;
color: white;
height: 24px;
width: 320px;
align-items: center;
justify-content: space-between;
margin: 4px 0;
`,X2=({parameters:e,format:t,onFormat:r,onVapix:n,showStatsOverlay:i,toggleStats:o})=>{let[s,a]=(0,$.useState)(e.textstring),l=(0,$.useRef)(),u=(0,$.useCallback)(y=>{let{name:x,value:m}=y.target;switch(x){case"textstring":a(m),clearTimeout(l.current),l.current=window.setTimeout(()=>{n(x,m)},300);break;case"text":n(x,m?"1":"0");break;default:console.warn("internal error")}},[n]),c=(0,$.useCallback)(y=>o(y.target.checked),[o]),f=(0,$.useCallback)(y=>r(y.target.value),[r]),h=(0,$.useCallback)(y=>n("resolution",y.target.value),[n]),d=(0,$.useCallback)(y=>n("rotation",y.target.value),[n]),g=(0,$.useCallback)(y=>n("compression",y.target.value),[n]);return $.default.createElement(y6,null,$.default.createElement(fs,null,$.default.createElement("div",null,"Format"),$.default.createElement("select",{onChange:f,defaultValue:t},$.default.createElement("option",{value:"RTP_H264"},"H.264 (RTP over WS)"),$.default.createElement("option",{value:"MP4_H264"},"H.264 (MP4 over HTTP)"),$.default.createElement("option",{value:"RTP_JPEG"},"Motion JPEG"),$.default.createElement("option",{value:"JPEG"},"Still image"))),$.default.createElement(fs,null,$.default.createElement("div",null,"Resolution"),$.default.createElement("select",{value:e.resolution,onChange:h},$.default.createElement("option",{value:""},"default"),$.default.createElement("option",{value:"1920x1080"},"1920 x 1080 (FHD)"),$.default.createElement("option",{value:"1280x720"},"1280 x 720 (HD)"),$.default.createElement("option",{value:"800x600"},"800 x 600 (VGA)"))),$.default.createElement(fs,null,$.default.createElement("div",null,"Rotation"),$.default.createElement("select",{value:e.rotation,onChange:d},$.default.createElement("option",{value:"0"},"0"),$.default.createElement("option",{value:"90"},"90"),$.default.createElement("option",{value:"180"},"180"),$.default.createElement("option",{value:"270"},"270"))),$.default.createElement(fs,null,$.default.createElement("div",null,"Compression"),$.default.createElement("select",{value:e.compression,onChange:g},$.default.createElement("option",{value:""},"default"),$.default.createElement("option",{value:"0"},"0"),$.default.createElement("option",{value:"10"},"10"),$.default.createElement("option",{value:"20"},"20"),$.default.createElement("option",{value:"30"},"30"),$.default.createElement("option",{value:"40"},"40"),$.default.createElement("option",{value:"50"},"50"),$.default.createElement("option",{value:"60"},"60"),$.default.createElement("option",{value:"70"},"70"),$.default.createElement("option",{value:"80"},"80"),$.default.createElement("option",{value:"90"},"90"),$.default.createElement("option",{value:"100"},"100"))),$.default.createElement(fs,null,$.default.createElement("div",null,"Text overlay"),$.default.createElement("input",{name:"textstring",value:s,onChange:u}),$.default.createElement(Km,{name:"text",checked:e.text==="1",onChange:u})),$.default.createElement(fs,null,$.default.createElement("div",null,"Stats overlay"),$.default.createElement(Km,{checked:i,onChange:c})))};function Q2(e){return e.buffered!==void 0}var e0=Y.div`
width: 100%;
height: 100%;
display: flex;
flex-direction: column;
justify-content: flex-end;
opacity: ${({visible:e})=>e?1:0};
transition: opacity 0.3s ease-in-out;
`,t0=Y.div`
width: 100%;
height: 32px;
background: rgb(0, 0, 0, 0.66);
display: flex;
align-items: center;
padding: 0 16px;
box-sizing: border-box;
`,g6=Y.div`
margin-left: 8px;
`,v6=Y.div`
flex-grow: 2;
padding: 0 32px;
display: flex;
align-items: center;
`,J2=Y.div`
margin: 0;
width: 100%;
height: 24px;
position: relative;
display: flex;
flex-direction: column;
justify-content: center;
`,w6=Y.div`
background-color: rgba(255, 255, 255, 0.1);
height: 1px;
position: relative;
width: 100%;
${J2}:hover > & {
height: 3px;
}
`,S6=Y.div.attrs(({fraction:e})=>({style:{transform:`scaleX(${e})`}}))`
background-color: rgb(240, 180, 0);
height: 100%;
position: absolute;
top: 0;
transform: scaleX(0);
transform-origin: 0 0;
width: 100%;
`,E6=Y.div.attrs(({fraction:e})=>({style:{transform:`scaleX(${e})`}}))`
background-color: rgba(255, 255, 255, 0.2);
height: 100%;
position: absolute;
top: 0;
transform: scaleX(0);
transform-origin: 0 0;
width: 100%;
`,x6=Y.div.attrs(({left:e})=>({style:{left:`${e}px`}}))`
background-color: rgb(56, 55, 51);
border-radius: 3px;
bottom: 200%;
color: #fff;
font-size: 9px;
padding: 5px;
position: absolute;
text-align: center;
`,_6=Y.div`
color: rgb(240, 180, 0);
padding-left: 24px;
font-size: 10px;
white-space: nowrap;
`,K2=({play:e,videoProperties:t,duration:r,startTime:n,src:i,parameters:o,onPlay:s,onStop:a,onRefresh:l,onSeek:u,onScreenshot:c,onFormat:f,onVapix:h,labels:d,showStatsOverlay:g,toggleStats:y,format:x,volume:m,setVolume:p})=>{let v=(0,le.useRef)(null),w=of(v),[T,k]=(0,le.useState)(!1),I=(0,le.useCallback)(()=>k(Q=>!Q),[k]),P=(0,le.useCallback)(Q=>{p!==void 0&&p(parseFloat(Q.target.value))},[p]),[V,j]=(0,le.useState)(r),ve=(0,le.useRef)({startDateTime:n!==void 0?G.fromISO(n):void 0}),[we,He]=(0,le.useState)({playedFraction:0,bufferedFraction:0,counter:""});(0,le.useEffect)(()=>{var C;if(t===void 0)return;let{el:Q,pipeline:pt,range:Qe}=t;if(Q===null||pt===void 0)return;let[Et=0,H=r]=Qe!=null?Qe:[0,r],F=(C=r!=null?r:H)!=null?C:1/0;j(F);let R=()=>{let M=Et+pt.currentTime,N=Q2(Q)&&Q.buffered.length>0?Et+Q.buffered.end(Q.buffered.length-1):M,ue=F===1/0?N:F,oe=`${ee.fromMillis(M*1e3).toFormat("h:mm:ss")} / ${ee.fromMillis(ue*1e3).toFormat("h:mm:ss")}`;He({playedFraction:M/ue,bufferedFraction:N/ue,counter:oe})};if(R(),Q2(Q))return Q.addEventListener("ended",R),Q.addEventListener("progress",R),Q.addEventListener("timeupdate",R),()=>{Q.removeEventListener("timeupdate",R),Q.removeEventListener("progress",R),Q.removeEventListener("ended",R)};let W=setInterval(R,1e3);return()=>{clearInterval(W)}},[t,r,n,j]);let re=(0,le.useCallback)(Q=>{if(V===void 0)return;let{left:pt,width:Qe}=Q.currentTarget.getBoundingClientRect(),Et=(Q.pageX-pt)/Qe;u(Et*V)},[V,u]),[fe,ie]=(0,le.useState)({left:0,label:""}),Xe=(0,le.useRef)(null);return(0,le.useEffect)(()=>{n!==void 0&&(ve.current.startDateTime=G.fromISO(n));let Q=Xe.current;if(Q===null||V===void 0)return;let{left:pt,width:Qe}=Q.getBoundingClientRect(),Et=R=>{let W=R.pageX-pt,C=W/Qe*V*1e3;ie({left:W,label:ve.current.startDateTime!==void 0?ve.current.startDateTime.plus(C).toLocaleString(G.DATETIME_FULL_WITH_SECONDS):ee.fromMillis(C).toFormat("h:mm:ss")})},H=()=>{Q.addEventListener("pointermove",Et)},F=()=>{ie({left:0,label:""}),Q.removeEventListener("pointermove",Et)};return Q.addEventListener("pointerover",H),Q.addEventListener("pointerout",F),()=>{Q.removeEventListener("pointerout",F),Q.removeEventListener("pointerover",H)}},[n,V]),le.default.createElement(e0,{ref:v,visible:e!==!0||T||w},le.default.createElement(t0,null,le.default.createElement(ai,{onClick:s},e===!0?le.default.createElement(sf,{title:d==null?void 0:d.pause}):le.default.createElement(af,{title:d==null?void 0:d.play})),i!==void 0&&le.default.createElement(ai,{onClick:a},le.default.createElement(Z2,{title:d==null?void 0:d.stop})),i!==void 0&&le.default.createElement(ai,{onClick:l},le.default.createElement(W2,{title:d==null?void 0:d.refresh})),i!==void 0&&le.default.createElement(ai,{onClick:c},le.default.createElement(Y2,{title:d==null?void 0:d.screenshot})),m!==void 0?le.default.createElement(g6,{title:d==null?void 0:d.volume},le.default.createElement("input",{type:"range",min:"0",max:"1",step:"0.05",onChange:P,value:m!=null?m:0})):null,le.default.createElement(v6,null,le.default.createElement(J2,{onClick:re,ref:Xe},le.default.createElement(w6,null,le.default.createElement(S6,{fraction:we.playedFraction}),le.default.createElement(E6,{fraction:we.bufferedFraction}),fe.left!==0?le.default.createElement(x6,{left:fe.left},fe.label):null)),le.default.createElement(_6,null,V===1/0?"\u2219 LIVE":we.counter)),le.default.createElement(ai,{onClick:I},le.default.createElement(q2,{title:d==null?void 0:d.settings}))),T&&le.default.createElement(X2,{parameters:o,format:x,onFormat:f,onVapix:h,showStatsOverlay:g,toggleStats:y}))};var ff=Y.div`
position: relative;
width: 100%;
height: 100%;
`;var df=Y.div`
position: absolute;
left: 50%;
transform: translateX(-50%);
width: 100%;
top: 0;
bottom: 0;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
`;var T6="JPEG",pf=(0,_e.forwardRef)(({hostname:e,vapixParams:t={},format:r=T6,autoPlay:n=!1,autoRetry:i=!1,secure:o,className:s},a)=>{let[l,u]=(0,_e.useState)(n),[c,f]=(0,_e.useState)(e),[h,d]=(0,_e.useState)(),g=(0,_e.useCallback)(w=>{d(w)},[d]),y=(0,_e.useCallback)(()=>{l?u(!1):(f(e),u(!0))},[l,e]);(0,_e.useEffect)(()=>{let w=()=>{document.visibilityState==="visible"?(u(!0),f(e)):document.visibilityState==="hidden"&&(u(!1),f(""))};return document.addEventListener("visibilitychange",w),()=>document.removeEventListener("visibilitychange",w)},[e]);let x=(0,_e.useMemo)(()=>{if(h===void 0)return;let{width:w,height:T}=h;return w/T},[h]),m=(0,_e.useRef)(null);(0,_e.useLayoutEffect)(()=>{if(x===void 0||m.current===null)return;let w=new window.ResizeObserver(([T])=>{let k=T.target,I=k.clientHeight*x;k.style.maxWidth=`${I}px`});return w.observe(m.current),()=>w.disconnect()},[x]);let p=(0,_e.useRef)(null),v=of(p);return _e.default.createElement(ff,{className:s},_e.default.createElement(df,{ref:m},_e.default.createElement(fa,{aspectRatio:x},_e.default.createElement(qn,null,_e.default.createElement(Ia,{forwardedRef:a,refresh:0,play:l,host:c,format:r,parameters:t,onPlaying:g,secure:o,autoRetry:i})),_e.default.createElement(qn,null,_e.default.createElement(e0,{ref:p,visible:l!==!0||v},_e.default.createElement(t0,null,_e.default.createElement(ai,{onClick:y},l===!0?_e.default.createElement(sf,{title:"Pause"}):_e.default.createElement(af,{title:"Play"}))))))))});pf.displayName="BasicPlayer";var te=q(xe());var r0=q(xe());var C6=Y.div`
width: 100%;
height: 100%;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
`,ex=({waiting:e=!1})=>r0.default.createElement(C6,null,e&&r0.default.createElement(G2,null));var Le=q(xe());var nx=q(tx());var b6=e=>(e==null?void 0:e.tracks)!==void 0,k6=Y.div`
position: absolute;
top: 24px;
left: 24px;
width: 360px;
min-width: 240px;
max-width: 80%;
max-height: 80%;
border-radius: 4px;
background: #292929 0% 0% no-repeat padding-box;
opacity: 0.88;
`,I6=Y.div`
padding: 8px 24px;
border-bottom: 1px solid #525252;
`,rx=Y.span`
width: 24px;
height: 24px;
float: left;
cursor: ${({clickable:e})=>e?"pointer":"default"};
& > svg {
fill: #e0e0e0;
}
`,M6=Y.span`
display: inline-block;
margin-left: 8px;
vertical-align: sub;
text-align: left;
font-size: 16px;
font-family: 'Open Sans', Sans-Serif;
line-height: 22px;
color: #f5f5f5;
`,P6=Y.span`
float: right;
text-align: right;
`,O6=Y.a`
vertical-align: sub;
text-decoration: none;
font-size: 16px;
font-family: 'Open Sans', Sans-Serif;
line-height: 22px;
color: #b8b8b8;
`,A6=Y.div`
display: grid;
grid-template-columns: repeat(3, 1fr);
column-gap: 24px;
row-gap: 16px;
width: 100%;
padding: 16px 24px 24px;
`,N6=Y.div`
text-align: left;
font-family: 'Open Sans', Sans-Serif;
`,F6=Y.div`
font-size: 12px;
line-height: 17px;
color: #b8b8b8;
`,R6=Y.div`
font-size: 13px;
line-height: 18px;
color: #e0e0e0;
`,L6=Y.div`
position: absolute;
top: 24px;
left: 24px;
width: 32px;
height: 32px;
display: flex;
justify-content: center;
align-items: center;
border-radius: 4px;
background: #292929 0% 0% no-repeat padding-box;
opacity: 0.88;
`,D6=({format:e,videoProperties:t,refresh:r,volume:n})=>{let[i,o]=(0,Le.useState)([]),s=(0,Le.useCallback)(()=>{var h;let a="Unknown";e==="JPEG"?a="Still image":e==="RTP_H264"?a="RTSP (WebSocket)":e==="RTP_JPEG"?a="MJPEG":e==="MP4_H264"&&(a="MP4 (HTTP)");let{width:l,height:u,pipeline:c}=t,f=[{name:"Stream type",value:a},{name:"Resolution",value:`${l}x${u}`},{name:"Refreshed",value:r,unit:r>1?"times":"time"}];if(b6(c)){let d=(h=c.tracks)==null?void 0:h.map((y,x)=>Object.assign({index:x},y)),g=d==null?void 0:d.find(y=>y.type==="video");if(g!==void 0){let{coding:y,profile:x,level:m}=g==null?void 0:g.codec,p=Number(c.framerate[g.index].toFixed(2)),v=Math.round(c.bitrate[g.index]/1e3);f=f.concat([{name:"Encoding",value:`${y} ${x} (${m})`},{name:"Frame rate",value:p,unit:"fps"},{name:"Bitrate",value:v,unit:"kbit/s"}])}}n!==void 0&&f.push({name:"Volume",value:Math.floor(n*100),unit:"%"}),o(f)},[e,r,t,n]);return(0,Le.useEffect)(()=>{s()},[s]),(0,nx.useInterval)(s,1e3),Le.default.createElement(A6,null,i.length>0?i.map(a=>Le.default.createElement(N6,{key:a.name},Le.default.createElement(F6,null,a.name),Le.default.createElement(R6,null,`${a.value} ${a.unit!==void 0?a.unit:""}`))):null)},i0=({format:e,videoProperties:t,refresh:r,volume:n,expanded:i,onToggleExpanded:o})=>{let s=(0,Le.useCallback)(a=>{a.preventDefault(),o(!i)},[i,o]);return Le.default.createElement(Le.default.Fragment,null,i?Le.default.createElement(k6,null,Le.default.createElement(I6,null,Le.default.createElement(rx,{clickable:!1},Le.default.createElement(Jm,null)),Le.default.createElement(M6,null,"Client stream data"),Le.default.createElement(P6,null,Le.default.createElement(O6,{href:"",onClick:s},"Hide"))),Le.default.createElement(D6,{format:e,videoProperties:t,refresh:r,volume:n})):Le.default.createElement(L6,null,Le.default.createElement(rx,{onClick:s,clickable:!0},Le.default.createElement(Jm,{title:"Show client stream data"}))))};var mf=q(xe()),ix=(e=!1)=>{let[t,r]=(0,mf.useState)(e),n=(0,mf.useCallback)(i=>{r(i!==void 0?i:o=>!o)},[r]);return[t,n]};var B6="MediaSource"in window,U6=()=>!(navigator.userAgent.includes("MSIE")||"ActiveXObject"in window),ox=()=>document.createElement("video").canPlayType('video/mp4; codecs="avc1.640029"')!=="",H6={["RTP_H264"]:ox()&&B6,["RTP_JPEG"]:U6(),["JPEG"]:!0,["MP4_H264"]:ox()};var o0=(e,{width:t,height:r})=>{var i;let n=document.createElement("canvas");return n.width=t,n.height=r,(i=n==null?void 0:n.getContext("2d"))==null||i.drawImage(e,0,0,t,r),n==null?void 0:n.toDataURL("image/jpeg")};var z6="JPEG",yf=(0,te.forwardRef)(({hostname:e,vapixParams:t={},initialFormat:r=z6,autoPlay:n=!1,onSdp:i,metadataHandler:o,secure:s,className:a,startTime:l,duration:u,autoRetry:c=!1},f)=>{let[h,d]=(0,te.useState)(n),[g,y]=(0,te.useState)(0),[x,m]=(0,te.useState)(0),[p,v]=(0,te.useState)(e),[w,T]=(0,te.useState)(n),[k,I]=(0,te.useState)(),[P,V]=(0,te.useState)(r),[j,ve]=(0,te.useState)(t);(0,te.useEffect)(()=>{(window==null?void 0:window.localStorage)!==void 0&&window.localStorage.setItem("vapix",JSON.stringify(j))},[j]);let[we,He]=ix((window==null?void 0:window.localStorage)!==void 0?window.localStorage.getItem("stats-overlay")==="on":!1),[re,fe]=(0,te.useState)(!0);(0,te.useEffect)(()=>{(window==null?void 0:window.localStorage)!==void 0&&window.localStorage.setItem("stats-overlay",we?"on":"off")},[we]);let[ie,Xe]=(0,te.useState)(),Q=(0,te.useCallback)(M=>{Xe(M),T(!1),I(M.volume)},[T]),pt=(0,te.useCallback)(()=>{h?d(!1):(T(!0),v(e),d(!0))},[h,e]),Qe=(0,te.useCallback)(()=>{d(!0),m(M=>M+1),T(!0)},[]),Et=(0,te.useCallback)(()=>{if(ie===void 0)return;let{el:M,width:N,height:ue}=ie,oe=o0(M,{width:N,height:ue}),pe=document.createElement("a"),K=new window.MouseEvent("click");pe.download=`snapshot_${Date.now()}.jpg`,pe.href=oe,pe.dispatchEvent(K)},[ie]),H=(0,te.useCallback)(()=>{d(!1),v(""),T(!1)},[]),F=(0,te.useCallback)((M,N)=>{ve(ue=>{let oe=Je(D({},ue),{[M]:N});return N===""&&delete oe[M],oe}),m(ue=>ue+1)},[]);(0,te.useEffect)(()=>{let M=()=>{document.visibilityState==="visible"?(d(!0),v(e)):document.visibilityState==="hidden"&&(d(!1),T(!1),v(""))};return document.addEventListener("visibilitychange",M),()=>document.removeEventListener("visibilitychange",M)},[e]);let R=(0,te.useMemo)(()=>{if(ie===void 0)return;let{width:M,height:N}=ie;return M/N},[ie]),W=(0,te.useRef)(null);(0,te.useLayoutEffect)(()=>{if(R===void 0||W.current===null)return;let M=new window.ResizeObserver(([N])=>{let ue=N.target,oe=ue.clientHeight*R;ue.style.maxWidth=`${oe}px`});return M.observe(W.current),()=>M.disconnect()},[R]),(0,te.useEffect)(()=>{if((ie==null?void 0:ie.volume)!==void 0&&k!==void 0){let M=ie.el;M.muted=k===0,M.volume=k}},[ie,k]);let C=(0,te.useCallback)(()=>{c&&Qe()},[c,Qe]);return te.default.createElement(ff,{className:a},te.default.createElement(df,{ref:W},te.default.createElement(fa,{aspectRatio:R},te.default.createElement(qn,null,te.default.createElement(Ia,{forwardedRef:f,refresh:x,play:h,offset:g,host:p,format:P,parameters:j,onPlaying:Q,onEnded:C,onSdp:i,metadataHandler:o,secure:s,autoRetry:c})),te.default.createElement(qn,null,te.default.createElement(ex,{waiting:w})),te.default.createElement(qn,null,te.default.createElement(K2,{play:h,videoProperties:ie,src:p,parameters:j,onPlay:pt,onStop:H,onRefresh:Qe,onScreenshot:Et,onFormat:V,onVapix:F,onSeek:y,labels:{play:"Play",pause:"Pause",stop:"Stop",refresh:"Refresh",settings:"Settings",screenshot:"Take a snapshot",volume:"Volume"},showStatsOverlay:we,toggleStats:He,format:P,volume:k,setVolume:I,startTime:l,duration:u})),we&&ie!==void 0?te.default.createElement(i0,{format:P,videoProperties:ie,refresh:x,volume:k,expanded:re,onToggleExpanded:fe}):null)))});yf.displayName="Player";var gf=class extends HTMLElement{attributeChangeSubscriber(r){this._setState=r}static get observedAttributes(){return["variant","hostname","autoplay","autoretry","format","compression","resolution","rotation","camera","fps","audio","clock","date","text","textstring","textcolor","textbackgroundcolor","textpos","secure"]}get allAttributes(){let{variant:r,hostname:n,autoplay:i,autoretry:o,format:s,compression:a,resolution:l,rotation:u,camera:c,fps:f,audio:h,clock:d,date:g,text:y,textstring:x,textcolor:m,textbackgroundcolor:p,textpos:v,secure:w}=this;return{variant:r,hostname:n,autoplay:i,autoretry:o,format:s,compression:a,resolution:l,rotation:u,camera:c,fps:f,audio:h,clock:d,date:g,text:y,textstring:x,textcolor:m,textbackgroundcolor:p,textpos:v,secure:w}}get variant(){var r;return(r=this.getAttribute("variant"))!=null?r:"advanced"}set variant(r){this.setAttribute("variant",r)}get hostname(){var r;return(r=this.getAttribute("hostname"))!=null?r:""}set hostname(r){this.setAttribute("hostname",r)}get autoplay(){return this.hasAttribute("autoplay")}set autoplay(r){r!==void 0?this.setAttribute("autoplay",""):this.removeAttribute("autoplay")}get autoretry(){return this.hasAttribute("autoretry")}set autoretry(r){r!==void 0?this.setAttribute("autoretry",""):this.removeAttribute("autoretry")}get format(){var r;return(r=this.getAttribute("format"))!=null?r:"JPEG"}set format(r){this.setAttribute("format",r)}get compression(){var r;return(r=this.getAttribute("compression"))!=null?r:""}set compression(r){this.setAttribute("compression",r)}get resolution(){var r;return(r=this.getAttribute("resolution"))!=null?r:""}set resolution(r){this.setAttribute("resolution",r)}get rotation(){var r;return(r=this.getAttribute("rotation"))!=null?r:""}set rotation(r){this.setAttribute("rotation",r)}get camera(){var r;return(r=this.getAttribute("camera"))!=null?r:""}set camera(r){this.setAttribute("camera",r)}get fps(){var r;return(r=this.getAttribute("fps"))!=null?r:""}set fps(r){this.setAttribute("fps",r)}get audio(){var r;return(r=this.getAttribute("audio"))!=null?r:""}set audio(r){this.setAttribute("audio",r)}get clock(){var r;return(r=this.getAttribute("clock"))!=null?r:""}set clock(r){this.setAttribute("clock",r)}get date(){var r;return(r=this.getAttribute("date"))!=null?r:""}set date(r){this.setAttribute("date",r)}get text(){var r;return(r=this.getAttribute("text"))!=null?r:""}set text(r){this.setAttribute("text",r)}get textstring(){var r;return(r=this.getAttribute("textstring"))!=null?r:""}set textstring(r){this.setAttribute("textstring",r)}get textcolor(){var r;return(r=this.getAttribute("textcolor"))!=null?r:""}set textcolor(r){this.setAttribute("textcolor",r)}get textbackgroundcolor(){var r;return(r=this.getAttribute("textbackgroundcolor"))!=null?r:""}set textbackgroundcolor(r){this.setAttribute("textbackgroundcolor",r)}get textpos(){var r;return(r=this.getAttribute("textpos"))!=null?r:""}set textpos(r){this.setAttribute("textpos",r)}get secure(){return this.hasAttribute("secure")}set secure(r){r!==void 0?this.setAttribute("secure",""):this.removeAttribute("secure")}connectedCallback(){let r=new URL(`http://${this.hostname}/axis-cgi/usergroup.cgi`);r.protocol=this.secure===!0?"https":"http",window.fetch(r.href,{credentials:"include",mode:"no-cors"}).then(()=>{s0.default.render(Xr.default.createElement(j6,{subscribeAttributesChanged:n=>this.attributeChangeSubscriber(n),initialAttributes:D({},this.allAttributes)}),this)}).catch(n=>{console.error(`Authorization failed: ${n.message}`)})}disconnectedCallback(){s0.default.unmountComponentAtNode(this)}attributeChangedCallback(r,n,i){if(this._setState===void 0){console.warn(`ignored attribute change: ${r}=${i}`);return}this._setState(D({},this.allAttributes))}},j6=({subscribeAttributesChanged:e,initialAttributes:t})=>{let[r,n]=(0,Xr.useState)(t);(0,Xr.useEffect)(()=>{e(n)},[e]);let{variant:i,hostname:o,autoplay:s,autoretry:a,format:l,compression:u,resolution:c,rotation:f,camera:h,fps:d,audio:g,clock:y,date:x,text:m,textstring:p,textcolor:v,textbackgroundcolor:w,textpos:T,secure:k}=r,I=(0,Xr.useMemo)(()=>{let P=[{compression:u},{resolution:c},{rotation:f},{camera:h},{fps:d},{audio:g},{clock:y},{date:x},{text:m},{textstring:p},{textcolor:v},{textbackgroundcolor:w},{textpos:T}].filter(V=>Object.values(V)[0]!=="").map(V=>{var j;return{[Object.keys(V)[0]]:(j=Object.values(V)[0])!=null?j:""}});return Object.assign({},...P)},[u,c,f,h,d,g,y,x,m,p,v,w,T]);switch(i){case"advanced":return Xr.default.createElement(yf,{hostname:o,autoPlay:s,autoRetry:a,initialFormat:l,vapixParams:I,secure:k});case"basic":return Xr.default.createElement(pf,{hostname:o,autoPlay:s,autoRetry:a,format:l,vapixParams:I,secure:k});default:return console.error("No player variant selected"),null}};window.customElements.define("media-stream-player",gf);return _x(V6);})();
/*!
* The buffer module from node.js, for the browser.
*
* @author Feross Aboukhadijeh <https://feross.org>
* @license MIT
*/
/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */
/**
* @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.
*/
/**
* @license React
* react-is.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.
*/
/**
* @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.
*/
/**
* @license React
* scheduler.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.
*/
/** @license React v16.13.0
* react-is.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.
*/
//# sourceMappingURL=media-stream-player.min.js.map