diffprism 1.5.0 → 1.6.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bin.js +8 -5
- package/dist/{chunk-M5NJBIOV.js → chunk-3BB3NNRU.js} +2 -2
- package/dist/{chunk-4JLGL3O6.js → chunk-ZFVQBTBB.js} +1 -1
- package/dist/{demo-5UQ7CLKT.js → demo-D6NYAZWR.js} +2 -2
- package/dist/mcp-server.js +1 -1
- package/package.json +2 -1
- package/ui-dist/assets/index-Cz4yBwvD.js +350 -0
- package/ui-dist/index.html +1 -1
- package/ui-dist/assets/index-C_mA2r7X.js +0 -350
|
@@ -0,0 +1,350 @@
|
|
|
1
|
+
(function(){const i=document.createElement("link").relList;if(i&&i.supports&&i.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))s(o);new MutationObserver(o=>{for(const d of o)if(d.type==="childList")for(const h of d.addedNodes)h.tagName==="LINK"&&h.rel==="modulepreload"&&s(h)}).observe(document,{childList:!0,subtree:!0});function r(o){const d={};return o.integrity&&(d.integrity=o.integrity),o.referrerPolicy&&(d.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?d.credentials="include":o.crossOrigin==="anonymous"?d.credentials="omit":d.credentials="same-origin",d}function s(o){if(o.ep)return;o.ep=!0;const d=r(o);fetch(o.href,d)}})();function X0(l){return l&&l.__esModule&&Object.prototype.hasOwnProperty.call(l,"default")?l.default:l}var Fc={exports:{}},Nr={};/**
|
|
2
|
+
* @license React
|
|
3
|
+
* react-jsx-runtime.production.js
|
|
4
|
+
*
|
|
5
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
6
|
+
*
|
|
7
|
+
* This source code is licensed under the MIT license found in the
|
|
8
|
+
* LICENSE file in the root directory of this source tree.
|
|
9
|
+
*/var bm;function F0(){if(bm)return Nr;bm=1;var l=Symbol.for("react.transitional.element"),i=Symbol.for("react.fragment");function r(s,o,d){var h=null;if(d!==void 0&&(h=""+d),o.key!==void 0&&(h=""+o.key),"key"in o){d={};for(var y in o)y!=="key"&&(d[y]=o[y])}else d=o;return o=d.ref,{$$typeof:l,type:s,key:h,ref:o!==void 0?o:null,props:d}}return Nr.Fragment=i,Nr.jsx=r,Nr.jsxs=r,Nr}var vm;function $0(){return vm||(vm=1,Fc.exports=F0()),Fc.exports}var f=$0(),$c={exports:{}},wr={},Zc={exports:{}},Vc={};/**
|
|
10
|
+
* @license React
|
|
11
|
+
* scheduler.production.js
|
|
12
|
+
*
|
|
13
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
14
|
+
*
|
|
15
|
+
* This source code is licensed under the MIT license found in the
|
|
16
|
+
* LICENSE file in the root directory of this source tree.
|
|
17
|
+
*/var xm;function Z0(){return xm||(xm=1,(function(l){function i(k,B){var le=k.length;k.push(B);e:for(;0<le;){var ue=le-1>>>1,ce=k[ue];if(0<o(ce,B))k[ue]=B,k[le]=ce,le=ue;else break e}}function r(k){return k.length===0?null:k[0]}function s(k){if(k.length===0)return null;var B=k[0],le=k.pop();if(le!==B){k[0]=le;e:for(var ue=0,ce=k.length,N=ce>>>1;ue<N;){var Y=2*(ue+1)-1,ee=k[Y],W=Y+1,Q=k[W];if(0>o(ee,le))W<ce&&0>o(Q,ee)?(k[ue]=Q,k[W]=le,ue=W):(k[ue]=ee,k[Y]=le,ue=Y);else if(W<ce&&0>o(Q,le))k[ue]=Q,k[W]=le,ue=W;else break e}}return B}function o(k,B){var le=k.sortIndex-B.sortIndex;return le!==0?le:k.id-B.id}if(l.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var d=performance;l.unstable_now=function(){return d.now()}}else{var h=Date,y=h.now();l.unstable_now=function(){return h.now()-y}}var g=[],m=[],b=1,x=null,S=3,E=!1,A=!1,T=!1,_=!1,U=typeof setTimeout=="function"?setTimeout:null,q=typeof clearTimeout=="function"?clearTimeout:null,O=typeof setImmediate<"u"?setImmediate:null;function F(k){for(var B=r(m);B!==null;){if(B.callback===null)s(m);else if(B.startTime<=k)s(m),B.sortIndex=B.expirationTime,i(g,B);else break;B=r(m)}}function Z(k){if(T=!1,F(k),!A)if(r(g)!==null)A=!0,X||(X=!0,de());else{var B=r(m);B!==null&&J(Z,B.startTime-k)}}var X=!1,R=-1,M=5,K=-1;function ie(){return _?!0:!(l.unstable_now()-K<M)}function re(){if(_=!1,X){var k=l.unstable_now();K=k;var B=!0;try{e:{A=!1,T&&(T=!1,q(R),R=-1),E=!0;var le=S;try{t:{for(F(k),x=r(g);x!==null&&!(x.expirationTime>k&&ie());){var ue=x.callback;if(typeof ue=="function"){x.callback=null,S=x.priorityLevel;var ce=ue(x.expirationTime<=k);if(k=l.unstable_now(),typeof ce=="function"){x.callback=ce,F(k),B=!0;break t}x===r(g)&&s(g),F(k)}else s(g);x=r(g)}if(x!==null)B=!0;else{var N=r(m);N!==null&&J(Z,N.startTime-k),B=!1}}break e}finally{x=null,S=le,E=!1}B=void 0}}finally{B?de():X=!1}}}var de;if(typeof O=="function")de=function(){O(re)};else if(typeof MessageChannel<"u"){var ne=new MessageChannel,P=ne.port2;ne.port1.onmessage=re,de=function(){P.postMessage(null)}}else de=function(){U(re,0)};function J(k,B){R=U(function(){k(l.unstable_now())},B)}l.unstable_IdlePriority=5,l.unstable_ImmediatePriority=1,l.unstable_LowPriority=4,l.unstable_NormalPriority=3,l.unstable_Profiling=null,l.unstable_UserBlockingPriority=2,l.unstable_cancelCallback=function(k){k.callback=null},l.unstable_forceFrameRate=function(k){0>k||125<k?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):M=0<k?Math.floor(1e3/k):5},l.unstable_getCurrentPriorityLevel=function(){return S},l.unstable_next=function(k){switch(S){case 1:case 2:case 3:var B=3;break;default:B=S}var le=S;S=B;try{return k()}finally{S=le}},l.unstable_requestPaint=function(){_=!0},l.unstable_runWithPriority=function(k,B){switch(k){case 1:case 2:case 3:case 4:case 5:break;default:k=3}var le=S;S=k;try{return B()}finally{S=le}},l.unstable_scheduleCallback=function(k,B,le){var ue=l.unstable_now();switch(typeof le=="object"&&le!==null?(le=le.delay,le=typeof le=="number"&&0<le?ue+le:ue):le=ue,k){case 1:var ce=-1;break;case 2:ce=250;break;case 5:ce=1073741823;break;case 4:ce=1e4;break;default:ce=5e3}return ce=le+ce,k={id:b++,callback:B,priorityLevel:k,startTime:le,expirationTime:ce,sortIndex:-1},le>ue?(k.sortIndex=le,i(m,k),r(g)===null&&k===r(m)&&(T?(q(R),R=-1):T=!0,J(Z,le-ue))):(k.sortIndex=ce,i(g,k),A||E||(A=!0,X||(X=!0,de()))),k},l.unstable_shouldYield=ie,l.unstable_wrapCallback=function(k){var B=S;return function(){var le=S;S=B;try{return k.apply(this,arguments)}finally{S=le}}}})(Vc)),Vc}var Sm;function V0(){return Sm||(Sm=1,Zc.exports=Z0()),Zc.exports}var Kc={exports:{}},ye={};/**
|
|
18
|
+
* @license React
|
|
19
|
+
* react.production.js
|
|
20
|
+
*
|
|
21
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
22
|
+
*
|
|
23
|
+
* This source code is licensed under the MIT license found in the
|
|
24
|
+
* LICENSE file in the root directory of this source tree.
|
|
25
|
+
*/var Em;function K0(){if(Em)return ye;Em=1;var l=Symbol.for("react.transitional.element"),i=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),s=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),d=Symbol.for("react.consumer"),h=Symbol.for("react.context"),y=Symbol.for("react.forward_ref"),g=Symbol.for("react.suspense"),m=Symbol.for("react.memo"),b=Symbol.for("react.lazy"),x=Symbol.for("react.activity"),S=Symbol.iterator;function E(N){return N===null||typeof N!="object"?null:(N=S&&N[S]||N["@@iterator"],typeof N=="function"?N:null)}var A={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},T=Object.assign,_={};function U(N,Y,ee){this.props=N,this.context=Y,this.refs=_,this.updater=ee||A}U.prototype.isReactComponent={},U.prototype.setState=function(N,Y){if(typeof N!="object"&&typeof N!="function"&&N!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,N,Y,"setState")},U.prototype.forceUpdate=function(N){this.updater.enqueueForceUpdate(this,N,"forceUpdate")};function q(){}q.prototype=U.prototype;function O(N,Y,ee){this.props=N,this.context=Y,this.refs=_,this.updater=ee||A}var F=O.prototype=new q;F.constructor=O,T(F,U.prototype),F.isPureReactComponent=!0;var Z=Array.isArray;function X(){}var R={H:null,A:null,T:null,S:null},M=Object.prototype.hasOwnProperty;function K(N,Y,ee){var W=ee.ref;return{$$typeof:l,type:N,key:Y,ref:W!==void 0?W:null,props:ee}}function ie(N,Y){return K(N.type,Y,N.props)}function re(N){return typeof N=="object"&&N!==null&&N.$$typeof===l}function de(N){var Y={"=":"=0",":":"=2"};return"$"+N.replace(/[=:]/g,function(ee){return Y[ee]})}var ne=/\/+/g;function P(N,Y){return typeof N=="object"&&N!==null&&N.key!=null?de(""+N.key):Y.toString(36)}function J(N){switch(N.status){case"fulfilled":return N.value;case"rejected":throw N.reason;default:switch(typeof N.status=="string"?N.then(X,X):(N.status="pending",N.then(function(Y){N.status==="pending"&&(N.status="fulfilled",N.value=Y)},function(Y){N.status==="pending"&&(N.status="rejected",N.reason=Y)})),N.status){case"fulfilled":return N.value;case"rejected":throw N.reason}}throw N}function k(N,Y,ee,W,Q){var ae=typeof N;(ae==="undefined"||ae==="boolean")&&(N=null);var fe=!1;if(N===null)fe=!0;else switch(ae){case"bigint":case"string":case"number":fe=!0;break;case"object":switch(N.$$typeof){case l:case i:fe=!0;break;case b:return fe=N._init,k(fe(N._payload),Y,ee,W,Q)}}if(fe)return Q=Q(N),fe=W===""?"."+P(N,0):W,Z(Q)?(ee="",fe!=null&&(ee=fe.replace(ne,"$&/")+"/"),k(Q,Y,ee,"",function(Te){return Te})):Q!=null&&(re(Q)&&(Q=ie(Q,ee+(Q.key==null||N&&N.key===Q.key?"":(""+Q.key).replace(ne,"$&/")+"/")+fe)),Y.push(Q)),1;fe=0;var Ue=W===""?".":W+":";if(Z(N))for(var be=0;be<N.length;be++)W=N[be],ae=Ue+P(W,be),fe+=k(W,Y,ee,ae,Q);else if(be=E(N),typeof be=="function")for(N=be.call(N),be=0;!(W=N.next()).done;)W=W.value,ae=Ue+P(W,be++),fe+=k(W,Y,ee,ae,Q);else if(ae==="object"){if(typeof N.then=="function")return k(J(N),Y,ee,W,Q);throw Y=String(N),Error("Objects are not valid as a React child (found: "+(Y==="[object Object]"?"object with keys {"+Object.keys(N).join(", ")+"}":Y)+"). If you meant to render a collection of children, use an array instead.")}return fe}function B(N,Y,ee){if(N==null)return N;var W=[],Q=0;return k(N,W,"","",function(ae){return Y.call(ee,ae,Q++)}),W}function le(N){if(N._status===-1){var Y=N._result;Y=Y(),Y.then(function(ee){(N._status===0||N._status===-1)&&(N._status=1,N._result=ee)},function(ee){(N._status===0||N._status===-1)&&(N._status=2,N._result=ee)}),N._status===-1&&(N._status=0,N._result=Y)}if(N._status===1)return N._result.default;throw N._result}var ue=typeof reportError=="function"?reportError:function(N){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var Y=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof N=="object"&&N!==null&&typeof N.message=="string"?String(N.message):String(N),error:N});if(!window.dispatchEvent(Y))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",N);return}console.error(N)},ce={map:B,forEach:function(N,Y,ee){B(N,function(){Y.apply(this,arguments)},ee)},count:function(N){var Y=0;return B(N,function(){Y++}),Y},toArray:function(N){return B(N,function(Y){return Y})||[]},only:function(N){if(!re(N))throw Error("React.Children.only expected to receive a single React element child.");return N}};return ye.Activity=x,ye.Children=ce,ye.Component=U,ye.Fragment=r,ye.Profiler=o,ye.PureComponent=O,ye.StrictMode=s,ye.Suspense=g,ye.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=R,ye.__COMPILER_RUNTIME={__proto__:null,c:function(N){return R.H.useMemoCache(N)}},ye.cache=function(N){return function(){return N.apply(null,arguments)}},ye.cacheSignal=function(){return null},ye.cloneElement=function(N,Y,ee){if(N==null)throw Error("The argument must be a React element, but you passed "+N+".");var W=T({},N.props),Q=N.key;if(Y!=null)for(ae in Y.key!==void 0&&(Q=""+Y.key),Y)!M.call(Y,ae)||ae==="key"||ae==="__self"||ae==="__source"||ae==="ref"&&Y.ref===void 0||(W[ae]=Y[ae]);var ae=arguments.length-2;if(ae===1)W.children=ee;else if(1<ae){for(var fe=Array(ae),Ue=0;Ue<ae;Ue++)fe[Ue]=arguments[Ue+2];W.children=fe}return K(N.type,Q,W)},ye.createContext=function(N){return N={$$typeof:h,_currentValue:N,_currentValue2:N,_threadCount:0,Provider:null,Consumer:null},N.Provider=N,N.Consumer={$$typeof:d,_context:N},N},ye.createElement=function(N,Y,ee){var W,Q={},ae=null;if(Y!=null)for(W in Y.key!==void 0&&(ae=""+Y.key),Y)M.call(Y,W)&&W!=="key"&&W!=="__self"&&W!=="__source"&&(Q[W]=Y[W]);var fe=arguments.length-2;if(fe===1)Q.children=ee;else if(1<fe){for(var Ue=Array(fe),be=0;be<fe;be++)Ue[be]=arguments[be+2];Q.children=Ue}if(N&&N.defaultProps)for(W in fe=N.defaultProps,fe)Q[W]===void 0&&(Q[W]=fe[W]);return K(N,ae,Q)},ye.createRef=function(){return{current:null}},ye.forwardRef=function(N){return{$$typeof:y,render:N}},ye.isValidElement=re,ye.lazy=function(N){return{$$typeof:b,_payload:{_status:-1,_result:N},_init:le}},ye.memo=function(N,Y){return{$$typeof:m,type:N,compare:Y===void 0?null:Y}},ye.startTransition=function(N){var Y=R.T,ee={};R.T=ee;try{var W=N(),Q=R.S;Q!==null&&Q(ee,W),typeof W=="object"&&W!==null&&typeof W.then=="function"&&W.then(X,ue)}catch(ae){ue(ae)}finally{Y!==null&&ee.types!==null&&(Y.types=ee.types),R.T=Y}},ye.unstable_useCacheRefresh=function(){return R.H.useCacheRefresh()},ye.use=function(N){return R.H.use(N)},ye.useActionState=function(N,Y,ee){return R.H.useActionState(N,Y,ee)},ye.useCallback=function(N,Y){return R.H.useCallback(N,Y)},ye.useContext=function(N){return R.H.useContext(N)},ye.useDebugValue=function(){},ye.useDeferredValue=function(N,Y){return R.H.useDeferredValue(N,Y)},ye.useEffect=function(N,Y){return R.H.useEffect(N,Y)},ye.useEffectEvent=function(N){return R.H.useEffectEvent(N)},ye.useId=function(){return R.H.useId()},ye.useImperativeHandle=function(N,Y,ee){return R.H.useImperativeHandle(N,Y,ee)},ye.useInsertionEffect=function(N,Y){return R.H.useInsertionEffect(N,Y)},ye.useLayoutEffect=function(N,Y){return R.H.useLayoutEffect(N,Y)},ye.useMemo=function(N,Y){return R.H.useMemo(N,Y)},ye.useOptimistic=function(N,Y){return R.H.useOptimistic(N,Y)},ye.useReducer=function(N,Y,ee){return R.H.useReducer(N,Y,ee)},ye.useRef=function(N){return R.H.useRef(N)},ye.useState=function(N){return R.H.useState(N)},ye.useSyncExternalStore=function(N,Y,ee){return R.H.useSyncExternalStore(N,Y,ee)},ye.useTransition=function(){return R.H.useTransition()},ye.version="19.2.4",ye}var Nm;function xo(){return Nm||(Nm=1,Kc.exports=K0()),Kc.exports}var Qc={exports:{}},ht={};/**
|
|
26
|
+
* @license React
|
|
27
|
+
* react-dom.production.js
|
|
28
|
+
*
|
|
29
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
30
|
+
*
|
|
31
|
+
* This source code is licensed under the MIT license found in the
|
|
32
|
+
* LICENSE file in the root directory of this source tree.
|
|
33
|
+
*/var wm;function Q0(){if(wm)return ht;wm=1;var l=xo();function i(g){var m="https://react.dev/errors/"+g;if(1<arguments.length){m+="?args[]="+encodeURIComponent(arguments[1]);for(var b=2;b<arguments.length;b++)m+="&args[]="+encodeURIComponent(arguments[b])}return"Minified React error #"+g+"; visit "+m+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function r(){}var s={d:{f:r,r:function(){throw Error(i(522))},D:r,C:r,L:r,m:r,X:r,S:r,M:r},p:0,findDOMNode:null},o=Symbol.for("react.portal");function d(g,m,b){var x=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:o,key:x==null?null:""+x,children:g,containerInfo:m,implementation:b}}var h=l.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function y(g,m){if(g==="font")return"";if(typeof m=="string")return m==="use-credentials"?m:""}return ht.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=s,ht.createPortal=function(g,m){var b=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!m||m.nodeType!==1&&m.nodeType!==9&&m.nodeType!==11)throw Error(i(299));return d(g,m,null,b)},ht.flushSync=function(g){var m=h.T,b=s.p;try{if(h.T=null,s.p=2,g)return g()}finally{h.T=m,s.p=b,s.d.f()}},ht.preconnect=function(g,m){typeof g=="string"&&(m?(m=m.crossOrigin,m=typeof m=="string"?m==="use-credentials"?m:"":void 0):m=null,s.d.C(g,m))},ht.prefetchDNS=function(g){typeof g=="string"&&s.d.D(g)},ht.preinit=function(g,m){if(typeof g=="string"&&m&&typeof m.as=="string"){var b=m.as,x=y(b,m.crossOrigin),S=typeof m.integrity=="string"?m.integrity:void 0,E=typeof m.fetchPriority=="string"?m.fetchPriority:void 0;b==="style"?s.d.S(g,typeof m.precedence=="string"?m.precedence:void 0,{crossOrigin:x,integrity:S,fetchPriority:E}):b==="script"&&s.d.X(g,{crossOrigin:x,integrity:S,fetchPriority:E,nonce:typeof m.nonce=="string"?m.nonce:void 0})}},ht.preinitModule=function(g,m){if(typeof g=="string")if(typeof m=="object"&&m!==null){if(m.as==null||m.as==="script"){var b=y(m.as,m.crossOrigin);s.d.M(g,{crossOrigin:b,integrity:typeof m.integrity=="string"?m.integrity:void 0,nonce:typeof m.nonce=="string"?m.nonce:void 0})}}else m==null&&s.d.M(g)},ht.preload=function(g,m){if(typeof g=="string"&&typeof m=="object"&&m!==null&&typeof m.as=="string"){var b=m.as,x=y(b,m.crossOrigin);s.d.L(g,b,{crossOrigin:x,integrity:typeof m.integrity=="string"?m.integrity:void 0,nonce:typeof m.nonce=="string"?m.nonce:void 0,type:typeof m.type=="string"?m.type:void 0,fetchPriority:typeof m.fetchPriority=="string"?m.fetchPriority:void 0,referrerPolicy:typeof m.referrerPolicy=="string"?m.referrerPolicy:void 0,imageSrcSet:typeof m.imageSrcSet=="string"?m.imageSrcSet:void 0,imageSizes:typeof m.imageSizes=="string"?m.imageSizes:void 0,media:typeof m.media=="string"?m.media:void 0})}},ht.preloadModule=function(g,m){if(typeof g=="string")if(m){var b=y(m.as,m.crossOrigin);s.d.m(g,{as:typeof m.as=="string"&&m.as!=="script"?m.as:void 0,crossOrigin:b,integrity:typeof m.integrity=="string"?m.integrity:void 0})}else s.d.m(g)},ht.requestFormReset=function(g){s.d.r(g)},ht.unstable_batchedUpdates=function(g,m){return g(m)},ht.useFormState=function(g,m,b){return h.H.useFormState(g,m,b)},ht.useFormStatus=function(){return h.H.useHostTransitionStatus()},ht.version="19.2.4",ht}var Am;function J0(){if(Am)return Qc.exports;Am=1;function l(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(l)}catch(i){console.error(i)}}return l(),Qc.exports=Q0(),Qc.exports}/**
|
|
34
|
+
* @license React
|
|
35
|
+
* react-dom-client.production.js
|
|
36
|
+
*
|
|
37
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
38
|
+
*
|
|
39
|
+
* This source code is licensed under the MIT license found in the
|
|
40
|
+
* LICENSE file in the root directory of this source tree.
|
|
41
|
+
*/var Tm;function W0(){if(Tm)return wr;Tm=1;var l=V0(),i=xo(),r=J0();function s(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function o(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function d(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function h(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 y(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function g(e){if(d(e)!==e)throw Error(s(188))}function m(e){var t=e.alternate;if(!t){if(t=d(e),t===null)throw Error(s(188));return t!==e?null:e}for(var n=e,a=t;;){var u=n.return;if(u===null)break;var c=u.alternate;if(c===null){if(a=u.return,a!==null){n=a;continue}break}if(u.child===c.child){for(c=u.child;c;){if(c===n)return g(u),e;if(c===a)return g(u),t;c=c.sibling}throw Error(s(188))}if(n.return!==a.return)n=u,a=c;else{for(var p=!1,v=u.child;v;){if(v===n){p=!0,n=u,a=c;break}if(v===a){p=!0,a=u,n=c;break}v=v.sibling}if(!p){for(v=c.child;v;){if(v===n){p=!0,n=c,a=u;break}if(v===a){p=!0,a=c,n=u;break}v=v.sibling}if(!p)throw Error(s(189))}}if(n.alternate!==a)throw Error(s(190))}if(n.tag!==3)throw Error(s(188));return n.stateNode.current===n?e:t}function b(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=b(e),t!==null)return t;e=e.sibling}return null}var x=Object.assign,S=Symbol.for("react.element"),E=Symbol.for("react.transitional.element"),A=Symbol.for("react.portal"),T=Symbol.for("react.fragment"),_=Symbol.for("react.strict_mode"),U=Symbol.for("react.profiler"),q=Symbol.for("react.consumer"),O=Symbol.for("react.context"),F=Symbol.for("react.forward_ref"),Z=Symbol.for("react.suspense"),X=Symbol.for("react.suspense_list"),R=Symbol.for("react.memo"),M=Symbol.for("react.lazy"),K=Symbol.for("react.activity"),ie=Symbol.for("react.memo_cache_sentinel"),re=Symbol.iterator;function de(e){return e===null||typeof e!="object"?null:(e=re&&e[re]||e["@@iterator"],typeof e=="function"?e:null)}var ne=Symbol.for("react.client.reference");function P(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===ne?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case T:return"Fragment";case U:return"Profiler";case _:return"StrictMode";case Z:return"Suspense";case X:return"SuspenseList";case K:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case A:return"Portal";case O:return e.displayName||"Context";case q:return(e._context.displayName||"Context")+".Consumer";case F:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case R:return t=e.displayName||null,t!==null?t:P(e.type)||"Memo";case M:t=e._payload,e=e._init;try{return P(e(t))}catch{}}return null}var J=Array.isArray,k=i.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,B=r.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,le={pending:!1,data:null,method:null,action:null},ue=[],ce=-1;function N(e){return{current:e}}function Y(e){0>ce||(e.current=ue[ce],ue[ce]=null,ce--)}function ee(e,t){ce++,ue[ce]=e.current,e.current=t}var W=N(null),Q=N(null),ae=N(null),fe=N(null);function Ue(e,t){switch(ee(ae,t),ee(Q,e),ee(W,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?Yg(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=Yg(t),e=qg(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}Y(W),ee(W,e)}function be(){Y(W),Y(Q),Y(ae)}function Te(e){e.memoizedState!==null&&ee(fe,e);var t=W.current,n=qg(t,e.type);t!==n&&(ee(Q,e),ee(W,n))}function Fe(e){Q.current===e&&(Y(W),Y(Q)),fe.current===e&&(Y(fe),vr._currentValue=le)}var dt,Ht;function gt(e){if(dt===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);dt=t&&t[1]||"",Ht=-1<n.stack.indexOf(`
|
|
42
|
+
at`)?" (<anonymous>)":-1<n.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
43
|
+
`+dt+e+Ht}var mt=!1;function $e(e,t){if(!e||mt)return"";mt=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var a={DetermineComponentFrameRoot:function(){try{if(t){var V=function(){throw Error()};if(Object.defineProperty(V.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(V,[])}catch(G){var H=G}Reflect.construct(e,[],V)}else{try{V.call()}catch(G){H=G}e.call(V.prototype)}}else{try{throw Error()}catch(G){H=G}(V=e())&&typeof V.catch=="function"&&V.catch(function(){})}}catch(G){if(G&&H&&typeof G.stack=="string")return[G.stack,H.stack]}return[null,null]}};a.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var u=Object.getOwnPropertyDescriptor(a.DetermineComponentFrameRoot,"name");u&&u.configurable&&Object.defineProperty(a.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var c=a.DetermineComponentFrameRoot(),p=c[0],v=c[1];if(p&&v){var w=p.split(`
|
|
44
|
+
`),L=v.split(`
|
|
45
|
+
`);for(u=a=0;a<w.length&&!w[a].includes("DetermineComponentFrameRoot");)a++;for(;u<L.length&&!L[u].includes("DetermineComponentFrameRoot");)u++;if(a===w.length||u===L.length)for(a=w.length-1,u=L.length-1;1<=a&&0<=u&&w[a]!==L[u];)u--;for(;1<=a&&0<=u;a--,u--)if(w[a]!==L[u]){if(a!==1||u!==1)do if(a--,u--,0>u||w[a]!==L[u]){var I=`
|
|
46
|
+
`+w[a].replace(" at new "," at ");return e.displayName&&I.includes("<anonymous>")&&(I=I.replace("<anonymous>",e.displayName)),I}while(1<=a&&0<=u);break}}}finally{mt=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:"")?gt(n):""}function js(e,t){switch(e.tag){case 26:case 27:case 5:return gt(e.type);case 16:return gt("Lazy");case 13:return e.child!==t&&t!==null?gt("Suspense Fallback"):gt("Suspense");case 19:return gt("SuspenseList");case 0:case 15:return $e(e.type,!1);case 11:return $e(e.type.render,!1);case 1:return $e(e.type,!0);case 31:return gt("Activity");default:return""}}function bf(e){try{var t="",n=null;do t+=js(e,n),n=e,e=e.return;while(e);return t}catch(a){return`
|
|
47
|
+
Error generating stack: `+a.message+`
|
|
48
|
+
`+a.stack}}var Os=Object.prototype.hasOwnProperty,ks=l.unstable_scheduleCallback,Rs=l.unstable_cancelCallback,Ey=l.unstable_shouldYield,Ny=l.unstable_requestPaint,At=l.unstable_now,wy=l.unstable_getCurrentPriorityLevel,vf=l.unstable_ImmediatePriority,xf=l.unstable_UserBlockingPriority,Ur=l.unstable_NormalPriority,Ay=l.unstable_LowPriority,Sf=l.unstable_IdlePriority,Ty=l.log,Cy=l.unstable_setDisableYieldValue,kl=null,Tt=null;function jn(e){if(typeof Ty=="function"&&Cy(e),Tt&&typeof Tt.setStrictMode=="function")try{Tt.setStrictMode(kl,e)}catch{}}var Ct=Math.clz32?Math.clz32:Oy,_y=Math.log,jy=Math.LN2;function Oy(e){return e>>>=0,e===0?32:31-(_y(e)/jy|0)|0}var Br=256,Hr=262144,Gr=4194304;function la(e){var t=e&42;if(t!==0)return t;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:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function Yr(e,t,n){var a=e.pendingLanes;if(a===0)return 0;var u=0,c=e.suspendedLanes,p=e.pingedLanes;e=e.warmLanes;var v=a&134217727;return v!==0?(a=v&~c,a!==0?u=la(a):(p&=v,p!==0?u=la(p):n||(n=v&~e,n!==0&&(u=la(n))))):(v=a&~c,v!==0?u=la(v):p!==0?u=la(p):n||(n=a&~e,n!==0&&(u=la(n)))),u===0?0:t!==0&&t!==u&&(t&c)===0&&(c=u&-u,n=t&-t,c>=n||c===32&&(n&4194048)!==0)?t:u}function Rl(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function ky(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32: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:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Ef(){var e=Gr;return Gr<<=1,(Gr&62914560)===0&&(Gr=4194304),e}function Ms(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Ml(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function Ry(e,t,n,a,u,c){var p=e.pendingLanes;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=n,e.entangledLanes&=n,e.errorRecoveryDisabledLanes&=n,e.shellSuspendCounter=0;var v=e.entanglements,w=e.expirationTimes,L=e.hiddenUpdates;for(n=p&~n;0<n;){var I=31-Ct(n),V=1<<I;v[I]=0,w[I]=-1;var H=L[I];if(H!==null)for(L[I]=null,I=0;I<H.length;I++){var G=H[I];G!==null&&(G.lane&=-536870913)}n&=~V}a!==0&&Nf(e,a,0),c!==0&&u===0&&e.tag!==0&&(e.suspendedLanes|=c&~(p&~t))}function Nf(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var a=31-Ct(t);e.entangledLanes|=t,e.entanglements[a]=e.entanglements[a]|1073741824|n&261930}function wf(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var a=31-Ct(n),u=1<<a;u&t|e[a]&t&&(e[a]|=t),n&=~u}}function Af(e,t){var n=t&-t;return n=(n&42)!==0?1:Ds(n),(n&(e.suspendedLanes|t))!==0?0:n}function Ds(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;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:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function zs(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function Tf(){var e=B.p;return e!==0?e:(e=window.event,e===void 0?32:fm(e.type))}function Cf(e,t){var n=B.p;try{return B.p=e,t()}finally{B.p=n}}var On=Math.random().toString(36).slice(2),st="__reactFiber$"+On,yt="__reactProps$"+On,Oa="__reactContainer$"+On,Ls="__reactEvents$"+On,My="__reactListeners$"+On,Dy="__reactHandles$"+On,_f="__reactResources$"+On,Dl="__reactMarker$"+On;function Us(e){delete e[st],delete e[yt],delete e[Ls],delete e[My],delete e[Dy]}function ka(e){var t=e[st];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Oa]||n[st]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=Kg(e);e!==null;){if(n=e[st])return n;e=Kg(e)}return t}e=n,n=e.parentNode}return null}function Ra(e){if(e=e[st]||e[Oa]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function zl(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(s(33))}function Ma(e){var t=e[_f];return t||(t=e[_f]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function at(e){e[Dl]=!0}var jf=new Set,Of={};function ra(e,t){Da(e,t),Da(e+"Capture",t)}function Da(e,t){for(Of[e]=t,e=0;e<t.length;e++)jf.add(t[e])}var zy=RegExp("^[: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]*$"),kf={},Rf={};function Ly(e){return Os.call(Rf,e)?!0:Os.call(kf,e)?!1:zy.test(e)?Rf[e]=!0:(kf[e]=!0,!1)}function qr(e,t,n){if(Ly(t))if(n===null)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var a=t.toLowerCase().slice(0,5);if(a!=="data-"&&a!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+n)}}function Ir(e,t,n){if(n===null)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,""+n)}}function cn(e,t,n,a){if(a===null)e.removeAttribute(n);else{switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(n);return}e.setAttributeNS(t,n,""+a)}}function Gt(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Mf(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Uy(e,t,n){var a=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof a<"u"&&typeof a.get=="function"&&typeof a.set=="function"){var u=a.get,c=a.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return u.call(this)},set:function(p){n=""+p,c.call(this,p)}}),Object.defineProperty(e,t,{enumerable:a.enumerable}),{getValue:function(){return n},setValue:function(p){n=""+p},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Bs(e){if(!e._valueTracker){var t=Mf(e)?"checked":"value";e._valueTracker=Uy(e,t,""+e[t])}}function Df(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),a="";return e&&(a=Mf(e)?e.checked?"true":"false":e.value),e=a,e!==n?(t.setValue(e),!0):!1}function Xr(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}var By=/[\n"\\]/g;function Yt(e){return e.replace(By,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function Hs(e,t,n,a,u,c,p,v){e.name="",p!=null&&typeof p!="function"&&typeof p!="symbol"&&typeof p!="boolean"?e.type=p:e.removeAttribute("type"),t!=null?p==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+Gt(t)):e.value!==""+Gt(t)&&(e.value=""+Gt(t)):p!=="submit"&&p!=="reset"||e.removeAttribute("value"),t!=null?Gs(e,p,Gt(t)):n!=null?Gs(e,p,Gt(n)):a!=null&&e.removeAttribute("value"),u==null&&c!=null&&(e.defaultChecked=!!c),u!=null&&(e.checked=u&&typeof u!="function"&&typeof u!="symbol"),v!=null&&typeof v!="function"&&typeof v!="symbol"&&typeof v!="boolean"?e.name=""+Gt(v):e.removeAttribute("name")}function zf(e,t,n,a,u,c,p,v){if(c!=null&&typeof c!="function"&&typeof c!="symbol"&&typeof c!="boolean"&&(e.type=c),t!=null||n!=null){if(!(c!=="submit"&&c!=="reset"||t!=null)){Bs(e);return}n=n!=null?""+Gt(n):"",t=t!=null?""+Gt(t):n,v||t===e.value||(e.value=t),e.defaultValue=t}a=a??u,a=typeof a!="function"&&typeof a!="symbol"&&!!a,e.checked=v?e.checked:!!a,e.defaultChecked=!!a,p!=null&&typeof p!="function"&&typeof p!="symbol"&&typeof p!="boolean"&&(e.name=p),Bs(e)}function Gs(e,t,n){t==="number"&&Xr(e.ownerDocument)===e||e.defaultValue===""+n||(e.defaultValue=""+n)}function za(e,t,n,a){if(e=e.options,t){t={};for(var u=0;u<n.length;u++)t["$"+n[u]]=!0;for(n=0;n<e.length;n++)u=t.hasOwnProperty("$"+e[n].value),e[n].selected!==u&&(e[n].selected=u),u&&a&&(e[n].defaultSelected=!0)}else{for(n=""+Gt(n),t=null,u=0;u<e.length;u++){if(e[u].value===n){e[u].selected=!0,a&&(e[u].defaultSelected=!0);return}t!==null||e[u].disabled||(t=e[u])}t!==null&&(t.selected=!0)}}function Lf(e,t,n){if(t!=null&&(t=""+Gt(t),t!==e.value&&(e.value=t),n==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=n!=null?""+Gt(n):""}function Uf(e,t,n,a){if(t==null){if(a!=null){if(n!=null)throw Error(s(92));if(J(a)){if(1<a.length)throw Error(s(93));a=a[0]}n=a}n==null&&(n=""),t=n}n=Gt(t),e.defaultValue=n,a=e.textContent,a===n&&a!==""&&a!==null&&(e.value=a),Bs(e)}function La(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Hy=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function Bf(e,t,n){var a=t.indexOf("--")===0;n==null||typeof n=="boolean"||n===""?a?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":a?e.setProperty(t,n):typeof n!="number"||n===0||Hy.has(t)?t==="float"?e.cssFloat=n:e[t]=(""+n).trim():e[t]=n+"px"}function Hf(e,t,n){if(t!=null&&typeof t!="object")throw Error(s(62));if(e=e.style,n!=null){for(var a in n)!n.hasOwnProperty(a)||t!=null&&t.hasOwnProperty(a)||(a.indexOf("--")===0?e.setProperty(a,""):a==="float"?e.cssFloat="":e[a]="");for(var u in t)a=t[u],t.hasOwnProperty(u)&&n[u]!==a&&Bf(e,u,a)}else for(var c in t)t.hasOwnProperty(c)&&Bf(e,c,t[c])}function Ys(e){if(e.indexOf("-")===-1)return!1;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 Gy=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),Yy=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function Fr(e){return Yy.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function on(){}var qs=null;function Is(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Ua=null,Ba=null;function Gf(e){var t=Ra(e);if(t&&(e=t.stateNode)){var n=e[yt]||null;e:switch(e=t.stateNode,t.type){case"input":if(Hs(e,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll('input[name="'+Yt(""+t)+'"][type="radio"]'),t=0;t<n.length;t++){var a=n[t];if(a!==e&&a.form===e.form){var u=a[yt]||null;if(!u)throw Error(s(90));Hs(a,u.value,u.defaultValue,u.defaultValue,u.checked,u.defaultChecked,u.type,u.name)}}for(t=0;t<n.length;t++)a=n[t],a.form===e.form&&Df(a)}break e;case"textarea":Lf(e,n.value,n.defaultValue);break e;case"select":t=n.value,t!=null&&za(e,!!n.multiple,t,!1)}}}var Xs=!1;function Yf(e,t,n){if(Xs)return e(t,n);Xs=!0;try{var a=e(t);return a}finally{if(Xs=!1,(Ua!==null||Ba!==null)&&(Ri(),Ua&&(t=Ua,e=Ba,Ba=Ua=null,Gf(t),e)))for(t=0;t<e.length;t++)Gf(e[t])}}function Ll(e,t){var n=e.stateNode;if(n===null)return null;var a=n[yt]||null;if(a===null)return null;n=a[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":(a=!a.disabled)||(e=e.type,a=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!a;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(s(231,t,typeof n));return n}var fn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Fs=!1;if(fn)try{var Ul={};Object.defineProperty(Ul,"passive",{get:function(){Fs=!0}}),window.addEventListener("test",Ul,Ul),window.removeEventListener("test",Ul,Ul)}catch{Fs=!1}var kn=null,$s=null,$r=null;function qf(){if($r)return $r;var e,t=$s,n=t.length,a,u="value"in kn?kn.value:kn.textContent,c=u.length;for(e=0;e<n&&t[e]===u[e];e++);var p=n-e;for(a=1;a<=p&&t[n-a]===u[c-a];a++);return $r=u.slice(e,1<a?1-a:void 0)}function Zr(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 Vr(){return!0}function If(){return!1}function bt(e){function t(n,a,u,c,p){this._reactName=n,this._targetInst=u,this.type=a,this.nativeEvent=c,this.target=p,this.currentTarget=null;for(var v in e)e.hasOwnProperty(v)&&(n=e[v],this[v]=n?n(c):c[v]);return this.isDefaultPrevented=(c.defaultPrevented!=null?c.defaultPrevented:c.returnValue===!1)?Vr:If,this.isPropagationStopped=If,this}return x(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=Vr)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=Vr)},persist:function(){},isPersistent:Vr}),t}var ia={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Kr=bt(ia),Bl=x({},ia,{view:0,detail:0}),qy=bt(Bl),Zs,Vs,Hl,Qr=x({},Bl,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Qs,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!==Hl&&(Hl&&e.type==="mousemove"?(Zs=e.screenX-Hl.screenX,Vs=e.screenY-Hl.screenY):Vs=Zs=0,Hl=e),Zs)},movementY:function(e){return"movementY"in e?e.movementY:Vs}}),Xf=bt(Qr),Iy=x({},Qr,{dataTransfer:0}),Xy=bt(Iy),Fy=x({},Bl,{relatedTarget:0}),Ks=bt(Fy),$y=x({},ia,{animationName:0,elapsedTime:0,pseudoElement:0}),Zy=bt($y),Vy=x({},ia,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Ky=bt(Vy),Qy=x({},ia,{data:0}),Ff=bt(Qy),Jy={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Wy={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"},Py={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function eb(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Py[e])?!!t[e]:!1}function Qs(){return eb}var tb=x({},Bl,{key:function(e){if(e.key){var t=Jy[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Zr(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?Wy[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Qs,charCode:function(e){return e.type==="keypress"?Zr(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Zr(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),nb=bt(tb),ab=x({},Qr,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),$f=bt(ab),lb=x({},Bl,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Qs}),rb=bt(lb),ib=x({},ia,{propertyName:0,elapsedTime:0,pseudoElement:0}),sb=bt(ib),ub=x({},Qr,{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}),cb=bt(ub),ob=x({},ia,{newState:0,oldState:0}),fb=bt(ob),db=[9,13,27,32],Js=fn&&"CompositionEvent"in window,Gl=null;fn&&"documentMode"in document&&(Gl=document.documentMode);var hb=fn&&"TextEvent"in window&&!Gl,Zf=fn&&(!Js||Gl&&8<Gl&&11>=Gl),Vf=" ",Kf=!1;function Qf(e,t){switch(e){case"keyup":return db.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Jf(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Ha=!1;function gb(e,t){switch(e){case"compositionend":return Jf(t);case"keypress":return t.which!==32?null:(Kf=!0,Vf);case"textInput":return e=t.data,e===Vf&&Kf?null:e;default:return null}}function mb(e,t){if(Ha)return e==="compositionend"||!Js&&Qf(e,t)?(e=qf(),$r=$s=kn=null,Ha=!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 Zf&&t.locale!=="ko"?null:t.data;default:return null}}var pb={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 Wf(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!pb[e.type]:t==="textarea"}function Pf(e,t,n,a){Ua?Ba?Ba.push(a):Ba=[a]:Ua=a,t=Hi(t,"onChange"),0<t.length&&(n=new Kr("onChange","change",null,n,a),e.push({event:n,listeners:t}))}var Yl=null,ql=null;function yb(e){zg(e,0)}function Jr(e){var t=zl(e);if(Df(t))return e}function ed(e,t){if(e==="change")return t}var td=!1;if(fn){var Ws;if(fn){var Ps="oninput"in document;if(!Ps){var nd=document.createElement("div");nd.setAttribute("oninput","return;"),Ps=typeof nd.oninput=="function"}Ws=Ps}else Ws=!1;td=Ws&&(!document.documentMode||9<document.documentMode)}function ad(){Yl&&(Yl.detachEvent("onpropertychange",ld),ql=Yl=null)}function ld(e){if(e.propertyName==="value"&&Jr(ql)){var t=[];Pf(t,ql,e,Is(e)),Yf(yb,t)}}function bb(e,t,n){e==="focusin"?(ad(),Yl=t,ql=n,Yl.attachEvent("onpropertychange",ld)):e==="focusout"&&ad()}function vb(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Jr(ql)}function xb(e,t){if(e==="click")return Jr(t)}function Sb(e,t){if(e==="input"||e==="change")return Jr(t)}function Eb(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var _t=typeof Object.is=="function"?Object.is:Eb;function Il(e,t){if(_t(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),a=Object.keys(t);if(n.length!==a.length)return!1;for(a=0;a<n.length;a++){var u=n[a];if(!Os.call(t,u)||!_t(e[u],t[u]))return!1}return!0}function rd(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function id(e,t){var n=rd(e);e=0;for(var a;n;){if(n.nodeType===3){if(a=e+n.textContent.length,e<=t&&a>=t)return{node:n,offset:t-e};e=a}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=rd(n)}}function sd(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?sd(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function ud(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Xr(e.document);t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Xr(e.document)}return t}function eu(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")}var Nb=fn&&"documentMode"in document&&11>=document.documentMode,Ga=null,tu=null,Xl=null,nu=!1;function cd(e,t,n){var a=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;nu||Ga==null||Ga!==Xr(a)||(a=Ga,"selectionStart"in a&&eu(a)?a={start:a.selectionStart,end:a.selectionEnd}:(a=(a.ownerDocument&&a.ownerDocument.defaultView||window).getSelection(),a={anchorNode:a.anchorNode,anchorOffset:a.anchorOffset,focusNode:a.focusNode,focusOffset:a.focusOffset}),Xl&&Il(Xl,a)||(Xl=a,a=Hi(tu,"onSelect"),0<a.length&&(t=new Kr("onSelect","select",null,t,n),e.push({event:t,listeners:a}),t.target=Ga)))}function sa(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Ya={animationend:sa("Animation","AnimationEnd"),animationiteration:sa("Animation","AnimationIteration"),animationstart:sa("Animation","AnimationStart"),transitionrun:sa("Transition","TransitionRun"),transitionstart:sa("Transition","TransitionStart"),transitioncancel:sa("Transition","TransitionCancel"),transitionend:sa("Transition","TransitionEnd")},au={},od={};fn&&(od=document.createElement("div").style,"AnimationEvent"in window||(delete Ya.animationend.animation,delete Ya.animationiteration.animation,delete Ya.animationstart.animation),"TransitionEvent"in window||delete Ya.transitionend.transition);function ua(e){if(au[e])return au[e];if(!Ya[e])return e;var t=Ya[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in od)return au[e]=t[n];return e}var fd=ua("animationend"),dd=ua("animationiteration"),hd=ua("animationstart"),wb=ua("transitionrun"),Ab=ua("transitionstart"),Tb=ua("transitioncancel"),gd=ua("transitionend"),md=new Map,lu="abort auxClick beforeToggle 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(" ");lu.push("scrollEnd");function Pt(e,t){md.set(e,t),ra(t,[e])}var Wr=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)},qt=[],qa=0,ru=0;function Pr(){for(var e=qa,t=ru=qa=0;t<e;){var n=qt[t];qt[t++]=null;var a=qt[t];qt[t++]=null;var u=qt[t];qt[t++]=null;var c=qt[t];if(qt[t++]=null,a!==null&&u!==null){var p=a.pending;p===null?u.next=u:(u.next=p.next,p.next=u),a.pending=u}c!==0&&pd(n,u,c)}}function ei(e,t,n,a){qt[qa++]=e,qt[qa++]=t,qt[qa++]=n,qt[qa++]=a,ru|=a,e.lanes|=a,e=e.alternate,e!==null&&(e.lanes|=a)}function iu(e,t,n,a){return ei(e,t,n,a),ti(e)}function ca(e,t){return ei(e,null,null,t),ti(e)}function pd(e,t,n){e.lanes|=n;var a=e.alternate;a!==null&&(a.lanes|=n);for(var u=!1,c=e.return;c!==null;)c.childLanes|=n,a=c.alternate,a!==null&&(a.childLanes|=n),c.tag===22&&(e=c.stateNode,e===null||e._visibility&1||(u=!0)),e=c,c=c.return;return e.tag===3?(c=e.stateNode,u&&t!==null&&(u=31-Ct(n),e=c.hiddenUpdates,a=e[u],a===null?e[u]=[t]:a.push(t),t.lane=n|536870912),c):null}function ti(e){if(50<dr)throw dr=0,mc=null,Error(s(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var Ia={};function Cb(e,t,n,a){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=a,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function jt(e,t,n,a){return new Cb(e,t,n,a)}function su(e){return e=e.prototype,!(!e||!e.isReactComponent)}function dn(e,t){var n=e.alternate;return n===null?(n=jt(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&65011712,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n.refCleanup=e.refCleanup,n}function yd(e,t){e.flags&=65011714;var n=e.alternate;return n===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=n.childLanes,e.lanes=n.lanes,e.child=n.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=n.memoizedProps,e.memoizedState=n.memoizedState,e.updateQueue=n.updateQueue,e.type=n.type,t=n.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function ni(e,t,n,a,u,c){var p=0;if(a=e,typeof e=="function")su(e)&&(p=1);else if(typeof e=="string")p=R0(e,n,W.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case K:return e=jt(31,n,t,u),e.elementType=K,e.lanes=c,e;case T:return oa(n.children,u,c,t);case _:p=8,u|=24;break;case U:return e=jt(12,n,t,u|2),e.elementType=U,e.lanes=c,e;case Z:return e=jt(13,n,t,u),e.elementType=Z,e.lanes=c,e;case X:return e=jt(19,n,t,u),e.elementType=X,e.lanes=c,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case O:p=10;break e;case q:p=9;break e;case F:p=11;break e;case R:p=14;break e;case M:p=16,a=null;break e}p=29,n=Error(s(130,e===null?"null":typeof e,"")),a=null}return t=jt(p,n,t,u),t.elementType=e,t.type=a,t.lanes=c,t}function oa(e,t,n,a){return e=jt(7,e,a,t),e.lanes=n,e}function uu(e,t,n){return e=jt(6,e,null,t),e.lanes=n,e}function bd(e){var t=jt(18,null,null,0);return t.stateNode=e,t}function cu(e,t,n){return t=jt(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var vd=new WeakMap;function It(e,t){if(typeof e=="object"&&e!==null){var n=vd.get(e);return n!==void 0?n:(t={value:e,source:t,stack:bf(t)},vd.set(e,t),t)}return{value:e,source:t,stack:bf(t)}}var Xa=[],Fa=0,ai=null,Fl=0,Xt=[],Ft=0,Rn=null,nn=1,an="";function hn(e,t){Xa[Fa++]=Fl,Xa[Fa++]=ai,ai=e,Fl=t}function xd(e,t,n){Xt[Ft++]=nn,Xt[Ft++]=an,Xt[Ft++]=Rn,Rn=e;var a=nn;e=an;var u=32-Ct(a)-1;a&=~(1<<u),n+=1;var c=32-Ct(t)+u;if(30<c){var p=u-u%5;c=(a&(1<<p)-1).toString(32),a>>=p,u-=p,nn=1<<32-Ct(t)+u|n<<u|a,an=c+e}else nn=1<<c|n<<u|a,an=e}function ou(e){e.return!==null&&(hn(e,1),xd(e,1,0))}function fu(e){for(;e===ai;)ai=Xa[--Fa],Xa[Fa]=null,Fl=Xa[--Fa],Xa[Fa]=null;for(;e===Rn;)Rn=Xt[--Ft],Xt[Ft]=null,an=Xt[--Ft],Xt[Ft]=null,nn=Xt[--Ft],Xt[Ft]=null}function Sd(e,t){Xt[Ft++]=nn,Xt[Ft++]=an,Xt[Ft++]=Rn,nn=t.id,an=t.overflow,Rn=e}var ut=null,Ge=null,Ce=!1,Mn=null,$t=!1,du=Error(s(519));function Dn(e){var t=Error(s(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw $l(It(t,e)),du}function Ed(e){var t=e.stateNode,n=e.type,a=e.memoizedProps;switch(t[st]=e,t[yt]=a,n){case"dialog":Ne("cancel",t),Ne("close",t);break;case"iframe":case"object":case"embed":Ne("load",t);break;case"video":case"audio":for(n=0;n<gr.length;n++)Ne(gr[n],t);break;case"source":Ne("error",t);break;case"img":case"image":case"link":Ne("error",t),Ne("load",t);break;case"details":Ne("toggle",t);break;case"input":Ne("invalid",t),zf(t,a.value,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name,!0);break;case"select":Ne("invalid",t);break;case"textarea":Ne("invalid",t),Uf(t,a.value,a.defaultValue,a.children)}n=a.children,typeof n!="string"&&typeof n!="number"&&typeof n!="bigint"||t.textContent===""+n||a.suppressHydrationWarning===!0||Hg(t.textContent,n)?(a.popover!=null&&(Ne("beforetoggle",t),Ne("toggle",t)),a.onScroll!=null&&Ne("scroll",t),a.onScrollEnd!=null&&Ne("scrollend",t),a.onClick!=null&&(t.onclick=on),t=!0):t=!1,t||Dn(e,!0)}function Nd(e){for(ut=e.return;ut;)switch(ut.tag){case 5:case 31:case 13:$t=!1;return;case 27:case 3:$t=!0;return;default:ut=ut.return}}function $a(e){if(e!==ut)return!1;if(!Ce)return Nd(e),Ce=!0,!1;var t=e.tag,n;if((n=t!==3&&t!==27)&&((n=t===5)&&(n=e.type,n=!(n!=="form"&&n!=="button")||Oc(e.type,e.memoizedProps)),n=!n),n&&Ge&&Dn(e),Nd(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(s(317));Ge=Vg(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(s(317));Ge=Vg(e)}else t===27?(t=Ge,Vn(e.type)?(e=zc,zc=null,Ge=e):Ge=t):Ge=ut?Vt(e.stateNode.nextSibling):null;return!0}function fa(){Ge=ut=null,Ce=!1}function hu(){var e=Mn;return e!==null&&(Et===null?Et=e:Et.push.apply(Et,e),Mn=null),e}function $l(e){Mn===null?Mn=[e]:Mn.push(e)}var gu=N(null),da=null,gn=null;function zn(e,t,n){ee(gu,t._currentValue),t._currentValue=n}function mn(e){e._currentValue=gu.current,Y(gu)}function mu(e,t,n){for(;e!==null;){var a=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,a!==null&&(a.childLanes|=t)):a!==null&&(a.childLanes&t)!==t&&(a.childLanes|=t),e===n)break;e=e.return}}function pu(e,t,n,a){var u=e.child;for(u!==null&&(u.return=e);u!==null;){var c=u.dependencies;if(c!==null){var p=u.child;c=c.firstContext;e:for(;c!==null;){var v=c;c=u;for(var w=0;w<t.length;w++)if(v.context===t[w]){c.lanes|=n,v=c.alternate,v!==null&&(v.lanes|=n),mu(c.return,n,e),a||(p=null);break e}c=v.next}}else if(u.tag===18){if(p=u.return,p===null)throw Error(s(341));p.lanes|=n,c=p.alternate,c!==null&&(c.lanes|=n),mu(p,n,e),p=null}else p=u.child;if(p!==null)p.return=u;else for(p=u;p!==null;){if(p===e){p=null;break}if(u=p.sibling,u!==null){u.return=p.return,p=u;break}p=p.return}u=p}}function Za(e,t,n,a){e=null;for(var u=t,c=!1;u!==null;){if(!c){if((u.flags&524288)!==0)c=!0;else if((u.flags&262144)!==0)break}if(u.tag===10){var p=u.alternate;if(p===null)throw Error(s(387));if(p=p.memoizedProps,p!==null){var v=u.type;_t(u.pendingProps.value,p.value)||(e!==null?e.push(v):e=[v])}}else if(u===fe.current){if(p=u.alternate,p===null)throw Error(s(387));p.memoizedState.memoizedState!==u.memoizedState.memoizedState&&(e!==null?e.push(vr):e=[vr])}u=u.return}e!==null&&pu(t,e,n,a),t.flags|=262144}function li(e){for(e=e.firstContext;e!==null;){if(!_t(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function ha(e){da=e,gn=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function ct(e){return wd(da,e)}function ri(e,t){return da===null&&ha(e),wd(e,t)}function wd(e,t){var n=t._currentValue;if(t={context:t,memoizedValue:n,next:null},gn===null){if(e===null)throw Error(s(308));gn=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else gn=gn.next=t;return n}var _b=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(n,a){e.push(a)}};this.abort=function(){t.aborted=!0,e.forEach(function(n){return n()})}},jb=l.unstable_scheduleCallback,Ob=l.unstable_NormalPriority,Je={$$typeof:O,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function yu(){return{controller:new _b,data:new Map,refCount:0}}function Zl(e){e.refCount--,e.refCount===0&&jb(Ob,function(){e.controller.abort()})}var Vl=null,bu=0,Va=0,Ka=null;function kb(e,t){if(Vl===null){var n=Vl=[];bu=0,Va=Sc(),Ka={status:"pending",value:void 0,then:function(a){n.push(a)}}}return bu++,t.then(Ad,Ad),t}function Ad(){if(--bu===0&&Vl!==null){Ka!==null&&(Ka.status="fulfilled");var e=Vl;Vl=null,Va=0,Ka=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function Rb(e,t){var n=[],a={status:"pending",value:null,reason:null,then:function(u){n.push(u)}};return e.then(function(){a.status="fulfilled",a.value=t;for(var u=0;u<n.length;u++)(0,n[u])(t)},function(u){for(a.status="rejected",a.reason=u,u=0;u<n.length;u++)(0,n[u])(void 0)}),a}var Td=k.S;k.S=function(e,t){cg=At(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&kb(e,t),Td!==null&&Td(e,t)};var ga=N(null);function vu(){var e=ga.current;return e!==null?e:Be.pooledCache}function ii(e,t){t===null?ee(ga,ga.current):ee(ga,t.pool)}function Cd(){var e=vu();return e===null?null:{parent:Je._currentValue,pool:e}}var Qa=Error(s(460)),xu=Error(s(474)),si=Error(s(542)),ui={then:function(){}};function _d(e){return e=e.status,e==="fulfilled"||e==="rejected"}function jd(e,t,n){switch(n=e[n],n===void 0?e.push(t):n!==t&&(t.then(on,on),t=n),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,kd(e),e;default:if(typeof t.status=="string")t.then(on,on);else{if(e=Be,e!==null&&100<e.shellSuspendCounter)throw Error(s(482));e=t,e.status="pending",e.then(function(a){if(t.status==="pending"){var u=t;u.status="fulfilled",u.value=a}},function(a){if(t.status==="pending"){var u=t;u.status="rejected",u.reason=a}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,kd(e),e}throw pa=t,Qa}}function ma(e){try{var t=e._init;return t(e._payload)}catch(n){throw n!==null&&typeof n=="object"&&typeof n.then=="function"?(pa=n,Qa):n}}var pa=null;function Od(){if(pa===null)throw Error(s(459));var e=pa;return pa=null,e}function kd(e){if(e===Qa||e===si)throw Error(s(483))}var Ja=null,Kl=0;function ci(e){var t=Kl;return Kl+=1,Ja===null&&(Ja=[]),jd(Ja,e,t)}function Ql(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function oi(e,t){throw t.$$typeof===S?Error(s(525)):(e=Object.prototype.toString.call(t),Error(s(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function Rd(e){function t(j,C){if(e){var D=j.deletions;D===null?(j.deletions=[C],j.flags|=16):D.push(C)}}function n(j,C){if(!e)return null;for(;C!==null;)t(j,C),C=C.sibling;return null}function a(j){for(var C=new Map;j!==null;)j.key!==null?C.set(j.key,j):C.set(j.index,j),j=j.sibling;return C}function u(j,C){return j=dn(j,C),j.index=0,j.sibling=null,j}function c(j,C,D){return j.index=D,e?(D=j.alternate,D!==null?(D=D.index,D<C?(j.flags|=67108866,C):D):(j.flags|=67108866,C)):(j.flags|=1048576,C)}function p(j){return e&&j.alternate===null&&(j.flags|=67108866),j}function v(j,C,D,$){return C===null||C.tag!==6?(C=uu(D,j.mode,$),C.return=j,C):(C=u(C,D),C.return=j,C)}function w(j,C,D,$){var he=D.type;return he===T?I(j,C,D.props.children,$,D.key):C!==null&&(C.elementType===he||typeof he=="object"&&he!==null&&he.$$typeof===M&&ma(he)===C.type)?(C=u(C,D.props),Ql(C,D),C.return=j,C):(C=ni(D.type,D.key,D.props,null,j.mode,$),Ql(C,D),C.return=j,C)}function L(j,C,D,$){return C===null||C.tag!==4||C.stateNode.containerInfo!==D.containerInfo||C.stateNode.implementation!==D.implementation?(C=cu(D,j.mode,$),C.return=j,C):(C=u(C,D.children||[]),C.return=j,C)}function I(j,C,D,$,he){return C===null||C.tag!==7?(C=oa(D,j.mode,$,he),C.return=j,C):(C=u(C,D),C.return=j,C)}function V(j,C,D){if(typeof C=="string"&&C!==""||typeof C=="number"||typeof C=="bigint")return C=uu(""+C,j.mode,D),C.return=j,C;if(typeof C=="object"&&C!==null){switch(C.$$typeof){case E:return D=ni(C.type,C.key,C.props,null,j.mode,D),Ql(D,C),D.return=j,D;case A:return C=cu(C,j.mode,D),C.return=j,C;case M:return C=ma(C),V(j,C,D)}if(J(C)||de(C))return C=oa(C,j.mode,D,null),C.return=j,C;if(typeof C.then=="function")return V(j,ci(C),D);if(C.$$typeof===O)return V(j,ri(j,C),D);oi(j,C)}return null}function H(j,C,D,$){var he=C!==null?C.key:null;if(typeof D=="string"&&D!==""||typeof D=="number"||typeof D=="bigint")return he!==null?null:v(j,C,""+D,$);if(typeof D=="object"&&D!==null){switch(D.$$typeof){case E:return D.key===he?w(j,C,D,$):null;case A:return D.key===he?L(j,C,D,$):null;case M:return D=ma(D),H(j,C,D,$)}if(J(D)||de(D))return he!==null?null:I(j,C,D,$,null);if(typeof D.then=="function")return H(j,C,ci(D),$);if(D.$$typeof===O)return H(j,C,ri(j,D),$);oi(j,D)}return null}function G(j,C,D,$,he){if(typeof $=="string"&&$!==""||typeof $=="number"||typeof $=="bigint")return j=j.get(D)||null,v(C,j,""+$,he);if(typeof $=="object"&&$!==null){switch($.$$typeof){case E:return j=j.get($.key===null?D:$.key)||null,w(C,j,$,he);case A:return j=j.get($.key===null?D:$.key)||null,L(C,j,$,he);case M:return $=ma($),G(j,C,D,$,he)}if(J($)||de($))return j=j.get(D)||null,I(C,j,$,he,null);if(typeof $.then=="function")return G(j,C,D,ci($),he);if($.$$typeof===O)return G(j,C,D,ri(C,$),he);oi(C,$)}return null}function se(j,C,D,$){for(var he=null,_e=null,oe=C,Se=C=0,Ae=null;oe!==null&&Se<D.length;Se++){oe.index>Se?(Ae=oe,oe=null):Ae=oe.sibling;var je=H(j,oe,D[Se],$);if(je===null){oe===null&&(oe=Ae);break}e&&oe&&je.alternate===null&&t(j,oe),C=c(je,C,Se),_e===null?he=je:_e.sibling=je,_e=je,oe=Ae}if(Se===D.length)return n(j,oe),Ce&&hn(j,Se),he;if(oe===null){for(;Se<D.length;Se++)oe=V(j,D[Se],$),oe!==null&&(C=c(oe,C,Se),_e===null?he=oe:_e.sibling=oe,_e=oe);return Ce&&hn(j,Se),he}for(oe=a(oe);Se<D.length;Se++)Ae=G(oe,j,Se,D[Se],$),Ae!==null&&(e&&Ae.alternate!==null&&oe.delete(Ae.key===null?Se:Ae.key),C=c(Ae,C,Se),_e===null?he=Ae:_e.sibling=Ae,_e=Ae);return e&&oe.forEach(function(Pn){return t(j,Pn)}),Ce&&hn(j,Se),he}function me(j,C,D,$){if(D==null)throw Error(s(151));for(var he=null,_e=null,oe=C,Se=C=0,Ae=null,je=D.next();oe!==null&&!je.done;Se++,je=D.next()){oe.index>Se?(Ae=oe,oe=null):Ae=oe.sibling;var Pn=H(j,oe,je.value,$);if(Pn===null){oe===null&&(oe=Ae);break}e&&oe&&Pn.alternate===null&&t(j,oe),C=c(Pn,C,Se),_e===null?he=Pn:_e.sibling=Pn,_e=Pn,oe=Ae}if(je.done)return n(j,oe),Ce&&hn(j,Se),he;if(oe===null){for(;!je.done;Se++,je=D.next())je=V(j,je.value,$),je!==null&&(C=c(je,C,Se),_e===null?he=je:_e.sibling=je,_e=je);return Ce&&hn(j,Se),he}for(oe=a(oe);!je.done;Se++,je=D.next())je=G(oe,j,Se,je.value,$),je!==null&&(e&&je.alternate!==null&&oe.delete(je.key===null?Se:je.key),C=c(je,C,Se),_e===null?he=je:_e.sibling=je,_e=je);return e&&oe.forEach(function(I0){return t(j,I0)}),Ce&&hn(j,Se),he}function Le(j,C,D,$){if(typeof D=="object"&&D!==null&&D.type===T&&D.key===null&&(D=D.props.children),typeof D=="object"&&D!==null){switch(D.$$typeof){case E:e:{for(var he=D.key;C!==null;){if(C.key===he){if(he=D.type,he===T){if(C.tag===7){n(j,C.sibling),$=u(C,D.props.children),$.return=j,j=$;break e}}else if(C.elementType===he||typeof he=="object"&&he!==null&&he.$$typeof===M&&ma(he)===C.type){n(j,C.sibling),$=u(C,D.props),Ql($,D),$.return=j,j=$;break e}n(j,C);break}else t(j,C);C=C.sibling}D.type===T?($=oa(D.props.children,j.mode,$,D.key),$.return=j,j=$):($=ni(D.type,D.key,D.props,null,j.mode,$),Ql($,D),$.return=j,j=$)}return p(j);case A:e:{for(he=D.key;C!==null;){if(C.key===he)if(C.tag===4&&C.stateNode.containerInfo===D.containerInfo&&C.stateNode.implementation===D.implementation){n(j,C.sibling),$=u(C,D.children||[]),$.return=j,j=$;break e}else{n(j,C);break}else t(j,C);C=C.sibling}$=cu(D,j.mode,$),$.return=j,j=$}return p(j);case M:return D=ma(D),Le(j,C,D,$)}if(J(D))return se(j,C,D,$);if(de(D)){if(he=de(D),typeof he!="function")throw Error(s(150));return D=he.call(D),me(j,C,D,$)}if(typeof D.then=="function")return Le(j,C,ci(D),$);if(D.$$typeof===O)return Le(j,C,ri(j,D),$);oi(j,D)}return typeof D=="string"&&D!==""||typeof D=="number"||typeof D=="bigint"?(D=""+D,C!==null&&C.tag===6?(n(j,C.sibling),$=u(C,D),$.return=j,j=$):(n(j,C),$=uu(D,j.mode,$),$.return=j,j=$),p(j)):n(j,C)}return function(j,C,D,$){try{Kl=0;var he=Le(j,C,D,$);return Ja=null,he}catch(oe){if(oe===Qa||oe===si)throw oe;var _e=jt(29,oe,null,j.mode);return _e.lanes=$,_e.return=j,_e}finally{}}}var ya=Rd(!0),Md=Rd(!1),Ln=!1;function Su(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Eu(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function Un(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Bn(e,t,n){var a=e.updateQueue;if(a===null)return null;if(a=a.shared,(Oe&2)!==0){var u=a.pending;return u===null?t.next=t:(t.next=u.next,u.next=t),a.pending=t,t=ti(e),pd(e,null,n),t}return ei(e,a,t,n),ti(e)}function Jl(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194048)!==0)){var a=t.lanes;a&=e.pendingLanes,n|=a,t.lanes=n,wf(e,n)}}function Nu(e,t){var n=e.updateQueue,a=e.alternate;if(a!==null&&(a=a.updateQueue,n===a)){var u=null,c=null;if(n=n.firstBaseUpdate,n!==null){do{var p={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};c===null?u=c=p:c=c.next=p,n=n.next}while(n!==null);c===null?u=c=t:c=c.next=t}else u=c=t;n={baseState:a.baseState,firstBaseUpdate:u,lastBaseUpdate:c,shared:a.shared,callbacks:a.callbacks},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}var wu=!1;function Wl(){if(wu){var e=Ka;if(e!==null)throw e}}function Pl(e,t,n,a){wu=!1;var u=e.updateQueue;Ln=!1;var c=u.firstBaseUpdate,p=u.lastBaseUpdate,v=u.shared.pending;if(v!==null){u.shared.pending=null;var w=v,L=w.next;w.next=null,p===null?c=L:p.next=L,p=w;var I=e.alternate;I!==null&&(I=I.updateQueue,v=I.lastBaseUpdate,v!==p&&(v===null?I.firstBaseUpdate=L:v.next=L,I.lastBaseUpdate=w))}if(c!==null){var V=u.baseState;p=0,I=L=w=null,v=c;do{var H=v.lane&-536870913,G=H!==v.lane;if(G?(we&H)===H:(a&H)===H){H!==0&&H===Va&&(wu=!0),I!==null&&(I=I.next={lane:0,tag:v.tag,payload:v.payload,callback:null,next:null});e:{var se=e,me=v;H=t;var Le=n;switch(me.tag){case 1:if(se=me.payload,typeof se=="function"){V=se.call(Le,V,H);break e}V=se;break e;case 3:se.flags=se.flags&-65537|128;case 0:if(se=me.payload,H=typeof se=="function"?se.call(Le,V,H):se,H==null)break e;V=x({},V,H);break e;case 2:Ln=!0}}H=v.callback,H!==null&&(e.flags|=64,G&&(e.flags|=8192),G=u.callbacks,G===null?u.callbacks=[H]:G.push(H))}else G={lane:H,tag:v.tag,payload:v.payload,callback:v.callback,next:null},I===null?(L=I=G,w=V):I=I.next=G,p|=H;if(v=v.next,v===null){if(v=u.shared.pending,v===null)break;G=v,v=G.next,G.next=null,u.lastBaseUpdate=G,u.shared.pending=null}}while(!0);I===null&&(w=V),u.baseState=w,u.firstBaseUpdate=L,u.lastBaseUpdate=I,c===null&&(u.shared.lanes=0),In|=p,e.lanes=p,e.memoizedState=V}}function Dd(e,t){if(typeof e!="function")throw Error(s(191,e));e.call(t)}function zd(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;e<n.length;e++)Dd(n[e],t)}var Wa=N(null),fi=N(0);function Ld(e,t){e=wn,ee(fi,e),ee(Wa,t),wn=e|t.baseLanes}function Au(){ee(fi,wn),ee(Wa,Wa.current)}function Tu(){wn=fi.current,Y(Wa),Y(fi)}var Ot=N(null),Zt=null;function Hn(e){var t=e.alternate;ee(Ke,Ke.current&1),ee(Ot,e),Zt===null&&(t===null||Wa.current!==null||t.memoizedState!==null)&&(Zt=e)}function Cu(e){ee(Ke,Ke.current),ee(Ot,e),Zt===null&&(Zt=e)}function Ud(e){e.tag===22?(ee(Ke,Ke.current),ee(Ot,e),Zt===null&&(Zt=e)):Gn()}function Gn(){ee(Ke,Ke.current),ee(Ot,Ot.current)}function kt(e){Y(Ot),Zt===e&&(Zt=null),Y(Ke)}var Ke=N(0);function di(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||Mc(n)||Dc(n)))return t}else if(t.tag===19&&(t.memoizedProps.revealOrder==="forwards"||t.memoizedProps.revealOrder==="backwards"||t.memoizedProps.revealOrder==="unstable_legacy-backwards"||t.memoizedProps.revealOrder==="together")){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 pn=0,ve=null,De=null,We=null,hi=!1,Pa=!1,ba=!1,gi=0,er=0,el=null,Mb=0;function Ze(){throw Error(s(321))}function _u(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!_t(e[n],t[n]))return!1;return!0}function ju(e,t,n,a,u,c){return pn=c,ve=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,k.H=e===null||e.memoizedState===null?xh:Xu,ba=!1,c=n(a,u),ba=!1,Pa&&(c=Hd(t,n,a,u)),Bd(e),c}function Bd(e){k.H=ar;var t=De!==null&&De.next!==null;if(pn=0,We=De=ve=null,hi=!1,er=0,el=null,t)throw Error(s(300));e===null||Pe||(e=e.dependencies,e!==null&&li(e)&&(Pe=!0))}function Hd(e,t,n,a){ve=e;var u=0;do{if(Pa&&(el=null),er=0,Pa=!1,25<=u)throw Error(s(301));if(u+=1,We=De=null,e.updateQueue!=null){var c=e.updateQueue;c.lastEffect=null,c.events=null,c.stores=null,c.memoCache!=null&&(c.memoCache.index=0)}k.H=Sh,c=t(n,a)}while(Pa);return c}function Db(){var e=k.H,t=e.useState()[0];return t=typeof t.then=="function"?tr(t):t,e=e.useState()[0],(De!==null?De.memoizedState:null)!==e&&(ve.flags|=1024),t}function Ou(){var e=gi!==0;return gi=0,e}function ku(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n}function Ru(e){if(hi){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}hi=!1}pn=0,We=De=ve=null,Pa=!1,er=gi=0,el=null}function pt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return We===null?ve.memoizedState=We=e:We=We.next=e,We}function Qe(){if(De===null){var e=ve.alternate;e=e!==null?e.memoizedState:null}else e=De.next;var t=We===null?ve.memoizedState:We.next;if(t!==null)We=t,De=e;else{if(e===null)throw ve.alternate===null?Error(s(467)):Error(s(310));De=e,e={memoizedState:De.memoizedState,baseState:De.baseState,baseQueue:De.baseQueue,queue:De.queue,next:null},We===null?ve.memoizedState=We=e:We=We.next=e}return We}function mi(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function tr(e){var t=er;return er+=1,el===null&&(el=[]),e=jd(el,e,t),t=ve,(We===null?t.memoizedState:We.next)===null&&(t=t.alternate,k.H=t===null||t.memoizedState===null?xh:Xu),e}function pi(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return tr(e);if(e.$$typeof===O)return ct(e)}throw Error(s(438,String(e)))}function Mu(e){var t=null,n=ve.updateQueue;if(n!==null&&(t=n.memoCache),t==null){var a=ve.alternate;a!==null&&(a=a.updateQueue,a!==null&&(a=a.memoCache,a!=null&&(t={data:a.data.map(function(u){return u.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),n===null&&(n=mi(),ve.updateQueue=n),n.memoCache=t,n=t.data[t.index],n===void 0)for(n=t.data[t.index]=Array(e),a=0;a<e;a++)n[a]=ie;return t.index++,n}function yn(e,t){return typeof t=="function"?t(e):t}function yi(e){var t=Qe();return Du(t,De,e)}function Du(e,t,n){var a=e.queue;if(a===null)throw Error(s(311));a.lastRenderedReducer=n;var u=e.baseQueue,c=a.pending;if(c!==null){if(u!==null){var p=u.next;u.next=c.next,c.next=p}t.baseQueue=u=c,a.pending=null}if(c=e.baseState,u===null)e.memoizedState=c;else{t=u.next;var v=p=null,w=null,L=t,I=!1;do{var V=L.lane&-536870913;if(V!==L.lane?(we&V)===V:(pn&V)===V){var H=L.revertLane;if(H===0)w!==null&&(w=w.next={lane:0,revertLane:0,gesture:null,action:L.action,hasEagerState:L.hasEagerState,eagerState:L.eagerState,next:null}),V===Va&&(I=!0);else if((pn&H)===H){L=L.next,H===Va&&(I=!0);continue}else V={lane:0,revertLane:L.revertLane,gesture:null,action:L.action,hasEagerState:L.hasEagerState,eagerState:L.eagerState,next:null},w===null?(v=w=V,p=c):w=w.next=V,ve.lanes|=H,In|=H;V=L.action,ba&&n(c,V),c=L.hasEagerState?L.eagerState:n(c,V)}else H={lane:V,revertLane:L.revertLane,gesture:L.gesture,action:L.action,hasEagerState:L.hasEagerState,eagerState:L.eagerState,next:null},w===null?(v=w=H,p=c):w=w.next=H,ve.lanes|=V,In|=V;L=L.next}while(L!==null&&L!==t);if(w===null?p=c:w.next=v,!_t(c,e.memoizedState)&&(Pe=!0,I&&(n=Ka,n!==null)))throw n;e.memoizedState=c,e.baseState=p,e.baseQueue=w,a.lastRenderedState=c}return u===null&&(a.lanes=0),[e.memoizedState,a.dispatch]}function zu(e){var t=Qe(),n=t.queue;if(n===null)throw Error(s(311));n.lastRenderedReducer=e;var a=n.dispatch,u=n.pending,c=t.memoizedState;if(u!==null){n.pending=null;var p=u=u.next;do c=e(c,p.action),p=p.next;while(p!==u);_t(c,t.memoizedState)||(Pe=!0),t.memoizedState=c,t.baseQueue===null&&(t.baseState=c),n.lastRenderedState=c}return[c,a]}function Gd(e,t,n){var a=ve,u=Qe(),c=Ce;if(c){if(n===void 0)throw Error(s(407));n=n()}else n=t();var p=!_t((De||u).memoizedState,n);if(p&&(u.memoizedState=n,Pe=!0),u=u.queue,Bu(Id.bind(null,a,u,e),[e]),u.getSnapshot!==t||p||We!==null&&We.memoizedState.tag&1){if(a.flags|=2048,tl(9,{destroy:void 0},qd.bind(null,a,u,n,t),null),Be===null)throw Error(s(349));c||(pn&127)!==0||Yd(a,t,n)}return n}function Yd(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=ve.updateQueue,t===null?(t=mi(),ve.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function qd(e,t,n,a){t.value=n,t.getSnapshot=a,Xd(t)&&Fd(e)}function Id(e,t,n){return n(function(){Xd(t)&&Fd(e)})}function Xd(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!_t(e,n)}catch{return!0}}function Fd(e){var t=ca(e,2);t!==null&&Nt(t,e,2)}function Lu(e){var t=pt();if(typeof e=="function"){var n=e;if(e=n(),ba){jn(!0);try{n()}finally{jn(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:yn,lastRenderedState:e},t}function $d(e,t,n,a){return e.baseState=n,Du(e,De,typeof a=="function"?a:yn)}function zb(e,t,n,a,u){if(xi(e))throw Error(s(485));if(e=t.action,e!==null){var c={payload:u,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(p){c.listeners.push(p)}};k.T!==null?n(!0):c.isTransition=!1,a(c),n=t.pending,n===null?(c.next=t.pending=c,Zd(t,c)):(c.next=n.next,t.pending=n.next=c)}}function Zd(e,t){var n=t.action,a=t.payload,u=e.state;if(t.isTransition){var c=k.T,p={};k.T=p;try{var v=n(u,a),w=k.S;w!==null&&w(p,v),Vd(e,t,v)}catch(L){Uu(e,t,L)}finally{c!==null&&p.types!==null&&(c.types=p.types),k.T=c}}else try{c=n(u,a),Vd(e,t,c)}catch(L){Uu(e,t,L)}}function Vd(e,t,n){n!==null&&typeof n=="object"&&typeof n.then=="function"?n.then(function(a){Kd(e,t,a)},function(a){return Uu(e,t,a)}):Kd(e,t,n)}function Kd(e,t,n){t.status="fulfilled",t.value=n,Qd(t),e.state=n,t=e.pending,t!==null&&(n=t.next,n===t?e.pending=null:(n=n.next,t.next=n,Zd(e,n)))}function Uu(e,t,n){var a=e.pending;if(e.pending=null,a!==null){a=a.next;do t.status="rejected",t.reason=n,Qd(t),t=t.next;while(t!==a)}e.action=null}function Qd(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function Jd(e,t){return t}function Wd(e,t){if(Ce){var n=Be.formState;if(n!==null){e:{var a=ve;if(Ce){if(Ge){t:{for(var u=Ge,c=$t;u.nodeType!==8;){if(!c){u=null;break t}if(u=Vt(u.nextSibling),u===null){u=null;break t}}c=u.data,u=c==="F!"||c==="F"?u:null}if(u){Ge=Vt(u.nextSibling),a=u.data==="F!";break e}}Dn(a)}a=!1}a&&(t=n[0])}}return n=pt(),n.memoizedState=n.baseState=t,a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Jd,lastRenderedState:t},n.queue=a,n=yh.bind(null,ve,a),a.dispatch=n,a=Lu(!1),c=Iu.bind(null,ve,!1,a.queue),a=pt(),u={state:t,dispatch:null,action:e,pending:null},a.queue=u,n=zb.bind(null,ve,u,c,n),u.dispatch=n,a.memoizedState=e,[t,n,!1]}function Pd(e){var t=Qe();return eh(t,De,e)}function eh(e,t,n){if(t=Du(e,t,Jd)[0],e=yi(yn)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var a=tr(t)}catch(p){throw p===Qa?si:p}else a=t;t=Qe();var u=t.queue,c=u.dispatch;return n!==t.memoizedState&&(ve.flags|=2048,tl(9,{destroy:void 0},Lb.bind(null,u,n),null)),[a,c,e]}function Lb(e,t){e.action=t}function th(e){var t=Qe(),n=De;if(n!==null)return eh(t,n,e);Qe(),t=t.memoizedState,n=Qe();var a=n.queue.dispatch;return n.memoizedState=e,[t,a,!1]}function tl(e,t,n,a){return e={tag:e,create:n,deps:a,inst:t,next:null},t=ve.updateQueue,t===null&&(t=mi(),ve.updateQueue=t),n=t.lastEffect,n===null?t.lastEffect=e.next=e:(a=n.next,n.next=e,e.next=a,t.lastEffect=e),e}function nh(){return Qe().memoizedState}function bi(e,t,n,a){var u=pt();ve.flags|=e,u.memoizedState=tl(1|t,{destroy:void 0},n,a===void 0?null:a)}function vi(e,t,n,a){var u=Qe();a=a===void 0?null:a;var c=u.memoizedState.inst;De!==null&&a!==null&&_u(a,De.memoizedState.deps)?u.memoizedState=tl(t,c,n,a):(ve.flags|=e,u.memoizedState=tl(1|t,c,n,a))}function ah(e,t){bi(8390656,8,e,t)}function Bu(e,t){vi(2048,8,e,t)}function Ub(e){ve.flags|=4;var t=ve.updateQueue;if(t===null)t=mi(),ve.updateQueue=t,t.events=[e];else{var n=t.events;n===null?t.events=[e]:n.push(e)}}function lh(e){var t=Qe().memoizedState;return Ub({ref:t,nextImpl:e}),function(){if((Oe&2)!==0)throw Error(s(440));return t.impl.apply(void 0,arguments)}}function rh(e,t){return vi(4,2,e,t)}function ih(e,t){return vi(4,4,e,t)}function sh(e,t){if(typeof t=="function"){e=e();var n=t(e);return function(){typeof n=="function"?n():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function uh(e,t,n){n=n!=null?n.concat([e]):null,vi(4,4,sh.bind(null,t,e),n)}function Hu(){}function ch(e,t){var n=Qe();t=t===void 0?null:t;var a=n.memoizedState;return t!==null&&_u(t,a[1])?a[0]:(n.memoizedState=[e,t],e)}function oh(e,t){var n=Qe();t=t===void 0?null:t;var a=n.memoizedState;if(t!==null&&_u(t,a[1]))return a[0];if(a=e(),ba){jn(!0);try{e()}finally{jn(!1)}}return n.memoizedState=[a,t],a}function Gu(e,t,n){return n===void 0||(pn&1073741824)!==0&&(we&261930)===0?e.memoizedState=t:(e.memoizedState=n,e=fg(),ve.lanes|=e,In|=e,n)}function fh(e,t,n,a){return _t(n,t)?n:Wa.current!==null?(e=Gu(e,n,a),_t(e,t)||(Pe=!0),e):(pn&42)===0||(pn&1073741824)!==0&&(we&261930)===0?(Pe=!0,e.memoizedState=n):(e=fg(),ve.lanes|=e,In|=e,t)}function dh(e,t,n,a,u){var c=B.p;B.p=c!==0&&8>c?c:8;var p=k.T,v={};k.T=v,Iu(e,!1,t,n);try{var w=u(),L=k.S;if(L!==null&&L(v,w),w!==null&&typeof w=="object"&&typeof w.then=="function"){var I=Rb(w,a);nr(e,t,I,Dt(e))}else nr(e,t,a,Dt(e))}catch(V){nr(e,t,{then:function(){},status:"rejected",reason:V},Dt())}finally{B.p=c,p!==null&&v.types!==null&&(p.types=v.types),k.T=p}}function Bb(){}function Yu(e,t,n,a){if(e.tag!==5)throw Error(s(476));var u=hh(e).queue;dh(e,u,t,le,n===null?Bb:function(){return gh(e),n(a)})}function hh(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:le,baseState:le,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:yn,lastRenderedState:le},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:yn,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function gh(e){var t=hh(e);t.next===null&&(t=e.alternate.memoizedState),nr(e,t.next.queue,{},Dt())}function qu(){return ct(vr)}function mh(){return Qe().memoizedState}function ph(){return Qe().memoizedState}function Hb(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var n=Dt();e=Un(n);var a=Bn(t,e,n);a!==null&&(Nt(a,t,n),Jl(a,t,n)),t={cache:yu()},e.payload=t;return}t=t.return}}function Gb(e,t,n){var a=Dt();n={lane:a,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},xi(e)?bh(t,n):(n=iu(e,t,n,a),n!==null&&(Nt(n,e,a),vh(n,t,a)))}function yh(e,t,n){var a=Dt();nr(e,t,n,a)}function nr(e,t,n,a){var u={lane:a,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(xi(e))bh(t,u);else{var c=e.alternate;if(e.lanes===0&&(c===null||c.lanes===0)&&(c=t.lastRenderedReducer,c!==null))try{var p=t.lastRenderedState,v=c(p,n);if(u.hasEagerState=!0,u.eagerState=v,_t(v,p))return ei(e,t,u,0),Be===null&&Pr(),!1}catch{}finally{}if(n=iu(e,t,u,a),n!==null)return Nt(n,e,a),vh(n,t,a),!0}return!1}function Iu(e,t,n,a){if(a={lane:2,revertLane:Sc(),gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},xi(e)){if(t)throw Error(s(479))}else t=iu(e,n,a,2),t!==null&&Nt(t,e,2)}function xi(e){var t=e.alternate;return e===ve||t!==null&&t===ve}function bh(e,t){Pa=hi=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function vh(e,t,n){if((n&4194048)!==0){var a=t.lanes;a&=e.pendingLanes,n|=a,t.lanes=n,wf(e,n)}}var ar={readContext:ct,use:pi,useCallback:Ze,useContext:Ze,useEffect:Ze,useImperativeHandle:Ze,useLayoutEffect:Ze,useInsertionEffect:Ze,useMemo:Ze,useReducer:Ze,useRef:Ze,useState:Ze,useDebugValue:Ze,useDeferredValue:Ze,useTransition:Ze,useSyncExternalStore:Ze,useId:Ze,useHostTransitionStatus:Ze,useFormState:Ze,useActionState:Ze,useOptimistic:Ze,useMemoCache:Ze,useCacheRefresh:Ze};ar.useEffectEvent=Ze;var xh={readContext:ct,use:pi,useCallback:function(e,t){return pt().memoizedState=[e,t===void 0?null:t],e},useContext:ct,useEffect:ah,useImperativeHandle:function(e,t,n){n=n!=null?n.concat([e]):null,bi(4194308,4,sh.bind(null,t,e),n)},useLayoutEffect:function(e,t){return bi(4194308,4,e,t)},useInsertionEffect:function(e,t){bi(4,2,e,t)},useMemo:function(e,t){var n=pt();t=t===void 0?null:t;var a=e();if(ba){jn(!0);try{e()}finally{jn(!1)}}return n.memoizedState=[a,t],a},useReducer:function(e,t,n){var a=pt();if(n!==void 0){var u=n(t);if(ba){jn(!0);try{n(t)}finally{jn(!1)}}}else u=t;return a.memoizedState=a.baseState=u,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:u},a.queue=e,e=e.dispatch=Gb.bind(null,ve,e),[a.memoizedState,e]},useRef:function(e){var t=pt();return e={current:e},t.memoizedState=e},useState:function(e){e=Lu(e);var t=e.queue,n=yh.bind(null,ve,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:Hu,useDeferredValue:function(e,t){var n=pt();return Gu(n,e,t)},useTransition:function(){var e=Lu(!1);return e=dh.bind(null,ve,e.queue,!0,!1),pt().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var a=ve,u=pt();if(Ce){if(n===void 0)throw Error(s(407));n=n()}else{if(n=t(),Be===null)throw Error(s(349));(we&127)!==0||Yd(a,t,n)}u.memoizedState=n;var c={value:n,getSnapshot:t};return u.queue=c,ah(Id.bind(null,a,c,e),[e]),a.flags|=2048,tl(9,{destroy:void 0},qd.bind(null,a,c,n,t),null),n},useId:function(){var e=pt(),t=Be.identifierPrefix;if(Ce){var n=an,a=nn;n=(a&~(1<<32-Ct(a)-1)).toString(32)+n,t="_"+t+"R_"+n,n=gi++,0<n&&(t+="H"+n.toString(32)),t+="_"}else n=Mb++,t="_"+t+"r_"+n.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:qu,useFormState:Wd,useActionState:Wd,useOptimistic:function(e){var t=pt();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=Iu.bind(null,ve,!0,n),n.dispatch=t,[e,t]},useMemoCache:Mu,useCacheRefresh:function(){return pt().memoizedState=Hb.bind(null,ve)},useEffectEvent:function(e){var t=pt(),n={impl:e};return t.memoizedState=n,function(){if((Oe&2)!==0)throw Error(s(440));return n.impl.apply(void 0,arguments)}}},Xu={readContext:ct,use:pi,useCallback:ch,useContext:ct,useEffect:Bu,useImperativeHandle:uh,useInsertionEffect:rh,useLayoutEffect:ih,useMemo:oh,useReducer:yi,useRef:nh,useState:function(){return yi(yn)},useDebugValue:Hu,useDeferredValue:function(e,t){var n=Qe();return fh(n,De.memoizedState,e,t)},useTransition:function(){var e=yi(yn)[0],t=Qe().memoizedState;return[typeof e=="boolean"?e:tr(e),t]},useSyncExternalStore:Gd,useId:mh,useHostTransitionStatus:qu,useFormState:Pd,useActionState:Pd,useOptimistic:function(e,t){var n=Qe();return $d(n,De,e,t)},useMemoCache:Mu,useCacheRefresh:ph};Xu.useEffectEvent=lh;var Sh={readContext:ct,use:pi,useCallback:ch,useContext:ct,useEffect:Bu,useImperativeHandle:uh,useInsertionEffect:rh,useLayoutEffect:ih,useMemo:oh,useReducer:zu,useRef:nh,useState:function(){return zu(yn)},useDebugValue:Hu,useDeferredValue:function(e,t){var n=Qe();return De===null?Gu(n,e,t):fh(n,De.memoizedState,e,t)},useTransition:function(){var e=zu(yn)[0],t=Qe().memoizedState;return[typeof e=="boolean"?e:tr(e),t]},useSyncExternalStore:Gd,useId:mh,useHostTransitionStatus:qu,useFormState:th,useActionState:th,useOptimistic:function(e,t){var n=Qe();return De!==null?$d(n,De,e,t):(n.baseState=e,[e,n.queue.dispatch])},useMemoCache:Mu,useCacheRefresh:ph};Sh.useEffectEvent=lh;function Fu(e,t,n,a){t=e.memoizedState,n=n(a,t),n=n==null?t:x({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var $u={enqueueSetState:function(e,t,n){e=e._reactInternals;var a=Dt(),u=Un(a);u.payload=t,n!=null&&(u.callback=n),t=Bn(e,u,a),t!==null&&(Nt(t,e,a),Jl(t,e,a))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var a=Dt(),u=Un(a);u.tag=1,u.payload=t,n!=null&&(u.callback=n),t=Bn(e,u,a),t!==null&&(Nt(t,e,a),Jl(t,e,a))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Dt(),a=Un(n);a.tag=2,t!=null&&(a.callback=t),t=Bn(e,a,n),t!==null&&(Nt(t,e,n),Jl(t,e,n))}};function Eh(e,t,n,a,u,c,p){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(a,c,p):t.prototype&&t.prototype.isPureReactComponent?!Il(n,a)||!Il(u,c):!0}function Nh(e,t,n,a){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,a),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,a),t.state!==e&&$u.enqueueReplaceState(t,t.state,null)}function va(e,t){var n=t;if("ref"in t){n={};for(var a in t)a!=="ref"&&(n[a]=t[a])}if(e=e.defaultProps){n===t&&(n=x({},n));for(var u in e)n[u]===void 0&&(n[u]=e[u])}return n}function wh(e){Wr(e)}function Ah(e){console.error(e)}function Th(e){Wr(e)}function Si(e,t){try{var n=e.onUncaughtError;n(t.value,{componentStack:t.stack})}catch(a){setTimeout(function(){throw a})}}function Ch(e,t,n){try{var a=e.onCaughtError;a(n.value,{componentStack:n.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(u){setTimeout(function(){throw u})}}function Zu(e,t,n){return n=Un(n),n.tag=3,n.payload={element:null},n.callback=function(){Si(e,t)},n}function _h(e){return e=Un(e),e.tag=3,e}function jh(e,t,n,a){var u=n.type.getDerivedStateFromError;if(typeof u=="function"){var c=a.value;e.payload=function(){return u(c)},e.callback=function(){Ch(t,n,a)}}var p=n.stateNode;p!==null&&typeof p.componentDidCatch=="function"&&(e.callback=function(){Ch(t,n,a),typeof u!="function"&&(Xn===null?Xn=new Set([this]):Xn.add(this));var v=a.stack;this.componentDidCatch(a.value,{componentStack:v!==null?v:""})})}function Yb(e,t,n,a,u){if(n.flags|=32768,a!==null&&typeof a=="object"&&typeof a.then=="function"){if(t=n.alternate,t!==null&&Za(t,n,u,!0),n=Ot.current,n!==null){switch(n.tag){case 31:case 13:return Zt===null?Mi():n.alternate===null&&Ve===0&&(Ve=3),n.flags&=-257,n.flags|=65536,n.lanes=u,a===ui?n.flags|=16384:(t=n.updateQueue,t===null?n.updateQueue=new Set([a]):t.add(a),bc(e,a,u)),!1;case 22:return n.flags|=65536,a===ui?n.flags|=16384:(t=n.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([a])},n.updateQueue=t):(n=t.retryQueue,n===null?t.retryQueue=new Set([a]):n.add(a)),bc(e,a,u)),!1}throw Error(s(435,n.tag))}return bc(e,a,u),Mi(),!1}if(Ce)return t=Ot.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=u,a!==du&&(e=Error(s(422),{cause:a}),$l(It(e,n)))):(a!==du&&(t=Error(s(423),{cause:a}),$l(It(t,n))),e=e.current.alternate,e.flags|=65536,u&=-u,e.lanes|=u,a=It(a,n),u=Zu(e.stateNode,a,u),Nu(e,u),Ve!==4&&(Ve=2)),!1;var c=Error(s(520),{cause:a});if(c=It(c,n),fr===null?fr=[c]:fr.push(c),Ve!==4&&(Ve=2),t===null)return!0;a=It(a,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,e=u&-u,n.lanes|=e,e=Zu(n.stateNode,a,e),Nu(n,e),!1;case 1:if(t=n.type,c=n.stateNode,(n.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||c!==null&&typeof c.componentDidCatch=="function"&&(Xn===null||!Xn.has(c))))return n.flags|=65536,u&=-u,n.lanes|=u,u=_h(u),jh(u,e,n,a),Nu(n,u),!1}n=n.return}while(n!==null);return!1}var Vu=Error(s(461)),Pe=!1;function ot(e,t,n,a){t.child=e===null?Md(t,null,n,a):ya(t,e.child,n,a)}function Oh(e,t,n,a,u){n=n.render;var c=t.ref;if("ref"in a){var p={};for(var v in a)v!=="ref"&&(p[v]=a[v])}else p=a;return ha(t),a=ju(e,t,n,p,c,u),v=Ou(),e!==null&&!Pe?(ku(e,t,u),bn(e,t,u)):(Ce&&v&&ou(t),t.flags|=1,ot(e,t,a,u),t.child)}function kh(e,t,n,a,u){if(e===null){var c=n.type;return typeof c=="function"&&!su(c)&&c.defaultProps===void 0&&n.compare===null?(t.tag=15,t.type=c,Rh(e,t,c,a,u)):(e=ni(n.type,null,a,t,t.mode,u),e.ref=t.ref,e.return=t,t.child=e)}if(c=e.child,!nc(e,u)){var p=c.memoizedProps;if(n=n.compare,n=n!==null?n:Il,n(p,a)&&e.ref===t.ref)return bn(e,t,u)}return t.flags|=1,e=dn(c,a),e.ref=t.ref,e.return=t,t.child=e}function Rh(e,t,n,a,u){if(e!==null){var c=e.memoizedProps;if(Il(c,a)&&e.ref===t.ref)if(Pe=!1,t.pendingProps=a=c,nc(e,u))(e.flags&131072)!==0&&(Pe=!0);else return t.lanes=e.lanes,bn(e,t,u)}return Ku(e,t,n,a,u)}function Mh(e,t,n,a){var u=a.children,c=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),a.mode==="hidden"){if((t.flags&128)!==0){if(c=c!==null?c.baseLanes|n:n,e!==null){for(a=t.child=e.child,u=0;a!==null;)u=u|a.lanes|a.childLanes,a=a.sibling;a=u&~c}else a=0,t.child=null;return Dh(e,t,c,n,a)}if((n&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&ii(t,c!==null?c.cachePool:null),c!==null?Ld(t,c):Au(),Ud(t);else return a=t.lanes=536870912,Dh(e,t,c!==null?c.baseLanes|n:n,n,a)}else c!==null?(ii(t,c.cachePool),Ld(t,c),Gn(),t.memoizedState=null):(e!==null&&ii(t,null),Au(),Gn());return ot(e,t,u,n),t.child}function lr(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function Dh(e,t,n,a,u){var c=vu();return c=c===null?null:{parent:Je._currentValue,pool:c},t.memoizedState={baseLanes:n,cachePool:c},e!==null&&ii(t,null),Au(),Ud(t),e!==null&&Za(e,t,a,!0),t.childLanes=u,null}function Ei(e,t){return t=wi({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function zh(e,t,n){return ya(t,e.child,null,n),e=Ei(t,t.pendingProps),e.flags|=2,kt(t),t.memoizedState=null,e}function qb(e,t,n){var a=t.pendingProps,u=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(Ce){if(a.mode==="hidden")return e=Ei(t,a),t.lanes=536870912,lr(null,e);if(Cu(t),(e=Ge)?(e=Zg(e,$t),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Rn!==null?{id:nn,overflow:an}:null,retryLane:536870912,hydrationErrors:null},n=bd(e),n.return=t,t.child=n,ut=t,Ge=null)):e=null,e===null)throw Dn(t);return t.lanes=536870912,null}return Ei(t,a)}var c=e.memoizedState;if(c!==null){var p=c.dehydrated;if(Cu(t),u)if(t.flags&256)t.flags&=-257,t=zh(e,t,n);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(s(558));else if(Pe||Za(e,t,n,!1),u=(n&e.childLanes)!==0,Pe||u){if(a=Be,a!==null&&(p=Af(a,n),p!==0&&p!==c.retryLane))throw c.retryLane=p,ca(e,p),Nt(a,e,p),Vu;Mi(),t=zh(e,t,n)}else e=c.treeContext,Ge=Vt(p.nextSibling),ut=t,Ce=!0,Mn=null,$t=!1,e!==null&&Sd(t,e),t=Ei(t,a),t.flags|=4096;return t}return e=dn(e.child,{mode:a.mode,children:a.children}),e.ref=t.ref,t.child=e,e.return=t,e}function Ni(e,t){var n=t.ref;if(n===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof n!="function"&&typeof n!="object")throw Error(s(284));(e===null||e.ref!==n)&&(t.flags|=4194816)}}function Ku(e,t,n,a,u){return ha(t),n=ju(e,t,n,a,void 0,u),a=Ou(),e!==null&&!Pe?(ku(e,t,u),bn(e,t,u)):(Ce&&a&&ou(t),t.flags|=1,ot(e,t,n,u),t.child)}function Lh(e,t,n,a,u,c){return ha(t),t.updateQueue=null,n=Hd(t,a,n,u),Bd(e),a=Ou(),e!==null&&!Pe?(ku(e,t,c),bn(e,t,c)):(Ce&&a&&ou(t),t.flags|=1,ot(e,t,n,c),t.child)}function Uh(e,t,n,a,u){if(ha(t),t.stateNode===null){var c=Ia,p=n.contextType;typeof p=="object"&&p!==null&&(c=ct(p)),c=new n(a,c),t.memoizedState=c.state!==null&&c.state!==void 0?c.state:null,c.updater=$u,t.stateNode=c,c._reactInternals=t,c=t.stateNode,c.props=a,c.state=t.memoizedState,c.refs={},Su(t),p=n.contextType,c.context=typeof p=="object"&&p!==null?ct(p):Ia,c.state=t.memoizedState,p=n.getDerivedStateFromProps,typeof p=="function"&&(Fu(t,n,p,a),c.state=t.memoizedState),typeof n.getDerivedStateFromProps=="function"||typeof c.getSnapshotBeforeUpdate=="function"||typeof c.UNSAFE_componentWillMount!="function"&&typeof c.componentWillMount!="function"||(p=c.state,typeof c.componentWillMount=="function"&&c.componentWillMount(),typeof c.UNSAFE_componentWillMount=="function"&&c.UNSAFE_componentWillMount(),p!==c.state&&$u.enqueueReplaceState(c,c.state,null),Pl(t,a,c,u),Wl(),c.state=t.memoizedState),typeof c.componentDidMount=="function"&&(t.flags|=4194308),a=!0}else if(e===null){c=t.stateNode;var v=t.memoizedProps,w=va(n,v);c.props=w;var L=c.context,I=n.contextType;p=Ia,typeof I=="object"&&I!==null&&(p=ct(I));var V=n.getDerivedStateFromProps;I=typeof V=="function"||typeof c.getSnapshotBeforeUpdate=="function",v=t.pendingProps!==v,I||typeof c.UNSAFE_componentWillReceiveProps!="function"&&typeof c.componentWillReceiveProps!="function"||(v||L!==p)&&Nh(t,c,a,p),Ln=!1;var H=t.memoizedState;c.state=H,Pl(t,a,c,u),Wl(),L=t.memoizedState,v||H!==L||Ln?(typeof V=="function"&&(Fu(t,n,V,a),L=t.memoizedState),(w=Ln||Eh(t,n,w,a,H,L,p))?(I||typeof c.UNSAFE_componentWillMount!="function"&&typeof c.componentWillMount!="function"||(typeof c.componentWillMount=="function"&&c.componentWillMount(),typeof c.UNSAFE_componentWillMount=="function"&&c.UNSAFE_componentWillMount()),typeof c.componentDidMount=="function"&&(t.flags|=4194308)):(typeof c.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=a,t.memoizedState=L),c.props=a,c.state=L,c.context=p,a=w):(typeof c.componentDidMount=="function"&&(t.flags|=4194308),a=!1)}else{c=t.stateNode,Eu(e,t),p=t.memoizedProps,I=va(n,p),c.props=I,V=t.pendingProps,H=c.context,L=n.contextType,w=Ia,typeof L=="object"&&L!==null&&(w=ct(L)),v=n.getDerivedStateFromProps,(L=typeof v=="function"||typeof c.getSnapshotBeforeUpdate=="function")||typeof c.UNSAFE_componentWillReceiveProps!="function"&&typeof c.componentWillReceiveProps!="function"||(p!==V||H!==w)&&Nh(t,c,a,w),Ln=!1,H=t.memoizedState,c.state=H,Pl(t,a,c,u),Wl();var G=t.memoizedState;p!==V||H!==G||Ln||e!==null&&e.dependencies!==null&&li(e.dependencies)?(typeof v=="function"&&(Fu(t,n,v,a),G=t.memoizedState),(I=Ln||Eh(t,n,I,a,H,G,w)||e!==null&&e.dependencies!==null&&li(e.dependencies))?(L||typeof c.UNSAFE_componentWillUpdate!="function"&&typeof c.componentWillUpdate!="function"||(typeof c.componentWillUpdate=="function"&&c.componentWillUpdate(a,G,w),typeof c.UNSAFE_componentWillUpdate=="function"&&c.UNSAFE_componentWillUpdate(a,G,w)),typeof c.componentDidUpdate=="function"&&(t.flags|=4),typeof c.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof c.componentDidUpdate!="function"||p===e.memoizedProps&&H===e.memoizedState||(t.flags|=4),typeof c.getSnapshotBeforeUpdate!="function"||p===e.memoizedProps&&H===e.memoizedState||(t.flags|=1024),t.memoizedProps=a,t.memoizedState=G),c.props=a,c.state=G,c.context=w,a=I):(typeof c.componentDidUpdate!="function"||p===e.memoizedProps&&H===e.memoizedState||(t.flags|=4),typeof c.getSnapshotBeforeUpdate!="function"||p===e.memoizedProps&&H===e.memoizedState||(t.flags|=1024),a=!1)}return c=a,Ni(e,t),a=(t.flags&128)!==0,c||a?(c=t.stateNode,n=a&&typeof n.getDerivedStateFromError!="function"?null:c.render(),t.flags|=1,e!==null&&a?(t.child=ya(t,e.child,null,u),t.child=ya(t,null,n,u)):ot(e,t,n,u),t.memoizedState=c.state,e=t.child):e=bn(e,t,u),e}function Bh(e,t,n,a){return fa(),t.flags|=256,ot(e,t,n,a),t.child}var Qu={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Ju(e){return{baseLanes:e,cachePool:Cd()}}function Wu(e,t,n){return e=e!==null?e.childLanes&~n:0,t&&(e|=Mt),e}function Hh(e,t,n){var a=t.pendingProps,u=!1,c=(t.flags&128)!==0,p;if((p=c)||(p=e!==null&&e.memoizedState===null?!1:(Ke.current&2)!==0),p&&(u=!0,t.flags&=-129),p=(t.flags&32)!==0,t.flags&=-33,e===null){if(Ce){if(u?Hn(t):Gn(),(e=Ge)?(e=Zg(e,$t),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Rn!==null?{id:nn,overflow:an}:null,retryLane:536870912,hydrationErrors:null},n=bd(e),n.return=t,t.child=n,ut=t,Ge=null)):e=null,e===null)throw Dn(t);return Dc(e)?t.lanes=32:t.lanes=536870912,null}var v=a.children;return a=a.fallback,u?(Gn(),u=t.mode,v=wi({mode:"hidden",children:v},u),a=oa(a,u,n,null),v.return=t,a.return=t,v.sibling=a,t.child=v,a=t.child,a.memoizedState=Ju(n),a.childLanes=Wu(e,p,n),t.memoizedState=Qu,lr(null,a)):(Hn(t),Pu(t,v))}var w=e.memoizedState;if(w!==null&&(v=w.dehydrated,v!==null)){if(c)t.flags&256?(Hn(t),t.flags&=-257,t=ec(e,t,n)):t.memoizedState!==null?(Gn(),t.child=e.child,t.flags|=128,t=null):(Gn(),v=a.fallback,u=t.mode,a=wi({mode:"visible",children:a.children},u),v=oa(v,u,n,null),v.flags|=2,a.return=t,v.return=t,a.sibling=v,t.child=a,ya(t,e.child,null,n),a=t.child,a.memoizedState=Ju(n),a.childLanes=Wu(e,p,n),t.memoizedState=Qu,t=lr(null,a));else if(Hn(t),Dc(v)){if(p=v.nextSibling&&v.nextSibling.dataset,p)var L=p.dgst;p=L,a=Error(s(419)),a.stack="",a.digest=p,$l({value:a,source:null,stack:null}),t=ec(e,t,n)}else if(Pe||Za(e,t,n,!1),p=(n&e.childLanes)!==0,Pe||p){if(p=Be,p!==null&&(a=Af(p,n),a!==0&&a!==w.retryLane))throw w.retryLane=a,ca(e,a),Nt(p,e,a),Vu;Mc(v)||Mi(),t=ec(e,t,n)}else Mc(v)?(t.flags|=192,t.child=e.child,t=null):(e=w.treeContext,Ge=Vt(v.nextSibling),ut=t,Ce=!0,Mn=null,$t=!1,e!==null&&Sd(t,e),t=Pu(t,a.children),t.flags|=4096);return t}return u?(Gn(),v=a.fallback,u=t.mode,w=e.child,L=w.sibling,a=dn(w,{mode:"hidden",children:a.children}),a.subtreeFlags=w.subtreeFlags&65011712,L!==null?v=dn(L,v):(v=oa(v,u,n,null),v.flags|=2),v.return=t,a.return=t,a.sibling=v,t.child=a,lr(null,a),a=t.child,v=e.child.memoizedState,v===null?v=Ju(n):(u=v.cachePool,u!==null?(w=Je._currentValue,u=u.parent!==w?{parent:w,pool:w}:u):u=Cd(),v={baseLanes:v.baseLanes|n,cachePool:u}),a.memoizedState=v,a.childLanes=Wu(e,p,n),t.memoizedState=Qu,lr(e.child,a)):(Hn(t),n=e.child,e=n.sibling,n=dn(n,{mode:"visible",children:a.children}),n.return=t,n.sibling=null,e!==null&&(p=t.deletions,p===null?(t.deletions=[e],t.flags|=16):p.push(e)),t.child=n,t.memoizedState=null,n)}function Pu(e,t){return t=wi({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function wi(e,t){return e=jt(22,e,null,t),e.lanes=0,e}function ec(e,t,n){return ya(t,e.child,null,n),e=Pu(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Gh(e,t,n){e.lanes|=t;var a=e.alternate;a!==null&&(a.lanes|=t),mu(e.return,t,n)}function tc(e,t,n,a,u,c){var p=e.memoizedState;p===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:a,tail:n,tailMode:u,treeForkCount:c}:(p.isBackwards=t,p.rendering=null,p.renderingStartTime=0,p.last=a,p.tail=n,p.tailMode=u,p.treeForkCount=c)}function Yh(e,t,n){var a=t.pendingProps,u=a.revealOrder,c=a.tail;a=a.children;var p=Ke.current,v=(p&2)!==0;if(v?(p=p&1|2,t.flags|=128):p&=1,ee(Ke,p),ot(e,t,a,n),a=Ce?Fl:0,!v&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Gh(e,n,t);else if(e.tag===19)Gh(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(u){case"forwards":for(n=t.child,u=null;n!==null;)e=n.alternate,e!==null&&di(e)===null&&(u=n),n=n.sibling;n=u,n===null?(u=t.child,t.child=null):(u=n.sibling,n.sibling=null),tc(t,!1,u,n,c,a);break;case"backwards":case"unstable_legacy-backwards":for(n=null,u=t.child,t.child=null;u!==null;){if(e=u.alternate,e!==null&&di(e)===null){t.child=u;break}e=u.sibling,u.sibling=n,n=u,u=e}tc(t,!0,n,null,c,a);break;case"together":tc(t,!1,null,null,void 0,a);break;default:t.memoizedState=null}return t.child}function bn(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),In|=t.lanes,(n&t.childLanes)===0)if(e!==null){if(Za(e,t,n,!1),(n&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(s(153));if(t.child!==null){for(e=t.child,n=dn(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=dn(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function nc(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&li(e)))}function Ib(e,t,n){switch(t.tag){case 3:Ue(t,t.stateNode.containerInfo),zn(t,Je,e.memoizedState.cache),fa();break;case 27:case 5:Te(t);break;case 4:Ue(t,t.stateNode.containerInfo);break;case 10:zn(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,Cu(t),null;break;case 13:var a=t.memoizedState;if(a!==null)return a.dehydrated!==null?(Hn(t),t.flags|=128,null):(n&t.child.childLanes)!==0?Hh(e,t,n):(Hn(t),e=bn(e,t,n),e!==null?e.sibling:null);Hn(t);break;case 19:var u=(e.flags&128)!==0;if(a=(n&t.childLanes)!==0,a||(Za(e,t,n,!1),a=(n&t.childLanes)!==0),u){if(a)return Yh(e,t,n);t.flags|=128}if(u=t.memoizedState,u!==null&&(u.rendering=null,u.tail=null,u.lastEffect=null),ee(Ke,Ke.current),a)break;return null;case 22:return t.lanes=0,Mh(e,t,n,t.pendingProps);case 24:zn(t,Je,e.memoizedState.cache)}return bn(e,t,n)}function qh(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps)Pe=!0;else{if(!nc(e,n)&&(t.flags&128)===0)return Pe=!1,Ib(e,t,n);Pe=(e.flags&131072)!==0}else Pe=!1,Ce&&(t.flags&1048576)!==0&&xd(t,Fl,t.index);switch(t.lanes=0,t.tag){case 16:e:{var a=t.pendingProps;if(e=ma(t.elementType),t.type=e,typeof e=="function")su(e)?(a=va(e,a),t.tag=1,t=Uh(null,t,e,a,n)):(t.tag=0,t=Ku(null,t,e,a,n));else{if(e!=null){var u=e.$$typeof;if(u===F){t.tag=11,t=Oh(null,t,e,a,n);break e}else if(u===R){t.tag=14,t=kh(null,t,e,a,n);break e}}throw t=P(e)||e,Error(s(306,t,""))}}return t;case 0:return Ku(e,t,t.type,t.pendingProps,n);case 1:return a=t.type,u=va(a,t.pendingProps),Uh(e,t,a,u,n);case 3:e:{if(Ue(t,t.stateNode.containerInfo),e===null)throw Error(s(387));a=t.pendingProps;var c=t.memoizedState;u=c.element,Eu(e,t),Pl(t,a,null,n);var p=t.memoizedState;if(a=p.cache,zn(t,Je,a),a!==c.cache&&pu(t,[Je],n,!0),Wl(),a=p.element,c.isDehydrated)if(c={element:a,isDehydrated:!1,cache:p.cache},t.updateQueue.baseState=c,t.memoizedState=c,t.flags&256){t=Bh(e,t,a,n);break e}else if(a!==u){u=It(Error(s(424)),t),$l(u),t=Bh(e,t,a,n);break e}else{switch(e=t.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName==="HTML"?e.ownerDocument.body:e}for(Ge=Vt(e.firstChild),ut=t,Ce=!0,Mn=null,$t=!0,n=Md(t,null,a,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling}else{if(fa(),a===u){t=bn(e,t,n);break e}ot(e,t,a,n)}t=t.child}return t;case 26:return Ni(e,t),e===null?(n=Pg(t.type,null,t.pendingProps,null))?t.memoizedState=n:Ce||(n=t.type,e=t.pendingProps,a=Gi(ae.current).createElement(n),a[st]=t,a[yt]=e,ft(a,n,e),at(a),t.stateNode=a):t.memoizedState=Pg(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return Te(t),e===null&&Ce&&(a=t.stateNode=Qg(t.type,t.pendingProps,ae.current),ut=t,$t=!0,u=Ge,Vn(t.type)?(zc=u,Ge=Vt(a.firstChild)):Ge=u),ot(e,t,t.pendingProps.children,n),Ni(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&Ce&&((u=a=Ge)&&(a=v0(a,t.type,t.pendingProps,$t),a!==null?(t.stateNode=a,ut=t,Ge=Vt(a.firstChild),$t=!1,u=!0):u=!1),u||Dn(t)),Te(t),u=t.type,c=t.pendingProps,p=e!==null?e.memoizedProps:null,a=c.children,Oc(u,c)?a=null:p!==null&&Oc(u,p)&&(t.flags|=32),t.memoizedState!==null&&(u=ju(e,t,Db,null,null,n),vr._currentValue=u),Ni(e,t),ot(e,t,a,n),t.child;case 6:return e===null&&Ce&&((e=n=Ge)&&(n=x0(n,t.pendingProps,$t),n!==null?(t.stateNode=n,ut=t,Ge=null,e=!0):e=!1),e||Dn(t)),null;case 13:return Hh(e,t,n);case 4:return Ue(t,t.stateNode.containerInfo),a=t.pendingProps,e===null?t.child=ya(t,null,a,n):ot(e,t,a,n),t.child;case 11:return Oh(e,t,t.type,t.pendingProps,n);case 7:return ot(e,t,t.pendingProps,n),t.child;case 8:return ot(e,t,t.pendingProps.children,n),t.child;case 12:return ot(e,t,t.pendingProps.children,n),t.child;case 10:return a=t.pendingProps,zn(t,t.type,a.value),ot(e,t,a.children,n),t.child;case 9:return u=t.type._context,a=t.pendingProps.children,ha(t),u=ct(u),a=a(u),t.flags|=1,ot(e,t,a,n),t.child;case 14:return kh(e,t,t.type,t.pendingProps,n);case 15:return Rh(e,t,t.type,t.pendingProps,n);case 19:return Yh(e,t,n);case 31:return qb(e,t,n);case 22:return Mh(e,t,n,t.pendingProps);case 24:return ha(t),a=ct(Je),e===null?(u=vu(),u===null&&(u=Be,c=yu(),u.pooledCache=c,c.refCount++,c!==null&&(u.pooledCacheLanes|=n),u=c),t.memoizedState={parent:a,cache:u},Su(t),zn(t,Je,u)):((e.lanes&n)!==0&&(Eu(e,t),Pl(t,null,null,n),Wl()),u=e.memoizedState,c=t.memoizedState,u.parent!==a?(u={parent:a,cache:a},t.memoizedState=u,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=u),zn(t,Je,a)):(a=c.cache,zn(t,Je,a),a!==u.cache&&pu(t,[Je],n,!0))),ot(e,t,t.pendingProps.children,n),t.child;case 29:throw t.pendingProps}throw Error(s(156,t.tag))}function vn(e){e.flags|=4}function ac(e,t,n,a,u){if((t=(e.mode&32)!==0)&&(t=!1),t){if(e.flags|=16777216,(u&335544128)===u)if(e.stateNode.complete)e.flags|=8192;else if(mg())e.flags|=8192;else throw pa=ui,xu}else e.flags&=-16777217}function Ih(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!lm(t))if(mg())e.flags|=8192;else throw pa=ui,xu}function Ai(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?Ef():536870912,e.lanes|=t,rl|=t)}function rr(e,t){if(!Ce)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var a=null;n!==null;)n.alternate!==null&&(a=n),n=n.sibling;a===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:a.sibling=null}}function Ye(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,a=0;if(t)for(var u=e.child;u!==null;)n|=u.lanes|u.childLanes,a|=u.subtreeFlags&65011712,a|=u.flags&65011712,u.return=e,u=u.sibling;else for(u=e.child;u!==null;)n|=u.lanes|u.childLanes,a|=u.subtreeFlags,a|=u.flags,u.return=e,u=u.sibling;return e.subtreeFlags|=a,e.childLanes=n,t}function Xb(e,t,n){var a=t.pendingProps;switch(fu(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ye(t),null;case 1:return Ye(t),null;case 3:return n=t.stateNode,a=null,e!==null&&(a=e.memoizedState.cache),t.memoizedState.cache!==a&&(t.flags|=2048),mn(Je),be(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&($a(t)?vn(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,hu())),Ye(t),null;case 26:var u=t.type,c=t.memoizedState;return e===null?(vn(t),c!==null?(Ye(t),Ih(t,c)):(Ye(t),ac(t,u,null,a,n))):c?c!==e.memoizedState?(vn(t),Ye(t),Ih(t,c)):(Ye(t),t.flags&=-16777217):(e=e.memoizedProps,e!==a&&vn(t),Ye(t),ac(t,u,e,a,n)),null;case 27:if(Fe(t),n=ae.current,u=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==a&&vn(t);else{if(!a){if(t.stateNode===null)throw Error(s(166));return Ye(t),null}e=W.current,$a(t)?Ed(t):(e=Qg(u,a,n),t.stateNode=e,vn(t))}return Ye(t),null;case 5:if(Fe(t),u=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==a&&vn(t);else{if(!a){if(t.stateNode===null)throw Error(s(166));return Ye(t),null}if(c=W.current,$a(t))Ed(t);else{var p=Gi(ae.current);switch(c){case 1:c=p.createElementNS("http://www.w3.org/2000/svg",u);break;case 2:c=p.createElementNS("http://www.w3.org/1998/Math/MathML",u);break;default:switch(u){case"svg":c=p.createElementNS("http://www.w3.org/2000/svg",u);break;case"math":c=p.createElementNS("http://www.w3.org/1998/Math/MathML",u);break;case"script":c=p.createElement("div"),c.innerHTML="<script><\/script>",c=c.removeChild(c.firstChild);break;case"select":c=typeof a.is=="string"?p.createElement("select",{is:a.is}):p.createElement("select"),a.multiple?c.multiple=!0:a.size&&(c.size=a.size);break;default:c=typeof a.is=="string"?p.createElement(u,{is:a.is}):p.createElement(u)}}c[st]=t,c[yt]=a;e:for(p=t.child;p!==null;){if(p.tag===5||p.tag===6)c.appendChild(p.stateNode);else if(p.tag!==4&&p.tag!==27&&p.child!==null){p.child.return=p,p=p.child;continue}if(p===t)break e;for(;p.sibling===null;){if(p.return===null||p.return===t)break e;p=p.return}p.sibling.return=p.return,p=p.sibling}t.stateNode=c;e:switch(ft(c,u,a),u){case"button":case"input":case"select":case"textarea":a=!!a.autoFocus;break e;case"img":a=!0;break e;default:a=!1}a&&vn(t)}}return Ye(t),ac(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,n),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==a&&vn(t);else{if(typeof a!="string"&&t.stateNode===null)throw Error(s(166));if(e=ae.current,$a(t)){if(e=t.stateNode,n=t.memoizedProps,a=null,u=ut,u!==null)switch(u.tag){case 27:case 5:a=u.memoizedProps}e[st]=t,e=!!(e.nodeValue===n||a!==null&&a.suppressHydrationWarning===!0||Hg(e.nodeValue,n)),e||Dn(t,!0)}else e=Gi(e).createTextNode(a),e[st]=t,t.stateNode=e}return Ye(t),null;case 31:if(n=t.memoizedState,e===null||e.memoizedState!==null){if(a=$a(t),n!==null){if(e===null){if(!a)throw Error(s(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(s(557));e[st]=t}else fa(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Ye(t),e=!1}else n=hu(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e)return t.flags&256?(kt(t),t):(kt(t),null);if((t.flags&128)!==0)throw Error(s(558))}return Ye(t),null;case 13:if(a=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(u=$a(t),a!==null&&a.dehydrated!==null){if(e===null){if(!u)throw Error(s(318));if(u=t.memoizedState,u=u!==null?u.dehydrated:null,!u)throw Error(s(317));u[st]=t}else fa(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Ye(t),u=!1}else u=hu(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=u),u=!0;if(!u)return t.flags&256?(kt(t),t):(kt(t),null)}return kt(t),(t.flags&128)!==0?(t.lanes=n,t):(n=a!==null,e=e!==null&&e.memoizedState!==null,n&&(a=t.child,u=null,a.alternate!==null&&a.alternate.memoizedState!==null&&a.alternate.memoizedState.cachePool!==null&&(u=a.alternate.memoizedState.cachePool.pool),c=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(c=a.memoizedState.cachePool.pool),c!==u&&(a.flags|=2048)),n!==e&&n&&(t.child.flags|=8192),Ai(t,t.updateQueue),Ye(t),null);case 4:return be(),e===null&&Ac(t.stateNode.containerInfo),Ye(t),null;case 10:return mn(t.type),Ye(t),null;case 19:if(Y(Ke),a=t.memoizedState,a===null)return Ye(t),null;if(u=(t.flags&128)!==0,c=a.rendering,c===null)if(u)rr(a,!1);else{if(Ve!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(c=di(e),c!==null){for(t.flags|=128,rr(a,!1),e=c.updateQueue,t.updateQueue=e,Ai(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)yd(n,e),n=n.sibling;return ee(Ke,Ke.current&1|2),Ce&&hn(t,a.treeForkCount),t.child}e=e.sibling}a.tail!==null&&At()>Oi&&(t.flags|=128,u=!0,rr(a,!1),t.lanes=4194304)}else{if(!u)if(e=di(c),e!==null){if(t.flags|=128,u=!0,e=e.updateQueue,t.updateQueue=e,Ai(t,e),rr(a,!0),a.tail===null&&a.tailMode==="hidden"&&!c.alternate&&!Ce)return Ye(t),null}else 2*At()-a.renderingStartTime>Oi&&n!==536870912&&(t.flags|=128,u=!0,rr(a,!1),t.lanes=4194304);a.isBackwards?(c.sibling=t.child,t.child=c):(e=a.last,e!==null?e.sibling=c:t.child=c,a.last=c)}return a.tail!==null?(e=a.tail,a.rendering=e,a.tail=e.sibling,a.renderingStartTime=At(),e.sibling=null,n=Ke.current,ee(Ke,u?n&1|2:n&1),Ce&&hn(t,a.treeForkCount),e):(Ye(t),null);case 22:case 23:return kt(t),Tu(),a=t.memoizedState!==null,e!==null?e.memoizedState!==null!==a&&(t.flags|=8192):a&&(t.flags|=8192),a?(n&536870912)!==0&&(t.flags&128)===0&&(Ye(t),t.subtreeFlags&6&&(t.flags|=8192)):Ye(t),n=t.updateQueue,n!==null&&Ai(t,n.retryQueue),n=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),a=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(a=t.memoizedState.cachePool.pool),a!==n&&(t.flags|=2048),e!==null&&Y(ga),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),mn(Je),Ye(t),null;case 25:return null;case 30:return null}throw Error(s(156,t.tag))}function Fb(e,t){switch(fu(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return mn(Je),be(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return Fe(t),null;case 31:if(t.memoizedState!==null){if(kt(t),t.alternate===null)throw Error(s(340));fa()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(kt(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(s(340));fa()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Y(Ke),null;case 4:return be(),null;case 10:return mn(t.type),null;case 22:case 23:return kt(t),Tu(),e!==null&&Y(ga),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return mn(Je),null;case 25:return null;default:return null}}function Xh(e,t){switch(fu(t),t.tag){case 3:mn(Je),be();break;case 26:case 27:case 5:Fe(t);break;case 4:be();break;case 31:t.memoizedState!==null&&kt(t);break;case 13:kt(t);break;case 19:Y(Ke);break;case 10:mn(t.type);break;case 22:case 23:kt(t),Tu(),e!==null&&Y(ga);break;case 24:mn(Je)}}function ir(e,t){try{var n=t.updateQueue,a=n!==null?n.lastEffect:null;if(a!==null){var u=a.next;n=u;do{if((n.tag&e)===e){a=void 0;var c=n.create,p=n.inst;a=c(),p.destroy=a}n=n.next}while(n!==u)}}catch(v){Re(t,t.return,v)}}function Yn(e,t,n){try{var a=t.updateQueue,u=a!==null?a.lastEffect:null;if(u!==null){var c=u.next;a=c;do{if((a.tag&e)===e){var p=a.inst,v=p.destroy;if(v!==void 0){p.destroy=void 0,u=t;var w=n,L=v;try{L()}catch(I){Re(u,w,I)}}}a=a.next}while(a!==c)}}catch(I){Re(t,t.return,I)}}function Fh(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;try{zd(t,n)}catch(a){Re(e,e.return,a)}}}function $h(e,t,n){n.props=va(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(a){Re(e,t,a)}}function sr(e,t){try{var n=e.ref;if(n!==null){switch(e.tag){case 26:case 27:case 5:var a=e.stateNode;break;case 30:a=e.stateNode;break;default:a=e.stateNode}typeof n=="function"?e.refCleanup=n(a):n.current=a}}catch(u){Re(e,t,u)}}function ln(e,t){var n=e.ref,a=e.refCleanup;if(n!==null)if(typeof a=="function")try{a()}catch(u){Re(e,t,u)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof n=="function")try{n(null)}catch(u){Re(e,t,u)}else n.current=null}function Zh(e){var t=e.type,n=e.memoizedProps,a=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":n.autoFocus&&a.focus();break e;case"img":n.src?a.src=n.src:n.srcSet&&(a.srcset=n.srcSet)}}catch(u){Re(e,e.return,u)}}function lc(e,t,n){try{var a=e.stateNode;h0(a,e.type,n,t),a[yt]=t}catch(u){Re(e,e.return,u)}}function Vh(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Vn(e.type)||e.tag===4}function rc(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Vh(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.tag===27&&Vn(e.type)||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 ic(e,t,n){var a=e.tag;if(a===5||a===6)e=e.stateNode,t?(n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n).insertBefore(e,t):(t=n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n,t.appendChild(e),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=on));else if(a!==4&&(a===27&&Vn(e.type)&&(n=e.stateNode,t=null),e=e.child,e!==null))for(ic(e,t,n),e=e.sibling;e!==null;)ic(e,t,n),e=e.sibling}function Ti(e,t,n){var a=e.tag;if(a===5||a===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(a!==4&&(a===27&&Vn(e.type)&&(n=e.stateNode),e=e.child,e!==null))for(Ti(e,t,n),e=e.sibling;e!==null;)Ti(e,t,n),e=e.sibling}function Kh(e){var t=e.stateNode,n=e.memoizedProps;try{for(var a=e.type,u=t.attributes;u.length;)t.removeAttributeNode(u[0]);ft(t,a,n),t[st]=e,t[yt]=n}catch(c){Re(e,e.return,c)}}var xn=!1,et=!1,sc=!1,Qh=typeof WeakSet=="function"?WeakSet:Set,lt=null;function $b(e,t){if(e=e.containerInfo,_c=Zi,e=ud(e),eu(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var a=n.getSelection&&n.getSelection();if(a&&a.rangeCount!==0){n=a.anchorNode;var u=a.anchorOffset,c=a.focusNode;a=a.focusOffset;try{n.nodeType,c.nodeType}catch{n=null;break e}var p=0,v=-1,w=-1,L=0,I=0,V=e,H=null;t:for(;;){for(var G;V!==n||u!==0&&V.nodeType!==3||(v=p+u),V!==c||a!==0&&V.nodeType!==3||(w=p+a),V.nodeType===3&&(p+=V.nodeValue.length),(G=V.firstChild)!==null;)H=V,V=G;for(;;){if(V===e)break t;if(H===n&&++L===u&&(v=p),H===c&&++I===a&&(w=p),(G=V.nextSibling)!==null)break;V=H,H=V.parentNode}V=G}n=v===-1||w===-1?null:{start:v,end:w}}else n=null}n=n||{start:0,end:0}}else n=null;for(jc={focusedElem:e,selectionRange:n},Zi=!1,lt=t;lt!==null;)if(t=lt,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,lt=e;else for(;lt!==null;){switch(t=lt,c=t.alternate,e=t.flags,t.tag){case 0:if((e&4)!==0&&(e=t.updateQueue,e=e!==null?e.events:null,e!==null))for(n=0;n<e.length;n++)u=e[n],u.ref.impl=u.nextImpl;break;case 11:case 15:break;case 1:if((e&1024)!==0&&c!==null){e=void 0,n=t,u=c.memoizedProps,c=c.memoizedState,a=n.stateNode;try{var se=va(n.type,u);e=a.getSnapshotBeforeUpdate(se,c),a.__reactInternalSnapshotBeforeUpdate=e}catch(me){Re(n,n.return,me)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,n=e.nodeType,n===9)Rc(e);else if(n===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":Rc(e);break;default:e.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((e&1024)!==0)throw Error(s(163))}if(e=t.sibling,e!==null){e.return=t.return,lt=e;break}lt=t.return}}function Jh(e,t,n){var a=n.flags;switch(n.tag){case 0:case 11:case 15:En(e,n),a&4&&ir(5,n);break;case 1:if(En(e,n),a&4)if(e=n.stateNode,t===null)try{e.componentDidMount()}catch(p){Re(n,n.return,p)}else{var u=va(n.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(u,t,e.__reactInternalSnapshotBeforeUpdate)}catch(p){Re(n,n.return,p)}}a&64&&Fh(n),a&512&&sr(n,n.return);break;case 3:if(En(e,n),a&64&&(e=n.updateQueue,e!==null)){if(t=null,n.child!==null)switch(n.child.tag){case 27:case 5:t=n.child.stateNode;break;case 1:t=n.child.stateNode}try{zd(e,t)}catch(p){Re(n,n.return,p)}}break;case 27:t===null&&a&4&&Kh(n);case 26:case 5:En(e,n),t===null&&a&4&&Zh(n),a&512&&sr(n,n.return);break;case 12:En(e,n);break;case 31:En(e,n),a&4&&eg(e,n);break;case 13:En(e,n),a&4&&tg(e,n),a&64&&(e=n.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(n=t0.bind(null,n),S0(e,n))));break;case 22:if(a=n.memoizedState!==null||xn,!a){t=t!==null&&t.memoizedState!==null||et,u=xn;var c=et;xn=a,(et=t)&&!c?Nn(e,n,(n.subtreeFlags&8772)!==0):En(e,n),xn=u,et=c}break;case 30:break;default:En(e,n)}}function Wh(e){var t=e.alternate;t!==null&&(e.alternate=null,Wh(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&Us(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var Ie=null,vt=!1;function Sn(e,t,n){for(n=n.child;n!==null;)Ph(e,t,n),n=n.sibling}function Ph(e,t,n){if(Tt&&typeof Tt.onCommitFiberUnmount=="function")try{Tt.onCommitFiberUnmount(kl,n)}catch{}switch(n.tag){case 26:et||ln(n,t),Sn(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:et||ln(n,t);var a=Ie,u=vt;Vn(n.type)&&(Ie=n.stateNode,vt=!1),Sn(e,t,n),pr(n.stateNode),Ie=a,vt=u;break;case 5:et||ln(n,t);case 6:if(a=Ie,u=vt,Ie=null,Sn(e,t,n),Ie=a,vt=u,Ie!==null)if(vt)try{(Ie.nodeType===9?Ie.body:Ie.nodeName==="HTML"?Ie.ownerDocument.body:Ie).removeChild(n.stateNode)}catch(c){Re(n,t,c)}else try{Ie.removeChild(n.stateNode)}catch(c){Re(n,t,c)}break;case 18:Ie!==null&&(vt?(e=Ie,Fg(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,n.stateNode),hl(e)):Fg(Ie,n.stateNode));break;case 4:a=Ie,u=vt,Ie=n.stateNode.containerInfo,vt=!0,Sn(e,t,n),Ie=a,vt=u;break;case 0:case 11:case 14:case 15:Yn(2,n,t),et||Yn(4,n,t),Sn(e,t,n);break;case 1:et||(ln(n,t),a=n.stateNode,typeof a.componentWillUnmount=="function"&&$h(n,t,a)),Sn(e,t,n);break;case 21:Sn(e,t,n);break;case 22:et=(a=et)||n.memoizedState!==null,Sn(e,t,n),et=a;break;default:Sn(e,t,n)}}function eg(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{hl(e)}catch(n){Re(t,t.return,n)}}}function tg(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{hl(e)}catch(n){Re(t,t.return,n)}}function Zb(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new Qh),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new Qh),t;default:throw Error(s(435,e.tag))}}function Ci(e,t){var n=Zb(e);t.forEach(function(a){if(!n.has(a)){n.add(a);var u=n0.bind(null,e,a);a.then(u,u)}})}function xt(e,t){var n=t.deletions;if(n!==null)for(var a=0;a<n.length;a++){var u=n[a],c=e,p=t,v=p;e:for(;v!==null;){switch(v.tag){case 27:if(Vn(v.type)){Ie=v.stateNode,vt=!1;break e}break;case 5:Ie=v.stateNode,vt=!1;break e;case 3:case 4:Ie=v.stateNode.containerInfo,vt=!0;break e}v=v.return}if(Ie===null)throw Error(s(160));Ph(c,p,u),Ie=null,vt=!1,c=u.alternate,c!==null&&(c.return=null),u.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)ng(t,e),t=t.sibling}var en=null;function ng(e,t){var n=e.alternate,a=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:xt(t,e),St(e),a&4&&(Yn(3,e,e.return),ir(3,e),Yn(5,e,e.return));break;case 1:xt(t,e),St(e),a&512&&(et||n===null||ln(n,n.return)),a&64&&xn&&(e=e.updateQueue,e!==null&&(a=e.callbacks,a!==null&&(n=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=n===null?a:n.concat(a))));break;case 26:var u=en;if(xt(t,e),St(e),a&512&&(et||n===null||ln(n,n.return)),a&4){var c=n!==null?n.memoizedState:null;if(a=e.memoizedState,n===null)if(a===null)if(e.stateNode===null){e:{a=e.type,n=e.memoizedProps,u=u.ownerDocument||u;t:switch(a){case"title":c=u.getElementsByTagName("title")[0],(!c||c[Dl]||c[st]||c.namespaceURI==="http://www.w3.org/2000/svg"||c.hasAttribute("itemprop"))&&(c=u.createElement(a),u.head.insertBefore(c,u.querySelector("head > title"))),ft(c,a,n),c[st]=e,at(c),a=c;break e;case"link":var p=nm("link","href",u).get(a+(n.href||""));if(p){for(var v=0;v<p.length;v++)if(c=p[v],c.getAttribute("href")===(n.href==null||n.href===""?null:n.href)&&c.getAttribute("rel")===(n.rel==null?null:n.rel)&&c.getAttribute("title")===(n.title==null?null:n.title)&&c.getAttribute("crossorigin")===(n.crossOrigin==null?null:n.crossOrigin)){p.splice(v,1);break t}}c=u.createElement(a),ft(c,a,n),u.head.appendChild(c);break;case"meta":if(p=nm("meta","content",u).get(a+(n.content||""))){for(v=0;v<p.length;v++)if(c=p[v],c.getAttribute("content")===(n.content==null?null:""+n.content)&&c.getAttribute("name")===(n.name==null?null:n.name)&&c.getAttribute("property")===(n.property==null?null:n.property)&&c.getAttribute("http-equiv")===(n.httpEquiv==null?null:n.httpEquiv)&&c.getAttribute("charset")===(n.charSet==null?null:n.charSet)){p.splice(v,1);break t}}c=u.createElement(a),ft(c,a,n),u.head.appendChild(c);break;default:throw Error(s(468,a))}c[st]=e,at(c),a=c}e.stateNode=a}else am(u,e.type,e.stateNode);else e.stateNode=tm(u,a,e.memoizedProps);else c!==a?(c===null?n.stateNode!==null&&(n=n.stateNode,n.parentNode.removeChild(n)):c.count--,a===null?am(u,e.type,e.stateNode):tm(u,a,e.memoizedProps)):a===null&&e.stateNode!==null&&lc(e,e.memoizedProps,n.memoizedProps)}break;case 27:xt(t,e),St(e),a&512&&(et||n===null||ln(n,n.return)),n!==null&&a&4&&lc(e,e.memoizedProps,n.memoizedProps);break;case 5:if(xt(t,e),St(e),a&512&&(et||n===null||ln(n,n.return)),e.flags&32){u=e.stateNode;try{La(u,"")}catch(se){Re(e,e.return,se)}}a&4&&e.stateNode!=null&&(u=e.memoizedProps,lc(e,u,n!==null?n.memoizedProps:u)),a&1024&&(sc=!0);break;case 6:if(xt(t,e),St(e),a&4){if(e.stateNode===null)throw Error(s(162));a=e.memoizedProps,n=e.stateNode;try{n.nodeValue=a}catch(se){Re(e,e.return,se)}}break;case 3:if(Ii=null,u=en,en=Yi(t.containerInfo),xt(t,e),en=u,St(e),a&4&&n!==null&&n.memoizedState.isDehydrated)try{hl(t.containerInfo)}catch(se){Re(e,e.return,se)}sc&&(sc=!1,ag(e));break;case 4:a=en,en=Yi(e.stateNode.containerInfo),xt(t,e),St(e),en=a;break;case 12:xt(t,e),St(e);break;case 31:xt(t,e),St(e),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,Ci(e,a)));break;case 13:xt(t,e),St(e),e.child.flags&8192&&e.memoizedState!==null!=(n!==null&&n.memoizedState!==null)&&(ji=At()),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,Ci(e,a)));break;case 22:u=e.memoizedState!==null;var w=n!==null&&n.memoizedState!==null,L=xn,I=et;if(xn=L||u,et=I||w,xt(t,e),et=I,xn=L,St(e),a&8192)e:for(t=e.stateNode,t._visibility=u?t._visibility&-2:t._visibility|1,u&&(n===null||w||xn||et||xa(e)),n=null,t=e;;){if(t.tag===5||t.tag===26){if(n===null){w=n=t;try{if(c=w.stateNode,u)p=c.style,typeof p.setProperty=="function"?p.setProperty("display","none","important"):p.display="none";else{v=w.stateNode;var V=w.memoizedProps.style,H=V!=null&&V.hasOwnProperty("display")?V.display:null;v.style.display=H==null||typeof H=="boolean"?"":(""+H).trim()}}catch(se){Re(w,w.return,se)}}}else if(t.tag===6){if(n===null){w=t;try{w.stateNode.nodeValue=u?"":w.memoizedProps}catch(se){Re(w,w.return,se)}}}else if(t.tag===18){if(n===null){w=t;try{var G=w.stateNode;u?$g(G,!0):$g(w.stateNode,!1)}catch(se){Re(w,w.return,se)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;t.sibling===null;){if(t.return===null||t.return===e)break e;n===t&&(n=null),t=t.return}n===t&&(n=null),t.sibling.return=t.return,t=t.sibling}a&4&&(a=e.updateQueue,a!==null&&(n=a.retryQueue,n!==null&&(a.retryQueue=null,Ci(e,n))));break;case 19:xt(t,e),St(e),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,Ci(e,a)));break;case 30:break;case 21:break;default:xt(t,e),St(e)}}function St(e){var t=e.flags;if(t&2){try{for(var n,a=e.return;a!==null;){if(Vh(a)){n=a;break}a=a.return}if(n==null)throw Error(s(160));switch(n.tag){case 27:var u=n.stateNode,c=rc(e);Ti(e,c,u);break;case 5:var p=n.stateNode;n.flags&32&&(La(p,""),n.flags&=-33);var v=rc(e);Ti(e,v,p);break;case 3:case 4:var w=n.stateNode.containerInfo,L=rc(e);ic(e,L,w);break;default:throw Error(s(161))}}catch(I){Re(e,e.return,I)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function ag(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;ag(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function En(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)Jh(e,t.alternate,t),t=t.sibling}function xa(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:Yn(4,t,t.return),xa(t);break;case 1:ln(t,t.return);var n=t.stateNode;typeof n.componentWillUnmount=="function"&&$h(t,t.return,n),xa(t);break;case 27:pr(t.stateNode);case 26:case 5:ln(t,t.return),xa(t);break;case 22:t.memoizedState===null&&xa(t);break;case 30:xa(t);break;default:xa(t)}e=e.sibling}}function Nn(e,t,n){for(n=n&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var a=t.alternate,u=e,c=t,p=c.flags;switch(c.tag){case 0:case 11:case 15:Nn(u,c,n),ir(4,c);break;case 1:if(Nn(u,c,n),a=c,u=a.stateNode,typeof u.componentDidMount=="function")try{u.componentDidMount()}catch(L){Re(a,a.return,L)}if(a=c,u=a.updateQueue,u!==null){var v=a.stateNode;try{var w=u.shared.hiddenCallbacks;if(w!==null)for(u.shared.hiddenCallbacks=null,u=0;u<w.length;u++)Dd(w[u],v)}catch(L){Re(a,a.return,L)}}n&&p&64&&Fh(c),sr(c,c.return);break;case 27:Kh(c);case 26:case 5:Nn(u,c,n),n&&a===null&&p&4&&Zh(c),sr(c,c.return);break;case 12:Nn(u,c,n);break;case 31:Nn(u,c,n),n&&p&4&&eg(u,c);break;case 13:Nn(u,c,n),n&&p&4&&tg(u,c);break;case 22:c.memoizedState===null&&Nn(u,c,n),sr(c,c.return);break;case 30:break;default:Nn(u,c,n)}t=t.sibling}}function uc(e,t){var n=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==n&&(e!=null&&e.refCount++,n!=null&&Zl(n))}function cc(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Zl(e))}function tn(e,t,n,a){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)lg(e,t,n,a),t=t.sibling}function lg(e,t,n,a){var u=t.flags;switch(t.tag){case 0:case 11:case 15:tn(e,t,n,a),u&2048&&ir(9,t);break;case 1:tn(e,t,n,a);break;case 3:tn(e,t,n,a),u&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Zl(e)));break;case 12:if(u&2048){tn(e,t,n,a),e=t.stateNode;try{var c=t.memoizedProps,p=c.id,v=c.onPostCommit;typeof v=="function"&&v(p,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(w){Re(t,t.return,w)}}else tn(e,t,n,a);break;case 31:tn(e,t,n,a);break;case 13:tn(e,t,n,a);break;case 23:break;case 22:c=t.stateNode,p=t.alternate,t.memoizedState!==null?c._visibility&2?tn(e,t,n,a):ur(e,t):c._visibility&2?tn(e,t,n,a):(c._visibility|=2,nl(e,t,n,a,(t.subtreeFlags&10256)!==0||!1)),u&2048&&uc(p,t);break;case 24:tn(e,t,n,a),u&2048&&cc(t.alternate,t);break;default:tn(e,t,n,a)}}function nl(e,t,n,a,u){for(u=u&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var c=e,p=t,v=n,w=a,L=p.flags;switch(p.tag){case 0:case 11:case 15:nl(c,p,v,w,u),ir(8,p);break;case 23:break;case 22:var I=p.stateNode;p.memoizedState!==null?I._visibility&2?nl(c,p,v,w,u):ur(c,p):(I._visibility|=2,nl(c,p,v,w,u)),u&&L&2048&&uc(p.alternate,p);break;case 24:nl(c,p,v,w,u),u&&L&2048&&cc(p.alternate,p);break;default:nl(c,p,v,w,u)}t=t.sibling}}function ur(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var n=e,a=t,u=a.flags;switch(a.tag){case 22:ur(n,a),u&2048&&uc(a.alternate,a);break;case 24:ur(n,a),u&2048&&cc(a.alternate,a);break;default:ur(n,a)}t=t.sibling}}var cr=8192;function al(e,t,n){if(e.subtreeFlags&cr)for(e=e.child;e!==null;)rg(e,t,n),e=e.sibling}function rg(e,t,n){switch(e.tag){case 26:al(e,t,n),e.flags&cr&&e.memoizedState!==null&&M0(n,en,e.memoizedState,e.memoizedProps);break;case 5:al(e,t,n);break;case 3:case 4:var a=en;en=Yi(e.stateNode.containerInfo),al(e,t,n),en=a;break;case 22:e.memoizedState===null&&(a=e.alternate,a!==null&&a.memoizedState!==null?(a=cr,cr=16777216,al(e,t,n),cr=a):al(e,t,n));break;default:al(e,t,n)}}function ig(e){var t=e.alternate;if(t!==null&&(e=t.child,e!==null)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(e!==null)}}function or(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var n=0;n<t.length;n++){var a=t[n];lt=a,ug(a,e)}ig(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)sg(e),e=e.sibling}function sg(e){switch(e.tag){case 0:case 11:case 15:or(e),e.flags&2048&&Yn(9,e,e.return);break;case 3:or(e);break;case 12:or(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,_i(e)):or(e);break;default:or(e)}}function _i(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var n=0;n<t.length;n++){var a=t[n];lt=a,ug(a,e)}ig(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:Yn(8,t,t.return),_i(t);break;case 22:n=t.stateNode,n._visibility&2&&(n._visibility&=-3,_i(t));break;default:_i(t)}e=e.sibling}}function ug(e,t){for(;lt!==null;){var n=lt;switch(n.tag){case 0:case 11:case 15:Yn(8,n,t);break;case 23:case 22:if(n.memoizedState!==null&&n.memoizedState.cachePool!==null){var a=n.memoizedState.cachePool.pool;a!=null&&a.refCount++}break;case 24:Zl(n.memoizedState.cache)}if(a=n.child,a!==null)a.return=n,lt=a;else e:for(n=e;lt!==null;){a=lt;var u=a.sibling,c=a.return;if(Wh(a),a===n){lt=null;break e}if(u!==null){u.return=c,lt=u;break e}lt=c}}}var Vb={getCacheForType:function(e){var t=ct(Je),n=t.data.get(e);return n===void 0&&(n=e(),t.data.set(e,n)),n},cacheSignal:function(){return ct(Je).controller.signal}},Kb=typeof WeakMap=="function"?WeakMap:Map,Oe=0,Be=null,Ee=null,we=0,ke=0,Rt=null,qn=!1,ll=!1,oc=!1,wn=0,Ve=0,In=0,Sa=0,fc=0,Mt=0,rl=0,fr=null,Et=null,dc=!1,ji=0,cg=0,Oi=1/0,ki=null,Xn=null,nt=0,Fn=null,il=null,An=0,hc=0,gc=null,og=null,dr=0,mc=null;function Dt(){return(Oe&2)!==0&&we!==0?we&-we:k.T!==null?Sc():Tf()}function fg(){if(Mt===0)if((we&536870912)===0||Ce){var e=Hr;Hr<<=1,(Hr&3932160)===0&&(Hr=262144),Mt=e}else Mt=536870912;return e=Ot.current,e!==null&&(e.flags|=32),Mt}function Nt(e,t,n){(e===Be&&(ke===2||ke===9)||e.cancelPendingCommit!==null)&&(sl(e,0),$n(e,we,Mt,!1)),Ml(e,n),((Oe&2)===0||e!==Be)&&(e===Be&&((Oe&2)===0&&(Sa|=n),Ve===4&&$n(e,we,Mt,!1)),rn(e))}function dg(e,t,n){if((Oe&6)!==0)throw Error(s(327));var a=!n&&(t&127)===0&&(t&e.expiredLanes)===0||Rl(e,t),u=a?Wb(e,t):yc(e,t,!0),c=a;do{if(u===0){ll&&!a&&$n(e,t,0,!1);break}else{if(n=e.current.alternate,c&&!Qb(n)){u=yc(e,t,!1),c=!1;continue}if(u===2){if(c=t,e.errorRecoveryDisabledLanes&c)var p=0;else p=e.pendingLanes&-536870913,p=p!==0?p:p&536870912?536870912:0;if(p!==0){t=p;e:{var v=e;u=fr;var w=v.current.memoizedState.isDehydrated;if(w&&(sl(v,p).flags|=256),p=yc(v,p,!1),p!==2){if(oc&&!w){v.errorRecoveryDisabledLanes|=c,Sa|=c,u=4;break e}c=Et,Et=u,c!==null&&(Et===null?Et=c:Et.push.apply(Et,c))}u=p}if(c=!1,u!==2)continue}}if(u===1){sl(e,0),$n(e,t,0,!0);break}e:{switch(a=e,c=u,c){case 0:case 1:throw Error(s(345));case 4:if((t&4194048)!==t)break;case 6:$n(a,t,Mt,!qn);break e;case 2:Et=null;break;case 3:case 5:break;default:throw Error(s(329))}if((t&62914560)===t&&(u=ji+300-At(),10<u)){if($n(a,t,Mt,!qn),Yr(a,0,!0)!==0)break e;An=t,a.timeoutHandle=Ig(hg.bind(null,a,n,Et,ki,dc,t,Mt,Sa,rl,qn,c,"Throttled",-0,0),u);break e}hg(a,n,Et,ki,dc,t,Mt,Sa,rl,qn,c,null,-0,0)}}break}while(!0);rn(e)}function hg(e,t,n,a,u,c,p,v,w,L,I,V,H,G){if(e.timeoutHandle=-1,V=t.subtreeFlags,V&8192||(V&16785408)===16785408){V={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:on},rg(t,c,V);var se=(c&62914560)===c?ji-At():(c&4194048)===c?cg-At():0;if(se=D0(V,se),se!==null){An=c,e.cancelPendingCommit=se(Sg.bind(null,e,t,c,n,a,u,p,v,w,I,V,null,H,G)),$n(e,c,p,!L);return}}Sg(e,t,c,n,a,u,p,v,w)}function Qb(e){for(var t=e;;){var n=t.tag;if((n===0||n===11||n===15)&&t.flags&16384&&(n=t.updateQueue,n!==null&&(n=n.stores,n!==null)))for(var a=0;a<n.length;a++){var u=n[a],c=u.getSnapshot;u=u.value;try{if(!_t(c(),u))return!1}catch{return!1}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function $n(e,t,n,a){t&=~fc,t&=~Sa,e.suspendedLanes|=t,e.pingedLanes&=~t,a&&(e.warmLanes|=t),a=e.expirationTimes;for(var u=t;0<u;){var c=31-Ct(u),p=1<<c;a[c]=-1,u&=~p}n!==0&&Nf(e,n,t)}function Ri(){return(Oe&6)===0?(hr(0),!1):!0}function pc(){if(Ee!==null){if(ke===0)var e=Ee.return;else e=Ee,gn=da=null,Ru(e),Ja=null,Kl=0,e=Ee;for(;e!==null;)Xh(e.alternate,e),e=e.return;Ee=null}}function sl(e,t){var n=e.timeoutHandle;n!==-1&&(e.timeoutHandle=-1,p0(n)),n=e.cancelPendingCommit,n!==null&&(e.cancelPendingCommit=null,n()),An=0,pc(),Be=e,Ee=n=dn(e.current,null),we=t,ke=0,Rt=null,qn=!1,ll=Rl(e,t),oc=!1,rl=Mt=fc=Sa=In=Ve=0,Et=fr=null,dc=!1,(t&8)!==0&&(t|=t&32);var a=e.entangledLanes;if(a!==0)for(e=e.entanglements,a&=t;0<a;){var u=31-Ct(a),c=1<<u;t|=e[u],a&=~c}return wn=t,Pr(),n}function gg(e,t){ve=null,k.H=ar,t===Qa||t===si?(t=Od(),ke=3):t===xu?(t=Od(),ke=4):ke=t===Vu?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,Rt=t,Ee===null&&(Ve=1,Si(e,It(t,e.current)))}function mg(){var e=Ot.current;return e===null?!0:(we&4194048)===we?Zt===null:(we&62914560)===we||(we&536870912)!==0?e===Zt:!1}function pg(){var e=k.H;return k.H=ar,e===null?ar:e}function yg(){var e=k.A;return k.A=Vb,e}function Mi(){Ve=4,qn||(we&4194048)!==we&&Ot.current!==null||(ll=!0),(In&134217727)===0&&(Sa&134217727)===0||Be===null||$n(Be,we,Mt,!1)}function yc(e,t,n){var a=Oe;Oe|=2;var u=pg(),c=yg();(Be!==e||we!==t)&&(ki=null,sl(e,t)),t=!1;var p=Ve;e:do try{if(ke!==0&&Ee!==null){var v=Ee,w=Rt;switch(ke){case 8:pc(),p=6;break e;case 3:case 2:case 9:case 6:Ot.current===null&&(t=!0);var L=ke;if(ke=0,Rt=null,ul(e,v,w,L),n&&ll){p=0;break e}break;default:L=ke,ke=0,Rt=null,ul(e,v,w,L)}}Jb(),p=Ve;break}catch(I){gg(e,I)}while(!0);return t&&e.shellSuspendCounter++,gn=da=null,Oe=a,k.H=u,k.A=c,Ee===null&&(Be=null,we=0,Pr()),p}function Jb(){for(;Ee!==null;)bg(Ee)}function Wb(e,t){var n=Oe;Oe|=2;var a=pg(),u=yg();Be!==e||we!==t?(ki=null,Oi=At()+500,sl(e,t)):ll=Rl(e,t);e:do try{if(ke!==0&&Ee!==null){t=Ee;var c=Rt;t:switch(ke){case 1:ke=0,Rt=null,ul(e,t,c,1);break;case 2:case 9:if(_d(c)){ke=0,Rt=null,vg(t);break}t=function(){ke!==2&&ke!==9||Be!==e||(ke=7),rn(e)},c.then(t,t);break e;case 3:ke=7;break e;case 4:ke=5;break e;case 7:_d(c)?(ke=0,Rt=null,vg(t)):(ke=0,Rt=null,ul(e,t,c,7));break;case 5:var p=null;switch(Ee.tag){case 26:p=Ee.memoizedState;case 5:case 27:var v=Ee;if(p?lm(p):v.stateNode.complete){ke=0,Rt=null;var w=v.sibling;if(w!==null)Ee=w;else{var L=v.return;L!==null?(Ee=L,Di(L)):Ee=null}break t}}ke=0,Rt=null,ul(e,t,c,5);break;case 6:ke=0,Rt=null,ul(e,t,c,6);break;case 8:pc(),Ve=6;break e;default:throw Error(s(462))}}Pb();break}catch(I){gg(e,I)}while(!0);return gn=da=null,k.H=a,k.A=u,Oe=n,Ee!==null?0:(Be=null,we=0,Pr(),Ve)}function Pb(){for(;Ee!==null&&!Ey();)bg(Ee)}function bg(e){var t=qh(e.alternate,e,wn);e.memoizedProps=e.pendingProps,t===null?Di(e):Ee=t}function vg(e){var t=e,n=t.alternate;switch(t.tag){case 15:case 0:t=Lh(n,t,t.pendingProps,t.type,void 0,we);break;case 11:t=Lh(n,t,t.pendingProps,t.type.render,t.ref,we);break;case 5:Ru(t);default:Xh(n,t),t=Ee=yd(t,wn),t=qh(n,t,wn)}e.memoizedProps=e.pendingProps,t===null?Di(e):Ee=t}function ul(e,t,n,a){gn=da=null,Ru(t),Ja=null,Kl=0;var u=t.return;try{if(Yb(e,u,t,n,we)){Ve=1,Si(e,It(n,e.current)),Ee=null;return}}catch(c){if(u!==null)throw Ee=u,c;Ve=1,Si(e,It(n,e.current)),Ee=null;return}t.flags&32768?(Ce||a===1?e=!0:ll||(we&536870912)!==0?e=!1:(qn=e=!0,(a===2||a===9||a===3||a===6)&&(a=Ot.current,a!==null&&a.tag===13&&(a.flags|=16384))),xg(t,e)):Di(t)}function Di(e){var t=e;do{if((t.flags&32768)!==0){xg(t,qn);return}e=t.return;var n=Xb(t.alternate,t,wn);if(n!==null){Ee=n;return}if(t=t.sibling,t!==null){Ee=t;return}Ee=t=e}while(t!==null);Ve===0&&(Ve=5)}function xg(e,t){do{var n=Fb(e.alternate,e);if(n!==null){n.flags&=32767,Ee=n;return}if(n=e.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&(e=e.sibling,e!==null)){Ee=e;return}Ee=e=n}while(e!==null);Ve=6,Ee=null}function Sg(e,t,n,a,u,c,p,v,w){e.cancelPendingCommit=null;do zi();while(nt!==0);if((Oe&6)!==0)throw Error(s(327));if(t!==null){if(t===e.current)throw Error(s(177));if(c=t.lanes|t.childLanes,c|=ru,Ry(e,n,c,p,v,w),e===Be&&(Ee=Be=null,we=0),il=t,Fn=e,An=n,hc=c,gc=u,og=a,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,a0(Ur,function(){return Tg(),null})):(e.callbackNode=null,e.callbackPriority=0),a=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||a){a=k.T,k.T=null,u=B.p,B.p=2,p=Oe,Oe|=4;try{$b(e,t,n)}finally{Oe=p,B.p=u,k.T=a}}nt=1,Eg(),Ng(),wg()}}function Eg(){if(nt===1){nt=0;var e=Fn,t=il,n=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||n){n=k.T,k.T=null;var a=B.p;B.p=2;var u=Oe;Oe|=4;try{ng(t,e);var c=jc,p=ud(e.containerInfo),v=c.focusedElem,w=c.selectionRange;if(p!==v&&v&&v.ownerDocument&&sd(v.ownerDocument.documentElement,v)){if(w!==null&&eu(v)){var L=w.start,I=w.end;if(I===void 0&&(I=L),"selectionStart"in v)v.selectionStart=L,v.selectionEnd=Math.min(I,v.value.length);else{var V=v.ownerDocument||document,H=V&&V.defaultView||window;if(H.getSelection){var G=H.getSelection(),se=v.textContent.length,me=Math.min(w.start,se),Le=w.end===void 0?me:Math.min(w.end,se);!G.extend&&me>Le&&(p=Le,Le=me,me=p);var j=id(v,me),C=id(v,Le);if(j&&C&&(G.rangeCount!==1||G.anchorNode!==j.node||G.anchorOffset!==j.offset||G.focusNode!==C.node||G.focusOffset!==C.offset)){var D=V.createRange();D.setStart(j.node,j.offset),G.removeAllRanges(),me>Le?(G.addRange(D),G.extend(C.node,C.offset)):(D.setEnd(C.node,C.offset),G.addRange(D))}}}}for(V=[],G=v;G=G.parentNode;)G.nodeType===1&&V.push({element:G,left:G.scrollLeft,top:G.scrollTop});for(typeof v.focus=="function"&&v.focus(),v=0;v<V.length;v++){var $=V[v];$.element.scrollLeft=$.left,$.element.scrollTop=$.top}}Zi=!!_c,jc=_c=null}finally{Oe=u,B.p=a,k.T=n}}e.current=t,nt=2}}function Ng(){if(nt===2){nt=0;var e=Fn,t=il,n=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||n){n=k.T,k.T=null;var a=B.p;B.p=2;var u=Oe;Oe|=4;try{Jh(e,t.alternate,t)}finally{Oe=u,B.p=a,k.T=n}}nt=3}}function wg(){if(nt===4||nt===3){nt=0,Ny();var e=Fn,t=il,n=An,a=og;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?nt=5:(nt=0,il=Fn=null,Ag(e,e.pendingLanes));var u=e.pendingLanes;if(u===0&&(Xn=null),zs(n),t=t.stateNode,Tt&&typeof Tt.onCommitFiberRoot=="function")try{Tt.onCommitFiberRoot(kl,t,void 0,(t.current.flags&128)===128)}catch{}if(a!==null){t=k.T,u=B.p,B.p=2,k.T=null;try{for(var c=e.onRecoverableError,p=0;p<a.length;p++){var v=a[p];c(v.value,{componentStack:v.stack})}}finally{k.T=t,B.p=u}}(An&3)!==0&&zi(),rn(e),u=e.pendingLanes,(n&261930)!==0&&(u&42)!==0?e===mc?dr++:(dr=0,mc=e):dr=0,hr(0)}}function Ag(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,Zl(t)))}function zi(){return Eg(),Ng(),wg(),Tg()}function Tg(){if(nt!==5)return!1;var e=Fn,t=hc;hc=0;var n=zs(An),a=k.T,u=B.p;try{B.p=32>n?32:n,k.T=null,n=gc,gc=null;var c=Fn,p=An;if(nt=0,il=Fn=null,An=0,(Oe&6)!==0)throw Error(s(331));var v=Oe;if(Oe|=4,sg(c.current),lg(c,c.current,p,n),Oe=v,hr(0,!1),Tt&&typeof Tt.onPostCommitFiberRoot=="function")try{Tt.onPostCommitFiberRoot(kl,c)}catch{}return!0}finally{B.p=u,k.T=a,Ag(e,t)}}function Cg(e,t,n){t=It(n,t),t=Zu(e.stateNode,t,2),e=Bn(e,t,2),e!==null&&(Ml(e,2),rn(e))}function Re(e,t,n){if(e.tag===3)Cg(e,e,n);else for(;t!==null;){if(t.tag===3){Cg(t,e,n);break}else if(t.tag===1){var a=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof a.componentDidCatch=="function"&&(Xn===null||!Xn.has(a))){e=It(n,e),n=_h(2),a=Bn(t,n,2),a!==null&&(jh(n,a,t,e),Ml(a,2),rn(a));break}}t=t.return}}function bc(e,t,n){var a=e.pingCache;if(a===null){a=e.pingCache=new Kb;var u=new Set;a.set(t,u)}else u=a.get(t),u===void 0&&(u=new Set,a.set(t,u));u.has(n)||(oc=!0,u.add(n),e=e0.bind(null,e,t,n),t.then(e,e))}function e0(e,t,n){var a=e.pingCache;a!==null&&a.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,Be===e&&(we&n)===n&&(Ve===4||Ve===3&&(we&62914560)===we&&300>At()-ji?(Oe&2)===0&&sl(e,0):fc|=n,rl===we&&(rl=0)),rn(e)}function _g(e,t){t===0&&(t=Ef()),e=ca(e,t),e!==null&&(Ml(e,t),rn(e))}function t0(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),_g(e,n)}function n0(e,t){var n=0;switch(e.tag){case 31:case 13:var a=e.stateNode,u=e.memoizedState;u!==null&&(n=u.retryLane);break;case 19:a=e.stateNode;break;case 22:a=e.stateNode._retryCache;break;default:throw Error(s(314))}a!==null&&a.delete(t),_g(e,n)}function a0(e,t){return ks(e,t)}var Li=null,cl=null,vc=!1,Ui=!1,xc=!1,Zn=0;function rn(e){e!==cl&&e.next===null&&(cl===null?Li=cl=e:cl=cl.next=e),Ui=!0,vc||(vc=!0,r0())}function hr(e,t){if(!xc&&Ui){xc=!0;do for(var n=!1,a=Li;a!==null;){if(e!==0){var u=a.pendingLanes;if(u===0)var c=0;else{var p=a.suspendedLanes,v=a.pingedLanes;c=(1<<31-Ct(42|e)+1)-1,c&=u&~(p&~v),c=c&201326741?c&201326741|1:c?c|2:0}c!==0&&(n=!0,Rg(a,c))}else c=we,c=Yr(a,a===Be?c:0,a.cancelPendingCommit!==null||a.timeoutHandle!==-1),(c&3)===0||Rl(a,c)||(n=!0,Rg(a,c));a=a.next}while(n);xc=!1}}function l0(){jg()}function jg(){Ui=vc=!1;var e=0;Zn!==0&&m0()&&(e=Zn);for(var t=At(),n=null,a=Li;a!==null;){var u=a.next,c=Og(a,t);c===0?(a.next=null,n===null?Li=u:n.next=u,u===null&&(cl=n)):(n=a,(e!==0||(c&3)!==0)&&(Ui=!0)),a=u}nt!==0&&nt!==5||hr(e),Zn!==0&&(Zn=0)}function Og(e,t){for(var n=e.suspendedLanes,a=e.pingedLanes,u=e.expirationTimes,c=e.pendingLanes&-62914561;0<c;){var p=31-Ct(c),v=1<<p,w=u[p];w===-1?((v&n)===0||(v&a)!==0)&&(u[p]=ky(v,t)):w<=t&&(e.expiredLanes|=v),c&=~v}if(t=Be,n=we,n=Yr(e,e===t?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),a=e.callbackNode,n===0||e===t&&(ke===2||ke===9)||e.cancelPendingCommit!==null)return a!==null&&a!==null&&Rs(a),e.callbackNode=null,e.callbackPriority=0;if((n&3)===0||Rl(e,n)){if(t=n&-n,t===e.callbackPriority)return t;switch(a!==null&&Rs(a),zs(n)){case 2:case 8:n=xf;break;case 32:n=Ur;break;case 268435456:n=Sf;break;default:n=Ur}return a=kg.bind(null,e),n=ks(n,a),e.callbackPriority=t,e.callbackNode=n,t}return a!==null&&a!==null&&Rs(a),e.callbackPriority=2,e.callbackNode=null,2}function kg(e,t){if(nt!==0&&nt!==5)return e.callbackNode=null,e.callbackPriority=0,null;var n=e.callbackNode;if(zi()&&e.callbackNode!==n)return null;var a=we;return a=Yr(e,e===Be?a:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),a===0?null:(dg(e,a,t),Og(e,At()),e.callbackNode!=null&&e.callbackNode===n?kg.bind(null,e):null)}function Rg(e,t){if(zi())return null;dg(e,t,!0)}function r0(){y0(function(){(Oe&6)!==0?ks(vf,l0):jg()})}function Sc(){if(Zn===0){var e=Va;e===0&&(e=Br,Br<<=1,(Br&261888)===0&&(Br=256)),Zn=e}return Zn}function Mg(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:Fr(""+e)}function Dg(e,t){var n=t.ownerDocument.createElement("input");return n.name=t.name,n.value=t.value,e.id&&n.setAttribute("form",e.id),t.parentNode.insertBefore(n,t),e=new FormData(e),n.parentNode.removeChild(n),e}function i0(e,t,n,a,u){if(t==="submit"&&n&&n.stateNode===u){var c=Mg((u[yt]||null).action),p=a.submitter;p&&(t=(t=p[yt]||null)?Mg(t.formAction):p.getAttribute("formAction"),t!==null&&(c=t,p=null));var v=new Kr("action","action",null,a,u);e.push({event:v,listeners:[{instance:null,listener:function(){if(a.defaultPrevented){if(Zn!==0){var w=p?Dg(u,p):new FormData(u);Yu(n,{pending:!0,data:w,method:u.method,action:c},null,w)}}else typeof c=="function"&&(v.preventDefault(),w=p?Dg(u,p):new FormData(u),Yu(n,{pending:!0,data:w,method:u.method,action:c},c,w))},currentTarget:u}]})}}for(var Ec=0;Ec<lu.length;Ec++){var Nc=lu[Ec],s0=Nc.toLowerCase(),u0=Nc[0].toUpperCase()+Nc.slice(1);Pt(s0,"on"+u0)}Pt(fd,"onAnimationEnd"),Pt(dd,"onAnimationIteration"),Pt(hd,"onAnimationStart"),Pt("dblclick","onDoubleClick"),Pt("focusin","onFocus"),Pt("focusout","onBlur"),Pt(wb,"onTransitionRun"),Pt(Ab,"onTransitionStart"),Pt(Tb,"onTransitionCancel"),Pt(gd,"onTransitionEnd"),Da("onMouseEnter",["mouseout","mouseover"]),Da("onMouseLeave",["mouseout","mouseover"]),Da("onPointerEnter",["pointerout","pointerover"]),Da("onPointerLeave",["pointerout","pointerover"]),ra("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),ra("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),ra("onBeforeInput",["compositionend","keypress","textInput","paste"]),ra("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),ra("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),ra("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var gr="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(" "),c0=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(gr));function zg(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var a=e[n],u=a.event;a=a.listeners;e:{var c=void 0;if(t)for(var p=a.length-1;0<=p;p--){var v=a[p],w=v.instance,L=v.currentTarget;if(v=v.listener,w!==c&&u.isPropagationStopped())break e;c=v,u.currentTarget=L;try{c(u)}catch(I){Wr(I)}u.currentTarget=null,c=w}else for(p=0;p<a.length;p++){if(v=a[p],w=v.instance,L=v.currentTarget,v=v.listener,w!==c&&u.isPropagationStopped())break e;c=v,u.currentTarget=L;try{c(u)}catch(I){Wr(I)}u.currentTarget=null,c=w}}}}function Ne(e,t){var n=t[Ls];n===void 0&&(n=t[Ls]=new Set);var a=e+"__bubble";n.has(a)||(Lg(t,e,2,!1),n.add(a))}function wc(e,t,n){var a=0;t&&(a|=4),Lg(n,e,a,t)}var Bi="_reactListening"+Math.random().toString(36).slice(2);function Ac(e){if(!e[Bi]){e[Bi]=!0,jf.forEach(function(n){n!=="selectionchange"&&(c0.has(n)||wc(n,!1,e),wc(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Bi]||(t[Bi]=!0,wc("selectionchange",!1,t))}}function Lg(e,t,n,a){switch(fm(t)){case 2:var u=U0;break;case 8:u=B0;break;default:u=Gc}n=u.bind(null,t,n,e),u=void 0,!Fs||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(u=!0),a?u!==void 0?e.addEventListener(t,n,{capture:!0,passive:u}):e.addEventListener(t,n,!0):u!==void 0?e.addEventListener(t,n,{passive:u}):e.addEventListener(t,n,!1)}function Tc(e,t,n,a,u){var c=a;if((t&1)===0&&(t&2)===0&&a!==null)e:for(;;){if(a===null)return;var p=a.tag;if(p===3||p===4){var v=a.stateNode.containerInfo;if(v===u)break;if(p===4)for(p=a.return;p!==null;){var w=p.tag;if((w===3||w===4)&&p.stateNode.containerInfo===u)return;p=p.return}for(;v!==null;){if(p=ka(v),p===null)return;if(w=p.tag,w===5||w===6||w===26||w===27){a=c=p;continue e}v=v.parentNode}}a=a.return}Yf(function(){var L=c,I=Is(n),V=[];e:{var H=md.get(e);if(H!==void 0){var G=Kr,se=e;switch(e){case"keypress":if(Zr(n)===0)break e;case"keydown":case"keyup":G=nb;break;case"focusin":se="focus",G=Ks;break;case"focusout":se="blur",G=Ks;break;case"beforeblur":case"afterblur":G=Ks;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":G=Xf;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":G=Xy;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":G=rb;break;case fd:case dd:case hd:G=Zy;break;case gd:G=sb;break;case"scroll":case"scrollend":G=qy;break;case"wheel":G=cb;break;case"copy":case"cut":case"paste":G=Ky;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":G=$f;break;case"toggle":case"beforetoggle":G=fb}var me=(t&4)!==0,Le=!me&&(e==="scroll"||e==="scrollend"),j=me?H!==null?H+"Capture":null:H;me=[];for(var C=L,D;C!==null;){var $=C;if(D=$.stateNode,$=$.tag,$!==5&&$!==26&&$!==27||D===null||j===null||($=Ll(C,j),$!=null&&me.push(mr(C,$,D))),Le)break;C=C.return}0<me.length&&(H=new G(H,se,null,n,I),V.push({event:H,listeners:me}))}}if((t&7)===0){e:{if(H=e==="mouseover"||e==="pointerover",G=e==="mouseout"||e==="pointerout",H&&n!==qs&&(se=n.relatedTarget||n.fromElement)&&(ka(se)||se[Oa]))break e;if((G||H)&&(H=I.window===I?I:(H=I.ownerDocument)?H.defaultView||H.parentWindow:window,G?(se=n.relatedTarget||n.toElement,G=L,se=se?ka(se):null,se!==null&&(Le=d(se),me=se.tag,se!==Le||me!==5&&me!==27&&me!==6)&&(se=null)):(G=null,se=L),G!==se)){if(me=Xf,$="onMouseLeave",j="onMouseEnter",C="mouse",(e==="pointerout"||e==="pointerover")&&(me=$f,$="onPointerLeave",j="onPointerEnter",C="pointer"),Le=G==null?H:zl(G),D=se==null?H:zl(se),H=new me($,C+"leave",G,n,I),H.target=Le,H.relatedTarget=D,$=null,ka(I)===L&&(me=new me(j,C+"enter",se,n,I),me.target=D,me.relatedTarget=Le,$=me),Le=$,G&&se)t:{for(me=o0,j=G,C=se,D=0,$=j;$;$=me($))D++;$=0;for(var he=C;he;he=me(he))$++;for(;0<D-$;)j=me(j),D--;for(;0<$-D;)C=me(C),$--;for(;D--;){if(j===C||C!==null&&j===C.alternate){me=j;break t}j=me(j),C=me(C)}me=null}else me=null;G!==null&&Ug(V,H,G,me,!1),se!==null&&Le!==null&&Ug(V,Le,se,me,!0)}}e:{if(H=L?zl(L):window,G=H.nodeName&&H.nodeName.toLowerCase(),G==="select"||G==="input"&&H.type==="file")var _e=ed;else if(Wf(H))if(td)_e=Sb;else{_e=vb;var oe=bb}else G=H.nodeName,!G||G.toLowerCase()!=="input"||H.type!=="checkbox"&&H.type!=="radio"?L&&Ys(L.elementType)&&(_e=ed):_e=xb;if(_e&&(_e=_e(e,L))){Pf(V,_e,n,I);break e}oe&&oe(e,H,L),e==="focusout"&&L&&H.type==="number"&&L.memoizedProps.value!=null&&Gs(H,"number",H.value)}switch(oe=L?zl(L):window,e){case"focusin":(Wf(oe)||oe.contentEditable==="true")&&(Ga=oe,tu=L,Xl=null);break;case"focusout":Xl=tu=Ga=null;break;case"mousedown":nu=!0;break;case"contextmenu":case"mouseup":case"dragend":nu=!1,cd(V,n,I);break;case"selectionchange":if(Nb)break;case"keydown":case"keyup":cd(V,n,I)}var Se;if(Js)e:{switch(e){case"compositionstart":var Ae="onCompositionStart";break e;case"compositionend":Ae="onCompositionEnd";break e;case"compositionupdate":Ae="onCompositionUpdate";break e}Ae=void 0}else Ha?Qf(e,n)&&(Ae="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(Ae="onCompositionStart");Ae&&(Zf&&n.locale!=="ko"&&(Ha||Ae!=="onCompositionStart"?Ae==="onCompositionEnd"&&Ha&&(Se=qf()):(kn=I,$s="value"in kn?kn.value:kn.textContent,Ha=!0)),oe=Hi(L,Ae),0<oe.length&&(Ae=new Ff(Ae,e,null,n,I),V.push({event:Ae,listeners:oe}),Se?Ae.data=Se:(Se=Jf(n),Se!==null&&(Ae.data=Se)))),(Se=hb?gb(e,n):mb(e,n))&&(Ae=Hi(L,"onBeforeInput"),0<Ae.length&&(oe=new Ff("onBeforeInput","beforeinput",null,n,I),V.push({event:oe,listeners:Ae}),oe.data=Se)),i0(V,e,L,n,I)}zg(V,t)})}function mr(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Hi(e,t){for(var n=t+"Capture",a=[];e!==null;){var u=e,c=u.stateNode;if(u=u.tag,u!==5&&u!==26&&u!==27||c===null||(u=Ll(e,n),u!=null&&a.unshift(mr(e,u,c)),u=Ll(e,t),u!=null&&a.push(mr(e,u,c))),e.tag===3)return a;e=e.return}return[]}function o0(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function Ug(e,t,n,a,u){for(var c=t._reactName,p=[];n!==null&&n!==a;){var v=n,w=v.alternate,L=v.stateNode;if(v=v.tag,w!==null&&w===a)break;v!==5&&v!==26&&v!==27||L===null||(w=L,u?(L=Ll(n,c),L!=null&&p.unshift(mr(n,L,w))):u||(L=Ll(n,c),L!=null&&p.push(mr(n,L,w)))),n=n.return}p.length!==0&&e.push({event:t,listeners:p})}var f0=/\r\n?/g,d0=/\u0000|\uFFFD/g;function Bg(e){return(typeof e=="string"?e:""+e).replace(f0,`
|
|
49
|
+
`).replace(d0,"")}function Hg(e,t){return t=Bg(t),Bg(e)===t}function ze(e,t,n,a,u,c){switch(n){case"children":typeof a=="string"?t==="body"||t==="textarea"&&a===""||La(e,a):(typeof a=="number"||typeof a=="bigint")&&t!=="body"&&La(e,""+a);break;case"className":Ir(e,"class",a);break;case"tabIndex":Ir(e,"tabindex",a);break;case"dir":case"role":case"viewBox":case"width":case"height":Ir(e,n,a);break;case"style":Hf(e,a,c);break;case"data":if(t!=="object"){Ir(e,"data",a);break}case"src":case"href":if(a===""&&(t!=="a"||n!=="href")){e.removeAttribute(n);break}if(a==null||typeof a=="function"||typeof a=="symbol"||typeof a=="boolean"){e.removeAttribute(n);break}a=Fr(""+a),e.setAttribute(n,a);break;case"action":case"formAction":if(typeof a=="function"){e.setAttribute(n,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof c=="function"&&(n==="formAction"?(t!=="input"&&ze(e,t,"name",u.name,u,null),ze(e,t,"formEncType",u.formEncType,u,null),ze(e,t,"formMethod",u.formMethod,u,null),ze(e,t,"formTarget",u.formTarget,u,null)):(ze(e,t,"encType",u.encType,u,null),ze(e,t,"method",u.method,u,null),ze(e,t,"target",u.target,u,null)));if(a==null||typeof a=="symbol"||typeof a=="boolean"){e.removeAttribute(n);break}a=Fr(""+a),e.setAttribute(n,a);break;case"onClick":a!=null&&(e.onclick=on);break;case"onScroll":a!=null&&Ne("scroll",e);break;case"onScrollEnd":a!=null&&Ne("scrollend",e);break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(s(61));if(n=a.__html,n!=null){if(u.children!=null)throw Error(s(60));e.innerHTML=n}}break;case"multiple":e.multiple=a&&typeof a!="function"&&typeof a!="symbol";break;case"muted":e.muted=a&&typeof a!="function"&&typeof a!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(a==null||typeof a=="function"||typeof a=="boolean"||typeof a=="symbol"){e.removeAttribute("xlink:href");break}n=Fr(""+a),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",n);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":a!=null&&typeof a!="function"&&typeof a!="symbol"?e.setAttribute(n,""+a):e.removeAttribute(n);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":a&&typeof a!="function"&&typeof a!="symbol"?e.setAttribute(n,""):e.removeAttribute(n);break;case"capture":case"download":a===!0?e.setAttribute(n,""):a!==!1&&a!=null&&typeof a!="function"&&typeof a!="symbol"?e.setAttribute(n,a):e.removeAttribute(n);break;case"cols":case"rows":case"size":case"span":a!=null&&typeof a!="function"&&typeof a!="symbol"&&!isNaN(a)&&1<=a?e.setAttribute(n,a):e.removeAttribute(n);break;case"rowSpan":case"start":a==null||typeof a=="function"||typeof a=="symbol"||isNaN(a)?e.removeAttribute(n):e.setAttribute(n,a);break;case"popover":Ne("beforetoggle",e),Ne("toggle",e),qr(e,"popover",a);break;case"xlinkActuate":cn(e,"http://www.w3.org/1999/xlink","xlink:actuate",a);break;case"xlinkArcrole":cn(e,"http://www.w3.org/1999/xlink","xlink:arcrole",a);break;case"xlinkRole":cn(e,"http://www.w3.org/1999/xlink","xlink:role",a);break;case"xlinkShow":cn(e,"http://www.w3.org/1999/xlink","xlink:show",a);break;case"xlinkTitle":cn(e,"http://www.w3.org/1999/xlink","xlink:title",a);break;case"xlinkType":cn(e,"http://www.w3.org/1999/xlink","xlink:type",a);break;case"xmlBase":cn(e,"http://www.w3.org/XML/1998/namespace","xml:base",a);break;case"xmlLang":cn(e,"http://www.w3.org/XML/1998/namespace","xml:lang",a);break;case"xmlSpace":cn(e,"http://www.w3.org/XML/1998/namespace","xml:space",a);break;case"is":qr(e,"is",a);break;case"innerText":case"textContent":break;default:(!(2<n.length)||n[0]!=="o"&&n[0]!=="O"||n[1]!=="n"&&n[1]!=="N")&&(n=Gy.get(n)||n,qr(e,n,a))}}function Cc(e,t,n,a,u,c){switch(n){case"style":Hf(e,a,c);break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(s(61));if(n=a.__html,n!=null){if(u.children!=null)throw Error(s(60));e.innerHTML=n}}break;case"children":typeof a=="string"?La(e,a):(typeof a=="number"||typeof a=="bigint")&&La(e,""+a);break;case"onScroll":a!=null&&Ne("scroll",e);break;case"onScrollEnd":a!=null&&Ne("scrollend",e);break;case"onClick":a!=null&&(e.onclick=on);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Of.hasOwnProperty(n))e:{if(n[0]==="o"&&n[1]==="n"&&(u=n.endsWith("Capture"),t=n.slice(2,u?n.length-7:void 0),c=e[yt]||null,c=c!=null?c[n]:null,typeof c=="function"&&e.removeEventListener(t,c,u),typeof a=="function")){typeof c!="function"&&c!==null&&(n in e?e[n]=null:e.hasAttribute(n)&&e.removeAttribute(n)),e.addEventListener(t,a,u);break e}n in e?e[n]=a:a===!0?e.setAttribute(n,""):qr(e,n,a)}}}function ft(e,t,n){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Ne("error",e),Ne("load",e);var a=!1,u=!1,c;for(c in n)if(n.hasOwnProperty(c)){var p=n[c];if(p!=null)switch(c){case"src":a=!0;break;case"srcSet":u=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(s(137,t));default:ze(e,t,c,p,n,null)}}u&&ze(e,t,"srcSet",n.srcSet,n,null),a&&ze(e,t,"src",n.src,n,null);return;case"input":Ne("invalid",e);var v=c=p=u=null,w=null,L=null;for(a in n)if(n.hasOwnProperty(a)){var I=n[a];if(I!=null)switch(a){case"name":u=I;break;case"type":p=I;break;case"checked":w=I;break;case"defaultChecked":L=I;break;case"value":c=I;break;case"defaultValue":v=I;break;case"children":case"dangerouslySetInnerHTML":if(I!=null)throw Error(s(137,t));break;default:ze(e,t,a,I,n,null)}}zf(e,c,v,w,L,p,u,!1);return;case"select":Ne("invalid",e),a=p=c=null;for(u in n)if(n.hasOwnProperty(u)&&(v=n[u],v!=null))switch(u){case"value":c=v;break;case"defaultValue":p=v;break;case"multiple":a=v;default:ze(e,t,u,v,n,null)}t=c,n=p,e.multiple=!!a,t!=null?za(e,!!a,t,!1):n!=null&&za(e,!!a,n,!0);return;case"textarea":Ne("invalid",e),c=u=a=null;for(p in n)if(n.hasOwnProperty(p)&&(v=n[p],v!=null))switch(p){case"value":a=v;break;case"defaultValue":u=v;break;case"children":c=v;break;case"dangerouslySetInnerHTML":if(v!=null)throw Error(s(91));break;default:ze(e,t,p,v,n,null)}Uf(e,a,u,c);return;case"option":for(w in n)if(n.hasOwnProperty(w)&&(a=n[w],a!=null))switch(w){case"selected":e.selected=a&&typeof a!="function"&&typeof a!="symbol";break;default:ze(e,t,w,a,n,null)}return;case"dialog":Ne("beforetoggle",e),Ne("toggle",e),Ne("cancel",e),Ne("close",e);break;case"iframe":case"object":Ne("load",e);break;case"video":case"audio":for(a=0;a<gr.length;a++)Ne(gr[a],e);break;case"image":Ne("error",e),Ne("load",e);break;case"details":Ne("toggle",e);break;case"embed":case"source":case"link":Ne("error",e),Ne("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(L in n)if(n.hasOwnProperty(L)&&(a=n[L],a!=null))switch(L){case"children":case"dangerouslySetInnerHTML":throw Error(s(137,t));default:ze(e,t,L,a,n,null)}return;default:if(Ys(t)){for(I in n)n.hasOwnProperty(I)&&(a=n[I],a!==void 0&&Cc(e,t,I,a,n,void 0));return}}for(v in n)n.hasOwnProperty(v)&&(a=n[v],a!=null&&ze(e,t,v,a,n,null))}function h0(e,t,n,a){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var u=null,c=null,p=null,v=null,w=null,L=null,I=null;for(G in n){var V=n[G];if(n.hasOwnProperty(G)&&V!=null)switch(G){case"checked":break;case"value":break;case"defaultValue":w=V;default:a.hasOwnProperty(G)||ze(e,t,G,null,a,V)}}for(var H in a){var G=a[H];if(V=n[H],a.hasOwnProperty(H)&&(G!=null||V!=null))switch(H){case"type":c=G;break;case"name":u=G;break;case"checked":L=G;break;case"defaultChecked":I=G;break;case"value":p=G;break;case"defaultValue":v=G;break;case"children":case"dangerouslySetInnerHTML":if(G!=null)throw Error(s(137,t));break;default:G!==V&&ze(e,t,H,G,a,V)}}Hs(e,p,v,w,L,I,c,u);return;case"select":G=p=v=H=null;for(c in n)if(w=n[c],n.hasOwnProperty(c)&&w!=null)switch(c){case"value":break;case"multiple":G=w;default:a.hasOwnProperty(c)||ze(e,t,c,null,a,w)}for(u in a)if(c=a[u],w=n[u],a.hasOwnProperty(u)&&(c!=null||w!=null))switch(u){case"value":H=c;break;case"defaultValue":v=c;break;case"multiple":p=c;default:c!==w&&ze(e,t,u,c,a,w)}t=v,n=p,a=G,H!=null?za(e,!!n,H,!1):!!a!=!!n&&(t!=null?za(e,!!n,t,!0):za(e,!!n,n?[]:"",!1));return;case"textarea":G=H=null;for(v in n)if(u=n[v],n.hasOwnProperty(v)&&u!=null&&!a.hasOwnProperty(v))switch(v){case"value":break;case"children":break;default:ze(e,t,v,null,a,u)}for(p in a)if(u=a[p],c=n[p],a.hasOwnProperty(p)&&(u!=null||c!=null))switch(p){case"value":H=u;break;case"defaultValue":G=u;break;case"children":break;case"dangerouslySetInnerHTML":if(u!=null)throw Error(s(91));break;default:u!==c&&ze(e,t,p,u,a,c)}Lf(e,H,G);return;case"option":for(var se in n)if(H=n[se],n.hasOwnProperty(se)&&H!=null&&!a.hasOwnProperty(se))switch(se){case"selected":e.selected=!1;break;default:ze(e,t,se,null,a,H)}for(w in a)if(H=a[w],G=n[w],a.hasOwnProperty(w)&&H!==G&&(H!=null||G!=null))switch(w){case"selected":e.selected=H&&typeof H!="function"&&typeof H!="symbol";break;default:ze(e,t,w,H,a,G)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var me in n)H=n[me],n.hasOwnProperty(me)&&H!=null&&!a.hasOwnProperty(me)&&ze(e,t,me,null,a,H);for(L in a)if(H=a[L],G=n[L],a.hasOwnProperty(L)&&H!==G&&(H!=null||G!=null))switch(L){case"children":case"dangerouslySetInnerHTML":if(H!=null)throw Error(s(137,t));break;default:ze(e,t,L,H,a,G)}return;default:if(Ys(t)){for(var Le in n)H=n[Le],n.hasOwnProperty(Le)&&H!==void 0&&!a.hasOwnProperty(Le)&&Cc(e,t,Le,void 0,a,H);for(I in a)H=a[I],G=n[I],!a.hasOwnProperty(I)||H===G||H===void 0&&G===void 0||Cc(e,t,I,H,a,G);return}}for(var j in n)H=n[j],n.hasOwnProperty(j)&&H!=null&&!a.hasOwnProperty(j)&&ze(e,t,j,null,a,H);for(V in a)H=a[V],G=n[V],!a.hasOwnProperty(V)||H===G||H==null&&G==null||ze(e,t,V,H,a,G)}function Gg(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function g0(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,n=performance.getEntriesByType("resource"),a=0;a<n.length;a++){var u=n[a],c=u.transferSize,p=u.initiatorType,v=u.duration;if(c&&v&&Gg(p)){for(p=0,v=u.responseEnd,a+=1;a<n.length;a++){var w=n[a],L=w.startTime;if(L>v)break;var I=w.transferSize,V=w.initiatorType;I&&Gg(V)&&(w=w.responseEnd,p+=I*(w<v?1:(v-L)/(w-L)))}if(--a,t+=8*(c+p)/(u.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e=="number")?e:5}var _c=null,jc=null;function Gi(e){return e.nodeType===9?e:e.ownerDocument}function Yg(e){switch(e){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function qg(e,t){if(e===0)switch(t){case"svg":return 1;case"math":return 2;default:return 0}return e===1&&t==="foreignObject"?0:e}function Oc(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.children=="bigint"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var kc=null;function m0(){var e=window.event;return e&&e.type==="popstate"?e===kc?!1:(kc=e,!0):(kc=null,!1)}var Ig=typeof setTimeout=="function"?setTimeout:void 0,p0=typeof clearTimeout=="function"?clearTimeout:void 0,Xg=typeof Promise=="function"?Promise:void 0,y0=typeof queueMicrotask=="function"?queueMicrotask:typeof Xg<"u"?function(e){return Xg.resolve(null).then(e).catch(b0)}:Ig;function b0(e){setTimeout(function(){throw e})}function Vn(e){return e==="head"}function Fg(e,t){var n=t,a=0;do{var u=n.nextSibling;if(e.removeChild(n),u&&u.nodeType===8)if(n=u.data,n==="/$"||n==="/&"){if(a===0){e.removeChild(u),hl(t);return}a--}else if(n==="$"||n==="$?"||n==="$~"||n==="$!"||n==="&")a++;else if(n==="html")pr(e.ownerDocument.documentElement);else if(n==="head"){n=e.ownerDocument.head,pr(n);for(var c=n.firstChild;c;){var p=c.nextSibling,v=c.nodeName;c[Dl]||v==="SCRIPT"||v==="STYLE"||v==="LINK"&&c.rel.toLowerCase()==="stylesheet"||n.removeChild(c),c=p}}else n==="body"&&pr(e.ownerDocument.body);n=u}while(n);hl(t)}function $g(e,t){var n=e;e=0;do{var a=n.nextSibling;if(n.nodeType===1?t?(n._stashedDisplay=n.style.display,n.style.display="none"):(n.style.display=n._stashedDisplay||"",n.getAttribute("style")===""&&n.removeAttribute("style")):n.nodeType===3&&(t?(n._stashedText=n.nodeValue,n.nodeValue=""):n.nodeValue=n._stashedText||""),a&&a.nodeType===8)if(n=a.data,n==="/$"){if(e===0)break;e--}else n!=="$"&&n!=="$?"&&n!=="$~"&&n!=="$!"||e++;n=a}while(n)}function Rc(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var n=t;switch(t=t.nextSibling,n.nodeName){case"HTML":case"HEAD":case"BODY":Rc(n),Us(n);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(n.rel.toLowerCase()==="stylesheet")continue}e.removeChild(n)}}function v0(e,t,n,a){for(;e.nodeType===1;){var u=n;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!a&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(a){if(!e[Dl])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(c=e.getAttribute("rel"),c==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(c!==u.rel||e.getAttribute("href")!==(u.href==null||u.href===""?null:u.href)||e.getAttribute("crossorigin")!==(u.crossOrigin==null?null:u.crossOrigin)||e.getAttribute("title")!==(u.title==null?null:u.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(c=e.getAttribute("src"),(c!==(u.src==null?null:u.src)||e.getAttribute("type")!==(u.type==null?null:u.type)||e.getAttribute("crossorigin")!==(u.crossOrigin==null?null:u.crossOrigin))&&c&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var c=u.name==null?null:""+u.name;if(u.type==="hidden"&&e.getAttribute("name")===c)return e}else return e;if(e=Vt(e.nextSibling),e===null)break}return null}function x0(e,t,n){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!n||(e=Vt(e.nextSibling),e===null))return null;return e}function Zg(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=Vt(e.nextSibling),e===null))return null;return e}function Mc(e){return e.data==="$?"||e.data==="$~"}function Dc(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function S0(e,t){var n=e.ownerDocument;if(e.data==="$~")e._reactRetry=t;else if(e.data!=="$?"||n.readyState!=="loading")t();else{var a=function(){t(),n.removeEventListener("DOMContentLoaded",a)};n.addEventListener("DOMContentLoaded",a),e._reactRetry=a}}function Vt(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==="$?"||t==="$~"||t==="&"||t==="F!"||t==="F")break;if(t==="/$"||t==="/&")return null}}return e}var zc=null;function Vg(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"||n==="/&"){if(t===0)return Vt(e.nextSibling);t--}else n!=="$"&&n!=="$!"&&n!=="$?"&&n!=="$~"&&n!=="&"||t++}e=e.nextSibling}return null}function Kg(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"||n==="$~"||n==="&"){if(t===0)return e;t--}else n!=="/$"&&n!=="/&"||t++}e=e.previousSibling}return null}function Qg(e,t,n){switch(t=Gi(n),e){case"html":if(e=t.documentElement,!e)throw Error(s(452));return e;case"head":if(e=t.head,!e)throw Error(s(453));return e;case"body":if(e=t.body,!e)throw Error(s(454));return e;default:throw Error(s(451))}}function pr(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);Us(e)}var Kt=new Map,Jg=new Set;function Yi(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var Tn=B.d;B.d={f:E0,r:N0,D:w0,C:A0,L:T0,m:C0,X:j0,S:_0,M:O0};function E0(){var e=Tn.f(),t=Ri();return e||t}function N0(e){var t=Ra(e);t!==null&&t.tag===5&&t.type==="form"?gh(t):Tn.r(e)}var ol=typeof document>"u"?null:document;function Wg(e,t,n){var a=ol;if(a&&typeof t=="string"&&t){var u=Yt(t);u='link[rel="'+e+'"][href="'+u+'"]',typeof n=="string"&&(u+='[crossorigin="'+n+'"]'),Jg.has(u)||(Jg.add(u),e={rel:e,crossOrigin:n,href:t},a.querySelector(u)===null&&(t=a.createElement("link"),ft(t,"link",e),at(t),a.head.appendChild(t)))}}function w0(e){Tn.D(e),Wg("dns-prefetch",e,null)}function A0(e,t){Tn.C(e,t),Wg("preconnect",e,t)}function T0(e,t,n){Tn.L(e,t,n);var a=ol;if(a&&e&&t){var u='link[rel="preload"][as="'+Yt(t)+'"]';t==="image"&&n&&n.imageSrcSet?(u+='[imagesrcset="'+Yt(n.imageSrcSet)+'"]',typeof n.imageSizes=="string"&&(u+='[imagesizes="'+Yt(n.imageSizes)+'"]')):u+='[href="'+Yt(e)+'"]';var c=u;switch(t){case"style":c=fl(e);break;case"script":c=dl(e)}Kt.has(c)||(e=x({rel:"preload",href:t==="image"&&n&&n.imageSrcSet?void 0:e,as:t},n),Kt.set(c,e),a.querySelector(u)!==null||t==="style"&&a.querySelector(yr(c))||t==="script"&&a.querySelector(br(c))||(t=a.createElement("link"),ft(t,"link",e),at(t),a.head.appendChild(t)))}}function C0(e,t){Tn.m(e,t);var n=ol;if(n&&e){var a=t&&typeof t.as=="string"?t.as:"script",u='link[rel="modulepreload"][as="'+Yt(a)+'"][href="'+Yt(e)+'"]',c=u;switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":c=dl(e)}if(!Kt.has(c)&&(e=x({rel:"modulepreload",href:e},t),Kt.set(c,e),n.querySelector(u)===null)){switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(n.querySelector(br(c)))return}a=n.createElement("link"),ft(a,"link",e),at(a),n.head.appendChild(a)}}}function _0(e,t,n){Tn.S(e,t,n);var a=ol;if(a&&e){var u=Ma(a).hoistableStyles,c=fl(e);t=t||"default";var p=u.get(c);if(!p){var v={loading:0,preload:null};if(p=a.querySelector(yr(c)))v.loading=5;else{e=x({rel:"stylesheet",href:e,"data-precedence":t},n),(n=Kt.get(c))&&Lc(e,n);var w=p=a.createElement("link");at(w),ft(w,"link",e),w._p=new Promise(function(L,I){w.onload=L,w.onerror=I}),w.addEventListener("load",function(){v.loading|=1}),w.addEventListener("error",function(){v.loading|=2}),v.loading|=4,qi(p,t,a)}p={type:"stylesheet",instance:p,count:1,state:v},u.set(c,p)}}}function j0(e,t){Tn.X(e,t);var n=ol;if(n&&e){var a=Ma(n).hoistableScripts,u=dl(e),c=a.get(u);c||(c=n.querySelector(br(u)),c||(e=x({src:e,async:!0},t),(t=Kt.get(u))&&Uc(e,t),c=n.createElement("script"),at(c),ft(c,"link",e),n.head.appendChild(c)),c={type:"script",instance:c,count:1,state:null},a.set(u,c))}}function O0(e,t){Tn.M(e,t);var n=ol;if(n&&e){var a=Ma(n).hoistableScripts,u=dl(e),c=a.get(u);c||(c=n.querySelector(br(u)),c||(e=x({src:e,async:!0,type:"module"},t),(t=Kt.get(u))&&Uc(e,t),c=n.createElement("script"),at(c),ft(c,"link",e),n.head.appendChild(c)),c={type:"script",instance:c,count:1,state:null},a.set(u,c))}}function Pg(e,t,n,a){var u=(u=ae.current)?Yi(u):null;if(!u)throw Error(s(446));switch(e){case"meta":case"title":return null;case"style":return typeof n.precedence=="string"&&typeof n.href=="string"?(t=fl(n.href),n=Ma(u).hoistableStyles,a=n.get(t),a||(a={type:"style",instance:null,count:0,state:null},n.set(t,a)),a):{type:"void",instance:null,count:0,state:null};case"link":if(n.rel==="stylesheet"&&typeof n.href=="string"&&typeof n.precedence=="string"){e=fl(n.href);var c=Ma(u).hoistableStyles,p=c.get(e);if(p||(u=u.ownerDocument||u,p={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},c.set(e,p),(c=u.querySelector(yr(e)))&&!c._p&&(p.instance=c,p.state.loading=5),Kt.has(e)||(n={rel:"preload",as:"style",href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},Kt.set(e,n),c||k0(u,e,n,p.state))),t&&a===null)throw Error(s(528,""));return p}if(t&&a!==null)throw Error(s(529,""));return null;case"script":return t=n.async,n=n.src,typeof n=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=dl(n),n=Ma(u).hoistableScripts,a=n.get(t),a||(a={type:"script",instance:null,count:0,state:null},n.set(t,a)),a):{type:"void",instance:null,count:0,state:null};default:throw Error(s(444,e))}}function fl(e){return'href="'+Yt(e)+'"'}function yr(e){return'link[rel="stylesheet"]['+e+"]"}function em(e){return x({},e,{"data-precedence":e.precedence,precedence:null})}function k0(e,t,n,a){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?a.loading=1:(t=e.createElement("link"),a.preload=t,t.addEventListener("load",function(){return a.loading|=1}),t.addEventListener("error",function(){return a.loading|=2}),ft(t,"link",n),at(t),e.head.appendChild(t))}function dl(e){return'[src="'+Yt(e)+'"]'}function br(e){return"script[async]"+e}function tm(e,t,n){if(t.count++,t.instance===null)switch(t.type){case"style":var a=e.querySelector('style[data-href~="'+Yt(n.href)+'"]');if(a)return t.instance=a,at(a),a;var u=x({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return a=(e.ownerDocument||e).createElement("style"),at(a),ft(a,"style",u),qi(a,n.precedence,e),t.instance=a;case"stylesheet":u=fl(n.href);var c=e.querySelector(yr(u));if(c)return t.state.loading|=4,t.instance=c,at(c),c;a=em(n),(u=Kt.get(u))&&Lc(a,u),c=(e.ownerDocument||e).createElement("link"),at(c);var p=c;return p._p=new Promise(function(v,w){p.onload=v,p.onerror=w}),ft(c,"link",a),t.state.loading|=4,qi(c,n.precedence,e),t.instance=c;case"script":return c=dl(n.src),(u=e.querySelector(br(c)))?(t.instance=u,at(u),u):(a=n,(u=Kt.get(c))&&(a=x({},n),Uc(a,u)),e=e.ownerDocument||e,u=e.createElement("script"),at(u),ft(u,"link",a),e.head.appendChild(u),t.instance=u);case"void":return null;default:throw Error(s(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(a=t.instance,t.state.loading|=4,qi(a,n.precedence,e));return t.instance}function qi(e,t,n){for(var a=n.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),u=a.length?a[a.length-1]:null,c=u,p=0;p<a.length;p++){var v=a[p];if(v.dataset.precedence===t)c=v;else if(c!==u)break}c?c.parentNode.insertBefore(e,c.nextSibling):(t=n.nodeType===9?n.head:n,t.insertBefore(e,t.firstChild))}function Lc(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function Uc(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var Ii=null;function nm(e,t,n){if(Ii===null){var a=new Map,u=Ii=new Map;u.set(n,a)}else u=Ii,a=u.get(n),a||(a=new Map,u.set(n,a));if(a.has(e))return a;for(a.set(e,null),n=n.getElementsByTagName(e),u=0;u<n.length;u++){var c=n[u];if(!(c[Dl]||c[st]||e==="link"&&c.getAttribute("rel")==="stylesheet")&&c.namespaceURI!=="http://www.w3.org/2000/svg"){var p=c.getAttribute(t)||"";p=e+p;var v=a.get(p);v?v.push(c):a.set(p,[c])}}return a}function am(e,t,n){e=e.ownerDocument||e,e.head.insertBefore(n,t==="title"?e.querySelector("head > title"):null)}function R0(e,t,n){if(n===1||t.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;switch(t.rel){case"stylesheet":return e=t.disabled,typeof t.precedence=="string"&&e==null;default:return!0}case"script":if(t.async&&typeof t.async!="function"&&typeof t.async!="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src=="string")return!0}return!1}function lm(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function M0(e,t,n,a){if(n.type==="stylesheet"&&(typeof a.media!="string"||matchMedia(a.media).matches!==!1)&&(n.state.loading&4)===0){if(n.instance===null){var u=fl(a.href),c=t.querySelector(yr(u));if(c){t=c._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=Xi.bind(e),t.then(e,e)),n.state.loading|=4,n.instance=c,at(c);return}c=t.ownerDocument||t,a=em(a),(u=Kt.get(u))&&Lc(a,u),c=c.createElement("link"),at(c);var p=c;p._p=new Promise(function(v,w){p.onload=v,p.onerror=w}),ft(c,"link",a),n.instance=c}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(n,t),(t=n.state.preload)&&(n.state.loading&3)===0&&(e.count++,n=Xi.bind(e),t.addEventListener("load",n),t.addEventListener("error",n))}}var Bc=0;function D0(e,t){return e.stylesheets&&e.count===0&&$i(e,e.stylesheets),0<e.count||0<e.imgCount?function(n){var a=setTimeout(function(){if(e.stylesheets&&$i(e,e.stylesheets),e.unsuspend){var c=e.unsuspend;e.unsuspend=null,c()}},6e4+t);0<e.imgBytes&&Bc===0&&(Bc=62500*g0());var u=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&$i(e,e.stylesheets),e.unsuspend)){var c=e.unsuspend;e.unsuspend=null,c()}},(e.imgBytes>Bc?50:800)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(a),clearTimeout(u)}}:null}function Xi(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)$i(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var Fi=null;function $i(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Fi=new Map,t.forEach(z0,e),Fi=null,Xi.call(e))}function z0(e,t){if(!(t.state.loading&4)){var n=Fi.get(e);if(n)var a=n.get(null);else{n=new Map,Fi.set(e,n);for(var u=e.querySelectorAll("link[data-precedence],style[data-precedence]"),c=0;c<u.length;c++){var p=u[c];(p.nodeName==="LINK"||p.getAttribute("media")!=="not all")&&(n.set(p.dataset.precedence,p),a=p)}a&&n.set(null,a)}u=t.instance,p=u.getAttribute("data-precedence"),c=n.get(p)||a,c===a&&n.set(null,u),n.set(p,u),this.count++,a=Xi.bind(this),u.addEventListener("load",a),u.addEventListener("error",a),c?c.parentNode.insertBefore(u,c.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(u,e.firstChild)),t.state.loading|=4}}var vr={$$typeof:O,Provider:null,Consumer:null,_currentValue:le,_currentValue2:le,_threadCount:0};function L0(e,t,n,a,u,c,p,v,w){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=Ms(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Ms(0),this.hiddenUpdates=Ms(null),this.identifierPrefix=a,this.onUncaughtError=u,this.onCaughtError=c,this.onRecoverableError=p,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=w,this.incompleteTransitions=new Map}function rm(e,t,n,a,u,c,p,v,w,L,I,V){return e=new L0(e,t,n,p,w,L,I,V,v),t=1,c===!0&&(t|=24),c=jt(3,null,null,t),e.current=c,c.stateNode=e,t=yu(),t.refCount++,e.pooledCache=t,t.refCount++,c.memoizedState={element:a,isDehydrated:n,cache:t},Su(c),e}function im(e){return e?(e=Ia,e):Ia}function sm(e,t,n,a,u,c){u=im(u),a.context===null?a.context=u:a.pendingContext=u,a=Un(t),a.payload={element:n},c=c===void 0?null:c,c!==null&&(a.callback=c),n=Bn(e,a,t),n!==null&&(Nt(n,e,t),Jl(n,e,t))}function um(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function Hc(e,t){um(e,t),(e=e.alternate)&&um(e,t)}function cm(e){if(e.tag===13||e.tag===31){var t=ca(e,67108864);t!==null&&Nt(t,e,67108864),Hc(e,67108864)}}function om(e){if(e.tag===13||e.tag===31){var t=Dt();t=Ds(t);var n=ca(e,t);n!==null&&Nt(n,e,t),Hc(e,t)}}var Zi=!0;function U0(e,t,n,a){var u=k.T;k.T=null;var c=B.p;try{B.p=2,Gc(e,t,n,a)}finally{B.p=c,k.T=u}}function B0(e,t,n,a){var u=k.T;k.T=null;var c=B.p;try{B.p=8,Gc(e,t,n,a)}finally{B.p=c,k.T=u}}function Gc(e,t,n,a){if(Zi){var u=Yc(a);if(u===null)Tc(e,t,a,Vi,n),dm(e,a);else if(G0(u,e,t,n,a))a.stopPropagation();else if(dm(e,a),t&4&&-1<H0.indexOf(e)){for(;u!==null;){var c=Ra(u);if(c!==null)switch(c.tag){case 3:if(c=c.stateNode,c.current.memoizedState.isDehydrated){var p=la(c.pendingLanes);if(p!==0){var v=c;for(v.pendingLanes|=2,v.entangledLanes|=2;p;){var w=1<<31-Ct(p);v.entanglements[1]|=w,p&=~w}rn(c),(Oe&6)===0&&(Oi=At()+500,hr(0))}}break;case 31:case 13:v=ca(c,2),v!==null&&Nt(v,c,2),Ri(),Hc(c,2)}if(c=Yc(a),c===null&&Tc(e,t,a,Vi,n),c===u)break;u=c}u!==null&&a.stopPropagation()}else Tc(e,t,a,null,n)}}function Yc(e){return e=Is(e),qc(e)}var Vi=null;function qc(e){if(Vi=null,e=ka(e),e!==null){var t=d(e);if(t===null)e=null;else{var n=t.tag;if(n===13){if(e=h(t),e!==null)return e;e=null}else if(n===31){if(e=y(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return Vi=e,null}function fm(e){switch(e){case"beforetoggle":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"toggle":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 2;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"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(wy()){case vf:return 2;case xf:return 8;case Ur:case Ay:return 32;case Sf:return 268435456;default:return 32}default:return 32}}var Ic=!1,Kn=null,Qn=null,Jn=null,xr=new Map,Sr=new Map,Wn=[],H0="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".split(" ");function dm(e,t){switch(e){case"focusin":case"focusout":Kn=null;break;case"dragenter":case"dragleave":Qn=null;break;case"mouseover":case"mouseout":Jn=null;break;case"pointerover":case"pointerout":xr.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Sr.delete(t.pointerId)}}function Er(e,t,n,a,u,c){return e===null||e.nativeEvent!==c?(e={blockedOn:t,domEventName:n,eventSystemFlags:a,nativeEvent:c,targetContainers:[u]},t!==null&&(t=Ra(t),t!==null&&cm(t)),e):(e.eventSystemFlags|=a,t=e.targetContainers,u!==null&&t.indexOf(u)===-1&&t.push(u),e)}function G0(e,t,n,a,u){switch(t){case"focusin":return Kn=Er(Kn,e,t,n,a,u),!0;case"dragenter":return Qn=Er(Qn,e,t,n,a,u),!0;case"mouseover":return Jn=Er(Jn,e,t,n,a,u),!0;case"pointerover":var c=u.pointerId;return xr.set(c,Er(xr.get(c)||null,e,t,n,a,u)),!0;case"gotpointercapture":return c=u.pointerId,Sr.set(c,Er(Sr.get(c)||null,e,t,n,a,u)),!0}return!1}function hm(e){var t=ka(e.target);if(t!==null){var n=d(t);if(n!==null){if(t=n.tag,t===13){if(t=h(n),t!==null){e.blockedOn=t,Cf(e.priority,function(){om(n)});return}}else if(t===31){if(t=y(n),t!==null){e.blockedOn=t,Cf(e.priority,function(){om(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Ki(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=Yc(e.nativeEvent);if(n===null){n=e.nativeEvent;var a=new n.constructor(n.type,n);qs=a,n.target.dispatchEvent(a),qs=null}else return t=Ra(n),t!==null&&cm(t),e.blockedOn=n,!1;t.shift()}return!0}function gm(e,t,n){Ki(e)&&n.delete(t)}function Y0(){Ic=!1,Kn!==null&&Ki(Kn)&&(Kn=null),Qn!==null&&Ki(Qn)&&(Qn=null),Jn!==null&&Ki(Jn)&&(Jn=null),xr.forEach(gm),Sr.forEach(gm)}function Qi(e,t){e.blockedOn===t&&(e.blockedOn=null,Ic||(Ic=!0,l.unstable_scheduleCallback(l.unstable_NormalPriority,Y0)))}var Ji=null;function mm(e){Ji!==e&&(Ji=e,l.unstable_scheduleCallback(l.unstable_NormalPriority,function(){Ji===e&&(Ji=null);for(var t=0;t<e.length;t+=3){var n=e[t],a=e[t+1],u=e[t+2];if(typeof a!="function"){if(qc(a||n)===null)continue;break}var c=Ra(n);c!==null&&(e.splice(t,3),t-=3,Yu(c,{pending:!0,data:u,method:n.method,action:a},a,u))}}))}function hl(e){function t(w){return Qi(w,e)}Kn!==null&&Qi(Kn,e),Qn!==null&&Qi(Qn,e),Jn!==null&&Qi(Jn,e),xr.forEach(t),Sr.forEach(t);for(var n=0;n<Wn.length;n++){var a=Wn[n];a.blockedOn===e&&(a.blockedOn=null)}for(;0<Wn.length&&(n=Wn[0],n.blockedOn===null);)hm(n),n.blockedOn===null&&Wn.shift();if(n=(e.ownerDocument||e).$$reactFormReplay,n!=null)for(a=0;a<n.length;a+=3){var u=n[a],c=n[a+1],p=u[yt]||null;if(typeof c=="function")p||mm(n);else if(p){var v=null;if(c&&c.hasAttribute("formAction")){if(u=c,p=c[yt]||null)v=p.formAction;else if(qc(u)!==null)continue}else v=p.action;typeof v=="function"?n[a+1]=v:(n.splice(a,3),a-=3),mm(n)}}}function pm(){function e(c){c.canIntercept&&c.info==="react-transition"&&c.intercept({handler:function(){return new Promise(function(p){return u=p})},focusReset:"manual",scroll:"manual"})}function t(){u!==null&&(u(),u=null),a||setTimeout(n,20)}function n(){if(!a&&!navigation.transition){var c=navigation.currentEntry;c&&c.url!=null&&navigation.navigate(c.url,{state:c.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var a=!1,u=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(n,100),function(){a=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),u!==null&&(u(),u=null)}}}function Xc(e){this._internalRoot=e}Wi.prototype.render=Xc.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(s(409));var n=t.current,a=Dt();sm(n,a,e,t,null,null)},Wi.prototype.unmount=Xc.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;sm(e.current,2,null,e,null,null),Ri(),t[Oa]=null}};function Wi(e){this._internalRoot=e}Wi.prototype.unstable_scheduleHydration=function(e){if(e){var t=Tf();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Wn.length&&t!==0&&t<Wn[n].priority;n++);Wn.splice(n,0,e),n===0&&hm(e)}};var ym=i.version;if(ym!=="19.2.4")throw Error(s(527,ym,"19.2.4"));B.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(s(188)):(e=Object.keys(e).join(","),Error(s(268,e)));return e=m(t),e=e!==null?b(e):null,e=e===null?null:e.stateNode,e};var q0={bundleType:0,version:"19.2.4",rendererPackageName:"react-dom",currentDispatcherRef:k,reconcilerVersion:"19.2.4"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Pi=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Pi.isDisabled&&Pi.supportsFiber)try{kl=Pi.inject(q0),Tt=Pi}catch{}}return wr.createRoot=function(e,t){if(!o(e))throw Error(s(299));var n=!1,a="",u=wh,c=Ah,p=Th;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(a=t.identifierPrefix),t.onUncaughtError!==void 0&&(u=t.onUncaughtError),t.onCaughtError!==void 0&&(c=t.onCaughtError),t.onRecoverableError!==void 0&&(p=t.onRecoverableError)),t=rm(e,1,!1,null,null,n,a,null,u,c,p,pm),e[Oa]=t.current,Ac(e),new Xc(t)},wr.hydrateRoot=function(e,t,n){if(!o(e))throw Error(s(299));var a=!1,u="",c=wh,p=Ah,v=Th,w=null;return n!=null&&(n.unstable_strictMode===!0&&(a=!0),n.identifierPrefix!==void 0&&(u=n.identifierPrefix),n.onUncaughtError!==void 0&&(c=n.onUncaughtError),n.onCaughtError!==void 0&&(p=n.onCaughtError),n.onRecoverableError!==void 0&&(v=n.onRecoverableError),n.formState!==void 0&&(w=n.formState)),t=rm(e,1,!0,t,n??null,a,u,w,c,p,v,pm),t.context=im(null),n=t.current,a=Dt(),a=Ds(a),u=Un(a),u.callback=null,Bn(n,u,a),n=a,t.current.lanes=n,Ml(t,n),rn(t),e[Oa]=t.current,Ac(e),new Wi(t)},wr.version="19.2.4",wr}var Cm;function P0(){if(Cm)return $c.exports;Cm=1;function l(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(l)}catch(i){console.error(i)}}return l(),$c.exports=W0(),$c.exports}var ev=P0(),z=xo();const es=X0(z),_m=l=>{let i;const r=new Set,s=(m,b)=>{const x=typeof m=="function"?m(i):m;if(!Object.is(x,i)){const S=i;i=b??(typeof x!="object"||x===null)?x:Object.assign({},i,x),r.forEach(E=>E(i,S))}},o=()=>i,y={setState:s,getState:o,getInitialState:()=>g,subscribe:m=>(r.add(m),()=>r.delete(m))},g=i=l(s,o,y);return y},tv=(l=>l?_m(l):_m),nv=l=>l;function av(l,i=nv){const r=es.useSyncExternalStore(l.subscribe,es.useCallback(()=>i(l.getState()),[l,i]),es.useCallback(()=>i(l.getInitialState()),[l,i]));return es.useDebugValue(r),r}const jm=l=>{const i=tv(l),r=s=>av(i,s);return Object.assign(r,i),r},lv=(l=>l?jm(l):jm);function Lt(l){return l.stage?`${l.stage}:${l.path}`:l.path}function gl(l){return l.startsWith("staged:")?l.slice(7):l.startsWith("unstaged:")?l.slice(9):l}const Jc=["unreviewed","reviewed","approved","needs_changes"],Xe=lv((l,i)=>({reviewId:null,diffSet:null,rawDiff:null,briefing:null,metadata:null,selectedFile:null,connectionStatus:"connecting",viewMode:"unified",fileStatuses:{},comments:[],activeCommentKey:null,focusedAnnotationId:null,draftComment:null,theme:localStorage.getItem("diffprism-theme")??"dark",isWatchMode:!1,watchSubmitted:!1,hasUnreviewedChanges:!0,focusedHunkIndex:null,hunkCount:0,compareRef:null,annotations:[],showHotkeyGuide:!1,showWorkflowTips:!1,isServerMode:!1,sessions:[],activeSessionId:null,initReview:r=>{const s=r.diffSet.files.length>0?Lt(r.diffSet.files[0]):null,o={};for(const d of r.diffSet.files)o[Lt(d)]="unreviewed";l({reviewId:r.reviewId,diffSet:r.diffSet,rawDiff:r.rawDiff,briefing:r.briefing,metadata:r.metadata,selectedFile:s,fileStatuses:o,comments:[],annotations:[],activeCommentKey:null,draftComment:null,focusedHunkIndex:null,hunkCount:0,compareRef:null,isWatchMode:r.watchMode??!1,watchSubmitted:!1,hasUnreviewedChanges:!0,activeSessionId:r.reviewId})},selectFile:r=>{l({selectedFile:r,focusedHunkIndex:null,hunkCount:0})},setConnectionStatus:r=>{l({connectionStatus:r})},setViewMode:r=>{l({viewMode:r})},setFileStatus:(r,s)=>{l(o=>({fileStatuses:{...o.fileStatuses,[r]:s}}))},cycleFileStatus:r=>{const s=i().fileStatuses[r]??"unreviewed",d=(Jc.indexOf(s)+1)%Jc.length;l(h=>({fileStatuses:{...h.fileStatuses,[r]:Jc[d]}}))},addComment:r=>{l(s=>({comments:[...s.comments,r]}))},updateComment:(r,s)=>{l(o=>({comments:o.comments.map((d,h)=>h===r?s:d)}))},deleteComment:r=>{l(s=>({comments:s.comments.filter((o,d)=>d!==r)}))},focusAnnotation:r=>{l({focusedAnnotationId:r})},setActiveCommentKey:r=>{l({activeCommentKey:r}),r===null&&l({draftComment:null})},setDraftComment:r=>{l({draftComment:r})},saveDraftComment:()=>{const{draftComment:r}=i();r&&r.body.trim()&&l(s=>({comments:[...s.comments,{file:r.file,line:r.line,side:r.side,body:r.body.trim(),type:r.type}],draftComment:null,activeCommentKey:null}))},toggleHotkeyGuide:()=>{l(r=>({showHotkeyGuide:!r.showHotkeyGuide}))},toggleWorkflowTips:()=>{l(r=>({showWorkflowTips:!r.showWorkflowTips}))},toggleTheme:()=>{const r=i().theme==="dark"?"light":"dark";localStorage.setItem("diffprism-theme",r),l({theme:r})},updateDiff:r=>{const s=i(),{changedFiles:o}=r,d={};for(const y of r.diffSet.files){const g=Lt(y);o.includes(g)?d[g]="unreviewed":d[g]=s.fileStatuses[g]??"unreviewed"}let{selectedFile:h}=s;h&&!r.diffSet.files.some(y=>Lt(y)===h)&&(h=r.diffSet.files.length>0?Lt(r.diffSet.files[0]):null),l({diffSet:r.diffSet,rawDiff:r.rawDiff,briefing:r.briefing,fileStatuses:d,selectedFile:h,focusedHunkIndex:null,hunkCount:0,hasUnreviewedChanges:!0})},updateContext:r=>{const s=i();s.metadata&&l({metadata:{...s.metadata,...r.reasoning!==void 0&&{reasoning:r.reasoning},...r.title!==void 0&&{title:r.title},...r.description!==void 0&&{description:r.description}}})},setWatchSubmitted:r=>{l({watchSubmitted:r,...r&&{hasUnreviewedChanges:!1}})},setServerMode:r=>{l({isServerMode:r})},setSessions:r=>{l({sessions:r})},addSession:r=>{l(s=>s.sessions.some(o=>o.id===r.id)?s:{sessions:[...s.sessions,r]})},updateSession:r=>{l(s=>{const o=s.sessions.findIndex(h=>h.id===r.id);if(o===-1)return s;const d=[...s.sessions];return d[o]=r,{sessions:d}})},removeSession:r=>{l(s=>{const o=s.sessions.filter(d=>d.id!==r);return s.activeSessionId===r?{sessions:o,reviewId:null,diffSet:null,rawDiff:null,briefing:null,metadata:null,selectedFile:null,fileStatuses:{},comments:[],activeCommentKey:null,draftComment:null,focusedHunkIndex:null,hunkCount:0,compareRef:null,activeSessionId:null,watchSubmitted:!1,hasUnreviewedChanges:!0}:{sessions:o}})},navigateHunk:r=>{const{focusedHunkIndex:s,hunkCount:o}=i();o!==0&&l(s===null?{focusedHunkIndex:r==="next"?0:o-1}:r==="next"?{focusedHunkIndex:Math.min(s+1,o-1)}:{focusedHunkIndex:Math.max(s-1,0)})},setHunkCount:r=>{l({hunkCount:r,focusedHunkIndex:null})},setFocusedHunkIndex:r=>{l({focusedHunkIndex:r})},setCompareRef:r=>{l({compareRef:r})},addAnnotation:r=>{l(s=>({annotations:[...s.annotations,r]}))},updateAnnotation:r=>{l(s=>({annotations:s.annotations.map(o=>o.id===r.id?r:o)}))},applyAnnotationDismissed:r=>{l(s=>({annotations:s.annotations.map(o=>o.id===r?{...o,dismissed:!0}:o)}))},dismissAnnotation:r=>{i().applyAnnotationDismissed(r);const o=new URLSearchParams(window.location.search).get("httpPort"),d=i().reviewId;o&&d&&fetch(`http://localhost:${o}/api/reviews/${d}/annotations/${r}/dismiss`,{method:"POST"}).catch(()=>{})},selectSession:r=>{l({activeSessionId:r})},clearReview:()=>{l({reviewId:null,diffSet:null,rawDiff:null,briefing:null,metadata:null,selectedFile:null,fileStatuses:{},comments:[],annotations:[],activeCommentKey:null,draftComment:null,focusedHunkIndex:null,hunkCount:0,compareRef:null,activeSessionId:null,watchSubmitted:!1,hasUnreviewedChanges:!0})}})),rv=1e3;function iv(l){const i=z.useRef(null),r=z.useRef(l==null?void 0:l.onSessionAdded);r.current=l==null?void 0:l.onSessionAdded;const s=z.useRef(l==null?void 0:l.onSessionUpdated);s.current=l==null?void 0:l.onSessionUpdated;const o=z.useRef(l==null?void 0:l.onDiffUpdated);o.current=l==null?void 0:l.onDiffUpdated;const d=z.useRef(l==null?void 0:l.onAnnotationAdded);d.current=l==null?void 0:l.onAnnotationAdded;const{connectionStatus:h,setConnectionStatus:y,initReview:g,updateDiff:m,updateContext:b,setServerMode:x,setSessions:S,addSession:E,updateSession:A,removeSession:T,addAnnotation:_,applyAnnotationDismissed:U,updateAnnotation:q}=Xe();z.useEffect(()=>{const X=new URLSearchParams(window.location.search),R=X.get("wsPort"),M=X.get("serverMode")==="true",K=X.get("sessionId");if(!R){console.warn("No wsPort query parameter found"),y("disconnected");return}M&&x(!0);const ie=K?`ws://localhost:${R}?sessionId=${K}`:`ws://localhost:${R}`,re=ue=>{var ce,N,Y,ee;try{const W=JSON.parse(ue.data);if(W.type==="review:init")g(W.payload);else if(W.type==="diff:update"){m(W.payload);const Q=W.payload;(ce=o.current)==null||ce.call(o,Q.diffSet.files.length)}else W.type==="diff:error"?console.error("Diff error:",W.payload.error):W.type==="context:update"?b(W.payload):W.type==="session:list"?S(W.payload):W.type==="session:added"?(E(W.payload),window.focus(),(N=r.current)==null||N.call(r,W.payload)):W.type==="session:updated"?(A(W.payload),(Y=s.current)==null||Y.call(s,W.payload)):W.type==="session:removed"?T(W.payload.sessionId):W.type==="annotation:added"?(_(W.payload),(ee=d.current)==null||ee.call(d,W.payload)):W.type==="annotation:dismissed"?U(W.payload.annotationId):W.type==="annotation:updated"&&q(W.payload)}catch(W){console.error("Failed to parse WebSocket message:",W)}},de=X.get("httpPort");let ne=!1,P=null,J=null,k=!1;const B=async()=>{if(!de)return null;try{const ue=await fetch(`http://localhost:${de}/api/status`);return ue.ok?(await ue.json()).pid:(console.warn(`DiffPrism server status returned ${ue.status}`),null)}catch(ue){return console.warn("Could not read DiffPrism server status:",ue),null}},le=()=>{const ue=new WebSocket(ie);i.current=ue,ue.addEventListener("open",async()=>{y("connected");const ce=k;k=!0;const N=await B();if(ce&&J!==null&&N!==null&&N!==J){window.location.reload();return}if(N!==null&&(J=N),ce){const Y=Xe.getState().activeSessionId;Y&&ue.send(JSON.stringify({type:"session:select",payload:{sessionId:Y}}))}}),ue.addEventListener("message",re),ue.addEventListener("close",()=>{y("disconnected"),ne||(P=setTimeout(le,rv))}),ue.addEventListener("error",()=>{y("disconnected")})};return le(),()=>{var ue;ne=!0,P&&clearTimeout(P),(ue=i.current)==null||ue.close(),i.current=null}},[y,g,m,b,x,S,E,A,T,_,U,q]);const O=z.useCallback(X=>{const R=i.current;if(!R||R.readyState!==WebSocket.OPEN){console.error("WebSocket is not connected");return}const M={type:"review:submit",payload:X};R.send(JSON.stringify(M))},[]),F=z.useCallback(X=>{const R=i.current;if(!R||R.readyState!==WebSocket.OPEN){console.error("WebSocket is not connected");return}const M={type:"session:select",payload:{sessionId:X}};R.send(JSON.stringify(M))},[]),Z=z.useCallback(X=>{const R=i.current;if(!R||R.readyState!==WebSocket.OPEN){console.error("WebSocket is not connected");return}const M={type:"session:close",payload:{sessionId:X}};R.send(JSON.stringify(M))},[]);return{sendResult:O,selectSession:F,closeSession:Z,connectionStatus:h}}const Np="diffprism-notifications";function sv(){try{return localStorage.getItem(Np)!=="disabled"}catch{return!0}}function Om(l){try{localStorage.setItem(Np,l?"enabled":"disabled")}catch{}}function uv(l){const i=z.useRef(l==null?void 0:l.onSessionSelect);z.useEffect(()=>{i.current=l==null?void 0:l.onSessionSelect},[l==null?void 0:l.onSessionSelect]);const r=typeof globalThis.Notification<"u",[s,o]=z.useState(()=>r?Notification.permission:"denied"),[d,h]=z.useState(sv),y=z.useCallback(async()=>{if(!r)return"denied";const T=await Notification.requestPermission();return o(T),T},[r]);z.useEffect(()=>{if(!r||!d||Notification.permission!=="default")return;const A=()=>{document.removeEventListener("click",A,!0),y()};return document.addEventListener("click",A,!0),()=>document.removeEventListener("click",A,!0)},[r,d,y]);const g=z.useCallback(async()=>{if(!r||s==="denied")return;if(s==="default"){await y()==="granted"&&(h(!0),Om(!0));return}const A=!d;h(A),Om(A)},[r,s,d,y]),m=z.useCallback(async(A,T,_,U)=>{if(!r||document.hasFocus()||!d)return;let q=s;if(q==="default"&&(q=await y()),q!=="granted")return;const O=new Notification(A,{body:T,icon:"/favicon.svg",tag:_});O.onclick=()=>{window.focus(),U==null||U(),O.close()}},[r,d,s,y]),b=z.useCallback(async A=>{const T=A.title||"New Review Ready",_=[];A.branch&&_.push(A.branch),_.push(`${A.fileCount} file${A.fileCount!==1?"s":""}, +${A.additions} -${A.deletions}`),await m(T,_.join(" · "),A.id,()=>{var U;(U=i.current)==null||U.call(i,A.id)})},[m]),x=z.useCallback(async A=>{A.status==="submitted"&&await m("Review Submitted",A.title||`${A.fileCount} files reviewed`,`submitted-${A.id}`,()=>{var T;(T=i.current)==null||T.call(i,A.id)})},[m]),S=z.useCallback(async A=>{await m("Diff Updated",`${A} file${A!==1?"s":""} changed`,"diff-update")},[m]),E=z.useCallback(async A=>{await m(`Annotation from ${A.source.agent}`,`${A.file}:${A.line} — ${A.body.slice(0,100)}`,`annotation-${A.id}`)},[m]);return{permission:s,enabled:d,toggle:g,notifyNewSession:b,notifySessionUpdated:x,notifyDiffUpdated:S,notifyAnnotationAdded:E}}function cv(){const l=Xe(o=>o.selectedFile),i=Xe(o=>o.activeSessionId),r=Xe(o=>o.reviewId),s=z.useRef(null);z.useEffect(()=>{const o=i??r;if(!o)return;const d=new URLSearchParams(window.location.search).get("httpPort");if(!d)return;const h=`${o}:${l}`;h!==s.current&&(s.current=h,fetch(`http://localhost:${d}/api/reviews/${o}/focus`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({file:l})}).catch(()=>{}))},[l,i,r])}/**
|
|
50
|
+
* @license lucide-react v0.469.0 - ISC
|
|
51
|
+
*
|
|
52
|
+
* This source code is licensed under the ISC license.
|
|
53
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
54
|
+
*/const ov=l=>l.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),wp=(...l)=>l.filter((i,r,s)=>!!i&&i.trim()!==""&&s.indexOf(i)===r).join(" ").trim();/**
|
|
55
|
+
* @license lucide-react v0.469.0 - ISC
|
|
56
|
+
*
|
|
57
|
+
* This source code is licensed under the ISC license.
|
|
58
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
59
|
+
*/var fv={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
|
|
60
|
+
* @license lucide-react v0.469.0 - ISC
|
|
61
|
+
*
|
|
62
|
+
* This source code is licensed under the ISC license.
|
|
63
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
64
|
+
*/const dv=z.forwardRef(({color:l="currentColor",size:i=24,strokeWidth:r=2,absoluteStrokeWidth:s,className:o="",children:d,iconNode:h,...y},g)=>z.createElement("svg",{ref:g,...fv,width:i,height:i,stroke:l,strokeWidth:s?Number(r)*24/Number(i):r,className:wp("lucide",o),...y},[...h.map(([m,b])=>z.createElement(m,b)),...Array.isArray(d)?d:[d]]));/**
|
|
65
|
+
* @license lucide-react v0.469.0 - ISC
|
|
66
|
+
*
|
|
67
|
+
* This source code is licensed under the ISC license.
|
|
68
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
69
|
+
*/const pe=(l,i)=>{const r=z.forwardRef(({className:s,...o},d)=>z.createElement(dv,{ref:d,iconNode:i,className:wp(`lucide-${ov(l)}`,s),...o}));return r.displayName=`${l}`,r};/**
|
|
70
|
+
* @license lucide-react v0.469.0 - ISC
|
|
71
|
+
*
|
|
72
|
+
* This source code is licensed under the ISC license.
|
|
73
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
74
|
+
*/const hv=pe("ArrowLeft",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]]);/**
|
|
75
|
+
* @license lucide-react v0.469.0 - ISC
|
|
76
|
+
*
|
|
77
|
+
* This source code is licensed under the ISC license.
|
|
78
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
79
|
+
*/const gv=pe("BellOff",[["path",{d:"M10.268 21a2 2 0 0 0 3.464 0",key:"vwvbt9"}],["path",{d:"M17 17H4a1 1 0 0 1-.74-1.673C4.59 13.956 6 12.499 6 8a6 6 0 0 1 .258-1.742",key:"178tsu"}],["path",{d:"m2 2 20 20",key:"1ooewy"}],["path",{d:"M8.668 3.01A6 6 0 0 1 18 8c0 2.687.77 4.653 1.707 6.05",key:"1hqiys"}]]);/**
|
|
80
|
+
* @license lucide-react v0.469.0 - ISC
|
|
81
|
+
*
|
|
82
|
+
* This source code is licensed under the ISC license.
|
|
83
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
84
|
+
*/const mv=pe("Bell",[["path",{d:"M10.268 21a2 2 0 0 0 3.464 0",key:"vwvbt9"}],["path",{d:"M3.262 15.326A1 1 0 0 0 4 17h16a1 1 0 0 0 .74-1.673C19.41 13.956 18 12.499 18 8A6 6 0 0 0 6 8c0 4.499-1.411 5.956-2.738 7.326",key:"11g9vi"}]]);/**
|
|
85
|
+
* @license lucide-react v0.469.0 - ISC
|
|
86
|
+
*
|
|
87
|
+
* This source code is licensed under the ISC license.
|
|
88
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
89
|
+
*/const So=pe("Bot",[["path",{d:"M12 8V4H8",key:"hb8ula"}],["rect",{width:"16",height:"12",x:"4",y:"8",rx:"2",key:"enze0r"}],["path",{d:"M2 14h2",key:"vft8re"}],["path",{d:"M20 14h2",key:"4cs60a"}],["path",{d:"M15 13v2",key:"1xurst"}],["path",{d:"M9 13v2",key:"rq6x2g"}]]);/**
|
|
90
|
+
* @license lucide-react v0.469.0 - ISC
|
|
91
|
+
*
|
|
92
|
+
* This source code is licensed under the ISC license.
|
|
93
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
94
|
+
*/const pv=pe("Brain",[["path",{d:"M12 5a3 3 0 1 0-5.997.125 4 4 0 0 0-2.526 5.77 4 4 0 0 0 .556 6.588A4 4 0 1 0 12 18Z",key:"l5xja"}],["path",{d:"M12 5a3 3 0 1 1 5.997.125 4 4 0 0 1 2.526 5.77 4 4 0 0 1-.556 6.588A4 4 0 1 1 12 18Z",key:"ep3f8r"}],["path",{d:"M15 13a4.5 4.5 0 0 1-3-4 4.5 4.5 0 0 1-3 4",key:"1p4c4q"}],["path",{d:"M17.599 6.5a3 3 0 0 0 .399-1.375",key:"tmeiqw"}],["path",{d:"M6.003 5.125A3 3 0 0 0 6.401 6.5",key:"105sqy"}],["path",{d:"M3.477 10.896a4 4 0 0 1 .585-.396",key:"ql3yin"}],["path",{d:"M19.938 10.5a4 4 0 0 1 .585.396",key:"1qfode"}],["path",{d:"M6 18a4 4 0 0 1-1.967-.516",key:"2e4loj"}],["path",{d:"M19.967 17.484A4 4 0 0 1 18 18",key:"159ez6"}]]);/**
|
|
95
|
+
* @license lucide-react v0.469.0 - ISC
|
|
96
|
+
*
|
|
97
|
+
* This source code is licensed under the ISC license.
|
|
98
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
99
|
+
*/const El=pe("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);/**
|
|
100
|
+
* @license lucide-react v0.469.0 - ISC
|
|
101
|
+
*
|
|
102
|
+
* This source code is licensed under the ISC license.
|
|
103
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
104
|
+
*/const ms=pe("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);/**
|
|
105
|
+
* @license lucide-react v0.469.0 - ISC
|
|
106
|
+
*
|
|
107
|
+
* This source code is licensed under the ISC license.
|
|
108
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
109
|
+
*/const yv=pe("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);/**
|
|
110
|
+
* @license lucide-react v0.469.0 - ISC
|
|
111
|
+
*
|
|
112
|
+
* This source code is licensed under the ISC license.
|
|
113
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
114
|
+
*/const Eo=pe("ChevronUp",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]]);/**
|
|
115
|
+
* @license lucide-react v0.469.0 - ISC
|
|
116
|
+
*
|
|
117
|
+
* This source code is licensed under the ISC license.
|
|
118
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
119
|
+
*/const Aa=pe("CircleAlert",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]]);/**
|
|
120
|
+
* @license lucide-react v0.469.0 - ISC
|
|
121
|
+
*
|
|
122
|
+
* This source code is licensed under the ISC license.
|
|
123
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
124
|
+
*/const bv=pe("CircleCheckBig",[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]]);/**
|
|
125
|
+
* @license lucide-react v0.469.0 - ISC
|
|
126
|
+
*
|
|
127
|
+
* This source code is licensed under the ISC license.
|
|
128
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
129
|
+
*/const No=pe("CircleHelp",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3",key:"1u773s"}],["path",{d:"M12 17h.01",key:"p32p05"}]]);/**
|
|
130
|
+
* @license lucide-react v0.469.0 - ISC
|
|
131
|
+
*
|
|
132
|
+
* This source code is licensed under the ISC license.
|
|
133
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
134
|
+
*/const Ap=pe("CircleX",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]]);/**
|
|
135
|
+
* @license lucide-react v0.469.0 - ISC
|
|
136
|
+
*
|
|
137
|
+
* This source code is licensed under the ISC license.
|
|
138
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
139
|
+
*/const vv=pe("Clock",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16 14",key:"68esgv"}]]);/**
|
|
140
|
+
* @license lucide-react v0.469.0 - ISC
|
|
141
|
+
*
|
|
142
|
+
* This source code is licensed under the ISC license.
|
|
143
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
144
|
+
*/const xv=pe("Columns2",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M12 3v18",key:"108xh3"}]]);/**
|
|
145
|
+
* @license lucide-react v0.469.0 - ISC
|
|
146
|
+
*
|
|
147
|
+
* This source code is licensed under the ISC license.
|
|
148
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
149
|
+
*/const Sv=pe("Copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]]);/**
|
|
150
|
+
* @license lucide-react v0.469.0 - ISC
|
|
151
|
+
*
|
|
152
|
+
* This source code is licensed under the ISC license.
|
|
153
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
154
|
+
*/const Ev=pe("EllipsisVertical",[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"12",cy:"5",r:"1",key:"gxeob9"}],["circle",{cx:"12",cy:"19",r:"1",key:"lyex9k"}]]);/**
|
|
155
|
+
* @license lucide-react v0.469.0 - ISC
|
|
156
|
+
*
|
|
157
|
+
* This source code is licensed under the ISC license.
|
|
158
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
159
|
+
*/const wo=pe("ExternalLink",[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]]);/**
|
|
160
|
+
* @license lucide-react v0.469.0 - ISC
|
|
161
|
+
*
|
|
162
|
+
* This source code is licensed under the ISC license.
|
|
163
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
164
|
+
*/const Nv=pe("EyeOff",[["path",{d:"M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49",key:"ct8e1f"}],["path",{d:"M14.084 14.158a3 3 0 0 1-4.242-4.242",key:"151rxh"}],["path",{d:"M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143",key:"13bj9a"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]]);/**
|
|
165
|
+
* @license lucide-react v0.469.0 - ISC
|
|
166
|
+
*
|
|
167
|
+
* This source code is licensed under the ISC license.
|
|
168
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
169
|
+
*/const Ao=pe("Eye",[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);/**
|
|
170
|
+
* @license lucide-react v0.469.0 - ISC
|
|
171
|
+
*
|
|
172
|
+
* This source code is licensed under the ISC license.
|
|
173
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
174
|
+
*/const Tl=pe("FileCode",[["path",{d:"M10 12.5 8 15l2 2.5",key:"1tg20x"}],["path",{d:"m14 12.5 2 2.5-2 2.5",key:"yinavb"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7z",key:"1mlx9k"}]]);/**
|
|
175
|
+
* @license lucide-react v0.469.0 - ISC
|
|
176
|
+
*
|
|
177
|
+
* This source code is licensed under the ISC license.
|
|
178
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
179
|
+
*/const wv=pe("FileMinus",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M9 15h6",key:"cctwl0"}]]);/**
|
|
180
|
+
* @license lucide-react v0.469.0 - ISC
|
|
181
|
+
*
|
|
182
|
+
* This source code is licensed under the ISC license.
|
|
183
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
184
|
+
*/const Av=pe("FilePenLine",[["path",{d:"m18 5-2.414-2.414A2 2 0 0 0 14.172 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2",key:"142zxg"}],["path",{d:"M21.378 12.626a1 1 0 0 0-3.004-3.004l-4.01 4.012a2 2 0 0 0-.506.854l-.837 2.87a.5.5 0 0 0 .62.62l2.87-.837a2 2 0 0 0 .854-.506z",key:"2t3380"}],["path",{d:"M8 18h1",key:"13wk12"}]]);/**
|
|
185
|
+
* @license lucide-react v0.469.0 - ISC
|
|
186
|
+
*
|
|
187
|
+
* This source code is licensed under the ISC license.
|
|
188
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
189
|
+
*/const Tv=pe("FilePlus",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M9 15h6",key:"cctwl0"}],["path",{d:"M12 18v-6",key:"17g6i2"}]]);/**
|
|
190
|
+
* @license lucide-react v0.469.0 - ISC
|
|
191
|
+
*
|
|
192
|
+
* This source code is licensed under the ISC license.
|
|
193
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
194
|
+
*/const km=pe("FlaskConical",[["path",{d:"M14 2v6a2 2 0 0 0 .245.96l5.51 10.08A2 2 0 0 1 18 22H6a2 2 0 0 1-1.755-2.96l5.51-10.08A2 2 0 0 0 10 8V2",key:"18mbvz"}],["path",{d:"M6.453 15h11.094",key:"3shlmq"}],["path",{d:"M8.5 2h7",key:"csnxdl"}]]);/**
|
|
195
|
+
* @license lucide-react v0.469.0 - ISC
|
|
196
|
+
*
|
|
197
|
+
* This source code is licensed under the ISC license.
|
|
198
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
199
|
+
*/const Na=pe("FolderOpen",[["path",{d:"m6 14 1.5-2.9A2 2 0 0 1 9.24 10H20a2 2 0 0 1 1.94 2.5l-1.54 6a2 2 0 0 1-1.95 1.5H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H18a2 2 0 0 1 2 2v2",key:"usdka0"}]]);/**
|
|
200
|
+
* @license lucide-react v0.469.0 - ISC
|
|
201
|
+
*
|
|
202
|
+
* This source code is licensed under the ISC license.
|
|
203
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
204
|
+
*/const Cv=pe("Folder",[["path",{d:"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z",key:"1kt360"}]]);/**
|
|
205
|
+
* @license lucide-react v0.469.0 - ISC
|
|
206
|
+
*
|
|
207
|
+
* This source code is licensed under the ISC license.
|
|
208
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
209
|
+
*/const Rm=pe("Gauge",[["path",{d:"m12 14 4-4",key:"9kzdfg"}],["path",{d:"M3.34 19a10 10 0 1 1 17.32 0",key:"19p75a"}]]);/**
|
|
210
|
+
* @license lucide-react v0.469.0 - ISC
|
|
211
|
+
*
|
|
212
|
+
* This source code is licensed under the ISC license.
|
|
213
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
214
|
+
*/const Cn=pe("GitBranch",[["line",{x1:"6",x2:"6",y1:"3",y2:"15",key:"17qcm7"}],["circle",{cx:"18",cy:"6",r:"3",key:"1h7g24"}],["circle",{cx:"6",cy:"18",r:"3",key:"fqmcym"}],["path",{d:"M18 9a9 9 0 0 1-9 9",key:"n2h4wq"}]]);/**
|
|
215
|
+
* @license lucide-react v0.469.0 - ISC
|
|
216
|
+
*
|
|
217
|
+
* This source code is licensed under the ISC license.
|
|
218
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
219
|
+
*/const Mm=pe("GitCommitHorizontal",[["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}],["line",{x1:"3",x2:"9",y1:"12",y2:"12",key:"1dyftd"}],["line",{x1:"15",x2:"21",y1:"12",y2:"12",key:"oup4p8"}]]);/**
|
|
220
|
+
* @license lucide-react v0.469.0 - ISC
|
|
221
|
+
*
|
|
222
|
+
* This source code is licensed under the ISC license.
|
|
223
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
224
|
+
*/const na=pe("GitPullRequest",[["circle",{cx:"18",cy:"18",r:"3",key:"1xkwt0"}],["circle",{cx:"6",cy:"6",r:"3",key:"1lh9wr"}],["path",{d:"M13 6h3a2 2 0 0 1 2 2v7",key:"1yeb86"}],["line",{x1:"6",x2:"6",y1:"9",y2:"21",key:"rroup"}]]);/**
|
|
225
|
+
* @license lucide-react v0.469.0 - ISC
|
|
226
|
+
*
|
|
227
|
+
* This source code is licensed under the ISC license.
|
|
228
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
229
|
+
*/const To=pe("Lightbulb",[["path",{d:"M15 14c.2-1 .7-1.7 1.5-2.5 1-.9 1.5-2.2 1.5-3.5A6 6 0 0 0 6 8c0 1 .2 2.2 1.5 3.5.7.7 1.3 1.5 1.5 2.5",key:"1gvzjb"}],["path",{d:"M9 18h6",key:"x1upvd"}],["path",{d:"M10 22h4",key:"ceow96"}]]);/**
|
|
230
|
+
* @license lucide-react v0.469.0 - ISC
|
|
231
|
+
*
|
|
232
|
+
* This source code is licensed under the ISC license.
|
|
233
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
234
|
+
*/const lo=pe("LoaderCircle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]);/**
|
|
235
|
+
* @license lucide-react v0.469.0 - ISC
|
|
236
|
+
*
|
|
237
|
+
* This source code is licensed under the ISC license.
|
|
238
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
239
|
+
*/const Nl=pe("MessageSquare",[["path",{d:"M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z",key:"1lielz"}]]);/**
|
|
240
|
+
* @license lucide-react v0.469.0 - ISC
|
|
241
|
+
*
|
|
242
|
+
* This source code is licensed under the ISC license.
|
|
243
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
244
|
+
*/const _v=pe("Moon",[["path",{d:"M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z",key:"a7tn18"}]]);/**
|
|
245
|
+
* @license lucide-react v0.469.0 - ISC
|
|
246
|
+
*
|
|
247
|
+
* This source code is licensed under the ISC license.
|
|
248
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
249
|
+
*/const Dm=pe("Package",[["path",{d:"M11 21.73a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73z",key:"1a0edw"}],["path",{d:"M12 22V12",key:"d0xqtd"}],["path",{d:"m3.3 7 7.703 4.734a2 2 0 0 0 1.994 0L20.7 7",key:"yx3hmr"}],["path",{d:"m7.5 4.27 9 5.15",key:"1c824w"}]]);/**
|
|
250
|
+
* @license lucide-react v0.469.0 - ISC
|
|
251
|
+
*
|
|
252
|
+
* This source code is licensed under the ISC license.
|
|
253
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
254
|
+
*/const jv=pe("Pencil",[["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}],["path",{d:"m15 5 4 4",key:"1mk7zo"}]]);/**
|
|
255
|
+
* @license lucide-react v0.469.0 - ISC
|
|
256
|
+
*
|
|
257
|
+
* This source code is licensed under the ISC license.
|
|
258
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
259
|
+
*/const Tp=pe("Plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]);/**
|
|
260
|
+
* @license lucide-react v0.469.0 - ISC
|
|
261
|
+
*
|
|
262
|
+
* This source code is licensed under the ISC license.
|
|
263
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
264
|
+
*/const Ov=pe("Radio",[["path",{d:"M4.9 19.1C1 15.2 1 8.8 4.9 4.9",key:"1vaf9d"}],["path",{d:"M7.8 16.2c-2.3-2.3-2.3-6.1 0-8.5",key:"u1ii0m"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}],["path",{d:"M16.2 7.8c2.3 2.3 2.3 6.1 0 8.5",key:"1j5fej"}],["path",{d:"M19.1 4.9C23 8.8 23 15.1 19.1 19",key:"10b0cb"}]]);/**
|
|
265
|
+
* @license lucide-react v0.469.0 - ISC
|
|
266
|
+
*
|
|
267
|
+
* This source code is licensed under the ISC license.
|
|
268
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
269
|
+
*/const kv=pe("RotateCcw",[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}]]);/**
|
|
270
|
+
* @license lucide-react v0.469.0 - ISC
|
|
271
|
+
*
|
|
272
|
+
* This source code is licensed under the ISC license.
|
|
273
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
274
|
+
*/const Rv=pe("Rows2",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M3 12h18",key:"1i2n21"}]]);/**
|
|
275
|
+
* @license lucide-react v0.469.0 - ISC
|
|
276
|
+
*
|
|
277
|
+
* This source code is licensed under the ISC license.
|
|
278
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
279
|
+
*/const zm=pe("Search",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]]);/**
|
|
280
|
+
* @license lucide-react v0.469.0 - ISC
|
|
281
|
+
*
|
|
282
|
+
* This source code is licensed under the ISC license.
|
|
283
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
284
|
+
*/const Mv=pe("Settings",[["path",{d:"M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z",key:"1qme2f"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);/**
|
|
285
|
+
* @license lucide-react v0.469.0 - ISC
|
|
286
|
+
*
|
|
287
|
+
* This source code is licensed under the ISC license.
|
|
288
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
289
|
+
*/const ts=pe("ShieldAlert",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"M12 8v4",key:"1got3b"}],["path",{d:"M12 16h.01",key:"1drbdi"}]]);/**
|
|
290
|
+
* @license lucide-react v0.469.0 - ISC
|
|
291
|
+
*
|
|
292
|
+
* This source code is licensed under the ISC license.
|
|
293
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
294
|
+
*/const Dv=pe("Sun",[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]]);/**
|
|
295
|
+
* @license lucide-react v0.469.0 - ISC
|
|
296
|
+
*
|
|
297
|
+
* This source code is licensed under the ISC license.
|
|
298
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
299
|
+
*/const zv=pe("Terminal",[["polyline",{points:"4 17 10 11 4 5",key:"akl6gq"}],["line",{x1:"12",x2:"20",y1:"19",y2:"19",key:"q2wloq"}]]);/**
|
|
300
|
+
* @license lucide-react v0.469.0 - ISC
|
|
301
|
+
*
|
|
302
|
+
* This source code is licensed under the ISC license.
|
|
303
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
304
|
+
*/const Lv=pe("Trash2",[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}],["line",{x1:"10",x2:"10",y1:"11",y2:"17",key:"1uufr5"}],["line",{x1:"14",x2:"14",y1:"11",y2:"17",key:"xtxkd"}]]);/**
|
|
305
|
+
* @license lucide-react v0.469.0 - ISC
|
|
306
|
+
*
|
|
307
|
+
* This source code is licensed under the ISC license.
|
|
308
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
309
|
+
*/const wl=pe("TriangleAlert",[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]]);/**
|
|
310
|
+
* @license lucide-react v0.469.0 - ISC
|
|
311
|
+
*
|
|
312
|
+
* This source code is licensed under the ISC license.
|
|
313
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
314
|
+
*/const Uv=pe("User",[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]]);/**
|
|
315
|
+
* @license lucide-react v0.469.0 - ISC
|
|
316
|
+
*
|
|
317
|
+
* This source code is licensed under the ISC license.
|
|
318
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
319
|
+
*/const Rr=pe("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);function Co(){const l=z.useMemo(()=>new URLSearchParams(window.location.search).get("httpPort"),[]),i=l!==null,r=z.useCallback(async m=>{if(!l)return null;try{const b=await fetch(`http://localhost:${l}/api/reviews/${m}/refs`);return b.ok?await b.json():null}catch{return null}},[l]),s=z.useCallback(async(m,b)=>{if(!l)return{ok:!1,error:"Not connected to server"};try{const x=await fetch(`http://localhost:${l}/api/reviews/${m}/compare`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({ref:b})});return x.ok?{ok:!0}:{ok:!1,error:(await x.json().catch(()=>({}))).error??"Comparison failed"}}catch{return{ok:!1,error:"Failed to connect to server"}}},[l]),o=z.useCallback(async m=>{if(!l)return{ok:!1,error:"Not connected to server"};try{const b=await fetch(`http://localhost:${l}/api/reviews/${m}/compare`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({reset:!0})});return b.ok?{ok:!0}:{ok:!1,error:(await b.json().catch(()=>({}))).error??"Reset failed"}}catch{return{ok:!1,error:"Failed to connect to server"}}},[l]),d=z.useCallback(async(m,b)=>{if(!l)return{ok:!1,error:"Not connected to server"};try{const x=await fetch(`http://localhost:${l}${m}`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(b)});return x.ok?{ok:!0}:{ok:!1,error:(await x.json().catch(()=>({}))).error??"Request failed"}}catch{return{ok:!1,error:"Failed to connect to server"}}},[l]),h=z.useCallback((m,b)=>d(`/api/reviews/${m}/annotations`,{...b,type:"question",category:"other",author:"reviewer",source:{agent:"reviewer",tool:"dashboard"}}),[d]),y=z.useCallback((m,b,x)=>d(`/api/reviews/${m}/annotations/${b}/replies`,{author:"reviewer",body:x}),[d]),g=z.useCallback(async(m,b)=>{if(!l)return{ok:!1,error:"Not connected to server"};try{const x=await fetch(`http://localhost:${l}/api/reviews/${m}/github-review`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(b)}),S=await x.json().catch(()=>({}));return x.ok&&S.url?{ok:!0,url:S.url}:{ok:!1,error:S.error??`Server returned ${x.status}`}}catch{return{ok:!1,error:"Failed to connect to server"}}},[l]);return{isAvailable:i,fetchRefs:r,compareAgainst:s,resetCompare:o,startThread:h,replyToThread:y,submitPrReview:g}}function Bv(){const[l,i]=z.useState(!1),[r,s]=z.useState(null),[o,d]=z.useState(!1),[h,y]=z.useState(!1),[g,m]=z.useState(null),[b,x]=z.useState(""),[S,E]=z.useState("branches"),A=z.useRef(null),T=z.useRef(null),{activeSessionId:_,compareRef:U,setCompareRef:q,metadata:O}=Xe(),{isAvailable:F,fetchRefs:Z,compareAgainst:X,resetCompare:R}=Co(),M=U??"working copy",K=z.useCallback(async()=>{if(!_)return;i(!0),x(""),m(null),d(!0);const B=await Z(_);s(B),d(!1)},[_,Z]),ie=z.useCallback(async B=>{if(!_)return;y(!0),m(null);const le=await X(_,B);le.ok?(q(B),i(!1)):m(le.error??"Comparison failed"),y(!1)},[_,X,q]),re=z.useCallback(async()=>{if(!_)return;y(!0),m(null);const B=await R(_);B.ok?(q(null),i(!1)):m(B.error??"Reset failed"),y(!1)},[_,R,q]);z.useEffect(()=>{if(!l)return;function B(le){A.current&&!A.current.contains(le.target)&&i(!1)}return document.addEventListener("mousedown",B),()=>document.removeEventListener("mousedown",B)},[l]),z.useEffect(()=>{if(!l)return;function B(le){le.key==="Escape"&&i(!1)}return document.addEventListener("keydown",B),()=>document.removeEventListener("keydown",B)},[l]),z.useEffect(()=>{l&&T.current&&T.current.focus()},[l]);const de=!!(O!=null&&O.githubPr);if(!F||de)return O!=null&&O.currentBranch?f.jsxs("span",{className:"inline-flex items-center gap-1 px-2 py-0.5 rounded-full text-xs bg-neutral/15 text-neutral border border-neutral/30 font-mono",children:[f.jsx(Cn,{className:"w-3 h-3"}),O.currentBranch]}):null;const ne=b.toLowerCase(),P=(r==null?void 0:r.branches.local.filter(B=>B.toLowerCase().includes(ne)))??[],J=(r==null?void 0:r.branches.remote.filter(B=>B.toLowerCase().includes(ne)))??[],k=(r==null?void 0:r.commits.filter(B=>B.shortHash.toLowerCase().includes(ne)||B.subject.toLowerCase().includes(ne)||B.author.toLowerCase().includes(ne)))??[];return f.jsxs("div",{className:"relative",ref:A,children:[f.jsxs("button",{onClick:()=>l?i(!1):K(),disabled:h,className:"inline-flex items-center gap-1 px-2 py-0.5 rounded-full text-xs bg-neutral/15 text-neutral border border-neutral/30 font-mono hover:bg-neutral/25 transition-colors cursor-pointer disabled:opacity-50",title:"Compare against a different ref",children:[h?f.jsx(lo,{className:"w-3 h-3 animate-spin"}):f.jsx(Cn,{className:"w-3 h-3"}),f.jsx("span",{className:"max-w-[180px] truncate",children:M}),f.jsx(ms,{className:"w-3 h-3"})]}),l&&f.jsxs("div",{className:"absolute top-full mt-1 right-0 z-50 w-80 bg-surface border border-border rounded-lg shadow-lg overflow-hidden",children:[f.jsx("div",{className:"p-2 border-b border-border",children:f.jsx("input",{ref:T,type:"text",value:b,onChange:B=>x(B.target.value),placeholder:"Filter branches or commits...",className:"w-full px-2 py-1.5 text-xs bg-background border border-border rounded text-text-primary placeholder:text-text-secondary focus:outline-none focus:border-accent"})}),f.jsxs("div",{className:"flex border-b border-border",children:[f.jsxs("button",{onClick:()=>E("branches"),className:`flex-1 px-3 py-1.5 text-xs font-medium transition-colors cursor-pointer ${S==="branches"?"text-accent border-b-2 border-accent":"text-text-secondary hover:text-text-primary"}`,children:[f.jsx(Cn,{className:"w-3 h-3 inline mr-1"}),"Branches"]}),f.jsxs("button",{onClick:()=>E("commits"),className:`flex-1 px-3 py-1.5 text-xs font-medium transition-colors cursor-pointer ${S==="commits"?"text-accent border-b-2 border-accent":"text-text-secondary hover:text-text-primary"}`,children:[f.jsx(Mm,{className:"w-3 h-3 inline mr-1"}),"Commits"]})]}),g&&f.jsxs("div",{className:"px-3 py-2 flex items-center gap-2 bg-danger/10 border-b border-danger/20 text-danger text-xs",children:[f.jsx(Aa,{className:"w-3.5 h-3.5 flex-shrink-0"}),f.jsx("span",{children:g})]}),f.jsx("div",{className:"max-h-64 overflow-y-auto",children:o?f.jsxs("div",{className:"flex items-center justify-center py-6",children:[f.jsx(lo,{className:"w-4 h-4 animate-spin text-text-secondary"}),f.jsx("span",{className:"ml-2 text-xs text-text-secondary",children:"Loading refs..."})]}):S==="branches"?f.jsxs("div",{children:[P.length>0&&f.jsxs("div",{children:[f.jsx("div",{className:"px-3 py-1.5 text-[10px] font-medium uppercase tracking-wide text-text-secondary bg-background/50",children:"Local"}),P.map(B=>f.jsxs("button",{onClick:()=>ie(B),className:`w-full px-3 py-1.5 text-xs text-left flex items-center gap-2 hover:bg-text-primary/5 transition-colors cursor-pointer ${U===B?"bg-accent/10 text-accent":"text-text-primary"}`,children:[f.jsx(Cn,{className:"w-3 h-3 flex-shrink-0 text-text-secondary"}),f.jsx("span",{className:"font-mono truncate",children:B}),B===(r==null?void 0:r.currentBranch)&&f.jsx("span",{className:"ml-auto text-[10px] text-text-secondary",children:"current"})]},B))]}),J.length>0&&f.jsxs("div",{children:[f.jsx("div",{className:"px-3 py-1.5 text-[10px] font-medium uppercase tracking-wide text-text-secondary bg-background/50",children:"Remote"}),J.map(B=>f.jsxs("button",{onClick:()=>ie(B),className:`w-full px-3 py-1.5 text-xs text-left flex items-center gap-2 hover:bg-text-primary/5 transition-colors cursor-pointer ${U===B?"bg-accent/10 text-accent":"text-text-primary"}`,children:[f.jsx(Cn,{className:"w-3 h-3 flex-shrink-0 text-text-secondary"}),f.jsx("span",{className:"font-mono truncate",children:B})]},B))]}),P.length===0&&J.length===0&&f.jsx("div",{className:"px-3 py-4 text-xs text-text-secondary text-center",children:"No branches found"})]}):f.jsx("div",{children:k.length>0?k.map(B=>f.jsxs("button",{onClick:()=>ie(B.hash),className:`w-full px-3 py-1.5 text-xs text-left flex items-start gap-2 hover:bg-text-primary/5 transition-colors cursor-pointer ${U===B.hash?"bg-accent/10 text-accent":"text-text-primary"}`,children:[f.jsx(Mm,{className:"w-3 h-3 flex-shrink-0 mt-0.5 text-text-secondary"}),f.jsxs("div",{className:"min-w-0 flex-1",children:[f.jsxs("div",{className:"flex items-center gap-2",children:[f.jsx("span",{className:"font-mono text-accent",children:B.shortHash}),f.jsx("span",{className:"truncate",children:B.subject})]}),f.jsxs("div",{className:"text-[10px] text-text-secondary mt-0.5",children:[B.author," · ",Hv(B.date)]})]})]},B.hash)):f.jsx("div",{className:"px-3 py-4 text-xs text-text-secondary text-center",children:"No commits found"})})}),U&&f.jsx("div",{className:"border-t border-border p-2",children:f.jsxs("button",{onClick:re,className:"w-full px-2 py-1.5 text-xs text-text-secondary hover:text-text-primary flex items-center justify-center gap-1.5 rounded hover:bg-text-primary/5 transition-colors cursor-pointer",children:[f.jsx(kv,{className:"w-3 h-3"}),"Reset to working copy"]})})]})]})}function Hv(l){const i=new Date(l),s=new Date().getTime()-i.getTime(),o=Math.floor(s/1e3),d=Math.floor(o/60),h=Math.floor(d/60),y=Math.floor(h/24);return o<60?"just now":d<60?`${d}m ago`:h<24?`${h}h ago`:y<30?`${y}d ago`:i.toLocaleDateString()}const Lm={pending:"bg-warning/20 text-warning border border-warning/30",in_review:"bg-accent/20 text-accent border border-accent/30",changes_requested:"bg-danger/20 text-danger border border-danger/30",approved:"bg-success/20 text-success border border-success/30",approved_with_comments:"bg-success/20 text-success border border-success/30",dismissed:"bg-neutral/20 text-neutral border border-neutral/30",submitted:"bg-success/20 text-success border border-success/30"},Gv={must_fix:"bg-danger/15 text-danger border-danger/30",suggestion:"bg-warning/15 text-warning border-warning/30",question:"bg-info/15 text-info border-info/30",nitpick:"bg-neutral/15 text-neutral border-neutral/30"},Yv={added:"bg-success/15 text-success border-success/30",modified:"bg-warning/15 text-warning border-warning/30",deleted:"bg-danger/15 text-danger border-danger/30",renamed:"bg-accent/15 text-accent border-accent/30"},qv={added:"text-success",modified:"text-warning",deleted:"text-danger",renamed:"text-accent"},Iv={reviewed:"text-info",approved:"text-success",needs_changes:"text-warning"},fs={security:"text-danger",performance:"text-perf",convention:"text-info",correctness:"text-warning",complexity:"text-accent","test-coverage":"text-info",documentation:"text-neutral",other:"text-neutral"},Um={security:"bg-danger/15 text-danger border-danger/30",performance:"bg-perf/15 text-perf border-perf/30",convention:"bg-info/15 text-info border-info/30",correctness:"bg-warning/15 text-warning border-warning/30",complexity:"bg-accent/15 text-accent border-accent/30","test-coverage":"bg-info/15 text-info border-info/30",documentation:"bg-neutral/15 text-neutral border-neutral/30",other:"bg-neutral/15 text-neutral border-neutral/30"},ta={approve:"bg-success/15 text-success border border-success/30 hover:bg-success/25 hover:border-success/50",reject:"bg-danger/15 text-danger border border-danger/30 hover:bg-danger/25 hover:border-danger/50",comment:"bg-info/15 text-info border border-info/30 hover:bg-info/25 hover:border-info/50",dismiss:"bg-neutral/15 text-neutral border border-neutral/30 hover:bg-neutral/25 hover:border-neutral/50"},ea={security:"bg-danger/15 text-danger border border-danger/30",breaking:"bg-danger/15 text-danger border border-danger/30",modules:"bg-info/15 text-info border border-info/30",deps:"bg-warning/15 text-warning border border-warning/30",complexity:"bg-perf/15 text-perf border border-perf/30",coverage:"bg-warning/15 text-warning border border-warning/30",patterns:"bg-accent/15 text-accent border border-accent/30"},ml={security:"text-danger",breaking:"text-danger",deps:"text-warning",complexity:"text-perf",coverage:"text-warning",patterns:"text-accent"},Xv={staged:"bg-success/20 text-success border-success/30",unstaged:"bg-warning/20 text-warning border-warning/30"},Fv={critical:"bg-danger/15 text-danger border border-danger/30",warning:"bg-warning/15 text-warning border border-warning/30"},$v={critical:"text-danger",warning:"text-warning"};function Zv(){const[l,i]=z.useState(!1),{briefing:r,metadata:s,isServerMode:o,clearReview:d,sessions:h,activeSessionId:y}=Xe(),g=h.find(M=>M.id===y),m=g==null?void 0:g.branch,b=g!=null&&g.projectPath?g.projectPath.split("/").filter(Boolean).pop():void 0;if(!r)return null;const{impact:x,verification:S,complexity:E,testCoverage:A,patterns:T}=r,_=x.breakingChanges.length>0,U=x.newDependencies.length>0,q=x.affectedModules.length,O=(E==null?void 0:E.filter(M=>M.score>=5))??[],F=(A==null?void 0:A.filter(M=>M.testFile===null))??[],Z=(T==null?void 0:T.filter(M=>M.severity))??[],X=(T==null?void 0:T.filter(M=>!M.severity))??[],R=X.length;return f.jsxs("div",{className:"bg-surface border-b border-border flex-shrink-0",children:[f.jsxs("div",{className:"flex items-center",children:[o&&f.jsx("button",{onClick:d,className:"px-3 py-2.5 text-text-secondary hover:text-text-primary transition-colors cursor-pointer border-r border-border",title:"Back to sessions",children:f.jsx(hv,{className:"w-4 h-4"})}),f.jsxs("button",{onClick:()=>i(!l),className:"flex-1 px-4 py-2.5 flex items-center gap-3 cursor-pointer hover:bg-text-primary/5 transition-colors",children:[f.jsx("span",{className:"text-text-primary text-sm flex-1 text-left truncate",children:r.summary}),f.jsxs("div",{className:"flex items-center gap-2 flex-shrink-0",children:[(m||b)&&f.jsxs("span",{className:"inline-flex items-center gap-1 px-2 py-0.5 rounded-full text-xs bg-text-primary/5 text-text-secondary max-w-[22rem]",title:g==null?void 0:g.projectPath,children:[f.jsx(Cn,{className:"w-3 h-3 flex-shrink-0"}),b&&f.jsx("span",{className:"truncate",children:b}),b&&m&&f.jsx("span",{className:"opacity-40",children:"/"}),m&&f.jsx("span",{className:"truncate",children:m})]}),Z.length>0&&f.jsxs("span",{className:`inline-flex items-center gap-1 px-2 py-0.5 rounded-full text-xs font-semibold ${ea.security}`,children:[f.jsx(ts,{className:"w-3 h-3"}),Z.length," security flag",Z.length!==1?"s":""]}),q>0&&f.jsxs("span",{className:`inline-flex items-center gap-1 px-2 py-0.5 rounded-full text-xs ${ea.modules}`,children:[f.jsx(Na,{className:"w-3 h-3"}),q," module",q!==1?"s":""]}),_&&f.jsxs("span",{className:`inline-flex items-center gap-1 px-2 py-0.5 rounded-full text-xs ${ea.breaking}`,children:[f.jsx(wl,{className:"w-3 h-3"}),"breaking"]}),U&&f.jsxs("span",{className:`inline-flex items-center gap-1 px-2 py-0.5 rounded-full text-xs ${ea.deps}`,children:[f.jsx(Dm,{className:"w-3 h-3"}),x.newDependencies.length," new dep",x.newDependencies.length!==1?"s":""]}),O.length>0&&f.jsxs("span",{className:`inline-flex items-center gap-1 px-2 py-0.5 rounded-full text-xs ${ea.complexity}`,children:[f.jsx(Rm,{className:"w-3 h-3"}),O.length," complex"]}),F.length>0&&f.jsxs("span",{className:`inline-flex items-center gap-1 px-2 py-0.5 rounded-full text-xs ${ea.coverage}`,children:[f.jsx(ts,{className:"w-3 h-3"}),F.length," untested"]}),R>0&&f.jsxs("span",{className:`inline-flex items-center gap-1 px-2 py-0.5 rounded-full text-xs ${ea.patterns}`,children:[f.jsx(zm,{className:"w-3 h-3"}),R," pattern",R!==1?"s":""]}),l?f.jsx(Eo,{className:"w-4 h-4 text-text-secondary"}):f.jsx(ms,{className:"w-4 h-4 text-text-secondary"})]})]}),f.jsx("div",{className:"px-3 py-2.5 border-l border-border flex-shrink-0",children:f.jsx(Bv,{})})]}),(s==null?void 0:s.githubPr)&&f.jsxs("div",{className:"px-4 py-2 border-t border-border/50 flex items-center gap-3 text-xs",children:[f.jsx(na,{className:"w-3.5 h-3.5 text-accent flex-shrink-0"}),f.jsxs("span",{className:"text-text-primary font-medium truncate",children:[s.githubPr.owner,"/",s.githubPr.repo,"#",s.githubPr.number]}),f.jsxs("span",{className:"text-text-secondary",children:["by ",s.githubPr.author]}),f.jsxs("span",{className:"text-text-secondary font-mono",children:[s.githubPr.baseBranch," ← ",s.githubPr.headBranch]}),f.jsxs("a",{href:s.githubPr.url,target:"_blank",rel:"noopener noreferrer",className:"ml-auto flex items-center gap-1 text-accent hover:text-accent/80 transition-colors flex-shrink-0",children:["View on GitHub",f.jsx(wo,{className:"w-3 h-3"})]})]}),l&&f.jsxs("div",{className:"px-4 pb-3 grid grid-cols-2 gap-x-6 gap-y-3 border-t border-border/50 pt-3",children:[Z.length>0&&f.jsxs("div",{className:"col-span-2",children:[f.jsxs("h4",{className:`${ml.security} text-xs font-medium uppercase tracking-wide mb-1 flex items-center gap-1.5`,children:[f.jsx(ts,{className:"w-3.5 h-3.5"}),"Security Flags"]}),f.jsx("ul",{className:"space-y-0.5",children:Z.map((M,K)=>f.jsxs("li",{className:"text-xs",children:[f.jsx("span",{className:`inline-block px-1 py-0.5 rounded text-[10px] font-medium uppercase mr-1.5 ${Fv[M.severity??"warning"]}`,children:M.pattern.replace("_"," ")}),f.jsx("span",{className:`text-[10px] font-medium uppercase mr-1.5 ${$v[M.severity??"warning"]}`,children:M.severity}),f.jsxs("span",{className:"font-mono text-text-secondary",children:[M.file,":",M.line]}),f.jsxs("span",{className:"text-text-secondary ml-1 truncate",children:["— ",M.content]})]},`${M.file}:${M.line}:${K}`))})]}),x.affectedModules.length>0&&f.jsxs("div",{children:[f.jsxs("h4",{className:"text-text-secondary text-xs font-medium uppercase tracking-wide mb-1 flex items-center gap-1.5",children:[f.jsx(Na,{className:"w-3.5 h-3.5"}),"Affected Modules"]}),f.jsx("ul",{className:"space-y-0.5",children:x.affectedModules.map(M=>f.jsx("li",{className:"text-text-primary text-xs font-mono",children:M},M))})]}),x.affectedTests.length>0&&f.jsxs("div",{children:[f.jsxs("h4",{className:"text-text-secondary text-xs font-medium uppercase tracking-wide mb-1 flex items-center gap-1.5",children:[f.jsx(km,{className:"w-3.5 h-3.5"}),"Affected Tests"]}),f.jsx("ul",{className:"space-y-0.5",children:x.affectedTests.map(M=>f.jsx("li",{className:"text-text-primary text-xs font-mono truncate",children:M},M))})]}),_&&f.jsxs("div",{children:[f.jsxs("h4",{className:`${ml.breaking} text-xs font-medium uppercase tracking-wide mb-1 flex items-center gap-1.5`,children:[f.jsx(wl,{className:"w-3.5 h-3.5"}),"Breaking Changes"]}),f.jsx("ul",{className:"space-y-0.5",children:x.breakingChanges.map(M=>f.jsx("li",{className:"text-danger text-xs",children:M},M))})]}),U&&f.jsxs("div",{children:[f.jsxs("h4",{className:`${ml.deps} text-xs font-medium uppercase tracking-wide mb-1 flex items-center gap-1.5`,children:[f.jsx(Dm,{className:"w-3.5 h-3.5"}),"New Dependencies"]}),f.jsx("ul",{className:"space-y-0.5",children:x.newDependencies.map(M=>f.jsx("li",{className:"text-text-primary text-xs font-mono",children:M},M))})]}),O.length>0&&f.jsxs("div",{children:[f.jsxs("h4",{className:`${ml.complexity} text-xs font-medium uppercase tracking-wide mb-1 flex items-center gap-1.5`,children:[f.jsx(Rm,{className:"w-3.5 h-3.5"}),"High Complexity"]}),f.jsx("ul",{className:"space-y-0.5",children:O.map(M=>f.jsxs("li",{className:"text-text-primary text-xs",children:[f.jsx("span",{className:"font-mono",children:M.path}),f.jsxs("span",{className:"text-perf ml-1",children:["(",M.score,"/10)"]}),M.factors.length>0&&f.jsxs("span",{className:"text-text-secondary ml-1",children:["— ",M.factors.join(", ")]})]},M.path))})]}),F.length>0&&f.jsxs("div",{children:[f.jsxs("h4",{className:`${ml.coverage} text-xs font-medium uppercase tracking-wide mb-1 flex items-center gap-1.5`,children:[f.jsx(ts,{className:"w-3.5 h-3.5"}),"Missing Test Changes"]}),f.jsx("ul",{className:"space-y-0.5",children:F.map(M=>f.jsx("li",{className:"text-text-primary text-xs font-mono",children:M.sourceFile},M.sourceFile))})]}),X.length>0&&f.jsxs("div",{children:[f.jsxs("h4",{className:`${ml.patterns} text-xs font-medium uppercase tracking-wide mb-1 flex items-center gap-1.5`,children:[f.jsx(zm,{className:"w-3.5 h-3.5"}),"Pattern Flags"]}),f.jsx("ul",{className:"space-y-0.5",children:X.map((M,K)=>f.jsxs("li",{className:"text-xs",children:[f.jsx("span",{className:`inline-block px-1 py-0.5 rounded text-[10px] font-medium uppercase mr-1.5 ${ea.patterns}`,children:M.pattern}),f.jsxs("span",{className:"font-mono text-text-secondary",children:[M.file,M.line>0?`:${M.line}`:""]}),M.line>0&&f.jsxs("span",{className:"text-text-secondary ml-1 truncate",children:["— ",M.content]})]},`${M.file}:${M.line}:${K}`))})]}),f.jsxs("div",{children:[f.jsxs("h4",{className:"text-text-secondary text-xs font-medium uppercase tracking-wide mb-1 flex items-center gap-1.5",children:[f.jsx(km,{className:"w-3.5 h-3.5"}),"Verification"]}),f.jsxs("div",{className:"flex items-center gap-3",children:[f.jsx(Wc,{label:"Tests",value:S.testsPass}),f.jsx(Wc,{label:"Types",value:S.typeCheck}),f.jsx(Wc,{label:"Lint",value:S.lintClean})]})]})]})]})}function Wc({label:l,value:i}){return i===null?f.jsxs("span",{className:"text-text-secondary text-xs",children:[l,": ",f.jsx("span",{className:"font-mono",children:"—"})]}):f.jsxs("span",{className:`text-xs ${i?"text-success":"text-danger"}`,children:[l,": ",f.jsx("span",{className:"font-mono",children:i?"pass":"fail"})]})}function Vv(){const[l,i]=z.useState(!1),{metadata:r}=Xe();return r!=null&&r.reasoning?f.jsxs("div",{className:"bg-surface border-b border-border flex-shrink-0",children:[f.jsxs("button",{onClick:()=>i(!l),className:"w-full px-4 py-2.5 flex items-center gap-3 cursor-pointer hover:bg-text-primary/5 transition-colors",children:[f.jsx(pv,{className:"w-4 h-4 text-accent flex-shrink-0"}),f.jsx("span",{className:"text-text-primary text-sm flex-1 text-left truncate",children:"Agent Reasoning"}),l?f.jsx(Eo,{className:"w-4 h-4 text-text-secondary"}):f.jsx(ms,{className:"w-4 h-4 text-text-secondary"})]}),l&&f.jsx("div",{className:"px-4 pb-3 border-t border-border/50 pt-3",children:f.jsx("p",{className:"text-text-secondary text-sm whitespace-pre-wrap",children:r.reasoning})})]}):null}const Kv={added:"A",modified:"M",deleted:"D",renamed:"R"};function Qv(l){return{label:Kv[l],className:Yv[l]}}const Jv={added:Tv,deleted:wv,modified:Av,renamed:Tl};function Wv(l){const i=Jv[l]??Tl;return f.jsx(i,{className:`w-4 h-4 flex-shrink-0 ${qv[l]}`})}const Pv={reviewed:Ao,approved:bv,needs_changes:Aa};function e1(l){const i=Pv[l];return i?f.jsx(i,{className:`w-3.5 h-3.5 flex-shrink-0 ${Iv[l]}`}):null}function t1(l){const i=l.split("/");return i[i.length-1]}function n1(l){const i=l.split("/");return i.length<=1?"":i.slice(0,-1).join("/")}function a1({onSubmit:l}){const{diffSet:i,selectedFile:r,selectFile:s,fileStatuses:o,cycleFileStatus:d,toggleHotkeyGuide:h,comments:y,navigateHunk:g,setFileStatus:m,briefing:b}=Xe(),[x,S]=z.useState({}),[E,A]=z.useState(!1),T=z.useRef(null),_=z.useMemo(()=>i?i.files.some(P=>P.stage!==void 0):!1,[i]),{stagedFiles:U,unstagedFiles:q}=z.useMemo(()=>i?_?{stagedFiles:i.files.filter(P=>P.stage==="staged"),unstagedFiles:i.files.filter(P=>P.stage==="unstaged")}:{stagedFiles:[],unstagedFiles:[]}:{stagedFiles:[],unstagedFiles:[]},[i,_]),O=z.useMemo(()=>{if(!i||!(b!=null&&b.triage))return null;const{critical:P,notable:J,mechanical:k}=b.triage;if(!(P.length>0||k.length>0))return null;const le=new Set(P.map(ee=>ee.file)),ue=new Set(k.map(ee=>ee.file)),ce=[],N=[],Y=[];for(const ee of i.files)le.has(ee.path)?ce.push(ee):ue.has(ee.path)?Y.push(ee):N.push(ee);return{criticalFiles:ce,notableFiles:N,mechanicalFiles:Y}},[i,b]),F=O!==null&&!_,Z=z.useMemo(()=>{if(!i)return[];if(F&&O){const J=[];return x["triage-critical"]||J.push(...O.criticalFiles),x["triage-notable"]||J.push(...O.notableFiles),x["triage-mechanical"]||J.push(...O.mechanicalFiles),J}if(!_)return i.files;const P=[];return x.staged||P.push(...U),x.unstaged||P.push(...q),P},[i,_,U,q,x,F,O]),X=z.useCallback(P=>{if(Z.length===0)return;const J=Z.findIndex(B=>Lt(B)===r);let k;J===-1?k=0:P==="up"?k=J>0?J-1:J:k=J<Z.length-1?J+1:J,s(Lt(Z[k]))},[Z,r,s]);z.useEffect(()=>{function P(J){const k=J.target.tagName;k==="INPUT"||k==="TEXTAREA"||(J.key==="ArrowUp"||J.key==="k"?(J.preventDefault(),X("up")):J.key==="ArrowDown"||J.key==="j"?(J.preventDefault(),X("down")):J.key==="s"?(J.preventDefault(),r&&d(r)):J.key==="?"?(J.preventDefault(),h()):J.key==="n"?(J.preventDefault(),g("next")):J.key==="p"?(J.preventDefault(),g("prev")):J.key==="c"&&(J.preventDefault(),document.dispatchEvent(new CustomEvent("diffprism:open-comment"))))}return document.addEventListener("keydown",P),()=>document.removeEventListener("keydown",P)},[X,r,d,h,g]),z.useEffect(()=>{if(!E)return;function P(J){T.current&&!T.current.contains(J.target)&&A(!1)}return document.addEventListener("mousedown",P),()=>document.removeEventListener("mousedown",P)},[E]);const R=z.useCallback(P=>{const J=Object.values(o).some(k=>k!=="unreviewed");l({decision:"approved",comments:y,fileStatuses:J?o:void 0,postReviewAction:P}),A(!1)},[o,y,l]),M=z.useCallback(()=>{if(O)for(const P of O.mechanicalFiles)m(Lt(P),"approved")},[O,m]);if(!i)return null;const K=i.files.reduce((P,J)=>P+J.additions,0),ie=i.files.reduce((P,J)=>P+J.deletions,0),re=P=>{S(J=>({...J,[P]:!J[P]}))},de=P=>{const J=Lt(P),k=J===r,B=Qv(P.status),le=n1(P.path);return f.jsxs("button",{onClick:()=>s(J),className:`
|
|
320
|
+
w-full text-left px-3 py-2 flex items-center gap-2
|
|
321
|
+
transition-colors duration-100 cursor-pointer group
|
|
322
|
+
${k?"bg-accent/10 border-l-2 border-accent":"border-l-2 border-transparent hover:bg-text-primary/5"}
|
|
323
|
+
`,children:[Wv(P.status),f.jsxs("div",{className:"flex-1 min-w-0",children:[f.jsx("div",{className:`text-sm truncate ${k?"text-text-primary":"text-text-secondary"} group-hover:text-text-primary`,children:t1(P.path)}),le&&f.jsx("div",{className:"text-xs text-text-secondary truncate",children:le})]}),f.jsxs("div",{className:"flex items-center gap-2 flex-shrink-0",children:[(()=>{const ue=o[J]??"unreviewed",ce=e1(ue);return f.jsx("button",{onClick:N=>{N.stopPropagation(),d(J)},className:`p-0.5 rounded hover:bg-text-primary/10 transition-colors cursor-pointer ${ce?"":"opacity-0 group-hover:opacity-40"}`,title:ce?`Status: ${ue} (click to cycle)`:"Mark as reviewed (click to cycle)",children:ce??f.jsx(Ao,{className:"w-3.5 h-3.5 text-text-secondary"})})})(),P.additions>0&&f.jsxs("span",{className:"text-success text-xs font-mono",children:["+",P.additions]}),P.deletions>0&&f.jsxs("span",{className:"text-danger text-xs font-mono",children:["-",P.deletions]}),f.jsx("span",{className:`
|
|
324
|
+
text-[10px] font-bold px-1.5 py-0.5 rounded border
|
|
325
|
+
${B.className}
|
|
326
|
+
`,children:B.label})]})]},J)},ne=(P,J,k)=>{const B=x[J]??!1,le=k.reduce((ce,N)=>ce+N.additions,0),ue=k.reduce((ce,N)=>ce+N.deletions,0);return f.jsxs("button",{onClick:()=>re(J),className:"w-full text-left px-3 py-1.5 flex items-center gap-2 hover:bg-text-primary/5 cursor-pointer",children:[B?f.jsx(yv,{className:"w-3.5 h-3.5 text-text-secondary flex-shrink-0"}):f.jsx(ms,{className:"w-3.5 h-3.5 text-text-secondary flex-shrink-0"}),f.jsxs("span",{className:"text-text-secondary text-xs font-semibold uppercase tracking-wide",children:[P," (",k.length,")"]}),f.jsxs("div",{className:"flex items-center gap-2 ml-auto flex-shrink-0",children:[le>0&&f.jsxs("span",{className:"text-success text-xs font-mono",children:["+",le]}),ue>0&&f.jsxs("span",{className:"text-danger text-xs font-mono",children:["-",ue]})]})]},`section-${J}`)};return f.jsxs("div",{className:"flex flex-col h-full overflow-hidden bg-surface border-r border-border",children:[f.jsxs("div",{className:"px-4 py-3 border-b border-border",children:[f.jsxs("div",{className:"flex items-center justify-between",children:[f.jsx("h2",{className:"text-text-primary text-sm font-semibold",children:"Files"}),f.jsxs("div",{className:"relative",ref:T,children:[f.jsx("button",{onClick:()=>A(P=>!P),className:"p-1 rounded hover:bg-text-primary/10 transition-colors cursor-pointer text-text-secondary hover:text-text-primary",title:"Quick actions",children:f.jsx(Ev,{className:"w-4 h-4"})}),E&&f.jsxs("div",{className:"absolute right-0 top-full mt-1 w-52 bg-surface border border-border rounded-lg shadow-lg z-50 py-1",children:[f.jsxs("button",{onClick:()=>R("commit"),className:"w-full text-left px-3 py-2 text-sm text-text-primary hover:bg-text-primary/10 flex items-center gap-2 cursor-pointer transition-colors",children:[f.jsx(El,{className:"w-4 h-4 text-success"}),"Approve & Commit"]}),f.jsxs("button",{onClick:()=>R("commit_and_pr"),className:"w-full text-left px-3 py-2 text-sm text-text-primary hover:bg-text-primary/10 flex items-center gap-2 cursor-pointer transition-colors",children:[f.jsx(na,{className:"w-4 h-4 text-info"}),"Approve, Commit & PR"]})]})]})]}),f.jsxs("div",{className:"flex items-center gap-3 mt-1",children:[f.jsxs("span",{className:"text-text-secondary text-xs",children:[i.files.length," file",i.files.length!==1?"s":""]}),K>0&&f.jsxs("span",{className:"text-success text-xs font-mono",children:["+",K]}),ie>0&&f.jsxs("span",{className:"text-danger text-xs font-mono",children:["-",ie]})]})]}),f.jsx("div",{className:"flex-1 overflow-y-auto py-1",children:F&&O?f.jsxs(f.Fragment,{children:[O.criticalFiles.length>0&&f.jsxs(f.Fragment,{children:[ne("Critical","triage-critical",O.criticalFiles),!x["triage-critical"]&&O.criticalFiles.map(de)]}),O.notableFiles.length>0&&f.jsxs(f.Fragment,{children:[ne("Notable","triage-notable",O.notableFiles),!x["triage-notable"]&&O.notableFiles.map(de)]}),O.mechanicalFiles.length>0&&f.jsxs(f.Fragment,{children:[f.jsxs("div",{className:"flex items-center",children:[f.jsx("div",{className:"flex-1",children:ne("Mechanical","triage-mechanical",O.mechanicalFiles)}),f.jsx("button",{onClick:M,className:"mr-3 text-[10px] font-medium text-success hover:text-success/80 cursor-pointer px-1.5 py-0.5 rounded border border-success/30 hover:bg-success/10",children:"Approve all"})]}),!x["triage-mechanical"]&&O.mechanicalFiles.map(de)]})]}):_?f.jsxs(f.Fragment,{children:[U.length>0&&f.jsxs(f.Fragment,{children:[ne("Staged Changes","staged",U),!x.staged&&U.map(de)]}),q.length>0&&f.jsxs(f.Fragment,{children:[ne("Changes","unstaged",q),!x.unstaged&&q.map(de)]})]}):i.files.map(de)})]})}function Bm(l,i){var r=Object.keys(l);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(l);i&&(s=s.filter((function(o){return Object.getOwnPropertyDescriptor(l,o).enumerable}))),r.push.apply(r,s)}return r}function Me(l){for(var i=1;i<arguments.length;i++){var r=arguments[i]!=null?arguments[i]:{};i%2?Bm(Object(r),!0).forEach((function(s){ro(l,s,r[s])})):Object.getOwnPropertyDescriptors?Object.defineProperties(l,Object.getOwnPropertyDescriptors(r)):Bm(Object(r)).forEach((function(s){Object.defineProperty(l,s,Object.getOwnPropertyDescriptor(r,s))}))}return l}function ro(l,i,r){return(i=(function(s){var o=(function(d,h){if(typeof d!="object"||d===null)return d;var y=d[Symbol.toPrimitive];if(y!==void 0){var g=y.call(d,h);if(typeof g!="object")return g;throw new TypeError("@@toPrimitive must return a primitive value.")}return(h==="string"?String:Number)(d)})(s,"string");return typeof o=="symbol"?o:String(o)})(i))in l?Object.defineProperty(l,i,{value:r,enumerable:!0,configurable:!0,writable:!0}):l[i]=r,l}function aa(l,i){if(l==null)return{};var r,s,o=(function(h,y){if(h==null)return{};var g,m,b={},x=Object.keys(h);for(m=0;m<x.length;m++)g=x[m],y.indexOf(g)>=0||(b[g]=h[g]);return b})(l,i);if(Object.getOwnPropertySymbols){var d=Object.getOwnPropertySymbols(l);for(s=0;s<d.length;s++)r=d[s],i.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(l,r)&&(o[r]=l[r])}return o}function it(l,i){return Cp(l)||(function(r,s){var o=r==null?null:typeof Symbol<"u"&&r[Symbol.iterator]||r["@@iterator"];if(o!=null){var d,h,y,g,m=[],b=!0,x=!1;try{if(y=(o=o.call(r)).next,s===0){if(Object(o)!==o)return;b=!1}else for(;!(b=(d=y.call(o)).done)&&(m.push(d.value),m.length!==s);b=!0);}catch(S){x=!0,h=S}finally{try{if(!b&&o.return!=null&&(g=o.return(),Object(g)!==g))return}finally{if(x)throw h}}return m}})(l,i)||ps(l,i)||jp()}function l1(l){return Cp(l)||_p(l)||ps(l)||jp()}function xl(l){return(function(i){if(Array.isArray(i))return io(i)})(l)||_p(l)||ps(l)||(function(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
327
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)})()}function Cp(l){if(Array.isArray(l))return l}function _p(l){if(typeof Symbol<"u"&&l[Symbol.iterator]!=null||l["@@iterator"]!=null)return Array.from(l)}function ps(l,i){if(l){if(typeof l=="string")return io(l,i);var r=Object.prototype.toString.call(l).slice(8,-1);return r==="Object"&&l.constructor&&(r=l.constructor.name),r==="Map"||r==="Set"?Array.from(l):r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?io(l,i):void 0}}function io(l,i){(i==null||i>l.length)&&(i=l.length);for(var r=0,s=new Array(i);r<i;r++)s[r]=l[r];return s}function jp(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
328
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _o(l,i){var r=typeof Symbol<"u"&&l[Symbol.iterator]||l["@@iterator"];if(!r){if(Array.isArray(l)||(r=ps(l))||i){r&&(l=r);var s=0,o=function(){};return{s:o,n:function(){return s>=l.length?{done:!0}:{done:!1,value:l[s++]}},e:function(g){throw g},f:o}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
329
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var d,h=!0,y=!1;return{s:function(){r=r.call(l)},n:function(){var g=r.next();return h=g.done,g},e:function(g){y=!0,d=g},f:function(){try{h||r.return==null||r.return()}finally{if(y)throw d}}}}var ns=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Mr(l,i){return l(i={exports:{}},i.exports),i.exports}var Ut=Mr((function(l){/*!
|
|
330
|
+
Copyright (c) 2018 Jed Watson.
|
|
331
|
+
Licensed under the MIT License (MIT), see
|
|
332
|
+
http://jedwatson.github.io/classnames
|
|
333
|
+
*/(function(){var i={}.hasOwnProperty;function r(){for(var s=[],o=0;o<arguments.length;o++){var d=arguments[o];if(d){var h=typeof d;if(h==="string"||h==="number")s.push(d);else if(Array.isArray(d)){if(d.length){var y=r.apply(null,d);y&&s.push(y)}}else if(h==="object"){if(d.toString!==Object.prototype.toString&&!d.toString.toString().includes("[native code]")){s.push(d.toString());continue}for(var g in d)i.call(d,g)&&d[g]&&s.push(g)}}}return s.join(" ")}l.exports?(r.default=r,l.exports=r):window.classNames=r})()})),wt={hunkClassName:"",lineClassName:"",gutterClassName:"",codeClassName:"",monotonous:!1,gutterType:"default",viewType:"split",widgets:{},hideGutter:!1,selectedChanges:[],generateAnchorID:function(){},generateLineClassName:function(){},renderGutter:function(l){var i=l.renderDefault;return(0,l.wrapInAnchor)(i())},codeEvents:{},gutterEvents:{}},Op=z.createContext(wt),r1=Op.Provider,i1=function(){return z.useContext(Op)},s1=Mr((function(l,i){(function(r){function s(d){var h=d.slice(11),y=null,g=null;switch(h.indexOf('"')){case-1:y=(x=h.split(" "))[0].slice(2),g=x[1].slice(2);break;case 0:var m=h.indexOf('"',2);y=h.slice(3,m);var b=h.indexOf('"',m+1);g=b<0?h.slice(m+4):h.slice(b+3,-1);break;default:var x;y=(x=h.split(" "))[0].slice(2),g=x[1].slice(3,-1)}return{oldPath:y,newPath:g}}var o={parse:function(d){for(var h,y,g,m,b,x=[],S=2,E=d.split(`
|
|
334
|
+
`),A=E.length,T=0;T<A;){var _=E[T];if(_.indexOf("diff --git")===0){h={hunks:[],oldEndingNewLine:!0,newEndingNewLine:!0,oldPath:(b=s(_)).oldPath,newPath:b.newPath},x.push(h);var U,q=null;e:for(;U=E[++T];){var O=U.indexOf(" "),F=O>-1?U.slice(0,O):F;switch(F){case"diff":T--;break e;case"deleted":case"new":var Z=U.slice(O+1);Z.indexOf("file mode")===0&&(h[F==="new"?"newMode":"oldMode"]=Z.slice(10));break;case"similarity":h.similarity=parseInt(U.split(" ")[2],10);break;case"index":var X=U.slice(O+1).split(" "),R=X[0].split("..");h.oldRevision=R[0],h.newRevision=R[1],X[1]&&(h.oldMode=h.newMode=X[1]);break;case"copy":case"rename":var M=U.slice(O+1);M.indexOf("from")===0?h.oldPath=M.slice(5):h.newPath=M.slice(3),q=F;break;case"---":var K=U.slice(O+1),ie=E[++T].slice(4);K==="/dev/null"?(ie=ie.slice(2),q="add"):ie==="/dev/null"?(K=K.slice(2),q="delete"):(q="modify",K=K.slice(2),ie=ie.slice(2)),K&&(h.oldPath=K),ie&&(h.newPath=ie),S=5;break e}}h.type=q||"modify"}else if(_.indexOf("Binary")===0)h.isBinary=!0,h.type=_.indexOf("/dev/null and")>=0?"add":_.indexOf("and /dev/null")>=0?"delete":"modify",S=2,h=null;else if(S===5)if(_.indexOf("@@")===0){var re=/^@@\s+-([0-9]+)(,([0-9]+))?\s+\+([0-9]+)(,([0-9]+))?/.exec(_);y={content:_,oldStart:re[1]-0,newStart:re[4]-0,oldLines:re[3]-0||1,newLines:re[6]-0||1,changes:[]},h.hunks.push(y),g=y.oldStart,m=y.newStart}else{var de=_.slice(0,1),ne={content:_.slice(1)};switch(de){case"+":ne.type="insert",ne.isInsert=!0,ne.lineNumber=m,m++;break;case"-":ne.type="delete",ne.isDelete=!0,ne.lineNumber=g,g++;break;case" ":ne.type="normal",ne.isNormal=!0,ne.oldLineNumber=g,ne.newLineNumber=m,g++,m++;break;case"\\":var P=y.changes[y.changes.length-1];P.isDelete||(h.newEndingNewLine=!1),P.isInsert||(h.oldEndingNewLine=!1)}ne.type&&y.changes.push(ne)}T++}return x}};l.exports=o})()}));function Ta(l){return l.type==="insert"}function Qt(l){return l.type==="delete"}function wa(l){return l.type==="normal"}function u1(l,i){var r=i.nearbySequences==="zip"?(function(s){var o=s.reduce((function(d,h,y){var g=it(d,3),m=g[0],b=g[1],x=g[2];return b?Ta(h)&&x>=0?(m.splice(x+1,0,h),[m,h,x+2]):(m.push(h),[m,h,Qt(h)&&Qt(b)?x:y]):(m.push(h),[m,h,Qt(h)?y:-1])}),[[],null,-1]);return it(o,1)[0]})(l.changes):l.changes;return Me(Me({},l),{},{isPlain:!1,changes:r})}function c1(l){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=(function(s){if(s.startsWith("diff --git"))return s;var o=s.indexOf(`
|
|
335
|
+
`),d=s.indexOf(`
|
|
336
|
+
`,o+1),h=s.slice(0,o),y=s.slice(o+1,d),g=h.split(" ").slice(1,-3).join(" "),m=y.split(" ").slice(1,-3).join(" ");return["diff --git a/".concat(g," b/").concat(m),"index 1111111..2222222 100644","--- a/".concat(g),"+++ b/".concat(m),s.slice(d+1)].join(`
|
|
337
|
+
`)})(l.trimStart());return s1.parse(r).map((function(s){return(function(o,d){var h=o.hunks.map((function(y){return u1(y,d)}));return Me(Me({},o),{},{hunks:h})})(s,i)}))}function o1(l){return l[0]}function f1(l){return l[l.length-1]}function so(l){return["".concat(l,"Start"),"".concat(l,"Lines")]}function _r(l){return l==="old"?function(i){return Ta(i)?-1:wa(i)?i.oldLineNumber:i.lineNumber}:function(i){return Qt(i)?-1:wa(i)?i.newLineNumber:i.lineNumber}}function kp(l,i){return function(r,s){var o=r[l],d=o+r[i];return s>=o&&s<d}}function d1(l,i){return function(r,s,o){var d=r[l]+r[i],h=s[l];return o>=d&&o<h}}function Rp(l){var i=_r(l),r=(function(s){var o=it(so(s),2),d=kp(o[0],o[1]);return function(h,y){return h.find((function(g){return d(g,y)}))}})(l);return function(s,o){var d=r(s,o);if(d)return d.changes.find((function(h){return i(h)===o}))}}function jo(l){var i=l==="old"?"new":"old",r=it(so(l),2),s=r[0],o=r[1],d=it(so(i),2),h=d[0],y=d[1],g=_r(l),m=_r(i),b=kp(s,o),x=d1(s,o);return function(S,E){var A=o1(S);if(E<A[s]){var T=A[s]-E;return A[h]-T}var _=f1(S);if(_[s]+_[o]<=E){var U=E-_[s]-_[o];return _[h]+_[y]+U}for(var q=0;q<S.length;q++){var O=S[q],F=S[q+1];if(b(O,E)){var Z=O.changes.findIndex((function(re){return g(re)===E})),X=O.changes[Z];if(wa(X))return m(X);var R=Qt(X)?Z+1:Z-1,M=O.changes[R];if(!M)return-1;var K=Ta(X)?"delete":"insert";return M.type===K?m(M):-1}if(x(O,F,E)){var ie=E-O[s]-O[o];return O[h]+O[y]+ie}}throw new Error("Unexpected line position ".concat(E))}}var h1=function(){this.__data__=[],this.size=0},Mp=function(l,i){return l===i||l!=l&&i!=i},ys=function(l,i){for(var r=l.length;r--;)if(Mp(l[r][0],i))return r;return-1},g1=Array.prototype.splice,m1=function(l){var i=this.__data__,r=ys(i,l);return!(r<0)&&(r==i.length-1?i.pop():g1.call(i,r,1),--this.size,!0)},p1=function(l){var i=this.__data__,r=ys(i,l);return r<0?void 0:i[r][1]},y1=function(l){return ys(this.__data__,l)>-1},b1=function(l,i){var r=this.__data__,s=ys(r,l);return s<0?(++this.size,r.push([l,i])):r[s][1]=i,this};function pl(l){var i=-1,r=l==null?0:l.length;for(this.clear();++i<r;){var s=l[i];this.set(s[0],s[1])}}pl.prototype.clear=h1,pl.prototype.delete=m1,pl.prototype.get=p1,pl.prototype.has=y1,pl.prototype.set=b1;var bs=pl,v1=function(){this.__data__=new bs,this.size=0},x1=function(l){var i=this.__data__,r=i.delete(l);return this.size=i.size,r},S1=function(l){return this.__data__.get(l)},E1=function(l){return this.__data__.has(l)},Dp=typeof ns=="object"&&ns&&ns.Object===Object&&ns,N1=typeof self=="object"&&self&&self.Object===Object&&self,_n=Dp||N1||Function("return this")(),sn=_n.Symbol,zp=Object.prototype,w1=zp.hasOwnProperty,A1=zp.toString,Ar=sn?sn.toStringTag:void 0,T1=function(l){var i=w1.call(l,Ar),r=l[Ar];try{l[Ar]=void 0;var s=!0}catch{}var o=A1.call(l);return s&&(i?l[Ar]=r:delete l[Ar]),o},C1=Object.prototype.toString,_1=function(l){return C1.call(l)},Hm=sn?sn.toStringTag:void 0,Cl=function(l){return l==null?l===void 0?"[object Undefined]":"[object Null]":Hm&&Hm in Object(l)?T1(l):_1(l)},Oo=function(l){var i=typeof l;return l!=null&&(i=="object"||i=="function")},Lp=function(l){if(!Oo(l))return!1;var i=Cl(l);return i=="[object Function]"||i=="[object GeneratorFunction]"||i=="[object AsyncFunction]"||i=="[object Proxy]"},Pc=_n["__core-js_shared__"],Gm=(function(){var l=/[^.]+$/.exec(Pc&&Pc.keys&&Pc.keys.IE_PROTO||"");return l?"Symbol(src)_1."+l:""})(),j1=function(l){return!!Gm&&Gm in l},O1=Function.prototype.toString,Ca=function(l){if(l!=null){try{return O1.call(l)}catch{}try{return l+""}catch{}}return""},k1=/^\[object .+?Constructor\]$/,R1=Function.prototype,M1=Object.prototype,D1=R1.toString,z1=M1.hasOwnProperty,L1=RegExp("^"+D1.call(z1).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),U1=function(l){return!(!Oo(l)||j1(l))&&(Lp(l)?L1:k1).test(Ca(l))},B1=function(l,i){return l==null?void 0:l[i]},_a=function(l,i){var r=B1(l,i);return U1(r)?r:void 0},jr=_a(_n,"Map"),Or=_a(Object,"create"),H1=function(){this.__data__=Or?Or(null):{},this.size=0},G1=function(l){var i=this.has(l)&&delete this.__data__[l];return this.size-=i?1:0,i},Y1=Object.prototype.hasOwnProperty,q1=function(l){var i=this.__data__;if(Or){var r=i[l];return r==="__lodash_hash_undefined__"?void 0:r}return Y1.call(i,l)?i[l]:void 0},I1=Object.prototype.hasOwnProperty,X1=function(l){var i=this.__data__;return Or?i[l]!==void 0:I1.call(i,l)},F1=function(l,i){var r=this.__data__;return this.size+=this.has(l)?0:1,r[l]=Or&&i===void 0?"__lodash_hash_undefined__":i,this};function yl(l){var i=-1,r=l==null?0:l.length;for(this.clear();++i<r;){var s=l[i];this.set(s[0],s[1])}}yl.prototype.clear=H1,yl.prototype.delete=G1,yl.prototype.get=q1,yl.prototype.has=X1,yl.prototype.set=F1;var Ym=yl,$1=function(){this.size=0,this.__data__={hash:new Ym,map:new(jr||bs),string:new Ym}},Z1=function(l){var i=typeof l;return i=="string"||i=="number"||i=="symbol"||i=="boolean"?l!=="__proto__":l===null},vs=function(l,i){var r=l.__data__;return Z1(i)?r[typeof i=="string"?"string":"hash"]:r.map},V1=function(l){var i=vs(this,l).delete(l);return this.size-=i?1:0,i},K1=function(l){return vs(this,l).get(l)},Q1=function(l){return vs(this,l).has(l)},J1=function(l,i){var r=vs(this,l),s=r.size;return r.set(l,i),this.size+=r.size==s?0:1,this};function bl(l){var i=-1,r=l==null?0:l.length;for(this.clear();++i<r;){var s=l[i];this.set(s[0],s[1])}}bl.prototype.clear=$1,bl.prototype.delete=V1,bl.prototype.get=K1,bl.prototype.has=Q1,bl.prototype.set=J1;var xs=bl,W1=function(l,i){var r=this.__data__;if(r instanceof bs){var s=r.__data__;if(!jr||s.length<199)return s.push([l,i]),this.size=++r.size,this;r=this.__data__=new xs(s)}return r.set(l,i),this.size=r.size,this};function vl(l){var i=this.__data__=new bs(l);this.size=i.size}vl.prototype.clear=v1,vl.prototype.delete=x1,vl.prototype.get=S1,vl.prototype.has=E1,vl.prototype.set=W1;var us=vl,P1=function(l){return this.__data__.set(l,"__lodash_hash_undefined__"),this},ex=function(l){return this.__data__.has(l)};function cs(l){var i=-1,r=l==null?0:l.length;for(this.__data__=new xs;++i<r;)this.add(l[i])}cs.prototype.add=cs.prototype.push=P1,cs.prototype.has=ex;var tx=cs,nx=function(l,i){for(var r=-1,s=l==null?0:l.length;++r<s;)if(i(l[r],r,l))return!0;return!1},ax=function(l,i){return l.has(i)},Up=function(l,i,r,s,o,d){var h=1&r,y=l.length,g=i.length;if(y!=g&&!(h&&g>y))return!1;var m=d.get(l),b=d.get(i);if(m&&b)return m==i&&b==l;var x=-1,S=!0,E=2&r?new tx:void 0;for(d.set(l,i),d.set(i,l);++x<y;){var A=l[x],T=i[x];if(s)var _=h?s(T,A,x,i,l,d):s(A,T,x,l,i,d);if(_!==void 0){if(_)continue;S=!1;break}if(E){if(!nx(i,(function(U,q){if(!ax(E,q)&&(A===U||o(A,U,r,s,d)))return E.push(q)}))){S=!1;break}}else if(A!==T&&!o(A,T,r,s,d)){S=!1;break}}return d.delete(l),d.delete(i),S},qm=_n.Uint8Array,lx=function(l){var i=-1,r=Array(l.size);return l.forEach((function(s,o){r[++i]=[o,s]})),r},rx=function(l){var i=-1,r=Array(l.size);return l.forEach((function(s){r[++i]=s})),r},Im=sn?sn.prototype:void 0,eo=Im?Im.valueOf:void 0,ix=function(l,i,r,s,o,d,h){switch(r){case"[object DataView]":if(l.byteLength!=i.byteLength||l.byteOffset!=i.byteOffset)return!1;l=l.buffer,i=i.buffer;case"[object ArrayBuffer]":return!(l.byteLength!=i.byteLength||!d(new qm(l),new qm(i)));case"[object Boolean]":case"[object Date]":case"[object Number]":return Mp(+l,+i);case"[object Error]":return l.name==i.name&&l.message==i.message;case"[object RegExp]":case"[object String]":return l==i+"";case"[object Map]":var y=lx;case"[object Set]":var g=1&s;if(y||(y=rx),l.size!=i.size&&!g)return!1;var m=h.get(l);if(m)return m==i;s|=2,h.set(l,i);var b=Up(y(l),y(i),s,o,d,h);return h.delete(l),b;case"[object Symbol]":if(eo)return eo.call(l)==eo.call(i)}return!1},Bp=function(l,i){for(var r=-1,s=i.length,o=l.length;++r<s;)l[o+r]=i[r];return l},Jt=Array.isArray,sx=function(l,i,r){var s=i(l);return Jt(l)?s:Bp(s,r(l))},ux=function(l,i){for(var r=-1,s=l==null?0:l.length,o=0,d=[];++r<s;){var h=l[r];i(h,r,l)&&(d[o++]=h)}return d},cx=function(){return[]},ox=Object.prototype.propertyIsEnumerable,Xm=Object.getOwnPropertySymbols,fx=Xm?function(l){return l==null?[]:(l=Object(l),ux(Xm(l),(function(i){return ox.call(l,i)})))}:cx,dx=function(l,i){for(var r=-1,s=Array(l);++r<l;)s[r]=i(r);return s},Al=function(l){return l!=null&&typeof l=="object"},Fm=function(l){return Al(l)&&Cl(l)=="[object Arguments]"},Hp=Object.prototype,hx=Hp.hasOwnProperty,gx=Hp.propertyIsEnumerable,ko=Fm((function(){return arguments})())?Fm:function(l){return Al(l)&&hx.call(l,"callee")&&!gx.call(l,"callee")},mx=function(){return!1},uo=Mr((function(l,i){var r=i&&!i.nodeType&&i,s=r&&l&&!l.nodeType&&l,o=s&&s.exports===r?_n.Buffer:void 0,d=(o?o.isBuffer:void 0)||mx;l.exports=d})),px=/^(?:0|[1-9]\d*)$/,Gp=function(l,i){var r=typeof l;return!!(i=i??9007199254740991)&&(r=="number"||r!="symbol"&&px.test(l))&&l>-1&&l%1==0&&l<i},Ro=function(l){return typeof l=="number"&&l>-1&&l%1==0&&l<=9007199254740991},qe={};qe["[object Float32Array]"]=qe["[object Float64Array]"]=qe["[object Int8Array]"]=qe["[object Int16Array]"]=qe["[object Int32Array]"]=qe["[object Uint8Array]"]=qe["[object Uint8ClampedArray]"]=qe["[object Uint16Array]"]=qe["[object Uint32Array]"]=!0,qe["[object Arguments]"]=qe["[object Array]"]=qe["[object ArrayBuffer]"]=qe["[object Boolean]"]=qe["[object DataView]"]=qe["[object Date]"]=qe["[object Error]"]=qe["[object Function]"]=qe["[object Map]"]=qe["[object Number]"]=qe["[object Object]"]=qe["[object RegExp]"]=qe["[object Set]"]=qe["[object String]"]=qe["[object WeakMap]"]=!1;var yx=function(l){return Al(l)&&Ro(l.length)&&!!qe[Cl(l)]},bx=function(l){return function(i){return l(i)}},$m=Mr((function(l,i){var r=i&&!i.nodeType&&i,s=r&&l&&!l.nodeType&&l,o=s&&s.exports===r&&Dp.process,d=(function(){try{var h=s&&s.require&&s.require("util").types;return h||o&&o.binding&&o.binding("util")}catch{}})();l.exports=d})),Zm=$m&&$m.isTypedArray,Yp=Zm?bx(Zm):yx,vx=Object.prototype.hasOwnProperty,xx=function(l,i){var r=Jt(l),s=!r&&ko(l),o=!r&&!s&&uo(l),d=!r&&!s&&!o&&Yp(l),h=r||s||o||d,y=h?dx(l.length,String):[],g=y.length;for(var m in l)!vx.call(l,m)||h&&(m=="length"||o&&(m=="offset"||m=="parent")||d&&(m=="buffer"||m=="byteLength"||m=="byteOffset")||Gp(m,g))||y.push(m);return y},Sx=Object.prototype,Ex=function(l){var i=l&&l.constructor;return l===(typeof i=="function"&&i.prototype||Sx)},Nx=(function(l,i){return function(r){return l(i(r))}})(Object.keys,Object),wx=Object.prototype.hasOwnProperty,Ax=function(l){if(!Ex(l))return Nx(l);var i=[];for(var r in Object(l))wx.call(l,r)&&r!="constructor"&&i.push(r);return i},Mo=function(l){return l!=null&&Ro(l.length)&&!Lp(l)},Do=function(l){return Mo(l)?xx(l):Ax(l)},Vm=function(l){return sx(l,Do,fx)},Tx=Object.prototype.hasOwnProperty,Cx=function(l,i,r,s,o,d){var h=1&r,y=Vm(l),g=y.length;if(g!=Vm(i).length&&!h)return!1;for(var m=g;m--;){var b=y[m];if(!(h?b in i:Tx.call(i,b)))return!1}var x=d.get(l),S=d.get(i);if(x&&S)return x==i&&S==l;var E=!0;d.set(l,i),d.set(i,l);for(var A=h;++m<g;){var T=l[b=y[m]],_=i[b];if(s)var U=h?s(_,T,b,i,l,d):s(T,_,b,l,i,d);if(!(U===void 0?T===_||o(T,_,r,s,d):U)){E=!1;break}A||(A=b=="constructor")}if(E&&!A){var q=l.constructor,O=i.constructor;q==O||!("constructor"in l)||!("constructor"in i)||typeof q=="function"&&q instanceof q&&typeof O=="function"&&O instanceof O||(E=!1)}return d.delete(l),d.delete(i),E},co=_a(_n,"DataView"),oo=_a(_n,"Promise"),fo=_a(_n,"Set"),ho=_a(_n,"WeakMap"),_x=Ca(co),jx=Ca(jr),Ox=Ca(oo),kx=Ca(fo),Rx=Ca(ho),Ea=Cl;(co&&Ea(new co(new ArrayBuffer(1)))!="[object DataView]"||jr&&Ea(new jr)!="[object Map]"||oo&&Ea(oo.resolve())!="[object Promise]"||fo&&Ea(new fo)!="[object Set]"||ho&&Ea(new ho)!="[object WeakMap]")&&(Ea=function(l){var i=Cl(l),r=i=="[object Object]"?l.constructor:void 0,s=r?Ca(r):"";if(s)switch(s){case _x:return"[object DataView]";case jx:return"[object Map]";case Ox:return"[object Promise]";case kx:return"[object Set]";case Rx:return"[object WeakMap]"}return i});var Km=Ea,as="[object Object]",Qm=Object.prototype.hasOwnProperty,Mx=function(l,i,r,s,o,d){var h=Jt(l),y=Jt(i),g=h?"[object Array]":Km(l),m=y?"[object Array]":Km(i),b=(g=g=="[object Arguments]"?as:g)==as,x=(m=m=="[object Arguments]"?as:m)==as,S=g==m;if(S&&uo(l)){if(!uo(i))return!1;h=!0,b=!1}if(S&&!b)return d||(d=new us),h||Yp(l)?Up(l,i,r,s,o,d):ix(l,i,g,r,s,o,d);if(!(1&r)){var E=b&&Qm.call(l,"__wrapped__"),A=x&&Qm.call(i,"__wrapped__");if(E||A){var T=E?l.value():l,_=A?i.value():i;return d||(d=new us),o(T,_,r,s,d)}}return!!S&&(d||(d=new us),Cx(l,i,r,s,o,d))},Ss=function l(i,r,s,o,d){return i===r||(i==null||r==null||!Al(i)&&!Al(r)?i!=i&&r!=r:Mx(i,r,s,o,l,d))},Dx=function(l,i,r,s){var o=r.length,d=o;if(l==null)return!d;for(l=Object(l);o--;){var h=r[o];if(h[2]?h[1]!==l[h[0]]:!(h[0]in l))return!1}for(;++o<d;){var y=(h=r[o])[0],g=l[y],m=h[1];if(h[2]){if(g===void 0&&!(y in l))return!1}else{var b=new us,x;if(!(x===void 0?Ss(m,g,3,s,b):x))return!1}}return!0},qp=function(l){return l==l&&!Oo(l)},zx=function(l){for(var i=Do(l),r=i.length;r--;){var s=i[r],o=l[s];i[r]=[s,o,qp(o)]}return i},Ip=function(l,i){return function(r){return r!=null&&r[l]===i&&(i!==void 0||l in Object(r))}},Lx=function(l){var i=zx(l);return i.length==1&&i[0][2]?Ip(i[0][0],i[0][1]):function(r){return r===l||Dx(r,l,i)}},zo=function(l){return typeof l=="symbol"||Al(l)&&Cl(l)=="[object Symbol]"},Ux=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Bx=/^\w*$/,Lo=function(l,i){if(Jt(l))return!1;var r=typeof l;return!(r!="number"&&r!="symbol"&&r!="boolean"&&l!=null&&!zo(l))||Bx.test(l)||!Ux.test(l)||i!=null&&l in Object(i)};function Uo(l,i){if(typeof l!="function"||i!=null&&typeof i!="function")throw new TypeError("Expected a function");var r=function(){var s=arguments,o=i?i.apply(this,s):s[0],d=r.cache;if(d.has(o))return d.get(o);var h=l.apply(this,s);return r.cache=d.set(o,h)||d,h};return r.cache=new(Uo.Cache||xs),r}Uo.Cache=xs;var Hx=Uo,Gx=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Yx=/\\(\\)?/g,qx=(function(l){var i=Hx(l,(function(s){return r.size===500&&r.clear(),s})),r=i.cache;return i})((function(l){var i=[];return l.charCodeAt(0)===46&&i.push(""),l.replace(Gx,(function(r,s,o,d){i.push(o?d.replace(Yx,"$1"):s||r)})),i})),Xp=function(l,i){for(var r=-1,s=l==null?0:l.length,o=Array(s);++r<s;)o[r]=i(l[r],r,l);return o},Jm=sn?sn.prototype:void 0,Wm=Jm?Jm.toString:void 0,Ix=function l(i){if(typeof i=="string")return i;if(Jt(i))return Xp(i,l)+"";if(zo(i))return Wm?Wm.call(i):"";var r=i+"";return r=="0"&&1/i==-1/0?"-0":r},Xx=function(l){return l==null?"":Ix(l)},Fp=function(l,i){return Jt(l)?l:Lo(l,i)?[l]:qx(Xx(l))},Es=function(l){if(typeof l=="string"||zo(l))return l;var i=l+"";return i=="0"&&1/l==-1/0?"-0":i},$p=function(l,i){for(var r=0,s=(i=Fp(i,l)).length;l!=null&&r<s;)l=l[Es(i[r++])];return r&&r==s?l:void 0},Fx=function(l,i,r){var s=l==null?void 0:$p(l,i);return s===void 0?r:s},$x=function(l,i){return l!=null&&i in Object(l)},Zx=function(l,i,r){for(var s=-1,o=(i=Fp(i,l)).length,d=!1;++s<o;){var h=Es(i[s]);if(!(d=l!=null&&r(l,h)))break;l=l[h]}return d||++s!=o?d:!!(o=l==null?0:l.length)&&Ro(o)&&Gp(h,o)&&(Jt(l)||ko(l))},Vx=function(l,i){return l!=null&&Zx(l,i,$x)},Kx=function(l,i){return Lo(l)&&qp(i)?Ip(Es(l),i):function(r){var s=Fx(r,l);return s===void 0&&s===i?Vx(r,l):Ss(i,s,3)}},Qx=function(l){return l},Jx=function(l){return function(i){return i==null?void 0:i[l]}},Wx=function(l){return function(i){return $p(i,l)}},Px=function(l){return Lo(l)?Jx(Es(l)):Wx(l)},Bo=function(l){return typeof l=="function"?l:l==null?Qx:typeof l=="object"?Jt(l)?Kx(l[0],l[1]):Lx(l):Px(l)};function Bt(l){if(!l)throw new Error("change is not provided");if(wa(l))return"N".concat(l.oldLineNumber);var i=Ta(l)?"I":"D";return"".concat(i).concat(l.lineNumber)}jo("old");var Ns=_r("old"),ws=_r("new");Rp("old");Rp("new");jo("new");jo("old");var Pm=(function(){try{var l=_a(Object,"defineProperty");return l({},"",{}),l}catch{}})(),Zp=function(l,i,r){i=="__proto__"&&Pm?Pm(l,i,{configurable:!0,enumerable:!0,value:r,writable:!0}):l[i]=r},eS=function(l){return function(i,r,s){for(var o=-1,d=Object(i),h=s(i),y=h.length;y--;){var g=h[++o];if(r(d[g],g,d)===!1)break}return i}},tS=eS(),Vp=function(l,i){return l&&tS(l,i,Do)},Kp=function(l,i){var r={};return i=Bo(i),Vp(l,(function(s,o,d){Zp(r,o,i(s,o,d))})),r},nS=["changeKey","text","tokens","renderToken"],ep=function l(i,r){var s=i.type,o=i.value,d=i.markType,h=i.properties,y=i.className,g=i.children,m=function(x){return f.jsx("span",{className:x,children:o||g&&g.map(l)},r)};switch(s){case"text":return o;case"mark":return m("diff-code-mark diff-code-mark-".concat(d));case"edit":return m("diff-code-edit");default:var b=h&&h.className;return m(Ut(y||b))}};function aS(l){if(!Array.isArray(l))return!0;if(l.length>1)return!1;if(l.length===1){var i=it(l,1)[0];return i.type==="text"&&!i.value}return!0}function lS(l){var i=l.changeKey,r=l.text,s=l.tokens,o=l.renderToken,d=aa(l,nS),h=o?function(y,g){return o(y,ep,g)}:ep;return f.jsx("td",Me(Me({},d),{},{"data-change-key":i,children:s?aS(s)?" ":s.map(h):r||" "}))}var Qp=z.memo(lS);function Jp(l,i){return function(){var r=i==="old"?Ns(l):ws(l);return r===-1?void 0:r}}function Wp(l,i){return function(r){return l&&r?f.jsx("a",{href:i?"#"+i:void 0,children:r}):r}}function ds(l,i){return i?function(r){l(),i(r)}:l}function tp(l,i,r,s){return z.useMemo((function(){var o=Kp(l,(function(d){return function(h){return d&&d(i,h)}}));return o.onMouseEnter=ds(r,o.onMouseEnter),o.onMouseLeave=ds(s,o.onMouseLeave),o}),[l,r,s,i])}function np(l,i,r,s,o,d,h,y,g){var m={change:i,side:s,inHoverState:y,renderDefault:Jp(i,s),wrapInAnchor:Wp(o,d)};return f.jsx("td",Me(Me({className:l},h),{},{"data-change-key":r,children:g(m)}))}function rS(l){var i,r,s,o=l.change,d=l.selected,h=l.tokens,y=l.className,g=l.generateLineClassName,m=l.gutterClassName,b=l.codeClassName,x=l.gutterEvents,S=l.codeEvents,E=l.hideGutter,A=l.gutterAnchor,T=l.generateAnchorID,_=l.renderToken,U=l.renderGutter,q=o.type,O=o.content,F=Bt(o),Z=(i=it(z.useState(!1),2),r=i[0],s=i[1],[r,z.useCallback((function(){return s(!0)}),[]),z.useCallback((function(){return s(!1)}),[])]),X=it(Z,3),R=X[0],M=X[1],K=X[2],ie=z.useMemo((function(){return{change:o}}),[o]),re=tp(x,ie,M,K),de=tp(S,ie,M,K),ne=T(o),P=g({changes:[o],defaultGenerate:function(){return y}}),J=Ut("diff-gutter","diff-gutter-".concat(q),m,{"diff-gutter-selected":d}),k=Ut("diff-code","diff-code-".concat(q),b,{"diff-code-selected":d});return f.jsxs("tr",{id:ne,className:Ut("diff-line",P),children:[!E&&np(J,o,F,"old",A,ne,re,R,U),!E&&np(J,o,F,"new",A,ne,re,R,U),f.jsx(Qp,Me({className:k,changeKey:F,text:O,tokens:h,renderToken:_},de))]})}var iS=z.memo(rS);function sS(l){var i=l.hideGutter,r=l.element;return f.jsx("tr",{className:"diff-widget",children:f.jsx("td",{colSpan:i?1:3,className:"diff-widget-content",children:r})})}var uS=["hideGutter","selectedChanges","tokens","lineClassName"],cS=["hunk","widgets","className"];function oS(l){var i=l.hunk,r=l.widgets,s=l.className,o=aa(l,cS),d=(function(h,y){return h.reduce((function(g,m){var b=Bt(m);g.push(["change",b,m]);var x=y[b];return x&&g.push(["widget",b,x]),g}),[])})(i.changes,r);return f.jsx("tbody",{className:Ut("diff-hunk",s),children:d.map((function(h){return(function(y,g){var m=it(y,3),b=m[0],x=m[1],S=m[2],E=g.hideGutter,A=g.selectedChanges,T=g.tokens,_=g.lineClassName,U=aa(g,uS);if(b==="change"){var q=Qt(S)?"old":"new",O=Qt(S)?Ns(S):ws(S),F=T?T[q][O-1]:null;return f.jsx(iS,Me({className:_,change:S,hideGutter:E,selected:A.includes(x),tokens:F},U),"change".concat(x))}return b==="widget"?f.jsx(sS,{hideGutter:E,element:S},"widget".concat(x)):null})(h,o)}))})}var Pp=0;function ls(l,i,r,s){var o=z.useCallback((function(){return i(l)}),[l,i]),d=z.useCallback((function(){return i("")}),[i]);return z.useMemo((function(){var h=Kp(s,(function(y){return function(g){return y&&y({side:l,change:r},g)}}));return h.onMouseEnter=ds(o,h.onMouseEnter),h.onMouseLeave=ds(d,h.onMouseLeave),h}),[r,s,o,l,d])}function to(l){var i=l.change,r=l.side,s=l.selected,o=l.tokens,d=l.gutterClassName,h=l.codeClassName,y=l.gutterEvents,g=l.codeEvents,m=l.anchorID,b=l.gutterAnchor,x=l.gutterAnchorTarget,S=l.hideGutter,E=l.hover,A=l.renderToken,T=l.renderGutter;if(!i){var _=Ut("diff-gutter","diff-gutter-omit",d),U=Ut("diff-code","diff-code-omit",h);return[!S&&f.jsx("td",{className:_},"gutter"),f.jsx("td",{className:U},"code")]}var q=i.type,O=i.content,F=Bt(i),Z=r===Pp?"old":"new",X=Me({id:m||void 0,className:Ut("diff-gutter","diff-gutter-".concat(q),ro({"diff-gutter-selected":s},"diff-line-hover-"+Z,E),d),children:T({change:i,side:Z,inHoverState:E,renderDefault:Jp(i,Z),wrapInAnchor:Wp(b,x)})},y),R=Ut("diff-code","diff-code-".concat(q),ro({"diff-code-selected":s},"diff-line-hover-"+Z,E),h);return[!S&&f.jsx("td",Me(Me({},X),{},{"data-change-key":F}),"gutter"),f.jsx(Qp,Me({className:R,changeKey:F,text:O,tokens:o,renderToken:A},g),"code")]}function fS(l){var i=l.className,r=l.oldChange,s=l.newChange,o=l.oldSelected,d=l.newSelected,h=l.oldTokens,y=l.newTokens,g=l.monotonous,m=l.gutterClassName,b=l.codeClassName,x=l.gutterEvents,S=l.codeEvents,E=l.hideGutter,A=l.generateAnchorID,T=l.generateLineClassName,_=l.gutterAnchor,U=l.renderToken,q=l.renderGutter,O=it(z.useState(""),2),F=O[0],Z=O[1],X=ls("old",Z,r,x),R=ls("new",Z,s,x),M=ls("old",Z,r,S),K=ls("new",Z,s,S),ie=r&&A(r),re=s&&A(s),de=T({changes:[r,s],defaultGenerate:function(){return i}}),ne={monotonous:g,hideGutter:E,gutterClassName:m,codeClassName:b,gutterEvents:x,codeEvents:S,renderToken:U,renderGutter:q},P=Me(Me({},ne),{},{change:r,side:Pp,selected:o,tokens:h,gutterEvents:X,codeEvents:M,anchorID:ie,gutterAnchor:_,gutterAnchorTarget:ie,hover:F==="old"}),J=Me(Me({},ne),{},{change:s,side:1,selected:d,tokens:y,gutterEvents:R,codeEvents:K,anchorID:r===s?null:re,gutterAnchor:_,gutterAnchorTarget:r===s?ie:re,hover:F==="new"});if(g)return f.jsx("tr",{className:Ut("diff-line",de),children:to(r?P:J)});var k=(function(B,le){return B&&!le?"diff-line-old-only":!B&&le?"diff-line-new-only":B===le?"diff-line-normal":"diff-line-compare"})(r,s);return f.jsxs("tr",{className:Ut("diff-line",k,de),children:[to(P),to(J)]})}var dS=z.memo(fS);function hS(l){var i=l.hideGutter,r=l.oldElement,s=l.newElement;return l.monotonous?f.jsx("tr",{className:"diff-widget",children:f.jsx("td",{colSpan:i?1:2,className:"diff-widget-content",children:r||s})}):r===s?f.jsx("tr",{className:"diff-widget",children:f.jsx("td",{colSpan:i?2:4,className:"diff-widget-content",children:r})}):f.jsxs("tr",{className:"diff-widget",children:[f.jsx("td",{colSpan:i?1:2,className:"diff-widget-content",children:r}),f.jsx("td",{colSpan:i?1:2,className:"diff-widget-content",children:s})]})}var gS=["selectedChanges","monotonous","hideGutter","tokens","lineClassName"],mS=["hunk","widgets","className"];function rs(l,i){return(l?Bt(l):"00")+(i?Bt(i):"00")}function pS(l){var i=l.hunk,r=l.widgets,s=l.className,o=aa(l,mS),d=(function(h,y){for(var g=function(U){if(!U)return null;var q=Bt(U);return y[q]||null},m=[],b=0;b<h.length;b++){var x=h[b];if(wa(x))m.push(["change",rs(x,x),x,x]);else if(Qt(x)){var S=h[b+1];S&&Ta(S)?(b+=1,m.push(["change",rs(x,S),x,S])):m.push(["change",rs(x,null),x,null])}else m.push(["change",rs(null,x),null,x]);var E=m[m.length-1],A=g(E[2]),T=g(E[3]);if(A||T){var _=E[1];m.push(["widget",_,A,T])}}return m})(i.changes,r);return f.jsx("tbody",{className:Ut("diff-hunk",s),children:d.map((function(h){return(function(y,g){var m=it(y,4),b=m[0],x=m[1],S=m[2],E=m[3],A=g.selectedChanges,T=g.monotonous,_=g.hideGutter,U=g.tokens,q=g.lineClassName,O=aa(g,gS);if(b==="change"){var F=!!S&&A.includes(Bt(S)),Z=!!E&&A.includes(Bt(E)),X=S&&U?U.old[Ns(S)-1]:null,R=E&&U?U.new[ws(E)-1]:null;return f.jsx(dS,Me({className:q,oldChange:S,newChange:E,monotonous:T,hideGutter:_,oldSelected:F,newSelected:Z,oldTokens:X,newTokens:R},O),"change".concat(x))}return b==="widget"?f.jsx(hS,{monotonous:T,hideGutter:_,oldElement:S,newElement:E},"widget".concat(x)):null})(h,o)}))})}var yS=["gutterType","hunkClassName"];function ey(l){var i=l.hunk,r=i1(),s=r.gutterType,o=r.hunkClassName,d=aa(r,yS),h=s==="none",y=s==="anchor",g=d.viewType==="unified"?oS:pS;return f.jsx(g,Me(Me({},d),{},{hunk:i,hideGutter:h,gutterAnchor:y,className:o}))}function bS(){}function ap(l,i){var r=i?"auto":"none";l instanceof HTMLElement&&l.style.userSelect!==r&&(l.style.userSelect=r)}function vS(l){return l.map((function(i){return f.jsx(ey,{hunk:i},(function(r){return"-".concat(r.oldStart,",").concat(r.oldLines," +").concat(r.newStart,",").concat(r.newLines)})(i))}))}function xS(l){var i=l.diffType,r=l.hunks,s=l.optimizeSelection,o=l.className,d=l.hunkClassName,h=d===void 0?wt.hunkClassName:d,y=l.lineClassName,g=y===void 0?wt.lineClassName:y,m=l.generateLineClassName,b=m===void 0?wt.generateLineClassName:m,x=l.gutterClassName,S=x===void 0?wt.gutterClassName:x,E=l.codeClassName,A=E===void 0?wt.codeClassName:E,T=l.gutterType,_=T===void 0?wt.gutterType:T,U=l.viewType,q=U===void 0?wt.viewType:U,O=l.gutterEvents,F=O===void 0?wt.gutterEvents:O,Z=l.codeEvents,X=Z===void 0?wt.codeEvents:Z,R=l.generateAnchorID,M=R===void 0?wt.generateAnchorID:R,K=l.selectedChanges,ie=K===void 0?wt.selectedChanges:K,re=l.widgets,de=re===void 0?wt.widgets:re,ne=l.renderGutter,P=ne===void 0?wt.renderGutter:ne,J=l.tokens,k=l.renderToken,B=l.children,le=B===void 0?vS:B,ue=z.useRef(null),ce=z.useCallback((function(ae){var fe=ae.target;if(ae.button===0){var Ue=(function(gt,mt){for(var $e=gt;$e&&$e!==document.documentElement&&!$e.classList.contains(mt);)$e=$e.parentElement;return $e===document.documentElement?null:$e})(fe,"diff-code");if(Ue&&Ue.parentElement){var be=window.getSelection();be&&be.removeAllRanges();var Te=xl(Ue.parentElement.children).indexOf(Ue);if(Te===1||Te===3){var Fe,dt=_o(ue.current?ue.current.querySelectorAll(".diff-line"):[]);try{for(dt.s();!(Fe=dt.n()).done;){var Ht=Fe.value.children;ap(Ht[1],Te===1),ap(Ht[3],Te===3)}}catch(gt){dt.e(gt)}finally{dt.f()}}}}}),[]),N=_==="none",Y=i==="add"||i==="delete",ee=q==="split"&&!Y&&s?ce:bS,W=z.useMemo((function(){return f.jsxs("colgroup",q==="unified"?{children:[!N&&f.jsx("col",{className:"diff-gutter-col"}),!N&&f.jsx("col",{className:"diff-gutter-col"}),f.jsx("col",{})]}:Y?{children:[!N&&f.jsx("col",{className:"diff-gutter-col"}),f.jsx("col",{})]}:{children:[!N&&f.jsx("col",{className:"diff-gutter-col"}),f.jsx("col",{}),!N&&f.jsx("col",{className:"diff-gutter-col"}),f.jsx("col",{})]})}),[q,Y,N]),Q=z.useMemo((function(){return{hunkClassName:h,lineClassName:g,generateLineClassName:b,gutterClassName:S,codeClassName:A,monotonous:Y,hideGutter:N,viewType:q,gutterType:_,codeEvents:X,gutterEvents:F,generateAnchorID:M,selectedChanges:ie,widgets:de,renderGutter:P,tokens:J,renderToken:k}}),[A,X,M,S,F,_,N,h,g,b,Y,P,k,ie,J,q,de]);return f.jsx(r1,{value:Q,children:f.jsxs("table",{ref:ue,className:Ut("diff","diff-".concat(q),o),onMouseDown:ee,children:[W,le(r)]})})}var SS=z.memo(xS),ES=function(l,i,r,s){for(var o=-1,d=l==null?0:l.length;++o<d;){var h=l[o];i(s,h,r(h),l)}return s},NS=function(l,i){return function(r,s){if(r==null)return r;if(!Mo(r))return l(r,s);for(var o=r.length,d=-1,h=Object(r);++d<o&&s(h[d],d,h)!==!1;);return r}},ty=NS(Vp),wS=function(l,i,r,s){return ty(l,(function(o,d,h){i(s,o,r(o),h)})),s},AS=function(l,i){return function(r,s){var o=Jt(r)?ES:wS,d=i?i():{};return o(r,l,Bo(s),d)}},TS=AS((function(l,i,r){Zp(l,r,i)})),lp=sn?sn.isConcatSpreadable:void 0,CS=function(l){return Jt(l)||ko(l)||!!(lp&&l&&l[lp])},_S=function(i,r,s,o,d){var h=-1,y=i.length;for(s||(s=CS),d||(d=[]);++h<y;){var g=i[h];s(g)?Bp(d,g):d[d.length]=g}return d},jS=function(l,i){var r=-1,s=Mo(l)?Array(l.length):[];return ty(l,(function(o,d,h){s[++r]=i(o,d,h)})),s},OS=function(l,i){return(Jt(l)?Xp:jS)(l,Bo(i))},kS=function(l,i){return _S(OS(l,i))};function RS(l,i){var r=i.newStart,s=i.changes.reduce((function(o,d){var h=it(o,2),y=h[0],g=h[1];return Qt(d)?(y.splice(g,1),[y,g]):(Ta(d)&&y.splice(g,0,d.content),[y,g+1])}),[l,r-1]);return it(s,1)[0]}function rp(l,i,r){if(!l.length)return[];var s=i==="old"?Ns:ws,o=TS(l,s),d=s(l[l.length-1]);return Array.from({length:d}).map((function(h,y){return r(o[y+1])}))}function MS(l){var i=(function(h){return kS(h,(function(y){return y.changes})).reduce((function(y,g){var m=it(y,2),b=m[0],x=m[1];return wa(g)?(b.push(g),x.push(g)):Qt(g)?b.push(g):x.push(g),[b,x]}),[[],[]])})(l),r=it(i,2),s=r[0],o=r[1],d=function(h){return h?h.content:""};return[rp(s,"old",d).join(`
|
|
338
|
+
`),rp(o,"new",d).join(`
|
|
339
|
+
`)]}function is(l){return{type:"root",children:l}}function DS(l,i){if(i.oldSource){var r=(function(g,m){return m.reduce(RS,g.split(`
|
|
340
|
+
`)).join(`
|
|
341
|
+
`)})(i.oldSource,l),s=i.highlight?function(g){return i.refractor.highlight(g,i.language)}:function(g){return[{type:"text",value:g}]};return[is(s(i.oldSource)),is(s(r))]}var o=it(MS(l),2),d=o[0],h=o[1],y=i.highlight?function(g){return is(i.refractor.highlight(g,i.language))}:function(g){return is([{type:"text",value:g}])};return[y(d),y(h)]}function ny(l){return l.map((function(i){return Me({},i)}))}function zS(l,i){return[].concat(xl(ny(l.slice(0,-1))),[i])}function LS(l){var i=l[l.length-1];if(i.type==="text")return i;throw new Error("Invalid token path with leaf of type ".concat(i.type))}var US=["children"];function ay(l){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];if(l.children){var s=l.children,o=aa(l,US);r.push(o);var d,h=_o(s);try{for(h.s();!(d=h.n()).done;)ay(d.value,i,r)}catch(y){h.e(y)}finally{h.f()}r.pop()}else i.push(ny([].concat(xl(r.slice(1)),[l])));return i}function BS(l){return l.reduce((function(i,r){var s=i[i.length-1],o=(function(g){var m=LS(g);return m.value.includes(`
|
|
342
|
+
`)?m.value.split(`
|
|
343
|
+
`).map((function(b){return zS(g,Me(Me({},m),{},{value:b}))})):[g]})(r),d=l1(o),h=d[0],y=d.slice(1);return[].concat(xl(i.slice(0,-1)),[[].concat(xl(s),[h])],xl(y.map((function(g){return[g]}))))}),[[]])}function ip(l){return BS(ay(l))}var HS=function(l,i,r){var s=(r=typeof r=="function"?r:void 0)?r(l,i):void 0;return s===void 0?Ss(l,i,void 0,r):!!s},GS=function(l,i){return Ss(l,i)},YS=function(l){var i=l==null?0:l.length;return i?l[i-1]:void 0};function qS(l,i){if(!l.children)throw new Error("parent node missing children property");var r,s,o=YS(l.children);return o&&(s=i,(r=o).type===s.type&&(r.type==="text"||r.children&&s.children&&HS(r,s,(function(d,h,y){return y==="chlidren"||GS(d,h)}))))?l.children[l.children.length-1]=(function(d,h){return"value"in d&&"value"in h?Me(Me({},d),{},{value:"".concat(d.value).concat(h.value)}):d})(o,i):l.children.push(i),l.children[l.children.length-1]}function sp(l){var i,r={type:"root",children:[]},s=_o(l);try{var o=function(){var d=i.value;d.reduce((function(h,y,g){return qS(h,g===d.length-1?Me({},y):Me(Me({},y),{},{children:[]}))}),r)};for(s.s();!(i=s.n()).done;)o()}catch(d){s.e(d)}finally{s.f()}return r}var Ho=Mr((function(l){var i=function(){this.Diff_Timeout=1,this.Diff_EditCost=4,this.Match_Threshold=.5,this.Match_Distance=1e3,this.Patch_DeleteThreshold=.5,this.Patch_Margin=4,this.Match_MaxBits=32};i.Diff=function(r,s){return[r,s]},i.prototype.diff_main=function(r,s,o,d){d===void 0&&(d=this.Diff_Timeout<=0?Number.MAX_VALUE:new Date().getTime()+1e3*this.Diff_Timeout);var h=d;if(r==null||s==null)throw new Error("Null input. (diff_main)");if(r==s)return r?[new i.Diff(0,r)]:[];o===void 0&&(o=!0);var y=o,g=this.diff_commonPrefix(r,s),m=r.substring(0,g);r=r.substring(g),s=s.substring(g),g=this.diff_commonSuffix(r,s);var b=r.substring(r.length-g);r=r.substring(0,r.length-g),s=s.substring(0,s.length-g);var x=this.diff_compute_(r,s,y,h);return m&&x.unshift(new i.Diff(0,m)),b&&x.push(new i.Diff(0,b)),this.diff_cleanupMerge(x),x},i.prototype.diff_compute_=function(r,s,o,d){var h;if(!r)return[new i.Diff(1,s)];if(!s)return[new i.Diff(-1,r)];var y=r.length>s.length?r:s,g=r.length>s.length?s:r,m=y.indexOf(g);if(m!=-1)return h=[new i.Diff(1,y.substring(0,m)),new i.Diff(0,g),new i.Diff(1,y.substring(m+g.length))],r.length>s.length&&(h[0][0]=h[2][0]=-1),h;if(g.length==1)return[new i.Diff(-1,r),new i.Diff(1,s)];var b=this.diff_halfMatch_(r,s);if(b){var x=b[0],S=b[1],E=b[2],A=b[3],T=b[4],_=this.diff_main(x,E,o,d),U=this.diff_main(S,A,o,d);return _.concat([new i.Diff(0,T)],U)}return o&&r.length>100&&s.length>100?this.diff_lineMode_(r,s,d):this.diff_bisect_(r,s,d)},i.prototype.diff_lineMode_=function(r,s,o){var d=this.diff_linesToChars_(r,s);r=d.chars1,s=d.chars2;var h=d.lineArray,y=this.diff_main(r,s,!1,o);this.diff_charsToLines_(y,h),this.diff_cleanupSemantic(y),y.push(new i.Diff(0,""));for(var g=0,m=0,b=0,x="",S="";g<y.length;){switch(y[g][0]){case 1:b++,S+=y[g][1];break;case-1:m++,x+=y[g][1];break;case 0:if(m>=1&&b>=1){y.splice(g-m-b,m+b),g=g-m-b;for(var E=this.diff_main(x,S,!1,o),A=E.length-1;A>=0;A--)y.splice(g,0,E[A]);g+=E.length}b=0,m=0,x="",S=""}g++}return y.pop(),y},i.prototype.diff_bisect_=function(r,s,o){for(var d=r.length,h=s.length,y=Math.ceil((d+h)/2),g=y,m=2*y,b=new Array(m),x=new Array(m),S=0;S<m;S++)b[S]=-1,x[S]=-1;b[g+1]=0,x[g+1]=0;for(var E=d-h,A=E%2!=0,T=0,_=0,U=0,q=0,O=0;O<y&&!(new Date().getTime()>o);O++){for(var F=-O+T;F<=O-_;F+=2){for(var Z=g+F,X=(re=F==-O||F!=O&&b[Z-1]<b[Z+1]?b[Z+1]:b[Z-1]+1)-F;re<d&&X<h&&r.charAt(re)==s.charAt(X);)re++,X++;if(b[Z]=re,re>d)_+=2;else if(X>h)T+=2;else if(A&&(K=g+E-F)>=0&&K<m&&x[K]!=-1&&re>=(M=d-x[K]))return this.diff_bisectSplit_(r,s,re,X,o)}for(var R=-O+U;R<=O-q;R+=2){for(var M,K=g+R,ie=(M=R==-O||R!=O&&x[K-1]<x[K+1]?x[K+1]:x[K-1]+1)-R;M<d&&ie<h&&r.charAt(d-M-1)==s.charAt(h-ie-1);)M++,ie++;if(x[K]=M,M>d)q+=2;else if(ie>h)U+=2;else if(!A&&(Z=g+E-R)>=0&&Z<m&&b[Z]!=-1){var re;if(X=g+(re=b[Z])-Z,re>=(M=d-M))return this.diff_bisectSplit_(r,s,re,X,o)}}}return[new i.Diff(-1,r),new i.Diff(1,s)]},i.prototype.diff_bisectSplit_=function(r,s,o,d,h){var y=r.substring(0,o),g=s.substring(0,d),m=r.substring(o),b=s.substring(d),x=this.diff_main(y,g,!1,h),S=this.diff_main(m,b,!1,h);return x.concat(S)},i.prototype.diff_linesToChars_=function(r,s){var o=[],d={};function h(m){for(var b="",x=0,S=-1,E=o.length;S<m.length-1;){(S=m.indexOf(`
|
|
344
|
+
`,x))==-1&&(S=m.length-1);var A=m.substring(x,S+1);(d.hasOwnProperty?d.hasOwnProperty(A):d[A]!==void 0)?b+=String.fromCharCode(d[A]):(E==y&&(A=m.substring(x),S=m.length),b+=String.fromCharCode(E),d[A]=E,o[E++]=A),x=S+1}return b}o[0]="";var y=4e4,g=h(r);return y=65535,{chars1:g,chars2:h(s),lineArray:o}},i.prototype.diff_charsToLines_=function(r,s){for(var o=0;o<r.length;o++){for(var d=r[o][1],h=[],y=0;y<d.length;y++)h[y]=s[d.charCodeAt(y)];r[o][1]=h.join("")}},i.prototype.diff_commonPrefix=function(r,s){if(!r||!s||r.charAt(0)!=s.charAt(0))return 0;for(var o=0,d=Math.min(r.length,s.length),h=d,y=0;o<h;)r.substring(y,h)==s.substring(y,h)?y=o=h:d=h,h=Math.floor((d-o)/2+o);return h},i.prototype.diff_commonSuffix=function(r,s){if(!r||!s||r.charAt(r.length-1)!=s.charAt(s.length-1))return 0;for(var o=0,d=Math.min(r.length,s.length),h=d,y=0;o<h;)r.substring(r.length-h,r.length-y)==s.substring(s.length-h,s.length-y)?y=o=h:d=h,h=Math.floor((d-o)/2+o);return h},i.prototype.diff_commonOverlap_=function(r,s){var o=r.length,d=s.length;if(o==0||d==0)return 0;o>d?r=r.substring(o-d):o<d&&(s=s.substring(0,o));var h=Math.min(o,d);if(r==s)return h;for(var y=0,g=1;;){var m=r.substring(h-g),b=s.indexOf(m);if(b==-1)return y;g+=b,b!=0&&r.substring(h-g)!=s.substring(0,g)||(y=g,g++)}},i.prototype.diff_halfMatch_=function(r,s){if(this.Diff_Timeout<=0)return null;var o=r.length>s.length?r:s,d=r.length>s.length?s:r;if(o.length<4||2*d.length<o.length)return null;var h=this;function y(T,_,U){for(var q,O,F,Z,X=T.substring(U,U+Math.floor(T.length/4)),R=-1,M="";(R=_.indexOf(X,R+1))!=-1;){var K=h.diff_commonPrefix(T.substring(U),_.substring(R)),ie=h.diff_commonSuffix(T.substring(0,U),_.substring(0,R));M.length<ie+K&&(M=_.substring(R-ie,R)+_.substring(R,R+K),q=T.substring(0,U-ie),O=T.substring(U+K),F=_.substring(0,R-ie),Z=_.substring(R+K))}return 2*M.length>=T.length?[q,O,F,Z,M]:null}var g,m,b,x,S,E=y(o,d,Math.ceil(o.length/4)),A=y(o,d,Math.ceil(o.length/2));return E||A?(g=A?E&&E[4].length>A[4].length?E:A:E,r.length>s.length?(m=g[0],b=g[1],x=g[2],S=g[3]):(x=g[0],S=g[1],m=g[2],b=g[3]),[m,b,x,S,g[4]]):null},i.prototype.diff_cleanupSemantic=function(r){for(var s=!1,o=[],d=0,h=null,y=0,g=0,m=0,b=0,x=0;y<r.length;)r[y][0]==0?(o[d++]=y,g=b,m=x,b=0,x=0,h=r[y][1]):(r[y][0]==1?b+=r[y][1].length:x+=r[y][1].length,h&&h.length<=Math.max(g,m)&&h.length<=Math.max(b,x)&&(r.splice(o[d-1],0,new i.Diff(-1,h)),r[o[d-1]+1][0]=1,d--,y=--d>0?o[d-1]:-1,g=0,m=0,b=0,x=0,h=null,s=!0)),y++;for(s&&this.diff_cleanupMerge(r),this.diff_cleanupSemanticLossless(r),y=1;y<r.length;){if(r[y-1][0]==-1&&r[y][0]==1){var S=r[y-1][1],E=r[y][1],A=this.diff_commonOverlap_(S,E),T=this.diff_commonOverlap_(E,S);A>=T?(A>=S.length/2||A>=E.length/2)&&(r.splice(y,0,new i.Diff(0,E.substring(0,A))),r[y-1][1]=S.substring(0,S.length-A),r[y+1][1]=E.substring(A),y++):(T>=S.length/2||T>=E.length/2)&&(r.splice(y,0,new i.Diff(0,S.substring(0,T))),r[y-1][0]=1,r[y-1][1]=E.substring(0,E.length-T),r[y+1][0]=-1,r[y+1][1]=S.substring(T),y++),y++}y++}},i.prototype.diff_cleanupSemanticLossless=function(r){function s(T,_){if(!T||!_)return 6;var U=T.charAt(T.length-1),q=_.charAt(0),O=U.match(i.nonAlphaNumericRegex_),F=q.match(i.nonAlphaNumericRegex_),Z=O&&U.match(i.whitespaceRegex_),X=F&&q.match(i.whitespaceRegex_),R=Z&&U.match(i.linebreakRegex_),M=X&&q.match(i.linebreakRegex_),K=R&&T.match(i.blanklineEndRegex_),ie=M&&_.match(i.blanklineStartRegex_);return K||ie?5:R||M?4:O&&!Z&&X?3:Z||X?2:O||F?1:0}for(var o=1;o<r.length-1;){if(r[o-1][0]==0&&r[o+1][0]==0){var d=r[o-1][1],h=r[o][1],y=r[o+1][1],g=this.diff_commonSuffix(d,h);if(g){var m=h.substring(h.length-g);d=d.substring(0,d.length-g),h=m+h.substring(0,h.length-g),y=m+y}for(var b=d,x=h,S=y,E=s(d,h)+s(h,y);h.charAt(0)===y.charAt(0);){d+=h.charAt(0),h=h.substring(1)+y.charAt(0),y=y.substring(1);var A=s(d,h)+s(h,y);A>=E&&(E=A,b=d,x=h,S=y)}r[o-1][1]!=b&&(b?r[o-1][1]=b:(r.splice(o-1,1),o--),r[o][1]=x,S?r[o+1][1]=S:(r.splice(o+1,1),o--))}o++}},i.nonAlphaNumericRegex_=/[^a-zA-Z0-9]/,i.whitespaceRegex_=/\s/,i.linebreakRegex_=/[\r\n]/,i.blanklineEndRegex_=/\n\r?\n$/,i.blanklineStartRegex_=/^\r?\n\r?\n/,i.prototype.diff_cleanupEfficiency=function(r){for(var s=!1,o=[],d=0,h=null,y=0,g=!1,m=!1,b=!1,x=!1;y<r.length;)r[y][0]==0?(r[y][1].length<this.Diff_EditCost&&(b||x)?(o[d++]=y,g=b,m=x,h=r[y][1]):(d=0,h=null),b=x=!1):(r[y][0]==-1?x=!0:b=!0,h&&(g&&m&&b&&x||h.length<this.Diff_EditCost/2&&g+m+b+x==3)&&(r.splice(o[d-1],0,new i.Diff(-1,h)),r[o[d-1]+1][0]=1,d--,h=null,g&&m?(b=x=!0,d=0):(y=--d>0?o[d-1]:-1,b=x=!1),s=!0)),y++;s&&this.diff_cleanupMerge(r)},i.prototype.diff_cleanupMerge=function(r){r.push(new i.Diff(0,""));for(var s,o=0,d=0,h=0,y="",g="";o<r.length;)switch(r[o][0]){case 1:h++,g+=r[o][1],o++;break;case-1:d++,y+=r[o][1],o++;break;case 0:d+h>1?(d!==0&&h!==0&&((s=this.diff_commonPrefix(g,y))!==0&&(o-d-h>0&&r[o-d-h-1][0]==0?r[o-d-h-1][1]+=g.substring(0,s):(r.splice(0,0,new i.Diff(0,g.substring(0,s))),o++),g=g.substring(s),y=y.substring(s)),(s=this.diff_commonSuffix(g,y))!==0&&(r[o][1]=g.substring(g.length-s)+r[o][1],g=g.substring(0,g.length-s),y=y.substring(0,y.length-s))),o-=d+h,r.splice(o,d+h),y.length&&(r.splice(o,0,new i.Diff(-1,y)),o++),g.length&&(r.splice(o,0,new i.Diff(1,g)),o++),o++):o!==0&&r[o-1][0]==0?(r[o-1][1]+=r[o][1],r.splice(o,1)):o++,h=0,d=0,y="",g=""}r[r.length-1][1]===""&&r.pop();var m=!1;for(o=1;o<r.length-1;)r[o-1][0]==0&&r[o+1][0]==0&&(r[o][1].substring(r[o][1].length-r[o-1][1].length)==r[o-1][1]?(r[o][1]=r[o-1][1]+r[o][1].substring(0,r[o][1].length-r[o-1][1].length),r[o+1][1]=r[o-1][1]+r[o+1][1],r.splice(o-1,1),m=!0):r[o][1].substring(0,r[o+1][1].length)==r[o+1][1]&&(r[o-1][1]+=r[o+1][1],r[o][1]=r[o][1].substring(r[o+1][1].length)+r[o+1][1],r.splice(o+1,1),m=!0)),o++;m&&this.diff_cleanupMerge(r)},i.prototype.diff_xIndex=function(r,s){var o,d=0,h=0,y=0,g=0;for(o=0;o<r.length&&(r[o][0]!==1&&(d+=r[o][1].length),r[o][0]!==-1&&(h+=r[o][1].length),!(d>s));o++)y=d,g=h;return r.length!=o&&r[o][0]===-1?g:g+(s-y)},i.prototype.diff_prettyHtml=function(r){for(var s=[],o=/&/g,d=/</g,h=/>/g,y=/\n/g,g=0;g<r.length;g++){var m=r[g][0],b=r[g][1].replace(o,"&").replace(d,"<").replace(h,">").replace(y,"¶<br>");switch(m){case 1:s[g]='<ins style="background:#e6ffe6;">'+b+"</ins>";break;case-1:s[g]='<del style="background:#ffe6e6;">'+b+"</del>";break;case 0:s[g]="<span>"+b+"</span>"}}return s.join("")},i.prototype.diff_text1=function(r){for(var s=[],o=0;o<r.length;o++)r[o][0]!==1&&(s[o]=r[o][1]);return s.join("")},i.prototype.diff_text2=function(r){for(var s=[],o=0;o<r.length;o++)r[o][0]!==-1&&(s[o]=r[o][1]);return s.join("")},i.prototype.diff_levenshtein=function(r){for(var s=0,o=0,d=0,h=0;h<r.length;h++){var y=r[h][0],g=r[h][1];switch(y){case 1:o+=g.length;break;case-1:d+=g.length;break;case 0:s+=Math.max(o,d),o=0,d=0}}return s+=Math.max(o,d)},i.prototype.diff_toDelta=function(r){for(var s=[],o=0;o<r.length;o++)switch(r[o][0]){case 1:s[o]="+"+encodeURI(r[o][1]);break;case-1:s[o]="-"+r[o][1].length;break;case 0:s[o]="="+r[o][1].length}return s.join(" ").replace(/%20/g," ")},i.prototype.diff_fromDelta=function(r,s){for(var o=[],d=0,h=0,y=s.split(/\t/g),g=0;g<y.length;g++){var m=y[g].substring(1);switch(y[g].charAt(0)){case"+":try{o[d++]=new i.Diff(1,decodeURI(m))}catch{throw new Error("Illegal escape in diff_fromDelta: "+m)}break;case"-":case"=":var b=parseInt(m,10);if(isNaN(b)||b<0)throw new Error("Invalid number in diff_fromDelta: "+m);var x=r.substring(h,h+=b);y[g].charAt(0)=="="?o[d++]=new i.Diff(0,x):o[d++]=new i.Diff(-1,x);break;default:if(y[g])throw new Error("Invalid diff operation in diff_fromDelta: "+y[g])}}if(h!=r.length)throw new Error("Delta length ("+h+") does not equal source text length ("+r.length+").");return o},i.prototype.match_main=function(r,s,o){if(r==null||s==null||o==null)throw new Error("Null input. (match_main)");return o=Math.max(0,Math.min(o,r.length)),r==s?0:r.length?r.substring(o,o+s.length)==s?o:this.match_bitap_(r,s,o):-1},i.prototype.match_bitap_=function(r,s,o){if(s.length>this.Match_MaxBits)throw new Error("Pattern too long for this browser.");var d=this.match_alphabet_(s),h=this;function y(X,R){var M=X/s.length,K=Math.abs(o-R);return h.Match_Distance?M+K/h.Match_Distance:K?1:M}var g=this.Match_Threshold,m=r.indexOf(s,o);m!=-1&&(g=Math.min(y(0,m),g),(m=r.lastIndexOf(s,o+s.length))!=-1&&(g=Math.min(y(0,m),g)));var b,x,S=1<<s.length-1;m=-1;for(var E,A=s.length+r.length,T=0;T<s.length;T++){for(b=0,x=A;b<x;)y(T,o+x)<=g?b=x:A=x,x=Math.floor((A-b)/2+b);A=x;var _=Math.max(1,o-x+1),U=Math.min(o+x,r.length)+s.length,q=Array(U+2);q[U+1]=(1<<T)-1;for(var O=U;O>=_;O--){var F=d[r.charAt(O-1)];if(q[O]=T===0?(q[O+1]<<1|1)&F:(q[O+1]<<1|1)&F|(E[O+1]|E[O])<<1|1|E[O+1],q[O]&S){var Z=y(T,O-1);if(Z<=g){if(g=Z,!((m=O-1)>o))break;_=Math.max(1,2*o-m)}}}if(y(T+1,o)>g)break;E=q}return m},i.prototype.match_alphabet_=function(r){for(var s={},o=0;o<r.length;o++)s[r.charAt(o)]=0;for(o=0;o<r.length;o++)s[r.charAt(o)]|=1<<r.length-o-1;return s},i.prototype.patch_addContext_=function(r,s){if(s.length!=0){if(r.start2===null)throw Error("patch not initialized");for(var o=s.substring(r.start2,r.start2+r.length1),d=0;s.indexOf(o)!=s.lastIndexOf(o)&&o.length<this.Match_MaxBits-this.Patch_Margin-this.Patch_Margin;)d+=this.Patch_Margin,o=s.substring(r.start2-d,r.start2+r.length1+d);d+=this.Patch_Margin;var h=s.substring(r.start2-d,r.start2);h&&r.diffs.unshift(new i.Diff(0,h));var y=s.substring(r.start2+r.length1,r.start2+r.length1+d);y&&r.diffs.push(new i.Diff(0,y)),r.start1-=h.length,r.start2-=h.length,r.length1+=h.length+y.length,r.length2+=h.length+y.length}},i.prototype.patch_make=function(r,s,o){var d,h;if(typeof r=="string"&&typeof s=="string"&&o===void 0)d=r,(h=this.diff_main(d,s,!0)).length>2&&(this.diff_cleanupSemantic(h),this.diff_cleanupEfficiency(h));else if(r&&typeof r=="object"&&s===void 0&&o===void 0)h=r,d=this.diff_text1(h);else if(typeof r=="string"&&s&&typeof s=="object"&&o===void 0)d=r,h=s;else{if(typeof r!="string"||typeof s!="string"||!o||typeof o!="object")throw new Error("Unknown call format to patch_make.");d=r,h=o}if(h.length===0)return[];for(var y=[],g=new i.patch_obj,m=0,b=0,x=0,S=d,E=d,A=0;A<h.length;A++){var T=h[A][0],_=h[A][1];switch(m||T===0||(g.start1=b,g.start2=x),T){case 1:g.diffs[m++]=h[A],g.length2+=_.length,E=E.substring(0,x)+_+E.substring(x);break;case-1:g.length1+=_.length,g.diffs[m++]=h[A],E=E.substring(0,x)+E.substring(x+_.length);break;case 0:_.length<=2*this.Patch_Margin&&m&&h.length!=A+1?(g.diffs[m++]=h[A],g.length1+=_.length,g.length2+=_.length):_.length>=2*this.Patch_Margin&&m&&(this.patch_addContext_(g,S),y.push(g),g=new i.patch_obj,m=0,S=E,b=x)}T!==1&&(b+=_.length),T!==-1&&(x+=_.length)}return m&&(this.patch_addContext_(g,S),y.push(g)),y},i.prototype.patch_deepCopy=function(r){for(var s=[],o=0;o<r.length;o++){var d=r[o],h=new i.patch_obj;h.diffs=[];for(var y=0;y<d.diffs.length;y++)h.diffs[y]=new i.Diff(d.diffs[y][0],d.diffs[y][1]);h.start1=d.start1,h.start2=d.start2,h.length1=d.length1,h.length2=d.length2,s[o]=h}return s},i.prototype.patch_apply=function(r,s){if(r.length==0)return[s,[]];r=this.patch_deepCopy(r);var o=this.patch_addPadding(r);s=o+s+o,this.patch_splitMax(r);for(var d=0,h=[],y=0;y<r.length;y++){var g,m,b=r[y].start2+d,x=this.diff_text1(r[y].diffs),S=-1;if(x.length>this.Match_MaxBits?(g=this.match_main(s,x.substring(0,this.Match_MaxBits),b))!=-1&&((S=this.match_main(s,x.substring(x.length-this.Match_MaxBits),b+x.length-this.Match_MaxBits))==-1||g>=S)&&(g=-1):g=this.match_main(s,x,b),g==-1)h[y]=!1,d-=r[y].length2-r[y].length1;else if(h[y]=!0,d=g-b,x==(m=S==-1?s.substring(g,g+x.length):s.substring(g,S+this.Match_MaxBits)))s=s.substring(0,g)+this.diff_text2(r[y].diffs)+s.substring(g+x.length);else{var E=this.diff_main(x,m,!1);if(x.length>this.Match_MaxBits&&this.diff_levenshtein(E)/x.length>this.Patch_DeleteThreshold)h[y]=!1;else{this.diff_cleanupSemanticLossless(E);for(var A,T=0,_=0;_<r[y].diffs.length;_++){var U=r[y].diffs[_];U[0]!==0&&(A=this.diff_xIndex(E,T)),U[0]===1?s=s.substring(0,g+A)+U[1]+s.substring(g+A):U[0]===-1&&(s=s.substring(0,g+A)+s.substring(g+this.diff_xIndex(E,T+U[1].length))),U[0]!==-1&&(T+=U[1].length)}}}}return[s=s.substring(o.length,s.length-o.length),h]},i.prototype.patch_addPadding=function(r){for(var s=this.Patch_Margin,o="",d=1;d<=s;d++)o+=String.fromCharCode(d);for(d=0;d<r.length;d++)r[d].start1+=s,r[d].start2+=s;var h=r[0],y=h.diffs;if(y.length==0||y[0][0]!=0)y.unshift(new i.Diff(0,o)),h.start1-=s,h.start2-=s,h.length1+=s,h.length2+=s;else if(s>y[0][1].length){var g=s-y[0][1].length;y[0][1]=o.substring(y[0][1].length)+y[0][1],h.start1-=g,h.start2-=g,h.length1+=g,h.length2+=g}return(y=(h=r[r.length-1]).diffs).length==0||y[y.length-1][0]!=0?(y.push(new i.Diff(0,o)),h.length1+=s,h.length2+=s):s>y[y.length-1][1].length&&(g=s-y[y.length-1][1].length,y[y.length-1][1]+=o.substring(0,g),h.length1+=g,h.length2+=g),o},i.prototype.patch_splitMax=function(r){for(var s=this.Match_MaxBits,o=0;o<r.length;o++)if(!(r[o].length1<=s)){var d=r[o];r.splice(o--,1);for(var h=d.start1,y=d.start2,g="";d.diffs.length!==0;){var m=new i.patch_obj,b=!0;for(m.start1=h-g.length,m.start2=y-g.length,g!==""&&(m.length1=m.length2=g.length,m.diffs.push(new i.Diff(0,g)));d.diffs.length!==0&&m.length1<s-this.Patch_Margin;){var x=d.diffs[0][0],S=d.diffs[0][1];x===1?(m.length2+=S.length,y+=S.length,m.diffs.push(d.diffs.shift()),b=!1):x===-1&&m.diffs.length==1&&m.diffs[0][0]==0&&S.length>2*s?(m.length1+=S.length,h+=S.length,b=!1,m.diffs.push(new i.Diff(x,S)),d.diffs.shift()):(S=S.substring(0,s-m.length1-this.Patch_Margin),m.length1+=S.length,h+=S.length,x===0?(m.length2+=S.length,y+=S.length):b=!1,m.diffs.push(new i.Diff(x,S)),S==d.diffs[0][1]?d.diffs.shift():d.diffs[0][1]=d.diffs[0][1].substring(S.length))}g=(g=this.diff_text2(m.diffs)).substring(g.length-this.Patch_Margin);var E=this.diff_text1(d.diffs).substring(0,this.Patch_Margin);E!==""&&(m.length1+=E.length,m.length2+=E.length,m.diffs.length!==0&&m.diffs[m.diffs.length-1][0]===0?m.diffs[m.diffs.length-1][1]+=E:m.diffs.push(new i.Diff(0,E))),b||r.splice(++o,0,m)}}},i.prototype.patch_toText=function(r){for(var s=[],o=0;o<r.length;o++)s[o]=r[o];return s.join("")},i.prototype.patch_fromText=function(r){var s=[];if(!r)return s;for(var o=r.split(`
|
|
345
|
+
`),d=0,h=/^@@ -(\d+),?(\d*) \+(\d+),?(\d*) @@$/;d<o.length;){var y=o[d].match(h);if(!y)throw new Error("Invalid patch string: "+o[d]);var g=new i.patch_obj;for(s.push(g),g.start1=parseInt(y[1],10),y[2]===""?(g.start1--,g.length1=1):y[2]=="0"?g.length1=0:(g.start1--,g.length1=parseInt(y[2],10)),g.start2=parseInt(y[3],10),y[4]===""?(g.start2--,g.length2=1):y[4]=="0"?g.length2=0:(g.start2--,g.length2=parseInt(y[4],10)),d++;d<o.length;){var m=o[d].charAt(0);try{var b=decodeURI(o[d].substring(1))}catch{throw new Error("Illegal escape in patch_fromText: "+b)}if(m=="-")g.diffs.push(new i.Diff(-1,b));else if(m=="+")g.diffs.push(new i.Diff(1,b));else if(m==" ")g.diffs.push(new i.Diff(0,b));else{if(m=="@")break;if(m!=="")throw new Error('Invalid patch mode "'+m+'" in: '+b)}d++}}return s},(i.patch_obj=function(){this.diffs=[],this.start1=null,this.start2=null,this.length1=0,this.length2=0}).prototype.toString=function(){for(var r,s=["@@ -"+(this.length1===0?this.start1+",0":this.length1==1?this.start1+1:this.start1+1+","+this.length1)+" +"+(this.length2===0?this.start2+",0":this.length2==1?this.start2+1:this.start2+1+","+this.length2)+` @@
|
|
346
|
+
`],o=0;o<this.diffs.length;o++){switch(this.diffs[o][0]){case 1:r="+";break;case-1:r="-";break;case 0:r=" "}s[o+1]=r+encodeURI(this.diffs[o][1])+`
|
|
347
|
+
`}return s.join("").replace(/%20/g," ")},l.exports=i,l.exports.diff_match_patch=i,l.exports.DIFF_DELETE=-1,l.exports.DIFF_INSERT=1,l.exports.DIFF_EQUAL=0}));Ho.DIFF_EQUAL;Ho.DIFF_DELETE;Ho.DIFF_INSERT;var IS=["enhancers"],XS=function(l){var i,r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},s=r.enhancers,o=s===void 0?[]:s,d=it(DS(l,aa(r,IS)),2),h=d[0],y=d[1],g=[ip(h),ip(y)],m=(i=[g[0],g[1]],o.reduce((function(T,_){return _(T)}),i)),b=it(m,2),x=b[0],S=b[1],E=[x.map(sp),S.map(sp)],A=E[1];return{old:E[0].map((function(T){var _;return(_=T.children)!==null&&_!==void 0?_:[]})),new:A.map((function(T){var _;return(_=T.children)!==null&&_!==void 0?_:[]}))}};const FS=[{value:"suggestion",label:"Suggestion"},{value:"must_fix",label:"Must Fix"},{value:"question",label:"Question"},{value:"nitpick",label:"Nitpick"}];function hs({onSave:l,onAsk:i,onCancel:r,initialBody:s="",initialType:o="suggestion",location:d}){const[h,y]=z.useState(s),[g,m]=z.useState(o),[b,x]=z.useState(!1),[S,E]=z.useState(null),A=z.useRef(null),T=Xe(R=>R.setDraftComment);z.useEffect(()=>{var R;(R=A.current)==null||R.focus()},[]);const{file:_,line:U,side:q}=d??{};z.useEffect(()=>{_!==void 0&&U!==void 0&&q!==void 0&&(h.trim()?T({body:h,type:g,file:_,line:U,side:q}):T(null))},[h,g,_,U,q,T]);function O(){h.trim()&&(T(null),l(h.trim(),g))}async function F(){if(!i||!h.trim())return;x(!0),E(null);const R=await i(h.trim());x(!1),R.ok?(T(null),r()):E(R.error??"Could not ask the agent")}function Z(){T(null),r()}function X(R){(R.metaKey||R.ctrlKey)&&R.key==="Enter"?(R.preventDefault(),O()):R.key==="Escape"&&(R.preventDefault(),Z())}return f.jsxs("div",{className:"p-3 space-y-2",onKeyDown:X,children:[f.jsx("textarea",{ref:A,value:h,onChange:R=>y(R.target.value),placeholder:"Write a comment...",rows:3,className:"w-full bg-background border border-border rounded px-3 py-2 text-text-primary text-sm placeholder:text-text-secondary/50 resize-none focus:outline-none focus:ring-1 focus:ring-accent focus:border-accent"}),S&&f.jsx("p",{role:"alert",className:"text-xs text-danger",children:S}),f.jsxs("div",{className:"flex items-center gap-2",children:[f.jsx("select",{value:g,onChange:R=>m(R.target.value),className:"bg-background border border-border rounded px-2 py-1.5 text-text-primary text-xs focus:outline-none focus:ring-1 focus:ring-accent cursor-pointer",children:FS.map(R=>f.jsx("option",{value:R.value,children:R.label},R.value))}),f.jsx("div",{className:"flex-1"}),f.jsx("button",{onClick:Z,className:"px-3 py-1.5 text-xs text-text-secondary hover:text-text-primary transition-colors cursor-pointer",children:"Cancel"}),i&&f.jsx("button",{onClick:F,disabled:!h.trim()||b,title:"Start a thread the agent answers while you review, instead of a comment sent with your decision",className:"px-3 py-1.5 text-xs font-medium rounded text-text-secondary border border-border hover:text-text-primary hover:border-accent/40 disabled:opacity-40 disabled:cursor-not-allowed transition-colors cursor-pointer",children:b?"Asking…":"Ask agent now"}),f.jsx("button",{onClick:O,disabled:!h.trim(),className:"px-3 py-1.5 text-xs font-medium rounded bg-accent/20 text-accent border border-accent/30 hover:bg-accent/30 disabled:opacity-40 disabled:cursor-not-allowed transition-colors cursor-pointer",children:"Save"})]})]})}const $S={must_fix:"Must Fix",suggestion:"Suggestion",question:"Question",nitpick:"Nitpick"};function ZS({comments:l,isFormOpen:i,location:r,onAdd:s,onAsk:o,onUpdate:d,onDelete:h,onOpenForm:y,onCloseForm:g}){const[m,b]=z.useState(null);return f.jsxs("div",{className:"border-t border-border bg-surface",children:[l.map(({comment:x,index:S})=>m===S?f.jsx(hs,{initialBody:x.body,initialType:x.type,location:r,onSave:(E,A)=>{d(S,E,A),b(null)},onCancel:()=>b(null)},S):f.jsxs("div",{className:"px-3 py-2 border-b border-border/50 group/comment",children:[f.jsxs("div",{className:"flex items-center gap-2 mb-1",children:[f.jsx("span",{className:`text-[10px] font-bold px-1.5 py-0.5 rounded border ${Gv[x.type]}`,children:$S[x.type]}),f.jsxs("span",{className:"text-text-secondary text-[10px] font-mono",children:[r.file,":",r.line]}),f.jsx("div",{className:"flex-1"}),f.jsx("button",{onClick:()=>b(S),className:"opacity-0 group-hover/comment:opacity-100 p-0.5 text-text-secondary hover:text-text-primary transition-all cursor-pointer",title:"Edit comment",children:f.jsx(jv,{className:"w-3 h-3"})}),f.jsx("button",{onClick:()=>h(S),className:"opacity-0 group-hover/comment:opacity-100 p-0.5 text-text-secondary hover:text-danger transition-all cursor-pointer",title:"Delete comment",children:f.jsx(Lv,{className:"w-3 h-3"})})]}),f.jsx("p",{className:"text-text-primary text-sm whitespace-pre-wrap",children:x.body})]},S)),i&&m===null&&f.jsx(hs,{location:r,onSave:(x,S)=>{s(x,S),g()},onAsk:o,onCancel:g}),!i&&l.length>0&&m===null&&f.jsxs("button",{onClick:y,className:"flex items-center gap-1 px-3 py-1.5 text-xs text-text-secondary hover:text-accent transition-colors cursor-pointer",children:[f.jsx(Tp,{className:"w-3 h-3"}),"Add comment"]})]})}function VS(l){const i=l.replies??[];return i.length>0?i[i.length-1].author:l.author??"agent"}function Go(l){return!l.dismissed&&VS(l)==="reviewer"}function Yo(l){const i=l.replies??[];return i.length>0?i[i.length-1].createdAt:l.createdAt}function ly(l,i){return i!==void 0&&i>Yo(l)}const ry=5e3;function KS(l,i,r){return ly(l,i)?"picked_up":r-Yo(l)<ry?"pending":"unheard"}function iy(l,i){const[r,s]=z.useState(()=>Date.now());let o;for(const d of l){if(!Go(d)||ly(d,i))continue;const h=Yo(d)+ry;h>r&&(o===void 0||h<o)&&(o=h)}return z.useEffect(()=>{if(o===void 0)return;const d=setTimeout(()=>s(Date.now()),Math.max(0,o-Date.now()));return()=>clearTimeout(d)},[o]),d=>KS(d,i,r)}function go({placeholder:l,submitLabel:i,onSubmit:r,onCancel:s}){const[o,d]=z.useState(""),[h,y]=z.useState(!1),[g,m]=z.useState(null),b=z.useRef(null);z.useEffect(()=>{var S;(S=b.current)==null||S.focus()},[]);async function x(){if(!o.trim()||h)return;y(!0),m(null);const S=await r(o.trim());y(!1),S.ok?d(""):m(S.error??"Couldn't send")}return f.jsxs("div",{className:"px-3 py-2 space-y-1.5",children:[f.jsx("textarea",{ref:b,value:o,onChange:S=>d(S.target.value),onKeyDown:S=>{S.key==="Enter"&&(S.metaKey||S.ctrlKey)?(S.preventDefault(),x()):S.key==="Escape"&&s&&(S.preventDefault(),s())},placeholder:l,rows:2,className:"w-full bg-background border border-border rounded px-2 py-1.5 text-text-primary text-sm focus:outline-none focus:border-accent resize-y"}),g&&f.jsx("p",{className:"text-danger text-xs",children:g}),f.jsxs("div",{className:"flex items-center justify-end gap-2",children:[s&&f.jsx("button",{onClick:s,className:"px-2 py-1 text-xs text-text-secondary hover:text-text-primary transition-colors cursor-pointer",children:"Cancel"}),f.jsx("button",{onClick:()=>void x(),disabled:!o.trim()||h,className:"px-2.5 py-1 text-xs rounded bg-accent/15 text-accent hover:bg-accent/25 disabled:opacity-40 disabled:cursor-not-allowed transition-colors cursor-pointer",children:h?"Sending…":i})]})]})}const QS={finding:Aa,suggestion:To,question:No,warning:wl};function sy({author:l,agent:i}){return l==="reviewer"?f.jsxs("span",{className:"inline-flex items-center gap-1 text-[10px] font-semibold text-accent",children:[f.jsx(Uv,{className:"w-3 h-3"}),"You"]}):f.jsxs("span",{className:"inline-flex items-center gap-1 text-[10px] text-text-secondary",children:[f.jsx(So,{className:"w-3 h-3"}),i??"agent"]})}function JS({reply:l}){return f.jsxs("div",{className:"pl-3 ml-1.5 border-l border-border/70 py-1",children:[f.jsx(sy,{author:l.author,agent:l.agent}),f.jsx("p",{className:"text-text-primary text-sm whitespace-pre-wrap mt-0.5",children:l.body})]})}function WS({sessionId:l}){const i=`Answer my DiffPrism comments${l?` on ${l}`:""}`,[r,s]=z.useState("idle");return f.jsxs("div",{className:"mt-1.5 text-[11px]",children:[f.jsx("p",{className:"text-warning",children:"No agent is listening, so nothing will answer this. Ask Claude Code:"}),f.jsxs("div",{className:"mt-1 flex items-center gap-2",children:[f.jsx("code",{className:"select-all px-1.5 py-0.5 rounded border border-border bg-background text-text-primary",children:i}),f.jsxs("button",{onClick:()=>{navigator.clipboard.writeText(i).then(()=>s("copied"),()=>s("failed"))},className:"inline-flex items-center gap-1 text-text-secondary hover:text-accent transition-colors cursor-pointer",title:"Copy prompt",children:[r==="copied"?f.jsx(El,{className:"w-3 h-3"}):f.jsx(Sv,{className:"w-3 h-3"}),r==="copied"?"Copied":r==="failed"?"Copy failed — select the text instead":"Copy"]})]})]})}function PS({annotations:l,onDismiss:i,onReply:r,sessionId:s,agentReadAt:o}){const[d,h]=z.useState(null),y=iy(l,o);if(l.length===0)return null;const g=l.some(m=>{var b;return(m.author??"agent")==="reviewer"||(((b=m.replies)==null?void 0:b.length)??0)>0});return f.jsxs("div",{className:"border-t border-border bg-surface",children:[f.jsxs("div",{className:"px-3 py-1.5 flex items-center gap-1.5 border-b border-border/50",children:[g?f.jsx(Nl,{className:"w-3 h-3 text-text-secondary"}):f.jsx(So,{className:"w-3 h-3 text-text-secondary"}),f.jsx("span",{className:"text-[10px] font-semibold text-text-secondary uppercase tracking-wide",children:g?`Discussion${l.length>1?` (${l.length})`:""}`:`Agent ${l.length===1?"Annotation":`Annotations (${l.length})`}`})]}),l.map(m=>{const b=m.author??"agent",x=QS[m.type]??Aa,S=fs[m.category]??fs.other,E=Um[m.category]??Um.other,A=m.replies??[];return f.jsxs("div",{"data-annotation-id":m.id,className:"px-3 py-2 border-b border-border/50 group/annotation",children:[f.jsxs("div",{className:"flex items-center gap-2 mb-1",children:[b==="agent"?f.jsxs(f.Fragment,{children:[f.jsx(x,{className:`w-3.5 h-3.5 flex-shrink-0 ${S}`}),f.jsx("span",{className:`text-[10px] font-bold px-1.5 py-0.5 rounded border ${E}`,children:m.category}),f.jsx("span",{className:"text-text-secondary text-[10px]",children:m.source.agent})]}):f.jsx(sy,{author:"reviewer"}),f.jsx("div",{className:"flex-1"}),f.jsx("button",{onClick:()=>i(m.id),className:"opacity-0 group-hover/annotation:opacity-100 p-0.5 rounded hover:bg-text-primary/10 text-text-secondary transition-all cursor-pointer flex-shrink-0",title:"Dismiss",children:f.jsx(Rr,{className:"w-3 h-3"})})]}),f.jsx("p",{className:"text-text-primary text-sm whitespace-pre-wrap",children:m.body}),A.length>0&&f.jsx("div",{className:"mt-1.5 space-y-0.5",children:A.map(T=>f.jsx(JS,{reply:T},T.id))}),Go(m)&&(y(m)==="unheard"?f.jsx(WS,{sessionId:s}):f.jsx("p",{className:"mt-1.5 text-[11px] text-text-secondary italic",children:"Waiting for the agent to reply."})),r&&(d===m.id?f.jsx("div",{className:"-mx-3",children:f.jsx(go,{placeholder:"Reply…",submitLabel:"Reply",onSubmit:async T=>{const _=await r(m.id,T);return _.ok&&h(null),_},onCancel:()=>h(null)})}):f.jsx("button",{onClick:()=>h(m.id),className:"mt-1 text-[11px] text-text-secondary hover:text-accent transition-colors cursor-pointer",children:"Reply"}))]},m.id)})]})}function eE(l){const i=Xe(s=>s.focusedAnnotationId),r=Xe(s=>s.focusAnnotation);z.useEffect(()=>{if(!i)return;const s=document.querySelector(`[data-annotation-id="${i}"]`);s&&(s.scrollIntoView({behavior:"smooth",block:"center"}),r(null))},[i,r,l])}un.displayName="clike";un.aliases=[];function un(l){l.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/}}Dr.displayName="c";Dr.aliases=[];function Dr(l){l.register(un),l.languages.c=l.languages.extend("clike",{comment:{pattern:/\/\/(?:[^\r\n\\]|\\(?:\r\n?|\n|(?![\r\n])))*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},"class-name":{pattern:/(\b(?:enum|struct)\s+(?:__attribute__\s*\(\([\s\S]*?\)\)\s*)?)\w+|\b[a-z]\w*_t\b/,lookbehind:!0},keyword:/\b(?:_Alignas|_Alignof|_Atomic|_Bool|_Complex|_Generic|_Imaginary|_Noreturn|_Static_assert|_Thread_local|__attribute__|asm|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|inline|int|long|register|return|short|signed|sizeof|static|struct|switch|typedef|typeof|union|unsigned|void|volatile|while)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,number:/(?:\b0x(?:[\da-f]+(?:\.[\da-f]*)?|\.[\da-f]+)(?:p[+-]?\d+)?|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[ful]{0,4}/i,operator:/>>=?|<<=?|->|([-+&|:])\1|[?:~]|[-+*/%&|^!=<>]=?/}),l.languages.insertBefore("c","string",{char:{pattern:/'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n]){0,32}'/,greedy:!0}}),l.languages.insertBefore("c","string",{macro:{pattern:/(^[\t ]*)#\s*[a-z](?:[^\r\n\\/]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|\\(?:\r\n|[\s\S]))*/im,lookbehind:!0,greedy:!0,alias:"property",inside:{string:[{pattern:/^(#\s*include\s*)<[^>]+>/,lookbehind:!0},l.languages.c.string],char:l.languages.c.char,comment:l.languages.c.comment,"macro-name":[{pattern:/(^#\s*define\s+)\w+\b(?!\()/i,lookbehind:!0},{pattern:/(^#\s*define\s+)\w+\b(?=\()/i,lookbehind:!0,alias:"function"}],directive:{pattern:/^(#\s*)[a-z]+/,lookbehind:!0,alias:"keyword"},"directive-hash":/^#/,punctuation:/##|\\(?=[\r\n])/,expression:{pattern:/\S[\s\S]*/,inside:l.languages.c}}}}),l.languages.insertBefore("c","function",{constant:/\b(?:EOF|NULL|SEEK_CUR|SEEK_END|SEEK_SET|__DATE__|__FILE__|__LINE__|__TIMESTAMP__|__TIME__|__func__|stderr|stdin|stdout)\b/}),delete l.languages.c.boolean}As.displayName="cpp";As.aliases=[];function As(l){l.register(Dr),(function(i){var r=/\b(?:alignas|alignof|asm|auto|bool|break|case|catch|char|char16_t|char32_t|char8_t|class|co_await|co_return|co_yield|compl|concept|const|const_cast|consteval|constexpr|constinit|continue|decltype|default|delete|do|double|dynamic_cast|else|enum|explicit|export|extern|final|float|for|friend|goto|if|import|inline|int|int16_t|int32_t|int64_t|int8_t|long|module|mutable|namespace|new|noexcept|nullptr|operator|override|private|protected|public|register|reinterpret_cast|requires|return|short|signed|sizeof|static|static_assert|static_cast|struct|switch|template|this|thread_local|throw|try|typedef|typeid|typename|uint16_t|uint32_t|uint64_t|uint8_t|union|unsigned|using|virtual|void|volatile|wchar_t|while)\b/,s=/\b(?!<keyword>)\w+(?:\s*\.\s*\w+)*\b/.source.replace(/<keyword>/g,function(){return r.source});i.languages.cpp=i.languages.extend("c",{"class-name":[{pattern:RegExp(/(\b(?:class|concept|enum|struct|typename)\s+)(?!<keyword>)\w+/.source.replace(/<keyword>/g,function(){return r.source})),lookbehind:!0},/\b[A-Z]\w*(?=\s*::\s*\w+\s*\()/,/\b[A-Z_]\w*(?=\s*::\s*~\w+\s*\()/i,/\b\w+(?=\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>\s*::\s*\w+\s*\()/],keyword:r,number:{pattern:/(?:\b0b[01']+|\b0x(?:[\da-f']+(?:\.[\da-f']*)?|\.[\da-f']+)(?:p[+-]?[\d']+)?|(?:\b[\d']+(?:\.[\d']*)?|\B\.[\d']+)(?:e[+-]?[\d']+)?)[ful]{0,4}/i,greedy:!0},operator:/>>=?|<<=?|->|--|\+\+|&&|\|\||[?:~]|<=>|[-+*/%&|^!=<>]=?|\b(?:and|and_eq|bitand|bitor|not|not_eq|or|or_eq|xor|xor_eq)\b/,boolean:/\b(?:false|true)\b/}),i.languages.insertBefore("cpp","string",{module:{pattern:RegExp(/(\b(?:import|module)\s+)/.source+"(?:"+/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|<[^<>\r\n]*>/.source+"|"+/<mod-name>(?:\s*:\s*<mod-name>)?|:\s*<mod-name>/.source.replace(/<mod-name>/g,function(){return s})+")"),lookbehind:!0,greedy:!0,inside:{string:/^[<"][\s\S]+/,operator:/:/,punctuation:/\./}},"raw-string":{pattern:/R"([^()\\ ]{0,16})\([\s\S]*?\)\1"/,alias:"string",greedy:!0}}),i.languages.insertBefore("cpp","keyword",{"generic-function":{pattern:/\b(?!operator\b)[a-z_]\w*\s*<(?:[^<>]|<[^<>]*>)*>(?=\s*\()/i,inside:{function:/^\w+/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:i.languages.cpp}}}}),i.languages.insertBefore("cpp","operator",{"double-colon":{pattern:/::/,alias:"punctuation"}}),i.languages.insertBefore("cpp","class-name",{"base-clause":{pattern:/(\b(?:class|struct)\s+\w+\s*:\s*)[^;{}"'\s]+(?:\s+[^;{}"'\s]+)*(?=\s*[;{])/,lookbehind:!0,greedy:!0,inside:i.languages.extend("cpp",{})}}),i.languages.insertBefore("inside","double-colon",{"class-name":/\b[a-z_]\w*\b(?!\s*::)/i},i.languages.cpp["base-clause"])})(l)}qo.displayName="arduino";qo.aliases=["ino"];function qo(l){l.register(As),l.languages.arduino=l.languages.extend("cpp",{keyword:/\b(?:String|array|bool|boolean|break|byte|case|catch|continue|default|do|double|else|finally|for|function|goto|if|in|instanceof|int|integer|long|loop|new|null|return|setup|string|switch|throw|try|void|while|word)\b/,constant:/\b(?:ANALOG_MESSAGE|DEFAULT|DIGITAL_MESSAGE|EXTERNAL|FIRMATA_STRING|HIGH|INPUT|INPUT_PULLUP|INTERNAL|INTERNAL1V1|INTERNAL2V56|LED_BUILTIN|LOW|OUTPUT|REPORT_ANALOG|REPORT_DIGITAL|SET_PIN_MODE|SYSEX_START|SYSTEM_RESET)\b/,builtin:/\b(?:Audio|BSSID|Bridge|Client|Console|EEPROM|Esplora|EsploraTFT|Ethernet|EthernetClient|EthernetServer|EthernetUDP|File|FileIO|FileSystem|Firmata|GPRS|GSM|GSMBand|GSMClient|GSMModem|GSMPIN|GSMScanner|GSMServer|GSMVoiceCall|GSM_SMS|HttpClient|IPAddress|IRread|Keyboard|KeyboardController|LiquidCrystal|LiquidCrystal_I2C|Mailbox|Mouse|MouseController|PImage|Process|RSSI|RobotControl|RobotMotor|SD|SPI|SSID|Scheduler|Serial|Server|Servo|SoftwareSerial|Stepper|Stream|TFT|Task|USBHost|WiFi|WiFiClient|WiFiServer|WiFiUDP|Wire|YunClient|YunServer|abs|addParameter|analogRead|analogReadResolution|analogReference|analogWrite|analogWriteResolution|answerCall|attach|attachGPRS|attachInterrupt|attached|autoscroll|available|background|beep|begin|beginPacket|beginSD|beginSMS|beginSpeaker|beginTFT|beginTransmission|beginWrite|bit|bitClear|bitRead|bitSet|bitWrite|blink|blinkVersion|buffer|changePIN|checkPIN|checkPUK|checkReg|circle|cityNameRead|cityNameWrite|clear|clearScreen|click|close|compassRead|config|connect|connected|constrain|cos|countryNameRead|countryNameWrite|createChar|cursor|debugPrint|delay|delayMicroseconds|detach|detachInterrupt|digitalRead|digitalWrite|disconnect|display|displayLogos|drawBMP|drawCompass|encryptionType|end|endPacket|endSMS|endTransmission|endWrite|exists|exitValue|fill|find|findUntil|flush|gatewayIP|get|getAsynchronously|getBand|getButton|getCurrentCarrier|getIMEI|getKey|getModifiers|getOemKey|getPINUsed|getResult|getSignalStrength|getSocket|getVoiceCallStatus|getXChange|getYChange|hangCall|height|highByte|home|image|interrupts|isActionDone|isDirectory|isListening|isPIN|isPressed|isValid|keyPressed|keyReleased|keyboardRead|knobRead|leftToRight|line|lineFollowConfig|listen|listenOnLocalhost|loadImage|localIP|lowByte|macAddress|maintain|map|max|messageAvailable|micros|millis|min|mkdir|motorsStop|motorsWrite|mouseDragged|mouseMoved|mousePressed|mouseReleased|move|noAutoscroll|noBlink|noBuffer|noCursor|noDisplay|noFill|noInterrupts|noListenOnLocalhost|noStroke|noTone|onReceive|onRequest|open|openNextFile|overflow|parseCommand|parseFloat|parseInt|parsePacket|pauseMode|peek|pinMode|playFile|playMelody|point|pointTo|position|pow|prepare|press|print|printFirmwareVersion|printVersion|println|process|processInput|pulseIn|put|random|randomSeed|read|readAccelerometer|readBlue|readButton|readBytes|readBytesUntil|readGreen|readJoystickButton|readJoystickSwitch|readJoystickX|readJoystickY|readLightSensor|readMessage|readMicrophone|readNetworks|readRed|readSlider|readString|readStringUntil|readTemperature|ready|rect|release|releaseAll|remoteIP|remoteNumber|remotePort|remove|requestFrom|retrieveCallingNumber|rewindDirectory|rightToLeft|rmdir|robotNameRead|robotNameWrite|run|runAsynchronously|runShellCommand|runShellCommandAsynchronously|running|scanNetworks|scrollDisplayLeft|scrollDisplayRight|seek|sendAnalog|sendDigitalPortPair|sendDigitalPorts|sendString|sendSysex|serialEvent|setBand|setBitOrder|setClockDivider|setCursor|setDNS|setDataMode|setFirmwareVersion|setMode|setPINUsed|setSpeed|setTextSize|setTimeout|shiftIn|shiftOut|shutdown|sin|size|sqrt|startLoop|step|stop|stroke|subnetMask|switchPIN|tan|tempoWrite|text|tone|transfer|tuneWrite|turn|updateIR|userNameRead|userNameWrite|voiceCall|waitContinue|width|write|writeBlue|writeGreen|writeJSON|writeMessage|writeMicroseconds|writeRGB|writeRed|yield)\b/}),l.languages.ino=l.languages.arduino}Io.displayName="bash";Io.aliases=["sh","shell"];function Io(l){(function(i){var r="\\b(?:BASH|BASHOPTS|BASH_ALIASES|BASH_ARGC|BASH_ARGV|BASH_CMDS|BASH_COMPLETION_COMPAT_DIR|BASH_LINENO|BASH_REMATCH|BASH_SOURCE|BASH_VERSINFO|BASH_VERSION|COLORTERM|COLUMNS|COMP_WORDBREAKS|DBUS_SESSION_BUS_ADDRESS|DEFAULTS_PATH|DESKTOP_SESSION|DIRSTACK|DISPLAY|EUID|GDMSESSION|GDM_LANG|GNOME_KEYRING_CONTROL|GNOME_KEYRING_PID|GPG_AGENT_INFO|GROUPS|HISTCONTROL|HISTFILE|HISTFILESIZE|HISTSIZE|HOME|HOSTNAME|HOSTTYPE|IFS|INSTANCE|JOB|LANG|LANGUAGE|LC_ADDRESS|LC_ALL|LC_IDENTIFICATION|LC_MEASUREMENT|LC_MONETARY|LC_NAME|LC_NUMERIC|LC_PAPER|LC_TELEPHONE|LC_TIME|LESSCLOSE|LESSOPEN|LINES|LOGNAME|LS_COLORS|MACHTYPE|MAILCHECK|MANDATORY_PATH|NO_AT_BRIDGE|OLDPWD|OPTERR|OPTIND|ORBIT_SOCKETDIR|OSTYPE|PAPERSIZE|PATH|PIPESTATUS|PPID|PS1|PS2|PS3|PS4|PWD|RANDOM|REPLY|SECONDS|SELINUX_INIT|SESSION|SESSIONTYPE|SESSION_MANAGER|SHELL|SHELLOPTS|SHLVL|SSH_AUTH_SOCK|TERM|UID|UPSTART_EVENTS|UPSTART_INSTANCE|UPSTART_JOB|UPSTART_SESSION|USER|WINDOWID|XAUTHORITY|XDG_CONFIG_DIRS|XDG_CURRENT_DESKTOP|XDG_DATA_DIRS|XDG_GREETER_DATA_DIR|XDG_MENU_PREFIX|XDG_RUNTIME_DIR|XDG_SEAT|XDG_SEAT_PATH|XDG_SESSION_DESKTOP|XDG_SESSION_ID|XDG_SESSION_PATH|XDG_SESSION_TYPE|XDG_VTNR|XMODIFIERS)\\b",s={pattern:/(^(["']?)\w+\2)[ \t]+\S.*/,lookbehind:!0,alias:"punctuation",inside:null},o={bash:s,environment:{pattern:RegExp("\\$"+r),alias:"constant"},variable:[{pattern:/\$?\(\([\s\S]+?\)\)/,greedy:!0,inside:{variable:[{pattern:/(^\$\(\([\s\S]+)\)\)/,lookbehind:!0},/^\$\(\(/],number:/\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee]-?\d+)?/,operator:/--|\+\+|\*\*=?|<<=?|>>=?|&&|\|\||[=!+\-*/%<>^&|]=?|[?~:]/,punctuation:/\(\(?|\)\)?|,|;/}},{pattern:/\$\((?:\([^)]+\)|[^()])+\)|`[^`]+`/,greedy:!0,inside:{variable:/^\$\(|^`|\)$|`$/}},{pattern:/\$\{[^}]+\}/,greedy:!0,inside:{operator:/:[-=?+]?|[!\/]|##?|%%?|\^\^?|,,?/,punctuation:/[\[\]]/,environment:{pattern:RegExp("(\\{)"+r),lookbehind:!0,alias:"constant"}}},/\$(?:\w+|[#?*!@$])/],entity:/\\(?:[abceEfnrtv\\"]|O?[0-7]{1,3}|U[0-9a-fA-F]{8}|u[0-9a-fA-F]{4}|x[0-9a-fA-F]{1,2})/};i.languages.bash={shebang:{pattern:/^#!\s*\/.*/,alias:"important"},comment:{pattern:/(^|[^"{\\$])#.*/,lookbehind:!0},"function-name":[{pattern:/(\bfunction\s+)[\w-]+(?=(?:\s*\(?:\s*\))?\s*\{)/,lookbehind:!0,alias:"function"},{pattern:/\b[\w-]+(?=\s*\(\s*\)\s*\{)/,alias:"function"}],"for-or-select":{pattern:/(\b(?:for|select)\s+)\w+(?=\s+in\s)/,alias:"variable",lookbehind:!0},"assign-left":{pattern:/(^|[\s;|&]|[<>]\()\w+(?:\.\w+)*(?=\+?=)/,inside:{environment:{pattern:RegExp("(^|[\\s;|&]|[<>]\\()"+r),lookbehind:!0,alias:"constant"}},alias:"variable",lookbehind:!0},parameter:{pattern:/(^|\s)-{1,2}(?:\w+:[+-]?)?\w+(?:\.\w+)*(?=[=\s]|$)/,alias:"variable",lookbehind:!0},string:[{pattern:/((?:^|[^<])<<-?\s*)(\w+)\s[\s\S]*?(?:\r?\n|\r)\2/,lookbehind:!0,greedy:!0,inside:o},{pattern:/((?:^|[^<])<<-?\s*)(["'])(\w+)\2\s[\s\S]*?(?:\r?\n|\r)\3/,lookbehind:!0,greedy:!0,inside:{bash:s}},{pattern:/(^|[^\\](?:\\\\)*)"(?:\\[\s\S]|\$\([^)]+\)|\$(?!\()|`[^`]+`|[^"\\`$])*"/,lookbehind:!0,greedy:!0,inside:o},{pattern:/(^|[^$\\])'[^']*'/,lookbehind:!0,greedy:!0},{pattern:/\$'(?:[^'\\]|\\[\s\S])*'/,greedy:!0,inside:{entity:o.entity}}],environment:{pattern:RegExp("\\$?"+r),alias:"constant"},variable:o.variable,function:{pattern:/(^|[\s;|&]|[<>]\()(?:add|apropos|apt|apt-cache|apt-get|aptitude|aspell|automysqlbackup|awk|basename|bash|bc|bconsole|bg|bzip2|cal|cargo|cat|cfdisk|chgrp|chkconfig|chmod|chown|chroot|cksum|clear|cmp|column|comm|composer|cp|cron|crontab|csplit|curl|cut|date|dc|dd|ddrescue|debootstrap|df|diff|diff3|dig|dir|dircolors|dirname|dirs|dmesg|docker|docker-compose|du|egrep|eject|env|ethtool|expand|expect|expr|fdformat|fdisk|fg|fgrep|file|find|fmt|fold|format|free|fsck|ftp|fuser|gawk|git|gparted|grep|groupadd|groupdel|groupmod|groups|grub-mkconfig|gzip|halt|head|hg|history|host|hostname|htop|iconv|id|ifconfig|ifdown|ifup|import|install|ip|java|jobs|join|kill|killall|less|link|ln|locate|logname|logrotate|look|lpc|lpr|lprint|lprintd|lprintq|lprm|ls|lsof|lynx|make|man|mc|mdadm|mkconfig|mkdir|mke2fs|mkfifo|mkfs|mkisofs|mknod|mkswap|mmv|more|most|mount|mtools|mtr|mutt|mv|nano|nc|netstat|nice|nl|node|nohup|notify-send|npm|nslookup|op|open|parted|passwd|paste|pathchk|ping|pkill|pnpm|podman|podman-compose|popd|pr|printcap|printenv|ps|pushd|pv|quota|quotacheck|quotactl|ram|rar|rcp|reboot|remsync|rename|renice|rev|rm|rmdir|rpm|rsync|scp|screen|sdiff|sed|sendmail|seq|service|sftp|sh|shellcheck|shuf|shutdown|sleep|slocate|sort|split|ssh|stat|strace|su|sudo|sum|suspend|swapon|sync|sysctl|tac|tail|tar|tee|time|timeout|top|touch|tr|traceroute|tsort|tty|umount|uname|unexpand|uniq|units|unrar|unshar|unzip|update-grub|uptime|useradd|userdel|usermod|users|uudecode|uuencode|v|vcpkg|vdir|vi|vim|virsh|vmstat|wait|watch|wc|wget|whereis|which|who|whoami|write|xargs|xdg-open|yarn|yes|zenity|zip|zsh|zypper)(?=$|[)\s;|&])/,lookbehind:!0},keyword:{pattern:/(^|[\s;|&]|[<>]\()(?:case|do|done|elif|else|esac|fi|for|function|if|in|select|then|until|while)(?=$|[)\s;|&])/,lookbehind:!0},builtin:{pattern:/(^|[\s;|&]|[<>]\()(?:\.|:|alias|bind|break|builtin|caller|cd|command|continue|declare|echo|enable|eval|exec|exit|export|getopts|hash|help|let|local|logout|mapfile|printf|pwd|read|readarray|readonly|return|set|shift|shopt|source|test|times|trap|type|typeset|ulimit|umask|unalias|unset)(?=$|[)\s;|&])/,lookbehind:!0,alias:"class-name"},boolean:{pattern:/(^|[\s;|&]|[<>]\()(?:false|true)(?=$|[)\s;|&])/,lookbehind:!0},"file-descriptor":{pattern:/\B&\d\b/,alias:"important"},operator:{pattern:/\d?<>|>\||\+=|=[=~]?|!=?|<<[<-]?|[&\d]?>>|\d[<>]&?|[<>][&=]?|&[>&]?|\|[&|]?/,inside:{"file-descriptor":{pattern:/^\d/,alias:"important"}}},punctuation:/\$?\(\(?|\)\)?|\.\.|[{}[\];\\]/,number:{pattern:/(^|\s)(?:[1-9]\d*|0)(?:[.,]\d+)?\b/,lookbehind:!0}},s.inside=i.languages.bash;for(var d=["comment","function-name","for-or-select","assign-left","parameter","string","environment","function","keyword","builtin","boolean","file-descriptor","operator","punctuation","number"],h=o.variable[1].inside,y=0;y<d.length;y++)h[d[y]]=i.languages.bash[d[y]];i.languages.sh=i.languages.bash,i.languages.shell=i.languages.bash})(l)}Xo.displayName="csharp";Xo.aliases=["cs","dotnet"];function Xo(l){l.register(un),(function(i){function r(ce,N){return ce.replace(/<<(\d+)>>/g,function(Y,ee){return"(?:"+N[+ee]+")"})}function s(ce,N,Y){return RegExp(r(ce,N),"")}function o(ce,N){for(var Y=0;Y<N;Y++)ce=ce.replace(/<<self>>/g,function(){return"(?:"+ce+")"});return ce.replace(/<<self>>/g,"[^\\s\\S]")}var d={type:"bool byte char decimal double dynamic float int long object sbyte short string uint ulong ushort var void",typeDeclaration:"class enum interface record struct",contextual:"add alias and ascending async await by descending from(?=\\s*(?:\\w|$)) get global group into init(?=\\s*;) join let nameof not notnull on or orderby partial remove select set unmanaged value when where with(?=\\s*{)",other:"abstract as base break case catch checked const continue default delegate do else event explicit extern finally fixed for foreach goto if implicit in internal is lock namespace new null operator out override params private protected public readonly ref return sealed sizeof stackalloc static switch this throw try typeof unchecked unsafe using virtual volatile while yield"};function h(ce){return"\\b(?:"+ce.trim().replace(/ /g,"|")+")\\b"}var y=h(d.typeDeclaration),g=RegExp(h(d.type+" "+d.typeDeclaration+" "+d.contextual+" "+d.other)),m=h(d.typeDeclaration+" "+d.contextual+" "+d.other),b=h(d.type+" "+d.typeDeclaration+" "+d.other),x=o(/<(?:[^<>;=+\-*/%&|^]|<<self>>)*>/.source,2),S=o(/\((?:[^()]|<<self>>)*\)/.source,2),E=/@?\b[A-Za-z_]\w*\b/.source,A=r(/<<0>>(?:\s*<<1>>)?/.source,[E,x]),T=r(/(?!<<0>>)<<1>>(?:\s*\.\s*<<1>>)*/.source,[m,A]),_=/\[\s*(?:,\s*)*\]/.source,U=r(/<<0>>(?:\s*(?:\?\s*)?<<1>>)*(?:\s*\?)?/.source,[T,_]),q=r(/[^,()<>[\];=+\-*/%&|^]|<<0>>|<<1>>|<<2>>/.source,[x,S,_]),O=r(/\(<<0>>+(?:,<<0>>+)+\)/.source,[q]),F=r(/(?:<<0>>|<<1>>)(?:\s*(?:\?\s*)?<<2>>)*(?:\s*\?)?/.source,[O,T,_]),Z={keyword:g,punctuation:/[<>()?,.:[\]]/},X=/'(?:[^\r\n'\\]|\\.|\\[Uux][\da-fA-F]{1,8})'/.source,R=/"(?:\\.|[^\\"\r\n])*"/.source,M=/@"(?:""|\\[\s\S]|[^\\"])*"(?!")/.source;i.languages.csharp=i.languages.extend("clike",{string:[{pattern:s(/(^|[^$\\])<<0>>/.source,[M]),lookbehind:!0,greedy:!0},{pattern:s(/(^|[^@$\\])<<0>>/.source,[R]),lookbehind:!0,greedy:!0}],"class-name":[{pattern:s(/(\busing\s+static\s+)<<0>>(?=\s*;)/.source,[T]),lookbehind:!0,inside:Z},{pattern:s(/(\busing\s+<<0>>\s*=\s*)<<1>>(?=\s*;)/.source,[E,F]),lookbehind:!0,inside:Z},{pattern:s(/(\busing\s+)<<0>>(?=\s*=)/.source,[E]),lookbehind:!0},{pattern:s(/(\b<<0>>\s+)<<1>>/.source,[y,A]),lookbehind:!0,inside:Z},{pattern:s(/(\bcatch\s*\(\s*)<<0>>/.source,[T]),lookbehind:!0,inside:Z},{pattern:s(/(\bwhere\s+)<<0>>/.source,[E]),lookbehind:!0},{pattern:s(/(\b(?:is(?:\s+not)?|as)\s+)<<0>>/.source,[U]),lookbehind:!0,inside:Z},{pattern:s(/\b<<0>>(?=\s+(?!<<1>>|with\s*\{)<<2>>(?:\s*[=,;:{)\]]|\s+(?:in|when)\b))/.source,[F,b,E]),inside:Z}],keyword:g,number:/(?:\b0(?:x[\da-f_]*[\da-f]|b[01_]*[01])|(?:\B\.\d+(?:_+\d+)*|\b\d+(?:_+\d+)*(?:\.\d+(?:_+\d+)*)?)(?:e[-+]?\d+(?:_+\d+)*)?)(?:[dflmu]|lu|ul)?\b/i,operator:/>>=?|<<=?|[-=]>|([-+&|])\1|~|\?\?=?|[-+*/%&|^!=<>]=?/,punctuation:/\?\.?|::|[{}[\];(),.:]/}),i.languages.insertBefore("csharp","number",{range:{pattern:/\.\./,alias:"operator"}}),i.languages.insertBefore("csharp","punctuation",{"named-parameter":{pattern:s(/([(,]\s*)<<0>>(?=\s*:)/.source,[E]),lookbehind:!0,alias:"punctuation"}}),i.languages.insertBefore("csharp","class-name",{namespace:{pattern:s(/(\b(?:namespace|using)\s+)<<0>>(?:\s*\.\s*<<0>>)*(?=\s*[;{])/.source,[E]),lookbehind:!0,inside:{punctuation:/\./}},"type-expression":{pattern:s(/(\b(?:default|sizeof|typeof)\s*\(\s*(?!\s))(?:[^()\s]|\s(?!\s)|<<0>>)*(?=\s*\))/.source,[S]),lookbehind:!0,alias:"class-name",inside:Z},"return-type":{pattern:s(/<<0>>(?=\s+(?:<<1>>\s*(?:=>|[({]|\.\s*this\s*\[)|this\s*\[))/.source,[F,T]),inside:Z,alias:"class-name"},"constructor-invocation":{pattern:s(/(\bnew\s+)<<0>>(?=\s*[[({])/.source,[F]),lookbehind:!0,inside:Z,alias:"class-name"},"generic-method":{pattern:s(/<<0>>\s*<<1>>(?=\s*\()/.source,[E,x]),inside:{function:s(/^<<0>>/.source,[E]),generic:{pattern:RegExp(x),alias:"class-name",inside:Z}}},"type-list":{pattern:s(/\b((?:<<0>>\s+<<1>>|record\s+<<1>>\s*<<5>>|where\s+<<2>>)\s*:\s*)(?:<<3>>|<<4>>|<<1>>\s*<<5>>|<<6>>)(?:\s*,\s*(?:<<3>>|<<4>>|<<6>>))*(?=\s*(?:where|[{;]|=>|$))/.source,[y,A,E,F,g.source,S,/\bnew\s*\(\s*\)/.source]),lookbehind:!0,inside:{"record-arguments":{pattern:s(/(^(?!new\s*\()<<0>>\s*)<<1>>/.source,[A,S]),lookbehind:!0,greedy:!0,inside:i.languages.csharp},keyword:g,"class-name":{pattern:RegExp(F),greedy:!0,inside:Z},punctuation:/[,()]/}},preprocessor:{pattern:/(^[\t ]*)#.*/m,lookbehind:!0,alias:"property",inside:{directive:{pattern:/(#)\b(?:define|elif|else|endif|endregion|error|if|line|nullable|pragma|region|undef|warning)\b/,lookbehind:!0,alias:"keyword"}}}});var K=R+"|"+X,ie=r(/\/(?![*/])|\/\/[^\r\n]*[\r\n]|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>/.source,[K]),re=o(r(/[^"'/()]|<<0>>|\(<<self>>*\)/.source,[ie]),2),de=/\b(?:assembly|event|field|method|module|param|property|return|type)\b/.source,ne=r(/<<0>>(?:\s*\(<<1>>*\))?/.source,[T,re]);i.languages.insertBefore("csharp","class-name",{attribute:{pattern:s(/((?:^|[^\s\w>)?])\s*\[\s*)(?:<<0>>\s*:\s*)?<<1>>(?:\s*,\s*<<1>>)*(?=\s*\])/.source,[de,ne]),lookbehind:!0,greedy:!0,inside:{target:{pattern:s(/^<<0>>(?=\s*:)/.source,[de]),alias:"keyword"},"attribute-arguments":{pattern:s(/\(<<0>>*\)/.source,[re]),inside:i.languages.csharp},"class-name":{pattern:RegExp(T),inside:{punctuation:/\./}},punctuation:/[:,]/}}});var P=/:[^}\r\n]+/.source,J=o(r(/[^"'/()]|<<0>>|\(<<self>>*\)/.source,[ie]),2),k=r(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[J,P]),B=o(r(/[^"'/()]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>|\(<<self>>*\)/.source,[K]),2),le=r(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[B,P]);function ue(ce,N){return{interpolation:{pattern:s(/((?:^|[^{])(?:\{\{)*)<<0>>/.source,[ce]),lookbehind:!0,inside:{"format-string":{pattern:s(/(^\{(?:(?![}:])<<0>>)*)<<1>>(?=\}$)/.source,[N,P]),lookbehind:!0,inside:{punctuation:/^:/}},punctuation:/^\{|\}$/,expression:{pattern:/[\s\S]+/,alias:"language-csharp",inside:i.languages.csharp}}},string:/[\s\S]+/}}i.languages.insertBefore("csharp","string",{"interpolation-string":[{pattern:s(/(^|[^\\])(?:\$@|@\$)"(?:""|\\[\s\S]|\{\{|<<0>>|[^\\{"])*"/.source,[k]),lookbehind:!0,greedy:!0,inside:ue(k,J)},{pattern:s(/(^|[^@\\])\$"(?:\\.|\{\{|<<0>>|[^\\"{])*"/.source,[le]),lookbehind:!0,greedy:!0,inside:ue(le,B)}],char:{pattern:RegExp(X),greedy:!0}}),i.languages.dotnet=i.languages.cs=i.languages.csharp})(l)}zr.displayName="markup";zr.aliases=["atom","html","mathml","rss","ssml","svg","xml"];function zr(l){l.languages.markup={comment:{pattern:/<!--(?:(?!<!--)[\s\S])*?-->/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^<!|>$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},{pattern:/^(\s*)["']|["']$/,lookbehind:!0}]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},l.languages.markup.tag.inside["attr-value"].inside.entity=l.languages.markup.entity,l.languages.markup.doctype.inside["internal-subset"].inside=l.languages.markup,l.hooks.add("wrap",function(i){i.type==="entity"&&(i.attributes.title=i.content.value.replace(/&/,"&"))}),Object.defineProperty(l.languages.markup.tag,"addInlined",{value:function(r,s){var o={};o["language-"+s]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:l.languages[s]},o.cdata=/^<!\[CDATA\[|\]\]>$/i;var d={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:o}};d["language-"+s]={pattern:/[\s\S]+/,inside:l.languages[s]};var h={};h[r]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,function(){return r}),"i"),lookbehind:!0,greedy:!0,inside:d},l.languages.insertBefore("markup","cdata",h)}}),Object.defineProperty(l.languages.markup.tag,"addAttribute",{value:function(i,r){l.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+i+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[r,"language-"+r],inside:l.languages[r]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),l.languages.html=l.languages.markup,l.languages.mathml=l.languages.markup,l.languages.svg=l.languages.markup,l.languages.xml=l.languages.extend("markup",{}),l.languages.ssml=l.languages.xml,l.languages.atom=l.languages.xml,l.languages.rss=l.languages.xml}_l.displayName="css";_l.aliases=[];function _l(l){(function(i){var r=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;i.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:RegExp("@[\\w-](?:"+/[^;{\s"']|\s+(?!\s)/.source+"|"+r.source+")*?"+/(?:;|(?=\s*\{))/.source),inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+r.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+r.source+"$"),alias:"url"}}},selector:{pattern:RegExp(`(^|[{}\\s])[^{}\\s](?:[^{};"'\\s]|\\s+(?![\\s{])|`+r.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:r,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},i.languages.css.atrule.inside.rest=i.languages.css;var s=i.languages.markup;s&&(s.tag.addInlined("style","css"),s.tag.addAttribute("style","css"))})(l)}Fo.displayName="diff";Fo.aliases=[];function Fo(l){(function(i){i.languages.diff={coord:[/^(?:\*{3}|-{3}|\+{3}).*$/m,/^@@.*@@$/m,/^\d.*$/m]};var r={"deleted-sign":"-","deleted-arrow":"<","inserted-sign":"+","inserted-arrow":">",unchanged:" ",diff:"!"};Object.keys(r).forEach(function(s){var o=r[s],d=[];/^\w+$/.test(s)||d.push(/\w+/.exec(s)[0]),s==="diff"&&d.push("bold"),i.languages.diff[s]={pattern:RegExp("^(?:["+o+`].*(?:\r
|
|
348
|
+
?|
|
|
349
|
+
|(?![\\s\\S])))+`,"m"),alias:d,inside:{line:{pattern:/(.)(?=[\s\S]).*(?:\r\n?|\n)?/,lookbehind:!0},prefix:{pattern:/[\s\S]/,alias:/\w+/.exec(s)[0]}}}}),Object.defineProperty(i.languages.diff,"PREFIXES",{value:r})})(l)}$o.displayName="go";$o.aliases=[];function $o(l){l.register(un),l.languages.go=l.languages.extend("clike",{string:{pattern:/(^|[^\\])"(?:\\.|[^"\\\r\n])*"|`[^`]*`/,lookbehind:!0,greedy:!0},keyword:/\b(?:break|case|chan|const|continue|default|defer|else|fallthrough|for|func|go(?:to)?|if|import|interface|map|package|range|return|select|struct|switch|type|var)\b/,boolean:/\b(?:_|false|iota|nil|true)\b/,number:[/\b0(?:b[01_]+|o[0-7_]+)i?\b/i,/\b0x(?:[a-f\d_]+(?:\.[a-f\d_]*)?|\.[a-f\d_]+)(?:p[+-]?\d+(?:_\d+)*)?i?(?!\w)/i,/(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?[\d_]+)?i?(?!\w)/i],operator:/[*\/%^!=]=?|\+[=+]?|-[=-]?|\|[=|]?|&(?:=|&|\^=?)?|>(?:>=?|=)?|<(?:<=?|=|-)?|:=|\.\.\./,builtin:/\b(?:append|bool|byte|cap|close|complex|complex(?:64|128)|copy|delete|error|float(?:32|64)|u?int(?:8|16|32|64)?|imag|len|make|new|panic|print(?:ln)?|real|recover|rune|string|uintptr)\b/}),l.languages.insertBefore("go","string",{char:{pattern:/'(?:\\.|[^'\\\r\n]){0,10}'/,greedy:!0}}),delete l.languages.go["class-name"]}Zo.displayName="ini";Zo.aliases=[];function Zo(l){l.languages.ini={comment:{pattern:/(^[ \f\t\v]*)[#;][^\n\r]*/m,lookbehind:!0},section:{pattern:/(^[ \f\t\v]*)\[[^\n\r\]]*\]?/m,lookbehind:!0,inside:{"section-name":{pattern:/(^\[[ \f\t\v]*)[^ \f\t\v\]]+(?:[ \f\t\v]+[^ \f\t\v\]]+)*/,lookbehind:!0,alias:"selector"},punctuation:/\[|\]/}},key:{pattern:/(^[ \f\t\v]*)[^ \f\n\r\t\v=]+(?:[ \f\t\v]+[^ \f\n\r\t\v=]+)*(?=[ \f\t\v]*=)/m,lookbehind:!0,alias:"attr-name"},value:{pattern:/(=[ \f\t\v]*)[^ \f\n\r\t\v]+(?:[ \f\t\v]+[^ \f\n\r\t\v]+)*/,lookbehind:!0,alias:"attr-value",inside:{"inner-value":{pattern:/^("|').+(?=\1$)/,lookbehind:!0}}},punctuation:/=/}}Vo.displayName="java";Vo.aliases=[];function Vo(l){l.register(un),(function(i){var r=/\b(?:abstract|assert|boolean|break|byte|case|catch|char|class|const|continue|default|do|double|else|enum|exports|extends|final|finally|float|for|goto|if|implements|import|instanceof|int|interface|long|module|native|new|non-sealed|null|open|opens|package|permits|private|protected|provides|public|record(?!\s*[(){}[\]<>=%~.:,;?+\-*/&|^])|requires|return|sealed|short|static|strictfp|super|switch|synchronized|this|throw|throws|to|transient|transitive|try|uses|var|void|volatile|while|with|yield)\b/,s=/(?:[a-z]\w*\s*\.\s*)*(?:[A-Z]\w*\s*\.\s*)*/.source,o={pattern:RegExp(/(^|[^\w.])/.source+s+/[A-Z](?:[\d_A-Z]*[a-z]\w*)?\b/.source),lookbehind:!0,inside:{namespace:{pattern:/^[a-z]\w*(?:\s*\.\s*[a-z]\w*)*(?:\s*\.)?/,inside:{punctuation:/\./}},punctuation:/\./}};i.languages.java=i.languages.extend("clike",{string:{pattern:/(^|[^\\])"(?:\\.|[^"\\\r\n])*"/,lookbehind:!0,greedy:!0},"class-name":[o,{pattern:RegExp(/(^|[^\w.])/.source+s+/[A-Z]\w*(?=\s+\w+\s*[;,=()]|\s*(?:\[[\s,]*\]\s*)?::\s*new\b)/.source),lookbehind:!0,inside:o.inside},{pattern:RegExp(/(\b(?:class|enum|extends|implements|instanceof|interface|new|record|throws)\s+)/.source+s+/[A-Z]\w*\b/.source),lookbehind:!0,inside:o.inside}],keyword:r,function:[i.languages.clike.function,{pattern:/(::\s*)[a-z_]\w*/,lookbehind:!0}],number:/\b0b[01][01_]*L?\b|\b0x(?:\.[\da-f_p+-]+|[\da-f_]+(?:\.[\da-f_p+-]+)?)\b|(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?\d[\d_]*)?[dfl]?/i,operator:{pattern:/(^|[^.])(?:<<=?|>>>?=?|->|--|\+\+|&&|\|\||::|[?:~]|[-+*/%&|^!=<>]=?)/m,lookbehind:!0},constant:/\b[A-Z][A-Z_\d]+\b/}),i.languages.insertBefore("java","string",{"triple-quoted-string":{pattern:/"""[ \t]*[\r\n](?:(?:"|"")?(?:\\.|[^"\\]))*"""/,greedy:!0,alias:"string"},char:{pattern:/'(?:\\.|[^'\\\r\n]){1,6}'/,greedy:!0}}),i.languages.insertBefore("java","class-name",{annotation:{pattern:/(^|[^.])@\w+(?:\s*\.\s*\w+)*/,lookbehind:!0,alias:"punctuation"},generics:{pattern:/<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&))*>)*>)*>)*>/,inside:{"class-name":o,keyword:r,punctuation:/[<>(),.:]/,operator:/[?&|]/}},import:[{pattern:RegExp(/(\bimport\s+)/.source+s+/(?:[A-Z]\w*|\*)(?=\s*;)/.source),lookbehind:!0,inside:{namespace:o.inside.namespace,punctuation:/\./,operator:/\*/,"class-name":/\w+/}},{pattern:RegExp(/(\bimport\s+static\s+)/.source+s+/(?:\w+|\*)(?=\s*;)/.source),lookbehind:!0,alias:"static",inside:{namespace:o.inside.namespace,static:/\b\w+$/,punctuation:/\./,operator:/\*/,"class-name":/\w+/}}],namespace:{pattern:RegExp(/(\b(?:exports|import(?:\s+static)?|module|open|opens|package|provides|requires|to|transitive|uses|with)\s+)(?!<keyword>)[a-z]\w*(?:\.[a-z]\w*)*\.?/.source.replace(/<keyword>/g,function(){return r.source})),lookbehind:!0,inside:{punctuation:/\./}}})})(l)}Ko.displayName="regex";Ko.aliases=[];function Ko(l){(function(i){var r={pattern:/\\[\\(){}[\]^$+*?|.]/,alias:"escape"},s=/\\(?:x[\da-fA-F]{2}|u[\da-fA-F]{4}|u\{[\da-fA-F]+\}|0[0-7]{0,2}|[123][0-7]{2}|c[a-zA-Z]|.)/,o={pattern:/\.|\\[wsd]|\\p\{[^{}]+\}/i,alias:"class-name"},d={pattern:/\\[wsd]|\\p\{[^{}]+\}/i,alias:"class-name"},h="(?:[^\\\\-]|"+s.source+")",y=RegExp(h+"-"+h),g={pattern:/(<|')[^<>']+(?=[>']$)/,lookbehind:!0,alias:"variable"};i.languages.regex={"char-class":{pattern:/((?:^|[^\\])(?:\\\\)*)\[(?:[^\\\]]|\\[\s\S])*\]/,lookbehind:!0,inside:{"char-class-negation":{pattern:/(^\[)\^/,lookbehind:!0,alias:"operator"},"char-class-punctuation":{pattern:/^\[|\]$/,alias:"punctuation"},range:{pattern:y,inside:{escape:s,"range-punctuation":{pattern:/-/,alias:"operator"}}},"special-escape":r,"char-set":d,escape:s}},"special-escape":r,"char-set":o,backreference:[{pattern:/\\(?![123][0-7]{2})[1-9]/,alias:"keyword"},{pattern:/\\k<[^<>']+>/,alias:"keyword",inside:{"group-name":g}}],anchor:{pattern:/[$^]|\\[ABbGZz]/,alias:"function"},escape:s,group:[{pattern:/\((?:\?(?:<[^<>']+>|'[^<>']+'|[>:]|<?[=!]|[idmnsuxU]+(?:-[idmnsuxU]+)?:?))?/,alias:"punctuation",inside:{"group-name":g}},{pattern:/\)/,alias:"punctuation"}],quantifier:{pattern:/(?:[+*?]|\{\d+(?:,\d*)?\})[?+]?/,alias:"number"},alternation:{pattern:/\|/,alias:"keyword"}}})(l)}Ts.displayName="javascript";Ts.aliases=["js"];function Ts(l){l.register(un),l.languages.javascript=l.languages.extend("clike",{"class-name":[l.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:{pattern:RegExp(/(^|[^\w$])/.source+"(?:"+(/NaN|Infinity/.source+"|"+/0[bB][01]+(?:_[01]+)*n?/.source+"|"+/0[oO][0-7]+(?:_[0-7]+)*n?/.source+"|"+/0[xX][\dA-Fa-f]+(?:_[\dA-Fa-f]+)*n?/.source+"|"+/\d+(?:_\d+)*n/.source+"|"+/(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[Ee][+-]?\d+(?:_\d+)*)?/.source)+")"+/(?![\w$])/.source),lookbehind:!0},operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),l.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,l.languages.insertBefore("javascript","keyword",{regex:{pattern:RegExp(/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)/.source+/\//.source+"(?:"+/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}/.source+"|"+/(?:\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.)*\])*\])*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}v[dgimyus]{0,7}/.source+")"+/(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/.source),lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:l.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:l.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:l.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:l.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:l.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),l.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:l.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:"property"}}),l.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}}),l.languages.markup&&(l.languages.markup.tag.addInlined("script","javascript"),l.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript")),l.languages.js=l.languages.javascript}Qo.displayName="json";Qo.aliases=["webmanifest"];function Qo(l){l.languages.json={property:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?=\s*:)/,lookbehind:!0,greedy:!0},string:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?!\s*:)/,lookbehind:!0,greedy:!0},comment:{pattern:/\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},number:/-?\b\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,punctuation:/[{}[\],]/,operator:/:/,boolean:/\b(?:false|true)\b/,null:{pattern:/\bnull\b/,alias:"keyword"}},l.languages.webmanifest=l.languages.json}Jo.displayName="kotlin";Jo.aliases=["kt","kts"];function Jo(l){l.register(un),(function(i){i.languages.kotlin=i.languages.extend("clike",{keyword:{pattern:/(^|[^.])\b(?:abstract|actual|annotation|as|break|by|catch|class|companion|const|constructor|continue|crossinline|data|do|dynamic|else|enum|expect|external|final|finally|for|fun|get|if|import|in|infix|init|inline|inner|interface|internal|is|lateinit|noinline|null|object|open|operator|out|override|package|private|protected|public|reified|return|sealed|set|super|suspend|tailrec|this|throw|to|try|typealias|val|var|vararg|when|where|while)\b/,lookbehind:!0},function:[{pattern:/(?:`[^\r\n`]+`|\b\w+)(?=\s*\()/,greedy:!0},{pattern:/(\.)(?:`[^\r\n`]+`|\w+)(?=\s*\{)/,lookbehind:!0,greedy:!0}],number:/\b(?:0[xX][\da-fA-F]+(?:_[\da-fA-F]+)*|0[bB][01]+(?:_[01]+)*|\d+(?:_\d+)*(?:\.\d+(?:_\d+)*)?(?:[eE][+-]?\d+(?:_\d+)*)?[fFL]?)\b/,operator:/\+[+=]?|-[-=>]?|==?=?|!(?:!|==?)?|[\/*%<>]=?|[?:]:?|\.\.|&&|\|\||\b(?:and|inv|or|shl|shr|ushr|xor)\b/}),delete i.languages.kotlin["class-name"];var r={"interpolation-punctuation":{pattern:/^\$\{?|\}$/,alias:"punctuation"},expression:{pattern:/[\s\S]+/,inside:i.languages.kotlin}};i.languages.insertBefore("kotlin","string",{"string-literal":[{pattern:/"""(?:[^$]|\$(?:(?!\{)|\{[^{}]*\}))*?"""/,alias:"multiline",inside:{interpolation:{pattern:/\$(?:[a-z_]\w*|\{[^{}]*\})/i,inside:r},string:/[\s\S]+/}},{pattern:/"(?:[^"\\\r\n$]|\\.|\$(?:(?!\{)|\{[^{}]*\}))*"/,alias:"singleline",inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$(?:[a-z_]\w*|\{[^{}]*\})/i,lookbehind:!0,inside:r},string:/[\s\S]+/}}],char:{pattern:/'(?:[^'\\\r\n]|\\(?:.|u[a-fA-F0-9]{0,4}))'/,greedy:!0}}),delete i.languages.kotlin.string,i.languages.insertBefore("kotlin","keyword",{annotation:{pattern:/\B@(?:\w+:)?(?:[A-Z]\w*|\[[^\]]+\])/,alias:"builtin"}}),i.languages.insertBefore("kotlin","function",{label:{pattern:/\b\w+@|@\w+\b/,alias:"symbol"}}),i.languages.kt=i.languages.kotlin,i.languages.kts=i.languages.kotlin})(l)}Wo.displayName="less";Wo.aliases=[];function Wo(l){l.register(_l),l.languages.less=l.languages.extend("css",{comment:[/\/\*[\s\S]*?\*\//,{pattern:/(^|[^\\])\/\/.*/,lookbehind:!0}],atrule:{pattern:/@[\w-](?:\((?:[^(){}]|\([^(){}]*\))*\)|[^(){};\s]|\s+(?!\s))*?(?=\s*\{)/,inside:{punctuation:/[:()]/}},selector:{pattern:/(?:@\{[\w-]+\}|[^{};\s@])(?:@\{[\w-]+\}|\((?:[^(){}]|\([^(){}]*\))*\)|[^(){};@\s]|\s+(?!\s))*?(?=\s*\{)/,inside:{variable:/@+[\w-]+/}},property:/(?:@\{[\w-]+\}|[\w-])+(?:\+_?)?(?=\s*:)/,operator:/[+\-*\/]/}),l.languages.insertBefore("less","property",{variable:[{pattern:/@[\w-]+\s*:/,inside:{punctuation:/:/}},/@@?[\w-]+/],"mixin-usage":{pattern:/([{;]\s*)[.#](?!\d)[\w-].*?(?=[(;])/,lookbehind:!0,alias:"function"}})}Po.displayName="lua";Po.aliases=[];function Po(l){l.languages.lua={comment:/^#!.+|--(?:\[(=*)\[[\s\S]*?\]\1\]|.*)/m,string:{pattern:/(["'])(?:(?!\1)[^\\\r\n]|\\z(?:\r\n|\s)|\\(?:\r\n|[^z]))*\1|\[(=*)\[[\s\S]*?\]\2\]/,greedy:!0},number:/\b0x[a-f\d]+(?:\.[a-f\d]*)?(?:p[+-]?\d+)?\b|\b\d+(?:\.\B|(?:\.\d*)?(?:e[+-]?\d+)?\b)|\B\.\d+(?:e[+-]?\d+)?\b/i,keyword:/\b(?:and|break|do|else|elseif|end|false|for|function|goto|if|in|local|nil|not|or|repeat|return|then|true|until|while)\b/,function:/(?!\d)\w+(?=\s*(?:[({]))/,operator:[/[-+*%^&|#]|\/\/?|<[<=]?|>[>=]?|[=~]=?/,{pattern:/(^|[^.])\.\.(?!\.)/,lookbehind:!0}],punctuation:/[\[\](){},;]|\.+|:+/}}ef.displayName="makefile";ef.aliases=[];function ef(l){l.languages.makefile={comment:{pattern:/(^|[^\\])#(?:\\(?:\r\n|[\s\S])|[^\\\r\n])*/,lookbehind:!0},string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"builtin-target":{pattern:/\.[A-Z][^:#=\s]+(?=\s*:(?!=))/,alias:"builtin"},target:{pattern:/^(?:[^:=\s]|[ \t]+(?![\s:]))+(?=\s*:(?!=))/m,alias:"symbol",inside:{variable:/\$+(?:(?!\$)[^(){}:#=\s]+|(?=[({]))/}},variable:/\$+(?:(?!\$)[^(){}:#=\s]+|\([@*%<^+?][DF]\)|(?=[({]))/,keyword:/-include\b|\b(?:define|else|endef|endif|export|ifn?def|ifn?eq|include|override|private|sinclude|undefine|unexport|vpath)\b/,function:{pattern:/(\()(?:abspath|addsuffix|and|basename|call|dir|error|eval|file|filter(?:-out)?|findstring|firstword|flavor|foreach|guile|if|info|join|lastword|load|notdir|or|origin|patsubst|realpath|shell|sort|strip|subst|suffix|value|warning|wildcard|word(?:list|s)?)(?=[ \t])/,lookbehind:!0},operator:/(?:::|[?:+!])?=|[|@]/,punctuation:/[:;(){}]/}}tf.displayName="yaml";tf.aliases=["yml"];function tf(l){(function(i){var r=/[*&][^\s[\]{},]+/,s=/!(?:<[\w\-%#;/?:@&=+$,.!~*'()[\]]+>|(?:[a-zA-Z\d-]*!)?[\w\-%#;/?:@&=+$.~*'()]+)?/,o="(?:"+s.source+"(?:[ ]+"+r.source+")?|"+r.source+"(?:[ ]+"+s.source+")?)",d=/(?:[^\s\x00-\x08\x0e-\x1f!"#%&'*,\-:>?@[\]`{|}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]|[?:-]<PLAIN>)(?:[ \t]*(?:(?![#:])<PLAIN>|:<PLAIN>))*/.source.replace(/<PLAIN>/g,function(){return/[^\s\x00-\x08\x0e-\x1f,[\]{}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]/.source}),h=/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\\\r\n]|\\.)*'/.source;function y(g,m){m=(m||"").replace(/m/g,"")+"m";var b=/([:\-,[{]\s*(?:\s<<prop>>[ \t]+)?)(?:<<value>>)(?=[ \t]*(?:$|,|\]|\}|(?:[\r\n]\s*)?#))/.source.replace(/<<prop>>/g,function(){return o}).replace(/<<value>>/g,function(){return g});return RegExp(b,m)}i.languages.yaml={scalar:{pattern:RegExp(/([\-:]\s*(?:\s<<prop>>[ \t]+)?[|>])[ \t]*(?:((?:\r?\n|\r)[ \t]+)\S[^\r\n]*(?:\2[^\r\n]+)*)/.source.replace(/<<prop>>/g,function(){return o})),lookbehind:!0,alias:"string"},comment:/#.*/,key:{pattern:RegExp(/((?:^|[:\-,[{\r\n?])[ \t]*(?:<<prop>>[ \t]+)?)<<key>>(?=\s*:\s)/.source.replace(/<<prop>>/g,function(){return o}).replace(/<<key>>/g,function(){return"(?:"+d+"|"+h+")"})),lookbehind:!0,greedy:!0,alias:"atrule"},directive:{pattern:/(^[ \t]*)%.+/m,lookbehind:!0,alias:"important"},datetime:{pattern:y(/\d{4}-\d\d?-\d\d?(?:[tT]|[ \t]+)\d\d?:\d{2}:\d{2}(?:\.\d*)?(?:[ \t]*(?:Z|[-+]\d\d?(?::\d{2})?))?|\d{4}-\d{2}-\d{2}|\d\d?:\d{2}(?::\d{2}(?:\.\d*)?)?/.source),lookbehind:!0,alias:"number"},boolean:{pattern:y(/false|true/.source,"i"),lookbehind:!0,alias:"important"},null:{pattern:y(/null|~/.source,"i"),lookbehind:!0,alias:"important"},string:{pattern:y(h),lookbehind:!0,greedy:!0},number:{pattern:y(/[+-]?(?:0x[\da-f]+|0o[0-7]+|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?|\.inf|\.nan)/.source,"i"),lookbehind:!0},tag:s,important:r,punctuation:/---|[:[\]{}\-,|>?]|\.\.\./},i.languages.yml=i.languages.yaml})(l)}nf.displayName="markdown";nf.aliases=["md"];function nf(l){l.register(zr),(function(i){var r=/(?:\\.|[^\\\n\r]|(?:\n|\r\n?)(?![\r\n]))/.source;function s(y){return y=y.replace(/<inner>/g,function(){return r}),RegExp(/((?:^|[^\\])(?:\\{2})*)/.source+"(?:"+y+")")}var o=/(?:\\.|``(?:[^`\r\n]|`(?!`))+``|`[^`\r\n]+`|[^\\|\r\n`])+/.source,d=/\|?__(?:\|__)+\|?(?:(?:\n|\r\n?)|(?![\s\S]))/.source.replace(/__/g,function(){return o}),h=/\|?[ \t]*:?-{3,}:?[ \t]*(?:\|[ \t]*:?-{3,}:?[ \t]*)+\|?(?:\n|\r\n?)/.source;i.languages.markdown=i.languages.extend("markup",{}),i.languages.insertBefore("markdown","prolog",{"front-matter-block":{pattern:/(^(?:\s*[\r\n])?)---(?!.)[\s\S]*?[\r\n]---(?!.)/,lookbehind:!0,greedy:!0,inside:{punctuation:/^---|---$/,"front-matter":{pattern:/\S+(?:\s+\S+)*/,alias:["yaml","language-yaml"],inside:i.languages.yaml}}},blockquote:{pattern:/^>(?:[\t ]*>)*/m,alias:"punctuation"},table:{pattern:RegExp("^"+d+h+"(?:"+d+")*","m"),inside:{"table-data-rows":{pattern:RegExp("^("+d+h+")(?:"+d+")*$"),lookbehind:!0,inside:{"table-data":{pattern:RegExp(o),inside:i.languages.markdown},punctuation:/\|/}},"table-line":{pattern:RegExp("^("+d+")"+h+"$"),lookbehind:!0,inside:{punctuation:/\||:?-{3,}:?/}},"table-header-row":{pattern:RegExp("^"+d+"$"),inside:{"table-header":{pattern:RegExp(o),alias:"important",inside:i.languages.markdown},punctuation:/\|/}}}},code:[{pattern:/((?:^|\n)[ \t]*\n|(?:^|\r\n?)[ \t]*\r\n?)(?: {4}|\t).+(?:(?:\n|\r\n?)(?: {4}|\t).+)*/,lookbehind:!0,alias:"keyword"},{pattern:/^```[\s\S]*?^```$/m,greedy:!0,inside:{"code-block":{pattern:/^(```.*(?:\n|\r\n?))[\s\S]+?(?=(?:\n|\r\n?)^```$)/m,lookbehind:!0},"code-language":{pattern:/^(```).+/,lookbehind:!0},punctuation:/```/}}],title:[{pattern:/\S.*(?:\n|\r\n?)(?:==+|--+)(?=[ \t]*$)/m,alias:"important",inside:{punctuation:/==+$|--+$/}},{pattern:/(^\s*)#.+/m,lookbehind:!0,alias:"important",inside:{punctuation:/^#+|#+$/}}],hr:{pattern:/(^\s*)([*-])(?:[\t ]*\2){2,}(?=\s*$)/m,lookbehind:!0,alias:"punctuation"},list:{pattern:/(^\s*)(?:[*+-]|\d+\.)(?=[\t ].)/m,lookbehind:!0,alias:"punctuation"},"url-reference":{pattern:/!?\[[^\]]+\]:[\t ]+(?:\S+|<(?:\\.|[^>\\])+>)(?:[\t ]+(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\)))?/,inside:{variable:{pattern:/^(!?\[)[^\]]+/,lookbehind:!0},string:/(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\))$/,punctuation:/^[\[\]!:]|[<>]/},alias:"url"},bold:{pattern:s(/\b__(?:(?!_)<inner>|_(?:(?!_)<inner>)+_)+__\b|\*\*(?:(?!\*)<inner>|\*(?:(?!\*)<inner>)+\*)+\*\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^..)[\s\S]+(?=..$)/,lookbehind:!0,inside:{}},punctuation:/\*\*|__/}},italic:{pattern:s(/\b_(?:(?!_)<inner>|__(?:(?!_)<inner>)+__)+_\b|\*(?:(?!\*)<inner>|\*\*(?:(?!\*)<inner>)+\*\*)+\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^.)[\s\S]+(?=.$)/,lookbehind:!0,inside:{}},punctuation:/[*_]/}},strike:{pattern:s(/(~~?)(?:(?!~)<inner>)+\2/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^~~?)[\s\S]+(?=\1$)/,lookbehind:!0,inside:{}},punctuation:/~~?/}},"code-snippet":{pattern:/(^|[^\\`])(?:``[^`\r\n]+(?:`[^`\r\n]+)*``(?!`)|`[^`\r\n]+`(?!`))/,lookbehind:!0,greedy:!0,alias:["code","keyword"]},url:{pattern:s(/!?\[(?:(?!\])<inner>)+\](?:\([^\s)]+(?:[\t ]+"(?:\\.|[^"\\])*")?\)|[ \t]?\[(?:(?!\])<inner>)+\])/.source),lookbehind:!0,greedy:!0,inside:{operator:/^!/,content:{pattern:/(^\[)[^\]]+(?=\])/,lookbehind:!0,inside:{}},variable:{pattern:/(^\][ \t]?\[)[^\]]+(?=\]$)/,lookbehind:!0},url:{pattern:/(^\]\()[^\s)]+/,lookbehind:!0},string:{pattern:/(^[ \t]+)"(?:\\.|[^"\\])*"(?=\)$)/,lookbehind:!0}}}}),["url","bold","italic","strike"].forEach(function(y){["url","bold","italic","strike","code-snippet"].forEach(function(g){y!==g&&(i.languages.markdown[y].inside.content.inside[g]=i.languages.markdown[g])})}),i.hooks.add("after-tokenize",function(y){if(y.language!=="markdown"&&y.language!=="md")return;function g(m){if(!(!m||typeof m=="string"))for(var b=0,x=m.length;b<x;b++){var S=m[b];if(S.type!=="code"){g(S.content);continue}var E=S.content[1],A=S.content[3];if(E&&A&&E.type==="code-language"&&A.type==="code-block"&&typeof E.content=="string"){var T=E.content.replace(/\b#/g,"sharp").replace(/\b\+\+/g,"pp");T=(/[a-z][\w-]*/i.exec(T)||[""])[0].toLowerCase();var _="language-"+T;A.alias?typeof A.alias=="string"?A.alias=[A.alias,_]:A.alias.push(_):A.alias=[_]}}}g(y.tokens)}),i.hooks.add("wrap",function(y){if(y.type==="code-block"){for(var g="",m=0,b=y.classes.length;m<b;m++){var x=y.classes[m],S=/language-(.+)/.exec(x);if(S){g=S[1];break}}var E=i.languages[g];if(E)y.content=i.highlight(y.content.value,E,g);else if(g&&g!=="none"&&i.plugins.autoloader){var A="md-"+new Date().valueOf()+"-"+Math.floor(Math.random()*1e16);y.attributes.id=A,i.plugins.autoloader.loadLanguages(g,function(){var T=document.getElementById(A);T&&(T.innerHTML=i.highlight(T.textContent,i.languages[g],g))})}}}),RegExp(i.languages.markup.tag.pattern.source,"gi"),i.languages.md=i.languages.markdown})(l)}af.displayName="objectivec";af.aliases=["objc"];function af(l){l.register(Dr),l.languages.objectivec=l.languages.extend("c",{string:{pattern:/@?"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},keyword:/\b(?:asm|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|in|inline|int|long|register|return|self|short|signed|sizeof|static|struct|super|switch|typedef|typeof|union|unsigned|void|volatile|while)\b|(?:@interface|@end|@implementation|@protocol|@class|@public|@protected|@private|@property|@try|@catch|@finally|@throw|@synthesize|@dynamic|@selector)\b/,operator:/-[->]?|\+\+?|!=?|<<?=?|>>?=?|==?|&&?|\|\|?|[~^%?*\/@]/}),delete l.languages.objectivec["class-name"],l.languages.objc=l.languages.objectivec}lf.displayName="perl";lf.aliases=[];function lf(l){(function(i){var r=/(?:\((?:[^()\\]|\\[\s\S])*\)|\{(?:[^{}\\]|\\[\s\S])*\}|\[(?:[^[\]\\]|\\[\s\S])*\]|<(?:[^<>\\]|\\[\s\S])*>)/.source;i.languages.perl={comment:[{pattern:/(^\s*)=\w[\s\S]*?=cut.*/m,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\$])#.*/,lookbehind:!0,greedy:!0}],string:[{pattern:RegExp(/\b(?:q|qq|qw|qx)(?![a-zA-Z0-9])\s*/.source+"(?:"+[/([^a-zA-Z0-9\s{(\[<])(?:(?!\1)[^\\]|\\[\s\S])*\1/.source,/([a-zA-Z0-9])(?:(?!\2)[^\\]|\\[\s\S])*\2/.source,r].join("|")+")"),greedy:!0},{pattern:/("|`)(?:(?!\1)[^\\]|\\[\s\S])*\1/,greedy:!0},{pattern:/'(?:[^'\\\r\n]|\\.)*'/,greedy:!0}],regex:[{pattern:RegExp(/\b(?:m|qr)(?![a-zA-Z0-9])\s*/.source+"(?:"+[/([^a-zA-Z0-9\s{(\[<])(?:(?!\1)[^\\]|\\[\s\S])*\1/.source,/([a-zA-Z0-9])(?:(?!\2)[^\\]|\\[\s\S])*\2/.source,r].join("|")+")"+/[msixpodualngc]*/.source),greedy:!0},{pattern:RegExp(/(^|[^-])\b(?:s|tr|y)(?![a-zA-Z0-9])\s*/.source+"(?:"+[/([^a-zA-Z0-9\s{(\[<])(?:(?!\2)[^\\]|\\[\s\S])*\2(?:(?!\2)[^\\]|\\[\s\S])*\2/.source,/([a-zA-Z0-9])(?:(?!\3)[^\\]|\\[\s\S])*\3(?:(?!\3)[^\\]|\\[\s\S])*\3/.source,r+/\s*/.source+r].join("|")+")"+/[msixpodualngcer]*/.source),lookbehind:!0,greedy:!0},{pattern:/\/(?:[^\/\\\r\n]|\\.)*\/[msixpodualngc]*(?=\s*(?:$|[\r\n,.;})&|\-+*~<>!?^]|(?:and|cmp|eq|ge|gt|le|lt|ne|not|or|x|xor)\b))/,greedy:!0}],variable:[/[&*$@%]\{\^[A-Z]+\}/,/[&*$@%]\^[A-Z_]/,/[&*$@%]#?(?=\{)/,/[&*$@%]#?(?:(?:::)*'?(?!\d)[\w$]+(?![\w$]))+(?:::)*/,/[&*$@%]\d+/,/(?!%=)[$@%][!"#$%&'()*+,\-.\/:;<=>?@[\\\]^_`{|}~]/],filehandle:{pattern:/<(?![<=])\S*?>|\b_\b/,alias:"symbol"},"v-string":{pattern:/v\d+(?:\.\d+)*|\d+(?:\.\d+){2,}/,alias:"string"},function:{pattern:/(\bsub[ \t]+)\w+/,lookbehind:!0},keyword:/\b(?:any|break|continue|default|delete|die|do|else|elsif|eval|for|foreach|given|goto|if|last|local|my|next|our|package|print|redo|require|return|say|state|sub|switch|undef|unless|until|use|when|while)\b/,number:/\b(?:0x[\dA-Fa-f](?:_?[\dA-Fa-f])*|0b[01](?:_?[01])*|(?:(?:\d(?:_?\d)*)?\.)?\d(?:_?\d)*(?:[Ee][+-]?\d+)?)\b/,operator:/-[rwxoRWXOezsfdlpSbctugkTBMAC]\b|\+[+=]?|-[-=>]?|\*\*?=?|\/\/?=?|=[=~>]?|~[~=]?|\|\|?=?|&&?=?|<(?:=>?|<=?)?|>>?=?|![~=]?|[%^]=?|\.(?:=|\.\.?)?|[\\?]|\bx(?:=|\b)|\b(?:and|cmp|eq|ge|gt|le|lt|ne|not|or|xor)\b/,punctuation:/[{}[\];(),:]/}})(l)}Cs.displayName="markup-templating";Cs.aliases=[];function Cs(l){l.register(zr),(function(i){function r(s,o){return"___"+s.toUpperCase()+o+"___"}Object.defineProperties(i.languages["markup-templating"]={},{buildPlaceholders:{value:function(s,o,d,h){if(s.language===o){var y=s.tokenStack=[];s.code=s.code.replace(d,function(g){if(typeof h=="function"&&!h(g))return g;for(var m=y.length,b;s.code.indexOf(b=r(o,m))!==-1;)++m;return y[m]=g,b}),s.grammar=i.languages.markup}}},tokenizePlaceholders:{value:function(s,o){if(s.language!==o||!s.tokenStack)return;s.grammar=i.languages[o];var d=0,h=Object.keys(s.tokenStack);function y(g){for(var m=0;m<g.length&&!(d>=h.length);m++){var b=g[m];if(typeof b=="string"||b.content&&typeof b.content=="string"){var x=h[d],S=s.tokenStack[x],E=typeof b=="string"?b:b.content,A=r(o,x),T=E.indexOf(A);if(T>-1){++d;var _=E.substring(0,T),U=new i.Token(o,i.tokenize(S,s.grammar),"language-"+o,S),q=E.substring(T+A.length),O=[];_&&O.push.apply(O,y([_])),O.push(U),q&&O.push.apply(O,y([q])),typeof b=="string"?g.splice.apply(g,[m,1].concat(O)):b.content=O}}else b.content&&y(b.content)}return g}y(s.tokens)}}})})(l)}rf.displayName="php";rf.aliases=[];function rf(l){l.register(Cs),(function(i){var r=/\/\*[\s\S]*?\*\/|\/\/.*|#(?!\[).*/,s=[{pattern:/\b(?:false|true)\b/i,alias:"boolean"},{pattern:/(::\s*)\b[a-z_]\w*\b(?!\s*\()/i,greedy:!0,lookbehind:!0},{pattern:/(\b(?:case|const)\s+)\b[a-z_]\w*(?=\s*[;=])/i,greedy:!0,lookbehind:!0},/\b(?:null)\b/i,/\b[A-Z_][A-Z0-9_]*\b(?!\s*\()/],o=/\b0b[01]+(?:_[01]+)*\b|\b0o[0-7]+(?:_[0-7]+)*\b|\b0x[\da-f]+(?:_[\da-f]+)*\b|(?:\b\d+(?:_\d+)*\.?(?:\d+(?:_\d+)*)?|\B\.\d+)(?:e[+-]?\d+)?/i,d=/<?=>|\?\?=?|\.{3}|\??->|[!=]=?=?|::|\*\*=?|--|\+\+|&&|\|\||<<|>>|[?~]|[/^|%*&<>.+-]=?/,h=/[{}\[\](),:;]/;i.languages.php={delimiter:{pattern:/\?>$|^<\?(?:php(?=\s)|=)?/i,alias:"important"},comment:r,variable:/\$+(?:\w+\b|(?=\{))/,package:{pattern:/(namespace\s+|use\s+(?:function\s+)?)(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,lookbehind:!0,inside:{punctuation:/\\/}},"class-name-definition":{pattern:/(\b(?:class|enum|interface|trait)\s+)\b[a-z_]\w*(?!\\)\b/i,lookbehind:!0,alias:"class-name"},"function-definition":{pattern:/(\bfunction\s+)[a-z_]\w*(?=\s*\()/i,lookbehind:!0,alias:"function"},keyword:[{pattern:/(\(\s*)\b(?:array|bool|boolean|float|int|integer|object|string)\b(?=\s*\))/i,alias:"type-casting",greedy:!0,lookbehind:!0},{pattern:/([(,?]\s*)\b(?:array(?!\s*\()|bool|callable|(?:false|null)(?=\s*\|)|float|int|iterable|mixed|object|self|static|string)\b(?=\s*\$)/i,alias:"type-hint",greedy:!0,lookbehind:!0},{pattern:/(\)\s*:\s*(?:\?\s*)?)\b(?:array(?!\s*\()|bool|callable|(?:false|null)(?=\s*\|)|float|int|iterable|mixed|never|object|self|static|string|void)\b/i,alias:"return-type",greedy:!0,lookbehind:!0},{pattern:/\b(?:array(?!\s*\()|bool|float|int|iterable|mixed|object|string|void)\b/i,alias:"type-declaration",greedy:!0},{pattern:/(\|\s*)(?:false|null)\b|\b(?:false|null)(?=\s*\|)/i,alias:"type-declaration",greedy:!0,lookbehind:!0},{pattern:/\b(?:parent|self|static)(?=\s*::)/i,alias:"static-context",greedy:!0},{pattern:/(\byield\s+)from\b/i,lookbehind:!0},/\bclass\b/i,{pattern:/((?:^|[^\s>:]|(?:^|[^-])>|(?:^|[^:]):)\s*)\b(?:abstract|and|array|as|break|callable|case|catch|clone|const|continue|declare|default|die|do|echo|else|elseif|empty|enddeclare|endfor|endforeach|endif|endswitch|endwhile|enum|eval|exit|extends|final|finally|fn|for|foreach|function|global|goto|if|implements|include|include_once|instanceof|insteadof|interface|isset|list|match|namespace|never|new|or|parent|print|private|protected|public|readonly|require|require_once|return|self|static|switch|throw|trait|try|unset|use|var|while|xor|yield|__halt_compiler)\b/i,lookbehind:!0}],"argument-name":{pattern:/([(,]\s*)\b[a-z_]\w*(?=\s*:(?!:))/i,lookbehind:!0},"class-name":[{pattern:/(\b(?:extends|implements|instanceof|new(?!\s+self|\s+static))\s+|\bcatch\s*\()\b[a-z_]\w*(?!\\)\b/i,greedy:!0,lookbehind:!0},{pattern:/(\|\s*)\b[a-z_]\w*(?!\\)\b/i,greedy:!0,lookbehind:!0},{pattern:/\b[a-z_]\w*(?!\\)\b(?=\s*\|)/i,greedy:!0},{pattern:/(\|\s*)(?:\\?\b[a-z_]\w*)+\b/i,alias:"class-name-fully-qualified",greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/(?:\\?\b[a-z_]\w*)+\b(?=\s*\|)/i,alias:"class-name-fully-qualified",greedy:!0,inside:{punctuation:/\\/}},{pattern:/(\b(?:extends|implements|instanceof|new(?!\s+self\b|\s+static\b))\s+|\bcatch\s*\()(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,alias:"class-name-fully-qualified",greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/\b[a-z_]\w*(?=\s*\$)/i,alias:"type-declaration",greedy:!0},{pattern:/(?:\\?\b[a-z_]\w*)+(?=\s*\$)/i,alias:["class-name-fully-qualified","type-declaration"],greedy:!0,inside:{punctuation:/\\/}},{pattern:/\b[a-z_]\w*(?=\s*::)/i,alias:"static-context",greedy:!0},{pattern:/(?:\\?\b[a-z_]\w*)+(?=\s*::)/i,alias:["class-name-fully-qualified","static-context"],greedy:!0,inside:{punctuation:/\\/}},{pattern:/([(,?]\s*)[a-z_]\w*(?=\s*\$)/i,alias:"type-hint",greedy:!0,lookbehind:!0},{pattern:/([(,?]\s*)(?:\\?\b[a-z_]\w*)+(?=\s*\$)/i,alias:["class-name-fully-qualified","type-hint"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/(\)\s*:\s*(?:\?\s*)?)\b[a-z_]\w*(?!\\)\b/i,alias:"return-type",greedy:!0,lookbehind:!0},{pattern:/(\)\s*:\s*(?:\?\s*)?)(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,alias:["class-name-fully-qualified","return-type"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}}],constant:s,function:{pattern:/(^|[^\\\w])\\?[a-z_](?:[\w\\]*\w)?(?=\s*\()/i,lookbehind:!0,inside:{punctuation:/\\/}},property:{pattern:/(->\s*)\w+/,lookbehind:!0},number:o,operator:d,punctuation:h};var y={pattern:/\{\$(?:\{(?:\{[^{}]+\}|[^{}]+)\}|[^{}])+\}|(^|[^\\{])\$+(?:\w+(?:\[[^\r\n\[\]]+\]|->\w+)?)/,lookbehind:!0,inside:i.languages.php},g=[{pattern:/<<<'([^']+)'[\r\n](?:.*[\r\n])*?\1;/,alias:"nowdoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<<'[^']+'|[a-z_]\w*;$/i,alias:"symbol",inside:{punctuation:/^<<<'?|[';]$/}}}},{pattern:/<<<(?:"([^"]+)"[\r\n](?:.*[\r\n])*?\1;|([a-z_]\w*)[\r\n](?:.*[\r\n])*?\2;)/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<<(?:"[^"]+"|[a-z_]\w*)|[a-z_]\w*;$/i,alias:"symbol",inside:{punctuation:/^<<<"?|[";]$/}},interpolation:y}},{pattern:/`(?:\\[\s\S]|[^\\`])*`/,alias:"backtick-quoted-string",greedy:!0},{pattern:/'(?:\\[\s\S]|[^\\'])*'/,alias:"single-quoted-string",greedy:!0},{pattern:/"(?:\\[\s\S]|[^\\"])*"/,alias:"double-quoted-string",greedy:!0,inside:{interpolation:y}}];i.languages.insertBefore("php","variable",{string:g,attribute:{pattern:/#\[(?:[^"'\/#]|\/(?![*/])|\/\/.*$|#(?!\[).*$|\/\*(?:[^*]|\*(?!\/))*\*\/|"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*')+\](?=\s*[a-z$#])/im,greedy:!0,inside:{"attribute-content":{pattern:/^(#\[)[\s\S]+(?=\]$)/,lookbehind:!0,inside:{comment:r,string:g,"attribute-class-name":[{pattern:/([^:]|^)\b[a-z_]\w*(?!\\)\b/i,alias:"class-name",greedy:!0,lookbehind:!0},{pattern:/([^:]|^)(?:\\?\b[a-z_]\w*)+/i,alias:["class-name","class-name-fully-qualified"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}}],constant:s,number:o,operator:d,punctuation:h}},delimiter:{pattern:/^#\[|\]$/,alias:"punctuation"}}}}),i.hooks.add("before-tokenize",function(m){if(/<\?/.test(m.code)){var b=/<\?(?:[^"'/#]|\/(?![*/])|("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|(?:\/\/|#(?!\[))(?:[^?\n\r]|\?(?!>))*(?=$|\?>|[\r\n])|#\[|\/\*(?:[^*]|\*(?!\/))*(?:\*\/|$))*?(?:\?>|$)/g;i.languages["markup-templating"].buildPlaceholders(m,"php",b)}}),i.hooks.add("after-tokenize",function(m){i.languages["markup-templating"].tokenizePlaceholders(m,"php")})})(l)}sf.displayName="python";sf.aliases=["py"];function sf(l){l.languages.python={comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0,greedy:!0},"string-interpolation":{pattern:/(?:f|fr|rf)(?:("""|''')[\s\S]*?\1|("|')(?:\\.|(?!\2)[^\\\r\n])*\2)/i,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^{])(?:\{\{)*)\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}])+\})+\})+\}/,lookbehind:!0,inside:{"format-spec":{pattern:/(:)[^:(){}]+(?=\}$)/,lookbehind:!0},"conversion-option":{pattern://,alias:"punctuation"},rest:null}},string:/[\s\S]+/}},"triple-quoted-string":{pattern:/(?:[rub]|br|rb)?("""|''')[\s\S]*?\1/i,greedy:!0,alias:"string"},string:{pattern:/(?:[rub]|br|rb)?("|')(?:\\.|(?!\1)[^\\\r\n])*\1/i,greedy:!0},function:{pattern:/((?:^|\s)def[ \t]+)[a-zA-Z_]\w*(?=\s*\()/g,lookbehind:!0},"class-name":{pattern:/(\bclass\s+)\w+/i,lookbehind:!0},decorator:{pattern:/(^[\t ]*)@\w+(?:\.\w+)*/m,lookbehind:!0,alias:["annotation","punctuation"],inside:{punctuation:/\./}},keyword:/\b(?:_(?=\s*:)|and|as|assert|async|await|break|case|class|continue|def|del|elif|else|except|exec|finally|for|from|global|if|import|in|is|lambda|match|nonlocal|not|or|pass|print|raise|return|try|while|with|yield)\b/,builtin:/\b(?:__import__|abs|all|any|apply|ascii|basestring|bin|bool|buffer|bytearray|bytes|callable|chr|classmethod|cmp|coerce|compile|complex|delattr|dict|dir|divmod|enumerate|eval|execfile|file|filter|float|format|frozenset|getattr|globals|hasattr|hash|help|hex|id|input|int|intern|isinstance|issubclass|iter|len|list|locals|long|map|max|memoryview|min|next|object|oct|open|ord|pow|property|range|raw_input|reduce|reload|repr|reversed|round|set|setattr|slice|sorted|staticmethod|str|sum|super|tuple|type|unichr|unicode|vars|xrange|zip)\b/,boolean:/\b(?:False|None|True)\b/,number:/\b0(?:b(?:_?[01])+|o(?:_?[0-7])+|x(?:_?[a-f0-9])+)\b|(?:\b\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\B\.\d+(?:_\d+)*)(?:e[+-]?\d+(?:_\d+)*)?j?(?!\w)/i,operator:/[-+%=]=?|!=|:=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,punctuation:/[{}[\];(),.:]/},l.languages.python["string-interpolation"].inside.interpolation.inside.rest=l.languages.python,l.languages.py=l.languages.python}uf.displayName="r";uf.aliases=[];function uf(l){l.languages.r={comment:/#.*/,string:{pattern:/(['"])(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},"percent-operator":{pattern:/%[^%\s]*%/,alias:"operator"},boolean:/\b(?:FALSE|TRUE)\b/,ellipsis:/\.\.(?:\.|\d+)/,number:[/\b(?:Inf|NaN)\b/,/(?:\b0x[\dA-Fa-f]+(?:\.\d*)?|\b\d+(?:\.\d*)?|\B\.\d+)(?:[EePp][+-]?\d+)?[iL]?/],keyword:/\b(?:NA|NA_character_|NA_complex_|NA_integer_|NA_real_|NULL|break|else|for|function|if|in|next|repeat|while)\b/,operator:/->?>?|<(?:=|<?-)?|[>=!]=?|::?|&&?|\|\|?|[+*\/^$@~]/,punctuation:/[(){}\[\],;]/}}cf.displayName="ruby";cf.aliases=["rb"];function cf(l){l.register(un),(function(i){i.languages.ruby=i.languages.extend("clike",{comment:{pattern:/#.*|^=begin\s[\s\S]*?^=end/m,greedy:!0},"class-name":{pattern:/(\b(?:class|module)\s+|\bcatch\s+\()[\w.\\]+|\b[A-Z_]\w*(?=\s*\.\s*new\b)/,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:BEGIN|END|alias|and|begin|break|case|class|def|define_method|defined|do|each|else|elsif|end|ensure|extend|for|if|in|include|module|new|next|nil|not|or|prepend|private|protected|public|raise|redo|require|rescue|retry|return|self|super|then|throw|undef|unless|until|when|while|yield)\b/,operator:/\.{2,3}|&\.|===|<?=>|[!=]?~|(?:&&|\|\||<<|>>|\*\*|[+\-*/%<>!^&|=])=?|[?:]/,punctuation:/[(){}[\].,;]/}),i.languages.insertBefore("ruby","operator",{"double-colon":{pattern:/::/,alias:"punctuation"}});var r={pattern:/((?:^|[^\\])(?:\\{2})*)#\{(?:[^{}]|\{[^{}]*\})*\}/,lookbehind:!0,inside:{content:{pattern:/^(#\{)[\s\S]+(?=\}$)/,lookbehind:!0,inside:i.languages.ruby},delimiter:{pattern:/^#\{|\}$/,alias:"punctuation"}}};delete i.languages.ruby.function;var s="(?:"+[/([^a-zA-Z0-9\s{(\[<=])(?:(?!\1)[^\\]|\\[\s\S])*\1/.source,/\((?:[^()\\]|\\[\s\S]|\((?:[^()\\]|\\[\s\S])*\))*\)/.source,/\{(?:[^{}\\]|\\[\s\S]|\{(?:[^{}\\]|\\[\s\S])*\})*\}/.source,/\[(?:[^\[\]\\]|\\[\s\S]|\[(?:[^\[\]\\]|\\[\s\S])*\])*\]/.source,/<(?:[^<>\\]|\\[\s\S]|<(?:[^<>\\]|\\[\s\S])*>)*>/.source].join("|")+")",o=/(?:"(?:\\.|[^"\\\r\n])*"|(?:\b[a-zA-Z_]\w*|[^\s\0-\x7F]+)[?!]?|\$.)/.source;i.languages.insertBefore("ruby","keyword",{"regex-literal":[{pattern:RegExp(/%r/.source+s+/[egimnosux]{0,6}/.source),greedy:!0,inside:{interpolation:r,regex:/[\s\S]+/}},{pattern:/(^|[^/])\/(?!\/)(?:\[[^\r\n\]]+\]|\\.|[^[/\\\r\n])+\/[egimnosux]{0,6}(?=\s*(?:$|[\r\n,.;})#]))/,lookbehind:!0,greedy:!0,inside:{interpolation:r,regex:/[\s\S]+/}}],variable:/[@$]+[a-zA-Z_]\w*(?:[?!]|\b)/,symbol:[{pattern:RegExp(/(^|[^:]):/.source+o),lookbehind:!0,greedy:!0},{pattern:RegExp(/([\r\n{(,][ \t]*)/.source+o+/(?=:(?!:))/.source),lookbehind:!0,greedy:!0}],"method-definition":{pattern:/(\bdef\s+)\w+(?:\s*\.\s*\w+)?/,lookbehind:!0,inside:{function:/\b\w+$/,keyword:/^self\b/,"class-name":/^\w+/,punctuation:/\./}}}),i.languages.insertBefore("ruby","string",{"string-literal":[{pattern:RegExp(/%[qQiIwWs]?/.source+s),greedy:!0,inside:{interpolation:r,string:/[\s\S]+/}},{pattern:/("|')(?:#\{[^}]+\}|#(?!\{)|\\(?:\r\n|[\s\S])|(?!\1)[^\\#\r\n])*\1/,greedy:!0,inside:{interpolation:r,string:/[\s\S]+/}},{pattern:/<<[-~]?([a-z_]\w*)[\r\n](?:.*[\r\n])*?[\t ]*\1/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<[-~]?[a-z_]\w*|\b[a-z_]\w*$/i,inside:{symbol:/\b\w+/,punctuation:/^<<[-~]?/}},interpolation:r,string:/[\s\S]+/}},{pattern:/<<[-~]?'([a-z_]\w*)'[\r\n](?:.*[\r\n])*?[\t ]*\1/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<[-~]?'[a-z_]\w*'|\b[a-z_]\w*$/i,inside:{symbol:/\b\w+/,punctuation:/^<<[-~]?'|'$/}},string:/[\s\S]+/}}],"command-literal":[{pattern:RegExp(/%x/.source+s),greedy:!0,inside:{interpolation:r,command:{pattern:/[\s\S]+/,alias:"string"}}},{pattern:/`(?:#\{[^}]+\}|#(?!\{)|\\(?:\r\n|[\s\S])|[^\\`#\r\n])*`/,greedy:!0,inside:{interpolation:r,command:{pattern:/[\s\S]+/,alias:"string"}}}]}),delete i.languages.ruby.string,i.languages.insertBefore("ruby","number",{builtin:/\b(?:Array|Bignum|Binding|Class|Continuation|Dir|Exception|FalseClass|File|Fixnum|Float|Hash|IO|Integer|MatchData|Method|Module|NilClass|Numeric|Object|Proc|Range|Regexp|Stat|String|Struct|Symbol|TMS|Thread|ThreadGroup|Time|TrueClass)\b/,constant:/\b[A-Z][A-Z0-9_]*(?:[?!]|\b)/}),i.languages.rb=i.languages.ruby})(l)}of.displayName="rust";of.aliases=[];function of(l){(function(i){for(var r=/\/\*(?:[^*/]|\*(?!\/)|\/(?!\*)|<self>)*\*\//.source,s=0;s<2;s++)r=r.replace(/<self>/g,function(){return r});r=r.replace(/<self>/g,function(){return/[^\s\S]/.source}),i.languages.rust={comment:[{pattern:RegExp(/(^|[^\\])/.source+r),lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/b?"(?:\\[\s\S]|[^\\"])*"|b?r(#*)"(?:[^"]|"(?!\1))*"\1/,greedy:!0},char:{pattern:/b?'(?:\\(?:x[0-7][\da-fA-F]|u\{(?:[\da-fA-F]_*){1,6}\}|.)|[^\\\r\n\t'])'/,greedy:!0},attribute:{pattern:/#!?\[(?:[^\[\]"]|"(?:\\[\s\S]|[^\\"])*")*\]/,greedy:!0,alias:"attr-name",inside:{string:null}},"closure-params":{pattern:/([=(,:]\s*|\bmove\s*)\|[^|]*\||\|[^|]*\|(?=\s*(?:\{|->))/,lookbehind:!0,greedy:!0,inside:{"closure-punctuation":{pattern:/^\||\|$/,alias:"punctuation"},rest:null}},"lifetime-annotation":{pattern:/'\w+/,alias:"symbol"},"fragment-specifier":{pattern:/(\$\w+:)[a-z]+/,lookbehind:!0,alias:"punctuation"},variable:/\$\w+/,"function-definition":{pattern:/(\bfn\s+)\w+/,lookbehind:!0,alias:"function"},"type-definition":{pattern:/(\b(?:enum|struct|trait|type|union)\s+)\w+/,lookbehind:!0,alias:"class-name"},"module-declaration":[{pattern:/(\b(?:crate|mod)\s+)[a-z][a-z_\d]*/,lookbehind:!0,alias:"namespace"},{pattern:/(\b(?:crate|self|super)\s*)::\s*[a-z][a-z_\d]*\b(?:\s*::(?:\s*[a-z][a-z_\d]*\s*::)*)?/,lookbehind:!0,alias:"namespace",inside:{punctuation:/::/}}],keyword:[/\b(?:Self|abstract|as|async|await|become|box|break|const|continue|crate|do|dyn|else|enum|extern|final|fn|for|if|impl|in|let|loop|macro|match|mod|move|mut|override|priv|pub|ref|return|self|static|struct|super|trait|try|type|typeof|union|unsafe|unsized|use|virtual|where|while|yield)\b/,/\b(?:bool|char|f(?:32|64)|[ui](?:8|16|32|64|128|size)|str)\b/],function:/\b[a-z_]\w*(?=\s*(?:::\s*<|\())/,macro:{pattern:/\b\w+!/,alias:"property"},constant:/\b[A-Z_][A-Z_\d]+\b/,"class-name":/\b[A-Z]\w*\b/,namespace:{pattern:/(?:\b[a-z][a-z_\d]*\s*::\s*)*\b[a-z][a-z_\d]*\s*::(?!\s*<)/,inside:{punctuation:/::/}},number:/\b(?:0x[\dA-Fa-f](?:_?[\dA-Fa-f])*|0o[0-7](?:_?[0-7])*|0b[01](?:_?[01])*|(?:(?:\d(?:_?\d)*)?\.)?\d(?:_?\d)*(?:[Ee][+-]?\d+)?)(?:_?(?:f32|f64|[iu](?:8|16|32|64|size)?))?\b/,boolean:/\b(?:false|true)\b/,punctuation:/->|\.\.=|\.{1,3}|::|[{}[\];(),:]/,operator:/[-+*\/%!^]=?|=[=>]?|&[&=]?|\|[|=]?|<<?=?|>>?=?|[@?]/},i.languages.rust["closure-params"].inside.rest=i.languages.rust,i.languages.rust.attribute.inside.string=i.languages.rust.string})(l)}ff.displayName="sass";ff.aliases=[];function ff(l){l.register(_l),(function(i){i.languages.sass=i.languages.extend("css",{comment:{pattern:/^([ \t]*)\/[\/*].*(?:(?:\r?\n|\r)\1[ \t].+)*/m,lookbehind:!0,greedy:!0}}),i.languages.insertBefore("sass","atrule",{"atrule-line":{pattern:/^(?:[ \t]*)[@+=].+/m,greedy:!0,inside:{atrule:/(?:@[\w-]+|[+=])/}}}),delete i.languages.sass.atrule;var r=/\$[-\w]+|#\{\$[-\w]+\}/,s=[/[+*\/%]|[=!]=|<=?|>=?|\b(?:and|not|or)\b/,{pattern:/(\s)-(?=\s)/,lookbehind:!0}];i.languages.insertBefore("sass","property",{"variable-line":{pattern:/^[ \t]*\$.+/m,greedy:!0,inside:{punctuation:/:/,variable:r,operator:s}},"property-line":{pattern:/^[ \t]*(?:[^:\s]+ *:.*|:[^:\s].*)/m,greedy:!0,inside:{property:[/[^:\s]+(?=\s*:)/,{pattern:/(:)[^:\s]+/,lookbehind:!0}],punctuation:/:/,variable:r,operator:s,important:i.languages.sass.important}}}),delete i.languages.sass.property,delete i.languages.sass.important,i.languages.insertBefore("sass","punctuation",{selector:{pattern:/^([ \t]*)\S(?:,[^,\r\n]+|[^,\r\n]*)(?:,[^,\r\n]+)*(?:,(?:\r?\n|\r)\1[ \t]+\S(?:,[^,\r\n]+|[^,\r\n]*)(?:,[^,\r\n]+)*)*/m,lookbehind:!0,greedy:!0}})})(l)}df.displayName="scss";df.aliases=[];function df(l){l.register(_l),l.languages.scss=l.languages.extend("css",{comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|\/\/.*)/,lookbehind:!0},atrule:{pattern:/@[\w-](?:\([^()]+\)|[^()\s]|\s+(?!\s))*?(?=\s+[{;])/,inside:{rule:/@[\w-]+/}},url:/(?:[-a-z]+-)?url(?=\()/i,selector:{pattern:/(?=\S)[^@;{}()]?(?:[^@;{}()\s]|\s+(?!\s)|#\{\$[-\w]+\})+(?=\s*\{(?:\}|\s|[^}][^:{}]*[:{][^}]))/,inside:{parent:{pattern:/&/,alias:"important"},placeholder:/%[-\w]+/,variable:/\$[-\w]+|#\{\$[-\w]+\}/}},property:{pattern:/(?:[-\w]|\$[-\w]|#\{\$[-\w]+\})+(?=\s*:)/,inside:{variable:/\$[-\w]+|#\{\$[-\w]+\}/}}}),l.languages.insertBefore("scss","atrule",{keyword:[/@(?:content|debug|each|else(?: if)?|extend|for|forward|function|if|import|include|mixin|return|use|warn|while)\b/i,{pattern:/( )(?:from|through)(?= )/,lookbehind:!0}]}),l.languages.insertBefore("scss","important",{variable:/\$[-\w]+|#\{\$[-\w]+\}/}),l.languages.insertBefore("scss","function",{"module-modifier":{pattern:/\b(?:as|hide|show|with)\b/i,alias:"keyword"},placeholder:{pattern:/%[-\w]+/,alias:"selector"},statement:{pattern:/\B!(?:default|optional)\b/i,alias:"keyword"},boolean:/\b(?:false|true)\b/,null:{pattern:/\bnull\b/,alias:"keyword"},operator:{pattern:/(\s)(?:[-+*\/%]|[=!]=|<=?|>=?|and|not|or)(?=\s)/,lookbehind:!0}}),l.languages.scss.atrule.inside.rest=l.languages.scss}hf.displayName="sql";hf.aliases=[];function hf(l){l.languages.sql={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:--|\/\/|#).*)/,lookbehind:!0},variable:[{pattern:/@(["'`])(?:\\[\s\S]|(?!\1)[^\\])+\1/,greedy:!0},/@[\w.$]+/],string:{pattern:/(^|[^@\\])("|')(?:\\[\s\S]|(?!\2)[^\\]|\2\2)*\2/,greedy:!0,lookbehind:!0},identifier:{pattern:/(^|[^@\\])`(?:\\[\s\S]|[^`\\]|``)*`/,greedy:!0,lookbehind:!0,inside:{punctuation:/^`|`$/}},function:/\b(?:AVG|COUNT|FIRST|FORMAT|LAST|LCASE|LEN|MAX|MID|MIN|MOD|NOW|ROUND|SUM|UCASE)(?=\s*\()/i,keyword:/\b(?:ACTION|ADD|AFTER|ALGORITHM|ALL|ALTER|ANALYZE|ANY|APPLY|AS|ASC|AUTHORIZATION|AUTO_INCREMENT|BACKUP|BDB|BEGIN|BERKELEYDB|BIGINT|BINARY|BIT|BLOB|BOOL|BOOLEAN|BREAK|BROWSE|BTREE|BULK|BY|CALL|CASCADED?|CASE|CHAIN|CHAR(?:ACTER|SET)?|CHECK(?:POINT)?|CLOSE|CLUSTERED|COALESCE|COLLATE|COLUMNS?|COMMENT|COMMIT(?:TED)?|COMPUTE|CONNECT|CONSISTENT|CONSTRAINT|CONTAINS(?:TABLE)?|CONTINUE|CONVERT|CREATE|CROSS|CURRENT(?:_DATE|_TIME|_TIMESTAMP|_USER)?|CURSOR|CYCLE|DATA(?:BASES?)?|DATE(?:TIME)?|DAY|DBCC|DEALLOCATE|DEC|DECIMAL|DECLARE|DEFAULT|DEFINER|DELAYED|DELETE|DELIMITERS?|DENY|DESC|DESCRIBE|DETERMINISTIC|DISABLE|DISCARD|DISK|DISTINCT|DISTINCTROW|DISTRIBUTED|DO|DOUBLE|DROP|DUMMY|DUMP(?:FILE)?|DUPLICATE|ELSE(?:IF)?|ENABLE|ENCLOSED|END|ENGINE|ENUM|ERRLVL|ERRORS|ESCAPED?|EXCEPT|EXEC(?:UTE)?|EXISTS|EXIT|EXPLAIN|EXTENDED|FETCH|FIELDS|FILE|FILLFACTOR|FIRST|FIXED|FLOAT|FOLLOWING|FOR(?: EACH ROW)?|FORCE|FOREIGN|FREETEXT(?:TABLE)?|FROM|FULL|FUNCTION|GEOMETRY(?:COLLECTION)?|GLOBAL|GOTO|GRANT|GROUP|HANDLER|HASH|HAVING|HOLDLOCK|HOUR|IDENTITY(?:COL|_INSERT)?|IF|IGNORE|IMPORT|INDEX|INFILE|INNER|INNODB|INOUT|INSERT|INT|INTEGER|INTERSECT|INTERVAL|INTO|INVOKER|ISOLATION|ITERATE|JOIN|KEYS?|KILL|LANGUAGE|LAST|LEAVE|LEFT|LEVEL|LIMIT|LINENO|LINES|LINESTRING|LOAD|LOCAL|LOCK|LONG(?:BLOB|TEXT)|LOOP|MATCH(?:ED)?|MEDIUM(?:BLOB|INT|TEXT)|MERGE|MIDDLEINT|MINUTE|MODE|MODIFIES|MODIFY|MONTH|MULTI(?:LINESTRING|POINT|POLYGON)|NATIONAL|NATURAL|NCHAR|NEXT|NO|NONCLUSTERED|NULLIF|NUMERIC|OFF?|OFFSETS?|ON|OPEN(?:DATASOURCE|QUERY|ROWSET)?|OPTIMIZE|OPTION(?:ALLY)?|ORDER|OUT(?:ER|FILE)?|OVER|PARTIAL|PARTITION|PERCENT|PIVOT|PLAN|POINT|POLYGON|PRECEDING|PRECISION|PREPARE|PREV|PRIMARY|PRINT|PRIVILEGES|PROC(?:EDURE)?|PUBLIC|PURGE|QUICK|RAISERROR|READS?|REAL|RECONFIGURE|REFERENCES|RELEASE|RENAME|REPEAT(?:ABLE)?|REPLACE|REPLICATION|REQUIRE|RESIGNAL|RESTORE|RESTRICT|RETURN(?:ING|S)?|REVOKE|RIGHT|ROLLBACK|ROUTINE|ROW(?:COUNT|GUIDCOL|S)?|RTREE|RULE|SAVE(?:POINT)?|SCHEMA|SECOND|SELECT|SERIAL(?:IZABLE)?|SESSION(?:_USER)?|SET(?:USER)?|SHARE|SHOW|SHUTDOWN|SIMPLE|SMALLINT|SNAPSHOT|SOME|SONAME|SQL|START(?:ING)?|STATISTICS|STATUS|STRIPED|SYSTEM_USER|TABLES?|TABLESPACE|TEMP(?:ORARY|TABLE)?|TERMINATED|TEXT(?:SIZE)?|THEN|TIME(?:STAMP)?|TINY(?:BLOB|INT|TEXT)|TOP?|TRAN(?:SACTIONS?)?|TRIGGER|TRUNCATE|TSEQUAL|TYPES?|UNBOUNDED|UNCOMMITTED|UNDEFINED|UNION|UNIQUE|UNLOCK|UNPIVOT|UNSIGNED|UPDATE(?:TEXT)?|USAGE|USE|USER|USING|VALUES?|VAR(?:BINARY|CHAR|CHARACTER|YING)|VIEW|WAITFOR|WARNINGS|WHEN|WHERE|WHILE|WITH(?: ROLLUP|IN)?|WORK|WRITE(?:TEXT)?|YEAR)\b/i,boolean:/\b(?:FALSE|NULL|TRUE)\b/i,number:/\b0x[\da-f]+\b|\b\d+(?:\.\d*)?|\B\.\d+\b/i,operator:/[-+*\/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?|\b(?:AND|BETWEEN|DIV|ILIKE|IN|IS|LIKE|NOT|OR|REGEXP|RLIKE|SOUNDS LIKE|XOR)\b/i,punctuation:/[;[\]()`,.]/}}gf.displayName="swift";gf.aliases=[];function gf(l){l.languages.swift={comment:{pattern:/(^|[^\\:])(?:\/\/.*|\/\*(?:[^/*]|\/(?!\*)|\*(?!\/)|\/\*(?:[^*]|\*(?!\/))*\*\/)*\*\/)/,lookbehind:!0,greedy:!0},"string-literal":[{pattern:RegExp(/(^|[^"#])/.source+"(?:"+/"(?:\\(?:\((?:[^()]|\([^()]*\))*\)|\r\n|[^(])|[^\\\r\n"])*"/.source+"|"+/"""(?:\\(?:\((?:[^()]|\([^()]*\))*\)|[^(])|[^\\"]|"(?!""))*"""/.source+")"+/(?!["#])/.source),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/(\\\()(?:[^()]|\([^()]*\))*(?=\))/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/^\)|\\\($/,alias:"punctuation"},punctuation:/\\(?=[\r\n])/,string:/[\s\S]+/}},{pattern:RegExp(/(^|[^"#])(#+)/.source+"(?:"+/"(?:\\(?:#+\((?:[^()]|\([^()]*\))*\)|\r\n|[^#])|[^\\\r\n])*?"/.source+"|"+/"""(?:\\(?:#+\((?:[^()]|\([^()]*\))*\)|[^#])|[^\\])*?"""/.source+")\\2"),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/(\\#+\()(?:[^()]|\([^()]*\))*(?=\))/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/^\)|\\#+\($/,alias:"punctuation"},string:/[\s\S]+/}}],directive:{pattern:RegExp(/#/.source+"(?:"+(/(?:elseif|if)\b/.source+"(?:[ ]*"+/(?:![ \t]*)?(?:\b\w+\b(?:[ \t]*\((?:[^()]|\([^()]*\))*\))?|\((?:[^()]|\([^()]*\))*\))(?:[ \t]*(?:&&|\|\|))?/.source+")+")+"|"+/(?:else|endif)\b/.source+")"),alias:"property",inside:{"directive-name":/^#\w+/,boolean:/\b(?:false|true)\b/,number:/\b\d+(?:\.\d+)*\b/,operator:/!|&&|\|\||[<>]=?/,punctuation:/[(),]/}},literal:{pattern:/#(?:colorLiteral|column|dsohandle|file(?:ID|Literal|Path)?|function|imageLiteral|line)\b/,alias:"constant"},"other-directive":{pattern:/#\w+\b/,alias:"property"},attribute:{pattern:/@\w+/,alias:"atrule"},"function-definition":{pattern:/(\bfunc\s+)\w+/,lookbehind:!0,alias:"function"},label:{pattern:/\b(break|continue)\s+\w+|\b[a-zA-Z_]\w*(?=\s*:\s*(?:for|repeat|while)\b)/,lookbehind:!0,alias:"important"},keyword:/\b(?:Any|Protocol|Self|Type|actor|as|assignment|associatedtype|associativity|async|await|break|case|catch|class|continue|convenience|default|defer|deinit|didSet|do|dynamic|else|enum|extension|fallthrough|fileprivate|final|for|func|get|guard|higherThan|if|import|in|indirect|infix|init|inout|internal|is|isolated|lazy|left|let|lowerThan|mutating|none|nonisolated|nonmutating|open|operator|optional|override|postfix|precedencegroup|prefix|private|protocol|public|repeat|required|rethrows|return|right|safe|self|set|some|static|struct|subscript|super|switch|throw|throws|try|typealias|unowned|unsafe|var|weak|where|while|willSet)\b/,boolean:/\b(?:false|true)\b/,nil:{pattern:/\bnil\b/,alias:"constant"},"short-argument":/\$\d+\b/,omit:{pattern:/\b_\b/,alias:"keyword"},number:/\b(?:[\d_]+(?:\.[\de_]+)?|0x[a-f0-9_]+(?:\.[a-f0-9p_]+)?|0b[01_]+|0o[0-7_]+)\b/i,"class-name":/\b[A-Z](?:[A-Z_\d]*[a-z]\w*)?\b/,function:/\b[a-z_]\w*(?=\s*\()/i,constant:/\b(?:[A-Z_]{2,}|k[A-Z][A-Za-z_]+)\b/,operator:/[-+*/%=!<>&|^~?]+|\.[.\-+*/%=!<>&|^~?]+/,punctuation:/[{}[\]();,.:\\]/},l.languages.swift["string-literal"].forEach(function(i){i.inside.interpolation.inside=l.languages.swift})}mf.displayName="typescript";mf.aliases=["ts"];function mf(l){l.register(Ts),(function(i){i.languages.typescript=i.languages.extend("javascript",{"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|type)\s+)(?!keyof\b)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?:\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>)?/,lookbehind:!0,greedy:!0,inside:null},builtin:/\b(?:Array|Function|Promise|any|boolean|console|never|number|string|symbol|unknown)\b/}),i.languages.typescript.keyword.push(/\b(?:abstract|declare|is|keyof|readonly|require)\b/,/\b(?:asserts|infer|interface|module|namespace|type)\b(?=\s*(?:[{_$a-zA-Z\xA0-\uFFFF]|$))/,/\btype\b(?=\s*(?:[\{*]|$))/),delete i.languages.typescript.parameter,delete i.languages.typescript["literal-property"];var r=i.languages.extend("typescript",{});delete r["class-name"],i.languages.typescript["class-name"].inside=r,i.languages.insertBefore("typescript","function",{decorator:{pattern:/@[$\w\xA0-\uFFFF]+/,inside:{at:{pattern:/^@/,alias:"operator"},function:/^[\s\S]+/}},"generic-function":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>(?=\s*\()/,greedy:!0,inside:{function:/^#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:r}}}}),i.languages.ts=i.languages.typescript})(l)}_s.displayName="basic";_s.aliases=[];function _s(l){l.languages.basic={comment:{pattern:/(?:!|REM\b).+/i,inside:{keyword:/^REM/i}},string:{pattern:/"(?:""|[!#$%&'()*,\/:;<=>?^\w +\-.])*"/,greedy:!0},number:/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:E[+-]?\d+)?/i,keyword:/\b(?:AS|BEEP|BLOAD|BSAVE|CALL(?: ABSOLUTE)?|CASE|CHAIN|CHDIR|CLEAR|CLOSE|CLS|COM|COMMON|CONST|DATA|DECLARE|DEF(?: FN| SEG|DBL|INT|LNG|SNG|STR)|DIM|DO|DOUBLE|ELSE|ELSEIF|END|ENVIRON|ERASE|ERROR|EXIT|FIELD|FILES|FOR|FUNCTION|GET|GOSUB|GOTO|IF|INPUT|INTEGER|IOCTL|KEY|KILL|LINE INPUT|LOCATE|LOCK|LONG|LOOP|LSET|MKDIR|NAME|NEXT|OFF|ON(?: COM| ERROR| KEY| TIMER)?|OPEN|OPTION BASE|OUT|POKE|PUT|READ|REDIM|REM|RESTORE|RESUME|RETURN|RMDIR|RSET|RUN|SELECT CASE|SHARED|SHELL|SINGLE|SLEEP|STATIC|STEP|STOP|STRING|SUB|SWAP|SYSTEM|THEN|TIMER|TO|TROFF|TRON|TYPE|UNLOCK|UNTIL|USING|VIEW PRINT|WAIT|WEND|WHILE|WRITE)(?:\$|\b)/i,function:/\b(?:ABS|ACCESS|ACOS|ANGLE|AREA|ARITHMETIC|ARRAY|ASIN|ASK|AT|ATN|BASE|BEGIN|BREAK|CAUSE|CEIL|CHR|CLIP|COLLATE|COLOR|CON|COS|COSH|COT|CSC|DATE|DATUM|DEBUG|DECIMAL|DEF|DEG|DEGREES|DELETE|DET|DEVICE|DISPLAY|DOT|ELAPSED|EPS|ERASABLE|EXLINE|EXP|EXTERNAL|EXTYPE|FILETYPE|FIXED|FP|GO|GRAPH|HANDLER|IDN|IMAGE|IN|INT|INTERNAL|IP|IS|KEYED|LBOUND|LCASE|LEFT|LEN|LENGTH|LET|LINE|LINES|LOG|LOG10|LOG2|LTRIM|MARGIN|MAT|MAX|MAXNUM|MID|MIN|MISSING|MOD|NATIVE|NUL|NUMERIC|OF|OPTION|ORD|ORGANIZATION|OUTIN|OUTPUT|PI|POINT|POINTER|POINTS|POS|PRINT|PROGRAM|PROMPT|RAD|RADIANS|RANDOMIZE|RECORD|RECSIZE|RECTYPE|RELATIVE|REMAINDER|REPEAT|REST|RETRY|REWRITE|RIGHT|RND|ROUND|RTRIM|SAME|SEC|SELECT|SEQUENTIAL|SET|SETTER|SGN|SIN|SINH|SIZE|SKIP|SQR|STANDARD|STATUS|STR|STREAM|STYLE|TAB|TAN|TANH|TEMPLATE|TEXT|THERE|TIME|TIMEOUT|TRACE|TRANSFORM|TRUNCATE|UBOUND|UCASE|USE|VAL|VARIABLE|VIEWPORT|WHEN|WINDOW|WITH|ZER|ZONEWIDTH)(?:\$|\b)/i,operator:/<[=>]?|>=?|[+\-*\/^=&]|\b(?:AND|EQV|IMP|NOT|OR|XOR)\b/i,punctuation:/[,;:()]/}}pf.displayName="vbnet";pf.aliases=[];function pf(l){l.register(_s),l.languages.vbnet=l.languages.extend("basic",{comment:[{pattern:/(?:!|REM\b).+/i,inside:{keyword:/^REM/i}},{pattern:/(^|[^\\:])'.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(^|[^"])"(?:""|[^"])*"(?!")/,lookbehind:!0,greedy:!0},keyword:/(?:\b(?:ADDHANDLER|ADDRESSOF|ALIAS|AND|ANDALSO|AS|BEEP|BLOAD|BOOLEAN|BSAVE|BYREF|BYTE|BYVAL|CALL(?: ABSOLUTE)?|CASE|CATCH|CBOOL|CBYTE|CCHAR|CDATE|CDBL|CDEC|CHAIN|CHAR|CHDIR|CINT|CLASS|CLEAR|CLNG|CLOSE|CLS|COBJ|COM|COMMON|CONST|CONTINUE|CSBYTE|CSHORT|CSNG|CSTR|CTYPE|CUINT|CULNG|CUSHORT|DATA|DATE|DECIMAL|DECLARE|DEF(?: FN| SEG|DBL|INT|LNG|SNG|STR)|DEFAULT|DELEGATE|DIM|DIRECTCAST|DO|DOUBLE|ELSE|ELSEIF|END|ENUM|ENVIRON|ERASE|ERROR|EVENT|EXIT|FALSE|FIELD|FILES|FINALLY|FOR(?: EACH)?|FRIEND|FUNCTION|GET|GETTYPE|GETXMLNAMESPACE|GLOBAL|GOSUB|GOTO|HANDLES|IF|IMPLEMENTS|IMPORTS|IN|INHERITS|INPUT|INTEGER|INTERFACE|IOCTL|IS|ISNOT|KEY|KILL|LET|LIB|LIKE|LINE INPUT|LOCATE|LOCK|LONG|LOOP|LSET|ME|MKDIR|MOD|MODULE|MUSTINHERIT|MUSTOVERRIDE|MYBASE|MYCLASS|NAME|NAMESPACE|NARROWING|NEW|NEXT|NOT|NOTHING|NOTINHERITABLE|NOTOVERRIDABLE|OBJECT|OF|OFF|ON(?: COM| ERROR| KEY| TIMER)?|OPEN|OPERATOR|OPTION(?: BASE)?|OPTIONAL|OR|ORELSE|OUT|OVERLOADS|OVERRIDABLE|OVERRIDES|PARAMARRAY|PARTIAL|POKE|PRIVATE|PROPERTY|PROTECTED|PUBLIC|PUT|RAISEEVENT|READ|READONLY|REDIM|REM|REMOVEHANDLER|RESTORE|RESUME|RETURN|RMDIR|RSET|RUN|SBYTE|SELECT(?: CASE)?|SET|SHADOWS|SHARED|SHELL|SHORT|SINGLE|SLEEP|STATIC|STEP|STOP|STRING|STRUCTURE|SUB|SWAP|SYNCLOCK|SYSTEM|THEN|THROW|TIMER|TO|TROFF|TRON|TRUE|TRY|TRYCAST|TYPE|TYPEOF|UINTEGER|ULONG|UNLOCK|UNTIL|USHORT|USING|VIEW PRINT|WAIT|WEND|WHEN|WHILE|WIDENING|WITH|WITHEVENTS|WRITE|WRITEONLY|XOR)|\B(?:#CONST|#ELSE|#ELSEIF|#END|#IF))(?:\$|\b)/i,punctuation:/[,;:(){}]/})}class Lr{constructor(i,r,s){this.property=i,this.normal=r,s&&(this.space=s)}}Lr.prototype.property={};Lr.prototype.normal={};Lr.prototype.space=null;function uy(l,i){const r={},s={};let o=-1;for(;++o<l.length;)Object.assign(r,l[o].property),Object.assign(s,l[o].normal);return new Lr(r,s,i)}function kr(l){return l.toLowerCase()}class Wt{constructor(i,r){this.property=i,this.attribute=r}}Wt.prototype.space=null;Wt.prototype.boolean=!1;Wt.prototype.booleanish=!1;Wt.prototype.overloadedBoolean=!1;Wt.prototype.number=!1;Wt.prototype.commaSeparated=!1;Wt.prototype.spaceSeparated=!1;Wt.prototype.commaOrSpaceSeparated=!1;Wt.prototype.mustUseProperty=!1;Wt.prototype.defined=!1;let tE=0;const xe=ja(),tt=ja(),cy=ja(),te=ja(),He=ja(),Sl=ja(),zt=ja();function ja(){return 2**++tE}const mo=Object.freeze(Object.defineProperty({__proto__:null,boolean:xe,booleanish:tt,commaOrSpaceSeparated:zt,commaSeparated:Sl,number:te,overloadedBoolean:cy,spaceSeparated:He},Symbol.toStringTag,{value:"Module"})),no=Object.keys(mo);class yf extends Wt{constructor(i,r,s,o){let d=-1;if(super(i,r),up(this,"space",o),typeof s=="number")for(;++d<no.length;){const h=no[d];up(this,no[d],(s&mo[h])===mo[h])}}}yf.prototype.defined=!0;function up(l,i,r){r&&(l[i]=r)}const nE={}.hasOwnProperty;function jl(l){const i={},r={};let s;for(s in l.properties)if(nE.call(l.properties,s)){const o=l.properties[s],d=new yf(s,l.transform(l.attributes||{},s),o,l.space);l.mustUseProperty&&l.mustUseProperty.includes(s)&&(d.mustUseProperty=!0),i[s]=d,r[kr(s)]=s,r[kr(d.attribute)]=s}return new Lr(i,r,l.space)}const oy=jl({space:"xlink",transform(l,i){return"xlink:"+i.slice(5).toLowerCase()},properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}}),fy=jl({space:"xml",transform(l,i){return"xml:"+i.slice(3).toLowerCase()},properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function dy(l,i){return i in l?l[i]:i}function hy(l,i){return dy(l,i.toLowerCase())}const gy=jl({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:hy,properties:{xmlns:null,xmlnsXLink:null}}),my=jl({transform(l,i){return i==="role"?i:"aria-"+i.slice(4).toLowerCase()},properties:{ariaActiveDescendant:null,ariaAtomic:tt,ariaAutoComplete:null,ariaBusy:tt,ariaChecked:tt,ariaColCount:te,ariaColIndex:te,ariaColSpan:te,ariaControls:He,ariaCurrent:null,ariaDescribedBy:He,ariaDetails:null,ariaDisabled:tt,ariaDropEffect:He,ariaErrorMessage:null,ariaExpanded:tt,ariaFlowTo:He,ariaGrabbed:tt,ariaHasPopup:null,ariaHidden:tt,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:He,ariaLevel:te,ariaLive:null,ariaModal:tt,ariaMultiLine:tt,ariaMultiSelectable:tt,ariaOrientation:null,ariaOwns:He,ariaPlaceholder:null,ariaPosInSet:te,ariaPressed:tt,ariaReadOnly:tt,ariaRelevant:null,ariaRequired:tt,ariaRoleDescription:He,ariaRowCount:te,ariaRowIndex:te,ariaRowSpan:te,ariaSelected:tt,ariaSetSize:te,ariaSort:null,ariaValueMax:te,ariaValueMin:te,ariaValueNow:te,ariaValueText:null,role:null}}),aE=jl({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:hy,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Sl,acceptCharset:He,accessKey:He,action:null,allow:null,allowFullScreen:xe,allowPaymentRequest:xe,allowUserMedia:xe,alt:null,as:null,async:xe,autoCapitalize:null,autoComplete:He,autoFocus:xe,autoPlay:xe,blocking:He,capture:null,charSet:null,checked:xe,cite:null,className:He,cols:te,colSpan:null,content:null,contentEditable:tt,controls:xe,controlsList:He,coords:te|Sl,crossOrigin:null,data:null,dateTime:null,decoding:null,default:xe,defer:xe,dir:null,dirName:null,disabled:xe,download:cy,draggable:tt,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:xe,formTarget:null,headers:He,height:te,hidden:xe,high:te,href:null,hrefLang:null,htmlFor:He,httpEquiv:He,id:null,imageSizes:null,imageSrcSet:null,inert:xe,inputMode:null,integrity:null,is:null,isMap:xe,itemId:null,itemProp:He,itemRef:He,itemScope:xe,itemType:He,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:xe,low:te,manifest:null,max:null,maxLength:te,media:null,method:null,min:null,minLength:te,multiple:xe,muted:xe,name:null,nonce:null,noModule:xe,noValidate:xe,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:xe,optimum:te,pattern:null,ping:He,placeholder:null,playsInline:xe,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:xe,referrerPolicy:null,rel:He,required:xe,reversed:xe,rows:te,rowSpan:te,sandbox:He,scope:null,scoped:xe,seamless:xe,selected:xe,shadowRootClonable:xe,shadowRootDelegatesFocus:xe,shadowRootMode:null,shape:null,size:te,sizes:null,slot:null,span:te,spellCheck:tt,src:null,srcDoc:null,srcLang:null,srcSet:null,start:te,step:null,style:null,tabIndex:te,target:null,title:null,translate:null,type:null,typeMustMatch:xe,useMap:null,value:tt,width:te,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:He,axis:null,background:null,bgColor:null,border:te,borderColor:null,bottomMargin:te,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:xe,declare:xe,event:null,face:null,frame:null,frameBorder:null,hSpace:te,leftMargin:te,link:null,longDesc:null,lowSrc:null,marginHeight:te,marginWidth:te,noResize:xe,noHref:xe,noShade:xe,noWrap:xe,object:null,profile:null,prompt:null,rev:null,rightMargin:te,rules:null,scheme:null,scrolling:tt,standby:null,summary:null,text:null,topMargin:te,valueType:null,version:null,vAlign:null,vLink:null,vSpace:te,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:xe,disableRemotePlayback:xe,prefix:null,property:null,results:te,security:null,unselectable:null}}),lE=jl({space:"svg",attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},transform:dy,properties:{about:zt,accentHeight:te,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:te,amplitude:te,arabicForm:null,ascent:te,attributeName:null,attributeType:null,azimuth:te,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:te,by:null,calcMode:null,capHeight:te,className:He,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:te,diffuseConstant:te,direction:null,display:null,dur:null,divisor:te,dominantBaseline:null,download:xe,dx:null,dy:null,edgeMode:null,editable:null,elevation:te,enableBackground:null,end:null,event:null,exponent:te,externalResourcesRequired:null,fill:null,fillOpacity:te,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:Sl,g2:Sl,glyphName:Sl,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:te,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:te,horizOriginX:te,horizOriginY:te,id:null,ideographic:te,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:te,k:te,k1:te,k2:te,k3:te,k4:te,kernelMatrix:zt,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:te,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:te,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:te,overlineThickness:te,paintOrder:null,panose1:null,path:null,pathLength:te,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:He,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:te,pointsAtY:te,pointsAtZ:te,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:zt,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:zt,rev:zt,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:zt,requiredFeatures:zt,requiredFonts:zt,requiredFormats:zt,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:te,specularExponent:te,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:te,strikethroughThickness:te,string:null,stroke:null,strokeDashArray:zt,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:te,strokeOpacity:te,strokeWidth:null,style:null,surfaceScale:te,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:zt,tabIndex:te,tableValues:null,target:null,targetX:te,targetY:te,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:zt,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:te,underlineThickness:te,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:te,values:null,vAlphabetic:te,vMathematical:te,vectorEffect:null,vHanging:te,vIdeographic:te,version:null,vertAdvY:te,vertOriginX:te,vertOriginY:te,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:te,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null}}),rE=/^data[-\w.:]+$/i,cp=/-[a-z]/g,iE=/[A-Z]/g;function sE(l,i){const r=kr(i);let s=i,o=Wt;if(r in l.normal)return l.property[l.normal[r]];if(r.length>4&&r.slice(0,4)==="data"&&rE.test(i)){if(i.charAt(4)==="-"){const d=i.slice(5).replace(cp,cE);s="data"+d.charAt(0).toUpperCase()+d.slice(1)}else{const d=i.slice(4);if(!cp.test(d)){let h=d.replace(iE,uE);h.charAt(0)!=="-"&&(h="-"+h),i="data"+h}}o=yf}return new o(s,i)}function uE(l){return"-"+l.toLowerCase()}function cE(l){return l.charAt(1).toUpperCase()}const oE=uy([fy,oy,gy,my,aE],"html");uy([fy,oy,gy,my,lE],"svg");const op=/[#.]/g;function fE(l,i){const r=l||"",s={};let o=0,d,h;for(;o<r.length;){op.lastIndex=o;const y=op.exec(r),g=r.slice(o,y?y.index:r.length);g&&(d?d==="#"?s.id=g:Array.isArray(s.className)?s.className.push(g):s.className=[g]:h=g,o+=g.length),y&&(d=y[0],o++)}return{type:"element",tagName:h||i||"div",properties:s,children:[]}}function fp(l){const i=String(l||"").trim();return i?i.split(/[ \t\n\r\f]+/g):[]}function dp(l){const i=[],r=String(l||"");let s=r.indexOf(","),o=0,d=!1;for(;!d;){s===-1&&(s=r.length,d=!0);const h=r.slice(o,s).trim();(h||!d)&&i.push(h),o=s+1,s=r.indexOf(",",o)}return i}const dE=new Set(["menu","submit","reset","button"]),py={}.hasOwnProperty;function hE(l,i,r){return(function(o,d,...h){let y=-1,g;if(o==null)g={type:"root",children:[]},h.unshift(d);else if(g=fE(o,i),g.tagName=g.tagName.toLowerCase(),gE(d,g.tagName)){let m;for(m in d)py.call(d,m)&&mE(l,g.properties,m,d[m])}else h.unshift(d);for(;++y<h.length;)po(g.children,h[y]);return g.type==="element"&&g.tagName==="template"&&(g.content={type:"root",children:g.children},g.children=[]),g})}function gE(l,i){return l==null||typeof l!="object"||Array.isArray(l)?!1:i==="input"||!l.type||typeof l.type!="string"?!0:"children"in l&&Array.isArray(l.children)?!1:i==="button"?dE.has(l.type.toLowerCase()):!("value"in l)}function mE(l,i,r,s){const o=sE(l,r);let d=-1,h;if(s!=null){if(typeof s=="number"){if(Number.isNaN(s))return;h=s}else typeof s=="boolean"?h=s:typeof s=="string"?o.spaceSeparated?h=fp(s):o.commaSeparated?h=dp(s):o.commaOrSpaceSeparated?h=fp(dp(s).join(" ")):h=hp(o,o.property,s):Array.isArray(s)?h=s.concat():h=o.property==="style"?pE(s):String(s);if(Array.isArray(h)){const y=[];for(;++d<h.length;)y[d]=hp(o,o.property,h[d]);h=y}o.property==="className"&&Array.isArray(i.className)&&(h=i.className.concat(h)),i[o.property]=h}}function po(l,i){let r=-1;if(i!=null)if(typeof i=="string"||typeof i=="number")l.push({type:"text",value:String(i)});else if(Array.isArray(i))for(;++r<i.length;)po(l,i[r]);else if(typeof i=="object"&&"type"in i)i.type==="root"?po(l,i.children):l.push(i);else throw new Error("Expected node, nodes, or string, got `"+i+"`")}function hp(l,i,r){if(typeof r=="string"){if(l.number&&r&&!Number.isNaN(Number(r)))return Number(r);if((l.boolean||l.overloadedBoolean)&&(r===""||kr(r)===kr(i)))return!0}return r}function pE(l){const i=[];let r;for(r in l)py.call(l,r)&&i.push([r,l[r]].join(": "));return i.join("; ")}const yE=hE(oE,"div"),bE=["AElig","AMP","Aacute","Acirc","Agrave","Aring","Atilde","Auml","COPY","Ccedil","ETH","Eacute","Ecirc","Egrave","Euml","GT","Iacute","Icirc","Igrave","Iuml","LT","Ntilde","Oacute","Ocirc","Ograve","Oslash","Otilde","Ouml","QUOT","REG","THORN","Uacute","Ucirc","Ugrave","Uuml","Yacute","aacute","acirc","acute","aelig","agrave","amp","aring","atilde","auml","brvbar","ccedil","cedil","cent","copy","curren","deg","divide","eacute","ecirc","egrave","eth","euml","frac12","frac14","frac34","gt","iacute","icirc","iexcl","igrave","iquest","iuml","laquo","lt","macr","micro","middot","nbsp","not","ntilde","oacute","ocirc","ograve","ordf","ordm","oslash","otilde","ouml","para","plusmn","pound","quot","raquo","reg","sect","shy","sup1","sup2","sup3","szlig","thorn","times","uacute","ucirc","ugrave","uml","uuml","yacute","yen","yuml"],gp={0:"�",128:"€",130:"‚",131:"ƒ",132:"„",133:"…",134:"†",135:"‡",136:"ˆ",137:"‰",138:"Š",139:"‹",140:"Œ",142:"Ž",145:"‘",146:"’",147:"“",148:"”",149:"•",150:"–",151:"—",152:"˜",153:"™",154:"š",155:"›",156:"œ",158:"ž",159:"Ÿ"};function yy(l){const i=typeof l=="string"?l.charCodeAt(0):l;return i>=48&&i<=57}function vE(l){const i=typeof l=="string"?l.charCodeAt(0):l;return i>=97&&i<=102||i>=65&&i<=70||i>=48&&i<=57}function xE(l){const i=typeof l=="string"?l.charCodeAt(0):l;return i>=97&&i<=122||i>=65&&i<=90}function mp(l){return xE(l)||yy(l)}const pp=document.createElement("i");function yp(l){const i="&"+l+";";pp.innerHTML=i;const r=pp.textContent;return r.charCodeAt(r.length-1)===59&&l!=="semi"||r===i?!1:r}const SE=["","Named character references must be terminated by a semicolon","Numeric character references must be terminated by a semicolon","Named character references cannot be empty","Numeric character references cannot be empty","Named character references must be known","Numeric character references cannot be disallowed","Numeric character references cannot be outside the permissible Unicode range"];function EE(l,i){const r={},s=typeof r.additional=="string"?r.additional.charCodeAt(0):r.additional,o=[];let d=0,h=-1,y="",g,m;r.position&&("start"in r.position||"indent"in r.position?(m=r.position.indent,g=r.position.start):g=r.position);let b=(g?g.line:0)||1,x=(g?g.column:0)||1,S=A(),E;for(d--;++d<=l.length;)if(E===10&&(x=(m?m[h]:0)||1),E=l.charCodeAt(d),E===38){const U=l.charCodeAt(d+1);if(U===9||U===10||U===12||U===32||U===38||U===60||Number.isNaN(U)||s&&U===s){y+=String.fromCharCode(E),x++;continue}const q=d+1;let O=q,F=q,Z;if(U===35){F=++O;const ne=l.charCodeAt(F);ne===88||ne===120?(Z="hexadecimal",F=++O):Z="decimal"}else Z="named";let X="",R="",M="";const K=Z==="named"?mp:Z==="decimal"?yy:vE;for(F--;++F<=l.length;){const ne=l.charCodeAt(F);if(!K(ne))break;M+=String.fromCharCode(ne),Z==="named"&&bE.includes(M)&&(X=M,R=yp(M))}let ie=l.charCodeAt(F)===59;if(ie){F++;const ne=Z==="named"?yp(M):!1;ne&&(X=M,R=ne)}let re=1+F-q,de="";if(!(!ie&&r.nonTerminated===!1))if(!M)Z!=="named"&&T(4,re);else if(Z==="named"){if(ie&&!R)T(5,1);else if(X!==M&&(F=O+X.length,re=1+F-O,ie=!1),!ie){const ne=X?1:3;if(r.attribute){const P=l.charCodeAt(F);P===61?(T(ne,re),R=""):mp(P)?R="":T(ne,re)}else T(ne,re)}de=R}else{ie||T(2,re);let ne=Number.parseInt(M,Z==="hexadecimal"?16:10);if(NE(ne))T(7,re),de="�";else if(ne in gp)T(6,re),de=gp[ne];else{let P="";wE(ne)&&T(6,re),ne>65535&&(ne-=65536,P+=String.fromCharCode(ne>>>10|55296),ne=56320|ne&1023),de=P+String.fromCharCode(ne)}}if(de){_(),S=A(),d=F-1,x+=F-q+1,o.push(de);const ne=A();ne.offset++,r.reference&&r.reference.call(r.referenceContext||void 0,de,{start:S,end:ne},l.slice(q-1,F)),S=ne}else M=l.slice(q-1,F),y+=M,x+=M.length,d=F-1}else E===10&&(b++,h++,x=0),Number.isNaN(E)?_():(y+=String.fromCharCode(E),x++);return o.join("");function A(){return{line:b,column:x,offset:d+((g?g.offset:0)||0)}}function T(U,q){let O;r.warning&&(O=A(),O.column+=q,O.offset+=q,r.warning.call(r.warningContext||void 0,SE[U],O,U))}function _(){y&&(o.push(y),r.text&&r.text.call(r.textContext||void 0,y,{start:S,end:A()}),y="")}}function NE(l){return l>=55296&&l<=57343||l>1114111}function wE(l){return l>=1&&l<=8||l===11||l>=13&&l<=31||l>=127&&l<=159||l>=64976&&l<=65007||(l&65535)===65535||(l&65535)===65534}var AE=0,ss={},rt={util:{type:function(l){return Object.prototype.toString.call(l).slice(8,-1)},objId:function(l){return l.__id||Object.defineProperty(l,"__id",{value:++AE}),l.__id},clone:function l(i,r){r=r||{};var s,o;switch(rt.util.type(i)){case"Object":if(o=rt.util.objId(i),r[o])return r[o];s={},r[o]=s;for(var d in i)i.hasOwnProperty(d)&&(s[d]=l(i[d],r));return s;case"Array":return o=rt.util.objId(i),r[o]?r[o]:(s=[],r[o]=s,i.forEach(function(h,y){s[y]=l(h,r)}),s);default:return i}}},languages:{plain:ss,plaintext:ss,text:ss,txt:ss,extend:function(l,i){var r=rt.util.clone(rt.languages[l]);for(var s in i)r[s]=i[s];return r},insertBefore:function(l,i,r,s){s=s||rt.languages;var o=s[l],d={};for(var h in o)if(o.hasOwnProperty(h)){if(h==i)for(var y in r)r.hasOwnProperty(y)&&(d[y]=r[y]);r.hasOwnProperty(h)||(d[h]=o[h])}var g=s[l];return s[l]=d,rt.languages.DFS(rt.languages,function(m,b){b===g&&m!=l&&(this[m]=d)}),d},DFS:function l(i,r,s,o){o=o||{};var d=rt.util.objId;for(var h in i)if(i.hasOwnProperty(h)){r.call(i,h,i[h],s||h);var y=i[h],g=rt.util.type(y);g==="Object"&&!o[d(y)]?(o[d(y)]=!0,l(y,r,null,o)):g==="Array"&&!o[d(y)]&&(o[d(y)]=!0,l(y,r,h,o))}}},plugins:{},highlight:function(l,i,r){var s={code:l,grammar:i,language:r};if(rt.hooks.run("before-tokenize",s),!s.grammar)throw new Error('The language "'+s.language+'" has no grammar.');return s.tokens=rt.tokenize(s.code,s.grammar),rt.hooks.run("after-tokenize",s),Cr.stringify(rt.util.encode(s.tokens),s.language)},tokenize:function(l,i){var r=i.rest;if(r){for(var s in r)i[s]=r[s];delete i.rest}var o=new TE;return os(o,o.head,l),by(l,o,i,o.head,0),_E(o)},hooks:{all:{},add:function(l,i){var r=rt.hooks.all;r[l]=r[l]||[],r[l].push(i)},run:function(l,i){var r=rt.hooks.all[l];if(!(!r||!r.length))for(var s=0,o;o=r[s++];)o(i)}},Token:Cr};function Cr(l,i,r,s){this.type=l,this.content=i,this.alias=r,this.length=(s||"").length|0}function bp(l,i,r,s){l.lastIndex=i;var o=l.exec(r);if(o&&s&&o[1]){var d=o[1].length;o.index+=d,o[0]=o[0].slice(d)}return o}function by(l,i,r,s,o,d){for(var h in r)if(!(!r.hasOwnProperty(h)||!r[h])){var y=r[h];y=Array.isArray(y)?y:[y];for(var g=0;g<y.length;++g){if(d&&d.cause==h+","+g)return;var m=y[g],b=m.inside,x=!!m.lookbehind,S=!!m.greedy,E=m.alias;if(S&&!m.pattern.global){var A=m.pattern.toString().match(/[imsuy]*$/)[0];m.pattern=RegExp(m.pattern.source,A+"g")}for(var T=m.pattern||m,_=s.next,U=o;_!==i.tail&&!(d&&U>=d.reach);U+=_.value.length,_=_.next){var q=_.value;if(i.length>l.length)return;if(!(q instanceof Cr)){var O=1,F;if(S){if(F=bp(T,U,l,x),!F||F.index>=l.length)break;var M=F.index,Z=F.index+F[0].length,X=U;for(X+=_.value.length;M>=X;)_=_.next,X+=_.value.length;if(X-=_.value.length,U=X,_.value instanceof Cr)continue;for(var R=_;R!==i.tail&&(X<Z||typeof R.value=="string");R=R.next)O++,X+=R.value.length;O--,q=l.slice(U,X),F.index-=U}else if(F=bp(T,0,q,x),!F)continue;var M=F.index,K=F[0],ie=q.slice(0,M),re=q.slice(M+K.length),de=U+q.length;d&&de>d.reach&&(d.reach=de);var ne=_.prev;ie&&(ne=os(i,ne,ie),U+=ie.length),CE(i,ne,O);var P=new Cr(h,b?rt.tokenize(K,b):K,E,K);if(_=os(i,ne,P),re&&os(i,_,re),O>1){var J={cause:h+","+g,reach:de};by(l,i,r,_.prev,U,J),d&&J.reach>d.reach&&(d.reach=J.reach)}}}}}}function TE(){var l={value:null,prev:null,next:null},i={value:null,prev:l,next:null};l.next=i,this.head=l,this.tail=i,this.length=0}function os(l,i,r){var s=i.next,o={value:r,prev:i,next:s};return i.next=o,s.prev=o,l.length++,o}function CE(l,i,r){for(var s=i.next,o=0;o<r&&s!==l.tail;o++)s=s.next;i.next=s,s.prev=i,l.length-=o}function _E(l){for(var i=[],r=l.head.next;r!==l.tail;)i.push(r.value),r=r.next;return i}const vy=rt,Ol={}.hasOwnProperty;function xy(){}xy.prototype=vy;const ge=new xy;ge.highlight=jE;ge.register=OE;ge.alias=kE;ge.registered=RE;ge.listLanguages=ME;ge.util.encode=DE;ge.Token.stringify=yo;function jE(l,i){if(typeof l!="string")throw new TypeError("Expected `string` for `value`, got `"+l+"`");let r,s;if(i&&typeof i=="object")r=i;else{if(s=i,typeof s!="string")throw new TypeError("Expected `string` for `name`, got `"+s+"`");if(Ol.call(ge.languages,s))r=ge.languages[s];else throw new Error("Unknown language: `"+s+"` is not registered")}return{type:"root",children:vy.highlight.call(ge,l,r,s)}}function OE(l){if(typeof l!="function"||!l.displayName)throw new Error("Expected `function` for `syntax`, got `"+l+"`");Ol.call(ge.languages,l.displayName)||l(ge)}function kE(l,i){const r=ge.languages;let s={};typeof l=="string"?i&&(s[l]=i):s=l;let o;for(o in s)if(Ol.call(s,o)){const d=s[o],h=typeof d=="string"?[d]:d;let y=-1;for(;++y<h.length;)r[h[y]]=r[o]}}function RE(l){if(typeof l!="string")throw new TypeError("Expected `string` for `aliasOrLanguage`, got `"+l+"`");return Ol.call(ge.languages,l)}function ME(){const l=ge.languages,i=[];let r;for(r in l)Ol.call(l,r)&&typeof l[r]=="object"&&i.push(r);return i}function yo(l,i){if(typeof l=="string")return{type:"text",value:l};if(Array.isArray(l)){const s=[];let o=-1;for(;++o<l.length;)l[o]!==null&&l[o]!==void 0&&l[o]!==""&&s.push(yo(l[o],i));return s}const r={attributes:{},classes:["token",l.type],content:yo(l.content,i),language:i,tag:"span",type:l.type};return l.alias&&r.classes.push(...typeof l.alias=="string"?[l.alias]:l.alias),ge.hooks.run("wrap",r),yE(r.tag+"."+r.classes.join("."),zE(r.attributes),r.content)}function DE(l){return l}function zE(l){let i;for(i in l)Ol.call(l,i)&&(l[i]=EE(l[i]));return l}ge.register(un);ge.register(Dr);ge.register(As);ge.register(qo);ge.register(Io);ge.register(Xo);ge.register(zr);ge.register(_l);ge.register(Fo);ge.register($o);ge.register(Zo);ge.register(Vo);ge.register(Ko);ge.register(Ts);ge.register(Qo);ge.register(Jo);ge.register(Wo);ge.register(Po);ge.register(ef);ge.register(tf);ge.register(nf);ge.register(af);ge.register(lf);ge.register(Cs);ge.register(rf);ge.register(sf);ge.register(uf);ge.register(cf);ge.register(of);ge.register(ff);ge.register(df);ge.register(hf);ge.register(gf);ge.register(mf);ge.register(_s);ge.register(pf);const vp={highlight(l,i){return ge.highlight(l,i).children},registered(l){return ge.registered(l)}};function LE(l,i){const r={old:[],new:[]};for(const s of l){const o=XS([s],i);xp(o.old,r.old,s.oldStart,s.oldLines),xp(o.new,r.new,s.newStart,s.newLines)}return r}function xp(l,i,r,s){for(let o=r;o<r+s;o++)i[o-1]=l[o-1]??[]}function UE(){const{theme:l,toggleTheme:i}=Xe();return f.jsx("button",{onClick:i,className:"p-1.5 rounded text-text-secondary hover:text-text-primary transition-colors cursor-pointer",title:`Switch to ${l==="dark"?"light":"dark"} mode`,children:l==="dark"?f.jsx(Dv,{className:"w-4 h-4"}):f.jsx(_v,{className:"w-4 h-4"})})}function BE(l){return{typescript:"typescript",ts:"typescript",tsx:"tsx",javascript:"javascript",js:"javascript",jsx:"jsx",json:"json",css:"css",html:"markup",xml:"markup",markdown:"markdown",md:"markdown",python:"python",py:"python",rust:"rust",rs:"rust",go:"go",java:"java",c:"c",cpp:"cpp","c++":"cpp",csharp:"csharp","c#":"csharp",ruby:"ruby",rb:"ruby",php:"php",shell:"bash",bash:"bash",sh:"bash",yaml:"yaml",yml:"yaml",toml:"toml",sql:"sql",graphql:"graphql",scss:"scss",sass:"sass",less:"less",swift:"swift",kotlin:"kotlin",scala:"scala",lua:"lua",r:"r",perl:"perl",diff:"diff"}[l.toLowerCase()]??null}function bo(l){return Ta(l)||Qt(l)?l.lineNumber:wa(l)?l.newLineNumber:0}function vo(l){return Qt(l)?"old":"new"}function Tr(l,i){return`${l}:${i}`}function HE(l,i){const r={};for(const s of l)for(const o of s.changes){const d=bo(o),h=`${i}:${Tr(vo(o),d)}`;r[h]||(r[h]=Bt(o))}return r}function GE(l,i,r=0){const s=/^diff --git /gm,o=[];let d;for(;(d=s.exec(l))!==null;)o.push(d.index);let h=0;for(let y=0;y<o.length;y++){const g=o[y],m=y+1<o.length?o[y+1]:l.length,b=l.slice(g,m);if(b.includes(`a/${i}`)||b.includes(`b/${i}`)){if(h===r)return b;h++}}return null}function YE(){const{diffSet:l,rawDiff:i,selectedFile:r,viewMode:s,setViewMode:o,comments:d,activeCommentKey:h,addComment:y,updateComment:g,deleteComment:m,setActiveCommentKey:b,toggleHotkeyGuide:x,toggleWorkflowTips:S,focusedHunkIndex:E,setHunkCount:A,annotations:T,dismissAnnotation:_,metadata:U,reviewId:q}=Xe(),O=!!(U!=null&&U.githubPr),{isAvailable:F,startThread:Z,replyToThread:X}=Co(),R=F&&!!q,M=Xe(Q=>{var ae;return(ae=Q.sessions.find(fe=>fe.id===Q.reviewId))==null?void 0:ae.agentReadAt}),K=z.useMemo(()=>!l||!r?null:l.files.find(Q=>Lt(Q)===r)??null,[l,r]),ie=z.useMemo(()=>{if(!i||!r||!l)return null;const Q=gl(r);let ae=0;for(const fe of l.files){if(Lt(fe)===r)break;fe.path===Q&&ae++}return GE(i,Q,ae)},[i,r,l]),re=z.useMemo(()=>{if(!ie)return[];try{return c1(ie)}catch{return[]}},[ie]),de=z.useMemo(()=>{if(re.length===0||!K)return;const Q=BE(K.language);if(Q){try{if(!vp.registered(Q))return}catch{return}try{const ae={refractor:vp,highlight:!0,language:Q};return LE(re[0].hunks,ae)}catch{return}}},[re,K,s]),ne=z.useMemo(()=>re.length===0||!r?{}:HE(re[0].hunks,r),[re,r]),P=z.useMemo(()=>{if(re.length===0)return{};const Q={};for(const ae of re[0].hunks)for(const fe of ae.changes)Q[Bt(fe)]=bo(fe);return Q},[re]),J=z.useMemo(()=>{const Q={};if(re.length===0)return Q;for(const ae of re[0].hunks)for(const fe of ae.changes)Q[Bt(fe)]=vo(fe);return Q},[re]),k=z.useMemo(()=>r?d.map((Q,ae)=>({comment:Q,index:ae})).filter(Q=>Q.comment.file===r):[],[d,r]),B=z.useMemo(()=>{if(!r)return[];const Q=gl(r);return T.filter(ae=>ae.file===Q&&!ae.dismissed)},[T,r]),le=z.useMemo(()=>{const Q=new Map;for(const ae of B){const fe=Tr(ae.side,ae.line);Q.has(fe)||Q.set(fe,[]),Q.get(fe).push(ae)}return Q},[B]),ue=z.useMemo(()=>O&&!R?{}:{onClick({change:Q}){if(!Q)return;const ae=Bt(Q);b(h===ae?null:ae)}},[h,b,O,R]),ce=z.useCallback(({change:Q,inHoverState:ae,renderDefault:fe})=>{const Ue=Tr(vo(Q),bo(Q)),be=!O&&r&&k.some(Fe=>Tr(Fe.comment.side,Fe.comment.line)===Ue),Te=le.has(Ue);return ae&&(!O||R)?f.jsxs(f.Fragment,{children:[f.jsx("span",{className:"diff-gutter-add-comment",children:"+"}),fe()]}):be?f.jsxs(f.Fragment,{children:[f.jsx("span",{className:"diff-comment-indicator"}),fe()]}):Te?f.jsxs(f.Fragment,{children:[f.jsx("span",{className:"diff-annotation-indicator"}),fe()]}):fe()},[r,k,le,O,R]),N=z.useMemo(()=>{if(!r)return{};const Q={},ae=new Map;if(!O)for(const be of k){const Te=Tr(be.comment.side,be.comment.line);ae.has(Te)||ae.set(Te,[]),ae.get(Te).push(be)}const fe=(be,Te)=>!O&&R?Fe=>Z(q,{file:gl(r),line:be,side:J[Te],body:Fe}):void 0,Ue=new Set([...ae.keys(),...le.keys()]);for(const be of Ue){const Te=ne[`${r}:${be}`];if(!Te)continue;const Fe=P[Te],dt={file:r,line:Fe,side:J[Te]},Ht=ae.get(be),gt=le.get(be);Q[Te]=f.jsxs(f.Fragment,{children:[gt&>.length>0&&f.jsx(PS,{annotations:gt,onDismiss:_,onReply:R?(mt,$e)=>X(q,mt,$e):void 0,sessionId:q??void 0,agentReadAt:M}),O&&R&&h===Te&&f.jsx("div",{className:"border-t border-border bg-surface",children:f.jsx(go,{placeholder:"Start another conversation on this line…",submitLabel:"Comment",onSubmit:async mt=>{const $e=await Z(q,{file:gl(r),line:Fe,side:J[Te],body:mt});return $e.ok&&b(null),$e},onCancel:()=>b(null)})}),!O&&Ht&&Ht.length>0&&f.jsx(ZS,{comments:Ht,isFormOpen:h===Te,location:dt,onAdd:(mt,$e)=>{y({...dt,body:mt,type:$e})},onAsk:fe(Fe,Te),onUpdate:(mt,$e,js)=>{g(mt,{...dt,body:$e,type:js})},onDelete:m,onOpenForm:()=>b(Te),onCloseForm:()=>b(null)}),!O&&!(Ht!=null&&Ht.length)&&h===Te&&f.jsx("div",{className:"border-t border-border bg-surface",children:f.jsx(hs,{location:dt,onSave:(mt,$e)=>{y({...dt,body:mt,type:$e}),b(null)},onAsk:fe(Fe,Te),onCancel:()=>b(null)})})]})}if(O&&R&&h&&!Q[h]){const be=P[h];be!==void 0&&(Q[h]=f.jsx("div",{className:"border-t border-border bg-surface",children:f.jsx(go,{placeholder:"Ask the agent about this line…",submitLabel:"Comment",onSubmit:async Te=>{const Fe=await Z(q,{file:gl(r),line:be,side:J[h],body:Te});return Fe.ok&&b(null),Fe},onCancel:()=>b(null)})}))}if(!O&&h&&!Q[h]){const be=P[h];if(be!==void 0){const Te={file:r,line:be,side:J[h]};Q[h]=f.jsx("div",{className:"border-t border-border bg-surface",children:f.jsx(hs,{location:Te,onSave:(Fe,dt)=>{y({...Te,body:Fe,type:dt}),b(null)},onAsk:fe(be,h),onCancel:()=>b(null)})})}}return Q},[r,k,B,le,h,ne,P,J,y,g,m,_,b,O,R,q,M,Z,X]);eE(N);const Y=z.useRef(null);if(z.useEffect(()=>{var Q;A(((Q=re[0])==null?void 0:Q.hunks.length)??0)},[re,A]),z.useEffect(()=>{const Q=Y.current;if(!Q||E===null)return;const ae=Q.querySelectorAll("tbody.diff-hunk");ae.forEach(fe=>fe.classList.remove("diff-hunk-focused")),ae[E]&&(ae[E].scrollIntoView({behavior:"smooth",block:"center"}),ae[E].classList.add("diff-hunk-focused"))},[E]),z.useEffect(()=>{function Q(){if(E===null||re.length===0||!r)return;const ae=re[0].hunks[E];if(!ae||ae.changes.length===0)return;const fe=ae.changes[0],Ue=Bt(fe);b(Ue)}return document.addEventListener("diffprism:open-comment",Q),()=>document.removeEventListener("diffprism:open-comment",Q)},[E,re,r,b]),!r||!l)return f.jsx("div",{className:"flex-1 flex items-center justify-center bg-background",children:f.jsxs("div",{className:"text-center",children:[f.jsx(Tl,{className:"w-12 h-12 text-text-secondary/40 mx-auto mb-3"}),f.jsx("p",{className:"text-text-secondary text-sm",children:"Select a file to view changes"})]})});const ee=gl(r);if(K!=null&&K.binary)return f.jsxs("div",{className:"flex-1 flex flex-col bg-background",children:[f.jsx(ao,{path:ee,stage:K==null?void 0:K.stage}),f.jsx("div",{className:"flex-1 flex items-center justify-center",children:f.jsx("div",{className:"text-center",children:f.jsx("p",{className:"text-text-secondary text-sm",children:"Binary file — cannot display diff"})})})]});if(re.length===0)return f.jsxs("div",{className:"flex-1 flex flex-col bg-background",children:[f.jsx(ao,{path:ee,stage:K==null?void 0:K.stage}),f.jsx("div",{className:"flex-1 flex items-center justify-center",children:f.jsx("div",{className:"text-center",children:f.jsx("p",{className:"text-text-secondary text-sm",children:"No diff content available for this file"})})})]});const W=re[0];return f.jsxs("div",{className:"flex-1 flex flex-col bg-background min-h-0",children:[f.jsx(ao,{path:ee,stage:K==null?void 0:K.stage,additions:K==null?void 0:K.additions,deletions:K==null?void 0:K.deletions,viewMode:s,onViewModeChange:o,onToggleHotkeyGuide:x,onToggleWorkflowTips:S}),f.jsx("div",{ref:Y,className:"flex-1 overflow-auto",children:f.jsx(SS,{viewType:s,diffType:W.type,hunks:W.hunks,tokens:de,widgets:N,gutterEvents:ue,renderGutter:ce,children:Q=>Q.map(ae=>f.jsx(ey,{hunk:ae},ae.content))})})]})}function ao({path:l,stage:i,additions:r,deletions:s,viewMode:o,onViewModeChange:d,onToggleHotkeyGuide:h,onToggleWorkflowTips:y}){return f.jsxs("div",{className:"flex items-center gap-3 px-4 py-2.5 bg-surface border-b border-border flex-shrink-0",children:[f.jsx(Tl,{className:"w-4 h-4 text-text-secondary flex-shrink-0"}),f.jsx("span",{className:"text-text-primary text-sm font-mono truncate",children:l}),i&&f.jsx("span",{className:`text-[10px] font-semibold px-1.5 py-0.5 rounded border ${Xv[i]}`,children:i==="staged"?"Staged":"Unstaged"}),f.jsxs("div",{className:"flex items-center gap-2 ml-auto flex-shrink-0",children:[r!==void 0&&r>0&&f.jsxs("span",{className:"text-success text-xs font-mono",children:["+",r]}),s!==void 0&&s>0&&f.jsxs("span",{className:"text-danger text-xs font-mono",children:["-",s]}),o&&d&&f.jsxs("div",{className:"flex items-center rounded border border-border ml-2",children:[f.jsx("button",{onClick:()=>d("unified"),className:`p-1 ${o==="unified"?"bg-text-primary/10 text-text-primary":"text-text-secondary hover:text-text-primary"}`,title:"Unified view",children:f.jsx(Rv,{className:"w-3.5 h-3.5"})}),f.jsx("button",{onClick:()=>d("split"),className:`p-1 ${o==="split"?"bg-text-primary/10 text-text-primary":"text-text-secondary hover:text-text-primary"}`,title:"Split view",children:f.jsx(xv,{className:"w-3.5 h-3.5"})})]}),y&&f.jsx("button",{onClick:y,className:"p-1.5 rounded text-text-secondary hover:text-text-primary transition-colors cursor-pointer",title:"Workflow tips",children:f.jsx(To,{className:"w-4 h-4"})}),h&&f.jsx("button",{onClick:h,className:"p-1.5 rounded text-text-secondary hover:text-text-primary transition-colors cursor-pointer",title:"Keyboard shortcuts (?)",children:f.jsx(No,{className:"w-4 h-4"})}),f.jsx(UE,{})]})]})}function qE({onSubmit:l,onDismiss:i,isWatchMode:r,watchSubmitted:s,hasUnreviewedChanges:o}){const[d,h]=z.useState(""),[y,g]=z.useState(null),{diffSet:m,fileStatuses:b,comments:x,draftComment:S,saveDraftComment:E,setActiveCommentKey:A,setDraftComment:T}=Xe(),_=(m==null?void 0:m.files.reduce((M,K)=>M+K.additions,0))??0,U=(m==null?void 0:m.files.reduce((M,K)=>M+K.deletions,0))??0,q=(m==null?void 0:m.files.length)??0,O=!!(S&&S.body.trim());function F(M){const K=Object.values(b).some(ie=>ie!=="unreviewed");l({decision:M,comments:Xe.getState().comments,fileStatuses:K?b:void 0,summary:d.trim()||void 0})}function Z(M){if(O){g(M);return}F(M)}function X(){y&&(E(),F(y),g(null))}function R(){y&&(T(null),A(null),F(y),g(null))}return r&&s&&!o?f.jsx("div",{className:"bg-surface border-t border-border px-4 py-3 flex-shrink-0",children:f.jsxs("div",{className:"flex items-center gap-3",children:[f.jsx(El,{className:"w-4 h-4 text-success"}),f.jsx("span",{className:"text-sm text-success font-medium",children:"Review submitted"}),f.jsxs("span",{className:"relative flex h-2 w-2 ml-2",children:[f.jsx("span",{className:"animate-ping absolute inline-flex h-full w-full rounded-full bg-success opacity-75"}),f.jsx("span",{className:"relative inline-flex rounded-full h-2 w-2 bg-success"})]}),f.jsx("span",{className:"text-xs text-text-secondary",children:"Watching for changes..."})]})}):f.jsxs("div",{className:"bg-surface border-t border-border px-4 py-3 flex-shrink-0",children:[r&&s&&o&&f.jsxs("div",{className:"flex items-center gap-2 mb-3 text-xs text-accent",children:[f.jsxs("span",{className:"relative flex h-2 w-2",children:[f.jsx("span",{className:"animate-ping absolute inline-flex h-full w-full rounded-full bg-info opacity-75"}),f.jsx("span",{className:"relative inline-flex rounded-full h-2 w-2 bg-info"})]}),"New changes detected"]}),f.jsxs("div",{className:"flex items-center gap-4 mb-3",children:[f.jsxs("span",{className:"text-text-secondary text-xs",children:[q," file",q!==1?"s":""," changed"]}),_>0&&f.jsxs("span",{className:"text-success text-xs font-mono",children:["+",_]}),U>0&&f.jsxs("span",{className:"text-danger text-xs font-mono",children:["-",U]}),x.length>0&&f.jsxs("span",{className:"flex items-center gap-1 text-accent text-xs",children:[f.jsx(Nl,{className:"w-3 h-3"}),x.length," comment",x.length!==1?"s":""]})]}),f.jsx("textarea",{value:d,onChange:M=>h(M.target.value),placeholder:"Leave a summary comment (optional)...",rows:3,className:"w-full bg-background border border-border rounded-lg px-3 py-2 text-text-primary text-sm placeholder:text-text-secondary/50 resize-none focus:outline-none focus:ring-1 focus:ring-accent focus:border-accent mb-3"}),y&&f.jsxs("div",{className:"flex items-center gap-3 mb-3 px-3 py-2.5 rounded-lg bg-warning/10 border border-warning/30",children:[f.jsx(wl,{className:"w-4 h-4 text-warning flex-shrink-0"}),f.jsx("span",{className:"text-sm text-text-primary",children:"You have an unsaved comment. Save it before submitting?"}),f.jsx("div",{className:"flex-1"}),f.jsx("button",{onClick:X,className:"px-3 py-1.5 text-xs font-medium rounded bg-accent/20 text-accent border border-accent/30 hover:bg-accent/30 transition-colors cursor-pointer",children:"Save & Submit"}),f.jsx("button",{onClick:R,className:"px-3 py-1.5 text-xs text-text-secondary hover:text-text-primary transition-colors cursor-pointer",children:"Discard & Submit"}),f.jsx("button",{onClick:()=>g(null),className:"px-3 py-1.5 text-xs text-text-secondary hover:text-text-primary transition-colors cursor-pointer",children:"Cancel"})]}),f.jsxs("div",{className:"flex items-center gap-3",children:[f.jsxs("button",{onClick:()=>Z("approved"),className:`flex items-center gap-2 px-4 py-2 rounded-lg text-sm font-medium transition-colors cursor-pointer ${ta.approve}`,children:[f.jsx(El,{className:"w-4 h-4"}),"Approve"]}),f.jsxs("button",{onClick:()=>Z("changes_requested"),className:`flex items-center gap-2 px-4 py-2 rounded-lg text-sm font-medium transition-colors cursor-pointer ${ta.reject}`,children:[f.jsx(Rr,{className:"w-4 h-4"}),"Request Changes"]}),f.jsxs("button",{onClick:()=>Z("approved_with_comments"),className:`flex items-center gap-2 px-4 py-2 rounded-lg text-sm font-medium transition-colors cursor-pointer ${ta.comment}`,children:[f.jsx(Nl,{className:"w-4 h-4"}),"Approve with Comments"]}),i&&f.jsxs(f.Fragment,{children:[f.jsx("div",{className:"w-px h-6 bg-border"}),f.jsxs("button",{onClick:i,className:`flex items-center gap-2 px-4 py-2 rounded-lg text-sm font-medium transition-colors cursor-pointer ${ta.dismiss}`,children:[f.jsx(Ap,{className:"w-4 h-4"}),"Dismiss"]})]})]})]})}function IE({onDismiss:l}){const{annotations:i,reviewId:r,metadata:s}=Xe(),{submitPrReview:o}=Co(),[d,h]=z.useState(""),[y,g]=z.useState(new Set),[m,b]=z.useState(null),[x,S]=z.useState(null),[E,A]=z.useState(null),T=s==null?void 0:s.githubPr,_=i.filter(X=>X.author==="reviewer"&&!X.dismissed),U=!d.trim();async function q(X){if(!r)return;b(X),S(null);const R=await o(r,{event:X,summary:d.trim()||void 0,threadIds:_.filter(M=>y.has(M.id)).map(M=>M.id)});b(null),R.ok?A(R.url):S(R.error)}function O(X){g(R=>{const M=new Set(R);return M.has(X)?M.delete(X):M.add(X),M})}if(E)return f.jsxs("div",{className:"bg-surface border-t border-border px-4 py-3 flex-shrink-0 flex items-center gap-3",children:[f.jsx(El,{className:"w-4 h-4 text-success"}),f.jsx("span",{className:"text-sm text-success font-medium",children:"Review posted to GitHub"}),f.jsxs("a",{href:E,target:"_blank",rel:"noreferrer",className:"flex items-center gap-1 text-xs text-accent hover:underline",children:["View on GitHub",f.jsx(wo,{className:"w-3 h-3"})]})]});const F=m!==null,Z=(X,R,M,K,ie)=>f.jsxs("button",{onClick:()=>q(X),disabled:F||ie,className:`flex items-center gap-2 px-4 py-2 rounded-lg text-sm font-medium transition-colors cursor-pointer disabled:opacity-40 disabled:cursor-not-allowed ${M}`,children:[f.jsx(K,{className:"w-4 h-4"}),m===X?"Posting…":R]});return f.jsxs("div",{className:"bg-surface border-t border-border px-4 py-3 flex-shrink-0",children:[f.jsxs("div",{className:"text-xs text-text-secondary mb-2",children:["Submit your review to GitHub",T?` · ${T.owner}/${T.repo}#${T.number}`:""]}),f.jsx("textarea",{value:d,onChange:X=>h(X.target.value),placeholder:"Summary — optional to approve, required to request changes or comment",rows:3,className:"w-full bg-background border border-border rounded-lg px-3 py-2 text-text-primary text-sm placeholder:text-text-secondary/50 resize-none focus:outline-none focus:ring-1 focus:ring-accent focus:border-accent mb-3"}),_.length>0&&f.jsxs("fieldset",{className:"mb-3",children:[f.jsx("legend",{className:"text-xs text-text-secondary mb-1",children:"Post your comments as inline review comments (your opening message only — agent replies stay here)"}),f.jsx("div",{className:"flex flex-col gap-1 max-h-28 overflow-y-auto",children:_.map(X=>f.jsxs("label",{className:"flex items-center gap-2 text-xs text-text-primary cursor-pointer select-none",children:[f.jsx("input",{type:"checkbox",checked:y.has(X.id),onChange:()=>O(X.id),className:"rounded border-border accent-accent"}),f.jsxs("span",{className:"font-mono text-text-secondary",children:[X.file,":",X.line]}),f.jsx("span",{className:"truncate",children:X.body})]},X.id))})]}),x&&f.jsxs("div",{role:"alert",className:"flex items-start gap-2 mb-3 px-3 py-2 rounded-lg bg-danger/10 border border-danger/30 text-sm text-text-primary whitespace-pre-line",children:[f.jsx(wl,{className:"w-4 h-4 mt-0.5 text-danger flex-shrink-0"}),x]}),f.jsxs("div",{className:"flex items-center gap-3",children:[Z("APPROVE","Approve",ta.approve,El,!1),Z("REQUEST_CHANGES","Request changes",ta.reject,Rr,U),Z("COMMENT","Comment",ta.comment,Nl,U),l&&f.jsxs(f.Fragment,{children:[f.jsx("div",{className:"w-px h-6 bg-border"}),f.jsxs("button",{onClick:l,disabled:F,className:`flex items-center gap-2 px-4 py-2 rounded-lg text-sm font-medium transition-colors cursor-pointer disabled:opacity-40 ${ta.dismiss}`,children:[f.jsx(Ap,{className:"w-4 h-4"}),"Close without posting"]})]})]})]})}const XE=navigator.platform.toUpperCase().includes("MAC"),FE=XE?"⌘":"Ctrl",$E=[{keys:["j","↓"],action:"Next file"},{keys:["k","↑"],action:"Previous file"},{keys:["s"],action:"Cycle file status"},{keys:["n"],action:"Next hunk"},{keys:["p"],action:"Previous hunk"},{keys:["c"],action:"Comment on hunk"},{keys:[`${FE} + Enter`],action:"Save comment"},{keys:["Esc"],action:"Cancel comment / Close guide"},{keys:["?"],action:"Toggle this guide"}];function ZE(){const{showHotkeyGuide:l,toggleHotkeyGuide:i}=Xe();return z.useEffect(()=>{if(!l)return;function r(s){(s.key==="Escape"||s.key==="?")&&(s.preventDefault(),s.stopPropagation(),i())}return document.addEventListener("keydown",r,!0),()=>document.removeEventListener("keydown",r,!0)},[l,i]),l?f.jsx("div",{className:"fixed inset-0 z-50 flex items-center justify-center bg-black/50",onClick:i,children:f.jsxs("div",{className:"bg-surface border border-border rounded-lg shadow-xl p-6 max-w-sm w-full mx-4",onClick:r=>r.stopPropagation(),children:[f.jsx("h2",{className:"text-text-primary text-sm font-semibold mb-4",children:"Keyboard Shortcuts"}),f.jsx("div",{className:"space-y-2",children:$E.map(r=>f.jsxs("div",{className:"flex items-center justify-between gap-4",children:[f.jsx("span",{className:"text-text-secondary text-sm",children:r.action}),f.jsx("div",{className:"flex items-center gap-1.5",children:r.keys.map((s,o)=>f.jsxs("span",{className:"flex items-center gap-1.5",children:[o>0&&f.jsx("span",{className:"text-text-secondary/50 text-xs",children:"/"}),f.jsx("kbd",{className:"px-1.5 py-0.5 text-xs font-mono rounded border border-border bg-background text-text-primary",children:s})]},s))})]},r.action))})]})}):null}const VE={navigation:"Navigation",review:"Review Workflow",commenting:"Commenting",general:"General"},KE=["navigation","review","commenting","general"],QE=[{id:"nav-files",text:"Navigate between files in the sidebar",shortcut:"j / k",category:"navigation"},{id:"nav-hunks",text:"Jump between changed hunks within a file",shortcut:"n / p",category:"navigation"},{id:"nav-select",text:"Click any file in the sidebar to view its diff",category:"navigation"},{id:"review-status",text:"Cycle a file's review status (unreviewed → reviewed → approved → needs changes)",shortcut:"s",category:"review"},{id:"review-split",text:"Toggle between unified and split (side-by-side) diff views from the toolbar",category:"review"},{id:"review-briefing",text:"Check the briefing bar at the top for a summary of changes, risk indicators, and file stats",category:"review"},{id:"comment-gutter",text:"Click a line's gutter (the + icon on hover) to add an inline comment",category:"commenting"},{id:"comment-hunk",text:"Quickly comment on the focused hunk",shortcut:"c",category:"commenting"},{id:"comment-save",text:"Save a comment from the inline form",shortcut:"Cmd/Ctrl + Enter",category:"commenting"},{id:"general-hotkeys",text:"Open the full keyboard shortcuts reference anytime",shortcut:"?",category:"general"},{id:"general-theme",text:"Toggle between dark and light mode from the toolbar",category:"general"}],Sp="diffprism-tips-seen";function JE(){const{showWorkflowTips:l,toggleWorkflowTips:i}=Xe();if(z.useEffect(()=>{localStorage.getItem(Sp)||(localStorage.setItem(Sp,"1"),i())},[]),z.useEffect(()=>{if(!l)return;function s(o){o.key==="Escape"&&(o.preventDefault(),o.stopPropagation(),i())}return document.addEventListener("keydown",s,!0),()=>document.removeEventListener("keydown",s,!0)},[l,i]),!l)return null;const r=new Map;for(const s of QE)r.has(s.category)||r.set(s.category,[]),r.get(s.category).push(s);return f.jsx("div",{className:"fixed inset-0 z-50 flex items-center justify-center bg-black/50",onClick:i,children:f.jsxs("div",{className:"bg-surface border border-border rounded-lg shadow-xl p-6 max-w-md w-full mx-4 max-h-[80vh] overflow-y-auto",onClick:s=>s.stopPropagation(),children:[f.jsx("h2",{className:"text-text-primary text-sm font-semibold mb-4",children:"Workflow Tips"}),f.jsx("div",{className:"space-y-4",children:KE.map(s=>{const o=r.get(s);return!o||o.length===0?null:f.jsxs("div",{children:[f.jsx("h3",{className:"text-text-secondary text-xs font-semibold uppercase tracking-wider mb-2",children:VE[s]}),f.jsx("div",{className:"space-y-1.5",children:o.map(d=>f.jsxs("div",{className:"flex items-start justify-between gap-3",children:[f.jsx("span",{className:"text-text-secondary text-sm leading-snug",children:d.text}),d.shortcut&&f.jsx("kbd",{className:"flex-shrink-0 px-1.5 py-0.5 text-xs font-mono rounded border border-border bg-background text-text-primary whitespace-nowrap",children:d.shortcut})]},d.id))})]},s)})}),f.jsxs("div",{className:"mt-5 flex items-center justify-between",children:[f.jsx("span",{className:"text-text-secondary/60 text-xs",children:"Reopen anytime from the toolbar"}),f.jsx("button",{onClick:i,className:"px-3 py-1.5 text-sm font-medium rounded bg-accent text-white hover:bg-accent/90 transition-colors cursor-pointer",children:"Got it"})]})]})})}const WE="Your comments",PE={finding:Aa,suggestion:To,question:No,warning:wl};function eN({body:l}){const[i,r]=z.useState(!1),s=l.length>120||l.includes(`
|
|
350
|
+
`),o=z.useCallback(d=>{d.stopPropagation(),r(h=>!h)},[]);return s?i?f.jsxs("div",{children:[f.jsx("p",{className:"text-xs text-text-primary whitespace-pre-wrap",children:l}),f.jsx("button",{onClick:o,className:"text-[10px] text-accent hover:underline mt-0.5 cursor-pointer",children:"Show less"})]}):f.jsxs("div",{children:[f.jsx("p",{className:"text-xs text-text-primary truncate",children:l}),f.jsx("button",{onClick:o,className:"text-[10px] text-accent hover:underline mt-0.5 cursor-pointer",children:"Show more"})]}):f.jsx("p",{className:"text-xs text-text-primary",children:l})}function tN({annotations:l,onDismiss:i,onNavigate:r,agentReadAt:s}){const[o,d]=z.useState(!1),h=iy(l,s),y=z.useMemo(()=>{const b=o?l:l.filter(S=>!S.dismissed),x=new Map;for(const S of b){const E=(S.author??"agent")==="reviewer"?WE:S.source.agent;x.has(E)||x.set(E,[]),x.get(E).push(S)}return x},[l,o]),g=l.filter(b=>!b.dismissed).length,m=l.some(b=>(b.author??"agent")==="reviewer");return l.length===0?null:f.jsxs("div",{className:"border-t border-border flex-shrink-0 max-h-[40%] overflow-hidden flex flex-col",children:[f.jsxs("div",{className:"px-4 py-2 flex items-center justify-between",children:[f.jsxs("div",{className:"flex items-center gap-2",children:[m?f.jsx(Nl,{className:"w-4 h-4 text-text-secondary"}):f.jsx(So,{className:"w-4 h-4 text-text-secondary"}),f.jsxs("span",{className:"text-xs font-semibold text-text-secondary uppercase tracking-wide",children:[m?"Annotations & comments":"Agent Annotations"," (",g,")"]})]}),l.some(b=>b.dismissed)&&f.jsxs("button",{onClick:()=>d(!o),className:"flex items-center gap-1 text-xs text-text-secondary hover:text-text-primary cursor-pointer",children:[o?f.jsx(Nv,{className:"w-3 h-3"}):f.jsx(Ao,{className:"w-3 h-3"}),o?"Hide dismissed":"Show dismissed"]})]}),f.jsx("div",{className:"flex-1 min-h-0 overflow-y-auto",children:Array.from(y.entries()).map(([b,x])=>f.jsxs("div",{className:"border-t border-border/50",children:[f.jsxs("div",{className:"px-4 py-1.5 flex items-center gap-2",children:[f.jsx("span",{className:"text-xs font-medium text-accent",children:b}),f.jsxs("span",{className:"text-xs text-text-secondary",children:["(",x.length,")"]})]}),x.map(S=>{var T;const E=PE[S.type]??Aa,A=fs[S.category]??fs.other;return f.jsxs("div",{className:`px-4 py-2 flex items-start gap-2 hover:bg-text-primary/5 cursor-pointer group ${S.dismissed?"opacity-40":""}`,onClick:()=>r(S),children:[f.jsx(E,{className:`w-3.5 h-3.5 mt-0.5 flex-shrink-0 ${A}`}),f.jsxs("div",{className:"flex-1 min-w-0",children:[f.jsxs("div",{className:"flex items-center gap-2 mb-0.5",children:[f.jsxs("span",{className:"text-xs text-text-secondary font-mono truncate",children:[S.file,":",S.line]}),(S.author??"agent")==="agent"&&f.jsx("span",{className:`text-[10px] font-semibold uppercase ${A}`,children:S.category})]}),f.jsx(eN,{body:S.body}),Go(S)?h(S)==="unheard"?f.jsx("p",{className:"text-[10px] text-warning mt-0.5",children:"No agent listening"}):f.jsx("p",{className:"text-[10px] text-text-secondary italic mt-0.5",children:"Waiting for an agent"}):(((T=S.replies)==null?void 0:T.length)??0)>0?f.jsxs("p",{className:"text-[10px] text-text-secondary mt-0.5",children:[S.replies.length," ",S.replies.length===1?"reply":"replies"]}):null]}),!S.dismissed&&f.jsx("button",{onClick:_=>{_.stopPropagation(),i(S.id)},className:"p-0.5 rounded hover:bg-text-primary/10 text-text-secondary opacity-0 group-hover:opacity-100 cursor-pointer flex-shrink-0",title:"Dismiss",children:f.jsx(Rr,{className:"w-3 h-3"})})]},S.id)})]},b))})]})}function Sy({onSubmit:l,onDismiss:i,isWatchMode:r,watchSubmitted:s,hasUnreviewedChanges:o}){const{annotations:d,dismissAnnotation:h,selectFile:y,focusAnnotation:g,diffSet:m,metadata:b}=Xe(),x=Xe(A=>{var T;return(T=A.sessions.find(_=>_.id===A.reviewId))==null?void 0:T.agentReadAt}),S=!!(b!=null&&b.githubPr),E=A=>{if(!m)return;if(m.files.find(U=>Lt(U)===A)){y(A);return}const _=m.files.find(U=>U.path===A);_&&y(Lt(_))};return f.jsxs("div",{className:"h-screen flex flex-col bg-background",children:[f.jsx(Zv,{}),f.jsx(Vv,{}),f.jsxs("div",{className:"flex flex-1 min-h-0",children:[f.jsxs("div",{className:"w-[280px] flex-shrink-0 flex flex-col overflow-hidden",children:[f.jsx("div",{className:"flex-1 min-h-0",children:f.jsx(a1,{onSubmit:l})}),f.jsx(tN,{annotations:d,onDismiss:h,agentReadAt:x,onNavigate:A=>{E(A.file),A.dismissed||g(A.id)}})]}),f.jsx(YE,{})]}),S?f.jsx(IE,{onDismiss:i}):f.jsx(qE,{onSubmit:l,onDismiss:i,isWatchMode:r,watchSubmitted:s,hasUnreviewedChanges:o}),f.jsx(ZE,{}),f.jsx(JE,{})]})}function nN(l){const r=Date.now()-l,s=Math.floor(r/6e4);if(s<1)return"just now";if(s<60)return`${s}m ago`;const o=Math.floor(s/60);return o<24?`${o}h ago`:`${Math.floor(o/24)}d ago`}function aN(l){if(l.startsWith("github:"))return l.slice(7);const i=l.split("/");return i[i.length-1]||l}const Ep={pending:"Pending",in_review:"In Review",changes_requested:"Changes Req.",approved:"Approved",approved_with_comments:"Approved",dismissed:"Dismissed",submitted:"Submitted"};function lN(l){const{status:i,decision:r}=l,s=i==="submitted"?r??"submitted":i,o=Lm[s]??Lm.submitted,d=Ep[s]??Ep.submitted;return f.jsx("span",{className:`inline-flex items-center px-1.5 py-0.5 text-[10px] font-medium rounded ${o}`,children:d})}function rN({sessions:l,activeSessionId:i,onSelect:r,onClose:s,onOpenProject:o,onReviewPr:d}){return f.jsxs("div",{className:"flex flex-col h-full bg-surface border-r border-border",children:[f.jsxs("div",{className:"px-3 py-3 border-b border-border flex items-center justify-between",children:[f.jsxs("div",{children:[f.jsx("h2",{className:"text-text-primary text-xs font-semibold uppercase tracking-wider",children:"Sessions"}),f.jsxs("span",{className:"text-text-secondary text-[10px]",children:[l.length," session",l.length!==1?"s":""]})]}),f.jsxs("div",{className:"flex items-center gap-1",children:[d&&f.jsx("button",{onClick:d,className:"p-1 rounded hover:bg-border/50 text-text-secondary hover:text-accent transition-colors",title:"Review GitHub PR",children:f.jsx(na,{className:"w-3.5 h-3.5"})}),o&&f.jsx("button",{onClick:o,className:"p-1 rounded hover:bg-border/50 text-text-secondary hover:text-text-primary transition-colors",title:"Open project",children:f.jsx(Tp,{className:"w-3.5 h-3.5"})})]})]}),f.jsx("div",{className:"flex-1 overflow-y-auto",children:l.length===0?f.jsx("div",{className:"flex flex-col items-center justify-center h-full px-4 text-center",children:f.jsx("p",{className:"text-text-secondary text-xs",children:"No sessions yet. Reviews will appear here automatically."})}):f.jsx("div",{className:"py-1",children:l.map(h=>{const y=h.id===i,g=h.source==="manual",m=h.projectPath.startsWith("github:");return f.jsxs("div",{className:`group relative px-3 py-2.5 cursor-pointer border-l-2 transition-colors ${y?"bg-accent/10 border-l-accent":h.needsAttention?"bg-warning/5 border-l-warning hover:bg-warning/10":"border-l-transparent hover:bg-border/20"}`,onClick:()=>r(h.id),role:"button",tabIndex:0,onKeyDown:b=>{(b.key==="Enter"||b.key===" ")&&r(h.id)},children:[f.jsx("button",{onClick:b=>{b.stopPropagation(),s(h.id)},className:"absolute top-1.5 right-1.5 p-0.5 rounded hover:bg-border/50 text-text-secondary hover:text-text-primary transition-colors opacity-0 group-hover:opacity-100",style:{opacity:y?1:void 0},title:"Dismiss session",children:f.jsx(Rr,{className:"w-3 h-3"})}),f.jsxs("div",{className:"flex items-start justify-between gap-1.5 mb-1 pr-7",children:[f.jsxs("div",{className:"flex items-center gap-1.5 min-w-0 flex-1",children:[h.needsAttention&&f.jsx(Aa,{className:"w-3.5 h-3.5 text-warning flex-shrink-0 animate-pulse"}),h.hasNewChanges&&f.jsx(Ov,{className:"w-3 h-3 text-accent flex-shrink-0 animate-pulse","aria-label":"New changes",children:f.jsx("title",{children:"New changes since you last looked"})}),m?f.jsx(na,{className:"w-3.5 h-3.5 text-accent flex-shrink-0"}):g?f.jsx(Na,{className:"w-3.5 h-3.5 text-text-secondary flex-shrink-0"}):null,f.jsx("span",{className:"text-text-primary text-xs font-medium truncate",children:h.title||aN(h.projectPath)})]}),f.jsx("div",{className:"flex-shrink-0",children:lN(h)})]}),h.reasoning&&f.jsx("p",{className:"text-text-secondary text-[11px] leading-tight mb-1 line-clamp-2",children:h.reasoning}),f.jsxs("div",{className:"flex items-center gap-2 text-[10px] text-text-secondary",children:[h.branch&&f.jsxs("span",{className:"flex items-center gap-0.5 truncate",children:[f.jsx(Cn,{className:"w-2.5 h-2.5"}),h.branch]}),f.jsxs("span",{className:"flex items-center gap-0.5 ml-auto flex-shrink-0",children:[f.jsx(vv,{className:"w-2.5 h-2.5"}),nN(h.createdAt)]})]}),f.jsxs("div",{className:"flex items-center gap-2 mt-0.5 text-[10px]",children:[f.jsxs("span",{className:"text-text-secondary",children:[h.fileCount," file",h.fileCount!==1?"s":""]}),h.additions>0&&f.jsxs("span",{className:"text-success font-mono",children:["+",h.additions]}),h.deletions>0&&f.jsxs("span",{className:"text-danger font-mono",children:["-",h.deletions]})]})]},h.id)})})})]})}function iN({permission:l,enabled:i,onToggle:r}){const s=l==="denied",o=l==="granted"&&i,d=s?"Notifications blocked by browser":o?"Notifications on":"Enable notifications";return f.jsx("button",{onClick:r,disabled:s,className:`p-1.5 rounded transition-colors cursor-pointer ${s?"text-text-secondary/50 cursor-not-allowed":o?"text-accent hover:text-accent/80":"text-text-secondary hover:text-text-primary"}`,title:d,children:o?f.jsx(mv,{className:"w-4 h-4"}):f.jsx(gv,{className:"w-4 h-4"})})}function sN(){const[l,i]=z.useState(null);return z.useEffect(()=>{const r=new URLSearchParams(window.location.search).get("httpPort");r&&fetch(`http://localhost:${r}/api/feedback?kind=feedback`).then(s=>s.ok?s.json():null).then(s=>{s!=null&&s.url&&i(s.url)}).catch(()=>{})},[]),l?f.jsxs("a",{href:l,target:"_blank",rel:"noopener noreferrer",className:"flex items-center gap-1.5 text-[11px] text-text-secondary hover:text-text-primary transition-colors",title:"Opens a prefilled GitHub issue. Nothing is sent until you submit it.",children:[f.jsx(Nl,{className:"w-3 h-3"}),"Send feedback"]}):null}function uN(){return new URLSearchParams(window.location.search).get("httpPort")}function cN({onSuccess:l}){const[i,r]=z.useState(""),[s,o]=z.useState(!1),[d,h]=z.useState(null),y=z.useCallback(async()=>{const m=uN();if(!(!m||!i.trim())){o(!0),h(null);try{const b=await fetch(`http://localhost:${m}/api/pr/open`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({prUrl:i.trim()})}),x=await b.json();b.ok?(r(""),l==null||l()):h(x.error??"Failed to open PR")}catch{h("Could not connect to server")}finally{o(!1)}}},[i,l]),g=z.useCallback(m=>{m.key==="Enter"&&!m.shiftKey&&i.trim()&&(m.preventDefault(),y())},[y,i]);return f.jsxs("div",{className:"space-y-3",children:[f.jsxs("div",{className:"relative",children:[f.jsx("input",{type:"text",value:i,onChange:m=>{r(m.target.value),d&&h(null)},onKeyDown:g,placeholder:"https://github.com/owner/repo/pull/123",className:"w-full bg-background border border-border rounded-md px-3 py-2 pl-9 text-text-primary text-xs placeholder:text-text-secondary/50 focus:outline-none focus:border-accent focus:ring-1 focus:ring-accent/30 transition-colors",disabled:s,autoFocus:!0}),f.jsx(na,{className:"absolute left-3 top-1/2 -translate-y-1/2 w-3.5 h-3.5 text-text-secondary"})]}),f.jsx("button",{onClick:y,disabled:s||!i.trim(),className:"w-full bg-accent/15 text-accent text-xs font-medium rounded-md px-3 py-2 hover:bg-accent/25 disabled:opacity-50 disabled:cursor-not-allowed transition-colors flex items-center justify-center gap-1.5",children:s?f.jsxs(f.Fragment,{children:[f.jsx(lo,{className:"w-3.5 h-3.5 animate-spin"}),"Fetching PR..."]}):f.jsxs(f.Fragment,{children:[f.jsx(wo,{className:"w-3.5 h-3.5"}),"Review PR"]})}),d&&f.jsx("p",{className:"text-danger text-xs",children:d}),f.jsxs("p",{className:"text-text-secondary text-[10px]",children:["Also accepts ",f.jsx("code",{className:"text-accent/70",children:"owner/repo#123"})," format"]})]})}const oN=[{value:"working-copy",label:"Working Copy"},{value:"unstaged",label:"Unstaged"},{value:"staged",label:"Staged"}];function gs(){return new URLSearchParams(window.location.search).get("httpPort")}function fN(l){const[i,r]=z.useState(null),[s,o]=z.useState(!1),d=z.useCallback(async h=>{const y=gs();if(y){o(!0);try{const g=h?`?path=${encodeURIComponent(h)}`:"",m=await fetch(`http://localhost:${y}/api/fs/list${g}`);if(m.ok){const b=await m.json();r(b)}}catch{}finally{o(!1)}}},[]);return z.useEffect(()=>{d(l)},[d,l]),{listing:i,loadingDir:s,fetchDir:d}}function dN({onSuccess:l}){const[i,r]=z.useState(),[s,o]=z.useState(null),[d,h]=z.useState(!1),[y,g]=z.useState(null),{listing:m,loadingDir:b,fetchDir:x}=fN(i);z.useEffect(()=>{const E=gs();E&&fetch(`http://localhost:${E}/api/status`).then(A=>A.json()).then(A=>{const T=A;if(T.cwd&&r(T.cwd),T.defaultDiffRef){const _=T.defaultDiffRef;o(U=>U??_)}}).catch(()=>{})},[]);const S=z.useCallback(async E=>{const A=gs();if(A){h(!0),g(null);try{const T=await fetch(`http://localhost:${A}/api/projects/open`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(s?{projectPath:E,diffRef:s}:{projectPath:E})}),_=await T.json();T.ok?l==null||l():g(_.error??"Failed to open project")}catch{g("Could not connect to server")}finally{h(!1)}}},[s,l]);return f.jsxs("div",{className:"space-y-3",children:[m&&f.jsxs("div",{className:"flex items-center gap-1 text-text-secondary text-[11px] font-mono truncate min-h-[20px]",children:[m.parentPath&&f.jsx("button",{onClick:()=>x(m.parentPath),className:"p-0.5 rounded hover:bg-border/50 hover:text-text-primary transition-colors flex-shrink-0",title:"Go up",children:f.jsx(Eo,{className:"w-3 h-3"})}),f.jsx("span",{className:"truncate",children:m.path}),m.isGitRepo&&f.jsx(Cn,{className:"w-3 h-3 text-success flex-shrink-0 ml-1"})]}),(m==null?void 0:m.isGitRepo)&&f.jsxs("button",{onClick:()=>S(m.path),disabled:d,className:"w-full bg-accent/15 text-accent text-xs font-medium rounded px-3 py-2 hover:bg-accent/25 disabled:opacity-50 disabled:cursor-not-allowed transition-colors flex items-center justify-center gap-1.5",children:[f.jsx(Na,{className:"w-3.5 h-3.5"}),d?"Opening...":`Open ${m.path.split("/").pop()}`]}),f.jsx("div",{className:"border border-border rounded max-h-[280px] overflow-y-auto",children:b?f.jsx("div",{className:"px-3 py-4 text-text-secondary text-xs text-center",children:"Loading..."}):(m==null?void 0:m.dirs.length)===0?f.jsx("div",{className:"px-3 py-4 text-text-secondary text-xs text-center",children:"No subdirectories"}):m==null?void 0:m.dirs.map(E=>f.jsxs("button",{onClick:()=>{g(null),E.isGitRepo,x(E.path)},onDoubleClick:()=>{E.isGitRepo&&S(E.path)},className:"w-full flex items-center gap-2 px-3 py-1.5 text-left hover:bg-border/30 transition-colors group",children:[f.jsx(Cv,{className:`w-3.5 h-3.5 flex-shrink-0 ${E.isGitRepo?"text-accent":"text-text-secondary"}`}),f.jsx("span",{className:"text-text-primary text-xs truncate flex-1",children:E.name}),E.isGitRepo&&f.jsx(Cn,{className:"w-3 h-3 text-success flex-shrink-0"})]},E.path))}),f.jsxs("div",{children:[f.jsx("label",{className:"block text-text-secondary text-xs mb-1",children:"Diff scope"}),f.jsx("select",{value:s??"",disabled:s===null,onChange:E=>o(E.target.value),className:"w-full bg-background border border-border rounded px-3 py-1.5 text-text-primary text-xs focus:outline-none focus:border-accent",children:oN.map(E=>f.jsx("option",{value:E.value,children:E.label},E.value))})]}),y&&f.jsx("p",{className:"text-danger text-xs",children:y})]})}function hN({sessions:l,activeSessionId:i,hasDiffLoaded:r,onSelectSession:s,onCloseSession:o,onSubmit:d,onDismiss:h,notificationPermission:y,notificationsEnabled:g,onToggleNotifications:m}){const[b,x]=z.useState("none");return f.jsxs("div",{className:"h-screen flex bg-background",children:[f.jsxs("div",{className:"w-[260px] flex-shrink-0 flex flex-col",children:[f.jsx(rN,{sessions:l,activeSessionId:i,onSelect:s,onClose:o,onOpenProject:()=>x("open-project"),onReviewPr:()=>x("review-pr")}),f.jsxs("div",{className:"px-3 py-2 border-t border-border border-r border-r-border bg-surface space-y-1.5",children:[m&&y&&f.jsx(iN,{permission:y,enabled:g??!1,onToggle:m}),f.jsx(sN,{})]})]}),f.jsx("div",{className:"flex-1 min-w-0",children:r?f.jsx(Sy,{onSubmit:d,onDismiss:h,isWatchMode:!0,watchSubmitted:!1,hasUnreviewedChanges:!0}):b==="open-project"?f.jsx("div",{className:"flex flex-col items-center justify-center h-full px-8",children:f.jsxs("div",{className:"max-w-sm w-full",children:[f.jsxs("div",{className:"flex items-center gap-2 mb-4",children:[f.jsx(Na,{className:"w-5 h-5 text-accent"}),f.jsx("h2",{className:"text-text-primary text-lg font-semibold",children:"Open Project"})]}),f.jsx("div",{className:"bg-surface border border-border rounded-lg p-5",children:f.jsx(dN,{onSuccess:()=>x("none")})}),f.jsx("button",{onClick:()=>x("none"),className:"mt-3 text-text-secondary text-xs hover:text-text-primary transition-colors",children:"Cancel"})]})}):b==="review-pr"?f.jsx("div",{className:"flex flex-col items-center justify-center h-full px-8",children:f.jsxs("div",{className:"max-w-sm w-full",children:[f.jsxs("div",{className:"flex items-center gap-2 mb-4",children:[f.jsx(na,{className:"w-5 h-5 text-accent"}),f.jsx("h2",{className:"text-text-primary text-lg font-semibold",children:"Review PR"})]}),f.jsx("div",{className:"bg-surface border border-border rounded-lg p-5",children:f.jsx(cN,{onSuccess:()=>x("none")})}),f.jsx("button",{onClick:()=>x("none"),className:"mt-3 text-text-secondary text-xs hover:text-text-primary transition-colors",children:"Cancel"})]})}):f.jsx(gN,{hasAnySessions:l.length>0,onOpenProject:()=>x("open-project"),onReviewPr:()=>x("review-pr")})})]})}function gN({hasAnySessions:l,onOpenProject:i,onReviewPr:r}){return l?f.jsxs("div",{className:"flex flex-col items-center justify-center h-full text-center px-8",children:[f.jsx("div",{className:"w-14 h-14 rounded-full bg-surface border border-border flex items-center justify-center mb-4",children:f.jsx(Tl,{className:"w-7 h-7 text-text-secondary"})}),f.jsx("h2",{className:"text-text-primary text-lg font-semibold mb-2",children:"Select a session"}),f.jsx("p",{className:"text-text-secondary text-sm max-w-sm mb-4",children:"Click a session in the sidebar to view its diff, annotations, and submit your review."}),f.jsxs("div",{className:"flex items-center gap-4",children:[f.jsxs("button",{onClick:r,className:"flex items-center gap-1.5 text-accent text-xs font-medium hover:text-accent/80 transition-colors",children:[f.jsx(na,{className:"w-3.5 h-3.5"}),"Review PR"]}),f.jsxs("button",{onClick:i,className:"flex items-center gap-1.5 text-text-secondary text-xs font-medium hover:text-text-primary transition-colors",children:[f.jsx(Na,{className:"w-3.5 h-3.5"}),"Open Project"]})]})]}):f.jsx(mN,{onOpenProject:i,onReviewPr:r})}function mN({onOpenProject:l,onReviewPr:i}){const[r,s]=z.useState(null);z.useEffect(()=>{const d=gs();d&&fetch(`http://localhost:${d}/api/status`).then(h=>h.json()).then(h=>{s(h)}).catch(()=>{})},[]);const o=d=>{if(d<60)return`${Math.floor(d)}s`;if(d<3600)return`${Math.floor(d/60)}m ${Math.floor(d%60)}s`;const h=Math.floor(d/3600),y=Math.floor(d%3600/60);return`${h}h ${y}m`};return f.jsx("div",{className:"flex flex-col items-center justify-center h-full px-8",children:f.jsxs("div",{className:"max-w-md w-full",children:[f.jsxs("div",{className:"text-center mb-8",children:[f.jsx("h1",{className:"text-text-primary text-2xl font-bold mb-1",children:"DiffPrism"}),f.jsx("p",{className:"text-text-secondary text-sm",children:"Code review for AI-generated changes"})]}),f.jsxs("div",{className:"flex gap-3 mb-4",children:[f.jsxs("button",{onClick:i,className:"flex-1 flex items-center justify-center gap-2 bg-accent/15 text-accent text-sm font-medium rounded-lg px-4 py-3 hover:bg-accent/25 transition-colors",children:[f.jsx(na,{className:"w-4 h-4"}),"Review PR"]}),f.jsxs("button",{onClick:l,className:"flex-1 flex items-center justify-center gap-2 bg-surface border border-border text-text-primary text-sm font-medium rounded-lg px-4 py-3 hover:bg-border/30 transition-colors",children:[f.jsx(Na,{className:"w-4 h-4"}),"Open Project"]})]}),f.jsxs("div",{className:"bg-surface border border-border rounded-lg p-6",children:[f.jsx("h2",{className:"text-text-primary text-sm font-semibold mb-4",children:"Getting Started"}),f.jsxs("div",{className:"mb-5",children:[f.jsxs("div",{className:"flex items-center gap-2 mb-2",children:[f.jsx(zv,{className:"w-4 h-4 text-text-secondary"}),f.jsx("span",{className:"text-text-secondary text-xs font-medium",children:"From the terminal"})]}),f.jsxs("div",{className:"space-y-1.5 pl-6",children:[f.jsx("code",{className:"block text-accent text-xs",children:"$ diffprism review"}),f.jsx("code",{className:"block text-accent text-xs",children:"$ diffprism review --staged"})]})]}),f.jsxs("div",{className:"mb-5",children:[f.jsxs("div",{className:"flex items-center gap-2 mb-2",children:[f.jsx(Tl,{className:"w-4 h-4 text-text-secondary"}),f.jsx("span",{className:"text-text-secondary text-xs font-medium",children:"From Claude Code"})]}),f.jsxs("p",{className:"text-text-secondary text-xs pl-6",children:["Type ",f.jsx("code",{className:"text-accent",children:"/review"})," or use the"," ",f.jsx("code",{className:"text-accent",children:"open_review"})," MCP tool"]})]}),f.jsxs("div",{children:[f.jsxs("div",{className:"flex items-center gap-2 mb-2",children:[f.jsx(Mv,{className:"w-4 h-4 text-text-secondary"}),f.jsx("span",{className:"text-text-secondary text-xs font-medium",children:"First time?"})]}),f.jsxs("div",{className:"pl-6",children:[f.jsx("code",{className:"block text-accent text-xs mb-1",children:"$ diffprism setup"}),f.jsx("p",{className:"text-text-secondary text-xs",children:"Configures Claude Code integration in one command"})]})]})]}),r&&f.jsxs("p",{className:"text-text-secondary text-xs text-center mt-4",children:["Server running · PID ",r.pid," · up ",o(r.uptime)]})]})})}function pN(){const{permission:l,enabled:i,toggle:r,notifyNewSession:s,notifySessionUpdated:o,notifyDiffUpdated:d,notifyAnnotationAdded:h}=uv({onSessionSelect:P}),{sendResult:y,selectSession:g,closeSession:m,connectionStatus:b}=iv({onSessionAdded:s,onSessionUpdated:o,onDiffUpdated:d,onAnnotationAdded:h}),{diffSet:x,metadata:S,theme:E,isWatchMode:A,watchSubmitted:T,hasUnreviewedChanges:_,setWatchSubmitted:U,isServerMode:q,sessions:O,activeSessionId:F,selectSession:Z,removeSession:X,clearReview:R}=Xe(),[M,K]=z.useState(!1),[ie,re]=z.useState(3);cv(),z.useEffect(()=>{const B=document.documentElement;E==="dark"?B.classList.add("dark"):B.classList.remove("dark")},[E]);function de(B){y(B),q?R():A?U(!0):K(!0)}function ne(){y({decision:"dismissed",comments:[]}),q&&F?(X(F),m(F)):A?U(!0):K(!0)}function P(B){Z(B),g(B)}function J(B){X(B),m(B)}const k=z.useCallback(()=>{window.close()},[]);return z.useEffect(()=>{if(!M||A||q)return;if(ie<=0){k();return}const B=setTimeout(()=>{re(le=>le-1)},1e3);return()=>clearTimeout(B)},[M,ie,k,A,q]),M?f.jsx("div",{className:"h-screen flex items-center justify-center bg-background",children:f.jsxs("div",{className:"text-center",children:[f.jsx("div",{className:"w-16 h-16 rounded-full bg-success/15 border border-success/30 flex items-center justify-center mx-auto mb-4",children:f.jsx("svg",{className:"w-8 h-8 text-success",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:f.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M5 13l4 4L19 7"})})}),f.jsx("h1",{className:"text-text-primary text-xl font-semibold mb-2",children:"Review Submitted"}),f.jsxs("p",{className:"text-text-secondary text-sm",children:["Closing in ",ie,"s..."]})]})}):q?b==="disconnected"?f.jsx("div",{className:"h-screen flex items-center justify-center bg-background",children:f.jsxs("div",{className:"text-center",children:[f.jsx("div",{className:"w-12 h-12 rounded-full bg-danger/15 border border-danger/30 flex items-center justify-center mx-auto mb-4",children:f.jsx("svg",{className:"w-6 h-6 text-danger",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:f.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M6 18L18 6M6 6l12 12"})})}),f.jsx("h1",{className:"text-text-primary text-lg font-semibold mb-2",children:"Connection Lost"}),f.jsx("p",{className:"text-text-secondary text-sm",children:"Unable to connect to the DiffPrism server."})]})}):f.jsx(hN,{sessions:O,activeSessionId:F,hasDiffLoaded:!!x,onSelectSession:P,onCloseSession:J,onSubmit:de,onDismiss:ne,notificationPermission:l,notificationsEnabled:i,onToggleNotifications:r}):x?f.jsx(Sy,{onSubmit:de,onDismiss:ne,isWatchMode:A||q,watchSubmitted:T,hasUnreviewedChanges:_}):f.jsx("div",{className:"h-screen flex items-center justify-center bg-background",children:f.jsx("div",{className:"text-center",children:b==="disconnected"?f.jsxs(f.Fragment,{children:[f.jsx("div",{className:"w-12 h-12 rounded-full bg-danger/15 border border-danger/30 flex items-center justify-center mx-auto mb-4",children:f.jsx("svg",{className:"w-6 h-6 text-danger",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:f.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M6 18L18 6M6 6l12 12"})})}),f.jsx("h1",{className:"text-text-primary text-lg font-semibold mb-2",children:"Connection Lost"}),f.jsx("p",{className:"text-text-secondary text-sm",children:"Unable to connect to the DiffPrism server. Please check the terminal and try again."})]}):f.jsxs(f.Fragment,{children:[f.jsx("div",{className:"mb-4 flex justify-center",children:f.jsx("div",{className:"w-8 h-8 border-2 border-accent/30 border-t-accent rounded-full animate-spin"})}),f.jsx("h1",{className:"text-text-primary text-lg font-semibold mb-2",children:b==="connecting"?"Connecting...":"Waiting for review data..."}),f.jsx("p",{className:"text-text-secondary text-sm",children:(S==null?void 0:S.title)??"Loading review..."})]})})})}ev.createRoot(document.getElementById("root")).render(f.jsx(pN,{}));
|