@graphql-yoga/graphiql 4.4.3-alpha-20251105011750-fc432b0f78f40d6393b986a35401bb05479f2848 → 4.4.3-alpha-20251105130246-ff2ac55455a2229573acc2a4a04d73f1f415844b
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/graphiql.css +1 -6
- package/dist/yoga-graphiql.es.js +0 -141
- package/dist/yoga-graphiql.umd.js +8 -130
- package/package.json +2 -2
|
@@ -1,44 +1,4 @@
|
|
|
1
|
-
(function(so,Pv){typeof exports=="object"&&typeof module<"u"?Pv(exports):typeof define=="function"&&define.amd?define(["exports"],Pv):(so=typeof globalThis<"u"?globalThis:so||self,Pv(so.YogaGraphiQL={}))})(this,(function(so){"use strict";var K_,Nc,Y_,fr,Z_,Um,HS,ig,$S,US,zS,jS,qS,Uk,Iy,GS,Gk,KS,YS,ib,XS,Ry,QS,ZS,JS,nb,Oy,Kk,Fy,By,Vy,Xk,ex,tx,Wy,Hy,$y,ix,nx,sx,rx,ox,sb,ax,lx,ux,cx,dx,hx,fx,px,Zk,Jk,Km,zy,gx,mx,ng,jy,_x,bx,qy,yx,vx,Sx,eL,tL,Gy,Yy,xx,Dx,Xy,Ex,Tx,Dh,kx,Lx,Ax,Nx,Ix,rL,Qy,oL,Px,Mx,aL,lL,Zy,Rx,Ox,Fx,Bx,sg,Xm,rg;function Pv(i,e){for(var t=0;t<e.length;t++){const n=e[t];if(typeof n!="string"&&!Array.isArray(n)){for(const s in n)if(s!=="default"&&!(s in i)){const r=Object.getOwnPropertyDescriptor(n,s);r&&Object.defineProperty(i,s,r.get?r:{enumerable:!0,get:()=>n[s]})}}}return Object.freeze(Object.defineProperty(i,Symbol.toStringTag,{value:"Module"}))}var Ehe=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function u0(i){return i&&i.__esModule&&Object.prototype.hasOwnProperty.call(i,"default")?i.default:i}function xWe(i){if(Object.prototype.hasOwnProperty.call(i,"__esModule"))return i;var e=i.default;if(typeof e=="function"){var t=function n(){var s=!1;try{s=this instanceof n}catch{}return s?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};t.prototype=e.prototype}else t={};return Object.defineProperty(t,"__esModule",{value:!0}),Object.keys(i).forEach(function(n){var s=Object.getOwnPropertyDescriptor(i,n);Object.defineProperty(t,n,s.get?s:{enumerable:!0,get:function(){return i[n]}})}),t}var BU={exports:{}},UL={};/**
|
|
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 The;function DWe(){if(The)return UL;The=1;var i=Symbol.for("react.transitional.element"),e=Symbol.for("react.fragment");function t(n,s,r){var o=null;if(r!==void 0&&(o=""+r),s.key!==void 0&&(o=""+s.key),"key"in s){r={};for(var a in s)a!=="key"&&(r[a]=s[a])}else r=s;return s=r.ref,{$$typeof:i,type:n,key:o,ref:s!==void 0?s:null,props:r}}return UL.Fragment=e,UL.jsx=t,UL.jsxs=t,UL}var khe;function EWe(){return khe||(khe=1,BU.exports=DWe()),BU.exports}var H=EWe(),VU={exports:{}},Rn={};/**
|
|
10
|
-
* @license React
|
|
11
|
-
* react.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 Lhe;function TWe(){if(Lhe)return Rn;Lhe=1;var i=Symbol.for("react.transitional.element"),e=Symbol.for("react.portal"),t=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),r=Symbol.for("react.consumer"),o=Symbol.for("react.context"),a=Symbol.for("react.forward_ref"),l=Symbol.for("react.suspense"),u=Symbol.for("react.memo"),c=Symbol.for("react.lazy"),d=Symbol.for("react.activity"),h=Symbol.iterator;function f(le){return le===null||typeof le!="object"?null:(le=h&&le[h]||le["@@iterator"],typeof le=="function"?le:null)}var g={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},b=Object.assign,y={};function S(le,J,Ee){this.props=le,this.context=J,this.refs=y,this.updater=Ee||g}S.prototype.isReactComponent={},S.prototype.setState=function(le,J){if(typeof le!="object"&&typeof le!="function"&&le!=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,le,J,"setState")},S.prototype.forceUpdate=function(le){this.updater.enqueueForceUpdate(this,le,"forceUpdate")};function x(){}x.prototype=S.prototype;function E(le,J,Ee){this.props=le,this.context=J,this.refs=y,this.updater=Ee||g}var k=E.prototype=new x;k.constructor=E,b(k,S.prototype),k.isPureReactComponent=!0;var A=Array.isArray;function I(){}var M={H:null,A:null,T:null,S:null},B=Object.prototype.hasOwnProperty;function F(le,J,Ee){var we=Ee.ref;return{$$typeof:i,type:le,key:J,ref:we!==void 0?we:null,props:Ee}}function G(le,J){return F(le.type,J,le.props)}function q(le){return typeof le=="object"&&le!==null&&le.$$typeof===i}function ee(le){var J={"=":"=0",":":"=2"};return"$"+le.replace(/[=:]/g,function(Ee){return J[Ee]})}var Z=/\/+/g;function K(le,J){return typeof le=="object"&&le!==null&&le.key!=null?ee(""+le.key):J.toString(36)}function oe(le){switch(le.status){case"fulfilled":return le.value;case"rejected":throw le.reason;default:switch(typeof le.status=="string"?le.then(I,I):(le.status="pending",le.then(function(J){le.status==="pending"&&(le.status="fulfilled",le.value=J)},function(J){le.status==="pending"&&(le.status="rejected",le.reason=J)})),le.status){case"fulfilled":return le.value;case"rejected":throw le.reason}}throw le}function Y(le,J,Ee,we,Ae){var Ue=typeof le;(Ue==="undefined"||Ue==="boolean")&&(le=null);var ze=!1;if(le===null)ze=!0;else switch(Ue){case"bigint":case"string":case"number":ze=!0;break;case"object":switch(le.$$typeof){case i:case e:ze=!0;break;case c:return ze=le._init,Y(ze(le._payload),J,Ee,we,Ae)}}if(ze)return Ae=Ae(le),ze=we===""?"."+K(le,0):we,A(Ae)?(Ee="",ze!=null&&(Ee=ze.replace(Z,"$&/")+"/"),Y(Ae,J,Ee,"",function($t){return $t})):Ae!=null&&(q(Ae)&&(Ae=G(Ae,Ee+(Ae.key==null||le&&le.key===Ae.key?"":(""+Ae.key).replace(Z,"$&/")+"/")+ze)),J.push(Ae)),1;ze=0;var $e=we===""?".":we+":";if(A(le))for(var Dt=0;Dt<le.length;Dt++)we=le[Dt],Ue=$e+K(we,Dt),ze+=Y(we,J,Ee,Ue,Ae);else if(Dt=f(le),typeof Dt=="function")for(le=Dt.call(le),Dt=0;!(we=le.next()).done;)we=we.value,Ue=$e+K(we,Dt++),ze+=Y(we,J,Ee,Ue,Ae);else if(Ue==="object"){if(typeof le.then=="function")return Y(oe(le),J,Ee,we,Ae);throw J=String(le),Error("Objects are not valid as a React child (found: "+(J==="[object Object]"?"object with keys {"+Object.keys(le).join(", ")+"}":J)+"). If you meant to render a collection of children, use an array instead.")}return ze}function de(le,J,Ee){if(le==null)return le;var we=[],Ae=0;return Y(le,we,"","",function(Ue){return J.call(Ee,Ue,Ae++)}),we}function ae(le){if(le._status===-1){var J=le._result;J=J(),J.then(function(Ee){(le._status===0||le._status===-1)&&(le._status=1,le._result=Ee)},function(Ee){(le._status===0||le._status===-1)&&(le._status=2,le._result=Ee)}),le._status===-1&&(le._status=0,le._result=J)}if(le._status===1)return le._result.default;throw le._result}var he=typeof reportError=="function"?reportError:function(le){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var J=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof le=="object"&&le!==null&&typeof le.message=="string"?String(le.message):String(le),error:le});if(!window.dispatchEvent(J))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",le);return}console.error(le)},Ce={map:de,forEach:function(le,J,Ee){de(le,function(){J.apply(this,arguments)},Ee)},count:function(le){var J=0;return de(le,function(){J++}),J},toArray:function(le){return de(le,function(J){return J})||[]},only:function(le){if(!q(le))throw Error("React.Children.only expected to receive a single React element child.");return le}};return Rn.Activity=d,Rn.Children=Ce,Rn.Component=S,Rn.Fragment=t,Rn.Profiler=s,Rn.PureComponent=E,Rn.StrictMode=n,Rn.Suspense=l,Rn.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=M,Rn.__COMPILER_RUNTIME={__proto__:null,c:function(le){return M.H.useMemoCache(le)}},Rn.cache=function(le){return function(){return le.apply(null,arguments)}},Rn.cacheSignal=function(){return null},Rn.cloneElement=function(le,J,Ee){if(le==null)throw Error("The argument must be a React element, but you passed "+le+".");var we=b({},le.props),Ae=le.key;if(J!=null)for(Ue in J.key!==void 0&&(Ae=""+J.key),J)!B.call(J,Ue)||Ue==="key"||Ue==="__self"||Ue==="__source"||Ue==="ref"&&J.ref===void 0||(we[Ue]=J[Ue]);var Ue=arguments.length-2;if(Ue===1)we.children=Ee;else if(1<Ue){for(var ze=Array(Ue),$e=0;$e<Ue;$e++)ze[$e]=arguments[$e+2];we.children=ze}return F(le.type,Ae,we)},Rn.createContext=function(le){return le={$$typeof:o,_currentValue:le,_currentValue2:le,_threadCount:0,Provider:null,Consumer:null},le.Provider=le,le.Consumer={$$typeof:r,_context:le},le},Rn.createElement=function(le,J,Ee){var we,Ae={},Ue=null;if(J!=null)for(we in J.key!==void 0&&(Ue=""+J.key),J)B.call(J,we)&&we!=="key"&&we!=="__self"&&we!=="__source"&&(Ae[we]=J[we]);var ze=arguments.length-2;if(ze===1)Ae.children=Ee;else if(1<ze){for(var $e=Array(ze),Dt=0;Dt<ze;Dt++)$e[Dt]=arguments[Dt+2];Ae.children=$e}if(le&&le.defaultProps)for(we in ze=le.defaultProps,ze)Ae[we]===void 0&&(Ae[we]=ze[we]);return F(le,Ue,Ae)},Rn.createRef=function(){return{current:null}},Rn.forwardRef=function(le){return{$$typeof:a,render:le}},Rn.isValidElement=q,Rn.lazy=function(le){return{$$typeof:c,_payload:{_status:-1,_result:le},_init:ae}},Rn.memo=function(le,J){return{$$typeof:u,type:le,compare:J===void 0?null:J}},Rn.startTransition=function(le){var J=M.T,Ee={};M.T=Ee;try{var we=le(),Ae=M.S;Ae!==null&&Ae(Ee,we),typeof we=="object"&&we!==null&&typeof we.then=="function"&&we.then(I,he)}catch(Ue){he(Ue)}finally{J!==null&&Ee.types!==null&&(J.types=Ee.types),M.T=J}},Rn.unstable_useCacheRefresh=function(){return M.H.useCacheRefresh()},Rn.use=function(le){return M.H.use(le)},Rn.useActionState=function(le,J,Ee){return M.H.useActionState(le,J,Ee)},Rn.useCallback=function(le,J){return M.H.useCallback(le,J)},Rn.useContext=function(le){return M.H.useContext(le)},Rn.useDebugValue=function(){},Rn.useDeferredValue=function(le,J){return M.H.useDeferredValue(le,J)},Rn.useEffect=function(le,J){return M.H.useEffect(le,J)},Rn.useEffectEvent=function(le){return M.H.useEffectEvent(le)},Rn.useId=function(){return M.H.useId()},Rn.useImperativeHandle=function(le,J,Ee){return M.H.useImperativeHandle(le,J,Ee)},Rn.useInsertionEffect=function(le,J){return M.H.useInsertionEffect(le,J)},Rn.useLayoutEffect=function(le,J){return M.H.useLayoutEffect(le,J)},Rn.useMemo=function(le,J){return M.H.useMemo(le,J)},Rn.useOptimistic=function(le,J){return M.H.useOptimistic(le,J)},Rn.useReducer=function(le,J,Ee){return M.H.useReducer(le,J,Ee)},Rn.useRef=function(le){return M.H.useRef(le)},Rn.useState=function(le){return M.H.useState(le)},Rn.useSyncExternalStore=function(le,J,Ee){return M.H.useSyncExternalStore(le,J,Ee)},Rn.useTransition=function(){return M.H.useTransition()},Rn.version="19.2.0",Rn}var Ahe;function fD(){return Ahe||(Ahe=1,VU.exports=TWe()),VU.exports}var O=fD();const xn=u0(O),WU=Pv({__proto__:null,default:xn},[O]);var HU={exports:{}},zL={},$U={exports:{}},UU={};/**
|
|
18
|
-
* @license React
|
|
19
|
-
* scheduler.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 Nhe;function kWe(){return Nhe||(Nhe=1,(function(i){function e(Y,de){var ae=Y.length;Y.push(de);e:for(;0<ae;){var he=ae-1>>>1,Ce=Y[he];if(0<s(Ce,de))Y[he]=de,Y[ae]=Ce,ae=he;else break e}}function t(Y){return Y.length===0?null:Y[0]}function n(Y){if(Y.length===0)return null;var de=Y[0],ae=Y.pop();if(ae!==de){Y[0]=ae;e:for(var he=0,Ce=Y.length,le=Ce>>>1;he<le;){var J=2*(he+1)-1,Ee=Y[J],we=J+1,Ae=Y[we];if(0>s(Ee,ae))we<Ce&&0>s(Ae,Ee)?(Y[he]=Ae,Y[we]=ae,he=we):(Y[he]=Ee,Y[J]=ae,he=J);else if(we<Ce&&0>s(Ae,ae))Y[he]=Ae,Y[we]=ae,he=we;else break e}}return de}function s(Y,de){var ae=Y.sortIndex-de.sortIndex;return ae!==0?ae:Y.id-de.id}if(i.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var r=performance;i.unstable_now=function(){return r.now()}}else{var o=Date,a=o.now();i.unstable_now=function(){return o.now()-a}}var l=[],u=[],c=1,d=null,h=3,f=!1,g=!1,b=!1,y=!1,S=typeof setTimeout=="function"?setTimeout:null,x=typeof clearTimeout=="function"?clearTimeout:null,E=typeof setImmediate<"u"?setImmediate:null;function k(Y){for(var de=t(u);de!==null;){if(de.callback===null)n(u);else if(de.startTime<=Y)n(u),de.sortIndex=de.expirationTime,e(l,de);else break;de=t(u)}}function A(Y){if(b=!1,k(Y),!g)if(t(l)!==null)g=!0,I||(I=!0,ee());else{var de=t(u);de!==null&&oe(A,de.startTime-Y)}}var I=!1,M=-1,B=5,F=-1;function G(){return y?!0:!(i.unstable_now()-F<B)}function q(){if(y=!1,I){var Y=i.unstable_now();F=Y;var de=!0;try{e:{g=!1,b&&(b=!1,x(M),M=-1),f=!0;var ae=h;try{t:{for(k(Y),d=t(l);d!==null&&!(d.expirationTime>Y&&G());){var he=d.callback;if(typeof he=="function"){d.callback=null,h=d.priorityLevel;var Ce=he(d.expirationTime<=Y);if(Y=i.unstable_now(),typeof Ce=="function"){d.callback=Ce,k(Y),de=!0;break t}d===t(l)&&n(l),k(Y)}else n(l);d=t(l)}if(d!==null)de=!0;else{var le=t(u);le!==null&&oe(A,le.startTime-Y),de=!1}}break e}finally{d=null,h=ae,f=!1}de=void 0}}finally{de?ee():I=!1}}}var ee;if(typeof E=="function")ee=function(){E(q)};else if(typeof MessageChannel<"u"){var Z=new MessageChannel,K=Z.port2;Z.port1.onmessage=q,ee=function(){K.postMessage(null)}}else ee=function(){S(q,0)};function oe(Y,de){M=S(function(){Y(i.unstable_now())},de)}i.unstable_IdlePriority=5,i.unstable_ImmediatePriority=1,i.unstable_LowPriority=4,i.unstable_NormalPriority=3,i.unstable_Profiling=null,i.unstable_UserBlockingPriority=2,i.unstable_cancelCallback=function(Y){Y.callback=null},i.unstable_forceFrameRate=function(Y){0>Y||125<Y?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):B=0<Y?Math.floor(1e3/Y):5},i.unstable_getCurrentPriorityLevel=function(){return h},i.unstable_next=function(Y){switch(h){case 1:case 2:case 3:var de=3;break;default:de=h}var ae=h;h=de;try{return Y()}finally{h=ae}},i.unstable_requestPaint=function(){y=!0},i.unstable_runWithPriority=function(Y,de){switch(Y){case 1:case 2:case 3:case 4:case 5:break;default:Y=3}var ae=h;h=Y;try{return de()}finally{h=ae}},i.unstable_scheduleCallback=function(Y,de,ae){var he=i.unstable_now();switch(typeof ae=="object"&&ae!==null?(ae=ae.delay,ae=typeof ae=="number"&&0<ae?he+ae:he):ae=he,Y){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=ae+Ce,Y={id:c++,callback:de,priorityLevel:Y,startTime:ae,expirationTime:Ce,sortIndex:-1},ae>he?(Y.sortIndex=ae,e(u,Y),t(l)===null&&Y===t(u)&&(b?(x(M),M=-1):b=!0,oe(A,ae-he))):(Y.sortIndex=Ce,e(l,Y),g||f||(g=!0,I||(I=!0,ee()))),Y},i.unstable_shouldYield=G,i.unstable_wrapCallback=function(Y){var de=h;return function(){var ae=h;h=de;try{return Y.apply(this,arguments)}finally{h=ae}}}})(UU)),UU}var Ihe;function LWe(){return Ihe||(Ihe=1,$U.exports=kWe()),$U.exports}var zU={exports:{}},xu={};/**
|
|
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 Phe;function AWe(){if(Phe)return xu;Phe=1;var i=fD();function e(l){var u="https://react.dev/errors/"+l;if(1<arguments.length){u+="?args[]="+encodeURIComponent(arguments[1]);for(var c=2;c<arguments.length;c++)u+="&args[]="+encodeURIComponent(arguments[c])}return"Minified React error #"+l+"; visit "+u+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function t(){}var n={d:{f:t,r:function(){throw Error(e(522))},D:t,C:t,L:t,m:t,X:t,S:t,M:t},p:0,findDOMNode:null},s=Symbol.for("react.portal");function r(l,u,c){var d=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:s,key:d==null?null:""+d,children:l,containerInfo:u,implementation:c}}var o=i.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function a(l,u){if(l==="font")return"";if(typeof u=="string")return u==="use-credentials"?u:""}return xu.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=n,xu.createPortal=function(l,u){var c=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!u||u.nodeType!==1&&u.nodeType!==9&&u.nodeType!==11)throw Error(e(299));return r(l,u,null,c)},xu.flushSync=function(l){var u=o.T,c=n.p;try{if(o.T=null,n.p=2,l)return l()}finally{o.T=u,n.p=c,n.d.f()}},xu.preconnect=function(l,u){typeof l=="string"&&(u?(u=u.crossOrigin,u=typeof u=="string"?u==="use-credentials"?u:"":void 0):u=null,n.d.C(l,u))},xu.prefetchDNS=function(l){typeof l=="string"&&n.d.D(l)},xu.preinit=function(l,u){if(typeof l=="string"&&u&&typeof u.as=="string"){var c=u.as,d=a(c,u.crossOrigin),h=typeof u.integrity=="string"?u.integrity:void 0,f=typeof u.fetchPriority=="string"?u.fetchPriority:void 0;c==="style"?n.d.S(l,typeof u.precedence=="string"?u.precedence:void 0,{crossOrigin:d,integrity:h,fetchPriority:f}):c==="script"&&n.d.X(l,{crossOrigin:d,integrity:h,fetchPriority:f,nonce:typeof u.nonce=="string"?u.nonce:void 0})}},xu.preinitModule=function(l,u){if(typeof l=="string")if(typeof u=="object"&&u!==null){if(u.as==null||u.as==="script"){var c=a(u.as,u.crossOrigin);n.d.M(l,{crossOrigin:c,integrity:typeof u.integrity=="string"?u.integrity:void 0,nonce:typeof u.nonce=="string"?u.nonce:void 0})}}else u==null&&n.d.M(l)},xu.preload=function(l,u){if(typeof l=="string"&&typeof u=="object"&&u!==null&&typeof u.as=="string"){var c=u.as,d=a(c,u.crossOrigin);n.d.L(l,c,{crossOrigin:d,integrity:typeof u.integrity=="string"?u.integrity:void 0,nonce:typeof u.nonce=="string"?u.nonce:void 0,type:typeof u.type=="string"?u.type:void 0,fetchPriority:typeof u.fetchPriority=="string"?u.fetchPriority:void 0,referrerPolicy:typeof u.referrerPolicy=="string"?u.referrerPolicy:void 0,imageSrcSet:typeof u.imageSrcSet=="string"?u.imageSrcSet:void 0,imageSizes:typeof u.imageSizes=="string"?u.imageSizes:void 0,media:typeof u.media=="string"?u.media:void 0})}},xu.preloadModule=function(l,u){if(typeof l=="string")if(u){var c=a(u.as,u.crossOrigin);n.d.m(l,{as:typeof u.as=="string"&&u.as!=="script"?u.as:void 0,crossOrigin:c,integrity:typeof u.integrity=="string"?u.integrity:void 0})}else n.d.m(l)},xu.requestFormReset=function(l){n.d.r(l)},xu.unstable_batchedUpdates=function(l,u){return l(u)},xu.useFormState=function(l,u,c){return o.H.useFormState(l,u,c)},xu.useFormStatus=function(){return o.H.useHostTransitionStatus()},xu.version="19.2.0",xu}var Mhe;function Rhe(){if(Mhe)return zU.exports;Mhe=1;function i(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(i)}catch(e){console.error(e)}}return i(),zU.exports=AWe(),zU.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 Ohe;function NWe(){if(Ohe)return zL;Ohe=1;var i=LWe(),e=fD(),t=Rhe();function n(p){var m="https://react.dev/errors/"+p;if(1<arguments.length){m+="?args[]="+encodeURIComponent(arguments[1]);for(var v=2;v<arguments.length;v++)m+="&args[]="+encodeURIComponent(arguments[v])}return"Minified React error #"+p+"; visit "+m+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function s(p){return!(!p||p.nodeType!==1&&p.nodeType!==9&&p.nodeType!==11)}function r(p){var m=p,v=p;if(p.alternate)for(;m.return;)m=m.return;else{p=m;do m=p,(m.flags&4098)!==0&&(v=m.return),p=m.return;while(p)}return m.tag===3?v:null}function o(p){if(p.tag===13){var m=p.memoizedState;if(m===null&&(p=p.alternate,p!==null&&(m=p.memoizedState)),m!==null)return m.dehydrated}return null}function a(p){if(p.tag===31){var m=p.memoizedState;if(m===null&&(p=p.alternate,p!==null&&(m=p.memoizedState)),m!==null)return m.dehydrated}return null}function l(p){if(r(p)!==p)throw Error(n(188))}function u(p){var m=p.alternate;if(!m){if(m=r(p),m===null)throw Error(n(188));return m!==p?null:p}for(var v=p,T=m;;){var N=v.return;if(N===null)break;var P=N.alternate;if(P===null){if(T=N.return,T!==null){v=T;continue}break}if(N.child===P.child){for(P=N.child;P;){if(P===v)return l(N),p;if(P===T)return l(N),m;P=P.sibling}throw Error(n(188))}if(v.return!==T.return)v=N,T=P;else{for(var j=!1,ce=N.child;ce;){if(ce===v){j=!0,v=N,T=P;break}if(ce===T){j=!0,T=N,v=P;break}ce=ce.sibling}if(!j){for(ce=P.child;ce;){if(ce===v){j=!0,v=P,T=N;break}if(ce===T){j=!0,T=P,v=N;break}ce=ce.sibling}if(!j)throw Error(n(189))}}if(v.alternate!==T)throw Error(n(190))}if(v.tag!==3)throw Error(n(188));return v.stateNode.current===v?p:m}function c(p){var m=p.tag;if(m===5||m===26||m===27||m===6)return p;for(p=p.child;p!==null;){if(m=c(p),m!==null)return m;p=p.sibling}return null}var d=Object.assign,h=Symbol.for("react.element"),f=Symbol.for("react.transitional.element"),g=Symbol.for("react.portal"),b=Symbol.for("react.fragment"),y=Symbol.for("react.strict_mode"),S=Symbol.for("react.profiler"),x=Symbol.for("react.consumer"),E=Symbol.for("react.context"),k=Symbol.for("react.forward_ref"),A=Symbol.for("react.suspense"),I=Symbol.for("react.suspense_list"),M=Symbol.for("react.memo"),B=Symbol.for("react.lazy"),F=Symbol.for("react.activity"),G=Symbol.for("react.memo_cache_sentinel"),q=Symbol.iterator;function ee(p){return p===null||typeof p!="object"?null:(p=q&&p[q]||p["@@iterator"],typeof p=="function"?p:null)}var Z=Symbol.for("react.client.reference");function K(p){if(p==null)return null;if(typeof p=="function")return p.$$typeof===Z?null:p.displayName||p.name||null;if(typeof p=="string")return p;switch(p){case b:return"Fragment";case S:return"Profiler";case y:return"StrictMode";case A:return"Suspense";case I:return"SuspenseList";case F:return"Activity"}if(typeof p=="object")switch(p.$$typeof){case g:return"Portal";case E:return p.displayName||"Context";case x:return(p._context.displayName||"Context")+".Consumer";case k:var m=p.render;return p=p.displayName,p||(p=m.displayName||m.name||"",p=p!==""?"ForwardRef("+p+")":"ForwardRef"),p;case M:return m=p.displayName||null,m!==null?m:K(p.type)||"Memo";case B:m=p._payload,p=p._init;try{return K(p(m))}catch{}}return null}var oe=Array.isArray,Y=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,de=t.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ae={pending:!1,data:null,method:null,action:null},he=[],Ce=-1;function le(p){return{current:p}}function J(p){0>Ce||(p.current=he[Ce],he[Ce]=null,Ce--)}function Ee(p,m){Ce++,he[Ce]=p.current,p.current=m}var we=le(null),Ae=le(null),Ue=le(null),ze=le(null);function $e(p,m){switch(Ee(Ue,m),Ee(Ae,p),Ee(we,null),m.nodeType){case 9:case 11:p=(p=m.documentElement)&&(p=p.namespaceURI)?VVe(p):0;break;default:if(p=m.tagName,m=m.namespaceURI)m=VVe(m),p=WVe(m,p);else switch(p){case"svg":p=1;break;case"math":p=2;break;default:p=0}}J(we),Ee(we,p)}function Dt(){J(we),J(Ae),J(Ue)}function $t(p){p.memoizedState!==null&&Ee(ze,p);var m=we.current,v=WVe(m,p.type);m!==v&&(Ee(Ae,p),Ee(we,v))}function ii(p){Ae.current===p&&(J(we),J(Ae)),ze.current===p&&(J(ze),mF._currentValue=ae)}var di,Oe;function ke(p){if(di===void 0)try{throw Error()}catch(v){var m=v.stack.trim().match(/\n( *(at )?)/);di=m&&m[1]||"",Oe=-1<v.stack.indexOf(`
|
|
1
|
+
(function(so,Pv){typeof exports=="object"&&typeof module<"u"?Pv(exports):typeof define=="function"&&define.amd?define(["exports"],Pv):(so=typeof globalThis<"u"?globalThis:so||self,Pv(so.YogaGraphiQL={}))})(this,(function(so){"use strict";var K_,Nc,Y_,fr,Z_,Um,HS,ig,$S,US,zS,jS,qS,Uk,Iy,GS,Gk,KS,YS,ib,XS,Ry,QS,ZS,JS,nb,Oy,Kk,Fy,By,Vy,Xk,ex,tx,Wy,Hy,$y,ix,nx,sx,rx,ox,sb,ax,lx,ux,cx,dx,hx,fx,px,Zk,Jk,Km,zy,gx,mx,ng,jy,_x,bx,qy,yx,vx,Sx,eL,tL,Gy,Yy,xx,Dx,Xy,Ex,Tx,Dh,kx,Lx,Ax,Nx,Ix,rL,Qy,oL,Px,Mx,aL,lL,Zy,Rx,Ox,Fx,Bx,sg,Xm,rg;function Pv(i,e){for(var t=0;t<e.length;t++){const n=e[t];if(typeof n!="string"&&!Array.isArray(n)){for(const s in n)if(s!=="default"&&!(s in i)){const r=Object.getOwnPropertyDescriptor(n,s);r&&Object.defineProperty(i,s,r.get?r:{enumerable:!0,get:()=>n[s]})}}}return Object.freeze(Object.defineProperty(i,Symbol.toStringTag,{value:"Module"}))}var Ehe=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function u0(i){return i&&i.__esModule&&Object.prototype.hasOwnProperty.call(i,"default")?i.default:i}function xWe(i){if(Object.prototype.hasOwnProperty.call(i,"__esModule"))return i;var e=i.default;if(typeof e=="function"){var t=function n(){var s=!1;try{s=this instanceof n}catch{}return s?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};t.prototype=e.prototype}else t={};return Object.defineProperty(t,"__esModule",{value:!0}),Object.keys(i).forEach(function(n){var s=Object.getOwnPropertyDescriptor(i,n);Object.defineProperty(t,n,s.get?s:{enumerable:!0,get:function(){return i[n]}})}),t}var BU={exports:{}},UL={};var The;function DWe(){if(The)return UL;The=1;var i=Symbol.for("react.transitional.element"),e=Symbol.for("react.fragment");function t(n,s,r){var o=null;if(r!==void 0&&(o=""+r),s.key!==void 0&&(o=""+s.key),"key"in s){r={};for(var a in s)a!=="key"&&(r[a]=s[a])}else r=s;return s=r.ref,{$$typeof:i,type:n,key:o,ref:s!==void 0?s:null,props:r}}return UL.Fragment=e,UL.jsx=t,UL.jsxs=t,UL}var khe;function EWe(){return khe||(khe=1,BU.exports=DWe()),BU.exports}var H=EWe(),VU={exports:{}},Rn={};var Lhe;function TWe(){if(Lhe)return Rn;Lhe=1;var i=Symbol.for("react.transitional.element"),e=Symbol.for("react.portal"),t=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),r=Symbol.for("react.consumer"),o=Symbol.for("react.context"),a=Symbol.for("react.forward_ref"),l=Symbol.for("react.suspense"),u=Symbol.for("react.memo"),c=Symbol.for("react.lazy"),d=Symbol.for("react.activity"),h=Symbol.iterator;function f(le){return le===null||typeof le!="object"?null:(le=h&&le[h]||le["@@iterator"],typeof le=="function"?le:null)}var g={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},b=Object.assign,y={};function S(le,J,Ee){this.props=le,this.context=J,this.refs=y,this.updater=Ee||g}S.prototype.isReactComponent={},S.prototype.setState=function(le,J){if(typeof le!="object"&&typeof le!="function"&&le!=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,le,J,"setState")},S.prototype.forceUpdate=function(le){this.updater.enqueueForceUpdate(this,le,"forceUpdate")};function x(){}x.prototype=S.prototype;function E(le,J,Ee){this.props=le,this.context=J,this.refs=y,this.updater=Ee||g}var k=E.prototype=new x;k.constructor=E,b(k,S.prototype),k.isPureReactComponent=!0;var A=Array.isArray;function I(){}var M={H:null,A:null,T:null,S:null},B=Object.prototype.hasOwnProperty;function F(le,J,Ee){var we=Ee.ref;return{$$typeof:i,type:le,key:J,ref:we!==void 0?we:null,props:Ee}}function G(le,J){return F(le.type,J,le.props)}function q(le){return typeof le=="object"&&le!==null&&le.$$typeof===i}function ee(le){var J={"=":"=0",":":"=2"};return"$"+le.replace(/[=:]/g,function(Ee){return J[Ee]})}var Z=/\/+/g;function K(le,J){return typeof le=="object"&&le!==null&&le.key!=null?ee(""+le.key):J.toString(36)}function oe(le){switch(le.status){case"fulfilled":return le.value;case"rejected":throw le.reason;default:switch(typeof le.status=="string"?le.then(I,I):(le.status="pending",le.then(function(J){le.status==="pending"&&(le.status="fulfilled",le.value=J)},function(J){le.status==="pending"&&(le.status="rejected",le.reason=J)})),le.status){case"fulfilled":return le.value;case"rejected":throw le.reason}}throw le}function Y(le,J,Ee,we,Ae){var Ue=typeof le;(Ue==="undefined"||Ue==="boolean")&&(le=null);var ze=!1;if(le===null)ze=!0;else switch(Ue){case"bigint":case"string":case"number":ze=!0;break;case"object":switch(le.$$typeof){case i:case e:ze=!0;break;case c:return ze=le._init,Y(ze(le._payload),J,Ee,we,Ae)}}if(ze)return Ae=Ae(le),ze=we===""?"."+K(le,0):we,A(Ae)?(Ee="",ze!=null&&(Ee=ze.replace(Z,"$&/")+"/"),Y(Ae,J,Ee,"",function($t){return $t})):Ae!=null&&(q(Ae)&&(Ae=G(Ae,Ee+(Ae.key==null||le&&le.key===Ae.key?"":(""+Ae.key).replace(Z,"$&/")+"/")+ze)),J.push(Ae)),1;ze=0;var $e=we===""?".":we+":";if(A(le))for(var Dt=0;Dt<le.length;Dt++)we=le[Dt],Ue=$e+K(we,Dt),ze+=Y(we,J,Ee,Ue,Ae);else if(Dt=f(le),typeof Dt=="function")for(le=Dt.call(le),Dt=0;!(we=le.next()).done;)we=we.value,Ue=$e+K(we,Dt++),ze+=Y(we,J,Ee,Ue,Ae);else if(Ue==="object"){if(typeof le.then=="function")return Y(oe(le),J,Ee,we,Ae);throw J=String(le),Error("Objects are not valid as a React child (found: "+(J==="[object Object]"?"object with keys {"+Object.keys(le).join(", ")+"}":J)+"). If you meant to render a collection of children, use an array instead.")}return ze}function de(le,J,Ee){if(le==null)return le;var we=[],Ae=0;return Y(le,we,"","",function(Ue){return J.call(Ee,Ue,Ae++)}),we}function ae(le){if(le._status===-1){var J=le._result;J=J(),J.then(function(Ee){(le._status===0||le._status===-1)&&(le._status=1,le._result=Ee)},function(Ee){(le._status===0||le._status===-1)&&(le._status=2,le._result=Ee)}),le._status===-1&&(le._status=0,le._result=J)}if(le._status===1)return le._result.default;throw le._result}var he=typeof reportError=="function"?reportError:function(le){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var J=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof le=="object"&&le!==null&&typeof le.message=="string"?String(le.message):String(le),error:le});if(!window.dispatchEvent(J))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",le);return}console.error(le)},Ce={map:de,forEach:function(le,J,Ee){de(le,function(){J.apply(this,arguments)},Ee)},count:function(le){var J=0;return de(le,function(){J++}),J},toArray:function(le){return de(le,function(J){return J})||[]},only:function(le){if(!q(le))throw Error("React.Children.only expected to receive a single React element child.");return le}};return Rn.Activity=d,Rn.Children=Ce,Rn.Component=S,Rn.Fragment=t,Rn.Profiler=s,Rn.PureComponent=E,Rn.StrictMode=n,Rn.Suspense=l,Rn.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=M,Rn.__COMPILER_RUNTIME={__proto__:null,c:function(le){return M.H.useMemoCache(le)}},Rn.cache=function(le){return function(){return le.apply(null,arguments)}},Rn.cacheSignal=function(){return null},Rn.cloneElement=function(le,J,Ee){if(le==null)throw Error("The argument must be a React element, but you passed "+le+".");var we=b({},le.props),Ae=le.key;if(J!=null)for(Ue in J.key!==void 0&&(Ae=""+J.key),J)!B.call(J,Ue)||Ue==="key"||Ue==="__self"||Ue==="__source"||Ue==="ref"&&J.ref===void 0||(we[Ue]=J[Ue]);var Ue=arguments.length-2;if(Ue===1)we.children=Ee;else if(1<Ue){for(var ze=Array(Ue),$e=0;$e<Ue;$e++)ze[$e]=arguments[$e+2];we.children=ze}return F(le.type,Ae,we)},Rn.createContext=function(le){return le={$$typeof:o,_currentValue:le,_currentValue2:le,_threadCount:0,Provider:null,Consumer:null},le.Provider=le,le.Consumer={$$typeof:r,_context:le},le},Rn.createElement=function(le,J,Ee){var we,Ae={},Ue=null;if(J!=null)for(we in J.key!==void 0&&(Ue=""+J.key),J)B.call(J,we)&&we!=="key"&&we!=="__self"&&we!=="__source"&&(Ae[we]=J[we]);var ze=arguments.length-2;if(ze===1)Ae.children=Ee;else if(1<ze){for(var $e=Array(ze),Dt=0;Dt<ze;Dt++)$e[Dt]=arguments[Dt+2];Ae.children=$e}if(le&&le.defaultProps)for(we in ze=le.defaultProps,ze)Ae[we]===void 0&&(Ae[we]=ze[we]);return F(le,Ue,Ae)},Rn.createRef=function(){return{current:null}},Rn.forwardRef=function(le){return{$$typeof:a,render:le}},Rn.isValidElement=q,Rn.lazy=function(le){return{$$typeof:c,_payload:{_status:-1,_result:le},_init:ae}},Rn.memo=function(le,J){return{$$typeof:u,type:le,compare:J===void 0?null:J}},Rn.startTransition=function(le){var J=M.T,Ee={};M.T=Ee;try{var we=le(),Ae=M.S;Ae!==null&&Ae(Ee,we),typeof we=="object"&&we!==null&&typeof we.then=="function"&&we.then(I,he)}catch(Ue){he(Ue)}finally{J!==null&&Ee.types!==null&&(J.types=Ee.types),M.T=J}},Rn.unstable_useCacheRefresh=function(){return M.H.useCacheRefresh()},Rn.use=function(le){return M.H.use(le)},Rn.useActionState=function(le,J,Ee){return M.H.useActionState(le,J,Ee)},Rn.useCallback=function(le,J){return M.H.useCallback(le,J)},Rn.useContext=function(le){return M.H.useContext(le)},Rn.useDebugValue=function(){},Rn.useDeferredValue=function(le,J){return M.H.useDeferredValue(le,J)},Rn.useEffect=function(le,J){return M.H.useEffect(le,J)},Rn.useEffectEvent=function(le){return M.H.useEffectEvent(le)},Rn.useId=function(){return M.H.useId()},Rn.useImperativeHandle=function(le,J,Ee){return M.H.useImperativeHandle(le,J,Ee)},Rn.useInsertionEffect=function(le,J){return M.H.useInsertionEffect(le,J)},Rn.useLayoutEffect=function(le,J){return M.H.useLayoutEffect(le,J)},Rn.useMemo=function(le,J){return M.H.useMemo(le,J)},Rn.useOptimistic=function(le,J){return M.H.useOptimistic(le,J)},Rn.useReducer=function(le,J,Ee){return M.H.useReducer(le,J,Ee)},Rn.useRef=function(le){return M.H.useRef(le)},Rn.useState=function(le){return M.H.useState(le)},Rn.useSyncExternalStore=function(le,J,Ee){return M.H.useSyncExternalStore(le,J,Ee)},Rn.useTransition=function(){return M.H.useTransition()},Rn.version="19.2.0",Rn}var Ahe;function fD(){return Ahe||(Ahe=1,VU.exports=TWe()),VU.exports}var O=fD();const xn=u0(O),WU=Pv({__proto__:null,default:xn},[O]);var HU={exports:{}},zL={},$U={exports:{}},UU={};var Nhe;function kWe(){return Nhe||(Nhe=1,(function(i){function e(Y,de){var ae=Y.length;Y.push(de);e:for(;0<ae;){var he=ae-1>>>1,Ce=Y[he];if(0<s(Ce,de))Y[he]=de,Y[ae]=Ce,ae=he;else break e}}function t(Y){return Y.length===0?null:Y[0]}function n(Y){if(Y.length===0)return null;var de=Y[0],ae=Y.pop();if(ae!==de){Y[0]=ae;e:for(var he=0,Ce=Y.length,le=Ce>>>1;he<le;){var J=2*(he+1)-1,Ee=Y[J],we=J+1,Ae=Y[we];if(0>s(Ee,ae))we<Ce&&0>s(Ae,Ee)?(Y[he]=Ae,Y[we]=ae,he=we):(Y[he]=Ee,Y[J]=ae,he=J);else if(we<Ce&&0>s(Ae,ae))Y[he]=Ae,Y[we]=ae,he=we;else break e}}return de}function s(Y,de){var ae=Y.sortIndex-de.sortIndex;return ae!==0?ae:Y.id-de.id}if(i.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var r=performance;i.unstable_now=function(){return r.now()}}else{var o=Date,a=o.now();i.unstable_now=function(){return o.now()-a}}var l=[],u=[],c=1,d=null,h=3,f=!1,g=!1,b=!1,y=!1,S=typeof setTimeout=="function"?setTimeout:null,x=typeof clearTimeout=="function"?clearTimeout:null,E=typeof setImmediate<"u"?setImmediate:null;function k(Y){for(var de=t(u);de!==null;){if(de.callback===null)n(u);else if(de.startTime<=Y)n(u),de.sortIndex=de.expirationTime,e(l,de);else break;de=t(u)}}function A(Y){if(b=!1,k(Y),!g)if(t(l)!==null)g=!0,I||(I=!0,ee());else{var de=t(u);de!==null&&oe(A,de.startTime-Y)}}var I=!1,M=-1,B=5,F=-1;function G(){return y?!0:!(i.unstable_now()-F<B)}function q(){if(y=!1,I){var Y=i.unstable_now();F=Y;var de=!0;try{e:{g=!1,b&&(b=!1,x(M),M=-1),f=!0;var ae=h;try{t:{for(k(Y),d=t(l);d!==null&&!(d.expirationTime>Y&&G());){var he=d.callback;if(typeof he=="function"){d.callback=null,h=d.priorityLevel;var Ce=he(d.expirationTime<=Y);if(Y=i.unstable_now(),typeof Ce=="function"){d.callback=Ce,k(Y),de=!0;break t}d===t(l)&&n(l),k(Y)}else n(l);d=t(l)}if(d!==null)de=!0;else{var le=t(u);le!==null&&oe(A,le.startTime-Y),de=!1}}break e}finally{d=null,h=ae,f=!1}de=void 0}}finally{de?ee():I=!1}}}var ee;if(typeof E=="function")ee=function(){E(q)};else if(typeof MessageChannel<"u"){var Z=new MessageChannel,K=Z.port2;Z.port1.onmessage=q,ee=function(){K.postMessage(null)}}else ee=function(){S(q,0)};function oe(Y,de){M=S(function(){Y(i.unstable_now())},de)}i.unstable_IdlePriority=5,i.unstable_ImmediatePriority=1,i.unstable_LowPriority=4,i.unstable_NormalPriority=3,i.unstable_Profiling=null,i.unstable_UserBlockingPriority=2,i.unstable_cancelCallback=function(Y){Y.callback=null},i.unstable_forceFrameRate=function(Y){0>Y||125<Y?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):B=0<Y?Math.floor(1e3/Y):5},i.unstable_getCurrentPriorityLevel=function(){return h},i.unstable_next=function(Y){switch(h){case 1:case 2:case 3:var de=3;break;default:de=h}var ae=h;h=de;try{return Y()}finally{h=ae}},i.unstable_requestPaint=function(){y=!0},i.unstable_runWithPriority=function(Y,de){switch(Y){case 1:case 2:case 3:case 4:case 5:break;default:Y=3}var ae=h;h=Y;try{return de()}finally{h=ae}},i.unstable_scheduleCallback=function(Y,de,ae){var he=i.unstable_now();switch(typeof ae=="object"&&ae!==null?(ae=ae.delay,ae=typeof ae=="number"&&0<ae?he+ae:he):ae=he,Y){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=ae+Ce,Y={id:c++,callback:de,priorityLevel:Y,startTime:ae,expirationTime:Ce,sortIndex:-1},ae>he?(Y.sortIndex=ae,e(u,Y),t(l)===null&&Y===t(u)&&(b?(x(M),M=-1):b=!0,oe(A,ae-he))):(Y.sortIndex=Ce,e(l,Y),g||f||(g=!0,I||(I=!0,ee()))),Y},i.unstable_shouldYield=G,i.unstable_wrapCallback=function(Y){var de=h;return function(){var ae=h;h=de;try{return Y.apply(this,arguments)}finally{h=ae}}}})(UU)),UU}var Ihe;function LWe(){return Ihe||(Ihe=1,$U.exports=kWe()),$U.exports}var zU={exports:{}},xu={};var Phe;function AWe(){if(Phe)return xu;Phe=1;var i=fD();function e(l){var u="https://react.dev/errors/"+l;if(1<arguments.length){u+="?args[]="+encodeURIComponent(arguments[1]);for(var c=2;c<arguments.length;c++)u+="&args[]="+encodeURIComponent(arguments[c])}return"Minified React error #"+l+"; visit "+u+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function t(){}var n={d:{f:t,r:function(){throw Error(e(522))},D:t,C:t,L:t,m:t,X:t,S:t,M:t},p:0,findDOMNode:null},s=Symbol.for("react.portal");function r(l,u,c){var d=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:s,key:d==null?null:""+d,children:l,containerInfo:u,implementation:c}}var o=i.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function a(l,u){if(l==="font")return"";if(typeof u=="string")return u==="use-credentials"?u:""}return xu.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=n,xu.createPortal=function(l,u){var c=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!u||u.nodeType!==1&&u.nodeType!==9&&u.nodeType!==11)throw Error(e(299));return r(l,u,null,c)},xu.flushSync=function(l){var u=o.T,c=n.p;try{if(o.T=null,n.p=2,l)return l()}finally{o.T=u,n.p=c,n.d.f()}},xu.preconnect=function(l,u){typeof l=="string"&&(u?(u=u.crossOrigin,u=typeof u=="string"?u==="use-credentials"?u:"":void 0):u=null,n.d.C(l,u))},xu.prefetchDNS=function(l){typeof l=="string"&&n.d.D(l)},xu.preinit=function(l,u){if(typeof l=="string"&&u&&typeof u.as=="string"){var c=u.as,d=a(c,u.crossOrigin),h=typeof u.integrity=="string"?u.integrity:void 0,f=typeof u.fetchPriority=="string"?u.fetchPriority:void 0;c==="style"?n.d.S(l,typeof u.precedence=="string"?u.precedence:void 0,{crossOrigin:d,integrity:h,fetchPriority:f}):c==="script"&&n.d.X(l,{crossOrigin:d,integrity:h,fetchPriority:f,nonce:typeof u.nonce=="string"?u.nonce:void 0})}},xu.preinitModule=function(l,u){if(typeof l=="string")if(typeof u=="object"&&u!==null){if(u.as==null||u.as==="script"){var c=a(u.as,u.crossOrigin);n.d.M(l,{crossOrigin:c,integrity:typeof u.integrity=="string"?u.integrity:void 0,nonce:typeof u.nonce=="string"?u.nonce:void 0})}}else u==null&&n.d.M(l)},xu.preload=function(l,u){if(typeof l=="string"&&typeof u=="object"&&u!==null&&typeof u.as=="string"){var c=u.as,d=a(c,u.crossOrigin);n.d.L(l,c,{crossOrigin:d,integrity:typeof u.integrity=="string"?u.integrity:void 0,nonce:typeof u.nonce=="string"?u.nonce:void 0,type:typeof u.type=="string"?u.type:void 0,fetchPriority:typeof u.fetchPriority=="string"?u.fetchPriority:void 0,referrerPolicy:typeof u.referrerPolicy=="string"?u.referrerPolicy:void 0,imageSrcSet:typeof u.imageSrcSet=="string"?u.imageSrcSet:void 0,imageSizes:typeof u.imageSizes=="string"?u.imageSizes:void 0,media:typeof u.media=="string"?u.media:void 0})}},xu.preloadModule=function(l,u){if(typeof l=="string")if(u){var c=a(u.as,u.crossOrigin);n.d.m(l,{as:typeof u.as=="string"&&u.as!=="script"?u.as:void 0,crossOrigin:c,integrity:typeof u.integrity=="string"?u.integrity:void 0})}else n.d.m(l)},xu.requestFormReset=function(l){n.d.r(l)},xu.unstable_batchedUpdates=function(l,u){return l(u)},xu.useFormState=function(l,u,c){return o.H.useFormState(l,u,c)},xu.useFormStatus=function(){return o.H.useHostTransitionStatus()},xu.version="19.2.0",xu}var Mhe;function Rhe(){if(Mhe)return zU.exports;Mhe=1;function i(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(i)}catch(e){console.error(e)}}return i(),zU.exports=AWe(),zU.exports}var Ohe;function NWe(){if(Ohe)return zL;Ohe=1;var i=LWe(),e=fD(),t=Rhe();function n(p){var m="https://react.dev/errors/"+p;if(1<arguments.length){m+="?args[]="+encodeURIComponent(arguments[1]);for(var v=2;v<arguments.length;v++)m+="&args[]="+encodeURIComponent(arguments[v])}return"Minified React error #"+p+"; visit "+m+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function s(p){return!(!p||p.nodeType!==1&&p.nodeType!==9&&p.nodeType!==11)}function r(p){var m=p,v=p;if(p.alternate)for(;m.return;)m=m.return;else{p=m;do m=p,(m.flags&4098)!==0&&(v=m.return),p=m.return;while(p)}return m.tag===3?v:null}function o(p){if(p.tag===13){var m=p.memoizedState;if(m===null&&(p=p.alternate,p!==null&&(m=p.memoizedState)),m!==null)return m.dehydrated}return null}function a(p){if(p.tag===31){var m=p.memoizedState;if(m===null&&(p=p.alternate,p!==null&&(m=p.memoizedState)),m!==null)return m.dehydrated}return null}function l(p){if(r(p)!==p)throw Error(n(188))}function u(p){var m=p.alternate;if(!m){if(m=r(p),m===null)throw Error(n(188));return m!==p?null:p}for(var v=p,T=m;;){var N=v.return;if(N===null)break;var P=N.alternate;if(P===null){if(T=N.return,T!==null){v=T;continue}break}if(N.child===P.child){for(P=N.child;P;){if(P===v)return l(N),p;if(P===T)return l(N),m;P=P.sibling}throw Error(n(188))}if(v.return!==T.return)v=N,T=P;else{for(var j=!1,ce=N.child;ce;){if(ce===v){j=!0,v=N,T=P;break}if(ce===T){j=!0,T=N,v=P;break}ce=ce.sibling}if(!j){for(ce=P.child;ce;){if(ce===v){j=!0,v=P,T=N;break}if(ce===T){j=!0,T=P,v=N;break}ce=ce.sibling}if(!j)throw Error(n(189))}}if(v.alternate!==T)throw Error(n(190))}if(v.tag!==3)throw Error(n(188));return v.stateNode.current===v?p:m}function c(p){var m=p.tag;if(m===5||m===26||m===27||m===6)return p;for(p=p.child;p!==null;){if(m=c(p),m!==null)return m;p=p.sibling}return null}var d=Object.assign,h=Symbol.for("react.element"),f=Symbol.for("react.transitional.element"),g=Symbol.for("react.portal"),b=Symbol.for("react.fragment"),y=Symbol.for("react.strict_mode"),S=Symbol.for("react.profiler"),x=Symbol.for("react.consumer"),E=Symbol.for("react.context"),k=Symbol.for("react.forward_ref"),A=Symbol.for("react.suspense"),I=Symbol.for("react.suspense_list"),M=Symbol.for("react.memo"),B=Symbol.for("react.lazy"),F=Symbol.for("react.activity"),G=Symbol.for("react.memo_cache_sentinel"),q=Symbol.iterator;function ee(p){return p===null||typeof p!="object"?null:(p=q&&p[q]||p["@@iterator"],typeof p=="function"?p:null)}var Z=Symbol.for("react.client.reference");function K(p){if(p==null)return null;if(typeof p=="function")return p.$$typeof===Z?null:p.displayName||p.name||null;if(typeof p=="string")return p;switch(p){case b:return"Fragment";case S:return"Profiler";case y:return"StrictMode";case A:return"Suspense";case I:return"SuspenseList";case F:return"Activity"}if(typeof p=="object")switch(p.$$typeof){case g:return"Portal";case E:return p.displayName||"Context";case x:return(p._context.displayName||"Context")+".Consumer";case k:var m=p.render;return p=p.displayName,p||(p=m.displayName||m.name||"",p=p!==""?"ForwardRef("+p+")":"ForwardRef"),p;case M:return m=p.displayName||null,m!==null?m:K(p.type)||"Memo";case B:m=p._payload,p=p._init;try{return K(p(m))}catch{}}return null}var oe=Array.isArray,Y=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,de=t.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ae={pending:!1,data:null,method:null,action:null},he=[],Ce=-1;function le(p){return{current:p}}function J(p){0>Ce||(p.current=he[Ce],he[Ce]=null,Ce--)}function Ee(p,m){Ce++,he[Ce]=p.current,p.current=m}var we=le(null),Ae=le(null),Ue=le(null),ze=le(null);function $e(p,m){switch(Ee(Ue,m),Ee(Ae,p),Ee(we,null),m.nodeType){case 9:case 11:p=(p=m.documentElement)&&(p=p.namespaceURI)?VVe(p):0;break;default:if(p=m.tagName,m=m.namespaceURI)m=VVe(m),p=WVe(m,p);else switch(p){case"svg":p=1;break;case"math":p=2;break;default:p=0}}J(we),Ee(we,p)}function Dt(){J(we),J(Ae),J(Ue)}function $t(p){p.memoizedState!==null&&Ee(ze,p);var m=we.current,v=WVe(m,p.type);m!==v&&(Ee(Ae,p),Ee(we,v))}function ii(p){Ae.current===p&&(J(we),J(Ae)),ze.current===p&&(J(ze),mF._currentValue=ae)}var di,Oe;function ke(p){if(di===void 0)try{throw Error()}catch(v){var m=v.stack.trim().match(/\n( *(at )?)/);di=m&&m[1]||"",Oe=-1<v.stack.indexOf(`
|
|
42
2
|
at`)?" (<anonymous>)":-1<v.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
43
3
|
`+di+p+Oe}var pt=!1;function Me(p,m){if(!p||pt)return"";pt=!0;var v=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var T={DetermineComponentFrameRoot:function(){try{if(m){var kt=function(){throw Error()};if(Object.defineProperty(kt.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(kt,[])}catch(ct){var nt=ct}Reflect.construct(p,[],kt)}else{try{kt.call()}catch(ct){nt=ct}p.call(kt.prototype)}}else{try{throw Error()}catch(ct){nt=ct}(kt=p())&&typeof kt.catch=="function"&&kt.catch(function(){})}}catch(ct){if(ct&&nt&&typeof ct.stack=="string")return[ct.stack,nt.stack]}return[null,null]}};T.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var N=Object.getOwnPropertyDescriptor(T.DetermineComponentFrameRoot,"name");N&&N.configurable&&Object.defineProperty(T.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var P=T.DetermineComponentFrameRoot(),j=P[0],ce=P[1];if(j&&ce){var Le=j.split(`
|
|
44
4
|
`),Je=ce.split(`
|
|
@@ -46,18 +6,7 @@
|
|
|
46
6
|
`+Le[T].replace(" at new "," at ");return p.displayName&&Ct.includes("<anonymous>")&&(Ct=Ct.replace("<anonymous>",p.displayName)),Ct}while(1<=T&&0<=N);break}}}finally{pt=!1,Error.prepareStackTrace=v}return(v=p?p.displayName||p.name:"")?ke(v):""}function ge(p,m){switch(p.tag){case 26:case 27:case 5:return ke(p.type);case 16:return ke("Lazy");case 13:return p.child!==m&&m!==null?ke("Suspense Fallback"):ke("Suspense");case 19:return ke("SuspenseList");case 0:case 15:return Me(p.type,!1);case 11:return Me(p.type.render,!1);case 1:return Me(p.type,!0);case 31:return ke("Activity");default:return""}}function mt(p){try{var m="",v=null;do m+=ge(p,v),v=p,p=p.return;while(p);return m}catch(T){return`
|
|
47
7
|
Error generating stack: `+T.message+`
|
|
48
8
|
`+T.stack}}var At=Object.prototype.hasOwnProperty,Kt=i.unstable_scheduleCallback,Et=i.unstable_cancelCallback,Ve=i.unstable_shouldYield,ft=i.unstable_requestPaint,bt=i.unstable_now,Yt=i.unstable_getCurrentPriorityLevel,ki=i.unstable_ImmediatePriority,zi=i.unstable_UserBlockingPriority,Xt=i.unstable_NormalPriority,Ci=i.unstable_LowPriority,mi=i.unstable_IdlePriority,_i=i.log,Mi=i.unstable_setDisableYieldValue,Ei=null,ai=null;function Wn(p){if(typeof _i=="function"&&Mi(p),ai&&typeof ai.setStrictMode=="function")try{ai.setStrictMode(Ei,p)}catch{}}var Mn=Math.clz32?Math.clz32:Pr,hs=Math.log,Wi=Math.LN2;function Pr(p){return p>>>=0,p===0?32:31-(hs(p)/Wi|0)|0}var qs=256,aa=262144,Kn=4194304;function ir(p){var m=p&42;if(m!==0)return m;switch(p&-p){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 p&261888;case 262144:case 524288:case 1048576:case 2097152:return p&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return p&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return p}}function ji(p,m,v){var T=p.pendingLanes;if(T===0)return 0;var N=0,P=p.suspendedLanes,j=p.pingedLanes;p=p.warmLanes;var ce=T&134217727;return ce!==0?(T=ce&~P,T!==0?N=ir(T):(j&=ce,j!==0?N=ir(j):v||(v=ce&~p,v!==0&&(N=ir(v))))):(ce=T&~P,ce!==0?N=ir(ce):j!==0?N=ir(j):v||(v=T&~p,v!==0&&(N=ir(v)))),N===0?0:m!==0&&m!==N&&(m&P)===0&&(P=N&-N,v=m&-m,P>=v||P===32&&(v&4194048)!==0)?m:N}function an(p,m){return(p.pendingLanes&~(p.suspendedLanes&~p.pingedLanes)&m)===0}function es(p,m){switch(p){case 1:case 2:case 4:case 8:case 64:return m+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 m+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 ti(){var p=Kn;return Kn<<=1,(Kn&62914560)===0&&(Kn=4194304),p}function re(p){for(var m=[],v=0;31>v;v++)m.push(p);return m}function ue(p,m){p.pendingLanes|=m,m!==268435456&&(p.suspendedLanes=0,p.pingedLanes=0,p.warmLanes=0)}function pe(p,m,v,T,N,P){var j=p.pendingLanes;p.pendingLanes=v,p.suspendedLanes=0,p.pingedLanes=0,p.warmLanes=0,p.expiredLanes&=v,p.entangledLanes&=v,p.errorRecoveryDisabledLanes&=v,p.shellSuspendCounter=0;var ce=p.entanglements,Le=p.expirationTimes,Je=p.hiddenUpdates;for(v=j&~v;0<v;){var Ct=31-Mn(v),kt=1<<Ct;ce[Ct]=0,Le[Ct]=-1;var nt=Je[Ct];if(nt!==null)for(Je[Ct]=null,Ct=0;Ct<nt.length;Ct++){var ct=nt[Ct];ct!==null&&(ct.lane&=-536870913)}v&=~kt}T!==0&&Se(p,T,0),P!==0&&N===0&&p.tag!==0&&(p.suspendedLanes|=P&~(j&~m))}function Se(p,m,v){p.pendingLanes|=m,p.suspendedLanes&=~m;var T=31-Mn(m);p.entangledLanes|=m,p.entanglements[T]=p.entanglements[T]|1073741824|v&261930}function Ne(p,m){var v=p.entangledLanes|=m;for(p=p.entanglements;v;){var T=31-Mn(v),N=1<<T;N&m|p[T]&m&&(p[T]|=m),v&=~N}}function Ke(p,m){var v=m&-m;return v=(v&42)!==0?1:ot(v),(v&(p.suspendedLanes|m))!==0?0:v}function ot(p){switch(p){case 2:p=1;break;case 8:p=4;break;case 32:p=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:p=128;break;case 268435456:p=134217728;break;default:p=0}return p}function Wt(p){return p&=-p,2<p?8<p?(p&134217727)!==0?32:268435456:8:2}function Qt(){var p=de.p;return p!==0?p:(p=window.event,p===void 0?32:uWe(p.type))}function hi(p,m){var v=de.p;try{return de.p=p,m()}finally{de.p=v}}var si=Math.random().toString(36).slice(2),wi="__reactFiber$"+si,Ot="__reactProps$"+si,Cn="__reactContainer$"+si,Fs="__reactEvents$"+si,to="__reactListeners$"+si,vu="__reactHandles$"+si,Zt="__reactResources$"+si,Pe="__reactMarker$"+si;function Bt(p){delete p[wi],delete p[Ot],delete p[Fs],delete p[to],delete p[vu]}function He(p){var m=p[wi];if(m)return m;for(var v=p.parentNode;v;){if(m=v[Cn]||v[wi]){if(v=m.alternate,m.child!==null||v!==null&&v.child!==null)for(p=GVe(p);p!==null;){if(v=p[wi])return v;p=GVe(p)}return m}p=v,v=p.parentNode}return null}function fs(p){if(p=p[wi]||p[Cn]){var m=p.tag;if(m===5||m===6||m===13||m===31||m===26||m===27||m===3)return p}return null}function Gs(p){var m=p.tag;if(m===5||m===26||m===27||m===6)return p.stateNode;throw Error(n(33))}function nr(p){var m=p[Zt];return m||(m=p[Zt]={hoistableStyles:new Map,hoistableScripts:new Map}),m}function rs(p){p[Pe]=!0}var Wl=new Set,Eh={};function sr(p,m){rr(p,m),rr(p+"Capture",m)}function rr(p,m){for(Eh[p]=m,p=0;p<m.length;p++)Wl.add(m[p])}var rb=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]*$"),Vx={},Wx={};function Jy(p){return At.call(Wx,p)?!0:At.call(Vx,p)?!1:rb.test(p)?Wx[p]=!0:(Vx[p]=!0,!1)}function ob(p,m,v){if(Jy(m))if(v===null)p.removeAttribute(m);else{switch(typeof v){case"undefined":case"function":case"symbol":p.removeAttribute(m);return;case"boolean":var T=m.toLowerCase().slice(0,5);if(T!=="data-"&&T!=="aria-"){p.removeAttribute(m);return}}p.setAttribute(m,""+v)}}function ev(p,m,v){if(v===null)p.removeAttribute(m);else{switch(typeof v){case"undefined":case"function":case"symbol":case"boolean":p.removeAttribute(m);return}p.setAttribute(m,""+v)}}function Pd(p,m,v,T){if(T===null)p.removeAttribute(v);else{switch(typeof T){case"undefined":case"function":case"symbol":case"boolean":p.removeAttribute(v);return}p.setAttributeNS(m,v,""+T)}}function Hl(p){switch(typeof p){case"bigint":case"boolean":case"number":case"string":case"undefined":return p;case"object":return p;default:return""}}function Qm(p){var m=p.type;return(p=p.nodeName)&&p.toLowerCase()==="input"&&(m==="checkbox"||m==="radio")}function uL(p,m,v){var T=Object.getOwnPropertyDescriptor(p.constructor.prototype,m);if(!p.hasOwnProperty(m)&&typeof T<"u"&&typeof T.get=="function"&&typeof T.set=="function"){var N=T.get,P=T.set;return Object.defineProperty(p,m,{configurable:!0,get:function(){return N.call(this)},set:function(j){v=""+j,P.call(this,j)}}),Object.defineProperty(p,m,{enumerable:T.enumerable}),{getValue:function(){return v},setValue:function(j){v=""+j},stopTracking:function(){p._valueTracker=null,delete p[m]}}}}function tv(p){if(!p._valueTracker){var m=Qm(p)?"checked":"value";p._valueTracker=uL(p,m,""+p[m])}}function cL(p){if(!p)return!1;var m=p._valueTracker;if(!m)return!0;var v=m.getValue(),T="";return p&&(T=Qm(p)?p.checked?"true":"false":p.value),p=T,p!==v?(m.setValue(p),!0):!1}function Th(p){if(p=p||(typeof document<"u"?document:void 0),typeof p>"u")return null;try{return p.activeElement||p.body}catch{return p.body}}var kh=/[\n"\\]/g;function Ao(p){return p.replace(kh,function(m){return"\\"+m.charCodeAt(0).toString(16)+" "})}function Hx(p,m,v,T,N,P,j,ce){p.name="",j!=null&&typeof j!="function"&&typeof j!="symbol"&&typeof j!="boolean"?p.type=j:p.removeAttribute("type"),m!=null?j==="number"?(m===0&&p.value===""||p.value!=m)&&(p.value=""+Hl(m)):p.value!==""+Hl(m)&&(p.value=""+Hl(m)):j!=="submit"&&j!=="reset"||p.removeAttribute("value"),m!=null?$x(p,j,Hl(m)):v!=null?$x(p,j,Hl(v)):T!=null&&p.removeAttribute("value"),N==null&&P!=null&&(p.defaultChecked=!!P),N!=null&&(p.checked=N&&typeof N!="function"&&typeof N!="symbol"),ce!=null&&typeof ce!="function"&&typeof ce!="symbol"&&typeof ce!="boolean"?p.name=""+Hl(ce):p.removeAttribute("name")}function dL(p,m,v,T,N,P,j,ce){if(P!=null&&typeof P!="function"&&typeof P!="symbol"&&typeof P!="boolean"&&(p.type=P),m!=null||v!=null){if(!(P!=="submit"&&P!=="reset"||m!=null)){tv(p);return}v=v!=null?""+Hl(v):"",m=m!=null?""+Hl(m):v,ce||m===p.value||(p.value=m),p.defaultValue=m}T=T??N,T=typeof T!="function"&&typeof T!="symbol"&&!!T,p.checked=ce?p.checked:!!T,p.defaultChecked=!!T,j!=null&&typeof j!="function"&&typeof j!="symbol"&&typeof j!="boolean"&&(p.name=j),tv(p)}function $x(p,m,v){m==="number"&&Th(p.ownerDocument)===p||p.defaultValue===""+v||(p.defaultValue=""+v)}function Zm(p,m,v,T){if(p=p.options,m){m={};for(var N=0;N<v.length;N++)m["$"+v[N]]=!0;for(v=0;v<p.length;v++)N=m.hasOwnProperty("$"+p[v].value),p[v].selected!==N&&(p[v].selected=N),N&&T&&(p[v].defaultSelected=!0)}else{for(v=""+Hl(v),m=null,N=0;N<p.length;N++){if(p[N].value===v){p[N].selected=!0,T&&(p[N].defaultSelected=!0);return}m!==null||p[N].disabled||(m=p[N])}m!==null&&(m.selected=!0)}}function hL(p,m,v){if(m!=null&&(m=""+Hl(m),m!==p.value&&(p.value=m),v==null)){p.defaultValue!==m&&(p.defaultValue=m);return}p.defaultValue=v!=null?""+Hl(v):""}function ve(p,m,v,T){if(m==null){if(T!=null){if(v!=null)throw Error(n(92));if(oe(T)){if(1<T.length)throw Error(n(93));T=T[0]}v=T}v==null&&(v=""),m=v}v=Hl(m),p.defaultValue=v,T=p.textContent,T===v&&T!==""&&T!==null&&(p.value=T),tv(p)}function Ge(p,m){if(m){var v=p.firstChild;if(v&&v===p.lastChild&&v.nodeType===3){v.nodeValue=m;return}}p.textContent=m}var St=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 It(p,m,v){var T=m.indexOf("--")===0;v==null||typeof v=="boolean"||v===""?T?p.setProperty(m,""):m==="float"?p.cssFloat="":p[m]="":T?p.setProperty(m,v):typeof v!="number"||v===0||St.has(m)?m==="float"?p.cssFloat=v:p[m]=(""+v).trim():p[m]=v+"px"}function ei(p,m,v){if(m!=null&&typeof m!="object")throw Error(n(62));if(p=p.style,v!=null){for(var T in v)!v.hasOwnProperty(T)||m!=null&&m.hasOwnProperty(T)||(T.indexOf("--")===0?p.setProperty(T,""):T==="float"?p.cssFloat="":p[T]="");for(var N in m)T=m[N],m.hasOwnProperty(N)&&v[N]!==T&&It(p,N,T)}else for(var P in m)m.hasOwnProperty(P)&&It(p,P,m[P])}function ln(p){if(p.indexOf("-")===-1)return!1;switch(p){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 as=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"]]),mo=/^[\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 wn(p){return mo.test(""+p)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":p}function Cs(){}var Mr=null;function Md(p){return p=p.target||p.srcElement||window,p.correspondingUseElement&&(p=p.correspondingUseElement),p.nodeType===3?p.parentNode:p}var Pc=null,Mc=null;function fL(p){var m=fs(p);if(m&&(p=m.stateNode)){var v=p[Ot]||null;e:switch(p=m.stateNode,m.type){case"input":if(Hx(p,v.value,v.defaultValue,v.defaultValue,v.checked,v.defaultChecked,v.type,v.name),m=v.name,v.type==="radio"&&m!=null){for(v=p;v.parentNode;)v=v.parentNode;for(v=v.querySelectorAll('input[name="'+Ao(""+m)+'"][type="radio"]'),m=0;m<v.length;m++){var T=v[m];if(T!==p&&T.form===p.form){var N=T[Ot]||null;if(!N)throw Error(n(90));Hx(T,N.value,N.defaultValue,N.defaultValue,N.checked,N.defaultChecked,N.type,N.name)}}for(m=0;m<v.length;m++)T=v[m],T.form===p.form&&cL(T)}break e;case"textarea":hL(p,v.value,v.defaultValue);break e;case"select":m=v.value,m!=null&&Zm(p,!!v.multiple,m,!1)}}}var iv=!1;function V(p,m,v){if(iv)return p(m,v);iv=!0;try{var T=p(m);return T}finally{if(iv=!1,(Pc!==null||Mc!==null)&&(gU(),Pc&&(m=Pc,p=Mc,Mc=Pc=null,fL(m),p)))for(m=0;m<p.length;m++)fL(p[m])}}function ne(p,m){var v=p.stateNode;if(v===null)return null;var T=v[Ot]||null;if(T===null)return null;v=T[m];e:switch(m){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(T=!T.disabled)||(p=p.type,T=!(p==="button"||p==="input"||p==="select"||p==="textarea")),p=!T;break e;default:p=!1}if(p)return null;if(v&&typeof v!="function")throw Error(n(231,m,typeof v));return v}var $=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Te=!1;if($)try{var xe={};Object.defineProperty(xe,"passive",{get:function(){Te=!0}}),window.addEventListener("test",xe,xe),window.removeEventListener("test",xe,xe)}catch{Te=!1}var dt=null,qi=null,qn=null;function io(){if(qn)return qn;var p,m=qi,v=m.length,T,N="value"in dt?dt.value:dt.textContent,P=N.length;for(p=0;p<v&&m[p]===N[p];p++);var j=v-p;for(T=1;T<=j&&m[v-T]===N[P-T];T++);return qn=N.slice(p,1<T?1-T:void 0)}function wo(p){var m=p.keyCode;return"charCode"in p?(p=p.charCode,p===0&&m===13&&(p=13)):p=m,p===10&&(p=13),32<=p||p===13?p:0}function un(){return!0}function Sn(){return!1}function Rt(p){function m(v,T,N,P,j){this._reactName=v,this._targetInst=N,this.type=T,this.nativeEvent=P,this.target=j,this.currentTarget=null;for(var ce in p)p.hasOwnProperty(ce)&&(v=p[ce],this[ce]=v?v(P):P[ce]);return this.isDefaultPrevented=(P.defaultPrevented!=null?P.defaultPrevented:P.returnValue===!1)?un:Sn,this.isPropagationStopped=Sn,this}return d(m.prototype,{preventDefault:function(){this.defaultPrevented=!0;var v=this.nativeEvent;v&&(v.preventDefault?v.preventDefault():typeof v.returnValue!="unknown"&&(v.returnValue=!1),this.isDefaultPrevented=un)},stopPropagation:function(){var v=this.nativeEvent;v&&(v.stopPropagation?v.stopPropagation():typeof v.cancelBubble!="unknown"&&(v.cancelBubble=!0),this.isPropagationStopped=un)},persist:function(){},isPersistent:un}),m}var Rc={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(p){return p.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},_o=Rt(Rc),xa=d({},Rc,{view:0,detail:0}),Rce=Rt(xa),pL,Ux,ts,Ka=d({},xa,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:ab,button:0,buttons:0,relatedTarget:function(p){return p.relatedTarget===void 0?p.fromElement===p.srcElement?p.toElement:p.fromElement:p.relatedTarget},movementX:function(p){return"movementX"in p?p.movementX:(p!==ts&&(ts&&p.type==="mousemove"?(pL=p.screenX-ts.screenX,Ux=p.screenY-ts.screenY):Ux=pL=0,ts=p),pL)},movementY:function(p){return"movementY"in p?p.movementY:Ux}}),nv=Rt(Ka),og=d({},Ka,{dataTransfer:0}),xO=Rt(og),DO=d({},xa,{relatedTarget:0}),zx=Rt(DO),EO=d({},Rc,{animationName:0,elapsedTime:0,pseudoElement:0}),TO=Rt(EO),Gi=d({},Rc,{clipboardData:function(p){return"clipboardData"in p?p.clipboardData:window.clipboardData}}),is=Rt(Gi),Oce=d({},Rc,{data:0}),Ks=Rt(Oce),Fce={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Lh={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"},y$={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Bce(p){var m=this.nativeEvent;return m.getModifierState?m.getModifierState(p):(p=y$[p])?!!m[p]:!1}function ab(){return Bce}var Vce=d({},xa,{key:function(p){if(p.key){var m=Fce[p.key]||p.key;if(m!=="Unidentified")return m}return p.type==="keypress"?(p=wo(p),p===13?"Enter":String.fromCharCode(p)):p.type==="keydown"||p.type==="keyup"?Lh[p.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:ab,charCode:function(p){return p.type==="keypress"?wo(p):0},keyCode:function(p){return p.type==="keydown"||p.type==="keyup"?p.keyCode:0},which:function(p){return p.type==="keypress"?wo(p):p.type==="keydown"||p.type==="keyup"?p.keyCode:0}}),v$=Rt(Vce),Wce=d({},Ka,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),gL=Rt(Wce),Hce=d({},xa,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:ab}),$ce=Rt(Hce),Uce=d({},Rc,{propertyName:0,elapsedTime:0,pseudoElement:0}),zce=Rt(Uce),jce=d({},Ka,{deltaX:function(p){return"deltaX"in p?p.deltaX:"wheelDeltaX"in p?-p.wheelDeltaX:0},deltaY:function(p){return"deltaY"in p?p.deltaY:"wheelDeltaY"in p?-p.wheelDeltaY:"wheelDelta"in p?-p.wheelDelta:0},deltaZ:0,deltaMode:0}),Jm=Rt(jce),mL=d({},Rc,{newState:0,oldState:0}),qce=Rt(mL),_L=[9,13,27,32],Ah=$&&"CompositionEvent"in window,lb=null;$&&"documentMode"in document&&(lb=document.documentMode);var C$=$&&"TextEvent"in window&&!lb,w$=$&&(!Ah||lb&&8<lb&&11>=lb),S$=" ",kO=!1;function x$(p,m){switch(p){case"keyup":return _L.indexOf(m.keyCode)!==-1;case"keydown":return m.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function bL(p){return p=p.detail,typeof p=="object"&&"data"in p?p.data:null}var Ku=!1;function sv(p,m){switch(p){case"compositionend":return bL(m);case"keypress":return m.which!==32?null:(kO=!0,S$);case"textInput":return p=m.data,p===S$&&kO?null:p;default:return null}}function LO(p,m){if(Ku)return p==="compositionend"||!Ah&&x$(p,m)?(p=io(),qn=qi=dt=null,Ku=!1,p):null;switch(p){case"paste":return null;case"keypress":if(!(m.ctrlKey||m.altKey||m.metaKey)||m.ctrlKey&&m.altKey){if(m.char&&1<m.char.length)return m.char;if(m.which)return String.fromCharCode(m.which)}return null;case"compositionend":return w$&&m.locale!=="ko"?null:m.data;default:return null}}var Gce={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 D$(p){var m=p&&p.nodeName&&p.nodeName.toLowerCase();return m==="input"?!!Gce[p.type]:m==="textarea"}function E$(p,m,v,T){Pc?Mc?Mc.push(T):Mc=[T]:Pc=T,m=wU(m,"onChange"),0<m.length&&(v=new _o("onChange","change",null,v,T),p.push({event:v,listeners:m}))}var rv=null,ov=null;function T$(p){PVe(p,0)}function jx(p){var m=Gs(p);if(cL(m))return p}function k$(p,m){if(p==="change")return m}var L$=!1;if($){var AO;if($){var NO="oninput"in document;if(!NO){var yL=document.createElement("div");yL.setAttribute("oninput","return;"),NO=typeof yL.oninput=="function"}AO=NO}else AO=!1;L$=AO&&(!document.documentMode||9<document.documentMode)}function vL(){rv&&(rv.detachEvent("onpropertychange",A$),ov=rv=null)}function A$(p){if(p.propertyName==="value"&&jx(ov)){var m=[];E$(m,ov,p,Md(p)),V(T$,m)}}function Kce(p,m,v){p==="focusin"?(vL(),rv=m,ov=v,rv.attachEvent("onpropertychange",A$)):p==="focusout"&&vL()}function Yce(p){if(p==="selectionchange"||p==="keyup"||p==="keydown")return jx(ov)}function Ji(p,m){if(p==="click")return jx(m)}function Xce(p,m){if(p==="input"||p==="change")return jx(m)}function N$(p,m){return p===m&&(p!==0||1/p===1/m)||p!==p&&m!==m}var Oc=typeof Object.is=="function"?Object.is:N$;function qx(p,m){if(Oc(p,m))return!0;if(typeof p!="object"||p===null||typeof m!="object"||m===null)return!1;var v=Object.keys(p),T=Object.keys(m);if(v.length!==T.length)return!1;for(T=0;T<v.length;T++){var N=v[T];if(!At.call(m,N)||!Oc(p[N],m[N]))return!1}return!0}function I$(p){for(;p&&p.firstChild;)p=p.firstChild;return p}function P$(p,m){var v=I$(p);p=0;for(var T;v;){if(v.nodeType===3){if(T=p+v.textContent.length,p<=m&&T>=m)return{node:v,offset:m-p};p=T}e:{for(;v;){if(v.nextSibling){v=v.nextSibling;break e}v=v.parentNode}v=void 0}v=I$(v)}}function M$(p,m){return p&&m?p===m?!0:p&&p.nodeType===3?!1:m&&m.nodeType===3?M$(p,m.parentNode):"contains"in p?p.contains(m):p.compareDocumentPosition?!!(p.compareDocumentPosition(m)&16):!1:!1}function Gx(p){p=p!=null&&p.ownerDocument!=null&&p.ownerDocument.defaultView!=null?p.ownerDocument.defaultView:window;for(var m=Th(p.document);m instanceof p.HTMLIFrameElement;){try{var v=typeof m.contentWindow.location.href=="string"}catch{v=!1}if(v)p=m.contentWindow;else break;m=Th(p.document)}return m}function e0(p){var m=p&&p.nodeName&&p.nodeName.toLowerCase();return m&&(m==="input"&&(p.type==="text"||p.type==="search"||p.type==="tel"||p.type==="url"||p.type==="password")||m==="textarea"||p.contentEditable==="true")}var R$=$&&"documentMode"in document&&11>=document.documentMode,t0=null,Kx=null,Yx=null,ag=!1;function lg(p,m,v){var T=v.window===v?v.document:v.nodeType===9?v:v.ownerDocument;ag||t0==null||t0!==Th(T)||(T=t0,"selectionStart"in T&&e0(T)?T={start:T.selectionStart,end:T.selectionEnd}:(T=(T.ownerDocument&&T.ownerDocument.defaultView||window).getSelection(),T={anchorNode:T.anchorNode,anchorOffset:T.anchorOffset,focusNode:T.focusNode,focusOffset:T.focusOffset}),Yx&&qx(Yx,T)||(Yx=T,T=wU(Kx,"onSelect"),0<T.length&&(m=new _o("onSelect","select",null,m,v),p.push({event:m,listeners:T}),m.target=t0)))}function Rd(p,m){var v={};return v[p.toLowerCase()]=m.toLowerCase(),v["Webkit"+p]="webkit"+m,v["Moz"+p]="moz"+m,v}var av={animationend:Rd("Animation","AnimationEnd"),animationiteration:Rd("Animation","AnimationIteration"),animationstart:Rd("Animation","AnimationStart"),transitionrun:Rd("Transition","TransitionRun"),transitionstart:Rd("Transition","TransitionStart"),transitioncancel:Rd("Transition","TransitionCancel"),transitionend:Rd("Transition","TransitionEnd")},IO={},O$={};$&&(O$=document.createElement("div").style,"AnimationEvent"in window||(delete av.animationend.animation,delete av.animationiteration.animation,delete av.animationstart.animation),"TransitionEvent"in window||delete av.transitionend.transition);function ub(p){if(IO[p])return IO[p];if(!av[p])return p;var m=av[p],v;for(v in m)if(m.hasOwnProperty(v)&&v in O$)return IO[p]=m[v];return p}var Xx=ub("animationend"),F$=ub("animationiteration"),PO=ub("animationstart"),Qce=ub("transitionrun"),Qx=ub("transitionstart"),i0=ub("transitioncancel"),B$=ub("transitionend"),V$=new Map,MO="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(" ");MO.push("scrollEnd");function Od(p,m){V$.set(p,m),sr(m,[p])}var cb=typeof reportError=="function"?reportError:function(p){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var m=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof p=="object"&&p!==null&&typeof p.message=="string"?String(p.message):String(p),error:p});if(!window.dispatchEvent(m))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",p);return}console.error(p)},Fc=[],lv=0,RO=0;function uv(){for(var p=lv,m=RO=lv=0;m<p;){var v=Fc[m];Fc[m++]=null;var T=Fc[m];Fc[m++]=null;var N=Fc[m];Fc[m++]=null;var P=Fc[m];if(Fc[m++]=null,T!==null&&N!==null){var j=T.pending;j===null?N.next=N:(N.next=j.next,j.next=N),T.pending=N}P!==0&&W$(v,N,P)}}function Zx(p,m,v,T){Fc[lv++]=p,Fc[lv++]=m,Fc[lv++]=v,Fc[lv++]=T,RO|=T,p.lanes|=T,p=p.alternate,p!==null&&(p.lanes|=T)}function CL(p,m,v,T){return Zx(p,m,v,T),Ih(p)}function Nh(p,m){return Zx(p,null,null,m),Ih(p)}function W$(p,m,v){p.lanes|=v;var T=p.alternate;T!==null&&(T.lanes|=v);for(var N=!1,P=p.return;P!==null;)P.childLanes|=v,T=P.alternate,T!==null&&(T.childLanes|=v),P.tag===22&&(p=P.stateNode,p===null||p._visibility&1||(N=!0)),p=P,P=P.return;return p.tag===3?(P=p.stateNode,N&&m!==null&&(N=31-Mn(v),p=P.hiddenUpdates,T=p[N],T===null?p[N]=[m]:T.push(m),m.lane=v|536870912),P):null}function Ih(p){if(50<uF)throw uF=0,Gde=null,Error(n(185));for(var m=p.return;m!==null;)p=m,m=p.return;return p.tag===3?p.stateNode:null}var cv={};function Zce(p,m,v,T){this.tag=p,this.key=v,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=m,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=T,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Bc(p,m,v,T){return new Zce(p,m,v,T)}function dv(p){return p=p.prototype,!(!p||!p.isReactComponent)}function Bf(p,m){var v=p.alternate;return v===null?(v=Bc(p.tag,m,p.key,p.mode),v.elementType=p.elementType,v.type=p.type,v.stateNode=p.stateNode,v.alternate=p,p.alternate=v):(v.pendingProps=m,v.type=p.type,v.flags=0,v.subtreeFlags=0,v.deletions=null),v.flags=p.flags&65011712,v.childLanes=p.childLanes,v.lanes=p.lanes,v.child=p.child,v.memoizedProps=p.memoizedProps,v.memoizedState=p.memoizedState,v.updateQueue=p.updateQueue,m=p.dependencies,v.dependencies=m===null?null:{lanes:m.lanes,firstContext:m.firstContext},v.sibling=p.sibling,v.index=p.index,v.ref=p.ref,v.refCleanup=p.refCleanup,v}function H$(p,m){p.flags&=65011714;var v=p.alternate;return v===null?(p.childLanes=0,p.lanes=m,p.child=null,p.subtreeFlags=0,p.memoizedProps=null,p.memoizedState=null,p.updateQueue=null,p.dependencies=null,p.stateNode=null):(p.childLanes=v.childLanes,p.lanes=v.lanes,p.child=v.child,p.subtreeFlags=0,p.deletions=null,p.memoizedProps=v.memoizedProps,p.memoizedState=v.memoizedState,p.updateQueue=v.updateQueue,p.type=v.type,m=v.dependencies,p.dependencies=m===null?null:{lanes:m.lanes,firstContext:m.firstContext}),p}function wL(p,m,v,T,N,P){var j=0;if(T=p,typeof p=="function")dv(p)&&(j=1);else if(typeof p=="string")j=iZt(p,v,we.current)?26:p==="html"||p==="head"||p==="body"?27:5;else e:switch(p){case F:return p=Bc(31,v,m,N),p.elementType=F,p.lanes=P,p;case b:return db(v.children,N,P,m);case y:j=8,N|=24;break;case S:return p=Bc(12,v,m,N|2),p.elementType=S,p.lanes=P,p;case A:return p=Bc(13,v,m,N),p.elementType=A,p.lanes=P,p;case I:return p=Bc(19,v,m,N),p.elementType=I,p.lanes=P,p;default:if(typeof p=="object"&&p!==null)switch(p.$$typeof){case E:j=10;break e;case x:j=9;break e;case k:j=11;break e;case M:j=14;break e;case B:j=16,T=null;break e}j=29,v=Error(n(130,p===null?"null":typeof p,"")),T=null}return m=Bc(j,v,m,N),m.elementType=p,m.type=T,m.lanes=P,m}function db(p,m,v,T){return p=Bc(7,p,T,m),p.lanes=v,p}function OO(p,m,v){return p=Bc(6,p,null,m),p.lanes=v,p}function FO(p){var m=Bc(18,null,null,0);return m.stateNode=p,m}function BO(p,m,v){return m=Bc(4,p.children!==null?p.children:[],p.key,m),m.lanes=v,m.stateNode={containerInfo:p.containerInfo,pendingChildren:null,implementation:p.implementation},m}var Jx=new WeakMap;function Cu(p,m){if(typeof p=="object"&&p!==null){var v=Jx.get(p);return v!==void 0?v:(m={value:p,source:m,stack:mt(m)},Jx.set(p,m),m)}return{value:p,source:m,stack:mt(m)}}var n0=[],hv=0,eD=null,tD=0,Fd=[],Vc=0,pi=null,Vf=1,Ph="";function ug(p,m){n0[hv++]=tD,n0[hv++]=eD,eD=p,tD=m}function $$(p,m,v){Fd[Vc++]=Vf,Fd[Vc++]=Ph,Fd[Vc++]=pi,pi=p;var T=Vf;p=Ph;var N=32-Mn(T)-1;T&=~(1<<N),v+=1;var P=32-Mn(m)+N;if(30<P){var j=N-N%5;P=(T&(1<<j)-1).toString(32),T>>=j,N-=j,Vf=1<<32-Mn(m)+N|v<<N|T,Ph=P+p}else Vf=1<<P|v<<N|T,Ph=p}function VO(p){p.return!==null&&(ug(p,1),$$(p,1,0))}function WO(p){for(;p===eD;)eD=n0[--hv],n0[hv]=null,tD=n0[--hv],n0[hv]=null;for(;p===pi;)pi=Fd[--Vc],Fd[Vc]=null,Ph=Fd[--Vc],Fd[Vc]=null,Vf=Fd[--Vc],Fd[Vc]=null}function HO(p,m){Fd[Vc++]=Vf,Fd[Vc++]=Ph,Fd[Vc++]=pi,Vf=m.id,Ph=m.overflow,pi=p}var gl=null,qr=null,ps=!1,s0=null,Bd=!1,SL=Error(n(519));function cg(p){var m=Error(n(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw nD(Cu(m,p)),SL}function U$(p){var m=p.stateNode,v=p.type,T=p.memoizedProps;switch(m[wi]=p,m[Ot]=T,v){case"dialog":Ss("cancel",m),Ss("close",m);break;case"iframe":case"object":case"embed":Ss("load",m);break;case"video":case"audio":for(v=0;v<dF.length;v++)Ss(dF[v],m);break;case"source":Ss("error",m);break;case"img":case"image":case"link":Ss("error",m),Ss("load",m);break;case"details":Ss("toggle",m);break;case"input":Ss("invalid",m),dL(m,T.value,T.defaultValue,T.checked,T.defaultChecked,T.type,T.name,!0);break;case"select":Ss("invalid",m);break;case"textarea":Ss("invalid",m),ve(m,T.value,T.defaultValue,T.children)}v=T.children,typeof v!="string"&&typeof v!="number"&&typeof v!="bigint"||m.textContent===""+v||T.suppressHydrationWarning===!0||FVe(m.textContent,v)?(T.popover!=null&&(Ss("beforetoggle",m),Ss("toggle",m)),T.onScroll!=null&&Ss("scroll",m),T.onScrollEnd!=null&&Ss("scrollend",m),T.onClick!=null&&(m.onclick=Cs),m=!0):m=!1,m||cg(p,!0)}function $O(p){for(gl=p.return;gl;)switch(gl.tag){case 5:case 31:case 13:Bd=!1;return;case 27:case 3:Bd=!0;return;default:gl=gl.return}}function fv(p){if(p!==gl)return!1;if(!ps)return $O(p),ps=!0,!1;var m=p.tag,v;if((v=m!==3&&m!==27)&&((v=m===5)&&(v=p.type,v=!(v!=="form"&&v!=="button")||lhe(p.type,p.memoizedProps)),v=!v),v&&qr&&cg(p),$O(p),m===13){if(p=p.memoizedState,p=p!==null?p.dehydrated:null,!p)throw Error(n(317));qr=qVe(p)}else if(m===31){if(p=p.memoizedState,p=p!==null?p.dehydrated:null,!p)throw Error(n(317));qr=qVe(p)}else m===27?(m=qr,Tv(p.type)?(p=fhe,fhe=null,qr=p):qr=m):qr=gl?$f(p.stateNode.nextSibling):null;return!0}function hb(){qr=gl=null,ps=!1}function iD(){var p=s0;return p!==null&&($d===null?$d=p:$d.push.apply($d,p),s0=null),p}function nD(p){s0===null?s0=[p]:s0.push(p)}var UO=le(null),dg=null,hg=null;function r0(p,m,v){Ee(UO,m._currentValue),m._currentValue=v}function Wf(p){p._currentValue=UO.current,J(UO)}function zO(p,m,v){for(;p!==null;){var T=p.alternate;if((p.childLanes&m)!==m?(p.childLanes|=m,T!==null&&(T.childLanes|=m)):T!==null&&(T.childLanes&m)!==m&&(T.childLanes|=m),p===v)break;p=p.return}}function jO(p,m,v,T){var N=p.child;for(N!==null&&(N.return=p);N!==null;){var P=N.dependencies;if(P!==null){var j=N.child;P=P.firstContext;e:for(;P!==null;){var ce=P;P=N;for(var Le=0;Le<m.length;Le++)if(ce.context===m[Le]){P.lanes|=v,ce=P.alternate,ce!==null&&(ce.lanes|=v),zO(P.return,v,p),T||(j=null);break e}P=ce.next}}else if(N.tag===18){if(j=N.return,j===null)throw Error(n(341));j.lanes|=v,P=j.alternate,P!==null&&(P.lanes|=v),zO(j,v,p),j=null}else j=N.child;if(j!==null)j.return=N;else for(j=N;j!==null;){if(j===p){j=null;break}if(N=j.sibling,N!==null){N.return=j.return,j=N;break}j=j.return}N=j}}function pv(p,m,v,T){p=null;for(var N=m,P=!1;N!==null;){if(!P){if((N.flags&524288)!==0)P=!0;else if((N.flags&262144)!==0)break}if(N.tag===10){var j=N.alternate;if(j===null)throw Error(n(387));if(j=j.memoizedProps,j!==null){var ce=N.type;Oc(N.pendingProps.value,j.value)||(p!==null?p.push(ce):p=[ce])}}else if(N===ze.current){if(j=N.alternate,j===null)throw Error(n(387));j.memoizedState.memoizedState!==N.memoizedState.memoizedState&&(p!==null?p.push(mF):p=[mF])}N=N.return}p!==null&&jO(m,p,v,T),m.flags|=262144}function xL(p){for(p=p.firstContext;p!==null;){if(!Oc(p.context._currentValue,p.memoizedValue))return!0;p=p.next}return!1}function Mh(p){dg=p,hg=null,p=p.dependencies,p!==null&&(p.firstContext=null)}function Ya(p){return C(dg,p)}function DL(p,m){return dg===null&&Mh(p),C(p,m)}function C(p,m){var v=m._currentValue;if(m={context:m,memoizedValue:v,next:null},hg===null){if(p===null)throw Error(n(308));hg=m,p.dependencies={lanes:0,firstContext:m},p.flags|=524288}else hg=hg.next=m;return v}var _=typeof AbortController<"u"?AbortController:function(){var p=[],m=this.signal={aborted:!1,addEventListener:function(v,T){p.push(T)}};this.abort=function(){m.aborted=!0,p.forEach(function(v){return v()})}},D=i.unstable_scheduleCallback,L=i.unstable_NormalPriority,R={$$typeof:E,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function z(){return{controller:new _,data:new Map,refCount:0}}function te(p){p.refCount--,p.refCount===0&&D(L,function(){p.controller.abort()})}var fe=null,De=0,be=0,yt=null;function qt(p,m){if(fe===null){var v=fe=[];De=0,be=Jde(),yt={status:"pending",value:void 0,then:function(T){v.push(T)}}}return De++,m.then(li,li),m}function li(){if(--De===0&&fe!==null){yt!==null&&(yt.status="fulfilled");var p=fe;fe=null,be=0,yt=null;for(var m=0;m<p.length;m++)(0,p[m])()}}function Li(p,m){var v=[],T={status:"pending",value:null,reason:null,then:function(N){v.push(N)}};return p.then(function(){T.status="fulfilled",T.value=m;for(var N=0;N<v.length;N++)(0,v[N])(m)},function(N){for(T.status="rejected",T.reason=N,N=0;N<v.length;N++)(0,v[N])(void 0)}),T}var Yn=Y.S;Y.S=function(p,m){aVe=bt(),typeof m=="object"&&m!==null&&typeof m.then=="function"&&qt(p,m),Yn!==null&&Yn(p,m)};var Rr=le(null);function Bs(){var p=Rr.current;return p!==null?p:no.pooledCache}function bo(p,m){m===null?Ee(Rr,Rr.current):Ee(Rr,m.pool)}function Yu(){var p=Bs();return p===null?null:{parent:R._currentValue,pool:p}}var o0=Error(n(460)),sD=Error(n(474)),z$=Error(n(542)),j$={then:function(){}};function E7e(p){return p=p.status,p==="fulfilled"||p==="rejected"}function T7e(p,m,v){switch(v=p[v],v===void 0?p.push(m):v!==m&&(m.then(Cs,Cs),m=v),m.status){case"fulfilled":return m.value;case"rejected":throw p=m.reason,L7e(p),p;default:if(typeof m.status=="string")m.then(Cs,Cs);else{if(p=no,p!==null&&100<p.shellSuspendCounter)throw Error(n(482));p=m,p.status="pending",p.then(function(T){if(m.status==="pending"){var N=m;N.status="fulfilled",N.value=T}},function(T){if(m.status==="pending"){var N=m;N.status="rejected",N.reason=T}})}switch(m.status){case"fulfilled":return m.value;case"rejected":throw p=m.reason,L7e(p),p}throw oD=m,o0}}function rD(p){try{var m=p._init;return m(p._payload)}catch(v){throw v!==null&&typeof v=="object"&&typeof v.then=="function"?(oD=v,o0):v}}var oD=null;function k7e(){if(oD===null)throw Error(n(459));var p=oD;return oD=null,p}function L7e(p){if(p===o0||p===z$)throw Error(n(483))}var EL=null,qO=0;function q$(p){var m=qO;return qO+=1,EL===null&&(EL=[]),T7e(EL,p,m)}function GO(p,m){m=m.props.ref,p.ref=m!==void 0?m:null}function G$(p,m){throw m.$$typeof===h?Error(n(525)):(p=Object.prototype.toString.call(m),Error(n(31,p==="[object Object]"?"object with keys {"+Object.keys(m).join(", ")+"}":p)))}function A7e(p){function m(je,Re){if(p){var Xe=je.deletions;Xe===null?(je.deletions=[Re],je.flags|=16):Xe.push(Re)}}function v(je,Re){if(!p)return null;for(;Re!==null;)m(je,Re),Re=Re.sibling;return null}function T(je){for(var Re=new Map;je!==null;)je.key!==null?Re.set(je.key,je):Re.set(je.index,je),je=je.sibling;return Re}function N(je,Re){return je=Bf(je,Re),je.index=0,je.sibling=null,je}function P(je,Re,Xe){return je.index=Xe,p?(Xe=je.alternate,Xe!==null?(Xe=Xe.index,Xe<Re?(je.flags|=67108866,Re):Xe):(je.flags|=67108866,Re)):(je.flags|=1048576,Re)}function j(je){return p&&je.alternate===null&&(je.flags|=67108866),je}function ce(je,Re,Xe,xt){return Re===null||Re.tag!==6?(Re=OO(Xe,je.mode,xt),Re.return=je,Re):(Re=N(Re,Xe),Re.return=je,Re)}function Le(je,Re,Xe,xt){var sn=Xe.type;return sn===b?Ct(je,Re,Xe.props.children,xt,Xe.key):Re!==null&&(Re.elementType===sn||typeof sn=="object"&&sn!==null&&sn.$$typeof===B&&rD(sn)===Re.type)?(Re=N(Re,Xe.props),GO(Re,Xe),Re.return=je,Re):(Re=wL(Xe.type,Xe.key,Xe.props,null,je.mode,xt),GO(Re,Xe),Re.return=je,Re)}function Je(je,Re,Xe,xt){return Re===null||Re.tag!==4||Re.stateNode.containerInfo!==Xe.containerInfo||Re.stateNode.implementation!==Xe.implementation?(Re=BO(Xe,je.mode,xt),Re.return=je,Re):(Re=N(Re,Xe.children||[]),Re.return=je,Re)}function Ct(je,Re,Xe,xt,sn){return Re===null||Re.tag!==7?(Re=db(Xe,je.mode,xt,sn),Re.return=je,Re):(Re=N(Re,Xe),Re.return=je,Re)}function kt(je,Re,Xe){if(typeof Re=="string"&&Re!==""||typeof Re=="number"||typeof Re=="bigint")return Re=OO(""+Re,je.mode,Xe),Re.return=je,Re;if(typeof Re=="object"&&Re!==null){switch(Re.$$typeof){case f:return Xe=wL(Re.type,Re.key,Re.props,null,je.mode,Xe),GO(Xe,Re),Xe.return=je,Xe;case g:return Re=BO(Re,je.mode,Xe),Re.return=je,Re;case B:return Re=rD(Re),kt(je,Re,Xe)}if(oe(Re)||ee(Re))return Re=db(Re,je.mode,Xe,null),Re.return=je,Re;if(typeof Re.then=="function")return kt(je,q$(Re),Xe);if(Re.$$typeof===E)return kt(je,DL(je,Re),Xe);G$(je,Re)}return null}function nt(je,Re,Xe,xt){var sn=Re!==null?Re.key:null;if(typeof Xe=="string"&&Xe!==""||typeof Xe=="number"||typeof Xe=="bigint")return sn!==null?null:ce(je,Re,""+Xe,xt);if(typeof Xe=="object"&&Xe!==null){switch(Xe.$$typeof){case f:return Xe.key===sn?Le(je,Re,Xe,xt):null;case g:return Xe.key===sn?Je(je,Re,Xe,xt):null;case B:return Xe=rD(Xe),nt(je,Re,Xe,xt)}if(oe(Xe)||ee(Xe))return sn!==null?null:Ct(je,Re,Xe,xt,null);if(typeof Xe.then=="function")return nt(je,Re,q$(Xe),xt);if(Xe.$$typeof===E)return nt(je,Re,DL(je,Xe),xt);G$(je,Xe)}return null}function ct(je,Re,Xe,xt,sn){if(typeof xt=="string"&&xt!==""||typeof xt=="number"||typeof xt=="bigint")return je=je.get(Xe)||null,ce(Re,je,""+xt,sn);if(typeof xt=="object"&&xt!==null){switch(xt.$$typeof){case f:return je=je.get(xt.key===null?Xe:xt.key)||null,Le(Re,je,xt,sn);case g:return je=je.get(xt.key===null?Xe:xt.key)||null,Je(Re,je,xt,sn);case B:return xt=rD(xt),ct(je,Re,Xe,xt,sn)}if(oe(xt)||ee(xt))return je=je.get(Xe)||null,Ct(Re,je,xt,sn,null);if(typeof xt.then=="function")return ct(je,Re,Xe,q$(xt),sn);if(xt.$$typeof===E)return ct(je,Re,Xe,DL(Re,xt),sn);G$(Re,xt)}return null}function Ni(je,Re,Xe,xt){for(var sn=null,pr=null,Hi=Re,ns=Re=0,Ts=null;Hi!==null&&ns<Xe.length;ns++){Hi.index>ns?(Ts=Hi,Hi=null):Ts=Hi.sibling;var gr=nt(je,Hi,Xe[ns],xt);if(gr===null){Hi===null&&(Hi=Ts);break}p&&Hi&&gr.alternate===null&&m(je,Hi),Re=P(gr,Re,ns),pr===null?sn=gr:pr.sibling=gr,pr=gr,Hi=Ts}if(ns===Xe.length)return v(je,Hi),ps&&ug(je,ns),sn;if(Hi===null){for(;ns<Xe.length;ns++)Hi=kt(je,Xe[ns],xt),Hi!==null&&(Re=P(Hi,Re,ns),pr===null?sn=Hi:pr.sibling=Hi,pr=Hi);return ps&&ug(je,ns),sn}for(Hi=T(Hi);ns<Xe.length;ns++)Ts=ct(Hi,je,ns,Xe[ns],xt),Ts!==null&&(p&&Ts.alternate!==null&&Hi.delete(Ts.key===null?ns:Ts.key),Re=P(Ts,Re,ns),pr===null?sn=Ts:pr.sibling=Ts,pr=Ts);return p&&Hi.forEach(function(Iv){return m(je,Iv)}),ps&&ug(je,ns),sn}function gn(je,Re,Xe,xt){if(Xe==null)throw Error(n(151));for(var sn=null,pr=null,Hi=Re,ns=Re=0,Ts=null,gr=Xe.next();Hi!==null&&!gr.done;ns++,gr=Xe.next()){Hi.index>ns?(Ts=Hi,Hi=null):Ts=Hi.sibling;var Iv=nt(je,Hi,gr.value,xt);if(Iv===null){Hi===null&&(Hi=Ts);break}p&&Hi&&Iv.alternate===null&&m(je,Hi),Re=P(Iv,Re,ns),pr===null?sn=Iv:pr.sibling=Iv,pr=Iv,Hi=Ts}if(gr.done)return v(je,Hi),ps&&ug(je,ns),sn;if(Hi===null){for(;!gr.done;ns++,gr=Xe.next())gr=kt(je,gr.value,xt),gr!==null&&(Re=P(gr,Re,ns),pr===null?sn=gr:pr.sibling=gr,pr=gr);return ps&&ug(je,ns),sn}for(Hi=T(Hi);!gr.done;ns++,gr=Xe.next())gr=ct(Hi,je,ns,gr.value,xt),gr!==null&&(p&&gr.alternate!==null&&Hi.delete(gr.key===null?ns:gr.key),Re=P(gr,Re,ns),pr===null?sn=gr:pr.sibling=gr,pr=gr);return p&&Hi.forEach(function(fZt){return m(je,fZt)}),ps&&ug(je,ns),sn}function Yr(je,Re,Xe,xt){if(typeof Xe=="object"&&Xe!==null&&Xe.type===b&&Xe.key===null&&(Xe=Xe.props.children),typeof Xe=="object"&&Xe!==null){switch(Xe.$$typeof){case f:e:{for(var sn=Xe.key;Re!==null;){if(Re.key===sn){if(sn=Xe.type,sn===b){if(Re.tag===7){v(je,Re.sibling),xt=N(Re,Xe.props.children),xt.return=je,je=xt;break e}}else if(Re.elementType===sn||typeof sn=="object"&&sn!==null&&sn.$$typeof===B&&rD(sn)===Re.type){v(je,Re.sibling),xt=N(Re,Xe.props),GO(xt,Xe),xt.return=je,je=xt;break e}v(je,Re);break}else m(je,Re);Re=Re.sibling}Xe.type===b?(xt=db(Xe.props.children,je.mode,xt,Xe.key),xt.return=je,je=xt):(xt=wL(Xe.type,Xe.key,Xe.props,null,je.mode,xt),GO(xt,Xe),xt.return=je,je=xt)}return j(je);case g:e:{for(sn=Xe.key;Re!==null;){if(Re.key===sn)if(Re.tag===4&&Re.stateNode.containerInfo===Xe.containerInfo&&Re.stateNode.implementation===Xe.implementation){v(je,Re.sibling),xt=N(Re,Xe.children||[]),xt.return=je,je=xt;break e}else{v(je,Re);break}else m(je,Re);Re=Re.sibling}xt=BO(Xe,je.mode,xt),xt.return=je,je=xt}return j(je);case B:return Xe=rD(Xe),Yr(je,Re,Xe,xt)}if(oe(Xe))return Ni(je,Re,Xe,xt);if(ee(Xe)){if(sn=ee(Xe),typeof sn!="function")throw Error(n(150));return Xe=sn.call(Xe),gn(je,Re,Xe,xt)}if(typeof Xe.then=="function")return Yr(je,Re,q$(Xe),xt);if(Xe.$$typeof===E)return Yr(je,Re,DL(je,Xe),xt);G$(je,Xe)}return typeof Xe=="string"&&Xe!==""||typeof Xe=="number"||typeof Xe=="bigint"?(Xe=""+Xe,Re!==null&&Re.tag===6?(v(je,Re.sibling),xt=N(Re,Xe),xt.return=je,je=xt):(v(je,Re),xt=OO(Xe,je.mode,xt),xt.return=je,je=xt),j(je)):v(je,Re)}return function(je,Re,Xe,xt){try{qO=0;var sn=Yr(je,Re,Xe,xt);return EL=null,sn}catch(Hi){if(Hi===o0||Hi===z$)throw Hi;var pr=Bc(29,Hi,null,je.mode);return pr.lanes=xt,pr.return=je,pr}finally{}}}var aD=A7e(!0),N7e=A7e(!1),gv=!1;function Jce(p){p.updateQueue={baseState:p.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function ede(p,m){p=p.updateQueue,m.updateQueue===p&&(m.updateQueue={baseState:p.baseState,firstBaseUpdate:p.firstBaseUpdate,lastBaseUpdate:p.lastBaseUpdate,shared:p.shared,callbacks:null})}function mv(p){return{lane:p,tag:0,payload:null,callback:null,next:null}}function _v(p,m,v){var T=p.updateQueue;if(T===null)return null;if(T=T.shared,(vr&2)!==0){var N=T.pending;return N===null?m.next=m:(m.next=N.next,N.next=m),T.pending=m,m=Ih(p),W$(p,null,v),m}return Zx(p,T,m,v),Ih(p)}function KO(p,m,v){if(m=m.updateQueue,m!==null&&(m=m.shared,(v&4194048)!==0)){var T=m.lanes;T&=p.pendingLanes,v|=T,m.lanes=v,Ne(p,v)}}function tde(p,m){var v=p.updateQueue,T=p.alternate;if(T!==null&&(T=T.updateQueue,v===T)){var N=null,P=null;if(v=v.firstBaseUpdate,v!==null){do{var j={lane:v.lane,tag:v.tag,payload:v.payload,callback:null,next:null};P===null?N=P=j:P=P.next=j,v=v.next}while(v!==null);P===null?N=P=m:P=P.next=m}else N=P=m;v={baseState:T.baseState,firstBaseUpdate:N,lastBaseUpdate:P,shared:T.shared,callbacks:T.callbacks},p.updateQueue=v;return}p=v.lastBaseUpdate,p===null?v.firstBaseUpdate=m:p.next=m,v.lastBaseUpdate=m}var ide=!1;function YO(){if(ide){var p=yt;if(p!==null)throw p}}function XO(p,m,v,T){ide=!1;var N=p.updateQueue;gv=!1;var P=N.firstBaseUpdate,j=N.lastBaseUpdate,ce=N.shared.pending;if(ce!==null){N.shared.pending=null;var Le=ce,Je=Le.next;Le.next=null,j===null?P=Je:j.next=Je,j=Le;var Ct=p.alternate;Ct!==null&&(Ct=Ct.updateQueue,ce=Ct.lastBaseUpdate,ce!==j&&(ce===null?Ct.firstBaseUpdate=Je:ce.next=Je,Ct.lastBaseUpdate=Le))}if(P!==null){var kt=N.baseState;j=0,Ct=Je=Le=null,ce=P;do{var nt=ce.lane&-536870913,ct=nt!==ce.lane;if(ct?(Es&nt)===nt:(T&nt)===nt){nt!==0&&nt===be&&(ide=!0),Ct!==null&&(Ct=Ct.next={lane:0,tag:ce.tag,payload:ce.payload,callback:null,next:null});e:{var Ni=p,gn=ce;nt=m;var Yr=v;switch(gn.tag){case 1:if(Ni=gn.payload,typeof Ni=="function"){kt=Ni.call(Yr,kt,nt);break e}kt=Ni;break e;case 3:Ni.flags=Ni.flags&-65537|128;case 0:if(Ni=gn.payload,nt=typeof Ni=="function"?Ni.call(Yr,kt,nt):Ni,nt==null)break e;kt=d({},kt,nt);break e;case 2:gv=!0}}nt=ce.callback,nt!==null&&(p.flags|=64,ct&&(p.flags|=8192),ct=N.callbacks,ct===null?N.callbacks=[nt]:ct.push(nt))}else ct={lane:nt,tag:ce.tag,payload:ce.payload,callback:ce.callback,next:null},Ct===null?(Je=Ct=ct,Le=kt):Ct=Ct.next=ct,j|=nt;if(ce=ce.next,ce===null){if(ce=N.shared.pending,ce===null)break;ct=ce,ce=ct.next,ct.next=null,N.lastBaseUpdate=ct,N.shared.pending=null}}while(!0);Ct===null&&(Le=kt),N.baseState=Le,N.firstBaseUpdate=Je,N.lastBaseUpdate=Ct,P===null&&(N.shared.lanes=0),wv|=j,p.lanes=j,p.memoizedState=kt}}function I7e(p,m){if(typeof p!="function")throw Error(n(191,p));p.call(m)}function P7e(p,m){var v=p.callbacks;if(v!==null)for(p.callbacks=null,p=0;p<v.length;p++)I7e(v[p],m)}var TL=le(null),K$=le(0);function M7e(p,m){p=Cb,Ee(K$,p),Ee(TL,m),Cb=p|m.baseLanes}function nde(){Ee(K$,Cb),Ee(TL,TL.current)}function sde(){Cb=K$.current,J(TL),J(K$)}var Rh=le(null),Hf=null;function bv(p){var m=p.alternate;Ee(Da,Da.current&1),Ee(Rh,p),Hf===null&&(m===null||TL.current!==null||m.memoizedState!==null)&&(Hf=p)}function rde(p){Ee(Da,Da.current),Ee(Rh,p),Hf===null&&(Hf=p)}function R7e(p){p.tag===22?(Ee(Da,Da.current),Ee(Rh,p),Hf===null&&(Hf=p)):yv()}function yv(){Ee(Da,Da.current),Ee(Rh,Rh.current)}function Oh(p){J(Rh),Hf===p&&(Hf=null),J(Da)}var Da=le(0);function Y$(p){for(var m=p;m!==null;){if(m.tag===13){var v=m.memoizedState;if(v!==null&&(v=v.dehydrated,v===null||dhe(v)||hhe(v)))return m}else if(m.tag===19&&(m.memoizedProps.revealOrder==="forwards"||m.memoizedProps.revealOrder==="backwards"||m.memoizedProps.revealOrder==="unstable_legacy-backwards"||m.memoizedProps.revealOrder==="together")){if((m.flags&128)!==0)return m}else if(m.child!==null){m.child.return=m,m=m.child;continue}if(m===p)break;for(;m.sibling===null;){if(m.return===null||m.return===p)return null;m=m.return}m.sibling.return=m.return,m=m.sibling}return null}var fb=0,Xn=null,Gr=null,Xa=null,X$=!1,kL=!1,lD=!1,Q$=0,QO=0,LL=null,nQt=0;function la(){throw Error(n(321))}function ode(p,m){if(m===null)return!1;for(var v=0;v<m.length&&v<p.length;v++)if(!Oc(p[v],m[v]))return!1;return!0}function ade(p,m,v,T,N,P){return fb=P,Xn=m,m.memoizedState=null,m.updateQueue=null,m.lanes=0,Y.H=p===null||p.memoizedState===null?bBe:wde,lD=!1,P=v(T,N),lD=!1,kL&&(P=F7e(m,v,T,N)),O7e(p),P}function O7e(p){Y.H=eF;var m=Gr!==null&&Gr.next!==null;if(fb=0,Xa=Gr=Xn=null,X$=!1,QO=0,LL=null,m)throw Error(n(300));p===null||Qa||(p=p.dependencies,p!==null&&xL(p)&&(Qa=!0))}function F7e(p,m,v,T){Xn=p;var N=0;do{if(kL&&(LL=null),QO=0,kL=!1,25<=N)throw Error(n(301));if(N+=1,Xa=Gr=null,p.updateQueue!=null){var P=p.updateQueue;P.lastEffect=null,P.events=null,P.stores=null,P.memoCache!=null&&(P.memoCache.index=0)}Y.H=yBe,P=m(v,T)}while(kL);return P}function sQt(){var p=Y.H,m=p.useState()[0];return m=typeof m.then=="function"?ZO(m):m,p=p.useState()[0],(Gr!==null?Gr.memoizedState:null)!==p&&(Xn.flags|=1024),m}function lde(){var p=Q$!==0;return Q$=0,p}function ude(p,m,v){m.updateQueue=p.updateQueue,m.flags&=-2053,p.lanes&=~v}function cde(p){if(X$){for(p=p.memoizedState;p!==null;){var m=p.queue;m!==null&&(m.pending=null),p=p.next}X$=!1}fb=0,Xa=Gr=Xn=null,kL=!1,QO=Q$=0,LL=null}function Wc(){var p={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Xa===null?Xn.memoizedState=Xa=p:Xa=Xa.next=p,Xa}function Ea(){if(Gr===null){var p=Xn.alternate;p=p!==null?p.memoizedState:null}else p=Gr.next;var m=Xa===null?Xn.memoizedState:Xa.next;if(m!==null)Xa=m,Gr=p;else{if(p===null)throw Xn.alternate===null?Error(n(467)):Error(n(310));Gr=p,p={memoizedState:Gr.memoizedState,baseState:Gr.baseState,baseQueue:Gr.baseQueue,queue:Gr.queue,next:null},Xa===null?Xn.memoizedState=Xa=p:Xa=Xa.next=p}return Xa}function Z$(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function ZO(p){var m=QO;return QO+=1,LL===null&&(LL=[]),p=T7e(LL,p,m),m=Xn,(Xa===null?m.memoizedState:Xa.next)===null&&(m=m.alternate,Y.H=m===null||m.memoizedState===null?bBe:wde),p}function J$(p){if(p!==null&&typeof p=="object"){if(typeof p.then=="function")return ZO(p);if(p.$$typeof===E)return Ya(p)}throw Error(n(438,String(p)))}function dde(p){var m=null,v=Xn.updateQueue;if(v!==null&&(m=v.memoCache),m==null){var T=Xn.alternate;T!==null&&(T=T.updateQueue,T!==null&&(T=T.memoCache,T!=null&&(m={data:T.data.map(function(N){return N.slice()}),index:0})))}if(m==null&&(m={data:[],index:0}),v===null&&(v=Z$(),Xn.updateQueue=v),v.memoCache=m,v=m.data[m.index],v===void 0)for(v=m.data[m.index]=Array(p),T=0;T<p;T++)v[T]=G;return m.index++,v}function pb(p,m){return typeof m=="function"?m(p):m}function eU(p){var m=Ea();return hde(m,Gr,p)}function hde(p,m,v){var T=p.queue;if(T===null)throw Error(n(311));T.lastRenderedReducer=v;var N=p.baseQueue,P=T.pending;if(P!==null){if(N!==null){var j=N.next;N.next=P.next,P.next=j}m.baseQueue=N=P,T.pending=null}if(P=p.baseState,N===null)p.memoizedState=P;else{m=N.next;var ce=j=null,Le=null,Je=m,Ct=!1;do{var kt=Je.lane&-536870913;if(kt!==Je.lane?(Es&kt)===kt:(fb&kt)===kt){var nt=Je.revertLane;if(nt===0)Le!==null&&(Le=Le.next={lane:0,revertLane:0,gesture:null,action:Je.action,hasEagerState:Je.hasEagerState,eagerState:Je.eagerState,next:null}),kt===be&&(Ct=!0);else if((fb&nt)===nt){Je=Je.next,nt===be&&(Ct=!0);continue}else kt={lane:0,revertLane:Je.revertLane,gesture:null,action:Je.action,hasEagerState:Je.hasEagerState,eagerState:Je.eagerState,next:null},Le===null?(ce=Le=kt,j=P):Le=Le.next=kt,Xn.lanes|=nt,wv|=nt;kt=Je.action,lD&&v(P,kt),P=Je.hasEagerState?Je.eagerState:v(P,kt)}else nt={lane:kt,revertLane:Je.revertLane,gesture:Je.gesture,action:Je.action,hasEagerState:Je.hasEagerState,eagerState:Je.eagerState,next:null},Le===null?(ce=Le=nt,j=P):Le=Le.next=nt,Xn.lanes|=kt,wv|=kt;Je=Je.next}while(Je!==null&&Je!==m);if(Le===null?j=P:Le.next=ce,!Oc(P,p.memoizedState)&&(Qa=!0,Ct&&(v=yt,v!==null)))throw v;p.memoizedState=P,p.baseState=j,p.baseQueue=Le,T.lastRenderedState=P}return N===null&&(T.lanes=0),[p.memoizedState,T.dispatch]}function fde(p){var m=Ea(),v=m.queue;if(v===null)throw Error(n(311));v.lastRenderedReducer=p;var T=v.dispatch,N=v.pending,P=m.memoizedState;if(N!==null){v.pending=null;var j=N=N.next;do P=p(P,j.action),j=j.next;while(j!==N);Oc(P,m.memoizedState)||(Qa=!0),m.memoizedState=P,m.baseQueue===null&&(m.baseState=P),v.lastRenderedState=P}return[P,T]}function B7e(p,m,v){var T=Xn,N=Ea(),P=ps;if(P){if(v===void 0)throw Error(n(407));v=v()}else v=m();var j=!Oc((Gr||N).memoizedState,v);if(j&&(N.memoizedState=v,Qa=!0),N=N.queue,mde(H7e.bind(null,T,N,p),[p]),N.getSnapshot!==m||j||Xa!==null&&Xa.memoizedState.tag&1){if(T.flags|=2048,AL(9,{destroy:void 0},W7e.bind(null,T,N,v,m),null),no===null)throw Error(n(349));P||(fb&127)!==0||V7e(T,m,v)}return v}function V7e(p,m,v){p.flags|=16384,p={getSnapshot:m,value:v},m=Xn.updateQueue,m===null?(m=Z$(),Xn.updateQueue=m,m.stores=[p]):(v=m.stores,v===null?m.stores=[p]:v.push(p))}function W7e(p,m,v,T){m.value=v,m.getSnapshot=T,$7e(m)&&U7e(p)}function H7e(p,m,v){return v(function(){$7e(m)&&U7e(p)})}function $7e(p){var m=p.getSnapshot;p=p.value;try{var v=m();return!Oc(p,v)}catch{return!0}}function U7e(p){var m=Nh(p,2);m!==null&&Ud(m,p,2)}function pde(p){var m=Wc();if(typeof p=="function"){var v=p;if(p=v(),lD){Wn(!0);try{v()}finally{Wn(!1)}}}return m.memoizedState=m.baseState=p,m.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:pb,lastRenderedState:p},m}function z7e(p,m,v,T){return p.baseState=v,hde(p,Gr,typeof T=="function"?T:pb)}function rQt(p,m,v,T,N){if(nU(p))throw Error(n(485));if(p=m.action,p!==null){var P={payload:N,action:p,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(j){P.listeners.push(j)}};Y.T!==null?v(!0):P.isTransition=!1,T(P),v=m.pending,v===null?(P.next=m.pending=P,j7e(m,P)):(P.next=v.next,m.pending=v.next=P)}}function j7e(p,m){var v=m.action,T=m.payload,N=p.state;if(m.isTransition){var P=Y.T,j={};Y.T=j;try{var ce=v(N,T),Le=Y.S;Le!==null&&Le(j,ce),q7e(p,m,ce)}catch(Je){gde(p,m,Je)}finally{P!==null&&j.types!==null&&(P.types=j.types),Y.T=P}}else try{P=v(N,T),q7e(p,m,P)}catch(Je){gde(p,m,Je)}}function q7e(p,m,v){v!==null&&typeof v=="object"&&typeof v.then=="function"?v.then(function(T){G7e(p,m,T)},function(T){return gde(p,m,T)}):G7e(p,m,v)}function G7e(p,m,v){m.status="fulfilled",m.value=v,K7e(m),p.state=v,m=p.pending,m!==null&&(v=m.next,v===m?p.pending=null:(v=v.next,m.next=v,j7e(p,v)))}function gde(p,m,v){var T=p.pending;if(p.pending=null,T!==null){T=T.next;do m.status="rejected",m.reason=v,K7e(m),m=m.next;while(m!==T)}p.action=null}function K7e(p){p=p.listeners;for(var m=0;m<p.length;m++)(0,p[m])()}function Y7e(p,m){return m}function X7e(p,m){if(ps){var v=no.formState;if(v!==null){e:{var T=Xn;if(ps){if(qr){t:{for(var N=qr,P=Bd;N.nodeType!==8;){if(!P){N=null;break t}if(N=$f(N.nextSibling),N===null){N=null;break t}}P=N.data,N=P==="F!"||P==="F"?N:null}if(N){qr=$f(N.nextSibling),T=N.data==="F!";break e}}cg(T)}T=!1}T&&(m=v[0])}}return v=Wc(),v.memoizedState=v.baseState=m,T={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Y7e,lastRenderedState:m},v.queue=T,v=gBe.bind(null,Xn,T),T.dispatch=v,T=pde(!1),P=Cde.bind(null,Xn,!1,T.queue),T=Wc(),N={state:m,dispatch:null,action:p,pending:null},T.queue=N,v=rQt.bind(null,Xn,N,P,v),N.dispatch=v,T.memoizedState=p,[m,v,!1]}function Q7e(p){var m=Ea();return Z7e(m,Gr,p)}function Z7e(p,m,v){if(m=hde(p,m,Y7e)[0],p=eU(pb)[0],typeof m=="object"&&m!==null&&typeof m.then=="function")try{var T=ZO(m)}catch(j){throw j===o0?z$:j}else T=m;m=Ea();var N=m.queue,P=N.dispatch;return v!==m.memoizedState&&(Xn.flags|=2048,AL(9,{destroy:void 0},oQt.bind(null,N,v),null)),[T,P,p]}function oQt(p,m){p.action=m}function J7e(p){var m=Ea(),v=Gr;if(v!==null)return Z7e(m,v,p);Ea(),m=m.memoizedState,v=Ea();var T=v.queue.dispatch;return v.memoizedState=p,[m,T,!1]}function AL(p,m,v,T){return p={tag:p,create:v,deps:T,inst:m,next:null},m=Xn.updateQueue,m===null&&(m=Z$(),Xn.updateQueue=m),v=m.lastEffect,v===null?m.lastEffect=p.next=p:(T=v.next,v.next=p,p.next=T,m.lastEffect=p),p}function eBe(){return Ea().memoizedState}function tU(p,m,v,T){var N=Wc();Xn.flags|=p,N.memoizedState=AL(1|m,{destroy:void 0},v,T===void 0?null:T)}function iU(p,m,v,T){var N=Ea();T=T===void 0?null:T;var P=N.memoizedState.inst;Gr!==null&&T!==null&&ode(T,Gr.memoizedState.deps)?N.memoizedState=AL(m,P,v,T):(Xn.flags|=p,N.memoizedState=AL(1|m,P,v,T))}function tBe(p,m){tU(8390656,8,p,m)}function mde(p,m){iU(2048,8,p,m)}function aQt(p){Xn.flags|=4;var m=Xn.updateQueue;if(m===null)m=Z$(),Xn.updateQueue=m,m.events=[p];else{var v=m.events;v===null?m.events=[p]:v.push(p)}}function iBe(p){var m=Ea().memoizedState;return aQt({ref:m,nextImpl:p}),function(){if((vr&2)!==0)throw Error(n(440));return m.impl.apply(void 0,arguments)}}function nBe(p,m){return iU(4,2,p,m)}function sBe(p,m){return iU(4,4,p,m)}function rBe(p,m){if(typeof m=="function"){p=p();var v=m(p);return function(){typeof v=="function"?v():m(null)}}if(m!=null)return p=p(),m.current=p,function(){m.current=null}}function oBe(p,m,v){v=v!=null?v.concat([p]):null,iU(4,4,rBe.bind(null,m,p),v)}function _de(){}function aBe(p,m){var v=Ea();m=m===void 0?null:m;var T=v.memoizedState;return m!==null&&ode(m,T[1])?T[0]:(v.memoizedState=[p,m],p)}function lBe(p,m){var v=Ea();m=m===void 0?null:m;var T=v.memoizedState;if(m!==null&&ode(m,T[1]))return T[0];if(T=p(),lD){Wn(!0);try{p()}finally{Wn(!1)}}return v.memoizedState=[T,m],T}function bde(p,m,v){return v===void 0||(fb&1073741824)!==0&&(Es&261930)===0?p.memoizedState=m:(p.memoizedState=v,p=uVe(),Xn.lanes|=p,wv|=p,v)}function uBe(p,m,v,T){return Oc(v,m)?v:TL.current!==null?(p=bde(p,v,T),Oc(p,m)||(Qa=!0),p):(fb&42)===0||(fb&1073741824)!==0&&(Es&261930)===0?(Qa=!0,p.memoizedState=v):(p=uVe(),Xn.lanes|=p,wv|=p,m)}function cBe(p,m,v,T,N){var P=de.p;de.p=P!==0&&8>P?P:8;var j=Y.T,ce={};Y.T=ce,Cde(p,!1,m,v);try{var Le=N(),Je=Y.S;if(Je!==null&&Je(ce,Le),Le!==null&&typeof Le=="object"&&typeof Le.then=="function"){var Ct=Li(Le,T);JO(p,m,Ct,Vh(p))}else JO(p,m,T,Vh(p))}catch(kt){JO(p,m,{then:function(){},status:"rejected",reason:kt},Vh())}finally{de.p=P,j!==null&&ce.types!==null&&(j.types=ce.types),Y.T=j}}function lQt(){}function yde(p,m,v,T){if(p.tag!==5)throw Error(n(476));var N=dBe(p).queue;cBe(p,N,m,ae,v===null?lQt:function(){return hBe(p),v(T)})}function dBe(p){var m=p.memoizedState;if(m!==null)return m;m={memoizedState:ae,baseState:ae,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:pb,lastRenderedState:ae},next:null};var v={};return m.next={memoizedState:v,baseState:v,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:pb,lastRenderedState:v},next:null},p.memoizedState=m,p=p.alternate,p!==null&&(p.memoizedState=m),m}function hBe(p){var m=dBe(p);m.next===null&&(m=p.alternate.memoizedState),JO(p,m.next.queue,{},Vh())}function vde(){return Ya(mF)}function fBe(){return Ea().memoizedState}function pBe(){return Ea().memoizedState}function uQt(p){for(var m=p.return;m!==null;){switch(m.tag){case 24:case 3:var v=Vh();p=mv(v);var T=_v(m,p,v);T!==null&&(Ud(T,m,v),KO(T,m,v)),m={cache:z()},p.payload=m;return}m=m.return}}function cQt(p,m,v){var T=Vh();v={lane:T,revertLane:0,gesture:null,action:v,hasEagerState:!1,eagerState:null,next:null},nU(p)?mBe(m,v):(v=CL(p,m,v,T),v!==null&&(Ud(v,p,T),_Be(v,m,T)))}function gBe(p,m,v){var T=Vh();JO(p,m,v,T)}function JO(p,m,v,T){var N={lane:T,revertLane:0,gesture:null,action:v,hasEagerState:!1,eagerState:null,next:null};if(nU(p))mBe(m,N);else{var P=p.alternate;if(p.lanes===0&&(P===null||P.lanes===0)&&(P=m.lastRenderedReducer,P!==null))try{var j=m.lastRenderedState,ce=P(j,v);if(N.hasEagerState=!0,N.eagerState=ce,Oc(ce,j))return Zx(p,m,N,0),no===null&&uv(),!1}catch{}finally{}if(v=CL(p,m,N,T),v!==null)return Ud(v,p,T),_Be(v,m,T),!0}return!1}function Cde(p,m,v,T){if(T={lane:2,revertLane:Jde(),gesture:null,action:T,hasEagerState:!1,eagerState:null,next:null},nU(p)){if(m)throw Error(n(479))}else m=CL(p,v,T,2),m!==null&&Ud(m,p,2)}function nU(p){var m=p.alternate;return p===Xn||m!==null&&m===Xn}function mBe(p,m){kL=X$=!0;var v=p.pending;v===null?m.next=m:(m.next=v.next,v.next=m),p.pending=m}function _Be(p,m,v){if((v&4194048)!==0){var T=m.lanes;T&=p.pendingLanes,v|=T,m.lanes=v,Ne(p,v)}}var eF={readContext:Ya,use:J$,useCallback:la,useContext:la,useEffect:la,useImperativeHandle:la,useLayoutEffect:la,useInsertionEffect:la,useMemo:la,useReducer:la,useRef:la,useState:la,useDebugValue:la,useDeferredValue:la,useTransition:la,useSyncExternalStore:la,useId:la,useHostTransitionStatus:la,useFormState:la,useActionState:la,useOptimistic:la,useMemoCache:la,useCacheRefresh:la};eF.useEffectEvent=la;var bBe={readContext:Ya,use:J$,useCallback:function(p,m){return Wc().memoizedState=[p,m===void 0?null:m],p},useContext:Ya,useEffect:tBe,useImperativeHandle:function(p,m,v){v=v!=null?v.concat([p]):null,tU(4194308,4,rBe.bind(null,m,p),v)},useLayoutEffect:function(p,m){return tU(4194308,4,p,m)},useInsertionEffect:function(p,m){tU(4,2,p,m)},useMemo:function(p,m){var v=Wc();m=m===void 0?null:m;var T=p();if(lD){Wn(!0);try{p()}finally{Wn(!1)}}return v.memoizedState=[T,m],T},useReducer:function(p,m,v){var T=Wc();if(v!==void 0){var N=v(m);if(lD){Wn(!0);try{v(m)}finally{Wn(!1)}}}else N=m;return T.memoizedState=T.baseState=N,p={pending:null,lanes:0,dispatch:null,lastRenderedReducer:p,lastRenderedState:N},T.queue=p,p=p.dispatch=cQt.bind(null,Xn,p),[T.memoizedState,p]},useRef:function(p){var m=Wc();return p={current:p},m.memoizedState=p},useState:function(p){p=pde(p);var m=p.queue,v=gBe.bind(null,Xn,m);return m.dispatch=v,[p.memoizedState,v]},useDebugValue:_de,useDeferredValue:function(p,m){var v=Wc();return bde(v,p,m)},useTransition:function(){var p=pde(!1);return p=cBe.bind(null,Xn,p.queue,!0,!1),Wc().memoizedState=p,[!1,p]},useSyncExternalStore:function(p,m,v){var T=Xn,N=Wc();if(ps){if(v===void 0)throw Error(n(407));v=v()}else{if(v=m(),no===null)throw Error(n(349));(Es&127)!==0||V7e(T,m,v)}N.memoizedState=v;var P={value:v,getSnapshot:m};return N.queue=P,tBe(H7e.bind(null,T,P,p),[p]),T.flags|=2048,AL(9,{destroy:void 0},W7e.bind(null,T,P,v,m),null),v},useId:function(){var p=Wc(),m=no.identifierPrefix;if(ps){var v=Ph,T=Vf;v=(T&~(1<<32-Mn(T)-1)).toString(32)+v,m="_"+m+"R_"+v,v=Q$++,0<v&&(m+="H"+v.toString(32)),m+="_"}else v=nQt++,m="_"+m+"r_"+v.toString(32)+"_";return p.memoizedState=m},useHostTransitionStatus:vde,useFormState:X7e,useActionState:X7e,useOptimistic:function(p){var m=Wc();m.memoizedState=m.baseState=p;var v={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return m.queue=v,m=Cde.bind(null,Xn,!0,v),v.dispatch=m,[p,m]},useMemoCache:dde,useCacheRefresh:function(){return Wc().memoizedState=uQt.bind(null,Xn)},useEffectEvent:function(p){var m=Wc(),v={impl:p};return m.memoizedState=v,function(){if((vr&2)!==0)throw Error(n(440));return v.impl.apply(void 0,arguments)}}},wde={readContext:Ya,use:J$,useCallback:aBe,useContext:Ya,useEffect:mde,useImperativeHandle:oBe,useInsertionEffect:nBe,useLayoutEffect:sBe,useMemo:lBe,useReducer:eU,useRef:eBe,useState:function(){return eU(pb)},useDebugValue:_de,useDeferredValue:function(p,m){var v=Ea();return uBe(v,Gr.memoizedState,p,m)},useTransition:function(){var p=eU(pb)[0],m=Ea().memoizedState;return[typeof p=="boolean"?p:ZO(p),m]},useSyncExternalStore:B7e,useId:fBe,useHostTransitionStatus:vde,useFormState:Q7e,useActionState:Q7e,useOptimistic:function(p,m){var v=Ea();return z7e(v,Gr,p,m)},useMemoCache:dde,useCacheRefresh:pBe};wde.useEffectEvent=iBe;var yBe={readContext:Ya,use:J$,useCallback:aBe,useContext:Ya,useEffect:mde,useImperativeHandle:oBe,useInsertionEffect:nBe,useLayoutEffect:sBe,useMemo:lBe,useReducer:fde,useRef:eBe,useState:function(){return fde(pb)},useDebugValue:_de,useDeferredValue:function(p,m){var v=Ea();return Gr===null?bde(v,p,m):uBe(v,Gr.memoizedState,p,m)},useTransition:function(){var p=fde(pb)[0],m=Ea().memoizedState;return[typeof p=="boolean"?p:ZO(p),m]},useSyncExternalStore:B7e,useId:fBe,useHostTransitionStatus:vde,useFormState:J7e,useActionState:J7e,useOptimistic:function(p,m){var v=Ea();return Gr!==null?z7e(v,Gr,p,m):(v.baseState=p,[p,v.queue.dispatch])},useMemoCache:dde,useCacheRefresh:pBe};yBe.useEffectEvent=iBe;function Sde(p,m,v,T){m=p.memoizedState,v=v(T,m),v=v==null?m:d({},m,v),p.memoizedState=v,p.lanes===0&&(p.updateQueue.baseState=v)}var xde={enqueueSetState:function(p,m,v){p=p._reactInternals;var T=Vh(),N=mv(T);N.payload=m,v!=null&&(N.callback=v),m=_v(p,N,T),m!==null&&(Ud(m,p,T),KO(m,p,T))},enqueueReplaceState:function(p,m,v){p=p._reactInternals;var T=Vh(),N=mv(T);N.tag=1,N.payload=m,v!=null&&(N.callback=v),m=_v(p,N,T),m!==null&&(Ud(m,p,T),KO(m,p,T))},enqueueForceUpdate:function(p,m){p=p._reactInternals;var v=Vh(),T=mv(v);T.tag=2,m!=null&&(T.callback=m),m=_v(p,T,v),m!==null&&(Ud(m,p,v),KO(m,p,v))}};function vBe(p,m,v,T,N,P,j){return p=p.stateNode,typeof p.shouldComponentUpdate=="function"?p.shouldComponentUpdate(T,P,j):m.prototype&&m.prototype.isPureReactComponent?!qx(v,T)||!qx(N,P):!0}function CBe(p,m,v,T){p=m.state,typeof m.componentWillReceiveProps=="function"&&m.componentWillReceiveProps(v,T),typeof m.UNSAFE_componentWillReceiveProps=="function"&&m.UNSAFE_componentWillReceiveProps(v,T),m.state!==p&&xde.enqueueReplaceState(m,m.state,null)}function uD(p,m){var v=m;if("ref"in m){v={};for(var T in m)T!=="ref"&&(v[T]=m[T])}if(p=p.defaultProps){v===m&&(v=d({},v));for(var N in p)v[N]===void 0&&(v[N]=p[N])}return v}function wBe(p){cb(p)}function SBe(p){console.error(p)}function xBe(p){cb(p)}function sU(p,m){try{var v=p.onUncaughtError;v(m.value,{componentStack:m.stack})}catch(T){setTimeout(function(){throw T})}}function DBe(p,m,v){try{var T=p.onCaughtError;T(v.value,{componentStack:v.stack,errorBoundary:m.tag===1?m.stateNode:null})}catch(N){setTimeout(function(){throw N})}}function Dde(p,m,v){return v=mv(v),v.tag=3,v.payload={element:null},v.callback=function(){sU(p,m)},v}function EBe(p){return p=mv(p),p.tag=3,p}function TBe(p,m,v,T){var N=v.type.getDerivedStateFromError;if(typeof N=="function"){var P=T.value;p.payload=function(){return N(P)},p.callback=function(){DBe(m,v,T)}}var j=v.stateNode;j!==null&&typeof j.componentDidCatch=="function"&&(p.callback=function(){DBe(m,v,T),typeof N!="function"&&(Sv===null?Sv=new Set([this]):Sv.add(this));var ce=T.stack;this.componentDidCatch(T.value,{componentStack:ce!==null?ce:""})})}function dQt(p,m,v,T,N){if(v.flags|=32768,T!==null&&typeof T=="object"&&typeof T.then=="function"){if(m=v.alternate,m!==null&&pv(m,v,N,!0),v=Rh.current,v!==null){switch(v.tag){case 31:case 13:return Hf===null?mU():v.alternate===null&&ua===0&&(ua=3),v.flags&=-257,v.flags|=65536,v.lanes=N,T===j$?v.flags|=16384:(m=v.updateQueue,m===null?v.updateQueue=new Set([T]):m.add(T),Xde(p,T,N)),!1;case 22:return v.flags|=65536,T===j$?v.flags|=16384:(m=v.updateQueue,m===null?(m={transitions:null,markerInstances:null,retryQueue:new Set([T])},v.updateQueue=m):(v=m.retryQueue,v===null?m.retryQueue=new Set([T]):v.add(T)),Xde(p,T,N)),!1}throw Error(n(435,v.tag))}return Xde(p,T,N),mU(),!1}if(ps)return m=Rh.current,m!==null?((m.flags&65536)===0&&(m.flags|=256),m.flags|=65536,m.lanes=N,T!==SL&&(p=Error(n(422),{cause:T}),nD(Cu(p,v)))):(T!==SL&&(m=Error(n(423),{cause:T}),nD(Cu(m,v))),p=p.current.alternate,p.flags|=65536,N&=-N,p.lanes|=N,T=Cu(T,v),N=Dde(p.stateNode,T,N),tde(p,N),ua!==4&&(ua=2)),!1;var P=Error(n(520),{cause:T});if(P=Cu(P,v),lF===null?lF=[P]:lF.push(P),ua!==4&&(ua=2),m===null)return!0;T=Cu(T,v),v=m;do{switch(v.tag){case 3:return v.flags|=65536,p=N&-N,v.lanes|=p,p=Dde(v.stateNode,T,p),tde(v,p),!1;case 1:if(m=v.type,P=v.stateNode,(v.flags&128)===0&&(typeof m.getDerivedStateFromError=="function"||P!==null&&typeof P.componentDidCatch=="function"&&(Sv===null||!Sv.has(P))))return v.flags|=65536,N&=-N,v.lanes|=N,N=EBe(N),TBe(N,p,v,T),tde(v,N),!1}v=v.return}while(v!==null);return!1}var Ede=Error(n(461)),Qa=!1;function wu(p,m,v,T){m.child=p===null?N7e(m,null,v,T):aD(m,p.child,v,T)}function kBe(p,m,v,T,N){v=v.render;var P=m.ref;if("ref"in T){var j={};for(var ce in T)ce!=="ref"&&(j[ce]=T[ce])}else j=T;return Mh(m),T=ade(p,m,v,j,P,N),ce=lde(),p!==null&&!Qa?(ude(p,m,N),gb(p,m,N)):(ps&&ce&&VO(m),m.flags|=1,wu(p,m,T,N),m.child)}function LBe(p,m,v,T,N){if(p===null){var P=v.type;return typeof P=="function"&&!dv(P)&&P.defaultProps===void 0&&v.compare===null?(m.tag=15,m.type=P,ABe(p,m,P,T,N)):(p=wL(v.type,null,T,m,m.mode,N),p.ref=m.ref,p.return=m,m.child=p)}if(P=p.child,!Mde(p,N)){var j=P.memoizedProps;if(v=v.compare,v=v!==null?v:qx,v(j,T)&&p.ref===m.ref)return gb(p,m,N)}return m.flags|=1,p=Bf(P,T),p.ref=m.ref,p.return=m,m.child=p}function ABe(p,m,v,T,N){if(p!==null){var P=p.memoizedProps;if(qx(P,T)&&p.ref===m.ref)if(Qa=!1,m.pendingProps=T=P,Mde(p,N))(p.flags&131072)!==0&&(Qa=!0);else return m.lanes=p.lanes,gb(p,m,N)}return Tde(p,m,v,T,N)}function NBe(p,m,v,T){var N=T.children,P=p!==null?p.memoizedState:null;if(p===null&&m.stateNode===null&&(m.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),T.mode==="hidden"){if((m.flags&128)!==0){if(P=P!==null?P.baseLanes|v:v,p!==null){for(T=m.child=p.child,N=0;T!==null;)N=N|T.lanes|T.childLanes,T=T.sibling;T=N&~P}else T=0,m.child=null;return IBe(p,m,P,v,T)}if((v&536870912)!==0)m.memoizedState={baseLanes:0,cachePool:null},p!==null&&bo(m,P!==null?P.cachePool:null),P!==null?M7e(m,P):nde(),R7e(m);else return T=m.lanes=536870912,IBe(p,m,P!==null?P.baseLanes|v:v,v,T)}else P!==null?(bo(m,P.cachePool),M7e(m,P),yv(),m.memoizedState=null):(p!==null&&bo(m,null),nde(),yv());return wu(p,m,N,v),m.child}function tF(p,m){return p!==null&&p.tag===22||m.stateNode!==null||(m.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),m.sibling}function IBe(p,m,v,T,N){var P=Bs();return P=P===null?null:{parent:R._currentValue,pool:P},m.memoizedState={baseLanes:v,cachePool:P},p!==null&&bo(m,null),nde(),R7e(m),p!==null&&pv(p,m,T,!0),m.childLanes=N,null}function rU(p,m){return m=aU({mode:m.mode,children:m.children},p.mode),m.ref=p.ref,p.child=m,m.return=p,m}function PBe(p,m,v){return aD(m,p.child,null,v),p=rU(m,m.pendingProps),p.flags|=2,Oh(m),m.memoizedState=null,p}function hQt(p,m,v){var T=m.pendingProps,N=(m.flags&128)!==0;if(m.flags&=-129,p===null){if(ps){if(T.mode==="hidden")return p=rU(m,T),m.lanes=536870912,tF(null,p);if(rde(m),(p=qr)?(p=jVe(p,Bd),p=p!==null&&p.data==="&"?p:null,p!==null&&(m.memoizedState={dehydrated:p,treeContext:pi!==null?{id:Vf,overflow:Ph}:null,retryLane:536870912,hydrationErrors:null},v=FO(p),v.return=m,m.child=v,gl=m,qr=null)):p=null,p===null)throw cg(m);return m.lanes=536870912,null}return rU(m,T)}var P=p.memoizedState;if(P!==null){var j=P.dehydrated;if(rde(m),N)if(m.flags&256)m.flags&=-257,m=PBe(p,m,v);else if(m.memoizedState!==null)m.child=p.child,m.flags|=128,m=null;else throw Error(n(558));else if(Qa||pv(p,m,v,!1),N=(v&p.childLanes)!==0,Qa||N){if(T=no,T!==null&&(j=Ke(T,v),j!==0&&j!==P.retryLane))throw P.retryLane=j,Nh(p,j),Ud(T,p,j),Ede;mU(),m=PBe(p,m,v)}else p=P.treeContext,qr=$f(j.nextSibling),gl=m,ps=!0,s0=null,Bd=!1,p!==null&&HO(m,p),m=rU(m,T),m.flags|=4096;return m}return p=Bf(p.child,{mode:T.mode,children:T.children}),p.ref=m.ref,m.child=p,p.return=m,p}function oU(p,m){var v=m.ref;if(v===null)p!==null&&p.ref!==null&&(m.flags|=4194816);else{if(typeof v!="function"&&typeof v!="object")throw Error(n(284));(p===null||p.ref!==v)&&(m.flags|=4194816)}}function Tde(p,m,v,T,N){return Mh(m),v=ade(p,m,v,T,void 0,N),T=lde(),p!==null&&!Qa?(ude(p,m,N),gb(p,m,N)):(ps&&T&&VO(m),m.flags|=1,wu(p,m,v,N),m.child)}function MBe(p,m,v,T,N,P){return Mh(m),m.updateQueue=null,v=F7e(m,T,v,N),O7e(p),T=lde(),p!==null&&!Qa?(ude(p,m,P),gb(p,m,P)):(ps&&T&&VO(m),m.flags|=1,wu(p,m,v,P),m.child)}function RBe(p,m,v,T,N){if(Mh(m),m.stateNode===null){var P=cv,j=v.contextType;typeof j=="object"&&j!==null&&(P=Ya(j)),P=new v(T,P),m.memoizedState=P.state!==null&&P.state!==void 0?P.state:null,P.updater=xde,m.stateNode=P,P._reactInternals=m,P=m.stateNode,P.props=T,P.state=m.memoizedState,P.refs={},Jce(m),j=v.contextType,P.context=typeof j=="object"&&j!==null?Ya(j):cv,P.state=m.memoizedState,j=v.getDerivedStateFromProps,typeof j=="function"&&(Sde(m,v,j,T),P.state=m.memoizedState),typeof v.getDerivedStateFromProps=="function"||typeof P.getSnapshotBeforeUpdate=="function"||typeof P.UNSAFE_componentWillMount!="function"&&typeof P.componentWillMount!="function"||(j=P.state,typeof P.componentWillMount=="function"&&P.componentWillMount(),typeof P.UNSAFE_componentWillMount=="function"&&P.UNSAFE_componentWillMount(),j!==P.state&&xde.enqueueReplaceState(P,P.state,null),XO(m,T,P,N),YO(),P.state=m.memoizedState),typeof P.componentDidMount=="function"&&(m.flags|=4194308),T=!0}else if(p===null){P=m.stateNode;var ce=m.memoizedProps,Le=uD(v,ce);P.props=Le;var Je=P.context,Ct=v.contextType;j=cv,typeof Ct=="object"&&Ct!==null&&(j=Ya(Ct));var kt=v.getDerivedStateFromProps;Ct=typeof kt=="function"||typeof P.getSnapshotBeforeUpdate=="function",ce=m.pendingProps!==ce,Ct||typeof P.UNSAFE_componentWillReceiveProps!="function"&&typeof P.componentWillReceiveProps!="function"||(ce||Je!==j)&&CBe(m,P,T,j),gv=!1;var nt=m.memoizedState;P.state=nt,XO(m,T,P,N),YO(),Je=m.memoizedState,ce||nt!==Je||gv?(typeof kt=="function"&&(Sde(m,v,kt,T),Je=m.memoizedState),(Le=gv||vBe(m,v,Le,T,nt,Je,j))?(Ct||typeof P.UNSAFE_componentWillMount!="function"&&typeof P.componentWillMount!="function"||(typeof P.componentWillMount=="function"&&P.componentWillMount(),typeof P.UNSAFE_componentWillMount=="function"&&P.UNSAFE_componentWillMount()),typeof P.componentDidMount=="function"&&(m.flags|=4194308)):(typeof P.componentDidMount=="function"&&(m.flags|=4194308),m.memoizedProps=T,m.memoizedState=Je),P.props=T,P.state=Je,P.context=j,T=Le):(typeof P.componentDidMount=="function"&&(m.flags|=4194308),T=!1)}else{P=m.stateNode,ede(p,m),j=m.memoizedProps,Ct=uD(v,j),P.props=Ct,kt=m.pendingProps,nt=P.context,Je=v.contextType,Le=cv,typeof Je=="object"&&Je!==null&&(Le=Ya(Je)),ce=v.getDerivedStateFromProps,(Je=typeof ce=="function"||typeof P.getSnapshotBeforeUpdate=="function")||typeof P.UNSAFE_componentWillReceiveProps!="function"&&typeof P.componentWillReceiveProps!="function"||(j!==kt||nt!==Le)&&CBe(m,P,T,Le),gv=!1,nt=m.memoizedState,P.state=nt,XO(m,T,P,N),YO();var ct=m.memoizedState;j!==kt||nt!==ct||gv||p!==null&&p.dependencies!==null&&xL(p.dependencies)?(typeof ce=="function"&&(Sde(m,v,ce,T),ct=m.memoizedState),(Ct=gv||vBe(m,v,Ct,T,nt,ct,Le)||p!==null&&p.dependencies!==null&&xL(p.dependencies))?(Je||typeof P.UNSAFE_componentWillUpdate!="function"&&typeof P.componentWillUpdate!="function"||(typeof P.componentWillUpdate=="function"&&P.componentWillUpdate(T,ct,Le),typeof P.UNSAFE_componentWillUpdate=="function"&&P.UNSAFE_componentWillUpdate(T,ct,Le)),typeof P.componentDidUpdate=="function"&&(m.flags|=4),typeof P.getSnapshotBeforeUpdate=="function"&&(m.flags|=1024)):(typeof P.componentDidUpdate!="function"||j===p.memoizedProps&&nt===p.memoizedState||(m.flags|=4),typeof P.getSnapshotBeforeUpdate!="function"||j===p.memoizedProps&&nt===p.memoizedState||(m.flags|=1024),m.memoizedProps=T,m.memoizedState=ct),P.props=T,P.state=ct,P.context=Le,T=Ct):(typeof P.componentDidUpdate!="function"||j===p.memoizedProps&&nt===p.memoizedState||(m.flags|=4),typeof P.getSnapshotBeforeUpdate!="function"||j===p.memoizedProps&&nt===p.memoizedState||(m.flags|=1024),T=!1)}return P=T,oU(p,m),T=(m.flags&128)!==0,P||T?(P=m.stateNode,v=T&&typeof v.getDerivedStateFromError!="function"?null:P.render(),m.flags|=1,p!==null&&T?(m.child=aD(m,p.child,null,N),m.child=aD(m,null,v,N)):wu(p,m,v,N),m.memoizedState=P.state,p=m.child):p=gb(p,m,N),p}function OBe(p,m,v,T){return hb(),m.flags|=256,wu(p,m,v,T),m.child}var kde={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Lde(p){return{baseLanes:p,cachePool:Yu()}}function Ade(p,m,v){return p=p!==null?p.childLanes&~v:0,m&&(p|=Bh),p}function FBe(p,m,v){var T=m.pendingProps,N=!1,P=(m.flags&128)!==0,j;if((j=P)||(j=p!==null&&p.memoizedState===null?!1:(Da.current&2)!==0),j&&(N=!0,m.flags&=-129),j=(m.flags&32)!==0,m.flags&=-33,p===null){if(ps){if(N?bv(m):yv(),(p=qr)?(p=jVe(p,Bd),p=p!==null&&p.data!=="&"?p:null,p!==null&&(m.memoizedState={dehydrated:p,treeContext:pi!==null?{id:Vf,overflow:Ph}:null,retryLane:536870912,hydrationErrors:null},v=FO(p),v.return=m,m.child=v,gl=m,qr=null)):p=null,p===null)throw cg(m);return hhe(p)?m.lanes=32:m.lanes=536870912,null}var ce=T.children;return T=T.fallback,N?(yv(),N=m.mode,ce=aU({mode:"hidden",children:ce},N),T=db(T,N,v,null),ce.return=m,T.return=m,ce.sibling=T,m.child=ce,T=m.child,T.memoizedState=Lde(v),T.childLanes=Ade(p,j,v),m.memoizedState=kde,tF(null,T)):(bv(m),Nde(m,ce))}var Le=p.memoizedState;if(Le!==null&&(ce=Le.dehydrated,ce!==null)){if(P)m.flags&256?(bv(m),m.flags&=-257,m=Ide(p,m,v)):m.memoizedState!==null?(yv(),m.child=p.child,m.flags|=128,m=null):(yv(),ce=T.fallback,N=m.mode,T=aU({mode:"visible",children:T.children},N),ce=db(ce,N,v,null),ce.flags|=2,T.return=m,ce.return=m,T.sibling=ce,m.child=T,aD(m,p.child,null,v),T=m.child,T.memoizedState=Lde(v),T.childLanes=Ade(p,j,v),m.memoizedState=kde,m=tF(null,T));else if(bv(m),hhe(ce)){if(j=ce.nextSibling&&ce.nextSibling.dataset,j)var Je=j.dgst;j=Je,T=Error(n(419)),T.stack="",T.digest=j,nD({value:T,source:null,stack:null}),m=Ide(p,m,v)}else if(Qa||pv(p,m,v,!1),j=(v&p.childLanes)!==0,Qa||j){if(j=no,j!==null&&(T=Ke(j,v),T!==0&&T!==Le.retryLane))throw Le.retryLane=T,Nh(p,T),Ud(j,p,T),Ede;dhe(ce)||mU(),m=Ide(p,m,v)}else dhe(ce)?(m.flags|=192,m.child=p.child,m=null):(p=Le.treeContext,qr=$f(ce.nextSibling),gl=m,ps=!0,s0=null,Bd=!1,p!==null&&HO(m,p),m=Nde(m,T.children),m.flags|=4096);return m}return N?(yv(),ce=T.fallback,N=m.mode,Le=p.child,Je=Le.sibling,T=Bf(Le,{mode:"hidden",children:T.children}),T.subtreeFlags=Le.subtreeFlags&65011712,Je!==null?ce=Bf(Je,ce):(ce=db(ce,N,v,null),ce.flags|=2),ce.return=m,T.return=m,T.sibling=ce,m.child=T,tF(null,T),T=m.child,ce=p.child.memoizedState,ce===null?ce=Lde(v):(N=ce.cachePool,N!==null?(Le=R._currentValue,N=N.parent!==Le?{parent:Le,pool:Le}:N):N=Yu(),ce={baseLanes:ce.baseLanes|v,cachePool:N}),T.memoizedState=ce,T.childLanes=Ade(p,j,v),m.memoizedState=kde,tF(p.child,T)):(bv(m),v=p.child,p=v.sibling,v=Bf(v,{mode:"visible",children:T.children}),v.return=m,v.sibling=null,p!==null&&(j=m.deletions,j===null?(m.deletions=[p],m.flags|=16):j.push(p)),m.child=v,m.memoizedState=null,v)}function Nde(p,m){return m=aU({mode:"visible",children:m},p.mode),m.return=p,p.child=m}function aU(p,m){return p=Bc(22,p,null,m),p.lanes=0,p}function Ide(p,m,v){return aD(m,p.child,null,v),p=Nde(m,m.pendingProps.children),p.flags|=2,m.memoizedState=null,p}function BBe(p,m,v){p.lanes|=m;var T=p.alternate;T!==null&&(T.lanes|=m),zO(p.return,m,v)}function Pde(p,m,v,T,N,P){var j=p.memoizedState;j===null?p.memoizedState={isBackwards:m,rendering:null,renderingStartTime:0,last:T,tail:v,tailMode:N,treeForkCount:P}:(j.isBackwards=m,j.rendering=null,j.renderingStartTime=0,j.last=T,j.tail=v,j.tailMode=N,j.treeForkCount=P)}function VBe(p,m,v){var T=m.pendingProps,N=T.revealOrder,P=T.tail;T=T.children;var j=Da.current,ce=(j&2)!==0;if(ce?(j=j&1|2,m.flags|=128):j&=1,Ee(Da,j),wu(p,m,T,v),T=ps?tD:0,!ce&&p!==null&&(p.flags&128)!==0)e:for(p=m.child;p!==null;){if(p.tag===13)p.memoizedState!==null&&BBe(p,v,m);else if(p.tag===19)BBe(p,v,m);else if(p.child!==null){p.child.return=p,p=p.child;continue}if(p===m)break e;for(;p.sibling===null;){if(p.return===null||p.return===m)break e;p=p.return}p.sibling.return=p.return,p=p.sibling}switch(N){case"forwards":for(v=m.child,N=null;v!==null;)p=v.alternate,p!==null&&Y$(p)===null&&(N=v),v=v.sibling;v=N,v===null?(N=m.child,m.child=null):(N=v.sibling,v.sibling=null),Pde(m,!1,N,v,P,T);break;case"backwards":case"unstable_legacy-backwards":for(v=null,N=m.child,m.child=null;N!==null;){if(p=N.alternate,p!==null&&Y$(p)===null){m.child=N;break}p=N.sibling,N.sibling=v,v=N,N=p}Pde(m,!0,v,null,P,T);break;case"together":Pde(m,!1,null,null,void 0,T);break;default:m.memoizedState=null}return m.child}function gb(p,m,v){if(p!==null&&(m.dependencies=p.dependencies),wv|=m.lanes,(v&m.childLanes)===0)if(p!==null){if(pv(p,m,v,!1),(v&m.childLanes)===0)return null}else return null;if(p!==null&&m.child!==p.child)throw Error(n(153));if(m.child!==null){for(p=m.child,v=Bf(p,p.pendingProps),m.child=v,v.return=m;p.sibling!==null;)p=p.sibling,v=v.sibling=Bf(p,p.pendingProps),v.return=m;v.sibling=null}return m.child}function Mde(p,m){return(p.lanes&m)!==0?!0:(p=p.dependencies,!!(p!==null&&xL(p)))}function fQt(p,m,v){switch(m.tag){case 3:$e(m,m.stateNode.containerInfo),r0(m,R,p.memoizedState.cache),hb();break;case 27:case 5:$t(m);break;case 4:$e(m,m.stateNode.containerInfo);break;case 10:r0(m,m.type,m.memoizedProps.value);break;case 31:if(m.memoizedState!==null)return m.flags|=128,rde(m),null;break;case 13:var T=m.memoizedState;if(T!==null)return T.dehydrated!==null?(bv(m),m.flags|=128,null):(v&m.child.childLanes)!==0?FBe(p,m,v):(bv(m),p=gb(p,m,v),p!==null?p.sibling:null);bv(m);break;case 19:var N=(p.flags&128)!==0;if(T=(v&m.childLanes)!==0,T||(pv(p,m,v,!1),T=(v&m.childLanes)!==0),N){if(T)return VBe(p,m,v);m.flags|=128}if(N=m.memoizedState,N!==null&&(N.rendering=null,N.tail=null,N.lastEffect=null),Ee(Da,Da.current),T)break;return null;case 22:return m.lanes=0,NBe(p,m,v,m.pendingProps);case 24:r0(m,R,p.memoizedState.cache)}return gb(p,m,v)}function WBe(p,m,v){if(p!==null)if(p.memoizedProps!==m.pendingProps)Qa=!0;else{if(!Mde(p,v)&&(m.flags&128)===0)return Qa=!1,fQt(p,m,v);Qa=(p.flags&131072)!==0}else Qa=!1,ps&&(m.flags&1048576)!==0&&$$(m,tD,m.index);switch(m.lanes=0,m.tag){case 16:e:{var T=m.pendingProps;if(p=rD(m.elementType),m.type=p,typeof p=="function")dv(p)?(T=uD(p,T),m.tag=1,m=RBe(null,m,p,T,v)):(m.tag=0,m=Tde(null,m,p,T,v));else{if(p!=null){var N=p.$$typeof;if(N===k){m.tag=11,m=kBe(null,m,p,T,v);break e}else if(N===M){m.tag=14,m=LBe(null,m,p,T,v);break e}}throw m=K(p)||p,Error(n(306,m,""))}}return m;case 0:return Tde(p,m,m.type,m.pendingProps,v);case 1:return T=m.type,N=uD(T,m.pendingProps),RBe(p,m,T,N,v);case 3:e:{if($e(m,m.stateNode.containerInfo),p===null)throw Error(n(387));T=m.pendingProps;var P=m.memoizedState;N=P.element,ede(p,m),XO(m,T,null,v);var j=m.memoizedState;if(T=j.cache,r0(m,R,T),T!==P.cache&&jO(m,[R],v,!0),YO(),T=j.element,P.isDehydrated)if(P={element:T,isDehydrated:!1,cache:j.cache},m.updateQueue.baseState=P,m.memoizedState=P,m.flags&256){m=OBe(p,m,T,v);break e}else if(T!==N){N=Cu(Error(n(424)),m),nD(N),m=OBe(p,m,T,v);break e}else{switch(p=m.stateNode.containerInfo,p.nodeType){case 9:p=p.body;break;default:p=p.nodeName==="HTML"?p.ownerDocument.body:p}for(qr=$f(p.firstChild),gl=m,ps=!0,s0=null,Bd=!0,v=N7e(m,null,T,v),m.child=v;v;)v.flags=v.flags&-3|4096,v=v.sibling}else{if(hb(),T===N){m=gb(p,m,v);break e}wu(p,m,T,v)}m=m.child}return m;case 26:return oU(p,m),p===null?(v=QVe(m.type,null,m.pendingProps,null))?m.memoizedState=v:ps||(v=m.type,p=m.pendingProps,T=SU(Ue.current).createElement(v),T[wi]=m,T[Ot]=p,Su(T,v,p),rs(T),m.stateNode=T):m.memoizedState=QVe(m.type,p.memoizedProps,m.pendingProps,p.memoizedState),null;case 27:return $t(m),p===null&&ps&&(T=m.stateNode=KVe(m.type,m.pendingProps,Ue.current),gl=m,Bd=!0,N=qr,Tv(m.type)?(fhe=N,qr=$f(T.firstChild)):qr=N),wu(p,m,m.pendingProps.children,v),oU(p,m),p===null&&(m.flags|=4194304),m.child;case 5:return p===null&&ps&&((N=T=qr)&&(T=UQt(T,m.type,m.pendingProps,Bd),T!==null?(m.stateNode=T,gl=m,qr=$f(T.firstChild),Bd=!1,N=!0):N=!1),N||cg(m)),$t(m),N=m.type,P=m.pendingProps,j=p!==null?p.memoizedProps:null,T=P.children,lhe(N,P)?T=null:j!==null&&lhe(N,j)&&(m.flags|=32),m.memoizedState!==null&&(N=ade(p,m,sQt,null,null,v),mF._currentValue=N),oU(p,m),wu(p,m,T,v),m.child;case 6:return p===null&&ps&&((p=v=qr)&&(v=zQt(v,m.pendingProps,Bd),v!==null?(m.stateNode=v,gl=m,qr=null,p=!0):p=!1),p||cg(m)),null;case 13:return FBe(p,m,v);case 4:return $e(m,m.stateNode.containerInfo),T=m.pendingProps,p===null?m.child=aD(m,null,T,v):wu(p,m,T,v),m.child;case 11:return kBe(p,m,m.type,m.pendingProps,v);case 7:return wu(p,m,m.pendingProps,v),m.child;case 8:return wu(p,m,m.pendingProps.children,v),m.child;case 12:return wu(p,m,m.pendingProps.children,v),m.child;case 10:return T=m.pendingProps,r0(m,m.type,T.value),wu(p,m,T.children,v),m.child;case 9:return N=m.type._context,T=m.pendingProps.children,Mh(m),N=Ya(N),T=T(N),m.flags|=1,wu(p,m,T,v),m.child;case 14:return LBe(p,m,m.type,m.pendingProps,v);case 15:return ABe(p,m,m.type,m.pendingProps,v);case 19:return VBe(p,m,v);case 31:return hQt(p,m,v);case 22:return NBe(p,m,v,m.pendingProps);case 24:return Mh(m),T=Ya(R),p===null?(N=Bs(),N===null&&(N=no,P=z(),N.pooledCache=P,P.refCount++,P!==null&&(N.pooledCacheLanes|=v),N=P),m.memoizedState={parent:T,cache:N},Jce(m),r0(m,R,N)):((p.lanes&v)!==0&&(ede(p,m),XO(m,null,null,v),YO()),N=p.memoizedState,P=m.memoizedState,N.parent!==T?(N={parent:T,cache:T},m.memoizedState=N,m.lanes===0&&(m.memoizedState=m.updateQueue.baseState=N),r0(m,R,T)):(T=P.cache,r0(m,R,T),T!==N.cache&&jO(m,[R],v,!0))),wu(p,m,m.pendingProps.children,v),m.child;case 29:throw m.pendingProps}throw Error(n(156,m.tag))}function mb(p){p.flags|=4}function Rde(p,m,v,T,N){if((m=(p.mode&32)!==0)&&(m=!1),m){if(p.flags|=16777216,(N&335544128)===N)if(p.stateNode.complete)p.flags|=8192;else if(fVe())p.flags|=8192;else throw oD=j$,sD}else p.flags&=-16777217}function HBe(p,m){if(m.type!=="stylesheet"||(m.state.loading&4)!==0)p.flags&=-16777217;else if(p.flags|=16777216,!iWe(m))if(fVe())p.flags|=8192;else throw oD=j$,sD}function lU(p,m){m!==null&&(p.flags|=4),p.flags&16384&&(m=p.tag!==22?ti():536870912,p.lanes|=m,ML|=m)}function iF(p,m){if(!ps)switch(p.tailMode){case"hidden":m=p.tail;for(var v=null;m!==null;)m.alternate!==null&&(v=m),m=m.sibling;v===null?p.tail=null:v.sibling=null;break;case"collapsed":v=p.tail;for(var T=null;v!==null;)v.alternate!==null&&(T=v),v=v.sibling;T===null?m||p.tail===null?p.tail=null:p.tail.sibling=null:T.sibling=null}}function So(p){var m=p.alternate!==null&&p.alternate.child===p.child,v=0,T=0;if(m)for(var N=p.child;N!==null;)v|=N.lanes|N.childLanes,T|=N.subtreeFlags&65011712,T|=N.flags&65011712,N.return=p,N=N.sibling;else for(N=p.child;N!==null;)v|=N.lanes|N.childLanes,T|=N.subtreeFlags,T|=N.flags,N.return=p,N=N.sibling;return p.subtreeFlags|=T,p.childLanes=v,m}function pQt(p,m,v){var T=m.pendingProps;switch(WO(m),m.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return So(m),null;case 1:return So(m),null;case 3:return v=m.stateNode,T=null,p!==null&&(T=p.memoizedState.cache),m.memoizedState.cache!==T&&(m.flags|=2048),Wf(R),Dt(),v.pendingContext&&(v.context=v.pendingContext,v.pendingContext=null),(p===null||p.child===null)&&(fv(m)?mb(m):p===null||p.memoizedState.isDehydrated&&(m.flags&256)===0||(m.flags|=1024,iD())),So(m),null;case 26:var N=m.type,P=m.memoizedState;return p===null?(mb(m),P!==null?(So(m),HBe(m,P)):(So(m),Rde(m,N,null,T,v))):P?P!==p.memoizedState?(mb(m),So(m),HBe(m,P)):(So(m),m.flags&=-16777217):(p=p.memoizedProps,p!==T&&mb(m),So(m),Rde(m,N,p,T,v)),null;case 27:if(ii(m),v=Ue.current,N=m.type,p!==null&&m.stateNode!=null)p.memoizedProps!==T&&mb(m);else{if(!T){if(m.stateNode===null)throw Error(n(166));return So(m),null}p=we.current,fv(m)?U$(m):(p=KVe(N,T,v),m.stateNode=p,mb(m))}return So(m),null;case 5:if(ii(m),N=m.type,p!==null&&m.stateNode!=null)p.memoizedProps!==T&&mb(m);else{if(!T){if(m.stateNode===null)throw Error(n(166));return So(m),null}if(P=we.current,fv(m))U$(m);else{var j=SU(Ue.current);switch(P){case 1:P=j.createElementNS("http://www.w3.org/2000/svg",N);break;case 2:P=j.createElementNS("http://www.w3.org/1998/Math/MathML",N);break;default:switch(N){case"svg":P=j.createElementNS("http://www.w3.org/2000/svg",N);break;case"math":P=j.createElementNS("http://www.w3.org/1998/Math/MathML",N);break;case"script":P=j.createElement("div"),P.innerHTML="<script><\/script>",P=P.removeChild(P.firstChild);break;case"select":P=typeof T.is=="string"?j.createElement("select",{is:T.is}):j.createElement("select"),T.multiple?P.multiple=!0:T.size&&(P.size=T.size);break;default:P=typeof T.is=="string"?j.createElement(N,{is:T.is}):j.createElement(N)}}P[wi]=m,P[Ot]=T;e:for(j=m.child;j!==null;){if(j.tag===5||j.tag===6)P.appendChild(j.stateNode);else if(j.tag!==4&&j.tag!==27&&j.child!==null){j.child.return=j,j=j.child;continue}if(j===m)break e;for(;j.sibling===null;){if(j.return===null||j.return===m)break e;j=j.return}j.sibling.return=j.return,j=j.sibling}m.stateNode=P;e:switch(Su(P,N,T),N){case"button":case"input":case"select":case"textarea":T=!!T.autoFocus;break e;case"img":T=!0;break e;default:T=!1}T&&mb(m)}}return So(m),Rde(m,m.type,p===null?null:p.memoizedProps,m.pendingProps,v),null;case 6:if(p&&m.stateNode!=null)p.memoizedProps!==T&&mb(m);else{if(typeof T!="string"&&m.stateNode===null)throw Error(n(166));if(p=Ue.current,fv(m)){if(p=m.stateNode,v=m.memoizedProps,T=null,N=gl,N!==null)switch(N.tag){case 27:case 5:T=N.memoizedProps}p[wi]=m,p=!!(p.nodeValue===v||T!==null&&T.suppressHydrationWarning===!0||FVe(p.nodeValue,v)),p||cg(m,!0)}else p=SU(p).createTextNode(T),p[wi]=m,m.stateNode=p}return So(m),null;case 31:if(v=m.memoizedState,p===null||p.memoizedState!==null){if(T=fv(m),v!==null){if(p===null){if(!T)throw Error(n(318));if(p=m.memoizedState,p=p!==null?p.dehydrated:null,!p)throw Error(n(557));p[wi]=m}else hb(),(m.flags&128)===0&&(m.memoizedState=null),m.flags|=4;So(m),p=!1}else v=iD(),p!==null&&p.memoizedState!==null&&(p.memoizedState.hydrationErrors=v),p=!0;if(!p)return m.flags&256?(Oh(m),m):(Oh(m),null);if((m.flags&128)!==0)throw Error(n(558))}return So(m),null;case 13:if(T=m.memoizedState,p===null||p.memoizedState!==null&&p.memoizedState.dehydrated!==null){if(N=fv(m),T!==null&&T.dehydrated!==null){if(p===null){if(!N)throw Error(n(318));if(N=m.memoizedState,N=N!==null?N.dehydrated:null,!N)throw Error(n(317));N[wi]=m}else hb(),(m.flags&128)===0&&(m.memoizedState=null),m.flags|=4;So(m),N=!1}else N=iD(),p!==null&&p.memoizedState!==null&&(p.memoizedState.hydrationErrors=N),N=!0;if(!N)return m.flags&256?(Oh(m),m):(Oh(m),null)}return Oh(m),(m.flags&128)!==0?(m.lanes=v,m):(v=T!==null,p=p!==null&&p.memoizedState!==null,v&&(T=m.child,N=null,T.alternate!==null&&T.alternate.memoizedState!==null&&T.alternate.memoizedState.cachePool!==null&&(N=T.alternate.memoizedState.cachePool.pool),P=null,T.memoizedState!==null&&T.memoizedState.cachePool!==null&&(P=T.memoizedState.cachePool.pool),P!==N&&(T.flags|=2048)),v!==p&&v&&(m.child.flags|=8192),lU(m,m.updateQueue),So(m),null);case 4:return Dt(),p===null&&nhe(m.stateNode.containerInfo),So(m),null;case 10:return Wf(m.type),So(m),null;case 19:if(J(Da),T=m.memoizedState,T===null)return So(m),null;if(N=(m.flags&128)!==0,P=T.rendering,P===null)if(N)iF(T,!1);else{if(ua!==0||p!==null&&(p.flags&128)!==0)for(p=m.child;p!==null;){if(P=Y$(p),P!==null){for(m.flags|=128,iF(T,!1),p=P.updateQueue,m.updateQueue=p,lU(m,p),m.subtreeFlags=0,p=v,v=m.child;v!==null;)H$(v,p),v=v.sibling;return Ee(Da,Da.current&1|2),ps&&ug(m,T.treeForkCount),m.child}p=p.sibling}T.tail!==null&&bt()>fU&&(m.flags|=128,N=!0,iF(T,!1),m.lanes=4194304)}else{if(!N)if(p=Y$(P),p!==null){if(m.flags|=128,N=!0,p=p.updateQueue,m.updateQueue=p,lU(m,p),iF(T,!0),T.tail===null&&T.tailMode==="hidden"&&!P.alternate&&!ps)return So(m),null}else 2*bt()-T.renderingStartTime>fU&&v!==536870912&&(m.flags|=128,N=!0,iF(T,!1),m.lanes=4194304);T.isBackwards?(P.sibling=m.child,m.child=P):(p=T.last,p!==null?p.sibling=P:m.child=P,T.last=P)}return T.tail!==null?(p=T.tail,T.rendering=p,T.tail=p.sibling,T.renderingStartTime=bt(),p.sibling=null,v=Da.current,Ee(Da,N?v&1|2:v&1),ps&&ug(m,T.treeForkCount),p):(So(m),null);case 22:case 23:return Oh(m),sde(),T=m.memoizedState!==null,p!==null?p.memoizedState!==null!==T&&(m.flags|=8192):T&&(m.flags|=8192),T?(v&536870912)!==0&&(m.flags&128)===0&&(So(m),m.subtreeFlags&6&&(m.flags|=8192)):So(m),v=m.updateQueue,v!==null&&lU(m,v.retryQueue),v=null,p!==null&&p.memoizedState!==null&&p.memoizedState.cachePool!==null&&(v=p.memoizedState.cachePool.pool),T=null,m.memoizedState!==null&&m.memoizedState.cachePool!==null&&(T=m.memoizedState.cachePool.pool),T!==v&&(m.flags|=2048),p!==null&&J(Rr),null;case 24:return v=null,p!==null&&(v=p.memoizedState.cache),m.memoizedState.cache!==v&&(m.flags|=2048),Wf(R),So(m),null;case 25:return null;case 30:return null}throw Error(n(156,m.tag))}function gQt(p,m){switch(WO(m),m.tag){case 1:return p=m.flags,p&65536?(m.flags=p&-65537|128,m):null;case 3:return Wf(R),Dt(),p=m.flags,(p&65536)!==0&&(p&128)===0?(m.flags=p&-65537|128,m):null;case 26:case 27:case 5:return ii(m),null;case 31:if(m.memoizedState!==null){if(Oh(m),m.alternate===null)throw Error(n(340));hb()}return p=m.flags,p&65536?(m.flags=p&-65537|128,m):null;case 13:if(Oh(m),p=m.memoizedState,p!==null&&p.dehydrated!==null){if(m.alternate===null)throw Error(n(340));hb()}return p=m.flags,p&65536?(m.flags=p&-65537|128,m):null;case 19:return J(Da),null;case 4:return Dt(),null;case 10:return Wf(m.type),null;case 22:case 23:return Oh(m),sde(),p!==null&&J(Rr),p=m.flags,p&65536?(m.flags=p&-65537|128,m):null;case 24:return Wf(R),null;case 25:return null;default:return null}}function $Be(p,m){switch(WO(m),m.tag){case 3:Wf(R),Dt();break;case 26:case 27:case 5:ii(m);break;case 4:Dt();break;case 31:m.memoizedState!==null&&Oh(m);break;case 13:Oh(m);break;case 19:J(Da);break;case 10:Wf(m.type);break;case 22:case 23:Oh(m),sde(),p!==null&&J(Rr);break;case 24:Wf(R)}}function nF(p,m){try{var v=m.updateQueue,T=v!==null?v.lastEffect:null;if(T!==null){var N=T.next;v=N;do{if((v.tag&p)===p){T=void 0;var P=v.create,j=v.inst;T=P(),j.destroy=T}v=v.next}while(v!==N)}}catch(ce){Fr(m,m.return,ce)}}function vv(p,m,v){try{var T=m.updateQueue,N=T!==null?T.lastEffect:null;if(N!==null){var P=N.next;T=P;do{if((T.tag&p)===p){var j=T.inst,ce=j.destroy;if(ce!==void 0){j.destroy=void 0,N=m;var Le=v,Je=ce;try{Je()}catch(Ct){Fr(N,Le,Ct)}}}T=T.next}while(T!==P)}}catch(Ct){Fr(m,m.return,Ct)}}function UBe(p){var m=p.updateQueue;if(m!==null){var v=p.stateNode;try{P7e(m,v)}catch(T){Fr(p,p.return,T)}}}function zBe(p,m,v){v.props=uD(p.type,p.memoizedProps),v.state=p.memoizedState;try{v.componentWillUnmount()}catch(T){Fr(p,m,T)}}function sF(p,m){try{var v=p.ref;if(v!==null){switch(p.tag){case 26:case 27:case 5:var T=p.stateNode;break;case 30:T=p.stateNode;break;default:T=p.stateNode}typeof v=="function"?p.refCleanup=v(T):v.current=T}}catch(N){Fr(p,m,N)}}function a0(p,m){var v=p.ref,T=p.refCleanup;if(v!==null)if(typeof T=="function")try{T()}catch(N){Fr(p,m,N)}finally{p.refCleanup=null,p=p.alternate,p!=null&&(p.refCleanup=null)}else if(typeof v=="function")try{v(null)}catch(N){Fr(p,m,N)}else v.current=null}function jBe(p){var m=p.type,v=p.memoizedProps,T=p.stateNode;try{e:switch(m){case"button":case"input":case"select":case"textarea":v.autoFocus&&T.focus();break e;case"img":v.src?T.src=v.src:v.srcSet&&(T.srcset=v.srcSet)}}catch(N){Fr(p,p.return,N)}}function Ode(p,m,v){try{var T=p.stateNode;FQt(T,p.type,v,m),T[Ot]=m}catch(N){Fr(p,p.return,N)}}function qBe(p){return p.tag===5||p.tag===3||p.tag===26||p.tag===27&&Tv(p.type)||p.tag===4}function Fde(p){e:for(;;){for(;p.sibling===null;){if(p.return===null||qBe(p.return))return null;p=p.return}for(p.sibling.return=p.return,p=p.sibling;p.tag!==5&&p.tag!==6&&p.tag!==18;){if(p.tag===27&&Tv(p.type)||p.flags&2||p.child===null||p.tag===4)continue e;p.child.return=p,p=p.child}if(!(p.flags&2))return p.stateNode}}function Bde(p,m,v){var T=p.tag;if(T===5||T===6)p=p.stateNode,m?(v.nodeType===9?v.body:v.nodeName==="HTML"?v.ownerDocument.body:v).insertBefore(p,m):(m=v.nodeType===9?v.body:v.nodeName==="HTML"?v.ownerDocument.body:v,m.appendChild(p),v=v._reactRootContainer,v!=null||m.onclick!==null||(m.onclick=Cs));else if(T!==4&&(T===27&&Tv(p.type)&&(v=p.stateNode,m=null),p=p.child,p!==null))for(Bde(p,m,v),p=p.sibling;p!==null;)Bde(p,m,v),p=p.sibling}function uU(p,m,v){var T=p.tag;if(T===5||T===6)p=p.stateNode,m?v.insertBefore(p,m):v.appendChild(p);else if(T!==4&&(T===27&&Tv(p.type)&&(v=p.stateNode),p=p.child,p!==null))for(uU(p,m,v),p=p.sibling;p!==null;)uU(p,m,v),p=p.sibling}function GBe(p){var m=p.stateNode,v=p.memoizedProps;try{for(var T=p.type,N=m.attributes;N.length;)m.removeAttributeNode(N[0]);Su(m,T,v),m[wi]=p,m[Ot]=v}catch(P){Fr(p,p.return,P)}}var _b=!1,Za=!1,Vde=!1,KBe=typeof WeakSet=="function"?WeakSet:Set,$l=null;function mQt(p,m){if(p=p.containerInfo,ohe=AU,p=Gx(p),e0(p)){if("selectionStart"in p)var v={start:p.selectionStart,end:p.selectionEnd};else e:{v=(v=p.ownerDocument)&&v.defaultView||window;var T=v.getSelection&&v.getSelection();if(T&&T.rangeCount!==0){v=T.anchorNode;var N=T.anchorOffset,P=T.focusNode;T=T.focusOffset;try{v.nodeType,P.nodeType}catch{v=null;break e}var j=0,ce=-1,Le=-1,Je=0,Ct=0,kt=p,nt=null;t:for(;;){for(var ct;kt!==v||N!==0&&kt.nodeType!==3||(ce=j+N),kt!==P||T!==0&&kt.nodeType!==3||(Le=j+T),kt.nodeType===3&&(j+=kt.nodeValue.length),(ct=kt.firstChild)!==null;)nt=kt,kt=ct;for(;;){if(kt===p)break t;if(nt===v&&++Je===N&&(ce=j),nt===P&&++Ct===T&&(Le=j),(ct=kt.nextSibling)!==null)break;kt=nt,nt=kt.parentNode}kt=ct}v=ce===-1||Le===-1?null:{start:ce,end:Le}}else v=null}v=v||{start:0,end:0}}else v=null;for(ahe={focusedElem:p,selectionRange:v},AU=!1,$l=m;$l!==null;)if(m=$l,p=m.child,(m.subtreeFlags&1028)!==0&&p!==null)p.return=m,$l=p;else for(;$l!==null;){switch(m=$l,P=m.alternate,p=m.flags,m.tag){case 0:if((p&4)!==0&&(p=m.updateQueue,p=p!==null?p.events:null,p!==null))for(v=0;v<p.length;v++)N=p[v],N.ref.impl=N.nextImpl;break;case 11:case 15:break;case 1:if((p&1024)!==0&&P!==null){p=void 0,v=m,N=P.memoizedProps,P=P.memoizedState,T=v.stateNode;try{var Ni=uD(v.type,N);p=T.getSnapshotBeforeUpdate(Ni,P),T.__reactInternalSnapshotBeforeUpdate=p}catch(gn){Fr(v,v.return,gn)}}break;case 3:if((p&1024)!==0){if(p=m.stateNode.containerInfo,v=p.nodeType,v===9)che(p);else if(v===1)switch(p.nodeName){case"HEAD":case"HTML":case"BODY":che(p);break;default:p.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((p&1024)!==0)throw Error(n(163))}if(p=m.sibling,p!==null){p.return=m.return,$l=p;break}$l=m.return}}function YBe(p,m,v){var T=v.flags;switch(v.tag){case 0:case 11:case 15:yb(p,v),T&4&&nF(5,v);break;case 1:if(yb(p,v),T&4)if(p=v.stateNode,m===null)try{p.componentDidMount()}catch(j){Fr(v,v.return,j)}else{var N=uD(v.type,m.memoizedProps);m=m.memoizedState;try{p.componentDidUpdate(N,m,p.__reactInternalSnapshotBeforeUpdate)}catch(j){Fr(v,v.return,j)}}T&64&&UBe(v),T&512&&sF(v,v.return);break;case 3:if(yb(p,v),T&64&&(p=v.updateQueue,p!==null)){if(m=null,v.child!==null)switch(v.child.tag){case 27:case 5:m=v.child.stateNode;break;case 1:m=v.child.stateNode}try{P7e(p,m)}catch(j){Fr(v,v.return,j)}}break;case 27:m===null&&T&4&&GBe(v);case 26:case 5:yb(p,v),m===null&&T&4&&jBe(v),T&512&&sF(v,v.return);break;case 12:yb(p,v);break;case 31:yb(p,v),T&4&&ZBe(p,v);break;case 13:yb(p,v),T&4&&JBe(p,v),T&64&&(p=v.memoizedState,p!==null&&(p=p.dehydrated,p!==null&&(v=DQt.bind(null,v),jQt(p,v))));break;case 22:if(T=v.memoizedState!==null||_b,!T){m=m!==null&&m.memoizedState!==null||Za,N=_b;var P=Za;_b=T,(Za=m)&&!P?vb(p,v,(v.subtreeFlags&8772)!==0):yb(p,v),_b=N,Za=P}break;case 30:break;default:yb(p,v)}}function XBe(p){var m=p.alternate;m!==null&&(p.alternate=null,XBe(m)),p.child=null,p.deletions=null,p.sibling=null,p.tag===5&&(m=p.stateNode,m!==null&&Bt(m)),p.stateNode=null,p.return=null,p.dependencies=null,p.memoizedProps=null,p.memoizedState=null,p.pendingProps=null,p.stateNode=null,p.updateQueue=null}var No=null,Vd=!1;function bb(p,m,v){for(v=v.child;v!==null;)QBe(p,m,v),v=v.sibling}function QBe(p,m,v){if(ai&&typeof ai.onCommitFiberUnmount=="function")try{ai.onCommitFiberUnmount(Ei,v)}catch{}switch(v.tag){case 26:Za||a0(v,m),bb(p,m,v),v.memoizedState?v.memoizedState.count--:v.stateNode&&(v=v.stateNode,v.parentNode.removeChild(v));break;case 27:Za||a0(v,m);var T=No,N=Vd;Tv(v.type)&&(No=v.stateNode,Vd=!1),bb(p,m,v),fF(v.stateNode),No=T,Vd=N;break;case 5:Za||a0(v,m);case 6:if(T=No,N=Vd,No=null,bb(p,m,v),No=T,Vd=N,No!==null)if(Vd)try{(No.nodeType===9?No.body:No.nodeName==="HTML"?No.ownerDocument.body:No).removeChild(v.stateNode)}catch(P){Fr(v,m,P)}else try{No.removeChild(v.stateNode)}catch(P){Fr(v,m,P)}break;case 18:No!==null&&(Vd?(p=No,UVe(p.nodeType===9?p.body:p.nodeName==="HTML"?p.ownerDocument.body:p,v.stateNode),$L(p)):UVe(No,v.stateNode));break;case 4:T=No,N=Vd,No=v.stateNode.containerInfo,Vd=!0,bb(p,m,v),No=T,Vd=N;break;case 0:case 11:case 14:case 15:vv(2,v,m),Za||vv(4,v,m),bb(p,m,v);break;case 1:Za||(a0(v,m),T=v.stateNode,typeof T.componentWillUnmount=="function"&&zBe(v,m,T)),bb(p,m,v);break;case 21:bb(p,m,v);break;case 22:Za=(T=Za)||v.memoizedState!==null,bb(p,m,v),Za=T;break;default:bb(p,m,v)}}function ZBe(p,m){if(m.memoizedState===null&&(p=m.alternate,p!==null&&(p=p.memoizedState,p!==null))){p=p.dehydrated;try{$L(p)}catch(v){Fr(m,m.return,v)}}}function JBe(p,m){if(m.memoizedState===null&&(p=m.alternate,p!==null&&(p=p.memoizedState,p!==null&&(p=p.dehydrated,p!==null))))try{$L(p)}catch(v){Fr(m,m.return,v)}}function _Qt(p){switch(p.tag){case 31:case 13:case 19:var m=p.stateNode;return m===null&&(m=p.stateNode=new KBe),m;case 22:return p=p.stateNode,m=p._retryCache,m===null&&(m=p._retryCache=new KBe),m;default:throw Error(n(435,p.tag))}}function cU(p,m){var v=_Qt(p);m.forEach(function(T){if(!v.has(T)){v.add(T);var N=EQt.bind(null,p,T);T.then(N,N)}})}function Wd(p,m){var v=m.deletions;if(v!==null)for(var T=0;T<v.length;T++){var N=v[T],P=p,j=m,ce=j;e:for(;ce!==null;){switch(ce.tag){case 27:if(Tv(ce.type)){No=ce.stateNode,Vd=!1;break e}break;case 5:No=ce.stateNode,Vd=!1;break e;case 3:case 4:No=ce.stateNode.containerInfo,Vd=!0;break e}ce=ce.return}if(No===null)throw Error(n(160));QBe(P,j,N),No=null,Vd=!1,P=N.alternate,P!==null&&(P.return=null),N.return=null}if(m.subtreeFlags&13886)for(m=m.child;m!==null;)eVe(m,p),m=m.sibling}var fg=null;function eVe(p,m){var v=p.alternate,T=p.flags;switch(p.tag){case 0:case 11:case 14:case 15:Wd(m,p),Hd(p),T&4&&(vv(3,p,p.return),nF(3,p),vv(5,p,p.return));break;case 1:Wd(m,p),Hd(p),T&512&&(Za||v===null||a0(v,v.return)),T&64&&_b&&(p=p.updateQueue,p!==null&&(T=p.callbacks,T!==null&&(v=p.shared.hiddenCallbacks,p.shared.hiddenCallbacks=v===null?T:v.concat(T))));break;case 26:var N=fg;if(Wd(m,p),Hd(p),T&512&&(Za||v===null||a0(v,v.return)),T&4){var P=v!==null?v.memoizedState:null;if(T=p.memoizedState,v===null)if(T===null)if(p.stateNode===null){e:{T=p.type,v=p.memoizedProps,N=N.ownerDocument||N;t:switch(T){case"title":P=N.getElementsByTagName("title")[0],(!P||P[Pe]||P[wi]||P.namespaceURI==="http://www.w3.org/2000/svg"||P.hasAttribute("itemprop"))&&(P=N.createElement(T),N.head.insertBefore(P,N.querySelector("head > title"))),Su(P,T,v),P[wi]=p,rs(P),T=P;break e;case"link":var j=eWe("link","href",N).get(T+(v.href||""));if(j){for(var ce=0;ce<j.length;ce++)if(P=j[ce],P.getAttribute("href")===(v.href==null||v.href===""?null:v.href)&&P.getAttribute("rel")===(v.rel==null?null:v.rel)&&P.getAttribute("title")===(v.title==null?null:v.title)&&P.getAttribute("crossorigin")===(v.crossOrigin==null?null:v.crossOrigin)){j.splice(ce,1);break t}}P=N.createElement(T),Su(P,T,v),N.head.appendChild(P);break;case"meta":if(j=eWe("meta","content",N).get(T+(v.content||""))){for(ce=0;ce<j.length;ce++)if(P=j[ce],P.getAttribute("content")===(v.content==null?null:""+v.content)&&P.getAttribute("name")===(v.name==null?null:v.name)&&P.getAttribute("property")===(v.property==null?null:v.property)&&P.getAttribute("http-equiv")===(v.httpEquiv==null?null:v.httpEquiv)&&P.getAttribute("charset")===(v.charSet==null?null:v.charSet)){j.splice(ce,1);break t}}P=N.createElement(T),Su(P,T,v),N.head.appendChild(P);break;default:throw Error(n(468,T))}P[wi]=p,rs(P),T=P}p.stateNode=T}else tWe(N,p.type,p.stateNode);else p.stateNode=JVe(N,T,p.memoizedProps);else P!==T?(P===null?v.stateNode!==null&&(v=v.stateNode,v.parentNode.removeChild(v)):P.count--,T===null?tWe(N,p.type,p.stateNode):JVe(N,T,p.memoizedProps)):T===null&&p.stateNode!==null&&Ode(p,p.memoizedProps,v.memoizedProps)}break;case 27:Wd(m,p),Hd(p),T&512&&(Za||v===null||a0(v,v.return)),v!==null&&T&4&&Ode(p,p.memoizedProps,v.memoizedProps);break;case 5:if(Wd(m,p),Hd(p),T&512&&(Za||v===null||a0(v,v.return)),p.flags&32){N=p.stateNode;try{Ge(N,"")}catch(Ni){Fr(p,p.return,Ni)}}T&4&&p.stateNode!=null&&(N=p.memoizedProps,Ode(p,N,v!==null?v.memoizedProps:N)),T&1024&&(Vde=!0);break;case 6:if(Wd(m,p),Hd(p),T&4){if(p.stateNode===null)throw Error(n(162));T=p.memoizedProps,v=p.stateNode;try{v.nodeValue=T}catch(Ni){Fr(p,p.return,Ni)}}break;case 3:if(EU=null,N=fg,fg=xU(m.containerInfo),Wd(m,p),fg=N,Hd(p),T&4&&v!==null&&v.memoizedState.isDehydrated)try{$L(m.containerInfo)}catch(Ni){Fr(p,p.return,Ni)}Vde&&(Vde=!1,tVe(p));break;case 4:T=fg,fg=xU(p.stateNode.containerInfo),Wd(m,p),Hd(p),fg=T;break;case 12:Wd(m,p),Hd(p);break;case 31:Wd(m,p),Hd(p),T&4&&(T=p.updateQueue,T!==null&&(p.updateQueue=null,cU(p,T)));break;case 13:Wd(m,p),Hd(p),p.child.flags&8192&&p.memoizedState!==null!=(v!==null&&v.memoizedState!==null)&&(hU=bt()),T&4&&(T=p.updateQueue,T!==null&&(p.updateQueue=null,cU(p,T)));break;case 22:N=p.memoizedState!==null;var Le=v!==null&&v.memoizedState!==null,Je=_b,Ct=Za;if(_b=Je||N,Za=Ct||Le,Wd(m,p),Za=Ct,_b=Je,Hd(p),T&8192)e:for(m=p.stateNode,m._visibility=N?m._visibility&-2:m._visibility|1,N&&(v===null||Le||_b||Za||cD(p)),v=null,m=p;;){if(m.tag===5||m.tag===26){if(v===null){Le=v=m;try{if(P=Le.stateNode,N)j=P.style,typeof j.setProperty=="function"?j.setProperty("display","none","important"):j.display="none";else{ce=Le.stateNode;var kt=Le.memoizedProps.style,nt=kt!=null&&kt.hasOwnProperty("display")?kt.display:null;ce.style.display=nt==null||typeof nt=="boolean"?"":(""+nt).trim()}}catch(Ni){Fr(Le,Le.return,Ni)}}}else if(m.tag===6){if(v===null){Le=m;try{Le.stateNode.nodeValue=N?"":Le.memoizedProps}catch(Ni){Fr(Le,Le.return,Ni)}}}else if(m.tag===18){if(v===null){Le=m;try{var ct=Le.stateNode;N?zVe(ct,!0):zVe(Le.stateNode,!1)}catch(Ni){Fr(Le,Le.return,Ni)}}}else if((m.tag!==22&&m.tag!==23||m.memoizedState===null||m===p)&&m.child!==null){m.child.return=m,m=m.child;continue}if(m===p)break e;for(;m.sibling===null;){if(m.return===null||m.return===p)break e;v===m&&(v=null),m=m.return}v===m&&(v=null),m.sibling.return=m.return,m=m.sibling}T&4&&(T=p.updateQueue,T!==null&&(v=T.retryQueue,v!==null&&(T.retryQueue=null,cU(p,v))));break;case 19:Wd(m,p),Hd(p),T&4&&(T=p.updateQueue,T!==null&&(p.updateQueue=null,cU(p,T)));break;case 30:break;case 21:break;default:Wd(m,p),Hd(p)}}function Hd(p){var m=p.flags;if(m&2){try{for(var v,T=p.return;T!==null;){if(qBe(T)){v=T;break}T=T.return}if(v==null)throw Error(n(160));switch(v.tag){case 27:var N=v.stateNode,P=Fde(p);uU(p,P,N);break;case 5:var j=v.stateNode;v.flags&32&&(Ge(j,""),v.flags&=-33);var ce=Fde(p);uU(p,ce,j);break;case 3:case 4:var Le=v.stateNode.containerInfo,Je=Fde(p);Bde(p,Je,Le);break;default:throw Error(n(161))}}catch(Ct){Fr(p,p.return,Ct)}p.flags&=-3}m&4096&&(p.flags&=-4097)}function tVe(p){if(p.subtreeFlags&1024)for(p=p.child;p!==null;){var m=p;tVe(m),m.tag===5&&m.flags&1024&&m.stateNode.reset(),p=p.sibling}}function yb(p,m){if(m.subtreeFlags&8772)for(m=m.child;m!==null;)YBe(p,m.alternate,m),m=m.sibling}function cD(p){for(p=p.child;p!==null;){var m=p;switch(m.tag){case 0:case 11:case 14:case 15:vv(4,m,m.return),cD(m);break;case 1:a0(m,m.return);var v=m.stateNode;typeof v.componentWillUnmount=="function"&&zBe(m,m.return,v),cD(m);break;case 27:fF(m.stateNode);case 26:case 5:a0(m,m.return),cD(m);break;case 22:m.memoizedState===null&&cD(m);break;case 30:cD(m);break;default:cD(m)}p=p.sibling}}function vb(p,m,v){for(v=v&&(m.subtreeFlags&8772)!==0,m=m.child;m!==null;){var T=m.alternate,N=p,P=m,j=P.flags;switch(P.tag){case 0:case 11:case 15:vb(N,P,v),nF(4,P);break;case 1:if(vb(N,P,v),T=P,N=T.stateNode,typeof N.componentDidMount=="function")try{N.componentDidMount()}catch(Je){Fr(T,T.return,Je)}if(T=P,N=T.updateQueue,N!==null){var ce=T.stateNode;try{var Le=N.shared.hiddenCallbacks;if(Le!==null)for(N.shared.hiddenCallbacks=null,N=0;N<Le.length;N++)I7e(Le[N],ce)}catch(Je){Fr(T,T.return,Je)}}v&&j&64&&UBe(P),sF(P,P.return);break;case 27:GBe(P);case 26:case 5:vb(N,P,v),v&&T===null&&j&4&&jBe(P),sF(P,P.return);break;case 12:vb(N,P,v);break;case 31:vb(N,P,v),v&&j&4&&ZBe(N,P);break;case 13:vb(N,P,v),v&&j&4&&JBe(N,P);break;case 22:P.memoizedState===null&&vb(N,P,v),sF(P,P.return);break;case 30:break;default:vb(N,P,v)}m=m.sibling}}function Wde(p,m){var v=null;p!==null&&p.memoizedState!==null&&p.memoizedState.cachePool!==null&&(v=p.memoizedState.cachePool.pool),p=null,m.memoizedState!==null&&m.memoizedState.cachePool!==null&&(p=m.memoizedState.cachePool.pool),p!==v&&(p!=null&&p.refCount++,v!=null&&te(v))}function Hde(p,m){p=null,m.alternate!==null&&(p=m.alternate.memoizedState.cache),m=m.memoizedState.cache,m!==p&&(m.refCount++,p!=null&&te(p))}function pg(p,m,v,T){if(m.subtreeFlags&10256)for(m=m.child;m!==null;)iVe(p,m,v,T),m=m.sibling}function iVe(p,m,v,T){var N=m.flags;switch(m.tag){case 0:case 11:case 15:pg(p,m,v,T),N&2048&&nF(9,m);break;case 1:pg(p,m,v,T);break;case 3:pg(p,m,v,T),N&2048&&(p=null,m.alternate!==null&&(p=m.alternate.memoizedState.cache),m=m.memoizedState.cache,m!==p&&(m.refCount++,p!=null&&te(p)));break;case 12:if(N&2048){pg(p,m,v,T),p=m.stateNode;try{var P=m.memoizedProps,j=P.id,ce=P.onPostCommit;typeof ce=="function"&&ce(j,m.alternate===null?"mount":"update",p.passiveEffectDuration,-0)}catch(Le){Fr(m,m.return,Le)}}else pg(p,m,v,T);break;case 31:pg(p,m,v,T);break;case 13:pg(p,m,v,T);break;case 23:break;case 22:P=m.stateNode,j=m.alternate,m.memoizedState!==null?P._visibility&2?pg(p,m,v,T):rF(p,m):P._visibility&2?pg(p,m,v,T):(P._visibility|=2,NL(p,m,v,T,(m.subtreeFlags&10256)!==0||!1)),N&2048&&Wde(j,m);break;case 24:pg(p,m,v,T),N&2048&&Hde(m.alternate,m);break;default:pg(p,m,v,T)}}function NL(p,m,v,T,N){for(N=N&&((m.subtreeFlags&10256)!==0||!1),m=m.child;m!==null;){var P=p,j=m,ce=v,Le=T,Je=j.flags;switch(j.tag){case 0:case 11:case 15:NL(P,j,ce,Le,N),nF(8,j);break;case 23:break;case 22:var Ct=j.stateNode;j.memoizedState!==null?Ct._visibility&2?NL(P,j,ce,Le,N):rF(P,j):(Ct._visibility|=2,NL(P,j,ce,Le,N)),N&&Je&2048&&Wde(j.alternate,j);break;case 24:NL(P,j,ce,Le,N),N&&Je&2048&&Hde(j.alternate,j);break;default:NL(P,j,ce,Le,N)}m=m.sibling}}function rF(p,m){if(m.subtreeFlags&10256)for(m=m.child;m!==null;){var v=p,T=m,N=T.flags;switch(T.tag){case 22:rF(v,T),N&2048&&Wde(T.alternate,T);break;case 24:rF(v,T),N&2048&&Hde(T.alternate,T);break;default:rF(v,T)}m=m.sibling}}var oF=8192;function IL(p,m,v){if(p.subtreeFlags&oF)for(p=p.child;p!==null;)nVe(p,m,v),p=p.sibling}function nVe(p,m,v){switch(p.tag){case 26:IL(p,m,v),p.flags&oF&&p.memoizedState!==null&&nZt(v,fg,p.memoizedState,p.memoizedProps);break;case 5:IL(p,m,v);break;case 3:case 4:var T=fg;fg=xU(p.stateNode.containerInfo),IL(p,m,v),fg=T;break;case 22:p.memoizedState===null&&(T=p.alternate,T!==null&&T.memoizedState!==null?(T=oF,oF=16777216,IL(p,m,v),oF=T):IL(p,m,v));break;default:IL(p,m,v)}}function sVe(p){var m=p.alternate;if(m!==null&&(p=m.child,p!==null)){m.child=null;do m=p.sibling,p.sibling=null,p=m;while(p!==null)}}function aF(p){var m=p.deletions;if((p.flags&16)!==0){if(m!==null)for(var v=0;v<m.length;v++){var T=m[v];$l=T,oVe(T,p)}sVe(p)}if(p.subtreeFlags&10256)for(p=p.child;p!==null;)rVe(p),p=p.sibling}function rVe(p){switch(p.tag){case 0:case 11:case 15:aF(p),p.flags&2048&&vv(9,p,p.return);break;case 3:aF(p);break;case 12:aF(p);break;case 22:var m=p.stateNode;p.memoizedState!==null&&m._visibility&2&&(p.return===null||p.return.tag!==13)?(m._visibility&=-3,dU(p)):aF(p);break;default:aF(p)}}function dU(p){var m=p.deletions;if((p.flags&16)!==0){if(m!==null)for(var v=0;v<m.length;v++){var T=m[v];$l=T,oVe(T,p)}sVe(p)}for(p=p.child;p!==null;){switch(m=p,m.tag){case 0:case 11:case 15:vv(8,m,m.return),dU(m);break;case 22:v=m.stateNode,v._visibility&2&&(v._visibility&=-3,dU(m));break;default:dU(m)}p=p.sibling}}function oVe(p,m){for(;$l!==null;){var v=$l;switch(v.tag){case 0:case 11:case 15:vv(8,v,m);break;case 23:case 22:if(v.memoizedState!==null&&v.memoizedState.cachePool!==null){var T=v.memoizedState.cachePool.pool;T!=null&&T.refCount++}break;case 24:te(v.memoizedState.cache)}if(T=v.child,T!==null)T.return=v,$l=T;else e:for(v=p;$l!==null;){T=$l;var N=T.sibling,P=T.return;if(XBe(T),T===v){$l=null;break e}if(N!==null){N.return=P,$l=N;break e}$l=P}}}var bQt={getCacheForType:function(p){var m=Ya(R),v=m.data.get(p);return v===void 0&&(v=p(),m.data.set(p,v)),v},cacheSignal:function(){return Ya(R).controller.signal}},yQt=typeof WeakMap=="function"?WeakMap:Map,vr=0,no=null,ws=null,Es=0,Or=0,Fh=null,Cv=!1,PL=!1,$de=!1,Cb=0,ua=0,wv=0,dD=0,Ude=0,Bh=0,ML=0,lF=null,$d=null,zde=!1,hU=0,aVe=0,fU=1/0,pU=null,Sv=null,ml=0,xv=null,RL=null,wb=0,jde=0,qde=null,lVe=null,uF=0,Gde=null;function Vh(){return(vr&2)!==0&&Es!==0?Es&-Es:Y.T!==null?Jde():Qt()}function uVe(){if(Bh===0)if((Es&536870912)===0||ps){var p=aa;aa<<=1,(aa&3932160)===0&&(aa=262144),Bh=p}else Bh=536870912;return p=Rh.current,p!==null&&(p.flags|=32),Bh}function Ud(p,m,v){(p===no&&(Or===2||Or===9)||p.cancelPendingCommit!==null)&&(OL(p,0),Dv(p,Es,Bh,!1)),ue(p,v),((vr&2)===0||p!==no)&&(p===no&&((vr&2)===0&&(dD|=v),ua===4&&Dv(p,Es,Bh,!1)),l0(p))}function cVe(p,m,v){if((vr&6)!==0)throw Error(n(327));var T=!v&&(m&127)===0&&(m&p.expiredLanes)===0||an(p,m),N=T?wQt(p,m):Yde(p,m,!0),P=T;do{if(N===0){PL&&!T&&Dv(p,m,0,!1);break}else{if(v=p.current.alternate,P&&!vQt(v)){N=Yde(p,m,!1),P=!1;continue}if(N===2){if(P=m,p.errorRecoveryDisabledLanes&P)var j=0;else j=p.pendingLanes&-536870913,j=j!==0?j:j&536870912?536870912:0;if(j!==0){m=j;e:{var ce=p;N=lF;var Le=ce.current.memoizedState.isDehydrated;if(Le&&(OL(ce,j).flags|=256),j=Yde(ce,j,!1),j!==2){if($de&&!Le){ce.errorRecoveryDisabledLanes|=P,dD|=P,N=4;break e}P=$d,$d=N,P!==null&&($d===null?$d=P:$d.push.apply($d,P))}N=j}if(P=!1,N!==2)continue}}if(N===1){OL(p,0),Dv(p,m,0,!0);break}e:{switch(T=p,P=N,P){case 0:case 1:throw Error(n(345));case 4:if((m&4194048)!==m)break;case 6:Dv(T,m,Bh,!Cv);break e;case 2:$d=null;break;case 3:case 5:break;default:throw Error(n(329))}if((m&62914560)===m&&(N=hU+300-bt(),10<N)){if(Dv(T,m,Bh,!Cv),ji(T,0,!0)!==0)break e;wb=m,T.timeoutHandle=HVe(dVe.bind(null,T,v,$d,pU,zde,m,Bh,dD,ML,Cv,P,"Throttled",-0,0),N);break e}dVe(T,v,$d,pU,zde,m,Bh,dD,ML,Cv,P,null,-0,0)}}break}while(!0);l0(p)}function dVe(p,m,v,T,N,P,j,ce,Le,Je,Ct,kt,nt,ct){if(p.timeoutHandle=-1,kt=m.subtreeFlags,kt&8192||(kt&16785408)===16785408){kt={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Cs},nVe(m,P,kt);var Ni=(P&62914560)===P?hU-bt():(P&4194048)===P?aVe-bt():0;if(Ni=sZt(kt,Ni),Ni!==null){wb=P,p.cancelPendingCommit=Ni(yVe.bind(null,p,m,P,v,T,N,j,ce,Le,Ct,kt,null,nt,ct)),Dv(p,P,j,!Je);return}}yVe(p,m,P,v,T,N,j,ce,Le)}function vQt(p){for(var m=p;;){var v=m.tag;if((v===0||v===11||v===15)&&m.flags&16384&&(v=m.updateQueue,v!==null&&(v=v.stores,v!==null)))for(var T=0;T<v.length;T++){var N=v[T],P=N.getSnapshot;N=N.value;try{if(!Oc(P(),N))return!1}catch{return!1}}if(v=m.child,m.subtreeFlags&16384&&v!==null)v.return=m,m=v;else{if(m===p)break;for(;m.sibling===null;){if(m.return===null||m.return===p)return!0;m=m.return}m.sibling.return=m.return,m=m.sibling}}return!0}function Dv(p,m,v,T){m&=~Ude,m&=~dD,p.suspendedLanes|=m,p.pingedLanes&=~m,T&&(p.warmLanes|=m),T=p.expirationTimes;for(var N=m;0<N;){var P=31-Mn(N),j=1<<P;T[P]=-1,N&=~j}v!==0&&Se(p,v,m)}function gU(){return(vr&6)===0?(cF(0),!1):!0}function Kde(){if(ws!==null){if(Or===0)var p=ws.return;else p=ws,hg=dg=null,cde(p),EL=null,qO=0,p=ws;for(;p!==null;)$Be(p.alternate,p),p=p.return;ws=null}}function OL(p,m){var v=p.timeoutHandle;v!==-1&&(p.timeoutHandle=-1,WQt(v)),v=p.cancelPendingCommit,v!==null&&(p.cancelPendingCommit=null,v()),wb=0,Kde(),no=p,ws=v=Bf(p.current,null),Es=m,Or=0,Fh=null,Cv=!1,PL=an(p,m),$de=!1,ML=Bh=Ude=dD=wv=ua=0,$d=lF=null,zde=!1,(m&8)!==0&&(m|=m&32);var T=p.entangledLanes;if(T!==0)for(p=p.entanglements,T&=m;0<T;){var N=31-Mn(T),P=1<<N;m|=p[N],T&=~P}return Cb=m,uv(),v}function hVe(p,m){Xn=null,Y.H=eF,m===o0||m===z$?(m=k7e(),Or=3):m===sD?(m=k7e(),Or=4):Or=m===Ede?8:m!==null&&typeof m=="object"&&typeof m.then=="function"?6:1,Fh=m,ws===null&&(ua=1,sU(p,Cu(m,p.current)))}function fVe(){var p=Rh.current;return p===null?!0:(Es&4194048)===Es?Hf===null:(Es&62914560)===Es||(Es&536870912)!==0?p===Hf:!1}function pVe(){var p=Y.H;return Y.H=eF,p===null?eF:p}function gVe(){var p=Y.A;return Y.A=bQt,p}function mU(){ua=4,Cv||(Es&4194048)!==Es&&Rh.current!==null||(PL=!0),(wv&134217727)===0&&(dD&134217727)===0||no===null||Dv(no,Es,Bh,!1)}function Yde(p,m,v){var T=vr;vr|=2;var N=pVe(),P=gVe();(no!==p||Es!==m)&&(pU=null,OL(p,m)),m=!1;var j=ua;e:do try{if(Or!==0&&ws!==null){var ce=ws,Le=Fh;switch(Or){case 8:Kde(),j=6;break e;case 3:case 2:case 9:case 6:Rh.current===null&&(m=!0);var Je=Or;if(Or=0,Fh=null,FL(p,ce,Le,Je),v&&PL){j=0;break e}break;default:Je=Or,Or=0,Fh=null,FL(p,ce,Le,Je)}}CQt(),j=ua;break}catch(Ct){hVe(p,Ct)}while(!0);return m&&p.shellSuspendCounter++,hg=dg=null,vr=T,Y.H=N,Y.A=P,ws===null&&(no=null,Es=0,uv()),j}function CQt(){for(;ws!==null;)mVe(ws)}function wQt(p,m){var v=vr;vr|=2;var T=pVe(),N=gVe();no!==p||Es!==m?(pU=null,fU=bt()+500,OL(p,m)):PL=an(p,m);e:do try{if(Or!==0&&ws!==null){m=ws;var P=Fh;t:switch(Or){case 1:Or=0,Fh=null,FL(p,m,P,1);break;case 2:case 9:if(E7e(P)){Or=0,Fh=null,_Ve(m);break}m=function(){Or!==2&&Or!==9||no!==p||(Or=7),l0(p)},P.then(m,m);break e;case 3:Or=7;break e;case 4:Or=5;break e;case 7:E7e(P)?(Or=0,Fh=null,_Ve(m)):(Or=0,Fh=null,FL(p,m,P,7));break;case 5:var j=null;switch(ws.tag){case 26:j=ws.memoizedState;case 5:case 27:var ce=ws;if(j?iWe(j):ce.stateNode.complete){Or=0,Fh=null;var Le=ce.sibling;if(Le!==null)ws=Le;else{var Je=ce.return;Je!==null?(ws=Je,_U(Je)):ws=null}break t}}Or=0,Fh=null,FL(p,m,P,5);break;case 6:Or=0,Fh=null,FL(p,m,P,6);break;case 8:Kde(),ua=6;break e;default:throw Error(n(462))}}SQt();break}catch(Ct){hVe(p,Ct)}while(!0);return hg=dg=null,Y.H=T,Y.A=N,vr=v,ws!==null?0:(no=null,Es=0,uv(),ua)}function SQt(){for(;ws!==null&&!Ve();)mVe(ws)}function mVe(p){var m=WBe(p.alternate,p,Cb);p.memoizedProps=p.pendingProps,m===null?_U(p):ws=m}function _Ve(p){var m=p,v=m.alternate;switch(m.tag){case 15:case 0:m=MBe(v,m,m.pendingProps,m.type,void 0,Es);break;case 11:m=MBe(v,m,m.pendingProps,m.type.render,m.ref,Es);break;case 5:cde(m);default:$Be(v,m),m=ws=H$(m,Cb),m=WBe(v,m,Cb)}p.memoizedProps=p.pendingProps,m===null?_U(p):ws=m}function FL(p,m,v,T){hg=dg=null,cde(m),EL=null,qO=0;var N=m.return;try{if(dQt(p,N,m,v,Es)){ua=1,sU(p,Cu(v,p.current)),ws=null;return}}catch(P){if(N!==null)throw ws=N,P;ua=1,sU(p,Cu(v,p.current)),ws=null;return}m.flags&32768?(ps||T===1?p=!0:PL||(Es&536870912)!==0?p=!1:(Cv=p=!0,(T===2||T===9||T===3||T===6)&&(T=Rh.current,T!==null&&T.tag===13&&(T.flags|=16384))),bVe(m,p)):_U(m)}function _U(p){var m=p;do{if((m.flags&32768)!==0){bVe(m,Cv);return}p=m.return;var v=pQt(m.alternate,m,Cb);if(v!==null){ws=v;return}if(m=m.sibling,m!==null){ws=m;return}ws=m=p}while(m!==null);ua===0&&(ua=5)}function bVe(p,m){do{var v=gQt(p.alternate,p);if(v!==null){v.flags&=32767,ws=v;return}if(v=p.return,v!==null&&(v.flags|=32768,v.subtreeFlags=0,v.deletions=null),!m&&(p=p.sibling,p!==null)){ws=p;return}ws=p=v}while(p!==null);ua=6,ws=null}function yVe(p,m,v,T,N,P,j,ce,Le){p.cancelPendingCommit=null;do bU();while(ml!==0);if((vr&6)!==0)throw Error(n(327));if(m!==null){if(m===p.current)throw Error(n(177));if(P=m.lanes|m.childLanes,P|=RO,pe(p,v,P,j,ce,Le),p===no&&(ws=no=null,Es=0),RL=m,xv=p,wb=v,jde=P,qde=N,lVe=T,(m.subtreeFlags&10256)!==0||(m.flags&10256)!==0?(p.callbackNode=null,p.callbackPriority=0,TQt(Xt,function(){return xVe(),null})):(p.callbackNode=null,p.callbackPriority=0),T=(m.flags&13878)!==0,(m.subtreeFlags&13878)!==0||T){T=Y.T,Y.T=null,N=de.p,de.p=2,j=vr,vr|=4;try{mQt(p,m,v)}finally{vr=j,de.p=N,Y.T=T}}ml=1,vVe(),CVe(),wVe()}}function vVe(){if(ml===1){ml=0;var p=xv,m=RL,v=(m.flags&13878)!==0;if((m.subtreeFlags&13878)!==0||v){v=Y.T,Y.T=null;var T=de.p;de.p=2;var N=vr;vr|=4;try{eVe(m,p);var P=ahe,j=Gx(p.containerInfo),ce=P.focusedElem,Le=P.selectionRange;if(j!==ce&&ce&&ce.ownerDocument&&M$(ce.ownerDocument.documentElement,ce)){if(Le!==null&&e0(ce)){var Je=Le.start,Ct=Le.end;if(Ct===void 0&&(Ct=Je),"selectionStart"in ce)ce.selectionStart=Je,ce.selectionEnd=Math.min(Ct,ce.value.length);else{var kt=ce.ownerDocument||document,nt=kt&&kt.defaultView||window;if(nt.getSelection){var ct=nt.getSelection(),Ni=ce.textContent.length,gn=Math.min(Le.start,Ni),Yr=Le.end===void 0?gn:Math.min(Le.end,Ni);!ct.extend&&gn>Yr&&(j=Yr,Yr=gn,gn=j);var je=P$(ce,gn),Re=P$(ce,Yr);if(je&&Re&&(ct.rangeCount!==1||ct.anchorNode!==je.node||ct.anchorOffset!==je.offset||ct.focusNode!==Re.node||ct.focusOffset!==Re.offset)){var Xe=kt.createRange();Xe.setStart(je.node,je.offset),ct.removeAllRanges(),gn>Yr?(ct.addRange(Xe),ct.extend(Re.node,Re.offset)):(Xe.setEnd(Re.node,Re.offset),ct.addRange(Xe))}}}}for(kt=[],ct=ce;ct=ct.parentNode;)ct.nodeType===1&&kt.push({element:ct,left:ct.scrollLeft,top:ct.scrollTop});for(typeof ce.focus=="function"&&ce.focus(),ce=0;ce<kt.length;ce++){var xt=kt[ce];xt.element.scrollLeft=xt.left,xt.element.scrollTop=xt.top}}AU=!!ohe,ahe=ohe=null}finally{vr=N,de.p=T,Y.T=v}}p.current=m,ml=2}}function CVe(){if(ml===2){ml=0;var p=xv,m=RL,v=(m.flags&8772)!==0;if((m.subtreeFlags&8772)!==0||v){v=Y.T,Y.T=null;var T=de.p;de.p=2;var N=vr;vr|=4;try{YBe(p,m.alternate,m)}finally{vr=N,de.p=T,Y.T=v}}ml=3}}function wVe(){if(ml===4||ml===3){ml=0,ft();var p=xv,m=RL,v=wb,T=lVe;(m.subtreeFlags&10256)!==0||(m.flags&10256)!==0?ml=5:(ml=0,RL=xv=null,SVe(p,p.pendingLanes));var N=p.pendingLanes;if(N===0&&(Sv=null),Wt(v),m=m.stateNode,ai&&typeof ai.onCommitFiberRoot=="function")try{ai.onCommitFiberRoot(Ei,m,void 0,(m.current.flags&128)===128)}catch{}if(T!==null){m=Y.T,N=de.p,de.p=2,Y.T=null;try{for(var P=p.onRecoverableError,j=0;j<T.length;j++){var ce=T[j];P(ce.value,{componentStack:ce.stack})}}finally{Y.T=m,de.p=N}}(wb&3)!==0&&bU(),l0(p),N=p.pendingLanes,(v&261930)!==0&&(N&42)!==0?p===Gde?uF++:(uF=0,Gde=p):uF=0,cF(0)}}function SVe(p,m){(p.pooledCacheLanes&=m)===0&&(m=p.pooledCache,m!=null&&(p.pooledCache=null,te(m)))}function bU(){return vVe(),CVe(),wVe(),xVe()}function xVe(){if(ml!==5)return!1;var p=xv,m=jde;jde=0;var v=Wt(wb),T=Y.T,N=de.p;try{de.p=32>v?32:v,Y.T=null,v=qde,qde=null;var P=xv,j=wb;if(ml=0,RL=xv=null,wb=0,(vr&6)!==0)throw Error(n(331));var ce=vr;if(vr|=4,rVe(P.current),iVe(P,P.current,j,v),vr=ce,cF(0,!1),ai&&typeof ai.onPostCommitFiberRoot=="function")try{ai.onPostCommitFiberRoot(Ei,P)}catch{}return!0}finally{de.p=N,Y.T=T,SVe(p,m)}}function DVe(p,m,v){m=Cu(v,m),m=Dde(p.stateNode,m,2),p=_v(p,m,2),p!==null&&(ue(p,2),l0(p))}function Fr(p,m,v){if(p.tag===3)DVe(p,p,v);else for(;m!==null;){if(m.tag===3){DVe(m,p,v);break}else if(m.tag===1){var T=m.stateNode;if(typeof m.type.getDerivedStateFromError=="function"||typeof T.componentDidCatch=="function"&&(Sv===null||!Sv.has(T))){p=Cu(v,p),v=EBe(2),T=_v(m,v,2),T!==null&&(TBe(v,T,m,p),ue(T,2),l0(T));break}}m=m.return}}function Xde(p,m,v){var T=p.pingCache;if(T===null){T=p.pingCache=new yQt;var N=new Set;T.set(m,N)}else N=T.get(m),N===void 0&&(N=new Set,T.set(m,N));N.has(v)||($de=!0,N.add(v),p=xQt.bind(null,p,m,v),m.then(p,p))}function xQt(p,m,v){var T=p.pingCache;T!==null&&T.delete(m),p.pingedLanes|=p.suspendedLanes&v,p.warmLanes&=~v,no===p&&(Es&v)===v&&(ua===4||ua===3&&(Es&62914560)===Es&&300>bt()-hU?(vr&2)===0&&OL(p,0):Ude|=v,ML===Es&&(ML=0)),l0(p)}function EVe(p,m){m===0&&(m=ti()),p=Nh(p,m),p!==null&&(ue(p,m),l0(p))}function DQt(p){var m=p.memoizedState,v=0;m!==null&&(v=m.retryLane),EVe(p,v)}function EQt(p,m){var v=0;switch(p.tag){case 31:case 13:var T=p.stateNode,N=p.memoizedState;N!==null&&(v=N.retryLane);break;case 19:T=p.stateNode;break;case 22:T=p.stateNode._retryCache;break;default:throw Error(n(314))}T!==null&&T.delete(m),EVe(p,v)}function TQt(p,m){return Kt(p,m)}var yU=null,BL=null,Qde=!1,vU=!1,Zde=!1,Ev=0;function l0(p){p!==BL&&p.next===null&&(BL===null?yU=BL=p:BL=BL.next=p),vU=!0,Qde||(Qde=!0,LQt())}function cF(p,m){if(!Zde&&vU){Zde=!0;do for(var v=!1,T=yU;T!==null;){if(p!==0){var N=T.pendingLanes;if(N===0)var P=0;else{var j=T.suspendedLanes,ce=T.pingedLanes;P=(1<<31-Mn(42|p)+1)-1,P&=N&~(j&~ce),P=P&201326741?P&201326741|1:P?P|2:0}P!==0&&(v=!0,AVe(T,P))}else P=Es,P=ji(T,T===no?P:0,T.cancelPendingCommit!==null||T.timeoutHandle!==-1),(P&3)===0||an(T,P)||(v=!0,AVe(T,P));T=T.next}while(v);Zde=!1}}function kQt(){TVe()}function TVe(){vU=Qde=!1;var p=0;Ev!==0&&VQt()&&(p=Ev);for(var m=bt(),v=null,T=yU;T!==null;){var N=T.next,P=kVe(T,m);P===0?(T.next=null,v===null?yU=N:v.next=N,N===null&&(BL=v)):(v=T,(p!==0||(P&3)!==0)&&(vU=!0)),T=N}ml!==0&&ml!==5||cF(p),Ev!==0&&(Ev=0)}function kVe(p,m){for(var v=p.suspendedLanes,T=p.pingedLanes,N=p.expirationTimes,P=p.pendingLanes&-62914561;0<P;){var j=31-Mn(P),ce=1<<j,Le=N[j];Le===-1?((ce&v)===0||(ce&T)!==0)&&(N[j]=es(ce,m)):Le<=m&&(p.expiredLanes|=ce),P&=~ce}if(m=no,v=Es,v=ji(p,p===m?v:0,p.cancelPendingCommit!==null||p.timeoutHandle!==-1),T=p.callbackNode,v===0||p===m&&(Or===2||Or===9)||p.cancelPendingCommit!==null)return T!==null&&T!==null&&Et(T),p.callbackNode=null,p.callbackPriority=0;if((v&3)===0||an(p,v)){if(m=v&-v,m===p.callbackPriority)return m;switch(T!==null&&Et(T),Wt(v)){case 2:case 8:v=zi;break;case 32:v=Xt;break;case 268435456:v=mi;break;default:v=Xt}return T=LVe.bind(null,p),v=Kt(v,T),p.callbackPriority=m,p.callbackNode=v,m}return T!==null&&T!==null&&Et(T),p.callbackPriority=2,p.callbackNode=null,2}function LVe(p,m){if(ml!==0&&ml!==5)return p.callbackNode=null,p.callbackPriority=0,null;var v=p.callbackNode;if(bU()&&p.callbackNode!==v)return null;var T=Es;return T=ji(p,p===no?T:0,p.cancelPendingCommit!==null||p.timeoutHandle!==-1),T===0?null:(cVe(p,T,m),kVe(p,bt()),p.callbackNode!=null&&p.callbackNode===v?LVe.bind(null,p):null)}function AVe(p,m){if(bU())return null;cVe(p,m,!0)}function LQt(){HQt(function(){(vr&6)!==0?Kt(ki,kQt):TVe()})}function Jde(){if(Ev===0){var p=be;p===0&&(p=qs,qs<<=1,(qs&261888)===0&&(qs=256)),Ev=p}return Ev}function NVe(p){return p==null||typeof p=="symbol"||typeof p=="boolean"?null:typeof p=="function"?p:wn(""+p)}function IVe(p,m){var v=m.ownerDocument.createElement("input");return v.name=m.name,v.value=m.value,p.id&&v.setAttribute("form",p.id),m.parentNode.insertBefore(v,m),p=new FormData(p),v.parentNode.removeChild(v),p}function AQt(p,m,v,T,N){if(m==="submit"&&v&&v.stateNode===N){var P=NVe((N[Ot]||null).action),j=T.submitter;j&&(m=(m=j[Ot]||null)?NVe(m.formAction):j.getAttribute("formAction"),m!==null&&(P=m,j=null));var ce=new _o("action","action",null,T,N);p.push({event:ce,listeners:[{instance:null,listener:function(){if(T.defaultPrevented){if(Ev!==0){var Le=j?IVe(N,j):new FormData(N);yde(v,{pending:!0,data:Le,method:N.method,action:P},null,Le)}}else typeof P=="function"&&(ce.preventDefault(),Le=j?IVe(N,j):new FormData(N),yde(v,{pending:!0,data:Le,method:N.method,action:P},P,Le))},currentTarget:N}]})}}for(var ehe=0;ehe<MO.length;ehe++){var the=MO[ehe],NQt=the.toLowerCase(),IQt=the[0].toUpperCase()+the.slice(1);Od(NQt,"on"+IQt)}Od(Xx,"onAnimationEnd"),Od(F$,"onAnimationIteration"),Od(PO,"onAnimationStart"),Od("dblclick","onDoubleClick"),Od("focusin","onFocus"),Od("focusout","onBlur"),Od(Qce,"onTransitionRun"),Od(Qx,"onTransitionStart"),Od(i0,"onTransitionCancel"),Od(B$,"onTransitionEnd"),rr("onMouseEnter",["mouseout","mouseover"]),rr("onMouseLeave",["mouseout","mouseover"]),rr("onPointerEnter",["pointerout","pointerover"]),rr("onPointerLeave",["pointerout","pointerover"]),sr("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),sr("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),sr("onBeforeInput",["compositionend","keypress","textInput","paste"]),sr("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),sr("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),sr("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var dF="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(" "),PQt=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(dF));function PVe(p,m){m=(m&4)!==0;for(var v=0;v<p.length;v++){var T=p[v],N=T.event;T=T.listeners;e:{var P=void 0;if(m)for(var j=T.length-1;0<=j;j--){var ce=T[j],Le=ce.instance,Je=ce.currentTarget;if(ce=ce.listener,Le!==P&&N.isPropagationStopped())break e;P=ce,N.currentTarget=Je;try{P(N)}catch(Ct){cb(Ct)}N.currentTarget=null,P=Le}else for(j=0;j<T.length;j++){if(ce=T[j],Le=ce.instance,Je=ce.currentTarget,ce=ce.listener,Le!==P&&N.isPropagationStopped())break e;P=ce,N.currentTarget=Je;try{P(N)}catch(Ct){cb(Ct)}N.currentTarget=null,P=Le}}}}function Ss(p,m){var v=m[Fs];v===void 0&&(v=m[Fs]=new Set);var T=p+"__bubble";v.has(T)||(MVe(m,p,2,!1),v.add(T))}function ihe(p,m,v){var T=0;m&&(T|=4),MVe(v,p,T,m)}var CU="_reactListening"+Math.random().toString(36).slice(2);function nhe(p){if(!p[CU]){p[CU]=!0,Wl.forEach(function(v){v!=="selectionchange"&&(PQt.has(v)||ihe(v,!1,p),ihe(v,!0,p))});var m=p.nodeType===9?p:p.ownerDocument;m===null||m[CU]||(m[CU]=!0,ihe("selectionchange",!1,m))}}function MVe(p,m,v,T){switch(uWe(m)){case 2:var N=aZt;break;case 8:N=lZt;break;default:N=bhe}v=N.bind(null,m,v,p),N=void 0,!Te||m!=="touchstart"&&m!=="touchmove"&&m!=="wheel"||(N=!0),T?N!==void 0?p.addEventListener(m,v,{capture:!0,passive:N}):p.addEventListener(m,v,!0):N!==void 0?p.addEventListener(m,v,{passive:N}):p.addEventListener(m,v,!1)}function she(p,m,v,T,N){var P=T;if((m&1)===0&&(m&2)===0&&T!==null)e:for(;;){if(T===null)return;var j=T.tag;if(j===3||j===4){var ce=T.stateNode.containerInfo;if(ce===N)break;if(j===4)for(j=T.return;j!==null;){var Le=j.tag;if((Le===3||Le===4)&&j.stateNode.containerInfo===N)return;j=j.return}for(;ce!==null;){if(j=He(ce),j===null)return;if(Le=j.tag,Le===5||Le===6||Le===26||Le===27){T=P=j;continue e}ce=ce.parentNode}}T=T.return}V(function(){var Je=P,Ct=Md(v),kt=[];e:{var nt=V$.get(p);if(nt!==void 0){var ct=_o,Ni=p;switch(p){case"keypress":if(wo(v)===0)break e;case"keydown":case"keyup":ct=v$;break;case"focusin":Ni="focus",ct=zx;break;case"focusout":Ni="blur",ct=zx;break;case"beforeblur":case"afterblur":ct=zx;break;case"click":if(v.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":ct=nv;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":ct=xO;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":ct=$ce;break;case Xx:case F$:case PO:ct=TO;break;case B$:ct=zce;break;case"scroll":case"scrollend":ct=Rce;break;case"wheel":ct=Jm;break;case"copy":case"cut":case"paste":ct=is;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":ct=gL;break;case"toggle":case"beforetoggle":ct=qce}var gn=(m&4)!==0,Yr=!gn&&(p==="scroll"||p==="scrollend"),je=gn?nt!==null?nt+"Capture":null:nt;gn=[];for(var Re=Je,Xe;Re!==null;){var xt=Re;if(Xe=xt.stateNode,xt=xt.tag,xt!==5&&xt!==26&&xt!==27||Xe===null||je===null||(xt=ne(Re,je),xt!=null&&gn.push(hF(Re,xt,Xe))),Yr)break;Re=Re.return}0<gn.length&&(nt=new ct(nt,Ni,null,v,Ct),kt.push({event:nt,listeners:gn}))}}if((m&7)===0){e:{if(nt=p==="mouseover"||p==="pointerover",ct=p==="mouseout"||p==="pointerout",nt&&v!==Mr&&(Ni=v.relatedTarget||v.fromElement)&&(He(Ni)||Ni[Cn]))break e;if((ct||nt)&&(nt=Ct.window===Ct?Ct:(nt=Ct.ownerDocument)?nt.defaultView||nt.parentWindow:window,ct?(Ni=v.relatedTarget||v.toElement,ct=Je,Ni=Ni?He(Ni):null,Ni!==null&&(Yr=r(Ni),gn=Ni.tag,Ni!==Yr||gn!==5&&gn!==27&&gn!==6)&&(Ni=null)):(ct=null,Ni=Je),ct!==Ni)){if(gn=nv,xt="onMouseLeave",je="onMouseEnter",Re="mouse",(p==="pointerout"||p==="pointerover")&&(gn=gL,xt="onPointerLeave",je="onPointerEnter",Re="pointer"),Yr=ct==null?nt:Gs(ct),Xe=Ni==null?nt:Gs(Ni),nt=new gn(xt,Re+"leave",ct,v,Ct),nt.target=Yr,nt.relatedTarget=Xe,xt=null,He(Ct)===Je&&(gn=new gn(je,Re+"enter",Ni,v,Ct),gn.target=Xe,gn.relatedTarget=Yr,xt=gn),Yr=xt,ct&&Ni)t:{for(gn=MQt,je=ct,Re=Ni,Xe=0,xt=je;xt;xt=gn(xt))Xe++;xt=0;for(var sn=Re;sn;sn=gn(sn))xt++;for(;0<Xe-xt;)je=gn(je),Xe--;for(;0<xt-Xe;)Re=gn(Re),xt--;for(;Xe--;){if(je===Re||Re!==null&&je===Re.alternate){gn=je;break t}je=gn(je),Re=gn(Re)}gn=null}else gn=null;ct!==null&&RVe(kt,nt,ct,gn,!1),Ni!==null&&Yr!==null&&RVe(kt,Yr,Ni,gn,!0)}}e:{if(nt=Je?Gs(Je):window,ct=nt.nodeName&&nt.nodeName.toLowerCase(),ct==="select"||ct==="input"&&nt.type==="file")var pr=k$;else if(D$(nt))if(L$)pr=Xce;else{pr=Yce;var Hi=Kce}else ct=nt.nodeName,!ct||ct.toLowerCase()!=="input"||nt.type!=="checkbox"&&nt.type!=="radio"?Je&&ln(Je.elementType)&&(pr=k$):pr=Ji;if(pr&&(pr=pr(p,Je))){E$(kt,pr,v,Ct);break e}Hi&&Hi(p,nt,Je),p==="focusout"&&Je&&nt.type==="number"&&Je.memoizedProps.value!=null&&$x(nt,"number",nt.value)}switch(Hi=Je?Gs(Je):window,p){case"focusin":(D$(Hi)||Hi.contentEditable==="true")&&(t0=Hi,Kx=Je,Yx=null);break;case"focusout":Yx=Kx=t0=null;break;case"mousedown":ag=!0;break;case"contextmenu":case"mouseup":case"dragend":ag=!1,lg(kt,v,Ct);break;case"selectionchange":if(R$)break;case"keydown":case"keyup":lg(kt,v,Ct)}var ns;if(Ah)e:{switch(p){case"compositionstart":var Ts="onCompositionStart";break e;case"compositionend":Ts="onCompositionEnd";break e;case"compositionupdate":Ts="onCompositionUpdate";break e}Ts=void 0}else Ku?x$(p,v)&&(Ts="onCompositionEnd"):p==="keydown"&&v.keyCode===229&&(Ts="onCompositionStart");Ts&&(w$&&v.locale!=="ko"&&(Ku||Ts!=="onCompositionStart"?Ts==="onCompositionEnd"&&Ku&&(ns=io()):(dt=Ct,qi="value"in dt?dt.value:dt.textContent,Ku=!0)),Hi=wU(Je,Ts),0<Hi.length&&(Ts=new Ks(Ts,p,null,v,Ct),kt.push({event:Ts,listeners:Hi}),ns?Ts.data=ns:(ns=bL(v),ns!==null&&(Ts.data=ns)))),(ns=C$?sv(p,v):LO(p,v))&&(Ts=wU(Je,"onBeforeInput"),0<Ts.length&&(Hi=new Ks("onBeforeInput","beforeinput",null,v,Ct),kt.push({event:Hi,listeners:Ts}),Hi.data=ns)),AQt(kt,p,Je,v,Ct)}PVe(kt,m)})}function hF(p,m,v){return{instance:p,listener:m,currentTarget:v}}function wU(p,m){for(var v=m+"Capture",T=[];p!==null;){var N=p,P=N.stateNode;if(N=N.tag,N!==5&&N!==26&&N!==27||P===null||(N=ne(p,v),N!=null&&T.unshift(hF(p,N,P)),N=ne(p,m),N!=null&&T.push(hF(p,N,P))),p.tag===3)return T;p=p.return}return[]}function MQt(p){if(p===null)return null;do p=p.return;while(p&&p.tag!==5&&p.tag!==27);return p||null}function RVe(p,m,v,T,N){for(var P=m._reactName,j=[];v!==null&&v!==T;){var ce=v,Le=ce.alternate,Je=ce.stateNode;if(ce=ce.tag,Le!==null&&Le===T)break;ce!==5&&ce!==26&&ce!==27||Je===null||(Le=Je,N?(Je=ne(v,P),Je!=null&&j.unshift(hF(v,Je,Le))):N||(Je=ne(v,P),Je!=null&&j.push(hF(v,Je,Le)))),v=v.return}j.length!==0&&p.push({event:m,listeners:j})}var RQt=/\r\n?/g,OQt=/\u0000|\uFFFD/g;function OVe(p){return(typeof p=="string"?p:""+p).replace(RQt,`
|
|
49
|
-
`).replace(OQt,"")}function FVe(p,m){return m=OVe(m),OVe(p)===m}function Kr(p,m,v,T,N,P){switch(v){case"children":typeof T=="string"?m==="body"||m==="textarea"&&T===""||Ge(p,T):(typeof T=="number"||typeof T=="bigint")&&m!=="body"&&Ge(p,""+T);break;case"className":ev(p,"class",T);break;case"tabIndex":ev(p,"tabindex",T);break;case"dir":case"role":case"viewBox":case"width":case"height":ev(p,v,T);break;case"style":ei(p,T,P);break;case"data":if(m!=="object"){ev(p,"data",T);break}case"src":case"href":if(T===""&&(m!=="a"||v!=="href")){p.removeAttribute(v);break}if(T==null||typeof T=="function"||typeof T=="symbol"||typeof T=="boolean"){p.removeAttribute(v);break}T=wn(""+T),p.setAttribute(v,T);break;case"action":case"formAction":if(typeof T=="function"){p.setAttribute(v,"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 P=="function"&&(v==="formAction"?(m!=="input"&&Kr(p,m,"name",N.name,N,null),Kr(p,m,"formEncType",N.formEncType,N,null),Kr(p,m,"formMethod",N.formMethod,N,null),Kr(p,m,"formTarget",N.formTarget,N,null)):(Kr(p,m,"encType",N.encType,N,null),Kr(p,m,"method",N.method,N,null),Kr(p,m,"target",N.target,N,null)));if(T==null||typeof T=="symbol"||typeof T=="boolean"){p.removeAttribute(v);break}T=wn(""+T),p.setAttribute(v,T);break;case"onClick":T!=null&&(p.onclick=Cs);break;case"onScroll":T!=null&&Ss("scroll",p);break;case"onScrollEnd":T!=null&&Ss("scrollend",p);break;case"dangerouslySetInnerHTML":if(T!=null){if(typeof T!="object"||!("__html"in T))throw Error(n(61));if(v=T.__html,v!=null){if(N.children!=null)throw Error(n(60));p.innerHTML=v}}break;case"multiple":p.multiple=T&&typeof T!="function"&&typeof T!="symbol";break;case"muted":p.muted=T&&typeof T!="function"&&typeof T!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(T==null||typeof T=="function"||typeof T=="boolean"||typeof T=="symbol"){p.removeAttribute("xlink:href");break}v=wn(""+T),p.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",v);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":T!=null&&typeof T!="function"&&typeof T!="symbol"?p.setAttribute(v,""+T):p.removeAttribute(v);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":T&&typeof T!="function"&&typeof T!="symbol"?p.setAttribute(v,""):p.removeAttribute(v);break;case"capture":case"download":T===!0?p.setAttribute(v,""):T!==!1&&T!=null&&typeof T!="function"&&typeof T!="symbol"?p.setAttribute(v,T):p.removeAttribute(v);break;case"cols":case"rows":case"size":case"span":T!=null&&typeof T!="function"&&typeof T!="symbol"&&!isNaN(T)&&1<=T?p.setAttribute(v,T):p.removeAttribute(v);break;case"rowSpan":case"start":T==null||typeof T=="function"||typeof T=="symbol"||isNaN(T)?p.removeAttribute(v):p.setAttribute(v,T);break;case"popover":Ss("beforetoggle",p),Ss("toggle",p),ob(p,"popover",T);break;case"xlinkActuate":Pd(p,"http://www.w3.org/1999/xlink","xlink:actuate",T);break;case"xlinkArcrole":Pd(p,"http://www.w3.org/1999/xlink","xlink:arcrole",T);break;case"xlinkRole":Pd(p,"http://www.w3.org/1999/xlink","xlink:role",T);break;case"xlinkShow":Pd(p,"http://www.w3.org/1999/xlink","xlink:show",T);break;case"xlinkTitle":Pd(p,"http://www.w3.org/1999/xlink","xlink:title",T);break;case"xlinkType":Pd(p,"http://www.w3.org/1999/xlink","xlink:type",T);break;case"xmlBase":Pd(p,"http://www.w3.org/XML/1998/namespace","xml:base",T);break;case"xmlLang":Pd(p,"http://www.w3.org/XML/1998/namespace","xml:lang",T);break;case"xmlSpace":Pd(p,"http://www.w3.org/XML/1998/namespace","xml:space",T);break;case"is":ob(p,"is",T);break;case"innerText":case"textContent":break;default:(!(2<v.length)||v[0]!=="o"&&v[0]!=="O"||v[1]!=="n"&&v[1]!=="N")&&(v=as.get(v)||v,ob(p,v,T))}}function rhe(p,m,v,T,N,P){switch(v){case"style":ei(p,T,P);break;case"dangerouslySetInnerHTML":if(T!=null){if(typeof T!="object"||!("__html"in T))throw Error(n(61));if(v=T.__html,v!=null){if(N.children!=null)throw Error(n(60));p.innerHTML=v}}break;case"children":typeof T=="string"?Ge(p,T):(typeof T=="number"||typeof T=="bigint")&&Ge(p,""+T);break;case"onScroll":T!=null&&Ss("scroll",p);break;case"onScrollEnd":T!=null&&Ss("scrollend",p);break;case"onClick":T!=null&&(p.onclick=Cs);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Eh.hasOwnProperty(v))e:{if(v[0]==="o"&&v[1]==="n"&&(N=v.endsWith("Capture"),m=v.slice(2,N?v.length-7:void 0),P=p[Ot]||null,P=P!=null?P[v]:null,typeof P=="function"&&p.removeEventListener(m,P,N),typeof T=="function")){typeof P!="function"&&P!==null&&(v in p?p[v]=null:p.hasAttribute(v)&&p.removeAttribute(v)),p.addEventListener(m,T,N);break e}v in p?p[v]=T:T===!0?p.setAttribute(v,""):ob(p,v,T)}}}function Su(p,m,v){switch(m){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Ss("error",p),Ss("load",p);var T=!1,N=!1,P;for(P in v)if(v.hasOwnProperty(P)){var j=v[P];if(j!=null)switch(P){case"src":T=!0;break;case"srcSet":N=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(n(137,m));default:Kr(p,m,P,j,v,null)}}N&&Kr(p,m,"srcSet",v.srcSet,v,null),T&&Kr(p,m,"src",v.src,v,null);return;case"input":Ss("invalid",p);var ce=P=j=N=null,Le=null,Je=null;for(T in v)if(v.hasOwnProperty(T)){var Ct=v[T];if(Ct!=null)switch(T){case"name":N=Ct;break;case"type":j=Ct;break;case"checked":Le=Ct;break;case"defaultChecked":Je=Ct;break;case"value":P=Ct;break;case"defaultValue":ce=Ct;break;case"children":case"dangerouslySetInnerHTML":if(Ct!=null)throw Error(n(137,m));break;default:Kr(p,m,T,Ct,v,null)}}dL(p,P,ce,Le,Je,j,N,!1);return;case"select":Ss("invalid",p),T=j=P=null;for(N in v)if(v.hasOwnProperty(N)&&(ce=v[N],ce!=null))switch(N){case"value":P=ce;break;case"defaultValue":j=ce;break;case"multiple":T=ce;default:Kr(p,m,N,ce,v,null)}m=P,v=j,p.multiple=!!T,m!=null?Zm(p,!!T,m,!1):v!=null&&Zm(p,!!T,v,!0);return;case"textarea":Ss("invalid",p),P=N=T=null;for(j in v)if(v.hasOwnProperty(j)&&(ce=v[j],ce!=null))switch(j){case"value":T=ce;break;case"defaultValue":N=ce;break;case"children":P=ce;break;case"dangerouslySetInnerHTML":if(ce!=null)throw Error(n(91));break;default:Kr(p,m,j,ce,v,null)}ve(p,T,N,P);return;case"option":for(Le in v)if(v.hasOwnProperty(Le)&&(T=v[Le],T!=null))switch(Le){case"selected":p.selected=T&&typeof T!="function"&&typeof T!="symbol";break;default:Kr(p,m,Le,T,v,null)}return;case"dialog":Ss("beforetoggle",p),Ss("toggle",p),Ss("cancel",p),Ss("close",p);break;case"iframe":case"object":Ss("load",p);break;case"video":case"audio":for(T=0;T<dF.length;T++)Ss(dF[T],p);break;case"image":Ss("error",p),Ss("load",p);break;case"details":Ss("toggle",p);break;case"embed":case"source":case"link":Ss("error",p),Ss("load",p);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(Je in v)if(v.hasOwnProperty(Je)&&(T=v[Je],T!=null))switch(Je){case"children":case"dangerouslySetInnerHTML":throw Error(n(137,m));default:Kr(p,m,Je,T,v,null)}return;default:if(ln(m)){for(Ct in v)v.hasOwnProperty(Ct)&&(T=v[Ct],T!==void 0&&rhe(p,m,Ct,T,v,void 0));return}}for(ce in v)v.hasOwnProperty(ce)&&(T=v[ce],T!=null&&Kr(p,m,ce,T,v,null))}function FQt(p,m,v,T){switch(m){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var N=null,P=null,j=null,ce=null,Le=null,Je=null,Ct=null;for(ct in v){var kt=v[ct];if(v.hasOwnProperty(ct)&&kt!=null)switch(ct){case"checked":break;case"value":break;case"defaultValue":Le=kt;default:T.hasOwnProperty(ct)||Kr(p,m,ct,null,T,kt)}}for(var nt in T){var ct=T[nt];if(kt=v[nt],T.hasOwnProperty(nt)&&(ct!=null||kt!=null))switch(nt){case"type":P=ct;break;case"name":N=ct;break;case"checked":Je=ct;break;case"defaultChecked":Ct=ct;break;case"value":j=ct;break;case"defaultValue":ce=ct;break;case"children":case"dangerouslySetInnerHTML":if(ct!=null)throw Error(n(137,m));break;default:ct!==kt&&Kr(p,m,nt,ct,T,kt)}}Hx(p,j,ce,Le,Je,Ct,P,N);return;case"select":ct=j=ce=nt=null;for(P in v)if(Le=v[P],v.hasOwnProperty(P)&&Le!=null)switch(P){case"value":break;case"multiple":ct=Le;default:T.hasOwnProperty(P)||Kr(p,m,P,null,T,Le)}for(N in T)if(P=T[N],Le=v[N],T.hasOwnProperty(N)&&(P!=null||Le!=null))switch(N){case"value":nt=P;break;case"defaultValue":ce=P;break;case"multiple":j=P;default:P!==Le&&Kr(p,m,N,P,T,Le)}m=ce,v=j,T=ct,nt!=null?Zm(p,!!v,nt,!1):!!T!=!!v&&(m!=null?Zm(p,!!v,m,!0):Zm(p,!!v,v?[]:"",!1));return;case"textarea":ct=nt=null;for(ce in v)if(N=v[ce],v.hasOwnProperty(ce)&&N!=null&&!T.hasOwnProperty(ce))switch(ce){case"value":break;case"children":break;default:Kr(p,m,ce,null,T,N)}for(j in T)if(N=T[j],P=v[j],T.hasOwnProperty(j)&&(N!=null||P!=null))switch(j){case"value":nt=N;break;case"defaultValue":ct=N;break;case"children":break;case"dangerouslySetInnerHTML":if(N!=null)throw Error(n(91));break;default:N!==P&&Kr(p,m,j,N,T,P)}hL(p,nt,ct);return;case"option":for(var Ni in v)if(nt=v[Ni],v.hasOwnProperty(Ni)&&nt!=null&&!T.hasOwnProperty(Ni))switch(Ni){case"selected":p.selected=!1;break;default:Kr(p,m,Ni,null,T,nt)}for(Le in T)if(nt=T[Le],ct=v[Le],T.hasOwnProperty(Le)&&nt!==ct&&(nt!=null||ct!=null))switch(Le){case"selected":p.selected=nt&&typeof nt!="function"&&typeof nt!="symbol";break;default:Kr(p,m,Le,nt,T,ct)}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 gn in v)nt=v[gn],v.hasOwnProperty(gn)&&nt!=null&&!T.hasOwnProperty(gn)&&Kr(p,m,gn,null,T,nt);for(Je in T)if(nt=T[Je],ct=v[Je],T.hasOwnProperty(Je)&&nt!==ct&&(nt!=null||ct!=null))switch(Je){case"children":case"dangerouslySetInnerHTML":if(nt!=null)throw Error(n(137,m));break;default:Kr(p,m,Je,nt,T,ct)}return;default:if(ln(m)){for(var Yr in v)nt=v[Yr],v.hasOwnProperty(Yr)&&nt!==void 0&&!T.hasOwnProperty(Yr)&&rhe(p,m,Yr,void 0,T,nt);for(Ct in T)nt=T[Ct],ct=v[Ct],!T.hasOwnProperty(Ct)||nt===ct||nt===void 0&&ct===void 0||rhe(p,m,Ct,nt,T,ct);return}}for(var je in v)nt=v[je],v.hasOwnProperty(je)&&nt!=null&&!T.hasOwnProperty(je)&&Kr(p,m,je,null,T,nt);for(kt in T)nt=T[kt],ct=v[kt],!T.hasOwnProperty(kt)||nt===ct||nt==null&&ct==null||Kr(p,m,kt,nt,T,ct)}function BVe(p){switch(p){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function BQt(){if(typeof performance.getEntriesByType=="function"){for(var p=0,m=0,v=performance.getEntriesByType("resource"),T=0;T<v.length;T++){var N=v[T],P=N.transferSize,j=N.initiatorType,ce=N.duration;if(P&&ce&&BVe(j)){for(j=0,ce=N.responseEnd,T+=1;T<v.length;T++){var Le=v[T],Je=Le.startTime;if(Je>ce)break;var Ct=Le.transferSize,kt=Le.initiatorType;Ct&&BVe(kt)&&(Le=Le.responseEnd,j+=Ct*(Le<ce?1:(ce-Je)/(Le-Je)))}if(--T,m+=8*(P+j)/(N.duration/1e3),p++,10<p)break}}if(0<p)return m/p/1e6}return navigator.connection&&(p=navigator.connection.downlink,typeof p=="number")?p:5}var ohe=null,ahe=null;function SU(p){return p.nodeType===9?p:p.ownerDocument}function VVe(p){switch(p){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function WVe(p,m){if(p===0)switch(m){case"svg":return 1;case"math":return 2;default:return 0}return p===1&&m==="foreignObject"?0:p}function lhe(p,m){return p==="textarea"||p==="noscript"||typeof m.children=="string"||typeof m.children=="number"||typeof m.children=="bigint"||typeof m.dangerouslySetInnerHTML=="object"&&m.dangerouslySetInnerHTML!==null&&m.dangerouslySetInnerHTML.__html!=null}var uhe=null;function VQt(){var p=window.event;return p&&p.type==="popstate"?p===uhe?!1:(uhe=p,!0):(uhe=null,!1)}var HVe=typeof setTimeout=="function"?setTimeout:void 0,WQt=typeof clearTimeout=="function"?clearTimeout:void 0,$Ve=typeof Promise=="function"?Promise:void 0,HQt=typeof queueMicrotask=="function"?queueMicrotask:typeof $Ve<"u"?function(p){return $Ve.resolve(null).then(p).catch($Qt)}:HVe;function $Qt(p){setTimeout(function(){throw p})}function Tv(p){return p==="head"}function UVe(p,m){var v=m,T=0;do{var N=v.nextSibling;if(p.removeChild(v),N&&N.nodeType===8)if(v=N.data,v==="/$"||v==="/&"){if(T===0){p.removeChild(N),$L(m);return}T--}else if(v==="$"||v==="$?"||v==="$~"||v==="$!"||v==="&")T++;else if(v==="html")fF(p.ownerDocument.documentElement);else if(v==="head"){v=p.ownerDocument.head,fF(v);for(var P=v.firstChild;P;){var j=P.nextSibling,ce=P.nodeName;P[Pe]||ce==="SCRIPT"||ce==="STYLE"||ce==="LINK"&&P.rel.toLowerCase()==="stylesheet"||v.removeChild(P),P=j}}else v==="body"&&fF(p.ownerDocument.body);v=N}while(v);$L(m)}function zVe(p,m){var v=p;p=0;do{var T=v.nextSibling;if(v.nodeType===1?m?(v._stashedDisplay=v.style.display,v.style.display="none"):(v.style.display=v._stashedDisplay||"",v.getAttribute("style")===""&&v.removeAttribute("style")):v.nodeType===3&&(m?(v._stashedText=v.nodeValue,v.nodeValue=""):v.nodeValue=v._stashedText||""),T&&T.nodeType===8)if(v=T.data,v==="/$"){if(p===0)break;p--}else v!=="$"&&v!=="$?"&&v!=="$~"&&v!=="$!"||p++;v=T}while(v)}function che(p){var m=p.firstChild;for(m&&m.nodeType===10&&(m=m.nextSibling);m;){var v=m;switch(m=m.nextSibling,v.nodeName){case"HTML":case"HEAD":case"BODY":che(v),Bt(v);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(v.rel.toLowerCase()==="stylesheet")continue}p.removeChild(v)}}function UQt(p,m,v,T){for(;p.nodeType===1;){var N=v;if(p.nodeName.toLowerCase()!==m.toLowerCase()){if(!T&&(p.nodeName!=="INPUT"||p.type!=="hidden"))break}else if(T){if(!p[Pe])switch(m){case"meta":if(!p.hasAttribute("itemprop"))break;return p;case"link":if(P=p.getAttribute("rel"),P==="stylesheet"&&p.hasAttribute("data-precedence"))break;if(P!==N.rel||p.getAttribute("href")!==(N.href==null||N.href===""?null:N.href)||p.getAttribute("crossorigin")!==(N.crossOrigin==null?null:N.crossOrigin)||p.getAttribute("title")!==(N.title==null?null:N.title))break;return p;case"style":if(p.hasAttribute("data-precedence"))break;return p;case"script":if(P=p.getAttribute("src"),(P!==(N.src==null?null:N.src)||p.getAttribute("type")!==(N.type==null?null:N.type)||p.getAttribute("crossorigin")!==(N.crossOrigin==null?null:N.crossOrigin))&&P&&p.hasAttribute("async")&&!p.hasAttribute("itemprop"))break;return p;default:return p}}else if(m==="input"&&p.type==="hidden"){var P=N.name==null?null:""+N.name;if(N.type==="hidden"&&p.getAttribute("name")===P)return p}else return p;if(p=$f(p.nextSibling),p===null)break}return null}function zQt(p,m,v){if(m==="")return null;for(;p.nodeType!==3;)if((p.nodeType!==1||p.nodeName!=="INPUT"||p.type!=="hidden")&&!v||(p=$f(p.nextSibling),p===null))return null;return p}function jVe(p,m){for(;p.nodeType!==8;)if((p.nodeType!==1||p.nodeName!=="INPUT"||p.type!=="hidden")&&!m||(p=$f(p.nextSibling),p===null))return null;return p}function dhe(p){return p.data==="$?"||p.data==="$~"}function hhe(p){return p.data==="$!"||p.data==="$?"&&p.ownerDocument.readyState!=="loading"}function jQt(p,m){var v=p.ownerDocument;if(p.data==="$~")p._reactRetry=m;else if(p.data!=="$?"||v.readyState!=="loading")m();else{var T=function(){m(),v.removeEventListener("DOMContentLoaded",T)};v.addEventListener("DOMContentLoaded",T),p._reactRetry=T}}function $f(p){for(;p!=null;p=p.nextSibling){var m=p.nodeType;if(m===1||m===3)break;if(m===8){if(m=p.data,m==="$"||m==="$!"||m==="$?"||m==="$~"||m==="&"||m==="F!"||m==="F")break;if(m==="/$"||m==="/&")return null}}return p}var fhe=null;function qVe(p){p=p.nextSibling;for(var m=0;p;){if(p.nodeType===8){var v=p.data;if(v==="/$"||v==="/&"){if(m===0)return $f(p.nextSibling);m--}else v!=="$"&&v!=="$!"&&v!=="$?"&&v!=="$~"&&v!=="&"||m++}p=p.nextSibling}return null}function GVe(p){p=p.previousSibling;for(var m=0;p;){if(p.nodeType===8){var v=p.data;if(v==="$"||v==="$!"||v==="$?"||v==="$~"||v==="&"){if(m===0)return p;m--}else v!=="/$"&&v!=="/&"||m++}p=p.previousSibling}return null}function KVe(p,m,v){switch(m=SU(v),p){case"html":if(p=m.documentElement,!p)throw Error(n(452));return p;case"head":if(p=m.head,!p)throw Error(n(453));return p;case"body":if(p=m.body,!p)throw Error(n(454));return p;default:throw Error(n(451))}}function fF(p){for(var m=p.attributes;m.length;)p.removeAttributeNode(m[0]);Bt(p)}var Uf=new Map,YVe=new Set;function xU(p){return typeof p.getRootNode=="function"?p.getRootNode():p.nodeType===9?p:p.ownerDocument}var Sb=de.d;de.d={f:qQt,r:GQt,D:KQt,C:YQt,L:XQt,m:QQt,X:JQt,S:ZQt,M:eZt};function qQt(){var p=Sb.f(),m=gU();return p||m}function GQt(p){var m=fs(p);m!==null&&m.tag===5&&m.type==="form"?hBe(m):Sb.r(p)}var VL=typeof document>"u"?null:document;function XVe(p,m,v){var T=VL;if(T&&typeof m=="string"&&m){var N=Ao(m);N='link[rel="'+p+'"][href="'+N+'"]',typeof v=="string"&&(N+='[crossorigin="'+v+'"]'),YVe.has(N)||(YVe.add(N),p={rel:p,crossOrigin:v,href:m},T.querySelector(N)===null&&(m=T.createElement("link"),Su(m,"link",p),rs(m),T.head.appendChild(m)))}}function KQt(p){Sb.D(p),XVe("dns-prefetch",p,null)}function YQt(p,m){Sb.C(p,m),XVe("preconnect",p,m)}function XQt(p,m,v){Sb.L(p,m,v);var T=VL;if(T&&p&&m){var N='link[rel="preload"][as="'+Ao(m)+'"]';m==="image"&&v&&v.imageSrcSet?(N+='[imagesrcset="'+Ao(v.imageSrcSet)+'"]',typeof v.imageSizes=="string"&&(N+='[imagesizes="'+Ao(v.imageSizes)+'"]')):N+='[href="'+Ao(p)+'"]';var P=N;switch(m){case"style":P=WL(p);break;case"script":P=HL(p)}Uf.has(P)||(p=d({rel:"preload",href:m==="image"&&v&&v.imageSrcSet?void 0:p,as:m},v),Uf.set(P,p),T.querySelector(N)!==null||m==="style"&&T.querySelector(pF(P))||m==="script"&&T.querySelector(gF(P))||(m=T.createElement("link"),Su(m,"link",p),rs(m),T.head.appendChild(m)))}}function QQt(p,m){Sb.m(p,m);var v=VL;if(v&&p){var T=m&&typeof m.as=="string"?m.as:"script",N='link[rel="modulepreload"][as="'+Ao(T)+'"][href="'+Ao(p)+'"]',P=N;switch(T){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":P=HL(p)}if(!Uf.has(P)&&(p=d({rel:"modulepreload",href:p},m),Uf.set(P,p),v.querySelector(N)===null)){switch(T){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(v.querySelector(gF(P)))return}T=v.createElement("link"),Su(T,"link",p),rs(T),v.head.appendChild(T)}}}function ZQt(p,m,v){Sb.S(p,m,v);var T=VL;if(T&&p){var N=nr(T).hoistableStyles,P=WL(p);m=m||"default";var j=N.get(P);if(!j){var ce={loading:0,preload:null};if(j=T.querySelector(pF(P)))ce.loading=5;else{p=d({rel:"stylesheet",href:p,"data-precedence":m},v),(v=Uf.get(P))&&phe(p,v);var Le=j=T.createElement("link");rs(Le),Su(Le,"link",p),Le._p=new Promise(function(Je,Ct){Le.onload=Je,Le.onerror=Ct}),Le.addEventListener("load",function(){ce.loading|=1}),Le.addEventListener("error",function(){ce.loading|=2}),ce.loading|=4,DU(j,m,T)}j={type:"stylesheet",instance:j,count:1,state:ce},N.set(P,j)}}}function JQt(p,m){Sb.X(p,m);var v=VL;if(v&&p){var T=nr(v).hoistableScripts,N=HL(p),P=T.get(N);P||(P=v.querySelector(gF(N)),P||(p=d({src:p,async:!0},m),(m=Uf.get(N))&&ghe(p,m),P=v.createElement("script"),rs(P),Su(P,"link",p),v.head.appendChild(P)),P={type:"script",instance:P,count:1,state:null},T.set(N,P))}}function eZt(p,m){Sb.M(p,m);var v=VL;if(v&&p){var T=nr(v).hoistableScripts,N=HL(p),P=T.get(N);P||(P=v.querySelector(gF(N)),P||(p=d({src:p,async:!0,type:"module"},m),(m=Uf.get(N))&&ghe(p,m),P=v.createElement("script"),rs(P),Su(P,"link",p),v.head.appendChild(P)),P={type:"script",instance:P,count:1,state:null},T.set(N,P))}}function QVe(p,m,v,T){var N=(N=Ue.current)?xU(N):null;if(!N)throw Error(n(446));switch(p){case"meta":case"title":return null;case"style":return typeof v.precedence=="string"&&typeof v.href=="string"?(m=WL(v.href),v=nr(N).hoistableStyles,T=v.get(m),T||(T={type:"style",instance:null,count:0,state:null},v.set(m,T)),T):{type:"void",instance:null,count:0,state:null};case"link":if(v.rel==="stylesheet"&&typeof v.href=="string"&&typeof v.precedence=="string"){p=WL(v.href);var P=nr(N).hoistableStyles,j=P.get(p);if(j||(N=N.ownerDocument||N,j={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},P.set(p,j),(P=N.querySelector(pF(p)))&&!P._p&&(j.instance=P,j.state.loading=5),Uf.has(p)||(v={rel:"preload",as:"style",href:v.href,crossOrigin:v.crossOrigin,integrity:v.integrity,media:v.media,hrefLang:v.hrefLang,referrerPolicy:v.referrerPolicy},Uf.set(p,v),P||tZt(N,p,v,j.state))),m&&T===null)throw Error(n(528,""));return j}if(m&&T!==null)throw Error(n(529,""));return null;case"script":return m=v.async,v=v.src,typeof v=="string"&&m&&typeof m!="function"&&typeof m!="symbol"?(m=HL(v),v=nr(N).hoistableScripts,T=v.get(m),T||(T={type:"script",instance:null,count:0,state:null},v.set(m,T)),T):{type:"void",instance:null,count:0,state:null};default:throw Error(n(444,p))}}function WL(p){return'href="'+Ao(p)+'"'}function pF(p){return'link[rel="stylesheet"]['+p+"]"}function ZVe(p){return d({},p,{"data-precedence":p.precedence,precedence:null})}function tZt(p,m,v,T){p.querySelector('link[rel="preload"][as="style"]['+m+"]")?T.loading=1:(m=p.createElement("link"),T.preload=m,m.addEventListener("load",function(){return T.loading|=1}),m.addEventListener("error",function(){return T.loading|=2}),Su(m,"link",v),rs(m),p.head.appendChild(m))}function HL(p){return'[src="'+Ao(p)+'"]'}function gF(p){return"script[async]"+p}function JVe(p,m,v){if(m.count++,m.instance===null)switch(m.type){case"style":var T=p.querySelector('style[data-href~="'+Ao(v.href)+'"]');if(T)return m.instance=T,rs(T),T;var N=d({},v,{"data-href":v.href,"data-precedence":v.precedence,href:null,precedence:null});return T=(p.ownerDocument||p).createElement("style"),rs(T),Su(T,"style",N),DU(T,v.precedence,p),m.instance=T;case"stylesheet":N=WL(v.href);var P=p.querySelector(pF(N));if(P)return m.state.loading|=4,m.instance=P,rs(P),P;T=ZVe(v),(N=Uf.get(N))&&phe(T,N),P=(p.ownerDocument||p).createElement("link"),rs(P);var j=P;return j._p=new Promise(function(ce,Le){j.onload=ce,j.onerror=Le}),Su(P,"link",T),m.state.loading|=4,DU(P,v.precedence,p),m.instance=P;case"script":return P=HL(v.src),(N=p.querySelector(gF(P)))?(m.instance=N,rs(N),N):(T=v,(N=Uf.get(P))&&(T=d({},v),ghe(T,N)),p=p.ownerDocument||p,N=p.createElement("script"),rs(N),Su(N,"link",T),p.head.appendChild(N),m.instance=N);case"void":return null;default:throw Error(n(443,m.type))}else m.type==="stylesheet"&&(m.state.loading&4)===0&&(T=m.instance,m.state.loading|=4,DU(T,v.precedence,p));return m.instance}function DU(p,m,v){for(var T=v.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),N=T.length?T[T.length-1]:null,P=N,j=0;j<T.length;j++){var ce=T[j];if(ce.dataset.precedence===m)P=ce;else if(P!==N)break}P?P.parentNode.insertBefore(p,P.nextSibling):(m=v.nodeType===9?v.head:v,m.insertBefore(p,m.firstChild))}function phe(p,m){p.crossOrigin==null&&(p.crossOrigin=m.crossOrigin),p.referrerPolicy==null&&(p.referrerPolicy=m.referrerPolicy),p.title==null&&(p.title=m.title)}function ghe(p,m){p.crossOrigin==null&&(p.crossOrigin=m.crossOrigin),p.referrerPolicy==null&&(p.referrerPolicy=m.referrerPolicy),p.integrity==null&&(p.integrity=m.integrity)}var EU=null;function eWe(p,m,v){if(EU===null){var T=new Map,N=EU=new Map;N.set(v,T)}else N=EU,T=N.get(v),T||(T=new Map,N.set(v,T));if(T.has(p))return T;for(T.set(p,null),v=v.getElementsByTagName(p),N=0;N<v.length;N++){var P=v[N];if(!(P[Pe]||P[wi]||p==="link"&&P.getAttribute("rel")==="stylesheet")&&P.namespaceURI!=="http://www.w3.org/2000/svg"){var j=P.getAttribute(m)||"";j=p+j;var ce=T.get(j);ce?ce.push(P):T.set(j,[P])}}return T}function tWe(p,m,v){p=p.ownerDocument||p,p.head.insertBefore(v,m==="title"?p.querySelector("head > title"):null)}function iZt(p,m,v){if(v===1||m.itemProp!=null)return!1;switch(p){case"meta":case"title":return!0;case"style":if(typeof m.precedence!="string"||typeof m.href!="string"||m.href==="")break;return!0;case"link":if(typeof m.rel!="string"||typeof m.href!="string"||m.href===""||m.onLoad||m.onError)break;switch(m.rel){case"stylesheet":return p=m.disabled,typeof m.precedence=="string"&&p==null;default:return!0}case"script":if(m.async&&typeof m.async!="function"&&typeof m.async!="symbol"&&!m.onLoad&&!m.onError&&m.src&&typeof m.src=="string")return!0}return!1}function iWe(p){return!(p.type==="stylesheet"&&(p.state.loading&3)===0)}function nZt(p,m,v,T){if(v.type==="stylesheet"&&(typeof T.media!="string"||matchMedia(T.media).matches!==!1)&&(v.state.loading&4)===0){if(v.instance===null){var N=WL(T.href),P=m.querySelector(pF(N));if(P){m=P._p,m!==null&&typeof m=="object"&&typeof m.then=="function"&&(p.count++,p=TU.bind(p),m.then(p,p)),v.state.loading|=4,v.instance=P,rs(P);return}P=m.ownerDocument||m,T=ZVe(T),(N=Uf.get(N))&&phe(T,N),P=P.createElement("link"),rs(P);var j=P;j._p=new Promise(function(ce,Le){j.onload=ce,j.onerror=Le}),Su(P,"link",T),v.instance=P}p.stylesheets===null&&(p.stylesheets=new Map),p.stylesheets.set(v,m),(m=v.state.preload)&&(v.state.loading&3)===0&&(p.count++,v=TU.bind(p),m.addEventListener("load",v),m.addEventListener("error",v))}}var mhe=0;function sZt(p,m){return p.stylesheets&&p.count===0&&LU(p,p.stylesheets),0<p.count||0<p.imgCount?function(v){var T=setTimeout(function(){if(p.stylesheets&&LU(p,p.stylesheets),p.unsuspend){var P=p.unsuspend;p.unsuspend=null,P()}},6e4+m);0<p.imgBytes&&mhe===0&&(mhe=62500*BQt());var N=setTimeout(function(){if(p.waitingForImages=!1,p.count===0&&(p.stylesheets&&LU(p,p.stylesheets),p.unsuspend)){var P=p.unsuspend;p.unsuspend=null,P()}},(p.imgBytes>mhe?50:800)+m);return p.unsuspend=v,function(){p.unsuspend=null,clearTimeout(T),clearTimeout(N)}}:null}function TU(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)LU(this,this.stylesheets);else if(this.unsuspend){var p=this.unsuspend;this.unsuspend=null,p()}}}var kU=null;function LU(p,m){p.stylesheets=null,p.unsuspend!==null&&(p.count++,kU=new Map,m.forEach(rZt,p),kU=null,TU.call(p))}function rZt(p,m){if(!(m.state.loading&4)){var v=kU.get(p);if(v)var T=v.get(null);else{v=new Map,kU.set(p,v);for(var N=p.querySelectorAll("link[data-precedence],style[data-precedence]"),P=0;P<N.length;P++){var j=N[P];(j.nodeName==="LINK"||j.getAttribute("media")!=="not all")&&(v.set(j.dataset.precedence,j),T=j)}T&&v.set(null,T)}N=m.instance,j=N.getAttribute("data-precedence"),P=v.get(j)||T,P===T&&v.set(null,N),v.set(j,N),this.count++,T=TU.bind(this),N.addEventListener("load",T),N.addEventListener("error",T),P?P.parentNode.insertBefore(N,P.nextSibling):(p=p.nodeType===9?p.head:p,p.insertBefore(N,p.firstChild)),m.state.loading|=4}}var mF={$$typeof:E,Provider:null,Consumer:null,_currentValue:ae,_currentValue2:ae,_threadCount:0};function oZt(p,m,v,T,N,P,j,ce,Le){this.tag=1,this.containerInfo=p,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=re(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=re(0),this.hiddenUpdates=re(null),this.identifierPrefix=T,this.onUncaughtError=N,this.onCaughtError=P,this.onRecoverableError=j,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=Le,this.incompleteTransitions=new Map}function nWe(p,m,v,T,N,P,j,ce,Le,Je,Ct,kt){return p=new oZt(p,m,v,j,Le,Je,Ct,kt,ce),m=1,P===!0&&(m|=24),P=Bc(3,null,null,m),p.current=P,P.stateNode=p,m=z(),m.refCount++,p.pooledCache=m,m.refCount++,P.memoizedState={element:T,isDehydrated:v,cache:m},Jce(P),p}function sWe(p){return p?(p=cv,p):cv}function rWe(p,m,v,T,N,P){N=sWe(N),T.context===null?T.context=N:T.pendingContext=N,T=mv(m),T.payload={element:v},P=P===void 0?null:P,P!==null&&(T.callback=P),v=_v(p,T,m),v!==null&&(Ud(v,p,m),KO(v,p,m))}function oWe(p,m){if(p=p.memoizedState,p!==null&&p.dehydrated!==null){var v=p.retryLane;p.retryLane=v!==0&&v<m?v:m}}function _he(p,m){oWe(p,m),(p=p.alternate)&&oWe(p,m)}function aWe(p){if(p.tag===13||p.tag===31){var m=Nh(p,67108864);m!==null&&Ud(m,p,67108864),_he(p,67108864)}}function lWe(p){if(p.tag===13||p.tag===31){var m=Vh();m=ot(m);var v=Nh(p,m);v!==null&&Ud(v,p,m),_he(p,m)}}var AU=!0;function aZt(p,m,v,T){var N=Y.T;Y.T=null;var P=de.p;try{de.p=2,bhe(p,m,v,T)}finally{de.p=P,Y.T=N}}function lZt(p,m,v,T){var N=Y.T;Y.T=null;var P=de.p;try{de.p=8,bhe(p,m,v,T)}finally{de.p=P,Y.T=N}}function bhe(p,m,v,T){if(AU){var N=yhe(T);if(N===null)she(p,m,T,NU,v),cWe(p,T);else if(cZt(N,p,m,v,T))T.stopPropagation();else if(cWe(p,T),m&4&&-1<uZt.indexOf(p)){for(;N!==null;){var P=fs(N);if(P!==null)switch(P.tag){case 3:if(P=P.stateNode,P.current.memoizedState.isDehydrated){var j=ir(P.pendingLanes);if(j!==0){var ce=P;for(ce.pendingLanes|=2,ce.entangledLanes|=2;j;){var Le=1<<31-Mn(j);ce.entanglements[1]|=Le,j&=~Le}l0(P),(vr&6)===0&&(fU=bt()+500,cF(0))}}break;case 31:case 13:ce=Nh(P,2),ce!==null&&Ud(ce,P,2),gU(),_he(P,2)}if(P=yhe(T),P===null&&she(p,m,T,NU,v),P===N)break;N=P}N!==null&&T.stopPropagation()}else she(p,m,T,null,v)}}function yhe(p){return p=Md(p),vhe(p)}var NU=null;function vhe(p){if(NU=null,p=He(p),p!==null){var m=r(p);if(m===null)p=null;else{var v=m.tag;if(v===13){if(p=o(m),p!==null)return p;p=null}else if(v===31){if(p=a(m),p!==null)return p;p=null}else if(v===3){if(m.stateNode.current.memoizedState.isDehydrated)return m.tag===3?m.stateNode.containerInfo:null;p=null}else m!==p&&(p=null)}}return NU=p,null}function uWe(p){switch(p){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(Yt()){case ki:return 2;case zi:return 8;case Xt:case Ci:return 32;case mi:return 268435456;default:return 32}default:return 32}}var Che=!1,kv=null,Lv=null,Av=null,_F=new Map,bF=new Map,Nv=[],uZt="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 cWe(p,m){switch(p){case"focusin":case"focusout":kv=null;break;case"dragenter":case"dragleave":Lv=null;break;case"mouseover":case"mouseout":Av=null;break;case"pointerover":case"pointerout":_F.delete(m.pointerId);break;case"gotpointercapture":case"lostpointercapture":bF.delete(m.pointerId)}}function yF(p,m,v,T,N,P){return p===null||p.nativeEvent!==P?(p={blockedOn:m,domEventName:v,eventSystemFlags:T,nativeEvent:P,targetContainers:[N]},m!==null&&(m=fs(m),m!==null&&aWe(m)),p):(p.eventSystemFlags|=T,m=p.targetContainers,N!==null&&m.indexOf(N)===-1&&m.push(N),p)}function cZt(p,m,v,T,N){switch(m){case"focusin":return kv=yF(kv,p,m,v,T,N),!0;case"dragenter":return Lv=yF(Lv,p,m,v,T,N),!0;case"mouseover":return Av=yF(Av,p,m,v,T,N),!0;case"pointerover":var P=N.pointerId;return _F.set(P,yF(_F.get(P)||null,p,m,v,T,N)),!0;case"gotpointercapture":return P=N.pointerId,bF.set(P,yF(bF.get(P)||null,p,m,v,T,N)),!0}return!1}function dWe(p){var m=He(p.target);if(m!==null){var v=r(m);if(v!==null){if(m=v.tag,m===13){if(m=o(v),m!==null){p.blockedOn=m,hi(p.priority,function(){lWe(v)});return}}else if(m===31){if(m=a(v),m!==null){p.blockedOn=m,hi(p.priority,function(){lWe(v)});return}}else if(m===3&&v.stateNode.current.memoizedState.isDehydrated){p.blockedOn=v.tag===3?v.stateNode.containerInfo:null;return}}}p.blockedOn=null}function IU(p){if(p.blockedOn!==null)return!1;for(var m=p.targetContainers;0<m.length;){var v=yhe(p.nativeEvent);if(v===null){v=p.nativeEvent;var T=new v.constructor(v.type,v);Mr=T,v.target.dispatchEvent(T),Mr=null}else return m=fs(v),m!==null&&aWe(m),p.blockedOn=v,!1;m.shift()}return!0}function hWe(p,m,v){IU(p)&&v.delete(m)}function dZt(){Che=!1,kv!==null&&IU(kv)&&(kv=null),Lv!==null&&IU(Lv)&&(Lv=null),Av!==null&&IU(Av)&&(Av=null),_F.forEach(hWe),bF.forEach(hWe)}function PU(p,m){p.blockedOn===m&&(p.blockedOn=null,Che||(Che=!0,i.unstable_scheduleCallback(i.unstable_NormalPriority,dZt)))}var MU=null;function fWe(p){MU!==p&&(MU=p,i.unstable_scheduleCallback(i.unstable_NormalPriority,function(){MU===p&&(MU=null);for(var m=0;m<p.length;m+=3){var v=p[m],T=p[m+1],N=p[m+2];if(typeof T!="function"){if(vhe(T||v)===null)continue;break}var P=fs(v);P!==null&&(p.splice(m,3),m-=3,yde(P,{pending:!0,data:N,method:v.method,action:T},T,N))}}))}function $L(p){function m(Le){return PU(Le,p)}kv!==null&&PU(kv,p),Lv!==null&&PU(Lv,p),Av!==null&&PU(Av,p),_F.forEach(m),bF.forEach(m);for(var v=0;v<Nv.length;v++){var T=Nv[v];T.blockedOn===p&&(T.blockedOn=null)}for(;0<Nv.length&&(v=Nv[0],v.blockedOn===null);)dWe(v),v.blockedOn===null&&Nv.shift();if(v=(p.ownerDocument||p).$$reactFormReplay,v!=null)for(T=0;T<v.length;T+=3){var N=v[T],P=v[T+1],j=N[Ot]||null;if(typeof P=="function")j||fWe(v);else if(j){var ce=null;if(P&&P.hasAttribute("formAction")){if(N=P,j=P[Ot]||null)ce=j.formAction;else if(vhe(N)!==null)continue}else ce=j.action;typeof ce=="function"?v[T+1]=ce:(v.splice(T,3),T-=3),fWe(v)}}}function pWe(){function p(P){P.canIntercept&&P.info==="react-transition"&&P.intercept({handler:function(){return new Promise(function(j){return N=j})},focusReset:"manual",scroll:"manual"})}function m(){N!==null&&(N(),N=null),T||setTimeout(v,20)}function v(){if(!T&&!navigation.transition){var P=navigation.currentEntry;P&&P.url!=null&&navigation.navigate(P.url,{state:P.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var T=!1,N=null;return navigation.addEventListener("navigate",p),navigation.addEventListener("navigatesuccess",m),navigation.addEventListener("navigateerror",m),setTimeout(v,100),function(){T=!0,navigation.removeEventListener("navigate",p),navigation.removeEventListener("navigatesuccess",m),navigation.removeEventListener("navigateerror",m),N!==null&&(N(),N=null)}}}function whe(p){this._internalRoot=p}RU.prototype.render=whe.prototype.render=function(p){var m=this._internalRoot;if(m===null)throw Error(n(409));var v=m.current,T=Vh();rWe(v,T,p,m,null,null)},RU.prototype.unmount=whe.prototype.unmount=function(){var p=this._internalRoot;if(p!==null){this._internalRoot=null;var m=p.containerInfo;rWe(p.current,2,null,p,null,null),gU(),m[Cn]=null}};function RU(p){this._internalRoot=p}RU.prototype.unstable_scheduleHydration=function(p){if(p){var m=Qt();p={blockedOn:null,target:p,priority:m};for(var v=0;v<Nv.length&&m!==0&&m<Nv[v].priority;v++);Nv.splice(v,0,p),v===0&&dWe(p)}};var gWe=e.version;if(gWe!=="19.2.0")throw Error(n(527,gWe,"19.2.0"));de.findDOMNode=function(p){var m=p._reactInternals;if(m===void 0)throw typeof p.render=="function"?Error(n(188)):(p=Object.keys(p).join(","),Error(n(268,p)));return p=u(m),p=p!==null?c(p):null,p=p===null?null:p.stateNode,p};var hZt={bundleType:0,version:"19.2.0",rendererPackageName:"react-dom",currentDispatcherRef:Y,reconcilerVersion:"19.2.0"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var OU=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!OU.isDisabled&&OU.supportsFiber)try{Ei=OU.inject(hZt),ai=OU}catch{}}return zL.createRoot=function(p,m){if(!s(p))throw Error(n(299));var v=!1,T="",N=wBe,P=SBe,j=xBe;return m!=null&&(m.unstable_strictMode===!0&&(v=!0),m.identifierPrefix!==void 0&&(T=m.identifierPrefix),m.onUncaughtError!==void 0&&(N=m.onUncaughtError),m.onCaughtError!==void 0&&(P=m.onCaughtError),m.onRecoverableError!==void 0&&(j=m.onRecoverableError)),m=nWe(p,1,!1,null,null,v,T,null,N,P,j,pWe),p[Cn]=m.current,nhe(p),new whe(m)},zL.hydrateRoot=function(p,m,v){if(!s(p))throw Error(n(299));var T=!1,N="",P=wBe,j=SBe,ce=xBe,Le=null;return v!=null&&(v.unstable_strictMode===!0&&(T=!0),v.identifierPrefix!==void 0&&(N=v.identifierPrefix),v.onUncaughtError!==void 0&&(P=v.onUncaughtError),v.onCaughtError!==void 0&&(j=v.onCaughtError),v.onRecoverableError!==void 0&&(ce=v.onRecoverableError),v.formState!==void 0&&(Le=v.formState)),m=nWe(p,1,!0,m,v??null,T,N,Le,P,j,ce,pWe),m.context=sWe(null),v=m.current,T=Vh(),T=ot(T),N=mv(T),N.callback=null,_v(v,N,T),v=T,m.current.lanes=v,ue(m,v),l0(m),p[Cn]=m.current,nhe(p),new RU(m)},zL.version="19.2.0",zL}var Fhe;function IWe(){if(Fhe)return HU.exports;Fhe=1;function i(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(i)}catch(e){console.error(e)}}return i(),HU.exports=NWe(),HU.exports}var Bhe=IWe();/**
|
|
50
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
51
|
-
*
|
|
52
|
-
* This source code is licensed under the MIT license found in the
|
|
53
|
-
* LICENSE file in the root directory of this source tree.
|
|
54
|
-
*
|
|
55
|
-
* @lightSyntaxTransform
|
|
56
|
-
* @noflow
|
|
57
|
-
* @nolint
|
|
58
|
-
* @preventMunge
|
|
59
|
-
* @preserve-invariant-messages
|
|
60
|
-
*/var jU,Vhe;function PWe(){if(Vhe)return jU;Vhe=1;var i=Object.create,e=Object.defineProperty,t=Object.getOwnPropertyDescriptor,n=Object.getOwnPropertyNames,s=Object.getPrototypeOf,r=Object.prototype.hasOwnProperty,o=(ae,he)=>{for(var Ce in he)e(ae,Ce,{get:he[Ce],enumerable:!0})},a=(ae,he,Ce,le)=>{if(he&&typeof he=="object"||typeof he=="function")for(let J of n(he))!r.call(ae,J)&&J!==Ce&&e(ae,J,{get:()=>he[J],enumerable:!(le=t(he,J))||le.enumerable});return ae},l=(ae,he,Ce)=>(Ce=ae!=null?i(s(ae)):{},a(!ae||!ae.__esModule?e(Ce,"default",{value:ae,enumerable:!0}):Ce,ae)),u=ae=>a(e({},"__esModule",{value:!0}),ae),c={};o(c,{$dispatcherGuard:()=>B,$makeReadOnly:()=>G,$reset:()=>F,$structuralCheck:()=>de,c:()=>E,clearRenderCounterRegistry:()=>ee,renderCounterRegistry:()=>q,useRenderCounter:()=>oe}),jU=u(c);var d=l(fD()),{useRef:h,useEffect:f,isValidElement:g}=d,b,y=(b=d.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE)!=null?b:d.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,S=Symbol.for("react.memo_cache_sentinel"),x,E=typeof((x=d.__COMPILER_RUNTIME)==null?void 0:x.c)=="function"?d.__COMPILER_RUNTIME.c:function(he){return d.useMemo(()=>{const Ce=new Array(he);for(let le=0;le<he;le++)Ce[le]=S;return Ce[S]=!0,Ce},[])},k={};["readContext","useCallback","useContext","useEffect","useImperativeHandle","useInsertionEffect","useLayoutEffect","useMemo","useReducer","useRef","useState","useDebugValue","useDeferredValue","useTransition","useMutableSource","useSyncExternalStore","useId","unstable_isNewReconciler","getCacheSignal","getCacheForType","useCacheRefresh"].forEach(ae=>{k[ae]=()=>{throw new Error(`[React] Unexpected React hook call (${ae}) from a React compiled function. Check that all hooks are called directly and named according to convention ('use[A-Z]') `)}});var A=null;k.useMemoCache=ae=>{if(A==null)throw new Error("React Compiler internal invariant violation: unexpected null dispatcher");return A.useMemoCache(ae)};function I(ae){return y.ReactCurrentDispatcher.current=ae,y.ReactCurrentDispatcher.current}var M=[];function B(ae){const he=y.ReactCurrentDispatcher.current;if(ae===0){if(M.push(he),M.length===1&&(A=he),he===k)throw new Error("[React] Unexpected call to custom hook or component from a React compiled function. Check that (1) all hooks are called directly and named according to convention ('use[A-Z]') and (2) components are returned as JSX instead of being directly invoked.");I(k)}else if(ae===1){const Ce=M.pop();if(Ce==null)throw new Error("React Compiler internal error: unexpected null in guard stack");M.length===0&&(A=null),I(Ce)}else if(ae===2)M.push(he),I(A);else if(ae===3){const Ce=M.pop();if(Ce==null)throw new Error("React Compiler internal error: unexpected null in guard stack");I(Ce)}else throw new Error("React Compiler internal error: unreachable block"+ae)}function F(ae){for(let he=0;he<ae.length;he++)ae[he]=S}function G(){throw new Error("TODO: implement $makeReadOnly in react-compiler-runtime")}var q=new Map;function ee(){for(const ae of q.values())ae.forEach(he=>{he.count=0})}function Z(ae,he){let Ce=q.get(ae);Ce==null&&(Ce=new Set,q.set(ae,Ce)),Ce.add(he)}function K(ae,he){const Ce=q.get(ae);Ce?.delete(he)}function oe(ae){const he=h(null);he.current!=null&&(he.current.count+=1),f(()=>{if(he.current==null){const Ce={count:0};Z(ae,Ce),he.current=Ce}return()=>{he.current!==null&&K(ae,he.current)}})}var Y=new Set;function de(ae,he,Ce,le,J,Ee){function we(ze,$e,Dt,$t){const ii=`${le}:${Ee} [${J}] ${Ce}${Dt} changed from ${ze} to ${$e} at depth ${$t}`;Y.has(ii)||(Y.add(ii),console.error(ii))}const Ae=2;function Ue(ze,$e,Dt,$t){if(!($t>Ae)){if(ze===$e)return;if(typeof ze!=typeof $e)we(`type ${typeof ze}`,`type ${typeof $e}`,Dt,$t);else if(typeof ze=="object"){const ii=Array.isArray(ze),di=Array.isArray($e);if(ze===null&&$e!==null)we("null",`type ${typeof $e}`,Dt,$t);else if($e===null)we(`type ${typeof ze}`,"null",Dt,$t);else if(ze instanceof Map)if(!($e instanceof Map))we("Map instance","other value",Dt,$t);else if(ze.size!==$e.size)we(`Map instance with size ${ze.size}`,`Map instance with size ${$e.size}`,Dt,$t);else for(const[Oe,ke]of ze)$e.has(Oe)?Ue(ke,$e.get(Oe),`${Dt}.get(${Oe})`,$t+1):we(`Map instance with key ${Oe}`,`Map instance without key ${Oe}`,Dt,$t);else if($e instanceof Map)we("other value","Map instance",Dt,$t);else if(ze instanceof Set)if(!($e instanceof Set))we("Set instance","other value",Dt,$t);else if(ze.size!==$e.size)we(`Set instance with size ${ze.size}`,`Set instance with size ${$e.size}`,Dt,$t);else for(const Oe of $e)ze.has(Oe)||we(`Set instance without element ${Oe}`,`Set instance with element ${Oe}`,Dt,$t);else if($e instanceof Set)we("other value","Set instance",Dt,$t);else if(ii||di)if(ii!==di)we(`type ${ii?"array":"object"}`,`type ${di?"array":"object"}`,Dt,$t);else if(ze.length!==$e.length)we(`array with length ${ze.length}`,`array with length ${$e.length}`,Dt,$t);else for(let Oe=0;Oe<ze.length;Oe++)Ue(ze[Oe],$e[Oe],`${Dt}[${Oe}]`,$t+1);else if(g(ze)||g($e))g(ze)!==g($e)?we(`type ${g(ze)?"React element":"object"}`,`type ${g($e)?"React element":"object"}`,Dt,$t):ze.type!==$e.type?we(`React element of type ${ze.type}`,`React element of type ${$e.type}`,Dt,$t):Ue(ze.props,$e.props,`[props of ${Dt}]`,$t+1);else{for(const Oe in $e)Oe in ze||we(`object without key ${Oe}`,`object with key ${Oe}`,Dt,$t);for(const Oe in ze)Oe in $e?Ue(ze[Oe],$e[Oe],`${Dt}.${Oe}`,$t+1):we(`object with key ${Oe}`,`object without key ${Oe}`,Dt,$t)}}else{if(typeof ze=="function")return;isNaN(ze)||isNaN($e)?isNaN(ze)!==isNaN($e)&&we(`${isNaN(ze)?"NaN":"non-NaN value"}`,`${isNaN($e)?"NaN":"non-NaN value"}`,Dt,$t):ze!==$e&&we(ze,$e,Dt,$t)}}}Ue(ae,he,"",0)}return jU}var Ai=PWe();const MWe=({title:i,titleId:e,...t})=>O.createElement("svg",{height:"1em",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":e,...t},i?O.createElement("title",{id:e},i):null,O.createElement("path",{d:"M5.0484 1.40838C6.12624 0.33054 7.87376 0.330541 8.9516 1.40838L12.5916 5.0484C13.6695 6.12624 13.6695 7.87376 12.5916 8.9516L8.9516 12.5916C7.87376 13.6695 6.12624 13.6695 5.0484 12.5916L1.40838 8.9516C0.33054 7.87376 0.330541 6.12624 1.40838 5.0484L5.0484 1.40838Z",stroke:"currentColor",strokeWidth:1.2}),O.createElement("rect",{x:6,y:6,width:2,height:2,rx:1,fill:"currentColor"})),RWe=({title:i,titleId:e,...t})=>O.createElement("svg",{height:"1em",viewBox:"0 0 14 9",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":e,...t},i?O.createElement("title",{id:e},i):null,O.createElement("path",{d:"M1 1L7 7L13 1",stroke:"currentColor",strokeWidth:1.5})),OWe=({title:i,titleId:e,...t})=>O.createElement("svg",{height:"1em",viewBox:"0 0 7 10",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":e,...t},i?O.createElement("title",{id:e},i):null,O.createElement("path",{d:"M6 1.04819L2 5.04819L6 9.04819",stroke:"currentColor",strokeWidth:1.75})),FWe=({title:i,titleId:e,...t})=>O.createElement("svg",{height:"1em",viewBox:"0 0 14 9",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":e,...t},i?O.createElement("title",{id:e},i):null,O.createElement("path",{d:"M13 8L7 2L1 8",stroke:"currentColor",strokeWidth:1.5})),BWe=({title:i,titleId:e,...t})=>O.createElement("svg",{height:"1em",viewBox:"0 0 14 14",stroke:"currentColor",strokeWidth:3,xmlns:"http://www.w3.org/2000/svg","aria-labelledby":e,...t},i?O.createElement("title",{id:e},i):null,O.createElement("path",{d:"M1 1L12.9998 12.9997"}),O.createElement("path",{d:"M13 1L1.00079 13.0003"})),VWe=({title:i,titleId:e,...t})=>O.createElement("svg",{height:"1em",viewBox:"-2 -2 22 22",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":e,...t},i?O.createElement("title",{id:e},i):null,O.createElement("path",{d:"M11.25 14.2105V15.235C11.25 16.3479 10.3479 17.25 9.23501 17.25H2.76499C1.65214 17.25 0.75 16.3479 0.75 15.235L0.75 8.76499C0.75 7.65214 1.65214 6.75 2.76499 6.75L3.78947 6.75",stroke:"currentColor",strokeWidth:1.5}),O.createElement("rect",{x:6.75,y:.75,width:10.5,height:10.5,rx:2.2069,stroke:"currentColor",strokeWidth:1.5})),WWe=({title:i,titleId:e,...t})=>O.createElement("svg",{height:"1em",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":e,...t},i?O.createElement("title",{id:e},i):null,O.createElement("path",{d:"M5.0484 1.40838C6.12624 0.33054 7.87376 0.330541 8.9516 1.40838L12.5916 5.0484C13.6695 6.12624 13.6695 7.87376 12.5916 8.9516L8.9516 12.5916C7.87376 13.6695 6.12624 13.6695 5.0484 12.5916L1.40838 8.9516C0.33054 7.87376 0.330541 6.12624 1.40838 5.0484L5.0484 1.40838Z",stroke:"currentColor",strokeWidth:1.2}),O.createElement("path",{d:"M5 9L9 5",stroke:"currentColor",strokeWidth:1.2}),O.createElement("path",{d:"M5 5L9 9",stroke:"currentColor",strokeWidth:1.2})),HWe=({title:i,titleId:e,...t})=>O.createElement("svg",{height:"1em",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":e,...t},i?O.createElement("title",{id:e},i):null,O.createElement("path",{d:"M4 8L8 4",stroke:"currentColor",strokeWidth:1.2}),O.createElement("path",{d:"M4 4L8 8",stroke:"currentColor",strokeWidth:1.2}),O.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.5 1.2H9C9.99411 1.2 10.8 2.00589 10.8 3V9C10.8 9.99411 9.99411 10.8 9 10.8H8.5V12H9C10.6569 12 12 10.6569 12 9V3C12 1.34315 10.6569 0 9 0H8.5V1.2ZM3.5 1.2V0H3C1.34315 0 0 1.34315 0 3V9C0 10.6569 1.34315 12 3 12H3.5V10.8H3C2.00589 10.8 1.2 9.99411 1.2 9V3C1.2 2.00589 2.00589 1.2 3 1.2H3.5Z",fill:"currentColor"})),$We=({title:i,titleId:e,...t})=>O.createElement("svg",{height:"1em",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":e,...t},i?O.createElement("title",{id:e},i):null,O.createElement("rect",{x:.6,y:.6,width:10.8,height:10.8,rx:3.4,stroke:"currentColor",strokeWidth:1.2}),O.createElement("path",{d:"M4 8L8 4",stroke:"currentColor",strokeWidth:1.2}),O.createElement("path",{d:"M4 4L8 8",stroke:"currentColor",strokeWidth:1.2})),UWe=({title:i,titleId:e,...t})=>O.createElement("svg",{height:"1em",viewBox:"0 0.5 12 12",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":e,...t},i?O.createElement("title",{id:e},i):null,O.createElement("rect",{x:7,y:5.5,width:2,height:2,rx:1,transform:"rotate(90 7 5.5)",fill:"currentColor"}),O.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.8 9L10.8 9.5C10.8 10.4941 9.99411 11.3 9 11.3L3 11.3C2.00589 11.3 1.2 10.4941 1.2 9.5L1.2 9L-3.71547e-07 9L-3.93402e-07 9.5C-4.65826e-07 11.1569 1.34314 12.5 3 12.5L9 12.5C10.6569 12.5 12 11.1569 12 9.5L12 9L10.8 9ZM10.8 4L12 4L12 3.5C12 1.84315 10.6569 0.5 9 0.5L3 0.5C1.34315 0.5 -5.87117e-08 1.84315 -1.31135e-07 3.5L-1.5299e-07 4L1.2 4L1.2 3.5C1.2 2.50589 2.00589 1.7 3 1.7L9 1.7C9.99411 1.7 10.8 2.50589 10.8 3.5L10.8 4Z",fill:"currentColor"})),zWe=({title:i,titleId:e,...t})=>O.createElement("svg",{height:"1em",viewBox:"0 0 20 24",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":e,...t},i?O.createElement("title",{id:e},i):null,O.createElement("path",{d:"M0.75 3C0.75 1.75736 1.75736 0.75 3 0.75H17.25C17.8023 0.75 18.25 1.19772 18.25 1.75V5.25",stroke:"currentColor",strokeWidth:1.5}),O.createElement("path",{d:"M0.75 3C0.75 4.24264 1.75736 5.25 3 5.25H18.25C18.8023 5.25 19.25 5.69771 19.25 6.25V22.25C19.25 22.8023 18.8023 23.25 18.25 23.25H3C1.75736 23.25 0.75 22.2426 0.75 21V3Z",stroke:"currentColor",strokeWidth:1.5}),O.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3 5.25C1.75736 5.25 0.75 4.24264 0.75 3V21C0.75 22.2426 1.75736 23.25 3 23.25H18.25C18.8023 23.25 19.25 22.8023 19.25 22.25V6.25C19.25 5.69771 18.8023 5.25 18.25 5.25H3ZM13 11L6 11V12.5L13 12.5V11Z",fill:"currentColor"})),jWe=({title:i,titleId:e,...t})=>O.createElement("svg",{height:"1em",viewBox:"0 0 20 24",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":e,...t},i?O.createElement("title",{id:e},i):null,O.createElement("path",{d:"M0.75 3C0.75 4.24264 1.75736 5.25 3 5.25H17.25M0.75 3C0.75 1.75736 1.75736 0.75 3 0.75H16.25C16.8023 0.75 17.25 1.19772 17.25 1.75V5.25M0.75 3V21C0.75 22.2426 1.75736 23.25 3 23.25H18.25C18.8023 23.25 19.25 22.8023 19.25 22.25V6.25C19.25 5.69771 18.8023 5.25 18.25 5.25H17.25",stroke:"currentColor",strokeWidth:1.5}),O.createElement("line",{x1:13,y1:11.75,x2:6,y2:11.75,stroke:"currentColor",strokeWidth:1.5})),qWe=({title:i,titleId:e,...t})=>O.createElement("svg",{height:"1em",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":e,...t},i?O.createElement("title",{id:e},i):null,O.createElement("rect",{x:5,y:5,width:2,height:2,rx:1,fill:"currentColor"}),O.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.5 1.2H9C9.99411 1.2 10.8 2.00589 10.8 3V9C10.8 9.99411 9.99411 10.8 9 10.8H8.5V12H9C10.6569 12 12 10.6569 12 9V3C12 1.34315 10.6569 0 9 0H8.5V1.2ZM3.5 1.2V0H3C1.34315 0 0 1.34315 0 3V9C0 10.6569 1.34315 12 3 12H3.5V10.8H3C2.00589 10.8 1.2 9.99411 1.2 9V3C1.2 2.00589 2.00589 1.2 3 1.2H3.5Z",fill:"currentColor"})),GWe=({title:i,titleId:e,...t})=>O.createElement("svg",{height:"1em",viewBox:"0 0 12 13",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":e,...t},i?O.createElement("title",{id:e},i):null,O.createElement("rect",{x:.6,y:1.1,width:10.8,height:10.8,rx:2.4,stroke:"currentColor",strokeWidth:1.2}),O.createElement("rect",{x:5,y:5.5,width:2,height:2,rx:1,fill:"currentColor"})),KWe=({title:i,titleId:e,...t})=>O.createElement("svg",{height:"1em",viewBox:"0 0 24 20",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":e,...t},i?O.createElement("title",{id:e},i):null,O.createElement("path",{d:"M1.59375 9.52344L4.87259 12.9944L8.07872 9.41249",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"square"}),O.createElement("path",{d:"M13.75 5.25V10.75H18.75",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"square"}),O.createElement("path",{d:"M4.95427 11.9332C4.55457 10.0629 4.74441 8.11477 5.49765 6.35686C6.25089 4.59894 7.5305 3.11772 9.16034 2.11709C10.7902 1.11647 12.6901 0.645626 14.5986 0.769388C16.5071 0.893151 18.3303 1.60543 19.8172 2.80818C21.3042 4.01093 22.3818 5.64501 22.9017 7.48548C23.4216 9.32595 23.3582 11.2823 22.7203 13.0853C22.0824 14.8883 20.9013 16.4492 19.3396 17.5532C17.778 18.6572 15.9125 19.25 14 19.25",stroke:"currentColor",strokeWidth:1.5})),YWe=({title:i,titleId:e,...t})=>O.createElement("svg",{height:"1em",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":e,...t},i?O.createElement("title",{id:e},i):null,O.createElement("circle",{cx:6,cy:6,r:5.4,stroke:"currentColor",strokeWidth:1.2,strokeDasharray:"4.241025 4.241025",transform:"rotate(22.5 6 6)"}),O.createElement("circle",{cx:6,cy:6,r:1,fill:"currentColor"})),XWe=({title:i,titleId:e,...t})=>O.createElement("svg",{height:"1em",viewBox:"0 0 19 18",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":e,...t},i?O.createElement("title",{id:e},i):null,O.createElement("path",{d:"M1.5 14.5653C1.5 15.211 1.75652 15.8303 2.21314 16.2869C2.66975 16.7435 3.28905 17 3.9348 17C4.58054 17 5.19984 16.7435 5.65646 16.2869C6.11307 15.8303 6.36959 15.211 6.36959 14.5653V12.1305H3.9348C3.28905 12.1305 2.66975 12.387 2.21314 12.8437C1.75652 13.3003 1.5 13.9195 1.5 14.5653Z",stroke:"currentColor",strokeWidth:1.125,strokeLinecap:"round",strokeLinejoin:"round"}),O.createElement("path",{d:"M3.9348 1.00063C3.28905 1.00063 2.66975 1.25715 2.21314 1.71375C1.75652 2.17035 1.5 2.78964 1.5 3.43537C1.5 4.0811 1.75652 4.70038 2.21314 5.15698C2.66975 5.61358 3.28905 5.8701 3.9348 5.8701H6.36959V3.43537C6.36959 2.78964 6.11307 2.17035 5.65646 1.71375C5.19984 1.25715 4.58054 1.00063 3.9348 1.00063Z",stroke:"currentColor",strokeWidth:1.125,strokeLinecap:"round",strokeLinejoin:"round"}),O.createElement("path",{d:"M15.0652 12.1305H12.6304V14.5653C12.6304 15.0468 12.7732 15.5175 13.0407 15.9179C13.3083 16.3183 13.6885 16.6304 14.1334 16.8147C14.5783 16.9989 15.0679 17.0472 15.5402 16.9532C16.0125 16.8593 16.4464 16.6274 16.7869 16.2869C17.1274 15.9464 17.3593 15.5126 17.4532 15.0403C17.5472 14.568 17.4989 14.0784 17.3147 13.6335C17.1304 13.1886 16.8183 12.8084 16.4179 12.5409C16.0175 12.2733 15.5468 12.1305 15.0652 12.1305Z",stroke:"currentColor",strokeWidth:1.125,strokeLinecap:"round",strokeLinejoin:"round"}),O.createElement("path",{d:"M12.6318 5.86775H6.36955V12.1285H12.6318V5.86775Z",stroke:"currentColor",strokeWidth:1.125,strokeLinecap:"round",strokeLinejoin:"round"}),O.createElement("path",{d:"M17.5 3.43473C17.5 2.789 17.2435 2.16972 16.7869 1.71312C16.3303 1.25652 15.711 1 15.0652 1C14.4195 1 13.8002 1.25652 13.3435 1.71312C12.8869 2.16972 12.6304 2.789 12.6304 3.43473V5.86946H15.0652C15.711 5.86946 16.3303 5.61295 16.7869 5.15635C17.2435 4.69975 17.5 4.08046 17.5 3.43473Z",stroke:"currentColor",strokeWidth:1.125,strokeLinecap:"round",strokeLinejoin:"round"})),QWe=({title:i,titleId:e,...t})=>O.createElement("svg",{height:"1em",viewBox:"0 0 13 13",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":e,...t},i?O.createElement("title",{id:e},i):null,O.createElement("circle",{cx:5,cy:5,r:4.35,stroke:"currentColor",strokeWidth:1.3}),O.createElement("line",{x1:8.45962,y1:8.54038,x2:11.7525,y2:11.8333,stroke:"currentColor",strokeWidth:1.3})),ZWe=({title:i,titleId:e,...t})=>O.createElement("svg",{height:"1em",viewBox:"-2 -2 22 22",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":e,...t},i?O.createElement("title",{id:e},i):null,O.createElement("path",{d:"M17.2492 6V2.9569C17.2492 1.73806 16.2611 0.75 15.0423 0.75L2.9569 0.75C1.73806 0.75 0.75 1.73806 0.75 2.9569L0.75 6",stroke:"currentColor",strokeWidth:1.5}),O.createElement("path",{d:"M0.749873 12V15.0431C0.749873 16.2619 1.73794 17.25 2.95677 17.25H15.0421C16.261 17.25 17.249 16.2619 17.249 15.0431V12",stroke:"currentColor",strokeWidth:1.5}),O.createElement("path",{d:"M6 4.5L9 7.5L12 4.5",stroke:"currentColor",strokeWidth:1.5}),O.createElement("path",{d:"M12 13.5L9 10.5L6 13.5",stroke:"currentColor",strokeWidth:1.5})),JWe=({title:i,titleId:e,...t})=>O.createElement("svg",{height:"1em",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":e,...t},i?O.createElement("title",{id:e},i):null,O.createElement("path",{d:"M0.75 13.25L0.0554307 12.967C-0.0593528 13.2488 0.00743073 13.5719 0.224488 13.7851C0.441545 13.9983 0.765869 14.0592 1.04549 13.9393L0.75 13.25ZM12.8214 1.83253L12.2911 2.36286L12.2911 2.36286L12.8214 1.83253ZM12.8214 3.90194L13.3517 4.43227L12.8214 3.90194ZM10.0981 1.17859L9.56773 0.648259L10.0981 1.17859ZM12.1675 1.17859L12.6978 0.648258L12.6978 0.648257L12.1675 1.17859ZM2.58049 8.75697L3.27506 9.03994L2.58049 8.75697ZM2.70066 8.57599L3.23099 9.10632L2.70066 8.57599ZM5.2479 11.4195L4.95355 10.7297L5.2479 11.4195ZM5.42036 11.303L4.89003 10.7727L5.42036 11.303ZM4.95355 10.7297C4.08882 11.0987 3.41842 11.362 2.73535 11.6308C2.05146 11.9 1.35588 12.1743 0.454511 12.5607L1.04549 13.9393C1.92476 13.5624 2.60256 13.2951 3.28469 13.0266C3.96762 12.7578 4.65585 12.4876 5.54225 12.1093L4.95355 10.7297ZM1.44457 13.533L3.27506 9.03994L1.88592 8.474L0.0554307 12.967L1.44457 13.533ZM3.23099 9.10632L10.6284 1.70892L9.56773 0.648259L2.17033 8.04566L3.23099 9.10632ZM11.6371 1.70892L12.2911 2.36286L13.3517 1.3022L12.6978 0.648258L11.6371 1.70892ZM12.2911 3.37161L4.89003 10.7727L5.95069 11.8333L13.3517 4.43227L12.2911 3.37161ZM12.2911 2.36286C12.5696 2.64142 12.5696 3.09305 12.2911 3.37161L13.3517 4.43227C14.2161 3.56792 14.2161 2.16654 13.3517 1.3022L12.2911 2.36286ZM10.6284 1.70892C10.9069 1.43036 11.3586 1.43036 11.6371 1.70892L12.6978 0.648257C11.8335 -0.216088 10.4321 -0.216084 9.56773 0.648259L10.6284 1.70892ZM3.27506 9.03994C3.26494 9.06479 3.24996 9.08735 3.23099 9.10632L2.17033 8.04566C2.04793 8.16806 1.95123 8.31369 1.88592 8.474L3.27506 9.03994ZM5.54225 12.1093C5.69431 12.0444 5.83339 11.9506 5.95069 11.8333L4.89003 10.7727C4.90863 10.7541 4.92988 10.7398 4.95355 10.7297L5.54225 12.1093Z",fill:"currentColor"}),O.createElement("path",{d:"M11.5 4.5L9.5 2.5",stroke:"currentColor",strokeWidth:1.4026,strokeLinecap:"round",strokeLinejoin:"round"}),O.createElement("path",{d:"M5.5 10.5L3.5 8.5",stroke:"currentColor",strokeWidth:1.4026,strokeLinecap:"round",strokeLinejoin:"round"})),eHe=({title:i,titleId:e,...t})=>O.createElement("svg",{height:"1em",viewBox:"0 0 16 18",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":e,...t},i?O.createElement("title",{id:e},i):null,O.createElement("path",{d:"M1.32226e-07 1.6609C7.22332e-08 0.907329 0.801887 0.424528 1.46789 0.777117L15.3306 8.11621C16.0401 8.49182 16.0401 9.50818 15.3306 9.88379L1.46789 17.2229C0.801886 17.5755 1.36076e-06 17.0927 1.30077e-06 16.3391L1.32226e-07 1.6609Z",fill:"currentColor"})),tHe=({title:i,titleId:e,...t})=>O.createElement("svg",{height:"1em",viewBox:"0 0 10 16",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":e,...t},i?O.createElement("title",{id:e},i):null,O.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4.25 9.25V13.5H5.75V9.25L10 9.25V7.75L5.75 7.75V3.5H4.25V7.75L0 7.75V9.25L4.25 9.25Z"})),iHe=({title:i,titleId:e,...t})=>O.createElement("svg",{width:25,height:25,viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":e,...t},i?O.createElement("title",{id:e},i):null,O.createElement("path",{d:"M10.2852 24.0745L13.7139 18.0742",stroke:"currentColor",strokeWidth:1.5625}),O.createElement("path",{d:"M14.5742 24.0749L17.1457 19.7891",stroke:"currentColor",strokeWidth:1.5625}),O.createElement("path",{d:"M19.4868 24.0735L20.7229 21.7523C21.3259 20.6143 21.5457 19.3122 21.3496 18.0394C21.1535 16.7666 20.5519 15.591 19.6342 14.6874L23.7984 6.87853C24.0123 6.47728 24.0581 6.00748 23.9256 5.57249C23.7932 5.1375 23.4933 4.77294 23.0921 4.55901C22.6908 4.34509 22.221 4.29932 21.7861 4.43178C21.3511 4.56424 20.9865 4.86408 20.7726 5.26533L16.6084 13.0742C15.3474 12.8142 14.0362 12.9683 12.8699 13.5135C11.7035 14.0586 10.7443 14.9658 10.135 16.1L6 24.0735",stroke:"currentColor",strokeWidth:1.5625}),O.createElement("path",{d:"M4 15L5 13L7 12L5 11L4 9L3 11L1 12L3 13L4 15Z",stroke:"currentColor",strokeWidth:1.5625,strokeLinejoin:"round"}),O.createElement("path",{d:"M11.5 8L12.6662 5.6662L15 4.5L12.6662 3.3338L11.5 1L10.3338 3.3338L8 4.5L10.3338 5.6662L11.5 8Z",stroke:"currentColor",strokeWidth:1.5625,strokeLinejoin:"round"})),nHe=({title:i,titleId:e,...t})=>O.createElement("svg",{height:"1em",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":e,...t},i?O.createElement("title",{id:e},i):null,O.createElement("path",{d:"M4.75 9.25H1.25V12.75",stroke:"currentColor",strokeWidth:1,strokeLinecap:"square"}),O.createElement("path",{d:"M11.25 6.75H14.75V3.25",stroke:"currentColor",strokeWidth:1,strokeLinecap:"square"}),O.createElement("path",{d:"M14.1036 6.65539C13.8 5.27698 13.0387 4.04193 11.9437 3.15131C10.8487 2.26069 9.48447 1.76694 8.0731 1.75043C6.66173 1.73392 5.28633 2.19563 4.17079 3.0604C3.05526 3.92516 2.26529 5.14206 1.92947 6.513",stroke:"currentColor",strokeWidth:1}),O.createElement("path",{d:"M1.89635 9.34461C2.20001 10.723 2.96131 11.9581 4.05631 12.8487C5.15131 13.7393 6.51553 14.2331 7.9269 14.2496C9.33827 14.2661 10.7137 13.8044 11.8292 12.9396C12.9447 12.0748 13.7347 10.8579 14.0705 9.487",stroke:"currentColor",strokeWidth:1})),sHe=({title:i,titleId:e,...t})=>O.createElement("svg",{height:"1em",viewBox:"0 0 13 13",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":e,...t},i?O.createElement("title",{id:e},i):null,O.createElement("rect",{x:.6,y:.6,width:11.8,height:11.8,rx:5.9,stroke:"currentColor",strokeWidth:1.2}),O.createElement("path",{d:"M4.25 7.5C4.25 6 5.75 5 6.5 6.5C7.25 8 8.75 7 8.75 5.5",stroke:"currentColor",strokeWidth:1.2})),rHe=({title:i,titleId:e,...t})=>O.createElement("svg",{height:"1em",viewBox:"0 0 21 20",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":e,...t},i?O.createElement("title",{id:e},i):null,O.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.29186 1.92702C9.06924 1.82745 8.87014 1.68202 8.70757 1.50024L7.86631 0.574931C7.62496 0.309957 7.30773 0.12592 6.95791 0.0479385C6.60809 -0.0300431 6.24274 0.00182978 5.91171 0.139208C5.58068 0.276585 5.3001 0.512774 5.10828 0.815537C4.91645 1.1183 4.82272 1.47288 4.83989 1.83089L4.90388 3.08019C4.91612 3.32348 4.87721 3.56662 4.78968 3.79394C4.70215 4.02126 4.56794 4.2277 4.39571 4.39994C4.22347 4.57219 4.01704 4.7064 3.78974 4.79394C3.56243 4.88147 3.3193 4.92038 3.07603 4.90814L1.8308 4.84414C1.47162 4.82563 1.11553 4.91881 0.811445 5.11086C0.507359 5.30292 0.270203 5.58443 0.132561 5.91671C-0.00508149 6.249 -0.0364554 6.61576 0.0427496 6.9666C0.121955 7.31744 0.307852 7.63514 0.5749 7.87606L1.50016 8.71204C1.68193 8.87461 1.82735 9.07373 1.92692 9.29636C2.02648 9.51898 2.07794 9.76012 2.07794 10.004C2.07794 10.2479 2.02648 10.489 1.92692 10.7116C1.82735 10.9343 1.68193 11.1334 1.50016 11.296L0.5749 12.1319C0.309856 12.3729 0.125575 12.6898 0.0471809 13.0393C-0.0312128 13.3888 9.64098e-05 13.754 0.13684 14.0851C0.273583 14.4162 0.509106 14.6971 0.811296 14.8894C1.11349 15.0817 1.46764 15.1762 1.82546 15.1599L3.0707 15.0959C3.31397 15.0836 3.5571 15.1225 3.7844 15.2101C4.01171 15.2976 4.21814 15.4318 4.39037 15.6041C4.56261 15.7763 4.69682 15.9827 4.78435 16.2101C4.87188 16.4374 4.91078 16.6805 4.89855 16.9238L4.83455 18.1691C4.81605 18.5283 4.90921 18.8844 5.10126 19.1885C5.2933 19.4926 5.5748 19.7298 5.90707 19.8674C6.23934 20.0051 6.60608 20.0365 6.9569 19.9572C7.30772 19.878 7.6254 19.6921 7.86631 19.4251L8.7129 18.4998C8.87547 18.318 9.07458 18.1725 9.29719 18.073C9.51981 17.9734 9.76093 17.9219 10.0048 17.9219C10.2487 17.9219 10.4898 17.9734 10.7124 18.073C10.935 18.1725 11.1341 18.318 11.2967 18.4998L12.1326 19.4251C12.3735 19.6921 12.6912 19.878 13.042 19.9572C13.3929 20.0365 13.7596 20.0051 14.0919 19.8674C14.4241 19.7298 14.7056 19.4926 14.8977 19.1885C15.0897 18.8844 15.1829 18.5283 15.1644 18.1691L15.1004 16.9238C15.0882 16.6805 15.1271 16.4374 15.2146 16.2101C15.3021 15.9827 15.4363 15.7763 15.6086 15.6041C15.7808 15.4318 15.9872 15.2976 16.2145 15.2101C16.4418 15.1225 16.685 15.0836 16.9282 15.0959L18.1735 15.1599C18.5326 15.1784 18.8887 15.0852 19.1928 14.8931C19.4969 14.7011 19.7341 14.4196 19.8717 14.0873C20.0093 13.755 20.0407 13.3882 19.9615 13.0374C19.8823 12.6866 19.6964 12.3689 19.4294 12.1279L18.5041 11.292C18.3223 11.1294 18.1769 10.9303 18.0774 10.7076C17.9778 10.485 17.9263 10.2439 17.9263 10C17.9263 9.75612 17.9778 9.51499 18.0774 9.29236C18.1769 9.06973 18.3223 8.87062 18.5041 8.70804L19.4294 7.87206C19.6964 7.63114 19.8823 7.31344 19.9615 6.9626C20.0407 6.61176 20.0093 6.245 19.8717 5.91271C19.7341 5.58043 19.4969 5.29892 19.1928 5.10686C18.8887 4.91481 18.5326 4.82163 18.1735 4.84014L16.9282 4.90414C16.685 4.91638 16.4418 4.87747 16.2145 4.78994C15.9872 4.7024 15.7808 4.56818 15.6086 4.39594C15.4363 4.2237 15.3021 4.01726 15.2146 3.78994C15.1271 3.56262 15.0882 3.31948 15.1004 3.07619L15.1644 1.83089C15.1829 1.4717 15.0897 1.11559 14.8977 0.811487C14.7056 0.507385 14.4241 0.270217 14.0919 0.132568C13.7596 -0.00508182 13.3929 -0.0364573 13.042 0.0427519C12.6912 0.121961 12.3735 0.307869 12.1326 0.574931L11.2914 1.50024C11.1288 1.68202 10.9297 1.82745 10.7071 1.92702C10.4845 2.02659 10.2433 2.07805 9.99947 2.07805C9.7556 2.07805 9.51448 2.02659 9.29186 1.92702ZM14.3745 10C14.3745 12.4162 12.4159 14.375 9.99977 14.375C7.58365 14.375 5.625 12.4162 5.625 10C5.625 7.58375 7.58365 5.625 9.99977 5.625C12.4159 5.625 14.3745 7.58375 14.3745 10Z",fill:"currentColor"})),oHe=({title:i,titleId:e,...t})=>O.createElement("svg",{height:"1em",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":e,...t},i?O.createElement("title",{id:e},i):null,O.createElement("path",{d:"M6.5782 1.07092C6.71096 0.643026 7.28904 0.643027 7.4218 1.07092L8.59318 4.84622C8.65255 5.03758 8.82284 5.16714 9.01498 5.16714L12.8056 5.16714C13.2353 5.16714 13.4139 5.74287 13.0663 6.00732L9.99962 8.34058C9.84418 8.45885 9.77913 8.66848 9.83851 8.85984L11.0099 12.6351C11.1426 13.063 10.675 13.4189 10.3274 13.1544L7.26069 10.8211C7.10524 10.7029 6.89476 10.7029 6.73931 10.8211L3.6726 13.1544C3.32502 13.4189 2.85735 13.063 2.99012 12.6351L4.16149 8.85984C4.22087 8.66848 4.15582 8.45885 4.00038 8.34058L0.933671 6.00732C0.586087 5.74287 0.764722 5.16714 1.19436 5.16714L4.98502 5.16714C5.17716 5.16714 5.34745 5.03758 5.40682 4.84622L6.5782 1.07092Z",fill:"currentColor",stroke:"currentColor"})),aHe=({title:i,titleId:e,...t})=>O.createElement("svg",{height:"1em",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":e,...t},i?O.createElement("title",{id:e},i):null,O.createElement("path",{d:"M6.5782 1.07092C6.71096 0.643026 7.28904 0.643027 7.4218 1.07092L8.59318 4.84622C8.65255 5.03758 8.82284 5.16714 9.01498 5.16714L12.8056 5.16714C13.2353 5.16714 13.4139 5.74287 13.0663 6.00732L9.99962 8.34058C9.84418 8.45885 9.77913 8.66848 9.83851 8.85984L11.0099 12.6351C11.1426 13.063 10.675 13.4189 10.3274 13.1544L7.26069 10.8211C7.10524 10.7029 6.89476 10.7029 6.73931 10.8211L3.6726 13.1544C3.32502 13.4189 2.85735 13.063 2.99012 12.6351L4.16149 8.85984C4.22087 8.66848 4.15582 8.45885 4.00038 8.34058L0.933671 6.00732C0.586087 5.74287 0.764722 5.16714 1.19436 5.16714L4.98502 5.16714C5.17716 5.16714 5.34745 5.03758 5.40682 4.84622L6.5782 1.07092Z",stroke:"currentColor",strokeWidth:1.5})),lHe=({title:i,titleId:e,...t})=>O.createElement("svg",{height:"1em",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":e,...t},i?O.createElement("title",{id:e},i):null,O.createElement("rect",{width:16,height:16,rx:2,fill:"currentColor"})),uHe=({title:i,titleId:e,...t})=>O.createElement("svg",{width:"1em",height:"5em",xmlns:"http://www.w3.org/2000/svg",fillRule:"evenodd","aria-hidden":"true",viewBox:"0 0 23 23",style:{height:"1.5em"},clipRule:"evenodd","aria-labelledby":e,...t},i?O.createElement("title",{id:e},i):null,O.createElement("path",{d:"M19 24h-14c-1.104 0-2-.896-2-2v-17h-1v-2h6v-1.5c0-.827.673-1.5 1.5-1.5h5c.825 0 1.5.671 1.5 1.5v1.5h6v2h-1v17c0 1.104-.896 2-2 2zm0-19h-14v16.5c0 .276.224.5.5.5h13c.276 0 .5-.224.5-.5v-16.5zm-7 7.586l3.293-3.293 1.414 1.414-3.293 3.293 3.293 3.293-1.414 1.414-3.293-3.293-3.293 3.293-1.414-1.414 3.293-3.293-3.293-3.293 1.414-1.414 3.293 3.293zm2-10.586h-4v1h4v-1z",fill:"currentColor",strokeWidth:.25,stroke:"currentColor"})),cHe=({title:i,titleId:e,...t})=>O.createElement("svg",{height:"1em",viewBox:"0 0 13 13",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":e,...t},i?O.createElement("title",{id:e},i):null,O.createElement("rect",{x:.6,y:.6,width:11.8,height:11.8,rx:5.9,stroke:"currentColor",strokeWidth:1.2}),O.createElement("rect",{x:5.5,y:5.5,width:2,height:2,rx:1,fill:"currentColor"})),dHe=mr(MWe),hHe=mr(RWe),fHe=mr(OWe),pHe=mr(FWe),qU=mr(BWe),gHe=mr(VWe),mHe=mr(WWe),_He=mr(HWe),bHe=mr($We),yHe=mr(UWe),vHe=mr(zWe),CHe=mr(jWe),wHe=mr(qWe),SHe=mr(GWe),xHe=mr(KWe),DHe=mr(YWe),EHe=mr(XWe),THe=mr(QWe),kHe=mr(ZWe),LHe=mr(JWe),AHe=mr(eHe),NHe=mr(tHe),IHe=mr(iHe),PHe=mr(nHe),MHe=mr(sHe),RHe=mr(rHe),OHe=mr(oHe),FHe=mr(aHe),BHe=mr(lHe),VHe=mr(uHe),vF=mr(cHe);function mr(i){const e=i.name.replace("Svg","").replaceAll(/([A-Z])/g," $1").trimStart().toLowerCase()+" icon",t=n=>{const s=Ai.c(2);let r;return s[0]!==n?(r=H.jsx(i,{title:e,...n}),s[0]=n,s[1]=r):r=s[1],r};return t.displayName=i.name,t}class WHe{constructor(){this.listeners=[],this.unexpectedErrorHandler=function(e){setTimeout(()=>{throw e.stack?pD.isErrorNoTelemetry(e)?new pD(e.message+`
|
|
9
|
+
`).replace(OQt,"")}function FVe(p,m){return m=OVe(m),OVe(p)===m}function Kr(p,m,v,T,N,P){switch(v){case"children":typeof T=="string"?m==="body"||m==="textarea"&&T===""||Ge(p,T):(typeof T=="number"||typeof T=="bigint")&&m!=="body"&&Ge(p,""+T);break;case"className":ev(p,"class",T);break;case"tabIndex":ev(p,"tabindex",T);break;case"dir":case"role":case"viewBox":case"width":case"height":ev(p,v,T);break;case"style":ei(p,T,P);break;case"data":if(m!=="object"){ev(p,"data",T);break}case"src":case"href":if(T===""&&(m!=="a"||v!=="href")){p.removeAttribute(v);break}if(T==null||typeof T=="function"||typeof T=="symbol"||typeof T=="boolean"){p.removeAttribute(v);break}T=wn(""+T),p.setAttribute(v,T);break;case"action":case"formAction":if(typeof T=="function"){p.setAttribute(v,"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 P=="function"&&(v==="formAction"?(m!=="input"&&Kr(p,m,"name",N.name,N,null),Kr(p,m,"formEncType",N.formEncType,N,null),Kr(p,m,"formMethod",N.formMethod,N,null),Kr(p,m,"formTarget",N.formTarget,N,null)):(Kr(p,m,"encType",N.encType,N,null),Kr(p,m,"method",N.method,N,null),Kr(p,m,"target",N.target,N,null)));if(T==null||typeof T=="symbol"||typeof T=="boolean"){p.removeAttribute(v);break}T=wn(""+T),p.setAttribute(v,T);break;case"onClick":T!=null&&(p.onclick=Cs);break;case"onScroll":T!=null&&Ss("scroll",p);break;case"onScrollEnd":T!=null&&Ss("scrollend",p);break;case"dangerouslySetInnerHTML":if(T!=null){if(typeof T!="object"||!("__html"in T))throw Error(n(61));if(v=T.__html,v!=null){if(N.children!=null)throw Error(n(60));p.innerHTML=v}}break;case"multiple":p.multiple=T&&typeof T!="function"&&typeof T!="symbol";break;case"muted":p.muted=T&&typeof T!="function"&&typeof T!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(T==null||typeof T=="function"||typeof T=="boolean"||typeof T=="symbol"){p.removeAttribute("xlink:href");break}v=wn(""+T),p.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",v);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":T!=null&&typeof T!="function"&&typeof T!="symbol"?p.setAttribute(v,""+T):p.removeAttribute(v);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":T&&typeof T!="function"&&typeof T!="symbol"?p.setAttribute(v,""):p.removeAttribute(v);break;case"capture":case"download":T===!0?p.setAttribute(v,""):T!==!1&&T!=null&&typeof T!="function"&&typeof T!="symbol"?p.setAttribute(v,T):p.removeAttribute(v);break;case"cols":case"rows":case"size":case"span":T!=null&&typeof T!="function"&&typeof T!="symbol"&&!isNaN(T)&&1<=T?p.setAttribute(v,T):p.removeAttribute(v);break;case"rowSpan":case"start":T==null||typeof T=="function"||typeof T=="symbol"||isNaN(T)?p.removeAttribute(v):p.setAttribute(v,T);break;case"popover":Ss("beforetoggle",p),Ss("toggle",p),ob(p,"popover",T);break;case"xlinkActuate":Pd(p,"http://www.w3.org/1999/xlink","xlink:actuate",T);break;case"xlinkArcrole":Pd(p,"http://www.w3.org/1999/xlink","xlink:arcrole",T);break;case"xlinkRole":Pd(p,"http://www.w3.org/1999/xlink","xlink:role",T);break;case"xlinkShow":Pd(p,"http://www.w3.org/1999/xlink","xlink:show",T);break;case"xlinkTitle":Pd(p,"http://www.w3.org/1999/xlink","xlink:title",T);break;case"xlinkType":Pd(p,"http://www.w3.org/1999/xlink","xlink:type",T);break;case"xmlBase":Pd(p,"http://www.w3.org/XML/1998/namespace","xml:base",T);break;case"xmlLang":Pd(p,"http://www.w3.org/XML/1998/namespace","xml:lang",T);break;case"xmlSpace":Pd(p,"http://www.w3.org/XML/1998/namespace","xml:space",T);break;case"is":ob(p,"is",T);break;case"innerText":case"textContent":break;default:(!(2<v.length)||v[0]!=="o"&&v[0]!=="O"||v[1]!=="n"&&v[1]!=="N")&&(v=as.get(v)||v,ob(p,v,T))}}function rhe(p,m,v,T,N,P){switch(v){case"style":ei(p,T,P);break;case"dangerouslySetInnerHTML":if(T!=null){if(typeof T!="object"||!("__html"in T))throw Error(n(61));if(v=T.__html,v!=null){if(N.children!=null)throw Error(n(60));p.innerHTML=v}}break;case"children":typeof T=="string"?Ge(p,T):(typeof T=="number"||typeof T=="bigint")&&Ge(p,""+T);break;case"onScroll":T!=null&&Ss("scroll",p);break;case"onScrollEnd":T!=null&&Ss("scrollend",p);break;case"onClick":T!=null&&(p.onclick=Cs);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Eh.hasOwnProperty(v))e:{if(v[0]==="o"&&v[1]==="n"&&(N=v.endsWith("Capture"),m=v.slice(2,N?v.length-7:void 0),P=p[Ot]||null,P=P!=null?P[v]:null,typeof P=="function"&&p.removeEventListener(m,P,N),typeof T=="function")){typeof P!="function"&&P!==null&&(v in p?p[v]=null:p.hasAttribute(v)&&p.removeAttribute(v)),p.addEventListener(m,T,N);break e}v in p?p[v]=T:T===!0?p.setAttribute(v,""):ob(p,v,T)}}}function Su(p,m,v){switch(m){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Ss("error",p),Ss("load",p);var T=!1,N=!1,P;for(P in v)if(v.hasOwnProperty(P)){var j=v[P];if(j!=null)switch(P){case"src":T=!0;break;case"srcSet":N=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(n(137,m));default:Kr(p,m,P,j,v,null)}}N&&Kr(p,m,"srcSet",v.srcSet,v,null),T&&Kr(p,m,"src",v.src,v,null);return;case"input":Ss("invalid",p);var ce=P=j=N=null,Le=null,Je=null;for(T in v)if(v.hasOwnProperty(T)){var Ct=v[T];if(Ct!=null)switch(T){case"name":N=Ct;break;case"type":j=Ct;break;case"checked":Le=Ct;break;case"defaultChecked":Je=Ct;break;case"value":P=Ct;break;case"defaultValue":ce=Ct;break;case"children":case"dangerouslySetInnerHTML":if(Ct!=null)throw Error(n(137,m));break;default:Kr(p,m,T,Ct,v,null)}}dL(p,P,ce,Le,Je,j,N,!1);return;case"select":Ss("invalid",p),T=j=P=null;for(N in v)if(v.hasOwnProperty(N)&&(ce=v[N],ce!=null))switch(N){case"value":P=ce;break;case"defaultValue":j=ce;break;case"multiple":T=ce;default:Kr(p,m,N,ce,v,null)}m=P,v=j,p.multiple=!!T,m!=null?Zm(p,!!T,m,!1):v!=null&&Zm(p,!!T,v,!0);return;case"textarea":Ss("invalid",p),P=N=T=null;for(j in v)if(v.hasOwnProperty(j)&&(ce=v[j],ce!=null))switch(j){case"value":T=ce;break;case"defaultValue":N=ce;break;case"children":P=ce;break;case"dangerouslySetInnerHTML":if(ce!=null)throw Error(n(91));break;default:Kr(p,m,j,ce,v,null)}ve(p,T,N,P);return;case"option":for(Le in v)if(v.hasOwnProperty(Le)&&(T=v[Le],T!=null))switch(Le){case"selected":p.selected=T&&typeof T!="function"&&typeof T!="symbol";break;default:Kr(p,m,Le,T,v,null)}return;case"dialog":Ss("beforetoggle",p),Ss("toggle",p),Ss("cancel",p),Ss("close",p);break;case"iframe":case"object":Ss("load",p);break;case"video":case"audio":for(T=0;T<dF.length;T++)Ss(dF[T],p);break;case"image":Ss("error",p),Ss("load",p);break;case"details":Ss("toggle",p);break;case"embed":case"source":case"link":Ss("error",p),Ss("load",p);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(Je in v)if(v.hasOwnProperty(Je)&&(T=v[Je],T!=null))switch(Je){case"children":case"dangerouslySetInnerHTML":throw Error(n(137,m));default:Kr(p,m,Je,T,v,null)}return;default:if(ln(m)){for(Ct in v)v.hasOwnProperty(Ct)&&(T=v[Ct],T!==void 0&&rhe(p,m,Ct,T,v,void 0));return}}for(ce in v)v.hasOwnProperty(ce)&&(T=v[ce],T!=null&&Kr(p,m,ce,T,v,null))}function FQt(p,m,v,T){switch(m){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var N=null,P=null,j=null,ce=null,Le=null,Je=null,Ct=null;for(ct in v){var kt=v[ct];if(v.hasOwnProperty(ct)&&kt!=null)switch(ct){case"checked":break;case"value":break;case"defaultValue":Le=kt;default:T.hasOwnProperty(ct)||Kr(p,m,ct,null,T,kt)}}for(var nt in T){var ct=T[nt];if(kt=v[nt],T.hasOwnProperty(nt)&&(ct!=null||kt!=null))switch(nt){case"type":P=ct;break;case"name":N=ct;break;case"checked":Je=ct;break;case"defaultChecked":Ct=ct;break;case"value":j=ct;break;case"defaultValue":ce=ct;break;case"children":case"dangerouslySetInnerHTML":if(ct!=null)throw Error(n(137,m));break;default:ct!==kt&&Kr(p,m,nt,ct,T,kt)}}Hx(p,j,ce,Le,Je,Ct,P,N);return;case"select":ct=j=ce=nt=null;for(P in v)if(Le=v[P],v.hasOwnProperty(P)&&Le!=null)switch(P){case"value":break;case"multiple":ct=Le;default:T.hasOwnProperty(P)||Kr(p,m,P,null,T,Le)}for(N in T)if(P=T[N],Le=v[N],T.hasOwnProperty(N)&&(P!=null||Le!=null))switch(N){case"value":nt=P;break;case"defaultValue":ce=P;break;case"multiple":j=P;default:P!==Le&&Kr(p,m,N,P,T,Le)}m=ce,v=j,T=ct,nt!=null?Zm(p,!!v,nt,!1):!!T!=!!v&&(m!=null?Zm(p,!!v,m,!0):Zm(p,!!v,v?[]:"",!1));return;case"textarea":ct=nt=null;for(ce in v)if(N=v[ce],v.hasOwnProperty(ce)&&N!=null&&!T.hasOwnProperty(ce))switch(ce){case"value":break;case"children":break;default:Kr(p,m,ce,null,T,N)}for(j in T)if(N=T[j],P=v[j],T.hasOwnProperty(j)&&(N!=null||P!=null))switch(j){case"value":nt=N;break;case"defaultValue":ct=N;break;case"children":break;case"dangerouslySetInnerHTML":if(N!=null)throw Error(n(91));break;default:N!==P&&Kr(p,m,j,N,T,P)}hL(p,nt,ct);return;case"option":for(var Ni in v)if(nt=v[Ni],v.hasOwnProperty(Ni)&&nt!=null&&!T.hasOwnProperty(Ni))switch(Ni){case"selected":p.selected=!1;break;default:Kr(p,m,Ni,null,T,nt)}for(Le in T)if(nt=T[Le],ct=v[Le],T.hasOwnProperty(Le)&&nt!==ct&&(nt!=null||ct!=null))switch(Le){case"selected":p.selected=nt&&typeof nt!="function"&&typeof nt!="symbol";break;default:Kr(p,m,Le,nt,T,ct)}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 gn in v)nt=v[gn],v.hasOwnProperty(gn)&&nt!=null&&!T.hasOwnProperty(gn)&&Kr(p,m,gn,null,T,nt);for(Je in T)if(nt=T[Je],ct=v[Je],T.hasOwnProperty(Je)&&nt!==ct&&(nt!=null||ct!=null))switch(Je){case"children":case"dangerouslySetInnerHTML":if(nt!=null)throw Error(n(137,m));break;default:Kr(p,m,Je,nt,T,ct)}return;default:if(ln(m)){for(var Yr in v)nt=v[Yr],v.hasOwnProperty(Yr)&&nt!==void 0&&!T.hasOwnProperty(Yr)&&rhe(p,m,Yr,void 0,T,nt);for(Ct in T)nt=T[Ct],ct=v[Ct],!T.hasOwnProperty(Ct)||nt===ct||nt===void 0&&ct===void 0||rhe(p,m,Ct,nt,T,ct);return}}for(var je in v)nt=v[je],v.hasOwnProperty(je)&&nt!=null&&!T.hasOwnProperty(je)&&Kr(p,m,je,null,T,nt);for(kt in T)nt=T[kt],ct=v[kt],!T.hasOwnProperty(kt)||nt===ct||nt==null&&ct==null||Kr(p,m,kt,nt,T,ct)}function BVe(p){switch(p){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function BQt(){if(typeof performance.getEntriesByType=="function"){for(var p=0,m=0,v=performance.getEntriesByType("resource"),T=0;T<v.length;T++){var N=v[T],P=N.transferSize,j=N.initiatorType,ce=N.duration;if(P&&ce&&BVe(j)){for(j=0,ce=N.responseEnd,T+=1;T<v.length;T++){var Le=v[T],Je=Le.startTime;if(Je>ce)break;var Ct=Le.transferSize,kt=Le.initiatorType;Ct&&BVe(kt)&&(Le=Le.responseEnd,j+=Ct*(Le<ce?1:(ce-Je)/(Le-Je)))}if(--T,m+=8*(P+j)/(N.duration/1e3),p++,10<p)break}}if(0<p)return m/p/1e6}return navigator.connection&&(p=navigator.connection.downlink,typeof p=="number")?p:5}var ohe=null,ahe=null;function SU(p){return p.nodeType===9?p:p.ownerDocument}function VVe(p){switch(p){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function WVe(p,m){if(p===0)switch(m){case"svg":return 1;case"math":return 2;default:return 0}return p===1&&m==="foreignObject"?0:p}function lhe(p,m){return p==="textarea"||p==="noscript"||typeof m.children=="string"||typeof m.children=="number"||typeof m.children=="bigint"||typeof m.dangerouslySetInnerHTML=="object"&&m.dangerouslySetInnerHTML!==null&&m.dangerouslySetInnerHTML.__html!=null}var uhe=null;function VQt(){var p=window.event;return p&&p.type==="popstate"?p===uhe?!1:(uhe=p,!0):(uhe=null,!1)}var HVe=typeof setTimeout=="function"?setTimeout:void 0,WQt=typeof clearTimeout=="function"?clearTimeout:void 0,$Ve=typeof Promise=="function"?Promise:void 0,HQt=typeof queueMicrotask=="function"?queueMicrotask:typeof $Ve<"u"?function(p){return $Ve.resolve(null).then(p).catch($Qt)}:HVe;function $Qt(p){setTimeout(function(){throw p})}function Tv(p){return p==="head"}function UVe(p,m){var v=m,T=0;do{var N=v.nextSibling;if(p.removeChild(v),N&&N.nodeType===8)if(v=N.data,v==="/$"||v==="/&"){if(T===0){p.removeChild(N),$L(m);return}T--}else if(v==="$"||v==="$?"||v==="$~"||v==="$!"||v==="&")T++;else if(v==="html")fF(p.ownerDocument.documentElement);else if(v==="head"){v=p.ownerDocument.head,fF(v);for(var P=v.firstChild;P;){var j=P.nextSibling,ce=P.nodeName;P[Pe]||ce==="SCRIPT"||ce==="STYLE"||ce==="LINK"&&P.rel.toLowerCase()==="stylesheet"||v.removeChild(P),P=j}}else v==="body"&&fF(p.ownerDocument.body);v=N}while(v);$L(m)}function zVe(p,m){var v=p;p=0;do{var T=v.nextSibling;if(v.nodeType===1?m?(v._stashedDisplay=v.style.display,v.style.display="none"):(v.style.display=v._stashedDisplay||"",v.getAttribute("style")===""&&v.removeAttribute("style")):v.nodeType===3&&(m?(v._stashedText=v.nodeValue,v.nodeValue=""):v.nodeValue=v._stashedText||""),T&&T.nodeType===8)if(v=T.data,v==="/$"){if(p===0)break;p--}else v!=="$"&&v!=="$?"&&v!=="$~"&&v!=="$!"||p++;v=T}while(v)}function che(p){var m=p.firstChild;for(m&&m.nodeType===10&&(m=m.nextSibling);m;){var v=m;switch(m=m.nextSibling,v.nodeName){case"HTML":case"HEAD":case"BODY":che(v),Bt(v);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(v.rel.toLowerCase()==="stylesheet")continue}p.removeChild(v)}}function UQt(p,m,v,T){for(;p.nodeType===1;){var N=v;if(p.nodeName.toLowerCase()!==m.toLowerCase()){if(!T&&(p.nodeName!=="INPUT"||p.type!=="hidden"))break}else if(T){if(!p[Pe])switch(m){case"meta":if(!p.hasAttribute("itemprop"))break;return p;case"link":if(P=p.getAttribute("rel"),P==="stylesheet"&&p.hasAttribute("data-precedence"))break;if(P!==N.rel||p.getAttribute("href")!==(N.href==null||N.href===""?null:N.href)||p.getAttribute("crossorigin")!==(N.crossOrigin==null?null:N.crossOrigin)||p.getAttribute("title")!==(N.title==null?null:N.title))break;return p;case"style":if(p.hasAttribute("data-precedence"))break;return p;case"script":if(P=p.getAttribute("src"),(P!==(N.src==null?null:N.src)||p.getAttribute("type")!==(N.type==null?null:N.type)||p.getAttribute("crossorigin")!==(N.crossOrigin==null?null:N.crossOrigin))&&P&&p.hasAttribute("async")&&!p.hasAttribute("itemprop"))break;return p;default:return p}}else if(m==="input"&&p.type==="hidden"){var P=N.name==null?null:""+N.name;if(N.type==="hidden"&&p.getAttribute("name")===P)return p}else return p;if(p=$f(p.nextSibling),p===null)break}return null}function zQt(p,m,v){if(m==="")return null;for(;p.nodeType!==3;)if((p.nodeType!==1||p.nodeName!=="INPUT"||p.type!=="hidden")&&!v||(p=$f(p.nextSibling),p===null))return null;return p}function jVe(p,m){for(;p.nodeType!==8;)if((p.nodeType!==1||p.nodeName!=="INPUT"||p.type!=="hidden")&&!m||(p=$f(p.nextSibling),p===null))return null;return p}function dhe(p){return p.data==="$?"||p.data==="$~"}function hhe(p){return p.data==="$!"||p.data==="$?"&&p.ownerDocument.readyState!=="loading"}function jQt(p,m){var v=p.ownerDocument;if(p.data==="$~")p._reactRetry=m;else if(p.data!=="$?"||v.readyState!=="loading")m();else{var T=function(){m(),v.removeEventListener("DOMContentLoaded",T)};v.addEventListener("DOMContentLoaded",T),p._reactRetry=T}}function $f(p){for(;p!=null;p=p.nextSibling){var m=p.nodeType;if(m===1||m===3)break;if(m===8){if(m=p.data,m==="$"||m==="$!"||m==="$?"||m==="$~"||m==="&"||m==="F!"||m==="F")break;if(m==="/$"||m==="/&")return null}}return p}var fhe=null;function qVe(p){p=p.nextSibling;for(var m=0;p;){if(p.nodeType===8){var v=p.data;if(v==="/$"||v==="/&"){if(m===0)return $f(p.nextSibling);m--}else v!=="$"&&v!=="$!"&&v!=="$?"&&v!=="$~"&&v!=="&"||m++}p=p.nextSibling}return null}function GVe(p){p=p.previousSibling;for(var m=0;p;){if(p.nodeType===8){var v=p.data;if(v==="$"||v==="$!"||v==="$?"||v==="$~"||v==="&"){if(m===0)return p;m--}else v!=="/$"&&v!=="/&"||m++}p=p.previousSibling}return null}function KVe(p,m,v){switch(m=SU(v),p){case"html":if(p=m.documentElement,!p)throw Error(n(452));return p;case"head":if(p=m.head,!p)throw Error(n(453));return p;case"body":if(p=m.body,!p)throw Error(n(454));return p;default:throw Error(n(451))}}function fF(p){for(var m=p.attributes;m.length;)p.removeAttributeNode(m[0]);Bt(p)}var Uf=new Map,YVe=new Set;function xU(p){return typeof p.getRootNode=="function"?p.getRootNode():p.nodeType===9?p:p.ownerDocument}var Sb=de.d;de.d={f:qQt,r:GQt,D:KQt,C:YQt,L:XQt,m:QQt,X:JQt,S:ZQt,M:eZt};function qQt(){var p=Sb.f(),m=gU();return p||m}function GQt(p){var m=fs(p);m!==null&&m.tag===5&&m.type==="form"?hBe(m):Sb.r(p)}var VL=typeof document>"u"?null:document;function XVe(p,m,v){var T=VL;if(T&&typeof m=="string"&&m){var N=Ao(m);N='link[rel="'+p+'"][href="'+N+'"]',typeof v=="string"&&(N+='[crossorigin="'+v+'"]'),YVe.has(N)||(YVe.add(N),p={rel:p,crossOrigin:v,href:m},T.querySelector(N)===null&&(m=T.createElement("link"),Su(m,"link",p),rs(m),T.head.appendChild(m)))}}function KQt(p){Sb.D(p),XVe("dns-prefetch",p,null)}function YQt(p,m){Sb.C(p,m),XVe("preconnect",p,m)}function XQt(p,m,v){Sb.L(p,m,v);var T=VL;if(T&&p&&m){var N='link[rel="preload"][as="'+Ao(m)+'"]';m==="image"&&v&&v.imageSrcSet?(N+='[imagesrcset="'+Ao(v.imageSrcSet)+'"]',typeof v.imageSizes=="string"&&(N+='[imagesizes="'+Ao(v.imageSizes)+'"]')):N+='[href="'+Ao(p)+'"]';var P=N;switch(m){case"style":P=WL(p);break;case"script":P=HL(p)}Uf.has(P)||(p=d({rel:"preload",href:m==="image"&&v&&v.imageSrcSet?void 0:p,as:m},v),Uf.set(P,p),T.querySelector(N)!==null||m==="style"&&T.querySelector(pF(P))||m==="script"&&T.querySelector(gF(P))||(m=T.createElement("link"),Su(m,"link",p),rs(m),T.head.appendChild(m)))}}function QQt(p,m){Sb.m(p,m);var v=VL;if(v&&p){var T=m&&typeof m.as=="string"?m.as:"script",N='link[rel="modulepreload"][as="'+Ao(T)+'"][href="'+Ao(p)+'"]',P=N;switch(T){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":P=HL(p)}if(!Uf.has(P)&&(p=d({rel:"modulepreload",href:p},m),Uf.set(P,p),v.querySelector(N)===null)){switch(T){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(v.querySelector(gF(P)))return}T=v.createElement("link"),Su(T,"link",p),rs(T),v.head.appendChild(T)}}}function ZQt(p,m,v){Sb.S(p,m,v);var T=VL;if(T&&p){var N=nr(T).hoistableStyles,P=WL(p);m=m||"default";var j=N.get(P);if(!j){var ce={loading:0,preload:null};if(j=T.querySelector(pF(P)))ce.loading=5;else{p=d({rel:"stylesheet",href:p,"data-precedence":m},v),(v=Uf.get(P))&&phe(p,v);var Le=j=T.createElement("link");rs(Le),Su(Le,"link",p),Le._p=new Promise(function(Je,Ct){Le.onload=Je,Le.onerror=Ct}),Le.addEventListener("load",function(){ce.loading|=1}),Le.addEventListener("error",function(){ce.loading|=2}),ce.loading|=4,DU(j,m,T)}j={type:"stylesheet",instance:j,count:1,state:ce},N.set(P,j)}}}function JQt(p,m){Sb.X(p,m);var v=VL;if(v&&p){var T=nr(v).hoistableScripts,N=HL(p),P=T.get(N);P||(P=v.querySelector(gF(N)),P||(p=d({src:p,async:!0},m),(m=Uf.get(N))&&ghe(p,m),P=v.createElement("script"),rs(P),Su(P,"link",p),v.head.appendChild(P)),P={type:"script",instance:P,count:1,state:null},T.set(N,P))}}function eZt(p,m){Sb.M(p,m);var v=VL;if(v&&p){var T=nr(v).hoistableScripts,N=HL(p),P=T.get(N);P||(P=v.querySelector(gF(N)),P||(p=d({src:p,async:!0,type:"module"},m),(m=Uf.get(N))&&ghe(p,m),P=v.createElement("script"),rs(P),Su(P,"link",p),v.head.appendChild(P)),P={type:"script",instance:P,count:1,state:null},T.set(N,P))}}function QVe(p,m,v,T){var N=(N=Ue.current)?xU(N):null;if(!N)throw Error(n(446));switch(p){case"meta":case"title":return null;case"style":return typeof v.precedence=="string"&&typeof v.href=="string"?(m=WL(v.href),v=nr(N).hoistableStyles,T=v.get(m),T||(T={type:"style",instance:null,count:0,state:null},v.set(m,T)),T):{type:"void",instance:null,count:0,state:null};case"link":if(v.rel==="stylesheet"&&typeof v.href=="string"&&typeof v.precedence=="string"){p=WL(v.href);var P=nr(N).hoistableStyles,j=P.get(p);if(j||(N=N.ownerDocument||N,j={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},P.set(p,j),(P=N.querySelector(pF(p)))&&!P._p&&(j.instance=P,j.state.loading=5),Uf.has(p)||(v={rel:"preload",as:"style",href:v.href,crossOrigin:v.crossOrigin,integrity:v.integrity,media:v.media,hrefLang:v.hrefLang,referrerPolicy:v.referrerPolicy},Uf.set(p,v),P||tZt(N,p,v,j.state))),m&&T===null)throw Error(n(528,""));return j}if(m&&T!==null)throw Error(n(529,""));return null;case"script":return m=v.async,v=v.src,typeof v=="string"&&m&&typeof m!="function"&&typeof m!="symbol"?(m=HL(v),v=nr(N).hoistableScripts,T=v.get(m),T||(T={type:"script",instance:null,count:0,state:null},v.set(m,T)),T):{type:"void",instance:null,count:0,state:null};default:throw Error(n(444,p))}}function WL(p){return'href="'+Ao(p)+'"'}function pF(p){return'link[rel="stylesheet"]['+p+"]"}function ZVe(p){return d({},p,{"data-precedence":p.precedence,precedence:null})}function tZt(p,m,v,T){p.querySelector('link[rel="preload"][as="style"]['+m+"]")?T.loading=1:(m=p.createElement("link"),T.preload=m,m.addEventListener("load",function(){return T.loading|=1}),m.addEventListener("error",function(){return T.loading|=2}),Su(m,"link",v),rs(m),p.head.appendChild(m))}function HL(p){return'[src="'+Ao(p)+'"]'}function gF(p){return"script[async]"+p}function JVe(p,m,v){if(m.count++,m.instance===null)switch(m.type){case"style":var T=p.querySelector('style[data-href~="'+Ao(v.href)+'"]');if(T)return m.instance=T,rs(T),T;var N=d({},v,{"data-href":v.href,"data-precedence":v.precedence,href:null,precedence:null});return T=(p.ownerDocument||p).createElement("style"),rs(T),Su(T,"style",N),DU(T,v.precedence,p),m.instance=T;case"stylesheet":N=WL(v.href);var P=p.querySelector(pF(N));if(P)return m.state.loading|=4,m.instance=P,rs(P),P;T=ZVe(v),(N=Uf.get(N))&&phe(T,N),P=(p.ownerDocument||p).createElement("link"),rs(P);var j=P;return j._p=new Promise(function(ce,Le){j.onload=ce,j.onerror=Le}),Su(P,"link",T),m.state.loading|=4,DU(P,v.precedence,p),m.instance=P;case"script":return P=HL(v.src),(N=p.querySelector(gF(P)))?(m.instance=N,rs(N),N):(T=v,(N=Uf.get(P))&&(T=d({},v),ghe(T,N)),p=p.ownerDocument||p,N=p.createElement("script"),rs(N),Su(N,"link",T),p.head.appendChild(N),m.instance=N);case"void":return null;default:throw Error(n(443,m.type))}else m.type==="stylesheet"&&(m.state.loading&4)===0&&(T=m.instance,m.state.loading|=4,DU(T,v.precedence,p));return m.instance}function DU(p,m,v){for(var T=v.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),N=T.length?T[T.length-1]:null,P=N,j=0;j<T.length;j++){var ce=T[j];if(ce.dataset.precedence===m)P=ce;else if(P!==N)break}P?P.parentNode.insertBefore(p,P.nextSibling):(m=v.nodeType===9?v.head:v,m.insertBefore(p,m.firstChild))}function phe(p,m){p.crossOrigin==null&&(p.crossOrigin=m.crossOrigin),p.referrerPolicy==null&&(p.referrerPolicy=m.referrerPolicy),p.title==null&&(p.title=m.title)}function ghe(p,m){p.crossOrigin==null&&(p.crossOrigin=m.crossOrigin),p.referrerPolicy==null&&(p.referrerPolicy=m.referrerPolicy),p.integrity==null&&(p.integrity=m.integrity)}var EU=null;function eWe(p,m,v){if(EU===null){var T=new Map,N=EU=new Map;N.set(v,T)}else N=EU,T=N.get(v),T||(T=new Map,N.set(v,T));if(T.has(p))return T;for(T.set(p,null),v=v.getElementsByTagName(p),N=0;N<v.length;N++){var P=v[N];if(!(P[Pe]||P[wi]||p==="link"&&P.getAttribute("rel")==="stylesheet")&&P.namespaceURI!=="http://www.w3.org/2000/svg"){var j=P.getAttribute(m)||"";j=p+j;var ce=T.get(j);ce?ce.push(P):T.set(j,[P])}}return T}function tWe(p,m,v){p=p.ownerDocument||p,p.head.insertBefore(v,m==="title"?p.querySelector("head > title"):null)}function iZt(p,m,v){if(v===1||m.itemProp!=null)return!1;switch(p){case"meta":case"title":return!0;case"style":if(typeof m.precedence!="string"||typeof m.href!="string"||m.href==="")break;return!0;case"link":if(typeof m.rel!="string"||typeof m.href!="string"||m.href===""||m.onLoad||m.onError)break;switch(m.rel){case"stylesheet":return p=m.disabled,typeof m.precedence=="string"&&p==null;default:return!0}case"script":if(m.async&&typeof m.async!="function"&&typeof m.async!="symbol"&&!m.onLoad&&!m.onError&&m.src&&typeof m.src=="string")return!0}return!1}function iWe(p){return!(p.type==="stylesheet"&&(p.state.loading&3)===0)}function nZt(p,m,v,T){if(v.type==="stylesheet"&&(typeof T.media!="string"||matchMedia(T.media).matches!==!1)&&(v.state.loading&4)===0){if(v.instance===null){var N=WL(T.href),P=m.querySelector(pF(N));if(P){m=P._p,m!==null&&typeof m=="object"&&typeof m.then=="function"&&(p.count++,p=TU.bind(p),m.then(p,p)),v.state.loading|=4,v.instance=P,rs(P);return}P=m.ownerDocument||m,T=ZVe(T),(N=Uf.get(N))&&phe(T,N),P=P.createElement("link"),rs(P);var j=P;j._p=new Promise(function(ce,Le){j.onload=ce,j.onerror=Le}),Su(P,"link",T),v.instance=P}p.stylesheets===null&&(p.stylesheets=new Map),p.stylesheets.set(v,m),(m=v.state.preload)&&(v.state.loading&3)===0&&(p.count++,v=TU.bind(p),m.addEventListener("load",v),m.addEventListener("error",v))}}var mhe=0;function sZt(p,m){return p.stylesheets&&p.count===0&&LU(p,p.stylesheets),0<p.count||0<p.imgCount?function(v){var T=setTimeout(function(){if(p.stylesheets&&LU(p,p.stylesheets),p.unsuspend){var P=p.unsuspend;p.unsuspend=null,P()}},6e4+m);0<p.imgBytes&&mhe===0&&(mhe=62500*BQt());var N=setTimeout(function(){if(p.waitingForImages=!1,p.count===0&&(p.stylesheets&&LU(p,p.stylesheets),p.unsuspend)){var P=p.unsuspend;p.unsuspend=null,P()}},(p.imgBytes>mhe?50:800)+m);return p.unsuspend=v,function(){p.unsuspend=null,clearTimeout(T),clearTimeout(N)}}:null}function TU(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)LU(this,this.stylesheets);else if(this.unsuspend){var p=this.unsuspend;this.unsuspend=null,p()}}}var kU=null;function LU(p,m){p.stylesheets=null,p.unsuspend!==null&&(p.count++,kU=new Map,m.forEach(rZt,p),kU=null,TU.call(p))}function rZt(p,m){if(!(m.state.loading&4)){var v=kU.get(p);if(v)var T=v.get(null);else{v=new Map,kU.set(p,v);for(var N=p.querySelectorAll("link[data-precedence],style[data-precedence]"),P=0;P<N.length;P++){var j=N[P];(j.nodeName==="LINK"||j.getAttribute("media")!=="not all")&&(v.set(j.dataset.precedence,j),T=j)}T&&v.set(null,T)}N=m.instance,j=N.getAttribute("data-precedence"),P=v.get(j)||T,P===T&&v.set(null,N),v.set(j,N),this.count++,T=TU.bind(this),N.addEventListener("load",T),N.addEventListener("error",T),P?P.parentNode.insertBefore(N,P.nextSibling):(p=p.nodeType===9?p.head:p,p.insertBefore(N,p.firstChild)),m.state.loading|=4}}var mF={$$typeof:E,Provider:null,Consumer:null,_currentValue:ae,_currentValue2:ae,_threadCount:0};function oZt(p,m,v,T,N,P,j,ce,Le){this.tag=1,this.containerInfo=p,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=re(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=re(0),this.hiddenUpdates=re(null),this.identifierPrefix=T,this.onUncaughtError=N,this.onCaughtError=P,this.onRecoverableError=j,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=Le,this.incompleteTransitions=new Map}function nWe(p,m,v,T,N,P,j,ce,Le,Je,Ct,kt){return p=new oZt(p,m,v,j,Le,Je,Ct,kt,ce),m=1,P===!0&&(m|=24),P=Bc(3,null,null,m),p.current=P,P.stateNode=p,m=z(),m.refCount++,p.pooledCache=m,m.refCount++,P.memoizedState={element:T,isDehydrated:v,cache:m},Jce(P),p}function sWe(p){return p?(p=cv,p):cv}function rWe(p,m,v,T,N,P){N=sWe(N),T.context===null?T.context=N:T.pendingContext=N,T=mv(m),T.payload={element:v},P=P===void 0?null:P,P!==null&&(T.callback=P),v=_v(p,T,m),v!==null&&(Ud(v,p,m),KO(v,p,m))}function oWe(p,m){if(p=p.memoizedState,p!==null&&p.dehydrated!==null){var v=p.retryLane;p.retryLane=v!==0&&v<m?v:m}}function _he(p,m){oWe(p,m),(p=p.alternate)&&oWe(p,m)}function aWe(p){if(p.tag===13||p.tag===31){var m=Nh(p,67108864);m!==null&&Ud(m,p,67108864),_he(p,67108864)}}function lWe(p){if(p.tag===13||p.tag===31){var m=Vh();m=ot(m);var v=Nh(p,m);v!==null&&Ud(v,p,m),_he(p,m)}}var AU=!0;function aZt(p,m,v,T){var N=Y.T;Y.T=null;var P=de.p;try{de.p=2,bhe(p,m,v,T)}finally{de.p=P,Y.T=N}}function lZt(p,m,v,T){var N=Y.T;Y.T=null;var P=de.p;try{de.p=8,bhe(p,m,v,T)}finally{de.p=P,Y.T=N}}function bhe(p,m,v,T){if(AU){var N=yhe(T);if(N===null)she(p,m,T,NU,v),cWe(p,T);else if(cZt(N,p,m,v,T))T.stopPropagation();else if(cWe(p,T),m&4&&-1<uZt.indexOf(p)){for(;N!==null;){var P=fs(N);if(P!==null)switch(P.tag){case 3:if(P=P.stateNode,P.current.memoizedState.isDehydrated){var j=ir(P.pendingLanes);if(j!==0){var ce=P;for(ce.pendingLanes|=2,ce.entangledLanes|=2;j;){var Le=1<<31-Mn(j);ce.entanglements[1]|=Le,j&=~Le}l0(P),(vr&6)===0&&(fU=bt()+500,cF(0))}}break;case 31:case 13:ce=Nh(P,2),ce!==null&&Ud(ce,P,2),gU(),_he(P,2)}if(P=yhe(T),P===null&&she(p,m,T,NU,v),P===N)break;N=P}N!==null&&T.stopPropagation()}else she(p,m,T,null,v)}}function yhe(p){return p=Md(p),vhe(p)}var NU=null;function vhe(p){if(NU=null,p=He(p),p!==null){var m=r(p);if(m===null)p=null;else{var v=m.tag;if(v===13){if(p=o(m),p!==null)return p;p=null}else if(v===31){if(p=a(m),p!==null)return p;p=null}else if(v===3){if(m.stateNode.current.memoizedState.isDehydrated)return m.tag===3?m.stateNode.containerInfo:null;p=null}else m!==p&&(p=null)}}return NU=p,null}function uWe(p){switch(p){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(Yt()){case ki:return 2;case zi:return 8;case Xt:case Ci:return 32;case mi:return 268435456;default:return 32}default:return 32}}var Che=!1,kv=null,Lv=null,Av=null,_F=new Map,bF=new Map,Nv=[],uZt="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 cWe(p,m){switch(p){case"focusin":case"focusout":kv=null;break;case"dragenter":case"dragleave":Lv=null;break;case"mouseover":case"mouseout":Av=null;break;case"pointerover":case"pointerout":_F.delete(m.pointerId);break;case"gotpointercapture":case"lostpointercapture":bF.delete(m.pointerId)}}function yF(p,m,v,T,N,P){return p===null||p.nativeEvent!==P?(p={blockedOn:m,domEventName:v,eventSystemFlags:T,nativeEvent:P,targetContainers:[N]},m!==null&&(m=fs(m),m!==null&&aWe(m)),p):(p.eventSystemFlags|=T,m=p.targetContainers,N!==null&&m.indexOf(N)===-1&&m.push(N),p)}function cZt(p,m,v,T,N){switch(m){case"focusin":return kv=yF(kv,p,m,v,T,N),!0;case"dragenter":return Lv=yF(Lv,p,m,v,T,N),!0;case"mouseover":return Av=yF(Av,p,m,v,T,N),!0;case"pointerover":var P=N.pointerId;return _F.set(P,yF(_F.get(P)||null,p,m,v,T,N)),!0;case"gotpointercapture":return P=N.pointerId,bF.set(P,yF(bF.get(P)||null,p,m,v,T,N)),!0}return!1}function dWe(p){var m=He(p.target);if(m!==null){var v=r(m);if(v!==null){if(m=v.tag,m===13){if(m=o(v),m!==null){p.blockedOn=m,hi(p.priority,function(){lWe(v)});return}}else if(m===31){if(m=a(v),m!==null){p.blockedOn=m,hi(p.priority,function(){lWe(v)});return}}else if(m===3&&v.stateNode.current.memoizedState.isDehydrated){p.blockedOn=v.tag===3?v.stateNode.containerInfo:null;return}}}p.blockedOn=null}function IU(p){if(p.blockedOn!==null)return!1;for(var m=p.targetContainers;0<m.length;){var v=yhe(p.nativeEvent);if(v===null){v=p.nativeEvent;var T=new v.constructor(v.type,v);Mr=T,v.target.dispatchEvent(T),Mr=null}else return m=fs(v),m!==null&&aWe(m),p.blockedOn=v,!1;m.shift()}return!0}function hWe(p,m,v){IU(p)&&v.delete(m)}function dZt(){Che=!1,kv!==null&&IU(kv)&&(kv=null),Lv!==null&&IU(Lv)&&(Lv=null),Av!==null&&IU(Av)&&(Av=null),_F.forEach(hWe),bF.forEach(hWe)}function PU(p,m){p.blockedOn===m&&(p.blockedOn=null,Che||(Che=!0,i.unstable_scheduleCallback(i.unstable_NormalPriority,dZt)))}var MU=null;function fWe(p){MU!==p&&(MU=p,i.unstable_scheduleCallback(i.unstable_NormalPriority,function(){MU===p&&(MU=null);for(var m=0;m<p.length;m+=3){var v=p[m],T=p[m+1],N=p[m+2];if(typeof T!="function"){if(vhe(T||v)===null)continue;break}var P=fs(v);P!==null&&(p.splice(m,3),m-=3,yde(P,{pending:!0,data:N,method:v.method,action:T},T,N))}}))}function $L(p){function m(Le){return PU(Le,p)}kv!==null&&PU(kv,p),Lv!==null&&PU(Lv,p),Av!==null&&PU(Av,p),_F.forEach(m),bF.forEach(m);for(var v=0;v<Nv.length;v++){var T=Nv[v];T.blockedOn===p&&(T.blockedOn=null)}for(;0<Nv.length&&(v=Nv[0],v.blockedOn===null);)dWe(v),v.blockedOn===null&&Nv.shift();if(v=(p.ownerDocument||p).$$reactFormReplay,v!=null)for(T=0;T<v.length;T+=3){var N=v[T],P=v[T+1],j=N[Ot]||null;if(typeof P=="function")j||fWe(v);else if(j){var ce=null;if(P&&P.hasAttribute("formAction")){if(N=P,j=P[Ot]||null)ce=j.formAction;else if(vhe(N)!==null)continue}else ce=j.action;typeof ce=="function"?v[T+1]=ce:(v.splice(T,3),T-=3),fWe(v)}}}function pWe(){function p(P){P.canIntercept&&P.info==="react-transition"&&P.intercept({handler:function(){return new Promise(function(j){return N=j})},focusReset:"manual",scroll:"manual"})}function m(){N!==null&&(N(),N=null),T||setTimeout(v,20)}function v(){if(!T&&!navigation.transition){var P=navigation.currentEntry;P&&P.url!=null&&navigation.navigate(P.url,{state:P.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var T=!1,N=null;return navigation.addEventListener("navigate",p),navigation.addEventListener("navigatesuccess",m),navigation.addEventListener("navigateerror",m),setTimeout(v,100),function(){T=!0,navigation.removeEventListener("navigate",p),navigation.removeEventListener("navigatesuccess",m),navigation.removeEventListener("navigateerror",m),N!==null&&(N(),N=null)}}}function whe(p){this._internalRoot=p}RU.prototype.render=whe.prototype.render=function(p){var m=this._internalRoot;if(m===null)throw Error(n(409));var v=m.current,T=Vh();rWe(v,T,p,m,null,null)},RU.prototype.unmount=whe.prototype.unmount=function(){var p=this._internalRoot;if(p!==null){this._internalRoot=null;var m=p.containerInfo;rWe(p.current,2,null,p,null,null),gU(),m[Cn]=null}};function RU(p){this._internalRoot=p}RU.prototype.unstable_scheduleHydration=function(p){if(p){var m=Qt();p={blockedOn:null,target:p,priority:m};for(var v=0;v<Nv.length&&m!==0&&m<Nv[v].priority;v++);Nv.splice(v,0,p),v===0&&dWe(p)}};var gWe=e.version;if(gWe!=="19.2.0")throw Error(n(527,gWe,"19.2.0"));de.findDOMNode=function(p){var m=p._reactInternals;if(m===void 0)throw typeof p.render=="function"?Error(n(188)):(p=Object.keys(p).join(","),Error(n(268,p)));return p=u(m),p=p!==null?c(p):null,p=p===null?null:p.stateNode,p};var hZt={bundleType:0,version:"19.2.0",rendererPackageName:"react-dom",currentDispatcherRef:Y,reconcilerVersion:"19.2.0"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var OU=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!OU.isDisabled&&OU.supportsFiber)try{Ei=OU.inject(hZt),ai=OU}catch{}}return zL.createRoot=function(p,m){if(!s(p))throw Error(n(299));var v=!1,T="",N=wBe,P=SBe,j=xBe;return m!=null&&(m.unstable_strictMode===!0&&(v=!0),m.identifierPrefix!==void 0&&(T=m.identifierPrefix),m.onUncaughtError!==void 0&&(N=m.onUncaughtError),m.onCaughtError!==void 0&&(P=m.onCaughtError),m.onRecoverableError!==void 0&&(j=m.onRecoverableError)),m=nWe(p,1,!1,null,null,v,T,null,N,P,j,pWe),p[Cn]=m.current,nhe(p),new whe(m)},zL.hydrateRoot=function(p,m,v){if(!s(p))throw Error(n(299));var T=!1,N="",P=wBe,j=SBe,ce=xBe,Le=null;return v!=null&&(v.unstable_strictMode===!0&&(T=!0),v.identifierPrefix!==void 0&&(N=v.identifierPrefix),v.onUncaughtError!==void 0&&(P=v.onUncaughtError),v.onCaughtError!==void 0&&(j=v.onCaughtError),v.onRecoverableError!==void 0&&(ce=v.onRecoverableError),v.formState!==void 0&&(Le=v.formState)),m=nWe(p,1,!0,m,v??null,T,N,Le,P,j,ce,pWe),m.context=sWe(null),v=m.current,T=Vh(),T=ot(T),N=mv(T),N.callback=null,_v(v,N,T),v=T,m.current.lanes=v,ue(m,v),l0(m),p[Cn]=m.current,nhe(p),new RU(m)},zL.version="19.2.0",zL}var Fhe;function IWe(){if(Fhe)return HU.exports;Fhe=1;function i(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(i)}catch(e){console.error(e)}}return i(),HU.exports=NWe(),HU.exports}var Bhe=IWe();var jU,Vhe;function PWe(){if(Vhe)return jU;Vhe=1;var i=Object.create,e=Object.defineProperty,t=Object.getOwnPropertyDescriptor,n=Object.getOwnPropertyNames,s=Object.getPrototypeOf,r=Object.prototype.hasOwnProperty,o=(ae,he)=>{for(var Ce in he)e(ae,Ce,{get:he[Ce],enumerable:!0})},a=(ae,he,Ce,le)=>{if(he&&typeof he=="object"||typeof he=="function")for(let J of n(he))!r.call(ae,J)&&J!==Ce&&e(ae,J,{get:()=>he[J],enumerable:!(le=t(he,J))||le.enumerable});return ae},l=(ae,he,Ce)=>(Ce=ae!=null?i(s(ae)):{},a(!ae||!ae.__esModule?e(Ce,"default",{value:ae,enumerable:!0}):Ce,ae)),u=ae=>a(e({},"__esModule",{value:!0}),ae),c={};o(c,{$dispatcherGuard:()=>B,$makeReadOnly:()=>G,$reset:()=>F,$structuralCheck:()=>de,c:()=>E,clearRenderCounterRegistry:()=>ee,renderCounterRegistry:()=>q,useRenderCounter:()=>oe}),jU=u(c);var d=l(fD()),{useRef:h,useEffect:f,isValidElement:g}=d,b,y=(b=d.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE)!=null?b:d.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,S=Symbol.for("react.memo_cache_sentinel"),x,E=typeof((x=d.__COMPILER_RUNTIME)==null?void 0:x.c)=="function"?d.__COMPILER_RUNTIME.c:function(he){return d.useMemo(()=>{const Ce=new Array(he);for(let le=0;le<he;le++)Ce[le]=S;return Ce[S]=!0,Ce},[])},k={};["readContext","useCallback","useContext","useEffect","useImperativeHandle","useInsertionEffect","useLayoutEffect","useMemo","useReducer","useRef","useState","useDebugValue","useDeferredValue","useTransition","useMutableSource","useSyncExternalStore","useId","unstable_isNewReconciler","getCacheSignal","getCacheForType","useCacheRefresh"].forEach(ae=>{k[ae]=()=>{throw new Error(`[React] Unexpected React hook call (${ae}) from a React compiled function. Check that all hooks are called directly and named according to convention ('use[A-Z]') `)}});var A=null;k.useMemoCache=ae=>{if(A==null)throw new Error("React Compiler internal invariant violation: unexpected null dispatcher");return A.useMemoCache(ae)};function I(ae){return y.ReactCurrentDispatcher.current=ae,y.ReactCurrentDispatcher.current}var M=[];function B(ae){const he=y.ReactCurrentDispatcher.current;if(ae===0){if(M.push(he),M.length===1&&(A=he),he===k)throw new Error("[React] Unexpected call to custom hook or component from a React compiled function. Check that (1) all hooks are called directly and named according to convention ('use[A-Z]') and (2) components are returned as JSX instead of being directly invoked.");I(k)}else if(ae===1){const Ce=M.pop();if(Ce==null)throw new Error("React Compiler internal error: unexpected null in guard stack");M.length===0&&(A=null),I(Ce)}else if(ae===2)M.push(he),I(A);else if(ae===3){const Ce=M.pop();if(Ce==null)throw new Error("React Compiler internal error: unexpected null in guard stack");I(Ce)}else throw new Error("React Compiler internal error: unreachable block"+ae)}function F(ae){for(let he=0;he<ae.length;he++)ae[he]=S}function G(){throw new Error("TODO: implement $makeReadOnly in react-compiler-runtime")}var q=new Map;function ee(){for(const ae of q.values())ae.forEach(he=>{he.count=0})}function Z(ae,he){let Ce=q.get(ae);Ce==null&&(Ce=new Set,q.set(ae,Ce)),Ce.add(he)}function K(ae,he){const Ce=q.get(ae);Ce?.delete(he)}function oe(ae){const he=h(null);he.current!=null&&(he.current.count+=1),f(()=>{if(he.current==null){const Ce={count:0};Z(ae,Ce),he.current=Ce}return()=>{he.current!==null&&K(ae,he.current)}})}var Y=new Set;function de(ae,he,Ce,le,J,Ee){function we(ze,$e,Dt,$t){const ii=`${le}:${Ee} [${J}] ${Ce}${Dt} changed from ${ze} to ${$e} at depth ${$t}`;Y.has(ii)||(Y.add(ii),console.error(ii))}const Ae=2;function Ue(ze,$e,Dt,$t){if(!($t>Ae)){if(ze===$e)return;if(typeof ze!=typeof $e)we(`type ${typeof ze}`,`type ${typeof $e}`,Dt,$t);else if(typeof ze=="object"){const ii=Array.isArray(ze),di=Array.isArray($e);if(ze===null&&$e!==null)we("null",`type ${typeof $e}`,Dt,$t);else if($e===null)we(`type ${typeof ze}`,"null",Dt,$t);else if(ze instanceof Map)if(!($e instanceof Map))we("Map instance","other value",Dt,$t);else if(ze.size!==$e.size)we(`Map instance with size ${ze.size}`,`Map instance with size ${$e.size}`,Dt,$t);else for(const[Oe,ke]of ze)$e.has(Oe)?Ue(ke,$e.get(Oe),`${Dt}.get(${Oe})`,$t+1):we(`Map instance with key ${Oe}`,`Map instance without key ${Oe}`,Dt,$t);else if($e instanceof Map)we("other value","Map instance",Dt,$t);else if(ze instanceof Set)if(!($e instanceof Set))we("Set instance","other value",Dt,$t);else if(ze.size!==$e.size)we(`Set instance with size ${ze.size}`,`Set instance with size ${$e.size}`,Dt,$t);else for(const Oe of $e)ze.has(Oe)||we(`Set instance without element ${Oe}`,`Set instance with element ${Oe}`,Dt,$t);else if($e instanceof Set)we("other value","Set instance",Dt,$t);else if(ii||di)if(ii!==di)we(`type ${ii?"array":"object"}`,`type ${di?"array":"object"}`,Dt,$t);else if(ze.length!==$e.length)we(`array with length ${ze.length}`,`array with length ${$e.length}`,Dt,$t);else for(let Oe=0;Oe<ze.length;Oe++)Ue(ze[Oe],$e[Oe],`${Dt}[${Oe}]`,$t+1);else if(g(ze)||g($e))g(ze)!==g($e)?we(`type ${g(ze)?"React element":"object"}`,`type ${g($e)?"React element":"object"}`,Dt,$t):ze.type!==$e.type?we(`React element of type ${ze.type}`,`React element of type ${$e.type}`,Dt,$t):Ue(ze.props,$e.props,`[props of ${Dt}]`,$t+1);else{for(const Oe in $e)Oe in ze||we(`object without key ${Oe}`,`object with key ${Oe}`,Dt,$t);for(const Oe in ze)Oe in $e?Ue(ze[Oe],$e[Oe],`${Dt}.${Oe}`,$t+1):we(`object with key ${Oe}`,`object without key ${Oe}`,Dt,$t)}}else{if(typeof ze=="function")return;isNaN(ze)||isNaN($e)?isNaN(ze)!==isNaN($e)&&we(`${isNaN(ze)?"NaN":"non-NaN value"}`,`${isNaN($e)?"NaN":"non-NaN value"}`,Dt,$t):ze!==$e&&we(ze,$e,Dt,$t)}}}Ue(ae,he,"",0)}return jU}var Ai=PWe();const MWe=({title:i,titleId:e,...t})=>O.createElement("svg",{height:"1em",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":e,...t},i?O.createElement("title",{id:e},i):null,O.createElement("path",{d:"M5.0484 1.40838C6.12624 0.33054 7.87376 0.330541 8.9516 1.40838L12.5916 5.0484C13.6695 6.12624 13.6695 7.87376 12.5916 8.9516L8.9516 12.5916C7.87376 13.6695 6.12624 13.6695 5.0484 12.5916L1.40838 8.9516C0.33054 7.87376 0.330541 6.12624 1.40838 5.0484L5.0484 1.40838Z",stroke:"currentColor",strokeWidth:1.2}),O.createElement("rect",{x:6,y:6,width:2,height:2,rx:1,fill:"currentColor"})),RWe=({title:i,titleId:e,...t})=>O.createElement("svg",{height:"1em",viewBox:"0 0 14 9",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":e,...t},i?O.createElement("title",{id:e},i):null,O.createElement("path",{d:"M1 1L7 7L13 1",stroke:"currentColor",strokeWidth:1.5})),OWe=({title:i,titleId:e,...t})=>O.createElement("svg",{height:"1em",viewBox:"0 0 7 10",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":e,...t},i?O.createElement("title",{id:e},i):null,O.createElement("path",{d:"M6 1.04819L2 5.04819L6 9.04819",stroke:"currentColor",strokeWidth:1.75})),FWe=({title:i,titleId:e,...t})=>O.createElement("svg",{height:"1em",viewBox:"0 0 14 9",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":e,...t},i?O.createElement("title",{id:e},i):null,O.createElement("path",{d:"M13 8L7 2L1 8",stroke:"currentColor",strokeWidth:1.5})),BWe=({title:i,titleId:e,...t})=>O.createElement("svg",{height:"1em",viewBox:"0 0 14 14",stroke:"currentColor",strokeWidth:3,xmlns:"http://www.w3.org/2000/svg","aria-labelledby":e,...t},i?O.createElement("title",{id:e},i):null,O.createElement("path",{d:"M1 1L12.9998 12.9997"}),O.createElement("path",{d:"M13 1L1.00079 13.0003"})),VWe=({title:i,titleId:e,...t})=>O.createElement("svg",{height:"1em",viewBox:"-2 -2 22 22",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":e,...t},i?O.createElement("title",{id:e},i):null,O.createElement("path",{d:"M11.25 14.2105V15.235C11.25 16.3479 10.3479 17.25 9.23501 17.25H2.76499C1.65214 17.25 0.75 16.3479 0.75 15.235L0.75 8.76499C0.75 7.65214 1.65214 6.75 2.76499 6.75L3.78947 6.75",stroke:"currentColor",strokeWidth:1.5}),O.createElement("rect",{x:6.75,y:.75,width:10.5,height:10.5,rx:2.2069,stroke:"currentColor",strokeWidth:1.5})),WWe=({title:i,titleId:e,...t})=>O.createElement("svg",{height:"1em",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":e,...t},i?O.createElement("title",{id:e},i):null,O.createElement("path",{d:"M5.0484 1.40838C6.12624 0.33054 7.87376 0.330541 8.9516 1.40838L12.5916 5.0484C13.6695 6.12624 13.6695 7.87376 12.5916 8.9516L8.9516 12.5916C7.87376 13.6695 6.12624 13.6695 5.0484 12.5916L1.40838 8.9516C0.33054 7.87376 0.330541 6.12624 1.40838 5.0484L5.0484 1.40838Z",stroke:"currentColor",strokeWidth:1.2}),O.createElement("path",{d:"M5 9L9 5",stroke:"currentColor",strokeWidth:1.2}),O.createElement("path",{d:"M5 5L9 9",stroke:"currentColor",strokeWidth:1.2})),HWe=({title:i,titleId:e,...t})=>O.createElement("svg",{height:"1em",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":e,...t},i?O.createElement("title",{id:e},i):null,O.createElement("path",{d:"M4 8L8 4",stroke:"currentColor",strokeWidth:1.2}),O.createElement("path",{d:"M4 4L8 8",stroke:"currentColor",strokeWidth:1.2}),O.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.5 1.2H9C9.99411 1.2 10.8 2.00589 10.8 3V9C10.8 9.99411 9.99411 10.8 9 10.8H8.5V12H9C10.6569 12 12 10.6569 12 9V3C12 1.34315 10.6569 0 9 0H8.5V1.2ZM3.5 1.2V0H3C1.34315 0 0 1.34315 0 3V9C0 10.6569 1.34315 12 3 12H3.5V10.8H3C2.00589 10.8 1.2 9.99411 1.2 9V3C1.2 2.00589 2.00589 1.2 3 1.2H3.5Z",fill:"currentColor"})),$We=({title:i,titleId:e,...t})=>O.createElement("svg",{height:"1em",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":e,...t},i?O.createElement("title",{id:e},i):null,O.createElement("rect",{x:.6,y:.6,width:10.8,height:10.8,rx:3.4,stroke:"currentColor",strokeWidth:1.2}),O.createElement("path",{d:"M4 8L8 4",stroke:"currentColor",strokeWidth:1.2}),O.createElement("path",{d:"M4 4L8 8",stroke:"currentColor",strokeWidth:1.2})),UWe=({title:i,titleId:e,...t})=>O.createElement("svg",{height:"1em",viewBox:"0 0.5 12 12",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":e,...t},i?O.createElement("title",{id:e},i):null,O.createElement("rect",{x:7,y:5.5,width:2,height:2,rx:1,transform:"rotate(90 7 5.5)",fill:"currentColor"}),O.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.8 9L10.8 9.5C10.8 10.4941 9.99411 11.3 9 11.3L3 11.3C2.00589 11.3 1.2 10.4941 1.2 9.5L1.2 9L-3.71547e-07 9L-3.93402e-07 9.5C-4.65826e-07 11.1569 1.34314 12.5 3 12.5L9 12.5C10.6569 12.5 12 11.1569 12 9.5L12 9L10.8 9ZM10.8 4L12 4L12 3.5C12 1.84315 10.6569 0.5 9 0.5L3 0.5C1.34315 0.5 -5.87117e-08 1.84315 -1.31135e-07 3.5L-1.5299e-07 4L1.2 4L1.2 3.5C1.2 2.50589 2.00589 1.7 3 1.7L9 1.7C9.99411 1.7 10.8 2.50589 10.8 3.5L10.8 4Z",fill:"currentColor"})),zWe=({title:i,titleId:e,...t})=>O.createElement("svg",{height:"1em",viewBox:"0 0 20 24",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":e,...t},i?O.createElement("title",{id:e},i):null,O.createElement("path",{d:"M0.75 3C0.75 1.75736 1.75736 0.75 3 0.75H17.25C17.8023 0.75 18.25 1.19772 18.25 1.75V5.25",stroke:"currentColor",strokeWidth:1.5}),O.createElement("path",{d:"M0.75 3C0.75 4.24264 1.75736 5.25 3 5.25H18.25C18.8023 5.25 19.25 5.69771 19.25 6.25V22.25C19.25 22.8023 18.8023 23.25 18.25 23.25H3C1.75736 23.25 0.75 22.2426 0.75 21V3Z",stroke:"currentColor",strokeWidth:1.5}),O.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3 5.25C1.75736 5.25 0.75 4.24264 0.75 3V21C0.75 22.2426 1.75736 23.25 3 23.25H18.25C18.8023 23.25 19.25 22.8023 19.25 22.25V6.25C19.25 5.69771 18.8023 5.25 18.25 5.25H3ZM13 11L6 11V12.5L13 12.5V11Z",fill:"currentColor"})),jWe=({title:i,titleId:e,...t})=>O.createElement("svg",{height:"1em",viewBox:"0 0 20 24",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":e,...t},i?O.createElement("title",{id:e},i):null,O.createElement("path",{d:"M0.75 3C0.75 4.24264 1.75736 5.25 3 5.25H17.25M0.75 3C0.75 1.75736 1.75736 0.75 3 0.75H16.25C16.8023 0.75 17.25 1.19772 17.25 1.75V5.25M0.75 3V21C0.75 22.2426 1.75736 23.25 3 23.25H18.25C18.8023 23.25 19.25 22.8023 19.25 22.25V6.25C19.25 5.69771 18.8023 5.25 18.25 5.25H17.25",stroke:"currentColor",strokeWidth:1.5}),O.createElement("line",{x1:13,y1:11.75,x2:6,y2:11.75,stroke:"currentColor",strokeWidth:1.5})),qWe=({title:i,titleId:e,...t})=>O.createElement("svg",{height:"1em",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":e,...t},i?O.createElement("title",{id:e},i):null,O.createElement("rect",{x:5,y:5,width:2,height:2,rx:1,fill:"currentColor"}),O.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.5 1.2H9C9.99411 1.2 10.8 2.00589 10.8 3V9C10.8 9.99411 9.99411 10.8 9 10.8H8.5V12H9C10.6569 12 12 10.6569 12 9V3C12 1.34315 10.6569 0 9 0H8.5V1.2ZM3.5 1.2V0H3C1.34315 0 0 1.34315 0 3V9C0 10.6569 1.34315 12 3 12H3.5V10.8H3C2.00589 10.8 1.2 9.99411 1.2 9V3C1.2 2.00589 2.00589 1.2 3 1.2H3.5Z",fill:"currentColor"})),GWe=({title:i,titleId:e,...t})=>O.createElement("svg",{height:"1em",viewBox:"0 0 12 13",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":e,...t},i?O.createElement("title",{id:e},i):null,O.createElement("rect",{x:.6,y:1.1,width:10.8,height:10.8,rx:2.4,stroke:"currentColor",strokeWidth:1.2}),O.createElement("rect",{x:5,y:5.5,width:2,height:2,rx:1,fill:"currentColor"})),KWe=({title:i,titleId:e,...t})=>O.createElement("svg",{height:"1em",viewBox:"0 0 24 20",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":e,...t},i?O.createElement("title",{id:e},i):null,O.createElement("path",{d:"M1.59375 9.52344L4.87259 12.9944L8.07872 9.41249",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"square"}),O.createElement("path",{d:"M13.75 5.25V10.75H18.75",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"square"}),O.createElement("path",{d:"M4.95427 11.9332C4.55457 10.0629 4.74441 8.11477 5.49765 6.35686C6.25089 4.59894 7.5305 3.11772 9.16034 2.11709C10.7902 1.11647 12.6901 0.645626 14.5986 0.769388C16.5071 0.893151 18.3303 1.60543 19.8172 2.80818C21.3042 4.01093 22.3818 5.64501 22.9017 7.48548C23.4216 9.32595 23.3582 11.2823 22.7203 13.0853C22.0824 14.8883 20.9013 16.4492 19.3396 17.5532C17.778 18.6572 15.9125 19.25 14 19.25",stroke:"currentColor",strokeWidth:1.5})),YWe=({title:i,titleId:e,...t})=>O.createElement("svg",{height:"1em",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":e,...t},i?O.createElement("title",{id:e},i):null,O.createElement("circle",{cx:6,cy:6,r:5.4,stroke:"currentColor",strokeWidth:1.2,strokeDasharray:"4.241025 4.241025",transform:"rotate(22.5 6 6)"}),O.createElement("circle",{cx:6,cy:6,r:1,fill:"currentColor"})),XWe=({title:i,titleId:e,...t})=>O.createElement("svg",{height:"1em",viewBox:"0 0 19 18",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":e,...t},i?O.createElement("title",{id:e},i):null,O.createElement("path",{d:"M1.5 14.5653C1.5 15.211 1.75652 15.8303 2.21314 16.2869C2.66975 16.7435 3.28905 17 3.9348 17C4.58054 17 5.19984 16.7435 5.65646 16.2869C6.11307 15.8303 6.36959 15.211 6.36959 14.5653V12.1305H3.9348C3.28905 12.1305 2.66975 12.387 2.21314 12.8437C1.75652 13.3003 1.5 13.9195 1.5 14.5653Z",stroke:"currentColor",strokeWidth:1.125,strokeLinecap:"round",strokeLinejoin:"round"}),O.createElement("path",{d:"M3.9348 1.00063C3.28905 1.00063 2.66975 1.25715 2.21314 1.71375C1.75652 2.17035 1.5 2.78964 1.5 3.43537C1.5 4.0811 1.75652 4.70038 2.21314 5.15698C2.66975 5.61358 3.28905 5.8701 3.9348 5.8701H6.36959V3.43537C6.36959 2.78964 6.11307 2.17035 5.65646 1.71375C5.19984 1.25715 4.58054 1.00063 3.9348 1.00063Z",stroke:"currentColor",strokeWidth:1.125,strokeLinecap:"round",strokeLinejoin:"round"}),O.createElement("path",{d:"M15.0652 12.1305H12.6304V14.5653C12.6304 15.0468 12.7732 15.5175 13.0407 15.9179C13.3083 16.3183 13.6885 16.6304 14.1334 16.8147C14.5783 16.9989 15.0679 17.0472 15.5402 16.9532C16.0125 16.8593 16.4464 16.6274 16.7869 16.2869C17.1274 15.9464 17.3593 15.5126 17.4532 15.0403C17.5472 14.568 17.4989 14.0784 17.3147 13.6335C17.1304 13.1886 16.8183 12.8084 16.4179 12.5409C16.0175 12.2733 15.5468 12.1305 15.0652 12.1305Z",stroke:"currentColor",strokeWidth:1.125,strokeLinecap:"round",strokeLinejoin:"round"}),O.createElement("path",{d:"M12.6318 5.86775H6.36955V12.1285H12.6318V5.86775Z",stroke:"currentColor",strokeWidth:1.125,strokeLinecap:"round",strokeLinejoin:"round"}),O.createElement("path",{d:"M17.5 3.43473C17.5 2.789 17.2435 2.16972 16.7869 1.71312C16.3303 1.25652 15.711 1 15.0652 1C14.4195 1 13.8002 1.25652 13.3435 1.71312C12.8869 2.16972 12.6304 2.789 12.6304 3.43473V5.86946H15.0652C15.711 5.86946 16.3303 5.61295 16.7869 5.15635C17.2435 4.69975 17.5 4.08046 17.5 3.43473Z",stroke:"currentColor",strokeWidth:1.125,strokeLinecap:"round",strokeLinejoin:"round"})),QWe=({title:i,titleId:e,...t})=>O.createElement("svg",{height:"1em",viewBox:"0 0 13 13",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":e,...t},i?O.createElement("title",{id:e},i):null,O.createElement("circle",{cx:5,cy:5,r:4.35,stroke:"currentColor",strokeWidth:1.3}),O.createElement("line",{x1:8.45962,y1:8.54038,x2:11.7525,y2:11.8333,stroke:"currentColor",strokeWidth:1.3})),ZWe=({title:i,titleId:e,...t})=>O.createElement("svg",{height:"1em",viewBox:"-2 -2 22 22",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":e,...t},i?O.createElement("title",{id:e},i):null,O.createElement("path",{d:"M17.2492 6V2.9569C17.2492 1.73806 16.2611 0.75 15.0423 0.75L2.9569 0.75C1.73806 0.75 0.75 1.73806 0.75 2.9569L0.75 6",stroke:"currentColor",strokeWidth:1.5}),O.createElement("path",{d:"M0.749873 12V15.0431C0.749873 16.2619 1.73794 17.25 2.95677 17.25H15.0421C16.261 17.25 17.249 16.2619 17.249 15.0431V12",stroke:"currentColor",strokeWidth:1.5}),O.createElement("path",{d:"M6 4.5L9 7.5L12 4.5",stroke:"currentColor",strokeWidth:1.5}),O.createElement("path",{d:"M12 13.5L9 10.5L6 13.5",stroke:"currentColor",strokeWidth:1.5})),JWe=({title:i,titleId:e,...t})=>O.createElement("svg",{height:"1em",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":e,...t},i?O.createElement("title",{id:e},i):null,O.createElement("path",{d:"M0.75 13.25L0.0554307 12.967C-0.0593528 13.2488 0.00743073 13.5719 0.224488 13.7851C0.441545 13.9983 0.765869 14.0592 1.04549 13.9393L0.75 13.25ZM12.8214 1.83253L12.2911 2.36286L12.2911 2.36286L12.8214 1.83253ZM12.8214 3.90194L13.3517 4.43227L12.8214 3.90194ZM10.0981 1.17859L9.56773 0.648259L10.0981 1.17859ZM12.1675 1.17859L12.6978 0.648258L12.6978 0.648257L12.1675 1.17859ZM2.58049 8.75697L3.27506 9.03994L2.58049 8.75697ZM2.70066 8.57599L3.23099 9.10632L2.70066 8.57599ZM5.2479 11.4195L4.95355 10.7297L5.2479 11.4195ZM5.42036 11.303L4.89003 10.7727L5.42036 11.303ZM4.95355 10.7297C4.08882 11.0987 3.41842 11.362 2.73535 11.6308C2.05146 11.9 1.35588 12.1743 0.454511 12.5607L1.04549 13.9393C1.92476 13.5624 2.60256 13.2951 3.28469 13.0266C3.96762 12.7578 4.65585 12.4876 5.54225 12.1093L4.95355 10.7297ZM1.44457 13.533L3.27506 9.03994L1.88592 8.474L0.0554307 12.967L1.44457 13.533ZM3.23099 9.10632L10.6284 1.70892L9.56773 0.648259L2.17033 8.04566L3.23099 9.10632ZM11.6371 1.70892L12.2911 2.36286L13.3517 1.3022L12.6978 0.648258L11.6371 1.70892ZM12.2911 3.37161L4.89003 10.7727L5.95069 11.8333L13.3517 4.43227L12.2911 3.37161ZM12.2911 2.36286C12.5696 2.64142 12.5696 3.09305 12.2911 3.37161L13.3517 4.43227C14.2161 3.56792 14.2161 2.16654 13.3517 1.3022L12.2911 2.36286ZM10.6284 1.70892C10.9069 1.43036 11.3586 1.43036 11.6371 1.70892L12.6978 0.648257C11.8335 -0.216088 10.4321 -0.216084 9.56773 0.648259L10.6284 1.70892ZM3.27506 9.03994C3.26494 9.06479 3.24996 9.08735 3.23099 9.10632L2.17033 8.04566C2.04793 8.16806 1.95123 8.31369 1.88592 8.474L3.27506 9.03994ZM5.54225 12.1093C5.69431 12.0444 5.83339 11.9506 5.95069 11.8333L4.89003 10.7727C4.90863 10.7541 4.92988 10.7398 4.95355 10.7297L5.54225 12.1093Z",fill:"currentColor"}),O.createElement("path",{d:"M11.5 4.5L9.5 2.5",stroke:"currentColor",strokeWidth:1.4026,strokeLinecap:"round",strokeLinejoin:"round"}),O.createElement("path",{d:"M5.5 10.5L3.5 8.5",stroke:"currentColor",strokeWidth:1.4026,strokeLinecap:"round",strokeLinejoin:"round"})),eHe=({title:i,titleId:e,...t})=>O.createElement("svg",{height:"1em",viewBox:"0 0 16 18",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":e,...t},i?O.createElement("title",{id:e},i):null,O.createElement("path",{d:"M1.32226e-07 1.6609C7.22332e-08 0.907329 0.801887 0.424528 1.46789 0.777117L15.3306 8.11621C16.0401 8.49182 16.0401 9.50818 15.3306 9.88379L1.46789 17.2229C0.801886 17.5755 1.36076e-06 17.0927 1.30077e-06 16.3391L1.32226e-07 1.6609Z",fill:"currentColor"})),tHe=({title:i,titleId:e,...t})=>O.createElement("svg",{height:"1em",viewBox:"0 0 10 16",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":e,...t},i?O.createElement("title",{id:e},i):null,O.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4.25 9.25V13.5H5.75V9.25L10 9.25V7.75L5.75 7.75V3.5H4.25V7.75L0 7.75V9.25L4.25 9.25Z"})),iHe=({title:i,titleId:e,...t})=>O.createElement("svg",{width:25,height:25,viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":e,...t},i?O.createElement("title",{id:e},i):null,O.createElement("path",{d:"M10.2852 24.0745L13.7139 18.0742",stroke:"currentColor",strokeWidth:1.5625}),O.createElement("path",{d:"M14.5742 24.0749L17.1457 19.7891",stroke:"currentColor",strokeWidth:1.5625}),O.createElement("path",{d:"M19.4868 24.0735L20.7229 21.7523C21.3259 20.6143 21.5457 19.3122 21.3496 18.0394C21.1535 16.7666 20.5519 15.591 19.6342 14.6874L23.7984 6.87853C24.0123 6.47728 24.0581 6.00748 23.9256 5.57249C23.7932 5.1375 23.4933 4.77294 23.0921 4.55901C22.6908 4.34509 22.221 4.29932 21.7861 4.43178C21.3511 4.56424 20.9865 4.86408 20.7726 5.26533L16.6084 13.0742C15.3474 12.8142 14.0362 12.9683 12.8699 13.5135C11.7035 14.0586 10.7443 14.9658 10.135 16.1L6 24.0735",stroke:"currentColor",strokeWidth:1.5625}),O.createElement("path",{d:"M4 15L5 13L7 12L5 11L4 9L3 11L1 12L3 13L4 15Z",stroke:"currentColor",strokeWidth:1.5625,strokeLinejoin:"round"}),O.createElement("path",{d:"M11.5 8L12.6662 5.6662L15 4.5L12.6662 3.3338L11.5 1L10.3338 3.3338L8 4.5L10.3338 5.6662L11.5 8Z",stroke:"currentColor",strokeWidth:1.5625,strokeLinejoin:"round"})),nHe=({title:i,titleId:e,...t})=>O.createElement("svg",{height:"1em",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":e,...t},i?O.createElement("title",{id:e},i):null,O.createElement("path",{d:"M4.75 9.25H1.25V12.75",stroke:"currentColor",strokeWidth:1,strokeLinecap:"square"}),O.createElement("path",{d:"M11.25 6.75H14.75V3.25",stroke:"currentColor",strokeWidth:1,strokeLinecap:"square"}),O.createElement("path",{d:"M14.1036 6.65539C13.8 5.27698 13.0387 4.04193 11.9437 3.15131C10.8487 2.26069 9.48447 1.76694 8.0731 1.75043C6.66173 1.73392 5.28633 2.19563 4.17079 3.0604C3.05526 3.92516 2.26529 5.14206 1.92947 6.513",stroke:"currentColor",strokeWidth:1}),O.createElement("path",{d:"M1.89635 9.34461C2.20001 10.723 2.96131 11.9581 4.05631 12.8487C5.15131 13.7393 6.51553 14.2331 7.9269 14.2496C9.33827 14.2661 10.7137 13.8044 11.8292 12.9396C12.9447 12.0748 13.7347 10.8579 14.0705 9.487",stroke:"currentColor",strokeWidth:1})),sHe=({title:i,titleId:e,...t})=>O.createElement("svg",{height:"1em",viewBox:"0 0 13 13",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":e,...t},i?O.createElement("title",{id:e},i):null,O.createElement("rect",{x:.6,y:.6,width:11.8,height:11.8,rx:5.9,stroke:"currentColor",strokeWidth:1.2}),O.createElement("path",{d:"M4.25 7.5C4.25 6 5.75 5 6.5 6.5C7.25 8 8.75 7 8.75 5.5",stroke:"currentColor",strokeWidth:1.2})),rHe=({title:i,titleId:e,...t})=>O.createElement("svg",{height:"1em",viewBox:"0 0 21 20",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":e,...t},i?O.createElement("title",{id:e},i):null,O.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.29186 1.92702C9.06924 1.82745 8.87014 1.68202 8.70757 1.50024L7.86631 0.574931C7.62496 0.309957 7.30773 0.12592 6.95791 0.0479385C6.60809 -0.0300431 6.24274 0.00182978 5.91171 0.139208C5.58068 0.276585 5.3001 0.512774 5.10828 0.815537C4.91645 1.1183 4.82272 1.47288 4.83989 1.83089L4.90388 3.08019C4.91612 3.32348 4.87721 3.56662 4.78968 3.79394C4.70215 4.02126 4.56794 4.2277 4.39571 4.39994C4.22347 4.57219 4.01704 4.7064 3.78974 4.79394C3.56243 4.88147 3.3193 4.92038 3.07603 4.90814L1.8308 4.84414C1.47162 4.82563 1.11553 4.91881 0.811445 5.11086C0.507359 5.30292 0.270203 5.58443 0.132561 5.91671C-0.00508149 6.249 -0.0364554 6.61576 0.0427496 6.9666C0.121955 7.31744 0.307852 7.63514 0.5749 7.87606L1.50016 8.71204C1.68193 8.87461 1.82735 9.07373 1.92692 9.29636C2.02648 9.51898 2.07794 9.76012 2.07794 10.004C2.07794 10.2479 2.02648 10.489 1.92692 10.7116C1.82735 10.9343 1.68193 11.1334 1.50016 11.296L0.5749 12.1319C0.309856 12.3729 0.125575 12.6898 0.0471809 13.0393C-0.0312128 13.3888 9.64098e-05 13.754 0.13684 14.0851C0.273583 14.4162 0.509106 14.6971 0.811296 14.8894C1.11349 15.0817 1.46764 15.1762 1.82546 15.1599L3.0707 15.0959C3.31397 15.0836 3.5571 15.1225 3.7844 15.2101C4.01171 15.2976 4.21814 15.4318 4.39037 15.6041C4.56261 15.7763 4.69682 15.9827 4.78435 16.2101C4.87188 16.4374 4.91078 16.6805 4.89855 16.9238L4.83455 18.1691C4.81605 18.5283 4.90921 18.8844 5.10126 19.1885C5.2933 19.4926 5.5748 19.7298 5.90707 19.8674C6.23934 20.0051 6.60608 20.0365 6.9569 19.9572C7.30772 19.878 7.6254 19.6921 7.86631 19.4251L8.7129 18.4998C8.87547 18.318 9.07458 18.1725 9.29719 18.073C9.51981 17.9734 9.76093 17.9219 10.0048 17.9219C10.2487 17.9219 10.4898 17.9734 10.7124 18.073C10.935 18.1725 11.1341 18.318 11.2967 18.4998L12.1326 19.4251C12.3735 19.6921 12.6912 19.878 13.042 19.9572C13.3929 20.0365 13.7596 20.0051 14.0919 19.8674C14.4241 19.7298 14.7056 19.4926 14.8977 19.1885C15.0897 18.8844 15.1829 18.5283 15.1644 18.1691L15.1004 16.9238C15.0882 16.6805 15.1271 16.4374 15.2146 16.2101C15.3021 15.9827 15.4363 15.7763 15.6086 15.6041C15.7808 15.4318 15.9872 15.2976 16.2145 15.2101C16.4418 15.1225 16.685 15.0836 16.9282 15.0959L18.1735 15.1599C18.5326 15.1784 18.8887 15.0852 19.1928 14.8931C19.4969 14.7011 19.7341 14.4196 19.8717 14.0873C20.0093 13.755 20.0407 13.3882 19.9615 13.0374C19.8823 12.6866 19.6964 12.3689 19.4294 12.1279L18.5041 11.292C18.3223 11.1294 18.1769 10.9303 18.0774 10.7076C17.9778 10.485 17.9263 10.2439 17.9263 10C17.9263 9.75612 17.9778 9.51499 18.0774 9.29236C18.1769 9.06973 18.3223 8.87062 18.5041 8.70804L19.4294 7.87206C19.6964 7.63114 19.8823 7.31344 19.9615 6.9626C20.0407 6.61176 20.0093 6.245 19.8717 5.91271C19.7341 5.58043 19.4969 5.29892 19.1928 5.10686C18.8887 4.91481 18.5326 4.82163 18.1735 4.84014L16.9282 4.90414C16.685 4.91638 16.4418 4.87747 16.2145 4.78994C15.9872 4.7024 15.7808 4.56818 15.6086 4.39594C15.4363 4.2237 15.3021 4.01726 15.2146 3.78994C15.1271 3.56262 15.0882 3.31948 15.1004 3.07619L15.1644 1.83089C15.1829 1.4717 15.0897 1.11559 14.8977 0.811487C14.7056 0.507385 14.4241 0.270217 14.0919 0.132568C13.7596 -0.00508182 13.3929 -0.0364573 13.042 0.0427519C12.6912 0.121961 12.3735 0.307869 12.1326 0.574931L11.2914 1.50024C11.1288 1.68202 10.9297 1.82745 10.7071 1.92702C10.4845 2.02659 10.2433 2.07805 9.99947 2.07805C9.7556 2.07805 9.51448 2.02659 9.29186 1.92702ZM14.3745 10C14.3745 12.4162 12.4159 14.375 9.99977 14.375C7.58365 14.375 5.625 12.4162 5.625 10C5.625 7.58375 7.58365 5.625 9.99977 5.625C12.4159 5.625 14.3745 7.58375 14.3745 10Z",fill:"currentColor"})),oHe=({title:i,titleId:e,...t})=>O.createElement("svg",{height:"1em",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":e,...t},i?O.createElement("title",{id:e},i):null,O.createElement("path",{d:"M6.5782 1.07092C6.71096 0.643026 7.28904 0.643027 7.4218 1.07092L8.59318 4.84622C8.65255 5.03758 8.82284 5.16714 9.01498 5.16714L12.8056 5.16714C13.2353 5.16714 13.4139 5.74287 13.0663 6.00732L9.99962 8.34058C9.84418 8.45885 9.77913 8.66848 9.83851 8.85984L11.0099 12.6351C11.1426 13.063 10.675 13.4189 10.3274 13.1544L7.26069 10.8211C7.10524 10.7029 6.89476 10.7029 6.73931 10.8211L3.6726 13.1544C3.32502 13.4189 2.85735 13.063 2.99012 12.6351L4.16149 8.85984C4.22087 8.66848 4.15582 8.45885 4.00038 8.34058L0.933671 6.00732C0.586087 5.74287 0.764722 5.16714 1.19436 5.16714L4.98502 5.16714C5.17716 5.16714 5.34745 5.03758 5.40682 4.84622L6.5782 1.07092Z",fill:"currentColor",stroke:"currentColor"})),aHe=({title:i,titleId:e,...t})=>O.createElement("svg",{height:"1em",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":e,...t},i?O.createElement("title",{id:e},i):null,O.createElement("path",{d:"M6.5782 1.07092C6.71096 0.643026 7.28904 0.643027 7.4218 1.07092L8.59318 4.84622C8.65255 5.03758 8.82284 5.16714 9.01498 5.16714L12.8056 5.16714C13.2353 5.16714 13.4139 5.74287 13.0663 6.00732L9.99962 8.34058C9.84418 8.45885 9.77913 8.66848 9.83851 8.85984L11.0099 12.6351C11.1426 13.063 10.675 13.4189 10.3274 13.1544L7.26069 10.8211C7.10524 10.7029 6.89476 10.7029 6.73931 10.8211L3.6726 13.1544C3.32502 13.4189 2.85735 13.063 2.99012 12.6351L4.16149 8.85984C4.22087 8.66848 4.15582 8.45885 4.00038 8.34058L0.933671 6.00732C0.586087 5.74287 0.764722 5.16714 1.19436 5.16714L4.98502 5.16714C5.17716 5.16714 5.34745 5.03758 5.40682 4.84622L6.5782 1.07092Z",stroke:"currentColor",strokeWidth:1.5})),lHe=({title:i,titleId:e,...t})=>O.createElement("svg",{height:"1em",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":e,...t},i?O.createElement("title",{id:e},i):null,O.createElement("rect",{width:16,height:16,rx:2,fill:"currentColor"})),uHe=({title:i,titleId:e,...t})=>O.createElement("svg",{width:"1em",height:"5em",xmlns:"http://www.w3.org/2000/svg",fillRule:"evenodd","aria-hidden":"true",viewBox:"0 0 23 23",style:{height:"1.5em"},clipRule:"evenodd","aria-labelledby":e,...t},i?O.createElement("title",{id:e},i):null,O.createElement("path",{d:"M19 24h-14c-1.104 0-2-.896-2-2v-17h-1v-2h6v-1.5c0-.827.673-1.5 1.5-1.5h5c.825 0 1.5.671 1.5 1.5v1.5h6v2h-1v17c0 1.104-.896 2-2 2zm0-19h-14v16.5c0 .276.224.5.5.5h13c.276 0 .5-.224.5-.5v-16.5zm-7 7.586l3.293-3.293 1.414 1.414-3.293 3.293 3.293 3.293-1.414 1.414-3.293-3.293-3.293 3.293-1.414-1.414 3.293-3.293-3.293-3.293 1.414-1.414 3.293 3.293zm2-10.586h-4v1h4v-1z",fill:"currentColor",strokeWidth:.25,stroke:"currentColor"})),cHe=({title:i,titleId:e,...t})=>O.createElement("svg",{height:"1em",viewBox:"0 0 13 13",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":e,...t},i?O.createElement("title",{id:e},i):null,O.createElement("rect",{x:.6,y:.6,width:11.8,height:11.8,rx:5.9,stroke:"currentColor",strokeWidth:1.2}),O.createElement("rect",{x:5.5,y:5.5,width:2,height:2,rx:1,fill:"currentColor"})),dHe=mr(MWe),hHe=mr(RWe),fHe=mr(OWe),pHe=mr(FWe),qU=mr(BWe),gHe=mr(VWe),mHe=mr(WWe),_He=mr(HWe),bHe=mr($We),yHe=mr(UWe),vHe=mr(zWe),CHe=mr(jWe),wHe=mr(qWe),SHe=mr(GWe),xHe=mr(KWe),DHe=mr(YWe),EHe=mr(XWe),THe=mr(QWe),kHe=mr(ZWe),LHe=mr(JWe),AHe=mr(eHe),NHe=mr(tHe),IHe=mr(iHe),PHe=mr(nHe),MHe=mr(sHe),RHe=mr(rHe),OHe=mr(oHe),FHe=mr(aHe),BHe=mr(lHe),VHe=mr(uHe),vF=mr(cHe);function mr(i){const e=i.name.replace("Svg","").replaceAll(/([A-Z])/g," $1").trimStart().toLowerCase()+" icon",t=n=>{const s=Ai.c(2);let r;return s[0]!==n?(r=H.jsx(i,{title:e,...n}),s[0]=n,s[1]=r):r=s[1],r};return t.displayName=i.name,t}class WHe{constructor(){this.listeners=[],this.unexpectedErrorHandler=function(e){setTimeout(()=>{throw e.stack?pD.isErrorNoTelemetry(e)?new pD(e.message+`
|
|
61
10
|
|
|
62
11
|
`+e.stack):new Error(e.message+`
|
|
63
12
|
|
|
@@ -293,32 +242,7 @@ ${e.join(`
|
|
|
293
242
|
`,r==="\r"&&s+1<t.length&&t.charAt(s+1)===`
|
|
294
243
|
`&&s++}n&&t.length>0&&e.push(t.length),this._lineOffsets=e}return this._lineOffsets}positionAt(e){e=Math.max(Math.min(e,this._content.length),0);let t=this.getLineOffsets(),n=0,s=t.length;if(s===0)return ip.create(0,e);for(;n<s;){let o=Math.floor((n+s)/2);t[o]>e?s=o:n=o+1}let r=n-1;return ip.create(r,e-t[r])}offsetAt(e){let t=this.getLineOffsets();if(e.line>=t.length)return this._content.length;if(e.line<0)return 0;let n=t[e.line],s=e.line+1<t.length?t[e.line+1]:this._content.length;return Math.max(Math.min(n+e.character,s),n)}get lineCount(){return this.getLineOffsets().length}};var Qe;(function(i){const e=Object.prototype.toString;function t(f){return typeof f<"u"}i.defined=t;function n(f){return typeof f>"u"}i.undefined=n;function s(f){return f===!0||f===!1}i.boolean=s;function r(f){return e.call(f)==="[object String]"}i.string=r;function o(f){return e.call(f)==="[object Number]"}i.number=o;function a(f,g,b){return e.call(f)==="[object Number]"&&g<=f&&f<=b}i.numberRange=a;function l(f){return e.call(f)==="[object Number]"&&-2147483648<=f&&f<=2147483647}i.integer=l;function u(f){return e.call(f)==="[object Number]"&&0<=f&&f<=2147483647}i.uinteger=u;function c(f){return e.call(f)==="[object Function]"}i.func=c;function d(f){return f!==null&&typeof f=="object"}i.objectLiteral=d;function h(f,g){return Array.isArray(f)&&f.every(g)}i.typedArray=h})(Qe||(Qe={}));class t0e{constructor(e){this._start=0,this._pos=0,this.getStartOfToken=()=>this._start,this.getCurrentPosition=()=>this._pos,this.eol=()=>this._sourceText.length===this._pos,this.sol=()=>this._pos===0,this.peek=()=>this._sourceText.charAt(this._pos)||null,this.next=()=>{const t=this._sourceText.charAt(this._pos);return this._pos++,t},this.eat=t=>{if(this._testNextCharacter(t))return this._start=this._pos,this._pos++,this._sourceText.charAt(this._pos-1)},this.eatWhile=t=>{let n=this._testNextCharacter(t),s=!1;for(n&&(s=n,this._start=this._pos);n;)this._pos++,n=this._testNextCharacter(t),s=!0;return s},this.eatSpace=()=>this.eatWhile(/[\s\u00a0]/),this.skipToEnd=()=>{this._pos=this._sourceText.length},this.skipTo=t=>{this._pos=t},this.match=(t,n=!0,s=!1)=>{let r=null,o=null;return typeof t=="string"?(o=new RegExp(t,s?"i":"g").test(this._sourceText.slice(this._pos,this._pos+t.length)),r=t):t instanceof RegExp&&(o=this._sourceText.slice(this._pos).match(t),r=o?.[0]),o!=null&&(typeof t=="string"||o instanceof Array&&this._sourceText.startsWith(o[0],this._pos))?(n&&(this._start=this._pos,r&&r.length&&(this._pos+=r.length)),o):!1},this.backUp=t=>{this._pos-=t},this.column=()=>this._pos,this.indentation=()=>{const t=this._sourceText.match(/\s*/);let n=0;if(t&&t.length!==0){const s=t[0];let r=0;for(;s.length>r;)s.charCodeAt(r)===9?n+=2:n++,r++}return n},this.current=()=>this._sourceText.slice(this._start,this._pos),this._sourceText=e}_testNextCharacter(e){const t=this._sourceText.charAt(this._pos);let n=!1;return typeof e=="string"?n=t===e:n=e instanceof RegExp?e.test(t):e(t),n}}function pa(i){return{ofRule:i}}function Xs(i,e){return{ofRule:i,isList:!0,separator:e}}function Tqe(i,e){const t=i.match;return i.match=n=>{let s=!1;return t&&(s=t(n)),s&&e.every(r=>r.match&&!r.match(n))},i}function Dq(i,e){return{style:e,match:t=>t.kind===i}}function Hn(i,e){return{style:e||"punctuation",match:t=>t.kind==="Punctuation"&&t.value===i}}const kqe=i=>i===" "||i===" "||i===","||i===`
|
|
295
244
|
`||i==="\r"||i==="\uFEFF"||i===" ",Lqe={Name:/^[_A-Za-z][_0-9A-Za-z]*/,Punctuation:/^(?:!|\$|\(|\)|\.\.\.|:|=|&|@|\[|]|\{|\||\})/,Number:/^-?(?:0|(?:[1-9][0-9]*))(?:\.[0-9]*)?(?:[eE][+-]?[0-9]+)?/,String:/^(?:"""(?:\\"""|[^"]|"[^"]|""[^"])*(?:""")?|"(?:[^"\\]|\\(?:"|\/|\\|b|f|n|r|t|u[0-9a-fA-F]{4}))*"?)/,Comment:/^#.*/},Aqe={Document:[Xs("Definition")],Definition(i){switch(i.value){case"{":return"ShortQuery";case"query":return"Query";case"mutation":return"Mutation";case"subscription":return"Subscription";case"fragment":return X.FRAGMENT_DEFINITION;case"schema":return"SchemaDef";case"scalar":return"ScalarDef";case"type":return"ObjectTypeDef";case"interface":return"InterfaceDef";case"union":return"UnionDef";case"enum":return"EnumDef";case"input":return"InputDef";case"extend":return"ExtendDef";case"directive":return"DirectiveDef"}},ShortQuery:["SelectionSet"],Query:[jl("query"),pa(uo("def")),pa("VariableDefinitions"),Xs("Directive"),"SelectionSet"],Mutation:[jl("mutation"),pa(uo("def")),pa("VariableDefinitions"),Xs("Directive"),"SelectionSet"],Subscription:[jl("subscription"),pa(uo("def")),pa("VariableDefinitions"),Xs("Directive"),"SelectionSet"],VariableDefinitions:[Hn("("),Xs("VariableDefinition"),Hn(")")],VariableDefinition:["Variable",Hn(":"),"Type",pa("DefaultValue")],Variable:[Hn("$","variable"),uo("variable")],DefaultValue:[Hn("="),"Value"],SelectionSet:[Hn("{"),Xs("Selection"),Hn("}")],Selection(i,e){return i.value==="..."?e.match(/[\s\u00a0,]*(on\b|@|{)/,!1)?"InlineFragment":"FragmentSpread":e.match(/[\s\u00a0,]*:/,!1)?"AliasedField":"Field"},AliasedField:[uo("property"),Hn(":"),uo("qualifier"),pa("Arguments"),Xs("Directive"),pa("SelectionSet")],Field:[uo("property"),pa("Arguments"),Xs("Directive"),pa("SelectionSet")],Arguments:[Hn("("),Xs("Argument"),Hn(")")],Argument:[uo("attribute"),Hn(":"),"Value"],FragmentSpread:[Hn("..."),uo("def"),Xs("Directive")],InlineFragment:[Hn("..."),pa("TypeCondition"),Xs("Directive"),"SelectionSet"],FragmentDefinition:[jl("fragment"),pa(Tqe(uo("def"),[jl("on")])),"TypeCondition",Xs("Directive"),"SelectionSet"],TypeCondition:[jl("on"),"NamedType"],Value(i){switch(i.kind){case"Number":return"NumberValue";case"String":return"StringValue";case"Punctuation":switch(i.value){case"[":return"ListValue";case"{":return"ObjectValue";case"$":return"Variable";case"&":return"NamedType"}return null;case"Name":switch(i.value){case"true":case"false":return"BooleanValue"}return i.value==="null"?"NullValue":"EnumValue"}},NumberValue:[Dq("Number","number")],StringValue:[{style:"string",match:i=>i.kind==="String",update(i,e){e.value.startsWith('"""')&&(i.inBlockstring=!e.value.slice(3).endsWith('"""'))}}],BooleanValue:[Dq("Name","builtin")],NullValue:[Dq("Name","keyword")],EnumValue:[uo("string-2")],ListValue:[Hn("["),Xs("Value"),Hn("]")],ObjectValue:[Hn("{"),Xs("ObjectField"),Hn("}")],ObjectField:[uo("attribute"),Hn(":"),"Value"],Type(i){return i.value==="["?"ListType":"NonNullType"},ListType:[Hn("["),"Type",Hn("]"),pa(Hn("!"))],NonNullType:["NamedType",pa(Hn("!"))],NamedType:[Nqe("atom")],Directive:[Hn("@","meta"),uo("meta"),pa("Arguments")],DirectiveDef:[jl("directive"),Hn("@","meta"),uo("meta"),pa("ArgumentsDef"),jl("on"),Xs("DirectiveLocation",Hn("|"))],InterfaceDef:[jl("interface"),uo("atom"),pa("Implements"),Xs("Directive"),Hn("{"),Xs("FieldDef"),Hn("}")],Implements:[jl("implements"),Xs("NamedType",Hn("&"))],DirectiveLocation:[uo("string-2")],SchemaDef:[jl("schema"),Xs("Directive"),Hn("{"),Xs("OperationTypeDef"),Hn("}")],OperationTypeDef:[uo("keyword"),Hn(":"),uo("atom")],ScalarDef:[jl("scalar"),uo("atom"),Xs("Directive")],ObjectTypeDef:[jl("type"),uo("atom"),pa("Implements"),Xs("Directive"),Hn("{"),Xs("FieldDef"),Hn("}")],FieldDef:[uo("property"),pa("ArgumentsDef"),Hn(":"),"Type",Xs("Directive")],ArgumentsDef:[Hn("("),Xs("InputValueDef"),Hn(")")],InputValueDef:[uo("attribute"),Hn(":"),"Type",pa("DefaultValue"),Xs("Directive")],UnionDef:[jl("union"),uo("atom"),Xs("Directive"),Hn("="),Xs("UnionMember",Hn("|"))],UnionMember:["NamedType"],EnumDef:[jl("enum"),uo("atom"),Xs("Directive"),Hn("{"),Xs("EnumValueDef"),Hn("}")],EnumValueDef:[uo("string-2"),Xs("Directive")],InputDef:[jl("input"),uo("atom"),Xs("Directive"),Hn("{"),Xs("InputValueDef"),Hn("}")],ExtendDef:[jl("extend"),"ExtensionDefinition"],ExtensionDefinition(i){switch(i.value){case"schema":return X.SCHEMA_EXTENSION;case"scalar":return X.SCALAR_TYPE_EXTENSION;case"type":return X.OBJECT_TYPE_EXTENSION;case"interface":return X.INTERFACE_TYPE_EXTENSION;case"union":return X.UNION_TYPE_EXTENSION;case"enum":return X.ENUM_TYPE_EXTENSION;case"input":return X.INPUT_OBJECT_TYPE_EXTENSION}},[X.SCHEMA_EXTENSION]:["SchemaDef"],[X.SCALAR_TYPE_EXTENSION]:["ScalarDef"],[X.OBJECT_TYPE_EXTENSION]:["ObjectTypeDef"],[X.INTERFACE_TYPE_EXTENSION]:["InterfaceDef"],[X.UNION_TYPE_EXTENSION]:["UnionDef"],[X.ENUM_TYPE_EXTENSION]:["EnumDef"],[X.INPUT_OBJECT_TYPE_EXTENSION]:["InputDef"]};function jl(i){return{style:"keyword",match:e=>e.kind==="Name"&&e.value===i}}function uo(i){return{style:i,match:e=>e.kind==="Name",update(e,t){e.name=t.value}}}function Nqe(i){return{style:i,match:e=>e.kind==="Name",update(e,t){var n;!((n=e.prevState)===null||n===void 0)&&n.prevState&&(e.name=t.value,e.prevState.prevState.type=t.value)}}}function Iqe(i={eatWhitespace:e=>e.eatWhile(kqe),lexRules:Lqe,parseRules:Aqe,editorConfig:{}}){return{startState(){const e={level:0,step:0,name:null,kind:null,type:null,rule:null,needsSeparator:!1,prevState:null};return CA(i.parseRules,e,X.DOCUMENT),e},token(e,t){return Pqe(e,t,i)}}}function Pqe(i,e,t){var n;if(e.inBlockstring)return i.match(/.*"""/)?(e.inBlockstring=!1,"string"):(i.skipToEnd(),"string");const{lexRules:s,parseRules:r,eatWhitespace:o,editorConfig:a}=t;if(e.rule&&e.rule.length===0?Tq(e):e.needsAdvance&&(e.needsAdvance=!1,kq(e,!0)),i.sol()){const c=a?.tabSize||2;e.indentLevel=Math.floor(i.indentation()/c)}if(o(i))return"ws";const l=Rqe(s,i);if(!l)return i.match(/\S+/)||i.match(/\s/),CA(Eq,e,"Invalid"),"invalidchar";if(l.kind==="Comment")return CA(Eq,e,"Comment"),"comment";const u=i0e({},e);if(l.kind==="Punctuation"){if(/^[{([]/.test(l.value))e.indentLevel!==void 0&&(e.levels=(e.levels||[]).concat(e.indentLevel+1));else if(/^[})\]]/.test(l.value)){const c=e.levels=(e.levels||[]).slice(0,-1);e.indentLevel&&c.length>0&&c.at(-1)<e.indentLevel&&(e.indentLevel=c.at(-1))}}for(;e.rule;){let c=typeof e.rule=="function"?e.step===0?e.rule(l,i):null:e.rule[e.step];if(e.needsSeparator&&(c=c?.separator),c){if(c.ofRule&&(c=c.ofRule),typeof c=="string"){CA(r,e,c);continue}if(!((n=c.match)===null||n===void 0)&&n.call(c,l))return c.update&&c.update(e,l),l.kind==="Punctuation"?kq(e,!0):e.needsAdvance=!0,c.style}Mqe(e)}return i0e(e,u),CA(Eq,e,"Invalid"),"invalidchar"}function i0e(i,e){const t=Object.keys(e);for(let n=0;n<t.length;n++)i[t[n]]=e[t[n]];return i}const Eq={Invalid:[],Comment:[]};function CA(i,e,t){if(!i[t])throw new TypeError("Unknown rule: "+t);e.prevState=Object.assign({},e),e.kind=t,e.name=null,e.type=null,e.rule=i[t],e.step=0,e.needsSeparator=!1}function Tq(i){i.prevState&&(i.kind=i.prevState.kind,i.name=i.prevState.name,i.type=i.prevState.type,i.rule=i.prevState.rule,i.step=i.prevState.step,i.needsSeparator=i.prevState.needsSeparator,i.prevState=i.prevState.prevState)}function kq(i,e){var t;if(n0e(i)&&i.rule){const n=i.rule[i.step];if(n.separator){const{separator:s}=n;if(i.needsSeparator=!i.needsSeparator,!i.needsSeparator&&s.ofRule)return}if(e)return}for(i.needsSeparator=!1,i.step++;i.rule&&!(Array.isArray(i.rule)&&i.step<i.rule.length);)Tq(i),i.rule&&(n0e(i)?!((t=i.rule)===null||t===void 0)&&t[i.step].separator&&(i.needsSeparator=!i.needsSeparator):(i.needsSeparator=!1,i.step++))}function n0e(i){const e=Array.isArray(i.rule)&&typeof i.rule[i.step]!="string"&&i.rule[i.step];return e&&e.isList}function Mqe(i){for(;i.rule&&!(Array.isArray(i.rule)&&i.rule[i.step].ofRule);)Tq(i);i.rule&&kq(i,!1)}function Rqe(i,e){const t=Object.keys(i);for(let n=0;n<t.length;n++){const s=e.match(i[t[n]]);if(s&&s instanceof Array)return{kind:t[n],value:s[0]}}}function Oqe(i,e){const t=i.split(`
|
|
296
|
-
`),n=Iqe();let s=n.startState(),r="",o=new t0e("");for(let a=0;a<t.length;a++){for(o=new t0e(t[a]);!o.eol()&&(r=n.token(o,s),e(o,s,r,a)!=="BREAK"););e(o,s,r,a),s.kind||(s=n.startState())}return{start:o.getStartOfToken(),end:o.getCurrentPosition(),string:o.current(),state:s,style:r}}var wA;(function(i){i.TYPE_SYSTEM="TYPE_SYSTEM",i.EXECUTABLE="EXECUTABLE",i.UNKNOWN="UNKNOWN"})(wA||(wA={}));const Fqe=[X.SCHEMA_DEFINITION,X.OPERATION_TYPE_DEFINITION,X.SCALAR_TYPE_DEFINITION,X.OBJECT_TYPE_DEFINITION,X.INTERFACE_TYPE_DEFINITION,X.UNION_TYPE_DEFINITION,X.ENUM_TYPE_DEFINITION,X.INPUT_OBJECT_TYPE_DEFINITION,X.DIRECTIVE_DEFINITION,X.SCHEMA_EXTENSION,X.SCALAR_TYPE_EXTENSION,X.OBJECT_TYPE_EXTENSION,X.INTERFACE_TYPE_EXTENSION,X.UNION_TYPE_EXTENSION,X.ENUM_TYPE_EXTENSION,X.INPUT_OBJECT_TYPE_EXTENSION],Bqe=i=>{let e=wA.UNKNOWN;if(i)try{Xo(Uc(i),{enter(t){if(t.kind==="Document"){e=wA.EXECUTABLE;return}return Fqe.includes(t.kind)?(e=wA.TYPE_SYSTEM,Bv):!1}})}catch{return e}return e};function Vqe(i,e){return Bqe(i)}function Wqe(i,e,t=0){let n=null,s=null,r=null;const o=Oqe(i,(a,l,u,c)=>{if(!(c!==e.line||a.getCurrentPosition()+t<e.character+1))return n=u,s=Object.assign({},l),r=a.current(),"BREAK"});return{start:o.start,end:o.end,string:r||o.string,state:s||o.state,style:n||o.style}}function Hqe(i,e,t,n,s){const r=Wqe(i,e,1);if(!r)return null;const o=r.state.kind==="Invalid"?r.state.prevState:r.state;if(!o)return null;const a=Uqe(t,r.state),l=Vqe(i);return{token:r,state:o,typeInfo:a,mode:l}}function s0e(i,e,t){return t===y0.name&&i.getQueryType()===e?y0:t===v0.name&&i.getQueryType()===e?v0:t===C0.name&&Ju(e)?C0:"getFields"in e?e.getFields()[t]:null}function $qe(i,e){const t=[];let n=i;for(;n?.kind;)t.push(n),n=n.prevState;for(let s=t.length-1;s>=0;s--)e(t[s])}function Uqe(i,e){let t,n,s,r,o,a,l,u,c,d,h;return $qe(e,f=>{var g;switch(f.kind){case Oo.QUERY:case"ShortQuery":d=i.getQueryType();break;case Oo.MUTATION:d=i.getMutationType();break;case Oo.SUBSCRIPTION:d=i.getSubscriptionType();break;case Oo.INLINE_FRAGMENT:case Oo.FRAGMENT_DEFINITION:f.type&&(d=i.getType(f.type));break;case Oo.FIELD:case Oo.ALIASED_FIELD:{!d||!f.name?o=null:(o=c?s0e(i,c,f.name):null,d=o?o.type:null);break}case Oo.SELECTION_SET:c=ao(d);break;case Oo.DIRECTIVE:s=f.name?i.getDirective(f.name):null;break;case Oo.INTERFACE_DEF:f.name&&(l=null,h=new Uh({name:f.name,interfaces:[],fields:{}}));break;case Oo.OBJECT_TYPE_DEF:f.name&&(h=null,l=new yl({name:f.name,interfaces:[],fields:{}}));break;case Oo.ARGUMENTS:{if(f.prevState)switch(f.prevState.kind){case Oo.FIELD:n=o&&o.args;break;case Oo.DIRECTIVE:n=s&&s.args;break;case Oo.ALIASED_FIELD:{const E=(g=f.prevState)===null||g===void 0?void 0:g.name;if(!E){n=null;break}const k=c?s0e(i,c,E):null;if(!k){n=null;break}n=k.args;break}default:n=null;break}else n=null;break}case Oo.ARGUMENT:if(n){for(let E=0;E<n.length;E++)if(n[E].name===f.name){t=n[E];break}}a=t?.type;break;case Oo.VARIABLE_DEFINITION:case Oo.VARIABLE:d=a;break;case Oo.ENUM_VALUE:const b=ao(a);r=b instanceof zh?b.getValues().find(E=>E.value===f.name):null;break;case Oo.LIST_VALUE:const y=ED(a);a=y instanceof La?y.ofType:null;break;case Oo.OBJECT_VALUE:const S=ao(a);u=S instanceof Jf?S.getFields():null;break;case Oo.OBJECT_FIELD:const x=f.name&&u?u[f.name]:null;a=x?.type,o=x,d=o?o.type:null;break;case Oo.NAMED_TYPE:f.name&&(d=i.getType(f.name));break}}),{argDef:t,argDefs:n,directiveDef:s,enumValue:r,fieldDef:o,inputType:a,objectFieldDefs:u,parentType:c,type:d,interfaceDef:h,objectTypeDef:l}}const zqe={ALIASED_FIELD:"AliasedField",ARGUMENTS:"Arguments",SHORT_QUERY:"ShortQuery",QUERY:"Query",MUTATION:"Mutation",SUBSCRIPTION:"Subscription",TYPE_CONDITION:"TypeCondition",INVALID:"Invalid",COMMENT:"Comment",SCHEMA_DEF:"SchemaDef",SCALAR_DEF:"ScalarDef",OBJECT_TYPE_DEF:"ObjectTypeDef",OBJECT_VALUE:"ObjectValue",LIST_VALUE:"ListValue",INTERFACE_DEF:"InterfaceDef",UNION_DEF:"UnionDef",ENUM_DEF:"EnumDef",ENUM_VALUE:"EnumValue",FIELD_DEF:"FieldDef",INPUT_DEF:"InputDef",INPUT_VALUE_DEF:"InputValueDef",ARGUMENTS_DEF:"ArgumentsDef",EXTEND_DEF:"ExtendDef",EXTENSION_DEFINITION:"ExtensionDefinition",DIRECTIVE_DEF:"DirectiveDef",IMPLEMENTS:"Implements",VARIABLE_DEFINITIONS:"VariableDefinitions",TYPE:"Type",VARIABLE:"Variable"},Oo=Object.assign(Object.assign({},X),zqe);var us;(function(i){i.Text=1,i.Method=2,i.Function=3,i.Constructor=4,i.Field=5,i.Variable=6,i.Class=7,i.Interface=8,i.Module=9,i.Property=10,i.Unit=11,i.Value=12,i.Enum=13,i.Keyword=14,i.Snippet=15,i.Color=16,i.File=17,i.Reference=18,i.Folder=19,i.EnumMember=20,i.Constant=21,i.Struct=22,i.Event=23,i.Operator=24,i.TypeParameter=25})(us||(us={})),us.Function,us.Function,us.Function,us.Function,us.Function,us.Function,us.Function,us.Function,us.Function,us.Function,us.Constructor;var SA={exports:{}},r0e;function jqe(){if(r0e)return SA.exports;r0e=1;function i(e,t){if(e!=null)return e;var n=new Error(t!==void 0?t:"Got unexpected "+e);throw n.framesToPop=1,n}return SA.exports=i,SA.exports.default=i,Object.defineProperty(SA.exports,"__esModule",{value:!0}),SA.exports}var qqe=jqe();const o0e=u0(qqe),Gqe=(i,e)=>{if(!e)return[];const t=new Map,n=new Set;Xo(i,{FragmentDefinition(o){t.set(o.name.value,!0)},FragmentSpread(o){n.has(o.name.value)||n.add(o.name.value)}});const s=new Set;for(const o of n)!t.has(o)&&e.has(o)&&s.add(o0e(e.get(o)));const r=[];for(const o of s)Xo(o,{FragmentSpread(a){!n.has(a.name.value)&&e.get(a.name.value)&&(s.add(o0e(e.get(a.name.value))),n.add(a.name.value))}}),t.has(o.name.value)||r.push(o);return r};let Kqe=class{constructor(e,t){this.lessThanOrEqualTo=n=>this.line<n.line||this.line===n.line&&this.character<=n.character,this.line=e,this.character=t}setLine(e){this.line=e}setCharacter(e){this.character=e}};function Yqe(i,e){const t=Object.create(null);for(const n of e.definitions)if(n.kind==="OperationDefinition"){const{variableDefinitions:s}=n;if(s)for(const{variable:r,type:o}of s){const a=Cl(i,o);a?t[r.name.value]=a:o.kind===X.NAMED_TYPE&&o.name.value==="Float"&&(t[r.name.value]=sA)}}return t}function Xqe(i,e){const t=e?Yqe(e,i):void 0,n=[];return Xo(i,{OperationDefinition(s){n.push(s)}}),{variableToType:t,operations:n}}function Qqe(i,e){if(e)try{const t=Uc(e);return Object.assign(Object.assign({},Xqe(t,i)),{documentAST:t})}catch{}}/*!
|
|
297
|
-
* is-primitive <https://github.com/jonschlinkert/is-primitive>
|
|
298
|
-
*
|
|
299
|
-
* Copyright (c) 2014-present, Jon Schlinkert.
|
|
300
|
-
* Released under the MIT License.
|
|
301
|
-
*/var Lq,a0e;function Zqe(){return a0e||(a0e=1,Lq=function(e){return typeof e=="object"?e===null:typeof e!="function"}),Lq}/*!
|
|
302
|
-
* isobject <https://github.com/jonschlinkert/isobject>
|
|
303
|
-
*
|
|
304
|
-
* Copyright (c) 2014-2017, Jon Schlinkert.
|
|
305
|
-
* Released under the MIT License.
|
|
306
|
-
*/var Aq,l0e;function u0e(){return l0e||(l0e=1,Aq=function(e){return e!=null&&typeof e=="object"&&Array.isArray(e)===!1}),Aq}/*!
|
|
307
|
-
* is-plain-object <https://github.com/jonschlinkert/is-plain-object>
|
|
308
|
-
*
|
|
309
|
-
* Copyright (c) 2014-2017, Jon Schlinkert.
|
|
310
|
-
* Released under the MIT License.
|
|
311
|
-
*/var Nq,c0e;function Jqe(){if(c0e)return Nq;c0e=1;var i=u0e();function e(t){return i(t)===!0&&Object.prototype.toString.call(t)==="[object Object]"}return Nq=function(n){var s,r;return!(e(n)===!1||(s=n.constructor,typeof s!="function")||(r=s.prototype,e(r)===!1)||r.hasOwnProperty("isPrototypeOf")===!1)},Nq}/*!
|
|
312
|
-
* set-value <https://github.com/jonschlinkert/set-value>
|
|
313
|
-
*
|
|
314
|
-
* Copyright (c) Jon Schlinkert (https://github.com/jonschlinkert).
|
|
315
|
-
* Released under the MIT License.
|
|
316
|
-
*/var Iq,d0e;function eGe(){if(d0e)return Iq;d0e=1;const{deleteProperty:i}=Reflect,e=Zqe(),t=Jqe(),n=f=>typeof f=="object"&&f!==null||typeof f=="function",s=f=>f==="__proto__"||f==="constructor"||f==="prototype",r=f=>{if(!e(f))throw new TypeError("Object keys must be strings or symbols");if(s(f))throw new Error(`Cannot set unsafe key: "${f}"`)},o=f=>Array.isArray(f)?f.flat().map(String).join(","):f,a=(f,g)=>{if(typeof f!="string"||!g)return f;let b=f+";";return g.arrays!==void 0&&(b+=`arrays=${g.arrays};`),g.separator!==void 0&&(b+=`separator=${g.separator};`),g.split!==void 0&&(b+=`split=${g.split};`),g.merge!==void 0&&(b+=`merge=${g.merge};`),g.preservePaths!==void 0&&(b+=`preservePaths=${g.preservePaths};`),b},l=(f,g,b)=>{const y=o(g?a(f,g):f);r(y);const S=h.cache.get(y)||b();return h.cache.set(y,S),S},u=(f,g={})=>{const b=g.separator||".",y=b==="/"?!1:g.preservePaths;if(typeof f=="string"&&y!==!1&&/\//.test(f))return[f];const S=[];let x="";const E=k=>{let A;k.trim()!==""&&Number.isInteger(A=Number(k))?S.push(A):S.push(k)};for(let k=0;k<f.length;k++){const A=f[k];if(A==="\\"){x+=f[++k];continue}if(A===b){E(x),x="";continue}x+=A}return x&&E(x),S},c=(f,g)=>g&&typeof g.split=="function"?g.split(f):typeof f=="symbol"?[f]:Array.isArray(f)?f:l(f,g,()=>u(f,g)),d=(f,g,b,y)=>{if(r(g),b===void 0)i(f,g);else if(y&&y.merge){const S=y.merge==="function"?y.merge:Object.assign;S&&t(f[g])&&t(b)?f[g]=S(f[g],b):f[g]=b}else f[g]=b;return f},h=(f,g,b,y)=>{if(!g||!n(f))return f;const S=c(g,y);let x=f;for(let E=0;E<S.length;E++){const k=S[E],A=S[E+1];if(r(k),A===void 0){d(x,k,b,y);break}if(typeof A=="number"&&!Array.isArray(x[k])){x=x[k]=[];continue}n(x[k])||(x[k]={}),x=x[k]}return f};return h.split=c,h.cache=new Map,h.clear=()=>{h.cache=new Map},Iq=h,Iq}var tGe=eGe();const Pq=u0(tGe);/*!
|
|
317
|
-
* get-value <https://github.com/jonschlinkert/get-value>
|
|
318
|
-
*
|
|
319
|
-
* Copyright (c) 2014-2018, Jon Schlinkert.
|
|
320
|
-
* Released under the MIT License.
|
|
321
|
-
*/var Mq,h0e;function iGe(){if(h0e)return Mq;h0e=1;const i=u0e();Mq=function(r,o,a){if(i(a)||(a={default:a}),!s(r))return typeof a.default<"u"?a.default:r;typeof o=="number"&&(o=String(o));const l=Array.isArray(o),u=typeof o=="string",c=a.separator||".",d=a.joinChar||(typeof c=="string"?c:".");if(!u&&!l)return r;if(u&&o in r)return n(o,r,a)?r[o]:a.default;let h=l?o:t(o,c,a),f=h.length,g=0;do{let b=h[g];for(typeof b=="number"&&(b=String(b));b&&b.slice(-1)==="\\";)b=e([b.slice(0,-1),h[++g]||""],d,a);if(b in r){if(!n(b,r,a))return a.default;r=r[b]}else{let y=!1,S=g+1;for(;S<f;)if(b=e([b,h[S++]],d,a),y=b in r){if(!n(b,r,a))return a.default;r=r[b],g=S-1;break}if(!y)return a.default}}while(++g<f&&s(r));return g===f?r:a.default};function e(r,o,a){return typeof a.join=="function"?a.join(r):r[0]+o+r[1]}function t(r,o,a){return typeof a.split=="function"?a.split(r):r.split(o)}function n(r,o,a){return typeof a.isValid=="function"?a.isValid(r,o):!0}function s(r){return i(r)||Array.isArray(r)||typeof r=="function"}return Mq}var nGe=iGe();const sGe=u0(nGe),rGe=i=>(e,t)=>{function n(){const{queryEditor:s,schema:r,getDefaultFieldNames:o}=t();if(!s)return;const a=s.getValue(),{insertions:l,result:u=""}=Xje(r,a,o);if(!l.length)return u;const c=s.getModel(),d=s.getSelection(),h=c.getOffsetAt(d.getPosition());c.setValue(u);let f=0;const g=l.map(({index:x,string:E})=>{const k=c.getPositionAt(x+f),A=c.getPositionAt(x+(f+=E.length));return{range:new U(k.lineNumber,k.column,A.lineNumber,A.column),options:{className:"auto-inserted-leaf",hoverMessage:{value:"Automatically added leaf fields"},isWholeLine:!1}}}),b=s.createDecorationsCollection([]);b.set(g),setTimeout(()=>{b.clear()},7e3);let y=h;for(const{index:x,string:E}of l)x<h&&(y+=E.length);const S=c.getPositionAt(y);return s.setPosition(S),u}return{...i,isFetching:!1,subscription:null,queryId:0,actions:{stop(){e(({subscription:s})=>(s?.unsubscribe(),{isFetching:!1,subscription:null}))},async run(){const{externalFragments:s,headerEditor:r,queryEditor:o,responseEditor:a,variableEditor:l,actions:u,operationName:c,documentAST:d,subscription:h,overrideOperationName:f,queryId:g,fetcher:b}=t();if(!o||!a)return;if(h){u.stop();return}function y(M){a?.setValue(M),u.updateActiveTabValues({response:M})}function S(M,B){if(!B)return;y(_A({message:`${B===l?"Variables":"Request headers"} ${M.message}`}))}const x=g+1;e({queryId:x});let E=n()||o.getValue(),k;try{k=dq(l?.getValue())}catch(M){S(M,l);return}let A;try{A=dq(r?.getValue())}catch(M){S(M,r);return}const I=d?Gqe(d,s):[];I.length&&(E+=`
|
|
245
|
+
`),n=Iqe();let s=n.startState(),r="",o=new t0e("");for(let a=0;a<t.length;a++){for(o=new t0e(t[a]);!o.eol()&&(r=n.token(o,s),e(o,s,r,a)!=="BREAK"););e(o,s,r,a),s.kind||(s=n.startState())}return{start:o.getStartOfToken(),end:o.getCurrentPosition(),string:o.current(),state:s,style:r}}var wA;(function(i){i.TYPE_SYSTEM="TYPE_SYSTEM",i.EXECUTABLE="EXECUTABLE",i.UNKNOWN="UNKNOWN"})(wA||(wA={}));const Fqe=[X.SCHEMA_DEFINITION,X.OPERATION_TYPE_DEFINITION,X.SCALAR_TYPE_DEFINITION,X.OBJECT_TYPE_DEFINITION,X.INTERFACE_TYPE_DEFINITION,X.UNION_TYPE_DEFINITION,X.ENUM_TYPE_DEFINITION,X.INPUT_OBJECT_TYPE_DEFINITION,X.DIRECTIVE_DEFINITION,X.SCHEMA_EXTENSION,X.SCALAR_TYPE_EXTENSION,X.OBJECT_TYPE_EXTENSION,X.INTERFACE_TYPE_EXTENSION,X.UNION_TYPE_EXTENSION,X.ENUM_TYPE_EXTENSION,X.INPUT_OBJECT_TYPE_EXTENSION],Bqe=i=>{let e=wA.UNKNOWN;if(i)try{Xo(Uc(i),{enter(t){if(t.kind==="Document"){e=wA.EXECUTABLE;return}return Fqe.includes(t.kind)?(e=wA.TYPE_SYSTEM,Bv):!1}})}catch{return e}return e};function Vqe(i,e){return Bqe(i)}function Wqe(i,e,t=0){let n=null,s=null,r=null;const o=Oqe(i,(a,l,u,c)=>{if(!(c!==e.line||a.getCurrentPosition()+t<e.character+1))return n=u,s=Object.assign({},l),r=a.current(),"BREAK"});return{start:o.start,end:o.end,string:r||o.string,state:s||o.state,style:n||o.style}}function Hqe(i,e,t,n,s){const r=Wqe(i,e,1);if(!r)return null;const o=r.state.kind==="Invalid"?r.state.prevState:r.state;if(!o)return null;const a=Uqe(t,r.state),l=Vqe(i);return{token:r,state:o,typeInfo:a,mode:l}}function s0e(i,e,t){return t===y0.name&&i.getQueryType()===e?y0:t===v0.name&&i.getQueryType()===e?v0:t===C0.name&&Ju(e)?C0:"getFields"in e?e.getFields()[t]:null}function $qe(i,e){const t=[];let n=i;for(;n?.kind;)t.push(n),n=n.prevState;for(let s=t.length-1;s>=0;s--)e(t[s])}function Uqe(i,e){let t,n,s,r,o,a,l,u,c,d,h;return $qe(e,f=>{var g;switch(f.kind){case Oo.QUERY:case"ShortQuery":d=i.getQueryType();break;case Oo.MUTATION:d=i.getMutationType();break;case Oo.SUBSCRIPTION:d=i.getSubscriptionType();break;case Oo.INLINE_FRAGMENT:case Oo.FRAGMENT_DEFINITION:f.type&&(d=i.getType(f.type));break;case Oo.FIELD:case Oo.ALIASED_FIELD:{!d||!f.name?o=null:(o=c?s0e(i,c,f.name):null,d=o?o.type:null);break}case Oo.SELECTION_SET:c=ao(d);break;case Oo.DIRECTIVE:s=f.name?i.getDirective(f.name):null;break;case Oo.INTERFACE_DEF:f.name&&(l=null,h=new Uh({name:f.name,interfaces:[],fields:{}}));break;case Oo.OBJECT_TYPE_DEF:f.name&&(h=null,l=new yl({name:f.name,interfaces:[],fields:{}}));break;case Oo.ARGUMENTS:{if(f.prevState)switch(f.prevState.kind){case Oo.FIELD:n=o&&o.args;break;case Oo.DIRECTIVE:n=s&&s.args;break;case Oo.ALIASED_FIELD:{const E=(g=f.prevState)===null||g===void 0?void 0:g.name;if(!E){n=null;break}const k=c?s0e(i,c,E):null;if(!k){n=null;break}n=k.args;break}default:n=null;break}else n=null;break}case Oo.ARGUMENT:if(n){for(let E=0;E<n.length;E++)if(n[E].name===f.name){t=n[E];break}}a=t?.type;break;case Oo.VARIABLE_DEFINITION:case Oo.VARIABLE:d=a;break;case Oo.ENUM_VALUE:const b=ao(a);r=b instanceof zh?b.getValues().find(E=>E.value===f.name):null;break;case Oo.LIST_VALUE:const y=ED(a);a=y instanceof La?y.ofType:null;break;case Oo.OBJECT_VALUE:const S=ao(a);u=S instanceof Jf?S.getFields():null;break;case Oo.OBJECT_FIELD:const x=f.name&&u?u[f.name]:null;a=x?.type,o=x,d=o?o.type:null;break;case Oo.NAMED_TYPE:f.name&&(d=i.getType(f.name));break}}),{argDef:t,argDefs:n,directiveDef:s,enumValue:r,fieldDef:o,inputType:a,objectFieldDefs:u,parentType:c,type:d,interfaceDef:h,objectTypeDef:l}}const zqe={ALIASED_FIELD:"AliasedField",ARGUMENTS:"Arguments",SHORT_QUERY:"ShortQuery",QUERY:"Query",MUTATION:"Mutation",SUBSCRIPTION:"Subscription",TYPE_CONDITION:"TypeCondition",INVALID:"Invalid",COMMENT:"Comment",SCHEMA_DEF:"SchemaDef",SCALAR_DEF:"ScalarDef",OBJECT_TYPE_DEF:"ObjectTypeDef",OBJECT_VALUE:"ObjectValue",LIST_VALUE:"ListValue",INTERFACE_DEF:"InterfaceDef",UNION_DEF:"UnionDef",ENUM_DEF:"EnumDef",ENUM_VALUE:"EnumValue",FIELD_DEF:"FieldDef",INPUT_DEF:"InputDef",INPUT_VALUE_DEF:"InputValueDef",ARGUMENTS_DEF:"ArgumentsDef",EXTEND_DEF:"ExtendDef",EXTENSION_DEFINITION:"ExtensionDefinition",DIRECTIVE_DEF:"DirectiveDef",IMPLEMENTS:"Implements",VARIABLE_DEFINITIONS:"VariableDefinitions",TYPE:"Type",VARIABLE:"Variable"},Oo=Object.assign(Object.assign({},X),zqe);var us;(function(i){i.Text=1,i.Method=2,i.Function=3,i.Constructor=4,i.Field=5,i.Variable=6,i.Class=7,i.Interface=8,i.Module=9,i.Property=10,i.Unit=11,i.Value=12,i.Enum=13,i.Keyword=14,i.Snippet=15,i.Color=16,i.File=17,i.Reference=18,i.Folder=19,i.EnumMember=20,i.Constant=21,i.Struct=22,i.Event=23,i.Operator=24,i.TypeParameter=25})(us||(us={})),us.Function,us.Function,us.Function,us.Function,us.Function,us.Function,us.Function,us.Function,us.Function,us.Function,us.Constructor;var SA={exports:{}},r0e;function jqe(){if(r0e)return SA.exports;r0e=1;function i(e,t){if(e!=null)return e;var n=new Error(t!==void 0?t:"Got unexpected "+e);throw n.framesToPop=1,n}return SA.exports=i,SA.exports.default=i,Object.defineProperty(SA.exports,"__esModule",{value:!0}),SA.exports}var qqe=jqe();const o0e=u0(qqe),Gqe=(i,e)=>{if(!e)return[];const t=new Map,n=new Set;Xo(i,{FragmentDefinition(o){t.set(o.name.value,!0)},FragmentSpread(o){n.has(o.name.value)||n.add(o.name.value)}});const s=new Set;for(const o of n)!t.has(o)&&e.has(o)&&s.add(o0e(e.get(o)));const r=[];for(const o of s)Xo(o,{FragmentSpread(a){!n.has(a.name.value)&&e.get(a.name.value)&&(s.add(o0e(e.get(a.name.value))),n.add(a.name.value))}}),t.has(o.name.value)||r.push(o);return r};let Kqe=class{constructor(e,t){this.lessThanOrEqualTo=n=>this.line<n.line||this.line===n.line&&this.character<=n.character,this.line=e,this.character=t}setLine(e){this.line=e}setCharacter(e){this.character=e}};function Yqe(i,e){const t=Object.create(null);for(const n of e.definitions)if(n.kind==="OperationDefinition"){const{variableDefinitions:s}=n;if(s)for(const{variable:r,type:o}of s){const a=Cl(i,o);a?t[r.name.value]=a:o.kind===X.NAMED_TYPE&&o.name.value==="Float"&&(t[r.name.value]=sA)}}return t}function Xqe(i,e){const t=e?Yqe(e,i):void 0,n=[];return Xo(i,{OperationDefinition(s){n.push(s)}}),{variableToType:t,operations:n}}function Qqe(i,e){if(e)try{const t=Uc(e);return Object.assign(Object.assign({},Xqe(t,i)),{documentAST:t})}catch{}}var Lq,a0e;function Zqe(){return a0e||(a0e=1,Lq=function(e){return typeof e=="object"?e===null:typeof e!="function"}),Lq}var Aq,l0e;function u0e(){return l0e||(l0e=1,Aq=function(e){return e!=null&&typeof e=="object"&&Array.isArray(e)===!1}),Aq}var Nq,c0e;function Jqe(){if(c0e)return Nq;c0e=1;var i=u0e();function e(t){return i(t)===!0&&Object.prototype.toString.call(t)==="[object Object]"}return Nq=function(n){var s,r;return!(e(n)===!1||(s=n.constructor,typeof s!="function")||(r=s.prototype,e(r)===!1)||r.hasOwnProperty("isPrototypeOf")===!1)},Nq}var Iq,d0e;function eGe(){if(d0e)return Iq;d0e=1;const{deleteProperty:i}=Reflect,e=Zqe(),t=Jqe(),n=f=>typeof f=="object"&&f!==null||typeof f=="function",s=f=>f==="__proto__"||f==="constructor"||f==="prototype",r=f=>{if(!e(f))throw new TypeError("Object keys must be strings or symbols");if(s(f))throw new Error(`Cannot set unsafe key: "${f}"`)},o=f=>Array.isArray(f)?f.flat().map(String).join(","):f,a=(f,g)=>{if(typeof f!="string"||!g)return f;let b=f+";";return g.arrays!==void 0&&(b+=`arrays=${g.arrays};`),g.separator!==void 0&&(b+=`separator=${g.separator};`),g.split!==void 0&&(b+=`split=${g.split};`),g.merge!==void 0&&(b+=`merge=${g.merge};`),g.preservePaths!==void 0&&(b+=`preservePaths=${g.preservePaths};`),b},l=(f,g,b)=>{const y=o(g?a(f,g):f);r(y);const S=h.cache.get(y)||b();return h.cache.set(y,S),S},u=(f,g={})=>{const b=g.separator||".",y=b==="/"?!1:g.preservePaths;if(typeof f=="string"&&y!==!1&&/\//.test(f))return[f];const S=[];let x="";const E=k=>{let A;k.trim()!==""&&Number.isInteger(A=Number(k))?S.push(A):S.push(k)};for(let k=0;k<f.length;k++){const A=f[k];if(A==="\\"){x+=f[++k];continue}if(A===b){E(x),x="";continue}x+=A}return x&&E(x),S},c=(f,g)=>g&&typeof g.split=="function"?g.split(f):typeof f=="symbol"?[f]:Array.isArray(f)?f:l(f,g,()=>u(f,g)),d=(f,g,b,y)=>{if(r(g),b===void 0)i(f,g);else if(y&&y.merge){const S=y.merge==="function"?y.merge:Object.assign;S&&t(f[g])&&t(b)?f[g]=S(f[g],b):f[g]=b}else f[g]=b;return f},h=(f,g,b,y)=>{if(!g||!n(f))return f;const S=c(g,y);let x=f;for(let E=0;E<S.length;E++){const k=S[E],A=S[E+1];if(r(k),A===void 0){d(x,k,b,y);break}if(typeof A=="number"&&!Array.isArray(x[k])){x=x[k]=[];continue}n(x[k])||(x[k]={}),x=x[k]}return f};return h.split=c,h.cache=new Map,h.clear=()=>{h.cache=new Map},Iq=h,Iq}var tGe=eGe();const Pq=u0(tGe);var Mq,h0e;function iGe(){if(h0e)return Mq;h0e=1;const i=u0e();Mq=function(r,o,a){if(i(a)||(a={default:a}),!s(r))return typeof a.default<"u"?a.default:r;typeof o=="number"&&(o=String(o));const l=Array.isArray(o),u=typeof o=="string",c=a.separator||".",d=a.joinChar||(typeof c=="string"?c:".");if(!u&&!l)return r;if(u&&o in r)return n(o,r,a)?r[o]:a.default;let h=l?o:t(o,c,a),f=h.length,g=0;do{let b=h[g];for(typeof b=="number"&&(b=String(b));b&&b.slice(-1)==="\\";)b=e([b.slice(0,-1),h[++g]||""],d,a);if(b in r){if(!n(b,r,a))return a.default;r=r[b]}else{let y=!1,S=g+1;for(;S<f;)if(b=e([b,h[S++]],d,a),y=b in r){if(!n(b,r,a))return a.default;r=r[b],g=S-1;break}if(!y)return a.default}}while(++g<f&&s(r));return g===f?r:a.default};function e(r,o,a){return typeof a.join=="function"?a.join(r):r[0]+o+r[1]}function t(r,o,a){return typeof a.split=="function"?a.split(r):r.split(o)}function n(r,o,a){return typeof a.isValid=="function"?a.isValid(r,o):!0}function s(r){return i(r)||Array.isArray(r)||typeof r=="function"}return Mq}var nGe=iGe();const sGe=u0(nGe),rGe=i=>(e,t)=>{function n(){const{queryEditor:s,schema:r,getDefaultFieldNames:o}=t();if(!s)return;const a=s.getValue(),{insertions:l,result:u=""}=Xje(r,a,o);if(!l.length)return u;const c=s.getModel(),d=s.getSelection(),h=c.getOffsetAt(d.getPosition());c.setValue(u);let f=0;const g=l.map(({index:x,string:E})=>{const k=c.getPositionAt(x+f),A=c.getPositionAt(x+(f+=E.length));return{range:new U(k.lineNumber,k.column,A.lineNumber,A.column),options:{className:"auto-inserted-leaf",hoverMessage:{value:"Automatically added leaf fields"},isWholeLine:!1}}}),b=s.createDecorationsCollection([]);b.set(g),setTimeout(()=>{b.clear()},7e3);let y=h;for(const{index:x,string:E}of l)x<h&&(y+=E.length);const S=c.getPositionAt(y);return s.setPosition(S),u}return{...i,isFetching:!1,subscription:null,queryId:0,actions:{stop(){e(({subscription:s})=>(s?.unsubscribe(),{isFetching:!1,subscription:null}))},async run(){const{externalFragments:s,headerEditor:r,queryEditor:o,responseEditor:a,variableEditor:l,actions:u,operationName:c,documentAST:d,subscription:h,overrideOperationName:f,queryId:g,fetcher:b}=t();if(!o||!a)return;if(h){u.stop();return}function y(M){a?.setValue(M),u.updateActiveTabValues({response:M})}function S(M,B){if(!B)return;y(_A({message:`${B===l?"Variables":"Request headers"} ${M.message}`}))}const x=g+1;e({queryId:x});let E=n()||o.getValue(),k;try{k=dq(l?.getValue())}catch(M){S(M,l);return}let A;try{A=dq(r?.getValue())}catch(M){S(M,r);return}const I=d?Gqe(d,s):[];I.length&&(E+=`
|
|
322
246
|
`+I.map(M=>Vs(M)).join(`
|
|
323
247
|
`)),y(""),e({isFetching:!0});try{const M={},B=ee=>{if(x!==t().queryId)return;let Z=Array.isArray(ee)?ee:!1;if(!Z&&typeof ee=="object"&&"hasNext"in ee&&(Z=[ee]),Z){for(const K of Z)f0e(M,K);e({isFetching:!1}),y(oq(M))}else e({isFetching:!1}),y(oq(ee))},q=await b({query:E,variables:k,operationName:f??c},{headers:A,documentAST:d});if(Afe(q)){const ee=q.subscribe({next(Z){B(Z)},error(Z){e({isFetching:!1}),y(_A(Z)),e({subscription:null})},complete(){e({isFetching:!1,subscription:null})}});e({subscription:ee})}else if(Nfe(q)){e({subscription:{unsubscribe:()=>{var Z,K;return(K=(Z=q[Symbol.asyncIterator]()).return)==null?void 0:K.call(Z)}}});for await(const Z of q)B(Z);e({isFetching:!1,subscription:null})}else B(q)}catch(M){e({isFetching:!1}),y(_A(M)),e({subscription:null})}}}}},xA=new WeakMap;function f0e(i,e){var t,n,s;let r=["data",...e.path??[]];for(const u of[i,e])if(u.pending){let c=xA.get(i);c===void 0&&(c=new Map,xA.set(i,c));for(const{id:d,path:h}of u.pending)c.set(d,["data",...h])}const{items:o,data:a,id:l}=e;if(o)if(l){if(r=(t=xA.get(i))==null?void 0:t.get(l),r===void 0)throw new Error("Invalid incremental delivery format.");sGe(i,r.join(".")).push(...o)}else{r=["data",...e.path??[]];for(const u of o)Pq(i,r.join("."),u),r[r.length-1]++}if(a){if(l){if(r=(n=xA.get(i))==null?void 0:n.get(l),r===void 0)throw new Error("Invalid incremental delivery format.");const{subPath:u}=e;u!==void 0&&(r=[...r,...u])}Pq(i,r.join("."),a,{merge:!0})}if(e.errors&&(i.errors||(i.errors=[]),i.errors.push(...e.errors)),e.extensions&&Pq(i,"extensions",e.extensions,{merge:!0}),e.incremental)for(const u of e.incremental)f0e(i,u);if(e.completed)for(const{id:u,errors:c}of e.completed)(s=xA.get(i))==null||s.delete(u),c&&(i.errors||(i.errors=[]),i.errors.push(...c))}const oGe=i=>e=>({plugins:[],visiblePlugin:null,...i,actions:{setVisiblePlugin(t=null){e(n=>{const{visiblePlugin:s,plugins:r,onTogglePluginVisibility:o,storage:a}=n,l=typeof t=="string",u=t&&r.find(c=>(l?c.title:c)===t)||null;return u===s?n:(o?.(u),a.set(Yo.visiblePlugin,u?.title??""),{visiblePlugin:u})})},setPlugins(t){const n=new Set,s="All GraphiQL plugins must have a unique title";for(const{title:r}of t){if(typeof r!="string"||!r)throw new Error(s);if(n.has(r))throw new Error(`${s}, found two plugins with the title '${r}'`);n.add(r)}e({plugins:t})}}}),aGe=i=>(e,t)=>({...i,fetchError:null,isIntrospecting:!1,schema:null,validationErrors:[],schemaReference:null,requestCounter:0,shouldIntrospect:!0,actions:{setSchemaReference(n){e({schemaReference:n})},async introspect(){const{requestCounter:n,shouldIntrospect:s,onSchemaChange:r,headerEditor:o,fetcher:a,inputValueDeprecation:l,introspectionQueryName:u,schemaDescription:c}=t();if(!s)return;const d=n+1;e({requestCounter:d,isIntrospecting:!0,fetchError:null});try{let h=function(k){const A=iUe(a({query:k,operationName:u},g));if(!J$e(A))throw new TypeError("Fetcher did not return a Promise for introspection.");return A},f;try{f=dq(o?.getValue())}catch(k){throw new Error(`Introspection failed. Request headers ${k instanceof Error?k.message:k}`)}const g=f?{headers:f}:{},b=D3({inputValueDeprecation:l,schemaDescription:c}),y=u==="IntrospectionQuery"?b:b.replace("query IntrospectionQuery",`query ${u}`);let S=await h(y);(typeof S!="object"||!("data"in S))&&(S=await h(b.replace("subscriptionType { name }",""))),e({isIntrospecting:!1});let x;if(S.data&&"__schema"in S.data)x=S.data;else{const k=typeof S=="string"?S:oq(S);e({fetchError:k})}if(d!==t().requestCounter||!x)return;const E=Zj(x);e({schema:E}),r?.(E)}catch(h){if(d!==t().requestCounter)return;h instanceof Error&&delete h.stack,e({isIntrospecting:!1,fetchError:_A(h)})}}}}),lGe=({editorTheme:i})=>(e,t)=>({theme:null,actions:{setTheme(n){const{storage:s}=t();s.set(Yo.theme,n??""),document.body.classList.remove("graphiql-light","graphiql-dark"),n&&document.body.classList.add(`graphiql-${n}`);const{monaco:r}=A3.getState(),o=n??uGe(),a=i[o];r?.editor.setTheme(a),e({theme:n,monacoTheme:a})}}});function uGe(){return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}const p0e=O.createContext(null),cGe=i=>{const e=Ai.c(5);if(!i.fetcher)throw new TypeError("The `GraphiQLProvider` component requires a `fetcher` function to be passed as prop.");if(i.validationRules)throw new TypeError("The `validationRules` prop has been removed. Use custom GraphQL worker, see https://github.com/graphql/graphiql/tree/main/packages/monaco-graphql#custom-webworker-for-passing-non-static-config-to-worker.");if(i.query)throw new TypeError(`The \`query\` prop has been removed. Use \`initialQuery\` prop instead, or set value programmatically using:
|
|
324
248
|
|
|
@@ -411,15 +335,7 @@ For more information, see https://radix-ui.com/primitives/docs/components/${e.do
|
|
|
411
335
|
`))}else{let h=c.props,f=h?.className,g=typeof f=="function"?(...S)=>swe(f(...S),l.className):swe(f,l.className),b=g?{className:g}:{},y=rwe(c.props,lC(vY(l,["ref"])));for(let S in d)S in y&&delete d[S];return O.cloneElement(c,Object.assign({},y,d,u,{ref:s(zot(c),u.ref)},b))}return O.createElement(r,Object.assign({},vY(l,["ref"]),!Z4(r)&&u,!Z4(r)&&d),c)}function $ot(){let i=O.useRef([]),e=O.useCallback(t=>{for(let n of i.current)n!=null&&(typeof n=="function"?n(t):n.current=t)},[]);return(...t)=>{if(!t.every(n=>n==null))return i.current=t,e}}function Uot(...i){return i.every(e=>e==null)?void 0:e=>{for(let t of i)t!=null&&(typeof t=="function"?t(e):t.current=e)}}function rwe(...i){if(i.length===0)return{};if(i.length===1)return i[0];let e={},t={};for(let n of i)for(let s in n)s.startsWith("on")&&typeof n[s]=="function"?(t[s]!=null||(t[s]=[]),t[s].push(n[s])):e[s]=n[s];if(e.disabled||e["aria-disabled"])for(let n in t)/^(on(?:Click|Pointer|Mouse|Key)(?:Down|Up|Press)?)$/.test(n)&&(t[n]=[s=>{var r;return(r=s?.preventDefault)==null?void 0:r.call(s)}]);for(let n in t)Object.assign(e,{[n](s,...r){let o=t[n];for(let a of o){if((s instanceof Event||s?.nativeEvent instanceof Event)&&s.defaultPrevented)return;a(s,...r)}}});return e}function yY(...i){if(i.length===0)return{};if(i.length===1)return i[0];let e={},t={};for(let n of i)for(let s in n)s.startsWith("on")&&typeof n[s]=="function"?(t[s]!=null||(t[s]=[]),t[s].push(n[s])):e[s]=n[s];for(let n in t)Object.assign(e,{[n](...s){let r=t[n];for(let o of r)o?.(...s)}});return e}function cp(i){var e;return Object.assign(O.forwardRef(i),{displayName:(e=i.displayName)!=null?e:i.name})}function lC(i){let e=Object.assign({},i);for(let t in e)e[t]===void 0&&delete e[t];return e}function vY(i,e=[]){let t=Object.assign({},i);for(let n of e)n in t&&delete t[n];return t}function zot(i){return xn.version.split(".")[0]>="19"?i.props.ref:i.ref}function Z4(i){return i===O.Fragment||i===Symbol.for("react.fragment")}function jot(i){return Z4(i.type)}function qot(i,e,t){let[n,s]=O.useState(t),r=i!==void 0,o=O.useRef(r),a=O.useRef(!1),l=O.useRef(!1);return r&&!o.current&&!a.current?(a.current=!0,o.current=r,console.error("A component is changing from uncontrolled to controlled. This may be caused by the value changing from undefined to a defined value, which should not happen.")):!r&&o.current&&!l.current&&(l.current=!0,o.current=r,console.error("A component is changing from controlled to uncontrolled. This may be caused by the value changing from a defined value to undefined, which should not happen.")),[r?i:n,ks(u=>(r||ku.flushSync(()=>s(u)),e?.(u)))]}function Got(i){let[e]=O.useState(i);return e}function owe(i={},e=null,t=[]){for(let[n,s]of Object.entries(i))lwe(t,awe(e,n),s);return t}function awe(i,e){return i?i+"["+e+"]":e}function lwe(i,e,t){if(Array.isArray(t))for(let[n,s]of t.entries())lwe(i,awe(e,n.toString()),s);else t instanceof Date?i.push([e,t.toISOString()]):typeof t=="boolean"?i.push([e,t?"1":"0"]):typeof t=="string"?i.push([e,t]):typeof t=="number"?i.push([e,`${t}`]):t==null?i.push([e,""]):Kot(t)&&!O.isValidElement(t)&&owe(t,e,i)}function Kot(i){if(Object.prototype.toString.call(i)!=="[object Object]")return!1;let e=Object.getPrototypeOf(i);return e===null||Object.getPrototypeOf(e)===null}let Yot="span";var CY=(i=>(i[i.None=1]="None",i[i.Focusable=2]="Focusable",i[i.Hidden=4]="Hidden",i))(CY||{});function Xot(i,e){var t;let{features:n=1,...s}=i,r={ref:e,"aria-hidden":(n&2)===2?!0:(t=s["aria-hidden"])!=null?t:void 0,hidden:(n&4)===4?!0:void 0,style:{position:"fixed",top:1,left:1,width:1,height:0,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0",...(n&4)===4&&(n&2)!==2&&{display:"none"}}};return up()({ourProps:r,theirProps:s,slot:{},defaultTag:Yot,name:"Hidden"})}let uwe=cp(Xot),Qot=O.createContext(null);function Zot({children:i}){let e=O.useContext(Qot);if(!e)return xn.createElement(xn.Fragment,null,i);let{target:t}=e;return t?ku.createPortal(xn.createElement(xn.Fragment,null,i),t):null}function Jot({data:i,form:e,disabled:t,onReset:n,overrides:s}){let[r,o]=O.useState(null),a=uE();return O.useEffect(()=>{if(n&&r)return a.addEventListener(r,"reset",n)},[r,e,n]),xn.createElement(Zot,null,xn.createElement(eat,{setForm:o,formId:e}),owe(i).map(([l,u])=>xn.createElement(uwe,{features:CY.Hidden,...lC({key:l,as:"input",type:"hidden",hidden:!0,readOnly:!0,form:e,disabled:t,name:l,value:u,...s})})))}function eat({setForm:i,formId:e}){return O.useEffect(()=>{if(e){let t=document.getElementById(e);t&&i(t)}},[i,e]),e?null:xn.createElement(uwe,{features:CY.Hidden,as:"input",type:"hidden",hidden:!0,readOnly:!0,ref:t=>{if(!t)return;let n=t.closest("form");n&&i(n)}})}let tat=O.createContext(void 0);function cwe(){return O.useContext(tat)}function dwe(i){return typeof i!="object"||i===null?!1:"nodeType"in i}function J4(i){return dwe(i)&&"tagName"in i}function Jb(i){return J4(i)&&"accessKey"in i}function uC(i){return J4(i)&&"tabIndex"in i}function iat(i){return J4(i)&&"style"in i}function nat(i){return Jb(i)&&i.nodeName==="IFRAME"}function e5(i){return Jb(i)&&i.nodeName==="INPUT"}function hwe(i){return Jb(i)&&i.nodeName==="LABEL"}function sat(i){return Jb(i)&&i.nodeName==="FIELDSET"}function fwe(i){return Jb(i)&&i.nodeName==="LEGEND"}function rat(i){return J4(i)?i.matches('a[href],audio[controls],button,details,embed,iframe,img[usemap],input:not([type="hidden"]),label,select,textarea,video[controls]'):!1}function pwe(i){let e=i.parentElement,t=null;for(;e&&!sat(e);)fwe(e)&&(t=e),e=e.parentElement;let n=e?.getAttribute("disabled")==="";return n&&oat(t)?!1:n}function oat(i){if(!i)return!1;let e=i.previousElementSibling;for(;e!==null;){if(fwe(e))return!1;e=e.previousElementSibling}return!0}let gwe=Symbol();function aat(i,e=!0){return Object.assign(i,{[gwe]:e})}function A0(...i){let e=O.useRef(i);O.useEffect(()=>{e.current=i},[i]);let t=ks(n=>{for(let s of e.current)s!=null&&(typeof s=="function"?s(n):s.current=n)});return i.every(n=>n==null||n?.[gwe])?void 0:t}let wY=O.createContext(null);wY.displayName="DescriptionContext";function mwe(){let i=O.useContext(wY);if(i===null){let e=new Error("You used a <Description /> component, but it is not inside a relevant parent.");throw Error.captureStackTrace&&Error.captureStackTrace(e,mwe),e}return i}function lat(){var i,e;return(e=(i=O.useContext(wY))==null?void 0:i.value)!=null?e:void 0}let uat="p";function cat(i,e){let t=O.useId(),n=_Y(),{id:s=`headlessui-description-${t}`,...r}=i,o=mwe(),a=A0(e);Ia(()=>o.register(s),[s,o.register]);let l=aC({...o.slot,disabled:n||!1}),u={ref:a,...o.props,id:s};return up()({ourProps:u,theirProps:r,slot:l,defaultTag:uat,name:o.name||"Description"})}let dat=cp(cat);Object.assign(dat,{});var nc=(i=>(i.Space=" ",i.Enter="Enter",i.Escape="Escape",i.Backspace="Backspace",i.Delete="Delete",i.ArrowLeft="ArrowLeft",i.ArrowUp="ArrowUp",i.ArrowRight="ArrowRight",i.ArrowDown="ArrowDown",i.Home="Home",i.End="End",i.PageUp="PageUp",i.PageDown="PageDown",i.Tab="Tab",i))(nc||{});let t5=O.createContext(null);t5.displayName="LabelContext";function _we(){let i=O.useContext(t5);if(i===null){let e=new Error("You used a <Label /> component, but it is not inside a relevant parent.");throw Error.captureStackTrace&&Error.captureStackTrace(e,_we),e}return i}function i5(i){var e,t,n;let s=(t=(e=O.useContext(t5))==null?void 0:e.value)!=null?t:void 0;return((n=i?.length)!=null?n:0)>0?[s,...i].filter(Boolean).join(" "):s}function hat({inherit:i=!1}={}){let e=i5(),[t,n]=O.useState([]),s=i?[e,...t].filter(Boolean):t;return[s.length>0?s.join(" "):void 0,O.useMemo(()=>function(r){let o=ks(l=>(n(u=>[...u,l]),()=>n(u=>{let c=u.slice(),d=c.indexOf(l);return d!==-1&&c.splice(d,1),c}))),a=O.useMemo(()=>({register:o,slot:r.slot,name:r.name,props:r.props,value:r.value}),[o,r.slot,r.name,r.props,r.value]);return xn.createElement(t5.Provider,{value:a},r.children)},[n])]}let fat="label";function pat(i,e){var t;let n=O.useId(),s=_we(),r=cwe(),o=_Y(),{id:a=`headlessui-label-${n}`,htmlFor:l=r??((t=s.props)==null?void 0:t.htmlFor),passive:u=!1,...c}=i,d=A0(e);Ia(()=>s.register(a),[a,s.register]);let h=ks(b=>{let y=b.currentTarget;if(!(b.target!==b.currentTarget&&rat(b.target))&&(hwe(y)&&b.preventDefault(),s.props&&"onClick"in s.props&&typeof s.props.onClick=="function"&&s.props.onClick(b),hwe(y))){let S=document.getElementById(y.htmlFor);if(S){let x=S.getAttribute("disabled");if(x==="true"||x==="")return;let E=S.getAttribute("aria-disabled");if(E==="true"||E==="")return;(e5(S)&&(S.type==="file"||S.type==="radio"||S.type==="checkbox")||S.role==="radio"||S.role==="checkbox"||S.role==="switch")&&S.click(),S.focus({preventScroll:!0})}}}),f=aC({...s.slot,disabled:o||!1}),g={ref:d,...s.props,id:a,htmlFor:l,onClick:h};return u&&("onClick"in g&&(delete g.htmlFor,delete g.onClick),"onClick"in c&&delete c.onClick),up()({ourProps:g,theirProps:c,slot:f,defaultTag:l?fat:"div",name:s.name||"Label"})}let gat=cp(pat),mat=Object.assign(gat,{});function cE(i,e,t){let n=t.initialDeps??[],s;function r(){var o,a,l,u;let c;t.key&&((o=t.debug)!=null&&o.call(t))&&(c=Date.now());const d=i();if(!(d.length!==n.length||d.some((g,b)=>n[b]!==g)))return s;n=d;let f;if(t.key&&((a=t.debug)!=null&&a.call(t))&&(f=Date.now()),s=e(...d),t.key&&((l=t.debug)!=null&&l.call(t))){const g=Math.round((Date.now()-c)*100)/100,b=Math.round((Date.now()-f)*100)/100,y=b/16,S=(x,E)=>{for(x=String(x);x.length<E;)x=" "+x;return x};console.info(`%c⏱ ${S(b,5)} /${S(g,5)} ms`,`
|
|
412
336
|
font-size: .6rem;
|
|
413
337
|
font-weight: bold;
|
|
414
|
-
color: hsl(${Math.max(0,Math.min(120-120*y,120))}deg 100% 31%);`,t?.key)}return(u=t?.onChange)==null||u.call(t,s),s}return r.updateDeps=o=>{n=o},r}function bwe(i,e){if(i===void 0)throw new Error("Unexpected undefined");return i}const _at=(i,e)=>Math.abs(i-e)<1.01,bat=(i,e,t)=>{let n;return function(...s){i.clearTimeout(n),n=i.setTimeout(()=>e.apply(this,s),t)}},ywe=i=>{const{offsetWidth:e,offsetHeight:t}=i;return{width:e,height:t}},yat=i=>i,vat=i=>{const e=Math.max(i.startIndex-i.overscan,0),t=Math.min(i.endIndex+i.overscan,i.count-1),n=[];for(let s=e;s<=t;s++)n.push(s);return n},Cat=(i,e)=>{const t=i.scrollElement;if(!t)return;const n=i.targetWindow;if(!n)return;const s=o=>{const{width:a,height:l}=o;e({width:Math.round(a),height:Math.round(l)})};if(s(ywe(t)),!n.ResizeObserver)return()=>{};const r=new n.ResizeObserver(o=>{const a=()=>{const l=o[0];if(l?.borderBoxSize){const u=l.borderBoxSize[0];if(u){s({width:u.inlineSize,height:u.blockSize});return}}s(ywe(t))};i.options.useAnimationFrameWithResizeObserver?requestAnimationFrame(a):a()});return r.observe(t,{box:"border-box"}),()=>{r.unobserve(t)}},vwe={passive:!0},Cwe=typeof window>"u"?!0:"onscrollend"in window,wat=(i,e)=>{const t=i.scrollElement;if(!t)return;const n=i.targetWindow;if(!n)return;let s=0;const r=i.options.useScrollendEvent&&Cwe?()=>{}:bat(n,()=>{e(s,!1)},i.options.isScrollingResetDelay),o=c=>()=>{const{horizontal:d,isRtl:h}=i.options;s=d?t.scrollLeft*(h&&-1||1):t.scrollTop,r(),e(s,c)},a=o(!0),l=o(!1);l(),t.addEventListener("scroll",a,vwe);const u=i.options.useScrollendEvent&&Cwe;return u&&t.addEventListener("scrollend",l,vwe),()=>{t.removeEventListener("scroll",a),u&&t.removeEventListener("scrollend",l)}},Sat=(i,e,t)=>{if(e?.borderBoxSize){const n=e.borderBoxSize[0];if(n)return Math.round(n[t.options.horizontal?"inlineSize":"blockSize"])}return i[t.options.horizontal?"offsetWidth":"offsetHeight"]},xat=(i,{adjustments:e=0,behavior:t},n)=>{var s,r;const o=i+e;(r=(s=n.scrollElement)==null?void 0:s.scrollTo)==null||r.call(s,{[n.options.horizontal?"left":"top"]:o,behavior:t})};class Dat{constructor(e){this.unsubs=[],this.scrollElement=null,this.targetWindow=null,this.isScrolling=!1,this.measurementsCache=[],this.itemSizeCache=new Map,this.pendingMeasuredCacheIndexes=[],this.scrollRect=null,this.scrollOffset=null,this.scrollDirection=null,this.scrollAdjustments=0,this.elementsCache=new Map,this.observer=(()=>{let t=null;const n=()=>t||(!this.targetWindow||!this.targetWindow.ResizeObserver?null:t=new this.targetWindow.ResizeObserver(s=>{s.forEach(r=>{const o=()=>{this._measureElement(r.target,r)};this.options.useAnimationFrameWithResizeObserver?requestAnimationFrame(o):o()})}));return{disconnect:()=>{var s;(s=n())==null||s.disconnect(),t=null},observe:s=>{var r;return(r=n())==null?void 0:r.observe(s,{box:"border-box"})},unobserve:s=>{var r;return(r=n())==null?void 0:r.unobserve(s)}}})(),this.range=null,this.setOptions=t=>{Object.entries(t).forEach(([n,s])=>{typeof s>"u"&&delete t[n]}),this.options={debug:!1,initialOffset:0,overscan:1,paddingStart:0,paddingEnd:0,scrollPaddingStart:0,scrollPaddingEnd:0,horizontal:!1,getItemKey:yat,rangeExtractor:vat,onChange:()=>{},measureElement:Sat,initialRect:{width:0,height:0},scrollMargin:0,gap:0,indexAttribute:"data-index",initialMeasurementsCache:[],lanes:1,isScrollingResetDelay:150,enabled:!0,isRtl:!1,useScrollendEvent:!1,useAnimationFrameWithResizeObserver:!1,...t}},this.notify=t=>{var n,s;(s=(n=this.options).onChange)==null||s.call(n,this,t)},this.maybeNotify=cE(()=>(this.calculateRange(),[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]),t=>{this.notify(t)},{key:!1,debug:()=>this.options.debug,initialDeps:[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]}),this.cleanup=()=>{this.unsubs.filter(Boolean).forEach(t=>t()),this.unsubs=[],this.observer.disconnect(),this.scrollElement=null,this.targetWindow=null},this._didMount=()=>()=>{this.cleanup()},this._willUpdate=()=>{var t;const n=this.options.enabled?this.options.getScrollElement():null;if(this.scrollElement!==n){if(this.cleanup(),!n){this.maybeNotify();return}this.scrollElement=n,this.scrollElement&&"ownerDocument"in this.scrollElement?this.targetWindow=this.scrollElement.ownerDocument.defaultView:this.targetWindow=((t=this.scrollElement)==null?void 0:t.window)??null,this.elementsCache.forEach(s=>{this.observer.observe(s)}),this._scrollToOffset(this.getScrollOffset(),{adjustments:void 0,behavior:void 0}),this.unsubs.push(this.options.observeElementRect(this,s=>{this.scrollRect=s,this.maybeNotify()})),this.unsubs.push(this.options.observeElementOffset(this,(s,r)=>{this.scrollAdjustments=0,this.scrollDirection=r?this.getScrollOffset()<s?"forward":"backward":null,this.scrollOffset=s,this.isScrolling=r,this.maybeNotify()}))}},this.getSize=()=>this.options.enabled?(this.scrollRect=this.scrollRect??this.options.initialRect,this.scrollRect[this.options.horizontal?"width":"height"]):(this.scrollRect=null,0),this.getScrollOffset=()=>this.options.enabled?(this.scrollOffset=this.scrollOffset??(typeof this.options.initialOffset=="function"?this.options.initialOffset():this.options.initialOffset),this.scrollOffset):(this.scrollOffset=null,0),this.getFurthestMeasurement=(t,n)=>{const s=new Map,r=new Map;for(let o=n-1;o>=0;o--){const a=t[o];if(s.has(a.lane))continue;const l=r.get(a.lane);if(l==null||a.end>l.end?r.set(a.lane,a):a.end<l.end&&s.set(a.lane,!0),s.size===this.options.lanes)break}return r.size===this.options.lanes?Array.from(r.values()).sort((o,a)=>o.end===a.end?o.index-a.index:o.end-a.end)[0]:void 0},this.getMeasurementOptions=cE(()=>[this.options.count,this.options.paddingStart,this.options.scrollMargin,this.options.getItemKey,this.options.enabled],(t,n,s,r,o)=>(this.pendingMeasuredCacheIndexes=[],{count:t,paddingStart:n,scrollMargin:s,getItemKey:r,enabled:o}),{key:!1}),this.getMeasurements=cE(()=>[this.getMeasurementOptions(),this.itemSizeCache],({count:t,paddingStart:n,scrollMargin:s,getItemKey:r,enabled:o},a)=>{if(!o)return this.measurementsCache=[],this.itemSizeCache.clear(),[];this.measurementsCache.length===0&&(this.measurementsCache=this.options.initialMeasurementsCache,this.measurementsCache.forEach(c=>{this.itemSizeCache.set(c.key,c.size)}));const l=this.pendingMeasuredCacheIndexes.length>0?Math.min(...this.pendingMeasuredCacheIndexes):0;this.pendingMeasuredCacheIndexes=[];const u=this.measurementsCache.slice(0,l);for(let c=l;c<t;c++){const d=r(c),h=this.options.lanes===1?u[c-1]:this.getFurthestMeasurement(u,c),f=h?h.end+this.options.gap:n+s,g=a.get(d),b=typeof g=="number"?g:this.options.estimateSize(c),y=f+b,S=h?h.lane:c%this.options.lanes;u[c]={index:c,start:f,size:b,end:y,key:d,lane:S}}return this.measurementsCache=u,u},{key:!1,debug:()=>this.options.debug}),this.calculateRange=cE(()=>[this.getMeasurements(),this.getSize(),this.getScrollOffset(),this.options.lanes],(t,n,s,r)=>this.range=t.length>0&&n>0?Eat({measurements:t,outerSize:n,scrollOffset:s,lanes:r}):null,{key:!1,debug:()=>this.options.debug}),this.getVirtualIndexes=cE(()=>{let t=null,n=null;const s=this.calculateRange();return s&&(t=s.startIndex,n=s.endIndex),this.maybeNotify.updateDeps([this.isScrolling,t,n]),[this.options.rangeExtractor,this.options.overscan,this.options.count,t,n]},(t,n,s,r,o)=>r===null||o===null?[]:t({startIndex:r,endIndex:o,overscan:n,count:s}),{key:!1,debug:()=>this.options.debug}),this.indexFromElement=t=>{const n=this.options.indexAttribute,s=t.getAttribute(n);return s?parseInt(s,10):(console.warn(`Missing attribute name '${n}={index}' on measured element.`),-1)},this._measureElement=(t,n)=>{const s=this.indexFromElement(t),r=this.measurementsCache[s];if(!r)return;const o=r.key,a=this.elementsCache.get(o);a!==t&&(a&&this.observer.unobserve(a),this.observer.observe(t),this.elementsCache.set(o,t)),t.isConnected&&this.resizeItem(s,this.options.measureElement(t,n,this))},this.resizeItem=(t,n)=>{const s=this.measurementsCache[t];if(!s)return;const r=this.itemSizeCache.get(s.key)??s.size,o=n-r;o!==0&&((this.shouldAdjustScrollPositionOnItemSizeChange!==void 0?this.shouldAdjustScrollPositionOnItemSizeChange(s,o,this):s.start<this.getScrollOffset()+this.scrollAdjustments)&&this._scrollToOffset(this.getScrollOffset(),{adjustments:this.scrollAdjustments+=o,behavior:void 0}),this.pendingMeasuredCacheIndexes.push(s.index),this.itemSizeCache=new Map(this.itemSizeCache.set(s.key,n)),this.notify(!1))},this.measureElement=t=>{if(!t){this.elementsCache.forEach((n,s)=>{n.isConnected||(this.observer.unobserve(n),this.elementsCache.delete(s))});return}this._measureElement(t,void 0)},this.getVirtualItems=cE(()=>[this.getVirtualIndexes(),this.getMeasurements()],(t,n)=>{const s=[];for(let r=0,o=t.length;r<o;r++){const a=t[r],l=n[a];s.push(l)}return s},{key:!1,debug:()=>this.options.debug}),this.getVirtualItemForOffset=t=>{const n=this.getMeasurements();if(n.length!==0)return bwe(n[wwe(0,n.length-1,s=>bwe(n[s]).start,t)])},this.getOffsetForAlignment=(t,n,s=0)=>{const r=this.getSize(),o=this.getScrollOffset();n==="auto"&&(n=t>=o+r?"end":"start"),n==="center"?t+=(s-r)/2:n==="end"&&(t-=r);const a=this.getTotalSize()+this.options.scrollMargin-r;return Math.max(Math.min(a,t),0)},this.getOffsetForIndex=(t,n="auto")=>{t=Math.max(0,Math.min(t,this.options.count-1));const s=this.measurementsCache[t];if(!s)return;const r=this.getSize(),o=this.getScrollOffset();if(n==="auto")if(s.end>=o+r-this.options.scrollPaddingEnd)n="end";else if(s.start<=o+this.options.scrollPaddingStart)n="start";else return[o,n];const a=n==="end"?s.end+this.options.scrollPaddingEnd:s.start-this.options.scrollPaddingStart;return[this.getOffsetForAlignment(a,n,s.size),n]},this.isDynamicMode=()=>this.elementsCache.size>0,this.scrollToOffset=(t,{align:n="start",behavior:s}={})=>{s==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),this._scrollToOffset(this.getOffsetForAlignment(t,n),{adjustments:void 0,behavior:s})},this.scrollToIndex=(t,{align:n="auto",behavior:s}={})=>{s==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),t=Math.max(0,Math.min(t,this.options.count-1));let r=0;const o=10,a=u=>{if(!this.targetWindow)return;const c=this.getOffsetForIndex(t,u);if(!c){console.warn("Failed to get offset for index:",t);return}const[d,h]=c;this._scrollToOffset(d,{adjustments:void 0,behavior:s}),this.targetWindow.requestAnimationFrame(()=>{const f=this.getScrollOffset(),g=this.getOffsetForIndex(t,h);if(!g){console.warn("Failed to get offset for index:",t);return}_at(g[0],f)||l(h)})},l=u=>{this.targetWindow&&(r++,r<o?this.targetWindow.requestAnimationFrame(()=>a(u)):console.warn(`Failed to scroll to index ${t} after ${o} attempts.`))};a(n)},this.scrollBy=(t,{behavior:n}={})=>{n==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),this._scrollToOffset(this.getScrollOffset()+t,{adjustments:void 0,behavior:n})},this.getTotalSize=()=>{var t;const n=this.getMeasurements();let s;if(n.length===0)s=this.options.paddingStart;else if(this.options.lanes===1)s=((t=n[n.length-1])==null?void 0:t.end)??0;else{const r=Array(this.options.lanes).fill(null);let o=n.length-1;for(;o>=0&&r.some(a=>a===null);){const a=n[o];r[a.lane]===null&&(r[a.lane]=a.end),o--}s=Math.max(...r.filter(a=>a!==null))}return Math.max(s-this.options.scrollMargin+this.options.paddingEnd,0)},this._scrollToOffset=(t,{adjustments:n,behavior:s})=>{this.options.scrollToFn(t,{behavior:s,adjustments:n},this)},this.measure=()=>{this.itemSizeCache=new Map,this.notify(!1)},this.setOptions(e)}}const wwe=(i,e,t,n)=>{for(;i<=e;){const s=(i+e)/2|0,r=t(s);if(r<n)i=s+1;else if(r>n)e=s-1;else return s}return i>0?i-1:0};function Eat({measurements:i,outerSize:e,scrollOffset:t,lanes:n}){const s=i.length-1,r=l=>i[l].start;if(i.length<=n)return{startIndex:0,endIndex:s};let o=wwe(0,s,r,t),a=o;if(n===1)for(;a<s&&i[a].end<t+e;)a++;else if(n>1){const l=Array(n).fill(0);for(;a<s&&l.some(c=>c<t+e);){const c=i[a];l[c.lane]=c.end,a++}const u=Array(n).fill(t+e);for(;o>=0&&u.some(c=>c>=t);){const c=i[o];u[c.lane]=c.start,o--}o=Math.max(0,o-o%n),a=Math.min(s,a+(n-1-a%n))}return{startIndex:o,endIndex:a}}const Swe=typeof document<"u"?O.useLayoutEffect:O.useEffect;function Tat(i){const e=O.useReducer(()=>({}),{})[1],t={...i,onChange:(s,r)=>{var o;r?ku.flushSync(e):e(),(o=i.onChange)==null||o.call(i,s,r)}},[n]=O.useState(()=>new Dat(t));return n.setOptions(t),Swe(()=>n._didMount(),[]),Swe(()=>n._willUpdate()),n}function kat(i){return Tat({observeElementRect:Cat,observeElementOffset:wat,scrollToFn:xat,...i})}function Lat(i,e){return i!==null&&e!==null&&typeof i=="object"&&typeof e=="object"&&"id"in i&&"id"in e?i.id===e.id:i===e}function Aat(i=Lat){return O.useCallback((e,t)=>{if(typeof i=="string"){let n=i;return e?.[n]===t?.[n]}return i(e,t)},[i])}function xwe(i){if(i===null)return{width:0,height:0};let{width:e,height:t}=i.getBoundingClientRect();return{width:e,height:t}}function Dwe(i,e,t=!1){let[n,s]=O.useState(()=>xwe(e));return Ia(()=>{if(!e||!i)return;let r=tf();return r.requestAnimationFrame(function o(){r.requestAnimationFrame(o),s(a=>{let l=xwe(e);return l.width===a.width&&l.height===a.height?a:l})}),()=>{r.dispose()}},[e,i]),t?{width:`${n.width}px`,height:`${n.height}px`}:n}var SY=(i=>(i[i.Left=0]="Left",i[i.Right=2]="Right",i))(SY||{});function Nat(i){let e=O.useRef(null),t=ks(s=>{e.current=s.pointerType,!pwe(s.currentTarget)&&s.pointerType==="mouse"&&s.button===SY.Left&&(s.preventDefault(),i(s))}),n=ks(s=>{e.current!=="mouse"&&(pwe(s.currentTarget)||i(s))});return{onPointerDown:t,onClick:n}}let Ewe=class extends Map{constructor(e){super(),this.factory=e}get(e){let t=super.get(e);return t===void 0&&(t=this.factory(e),this.set(e,t)),t}};var Iat=Object.defineProperty,Pat=(i,e,t)=>e in i?Iat(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t,Mat=(i,e,t)=>(Pat(i,e+"",t),t),Twe=(i,e,t)=>{if(!e.has(i))throw TypeError("Cannot "+t)},nf=(i,e,t)=>(Twe(i,e,"read from private field"),t?t.call(i):e.get(i)),xY=(i,e,t)=>{if(e.has(i))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(i):e.set(i,t)},kwe=(i,e,t,n)=>(Twe(i,e,"write to private field"),e.set(i,t),t),Og,fN,pN;let Lwe=class{constructor(e){xY(this,Og,{}),xY(this,fN,new Ewe(()=>new Set)),xY(this,pN,new Set),Mat(this,"disposables",tf()),kwe(this,Og,e),rC.isServer&&this.disposables.microTask(()=>{this.dispose()})}dispose(){this.disposables.dispose()}get state(){return nf(this,Og)}subscribe(e,t){if(rC.isServer)return()=>{};let n={selector:e,callback:t,current:e(nf(this,Og))};return nf(this,pN).add(n),this.disposables.add(()=>{nf(this,pN).delete(n)})}on(e,t){return rC.isServer?()=>{}:(nf(this,fN).get(e).add(t),this.disposables.add(()=>{nf(this,fN).get(e).delete(t)}))}send(e){let t=this.reduce(nf(this,Og),e);if(t!==nf(this,Og)){kwe(this,Og,t);for(let n of nf(this,pN)){let s=n.selector(nf(this,Og));Awe(n.current,s)||(n.current=s,n.callback(s))}for(let n of nf(this,fN).get(e.type))n(nf(this,Og),e)}}};Og=new WeakMap,fN=new WeakMap,pN=new WeakMap;function Awe(i,e){return Object.is(i,e)?!0:typeof i!="object"||i===null||typeof e!="object"||e===null?!1:Array.isArray(i)&&Array.isArray(e)?i.length!==e.length?!1:DY(i[Symbol.iterator](),e[Symbol.iterator]()):i instanceof Map&&e instanceof Map||i instanceof Set&&e instanceof Set?i.size!==e.size?!1:DY(i.entries(),e.entries()):Nwe(i)&&Nwe(e)?DY(Object.entries(i)[Symbol.iterator](),Object.entries(e)[Symbol.iterator]()):!1}function DY(i,e){do{let t=i.next(),n=e.next();if(t.done&&n.done)return!0;if(t.done||n.done||!Object.is(t.value,n.value))return!1}while(!0)}function Nwe(i){if(Object.prototype.toString.call(i)!=="[object Object]")return!1;let e=Object.getPrototypeOf(i);return e===null||Object.getPrototypeOf(e)===null}var Rat=Object.defineProperty,Oat=(i,e,t)=>e in i?Rat(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t,Iwe=(i,e,t)=>(Oat(i,typeof e!="symbol"?e+"":e,t),t),Pwe=(i=>(i[i.Push=0]="Push",i[i.Pop=1]="Pop",i))(Pwe||{});let Fat={0(i,e){let t=e.id,n=i.stack,s=i.stack.indexOf(t);if(s!==-1){let r=i.stack.slice();return r.splice(s,1),r.push(t),n=r,{...i,stack:n}}return{...i,stack:[...i.stack,t]}},1(i,e){let t=e.id,n=i.stack.indexOf(t);if(n===-1)return i;let s=i.stack.slice();return s.splice(n,1),{...i,stack:s}}},Bat=class mWe extends Lwe{constructor(){super(...arguments),Iwe(this,"actions",{push:e=>this.send({type:0,id:e}),pop:e=>this.send({type:1,id:e})}),Iwe(this,"selectors",{isTop:(e,t)=>e.stack[e.stack.length-1]===t,inStack:(e,t)=>e.stack.includes(t)})}static new(){return new mWe({stack:[]})}reduce(e,t){return Rg(t.type,Fat,e,t)}};const EY=new Ewe(()=>Bat.new());var TY={exports:{}},kY={};/**
|
|
415
|
-
* @license React
|
|
416
|
-
* use-sync-external-store-with-selector.production.js
|
|
417
|
-
*
|
|
418
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
419
|
-
*
|
|
420
|
-
* This source code is licensed under the MIT license found in the
|
|
421
|
-
* LICENSE file in the root directory of this source tree.
|
|
422
|
-
*/var Mwe;function Vat(){if(Mwe)return kY;Mwe=1;var i=fD();function e(l,u){return l===u&&(l!==0||1/l===1/u)||l!==l&&u!==u}var t=typeof Object.is=="function"?Object.is:e,n=i.useSyncExternalStore,s=i.useRef,r=i.useEffect,o=i.useMemo,a=i.useDebugValue;return kY.useSyncExternalStoreWithSelector=function(l,u,c,d,h){var f=s(null);if(f.current===null){var g={hasValue:!1,value:null};f.current=g}else g=f.current;f=o(function(){function y(A){if(!S){if(S=!0,x=A,A=d(A),h!==void 0&&g.hasValue){var I=g.value;if(h(I,A))return E=I}return E=A}if(I=E,t(x,A))return I;var M=d(A);return h!==void 0&&h(I,M)?(x=A,I):(x=A,E=M)}var S=!1,x,E,k=c===void 0?null:c;return[function(){return y(u())},k===null?void 0:function(){return y(k())}]},[u,c,d,h]);var b=n(l,f[0],f[1]);return r(function(){g.hasValue=!0,g.value=b},[b]),a(b),b},kY}var Rwe;function Wat(){return Rwe||(Rwe=1,TY.exports=Vat()),TY.exports}var Hat=Wat();function Dl(i,e,t=Awe){return Hat.useSyncExternalStoreWithSelector(ks(n=>i.subscribe($at,n)),ks(()=>i.state),ks(()=>i.state),ks(e),t)}function $at(i){return i}function Owe(i,e){let t=O.useId(),n=EY.get(e),[s,r]=Dl(n,O.useCallback(o=>[n.selectors.isTop(o,t),n.selectors.inStack(o,t)],[n,t]));return Ia(()=>{if(i)return n.actions.push(t),()=>n.actions.pop(t)},[n,i,t]),i?r?s:!0:!1}let LY=new Map,gN=new Map;function Fwe(i){var e;let t=(e=gN.get(i))!=null?e:0;return gN.set(i,t+1),t!==0?()=>Bwe(i):(LY.set(i,{"aria-hidden":i.getAttribute("aria-hidden"),inert:i.inert}),i.setAttribute("aria-hidden","true"),i.inert=!0,()=>Bwe(i))}function Bwe(i){var e;let t=(e=gN.get(i))!=null?e:1;if(t===1?gN.delete(i):gN.set(i,t-1),t!==1)return;let n=LY.get(i);n&&(n["aria-hidden"]===null?i.removeAttribute("aria-hidden"):i.setAttribute("aria-hidden",n["aria-hidden"]),i.inert=n.inert,LY.delete(i))}function Uat(i,{allowed:e,disallowed:t}={}){let n=Owe(i,"inert-others");Ia(()=>{var s,r;if(!n)return;let o=tf();for(let l of(s=t?.())!=null?s:[])l&&o.add(Fwe(l));let a=(r=e?.())!=null?r:[];for(let l of a){if(!l)continue;let u=hN(l);if(!u)continue;let c=l.parentElement;for(;c&&c!==u.body;){for(let d of c.children)a.some(h=>d.contains(h))||o.add(Fwe(d));c=c.parentElement}}return o.dispose},[n,e,t])}function zat(i,e,t){let n=oC(s=>{let r=s.getBoundingClientRect();r.x===0&&r.y===0&&r.width===0&&r.height===0&&t()});O.useEffect(()=>{if(!i)return;let s=e===null?null:Jb(e)?e:e.current;if(!s)return;let r=tf();if(typeof ResizeObserver<"u"){let o=new ResizeObserver(()=>n.current(s));o.observe(s),r.add(()=>o.disconnect())}if(typeof IntersectionObserver<"u"){let o=new IntersectionObserver(()=>n.current(s));o.observe(s),r.add(()=>o.disconnect())}return()=>r.dispose()},[e,n,i])}let AY=["[contentEditable=true]","[tabindex]","a[href]","area[href]","button:not([disabled])","iframe","input:not([disabled])","select:not([disabled])","details>summary","textarea:not([disabled])"].map(i=>`${i}:not([tabindex='-1'])`).join(",");var jat=(i=>(i[i.First=1]="First",i[i.Previous=2]="Previous",i[i.Next=4]="Next",i[i.Last=8]="Last",i[i.WrapAround=16]="WrapAround",i[i.NoScroll=32]="NoScroll",i[i.AutoFocus=64]="AutoFocus",i))(jat||{}),qat=(i=>(i[i.Error=0]="Error",i[i.Overflow=1]="Overflow",i[i.Success=2]="Success",i[i.Underflow=3]="Underflow",i))(qat||{}),Gat=(i=>(i[i.Previous=-1]="Previous",i[i.Next=1]="Next",i))(Gat||{}),Vwe=(i=>(i[i.Strict=0]="Strict",i[i.Loose=1]="Loose",i))(Vwe||{});function Kat(i,e=0){var t;return i===((t=hN(i))==null?void 0:t.body)?!1:Rg(e,{0(){return i.matches(AY)},1(){let n=i;for(;n!==null;){if(n.matches(AY))return!0;n=n.parentElement}return!1}})}var Yat=(i=>(i[i.Keyboard=0]="Keyboard",i[i.Mouse=1]="Mouse",i))(Yat||{});typeof window<"u"&&typeof document<"u"&&(document.addEventListener("keydown",i=>{i.metaKey||i.altKey||i.ctrlKey||(document.documentElement.dataset.headlessuiFocusVisible="")},!0),document.addEventListener("click",i=>{i.detail===1?delete document.documentElement.dataset.headlessuiFocusVisible:i.detail===0&&(document.documentElement.dataset.headlessuiFocusVisible="")},!0));function Xat(i,e=t=>t){return i.slice().sort((t,n)=>{let s=e(t),r=e(n);if(s===null||r===null)return 0;let o=s.compareDocumentPosition(r);return o&Node.DOCUMENT_POSITION_FOLLOWING?-1:o&Node.DOCUMENT_POSITION_PRECEDING?1:0})}function Wwe(){return/iPhone/gi.test(window.navigator.platform)||/Mac/gi.test(window.navigator.platform)&&window.navigator.maxTouchPoints>0}function Qat(){return/Android/gi.test(window.navigator.userAgent)}function NY(){return Wwe()||Qat()}function dE(i,e,t,n){let s=oC(t);O.useEffect(()=>{if(!i)return;function r(o){s.current(o)}return document.addEventListener(e,r,n),()=>document.removeEventListener(e,r,n)},[i,e,n])}function Zat(i,e,t,n){let s=oC(t);O.useEffect(()=>{if(!i)return;function r(o){s.current(o)}return window.addEventListener(e,r,n),()=>window.removeEventListener(e,r,n)},[i,e,n])}const Hwe=30;function Jat(i,e,t){let n=oC(t),s=O.useCallback(function(a,l){if(a.defaultPrevented)return;let u=l(a);if(u===null||!u.getRootNode().contains(u)||!u.isConnected)return;let c=(function d(h){return typeof h=="function"?d(h()):Array.isArray(h)||h instanceof Set?h:[h]})(e);for(let d of c)if(d!==null&&(d.contains(u)||a.composed&&a.composedPath().includes(d)))return;return!Kat(u,Vwe.Loose)&&u.tabIndex!==-1&&a.preventDefault(),n.current(a,u)},[n,e]),r=O.useRef(null);dE(i,"pointerdown",a=>{var l,u;NY()||(r.current=((u=(l=a.composedPath)==null?void 0:l.call(a))==null?void 0:u[0])||a.target)},!0),dE(i,"pointerup",a=>{if(NY()||!r.current)return;let l=r.current;return r.current=null,s(a,()=>l)},!0);let o=O.useRef({x:0,y:0});dE(i,"touchstart",a=>{o.current.x=a.touches[0].clientX,o.current.y=a.touches[0].clientY},!0),dE(i,"touchend",a=>{let l={x:a.changedTouches[0].clientX,y:a.changedTouches[0].clientY};if(!(Math.abs(l.x-o.current.x)>=Hwe||Math.abs(l.y-o.current.y)>=Hwe))return s(a,()=>uC(a.target)?a.target:null)},!0),Zat(i,"blur",a=>s(a,()=>nat(window.document.activeElement)?window.document.activeElement:null),!0)}function IY(...i){return O.useMemo(()=>hN(...i),[...i])}var elt=(i=>(i[i.Ignore=0]="Ignore",i[i.Select=1]="Select",i[i.Close=2]="Close",i))(elt||{});const mN={Ignore:{kind:0},Select:i=>({kind:1,target:i}),Close:{kind:2}},tlt=200,$we=5;function ilt(i,{trigger:e,action:t,close:n,select:s}){let r=O.useRef(null),o=O.useRef(null),a=O.useRef(null);dE(i&&e!==null,"pointerdown",l=>{dwe(l?.target)&&e!=null&&e.contains(l.target)&&(o.current=l.x,a.current=l.y,r.current=l.timeStamp)}),dE(i&&e!==null,"pointerup",l=>{var u,c;let d=r.current;if(d===null||(r.current=null,!uC(l.target))||Math.abs(l.x-((u=o.current)!=null?u:l.x))<$we&&Math.abs(l.y-((c=a.current)!=null?c:l.y))<$we)return;let h=t(l);switch(h.kind){case 0:return;case 1:{l.timeStamp-d>tlt&&(s(h.target),n());break}case 2:{n();break}}},{capture:!0})}function nlt(i,e,t,n){let s=oC(t);O.useEffect(()=>{i=i??window;function r(o){s.current(o)}return i.addEventListener(e,r,n),()=>i.removeEventListener(e,r,n)},[i,e,n])}function Uwe(i){let e=O.useRef({value:"",selectionStart:null,selectionEnd:null});return nlt(i,"blur",t=>{let n=t.target;e5(n)&&(e.current={value:n.value,selectionStart:n.selectionStart,selectionEnd:n.selectionEnd})}),ks(()=>{if(!iwe(i)&&e5(i)&&i.isConnected){if(i.focus({preventScroll:!0}),i.value!==e.current.value)i.setSelectionRange(i.value.length,i.value.length);else{let{selectionStart:t,selectionEnd:n}=e.current;t!==null&&n!==null&&i.setSelectionRange(t,n)}e.current={value:"",selectionStart:null,selectionEnd:null}}})}function slt(i,e){return O.useMemo(()=>{var t;if(i.type)return i.type;let n=(t=i.as)!=null?t:"button";if(typeof n=="string"&&n.toLowerCase()==="button"||e?.tagName==="BUTTON"&&!e.hasAttribute("type"))return"button"},[i.type,i.as,e])}function rlt(i){return O.useSyncExternalStore(i.subscribe,i.getSnapshot,i.getSnapshot)}function olt(i,e){let t=i(),n=new Set;return{getSnapshot(){return t},subscribe(s){return n.add(s),()=>n.delete(s)},dispatch(s,...r){let o=e[s].call(t,...r);o&&(t=o,n.forEach(a=>a()))}}}function alt(){let i;return{before({doc:e}){var t;let n=e.documentElement,s=(t=e.defaultView)!=null?t:window;i=Math.max(0,s.innerWidth-n.clientWidth)},after({doc:e,d:t}){let n=e.documentElement,s=Math.max(0,n.clientWidth-n.offsetWidth),r=Math.max(0,i-s);t.style(n,"paddingRight",`${r}px`)}}}function llt(){return Wwe()?{before({doc:i,d:e,meta:t}){function n(s){for(let r of t().containers)for(let o of r())if(o.contains(s))return!0;return!1}e.microTask(()=>{var s;if(window.getComputedStyle(i.documentElement).scrollBehavior!=="auto"){let a=tf();a.style(i.documentElement,"scrollBehavior","auto"),e.add(()=>e.microTask(()=>a.dispose()))}let r=(s=window.scrollY)!=null?s:window.pageYOffset,o=null;e.addEventListener(i,"click",a=>{if(uC(a.target))try{let l=a.target.closest("a");if(!l)return;let{hash:u}=new URL(l.href),c=i.querySelector(u);uC(c)&&!n(c)&&(o=c)}catch{}},!0),e.group(a=>{e.addEventListener(i,"touchstart",l=>{if(a.dispose(),uC(l.target)&&iat(l.target))if(n(l.target)){let u=l.target;for(;u.parentElement&&n(u.parentElement);)u=u.parentElement;a.style(u,"overscrollBehavior","contain")}else a.style(l.target,"touchAction","none")})}),e.addEventListener(i,"touchmove",a=>{if(uC(a.target)){if(e5(a.target))return;if(n(a.target)){let l=a.target;for(;l.parentElement&&l.dataset.headlessuiPortal!==""&&!(l.scrollHeight>l.clientHeight||l.scrollWidth>l.clientWidth);)l=l.parentElement;l.dataset.headlessuiPortal===""&&a.preventDefault()}else a.preventDefault()}},{passive:!1}),e.add(()=>{var a;let l=(a=window.scrollY)!=null?a:window.pageYOffset;r!==l&&window.scrollTo(0,r),o&&o.isConnected&&(o.scrollIntoView({block:"nearest"}),o=null)})})}}:{}}function ult(){return{before({doc:i,d:e}){e.style(i.documentElement,"overflow","hidden")}}}function zwe(i){let e={};for(let t of i)Object.assign(e,t(e));return e}let cC=olt(()=>new Map,{PUSH(i,e){var t;let n=(t=this.get(i))!=null?t:{doc:i,count:0,d:tf(),meta:new Set,computedMeta:{}};return n.count++,n.meta.add(e),n.computedMeta=zwe(n.meta),this.set(i,n),this},POP(i,e){let t=this.get(i);return t&&(t.count--,t.meta.delete(e),t.computedMeta=zwe(t.meta)),this},SCROLL_PREVENT(i){let e={doc:i.doc,d:i.d,meta(){return i.computedMeta}},t=[llt(),alt(),ult()];t.forEach(({before:n})=>n?.(e)),t.forEach(({after:n})=>n?.(e))},SCROLL_ALLOW({d:i}){i.dispose()},TEARDOWN({doc:i}){this.delete(i)}});cC.subscribe(()=>{let i=cC.getSnapshot(),e=new Map;for(let[t]of i)e.set(t,t.documentElement.style.overflow);for(let t of i.values()){let n=e.get(t.doc)==="hidden",s=t.count!==0;(s&&!n||!s&&n)&&cC.dispatch(t.count>0?"SCROLL_PREVENT":"SCROLL_ALLOW",t),t.count===0&&cC.dispatch("TEARDOWN",t)}});function clt(i,e,t=()=>({containers:[]})){let n=rlt(cC),s=e?n.get(e):void 0,r=s?s.count>0:!1;return Ia(()=>{if(!(!e||!i))return cC.dispatch("PUSH",e,t),()=>cC.dispatch("POP",e,t)},[i,e]),r}function dlt(i,e,t=()=>[document.body]){let n=Owe(i,"scroll-lock");clt(n,e,s=>{var r;return{containers:[...(r=s.containers)!=null?r:[],t]}})}function jwe(i){return[i.screenX,i.screenY]}function hlt(){let i=O.useRef([-1,-1]);return{wasMoved(e){let t=jwe(e);return i.current[0]===t[0]&&i.current[1]===t[1]?!1:(i.current=t,!0)},update(e){i.current=jwe(e)}}}function flt(i=0){let[e,t]=O.useState(i),n=O.useCallback(l=>t(l),[]),s=O.useCallback(l=>t(u=>u|l),[]),r=O.useCallback(l=>(e&l)===l,[e]),o=O.useCallback(l=>t(u=>u&~l),[]),a=O.useCallback(l=>t(u=>u^l),[]);return{flags:e,setFlag:n,addFlag:s,hasFlag:r,removeFlag:o,toggleFlag:a}}var qwe,Gwe;typeof process<"u"&&typeof globalThis<"u"&&typeof Element<"u"&&((qwe=process==null?void 0:process.env)==null?void 0:qwe.NODE_ENV)==="test"&&typeof((Gwe=Element?.prototype)==null?void 0:Gwe.getAnimations)>"u"&&(Element.prototype.getAnimations=function(){return console.warn(["Headless UI has polyfilled `Element.prototype.getAnimations` for your tests.","Please install a proper polyfill e.g. `jsdom-testing-mocks`, to silence these warnings.","","Example usage:","```js","import { mockAnimationsApi } from 'jsdom-testing-mocks'","mockAnimationsApi()","```"].join(`
|
|
338
|
+
color: hsl(${Math.max(0,Math.min(120-120*y,120))}deg 100% 31%);`,t?.key)}return(u=t?.onChange)==null||u.call(t,s),s}return r.updateDeps=o=>{n=o},r}function bwe(i,e){if(i===void 0)throw new Error("Unexpected undefined");return i}const _at=(i,e)=>Math.abs(i-e)<1.01,bat=(i,e,t)=>{let n;return function(...s){i.clearTimeout(n),n=i.setTimeout(()=>e.apply(this,s),t)}},ywe=i=>{const{offsetWidth:e,offsetHeight:t}=i;return{width:e,height:t}},yat=i=>i,vat=i=>{const e=Math.max(i.startIndex-i.overscan,0),t=Math.min(i.endIndex+i.overscan,i.count-1),n=[];for(let s=e;s<=t;s++)n.push(s);return n},Cat=(i,e)=>{const t=i.scrollElement;if(!t)return;const n=i.targetWindow;if(!n)return;const s=o=>{const{width:a,height:l}=o;e({width:Math.round(a),height:Math.round(l)})};if(s(ywe(t)),!n.ResizeObserver)return()=>{};const r=new n.ResizeObserver(o=>{const a=()=>{const l=o[0];if(l?.borderBoxSize){const u=l.borderBoxSize[0];if(u){s({width:u.inlineSize,height:u.blockSize});return}}s(ywe(t))};i.options.useAnimationFrameWithResizeObserver?requestAnimationFrame(a):a()});return r.observe(t,{box:"border-box"}),()=>{r.unobserve(t)}},vwe={passive:!0},Cwe=typeof window>"u"?!0:"onscrollend"in window,wat=(i,e)=>{const t=i.scrollElement;if(!t)return;const n=i.targetWindow;if(!n)return;let s=0;const r=i.options.useScrollendEvent&&Cwe?()=>{}:bat(n,()=>{e(s,!1)},i.options.isScrollingResetDelay),o=c=>()=>{const{horizontal:d,isRtl:h}=i.options;s=d?t.scrollLeft*(h&&-1||1):t.scrollTop,r(),e(s,c)},a=o(!0),l=o(!1);l(),t.addEventListener("scroll",a,vwe);const u=i.options.useScrollendEvent&&Cwe;return u&&t.addEventListener("scrollend",l,vwe),()=>{t.removeEventListener("scroll",a),u&&t.removeEventListener("scrollend",l)}},Sat=(i,e,t)=>{if(e?.borderBoxSize){const n=e.borderBoxSize[0];if(n)return Math.round(n[t.options.horizontal?"inlineSize":"blockSize"])}return i[t.options.horizontal?"offsetWidth":"offsetHeight"]},xat=(i,{adjustments:e=0,behavior:t},n)=>{var s,r;const o=i+e;(r=(s=n.scrollElement)==null?void 0:s.scrollTo)==null||r.call(s,{[n.options.horizontal?"left":"top"]:o,behavior:t})};class Dat{constructor(e){this.unsubs=[],this.scrollElement=null,this.targetWindow=null,this.isScrolling=!1,this.measurementsCache=[],this.itemSizeCache=new Map,this.pendingMeasuredCacheIndexes=[],this.scrollRect=null,this.scrollOffset=null,this.scrollDirection=null,this.scrollAdjustments=0,this.elementsCache=new Map,this.observer=(()=>{let t=null;const n=()=>t||(!this.targetWindow||!this.targetWindow.ResizeObserver?null:t=new this.targetWindow.ResizeObserver(s=>{s.forEach(r=>{const o=()=>{this._measureElement(r.target,r)};this.options.useAnimationFrameWithResizeObserver?requestAnimationFrame(o):o()})}));return{disconnect:()=>{var s;(s=n())==null||s.disconnect(),t=null},observe:s=>{var r;return(r=n())==null?void 0:r.observe(s,{box:"border-box"})},unobserve:s=>{var r;return(r=n())==null?void 0:r.unobserve(s)}}})(),this.range=null,this.setOptions=t=>{Object.entries(t).forEach(([n,s])=>{typeof s>"u"&&delete t[n]}),this.options={debug:!1,initialOffset:0,overscan:1,paddingStart:0,paddingEnd:0,scrollPaddingStart:0,scrollPaddingEnd:0,horizontal:!1,getItemKey:yat,rangeExtractor:vat,onChange:()=>{},measureElement:Sat,initialRect:{width:0,height:0},scrollMargin:0,gap:0,indexAttribute:"data-index",initialMeasurementsCache:[],lanes:1,isScrollingResetDelay:150,enabled:!0,isRtl:!1,useScrollendEvent:!1,useAnimationFrameWithResizeObserver:!1,...t}},this.notify=t=>{var n,s;(s=(n=this.options).onChange)==null||s.call(n,this,t)},this.maybeNotify=cE(()=>(this.calculateRange(),[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]),t=>{this.notify(t)},{key:!1,debug:()=>this.options.debug,initialDeps:[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]}),this.cleanup=()=>{this.unsubs.filter(Boolean).forEach(t=>t()),this.unsubs=[],this.observer.disconnect(),this.scrollElement=null,this.targetWindow=null},this._didMount=()=>()=>{this.cleanup()},this._willUpdate=()=>{var t;const n=this.options.enabled?this.options.getScrollElement():null;if(this.scrollElement!==n){if(this.cleanup(),!n){this.maybeNotify();return}this.scrollElement=n,this.scrollElement&&"ownerDocument"in this.scrollElement?this.targetWindow=this.scrollElement.ownerDocument.defaultView:this.targetWindow=((t=this.scrollElement)==null?void 0:t.window)??null,this.elementsCache.forEach(s=>{this.observer.observe(s)}),this._scrollToOffset(this.getScrollOffset(),{adjustments:void 0,behavior:void 0}),this.unsubs.push(this.options.observeElementRect(this,s=>{this.scrollRect=s,this.maybeNotify()})),this.unsubs.push(this.options.observeElementOffset(this,(s,r)=>{this.scrollAdjustments=0,this.scrollDirection=r?this.getScrollOffset()<s?"forward":"backward":null,this.scrollOffset=s,this.isScrolling=r,this.maybeNotify()}))}},this.getSize=()=>this.options.enabled?(this.scrollRect=this.scrollRect??this.options.initialRect,this.scrollRect[this.options.horizontal?"width":"height"]):(this.scrollRect=null,0),this.getScrollOffset=()=>this.options.enabled?(this.scrollOffset=this.scrollOffset??(typeof this.options.initialOffset=="function"?this.options.initialOffset():this.options.initialOffset),this.scrollOffset):(this.scrollOffset=null,0),this.getFurthestMeasurement=(t,n)=>{const s=new Map,r=new Map;for(let o=n-1;o>=0;o--){const a=t[o];if(s.has(a.lane))continue;const l=r.get(a.lane);if(l==null||a.end>l.end?r.set(a.lane,a):a.end<l.end&&s.set(a.lane,!0),s.size===this.options.lanes)break}return r.size===this.options.lanes?Array.from(r.values()).sort((o,a)=>o.end===a.end?o.index-a.index:o.end-a.end)[0]:void 0},this.getMeasurementOptions=cE(()=>[this.options.count,this.options.paddingStart,this.options.scrollMargin,this.options.getItemKey,this.options.enabled],(t,n,s,r,o)=>(this.pendingMeasuredCacheIndexes=[],{count:t,paddingStart:n,scrollMargin:s,getItemKey:r,enabled:o}),{key:!1}),this.getMeasurements=cE(()=>[this.getMeasurementOptions(),this.itemSizeCache],({count:t,paddingStart:n,scrollMargin:s,getItemKey:r,enabled:o},a)=>{if(!o)return this.measurementsCache=[],this.itemSizeCache.clear(),[];this.measurementsCache.length===0&&(this.measurementsCache=this.options.initialMeasurementsCache,this.measurementsCache.forEach(c=>{this.itemSizeCache.set(c.key,c.size)}));const l=this.pendingMeasuredCacheIndexes.length>0?Math.min(...this.pendingMeasuredCacheIndexes):0;this.pendingMeasuredCacheIndexes=[];const u=this.measurementsCache.slice(0,l);for(let c=l;c<t;c++){const d=r(c),h=this.options.lanes===1?u[c-1]:this.getFurthestMeasurement(u,c),f=h?h.end+this.options.gap:n+s,g=a.get(d),b=typeof g=="number"?g:this.options.estimateSize(c),y=f+b,S=h?h.lane:c%this.options.lanes;u[c]={index:c,start:f,size:b,end:y,key:d,lane:S}}return this.measurementsCache=u,u},{key:!1,debug:()=>this.options.debug}),this.calculateRange=cE(()=>[this.getMeasurements(),this.getSize(),this.getScrollOffset(),this.options.lanes],(t,n,s,r)=>this.range=t.length>0&&n>0?Eat({measurements:t,outerSize:n,scrollOffset:s,lanes:r}):null,{key:!1,debug:()=>this.options.debug}),this.getVirtualIndexes=cE(()=>{let t=null,n=null;const s=this.calculateRange();return s&&(t=s.startIndex,n=s.endIndex),this.maybeNotify.updateDeps([this.isScrolling,t,n]),[this.options.rangeExtractor,this.options.overscan,this.options.count,t,n]},(t,n,s,r,o)=>r===null||o===null?[]:t({startIndex:r,endIndex:o,overscan:n,count:s}),{key:!1,debug:()=>this.options.debug}),this.indexFromElement=t=>{const n=this.options.indexAttribute,s=t.getAttribute(n);return s?parseInt(s,10):(console.warn(`Missing attribute name '${n}={index}' on measured element.`),-1)},this._measureElement=(t,n)=>{const s=this.indexFromElement(t),r=this.measurementsCache[s];if(!r)return;const o=r.key,a=this.elementsCache.get(o);a!==t&&(a&&this.observer.unobserve(a),this.observer.observe(t),this.elementsCache.set(o,t)),t.isConnected&&this.resizeItem(s,this.options.measureElement(t,n,this))},this.resizeItem=(t,n)=>{const s=this.measurementsCache[t];if(!s)return;const r=this.itemSizeCache.get(s.key)??s.size,o=n-r;o!==0&&((this.shouldAdjustScrollPositionOnItemSizeChange!==void 0?this.shouldAdjustScrollPositionOnItemSizeChange(s,o,this):s.start<this.getScrollOffset()+this.scrollAdjustments)&&this._scrollToOffset(this.getScrollOffset(),{adjustments:this.scrollAdjustments+=o,behavior:void 0}),this.pendingMeasuredCacheIndexes.push(s.index),this.itemSizeCache=new Map(this.itemSizeCache.set(s.key,n)),this.notify(!1))},this.measureElement=t=>{if(!t){this.elementsCache.forEach((n,s)=>{n.isConnected||(this.observer.unobserve(n),this.elementsCache.delete(s))});return}this._measureElement(t,void 0)},this.getVirtualItems=cE(()=>[this.getVirtualIndexes(),this.getMeasurements()],(t,n)=>{const s=[];for(let r=0,o=t.length;r<o;r++){const a=t[r],l=n[a];s.push(l)}return s},{key:!1,debug:()=>this.options.debug}),this.getVirtualItemForOffset=t=>{const n=this.getMeasurements();if(n.length!==0)return bwe(n[wwe(0,n.length-1,s=>bwe(n[s]).start,t)])},this.getOffsetForAlignment=(t,n,s=0)=>{const r=this.getSize(),o=this.getScrollOffset();n==="auto"&&(n=t>=o+r?"end":"start"),n==="center"?t+=(s-r)/2:n==="end"&&(t-=r);const a=this.getTotalSize()+this.options.scrollMargin-r;return Math.max(Math.min(a,t),0)},this.getOffsetForIndex=(t,n="auto")=>{t=Math.max(0,Math.min(t,this.options.count-1));const s=this.measurementsCache[t];if(!s)return;const r=this.getSize(),o=this.getScrollOffset();if(n==="auto")if(s.end>=o+r-this.options.scrollPaddingEnd)n="end";else if(s.start<=o+this.options.scrollPaddingStart)n="start";else return[o,n];const a=n==="end"?s.end+this.options.scrollPaddingEnd:s.start-this.options.scrollPaddingStart;return[this.getOffsetForAlignment(a,n,s.size),n]},this.isDynamicMode=()=>this.elementsCache.size>0,this.scrollToOffset=(t,{align:n="start",behavior:s}={})=>{s==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),this._scrollToOffset(this.getOffsetForAlignment(t,n),{adjustments:void 0,behavior:s})},this.scrollToIndex=(t,{align:n="auto",behavior:s}={})=>{s==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),t=Math.max(0,Math.min(t,this.options.count-1));let r=0;const o=10,a=u=>{if(!this.targetWindow)return;const c=this.getOffsetForIndex(t,u);if(!c){console.warn("Failed to get offset for index:",t);return}const[d,h]=c;this._scrollToOffset(d,{adjustments:void 0,behavior:s}),this.targetWindow.requestAnimationFrame(()=>{const f=this.getScrollOffset(),g=this.getOffsetForIndex(t,h);if(!g){console.warn("Failed to get offset for index:",t);return}_at(g[0],f)||l(h)})},l=u=>{this.targetWindow&&(r++,r<o?this.targetWindow.requestAnimationFrame(()=>a(u)):console.warn(`Failed to scroll to index ${t} after ${o} attempts.`))};a(n)},this.scrollBy=(t,{behavior:n}={})=>{n==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),this._scrollToOffset(this.getScrollOffset()+t,{adjustments:void 0,behavior:n})},this.getTotalSize=()=>{var t;const n=this.getMeasurements();let s;if(n.length===0)s=this.options.paddingStart;else if(this.options.lanes===1)s=((t=n[n.length-1])==null?void 0:t.end)??0;else{const r=Array(this.options.lanes).fill(null);let o=n.length-1;for(;o>=0&&r.some(a=>a===null);){const a=n[o];r[a.lane]===null&&(r[a.lane]=a.end),o--}s=Math.max(...r.filter(a=>a!==null))}return Math.max(s-this.options.scrollMargin+this.options.paddingEnd,0)},this._scrollToOffset=(t,{adjustments:n,behavior:s})=>{this.options.scrollToFn(t,{behavior:s,adjustments:n},this)},this.measure=()=>{this.itemSizeCache=new Map,this.notify(!1)},this.setOptions(e)}}const wwe=(i,e,t,n)=>{for(;i<=e;){const s=(i+e)/2|0,r=t(s);if(r<n)i=s+1;else if(r>n)e=s-1;else return s}return i>0?i-1:0};function Eat({measurements:i,outerSize:e,scrollOffset:t,lanes:n}){const s=i.length-1,r=l=>i[l].start;if(i.length<=n)return{startIndex:0,endIndex:s};let o=wwe(0,s,r,t),a=o;if(n===1)for(;a<s&&i[a].end<t+e;)a++;else if(n>1){const l=Array(n).fill(0);for(;a<s&&l.some(c=>c<t+e);){const c=i[a];l[c.lane]=c.end,a++}const u=Array(n).fill(t+e);for(;o>=0&&u.some(c=>c>=t);){const c=i[o];u[c.lane]=c.start,o--}o=Math.max(0,o-o%n),a=Math.min(s,a+(n-1-a%n))}return{startIndex:o,endIndex:a}}const Swe=typeof document<"u"?O.useLayoutEffect:O.useEffect;function Tat(i){const e=O.useReducer(()=>({}),{})[1],t={...i,onChange:(s,r)=>{var o;r?ku.flushSync(e):e(),(o=i.onChange)==null||o.call(i,s,r)}},[n]=O.useState(()=>new Dat(t));return n.setOptions(t),Swe(()=>n._didMount(),[]),Swe(()=>n._willUpdate()),n}function kat(i){return Tat({observeElementRect:Cat,observeElementOffset:wat,scrollToFn:xat,...i})}function Lat(i,e){return i!==null&&e!==null&&typeof i=="object"&&typeof e=="object"&&"id"in i&&"id"in e?i.id===e.id:i===e}function Aat(i=Lat){return O.useCallback((e,t)=>{if(typeof i=="string"){let n=i;return e?.[n]===t?.[n]}return i(e,t)},[i])}function xwe(i){if(i===null)return{width:0,height:0};let{width:e,height:t}=i.getBoundingClientRect();return{width:e,height:t}}function Dwe(i,e,t=!1){let[n,s]=O.useState(()=>xwe(e));return Ia(()=>{if(!e||!i)return;let r=tf();return r.requestAnimationFrame(function o(){r.requestAnimationFrame(o),s(a=>{let l=xwe(e);return l.width===a.width&&l.height===a.height?a:l})}),()=>{r.dispose()}},[e,i]),t?{width:`${n.width}px`,height:`${n.height}px`}:n}var SY=(i=>(i[i.Left=0]="Left",i[i.Right=2]="Right",i))(SY||{});function Nat(i){let e=O.useRef(null),t=ks(s=>{e.current=s.pointerType,!pwe(s.currentTarget)&&s.pointerType==="mouse"&&s.button===SY.Left&&(s.preventDefault(),i(s))}),n=ks(s=>{e.current!=="mouse"&&(pwe(s.currentTarget)||i(s))});return{onPointerDown:t,onClick:n}}let Ewe=class extends Map{constructor(e){super(),this.factory=e}get(e){let t=super.get(e);return t===void 0&&(t=this.factory(e),this.set(e,t)),t}};var Iat=Object.defineProperty,Pat=(i,e,t)=>e in i?Iat(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t,Mat=(i,e,t)=>(Pat(i,e+"",t),t),Twe=(i,e,t)=>{if(!e.has(i))throw TypeError("Cannot "+t)},nf=(i,e,t)=>(Twe(i,e,"read from private field"),t?t.call(i):e.get(i)),xY=(i,e,t)=>{if(e.has(i))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(i):e.set(i,t)},kwe=(i,e,t,n)=>(Twe(i,e,"write to private field"),e.set(i,t),t),Og,fN,pN;let Lwe=class{constructor(e){xY(this,Og,{}),xY(this,fN,new Ewe(()=>new Set)),xY(this,pN,new Set),Mat(this,"disposables",tf()),kwe(this,Og,e),rC.isServer&&this.disposables.microTask(()=>{this.dispose()})}dispose(){this.disposables.dispose()}get state(){return nf(this,Og)}subscribe(e,t){if(rC.isServer)return()=>{};let n={selector:e,callback:t,current:e(nf(this,Og))};return nf(this,pN).add(n),this.disposables.add(()=>{nf(this,pN).delete(n)})}on(e,t){return rC.isServer?()=>{}:(nf(this,fN).get(e).add(t),this.disposables.add(()=>{nf(this,fN).get(e).delete(t)}))}send(e){let t=this.reduce(nf(this,Og),e);if(t!==nf(this,Og)){kwe(this,Og,t);for(let n of nf(this,pN)){let s=n.selector(nf(this,Og));Awe(n.current,s)||(n.current=s,n.callback(s))}for(let n of nf(this,fN).get(e.type))n(nf(this,Og),e)}}};Og=new WeakMap,fN=new WeakMap,pN=new WeakMap;function Awe(i,e){return Object.is(i,e)?!0:typeof i!="object"||i===null||typeof e!="object"||e===null?!1:Array.isArray(i)&&Array.isArray(e)?i.length!==e.length?!1:DY(i[Symbol.iterator](),e[Symbol.iterator]()):i instanceof Map&&e instanceof Map||i instanceof Set&&e instanceof Set?i.size!==e.size?!1:DY(i.entries(),e.entries()):Nwe(i)&&Nwe(e)?DY(Object.entries(i)[Symbol.iterator](),Object.entries(e)[Symbol.iterator]()):!1}function DY(i,e){do{let t=i.next(),n=e.next();if(t.done&&n.done)return!0;if(t.done||n.done||!Object.is(t.value,n.value))return!1}while(!0)}function Nwe(i){if(Object.prototype.toString.call(i)!=="[object Object]")return!1;let e=Object.getPrototypeOf(i);return e===null||Object.getPrototypeOf(e)===null}var Rat=Object.defineProperty,Oat=(i,e,t)=>e in i?Rat(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t,Iwe=(i,e,t)=>(Oat(i,typeof e!="symbol"?e+"":e,t),t),Pwe=(i=>(i[i.Push=0]="Push",i[i.Pop=1]="Pop",i))(Pwe||{});let Fat={0(i,e){let t=e.id,n=i.stack,s=i.stack.indexOf(t);if(s!==-1){let r=i.stack.slice();return r.splice(s,1),r.push(t),n=r,{...i,stack:n}}return{...i,stack:[...i.stack,t]}},1(i,e){let t=e.id,n=i.stack.indexOf(t);if(n===-1)return i;let s=i.stack.slice();return s.splice(n,1),{...i,stack:s}}},Bat=class mWe extends Lwe{constructor(){super(...arguments),Iwe(this,"actions",{push:e=>this.send({type:0,id:e}),pop:e=>this.send({type:1,id:e})}),Iwe(this,"selectors",{isTop:(e,t)=>e.stack[e.stack.length-1]===t,inStack:(e,t)=>e.stack.includes(t)})}static new(){return new mWe({stack:[]})}reduce(e,t){return Rg(t.type,Fat,e,t)}};const EY=new Ewe(()=>Bat.new());var TY={exports:{}},kY={};var Mwe;function Vat(){if(Mwe)return kY;Mwe=1;var i=fD();function e(l,u){return l===u&&(l!==0||1/l===1/u)||l!==l&&u!==u}var t=typeof Object.is=="function"?Object.is:e,n=i.useSyncExternalStore,s=i.useRef,r=i.useEffect,o=i.useMemo,a=i.useDebugValue;return kY.useSyncExternalStoreWithSelector=function(l,u,c,d,h){var f=s(null);if(f.current===null){var g={hasValue:!1,value:null};f.current=g}else g=f.current;f=o(function(){function y(A){if(!S){if(S=!0,x=A,A=d(A),h!==void 0&&g.hasValue){var I=g.value;if(h(I,A))return E=I}return E=A}if(I=E,t(x,A))return I;var M=d(A);return h!==void 0&&h(I,M)?(x=A,I):(x=A,E=M)}var S=!1,x,E,k=c===void 0?null:c;return[function(){return y(u())},k===null?void 0:function(){return y(k())}]},[u,c,d,h]);var b=n(l,f[0],f[1]);return r(function(){g.hasValue=!0,g.value=b},[b]),a(b),b},kY}var Rwe;function Wat(){return Rwe||(Rwe=1,TY.exports=Vat()),TY.exports}var Hat=Wat();function Dl(i,e,t=Awe){return Hat.useSyncExternalStoreWithSelector(ks(n=>i.subscribe($at,n)),ks(()=>i.state),ks(()=>i.state),ks(e),t)}function $at(i){return i}function Owe(i,e){let t=O.useId(),n=EY.get(e),[s,r]=Dl(n,O.useCallback(o=>[n.selectors.isTop(o,t),n.selectors.inStack(o,t)],[n,t]));return Ia(()=>{if(i)return n.actions.push(t),()=>n.actions.pop(t)},[n,i,t]),i?r?s:!0:!1}let LY=new Map,gN=new Map;function Fwe(i){var e;let t=(e=gN.get(i))!=null?e:0;return gN.set(i,t+1),t!==0?()=>Bwe(i):(LY.set(i,{"aria-hidden":i.getAttribute("aria-hidden"),inert:i.inert}),i.setAttribute("aria-hidden","true"),i.inert=!0,()=>Bwe(i))}function Bwe(i){var e;let t=(e=gN.get(i))!=null?e:1;if(t===1?gN.delete(i):gN.set(i,t-1),t!==1)return;let n=LY.get(i);n&&(n["aria-hidden"]===null?i.removeAttribute("aria-hidden"):i.setAttribute("aria-hidden",n["aria-hidden"]),i.inert=n.inert,LY.delete(i))}function Uat(i,{allowed:e,disallowed:t}={}){let n=Owe(i,"inert-others");Ia(()=>{var s,r;if(!n)return;let o=tf();for(let l of(s=t?.())!=null?s:[])l&&o.add(Fwe(l));let a=(r=e?.())!=null?r:[];for(let l of a){if(!l)continue;let u=hN(l);if(!u)continue;let c=l.parentElement;for(;c&&c!==u.body;){for(let d of c.children)a.some(h=>d.contains(h))||o.add(Fwe(d));c=c.parentElement}}return o.dispose},[n,e,t])}function zat(i,e,t){let n=oC(s=>{let r=s.getBoundingClientRect();r.x===0&&r.y===0&&r.width===0&&r.height===0&&t()});O.useEffect(()=>{if(!i)return;let s=e===null?null:Jb(e)?e:e.current;if(!s)return;let r=tf();if(typeof ResizeObserver<"u"){let o=new ResizeObserver(()=>n.current(s));o.observe(s),r.add(()=>o.disconnect())}if(typeof IntersectionObserver<"u"){let o=new IntersectionObserver(()=>n.current(s));o.observe(s),r.add(()=>o.disconnect())}return()=>r.dispose()},[e,n,i])}let AY=["[contentEditable=true]","[tabindex]","a[href]","area[href]","button:not([disabled])","iframe","input:not([disabled])","select:not([disabled])","details>summary","textarea:not([disabled])"].map(i=>`${i}:not([tabindex='-1'])`).join(",");var jat=(i=>(i[i.First=1]="First",i[i.Previous=2]="Previous",i[i.Next=4]="Next",i[i.Last=8]="Last",i[i.WrapAround=16]="WrapAround",i[i.NoScroll=32]="NoScroll",i[i.AutoFocus=64]="AutoFocus",i))(jat||{}),qat=(i=>(i[i.Error=0]="Error",i[i.Overflow=1]="Overflow",i[i.Success=2]="Success",i[i.Underflow=3]="Underflow",i))(qat||{}),Gat=(i=>(i[i.Previous=-1]="Previous",i[i.Next=1]="Next",i))(Gat||{}),Vwe=(i=>(i[i.Strict=0]="Strict",i[i.Loose=1]="Loose",i))(Vwe||{});function Kat(i,e=0){var t;return i===((t=hN(i))==null?void 0:t.body)?!1:Rg(e,{0(){return i.matches(AY)},1(){let n=i;for(;n!==null;){if(n.matches(AY))return!0;n=n.parentElement}return!1}})}var Yat=(i=>(i[i.Keyboard=0]="Keyboard",i[i.Mouse=1]="Mouse",i))(Yat||{});typeof window<"u"&&typeof document<"u"&&(document.addEventListener("keydown",i=>{i.metaKey||i.altKey||i.ctrlKey||(document.documentElement.dataset.headlessuiFocusVisible="")},!0),document.addEventListener("click",i=>{i.detail===1?delete document.documentElement.dataset.headlessuiFocusVisible:i.detail===0&&(document.documentElement.dataset.headlessuiFocusVisible="")},!0));function Xat(i,e=t=>t){return i.slice().sort((t,n)=>{let s=e(t),r=e(n);if(s===null||r===null)return 0;let o=s.compareDocumentPosition(r);return o&Node.DOCUMENT_POSITION_FOLLOWING?-1:o&Node.DOCUMENT_POSITION_PRECEDING?1:0})}function Wwe(){return/iPhone/gi.test(window.navigator.platform)||/Mac/gi.test(window.navigator.platform)&&window.navigator.maxTouchPoints>0}function Qat(){return/Android/gi.test(window.navigator.userAgent)}function NY(){return Wwe()||Qat()}function dE(i,e,t,n){let s=oC(t);O.useEffect(()=>{if(!i)return;function r(o){s.current(o)}return document.addEventListener(e,r,n),()=>document.removeEventListener(e,r,n)},[i,e,n])}function Zat(i,e,t,n){let s=oC(t);O.useEffect(()=>{if(!i)return;function r(o){s.current(o)}return window.addEventListener(e,r,n),()=>window.removeEventListener(e,r,n)},[i,e,n])}const Hwe=30;function Jat(i,e,t){let n=oC(t),s=O.useCallback(function(a,l){if(a.defaultPrevented)return;let u=l(a);if(u===null||!u.getRootNode().contains(u)||!u.isConnected)return;let c=(function d(h){return typeof h=="function"?d(h()):Array.isArray(h)||h instanceof Set?h:[h]})(e);for(let d of c)if(d!==null&&(d.contains(u)||a.composed&&a.composedPath().includes(d)))return;return!Kat(u,Vwe.Loose)&&u.tabIndex!==-1&&a.preventDefault(),n.current(a,u)},[n,e]),r=O.useRef(null);dE(i,"pointerdown",a=>{var l,u;NY()||(r.current=((u=(l=a.composedPath)==null?void 0:l.call(a))==null?void 0:u[0])||a.target)},!0),dE(i,"pointerup",a=>{if(NY()||!r.current)return;let l=r.current;return r.current=null,s(a,()=>l)},!0);let o=O.useRef({x:0,y:0});dE(i,"touchstart",a=>{o.current.x=a.touches[0].clientX,o.current.y=a.touches[0].clientY},!0),dE(i,"touchend",a=>{let l={x:a.changedTouches[0].clientX,y:a.changedTouches[0].clientY};if(!(Math.abs(l.x-o.current.x)>=Hwe||Math.abs(l.y-o.current.y)>=Hwe))return s(a,()=>uC(a.target)?a.target:null)},!0),Zat(i,"blur",a=>s(a,()=>nat(window.document.activeElement)?window.document.activeElement:null),!0)}function IY(...i){return O.useMemo(()=>hN(...i),[...i])}var elt=(i=>(i[i.Ignore=0]="Ignore",i[i.Select=1]="Select",i[i.Close=2]="Close",i))(elt||{});const mN={Ignore:{kind:0},Select:i=>({kind:1,target:i}),Close:{kind:2}},tlt=200,$we=5;function ilt(i,{trigger:e,action:t,close:n,select:s}){let r=O.useRef(null),o=O.useRef(null),a=O.useRef(null);dE(i&&e!==null,"pointerdown",l=>{dwe(l?.target)&&e!=null&&e.contains(l.target)&&(o.current=l.x,a.current=l.y,r.current=l.timeStamp)}),dE(i&&e!==null,"pointerup",l=>{var u,c;let d=r.current;if(d===null||(r.current=null,!uC(l.target))||Math.abs(l.x-((u=o.current)!=null?u:l.x))<$we&&Math.abs(l.y-((c=a.current)!=null?c:l.y))<$we)return;let h=t(l);switch(h.kind){case 0:return;case 1:{l.timeStamp-d>tlt&&(s(h.target),n());break}case 2:{n();break}}},{capture:!0})}function nlt(i,e,t,n){let s=oC(t);O.useEffect(()=>{i=i??window;function r(o){s.current(o)}return i.addEventListener(e,r,n),()=>i.removeEventListener(e,r,n)},[i,e,n])}function Uwe(i){let e=O.useRef({value:"",selectionStart:null,selectionEnd:null});return nlt(i,"blur",t=>{let n=t.target;e5(n)&&(e.current={value:n.value,selectionStart:n.selectionStart,selectionEnd:n.selectionEnd})}),ks(()=>{if(!iwe(i)&&e5(i)&&i.isConnected){if(i.focus({preventScroll:!0}),i.value!==e.current.value)i.setSelectionRange(i.value.length,i.value.length);else{let{selectionStart:t,selectionEnd:n}=e.current;t!==null&&n!==null&&i.setSelectionRange(t,n)}e.current={value:"",selectionStart:null,selectionEnd:null}}})}function slt(i,e){return O.useMemo(()=>{var t;if(i.type)return i.type;let n=(t=i.as)!=null?t:"button";if(typeof n=="string"&&n.toLowerCase()==="button"||e?.tagName==="BUTTON"&&!e.hasAttribute("type"))return"button"},[i.type,i.as,e])}function rlt(i){return O.useSyncExternalStore(i.subscribe,i.getSnapshot,i.getSnapshot)}function olt(i,e){let t=i(),n=new Set;return{getSnapshot(){return t},subscribe(s){return n.add(s),()=>n.delete(s)},dispatch(s,...r){let o=e[s].call(t,...r);o&&(t=o,n.forEach(a=>a()))}}}function alt(){let i;return{before({doc:e}){var t;let n=e.documentElement,s=(t=e.defaultView)!=null?t:window;i=Math.max(0,s.innerWidth-n.clientWidth)},after({doc:e,d:t}){let n=e.documentElement,s=Math.max(0,n.clientWidth-n.offsetWidth),r=Math.max(0,i-s);t.style(n,"paddingRight",`${r}px`)}}}function llt(){return Wwe()?{before({doc:i,d:e,meta:t}){function n(s){for(let r of t().containers)for(let o of r())if(o.contains(s))return!0;return!1}e.microTask(()=>{var s;if(window.getComputedStyle(i.documentElement).scrollBehavior!=="auto"){let a=tf();a.style(i.documentElement,"scrollBehavior","auto"),e.add(()=>e.microTask(()=>a.dispose()))}let r=(s=window.scrollY)!=null?s:window.pageYOffset,o=null;e.addEventListener(i,"click",a=>{if(uC(a.target))try{let l=a.target.closest("a");if(!l)return;let{hash:u}=new URL(l.href),c=i.querySelector(u);uC(c)&&!n(c)&&(o=c)}catch{}},!0),e.group(a=>{e.addEventListener(i,"touchstart",l=>{if(a.dispose(),uC(l.target)&&iat(l.target))if(n(l.target)){let u=l.target;for(;u.parentElement&&n(u.parentElement);)u=u.parentElement;a.style(u,"overscrollBehavior","contain")}else a.style(l.target,"touchAction","none")})}),e.addEventListener(i,"touchmove",a=>{if(uC(a.target)){if(e5(a.target))return;if(n(a.target)){let l=a.target;for(;l.parentElement&&l.dataset.headlessuiPortal!==""&&!(l.scrollHeight>l.clientHeight||l.scrollWidth>l.clientWidth);)l=l.parentElement;l.dataset.headlessuiPortal===""&&a.preventDefault()}else a.preventDefault()}},{passive:!1}),e.add(()=>{var a;let l=(a=window.scrollY)!=null?a:window.pageYOffset;r!==l&&window.scrollTo(0,r),o&&o.isConnected&&(o.scrollIntoView({block:"nearest"}),o=null)})})}}:{}}function ult(){return{before({doc:i,d:e}){e.style(i.documentElement,"overflow","hidden")}}}function zwe(i){let e={};for(let t of i)Object.assign(e,t(e));return e}let cC=olt(()=>new Map,{PUSH(i,e){var t;let n=(t=this.get(i))!=null?t:{doc:i,count:0,d:tf(),meta:new Set,computedMeta:{}};return n.count++,n.meta.add(e),n.computedMeta=zwe(n.meta),this.set(i,n),this},POP(i,e){let t=this.get(i);return t&&(t.count--,t.meta.delete(e),t.computedMeta=zwe(t.meta)),this},SCROLL_PREVENT(i){let e={doc:i.doc,d:i.d,meta(){return i.computedMeta}},t=[llt(),alt(),ult()];t.forEach(({before:n})=>n?.(e)),t.forEach(({after:n})=>n?.(e))},SCROLL_ALLOW({d:i}){i.dispose()},TEARDOWN({doc:i}){this.delete(i)}});cC.subscribe(()=>{let i=cC.getSnapshot(),e=new Map;for(let[t]of i)e.set(t,t.documentElement.style.overflow);for(let t of i.values()){let n=e.get(t.doc)==="hidden",s=t.count!==0;(s&&!n||!s&&n)&&cC.dispatch(t.count>0?"SCROLL_PREVENT":"SCROLL_ALLOW",t),t.count===0&&cC.dispatch("TEARDOWN",t)}});function clt(i,e,t=()=>({containers:[]})){let n=rlt(cC),s=e?n.get(e):void 0,r=s?s.count>0:!1;return Ia(()=>{if(!(!e||!i))return cC.dispatch("PUSH",e,t),()=>cC.dispatch("POP",e,t)},[i,e]),r}function dlt(i,e,t=()=>[document.body]){let n=Owe(i,"scroll-lock");clt(n,e,s=>{var r;return{containers:[...(r=s.containers)!=null?r:[],t]}})}function jwe(i){return[i.screenX,i.screenY]}function hlt(){let i=O.useRef([-1,-1]);return{wasMoved(e){let t=jwe(e);return i.current[0]===t[0]&&i.current[1]===t[1]?!1:(i.current=t,!0)},update(e){i.current=jwe(e)}}}function flt(i=0){let[e,t]=O.useState(i),n=O.useCallback(l=>t(l),[]),s=O.useCallback(l=>t(u=>u|l),[]),r=O.useCallback(l=>(e&l)===l,[e]),o=O.useCallback(l=>t(u=>u&~l),[]),a=O.useCallback(l=>t(u=>u^l),[]);return{flags:e,setFlag:n,addFlag:s,hasFlag:r,removeFlag:o,toggleFlag:a}}var qwe,Gwe;typeof process<"u"&&typeof globalThis<"u"&&typeof Element<"u"&&((qwe=process==null?void 0:process.env)==null?void 0:qwe.NODE_ENV)==="test"&&typeof((Gwe=Element?.prototype)==null?void 0:Gwe.getAnimations)>"u"&&(Element.prototype.getAnimations=function(){return console.warn(["Headless UI has polyfilled `Element.prototype.getAnimations` for your tests.","Please install a proper polyfill e.g. `jsdom-testing-mocks`, to silence these warnings.","","Example usage:","```js","import { mockAnimationsApi } from 'jsdom-testing-mocks'","mockAnimationsApi()","```"].join(`
|
|
423
339
|
`)),[]});var plt=(i=>(i[i.None=0]="None",i[i.Closed=1]="Closed",i[i.Enter=2]="Enter",i[i.Leave=4]="Leave",i))(plt||{});function glt(i){let e={};for(let t in i)i[t]===!0&&(e[`data-${t}`]="");return e}function mlt(i,e,t,n){let[s,r]=O.useState(t),{hasFlag:o,addFlag:a,removeFlag:l}=flt(i&&s?3:0),u=O.useRef(!1),c=O.useRef(!1),d=uE();return Ia(()=>{var h;if(i){if(t&&r(!0),!e){t&&a(3);return}return(h=void 0)==null||h.call(n,t),_lt(e,{inFlight:u,prepare(){c.current?c.current=!1:c.current=u.current,u.current=!0,!c.current&&(t?(a(3),l(4)):(a(4),l(2)))},run(){c.current?t?(l(3),a(4)):(l(4),a(3)):t?l(1):a(1)},done(){var f;c.current&&vlt(e)||(u.current=!1,l(7),t||r(!1),(f=void 0)==null||f.call(n,t))}})}},[i,t,e,d]),i?[s,{closed:o(1),enter:o(2),leave:o(4),transition:o(2)||o(4)}]:[t,{closed:void 0,enter:void 0,leave:void 0,transition:void 0}]}function _lt(i,{prepare:e,run:t,done:n,inFlight:s}){let r=tf();return ylt(i,{prepare:e,inFlight:s}),r.nextFrame(()=>{t(),r.requestAnimationFrame(()=>{r.add(blt(i,n))})}),r.dispose}function blt(i,e){var t,n;let s=tf();if(!i)return s.dispose;let r=!1;s.add(()=>{r=!0});let o=(n=(t=i.getAnimations)==null?void 0:t.call(i).filter(a=>a instanceof CSSTransition))!=null?n:[];return o.length===0?(e(),s.dispose):(Promise.allSettled(o.map(a=>a.finished)).then(()=>{r||e()}),s.dispose)}function ylt(i,{inFlight:e,prepare:t}){if(e!=null&&e.current){t();return}let n=i.style.transition;i.style.transition="none",t(),i.offsetHeight,i.style.transition=n}function vlt(i){var e,t;return((t=(e=i.getAnimations)==null?void 0:e.call(i))!=null?t:[]).some(n=>n instanceof CSSTransition&&n.playState!=="finished")}function Clt(i,{container:e,accept:t,walk:n}){let s=O.useRef(t),r=O.useRef(n);O.useEffect(()=>{s.current=t,r.current=n},[t,n]),Ia(()=>{if(!e||!i)return;let o=hN(e);if(!o)return;let a=s.current,l=r.current,u=Object.assign(d=>a(d),{acceptNode:a}),c=o.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,u,!1);for(;c.nextNode();)l(c.currentNode)},[e,i,s,r])}function Kwe(i,e){let t=O.useRef([]),n=ks(i);O.useEffect(()=>{let s=[...t.current];for(let[r,o]of e.entries())if(t.current[r]!==o){let a=n(e,s);return t.current=e,a}},[n,...e])}function wlt(){const i=navigator.userAgentData;return i&&Array.isArray(i.brands)?i.brands.map(e=>{let{brand:t,version:n}=e;return t+"/"+n}).join(" "):navigator.userAgent}const Ywe={...WU},Slt=Ywe.useInsertionEffect||(i=>i());function Xwe(i){const e=O.useRef(()=>{});return Slt(()=>{e.current=i}),O.useCallback(function(){for(var t=arguments.length,n=new Array(t),s=0;s<t;s++)n[s]=arguments[s];return e.current==null?void 0:e.current(...n)},[])}var PY=typeof document<"u"?O.useLayoutEffect:O.useEffect;let Qwe=!1,xlt=0;const Zwe=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+xlt++;function Dlt(){const[i,e]=O.useState(()=>Qwe?Zwe():void 0);return PY(()=>{i==null&&e(Zwe())},[]),O.useEffect(()=>{Qwe=!0},[]),i}const Elt=Ywe.useId||Dlt;function Tlt(){const i=new Map;return{emit(e,t){var n;(n=i.get(e))==null||n.forEach(s=>s(t))},on(e,t){i.set(e,[...i.get(e)||[],t])},off(e,t){var n;i.set(e,((n=i.get(e))==null?void 0:n.filter(s=>s!==t))||[])}}}const klt=O.createContext(null),Llt=O.createContext(null),Alt=()=>{var i;return((i=O.useContext(klt))==null?void 0:i.id)||null},Nlt=()=>O.useContext(Llt),Ilt="data-floating-ui-focusable";function Plt(i){const{open:e=!1,onOpenChange:t,elements:n}=i,s=Elt(),r=O.useRef({}),[o]=O.useState(()=>Tlt()),a=Alt()!=null,[l,u]=O.useState(n.reference),c=Xwe((f,g,b)=>{r.current.openEvent=f?g:void 0,o.emit("openchange",{open:f,event:g,reason:b,nested:a}),t?.(f,g,b)}),d=O.useMemo(()=>({setPositionReference:u}),[]),h=O.useMemo(()=>({reference:l||n.reference||null,floating:n.floating||null,domReference:n.reference}),[l,n.reference,n.floating]);return O.useMemo(()=>({dataRef:r,open:e,onOpenChange:c,elements:h,events:o,floatingId:s,refs:d}),[e,c,h,o,s,d])}function Mlt(i){i===void 0&&(i={});const{nodeId:e}=i,t=Plt({...i,elements:{reference:null,floating:null,...i.elements}}),n=i.rootContext||t,s=n.elements,[r,o]=O.useState(null),[a,l]=O.useState(null),c=s?.domReference||r,d=O.useRef(null),h=Nlt();PY(()=>{c&&(d.current=c)},[c]);const f=z_e({...i,elements:{...s,...a&&{reference:a}}}),g=O.useCallback(E=>{const k=ec(E)?{getBoundingClientRect:()=>E.getBoundingClientRect(),contextElement:E}:E;l(k),f.refs.setReference(k)},[f.refs]),b=O.useCallback(E=>{(ec(E)||E===null)&&(d.current=E,o(E)),(ec(f.refs.reference.current)||f.refs.reference.current===null||E!==null&&!ec(E))&&f.refs.setReference(E)},[f.refs]),y=O.useMemo(()=>({...f.refs,setReference:b,setPositionReference:g,domReference:d}),[f.refs,b,g]),S=O.useMemo(()=>({...f.elements,domReference:c}),[f.elements,c]),x=O.useMemo(()=>({...f,...n,refs:y,elements:S,nodeId:e}),[f,y,S,e,n]);return PY(()=>{n.dataRef.current.floatingContext=x;const E=h?.nodesRef.current.find(k=>k.id===e);E&&(E.context=x)}),O.useMemo(()=>({...f,context:x,refs:y,elements:S}),[f,y,S,x])}const Jwe="active",eSe="selected";function MY(i,e,t){const n=new Map,s=t==="item";let r=i;if(s&&i){const{[Jwe]:o,[eSe]:a,...l}=i;r=l}return{...t==="floating"&&{tabIndex:-1,[Ilt]:""},...r,...e.map(o=>{const a=o?o[t]:null;return typeof a=="function"?i?a(i):null:a}).concat(i).reduce((o,a)=>(a&&Object.entries(a).forEach(l=>{let[u,c]=l;if(!(s&&[Jwe,eSe].includes(u)))if(u.indexOf("on")===0){if(n.has(u)||n.set(u,[]),typeof c=="function"){var d;(d=n.get(u))==null||d.push(c),o[u]=function(){for(var h,f=arguments.length,g=new Array(f),b=0;b<f;b++)g[b]=arguments[b];return(h=n.get(u))==null?void 0:h.map(y=>y(...g)).find(y=>y!==void 0)}}}else o[u]=c}),o),{})}}function Rlt(i){i===void 0&&(i=[]);const e=i.map(a=>a?.reference),t=i.map(a=>a?.floating),n=i.map(a=>a?.item),s=O.useCallback(a=>MY(a,i,"reference"),e),r=O.useCallback(a=>MY(a,i,"floating"),t),o=O.useCallback(a=>MY(a,i,"item"),n);return O.useMemo(()=>({getReferenceProps:s,getFloatingProps:r,getItemProps:o}),[s,r,o])}function tSe(i,e){return{...i,rects:{...i.rects,floating:{...i.rects.floating,height:e}}}}const Olt=i=>({name:"inner",options:i,async fn(e){const{listRef:t,overflowRef:n,onFallbackChange:s,offset:r=0,index:o=0,minItemsVisible:a=4,referenceOverflowThreshold:l=0,scrollRef:u,...c}=Eg(i,e),{rects:d,elements:{floating:h}}=e,f=t.current[o],g=u?.current||h,b=h.clientTop||g.clientTop,y=h.clientTop!==0,S=g.clientTop!==0,x=h===g;if(!f)return{};const E={...e,...await _G(-f.offsetTop-h.clientTop-d.reference.height/2-f.offsetHeight/2-r).fn(e)},k=await gG(tSe(E,g.scrollHeight+b+h.clientTop),c),A=await gG(E,{...c,elementContext:"reference"}),I=Lu(0,k.top),M=E.y+I,G=(g.scrollHeight>g.clientHeight?q=>q:MA)(Lu(0,g.scrollHeight+(y&&x||S?b*2:0)-I-Lu(0,k.bottom)));if(g.style.maxHeight=G+"px",g.scrollTop=I,s){const q=g.offsetHeight<f.offsetHeight*x0(a,t.current.length)-1||A.top>=-l||A.bottom>=-l;ku.flushSync(()=>s(q))}return n&&(n.current=await gG(tSe({...E,y:M},g.offsetHeight+b+h.clientTop),c)),{y:M}}});function Flt(i,e){const{open:t,elements:n}=i,{enabled:s=!0,overflowRef:r,scrollRef:o,onChange:a}=e,l=Xwe(a),u=O.useRef(!1),c=O.useRef(null),d=O.useRef(null);O.useEffect(()=>{if(!s)return;function f(b){if(b.ctrlKey||!g||r.current==null)return;const y=b.deltaY,S=r.current.top>=-.5,x=r.current.bottom>=-.5,E=g.scrollHeight-g.clientHeight,k=y<0?-1:1,A=y<0?"max":"min";g.scrollHeight<=g.clientHeight||(!S&&y>0||!x&&y<0?(b.preventDefault(),ku.flushSync(()=>{l(I=>I+Math[A](y,E*k))})):/firefox/i.test(wlt())&&(g.scrollTop+=y))}const g=o?.current||n.floating;if(t&&g)return g.addEventListener("wheel",f),requestAnimationFrame(()=>{c.current=g.scrollTop,r.current!=null&&(d.current={...r.current})}),()=>{c.current=null,d.current=null,g.removeEventListener("wheel",f)}},[s,t,n.floating,r,o,l]);const h=O.useMemo(()=>({onKeyDown(){u.current=!0},onWheel(){u.current=!1},onPointerMove(){u.current=!1},onScroll(){const f=o?.current||n.floating;if(!(!r.current||!f||!u.current)){if(c.current!==null){const g=f.scrollTop-c.current;(r.current.bottom<-.5&&g<-1||r.current.top<-.5&&g>1)&&ku.flushSync(()=>l(b=>b+g))}requestAnimationFrame(()=>{c.current=f.scrollTop})}}}),[n.floating,l,r,o]);return O.useMemo(()=>s?{floating:h}:{},[s,h])}let _N=O.createContext({styles:void 0,setReference:()=>{},setFloating:()=>{},getReferenceProps:()=>({}),getFloatingProps:()=>({}),slot:{}});_N.displayName="FloatingContext";let RY=O.createContext(null);RY.displayName="PlacementContext";function Blt(i){return O.useMemo(()=>i?typeof i=="string"?{to:i}:i:null,[i])}function Vlt(){return O.useContext(_N).setReference}function Wlt(){let{getFloatingProps:i,slot:e}=O.useContext(_N);return O.useCallback((...t)=>Object.assign({},i(...t),{"data-anchor":e.anchor}),[i,e])}function Hlt(i=null){i===!1&&(i=null),typeof i=="string"&&(i={to:i});let e=O.useContext(RY),t=O.useMemo(()=>i,[JSON.stringify(i,(s,r)=>{var o;return(o=r?.outerHTML)!=null?o:r})]);Ia(()=>{e?.(t??null)},[e,t]);let n=O.useContext(_N);return O.useMemo(()=>[n.setFloating,i?n.styles:{}],[n.setFloating,i,n.styles])}let iSe=4;function $lt({children:i,enabled:e=!0}){let[t,n]=O.useState(null),[s,r]=O.useState(0),o=O.useRef(null),[a,l]=O.useState(null);Ult(a);let u=e&&t!==null&&a!==null,{to:c="bottom",gap:d=0,offset:h=0,padding:f=0,inner:g}=zlt(t,a),[b,y="center"]=c.split(" ");Ia(()=>{u&&r(0)},[u]);let{refs:S,floatingStyles:x,context:E}=Mlt({open:u,placement:b==="selection"?y==="center"?"bottom":`bottom-${y}`:y==="center"?`${b}`:`${b}-${y}`,strategy:"absolute",transform:!1,middleware:[_G({mainAxis:b==="selection"?0:d,crossAxis:h}),j_e({padding:f}),b!=="selection"&&q_e({padding:f}),b==="selection"&&g?Olt({...g,padding:f,overflowRef:o,offset:s,minItemsVisible:iSe,referenceOverflowThreshold:f,onFallbackChange(q){var ee,Z;if(!q)return;let K=E.elements.floating;if(!K)return;let oe=parseFloat(getComputedStyle(K).scrollPaddingBottom)||0,Y=Math.min(iSe,K.childElementCount),de=0,ae=0;for(let he of(Z=(ee=E.elements.floating)==null?void 0:ee.childNodes)!=null?Z:[])if(Jb(he)){let Ce=he.offsetTop,le=Ce+he.clientHeight+oe,J=K.scrollTop,Ee=J+K.clientHeight;if(Ce>=J&&le<=Ee)Y--;else{ae=Math.max(0,Math.min(le,Ee)-Math.max(Ce,J)),de=he.clientHeight;break}}Y>=1&&r(he=>{let Ce=de*Y-ae+oe;return he>=Ce?he:Ce})}}):null,G_e({padding:f,apply({availableWidth:q,availableHeight:ee,elements:Z}){Object.assign(Z.floating.style,{overflow:"auto",maxWidth:`${q}px`,maxHeight:`min(var(--anchor-max-height, 100vh), ${ee}px)`})}})].filter(Boolean),whileElementsMounted:W_e}),[k=b,A=y]=E.placement.split("-");b==="selection"&&(k="selection");let I=O.useMemo(()=>({anchor:[k,A].filter(Boolean).join(" ")}),[k,A]),M=Flt(E,{overflowRef:o,onChange:r}),{getReferenceProps:B,getFloatingProps:F}=Rlt([M]),G=ks(q=>{l(q),S.setFloating(q)});return O.createElement(RY.Provider,{value:n},O.createElement(_N.Provider,{value:{setFloating:G,setReference:S.setReference,styles:x,getReferenceProps:B,getFloatingProps:F,slot:I}},i))}function Ult(i){Ia(()=>{if(!i)return;let e=new MutationObserver(()=>{let t=window.getComputedStyle(i).maxHeight,n=parseFloat(t);if(isNaN(n))return;let s=parseInt(t);isNaN(s)||n!==s&&(i.style.maxHeight=`${Math.ceil(n)}px`)});return e.observe(i,{attributes:!0,attributeFilter:["style"]}),()=>{e.disconnect()}},[i])}function zlt(i,e){var t,n,s;let r=OY((t=i?.gap)!=null?t:"var(--anchor-gap, 0)",e),o=OY((n=i?.offset)!=null?n:"var(--anchor-offset, 0)",e),a=OY((s=i?.padding)!=null?s:"var(--anchor-padding, 0)",e);return{...i,gap:r,offset:o,padding:a}}function OY(i,e,t=void 0){let n=uE(),s=ks((l,u)=>{if(l==null)return[t,null];if(typeof l=="number")return[l,null];if(typeof l=="string"){if(!u)return[t,null];let c=sSe(l,u);return[c,d=>{let h=nSe(l);{let f=h.map(g=>window.getComputedStyle(u).getPropertyValue(g));n.requestAnimationFrame(function g(){n.nextFrame(g);let b=!1;for(let[S,x]of h.entries()){let E=window.getComputedStyle(u).getPropertyValue(x);if(f[S]!==E){f[S]=E,b=!0;break}}if(!b)return;let y=sSe(l,u);c!==y&&(d(y),c=y)})}return n.dispose}]}return[t,null]}),r=O.useMemo(()=>s(i,e)[0],[i,e]),[o=r,a]=O.useState();return Ia(()=>{let[l,u]=s(i,e);if(a(l),!!u)return u(a)},[i,e]),o}function nSe(i){let e=/var\((.*)\)/.exec(i);if(e){let t=e[1].indexOf(",");if(t===-1)return[e[1]];let n=e[1].slice(0,t).trim(),s=e[1].slice(t+1).trim();return s?[n,...nSe(s)]:[n]}return[]}function sSe(i,e){let t=document.createElement("div");e.appendChild(t),t.style.setProperty("margin-top","0px","important"),t.style.setProperty("margin-top",i,"important");let n=parseFloat(window.getComputedStyle(t).marginTop)||0;return e.removeChild(t),n}function jlt({children:i,freeze:e},t){let n=FY(e,i);return O.isValidElement(n)?O.cloneElement(n,{ref:t}):xn.createElement(xn.Fragment,null,n)}const qlt=xn.forwardRef(jlt);function FY(i,e){let[t,n]=O.useState(e);return!i&&t!==e&&n(e),i?t:e}let BY=O.createContext(null);BY.displayName="OpenClosedContext";var bN=(i=>(i[i.Open=1]="Open",i[i.Closed=2]="Closed",i[i.Closing=4]="Closing",i[i.Opening=8]="Opening",i))(bN||{});function Glt(){return O.useContext(BY)}function Klt({value:i,children:e}){return xn.createElement(BY.Provider,{value:i},e)}function Ylt(i){function e(){document.readyState!=="loading"&&(i(),document.removeEventListener("DOMContentLoaded",e))}typeof window<"u"&&typeof document<"u"&&(document.addEventListener("DOMContentLoaded",e),e())}let dC=[];Ylt(()=>{function i(e){if(!uC(e.target)||e.target===document.body||dC[0]===e.target)return;let t=e.target;t=t.closest(AY),dC.unshift(t??e.target),dC=dC.filter(n=>n!=null&&n.isConnected),dC.splice(10)}window.addEventListener("click",i,{capture:!0}),window.addEventListener("mousedown",i,{capture:!0}),window.addEventListener("focus",i,{capture:!0}),document.body.addEventListener("click",i,{capture:!0}),document.body.addEventListener("mousedown",i,{capture:!0}),document.body.addEventListener("focus",i,{capture:!0})});function Xlt(i){throw new Error("Unexpected object: "+i)}var El=(i=>(i[i.First=0]="First",i[i.Previous=1]="Previous",i[i.Next=2]="Next",i[i.Last=3]="Last",i[i.Specific=4]="Specific",i[i.Nothing=5]="Nothing",i))(El||{});function rSe(i,e){let t=e.resolveItems();if(t.length<=0)return null;let n=e.resolveActiveIndex(),s=n??-1;switch(i.focus){case 0:{for(let r=0;r<t.length;++r)if(!e.resolveDisabled(t[r],r,t))return r;return n}case 1:{s===-1&&(s=t.length);for(let r=s-1;r>=0;--r)if(!e.resolveDisabled(t[r],r,t))return r;return n}case 2:{for(let r=s+1;r<t.length;++r)if(!e.resolveDisabled(t[r],r,t))return r;return n}case 3:{for(let r=t.length-1;r>=0;--r)if(!e.resolveDisabled(t[r],r,t))return r;return n}case 4:{for(let r=0;r<t.length;++r)if(e.resolveId(t[r],r,t)===i.id)return r;return n}case 5:return null;default:Xlt(i)}}function oSe(i){let e=ks(i),t=O.useRef(!1);O.useEffect(()=>(t.current=!1,()=>{t.current=!0,nwe(()=>{t.current&&e()})}),[e])}let Qlt=O.createContext(!1);function Zlt(){return O.useContext(Qlt)}function Jlt(i){let e=Zlt(),t=O.useContext(lSe),[n,s]=O.useState(()=>{var r;if(!e&&t!==null)return(r=t.current)!=null?r:null;if(rC.isServer)return null;let o=i?.getElementById("headlessui-portal-root");if(o)return o;if(i===null)return null;let a=i.createElement("div");return a.setAttribute("id","headlessui-portal-root"),i.body.appendChild(a)});return O.useEffect(()=>{n!==null&&(i!=null&&i.body.contains(n)||i==null||i.body.appendChild(n))},[n,i]),O.useEffect(()=>{e||t!==null&&s(t.current)},[t,s,e]),n}let aSe=O.Fragment,eut=cp(function(i,e){let{ownerDocument:t=null,...n}=i,s=O.useRef(null),r=A0(aat(h=>{s.current=h}),e),o=IY(s.current),a=t??o,l=Jlt(a),u=O.useContext(sut),c=uE(),d=up();return oSe(()=>{var h;l&&l.childNodes.length<=0&&((h=l.parentElement)==null||h.removeChild(l))}),l?ku.createPortal(xn.createElement("div",{"data-headlessui-portal":"",ref:h=>{c.dispose(),u&&h&&c.add(u.register(h))}},d({ourProps:{ref:r},theirProps:n,slot:{},defaultTag:aSe,name:"Portal"})),l):null});function tut(i,e){let t=A0(e),{enabled:n=!0,ownerDocument:s,...r}=i,o=up();return n?xn.createElement(eut,{...r,ownerDocument:s,ref:t}):o({ourProps:{ref:t},theirProps:r,slot:{},defaultTag:aSe,name:"Portal"})}let iut=O.Fragment,lSe=O.createContext(null);function nut(i,e){let{target:t,...n}=i,s={ref:A0(e)},r=up();return xn.createElement(lSe.Provider,{value:t},r({ourProps:s,theirProps:n,defaultTag:iut,name:"Popover.Group"}))}let sut=O.createContext(null),rut=cp(tut),out=cp(nut),aut=Object.assign(rut,{Group:out});const yN={Idle:{kind:"Idle"},Tracked:i=>({kind:"Tracked",position:i}),Moved:{kind:"Moved"}};function uSe(i){let e=i.getBoundingClientRect();return`${e.x},${e.y}`}function lut(i,e,t){let n=tf();if(e.kind==="Tracked"){let s=function(){r!==uSe(i)&&(n.dispose(),t())},{position:r}=e,o=new ResizeObserver(s);o.observe(i),n.add(()=>o.disconnect()),n.addEventListener(window,"scroll",s,{passive:!0}),n.addEventListener(window,"resize",s)}return()=>n.dispose()}var uut=Object.defineProperty,cut=(i,e,t)=>e in i?uut(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t,cSe=(i,e,t)=>(cut(i,typeof e!="symbol"?e+"":e,t),t),gs=(i=>(i[i.Open=0]="Open",i[i.Closed=1]="Closed",i))(gs||{}),Zd=(i=>(i[i.Single=0]="Single",i[i.Multi=1]="Multi",i))(Zd||{}),Fg=(i=>(i[i.Pointer=0]="Pointer",i[i.Focus=1]="Focus",i[i.Other=2]="Other",i))(Fg||{}),dSe=(i=>(i[i.OpenCombobox=0]="OpenCombobox",i[i.CloseCombobox=1]="CloseCombobox",i[i.GoToOption=2]="GoToOption",i[i.SetTyping=3]="SetTyping",i[i.RegisterOption=4]="RegisterOption",i[i.UnregisterOption=5]="UnregisterOption",i[i.DefaultToFirstOption=6]="DefaultToFirstOption",i[i.SetActivationTrigger=7]="SetActivationTrigger",i[i.UpdateVirtualConfiguration=8]="UpdateVirtualConfiguration",i[i.SetInputElement=9]="SetInputElement",i[i.SetButtonElement=10]="SetButtonElement",i[i.SetOptionsElement=11]="SetOptionsElement",i[i.MarkInputAsMoved=12]="MarkInputAsMoved",i))(dSe||{});function VY(i,e=t=>t){let t=i.activeOptionIndex!==null?i.options[i.activeOptionIndex]:null,n=e(i.options.slice()),s=n.length>0&&n[0].dataRef.current.order!==null?n.sort((o,a)=>o.dataRef.current.order-a.dataRef.current.order):Xat(n,o=>o.dataRef.current.domRef.current),r=t?s.indexOf(t):null;return r===-1&&(r=null),{options:s,activeOptionIndex:r}}let dut={1(i){var e;if((e=i.dataRef.current)!=null&&e.disabled||i.comboboxState===1)return i;let t=i.inputElement?yN.Tracked(uSe(i.inputElement)):i.inputPositionState;return{...i,activeOptionIndex:null,comboboxState:1,isTyping:!1,activationTrigger:2,inputPositionState:t,__demoMode:!1}},0(i){var e,t;if((e=i.dataRef.current)!=null&&e.disabled||i.comboboxState===0)return i;if((t=i.dataRef.current)!=null&&t.value){let n=i.dataRef.current.calculateIndex(i.dataRef.current.value);if(n!==-1)return{...i,activeOptionIndex:n,comboboxState:0,__demoMode:!1,inputPositionState:yN.Idle}}return{...i,comboboxState:0,inputPositionState:yN.Idle,__demoMode:!1}},3(i,e){return i.isTyping===e.isTyping?i:{...i,isTyping:e.isTyping}},2(i,e){var t,n,s,r;if((t=i.dataRef.current)!=null&&t.disabled||i.optionsElement&&!((n=i.dataRef.current)!=null&&n.optionsPropsRef.current.static)&&i.comboboxState===1)return i;if(i.virtual){let{options:u,disabled:c}=i.virtual,d=e.focus===El.Specific?e.idx:rSe(e,{resolveItems:()=>u,resolveActiveIndex:()=>{var f,g;return(g=(f=i.activeOptionIndex)!=null?f:u.findIndex(b=>!c(b)))!=null?g:null},resolveDisabled:c,resolveId(){throw new Error("Function not implemented.")}}),h=(s=e.trigger)!=null?s:2;return i.activeOptionIndex===d&&i.activationTrigger===h?i:{...i,activeOptionIndex:d,activationTrigger:h,isTyping:!1,__demoMode:!1}}let o=VY(i);if(o.activeOptionIndex===null){let u=o.options.findIndex(c=>!c.dataRef.current.disabled);u!==-1&&(o.activeOptionIndex=u)}let a=e.focus===El.Specific?e.idx:rSe(e,{resolveItems:()=>o.options,resolveActiveIndex:()=>o.activeOptionIndex,resolveId:u=>u.id,resolveDisabled:u=>u.dataRef.current.disabled}),l=(r=e.trigger)!=null?r:2;return i.activeOptionIndex===a&&i.activationTrigger===l?i:{...i,...o,isTyping:!1,activeOptionIndex:a,activationTrigger:l,__demoMode:!1}},4:(i,e)=>{var t,n,s,r;if((t=i.dataRef.current)!=null&&t.virtual)return{...i,options:[...i.options,e.payload]};let o=e.payload,a=VY(i,u=>(u.push(o),u));i.activeOptionIndex===null&&(s=(n=i.dataRef.current).isSelected)!=null&&s.call(n,e.payload.dataRef.current.value)&&(a.activeOptionIndex=a.options.indexOf(o));let l={...i,...a,activationTrigger:2};return(r=i.dataRef.current)!=null&&r.__demoMode&&i.dataRef.current.value===void 0&&(l.activeOptionIndex=0),l},5:(i,e)=>{var t;if((t=i.dataRef.current)!=null&&t.virtual)return{...i,options:i.options.filter(s=>s.id!==e.id)};let n=VY(i,s=>{let r=s.findIndex(o=>o.id===e.id);return r!==-1&&s.splice(r,1),s});return{...i,...n,activationTrigger:2}},6:(i,e)=>i.defaultToFirstOption===e.value?i:{...i,defaultToFirstOption:e.value},7:(i,e)=>i.activationTrigger===e.trigger?i:{...i,activationTrigger:e.trigger},8:(i,e)=>{var t,n;if(i.virtual===null)return{...i,virtual:{options:e.options,disabled:(t=e.disabled)!=null?t:()=>!1}};if(i.virtual.options===e.options&&i.virtual.disabled===e.disabled)return i;let s=i.activeOptionIndex;if(i.activeOptionIndex!==null){let r=e.options.indexOf(i.virtual.options[i.activeOptionIndex]);r!==-1?s=r:s=null}return{...i,activeOptionIndex:s,virtual:{options:e.options,disabled:(n=e.disabled)!=null?n:()=>!1}}},9:(i,e)=>i.inputElement===e.element?i:{...i,inputElement:e.element},10:(i,e)=>i.buttonElement===e.element?i:{...i,buttonElement:e.element},11:(i,e)=>i.optionsElement===e.element?i:{...i,optionsElement:e.element},12(i){return i.inputPositionState.kind!=="Tracked"?i:{...i,inputPositionState:yN.Moved}}},hut=class _We extends Lwe{constructor(e){super(e),cSe(this,"actions",{onChange:t=>{let{onChange:n,compare:s,mode:r,value:o}=this.state.dataRef.current;return Rg(r,{0:()=>n?.(t),1:()=>{let a=o.slice(),l=a.findIndex(u=>s(u,t));return l===-1?a.push(t):a.splice(l,1),n?.(a)}})},registerOption:(t,n)=>(this.send({type:4,payload:{id:t,dataRef:n}}),()=>{this.state.activeOptionIndex===this.state.dataRef.current.calculateIndex(n.current.value)&&this.send({type:6,value:!0}),this.send({type:5,id:t})}),goToOption:(t,n)=>(this.send({type:6,value:!1}),this.send({type:2,...t,trigger:n})),setIsTyping:t=>{this.send({type:3,isTyping:t})},closeCombobox:()=>{var t,n;this.send({type:1}),this.send({type:6,value:!1}),(n=(t=this.state.dataRef.current).onClose)==null||n.call(t)},openCombobox:()=>{this.send({type:0}),this.send({type:6,value:!0})},setActivationTrigger:t=>{this.send({type:7,trigger:t})},selectActiveOption:()=>{let t=this.selectors.activeOptionIndex(this.state);if(t!==null){if(this.actions.setIsTyping(!1),this.state.virtual)this.actions.onChange(this.state.virtual.options[t]);else{let{dataRef:n}=this.state.options[t];this.actions.onChange(n.current.value)}this.actions.goToOption({focus:El.Specific,idx:t})}},setInputElement:t=>{this.send({type:9,element:t})},setButtonElement:t=>{this.send({type:10,element:t})},setOptionsElement:t=>{this.send({type:11,element:t})}}),cSe(this,"selectors",{activeDescendantId:t=>{var n,s;let r=this.selectors.activeOptionIndex(t);if(r!==null)return t.virtual?(s=t.options.find(o=>!o.dataRef.current.disabled&&t.dataRef.current.compare(o.dataRef.current.value,t.virtual.options[r])))==null?void 0:s.id:(n=t.options[r])==null?void 0:n.id},activeOptionIndex:t=>{if(t.defaultToFirstOption&&t.activeOptionIndex===null&&(t.virtual?t.virtual.options.length>0:t.options.length>0)){if(t.virtual){let{options:s,disabled:r}=t.virtual,o=s.findIndex(a=>{var l;return!((l=r?.(a))!=null&&l)});if(o!==-1)return o}let n=t.options.findIndex(s=>!s.dataRef.current.disabled);if(n!==-1)return n}return t.activeOptionIndex},activeOption:t=>{var n,s;let r=this.selectors.activeOptionIndex(t);return r===null?null:t.virtual?t.virtual.options[r??0]:(s=(n=t.options[r])==null?void 0:n.dataRef.current.value)!=null?s:null},isActive:(t,n,s)=>{var r;let o=this.selectors.activeOptionIndex(t);return o===null?!1:t.virtual?o===t.dataRef.current.calculateIndex(n):((r=t.options[o])==null?void 0:r.id)===s},shouldScrollIntoView:(t,n,s)=>!(t.virtual||t.__demoMode||t.comboboxState!==0||t.activationTrigger===0||!this.selectors.isActive(t,n,s)),didInputMove(t){return t.inputPositionState.kind==="Moved"}});{let t=this.state.id,n=EY.get(null);this.disposables.add(n.on(Pwe.Push,s=>{!n.selectors.isTop(s,t)&&this.state.comboboxState===0&&this.actions.closeCombobox()})),this.on(0,()=>n.actions.push(t)),this.on(1,()=>n.actions.pop(t))}this.disposables.group(t=>{this.on(1,n=>{n.inputElement&&(t.dispose(),t.add(lut(n.inputElement,n.inputPositionState,()=>{this.send({type:12})})))})})}static new({id:e,virtual:t=null,__demoMode:n=!1}){var s;return new _We({id:e,dataRef:{current:{}},comboboxState:n?0:1,isTyping:!1,options:[],virtual:t?{options:t.options,disabled:(s=t.disabled)!=null?s:()=>!1}:null,activeOptionIndex:null,activationTrigger:2,inputElement:null,buttonElement:null,optionsElement:null,__demoMode:n,inputPositionState:yN.Idle})}reduce(e,t){return Rg(t.type,dut,e,t)}};const hSe=O.createContext(null);function vN(i){let e=O.useContext(hSe);if(e===null){let t=new Error(`<${i} /> is missing a parent <Combobox /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,fSe),t}return e}function fSe({id:i,virtual:e=null,__demoMode:t=!1}){let n=O.useMemo(()=>hut.new({id:i,virtual:e,__demoMode:t}),[]);return oSe(()=>n.dispose()),n}let CN=O.createContext(null);CN.displayName="ComboboxDataContext";function hE(i){let e=O.useContext(CN);if(e===null){let t=new Error(`<${i} /> is missing a parent <Combobox /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,hE),t}return e}let pSe=O.createContext(null);function fut(i){let e=vN("VirtualProvider"),t=hE("VirtualProvider"),{options:n}=t.virtual,s=Dl(e,f=>f.optionsElement),[r,o]=O.useMemo(()=>{let f=s;if(!f)return[0,0];let g=window.getComputedStyle(f);return[parseFloat(g.paddingBlockStart||g.paddingTop),parseFloat(g.paddingBlockEnd||g.paddingBottom)]},[s]),a=kat({enabled:n.length!==0,scrollPaddingStart:r,scrollPaddingEnd:o,count:n.length,estimateSize(){return 40},getScrollElement(){return e.state.optionsElement},overscan:12}),[l,u]=O.useState(0);Ia(()=>{u(f=>f+1)},[n]);let c=a.getVirtualItems(),d=Dl(e,f=>f.activationTrigger===Fg.Pointer),h=Dl(e,e.selectors.activeOptionIndex);return c.length===0?null:xn.createElement(pSe.Provider,{value:a},xn.createElement("div",{style:{position:"relative",width:"100%",height:`${a.getTotalSize()}px`},ref:f=>{f&&(d||h!==null&&n.length>h&&a.scrollToIndex(h))}},c.map(f=>{var g;return xn.createElement(O.Fragment,{key:f.key},xn.cloneElement((g=i.children)==null?void 0:g.call(i,{...i.slot,option:n[f.index]}),{key:`${l}-${f.key}`,"data-index":f.index,"aria-setsize":n.length,"aria-posinset":f.index+1,style:{position:"absolute",top:0,left:0,transform:`translateY(${f.start}px)`,overflowAnchor:"none"}}))})))}let put=O.Fragment;function gut(i,e){let t=O.useId(),n=_Y(),{value:s,defaultValue:r,onChange:o,form:a,name:l,by:u,invalid:c=!1,disabled:d=n||!1,onClose:h,__demoMode:f=!1,multiple:g=!1,immediate:b=!1,virtual:y=null,nullable:S,...x}=i,E=Got(r),[k=g?[]:void 0,A]=qot(s,o,E),I=fSe({id:t,virtual:y,__demoMode:f}),M=O.useRef({static:!1,hold:!1}),B=Aat(u),F=ks($e=>y?u===null?y.options.indexOf($e):y.options.findIndex(Dt=>B(Dt,$e)):I.state.options.findIndex(Dt=>B(Dt.dataRef.current.value,$e))),G=O.useCallback($e=>Rg(Z.mode,{[Zd.Multi]:()=>k.some(Dt=>B(Dt,$e)),[Zd.Single]:()=>B(k,$e)}),[k]),q=Dl(I,$e=>$e.virtual),ee=ks(()=>h?.()),Z=O.useMemo(()=>({__demoMode:f,immediate:b,optionsPropsRef:M,value:k,defaultValue:E,disabled:d,invalid:c,mode:g?Zd.Multi:Zd.Single,virtual:y?q:null,onChange:A,isSelected:G,calculateIndex:F,compare:B,onClose:ee}),[f,b,M,k,E,d,c,g,y,q,A,G,F,B,ee]);Ia(()=>{var $e;y&&I.send({type:dSe.UpdateVirtualConfiguration,options:y.options,disabled:($e=y.disabled)!=null?$e:null})},[y,y?.options,y?.disabled]),Ia(()=>{I.state.dataRef.current=Z},[Z]);let[K,oe,Y,de]=Dl(I,$e=>[$e.comboboxState,$e.buttonElement,$e.inputElement,$e.optionsElement]),ae=EY.get(null),he=Dl(ae,O.useCallback($e=>ae.selectors.isTop($e,t),[ae,t]));Jat(he,[oe,Y,de],()=>I.actions.closeCombobox());let Ce=Dl(I,I.selectors.activeOptionIndex),le=Dl(I,I.selectors.activeOption),J=aC({open:K===gs.Open,disabled:d,invalid:c,activeIndex:Ce,activeOption:le,value:k}),[Ee,we]=hat(),Ae=e===null?{}:{ref:e},Ue=O.useCallback(()=>{if(E!==void 0)return A?.(E)},[A,E]),ze=up();return xn.createElement(we,{value:Ee,props:{htmlFor:Y?.id},slot:{open:K===gs.Open,disabled:d}},xn.createElement($lt,null,xn.createElement(CN.Provider,{value:Z},xn.createElement(hSe.Provider,{value:I},xn.createElement(Klt,{value:Rg(K,{[gs.Open]:bN.Open,[gs.Closed]:bN.Closed})},l!=null&&xn.createElement(Jot,{disabled:d,data:k!=null?{[l]:k}:{},form:a,onReset:Ue}),ze({ourProps:Ae,theirProps:x,slot:J,defaultTag:put,name:"Combobox"}))))))}let mut="input";function _ut(i,e){var t,n;let s=vN("Combobox.Input"),r=hE("Combobox.Input"),o=O.useId(),a=cwe(),{id:l=a||`headlessui-combobox-input-${o}`,onChange:u,displayValue:c,disabled:d=r.disabled||!1,autoFocus:h=!1,type:f="text",...g}=i,b=O.useRef(null),y=A0(b,e,Vlt(),s.actions.setInputElement),[S,x]=Dl(s,J=>[J.comboboxState,J.isTyping]),E=uE(),k=ks(()=>{s.actions.onChange(null),s.state.optionsElement&&(s.state.optionsElement.scrollTop=0),s.actions.goToOption({focus:El.Nothing})}),A=O.useMemo(()=>{var J;return typeof c=="function"&&r.value!==void 0?(J=c(r.value))!=null?J:"":typeof r.value=="string"?r.value:""},[r.value,c]);Kwe(([J,Ee],[we,Ae])=>{if(s.state.isTyping)return;let Ue=b.current;Ue&&((Ae===gs.Open&&Ee===gs.Closed||J!==we)&&(Ue.value=J),requestAnimationFrame(()=>{if(s.state.isTyping||!Ue||iwe(Ue))return;let{selectionStart:ze,selectionEnd:$e}=Ue;Math.abs(($e??0)-(ze??0))===0&&ze===0&&Ue.setSelectionRange(Ue.value.length,Ue.value.length)}))},[A,S,x]),Kwe(([J],[Ee])=>{if(J===gs.Open&&Ee===gs.Closed){if(s.state.isTyping)return;let we=b.current;if(!we)return;let Ae=we.value,{selectionStart:Ue,selectionEnd:ze,selectionDirection:$e}=we;we.value="",we.value=Ae,$e!==null?we.setSelectionRange(Ue,ze,$e):we.setSelectionRange(Ue,ze)}},[S]);let I=O.useRef(!1),M=ks(()=>{I.current=!0}),B=ks(()=>{E.nextFrame(()=>{I.current=!1})}),F=ks(J=>{switch(s.actions.setIsTyping(!0),J.key){case nc.Enter:if(s.state.comboboxState!==gs.Open||I.current)return;if(J.preventDefault(),J.stopPropagation(),s.selectors.activeOptionIndex(s.state)===null){s.actions.closeCombobox();return}s.actions.selectActiveOption(),r.mode===Zd.Single&&s.actions.closeCombobox();break;case nc.ArrowDown:return J.preventDefault(),J.stopPropagation(),Rg(s.state.comboboxState,{[gs.Open]:()=>s.actions.goToOption({focus:El.Next}),[gs.Closed]:()=>s.actions.openCombobox()});case nc.ArrowUp:return J.preventDefault(),J.stopPropagation(),Rg(s.state.comboboxState,{[gs.Open]:()=>s.actions.goToOption({focus:El.Previous}),[gs.Closed]:()=>{ku.flushSync(()=>s.actions.openCombobox()),r.value||s.actions.goToOption({focus:El.Last})}});case nc.Home:if(s.state.comboboxState===gs.Closed||J.shiftKey)break;return J.preventDefault(),J.stopPropagation(),s.actions.goToOption({focus:El.First});case nc.PageUp:return J.preventDefault(),J.stopPropagation(),s.actions.goToOption({focus:El.First});case nc.End:if(s.state.comboboxState===gs.Closed||J.shiftKey)break;return J.preventDefault(),J.stopPropagation(),s.actions.goToOption({focus:El.Last});case nc.PageDown:return J.preventDefault(),J.stopPropagation(),s.actions.goToOption({focus:El.Last});case nc.Escape:return s.state.comboboxState!==gs.Open?void 0:(J.preventDefault(),s.state.optionsElement&&!r.optionsPropsRef.current.static&&J.stopPropagation(),r.mode===Zd.Single&&r.value===null&&k(),s.actions.closeCombobox());case nc.Tab:if(s.actions.setIsTyping(!1),s.state.comboboxState!==gs.Open)return;r.mode===Zd.Single&&s.state.activationTrigger!==Fg.Focus&&s.actions.selectActiveOption(),s.actions.closeCombobox();break}}),G=ks(J=>{u?.(J),r.mode===Zd.Single&&J.target.value===""&&k(),s.actions.openCombobox()}),q=ks(J=>{var Ee,we,Ae;let Ue=(Ee=J.relatedTarget)!=null?Ee:dC.find(ze=>ze!==J.currentTarget);if(!((we=s.state.optionsElement)!=null&&we.contains(Ue))&&!((Ae=s.state.buttonElement)!=null&&Ae.contains(Ue))&&s.state.comboboxState===gs.Open)return J.preventDefault(),r.mode===Zd.Single&&r.value===null&&k(),s.actions.closeCombobox()}),ee=ks(J=>{var Ee,we,Ae;let Ue=(Ee=J.relatedTarget)!=null?Ee:dC.find(ze=>ze!==J.currentTarget);(we=s.state.buttonElement)!=null&&we.contains(Ue)||(Ae=s.state.optionsElement)!=null&&Ae.contains(Ue)||r.disabled||r.immediate&&s.state.comboboxState!==gs.Open&&E.microTask(()=>{ku.flushSync(()=>s.actions.openCombobox()),s.actions.setActivationTrigger(Fg.Focus)})}),Z=i5(),K=lat(),{isFocused:oe,focusProps:Y}=twe({autoFocus:h}),{isHovered:de,hoverProps:ae}=ewe({isDisabled:d}),he=Dl(s,J=>J.optionsElement),Ce=aC({open:S===gs.Open,disabled:d,invalid:r.invalid,hover:de,focus:oe,autofocus:h}),le=yY({ref:y,id:l,role:"combobox",type:f,"aria-controls":he?.id,"aria-expanded":S===gs.Open,"aria-activedescendant":Dl(s,s.selectors.activeDescendantId),"aria-labelledby":Z,"aria-describedby":K,"aria-autocomplete":"list",defaultValue:(n=(t=i.defaultValue)!=null?t:r.defaultValue!==void 0?c?.(r.defaultValue):null)!=null?n:r.defaultValue,disabled:d||void 0,autoFocus:h,onCompositionStart:M,onCompositionEnd:B,onKeyDown:F,onChange:G,onFocus:ee,onBlur:q},Y,ae);return up()({ourProps:le,theirProps:g,slot:Ce,defaultTag:mut,name:"Combobox.Input"})}let but="button";function yut(i,e){let t=vN("Combobox.Button"),n=hE("Combobox.Button"),[s,r]=O.useState(null),o=A0(e,r,t.actions.setButtonElement),a=O.useId(),{id:l=`headlessui-combobox-button-${a}`,disabled:u=n.disabled||!1,autoFocus:c=!1,...d}=i,[h,f,g]=Dl(t,ee=>[ee.comboboxState,ee.inputElement,ee.optionsElement]),b=Uwe(f),y=h===gs.Open;ilt(y,{trigger:s,action:O.useCallback(ee=>{if(s!=null&&s.contains(ee.target)||f!=null&&f.contains(ee.target))return mN.Ignore;let Z=ee.target.closest('[role="option"]:not([data-disabled])');return Jb(Z)?mN.Select(Z):g!=null&&g.contains(ee.target)?mN.Ignore:mN.Close},[s,f,g]),close:t.actions.closeCombobox,select:t.actions.selectActiveOption});let S=ks(ee=>{switch(ee.key){case nc.Space:case nc.Enter:ee.preventDefault(),ee.stopPropagation(),t.state.comboboxState===gs.Closed&&ku.flushSync(()=>t.actions.openCombobox()),b();return;case nc.ArrowDown:ee.preventDefault(),ee.stopPropagation(),t.state.comboboxState===gs.Closed&&(ku.flushSync(()=>t.actions.openCombobox()),t.state.dataRef.current.value||t.actions.goToOption({focus:El.First})),b();return;case nc.ArrowUp:ee.preventDefault(),ee.stopPropagation(),t.state.comboboxState===gs.Closed&&(ku.flushSync(()=>t.actions.openCombobox()),t.state.dataRef.current.value||t.actions.goToOption({focus:El.Last})),b();return;case nc.Escape:if(t.state.comboboxState!==gs.Open)return;ee.preventDefault(),t.state.optionsElement&&!n.optionsPropsRef.current.static&&ee.stopPropagation(),ku.flushSync(()=>t.actions.closeCombobox()),b();return;default:return}}),x=Nat(()=>{t.state.comboboxState===gs.Open?t.actions.closeCombobox():t.actions.openCombobox(),b()}),E=i5([l]),{isFocusVisible:k,focusProps:A}=twe({autoFocus:c}),{isHovered:I,hoverProps:M}=ewe({isDisabled:u}),{pressed:B,pressProps:F}=Bot({disabled:u}),G=aC({open:h===gs.Open,active:B||h===gs.Open,disabled:u,invalid:n.invalid,value:n.value,hover:I,focus:k}),q=yY({ref:o,id:l,type:slt(i,s),tabIndex:-1,"aria-haspopup":"listbox","aria-controls":g?.id,"aria-expanded":h===gs.Open,"aria-labelledby":E,disabled:u||void 0,autoFocus:c,onKeyDown:S},x,A,M,F);return up()({ourProps:q,theirProps:d,slot:G,defaultTag:but,name:"Combobox.Button"})}let vut="div",Cut=bY.RenderStrategy|bY.Static;function wut(i,e){var t,n,s;let r=O.useId(),{id:o=`headlessui-combobox-options-${r}`,hold:a=!1,anchor:l,portal:u=!1,modal:c=!0,transition:d=!1,...h}=i,f=vN("Combobox.Options"),g=hE("Combobox.Options"),b=Blt(l);b&&(u=!0);let[y,S]=Hlt(b),[x,E]=O.useState(null),k=Wlt(),A=A0(e,b?y:null,f.actions.setOptionsElement,E),[I,M,B,F,G]=Dl(f,ii=>[ii.comboboxState,ii.inputElement,ii.buttonElement,ii.optionsElement,ii.activationTrigger]),q=IY(M||B),ee=IY(F),Z=Glt(),[K,oe]=mlt(d,x,Z!==null?(Z&bN.Open)===bN.Open:I===gs.Open);zat(K,M,f.actions.closeCombobox);let Y=g.__demoMode?!1:c&&I===gs.Open;dlt(Y,ee);let de=g.__demoMode?!1:c&&I===gs.Open;Uat(de,{allowed:O.useCallback(()=>[M,B,F],[M,B,F])});let ae=Dl(f,f.selectors.didInputMove)?!1:K;Ia(()=>{var ii;g.optionsPropsRef.current.static=(ii=i.static)!=null?ii:!1},[g.optionsPropsRef,i.static]),Ia(()=>{g.optionsPropsRef.current.hold=a},[g.optionsPropsRef,a]),Clt(I===gs.Open,{container:F,accept(ii){return ii.getAttribute("role")==="option"?NodeFilter.FILTER_REJECT:ii.hasAttribute("role")?NodeFilter.FILTER_SKIP:NodeFilter.FILTER_ACCEPT},walk(ii){ii.setAttribute("role","none")}});let he=i5([B?.id]),Ce=aC({open:I===gs.Open,option:void 0}),le=ks(()=>{f.actions.setActivationTrigger(Fg.Pointer)}),J=ks(ii=>{ii.preventDefault(),f.actions.setActivationTrigger(Fg.Pointer)}),Ee=yY(b?k():{},{"aria-labelledby":he,role:"listbox","aria-multiselectable":g.mode===Zd.Multi?!0:void 0,id:o,ref:A,style:{...h.style,...S,"--input-width":Dwe(K,M,!0).width,"--button-width":Dwe(K,B,!0).width},onWheel:G===Fg.Pointer?void 0:le,onMouseDown:J,...glt(oe)}),we=K&&I===gs.Closed&&!i.static,Ae=FY(we,(t=g.virtual)==null?void 0:t.options),Ue=FY(we,g.value),ze=O.useCallback(ii=>g.compare(Ue,ii),[g.compare,Ue]),$e=O.useMemo(()=>{if(!g.virtual)return g;if(Ae===void 0)throw new Error("Missing `options` in virtual mode");return Ae!==g.virtual.options?{...g,virtual:{...g.virtual,options:Ae}}:g},[g,Ae,(n=g.virtual)==null?void 0:n.options]);g.virtual&&Object.assign(h,{children:xn.createElement(CN.Provider,{value:$e},xn.createElement(fut,{slot:Ce},h.children))});let Dt=up(),$t=O.useMemo(()=>g.mode===Zd.Multi?g:{...g,isSelected:ze},[g,ze]);return xn.createElement(aut,{enabled:u?i.static||K:!1,ownerDocument:q},xn.createElement(CN.Provider,{value:$t},Dt({ourProps:Ee,theirProps:{...h,children:xn.createElement(qlt,{freeze:we},typeof h.children=="function"?(s=h.children)==null?void 0:s.call(h,Ce):h.children)},slot:Ce,defaultTag:vut,features:Cut,visible:ae,name:"Combobox.Options"})))}let Sut="div";function xut(i,e){var t,n,s;let r=hE("Combobox.Option"),o=vN("Combobox.Option"),a=O.useId(),{id:l=`headlessui-combobox-option-${a}`,value:u,disabled:c=(s=(n=(t=r.virtual)==null?void 0:t.disabled)==null?void 0:n.call(t,u))!=null?s:!1,order:d=null,...h}=i,[f]=Dl(o,oe=>[oe.inputElement]),g=Uwe(f),b=Dl(o,O.useCallback(oe=>o.selectors.isActive(oe,u,l),[u,l])),y=r.isSelected(u),S=O.useRef(null),x=oC({disabled:c,value:u,domRef:S,order:d}),E=O.useContext(pSe),k=A0(e,S,E?E.measureElement:null),A=ks(()=>{o.actions.setIsTyping(!1),o.actions.onChange(u)});Ia(()=>o.actions.registerOption(l,x),[x,l]);let I=Dl(o,O.useCallback(oe=>o.selectors.shouldScrollIntoView(oe,u,l),[u,l]));Ia(()=>{if(I)return tf().requestAnimationFrame(()=>{var oe,Y;(Y=(oe=S.current)==null?void 0:oe.scrollIntoView)==null||Y.call(oe,{block:"nearest"})})},[I,S]);let M=ks(oe=>{oe.preventDefault(),oe.button===SY.Left&&(c||(A(),NY()||requestAnimationFrame(()=>g()),r.mode===Zd.Single&&o.actions.closeCombobox()))}),B=ks(()=>{if(c)return o.actions.goToOption({focus:El.Nothing});let oe=r.calculateIndex(u);o.actions.goToOption({focus:El.Specific,idx:oe})}),F=hlt(),G=ks(oe=>F.update(oe)),q=ks(oe=>{if(!F.wasMoved(oe)||c||b&&o.state.activationTrigger===Fg.Pointer)return;let Y=r.calculateIndex(u);o.actions.goToOption({focus:El.Specific,idx:Y},Fg.Pointer)}),ee=ks(oe=>{F.wasMoved(oe)&&(c||b&&(r.optionsPropsRef.current.hold||o.state.activationTrigger===Fg.Pointer&&o.actions.goToOption({focus:El.Nothing})))}),Z=aC({active:b,focus:b,selected:y,disabled:c}),K={id:l,ref:k,role:"option",tabIndex:c===!0?void 0:-1,"aria-disabled":c===!0?!0:void 0,"aria-selected":y,disabled:void 0,onMouseDown:M,onFocus:B,onPointerEnter:G,onMouseEnter:G,onPointerMove:q,onMouseMove:q,onPointerLeave:ee,onMouseLeave:ee};return up()({ourProps:K,theirProps:h,slot:Z,defaultTag:Sut,name:"Combobox.Option"})}let Dut=cp(gut),Eut=cp(yut),gSe=cp(_ut),Tut=mat,mSe=cp(wut),n5=cp(xut),kut=Object.assign(Dut,{Input:gSe,Button:Eut,Label:Tut,Options:mSe,Option:n5});const Lut=()=>{const i=Ai.c(32),e=zY(),{push:t}=r5(),n=O.useRef(null),s=Aut(),[r,o]=O.useState("");let a;i[0]!==s||i[1]!==r?(a=()=>s(r),i[0]=s,i[1]=r,i[2]=a):a=i[2];const[l,u]=O.useState(a);let c;i[3]!==s?(c=ND(200,Z=>{u(s(Z))}),i[3]=s,i[4]=c):c=i[4];const d=c,[h]=O.useState(n),f=h.current===document.activeElement;let g,b;i[5]!==d||i[6]!==r?(g=()=>{d(r)},b=[d,r],i[5]=d,i[6]=r,i[7]=g,i[8]=b):(g=i[7],b=i[8]),O.useEffect(g,b);let y,S,x;if(i[9]!==e||i[10]!==t){y=e.at(-1);let Z;i[14]!==t?(Z=K=>{K&&t("field"in K?{name:K.field.name,def:K.field}:{name:K.type.name,def:K.type})},i[14]=t,i[15]=Z):Z=i[15],S=Z,x=e.length===1||en(y.def)||_n(y.def)||os(y.def),i[9]=e,i[10]=t,i[11]=y,i[12]=S,i[13]=x}else y=i[11],S=i[12],x=i[13];if(!x)return null;const k=f?void 0:"idle",A=`Search ${y.name}...`;let I,M;i[16]===Symbol.for("react.memo_cache_sentinel")?(I=()=>{n.current.focus()},M=H.jsx(THe,{}),i[16]=I,i[17]=M):(I=i[16],M=i[17]);let B,F;i[18]===Symbol.for("react.memo_cache_sentinel")?(F=Z=>o(Z.target.value),B=Fv(Fv(ca.searchInDocs.key).replaceAll("-"," ")),i[18]=B,i[19]=F):(B=i[18],F=i[19]);let G;i[20]!==r||i[21]!==B?(G=H.jsxs("div",{className:"graphiql-doc-explorer-search-input",onClick:I,children:[M,H.jsx(gSe,{autoComplete:"off",onChange:F,placeholder:B,ref:n,value:r,"data-cy":"doc-explorer-input"})]}),i[20]=r,i[21]=B,i[22]=G):G=i[22];let q;i[23]!==f||i[24]!==l?(q=f&&H.jsxs(mSe,{"data-cy":"doc-explorer-list",children:[l.within.length+l.types.length+l.fields.length===0?H.jsx("div",{className:"graphiql-doc-explorer-search-empty",children:"No results found"}):l.within.map(Iut),l.within.length>0&&l.types.length+l.fields.length>0?H.jsx("div",{className:"graphiql-doc-explorer-search-divider",children:"Other results"}):null,l.types.map(Put),l.fields.map(Mut)]}),i[23]=f,i[24]=l,i[25]=q):q=i[25];let ee;return i[26]!==S||i[27]!==G||i[28]!==q||i[29]!==k||i[30]!==A?(ee=H.jsxs(kut,{as:"div",className:"graphiql-doc-explorer-search",onChange:S,"data-state":k,"aria-label":A,children:[G,q]}),i[26]=S,i[27]=G,i[28]=q,i[29]=k,i[30]=A,i[31]=ee):ee=i[31],ee};function Aut(){const i=Ai.c(5),e=zY(),t=Aa(Nut);let n;i[0]!==e?(n=e.at(-1),i[0]=e,i[1]=n):n=i[1];const s=n;let r;return i[2]!==s||i[3]!==t?(r=o=>{const a={within:[],types:[],fields:[]};if(!t)return a;const l=s.def,u=t.getTypeMap();let c=Object.keys(u);l&&(c=c.filter(d=>d!==l.name),c.unshift(l.name));for(const d of c){if(a.within.length+a.types.length+a.fields.length>=100)break;const h=u[d];if(l!==h&&WY(d,o)&&a.types.push({type:h}),!en(h)&&!_n(h)&&!os(h))continue;const f=h.getFields();for(const g in f){const b=f[g];let y;if(!WY(g,o))if("args"in b){if(y=b.args.filter(S=>WY(S.name,o)),y.length===0)continue}else continue;a[l===h?"within":"fields"].push(...y?y.map(S=>({type:h,field:b,argument:S})):[{type:h,field:b}])}}return a},i[2]=s,i[3]=t,i[4]=r):r=i[4],r}function Nut(i){return i.schema}function WY(i,e){try{const t=e.replaceAll(/[^_0-9A-Za-z]/g,n=>"\\"+n);return new RegExp(t,"i").test(i)}catch{return i.toLowerCase().includes(e.toLowerCase())}}const HY=i=>{const e=Ai.c(2),{type:t}=i;let n;return e[0]!==t.name?(n=H.jsx("span",{className:"graphiql-doc-explorer-search-type",children:t.name}),e[0]=t.name,e[1]=n):n=e[1],n},_Se=i=>{const e=Ai.c(7),{field:t,argument:n}=i;let s;e[0]!==t.name?(s=H.jsx("span",{className:"graphiql-doc-explorer-search-field",children:t.name}),e[0]=t.name,e[1]=s):s=e[1];let r;e[2]!==n?(r=n?H.jsxs(H.Fragment,{children:["(",H.jsx("span",{className:"graphiql-doc-explorer-search-argument",children:n.name}),":"," ",G4(n.type,Rut),")"]}):null,e[2]=n,e[3]=r):r=e[3];let o;return e[4]!==s||e[5]!==r?(o=H.jsxs(H.Fragment,{children:[s,r]}),e[4]=s,e[5]=r,e[6]=o):o=e[6],o};function Iut(i,e){return H.jsx(n5,{value:i,"data-cy":"doc-explorer-option",children:H.jsx(_Se,{field:i.field,argument:i.argument})},`within-${e}`)}function Put(i,e){return H.jsx(n5,{value:i,"data-cy":"doc-explorer-option",children:H.jsx(HY,{type:i.type})},`type-${e}`)}function Mut(i,e){return H.jsxs(n5,{value:i,"data-cy":"doc-explorer-option",children:[H.jsx(HY,{type:i.type}),".",H.jsx(_Se,{field:i.field,argument:i.argument})]},`field-${e}`)}function Rut(i){return H.jsx(HY,{type:i})}const Out=i=>{const e=Ai.c(6),{field:t}=i,{push:n}=r5();let s;e[0]!==t||e[1]!==n?(s=o=>{o.preventDefault(),n({name:t.name,def:t})},e[0]=t,e[1]=n,e[2]=s):s=e[2];let r;return e[3]!==t.name||e[4]!==s?(r=H.jsx("a",{className:"graphiql-doc-explorer-field-name",onClick:s,href:"#",children:t.name}),e[3]=t.name,e[4]=s,e[5]=r):r=e[5],r},Fut=i=>{const e=Ai.c(2),{type:t}=i;let n;return e[0]!==t?(n=_0(t)?H.jsxs(H.Fragment,{children:[t.description?H.jsx(Ig,{type:"description",children:t.description}):null,H.jsx(But,{type:t}),H.jsx(Vut,{type:t}),H.jsx(Wut,{type:t}),H.jsx(Hut,{type:t})]}):null,e[0]=t,e[1]=n):n=e[1],n},But=i=>{const e=Ai.c(5),{type:t}=i;if(!en(t))return null;let n;e[0]!==t?(n=t.getInterfaces(),e[0]=t,e[1]=n):n=e[1];const s=n;let r;return e[2]!==s.length||e[3]!==t?(r=s.length>0?H.jsx(ef,{title:"Implements",children:t.getInterfaces().map($ut)}):null,e[2]=s.length,e[3]=t,e[4]=r):r=e[4],r},Vut=i=>{const e=Ai.c(12),{type:t}=i,[n,s]=O.useState(!1);let r;e[0]===Symbol.for("react.memo_cache_sentinel")?(r=()=>{s(!0)},e[0]=r):r=e[0];const o=r;if(!en(t)&&!_n(t)&&!os(t))return null;let a,l,u;if(e[1]!==t){const h=t.getFields();l=[],a=[];for(const f of Object.keys(h).map(g=>h[g]))f.deprecationReason?a.push(f):l.push(f);u=l.length>0?H.jsx(ef,{title:"Fields",children:l.map(Uut)}):null,e[1]=t,e[2]=a,e[3]=l,e[4]=u}else a=e[2],l=e[3],u=e[4];let c;e[5]!==a||e[6]!==l.length||e[7]!==n?(c=a.length>0?n||l.length===0?H.jsx(ef,{title:"Deprecated Fields",children:a.map(zut)}):H.jsx(op,{type:"button",onClick:o,children:"Show Deprecated Fields"}):null,e[5]=a,e[6]=l.length,e[7]=n,e[8]=c):c=e[8];let d;return e[9]!==u||e[10]!==c?(d=H.jsxs(H.Fragment,{children:[u,c]}),e[9]=u,e[10]=c,e[11]=d):d=e[11],d},bSe=i=>{const e=Ai.c(22),{field:t}=i;let n,s,r;if(e[0]!==t){const h="args"in t?t.args.filter(jut):[];r="graphiql-doc-explorer-item",n=H.jsx(Out,{field:t}),s=h.length>0?H.jsxs(H.Fragment,{children:["(",H.jsx("span",{children:h.map(f=>h.length===1?H.jsx(K4,{arg:f,inline:!0},f.name):H.jsx("div",{className:"graphiql-doc-explorer-argument-multiple",children:H.jsx(K4,{arg:f,inline:!0})},f.name))}),")"]}):null,e[0]=t,e[1]=n,e[2]=s,e[3]=r}else n=e[1],s=e[2],r=e[3];let o;e[4]!==t.type?(o=H.jsx(L0,{type:t.type}),e[4]=t.type,e[5]=o):o=e[5];let a;e[6]!==t?(a=H.jsx(VCe,{field:t}),e[6]=t,e[7]=a):a=e[7];let l;e[8]!==n||e[9]!==s||e[10]!==o||e[11]!==a?(l=H.jsxs("div",{children:[n,s,": ",o,a]}),e[8]=n,e[9]=s,e[10]=o,e[11]=a,e[12]=l):l=e[12];let u;e[13]!==t.description?(u=t.description?H.jsx(Ig,{type:"description",onlyShowFirstChild:!0,children:t.description}):null,e[13]=t.description,e[14]=u):u=e[14];let c;e[15]!==t.deprecationReason?(c=H.jsx(WCe,{children:t.deprecationReason}),e[15]=t.deprecationReason,e[16]=c):c=e[16];let d;return e[17]!==r||e[18]!==l||e[19]!==u||e[20]!==c?(d=H.jsxs("div",{className:r,children:[l,u,c]}),e[17]=r,e[18]=l,e[19]=u,e[20]=c,e[21]=d):d=e[21],d},Wut=i=>{const e=Ai.c(12),{type:t}=i,[n,s]=O.useState(!1);let r;e[0]===Symbol.for("react.memo_cache_sentinel")?(r=()=>{s(!0)},e[0]=r):r=e[0];const o=r;if(!Br(t))return null;let a,l,u;if(e[1]!==t){u=[],a=[];for(const h of t.getValues())h.deprecationReason?a.push(h):u.push(h);l=u.length>0&&H.jsx(ef,{title:"Enum Values",children:u.map(qut)}),e[1]=t,e[2]=a,e[3]=l,e[4]=u}else a=e[2],l=e[3],u=e[4];let c;e[5]!==a||e[6]!==n||e[7]!==u.length?(c=a.length>0&&(n||!u.length?H.jsx(ef,{title:"Deprecated Enum Values",children:a.map(Gut)}):H.jsx(op,{type:"button",onClick:o,children:"Show Deprecated Values"})),e[5]=a,e[6]=n,e[7]=u.length,e[8]=c):c=e[8];let d;return e[9]!==l||e[10]!==c?(d=H.jsxs(H.Fragment,{children:[l,c]}),e[9]=l,e[10]=c,e[11]=d):d=e[11],d},ySe=i=>{const e=Ai.c(10),{value:t}=i;let n;e[0]!==t.name?(n=H.jsx("div",{className:"graphiql-doc-explorer-enum-value",children:t.name}),e[0]=t.name,e[1]=n):n=e[1];let s;e[2]!==t.description?(s=t.description&&H.jsx(Ig,{type:"description",children:t.description}),e[2]=t.description,e[3]=s):s=e[3];let r;e[4]!==t.deprecationReason?(r=t.deprecationReason&&H.jsx(Ig,{type:"deprecation",children:t.deprecationReason}),e[4]=t.deprecationReason,e[5]=r):r=e[5];let o;return e[6]!==n||e[7]!==s||e[8]!==r?(o=H.jsxs("div",{className:"graphiql-doc-explorer-item",children:[n,s,r]}),e[6]=n,e[7]=s,e[8]=r,e[9]=o):o=e[9],o},Hut=i=>{const e=Ai.c(6),{type:t}=i,n=Aa(Kut);if(!n||!Mo(t))return null;const s=_n(t)?"Implementations":"Possible Types";let r;e[0]!==n||e[1]!==t?(r=n.getPossibleTypes(t).map(Yut),e[0]=n,e[1]=t,e[2]=r):r=e[2];let o;return e[3]!==s||e[4]!==r?(o=H.jsx(ef,{title:s,children:r}),e[3]=s,e[4]=r,e[5]=o):o=e[5],o};function $ut(i){return H.jsx("div",{children:H.jsx(L0,{type:i})},i.name)}function Uut(i){return H.jsx(bSe,{field:i},i.name)}function zut(i){return H.jsx(bSe,{field:i},i.name)}function jut(i){return!i.deprecationReason}function qut(i){return H.jsx(ySe,{value:i},i.name)}function Gut(i){return H.jsx(ySe,{value:i},i.name)}function Kut(i){return i.schema}function Yut(i){return H.jsx("div",{children:H.jsx(L0,{type:i})},i.name)}const $Y={title:"Documentation Explorer",icon:function(){return Aa(t=>t.visiblePlugin)===$Y?H.jsx(vHe,{}):H.jsx(CHe,{})},content:()=>{const i=Ai.c(39);let e;i[0]===Symbol.for("react.memo_cache_sentinel")?(e=np("fetchError","isIntrospecting","schema","validationErrors"),i[0]=e):e=i[0];const{fetchError:t,isIntrospecting:n,schema:s,validationErrors:r}=Aa(e),o=zY(),{pop:a}=r5();let l,u;if(i[1]!==o||i[2]!==t||i[3]!==n||i[4]!==s||i[5]!==r){if(u=o.at(-1),l=null,t){let x;i[8]===Symbol.for("react.memo_cache_sentinel")?(x=H.jsx("div",{className:"graphiql-doc-explorer-error",children:"Error fetching schema"}),i[8]=x):x=i[8],l=x}else if(r[0]){let x;i[9]!==r[0].message?(x=H.jsxs("div",{className:"graphiql-doc-explorer-error",children:["Schema is invalid: ",r[0].message]}),i[9]=r[0].message,i[10]=x):x=i[10],l=x}else if(n){let x;i[11]===Symbol.for("react.memo_cache_sentinel")?(x=H.jsx(N4,{}),i[11]=x):x=i[11],l=x}else if(s){if(o.length===1){let x;i[13]!==s?(x=H.jsx(lot,{schema:s}),i[13]=s,i[14]=x):x=i[14],l=x}else if(DD(u.def)){let x;i[15]!==u.def?(x=H.jsx(Fut,{type:u.def}),i[15]=u.def,i[16]=x):x=i[16],l=x}else if(u.def){let x;i[17]!==u.def?(x=H.jsx(iot,{field:u.def}),i[17]=u.def,i[18]=x):x=i[18],l=x}}else{let x;i[12]===Symbol.for("react.memo_cache_sentinel")?(x=H.jsx("div",{className:"graphiql-doc-explorer-error",children:"No GraphQL schema available"}),i[12]=x):x=i[12],l=x}i[1]=o,i[2]=t,i[3]=n,i[4]=s,i[5]=r,i[6]=l,i[7]=u}else l=i[6],u=i[7];let c;if(o.length>1){let x;i[19]!==o?(x=o.at(-2),i[19]=o,i[20]=x):x=i[20],c=x.name}let d;i[21]!==a||i[22]!==c?(d=c&&H.jsxs("a",{href:"#",className:"graphiql-doc-explorer-back",onClick:x=>{x.preventDefault(),a()},"aria-label":`Go back to ${c}`,children:[H.jsx(fHe,{}),c]}),i[21]=a,i[22]=c,i[23]=d):d=i[23];let h;i[24]!==u.name?(h=H.jsx("div",{className:"graphiql-doc-explorer-title",children:u.name}),i[24]=u.name,i[25]=h):h=i[25];let f;i[26]!==d||i[27]!==h?(f=H.jsxs("div",{className:"graphiql-doc-explorer-header-content",children:[d,h]}),i[26]=d,i[27]=h,i[28]=f):f=i[28];let g;i[29]!==u.name?(g=H.jsx(Lut,{},u.name),i[29]=u.name,i[30]=g):g=i[30];let b;i[31]!==f||i[32]!==g?(b=H.jsxs("div",{className:"graphiql-doc-explorer-header",children:[f,g]}),i[31]=f,i[32]=g,i[33]=b):b=i[33];let y;i[34]!==l?(y=H.jsx("div",{className:"graphiql-doc-explorer-content",children:l}),i[34]=l,i[35]=y):y=i[35];let S;return i[36]!==b||i[37]!==y?(S=H.jsxs("section",{className:"graphiql-doc-explorer","aria-label":"Documentation Explorer",children:[b,y]}),i[36]=b,i[37]=y,i[38]=S):S=i[38],S}},s5=[{name:"Docs"}],UY=VF((i,e)=>({explorerNavStack:s5,actions:{push(t){i(n=>{const s=n.explorerNavStack;return{explorerNavStack:s.at(-1).def===t.def?s:[...s,t]}})},pop(){i(t=>{const n=t.explorerNavStack;return{explorerNavStack:n.length>1?n.slice(0,-1):n}})},reset(){i(t=>{const n=t.explorerNavStack;return{explorerNavStack:n.length===1?n:s5}})},resolveSchemaReferenceToNavItem(t){if(!t)return;const{kind:n,typeInfo:s}=t,r=Grt(n,s);if(!r)return;const{push:o}=e().actions;switch(r.kind){case"Type":{o({name:r.type.name,def:r.type});break}case"Field":{r.type&&o({name:r.type.name,def:r.type}),o({name:r.field.name,def:r.field});break}case"Argument":{r.field&&o({name:r.field.name,def:r.field});break}case"EnumValue":{r.type&&o({name:r.type.name,def:r.type});break}}},rebuildNavStackWithSchema(t){i(n=>{const s=n.explorerNavStack;if(s.length===1)return n;const r=[...s5];let o=null;for(const a of s)if(a!==s5[0])if(a.def)if(_0(a.def)){const l=t.getType(a.def.name);if(l)r.push({name:a.name,def:l}),o=l;else break}else{if(o===null)break;if(en(o)||os(o)){const l=o.getFields()[a.name];if(l)r.push({name:a.name,def:l});else break}else{if(Tu(o)||Br(o)||_n(o)||xo(o))break;{const l=o;if(l.args.some(u=>u.name===a.name))r.push({name:a.name,def:l});else break}}}else o=null,r.push(a);return{explorerNavStack:r}})}}})),Xut=i=>{const e=Ai.c(9),{children:t}=i;let n;e[0]===Symbol.for("react.memo_cache_sentinel")?(n=np("schema","validationErrors","schemaReference"),e[0]=n):n=e[0];const{schema:s,validationErrors:r,schemaReference:o}=Aa(n);let a,l;e[1]!==o?(a=()=>{const{resolveSchemaReferenceToNavItem:h}=UY.getState().actions;h(o)},l=[o],e[1]=o,e[2]=a,e[3]=l):(a=e[2],l=e[3]),O.useEffect(a,l);let u,c;e[4]!==s||e[5]!==r?(u=()=>{const{reset:h,rebuildNavStackWithSchema:f}=UY.getState().actions;s==null||r.length>0?h():f(s)},c=[s,r],e[4]=s,e[5]=r,e[6]=u,e[7]=c):(u=e[6],c=e[7]),O.useEffect(u,c);let d;return e[8]===Symbol.for("react.memo_cache_sentinel")?(d=[],e[8]=d):d=e[8],O.useEffect(Zut,d),t},vSe=uq(UY),zY=()=>vSe(Jut),r5=()=>vSe(ect);function Qut(){const i=document.querySelector(".graphiql-doc-explorer-search-input");i?.click()}function Zut(){const i=function(t){if(!(t.altKey&&t[aj?"metaKey":"ctrlKey"]&&t.code==="KeyK"))return;const s=document.querySelector('.graphiql-sidebar button[aria-label="Show Documentation Explorer"]');s?.click(),requestAnimationFrame(Qut)};return window.addEventListener("keydown",i),()=>{window.removeEventListener("keydown",i)}}function Jut(i){return i.explorerNavStack}function ect(i){return i.actions}const tct=i=>{const e=Ai.c(2),{children:t}=i;let n;return e[0]!==t?(n=H.jsx("div",{className:"graphiql-footer",children:t}),e[0]=t,e[1]=n):n=e[1],n},ict=i=>{const e=Ai.c(4),{prettify:t,copy:n,merge:s}=i;let r;return e[0]!==n||e[1]!==s||e[2]!==t?(r=H.jsxs(H.Fragment,{children:[t,s,n]}),e[0]=n,e[1]=s,e[2]=t,e[3]=r):r=e[3],r},nct=i=>{const e=Ai.c(14),{children:t}=i,n=t===void 0?ict:t,s=typeof n=="function",{copyQuery:r,prettifyEditors:o,mergeQuery:a}=vg();if(!s)return n;let l;e[0]===Symbol.for("react.memo_cache_sentinel")?(l=H.jsx(IHe,{className:"graphiql-toolbar-icon","aria-hidden":"true"}),e[0]=l):l=e[0];let u;e[1]!==o?(u=H.jsx(k4,{onClick:o,label:`Prettify query (${ca.prettify.key})`,children:l}),e[1]=o,e[2]=u):u=e[2];const c=u;let d;e[3]===Symbol.for("react.memo_cache_sentinel")?(d=H.jsx(kHe,{className:"graphiql-toolbar-icon","aria-hidden":"true"}),e[3]=d):d=e[3];let h;e[4]!==a?(h=H.jsx(k4,{onClick:a,label:`Merge fragments into query (${ca.mergeFragments.key})`,children:d}),e[4]=a,e[5]=h):h=e[5];const f=h;let g;e[6]===Symbol.for("react.memo_cache_sentinel")?(g=H.jsx(gHe,{className:"graphiql-toolbar-icon","aria-hidden":"true"}),e[6]=g):g=e[6];let b;e[7]!==r?(b=H.jsx(k4,{onClick:r,label:`Copy query (${ca.copyQuery.key})`,children:g}),e[7]=r,e[8]=b):b=e[8];const y=b;let S;return e[9]!==n||e[10]!==y||e[11]!==f||e[12]!==c?(S=n({prettify:c,copy:y,merge:f}),e[9]=n,e[10]=y,e[11]=f,e[12]=c,e[13]=S):S=e[13],S},sct=H.jsxs("a",{className:"graphiql-logo-link",href:"https://github.com/graphql/graphiql",target:"_blank",rel:"noreferrer",children:["Graph",H.jsx("em",{children:"i"}),"QL"]}),rct=i=>{const e=Ai.c(2),{children:t}=i,n=t===void 0?sct:t;let s;return e[0]!==n?(s=H.jsx("div",{className:"graphiql-logo",children:n}),e[0]=n,e[1]=s):s=e[1],s},oct=Object.entries({"Execute query":Fv(ca.runQuery.key),"Open the Command Palette (you must have focus in the editor)":"F1","Prettify editors":ca.prettify.key,"Copy query":ca.copyQuery.key,"Re-fetch schema using introspection":ca.refetchSchema.key,"Search in documentation":Fv(ca.searchInDocs.key),"Search in editor":Fv(ca.searchInEditor.key),"Merge fragments definitions into operation definition":ca.mergeFragments.key}),act=()=>{const i=Ai.c(5);let e;i[0]===Symbol.for("react.memo_cache_sentinel")?(e=H.jsxs("table",{className:"graphiql-table",children:[H.jsx("thead",{children:H.jsxs("tr",{children:[H.jsx("th",{children:"Short Key"}),H.jsx("th",{children:"Function"})]})}),H.jsx("tbody",{children:oct.map(uct)})]}),i[0]=e):e=i[0];let t;i[1]===Symbol.for("react.memo_cache_sentinel")?(t=H.jsx("em",{children:"i"}),i[1]=t):t=i[1];let n;i[2]===Symbol.for("react.memo_cache_sentinel")?(n=H.jsx("a",{href:"https://code.visualstudio.com/docs/reference/default-keybindings",target:"_blank",rel:"noreferrer",children:"Monaco editor shortcuts"}),i[2]=n):n=i[2];let s;i[3]===Symbol.for("react.memo_cache_sentinel")?(s=H.jsx("a",{href:"https://code.visualstudio.com/shortcuts/keyboard-shortcuts-macos.pdf",target:"_blank",rel:"noreferrer",children:"macOS"}),i[3]=s):s=i[3];let r;return i[4]===Symbol.for("react.memo_cache_sentinel")?(r=H.jsxs("div",{children:[e,H.jsxs("p",{children:["This Graph",t,"QL editor uses"," ",n,", with keybindings similar to VS Code. See the full list of shortcuts for"," ",s," ","or"," ",H.jsx("a",{href:"https://code.visualstudio.com/shortcuts/keyboard-shortcuts-windows.pdf",target:"_blank",rel:"noreferrer",children:"Windows"}),"."]})]}),i[4]=r):r=i[4],r};function lct(i,e,t){return H.jsxs(O.Fragment,{children:[H.jsx("code",{className:"graphiql-key",children:i}),e!==t.length-1&&" + "]},i)}function uct(i){const[e,t]=i;return H.jsxs("tr",{children:[H.jsx("td",{children:t.split("-").map(lct)}),H.jsx("td",{children:e})]},e)}const fE={refetchSchema:`Re-fetch GraphQL schema (${ca.refetchSchema.key})`,shortCutDialog:"Open short keys dialog",settingsDialogs:"Open settings dialog"},cct=["light","dark","system"],dct=i=>{const e=Ai.c(72),{forcedTheme:t,showPersistHeadersSettings:n,setHiddenElement:s}=i,r=t&&cct.includes(t)?t:void 0,{setShouldPersistHeaders:o,introspect:a,setVisiblePlugin:l,setTheme:u}=vg();let c;e[0]===Symbol.for("react.memo_cache_sentinel")?(c=np("shouldPersistHeaders","isIntrospecting","visiblePlugin","plugins","theme","storage"),e[0]=c):c=e[0];const{shouldPersistHeaders:d,isIntrospecting:h,visiblePlugin:f,plugins:g,theme:b,storage:y}=Aa(c);let S,x;e[1]!==r||e[2]!==u?(S=()=>{r==="system"?u(null):(r==="light"||r==="dark")&&u(r)},x=[r,u],e[1]=r,e[2]=u,e[3]=S,e[4]=x):(S=e[3],x=e[4]),O.useEffect(S,x);const[E,k]=O.useState(null),[A,I]=O.useState();let M,B;e[5]===Symbol.for("react.memo_cache_sentinel")?(M=()=>{const zi=function(Ci){(aj?Ci.metaKey:Ci.ctrlKey)&&Ci.key===","&&(Ci.preventDefault(),k(hct))};return window.addEventListener("keydown",zi),()=>{window.removeEventListener("keydown",zi)}},B=[],e[5]=M,e[6]=B):(M=e[5],B=e[6]),O.useEffect(M,B);let F;e[7]===Symbol.for("react.memo_cache_sentinel")?(F=function(Xt){Xt||k(null)},e[7]=F):F=e[7];const G=F;let q;e[8]===Symbol.for("react.memo_cache_sentinel")?(q=function(Xt){Xt||(k(null),I(void 0))},e[8]=q):q=e[8];const ee=q;let Z;e[9]!==y?(Z=function(){try{y.clear(),I("success")}catch{I("error")}},e[9]=y,e[10]=Z):Z=e[10];const K=Z;let oe;e[11]!==o?(oe=zi=>{o(zi.currentTarget.dataset.value==="true")},e[11]=o,e[12]=oe):oe=e[12];const Y=oe;let de;e[13]!==u?(de=zi=>{const Xt=zi.currentTarget.dataset.theme;u(Xt||null)},e[13]=u,e[14]=de):de=e[14];const ae=de;let he;e[15]===Symbol.for("react.memo_cache_sentinel")?(he=zi=>{k(zi.currentTarget.dataset.value)},e[15]=he):he=e[15];const Ce=he;let le;e[16]!==g||e[17]!==s||e[18]!==l||e[19]!==f?(le=zi=>{const Xt=Number(zi.currentTarget.dataset.index),Ci=g.find((_i,Mi)=>Xt===Mi);Ci===f?(l(null),s("first")):(l(Ci),s(null))},e[16]=g,e[17]=s,e[18]=l,e[19]=f,e[20]=le):le=e[20];const J=le;let Ee;if(e[21]!==J||e[22]!==g||e[23]!==f){let zi;e[25]!==J||e[26]!==f?(zi=(Xt,Ci)=>{const mi=Xt===f,_i=`${mi?"Hide":"Show"} ${Xt.title}`;return H.jsx(qc,{label:_i,children:H.jsx(il,{type:"button",className:Lr(mi&&"active"),onClick:J,"data-index":Ci,"aria-label":_i,children:H.jsx(Xt.icon,{"aria-hidden":"true"})})},Xt.title)},e[25]=J,e[26]=f,e[27]=zi):zi=e[27],Ee=g.map(zi),e[21]=J,e[22]=g,e[23]=f,e[24]=Ee}else Ee=e[24];let we;e[28]===Symbol.for("react.memo_cache_sentinel")?(we={marginTop:"auto"},e[28]=we):we=e[28];const Ae=h&&"graphiql-spin";let Ue;e[29]!==Ae?(Ue=Lr(Ae),e[29]=Ae,e[30]=Ue):Ue=e[30];let ze;e[31]!==Ue?(ze=H.jsx(PHe,{className:Ue,"aria-hidden":"true"}),e[31]=Ue,e[32]=ze):ze=e[32];let $e;e[33]!==a||e[34]!==h||e[35]!==ze?($e=H.jsx(qc,{label:fE.refetchSchema,children:H.jsx(il,{type:"button",disabled:h,onClick:a,"aria-label":fE.refetchSchema,style:we,children:ze})}),e[33]=a,e[34]=h,e[35]=ze,e[36]=$e):$e=e[36];let Dt;e[37]===Symbol.for("react.memo_cache_sentinel")?(Dt=H.jsx(qc,{label:fE.shortCutDialog,children:H.jsx(il,{type:"button","data-value":"short-keys",onClick:Ce,"aria-label":fE.shortCutDialog,children:H.jsx(EHe,{"aria-hidden":"true"})})}),e[37]=Dt):Dt=e[37];let $t;e[38]===Symbol.for("react.memo_cache_sentinel")?($t=H.jsx(qc,{label:fE.settingsDialogs,children:H.jsx(il,{type:"button","data-value":"settings",onClick:Ce,"aria-label":fE.settingsDialogs,children:H.jsx(RHe,{"aria-hidden":"true"})})}),e[38]=$t):$t=e[38];const ii=E==="short-keys";let di;e[39]===Symbol.for("react.memo_cache_sentinel")?(di=H.jsx(Kb.Title,{className:"graphiql-dialog-title",children:"Short Keys"}),e[39]=di):di=e[39];let Oe;e[40]===Symbol.for("react.memo_cache_sentinel")?(Oe=H.jsxs("div",{className:"graphiql-dialog-header",children:[di,H.jsx(D4,{children:H.jsx(Kb.Description,{children:"This modal provides a list of available keyboard shortcuts and their functions."})}),H.jsx(Kb.Close,{})]}),e[40]=Oe):Oe=e[40];let ke;e[41]===Symbol.for("react.memo_cache_sentinel")?(ke=H.jsx("div",{className:"graphiql-dialog-section",children:H.jsx(act,{})}),e[41]=ke):ke=e[41];let pt;e[42]!==ii?(pt=H.jsxs(Kb,{open:ii,onOpenChange:G,children:[Oe,ke]}),e[42]=ii,e[43]=pt):pt=e[43];const Me=E==="settings";let ge;e[44]===Symbol.for("react.memo_cache_sentinel")?(ge=H.jsx(Kb.Title,{className:"graphiql-dialog-title",children:"Settings"}),e[44]=ge):ge=e[44];let mt;e[45]===Symbol.for("react.memo_cache_sentinel")?(mt=H.jsxs("div",{className:"graphiql-dialog-header",children:[ge,H.jsx(D4,{children:H.jsx(Kb.Description,{children:"This modal lets you adjust header persistence, interface theme, and clear local storage."})}),H.jsx(Kb.Close,{})]}),e[45]=mt):mt=e[45];let At;e[46]!==Y||e[47]!==d||e[48]!==n?(At=n?H.jsxs("div",{className:"graphiql-dialog-section",children:[H.jsxs("div",{children:[H.jsx("div",{className:"graphiql-dialog-section-title",children:"Persist headers"}),H.jsxs("div",{className:"graphiql-dialog-section-caption",children:["Save headers upon reloading."," ",H.jsx("span",{className:"graphiql-warning-text",children:"Only enable if you trust this device."})]})]}),H.jsxs(HG,{children:[H.jsx(op,{type:"button",id:"enable-persist-headers",className:Lr(d&&"active"),"data-value":"true",onClick:Y,children:"On"}),H.jsx(op,{type:"button",id:"disable-persist-headers",className:Lr(!d&&"active"),onClick:Y,children:"Off"})]})]}):null,e[46]=Y,e[47]=d,e[48]=n,e[49]=At):At=e[49];let Kt;e[50]!==r||e[51]!==ae||e[52]!==b?(Kt=!r&&H.jsxs("div",{className:"graphiql-dialog-section",children:[H.jsxs("div",{children:[H.jsx("div",{className:"graphiql-dialog-section-title",children:"Theme"}),H.jsx("div",{className:"graphiql-dialog-section-caption",children:"Adjust how the interface appears."})]}),H.jsxs(HG,{children:[H.jsx(op,{type:"button",className:Lr(b===null&&"active"),onClick:ae,children:"System"}),H.jsx(op,{type:"button",className:Lr(b==="light"&&"active"),"data-theme":"light",onClick:ae,children:"Light"}),H.jsx(op,{type:"button",className:Lr(b==="dark"&&"active"),"data-theme":"dark",onClick:ae,children:"Dark"})]})]}),e[50]=r,e[51]=ae,e[52]=b,e[53]=Kt):Kt=e[53];let Et;e[54]===Symbol.for("react.memo_cache_sentinel")?(Et=H.jsxs("div",{children:[H.jsx("div",{className:"graphiql-dialog-section-title",children:"Clear storage"}),H.jsx("div",{className:"graphiql-dialog-section-caption",children:"Remove all locally stored data and start fresh."})]}),e[54]=Et):Et=e[54];const Ve=A==="success";let ft;e[55]!==A?(ft={success:"Cleared data",error:"Failed"}[A]||"Clear data",e[55]=A,e[56]=ft):ft=e[56];let bt;e[57]!==A||e[58]!==K||e[59]!==Ve||e[60]!==ft?(bt=H.jsxs("div",{className:"graphiql-dialog-section",children:[Et,H.jsx(op,{type:"button",state:A,disabled:Ve,onClick:K,children:ft})]}),e[57]=A,e[58]=K,e[59]=Ve,e[60]=ft,e[61]=bt):bt=e[61];let Yt;e[62]!==Me||e[63]!==At||e[64]!==Kt||e[65]!==bt?(Yt=H.jsxs(Kb,{open:Me,onOpenChange:ee,children:[mt,At,Kt,bt]}),e[62]=Me,e[63]=At,e[64]=Kt,e[65]=bt,e[66]=Yt):Yt=e[66];let ki;return e[67]!==Ee||e[68]!==$e||e[69]!==pt||e[70]!==Yt?(ki=H.jsxs("div",{className:"graphiql-sidebar",children:[Ee,$e,Dt,$t,pt,Yt]}),e[67]=Ee,e[68]=$e,e[69]=pt,e[70]=Yt,e[71]=ki):ki=e[71],ki};function hct(i){return i==="settings"?null:"settings"}const fct=i=>{var e,t;const n=Ai.c(54);let s,r,o,a,l,u,c,d,h,f,g,b,y,S,x;n[0]!==i?({maxHistoryLength:c,plugins:S,referencePlugin:x,onEditQuery:h,onEditVariables:f,onEditHeaders:d,responseTooltip:b,defaultEditorToolsVisibility:a,isHeadersEditorEnabled:u,showPersistHeadersSettings:y,forcedTheme:l,confirmCloseTab:o,className:r,children:s,...g}=i,n[0]=i,n[1]=s,n[2]=r,n[3]=o,n[4]=a,n[5]=l,n[6]=u,n[7]=c,n[8]=d,n[9]=h,n[10]=f,n[11]=g,n[12]=b,n[13]=y,n[14]=S,n[15]=x):(s=n[1],r=n[2],o=n[3],a=n[4],l=n[5],u=n[6],c=n[7],d=n[8],h=n[9],f=n[10],g=n[11],b=n[12],y=n[13],S=n[14],x=n[15]);let E;n[16]!==S?(E=S===void 0?[FCe]:S,n[16]=S,n[17]=E):E=n[17];const k=E,A=x===void 0?$Y:x;if((e=g.toolbar)!=null&&e.additionalContent)throw new TypeError("The `toolbar.additionalContent` prop has been removed. Use render props on `GraphiQL.Toolbar` component instead.");if((t=g.toolbar)!=null&&t.additionalComponent)throw new TypeError("The `toolbar.additionalComponent` prop has been removed. Use render props on `GraphiQL.Toolbar` component instead.");if(g.keyMap)throw new TypeError("`keyMap` was removed. To use Vim or Emacs keybindings in Monaco, you can use community plugins. Monaco Vim: https://github.com/brijeshb42/monaco-vim. Monaco Emacs: https://github.com/aioutecism/monaco-emacs");if(g.readOnly)throw new TypeError("The `readOnly` prop has been removed.");const I=y??g.shouldPersistHeaders!==!1;let M;n[18]!==r||n[19]!==o||n[20]!==a||n[21]!==l||n[22]!==u||n[23]!==d||n[24]!==h||n[25]!==f||n[26]!==b||n[27]!==I?(M={showPersistHeadersSettings:I,onEditQuery:h,onEditVariables:f,onEditHeaders:d,responseTooltip:b,defaultEditorToolsVisibility:a,isHeadersEditorEnabled:u,forcedTheme:l,confirmCloseTab:o,className:r},n[18]=r,n[19]=o,n[20]=a,n[21]=l,n[22]=u,n[23]=d,n[24]=h,n[25]=f,n[26]=b,n[27]=I,n[28]=M):M=n[28];const B=M;let F;n[29]!==k?(F=k.includes(FCe),n[29]=k,n[30]=F):F=n[30];const G=F,q=G?Mrt:O.Fragment,ee=A===$Y?Xut:O.Fragment;let Z;n[31]!==A?(Z=A?[A]:[],n[31]=A,n[32]=Z):Z=n[32];let K;n[33]!==k||n[34]!==Z?(K=[...Z,...k],n[33]=k,n[34]=Z,n[35]=K):K=n[35];let oe;n[36]!==G||n[37]!==c?(oe=G&&{maxHistoryLength:c},n[36]=G,n[37]=c,n[38]=oe):oe=n[38];let Y;n[39]!==s||n[40]!==B?(Y=H.jsx(pct,{...B,children:s}),n[39]=s,n[40]=B,n[41]=Y):Y=n[41];let de;n[42]!==ee||n[43]!==Y?(de=H.jsx(ee,{children:Y}),n[42]=ee,n[43]=Y,n[44]=de):de=n[44];let ae;n[45]!==q||n[46]!==de||n[47]!==oe?(ae=H.jsx(q,{...oe,children:de}),n[45]=q,n[46]=de,n[47]=oe,n[48]=ae):ae=n[48];let he;return n[49]!==g||n[50]!==A||n[51]!==ae||n[52]!==K?(he=H.jsx(cGe,{plugins:K,referencePlugin:A,...g,children:ae}),n[49]=g,n[50]=A,n[51]=ae,n[52]=K,n[53]=he):he=n[53],he},jY="graphiql-session-tab-",CSe={newTab:"New tab"},pct=i=>{const e=Ai.c(147),{forcedTheme:t,isHeadersEditorEnabled:n,defaultEditorToolsVisibility:s,children:r,confirmCloseTab:o,className:a,onEditQuery:l,onEditVariables:u,onEditHeaders:c,responseTooltip:d,showPersistHeadersSettings:h}=i,f=n===void 0?!0:n,{addTab:g,moveTab:b,closeTab:y,changeTab:S,setVisiblePlugin:x}=vg();let E;e[0]===Symbol.for("react.memo_cache_sentinel")?(E=np("initialVariables","initialHeaders","tabs","activeTabIndex","isFetching","visiblePlugin"),e[0]=E):E=e[0];const{initialVariables:k,initialHeaders:A,tabs:I,activeTabIndex:M,isFetching:B,visiblePlugin:F}=Aa(E),G=AD(mct),q=F?.content,ee=F?void 0:"first";let Z;e[1]!==x||e[2]!==ee?(Z={defaultSizeRelation:.3333333333333333,direction:"horizontal",initiallyHidden:ee,onHiddenElementChange(Zt){Zt==="first"&&x(null)},sizeThresholdSecond:200,storageKey:"docExplorerFlex"},e[1]=x,e[2]=ee,e[3]=Z):Z=e[3];const K=Jq(Z);let oe;e[4]===Symbol.for("react.memo_cache_sentinel")?(oe={direction:"horizontal",storageKey:"editorFlex"},e[4]=oe):oe=e[4];const Y=Jq(oe);let de;e[5]!==A||e[6]!==k?(de=Zt=>{if(!(Zt==="variables"||Zt==="headers"))return typeof Zt=="boolean"?Zt?void 0:"second":k||A?void 0:"second"},e[5]=A,e[6]=k,e[7]=de):de=e[7];let ae;e[8]!==s||e[9]!==de?(ae=de(s),e[8]=s,e[9]=de,e[10]=ae):ae=e[10];let he;e[11]!==ae?(he={defaultSizeRelation:3,direction:"vertical",initiallyHidden:ae,sizeThresholdSecond:60,storageKey:"secondaryEditorFlex"},e[11]=ae,e[12]=he):he=e[12];const Ce=Jq(he);let le;e[13]!==s||e[14]!==A||e[15]!==k||e[16]!==f?(le=()=>s==="variables"||s==="headers"?s:!k&&A&&f?"headers":"variables",e[13]=s,e[14]=A,e[15]=k,e[16]=f,e[17]=le):le=e[17];const[J,Ee]=O.useState(le);let we;if(e[18]!==r){let Zt,Pe;e[20]===Symbol.for("react.memo_cache_sentinel")?(Zt=H.jsx(hC.Logo,{}),Pe=H.jsx(hC.Toolbar,{}),e[20]=Zt,e[21]=Pe):(Zt=e[20],Pe=e[21]),we=O.Children.toArray(r).reduce(_ct,{logo:Zt,toolbar:Pe,children:[]}),e[18]=r,e[19]=we}else we=e[19];const{logo:Ae,toolbar:Ue,footer:ze,children:$e}=we;let Dt;e[22]!==K?(Dt=function(){K.hiddenElement==="first"&&K.setHiddenElement(null)},e[22]=K,e[23]=Dt):Dt=e[23];const $t=Dt;let ii;e[24]!==Ce?(ii=Zt=>{Ce.hiddenElement==="second"&&Ce.setHiddenElement(null);const Pe=Zt.currentTarget.dataset.name;Ee(Pe)},e[24]=Ce,e[25]=ii):ii=e[25];const di=ii;let Oe;e[26]!==Ce?(Oe=()=>{Ce.setHiddenElement(Ce.hiddenElement==="second"?null:"second")},e[26]=Ce,e[27]=Oe):Oe=e[27];const ke=Oe;let pt;e[28]!==y||e[29]!==o?(pt=async Zt=>{const Pe=Zt.currentTarget.previousSibling,Bt=Number(Pe.id.replace(jY,""));(!o||await o(Bt))&&y(Bt)},e[28]=y,e[29]=o,e[30]=pt):pt=e[30];const Me=pt;let ge;e[31]!==S?(ge=Zt=>{const Pe=Number(Zt.currentTarget.id.replace(jY,""));S(Pe)},e[31]=S,e[32]=ge):ge=e[32];const mt=ge,At=`${Ce.hiddenElement==="second"?"Show":"Hide"} editor tools`,Kt=Ce.hiddenElement==="second"?pHe:hHe,Et=Y.firstRef;let Ve;e[33]!==G||e[34]!==$t||e[35]!==l?(Ve=G?H.jsx(Aet,{onClickReference:$t,onEdit:l}):H.jsx(N4,{}),e[33]=G,e[34]=$t,e[35]=l,e[36]=Ve):Ve=e[36];let ft;e[37]===Symbol.for("react.memo_cache_sentinel")?(ft=H.jsx(xet,{}),e[37]=ft):ft=e[37];let bt;e[38]!==Ue?(bt=H.jsxs("div",{className:"graphiql-toolbar",role:"toolbar","aria-label":"Editor Commands",children:[ft,Ue]}),e[38]=Ue,e[39]=bt):bt=e[39];let Yt;e[40]!==Ce.firstRef||e[41]!==Ve||e[42]!==bt?(Yt=H.jsxs("section",{className:"graphiql-query-editor","aria-label":"Operation Editor",ref:Ce.firstRef,children:[Ve,bt]}),e[40]=Ce.firstRef,e[41]=Ve,e[42]=bt,e[43]=Yt):Yt=e[43];const ki=Ce.dragBarRef,zi=J==="variables"&&Ce.hiddenElement!=="second"&&"active";let Xt;e[44]!==zi?(Xt=Lr(zi),e[44]=zi,e[45]=Xt):Xt=e[45];let Ci;e[46]!==di||e[47]!==Xt?(Ci=H.jsx(il,{type:"button",className:Xt,onClick:di,"data-name":"variables",children:"Variables"}),e[46]=di,e[47]=Xt,e[48]=Ci):Ci=e[48];let mi;e[49]!==J||e[50]!==Ce.hiddenElement||e[51]!==di||e[52]!==f?(mi=f&&H.jsx(il,{type:"button",className:Lr(J==="headers"&&Ce.hiddenElement!=="second"&&"active"),onClick:di,"data-name":"headers",children:"Headers"}),e[49]=J,e[50]=Ce.hiddenElement,e[51]=di,e[52]=f,e[53]=mi):mi=e[53];let _i;e[54]!==Kt?(_i=H.jsx(Kt,{className:"graphiql-chevron-icon","aria-hidden":"true"}),e[54]=Kt,e[55]=_i):_i=e[55];let Mi;e[56]!==At||e[57]!==_i||e[58]!==ke?(Mi=H.jsx(il,{type:"button",onClick:ke,"aria-label":At,className:"graphiql-toggle-editor-tools",children:_i}),e[56]=At,e[57]=_i,e[58]=ke,e[59]=Mi):Mi=e[59];let Ei;e[60]!==At||e[61]!==Mi?(Ei=H.jsx(qc,{label:At,children:Mi}),e[60]=At,e[61]=Mi,e[62]=Ei):Ei=e[62];let ai;e[63]!==Ce.dragBarRef||e[64]!==Ci||e[65]!==mi||e[66]!==Ei?(ai=H.jsxs("div",{ref:ki,className:"graphiql-editor-tools",children:[Ci,mi,Ei]}),e[63]=Ce.dragBarRef,e[64]=Ci,e[65]=mi,e[66]=Ei,e[67]=ai):ai=e[67];const Wn=J==="variables"?"Variables":"Headers",Mn=J==="variables"?"":"hidden";let hs;e[68]!==u||e[69]!==Mn?(hs=H.jsx(Pet,{className:Mn,onEdit:u}),e[68]=u,e[69]=Mn,e[70]=hs):hs=e[70];let Wi;e[71]!==J||e[72]!==f||e[73]!==c?(Wi=f&&H.jsx(Eet,{className:J==="headers"?"":"hidden",onEdit:c}),e[71]=J,e[72]=f,e[73]=c,e[74]=Wi):Wi=e[74];let Pr;e[75]!==Ce.secondRef||e[76]!==Wn||e[77]!==hs||e[78]!==Wi?(Pr=H.jsxs("section",{className:"graphiql-editor-tool","aria-label":Wn,ref:Ce.secondRef,children:[hs,Wi]}),e[75]=Ce.secondRef,e[76]=Wn,e[77]=hs,e[78]=Wi,e[79]=Pr):Pr=e[79];let qs;e[80]!==Y.firstRef||e[81]!==Yt||e[82]!==ai||e[83]!==Pr?(qs=H.jsxs("div",{className:"graphiql-editors",ref:Et,children:[Yt,ai,Pr]}),e[80]=Y.firstRef,e[81]=Yt,e[82]=ai,e[83]=Pr,e[84]=qs):qs=e[84];const aa=qs,Kn=O.useRef(null);let ir;e[85]!==a?(ir=Lr("graphiql-container",a),e[85]=a,e[86]=ir):ir=e[86];let ji;e[87]!==t||e[88]!==K.setHiddenElement||e[89]!==h?(ji=H.jsx(dct,{forcedTheme:t,showPersistHeadersSettings:h,setHiddenElement:K.setHiddenElement}),e[87]=t,e[88]=K.setHiddenElement,e[89]=h,e[90]=ji):ji=e[90];let an;e[91]===Symbol.for("react.memo_cache_sentinel")?(an={minWidth:"200px"},e[91]=an):an=e[91];let es;e[92]!==q?(es=q&&H.jsx(q,{}),e[92]=q,e[93]=es):es=e[93];let ti;e[94]!==K.firstRef||e[95]!==es?(ti=H.jsx("div",{ref:K.firstRef,className:"graphiql-plugin",style:an,children:es}),e[94]=K.firstRef,e[95]=es,e[96]=ti):ti=e[96];let re;e[97]!==K.dragBarRef||e[98]!==F?(re=F&&H.jsx("div",{className:"graphiql-horizontal-drag-bar",ref:K.dragBarRef}),e[97]=K.dragBarRef,e[98]=F,e[99]=re):re=e[99];const ue=K.secondRef;let pe;e[100]!==M||e[101]!==mt||e[102]!==Me||e[103]!==I?(pe=I.map((Zt,Pe,Bt)=>H.jsxs(oY,{dragConstraints:Kn,value:Zt,isActive:Pe===M,children:[H.jsx(oY.Button,{"aria-controls":"graphiql-session",id:`graphiql-session-tab-${Pe}`,title:Zt.title,onClick:mt,children:Zt.title}),Bt.length>1&&H.jsx(oY.Close,{onClick:Me})]},Zt.id)),e[100]=M,e[101]=mt,e[102]=Me,e[103]=I,e[104]=pe):pe=e[104];let Se;e[105]!==b||e[106]!==pe||e[107]!==I?(Se=H.jsx(PCe,{ref:Kn,values:I,onReorder:b,"aria-label":"Select active operation",className:"no-scrollbar",children:pe}),e[105]=b,e[106]=pe,e[107]=I,e[108]=Se):Se=e[108];let Ne;e[109]===Symbol.for("react.memo_cache_sentinel")?(Ne=H.jsx(NHe,{"aria-hidden":"true"}),e[109]=Ne):Ne=e[109];let Ke;e[110]!==g?(Ke=H.jsx(qc,{label:CSe.newTab,children:H.jsx(il,{type:"button",className:"graphiql-tab-add",onClick:g,"aria-label":CSe.newTab,children:Ne})}),e[110]=g,e[111]=Ke):Ke=e[111];let ot;e[112]!==Ae||e[113]!==Se||e[114]!==Ke?(ot=H.jsxs("div",{className:"graphiql-session-header",children:[Se,Ke,Ae]}),e[112]=Ae,e[113]=Se,e[114]=Ke,e[115]=ot):ot=e[115];const Wt=`${jY}${M}`;let Qt;e[116]!==Y.dragBarRef?(Qt=H.jsx("div",{className:"graphiql-horizontal-drag-bar",ref:Y.dragBarRef}),e[116]=Y.dragBarRef,e[117]=Qt):Qt=e[117];let hi;e[118]!==B?(hi=B&&H.jsx(N4,{}),e[118]=B,e[119]=hi):hi=e[119];let si;e[120]!==d?(si=H.jsx(Net,{responseTooltip:d}),e[120]=d,e[121]=si):si=e[121];let wi;e[122]!==Y.secondRef||e[123]!==ze||e[124]!==hi||e[125]!==si?(wi=H.jsxs("div",{className:"graphiql-response",ref:Y.secondRef,children:[hi,si,ze]}),e[122]=Y.secondRef,e[123]=ze,e[124]=hi,e[125]=si,e[126]=wi):wi=e[126];let Ot;e[127]!==aa||e[128]!==Wt||e[129]!==Qt||e[130]!==wi?(Ot=H.jsxs("div",{role:"tabpanel",id:"graphiql-session","aria-labelledby":Wt,children:[aa,Qt,wi]}),e[127]=aa,e[128]=Wt,e[129]=Qt,e[130]=wi,e[131]=Ot):Ot=e[131];let Cn;e[132]!==K.secondRef||e[133]!==ot||e[134]!==Ot?(Cn=H.jsxs("div",{ref:ue,className:"graphiql-sessions",children:[ot,Ot]}),e[132]=K.secondRef,e[133]=ot,e[134]=Ot,e[135]=Cn):Cn=e[135];let Fs;e[136]!==ti||e[137]!==re||e[138]!==Cn?(Fs=H.jsxs("div",{className:"graphiql-main",children:[ti,re,Cn]}),e[136]=ti,e[137]=re,e[138]=Cn,e[139]=Fs):Fs=e[139];let to;e[140]!==ir||e[141]!==ji||e[142]!==Fs?(to=H.jsxs("div",{className:ir,children:[ji,Fs]}),e[140]=ir,e[141]=ji,e[142]=Fs,e[143]=to):to=e[143];let vu;return e[144]!==$e||e[145]!==to?(vu=H.jsxs(qc.Provider,{children:[to,$e]}),e[144]=$e,e[145]=to,e[146]=vu):vu=e[146],vu};function gct(i){if(i&&typeof i=="object"&&"type"in i&&typeof i.type=="function")return i.type}const hC=Object.assign(fct,{Logo:rct,Toolbar:nct,Footer:tct});function mct(i){return!!i.monaco}function _ct(i,e){e:switch(gct(e)){case hC.Logo:{i.logo=e;break e}case hC.Toolbar:{i.toolbar=e;break e}case hC.Footer:{i.footer=e;break e}default:i.children.push(e)}return i}var pE={},wN={};const bct=xWe(Gje);var wSe;function yct(){if(wSe)return wN;wSe=1,Object.defineProperty(wN,"__esModule",{value:!0});var i=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(Oe){return typeof Oe}:function(Oe){return Oe&&typeof Symbol=="function"&&Oe.constructor===Symbol&&Oe!==Symbol.prototype?"symbol":typeof Oe},e=(function(){function Oe(ke,pt){var Me=[],ge=!0,mt=!1,At=void 0;try{for(var Kt=ke[Symbol.iterator](),Et;!(ge=(Et=Kt.next()).done)&&(Me.push(Et.value),!(pt&&Me.length===pt));ge=!0);}catch(Ve){mt=!0,At=Ve}finally{try{!ge&&Kt.return&&Kt.return()}finally{if(mt)throw At}}return Me}return function(ke,pt){if(Array.isArray(ke))return ke;if(Symbol.iterator in Object(ke))return Oe(ke,pt);throw new TypeError("Invalid attempt to destructure non-iterable instance")}})(),t=Object.assign||function(Oe){for(var ke=1;ke<arguments.length;ke++){var pt=arguments[ke];for(var Me in pt)Object.prototype.hasOwnProperty.call(pt,Me)&&(Oe[Me]=pt[Me])}return Oe},n=(function(){function Oe(ke,pt){for(var Me=0;Me<pt.length;Me++){var ge=pt[Me];ge.enumerable=ge.enumerable||!1,ge.configurable=!0,"value"in ge&&(ge.writable=!0),Object.defineProperty(ke,ge.key,ge)}}return function(ke,pt,Me){return pt&&Oe(ke.prototype,pt),Me&&Oe(ke,Me),ke}})();wN.defaultValue=G;var s=fD(),r=a(s),o=bct;function a(Oe){if(Oe&&Oe.__esModule)return Oe;var ke={};if(Oe!=null)for(var pt in Oe)Object.prototype.hasOwnProperty.call(Oe,pt)&&(ke[pt]=Oe[pt]);return ke.default=Oe,ke}function l(Oe,ke,pt){return ke in Oe?Object.defineProperty(Oe,ke,{value:pt,enumerable:!0,configurable:!0,writable:!0}):Oe[ke]=pt,Oe}function u(Oe){if(Array.isArray(Oe)){for(var ke=0,pt=Array(Oe.length);ke<Oe.length;ke++)pt[ke]=Oe[ke];return pt}else return Array.from(Oe)}function c(Oe,ke){if(!(Oe instanceof ke))throw new TypeError("Cannot call a class as a function")}function d(Oe,ke){if(!Oe)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return ke&&(typeof ke=="object"||typeof ke=="function")?ke:Oe}function h(Oe,ke){if(typeof ke!="function"&&ke!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof ke);Oe.prototype=Object.create(ke&&ke.prototype,{constructor:{value:Oe,enumerable:!1,writable:!0,configurable:!0}}),ke&&(Object.setPrototypeOf?Object.setPrototypeOf(Oe,ke):Oe.__proto__=ke)}function f(Oe){return Oe.charAt(0).toUpperCase()+Oe.slice(1)}var g={keyword:"#B11A04",def:"#D2054E",property:"#1F61A0",qualifier:"#1C92A9",attribute:"#8B2BB9",number:"#2882F9",string:"#D64292",builtin:"#D47509",string2:"#0B7FC7",variable:"#397D13",atom:"#CA9800"},b=r.createElement("svg",{width:"12",height:"9"},r.createElement("path",{fill:"#666",d:"M 0 2 L 9 2 L 4.5 7.5 z"})),y=r.createElement("svg",{width:"12",height:"9"},r.createElement("path",{fill:"#666",d:"M 0 0 L 0 9 L 5.5 4.5 z"})),S=r.createElement("svg",{style:{marginRight:"3px",marginLeft:"-3px"},width:"12",height:"12",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r.createElement("path",{d:"M16 0H2C0.9 0 0 0.9 0 2V16C0 17.1 0.9 18 2 18H16C17.1 18 18 17.1 18 16V2C18 0.9 17.1 0 16 0ZM16 16H2V2H16V16ZM14.99 6L13.58 4.58L6.99 11.17L4.41 8.6L2.99 10.01L6.99 14L14.99 6Z",fill:"#666"})),x=r.createElement("svg",{style:{marginRight:"3px",marginLeft:"-3px"},width:"12",height:"12",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r.createElement("path",{d:"M16 2V16H2V2H16ZM16 0H2C0.9 0 0 0.9 0 2V16C0 17.1 0.9 18 2 18H16C17.1 18 18 17.1 18 16V2C18 0.9 17.1 0 16 0Z",fill:"#CCC"}));function E(Oe){return Oe.checked?Oe.styleConfig.checkboxChecked:Oe.styleConfig.checkboxUnchecked}function k(Oe){var ke=Oe.getFields();if(ke.id){var pt=["id"];return ke.email?pt.push("email"):ke.name&&pt.push("name"),pt}if(ke.edges)return["edges"];if(ke.node)return["node"];if(ke.nodes)return["nodes"];var Me=[];return Object.keys(ke).forEach(function(ge){(0,o.isLeafType)(ke[ge].type)&&Me.push(ge)}),Me.length?Me.slice(0,2):["__typename"]}function A(Oe){return(0,o.isNonNullType)(Oe.type)&&Oe.defaultValue===void 0}function I(Oe){for(var ke=Oe;(0,o.isWrappingType)(ke);)ke=ke.ofType;return ke}function M(Oe){for(var ke=Oe;(0,o.isWrappingType)(ke);)ke=ke.ofType;return ke}function B(Oe,ke){if(typeof ke!="string"&&ke.kind==="VariableDefinition")return ke.variable;if((0,o.isScalarType)(Oe))try{switch(Oe.name){case"String":return{kind:"StringValue",value:String(Oe.parseValue(ke))};case"Float":return{kind:"FloatValue",value:String(Oe.parseValue(parseFloat(ke)))};case"Int":return{kind:"IntValue",value:String(Oe.parseValue(parseInt(ke,10)))};case"Boolean":try{var pt=JSON.parse(ke);return typeof pt=="boolean"?{kind:"BooleanValue",value:pt}:{kind:"BooleanValue",value:!1}}catch{return{kind:"BooleanValue",value:!1}}default:return{kind:"StringValue",value:String(Oe.parseValue(ke))}}}catch(ge){return console.error("error coercing arg value",ge,ke),{kind:"StringValue",value:ke}}else try{var Me=Oe.parseValue(ke);return Me?{kind:"EnumValue",value:String(Me)}:{kind:"EnumValue",value:Oe.getValues()[0].name}}catch{return{kind:"EnumValue",value:Oe.getValues()[0].name}}}var F=(function(Oe){h(ke,Oe);function ke(){var pt,Me,ge,mt;c(this,ke);for(var At=arguments.length,Kt=Array(At),Et=0;Et<At;Et++)Kt[Et]=arguments[Et];return mt=(Me=(ge=d(this,(pt=ke.__proto__||Object.getPrototypeOf(ke)).call.apply(pt,[this].concat(Kt))),ge),ge._getArgSelection=function(){return ge.props.selection.fields.find(function(Ve){return Ve.name.value===ge.props.arg.name})},ge._removeArg=function(){var Ve=ge.props.selection,ft=ge._getArgSelection();ge._previousArgSelection=ft,ge.props.modifyFields(Ve.fields.filter(function(bt){return bt!==ft}),!0)},ge._addArg=function(){var Ve=ge.props,ft=Ve.selection,bt=Ve.arg,Yt=Ve.getDefaultScalarArgValue,ki=Ve.parentField,zi=Ve.makeDefaultArg,Xt=M(bt.type),Ci=null;if(ge._previousArgSelection)Ci=ge._previousArgSelection;else if((0,o.isInputObjectType)(Xt)){var mi=Xt.getFields();Ci={kind:"ObjectField",name:{kind:"Name",value:bt.name},value:{kind:"ObjectValue",fields:he(Yt,zi,ki,Object.keys(mi).map(function(_i){return mi[_i]}))}}}else(0,o.isLeafType)(Xt)&&(Ci={kind:"ObjectField",name:{kind:"Name",value:bt.name},value:Yt(ki,bt,Xt)});if(!Ci)console.error("Unable to add arg for argType",Xt);else return ge.props.modifyFields([].concat(u(ft.fields||[]),[Ci]),!0)},ge._setArgValue=function(Ve,ft){var bt=!1,Yt=!1,ki=!1;try{Ve.kind==="VariableDefinition"?Yt=!0:Ve===null||typeof Ve>"u"?bt=!0:typeof Ve.kind=="string"&&(ki=!0)}catch{}var zi=ge.props.selection,Xt=ge._getArgSelection();if(!Xt){console.error("missing arg selection when setting arg value");return}var Ci=M(ge.props.arg.type),mi=(0,o.isLeafType)(Ci)||Yt||bt||ki;if(!mi){console.warn("Unable to handle non leaf types in InputArgView.setArgValue",Ve);return}var _i=void 0,Mi=void 0;Ve===null||typeof Ve>"u"?Mi=null:!Ve.target&&Ve.kind&&Ve.kind==="VariableDefinition"?(_i=Ve,Mi=_i.variable):typeof Ve.kind=="string"?Mi=Ve:Ve.target&&typeof Ve.target.value=="string"&&(_i=Ve.target.value,Mi=B(Ci,_i));var Ei=ge.props.modifyFields((zi.fields||[]).map(function(ai){var Wn=ai===Xt,Mn=Wn?t({},ai,{value:Mi}):ai;return Mn}),ft);return Ei},ge._modifyChildFields=function(Ve){return ge.props.modifyFields(ge.props.selection.fields.map(function(ft){return ft.name.value===ge.props.arg.name?t({},ft,{value:{kind:"ObjectValue",fields:Ve}}):ft}),!0)},Me),d(ge,mt)}return n(ke,[{key:"render",value:function(){var Me=this.props,ge=Me.arg,mt=Me.parentField,At=this._getArgSelection();return r.createElement(Y,{argValue:At?At.value:null,arg:ge,parentField:mt,addArg:this._addArg,removeArg:this._removeArg,setArgFields:this._modifyChildFields,setArgValue:this._setArgValue,getDefaultScalarArgValue:this.props.getDefaultScalarArgValue,makeDefaultArg:this.props.makeDefaultArg,onRunOperation:this.props.onRunOperation,styleConfig:this.props.styleConfig,onCommit:this.props.onCommit,definition:this.props.definition})}}]),ke})(r.PureComponent);function G(Oe){if((0,o.isEnumType)(Oe))return{kind:"EnumValue",value:Oe.getValues()[0].name};switch(Oe.name){case"String":return{kind:"StringValue",value:""};case"Float":return{kind:"FloatValue",value:"1.5"};case"Int":return{kind:"IntValue",value:"10"};case"Boolean":return{kind:"BooleanValue",value:!1};default:return{kind:"StringValue",value:""}}}function q(Oe,ke,pt){return G(pt)}var ee=(function(Oe){h(ke,Oe);function ke(){var pt,Me,ge,mt;c(this,ke);for(var At=arguments.length,Kt=Array(At),Et=0;Et<At;Et++)Kt[Et]=arguments[Et];return mt=(Me=(ge=d(this,(pt=ke.__proto__||Object.getPrototypeOf(ke)).call.apply(pt,[this].concat(Kt))),ge),ge._getArgSelection=function(){var Ve=ge.props.selection;return(Ve.arguments||[]).find(function(ft){return ft.name.value===ge.props.arg.name})},ge._removeArg=function(Ve){var ft=ge.props.selection,bt=ge._getArgSelection();return ge._previousArgSelection=bt,ge.props.modifyArguments((ft.arguments||[]).filter(function(Yt){return Yt!==bt}),Ve)},ge._addArg=function(Ve){var ft=ge.props,bt=ft.selection,Yt=ft.getDefaultScalarArgValue,ki=ft.makeDefaultArg,zi=ft.parentField,Xt=ft.arg,Ci=M(Xt.type),mi=null;if(ge._previousArgSelection)mi=ge._previousArgSelection;else if((0,o.isInputObjectType)(Ci)){var _i=Ci.getFields();mi={kind:"Argument",name:{kind:"Name",value:Xt.name},value:{kind:"ObjectValue",fields:he(Yt,ki,zi,Object.keys(_i).map(function(Mi){return _i[Mi]}))}}}else(0,o.isLeafType)(Ci)&&(mi={kind:"Argument",name:{kind:"Name",value:Xt.name},value:Yt(zi,Xt,Ci)});return mi?ge.props.modifyArguments([].concat(u(bt.arguments||[]),[mi]),Ve):(console.error("Unable to add arg for argType",Ci),null)},ge._setArgValue=function(Ve,ft){var bt=!1,Yt=!1,ki=!1;try{Ve.kind==="VariableDefinition"?Yt=!0:Ve===null||typeof Ve>"u"?bt=!0:typeof Ve.kind=="string"&&(ki=!0)}catch{}var zi=ge.props.selection,Xt=ge._getArgSelection();if(!Xt&&!Yt){console.error("missing arg selection when setting arg value");return}var Ci=M(ge.props.arg.type),mi=(0,o.isLeafType)(Ci)||Yt||bt||ki;if(!mi){console.warn("Unable to handle non leaf types in ArgView._setArgValue");return}var _i=void 0,Mi=void 0;return Ve===null||typeof Ve>"u"?Mi=null:Ve.target&&typeof Ve.target.value=="string"?(_i=Ve.target.value,Mi=B(Ci,_i)):!Ve.target&&Ve.kind==="VariableDefinition"?(_i=Ve,Mi=_i.variable):typeof Ve.kind=="string"&&(Mi=Ve),ge.props.modifyArguments((zi.arguments||[]).map(function(Ei){return Ei===Xt?t({},Ei,{value:Mi}):Ei}),ft)},ge._setArgFields=function(Ve,ft){var bt=ge.props.selection,Yt=ge._getArgSelection();if(!Yt){console.error("missing arg selection when setting arg value");return}return ge.props.modifyArguments((bt.arguments||[]).map(function(ki){return ki===Yt?t({},ki,{value:{kind:"ObjectValue",fields:Ve}}):ki}),ft)},Me),d(ge,mt)}return n(ke,[{key:"render",value:function(){var Me=this.props,ge=Me.arg,mt=Me.parentField,At=this._getArgSelection();return r.createElement(Y,{argValue:At?At.value:null,arg:ge,parentField:mt,addArg:this._addArg,removeArg:this._removeArg,setArgFields:this._setArgFields,setArgValue:this._setArgValue,getDefaultScalarArgValue:this.props.getDefaultScalarArgValue,makeDefaultArg:this.props.makeDefaultArg,onRunOperation:this.props.onRunOperation,styleConfig:this.props.styleConfig,onCommit:this.props.onCommit,definition:this.props.definition})}}]),ke})(r.PureComponent);function Z(Oe){return Oe.ctrlKey&&Oe.key==="Enter"}function K(Oe){return Oe!=="FragmentDefinition"}var oe=(function(Oe){h(ke,Oe);function ke(){var pt,Me,ge,mt;c(this,ke);for(var At=arguments.length,Kt=Array(At),Et=0;Et<At;Et++)Kt[Et]=arguments[Et];return mt=(Me=(ge=d(this,(pt=ke.__proto__||Object.getPrototypeOf(ke)).call.apply(pt,[this].concat(Kt))),ge),ge._handleChange=function(Ve){ge.props.setArgValue(Ve,!0)},Me),d(ge,mt)}return n(ke,[{key:"componentDidMount",value:function(){var Me=this._ref,ge=document.activeElement;Me&&ge&&!(ge instanceof HTMLTextAreaElement)&&(Me.focus(),Me.setSelectionRange(0,Me.value.length))}},{key:"render",value:function(){var Me=this,ge=this.props,mt=ge.arg,At=ge.argValue,Kt=ge.styleConfig,Et=M(mt.type),Ve=typeof At.value=="string"?At.value:"",ft=this.props.argValue.kind==="StringValue"?Kt.colors.string:Kt.colors.number;return r.createElement("span",{style:{color:ft}},Et.name==="String"?'"':"",r.createElement("input",{style:{border:"none",borderBottom:"1px solid #888",outline:"none",width:Math.max(1,Math.min(15,Ve.length))+"ch",color:ft},ref:function(Yt){Me._ref=Yt},type:"text",onChange:this._handleChange,value:Ve}),Et.name==="String"?'"':"")}}]),ke})(r.PureComponent),Y=(function(Oe){h(ke,Oe);function ke(){var pt,Me,ge,mt;c(this,ke);for(var At=arguments.length,Kt=Array(At),Et=0;Et<At;Et++)Kt[Et]=arguments[Et];return mt=(Me=(ge=d(this,(pt=ke.__proto__||Object.getPrototypeOf(ke)).call.apply(pt,[this].concat(Kt))),ge),ge.state={displayArgActions:!1},Me),d(ge,mt)}return n(ke,[{key:"render",value:function(){var Me=this,ge=this.props,mt=ge.argValue,At=ge.arg,Kt=ge.styleConfig,Et=M(At.type),Ve=null;if(mt){if(mt.kind==="Variable")Ve=r.createElement("span",{style:{color:Kt.colors.variable}},"$",mt.name.value);else if((0,o.isScalarType)(Et))Et.name==="Boolean"?Ve=r.createElement("select",{style:{color:Kt.colors.builtin},onChange:this.props.setArgValue,value:mt.kind==="BooleanValue"?mt.value:void 0},r.createElement("option",{key:"true",value:"true"},"true"),r.createElement("option",{key:"false",value:"false"},"false")):Ve=r.createElement(oe,{setArgValue:this.props.setArgValue,arg:At,argValue:mt,onRunOperation:this.props.onRunOperation,styleConfig:this.props.styleConfig});else if((0,o.isEnumType)(Et))mt.kind==="EnumValue"?Ve=r.createElement("select",{style:{backgroundColor:"white",color:Kt.colors.string2},onChange:this.props.setArgValue,value:mt.value},Et.getValues().map(function(Xt){return r.createElement("option",{key:Xt.name,value:Xt.name},Xt.name)})):console.error("arg mismatch between arg and selection",Et,mt);else if((0,o.isInputObjectType)(Et))if(mt.kind==="ObjectValue"){var ft=Et.getFields();Ve=r.createElement("div",{style:{marginLeft:16}},Object.keys(ft).sort().map(function(Xt){return r.createElement(F,{key:Xt,arg:ft[Xt],parentField:Me.props.parentField,selection:mt,modifyFields:Me.props.setArgFields,getDefaultScalarArgValue:Me.props.getDefaultScalarArgValue,makeDefaultArg:Me.props.makeDefaultArg,onRunOperation:Me.props.onRunOperation,styleConfig:Me.props.styleConfig,onCommit:Me.props.onCommit,definition:Me.props.definition})}))}else console.error("arg mismatch between arg and selection",Et,mt)}var bt=function(){var Ci=At.name,mi=(Me.props.definition.variableDefinitions||[]).filter(function(ue){return ue.variable.name.value.startsWith(Ci)}).length,_i=void 0;mi>0?_i=""+Ci+mi:_i=Ci;var Mi=At.type.toString(),Ei=(0,o.parseType)(Mi),ai={kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:_i}},type:Ei,directives:[]},Wn=function(pe){return(Me.props.definition.variableDefinitions||[]).find(function(Se){return Se.variable.name.value===pe})},Mn=void 0,hs={};if(typeof mt<"u"&&mt!==null){var Wi=(0,o.visit)(mt,{Variable:function(pe){var Se=pe.name.value,Ne=Wn(Se);if(hs[Se]=hs[Se]+1||1,!!Ne)return Ne.defaultValue}}),Pr=ai.type.kind==="NonNullType",qs=Pr?t({},ai,{type:ai.type.type}):ai;Mn=t({},qs,{defaultValue:Wi})}else Mn=ai;var aa=Object.entries(hs).filter(function(ue){var pe=e(ue,2);pe[0];var Se=pe[1];return Se<2}).map(function(ue){var pe=e(ue,2),Se=pe[0];return pe[1],Se});if(Mn){var Kn=Me.props.setArgValue(Mn,!1);if(Kn){var ir=Kn.definitions.find(function(ue){return ue.operation&&ue.name&&ue.name.value&&Me.props.definition.name&&Me.props.definition.name.value?ue.name.value===Me.props.definition.name.value:!1}),ji=[].concat(u(ir.variableDefinitions||[]),[Mn]).filter(function(ue){return aa.indexOf(ue.variable.name.value)===-1}),an=t({},ir,{variableDefinitions:ji}),es=Kn.definitions,ti=es.map(function(ue){return ir===ue?an:ue}),re=t({},Kn,{definitions:ti});Me.props.onCommit(re)}}},Yt=function(){if(!(!mt||!mt.name||!mt.name.value)){var Ci=mt.name.value,mi=(Me.props.definition.variableDefinitions||[]).find(function(qs){return qs.variable.name.value===Ci});if(mi){var _i=mi.defaultValue,Mi=Me.props.setArgValue(_i,{commit:!1});if(Mi){var Ei=Mi.definitions.find(function(qs){return qs.name.value===Me.props.definition.name.value});if(!Ei)return;var ai=0;(0,o.visit)(Ei,{Variable:function(aa){aa.name.value===Ci&&(ai=ai+1)}});var Wn=Ei.variableDefinitions||[];ai<2&&(Wn=Wn.filter(function(qs){return qs.variable.name.value!==Ci}));var Mn=t({},Ei,{variableDefinitions:Wn}),hs=Mi.definitions,Wi=hs.map(function(qs){return Ei===qs?Mn:qs}),Pr=t({},Mi,{definitions:Wi});Me.props.onCommit(Pr)}}}},ki=mt&&mt.kind==="Variable",zi=this.state.displayArgActions?r.createElement("button",{type:"submit",className:"toolbar-button",title:ki?"Remove the variable":"Extract the current value into a GraphQL variable",onClick:function(Ci){Ci.preventDefault(),Ci.stopPropagation(),ki?Yt():bt()},style:Kt.styles.actionButtonStyle},r.createElement("span",{style:{color:Kt.colors.variable}},"$")):null;return r.createElement("div",{style:{cursor:"pointer",minHeight:"16px",WebkitUserSelect:"none",userSelect:"none"},"data-arg-name":At.name,"data-arg-type":Et.name,className:"graphiql-explorer-"+At.name},r.createElement("span",{style:{cursor:"pointer"},onClick:function(Ci){var mi=!mt;mi?Me.props.addArg(!0):Me.props.removeArg(!0),Me.setState({displayArgActions:mi})}},(0,o.isInputObjectType)(Et)?r.createElement("span",null,mt?this.props.styleConfig.arrowOpen:this.props.styleConfig.arrowClosed):r.createElement(E,{checked:!!mt,styleConfig:this.props.styleConfig}),r.createElement("span",{style:{color:Kt.colors.attribute},title:At.description,onMouseEnter:function(){mt!==null&&typeof mt<"u"&&Me.setState({displayArgActions:!0})},onMouseLeave:function(){return Me.setState({displayArgActions:!1})}},At.name,A(At)?"*":"",": ",zi," ")," "),Ve||r.createElement("span",null)," ")}}]),ke})(r.PureComponent),de=(function(Oe){h(ke,Oe);function ke(){var pt,Me,ge,mt;c(this,ke);for(var At=arguments.length,Kt=Array(At),Et=0;Et<At;Et++)Kt[Et]=arguments[Et];return mt=(Me=(ge=d(this,(pt=ke.__proto__||Object.getPrototypeOf(ke)).call.apply(pt,[this].concat(Kt))),ge),ge._addFragment=function(){ge.props.modifySelections([].concat(u(ge.props.selections),[ge._previousSelection||{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:ge.props.implementingType.name}},selectionSet:{kind:"SelectionSet",selections:ge.props.getDefaultFieldNames(ge.props.implementingType).map(function(Ve){return{kind:"Field",name:{kind:"Name",value:Ve}}})}}]))},ge._removeFragment=function(){var Ve=ge._getSelection();ge._previousSelection=Ve,ge.props.modifySelections(ge.props.selections.filter(function(ft){return ft!==Ve}))},ge._getSelection=function(){var Ve=ge.props.selections.find(function(ft){return ft.kind==="InlineFragment"&&ft.typeCondition&&ge.props.implementingType.name===ft.typeCondition.name.value});if(!Ve)return null;if(Ve.kind==="InlineFragment")return Ve},ge._modifyChildSelections=function(Ve,ft){var bt=ge._getSelection();return ge.props.modifySelections(ge.props.selections.map(function(Yt){return Yt===bt?{directives:Yt.directives,kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:ge.props.implementingType.name}},selectionSet:{kind:"SelectionSet",selections:Ve}}:Yt}),ft)},Me),d(ge,mt)}return n(ke,[{key:"render",value:function(){var Me=this,ge=this.props,mt=ge.implementingType,At=ge.schema,Kt=ge.getDefaultFieldNames,Et=ge.styleConfig,Ve=this._getSelection(),ft=mt.getFields(),bt=Ve?Ve.selectionSet?Ve.selectionSet.selections:[]:[];return r.createElement("div",{className:"graphiql-explorer-"+mt.name},r.createElement("span",{style:{cursor:"pointer"},onClick:Ve?this._removeFragment:this._addFragment},r.createElement(E,{checked:!!Ve,styleConfig:this.props.styleConfig}),r.createElement("span",{style:{color:Et.colors.atom}},this.props.implementingType.name)),Ve?r.createElement("div",{style:{marginLeft:16}},Object.keys(ft).sort().map(function(Yt){return r.createElement(le,{key:Yt,field:ft[Yt],selections:bt,modifySelections:Me._modifyChildSelections,schema:At,getDefaultFieldNames:Kt,getDefaultScalarArgValue:Me.props.getDefaultScalarArgValue,makeDefaultArg:Me.props.makeDefaultArg,onRunOperation:Me.props.onRunOperation,onCommit:Me.props.onCommit,styleConfig:Me.props.styleConfig,definition:Me.props.definition,availableFragments:Me.props.availableFragments})})):null)}}]),ke})(r.PureComponent),ae=(function(Oe){h(ke,Oe);function ke(){var pt,Me,ge,mt;c(this,ke);for(var At=arguments.length,Kt=Array(At),Et=0;Et<At;Et++)Kt[Et]=arguments[Et];return mt=(Me=(ge=d(this,(pt=ke.__proto__||Object.getPrototypeOf(ke)).call.apply(pt,[this].concat(Kt))),ge),ge._addFragment=function(){ge.props.modifySelections([].concat(u(ge.props.selections),[ge._previousSelection||{kind:"FragmentSpread",name:ge.props.fragment.name}]))},ge._removeFragment=function(){var Ve=ge._getSelection();ge._previousSelection=Ve,ge.props.modifySelections(ge.props.selections.filter(function(ft){var bt=ft.kind==="FragmentSpread"&&ft.name.value===ge.props.fragment.name.value;return!bt}))},ge._getSelection=function(){var Ve=ge.props.selections.find(function(ft){return ft.kind==="FragmentSpread"&&ft.name.value===ge.props.fragment.name.value});return Ve},Me),d(ge,mt)}return n(ke,[{key:"render",value:function(){var Me=this.props.styleConfig,ge=this._getSelection();return r.createElement("div",{className:"graphiql-explorer-"+this.props.fragment.name.value},r.createElement("span",{style:{cursor:"pointer"},onClick:ge?this._removeFragment:this._addFragment},r.createElement(E,{checked:!!ge,styleConfig:this.props.styleConfig}),r.createElement("span",{style:{color:Me.colors.def},className:"graphiql-explorer-"+this.props.fragment.name.value},this.props.fragment.name.value)))}}]),ke})(r.PureComponent);function he(Oe,ke,pt,Me){var ge=[],mt=!0,At=!1,Kt=void 0;try{for(var Et=Me[Symbol.iterator](),Ve;!(mt=(Ve=Et.next()).done);mt=!0){var ft=Ve.value;if((0,o.isRequiredInputField)(ft)||ke&&ke(pt,ft)){var bt=M(ft.type);(0,o.isInputObjectType)(bt)?(function(){var Yt=bt.getFields();ge.push({kind:"ObjectField",name:{kind:"Name",value:ft.name},value:{kind:"ObjectValue",fields:he(Oe,ke,pt,Object.keys(Yt).map(function(ki){return Yt[ki]}))}})})():(0,o.isLeafType)(bt)&&ge.push({kind:"ObjectField",name:{kind:"Name",value:ft.name},value:Oe(pt,ft,bt)})}}}catch(Yt){At=!0,Kt=Yt}finally{try{!mt&&Et.return&&Et.return()}finally{if(At)throw Kt}}return ge}function Ce(Oe,ke,pt){var Me=[],ge=!0,mt=!1,At=void 0;try{for(var Kt=pt.args[Symbol.iterator](),Et;!(ge=(Et=Kt.next()).done);ge=!0){var Ve=Et.value;if(A(Ve)||ke&&ke(pt,Ve)){var ft=M(Ve.type);(0,o.isInputObjectType)(ft)?(function(){var bt=ft.getFields();Me.push({kind:"Argument",name:{kind:"Name",value:Ve.name},value:{kind:"ObjectValue",fields:he(Oe,ke,pt,Object.keys(bt).map(function(Yt){return bt[Yt]}))}})})():(0,o.isLeafType)(ft)&&Me.push({kind:"Argument",name:{kind:"Name",value:Ve.name},value:Oe(pt,Ve,ft)})}}}catch(bt){mt=!0,At=bt}finally{try{!ge&&Kt.return&&Kt.return()}finally{if(mt)throw At}}return Me}var le=(function(Oe){h(ke,Oe);function ke(){var pt,Me,ge,mt;c(this,ke);for(var At=arguments.length,Kt=Array(At),Et=0;Et<At;Et++)Kt[Et]=arguments[Et];return mt=(Me=(ge=d(this,(pt=ke.__proto__||Object.getPrototypeOf(ke)).call.apply(pt,[this].concat(Kt))),ge),ge.state={displayFieldActions:!1},ge._addAllFieldsToSelections=function(Ve){var ft=Ve?Object.keys(Ve).map(function(ki){return{kind:"Field",name:{kind:"Name",value:ki},arguments:[]}}):[],bt={kind:"SelectionSet",selections:ft},Yt=[].concat(u(ge.props.selections.filter(function(ki){return ki.kind==="InlineFragment"?!0:ki.name.value!==ge.props.field.name})),[{kind:"Field",name:{kind:"Name",value:ge.props.field.name},arguments:Ce(ge.props.getDefaultScalarArgValue,ge.props.makeDefaultArg,ge.props.field),selectionSet:bt}]);ge.props.modifySelections(Yt)},ge._addFieldToSelections=function(Ve){var ft=[].concat(u(ge.props.selections),[ge._previousSelection||{kind:"Field",name:{kind:"Name",value:ge.props.field.name},arguments:Ce(ge.props.getDefaultScalarArgValue,ge.props.makeDefaultArg,ge.props.field)}]);ge.props.modifySelections(ft)},ge._handleUpdateSelections=function(Ve){var ft=ge._getSelection();if(ft&&!Ve.altKey)ge._removeFieldFromSelections();else{var bt=(0,o.getNamedType)(ge.props.field.type),Yt=(0,o.isObjectType)(bt)&&bt.getFields(),ki=!!Yt&&Ve.altKey;ki?ge._addAllFieldsToSelections(Yt):ge._addFieldToSelections(Yt)}},ge._removeFieldFromSelections=function(){var Ve=ge._getSelection();ge._previousSelection=Ve,ge.props.modifySelections(ge.props.selections.filter(function(ft){return ft!==Ve}))},ge._getSelection=function(){var Ve=ge.props.selections.find(function(ft){return ft.kind==="Field"&&ge.props.field.name===ft.name.value});if(!Ve)return null;if(Ve.kind==="Field")return Ve},ge._setArguments=function(Ve,ft){var bt=ge._getSelection();if(!bt){console.error("Missing selection when setting arguments",Ve);return}return ge.props.modifySelections(ge.props.selections.map(function(Yt){return Yt===bt?{alias:bt.alias,arguments:Ve,directives:bt.directives,kind:"Field",name:bt.name,selectionSet:bt.selectionSet}:Yt}),ft)},ge._modifyChildSelections=function(Ve,ft){return ge.props.modifySelections(ge.props.selections.map(function(bt){if(bt.kind==="Field"&&ge.props.field.name===bt.name.value){if(bt.kind!=="Field")throw new Error("invalid selection");return{alias:bt.alias,arguments:bt.arguments,directives:bt.directives,kind:"Field",name:bt.name,selectionSet:{kind:"SelectionSet",selections:Ve}}}return bt}),ft)},Me),d(ge,mt)}return n(ke,[{key:"render",value:function(){var Me=this,ge=this.props,mt=ge.field,At=ge.schema,Kt=ge.getDefaultFieldNames,Et=ge.styleConfig,Ve=this._getSelection(),ft=I(mt.type),bt=mt.args.sort(function(mi,_i){return mi.name.localeCompare(_i.name)}),Yt="graphiql-explorer-node graphiql-explorer-"+mt.name;mt.isDeprecated&&(Yt+=" graphiql-explorer-deprecated");var ki=(0,o.isObjectType)(ft)||(0,o.isInterfaceType)(ft)||(0,o.isUnionType)(ft)?this.props.availableFragments&&this.props.availableFragments[ft.name]:null,zi=r.createElement("div",{className:Yt},r.createElement("span",{title:mt.description,style:{cursor:"pointer",display:"inline-flex",alignItems:"center",minHeight:"16px",WebkitUserSelect:"none",userSelect:"none"},"data-field-name":mt.name,"data-field-type":ft.name,onClick:this._handleUpdateSelections,onMouseEnter:function(){var _i=(0,o.isObjectType)(ft)&&Ve&&Ve.selectionSet&&Ve.selectionSet.selections.filter(function(Mi){return Mi.kind!=="FragmentSpread"}).length>0;_i&&Me.setState({displayFieldActions:!0})},onMouseLeave:function(){return Me.setState({displayFieldActions:!1})}},(0,o.isObjectType)(ft)?r.createElement("span",null,Ve?this.props.styleConfig.arrowOpen:this.props.styleConfig.arrowClosed):null,(0,o.isObjectType)(ft)?null:r.createElement(E,{checked:!!Ve,styleConfig:this.props.styleConfig}),r.createElement("span",{style:{color:Et.colors.property},className:"graphiql-explorer-field-view"},mt.name),this.state.displayFieldActions?r.createElement("button",{type:"submit",className:"toolbar-button",title:"Extract selections into a new reusable fragment",onClick:function(_i){_i.preventDefault(),_i.stopPropagation();var Mi=ft.name,Ei=Mi+"Fragment",ai=(ki||[]).filter(function(qs){return qs.name.value.startsWith(Ei)}).length;ai>0&&(Ei=""+Ei+ai);var Wn=Ve?Ve.selectionSet?Ve.selectionSet.selections:[]:[],Mn=[{kind:"FragmentSpread",name:{kind:"Name",value:Ei},directives:[]}],hs={kind:"FragmentDefinition",name:{kind:"Name",value:Ei},typeCondition:{kind:"NamedType",name:{kind:"Name",value:ft.name}},directives:[],selectionSet:{kind:"SelectionSet",selections:Wn}},Wi=Me._modifyChildSelections(Mn,!1);if(Wi){var Pr=t({},Wi,{definitions:[].concat(u(Wi.definitions),[hs])});Me.props.onCommit(Pr)}else console.warn("Unable to complete extractFragment operation")},style:t({},Et.styles.actionButtonStyle)},r.createElement("span",null,"…")):null),Ve&&bt.length?r.createElement("div",{style:{marginLeft:16},className:"graphiql-explorer-graphql-arguments"},bt.map(function(mi){return r.createElement(ee,{key:mi.name,parentField:mt,arg:mi,selection:Ve,modifyArguments:Me._setArguments,getDefaultScalarArgValue:Me.props.getDefaultScalarArgValue,makeDefaultArg:Me.props.makeDefaultArg,onRunOperation:Me.props.onRunOperation,styleConfig:Me.props.styleConfig,onCommit:Me.props.onCommit,definition:Me.props.definition})})):null);if(Ve&&((0,o.isObjectType)(ft)||(0,o.isInterfaceType)(ft)||(0,o.isUnionType)(ft))){var Xt=(0,o.isUnionType)(ft)?{}:ft.getFields(),Ci=Ve?Ve.selectionSet?Ve.selectionSet.selections:[]:[];return r.createElement("div",{className:"graphiql-explorer-"+mt.name},zi,r.createElement("div",{style:{marginLeft:16}},ki?ki.map(function(mi){var _i=At.getType(mi.typeCondition.name.value),Mi=mi.name.value;return _i?r.createElement(ae,{key:Mi,fragment:mi,selections:Ci,modifySelections:Me._modifyChildSelections,schema:At,styleConfig:Me.props.styleConfig,onCommit:Me.props.onCommit}):null}):null,Object.keys(Xt).sort().map(function(mi){return r.createElement(ke,{key:mi,field:Xt[mi],selections:Ci,modifySelections:Me._modifyChildSelections,schema:At,getDefaultFieldNames:Kt,getDefaultScalarArgValue:Me.props.getDefaultScalarArgValue,makeDefaultArg:Me.props.makeDefaultArg,onRunOperation:Me.props.onRunOperation,styleConfig:Me.props.styleConfig,onCommit:Me.props.onCommit,definition:Me.props.definition,availableFragments:Me.props.availableFragments})}),(0,o.isInterfaceType)(ft)||(0,o.isUnionType)(ft)?At.getPossibleTypes(ft).map(function(mi){return r.createElement(de,{key:mi.name,implementingType:mi,selections:Ci,modifySelections:Me._modifyChildSelections,schema:At,getDefaultFieldNames:Kt,getDefaultScalarArgValue:Me.props.getDefaultScalarArgValue,makeDefaultArg:Me.props.makeDefaultArg,onRunOperation:Me.props.onRunOperation,styleConfig:Me.props.styleConfig,onCommit:Me.props.onCommit,definition:Me.props.definition})}):null))}return zi}}]),ke})(r.PureComponent);function J(Oe){try{return Oe.trim()?(0,o.parse)(Oe,{noLocation:!0}):null}catch(ke){return new Error(ke)}}var Ee={kind:"OperationDefinition",operation:"query",variableDefinitions:[],name:{kind:"Name",value:"MyQuery"},directives:[],selectionSet:{kind:"SelectionSet",selections:[]}},we={kind:"Document",definitions:[Ee]},Ae=null;function Ue(Oe){if(Ae&&Ae[0]===Oe)return Ae[1];var ke=J(Oe);return ke?ke instanceof Error?Ae?Ae[1]:we:(Ae=[Oe,ke],ke):we}var ze={buttonStyle:{fontSize:"1.2em",padding:"0px",backgroundColor:"white",border:"none",margin:"5px 0px",height:"40px",width:"100%",display:"block",maxWidth:"none"},actionButtonStyle:{padding:"0px",backgroundColor:"white",border:"none",margin:"0px",maxWidth:"none",height:"15px",width:"15px",display:"inline-block",fontSize:"smaller"},explorerActionsStyle:{margin:"4px -8px -8px",paddingLeft:"8px",bottom:"0px",width:"100%",textAlign:"center",background:"none",borderTop:"none",borderBottom:"none"}},$e=(function(Oe){h(ke,Oe);function ke(){var pt,Me,ge,mt;c(this,ke);for(var At=arguments.length,Kt=Array(At),Et=0;Et<At;Et++)Kt[Et]=arguments[Et];return mt=(Me=(ge=d(this,(pt=ke.__proto__||Object.getPrototypeOf(ke)).call.apply(pt,[this].concat(Kt))),ge),ge.state={newOperationType:"query",displayTitleActions:!1},ge._modifySelections=function(Ve,ft){var bt=ge.props.definition;bt.selectionSet.selections.length===0&&ge._previousOperationDef&&(bt=ge._previousOperationDef);var Yt=void 0;if(bt.kind==="FragmentDefinition")Yt=t({},bt,{selectionSet:t({},bt.selectionSet,{selections:Ve})});else if(bt.kind==="OperationDefinition"){var ki=Ve.filter(function(zi){return!(zi.kind==="Field"&&zi.name.value==="__typename")});ki.length===0&&(ki=[{kind:"Field",name:{kind:"Name",value:"__typename ## Placeholder value"}}]),Yt=t({},bt,{selectionSet:t({},bt.selectionSet,{selections:ki})})}return ge.props.onEdit(Yt,ft)},ge._onOperationRename=function(Ve){return ge.props.onOperationRename(Ve.target.value)},ge._handlePotentialRun=function(Ve){Z(Ve)&&K(ge.props.definition.kind)&&ge.props.onRunOperation(ge.props.name)},ge._rootViewElId=function(){var Ve=ge.props,ft=Ve.operationType,bt=Ve.name,Yt=ft+"-"+(bt||"unknown");return Yt},Me),d(ge,mt)}return n(ke,[{key:"componentDidMount",value:function(){var Me=this._rootViewElId();this.props.onMount(Me)}},{key:"render",value:function(){var Me=this,ge=this.props,mt=ge.operationType,At=ge.definition,Kt=ge.schema,Et=ge.getDefaultFieldNames,Ve=ge.styleConfig,ft=this._rootViewElId(),bt=this.props.fields||{},Yt=At,ki=Yt.selectionSet.selections,zi=this.props.name||f(mt)+" Name";return r.createElement("div",{id:ft,tabIndex:"0",onKeyDown:this._handlePotentialRun,style:{borderBottom:this.props.isLast?"none":"1px solid #d6d6d6",marginBottom:"0em",paddingBottom:"1em"}},r.createElement("div",{style:{color:Ve.colors.keyword,paddingBottom:4},className:"graphiql-operation-title-bar",onMouseEnter:function(){return Me.setState({displayTitleActions:!0})},onMouseLeave:function(){return Me.setState({displayTitleActions:!1})}},mt," ",r.createElement("span",{style:{color:Ve.colors.def}},r.createElement("input",{style:{color:Ve.colors.def,border:"none",borderBottom:"1px solid #888",outline:"none",width:Math.max(4,zi.length)+"ch"},autoComplete:"false",placeholder:f(mt)+" Name",value:this.props.name,onKeyDown:this._handlePotentialRun,onChange:this._onOperationRename})),this.props.onTypeName?r.createElement("span",null,r.createElement("br",null),"on "+this.props.onTypeName):"",this.state.displayTitleActions?r.createElement(r.Fragment,null,r.createElement("button",{type:"submit",className:"toolbar-button",onClick:function(){return Me.props.onOperationDestroy()},style:t({},Ve.styles.actionButtonStyle)},r.createElement("span",null,"✕")),r.createElement("button",{type:"submit",className:"toolbar-button",onClick:function(){return Me.props.onOperationClone()},style:t({},Ve.styles.actionButtonStyle)},r.createElement("span",null,"⎘"))):""),Object.keys(bt).sort().map(function(Xt){return r.createElement(le,{key:Xt,field:bt[Xt],selections:ki,modifySelections:Me._modifySelections,schema:Kt,getDefaultFieldNames:Et,getDefaultScalarArgValue:Me.props.getDefaultScalarArgValue,makeDefaultArg:Me.props.makeDefaultArg,onRunOperation:Me.props.onRunOperation,styleConfig:Me.props.styleConfig,onCommit:Me.props.onCommit,definition:Me.props.definition,availableFragments:Me.props.availableFragments})}))}}]),ke})(r.PureComponent);function Dt(){return r.createElement("div",{style:{fontFamily:"sans-serif",display:"flex",flexDirection:"column",alignItems:"center",margin:"1em",marginTop:0,flexGrow:1,justifyContent:"flex-end"}},r.createElement("div",{style:{borderTop:"1px solid #d6d6d6",paddingTop:"1em",width:"100%",textAlign:"center"}},"GraphiQL Explorer by ",r.createElement("a",{href:"https://www.onegraph.com"},"OneGraph")),r.createElement("div",null,"Contribute on"," ",r.createElement("a",{href:"https://github.com/OneGraph/graphiql-explorer"},"GitHub")))}var $t=(function(Oe){h(ke,Oe);function ke(){var pt,Me,ge,mt;c(this,ke);for(var At=arguments.length,Kt=Array(At),Et=0;Et<At;Et++)Kt[Et]=arguments[Et];return mt=(Me=(ge=d(this,(pt=ke.__proto__||Object.getPrototypeOf(ke)).call.apply(pt,[this].concat(Kt))),ge),ge.state={newOperationType:"query",operation:null,operationToScrollTo:null},ge._resetScroll=function(){var Ve=ge._ref;Ve&&(Ve.scrollLeft=0)},ge._onEdit=function(Ve){return ge.props.onEdit(Ve)},ge._setAddOperationType=function(Ve){ge.setState({newOperationType:Ve})},ge._handleRootViewMount=function(Ve){if(ge.state.operationToScrollTo&&ge.state.operationToScrollTo===Ve){var ft=".graphiql-explorer-root #"+Ve,bt=document.querySelector(ft);bt&&bt.scrollIntoView()}},Me),d(ge,mt)}return n(ke,[{key:"componentDidMount",value:function(){this._resetScroll()}},{key:"render",value:function(){var Me=this,ge=this.props,mt=ge.schema,At=ge.query,Kt=ge.makeDefaultArg;if(!mt)return r.createElement("div",{style:{fontFamily:"sans-serif"},className:"error-container"},"No Schema Available");var Et={colors:this.props.colors||g,checkboxChecked:this.props.checkboxChecked||S,checkboxUnchecked:this.props.checkboxUnchecked||x,arrowClosed:this.props.arrowClosed||y,arrowOpen:this.props.arrowOpen||b,styles:this.props.styles?t({},ze,this.props.styles):ze},Ve=mt.getQueryType(),ft=mt.getMutationType(),bt=mt.getSubscriptionType();if(!Ve&&!ft&&!bt)return r.createElement("div",null,"Missing query type");var Yt=Ve&&Ve.getFields(),ki=ft&&ft.getFields(),zi=bt&&bt.getFields(),Xt=Ue(At),Ci=this.props.getDefaultFieldNames||k,mi=this.props.getDefaultScalarArgValue||q,_i=Xt.definitions,Mi=_i.map(function(ji){return ji.kind==="FragmentDefinition"||ji.kind==="OperationDefinition"?ji:null}).filter(Boolean),Ei=Mi.length===0?we.definitions:Mi,ai=function(an,es){var ti=es==null||es===""?null:{kind:"Name",value:es,loc:void 0},re=t({},an,{name:ti}),ue=Xt.definitions,pe=ue.map(function(Se){return an===Se?re:Se});return t({},Xt,{definitions:pe})},Wn=function(an){var es=void 0;an.kind==="FragmentDefinition"?es="fragment":es=an.operation;var ti=(an.name&&an.name.value||"")+"Copy",re={kind:"Name",value:ti,loc:void 0},ue=t({},an,{name:re}),pe=Xt.definitions,Se=[].concat(u(pe),[ue]);return Me.setState({operationToScrollTo:es+"-"+ti}),t({},Xt,{definitions:Se})},Mn=function(an){var es=Xt.definitions,ti=es.filter(function(re){return an!==re});return t({},Xt,{definitions:ti})},hs=function(an){var es=Xt.definitions,ti=Xt.definitions.length===1&&Xt.definitions[0]===we.definitions[0],re=ti?[]:es.filter(function(Wt){return Wt.kind==="OperationDefinition"?Wt.operation===an:!1}),ue="My"+f(an)+(re.length===0?"":re.length+1),pe="__typename # Placeholder value",Se={kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:pe,loc:null},arguments:[],directives:[],selectionSet:null,loc:null}],loc:null},Ne={kind:"OperationDefinition",operation:an,name:{kind:"Name",value:ue},variableDefinitions:[],directives:[],selectionSet:Se,loc:null},Ke=ti?[Ne]:[].concat(u(Xt.definitions),[Ne]),ot=t({},Xt,{definitions:Ke});Me.setState({operationToScrollTo:an+"-"+ue}),Me.props.onEdit((0,o.print)(ot))},Wi=[Yt?r.createElement("option",{key:"query",className:"toolbar-button",style:Et.styles.buttonStyle,type:"link",value:"query"},"Query"):null,ki?r.createElement("option",{key:"mutation",className:"toolbar-button",style:Et.styles.buttonStyle,type:"link",value:"mutation"},"Mutation"):null,zi?r.createElement("option",{key:"subscription",className:"toolbar-button",style:Et.styles.buttonStyle,type:"link",value:"subscription"},"Subscription"):null].filter(Boolean),Pr=Wi.length===0||this.props.hideActions?null:r.createElement("div",{style:{minHeight:"50px",maxHeight:"50px",overflow:"none"}},r.createElement("form",{className:"variable-editor-title graphiql-explorer-actions",style:t({},Et.styles.explorerActionsStyle,{display:"flex",flexDirection:"row",alignItems:"center",borderTop:"1px solid rgb(214, 214, 214)"}),onSubmit:function(an){return an.preventDefault()}},r.createElement("span",{style:{display:"inline-block",flexGrow:"0",textAlign:"right"}},"Add new"," "),r.createElement("select",{onChange:function(an){return Me._setAddOperationType(an.target.value)},value:this.state.newOperationType,style:{flexGrow:"2"}},Wi),r.createElement("button",{type:"submit",className:"toolbar-button",onClick:function(){return Me.state.newOperationType?hs(Me.state.newOperationType):null},style:t({},Et.styles.buttonStyle,{height:"22px",width:"22px"})},r.createElement("span",null,"+")))),qs=this.props.externalFragments&&this.props.externalFragments.reduce(function(ji,an){if(an.kind==="FragmentDefinition"){var es=an.typeCondition.name.value,ti=ji[es]||[],re=[].concat(u(ti),[an]).sort(function(ue,pe){return ue.name.value.localeCompare(pe.name.value)});return t({},ji,l({},es,re))}return ji},{}),aa=Ei.reduce(function(ji,an){if(an.kind==="FragmentDefinition"){var es=an.typeCondition.name.value,ti=ji[es]||[],re=[].concat(u(ti),[an]).sort(function(ue,pe){return ue.name.value.localeCompare(pe.name.value)});return t({},ji,l({},es,re))}return ji},{}),Kn=t({},aa,qs),ir=this.props.showAttribution?r.createElement(Dt,null):null;return r.createElement("div",{ref:function(an){Me._ref=an},style:{fontSize:12,textOverflow:"ellipsis",whiteSpace:"nowrap",margin:0,padding:8,fontFamily:'Consolas, Inconsolata, "Droid Sans Mono", Monaco, monospace',display:"flex",flexDirection:"column",height:"100%"},className:"graphiql-explorer-root"},r.createElement("div",{style:{flexGrow:"1",overflow:"scroll"}},Ei.map(function(ji,an){var es=ji&&ji.name&&ji.name.value,ti=ji.kind==="FragmentDefinition"?"fragment":ji&&ji.operation||"query",re=function(hi){var si=ai(ji,hi);Me.props.onEdit((0,o.print)(si))},ue=function(){var hi=Wn(ji);Me.props.onEdit((0,o.print)(hi))},pe=function(){var hi=Mn(ji);Me.props.onEdit((0,o.print)(hi))},Se=ji.kind==="FragmentDefinition"&&ji.typeCondition.kind==="NamedType"&&mt.getType(ji.typeCondition.name.value),Ne=Se instanceof o.GraphQLObjectType?Se.getFields():null,Ke=ti==="query"?Yt:ti==="mutation"?ki:ti==="subscription"?zi:ji.kind==="FragmentDefinition"?Ne:null,ot=ji.kind==="FragmentDefinition"?ji.typeCondition.name.value:null,Wt=function(hi){var si=(0,o.print)(hi);Me.props.onEdit(si)};return r.createElement($e,{key:an,isLast:an===Ei.length-1,fields:Ke,operationType:ti,name:es,definition:ji,onOperationRename:re,onOperationDestroy:pe,onOperationClone:ue,onTypeName:ot,onMount:Me._handleRootViewMount,onCommit:Wt,onEdit:function(hi,si){var wi=void 0;if((typeof si>"u"?"undefined":i(si))==="object"&&typeof si.commit<"u"?wi=si.commit:wi=!0,hi){var Ot=t({},Xt,{definitions:Xt.definitions.map(function(Cn){return Cn===ji?hi:Cn})});return wi&&Wt(Ot),Ot}else return Xt},schema:mt,getDefaultFieldNames:Ci,getDefaultScalarArgValue:mi,makeDefaultArg:Kt,onRunOperation:function(){Me.props.onRunOperation&&Me.props.onRunOperation(es)},styleConfig:Et,availableFragments:Kn})}),ir),Pr)}}]),ke})(r.PureComponent);$t.defaultProps={getDefaultFieldNames:k,getDefaultScalarArgValue:q};var ii=(function(Oe){h(ke,Oe);function ke(){var pt,Me,ge,mt;c(this,ke);for(var At=arguments.length,Kt=Array(At),Et=0;Et<At;Et++)Kt[Et]=arguments[Et];return mt=(Me=(ge=d(this,(pt=ke.__proto__||Object.getPrototypeOf(ke)).call.apply(pt,[this].concat(Kt))),ge),ge.state={hasError:!1,error:null,errorInfo:null},Me),d(ge,mt)}return n(ke,[{key:"componentDidCatch",value:function(Me,ge){this.setState({hasError:!0,error:Me,errorInfo:ge}),console.error("Error in component",Me,ge)}},{key:"render",value:function(){return this.state.hasError?r.createElement("div",{style:{padding:18,fontFamily:"sans-serif"}},r.createElement("div",null,"Something went wrong"),r.createElement("details",{style:{whiteSpace:"pre-wrap"}},this.state.error?this.state.error.toString():null,r.createElement("br",null),this.state.errorInfo?this.state.errorInfo.componentStack:null)):this.props.children}}]),ke})(r.Component),di=(function(Oe){h(ke,Oe);function ke(){return c(this,ke),d(this,(ke.__proto__||Object.getPrototypeOf(ke)).apply(this,arguments))}return n(ke,[{key:"render",value:function(){return r.createElement("div",{className:"docExplorerWrap",style:{height:"100%",width:this.props.width,minWidth:this.props.width,zIndex:7,display:this.props.explorerIsOpen?"flex":"none",flexDirection:"column",overflow:"hidden"}},r.createElement("div",{className:"doc-explorer-title-bar"},r.createElement("div",{className:"doc-explorer-title"},this.props.title),r.createElement("div",{className:"doc-explorer-rhs"},r.createElement("div",{className:"docExplorerHide",onClick:this.props.onToggleExplorer},"✕"))),r.createElement("div",{className:"doc-explorer-contents",style:{padding:"0px",overflowY:"unset"}},r.createElement(ii,null,r.createElement($t,this.props))))}}]),ke})(r.PureComponent);return di.defaultValue=G,di.defaultProps={width:320,title:"Explorer"},wN.default=di,wN}var SSe;function vct(){if(SSe)return pE;SSe=1,Object.defineProperty(pE,"__esModule",{value:!0}),pE.Explorer=void 0;var i=yct(),e=t(i);function t(n){return n&&n.__esModule?n:{default:n}}return pE.Explorer=e.default,pE.default=e.default,pE}var Cct=vct();const xSe=({title:i,titleId:e,...t})=>O.createElement("svg",{width:5,height:8,viewBox:"0 0 5 8",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":e,...t},i?O.createElement("title",{id:e},i):null,O.createElement("path",{d:"M0.910453 6.86965L3.88955 3.89061C4.09782 3.68233 4.09782 3.34465 3.88955 3.13637L0.910453 0.157278C0.574475 -0.178701 0 0.0592511 0 0.534408V6.49259C0 6.96768 0.574475 7.20565 0.910453 6.86965Z"})),wct=({title:i,titleId:e,...t})=>O.createElement("svg",{height:"1em",strokeWidth:1.5,viewBox:"0 0 24 24",stroke:"currentColor",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":e,...t},i?O.createElement("title",{id:e},i):null,O.createElement("path",{d:"M18 6H20M22 6H20M20 6V4M20 6V8",strokeLinecap:"round",strokeLinejoin:"round"}),O.createElement("path",{d:"M21.4 20H2.6C2.26863 20 2 19.7314 2 19.4V11H21.4C21.7314 11 22 11.2686 22 11.6V19.4C22 19.7314 21.7314 20 21.4 20Z"}),O.createElement("path",{d:"M2 11V4.6C2 4.26863 2.26863 4 2.6 4H8.77805C8.92127 4 9.05977 4.05124 9.16852 4.14445L12.3315 6.85555C12.4402 6.94876 12.5787 7 12.722 7H14",strokeLinecap:"round",strokeLinejoin:"round"})),Sct=({title:i,titleId:e,...t})=>O.createElement("svg",{width:15,height:15,viewBox:"0 0 15 15",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",fill:"none","aria-labelledby":e,...t},i?O.createElement("title",{id:e},i):null,O.createElement("circle",{cx:7.5,cy:7.5,r:6,strokeWidth:2})),xct=({title:i,titleId:e,...t})=>O.createElement("svg",{width:15,height:15,viewBox:"0 0 15 15",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor","aria-labelledby":e,...t},i?O.createElement("title",{id:e},i):null,O.createElement("circle",{cx:7.5,cy:7.5,r:7.5}),O.createElement("path",{d:"M4.64641 7.00106L6.8801 9.23256L10.5017 5.61325",stroke:"white",strokeWidth:1.5})),Dct={keyword:"hsl(var(--color-primary))",def:"hsl(var(--color-tertiary))",property:"hsl(var(--color-info))",qualifier:"hsl(var(--color-secondary))",attribute:"hsl(var(--color-tertiary))",number:"hsl(var(--color-success))",string:"hsl(var(--color-warning))",builtin:"hsl(var(--color-success))",string2:"hsl(var(--color-secondary))",variable:"hsl(var(--color-secondary))",atom:"hsl(var(--color-tertiary))"},Ect=H.jsx(xSe,{style:{width:"var(--px-16)",transform:"rotate(90deg)"}}),Tct=H.jsx(xSe,{style:{width:"var(--px-16)"}}),kct=H.jsx(Sct,{style:{marginRight:"var(--px-4)"}}),Lct=H.jsx(xct,{style:{fill:"hsl(var(--color-info))",marginRight:"var(--px-4)"}}),Act={buttonStyle:{cursor:"pointer",fontSize:"2em",lineHeight:0},explorerActionsStyle:{paddingTop:"var(--px-16)"},actionButtonStyle:{}},Nct=i=>{const{setOperationName:e,run:t}=vg(),n=Aa(a=>a.schema),s=O.useCallback(a=>{a&&e(a),t()},[t,e]),[r,o]=mqe(gqe());return H.jsx(Cct.Explorer,{schema:n,onRunOperation:s,explorerIsOpen:!0,colors:Dct,arrowOpen:Ect,arrowClosed:Tct,checkboxUnchecked:kct,checkboxChecked:Lct,styles:Act,query:r,onEdit:o,...i})};function Ict(i){return{title:"GraphiQL Explorer",icon:wct,content:()=>H.jsx(Nct,{...i})}}var e1=null;typeof WebSocket<"u"?e1=WebSocket:typeof MozWebSocket<"u"?e1=MozWebSocket:typeof global<"u"?e1=global.WebSocket||global.MozWebSocket:typeof window<"u"?e1=window.WebSocket||window.MozWebSocket:typeof self<"u"&&(e1=self.WebSocket||self.MozWebSocket);const o5=Symbol.for("@whatwg-node/promise-helpers/FakePromise");function ho(i){return i?.then!=null}function Pct(i){const e=i;return e&&e.then&&e.catch&&e.finally}function Zn(i,e,t,n){let s=Kc().then(i).then(e,t);return Fct(s)}function Kc(i){return i&&Pct(i)?i:ho(i)?{then:(e,t)=>Kc(i.then(e,t)),catch:e=>Kc(i.then(t=>t,e)),finally:e=>Kc(e?Oct(i,e):i),[Symbol.toStringTag]:"Promise"}:{then(e){if(e)try{return Kc(e(i))}catch(t){return fC(t)}return this},catch(){return this},finally(e){if(e)try{return Kc(e()).then(()=>i,()=>i)}catch(t){return fC(t)}return this},[Symbol.toStringTag]:"Promise",__fakePromiseValue:i,[o5]:"resolved"}}function DSe(){if(Promise.withResolvers)return Promise.withResolvers();let i,e;return{promise:new Promise(function(s,r){i=s,e=r}),get resolve(){return i},get reject(){return e}}}function fC(i){return{then(e,t){if(t)try{return Kc(t(i))}catch(n){return fC(n)}return this},catch(e){if(e)try{return Kc(e(i))}catch(t){return fC(t)}return this},finally(e){if(e)try{e()}catch(t){return fC(t)}return this},__fakeRejectError:i,[Symbol.toStringTag]:"Promise",[o5]:"rejected"}}function qY(i,e,t,n){Symbol.asyncIterator in i&&(i=i[Symbol.asyncIterator]());let s,r;typeof i.return=="function"&&(s=i.return,r=l=>{const u=()=>{throw l};return s.call(i).then(u,u)});function o(l){return l.done?l:Zn(()=>l.value,u=>Zn(()=>e(u),ESe,r))}let a;if(t){let l;const u=t;a=c=>(l||=Zn(()=>c,d=>Zn(()=>u(d),ESe,r)),l)}return{next(){return i.next().then(o,a)},return(){return s?s.call(i).then(o,a):Kc({value:void 0,done:!0})},throw(l){return typeof i.throw=="function"?i.throw(l).then(o,a):r?r(l):fC(l)},[Symbol.asyncIterator](){return this}}}function ESe(i){return{value:i,done:!1}}function Mct(i){return i?.[o5]==="resolved"}function Rct(i){return i?.[o5]==="rejected"}function Oct(i,e){return"finally"in i?i.finally(e):i.then(t=>{const n=e();return ho(n)?n.then(()=>t):t},t=>{const n=e();if(ho(n))return n.then(()=>{throw t});throw t})}function Fct(i){if(Mct(i))return i.__fakePromiseValue;if(Rct(i))throw i.__fakeRejectError;return i}const TSe=new WeakMap;function Bct(i,e){let t=TSe.get(i);return!t&&e&&(t=e(i),TSe.set(i,t)),t}const Vct=/^(https?|wss?|file):\/\//;function Wct(i){if(typeof i!="string"||!Vct.test(i))return!1;if(URL.canParse)return URL.canParse(i);try{return!!new URL(i)}catch{return!1}}const Hct=i=>Array.isArray(i)?i:i?[i]:[];function $ct(i){return i!=null}const kSe=3;function Kl(i){return a5(i,[])}function a5(i,e){switch(typeof i){case"string":return JSON.stringify(i);case"function":return i.name?`[function ${i.name}]`:"[function]";case"object":return Uct(i,e);default:return String(i)}}function LSe(i){return(i.name="GraphQLError")?i.toString():`${i.name}: ${i.message};
|
|
424
340
|
${i.stack}`}function Uct(i,e){if(i===null)return"null";if(i instanceof Error)return i.name==="AggregateError"?LSe(i)+`
|
|
425
341
|
`+ASe(i.errors,e):LSe(i);if(e.includes(i))return"[Circular]";const t=[...e,i];if(zct(i)){const n=i.toJSON();if(n!==i)return typeof n=="string"?n:a5(n,t)}else if(Array.isArray(i))return ASe(i,t);return jct(i,t)}function zct(i){return typeof i.toJSON=="function"}function jct(i,e){const t=Object.entries(i);return t.length===0?"{}":e.length>kSe?"["+qct(i)+"]":"{ "+t.map(([s,r])=>s+": "+a5(r,e)).join(", ")+" }"}function ASe(i,e){if(i.length===0)return"[]";if(e.length>kSe)return"[Array]";const t=i.length,n=[];for(let s=0;s<t;++s)n.push(a5(i[s],e));return"["+n.join(", ")+"]"}function qct(i){const e=Object.prototype.toString.call(i).replace(/^\[object /,"").replace(/]$/,"");if(e==="Object"&&typeof i.constructor=="function"){const t=i.constructor.name;if(typeof t=="string"&&t!=="")return t}return e}const Gct=["message","locations","path","nodes","source","positions","originalError","name","stack","extensions"];function Kct(i){return i!=null&&typeof i=="object"&&Object.keys(i).every(e=>Gct.includes(e))}function $n(i,e){return e?.originalError&&!(e.originalError instanceof Error)&&Kct(e.originalError)&&(e.originalError=$n(e.originalError.message,e.originalError)),HF.major>=17?new lt(i,e):new lt(i,e?.nodes,e?.source,e?.positions,e?.path,e?.originalError,e?.extensions)}function l5(i,e){return $n(i.message,{nodes:i.nodes,source:i.source,positions:i.positions,path:e??i.path,originalError:i,extensions:i.extensions})}function Yct(i){return i!=null&&typeof i=="object"&&Symbol.iterator in i}function NSe(i){return typeof i=="object"&&i!==null}function ISe(i,e,t){let n=t;for(const s of i)n=Zn(()=>n,r=>e(r,s));return n}function PSe(i,e){return Object.prototype.hasOwnProperty.call(i,e)}function MSe(i,e,t={}){const n={},r=(e.arguments??[]).reduce((o,a)=>({...o,[a.name.value]:a}),{});for(const{name:o,type:a,defaultValue:l}of i.args){const u=r[o];if(!u){if(l!==void 0)n[o]=l;else if(tn(a))throw $n(`Argument "${o}" of required type "${Kl(a)}" was not provided.`,{nodes:[e]});continue}const c=u.value;let d=c.kind===X.NULL;if(c.kind===X.VARIABLE){const f=c.name.value;if(t==null||!PSe(t,f)){if(l!==void 0)n[o]=l;else if(tn(a))throw $n(`Argument "${o}" of required type "${Kl(a)}" was provided the variable "$${f}" which was not provided a runtime value.`,{nodes:[c]});continue}d=t[f]==null}if(d&&tn(a))throw $n(`Argument "${o}" of non-null type "${Kl(a)}" must not be null.`,{nodes:[c]});const h=qh(c,a,t);if(h===void 0)throw $n(`Argument "${o}" has invalid value ${Vs(c)}.`,{nodes:[c]});n[o]=h}return n}function dp(i){const e=new WeakMap;return function(n){const s=e.get(n);if(s===void 0){const r=i(n);return e.set(n,r),r}return s}}function u5(i){const e=new WeakMap;return function(n,s){let r=e.get(n);if(!r){r=new WeakMap,e.set(n,r);const a=i(n,s);return r.set(s,a),a}const o=r.get(s);if(o===void 0){const a=i(n,s);return r.set(s,a),a}return o}}function RSe(i){const e=new WeakMap;return function(n,s,r){let o=e.get(n);if(!o){o=new WeakMap,e.set(n,o);const u=new WeakMap;o.set(s,u);const c=i(n,s,r);return u.set(r,c),c}let a=o.get(s);if(!a){a=new WeakMap,o.set(s,a);const u=i(n,s,r);return a.set(r,u),u}const l=a.get(r);if(l===void 0){const u=i(n,s,r);return a.set(r,u),u}return l}}function Xct(i){const e=new WeakMap;return function(n,s,r,o,a){let l=e.get(n);if(!l){l=new WeakMap,e.set(n,l);const f=new WeakMap;l.set(s,f);const g=new WeakMap;f.set(r,g);const b=new WeakMap;g.set(o,b);const y=i(n,s,r,o,a);return b.set(a,y),y}let u=l.get(s);if(!u){u=new WeakMap,l.set(s,u);const f=new WeakMap;u.set(r,f);const g=new WeakMap;f.set(o,g);const b=i(n,s,r,o,a);return g.set(a,b),b}let c=u.get(r);if(!c){c=new WeakMap,u.set(r,c);const f=new WeakMap;c.set(o,f);const g=i(n,s,r,o,a);return f.set(a,g),g}let d=c.get(o);if(!d){d=new WeakMap,c.set(o,d);const f=i(n,s,r,o,a);return d.set(a,f),f}const h=d.get(a);if(h===void 0){const f=i(n,s,r,o,a);return d.set(a,f),f}return h}}function Qct(i){const e=new WeakMap;return function(n,s,r,o){let a=e.get(n);if(!a){a=new WeakMap,e.set(n,a);const u=i(n,s,r,o);return a.set(s,u),u}const l=a.get(s);if(l===void 0){const u=i(n,s,r,o);return a.set(s,u),u}return l}}function GY(i){if(tn(i)){const e=GY(i.ofType);if(e.kind===X.NON_NULL_TYPE)throw new Error(`Invalid type node ${Kl(i)}. Inner type of non-null type cannot be a non-null type.`);return{kind:X.NON_NULL_TYPE,type:e}}else if(Ys(i))return{kind:X.LIST_TYPE,type:GY(i.ofType)};return{kind:X.NAMED_TYPE,name:{kind:X.NAME,value:i.name}}}function c5(i,e,t){const s=KY(i).get(e);if(s==null)throw $n(`Schema is not configured to execute ${e} operation.`,{nodes:t});return s}const Zct=dp(function(e){const t=Jct(e);return new Set([...t].map(n=>n.name))}),Jct=dp(function(e){const t=KY(e);return new Set(t.values())}),KY=dp(function(e){const t=new Map,n=e.getQueryType();n&&t.set("query",n);const s=e.getMutationType();s&&t.set("mutation",s);const r=e.getSubscriptionType();return r&&t.set("subscription",r),t}),edt=80;let OSe={};function tdt(i){return`
|
|
@@ -450,20 +366,7 @@ ${e?t:SN(t)}
|
|
|
450
366
|
`)}function odt(i){let e=null;for(let t=1;t<i.length;t++){const n=i[t],s=VSe(n);if(s!==n.length&&(e===null||s<e)&&(e=s,e===0))break}return e===null?0:e}function VSe(i){let e=0;for(;e<i.length&&(i[e]===" "||i[e]===" ");)e++;return e}function WSe(i){return VSe(i)===i.length}function adt(i,e,t={}){let n;try{t.commentDescriptions&&e.includes("#")?(n=ldt(e,t),t.noLocation&&(n=Uc(Vs(n),t))):n=Uc(new SD(e,i),t)}catch(s){if(s.message.includes("EOF")&&e.replace(/(\#[^*]*)/g,"").trim()==="")n={kind:X.DOCUMENT,definitions:[]};else throw s}return{location:i,document:n}}function ldt(i,e={}){const t=Uc(i,{...e,noLocation:!1});return Xo(t,{leave:s=>{if(udt(s)){const r=sdt(s);if(r!==void 0){const o=rdt(`
|
|
451
367
|
`+r),a=o.includes(`
|
|
452
368
|
`);return s.description?{...s,description:{...s.description,value:s.description.value+`
|
|
453
|
-
`+o,block:!0}}:{...s,description:{kind:X.STRING,value:o,block:a}}}}}})}function udt(i){return h3(i)||i.kind===X.FIELD_DEFINITION||i.kind===X.INPUT_VALUE_DEFINITION||i.kind===X.ENUM_VALUE_DEFINITION}var Bn;(function(i){i.TYPE="MapperKind.TYPE",i.SCALAR_TYPE="MapperKind.SCALAR_TYPE",i.ENUM_TYPE="MapperKind.ENUM_TYPE",i.COMPOSITE_TYPE="MapperKind.COMPOSITE_TYPE",i.OBJECT_TYPE="MapperKind.OBJECT_TYPE",i.INPUT_OBJECT_TYPE="MapperKind.INPUT_OBJECT_TYPE",i.ABSTRACT_TYPE="MapperKind.ABSTRACT_TYPE",i.UNION_TYPE="MapperKind.UNION_TYPE",i.INTERFACE_TYPE="MapperKind.INTERFACE_TYPE",i.ROOT_OBJECT="MapperKind.ROOT_OBJECT",i.QUERY="MapperKind.QUERY",i.MUTATION="MapperKind.MUTATION",i.SUBSCRIPTION="MapperKind.SUBSCRIPTION",i.DIRECTIVE="MapperKind.DIRECTIVE",i.FIELD="MapperKind.FIELD",i.COMPOSITE_FIELD="MapperKind.COMPOSITE_FIELD",i.OBJECT_FIELD="MapperKind.OBJECT_FIELD",i.ROOT_FIELD="MapperKind.ROOT_FIELD",i.QUERY_ROOT_FIELD="MapperKind.QUERY_ROOT_FIELD",i.MUTATION_ROOT_FIELD="MapperKind.MUTATION_ROOT_FIELD",i.SUBSCRIPTION_ROOT_FIELD="MapperKind.SUBSCRIPTION_ROOT_FIELD",i.INTERFACE_FIELD="MapperKind.INTERFACE_FIELD",i.INPUT_OBJECT_FIELD="MapperKind.INPUT_OBJECT_FIELD",i.ARGUMENT="MapperKind.ARGUMENT",i.ENUM_VALUE="MapperKind.ENUM_VALUE"})(Bn||(Bn={}));function gE(i,e){if(e){const t=i[e.name];if(en(t))return t}}function cdt(i){if("getFields"in i){const e=i.getFields();for(const t in e)return e[t].name==="_fake"}return!1}function ddt(i){switch(i.name){case nA.name:return nA;case sA.name:return sA;case lo.name:return lo;case vl.name:return vl;case rA.name:return rA;default:return i}}function hdt(i,e){const t=Object.create(null);for(const h in i)t[h]=i[h];const n=Object.create(null);for(const h in t){const f=t[h];if(f==null||h.startsWith("__"))continue;const g=f.name;if(!g.startsWith("__")){if(n[g]!=null){console.warn(`Duplicate schema type name ${g} found; keeping the existing one found in the schema`);continue}n[g]=f}}for(const h in n)n[h]=a(n[h]);const s=e.map(h=>r(h));return{typeMap:n,directives:s};function r(h){if(a3(h))return h;const f=h.toConfig();return f.args=o(f.args),new zc(f)}function o(h){const f={};for(const g in h){const b=h[g],y=d(b.type);y!=null&&(b.type=y,f[g]=b)}return f}function a(h){if(en(h)){const f=h.toConfig(),g={...f,fields:()=>l(f.fields),interfaces:()=>c(f.interfaces)};return new yl(g)}else if(_n(h)){const f=h.toConfig(),g={...f,fields:()=>l(f.fields)};return"interfaces"in g&&(g.interfaces=()=>c(f.interfaces)),new Uh(g)}else if(xo(h)){const f=h.toConfig(),g={...f,types:()=>c(f.types)};return new Fb(g)}else if(os(h)){const f=h.toConfig(),g={...f,fields:()=>u(f.fields)};return new Jf(g)}else if(Br(h)){const f=h.toConfig();return new zh(f)}else if(Tu(h)){if(aA(h))return h;const f=h.toConfig();return new Zf(f)}throw new Error(`Unexpected schema type: ${h}`)}function l(h){const f={};for(const g in h){const b=h[g],y=d(b.type);y!=null&&b.args&&(b.type=y,b.args=o(b.args),f[g]=b)}return f}function u(h){const f={};for(const g in h){const b=h[g],y=d(b.type);y!=null&&(b.type=y,f[g]=b)}return f}function c(h){const f=[];for(const g of h){const b=d(g);b!=null&&f.push(b)}return f}function d(h){if(Ys(h)){const f=d(h.ofType);return f!=null?new La(f):null}else if(tn(h)){const f=d(h.ofType);return f!=null?new Fn(f):null}else if(_0(h)){let f=t[h.name];return f===void 0&&(f=cdt(h)?ddt(h):a(h),n[f.name]=t[h.name]=f),f!=null?n[f.name]:null}return null}}function d5(i,e,t=null,n=null){if(e==null)return e;const s=ED(i);if(el(s))return t!=null?t(s,e):e;if(Ys(s))return Hct(e).map(r=>d5(s.ofType,r,t,n));if(os(s)){const r=s.getFields(),o={};for(const a in e){const l=r[a];l!=null&&(o[a]=d5(l.type,e[a],t,n))}return n!=null?n(s,o):o}}function h5(i,e){return d5(i,e,(t,n)=>{try{return t.serialize(n)}catch{return n}})}function fdt(i,e){return d5(i,e,(t,n)=>{try{return t.parseValue(n)}catch{return n}})}function pdt(i,e={}){const t=USe($Se(YY(HSe(mdt(YY(HSe(i.getTypeMap(),i,h5),i,e,a=>el(a)),i,e),i,fdt),i,e,a=>!el(a)),i,e),i,e),n=i.getDirectives(),s=_dt(n,i,e),{typeMap:r,directives:o}=hdt(t,s);return new Hv({...i.toConfig(),query:gE(r,gE(t,i.getQueryType())),mutation:gE(r,gE(t,i.getMutationType())),subscription:gE(r,gE(t,i.getSubscriptionType())),types:Object.values(r),directives:o})}const gdt=["String","ID","Int","Float","Boolean"];function YY(i,e,t,n=()=>!0){const s={};for(const r in i)if(!r.startsWith("__")&&!gdt.includes(r)){const o=i[r];if(o==null||!n(o)){s[r]=o;continue}const a=ydt(e,t,r);if(a==null){s[r]=o;continue}const l=a(o,e);if(l===void 0){s[r]=o;continue}s[r]=l}return s}function mdt(i,e,t){const n=xdt(t);return n?YY(i,e,{[Bn.ENUM_TYPE]:s=>{const r=s.toConfig(),o=r.values,a={};for(const l in o){const u=o[l],c=n(u,s.name,e,l);if(c===void 0)a[l]=u;else if(Array.isArray(c)){const[d,h]=c;a[d]=h===void 0?u:h}else c!==null&&(a[l]=c)}return p5(new zh({...r,values:a}))}},s=>Br(s)):i}function HSe(i,e,t){const n=USe(i,e,{[Bn.ARGUMENT]:s=>{if(s.defaultValue===void 0)return s;const r=f5(i,s.type);if(r!=null)return{...s,defaultValue:t(r,s.defaultValue)}}});return $Se(n,e,{[Bn.INPUT_OBJECT_FIELD]:s=>{if(s.defaultValue===void 0)return s;const r=f5(n,s.type);if(r!=null)return{...s,defaultValue:t(r,s.defaultValue)}}})}function f5(i,e){if(Ys(e)){const t=f5(i,e.ofType);return t!=null?new La(t):null}else if(tn(e)){const t=f5(i,e.ofType);return t!=null?new Fn(t):null}else if(_0(e)){const t=i[e.name];return t??null}return null}function $Se(i,e,t){const n={};for(const s in i)if(!s.startsWith("__")){const r=i[s];if(!en(r)&&!_n(r)&&!os(r)){n[s]=r;continue}const o=Cdt(e,t,s);if(o==null){n[s]=r;continue}const a=r.toConfig(),l=a.fields,u={};for(const c in l){const d=l[c],h=o(d,c,s,e);if(h===void 0)u[c]=d;else if(Array.isArray(h)){const[f,g]=h;g.astNode!=null&&(g.astNode={...g.astNode,name:{...g.astNode.name,value:f}}),u[f]=g===void 0?d:g}else h!==null&&(u[c]=h)}en(r)?n[s]=p5(new yl({...a,fields:u})):_n(r)?n[s]=p5(new Uh({...a,fields:u})):n[s]=p5(new Jf({...a,fields:u}))}return n}function USe(i,e,t){const n={};for(const s in i)if(!s.startsWith("__")){const r=i[s];if(!en(r)&&!_n(r)){n[s]=r;continue}const o=wdt(t);if(o==null){n[s]=r;continue}const a=r.toConfig(),l=a.fields,u={};for(const c in l){const d=l[c],h=d.args;if(h==null){u[c]=d;continue}const f=Object.keys(h);if(!f.length){u[c]=d;continue}const g={};for(const b of f){const y=h[b],S=o(y,c,s,e);if(S===void 0)g[b]=y;else if(Array.isArray(S)){const[x,E]=S;g[x]=E}else S!==null&&(g[b]=S)}u[c]={...d,args:g}}en(r)?n[s]=new yl({...a,fields:u}):_n(r)?n[s]=new Uh({...a,fields:u}):n[s]=new Jf({...a,fields:u})}return n}function _dt(i,e,t){const n=Sdt(t);if(n==null)return i.slice();const s=[];for(const r of i){const o=n(r,e);o===void 0?s.push(r):o!==null&&s.push(o)}return s}function bdt(i,e){const t=i.getType(e),n=[Bn.TYPE];return en(t)?(n.push(Bn.COMPOSITE_TYPE,Bn.OBJECT_TYPE),e===i.getQueryType()?.name?n.push(Bn.ROOT_OBJECT,Bn.QUERY):e===i.getMutationType()?.name?n.push(Bn.ROOT_OBJECT,Bn.MUTATION):e===i.getSubscriptionType()?.name&&n.push(Bn.ROOT_OBJECT,Bn.SUBSCRIPTION)):os(t)?n.push(Bn.INPUT_OBJECT_TYPE):_n(t)?n.push(Bn.COMPOSITE_TYPE,Bn.ABSTRACT_TYPE,Bn.INTERFACE_TYPE):xo(t)?n.push(Bn.COMPOSITE_TYPE,Bn.ABSTRACT_TYPE,Bn.UNION_TYPE):Br(t)?n.push(Bn.ENUM_TYPE):Tu(t)&&n.push(Bn.SCALAR_TYPE),n}function ydt(i,e,t){const n=bdt(i,t);let s;const r=[...n];for(;!s&&r.length>0;){const o=r.pop();s=e[o]}return s??null}function vdt(i,e){const t=i.getType(e),n=[Bn.FIELD];return en(t)?(n.push(Bn.COMPOSITE_FIELD,Bn.OBJECT_FIELD),e===i.getQueryType()?.name?n.push(Bn.ROOT_FIELD,Bn.QUERY_ROOT_FIELD):e===i.getMutationType()?.name?n.push(Bn.ROOT_FIELD,Bn.MUTATION_ROOT_FIELD):e===i.getSubscriptionType()?.name&&n.push(Bn.ROOT_FIELD,Bn.SUBSCRIPTION_ROOT_FIELD)):_n(t)?n.push(Bn.COMPOSITE_FIELD,Bn.INTERFACE_FIELD):os(t)&&n.push(Bn.INPUT_OBJECT_FIELD),n}function Cdt(i,e,t){const n=vdt(i,t);let s;const r=[...n];for(;!s&&r.length>0;){const o=r.pop();s=e[o]}return s??null}function wdt(i){const e=i[Bn.ARGUMENT];return e??null}function Sdt(i){const e=i[Bn.DIRECTIVE];return e??null}function xdt(i){const e=i[Bn.ENUM_VALUE];return e??null}function p5(i){if(en(i)){const e=i.toConfig();if(e.astNode!=null){const t=[];for(const n in e.fields){const s=e.fields[n];s.astNode!=null&&t.push(s.astNode)}e.astNode={...e.astNode,kind:X.OBJECT_TYPE_DEFINITION,fields:t}}return e.extensionASTNodes!=null&&(e.extensionASTNodes=e.extensionASTNodes.map(t=>({...t,kind:X.OBJECT_TYPE_EXTENSION,fields:void 0}))),new yl(e)}else if(_n(i)){const e=i.toConfig();if(e.astNode!=null){const t=[];for(const n in e.fields){const s=e.fields[n];s.astNode!=null&&t.push(s.astNode)}e.astNode={...e.astNode,kind:X.INTERFACE_TYPE_DEFINITION,fields:t}}return e.extensionASTNodes!=null&&(e.extensionASTNodes=e.extensionASTNodes.map(t=>({...t,kind:X.INTERFACE_TYPE_EXTENSION,fields:void 0}))),new Uh(e)}else if(os(i)){const e=i.toConfig();if(e.astNode!=null){const t=[];for(const n in e.fields){const s=e.fields[n];s.astNode!=null&&t.push(s.astNode)}e.astNode={...e.astNode,kind:X.INPUT_OBJECT_TYPE_DEFINITION,fields:t}}return e.extensionASTNodes!=null&&(e.extensionASTNodes=e.extensionASTNodes.map(t=>({...t,kind:X.INPUT_OBJECT_TYPE_EXTENSION,fields:void 0}))),new Jf(e)}else if(Br(i)){const e=i.toConfig();if(e.astNode!=null){const t=[];for(const n in e.values){const s=e.values[n];s.astNode!=null&&t.push(s.astNode)}e.astNode={...e.astNode,values:t}}return e.extensionASTNodes!=null&&(e.extensionASTNodes=e.extensionASTNodes.map(t=>({...t,values:void 0}))),new zh(e)}else return i}function mE(i,e=!1,t=!1,n=!1){if(i.length===0)return;if(i.length===1)return i[0];let s,r=!0;const o=i.every(u=>{if(Array.isArray(u)){if(s===void 0)return s=u.length,!0;if(s===u.length)return!0}else r=!1;return!1});if(n&&o)return new Array(s).fill(null).map((u,c)=>mE(i.map(d=>d[c]),e,t,n));if(r)return i.flat(1);let a,l;e&&(l=i.find(u=>zSe(u)),l&&(a==null&&(a={}),Object.setPrototypeOf(a,Object.create(Object.getPrototypeOf(l)))));for(const u of i)if(u!=null)if(zSe(u)){if(l){const c=Object.getPrototypeOf(a),d=Object.getPrototypeOf(u);if(d)for(const h of Object.getOwnPropertyNames(d)){const f=Object.getOwnPropertyDescriptor(d,h);$ct(f)&&Object.defineProperty(c,h,f)}}for(const c in u)a==null&&(a={}),c in a?a[c]=mE([a[c],u[c]],e,t,n):a[c]=u[c]}else Array.isArray(u)&&Array.isArray(a)?a=mE([a,u],e,t,n):a=u;return a}function zSe(i){return i&&typeof i=="object"&&!Array.isArray(i)}function XY(i){return i.fieldNodes[0].alias!=null?i.fieldNodes[0].alias.value:i.fieldName}function g5(i,e,t){return t==null||e==null?!1:e===t?!0:Ju(e)&&Ju(t)?e3(i,e,t):!1}function Ddt(i){const e=[],t=[];let n=!0;const s=c=>{e.length!==0?e.shift()({value:c,done:!1}):t.push({value:c,done:!1})},r=c=>{e.length!==0?e.shift()({value:{errors:[c]},done:!1}):t.push({value:{errors:[c]},done:!1})},o=()=>{e.length!==0?e.shift()({done:!0}):t.push({done:!0})},a=()=>new Promise(c=>{if(t.length!==0){const d=t.shift();c(d)}else e.push(c)}),l=i.subscribe({next(c){return s(c)},error(c){return r(c)},complete(){return o()}}),u=()=>{if(n){n=!1,l.unsubscribe();for(const c of e)c({value:void 0,done:!0});e.length=0,t.length=0}};return{next(){return n?a():this.return()},return(){return u(),Kc({value:void 0,done:!0})},throw(c){return u(),fC(c)},[Symbol.asyncIterator](){return this}}}class m5 extends Map{get[Symbol.toStringTag](){return"AccumulatorMap"}add(e,t){const n=this.get(e);n===void 0?this.set(e,[t]):n.push(t)}}const Edt=new zc({name:"defer",description:"Directs the executor to defer this fragment when the `if` argument is true or undefined.",locations:[Xi.FRAGMENT_SPREAD,Xi.INLINE_FRAGMENT],args:{if:{type:new Fn(vl),description:"Deferred when true or undefined.",defaultValue:!0},label:{type:lo,description:"Unique name"}}}),Tdt=new zc({name:"stream",description:"Directs the executor to stream plural fields when the `if` argument is true or undefined.",locations:[Xi.FIELD],args:{if:{type:new Fn(vl),description:"Stream when true or undefined.",defaultValue:!0},label:{type:lo,description:"Unique name"},initialCount:{defaultValue:0,type:nA,description:"Number of items to return immediately"}}});function _E(i,e,t,n,s,r,o,a){for(const l of s.selections)switch(l.kind){case X.FIELD:{if(!ZY(t,l))continue;r.add(kdt(l),l);break}case X.INLINE_FRAGMENT:{if(!ZY(t,l)||!jSe(i,l,n))continue;const u=qSe(t,l);if(u){const c=new m5;_E(i,e,t,n,l.selectionSet,c,o,a),o.push({label:u.label,fields:c})}else _E(i,e,t,n,l.selectionSet,r,o,a);break}case X.FRAGMENT_SPREAD:{const u=l.name.value;if(!ZY(t,l))continue;const c=qSe(t,l);if(a.has(u)&&!c)continue;const d=e[u];if(!d||!jSe(i,d,n))continue;if(c||a.add(u),c){const h=new m5;_E(i,e,t,n,d.selectionSet,h,o,a),o.push({label:c.label,fields:h})}else _E(i,e,t,n,d.selectionSet,r,o,a);break}}}function QY(i,e,t,n,s){const r=new m5,o=[];return _E(i,e,t,n,s,r,o,new Set),{fields:r,patches:o}}function ZY(i,e){return!(yg(r3,e,i)?.if===!0||yg(s3,e,i)?.if===!1)}function jSe(i,e,t){const n=e.typeCondition;if(!n)return!0;const s=Cl(i,n);return s===t?!0:Mo(s)?i.getPossibleTypes(s).includes(t):!1}function kdt(i){return i.alias?i.alias.value:i.name.value}function qSe(i,e){const t=yg(Edt,e,i);if(t&&t.if!==!1)return{label:typeof t.label=="string"?t.label:void 0}}const Ldt=Xct(function(e,t,n,s,r){const o=new m5,a=new Set,l=[],u={fields:o,patches:l};for(const c of r)c.selectionSet&&_E(e,t,n,s,c.selectionSet,o,l,a);return u});function Adt(i,e){const t=Qj(i,e);if(!t)throw new Error(`Cannot infer operation ${e||""}`);return t}const pC=dp(function(e){return Adt(e.document,e.operationName)});function gC(i){return i?.[Symbol.asyncIterator]!=null}function bE(i,e,t){return{prev:i,key:e,typename:t}}function Tl(i){const e=[];let t=i;for(;t;)e.push(t.key),t=t.prev;return e.reverse()}function Ndt(i){return i.map(e=>typeof e=="number"?"["+e.toString()+"]":"."+e).join("")}function GSe({incrementalResult:i,executionResult:e}){const t=["data",...i.path??[]];if(i.items)for(const n of i.items)JY(e,t,n),t[t.length-1]++;i.data&&JY(e,t,i.data),i.errors&&(e.errors=e.errors||[],e.errors.push(...i.errors)),i.extensions&&JY(e,["extensions"],i.extensions),i.incremental&&i.incremental.forEach(n=>{GSe({incrementalResult:n,executionResult:e})})}function JY(i,e,t){let n=i,s;for(s=0;s<e.length-1;s++){const a=e[s];if(a==="__proto__"||a==="constructor"||a==="prototype")return;n[a]==null&&(n[a]=typeof e[s+1]=="number"?[]:{}),n=n[a]}const r=e[s];if(r==="__proto__"||r==="constructor"||r==="prototype")return;const o=n[r];n[r]=o!=null?mE([o,t]):t}const eX=dp(function(e){return Age(Bct(e,Vs))});function tX({executionRequest:i,excludeQuery:e,printFn:t=eX}){return{query:e?void 0:t(i.document),variables:(i.variables&&Object.keys(i.variables).length)>0?i.variables:void 0,operationName:i.operationName?i.operationName:void 0,extensions:i.extensions&&Object.keys(i.extensions).length>0?i.extensions:void 0}}const N0={get dispose(){return Symbol.dispose||Symbol.for("dispose")},get asyncDispose(){return Symbol.asyncDispose||Symbol.for("asyncDispose")}};function Yc(i){return i===null?"null":Array.isArray(i)?"array":typeof i}function mC(i){return Yc(i)==="object"}function Idt(i){return Array.isArray(i)&&i.length>0&&i.every(e=>"message"in e)}function KSe(i,e){return i.length<124?i:e}const Pdt="graphql-transport-ws";var sf=(i=>(i[i.InternalServerError=4500]="InternalServerError",i[i.InternalClientError=4005]="InternalClientError",i[i.BadRequest=4400]="BadRequest",i[i.BadResponse=4004]="BadResponse",i[i.Unauthorized=4401]="Unauthorized",i[i.Forbidden=4403]="Forbidden",i[i.SubprotocolNotAcceptable=4406]="SubprotocolNotAcceptable",i[i.ConnectionInitialisationTimeout=4408]="ConnectionInitialisationTimeout",i[i.ConnectionAcknowledgementTimeout=4504]="ConnectionAcknowledgementTimeout",i[i.SubscriberAlreadyExists=4409]="SubscriberAlreadyExists",i[i.TooManyInitialisationRequests=4429]="TooManyInitialisationRequests",i))(sf||{}),rf=(i=>(i.ConnectionInit="connection_init",i.ConnectionAck="connection_ack",i.Ping="ping",i.Pong="pong",i.Subscribe="subscribe",i.Next="next",i.Error="error",i.Complete="complete",i))(rf||{});function YSe(i){if(!mC(i))throw new Error(`Message is expected to be an object, but got ${Yc(i)}`);if(!i.type)throw new Error("Message is missing the 'type' property");if(typeof i.type!="string")throw new Error(`Message is expects the 'type' property to be a string, but got ${Yc(i.type)}`);switch(i.type){case"connection_init":case"connection_ack":case"ping":case"pong":{if(i.payload!=null&&!mC(i.payload))throw new Error(`"${i.type}" message expects the 'payload' property to be an object or nullish or missing, but got "${i.payload}"`);break}case"subscribe":{if(typeof i.id!="string")throw new Error(`"${i.type}" message expects the 'id' property to be a string, but got ${Yc(i.id)}`);if(!i.id)throw new Error(`"${i.type}" message requires a non-empty 'id' property`);if(!mC(i.payload))throw new Error(`"${i.type}" message expects the 'payload' property to be an object, but got ${Yc(i.payload)}`);if(typeof i.payload.query!="string")throw new Error(`"${i.type}" message payload expects the 'query' property to be a string, but got ${Yc(i.payload.query)}`);if(i.payload.variables!=null&&!mC(i.payload.variables))throw new Error(`"${i.type}" message payload expects the 'variables' property to be a an object or nullish or missing, but got ${Yc(i.payload.variables)}`);if(i.payload.operationName!=null&&Yc(i.payload.operationName)!=="string")throw new Error(`"${i.type}" message payload expects the 'operationName' property to be a string or nullish or missing, but got ${Yc(i.payload.operationName)}`);if(i.payload.extensions!=null&&!mC(i.payload.extensions))throw new Error(`"${i.type}" message payload expects the 'extensions' property to be a an object or nullish or missing, but got ${Yc(i.payload.extensions)}`);break}case"next":{if(typeof i.id!="string")throw new Error(`"${i.type}" message expects the 'id' property to be a string, but got ${Yc(i.id)}`);if(!i.id)throw new Error(`"${i.type}" message requires a non-empty 'id' property`);if(!mC(i.payload))throw new Error(`"${i.type}" message expects the 'payload' property to be an object, but got ${Yc(i.payload)}`);break}case"error":{if(typeof i.id!="string")throw new Error(`"${i.type}" message expects the 'id' property to be a string, but got ${Yc(i.id)}`);if(!i.id)throw new Error(`"${i.type}" message requires a non-empty 'id' property`);if(!Idt(i.payload))throw new Error(`"${i.type}" message expects the 'payload' property to be an array of GraphQL errors, but got ${JSON.stringify(i.payload)}`);break}case"complete":{if(typeof i.id!="string")throw new Error(`"${i.type}" message expects the 'id' property to be a string, but got ${Yc(i.id)}`);if(!i.id)throw new Error(`"${i.type}" message requires a non-empty 'id' property`);break}default:throw new Error(`Invalid message 'type' property "${i.type}"`)}return i}function Mdt(i,e){return YSe(typeof i=="string"?JSON.parse(i,e):i)}function xN(i,e){return YSe(i),JSON.stringify(i,e)}function Rdt(i){const{url:e,connectionParams:t,lazy:n=!0,onNonLazyError:s=console.error,lazyCloseTimeout:r=0,keepAlive:o=0,disablePong:a,connectionAckWaitTimeout:l=0,retryAttempts:u=5,retryWait:c=async function(oe){const Y=Math.pow(2,oe);await new Promise(de=>setTimeout(de,Y*1e3+Math.floor(Math.random()*2700+300)))},shouldRetry:d=iX,on:h,webSocketImpl:f,generateID:g=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,oe=>{const Y=Math.random()*16|0;return(oe=="x"?Y:Y&3|8).toString(16)})},jsonMessageReplacer:b,jsonMessageReviver:y}=i;let S;if(f){if(!Fdt(f))throw new Error("Invalid WebSocket implementation provided");S=f}else typeof WebSocket<"u"?S=WebSocket:typeof global<"u"?S=global.WebSocket||global.MozWebSocket:typeof window<"u"&&(S=window.WebSocket||window.MozWebSocket);if(!S)throw new Error("WebSocket implementation missing; on Node you can `import WebSocket from 'ws';` and pass `webSocketImpl: WebSocket` to `createClient`");const x=S,E=(()=>{const K=(()=>{const Y={};return{on(de,ae){return Y[de]=ae,()=>{delete Y[de]}},emit(de){"id"in de&&Y[de.id]?.(de)}}})(),oe={connecting:h?.connecting?[h.connecting]:[],opened:h?.opened?[h.opened]:[],connected:h?.connected?[h.connected]:[],ping:h?.ping?[h.ping]:[],pong:h?.pong?[h.pong]:[],message:h?.message?[K.emit,h.message]:[K.emit],closed:h?.closed?[h.closed]:[],error:h?.error?[h.error]:[]};return{onMessage:K.on,on(Y,de){const ae=oe[Y];return ae.push(de),()=>{ae.splice(ae.indexOf(de),1)}},emit(Y,...de){for(const ae of[...oe[Y]])ae(...de)}}})();function k(K){const oe=[E.on("error",Y=>{oe.forEach(de=>de()),K(Y)}),E.on("closed",Y=>{oe.forEach(de=>de()),K(Y)})]}let A,I=0,M,B=!1,F=0,G=!1;async function q(){clearTimeout(M);const[K,oe]=await(A??(A=new Promise((ae,he)=>(async()=>{if(B){if(await c(F),!I)return A=void 0,he({code:1e3,reason:"All Subscriptions Gone"});F++}E.emit("connecting",B);const Ce=new x(typeof e=="function"?await e():e,Pdt);let le,J;function Ee(){isFinite(o)&&o>0&&(clearTimeout(J),J=setTimeout(()=>{Ce.readyState===x.OPEN&&(Ce.send(xN({type:rf.Ping})),E.emit("ping",!1,void 0))},o))}k(Ae=>{A=void 0,clearTimeout(le),clearTimeout(J),he(Ae),Ae instanceof XSe&&(Ce.close(4499,"Terminated"),Ce.onerror=null,Ce.onclose=null)}),Ce.onerror=Ae=>E.emit("error",Ae),Ce.onclose=Ae=>E.emit("closed",Ae),Ce.onopen=async()=>{try{E.emit("opened",Ce);const Ae=typeof t=="function"?await t():t;if(Ce.readyState!==x.OPEN)return;Ce.send(xN(Ae?{type:rf.ConnectionInit,payload:Ae}:{type:rf.ConnectionInit},b)),isFinite(l)&&l>0&&(le=setTimeout(()=>{Ce.close(sf.ConnectionAcknowledgementTimeout,"Connection acknowledgement timeout")},l)),Ee()}catch(Ae){E.emit("error",Ae),Ce.close(sf.InternalClientError,KSe(Ae instanceof Error?Ae.message:String(Ae),"Internal client error"))}};let we=!1;Ce.onmessage=({data:Ae})=>{try{const Ue=Mdt(Ae,y);if(E.emit("message",Ue),Ue.type==="ping"||Ue.type==="pong"){E.emit(Ue.type,!0,Ue.payload),Ue.type==="pong"?Ee():a||(Ce.send(xN(Ue.payload?{type:rf.Pong,payload:Ue.payload}:{type:rf.Pong})),E.emit("pong",!1,Ue.payload));return}if(we)return;if(Ue.type!==rf.ConnectionAck)throw new Error(`First message cannot be of type ${Ue.type}`);clearTimeout(le),we=!0,E.emit("connected",Ce,Ue.payload,B),B=!1,F=0,ae([Ce,new Promise((ze,$e)=>k($e))])}catch(Ue){Ce.onmessage=null,E.emit("error",Ue),Ce.close(sf.BadResponse,KSe(Ue instanceof Error?Ue.message:String(Ue),"Bad response"))}}})())));K.readyState===x.CLOSING&&await oe;let Y=()=>{};const de=new Promise(ae=>Y=ae);return[K,Y,Promise.race([de.then(()=>{if(!I){const ae=()=>K.close(1e3,"Normal Closure");isFinite(r)&&r>0?M=setTimeout(()=>{K.readyState===x.OPEN&&ae()},r):ae()}}),oe])]}function ee(K){if(iX(K)&&(Odt(K.code)||[sf.InternalServerError,sf.InternalClientError,sf.BadRequest,sf.BadResponse,sf.Unauthorized,sf.SubprotocolNotAcceptable,sf.SubscriberAlreadyExists,sf.TooManyInitialisationRequests].includes(K.code)))throw K;if(G)return!1;if(iX(K)&&K.code===1e3)return I>0;if(!u||F>=u||!d(K))throw K;return B=!0}n||(async()=>{for(I++;;)try{const[,,K]=await q();await K}catch(K){try{if(!ee(K))return}catch(oe){return s?.(oe)}}})();function Z(K,oe){const Y=g(K);let de=!1,ae=!1,he=()=>{I--,de=!0};return(async()=>{for(I++;;)try{const[Ce,le,J]=await q();if(de)return le();const Ee=E.onMessage(Y,we=>{switch(we.type){case rf.Next:{oe.next(we.payload);return}case rf.Error:{ae=!0,de=!0,oe.error(we.payload),he();return}case rf.Complete:{de=!0,he();return}}});Ce.send(xN({id:Y,type:rf.Subscribe,payload:K},b)),he=()=>{!de&&Ce.readyState===x.OPEN&&Ce.send(xN({id:Y,type:rf.Complete},b)),I--,de=!0,le()},await J.finally(Ee);return}catch(Ce){if(!ee(Ce))return}})().then(()=>{ae||oe.complete()}).catch(Ce=>{oe.error(Ce)}),()=>{de||he()}}return{on:E.on,subscribe:Z,iterate(K){const oe=[],Y={done:!1,error:null,resolve:()=>{}},de=Z(K,{next(he){oe.push(he),Y.resolve()},error(he){Y.done=!0,Y.error=he,Y.resolve()},complete(){Y.done=!0,Y.resolve()}}),ae=(async function*(){for(;;){for(oe.length||await new Promise(Ce=>Y.resolve=Ce);oe.length;)yield oe.shift();if(Y.error)throw Y.error;if(Y.done)return}})();return ae.throw=async he=>(Y.done||(Y.done=!0,Y.error=he,Y.resolve()),{done:!0,value:void 0}),ae.return=async()=>(de(),{done:!0,value:void 0}),ae},async dispose(){if(G=!0,A){const[K]=await A;K.close(1e3,"Normal Closure")}},terminate(){A&&E.emit("closed",new XSe)}}}class XSe extends Error{name="TerminatedCloseEvent";message="4499: Terminated";code=4499;reason="Terminated";wasClean=!1}function iX(i){return mC(i)&&"code"in i&&"reason"in i}function Odt(i){return[1e3,1001,1006,1005,1012,1013,1014].includes(i)?!1:i>=1e3&&i<=1999}function Fdt(i){return typeof i=="function"&&"constructor"in i&&"CLOSED"in i&&"CLOSING"in i&&"CONNECTING"in i&&"OPEN"in i}function Bdt(){if(typeof WebSocket<"u")return WebSocket;if(typeof global.WebSocket<"u")return global.WebSocket;if(typeof window.WebSocket<"u")return window.WebSocket;if(typeof self.WebSocket<"u")return self.WebSocket;throw new Error("`WebSocket` is not supported in this environment")}const QSe=Bdt();function Vdt(){return typeof process<"u"&&process.versions&&process.versions.node&&typeof Bun>"u"}function Wdt(){return typeof window<"u"}function Hdt(){if(!Vdt())return{major:NaN,minor:NaN,patch:NaN};const[i,e,t]=process.versions.node.split(".").map(Number);return{major:i||NaN,minor:e||NaN,patch:t||NaN}}function $dt(i){return"subscribe"in i}function Udt(i){let e,t={},n=eX;if($dt(i))e=i;else{i.print&&(n=i.print);const r=i.headers,o=r?class extends QSe{constructor(l,u){Wdt()?super(l,u):Hdt().major<22?super(l,u,{headers:r}):super(l,{protocols:[u],protocol:u,headers:r})}}:QSe;e=Rdt({url:i.url,webSocketImpl:o,lazy:i.lazy!==!1,lazyCloseTimeout:i.lazyCloseTimeout||0,connectionParams:()=>{const a=(typeof i.connectionParams=="function"?i.connectionParams():i.connectionParams)||{};return Object.assign(a,t)},on:i.on}),i.onClient&&i.onClient(e)}const s=function(o){const{extensions:a,operationType:l=pC(o).operation,info:u,signal:c=u?.signal}=o;a?.connectionParams&&typeof a?.connectionParams=="object"&&(t=Object.assign(t,a.connectionParams));const d=e.iterate(tX({executionRequest:o,printFn:n}));return d.return&&c&&c.addEventListener("abort",()=>{d.return?.()},{once:!0}),l==="subscription"?d:d.next().then(({value:h})=>h)};return Object.defineProperty(s,N0.asyncDispose,{value:function(){return e.dispose()}}),s}const ZSe=!globalThis.Bun&&globalThis.process?.release?.name==="node",_5=ZSe?new FinalizationRegistry(i=>i()):null,JSe=Symbol("CONTROLLER_IN_SIGNAL");function zdt(i){if(i.length===0)return;if(i.length===1)return i[0];if(!ZSe)return AbortSignal.any(i);for(const o of i)if(o.aborted)return o;const e=new AbortController,t=new WeakRef(e),n=[];let s=i.length;for(const o of i){let a=function(){t.deref()?.abort(l.deref()?.reason)};const l=new WeakRef(o);o.addEventListener("abort",a),n.push([l,a]),_5.register(o,()=>!--s&&r(),o)}function r(){for(const[o,a]of n){const l=o.deref();l&&(l.removeEventListener("abort",a),_5.unregister(l));const u=t.deref();u&&(_5.unregister(u.signal),delete u.signal[JSe])}}return e.signal.addEventListener("abort",r),_5.register(e.signal,r,e.signal),e.signal[JSe]=e,e.signal}var Eo={},exe;function jdt(){return exe||(exe=1,Eo.fetch=globalThis.fetch,Eo.Headers=globalThis.Headers,Eo.Request=globalThis.Request,Eo.Response=globalThis.Response,Eo.FormData=globalThis.FormData,Eo.ReadableStream=globalThis.ReadableStream,Eo.WritableStream=globalThis.WritableStream,Eo.TransformStream=globalThis.TransformStream,Eo.CompressionStream=globalThis.CompressionStream,Eo.DecompressionStream=globalThis.DecompressionStream,Eo.TextDecoderStream=globalThis.TextDecoderStream,Eo.TextEncoderStream=globalThis.TextEncoderStream,Eo.Blob=globalThis.Blob,Eo.File=globalThis.File,Eo.crypto=globalThis.crypto,Eo.btoa=globalThis.btoa,Eo.TextEncoder=globalThis.TextEncoder,Eo.TextDecoder=globalThis.TextDecoder,Eo.URLPattern=globalThis.URLPattern,Eo.URL=globalThis.URL,Eo.URLSearchParams=globalThis.URLSearchParams,Eo.createFetch=()=>globalThis),Eo}var _C=jdt();/*! *****************************************************************************
|
|
454
|
-
Copyright (c) Microsoft Corporation.
|
|
455
|
-
|
|
456
|
-
Permission to use, copy, modify, and/or distribute this software for any
|
|
457
|
-
purpose with or without fee is hereby granted.
|
|
458
|
-
|
|
459
|
-
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
460
|
-
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
461
|
-
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
462
|
-
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
463
|
-
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
464
|
-
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
465
|
-
PERFORMANCE OF THIS SOFTWARE.
|
|
466
|
-
***************************************************************************** */var nX=function(i,e){return nX=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,n){t.__proto__=n}||function(t,n){for(var s in n)n.hasOwnProperty(s)&&(t[s]=n[s])},nX(i,e)};function qdt(i,e){nX(i,e);function t(){this.constructor=i}i.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}function yE(i,e,t,n){function s(r){return r instanceof t?r:new t(function(o){o(r)})}return new(t||(t=Promise))(function(r,o){function a(c){try{u(n.next(c))}catch(d){o(d)}}function l(c){try{u(n.throw(c))}catch(d){o(d)}}function u(c){c.done?r(c.value):s(c.value).then(a,l)}u((n=n.apply(i,[])).next())})}function t1(i,e){var t={label:0,sent:function(){if(r[0]&1)throw r[1];return r[1]},trys:[],ops:[]},n,s,r,o;return o={next:a(0),throw:a(1),return:a(2)},typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function a(u){return function(c){return l([u,c])}}function l(u){if(n)throw new TypeError("Generator is already executing.");for(;t;)try{if(n=1,s&&(r=u[0]&2?s.return:u[0]?s.throw||((r=s.return)&&r.call(s),0):s.next)&&!(r=r.call(s,u[1])).done)return r;switch(s=0,r&&(u=[u[0]&2,r.value]),u[0]){case 0:case 1:r=u;break;case 4:return t.label++,{value:u[1],done:!1};case 5:t.label++,s=u[1],u=[0];continue;case 7:u=t.ops.pop(),t.trys.pop();continue;default:if(r=t.trys,!(r=r.length>0&&r[r.length-1])&&(u[0]===6||u[0]===2)){t=0;continue}if(u[0]===3&&(!r||u[1]>r[0]&&u[1]<r[3])){t.label=u[1];break}if(u[0]===6&&t.label<r[1]){t.label=r[1],r=u;break}if(r&&t.label<r[2]){t.label=r[2],t.ops.push(u);break}r[2]&&t.ops.pop(),t.trys.pop();continue}u=e.call(i,t)}catch(c){u=[6,c],s=0}finally{n=r=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}function vE(i){var e=typeof Symbol=="function"&&Symbol.iterator,t=e&&i[e],n=0;if(t)return t.call(i);if(i&&typeof i.length=="number")return{next:function(){return i&&n>=i.length&&(i=void 0),{value:i&&i[n++],done:!i}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function DN(i){return this instanceof DN?(this.v=i,this):new DN(i)}function Gdt(i,e,t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n=t.apply(i,e||[]),s,r=[];return s={},o("next"),o("throw"),o("return"),s[Symbol.asyncIterator]=function(){return this},s;function o(h){n[h]&&(s[h]=function(f){return new Promise(function(g,b){r.push([h,f,g,b])>1||a(h,f)})})}function a(h,f){try{l(n[h](f))}catch(g){d(r[0][3],g)}}function l(h){h.value instanceof DN?Promise.resolve(h.value.v).then(u,c):d(r[0][2],h)}function u(h){a("next",h)}function c(h){a("throw",h)}function d(h,f){h(f),r.shift(),r.length&&a(r[0][0],r[0][1])}}var txe=(function(i){qdt(e,i);function e(t){var n=i.call(this,t)||this;return Object.defineProperty(n,"name",{value:"RepeaterOverflowError",enumerable:!1}),typeof Object.setPrototypeOf=="function"?Object.setPrototypeOf(n,n.constructor.prototype):n.__proto__=n.constructor.prototype,typeof Error.captureStackTrace=="function"&&Error.captureStackTrace(n,n.constructor),n}return e})(Error);(function(){function i(e){if(e<0)throw new RangeError("Capacity may not be less than 0");this._c=e,this._q=[]}return Object.defineProperty(i.prototype,"empty",{get:function(){return this._q.length===0},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"full",{get:function(){return this._q.length>=this._c},enumerable:!1,configurable:!0}),i.prototype.add=function(e){if(this.full)throw new Error("Buffer full");this._q.push(e)},i.prototype.remove=function(){if(this.empty)throw new Error("Buffer empty");return this._q.shift()},i})(),(function(){function i(e){if(e<1)throw new RangeError("Capacity may not be less than 1");this._c=e,this._q=[]}return Object.defineProperty(i.prototype,"empty",{get:function(){return this._q.length===0},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"full",{get:function(){return!1},enumerable:!1,configurable:!0}),i.prototype.add=function(e){for(;this._q.length>=this._c;)this._q.shift();this._q.push(e)},i.prototype.remove=function(){if(this.empty)throw new Error("Buffer empty");return this._q.shift()},i})(),(function(){function i(e){if(e<1)throw new RangeError("Capacity may not be less than 1");this._c=e,this._q=[]}return Object.defineProperty(i.prototype,"empty",{get:function(){return this._q.length===0},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"full",{get:function(){return!1},enumerable:!1,configurable:!0}),i.prototype.add=function(e){this._q.length<this._c&&this._q.push(e)},i.prototype.remove=function(){if(this.empty)throw new Error("Buffer empty");return this._q.shift()},i})();function sX(i){i!=null&&typeof i.then=="function"&&i.then(v5,v5)}var rX=0,ixe=1,bC=2,b5=3,oX=4,y5=1024,v5=function(){};function CE(i){var e=i.err,t=Promise.resolve(i.execution).then(function(n){if(e!=null)throw e;return n});return i.err=void 0,i.execution=t.then(function(){},function(){}),i.pending===void 0?t:i.pending.then(function(){return t})}function yC(i,e){var t=i.state>=b5;return Promise.resolve(e).then(function(n){return!t&&i.state>=oX?CE(i).then(function(s){return{value:s,done:!0}}):{value:n,done:t}})}function aX(i,e){var t,n;if(!(i.state>=bC))if(i.state=bC,i.onnext(),i.onstop(),i.err==null&&(i.err=e),i.pushes.length===0&&(typeof i.buffer>"u"||i.buffer.empty))EN(i);else try{for(var s=vE(i.pushes),r=s.next();!r.done;r=s.next()){var o=r.value;o.resolve()}}catch(a){t={error:a}}finally{try{r&&!r.done&&(n=s.return)&&n.call(s)}finally{if(t)throw t.error}}}function EN(i){var e,t;if(!(i.state>=b5)){i.state<bC&&aX(i),i.state=b5,i.buffer=void 0;try{for(var n=vE(i.nexts),s=n.next();!s.done;s=n.next()){var r=s.value,o=i.pending===void 0?CE(i):i.pending.then(function(){return CE(i)});r.resolve(yC(i,o))}}catch(a){e={error:a}}finally{try{s&&!s.done&&(t=n.return)&&t.call(n)}finally{if(e)throw e.error}}i.pushes=[],i.nexts=[]}}function nxe(i){i.state>=oX||(i.state<b5&&EN(i),i.state=oX)}function Kdt(i,e){if(sX(e),i.pushes.length>=y5)throw new txe("No more than "+y5+" pending calls to push are allowed on a single repeater.");if(i.state>=bC)return Promise.resolve(void 0);var t=i.pending===void 0?Promise.resolve(e):i.pending.then(function(){return e});t=t.catch(function(l){i.state<bC&&(i.err=l),nxe(i)});var n;if(i.nexts.length){var s=i.nexts.shift();s.resolve(yC(i,t)),i.nexts.length?n=Promise.resolve(i.nexts[0].value):typeof i.buffer<"u"&&!i.buffer.full?n=Promise.resolve(void 0):n=new Promise(function(l){return i.onnext=l})}else typeof i.buffer<"u"&&!i.buffer.full?(i.buffer.add(t),n=Promise.resolve(void 0)):n=new Promise(function(l){return i.pushes.push({resolve:l,value:t})});var r=!0,o={},a=n.catch(function(l){if(r)throw l});return o.then=function(l,u){return r=!1,Promise.prototype.then.call(n,l,u)},o.catch=function(l){return r=!1,Promise.prototype.catch.call(n,l)},o.finally=n.finally.bind(n),i.pending=t.then(function(){return a}).catch(function(l){i.err=l,nxe(i)}),o}function Ydt(i){var e=aX.bind(null,i),t=new Promise(function(n){return i.onstop=n});return e.then=t.then.bind(t),e.catch=t.catch.bind(t),e.finally=t.finally.bind(t),e}function Xdt(i){if(!(i.state>=ixe)){i.state=ixe;var e=Kdt.bind(null,i),t=Ydt(i);i.execution=new Promise(function(n){return n(i.executor(e,t))}),i.execution.catch(function(){return aX(i)})}}var C5=new WeakMap,wE=(function(){function i(e,t){C5.set(this,{executor:e,buffer:t,err:void 0,state:rX,pushes:[],nexts:[],pending:void 0,execution:void 0,onnext:v5,onstop:v5})}return i.prototype.next=function(e){sX(e);var t=C5.get(this);if(t===void 0)throw new Error("WeakMap error");if(t.nexts.length>=y5)throw new txe("No more than "+y5+" pending calls to next are allowed on a single repeater.");if(t.state<=rX&&Xdt(t),t.onnext(e),typeof t.buffer<"u"&&!t.buffer.empty){var n=yC(t,t.buffer.remove());if(t.pushes.length){var s=t.pushes.shift();t.buffer.add(s.value),t.onnext=s.resolve}return n}else if(t.pushes.length){var r=t.pushes.shift();return t.onnext=r.resolve,yC(t,r.value)}else if(t.state>=bC)return EN(t),yC(t,CE(t));return new Promise(function(o){return t.nexts.push({resolve:o,value:e})})},i.prototype.return=function(e){sX(e);var t=C5.get(this);if(t===void 0)throw new Error("WeakMap error");return EN(t),t.execution=Promise.resolve(t.execution).then(function(){return e}),yC(t,CE(t))},i.prototype.throw=function(e){var t=C5.get(this);if(t===void 0)throw new Error("WeakMap error");return t.state<=rX||t.state>=bC||typeof t.buffer<"u"&&!t.buffer.empty?(EN(t),t.err==null&&(t.err=e),yC(t,CE(t))):this.next(Promise.reject(e))},i.prototype[Symbol.asyncIterator]=function(){return this},i.race=Qdt,i.merge=Zdt,i.zip=Jdt,i.latest=eht,i})();function w5(i,e){var t,n,s=[],r=function(u){u!=null&&typeof u[Symbol.asyncIterator]=="function"?s.push(u[Symbol.asyncIterator]()):u!=null&&typeof u[Symbol.iterator]=="function"?s.push(u[Symbol.iterator]()):s.push((function(){return Gdt(this,arguments,function(){return t1(this,function(h){switch(h.label){case 0:return e.yieldValues?[4,DN(u)]:[3,3];case 1:return[4,h.sent()];case 2:h.sent(),h.label=3;case 3:return e.returnValues?[4,DN(u)]:[3,5];case 4:return[2,h.sent()];case 5:return[2]}})})})())};try{for(var o=vE(i),a=o.next();!a.done;a=o.next()){var l=a.value;r(l)}}catch(u){t={error:u}}finally{try{a&&!a.done&&(n=o.return)&&n.call(o)}finally{if(t)throw t.error}}return s}function Qdt(i){var e=this,t=w5(i,{returnValues:!0});return new wE(function(n,s){return yE(e,void 0,void 0,function(){var r,o,a,l,u,c;return t1(this,function(d){switch(d.label){case 0:if(!t.length)return s(),[2];o=!1,s.then(function(){r(),o=!0}),d.label=1;case 1:d.trys.push([1,,5,7]),l=void 0,u=0,c=function(){var h,f,g,b,y,S;return t1(this,function(x){switch(x.label){case 0:h=u;try{for(f=(y=void 0,vE(t)),g=f.next();!g.done;g=f.next())b=g.value,Promise.resolve(b.next()).then(function(E){E.done?(s(),a===void 0&&(a=E)):u===h&&(u++,r(E))},function(E){return s(E)})}catch(E){y={error:E}}finally{try{g&&!g.done&&(S=f.return)&&S.call(f)}finally{if(y)throw y.error}}return[4,new Promise(function(E){return r=E})];case 1:return l=x.sent(),l===void 0?[3,3]:[4,n(l.value)];case 2:x.sent(),x.label=3;case 3:return[2]}})},d.label=2;case 2:return o?[3,4]:[5,c()];case 3:return d.sent(),[3,2];case 4:return[2,a&&a.value];case 5:return s(),[4,Promise.race(t.map(function(h){return h.return&&h.return()}))];case 6:return d.sent(),[7];case 7:return[2]}})})})}function Zdt(i){var e=this,t=w5(i,{yieldValues:!0});return new wE(function(n,s){return yE(e,void 0,void 0,function(){var r,o,a,l=this;return t1(this,function(u){switch(u.label){case 0:if(!t.length)return s(),[2];r=[],o=!1,s.then(function(){var c,d;o=!0;try{for(var h=vE(r),f=h.next();!f.done;f=h.next()){var g=f.value;g()}}catch(b){c={error:b}}finally{try{f&&!f.done&&(d=h.return)&&d.call(h)}finally{if(c)throw c.error}}}),u.label=1;case 1:return u.trys.push([1,,3,4]),[4,Promise.all(t.map(function(c,d){return yE(l,void 0,void 0,function(){var h,f;return t1(this,function(g){switch(g.label){case 0:g.trys.push([0,,6,9]),g.label=1;case 1:return o?[3,5]:(Promise.resolve(c.next()).then(function(b){return r[d](b)},function(b){return s(b)}),[4,new Promise(function(b){r[d]=b})]);case 2:return h=g.sent(),h===void 0?[3,4]:h.done?(a=h,[2]):[4,n(h.value)];case 3:g.sent(),g.label=4;case 4:return[3,1];case 5:return[3,9];case 6:return f=c.return,f?[4,c.return()]:[3,8];case 7:f=g.sent(),g.label=8;case 8:return[7];case 9:return[2]}})})}))];case 2:return u.sent(),[2,a&&a.value];case 3:return s(),[7];case 4:return[2]}})})})}function Jdt(i){var e=this,t=w5(i,{returnValues:!0});return new wE(function(n,s){return yE(e,void 0,void 0,function(){var r,o,a,l;return t1(this,function(u){switch(u.label){case 0:if(!t.length)return s(),[2,[]];o=!1,s.then(function(){r(),o=!0}),u.label=1;case 1:u.trys.push([1,,6,8]),u.label=2;case 2:return o?[3,5]:(Promise.all(t.map(function(c){return c.next()})).then(function(c){return r(c)},function(c){return s(c)}),[4,new Promise(function(c){return r=c})]);case 3:return a=u.sent(),a===void 0?[2]:(l=a.map(function(c){return c.value}),a.some(function(c){return c.done})?[2,l]:[4,n(l)]);case 4:return u.sent(),[3,2];case 5:return[3,8];case 6:return s(),[4,Promise.all(t.map(function(c){return c.return&&c.return()}))];case 7:return u.sent(),[7];case 8:return[2]}})})})}function eht(i){var e=this,t=w5(i,{yieldValues:!0,returnValues:!0});return new wE(function(n,s){return yE(e,void 0,void 0,function(){var r,o,a,l,u,c=this;return t1(this,function(d){switch(d.label){case 0:if(!t.length)return s(),[2,[]];o=[],a=!1,s.then(function(){var h,f;r();try{for(var g=vE(o),b=g.next();!b.done;b=g.next()){var y=b.value;y()}}catch(S){h={error:S}}finally{try{b&&!b.done&&(f=g.return)&&f.call(g)}finally{if(h)throw h.error}}a=!0}),d.label=1;case 1:return d.trys.push([1,,5,7]),Promise.all(t.map(function(h){return h.next()})).then(function(h){return r(h)},function(h){return s(h)}),[4,new Promise(function(h){return r=h})];case 2:return l=d.sent(),l===void 0?[2]:(u=l.map(function(h){return h.value}),l.every(function(h){return h.done})?[2,u]:[4,n(u.slice())]);case 3:return d.sent(),[4,Promise.all(t.map(function(h,f){return yE(c,void 0,void 0,function(){var g;return t1(this,function(b){switch(b.label){case 0:if(l[f].done)return[2,l[f].value];b.label=1;case 1:return a?[3,4]:(Promise.resolve(h.next()).then(function(y){return o[f](y)},function(y){return s(y)}),[4,new Promise(function(y){return o[f]=y})]);case 2:return g=b.sent(),g===void 0?[2,l[f].value]:g.done?[2,g.value]:(u[f]=g.value,[4,n(u.slice())]);case 3:return b.sent(),[3,1];case 4:return[2]}})})}))];case 4:return[2,d.sent()];case 5:return s(),[4,Promise.all(t.map(function(h){return h.return&&h.return()}))];case 6:return d.sent(),[7];case 7:return[2]}})})})}async function tht(i,e){let t=i.headers["content-type"];if(!t||!~t.indexOf("multipart/"))return i;let n=t.indexOf("boundary="),s="-";if(~n){let r=n+9,o=t.indexOf(";",r);s=t.slice(r,o>-1?o:void 0).trim().replace(/"/g,"")}return(async function*(r,o,a){let l,u,c,d=Buffer.byteLength(o),h=Buffer.alloc(0),f=[];e:for await(let g of r){l=h.byteLength,h=Buffer.concat([h,g]);let b=g.indexOf(o);for(~b?l+=b:l=h.indexOf(o),f=[];~l;){let y=h.subarray(0,l),S=h.subarray(l+d);if(u){let x=y.indexOf(`\r
|
|
369
|
+
`+o,block:!0}}:{...s,description:{kind:X.STRING,value:o,block:a}}}}}})}function udt(i){return h3(i)||i.kind===X.FIELD_DEFINITION||i.kind===X.INPUT_VALUE_DEFINITION||i.kind===X.ENUM_VALUE_DEFINITION}var Bn;(function(i){i.TYPE="MapperKind.TYPE",i.SCALAR_TYPE="MapperKind.SCALAR_TYPE",i.ENUM_TYPE="MapperKind.ENUM_TYPE",i.COMPOSITE_TYPE="MapperKind.COMPOSITE_TYPE",i.OBJECT_TYPE="MapperKind.OBJECT_TYPE",i.INPUT_OBJECT_TYPE="MapperKind.INPUT_OBJECT_TYPE",i.ABSTRACT_TYPE="MapperKind.ABSTRACT_TYPE",i.UNION_TYPE="MapperKind.UNION_TYPE",i.INTERFACE_TYPE="MapperKind.INTERFACE_TYPE",i.ROOT_OBJECT="MapperKind.ROOT_OBJECT",i.QUERY="MapperKind.QUERY",i.MUTATION="MapperKind.MUTATION",i.SUBSCRIPTION="MapperKind.SUBSCRIPTION",i.DIRECTIVE="MapperKind.DIRECTIVE",i.FIELD="MapperKind.FIELD",i.COMPOSITE_FIELD="MapperKind.COMPOSITE_FIELD",i.OBJECT_FIELD="MapperKind.OBJECT_FIELD",i.ROOT_FIELD="MapperKind.ROOT_FIELD",i.QUERY_ROOT_FIELD="MapperKind.QUERY_ROOT_FIELD",i.MUTATION_ROOT_FIELD="MapperKind.MUTATION_ROOT_FIELD",i.SUBSCRIPTION_ROOT_FIELD="MapperKind.SUBSCRIPTION_ROOT_FIELD",i.INTERFACE_FIELD="MapperKind.INTERFACE_FIELD",i.INPUT_OBJECT_FIELD="MapperKind.INPUT_OBJECT_FIELD",i.ARGUMENT="MapperKind.ARGUMENT",i.ENUM_VALUE="MapperKind.ENUM_VALUE"})(Bn||(Bn={}));function gE(i,e){if(e){const t=i[e.name];if(en(t))return t}}function cdt(i){if("getFields"in i){const e=i.getFields();for(const t in e)return e[t].name==="_fake"}return!1}function ddt(i){switch(i.name){case nA.name:return nA;case sA.name:return sA;case lo.name:return lo;case vl.name:return vl;case rA.name:return rA;default:return i}}function hdt(i,e){const t=Object.create(null);for(const h in i)t[h]=i[h];const n=Object.create(null);for(const h in t){const f=t[h];if(f==null||h.startsWith("__"))continue;const g=f.name;if(!g.startsWith("__")){if(n[g]!=null){console.warn(`Duplicate schema type name ${g} found; keeping the existing one found in the schema`);continue}n[g]=f}}for(const h in n)n[h]=a(n[h]);const s=e.map(h=>r(h));return{typeMap:n,directives:s};function r(h){if(a3(h))return h;const f=h.toConfig();return f.args=o(f.args),new zc(f)}function o(h){const f={};for(const g in h){const b=h[g],y=d(b.type);y!=null&&(b.type=y,f[g]=b)}return f}function a(h){if(en(h)){const f=h.toConfig(),g={...f,fields:()=>l(f.fields),interfaces:()=>c(f.interfaces)};return new yl(g)}else if(_n(h)){const f=h.toConfig(),g={...f,fields:()=>l(f.fields)};return"interfaces"in g&&(g.interfaces=()=>c(f.interfaces)),new Uh(g)}else if(xo(h)){const f=h.toConfig(),g={...f,types:()=>c(f.types)};return new Fb(g)}else if(os(h)){const f=h.toConfig(),g={...f,fields:()=>u(f.fields)};return new Jf(g)}else if(Br(h)){const f=h.toConfig();return new zh(f)}else if(Tu(h)){if(aA(h))return h;const f=h.toConfig();return new Zf(f)}throw new Error(`Unexpected schema type: ${h}`)}function l(h){const f={};for(const g in h){const b=h[g],y=d(b.type);y!=null&&b.args&&(b.type=y,b.args=o(b.args),f[g]=b)}return f}function u(h){const f={};for(const g in h){const b=h[g],y=d(b.type);y!=null&&(b.type=y,f[g]=b)}return f}function c(h){const f=[];for(const g of h){const b=d(g);b!=null&&f.push(b)}return f}function d(h){if(Ys(h)){const f=d(h.ofType);return f!=null?new La(f):null}else if(tn(h)){const f=d(h.ofType);return f!=null?new Fn(f):null}else if(_0(h)){let f=t[h.name];return f===void 0&&(f=cdt(h)?ddt(h):a(h),n[f.name]=t[h.name]=f),f!=null?n[f.name]:null}return null}}function d5(i,e,t=null,n=null){if(e==null)return e;const s=ED(i);if(el(s))return t!=null?t(s,e):e;if(Ys(s))return Hct(e).map(r=>d5(s.ofType,r,t,n));if(os(s)){const r=s.getFields(),o={};for(const a in e){const l=r[a];l!=null&&(o[a]=d5(l.type,e[a],t,n))}return n!=null?n(s,o):o}}function h5(i,e){return d5(i,e,(t,n)=>{try{return t.serialize(n)}catch{return n}})}function fdt(i,e){return d5(i,e,(t,n)=>{try{return t.parseValue(n)}catch{return n}})}function pdt(i,e={}){const t=USe($Se(YY(HSe(mdt(YY(HSe(i.getTypeMap(),i,h5),i,e,a=>el(a)),i,e),i,fdt),i,e,a=>!el(a)),i,e),i,e),n=i.getDirectives(),s=_dt(n,i,e),{typeMap:r,directives:o}=hdt(t,s);return new Hv({...i.toConfig(),query:gE(r,gE(t,i.getQueryType())),mutation:gE(r,gE(t,i.getMutationType())),subscription:gE(r,gE(t,i.getSubscriptionType())),types:Object.values(r),directives:o})}const gdt=["String","ID","Int","Float","Boolean"];function YY(i,e,t,n=()=>!0){const s={};for(const r in i)if(!r.startsWith("__")&&!gdt.includes(r)){const o=i[r];if(o==null||!n(o)){s[r]=o;continue}const a=ydt(e,t,r);if(a==null){s[r]=o;continue}const l=a(o,e);if(l===void 0){s[r]=o;continue}s[r]=l}return s}function mdt(i,e,t){const n=xdt(t);return n?YY(i,e,{[Bn.ENUM_TYPE]:s=>{const r=s.toConfig(),o=r.values,a={};for(const l in o){const u=o[l],c=n(u,s.name,e,l);if(c===void 0)a[l]=u;else if(Array.isArray(c)){const[d,h]=c;a[d]=h===void 0?u:h}else c!==null&&(a[l]=c)}return p5(new zh({...r,values:a}))}},s=>Br(s)):i}function HSe(i,e,t){const n=USe(i,e,{[Bn.ARGUMENT]:s=>{if(s.defaultValue===void 0)return s;const r=f5(i,s.type);if(r!=null)return{...s,defaultValue:t(r,s.defaultValue)}}});return $Se(n,e,{[Bn.INPUT_OBJECT_FIELD]:s=>{if(s.defaultValue===void 0)return s;const r=f5(n,s.type);if(r!=null)return{...s,defaultValue:t(r,s.defaultValue)}}})}function f5(i,e){if(Ys(e)){const t=f5(i,e.ofType);return t!=null?new La(t):null}else if(tn(e)){const t=f5(i,e.ofType);return t!=null?new Fn(t):null}else if(_0(e)){const t=i[e.name];return t??null}return null}function $Se(i,e,t){const n={};for(const s in i)if(!s.startsWith("__")){const r=i[s];if(!en(r)&&!_n(r)&&!os(r)){n[s]=r;continue}const o=Cdt(e,t,s);if(o==null){n[s]=r;continue}const a=r.toConfig(),l=a.fields,u={};for(const c in l){const d=l[c],h=o(d,c,s,e);if(h===void 0)u[c]=d;else if(Array.isArray(h)){const[f,g]=h;g.astNode!=null&&(g.astNode={...g.astNode,name:{...g.astNode.name,value:f}}),u[f]=g===void 0?d:g}else h!==null&&(u[c]=h)}en(r)?n[s]=p5(new yl({...a,fields:u})):_n(r)?n[s]=p5(new Uh({...a,fields:u})):n[s]=p5(new Jf({...a,fields:u}))}return n}function USe(i,e,t){const n={};for(const s in i)if(!s.startsWith("__")){const r=i[s];if(!en(r)&&!_n(r)){n[s]=r;continue}const o=wdt(t);if(o==null){n[s]=r;continue}const a=r.toConfig(),l=a.fields,u={};for(const c in l){const d=l[c],h=d.args;if(h==null){u[c]=d;continue}const f=Object.keys(h);if(!f.length){u[c]=d;continue}const g={};for(const b of f){const y=h[b],S=o(y,c,s,e);if(S===void 0)g[b]=y;else if(Array.isArray(S)){const[x,E]=S;g[x]=E}else S!==null&&(g[b]=S)}u[c]={...d,args:g}}en(r)?n[s]=new yl({...a,fields:u}):_n(r)?n[s]=new Uh({...a,fields:u}):n[s]=new Jf({...a,fields:u})}return n}function _dt(i,e,t){const n=Sdt(t);if(n==null)return i.slice();const s=[];for(const r of i){const o=n(r,e);o===void 0?s.push(r):o!==null&&s.push(o)}return s}function bdt(i,e){const t=i.getType(e),n=[Bn.TYPE];return en(t)?(n.push(Bn.COMPOSITE_TYPE,Bn.OBJECT_TYPE),e===i.getQueryType()?.name?n.push(Bn.ROOT_OBJECT,Bn.QUERY):e===i.getMutationType()?.name?n.push(Bn.ROOT_OBJECT,Bn.MUTATION):e===i.getSubscriptionType()?.name&&n.push(Bn.ROOT_OBJECT,Bn.SUBSCRIPTION)):os(t)?n.push(Bn.INPUT_OBJECT_TYPE):_n(t)?n.push(Bn.COMPOSITE_TYPE,Bn.ABSTRACT_TYPE,Bn.INTERFACE_TYPE):xo(t)?n.push(Bn.COMPOSITE_TYPE,Bn.ABSTRACT_TYPE,Bn.UNION_TYPE):Br(t)?n.push(Bn.ENUM_TYPE):Tu(t)&&n.push(Bn.SCALAR_TYPE),n}function ydt(i,e,t){const n=bdt(i,t);let s;const r=[...n];for(;!s&&r.length>0;){const o=r.pop();s=e[o]}return s??null}function vdt(i,e){const t=i.getType(e),n=[Bn.FIELD];return en(t)?(n.push(Bn.COMPOSITE_FIELD,Bn.OBJECT_FIELD),e===i.getQueryType()?.name?n.push(Bn.ROOT_FIELD,Bn.QUERY_ROOT_FIELD):e===i.getMutationType()?.name?n.push(Bn.ROOT_FIELD,Bn.MUTATION_ROOT_FIELD):e===i.getSubscriptionType()?.name&&n.push(Bn.ROOT_FIELD,Bn.SUBSCRIPTION_ROOT_FIELD)):_n(t)?n.push(Bn.COMPOSITE_FIELD,Bn.INTERFACE_FIELD):os(t)&&n.push(Bn.INPUT_OBJECT_FIELD),n}function Cdt(i,e,t){const n=vdt(i,t);let s;const r=[...n];for(;!s&&r.length>0;){const o=r.pop();s=e[o]}return s??null}function wdt(i){const e=i[Bn.ARGUMENT];return e??null}function Sdt(i){const e=i[Bn.DIRECTIVE];return e??null}function xdt(i){const e=i[Bn.ENUM_VALUE];return e??null}function p5(i){if(en(i)){const e=i.toConfig();if(e.astNode!=null){const t=[];for(const n in e.fields){const s=e.fields[n];s.astNode!=null&&t.push(s.astNode)}e.astNode={...e.astNode,kind:X.OBJECT_TYPE_DEFINITION,fields:t}}return e.extensionASTNodes!=null&&(e.extensionASTNodes=e.extensionASTNodes.map(t=>({...t,kind:X.OBJECT_TYPE_EXTENSION,fields:void 0}))),new yl(e)}else if(_n(i)){const e=i.toConfig();if(e.astNode!=null){const t=[];for(const n in e.fields){const s=e.fields[n];s.astNode!=null&&t.push(s.astNode)}e.astNode={...e.astNode,kind:X.INTERFACE_TYPE_DEFINITION,fields:t}}return e.extensionASTNodes!=null&&(e.extensionASTNodes=e.extensionASTNodes.map(t=>({...t,kind:X.INTERFACE_TYPE_EXTENSION,fields:void 0}))),new Uh(e)}else if(os(i)){const e=i.toConfig();if(e.astNode!=null){const t=[];for(const n in e.fields){const s=e.fields[n];s.astNode!=null&&t.push(s.astNode)}e.astNode={...e.astNode,kind:X.INPUT_OBJECT_TYPE_DEFINITION,fields:t}}return e.extensionASTNodes!=null&&(e.extensionASTNodes=e.extensionASTNodes.map(t=>({...t,kind:X.INPUT_OBJECT_TYPE_EXTENSION,fields:void 0}))),new Jf(e)}else if(Br(i)){const e=i.toConfig();if(e.astNode!=null){const t=[];for(const n in e.values){const s=e.values[n];s.astNode!=null&&t.push(s.astNode)}e.astNode={...e.astNode,values:t}}return e.extensionASTNodes!=null&&(e.extensionASTNodes=e.extensionASTNodes.map(t=>({...t,values:void 0}))),new zh(e)}else return i}function mE(i,e=!1,t=!1,n=!1){if(i.length===0)return;if(i.length===1)return i[0];let s,r=!0;const o=i.every(u=>{if(Array.isArray(u)){if(s===void 0)return s=u.length,!0;if(s===u.length)return!0}else r=!1;return!1});if(n&&o)return new Array(s).fill(null).map((u,c)=>mE(i.map(d=>d[c]),e,t,n));if(r)return i.flat(1);let a,l;e&&(l=i.find(u=>zSe(u)),l&&(a==null&&(a={}),Object.setPrototypeOf(a,Object.create(Object.getPrototypeOf(l)))));for(const u of i)if(u!=null)if(zSe(u)){if(l){const c=Object.getPrototypeOf(a),d=Object.getPrototypeOf(u);if(d)for(const h of Object.getOwnPropertyNames(d)){const f=Object.getOwnPropertyDescriptor(d,h);$ct(f)&&Object.defineProperty(c,h,f)}}for(const c in u)a==null&&(a={}),c in a?a[c]=mE([a[c],u[c]],e,t,n):a[c]=u[c]}else Array.isArray(u)&&Array.isArray(a)?a=mE([a,u],e,t,n):a=u;return a}function zSe(i){return i&&typeof i=="object"&&!Array.isArray(i)}function XY(i){return i.fieldNodes[0].alias!=null?i.fieldNodes[0].alias.value:i.fieldName}function g5(i,e,t){return t==null||e==null?!1:e===t?!0:Ju(e)&&Ju(t)?e3(i,e,t):!1}function Ddt(i){const e=[],t=[];let n=!0;const s=c=>{e.length!==0?e.shift()({value:c,done:!1}):t.push({value:c,done:!1})},r=c=>{e.length!==0?e.shift()({value:{errors:[c]},done:!1}):t.push({value:{errors:[c]},done:!1})},o=()=>{e.length!==0?e.shift()({done:!0}):t.push({done:!0})},a=()=>new Promise(c=>{if(t.length!==0){const d=t.shift();c(d)}else e.push(c)}),l=i.subscribe({next(c){return s(c)},error(c){return r(c)},complete(){return o()}}),u=()=>{if(n){n=!1,l.unsubscribe();for(const c of e)c({value:void 0,done:!0});e.length=0,t.length=0}};return{next(){return n?a():this.return()},return(){return u(),Kc({value:void 0,done:!0})},throw(c){return u(),fC(c)},[Symbol.asyncIterator](){return this}}}class m5 extends Map{get[Symbol.toStringTag](){return"AccumulatorMap"}add(e,t){const n=this.get(e);n===void 0?this.set(e,[t]):n.push(t)}}const Edt=new zc({name:"defer",description:"Directs the executor to defer this fragment when the `if` argument is true or undefined.",locations:[Xi.FRAGMENT_SPREAD,Xi.INLINE_FRAGMENT],args:{if:{type:new Fn(vl),description:"Deferred when true or undefined.",defaultValue:!0},label:{type:lo,description:"Unique name"}}}),Tdt=new zc({name:"stream",description:"Directs the executor to stream plural fields when the `if` argument is true or undefined.",locations:[Xi.FIELD],args:{if:{type:new Fn(vl),description:"Stream when true or undefined.",defaultValue:!0},label:{type:lo,description:"Unique name"},initialCount:{defaultValue:0,type:nA,description:"Number of items to return immediately"}}});function _E(i,e,t,n,s,r,o,a){for(const l of s.selections)switch(l.kind){case X.FIELD:{if(!ZY(t,l))continue;r.add(kdt(l),l);break}case X.INLINE_FRAGMENT:{if(!ZY(t,l)||!jSe(i,l,n))continue;const u=qSe(t,l);if(u){const c=new m5;_E(i,e,t,n,l.selectionSet,c,o,a),o.push({label:u.label,fields:c})}else _E(i,e,t,n,l.selectionSet,r,o,a);break}case X.FRAGMENT_SPREAD:{const u=l.name.value;if(!ZY(t,l))continue;const c=qSe(t,l);if(a.has(u)&&!c)continue;const d=e[u];if(!d||!jSe(i,d,n))continue;if(c||a.add(u),c){const h=new m5;_E(i,e,t,n,d.selectionSet,h,o,a),o.push({label:c.label,fields:h})}else _E(i,e,t,n,d.selectionSet,r,o,a);break}}}function QY(i,e,t,n,s){const r=new m5,o=[];return _E(i,e,t,n,s,r,o,new Set),{fields:r,patches:o}}function ZY(i,e){return!(yg(r3,e,i)?.if===!0||yg(s3,e,i)?.if===!1)}function jSe(i,e,t){const n=e.typeCondition;if(!n)return!0;const s=Cl(i,n);return s===t?!0:Mo(s)?i.getPossibleTypes(s).includes(t):!1}function kdt(i){return i.alias?i.alias.value:i.name.value}function qSe(i,e){const t=yg(Edt,e,i);if(t&&t.if!==!1)return{label:typeof t.label=="string"?t.label:void 0}}const Ldt=Xct(function(e,t,n,s,r){const o=new m5,a=new Set,l=[],u={fields:o,patches:l};for(const c of r)c.selectionSet&&_E(e,t,n,s,c.selectionSet,o,l,a);return u});function Adt(i,e){const t=Qj(i,e);if(!t)throw new Error(`Cannot infer operation ${e||""}`);return t}const pC=dp(function(e){return Adt(e.document,e.operationName)});function gC(i){return i?.[Symbol.asyncIterator]!=null}function bE(i,e,t){return{prev:i,key:e,typename:t}}function Tl(i){const e=[];let t=i;for(;t;)e.push(t.key),t=t.prev;return e.reverse()}function Ndt(i){return i.map(e=>typeof e=="number"?"["+e.toString()+"]":"."+e).join("")}function GSe({incrementalResult:i,executionResult:e}){const t=["data",...i.path??[]];if(i.items)for(const n of i.items)JY(e,t,n),t[t.length-1]++;i.data&&JY(e,t,i.data),i.errors&&(e.errors=e.errors||[],e.errors.push(...i.errors)),i.extensions&&JY(e,["extensions"],i.extensions),i.incremental&&i.incremental.forEach(n=>{GSe({incrementalResult:n,executionResult:e})})}function JY(i,e,t){let n=i,s;for(s=0;s<e.length-1;s++){const a=e[s];if(a==="__proto__"||a==="constructor"||a==="prototype")return;n[a]==null&&(n[a]=typeof e[s+1]=="number"?[]:{}),n=n[a]}const r=e[s];if(r==="__proto__"||r==="constructor"||r==="prototype")return;const o=n[r];n[r]=o!=null?mE([o,t]):t}const eX=dp(function(e){return Age(Bct(e,Vs))});function tX({executionRequest:i,excludeQuery:e,printFn:t=eX}){return{query:e?void 0:t(i.document),variables:(i.variables&&Object.keys(i.variables).length)>0?i.variables:void 0,operationName:i.operationName?i.operationName:void 0,extensions:i.extensions&&Object.keys(i.extensions).length>0?i.extensions:void 0}}const N0={get dispose(){return Symbol.dispose||Symbol.for("dispose")},get asyncDispose(){return Symbol.asyncDispose||Symbol.for("asyncDispose")}};function Yc(i){return i===null?"null":Array.isArray(i)?"array":typeof i}function mC(i){return Yc(i)==="object"}function Idt(i){return Array.isArray(i)&&i.length>0&&i.every(e=>"message"in e)}function KSe(i,e){return i.length<124?i:e}const Pdt="graphql-transport-ws";var sf=(i=>(i[i.InternalServerError=4500]="InternalServerError",i[i.InternalClientError=4005]="InternalClientError",i[i.BadRequest=4400]="BadRequest",i[i.BadResponse=4004]="BadResponse",i[i.Unauthorized=4401]="Unauthorized",i[i.Forbidden=4403]="Forbidden",i[i.SubprotocolNotAcceptable=4406]="SubprotocolNotAcceptable",i[i.ConnectionInitialisationTimeout=4408]="ConnectionInitialisationTimeout",i[i.ConnectionAcknowledgementTimeout=4504]="ConnectionAcknowledgementTimeout",i[i.SubscriberAlreadyExists=4409]="SubscriberAlreadyExists",i[i.TooManyInitialisationRequests=4429]="TooManyInitialisationRequests",i))(sf||{}),rf=(i=>(i.ConnectionInit="connection_init",i.ConnectionAck="connection_ack",i.Ping="ping",i.Pong="pong",i.Subscribe="subscribe",i.Next="next",i.Error="error",i.Complete="complete",i))(rf||{});function YSe(i){if(!mC(i))throw new Error(`Message is expected to be an object, but got ${Yc(i)}`);if(!i.type)throw new Error("Message is missing the 'type' property");if(typeof i.type!="string")throw new Error(`Message is expects the 'type' property to be a string, but got ${Yc(i.type)}`);switch(i.type){case"connection_init":case"connection_ack":case"ping":case"pong":{if(i.payload!=null&&!mC(i.payload))throw new Error(`"${i.type}" message expects the 'payload' property to be an object or nullish or missing, but got "${i.payload}"`);break}case"subscribe":{if(typeof i.id!="string")throw new Error(`"${i.type}" message expects the 'id' property to be a string, but got ${Yc(i.id)}`);if(!i.id)throw new Error(`"${i.type}" message requires a non-empty 'id' property`);if(!mC(i.payload))throw new Error(`"${i.type}" message expects the 'payload' property to be an object, but got ${Yc(i.payload)}`);if(typeof i.payload.query!="string")throw new Error(`"${i.type}" message payload expects the 'query' property to be a string, but got ${Yc(i.payload.query)}`);if(i.payload.variables!=null&&!mC(i.payload.variables))throw new Error(`"${i.type}" message payload expects the 'variables' property to be a an object or nullish or missing, but got ${Yc(i.payload.variables)}`);if(i.payload.operationName!=null&&Yc(i.payload.operationName)!=="string")throw new Error(`"${i.type}" message payload expects the 'operationName' property to be a string or nullish or missing, but got ${Yc(i.payload.operationName)}`);if(i.payload.extensions!=null&&!mC(i.payload.extensions))throw new Error(`"${i.type}" message payload expects the 'extensions' property to be a an object or nullish or missing, but got ${Yc(i.payload.extensions)}`);break}case"next":{if(typeof i.id!="string")throw new Error(`"${i.type}" message expects the 'id' property to be a string, but got ${Yc(i.id)}`);if(!i.id)throw new Error(`"${i.type}" message requires a non-empty 'id' property`);if(!mC(i.payload))throw new Error(`"${i.type}" message expects the 'payload' property to be an object, but got ${Yc(i.payload)}`);break}case"error":{if(typeof i.id!="string")throw new Error(`"${i.type}" message expects the 'id' property to be a string, but got ${Yc(i.id)}`);if(!i.id)throw new Error(`"${i.type}" message requires a non-empty 'id' property`);if(!Idt(i.payload))throw new Error(`"${i.type}" message expects the 'payload' property to be an array of GraphQL errors, but got ${JSON.stringify(i.payload)}`);break}case"complete":{if(typeof i.id!="string")throw new Error(`"${i.type}" message expects the 'id' property to be a string, but got ${Yc(i.id)}`);if(!i.id)throw new Error(`"${i.type}" message requires a non-empty 'id' property`);break}default:throw new Error(`Invalid message 'type' property "${i.type}"`)}return i}function Mdt(i,e){return YSe(typeof i=="string"?JSON.parse(i,e):i)}function xN(i,e){return YSe(i),JSON.stringify(i,e)}function Rdt(i){const{url:e,connectionParams:t,lazy:n=!0,onNonLazyError:s=console.error,lazyCloseTimeout:r=0,keepAlive:o=0,disablePong:a,connectionAckWaitTimeout:l=0,retryAttempts:u=5,retryWait:c=async function(oe){const Y=Math.pow(2,oe);await new Promise(de=>setTimeout(de,Y*1e3+Math.floor(Math.random()*2700+300)))},shouldRetry:d=iX,on:h,webSocketImpl:f,generateID:g=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,oe=>{const Y=Math.random()*16|0;return(oe=="x"?Y:Y&3|8).toString(16)})},jsonMessageReplacer:b,jsonMessageReviver:y}=i;let S;if(f){if(!Fdt(f))throw new Error("Invalid WebSocket implementation provided");S=f}else typeof WebSocket<"u"?S=WebSocket:typeof global<"u"?S=global.WebSocket||global.MozWebSocket:typeof window<"u"&&(S=window.WebSocket||window.MozWebSocket);if(!S)throw new Error("WebSocket implementation missing; on Node you can `import WebSocket from 'ws';` and pass `webSocketImpl: WebSocket` to `createClient`");const x=S,E=(()=>{const K=(()=>{const Y={};return{on(de,ae){return Y[de]=ae,()=>{delete Y[de]}},emit(de){"id"in de&&Y[de.id]?.(de)}}})(),oe={connecting:h?.connecting?[h.connecting]:[],opened:h?.opened?[h.opened]:[],connected:h?.connected?[h.connected]:[],ping:h?.ping?[h.ping]:[],pong:h?.pong?[h.pong]:[],message:h?.message?[K.emit,h.message]:[K.emit],closed:h?.closed?[h.closed]:[],error:h?.error?[h.error]:[]};return{onMessage:K.on,on(Y,de){const ae=oe[Y];return ae.push(de),()=>{ae.splice(ae.indexOf(de),1)}},emit(Y,...de){for(const ae of[...oe[Y]])ae(...de)}}})();function k(K){const oe=[E.on("error",Y=>{oe.forEach(de=>de()),K(Y)}),E.on("closed",Y=>{oe.forEach(de=>de()),K(Y)})]}let A,I=0,M,B=!1,F=0,G=!1;async function q(){clearTimeout(M);const[K,oe]=await(A??(A=new Promise((ae,he)=>(async()=>{if(B){if(await c(F),!I)return A=void 0,he({code:1e3,reason:"All Subscriptions Gone"});F++}E.emit("connecting",B);const Ce=new x(typeof e=="function"?await e():e,Pdt);let le,J;function Ee(){isFinite(o)&&o>0&&(clearTimeout(J),J=setTimeout(()=>{Ce.readyState===x.OPEN&&(Ce.send(xN({type:rf.Ping})),E.emit("ping",!1,void 0))},o))}k(Ae=>{A=void 0,clearTimeout(le),clearTimeout(J),he(Ae),Ae instanceof XSe&&(Ce.close(4499,"Terminated"),Ce.onerror=null,Ce.onclose=null)}),Ce.onerror=Ae=>E.emit("error",Ae),Ce.onclose=Ae=>E.emit("closed",Ae),Ce.onopen=async()=>{try{E.emit("opened",Ce);const Ae=typeof t=="function"?await t():t;if(Ce.readyState!==x.OPEN)return;Ce.send(xN(Ae?{type:rf.ConnectionInit,payload:Ae}:{type:rf.ConnectionInit},b)),isFinite(l)&&l>0&&(le=setTimeout(()=>{Ce.close(sf.ConnectionAcknowledgementTimeout,"Connection acknowledgement timeout")},l)),Ee()}catch(Ae){E.emit("error",Ae),Ce.close(sf.InternalClientError,KSe(Ae instanceof Error?Ae.message:String(Ae),"Internal client error"))}};let we=!1;Ce.onmessage=({data:Ae})=>{try{const Ue=Mdt(Ae,y);if(E.emit("message",Ue),Ue.type==="ping"||Ue.type==="pong"){E.emit(Ue.type,!0,Ue.payload),Ue.type==="pong"?Ee():a||(Ce.send(xN(Ue.payload?{type:rf.Pong,payload:Ue.payload}:{type:rf.Pong})),E.emit("pong",!1,Ue.payload));return}if(we)return;if(Ue.type!==rf.ConnectionAck)throw new Error(`First message cannot be of type ${Ue.type}`);clearTimeout(le),we=!0,E.emit("connected",Ce,Ue.payload,B),B=!1,F=0,ae([Ce,new Promise((ze,$e)=>k($e))])}catch(Ue){Ce.onmessage=null,E.emit("error",Ue),Ce.close(sf.BadResponse,KSe(Ue instanceof Error?Ue.message:String(Ue),"Bad response"))}}})())));K.readyState===x.CLOSING&&await oe;let Y=()=>{};const de=new Promise(ae=>Y=ae);return[K,Y,Promise.race([de.then(()=>{if(!I){const ae=()=>K.close(1e3,"Normal Closure");isFinite(r)&&r>0?M=setTimeout(()=>{K.readyState===x.OPEN&&ae()},r):ae()}}),oe])]}function ee(K){if(iX(K)&&(Odt(K.code)||[sf.InternalServerError,sf.InternalClientError,sf.BadRequest,sf.BadResponse,sf.Unauthorized,sf.SubprotocolNotAcceptable,sf.SubscriberAlreadyExists,sf.TooManyInitialisationRequests].includes(K.code)))throw K;if(G)return!1;if(iX(K)&&K.code===1e3)return I>0;if(!u||F>=u||!d(K))throw K;return B=!0}n||(async()=>{for(I++;;)try{const[,,K]=await q();await K}catch(K){try{if(!ee(K))return}catch(oe){return s?.(oe)}}})();function Z(K,oe){const Y=g(K);let de=!1,ae=!1,he=()=>{I--,de=!0};return(async()=>{for(I++;;)try{const[Ce,le,J]=await q();if(de)return le();const Ee=E.onMessage(Y,we=>{switch(we.type){case rf.Next:{oe.next(we.payload);return}case rf.Error:{ae=!0,de=!0,oe.error(we.payload),he();return}case rf.Complete:{de=!0,he();return}}});Ce.send(xN({id:Y,type:rf.Subscribe,payload:K},b)),he=()=>{!de&&Ce.readyState===x.OPEN&&Ce.send(xN({id:Y,type:rf.Complete},b)),I--,de=!0,le()},await J.finally(Ee);return}catch(Ce){if(!ee(Ce))return}})().then(()=>{ae||oe.complete()}).catch(Ce=>{oe.error(Ce)}),()=>{de||he()}}return{on:E.on,subscribe:Z,iterate(K){const oe=[],Y={done:!1,error:null,resolve:()=>{}},de=Z(K,{next(he){oe.push(he),Y.resolve()},error(he){Y.done=!0,Y.error=he,Y.resolve()},complete(){Y.done=!0,Y.resolve()}}),ae=(async function*(){for(;;){for(oe.length||await new Promise(Ce=>Y.resolve=Ce);oe.length;)yield oe.shift();if(Y.error)throw Y.error;if(Y.done)return}})();return ae.throw=async he=>(Y.done||(Y.done=!0,Y.error=he,Y.resolve()),{done:!0,value:void 0}),ae.return=async()=>(de(),{done:!0,value:void 0}),ae},async dispose(){if(G=!0,A){const[K]=await A;K.close(1e3,"Normal Closure")}},terminate(){A&&E.emit("closed",new XSe)}}}class XSe extends Error{name="TerminatedCloseEvent";message="4499: Terminated";code=4499;reason="Terminated";wasClean=!1}function iX(i){return mC(i)&&"code"in i&&"reason"in i}function Odt(i){return[1e3,1001,1006,1005,1012,1013,1014].includes(i)?!1:i>=1e3&&i<=1999}function Fdt(i){return typeof i=="function"&&"constructor"in i&&"CLOSED"in i&&"CLOSING"in i&&"CONNECTING"in i&&"OPEN"in i}function Bdt(){if(typeof WebSocket<"u")return WebSocket;if(typeof global.WebSocket<"u")return global.WebSocket;if(typeof window.WebSocket<"u")return window.WebSocket;if(typeof self.WebSocket<"u")return self.WebSocket;throw new Error("`WebSocket` is not supported in this environment")}const QSe=Bdt();function Vdt(){return typeof process<"u"&&process.versions&&process.versions.node&&typeof Bun>"u"}function Wdt(){return typeof window<"u"}function Hdt(){if(!Vdt())return{major:NaN,minor:NaN,patch:NaN};const[i,e,t]=process.versions.node.split(".").map(Number);return{major:i||NaN,minor:e||NaN,patch:t||NaN}}function $dt(i){return"subscribe"in i}function Udt(i){let e,t={},n=eX;if($dt(i))e=i;else{i.print&&(n=i.print);const r=i.headers,o=r?class extends QSe{constructor(l,u){Wdt()?super(l,u):Hdt().major<22?super(l,u,{headers:r}):super(l,{protocols:[u],protocol:u,headers:r})}}:QSe;e=Rdt({url:i.url,webSocketImpl:o,lazy:i.lazy!==!1,lazyCloseTimeout:i.lazyCloseTimeout||0,connectionParams:()=>{const a=(typeof i.connectionParams=="function"?i.connectionParams():i.connectionParams)||{};return Object.assign(a,t)},on:i.on}),i.onClient&&i.onClient(e)}const s=function(o){const{extensions:a,operationType:l=pC(o).operation,info:u,signal:c=u?.signal}=o;a?.connectionParams&&typeof a?.connectionParams=="object"&&(t=Object.assign(t,a.connectionParams));const d=e.iterate(tX({executionRequest:o,printFn:n}));return d.return&&c&&c.addEventListener("abort",()=>{d.return?.()},{once:!0}),l==="subscription"?d:d.next().then(({value:h})=>h)};return Object.defineProperty(s,N0.asyncDispose,{value:function(){return e.dispose()}}),s}const ZSe=!globalThis.Bun&&globalThis.process?.release?.name==="node",_5=ZSe?new FinalizationRegistry(i=>i()):null,JSe=Symbol("CONTROLLER_IN_SIGNAL");function zdt(i){if(i.length===0)return;if(i.length===1)return i[0];if(!ZSe)return AbortSignal.any(i);for(const o of i)if(o.aborted)return o;const e=new AbortController,t=new WeakRef(e),n=[];let s=i.length;for(const o of i){let a=function(){t.deref()?.abort(l.deref()?.reason)};const l=new WeakRef(o);o.addEventListener("abort",a),n.push([l,a]),_5.register(o,()=>!--s&&r(),o)}function r(){for(const[o,a]of n){const l=o.deref();l&&(l.removeEventListener("abort",a),_5.unregister(l));const u=t.deref();u&&(_5.unregister(u.signal),delete u.signal[JSe])}}return e.signal.addEventListener("abort",r),_5.register(e.signal,r,e.signal),e.signal[JSe]=e,e.signal}var Eo={},exe;function jdt(){return exe||(exe=1,Eo.fetch=globalThis.fetch,Eo.Headers=globalThis.Headers,Eo.Request=globalThis.Request,Eo.Response=globalThis.Response,Eo.FormData=globalThis.FormData,Eo.ReadableStream=globalThis.ReadableStream,Eo.WritableStream=globalThis.WritableStream,Eo.TransformStream=globalThis.TransformStream,Eo.CompressionStream=globalThis.CompressionStream,Eo.DecompressionStream=globalThis.DecompressionStream,Eo.TextDecoderStream=globalThis.TextDecoderStream,Eo.TextEncoderStream=globalThis.TextEncoderStream,Eo.Blob=globalThis.Blob,Eo.File=globalThis.File,Eo.crypto=globalThis.crypto,Eo.btoa=globalThis.btoa,Eo.TextEncoder=globalThis.TextEncoder,Eo.TextDecoder=globalThis.TextDecoder,Eo.URLPattern=globalThis.URLPattern,Eo.URL=globalThis.URL,Eo.URLSearchParams=globalThis.URLSearchParams,Eo.createFetch=()=>globalThis),Eo}var _C=jdt();var nX=function(i,e){return nX=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,n){t.__proto__=n}||function(t,n){for(var s in n)n.hasOwnProperty(s)&&(t[s]=n[s])},nX(i,e)};function qdt(i,e){nX(i,e);function t(){this.constructor=i}i.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}function yE(i,e,t,n){function s(r){return r instanceof t?r:new t(function(o){o(r)})}return new(t||(t=Promise))(function(r,o){function a(c){try{u(n.next(c))}catch(d){o(d)}}function l(c){try{u(n.throw(c))}catch(d){o(d)}}function u(c){c.done?r(c.value):s(c.value).then(a,l)}u((n=n.apply(i,[])).next())})}function t1(i,e){var t={label:0,sent:function(){if(r[0]&1)throw r[1];return r[1]},trys:[],ops:[]},n,s,r,o;return o={next:a(0),throw:a(1),return:a(2)},typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function a(u){return function(c){return l([u,c])}}function l(u){if(n)throw new TypeError("Generator is already executing.");for(;t;)try{if(n=1,s&&(r=u[0]&2?s.return:u[0]?s.throw||((r=s.return)&&r.call(s),0):s.next)&&!(r=r.call(s,u[1])).done)return r;switch(s=0,r&&(u=[u[0]&2,r.value]),u[0]){case 0:case 1:r=u;break;case 4:return t.label++,{value:u[1],done:!1};case 5:t.label++,s=u[1],u=[0];continue;case 7:u=t.ops.pop(),t.trys.pop();continue;default:if(r=t.trys,!(r=r.length>0&&r[r.length-1])&&(u[0]===6||u[0]===2)){t=0;continue}if(u[0]===3&&(!r||u[1]>r[0]&&u[1]<r[3])){t.label=u[1];break}if(u[0]===6&&t.label<r[1]){t.label=r[1],r=u;break}if(r&&t.label<r[2]){t.label=r[2],t.ops.push(u);break}r[2]&&t.ops.pop(),t.trys.pop();continue}u=e.call(i,t)}catch(c){u=[6,c],s=0}finally{n=r=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}function vE(i){var e=typeof Symbol=="function"&&Symbol.iterator,t=e&&i[e],n=0;if(t)return t.call(i);if(i&&typeof i.length=="number")return{next:function(){return i&&n>=i.length&&(i=void 0),{value:i&&i[n++],done:!i}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function DN(i){return this instanceof DN?(this.v=i,this):new DN(i)}function Gdt(i,e,t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n=t.apply(i,e||[]),s,r=[];return s={},o("next"),o("throw"),o("return"),s[Symbol.asyncIterator]=function(){return this},s;function o(h){n[h]&&(s[h]=function(f){return new Promise(function(g,b){r.push([h,f,g,b])>1||a(h,f)})})}function a(h,f){try{l(n[h](f))}catch(g){d(r[0][3],g)}}function l(h){h.value instanceof DN?Promise.resolve(h.value.v).then(u,c):d(r[0][2],h)}function u(h){a("next",h)}function c(h){a("throw",h)}function d(h,f){h(f),r.shift(),r.length&&a(r[0][0],r[0][1])}}var txe=(function(i){qdt(e,i);function e(t){var n=i.call(this,t)||this;return Object.defineProperty(n,"name",{value:"RepeaterOverflowError",enumerable:!1}),typeof Object.setPrototypeOf=="function"?Object.setPrototypeOf(n,n.constructor.prototype):n.__proto__=n.constructor.prototype,typeof Error.captureStackTrace=="function"&&Error.captureStackTrace(n,n.constructor),n}return e})(Error);(function(){function i(e){if(e<0)throw new RangeError("Capacity may not be less than 0");this._c=e,this._q=[]}return Object.defineProperty(i.prototype,"empty",{get:function(){return this._q.length===0},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"full",{get:function(){return this._q.length>=this._c},enumerable:!1,configurable:!0}),i.prototype.add=function(e){if(this.full)throw new Error("Buffer full");this._q.push(e)},i.prototype.remove=function(){if(this.empty)throw new Error("Buffer empty");return this._q.shift()},i})(),(function(){function i(e){if(e<1)throw new RangeError("Capacity may not be less than 1");this._c=e,this._q=[]}return Object.defineProperty(i.prototype,"empty",{get:function(){return this._q.length===0},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"full",{get:function(){return!1},enumerable:!1,configurable:!0}),i.prototype.add=function(e){for(;this._q.length>=this._c;)this._q.shift();this._q.push(e)},i.prototype.remove=function(){if(this.empty)throw new Error("Buffer empty");return this._q.shift()},i})(),(function(){function i(e){if(e<1)throw new RangeError("Capacity may not be less than 1");this._c=e,this._q=[]}return Object.defineProperty(i.prototype,"empty",{get:function(){return this._q.length===0},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"full",{get:function(){return!1},enumerable:!1,configurable:!0}),i.prototype.add=function(e){this._q.length<this._c&&this._q.push(e)},i.prototype.remove=function(){if(this.empty)throw new Error("Buffer empty");return this._q.shift()},i})();function sX(i){i!=null&&typeof i.then=="function"&&i.then(v5,v5)}var rX=0,ixe=1,bC=2,b5=3,oX=4,y5=1024,v5=function(){};function CE(i){var e=i.err,t=Promise.resolve(i.execution).then(function(n){if(e!=null)throw e;return n});return i.err=void 0,i.execution=t.then(function(){},function(){}),i.pending===void 0?t:i.pending.then(function(){return t})}function yC(i,e){var t=i.state>=b5;return Promise.resolve(e).then(function(n){return!t&&i.state>=oX?CE(i).then(function(s){return{value:s,done:!0}}):{value:n,done:t}})}function aX(i,e){var t,n;if(!(i.state>=bC))if(i.state=bC,i.onnext(),i.onstop(),i.err==null&&(i.err=e),i.pushes.length===0&&(typeof i.buffer>"u"||i.buffer.empty))EN(i);else try{for(var s=vE(i.pushes),r=s.next();!r.done;r=s.next()){var o=r.value;o.resolve()}}catch(a){t={error:a}}finally{try{r&&!r.done&&(n=s.return)&&n.call(s)}finally{if(t)throw t.error}}}function EN(i){var e,t;if(!(i.state>=b5)){i.state<bC&&aX(i),i.state=b5,i.buffer=void 0;try{for(var n=vE(i.nexts),s=n.next();!s.done;s=n.next()){var r=s.value,o=i.pending===void 0?CE(i):i.pending.then(function(){return CE(i)});r.resolve(yC(i,o))}}catch(a){e={error:a}}finally{try{s&&!s.done&&(t=n.return)&&t.call(n)}finally{if(e)throw e.error}}i.pushes=[],i.nexts=[]}}function nxe(i){i.state>=oX||(i.state<b5&&EN(i),i.state=oX)}function Kdt(i,e){if(sX(e),i.pushes.length>=y5)throw new txe("No more than "+y5+" pending calls to push are allowed on a single repeater.");if(i.state>=bC)return Promise.resolve(void 0);var t=i.pending===void 0?Promise.resolve(e):i.pending.then(function(){return e});t=t.catch(function(l){i.state<bC&&(i.err=l),nxe(i)});var n;if(i.nexts.length){var s=i.nexts.shift();s.resolve(yC(i,t)),i.nexts.length?n=Promise.resolve(i.nexts[0].value):typeof i.buffer<"u"&&!i.buffer.full?n=Promise.resolve(void 0):n=new Promise(function(l){return i.onnext=l})}else typeof i.buffer<"u"&&!i.buffer.full?(i.buffer.add(t),n=Promise.resolve(void 0)):n=new Promise(function(l){return i.pushes.push({resolve:l,value:t})});var r=!0,o={},a=n.catch(function(l){if(r)throw l});return o.then=function(l,u){return r=!1,Promise.prototype.then.call(n,l,u)},o.catch=function(l){return r=!1,Promise.prototype.catch.call(n,l)},o.finally=n.finally.bind(n),i.pending=t.then(function(){return a}).catch(function(l){i.err=l,nxe(i)}),o}function Ydt(i){var e=aX.bind(null,i),t=new Promise(function(n){return i.onstop=n});return e.then=t.then.bind(t),e.catch=t.catch.bind(t),e.finally=t.finally.bind(t),e}function Xdt(i){if(!(i.state>=ixe)){i.state=ixe;var e=Kdt.bind(null,i),t=Ydt(i);i.execution=new Promise(function(n){return n(i.executor(e,t))}),i.execution.catch(function(){return aX(i)})}}var C5=new WeakMap,wE=(function(){function i(e,t){C5.set(this,{executor:e,buffer:t,err:void 0,state:rX,pushes:[],nexts:[],pending:void 0,execution:void 0,onnext:v5,onstop:v5})}return i.prototype.next=function(e){sX(e);var t=C5.get(this);if(t===void 0)throw new Error("WeakMap error");if(t.nexts.length>=y5)throw new txe("No more than "+y5+" pending calls to next are allowed on a single repeater.");if(t.state<=rX&&Xdt(t),t.onnext(e),typeof t.buffer<"u"&&!t.buffer.empty){var n=yC(t,t.buffer.remove());if(t.pushes.length){var s=t.pushes.shift();t.buffer.add(s.value),t.onnext=s.resolve}return n}else if(t.pushes.length){var r=t.pushes.shift();return t.onnext=r.resolve,yC(t,r.value)}else if(t.state>=bC)return EN(t),yC(t,CE(t));return new Promise(function(o){return t.nexts.push({resolve:o,value:e})})},i.prototype.return=function(e){sX(e);var t=C5.get(this);if(t===void 0)throw new Error("WeakMap error");return EN(t),t.execution=Promise.resolve(t.execution).then(function(){return e}),yC(t,CE(t))},i.prototype.throw=function(e){var t=C5.get(this);if(t===void 0)throw new Error("WeakMap error");return t.state<=rX||t.state>=bC||typeof t.buffer<"u"&&!t.buffer.empty?(EN(t),t.err==null&&(t.err=e),yC(t,CE(t))):this.next(Promise.reject(e))},i.prototype[Symbol.asyncIterator]=function(){return this},i.race=Qdt,i.merge=Zdt,i.zip=Jdt,i.latest=eht,i})();function w5(i,e){var t,n,s=[],r=function(u){u!=null&&typeof u[Symbol.asyncIterator]=="function"?s.push(u[Symbol.asyncIterator]()):u!=null&&typeof u[Symbol.iterator]=="function"?s.push(u[Symbol.iterator]()):s.push((function(){return Gdt(this,arguments,function(){return t1(this,function(h){switch(h.label){case 0:return e.yieldValues?[4,DN(u)]:[3,3];case 1:return[4,h.sent()];case 2:h.sent(),h.label=3;case 3:return e.returnValues?[4,DN(u)]:[3,5];case 4:return[2,h.sent()];case 5:return[2]}})})})())};try{for(var o=vE(i),a=o.next();!a.done;a=o.next()){var l=a.value;r(l)}}catch(u){t={error:u}}finally{try{a&&!a.done&&(n=o.return)&&n.call(o)}finally{if(t)throw t.error}}return s}function Qdt(i){var e=this,t=w5(i,{returnValues:!0});return new wE(function(n,s){return yE(e,void 0,void 0,function(){var r,o,a,l,u,c;return t1(this,function(d){switch(d.label){case 0:if(!t.length)return s(),[2];o=!1,s.then(function(){r(),o=!0}),d.label=1;case 1:d.trys.push([1,,5,7]),l=void 0,u=0,c=function(){var h,f,g,b,y,S;return t1(this,function(x){switch(x.label){case 0:h=u;try{for(f=(y=void 0,vE(t)),g=f.next();!g.done;g=f.next())b=g.value,Promise.resolve(b.next()).then(function(E){E.done?(s(),a===void 0&&(a=E)):u===h&&(u++,r(E))},function(E){return s(E)})}catch(E){y={error:E}}finally{try{g&&!g.done&&(S=f.return)&&S.call(f)}finally{if(y)throw y.error}}return[4,new Promise(function(E){return r=E})];case 1:return l=x.sent(),l===void 0?[3,3]:[4,n(l.value)];case 2:x.sent(),x.label=3;case 3:return[2]}})},d.label=2;case 2:return o?[3,4]:[5,c()];case 3:return d.sent(),[3,2];case 4:return[2,a&&a.value];case 5:return s(),[4,Promise.race(t.map(function(h){return h.return&&h.return()}))];case 6:return d.sent(),[7];case 7:return[2]}})})})}function Zdt(i){var e=this,t=w5(i,{yieldValues:!0});return new wE(function(n,s){return yE(e,void 0,void 0,function(){var r,o,a,l=this;return t1(this,function(u){switch(u.label){case 0:if(!t.length)return s(),[2];r=[],o=!1,s.then(function(){var c,d;o=!0;try{for(var h=vE(r),f=h.next();!f.done;f=h.next()){var g=f.value;g()}}catch(b){c={error:b}}finally{try{f&&!f.done&&(d=h.return)&&d.call(h)}finally{if(c)throw c.error}}}),u.label=1;case 1:return u.trys.push([1,,3,4]),[4,Promise.all(t.map(function(c,d){return yE(l,void 0,void 0,function(){var h,f;return t1(this,function(g){switch(g.label){case 0:g.trys.push([0,,6,9]),g.label=1;case 1:return o?[3,5]:(Promise.resolve(c.next()).then(function(b){return r[d](b)},function(b){return s(b)}),[4,new Promise(function(b){r[d]=b})]);case 2:return h=g.sent(),h===void 0?[3,4]:h.done?(a=h,[2]):[4,n(h.value)];case 3:g.sent(),g.label=4;case 4:return[3,1];case 5:return[3,9];case 6:return f=c.return,f?[4,c.return()]:[3,8];case 7:f=g.sent(),g.label=8;case 8:return[7];case 9:return[2]}})})}))];case 2:return u.sent(),[2,a&&a.value];case 3:return s(),[7];case 4:return[2]}})})})}function Jdt(i){var e=this,t=w5(i,{returnValues:!0});return new wE(function(n,s){return yE(e,void 0,void 0,function(){var r,o,a,l;return t1(this,function(u){switch(u.label){case 0:if(!t.length)return s(),[2,[]];o=!1,s.then(function(){r(),o=!0}),u.label=1;case 1:u.trys.push([1,,6,8]),u.label=2;case 2:return o?[3,5]:(Promise.all(t.map(function(c){return c.next()})).then(function(c){return r(c)},function(c){return s(c)}),[4,new Promise(function(c){return r=c})]);case 3:return a=u.sent(),a===void 0?[2]:(l=a.map(function(c){return c.value}),a.some(function(c){return c.done})?[2,l]:[4,n(l)]);case 4:return u.sent(),[3,2];case 5:return[3,8];case 6:return s(),[4,Promise.all(t.map(function(c){return c.return&&c.return()}))];case 7:return u.sent(),[7];case 8:return[2]}})})})}function eht(i){var e=this,t=w5(i,{yieldValues:!0,returnValues:!0});return new wE(function(n,s){return yE(e,void 0,void 0,function(){var r,o,a,l,u,c=this;return t1(this,function(d){switch(d.label){case 0:if(!t.length)return s(),[2,[]];o=[],a=!1,s.then(function(){var h,f;r();try{for(var g=vE(o),b=g.next();!b.done;b=g.next()){var y=b.value;y()}}catch(S){h={error:S}}finally{try{b&&!b.done&&(f=g.return)&&f.call(g)}finally{if(h)throw h.error}}a=!0}),d.label=1;case 1:return d.trys.push([1,,5,7]),Promise.all(t.map(function(h){return h.next()})).then(function(h){return r(h)},function(h){return s(h)}),[4,new Promise(function(h){return r=h})];case 2:return l=d.sent(),l===void 0?[2]:(u=l.map(function(h){return h.value}),l.every(function(h){return h.done})?[2,u]:[4,n(u.slice())]);case 3:return d.sent(),[4,Promise.all(t.map(function(h,f){return yE(c,void 0,void 0,function(){var g;return t1(this,function(b){switch(b.label){case 0:if(l[f].done)return[2,l[f].value];b.label=1;case 1:return a?[3,4]:(Promise.resolve(h.next()).then(function(y){return o[f](y)},function(y){return s(y)}),[4,new Promise(function(y){return o[f]=y})]);case 2:return g=b.sent(),g===void 0?[2,l[f].value]:g.done?[2,g.value]:(u[f]=g.value,[4,n(u.slice())]);case 3:return b.sent(),[3,1];case 4:return[2]}})})}))];case 4:return[2,d.sent()];case 5:return s(),[4,Promise.all(t.map(function(h){return h.return&&h.return()}))];case 6:return d.sent(),[7];case 7:return[2]}})})})}async function tht(i,e){let t=i.headers["content-type"];if(!t||!~t.indexOf("multipart/"))return i;let n=t.indexOf("boundary="),s="-";if(~n){let r=n+9,o=t.indexOf(";",r);s=t.slice(r,o>-1?o:void 0).trim().replace(/"/g,"")}return(async function*(r,o,a){let l,u,c,d=Buffer.byteLength(o),h=Buffer.alloc(0),f=[];e:for await(let g of r){l=h.byteLength,h=Buffer.concat([h,g]);let b=g.indexOf(o);for(~b?l+=b:l=h.indexOf(o),f=[];~l;){let y=h.subarray(0,l),S=h.subarray(l+d);if(u){let x=y.indexOf(`\r
|
|
467
370
|
\r
|
|
468
371
|
`)+4,E=y.lastIndexOf(`\r
|
|
469
372
|
`,x),k=!1,A=y.subarray(x,E>-1?void 0:E),I=String(y.subarray(0,x)).trim().split(`\r
|
|
@@ -609,7 +512,7 @@ https://yarnpkg.com/en/docs/selective-version-resolutions
|
|
|
609
512
|
Duplicate "graphql" modules cannot be used at the same time since different
|
|
610
513
|
versions may have different capabilities and behavior. The data from one
|
|
611
514
|
version used in the function from another could produce confusing and
|
|
612
|
-
spurious results.`)}}return!1},St=class{constructor(V,ne="GraphQL request",$={line:1,column:1}){typeof V=="string"||Th(!1,`Body must be a string. Received: ${kh(V)}.`),this.body=V,this.name=ne,this.locationOffset=$,this.locationOffset.line>0||Th(!1,"line in locationOffset is 1-indexed and must be positive."),this.locationOffset.column>0||Th(!1,"column in locationOffset is 1-indexed and must be positive.")}get[Symbol.toStringTag](){return"Source"}};function It(V){return Ge(V,St)}function ei(V,ne){let $=new ln(V,ne),Te=$.parseDocument();return Object.defineProperty(Te,"tokenCount",{enumerable:!1,value:$.tokenCount}),Te}var ln=class{constructor(V,ne={}){let $=It(V)?V:new St(V);this._lexer=new fs($),this._options=ne,this._tokenCounter=0}get tokenCount(){return this._tokenCounter}parseName(){let V=this.expectToken(He.NAME);return this.node(V,{kind:Ot.NAME,value:V.value})}parseDocument(){return this.node(this._lexer.token,{kind:Ot.DOCUMENT,definitions:this.many(He.SOF,this.parseDefinition,He.EOF)})}parseDefinition(){if(this.peek(He.BRACE_L))return this.parseOperationDefinition();let V=this.peekDescription(),ne=V?this._lexer.lookahead():this._lexer.token;if(ne.kind===He.NAME){switch(ne.value){case"schema":return this.parseSchemaDefinition();case"scalar":return this.parseScalarTypeDefinition();case"type":return this.parseObjectTypeDefinition();case"interface":return this.parseInterfaceTypeDefinition();case"union":return this.parseUnionTypeDefinition();case"enum":return this.parseEnumTypeDefinition();case"input":return this.parseInputObjectTypeDefinition();case"directive":return this.parseDirectiveDefinition()}if(V)throw si(this._lexer.source,this._lexer.token.start,"Unexpected description, descriptions are supported only on type definitions.");switch(ne.value){case"query":case"mutation":case"subscription":return this.parseOperationDefinition();case"fragment":return this.parseFragmentDefinition();case"extend":return this.parseTypeSystemExtension()}}throw this.unexpected(ne)}parseOperationDefinition(){let V=this._lexer.token;if(this.peek(He.BRACE_L))return this.node(V,{kind:Ot.OPERATION_DEFINITION,operation:At.QUERY,name:void 0,variableDefinitions:[],directives:[],selectionSet:this.parseSelectionSet()});let ne=this.parseOperationType(),$;return this.peek(He.NAME)&&($=this.parseName()),this.node(V,{kind:Ot.OPERATION_DEFINITION,operation:ne,name:$,variableDefinitions:this.parseVariableDefinitions(),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseOperationType(){let V=this.expectToken(He.NAME);switch(V.value){case"query":return At.QUERY;case"mutation":return At.MUTATION;case"subscription":return At.SUBSCRIPTION}throw this.unexpected(V)}parseVariableDefinitions(){return this.optionalMany(He.PAREN_L,this.parseVariableDefinition,He.PAREN_R)}parseVariableDefinition(){return this.node(this._lexer.token,{kind:Ot.VARIABLE_DEFINITION,variable:this.parseVariable(),type:(this.expectToken(He.COLON),this.parseTypeReference()),defaultValue:this.expectOptionalToken(He.EQUALS)?this.parseConstValueLiteral():void 0,directives:this.parseConstDirectives()})}parseVariable(){let V=this._lexer.token;return this.expectToken(He.DOLLAR),this.node(V,{kind:Ot.VARIABLE,name:this.parseName()})}parseSelectionSet(){return this.node(this._lexer.token,{kind:Ot.SELECTION_SET,selections:this.many(He.BRACE_L,this.parseSelection,He.BRACE_R)})}parseSelection(){return this.peek(He.SPREAD)?this.parseFragment():this.parseField()}parseField(){let V=this._lexer.token,ne=this.parseName(),$,Te;return this.expectOptionalToken(He.COLON)?($=ne,Te=this.parseName()):Te=ne,this.node(V,{kind:Ot.FIELD,alias:$,name:Te,arguments:this.parseArguments(!1),directives:this.parseDirectives(!1),selectionSet:this.peek(He.BRACE_L)?this.parseSelectionSet():void 0})}parseArguments(V){let ne=V?this.parseConstArgument:this.parseArgument;return this.optionalMany(He.PAREN_L,ne,He.PAREN_R)}parseArgument(V=!1){let ne=this._lexer.token,$=this.parseName();return this.expectToken(He.COLON),this.node(ne,{kind:Ot.ARGUMENT,name:$,value:this.parseValueLiteral(V)})}parseConstArgument(){return this.parseArgument(!0)}parseFragment(){let V=this._lexer.token;this.expectToken(He.SPREAD);let ne=this.expectOptionalKeyword("on");return!ne&&this.peek(He.NAME)?this.node(V,{kind:Ot.FRAGMENT_SPREAD,name:this.parseFragmentName(),directives:this.parseDirectives(!1)}):this.node(V,{kind:Ot.INLINE_FRAGMENT,typeCondition:ne?this.parseNamedType():void 0,directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentDefinition(){let V=this._lexer.token;return this.expectKeyword("fragment"),this._options.allowLegacyFragmentVariables===!0?this.node(V,{kind:Ot.FRAGMENT_DEFINITION,name:this.parseFragmentName(),variableDefinitions:this.parseVariableDefinitions(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()}):this.node(V,{kind:Ot.FRAGMENT_DEFINITION,name:this.parseFragmentName(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentName(){if(this._lexer.token.value==="on")throw this.unexpected();return this.parseName()}parseValueLiteral(V){let ne=this._lexer.token;switch(ne.kind){case He.BRACKET_L:return this.parseList(V);case He.BRACE_L:return this.parseObject(V);case He.INT:return this.advanceLexer(),this.node(ne,{kind:Ot.INT,value:ne.value});case He.FLOAT:return this.advanceLexer(),this.node(ne,{kind:Ot.FLOAT,value:ne.value});case He.STRING:case He.BLOCK_STRING:return this.parseStringLiteral();case He.NAME:switch(this.advanceLexer(),ne.value){case"true":return this.node(ne,{kind:Ot.BOOLEAN,value:!0});case"false":return this.node(ne,{kind:Ot.BOOLEAN,value:!1});case"null":return this.node(ne,{kind:Ot.NULL});default:return this.node(ne,{kind:Ot.ENUM,value:ne.value})}case He.DOLLAR:if(V)if(this.expectToken(He.DOLLAR),this._lexer.token.kind===He.NAME){let $=this._lexer.token.value;throw si(this._lexer.source,ne.start,`Unexpected variable "$${$}" in constant value.`)}else throw this.unexpected(ne);return this.parseVariable();default:throw this.unexpected()}}parseConstValueLiteral(){return this.parseValueLiteral(!0)}parseStringLiteral(){let V=this._lexer.token;return this.advanceLexer(),this.node(V,{kind:Ot.STRING,value:V.value,block:V.kind===He.BLOCK_STRING})}parseList(V){let ne=()=>this.parseValueLiteral(V);return this.node(this._lexer.token,{kind:Ot.LIST,values:this.any(He.BRACKET_L,ne,He.BRACKET_R)})}parseObject(V){let ne=()=>this.parseObjectField(V);return this.node(this._lexer.token,{kind:Ot.OBJECT,fields:this.any(He.BRACE_L,ne,He.BRACE_R)})}parseObjectField(V){let ne=this._lexer.token,$=this.parseName();return this.expectToken(He.COLON),this.node(ne,{kind:Ot.OBJECT_FIELD,name:$,value:this.parseValueLiteral(V)})}parseDirectives(V){let ne=[];for(;this.peek(He.AT);)ne.push(this.parseDirective(V));return ne}parseConstDirectives(){return this.parseDirectives(!0)}parseDirective(V){let ne=this._lexer.token;return this.expectToken(He.AT),this.node(ne,{kind:Ot.DIRECTIVE,name:this.parseName(),arguments:this.parseArguments(V)})}parseTypeReference(){let V=this._lexer.token,ne;if(this.expectOptionalToken(He.BRACKET_L)){let $=this.parseTypeReference();this.expectToken(He.BRACKET_R),ne=this.node(V,{kind:Ot.LIST_TYPE,type:$})}else ne=this.parseNamedType();return this.expectOptionalToken(He.BANG)?this.node(V,{kind:Ot.NON_NULL_TYPE,type:ne}):ne}parseNamedType(){return this.node(this._lexer.token,{kind:Ot.NAMED_TYPE,name:this.parseName()})}peekDescription(){return this.peek(He.STRING)||this.peek(He.BLOCK_STRING)}parseDescription(){if(this.peekDescription())return this.parseStringLiteral()}parseSchemaDefinition(){let V=this._lexer.token,ne=this.parseDescription();this.expectKeyword("schema");let $=this.parseConstDirectives(),Te=this.many(He.BRACE_L,this.parseOperationTypeDefinition,He.BRACE_R);return this.node(V,{kind:Ot.SCHEMA_DEFINITION,description:ne,directives:$,operationTypes:Te})}parseOperationTypeDefinition(){let V=this._lexer.token,ne=this.parseOperationType();this.expectToken(He.COLON);let $=this.parseNamedType();return this.node(V,{kind:Ot.OPERATION_TYPE_DEFINITION,operation:ne,type:$})}parseScalarTypeDefinition(){let V=this._lexer.token,ne=this.parseDescription();this.expectKeyword("scalar");let $=this.parseName(),Te=this.parseConstDirectives();return this.node(V,{kind:Ot.SCALAR_TYPE_DEFINITION,description:ne,name:$,directives:Te})}parseObjectTypeDefinition(){let V=this._lexer.token,ne=this.parseDescription();this.expectKeyword("type");let $=this.parseName(),Te=this.parseImplementsInterfaces(),xe=this.parseConstDirectives(),dt=this.parseFieldsDefinition();return this.node(V,{kind:Ot.OBJECT_TYPE_DEFINITION,description:ne,name:$,interfaces:Te,directives:xe,fields:dt})}parseImplementsInterfaces(){return this.expectOptionalKeyword("implements")?this.delimitedMany(He.AMP,this.parseNamedType):[]}parseFieldsDefinition(){return this.optionalMany(He.BRACE_L,this.parseFieldDefinition,He.BRACE_R)}parseFieldDefinition(){let V=this._lexer.token,ne=this.parseDescription(),$=this.parseName(),Te=this.parseArgumentDefs();this.expectToken(He.COLON);let xe=this.parseTypeReference(),dt=this.parseConstDirectives();return this.node(V,{kind:Ot.FIELD_DEFINITION,description:ne,name:$,arguments:Te,type:xe,directives:dt})}parseArgumentDefs(){return this.optionalMany(He.PAREN_L,this.parseInputValueDef,He.PAREN_R)}parseInputValueDef(){let V=this._lexer.token,ne=this.parseDescription(),$=this.parseName();this.expectToken(He.COLON);let Te=this.parseTypeReference(),xe;this.expectOptionalToken(He.EQUALS)&&(xe=this.parseConstValueLiteral());let dt=this.parseConstDirectives();return this.node(V,{kind:Ot.INPUT_VALUE_DEFINITION,description:ne,name:$,type:Te,defaultValue:xe,directives:dt})}parseInterfaceTypeDefinition(){let V=this._lexer.token,ne=this.parseDescription();this.expectKeyword("interface");let $=this.parseName(),Te=this.parseImplementsInterfaces(),xe=this.parseConstDirectives(),dt=this.parseFieldsDefinition();return this.node(V,{kind:Ot.INTERFACE_TYPE_DEFINITION,description:ne,name:$,interfaces:Te,directives:xe,fields:dt})}parseUnionTypeDefinition(){let V=this._lexer.token,ne=this.parseDescription();this.expectKeyword("union");let $=this.parseName(),Te=this.parseConstDirectives(),xe=this.parseUnionMemberTypes();return this.node(V,{kind:Ot.UNION_TYPE_DEFINITION,description:ne,name:$,directives:Te,types:xe})}parseUnionMemberTypes(){return this.expectOptionalToken(He.EQUALS)?this.delimitedMany(He.PIPE,this.parseNamedType):[]}parseEnumTypeDefinition(){let V=this._lexer.token,ne=this.parseDescription();this.expectKeyword("enum");let $=this.parseName(),Te=this.parseConstDirectives(),xe=this.parseEnumValuesDefinition();return this.node(V,{kind:Ot.ENUM_TYPE_DEFINITION,description:ne,name:$,directives:Te,values:xe})}parseEnumValuesDefinition(){return this.optionalMany(He.BRACE_L,this.parseEnumValueDefinition,He.BRACE_R)}parseEnumValueDefinition(){let V=this._lexer.token,ne=this.parseDescription(),$=this.parseEnumValueName(),Te=this.parseConstDirectives();return this.node(V,{kind:Ot.ENUM_VALUE_DEFINITION,description:ne,name:$,directives:Te})}parseEnumValueName(){if(this._lexer.token.value==="true"||this._lexer.token.value==="false"||this._lexer.token.value==="null")throw si(this._lexer.source,this._lexer.token.start,`${as(this._lexer.token)} is reserved and cannot be used for an enum value.`);return this.parseName()}parseInputObjectTypeDefinition(){let V=this._lexer.token,ne=this.parseDescription();this.expectKeyword("input");let $=this.parseName(),Te=this.parseConstDirectives(),xe=this.parseInputFieldsDefinition();return this.node(V,{kind:Ot.INPUT_OBJECT_TYPE_DEFINITION,description:ne,name:$,directives:Te,fields:xe})}parseInputFieldsDefinition(){return this.optionalMany(He.BRACE_L,this.parseInputValueDef,He.BRACE_R)}parseTypeSystemExtension(){let V=this._lexer.lookahead();if(V.kind===He.NAME)switch(V.value){case"schema":return this.parseSchemaExtension();case"scalar":return this.parseScalarTypeExtension();case"type":return this.parseObjectTypeExtension();case"interface":return this.parseInterfaceTypeExtension();case"union":return this.parseUnionTypeExtension();case"enum":return this.parseEnumTypeExtension();case"input":return this.parseInputObjectTypeExtension()}throw this.unexpected(V)}parseSchemaExtension(){let V=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("schema");let ne=this.parseConstDirectives(),$=this.optionalMany(He.BRACE_L,this.parseOperationTypeDefinition,He.BRACE_R);if(ne.length===0&&$.length===0)throw this.unexpected();return this.node(V,{kind:Ot.SCHEMA_EXTENSION,directives:ne,operationTypes:$})}parseScalarTypeExtension(){let V=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("scalar");let ne=this.parseName(),$=this.parseConstDirectives();if($.length===0)throw this.unexpected();return this.node(V,{kind:Ot.SCALAR_TYPE_EXTENSION,name:ne,directives:$})}parseObjectTypeExtension(){let V=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("type");let ne=this.parseName(),$=this.parseImplementsInterfaces(),Te=this.parseConstDirectives(),xe=this.parseFieldsDefinition();if($.length===0&&Te.length===0&&xe.length===0)throw this.unexpected();return this.node(V,{kind:Ot.OBJECT_TYPE_EXTENSION,name:ne,interfaces:$,directives:Te,fields:xe})}parseInterfaceTypeExtension(){let V=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("interface");let ne=this.parseName(),$=this.parseImplementsInterfaces(),Te=this.parseConstDirectives(),xe=this.parseFieldsDefinition();if($.length===0&&Te.length===0&&xe.length===0)throw this.unexpected();return this.node(V,{kind:Ot.INTERFACE_TYPE_EXTENSION,name:ne,interfaces:$,directives:Te,fields:xe})}parseUnionTypeExtension(){let V=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("union");let ne=this.parseName(),$=this.parseConstDirectives(),Te=this.parseUnionMemberTypes();if($.length===0&&Te.length===0)throw this.unexpected();return this.node(V,{kind:Ot.UNION_TYPE_EXTENSION,name:ne,directives:$,types:Te})}parseEnumTypeExtension(){let V=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("enum");let ne=this.parseName(),$=this.parseConstDirectives(),Te=this.parseEnumValuesDefinition();if($.length===0&&Te.length===0)throw this.unexpected();return this.node(V,{kind:Ot.ENUM_TYPE_EXTENSION,name:ne,directives:$,values:Te})}parseInputObjectTypeExtension(){let V=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("input");let ne=this.parseName(),$=this.parseConstDirectives(),Te=this.parseInputFieldsDefinition();if($.length===0&&Te.length===0)throw this.unexpected();return this.node(V,{kind:Ot.INPUT_OBJECT_TYPE_EXTENSION,name:ne,directives:$,fields:Te})}parseDirectiveDefinition(){let V=this._lexer.token,ne=this.parseDescription();this.expectKeyword("directive"),this.expectToken(He.AT);let $=this.parseName(),Te=this.parseArgumentDefs(),xe=this.expectOptionalKeyword("repeatable");this.expectKeyword("on");let dt=this.parseDirectiveLocations();return this.node(V,{kind:Ot.DIRECTIVE_DEFINITION,description:ne,name:$,arguments:Te,repeatable:xe,locations:dt})}parseDirectiveLocations(){return this.delimitedMany(He.PIPE,this.parseDirectiveLocation)}parseDirectiveLocation(){let V=this._lexer.token,ne=this.parseName();if(Object.prototype.hasOwnProperty.call(wi,ne.value))return ne;throw this.unexpected(V)}node(V,ne){return this._options.noLocation!==!0&&(ne.loc=new Me(V,this._lexer.lastToken,this._lexer.source)),ne}peek(V){return this._lexer.token.kind===V}expectToken(V){let ne=this._lexer.token;if(ne.kind===V)return this.advanceLexer(),ne;throw si(this._lexer.source,ne.start,`Expected ${mo(V)}, found ${as(ne)}.`)}expectOptionalToken(V){return this._lexer.token.kind===V?(this.advanceLexer(),!0):!1}expectKeyword(V){let ne=this._lexer.token;if(ne.kind===He.NAME&&ne.value===V)this.advanceLexer();else throw si(this._lexer.source,ne.start,`Expected "${V}", found ${as(ne)}.`)}expectOptionalKeyword(V){let ne=this._lexer.token;return ne.kind===He.NAME&&ne.value===V?(this.advanceLexer(),!0):!1}unexpected(V){let ne=V??this._lexer.token;return si(this._lexer.source,ne.start,`Unexpected ${as(ne)}.`)}any(V,ne,$){this.expectToken(V);let Te=[];for(;!this.expectOptionalToken($);)Te.push(ne.call(this));return Te}optionalMany(V,ne,$){if(this.expectOptionalToken(V)){let Te=[];do Te.push(ne.call(this));while(!this.expectOptionalToken($));return Te}return[]}many(V,ne,$){this.expectToken(V);let Te=[];do Te.push(ne.call(this));while(!this.expectOptionalToken($));return Te}delimitedMany(V,ne){this.expectOptionalToken(V);let $=[];do $.push(ne.call(this));while(this.expectOptionalToken(V));return $}advanceLexer(){let{maxTokens:V}=this._options,ne=this._lexer.advance();if(ne.kind!==He.EOF&&(++this._tokenCounter,V!==void 0&&this._tokenCounter>V))throw si(this._lexer.source,ne.start,`Document contains more that ${V} tokens. Parsing aborted.`)}};function as(V){let ne=V.value;return mo(V.kind)+(ne!=null?` "${ne}"`:"")}function mo(V){return Gs(V)?`"${V}"`:V}function wn(V,ne){let $=new SyntaxError(V+" ("+ne.loc.start.line+":"+ne.loc.start.column+")");return Object.assign($,ne)}var Cs=wn;function Mr(V){let ne=[],{startToken:$,endToken:Te}=V.loc;for(let xe=$;xe!==Te;xe=xe.next)xe.kind==="Comment"&&ne.push({...xe,loc:{start:xe.start,end:xe.end}});return ne}var Md={allowLegacyFragmentVariables:!0};function Pc(V){if(V?.name==="GraphQLError"){let{message:ne,locations:[$]}=V;return Cs(ne,{loc:{start:$},cause:V})}return V}function Mc(V){let ne;try{ne=ei(V,Md)}catch($){throw Pc($)}return ne.comments=Mr(ne),ne}var fL={parse:Mc,astFormat:"graphql",hasPragma:zi,hasIgnorePragma:Xt,locStart:Ve,locEnd:ft},iv={graphql:Kn};return l(u)})})(uQ)),uQ.exports}var ZEe=pbt();const gbt=Pv({__proto__:null,default:u0(ZEe)},[ZEe]);function mbt(i,e){const t=i;typeof t.vscodeWindowId!="number"&&Object.defineProperty(t,"vscodeWindowId",{get:()=>e})}const cs=window,WW=class WW{constructor(){this.mapWindowIdToZoomFactor=new Map}getZoomFactor(e){return this.mapWindowIdToZoomFactor.get(this.getWindowId(e))??1}getWindowId(e){return e.vscodeWindowId}};WW.INSTANCE=new WW;let cQ=WW;function JEe(i,e,t){typeof e=="string"&&(e=i.matchMedia(e)),e.addEventListener("change",t)}function _bt(i){return cQ.INSTANCE.getZoomFactor(i)}const ME=navigator.userAgent,eh=ME.indexOf("Firefox")>=0,j5=ME.indexOf("AppleWebKit")>=0,WN=ME.indexOf("Chrome")>=0,a1=!WN&&ME.indexOf("Safari")>=0,eTe=!WN&&!a1&&j5;ME.indexOf("Electron/")>=0;const tTe=ME.indexOf("Android")>=0;let dQ=!1;if(typeof cs.matchMedia=="function"){const i=cs.matchMedia("(display-mode: standalone) or (display-mode: window-controls-overlay)"),e=cs.matchMedia("(display-mode: fullscreen)");dQ=i.matches,JEe(cs,i,({matches:t})=>{dQ&&e.matches||(dQ=t)})}const hQ={clipboard:{writeText:gg||document.queryCommandSupported&&document.queryCommandSupported("copy")||!!(navigator&&navigator.clipboard&&navigator.clipboard.writeText),readText:gg||!!(navigator&&navigator.clipboard&&navigator.clipboard.readText)},pointerEvents:cs.PointerEvent&&("ontouchstart"in cs||navigator.maxTouchPoints>0)};function fQ(i,e){if(typeof i=="number"){if(i===0)return null;const t=(i&65535)>>>0,n=(i&4294901760)>>>16;return n!==0?new pQ([q5(t,e),q5(n,e)]):new pQ([q5(t,e)])}else{const t=[];for(let n=0;n<i.length;n++)t.push(q5(i[n],e));return new pQ(t)}}function q5(i,e){const t=!!(i&2048),n=!!(i&256),s=e===2?n:t,r=!!(i&1024),o=!!(i&512),a=e===2?t:n,l=i&255;return new $0(s,r,o,a,l)}class $0{constructor(e,t,n,s,r){this.ctrlKey=e,this.shiftKey=t,this.altKey=n,this.metaKey=s,this.keyCode=r}equals(e){return e instanceof $0&&this.ctrlKey===e.ctrlKey&&this.shiftKey===e.shiftKey&&this.altKey===e.altKey&&this.metaKey===e.metaKey&&this.keyCode===e.keyCode}isModifierKey(){return this.keyCode===0||this.keyCode===5||this.keyCode===57||this.keyCode===6||this.keyCode===4}isDuplicateModifierCase(){return this.ctrlKey&&this.keyCode===5||this.shiftKey&&this.keyCode===4||this.altKey&&this.keyCode===6||this.metaKey&&this.keyCode===57}}class pQ{constructor(e){if(e.length===0)throw jd("chords");this.chords=e}}class bbt{constructor(e,t,n,s,r,o){this.ctrlKey=e,this.shiftKey=t,this.altKey=n,this.metaKey=s,this.keyLabel=r,this.keyAriaLabel=o}}class ybt{}function vbt(i){if(i.charCode){const t=String.fromCharCode(i.charCode).toUpperCase();return c0.fromString(t)}const e=i.keyCode;if(e===3)return 7;if(eh)switch(e){case 59:return 85;case 60:if(zl)return 97;break;case 61:return 86;case 107:return 109;case 109:return 111;case 173:return 88;case 224:if(Yi)return 57;break}else if(j5){if(Yi&&e===93)return 57;if(!Yi&&e===92)return 57}return qhe[e]||0}const Cbt=Yi?256:2048,wbt=512,Sbt=1024,xbt=Yi?2048:256;class ms{constructor(e){this._standardKeyboardEventBrand=!0;const t=e;this.browserEvent=t,this.target=t.target,this.ctrlKey=t.ctrlKey,this.shiftKey=t.shiftKey,this.altKey=t.altKey,this.metaKey=t.metaKey,this.altGraphKey=t.getModifierState?.("AltGraph"),this.keyCode=vbt(t),this.code=t.code,this.ctrlKey=this.ctrlKey||this.keyCode===5,this.altKey=this.altKey||this.keyCode===6,this.shiftKey=this.shiftKey||this.keyCode===4,this.metaKey=this.metaKey||this.keyCode===57,this._asKeybinding=this._computeKeybinding(),this._asKeyCodeChord=this._computeKeyCodeChord()}preventDefault(){this.browserEvent&&this.browserEvent.preventDefault&&this.browserEvent.preventDefault()}stopPropagation(){this.browserEvent&&this.browserEvent.stopPropagation&&this.browserEvent.stopPropagation()}toKeyCodeChord(){return this._asKeyCodeChord}equals(e){return this._asKeybinding===e}_computeKeybinding(){let e=0;this.keyCode!==5&&this.keyCode!==4&&this.keyCode!==6&&this.keyCode!==57&&(e=this.keyCode);let t=0;return this.ctrlKey&&(t|=Cbt),this.altKey&&(t|=wbt),this.shiftKey&&(t|=Sbt),this.metaKey&&(t|=xbt),t|=e,t}_computeKeyCodeChord(){let e=0;return this.keyCode!==5&&this.keyCode!==4&&this.keyCode!==6&&this.keyCode!==57&&(e=this.keyCode),new $0(this.ctrlKey,this.shiftKey,this.altKey,this.metaKey,e)}}const iTe=new WeakMap;function Dbt(i){if(!i.parent||i.parent===i)return null;try{const e=i.location,t=i.parent.location;if(e.origin!=="null"&&t.origin!=="null"&&e.origin!==t.origin)return null}catch{return null}return i.parent}class Ebt{static getSameOriginWindowChain(e){let t=iTe.get(e);if(!t){t=[],iTe.set(e,t);let n=e,s;do s=Dbt(n),s?t.push({window:new WeakRef(n),iframeElement:n.frameElement||null}):t.push({window:new WeakRef(n),iframeElement:null}),n=s;while(n)}return t.slice(0)}static getPositionOfChildWindowRelativeToAncestorWindow(e,t){if(!t||e===t)return{top:0,left:0};let n=0,s=0;const r=this.getSameOriginWindowChain(e);for(const o of r){const a=o.window.deref();if(n+=a?.scrollY??0,s+=a?.scrollX??0,a===t||!o.iframeElement)break;const l=o.iframeElement.getBoundingClientRect();n+=l.top,s+=l.left}return{top:n,left:s}}}class cf{constructor(e,t){this.timestamp=Date.now(),this.browserEvent=t,this.leftButton=t.button===0,this.middleButton=t.button===1,this.rightButton=t.button===2,this.buttons=t.buttons,this.target=t.target,this.detail=t.detail||1,t.type==="dblclick"&&(this.detail=2),this.ctrlKey=t.ctrlKey,this.shiftKey=t.shiftKey,this.altKey=t.altKey,this.metaKey=t.metaKey,typeof t.pageX=="number"?(this.posx=t.pageX,this.posy=t.pageY):(this.posx=t.clientX+this.target.ownerDocument.body.scrollLeft+this.target.ownerDocument.documentElement.scrollLeft,this.posy=t.clientY+this.target.ownerDocument.body.scrollTop+this.target.ownerDocument.documentElement.scrollTop);const n=Ebt.getPositionOfChildWindowRelativeToAncestorWindow(e,t.view);this.posx-=n.left,this.posy-=n.top}preventDefault(){this.browserEvent.preventDefault()}stopPropagation(){this.browserEvent.stopPropagation()}}class AC{constructor(e,t=0,n=0){this.browserEvent=e||null,this.target=e?e.target||e.targetNode||e.srcElement:null,this.deltaY=n,this.deltaX=t;let s=!1;if(WN){const r=navigator.userAgent.match(/Chrome\/(\d+)/);s=(r?parseInt(r[1]):123)<=122}if(e){const r=e,o=e,a=e.view?.devicePixelRatio||1;if(typeof r.wheelDeltaY<"u")s?this.deltaY=r.wheelDeltaY/(120*a):this.deltaY=r.wheelDeltaY/120;else if(typeof o.VERTICAL_AXIS<"u"&&o.axis===o.VERTICAL_AXIS)this.deltaY=-o.detail/3;else if(e.type==="wheel"){const l=e;l.deltaMode===l.DOM_DELTA_LINE?eh&&!Yi?this.deltaY=-e.deltaY/3:this.deltaY=-e.deltaY:this.deltaY=-e.deltaY/40}if(typeof r.wheelDeltaX<"u")a1&&ka?this.deltaX=-(r.wheelDeltaX/120):s?this.deltaX=r.wheelDeltaX/(120*a):this.deltaX=r.wheelDeltaX/120;else if(typeof o.HORIZONTAL_AXIS<"u"&&o.axis===o.HORIZONTAL_AXIS)this.deltaX=-e.detail/3;else if(e.type==="wheel"){const l=e;l.deltaMode===l.DOM_DELTA_LINE?eh&&!Yi?this.deltaX=-e.deltaX/3:this.deltaX=-e.deltaX:this.deltaX=-e.deltaX/40}this.deltaY===0&&this.deltaX===0&&e.wheelDelta&&(s?this.deltaY=e.wheelDelta/(120*a):this.deltaY=e.wheelDelta/120)}}preventDefault(){this.browserEvent?.preventDefault()}stopPropagation(){this.browserEvent?.stopPropagation()}}const nTe=Symbol("MicrotaskDelay");function gQ(i){return!!i&&typeof i.then=="function"}function Bo(i){const e=new or,t=i(e.token),n=new Promise((s,r)=>{const o=e.token.onCancellationRequested(()=>{o.dispose(),r(new Wh)});Promise.resolve(t).then(a=>{o.dispose(),e.dispose(),s(a)},a=>{o.dispose(),e.dispose(),r(a)})});return new class{cancel(){e.cancel(),e.dispose()}then(s,r){return n.then(s,r)}catch(s){return this.then(void 0,s)}finally(s){return n.finally(s)}}}function HN(i,e,t){return new Promise((n,s)=>{const r=e.onCancellationRequested(()=>{r.dispose(),n(t)});i.then(n,s).finally(()=>r.dispose())})}class Tbt{constructor(){this.isDisposed=!1,this.activePromise=null,this.queuedPromise=null,this.queuedPromiseFactory=null}queue(e){if(this.isDisposed)return Promise.reject(new Error("Throttler is disposed"));if(this.activePromise){if(this.queuedPromiseFactory=e,!this.queuedPromise){const t=()=>{if(this.queuedPromise=null,this.isDisposed)return;const n=this.queue(this.queuedPromiseFactory);return this.queuedPromiseFactory=null,n};this.queuedPromise=new Promise(n=>{this.activePromise.then(t,t).then(n)})}return new Promise((t,n)=>{this.queuedPromise.then(t,n)})}return this.activePromise=e(),new Promise((t,n)=>{this.activePromise.then(s=>{this.activePromise=null,t(s)},s=>{this.activePromise=null,n(s)})})}dispose(){this.isDisposed=!0}}const kbt=(i,e)=>{let t=!0;const n=setTimeout(()=>{t=!1,e()},i);return{isTriggered:()=>t,dispose:()=>{clearTimeout(n),t=!1}}},Lbt=i=>{let e=!0;return queueMicrotask(()=>{e&&(e=!1,i())}),{isTriggered:()=>e,dispose:()=>{e=!1}}};class th{constructor(e){this.defaultDelay=e,this.deferred=null,this.completionPromise=null,this.doResolve=null,this.doReject=null,this.task=null}trigger(e,t=this.defaultDelay){this.task=e,this.cancelTimeout(),this.completionPromise||(this.completionPromise=new Promise((s,r)=>{this.doResolve=s,this.doReject=r}).then(()=>{if(this.completionPromise=null,this.doResolve=null,this.task){const s=this.task;return this.task=null,s()}}));const n=()=>{this.deferred=null,this.doResolve?.(null)};return this.deferred=t===nTe?Lbt(n):kbt(t,n),this.completionPromise}isTriggered(){return!!this.deferred?.isTriggered()}cancel(){this.cancelTimeout(),this.completionPromise&&(this.doReject?.(new Wh),this.completionPromise=null)}cancelTimeout(){this.deferred?.dispose(),this.deferred=null}dispose(){this.cancel()}}class sTe{constructor(e){this.delayer=new th(e),this.throttler=new Tbt}trigger(e,t){return this.delayer.trigger(()=>this.throttler.queue(e),t)}cancel(){this.delayer.cancel()}dispose(){this.delayer.dispose(),this.throttler.dispose()}}function U0(i,e){return e?new Promise((t,n)=>{const s=setTimeout(()=>{r.dispose(),t()},i),r=e.onCancellationRequested(()=>{clearTimeout(s),r.dispose(),n(new Wh)})}):Bo(t=>U0(i,t))}function l1(i,e=0,t){const n=setTimeout(()=>{i(),t&&s.dispose()},e),s=zt(()=>{clearTimeout(n),t?.deleteAndLeak(s)});return t?.add(s),s}function mQ(i,e=n=>!!n,t=null){let n=0;const s=i.length,r=()=>{if(n>=s)return Promise.resolve(t);const o=i[n++];return Promise.resolve(o()).then(l=>e(l)?Promise.resolve(l):r())};return r()}class df{constructor(e,t){this._isDisposed=!1,this._token=-1,typeof e=="function"&&typeof t=="number"&&this.setIfNotSet(e,t)}dispose(){this.cancel(),this._isDisposed=!0}cancel(){this._token!==-1&&(clearTimeout(this._token),this._token=-1)}cancelAndSet(e,t){if(this._isDisposed)throw new kn("Calling 'cancelAndSet' on a disposed TimeoutTimer");this.cancel(),this._token=setTimeout(()=>{this._token=-1,e()},t)}setIfNotSet(e,t){if(this._isDisposed)throw new kn("Calling 'setIfNotSet' on a disposed TimeoutTimer");this._token===-1&&(this._token=setTimeout(()=>{this._token=-1,e()},t))}}class _Q{constructor(){this.disposable=void 0,this.isDisposed=!1}cancel(){this.disposable?.dispose(),this.disposable=void 0}cancelAndSet(e,t,n=globalThis){if(this.isDisposed)throw new kn("Calling 'cancelAndSet' on a disposed IntervalTimer");this.cancel();const s=n.setInterval(()=>{e()},t);this.disposable=zt(()=>{n.clearInterval(s),this.disposable=void 0})}dispose(){this.cancel(),this.isDisposed=!0}}class Jn{constructor(e,t){this.timeoutToken=-1,this.runner=e,this.timeout=t,this.timeoutHandler=this.onTimeout.bind(this)}dispose(){this.cancel(),this.runner=null}cancel(){this.isScheduled()&&(clearTimeout(this.timeoutToken),this.timeoutToken=-1)}schedule(e=this.timeout){this.cancel(),this.timeoutToken=setTimeout(this.timeoutHandler,e)}get delay(){return this.timeout}set delay(e){this.timeout=e}isScheduled(){return this.timeoutToken!==-1}onTimeout(){this.timeoutToken=-1,this.runner&&this.doRun()}doRun(){this.runner?.()}}let rTe,$N;(function(){typeof globalThis.requestIdleCallback!="function"||typeof globalThis.cancelIdleCallback!="function"?$N=(i,e)=>{Jhe(()=>{if(t)return;const n=Date.now()+15;e(Object.freeze({didTimeout:!0,timeRemaining(){return Math.max(0,n-Date.now())}}))});let t=!1;return{dispose(){t||(t=!0)}}}:$N=(i,e,t)=>{const n=i.requestIdleCallback(e,typeof t=="number"?{timeout:t}:void 0);let s=!1;return{dispose(){s||(s=!0,i.cancelIdleCallback(n))}}},rTe=i=>$N(globalThis,i)})();class oTe{constructor(e,t){this._didRun=!1,this._executor=()=>{try{this._value=t()}catch(n){this._error=n}finally{this._didRun=!0}},this._handle=$N(e,()=>this._executor())}dispose(){this._handle.dispose()}get value(){if(this._didRun||(this._handle.dispose(),this._executor()),this._error)throw this._error;return this._value}get isInitialized(){return this._didRun}}class Abt extends oTe{constructor(e){super(globalThis,e)}}class RE{get isRejected(){return this.outcome?.outcome===1}get isSettled(){return!!this.outcome}constructor(){this.p=new Promise((e,t)=>{this.completeCallback=e,this.errorCallback=t})}complete(e){return new Promise(t=>{this.completeCallback(e),this.outcome={outcome:0,value:e},t()})}error(e){return new Promise(t=>{this.errorCallback(e),this.outcome={outcome:1,value:e},t()})}cancel(){return this.error(new Wh)}}var bQ;(function(i){async function e(n){let s;const r=await Promise.all(n.map(o=>o.then(a=>a,a=>{s||(s=a)})));if(typeof s<"u")throw s;return r}i.settled=e;function t(n){return new Promise(async(s,r)=>{try{await n(s,r)}catch(o){r(o)}})}i.withAsyncBody=t})(bQ||(bQ={}));const Ic=class Ic{static fromArray(e){return new Ic(t=>{t.emitMany(e)})}static fromPromise(e){return new Ic(async t=>{t.emitMany(await e)})}static fromPromises(e){return new Ic(async t=>{await Promise.all(e.map(async n=>t.emitOne(await n)))})}static merge(e){return new Ic(async t=>{await Promise.all(e.map(async n=>{for await(const s of n)t.emitOne(s)}))})}constructor(e,t){this._state=0,this._results=[],this._error=null,this._onReturn=t,this._onStateChanged=new _e,queueMicrotask(async()=>{const n={emitOne:s=>this.emitOne(s),emitMany:s=>this.emitMany(s),reject:s=>this.reject(s)};try{await Promise.resolve(e(n)),this.resolve()}catch(s){this.reject(s)}finally{n.emitOne=void 0,n.emitMany=void 0,n.reject=void 0}})}[Symbol.asyncIterator](){let e=0;return{next:async()=>{do{if(this._state===2)throw this._error;if(e<this._results.length)return{done:!1,value:this._results[e++]};if(this._state===1)return{done:!0,value:void 0};await rt.toPromise(this._onStateChanged.event)}while(!0)},return:async()=>(this._onReturn?.(),{done:!0,value:void 0})}}static map(e,t){return new Ic(async n=>{for await(const s of e)n.emitOne(t(s))})}map(e){return Ic.map(this,e)}static filter(e,t){return new Ic(async n=>{for await(const s of e)t(s)&&n.emitOne(s)})}filter(e){return Ic.filter(this,e)}static coalesce(e){return Ic.filter(e,t=>!!t)}coalesce(){return Ic.coalesce(this)}static async toPromise(e){const t=[];for await(const n of e)t.push(n);return t}toPromise(){return Ic.toPromise(this)}emitOne(e){this._state===0&&(this._results.push(e),this._onStateChanged.fire())}emitMany(e){this._state===0&&(this._results=this._results.concat(e),this._onStateChanged.fire())}resolve(){this._state===0&&(this._state=1,this._onStateChanged.fire())}reject(e){this._state===0&&(this._state=2,this._error=e,this._onStateChanged.fire())}};Ic.EMPTY=Ic.fromArray([]);let ed=Ic;class Nbt extends ed{constructor(e,t){super(t),this._source=e}cancel(){this._source.cancel()}}function Ibt(i){const e=new or,t=i(e.token);return new Nbt(e,async n=>{const s=e.token.onCancellationRequested(()=>{s.dispose(),e.dispose(),n.reject(new Wh)});try{for await(const r of t){if(e.token.isCancellationRequested)return;n.emitOne(r)}s.dispose(),e.dispose()}catch(r){s.dispose(),e.dispose(),n.reject(r)}})}/*! @license DOMPurify 3.1.7 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.1.7/LICENSE */const{entries:aTe,setPrototypeOf:lTe,isFrozen:Pbt,getPrototypeOf:Mbt,getOwnPropertyDescriptor:Rbt}=Object;let{freeze:rc,seal:hf,create:uTe}=Object,{apply:yQ,construct:vQ}=typeof Reflect<"u"&&Reflect;rc||(rc=function(e){return e}),hf||(hf=function(e){return e}),yQ||(yQ=function(e,t,n){return e.apply(t,n)}),vQ||(vQ=function(e,t){return new e(...t)});const G5=ih(Array.prototype.forEach),cTe=ih(Array.prototype.pop),UN=ih(Array.prototype.push),K5=ih(String.prototype.toLowerCase),CQ=ih(String.prototype.toString),dTe=ih(String.prototype.match),zN=ih(String.prototype.replace),Obt=ih(String.prototype.indexOf),Fbt=ih(String.prototype.trim),pp=ih(Object.prototype.hasOwnProperty),oc=ih(RegExp.prototype.test),jN=Bbt(TypeError);function ih(i){return function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),s=1;s<t;s++)n[s-1]=arguments[s];return yQ(i,e,n)}}function Bbt(i){return function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return vQ(i,t)}}function _s(i,e){let t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:K5;lTe&&lTe(i,null);let n=e.length;for(;n--;){let s=e[n];if(typeof s=="string"){const r=t(s);r!==s&&(Pbt(e)||(e[n]=r),s=r)}i[s]=!0}return i}function Vbt(i){for(let e=0;e<i.length;e++)pp(i,e)||(i[e]=null);return i}function NC(i){const e=uTe(null);for(const[t,n]of aTe(i))pp(i,t)&&(Array.isArray(n)?e[t]=Vbt(n):n&&typeof n=="object"&&n.constructor===Object?e[t]=NC(n):e[t]=n);return e}function qN(i,e){for(;i!==null;){const n=Rbt(i,e);if(n){if(n.get)return ih(n.get);if(typeof n.value=="function")return ih(n.value)}i=Mbt(i)}function t(){return null}return t}const hTe=rc(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),wQ=rc(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),SQ=rc(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),Wbt=rc(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),xQ=rc(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),Hbt=rc(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),fTe=rc(["#text"]),pTe=rc(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),DQ=rc(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),gTe=rc(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),Y5=rc(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),$bt=hf(/\{\{[\w\W]*|[\w\W]*\}\}/gm),Ubt=hf(/<%[\w\W]*|[\w\W]*%>/gm),zbt=hf(/\${[\w\W]*}/gm),jbt=hf(/^data-[\-\w.\u00B7-\uFFFF]/),qbt=hf(/^aria-[\-\w]+$/),mTe=hf(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Gbt=hf(/^(?:\w+script|data):/i),Kbt=hf(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),_Te=hf(/^html$/i),Ybt=hf(/^[a-z][.\w]*(-[.\w]+)+$/i);var bTe=Object.freeze({__proto__:null,MUSTACHE_EXPR:$bt,ERB_EXPR:Ubt,TMPLIT_EXPR:zbt,DATA_ATTR:jbt,ARIA_ATTR:qbt,IS_ALLOWED_URI:mTe,IS_SCRIPT_OR_DATA:Gbt,ATTR_WHITESPACE:Kbt,DOCTYPE_NAME:_Te,CUSTOM_ELEMENT:Ybt});const GN={element:1,text:3,progressingInstruction:7,comment:8,document:9},Xbt=function(){return typeof window>"u"?null:window},Qbt=function(e,t){if(typeof e!="object"||typeof e.createPolicy!="function")return null;let n=null;const s="data-tt-policy-suffix";t&&t.hasAttribute(s)&&(n=t.getAttribute(s));const r="dompurify"+(n?"#"+n:"");try{return e.createPolicy(r,{createHTML(o){return o},createScriptURL(o){return o}})}catch{return console.warn("TrustedTypes policy "+r+" could not be created."),null}};function yTe(){let i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Xbt();const e=Zt=>yTe(Zt);if(e.version="3.1.7",e.removed=[],!i||!i.document||i.document.nodeType!==GN.document)return e.isSupported=!1,e;let{document:t}=i;const n=t,s=n.currentScript,{DocumentFragment:r,HTMLTemplateElement:o,Node:a,Element:l,NodeFilter:u,NamedNodeMap:c=i.NamedNodeMap||i.MozNamedAttrMap,HTMLFormElement:d,DOMParser:h,trustedTypes:f}=i,g=l.prototype,b=qN(g,"cloneNode"),y=qN(g,"remove"),S=qN(g,"nextSibling"),x=qN(g,"childNodes"),E=qN(g,"parentNode");if(typeof o=="function"){const Zt=t.createElement("template");Zt.content&&Zt.content.ownerDocument&&(t=Zt.content.ownerDocument)}let k,A="";const{implementation:I,createNodeIterator:M,createDocumentFragment:B,getElementsByTagName:F}=t,{importNode:G}=n;let q={};e.isSupported=typeof aTe=="function"&&typeof E=="function"&&I&&I.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:ee,ERB_EXPR:Z,TMPLIT_EXPR:K,DATA_ATTR:oe,ARIA_ATTR:Y,IS_SCRIPT_OR_DATA:de,ATTR_WHITESPACE:ae,CUSTOM_ELEMENT:he}=bTe;let{IS_ALLOWED_URI:Ce}=bTe,le=null;const J=_s({},[...hTe,...wQ,...SQ,...xQ,...fTe]);let Ee=null;const we=_s({},[...pTe,...DQ,...gTe,...Y5]);let Ae=Object.seal(uTe(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),Ue=null,ze=null,$e=!0,Dt=!0,$t=!1,ii=!0,di=!1,Oe=!0,ke=!1,pt=!1,Me=!1,ge=!1,mt=!1,At=!1,Kt=!0,Et=!1;const Ve="user-content-";let ft=!0,bt=!1,Yt={},ki=null;const zi=_s({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let Xt=null;const Ci=_s({},["audio","video","img","source","image","track"]);let mi=null;const _i=_s({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Mi="http://www.w3.org/1998/Math/MathML",Ei="http://www.w3.org/2000/svg",ai="http://www.w3.org/1999/xhtml";let Wn=ai,Mn=!1,hs=null;const Wi=_s({},[Mi,Ei,ai],CQ);let Pr=null;const qs=["application/xhtml+xml","text/html"],aa="text/html";let Kn=null,ir=null;const ji=t.createElement("form"),an=function(Pe){return Pe instanceof RegExp||Pe instanceof Function},es=function(){let Pe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(ir&&ir===Pe)){if((!Pe||typeof Pe!="object")&&(Pe={}),Pe=NC(Pe),Pr=qs.indexOf(Pe.PARSER_MEDIA_TYPE)===-1?aa:Pe.PARSER_MEDIA_TYPE,Kn=Pr==="application/xhtml+xml"?CQ:K5,le=pp(Pe,"ALLOWED_TAGS")?_s({},Pe.ALLOWED_TAGS,Kn):J,Ee=pp(Pe,"ALLOWED_ATTR")?_s({},Pe.ALLOWED_ATTR,Kn):we,hs=pp(Pe,"ALLOWED_NAMESPACES")?_s({},Pe.ALLOWED_NAMESPACES,CQ):Wi,mi=pp(Pe,"ADD_URI_SAFE_ATTR")?_s(NC(_i),Pe.ADD_URI_SAFE_ATTR,Kn):_i,Xt=pp(Pe,"ADD_DATA_URI_TAGS")?_s(NC(Ci),Pe.ADD_DATA_URI_TAGS,Kn):Ci,ki=pp(Pe,"FORBID_CONTENTS")?_s({},Pe.FORBID_CONTENTS,Kn):zi,Ue=pp(Pe,"FORBID_TAGS")?_s({},Pe.FORBID_TAGS,Kn):{},ze=pp(Pe,"FORBID_ATTR")?_s({},Pe.FORBID_ATTR,Kn):{},Yt=pp(Pe,"USE_PROFILES")?Pe.USE_PROFILES:!1,$e=Pe.ALLOW_ARIA_ATTR!==!1,Dt=Pe.ALLOW_DATA_ATTR!==!1,$t=Pe.ALLOW_UNKNOWN_PROTOCOLS||!1,ii=Pe.ALLOW_SELF_CLOSE_IN_ATTR!==!1,di=Pe.SAFE_FOR_TEMPLATES||!1,Oe=Pe.SAFE_FOR_XML!==!1,ke=Pe.WHOLE_DOCUMENT||!1,ge=Pe.RETURN_DOM||!1,mt=Pe.RETURN_DOM_FRAGMENT||!1,At=Pe.RETURN_TRUSTED_TYPE||!1,Me=Pe.FORCE_BODY||!1,Kt=Pe.SANITIZE_DOM!==!1,Et=Pe.SANITIZE_NAMED_PROPS||!1,ft=Pe.KEEP_CONTENT!==!1,bt=Pe.IN_PLACE||!1,Ce=Pe.ALLOWED_URI_REGEXP||mTe,Wn=Pe.NAMESPACE||ai,Ae=Pe.CUSTOM_ELEMENT_HANDLING||{},Pe.CUSTOM_ELEMENT_HANDLING&&an(Pe.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(Ae.tagNameCheck=Pe.CUSTOM_ELEMENT_HANDLING.tagNameCheck),Pe.CUSTOM_ELEMENT_HANDLING&&an(Pe.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(Ae.attributeNameCheck=Pe.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),Pe.CUSTOM_ELEMENT_HANDLING&&typeof Pe.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(Ae.allowCustomizedBuiltInElements=Pe.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),di&&(Dt=!1),mt&&(ge=!0),Yt&&(le=_s({},fTe),Ee=[],Yt.html===!0&&(_s(le,hTe),_s(Ee,pTe)),Yt.svg===!0&&(_s(le,wQ),_s(Ee,DQ),_s(Ee,Y5)),Yt.svgFilters===!0&&(_s(le,SQ),_s(Ee,DQ),_s(Ee,Y5)),Yt.mathMl===!0&&(_s(le,xQ),_s(Ee,gTe),_s(Ee,Y5))),Pe.ADD_TAGS&&(le===J&&(le=NC(le)),_s(le,Pe.ADD_TAGS,Kn)),Pe.ADD_ATTR&&(Ee===we&&(Ee=NC(Ee)),_s(Ee,Pe.ADD_ATTR,Kn)),Pe.ADD_URI_SAFE_ATTR&&_s(mi,Pe.ADD_URI_SAFE_ATTR,Kn),Pe.FORBID_CONTENTS&&(ki===zi&&(ki=NC(ki)),_s(ki,Pe.FORBID_CONTENTS,Kn)),ft&&(le["#text"]=!0),ke&&_s(le,["html","head","body"]),le.table&&(_s(le,["tbody"]),delete Ue.tbody),Pe.TRUSTED_TYPES_POLICY){if(typeof Pe.TRUSTED_TYPES_POLICY.createHTML!="function")throw jN('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof Pe.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw jN('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');k=Pe.TRUSTED_TYPES_POLICY,A=k.createHTML("")}else k===void 0&&(k=Qbt(f,s)),k!==null&&typeof A=="string"&&(A=k.createHTML(""));rc&&rc(Pe),ir=Pe}},ti=_s({},["mi","mo","mn","ms","mtext"]),re=_s({},["annotation-xml"]),ue=_s({},["title","style","font","a","script"]),pe=_s({},[...wQ,...SQ,...Wbt]),Se=_s({},[...xQ,...Hbt]),Ne=function(Pe){let Bt=E(Pe);(!Bt||!Bt.tagName)&&(Bt={namespaceURI:Wn,tagName:"template"});const He=K5(Pe.tagName),fs=K5(Bt.tagName);return hs[Pe.namespaceURI]?Pe.namespaceURI===Ei?Bt.namespaceURI===ai?He==="svg":Bt.namespaceURI===Mi?He==="svg"&&(fs==="annotation-xml"||ti[fs]):!!pe[He]:Pe.namespaceURI===Mi?Bt.namespaceURI===ai?He==="math":Bt.namespaceURI===Ei?He==="math"&&re[fs]:!!Se[He]:Pe.namespaceURI===ai?Bt.namespaceURI===Ei&&!re[fs]||Bt.namespaceURI===Mi&&!ti[fs]?!1:!Se[He]&&(ue[He]||!pe[He]):!!(Pr==="application/xhtml+xml"&&hs[Pe.namespaceURI]):!1},Ke=function(Pe){UN(e.removed,{element:Pe});try{E(Pe).removeChild(Pe)}catch{y(Pe)}},ot=function(Pe,Bt){try{UN(e.removed,{attribute:Bt.getAttributeNode(Pe),from:Bt})}catch{UN(e.removed,{attribute:null,from:Bt})}if(Bt.removeAttribute(Pe),Pe==="is"&&!Ee[Pe])if(ge||mt)try{Ke(Bt)}catch{}else try{Bt.setAttribute(Pe,"")}catch{}},Wt=function(Pe){let Bt=null,He=null;if(Me)Pe="<remove></remove>"+Pe;else{const nr=dTe(Pe,/^[\r\n\t ]+/);He=nr&&nr[0]}Pr==="application/xhtml+xml"&&Wn===ai&&(Pe='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+Pe+"</body></html>");const fs=k?k.createHTML(Pe):Pe;if(Wn===ai)try{Bt=new h().parseFromString(fs,Pr)}catch{}if(!Bt||!Bt.documentElement){Bt=I.createDocument(Wn,"template",null);try{Bt.documentElement.innerHTML=Mn?A:fs}catch{}}const Gs=Bt.body||Bt.documentElement;return Pe&&He&&Gs.insertBefore(t.createTextNode(He),Gs.childNodes[0]||null),Wn===ai?F.call(Bt,ke?"html":"body")[0]:ke?Bt.documentElement:Gs},Qt=function(Pe){return M.call(Pe.ownerDocument||Pe,Pe,u.SHOW_ELEMENT|u.SHOW_COMMENT|u.SHOW_TEXT|u.SHOW_PROCESSING_INSTRUCTION|u.SHOW_CDATA_SECTION,null)},hi=function(Pe){return Pe instanceof d&&(typeof Pe.nodeName!="string"||typeof Pe.textContent!="string"||typeof Pe.removeChild!="function"||!(Pe.attributes instanceof c)||typeof Pe.removeAttribute!="function"||typeof Pe.setAttribute!="function"||typeof Pe.namespaceURI!="string"||typeof Pe.insertBefore!="function"||typeof Pe.hasChildNodes!="function")},si=function(Pe){return typeof a=="function"&&Pe instanceof a},wi=function(Pe,Bt,He){q[Pe]&&G5(q[Pe],fs=>{fs.call(e,Bt,He,ir)})},Ot=function(Pe){let Bt=null;if(wi("beforeSanitizeElements",Pe,null),hi(Pe))return Ke(Pe),!0;const He=Kn(Pe.nodeName);if(wi("uponSanitizeElement",Pe,{tagName:He,allowedTags:le}),Pe.hasChildNodes()&&!si(Pe.firstElementChild)&&oc(/<[/\w]/g,Pe.innerHTML)&&oc(/<[/\w]/g,Pe.textContent)||Pe.nodeType===GN.progressingInstruction||Oe&&Pe.nodeType===GN.comment&&oc(/<[/\w]/g,Pe.data))return Ke(Pe),!0;if(!le[He]||Ue[He]){if(!Ue[He]&&Fs(He)&&(Ae.tagNameCheck instanceof RegExp&&oc(Ae.tagNameCheck,He)||Ae.tagNameCheck instanceof Function&&Ae.tagNameCheck(He)))return!1;if(ft&&!ki[He]){const fs=E(Pe)||Pe.parentNode,Gs=x(Pe)||Pe.childNodes;if(Gs&&fs){const nr=Gs.length;for(let rs=nr-1;rs>=0;--rs){const Wl=b(Gs[rs],!0);Wl.__removalCount=(Pe.__removalCount||0)+1,fs.insertBefore(Wl,S(Pe))}}}return Ke(Pe),!0}return Pe instanceof l&&!Ne(Pe)||(He==="noscript"||He==="noembed"||He==="noframes")&&oc(/<\/no(script|embed|frames)/i,Pe.innerHTML)?(Ke(Pe),!0):(di&&Pe.nodeType===GN.text&&(Bt=Pe.textContent,G5([ee,Z,K],fs=>{Bt=zN(Bt,fs," ")}),Pe.textContent!==Bt&&(UN(e.removed,{element:Pe.cloneNode()}),Pe.textContent=Bt)),wi("afterSanitizeElements",Pe,null),!1)},Cn=function(Pe,Bt,He){if(Kt&&(Bt==="id"||Bt==="name")&&(He in t||He in ji))return!1;if(!(Dt&&!ze[Bt]&&oc(oe,Bt))){if(!($e&&oc(Y,Bt))){if(!Ee[Bt]||ze[Bt]){if(!(Fs(Pe)&&(Ae.tagNameCheck instanceof RegExp&&oc(Ae.tagNameCheck,Pe)||Ae.tagNameCheck instanceof Function&&Ae.tagNameCheck(Pe))&&(Ae.attributeNameCheck instanceof RegExp&&oc(Ae.attributeNameCheck,Bt)||Ae.attributeNameCheck instanceof Function&&Ae.attributeNameCheck(Bt))||Bt==="is"&&Ae.allowCustomizedBuiltInElements&&(Ae.tagNameCheck instanceof RegExp&&oc(Ae.tagNameCheck,He)||Ae.tagNameCheck instanceof Function&&Ae.tagNameCheck(He))))return!1}else if(!mi[Bt]){if(!oc(Ce,zN(He,ae,""))){if(!((Bt==="src"||Bt==="xlink:href"||Bt==="href")&&Pe!=="script"&&Obt(He,"data:")===0&&Xt[Pe])){if(!($t&&!oc(de,zN(He,ae,"")))){if(He)return!1}}}}}}return!0},Fs=function(Pe){return Pe!=="annotation-xml"&&dTe(Pe,he)},to=function(Pe){wi("beforeSanitizeAttributes",Pe,null);const{attributes:Bt}=Pe;if(!Bt)return;const He={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:Ee};let fs=Bt.length;for(;fs--;){const Gs=Bt[fs],{name:nr,namespaceURI:rs,value:Wl}=Gs,Eh=Kn(nr);let sr=nr==="value"?Wl:Fbt(Wl);if(He.attrName=Eh,He.attrValue=sr,He.keepAttr=!0,He.forceKeepAttr=void 0,wi("uponSanitizeAttribute",Pe,He),sr=He.attrValue,He.forceKeepAttr||(ot(nr,Pe),!He.keepAttr))continue;if(!ii&&oc(/\/>/i,sr)){ot(nr,Pe);continue}di&&G5([ee,Z,K],rb=>{sr=zN(sr,rb," ")});const rr=Kn(Pe.nodeName);if(Cn(rr,Eh,sr)){if(Et&&(Eh==="id"||Eh==="name")&&(ot(nr,Pe),sr=Ve+sr),Oe&&oc(/((--!?|])>)|<\/(style|title)/i,sr)){ot(nr,Pe);continue}if(k&&typeof f=="object"&&typeof f.getAttributeType=="function"&&!rs)switch(f.getAttributeType(rr,Eh)){case"TrustedHTML":{sr=k.createHTML(sr);break}case"TrustedScriptURL":{sr=k.createScriptURL(sr);break}}try{rs?Pe.setAttributeNS(rs,nr,sr):Pe.setAttribute(nr,sr),hi(Pe)?Ke(Pe):cTe(e.removed)}catch{}}}wi("afterSanitizeAttributes",Pe,null)},vu=function Zt(Pe){let Bt=null;const He=Qt(Pe);for(wi("beforeSanitizeShadowDOM",Pe,null);Bt=He.nextNode();)wi("uponSanitizeShadowNode",Bt,null),!Ot(Bt)&&(Bt.content instanceof r&&Zt(Bt.content),to(Bt));wi("afterSanitizeShadowDOM",Pe,null)};return e.sanitize=function(Zt){let Pe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Bt=null,He=null,fs=null,Gs=null;if(Mn=!Zt,Mn&&(Zt="<!-->"),typeof Zt!="string"&&!si(Zt))if(typeof Zt.toString=="function"){if(Zt=Zt.toString(),typeof Zt!="string")throw jN("dirty is not a string, aborting")}else throw jN("toString is not a function");if(!e.isSupported)return Zt;if(pt||es(Pe),e.removed=[],typeof Zt=="string"&&(bt=!1),bt){if(Zt.nodeName){const Wl=Kn(Zt.nodeName);if(!le[Wl]||Ue[Wl])throw jN("root node is forbidden and cannot be sanitized in-place")}}else if(Zt instanceof a)Bt=Wt("<!---->"),He=Bt.ownerDocument.importNode(Zt,!0),He.nodeType===GN.element&&He.nodeName==="BODY"||He.nodeName==="HTML"?Bt=He:Bt.appendChild(He);else{if(!ge&&!di&&!ke&&Zt.indexOf("<")===-1)return k&&At?k.createHTML(Zt):Zt;if(Bt=Wt(Zt),!Bt)return ge?null:At?A:""}Bt&&Me&&Ke(Bt.firstChild);const nr=Qt(bt?Zt:Bt);for(;fs=nr.nextNode();)Ot(fs)||(fs.content instanceof r&&vu(fs.content),to(fs));if(bt)return Zt;if(ge){if(mt)for(Gs=B.call(Bt.ownerDocument);Bt.firstChild;)Gs.appendChild(Bt.firstChild);else Gs=Bt;return(Ee.shadowroot||Ee.shadowrootmode)&&(Gs=G.call(n,Gs,!0)),Gs}let rs=ke?Bt.outerHTML:Bt.innerHTML;return ke&&le["!doctype"]&&Bt.ownerDocument&&Bt.ownerDocument.doctype&&Bt.ownerDocument.doctype.name&&oc(_Te,Bt.ownerDocument.doctype.name)&&(rs="<!DOCTYPE "+Bt.ownerDocument.doctype.name+`>
|
|
515
|
+
spurious results.`)}}return!1},St=class{constructor(V,ne="GraphQL request",$={line:1,column:1}){typeof V=="string"||Th(!1,`Body must be a string. Received: ${kh(V)}.`),this.body=V,this.name=ne,this.locationOffset=$,this.locationOffset.line>0||Th(!1,"line in locationOffset is 1-indexed and must be positive."),this.locationOffset.column>0||Th(!1,"column in locationOffset is 1-indexed and must be positive.")}get[Symbol.toStringTag](){return"Source"}};function It(V){return Ge(V,St)}function ei(V,ne){let $=new ln(V,ne),Te=$.parseDocument();return Object.defineProperty(Te,"tokenCount",{enumerable:!1,value:$.tokenCount}),Te}var ln=class{constructor(V,ne={}){let $=It(V)?V:new St(V);this._lexer=new fs($),this._options=ne,this._tokenCounter=0}get tokenCount(){return this._tokenCounter}parseName(){let V=this.expectToken(He.NAME);return this.node(V,{kind:Ot.NAME,value:V.value})}parseDocument(){return this.node(this._lexer.token,{kind:Ot.DOCUMENT,definitions:this.many(He.SOF,this.parseDefinition,He.EOF)})}parseDefinition(){if(this.peek(He.BRACE_L))return this.parseOperationDefinition();let V=this.peekDescription(),ne=V?this._lexer.lookahead():this._lexer.token;if(ne.kind===He.NAME){switch(ne.value){case"schema":return this.parseSchemaDefinition();case"scalar":return this.parseScalarTypeDefinition();case"type":return this.parseObjectTypeDefinition();case"interface":return this.parseInterfaceTypeDefinition();case"union":return this.parseUnionTypeDefinition();case"enum":return this.parseEnumTypeDefinition();case"input":return this.parseInputObjectTypeDefinition();case"directive":return this.parseDirectiveDefinition()}if(V)throw si(this._lexer.source,this._lexer.token.start,"Unexpected description, descriptions are supported only on type definitions.");switch(ne.value){case"query":case"mutation":case"subscription":return this.parseOperationDefinition();case"fragment":return this.parseFragmentDefinition();case"extend":return this.parseTypeSystemExtension()}}throw this.unexpected(ne)}parseOperationDefinition(){let V=this._lexer.token;if(this.peek(He.BRACE_L))return this.node(V,{kind:Ot.OPERATION_DEFINITION,operation:At.QUERY,name:void 0,variableDefinitions:[],directives:[],selectionSet:this.parseSelectionSet()});let ne=this.parseOperationType(),$;return this.peek(He.NAME)&&($=this.parseName()),this.node(V,{kind:Ot.OPERATION_DEFINITION,operation:ne,name:$,variableDefinitions:this.parseVariableDefinitions(),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseOperationType(){let V=this.expectToken(He.NAME);switch(V.value){case"query":return At.QUERY;case"mutation":return At.MUTATION;case"subscription":return At.SUBSCRIPTION}throw this.unexpected(V)}parseVariableDefinitions(){return this.optionalMany(He.PAREN_L,this.parseVariableDefinition,He.PAREN_R)}parseVariableDefinition(){return this.node(this._lexer.token,{kind:Ot.VARIABLE_DEFINITION,variable:this.parseVariable(),type:(this.expectToken(He.COLON),this.parseTypeReference()),defaultValue:this.expectOptionalToken(He.EQUALS)?this.parseConstValueLiteral():void 0,directives:this.parseConstDirectives()})}parseVariable(){let V=this._lexer.token;return this.expectToken(He.DOLLAR),this.node(V,{kind:Ot.VARIABLE,name:this.parseName()})}parseSelectionSet(){return this.node(this._lexer.token,{kind:Ot.SELECTION_SET,selections:this.many(He.BRACE_L,this.parseSelection,He.BRACE_R)})}parseSelection(){return this.peek(He.SPREAD)?this.parseFragment():this.parseField()}parseField(){let V=this._lexer.token,ne=this.parseName(),$,Te;return this.expectOptionalToken(He.COLON)?($=ne,Te=this.parseName()):Te=ne,this.node(V,{kind:Ot.FIELD,alias:$,name:Te,arguments:this.parseArguments(!1),directives:this.parseDirectives(!1),selectionSet:this.peek(He.BRACE_L)?this.parseSelectionSet():void 0})}parseArguments(V){let ne=V?this.parseConstArgument:this.parseArgument;return this.optionalMany(He.PAREN_L,ne,He.PAREN_R)}parseArgument(V=!1){let ne=this._lexer.token,$=this.parseName();return this.expectToken(He.COLON),this.node(ne,{kind:Ot.ARGUMENT,name:$,value:this.parseValueLiteral(V)})}parseConstArgument(){return this.parseArgument(!0)}parseFragment(){let V=this._lexer.token;this.expectToken(He.SPREAD);let ne=this.expectOptionalKeyword("on");return!ne&&this.peek(He.NAME)?this.node(V,{kind:Ot.FRAGMENT_SPREAD,name:this.parseFragmentName(),directives:this.parseDirectives(!1)}):this.node(V,{kind:Ot.INLINE_FRAGMENT,typeCondition:ne?this.parseNamedType():void 0,directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentDefinition(){let V=this._lexer.token;return this.expectKeyword("fragment"),this._options.allowLegacyFragmentVariables===!0?this.node(V,{kind:Ot.FRAGMENT_DEFINITION,name:this.parseFragmentName(),variableDefinitions:this.parseVariableDefinitions(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()}):this.node(V,{kind:Ot.FRAGMENT_DEFINITION,name:this.parseFragmentName(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentName(){if(this._lexer.token.value==="on")throw this.unexpected();return this.parseName()}parseValueLiteral(V){let ne=this._lexer.token;switch(ne.kind){case He.BRACKET_L:return this.parseList(V);case He.BRACE_L:return this.parseObject(V);case He.INT:return this.advanceLexer(),this.node(ne,{kind:Ot.INT,value:ne.value});case He.FLOAT:return this.advanceLexer(),this.node(ne,{kind:Ot.FLOAT,value:ne.value});case He.STRING:case He.BLOCK_STRING:return this.parseStringLiteral();case He.NAME:switch(this.advanceLexer(),ne.value){case"true":return this.node(ne,{kind:Ot.BOOLEAN,value:!0});case"false":return this.node(ne,{kind:Ot.BOOLEAN,value:!1});case"null":return this.node(ne,{kind:Ot.NULL});default:return this.node(ne,{kind:Ot.ENUM,value:ne.value})}case He.DOLLAR:if(V)if(this.expectToken(He.DOLLAR),this._lexer.token.kind===He.NAME){let $=this._lexer.token.value;throw si(this._lexer.source,ne.start,`Unexpected variable "$${$}" in constant value.`)}else throw this.unexpected(ne);return this.parseVariable();default:throw this.unexpected()}}parseConstValueLiteral(){return this.parseValueLiteral(!0)}parseStringLiteral(){let V=this._lexer.token;return this.advanceLexer(),this.node(V,{kind:Ot.STRING,value:V.value,block:V.kind===He.BLOCK_STRING})}parseList(V){let ne=()=>this.parseValueLiteral(V);return this.node(this._lexer.token,{kind:Ot.LIST,values:this.any(He.BRACKET_L,ne,He.BRACKET_R)})}parseObject(V){let ne=()=>this.parseObjectField(V);return this.node(this._lexer.token,{kind:Ot.OBJECT,fields:this.any(He.BRACE_L,ne,He.BRACE_R)})}parseObjectField(V){let ne=this._lexer.token,$=this.parseName();return this.expectToken(He.COLON),this.node(ne,{kind:Ot.OBJECT_FIELD,name:$,value:this.parseValueLiteral(V)})}parseDirectives(V){let ne=[];for(;this.peek(He.AT);)ne.push(this.parseDirective(V));return ne}parseConstDirectives(){return this.parseDirectives(!0)}parseDirective(V){let ne=this._lexer.token;return this.expectToken(He.AT),this.node(ne,{kind:Ot.DIRECTIVE,name:this.parseName(),arguments:this.parseArguments(V)})}parseTypeReference(){let V=this._lexer.token,ne;if(this.expectOptionalToken(He.BRACKET_L)){let $=this.parseTypeReference();this.expectToken(He.BRACKET_R),ne=this.node(V,{kind:Ot.LIST_TYPE,type:$})}else ne=this.parseNamedType();return this.expectOptionalToken(He.BANG)?this.node(V,{kind:Ot.NON_NULL_TYPE,type:ne}):ne}parseNamedType(){return this.node(this._lexer.token,{kind:Ot.NAMED_TYPE,name:this.parseName()})}peekDescription(){return this.peek(He.STRING)||this.peek(He.BLOCK_STRING)}parseDescription(){if(this.peekDescription())return this.parseStringLiteral()}parseSchemaDefinition(){let V=this._lexer.token,ne=this.parseDescription();this.expectKeyword("schema");let $=this.parseConstDirectives(),Te=this.many(He.BRACE_L,this.parseOperationTypeDefinition,He.BRACE_R);return this.node(V,{kind:Ot.SCHEMA_DEFINITION,description:ne,directives:$,operationTypes:Te})}parseOperationTypeDefinition(){let V=this._lexer.token,ne=this.parseOperationType();this.expectToken(He.COLON);let $=this.parseNamedType();return this.node(V,{kind:Ot.OPERATION_TYPE_DEFINITION,operation:ne,type:$})}parseScalarTypeDefinition(){let V=this._lexer.token,ne=this.parseDescription();this.expectKeyword("scalar");let $=this.parseName(),Te=this.parseConstDirectives();return this.node(V,{kind:Ot.SCALAR_TYPE_DEFINITION,description:ne,name:$,directives:Te})}parseObjectTypeDefinition(){let V=this._lexer.token,ne=this.parseDescription();this.expectKeyword("type");let $=this.parseName(),Te=this.parseImplementsInterfaces(),xe=this.parseConstDirectives(),dt=this.parseFieldsDefinition();return this.node(V,{kind:Ot.OBJECT_TYPE_DEFINITION,description:ne,name:$,interfaces:Te,directives:xe,fields:dt})}parseImplementsInterfaces(){return this.expectOptionalKeyword("implements")?this.delimitedMany(He.AMP,this.parseNamedType):[]}parseFieldsDefinition(){return this.optionalMany(He.BRACE_L,this.parseFieldDefinition,He.BRACE_R)}parseFieldDefinition(){let V=this._lexer.token,ne=this.parseDescription(),$=this.parseName(),Te=this.parseArgumentDefs();this.expectToken(He.COLON);let xe=this.parseTypeReference(),dt=this.parseConstDirectives();return this.node(V,{kind:Ot.FIELD_DEFINITION,description:ne,name:$,arguments:Te,type:xe,directives:dt})}parseArgumentDefs(){return this.optionalMany(He.PAREN_L,this.parseInputValueDef,He.PAREN_R)}parseInputValueDef(){let V=this._lexer.token,ne=this.parseDescription(),$=this.parseName();this.expectToken(He.COLON);let Te=this.parseTypeReference(),xe;this.expectOptionalToken(He.EQUALS)&&(xe=this.parseConstValueLiteral());let dt=this.parseConstDirectives();return this.node(V,{kind:Ot.INPUT_VALUE_DEFINITION,description:ne,name:$,type:Te,defaultValue:xe,directives:dt})}parseInterfaceTypeDefinition(){let V=this._lexer.token,ne=this.parseDescription();this.expectKeyword("interface");let $=this.parseName(),Te=this.parseImplementsInterfaces(),xe=this.parseConstDirectives(),dt=this.parseFieldsDefinition();return this.node(V,{kind:Ot.INTERFACE_TYPE_DEFINITION,description:ne,name:$,interfaces:Te,directives:xe,fields:dt})}parseUnionTypeDefinition(){let V=this._lexer.token,ne=this.parseDescription();this.expectKeyword("union");let $=this.parseName(),Te=this.parseConstDirectives(),xe=this.parseUnionMemberTypes();return this.node(V,{kind:Ot.UNION_TYPE_DEFINITION,description:ne,name:$,directives:Te,types:xe})}parseUnionMemberTypes(){return this.expectOptionalToken(He.EQUALS)?this.delimitedMany(He.PIPE,this.parseNamedType):[]}parseEnumTypeDefinition(){let V=this._lexer.token,ne=this.parseDescription();this.expectKeyword("enum");let $=this.parseName(),Te=this.parseConstDirectives(),xe=this.parseEnumValuesDefinition();return this.node(V,{kind:Ot.ENUM_TYPE_DEFINITION,description:ne,name:$,directives:Te,values:xe})}parseEnumValuesDefinition(){return this.optionalMany(He.BRACE_L,this.parseEnumValueDefinition,He.BRACE_R)}parseEnumValueDefinition(){let V=this._lexer.token,ne=this.parseDescription(),$=this.parseEnumValueName(),Te=this.parseConstDirectives();return this.node(V,{kind:Ot.ENUM_VALUE_DEFINITION,description:ne,name:$,directives:Te})}parseEnumValueName(){if(this._lexer.token.value==="true"||this._lexer.token.value==="false"||this._lexer.token.value==="null")throw si(this._lexer.source,this._lexer.token.start,`${as(this._lexer.token)} is reserved and cannot be used for an enum value.`);return this.parseName()}parseInputObjectTypeDefinition(){let V=this._lexer.token,ne=this.parseDescription();this.expectKeyword("input");let $=this.parseName(),Te=this.parseConstDirectives(),xe=this.parseInputFieldsDefinition();return this.node(V,{kind:Ot.INPUT_OBJECT_TYPE_DEFINITION,description:ne,name:$,directives:Te,fields:xe})}parseInputFieldsDefinition(){return this.optionalMany(He.BRACE_L,this.parseInputValueDef,He.BRACE_R)}parseTypeSystemExtension(){let V=this._lexer.lookahead();if(V.kind===He.NAME)switch(V.value){case"schema":return this.parseSchemaExtension();case"scalar":return this.parseScalarTypeExtension();case"type":return this.parseObjectTypeExtension();case"interface":return this.parseInterfaceTypeExtension();case"union":return this.parseUnionTypeExtension();case"enum":return this.parseEnumTypeExtension();case"input":return this.parseInputObjectTypeExtension()}throw this.unexpected(V)}parseSchemaExtension(){let V=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("schema");let ne=this.parseConstDirectives(),$=this.optionalMany(He.BRACE_L,this.parseOperationTypeDefinition,He.BRACE_R);if(ne.length===0&&$.length===0)throw this.unexpected();return this.node(V,{kind:Ot.SCHEMA_EXTENSION,directives:ne,operationTypes:$})}parseScalarTypeExtension(){let V=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("scalar");let ne=this.parseName(),$=this.parseConstDirectives();if($.length===0)throw this.unexpected();return this.node(V,{kind:Ot.SCALAR_TYPE_EXTENSION,name:ne,directives:$})}parseObjectTypeExtension(){let V=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("type");let ne=this.parseName(),$=this.parseImplementsInterfaces(),Te=this.parseConstDirectives(),xe=this.parseFieldsDefinition();if($.length===0&&Te.length===0&&xe.length===0)throw this.unexpected();return this.node(V,{kind:Ot.OBJECT_TYPE_EXTENSION,name:ne,interfaces:$,directives:Te,fields:xe})}parseInterfaceTypeExtension(){let V=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("interface");let ne=this.parseName(),$=this.parseImplementsInterfaces(),Te=this.parseConstDirectives(),xe=this.parseFieldsDefinition();if($.length===0&&Te.length===0&&xe.length===0)throw this.unexpected();return this.node(V,{kind:Ot.INTERFACE_TYPE_EXTENSION,name:ne,interfaces:$,directives:Te,fields:xe})}parseUnionTypeExtension(){let V=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("union");let ne=this.parseName(),$=this.parseConstDirectives(),Te=this.parseUnionMemberTypes();if($.length===0&&Te.length===0)throw this.unexpected();return this.node(V,{kind:Ot.UNION_TYPE_EXTENSION,name:ne,directives:$,types:Te})}parseEnumTypeExtension(){let V=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("enum");let ne=this.parseName(),$=this.parseConstDirectives(),Te=this.parseEnumValuesDefinition();if($.length===0&&Te.length===0)throw this.unexpected();return this.node(V,{kind:Ot.ENUM_TYPE_EXTENSION,name:ne,directives:$,values:Te})}parseInputObjectTypeExtension(){let V=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("input");let ne=this.parseName(),$=this.parseConstDirectives(),Te=this.parseInputFieldsDefinition();if($.length===0&&Te.length===0)throw this.unexpected();return this.node(V,{kind:Ot.INPUT_OBJECT_TYPE_EXTENSION,name:ne,directives:$,fields:Te})}parseDirectiveDefinition(){let V=this._lexer.token,ne=this.parseDescription();this.expectKeyword("directive"),this.expectToken(He.AT);let $=this.parseName(),Te=this.parseArgumentDefs(),xe=this.expectOptionalKeyword("repeatable");this.expectKeyword("on");let dt=this.parseDirectiveLocations();return this.node(V,{kind:Ot.DIRECTIVE_DEFINITION,description:ne,name:$,arguments:Te,repeatable:xe,locations:dt})}parseDirectiveLocations(){return this.delimitedMany(He.PIPE,this.parseDirectiveLocation)}parseDirectiveLocation(){let V=this._lexer.token,ne=this.parseName();if(Object.prototype.hasOwnProperty.call(wi,ne.value))return ne;throw this.unexpected(V)}node(V,ne){return this._options.noLocation!==!0&&(ne.loc=new Me(V,this._lexer.lastToken,this._lexer.source)),ne}peek(V){return this._lexer.token.kind===V}expectToken(V){let ne=this._lexer.token;if(ne.kind===V)return this.advanceLexer(),ne;throw si(this._lexer.source,ne.start,`Expected ${mo(V)}, found ${as(ne)}.`)}expectOptionalToken(V){return this._lexer.token.kind===V?(this.advanceLexer(),!0):!1}expectKeyword(V){let ne=this._lexer.token;if(ne.kind===He.NAME&&ne.value===V)this.advanceLexer();else throw si(this._lexer.source,ne.start,`Expected "${V}", found ${as(ne)}.`)}expectOptionalKeyword(V){let ne=this._lexer.token;return ne.kind===He.NAME&&ne.value===V?(this.advanceLexer(),!0):!1}unexpected(V){let ne=V??this._lexer.token;return si(this._lexer.source,ne.start,`Unexpected ${as(ne)}.`)}any(V,ne,$){this.expectToken(V);let Te=[];for(;!this.expectOptionalToken($);)Te.push(ne.call(this));return Te}optionalMany(V,ne,$){if(this.expectOptionalToken(V)){let Te=[];do Te.push(ne.call(this));while(!this.expectOptionalToken($));return Te}return[]}many(V,ne,$){this.expectToken(V);let Te=[];do Te.push(ne.call(this));while(!this.expectOptionalToken($));return Te}delimitedMany(V,ne){this.expectOptionalToken(V);let $=[];do $.push(ne.call(this));while(this.expectOptionalToken(V));return $}advanceLexer(){let{maxTokens:V}=this._options,ne=this._lexer.advance();if(ne.kind!==He.EOF&&(++this._tokenCounter,V!==void 0&&this._tokenCounter>V))throw si(this._lexer.source,ne.start,`Document contains more that ${V} tokens. Parsing aborted.`)}};function as(V){let ne=V.value;return mo(V.kind)+(ne!=null?` "${ne}"`:"")}function mo(V){return Gs(V)?`"${V}"`:V}function wn(V,ne){let $=new SyntaxError(V+" ("+ne.loc.start.line+":"+ne.loc.start.column+")");return Object.assign($,ne)}var Cs=wn;function Mr(V){let ne=[],{startToken:$,endToken:Te}=V.loc;for(let xe=$;xe!==Te;xe=xe.next)xe.kind==="Comment"&&ne.push({...xe,loc:{start:xe.start,end:xe.end}});return ne}var Md={allowLegacyFragmentVariables:!0};function Pc(V){if(V?.name==="GraphQLError"){let{message:ne,locations:[$]}=V;return Cs(ne,{loc:{start:$},cause:V})}return V}function Mc(V){let ne;try{ne=ei(V,Md)}catch($){throw Pc($)}return ne.comments=Mr(ne),ne}var fL={parse:Mc,astFormat:"graphql",hasPragma:zi,hasIgnorePragma:Xt,locStart:Ve,locEnd:ft},iv={graphql:Kn};return l(u)})})(uQ)),uQ.exports}var ZEe=pbt();const gbt=Pv({__proto__:null,default:u0(ZEe)},[ZEe]);function mbt(i,e){const t=i;typeof t.vscodeWindowId!="number"&&Object.defineProperty(t,"vscodeWindowId",{get:()=>e})}const cs=window,WW=class WW{constructor(){this.mapWindowIdToZoomFactor=new Map}getZoomFactor(e){return this.mapWindowIdToZoomFactor.get(this.getWindowId(e))??1}getWindowId(e){return e.vscodeWindowId}};WW.INSTANCE=new WW;let cQ=WW;function JEe(i,e,t){typeof e=="string"&&(e=i.matchMedia(e)),e.addEventListener("change",t)}function _bt(i){return cQ.INSTANCE.getZoomFactor(i)}const ME=navigator.userAgent,eh=ME.indexOf("Firefox")>=0,j5=ME.indexOf("AppleWebKit")>=0,WN=ME.indexOf("Chrome")>=0,a1=!WN&&ME.indexOf("Safari")>=0,eTe=!WN&&!a1&&j5;ME.indexOf("Electron/")>=0;const tTe=ME.indexOf("Android")>=0;let dQ=!1;if(typeof cs.matchMedia=="function"){const i=cs.matchMedia("(display-mode: standalone) or (display-mode: window-controls-overlay)"),e=cs.matchMedia("(display-mode: fullscreen)");dQ=i.matches,JEe(cs,i,({matches:t})=>{dQ&&e.matches||(dQ=t)})}const hQ={clipboard:{writeText:gg||document.queryCommandSupported&&document.queryCommandSupported("copy")||!!(navigator&&navigator.clipboard&&navigator.clipboard.writeText),readText:gg||!!(navigator&&navigator.clipboard&&navigator.clipboard.readText)},pointerEvents:cs.PointerEvent&&("ontouchstart"in cs||navigator.maxTouchPoints>0)};function fQ(i,e){if(typeof i=="number"){if(i===0)return null;const t=(i&65535)>>>0,n=(i&4294901760)>>>16;return n!==0?new pQ([q5(t,e),q5(n,e)]):new pQ([q5(t,e)])}else{const t=[];for(let n=0;n<i.length;n++)t.push(q5(i[n],e));return new pQ(t)}}function q5(i,e){const t=!!(i&2048),n=!!(i&256),s=e===2?n:t,r=!!(i&1024),o=!!(i&512),a=e===2?t:n,l=i&255;return new $0(s,r,o,a,l)}class $0{constructor(e,t,n,s,r){this.ctrlKey=e,this.shiftKey=t,this.altKey=n,this.metaKey=s,this.keyCode=r}equals(e){return e instanceof $0&&this.ctrlKey===e.ctrlKey&&this.shiftKey===e.shiftKey&&this.altKey===e.altKey&&this.metaKey===e.metaKey&&this.keyCode===e.keyCode}isModifierKey(){return this.keyCode===0||this.keyCode===5||this.keyCode===57||this.keyCode===6||this.keyCode===4}isDuplicateModifierCase(){return this.ctrlKey&&this.keyCode===5||this.shiftKey&&this.keyCode===4||this.altKey&&this.keyCode===6||this.metaKey&&this.keyCode===57}}class pQ{constructor(e){if(e.length===0)throw jd("chords");this.chords=e}}class bbt{constructor(e,t,n,s,r,o){this.ctrlKey=e,this.shiftKey=t,this.altKey=n,this.metaKey=s,this.keyLabel=r,this.keyAriaLabel=o}}class ybt{}function vbt(i){if(i.charCode){const t=String.fromCharCode(i.charCode).toUpperCase();return c0.fromString(t)}const e=i.keyCode;if(e===3)return 7;if(eh)switch(e){case 59:return 85;case 60:if(zl)return 97;break;case 61:return 86;case 107:return 109;case 109:return 111;case 173:return 88;case 224:if(Yi)return 57;break}else if(j5){if(Yi&&e===93)return 57;if(!Yi&&e===92)return 57}return qhe[e]||0}const Cbt=Yi?256:2048,wbt=512,Sbt=1024,xbt=Yi?2048:256;class ms{constructor(e){this._standardKeyboardEventBrand=!0;const t=e;this.browserEvent=t,this.target=t.target,this.ctrlKey=t.ctrlKey,this.shiftKey=t.shiftKey,this.altKey=t.altKey,this.metaKey=t.metaKey,this.altGraphKey=t.getModifierState?.("AltGraph"),this.keyCode=vbt(t),this.code=t.code,this.ctrlKey=this.ctrlKey||this.keyCode===5,this.altKey=this.altKey||this.keyCode===6,this.shiftKey=this.shiftKey||this.keyCode===4,this.metaKey=this.metaKey||this.keyCode===57,this._asKeybinding=this._computeKeybinding(),this._asKeyCodeChord=this._computeKeyCodeChord()}preventDefault(){this.browserEvent&&this.browserEvent.preventDefault&&this.browserEvent.preventDefault()}stopPropagation(){this.browserEvent&&this.browserEvent.stopPropagation&&this.browserEvent.stopPropagation()}toKeyCodeChord(){return this._asKeyCodeChord}equals(e){return this._asKeybinding===e}_computeKeybinding(){let e=0;this.keyCode!==5&&this.keyCode!==4&&this.keyCode!==6&&this.keyCode!==57&&(e=this.keyCode);let t=0;return this.ctrlKey&&(t|=Cbt),this.altKey&&(t|=wbt),this.shiftKey&&(t|=Sbt),this.metaKey&&(t|=xbt),t|=e,t}_computeKeyCodeChord(){let e=0;return this.keyCode!==5&&this.keyCode!==4&&this.keyCode!==6&&this.keyCode!==57&&(e=this.keyCode),new $0(this.ctrlKey,this.shiftKey,this.altKey,this.metaKey,e)}}const iTe=new WeakMap;function Dbt(i){if(!i.parent||i.parent===i)return null;try{const e=i.location,t=i.parent.location;if(e.origin!=="null"&&t.origin!=="null"&&e.origin!==t.origin)return null}catch{return null}return i.parent}class Ebt{static getSameOriginWindowChain(e){let t=iTe.get(e);if(!t){t=[],iTe.set(e,t);let n=e,s;do s=Dbt(n),s?t.push({window:new WeakRef(n),iframeElement:n.frameElement||null}):t.push({window:new WeakRef(n),iframeElement:null}),n=s;while(n)}return t.slice(0)}static getPositionOfChildWindowRelativeToAncestorWindow(e,t){if(!t||e===t)return{top:0,left:0};let n=0,s=0;const r=this.getSameOriginWindowChain(e);for(const o of r){const a=o.window.deref();if(n+=a?.scrollY??0,s+=a?.scrollX??0,a===t||!o.iframeElement)break;const l=o.iframeElement.getBoundingClientRect();n+=l.top,s+=l.left}return{top:n,left:s}}}class cf{constructor(e,t){this.timestamp=Date.now(),this.browserEvent=t,this.leftButton=t.button===0,this.middleButton=t.button===1,this.rightButton=t.button===2,this.buttons=t.buttons,this.target=t.target,this.detail=t.detail||1,t.type==="dblclick"&&(this.detail=2),this.ctrlKey=t.ctrlKey,this.shiftKey=t.shiftKey,this.altKey=t.altKey,this.metaKey=t.metaKey,typeof t.pageX=="number"?(this.posx=t.pageX,this.posy=t.pageY):(this.posx=t.clientX+this.target.ownerDocument.body.scrollLeft+this.target.ownerDocument.documentElement.scrollLeft,this.posy=t.clientY+this.target.ownerDocument.body.scrollTop+this.target.ownerDocument.documentElement.scrollTop);const n=Ebt.getPositionOfChildWindowRelativeToAncestorWindow(e,t.view);this.posx-=n.left,this.posy-=n.top}preventDefault(){this.browserEvent.preventDefault()}stopPropagation(){this.browserEvent.stopPropagation()}}class AC{constructor(e,t=0,n=0){this.browserEvent=e||null,this.target=e?e.target||e.targetNode||e.srcElement:null,this.deltaY=n,this.deltaX=t;let s=!1;if(WN){const r=navigator.userAgent.match(/Chrome\/(\d+)/);s=(r?parseInt(r[1]):123)<=122}if(e){const r=e,o=e,a=e.view?.devicePixelRatio||1;if(typeof r.wheelDeltaY<"u")s?this.deltaY=r.wheelDeltaY/(120*a):this.deltaY=r.wheelDeltaY/120;else if(typeof o.VERTICAL_AXIS<"u"&&o.axis===o.VERTICAL_AXIS)this.deltaY=-o.detail/3;else if(e.type==="wheel"){const l=e;l.deltaMode===l.DOM_DELTA_LINE?eh&&!Yi?this.deltaY=-e.deltaY/3:this.deltaY=-e.deltaY:this.deltaY=-e.deltaY/40}if(typeof r.wheelDeltaX<"u")a1&&ka?this.deltaX=-(r.wheelDeltaX/120):s?this.deltaX=r.wheelDeltaX/(120*a):this.deltaX=r.wheelDeltaX/120;else if(typeof o.HORIZONTAL_AXIS<"u"&&o.axis===o.HORIZONTAL_AXIS)this.deltaX=-e.detail/3;else if(e.type==="wheel"){const l=e;l.deltaMode===l.DOM_DELTA_LINE?eh&&!Yi?this.deltaX=-e.deltaX/3:this.deltaX=-e.deltaX:this.deltaX=-e.deltaX/40}this.deltaY===0&&this.deltaX===0&&e.wheelDelta&&(s?this.deltaY=e.wheelDelta/(120*a):this.deltaY=e.wheelDelta/120)}}preventDefault(){this.browserEvent?.preventDefault()}stopPropagation(){this.browserEvent?.stopPropagation()}}const nTe=Symbol("MicrotaskDelay");function gQ(i){return!!i&&typeof i.then=="function"}function Bo(i){const e=new or,t=i(e.token),n=new Promise((s,r)=>{const o=e.token.onCancellationRequested(()=>{o.dispose(),r(new Wh)});Promise.resolve(t).then(a=>{o.dispose(),e.dispose(),s(a)},a=>{o.dispose(),e.dispose(),r(a)})});return new class{cancel(){e.cancel(),e.dispose()}then(s,r){return n.then(s,r)}catch(s){return this.then(void 0,s)}finally(s){return n.finally(s)}}}function HN(i,e,t){return new Promise((n,s)=>{const r=e.onCancellationRequested(()=>{r.dispose(),n(t)});i.then(n,s).finally(()=>r.dispose())})}class Tbt{constructor(){this.isDisposed=!1,this.activePromise=null,this.queuedPromise=null,this.queuedPromiseFactory=null}queue(e){if(this.isDisposed)return Promise.reject(new Error("Throttler is disposed"));if(this.activePromise){if(this.queuedPromiseFactory=e,!this.queuedPromise){const t=()=>{if(this.queuedPromise=null,this.isDisposed)return;const n=this.queue(this.queuedPromiseFactory);return this.queuedPromiseFactory=null,n};this.queuedPromise=new Promise(n=>{this.activePromise.then(t,t).then(n)})}return new Promise((t,n)=>{this.queuedPromise.then(t,n)})}return this.activePromise=e(),new Promise((t,n)=>{this.activePromise.then(s=>{this.activePromise=null,t(s)},s=>{this.activePromise=null,n(s)})})}dispose(){this.isDisposed=!0}}const kbt=(i,e)=>{let t=!0;const n=setTimeout(()=>{t=!1,e()},i);return{isTriggered:()=>t,dispose:()=>{clearTimeout(n),t=!1}}},Lbt=i=>{let e=!0;return queueMicrotask(()=>{e&&(e=!1,i())}),{isTriggered:()=>e,dispose:()=>{e=!1}}};class th{constructor(e){this.defaultDelay=e,this.deferred=null,this.completionPromise=null,this.doResolve=null,this.doReject=null,this.task=null}trigger(e,t=this.defaultDelay){this.task=e,this.cancelTimeout(),this.completionPromise||(this.completionPromise=new Promise((s,r)=>{this.doResolve=s,this.doReject=r}).then(()=>{if(this.completionPromise=null,this.doResolve=null,this.task){const s=this.task;return this.task=null,s()}}));const n=()=>{this.deferred=null,this.doResolve?.(null)};return this.deferred=t===nTe?Lbt(n):kbt(t,n),this.completionPromise}isTriggered(){return!!this.deferred?.isTriggered()}cancel(){this.cancelTimeout(),this.completionPromise&&(this.doReject?.(new Wh),this.completionPromise=null)}cancelTimeout(){this.deferred?.dispose(),this.deferred=null}dispose(){this.cancel()}}class sTe{constructor(e){this.delayer=new th(e),this.throttler=new Tbt}trigger(e,t){return this.delayer.trigger(()=>this.throttler.queue(e),t)}cancel(){this.delayer.cancel()}dispose(){this.delayer.dispose(),this.throttler.dispose()}}function U0(i,e){return e?new Promise((t,n)=>{const s=setTimeout(()=>{r.dispose(),t()},i),r=e.onCancellationRequested(()=>{clearTimeout(s),r.dispose(),n(new Wh)})}):Bo(t=>U0(i,t))}function l1(i,e=0,t){const n=setTimeout(()=>{i(),t&&s.dispose()},e),s=zt(()=>{clearTimeout(n),t?.deleteAndLeak(s)});return t?.add(s),s}function mQ(i,e=n=>!!n,t=null){let n=0;const s=i.length,r=()=>{if(n>=s)return Promise.resolve(t);const o=i[n++];return Promise.resolve(o()).then(l=>e(l)?Promise.resolve(l):r())};return r()}class df{constructor(e,t){this._isDisposed=!1,this._token=-1,typeof e=="function"&&typeof t=="number"&&this.setIfNotSet(e,t)}dispose(){this.cancel(),this._isDisposed=!0}cancel(){this._token!==-1&&(clearTimeout(this._token),this._token=-1)}cancelAndSet(e,t){if(this._isDisposed)throw new kn("Calling 'cancelAndSet' on a disposed TimeoutTimer");this.cancel(),this._token=setTimeout(()=>{this._token=-1,e()},t)}setIfNotSet(e,t){if(this._isDisposed)throw new kn("Calling 'setIfNotSet' on a disposed TimeoutTimer");this._token===-1&&(this._token=setTimeout(()=>{this._token=-1,e()},t))}}class _Q{constructor(){this.disposable=void 0,this.isDisposed=!1}cancel(){this.disposable?.dispose(),this.disposable=void 0}cancelAndSet(e,t,n=globalThis){if(this.isDisposed)throw new kn("Calling 'cancelAndSet' on a disposed IntervalTimer");this.cancel();const s=n.setInterval(()=>{e()},t);this.disposable=zt(()=>{n.clearInterval(s),this.disposable=void 0})}dispose(){this.cancel(),this.isDisposed=!0}}class Jn{constructor(e,t){this.timeoutToken=-1,this.runner=e,this.timeout=t,this.timeoutHandler=this.onTimeout.bind(this)}dispose(){this.cancel(),this.runner=null}cancel(){this.isScheduled()&&(clearTimeout(this.timeoutToken),this.timeoutToken=-1)}schedule(e=this.timeout){this.cancel(),this.timeoutToken=setTimeout(this.timeoutHandler,e)}get delay(){return this.timeout}set delay(e){this.timeout=e}isScheduled(){return this.timeoutToken!==-1}onTimeout(){this.timeoutToken=-1,this.runner&&this.doRun()}doRun(){this.runner?.()}}let rTe,$N;(function(){typeof globalThis.requestIdleCallback!="function"||typeof globalThis.cancelIdleCallback!="function"?$N=(i,e)=>{Jhe(()=>{if(t)return;const n=Date.now()+15;e(Object.freeze({didTimeout:!0,timeRemaining(){return Math.max(0,n-Date.now())}}))});let t=!1;return{dispose(){t||(t=!0)}}}:$N=(i,e,t)=>{const n=i.requestIdleCallback(e,typeof t=="number"?{timeout:t}:void 0);let s=!1;return{dispose(){s||(s=!0,i.cancelIdleCallback(n))}}},rTe=i=>$N(globalThis,i)})();class oTe{constructor(e,t){this._didRun=!1,this._executor=()=>{try{this._value=t()}catch(n){this._error=n}finally{this._didRun=!0}},this._handle=$N(e,()=>this._executor())}dispose(){this._handle.dispose()}get value(){if(this._didRun||(this._handle.dispose(),this._executor()),this._error)throw this._error;return this._value}get isInitialized(){return this._didRun}}class Abt extends oTe{constructor(e){super(globalThis,e)}}class RE{get isRejected(){return this.outcome?.outcome===1}get isSettled(){return!!this.outcome}constructor(){this.p=new Promise((e,t)=>{this.completeCallback=e,this.errorCallback=t})}complete(e){return new Promise(t=>{this.completeCallback(e),this.outcome={outcome:0,value:e},t()})}error(e){return new Promise(t=>{this.errorCallback(e),this.outcome={outcome:1,value:e},t()})}cancel(){return this.error(new Wh)}}var bQ;(function(i){async function e(n){let s;const r=await Promise.all(n.map(o=>o.then(a=>a,a=>{s||(s=a)})));if(typeof s<"u")throw s;return r}i.settled=e;function t(n){return new Promise(async(s,r)=>{try{await n(s,r)}catch(o){r(o)}})}i.withAsyncBody=t})(bQ||(bQ={}));const Ic=class Ic{static fromArray(e){return new Ic(t=>{t.emitMany(e)})}static fromPromise(e){return new Ic(async t=>{t.emitMany(await e)})}static fromPromises(e){return new Ic(async t=>{await Promise.all(e.map(async n=>t.emitOne(await n)))})}static merge(e){return new Ic(async t=>{await Promise.all(e.map(async n=>{for await(const s of n)t.emitOne(s)}))})}constructor(e,t){this._state=0,this._results=[],this._error=null,this._onReturn=t,this._onStateChanged=new _e,queueMicrotask(async()=>{const n={emitOne:s=>this.emitOne(s),emitMany:s=>this.emitMany(s),reject:s=>this.reject(s)};try{await Promise.resolve(e(n)),this.resolve()}catch(s){this.reject(s)}finally{n.emitOne=void 0,n.emitMany=void 0,n.reject=void 0}})}[Symbol.asyncIterator](){let e=0;return{next:async()=>{do{if(this._state===2)throw this._error;if(e<this._results.length)return{done:!1,value:this._results[e++]};if(this._state===1)return{done:!0,value:void 0};await rt.toPromise(this._onStateChanged.event)}while(!0)},return:async()=>(this._onReturn?.(),{done:!0,value:void 0})}}static map(e,t){return new Ic(async n=>{for await(const s of e)n.emitOne(t(s))})}map(e){return Ic.map(this,e)}static filter(e,t){return new Ic(async n=>{for await(const s of e)t(s)&&n.emitOne(s)})}filter(e){return Ic.filter(this,e)}static coalesce(e){return Ic.filter(e,t=>!!t)}coalesce(){return Ic.coalesce(this)}static async toPromise(e){const t=[];for await(const n of e)t.push(n);return t}toPromise(){return Ic.toPromise(this)}emitOne(e){this._state===0&&(this._results.push(e),this._onStateChanged.fire())}emitMany(e){this._state===0&&(this._results=this._results.concat(e),this._onStateChanged.fire())}resolve(){this._state===0&&(this._state=1,this._onStateChanged.fire())}reject(e){this._state===0&&(this._state=2,this._error=e,this._onStateChanged.fire())}};Ic.EMPTY=Ic.fromArray([]);let ed=Ic;class Nbt extends ed{constructor(e,t){super(t),this._source=e}cancel(){this._source.cancel()}}function Ibt(i){const e=new or,t=i(e.token);return new Nbt(e,async n=>{const s=e.token.onCancellationRequested(()=>{s.dispose(),e.dispose(),n.reject(new Wh)});try{for await(const r of t){if(e.token.isCancellationRequested)return;n.emitOne(r)}s.dispose(),e.dispose()}catch(r){s.dispose(),e.dispose(),n.reject(r)}})}const{entries:aTe,setPrototypeOf:lTe,isFrozen:Pbt,getPrototypeOf:Mbt,getOwnPropertyDescriptor:Rbt}=Object;let{freeze:rc,seal:hf,create:uTe}=Object,{apply:yQ,construct:vQ}=typeof Reflect<"u"&&Reflect;rc||(rc=function(e){return e}),hf||(hf=function(e){return e}),yQ||(yQ=function(e,t,n){return e.apply(t,n)}),vQ||(vQ=function(e,t){return new e(...t)});const G5=ih(Array.prototype.forEach),cTe=ih(Array.prototype.pop),UN=ih(Array.prototype.push),K5=ih(String.prototype.toLowerCase),CQ=ih(String.prototype.toString),dTe=ih(String.prototype.match),zN=ih(String.prototype.replace),Obt=ih(String.prototype.indexOf),Fbt=ih(String.prototype.trim),pp=ih(Object.prototype.hasOwnProperty),oc=ih(RegExp.prototype.test),jN=Bbt(TypeError);function ih(i){return function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),s=1;s<t;s++)n[s-1]=arguments[s];return yQ(i,e,n)}}function Bbt(i){return function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return vQ(i,t)}}function _s(i,e){let t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:K5;lTe&&lTe(i,null);let n=e.length;for(;n--;){let s=e[n];if(typeof s=="string"){const r=t(s);r!==s&&(Pbt(e)||(e[n]=r),s=r)}i[s]=!0}return i}function Vbt(i){for(let e=0;e<i.length;e++)pp(i,e)||(i[e]=null);return i}function NC(i){const e=uTe(null);for(const[t,n]of aTe(i))pp(i,t)&&(Array.isArray(n)?e[t]=Vbt(n):n&&typeof n=="object"&&n.constructor===Object?e[t]=NC(n):e[t]=n);return e}function qN(i,e){for(;i!==null;){const n=Rbt(i,e);if(n){if(n.get)return ih(n.get);if(typeof n.value=="function")return ih(n.value)}i=Mbt(i)}function t(){return null}return t}const hTe=rc(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),wQ=rc(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),SQ=rc(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),Wbt=rc(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),xQ=rc(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),Hbt=rc(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),fTe=rc(["#text"]),pTe=rc(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),DQ=rc(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),gTe=rc(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),Y5=rc(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),$bt=hf(/\{\{[\w\W]*|[\w\W]*\}\}/gm),Ubt=hf(/<%[\w\W]*|[\w\W]*%>/gm),zbt=hf(/\${[\w\W]*}/gm),jbt=hf(/^data-[\-\w.\u00B7-\uFFFF]/),qbt=hf(/^aria-[\-\w]+$/),mTe=hf(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Gbt=hf(/^(?:\w+script|data):/i),Kbt=hf(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),_Te=hf(/^html$/i),Ybt=hf(/^[a-z][.\w]*(-[.\w]+)+$/i);var bTe=Object.freeze({__proto__:null,MUSTACHE_EXPR:$bt,ERB_EXPR:Ubt,TMPLIT_EXPR:zbt,DATA_ATTR:jbt,ARIA_ATTR:qbt,IS_ALLOWED_URI:mTe,IS_SCRIPT_OR_DATA:Gbt,ATTR_WHITESPACE:Kbt,DOCTYPE_NAME:_Te,CUSTOM_ELEMENT:Ybt});const GN={element:1,text:3,progressingInstruction:7,comment:8,document:9},Xbt=function(){return typeof window>"u"?null:window},Qbt=function(e,t){if(typeof e!="object"||typeof e.createPolicy!="function")return null;let n=null;const s="data-tt-policy-suffix";t&&t.hasAttribute(s)&&(n=t.getAttribute(s));const r="dompurify"+(n?"#"+n:"");try{return e.createPolicy(r,{createHTML(o){return o},createScriptURL(o){return o}})}catch{return console.warn("TrustedTypes policy "+r+" could not be created."),null}};function yTe(){let i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Xbt();const e=Zt=>yTe(Zt);if(e.version="3.1.7",e.removed=[],!i||!i.document||i.document.nodeType!==GN.document)return e.isSupported=!1,e;let{document:t}=i;const n=t,s=n.currentScript,{DocumentFragment:r,HTMLTemplateElement:o,Node:a,Element:l,NodeFilter:u,NamedNodeMap:c=i.NamedNodeMap||i.MozNamedAttrMap,HTMLFormElement:d,DOMParser:h,trustedTypes:f}=i,g=l.prototype,b=qN(g,"cloneNode"),y=qN(g,"remove"),S=qN(g,"nextSibling"),x=qN(g,"childNodes"),E=qN(g,"parentNode");if(typeof o=="function"){const Zt=t.createElement("template");Zt.content&&Zt.content.ownerDocument&&(t=Zt.content.ownerDocument)}let k,A="";const{implementation:I,createNodeIterator:M,createDocumentFragment:B,getElementsByTagName:F}=t,{importNode:G}=n;let q={};e.isSupported=typeof aTe=="function"&&typeof E=="function"&&I&&I.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:ee,ERB_EXPR:Z,TMPLIT_EXPR:K,DATA_ATTR:oe,ARIA_ATTR:Y,IS_SCRIPT_OR_DATA:de,ATTR_WHITESPACE:ae,CUSTOM_ELEMENT:he}=bTe;let{IS_ALLOWED_URI:Ce}=bTe,le=null;const J=_s({},[...hTe,...wQ,...SQ,...xQ,...fTe]);let Ee=null;const we=_s({},[...pTe,...DQ,...gTe,...Y5]);let Ae=Object.seal(uTe(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),Ue=null,ze=null,$e=!0,Dt=!0,$t=!1,ii=!0,di=!1,Oe=!0,ke=!1,pt=!1,Me=!1,ge=!1,mt=!1,At=!1,Kt=!0,Et=!1;const Ve="user-content-";let ft=!0,bt=!1,Yt={},ki=null;const zi=_s({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let Xt=null;const Ci=_s({},["audio","video","img","source","image","track"]);let mi=null;const _i=_s({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Mi="http://www.w3.org/1998/Math/MathML",Ei="http://www.w3.org/2000/svg",ai="http://www.w3.org/1999/xhtml";let Wn=ai,Mn=!1,hs=null;const Wi=_s({},[Mi,Ei,ai],CQ);let Pr=null;const qs=["application/xhtml+xml","text/html"],aa="text/html";let Kn=null,ir=null;const ji=t.createElement("form"),an=function(Pe){return Pe instanceof RegExp||Pe instanceof Function},es=function(){let Pe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(ir&&ir===Pe)){if((!Pe||typeof Pe!="object")&&(Pe={}),Pe=NC(Pe),Pr=qs.indexOf(Pe.PARSER_MEDIA_TYPE)===-1?aa:Pe.PARSER_MEDIA_TYPE,Kn=Pr==="application/xhtml+xml"?CQ:K5,le=pp(Pe,"ALLOWED_TAGS")?_s({},Pe.ALLOWED_TAGS,Kn):J,Ee=pp(Pe,"ALLOWED_ATTR")?_s({},Pe.ALLOWED_ATTR,Kn):we,hs=pp(Pe,"ALLOWED_NAMESPACES")?_s({},Pe.ALLOWED_NAMESPACES,CQ):Wi,mi=pp(Pe,"ADD_URI_SAFE_ATTR")?_s(NC(_i),Pe.ADD_URI_SAFE_ATTR,Kn):_i,Xt=pp(Pe,"ADD_DATA_URI_TAGS")?_s(NC(Ci),Pe.ADD_DATA_URI_TAGS,Kn):Ci,ki=pp(Pe,"FORBID_CONTENTS")?_s({},Pe.FORBID_CONTENTS,Kn):zi,Ue=pp(Pe,"FORBID_TAGS")?_s({},Pe.FORBID_TAGS,Kn):{},ze=pp(Pe,"FORBID_ATTR")?_s({},Pe.FORBID_ATTR,Kn):{},Yt=pp(Pe,"USE_PROFILES")?Pe.USE_PROFILES:!1,$e=Pe.ALLOW_ARIA_ATTR!==!1,Dt=Pe.ALLOW_DATA_ATTR!==!1,$t=Pe.ALLOW_UNKNOWN_PROTOCOLS||!1,ii=Pe.ALLOW_SELF_CLOSE_IN_ATTR!==!1,di=Pe.SAFE_FOR_TEMPLATES||!1,Oe=Pe.SAFE_FOR_XML!==!1,ke=Pe.WHOLE_DOCUMENT||!1,ge=Pe.RETURN_DOM||!1,mt=Pe.RETURN_DOM_FRAGMENT||!1,At=Pe.RETURN_TRUSTED_TYPE||!1,Me=Pe.FORCE_BODY||!1,Kt=Pe.SANITIZE_DOM!==!1,Et=Pe.SANITIZE_NAMED_PROPS||!1,ft=Pe.KEEP_CONTENT!==!1,bt=Pe.IN_PLACE||!1,Ce=Pe.ALLOWED_URI_REGEXP||mTe,Wn=Pe.NAMESPACE||ai,Ae=Pe.CUSTOM_ELEMENT_HANDLING||{},Pe.CUSTOM_ELEMENT_HANDLING&&an(Pe.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(Ae.tagNameCheck=Pe.CUSTOM_ELEMENT_HANDLING.tagNameCheck),Pe.CUSTOM_ELEMENT_HANDLING&&an(Pe.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(Ae.attributeNameCheck=Pe.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),Pe.CUSTOM_ELEMENT_HANDLING&&typeof Pe.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(Ae.allowCustomizedBuiltInElements=Pe.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),di&&(Dt=!1),mt&&(ge=!0),Yt&&(le=_s({},fTe),Ee=[],Yt.html===!0&&(_s(le,hTe),_s(Ee,pTe)),Yt.svg===!0&&(_s(le,wQ),_s(Ee,DQ),_s(Ee,Y5)),Yt.svgFilters===!0&&(_s(le,SQ),_s(Ee,DQ),_s(Ee,Y5)),Yt.mathMl===!0&&(_s(le,xQ),_s(Ee,gTe),_s(Ee,Y5))),Pe.ADD_TAGS&&(le===J&&(le=NC(le)),_s(le,Pe.ADD_TAGS,Kn)),Pe.ADD_ATTR&&(Ee===we&&(Ee=NC(Ee)),_s(Ee,Pe.ADD_ATTR,Kn)),Pe.ADD_URI_SAFE_ATTR&&_s(mi,Pe.ADD_URI_SAFE_ATTR,Kn),Pe.FORBID_CONTENTS&&(ki===zi&&(ki=NC(ki)),_s(ki,Pe.FORBID_CONTENTS,Kn)),ft&&(le["#text"]=!0),ke&&_s(le,["html","head","body"]),le.table&&(_s(le,["tbody"]),delete Ue.tbody),Pe.TRUSTED_TYPES_POLICY){if(typeof Pe.TRUSTED_TYPES_POLICY.createHTML!="function")throw jN('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof Pe.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw jN('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');k=Pe.TRUSTED_TYPES_POLICY,A=k.createHTML("")}else k===void 0&&(k=Qbt(f,s)),k!==null&&typeof A=="string"&&(A=k.createHTML(""));rc&&rc(Pe),ir=Pe}},ti=_s({},["mi","mo","mn","ms","mtext"]),re=_s({},["annotation-xml"]),ue=_s({},["title","style","font","a","script"]),pe=_s({},[...wQ,...SQ,...Wbt]),Se=_s({},[...xQ,...Hbt]),Ne=function(Pe){let Bt=E(Pe);(!Bt||!Bt.tagName)&&(Bt={namespaceURI:Wn,tagName:"template"});const He=K5(Pe.tagName),fs=K5(Bt.tagName);return hs[Pe.namespaceURI]?Pe.namespaceURI===Ei?Bt.namespaceURI===ai?He==="svg":Bt.namespaceURI===Mi?He==="svg"&&(fs==="annotation-xml"||ti[fs]):!!pe[He]:Pe.namespaceURI===Mi?Bt.namespaceURI===ai?He==="math":Bt.namespaceURI===Ei?He==="math"&&re[fs]:!!Se[He]:Pe.namespaceURI===ai?Bt.namespaceURI===Ei&&!re[fs]||Bt.namespaceURI===Mi&&!ti[fs]?!1:!Se[He]&&(ue[He]||!pe[He]):!!(Pr==="application/xhtml+xml"&&hs[Pe.namespaceURI]):!1},Ke=function(Pe){UN(e.removed,{element:Pe});try{E(Pe).removeChild(Pe)}catch{y(Pe)}},ot=function(Pe,Bt){try{UN(e.removed,{attribute:Bt.getAttributeNode(Pe),from:Bt})}catch{UN(e.removed,{attribute:null,from:Bt})}if(Bt.removeAttribute(Pe),Pe==="is"&&!Ee[Pe])if(ge||mt)try{Ke(Bt)}catch{}else try{Bt.setAttribute(Pe,"")}catch{}},Wt=function(Pe){let Bt=null,He=null;if(Me)Pe="<remove></remove>"+Pe;else{const nr=dTe(Pe,/^[\r\n\t ]+/);He=nr&&nr[0]}Pr==="application/xhtml+xml"&&Wn===ai&&(Pe='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+Pe+"</body></html>");const fs=k?k.createHTML(Pe):Pe;if(Wn===ai)try{Bt=new h().parseFromString(fs,Pr)}catch{}if(!Bt||!Bt.documentElement){Bt=I.createDocument(Wn,"template",null);try{Bt.documentElement.innerHTML=Mn?A:fs}catch{}}const Gs=Bt.body||Bt.documentElement;return Pe&&He&&Gs.insertBefore(t.createTextNode(He),Gs.childNodes[0]||null),Wn===ai?F.call(Bt,ke?"html":"body")[0]:ke?Bt.documentElement:Gs},Qt=function(Pe){return M.call(Pe.ownerDocument||Pe,Pe,u.SHOW_ELEMENT|u.SHOW_COMMENT|u.SHOW_TEXT|u.SHOW_PROCESSING_INSTRUCTION|u.SHOW_CDATA_SECTION,null)},hi=function(Pe){return Pe instanceof d&&(typeof Pe.nodeName!="string"||typeof Pe.textContent!="string"||typeof Pe.removeChild!="function"||!(Pe.attributes instanceof c)||typeof Pe.removeAttribute!="function"||typeof Pe.setAttribute!="function"||typeof Pe.namespaceURI!="string"||typeof Pe.insertBefore!="function"||typeof Pe.hasChildNodes!="function")},si=function(Pe){return typeof a=="function"&&Pe instanceof a},wi=function(Pe,Bt,He){q[Pe]&&G5(q[Pe],fs=>{fs.call(e,Bt,He,ir)})},Ot=function(Pe){let Bt=null;if(wi("beforeSanitizeElements",Pe,null),hi(Pe))return Ke(Pe),!0;const He=Kn(Pe.nodeName);if(wi("uponSanitizeElement",Pe,{tagName:He,allowedTags:le}),Pe.hasChildNodes()&&!si(Pe.firstElementChild)&&oc(/<[/\w]/g,Pe.innerHTML)&&oc(/<[/\w]/g,Pe.textContent)||Pe.nodeType===GN.progressingInstruction||Oe&&Pe.nodeType===GN.comment&&oc(/<[/\w]/g,Pe.data))return Ke(Pe),!0;if(!le[He]||Ue[He]){if(!Ue[He]&&Fs(He)&&(Ae.tagNameCheck instanceof RegExp&&oc(Ae.tagNameCheck,He)||Ae.tagNameCheck instanceof Function&&Ae.tagNameCheck(He)))return!1;if(ft&&!ki[He]){const fs=E(Pe)||Pe.parentNode,Gs=x(Pe)||Pe.childNodes;if(Gs&&fs){const nr=Gs.length;for(let rs=nr-1;rs>=0;--rs){const Wl=b(Gs[rs],!0);Wl.__removalCount=(Pe.__removalCount||0)+1,fs.insertBefore(Wl,S(Pe))}}}return Ke(Pe),!0}return Pe instanceof l&&!Ne(Pe)||(He==="noscript"||He==="noembed"||He==="noframes")&&oc(/<\/no(script|embed|frames)/i,Pe.innerHTML)?(Ke(Pe),!0):(di&&Pe.nodeType===GN.text&&(Bt=Pe.textContent,G5([ee,Z,K],fs=>{Bt=zN(Bt,fs," ")}),Pe.textContent!==Bt&&(UN(e.removed,{element:Pe.cloneNode()}),Pe.textContent=Bt)),wi("afterSanitizeElements",Pe,null),!1)},Cn=function(Pe,Bt,He){if(Kt&&(Bt==="id"||Bt==="name")&&(He in t||He in ji))return!1;if(!(Dt&&!ze[Bt]&&oc(oe,Bt))){if(!($e&&oc(Y,Bt))){if(!Ee[Bt]||ze[Bt]){if(!(Fs(Pe)&&(Ae.tagNameCheck instanceof RegExp&&oc(Ae.tagNameCheck,Pe)||Ae.tagNameCheck instanceof Function&&Ae.tagNameCheck(Pe))&&(Ae.attributeNameCheck instanceof RegExp&&oc(Ae.attributeNameCheck,Bt)||Ae.attributeNameCheck instanceof Function&&Ae.attributeNameCheck(Bt))||Bt==="is"&&Ae.allowCustomizedBuiltInElements&&(Ae.tagNameCheck instanceof RegExp&&oc(Ae.tagNameCheck,He)||Ae.tagNameCheck instanceof Function&&Ae.tagNameCheck(He))))return!1}else if(!mi[Bt]){if(!oc(Ce,zN(He,ae,""))){if(!((Bt==="src"||Bt==="xlink:href"||Bt==="href")&&Pe!=="script"&&Obt(He,"data:")===0&&Xt[Pe])){if(!($t&&!oc(de,zN(He,ae,"")))){if(He)return!1}}}}}}return!0},Fs=function(Pe){return Pe!=="annotation-xml"&&dTe(Pe,he)},to=function(Pe){wi("beforeSanitizeAttributes",Pe,null);const{attributes:Bt}=Pe;if(!Bt)return;const He={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:Ee};let fs=Bt.length;for(;fs--;){const Gs=Bt[fs],{name:nr,namespaceURI:rs,value:Wl}=Gs,Eh=Kn(nr);let sr=nr==="value"?Wl:Fbt(Wl);if(He.attrName=Eh,He.attrValue=sr,He.keepAttr=!0,He.forceKeepAttr=void 0,wi("uponSanitizeAttribute",Pe,He),sr=He.attrValue,He.forceKeepAttr||(ot(nr,Pe),!He.keepAttr))continue;if(!ii&&oc(/\/>/i,sr)){ot(nr,Pe);continue}di&&G5([ee,Z,K],rb=>{sr=zN(sr,rb," ")});const rr=Kn(Pe.nodeName);if(Cn(rr,Eh,sr)){if(Et&&(Eh==="id"||Eh==="name")&&(ot(nr,Pe),sr=Ve+sr),Oe&&oc(/((--!?|])>)|<\/(style|title)/i,sr)){ot(nr,Pe);continue}if(k&&typeof f=="object"&&typeof f.getAttributeType=="function"&&!rs)switch(f.getAttributeType(rr,Eh)){case"TrustedHTML":{sr=k.createHTML(sr);break}case"TrustedScriptURL":{sr=k.createScriptURL(sr);break}}try{rs?Pe.setAttributeNS(rs,nr,sr):Pe.setAttribute(nr,sr),hi(Pe)?Ke(Pe):cTe(e.removed)}catch{}}}wi("afterSanitizeAttributes",Pe,null)},vu=function Zt(Pe){let Bt=null;const He=Qt(Pe);for(wi("beforeSanitizeShadowDOM",Pe,null);Bt=He.nextNode();)wi("uponSanitizeShadowNode",Bt,null),!Ot(Bt)&&(Bt.content instanceof r&&Zt(Bt.content),to(Bt));wi("afterSanitizeShadowDOM",Pe,null)};return e.sanitize=function(Zt){let Pe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Bt=null,He=null,fs=null,Gs=null;if(Mn=!Zt,Mn&&(Zt="<!-->"),typeof Zt!="string"&&!si(Zt))if(typeof Zt.toString=="function"){if(Zt=Zt.toString(),typeof Zt!="string")throw jN("dirty is not a string, aborting")}else throw jN("toString is not a function");if(!e.isSupported)return Zt;if(pt||es(Pe),e.removed=[],typeof Zt=="string"&&(bt=!1),bt){if(Zt.nodeName){const Wl=Kn(Zt.nodeName);if(!le[Wl]||Ue[Wl])throw jN("root node is forbidden and cannot be sanitized in-place")}}else if(Zt instanceof a)Bt=Wt("<!---->"),He=Bt.ownerDocument.importNode(Zt,!0),He.nodeType===GN.element&&He.nodeName==="BODY"||He.nodeName==="HTML"?Bt=He:Bt.appendChild(He);else{if(!ge&&!di&&!ke&&Zt.indexOf("<")===-1)return k&&At?k.createHTML(Zt):Zt;if(Bt=Wt(Zt),!Bt)return ge?null:At?A:""}Bt&&Me&&Ke(Bt.firstChild);const nr=Qt(bt?Zt:Bt);for(;fs=nr.nextNode();)Ot(fs)||(fs.content instanceof r&&vu(fs.content),to(fs));if(bt)return Zt;if(ge){if(mt)for(Gs=B.call(Bt.ownerDocument);Bt.firstChild;)Gs.appendChild(Bt.firstChild);else Gs=Bt;return(Ee.shadowroot||Ee.shadowrootmode)&&(Gs=G.call(n,Gs,!0)),Gs}let rs=ke?Bt.outerHTML:Bt.innerHTML;return ke&&le["!doctype"]&&Bt.ownerDocument&&Bt.ownerDocument.doctype&&Bt.ownerDocument.doctype.name&&oc(_Te,Bt.ownerDocument.doctype.name)&&(rs="<!DOCTYPE "+Bt.ownerDocument.doctype.name+`>
|
|
613
516
|
`+rs),di&&G5([ee,Z,K],Wl=>{rs=zN(rs,Wl," ")}),k&&At?k.createHTML(rs):rs},e.setConfig=function(){let Zt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};es(Zt),pt=!0},e.clearConfig=function(){ir=null,pt=!1},e.isValidAttribute=function(Zt,Pe,Bt){ir||es({});const He=Kn(Zt),fs=Kn(Pe);return Cn(He,fs,Bt)},e.addHook=function(Zt,Pe){typeof Pe=="function"&&(q[Zt]=q[Zt]||[],UN(q[Zt],Pe))},e.removeHook=function(Zt){if(q[Zt])return cTe(q[Zt])},e.removeHooks=function(Zt){q[Zt]&&(q[Zt]=[])},e.removeAllHooks=function(){q={}},e}var jg=yTe();jg.version,jg.isSupported;const vTe=jg.sanitize;jg.setConfig,jg.clearConfig,jg.isValidAttribute;const CTe=jg.addHook,wTe=jg.removeHook;jg.removeHooks,jg.removeAllHooks;function STe(i){return i}class Zbt{constructor(e,t){this.lastCache=void 0,this.lastArgKey=void 0,typeof e=="function"?(this._fn=e,this._computeKey=STe):(this._fn=t,this._computeKey=e.getCacheKey)}get(e){const t=this._computeKey(e);return this.lastArgKey!==t&&(this.lastArgKey=t,this.lastCache=this._fn(e)),this.lastCache}}class xTe{get cachedValues(){return this._map}constructor(e,t){this._map=new Map,this._map2=new Map,typeof e=="function"?(this._fn=e,this._computeKey=STe):(this._fn=t,this._computeKey=e.getCacheKey)}get(e){const t=this._computeKey(e);if(this._map2.has(t))return this._map2.get(t);const n=this._fn(e);return this._map.set(e,n),this._map2.set(t,n),n}}class gp{constructor(e){this.executor=e,this._didRun=!1}get value(){if(!this._didRun)try{this._value=this.executor()}catch(e){this._error=e}finally{this._didRun=!0}if(this._error)throw this._error;return this._value}get rawValue(){return this._value}}function DTe(i){return!i||typeof i!="string"?!0:i.trim().length===0}const Jbt=/{(\d+)}/g;function IC(i,...e){return e.length===0?i:i.replace(Jbt,function(t,n){const s=parseInt(n,10);return isNaN(s)||s<0||s>=e.length?t:e[s]})}function e1t(i){return i.replace(/[<>"'&]/g,e=>{switch(e){case"<":return"<";case">":return">";case'"':return""";case"'":return"'";case"&":return"&"}return e})}function KN(i){return i.replace(/[<>&]/g,function(e){switch(e){case"<":return"<";case">":return">";case"&":return"&";default:return e}})}function td(i){return i.replace(/[\\\{\}\*\+\?\|\^\$\.\[\]\(\)]/g,"\\$&")}function t1t(i,e=" "){const t=YN(i,e);return ETe(t,e)}function YN(i,e){if(!i||!e)return i;const t=e.length;if(t===0||i.length===0)return i;let n=0;for(;i.indexOf(e,n)===n;)n=n+t;return i.substring(n)}function ETe(i,e){if(!i||!e)return i;const t=e.length,n=i.length;if(t===0||n===0)return i;let s=n,r=-1;for(;r=i.lastIndexOf(e,s-1),!(r===-1||r+t!==s);){if(r===0)return"";s=r}return i.substring(0,s)}function i1t(i){return i.replace(/[\-\\\{\}\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&").replace(/[\*]/g,".*")}function n1t(i){return i.replace(/\*/g,"")}function TTe(i,e,t={}){if(!i)throw new Error("Cannot create regex from empty string");e||(i=td(i)),t.wholeWord&&(/\B/.test(i.charAt(0))||(i="\\b"+i),/\B/.test(i.charAt(i.length-1))||(i=i+"\\b"));let n="";return t.global&&(n+="g"),t.matchCase||(n+="i"),t.multiline&&(n+="m"),t.unicode&&(n+="u"),new RegExp(i,n)}function s1t(i){return i.source==="^"||i.source==="^$"||i.source==="$"||i.source==="^\\s*$"?!1:!!(i.exec("")&&i.lastIndex===0)}function qg(i){return i.split(/\r\n|\r|\n/)}function r1t(i){const e=[],t=i.split(/(\r\n|\r|\n)/);for(let n=0;n<Math.ceil(t.length/2);n++)e.push(t[2*n]+(t[2*n+1]??""));return e}function Al(i){for(let e=0,t=i.length;e<t;e++){const n=i.charCodeAt(e);if(n!==32&&n!==9)return e}return-1}function ds(i,e=0,t=i.length){for(let n=e;n<t;n++){const s=i.charCodeAt(n);if(s!==32&&s!==9)return i.substring(e,n)}return i.substring(e,t)}function mp(i,e=i.length-1){for(let t=e;t>=0;t--){const n=i.charCodeAt(t);if(n!==32&&n!==9)return t}return-1}function XN(i,e){return i<e?-1:i>e?1:0}function EQ(i,e,t=0,n=i.length,s=0,r=e.length){for(;t<n&&s<r;t++,s++){const l=i.charCodeAt(t),u=e.charCodeAt(s);if(l<u)return-1;if(l>u)return 1}const o=n-t,a=r-s;return o<a?-1:o>a?1:0}function TQ(i,e){return QN(i,e,0,i.length,0,e.length)}function QN(i,e,t=0,n=i.length,s=0,r=e.length){for(;t<n&&s<r;t++,s++){let l=i.charCodeAt(t),u=e.charCodeAt(s);if(l===u)continue;if(l>=128||u>=128)return EQ(i.toLowerCase(),e.toLowerCase(),t,n,s,r);u1(l)&&(l-=32),u1(u)&&(u-=32);const c=l-u;if(c!==0)return c}const o=n-t,a=r-s;return o<a?-1:o>a?1:0}function X5(i){return i>=48&&i<=57}function u1(i){return i>=97&&i<=122}function Gg(i){return i>=65&&i<=90}function OE(i,e){return i.length===e.length&&QN(i,e)===0}function kQ(i,e){const t=e.length;return e.length>i.length?!1:QN(i,e,0,t)===0}function c1(i,e){const t=Math.min(i.length,e.length);let n;for(n=0;n<t;n++)if(i.charCodeAt(n)!==e.charCodeAt(n))return n;return t}function Q5(i,e){const t=Math.min(i.length,e.length);let n;const s=i.length-1,r=e.length-1;for(n=0;n<t;n++)if(i.charCodeAt(s-n)!==e.charCodeAt(r-n))return n;return t}function Vo(i){return 55296<=i&&i<=56319}function PC(i){return 56320<=i&&i<=57343}function LQ(i,e){return(i-55296<<10)+(e-56320)+65536}function Z5(i,e,t){const n=i.charCodeAt(t);if(Vo(n)&&t+1<e){const s=i.charCodeAt(t+1);if(PC(s))return LQ(n,s)}return n}function o1t(i,e){const t=i.charCodeAt(e-1);if(PC(t)&&e>1){const n=i.charCodeAt(e-2);if(Vo(n))return LQ(n,t)}return t}class AQ{get offset(){return this._offset}constructor(e,t=0){this._str=e,this._len=e.length,this._offset=t}setOffset(e){this._offset=e}prevCodePoint(){const e=o1t(this._str,this._offset);return this._offset-=e>=65536?2:1,e}nextCodePoint(){const e=Z5(this._str,this._len,this._offset);return this._offset+=e>=65536?2:1,e}eol(){return this._offset>=this._len}}class J5{get offset(){return this._iterator.offset}constructor(e,t=0){this._iterator=new AQ(e,t)}nextGraphemeLength(){const e=e6.getInstance(),t=this._iterator,n=t.offset;let s=e.getGraphemeBreakType(t.nextCodePoint());for(;!t.eol();){const r=t.offset,o=e.getGraphemeBreakType(t.nextCodePoint());if(ITe(s,o)){t.setOffset(r);break}s=o}return t.offset-n}prevGraphemeLength(){const e=e6.getInstance(),t=this._iterator,n=t.offset;let s=e.getGraphemeBreakType(t.prevCodePoint());for(;t.offset>0;){const r=t.offset,o=e.getGraphemeBreakType(t.prevCodePoint());if(ITe(o,s)){t.setOffset(r);break}s=o}return n-t.offset}eol(){return this._iterator.eol()}}function NQ(i,e){return new J5(i,e).nextGraphemeLength()}function kTe(i,e){return new J5(i,e).prevGraphemeLength()}function a1t(i,e){e>0&&PC(i.charCodeAt(e))&&e--;const t=e+NQ(i,e);return[t-kTe(i,t),t]}let IQ;function l1t(){return/(?:[\u05BE\u05C0\u05C3\u05C6\u05D0-\u05F4\u0608\u060B\u060D\u061B-\u064A\u066D-\u066F\u0671-\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u0710\u0712-\u072F\u074D-\u07A5\u07B1-\u07EA\u07F4\u07F5\u07FA\u07FE-\u0815\u081A\u0824\u0828\u0830-\u0858\u085E-\u088E\u08A0-\u08C9\u200F\uFB1D\uFB1F-\uFB28\uFB2A-\uFD3D\uFD50-\uFDC7\uFDF0-\uFDFC\uFE70-\uFEFC]|\uD802[\uDC00-\uDD1B\uDD20-\uDE00\uDE10-\uDE35\uDE40-\uDEE4\uDEEB-\uDF35\uDF40-\uDFFF]|\uD803[\uDC00-\uDD23\uDE80-\uDEA9\uDEAD-\uDF45\uDF51-\uDF81\uDF86-\uDFF6]|\uD83A[\uDC00-\uDCCF\uDD00-\uDD43\uDD4B-\uDFFF]|\uD83B[\uDC00-\uDEBB])/}function FE(i){return IQ||(IQ=l1t()),IQ.test(i)}const u1t=/^[\t\n\r\x20-\x7E]*$/;function ZN(i){return u1t.test(i)}const LTe=/[\u2028\u2029]/;function ATe(i){return LTe.test(i)}function d1(i){return i>=11904&&i<=55215||i>=63744&&i<=64255||i>=65281&&i<=65374}function PQ(i){return i>=127462&&i<=127487||i===8986||i===8987||i===9200||i===9203||i>=9728&&i<=10175||i===11088||i===11093||i>=127744&&i<=128591||i>=128640&&i<=128764||i>=128992&&i<=129008||i>=129280&&i<=129535||i>=129648&&i<=129782}const c1t="\uFEFF";function MQ(i){return!!(i&&i.length>0&&i.charCodeAt(0)===65279)}function d1t(i,e=!1){return i?(e&&(i=i.replace(/\\./g,"")),i.toLowerCase()!==i):!1}function NTe(i){return i=i%52,i<26?String.fromCharCode(97+i):String.fromCharCode(65+i-26)}function ITe(i,e){return i===0?e!==5&&e!==7:i===2&&e===3?!1:i===4||i===2||i===3||e===4||e===2||e===3?!0:!(i===8&&(e===8||e===9||e===11||e===12)||(i===11||i===9)&&(e===9||e===10)||(i===12||i===10)&&e===10||e===5||e===13||e===7||i===1||i===13&&e===14||i===6&&e===6)}const OS=class OS{static getInstance(){return OS._INSTANCE||(OS._INSTANCE=new OS),OS._INSTANCE}constructor(){this._data=h1t()}getGraphemeBreakType(e){if(e<32)return e===10?3:e===13?2:4;if(e<127)return 0;const t=this._data,n=t.length/3;let s=1;for(;s<=n;)if(e<t[3*s])s=2*s;else if(e>t[3*s+1])s=2*s+1;else return t[3*s+2];return 0}};OS._INSTANCE=null;let e6=OS;function h1t(){return JSON.parse("[0,0,0,51229,51255,12,44061,44087,12,127462,127487,6,7083,7085,5,47645,47671,12,54813,54839,12,128678,128678,14,3270,3270,5,9919,9923,14,45853,45879,12,49437,49463,12,53021,53047,12,71216,71218,7,128398,128399,14,129360,129374,14,2519,2519,5,4448,4519,9,9742,9742,14,12336,12336,14,44957,44983,12,46749,46775,12,48541,48567,12,50333,50359,12,52125,52151,12,53917,53943,12,69888,69890,5,73018,73018,5,127990,127990,14,128558,128559,14,128759,128760,14,129653,129655,14,2027,2035,5,2891,2892,7,3761,3761,5,6683,6683,5,8293,8293,4,9825,9826,14,9999,9999,14,43452,43453,5,44509,44535,12,45405,45431,12,46301,46327,12,47197,47223,12,48093,48119,12,48989,49015,12,49885,49911,12,50781,50807,12,51677,51703,12,52573,52599,12,53469,53495,12,54365,54391,12,65279,65279,4,70471,70472,7,72145,72147,7,119173,119179,5,127799,127818,14,128240,128244,14,128512,128512,14,128652,128652,14,128721,128722,14,129292,129292,14,129445,129450,14,129734,129743,14,1476,1477,5,2366,2368,7,2750,2752,7,3076,3076,5,3415,3415,5,4141,4144,5,6109,6109,5,6964,6964,5,7394,7400,5,9197,9198,14,9770,9770,14,9877,9877,14,9968,9969,14,10084,10084,14,43052,43052,5,43713,43713,5,44285,44311,12,44733,44759,12,45181,45207,12,45629,45655,12,46077,46103,12,46525,46551,12,46973,46999,12,47421,47447,12,47869,47895,12,48317,48343,12,48765,48791,12,49213,49239,12,49661,49687,12,50109,50135,12,50557,50583,12,51005,51031,12,51453,51479,12,51901,51927,12,52349,52375,12,52797,52823,12,53245,53271,12,53693,53719,12,54141,54167,12,54589,54615,12,55037,55063,12,69506,69509,5,70191,70193,5,70841,70841,7,71463,71467,5,72330,72342,5,94031,94031,5,123628,123631,5,127763,127765,14,127941,127941,14,128043,128062,14,128302,128317,14,128465,128467,14,128539,128539,14,128640,128640,14,128662,128662,14,128703,128703,14,128745,128745,14,129004,129007,14,129329,129330,14,129402,129402,14,129483,129483,14,129686,129704,14,130048,131069,14,173,173,4,1757,1757,1,2200,2207,5,2434,2435,7,2631,2632,5,2817,2817,5,3008,3008,5,3201,3201,5,3387,3388,5,3542,3542,5,3902,3903,7,4190,4192,5,6002,6003,5,6439,6440,5,6765,6770,7,7019,7027,5,7154,7155,7,8205,8205,13,8505,8505,14,9654,9654,14,9757,9757,14,9792,9792,14,9852,9853,14,9890,9894,14,9937,9937,14,9981,9981,14,10035,10036,14,11035,11036,14,42654,42655,5,43346,43347,7,43587,43587,5,44006,44007,7,44173,44199,12,44397,44423,12,44621,44647,12,44845,44871,12,45069,45095,12,45293,45319,12,45517,45543,12,45741,45767,12,45965,45991,12,46189,46215,12,46413,46439,12,46637,46663,12,46861,46887,12,47085,47111,12,47309,47335,12,47533,47559,12,47757,47783,12,47981,48007,12,48205,48231,12,48429,48455,12,48653,48679,12,48877,48903,12,49101,49127,12,49325,49351,12,49549,49575,12,49773,49799,12,49997,50023,12,50221,50247,12,50445,50471,12,50669,50695,12,50893,50919,12,51117,51143,12,51341,51367,12,51565,51591,12,51789,51815,12,52013,52039,12,52237,52263,12,52461,52487,12,52685,52711,12,52909,52935,12,53133,53159,12,53357,53383,12,53581,53607,12,53805,53831,12,54029,54055,12,54253,54279,12,54477,54503,12,54701,54727,12,54925,54951,12,55149,55175,12,68101,68102,5,69762,69762,7,70067,70069,7,70371,70378,5,70720,70721,7,71087,71087,5,71341,71341,5,71995,71996,5,72249,72249,7,72850,72871,5,73109,73109,5,118576,118598,5,121505,121519,5,127245,127247,14,127568,127569,14,127777,127777,14,127872,127891,14,127956,127967,14,128015,128016,14,128110,128172,14,128259,128259,14,128367,128368,14,128424,128424,14,128488,128488,14,128530,128532,14,128550,128551,14,128566,128566,14,128647,128647,14,128656,128656,14,128667,128673,14,128691,128693,14,128715,128715,14,128728,128732,14,128752,128752,14,128765,128767,14,129096,129103,14,129311,129311,14,129344,129349,14,129394,129394,14,129413,129425,14,129466,129471,14,129511,129535,14,129664,129666,14,129719,129722,14,129760,129767,14,917536,917631,5,13,13,2,1160,1161,5,1564,1564,4,1807,1807,1,2085,2087,5,2307,2307,7,2382,2383,7,2497,2500,5,2563,2563,7,2677,2677,5,2763,2764,7,2879,2879,5,2914,2915,5,3021,3021,5,3142,3144,5,3263,3263,5,3285,3286,5,3398,3400,7,3530,3530,5,3633,3633,5,3864,3865,5,3974,3975,5,4155,4156,7,4229,4230,5,5909,5909,7,6078,6085,7,6277,6278,5,6451,6456,7,6744,6750,5,6846,6846,5,6972,6972,5,7074,7077,5,7146,7148,7,7222,7223,5,7416,7417,5,8234,8238,4,8417,8417,5,9000,9000,14,9203,9203,14,9730,9731,14,9748,9749,14,9762,9763,14,9776,9783,14,9800,9811,14,9831,9831,14,9872,9873,14,9882,9882,14,9900,9903,14,9929,9933,14,9941,9960,14,9974,9974,14,9989,9989,14,10006,10006,14,10062,10062,14,10160,10160,14,11647,11647,5,12953,12953,14,43019,43019,5,43232,43249,5,43443,43443,5,43567,43568,7,43696,43696,5,43765,43765,7,44013,44013,5,44117,44143,12,44229,44255,12,44341,44367,12,44453,44479,12,44565,44591,12,44677,44703,12,44789,44815,12,44901,44927,12,45013,45039,12,45125,45151,12,45237,45263,12,45349,45375,12,45461,45487,12,45573,45599,12,45685,45711,12,45797,45823,12,45909,45935,12,46021,46047,12,46133,46159,12,46245,46271,12,46357,46383,12,46469,46495,12,46581,46607,12,46693,46719,12,46805,46831,12,46917,46943,12,47029,47055,12,47141,47167,12,47253,47279,12,47365,47391,12,47477,47503,12,47589,47615,12,47701,47727,12,47813,47839,12,47925,47951,12,48037,48063,12,48149,48175,12,48261,48287,12,48373,48399,12,48485,48511,12,48597,48623,12,48709,48735,12,48821,48847,12,48933,48959,12,49045,49071,12,49157,49183,12,49269,49295,12,49381,49407,12,49493,49519,12,49605,49631,12,49717,49743,12,49829,49855,12,49941,49967,12,50053,50079,12,50165,50191,12,50277,50303,12,50389,50415,12,50501,50527,12,50613,50639,12,50725,50751,12,50837,50863,12,50949,50975,12,51061,51087,12,51173,51199,12,51285,51311,12,51397,51423,12,51509,51535,12,51621,51647,12,51733,51759,12,51845,51871,12,51957,51983,12,52069,52095,12,52181,52207,12,52293,52319,12,52405,52431,12,52517,52543,12,52629,52655,12,52741,52767,12,52853,52879,12,52965,52991,12,53077,53103,12,53189,53215,12,53301,53327,12,53413,53439,12,53525,53551,12,53637,53663,12,53749,53775,12,53861,53887,12,53973,53999,12,54085,54111,12,54197,54223,12,54309,54335,12,54421,54447,12,54533,54559,12,54645,54671,12,54757,54783,12,54869,54895,12,54981,55007,12,55093,55119,12,55243,55291,10,66045,66045,5,68325,68326,5,69688,69702,5,69817,69818,5,69957,69958,7,70089,70092,5,70198,70199,5,70462,70462,5,70502,70508,5,70750,70750,5,70846,70846,7,71100,71101,5,71230,71230,7,71351,71351,5,71737,71738,5,72000,72000,7,72160,72160,5,72273,72278,5,72752,72758,5,72882,72883,5,73031,73031,5,73461,73462,7,94192,94193,7,119149,119149,7,121403,121452,5,122915,122916,5,126980,126980,14,127358,127359,14,127535,127535,14,127759,127759,14,127771,127771,14,127792,127793,14,127825,127867,14,127897,127899,14,127945,127945,14,127985,127986,14,128000,128007,14,128021,128021,14,128066,128100,14,128184,128235,14,128249,128252,14,128266,128276,14,128335,128335,14,128379,128390,14,128407,128419,14,128444,128444,14,128481,128481,14,128499,128499,14,128526,128526,14,128536,128536,14,128543,128543,14,128556,128556,14,128564,128564,14,128577,128580,14,128643,128645,14,128649,128649,14,128654,128654,14,128660,128660,14,128664,128664,14,128675,128675,14,128686,128689,14,128695,128696,14,128705,128709,14,128717,128719,14,128725,128725,14,128736,128741,14,128747,128748,14,128755,128755,14,128762,128762,14,128981,128991,14,129009,129023,14,129160,129167,14,129296,129304,14,129320,129327,14,129340,129342,14,129356,129356,14,129388,129392,14,129399,129400,14,129404,129407,14,129432,129442,14,129454,129455,14,129473,129474,14,129485,129487,14,129648,129651,14,129659,129660,14,129671,129679,14,129709,129711,14,129728,129730,14,129751,129753,14,129776,129782,14,917505,917505,4,917760,917999,5,10,10,3,127,159,4,768,879,5,1471,1471,5,1536,1541,1,1648,1648,5,1767,1768,5,1840,1866,5,2070,2073,5,2137,2139,5,2274,2274,1,2363,2363,7,2377,2380,7,2402,2403,5,2494,2494,5,2507,2508,7,2558,2558,5,2622,2624,7,2641,2641,5,2691,2691,7,2759,2760,5,2786,2787,5,2876,2876,5,2881,2884,5,2901,2902,5,3006,3006,5,3014,3016,7,3072,3072,5,3134,3136,5,3157,3158,5,3260,3260,5,3266,3266,5,3274,3275,7,3328,3329,5,3391,3392,7,3405,3405,5,3457,3457,5,3536,3537,7,3551,3551,5,3636,3642,5,3764,3772,5,3895,3895,5,3967,3967,7,3993,4028,5,4146,4151,5,4182,4183,7,4226,4226,5,4253,4253,5,4957,4959,5,5940,5940,7,6070,6070,7,6087,6088,7,6158,6158,4,6432,6434,5,6448,6449,7,6679,6680,5,6742,6742,5,6754,6754,5,6783,6783,5,6912,6915,5,6966,6970,5,6978,6978,5,7042,7042,7,7080,7081,5,7143,7143,7,7150,7150,7,7212,7219,5,7380,7392,5,7412,7412,5,8203,8203,4,8232,8232,4,8265,8265,14,8400,8412,5,8421,8432,5,8617,8618,14,9167,9167,14,9200,9200,14,9410,9410,14,9723,9726,14,9733,9733,14,9745,9745,14,9752,9752,14,9760,9760,14,9766,9766,14,9774,9774,14,9786,9786,14,9794,9794,14,9823,9823,14,9828,9828,14,9833,9850,14,9855,9855,14,9875,9875,14,9880,9880,14,9885,9887,14,9896,9897,14,9906,9916,14,9926,9927,14,9935,9935,14,9939,9939,14,9962,9962,14,9972,9972,14,9978,9978,14,9986,9986,14,9997,9997,14,10002,10002,14,10017,10017,14,10055,10055,14,10071,10071,14,10133,10135,14,10548,10549,14,11093,11093,14,12330,12333,5,12441,12442,5,42608,42610,5,43010,43010,5,43045,43046,5,43188,43203,7,43302,43309,5,43392,43394,5,43446,43449,5,43493,43493,5,43571,43572,7,43597,43597,7,43703,43704,5,43756,43757,5,44003,44004,7,44009,44010,7,44033,44059,12,44089,44115,12,44145,44171,12,44201,44227,12,44257,44283,12,44313,44339,12,44369,44395,12,44425,44451,12,44481,44507,12,44537,44563,12,44593,44619,12,44649,44675,12,44705,44731,12,44761,44787,12,44817,44843,12,44873,44899,12,44929,44955,12,44985,45011,12,45041,45067,12,45097,45123,12,45153,45179,12,45209,45235,12,45265,45291,12,45321,45347,12,45377,45403,12,45433,45459,12,45489,45515,12,45545,45571,12,45601,45627,12,45657,45683,12,45713,45739,12,45769,45795,12,45825,45851,12,45881,45907,12,45937,45963,12,45993,46019,12,46049,46075,12,46105,46131,12,46161,46187,12,46217,46243,12,46273,46299,12,46329,46355,12,46385,46411,12,46441,46467,12,46497,46523,12,46553,46579,12,46609,46635,12,46665,46691,12,46721,46747,12,46777,46803,12,46833,46859,12,46889,46915,12,46945,46971,12,47001,47027,12,47057,47083,12,47113,47139,12,47169,47195,12,47225,47251,12,47281,47307,12,47337,47363,12,47393,47419,12,47449,47475,12,47505,47531,12,47561,47587,12,47617,47643,12,47673,47699,12,47729,47755,12,47785,47811,12,47841,47867,12,47897,47923,12,47953,47979,12,48009,48035,12,48065,48091,12,48121,48147,12,48177,48203,12,48233,48259,12,48289,48315,12,48345,48371,12,48401,48427,12,48457,48483,12,48513,48539,12,48569,48595,12,48625,48651,12,48681,48707,12,48737,48763,12,48793,48819,12,48849,48875,12,48905,48931,12,48961,48987,12,49017,49043,12,49073,49099,12,49129,49155,12,49185,49211,12,49241,49267,12,49297,49323,12,49353,49379,12,49409,49435,12,49465,49491,12,49521,49547,12,49577,49603,12,49633,49659,12,49689,49715,12,49745,49771,12,49801,49827,12,49857,49883,12,49913,49939,12,49969,49995,12,50025,50051,12,50081,50107,12,50137,50163,12,50193,50219,12,50249,50275,12,50305,50331,12,50361,50387,12,50417,50443,12,50473,50499,12,50529,50555,12,50585,50611,12,50641,50667,12,50697,50723,12,50753,50779,12,50809,50835,12,50865,50891,12,50921,50947,12,50977,51003,12,51033,51059,12,51089,51115,12,51145,51171,12,51201,51227,12,51257,51283,12,51313,51339,12,51369,51395,12,51425,51451,12,51481,51507,12,51537,51563,12,51593,51619,12,51649,51675,12,51705,51731,12,51761,51787,12,51817,51843,12,51873,51899,12,51929,51955,12,51985,52011,12,52041,52067,12,52097,52123,12,52153,52179,12,52209,52235,12,52265,52291,12,52321,52347,12,52377,52403,12,52433,52459,12,52489,52515,12,52545,52571,12,52601,52627,12,52657,52683,12,52713,52739,12,52769,52795,12,52825,52851,12,52881,52907,12,52937,52963,12,52993,53019,12,53049,53075,12,53105,53131,12,53161,53187,12,53217,53243,12,53273,53299,12,53329,53355,12,53385,53411,12,53441,53467,12,53497,53523,12,53553,53579,12,53609,53635,12,53665,53691,12,53721,53747,12,53777,53803,12,53833,53859,12,53889,53915,12,53945,53971,12,54001,54027,12,54057,54083,12,54113,54139,12,54169,54195,12,54225,54251,12,54281,54307,12,54337,54363,12,54393,54419,12,54449,54475,12,54505,54531,12,54561,54587,12,54617,54643,12,54673,54699,12,54729,54755,12,54785,54811,12,54841,54867,12,54897,54923,12,54953,54979,12,55009,55035,12,55065,55091,12,55121,55147,12,55177,55203,12,65024,65039,5,65520,65528,4,66422,66426,5,68152,68154,5,69291,69292,5,69633,69633,5,69747,69748,5,69811,69814,5,69826,69826,5,69932,69932,7,70016,70017,5,70079,70080,7,70095,70095,5,70196,70196,5,70367,70367,5,70402,70403,7,70464,70464,5,70487,70487,5,70709,70711,7,70725,70725,7,70833,70834,7,70843,70844,7,70849,70849,7,71090,71093,5,71103,71104,5,71227,71228,7,71339,71339,5,71344,71349,5,71458,71461,5,71727,71735,5,71985,71989,7,71998,71998,5,72002,72002,7,72154,72155,5,72193,72202,5,72251,72254,5,72281,72283,5,72344,72345,5,72766,72766,7,72874,72880,5,72885,72886,5,73023,73029,5,73104,73105,5,73111,73111,5,92912,92916,5,94095,94098,5,113824,113827,4,119142,119142,7,119155,119162,4,119362,119364,5,121476,121476,5,122888,122904,5,123184,123190,5,125252,125258,5,127183,127183,14,127340,127343,14,127377,127386,14,127491,127503,14,127548,127551,14,127744,127756,14,127761,127761,14,127769,127769,14,127773,127774,14,127780,127788,14,127796,127797,14,127820,127823,14,127869,127869,14,127894,127895,14,127902,127903,14,127943,127943,14,127947,127950,14,127972,127972,14,127988,127988,14,127992,127994,14,128009,128011,14,128019,128019,14,128023,128041,14,128064,128064,14,128102,128107,14,128174,128181,14,128238,128238,14,128246,128247,14,128254,128254,14,128264,128264,14,128278,128299,14,128329,128330,14,128348,128359,14,128371,128377,14,128392,128393,14,128401,128404,14,128421,128421,14,128433,128434,14,128450,128452,14,128476,128478,14,128483,128483,14,128495,128495,14,128506,128506,14,128519,128520,14,128528,128528,14,128534,128534,14,128538,128538,14,128540,128542,14,128544,128549,14,128552,128555,14,128557,128557,14,128560,128563,14,128565,128565,14,128567,128576,14,128581,128591,14,128641,128642,14,128646,128646,14,128648,128648,14,128650,128651,14,128653,128653,14,128655,128655,14,128657,128659,14,128661,128661,14,128663,128663,14,128665,128666,14,128674,128674,14,128676,128677,14,128679,128685,14,128690,128690,14,128694,128694,14,128697,128702,14,128704,128704,14,128710,128714,14,128716,128716,14,128720,128720,14,128723,128724,14,128726,128727,14,128733,128735,14,128742,128744,14,128746,128746,14,128749,128751,14,128753,128754,14,128756,128758,14,128761,128761,14,128763,128764,14,128884,128895,14,128992,129003,14,129008,129008,14,129036,129039,14,129114,129119,14,129198,129279,14,129293,129295,14,129305,129310,14,129312,129319,14,129328,129328,14,129331,129338,14,129343,129343,14,129351,129355,14,129357,129359,14,129375,129387,14,129393,129393,14,129395,129398,14,129401,129401,14,129403,129403,14,129408,129412,14,129426,129431,14,129443,129444,14,129451,129453,14,129456,129465,14,129472,129472,14,129475,129482,14,129484,129484,14,129488,129510,14,129536,129647,14,129652,129652,14,129656,129658,14,129661,129663,14,129667,129670,14,129680,129685,14,129705,129708,14,129712,129718,14,129723,129727,14,129731,129733,14,129744,129750,14,129754,129759,14,129768,129775,14,129783,129791,14,917504,917504,4,917506,917535,4,917632,917759,4,918000,921599,4,0,9,4,11,12,4,14,31,4,169,169,14,174,174,14,1155,1159,5,1425,1469,5,1473,1474,5,1479,1479,5,1552,1562,5,1611,1631,5,1750,1756,5,1759,1764,5,1770,1773,5,1809,1809,5,1958,1968,5,2045,2045,5,2075,2083,5,2089,2093,5,2192,2193,1,2250,2273,5,2275,2306,5,2362,2362,5,2364,2364,5,2369,2376,5,2381,2381,5,2385,2391,5,2433,2433,5,2492,2492,5,2495,2496,7,2503,2504,7,2509,2509,5,2530,2531,5,2561,2562,5,2620,2620,5,2625,2626,5,2635,2637,5,2672,2673,5,2689,2690,5,2748,2748,5,2753,2757,5,2761,2761,7,2765,2765,5,2810,2815,5,2818,2819,7,2878,2878,5,2880,2880,7,2887,2888,7,2893,2893,5,2903,2903,5,2946,2946,5,3007,3007,7,3009,3010,7,3018,3020,7,3031,3031,5,3073,3075,7,3132,3132,5,3137,3140,7,3146,3149,5,3170,3171,5,3202,3203,7,3262,3262,7,3264,3265,7,3267,3268,7,3271,3272,7,3276,3277,5,3298,3299,5,3330,3331,7,3390,3390,5,3393,3396,5,3402,3404,7,3406,3406,1,3426,3427,5,3458,3459,7,3535,3535,5,3538,3540,5,3544,3550,7,3570,3571,7,3635,3635,7,3655,3662,5,3763,3763,7,3784,3789,5,3893,3893,5,3897,3897,5,3953,3966,5,3968,3972,5,3981,3991,5,4038,4038,5,4145,4145,7,4153,4154,5,4157,4158,5,4184,4185,5,4209,4212,5,4228,4228,7,4237,4237,5,4352,4447,8,4520,4607,10,5906,5908,5,5938,5939,5,5970,5971,5,6068,6069,5,6071,6077,5,6086,6086,5,6089,6099,5,6155,6157,5,6159,6159,5,6313,6313,5,6435,6438,7,6441,6443,7,6450,6450,5,6457,6459,5,6681,6682,7,6741,6741,7,6743,6743,7,6752,6752,5,6757,6764,5,6771,6780,5,6832,6845,5,6847,6862,5,6916,6916,7,6965,6965,5,6971,6971,7,6973,6977,7,6979,6980,7,7040,7041,5,7073,7073,7,7078,7079,7,7082,7082,7,7142,7142,5,7144,7145,5,7149,7149,5,7151,7153,5,7204,7211,7,7220,7221,7,7376,7378,5,7393,7393,7,7405,7405,5,7415,7415,7,7616,7679,5,8204,8204,5,8206,8207,4,8233,8233,4,8252,8252,14,8288,8292,4,8294,8303,4,8413,8416,5,8418,8420,5,8482,8482,14,8596,8601,14,8986,8987,14,9096,9096,14,9193,9196,14,9199,9199,14,9201,9202,14,9208,9210,14,9642,9643,14,9664,9664,14,9728,9729,14,9732,9732,14,9735,9741,14,9743,9744,14,9746,9746,14,9750,9751,14,9753,9756,14,9758,9759,14,9761,9761,14,9764,9765,14,9767,9769,14,9771,9773,14,9775,9775,14,9784,9785,14,9787,9791,14,9793,9793,14,9795,9799,14,9812,9822,14,9824,9824,14,9827,9827,14,9829,9830,14,9832,9832,14,9851,9851,14,9854,9854,14,9856,9861,14,9874,9874,14,9876,9876,14,9878,9879,14,9881,9881,14,9883,9884,14,9888,9889,14,9895,9895,14,9898,9899,14,9904,9905,14,9917,9918,14,9924,9925,14,9928,9928,14,9934,9934,14,9936,9936,14,9938,9938,14,9940,9940,14,9961,9961,14,9963,9967,14,9970,9971,14,9973,9973,14,9975,9977,14,9979,9980,14,9982,9985,14,9987,9988,14,9992,9996,14,9998,9998,14,10000,10001,14,10004,10004,14,10013,10013,14,10024,10024,14,10052,10052,14,10060,10060,14,10067,10069,14,10083,10083,14,10085,10087,14,10145,10145,14,10175,10175,14,11013,11015,14,11088,11088,14,11503,11505,5,11744,11775,5,12334,12335,5,12349,12349,14,12951,12951,14,42607,42607,5,42612,42621,5,42736,42737,5,43014,43014,5,43043,43044,7,43047,43047,7,43136,43137,7,43204,43205,5,43263,43263,5,43335,43345,5,43360,43388,8,43395,43395,7,43444,43445,7,43450,43451,7,43454,43456,7,43561,43566,5,43569,43570,5,43573,43574,5,43596,43596,5,43644,43644,5,43698,43700,5,43710,43711,5,43755,43755,7,43758,43759,7,43766,43766,5,44005,44005,5,44008,44008,5,44012,44012,7,44032,44032,11,44060,44060,11,44088,44088,11,44116,44116,11,44144,44144,11,44172,44172,11,44200,44200,11,44228,44228,11,44256,44256,11,44284,44284,11,44312,44312,11,44340,44340,11,44368,44368,11,44396,44396,11,44424,44424,11,44452,44452,11,44480,44480,11,44508,44508,11,44536,44536,11,44564,44564,11,44592,44592,11,44620,44620,11,44648,44648,11,44676,44676,11,44704,44704,11,44732,44732,11,44760,44760,11,44788,44788,11,44816,44816,11,44844,44844,11,44872,44872,11,44900,44900,11,44928,44928,11,44956,44956,11,44984,44984,11,45012,45012,11,45040,45040,11,45068,45068,11,45096,45096,11,45124,45124,11,45152,45152,11,45180,45180,11,45208,45208,11,45236,45236,11,45264,45264,11,45292,45292,11,45320,45320,11,45348,45348,11,45376,45376,11,45404,45404,11,45432,45432,11,45460,45460,11,45488,45488,11,45516,45516,11,45544,45544,11,45572,45572,11,45600,45600,11,45628,45628,11,45656,45656,11,45684,45684,11,45712,45712,11,45740,45740,11,45768,45768,11,45796,45796,11,45824,45824,11,45852,45852,11,45880,45880,11,45908,45908,11,45936,45936,11,45964,45964,11,45992,45992,11,46020,46020,11,46048,46048,11,46076,46076,11,46104,46104,11,46132,46132,11,46160,46160,11,46188,46188,11,46216,46216,11,46244,46244,11,46272,46272,11,46300,46300,11,46328,46328,11,46356,46356,11,46384,46384,11,46412,46412,11,46440,46440,11,46468,46468,11,46496,46496,11,46524,46524,11,46552,46552,11,46580,46580,11,46608,46608,11,46636,46636,11,46664,46664,11,46692,46692,11,46720,46720,11,46748,46748,11,46776,46776,11,46804,46804,11,46832,46832,11,46860,46860,11,46888,46888,11,46916,46916,11,46944,46944,11,46972,46972,11,47000,47000,11,47028,47028,11,47056,47056,11,47084,47084,11,47112,47112,11,47140,47140,11,47168,47168,11,47196,47196,11,47224,47224,11,47252,47252,11,47280,47280,11,47308,47308,11,47336,47336,11,47364,47364,11,47392,47392,11,47420,47420,11,47448,47448,11,47476,47476,11,47504,47504,11,47532,47532,11,47560,47560,11,47588,47588,11,47616,47616,11,47644,47644,11,47672,47672,11,47700,47700,11,47728,47728,11,47756,47756,11,47784,47784,11,47812,47812,11,47840,47840,11,47868,47868,11,47896,47896,11,47924,47924,11,47952,47952,11,47980,47980,11,48008,48008,11,48036,48036,11,48064,48064,11,48092,48092,11,48120,48120,11,48148,48148,11,48176,48176,11,48204,48204,11,48232,48232,11,48260,48260,11,48288,48288,11,48316,48316,11,48344,48344,11,48372,48372,11,48400,48400,11,48428,48428,11,48456,48456,11,48484,48484,11,48512,48512,11,48540,48540,11,48568,48568,11,48596,48596,11,48624,48624,11,48652,48652,11,48680,48680,11,48708,48708,11,48736,48736,11,48764,48764,11,48792,48792,11,48820,48820,11,48848,48848,11,48876,48876,11,48904,48904,11,48932,48932,11,48960,48960,11,48988,48988,11,49016,49016,11,49044,49044,11,49072,49072,11,49100,49100,11,49128,49128,11,49156,49156,11,49184,49184,11,49212,49212,11,49240,49240,11,49268,49268,11,49296,49296,11,49324,49324,11,49352,49352,11,49380,49380,11,49408,49408,11,49436,49436,11,49464,49464,11,49492,49492,11,49520,49520,11,49548,49548,11,49576,49576,11,49604,49604,11,49632,49632,11,49660,49660,11,49688,49688,11,49716,49716,11,49744,49744,11,49772,49772,11,49800,49800,11,49828,49828,11,49856,49856,11,49884,49884,11,49912,49912,11,49940,49940,11,49968,49968,11,49996,49996,11,50024,50024,11,50052,50052,11,50080,50080,11,50108,50108,11,50136,50136,11,50164,50164,11,50192,50192,11,50220,50220,11,50248,50248,11,50276,50276,11,50304,50304,11,50332,50332,11,50360,50360,11,50388,50388,11,50416,50416,11,50444,50444,11,50472,50472,11,50500,50500,11,50528,50528,11,50556,50556,11,50584,50584,11,50612,50612,11,50640,50640,11,50668,50668,11,50696,50696,11,50724,50724,11,50752,50752,11,50780,50780,11,50808,50808,11,50836,50836,11,50864,50864,11,50892,50892,11,50920,50920,11,50948,50948,11,50976,50976,11,51004,51004,11,51032,51032,11,51060,51060,11,51088,51088,11,51116,51116,11,51144,51144,11,51172,51172,11,51200,51200,11,51228,51228,11,51256,51256,11,51284,51284,11,51312,51312,11,51340,51340,11,51368,51368,11,51396,51396,11,51424,51424,11,51452,51452,11,51480,51480,11,51508,51508,11,51536,51536,11,51564,51564,11,51592,51592,11,51620,51620,11,51648,51648,11,51676,51676,11,51704,51704,11,51732,51732,11,51760,51760,11,51788,51788,11,51816,51816,11,51844,51844,11,51872,51872,11,51900,51900,11,51928,51928,11,51956,51956,11,51984,51984,11,52012,52012,11,52040,52040,11,52068,52068,11,52096,52096,11,52124,52124,11,52152,52152,11,52180,52180,11,52208,52208,11,52236,52236,11,52264,52264,11,52292,52292,11,52320,52320,11,52348,52348,11,52376,52376,11,52404,52404,11,52432,52432,11,52460,52460,11,52488,52488,11,52516,52516,11,52544,52544,11,52572,52572,11,52600,52600,11,52628,52628,11,52656,52656,11,52684,52684,11,52712,52712,11,52740,52740,11,52768,52768,11,52796,52796,11,52824,52824,11,52852,52852,11,52880,52880,11,52908,52908,11,52936,52936,11,52964,52964,11,52992,52992,11,53020,53020,11,53048,53048,11,53076,53076,11,53104,53104,11,53132,53132,11,53160,53160,11,53188,53188,11,53216,53216,11,53244,53244,11,53272,53272,11,53300,53300,11,53328,53328,11,53356,53356,11,53384,53384,11,53412,53412,11,53440,53440,11,53468,53468,11,53496,53496,11,53524,53524,11,53552,53552,11,53580,53580,11,53608,53608,11,53636,53636,11,53664,53664,11,53692,53692,11,53720,53720,11,53748,53748,11,53776,53776,11,53804,53804,11,53832,53832,11,53860,53860,11,53888,53888,11,53916,53916,11,53944,53944,11,53972,53972,11,54000,54000,11,54028,54028,11,54056,54056,11,54084,54084,11,54112,54112,11,54140,54140,11,54168,54168,11,54196,54196,11,54224,54224,11,54252,54252,11,54280,54280,11,54308,54308,11,54336,54336,11,54364,54364,11,54392,54392,11,54420,54420,11,54448,54448,11,54476,54476,11,54504,54504,11,54532,54532,11,54560,54560,11,54588,54588,11,54616,54616,11,54644,54644,11,54672,54672,11,54700,54700,11,54728,54728,11,54756,54756,11,54784,54784,11,54812,54812,11,54840,54840,11,54868,54868,11,54896,54896,11,54924,54924,11,54952,54952,11,54980,54980,11,55008,55008,11,55036,55036,11,55064,55064,11,55092,55092,11,55120,55120,11,55148,55148,11,55176,55176,11,55216,55238,9,64286,64286,5,65056,65071,5,65438,65439,5,65529,65531,4,66272,66272,5,68097,68099,5,68108,68111,5,68159,68159,5,68900,68903,5,69446,69456,5,69632,69632,7,69634,69634,7,69744,69744,5,69759,69761,5,69808,69810,7,69815,69816,7,69821,69821,1,69837,69837,1,69927,69931,5,69933,69940,5,70003,70003,5,70018,70018,7,70070,70078,5,70082,70083,1,70094,70094,7,70188,70190,7,70194,70195,7,70197,70197,7,70206,70206,5,70368,70370,7,70400,70401,5,70459,70460,5,70463,70463,7,70465,70468,7,70475,70477,7,70498,70499,7,70512,70516,5,70712,70719,5,70722,70724,5,70726,70726,5,70832,70832,5,70835,70840,5,70842,70842,5,70845,70845,5,70847,70848,5,70850,70851,5,71088,71089,7,71096,71099,7,71102,71102,7,71132,71133,5,71219,71226,5,71229,71229,5,71231,71232,5,71340,71340,7,71342,71343,7,71350,71350,7,71453,71455,5,71462,71462,7,71724,71726,7,71736,71736,7,71984,71984,5,71991,71992,7,71997,71997,7,71999,71999,1,72001,72001,1,72003,72003,5,72148,72151,5,72156,72159,7,72164,72164,7,72243,72248,5,72250,72250,1,72263,72263,5,72279,72280,7,72324,72329,1,72343,72343,7,72751,72751,7,72760,72765,5,72767,72767,5,72873,72873,7,72881,72881,7,72884,72884,7,73009,73014,5,73020,73021,5,73030,73030,1,73098,73102,7,73107,73108,7,73110,73110,7,73459,73460,5,78896,78904,4,92976,92982,5,94033,94087,7,94180,94180,5,113821,113822,5,118528,118573,5,119141,119141,5,119143,119145,5,119150,119154,5,119163,119170,5,119210,119213,5,121344,121398,5,121461,121461,5,121499,121503,5,122880,122886,5,122907,122913,5,122918,122922,5,123566,123566,5,125136,125142,5,126976,126979,14,126981,127182,14,127184,127231,14,127279,127279,14,127344,127345,14,127374,127374,14,127405,127461,14,127489,127490,14,127514,127514,14,127538,127546,14,127561,127567,14,127570,127743,14,127757,127758,14,127760,127760,14,127762,127762,14,127766,127768,14,127770,127770,14,127772,127772,14,127775,127776,14,127778,127779,14,127789,127791,14,127794,127795,14,127798,127798,14,127819,127819,14,127824,127824,14,127868,127868,14,127870,127871,14,127892,127893,14,127896,127896,14,127900,127901,14,127904,127940,14,127942,127942,14,127944,127944,14,127946,127946,14,127951,127955,14,127968,127971,14,127973,127984,14,127987,127987,14,127989,127989,14,127991,127991,14,127995,127999,5,128008,128008,14,128012,128014,14,128017,128018,14,128020,128020,14,128022,128022,14,128042,128042,14,128063,128063,14,128065,128065,14,128101,128101,14,128108,128109,14,128173,128173,14,128182,128183,14,128236,128237,14,128239,128239,14,128245,128245,14,128248,128248,14,128253,128253,14,128255,128258,14,128260,128263,14,128265,128265,14,128277,128277,14,128300,128301,14,128326,128328,14,128331,128334,14,128336,128347,14,128360,128366,14,128369,128370,14,128378,128378,14,128391,128391,14,128394,128397,14,128400,128400,14,128405,128406,14,128420,128420,14,128422,128423,14,128425,128432,14,128435,128443,14,128445,128449,14,128453,128464,14,128468,128475,14,128479,128480,14,128482,128482,14,128484,128487,14,128489,128494,14,128496,128498,14,128500,128505,14,128507,128511,14,128513,128518,14,128521,128525,14,128527,128527,14,128529,128529,14,128533,128533,14,128535,128535,14,128537,128537,14]")}function f1t(i,e){if(i===0)return 0;const t=p1t(i,e);if(t!==void 0)return t;const n=new AQ(e,i);return n.prevCodePoint(),n.offset}function p1t(i,e){const t=new AQ(e,i);let n=t.prevCodePoint();for(;g1t(n)||n===65039||n===8419;){if(t.offset===0)return;n=t.prevCodePoint()}if(!PQ(n))return;let s=t.offset;return s>0&&t.prevCodePoint()===8205&&(s=t.offset),s}function g1t(i){return 127995<=i&&i<=127999}const PTe=" ",Hm=class Hm{static getInstance(e){return Hm.cache.get(Array.from(e))}static getLocales(){return Hm._locales.value}constructor(e){this.confusableDictionary=e}isAmbiguous(e){return this.confusableDictionary.has(e)}getPrimaryConfusable(e){return this.confusableDictionary.get(e)}getConfusableCodePoints(){return new Set(this.confusableDictionary.keys())}};Hm.ambiguousCharacterData=new gp(()=>JSON.parse('{"_common":[8232,32,8233,32,5760,32,8192,32,8193,32,8194,32,8195,32,8196,32,8197,32,8198,32,8200,32,8201,32,8202,32,8287,32,8199,32,8239,32,2042,95,65101,95,65102,95,65103,95,8208,45,8209,45,8210,45,65112,45,1748,45,8259,45,727,45,8722,45,10134,45,11450,45,1549,44,1643,44,8218,44,184,44,42233,44,894,59,2307,58,2691,58,1417,58,1795,58,1796,58,5868,58,65072,58,6147,58,6153,58,8282,58,1475,58,760,58,42889,58,8758,58,720,58,42237,58,451,33,11601,33,660,63,577,63,2429,63,5038,63,42731,63,119149,46,8228,46,1793,46,1794,46,42510,46,68176,46,1632,46,1776,46,42232,46,1373,96,65287,96,8219,96,8242,96,1370,96,1523,96,8175,96,65344,96,900,96,8189,96,8125,96,8127,96,8190,96,697,96,884,96,712,96,714,96,715,96,756,96,699,96,701,96,700,96,702,96,42892,96,1497,96,2036,96,2037,96,5194,96,5836,96,94033,96,94034,96,65339,91,10088,40,10098,40,12308,40,64830,40,65341,93,10089,41,10099,41,12309,41,64831,41,10100,123,119060,123,10101,125,65342,94,8270,42,1645,42,8727,42,66335,42,5941,47,8257,47,8725,47,8260,47,9585,47,10187,47,10744,47,119354,47,12755,47,12339,47,11462,47,20031,47,12035,47,65340,92,65128,92,8726,92,10189,92,10741,92,10745,92,119311,92,119355,92,12756,92,20022,92,12034,92,42872,38,708,94,710,94,5869,43,10133,43,66203,43,8249,60,10094,60,706,60,119350,60,5176,60,5810,60,5120,61,11840,61,12448,61,42239,61,8250,62,10095,62,707,62,119351,62,5171,62,94015,62,8275,126,732,126,8128,126,8764,126,65372,124,65293,45,120784,50,120794,50,120804,50,120814,50,120824,50,130034,50,42842,50,423,50,1000,50,42564,50,5311,50,42735,50,119302,51,120785,51,120795,51,120805,51,120815,51,120825,51,130035,51,42923,51,540,51,439,51,42858,51,11468,51,1248,51,94011,51,71882,51,120786,52,120796,52,120806,52,120816,52,120826,52,130036,52,5070,52,71855,52,120787,53,120797,53,120807,53,120817,53,120827,53,130037,53,444,53,71867,53,120788,54,120798,54,120808,54,120818,54,120828,54,130038,54,11474,54,5102,54,71893,54,119314,55,120789,55,120799,55,120809,55,120819,55,120829,55,130039,55,66770,55,71878,55,2819,56,2538,56,2666,56,125131,56,120790,56,120800,56,120810,56,120820,56,120830,56,130040,56,547,56,546,56,66330,56,2663,57,2920,57,2541,57,3437,57,120791,57,120801,57,120811,57,120821,57,120831,57,130041,57,42862,57,11466,57,71884,57,71852,57,71894,57,9082,97,65345,97,119834,97,119886,97,119938,97,119990,97,120042,97,120094,97,120146,97,120198,97,120250,97,120302,97,120354,97,120406,97,120458,97,593,97,945,97,120514,97,120572,97,120630,97,120688,97,120746,97,65313,65,119808,65,119860,65,119912,65,119964,65,120016,65,120068,65,120120,65,120172,65,120224,65,120276,65,120328,65,120380,65,120432,65,913,65,120488,65,120546,65,120604,65,120662,65,120720,65,5034,65,5573,65,42222,65,94016,65,66208,65,119835,98,119887,98,119939,98,119991,98,120043,98,120095,98,120147,98,120199,98,120251,98,120303,98,120355,98,120407,98,120459,98,388,98,5071,98,5234,98,5551,98,65314,66,8492,66,119809,66,119861,66,119913,66,120017,66,120069,66,120121,66,120173,66,120225,66,120277,66,120329,66,120381,66,120433,66,42932,66,914,66,120489,66,120547,66,120605,66,120663,66,120721,66,5108,66,5623,66,42192,66,66178,66,66209,66,66305,66,65347,99,8573,99,119836,99,119888,99,119940,99,119992,99,120044,99,120096,99,120148,99,120200,99,120252,99,120304,99,120356,99,120408,99,120460,99,7428,99,1010,99,11429,99,43951,99,66621,99,128844,67,71922,67,71913,67,65315,67,8557,67,8450,67,8493,67,119810,67,119862,67,119914,67,119966,67,120018,67,120174,67,120226,67,120278,67,120330,67,120382,67,120434,67,1017,67,11428,67,5087,67,42202,67,66210,67,66306,67,66581,67,66844,67,8574,100,8518,100,119837,100,119889,100,119941,100,119993,100,120045,100,120097,100,120149,100,120201,100,120253,100,120305,100,120357,100,120409,100,120461,100,1281,100,5095,100,5231,100,42194,100,8558,68,8517,68,119811,68,119863,68,119915,68,119967,68,120019,68,120071,68,120123,68,120175,68,120227,68,120279,68,120331,68,120383,68,120435,68,5024,68,5598,68,5610,68,42195,68,8494,101,65349,101,8495,101,8519,101,119838,101,119890,101,119942,101,120046,101,120098,101,120150,101,120202,101,120254,101,120306,101,120358,101,120410,101,120462,101,43826,101,1213,101,8959,69,65317,69,8496,69,119812,69,119864,69,119916,69,120020,69,120072,69,120124,69,120176,69,120228,69,120280,69,120332,69,120384,69,120436,69,917,69,120492,69,120550,69,120608,69,120666,69,120724,69,11577,69,5036,69,42224,69,71846,69,71854,69,66182,69,119839,102,119891,102,119943,102,119995,102,120047,102,120099,102,120151,102,120203,102,120255,102,120307,102,120359,102,120411,102,120463,102,43829,102,42905,102,383,102,7837,102,1412,102,119315,70,8497,70,119813,70,119865,70,119917,70,120021,70,120073,70,120125,70,120177,70,120229,70,120281,70,120333,70,120385,70,120437,70,42904,70,988,70,120778,70,5556,70,42205,70,71874,70,71842,70,66183,70,66213,70,66853,70,65351,103,8458,103,119840,103,119892,103,119944,103,120048,103,120100,103,120152,103,120204,103,120256,103,120308,103,120360,103,120412,103,120464,103,609,103,7555,103,397,103,1409,103,119814,71,119866,71,119918,71,119970,71,120022,71,120074,71,120126,71,120178,71,120230,71,120282,71,120334,71,120386,71,120438,71,1292,71,5056,71,5107,71,42198,71,65352,104,8462,104,119841,104,119945,104,119997,104,120049,104,120101,104,120153,104,120205,104,120257,104,120309,104,120361,104,120413,104,120465,104,1211,104,1392,104,5058,104,65320,72,8459,72,8460,72,8461,72,119815,72,119867,72,119919,72,120023,72,120179,72,120231,72,120283,72,120335,72,120387,72,120439,72,919,72,120494,72,120552,72,120610,72,120668,72,120726,72,11406,72,5051,72,5500,72,42215,72,66255,72,731,105,9075,105,65353,105,8560,105,8505,105,8520,105,119842,105,119894,105,119946,105,119998,105,120050,105,120102,105,120154,105,120206,105,120258,105,120310,105,120362,105,120414,105,120466,105,120484,105,618,105,617,105,953,105,8126,105,890,105,120522,105,120580,105,120638,105,120696,105,120754,105,1110,105,42567,105,1231,105,43893,105,5029,105,71875,105,65354,106,8521,106,119843,106,119895,106,119947,106,119999,106,120051,106,120103,106,120155,106,120207,106,120259,106,120311,106,120363,106,120415,106,120467,106,1011,106,1112,106,65322,74,119817,74,119869,74,119921,74,119973,74,120025,74,120077,74,120129,74,120181,74,120233,74,120285,74,120337,74,120389,74,120441,74,42930,74,895,74,1032,74,5035,74,5261,74,42201,74,119844,107,119896,107,119948,107,120000,107,120052,107,120104,107,120156,107,120208,107,120260,107,120312,107,120364,107,120416,107,120468,107,8490,75,65323,75,119818,75,119870,75,119922,75,119974,75,120026,75,120078,75,120130,75,120182,75,120234,75,120286,75,120338,75,120390,75,120442,75,922,75,120497,75,120555,75,120613,75,120671,75,120729,75,11412,75,5094,75,5845,75,42199,75,66840,75,1472,108,8739,73,9213,73,65512,73,1633,108,1777,73,66336,108,125127,108,120783,73,120793,73,120803,73,120813,73,120823,73,130033,73,65321,73,8544,73,8464,73,8465,73,119816,73,119868,73,119920,73,120024,73,120128,73,120180,73,120232,73,120284,73,120336,73,120388,73,120440,73,65356,108,8572,73,8467,108,119845,108,119897,108,119949,108,120001,108,120053,108,120105,73,120157,73,120209,73,120261,73,120313,73,120365,73,120417,73,120469,73,448,73,120496,73,120554,73,120612,73,120670,73,120728,73,11410,73,1030,73,1216,73,1493,108,1503,108,1575,108,126464,108,126592,108,65166,108,65165,108,1994,108,11599,73,5825,73,42226,73,93992,73,66186,124,66313,124,119338,76,8556,76,8466,76,119819,76,119871,76,119923,76,120027,76,120079,76,120131,76,120183,76,120235,76,120287,76,120339,76,120391,76,120443,76,11472,76,5086,76,5290,76,42209,76,93974,76,71843,76,71858,76,66587,76,66854,76,65325,77,8559,77,8499,77,119820,77,119872,77,119924,77,120028,77,120080,77,120132,77,120184,77,120236,77,120288,77,120340,77,120392,77,120444,77,924,77,120499,77,120557,77,120615,77,120673,77,120731,77,1018,77,11416,77,5047,77,5616,77,5846,77,42207,77,66224,77,66321,77,119847,110,119899,110,119951,110,120003,110,120055,110,120107,110,120159,110,120211,110,120263,110,120315,110,120367,110,120419,110,120471,110,1400,110,1404,110,65326,78,8469,78,119821,78,119873,78,119925,78,119977,78,120029,78,120081,78,120185,78,120237,78,120289,78,120341,78,120393,78,120445,78,925,78,120500,78,120558,78,120616,78,120674,78,120732,78,11418,78,42208,78,66835,78,3074,111,3202,111,3330,111,3458,111,2406,111,2662,111,2790,111,3046,111,3174,111,3302,111,3430,111,3664,111,3792,111,4160,111,1637,111,1781,111,65359,111,8500,111,119848,111,119900,111,119952,111,120056,111,120108,111,120160,111,120212,111,120264,111,120316,111,120368,111,120420,111,120472,111,7439,111,7441,111,43837,111,959,111,120528,111,120586,111,120644,111,120702,111,120760,111,963,111,120532,111,120590,111,120648,111,120706,111,120764,111,11423,111,4351,111,1413,111,1505,111,1607,111,126500,111,126564,111,126596,111,65259,111,65260,111,65258,111,65257,111,1726,111,64428,111,64429,111,64427,111,64426,111,1729,111,64424,111,64425,111,64423,111,64422,111,1749,111,3360,111,4125,111,66794,111,71880,111,71895,111,66604,111,1984,79,2534,79,2918,79,12295,79,70864,79,71904,79,120782,79,120792,79,120802,79,120812,79,120822,79,130032,79,65327,79,119822,79,119874,79,119926,79,119978,79,120030,79,120082,79,120134,79,120186,79,120238,79,120290,79,120342,79,120394,79,120446,79,927,79,120502,79,120560,79,120618,79,120676,79,120734,79,11422,79,1365,79,11604,79,4816,79,2848,79,66754,79,42227,79,71861,79,66194,79,66219,79,66564,79,66838,79,9076,112,65360,112,119849,112,119901,112,119953,112,120005,112,120057,112,120109,112,120161,112,120213,112,120265,112,120317,112,120369,112,120421,112,120473,112,961,112,120530,112,120544,112,120588,112,120602,112,120646,112,120660,112,120704,112,120718,112,120762,112,120776,112,11427,112,65328,80,8473,80,119823,80,119875,80,119927,80,119979,80,120031,80,120083,80,120187,80,120239,80,120291,80,120343,80,120395,80,120447,80,929,80,120504,80,120562,80,120620,80,120678,80,120736,80,11426,80,5090,80,5229,80,42193,80,66197,80,119850,113,119902,113,119954,113,120006,113,120058,113,120110,113,120162,113,120214,113,120266,113,120318,113,120370,113,120422,113,120474,113,1307,113,1379,113,1382,113,8474,81,119824,81,119876,81,119928,81,119980,81,120032,81,120084,81,120188,81,120240,81,120292,81,120344,81,120396,81,120448,81,11605,81,119851,114,119903,114,119955,114,120007,114,120059,114,120111,114,120163,114,120215,114,120267,114,120319,114,120371,114,120423,114,120475,114,43847,114,43848,114,7462,114,11397,114,43905,114,119318,82,8475,82,8476,82,8477,82,119825,82,119877,82,119929,82,120033,82,120189,82,120241,82,120293,82,120345,82,120397,82,120449,82,422,82,5025,82,5074,82,66740,82,5511,82,42211,82,94005,82,65363,115,119852,115,119904,115,119956,115,120008,115,120060,115,120112,115,120164,115,120216,115,120268,115,120320,115,120372,115,120424,115,120476,115,42801,115,445,115,1109,115,43946,115,71873,115,66632,115,65331,83,119826,83,119878,83,119930,83,119982,83,120034,83,120086,83,120138,83,120190,83,120242,83,120294,83,120346,83,120398,83,120450,83,1029,83,1359,83,5077,83,5082,83,42210,83,94010,83,66198,83,66592,83,119853,116,119905,116,119957,116,120009,116,120061,116,120113,116,120165,116,120217,116,120269,116,120321,116,120373,116,120425,116,120477,116,8868,84,10201,84,128872,84,65332,84,119827,84,119879,84,119931,84,119983,84,120035,84,120087,84,120139,84,120191,84,120243,84,120295,84,120347,84,120399,84,120451,84,932,84,120507,84,120565,84,120623,84,120681,84,120739,84,11430,84,5026,84,42196,84,93962,84,71868,84,66199,84,66225,84,66325,84,119854,117,119906,117,119958,117,120010,117,120062,117,120114,117,120166,117,120218,117,120270,117,120322,117,120374,117,120426,117,120478,117,42911,117,7452,117,43854,117,43858,117,651,117,965,117,120534,117,120592,117,120650,117,120708,117,120766,117,1405,117,66806,117,71896,117,8746,85,8899,85,119828,85,119880,85,119932,85,119984,85,120036,85,120088,85,120140,85,120192,85,120244,85,120296,85,120348,85,120400,85,120452,85,1357,85,4608,85,66766,85,5196,85,42228,85,94018,85,71864,85,8744,118,8897,118,65366,118,8564,118,119855,118,119907,118,119959,118,120011,118,120063,118,120115,118,120167,118,120219,118,120271,118,120323,118,120375,118,120427,118,120479,118,7456,118,957,118,120526,118,120584,118,120642,118,120700,118,120758,118,1141,118,1496,118,71430,118,43945,118,71872,118,119309,86,1639,86,1783,86,8548,86,119829,86,119881,86,119933,86,119985,86,120037,86,120089,86,120141,86,120193,86,120245,86,120297,86,120349,86,120401,86,120453,86,1140,86,11576,86,5081,86,5167,86,42719,86,42214,86,93960,86,71840,86,66845,86,623,119,119856,119,119908,119,119960,119,120012,119,120064,119,120116,119,120168,119,120220,119,120272,119,120324,119,120376,119,120428,119,120480,119,7457,119,1121,119,1309,119,1377,119,71434,119,71438,119,71439,119,43907,119,71919,87,71910,87,119830,87,119882,87,119934,87,119986,87,120038,87,120090,87,120142,87,120194,87,120246,87,120298,87,120350,87,120402,87,120454,87,1308,87,5043,87,5076,87,42218,87,5742,120,10539,120,10540,120,10799,120,65368,120,8569,120,119857,120,119909,120,119961,120,120013,120,120065,120,120117,120,120169,120,120221,120,120273,120,120325,120,120377,120,120429,120,120481,120,5441,120,5501,120,5741,88,9587,88,66338,88,71916,88,65336,88,8553,88,119831,88,119883,88,119935,88,119987,88,120039,88,120091,88,120143,88,120195,88,120247,88,120299,88,120351,88,120403,88,120455,88,42931,88,935,88,120510,88,120568,88,120626,88,120684,88,120742,88,11436,88,11613,88,5815,88,42219,88,66192,88,66228,88,66327,88,66855,88,611,121,7564,121,65369,121,119858,121,119910,121,119962,121,120014,121,120066,121,120118,121,120170,121,120222,121,120274,121,120326,121,120378,121,120430,121,120482,121,655,121,7935,121,43866,121,947,121,8509,121,120516,121,120574,121,120632,121,120690,121,120748,121,1199,121,4327,121,71900,121,65337,89,119832,89,119884,89,119936,89,119988,89,120040,89,120092,89,120144,89,120196,89,120248,89,120300,89,120352,89,120404,89,120456,89,933,89,978,89,120508,89,120566,89,120624,89,120682,89,120740,89,11432,89,1198,89,5033,89,5053,89,42220,89,94019,89,71844,89,66226,89,119859,122,119911,122,119963,122,120015,122,120067,122,120119,122,120171,122,120223,122,120275,122,120327,122,120379,122,120431,122,120483,122,7458,122,43923,122,71876,122,66293,90,71909,90,65338,90,8484,90,8488,90,119833,90,119885,90,119937,90,119989,90,120041,90,120197,90,120249,90,120301,90,120353,90,120405,90,120457,90,918,90,120493,90,120551,90,120609,90,120667,90,120725,90,5059,90,42204,90,71849,90,65282,34,65284,36,65285,37,65286,38,65290,42,65291,43,65294,46,65295,47,65296,48,65297,49,65298,50,65299,51,65300,52,65301,53,65302,54,65303,55,65304,56,65305,57,65308,60,65309,61,65310,62,65312,64,65316,68,65318,70,65319,71,65324,76,65329,81,65330,82,65333,85,65334,86,65335,87,65343,95,65346,98,65348,100,65350,102,65355,107,65357,109,65358,110,65361,113,65362,114,65364,116,65365,117,65367,119,65370,122,65371,123,65373,125,119846,109],"_default":[160,32,8211,45,65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"cs":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"de":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"es":[8211,45,65374,126,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"fr":[65374,126,65306,58,65281,33,8216,96,8245,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"it":[160,32,8211,45,65374,126,65306,58,65281,33,8216,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"ja":[8211,45,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65292,44,65307,59],"ko":[8211,45,65374,126,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"pl":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"pt-BR":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"qps-ploc":[160,32,8211,45,65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"ru":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,305,105,921,73,1009,112,215,120,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"tr":[160,32,8211,45,65374,126,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"zh-hans":[65374,126,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65288,40,65289,41],"zh-hant":[8211,45,65374,126,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65307,59]}')),Hm.cache=new Zbt({getCacheKey:JSON.stringify},e=>{function t(c){const d=new Map;for(let h=0;h<c.length;h+=2)d.set(c[h],c[h+1]);return d}function n(c,d){const h=new Map(c);for(const[f,g]of d)h.set(f,g);return h}function s(c,d){if(!c)return d;const h=new Map;for(const[f,g]of c)d.has(f)&&h.set(f,g);return h}const r=Hm.ambiguousCharacterData.value;let o=e.filter(c=>!c.startsWith("_")&&c in r);o.length===0&&(o=["_default"]);let a;for(const c of o){const d=t(r[c]);a=s(a,d)}const l=t(r._common),u=n(l,a);return new Hm(u)}),Hm._locales=new gp(()=>Object.keys(Hm.ambiguousCharacterData.value).filter(e=>!e.startsWith("_")));let JN=Hm;const Ok=class Ok{static getRawData(){return JSON.parse("[9,10,11,12,13,32,127,160,173,847,1564,4447,4448,6068,6069,6155,6156,6157,6158,7355,7356,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8203,8204,8205,8206,8207,8234,8235,8236,8237,8238,8239,8287,8288,8289,8290,8291,8292,8293,8294,8295,8296,8297,8298,8299,8300,8301,8302,8303,10240,12288,12644,65024,65025,65026,65027,65028,65029,65030,65031,65032,65033,65034,65035,65036,65037,65038,65039,65279,65440,65520,65521,65522,65523,65524,65525,65526,65527,65528,65532,78844,119155,119156,119157,119158,119159,119160,119161,119162,917504,917505,917506,917507,917508,917509,917510,917511,917512,917513,917514,917515,917516,917517,917518,917519,917520,917521,917522,917523,917524,917525,917526,917527,917528,917529,917530,917531,917532,917533,917534,917535,917536,917537,917538,917539,917540,917541,917542,917543,917544,917545,917546,917547,917548,917549,917550,917551,917552,917553,917554,917555,917556,917557,917558,917559,917560,917561,917562,917563,917564,917565,917566,917567,917568,917569,917570,917571,917572,917573,917574,917575,917576,917577,917578,917579,917580,917581,917582,917583,917584,917585,917586,917587,917588,917589,917590,917591,917592,917593,917594,917595,917596,917597,917598,917599,917600,917601,917602,917603,917604,917605,917606,917607,917608,917609,917610,917611,917612,917613,917614,917615,917616,917617,917618,917619,917620,917621,917622,917623,917624,917625,917626,917627,917628,917629,917630,917631,917760,917761,917762,917763,917764,917765,917766,917767,917768,917769,917770,917771,917772,917773,917774,917775,917776,917777,917778,917779,917780,917781,917782,917783,917784,917785,917786,917787,917788,917789,917790,917791,917792,917793,917794,917795,917796,917797,917798,917799,917800,917801,917802,917803,917804,917805,917806,917807,917808,917809,917810,917811,917812,917813,917814,917815,917816,917817,917818,917819,917820,917821,917822,917823,917824,917825,917826,917827,917828,917829,917830,917831,917832,917833,917834,917835,917836,917837,917838,917839,917840,917841,917842,917843,917844,917845,917846,917847,917848,917849,917850,917851,917852,917853,917854,917855,917856,917857,917858,917859,917860,917861,917862,917863,917864,917865,917866,917867,917868,917869,917870,917871,917872,917873,917874,917875,917876,917877,917878,917879,917880,917881,917882,917883,917884,917885,917886,917887,917888,917889,917890,917891,917892,917893,917894,917895,917896,917897,917898,917899,917900,917901,917902,917903,917904,917905,917906,917907,917908,917909,917910,917911,917912,917913,917914,917915,917916,917917,917918,917919,917920,917921,917922,917923,917924,917925,917926,917927,917928,917929,917930,917931,917932,917933,917934,917935,917936,917937,917938,917939,917940,917941,917942,917943,917944,917945,917946,917947,917948,917949,917950,917951,917952,917953,917954,917955,917956,917957,917958,917959,917960,917961,917962,917963,917964,917965,917966,917967,917968,917969,917970,917971,917972,917973,917974,917975,917976,917977,917978,917979,917980,917981,917982,917983,917984,917985,917986,917987,917988,917989,917990,917991,917992,917993,917994,917995,917996,917997,917998,917999]")}static getData(){return this._data||(this._data=new Set(Ok.getRawData())),this._data}static isInvisibleCharacter(e){return Ok.getData().has(e)}static get codePoints(){return Ok.getData()}};Ok._data=void 0;let MC=Ok;var vi;(function(i){i.inMemory="inmemory",i.vscode="vscode",i.internal="private",i.walkThrough="walkThrough",i.walkThroughSnippet="walkThroughSnippet",i.http="http",i.https="https",i.file="file",i.mailto="mailto",i.untitled="untitled",i.data="data",i.command="command",i.vscodeRemote="vscode-remote",i.vscodeRemoteResource="vscode-remote-resource",i.vscodeManagedRemoteResource="vscode-managed-remote-resource",i.vscodeUserData="vscode-userdata",i.vscodeCustomEditor="vscode-custom-editor",i.vscodeNotebookCell="vscode-notebook-cell",i.vscodeNotebookCellMetadata="vscode-notebook-cell-metadata",i.vscodeNotebookCellMetadataDiff="vscode-notebook-cell-metadata-diff",i.vscodeNotebookCellOutput="vscode-notebook-cell-output",i.vscodeNotebookCellOutputDiff="vscode-notebook-cell-output-diff",i.vscodeNotebookMetadata="vscode-notebook-metadata",i.vscodeInteractiveInput="vscode-interactive-input",i.vscodeSettings="vscode-settings",i.vscodeWorkspaceTrust="vscode-workspace-trust",i.vscodeTerminal="vscode-terminal",i.vscodeChatCodeBlock="vscode-chat-code-block",i.vscodeChatCodeCompareBlock="vscode-chat-code-compare-block",i.vscodeChatSesssion="vscode-chat-editor",i.webviewPanel="webview-panel",i.vscodeWebview="vscode-webview",i.extension="extension",i.vscodeFileResource="vscode-file",i.tmp="tmp",i.vsls="vsls",i.vscodeSourceControl="vscode-scm",i.commentsInput="comment",i.codeSetting="code-setting",i.outputChannel="output"})(vi||(vi={}));function t6(i,e){return Gt.isUri(i)?OE(i.scheme,e):kQ(i,e+":")}function RQ(i,...e){return e.some(t=>t6(i,t))}const m1t="tkn";class _1t{constructor(){this._hosts=Object.create(null),this._ports=Object.create(null),this._connectionTokens=Object.create(null),this._preferredWebSchema="http",this._delegate=null,this._serverRootPath="/"}setPreferredWebSchema(e){this._preferredWebSchema=e}get _remoteResourcesPath(){return Xr.join(this._serverRootPath,vi.vscodeRemoteResource)}rewrite(e){if(this._delegate)try{return this._delegate(e)}catch(a){return bi(a),e}const t=e.authority;let n=this._hosts[t];n&&n.indexOf(":")!==-1&&n.indexOf("[")===-1&&(n=`[${n}]`);const s=this._ports[t],r=this._connectionTokens[t];let o=`path=${encodeURIComponent(e.path)}`;return typeof r=="string"&&(o+=`&${m1t}=${encodeURIComponent(r)}`),Gt.from({scheme:Rv?this._preferredWebSchema:vi.vscodeRemoteResource,authority:`${n}:${s}`,path:this._remoteResourcesPath,query:o})}}const MTe=new _1t,b1t="vscode-app",oO=class oO{asBrowserUri(e){const t=this.toUri(e);return this.uriToBrowserUri(t)}uriToBrowserUri(e){return e.scheme===vi.vscodeRemote?MTe.rewrite(e):e.scheme===vi.file&&(gg||s$e===`${vi.vscodeFileResource}://${oO.FALLBACK_AUTHORITY}`)?e.with({scheme:vi.vscodeFileResource,authority:e.authority||oO.FALLBACK_AUTHORITY,query:null,fragment:null}):e}toUri(e,t){if(Gt.isUri(e))return e;if(globalThis._VSCODE_FILE_ROOT){const n=globalThis._VSCODE_FILE_ROOT;if(/^\w[\w\d+.-]*:\/\//.test(n))return Gt.joinPath(Gt.parse(n,!0),e);const s=v$e(n,e);return Gt.file(s)}return Gt.parse(t.toUrl(e))}};oO.FALLBACK_AUTHORITY=b1t;let OQ=oO;const i6=new OQ;var FQ;(function(i){const e=new Map([["1",{"Cross-Origin-Opener-Policy":"same-origin"}],["2",{"Cross-Origin-Embedder-Policy":"require-corp"}],["3",{"Cross-Origin-Opener-Policy":"same-origin","Cross-Origin-Embedder-Policy":"require-corp"}]]);i.CoopAndCoep=Object.freeze(e.get("3"));const t="vscode-coi";function n(r){let o;typeof r=="string"?o=new URL(r).searchParams:r instanceof URL?o=r.searchParams:Gt.isUri(r)&&(o=new URL(r.toString(!0)).searchParams);const a=o?.get(t);if(a)return e.get(a)}i.getHeadersFromQuery=n;function s(r,o,a){if(!globalThis.crossOriginIsolated)return;const l=o&&a?"3":a?"2":"1";r instanceof URLSearchParams?r.set(t,l):r[t]=l}i.addSearchParam=s})(FQ||(FQ={}));function n6(i){return s6(i,0)}function s6(i,e){switch(typeof i){case"object":return i===null?z0(349,e):Array.isArray(i)?v1t(i,e):C1t(i,e);case"string":return BQ(i,e);case"boolean":return y1t(i,e);case"number":return z0(i,e);case"undefined":return z0(937,e);default:return z0(617,e)}}function z0(i,e){return(e<<5)-e+i|0}function y1t(i,e){return z0(i?433:863,e)}function BQ(i,e){e=z0(149417,e);for(let t=0,n=i.length;t<n;t++)e=z0(i.charCodeAt(t),e);return e}function v1t(i,e){return e=z0(104579,e),i.reduce((t,n)=>s6(n,t),e)}function C1t(i,e){return e=z0(181387,e),Object.keys(i).sort().reduce((t,n)=>(t=BQ(n,t),s6(i[n],t)),e)}function VQ(i,e,t=32){const n=t-e,s=~((1<<n)-1);return(i<<e|(s&i)>>>n)>>>0}function RTe(i,e=0,t=i.byteLength,n=0){for(let s=0;s<t;s++)i[e+s]=n}function w1t(i,e,t="0"){for(;i.length<e;)i=t+i;return i}function eI(i,e=32){return i instanceof ArrayBuffer?Array.from(new Uint8Array(i)).map(t=>t.toString(16).padStart(2,"0")).join(""):w1t((i>>>0).toString(16),e/4)}const HW=class HW{constructor(){this._h0=1732584193,this._h1=4023233417,this._h2=2562383102,this._h3=271733878,this._h4=3285377520,this._buff=new Uint8Array(67),this._buffDV=new DataView(this._buff.buffer),this._buffLen=0,this._totalLen=0,this._leftoverHighSurrogate=0,this._finished=!1}update(e){const t=e.length;if(t===0)return;const n=this._buff;let s=this._buffLen,r=this._leftoverHighSurrogate,o,a;for(r!==0?(o=r,a=-1,r=0):(o=e.charCodeAt(0),a=0);;){let l=o;if(Vo(o))if(a+1<t){const u=e.charCodeAt(a+1);PC(u)?(a++,l=LQ(o,u)):l=65533}else{r=o;break}else PC(o)&&(l=65533);if(s=this._push(n,s,l),a++,a<t)o=e.charCodeAt(a);else break}this._buffLen=s,this._leftoverHighSurrogate=r}_push(e,t,n){return n<128?e[t++]=n:n<2048?(e[t++]=192|(n&1984)>>>6,e[t++]=128|(n&63)>>>0):n<65536?(e[t++]=224|(n&61440)>>>12,e[t++]=128|(n&4032)>>>6,e[t++]=128|(n&63)>>>0):(e[t++]=240|(n&1835008)>>>18,e[t++]=128|(n&258048)>>>12,e[t++]=128|(n&4032)>>>6,e[t++]=128|(n&63)>>>0),t>=64&&(this._step(),t-=64,this._totalLen+=64,e[0]=e[64],e[1]=e[65],e[2]=e[66]),t}digest(){return this._finished||(this._finished=!0,this._leftoverHighSurrogate&&(this._leftoverHighSurrogate=0,this._buffLen=this._push(this._buff,this._buffLen,65533)),this._totalLen+=this._buffLen,this._wrapUp()),eI(this._h0)+eI(this._h1)+eI(this._h2)+eI(this._h3)+eI(this._h4)}_wrapUp(){this._buff[this._buffLen++]=128,RTe(this._buff,this._buffLen),this._buffLen>56&&(this._step(),RTe(this._buff));const e=8*this._totalLen;this._buffDV.setUint32(56,Math.floor(e/4294967296),!1),this._buffDV.setUint32(60,e%4294967296,!1),this._step()}_step(){const e=HW._bigBlock32,t=this._buffDV;for(let d=0;d<64;d+=4)e.setUint32(d,t.getUint32(d,!1),!1);for(let d=64;d<320;d+=4)e.setUint32(d,VQ(e.getUint32(d-12,!1)^e.getUint32(d-32,!1)^e.getUint32(d-56,!1)^e.getUint32(d-64,!1),1),!1);let n=this._h0,s=this._h1,r=this._h2,o=this._h3,a=this._h4,l,u,c;for(let d=0;d<80;d++)d<20?(l=s&r|~s&o,u=1518500249):d<40?(l=s^r^o,u=1859775393):d<60?(l=s&r|s&o|r&o,u=2400959708):(l=s^r^o,u=3395469782),c=VQ(n,5)+l+a+u+e.getUint32(d*4,!1)&4294967295,a=o,o=r,r=VQ(s,30),s=n,n=c;this._h0=this._h0+n&4294967295,this._h1=this._h1+s&4294967295,this._h2=this._h2+r&4294967295,this._h3=this._h3+o&4294967295,this._h4=this._h4+a&4294967295}};HW._bigBlock32=new DataView(new ArrayBuffer(320));let WQ=HW;const{getWindow:Jt,getWindows:OTe,getWindowsCount:S1t,getWindowId:r6,getWindowById:FTe,onDidRegisterWindow:o6,onWillUnregisterWindow:x1t,onDidUnregisterWindow:D1t}=(function(){const i=new Map;mbt(cs,1);const e={window:cs,disposables:new Fe};i.set(cs.vscodeWindowId,e);const t=new _e,n=new _e,s=new _e;function r(o,a){return(typeof o=="number"?i.get(o):void 0)??(a?e:void 0)}return{onDidRegisterWindow:t.event,onWillUnregisterWindow:s.event,onDidUnregisterWindow:n.event,registerWindow(o){if(i.has(o.vscodeWindowId))return ye.None;const a=new Fe,l={window:o,disposables:a.add(new Fe)};return i.set(o.vscodeWindowId,l),a.add(zt(()=>{i.delete(o.vscodeWindowId),n.fire(o)})),a.add(Ie(o,tt.BEFORE_UNLOAD,()=>{s.fire(o)})),t.fire(l),a},getWindows(){return i.values()},getWindowsCount(){return i.size},getWindowId(o){return o.vscodeWindowId},hasWindow(o){return i.has(o)},getWindowById:r,getWindow(o){const a=o;if(a?.ownerDocument?.defaultView)return a.ownerDocument.defaultView.window;const l=o;return l?.view?l.view.window:cs},getDocument(o){return Jt(o).document}}})();function ma(i){for(;i.firstChild;)i.firstChild.remove()}class E1t{constructor(e,t,n,s){this._node=e,this._type=t,this._handler=n,this._options=s||!1,this._node.addEventListener(this._type,this._handler,this._options)}dispose(){this._handler&&(this._node.removeEventListener(this._type,this._handler,this._options),this._node=null,this._handler=null)}}function Ie(i,e,t,n){return new E1t(i,e,t,n)}function BTe(i,e){return function(t){return e(new cf(i,t))}}function T1t(i){return function(e){return i(new ms(e))}}const _r=function(e,t,n,s){let r=n;return t==="click"||t==="mousedown"||t==="contextmenu"?r=BTe(Jt(e),n):(t==="keydown"||t==="keypress"||t==="keyup")&&(r=T1t(n)),Ie(e,t,r,s)},k1t=function(e,t,n){const s=BTe(Jt(e),t);return L1t(e,s,n)};function L1t(i,e,t){return Ie(i,jf&&hQ.pointerEvents?tt.POINTER_DOWN:tt.MOUSE_DOWN,e,t)}function tI(i,e,t){return $N(i,e,t)}class HQ extends oTe{constructor(e,t){super(e,t)}}let a6,ac;class $Q extends _Q{constructor(e){super(),this.defaultTarget=e&&Jt(e)}cancelAndSet(e,t,n){return super.cancelAndSet(e,t,n??this.defaultTarget)}}class UQ{constructor(e,t=0){this._runner=e,this.priority=t,this._canceled=!1}dispose(){this._canceled=!0}execute(){if(!this._canceled)try{this._runner()}catch(e){bi(e)}}static sort(e,t){return t.priority-e.priority}}(function(){const i=new Map,e=new Map,t=new Map,n=new Map,s=r=>{t.set(r,!1);const o=i.get(r)??[];for(e.set(r,o),i.set(r,[]),n.set(r,!0);o.length>0;)o.sort(UQ.sort),o.shift().execute();n.set(r,!1)};ac=(r,o,a=0)=>{const l=r6(r),u=new UQ(o,a);let c=i.get(l);return c||(c=[],i.set(l,c)),c.push(u),t.get(l)||(t.set(l,!0),r.requestAnimationFrame(()=>s(l))),u},a6=(r,o,a)=>{const l=r6(r);if(n.get(l)){const u=new UQ(o,a);let c=e.get(l);return c||(c=[],e.set(l,c)),c.push(u),u}else return ac(r,o,a)}})();function l6(i){return Jt(i).getComputedStyle(i,null)}function h1(i,e){const t=Jt(i),n=t.document;if(i!==n.body)return new Un(i.clientWidth,i.clientHeight);if(jf&&t?.visualViewport)return new Un(t.visualViewport.width,t.visualViewport.height);if(t?.innerWidth&&t.innerHeight)return new Un(t.innerWidth,t.innerHeight);if(n.body&&n.body.clientWidth&&n.body.clientHeight)return new Un(n.body.clientWidth,n.body.clientHeight);if(n.documentElement&&n.documentElement.clientWidth&&n.documentElement.clientHeight)return new Un(n.documentElement.clientWidth,n.documentElement.clientHeight);throw new Error("Unable to figure out browser width and height")}class Wr{static convertToPixels(e,t){return parseFloat(t)||0}static getDimension(e,t,n){const s=l6(e),r=s?s.getPropertyValue(t):"0";return Wr.convertToPixels(e,r)}static getBorderLeftWidth(e){return Wr.getDimension(e,"border-left-width","borderLeftWidth")}static getBorderRightWidth(e){return Wr.getDimension(e,"border-right-width","borderRightWidth")}static getBorderTopWidth(e){return Wr.getDimension(e,"border-top-width","borderTopWidth")}static getBorderBottomWidth(e){return Wr.getDimension(e,"border-bottom-width","borderBottomWidth")}static getPaddingLeft(e){return Wr.getDimension(e,"padding-left","paddingLeft")}static getPaddingRight(e){return Wr.getDimension(e,"padding-right","paddingRight")}static getPaddingTop(e){return Wr.getDimension(e,"padding-top","paddingTop")}static getPaddingBottom(e){return Wr.getDimension(e,"padding-bottom","paddingBottom")}static getMarginLeft(e){return Wr.getDimension(e,"margin-left","marginLeft")}static getMarginTop(e){return Wr.getDimension(e,"margin-top","marginTop")}static getMarginRight(e){return Wr.getDimension(e,"margin-right","marginRight")}static getMarginBottom(e){return Wr.getDimension(e,"margin-bottom","marginBottom")}}const FS=class FS{constructor(e,t){this.width=e,this.height=t}with(e=this.width,t=this.height){return e!==this.width||t!==this.height?new FS(e,t):this}static is(e){return typeof e=="object"&&typeof e.height=="number"&&typeof e.width=="number"}static lift(e){return e instanceof FS?e:new FS(e.width,e.height)}static equals(e,t){return e===t?!0:!e||!t?!1:e.width===t.width&&e.height===t.height}};FS.None=new FS(0,0);let Un=FS;function VTe(i){let e=i.offsetParent,t=i.offsetTop,n=i.offsetLeft;for(;(i=i.parentNode)!==null&&i!==i.ownerDocument.body&&i!==i.ownerDocument.documentElement;){t-=i.scrollTop;const s=HTe(i)?null:l6(i);s&&(n-=s.direction!=="rtl"?i.scrollLeft:-i.scrollLeft),i===e&&(n+=Wr.getBorderLeftWidth(i),t+=Wr.getBorderTopWidth(i),t+=i.offsetTop,n+=i.offsetLeft,e=i.offsetParent)}return{left:n,top:t}}function A1t(i,e,t){typeof e=="number"&&(i.style.width=`${e}px`),typeof t=="number"&&(i.style.height=`${t}px`)}function Ar(i){const e=i.getBoundingClientRect(),t=Jt(i);return{left:e.left+t.scrollX,top:e.top+t.scrollY,width:e.width,height:e.height}}function WTe(i){let e=i,t=1;do{const n=l6(e).zoom;n!=null&&n!=="1"&&(t*=n),e=e.parentElement}while(e!==null&&e!==e.ownerDocument.documentElement);return t}function lc(i){const e=Wr.getMarginLeft(i)+Wr.getMarginRight(i);return i.offsetWidth+e}function zQ(i){const e=Wr.getBorderLeftWidth(i)+Wr.getBorderRightWidth(i),t=Wr.getPaddingLeft(i)+Wr.getPaddingRight(i);return i.offsetWidth-e-t}function N1t(i){const e=Wr.getBorderTopWidth(i)+Wr.getBorderBottomWidth(i),t=Wr.getPaddingTop(i)+Wr.getPaddingBottom(i);return i.offsetHeight-e-t}function j0(i){const e=Wr.getMarginTop(i)+Wr.getMarginBottom(i);return i.offsetHeight+e}function Wo(i,e){return!!e?.contains(i)}function I1t(i,e,t){for(;i&&i.nodeType===i.ELEMENT_NODE;){if(i.classList.contains(e))return i;if(t){if(typeof t=="string"){if(i.classList.contains(t))return null}else if(i===t)return null}i=i.parentNode}return null}function jQ(i,e,t){return!!I1t(i,e,t)}function HTe(i){return i&&!!i.host&&!!i.mode}function u6(i){return!!RC(i)}function RC(i){for(;i.parentNode;){if(i===i.ownerDocument?.body)return null;i=i.parentNode}return HTe(i)?i:null}function Ra(){let i=BE().activeElement;for(;i?.shadowRoot;)i=i.shadowRoot.activeElement;return i}function c6(i){return Ra()===i}function $Te(i){return Wo(Ra(),i)}function BE(){return S1t()<=1?cs.document:Array.from(OTe()).map(({window:e})=>e.document).find(e=>e.hasFocus())??cs.document}function iI(){return BE().defaultView?.window??cs}const qQ=new Map;function UTe(){return new P1t}class P1t{constructor(){this._currentCssStyle="",this._styleSheet=void 0}setStyle(e){e!==this._currentCssStyle&&(this._currentCssStyle=e,this._styleSheet?this._styleSheet.innerText=e:this._styleSheet=id(cs.document.head,t=>t.innerText=e))}dispose(){this._styleSheet&&(this._styleSheet.remove(),this._styleSheet=void 0)}}function id(i=cs.document.head,e,t){const n=document.createElement("style");if(n.type="text/css",n.media="screen",e?.(n),i.appendChild(n),t&&t.add(zt(()=>n.remove())),i===cs.document.head){const s=new Set;qQ.set(n,s);for(const{window:r,disposables:o}of OTe()){if(r===cs)continue;const a=o.add(M1t(n,s,r));t?.add(a)}}return n}function M1t(i,e,t){const n=new Fe,s=i.cloneNode(!0);t.document.head.appendChild(s),n.add(zt(()=>s.remove()));for(const r of jTe(i))s.sheet?.insertRule(r.cssText,s.sheet?.cssRules.length);return n.add(R1t.observe(i,n,{childList:!0})(()=>{s.textContent=i.textContent})),e.add(s),n.add(zt(()=>e.delete(s))),n}const R1t=new class{constructor(){this.mutationObservers=new Map}observe(i,e,t){let n=this.mutationObservers.get(i);n||(n=new Map,this.mutationObservers.set(i,n));const s=n6(t);let r=n.get(s);if(r)r.users+=1;else{const o=new _e,a=new MutationObserver(u=>o.fire(u));a.observe(i,t);const l=r={users:1,observer:a,onDidMutate:o.event};e.add(zt(()=>{l.users-=1,l.users===0&&(o.dispose(),a.disconnect(),n?.delete(s),n?.size===0&&this.mutationObservers.delete(i))})),n.set(s,r)}return r.onDidMutate}};let GQ=null;function zTe(){return GQ||(GQ=id()),GQ}function jTe(i){return i?.sheet?.rules?i.sheet.rules:i?.sheet?.cssRules?i.sheet.cssRules:[]}function d6(i,e,t=zTe()){if(!(!t||!e)){t.sheet?.insertRule(`${i} {${e}}`,0);for(const n of qQ.get(t)??[])d6(i,e,n)}}function KQ(i,e=zTe()){if(!e)return;const t=jTe(e),n=[];for(let s=0;s<t.length;s++){const r=t[s];O1t(r)&&r.selectorText.indexOf(i)!==-1&&n.push(s)}for(let s=n.length-1;s>=0;s--)e.sheet?.deleteRule(n[s]);for(const s of qQ.get(e)??[])KQ(i,s)}function O1t(i){return typeof i.selectorText=="string"}function Ho(i){return i instanceof HTMLElement||i instanceof Jt(i).HTMLElement}function qTe(i){return i instanceof HTMLAnchorElement||i instanceof Jt(i).HTMLAnchorElement}function F1t(i){return i instanceof SVGElement||i instanceof Jt(i).SVGElement}function YQ(i){return i instanceof MouseEvent||i instanceof Jt(i).MouseEvent}function q0(i){return i instanceof KeyboardEvent||i instanceof Jt(i).KeyboardEvent}const tt={CLICK:"click",AUXCLICK:"auxclick",DBLCLICK:"dblclick",MOUSE_UP:"mouseup",MOUSE_DOWN:"mousedown",MOUSE_OVER:"mouseover",MOUSE_MOVE:"mousemove",MOUSE_OUT:"mouseout",MOUSE_ENTER:"mouseenter",MOUSE_LEAVE:"mouseleave",MOUSE_WHEEL:"wheel",POINTER_UP:"pointerup",POINTER_DOWN:"pointerdown",POINTER_MOVE:"pointermove",POINTER_LEAVE:"pointerleave",CONTEXT_MENU:"contextmenu",KEY_DOWN:"keydown",KEY_UP:"keyup",BEFORE_UNLOAD:"beforeunload",CHANGE:"change",FOCUS:"focus",FOCUS_IN:"focusin",FOCUS_OUT:"focusout",BLUR:"blur",INPUT:"input",DRAG_START:"dragstart",DRAG:"drag",DRAG_ENTER:"dragenter",DRAG_LEAVE:"dragleave",DRAG_OVER:"dragover",DROP:"drop",DRAG_END:"dragend"};function B1t(i){const e=i;return!!(e&&typeof e.preventDefault=="function"&&typeof e.stopPropagation=="function")}const rn={stop:(i,e)=>(i.preventDefault(),e&&i.stopPropagation(),i)};function V1t(i){const e=[];for(let t=0;i&&i.nodeType===i.ELEMENT_NODE;t++)e[t]=i.scrollTop,i=i.parentNode;return e}function W1t(i,e){for(let t=0;i&&i.nodeType===i.ELEMENT_NODE;t++)i.scrollTop!==e[t]&&(i.scrollTop=e[t]),i=i.parentNode}class h6 extends ye{static hasFocusWithin(e){if(Ho(e)){const t=RC(e),n=t?t.activeElement:e.ownerDocument.activeElement;return Wo(n,e)}else{const t=e;return Wo(t.document.activeElement,t.document)}}constructor(e){super(),this._onDidFocus=this._register(new _e),this.onDidFocus=this._onDidFocus.event,this._onDidBlur=this._register(new _e),this.onDidBlur=this._onDidBlur.event;let t=h6.hasFocusWithin(e),n=!1;const s=()=>{n=!1,t||(t=!0,this._onDidFocus.fire())},r=()=>{t&&(n=!0,(Ho(e)?Jt(e):e).setTimeout(()=>{n&&(n=!1,t=!1,this._onDidBlur.fire())},0))};this._refreshStateHandler=()=>{h6.hasFocusWithin(e)!==t&&(t?r():s())},this._register(Ie(e,tt.FOCUS,s,!0)),this._register(Ie(e,tt.BLUR,r,!0)),Ho(e)&&(this._register(Ie(e,tt.FOCUS_IN,()=>this._refreshStateHandler())),this._register(Ie(e,tt.FOCUS_OUT,()=>this._refreshStateHandler())))}}function _p(i){return new h6(i)}function H1t(i,e){return i.after(e),e}function qe(i,...e){if(i.append(...e),e.length===1&&typeof e[0]!="string")return e[0]}function XQ(i,e){return i.insertBefore(e,i.firstChild),e}function _a(i,...e){i.innerText="",qe(i,...e)}const $1t=/([\w\-]+)?(#([\w\-]+))?((\.([\w\-]+))*)/;var nI;(function(i){i.HTML="http://www.w3.org/1999/xhtml",i.SVG="http://www.w3.org/2000/svg"})(nI||(nI={}));function GTe(i,e,t,...n){const s=$1t.exec(e);if(!s)throw new Error("Bad use of emmet");const r=s[1]||"div";let o;return i!==nI.HTML?o=document.createElementNS(i,r):o=document.createElement(r),s[3]&&(o.id=s[3]),s[4]&&(o.className=s[4].replace(/\./g," ").trim()),t&&Object.entries(t).forEach(([a,l])=>{typeof l>"u"||(/^on\w+$/.test(a)?o[a]=l:a==="selected"?l&&o.setAttribute(a,"true"):o.setAttribute(a,l))}),o.append(...n),o}function it(i,e,...t){return GTe(nI.HTML,i,e,...t)}it.SVG=function(i,e,...t){return GTe(nI.SVG,i,e,...t)};function U1t(i,...e){i?uc(...e):Ql(...e)}function uc(...i){for(const e of i)e.style.display="",e.removeAttribute("aria-hidden")}function Ql(...i){for(const e of i)e.style.display="none",e.setAttribute("aria-hidden","true")}function KTe(i,e){const t=i.devicePixelRatio*e;return Math.max(1,Math.floor(t))/i.devicePixelRatio}function YTe(i){cs.open(i,"_blank","noopener")}function z1t(i,e){const t=()=>{e(),n=ac(i,t)};let n=ac(i,t);return zt(()=>n.dispose())}MTe.setPreferredWebSchema(/^https:/.test(cs.location.href)?"https":"http");function G0(i){return i?`url('${i6.uriToBrowserUri(i).toString(!0).replace(/'/g,"%27")}')`:"url('')"}function QQ(i){return`'${i.replace(/'/g,"%27")}'`}function K0(i,e){if(i!==void 0){const t=i.match(/^\s*var\((.+)\)$/);if(t){const n=t[1].split(",",2);return n.length===2&&(e=K0(n[1].trim(),e)),`var(${n[0]}, ${e})`}return i}return e}function j1t(i,e=!1){const t=document.createElement("a");return CTe("afterSanitizeAttributes",n=>{for(const s of["href","src"])if(n.hasAttribute(s)){const r=n.getAttribute(s);if(s==="href"&&r.startsWith("#"))continue;if(t.href=r,!i.includes(t.protocol.replace(/:$/,""))){if(e&&s==="src"&&t.href.startsWith("data:"))continue;n.removeAttribute(s)}}}),zt(()=>{wTe("afterSanitizeAttributes")})}const q1t=Object.freeze(["a","abbr","b","bdo","blockquote","br","caption","cite","code","col","colgroup","dd","del","details","dfn","div","dl","dt","em","figcaption","figure","h1","h2","h3","h4","h5","h6","hr","i","img","input","ins","kbd","label","li","mark","ol","p","pre","q","rp","rt","ruby","samp","small","small","source","span","strike","strong","sub","summary","sup","table","tbody","td","tfoot","th","thead","time","tr","tt","u","ul","var","video","wbr"]);class Y0 extends _e{constructor(){super(),this._subscriptions=new Fe,this._keyStatus={altKey:!1,shiftKey:!1,ctrlKey:!1,metaKey:!1},this._subscriptions.add(rt.runAndSubscribe(o6,({window:e,disposables:t})=>this.registerListeners(e,t),{window:cs,disposables:this._subscriptions}))}registerListeners(e,t){t.add(Ie(e,"keydown",n=>{if(n.defaultPrevented)return;const s=new ms(n);if(!(s.keyCode===6&&n.repeat)){if(n.altKey&&!this._keyStatus.altKey)this._keyStatus.lastKeyPressed="alt";else if(n.ctrlKey&&!this._keyStatus.ctrlKey)this._keyStatus.lastKeyPressed="ctrl";else if(n.metaKey&&!this._keyStatus.metaKey)this._keyStatus.lastKeyPressed="meta";else if(n.shiftKey&&!this._keyStatus.shiftKey)this._keyStatus.lastKeyPressed="shift";else if(s.keyCode!==6)this._keyStatus.lastKeyPressed=void 0;else return;this._keyStatus.altKey=n.altKey,this._keyStatus.ctrlKey=n.ctrlKey,this._keyStatus.metaKey=n.metaKey,this._keyStatus.shiftKey=n.shiftKey,this._keyStatus.lastKeyPressed&&(this._keyStatus.event=n,this.fire(this._keyStatus))}},!0)),t.add(Ie(e,"keyup",n=>{n.defaultPrevented||(!n.altKey&&this._keyStatus.altKey?this._keyStatus.lastKeyReleased="alt":!n.ctrlKey&&this._keyStatus.ctrlKey?this._keyStatus.lastKeyReleased="ctrl":!n.metaKey&&this._keyStatus.metaKey?this._keyStatus.lastKeyReleased="meta":!n.shiftKey&&this._keyStatus.shiftKey?this._keyStatus.lastKeyReleased="shift":this._keyStatus.lastKeyReleased=void 0,this._keyStatus.lastKeyPressed!==this._keyStatus.lastKeyReleased&&(this._keyStatus.lastKeyPressed=void 0),this._keyStatus.altKey=n.altKey,this._keyStatus.ctrlKey=n.ctrlKey,this._keyStatus.metaKey=n.metaKey,this._keyStatus.shiftKey=n.shiftKey,this._keyStatus.lastKeyReleased&&(this._keyStatus.event=n,this.fire(this._keyStatus)))},!0)),t.add(Ie(e.document.body,"mousedown",()=>{this._keyStatus.lastKeyPressed=void 0},!0)),t.add(Ie(e.document.body,"mouseup",()=>{this._keyStatus.lastKeyPressed=void 0},!0)),t.add(Ie(e.document.body,"mousemove",n=>{n.buttons&&(this._keyStatus.lastKeyPressed=void 0)},!0)),t.add(Ie(e,"blur",()=>{this.resetKeyStatus()}))}get keyStatus(){return this._keyStatus}resetKeyStatus(){this.doResetKeyStatus(),this.fire(this._keyStatus)}doResetKeyStatus(){this._keyStatus={altKey:!1,shiftKey:!1,ctrlKey:!1,metaKey:!1}}static getInstance(){return Y0.instance||(Y0.instance=new Y0),Y0.instance}dispose(){super.dispose(),this._subscriptions.dispose()}}class G1t extends ye{constructor(e,t){super(),this.element=e,this.callbacks=t,this.counter=0,this.dragStartTime=0,this.registerListeners()}registerListeners(){this.callbacks.onDragStart&&this._register(Ie(this.element,tt.DRAG_START,e=>{this.callbacks.onDragStart?.(e)})),this.callbacks.onDrag&&this._register(Ie(this.element,tt.DRAG,e=>{this.callbacks.onDrag?.(e)})),this._register(Ie(this.element,tt.DRAG_ENTER,e=>{this.counter++,this.dragStartTime=e.timeStamp,this.callbacks.onDragEnter?.(e)})),this._register(Ie(this.element,tt.DRAG_OVER,e=>{e.preventDefault(),this.callbacks.onDragOver?.(e,e.timeStamp-this.dragStartTime)})),this._register(Ie(this.element,tt.DRAG_LEAVE,e=>{this.counter--,this.counter===0&&(this.dragStartTime=0,this.callbacks.onDragLeave?.(e))})),this._register(Ie(this.element,tt.DRAG_END,e=>{this.counter=0,this.dragStartTime=0,this.callbacks.onDragEnd?.(e)})),this._register(Ie(this.element,tt.DROP,e=>{this.counter=0,this.dragStartTime=0,this.callbacks.onDrop?.(e)}))}}const XTe=/(?<tag>[\w\-]+)?(?:#(?<id>[\w\-]+))?(?<class>(?:\.(?:[\w\-]+))*)(?:@(?<name>(?:[\w\_])+))?/;function Ki(i,...e){let t,n;Array.isArray(e[0])?(t={},n=e[0]):(t=e[0]||{},n=e[1]);const s=XTe.exec(i);if(!s||!s.groups)throw new Error("Bad use of h");const r=s.groups.tag||"div",o=document.createElement(r);s.groups.id&&(o.id=s.groups.id);const a=[];if(s.groups.class)for(const u of s.groups.class.split("."))u!==""&&a.push(u);if(t.className!==void 0)for(const u of t.className.split("."))u!==""&&a.push(u);a.length>0&&(o.className=a.join(" "));const l={};if(s.groups.name&&(l[s.groups.name]=o),n)for(const u of n)Ho(u)?o.appendChild(u):typeof u=="string"?o.append(u):"root"in u&&(Object.assign(l,u),o.appendChild(u.root));for(const[u,c]of Object.entries(t))if(u!=="className")if(u==="style")for(const[d,h]of Object.entries(c))o.style.setProperty(f6(d),typeof h=="number"?h+"px":""+h);else u==="tabIndex"?o.tabIndex=c:o.setAttribute(f6(u),c.toString());return l.root=o,l}function VE(i,...e){let t,n;Array.isArray(e[0])?(t={},n=e[0]):(t=e[0]||{},n=e[1]);const s=XTe.exec(i);if(!s||!s.groups)throw new Error("Bad use of h");const r=s.groups.tag||"div",o=document.createElementNS("http://www.w3.org/2000/svg",r);s.groups.id&&(o.id=s.groups.id);const a=[];if(s.groups.class)for(const u of s.groups.class.split("."))u!==""&&a.push(u);if(t.className!==void 0)for(const u of t.className.split("."))u!==""&&a.push(u);a.length>0&&(o.className=a.join(" "));const l={};if(s.groups.name&&(l[s.groups.name]=o),n)for(const u of n)Ho(u)?o.appendChild(u):typeof u=="string"?o.append(u):"root"in u&&(Object.assign(l,u),o.appendChild(u.root));for(const[u,c]of Object.entries(t))if(u!=="className")if(u==="style")for(const[d,h]of Object.entries(c))o.style.setProperty(f6(d),typeof h=="number"?h+"px":""+h);else u==="tabIndex"?o.tabIndex=c:o.setAttribute(f6(u),c.toString());return l.root=o,l}function f6(i){return i.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}class WE{constructor(){this._hooks=new Fe,this._pointerMoveCallback=null,this._onStopCallback=null}dispose(){this.stopMonitoring(!1),this._hooks.dispose()}stopMonitoring(e,t){if(!this.isMonitoring())return;this._hooks.clear(),this._pointerMoveCallback=null;const n=this._onStopCallback;this._onStopCallback=null,e&&n&&n(t)}isMonitoring(){return!!this._pointerMoveCallback}startMonitoring(e,t,n,s,r){this.isMonitoring()&&this.stopMonitoring(!1),this._pointerMoveCallback=s,this._onStopCallback=r;let o=e;try{e.setPointerCapture(t),this._hooks.add(zt(()=>{try{e.releasePointerCapture(t)}catch{}}))}catch{o=Jt(e)}this._hooks.add(Ie(o,tt.POINTER_MOVE,a=>{if(a.buttons!==n){this.stopMonitoring(!0);return}a.preventDefault(),this._pointerMoveCallback(a)})),this._hooks.add(Ie(o,tt.POINTER_UP,a=>this.stopMonitoring(!0)))}}function ZQ(i,e){if(!i)throw new Error(e?`Assertion failed (${e})`:"Assertion Failed")}function p6(i,e="Unreachable"){throw new Error(e)}function QTe(i){i||bi(new kn("Soft Assertion Failed"))}function OC(i){if(!i()){debugger;i(),bi(new kn("Assertion Failed"))}}function JQ(i,e){let t=0;for(;t<i.length-1;){const n=i[t],s=i[t+1];if(!e(n,s))return!1;t++}return!0}function f1(i,e){const t=Math.pow(10,e);return Math.round(i*t)/t}class pn{constructor(e,t,n,s=1){this._rgbaBrand=void 0,this.r=Math.min(255,Math.max(0,e))|0,this.g=Math.min(255,Math.max(0,t))|0,this.b=Math.min(255,Math.max(0,n))|0,this.a=f1(Math.max(Math.min(1,s),0),3)}static equals(e,t){return e.r===t.r&&e.g===t.g&&e.b===t.b&&e.a===t.a}}class ff{constructor(e,t,n,s){this._hslaBrand=void 0,this.h=Math.max(Math.min(360,e),0)|0,this.s=f1(Math.max(Math.min(1,t),0),3),this.l=f1(Math.max(Math.min(1,n),0),3),this.a=f1(Math.max(Math.min(1,s),0),3)}static equals(e,t){return e.h===t.h&&e.s===t.s&&e.l===t.l&&e.a===t.a}static fromRGBA(e){const t=e.r/255,n=e.g/255,s=e.b/255,r=e.a,o=Math.max(t,n,s),a=Math.min(t,n,s);let l=0,u=0;const c=(a+o)/2,d=o-a;if(d>0){switch(u=Math.min(c<=.5?d/(2*c):d/(2-2*c),1),o){case t:l=(n-s)/d+(n<s?6:0);break;case n:l=(s-t)/d+2;break;case s:l=(t-n)/d+4;break}l*=60,l=Math.round(l)}return new ff(l,u,c,r)}static _hue2rgb(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}static toRGBA(e){const t=e.h/360,{s:n,l:s,a:r}=e;let o,a,l;if(n===0)o=a=l=s;else{const u=s<.5?s*(1+n):s+n-s*n,c=2*s-u;o=ff._hue2rgb(c,u,t+1/3),a=ff._hue2rgb(c,u,t),l=ff._hue2rgb(c,u,t-1/3)}return new pn(Math.round(o*255),Math.round(a*255),Math.round(l*255),r)}}class Kg{constructor(e,t,n,s){this._hsvaBrand=void 0,this.h=Math.max(Math.min(360,e),0)|0,this.s=f1(Math.max(Math.min(1,t),0),3),this.v=f1(Math.max(Math.min(1,n),0),3),this.a=f1(Math.max(Math.min(1,s),0),3)}static equals(e,t){return e.h===t.h&&e.s===t.s&&e.v===t.v&&e.a===t.a}static fromRGBA(e){const t=e.r/255,n=e.g/255,s=e.b/255,r=Math.max(t,n,s),o=Math.min(t,n,s),a=r-o,l=r===0?0:a/r;let u;return a===0?u=0:r===t?u=((n-s)/a%6+6)%6:r===n?u=(s-t)/a+2:u=(t-n)/a+4,new Kg(Math.round(u*60),l,r,e.a)}static toRGBA(e){const{h:t,s:n,v:s,a:r}=e,o=s*n,a=o*(1-Math.abs(t/60%2-1)),l=s-o;let[u,c,d]=[0,0,0];return t<60?(u=o,c=a):t<120?(u=a,c=o):t<180?(c=o,d=a):t<240?(c=a,d=o):t<300?(u=a,d=o):t<=360&&(u=o,d=a),u=Math.round((u+l)*255),c=Math.round((c+l)*255),d=Math.round((d+l)*255),new pn(u,c,d,r)}}let We=(fr=class{static fromHex(e){return fr.Format.CSS.parseHex(e)||fr.red}static equals(e,t){return!e&&!t?!0:!e||!t?!1:e.equals(t)}get hsla(){return this._hsla?this._hsla:ff.fromRGBA(this.rgba)}get hsva(){return this._hsva?this._hsva:Kg.fromRGBA(this.rgba)}constructor(e){if(e)if(e instanceof pn)this.rgba=e;else if(e instanceof ff)this._hsla=e,this.rgba=ff.toRGBA(e);else if(e instanceof Kg)this._hsva=e,this.rgba=Kg.toRGBA(e);else throw new Error("Invalid color ctor argument");else throw new Error("Color needs a value")}equals(e){return!!e&&pn.equals(this.rgba,e.rgba)&&ff.equals(this.hsla,e.hsla)&&Kg.equals(this.hsva,e.hsva)}getRelativeLuminance(){const e=fr._relativeLuminanceForComponent(this.rgba.r),t=fr._relativeLuminanceForComponent(this.rgba.g),n=fr._relativeLuminanceForComponent(this.rgba.b),s=.2126*e+.7152*t+.0722*n;return f1(s,4)}static _relativeLuminanceForComponent(e){const t=e/255;return t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4)}isLighter(){return(this.rgba.r*299+this.rgba.g*587+this.rgba.b*114)/1e3>=128}isLighterThan(e){const t=this.getRelativeLuminance(),n=e.getRelativeLuminance();return t>n}isDarkerThan(e){const t=this.getRelativeLuminance(),n=e.getRelativeLuminance();return t<n}lighten(e){return new fr(new ff(this.hsla.h,this.hsla.s,this.hsla.l+this.hsla.l*e,this.hsla.a))}darken(e){return new fr(new ff(this.hsla.h,this.hsla.s,this.hsla.l-this.hsla.l*e,this.hsla.a))}transparent(e){const{r:t,g:n,b:s,a:r}=this.rgba;return new fr(new pn(t,n,s,r*e))}isTransparent(){return this.rgba.a===0}isOpaque(){return this.rgba.a===1}opposite(){return new fr(new pn(255-this.rgba.r,255-this.rgba.g,255-this.rgba.b,this.rgba.a))}makeOpaque(e){if(this.isOpaque()||e.rgba.a!==1)return this;const{r:t,g:n,b:s,a:r}=this.rgba;return new fr(new pn(e.rgba.r-r*(e.rgba.r-t),e.rgba.g-r*(e.rgba.g-n),e.rgba.b-r*(e.rgba.b-s),1))}toString(){return this._toString||(this._toString=fr.Format.CSS.format(this)),this._toString}static getLighterColor(e,t,n){if(e.isLighterThan(t))return e;n=n||.5;const s=e.getRelativeLuminance(),r=t.getRelativeLuminance();return n=n*(r-s)/r,e.lighten(n)}static getDarkerColor(e,t,n){if(e.isDarkerThan(t))return e;n=n||.5;const s=e.getRelativeLuminance(),r=t.getRelativeLuminance();return n=n*(s-r)/s,e.darken(n)}},fr.white=new fr(new pn(255,255,255,1)),fr.black=new fr(new pn(0,0,0,1)),fr.red=new fr(new pn(255,0,0,1)),fr.blue=new fr(new pn(0,0,255,1)),fr.green=new fr(new pn(0,255,0,1)),fr.cyan=new fr(new pn(0,255,255,1)),fr.lightgrey=new fr(new pn(211,211,211,1)),fr.transparent=new fr(new pn(0,0,0,0)),fr);(function(i){(function(e){(function(t){function n(f){return f.rgba.a===1?`rgb(${f.rgba.r}, ${f.rgba.g}, ${f.rgba.b})`:i.Format.CSS.formatRGBA(f)}t.formatRGB=n;function s(f){return`rgba(${f.rgba.r}, ${f.rgba.g}, ${f.rgba.b}, ${+f.rgba.a.toFixed(2)})`}t.formatRGBA=s;function r(f){return f.hsla.a===1?`hsl(${f.hsla.h}, ${(f.hsla.s*100).toFixed(2)}%, ${(f.hsla.l*100).toFixed(2)}%)`:i.Format.CSS.formatHSLA(f)}t.formatHSL=r;function o(f){return`hsla(${f.hsla.h}, ${(f.hsla.s*100).toFixed(2)}%, ${(f.hsla.l*100).toFixed(2)}%, ${f.hsla.a.toFixed(2)})`}t.formatHSLA=o;function a(f){const g=f.toString(16);return g.length!==2?"0"+g:g}function l(f){return`#${a(f.rgba.r)}${a(f.rgba.g)}${a(f.rgba.b)}`}t.formatHex=l;function u(f,g=!1){return g&&f.rgba.a===1?i.Format.CSS.formatHex(f):`#${a(f.rgba.r)}${a(f.rgba.g)}${a(f.rgba.b)}${a(Math.round(f.rgba.a*255))}`}t.formatHexA=u;function c(f){return f.isOpaque()?i.Format.CSS.formatHex(f):i.Format.CSS.formatRGBA(f)}t.format=c;function d(f){const g=f.length;if(g===0||f.charCodeAt(0)!==35)return null;if(g===7){const b=16*h(f.charCodeAt(1))+h(f.charCodeAt(2)),y=16*h(f.charCodeAt(3))+h(f.charCodeAt(4)),S=16*h(f.charCodeAt(5))+h(f.charCodeAt(6));return new i(new pn(b,y,S,1))}if(g===9){const b=16*h(f.charCodeAt(1))+h(f.charCodeAt(2)),y=16*h(f.charCodeAt(3))+h(f.charCodeAt(4)),S=16*h(f.charCodeAt(5))+h(f.charCodeAt(6)),x=16*h(f.charCodeAt(7))+h(f.charCodeAt(8));return new i(new pn(b,y,S,x/255))}if(g===4){const b=h(f.charCodeAt(1)),y=h(f.charCodeAt(2)),S=h(f.charCodeAt(3));return new i(new pn(16*b+b,16*y+y,16*S+S))}if(g===5){const b=h(f.charCodeAt(1)),y=h(f.charCodeAt(2)),S=h(f.charCodeAt(3)),x=h(f.charCodeAt(4));return new i(new pn(16*b+b,16*y+y,16*S+S,(16*x+x)/255))}return null}t.parseHex=d;function h(f){switch(f){case 48:return 0;case 49:return 1;case 50:return 2;case 51:return 3;case 52:return 4;case 53:return 5;case 54:return 6;case 55:return 7;case 56:return 8;case 57:return 9;case 97:return 10;case 65:return 10;case 98:return 11;case 66:return 11;case 99:return 12;case 67:return 12;case 100:return 13;case 68:return 13;case 101:return 14;case 69:return 14;case 102:return 15;case 70:return 15}return 0}})(e.CSS||(e.CSS={}))})(i.Format||(i.Format={}))})(We||(We={}));class K1t{constructor(){this.data=new Map}add(e,t){ZQ(Eu(e)),ZQ(Ko(t)),ZQ(!this.data.has(e),"There is already an extension with this id"),this.data.set(e,t)}as(e){return this.data.get(e)||null}}const ar=new K1t,g6={JSONContribution:"base.contributions.json"};function Y1t(i){return i.length>0&&i.charAt(i.length-1)==="#"?i.substring(0,i.length-1):i}class X1t{constructor(){this._onDidChangeSchema=new _e,this.schemasById={}}registerSchema(e,t){this.schemasById[Y1t(e)]=t,this._onDidChangeSchema.fire(e)}notifySchemaChanged(e){this._onDidChangeSchema.fire(e)}}const Q1t=new X1t;ar.add(g6.JSONContribution,Q1t);function eZ(i){return`--vscode-${i.replace(/\./g,"-")}`}function vt(i){return`var(${eZ(i)})`}function Z1t(i,e){return`var(${eZ(i)}, ${e})`}function J1t(i){return i!==null&&typeof i=="object"&&"light"in i&&"dark"in i}const ZTe={ColorContribution:"base.contributions.colors"},eyt="default";class tyt{constructor(){this._onDidChangeSchema=new _e,this.onDidChangeSchema=this._onDidChangeSchema.event,this.colorSchema={type:"object",properties:{}},this.colorReferenceSchema={type:"string",enum:[],enumDescriptions:[]},this.colorsById={}}registerColor(e,t,n,s=!1,r){const o={id:e,description:n,defaults:t,needsTransparency:s,deprecationMessage:r};this.colorsById[e]=o;const a={type:"string",format:"color-hex",defaultSnippets:[{body:"${1:#ff0000}"}]};return r&&(a.deprecationMessage=r),s&&(a.pattern="^#(?:(?<rgba>[0-9a-fA-f]{3}[0-9a-eA-E])|(?:[0-9a-fA-F]{6}(?:(?![fF]{2})(?:[0-9a-fA-F]{2}))))?$",a.patternErrorMessage=w("transparecyRequired","This color must be transparent or it will obscure content")),this.colorSchema.properties[e]={description:n,oneOf:[a,{type:"string",const:eyt,description:w("useDefault","Use the default color.")}]},this.colorReferenceSchema.enum.push(e),this.colorReferenceSchema.enumDescriptions.push(n),this._onDidChangeSchema.fire(),e}getColors(){return Object.keys(this.colorsById).map(e=>this.colorsById[e])}resolveDefaultColor(e,t){const n=this.colorsById[e];if(n?.defaults){const s=J1t(n.defaults)?n.defaults[t.type]:n.defaults;return yp(s,t)}}getColorSchema(){return this.colorSchema}toString(){const e=(t,n)=>{const s=t.indexOf(".")===-1?0:1,r=n.indexOf(".")===-1?0:1;return s!==r?s-r:t.localeCompare(n)};return Object.keys(this.colorsById).sort(e).map(t=>`- \`${t}\`: ${this.colorsById[t].description}`).join(`
|
|
614
517
|
`)}}const m6=new tyt;ar.add(ZTe.ColorContribution,m6);function ie(i,e,t,n,s){return m6.registerColor(i,e,t,n,s)}function iyt(i,e){switch(i.op){case 0:return yp(i.value,e)?.darken(i.factor);case 1:return yp(i.value,e)?.lighten(i.factor);case 2:return yp(i.value,e)?.transparent(i.factor);case 3:{const t=yp(i.background,e);return t?yp(i.value,e)?.makeOpaque(t):yp(i.value,e)}case 4:for(const t of i.values){const n=yp(t,e);if(n)return n}return;case 6:return yp(e.defines(i.if)?i.then:i.else,e);case 5:{const t=yp(i.value,e);if(!t)return;const n=yp(i.background,e);return n?t.isDarkerThan(n)?We.getLighterColor(t,n,i.factor).transparent(i.transparency):We.getDarkerColor(t,n,i.factor).transparent(i.transparency):t.transparent(i.factor*i.transparency)}default:throw p6()}}function FC(i,e){return{op:0,value:i,factor:e}}function bp(i,e){return{op:1,value:i,factor:e}}function Ri(i,e){return{op:2,value:i,factor:e}}function sI(...i){return{op:4,values:i}}function nyt(i,e,t){return{op:6,if:i,then:e,else:t}}function JTe(i,e,t,n){return{op:5,value:i,background:e,factor:t,transparency:n}}function yp(i,e){if(i!==null){if(typeof i=="string")return i[0]==="#"?We.fromHex(i):e.getColor(i);if(i instanceof We)return i;if(typeof i=="object")return iyt(i,e)}}const e2e="vscode://schemas/workbench-colors",t2e=ar.as(g6.JSONContribution);t2e.registerSchema(e2e,m6.getColorSchema());const i2e=new Jn(()=>t2e.notifySchemaChanged(e2e),200);m6.onDidChangeSchema(()=>{i2e.isScheduled()||i2e.schedule()});const $i=ie("foreground",{dark:"#CCCCCC",light:"#616161",hcDark:"#FFFFFF",hcLight:"#292929"},w("foreground","Overall foreground color. This color is only used if not overridden by a component."));ie("disabledForeground",{dark:"#CCCCCC80",light:"#61616180",hcDark:"#A5A5A5",hcLight:"#7F7F7F"},w("disabledForeground","Overall foreground for disabled elements. This color is only used if not overridden by a component.")),ie("errorForeground",{dark:"#F48771",light:"#A1260D",hcDark:"#F48771",hcLight:"#B5200D"},w("errorForeground","Overall foreground color for error messages. This color is only used if not overridden by a component.")),ie("descriptionForeground",{light:"#717171",dark:Ri($i,.7),hcDark:Ri($i,.7),hcLight:Ri($i,.7)},w("descriptionForeground","Foreground color for description text providing additional information, for example for a label."));const _6=ie("icon.foreground",{dark:"#C5C5C5",light:"#424242",hcDark:"#FFFFFF",hcLight:"#292929"},w("iconForeground","The default color for icons in the workbench.")),Yg=ie("focusBorder",{dark:"#007FD4",light:"#0090F1",hcDark:"#F38518",hcLight:"#006BBD"},w("focusBorder","Overall border color for focused elements. This color is only used if not overridden by a component.")),hn=ie("contrastBorder",{light:null,dark:null,hcDark:"#6FC3DF",hcLight:"#0F4A85"},w("contrastBorder","An extra border around elements to separate them from others for greater contrast.")),Ws=ie("contrastActiveBorder",{light:null,dark:null,hcDark:Yg,hcLight:Yg},w("activeContrastBorder","An extra border around active elements to separate them from others for greater contrast."));ie("selection.background",null,w("selectionBackground","The background color of text selections in the workbench (e.g. for input fields or text areas). Note that this does not apply to selections within the editor."));const syt=ie("textLink.foreground",{light:"#006AB1",dark:"#3794FF",hcDark:"#21A6FF",hcLight:"#0F4A85"},w("textLinkForeground","Foreground color for links in text."));ie("textLink.activeForeground",{light:"#006AB1",dark:"#3794FF",hcDark:"#21A6FF",hcLight:"#0F4A85"},w("textLinkActiveForeground","Foreground color for links in text when clicked on and on mouse hover.")),ie("textSeparator.foreground",{light:"#0000002e",dark:"#ffffff2e",hcDark:We.black,hcLight:"#292929"},w("textSeparatorForeground","Color for text separators.")),ie("textPreformat.foreground",{light:"#A31515",dark:"#D7BA7D",hcDark:"#000000",hcLight:"#FFFFFF"},w("textPreformatForeground","Foreground color for preformatted text segments.")),ie("textPreformat.background",{light:"#0000001A",dark:"#FFFFFF1A",hcDark:"#FFFFFF",hcLight:"#09345f"},w("textPreformatBackground","Background color for preformatted text segments.")),ie("textBlockQuote.background",{light:"#f2f2f2",dark:"#222222",hcDark:null,hcLight:"#F2F2F2"},w("textBlockQuoteBackground","Background color for block quotes in text.")),ie("textBlockQuote.border",{light:"#007acc80",dark:"#007acc80",hcDark:We.white,hcLight:"#292929"},w("textBlockQuoteBorder","Border color for block quotes in text.")),ie("textCodeBlock.background",{light:"#dcdcdc66",dark:"#0a0a0a66",hcDark:We.black,hcLight:"#F2F2F2"},w("textCodeBlockBackground","Background color for code blocks in text.")),ie("sash.hoverBorder",Yg,w("sashActiveBorder","Border color of active sashes."));const b6=ie("badge.background",{dark:"#4D4D4D",light:"#C4C4C4",hcDark:We.black,hcLight:"#0F4A85"},w("badgeBackground","Badge background color. Badges are small information labels, e.g. for search results count.")),ryt=ie("badge.foreground",{dark:We.white,light:"#333",hcDark:We.white,hcLight:We.white},w("badgeForeground","Badge foreground color. Badges are small information labels, e.g. for search results count.")),tZ=ie("scrollbar.shadow",{dark:"#000000",light:"#DDDDDD",hcDark:null,hcLight:null},w("scrollbarShadow","Scrollbar shadow to indicate that the view is scrolled.")),n2e=ie("scrollbarSlider.background",{dark:We.fromHex("#797979").transparent(.4),light:We.fromHex("#646464").transparent(.4),hcDark:Ri(hn,.6),hcLight:Ri(hn,.4)},w("scrollbarSliderBackground","Scrollbar slider background color.")),s2e=ie("scrollbarSlider.hoverBackground",{dark:We.fromHex("#646464").transparent(.7),light:We.fromHex("#646464").transparent(.7),hcDark:Ri(hn,.8),hcLight:Ri(hn,.8)},w("scrollbarSliderHoverBackground","Scrollbar slider background color when hovering.")),r2e=ie("scrollbarSlider.activeBackground",{dark:We.fromHex("#BFBFBF").transparent(.4),light:We.fromHex("#000000").transparent(.6),hcDark:hn,hcLight:hn},w("scrollbarSliderActiveBackground","Scrollbar slider background color when clicked on.")),oyt=ie("progressBar.background",{dark:We.fromHex("#0E70C0"),light:We.fromHex("#0E70C0"),hcDark:hn,hcLight:hn},w("progressBarBackground","Background color of the progress bar that can show for long running operations.")),pf=ie("editor.background",{light:"#ffffff",dark:"#1E1E1E",hcDark:We.black,hcLight:We.white},w("editorBackground","Editor background color.")),Xg=ie("editor.foreground",{light:"#333333",dark:"#BBBBBB",hcDark:We.white,hcLight:$i},w("editorForeground","Editor default foreground color."));ie("editorStickyScroll.background",pf,w("editorStickyScrollBackground","Background color of sticky scroll in the editor")),ie("editorStickyScrollHover.background",{dark:"#2A2D2E",light:"#F0F0F0",hcDark:null,hcLight:We.fromHex("#0F4A85").transparent(.1)},w("editorStickyScrollHoverBackground","Background color of sticky scroll on hover in the editor")),ie("editorStickyScroll.border",{dark:null,light:null,hcDark:hn,hcLight:hn},w("editorStickyScrollBorder","Border color of sticky scroll in the editor")),ie("editorStickyScroll.shadow",tZ,w("editorStickyScrollShadow"," Shadow color of sticky scroll in the editor"));const nd=ie("editorWidget.background",{dark:"#252526",light:"#F3F3F3",hcDark:"#0C141F",hcLight:We.white},w("editorWidgetBackground","Background color of editor widgets, such as find/replace.")),y6=ie("editorWidget.foreground",$i,w("editorWidgetForeground","Foreground color of editor widgets, such as find/replace.")),iZ=ie("editorWidget.border",{dark:"#454545",light:"#C8C8C8",hcDark:hn,hcLight:hn},w("editorWidgetBorder","Border color of editor widgets. The color is only used if the widget chooses to have a border and if the color is not overridden by a widget."));ie("editorWidget.resizeBorder",null,w("editorWidgetResizeBorder","Border color of the resize bar of editor widgets. The color is only used if the widget chooses to have a resize border and if the color is not overridden by a widget.")),ie("editorError.background",null,w("editorError.background","Background color of error text in the editor. The color must not be opaque so as not to hide underlying decorations."),!0);const v6=ie("editorError.foreground",{dark:"#F14C4C",light:"#E51400",hcDark:"#F48771",hcLight:"#B5200D"},w("editorError.foreground","Foreground color of error squigglies in the editor.")),ayt=ie("editorError.border",{dark:null,light:null,hcDark:We.fromHex("#E47777").transparent(.8),hcLight:"#B5200D"},w("errorBorder","If set, color of double underlines for errors in the editor.")),lyt=ie("editorWarning.background",null,w("editorWarning.background","Background color of warning text in the editor. The color must not be opaque so as not to hide underlying decorations."),!0),X0=ie("editorWarning.foreground",{dark:"#CCA700",light:"#BF8803",hcDark:"#FFD370",hcLight:"#895503"},w("editorWarning.foreground","Foreground color of warning squigglies in the editor.")),rI=ie("editorWarning.border",{dark:null,light:null,hcDark:We.fromHex("#FFCC00").transparent(.8),hcLight:We.fromHex("#FFCC00").transparent(.8)},w("warningBorder","If set, color of double underlines for warnings in the editor."));ie("editorInfo.background",null,w("editorInfo.background","Background color of info text in the editor. The color must not be opaque so as not to hide underlying decorations."),!0);const Qg=ie("editorInfo.foreground",{dark:"#3794FF",light:"#1a85ff",hcDark:"#3794FF",hcLight:"#1a85ff"},w("editorInfo.foreground","Foreground color of info squigglies in the editor.")),oI=ie("editorInfo.border",{dark:null,light:null,hcDark:We.fromHex("#3794FF").transparent(.8),hcLight:"#292929"},w("infoBorder","If set, color of double underlines for infos in the editor.")),uyt=ie("editorHint.foreground",{dark:We.fromHex("#eeeeee").transparent(.7),light:"#6c6c6c",hcDark:null,hcLight:null},w("editorHint.foreground","Foreground color of hint squigglies in the editor."));ie("editorHint.border",{dark:null,light:null,hcDark:We.fromHex("#eeeeee").transparent(.8),hcLight:"#292929"},w("hintBorder","If set, color of double underlines for hints in the editor."));const cyt=ie("editorLink.activeForeground",{dark:"#4E94CE",light:We.blue,hcDark:We.cyan,hcLight:"#292929"},w("activeLinkForeground","Color of active links.")),p1=ie("editor.selectionBackground",{light:"#ADD6FF",dark:"#264F78",hcDark:"#f3f518",hcLight:"#0F4A85"},w("editorSelectionBackground","Color of the editor selection.")),dyt=ie("editor.selectionForeground",{light:null,dark:null,hcDark:"#000000",hcLight:We.white},w("editorSelectionForeground","Color of the selected text for high contrast.")),o2e=ie("editor.inactiveSelectionBackground",{light:Ri(p1,.5),dark:Ri(p1,.5),hcDark:Ri(p1,.7),hcLight:Ri(p1,.5)},w("editorInactiveSelection","Color of the selection in an inactive editor. The color must not be opaque so as not to hide underlying decorations."),!0),nZ=ie("editor.selectionHighlightBackground",{light:JTe(p1,pf,.3,.6),dark:JTe(p1,pf,.3,.6),hcDark:null,hcLight:null},w("editorSelectionHighlight","Color for regions with the same content as the selection. The color must not be opaque so as not to hide underlying decorations."),!0);ie("editor.selectionHighlightBorder",{light:null,dark:null,hcDark:Ws,hcLight:Ws},w("editorSelectionHighlightBorder","Border color for regions with the same content as the selection.")),ie("editor.findMatchBackground",{light:"#A8AC94",dark:"#515C6A",hcDark:null,hcLight:null},w("editorFindMatch","Color of the current search match."));const hyt=ie("editor.findMatchForeground",null,w("editorFindMatchForeground","Text color of the current search match.")),Q0=ie("editor.findMatchHighlightBackground",{light:"#EA5C0055",dark:"#EA5C0055",hcDark:null,hcLight:null},w("findMatchHighlight","Color of the other search matches. The color must not be opaque so as not to hide underlying decorations."),!0),fyt=ie("editor.findMatchHighlightForeground",null,w("findMatchHighlightForeground","Foreground color of the other search matches."),!0);ie("editor.findRangeHighlightBackground",{dark:"#3a3d4166",light:"#b4b4b44d",hcDark:null,hcLight:null},w("findRangeHighlight","Color of the range limiting the search. The color must not be opaque so as not to hide underlying decorations."),!0),ie("editor.findMatchBorder",{light:null,dark:null,hcDark:Ws,hcLight:Ws},w("editorFindMatchBorder","Border color of the current search match."));const g1=ie("editor.findMatchHighlightBorder",{light:null,dark:null,hcDark:Ws,hcLight:Ws},w("findMatchHighlightBorder","Border color of the other search matches.")),pyt=ie("editor.findRangeHighlightBorder",{dark:null,light:null,hcDark:Ri(Ws,.4),hcLight:Ri(Ws,.4)},w("findRangeHighlightBorder","Border color of the range limiting the search. The color must not be opaque so as not to hide underlying decorations."),!0);ie("editor.hoverHighlightBackground",{light:"#ADD6FF26",dark:"#264f7840",hcDark:"#ADD6FF26",hcLight:null},w("hoverHighlight","Highlight below the word for which a hover is shown. The color must not be opaque so as not to hide underlying decorations."),!0);const C6=ie("editorHoverWidget.background",nd,w("hoverBackground","Background color of the editor hover."));ie("editorHoverWidget.foreground",y6,w("hoverForeground","Foreground color of the editor hover."));const a2e=ie("editorHoverWidget.border",iZ,w("hoverBorder","Border color of the editor hover."));ie("editorHoverWidget.statusBarBackground",{dark:bp(C6,.2),light:FC(C6,.05),hcDark:nd,hcLight:nd},w("statusBarBackground","Background color of the editor hover status bar."));const sZ=ie("editorInlayHint.foreground",{dark:"#969696",light:"#969696",hcDark:We.white,hcLight:We.black},w("editorInlayHintForeground","Foreground color of inline hints")),rZ=ie("editorInlayHint.background",{dark:Ri(b6,.1),light:Ri(b6,.1),hcDark:Ri(We.white,.1),hcLight:Ri(b6,.1)},w("editorInlayHintBackground","Background color of inline hints")),gyt=ie("editorInlayHint.typeForeground",sZ,w("editorInlayHintForegroundTypes","Foreground color of inline hints for types")),myt=ie("editorInlayHint.typeBackground",rZ,w("editorInlayHintBackgroundTypes","Background color of inline hints for types")),_yt=ie("editorInlayHint.parameterForeground",sZ,w("editorInlayHintForegroundParameter","Foreground color of inline hints for parameters")),byt=ie("editorInlayHint.parameterBackground",rZ,w("editorInlayHintBackgroundParameter","Background color of inline hints for parameters")),yyt=ie("editorLightBulb.foreground",{dark:"#FFCC00",light:"#DDB100",hcDark:"#FFCC00",hcLight:"#007ACC"},w("editorLightBulbForeground","The color used for the lightbulb actions icon."));ie("editorLightBulbAutoFix.foreground",{dark:"#75BEFF",light:"#007ACC",hcDark:"#75BEFF",hcLight:"#007ACC"},w("editorLightBulbAutoFixForeground","The color used for the lightbulb auto fix actions icon.")),ie("editorLightBulbAi.foreground",yyt,w("editorLightBulbAiForeground","The color used for the lightbulb AI icon.")),ie("editor.snippetTabstopHighlightBackground",{dark:new We(new pn(124,124,124,.3)),light:new We(new pn(10,50,100,.2)),hcDark:new We(new pn(124,124,124,.3)),hcLight:new We(new pn(10,50,100,.2))},w("snippetTabstopHighlightBackground","Highlight background color of a snippet tabstop.")),ie("editor.snippetTabstopHighlightBorder",null,w("snippetTabstopHighlightBorder","Highlight border color of a snippet tabstop.")),ie("editor.snippetFinalTabstopHighlightBackground",null,w("snippetFinalTabstopHighlightBackground","Highlight background color of the final tabstop of a snippet.")),ie("editor.snippetFinalTabstopHighlightBorder",{dark:"#525252",light:new We(new pn(10,50,100,.5)),hcDark:"#525252",hcLight:"#292929"},w("snippetFinalTabstopHighlightBorder","Highlight border color of the final tabstop of a snippet."));const oZ=new We(new pn(155,185,85,.2)),aZ=new We(new pn(255,0,0,.2)),vyt=ie("diffEditor.insertedTextBackground",{dark:"#9ccc2c33",light:"#9ccc2c40",hcDark:null,hcLight:null},w("diffEditorInserted","Background color for text that got inserted. The color must not be opaque so as not to hide underlying decorations."),!0),Cyt=ie("diffEditor.removedTextBackground",{dark:"#ff000033",light:"#ff000033",hcDark:null,hcLight:null},w("diffEditorRemoved","Background color for text that got removed. The color must not be opaque so as not to hide underlying decorations."),!0);ie("diffEditor.insertedLineBackground",{dark:oZ,light:oZ,hcDark:null,hcLight:null},w("diffEditorInsertedLines","Background color for lines that got inserted. The color must not be opaque so as not to hide underlying decorations."),!0),ie("diffEditor.removedLineBackground",{dark:aZ,light:aZ,hcDark:null,hcLight:null},w("diffEditorRemovedLines","Background color for lines that got removed. The color must not be opaque so as not to hide underlying decorations."),!0),ie("diffEditorGutter.insertedLineBackground",null,w("diffEditorInsertedLineGutter","Background color for the margin where lines got inserted.")),ie("diffEditorGutter.removedLineBackground",null,w("diffEditorRemovedLineGutter","Background color for the margin where lines got removed."));const wyt=ie("diffEditorOverview.insertedForeground",null,w("diffEditorOverviewInserted","Diff overview ruler foreground for inserted content.")),Syt=ie("diffEditorOverview.removedForeground",null,w("diffEditorOverviewRemoved","Diff overview ruler foreground for removed content."));ie("diffEditor.insertedTextBorder",{dark:null,light:null,hcDark:"#33ff2eff",hcLight:"#374E06"},w("diffEditorInsertedOutline","Outline color for the text that got inserted.")),ie("diffEditor.removedTextBorder",{dark:null,light:null,hcDark:"#FF008F",hcLight:"#AD0707"},w("diffEditorRemovedOutline","Outline color for text that got removed.")),ie("diffEditor.border",{dark:null,light:null,hcDark:hn,hcLight:hn},w("diffEditorBorder","Border color between the two text editors.")),ie("diffEditor.diagonalFill",{dark:"#cccccc33",light:"#22222233",hcDark:null,hcLight:null},w("diffDiagonalFill","Color of the diff editor's diagonal fill. The diagonal fill is used in side-by-side diff views.")),ie("diffEditor.unchangedRegionBackground","sideBar.background",w("diffEditor.unchangedRegionBackground","The background color of unchanged blocks in the diff editor.")),ie("diffEditor.unchangedRegionForeground","foreground",w("diffEditor.unchangedRegionForeground","The foreground color of unchanged blocks in the diff editor.")),ie("diffEditor.unchangedCodeBackground",{dark:"#74747429",light:"#b8b8b829",hcDark:null,hcLight:null},w("diffEditor.unchangedCodeBackground","The background color of unchanged code in the diff editor."));const HE=ie("widget.shadow",{dark:Ri(We.black,.36),light:Ri(We.black,.16),hcDark:null,hcLight:null},w("widgetShadow","Shadow color of widgets such as find/replace inside the editor.")),l2e=ie("widget.border",{dark:null,light:null,hcDark:hn,hcLight:hn},w("widgetBorder","Border color of widgets such as find/replace inside the editor.")),u2e=ie("toolbar.hoverBackground",{dark:"#5a5d5e50",light:"#b8b8b850",hcDark:null,hcLight:null},w("toolbarHoverBackground","Toolbar background when hovering over actions using the mouse"));ie("toolbar.hoverOutline",{dark:null,light:null,hcDark:Ws,hcLight:Ws},w("toolbarHoverOutline","Toolbar outline when hovering over actions using the mouse")),ie("toolbar.activeBackground",{dark:bp(u2e,.1),light:FC(u2e,.1),hcDark:null,hcLight:null},w("toolbarActiveBackground","Toolbar background when holding the mouse over actions"));const xyt=ie("breadcrumb.foreground",Ri($i,.8),w("breadcrumbsFocusForeground","Color of focused breadcrumb items.")),Dyt=ie("breadcrumb.background",pf,w("breadcrumbsBackground","Background color of breadcrumb items.")),c2e=ie("breadcrumb.focusForeground",{light:FC($i,.2),dark:bp($i,.1),hcDark:bp($i,.1),hcLight:bp($i,.1)},w("breadcrumbsFocusForeground","Color of focused breadcrumb items.")),Eyt=ie("breadcrumb.activeSelectionForeground",{light:FC($i,.2),dark:bp($i,.1),hcDark:bp($i,.1),hcLight:bp($i,.1)},w("breadcrumbsSelectedForeground","Color of selected breadcrumb items."));ie("breadcrumbPicker.background",nd,w("breadcrumbsSelectedBackground","Background color of breadcrumb item picker."));const d2e=.5,h2e=We.fromHex("#40C8AE").transparent(d2e),f2e=We.fromHex("#40A6FF").transparent(d2e),p2e=We.fromHex("#606060").transparent(.4),lZ=.4,$E=1,uZ=ie("merge.currentHeaderBackground",{dark:h2e,light:h2e,hcDark:null,hcLight:null},w("mergeCurrentHeaderBackground","Current header background in inline merge-conflicts. The color must not be opaque so as not to hide underlying decorations."),!0);ie("merge.currentContentBackground",Ri(uZ,lZ),w("mergeCurrentContentBackground","Current content background in inline merge-conflicts. The color must not be opaque so as not to hide underlying decorations."),!0);const cZ=ie("merge.incomingHeaderBackground",{dark:f2e,light:f2e,hcDark:null,hcLight:null},w("mergeIncomingHeaderBackground","Incoming header background in inline merge-conflicts. The color must not be opaque so as not to hide underlying decorations."),!0);ie("merge.incomingContentBackground",Ri(cZ,lZ),w("mergeIncomingContentBackground","Incoming content background in inline merge-conflicts. The color must not be opaque so as not to hide underlying decorations."),!0);const dZ=ie("merge.commonHeaderBackground",{dark:p2e,light:p2e,hcDark:null,hcLight:null},w("mergeCommonHeaderBackground","Common ancestor header background in inline merge-conflicts. The color must not be opaque so as not to hide underlying decorations."),!0);ie("merge.commonContentBackground",Ri(dZ,lZ),w("mergeCommonContentBackground","Common ancestor content background in inline merge-conflicts. The color must not be opaque so as not to hide underlying decorations."),!0);const UE=ie("merge.border",{dark:null,light:null,hcDark:"#C3DF6F",hcLight:"#007ACC"},w("mergeBorder","Border color on headers and the splitter in inline merge-conflicts."));ie("editorOverviewRuler.currentContentForeground",{dark:Ri(uZ,$E),light:Ri(uZ,$E),hcDark:UE,hcLight:UE},w("overviewRulerCurrentContentForeground","Current overview ruler foreground for inline merge-conflicts.")),ie("editorOverviewRuler.incomingContentForeground",{dark:Ri(cZ,$E),light:Ri(cZ,$E),hcDark:UE,hcLight:UE},w("overviewRulerIncomingContentForeground","Incoming overview ruler foreground for inline merge-conflicts.")),ie("editorOverviewRuler.commonContentForeground",{dark:Ri(dZ,$E),light:Ri(dZ,$E),hcDark:UE,hcLight:UE},w("overviewRulerCommonContentForeground","Common ancestor overview ruler foreground for inline merge-conflicts."));const hZ=ie("editorOverviewRuler.findMatchForeground",{dark:"#d186167e",light:"#d186167e",hcDark:"#AB5A00",hcLight:"#AB5A00"},w("overviewRulerFindMatchForeground","Overview ruler marker color for find matches. The color must not be opaque so as not to hide underlying decorations."),!0),g2e=ie("editorOverviewRuler.selectionHighlightForeground","#A0A0A0CC",w("overviewRulerSelectionHighlightForeground","Overview ruler marker color for selection highlights. The color must not be opaque so as not to hide underlying decorations."),!0),Tyt=ie("problemsErrorIcon.foreground",v6,w("problemsErrorIconForeground","The color used for the problems error icon.")),kyt=ie("problemsWarningIcon.foreground",X0,w("problemsWarningIconForeground","The color used for the problems warning icon.")),Lyt=ie("problemsInfoIcon.foreground",Qg,w("problemsInfoIconForeground","The color used for the problems info icon.")),fZ=ie("minimap.findMatchHighlight",{light:"#d18616",dark:"#d18616",hcDark:"#AB5A00",hcLight:"#0F4A85"},w("minimapFindMatchHighlight","Minimap marker color for find matches."),!0),w6=ie("minimap.selectionOccurrenceHighlight",{light:"#c9c9c9",dark:"#676767",hcDark:"#ffffff",hcLight:"#0F4A85"},w("minimapSelectionOccurrenceHighlight","Minimap marker color for repeating editor selections."),!0),m2e=ie("minimap.selectionHighlight",{light:"#ADD6FF",dark:"#264F78",hcDark:"#ffffff",hcLight:"#0F4A85"},w("minimapSelectionHighlight","Minimap marker color for the editor selection."),!0),Ayt=ie("minimap.infoHighlight",{dark:Qg,light:Qg,hcDark:oI,hcLight:oI},w("minimapInfo","Minimap marker color for infos.")),Nyt=ie("minimap.warningHighlight",{dark:X0,light:X0,hcDark:rI,hcLight:rI},w("overviewRuleWarning","Minimap marker color for warnings.")),Iyt=ie("minimap.errorHighlight",{dark:new We(new pn(255,18,18,.7)),light:new We(new pn(255,18,18,.7)),hcDark:new We(new pn(255,50,50,1)),hcLight:"#B5200D"},w("minimapError","Minimap marker color for errors.")),Pyt=ie("minimap.background",null,w("minimapBackground","Minimap background color.")),Myt=ie("minimap.foregroundOpacity",We.fromHex("#000f"),w("minimapForegroundOpacity",'Opacity of foreground elements rendered in the minimap. For example, "#000000c0" will render the elements with 75% opacity.'));ie("minimapSlider.background",Ri(n2e,.5),w("minimapSliderBackground","Minimap slider background color.")),ie("minimapSlider.hoverBackground",Ri(s2e,.5),w("minimapSliderHoverBackground","Minimap slider background color when hovering.")),ie("minimapSlider.activeBackground",Ri(r2e,.5),w("minimapSliderActiveBackground","Minimap slider background color when clicked on.")),ie("charts.foreground",$i,w("chartsForeground","The foreground color used in charts.")),ie("charts.lines",Ri($i,.5),w("chartsLines","The color used for horizontal lines in charts.")),ie("charts.red",v6,w("chartsRed","The red color used in chart visualizations.")),ie("charts.blue",Qg,w("chartsBlue","The blue color used in chart visualizations.")),ie("charts.yellow",X0,w("chartsYellow","The yellow color used in chart visualizations.")),ie("charts.orange",fZ,w("chartsOrange","The orange color used in chart visualizations.")),ie("charts.green",{dark:"#89D185",light:"#388A34",hcDark:"#89D185",hcLight:"#374e06"},w("chartsGreen","The green color used in chart visualizations.")),ie("charts.purple",{dark:"#B180D7",light:"#652D90",hcDark:"#B180D7",hcLight:"#652D90"},w("chartsPurple","The purple color used in chart visualizations."));const pZ=ie("input.background",{dark:"#3C3C3C",light:We.white,hcDark:We.black,hcLight:We.white},w("inputBoxBackground","Input box background.")),_2e=ie("input.foreground",$i,w("inputBoxForeground","Input box foreground.")),b2e=ie("input.border",{dark:null,light:null,hcDark:hn,hcLight:hn},w("inputBoxBorder","Input box border.")),S6=ie("inputOption.activeBorder",{dark:"#007ACC",light:"#007ACC",hcDark:hn,hcLight:hn},w("inputBoxActiveOptionBorder","Border color of activated options in input fields.")),Ryt=ie("inputOption.hoverBackground",{dark:"#5a5d5e80",light:"#b8b8b850",hcDark:null,hcLight:null},w("inputOption.hoverBackground","Background color of activated options in input fields.")),aI=ie("inputOption.activeBackground",{dark:Ri(Yg,.4),light:Ri(Yg,.2),hcDark:We.transparent,hcLight:We.transparent},w("inputOption.activeBackground","Background hover color of options in input fields.")),x6=ie("inputOption.activeForeground",{dark:We.white,light:We.black,hcDark:$i,hcLight:$i},w("inputOption.activeForeground","Foreground color of activated options in input fields."));ie("input.placeholderForeground",{light:Ri($i,.5),dark:Ri($i,.5),hcDark:Ri($i,.7),hcLight:Ri($i,.7)},w("inputPlaceholderForeground","Input box foreground color for placeholder text."));const Oyt=ie("inputValidation.infoBackground",{dark:"#063B49",light:"#D6ECF2",hcDark:We.black,hcLight:We.white},w("inputValidationInfoBackground","Input validation background color for information severity.")),Fyt=ie("inputValidation.infoForeground",{dark:null,light:null,hcDark:null,hcLight:$i},w("inputValidationInfoForeground","Input validation foreground color for information severity.")),Byt=ie("inputValidation.infoBorder",{dark:"#007acc",light:"#007acc",hcDark:hn,hcLight:hn},w("inputValidationInfoBorder","Input validation border color for information severity.")),Vyt=ie("inputValidation.warningBackground",{dark:"#352A05",light:"#F6F5D2",hcDark:We.black,hcLight:We.white},w("inputValidationWarningBackground","Input validation background color for warning severity.")),Wyt=ie("inputValidation.warningForeground",{dark:null,light:null,hcDark:null,hcLight:$i},w("inputValidationWarningForeground","Input validation foreground color for warning severity.")),Hyt=ie("inputValidation.warningBorder",{dark:"#B89500",light:"#B89500",hcDark:hn,hcLight:hn},w("inputValidationWarningBorder","Input validation border color for warning severity.")),$yt=ie("inputValidation.errorBackground",{dark:"#5A1D1D",light:"#F2DEDE",hcDark:We.black,hcLight:We.white},w("inputValidationErrorBackground","Input validation background color for error severity.")),Uyt=ie("inputValidation.errorForeground",{dark:null,light:null,hcDark:null,hcLight:$i},w("inputValidationErrorForeground","Input validation foreground color for error severity.")),zyt=ie("inputValidation.errorBorder",{dark:"#BE1100",light:"#BE1100",hcDark:hn,hcLight:hn},w("inputValidationErrorBorder","Input validation border color for error severity.")),D6=ie("dropdown.background",{dark:"#3C3C3C",light:We.white,hcDark:We.black,hcLight:We.white},w("dropdownBackground","Dropdown background.")),jyt=ie("dropdown.listBackground",{dark:null,light:null,hcDark:We.black,hcLight:We.white},w("dropdownListBackground","Dropdown list background.")),gZ=ie("dropdown.foreground",{dark:"#F0F0F0",light:$i,hcDark:We.white,hcLight:$i},w("dropdownForeground","Dropdown foreground.")),mZ=ie("dropdown.border",{dark:D6,light:"#CECECE",hcDark:hn,hcLight:hn},w("dropdownBorder","Dropdown border.")),y2e=ie("button.foreground",We.white,w("buttonForeground","Button foreground color.")),qyt=ie("button.separator",Ri(y2e,.4),w("buttonSeparator","Button separator color.")),lI=ie("button.background",{dark:"#0E639C",light:"#007ACC",hcDark:null,hcLight:"#0F4A85"},w("buttonBackground","Button background color.")),Gyt=ie("button.hoverBackground",{dark:bp(lI,.2),light:FC(lI,.2),hcDark:lI,hcLight:lI},w("buttonHoverBackground","Button background color when hovering.")),Kyt=ie("button.border",hn,w("buttonBorder","Button border color.")),Yyt=ie("button.secondaryForeground",{dark:We.white,light:We.white,hcDark:We.white,hcLight:$i},w("buttonSecondaryForeground","Secondary button foreground color.")),_Z=ie("button.secondaryBackground",{dark:"#3A3D41",light:"#5F6A79",hcDark:null,hcLight:We.white},w("buttonSecondaryBackground","Secondary button background color.")),Xyt=ie("button.secondaryHoverBackground",{dark:bp(_Z,.2),light:FC(_Z,.2),hcDark:null,hcLight:null},w("buttonSecondaryHoverBackground","Secondary button background color when hovering.")),uI=ie("radio.activeForeground",x6,w("radioActiveForeground","Foreground color of active radio option.")),Qyt=ie("radio.activeBackground",aI,w("radioBackground","Background color of active radio option.")),Zyt=ie("radio.activeBorder",S6,w("radioActiveBorder","Border color of the active radio option.")),Jyt=ie("radio.inactiveForeground",null,w("radioInactiveForeground","Foreground color of inactive radio option.")),evt=ie("radio.inactiveBackground",null,w("radioInactiveBackground","Background color of inactive radio option.")),tvt=ie("radio.inactiveBorder",{light:Ri(uI,.2),dark:Ri(uI,.2),hcDark:Ri(uI,.4),hcLight:Ri(uI,.2)},w("radioInactiveBorder","Border color of the inactive radio option.")),ivt=ie("radio.inactiveHoverBackground",Ryt,w("radioHoverBackground","Background color of inactive active radio option when hovering.")),nvt=ie("checkbox.background",D6,w("checkbox.background","Background color of checkbox widget."));ie("checkbox.selectBackground",nd,w("checkbox.select.background","Background color of checkbox widget when the element it's in is selected."));const svt=ie("checkbox.foreground",gZ,w("checkbox.foreground","Foreground color of checkbox widget.")),rvt=ie("checkbox.border",mZ,w("checkbox.border","Border color of checkbox widget."));ie("checkbox.selectBorder",_6,w("checkbox.select.border","Border color of checkbox widget when the element it's in is selected."));const ovt=ie("keybindingLabel.background",{dark:new We(new pn(128,128,128,.17)),light:new We(new pn(221,221,221,.4)),hcDark:We.transparent,hcLight:We.transparent},w("keybindingLabelBackground","Keybinding label background color. The keybinding label is used to represent a keyboard shortcut.")),avt=ie("keybindingLabel.foreground",{dark:We.fromHex("#CCCCCC"),light:We.fromHex("#555555"),hcDark:We.white,hcLight:$i},w("keybindingLabelForeground","Keybinding label foreground color. The keybinding label is used to represent a keyboard shortcut.")),lvt=ie("keybindingLabel.border",{dark:new We(new pn(51,51,51,.6)),light:new We(new pn(204,204,204,.4)),hcDark:new We(new pn(111,195,223)),hcLight:hn},w("keybindingLabelBorder","Keybinding label border color. The keybinding label is used to represent a keyboard shortcut.")),uvt=ie("keybindingLabel.bottomBorder",{dark:new We(new pn(68,68,68,.6)),light:new We(new pn(187,187,187,.4)),hcDark:new We(new pn(111,195,223)),hcLight:$i},w("keybindingLabelBottomBorder","Keybinding label border bottom color. The keybinding label is used to represent a keyboard shortcut.")),cvt=ie("list.focusBackground",null,w("listFocusBackground","List/Tree background color for the focused item when the list/tree is active. An active list/tree has keyboard focus, an inactive does not.")),dvt=ie("list.focusForeground",null,w("listFocusForeground","List/Tree foreground color for the focused item when the list/tree is active. An active list/tree has keyboard focus, an inactive does not.")),hvt=ie("list.focusOutline",{dark:Yg,light:Yg,hcDark:Ws,hcLight:Ws},w("listFocusOutline","List/Tree outline color for the focused item when the list/tree is active. An active list/tree has keyboard focus, an inactive does not.")),fvt=ie("list.focusAndSelectionOutline",null,w("listFocusAndSelectionOutline","List/Tree outline color for the focused item when the list/tree is active and selected. An active list/tree has keyboard focus, an inactive does not.")),BC=ie("list.activeSelectionBackground",{dark:"#04395E",light:"#0060C0",hcDark:null,hcLight:We.fromHex("#0F4A85").transparent(.1)},w("listActiveSelectionBackground","List/Tree background color for the selected item when the list/tree is active. An active list/tree has keyboard focus, an inactive does not.")),cI=ie("list.activeSelectionForeground",{dark:We.white,light:We.white,hcDark:null,hcLight:null},w("listActiveSelectionForeground","List/Tree foreground color for the selected item when the list/tree is active. An active list/tree has keyboard focus, an inactive does not.")),v2e=ie("list.activeSelectionIconForeground",null,w("listActiveSelectionIconForeground","List/Tree icon foreground color for the selected item when the list/tree is active. An active list/tree has keyboard focus, an inactive does not.")),pvt=ie("list.inactiveSelectionBackground",{dark:"#37373D",light:"#E4E6F1",hcDark:null,hcLight:We.fromHex("#0F4A85").transparent(.1)},w("listInactiveSelectionBackground","List/Tree background color for the selected item when the list/tree is inactive. An active list/tree has keyboard focus, an inactive does not.")),gvt=ie("list.inactiveSelectionForeground",null,w("listInactiveSelectionForeground","List/Tree foreground color for the selected item when the list/tree is inactive. An active list/tree has keyboard focus, an inactive does not.")),mvt=ie("list.inactiveSelectionIconForeground",null,w("listInactiveSelectionIconForeground","List/Tree icon foreground color for the selected item when the list/tree is inactive. An active list/tree has keyboard focus, an inactive does not.")),_vt=ie("list.inactiveFocusBackground",null,w("listInactiveFocusBackground","List/Tree background color for the focused item when the list/tree is inactive. An active list/tree has keyboard focus, an inactive does not.")),bvt=ie("list.inactiveFocusOutline",null,w("listInactiveFocusOutline","List/Tree outline color for the focused item when the list/tree is inactive. An active list/tree has keyboard focus, an inactive does not.")),C2e=ie("list.hoverBackground",{dark:"#2A2D2E",light:"#F0F0F0",hcDark:We.white.transparent(.1),hcLight:We.fromHex("#0F4A85").transparent(.1)},w("listHoverBackground","List/Tree background when hovering over items using the mouse.")),w2e=ie("list.hoverForeground",null,w("listHoverForeground","List/Tree foreground when hovering over items using the mouse.")),yvt=ie("list.dropBackground",{dark:"#062F4A",light:"#D6EBFF",hcDark:null,hcLight:null},w("listDropBackground","List/Tree drag and drop background when moving items over other items when using the mouse.")),vvt=ie("list.dropBetweenBackground",{dark:_6,light:_6,hcDark:null,hcLight:null},w("listDropBetweenBackground","List/Tree drag and drop border color when moving items between items when using the mouse.")),zE=ie("list.highlightForeground",{dark:"#2AAAFF",light:"#0066BF",hcDark:Yg,hcLight:Yg},w("highlight","List/Tree foreground color of the match highlights when searching inside the list/tree.")),Cvt=ie("list.focusHighlightForeground",{dark:zE,light:nyt(BC,zE,"#BBE7FF"),hcDark:zE,hcLight:zE},w("listFocusHighlightForeground","List/Tree foreground color of the match highlights on actively focused items when searching inside the list/tree."));ie("list.invalidItemForeground",{dark:"#B89500",light:"#B89500",hcDark:"#B89500",hcLight:"#B5200D"},w("invalidItemForeground","List/Tree foreground color for invalid items, for example an unresolved root in explorer.")),ie("list.errorForeground",{dark:"#F88070",light:"#B01011",hcDark:null,hcLight:null},w("listErrorForeground","Foreground color of list items containing errors.")),ie("list.warningForeground",{dark:"#CCA700",light:"#855F00",hcDark:null,hcLight:null},w("listWarningForeground","Foreground color of list items containing warnings."));const wvt=ie("listFilterWidget.background",{light:FC(nd,0),dark:bp(nd,0),hcDark:nd,hcLight:nd},w("listFilterWidgetBackground","Background color of the type filter widget in lists and trees.")),Svt=ie("listFilterWidget.outline",{dark:We.transparent,light:We.transparent,hcDark:"#f38518",hcLight:"#007ACC"},w("listFilterWidgetOutline","Outline color of the type filter widget in lists and trees.")),xvt=ie("listFilterWidget.noMatchesOutline",{dark:"#BE1100",light:"#BE1100",hcDark:hn,hcLight:hn},w("listFilterWidgetNoMatchesOutline","Outline color of the type filter widget in lists and trees, when there are no matches.")),Dvt=ie("listFilterWidget.shadow",HE,w("listFilterWidgetShadow","Shadow color of the type filter widget in lists and trees."));ie("list.filterMatchBackground",{dark:Q0,light:Q0,hcDark:null,hcLight:null},w("listFilterMatchHighlight","Background color of the filtered match.")),ie("list.filterMatchBorder",{dark:g1,light:g1,hcDark:hn,hcLight:Ws},w("listFilterMatchHighlightBorder","Border color of the filtered match.")),ie("list.deemphasizedForeground",{dark:"#8C8C8C",light:"#8E8E90",hcDark:"#A7A8A9",hcLight:"#666666"},w("listDeemphasizedForeground","List/Tree foreground color for items that are deemphasized."));const S2e=ie("tree.indentGuidesStroke",{dark:"#585858",light:"#a9a9a9",hcDark:"#a9a9a9",hcLight:"#a5a5a5"},w("treeIndentGuidesStroke","Tree stroke color for the indentation guides.")),Evt=ie("tree.inactiveIndentGuidesStroke",Ri(S2e,.4),w("treeInactiveIndentGuidesStroke","Tree stroke color for the indentation guides that are not active.")),Tvt=ie("tree.tableColumnsBorder",{dark:"#CCCCCC20",light:"#61616120",hcDark:null,hcLight:null},w("tableColumnsBorder","Table border color between columns.")),kvt=ie("tree.tableOddRowsBackground",{dark:Ri($i,.04),light:Ri($i,.04),hcDark:null,hcLight:null},w("tableOddRowsBackgroundColor","Background color for odd table rows."));ie("editorActionList.background",nd,w("editorActionListBackground","Action List background color.")),ie("editorActionList.foreground",y6,w("editorActionListForeground","Action List foreground color.")),ie("editorActionList.focusForeground",cI,w("editorActionListFocusForeground","Action List foreground color for the focused item.")),ie("editorActionList.focusBackground",BC,w("editorActionListFocusBackground","Action List background color for the focused item."));const Lvt=ie("menu.border",{dark:null,light:null,hcDark:hn,hcLight:hn},w("menuBorder","Border color of menus.")),Avt=ie("menu.foreground",gZ,w("menuForeground","Foreground color of menu items.")),Nvt=ie("menu.background",D6,w("menuBackground","Background color of menu items.")),Ivt=ie("menu.selectionForeground",cI,w("menuSelectionForeground","Foreground color of the selected menu item in menus.")),Pvt=ie("menu.selectionBackground",BC,w("menuSelectionBackground","Background color of the selected menu item in menus.")),Mvt=ie("menu.selectionBorder",{dark:null,light:null,hcDark:Ws,hcLight:Ws},w("menuSelectionBorder","Border color of the selected menu item in menus.")),Rvt=ie("menu.separatorBackground",{dark:"#606060",light:"#D4D4D4",hcDark:hn,hcLight:hn},w("menuSeparatorBackground","Color of a separator menu item in menus.")),x2e=ie("quickInput.background",nd,w("pickerBackground","Quick picker background color. The quick picker widget is the container for pickers like the command palette.")),Ovt=ie("quickInput.foreground",y6,w("pickerForeground","Quick picker foreground color. The quick picker widget is the container for pickers like the command palette.")),Fvt=ie("quickInputTitle.background",{dark:new We(new pn(255,255,255,.105)),light:new We(new pn(0,0,0,.06)),hcDark:"#000000",hcLight:We.white},w("pickerTitleBackground","Quick picker title background color. The quick picker widget is the container for pickers like the command palette.")),D2e=ie("pickerGroup.foreground",{dark:"#3794FF",light:"#0066BF",hcDark:We.white,hcLight:"#0F4A85"},w("pickerGroupForeground","Quick picker color for grouping labels.")),Bvt=ie("pickerGroup.border",{dark:"#3F3F46",light:"#CCCEDB",hcDark:We.white,hcLight:"#0F4A85"},w("pickerGroupBorder","Quick picker color for grouping borders.")),E2e=ie("quickInput.list.focusBackground",null,"",void 0,w("quickInput.list.focusBackground deprecation","Please use quickInputList.focusBackground instead")),dI=ie("quickInputList.focusForeground",cI,w("quickInput.listFocusForeground","Quick picker foreground color for the focused item.")),bZ=ie("quickInputList.focusIconForeground",v2e,w("quickInput.listFocusIconForeground","Quick picker icon foreground color for the focused item.")),hI=ie("quickInputList.focusBackground",{dark:sI(E2e,BC),light:sI(E2e,BC),hcDark:null,hcLight:null},w("quickInput.listFocusBackground","Quick picker background color for the focused item."));ie("search.resultsInfoForeground",{light:$i,dark:Ri($i,.65),hcDark:$i,hcLight:$i},w("search.resultsInfoForeground","Color of the text in the search viewlet's completion message.")),ie("searchEditor.findMatchBackground",{light:Ri(Q0,.66),dark:Ri(Q0,.66),hcDark:Q0,hcLight:Q0},w("searchEditor.queryMatch","Color of the Search Editor query matches.")),ie("searchEditor.findMatchBorder",{light:Ri(g1,.66),dark:Ri(g1,.66),hcDark:g1,hcLight:g1},w("searchEditor.editorFindMatchBorder","Border color of the Search Editor query matches."));class E6{constructor(e,t){this.x=e,this.y=t,this._pageCoordinatesBrand=void 0}toClientCoordinates(e){return new T2e(this.x-e.scrollX,this.y-e.scrollY)}}class T2e{constructor(e,t){this.clientX=e,this.clientY=t,this._clientCoordinatesBrand=void 0}toPageCoordinates(e){return new E6(this.clientX+e.scrollX,this.clientY+e.scrollY)}}class Vvt{constructor(e,t,n,s){this.x=e,this.y=t,this.width=n,this.height=s,this._editorPagePositionBrand=void 0}}class Wvt{constructor(e,t){this.x=e,this.y=t,this._positionRelativeToEditorBrand=void 0}}function yZ(i){const e=Ar(i);return new Vvt(e.left,e.top,e.width,e.height)}function vZ(i,e,t){const n=e.width/i.offsetWidth,s=e.height/i.offsetHeight,r=(t.x-e.x)/n,o=(t.y-e.y)/s;return new Wvt(r,o)}class m1 extends cf{constructor(e,t,n){super(Jt(n),e),this._editorMouseEventBrand=void 0,this.isFromPointerCapture=t,this.pos=new E6(this.posx,this.posy),this.editorPos=yZ(n),this.relativePos=vZ(n,this.editorPos,this.pos)}}class Hvt{constructor(e){this._editorViewDomNode=e}_create(e){return new m1(e,!1,this._editorViewDomNode)}onContextMenu(e,t){return Ie(e,"contextmenu",n=>{t(this._create(n))})}onMouseUp(e,t){return Ie(e,"mouseup",n=>{t(this._create(n))})}onMouseDown(e,t){return Ie(e,tt.MOUSE_DOWN,n=>{t(this._create(n))})}onPointerDown(e,t){return Ie(e,tt.POINTER_DOWN,n=>{t(this._create(n),n.pointerId)})}onMouseLeave(e,t){return Ie(e,tt.MOUSE_LEAVE,n=>{t(this._create(n))})}onMouseMove(e,t){return Ie(e,"mousemove",n=>t(this._create(n)))}}class $vt{constructor(e){this._editorViewDomNode=e}_create(e){return new m1(e,!1,this._editorViewDomNode)}onPointerUp(e,t){return Ie(e,"pointerup",n=>{t(this._create(n))})}onPointerDown(e,t){return Ie(e,tt.POINTER_DOWN,n=>{t(this._create(n),n.pointerId)})}onPointerLeave(e,t){return Ie(e,tt.POINTER_LEAVE,n=>{t(this._create(n))})}onPointerMove(e,t){return Ie(e,"pointermove",n=>t(this._create(n)))}}class Uvt extends ye{constructor(e){super(),this._editorViewDomNode=e,this._globalPointerMoveMonitor=this._register(new WE),this._keydownListener=null}startMonitoring(e,t,n,s,r){this._keydownListener=_r(e.ownerDocument,"keydown",o=>{o.toKeyCodeChord().isModifierKey()||this._globalPointerMoveMonitor.stopMonitoring(!0,o.browserEvent)},!0),this._globalPointerMoveMonitor.startMonitoring(e,t,n,o=>{s(new m1(o,!0,this._editorViewDomNode))},o=>{this._keydownListener.dispose(),r(o)})}stopMonitoring(){this._globalPointerMoveMonitor.stopMonitoring(!0)}}const $W=class $W{constructor(e){this._editor=e,this._instanceId=++$W._idPool,this._counter=0,this._rules=new Map,this._garbageCollectionScheduler=new Jn(()=>this.garbageCollect(),1e3)}createClassNameRef(e){const t=this.getOrCreateRule(e);return t.increaseRefCount(),{className:t.className,dispose:()=>{t.decreaseRefCount(),this._garbageCollectionScheduler.schedule()}}}getOrCreateRule(e){const t=this.computeUniqueKey(e);let n=this._rules.get(t);if(!n){const s=this._counter++;n=new zvt(t,`dyn-rule-${this._instanceId}-${s}`,u6(this._editor.getContainerDomNode())?this._editor.getContainerDomNode():void 0,e),this._rules.set(t,n)}return n}computeUniqueKey(e){return JSON.stringify(e)}garbageCollect(){for(const e of this._rules.values())e.hasReferences()||(this._rules.delete(e.key),e.dispose())}};$W._idPool=0;let T6=$W;class zvt{constructor(e,t,n,s){this.key=e,this.className=t,this.properties=s,this._referenceCount=0,this._styleElementDisposables=new Fe,this._styleElement=id(n,void 0,this._styleElementDisposables),this._styleElement.textContent=this.getCssText(this.className,this.properties)}getCssText(e,t){let n=`.${e} {`;for(const s in t){const r=t[s];let o;typeof r=="object"?o=vt(r.id):o=r;const a=jvt(s);n+=`
|
|
615
518
|
${a}: ${o};`}return n+=`
|
|
@@ -1262,22 +1165,7 @@ ${e.toString()}`}}class _7{constructor(e=new e2,t=!1,n,s=ePt){this._services=e,t
|
|
|
1262
1165
|
`:`\r
|
|
1263
1166
|
`),await this._clipboardService.writeText(E)})),n.getOption(92)||y.push(new hc("diff.inline.revertChange",w("diff.inline.revertChange.label","Revert this change"),void 0,!0,async()=>{this._editor.revert(this._diff)})),y},autoSelectFirstItem:!0})};this._register(_r(this._diffActions,"mousedown",g=>{if(!g.leftButton)return;const{top:b,height:y}=Ar(this._diffActions),S=Math.floor(c/3);g.preventDefault(),f(g.posx,b+y+S)})),this._register(n.onMouseMove(g=>{(g.target.type===8||g.target.type===5)&&g.target.detail.viewZoneId===this._getViewZoneId()?(d=this._updateLightBulbPosition(this._marginDomNode,g.event.browserEvent.y,c),this.visibility=!0):this.visibility=!1})),this._register(n.onMouseDown(g=>{g.event.leftButton&&(g.target.type===8||g.target.type===5)&&g.target.detail.viewZoneId===this._getViewZoneId()&&(g.event.preventDefault(),d=this._updateLightBulbPosition(this._marginDomNode,g.event.browserEvent.y,c),f(g.event.posx,g.event.posy+c))}))}_updateLightBulbPosition(e,t,n){const{top:s}=Ar(e),r=t-s,o=Math.floor(r/n),a=o*n;if(this._diffActions.style.top=`${a}px`,this._viewLineCounts){let l=0;for(let u=0;u<this._viewLineCounts.length;u++)if(l+=this._viewLineCounts[u],o<l)return u}return o}}const sRe=n_("diffEditorWidget",{createHTML:i=>i});function aFt(i,e,t,n){ya(n,e.fontInfo);const s=t.length>0,r=new jE(1e4);let o=0,a=0;const l=[];for(let h=0;h<i.lineTokens.length;h++){const f=h+1,g=i.lineTokens[h],b=i.lineBreakData[h],y=Zl.filter(t,f,1,Number.MAX_SAFE_INTEGER);if(b){let S=0;for(const x of b.breakOffsets){const E=g.sliceAndInflate(S,x,0);o=Math.max(o,rRe(a,E,Zl.extractWrapped(y,S,x),s,i.mightContainNonBasicASCII,i.mightContainRTL,e,r)),a++,S=x}l.push(b.breakOffsets.length)}else l.push(1),o=Math.max(o,rRe(a,g,y,s,i.mightContainNonBasicASCII,i.mightContainRTL,e,r)),a++}o+=e.scrollBeyondLastColumn;const u=r.build(),c=sRe?sRe.createHTML(u):u;n.innerHTML=c;const d=o*e.typicalHalfwidthCharacterWidth;return{heightInLines:a,minWidthInPx:d,viewLineCounts:l}}class lFt{constructor(e,t,n,s){this.lineTokens=e,this.lineBreakData=t,this.mightContainNonBasicASCII=n,this.mightContainRTL=s}}class xse{static fromEditor(e){const t=e.getOptions(),n=t.get(50),s=t.get(146);return new xse(e.getModel()?.getOptions().tabSize||0,n,t.get(33),n.typicalHalfwidthCharacterWidth,t.get(105),t.get(67),s.decorationsWidth,t.get(118),t.get(100),t.get(95),t.get(51))}constructor(e,t,n,s,r,o,a,l,u,c,d){this.tabSize=e,this.fontInfo=t,this.disableMonospaceOptimizations=n,this.typicalHalfwidthCharacterWidth=s,this.scrollBeyondLastColumn=r,this.lineHeight=o,this.lineDecorationsWidth=a,this.stopRenderingLineAfter=l,this.renderWhitespace=u,this.renderControlCharacters=c,this.fontLigatures=d}}function rRe(i,e,t,n,s,r,o,a){a.appendString('<div class="view-line'),n||a.appendString(" char-delete"),a.appendString('" style="top:'),a.appendString(String(i*o.lineHeight)),a.appendString('px;width:1000000px;">');const l=e.getLineContent(),u=Sd.isBasicASCII(l,s),c=Sd.containsRTL(l,u,r),d=pI(new _1(o.fontInfo.isMonospace&&!o.disableMonospaceOptimizations,o.fontInfo.canUseHalfwidthRightwardsArrow,l,!1,u,c,0,e,t,o.tabSize,0,o.fontInfo.spaceWidth,o.fontInfo.middotWidth,o.fontInfo.wsmiddotWidth,o.stopRenderingLineAfter,o.renderWhitespace,o.renderControlCharacters,o.fontLigatures!==b1.OFF,null),a);return a.appendString("</div>"),d.characterMapping.getHorizontalOffset(d.characterMapping.length)}var uFt=function(i,e,t,n){var s=arguments.length,r=s<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(i,e,t,n);else for(var a=i.length-1;a>=0;a--)(o=i[a])&&(r=(s<3?o(r):s>3?o(e,t,r):o(e,t))||r);return s>3&&r&&Object.defineProperty(e,t,r),r},oRe=function(i,e){return function(t,n){e(t,n,i)}};let Dse=class extends ye{constructor(e,t,n,s,r,o,a,l,u,c){super(),this._targetWindow=e,this._editors=t,this._diffModel=n,this._options=s,this._diffEditorWidget=r,this._canIgnoreViewZoneUpdateEvent=o,this._origViewZonesToIgnore=a,this._modViewZonesToIgnore=l,this._clipboardService=u,this._contextMenuService=c,this._originalTopPadding=Bi(this,0),this._originalScrollOffset=Bi(this,0),this._originalScrollOffsetAnimated=YMe(this._targetWindow,this._originalScrollOffset,this._store),this._modifiedTopPadding=Bi(this,0),this._modifiedScrollOffset=Bi(this,0),this._modifiedScrollOffsetAnimated=YMe(this._targetWindow,this._modifiedScrollOffset,this._store);const d=Bi("invalidateAlignmentsState",0),h=this._register(new Jn(()=>{d.set(d.get()+1,void 0)},0));this._register(this._editors.original.onDidChangeViewZones(E=>{this._canIgnoreViewZoneUpdateEvent()||h.schedule()})),this._register(this._editors.modified.onDidChangeViewZones(E=>{this._canIgnoreViewZoneUpdateEvent()||h.schedule()})),this._register(this._editors.original.onDidChangeConfiguration(E=>{(E.hasChanged(147)||E.hasChanged(67))&&h.schedule()})),this._register(this._editors.modified.onDidChangeConfiguration(E=>{(E.hasChanged(147)||E.hasChanged(67))&&h.schedule()}));const f=this._diffModel.map(E=>E?zn(this,E.model.original.onDidChangeTokens,()=>E.model.original.tokenization.backgroundTokenizationState===2):void 0).map((E,k)=>E?.read(k)),g=Ht(E=>{const k=this._diffModel.read(E),A=k?.diff.read(E);if(!k||!A)return null;d.read(E);const M=this._options.renderSideBySide.read(E);return aRe(this._editors.original,this._editors.modified,A.mappings,this._origViewZonesToIgnore,this._modViewZonesToIgnore,M)}),b=Ht(E=>{const k=this._diffModel.read(E)?.movedTextToCompare.read(E);if(!k)return null;d.read(E);const A=k.changes.map(I=>new nRe(I));return aRe(this._editors.original,this._editors.modified,A,this._origViewZonesToIgnore,this._modViewZonesToIgnore,!0)});function y(){const E=document.createElement("div");return E.className="diagonal-fill",E}const S=this._register(new Fe);this.viewZones=P1(this,(E,k)=>{S.clear();const A=g.read(E)||[],I=[],M=[],B=this._modifiedTopPadding.read(E);B>0&&M.push({afterLineNumber:0,domNode:document.createElement("div"),heightInPx:B,showInHiddenAreas:!0,suppressMouseDown:!0});const F=this._originalTopPadding.read(E);F>0&&I.push({afterLineNumber:0,domNode:document.createElement("div"),heightInPx:F,showInHiddenAreas:!0,suppressMouseDown:!0});const G=this._options.renderSideBySide.read(E),q=G?void 0:this._editors.modified._getViewModel()?.createLineBreaksComputer();if(q){const he=this._editors.original.getModel();for(const Ce of A)if(Ce.diff)for(let le=Ce.originalRange.startLineNumber;le<Ce.originalRange.endLineNumberExclusive;le++){if(le>he.getLineCount())return{orig:I,mod:M};q?.addRequest(he.getLineContent(le),null,null)}}const ee=q?.finalize()??[];let Z=0;const K=this._editors.modified.getOption(67),oe=this._diffModel.read(E)?.movedTextToCompare.read(E),Y=this._editors.original.getModel()?.mightContainNonBasicASCII()??!1,de=this._editors.original.getModel()?.mightContainRTL()??!1,ae=xse.fromEditor(this._editors.modified);for(const he of A)if(he.diff&&!G&&(!this._options.useTrueInlineDiffRendering.read(E)||!Ese(he.diff))){if(!he.originalRange.isEmpty){f.read(E);const le=document.createElement("div");le.classList.add("view-lines","line-delete","monaco-mouse-cursor-text");const J=this._editors.original.getModel();if(he.originalRange.endLineNumberExclusive-1>J.getLineCount())return{orig:I,mod:M};const Ee=new lFt(he.originalRange.mapToLineArray($e=>J.tokenization.getLineTokens($e)),he.originalRange.mapToLineArray($e=>ee[Z++]),Y,de),we=[];for(const $e of he.diff.innerChanges||[])we.push(new YP($e.originalRange.delta(-(he.diff.original.startLineNumber-1)),b2.className,0));const Ae=aFt(Ee,ae,we,le),Ue=document.createElement("div");if(Ue.className="inline-deleted-margin-view-zone",ya(Ue,ae.fontInfo),this._options.renderIndicators.read(E))for(let $e=0;$e<Ae.heightInLines;$e++){const Dt=document.createElement("div");Dt.className=`delete-sign ${ni.asClassName(ZMe)}`,Dt.setAttribute("style",`position:absolute;top:${$e*K}px;width:${ae.lineDecorationsWidth}px;height:${K}px;right:0;`),Ue.appendChild(Dt)}let ze;S.add(new oFt(()=>Ab(ze),Ue,this._editors.modified,he.diff,this._diffEditorWidget,Ae.viewLineCounts,this._editors.original.getModel(),this._contextMenuService,this._clipboardService));for(let $e=0;$e<Ae.viewLineCounts.length;$e++){const Dt=Ae.viewLineCounts[$e];Dt>1&&I.push({afterLineNumber:he.originalRange.startLineNumber+$e,domNode:y(),heightInPx:(Dt-1)*K,showInHiddenAreas:!0,suppressMouseDown:!0})}M.push({afterLineNumber:he.modifiedRange.startLineNumber-1,domNode:le,heightInPx:Ae.heightInLines*K,minWidthInPx:Ae.minWidthInPx,marginDomNode:Ue,setZoneId($e){ze=$e},showInHiddenAreas:!0,suppressMouseDown:!0})}const Ce=document.createElement("div");Ce.className="gutter-delete",I.push({afterLineNumber:he.originalRange.endLineNumberExclusive-1,domNode:y(),heightInPx:he.modifiedHeightInPx,marginDomNode:Ce,showInHiddenAreas:!0,suppressMouseDown:!0})}else{const Ce=he.modifiedHeightInPx-he.originalHeightInPx;if(Ce>0){if(oe?.lineRangeMapping.original.delta(-1).deltaLength(2).contains(he.originalRange.endLineNumberExclusive-1))continue;I.push({afterLineNumber:he.originalRange.endLineNumberExclusive-1,domNode:y(),heightInPx:Ce,showInHiddenAreas:!0,suppressMouseDown:!0})}else{let le=function(){const Ee=document.createElement("div");return Ee.className="arrow-revert-change "+ni.asClassName(et.arrowRight),k.add(Ie(Ee,"mousedown",we=>we.stopPropagation())),k.add(Ie(Ee,"click",we=>{we.stopPropagation(),r.revert(he.diff)})),it("div",{},Ee)};if(oe?.lineRangeMapping.modified.delta(-1).deltaLength(2).contains(he.modifiedRange.endLineNumberExclusive-1))continue;let J;he.diff&&he.diff.modified.isEmpty&&this._options.shouldRenderOldRevertArrows.read(E)&&(J=le()),M.push({afterLineNumber:he.modifiedRange.endLineNumberExclusive-1,domNode:y(),heightInPx:-Ce,marginDomNode:J,showInHiddenAreas:!0,suppressMouseDown:!0})}}for(const he of b.read(E)??[]){if(!oe?.lineRangeMapping.original.intersect(he.originalRange)||!oe?.lineRangeMapping.modified.intersect(he.modifiedRange))continue;const Ce=he.modifiedHeightInPx-he.originalHeightInPx;Ce>0?I.push({afterLineNumber:he.originalRange.endLineNumberExclusive-1,domNode:y(),heightInPx:Ce,showInHiddenAreas:!0,suppressMouseDown:!0}):M.push({afterLineNumber:he.modifiedRange.endLineNumberExclusive-1,domNode:y(),heightInPx:-Ce,showInHiddenAreas:!0,suppressMouseDown:!0})}return{orig:I,mod:M}});let x=!1;this._register(this._editors.original.onDidScrollChange(E=>{E.scrollLeftChanged&&!x&&(x=!0,this._editors.modified.setScrollLeft(E.scrollLeft),x=!1)})),this._register(this._editors.modified.onDidScrollChange(E=>{E.scrollLeftChanged&&!x&&(x=!0,this._editors.original.setScrollLeft(E.scrollLeft),x=!1)})),this._originalScrollTop=zn(this._editors.original.onDidScrollChange,()=>this._editors.original.getScrollTop()),this._modifiedScrollTop=zn(this._editors.modified.onDidScrollChange,()=>this._editors.modified.getScrollTop()),this._register(gi(E=>{const k=this._originalScrollTop.read(E)-(this._originalScrollOffsetAnimated.get()-this._modifiedScrollOffsetAnimated.read(E))-(this._originalTopPadding.get()-this._modifiedTopPadding.read(E));k!==this._editors.modified.getScrollTop()&&this._editors.modified.setScrollTop(k,1)})),this._register(gi(E=>{const k=this._modifiedScrollTop.read(E)-(this._modifiedScrollOffsetAnimated.get()-this._originalScrollOffsetAnimated.read(E))-(this._modifiedTopPadding.get()-this._originalTopPadding.read(E));k!==this._editors.original.getScrollTop()&&this._editors.original.setScrollTop(k,1)})),this._register(gi(E=>{const k=this._diffModel.read(E)?.movedTextToCompare.read(E);let A=0;if(k){const I=this._editors.original.getTopForLineNumber(k.lineRangeMapping.original.startLineNumber,!0)-this._originalTopPadding.get();A=this._editors.modified.getTopForLineNumber(k.lineRangeMapping.modified.startLineNumber,!0)-this._modifiedTopPadding.get()-I}A>0?(this._modifiedTopPadding.set(0,void 0),this._originalTopPadding.set(A,void 0)):A<0?(this._modifiedTopPadding.set(-A,void 0),this._originalTopPadding.set(0,void 0)):setTimeout(()=>{this._modifiedTopPadding.set(0,void 0),this._originalTopPadding.set(0,void 0)},400),this._editors.modified.hasTextFocus()?this._originalScrollOffset.set(this._modifiedScrollOffset.get()-A,void 0,!0):this._modifiedScrollOffset.set(this._originalScrollOffset.get()+A,void 0,!0)}))}};Dse=uFt([oRe(8,w_),oRe(9,pc)],Dse);function aRe(i,e,t,n,s,r){const o=new J0(lRe(i,n)),a=new J0(lRe(e,s)),l=i.getOption(67),u=e.getOption(67),c=[];let d=0,h=0;function f(g,b){for(;;){let y=o.peek(),S=a.peek();if(y&&y.lineNumber>=g&&(y=void 0),S&&S.lineNumber>=b&&(S=void 0),!y&&!S)break;const x=y?y.lineNumber-d:Number.MAX_VALUE,E=S?S.lineNumber-h:Number.MAX_VALUE;x<E?(o.dequeue(),S={lineNumber:y.lineNumber-d+h,heightInPx:0}):x>E?(a.dequeue(),y={lineNumber:S.lineNumber-h+d,heightInPx:0}):(o.dequeue(),a.dequeue()),c.push({originalRange:fi.ofLength(y.lineNumber,1),modifiedRange:fi.ofLength(S.lineNumber,1),originalHeightInPx:l+y.heightInPx,modifiedHeightInPx:u+S.heightInPx,diff:void 0})}}for(const g of t){let E=function(k,A,I=!1){if(k<x||A<S)return;if(y)y=!1;else if(!I&&(k===x||A===S))return;const M=new fi(x,k),B=new fi(S,A);if(M.isEmpty&&B.isEmpty)return;const F=o.takeWhile(q=>q.lineNumber<k)?.reduce((q,ee)=>q+ee.heightInPx,0)??0,G=a.takeWhile(q=>q.lineNumber<A)?.reduce((q,ee)=>q+ee.heightInPx,0)??0;c.push({originalRange:M,modifiedRange:B,originalHeightInPx:M.length*l+F,modifiedHeightInPx:B.length*u+G,diff:g.lineRangeMapping}),x=k,S=A};const b=g.lineRangeMapping;f(b.original.startLineNumber,b.modified.startLineNumber);let y=!0,S=b.modified.startLineNumber,x=b.original.startLineNumber;if(r)for(const k of b.innerChanges||[]){k.originalRange.startColumn>1&&k.modifiedRange.startColumn>1&&E(k.originalRange.startLineNumber,k.modifiedRange.startLineNumber);const A=i.getModel(),I=k.originalRange.endLineNumber<=A.getLineCount()?A.getLineMaxColumn(k.originalRange.endLineNumber):Number.MAX_SAFE_INTEGER;k.originalRange.endColumn<I&&E(k.originalRange.endLineNumber,k.modifiedRange.endLineNumber)}E(b.original.endLineNumberExclusive,b.modified.endLineNumberExclusive,!0),d=b.original.endLineNumberExclusive,h=b.modified.endLineNumberExclusive}return f(Number.MAX_VALUE,Number.MAX_VALUE),c}function lRe(i,e){const t=[],n=[],s=i.getOption(147).wrappingColumn!==-1,r=i._getViewModel().coordinatesConverter,o=i.getOption(67);if(s)for(let l=1;l<=i.getModel().getLineCount();l++){const u=r.getModelLineViewLineCount(l);u>1&&n.push({lineNumber:l,heightInPx:o*(u-1)})}for(const l of i.getWhitespaces()){if(e.has(l.id))continue;const u=l.afterLineNumber===0?0:r.convertViewPositionToModelPosition(new me(l.afterLineNumber,1)).lineNumber;t.push({lineNumber:u,heightInPx:l.height})}return OOt(t,n,l=>l.lineNumber,(l,u)=>({lineNumber:l.lineNumber,heightInPx:l.heightInPx+u.heightInPx}))}function Ese(i){return i.innerChanges?i.innerChanges.every(e=>uRe(e.modifiedRange)&&uRe(e.originalRange)||e.originalRange.equalsRange(new U(1,1,1,1))):!1}function uRe(i){return i.startLineNumber===i.endLineNumber}const bO=class bO extends ye{constructor(e,t,n,s,r){super(),this._rootElement=e,this._diffModel=t,this._originalEditorLayoutInfo=n,this._modifiedEditorLayoutInfo=s,this._editors=r,this._originalScrollTop=zn(this,this._editors.original.onDidScrollChange,()=>this._editors.original.getScrollTop()),this._modifiedScrollTop=zn(this,this._editors.modified.onDidScrollChange,()=>this._editors.modified.getScrollTop()),this._viewZonesChanged=Ba("onDidChangeViewZones",this._editors.modified.onDidChangeViewZones),this.width=Bi(this,0),this._modifiedViewZonesChangedSignal=Ba("modified.onDidChangeViewZones",this._editors.modified.onDidChangeViewZones),this._originalViewZonesChangedSignal=Ba("original.onDidChangeViewZones",this._editors.original.onDidChangeViewZones),this._state=P1(this,(c,d)=>{this._element.replaceChildren();const h=this._diffModel.read(c),f=h?.diff.read(c)?.movedTexts;if(!f||f.length===0){this.width.set(0,void 0);return}this._viewZonesChanged.read(c);const g=this._originalEditorLayoutInfo.read(c),b=this._modifiedEditorLayoutInfo.read(c);if(!g||!b){this.width.set(0,void 0);return}this._modifiedViewZonesChangedSignal.read(c),this._originalViewZonesChangedSignal.read(c);const y=f.map(M=>{function B(de,ae){const he=ae.getTopForLineNumber(de.startLineNumber,!0),Ce=ae.getTopForLineNumber(de.endLineNumberExclusive,!0);return(he+Ce)/2}const F=B(M.lineRangeMapping.original,this._editors.original),G=this._originalScrollTop.read(c),q=B(M.lineRangeMapping.modified,this._editors.modified),ee=this._modifiedScrollTop.read(c),Z=F-G,K=q-ee,oe=Math.min(F,q),Y=Math.max(F,q);return{range:new Ui(oe,Y),from:Z,to:K,fromWithoutScroll:F,toWithoutScroll:q,move:M}});y.sort(bCt(Jl(M=>M.fromWithoutScroll>M.toWithoutScroll,yCt),Jl(M=>M.fromWithoutScroll>M.toWithoutScroll?M.fromWithoutScroll:-M.toWithoutScroll,mf)));const S=Tse.compute(y.map(M=>M.range)),x=10,E=g.verticalScrollbarWidth,k=(S.getTrackCount()-1)*10+x*2,A=E+k+(b.contentLeft-bO.movedCodeBlockPadding);let I=0;for(const M of y){const B=S.getTrack(I),F=E+x+B*10,G=15,q=15,ee=A,Z=b.glyphMarginWidth+b.lineNumbersWidth,K=18,oe=document.createElementNS("http://www.w3.org/2000/svg","rect");oe.classList.add("arrow-rectangle"),oe.setAttribute("x",`${ee-Z}`),oe.setAttribute("y",`${M.to-K/2}`),oe.setAttribute("width",`${Z}`),oe.setAttribute("height",`${K}`),this._element.appendChild(oe);const Y=document.createElementNS("http://www.w3.org/2000/svg","g"),de=document.createElementNS("http://www.w3.org/2000/svg","path");de.setAttribute("d",`M 0 ${M.from} L ${F} ${M.from} L ${F} ${M.to} L ${ee-q} ${M.to}`),de.setAttribute("fill","none"),Y.appendChild(de);const ae=document.createElementNS("http://www.w3.org/2000/svg","polygon");ae.classList.add("arrow"),d.add(gi(he=>{de.classList.toggle("currentMove",M.move===h.activeMovedText.read(he)),ae.classList.toggle("currentMove",M.move===h.activeMovedText.read(he))})),ae.setAttribute("points",`${ee-q},${M.to-G/2} ${ee},${M.to} ${ee-q},${M.to+G/2}`),Y.appendChild(ae),this._element.appendChild(Y),I++}this.width.set(k,void 0)}),this._element=document.createElementNS("http://www.w3.org/2000/svg","svg"),this._element.setAttribute("class","moved-blocks-lines"),this._rootElement.appendChild(this._element),this._register(zt(()=>this._element.remove())),this._register(gi(c=>{const d=this._originalEditorLayoutInfo.read(c),h=this._modifiedEditorLayoutInfo.read(c);!d||!h||(this._element.style.left=`${d.width-d.verticalScrollbarWidth}px`,this._element.style.height=`${d.height}px`,this._element.style.width=`${d.verticalScrollbarWidth+d.contentLeft-bO.movedCodeBlockPadding+this.width.read(c)}px`)})),this._register(AT(this._state));const o=Ht(c=>{const h=this._diffModel.read(c)?.diff.read(c);return h?h.movedTexts.map(f=>({move:f,original:new _2(dh(f.lineRangeMapping.original.startLineNumber-1),18),modified:new _2(dh(f.lineRangeMapping.modified.startLineNumber-1),18)})):[]});this._register(G7(this._editors.original,o.map(c=>c.map(d=>d.original)))),this._register(G7(this._editors.modified,o.map(c=>c.map(d=>d.modified)))),this._register(Bu((c,d)=>{const h=o.read(c);for(const f of h)d.add(new cRe(this._editors.original,f.original,f.move,"original",this._diffModel.get())),d.add(new cRe(this._editors.modified,f.modified,f.move,"modified",this._diffModel.get()))}));const a=Ba("original.onDidFocusEditorWidget",c=>this._editors.original.onDidFocusEditorWidget(()=>setTimeout(()=>c(void 0),0))),l=Ba("modified.onDidFocusEditorWidget",c=>this._editors.modified.onDidFocusEditorWidget(()=>setTimeout(()=>c(void 0),0)));let u="modified";this._register(lP({createEmptyChangeSummary:()=>{},handleChange:(c,d)=>(c.didChange(a)&&(u="original"),c.didChange(l)&&(u="modified"),!0)},c=>{a.read(c),l.read(c);const d=this._diffModel.read(c);if(!d)return;const h=d.diff.read(c);let f;if(h&&u==="original"){const g=this._editors.originalCursor.read(c);g&&(f=h.movedTexts.find(b=>b.lineRangeMapping.original.contains(g.lineNumber)))}if(h&&u==="modified"){const g=this._editors.modifiedCursor.read(c);g&&(f=h.movedTexts.find(b=>b.lineRangeMapping.modified.contains(g.lineNumber)))}f!==d.movedTextToCompare.get()&&d.movedTextToCompare.set(void 0,void 0),d.setActiveMovedText(f)}))}};bO.movedCodeBlockPadding=4;let y2=bO;class Tse{static compute(e){const t=[],n=[];for(const s of e){let r=t.findIndex(o=>!o.intersectsStrict(s));r===-1&&(t.length>=6?r=dxt(t,Jl(a=>a.intersectWithRangeLength(s),mf)):(r=t.length,t.push(new hJ))),t[r].addRange(s),n.push(r)}return new Tse(t.length,n)}constructor(e,t){this._trackCount=e,this.trackPerLineIdx=t}getTrack(e){return this.trackPerLineIdx[e]}getTrackCount(){return this._trackCount}}class cRe extends use{constructor(e,t,n,s,r){const o=Ki("div.diff-hidden-lines-widget");super(e,t,o.root),this._editor=e,this._move=n,this._kind=s,this._diffModel=r,this._nodes=Ki("div.diff-moved-code-block",{style:{marginRight:"4px"}},[Ki("div.text-content@textContent"),Ki("div.action-bar@actionBar")]),o.root.appendChild(this._nodes.root);const a=zn(this._editor.onDidLayoutChange,()=>this._editor.getLayoutInfo());this._register(T_(this._nodes.root,{paddingRight:a.map(h=>h.verticalScrollbarWidth)}));let l;n.changes.length>0?l=this._kind==="original"?w("codeMovedToWithChanges","Code moved with changes to line {0}-{1}",this._move.lineRangeMapping.modified.startLineNumber,this._move.lineRangeMapping.modified.endLineNumberExclusive-1):w("codeMovedFromWithChanges","Code moved with changes from line {0}-{1}",this._move.lineRangeMapping.original.startLineNumber,this._move.lineRangeMapping.original.endLineNumberExclusive-1):l=this._kind==="original"?w("codeMovedTo","Code moved to line {0}-{1}",this._move.lineRangeMapping.modified.startLineNumber,this._move.lineRangeMapping.modified.endLineNumberExclusive-1):w("codeMovedFrom","Code moved from line {0}-{1}",this._move.lineRangeMapping.original.startLineNumber,this._move.lineRangeMapping.original.endLineNumberExclusive-1);const u=this._register(new md(this._nodes.actionBar,{highlightToggledItems:!0})),c=new hc("",l,"",!1);u.push(c,{icon:!1,label:!0});const d=new hc("","Compare",ni.asClassName(et.compareChanges),!0,()=>{this._editor.focus(),this._diffModel.movedTextToCompare.set(this._diffModel.movedTextToCompare.get()===n?void 0:this._move,void 0)});this._register(gi(h=>{const f=this._diffModel.movedTextToCompare.read(h)===n;d.checked=f})),u.push(d,{icon:!1,label:!0})}}class cFt extends ye{constructor(e,t,n,s){super(),this._editors=e,this._diffModel=t,this._options=n,this._decorations=Ht(this,r=>{const o=this._diffModel.read(r),a=o?.diff.read(r);if(!a)return null;const l=this._diffModel.read(r).movedTextToCompare.read(r),u=this._options.renderIndicators.read(r),c=this._options.showEmptyDecorations.read(r),d=[],h=[];if(!l)for(const g of a.mappings)if(g.lineRangeMapping.original.isEmpty||d.push({range:g.lineRangeMapping.original.toInclusiveRange(),options:u?bM:eRe}),g.lineRangeMapping.modified.isEmpty||h.push({range:g.lineRangeMapping.modified.toInclusiveRange(),options:u?Y7:JMe}),g.lineRangeMapping.modified.isEmpty||g.lineRangeMapping.original.isEmpty)g.lineRangeMapping.original.isEmpty||d.push({range:g.lineRangeMapping.original.toInclusiveRange(),options:_se}),g.lineRangeMapping.modified.isEmpty||h.push({range:g.lineRangeMapping.modified.toInclusiveRange(),options:gse});else{const b=this._options.useTrueInlineDiffRendering.read(r)&&Ese(g.lineRangeMapping);for(const y of g.lineRangeMapping.innerChanges||[])if(g.lineRangeMapping.original.contains(y.originalRange.startLineNumber)&&d.push({range:y.originalRange,options:y.originalRange.isEmpty()&&c?bse:b2}),g.lineRangeMapping.modified.contains(y.modifiedRange.startLineNumber)&&h.push({range:y.modifiedRange,options:y.modifiedRange.isEmpty()&&c&&!b?mse:X7}),b){const S=o.model.original.getValueInRange(y.originalRange);h.push({range:y.modifiedRange,options:{description:"deleted-text",before:{content:S,inlineClassName:"inline-deleted-text"},zIndex:1e5,showIfCollapsed:!0}})}}if(l)for(const g of l.changes){const b=g.original.toInclusiveRange();b&&d.push({range:b,options:u?bM:eRe});const y=g.modified.toInclusiveRange();y&&h.push({range:y,options:u?Y7:JMe});for(const S of g.innerChanges||[])d.push({range:S.originalRange,options:b2}),h.push({range:S.modifiedRange,options:X7})}const f=this._diffModel.read(r).activeMovedText.read(r);for(const g of a.movedTexts)d.push({range:g.lineRangeMapping.original.toInclusiveRange(),options:{description:"moved",blockClassName:"movedOriginal"+(g===f?" currentMove":""),blockPadding:[y2.movedCodeBlockPadding,0,y2.movedCodeBlockPadding,y2.movedCodeBlockPadding]}}),h.push({range:g.lineRangeMapping.modified.toInclusiveRange(),options:{description:"moved",blockClassName:"movedModified"+(g===f?" currentMove":""),blockPadding:[4,0,4,4]}});return{originalDecorations:d,modifiedDecorations:h}}),this._register(q7(this._editors.original,this._decorations.map(r=>r?.originalDecorations||[]))),this._register(q7(this._editors.modified,this._decorations.map(r=>r?.modifiedDecorations||[])))}}class dFt{resetSash(){this._sashRatio.set(void 0,void 0)}constructor(e,t){this._options=e,this.dimensions=t,this.sashLeft=oP(this,n=>{const s=this._sashRatio.read(n)??this._options.splitViewDefaultRatio.read(n);return this._computeSashLeft(s,n)},(n,s)=>{const r=this.dimensions.width.get();this._sashRatio.set(n/r,s)}),this._sashRatio=Bi(this,void 0)}_computeSashLeft(e,t){const n=this.dimensions.width.read(t),s=Math.floor(this._options.splitViewDefaultRatio.read(t)*n),r=this._options.enableSplitViewResizing.read(t)?Math.floor(e*n):s,o=100;return n<=o*2?s:r<o?o:r>n-o?n-o:r}}class dRe extends ye{constructor(e,t,n,s,r,o){super(),this._domNode=e,this._dimensions=t,this._enabled=n,this._boundarySashes=s,this.sashLeft=r,this._resetSash=o,this._sash=this._register(new fl(this._domNode,{getVerticalSashTop:a=>0,getVerticalSashLeft:a=>this.sashLeft.get(),getVerticalSashHeight:a=>this._dimensions.height.get()},{orientation:0})),this._startSashPosition=void 0,this._register(this._sash.onDidStart(()=>{this._startSashPosition=this.sashLeft.get()})),this._register(this._sash.onDidChange(a=>{this.sashLeft.set(this._startSashPosition+(a.currentX-a.startX),void 0)})),this._register(this._sash.onDidEnd(()=>this._sash.layout())),this._register(this._sash.onDidReset(()=>this._resetSash())),this._register(gi(a=>{const l=this._boundarySashes.read(a);l&&(this._sash.orthogonalEndSash=l.bottom)})),this._register(gi(a=>{const l=this._enabled.read(a);this._sash.state=l?3:0,this.sashLeft.read(a),this._dimensions.height.read(a),this._sash.layout()}))}}class hFt extends ye{constructor(e,t,n){super(),this._editor=e,this._domNode=t,this.itemProvider=n,this.scrollTop=zn(this,this._editor.onDidScrollChange,o=>this._editor.getScrollTop()),this.isScrollTopZero=this.scrollTop.map(o=>o===0),this.modelAttached=zn(this,this._editor.onDidChangeModel,o=>this._editor.hasModel()),this.editorOnDidChangeViewZones=Ba("onDidChangeViewZones",this._editor.onDidChangeViewZones),this.editorOnDidContentSizeChange=Ba("onDidContentSizeChange",this._editor.onDidContentSizeChange),this.domNodeSizeChanged=LT("domNodeSizeChanged"),this.views=new Map,this._domNode.className="gutter monaco-editor";const s=this._domNode.appendChild(Ki("div.scroll-decoration",{role:"presentation",ariaHidden:"true",style:{width:"100%"}}).root),r=new ResizeObserver(()=>{dr(o=>{this.domNodeSizeChanged.trigger(o)})});r.observe(this._domNode),this._register(zt(()=>r.disconnect())),this._register(gi(o=>{s.className=this.isScrollTopZero.read(o)?"":"scroll-decoration"})),this._register(gi(o=>this.render(o)))}dispose(){super.dispose(),_a(this._domNode)}render(e){if(!this.modelAttached.read(e))return;this.domNodeSizeChanged.read(e),this.editorOnDidChangeViewZones.read(e),this.editorOnDidContentSizeChange.read(e);const t=this.scrollTop.read(e),n=this._editor.getVisibleRanges(),s=new Set(this.views.keys()),r=Ui.ofStartAndLength(0,this._domNode.clientHeight);if(!r.isEmpty)for(const o of n){const a=new fi(o.startLineNumber,o.endLineNumber+1),l=this.itemProvider.getIntersectingGutterItems(a,e);dr(u=>{for(const c of l){if(!c.range.intersect(a))continue;s.delete(c.id);let d=this.views.get(c.id);if(d)d.item.set(c,u);else{const b=document.createElement("div");this._domNode.appendChild(b);const y=Bi("item",c),S=this.itemProvider.createView(y,b);d=new fFt(y,S,b),this.views.set(c.id,d)}const h=c.range.startLineNumber<=this._editor.getModel().getLineCount()?this._editor.getTopForLineNumber(c.range.startLineNumber,!0)-t:this._editor.getBottomForLineNumber(c.range.startLineNumber-1,!1)-t,g=(c.range.endLineNumberExclusive===1?Math.max(h,this._editor.getTopForLineNumber(c.range.startLineNumber,!1)-t):Math.max(h,this._editor.getBottomForLineNumber(c.range.endLineNumberExclusive-1,!0)-t))-h;d.domNode.style.top=`${h}px`,d.domNode.style.height=`${g}px`,d.gutterItemView.layout(Ui.ofStartAndLength(h,g),r)}})}for(const o of s){const a=this.views.get(o);a.gutterItemView.dispose(),a.domNode.remove(),this.views.delete(o)}}}class fFt{constructor(e,t,n){this.item=e,this.gutterItemView=t,this.domNode=n}}class hRe extends jC{constructor(e){super(),this._getContext=e}runAction(e,t){const n=this._getContext();return super.runAction(e,n)}}class fRe extends Qke{constructor(e){super(),this._textModel=e}getValueOfRange(e){return this._textModel.getValueInRange(e)}get length(){const e=this._textModel.getLineCount(),t=this._textModel.getLineLength(e);return new wf(e-1,t)}}class pFt extends ye{constructor(e,t,n={orientation:0}){super(),this.submenuActionViewItems=[],this.hasSecondaryActions=!1,this._onDidChangeDropdownVisibility=this._register(new ZHe),this.onDidChangeDropdownVisibility=this._onDidChangeDropdownVisibility.event,this.disposables=this._register(new Fe),n.hoverDelegate=n.hoverDelegate??this._register(NT()),this.options=n,this.toggleMenuAction=this._register(new vM(()=>this.toggleMenuActionViewItem?.show(),n.toggleMenuTitle)),this.element=document.createElement("div"),this.element.className="monaco-toolbar",e.appendChild(this.element),this.actionBar=this._register(new md(this.element,{orientation:n.orientation,ariaLabel:n.ariaLabel,actionRunner:n.actionRunner,allowContextMenu:n.allowContextMenu,highlightToggledItems:n.highlightToggledItems,hoverDelegate:n.hoverDelegate,actionViewItemProvider:(s,r)=>{if(s.id===vM.ID)return this.toggleMenuActionViewItem=new h9(s,s.menuActions,t,{actionViewItemProvider:this.options.actionViewItemProvider,actionRunner:this.actionRunner,keybindingProvider:this.options.getKeyBinding,classNames:ni.asClassNameArray(n.moreIcon??et.toolBarMore),anchorAlignmentProvider:this.options.anchorAlignmentProvider,menuAsChild:!!this.options.renderDropdownAsChildElement,skipTelemetry:this.options.skipTelemetry,isMenu:!0,hoverDelegate:this.options.hoverDelegate}),this.toggleMenuActionViewItem.setActionContext(this.actionBar.context),this.disposables.add(this._onDidChangeDropdownVisibility.add(this.toggleMenuActionViewItem.onDidChangeVisibility)),this.toggleMenuActionViewItem;if(n.actionViewItemProvider){const o=n.actionViewItemProvider(s,r);if(o)return o}if(s instanceof ZE){const o=new h9(s,s.actions,t,{actionViewItemProvider:this.options.actionViewItemProvider,actionRunner:this.actionRunner,keybindingProvider:this.options.getKeyBinding,classNames:s.class,anchorAlignmentProvider:this.options.anchorAlignmentProvider,menuAsChild:!!this.options.renderDropdownAsChildElement,skipTelemetry:this.options.skipTelemetry,hoverDelegate:this.options.hoverDelegate});return o.setActionContext(this.actionBar.context),this.submenuActionViewItems.push(o),this.disposables.add(this._onDidChangeDropdownVisibility.add(o.onDidChangeVisibility)),o}}}))}set actionRunner(e){this.actionBar.actionRunner=e}get actionRunner(){return this.actionBar.actionRunner}getElement(){return this.element}getItemAction(e){return this.actionBar.getAction(e)}setActions(e,t){this.clear();const n=e?e.slice(0):[];this.hasSecondaryActions=!!(t&&t.length>0),this.hasSecondaryActions&&t&&(this.toggleMenuAction.menuActions=t.slice(0),n.push(this.toggleMenuAction)),n.forEach(s=>{this.actionBar.push(s,{icon:this.options.icon??!0,label:this.options.label??!1,keybinding:this.getKeybindingLabel(s)})})}getKeybindingLabel(e){return this.options.getKeyBinding?.(e)?.getLabel()??void 0}clear(){this.submenuActionViewItems=[],this.disposables.clear(),this.actionBar.clear()}dispose(){this.clear(),this.disposables.dispose(),super.dispose()}}const kH=class kH extends hc{constructor(e,t){t=t||w("moreActions","More Actions..."),super(kH.ID,t,void 0,!0),this._menuActions=[],this.toggleDropdownMenu=e}async run(){this.toggleDropdownMenu()}get menuActions(){return this._menuActions}set menuActions(e){this._menuActions=e}};kH.ID="toolbar.toggle.more";let vM=kH;var pRe=function(i,e,t,n){var s=arguments.length,r=s<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(i,e,t,n);else for(var a=i.length-1;a>=0;a--)(o=i[a])&&(r=(s<3?o(r):s>3?o(e,t,r):o(e,t))||r);return s>3&&r&&Object.defineProperty(e,t,r),r},Df=function(i,e){return function(t,n){e(t,n,i)}};let CM=class extends pFt{constructor(e,t,n,s,r,o,a,l){super(e,r,{getKeyBinding:c=>o.lookupKeybinding(c.id)??void 0,...t,allowContextMenu:!0,skipTelemetry:typeof t?.telemetrySource=="string"}),this._options=t,this._menuService=n,this._contextKeyService=s,this._contextMenuService=r,this._keybindingService=o,this._commandService=a,this._sessionDisposables=this._store.add(new Fe);const u=t?.telemetrySource;u&&this._store.add(this.actionBar.onDidRun(c=>l.publicLog2("workbenchActionExecuted",{id:c.action.id,from:u})))}setActions(e,t=[],n){this._sessionDisposables.clear();const s=e.slice(),r=t.slice(),o=[];let a=0;const l=[];let u=!1;if(this._options?.hiddenItemStrategy!==-1)for(let c=0;c<s.length;c++){const d=s[c];!(d instanceof fc)&&!(d instanceof tT)||d.hideActions&&(o.push(d.hideActions.toggle),d.hideActions.toggle.checked&&a++,d.hideActions.isHidden&&(u=!0,s[c]=void 0,this._options?.hiddenItemStrategy!==0&&(l[c]=d)))}if(this._options?.overflowBehavior!==void 0){const c=rLt(new Set(this._options.overflowBehavior.exempted),cn.map(s,f=>f?.id)),d=this._options.overflowBehavior.maxItems-c.size;let h=0;for(let f=0;f<s.length;f++){const g=s[f];g&&(h++,!c.has(g.id)&&h>=d&&(s[f]=void 0,l[f]=g))}}H2e(s),H2e(l),super.setActions(s,$o.join(l,r)),(o.length>0||s.length>0)&&this._sessionDisposables.add(Ie(this.getElement(),"contextmenu",c=>{const d=new cf(Jt(this.getElement()),c),h=this.getItemAction(d.target);if(!h)return;d.preventDefault(),d.stopPropagation();const f=[];if(h instanceof fc&&h.menuKeybinding)f.push(h.menuKeybinding);else if(!(h instanceof tT||h instanceof vM)){const b=!!this._keybindingService.lookupKeybinding(h.id);f.push(WPe(this._commandService,this._keybindingService,h.id,void 0,b))}if(o.length>0){let b=!1;if(a===1&&this._options?.hiddenItemStrategy===0){b=!0;for(let y=0;y<o.length;y++)if(o[y].checked){o[y]=qC({id:h.id,label:h.label,checked:!0,enabled:!1,run(){}});break}}if(!b&&(h instanceof fc||h instanceof tT)){if(!h.hideActions)return;f.push(h.hideActions.hide)}else f.push(qC({id:"label",label:w("hide","Hide"),enabled:!1,run(){}}))}const g=$o.join(f,o);this._options?.resetMenu&&!n&&(n=[this._options.resetMenu]),u&&n&&(g.push(new $o),g.push(qC({id:"resetThisMenu",label:w("resetThisMenu","Reset Menu"),run:()=>this._menuService.resetHiddenStates(n)}))),g.length!==0&&this._contextMenuService.showContextMenu({getAnchor:()=>d,getActions:()=>g,menuId:this._options?.contextMenu,menuActionOptions:{renderShortTitle:!0,...this._options?.menuOptions},skipTelemetry:typeof this._options?.telemetrySource=="string",contextKeyService:this._contextKeyService})}))}};CM=pRe([Df(2,od),Df(3,ri),Df(4,pc),Df(5,In),Df(6,xs),Df(7,al)],CM);let J7=class extends CM{constructor(e,t,n,s,r,o,a,l,u){super(e,{resetMenu:t,...n},s,r,o,a,l,u),this._onDidChangeMenuItems=this._store.add(new _e),this.onDidChangeMenuItems=this._onDidChangeMenuItems.event;const c=this._store.add(s.createMenu(t,r,{emitEventsForSubmenuChanges:!0})),d=()=>{const h=[],f=[];_9(c,n?.menuOptions,{primary:h,secondary:f},n?.toolbarOptions?.primaryGroup,n?.toolbarOptions?.shouldInlineSubmenu,n?.toolbarOptions?.useSeparatorsInPrimaryActions),e.classList.toggle("has-no-actions",h.length===0&&f.length===0),super.setActions(h,f)};this._store.add(c.onDidChange(()=>{d(),this._onDidChangeMenuItems.fire(this)})),d()}setActions(){throw new kn("This toolbar is populated from a menu.")}};J7=pRe([Df(3,od),Df(4,ri),Df(5,pc),Df(6,In),Df(7,xs),Df(8,al)],J7);var gRe=function(i,e,t,n){var s=arguments.length,r=s<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(i,e,t,n);else for(var a=i.length-1;a>=0;a--)(o=i[a])&&(r=(s<3?o(r):s>3?o(e,t,r):o(e,t))||r);return s>3&&r&&Object.defineProperty(e,t,r),r},eB=function(i,e){return function(t,n){e(t,n,i)}};const kse=[],tB=35;let Lse=class extends ye{constructor(e,t,n,s,r,o,a,l,u){super(),this._diffModel=t,this._editors=n,this._options=s,this._sashLayout=r,this._boundarySashes=o,this._instantiationService=a,this._contextKeyService=l,this._menuService=u,this._menu=this._register(this._menuService.createMenu(Nt.DiffEditorHunkToolbar,this._contextKeyService)),this._actions=zn(this,this._menu.onDidChange,()=>this._menu.getActions()),this._hasActions=this._actions.map(c=>c.length>0),this._showSash=Ht(this,c=>this._options.renderSideBySide.read(c)&&this._hasActions.read(c)),this.width=Ht(this,c=>this._hasActions.read(c)?tB:0),this.elements=Ki("div.gutter@gutter",{style:{position:"absolute",height:"100%",width:tB+"px"}},[]),this._currentDiff=Ht(this,c=>{const d=this._diffModel.read(c);if(!d)return;const h=d.diff.read(c)?.mappings,f=this._editors.modifiedCursor.read(c);if(f)return h?.find(g=>g.lineRangeMapping.modified.contains(f.lineNumber))}),this._selectedDiffs=Ht(this,c=>{const h=this._diffModel.read(c)?.diff.read(c);if(!h)return kse;const f=this._editors.modifiedSelections.read(c);if(f.every(S=>S.isEmpty()))return kse;const g=new lh(f.map(S=>fi.fromRangeInclusive(S))),y=h.mappings.filter(S=>S.lineRangeMapping.innerChanges&&g.intersects(S.lineRangeMapping.modified)).map(S=>({mapping:S,rangeMappings:S.lineRangeMapping.innerChanges.filter(x=>f.some(E=>U.areIntersecting(x.modifiedRange,E)))}));return y.length===0||y.every(S=>S.rangeMappings.length===0)?kse:y}),this._register(FOt(e,this.elements.root)),this._register(Ie(this.elements.root,"click",()=>{this._editors.modified.focus()})),this._register(T_(this.elements.root,{display:this._hasActions.map(c=>c?"block":"none")})),Ml(this,c=>this._showSash.read(c)?new dRe(e,this._sashLayout.dimensions,this._options.enableSplitViewResizing,this._boundarySashes,oP(this,h=>this._sashLayout.sashLeft.read(h)-tB,(h,f)=>this._sashLayout.sashLeft.set(h+tB,f)),()=>this._sashLayout.resetSash()):void 0).recomputeInitiallyAndOnChange(this._store),this._register(new hFt(this._editors.modified,this.elements.root,{getIntersectingGutterItems:(c,d)=>{const h=this._diffModel.read(d);if(!h)return[];const f=h.diff.read(d);if(!f)return[];const g=this._selectedDiffs.read(d);if(g.length>0){const y=ld.fromRangeMappings(g.flatMap(S=>S.rangeMappings));return[new mRe(y,!0,Nt.DiffEditorSelectionToolbar,void 0,h.model.original.uri,h.model.modified.uri)]}const b=this._currentDiff.read(d);return f.mappings.map(y=>new mRe(y.lineRangeMapping.withInnerChangesFromLineRanges(),y.lineRangeMapping===b?.lineRangeMapping,Nt.DiffEditorHunkToolbar,void 0,h.model.original.uri,h.model.modified.uri))},createView:(c,d)=>this._instantiationService.createInstance(Ase,c,d,this)})),this._register(Ie(this.elements.gutter,tt.MOUSE_WHEEL,c=>{this._editors.modified.getOption(104).handleMouseWheel&&this._editors.modified.delegateScrollFromMouseWheelEvent(c)},{passive:!1}))}computeStagedValue(e){const t=e.innerChanges??[],n=new fRe(this._editors.modifiedModel.get()),s=new fRe(this._editors.original.getModel());return new pJ(t.map(a=>a.toTextEdit(n))).apply(s)}layout(e){this.elements.gutter.style.left=e+"px"}};Lse=gRe([eB(6,jt),eB(7,ri),eB(8,od)],Lse);class mRe{constructor(e,t,n,s,r,o){this.mapping=e,this.showAlways=t,this.menuId=n,this.rangeOverride=s,this.originalUri=r,this.modifiedUri=o}get id(){return this.mapping.modified.toString()}get range(){return this.rangeOverride??this.mapping.modified}}let Ase=class extends ye{constructor(e,t,n,s){super(),this._item=e,this._elements=Ki("div.gutterItem",{style:{height:"20px",width:"34px"}},[Ki("div.background@background",{},[]),Ki("div.buttons@buttons",{},[])]),this._showAlways=this._item.map(this,o=>o.showAlways),this._menuId=this._item.map(this,o=>o.menuId),this._isSmall=Bi(this,!1),this._lastItemRange=void 0,this._lastViewRange=void 0;const r=this._register(s.createInstance(gT,"element",!0,{position:{hoverPosition:1}}));this._register(m2(t,this._elements.root)),this._register(gi(o=>{const a=this._showAlways.read(o);this._elements.root.classList.toggle("noTransition",!0),this._elements.root.classList.toggle("showAlways",a),setTimeout(()=>{this._elements.root.classList.toggle("noTransition",!1)},0)})),this._register(Bu((o,a)=>{this._elements.buttons.replaceChildren();const l=a.add(s.createInstance(J7,this._elements.buttons,this._menuId.read(o),{orientation:1,hoverDelegate:r,toolbarOptions:{primaryGroup:u=>u.startsWith("primary")},overflowBehavior:{maxItems:this._isSmall.read(o)?1:3},hiddenItemStrategy:0,actionRunner:new hRe(()=>{const u=this._item.get(),c=u.mapping;return{mapping:c,originalWithModifiedChanges:n.computeStagedValue(c),originalUri:u.originalUri,modifiedUri:u.modifiedUri}}),menuOptions:{shouldForwardArgs:!0}}));a.add(l.onDidChangeMenuItems(()=>{this._lastItemRange&&this.layout(this._lastItemRange,this._lastViewRange)}))}))}layout(e,t){this._lastItemRange=e,this._lastViewRange=t;let n=this._elements.buttons.clientHeight;this._isSmall.set(this._item.get().mapping.original.startLineNumber===1&&e.length<30,void 0),n=this._elements.buttons.clientHeight;const s=e.length/2-n/2,r=n;let o=e.start+s;const a=Ui.tryCreate(r,t.endExclusive-r-n),l=Ui.tryCreate(e.start+r,e.endExclusive-n-r);l&&a&&l.start<l.endExclusive&&(o=a.clip(o),o=l.clip(o)),this._elements.buttons.style.top=`${o-e.start}px`}};Ase=gRe([eB(3,jt)],Ase);function wc(i){return Nse.get(i)}const Py=class Py extends ye{static get(e){let t=Py._map.get(e);if(!t){t=new Py(e),Py._map.set(e,t);const n=e.onDidDispose(()=>{const s=Py._map.get(e);s&&(Py._map.delete(e),s.dispose(),n.dispose())})}return t}_beginUpdate(){this._updateCounter++,this._updateCounter===1&&(this._currentTransaction=new kT(()=>{}))}_endUpdate(){if(this._updateCounter--,this._updateCounter===0){const e=this._currentTransaction;this._currentTransaction=void 0,e.finish()}}constructor(e){super(),this.editor=e,this._updateCounter=0,this._currentTransaction=void 0,this._model=Bi(this,this.editor.getModel()),this.model=this._model,this.isReadonly=zn(this,this.editor.onDidChangeConfiguration,()=>this.editor.getOption(92)),this._versionId=qee({owner:this,lazy:!0},this.editor.getModel()?.getVersionId()??null),this.versionId=this._versionId,this._selections=qee({owner:this,equalsFn:Hee(r9(Pt.selectionsEqual)),lazy:!0},this.editor.getSelections()??null),this.selections=this._selections,this.isFocused=zn(this,t=>{const n=this.editor.onDidFocusEditorWidget(t),s=this.editor.onDidBlurEditorWidget(t);return{dispose(){n.dispose(),s.dispose()}}},()=>this.editor.hasWidgetFocus()),this.value=oP(this,t=>(this.versionId.read(t),this.model.read(t)?.getValue()??""),(t,n)=>{const s=this.model.get();s!==null&&t!==s.getValue()&&s.setValue(t)}),this.valueIsEmpty=Ht(this,t=>(this.versionId.read(t),this.editor.getModel()?.getValueLength()===0)),this.cursorSelection=pd({owner:this,equalsFn:Hee(Pt.selectionsEqual)},t=>this.selections.read(t)?.[0]??null),this.onDidType=LT(this),this.scrollTop=zn(this.editor.onDidScrollChange,()=>this.editor.getScrollTop()),this.scrollLeft=zn(this.editor.onDidScrollChange,()=>this.editor.getScrollLeft()),this.layoutInfo=zn(this.editor.onDidLayoutChange,()=>this.editor.getLayoutInfo()),this.layoutInfoContentLeft=this.layoutInfo.map(t=>t.contentLeft),this.layoutInfoDecorationsLeft=this.layoutInfo.map(t=>t.decorationsLeft),this.contentWidth=zn(this.editor.onDidContentSizeChange,()=>this.editor.getContentWidth()),this._overlayWidgetCounter=0,this._register(this.editor.onBeginUpdate(()=>this._beginUpdate())),this._register(this.editor.onEndUpdate(()=>this._endUpdate())),this._register(this.editor.onDidChangeModel(()=>{this._beginUpdate();try{this._model.set(this.editor.getModel(),this._currentTransaction),this._forceUpdate()}finally{this._endUpdate()}})),this._register(this.editor.onDidType(t=>{this._beginUpdate();try{this._forceUpdate(),this.onDidType.trigger(this._currentTransaction,t)}finally{this._endUpdate()}})),this._register(this.editor.onDidChangeModelContent(t=>{this._beginUpdate();try{this._versionId.set(this.editor.getModel()?.getVersionId()??null,this._currentTransaction,t),this._forceUpdate()}finally{this._endUpdate()}})),this._register(this.editor.onDidChangeCursorSelection(t=>{this._beginUpdate();try{this._selections.set(this.editor.getSelections(),this._currentTransaction,t),this._forceUpdate()}finally{this._endUpdate()}}))}forceUpdate(e){this._beginUpdate();try{return this._forceUpdate(),e?e(this._currentTransaction):void 0}finally{this._endUpdate()}}_forceUpdate(){this._beginUpdate();try{this._model.set(this.editor.getModel(),this._currentTransaction),this._versionId.set(this.editor.getModel()?.getVersionId()??null,this._currentTransaction,void 0),this._selections.set(this.editor.getSelections(),this._currentTransaction,void 0)}finally{this._endUpdate()}}getOption(e){return zn(this,t=>this.editor.onDidChangeConfiguration(n=>{n.hasChanged(e)&&t(void 0)}),()=>this.editor.getOption(e))}setDecorations(e){const t=new Fe,n=this.editor.createDecorationsCollection();return t.add(aP({owner:this,debugName:()=>`Apply decorations from ${e.debugName}`},s=>{const r=e.read(s);n.set(r)})),t.add({dispose:()=>{n.clear()}}),t}createOverlayWidget(e){const t="observableOverlayWidget"+this._overlayWidgetCounter++,n={getDomNode:()=>e.domNode,getPosition:()=>e.position.get(),getId:()=>t,allowEditorOverflow:e.allowEditorOverflow,getMinContentWidthInPx:()=>e.minContentWidthInPx.get()};this.editor.addOverlayWidget(n);const s=gi(r=>{e.position.read(r),e.minContentWidthInPx.read(r),this.editor.layoutOverlayWidget(n)});return zt(()=>{s.dispose(),this.editor.removeOverlayWidget(n)})}};Py._map=new Map;let Nse=Py;function Ise(i,e){return m2t({createEmptyChangeSummary:()=>({deltas:[],didChange:!1}),handleChange:(t,n)=>{if(t.didChange(i)){const s=t.change;s!==void 0&&n.deltas.push(s),n.didChange=!0}return!0}},(t,n)=>{const s=i.read(t);n.didChange&&e(s,n.deltas)})}function gFt(i,e){const t=new Fe,n=Ise(i,(s,r)=>{t.clear(),e(s,r,t)});return{dispose(){n.dispose(),t.dispose()}}}var mFt=function(i,e,t,n){var s=arguments.length,r=s<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(i,e,t,n);else for(var a=i.length-1;a>=0;a--)(o=i[a])&&(r=(s<3?o(r):s>3?o(e,t,r):o(e,t))||r);return s>3&&r&&Object.defineProperty(e,t,r),r},_Ft=function(i,e){return function(t,n){e(t,n,i)}},iB;let nB=(YS=class extends ye{static setBreadcrumbsSourceFactory(e){this._breadcrumbsSourceFactory.set(e,void 0)}get isUpdatingHiddenAreas(){return this._isUpdatingHiddenAreas}constructor(e,t,n,s){super(),this._editors=e,this._diffModel=t,this._options=n,this._instantiationService=s,this._modifiedOutlineSource=Ml(this,l=>{const u=this._editors.modifiedModel.read(l),c=iB._breadcrumbsSourceFactory.read(l);return!u||!c?void 0:c(u,this._instantiationService)}),this._isUpdatingHiddenAreas=!1,this._register(this._editors.original.onDidChangeCursorPosition(l=>{if(l.reason===1)return;const u=this._diffModel.get();dr(c=>{for(const d of this._editors.original.getSelections()||[])u?.ensureOriginalLineIsVisible(d.getStartPosition().lineNumber,0,c),u?.ensureOriginalLineIsVisible(d.getEndPosition().lineNumber,0,c)})})),this._register(this._editors.modified.onDidChangeCursorPosition(l=>{if(l.reason===1)return;const u=this._diffModel.get();dr(c=>{for(const d of this._editors.modified.getSelections()||[])u?.ensureModifiedLineIsVisible(d.getStartPosition().lineNumber,0,c),u?.ensureModifiedLineIsVisible(d.getEndPosition().lineNumber,0,c)})}));const r=this._diffModel.map((l,u)=>{const c=l?.unchangedRegions.read(u)??[];return c.length===1&&c[0].modifiedLineNumber===1&&c[0].lineCount===this._editors.modifiedModel.read(u)?.getLineCount()?[]:c});this.viewZones=P1(this,(l,u)=>{const c=this._modifiedOutlineSource.read(l);if(!c)return{origViewZones:[],modViewZones:[]};const d=[],h=[],f=this._options.renderSideBySide.read(l),g=this._options.compactMode.read(l),b=r.read(l);for(let y=0;y<b.length;y++){const S=b[y];if(!S.shouldHideControls(l)&&!(g&&(y===0||y===b.length-1)))if(g){{const x=Ht(this,k=>S.getHiddenOriginalRange(k).startLineNumber-1),E=new _2(x,12);d.push(E),u.add(new _Re(this._editors.original,E,S,!f))}{const x=Ht(this,k=>S.getHiddenModifiedRange(k).startLineNumber-1),E=new _2(x,12);h.push(E),u.add(new _Re(this._editors.modified,E,S))}}else{{const x=Ht(this,k=>S.getHiddenOriginalRange(k).startLineNumber-1),E=new _2(x,24);d.push(E),u.add(new bRe(this._editors.original,E,S,S.originalUnchangedRange,!f,c,k=>this._diffModel.get().ensureModifiedLineIsVisible(k,2,void 0),this._options))}{const x=Ht(this,k=>S.getHiddenModifiedRange(k).startLineNumber-1),E=new _2(x,24);h.push(E),u.add(new bRe(this._editors.modified,E,S,S.modifiedUnchangedRange,!1,c,k=>this._diffModel.get().ensureModifiedLineIsVisible(k,2,void 0),this._options))}}}return{origViewZones:d,modViewZones:h}});const o={description:"unchanged lines",className:"diff-unchanged-lines",isWholeLine:!0},a={description:"Fold Unchanged",glyphMarginHoverMessage:new ul(void 0,{isTrusted:!0,supportThemeIcons:!0}).appendMarkdown(w("foldUnchanged","Fold Unchanged Region")),glyphMarginClassName:"fold-unchanged "+ni.asClassName(et.fold),zIndex:10001};this._register(q7(this._editors.original,Ht(this,l=>{const u=r.read(l),c=u.map(d=>({range:d.originalUnchangedRange.toInclusiveRange(),options:o}));for(const d of u)d.shouldHideControls(l)&&c.push({range:U.fromPositions(new me(d.originalLineNumber,1)),options:a});return c}))),this._register(q7(this._editors.modified,Ht(this,l=>{const u=r.read(l),c=u.map(d=>({range:d.modifiedUnchangedRange.toInclusiveRange(),options:o}));for(const d of u)d.shouldHideControls(l)&&c.push({range:fi.ofLength(d.modifiedLineNumber,1).toInclusiveRange(),options:a});return c}))),this._register(gi(l=>{const u=r.read(l);this._isUpdatingHiddenAreas=!0;try{this._editors.original.setHiddenAreas(u.map(c=>c.getHiddenOriginalRange(l).toInclusiveRange()).filter(_g)),this._editors.modified.setHiddenAreas(u.map(c=>c.getHiddenModifiedRange(l).toInclusiveRange()).filter(_g))}finally{this._isUpdatingHiddenAreas=!1}})),this._register(this._editors.modified.onMouseUp(l=>{if(!l.event.rightButton&&l.target.position&&l.target.element?.className.includes("fold-unchanged")){const u=l.target.position.lineNumber,c=this._diffModel.get();if(!c)return;const d=c.unchangedRegions.get().find(h=>h.modifiedUnchangedRange.includes(u));if(!d)return;d.collapseAll(void 0),l.event.stopPropagation(),l.event.preventDefault()}})),this._register(this._editors.original.onMouseUp(l=>{if(!l.event.rightButton&&l.target.position&&l.target.element?.className.includes("fold-unchanged")){const u=l.target.position.lineNumber,c=this._diffModel.get();if(!c)return;const d=c.unchangedRegions.get().find(h=>h.originalUnchangedRange.includes(u));if(!d)return;d.collapseAll(void 0),l.event.stopPropagation(),l.event.preventDefault()}}))}},iB=YS,YS._breadcrumbsSourceFactory=Bi(iB,()=>({dispose(){},getBreadcrumbItems(e,t){return[]}})),YS);nB=iB=mFt([_Ft(3,jt)],nB);class _Re extends use{constructor(e,t,n,s=!1){const r=Ki("div.diff-hidden-lines-widget");super(e,t,r.root),this._unchangedRegion=n,this._hide=s,this._nodes=Ki("div.diff-hidden-lines-compact",[Ki("div.line-left",[]),Ki("div.text@text",[]),Ki("div.line-right",[])]),r.root.appendChild(this._nodes.root),this._hide&&this._nodes.root.replaceChildren(),this._register(gi(o=>{if(!this._hide){const a=this._unchangedRegion.getHiddenModifiedRange(o).length,l=w("hiddenLines","{0} hidden lines",a);this._nodes.text.innerText=l}}))}}class bRe extends use{constructor(e,t,n,s,r,o,a,l){const u=Ki("div.diff-hidden-lines-widget");super(e,t,u.root),this._editor=e,this._unchangedRegion=n,this._unchangedRegionRange=s,this._hide=r,this._modifiedOutlineSource=o,this._revealModifiedHiddenLine=a,this._options=l,this._nodes=Ki("div.diff-hidden-lines",[Ki("div.top@top",{title:w("diff.hiddenLines.top","Click or drag to show more above")}),Ki("div.center@content",{style:{display:"flex"}},[Ki("div@first",{style:{display:"flex",justifyContent:"center",alignItems:"center",flexShrink:"0"}},[it("a",{title:w("showUnchangedRegion","Show Unchanged Region"),role:"button",onclick:()=>{this._unchangedRegion.showAll(void 0)}},...D1("$(unfold)"))]),Ki("div@others",{style:{display:"flex",justifyContent:"center",alignItems:"center"}})]),Ki("div.bottom@bottom",{title:w("diff.bottom","Click or drag to show more below"),role:"button"})]),u.root.appendChild(this._nodes.root),this._hide?_a(this._nodes.first):this._register(T_(this._nodes.first,{width:wc(this._editor).layoutInfoContentLeft})),this._register(gi(d=>{const h=this._unchangedRegion.visibleLineCountTop.read(d)+this._unchangedRegion.visibleLineCountBottom.read(d)===this._unchangedRegion.lineCount;this._nodes.bottom.classList.toggle("canMoveTop",!h),this._nodes.bottom.classList.toggle("canMoveBottom",this._unchangedRegion.visibleLineCountBottom.read(d)>0),this._nodes.top.classList.toggle("canMoveTop",this._unchangedRegion.visibleLineCountTop.read(d)>0),this._nodes.top.classList.toggle("canMoveBottom",!h);const f=this._unchangedRegion.isDragged.read(d),g=this._editor.getDomNode();g&&(g.classList.toggle("draggingUnchangedRegion",!!f),f==="top"?(g.classList.toggle("canMoveTop",this._unchangedRegion.visibleLineCountTop.read(d)>0),g.classList.toggle("canMoveBottom",!h)):f==="bottom"?(g.classList.toggle("canMoveTop",!h),g.classList.toggle("canMoveBottom",this._unchangedRegion.visibleLineCountBottom.read(d)>0)):(g.classList.toggle("canMoveTop",!1),g.classList.toggle("canMoveBottom",!1)))}));const c=this._editor;this._register(Ie(this._nodes.top,"mousedown",d=>{if(d.button!==0)return;this._nodes.top.classList.toggle("dragging",!0),this._nodes.root.classList.toggle("dragging",!0),d.preventDefault();const h=d.clientY;let f=!1;const g=this._unchangedRegion.visibleLineCountTop.get();this._unchangedRegion.isDragged.set("top",void 0);const b=Jt(this._nodes.top),y=Ie(b,"mousemove",x=>{const k=x.clientY-h;f=f||Math.abs(k)>2;const A=Math.round(k/c.getOption(67)),I=Math.max(0,Math.min(g+A,this._unchangedRegion.getMaxVisibleLineCountTop()));this._unchangedRegion.visibleLineCountTop.set(I,void 0)}),S=Ie(b,"mouseup",x=>{f||this._unchangedRegion.showMoreAbove(this._options.hideUnchangedRegionsRevealLineCount.get(),void 0),this._nodes.top.classList.toggle("dragging",!1),this._nodes.root.classList.toggle("dragging",!1),this._unchangedRegion.isDragged.set(void 0,void 0),y.dispose(),S.dispose()})})),this._register(Ie(this._nodes.bottom,"mousedown",d=>{if(d.button!==0)return;this._nodes.bottom.classList.toggle("dragging",!0),this._nodes.root.classList.toggle("dragging",!0),d.preventDefault();const h=d.clientY;let f=!1;const g=this._unchangedRegion.visibleLineCountBottom.get();this._unchangedRegion.isDragged.set("bottom",void 0);const b=Jt(this._nodes.bottom),y=Ie(b,"mousemove",x=>{const k=x.clientY-h;f=f||Math.abs(k)>2;const A=Math.round(k/c.getOption(67)),I=Math.max(0,Math.min(g-A,this._unchangedRegion.getMaxVisibleLineCountBottom())),M=this._unchangedRegionRange.endLineNumberExclusive>c.getModel().getLineCount()?c.getContentHeight():c.getTopForLineNumber(this._unchangedRegionRange.endLineNumberExclusive);this._unchangedRegion.visibleLineCountBottom.set(I,void 0);const B=this._unchangedRegionRange.endLineNumberExclusive>c.getModel().getLineCount()?c.getContentHeight():c.getTopForLineNumber(this._unchangedRegionRange.endLineNumberExclusive);c.setScrollTop(c.getScrollTop()+(B-M))}),S=Ie(b,"mouseup",x=>{if(this._unchangedRegion.isDragged.set(void 0,void 0),!f){const E=c.getTopForLineNumber(this._unchangedRegionRange.endLineNumberExclusive);this._unchangedRegion.showMoreBelow(this._options.hideUnchangedRegionsRevealLineCount.get(),void 0);const k=c.getTopForLineNumber(this._unchangedRegionRange.endLineNumberExclusive);c.setScrollTop(c.getScrollTop()+(k-E))}this._nodes.bottom.classList.toggle("dragging",!1),this._nodes.root.classList.toggle("dragging",!1),y.dispose(),S.dispose()})})),this._register(gi(d=>{const h=[];if(!this._hide){const f=n.getHiddenModifiedRange(d).length,g=w("hiddenLines","{0} hidden lines",f),b=it("span",{title:w("diff.hiddenLines.expandAll","Double click to unfold")},g);b.addEventListener("dblclick",x=>{x.button===0&&(x.preventDefault(),this._unchangedRegion.showAll(void 0))}),h.push(b);const y=this._unchangedRegion.getHiddenModifiedRange(d),S=this._modifiedOutlineSource.getBreadcrumbItems(y,d);if(S.length>0){h.push(it("span",void 0," | "));for(let x=0;x<S.length;x++){const E=S[x],k=OF.toIcon(E.kind),A=Ki("div.breadcrumb-item",{style:{display:"flex",alignItems:"center"}},[rw(k)," ",E.name,...x===S.length-1?[]:[rw(et.chevronRight)]]).root;h.push(A),A.onclick=()=>{this._revealModifiedHiddenLine(E.startLineNumber)}}}}_a(this._nodes.others,...h)}))}}var bFt=function(i,e,t,n){var s=arguments.length,r=s<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(i,e,t,n);else for(var a=i.length-1;a>=0;a--)(o=i[a])&&(r=(s<3?o(r):s>3?o(e,t,r):o(e,t))||r);return s>3&&r&&Object.defineProperty(e,t,r),r},yFt=function(i,e){return function(t,n){e(t,n,i)}},Hp;let wM=(ib=class extends ye{constructor(e,t,n,s,r,o,a){super(),this._editors=e,this._rootElement=t,this._diffModel=n,this._rootWidth=s,this._rootHeight=r,this._modifiedEditorLayoutInfo=o,this._themeService=a,this.width=Hp.ENTIRE_DIFF_OVERVIEW_WIDTH;const l=zn(this._themeService.onDidColorThemeChange,()=>this._themeService.getColorTheme()),u=Ht(h=>{const f=l.read(h),g=f.getColor(wyt)||(f.getColor(vyt)||oZ).transparent(2),b=f.getColor(Syt)||(f.getColor(Cyt)||aZ).transparent(2);return{insertColor:g,removeColor:b}}),c=Nn(document.createElement("div"));c.setClassName("diffViewport"),c.setPosition("absolute");const d=Ki("div.diffOverview",{style:{position:"absolute",top:"0px",width:Hp.ENTIRE_DIFF_OVERVIEW_WIDTH+"px"}}).root;this._register(m2(d,c.domNode)),this._register(_r(d,tt.POINTER_DOWN,h=>{this._editors.modified.delegateVerticalScrollbarPointerDown(h)})),this._register(Ie(d,tt.MOUSE_WHEEL,h=>{this._editors.modified.delegateScrollFromMouseWheelEvent(h)},{passive:!1})),this._register(m2(this._rootElement,d)),this._register(Bu((h,f)=>{const g=this._diffModel.read(h),b=this._editors.original.createOverviewRuler("original diffOverviewRuler");b&&(f.add(b),f.add(m2(d,b.getDomNode())));const y=this._editors.modified.createOverviewRuler("modified diffOverviewRuler");if(y&&(f.add(y),f.add(m2(d,y.getDomNode()))),!b||!y)return;const S=Ba("viewZoneChanged",this._editors.original.onDidChangeViewZones),x=Ba("viewZoneChanged",this._editors.modified.onDidChangeViewZones),E=Ba("hiddenRangesChanged",this._editors.original.onDidChangeHiddenAreas),k=Ba("hiddenRangesChanged",this._editors.modified.onDidChangeHiddenAreas);f.add(gi(A=>{S.read(A),x.read(A),E.read(A),k.read(A);const I=u.read(A),M=g?.diff.read(A)?.mappings;function B(q,ee,Z){const K=Z._getViewModel();return K?q.filter(oe=>oe.length>0).map(oe=>{const Y=K.coordinatesConverter.convertModelPositionToViewPosition(new me(oe.startLineNumber,1)),de=K.coordinatesConverter.convertModelPositionToViewPosition(new me(oe.endLineNumberExclusive,1)),ae=de.lineNumber-Y.lineNumber;return new kMe(Y.lineNumber,de.lineNumber,ae,ee.toString())}):[]}const F=B((M||[]).map(q=>q.lineRangeMapping.original),I.removeColor,this._editors.original),G=B((M||[]).map(q=>q.lineRangeMapping.modified),I.insertColor,this._editors.modified);b?.setZones(F),y?.setZones(G)})),f.add(gi(A=>{const I=this._rootHeight.read(A),M=this._rootWidth.read(A),B=this._modifiedEditorLayoutInfo.read(A);if(B){const F=Hp.ENTIRE_DIFF_OVERVIEW_WIDTH-2*Hp.ONE_OVERVIEW_WIDTH;b.setLayout({top:0,height:I,right:F+Hp.ONE_OVERVIEW_WIDTH,width:Hp.ONE_OVERVIEW_WIDTH}),y.setLayout({top:0,height:I,right:0,width:Hp.ONE_OVERVIEW_WIDTH});const G=this._editors.modifiedScrollTop.read(A),q=this._editors.modifiedScrollHeight.read(A),ee=this._editors.modified.getOption(104),Z=new _T(ee.verticalHasArrows?ee.arrowSize:0,ee.verticalScrollbarSize,0,B.height,q,G);c.setTop(Z.getSliderPosition()),c.setHeight(Z.getSliderSize())}else c.setTop(0),c.setHeight(0);d.style.height=I+"px",d.style.left=M-Hp.ENTIRE_DIFF_OVERVIEW_WIDTH+"px",c.setWidth(Hp.ENTIRE_DIFF_OVERVIEW_WIDTH)}))}))}},Hp=ib,ib.ONE_OVERVIEW_WIDTH=15,ib.ENTIRE_DIFF_OVERVIEW_WIDTH=ib.ONE_OVERVIEW_WIDTH*2,ib);wM=Hp=bFt([yFt(6,Lo)],wM);const Pse=[];class vFt extends ye{constructor(e,t,n,s){super(),this._editors=e,this._diffModel=t,this._options=n,this._widget=s,this._selectedDiffs=Ht(this,r=>{const a=this._diffModel.read(r)?.diff.read(r);if(!a)return Pse;const l=this._editors.modifiedSelections.read(r);if(l.every(h=>h.isEmpty()))return Pse;const u=new lh(l.map(h=>fi.fromRangeInclusive(h))),d=a.mappings.filter(h=>h.lineRangeMapping.innerChanges&&u.intersects(h.lineRangeMapping.modified)).map(h=>({mapping:h,rangeMappings:h.lineRangeMapping.innerChanges.filter(f=>l.some(g=>U.areIntersecting(f.modifiedRange,g)))}));return d.length===0||d.every(h=>h.rangeMappings.length===0)?Pse:d}),this._register(Bu((r,o)=>{if(!this._options.shouldRenderOldRevertArrows.read(r))return;const a=this._diffModel.read(r),l=a?.diff.read(r);if(!a||!l||a.movedTextToCompare.read(r))return;const u=[],c=this._selectedDiffs.read(r),d=new Set(c.map(h=>h.mapping));if(c.length>0){const h=this._editors.modifiedSelections.read(r),f=o.add(new sB(h[h.length-1].positionLineNumber,this._widget,c.flatMap(g=>g.rangeMappings),!0));this._editors.modified.addGlyphMarginWidget(f),u.push(f)}for(const h of l.mappings)if(!d.has(h)&&!h.lineRangeMapping.modified.isEmpty&&h.lineRangeMapping.innerChanges){const f=o.add(new sB(h.lineRangeMapping.modified.startLineNumber,this._widget,h.lineRangeMapping,!1));this._editors.modified.addGlyphMarginWidget(f),u.push(f)}o.add(zt(()=>{for(const h of u)this._editors.modified.removeGlyphMarginWidget(h)}))}))}}const LH=class LH extends ye{getId(){return this._id}constructor(e,t,n,s){super(),this._lineNumber=e,this._widget=t,this._diffs=n,this._revertSelection=s,this._id=`revertButton${LH.counter++}`,this._domNode=Ki("div.revertButton",{title:this._revertSelection?w("revertSelectedChanges","Revert Selected Changes"):w("revertChange","Revert Change")},[rw(et.arrowRight)]).root,this._register(Ie(this._domNode,tt.MOUSE_DOWN,r=>{r.button!==2&&(r.stopPropagation(),r.preventDefault())})),this._register(Ie(this._domNode,tt.MOUSE_UP,r=>{r.stopPropagation(),r.preventDefault()})),this._register(Ie(this._domNode,tt.CLICK,r=>{this._diffs instanceof Pl?this._widget.revert(this._diffs):this._widget.revertRangeMappings(this._diffs),r.stopPropagation(),r.preventDefault()}))}getDomNode(){return this._domNode}getPosition(){return{lane:vf.Right,range:{startColumn:1,startLineNumber:this._lineNumber,endColumn:1,endLineNumber:this._lineNumber},zIndex:10001}}};LH.counter=0;let sB=LH;function CFt(i,e,t){return b2t({debugName:()=>`Configuration Key "${i}"`},n=>t.onDidChangeConfiguration(s=>{s.affectsConfiguration(i)&&n(s)}),()=>t.getValue(i)??e)}function $p(i,e,t){const n=i.bindTo(e);return aP({debugName:()=>`Set Context Key "${i.key}"`},s=>{n.set(t(s))})}var wFt=function(i,e,t,n){var s=arguments.length,r=s<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(i,e,t,n);else for(var a=i.length-1;a>=0;a--)(o=i[a])&&(r=(s<3?o(r):s>3?o(e,t,r):o(e,t))||r);return s>3&&r&&Object.defineProperty(e,t,r),r},yRe=function(i,e){return function(t,n){e(t,n,i)}};let Mse=class extends ye{get onDidContentSizeChange(){return this._onDidContentSizeChange.event}constructor(e,t,n,s,r,o,a){super(),this.originalEditorElement=e,this.modifiedEditorElement=t,this._options=n,this._argCodeEditorWidgetOptions=s,this._createInnerEditor=r,this._instantiationService=o,this._keybindingService=a,this.original=this._register(this._createLeftHandSideEditor(this._options.editorOptions.get(),this._argCodeEditorWidgetOptions.originalEditor||{})),this.modified=this._register(this._createRightHandSideEditor(this._options.editorOptions.get(),this._argCodeEditorWidgetOptions.modifiedEditor||{})),this._onDidContentSizeChange=this._register(new _e),this.modifiedScrollTop=zn(this,this.modified.onDidScrollChange,()=>this.modified.getScrollTop()),this.modifiedScrollHeight=zn(this,this.modified.onDidScrollChange,()=>this.modified.getScrollHeight()),this.modifiedObs=wc(this.modified),this.originalObs=wc(this.original),this.modifiedModel=this.modifiedObs.model,this.modifiedSelections=zn(this,this.modified.onDidChangeCursorSelection,()=>this.modified.getSelections()??[]),this.modifiedCursor=pd({owner:this,equalsFn:me.equals},l=>this.modifiedSelections.read(l)[0]?.getPosition()??new me(1,1)),this.originalCursor=zn(this,this.original.onDidChangeCursorPosition,()=>this.original.getPosition()??new me(1,1)),this._argCodeEditorWidgetOptions=null,this._register(lP({createEmptyChangeSummary:()=>({}),handleChange:(l,u)=>(l.didChange(n.editorOptions)&&Object.assign(u,l.change.changedOptions),!0)},(l,u)=>{n.editorOptions.read(l),this._options.renderSideBySide.read(l),this.modified.updateOptions(this._adjustOptionsForRightHandSide(l,u)),this.original.updateOptions(this._adjustOptionsForLeftHandSide(l,u))}))}_createLeftHandSideEditor(e,t){const n=this._adjustOptionsForLeftHandSide(void 0,e),s=this._constructInnerEditor(this._instantiationService,this.originalEditorElement,n,t);return s.setContextValue("isInDiffLeftEditor",!0),s}_createRightHandSideEditor(e,t){const n=this._adjustOptionsForRightHandSide(void 0,e),s=this._constructInnerEditor(this._instantiationService,this.modifiedEditorElement,n,t);return s.setContextValue("isInDiffRightEditor",!0),s}_constructInnerEditor(e,t,n,s){const r=this._createInnerEditor(e,t,n,s);return this._register(r.onDidContentSizeChange(o=>{const a=this.original.getContentWidth()+this.modified.getContentWidth()+wM.ENTIRE_DIFF_OVERVIEW_WIDTH,l=Math.max(this.modified.getContentHeight(),this.original.getContentHeight());this._onDidContentSizeChange.fire({contentHeight:l,contentWidth:a,contentHeightChanged:o.contentHeightChanged,contentWidthChanged:o.contentWidthChanged})})),r}_adjustOptionsForLeftHandSide(e,t){const n=this._adjustOptionsForSubEditor(t);return this._options.renderSideBySide.get()?(n.unicodeHighlight=this._options.editorOptions.get().unicodeHighlight||{},n.wordWrapOverride1=this._options.diffWordWrap.get()):(n.wordWrapOverride1="off",n.wordWrapOverride2="off",n.stickyScroll={enabled:!1},n.unicodeHighlight={nonBasicASCII:!1,ambiguousCharacters:!1,invisibleCharacters:!1}),n.glyphMargin=this._options.renderSideBySide.get(),t.originalAriaLabel&&(n.ariaLabel=t.originalAriaLabel),n.ariaLabel=this._updateAriaLabel(n.ariaLabel),n.readOnly=!this._options.originalEditable.get(),n.dropIntoEditor={enabled:!n.readOnly},n.extraEditorClassName="original-in-monaco-diff-editor",n}_adjustOptionsForRightHandSide(e,t){const n=this._adjustOptionsForSubEditor(t);return t.modifiedAriaLabel&&(n.ariaLabel=t.modifiedAriaLabel),n.ariaLabel=this._updateAriaLabel(n.ariaLabel),n.wordWrapOverride1=this._options.diffWordWrap.get(),n.revealHorizontalRightPadding=Dp.revealHorizontalRightPadding.defaultValue+wM.ENTIRE_DIFF_OVERVIEW_WIDTH,n.scrollbar.verticalHasArrows=!1,n.extraEditorClassName="modified-in-monaco-diff-editor",n}_adjustOptionsForSubEditor(e){const t={...e,dimension:{height:0,width:0}};return t.inDiffEditor=!0,t.automaticLayout=!1,t.scrollbar={...t.scrollbar||{}},t.folding=!1,t.codeLens=this._options.diffCodeLens.get(),t.fixedOverflowWidgets=!0,t.minimap={...t.minimap||{}},t.minimap.enabled=!1,this._options.hideUnchangedRegions.get()?t.stickyScroll={enabled:!1}:t.stickyScroll=this._options.editorOptions.get().stickyScroll,t}_updateAriaLabel(e){e||(e="");const t=w("diff-aria-navigation-tip"," use {0} to open the accessibility help.",this._keybindingService.lookupKeybinding("editor.action.accessibilityHelp")?.getAriaLabel());return this._options.accessibilityVerbose.get()?e+t:e?e.replaceAll(t,""):""}};Mse=wFt([yRe(5,jt),yRe(6,In)],Mse);const AH=class AH extends ye{constructor(){super(...arguments),this._id=++AH.idCounter,this._onDidDispose=this._register(new _e),this.onDidDispose=this._onDidDispose.event}getId(){return this.getEditorType()+":v2:"+this._id}getVisibleColumnFromPosition(e){return this._targetEditor.getVisibleColumnFromPosition(e)}getPosition(){return this._targetEditor.getPosition()}setPosition(e,t="api"){this._targetEditor.setPosition(e,t)}revealLine(e,t=0){this._targetEditor.revealLine(e,t)}revealLineInCenter(e,t=0){this._targetEditor.revealLineInCenter(e,t)}revealLineInCenterIfOutsideViewport(e,t=0){this._targetEditor.revealLineInCenterIfOutsideViewport(e,t)}revealLineNearTop(e,t=0){this._targetEditor.revealLineNearTop(e,t)}revealPosition(e,t=0){this._targetEditor.revealPosition(e,t)}revealPositionInCenter(e,t=0){this._targetEditor.revealPositionInCenter(e,t)}revealPositionInCenterIfOutsideViewport(e,t=0){this._targetEditor.revealPositionInCenterIfOutsideViewport(e,t)}revealPositionNearTop(e,t=0){this._targetEditor.revealPositionNearTop(e,t)}getSelection(){return this._targetEditor.getSelection()}getSelections(){return this._targetEditor.getSelections()}setSelection(e,t="api"){this._targetEditor.setSelection(e,t)}setSelections(e,t="api"){this._targetEditor.setSelections(e,t)}revealLines(e,t,n=0){this._targetEditor.revealLines(e,t,n)}revealLinesInCenter(e,t,n=0){this._targetEditor.revealLinesInCenter(e,t,n)}revealLinesInCenterIfOutsideViewport(e,t,n=0){this._targetEditor.revealLinesInCenterIfOutsideViewport(e,t,n)}revealLinesNearTop(e,t,n=0){this._targetEditor.revealLinesNearTop(e,t,n)}revealRange(e,t=0,n=!1,s=!0){this._targetEditor.revealRange(e,t,n,s)}revealRangeInCenter(e,t=0){this._targetEditor.revealRangeInCenter(e,t)}revealRangeInCenterIfOutsideViewport(e,t=0){this._targetEditor.revealRangeInCenterIfOutsideViewport(e,t)}revealRangeNearTop(e,t=0){this._targetEditor.revealRangeNearTop(e,t)}revealRangeNearTopIfOutsideViewport(e,t=0){this._targetEditor.revealRangeNearTopIfOutsideViewport(e,t)}revealRangeAtTop(e,t=0){this._targetEditor.revealRangeAtTop(e,t)}getSupportedActions(){return this._targetEditor.getSupportedActions()}focus(){this._targetEditor.focus()}trigger(e,t,n){this._targetEditor.trigger(e,t,n)}createDecorationsCollection(e){return this._targetEditor.createDecorationsCollection(e)}changeDecorations(e){return this._targetEditor.changeDecorations(e)}};AH.idCounter=0;let Rse=AH;var SFt=function(i,e,t,n){var s=arguments.length,r=s<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(i,e,t,n);else for(var a=i.length-1;a>=0;a--)(o=i[a])&&(r=(s<3?o(r):s>3?o(e,t,r):o(e,t))||r);return s>3&&r&&Object.defineProperty(e,t,r),r},xFt=function(i,e){return function(t,n){e(t,n,i)}};let Ose=class{get editorOptions(){return this._options}constructor(e,t){this._accessibilityService=t,this._diffEditorWidth=Bi(this,0),this._screenReaderMode=zn(this,this._accessibilityService.onDidChangeScreenReaderOptimized,()=>this._accessibilityService.isScreenReaderOptimized()),this.couldShowInlineViewBecauseOfSize=Ht(this,s=>this._options.read(s).renderSideBySide&&this._diffEditorWidth.read(s)<=this._options.read(s).renderSideBySideInlineBreakpoint),this.renderOverviewRuler=Ht(this,s=>this._options.read(s).renderOverviewRuler),this.renderSideBySide=Ht(this,s=>this.compactMode.read(s)&&this.shouldRenderInlineViewInSmartMode.read(s)?!1:this._options.read(s).renderSideBySide&&!(this._options.read(s).useInlineViewWhenSpaceIsLimited&&this.couldShowInlineViewBecauseOfSize.read(s)&&!this._screenReaderMode.read(s))),this.readOnly=Ht(this,s=>this._options.read(s).readOnly),this.shouldRenderOldRevertArrows=Ht(this,s=>!(!this._options.read(s).renderMarginRevertIcon||!this.renderSideBySide.read(s)||this.readOnly.read(s)||this.shouldRenderGutterMenu.read(s))),this.shouldRenderGutterMenu=Ht(this,s=>this._options.read(s).renderGutterMenu),this.renderIndicators=Ht(this,s=>this._options.read(s).renderIndicators),this.enableSplitViewResizing=Ht(this,s=>this._options.read(s).enableSplitViewResizing),this.splitViewDefaultRatio=Ht(this,s=>this._options.read(s).splitViewDefaultRatio),this.ignoreTrimWhitespace=Ht(this,s=>this._options.read(s).ignoreTrimWhitespace),this.maxComputationTimeMs=Ht(this,s=>this._options.read(s).maxComputationTime),this.showMoves=Ht(this,s=>this._options.read(s).experimental.showMoves&&this.renderSideBySide.read(s)),this.isInEmbeddedEditor=Ht(this,s=>this._options.read(s).isInEmbeddedEditor),this.diffWordWrap=Ht(this,s=>this._options.read(s).diffWordWrap),this.originalEditable=Ht(this,s=>this._options.read(s).originalEditable),this.diffCodeLens=Ht(this,s=>this._options.read(s).diffCodeLens),this.accessibilityVerbose=Ht(this,s=>this._options.read(s).accessibilityVerbose),this.diffAlgorithm=Ht(this,s=>this._options.read(s).diffAlgorithm),this.showEmptyDecorations=Ht(this,s=>this._options.read(s).experimental.showEmptyDecorations),this.onlyShowAccessibleDiffViewer=Ht(this,s=>this._options.read(s).onlyShowAccessibleDiffViewer),this.compactMode=Ht(this,s=>this._options.read(s).compactMode),this.trueInlineDiffRenderingEnabled=Ht(this,s=>this._options.read(s).experimental.useTrueInlineView),this.useTrueInlineDiffRendering=Ht(this,s=>!this.renderSideBySide.read(s)&&this.trueInlineDiffRenderingEnabled.read(s)),this.hideUnchangedRegions=Ht(this,s=>this._options.read(s).hideUnchangedRegions.enabled),this.hideUnchangedRegionsRevealLineCount=Ht(this,s=>this._options.read(s).hideUnchangedRegions.revealLineCount),this.hideUnchangedRegionsContextLineCount=Ht(this,s=>this._options.read(s).hideUnchangedRegions.contextLineCount),this.hideUnchangedRegionsMinimumLineCount=Ht(this,s=>this._options.read(s).hideUnchangedRegions.minimumLineCount),this._model=Bi(this,void 0),this.shouldRenderInlineViewInSmartMode=this._model.map(this,s=>w2t(this,r=>{const o=s?.diff.read(r);return o?DFt(o,this.trueInlineDiffRenderingEnabled.read(r)):void 0})).flatten().map(this,s=>!!s),this.inlineViewHideOriginalLineNumbers=this.compactMode;const n={...e,...vRe(e,Fa)};this._options=Bi(this,n)}updateOptions(e){const t=vRe(e,this._options.get()),n={...this._options.get(),...e,...t};this._options.set(n,void 0,{changedOptions:e})}setWidth(e){this._diffEditorWidth.set(e,void 0)}setModel(e){this._model.set(e,void 0)}};Ose=SFt([xFt(1,gc)],Ose);function DFt(i,e){return i.mappings.every(t=>EFt(t.lineRangeMapping)||TFt(t.lineRangeMapping)||e&&Ese(t.lineRangeMapping))}function EFt(i){return i.original.length===0}function TFt(i){return i.modified.length===0}function vRe(i,e){return{enableSplitViewResizing:Ut(i.enableSplitViewResizing,e.enableSplitViewResizing),splitViewDefaultRatio:DCt(i.splitViewDefaultRatio,.5,.1,.9),renderSideBySide:Ut(i.renderSideBySide,e.renderSideBySide),renderMarginRevertIcon:Ut(i.renderMarginRevertIcon,e.renderMarginRevertIcon),maxComputationTime:HC(i.maxComputationTime,e.maxComputationTime,0,1073741824),maxFileSize:HC(i.maxFileSize,e.maxFileSize,0,1073741824),ignoreTrimWhitespace:Ut(i.ignoreTrimWhitespace,e.ignoreTrimWhitespace),renderIndicators:Ut(i.renderIndicators,e.renderIndicators),originalEditable:Ut(i.originalEditable,e.originalEditable),diffCodeLens:Ut(i.diffCodeLens,e.diffCodeLens),renderOverviewRuler:Ut(i.renderOverviewRuler,e.renderOverviewRuler),diffWordWrap:wr(i.diffWordWrap,e.diffWordWrap,["off","on","inherit"]),diffAlgorithm:wr(i.diffAlgorithm,e.diffAlgorithm,["legacy","advanced"],{smart:"legacy",experimental:"advanced"}),accessibilityVerbose:Ut(i.accessibilityVerbose,e.accessibilityVerbose),experimental:{showMoves:Ut(i.experimental?.showMoves,e.experimental.showMoves),showEmptyDecorations:Ut(i.experimental?.showEmptyDecorations,e.experimental.showEmptyDecorations),useTrueInlineView:Ut(i.experimental?.useTrueInlineView,e.experimental.useTrueInlineView)},hideUnchangedRegions:{enabled:Ut(i.hideUnchangedRegions?.enabled??i.experimental?.collapseUnchangedRegions,e.hideUnchangedRegions.enabled),contextLineCount:HC(i.hideUnchangedRegions?.contextLineCount,e.hideUnchangedRegions.contextLineCount,0,1073741824),minimumLineCount:HC(i.hideUnchangedRegions?.minimumLineCount,e.hideUnchangedRegions.minimumLineCount,0,1073741824),revealLineCount:HC(i.hideUnchangedRegions?.revealLineCount,e.hideUnchangedRegions.revealLineCount,0,1073741824)},isInEmbeddedEditor:Ut(i.isInEmbeddedEditor,e.isInEmbeddedEditor),onlyShowAccessibleDiffViewer:Ut(i.onlyShowAccessibleDiffViewer,e.onlyShowAccessibleDiffViewer),renderSideBySideInlineBreakpoint:HC(i.renderSideBySideInlineBreakpoint,e.renderSideBySideInlineBreakpoint,0,1073741824),useInlineViewWhenSpaceIsLimited:Ut(i.useInlineViewWhenSpaceIsLimited,e.useInlineViewWhenSpaceIsLimited),renderGutterMenu:Ut(i.renderGutterMenu,e.renderGutterMenu),compactMode:Ut(i.compactMode,e.compactMode)}}var kFt=function(i,e,t,n){var s=arguments.length,r=s<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(i,e,t,n);else for(var a=i.length-1;a>=0;a--)(o=i[a])&&(r=(s<3?o(r):s>3?o(e,t,r):o(e,t))||r);return s>3&&r&&Object.defineProperty(e,t,r),r},SM=function(i,e){return function(t,n){e(t,n,i)}};let k_=class extends Rse{get onDidContentSizeChange(){return this._editors.onDidContentSizeChange}constructor(e,t,n,s,r,o,a,l){super(),this._domElement=e,this._parentContextKeyService=s,this._parentInstantiationService=r,this._accessibilitySignalService=a,this._editorProgressService=l,this.elements=Ki("div.monaco-diff-editor.side-by-side",{style:{position:"relative",height:"100%"}},[Ki("div.editor.original@original",{style:{position:"absolute",height:"100%"}}),Ki("div.editor.modified@modified",{style:{position:"absolute",height:"100%"}}),Ki("div.accessibleDiffViewer@accessibleDiffViewer",{style:{position:"absolute",height:"100%"}})]),this._diffModelSrc=this._register(rP(this,void 0)),this._diffModel=Ht(this,k=>this._diffModelSrc.read(k)?.object),this.onDidChangeModel=rt.fromObservableLight(this._diffModel),this._contextKeyService=this._register(this._parentContextKeyService.createScoped(this._domElement)),this._instantiationService=this._register(this._parentInstantiationService.createChild(new e2([ri,this._contextKeyService]))),this._boundarySashes=Bi(this,void 0),this._accessibleDiffViewerShouldBeVisible=Bi(this,!1),this._accessibleDiffViewerVisible=Ht(this,k=>this._options.onlyShowAccessibleDiffViewer.read(k)?!0:this._accessibleDiffViewerShouldBeVisible.read(k)),this._movedBlocksLinesPart=Bi(this,void 0),this._layoutInfo=Ht(this,k=>{const A=this._rootSizeObserver.width.read(k),I=this._rootSizeObserver.height.read(k);this._rootSizeObserver.automaticLayout?this.elements.root.style.height="100%":this.elements.root.style.height=I+"px";const M=this._sash.read(k),B=this._gutter.read(k),F=B?.width.read(k)??0,G=this._overviewRulerPart.read(k)?.width??0;let q,ee,Z,K,oe;if(!!M){const de=M.sashLeft.read(k),ae=this._movedBlocksLinesPart.read(k)?.width.read(k)??0;q=0,ee=de-F-ae,oe=de-F,Z=de,K=A-Z-G}else{oe=0;const de=this._options.inlineViewHideOriginalLineNumbers.read(k);q=F,de?ee=0:ee=Math.max(5,this._editors.originalObs.layoutInfoDecorationsLeft.read(k)),Z=F+ee,K=A-Z-G}return this.elements.original.style.left=q+"px",this.elements.original.style.width=ee+"px",this._editors.original.layout({width:ee,height:I},!0),B?.layout(oe),this.elements.modified.style.left=Z+"px",this.elements.modified.style.width=K+"px",this._editors.modified.layout({width:K,height:I},!0),{modifiedEditor:this._editors.modified.getLayoutInfo(),originalEditor:this._editors.original.getLayoutInfo()}}),this._diffValue=this._diffModel.map((k,A)=>k?.diff.read(A)),this.onDidUpdateDiff=rt.fromObservableLight(this._diffValue),o.willCreateDiffEditor(),this._contextKeyService.createKey("isInDiffEditor",!0),this._domElement.appendChild(this.elements.root),this._register(zt(()=>this.elements.root.remove())),this._rootSizeObserver=this._register(new KMe(this.elements.root,t.dimension)),this._rootSizeObserver.setAutomaticLayout(t.automaticLayout??!1),this._options=this._instantiationService.createInstance(Ose,t),this._register(gi(k=>{this._options.setWidth(this._rootSizeObserver.width.read(k))})),this._contextKeyService.createKey(Q.isEmbeddedDiffEditor.key,!1),this._register($p(Q.isEmbeddedDiffEditor,this._contextKeyService,k=>this._options.isInEmbeddedEditor.read(k))),this._register($p(Q.comparingMovedCode,this._contextKeyService,k=>!!this._diffModel.read(k)?.movedTextToCompare.read(k))),this._register($p(Q.diffEditorRenderSideBySideInlineBreakpointReached,this._contextKeyService,k=>this._options.couldShowInlineViewBecauseOfSize.read(k))),this._register($p(Q.diffEditorInlineMode,this._contextKeyService,k=>!this._options.renderSideBySide.read(k))),this._register($p(Q.hasChanges,this._contextKeyService,k=>(this._diffModel.read(k)?.diff.read(k)?.mappings.length??0)>0)),this._editors=this._register(this._instantiationService.createInstance(Mse,this.elements.original,this.elements.modified,this._options,n,(k,A,I,M)=>this._createInnerEditor(k,A,I,M))),this._register($p(Q.diffEditorOriginalWritable,this._contextKeyService,k=>this._options.originalEditable.read(k))),this._register($p(Q.diffEditorModifiedWritable,this._contextKeyService,k=>!this._options.readOnly.read(k))),this._register($p(Q.diffEditorOriginalUri,this._contextKeyService,k=>this._diffModel.read(k)?.model.original.uri.toString()??"")),this._register($p(Q.diffEditorModifiedUri,this._contextKeyService,k=>this._diffModel.read(k)?.model.modified.uri.toString()??"")),this._overviewRulerPart=Ml(this,k=>this._options.renderOverviewRuler.read(k)?this._instantiationService.createInstance(Cc(wM,k),this._editors,this.elements.root,this._diffModel,this._rootSizeObserver.width,this._rootSizeObserver.height,this._layoutInfo.map(A=>A.modifiedEditor)):void 0).recomputeInitiallyAndOnChange(this._store);const u={height:this._rootSizeObserver.height,width:this._rootSizeObserver.width.map((k,A)=>k-(this._overviewRulerPart.read(A)?.width??0))};this._sashLayout=new dFt(this._options,u),this._sash=Ml(this,k=>{const A=this._options.renderSideBySide.read(k);return this.elements.root.classList.toggle("side-by-side",A),A?new dRe(this.elements.root,u,this._options.enableSplitViewResizing,this._boundarySashes,this._sashLayout.sashLeft,()=>this._sashLayout.resetSash()):void 0}).recomputeInitiallyAndOnChange(this._store);const c=Ml(this,k=>this._instantiationService.createInstance(Cc(nB,k),this._editors,this._diffModel,this._options)).recomputeInitiallyAndOnChange(this._store);Ml(this,k=>this._instantiationService.createInstance(Cc(cFt,k),this._editors,this._diffModel,this._options,this)).recomputeInitiallyAndOnChange(this._store);const d=new Set,h=new Set;let f=!1;const g=Ml(this,k=>this._instantiationService.createInstance(Cc(Dse,k),Jt(this._domElement),this._editors,this._diffModel,this._options,this,()=>f||c.get().isUpdatingHiddenAreas,d,h)).recomputeInitiallyAndOnChange(this._store),b=Ht(this,k=>{const A=g.read(k).viewZones.read(k).orig,I=c.read(k).viewZones.read(k).origViewZones;return A.concat(I)}),y=Ht(this,k=>{const A=g.read(k).viewZones.read(k).mod,I=c.read(k).viewZones.read(k).modViewZones;return A.concat(I)});this._register(G7(this._editors.original,b,k=>{f=k},d));let S;this._register(G7(this._editors.modified,y,k=>{f=k,f?S=Wp.capture(this._editors.modified):(S?.restore(this._editors.modified),S=void 0)},h)),this._accessibleDiffViewer=Ml(this,k=>this._instantiationService.createInstance(Cc(qw,k),this.elements.accessibleDiffViewer,this._accessibleDiffViewerVisible,(A,I)=>this._accessibleDiffViewerShouldBeVisible.set(A,I),this._options.onlyShowAccessibleDiffViewer.map(A=>!A),this._rootSizeObserver.width,this._rootSizeObserver.height,this._diffModel.map((A,I)=>A?.diff.read(I)?.mappings.map(M=>M.lineRangeMapping)),new ZOt(this._editors))).recomputeInitiallyAndOnChange(this._store);const x=this._accessibleDiffViewerVisible.map(k=>k?"hidden":"visible");this._register(T_(this.elements.modified,{visibility:x})),this._register(T_(this.elements.original,{visibility:x})),this._createDiffEditorContributions(),o.addDiffEditor(this),this._gutter=Ml(this,k=>this._options.shouldRenderGutterMenu.read(k)?this._instantiationService.createInstance(Cc(Lse,k),this.elements.root,this._diffModel,this._editors,this._options,this._sashLayout,this._boundarySashes):void 0),this._register(AT(this._layoutInfo)),Ml(this,k=>new(Cc(y2,k))(this.elements.root,this._diffModel,this._layoutInfo.map(A=>A.originalEditor),this._layoutInfo.map(A=>A.modifiedEditor),this._editors)).recomputeInitiallyAndOnChange(this._store,k=>{this._movedBlocksLinesPart.set(k,void 0)}),this._register(rt.runAndSubscribe(this._editors.modified.onDidChangeCursorPosition,k=>this._handleCursorPositionChange(k,!0))),this._register(rt.runAndSubscribe(this._editors.original.onDidChangeCursorPosition,k=>this._handleCursorPositionChange(k,!1)));const E=this._diffModel.map(this,(k,A)=>{if(k)return k.diff.read(A)===void 0&&!k.isDiffUpToDate.read(A)});this._register(Bu((k,A)=>{if(E.read(k)===!0){const I=this._editorProgressService.show(!0,1e3);A.add(zt(()=>I.done()))}})),this._register(Bu((k,A)=>{A.add(new(Cc(vFt,k))(this._editors,this._diffModel,this._options,this))})),this._register(Bu((k,A)=>{const I=this._diffModel.read(k);if(I)for(const M of[I.model.original,I.model.modified])A.add(M.onWillDispose(B=>{bi(new kn("TextModel got disposed before DiffEditorWidget model got reset")),this.setModel(null)}))})),this._register(gi(k=>{this._options.setModel(this._diffModel.read(k))}))}_createInnerEditor(e,t,n,s){return e.createInstance(mM,t,n,s)}_createDiffEditorContributions(){const e=ZC.getDiffEditorContributions();for(const t of e)try{this._register(this._instantiationService.createInstance(t.ctor,this))}catch(n){bi(n)}}get _targetEditor(){return this._editors.modified}getEditorType(){return KP.IDiffEditor}layout(e){this._rootSizeObserver.observe(e)}hasTextFocus(){return this._editors.original.hasTextFocus()||this._editors.modified.hasTextFocus()}saveViewState(){const e=this._editors.original.saveViewState(),t=this._editors.modified.saveViewState();return{original:e,modified:t,modelState:this._diffModel.get()?.serializeState()}}restoreViewState(e){if(e&&e.original&&e.modified){const t=e;this._editors.original.restoreViewState(t.original),this._editors.modified.restoreViewState(t.modified),t.modelState&&this._diffModel.get()?.restoreSerializedState(t.modelState)}}handleInitialized(){this._editors.original.handleInitialized(),this._editors.modified.handleInitialized()}createViewModel(e){return this._instantiationService.createInstance(wse,e,this._options)}getModel(){return this._diffModel.get()?.model??null}setModel(e){const t=e?"model"in e?K7.create(e).createNewRef(this):K7.create(this.createViewModel(e),this):null;this.setDiffModel(t)}setDiffModel(e,t){const n=this._diffModel.get();!e&&n&&this._accessibleDiffViewer.get().close(),this._diffModel.get()!==e?.object&&dw(t,s=>{const r=e?.object;zn.batchEventsGlobally(s,()=>{this._editors.original.setModel(r?r.model.original:null),this._editors.modified.setModel(r?r.model.modified:null)});const o=this._diffModelSrc.get()?.createNewRef(this);this._diffModelSrc.set(e?.createNewRef(this),s),setTimeout(()=>{o?.dispose()},0)})}updateOptions(e){this._options.updateOptions(e)}getContainerDomNode(){return this._domElement}getOriginalEditor(){return this._editors.original}getModifiedEditor(){return this._editors.modified}getLineChanges(){const e=this._diffModel.get()?.diff.get();return e?LFt(e):null}revert(e){const t=this._diffModel.get();!t||!t.isDiffUpToDate.get()||this._editors.modified.executeEdits("diffEditor",[{range:e.modified.toExclusiveRange(),text:t.model.original.getValueInRange(e.original.toExclusiveRange())}])}revertRangeMappings(e){const t=this._diffModel.get();if(!t||!t.isDiffUpToDate.get())return;const n=e.map(s=>({range:s.modifiedRange,text:t.model.original.getValueInRange(s.originalRange)}));this._editors.modified.executeEdits("diffEditor",n)}_goTo(e){this._editors.modified.setPosition(new me(e.lineRangeMapping.modified.startLineNumber,1)),this._editors.modified.revealRangeInCenter(e.lineRangeMapping.modified.toExclusiveRange())}goToDiff(e){const t=this._diffModel.get()?.diff.get()?.mappings;if(!t||t.length===0)return;const n=this._editors.modified.getPosition().lineNumber;let s;e==="next"?s=t.find(r=>r.lineRangeMapping.modified.startLineNumber>n)??t[0]:s=NI(t,r=>r.lineRangeMapping.modified.startLineNumber<n)??t[t.length-1],this._goTo(s),s.lineRangeMapping.modified.isEmpty?this._accessibilitySignalService.playSignal(wd.diffLineDeleted,{source:"diffEditor.goToDiff"}):s.lineRangeMapping.original.isEmpty?this._accessibilitySignalService.playSignal(wd.diffLineInserted,{source:"diffEditor.goToDiff"}):s&&this._accessibilitySignalService.playSignal(wd.diffLineModified,{source:"diffEditor.goToDiff"})}revealFirstDiff(){const e=this._diffModel.get();e&&this.waitForDiff().then(()=>{const t=e.diff.get()?.mappings;!t||t.length===0||this._goTo(t[0])})}accessibleDiffViewerNext(){this._accessibleDiffViewer.get().next()}accessibleDiffViewerPrev(){this._accessibleDiffViewer.get().prev()}async waitForDiff(){const e=this._diffModel.get();e&&await e.waitForDiff()}mapToOtherSide(){const e=this._editors.modified.hasWidgetFocus(),t=e?this._editors.modified:this._editors.original,n=e?this._editors.original:this._editors.modified;let s;const r=t.getSelection();if(r){const o=this._diffModel.get()?.diff.get()?.mappings.map(a=>e?a.lineRangeMapping.flip():a.lineRangeMapping);if(o){const a=XMe(r.getStartPosition(),o),l=XMe(r.getEndPosition(),o);s=U.plusRange(a,l)}}return{destination:n,destinationSelection:s}}switchSide(){const{destination:e,destinationSelection:t}=this.mapToOtherSide();e.focus(),t&&e.setSelection(t)}exitCompareMove(){const e=this._diffModel.get();e&&e.movedTextToCompare.set(void 0,void 0)}collapseAllUnchangedRegions(){const e=this._diffModel.get()?.unchangedRegions.get();e&&dr(t=>{for(const n of e)n.collapseAll(t)})}showAllUnchangedRegions(){const e=this._diffModel.get()?.unchangedRegions.get();e&&dr(t=>{for(const n of e)n.showAll(t)})}_handleCursorPositionChange(e,t){if(e?.reason===3){const n=this._diffModel.get()?.diff.get()?.mappings.find(s=>t?s.lineRangeMapping.modified.contains(e.position.lineNumber):s.lineRangeMapping.original.contains(e.position.lineNumber));n?.lineRangeMapping.modified.isEmpty?this._accessibilitySignalService.playSignal(wd.diffLineDeleted,{source:"diffEditor.cursorPositionChanged"}):n?.lineRangeMapping.original.isEmpty?this._accessibilitySignalService.playSignal(wd.diffLineInserted,{source:"diffEditor.cursorPositionChanged"}):n&&this._accessibilitySignalService.playSignal(wd.diffLineModified,{source:"diffEditor.cursorPositionChanged"})}}};k_=kFt([SM(3,ri),SM(4,jt),SM(5,yn),SM(6,j1),SM(7,I1)],k_);function LFt(i){return i.mappings.map(e=>{const t=e.lineRangeMapping;let n,s,r,o,a=t.innerChanges;return t.original.isEmpty?(n=t.original.startLineNumber-1,s=0,a=void 0):(n=t.original.startLineNumber,s=t.original.endLineNumberExclusive-1),t.modified.isEmpty?(r=t.modified.startLineNumber-1,o=0,a=void 0):(r=t.modified.startLineNumber,o=t.modified.endLineNumberExclusive-1),{originalStartLineNumber:n,originalEndLineNumber:s,modifiedStartLineNumber:r,modifiedEndLineNumber:o,charChanges:a?.map(l=>({originalStartLineNumber:l.originalRange.startLineNumber,originalStartColumn:l.originalRange.startColumn,originalEndLineNumber:l.originalRange.endLineNumber,originalEndColumn:l.originalRange.endColumn,modifiedStartLineNumber:l.modifiedRange.startLineNumber,modifiedStartColumn:l.modifiedRange.startColumn,modifiedEndLineNumber:l.modifiedRange.endLineNumber,modifiedEndColumn:l.modifiedRange.endColumn}))}})}var Fse=function(i,e,t,n){var s=arguments.length,r=s<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(i,e,t,n);else for(var a=i.length-1;a>=0;a--)(o=i[a])&&(r=(s<3?o(r):s>3?o(e,t,r):o(e,t))||r);return s>3&&r&&Object.defineProperty(e,t,r),r},Ms=function(i,e){return function(t,n){e(t,n,i)}};let AFt=0,CRe=!1;function NFt(i){if(!i){if(CRe)return;CRe=!0}pTt(i||cs.document.body)}let rB=class extends mM{constructor(e,t,n,s,r,o,a,l,u,c,d,h,f){const g={...t};g.ariaLabel=g.ariaLabel||Oee.editorViewAccessibleLabel,super(e,g,{},n,s,r,o,u,c,d,h,f),l instanceof i2?this._standaloneKeybindingService=l:this._standaloneKeybindingService=null,NFt(g.ariaContainerElement),E2t((b,y)=>n.createInstance(gT,b,y,{})),T2t(a)}addCommand(e,t,n){if(!this._standaloneKeybindingService)return console.warn("Cannot add command because the editor is configured with an unrecognized KeybindingService"),null;const s="DYNAMIC_"+ ++AFt,r=Be.deserialize(n);return this._standaloneKeybindingService.addDynamicKeybinding(s,e,t,r),s}createContextKey(e,t){return this._contextKeyService.createKey(e,t)}addAction(e){if(typeof e.id!="string"||typeof e.label!="string"||typeof e.run!="function")throw new Error("Invalid action descriptor, `id`, `label` and `run` are required properties!");if(!this._standaloneKeybindingService)return console.warn("Cannot add keybinding because the editor is configured with an unrecognized KeybindingService"),ye.None;const t=e.id,n=e.label,s=Be.and(Be.equals("editorId",this.getId()),Be.deserialize(e.precondition)),r=e.keybindings,o=Be.and(s,Be.deserialize(e.keybindingContext)),a=e.contextMenuGroupId||null,l=e.contextMenuOrder||0,u=(f,...g)=>Promise.resolve(e.run(this,...g)),c=new Fe,d=this.getId()+":"+t;if(c.add(dn.registerCommand(d,u)),a){const f={command:{id:d,title:n},when:s,group:a,order:l};c.add(ia.appendMenuItem(Nt.EditorContext,f))}if(Array.isArray(r))for(const f of r)c.add(this._standaloneKeybindingService.addDynamicKeybinding(d,f,u,o));const h=new MMe(d,n,n,void 0,s,(...f)=>Promise.resolve(e.run(this,...f)),this._contextKeyService);return this._actions.set(t,h),c.add(zt(()=>{this._actions.delete(t)})),c}_triggerCommand(e,t){if(this._codeEditorService instanceof m8)try{this._codeEditorService.setActiveCodeEditor(this),super._triggerCommand(e,t)}finally{this._codeEditorService.setActiveCodeEditor(null)}else super._triggerCommand(e,t)}};rB=Fse([Ms(2,jt),Ms(3,yn),Ms(4,xs),Ms(5,ri),Ms(6,om),Ms(7,In),Ms(8,Lo),Ms(9,$r),Ms(10,gc),Ms(11,lr),Ms(12,Tt)],rB);let Bse=class extends rB{constructor(e,t,n,s,r,o,a,l,u,c,d,h,f,g,b,y){const S={...t};y7(d,S,!1);const x=u.registerEditorContainer(e);typeof S.theme=="string"&&u.setTheme(S.theme),typeof S.autoDetectHighContrast<"u"&&u.setAutoDetectHighContrast(!!S.autoDetectHighContrast);const E=S.model;delete S.model,super(e,S,n,s,r,o,a,l,u,c,h,b,y),this._configurationService=d,this._standaloneThemeService=u,this._register(x);let k;if(typeof E>"u"){const A=g.getLanguageIdByMimeType(S.language)||S.language||ru;k=wRe(f,g,S.value||"",A,void 0),this._ownsModel=!0}else k=E,this._ownsModel=!1;if(this._attachModel(k),k){const A={oldModelUrl:null,newModelUrl:k.uri};this._onDidChangeModel.fire(A)}}dispose(){super.dispose()}updateOptions(e){y7(this._configurationService,e,!1),typeof e.theme=="string"&&this._standaloneThemeService.setTheme(e.theme),typeof e.autoDetectHighContrast<"u"&&this._standaloneThemeService.setAutoDetectHighContrast(!!e.autoDetectHighContrast),super.updateOptions(e)}_postDetachModelCleanup(e){super._postDetachModelCleanup(e),e&&this._ownsModel&&(e.dispose(),this._ownsModel=!1)}};Bse=Fse([Ms(2,jt),Ms(3,yn),Ms(4,xs),Ms(5,ri),Ms(6,om),Ms(7,In),Ms(8,Cd),Ms(9,$r),Ms(10,Fi),Ms(11,gc),Ms(12,Ls),Ms(13,Zs),Ms(14,lr),Ms(15,Tt)],Bse);let Vse=class extends k_{constructor(e,t,n,s,r,o,a,l,u,c,d,h){const f={...t};y7(l,f,!0);const g=o.registerEditorContainer(e);typeof f.theme=="string"&&o.setTheme(f.theme),typeof f.autoDetectHighContrast<"u"&&o.setAutoDetectHighContrast(!!f.autoDetectHighContrast),super(e,f,{},s,n,r,h,c),this._configurationService=l,this._standaloneThemeService=o,this._register(g)}dispose(){super.dispose()}updateOptions(e){y7(this._configurationService,e,!0),typeof e.theme=="string"&&this._standaloneThemeService.setTheme(e.theme),typeof e.autoDetectHighContrast<"u"&&this._standaloneThemeService.setAutoDetectHighContrast(!!e.autoDetectHighContrast),super.updateOptions(e)}_createInnerEditor(e,t,n){return e.createInstance(rB,t,n)}getOriginalEditor(){return super.getOriginalEditor()}getModifiedEditor(){return super.getModifiedEditor()}addCommand(e,t,n){return this.getModifiedEditor().addCommand(e,t,n)}createContextKey(e,t){return this.getModifiedEditor().createContextKey(e,t)}addAction(e){return this.getModifiedEditor().addAction(e)}};Vse=Fse([Ms(2,jt),Ms(3,ri),Ms(4,yn),Ms(5,Cd),Ms(6,$r),Ms(7,Fi),Ms(8,pc),Ms(9,I1),Ms(10,w_),Ms(11,j1)],Vse);function wRe(i,e,t,n,s){if(t=t||"",!n){const r=t.indexOf(`
|
|
1264
1167
|
`);let o=t;return r!==-1&&(o=t.substring(0,r)),SRe(i,t,e.createByFilepathOrFirstLine(s||null,o),s)}return SRe(i,t,e.createById(n),s)}function SRe(i,e,t,n){return i.createModel(e,t,n)}var IFt=function(i,e,t,n){var s=arguments.length,r=s<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(i,e,t,n);else for(var a=i.length-1;a>=0;a--)(o=i[a])&&(r=(s<3?o(r):s>3?o(e,t,r):o(e,t))||r);return s>3&&r&&Object.defineProperty(e,t,r),r},xRe=function(i,e){return function(t,n){e(t,n,i)}};class PFt{constructor(e,t){this.viewModel=e,this.deltaScrollVertical=t}getId(){return this.viewModel}}let oB=class extends ye{constructor(e,t,n,s,r){super(),this._container=e,this._overflowWidgetsDomNode=t,this._workbenchUIElementFactory=n,this._instantiationService=s,this._viewModel=Bi(this,void 0),this._collapsed=Ht(this,l=>this._viewModel.read(l)?.collapsed.read(l)),this._editorContentHeight=Bi(this,500),this.contentHeight=Ht(this,l=>(this._collapsed.read(l)?0:this._editorContentHeight.read(l))+this._outerEditorHeight),this._modifiedContentWidth=Bi(this,0),this._modifiedWidth=Bi(this,0),this._originalContentWidth=Bi(this,0),this._originalWidth=Bi(this,0),this.maxScroll=Ht(this,l=>{const u=this._modifiedContentWidth.read(l)-this._modifiedWidth.read(l),c=this._originalContentWidth.read(l)-this._originalWidth.read(l);return u>c?{maxScroll:u,width:this._modifiedWidth.read(l)}:{maxScroll:c,width:this._originalWidth.read(l)}}),this._elements=Ki("div.multiDiffEntry",[Ki("div.header@header",[Ki("div.header-content",[Ki("div.collapse-button@collapseButton"),Ki("div.file-path",[Ki("div.title.modified.show-file-icons@primaryPath",[]),Ki("div.status.deleted@status",["R"]),Ki("div.title.original.show-file-icons@secondaryPath",[])]),Ki("div.actions@actions")])]),Ki("div.editorParent",[Ki("div.editorContainer@editor")])]),this.editor=this._register(this._instantiationService.createInstance(k_,this._elements.editor,{overflowWidgetsDomNode:this._overflowWidgetsDomNode},{})),this.isModifedFocused=wc(this.editor.getModifiedEditor()).isFocused,this.isOriginalFocused=wc(this.editor.getOriginalEditor()).isFocused,this.isFocused=Ht(this,l=>this.isModifedFocused.read(l)||this.isOriginalFocused.read(l)),this._resourceLabel=this._workbenchUIElementFactory.createResourceLabel?this._register(this._workbenchUIElementFactory.createResourceLabel(this._elements.primaryPath)):void 0,this._resourceLabel2=this._workbenchUIElementFactory.createResourceLabel?this._register(this._workbenchUIElementFactory.createResourceLabel(this._elements.secondaryPath)):void 0,this._dataStore=this._register(new Fe),this._headerHeight=40,this._lastScrollTop=-1,this._isSettingScrollTop=!1;const o=new W9(this._elements.collapseButton,{});this._register(gi(l=>{o.element.className="",o.icon=this._collapsed.read(l)?et.chevronRight:et.chevronDown})),this._register(o.onDidClick(()=>{this._viewModel.get()?.collapsed.set(!this._collapsed.get(),void 0)})),this._register(gi(l=>{this._elements.editor.style.display=this._collapsed.read(l)?"none":"block"})),this._register(this.editor.getModifiedEditor().onDidLayoutChange(l=>{const u=this.editor.getModifiedEditor().getLayoutInfo().contentWidth;this._modifiedWidth.set(u,void 0)})),this._register(this.editor.getOriginalEditor().onDidLayoutChange(l=>{const u=this.editor.getOriginalEditor().getLayoutInfo().contentWidth;this._originalWidth.set(u,void 0)})),this._register(this.editor.onDidContentSizeChange(l=>{sP(u=>{this._editorContentHeight.set(l.contentHeight,u),this._modifiedContentWidth.set(this.editor.getModifiedEditor().getContentWidth(),u),this._originalContentWidth.set(this.editor.getOriginalEditor().getContentWidth(),u)})})),this._register(this.editor.getOriginalEditor().onDidScrollChange(l=>{if(this._isSettingScrollTop||!l.scrollTopChanged||!this._data)return;const u=l.scrollTop-this._lastScrollTop;this._data.deltaScrollVertical(u)})),this._register(gi(l=>{const u=this._viewModel.read(l)?.isActive.read(l);this._elements.root.classList.toggle("active",u)})),this._container.appendChild(this._elements.root),this._outerEditorHeight=this._headerHeight,this._contextKeyService=this._register(r.createScoped(this._elements.actions));const a=this._register(this._instantiationService.createChild(new e2([ri,this._contextKeyService])));this._register(a.createInstance(J7,this._elements.actions,Nt.MultiDiffEditorFileToolbar,{actionRunner:this._register(new hRe(()=>this._viewModel.get()?.modifiedUri)),menuOptions:{shouldForwardArgs:!0},toolbarOptions:{primaryGroup:l=>l.startsWith("navigation")},actionViewItemProvider:(l,u)=>xNe(a,l,u)}))}setScrollLeft(e){this._modifiedContentWidth.get()-this._modifiedWidth.get()>this._originalContentWidth.get()-this._originalWidth.get()?this.editor.getModifiedEditor().setScrollLeft(e):this.editor.getOriginalEditor().setScrollLeft(e)}setData(e){this._data=e;function t(s){return{...s,scrollBeyondLastLine:!1,hideUnchangedRegions:{enabled:!0},scrollbar:{vertical:"hidden",horizontal:"hidden",handleMouseWheel:!1,useShadows:!1},renderOverviewRuler:!1,fixedOverflowWidgets:!0,overviewRulerBorder:!1}}if(!e){sP(s=>{this._viewModel.set(void 0,s),this.editor.setDiffModel(null,s),this._dataStore.clear()});return}const n=e.viewModel.documentDiffItem;if(sP(s=>{this._resourceLabel?.setUri(e.viewModel.modifiedUri??e.viewModel.originalUri,{strikethrough:e.viewModel.modifiedUri===void 0});let r=!1,o=!1,a=!1,l="";e.viewModel.modifiedUri&&e.viewModel.originalUri&&e.viewModel.modifiedUri.path!==e.viewModel.originalUri.path?(l="R",r=!0):e.viewModel.modifiedUri?e.viewModel.originalUri||(l="A",a=!0):(l="D",o=!0),this._elements.status.classList.toggle("renamed",r),this._elements.status.classList.toggle("deleted",o),this._elements.status.classList.toggle("added",a),this._elements.status.innerText=l,this._resourceLabel2?.setUri(r?e.viewModel.originalUri:void 0,{strikethrough:!0}),this._dataStore.clear(),this._viewModel.set(e.viewModel,s),this.editor.setDiffModel(e.viewModel.diffEditorViewModelRef,s),this.editor.updateOptions(t(n.options??{}))}),n.onOptionsDidChange&&this._dataStore.add(n.onOptionsDidChange(()=>{this.editor.updateOptions(t(n.options??{}))})),e.viewModel.isAlive.recomputeInitiallyAndOnChange(this._dataStore,s=>{s||this.setData(void 0)}),e.viewModel.documentDiffItem.contextKeys)for(const[s,r]of Object.entries(e.viewModel.documentDiffItem.contextKeys))this._contextKeyService.createKey(s,r)}render(e,t,n,s){this._elements.root.style.visibility="visible",this._elements.root.style.top=`${e.start}px`,this._elements.root.style.height=`${e.length}px`,this._elements.root.style.width=`${t}px`,this._elements.root.style.position="absolute";const r=e.length-this._headerHeight,o=Math.max(0,Math.min(s.start-e.start,r));this._elements.header.style.transform=`translateY(${o}px)`,sP(a=>{this.editor.layout({width:t-16-2,height:e.length-this._outerEditorHeight})});try{this._isSettingScrollTop=!0,this._lastScrollTop=n,this.editor.getOriginalEditor().setScrollTop(n)}finally{this._isSettingScrollTop=!1}this._elements.header.classList.toggle("shadow",o>0||n>0),this._elements.header.classList.toggle("collapsed",o===r)}hide(){this._elements.root.style.top="-100000px",this._elements.root.style.visibility="hidden"}};oB=IFt([xRe(3,jt),xRe(4,ri)],oB);class MFt{constructor(e){this._create=e,this._unused=new Set,this._used=new Set,this._itemData=new Map}getUnusedObj(e){let t;if(this._unused.size===0)t=this._create(e),this._itemData.set(t,e);else{const n=[...this._unused.values()];t=n.find(s=>this._itemData.get(s).getId()===e.getId())??n[0],this._unused.delete(t),this._itemData.set(t,e),t.setData(e)}return this._used.add(t),{object:t,dispose:()=>{this._used.delete(t),this._unused.size>5?t.dispose():this._unused.add(t)}}}dispose(){for(const e of this._used)e.dispose();for(const e of this._unused)e.dispose();this._used.clear(),this._unused.clear()}}var RFt=function(i,e,t,n){var s=arguments.length,r=s<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(i,e,t,n);else for(var a=i.length-1;a>=0;a--)(o=i[a])&&(r=(s<3?o(r):s>3?o(e,t,r):o(e,t))||r);return s>3&&r&&Object.defineProperty(e,t,r),r},DRe=function(i,e){return function(t,n){e(t,n,i)}};let Wse=class extends ye{constructor(e,t,n,s,r,o){super(),this._element=e,this._dimension=t,this._viewModel=n,this._workbenchUIElementFactory=s,this._parentContextKeyService=r,this._parentInstantiationService=o,this._scrollableElements=Ki("div.scrollContent",[Ki("div@content",{style:{overflow:"hidden"}}),Ki("div.monaco-editor@overflowWidgetsDomNode",{})]),this._scrollable=this._register(new bT({forceIntegerValues:!1,scheduleAtNextAnimationFrame:l=>ac(Jt(this._element),l),smoothScrollDuration:100})),this._scrollableElement=this._register(new A8(this._scrollableElements.root,{vertical:1,horizontal:1,useShadows:!1},this._scrollable)),this._elements=Ki("div.monaco-component.multiDiffEditor",{},[Ki("div",{},[this._scrollableElement.getDomNode()]),Ki("div.placeholder@placeholder",{},[Ki("div",[w("noChangedFiles","No Changed Files")])])]),this._sizeObserver=this._register(new KMe(this._element,void 0)),this._objectPool=this._register(new MFt(l=>{const u=this._instantiationService.createInstance(oB,this._scrollableElements.content,this._scrollableElements.overflowWidgetsDomNode,this._workbenchUIElementFactory);return u.setData(l),u})),this.scrollTop=zn(this,this._scrollableElement.onScroll,()=>this._scrollableElement.getScrollPosition().scrollTop),this.scrollLeft=zn(this,this._scrollableElement.onScroll,()=>this._scrollableElement.getScrollPosition().scrollLeft),this._viewItemsInfo=P1(this,(l,u)=>{const c=this._viewModel.read(l);if(!c)return{items:[],getItem:g=>{throw new kn}};const d=c.items.read(l),h=new Map;return{items:d.map(g=>{const b=u.add(new OFt(g,this._objectPool,this.scrollLeft,S=>{this._scrollableElement.setScrollPosition({scrollTop:this._scrollableElement.getScrollPosition().scrollTop+S})})),y=this._lastDocStates?.[b.getKey()];return y&&dr(S=>{b.setViewState(y,S)}),h.set(g,b),b}),getItem:g=>h.get(g)}}),this._viewItems=this._viewItemsInfo.map(this,l=>l.items),this._spaceBetweenPx=0,this._totalHeight=this._viewItems.map(this,(l,u)=>l.reduce((c,d)=>c+d.contentHeight.read(u)+this._spaceBetweenPx,0)),this._contextKeyService=this._register(this._parentContextKeyService.createScoped(this._element)),this._instantiationService=this._register(this._parentInstantiationService.createChild(new e2([ri,this._contextKeyService]))),this._lastDocStates={},this._contextKeyService.createKey(Q.inMultiDiffEditor.key,!0),this._register(Bu((l,u)=>{const c=this._viewModel.read(l);if(c&&c.contextKeys)for(const[d,h]of Object.entries(c.contextKeys)){const f=this._contextKeyService.createKey(d,void 0);f.set(h),u.add(zt(()=>f.reset()))}}));const a=this._parentContextKeyService.createKey(Q.multiDiffEditorAllCollapsed.key,!1);this._register(gi(l=>{const u=this._viewModel.read(l);if(u){const c=u.items.read(l).every(d=>d.collapsed.read(l));a.set(c)}})),this._register(gi(l=>{const u=this._dimension.read(l);this._sizeObserver.observe(u)})),this._register(gi(l=>{const u=this._viewItems.read(l);this._elements.placeholder.classList.toggle("visible",u.length===0)})),this._scrollableElements.content.style.position="relative",this._register(gi(l=>{const u=this._sizeObserver.height.read(l);this._scrollableElements.root.style.height=`${u}px`;const c=this._totalHeight.read(l);this._scrollableElements.content.style.height=`${c}px`;const d=this._sizeObserver.width.read(l);let h=d;const f=this._viewItems.read(l),g=fJ(f,Jl(b=>b.maxScroll.read(l).maxScroll,mf));if(g){const b=g.maxScroll.read(l);h=d+b.maxScroll}this._scrollableElement.setScrollDimensions({width:d,height:u,scrollHeight:c,scrollWidth:h})})),e.replaceChildren(this._elements.root),this._register(zt(()=>{e.replaceChildren()})),this._register(this._register(gi(l=>{sP(u=>{this.render(l)})})))}render(e){const t=this.scrollTop.read(e);let n=0,s=0,r=0;const o=this._sizeObserver.height.read(e),a=Ui.ofStartAndLength(t,o),l=this._sizeObserver.width.read(e);for(const u of this._viewItems.read(e)){const c=u.contentHeight.read(e),d=Math.min(c,o),h=Ui.ofStartAndLength(s,d),f=Ui.ofStartAndLength(r,c);if(f.isBefore(a))n-=c-d,u.hide();else if(f.isAfter(a))u.hide();else{const g=Math.max(0,Math.min(a.start-f.start,c-d));n-=g;const b=Ui.ofStartAndLength(t+n,o);u.render(h,g,l,b)}s+=d+this._spaceBetweenPx,r+=c+this._spaceBetweenPx}this._scrollableElements.content.style.transform=`translateY(${-(t+n)}px)`}};Wse=RFt([DRe(4,ri),DRe(5,jt)],Wse);class OFt extends ye{constructor(e,t,n,s){super(),this.viewModel=e,this._objectPool=t,this._scrollLeft=n,this._deltaScrollVertical=s,this._templateRef=this._register(rP(this,void 0)),this.contentHeight=Ht(this,r=>this._templateRef.read(r)?.object.contentHeight?.read(r)??this.viewModel.lastTemplateData.read(r).contentHeight),this.maxScroll=Ht(this,r=>this._templateRef.read(r)?.object.maxScroll.read(r)??{maxScroll:0,scrollWidth:0}),this.template=Ht(this,r=>this._templateRef.read(r)?.object),this._isHidden=Bi(this,!1),this._isFocused=Ht(this,r=>this.template.read(r)?.isFocused.read(r)??!1),this.viewModel.setIsFocused(this._isFocused,void 0),this._register(gi(r=>{const o=this._scrollLeft.read(r);this._templateRef.read(r)?.object.setScrollLeft(o)})),this._register(gi(r=>{const o=this._templateRef.read(r);!o||!this._isHidden.read(r)||o.object.isFocused.read(r)||this._clear()}))}dispose(){this._clear(),super.dispose()}toString(){return`VirtualViewItem(${this.viewModel.documentDiffItem.modified?.uri.toString()})`}getKey(){return this.viewModel.getKey()}setViewState(e,t){this.viewModel.collapsed.set(e.collapsed,t),this._updateTemplateData(t);const n=this.viewModel.lastTemplateData.get(),s=e.selections?.map(Pt.liftSelection);this.viewModel.lastTemplateData.set({...n,selections:s},t);const r=this._templateRef.get();r&&s&&r.object.editor.setSelections(s)}_updateTemplateData(e){const t=this._templateRef.get();t&&this.viewModel.lastTemplateData.set({contentHeight:t.object.contentHeight.get(),selections:t.object.editor.getSelections()??void 0},e)}_clear(){const e=this._templateRef.get();e&&dr(t=>{this._updateTemplateData(t),e.object.hide(),this._templateRef.set(void 0,t)})}hide(){this._isHidden.set(!0,void 0)}render(e,t,n,s){this._isHidden.set(!1,void 0);let r=this._templateRef.get();if(!r){r=this._objectPool.getUnusedObj(new PFt(this.viewModel,this._deltaScrollVertical)),this._templateRef.set(r,void 0);const o=this.viewModel.lastTemplateData.get().selections;o&&r.object.editor.setSelections(o)}r.object.render(e,n,t,s)}}ie("multiDiffEditor.headerBackground",{dark:"#262626",light:"tab.inactiveBackground",hcDark:"tab.inactiveBackground",hcLight:"tab.inactiveBackground"},w("multiDiffEditor.headerBackground","The background color of the diff editor's header")),ie("multiDiffEditor.background",pf,w("multiDiffEditor.background","The background color of the multi file diff editor")),ie("multiDiffEditor.border",{dark:"sideBarSectionHeader.border",light:"#cccccc",hcDark:"sideBarSectionHeader.border",hcLight:"#cccccc"},w("multiDiffEditor.border","The border color of the multi file diff editor"));var FFt=function(i,e,t,n){var s=arguments.length,r=s<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(i,e,t,n);else for(var a=i.length-1;a>=0;a--)(o=i[a])&&(r=(s<3?o(r):s>3?o(e,t,r):o(e,t))||r);return s>3&&r&&Object.defineProperty(e,t,r),r},BFt=function(i,e){return function(t,n){e(t,n,i)}};let Hse=class extends ye{constructor(e,t,n){super(),this._element=e,this._workbenchUIElementFactory=t,this._instantiationService=n,this._dimension=Bi(this,void 0),this._viewModel=Bi(this,void 0),this._widgetImpl=P1(this,(s,r)=>(Cc(oB,s),r.add(this._instantiationService.createInstance(Cc(Wse,s),this._element,this._dimension,this._viewModel,this._workbenchUIElementFactory)))),this._register(AT(this._widgetImpl))}};Hse=FFt([BFt(2,jt)],Hse);function VFt(i,e,t){return ci.initialize(t||{}).createInstance(Bse,i,e)}function WFt(i){return ci.get(yn).onCodeEditorAdd(t=>{i(t)})}function HFt(i){return ci.get(yn).onDiffEditorAdd(t=>{i(t)})}function $Ft(){return ci.get(yn).listCodeEditors()}function UFt(){return ci.get(yn).listDiffEditors()}function zFt(i,e,t){return ci.initialize(t||{}).createInstance(Vse,i,e)}function jFt(i,e){const t=ci.initialize(e||{});return new Hse(i,{},t)}function qFt(i){if(typeof i.id!="string"||typeof i.run!="function")throw new Error("Invalid command descriptor, `id` and `run` are required properties!");return dn.registerCommand(i.id,i.run)}function GFt(i){if(typeof i.id!="string"||typeof i.label!="string"||typeof i.run!="function")throw new Error("Invalid action descriptor, `id`, `label` and `run` are required properties!");const e=Be.deserialize(i.precondition),t=(s,...r)=>ko.runEditorCommand(s,r,e,(o,a,l)=>Promise.resolve(i.run(a,...l))),n=new Fe;if(n.add(dn.registerCommand(i.id,t)),i.contextMenuGroupId){const s={command:{id:i.id,title:i.label},when:e,group:i.contextMenuGroupId,order:i.contextMenuOrder||0};n.add(ia.appendMenuItem(Nt.EditorContext,s))}if(Array.isArray(i.keybindings)){const s=ci.get(In);if(!(s instanceof i2))console.warn("Cannot add keybinding because the editor is configured with an unrecognized KeybindingService");else{const r=Be.and(e,Be.deserialize(i.keybindingContext));n.add(s.addDynamicKeybindings(i.keybindings.map(o=>({keybinding:o,command:i.id,when:r}))))}}return n}function KFt(i){return ERe([i])}function ERe(i){const e=ci.get(In);return e instanceof i2?e.addDynamicKeybindings(i.map(t=>({keybinding:t.keybinding,command:t.command,commandArgs:t.commandArgs,when:Be.deserialize(t.when)}))):(console.warn("Cannot add keybinding because the editor is configured with an unrecognized KeybindingService"),ye.None)}function YFt(i,e,t){const n=ci.get(Zs),s=n.getLanguageIdByMimeType(e)||e;return wRe(ci.get(Ls),n,i,s,t)}function XFt(i,e){const t=ci.get(Zs),n=t.getLanguageIdByMimeType(e)||e||ru;i.setLanguage(t.createById(n))}function QFt(i,e,t){i&&ci.get(fm).changeOne(e,i.uri,t)}function ZFt(i){ci.get(fm).changeAll(i,[])}function JFt(i){return ci.get(fm).read(i)}function e3t(i){return ci.get(fm).onMarkerChanged(i)}function t3t(i){return ci.get(Ls).getModel(i)}function i3t(){return ci.get(Ls).getModels()}function n3t(i){return ci.get(Ls).onModelAdded(i)}function s3t(i){return ci.get(Ls).onModelRemoved(i)}function r3t(i){return ci.get(Ls).onModelLanguageChanged(t=>{i({model:t.model,oldLanguage:t.oldLanguageId})})}function o3t(i){return vPt(ci.get(Ls),i)}function a3t(i,e){const t=ci.get(Zs),n=ci.get(Cd);return fne.colorizeElement(n,t,i,e).then(()=>{n.registerEditorContainer(i)})}function l3t(i,e,t){const n=ci.get(Zs);return ci.get(Cd).registerEditorContainer(cs.document.body),fne.colorize(n,i,e,t)}function u3t(i,e,t=4){return ci.get(Cd).registerEditorContainer(cs.document.body),fne.colorizeModelLine(i,e,t)}function c3t(i){const e=Cr.get(i);return e||{getInitialState:()=>vT,tokenize:(t,n,s)=>Cee(i,s)}}function d3t(i,e){Cr.getOrCreate(e);const t=c3t(e),n=qg(i),s=[];let r=t.getInitialState();for(let o=0,a=n.length;o<a;o++){const l=n[o],u=t.tokenize(l,!0,r);s[o]=u.tokens,r=u.endState}return s}function h3t(i,e){ci.get(Cd).defineTheme(i,e)}function f3t(i){ci.get(Cd).setTheme(i)}function p3t(){UZ.clearAllFontInfos()}function g3t(i,e){return dn.registerCommand({id:i,handler:e})}function m3t(i){return ci.get(Fu).registerOpener({async open(t){return typeof t=="string"&&(t=Gt.parse(t)),i.open(t)}})}function _3t(i){return ci.get(yn).registerCodeEditorOpenHandler(async(t,n,s)=>{if(!n)return null;const r=t.options?.selection;let o;return r&&typeof r.endLineNumber=="number"&&typeof r.endColumn=="number"?o=r:r&&(o={lineNumber:r.startLineNumber,column:r.startColumn}),await i.openCodeEditor(n,t.resource,o)?n:null})}function b3t(){return{create:VFt,getEditors:$Ft,getDiffEditors:UFt,onDidCreateEditor:WFt,onDidCreateDiffEditor:HFt,createDiffEditor:zFt,addCommand:qFt,addEditorAction:GFt,addKeybindingRule:KFt,addKeybindingRules:ERe,createModel:YFt,setModelLanguage:XFt,setModelMarkers:QFt,getModelMarkers:JFt,removeAllMarkers:ZFt,onDidChangeMarkers:e3t,getModels:i3t,getModel:t3t,onDidCreateModel:n3t,onWillDisposeModel:s3t,onDidChangeModelLanguage:r3t,createWebWorker:o3t,colorizeElement:a3t,colorize:l3t,colorizeModelLine:u3t,tokenize:d3t,defineTheme:h3t,setTheme:f3t,remeasureFonts:p3t,registerCommand:g3t,registerLinkOpener:m3t,registerEditorOpener:_3t,AccessibilitySupport:mz,ContentWidgetPositionPreference:wz,CursorChangeReason:Sz,DefaultEndOfLine:xz,EditorAutoIndentStrategy:Ez,EditorOption:Tz,EndOfLinePreference:kz,EndOfLineSequence:Lz,MinimapPosition:Vz,MinimapSectionHeaderStyle:Wz,MouseTargetType:Hz,OverlayWidgetPositionPreference:zz,OverviewRulerLane:jz,GlyphMarginLane:Az,RenderLineNumbersType:Kz,RenderMinimap:Yz,ScrollbarVisibility:Qz,ScrollType:Xz,TextEditorCursorBlinkingStyle:nj,TextEditorCursorStyle:sj,TrackedRangeStickiness:rj,WrappingIndent:oj,InjectedTextCursorStops:Pz,PositionAffinity:Gz,ShowLightbulbIconMode:Jz,ConfigurationChangedEvent:Y2e,BareFontInfo:zC,FontInfo:$Z,TextModelResolvedOptions:a8,FindMatch:AI,ApplyUpdateResult:bI,EditorZoom:rh,createMultiFileDiffEditor:jFt,EditorType:KP,EditorOptions:Dp}}function y3t(i,e){if(!e||!Array.isArray(e))return!1;for(const t of e)if(!i(t))return!1;return!0}function aB(i,e){return typeof i=="boolean"?i:e}function TRe(i,e){return typeof i=="string"?i:e}function v3t(i){const e={};for(const t of i)e[t]=!0;return e}function kRe(i,e=!1){e&&(i=i.map(function(n){return n.toLowerCase()}));const t=v3t(i);return e?function(n){return t[n.toLowerCase()]!==void 0&&t.hasOwnProperty(n.toLowerCase())}:function(n){return t[n]!==void 0&&t.hasOwnProperty(n)}}function $se(i,e,t){e=e.replace(/@@/g,"");let n=0,s;do s=!1,e=e.replace(/@(\w+)/g,function(o,a){s=!0;let l="";if(typeof i[a]=="string")l=i[a];else if(i[a]&&i[a]instanceof RegExp)l=i[a].source;else throw i[a]===void 0?zs(i,"language definition does not contain attribute '"+a+"', used at: "+e):zs(i,"attribute reference '"+a+"' must be a string, used at: "+e);return Ow(l)?"":"(?:"+l+")"}),n++;while(s&&n<5);e=e.replace(/\x01/g,"@");const r=(i.ignoreCase?"i":"")+(i.unicode?"u":"");if(t&&e.match(/\$[sS](\d\d?)/g)){let a=null,l=null;return u=>(l&&a===u||(a=u,l=new RegExp(TPt(i,e,u),r)),l)}return new RegExp(e,r)}function C3t(i,e,t,n){if(n<0)return i;if(n<e.length)return e[n];if(n>=100){n=n-100;const s=t.split(".");if(s.unshift(t),n<s.length)return s[n]}return null}function w3t(i,e,t,n){let s=-1,r=t,o=t.match(/^\$(([sS]?)(\d\d?)|#)(.*)$/);o&&(o[3]&&(s=parseInt(o[3]),o[2]&&(s=s+100)),r=o[4]);let a="~",l=r;!r||r.length===0?(a="!=",l=""):/^\w*$/.test(l)?a="==":(o=r.match(/^(@|!@|~|!~|==|!=)(.*)$/),o&&(a=o[1],l=o[2]));let u;if((a==="~"||a==="!~")&&/^(\w|\|)*$/.test(l)){const c=kRe(l.split("|"),i.ignoreCase);u=function(d){return a==="~"?c(d):!c(d)}}else if(a==="@"||a==="!@"){const c=i[l];if(!c)throw zs(i,"the @ match target '"+l+"' is not defined, in rule: "+e);if(!y3t(function(h){return typeof h=="string"},c))throw zs(i,"the @ match target '"+l+"' must be an array of strings, in rule: "+e);const d=kRe(c,i.ignoreCase);u=function(h){return a==="@"?d(h):!d(h)}}else if(a==="~"||a==="!~")if(l.indexOf("$")<0){const c=$se(i,"^"+l+"$",!1);u=function(d){return a==="~"?c.test(d):!c.test(d)}}else u=function(c,d,h,f){return $se(i,"^"+q1(i,l,d,h,f)+"$",!1).test(c)};else if(l.indexOf("$")<0){const c=S_(i,l);u=function(d){return a==="=="?d===c:d!==c}}else{const c=S_(i,l);u=function(d,h,f,g,b){const y=q1(i,c,h,f,g);return a==="=="?d===y:d!==y}}return s===-1?{name:t,value:n,test:function(c,d,h,f){return u(c,c,d,h,f)}}:{name:t,value:n,test:function(c,d,h,f){const g=C3t(c,d,h,s);return u(g||"",c,d,h,f)}}}function Use(i,e,t){if(t){if(typeof t=="string")return t;if(t.token||t.token===""){if(typeof t.token!="string")throw zs(i,"a 'token' attribute must be of type string, in rule: "+e);{const n={token:t.token};if(t.token.indexOf("$")>=0&&(n.tokenSubst=!0),typeof t.bracket=="string")if(t.bracket==="@open")n.bracket=1;else if(t.bracket==="@close")n.bracket=-1;else throw zs(i,"a 'bracket' attribute must be either '@open' or '@close', in rule: "+e);if(t.next){if(typeof t.next!="string")throw zs(i,"the next state must be a string value in rule: "+e);{let s=t.next;if(!/^(@pop|@push|@popall)$/.test(s)&&(s[0]==="@"&&(s=s.substr(1)),s.indexOf("$")<0&&!kPt(i,q1(i,s,"",[],""))))throw zs(i,"the next state '"+t.next+"' is not defined in rule: "+e);n.next=s}}return typeof t.goBack=="number"&&(n.goBack=t.goBack),typeof t.switchTo=="string"&&(n.switchTo=t.switchTo),typeof t.log=="string"&&(n.log=t.log),typeof t.nextEmbedded=="string"&&(n.nextEmbedded=t.nextEmbedded,i.usesEmbedded=!0),n}}else if(Array.isArray(t)){const n=[];for(let s=0,r=t.length;s<r;s++)n[s]=Use(i,e,t[s]);return{group:n}}else if(t.cases){const n=[];for(const r in t.cases)if(t.cases.hasOwnProperty(r)){const o=Use(i,e,t.cases[r]);r==="@default"||r==="@"||r===""?n.push({test:void 0,value:o,name:r}):r==="@eos"?n.push({test:function(a,l,u,c){return c},value:o,name:r}):n.push(w3t(i,e,r,o))}const s=i.defaultToken;return{test:function(r,o,a,l){for(const u of n)if(!u.test||u.test(r,o,a,l))return u.value;return s}}}else throw zs(i,"an action must be a string, an object with a 'token' or 'cases' attribute, or an array of actions; in rule: "+e)}else return{token:""}}class S3t{constructor(e){this.regex=new RegExp(""),this.action={token:""},this.matchOnlyAtLineStart=!1,this.name="",this.name=e}setRegex(e,t){let n;if(typeof t=="string")n=t;else if(t instanceof RegExp)n=t.source;else throw zs(e,"rules must start with a match string or regular expression: "+this.name);this.matchOnlyAtLineStart=n.length>0&&n[0]==="^",this.name=this.name+": "+n,this.regex=$se(e,"^(?:"+(this.matchOnlyAtLineStart?n.substr(1):n)+")",!0)}setAction(e,t){this.action=Use(e,this.name,t)}resolveRegex(e){return this.regex instanceof RegExp?this.regex:this.regex(e)}}function LRe(i,e){if(!e||typeof e!="object")throw new Error("Monarch: expecting a language definition object");const t={languageId:i,includeLF:aB(e.includeLF,!1),noThrow:!1,maxStack:100,start:typeof e.start=="string"?e.start:null,ignoreCase:aB(e.ignoreCase,!1),unicode:aB(e.unicode,!1),tokenPostfix:TRe(e.tokenPostfix,"."+i),defaultToken:TRe(e.defaultToken,"source"),usesEmbedded:!1,stateNames:{},tokenizer:{},brackets:[]},n=e;n.languageId=i,n.includeLF=t.includeLF,n.ignoreCase=t.ignoreCase,n.unicode=t.unicode,n.noThrow=t.noThrow,n.usesEmbedded=t.usesEmbedded,n.stateNames=e.tokenizer,n.defaultToken=t.defaultToken;function s(o,a,l){for(const u of l){let c=u.include;if(c){if(typeof c!="string")throw zs(t,"an 'include' attribute must be a string at: "+o);if(c[0]==="@"&&(c=c.substr(1)),!e.tokenizer[c])throw zs(t,"include target '"+c+"' is not defined at: "+o);s(o+"."+c,a,e.tokenizer[c])}else{const d=new S3t(o);if(Array.isArray(u)&&u.length>=1&&u.length<=3)if(d.setRegex(n,u[0]),u.length>=3)if(typeof u[1]=="string")d.setAction(n,{token:u[1],next:u[2]});else if(typeof u[1]=="object"){const h=u[1];h.next=u[2],d.setAction(n,h)}else throw zs(t,"a next state as the last element of a rule can only be given if the action is either an object or a string, at: "+o);else d.setAction(n,u[1]);else{if(!u.regex)throw zs(t,"a rule must either be an array, or an object with a 'regex' or 'include' field at: "+o);u.name&&typeof u.name=="string"&&(d.name=u.name),u.matchOnlyAtStart&&(d.matchOnlyAtLineStart=aB(u.matchOnlyAtLineStart,!1)),d.setRegex(n,u.regex),d.setAction(n,u.action)}a.push(d)}}}if(!e.tokenizer||typeof e.tokenizer!="object")throw zs(t,"a language definition must define the 'tokenizer' attribute as an object");t.tokenizer=[];for(const o in e.tokenizer)if(e.tokenizer.hasOwnProperty(o)){t.start||(t.start=o);const a=e.tokenizer[o];t.tokenizer[o]=new Array,s("tokenizer."+o,t.tokenizer[o],a)}if(t.usesEmbedded=n.usesEmbedded,e.brackets){if(!Array.isArray(e.brackets))throw zs(t,"the 'brackets' attribute must be defined as an array")}else e.brackets=[{open:"{",close:"}",token:"delimiter.curly"},{open:"[",close:"]",token:"delimiter.square"},{open:"(",close:")",token:"delimiter.parenthesis"},{open:"<",close:">",token:"delimiter.angle"}];const r=[];for(const o of e.brackets){let a=o;if(a&&Array.isArray(a)&&a.length===3&&(a={token:a[2],open:a[0],close:a[1]}),a.open===a.close)throw zs(t,"open and close brackets in a 'brackets' attribute must be different: "+a.open+`
|
|
1265
|
-
hint: use the 'bracket' attribute if matching on equal brackets is required.`);if(typeof a.open=="string"&&typeof a.token=="string"&&typeof a.close=="string")r.push({token:a.token+t.tokenPostfix,open:S_(t,a.open),close:S_(t,a.close)});else throw zs(t,"every element in the 'brackets' array must be a '{open,close,token}' object or array")}return t.brackets=r,t.noThrow=!0,t}function x3t(i){rT.registerLanguage(i)}function D3t(){let i=[];return i=i.concat(rT.getLanguages()),i}function E3t(i){return ci.get(Zs).languageIdCodec.encodeLanguageId(i)}function T3t(i,e){return ci.withServices(()=>{const n=ci.get(Zs).onDidRequestRichLanguageFeatures(s=>{s===i&&(n.dispose(),e())});return n})}function k3t(i,e){return ci.withServices(()=>{const n=ci.get(Zs).onDidRequestBasicLanguageFeatures(s=>{s===i&&(n.dispose(),e())});return n})}function L3t(i,e){if(!ci.get(Zs).isRegisteredLanguageId(i))throw new Error(`Cannot set configuration for unknown language ${i}`);return ci.get(lr).register(i,e,100)}class A3t{constructor(e,t){this._languageId=e,this._actual=t}dispose(){}getInitialState(){return this._actual.getInitialState()}tokenize(e,t,n){if(typeof this._actual.tokenize=="function")return xM.adaptTokenize(this._languageId,this._actual,e,n);throw new Error("Not supported!")}tokenizeEncoded(e,t,n){const s=this._actual.tokenizeEncoded(e,n);return new RF(s.tokens,s.endState)}}class xM{constructor(e,t,n,s){this._languageId=e,this._actual=t,this._languageService=n,this._standaloneThemeService=s}dispose(){}getInitialState(){return this._actual.getInitialState()}static _toClassicTokens(e,t){const n=[];let s=0;for(let r=0,o=e.length;r<o;r++){const a=e[r];let l=a.startIndex;r===0?l=0:l<s&&(l=s),n[r]=new GL(l,a.scopes,t),s=l}return n}static adaptTokenize(e,t,n,s){const r=t.tokenize(n,s),o=xM._toClassicTokens(r.tokens,e);let a;return r.endState.equals(s)?a=s:a=r.endState,new hz(o,a)}tokenize(e,t,n){return xM.adaptTokenize(this._languageId,this._actual,e,n)}_toBinaryTokens(e,t){const n=e.encodeLanguageId(this._languageId),s=this._standaloneThemeService.getColorTheme().tokenTheme,r=[];let o=0,a=0;for(let u=0,c=t.length;u<c;u++){const d=t[u],h=s.match(n,d.scopes)|1024;if(o>0&&r[o-1]===h)continue;let f=d.startIndex;u===0?f=0:f<a&&(f=a),r[o++]=f,r[o++]=h,a=f}const l=new Uint32Array(o);for(let u=0;u<o;u++)l[u]=r[u];return l}tokenizeEncoded(e,t,n){const s=this._actual.tokenize(e,n),r=this._toBinaryTokens(this._languageService.languageIdCodec,s.tokens);let o;return s.endState.equals(n)?o=n:o=s.endState,new RF(r,o)}}function N3t(i){return typeof i.getInitialState=="function"}function I3t(i){return"tokenizeEncoded"in i}function ARe(i){return i&&typeof i.then=="function"}function P3t(i){const e=ci.get(Cd);if(i){const t=[null];for(let n=1,s=i.length;n<s;n++)t[n]=We.fromHex(i[n]);e.setColorMapOverride(t)}else e.setColorMapOverride(null)}function NRe(i,e){return I3t(e)?new A3t(i,e):new xM(i,e,ci.get(Zs),ci.get(Cd))}function zse(i,e){const t=new H$e(async()=>{const n=await Promise.resolve(e.create());return n?N3t(n)?NRe(i,n):new JP(ci.get(Zs),ci.get(Cd),i,LRe(i,n),ci.get(Fi)):null});return Cr.registerFactory(i,t)}function M3t(i,e){if(!ci.get(Zs).isRegisteredLanguageId(i))throw new Error(`Cannot set tokens provider for unknown language ${i}`);return ARe(e)?zse(i,{create:()=>e}):Cr.register(i,NRe(i,e))}function R3t(i,e){const t=n=>new JP(ci.get(Zs),ci.get(Cd),i,LRe(i,n),ci.get(Fi));return ARe(e)?zse(i,{create:()=>e}):Cr.register(i,t(e))}function O3t(i,e){return ci.get(Tt).referenceProvider.register(i,e)}function F3t(i,e){return ci.get(Tt).renameProvider.register(i,e)}function B3t(i,e){return ci.get(Tt).newSymbolNamesProvider.register(i,e)}function V3t(i,e){return ci.get(Tt).signatureHelpProvider.register(i,e)}function W3t(i,e){return ci.get(Tt).hoverProvider.register(i,{provideHover:async(n,s,r,o)=>{const a=n.getWordAtPosition(s);return Promise.resolve(e.provideHover(n,s,r,o)).then(l=>{if(l)return!l.range&&a&&(l.range=new U(s.lineNumber,a.startColumn,s.lineNumber,a.endColumn)),l.range||(l.range=new U(s.lineNumber,s.column,s.lineNumber,s.column)),l})}})}function H3t(i,e){return ci.get(Tt).documentSymbolProvider.register(i,e)}function $3t(i,e){return ci.get(Tt).documentHighlightProvider.register(i,e)}function U3t(i,e){return ci.get(Tt).linkedEditingRangeProvider.register(i,e)}function z3t(i,e){return ci.get(Tt).definitionProvider.register(i,e)}function j3t(i,e){return ci.get(Tt).implementationProvider.register(i,e)}function q3t(i,e){return ci.get(Tt).typeDefinitionProvider.register(i,e)}function G3t(i,e){return ci.get(Tt).codeLensProvider.register(i,e)}function K3t(i,e,t){return ci.get(Tt).codeActionProvider.register(i,{providedCodeActionKinds:t?.providedCodeActionKinds,documentation:t?.documentation,provideCodeActions:(s,r,o,a)=>{const u=ci.get(fm).read({resource:s.uri}).filter(c=>U.areIntersectingOrTouching(c,r));return e.provideCodeActions(s,r,{markers:u,only:o.only,trigger:o.trigger},a)},resolveCodeAction:e.resolveCodeAction})}function Y3t(i,e){return ci.get(Tt).documentFormattingEditProvider.register(i,e)}function X3t(i,e){return ci.get(Tt).documentRangeFormattingEditProvider.register(i,e)}function Q3t(i,e){return ci.get(Tt).onTypeFormattingEditProvider.register(i,e)}function Z3t(i,e){return ci.get(Tt).linkProvider.register(i,e)}function J3t(i,e){return ci.get(Tt).completionProvider.register(i,e)}function e4t(i,e){return ci.get(Tt).colorProvider.register(i,e)}function t4t(i,e){return ci.get(Tt).foldingRangeProvider.register(i,e)}function i4t(i,e){return ci.get(Tt).declarationProvider.register(i,e)}function n4t(i,e){return ci.get(Tt).selectionRangeProvider.register(i,e)}function s4t(i,e){return ci.get(Tt).documentSemanticTokensProvider.register(i,e)}function r4t(i,e){return ci.get(Tt).documentRangeSemanticTokensProvider.register(i,e)}function o4t(i,e){return ci.get(Tt).inlineCompletionsProvider.register(i,e)}function a4t(i,e){return ci.get(Tt).inlineEditProvider.register(i,e)}function l4t(i,e){return ci.get(Tt).inlayHintsProvider.register(i,e)}function u4t(){return{register:x3t,getLanguages:D3t,onLanguage:T3t,onLanguageEncountered:k3t,getEncodedLanguageId:E3t,setLanguageConfiguration:L3t,setColorMap:P3t,registerTokensProviderFactory:zse,setTokensProvider:M3t,setMonarchTokensProvider:R3t,registerReferenceProvider:O3t,registerRenameProvider:F3t,registerNewSymbolNameProvider:B3t,registerCompletionItemProvider:J3t,registerSignatureHelpProvider:V3t,registerHoverProvider:W3t,registerDocumentSymbolProvider:H3t,registerDocumentHighlightProvider:$3t,registerLinkedEditingRangeProvider:U3t,registerDefinitionProvider:z3t,registerImplementationProvider:j3t,registerTypeDefinitionProvider:q3t,registerCodeLensProvider:G3t,registerCodeActionProvider:K3t,registerDocumentFormattingEditProvider:Y3t,registerDocumentRangeFormattingEditProvider:X3t,registerOnTypeFormattingEditProvider:Q3t,registerLinkProvider:Z3t,registerColorProvider:e4t,registerFoldingRangeProvider:t4t,registerDeclarationProvider:i4t,registerSelectionRangeProvider:n4t,registerDocumentSemanticTokensProvider:s4t,registerDocumentRangeSemanticTokensProvider:r4t,registerInlineCompletionsProvider:o4t,registerInlineEditProvider:a4t,registerInlayHintsProvider:l4t,DocumentHighlightKind:Dz,CompletionItemKind:yz,CompletionItemTag:vz,CompletionItemInsertTextRule:bz,SymbolKind:tj,SymbolTag:ij,IndentAction:Iz,CompletionTriggerKind:Cz,SignatureHelpTriggerKind:ej,InlayHintKind:Mz,InlineCompletionTriggerKind:Rz,InlineEditTriggerKind:Oz,CodeActionTriggerType:_z,NewSymbolNameTag:$z,NewSymbolNameTriggerKind:Uz,PartialAcceptTriggerKind:qz,HoverVerbosityAction:Nz,FoldingRangeKind:yD,SelectedSuggestionInfo:_fe}}const jse=Qi("IEditorCancelService"),IRe=new gt("cancellableOperation",!1,w("cancellableOperation","Whether the editor runs a cancellable operation, e.g. like 'Peek References'"));on(jse,class{constructor(){this._tokens=new WeakMap}add(i,e){let t=this._tokens.get(i);t||(t=i.invokeWithinContext(s=>{const r=IRe.bindTo(s.get(ri)),o=new Ul;return{key:r,tokens:o}}),this._tokens.set(i,t));let n;return t.key.set(!0),n=t.tokens.push(e),()=>{n&&(n(),t.key.set(!t.tokens.isEmpty()),n=void 0)}}cancel(i){const e=this._tokens.get(i);if(!e)return;const t=e.tokens.pop();t&&(t.cancel(),e.key.set(!e.tokens.isEmpty()))}},1);class c4t extends or{constructor(e,t){super(t),this.editor=e,this._unregister=e.invokeWithinContext(n=>n.get(jse).add(e,this))}dispose(){this._unregister(),super.dispose()}}ht(new class extends ko{constructor(){super({id:"editor.cancelOperation",kbOpts:{weight:100,primary:9},precondition:IRe})}runEditorCommand(i,e){i.get(jse).cancel(e)}});let PRe=class She{constructor(e,t){if(this.flags=t,(this.flags&1)!==0){const n=e.getModel();this.modelVersionId=n?IC("{0}#{1}",n.uri.toString(),n.getVersionId()):null}else this.modelVersionId=null;(this.flags&4)!==0?this.position=e.getPosition():this.position=null,(this.flags&2)!==0?this.selection=e.getSelection():this.selection=null,(this.flags&8)!==0?(this.scrollLeft=e.getScrollLeft(),this.scrollTop=e.getScrollTop()):(this.scrollLeft=-1,this.scrollTop=-1)}_equals(e){if(!(e instanceof She))return!1;const t=e;return!(this.modelVersionId!==t.modelVersionId||this.scrollLeft!==t.scrollLeft||this.scrollTop!==t.scrollTop||!this.position&&t.position||this.position&&!t.position||this.position&&t.position&&!this.position.equals(t.position)||!this.selection&&t.selection||this.selection&&!t.selection||this.selection&&t.selection&&!this.selection.equalsRange(t.selection))}validate(e){return this._equals(new She(e,this.flags))}};class ey extends c4t{constructor(e,t,n,s){super(e,s),this._listener=new Fe,t&4&&this._listener.add(e.onDidChangeCursorPosition(r=>{(!n||!U.containsPosition(n,r.position))&&this.cancel()})),t&2&&this._listener.add(e.onDidChangeCursorSelection(r=>{(!n||!U.containsRange(n,r.selection))&&this.cancel()})),t&8&&this._listener.add(e.onDidScrollChange(r=>this.cancel())),t&1&&(this._listener.add(e.onDidChangeModel(r=>this.cancel())),this._listener.add(e.onDidChangeModelContent(r=>this.cancel())))}dispose(){this._listener.dispose(),super.dispose()}}class qse extends or{constructor(e,t){super(t),this._listener=e.onDidChangeContent(()=>this.cancel())}dispose(){this._listener.dispose(),super.dispose()}}function xm(i){return i&&typeof i.getEditorType=="function"?i.getEditorType()===KP.ICodeEditor:!1}function Gse(i){return i&&typeof i.getEditorType=="function"?i.getEditorType()===KP.IDiffEditor:!1}function d4t(i){return!!i&&typeof i=="object"&&typeof i.onDidChangeActiveEditor=="function"}function MRe(i){return xm(i)?i:Gse(i)?i.getModifiedEditor():d4t(i)&&xm(i.activeCodeEditor)?i.activeCodeEditor:null}class v2{static _handleEolEdits(e,t){let n;const s=[];for(const r of t)typeof r.eol=="number"&&(n=r.eol),r.range&&typeof r.text=="string"&&s.push(r);return typeof n=="number"&&e.hasModel()&&e.getModel().pushEOL(n),s}static _isFullModelReplaceEdit(e,t){if(!e.hasModel())return!1;const n=e.getModel(),s=n.validateRange(t.range);return n.getFullModelRange().equalsRange(s)}static execute(e,t,n){n&&e.pushUndoStop();const s=Wp.capture(e),r=v2._handleEolEdits(e,t);r.length===1&&v2._isFullModelReplaceEdit(e,r[0])?e.executeEdits("formatEditsCommand",r.map(o=>cr.replace(U.lift(o.range),o.text))):e.executeEdits("formatEditsCommand",r.map(o=>cr.replaceMove(U.lift(o.range),o.text))),n&&e.pushUndoStop(),s.restoreRelativeVerticalPositionOfCursor(e)}}class RRe{constructor(e){this.value=e,this._lower=e.toLowerCase()}static toKey(e){return typeof e=="string"?e.toLowerCase():e._lower}}class h4t{constructor(e){if(this._set=new Set,e)for(const t of e)this.add(t)}add(e){this._set.add(RRe.toKey(e))}has(e){return this._set.has(RRe.toKey(e))}}function ORe(i,e,t){const n=[],s=new h4t,r=i.ordered(t);for(const a of r)n.push(a),a.extensionId&&s.add(a.extensionId);const o=e.ordered(t);for(const a of o){if(a.extensionId){if(s.has(a.extensionId))continue;s.add(a.extensionId)}n.push({displayName:a.displayName,extensionId:a.extensionId,provideDocumentFormattingEdits(l,u,c){return a.provideDocumentRangeFormattingEdits(l,l.getFullModelRange(),u,c)}})}return n}const yO=class yO{static setFormatterSelector(e){return{dispose:yO._selectors.unshift(e)}}static async select(e,t,n,s){if(e.length===0)return;const r=cn.first(yO._selectors);if(r)return await r(e,t,n,s)}};yO._selectors=new Ul;let DM=yO;async function FRe(i,e,t,n,s,r,o){const a=i.get(jt),{documentRangeFormattingEditProvider:l}=i.get(Tt),u=xm(e)?e.getModel():e,c=l.ordered(u),d=await DM.select(c,u,n,2);d&&(s.report(d),await a.invokeFunction(f4t,d,e,t,r,o))}async function f4t(i,e,t,n,s,r){const o=i.get(Wu),a=i.get(Oa),l=i.get(j1);let u,c;xm(t)?(u=t.getModel(),c=new ey(t,5,void 0,s)):(u=t,c=new qse(t,s));const d=[];let h=0;for(const S of NZ(n).sort(U.compareRangesUsingStarts))h>0&&U.areIntersectingOrTouching(d[h-1],S)?d[h-1]=U.fromPositions(d[h-1].getStartPosition(),S.getEndPosition()):h=d.push(S);const f=async S=>{a.trace("[format][provideDocumentRangeFormattingEdits] (request)",e.extensionId?.value,S);const x=await e.provideDocumentRangeFormattingEdits(u,S,u.getFormattingOptions(),c.token)||[];return a.trace("[format][provideDocumentRangeFormattingEdits] (response)",e.extensionId?.value,x),x},g=(S,x)=>{if(!S.length||!x.length)return!1;const E=S.reduce((k,A)=>U.plusRange(k,A.range),S[0].range);if(!x.some(k=>U.intersectRanges(E,k.range)))return!1;for(const k of S)for(const A of x)if(U.intersectRanges(k.range,A.range))return!0;return!1},b=[],y=[];try{if(typeof e.provideDocumentRangesFormattingEdits=="function"){a.trace("[format][provideDocumentRangeFormattingEdits] (request)",e.extensionId?.value,d);const S=await e.provideDocumentRangesFormattingEdits(u,d,u.getFormattingOptions(),c.token)||[];a.trace("[format][provideDocumentRangeFormattingEdits] (response)",e.extensionId?.value,S),y.push(S)}else{for(const S of d){if(c.token.isCancellationRequested)return!0;y.push(await f(S))}for(let S=0;S<d.length;++S)for(let x=S+1;x<d.length;++x){if(c.token.isCancellationRequested)return!0;if(g(y[S],y[x])){const E=U.plusRange(d[S],d[x]),k=await f(E);d.splice(x,1),d.splice(S,1),d.push(E),y.splice(x,1),y.splice(S,1),y.push(k),S=0,x=0}}}for(const S of y){if(c.token.isCancellationRequested)return!0;const x=await o.computeMoreMinimalEdits(u.uri,S);x&&b.push(...x)}}finally{c.dispose()}if(b.length===0)return!1;if(xm(t))v2.execute(t,b,!0),t.revealPositionInCenterIfOutsideViewport(t.getPosition(),1);else{const[{range:S}]=b,x=new Pt(S.startLineNumber,S.startColumn,S.endLineNumber,S.endColumn);u.pushEditOperations([x],b.map(E=>({text:E.text,range:U.lift(E.range),forceMoveMarkers:!0})),E=>{for(const{range:k}of E)if(U.areIntersectingOrTouching(k,x))return[new Pt(k.startLineNumber,k.startColumn,k.endLineNumber,k.endColumn)];return null})}return l.playSignal(wd.format,{userGesture:r}),!0}async function p4t(i,e,t,n,s,r){const o=i.get(jt),a=i.get(Tt),l=xm(e)?e.getModel():e,u=ORe(a.documentFormattingEditProvider,a.documentRangeFormattingEditProvider,l),c=await DM.select(u,l,t,1);c&&(n.report(c),await o.invokeFunction(g4t,c,e,t,s,r))}async function g4t(i,e,t,n,s,r){const o=i.get(Wu),a=i.get(j1);let l,u;xm(t)?(l=t.getModel(),u=new ey(t,5,void 0,s)):(l=t,u=new qse(t,s));let c;try{const d=await e.provideDocumentFormattingEdits(l,l.getFormattingOptions(),u.token);if(c=await o.computeMoreMinimalEdits(l.uri,d),u.token.isCancellationRequested)return!0}finally{u.dispose()}if(!c||c.length===0)return!1;if(xm(t))v2.execute(t,c,n!==2),n!==2&&t.revealPositionInCenterIfOutsideViewport(t.getPosition(),1);else{const[{range:d}]=c,h=new Pt(d.startLineNumber,d.startColumn,d.endLineNumber,d.endColumn);l.pushEditOperations([h],c.map(f=>({text:f.text,range:U.lift(f.range),forceMoveMarkers:!0})),f=>{for(const{range:g}of f)if(U.areIntersectingOrTouching(g,h))return[new Pt(g.startLineNumber,g.startColumn,g.endLineNumber,g.endColumn)];return null})}return a.playSignal(wd.format,{userGesture:r}),!0}async function m4t(i,e,t,n,s,r){const o=e.documentRangeFormattingEditProvider.ordered(t);for(const a of o){const l=await Promise.resolve(a.provideDocumentRangeFormattingEdits(t,n,s,r)).catch(kr);if(Nl(l))return await i.computeMoreMinimalEdits(t.uri,l)}}async function _4t(i,e,t,n,s){const r=ORe(e.documentFormattingEditProvider,e.documentRangeFormattingEditProvider,t);for(const o of r){const a=await Promise.resolve(o.provideDocumentFormattingEdits(t,n,s)).catch(kr);if(Nl(a))return await i.computeMoreMinimalEdits(t.uri,a)}}function BRe(i,e,t,n,s,r,o){const a=e.onTypeFormattingEditProvider.ordered(t);return a.length===0||a[0].autoFormatTriggerCharacters.indexOf(s)<0?Promise.resolve(void 0):Promise.resolve(a[0].provideOnTypeFormattingEdits(t,n,s,r,o)).catch(kr).then(l=>i.computeMoreMinimalEdits(t.uri,l))}dn.registerCommand("_executeFormatRangeProvider",async function(i,...e){const[t,n,s]=e;mn(Gt.isUri(t)),mn(U.isIRange(n));const r=i.get(Iu),o=i.get(Wu),a=i.get(Tt),l=await r.createModelReference(t);try{return m4t(o,a,l.object.textEditorModel,U.lift(n),s,Ii.None)}finally{l.dispose()}}),dn.registerCommand("_executeFormatDocumentProvider",async function(i,...e){const[t,n]=e;mn(Gt.isUri(t));const s=i.get(Iu),r=i.get(Wu),o=i.get(Tt),a=await s.createModelReference(t);try{return _4t(r,o,a.object.textEditorModel,n,Ii.None)}finally{a.dispose()}}),dn.registerCommand("_executeFormatOnTypeProvider",async function(i,...e){const[t,n,s,r]=e;mn(Gt.isUri(t)),mn(me.isIPosition(n)),mn(typeof s=="string");const o=i.get(Iu),a=i.get(Wu),l=i.get(Tt),u=await o.createModelReference(t);try{return BRe(a,l,u.object.textEditorModel,me.lift(n),s,r,Ii.None)}finally{u.dispose()}}),Dp.wrappingIndent.defaultValue=0,Dp.glyphMargin.defaultValue=!1,Dp.autoIndent.defaultValue=3,Dp.overviewRulerLanes.defaultValue=2,DM.setFormatterSelector((i,e,t)=>Promise.resolve(i[0]));const du=bfe();du.editor=b3t(),du.languages=u4t();const VRe=du.CancellationTokenSource,Kse=du.Emitter,WRe=du.KeyCode,HRe=du.KeyMod,$Re=du.Position,URe=du.Range,zRe=du.Selection,jRe=du.SelectionDirection,qRe=du.MarkerSeverity,GRe=du.MarkerTag,Yse=du.Uri,KRe=du.Token,Up=du.editor,Dm=du.languages;(globalThis.MonacoEnvironment?.globalAPI||typeof define=="function"&&define.amd)&&(globalThis.monaco=du),typeof globalThis.require<"u"&&typeof globalThis.require.config=="function"&&globalThis.require.config({ignoreDuplicateModules:["vscode-languageserver-types","vscode-languageserver-types/main","vscode-languageserver-textdocument","vscode-languageserver-textdocument/main","vscode-nls","vscode-nls/vscode-nls","jsonc-parser","jsonc-parser/main","vscode-uri","vscode-uri/index","vs/basic-languages/typescript/typescript"]});const Xse=Object.freeze(Object.defineProperty({__proto__:null,CancellationTokenSource:VRe,Emitter:Kse,KeyCode:WRe,KeyMod:HRe,MarkerSeverity:qRe,MarkerTag:GRe,Position:$Re,Range:URe,Selection:zRe,SelectionDirection:jRe,Token:KRe,Uri:Yse,editor:Up,languages:Dm},Symbol.toStringTag,{value:"Module"}));/*!-----------------------------------------------------------------------------
|
|
1266
|
-
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
1267
|
-
* Version: 0.52.2(404545bded1df6ffa41ea0af4e8ddb219018c6c1)
|
|
1268
|
-
* Released under the MIT license
|
|
1269
|
-
* https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
|
|
1270
|
-
*-----------------------------------------------------------------------------*/var b4t=Object.defineProperty,y4t=Object.getOwnPropertyDescriptor,v4t=Object.getOwnPropertyNames,C4t=Object.prototype.hasOwnProperty,w4t=(i,e,t,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of v4t(e))!C4t.call(i,s)&&s!==t&&b4t(i,s,{get:()=>e[s],enumerable:!(n=y4t(e,s))||n.enumerable});return i},S4t=(i,e,t)=>(w4t(i,e,"default"),t),EM={};S4t(EM,Xse);var YRe={},Qse={},x4t=class CWe{static getOrCreate(e){return Qse[e]||(Qse[e]=new CWe(e)),Qse[e]}constructor(e){this._languageId=e,this._loadingTriggered=!1,this._lazyLoadPromise=new Promise((t,n)=>{this._lazyLoadPromiseResolve=t,this._lazyLoadPromiseReject=n})}load(){return this._loadingTriggered||(this._loadingTriggered=!0,YRe[this._languageId].loader().then(e=>this._lazyLoadPromiseResolve(e),e=>this._lazyLoadPromiseReject(e))),this._lazyLoadPromise}};function D4t(i){const e=i.id;YRe[e]=i,EM.languages.register(i);const t=x4t.getOrCreate(e);EM.languages.registerTokensProviderFactory(e,{create:async()=>(await t.load()).language}),EM.languages.onLanguageEncountered(e,async()=>{const n=await t.load();EM.languages.setLanguageConfiguration(e,n.conf)})}/*!-----------------------------------------------------------------------------
|
|
1271
|
-
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
1272
|
-
* Version: 0.52.2(404545bded1df6ffa41ea0af4e8ddb219018c6c1)
|
|
1273
|
-
* Released under the MIT license
|
|
1274
|
-
* https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
|
|
1275
|
-
*-----------------------------------------------------------------------------*/D4t({id:"graphql",extensions:[".graphql",".gql"],aliases:["GraphQL","graphql","gql"],mimetypes:["application/graphql"],loader:()=>Promise.resolve().then(()=>sXt)});/*!-----------------------------------------------------------------------------
|
|
1276
|
-
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
1277
|
-
* Version: 0.52.2(404545bded1df6ffa41ea0af4e8ddb219018c6c1)
|
|
1278
|
-
* Released under the MIT license
|
|
1279
|
-
* https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
|
|
1280
|
-
*-----------------------------------------------------------------------------*/var E4t=Object.defineProperty,T4t=Object.getOwnPropertyDescriptor,k4t=Object.getOwnPropertyNames,L4t=Object.prototype.hasOwnProperty,A4t=(i,e,t,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of k4t(e))!L4t.call(i,s)&&s!==t&&E4t(i,s,{get:()=>e[s],enumerable:!(n=T4t(e,s))||n.enumerable});return i},N4t=(i,e,t)=>(A4t(i,e,"default"),t),TM={};N4t(TM,Xse);var I4t=class{constructor(i,e,t){this._onDidChange=new TM.Emitter,this._languageId=i,this.setDiagnosticsOptions(e),this.setModeConfiguration(t)}get onDidChange(){return this._onDidChange.event}get languageId(){return this._languageId}get modeConfiguration(){return this._modeConfiguration}get diagnosticsOptions(){return this._diagnosticsOptions}setDiagnosticsOptions(i){this._diagnosticsOptions=i||Object.create(null),this._onDidChange.fire(this)}setModeConfiguration(i){this._modeConfiguration=i||Object.create(null),this._onDidChange.fire(this)}},P4t={validate:!0,allowComments:!0,schemas:[],enableSchemaRequest:!1,schemaRequest:"warning",schemaValidation:"warning",comments:"error",trailingCommas:"error"},M4t={documentFormattingEdits:!0,documentRangeFormattingEdits:!0,completionItems:!0,hovers:!0,documentSymbols:!0,tokens:!0,colors:!0,foldingRanges:!0,diagnostics:!0,selectionRanges:!0},Zse=new I4t("json",P4t,M4t),XRe=()=>QRe().then(i=>i.getWorker());TM.languages.json={jsonDefaults:Zse,getWorker:XRe};function QRe(){return Promise.resolve().then(()=>qXt)}TM.languages.register({id:"json",extensions:[".json",".bowerrc",".jshintrc",".jscsrc",".eslintrc",".babelrc",".har"],aliases:["JSON","json"],mimetypes:["application/json"]}),TM.languages.onLanguage("json",()=>{QRe().then(i=>i.setupMode(Zse))});const R4t=Object.freeze(Object.defineProperty({__proto__:null,getWorker:XRe,jsonDefaults:Zse},Symbol.toStringTag,{value:"Module"}));class O4t extends su{constructor(){super({id:"diffEditor.toggleCollapseUnchangedRegions",title:ui("toggleCollapseUnchangedRegions","Toggle Collapse Unchanged Regions"),icon:et.map,toggled:Be.has("config.diffEditor.hideUnchangedRegions.enabled"),precondition:Be.has("isInDiffEditor"),menu:{when:Be.has("isInDiffEditor"),id:Nt.EditorTitle,order:22,group:"navigation"}})}run(e,...t){const n=e.get(Fi),s=!n.getValue("diffEditor.hideUnchangedRegions.enabled");n.updateValue("diffEditor.hideUnchangedRegions.enabled",s)}}class ZRe extends su{constructor(){super({id:"diffEditor.toggleShowMovedCodeBlocks",title:ui("toggleShowMovedCodeBlocks","Toggle Show Moved Code Blocks"),precondition:Be.has("isInDiffEditor")})}run(e,...t){const n=e.get(Fi),s=!n.getValue("diffEditor.experimental.showMoves");n.updateValue("diffEditor.experimental.showMoves",s)}}class JRe extends su{constructor(){super({id:"diffEditor.toggleUseInlineViewWhenSpaceIsLimited",title:ui("toggleUseInlineViewWhenSpaceIsLimited","Toggle Use Inline View When Space Is Limited"),precondition:Be.has("isInDiffEditor")})}run(e,...t){const n=e.get(Fi),s=!n.getValue("diffEditor.useInlineViewWhenSpaceIsLimited");n.updateValue("diffEditor.useInlineViewWhenSpaceIsLimited",s)}}const kM=ui("diffEditor","Diff Editor");class F4t extends Tp{constructor(){super({id:"diffEditor.switchSide",title:ui("switchSide","Switch Side"),icon:et.arrowSwap,precondition:Be.has("isInDiffEditor"),f1:!0,category:kM})}runEditorCommand(e,t,n){const s=C2(e);if(s instanceof k_){if(n&&n.dryRun)return{destinationSelection:s.mapToOtherSide().destinationSelection};s.switchSide()}}}class B4t extends Tp{constructor(){super({id:"diffEditor.exitCompareMove",title:ui("exitCompareMove","Exit Compare Move"),icon:et.close,precondition:Q.comparingMovedCode,f1:!1,category:kM,keybinding:{weight:1e4,primary:9}})}runEditorCommand(e,t,...n){const s=C2(e);s instanceof k_&&s.exitCompareMove()}}class V4t extends Tp{constructor(){super({id:"diffEditor.collapseAllUnchangedRegions",title:ui("collapseAllUnchangedRegions","Collapse All Unchanged Regions"),icon:et.fold,precondition:Be.has("isInDiffEditor"),f1:!0,category:kM})}runEditorCommand(e,t,...n){const s=C2(e);s instanceof k_&&s.collapseAllUnchangedRegions()}}class W4t extends Tp{constructor(){super({id:"diffEditor.showAllUnchangedRegions",title:ui("showAllUnchangedRegions","Show All Unchanged Regions"),icon:et.unfold,precondition:Be.has("isInDiffEditor"),f1:!0,category:kM})}runEditorCommand(e,t,...n){const s=C2(e);s instanceof k_&&s.showAllUnchangedRegions()}}class Jse extends su{constructor(){super({id:"diffEditor.revert",title:ui("revert","Revert"),f1:!1,category:kM})}run(e,t){const n=H4t(e,t.originalUri,t.modifiedUri);n instanceof k_&&n.revertRangeMappings(t.mapping.innerChanges??[])}}const eOe=ui("accessibleDiffViewer","Accessible Diff Viewer"),NH=class NH extends su{constructor(){super({id:NH.id,title:ui("editor.action.accessibleDiffViewer.next","Go to Next Difference"),category:eOe,precondition:Be.has("isInDiffEditor"),keybinding:{primary:65,weight:100},f1:!0})}run(e){C2(e)?.accessibleDiffViewerNext()}};NH.id="editor.action.accessibleDiffViewer.next";let LM=NH;const IH=class IH extends su{constructor(){super({id:IH.id,title:ui("editor.action.accessibleDiffViewer.prev","Go to Previous Difference"),category:eOe,precondition:Be.has("isInDiffEditor"),keybinding:{primary:1089,weight:100},f1:!0})}run(e){C2(e)?.accessibleDiffViewerPrev()}};IH.id="editor.action.accessibleDiffViewer.prev";let lB=IH;function H4t(i,e,t){return i.get(yn).listDiffEditors().find(r=>{const o=r.getModifiedEditor(),a=r.getOriginalEditor();return o&&o.getModel()?.uri.toString()===t.toString()&&a&&a.getModel()?.uri.toString()===e.toString()})||null}function C2(i){const t=i.get(yn).listDiffEditors(),n=Ra();if(n)for(const s of t){const r=s.getContainerDomNode();if($4t(r,n))return s}return null}function $4t(i,e){let t=e;for(;t;){if(t===i)return!0;t=t.parentElement}return!1}ys(O4t),ys(ZRe),ys(JRe),ia.appendMenuItem(Nt.EditorTitle,{command:{id:new JRe().desc.id,title:w("useInlineViewWhenSpaceIsLimited","Use Inline View When Space Is Limited"),toggled:Be.has("config.diffEditor.useInlineViewWhenSpaceIsLimited"),precondition:Be.has("isInDiffEditor")},order:11,group:"1_diff",when:Be.and(Q.diffEditorRenderSideBySideInlineBreakpointReached,Be.has("isInDiffEditor"))}),ia.appendMenuItem(Nt.EditorTitle,{command:{id:new ZRe().desc.id,title:w("showMoves","Show Moved Code Blocks"),icon:et.move,toggled:JE.create("config.diffEditor.experimental.showMoves",!0),precondition:Be.has("isInDiffEditor")},order:10,group:"1_diff",when:Be.has("isInDiffEditor")}),ys(Jse);for(const i of[{icon:et.arrowRight,key:Q.diffEditorInlineMode.toNegated()},{icon:et.discard,key:Q.diffEditorInlineMode}])ia.appendMenuItem(Nt.DiffEditorHunkToolbar,{command:{id:new Jse().desc.id,title:w("revertHunk","Revert Block"),icon:i.icon},when:Be.and(Q.diffEditorModifiedWritable,i.key),order:5,group:"primary"}),ia.appendMenuItem(Nt.DiffEditorSelectionToolbar,{command:{id:new Jse().desc.id,title:w("revertSelection","Revert Selection"),icon:i.icon},when:Be.and(Q.diffEditorModifiedWritable,i.key),order:5,group:"primary"});ys(F4t),ys(B4t),ys(V4t),ys(W4t),ia.appendMenuItem(Nt.EditorTitle,{command:{id:LM.id,title:w("Open Accessible Diff Viewer","Open Accessible Diff Viewer"),precondition:Be.has("isInDiffEditor")},order:10,group:"2_diff",when:Be.and(Q.accessibleDiffViewerVisible.negate(),Be.has("isInDiffEditor"))}),dn.registerCommandAlias("editor.action.diffReview.next",LM.id),ys(LM),dn.registerCommandAlias("editor.action.diffReview.prev",lB.id),ys(lB);var U4t=function(i,e,t,n){var s=arguments.length,r=s<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(i,e,t,n);else for(var a=i.length-1;a>=0;a--)(o=i[a])&&(r=(s<3?o(r):s>3?o(e,t,r):o(e,t))||r);return s>3&&r&&Object.defineProperty(e,t,r),r},z4t=function(i,e){return function(t,n){e(t,n,i)}},ere;const uB=new gt("selectionAnchorSet",!1);let ty=(XS=class{static get(e){return e.getContribution(ere.ID)}constructor(e,t){this.editor=e,this.selectionAnchorSetContextKey=uB.bindTo(t),this.modelChangeListener=e.onDidChangeModel(()=>this.selectionAnchorSetContextKey.reset())}setSelectionAnchor(){if(this.editor.hasModel()){const e=this.editor.getPosition();this.editor.changeDecorations(t=>{this.decorationId&&t.removeDecoration(this.decorationId),this.decorationId=t.addDecoration(Pt.fromPositions(e,e),{description:"selection-anchor",stickiness:1,hoverMessage:new ul().appendText(w("selectionAnchor","Selection Anchor")),className:"selection-anchor"})}),this.selectionAnchorSetContextKey.set(!!this.decorationId),au(w("anchorSet","Anchor set at {0}:{1}",e.lineNumber,e.column))}}goToSelectionAnchor(){if(this.editor.hasModel()&&this.decorationId){const e=this.editor.getModel().getDecorationRange(this.decorationId);e&&this.editor.setPosition(e.getStartPosition())}}selectFromAnchorToCursor(){if(this.editor.hasModel()&&this.decorationId){const e=this.editor.getModel().getDecorationRange(this.decorationId);if(e){const t=this.editor.getPosition();this.editor.setSelection(Pt.fromPositions(e.getStartPosition(),t)),this.cancelSelectionAnchor()}}}cancelSelectionAnchor(){if(this.decorationId){const e=this.decorationId;this.editor.changeDecorations(t=>{t.removeDecoration(e),this.decorationId=void 0}),this.selectionAnchorSetContextKey.set(!1)}}dispose(){this.cancelSelectionAnchor(),this.modelChangeListener.dispose()}},ere=XS,XS.ID="editor.contrib.selectionAnchorController",XS);ty=ere=U4t([z4t(1,ri)],ty);class j4t extends wt{constructor(){super({id:"editor.action.setSelectionAnchor",label:w("setSelectionAnchor","Set Selection Anchor"),alias:"Set Selection Anchor",precondition:void 0,kbOpts:{kbExpr:Q.editorTextFocus,primary:ro(2089,2080),weight:100}})}async run(e,t){ty.get(t)?.setSelectionAnchor()}}class q4t extends wt{constructor(){super({id:"editor.action.goToSelectionAnchor",label:w("goToSelectionAnchor","Go to Selection Anchor"),alias:"Go to Selection Anchor",precondition:uB})}async run(e,t){ty.get(t)?.goToSelectionAnchor()}}class G4t extends wt{constructor(){super({id:"editor.action.selectFromAnchorToCursor",label:w("selectFromAnchorToCursor","Select from Anchor to Cursor"),alias:"Select from Anchor to Cursor",precondition:uB,kbOpts:{kbExpr:Q.editorTextFocus,primary:ro(2089,2089),weight:100}})}async run(e,t){ty.get(t)?.selectFromAnchorToCursor()}}class K4t extends wt{constructor(){super({id:"editor.action.cancelSelectionAnchor",label:w("cancelSelectionAnchor","Cancel Selection Anchor"),alias:"Cancel Selection Anchor",precondition:uB,kbOpts:{kbExpr:Q.editorTextFocus,primary:9,weight:100}})}async run(e,t){ty.get(t)?.cancelSelectionAnchor()}}fn(ty.ID,ty,4),Ye(j4t),Ye(q4t),Ye(G4t),Ye(K4t);const Y4t=ie("editorOverviewRuler.bracketMatchForeground","#A0A0A0",w("overviewRulerBracketMatchForeground","Overview ruler marker color for matching brackets."));class X4t extends wt{constructor(){super({id:"editor.action.jumpToBracket",label:w("smartSelect.jumpBracket","Go to Bracket"),alias:"Go to Bracket",precondition:void 0,kbOpts:{kbExpr:Q.editorTextFocus,primary:3165,weight:100}})}run(e,t){Kw.get(t)?.jumpToBracket()}}class Q4t extends wt{constructor(){super({id:"editor.action.selectToBracket",label:w("smartSelect.selectToBracket","Select to Bracket"),alias:"Select to Bracket",precondition:void 0,metadata:{description:ui("smartSelect.selectToBracketDescription","Select the text inside and including the brackets or curly braces"),args:[{name:"args",schema:{type:"object",properties:{selectBrackets:{type:"boolean",default:!0}}}}]}})}run(e,t,n){let s=!0;n&&n.selectBrackets===!1&&(s=!1),Kw.get(t)?.selectToBracket(s)}}class Z4t extends wt{constructor(){super({id:"editor.action.removeBrackets",label:w("smartSelect.removeBrackets","Remove Brackets"),alias:"Remove Brackets",precondition:void 0,kbOpts:{kbExpr:Q.editorTextFocus,primary:2561,weight:100}})}run(e,t){Kw.get(t)?.removeBrackets(this.id)}}class J4t{constructor(e,t,n){this.position=e,this.brackets=t,this.options=n}}const My=class My extends ye{static get(e){return e.getContribution(My.ID)}constructor(e){super(),this._editor=e,this._lastBracketsData=[],this._lastVersionId=0,this._decorations=this._editor.createDecorationsCollection(),this._updateBracketsSoon=this._register(new Jn(()=>this._updateBrackets(),50)),this._matchBrackets=this._editor.getOption(72),this._updateBracketsSoon.schedule(),this._register(e.onDidChangeCursorPosition(t=>{this._matchBrackets!=="never"&&this._updateBracketsSoon.schedule()})),this._register(e.onDidChangeModelContent(t=>{this._updateBracketsSoon.schedule()})),this._register(e.onDidChangeModel(t=>{this._lastBracketsData=[],this._updateBracketsSoon.schedule()})),this._register(e.onDidChangeModelLanguageConfiguration(t=>{this._lastBracketsData=[],this._updateBracketsSoon.schedule()})),this._register(e.onDidChangeConfiguration(t=>{t.hasChanged(72)&&(this._matchBrackets=this._editor.getOption(72),this._decorations.clear(),this._lastBracketsData=[],this._lastVersionId=0,this._updateBracketsSoon.schedule())})),this._register(e.onDidBlurEditorWidget(()=>{this._updateBracketsSoon.schedule()})),this._register(e.onDidFocusEditorWidget(()=>{this._updateBracketsSoon.schedule()}))}jumpToBracket(){if(!this._editor.hasModel())return;const e=this._editor.getModel(),t=this._editor.getSelections().map(n=>{const s=n.getStartPosition(),r=e.bracketPairs.matchBracket(s);let o=null;if(r)r[0].containsPosition(s)&&!r[1].containsPosition(s)?o=r[1].getStartPosition():r[1].containsPosition(s)&&(o=r[0].getStartPosition());else{const a=e.bracketPairs.findEnclosingBrackets(s);if(a)o=a[1].getStartPosition();else{const l=e.bracketPairs.findNextBracket(s);l&&l.range&&(o=l.range.getStartPosition())}}return o?new Pt(o.lineNumber,o.column,o.lineNumber,o.column):new Pt(s.lineNumber,s.column,s.lineNumber,s.column)});this._editor.setSelections(t),this._editor.revealRange(t[0])}selectToBracket(e){if(!this._editor.hasModel())return;const t=this._editor.getModel(),n=[];this._editor.getSelections().forEach(s=>{const r=s.getStartPosition();let o=t.bracketPairs.matchBracket(r);if(!o&&(o=t.bracketPairs.findEnclosingBrackets(r),!o)){const u=t.bracketPairs.findNextBracket(r);u&&u.range&&(o=t.bracketPairs.matchBracket(u.range.getStartPosition()))}let a=null,l=null;if(o){o.sort(U.compareRangesUsingStarts);const[u,c]=o;if(a=e?u.getStartPosition():u.getEndPosition(),l=e?c.getEndPosition():c.getStartPosition(),c.containsPosition(r)){const d=a;a=l,l=d}}a&&l&&n.push(new Pt(a.lineNumber,a.column,l.lineNumber,l.column))}),n.length>0&&(this._editor.setSelections(n),this._editor.revealRange(n[0]))}removeBrackets(e){if(!this._editor.hasModel())return;const t=this._editor.getModel();this._editor.getSelections().forEach(n=>{const s=n.getPosition();let r=t.bracketPairs.matchBracket(s);r||(r=t.bracketPairs.findEnclosingBrackets(s)),r&&(this._editor.pushUndoStop(),this._editor.executeEdits(e,[{range:r[0],text:""},{range:r[1],text:""}]),this._editor.pushUndoStop())})}_updateBrackets(){if(this._matchBrackets==="never")return;this._recomputeBrackets();const e=[];let t=0;for(const n of this._lastBracketsData){const s=n.brackets;s&&(e[t++]={range:s[0],options:n.options},e[t++]={range:s[1],options:n.options})}this._decorations.set(e)}_recomputeBrackets(){if(!this._editor.hasModel()||!this._editor.hasWidgetFocus()){this._lastBracketsData=[],this._lastVersionId=0;return}const e=this._editor.getSelections();if(e.length>100){this._lastBracketsData=[],this._lastVersionId=0;return}const t=this._editor.getModel(),n=t.getVersionId();let s=[];this._lastVersionId===n&&(s=this._lastBracketsData);const r=[];let o=0;for(let d=0,h=e.length;d<h;d++){const f=e[d];f.isEmpty()&&(r[o++]=f.getStartPosition())}r.length>1&&r.sort(me.compare);const a=[];let l=0,u=0;const c=s.length;for(let d=0,h=r.length;d<h;d++){const f=r[d];for(;u<c&&s[u].position.isBefore(f);)u++;if(u<c&&s[u].position.equals(f))a[l++]=s[u];else{let g=t.bracketPairs.matchBracket(f,20),b=My._DECORATION_OPTIONS_WITH_OVERVIEW_RULER;!g&&this._matchBrackets==="always"&&(g=t.bracketPairs.findEnclosingBrackets(f,20),b=My._DECORATION_OPTIONS_WITHOUT_OVERVIEW_RULER),a[l++]=new J4t(f,g,b)}}this._lastBracketsData=a,this._lastVersionId=n}};My.ID="editor.contrib.bracketMatchingController",My._DECORATION_OPTIONS_WITH_OVERVIEW_RULER=xi.register({description:"bracket-match-overview",stickiness:1,className:"bracket-match",overviewRuler:{color:xr(Y4t),position:ad.Center}}),My._DECORATION_OPTIONS_WITHOUT_OVERVIEW_RULER=xi.register({description:"bracket-match-no-overview",stickiness:1,className:"bracket-match"});let Kw=My;fn(Kw.ID,Kw,1),Ye(Q4t),Ye(X4t),Ye(Z4t),ia.appendMenuItem(Nt.MenubarGoMenu,{group:"5_infile_nav",command:{id:"editor.action.jumpToBracket",title:w({key:"miGoToBracket",comment:["&& denotes a mnemonic"]},"Go to &&Bracket")},order:2});class e5t{constructor(e,t){this._selection=e,this._isMovingLeft=t}getEditOperations(e,t){if(this._selection.startLineNumber!==this._selection.endLineNumber||this._selection.isEmpty())return;const n=this._selection.startLineNumber,s=this._selection.startColumn,r=this._selection.endColumn;if(!(this._isMovingLeft&&s===1)&&!(!this._isMovingLeft&&r===e.getLineMaxColumn(n)))if(this._isMovingLeft){const o=new U(n,s-1,n,s),a=e.getValueInRange(o);t.addEditOperation(o,null),t.addEditOperation(new U(n,r,n,r),a)}else{const o=new U(n,r,n,r+1),a=e.getValueInRange(o);t.addEditOperation(o,null),t.addEditOperation(new U(n,s,n,s),a)}}computeCursorState(e,t){return this._isMovingLeft?new Pt(this._selection.startLineNumber,this._selection.startColumn-1,this._selection.endLineNumber,this._selection.endColumn-1):new Pt(this._selection.startLineNumber,this._selection.startColumn+1,this._selection.endLineNumber,this._selection.endColumn+1)}}class tOe extends wt{constructor(e,t){super(t),this.left=e}run(e,t){if(!t.hasModel())return;const n=[],s=t.getSelections();for(const r of s)n.push(new e5t(r,this.left));t.pushUndoStop(),t.executeCommands(this.id,n),t.pushUndoStop()}}class t5t extends tOe{constructor(){super(!0,{id:"editor.action.moveCarretLeftAction",label:w("caret.moveLeft","Move Selected Text Left"),alias:"Move Selected Text Left",precondition:Q.writable})}}class i5t extends tOe{constructor(){super(!1,{id:"editor.action.moveCarretRightAction",label:w("caret.moveRight","Move Selected Text Right"),alias:"Move Selected Text Right",precondition:Q.writable})}}Ye(t5t),Ye(i5t);class n5t extends wt{constructor(){super({id:"editor.action.transposeLetters",label:w("transposeLetters.label","Transpose Letters"),alias:"Transpose Letters",precondition:Q.writable,kbOpts:{kbExpr:Q.textInputFocus,primary:0,mac:{primary:306},weight:100}})}run(e,t){if(!t.hasModel())return;const n=t.getModel(),s=[],r=t.getSelections();for(const o of r){if(!o.isEmpty())continue;const a=o.startLineNumber,l=o.startColumn,u=n.getLineMaxColumn(a);if(a===1&&(l===1||l===2&&u===2))continue;const c=l===u?o.getPosition():jn.rightPosition(n,o.getPosition().lineNumber,o.getPosition().column),d=jn.leftPosition(n,c),h=jn.leftPosition(n,d),f=n.getValueInRange(U.fromPositions(h,d)),g=n.getValueInRange(U.fromPositions(d,c)),b=U.fromPositions(h,c);s.push(new $a(b,g+f))}s.length>0&&(t.pushUndoStop(),t.executeCommands(this.id,s),t.pushUndoStop())}}Ye(n5t);const cB=(function(){if(typeof crypto=="object"&&typeof crypto.randomUUID=="function")return crypto.randomUUID.bind(crypto);let i;typeof crypto=="object"&&typeof crypto.getRandomValues=="function"?i=crypto.getRandomValues.bind(crypto):i=function(n){for(let s=0;s<n.length;s++)n[s]=Math.floor(Math.random()*256);return n};const e=new Uint8Array(16),t=[];for(let n=0;n<256;n++)t.push(n.toString(16).padStart(2,"0"));return function(){i(e),e[6]=e[6]&15|64,e[8]=e[8]&63|128;let s=0,r="";return r+=t[e[s++]],r+=t[e[s++]],r+=t[e[s++]],r+=t[e[s++]],r+="-",r+=t[e[s++]],r+=t[e[s++]],r+="-",r+=t[e[s++]],r+=t[e[s++]],r+="-",r+=t[e[s++]],r+=t[e[s++]],r+="-",r+=t[e[s++]],r+=t[e[s++]],r+=t[e[s++]],r+=t[e[s++]],r+=t[e[s++]],r+=t[e[s++]],r}})();function tre(i){return{asString:async()=>i,asFile:()=>{},value:typeof i=="string"?i:void 0}}function s5t(i,e,t){const n={id:cB(),name:i,uri:e,data:t};return{asString:async()=>"",asFile:()=>n,value:void 0}}class iOe{constructor(){this._entries=new Map}get size(){let e=0;for(const t of this._entries)e++;return e}has(e){return this._entries.has(this.toKey(e))}matches(e){const t=[...this._entries.keys()];return cn.some(this,([n,s])=>s.asFile())&&t.push("files"),sOe(dB(e),t)}get(e){return this._entries.get(this.toKey(e))?.[0]}append(e,t){const n=this._entries.get(e);n?n.push(t):this._entries.set(this.toKey(e),[t])}replace(e,t){this._entries.set(this.toKey(e),[t])}delete(e){this._entries.delete(this.toKey(e))}*[Symbol.iterator](){for(const[e,t]of this._entries)for(const n of t)yield[e,n]}toKey(e){return dB(e)}}function dB(i){return i.toLowerCase()}function nOe(i,e){return sOe(dB(i),e.map(dB))}function sOe(i,e){if(i==="*/*")return e.length>0;if(e.includes(i))return!0;const t=i.match(/^([a-z]+)\/([a-z]+|\*)$/i);if(!t)return!1;const[n,s,r]=t;return r==="*"?e.some(o=>o.startsWith(s+"/")):!1}const hB=Object.freeze({create:i=>Z0(i.map(e=>e.toString())).join(`\r
|
|
1168
|
+
hint: use the 'bracket' attribute if matching on equal brackets is required.`);if(typeof a.open=="string"&&typeof a.token=="string"&&typeof a.close=="string")r.push({token:a.token+t.tokenPostfix,open:S_(t,a.open),close:S_(t,a.close)});else throw zs(t,"every element in the 'brackets' array must be a '{open,close,token}' object or array")}return t.brackets=r,t.noThrow=!0,t}function x3t(i){rT.registerLanguage(i)}function D3t(){let i=[];return i=i.concat(rT.getLanguages()),i}function E3t(i){return ci.get(Zs).languageIdCodec.encodeLanguageId(i)}function T3t(i,e){return ci.withServices(()=>{const n=ci.get(Zs).onDidRequestRichLanguageFeatures(s=>{s===i&&(n.dispose(),e())});return n})}function k3t(i,e){return ci.withServices(()=>{const n=ci.get(Zs).onDidRequestBasicLanguageFeatures(s=>{s===i&&(n.dispose(),e())});return n})}function L3t(i,e){if(!ci.get(Zs).isRegisteredLanguageId(i))throw new Error(`Cannot set configuration for unknown language ${i}`);return ci.get(lr).register(i,e,100)}class A3t{constructor(e,t){this._languageId=e,this._actual=t}dispose(){}getInitialState(){return this._actual.getInitialState()}tokenize(e,t,n){if(typeof this._actual.tokenize=="function")return xM.adaptTokenize(this._languageId,this._actual,e,n);throw new Error("Not supported!")}tokenizeEncoded(e,t,n){const s=this._actual.tokenizeEncoded(e,n);return new RF(s.tokens,s.endState)}}class xM{constructor(e,t,n,s){this._languageId=e,this._actual=t,this._languageService=n,this._standaloneThemeService=s}dispose(){}getInitialState(){return this._actual.getInitialState()}static _toClassicTokens(e,t){const n=[];let s=0;for(let r=0,o=e.length;r<o;r++){const a=e[r];let l=a.startIndex;r===0?l=0:l<s&&(l=s),n[r]=new GL(l,a.scopes,t),s=l}return n}static adaptTokenize(e,t,n,s){const r=t.tokenize(n,s),o=xM._toClassicTokens(r.tokens,e);let a;return r.endState.equals(s)?a=s:a=r.endState,new hz(o,a)}tokenize(e,t,n){return xM.adaptTokenize(this._languageId,this._actual,e,n)}_toBinaryTokens(e,t){const n=e.encodeLanguageId(this._languageId),s=this._standaloneThemeService.getColorTheme().tokenTheme,r=[];let o=0,a=0;for(let u=0,c=t.length;u<c;u++){const d=t[u],h=s.match(n,d.scopes)|1024;if(o>0&&r[o-1]===h)continue;let f=d.startIndex;u===0?f=0:f<a&&(f=a),r[o++]=f,r[o++]=h,a=f}const l=new Uint32Array(o);for(let u=0;u<o;u++)l[u]=r[u];return l}tokenizeEncoded(e,t,n){const s=this._actual.tokenize(e,n),r=this._toBinaryTokens(this._languageService.languageIdCodec,s.tokens);let o;return s.endState.equals(n)?o=n:o=s.endState,new RF(r,o)}}function N3t(i){return typeof i.getInitialState=="function"}function I3t(i){return"tokenizeEncoded"in i}function ARe(i){return i&&typeof i.then=="function"}function P3t(i){const e=ci.get(Cd);if(i){const t=[null];for(let n=1,s=i.length;n<s;n++)t[n]=We.fromHex(i[n]);e.setColorMapOverride(t)}else e.setColorMapOverride(null)}function NRe(i,e){return I3t(e)?new A3t(i,e):new xM(i,e,ci.get(Zs),ci.get(Cd))}function zse(i,e){const t=new H$e(async()=>{const n=await Promise.resolve(e.create());return n?N3t(n)?NRe(i,n):new JP(ci.get(Zs),ci.get(Cd),i,LRe(i,n),ci.get(Fi)):null});return Cr.registerFactory(i,t)}function M3t(i,e){if(!ci.get(Zs).isRegisteredLanguageId(i))throw new Error(`Cannot set tokens provider for unknown language ${i}`);return ARe(e)?zse(i,{create:()=>e}):Cr.register(i,NRe(i,e))}function R3t(i,e){const t=n=>new JP(ci.get(Zs),ci.get(Cd),i,LRe(i,n),ci.get(Fi));return ARe(e)?zse(i,{create:()=>e}):Cr.register(i,t(e))}function O3t(i,e){return ci.get(Tt).referenceProvider.register(i,e)}function F3t(i,e){return ci.get(Tt).renameProvider.register(i,e)}function B3t(i,e){return ci.get(Tt).newSymbolNamesProvider.register(i,e)}function V3t(i,e){return ci.get(Tt).signatureHelpProvider.register(i,e)}function W3t(i,e){return ci.get(Tt).hoverProvider.register(i,{provideHover:async(n,s,r,o)=>{const a=n.getWordAtPosition(s);return Promise.resolve(e.provideHover(n,s,r,o)).then(l=>{if(l)return!l.range&&a&&(l.range=new U(s.lineNumber,a.startColumn,s.lineNumber,a.endColumn)),l.range||(l.range=new U(s.lineNumber,s.column,s.lineNumber,s.column)),l})}})}function H3t(i,e){return ci.get(Tt).documentSymbolProvider.register(i,e)}function $3t(i,e){return ci.get(Tt).documentHighlightProvider.register(i,e)}function U3t(i,e){return ci.get(Tt).linkedEditingRangeProvider.register(i,e)}function z3t(i,e){return ci.get(Tt).definitionProvider.register(i,e)}function j3t(i,e){return ci.get(Tt).implementationProvider.register(i,e)}function q3t(i,e){return ci.get(Tt).typeDefinitionProvider.register(i,e)}function G3t(i,e){return ci.get(Tt).codeLensProvider.register(i,e)}function K3t(i,e,t){return ci.get(Tt).codeActionProvider.register(i,{providedCodeActionKinds:t?.providedCodeActionKinds,documentation:t?.documentation,provideCodeActions:(s,r,o,a)=>{const u=ci.get(fm).read({resource:s.uri}).filter(c=>U.areIntersectingOrTouching(c,r));return e.provideCodeActions(s,r,{markers:u,only:o.only,trigger:o.trigger},a)},resolveCodeAction:e.resolveCodeAction})}function Y3t(i,e){return ci.get(Tt).documentFormattingEditProvider.register(i,e)}function X3t(i,e){return ci.get(Tt).documentRangeFormattingEditProvider.register(i,e)}function Q3t(i,e){return ci.get(Tt).onTypeFormattingEditProvider.register(i,e)}function Z3t(i,e){return ci.get(Tt).linkProvider.register(i,e)}function J3t(i,e){return ci.get(Tt).completionProvider.register(i,e)}function e4t(i,e){return ci.get(Tt).colorProvider.register(i,e)}function t4t(i,e){return ci.get(Tt).foldingRangeProvider.register(i,e)}function i4t(i,e){return ci.get(Tt).declarationProvider.register(i,e)}function n4t(i,e){return ci.get(Tt).selectionRangeProvider.register(i,e)}function s4t(i,e){return ci.get(Tt).documentSemanticTokensProvider.register(i,e)}function r4t(i,e){return ci.get(Tt).documentRangeSemanticTokensProvider.register(i,e)}function o4t(i,e){return ci.get(Tt).inlineCompletionsProvider.register(i,e)}function a4t(i,e){return ci.get(Tt).inlineEditProvider.register(i,e)}function l4t(i,e){return ci.get(Tt).inlayHintsProvider.register(i,e)}function u4t(){return{register:x3t,getLanguages:D3t,onLanguage:T3t,onLanguageEncountered:k3t,getEncodedLanguageId:E3t,setLanguageConfiguration:L3t,setColorMap:P3t,registerTokensProviderFactory:zse,setTokensProvider:M3t,setMonarchTokensProvider:R3t,registerReferenceProvider:O3t,registerRenameProvider:F3t,registerNewSymbolNameProvider:B3t,registerCompletionItemProvider:J3t,registerSignatureHelpProvider:V3t,registerHoverProvider:W3t,registerDocumentSymbolProvider:H3t,registerDocumentHighlightProvider:$3t,registerLinkedEditingRangeProvider:U3t,registerDefinitionProvider:z3t,registerImplementationProvider:j3t,registerTypeDefinitionProvider:q3t,registerCodeLensProvider:G3t,registerCodeActionProvider:K3t,registerDocumentFormattingEditProvider:Y3t,registerDocumentRangeFormattingEditProvider:X3t,registerOnTypeFormattingEditProvider:Q3t,registerLinkProvider:Z3t,registerColorProvider:e4t,registerFoldingRangeProvider:t4t,registerDeclarationProvider:i4t,registerSelectionRangeProvider:n4t,registerDocumentSemanticTokensProvider:s4t,registerDocumentRangeSemanticTokensProvider:r4t,registerInlineCompletionsProvider:o4t,registerInlineEditProvider:a4t,registerInlayHintsProvider:l4t,DocumentHighlightKind:Dz,CompletionItemKind:yz,CompletionItemTag:vz,CompletionItemInsertTextRule:bz,SymbolKind:tj,SymbolTag:ij,IndentAction:Iz,CompletionTriggerKind:Cz,SignatureHelpTriggerKind:ej,InlayHintKind:Mz,InlineCompletionTriggerKind:Rz,InlineEditTriggerKind:Oz,CodeActionTriggerType:_z,NewSymbolNameTag:$z,NewSymbolNameTriggerKind:Uz,PartialAcceptTriggerKind:qz,HoverVerbosityAction:Nz,FoldingRangeKind:yD,SelectedSuggestionInfo:_fe}}const jse=Qi("IEditorCancelService"),IRe=new gt("cancellableOperation",!1,w("cancellableOperation","Whether the editor runs a cancellable operation, e.g. like 'Peek References'"));on(jse,class{constructor(){this._tokens=new WeakMap}add(i,e){let t=this._tokens.get(i);t||(t=i.invokeWithinContext(s=>{const r=IRe.bindTo(s.get(ri)),o=new Ul;return{key:r,tokens:o}}),this._tokens.set(i,t));let n;return t.key.set(!0),n=t.tokens.push(e),()=>{n&&(n(),t.key.set(!t.tokens.isEmpty()),n=void 0)}}cancel(i){const e=this._tokens.get(i);if(!e)return;const t=e.tokens.pop();t&&(t.cancel(),e.key.set(!e.tokens.isEmpty()))}},1);class c4t extends or{constructor(e,t){super(t),this.editor=e,this._unregister=e.invokeWithinContext(n=>n.get(jse).add(e,this))}dispose(){this._unregister(),super.dispose()}}ht(new class extends ko{constructor(){super({id:"editor.cancelOperation",kbOpts:{weight:100,primary:9},precondition:IRe})}runEditorCommand(i,e){i.get(jse).cancel(e)}});let PRe=class She{constructor(e,t){if(this.flags=t,(this.flags&1)!==0){const n=e.getModel();this.modelVersionId=n?IC("{0}#{1}",n.uri.toString(),n.getVersionId()):null}else this.modelVersionId=null;(this.flags&4)!==0?this.position=e.getPosition():this.position=null,(this.flags&2)!==0?this.selection=e.getSelection():this.selection=null,(this.flags&8)!==0?(this.scrollLeft=e.getScrollLeft(),this.scrollTop=e.getScrollTop()):(this.scrollLeft=-1,this.scrollTop=-1)}_equals(e){if(!(e instanceof She))return!1;const t=e;return!(this.modelVersionId!==t.modelVersionId||this.scrollLeft!==t.scrollLeft||this.scrollTop!==t.scrollTop||!this.position&&t.position||this.position&&!t.position||this.position&&t.position&&!this.position.equals(t.position)||!this.selection&&t.selection||this.selection&&!t.selection||this.selection&&t.selection&&!this.selection.equalsRange(t.selection))}validate(e){return this._equals(new She(e,this.flags))}};class ey extends c4t{constructor(e,t,n,s){super(e,s),this._listener=new Fe,t&4&&this._listener.add(e.onDidChangeCursorPosition(r=>{(!n||!U.containsPosition(n,r.position))&&this.cancel()})),t&2&&this._listener.add(e.onDidChangeCursorSelection(r=>{(!n||!U.containsRange(n,r.selection))&&this.cancel()})),t&8&&this._listener.add(e.onDidScrollChange(r=>this.cancel())),t&1&&(this._listener.add(e.onDidChangeModel(r=>this.cancel())),this._listener.add(e.onDidChangeModelContent(r=>this.cancel())))}dispose(){this._listener.dispose(),super.dispose()}}class qse extends or{constructor(e,t){super(t),this._listener=e.onDidChangeContent(()=>this.cancel())}dispose(){this._listener.dispose(),super.dispose()}}function xm(i){return i&&typeof i.getEditorType=="function"?i.getEditorType()===KP.ICodeEditor:!1}function Gse(i){return i&&typeof i.getEditorType=="function"?i.getEditorType()===KP.IDiffEditor:!1}function d4t(i){return!!i&&typeof i=="object"&&typeof i.onDidChangeActiveEditor=="function"}function MRe(i){return xm(i)?i:Gse(i)?i.getModifiedEditor():d4t(i)&&xm(i.activeCodeEditor)?i.activeCodeEditor:null}class v2{static _handleEolEdits(e,t){let n;const s=[];for(const r of t)typeof r.eol=="number"&&(n=r.eol),r.range&&typeof r.text=="string"&&s.push(r);return typeof n=="number"&&e.hasModel()&&e.getModel().pushEOL(n),s}static _isFullModelReplaceEdit(e,t){if(!e.hasModel())return!1;const n=e.getModel(),s=n.validateRange(t.range);return n.getFullModelRange().equalsRange(s)}static execute(e,t,n){n&&e.pushUndoStop();const s=Wp.capture(e),r=v2._handleEolEdits(e,t);r.length===1&&v2._isFullModelReplaceEdit(e,r[0])?e.executeEdits("formatEditsCommand",r.map(o=>cr.replace(U.lift(o.range),o.text))):e.executeEdits("formatEditsCommand",r.map(o=>cr.replaceMove(U.lift(o.range),o.text))),n&&e.pushUndoStop(),s.restoreRelativeVerticalPositionOfCursor(e)}}class RRe{constructor(e){this.value=e,this._lower=e.toLowerCase()}static toKey(e){return typeof e=="string"?e.toLowerCase():e._lower}}class h4t{constructor(e){if(this._set=new Set,e)for(const t of e)this.add(t)}add(e){this._set.add(RRe.toKey(e))}has(e){return this._set.has(RRe.toKey(e))}}function ORe(i,e,t){const n=[],s=new h4t,r=i.ordered(t);for(const a of r)n.push(a),a.extensionId&&s.add(a.extensionId);const o=e.ordered(t);for(const a of o){if(a.extensionId){if(s.has(a.extensionId))continue;s.add(a.extensionId)}n.push({displayName:a.displayName,extensionId:a.extensionId,provideDocumentFormattingEdits(l,u,c){return a.provideDocumentRangeFormattingEdits(l,l.getFullModelRange(),u,c)}})}return n}const yO=class yO{static setFormatterSelector(e){return{dispose:yO._selectors.unshift(e)}}static async select(e,t,n,s){if(e.length===0)return;const r=cn.first(yO._selectors);if(r)return await r(e,t,n,s)}};yO._selectors=new Ul;let DM=yO;async function FRe(i,e,t,n,s,r,o){const a=i.get(jt),{documentRangeFormattingEditProvider:l}=i.get(Tt),u=xm(e)?e.getModel():e,c=l.ordered(u),d=await DM.select(c,u,n,2);d&&(s.report(d),await a.invokeFunction(f4t,d,e,t,r,o))}async function f4t(i,e,t,n,s,r){const o=i.get(Wu),a=i.get(Oa),l=i.get(j1);let u,c;xm(t)?(u=t.getModel(),c=new ey(t,5,void 0,s)):(u=t,c=new qse(t,s));const d=[];let h=0;for(const S of NZ(n).sort(U.compareRangesUsingStarts))h>0&&U.areIntersectingOrTouching(d[h-1],S)?d[h-1]=U.fromPositions(d[h-1].getStartPosition(),S.getEndPosition()):h=d.push(S);const f=async S=>{a.trace("[format][provideDocumentRangeFormattingEdits] (request)",e.extensionId?.value,S);const x=await e.provideDocumentRangeFormattingEdits(u,S,u.getFormattingOptions(),c.token)||[];return a.trace("[format][provideDocumentRangeFormattingEdits] (response)",e.extensionId?.value,x),x},g=(S,x)=>{if(!S.length||!x.length)return!1;const E=S.reduce((k,A)=>U.plusRange(k,A.range),S[0].range);if(!x.some(k=>U.intersectRanges(E,k.range)))return!1;for(const k of S)for(const A of x)if(U.intersectRanges(k.range,A.range))return!0;return!1},b=[],y=[];try{if(typeof e.provideDocumentRangesFormattingEdits=="function"){a.trace("[format][provideDocumentRangeFormattingEdits] (request)",e.extensionId?.value,d);const S=await e.provideDocumentRangesFormattingEdits(u,d,u.getFormattingOptions(),c.token)||[];a.trace("[format][provideDocumentRangeFormattingEdits] (response)",e.extensionId?.value,S),y.push(S)}else{for(const S of d){if(c.token.isCancellationRequested)return!0;y.push(await f(S))}for(let S=0;S<d.length;++S)for(let x=S+1;x<d.length;++x){if(c.token.isCancellationRequested)return!0;if(g(y[S],y[x])){const E=U.plusRange(d[S],d[x]),k=await f(E);d.splice(x,1),d.splice(S,1),d.push(E),y.splice(x,1),y.splice(S,1),y.push(k),S=0,x=0}}}for(const S of y){if(c.token.isCancellationRequested)return!0;const x=await o.computeMoreMinimalEdits(u.uri,S);x&&b.push(...x)}}finally{c.dispose()}if(b.length===0)return!1;if(xm(t))v2.execute(t,b,!0),t.revealPositionInCenterIfOutsideViewport(t.getPosition(),1);else{const[{range:S}]=b,x=new Pt(S.startLineNumber,S.startColumn,S.endLineNumber,S.endColumn);u.pushEditOperations([x],b.map(E=>({text:E.text,range:U.lift(E.range),forceMoveMarkers:!0})),E=>{for(const{range:k}of E)if(U.areIntersectingOrTouching(k,x))return[new Pt(k.startLineNumber,k.startColumn,k.endLineNumber,k.endColumn)];return null})}return l.playSignal(wd.format,{userGesture:r}),!0}async function p4t(i,e,t,n,s,r){const o=i.get(jt),a=i.get(Tt),l=xm(e)?e.getModel():e,u=ORe(a.documentFormattingEditProvider,a.documentRangeFormattingEditProvider,l),c=await DM.select(u,l,t,1);c&&(n.report(c),await o.invokeFunction(g4t,c,e,t,s,r))}async function g4t(i,e,t,n,s,r){const o=i.get(Wu),a=i.get(j1);let l,u;xm(t)?(l=t.getModel(),u=new ey(t,5,void 0,s)):(l=t,u=new qse(t,s));let c;try{const d=await e.provideDocumentFormattingEdits(l,l.getFormattingOptions(),u.token);if(c=await o.computeMoreMinimalEdits(l.uri,d),u.token.isCancellationRequested)return!0}finally{u.dispose()}if(!c||c.length===0)return!1;if(xm(t))v2.execute(t,c,n!==2),n!==2&&t.revealPositionInCenterIfOutsideViewport(t.getPosition(),1);else{const[{range:d}]=c,h=new Pt(d.startLineNumber,d.startColumn,d.endLineNumber,d.endColumn);l.pushEditOperations([h],c.map(f=>({text:f.text,range:U.lift(f.range),forceMoveMarkers:!0})),f=>{for(const{range:g}of f)if(U.areIntersectingOrTouching(g,h))return[new Pt(g.startLineNumber,g.startColumn,g.endLineNumber,g.endColumn)];return null})}return a.playSignal(wd.format,{userGesture:r}),!0}async function m4t(i,e,t,n,s,r){const o=e.documentRangeFormattingEditProvider.ordered(t);for(const a of o){const l=await Promise.resolve(a.provideDocumentRangeFormattingEdits(t,n,s,r)).catch(kr);if(Nl(l))return await i.computeMoreMinimalEdits(t.uri,l)}}async function _4t(i,e,t,n,s){const r=ORe(e.documentFormattingEditProvider,e.documentRangeFormattingEditProvider,t);for(const o of r){const a=await Promise.resolve(o.provideDocumentFormattingEdits(t,n,s)).catch(kr);if(Nl(a))return await i.computeMoreMinimalEdits(t.uri,a)}}function BRe(i,e,t,n,s,r,o){const a=e.onTypeFormattingEditProvider.ordered(t);return a.length===0||a[0].autoFormatTriggerCharacters.indexOf(s)<0?Promise.resolve(void 0):Promise.resolve(a[0].provideOnTypeFormattingEdits(t,n,s,r,o)).catch(kr).then(l=>i.computeMoreMinimalEdits(t.uri,l))}dn.registerCommand("_executeFormatRangeProvider",async function(i,...e){const[t,n,s]=e;mn(Gt.isUri(t)),mn(U.isIRange(n));const r=i.get(Iu),o=i.get(Wu),a=i.get(Tt),l=await r.createModelReference(t);try{return m4t(o,a,l.object.textEditorModel,U.lift(n),s,Ii.None)}finally{l.dispose()}}),dn.registerCommand("_executeFormatDocumentProvider",async function(i,...e){const[t,n]=e;mn(Gt.isUri(t));const s=i.get(Iu),r=i.get(Wu),o=i.get(Tt),a=await s.createModelReference(t);try{return _4t(r,o,a.object.textEditorModel,n,Ii.None)}finally{a.dispose()}}),dn.registerCommand("_executeFormatOnTypeProvider",async function(i,...e){const[t,n,s,r]=e;mn(Gt.isUri(t)),mn(me.isIPosition(n)),mn(typeof s=="string");const o=i.get(Iu),a=i.get(Wu),l=i.get(Tt),u=await o.createModelReference(t);try{return BRe(a,l,u.object.textEditorModel,me.lift(n),s,r,Ii.None)}finally{u.dispose()}}),Dp.wrappingIndent.defaultValue=0,Dp.glyphMargin.defaultValue=!1,Dp.autoIndent.defaultValue=3,Dp.overviewRulerLanes.defaultValue=2,DM.setFormatterSelector((i,e,t)=>Promise.resolve(i[0]));const du=bfe();du.editor=b3t(),du.languages=u4t();const VRe=du.CancellationTokenSource,Kse=du.Emitter,WRe=du.KeyCode,HRe=du.KeyMod,$Re=du.Position,URe=du.Range,zRe=du.Selection,jRe=du.SelectionDirection,qRe=du.MarkerSeverity,GRe=du.MarkerTag,Yse=du.Uri,KRe=du.Token,Up=du.editor,Dm=du.languages;(globalThis.MonacoEnvironment?.globalAPI||typeof define=="function"&&define.amd)&&(globalThis.monaco=du),typeof globalThis.require<"u"&&typeof globalThis.require.config=="function"&&globalThis.require.config({ignoreDuplicateModules:["vscode-languageserver-types","vscode-languageserver-types/main","vscode-languageserver-textdocument","vscode-languageserver-textdocument/main","vscode-nls","vscode-nls/vscode-nls","jsonc-parser","jsonc-parser/main","vscode-uri","vscode-uri/index","vs/basic-languages/typescript/typescript"]});const Xse=Object.freeze(Object.defineProperty({__proto__:null,CancellationTokenSource:VRe,Emitter:Kse,KeyCode:WRe,KeyMod:HRe,MarkerSeverity:qRe,MarkerTag:GRe,Position:$Re,Range:URe,Selection:zRe,SelectionDirection:jRe,Token:KRe,Uri:Yse,editor:Up,languages:Dm},Symbol.toStringTag,{value:"Module"}));var b4t=Object.defineProperty,y4t=Object.getOwnPropertyDescriptor,v4t=Object.getOwnPropertyNames,C4t=Object.prototype.hasOwnProperty,w4t=(i,e,t,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of v4t(e))!C4t.call(i,s)&&s!==t&&b4t(i,s,{get:()=>e[s],enumerable:!(n=y4t(e,s))||n.enumerable});return i},S4t=(i,e,t)=>(w4t(i,e,"default"),t),EM={};S4t(EM,Xse);var YRe={},Qse={},x4t=class CWe{static getOrCreate(e){return Qse[e]||(Qse[e]=new CWe(e)),Qse[e]}constructor(e){this._languageId=e,this._loadingTriggered=!1,this._lazyLoadPromise=new Promise((t,n)=>{this._lazyLoadPromiseResolve=t,this._lazyLoadPromiseReject=n})}load(){return this._loadingTriggered||(this._loadingTriggered=!0,YRe[this._languageId].loader().then(e=>this._lazyLoadPromiseResolve(e),e=>this._lazyLoadPromiseReject(e))),this._lazyLoadPromise}};function D4t(i){const e=i.id;YRe[e]=i,EM.languages.register(i);const t=x4t.getOrCreate(e);EM.languages.registerTokensProviderFactory(e,{create:async()=>(await t.load()).language}),EM.languages.onLanguageEncountered(e,async()=>{const n=await t.load();EM.languages.setLanguageConfiguration(e,n.conf)})}D4t({id:"graphql",extensions:[".graphql",".gql"],aliases:["GraphQL","graphql","gql"],mimetypes:["application/graphql"],loader:()=>Promise.resolve().then(()=>sXt)});var E4t=Object.defineProperty,T4t=Object.getOwnPropertyDescriptor,k4t=Object.getOwnPropertyNames,L4t=Object.prototype.hasOwnProperty,A4t=(i,e,t,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of k4t(e))!L4t.call(i,s)&&s!==t&&E4t(i,s,{get:()=>e[s],enumerable:!(n=T4t(e,s))||n.enumerable});return i},N4t=(i,e,t)=>(A4t(i,e,"default"),t),TM={};N4t(TM,Xse);var I4t=class{constructor(i,e,t){this._onDidChange=new TM.Emitter,this._languageId=i,this.setDiagnosticsOptions(e),this.setModeConfiguration(t)}get onDidChange(){return this._onDidChange.event}get languageId(){return this._languageId}get modeConfiguration(){return this._modeConfiguration}get diagnosticsOptions(){return this._diagnosticsOptions}setDiagnosticsOptions(i){this._diagnosticsOptions=i||Object.create(null),this._onDidChange.fire(this)}setModeConfiguration(i){this._modeConfiguration=i||Object.create(null),this._onDidChange.fire(this)}},P4t={validate:!0,allowComments:!0,schemas:[],enableSchemaRequest:!1,schemaRequest:"warning",schemaValidation:"warning",comments:"error",trailingCommas:"error"},M4t={documentFormattingEdits:!0,documentRangeFormattingEdits:!0,completionItems:!0,hovers:!0,documentSymbols:!0,tokens:!0,colors:!0,foldingRanges:!0,diagnostics:!0,selectionRanges:!0},Zse=new I4t("json",P4t,M4t),XRe=()=>QRe().then(i=>i.getWorker());TM.languages.json={jsonDefaults:Zse,getWorker:XRe};function QRe(){return Promise.resolve().then(()=>qXt)}TM.languages.register({id:"json",extensions:[".json",".bowerrc",".jshintrc",".jscsrc",".eslintrc",".babelrc",".har"],aliases:["JSON","json"],mimetypes:["application/json"]}),TM.languages.onLanguage("json",()=>{QRe().then(i=>i.setupMode(Zse))});const R4t=Object.freeze(Object.defineProperty({__proto__:null,getWorker:XRe,jsonDefaults:Zse},Symbol.toStringTag,{value:"Module"}));class O4t extends su{constructor(){super({id:"diffEditor.toggleCollapseUnchangedRegions",title:ui("toggleCollapseUnchangedRegions","Toggle Collapse Unchanged Regions"),icon:et.map,toggled:Be.has("config.diffEditor.hideUnchangedRegions.enabled"),precondition:Be.has("isInDiffEditor"),menu:{when:Be.has("isInDiffEditor"),id:Nt.EditorTitle,order:22,group:"navigation"}})}run(e,...t){const n=e.get(Fi),s=!n.getValue("diffEditor.hideUnchangedRegions.enabled");n.updateValue("diffEditor.hideUnchangedRegions.enabled",s)}}class ZRe extends su{constructor(){super({id:"diffEditor.toggleShowMovedCodeBlocks",title:ui("toggleShowMovedCodeBlocks","Toggle Show Moved Code Blocks"),precondition:Be.has("isInDiffEditor")})}run(e,...t){const n=e.get(Fi),s=!n.getValue("diffEditor.experimental.showMoves");n.updateValue("diffEditor.experimental.showMoves",s)}}class JRe extends su{constructor(){super({id:"diffEditor.toggleUseInlineViewWhenSpaceIsLimited",title:ui("toggleUseInlineViewWhenSpaceIsLimited","Toggle Use Inline View When Space Is Limited"),precondition:Be.has("isInDiffEditor")})}run(e,...t){const n=e.get(Fi),s=!n.getValue("diffEditor.useInlineViewWhenSpaceIsLimited");n.updateValue("diffEditor.useInlineViewWhenSpaceIsLimited",s)}}const kM=ui("diffEditor","Diff Editor");class F4t extends Tp{constructor(){super({id:"diffEditor.switchSide",title:ui("switchSide","Switch Side"),icon:et.arrowSwap,precondition:Be.has("isInDiffEditor"),f1:!0,category:kM})}runEditorCommand(e,t,n){const s=C2(e);if(s instanceof k_){if(n&&n.dryRun)return{destinationSelection:s.mapToOtherSide().destinationSelection};s.switchSide()}}}class B4t extends Tp{constructor(){super({id:"diffEditor.exitCompareMove",title:ui("exitCompareMove","Exit Compare Move"),icon:et.close,precondition:Q.comparingMovedCode,f1:!1,category:kM,keybinding:{weight:1e4,primary:9}})}runEditorCommand(e,t,...n){const s=C2(e);s instanceof k_&&s.exitCompareMove()}}class V4t extends Tp{constructor(){super({id:"diffEditor.collapseAllUnchangedRegions",title:ui("collapseAllUnchangedRegions","Collapse All Unchanged Regions"),icon:et.fold,precondition:Be.has("isInDiffEditor"),f1:!0,category:kM})}runEditorCommand(e,t,...n){const s=C2(e);s instanceof k_&&s.collapseAllUnchangedRegions()}}class W4t extends Tp{constructor(){super({id:"diffEditor.showAllUnchangedRegions",title:ui("showAllUnchangedRegions","Show All Unchanged Regions"),icon:et.unfold,precondition:Be.has("isInDiffEditor"),f1:!0,category:kM})}runEditorCommand(e,t,...n){const s=C2(e);s instanceof k_&&s.showAllUnchangedRegions()}}class Jse extends su{constructor(){super({id:"diffEditor.revert",title:ui("revert","Revert"),f1:!1,category:kM})}run(e,t){const n=H4t(e,t.originalUri,t.modifiedUri);n instanceof k_&&n.revertRangeMappings(t.mapping.innerChanges??[])}}const eOe=ui("accessibleDiffViewer","Accessible Diff Viewer"),NH=class NH extends su{constructor(){super({id:NH.id,title:ui("editor.action.accessibleDiffViewer.next","Go to Next Difference"),category:eOe,precondition:Be.has("isInDiffEditor"),keybinding:{primary:65,weight:100},f1:!0})}run(e){C2(e)?.accessibleDiffViewerNext()}};NH.id="editor.action.accessibleDiffViewer.next";let LM=NH;const IH=class IH extends su{constructor(){super({id:IH.id,title:ui("editor.action.accessibleDiffViewer.prev","Go to Previous Difference"),category:eOe,precondition:Be.has("isInDiffEditor"),keybinding:{primary:1089,weight:100},f1:!0})}run(e){C2(e)?.accessibleDiffViewerPrev()}};IH.id="editor.action.accessibleDiffViewer.prev";let lB=IH;function H4t(i,e,t){return i.get(yn).listDiffEditors().find(r=>{const o=r.getModifiedEditor(),a=r.getOriginalEditor();return o&&o.getModel()?.uri.toString()===t.toString()&&a&&a.getModel()?.uri.toString()===e.toString()})||null}function C2(i){const t=i.get(yn).listDiffEditors(),n=Ra();if(n)for(const s of t){const r=s.getContainerDomNode();if($4t(r,n))return s}return null}function $4t(i,e){let t=e;for(;t;){if(t===i)return!0;t=t.parentElement}return!1}ys(O4t),ys(ZRe),ys(JRe),ia.appendMenuItem(Nt.EditorTitle,{command:{id:new JRe().desc.id,title:w("useInlineViewWhenSpaceIsLimited","Use Inline View When Space Is Limited"),toggled:Be.has("config.diffEditor.useInlineViewWhenSpaceIsLimited"),precondition:Be.has("isInDiffEditor")},order:11,group:"1_diff",when:Be.and(Q.diffEditorRenderSideBySideInlineBreakpointReached,Be.has("isInDiffEditor"))}),ia.appendMenuItem(Nt.EditorTitle,{command:{id:new ZRe().desc.id,title:w("showMoves","Show Moved Code Blocks"),icon:et.move,toggled:JE.create("config.diffEditor.experimental.showMoves",!0),precondition:Be.has("isInDiffEditor")},order:10,group:"1_diff",when:Be.has("isInDiffEditor")}),ys(Jse);for(const i of[{icon:et.arrowRight,key:Q.diffEditorInlineMode.toNegated()},{icon:et.discard,key:Q.diffEditorInlineMode}])ia.appendMenuItem(Nt.DiffEditorHunkToolbar,{command:{id:new Jse().desc.id,title:w("revertHunk","Revert Block"),icon:i.icon},when:Be.and(Q.diffEditorModifiedWritable,i.key),order:5,group:"primary"}),ia.appendMenuItem(Nt.DiffEditorSelectionToolbar,{command:{id:new Jse().desc.id,title:w("revertSelection","Revert Selection"),icon:i.icon},when:Be.and(Q.diffEditorModifiedWritable,i.key),order:5,group:"primary"});ys(F4t),ys(B4t),ys(V4t),ys(W4t),ia.appendMenuItem(Nt.EditorTitle,{command:{id:LM.id,title:w("Open Accessible Diff Viewer","Open Accessible Diff Viewer"),precondition:Be.has("isInDiffEditor")},order:10,group:"2_diff",when:Be.and(Q.accessibleDiffViewerVisible.negate(),Be.has("isInDiffEditor"))}),dn.registerCommandAlias("editor.action.diffReview.next",LM.id),ys(LM),dn.registerCommandAlias("editor.action.diffReview.prev",lB.id),ys(lB);var U4t=function(i,e,t,n){var s=arguments.length,r=s<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(i,e,t,n);else for(var a=i.length-1;a>=0;a--)(o=i[a])&&(r=(s<3?o(r):s>3?o(e,t,r):o(e,t))||r);return s>3&&r&&Object.defineProperty(e,t,r),r},z4t=function(i,e){return function(t,n){e(t,n,i)}},ere;const uB=new gt("selectionAnchorSet",!1);let ty=(XS=class{static get(e){return e.getContribution(ere.ID)}constructor(e,t){this.editor=e,this.selectionAnchorSetContextKey=uB.bindTo(t),this.modelChangeListener=e.onDidChangeModel(()=>this.selectionAnchorSetContextKey.reset())}setSelectionAnchor(){if(this.editor.hasModel()){const e=this.editor.getPosition();this.editor.changeDecorations(t=>{this.decorationId&&t.removeDecoration(this.decorationId),this.decorationId=t.addDecoration(Pt.fromPositions(e,e),{description:"selection-anchor",stickiness:1,hoverMessage:new ul().appendText(w("selectionAnchor","Selection Anchor")),className:"selection-anchor"})}),this.selectionAnchorSetContextKey.set(!!this.decorationId),au(w("anchorSet","Anchor set at {0}:{1}",e.lineNumber,e.column))}}goToSelectionAnchor(){if(this.editor.hasModel()&&this.decorationId){const e=this.editor.getModel().getDecorationRange(this.decorationId);e&&this.editor.setPosition(e.getStartPosition())}}selectFromAnchorToCursor(){if(this.editor.hasModel()&&this.decorationId){const e=this.editor.getModel().getDecorationRange(this.decorationId);if(e){const t=this.editor.getPosition();this.editor.setSelection(Pt.fromPositions(e.getStartPosition(),t)),this.cancelSelectionAnchor()}}}cancelSelectionAnchor(){if(this.decorationId){const e=this.decorationId;this.editor.changeDecorations(t=>{t.removeDecoration(e),this.decorationId=void 0}),this.selectionAnchorSetContextKey.set(!1)}}dispose(){this.cancelSelectionAnchor(),this.modelChangeListener.dispose()}},ere=XS,XS.ID="editor.contrib.selectionAnchorController",XS);ty=ere=U4t([z4t(1,ri)],ty);class j4t extends wt{constructor(){super({id:"editor.action.setSelectionAnchor",label:w("setSelectionAnchor","Set Selection Anchor"),alias:"Set Selection Anchor",precondition:void 0,kbOpts:{kbExpr:Q.editorTextFocus,primary:ro(2089,2080),weight:100}})}async run(e,t){ty.get(t)?.setSelectionAnchor()}}class q4t extends wt{constructor(){super({id:"editor.action.goToSelectionAnchor",label:w("goToSelectionAnchor","Go to Selection Anchor"),alias:"Go to Selection Anchor",precondition:uB})}async run(e,t){ty.get(t)?.goToSelectionAnchor()}}class G4t extends wt{constructor(){super({id:"editor.action.selectFromAnchorToCursor",label:w("selectFromAnchorToCursor","Select from Anchor to Cursor"),alias:"Select from Anchor to Cursor",precondition:uB,kbOpts:{kbExpr:Q.editorTextFocus,primary:ro(2089,2089),weight:100}})}async run(e,t){ty.get(t)?.selectFromAnchorToCursor()}}class K4t extends wt{constructor(){super({id:"editor.action.cancelSelectionAnchor",label:w("cancelSelectionAnchor","Cancel Selection Anchor"),alias:"Cancel Selection Anchor",precondition:uB,kbOpts:{kbExpr:Q.editorTextFocus,primary:9,weight:100}})}async run(e,t){ty.get(t)?.cancelSelectionAnchor()}}fn(ty.ID,ty,4),Ye(j4t),Ye(q4t),Ye(G4t),Ye(K4t);const Y4t=ie("editorOverviewRuler.bracketMatchForeground","#A0A0A0",w("overviewRulerBracketMatchForeground","Overview ruler marker color for matching brackets."));class X4t extends wt{constructor(){super({id:"editor.action.jumpToBracket",label:w("smartSelect.jumpBracket","Go to Bracket"),alias:"Go to Bracket",precondition:void 0,kbOpts:{kbExpr:Q.editorTextFocus,primary:3165,weight:100}})}run(e,t){Kw.get(t)?.jumpToBracket()}}class Q4t extends wt{constructor(){super({id:"editor.action.selectToBracket",label:w("smartSelect.selectToBracket","Select to Bracket"),alias:"Select to Bracket",precondition:void 0,metadata:{description:ui("smartSelect.selectToBracketDescription","Select the text inside and including the brackets or curly braces"),args:[{name:"args",schema:{type:"object",properties:{selectBrackets:{type:"boolean",default:!0}}}}]}})}run(e,t,n){let s=!0;n&&n.selectBrackets===!1&&(s=!1),Kw.get(t)?.selectToBracket(s)}}class Z4t extends wt{constructor(){super({id:"editor.action.removeBrackets",label:w("smartSelect.removeBrackets","Remove Brackets"),alias:"Remove Brackets",precondition:void 0,kbOpts:{kbExpr:Q.editorTextFocus,primary:2561,weight:100}})}run(e,t){Kw.get(t)?.removeBrackets(this.id)}}class J4t{constructor(e,t,n){this.position=e,this.brackets=t,this.options=n}}const My=class My extends ye{static get(e){return e.getContribution(My.ID)}constructor(e){super(),this._editor=e,this._lastBracketsData=[],this._lastVersionId=0,this._decorations=this._editor.createDecorationsCollection(),this._updateBracketsSoon=this._register(new Jn(()=>this._updateBrackets(),50)),this._matchBrackets=this._editor.getOption(72),this._updateBracketsSoon.schedule(),this._register(e.onDidChangeCursorPosition(t=>{this._matchBrackets!=="never"&&this._updateBracketsSoon.schedule()})),this._register(e.onDidChangeModelContent(t=>{this._updateBracketsSoon.schedule()})),this._register(e.onDidChangeModel(t=>{this._lastBracketsData=[],this._updateBracketsSoon.schedule()})),this._register(e.onDidChangeModelLanguageConfiguration(t=>{this._lastBracketsData=[],this._updateBracketsSoon.schedule()})),this._register(e.onDidChangeConfiguration(t=>{t.hasChanged(72)&&(this._matchBrackets=this._editor.getOption(72),this._decorations.clear(),this._lastBracketsData=[],this._lastVersionId=0,this._updateBracketsSoon.schedule())})),this._register(e.onDidBlurEditorWidget(()=>{this._updateBracketsSoon.schedule()})),this._register(e.onDidFocusEditorWidget(()=>{this._updateBracketsSoon.schedule()}))}jumpToBracket(){if(!this._editor.hasModel())return;const e=this._editor.getModel(),t=this._editor.getSelections().map(n=>{const s=n.getStartPosition(),r=e.bracketPairs.matchBracket(s);let o=null;if(r)r[0].containsPosition(s)&&!r[1].containsPosition(s)?o=r[1].getStartPosition():r[1].containsPosition(s)&&(o=r[0].getStartPosition());else{const a=e.bracketPairs.findEnclosingBrackets(s);if(a)o=a[1].getStartPosition();else{const l=e.bracketPairs.findNextBracket(s);l&&l.range&&(o=l.range.getStartPosition())}}return o?new Pt(o.lineNumber,o.column,o.lineNumber,o.column):new Pt(s.lineNumber,s.column,s.lineNumber,s.column)});this._editor.setSelections(t),this._editor.revealRange(t[0])}selectToBracket(e){if(!this._editor.hasModel())return;const t=this._editor.getModel(),n=[];this._editor.getSelections().forEach(s=>{const r=s.getStartPosition();let o=t.bracketPairs.matchBracket(r);if(!o&&(o=t.bracketPairs.findEnclosingBrackets(r),!o)){const u=t.bracketPairs.findNextBracket(r);u&&u.range&&(o=t.bracketPairs.matchBracket(u.range.getStartPosition()))}let a=null,l=null;if(o){o.sort(U.compareRangesUsingStarts);const[u,c]=o;if(a=e?u.getStartPosition():u.getEndPosition(),l=e?c.getEndPosition():c.getStartPosition(),c.containsPosition(r)){const d=a;a=l,l=d}}a&&l&&n.push(new Pt(a.lineNumber,a.column,l.lineNumber,l.column))}),n.length>0&&(this._editor.setSelections(n),this._editor.revealRange(n[0]))}removeBrackets(e){if(!this._editor.hasModel())return;const t=this._editor.getModel();this._editor.getSelections().forEach(n=>{const s=n.getPosition();let r=t.bracketPairs.matchBracket(s);r||(r=t.bracketPairs.findEnclosingBrackets(s)),r&&(this._editor.pushUndoStop(),this._editor.executeEdits(e,[{range:r[0],text:""},{range:r[1],text:""}]),this._editor.pushUndoStop())})}_updateBrackets(){if(this._matchBrackets==="never")return;this._recomputeBrackets();const e=[];let t=0;for(const n of this._lastBracketsData){const s=n.brackets;s&&(e[t++]={range:s[0],options:n.options},e[t++]={range:s[1],options:n.options})}this._decorations.set(e)}_recomputeBrackets(){if(!this._editor.hasModel()||!this._editor.hasWidgetFocus()){this._lastBracketsData=[],this._lastVersionId=0;return}const e=this._editor.getSelections();if(e.length>100){this._lastBracketsData=[],this._lastVersionId=0;return}const t=this._editor.getModel(),n=t.getVersionId();let s=[];this._lastVersionId===n&&(s=this._lastBracketsData);const r=[];let o=0;for(let d=0,h=e.length;d<h;d++){const f=e[d];f.isEmpty()&&(r[o++]=f.getStartPosition())}r.length>1&&r.sort(me.compare);const a=[];let l=0,u=0;const c=s.length;for(let d=0,h=r.length;d<h;d++){const f=r[d];for(;u<c&&s[u].position.isBefore(f);)u++;if(u<c&&s[u].position.equals(f))a[l++]=s[u];else{let g=t.bracketPairs.matchBracket(f,20),b=My._DECORATION_OPTIONS_WITH_OVERVIEW_RULER;!g&&this._matchBrackets==="always"&&(g=t.bracketPairs.findEnclosingBrackets(f,20),b=My._DECORATION_OPTIONS_WITHOUT_OVERVIEW_RULER),a[l++]=new J4t(f,g,b)}}this._lastBracketsData=a,this._lastVersionId=n}};My.ID="editor.contrib.bracketMatchingController",My._DECORATION_OPTIONS_WITH_OVERVIEW_RULER=xi.register({description:"bracket-match-overview",stickiness:1,className:"bracket-match",overviewRuler:{color:xr(Y4t),position:ad.Center}}),My._DECORATION_OPTIONS_WITHOUT_OVERVIEW_RULER=xi.register({description:"bracket-match-no-overview",stickiness:1,className:"bracket-match"});let Kw=My;fn(Kw.ID,Kw,1),Ye(Q4t),Ye(X4t),Ye(Z4t),ia.appendMenuItem(Nt.MenubarGoMenu,{group:"5_infile_nav",command:{id:"editor.action.jumpToBracket",title:w({key:"miGoToBracket",comment:["&& denotes a mnemonic"]},"Go to &&Bracket")},order:2});class e5t{constructor(e,t){this._selection=e,this._isMovingLeft=t}getEditOperations(e,t){if(this._selection.startLineNumber!==this._selection.endLineNumber||this._selection.isEmpty())return;const n=this._selection.startLineNumber,s=this._selection.startColumn,r=this._selection.endColumn;if(!(this._isMovingLeft&&s===1)&&!(!this._isMovingLeft&&r===e.getLineMaxColumn(n)))if(this._isMovingLeft){const o=new U(n,s-1,n,s),a=e.getValueInRange(o);t.addEditOperation(o,null),t.addEditOperation(new U(n,r,n,r),a)}else{const o=new U(n,r,n,r+1),a=e.getValueInRange(o);t.addEditOperation(o,null),t.addEditOperation(new U(n,s,n,s),a)}}computeCursorState(e,t){return this._isMovingLeft?new Pt(this._selection.startLineNumber,this._selection.startColumn-1,this._selection.endLineNumber,this._selection.endColumn-1):new Pt(this._selection.startLineNumber,this._selection.startColumn+1,this._selection.endLineNumber,this._selection.endColumn+1)}}class tOe extends wt{constructor(e,t){super(t),this.left=e}run(e,t){if(!t.hasModel())return;const n=[],s=t.getSelections();for(const r of s)n.push(new e5t(r,this.left));t.pushUndoStop(),t.executeCommands(this.id,n),t.pushUndoStop()}}class t5t extends tOe{constructor(){super(!0,{id:"editor.action.moveCarretLeftAction",label:w("caret.moveLeft","Move Selected Text Left"),alias:"Move Selected Text Left",precondition:Q.writable})}}class i5t extends tOe{constructor(){super(!1,{id:"editor.action.moveCarretRightAction",label:w("caret.moveRight","Move Selected Text Right"),alias:"Move Selected Text Right",precondition:Q.writable})}}Ye(t5t),Ye(i5t);class n5t extends wt{constructor(){super({id:"editor.action.transposeLetters",label:w("transposeLetters.label","Transpose Letters"),alias:"Transpose Letters",precondition:Q.writable,kbOpts:{kbExpr:Q.textInputFocus,primary:0,mac:{primary:306},weight:100}})}run(e,t){if(!t.hasModel())return;const n=t.getModel(),s=[],r=t.getSelections();for(const o of r){if(!o.isEmpty())continue;const a=o.startLineNumber,l=o.startColumn,u=n.getLineMaxColumn(a);if(a===1&&(l===1||l===2&&u===2))continue;const c=l===u?o.getPosition():jn.rightPosition(n,o.getPosition().lineNumber,o.getPosition().column),d=jn.leftPosition(n,c),h=jn.leftPosition(n,d),f=n.getValueInRange(U.fromPositions(h,d)),g=n.getValueInRange(U.fromPositions(d,c)),b=U.fromPositions(h,c);s.push(new $a(b,g+f))}s.length>0&&(t.pushUndoStop(),t.executeCommands(this.id,s),t.pushUndoStop())}}Ye(n5t);const cB=(function(){if(typeof crypto=="object"&&typeof crypto.randomUUID=="function")return crypto.randomUUID.bind(crypto);let i;typeof crypto=="object"&&typeof crypto.getRandomValues=="function"?i=crypto.getRandomValues.bind(crypto):i=function(n){for(let s=0;s<n.length;s++)n[s]=Math.floor(Math.random()*256);return n};const e=new Uint8Array(16),t=[];for(let n=0;n<256;n++)t.push(n.toString(16).padStart(2,"0"));return function(){i(e),e[6]=e[6]&15|64,e[8]=e[8]&63|128;let s=0,r="";return r+=t[e[s++]],r+=t[e[s++]],r+=t[e[s++]],r+=t[e[s++]],r+="-",r+=t[e[s++]],r+=t[e[s++]],r+="-",r+=t[e[s++]],r+=t[e[s++]],r+="-",r+=t[e[s++]],r+=t[e[s++]],r+="-",r+=t[e[s++]],r+=t[e[s++]],r+=t[e[s++]],r+=t[e[s++]],r+=t[e[s++]],r+=t[e[s++]],r}})();function tre(i){return{asString:async()=>i,asFile:()=>{},value:typeof i=="string"?i:void 0}}function s5t(i,e,t){const n={id:cB(),name:i,uri:e,data:t};return{asString:async()=>"",asFile:()=>n,value:void 0}}class iOe{constructor(){this._entries=new Map}get size(){let e=0;for(const t of this._entries)e++;return e}has(e){return this._entries.has(this.toKey(e))}matches(e){const t=[...this._entries.keys()];return cn.some(this,([n,s])=>s.asFile())&&t.push("files"),sOe(dB(e),t)}get(e){return this._entries.get(this.toKey(e))?.[0]}append(e,t){const n=this._entries.get(e);n?n.push(t):this._entries.set(this.toKey(e),[t])}replace(e,t){this._entries.set(this.toKey(e),[t])}delete(e){this._entries.delete(this.toKey(e))}*[Symbol.iterator](){for(const[e,t]of this._entries)for(const n of t)yield[e,n]}toKey(e){return dB(e)}}function dB(i){return i.toLowerCase()}function nOe(i,e){return sOe(dB(i),e.map(dB))}function sOe(i,e){if(i==="*/*")return e.length>0;if(e.includes(i))return!0;const t=i.match(/^([a-z]+)\/([a-z]+|\*)$/i);if(!t)return!1;const[n,s,r]=t;return r==="*"?e.some(o=>o.startsWith(s+"/")):!1}const hB=Object.freeze({create:i=>Z0(i.map(e=>e.toString())).join(`\r
|
|
1281
1169
|
`),split:i=>i.split(`\r
|
|
1282
1170
|
`),parse:i=>hB.split(i).filter(e=>!e.startsWith("#"))}),jm=class jm{constructor(e){this.value=e}equals(e){return this.value===e.value}contains(e){return this.equals(e)||this.value===""||e.value.startsWith(this.value+jm.sep)}intersects(e){return this.contains(e)||e.contains(this)}append(...e){return new jm((this.value?[this.value,...e]:e).join(jm.sep))}};jm.sep=".",jm.None=new jm("@@none@@"),jm.Empty=new jm("");let er=jm;const rOe={EDITORS:"CodeEditors",FILES:"CodeFiles"};class r5t{}const o5t={DragAndDropContribution:"workbench.contributions.dragAndDrop"};ar.add(o5t.DragAndDropContribution,new r5t);const vO=class vO{constructor(){}static getInstance(){return vO.INSTANCE}hasData(e){return e&&e===this.proto}getData(e){if(this.hasData(e))return this.data}};vO.INSTANCE=new vO;let ire=vO;function oOe(i){const e=new iOe;for(const t of i.items){const n=t.type;if(t.kind==="string"){const s=new Promise(r=>t.getAsString(r));e.append(n,tre(s))}else if(t.kind==="file"){const s=t.getAsFile();s&&e.append(n,a5t(s))}}return e}function a5t(i){const e=i.path?Gt.parse(i.path):void 0;return s5t(i.name,e,async()=>new Uint8Array(await i.arrayBuffer()))}const l5t=Object.freeze([rOe.EDITORS,rOe.FILES,cP.RESOURCES,cP.INTERNAL_URI_LIST]);function aOe(i,e=!1){const t=oOe(i),n=t.get(cP.INTERNAL_URI_LIST);if(n)t.replace(Nr.uriList,n);else if(e||!t.has(Nr.uriList)){const s=[];for(const r of i.items){const o=r.getAsFile();if(o){const a=o.path;try{a?s.push(Gt.file(a).toString()):s.push(Gt.parse(o.name,!0).toString())}catch{}}}s.length&&t.replace(Nr.uriList,tre(hB.create(s)))}for(const s of l5t)t.delete(s);return t}var nre=function(i,e,t,n){var s=arguments.length,r=s<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(i,e,t,n);else for(var a=i.length-1;a>=0;a--)(o=i[a])&&(r=(s<3?o(r):s>3?o(e,t,r):o(e,t))||r);return s>3&&r&&Object.defineProperty(e,t,r),r},AM=function(i,e){return function(t,n){e(t,n,i)}};class sre{async provideDocumentPasteEdits(e,t,n,s,r){const o=await this.getEdit(n,r);if(o)return{edits:[{insertText:o.insertText,title:o.title,kind:o.kind,handledMimeType:o.handledMimeType,yieldTo:o.yieldTo}],dispose(){}}}async provideDocumentDropEdits(e,t,n,s){const r=await this.getEdit(n,s);if(r)return{edits:[{insertText:r.insertText,title:r.title,kind:r.kind,handledMimeType:r.handledMimeType,yieldTo:r.yieldTo}],dispose(){}}}}const CO=class CO extends sre{constructor(){super(...arguments),this.kind=CO.kind,this.dropMimeTypes=[Nr.text],this.pasteMimeTypes=[Nr.text]}async getEdit(e,t){const n=e.get(Nr.text);if(!n||e.has(Nr.uriList))return;const s=await n.asString();return{handledMimeType:Nr.text,title:w("text.label","Insert Plain Text"),insertText:s,kind:this.kind}}};CO.id="text",CO.kind=new er("text.plain");let Yw=CO;class lOe extends sre{constructor(){super(...arguments),this.kind=new er("uri.absolute"),this.dropMimeTypes=[Nr.uriList],this.pasteMimeTypes=[Nr.uriList]}async getEdit(e,t){const n=await uOe(e);if(!n.length||t.isCancellationRequested)return;let s=0;const r=n.map(({uri:a,originalText:l})=>a.scheme===vi.file?a.fsPath:(s++,l)).join(" ");let o;return s>0?o=n.length>1?w("defaultDropProvider.uriList.uris","Insert Uris"):w("defaultDropProvider.uriList.uri","Insert Uri"):o=n.length>1?w("defaultDropProvider.uriList.paths","Insert Paths"):w("defaultDropProvider.uriList.path","Insert Path"),{handledMimeType:Nr.uriList,insertText:r,title:o,kind:this.kind}}}let fB=class extends sre{constructor(e){super(),this._workspaceContextService=e,this.kind=new er("uri.relative"),this.dropMimeTypes=[Nr.uriList],this.pasteMimeTypes=[Nr.uriList]}async getEdit(e,t){const n=await uOe(e);if(!n.length||t.isCancellationRequested)return;const s=gf(n.map(({uri:r})=>{const o=this._workspaceContextService.getWorkspaceFolder(r);return o?NEt(o.uri,r):void 0}));if(s.length)return{handledMimeType:Nr.uriList,insertText:s.join(" "),title:n.length>1?w("defaultDropProvider.uriList.relativePaths","Insert Relative Paths"):w("defaultDropProvider.uriList.relativePath","Insert Relative Path"),kind:this.kind}}};fB=nre([AM(0,cw)],fB);class u5t{constructor(){this.kind=new er("html"),this.pasteMimeTypes=["text/html"],this._yieldTo=[{mimeType:Nr.text}]}async provideDocumentPasteEdits(e,t,n,s,r){if(s.triggerKind!==YL.PasteAs&&!s.only?.contains(this.kind))return;const a=await n.get("text/html")?.asString();if(!(!a||r.isCancellationRequested))return{dispose(){},edits:[{insertText:a,yieldTo:this._yieldTo,title:w("pasteHtmlLabel","Insert HTML"),kind:this.kind}]}}}async function uOe(i){const e=i.get(Nr.uriList);if(!e)return[];const t=await e.asString(),n=[];for(const s of hB.parse(t))try{n.push({uri:Gt.parse(s),originalText:s})}catch{}return n}let rre=class extends ye{constructor(e,t){super(),this._register(e.documentDropEditProvider.register("*",new Yw)),this._register(e.documentDropEditProvider.register("*",new lOe)),this._register(e.documentDropEditProvider.register("*",new fB(t)))}};rre=nre([AM(0,Tt),AM(1,cw)],rre);let ore=class extends ye{constructor(e,t){super(),this._register(e.documentPasteEditProvider.register("*",new Yw)),this._register(e.documentPasteEditProvider.register("*",new lOe)),this._register(e.documentPasteEditProvider.register("*",new fB(t))),this._register(e.documentPasteEditProvider.register("*",new u5t))}};ore=nre([AM(0,Tt),AM(1,cw)],ore);const Rf=class Rf{constructor(){this.value="",this.pos=0}static isDigitCharacter(e){return e>=48&&e<=57}static isVariableCharacter(e){return e===95||e>=97&&e<=122||e>=65&&e<=90}text(e){this.value=e,this.pos=0}tokenText(e){return this.value.substr(e.pos,e.len)}next(){if(this.pos>=this.value.length)return{type:14,pos:this.pos,len:0};const e=this.pos;let t=0,n=this.value.charCodeAt(e),s;if(s=Rf._table[n],typeof s=="number")return this.pos+=1,{type:s,pos:e,len:1};if(Rf.isDigitCharacter(n)){s=8;do t+=1,n=this.value.charCodeAt(e+t);while(Rf.isDigitCharacter(n));return this.pos+=t,{type:s,pos:e,len:t}}if(Rf.isVariableCharacter(n)){s=9;do n=this.value.charCodeAt(e+ ++t);while(Rf.isVariableCharacter(n)||Rf.isDigitCharacter(n));return this.pos+=t,{type:s,pos:e,len:t}}s=10;do t+=1,n=this.value.charCodeAt(e+t);while(!isNaN(n)&&typeof Rf._table[n]>"u"&&!Rf.isDigitCharacter(n)&&!Rf.isVariableCharacter(n));return this.pos+=t,{type:s,pos:e,len:t}}};Rf._table={36:0,58:1,44:2,123:3,125:4,92:5,47:6,124:7,43:11,45:12,63:13};let are=Rf;class w2{constructor(){this._children=[]}appendChild(e){return e instanceof hu&&this._children[this._children.length-1]instanceof hu?this._children[this._children.length-1].value+=e.value:(e.parent=this,this._children.push(e)),this}replace(e,t){const{parent:n}=e,s=n.children.indexOf(e),r=n.children.slice(0);r.splice(s,1,...t),n._children=r,(function o(a,l){for(const u of a)u.parent=l,o(u.children,u)})(t,n)}get children(){return this._children}get rightMostDescendant(){return this._children.length>0?this._children[this._children.length-1].rightMostDescendant:this}get snippet(){let e=this;for(;;){if(!e)return;if(e instanceof IM)return e;e=e.parent}}toString(){return this.children.reduce((e,t)=>e+t.toString(),"")}len(){return 0}}class hu extends w2{constructor(e){super(),this.value=e}toString(){return this.value}len(){return this.value.length}clone(){return new hu(this.value)}}class cOe extends w2{}class _h extends cOe{static compareByIndex(e,t){return e.index===t.index?0:e.isFinalTabstop?1:t.isFinalTabstop||e.index<t.index?-1:e.index>t.index?1:0}constructor(e){super(),this.index=e}get isFinalTabstop(){return this.index===0}get choice(){return this._children.length===1&&this._children[0]instanceof S2?this._children[0]:void 0}clone(){const e=new _h(this.index);return this.transform&&(e.transform=this.transform.clone()),e._children=this.children.map(t=>t.clone()),e}}class S2 extends w2{constructor(){super(...arguments),this.options=[]}appendChild(e){return e instanceof hu&&(e.parent=this,this.options.push(e)),this}toString(){return this.options[0].value}len(){return this.options[0].len()}clone(){const e=new S2;return this.options.forEach(e.appendChild,e),e}}class lre extends w2{constructor(){super(...arguments),this.regexp=new RegExp("")}resolve(e){const t=this;let n=!1,s=e.replace(this.regexp,function(){return n=!0,t._replace(Array.prototype.slice.call(arguments,0,-2))});return!n&&this._children.some(r=>r instanceof zp&&!!r.elseValue)&&(s=this._replace([])),s}_replace(e){let t="";for(const n of this._children)if(n instanceof zp){let s=e[n.index]||"";s=n.resolve(s),t+=s}else t+=n.toString();return t}toString(){return""}clone(){const e=new lre;return e.regexp=new RegExp(this.regexp.source,(this.regexp.ignoreCase?"i":"")+(this.regexp.global?"g":"")),e._children=this.children.map(t=>t.clone()),e}}class zp extends w2{constructor(e,t,n,s){super(),this.index=e,this.shorthandName=t,this.ifValue=n,this.elseValue=s}resolve(e){return this.shorthandName==="upcase"?e?e.toLocaleUpperCase():"":this.shorthandName==="downcase"?e?e.toLocaleLowerCase():"":this.shorthandName==="capitalize"?e?e[0].toLocaleUpperCase()+e.substr(1):"":this.shorthandName==="pascalcase"?e?this._toPascalCase(e):"":this.shorthandName==="camelcase"?e?this._toCamelCase(e):"":e&&typeof this.ifValue=="string"?this.ifValue:!e&&typeof this.elseValue=="string"?this.elseValue:e||""}_toPascalCase(e){const t=e.match(/[a-z0-9]+/gi);return t?t.map(n=>n.charAt(0).toUpperCase()+n.substr(1)).join(""):e}_toCamelCase(e){const t=e.match(/[a-z0-9]+/gi);return t?t.map((n,s)=>s===0?n.charAt(0).toLowerCase()+n.substr(1):n.charAt(0).toUpperCase()+n.substr(1)).join(""):e}clone(){return new zp(this.index,this.shorthandName,this.ifValue,this.elseValue)}}class NM extends cOe{constructor(e){super(),this.name=e}resolve(e){let t=e.resolve(this);return this.transform&&(t=this.transform.resolve(t||"")),t!==void 0?(this._children=[new hu(t)],!0):!1}clone(){const e=new NM(this.name);return this.transform&&(e.transform=this.transform.clone()),e._children=this.children.map(t=>t.clone()),e}}function dOe(i,e){const t=[...i];for(;t.length>0;){const n=t.shift();if(!e(n))break;t.unshift(...n.children)}}class IM extends w2{get placeholderInfo(){if(!this._placeholders){const e=[];let t;this.walk(function(n){return n instanceof _h&&(e.push(n),t=!t||t.index<n.index?n:t),!0}),this._placeholders={all:e,last:t}}return this._placeholders}get placeholders(){const{all:e}=this.placeholderInfo;return e}offset(e){let t=0,n=!1;return this.walk(s=>s===e?(n=!0,!1):(t+=s.len(),!0)),n?t:-1}fullLen(e){let t=0;return dOe([e],n=>(t+=n.len(),!0)),t}enclosingPlaceholders(e){const t=[];let{parent:n}=e;for(;n;)n instanceof _h&&t.push(n),n=n.parent;return t}resolveVariables(e){return this.walk(t=>(t instanceof NM&&t.resolve(e)&&(this._placeholders=void 0),!0)),this}appendChild(e){return this._placeholders=void 0,super.appendChild(e)}replace(e,t){return this._placeholders=void 0,super.replace(e,t)}clone(){const e=new IM;return this._children=this.children.map(t=>t.clone()),e}walk(e){dOe(this.children,e)}}class Xw{constructor(){this._scanner=new are,this._token={type:14,pos:0,len:0}}static escape(e){return e.replace(/\$|}|\\/g,"\\$&")}static guessNeedsClipboard(e){return/\${?CLIPBOARD/.test(e)}parse(e,t,n){const s=new IM;return this.parseFragment(e,s),this.ensureFinalTabstop(s,n??!1,t??!1),s}parseFragment(e,t){const n=t.children.length;for(this._scanner.text(e),this._token=this._scanner.next();this._parse(t););const s=new Map,r=[];t.walk(l=>(l instanceof _h&&(l.isFinalTabstop?s.set(0,void 0):!s.has(l.index)&&l.children.length>0?s.set(l.index,l.children):r.push(l)),!0));const o=(l,u)=>{const c=s.get(l.index);if(!c)return;const d=new _h(l.index);d.transform=l.transform;for(const h of c){const f=h.clone();d.appendChild(f),f instanceof _h&&s.has(f.index)&&!u.has(f.index)&&(u.add(f.index),o(f,u),u.delete(f.index))}t.replace(l,[d])},a=new Set;for(const l of r)o(l,a);return t.children.slice(n)}ensureFinalTabstop(e,t,n){(t||n&&e.placeholders.length>0)&&(e.placeholders.find(r=>r.index===0)||e.appendChild(new _h(0)))}_accept(e,t){if(e===void 0||this._token.type===e){const n=t?this._scanner.tokenText(this._token):!0;return this._token=this._scanner.next(),n}return!1}_backTo(e){return this._scanner.pos=e.pos+e.len,this._token=e,!1}_until(e){const t=this._token;for(;this._token.type!==e;){if(this._token.type===14)return!1;if(this._token.type===5){const s=this._scanner.next();if(s.type!==0&&s.type!==4&&s.type!==5)return!1}this._token=this._scanner.next()}const n=this._scanner.value.substring(t.pos,this._token.pos).replace(/\\(\$|}|\\)/g,"$1");return this._token=this._scanner.next(),n}_parse(e){return this._parseEscaped(e)||this._parseTabstopOrVariableName(e)||this._parseComplexPlaceholder(e)||this._parseComplexVariable(e)||this._parseAnything(e)}_parseEscaped(e){let t;return(t=this._accept(5,!0))?(t=this._accept(0,!0)||this._accept(4,!0)||this._accept(5,!0)||t,e.appendChild(new hu(t)),!0):!1}_parseTabstopOrVariableName(e){let t;const n=this._token;return this._accept(0)&&(t=this._accept(9,!0)||this._accept(8,!0))?(e.appendChild(/^\d+$/.test(t)?new _h(Number(t)):new NM(t)),!0):this._backTo(n)}_parseComplexPlaceholder(e){let t;const n=this._token;if(!(this._accept(0)&&this._accept(3)&&(t=this._accept(8,!0))))return this._backTo(n);const r=new _h(Number(t));if(this._accept(1))for(;;){if(this._accept(4))return e.appendChild(r),!0;if(!this._parse(r))return e.appendChild(new hu("${"+t+":")),r.children.forEach(e.appendChild,e),!0}else if(r.index>0&&this._accept(7)){const o=new S2;for(;;){if(this._parseChoiceElement(o)){if(this._accept(2))continue;if(this._accept(7)&&(r.appendChild(o),this._accept(4)))return e.appendChild(r),!0}return this._backTo(n),!1}}else return this._accept(6)?this._parseTransform(r)?(e.appendChild(r),!0):(this._backTo(n),!1):this._accept(4)?(e.appendChild(r),!0):this._backTo(n)}_parseChoiceElement(e){const t=this._token,n=[];for(;!(this._token.type===2||this._token.type===7);){let s;if((s=this._accept(5,!0))?s=this._accept(2,!0)||this._accept(7,!0)||this._accept(5,!0)||s:s=this._accept(void 0,!0),!s)return this._backTo(t),!1;n.push(s)}return n.length===0?(this._backTo(t),!1):(e.appendChild(new hu(n.join(""))),!0)}_parseComplexVariable(e){let t;const n=this._token;if(!(this._accept(0)&&this._accept(3)&&(t=this._accept(9,!0))))return this._backTo(n);const r=new NM(t);if(this._accept(1))for(;;){if(this._accept(4))return e.appendChild(r),!0;if(!this._parse(r))return e.appendChild(new hu("${"+t+":")),r.children.forEach(e.appendChild,e),!0}else return this._accept(6)?this._parseTransform(r)?(e.appendChild(r),!0):(this._backTo(n),!1):this._accept(4)?(e.appendChild(r),!0):this._backTo(n)}_parseTransform(e){const t=new lre;let n="",s="";for(;!this._accept(6);){let r;if(r=this._accept(5,!0)){r=this._accept(6,!0)||r,n+=r;continue}if(this._token.type!==14){n+=this._accept(void 0,!0);continue}return!1}for(;!this._accept(6);){let r;if(r=this._accept(5,!0)){r=this._accept(5,!0)||this._accept(6,!0)||r,t.appendChild(new hu(r));continue}if(!(this._parseFormatString(t)||this._parseAnything(t)))return!1}for(;!this._accept(4);){if(this._token.type!==14){s+=this._accept(void 0,!0);continue}return!1}try{t.regexp=new RegExp(n,s)}catch{return!1}return e.transform=t,!0}_parseFormatString(e){const t=this._token;if(!this._accept(0))return!1;let n=!1;this._accept(3)&&(n=!0);const s=this._accept(8,!0);if(s)if(n){if(this._accept(4))return e.appendChild(new zp(Number(s))),!0;if(!this._accept(1))return this._backTo(t),!1}else return e.appendChild(new zp(Number(s))),!0;else return this._backTo(t),!1;if(this._accept(6)){const r=this._accept(9,!0);return!r||!this._accept(4)?(this._backTo(t),!1):(e.appendChild(new zp(Number(s),r)),!0)}else if(this._accept(11)){const r=this._until(4);if(r)return e.appendChild(new zp(Number(s),void 0,r,void 0)),!0}else if(this._accept(12)){const r=this._until(4);if(r)return e.appendChild(new zp(Number(s),void 0,void 0,r)),!0}else if(this._accept(13)){const r=this._until(1);if(r){const o=this._until(4);if(o)return e.appendChild(new zp(Number(s),void 0,r,o)),!0}}else{const r=this._until(4);if(r)return e.appendChild(new zp(Number(s),void 0,void 0,r)),!0}return this._backTo(t),!1}_parseAnything(e){return this._token.type!==14?(e.appendChild(new hu(this._scanner.tokenText(this._token))),this._accept(void 0),!0):!1}}function hOe(i,e,t){return(typeof t.insertText=="string"?t.insertText==="":t.insertText.snippet==="")?{edits:t.additionalEdit?.edits??[]}:{edits:[...e.map(n=>new N1(i,{range:n,text:typeof t.insertText=="string"?Xw.escape(t.insertText)+"$0":t.insertText.snippet,insertAsSnippet:!0})),...t.additionalEdit?.edits??[]]}}function fOe(i){function e(o,a){return"mimeType"in o?o.mimeType===a.handledMimeType:!!a.kind&&o.kind.contains(a.kind)}const t=new Map;for(const o of i)for(const a of o.yieldTo??[])for(const l of i)if(l!==o&&e(a,l)){let u=t.get(o);u||(u=[],t.set(o,u)),u.push(l)}if(!t.size)return Array.from(i);const n=new Set,s=[];function r(o){if(!o.length)return[];const a=o[0];if(s.includes(a))return console.warn("Yield to cycle detected",a),o;if(n.has(a))return r(o.slice(1));let l=[];const u=t.get(a);return u&&(s.push(a),l=r(u),s.pop()),n.add(a),[...l,a,...r(o.slice(1))]}return r(Array.from(i))}var c5t=function(i,e,t,n){var s=arguments.length,r=s<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(i,e,t,n);else for(var a=i.length-1;a>=0;a--)(o=i[a])&&(r=(s<3?o(r):s>3?o(e,t,r):o(e,t))||r);return s>3&&r&&Object.defineProperty(e,t,r),r},d5t=function(i,e){return function(t,n){e(t,n,i)}};const h5t=xi.register({description:"inline-progress-widget",stickiness:1,showIfCollapsed:!0,after:{content:PTe,inlineClassName:"inline-editor-progress-decoration",inlineClassNameAffectsLetterSpacing:!0}}),PH=class PH extends ye{constructor(e,t,n,s,r){super(),this.typeId=e,this.editor=t,this.range=n,this.delegate=r,this.allowEditorOverflow=!1,this.suppressMouseDown=!0,this.create(s),this.editor.addContentWidget(this),this.editor.layoutContentWidget(this)}create(e){this.domNode=it(".inline-progress-widget"),this.domNode.role="button",this.domNode.title=e;const t=it("span.icon");this.domNode.append(t),t.classList.add(...ni.asClassNameArray(et.loading),"codicon-modifier-spin");const n=()=>{const s=this.editor.getOption(67);this.domNode.style.height=`${s}px`,this.domNode.style.width=`${Math.ceil(.8*s)}px`};n(),this._register(this.editor.onDidChangeConfiguration(s=>{(s.hasChanged(52)||s.hasChanged(67))&&n()})),this._register(Ie(this.domNode,tt.CLICK,s=>{this.delegate.cancel()}))}getId(){return PH.baseId+"."+this.typeId}getDomNode(){return this.domNode}getPosition(){return{position:{lineNumber:this.range.startLineNumber,column:this.range.startColumn},preference:[0]}}dispose(){super.dispose(),this.editor.removeContentWidget(this)}};PH.baseId="editor.widget.inlineProgressWidget";let ure=PH,pB=class extends ye{constructor(e,t,n){super(),this.id=e,this._editor=t,this._instantiationService=n,this._showDelay=500,this._showPromise=this._register(new Io),this._currentWidget=this._register(new Io),this._operationIdPool=0,this._currentDecorations=t.createDecorationsCollection()}dispose(){super.dispose(),this._currentDecorations.clear()}async showWhile(e,t,n,s,r){const o=this._operationIdPool++;this._currentOperation=o,this.clear(),this._showPromise.value=l1(()=>{const a=U.fromPositions(e);this._currentDecorations.set([{range:a,options:h5t}]).length>0&&(this._currentWidget.value=this._instantiationService.createInstance(ure,this.id,this._editor,a,t,s))},r??this._showDelay);try{return await n}finally{this._currentOperation===o&&(this.clear(),this._currentOperation=void 0)}}clear(){this._showPromise.clear(),this._currentDecorations.clear(),this._currentWidget.clear()}};pB=c5t([d5t(2,jt)],pB);var f5t=function(i,e,t,n){var s=arguments.length,r=s<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(i,e,t,n);else for(var a=i.length-1;a>=0;a--)(o=i[a])&&(r=(s<3?o(r):s>3?o(e,t,r):o(e,t))||r);return s>3&&r&&Object.defineProperty(e,t,r),r},pOe=function(i,e){return function(t,n){e(t,n,i)}},gB;let Sc=(Ry=class{static get(e){return e.getContribution(gB.ID)}constructor(e,t,n){this._openerService=n,this._messageWidget=new Io,this._messageListeners=new Fe,this._mouseOverMessage=!1,this._editor=e,this._visible=gB.MESSAGE_VISIBLE.bindTo(t)}dispose(){this._message?.dispose(),this._messageListeners.dispose(),this._messageWidget.dispose(),this._visible.reset()}showMessage(e,t){au(Lp(e)?e.value:e),this._visible.set(!0),this._messageWidget.clear(),this._messageListeners.clear(),this._message=Lp(e)?H8(e,{actionHandler:{callback:s=>{this.closeMessage(),See(this._openerService,s,Lp(e)?e.isTrusted:void 0)},disposables:this._messageListeners}}):void 0,this._messageWidget.value=new gOe(this._editor,t,typeof e=="string"?e:this._message.element),this._messageListeners.add(rt.debounce(this._editor.onDidBlurEditorText,(s,r)=>r,0)(()=>{this._mouseOverMessage||this._messageWidget.value&&Wo(Ra(),this._messageWidget.value.getDomNode())||this.closeMessage()})),this._messageListeners.add(this._editor.onDidChangeCursorPosition(()=>this.closeMessage())),this._messageListeners.add(this._editor.onDidDispose(()=>this.closeMessage())),this._messageListeners.add(this._editor.onDidChangeModel(()=>this.closeMessage())),this._messageListeners.add(Ie(this._messageWidget.value.getDomNode(),tt.MOUSE_ENTER,()=>this._mouseOverMessage=!0,!0)),this._messageListeners.add(Ie(this._messageWidget.value.getDomNode(),tt.MOUSE_LEAVE,()=>this._mouseOverMessage=!1,!0));let n;this._messageListeners.add(this._editor.onMouseMove(s=>{s.target.position&&(n?n.containsPosition(s.target.position)||this.closeMessage():n=new U(t.lineNumber-3,1,s.target.position.lineNumber+3,1))}))}closeMessage(){this._visible.reset(),this._messageListeners.clear(),this._messageWidget.value&&this._messageListeners.add(gOe.fadeOut(this._messageWidget.value))}},gB=Ry,Ry.ID="editor.contrib.messageController",Ry.MESSAGE_VISIBLE=new gt("messageVisible",!1,w("messageVisible","Whether the editor is currently showing an inline message")),Ry);Sc=gB=f5t([pOe(1,ri),pOe(2,Fu)],Sc);const p5t=ko.bindToContribution(Sc.get);ht(new p5t({id:"leaveEditorMessage",precondition:Sc.MESSAGE_VISIBLE,handler:i=>i.closeMessage(),kbOpts:{weight:130,primary:9}}));let gOe=class{static fadeOut(e){const t=()=>{e.dispose(),clearTimeout(n),e.getDomNode().removeEventListener("animationend",t)},n=setTimeout(t,110);return e.getDomNode().addEventListener("animationend",t),e.getDomNode().classList.add("fadeOut"),{dispose:t}}constructor(e,{lineNumber:t,column:n},s){this.allowEditorOverflow=!0,this.suppressMouseDown=!1,this._editor=e,this._editor.revealLinesInCenterIfOutsideViewport(t,t,0),this._position={lineNumber:t,column:n},this._domNode=document.createElement("div"),this._domNode.classList.add("monaco-editor-overlaymessage"),this._domNode.style.marginLeft="-6px";const r=document.createElement("div");r.classList.add("anchor","top"),this._domNode.appendChild(r);const o=document.createElement("div");typeof s=="string"?(o.classList.add("message"),o.textContent=s):(s.classList.add("message"),o.appendChild(s)),this._domNode.appendChild(o);const a=document.createElement("div");a.classList.add("anchor","below"),this._domNode.appendChild(a),this._editor.addContentWidget(this),this._domNode.classList.add("fadeIn")}dispose(){this._editor.removeContentWidget(this)}getId(){return"messageoverlay"}getDomNode(){return this._domNode}getPosition(){return{position:this._position,preference:[1,2],positionAffinity:1}}afterRender(e){this._domNode.classList.toggle("below",e===2)}};fn(Sc.ID,Sc,4);function cre(i,e){return e&&(i.stack||i.stacktrace)?w("stackTrace.format","{0}: {1}",_Oe(i),mOe(i.stack)||mOe(i.stacktrace)):_Oe(i)}function mOe(i){return Array.isArray(i)?i.join(`
|
|
1283
1171
|
`):i}function _Oe(i){return i.code==="ERR_UNC_HOST_NOT_ALLOWED"?`${i.message}. Please update the 'security.allowedUNCHosts' setting if you want to allow this host.`:typeof i.code=="string"&&typeof i.errno=="number"&&typeof i.syscall=="string"?w("nodeExceptionMessage","A system error occurred ({0})",i.message):i.message||w("error.defaultMessage","An unknown error occurred. Please consult the log for more details.")}function mB(i=null,e=!1){if(!i)return w("error.defaultMessage","An unknown error occurred. Please consult the log for more details.");if(Array.isArray(i)){const t=gf(i),n=mB(t[0],e);return t.length>1?w("error.moreErrors","{0} ({1} errors in total)",n,t.length):n}if(Eu(i))return i;if(i.detail){const t=i.detail;if(t.error)return cre(t.error,e);if(t.exception)return cre(t.exception,e)}return i.stack?cre(i,e):i.message?i.message:w("error.defaultMessage","An unknown error occurred. Please consult the log for more details.")}var bOe=function(i,e,t,n){var s=arguments.length,r=s<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(i,e,t,n);else for(var a=i.length-1;a>=0;a--)(o=i[a])&&(r=(s<3?o(r):s>3?o(e,t,r):o(e,t))||r);return s>3&&r&&Object.defineProperty(e,t,r),r},x2=function(i,e){return function(t,n){e(t,n,i)}},dre;let hre=(QS=class extends ye{constructor(e,t,n,s,r,o,a,l,u,c){super(),this.typeId=e,this.editor=t,this.showCommand=s,this.range=r,this.edits=o,this.onSelectNewEdit=a,this._contextMenuService=l,this._keybindingService=c,this.allowEditorOverflow=!0,this.suppressMouseDown=!0,this.create(),this.visibleContext=n.bindTo(u),this.visibleContext.set(!0),this._register(zt(()=>this.visibleContext.reset())),this.editor.addContentWidget(this),this.editor.layoutContentWidget(this),this._register(zt((()=>this.editor.removeContentWidget(this)))),this._register(this.editor.onDidChangeCursorPosition(d=>{r.containsPosition(d.position)||this.dispose()})),this._register(rt.runAndSubscribe(c.onDidUpdateKeybindings,()=>{this._updateButtonTitle()}))}_updateButtonTitle(){const e=this._keybindingService.lookupKeybinding(this.showCommand.id)?.getLabel();this.button.element.title=this.showCommand.label+(e?` (${e})`:"")}create(){this.domNode=it(".post-edit-widget"),this.button=this._register(new W9(this.domNode,{supportIcons:!0})),this.button.label="$(insert)",this._register(Ie(this.domNode,tt.CLICK,()=>this.showSelector()))}getId(){return dre.baseId+"."+this.typeId}getDomNode(){return this.domNode}getPosition(){return{position:this.range.getEndPosition(),preference:[2]}}showSelector(){this._contextMenuService.showContextMenu({getAnchor:()=>{const e=Ar(this.button.element);return{x:e.left+e.width,y:e.top+e.height}},getActions:()=>this.edits.allEdits.map((e,t)=>qC({id:"",label:e.title,checked:t===this.edits.activeEditIndex,run:()=>{if(t!==this.edits.activeEditIndex)return this.onSelectNewEdit(t)}}))})}},dre=QS,QS.baseId="editor.widget.postEditWidget",QS);hre=dre=bOe([x2(7,pc),x2(8,ri),x2(9,In)],hre);let _B=class extends ye{constructor(e,t,n,s,r,o,a){super(),this._id=e,this._editor=t,this._visibleContext=n,this._showCommand=s,this._instantiationService=r,this._bulkEditService=o,this._notificationService=a,this._currentWidget=this._register(new Io),this._register(rt.any(t.onDidChangeModel,t.onDidChangeModelContent)(()=>this.clear()))}async applyEditAndShowIfNeeded(e,t,n,s,r){const o=this._editor.getModel();if(!o||!e.length)return;const a=t.allEdits.at(t.activeEditIndex);if(!a)return;const l=async y=>{const S=this._editor.getModel();S&&(await S.undo(),this.applyEditAndShowIfNeeded(e,{activeEditIndex:y,allEdits:t.allEdits},n,s,r))},u=(y,S)=>{zd(y)||(this._notificationService.error(S),n&&this.show(e[0],t,l))};let c;try{c=await s(a,r)}catch(y){return u(y,w("resolveError",`Error resolving edit '{0}':
|
|
@@ -1391,17 +1279,7 @@ Expected it to be ${n}.`}var Qzt=class extends Error{name="InvalidDocError";cons
|
|
|
1391
1279
|
`||ei==="\r"||ei==="\u2028"||ei==="\u2029")return Ge+1}return Ge}var M=I;function B(ve,Ge){return Ge===!1?!1:ve.charAt(Ge)==="/"&&ve.charAt(Ge+1)==="/"?E(ve,Ge):Ge}var F=B;function G(ve,Ge){let St=null,It=Ge;for(;It!==St;)St=It,It=x(ve,It),It=A(ve,It),It=F(ve,It),It=M(ve,It);return It}var q=G;function ee(ve){let Ge=[];for(let St of ve)try{return St()}catch(It){Ge.push(It)}throw Object.assign(new Error("All combinations failed"),{errors:Ge})}var Z=ee;function K(ve){if(!ve.startsWith("#!"))return"";let Ge=ve.indexOf(`
|
|
1392
1280
|
`);return Ge===-1?ve:ve.slice(0,Ge)}var oe=K,Y=(ve,Ge,St)=>{if(!(ve&&Ge==null)){if(Ge.findLast)return Ge.findLast(St);for(let It=Ge.length-1;It>=0;It--){let ei=Ge[It];if(St(ei,It,Ge))return ei}}},de=Y,ae=(ve,Ge,St)=>{if(!(ve&&Ge==null))return Array.isArray(Ge)||typeof Ge=="string"?Ge[St<0?Ge.length+St:St]:Ge.at(St)},he=ae,Ce=new Proxy(()=>{},{get:()=>Ce});function le(ve){var Ge,St,It;let ei=((Ge=ve.range)==null?void 0:Ge[0])??ve.start,ln=(It=((St=ve.declaration)==null?void 0:St.decorators)??ve.decorators)==null?void 0:It[0];return ln?Math.min(le(ln),ei):ei}function J(ve){var Ge;return((Ge=ve.range)==null?void 0:Ge[1])??ve.end}function Ee(ve){let Ge=new Set(ve);return St=>Ge.has(St?.type)}var we=Ee;function Ae(ve,Ge,St){let It=ve.originalText.slice(Ge,St);for(let ei of ve[Symbol.for("comments")]){let ln=le(ei);if(ln>St)break;let as=J(ei);if(as<Ge)continue;let mo=as-ln;It=It.slice(0,ln-Ge)+" ".repeat(mo)+It.slice(as-Ge)}return It}var Ue=Ae,ze=we(["Block","CommentBlock","MultiLine"]),$e=ze,Dt=we(["Line","CommentLine","SingleLine","HashbangComment","HTMLOpen","HTMLClose","Hashbang","InterpreterDirective"]),$t=Dt,ii=new WeakMap;function di(ve){return ii.has(ve)||ii.set(ve,$e(ve)&&ve.value[0]==="*"&&/@(?:type|satisfies)\b/u.test(ve.value)),ii.get(ve)}var Oe=di;function ke(ve){if(!$e(ve))return!1;let Ge=`*${ve.value}*`.split(`
|
|
1393
1281
|
`);return Ge.length>1&&Ge.every(St=>St.trimStart()[0]==="*")}var pt=new WeakMap;function Me(ve){return pt.has(ve)||pt.set(ve,ke(ve)),pt.get(ve)}var ge=Me;function mt(ve){if(ve.length<2)return;let Ge;for(let St=ve.length-1;St>=0;St--){let It=ve[St];if(Ge&&J(It)===le(Ge)&&ge(It)&&ge(Ge)&&(ve.splice(St+1,1),It.value+="*//*"+Ge.value,It.range=[le(It),J(Ge)]),!$t(It)&&!$e(It))throw new TypeError(`Unknown comment type: "${It.type}".`);Ge=It}}var At=mt,Kt=null;function Et(ve){if(Kt!==null&&typeof Kt.property){let Ge=Kt;return Kt=Et.prototype=null,Ge}return Kt=Et.prototype=ve??Object.create(null),new Et}var Ve=10;for(let ve=0;ve<=Ve;ve++)Et();function ft(ve){return Et(ve)}function bt(ve,Ge="type"){ft(ve);function St(It){let ei=It[Ge],ln=ve[ei];if(!Array.isArray(ln))throw Object.assign(new Error(`Missing visitor keys for '${ei}'.`),{node:It});return ln}return St}var Yt=bt,ki={ArrayExpression:["elements"],AssignmentExpression:["left","right"],BinaryExpression:["left","right"],InterpreterDirective:[],Directive:["value"],DirectiveLiteral:[],BlockStatement:["directives","body"],BreakStatement:["label"],CallExpression:["callee","typeParameters","typeArguments","arguments"],CatchClause:["param","body"],ConditionalExpression:["test","consequent","alternate"],ContinueStatement:["label"],DebuggerStatement:[],DoWhileStatement:["body","test"],EmptyStatement:[],ExpressionStatement:["expression"],File:["program"],ForInStatement:["left","right","body"],ForStatement:["init","test","update","body"],FunctionDeclaration:["id","typeParameters","params","predicate","returnType","body"],FunctionExpression:["id","typeParameters","params","returnType","body"],Identifier:["typeAnnotation","decorators"],IfStatement:["test","consequent","alternate"],LabeledStatement:["label","body"],StringLiteral:[],NumericLiteral:[],NullLiteral:[],BooleanLiteral:[],RegExpLiteral:[],LogicalExpression:["left","right"],MemberExpression:["object","property"],NewExpression:["callee","typeParameters","typeArguments","arguments"],Program:["directives","body"],ObjectExpression:["properties"],ObjectMethod:["decorators","key","typeParameters","params","returnType","body"],ObjectProperty:["decorators","key","value"],RestElement:["argument","typeAnnotation","decorators"],ReturnStatement:["argument"],SequenceExpression:["expressions"],ParenthesizedExpression:["expression"],SwitchCase:["test","consequent"],SwitchStatement:["discriminant","cases"],ThisExpression:[],ThrowStatement:["argument"],TryStatement:["block","handler","finalizer"],UnaryExpression:["argument"],UpdateExpression:["argument"],VariableDeclaration:["declarations"],VariableDeclarator:["id","init"],WhileStatement:["test","body"],WithStatement:["object","body"],AssignmentPattern:["left","right","decorators","typeAnnotation"],ArrayPattern:["elements","typeAnnotation","decorators"],ArrowFunctionExpression:["typeParameters","params","predicate","returnType","body"],ClassBody:["body"],ClassExpression:["decorators","id","typeParameters","superClass","superTypeParameters","mixins","implements","body","superTypeArguments"],ClassDeclaration:["decorators","id","typeParameters","superClass","superTypeParameters","mixins","implements","body","superTypeArguments"],ExportAllDeclaration:["source","attributes","exported"],ExportDefaultDeclaration:["declaration"],ExportNamedDeclaration:["declaration","specifiers","source","attributes"],ExportSpecifier:["local","exported"],ForOfStatement:["left","right","body"],ImportDeclaration:["specifiers","source","attributes"],ImportDefaultSpecifier:["local"],ImportNamespaceSpecifier:["local"],ImportSpecifier:["imported","local"],ImportExpression:["source","options"],MetaProperty:["meta","property"],ClassMethod:["decorators","key","typeParameters","params","returnType","body"],ObjectPattern:["decorators","properties","typeAnnotation"],SpreadElement:["argument"],Super:[],TaggedTemplateExpression:["tag","typeParameters","quasi","typeArguments"],TemplateElement:[],TemplateLiteral:["quasis","expressions"],YieldExpression:["argument"],AwaitExpression:["argument"],BigIntLiteral:[],ExportNamespaceSpecifier:["exported"],OptionalMemberExpression:["object","property"],OptionalCallExpression:["callee","typeParameters","typeArguments","arguments"],ClassProperty:["decorators","variance","key","typeAnnotation","value"],ClassAccessorProperty:["decorators","key","typeAnnotation","value"],ClassPrivateProperty:["decorators","variance","key","typeAnnotation","value"],ClassPrivateMethod:["decorators","key","typeParameters","params","returnType","body"],PrivateName:["id"],StaticBlock:["body"],ImportAttribute:["key","value"],AnyTypeAnnotation:[],ArrayTypeAnnotation:["elementType"],BooleanTypeAnnotation:[],BooleanLiteralTypeAnnotation:[],NullLiteralTypeAnnotation:[],ClassImplements:["id","typeParameters"],DeclareClass:["id","typeParameters","extends","mixins","implements","body"],DeclareFunction:["id","predicate"],DeclareInterface:["id","typeParameters","extends","body"],DeclareModule:["id","body"],DeclareModuleExports:["typeAnnotation"],DeclareTypeAlias:["id","typeParameters","right"],DeclareOpaqueType:["id","typeParameters","supertype"],DeclareVariable:["id"],DeclareExportDeclaration:["declaration","specifiers","source","attributes"],DeclareExportAllDeclaration:["source","attributes"],DeclaredPredicate:["value"],ExistsTypeAnnotation:[],FunctionTypeAnnotation:["typeParameters","this","params","rest","returnType"],FunctionTypeParam:["name","typeAnnotation"],GenericTypeAnnotation:["id","typeParameters"],InferredPredicate:[],InterfaceExtends:["id","typeParameters"],InterfaceDeclaration:["id","typeParameters","extends","body"],InterfaceTypeAnnotation:["extends","body"],IntersectionTypeAnnotation:["types"],MixedTypeAnnotation:[],EmptyTypeAnnotation:[],NullableTypeAnnotation:["typeAnnotation"],NumberLiteralTypeAnnotation:[],NumberTypeAnnotation:[],ObjectTypeAnnotation:["properties","indexers","callProperties","internalSlots"],ObjectTypeInternalSlot:["id","value"],ObjectTypeCallProperty:["value"],ObjectTypeIndexer:["variance","id","key","value"],ObjectTypeProperty:["key","value","variance"],ObjectTypeSpreadProperty:["argument"],OpaqueType:["id","typeParameters","supertype","impltype"],QualifiedTypeIdentifier:["qualification","id"],StringLiteralTypeAnnotation:[],StringTypeAnnotation:[],SymbolTypeAnnotation:[],ThisTypeAnnotation:[],TupleTypeAnnotation:["types","elementTypes"],TypeofTypeAnnotation:["argument","typeArguments"],TypeAlias:["id","typeParameters","right"],TypeAnnotation:["typeAnnotation"],TypeCastExpression:["expression","typeAnnotation"],TypeParameter:["bound","default","variance"],TypeParameterDeclaration:["params"],TypeParameterInstantiation:["params"],UnionTypeAnnotation:["types"],Variance:[],VoidTypeAnnotation:[],EnumDeclaration:["id","body"],EnumBooleanBody:["members"],EnumNumberBody:["members"],EnumStringBody:["members"],EnumSymbolBody:["members"],EnumBooleanMember:["id","init"],EnumNumberMember:["id","init"],EnumStringMember:["id","init"],EnumDefaultedMember:["id"],IndexedAccessType:["objectType","indexType"],OptionalIndexedAccessType:["objectType","indexType"],JSXAttribute:["name","value"],JSXClosingElement:["name"],JSXElement:["openingElement","children","closingElement"],JSXEmptyExpression:[],JSXExpressionContainer:["expression"],JSXSpreadChild:["expression"],JSXIdentifier:[],JSXMemberExpression:["object","property"],JSXNamespacedName:["namespace","name"],JSXOpeningElement:["name","typeParameters","typeArguments","attributes"],JSXSpreadAttribute:["argument"],JSXText:[],JSXFragment:["openingFragment","children","closingFragment"],JSXOpeningFragment:[],JSXClosingFragment:[],Noop:[],Placeholder:[],V8IntrinsicIdentifier:[],ArgumentPlaceholder:[],BindExpression:["object","callee"],Decorator:["expression"],DoExpression:["body"],ExportDefaultSpecifier:["exported"],ModuleExpression:["body"],TopicReference:[],PipelineTopicExpression:["expression"],PipelineBareFunction:["callee"],PipelinePrimaryTopicReference:[],TSParameterProperty:["parameter","decorators"],TSDeclareFunction:["id","typeParameters","params","returnType","body"],TSDeclareMethod:["decorators","key","typeParameters","params","returnType"],TSQualifiedName:["left","right"],TSCallSignatureDeclaration:["typeParameters","parameters","typeAnnotation","params","returnType"],TSConstructSignatureDeclaration:["typeParameters","parameters","typeAnnotation","params","returnType"],TSPropertySignature:["key","typeAnnotation"],TSMethodSignature:["key","typeParameters","parameters","typeAnnotation","params","returnType"],TSIndexSignature:["parameters","typeAnnotation"],TSAnyKeyword:[],TSBooleanKeyword:[],TSBigIntKeyword:[],TSIntrinsicKeyword:[],TSNeverKeyword:[],TSNullKeyword:[],TSNumberKeyword:[],TSObjectKeyword:[],TSStringKeyword:[],TSSymbolKeyword:[],TSUndefinedKeyword:[],TSUnknownKeyword:[],TSVoidKeyword:[],TSThisType:[],TSFunctionType:["typeParameters","parameters","typeAnnotation","params","returnType"],TSConstructorType:["typeParameters","parameters","typeAnnotation","params","returnType"],TSTypeReference:["typeName","typeParameters","typeArguments"],TSTypePredicate:["parameterName","typeAnnotation"],TSTypeQuery:["exprName","typeParameters","typeArguments"],TSTypeLiteral:["members"],TSArrayType:["elementType"],TSTupleType:["elementTypes"],TSOptionalType:["typeAnnotation"],TSRestType:["typeAnnotation"],TSNamedTupleMember:["label","elementType"],TSUnionType:["types"],TSIntersectionType:["types"],TSConditionalType:["checkType","extendsType","trueType","falseType"],TSInferType:["typeParameter"],TSParenthesizedType:["typeAnnotation"],TSTypeOperator:["typeAnnotation"],TSIndexedAccessType:["objectType","indexType"],TSMappedType:["nameType","typeAnnotation","key","constraint"],TSTemplateLiteralType:["quasis","types"],TSLiteralType:["literal"],TSExpressionWithTypeArguments:["expression","typeParameters"],TSInterfaceDeclaration:["id","typeParameters","extends","body"],TSInterfaceBody:["body"],TSTypeAliasDeclaration:["id","typeParameters","typeAnnotation"],TSInstantiationExpression:["expression","typeParameters","typeArguments"],TSAsExpression:["expression","typeAnnotation"],TSSatisfiesExpression:["expression","typeAnnotation"],TSTypeAssertion:["typeAnnotation","expression"],TSEnumBody:["members"],TSEnumDeclaration:["id","body"],TSEnumMember:["id","initializer"],TSModuleDeclaration:["id","body"],TSModuleBlock:["body"],TSImportType:["argument","options","qualifier","typeParameters","typeArguments"],TSImportEqualsDeclaration:["id","moduleReference"],TSExternalModuleReference:["expression"],TSNonNullExpression:["expression"],TSExportAssignment:["expression"],TSNamespaceExportDeclaration:["id"],TSTypeAnnotation:["typeAnnotation"],TSTypeParameterInstantiation:["params"],TSTypeParameterDeclaration:["params"],TSTypeParameter:["constraint","default","name"],ChainExpression:["expression"],ExperimentalRestProperty:["argument"],ExperimentalSpreadProperty:["argument"],Literal:[],MethodDefinition:["decorators","key","value"],PrivateIdentifier:[],Property:["key","value"],PropertyDefinition:["decorators","key","typeAnnotation","value","variance"],AccessorProperty:["decorators","key","typeAnnotation","value"],TSAbstractAccessorProperty:["decorators","key","typeAnnotation"],TSAbstractKeyword:[],TSAbstractMethodDefinition:["key","value"],TSAbstractPropertyDefinition:["decorators","key","typeAnnotation"],TSAsyncKeyword:[],TSClassImplements:["expression","typeArguments","typeParameters"],TSDeclareKeyword:[],TSEmptyBodyFunctionExpression:["id","typeParameters","params","returnType"],TSExportKeyword:[],TSInterfaceHeritage:["expression","typeArguments","typeParameters"],TSPrivateKeyword:[],TSProtectedKeyword:[],TSPublicKeyword:[],TSReadonlyKeyword:[],TSStaticKeyword:[],AsConstExpression:["expression"],AsExpression:["expression","typeAnnotation"],BigIntLiteralTypeAnnotation:[],BigIntTypeAnnotation:[],ComponentDeclaration:["id","params","body","typeParameters","rendersType"],ComponentParameter:["name","local"],ComponentTypeAnnotation:["params","rest","typeParameters","rendersType"],ComponentTypeParameter:["name","typeAnnotation"],ConditionalTypeAnnotation:["checkType","extendsType","trueType","falseType"],DeclareComponent:["id","params","rest","typeParameters","rendersType"],DeclareEnum:["id","body"],DeclareHook:["id"],DeclareNamespace:["id","body"],EnumBigIntBody:["members"],EnumBigIntMember:["id","init"],HookDeclaration:["id","params","body","typeParameters","returnType"],HookTypeAnnotation:["params","returnType","rest","typeParameters"],InferTypeAnnotation:["typeParameter"],KeyofTypeAnnotation:["argument"],ObjectTypeMappedTypeProperty:["keyTparam","propType","sourceType","variance"],QualifiedTypeofIdentifier:["qualification","id"],TupleTypeLabeledElement:["label","elementType","variance"],TupleTypeSpreadElement:["label","typeAnnotation"],TypeOperator:["typeAnnotation"],TypePredicate:["parameterName","typeAnnotation","asserts"],NGChainedExpression:["expressions"],NGEmptyExpression:[],NGPipeExpression:["left","right","arguments"],NGMicrosyntax:["body"],NGMicrosyntaxAs:["key","alias"],NGMicrosyntaxExpression:["expression","alias"],NGMicrosyntaxKey:[],NGMicrosyntaxKeyedExpression:["key","expression"],NGMicrosyntaxLet:["key","value"],NGRoot:["node"],JsExpressionRoot:["node"],JsonRoot:["node"],TSJSDocAllType:[],TSJSDocUnknownType:[],TSJSDocNullableType:["typeAnnotation"],TSJSDocNonNullableType:["typeAnnotation"],NeverTypeAnnotation:[],SatisfiesExpression:["expression","typeAnnotation"],UndefinedTypeAnnotation:[],UnknownTypeAnnotation:[]},zi=Yt(ki),Xt=zi;function Ci(ve,Ge){if(!(ve!==null&&typeof ve=="object"))return ve;if(Array.isArray(ve)){for(let It=0;It<ve.length;It++)ve[It]=Ci(ve[It],Ge);return ve}let St=Xt(ve);for(let It=0;It<St.length;It++)ve[St[It]]=Ci(ve[St[It]],Ge);return Ge(ve)||ve}var mi=Ci;we(["RegExpLiteral","BigIntLiteral","NumericLiteral","StringLiteral","DirectiveLiteral","Literal","JSXText","TemplateElement","StringLiteralTypeAnnotation","NumberLiteralTypeAnnotation","BigIntLiteralTypeAnnotation"]);function _i(ve,Ge){let{parser:St,text:It}=Ge,{comments:ei}=ve,ln=St==="oxc"&&Ge.oxcAstType==="ts";At(ei);let as;ve=mi(ve,wn=>{switch(wn.type){case"ParenthesizedExpression":{let{expression:Cs}=wn,Mr=le(wn);if(Cs.type==="TypeCastExpression")return Cs.range=[Mr,J(wn)],Cs;let Md=!1;if(!ln){if(!as){as=[];for(let Mc of ei)Oe(Mc)&&as.push(J(Mc))}let Pc=de(!1,as,Mc=>Mc<=Mr);Md=Pc&&It.slice(Pc,Mr).trim().length===0}if(!Md)return Cs.extra={...Cs.extra,parenthesized:!0},Cs;break}case"LogicalExpression":if(Ei(wn))return ai(wn);break;case"TemplateLiteral":if(wn.expressions.length!==wn.quasis.length-1)throw new Error("Malformed template literal.");break;case"TemplateElement":if(St==="flow"||St==="hermes"||St==="espree"||St==="typescript"||ln){let Cs=le(wn)+1,Mr=J(wn)-(wn.tail?1:2);wn.range=[Cs,Mr]}break;case"VariableDeclaration":{let Cs=he(!1,wn.declarations,-1);Cs!=null&&Cs.init&&It[J(Cs)]!==";"&&(wn.range=[le(wn),J(Cs)]);break}case"TSParenthesizedType":return wn.typeAnnotation;case"TSTypeParameter":Mi(wn);break;case"TopicReference":ve.extra={...ve.extra,__isUsingHackPipeline:!0};break;case"TSUnionType":case"TSIntersectionType":if(wn.types.length===1)return wn.types[0];break;case"TSMappedType":if(!wn.constraint&&!wn.key){let{name:Cs,constraint:Mr}=Mi(wn.typeParameter);wn.constraint=Mr,wn.key=Cs,delete wn.typeParameter}break;case"TSEnumDeclaration":if(!wn.body){let Cs=J(wn.id),{members:Mr}=wn,Md=Ue({originalText:It,[Symbol.for("comments")]:ei},Cs,Mr[0]?le(Mr[0]):J(wn)),Pc=Cs+Md.indexOf("{");wn.body={type:"TSEnumBody",members:Mr,range:[Pc,J(wn)]},delete wn.members}break;case"ImportExpression":St==="hermes"&&wn.attributes&&!wn.options&&(wn.options=wn.attributes);break}});let mo=ve.type==="File"?ve.program:ve;return mo.interpreter&&(ei.unshift(mo.interpreter),delete mo.interpreter),ln&&ve.hashbang&&(ei.unshift(ve.hashbang),delete ve.hashbang),ve.type==="Program"&&(ve.range=[0,It.length]),ve}function Mi(ve){if(ve.type==="TSTypeParameter"&&typeof ve.name=="string"){let Ge=le(ve);ve.name={type:"Identifier",name:ve.name,range:[Ge,Ge+ve.name.length]}}return ve}function Ei(ve){return ve.type==="LogicalExpression"&&ve.right.type==="LogicalExpression"&&ve.operator===ve.right.operator}function ai(ve){return Ei(ve)?ai({type:"LogicalExpression",operator:ve.operator,left:ai({type:"LogicalExpression",operator:ve.operator,left:ve.left,right:ve.right.left,range:[le(ve.left),J(ve.right.left)]}),right:ve.right.right,range:[le(ve),J(ve)]}):ve}var Wn=_i;function Mn(ve,Ge){let St=new SyntaxError(ve+" ("+Ge.loc.start.line+":"+Ge.loc.start.column+")");return Object.assign(St,Ge)}var hs=Mn,Wi="Unexpected parseExpression() input: ";function Pr(ve){let{message:Ge,loc:St,reasonCode:It}=ve;if(!St)return ve;let{line:ei,column:ln}=St,as=ve;(It==="MissingPlugin"||It==="MissingOneOfPlugins")&&(Ge="Unexpected token.",as=void 0);let mo=` (${ei}:${ln})`;return Ge.endsWith(mo)&&(Ge=Ge.slice(0,-mo.length)),Ge.startsWith(Wi)&&(Ge=Ge.slice(Wi.length)),hs(Ge,{loc:{start:{line:ei,column:ln+1}},cause:as})}var qs=Pr,aa=(ve,Ge,St,It)=>{if(!(ve&&Ge==null))return Ge.replaceAll?Ge.replaceAll(St,It):St.global?Ge.replace(St,It):Ge.split(St).join(It)},Kn=aa,ir=/\*\/$/,ji=/^\/\*\*?/,an=/^\s*(\/\*\*?(.|\r?\n)*?\*\/)/,es=/(^|\s+)\/\/([^\n\r]*)/g,ti=/^(\r?\n)+/,re=/(?:^|\r?\n) *(@[^\n\r]*?) *\r?\n *(?![^\n\r@]*\/\/[^]*)([^\s@][^\n\r@]+?) *\r?\n/g,ue=/(?:^|\r?\n) *@(\S+) *([^\n\r]*)/g,pe=/(\r?\n|^) *\* ?/g,Se=[];function Ne(ve){let Ge=ve.match(an);return Ge?Ge[0].trimStart():""}function Ke(ve){let Ge=`
|
|
1394
|
-
`;ve=Kn(!1,ve.replace(ji,"").replace(ir,""),pe,"$1");let St="";for(;St!==ve;)St=ve,ve=Kn(!1,ve,re,`${Ge}$1 $2${Ge}`);ve=ve.replace(ti,"").trimEnd();let It=Object.create(null),ei=Kn(!1,ve,ue,"").replace(ti,"").trimEnd(),ln;for(;ln=ue.exec(ve);){let as=Kn(!1,ln[2],es,"");if(typeof It[ln[1]]=="string"||Array.isArray(It[ln[1]])){let mo=It[ln[1]];It[ln[1]]=[...Se,...Array.isArray(mo)?mo:[mo],as]}else It[ln[1]]=as}return{comments:ei,pragmas:It}}var ot=["noformat","noprettier"],Wt=["format","prettier"];function Qt(ve){let Ge=oe(ve);Ge&&(ve=ve.slice(Ge.length+1));let St=Ne(ve),{pragmas:It,comments:ei}=Ke(St);return{shebang:Ge,text:ve,pragmas:It,comments:ei}}function hi(ve){let{pragmas:Ge}=Qt(ve);return Wt.some(St=>Object.prototype.hasOwnProperty.call(Ge,St))}function si(ve){let{pragmas:Ge}=Qt(ve);return ot.some(St=>Object.prototype.hasOwnProperty.call(Ge,St))}function wi(ve){return ve=typeof ve=="function"?{parse:ve}:ve,{astFormat:"estree",hasPragma:hi,hasIgnorePragma:si,locStart:le,locEnd:J,...ve}}var Ot=wi,Cn="module",Fs="script";function to(ve){if(typeof ve=="string"){if(ve=ve.toLowerCase(),/\.(?:mjs|mts)$/iu.test(ve))return Cn;if(/\.(?:cjs|cts)$/iu.test(ve))return Fs}}function vu(ve,Ge){let{type:St="JsExpressionRoot",rootMarker:It,text:ei}=Ge,{tokens:ln,comments:as}=ve;return delete ve.tokens,delete ve.comments,{tokens:ln,comments:as,type:St,node:ve,range:[0,ei.length],rootMarker:It}}var Zt=vu,Pe=ve=>Ot(Eh(ve)),Bt={sourceType:Cn,allowImportExportEverywhere:!0,allowReturnOutsideFunction:!0,allowNewTargetOutsideFunction:!0,allowSuperOutsideMethod:!0,allowUndeclaredExports:!0,errorRecovery:!0,createParenthesizedExpressions:!0,createImportExpressions:!0,attachComment:!1,plugins:["doExpressions","exportDefaultFrom","functionBind","functionSent","throwExpressions","partialApplication","decorators","moduleBlocks","asyncDoExpressions","destructuringPrivate","decoratorAutoAccessors","explicitResourceManagement","sourcePhaseImports","deferredImportEvaluation",["optionalChainingAssign",{version:"2023-07"}]],tokens:!1,ranges:!1},He="v8intrinsic",fs=[["pipelineOperator",{proposal:"hack",topicToken:"%"}],["pipelineOperator",{proposal:"fsharp"}]],Gs=(ve,Ge=Bt)=>({...Ge,plugins:[...Ge.plugins,...ve]}),nr=/@(?:no)?flow\b/u;function rs(ve,Ge){if(Ge!=null&&Ge.endsWith(".js.flow"))return!0;let St=oe(ve);St&&(ve=ve.slice(St.length));let It=q(ve,0);return It!==!1&&(ve=ve.slice(0,It)),nr.test(ve)}function Wl(ve,Ge,St){let It=ve(Ge,St),ei=It.errors.find(ln=>!sr.has(ln.reasonCode));if(ei)throw ei;return It}function Eh({isExpression:ve=!1,optionsCombinations:Ge}){return(St,It={})=>{let{filepath:ei}=It;if(typeof ei!="string"&&(ei=void 0),(It.parser==="babel"||It.parser==="__babel_estree")&&rs(St,ei))return It.parser="babel-flow",ob.parse(St,It);let ln=Ge,as=It.__babelSourceType??to(ei);as===Fs&&(ln=ln.map(Mr=>({...Mr,sourceType:as})));let mo=/%[A-Z]/u.test(St);St.includes("|>")?ln=(mo?[...fs,He]:fs).flatMap(Mr=>ln.map(Md=>Gs([Mr],Md))):mo&&(ln=ln.map(Mr=>Gs([He],Mr)));let wn=ve?y.parseExpression:y.parse,Cs;try{Cs=Z(ln.map(Mr=>()=>Wl(wn,St,Mr)))}catch({errors:[Mr]}){throw qs(Mr)}return ve&&(Cs=Zt(Cs,{text:St,rootMarker:It.rootMarker})),Wn(Cs,{text:St})}}var sr=new Set(["StrictNumericEscape","StrictWith","StrictOctalLiteral","StrictDelete","StrictEvalArguments","StrictEvalArgumentsBinding","StrictFunction","ForInOfLoopInitializer","EmptyTypeArguments","EmptyTypeParameters","ConstructorHasTypeParameters","UnsupportedParameterPropertyKind","DecoratorExportClass","ParamDupe","InvalidDecimal","RestTrailingComma","UnsupportedParameterDecorator","UnterminatedJsxContent","UnexpectedReservedWord","ModuleAttributesWithDuplicateKeys","InvalidEscapeSequenceTemplate","NonAbstractClassHasAbstractMethod","OptionalTypeBeforeRequired","PatternIsOptional","OptionalBindingPattern","DeclareClassFieldHasInitializer","TypeImportCannotSpecifyDefaultAndNamed","ConstructorClassField","VarRedeclaration","InvalidPrivateFieldResolution","DuplicateExport","ImportAttributesUseAssert","DeclarationMissingInitializer"]),rr=[Gs(["jsx"])],rb=Pe({optionsCombinations:rr}),Vx=Pe({optionsCombinations:[Gs(["jsx","typescript"]),Gs(["typescript"])]}),Wx=Pe({isExpression:!0,optionsCombinations:[Gs(["jsx"])]}),Jy=Pe({isExpression:!0,optionsCombinations:[Gs(["typescript"])]}),ob=Pe({optionsCombinations:[Gs(["jsx",["flow",{all:!0}],"flowComments"])]}),ev=Pe({optionsCombinations:rr.map(ve=>Gs(["estree"],ve))}),Pd={};u(Pd,{json:()=>Hx,"json-stringify":()=>Zm,json5:()=>dL,jsonc:()=>$x});var Hl=d(f());function Qm(ve){return Array.isArray(ve)&&ve.length>0}var uL=Qm,tv={tokens:!1,ranges:!1,attachComment:!1,createParenthesizedExpressions:!0};function cL(ve){let Ge=(0,Hl.parse)(ve,tv),{program:St}=Ge;if(St.body.length===0&&St.directives.length===0&&!St.interpreter)return Ge}function Th(ve,Ge={}){let{allowComments:St=!0,allowEmpty:It=!1}=Ge,ei;try{ei=(0,Hl.parseExpression)(ve,tv)}catch(ln){if(It&&ln.code==="BABEL_PARSER_SYNTAX_ERROR"&&ln.reasonCode==="ParseExpressionEmptyInput")try{ei=cL(ve)}catch{}if(!ei)throw qs(ln)}if(!St&&uL(ei.comments))throw kh(ei.comments[0],"Comment");return ei=Zt(ei,{type:"JsonRoot",text:ve}),ei.node.type==="File"?delete ei.node:Ao(ei.node),ei}function kh(ve,Ge){let[St,It]=[ve.loc.start,ve.loc.end].map(({line:ei,column:ln})=>({line:ei,column:ln+1}));return hs(`${Ge} is not allowed in JSON.`,{loc:{start:St,end:It}})}function Ao(ve){switch(ve.type){case"ArrayExpression":for(let Ge of ve.elements)Ge!==null&&Ao(Ge);return;case"ObjectExpression":for(let Ge of ve.properties)Ao(Ge);return;case"ObjectProperty":if(ve.computed)throw kh(ve.key,"Computed key");if(ve.shorthand)throw kh(ve.key,"Shorthand property");ve.key.type!=="Identifier"&&Ao(ve.key),Ao(ve.value);return;case"UnaryExpression":{let{operator:Ge,argument:St}=ve;if(Ge!=="+"&&Ge!=="-")throw kh(ve,`Operator '${ve.operator}'`);if(St.type==="NumericLiteral"||St.type==="Identifier"&&(St.name==="Infinity"||St.name==="NaN"))return;throw kh(St,`Operator '${Ge}' before '${St.type}'`)}case"Identifier":if(ve.name!=="Infinity"&&ve.name!=="NaN"&&ve.name!=="undefined")throw kh(ve,`Identifier '${ve.name}'`);return;case"TemplateLiteral":if(uL(ve.expressions))throw kh(ve.expressions[0],"'TemplateLiteral' with expression");for(let Ge of ve.quasis)Ao(Ge);return;case"NullLiteral":case"BooleanLiteral":case"NumericLiteral":case"StringLiteral":case"TemplateElement":return;default:throw kh(ve,`'${ve.type}'`)}}var Hx=Ot({parse:ve=>Th(ve),hasPragma:()=>!0,hasIgnorePragma:()=>!1}),dL=Ot(ve=>Th(ve)),$x=Ot(ve=>Th(ve,{allowEmpty:!0})),Zm=Ot({parse:ve=>Th(ve,{allowComments:!1}),astFormat:"estree-json"}),hL={...b,...Pd};return h(g)})})(uce)),uce.exports}var i9e=eXt();const tXt=Pv({__proto__:null,default:u0(i9e)},[i9e]);/*!-----------------------------------------------------------------------------
|
|
1395
|
-
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
1396
|
-
* Version: 0.52.2(404545bded1df6ffa41ea0af4e8ddb219018c6c1)
|
|
1397
|
-
* Released under the MIT license
|
|
1398
|
-
* https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
|
|
1399
|
-
*-----------------------------------------------------------------------------*/var iXt={comments:{lineComment:"#"},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"""',close:'"""',notIn:["string","comment"]},{open:'"',close:'"',notIn:["string","comment"]}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"""',close:'"""'},{open:'"',close:'"'}],folding:{offSide:!0}},nXt={defaultToken:"invalid",tokenPostfix:".gql",keywords:["null","true","false","query","mutation","subscription","extend","schema","directive","scalar","type","interface","union","enum","input","implements","fragment","on"],typeKeywords:["Int","Float","String","Boolean","ID"],directiveLocations:["SCHEMA","SCALAR","OBJECT","FIELD_DEFINITION","ARGUMENT_DEFINITION","INTERFACE","UNION","ENUM","ENUM_VALUE","INPUT_OBJECT","INPUT_FIELD_DEFINITION","QUERY","MUTATION","SUBSCRIPTION","FIELD","FRAGMENT_DEFINITION","FRAGMENT_SPREAD","INLINE_FRAGMENT","VARIABLE_DEFINITION"],operators:["=","!","?",":","&","|"],symbols:/[=!?:&|]+/,escapes:/\\(?:["\\\/bfnrt]|u[0-9A-Fa-f]{4})/,tokenizer:{root:[[/[a-z_][\w$]*/,{cases:{"@keywords":"keyword","@default":"key.identifier"}}],[/[$][\w$]*/,{cases:{"@keywords":"keyword","@default":"argument.identifier"}}],[/[A-Z][\w\$]*/,{cases:{"@typeKeywords":"keyword","@default":"type.identifier"}}],{include:"@whitespace"},[/[{}()\[\]]/,"@brackets"],[/@symbols/,{cases:{"@operators":"operator","@default":""}}],[/@\s*[a-zA-Z_\$][\w\$]*/,{token:"annotation",log:"annotation token: $0"}],[/\d*\.\d+([eE][\-+]?\d+)?/,"number.float"],[/0[xX][0-9a-fA-F]+/,"number.hex"],[/\d+/,"number"],[/[;,.]/,"delimiter"],[/"""/,{token:"string",next:"@mlstring",nextEmbedded:"markdown"}],[/"([^"\\]|\\.)*$/,"string.invalid"],[/"/,{token:"string.quote",bracket:"@open",next:"@string"}]],mlstring:[[/[^"]+/,"string"],['"""',{token:"string",next:"@pop",nextEmbedded:"@pop"}]],string:[[/[^\\"]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/"/,{token:"string.quote",bracket:"@close",next:"@pop"}]],whitespace:[[/[ \t\r\n]+/,""],[/#.*$/,"comment"]]}};const sXt=Object.freeze(Object.defineProperty({__proto__:null,conf:iXt,language:nXt},Symbol.toStringTag,{value:"Module"}));/*!-----------------------------------------------------------------------------
|
|
1400
|
-
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
1401
|
-
* Version: 0.52.2(404545bded1df6ffa41ea0af4e8ddb219018c6c1)
|
|
1402
|
-
* Released under the MIT license
|
|
1403
|
-
* https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
|
|
1404
|
-
*-----------------------------------------------------------------------------*/var rXt=Object.defineProperty,oXt=Object.getOwnPropertyDescriptor,aXt=Object.getOwnPropertyNames,lXt=Object.prototype.hasOwnProperty,uXt=(i,e,t,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of aXt(e))!lXt.call(i,s)&&s!==t&&rXt(i,s,{get:()=>e[s],enumerable:!(n=oXt(e,s))||n.enumerable});return i},cXt=(i,e,t)=>(uXt(i,e,"default"),t),Gn={};cXt(Gn,Xse);var dXt=120*1e3,n9e=class{constructor(e){this._defaults=e,this._worker=null,this._client=null,this._idleCheckInterval=window.setInterval(()=>this._checkIfIdle(),30*1e3),this._lastUsedTime=0,this._configChangeListener=this._defaults.onDidChange(()=>this._stopWorker())}_stopWorker(){this._worker&&(this._worker.dispose(),this._worker=null),this._client=null}dispose(){clearInterval(this._idleCheckInterval),this._configChangeListener.dispose(),this._stopWorker()}_checkIfIdle(){if(!this._worker)return;Date.now()-this._lastUsedTime>dXt&&this._stopWorker()}_getClient(){return this._lastUsedTime=Date.now(),this._client||(this._worker=Gn.editor.createWebWorker({moduleId:"vs/language/json/jsonWorker",label:this._defaults.languageId,createData:{languageSettings:this._defaults.diagnosticsOptions,languageId:this._defaults.languageId,enableSchemaRequest:this._defaults.diagnosticsOptions.enableSchemaRequest}}),this._client=this._worker.getProxy()),this._client}getLanguageServiceWorker(...e){let t;return this._getClient().then(n=>{t=n}).then(n=>{if(this._worker)return this._worker.withSyncedResources(e)}).then(n=>t)}},s9e;(function(i){function e(t){return typeof t=="string"}i.is=e})(s9e||(s9e={}));var cce;(function(i){function e(t){return typeof t=="string"}i.is=e})(cce||(cce={}));var r9e;(function(i){i.MIN_VALUE=-2147483648,i.MAX_VALUE=2147483647;function e(t){return typeof t=="number"&&i.MIN_VALUE<=t&&t<=i.MAX_VALUE}i.is=e})(r9e||(r9e={}));var PW;(function(i){i.MIN_VALUE=0,i.MAX_VALUE=2147483647;function e(t){return typeof t=="number"&&i.MIN_VALUE<=t&&t<=i.MAX_VALUE}i.is=e})(PW||(PW={}));var tg;(function(i){function e(n,s){return n===Number.MAX_VALUE&&(n=PW.MAX_VALUE),s===Number.MAX_VALUE&&(s=PW.MAX_VALUE),{line:n,character:s}}i.create=e;function t(n){let s=n;return Ze.objectLiteral(s)&&Ze.uinteger(s.line)&&Ze.uinteger(s.character)}i.is=t})(tg||(tg={}));var Sa;(function(i){function e(n,s,r,o){if(Ze.uinteger(n)&&Ze.uinteger(s)&&Ze.uinteger(r)&&Ze.uinteger(o))return{start:tg.create(n,s),end:tg.create(r,o)};if(tg.is(n)&&tg.is(s))return{start:n,end:s};throw new Error(`Range#create called with invalid arguments[${n}, ${s}, ${r}, ${o}]`)}i.create=e;function t(n){let s=n;return Ze.objectLiteral(s)&&tg.is(s.start)&&tg.is(s.end)}i.is=t})(Sa||(Sa={}));var MW;(function(i){function e(n,s){return{uri:n,range:s}}i.create=e;function t(n){let s=n;return Ze.objectLiteral(s)&&Sa.is(s.range)&&(Ze.string(s.uri)||Ze.undefined(s.uri))}i.is=t})(MW||(MW={}));var o9e;(function(i){function e(n,s,r,o){return{targetUri:n,targetRange:s,targetSelectionRange:r,originSelectionRange:o}}i.create=e;function t(n){let s=n;return Ze.objectLiteral(s)&&Sa.is(s.targetRange)&&Ze.string(s.targetUri)&&Sa.is(s.targetSelectionRange)&&(Sa.is(s.originSelectionRange)||Ze.undefined(s.originSelectionRange))}i.is=t})(o9e||(o9e={}));var dce;(function(i){function e(n,s,r,o){return{red:n,green:s,blue:r,alpha:o}}i.create=e;function t(n){const s=n;return Ze.objectLiteral(s)&&Ze.numberRange(s.red,0,1)&&Ze.numberRange(s.green,0,1)&&Ze.numberRange(s.blue,0,1)&&Ze.numberRange(s.alpha,0,1)}i.is=t})(dce||(dce={}));var a9e;(function(i){function e(n,s){return{range:n,color:s}}i.create=e;function t(n){const s=n;return Ze.objectLiteral(s)&&Sa.is(s.range)&&dce.is(s.color)}i.is=t})(a9e||(a9e={}));var l9e;(function(i){function e(n,s,r){return{label:n,textEdit:s,additionalTextEdits:r}}i.create=e;function t(n){const s=n;return Ze.objectLiteral(s)&&Ze.string(s.label)&&(Ze.undefined(s.textEdit)||Ak.is(s))&&(Ze.undefined(s.additionalTextEdits)||Ze.typedArray(s.additionalTextEdits,Ak.is))}i.is=t})(l9e||(l9e={}));var tO;(function(i){i.Comment="comment",i.Imports="imports",i.Region="region"})(tO||(tO={}));var u9e;(function(i){function e(n,s,r,o,a,l){const u={startLine:n,endLine:s};return Ze.defined(r)&&(u.startCharacter=r),Ze.defined(o)&&(u.endCharacter=o),Ze.defined(a)&&(u.kind=a),Ze.defined(l)&&(u.collapsedText=l),u}i.create=e;function t(n){const s=n;return Ze.objectLiteral(s)&&Ze.uinteger(s.startLine)&&Ze.uinteger(s.startLine)&&(Ze.undefined(s.startCharacter)||Ze.uinteger(s.startCharacter))&&(Ze.undefined(s.endCharacter)||Ze.uinteger(s.endCharacter))&&(Ze.undefined(s.kind)||Ze.string(s.kind))}i.is=t})(u9e||(u9e={}));var hce;(function(i){function e(n,s){return{location:n,message:s}}i.create=e;function t(n){let s=n;return Ze.defined(s)&&MW.is(s.location)&&Ze.string(s.message)}i.is=t})(hce||(hce={}));var kk;(function(i){i.Error=1,i.Warning=2,i.Information=3,i.Hint=4})(kk||(kk={}));var c9e;(function(i){i.Unnecessary=1,i.Deprecated=2})(c9e||(c9e={}));var d9e;(function(i){function e(t){const n=t;return Ze.objectLiteral(n)&&Ze.string(n.href)}i.is=e})(d9e||(d9e={}));var RW;(function(i){function e(n,s,r,o,a,l){let u={range:n,message:s};return Ze.defined(r)&&(u.severity=r),Ze.defined(o)&&(u.code=o),Ze.defined(a)&&(u.source=a),Ze.defined(l)&&(u.relatedInformation=l),u}i.create=e;function t(n){var s;let r=n;return Ze.defined(r)&&Sa.is(r.range)&&Ze.string(r.message)&&(Ze.number(r.severity)||Ze.undefined(r.severity))&&(Ze.integer(r.code)||Ze.string(r.code)||Ze.undefined(r.code))&&(Ze.undefined(r.codeDescription)||Ze.string((s=r.codeDescription)===null||s===void 0?void 0:s.href))&&(Ze.string(r.source)||Ze.undefined(r.source))&&(Ze.undefined(r.relatedInformation)||Ze.typedArray(r.relatedInformation,hce.is))}i.is=t})(RW||(RW={}));var Lk;(function(i){function e(n,s,...r){let o={title:n,command:s};return Ze.defined(r)&&r.length>0&&(o.arguments=r),o}i.create=e;function t(n){let s=n;return Ze.defined(s)&&Ze.string(s.title)&&Ze.string(s.command)}i.is=t})(Lk||(Lk={}));var Ak;(function(i){function e(r,o){return{range:r,newText:o}}i.replace=e;function t(r,o){return{range:{start:r,end:r},newText:o}}i.insert=t;function n(r){return{range:r,newText:""}}i.del=n;function s(r){const o=r;return Ze.objectLiteral(o)&&Ze.string(o.newText)&&Sa.is(o.range)}i.is=s})(Ak||(Ak={}));var fce;(function(i){function e(n,s,r){const o={label:n};return s!==void 0&&(o.needsConfirmation=s),r!==void 0&&(o.description=r),o}i.create=e;function t(n){const s=n;return Ze.objectLiteral(s)&&Ze.string(s.label)&&(Ze.boolean(s.needsConfirmation)||s.needsConfirmation===void 0)&&(Ze.string(s.description)||s.description===void 0)}i.is=t})(fce||(fce={}));var Nk;(function(i){function e(t){const n=t;return Ze.string(n)}i.is=e})(Nk||(Nk={}));var h9e;(function(i){function e(r,o,a){return{range:r,newText:o,annotationId:a}}i.replace=e;function t(r,o,a){return{range:{start:r,end:r},newText:o,annotationId:a}}i.insert=t;function n(r,o){return{range:r,newText:"",annotationId:o}}i.del=n;function s(r){const o=r;return Ak.is(o)&&(fce.is(o.annotationId)||Nk.is(o.annotationId))}i.is=s})(h9e||(h9e={}));var pce;(function(i){function e(n,s){return{textDocument:n,edits:s}}i.create=e;function t(n){let s=n;return Ze.defined(s)&&yce.is(s.textDocument)&&Array.isArray(s.edits)}i.is=t})(pce||(pce={}));var gce;(function(i){function e(n,s,r){let o={kind:"create",uri:n};return s!==void 0&&(s.overwrite!==void 0||s.ignoreIfExists!==void 0)&&(o.options=s),r!==void 0&&(o.annotationId=r),o}i.create=e;function t(n){let s=n;return s&&s.kind==="create"&&Ze.string(s.uri)&&(s.options===void 0||(s.options.overwrite===void 0||Ze.boolean(s.options.overwrite))&&(s.options.ignoreIfExists===void 0||Ze.boolean(s.options.ignoreIfExists)))&&(s.annotationId===void 0||Nk.is(s.annotationId))}i.is=t})(gce||(gce={}));var mce;(function(i){function e(n,s,r,o){let a={kind:"rename",oldUri:n,newUri:s};return r!==void 0&&(r.overwrite!==void 0||r.ignoreIfExists!==void 0)&&(a.options=r),o!==void 0&&(a.annotationId=o),a}i.create=e;function t(n){let s=n;return s&&s.kind==="rename"&&Ze.string(s.oldUri)&&Ze.string(s.newUri)&&(s.options===void 0||(s.options.overwrite===void 0||Ze.boolean(s.options.overwrite))&&(s.options.ignoreIfExists===void 0||Ze.boolean(s.options.ignoreIfExists)))&&(s.annotationId===void 0||Nk.is(s.annotationId))}i.is=t})(mce||(mce={}));var _ce;(function(i){function e(n,s,r){let o={kind:"delete",uri:n};return s!==void 0&&(s.recursive!==void 0||s.ignoreIfNotExists!==void 0)&&(o.options=s),r!==void 0&&(o.annotationId=r),o}i.create=e;function t(n){let s=n;return s&&s.kind==="delete"&&Ze.string(s.uri)&&(s.options===void 0||(s.options.recursive===void 0||Ze.boolean(s.options.recursive))&&(s.options.ignoreIfNotExists===void 0||Ze.boolean(s.options.ignoreIfNotExists)))&&(s.annotationId===void 0||Nk.is(s.annotationId))}i.is=t})(_ce||(_ce={}));var bce;(function(i){function e(t){let n=t;return n&&(n.changes!==void 0||n.documentChanges!==void 0)&&(n.documentChanges===void 0||n.documentChanges.every(s=>Ze.string(s.kind)?gce.is(s)||mce.is(s)||_ce.is(s):pce.is(s)))}i.is=e})(bce||(bce={}));var f9e;(function(i){function e(n){return{uri:n}}i.create=e;function t(n){let s=n;return Ze.defined(s)&&Ze.string(s.uri)}i.is=t})(f9e||(f9e={}));var p9e;(function(i){function e(n,s){return{uri:n,version:s}}i.create=e;function t(n){let s=n;return Ze.defined(s)&&Ze.string(s.uri)&&Ze.integer(s.version)}i.is=t})(p9e||(p9e={}));var yce;(function(i){function e(n,s){return{uri:n,version:s}}i.create=e;function t(n){let s=n;return Ze.defined(s)&&Ze.string(s.uri)&&(s.version===null||Ze.integer(s.version))}i.is=t})(yce||(yce={}));var g9e;(function(i){function e(n,s,r,o){return{uri:n,languageId:s,version:r,text:o}}i.create=e;function t(n){let s=n;return Ze.defined(s)&&Ze.string(s.uri)&&Ze.string(s.languageId)&&Ze.integer(s.version)&&Ze.string(s.text)}i.is=t})(g9e||(g9e={}));var vce;(function(i){i.PlainText="plaintext",i.Markdown="markdown";function e(t){const n=t;return n===i.PlainText||n===i.Markdown}i.is=e})(vce||(vce={}));var iO;(function(i){function e(t){const n=t;return Ze.objectLiteral(t)&&vce.is(n.kind)&&Ze.string(n.value)}i.is=e})(iO||(iO={}));var ja;(function(i){i.Text=1,i.Method=2,i.Function=3,i.Constructor=4,i.Field=5,i.Variable=6,i.Class=7,i.Interface=8,i.Module=9,i.Property=10,i.Unit=11,i.Value=12,i.Enum=13,i.Keyword=14,i.Snippet=15,i.Color=16,i.File=17,i.Reference=18,i.Folder=19,i.EnumMember=20,i.Constant=21,i.Struct=22,i.Event=23,i.Operator=24,i.TypeParameter=25})(ja||(ja={}));var Cce;(function(i){i.PlainText=1,i.Snippet=2})(Cce||(Cce={}));var m9e;(function(i){i.Deprecated=1})(m9e||(m9e={}));var _9e;(function(i){function e(n,s,r){return{newText:n,insert:s,replace:r}}i.create=e;function t(n){const s=n;return s&&Ze.string(s.newText)&&Sa.is(s.insert)&&Sa.is(s.replace)}i.is=t})(_9e||(_9e={}));var b9e;(function(i){i.asIs=1,i.adjustIndentation=2})(b9e||(b9e={}));var y9e;(function(i){function e(t){const n=t;return n&&(Ze.string(n.detail)||n.detail===void 0)&&(Ze.string(n.description)||n.description===void 0)}i.is=e})(y9e||(y9e={}));var v9e;(function(i){function e(t){return{label:t}}i.create=e})(v9e||(v9e={}));var C9e;(function(i){function e(t,n){return{items:t||[],isIncomplete:!!n}}i.create=e})(C9e||(C9e={}));var OW;(function(i){function e(n){return n.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}i.fromPlainText=e;function t(n){const s=n;return Ze.string(s)||Ze.objectLiteral(s)&&Ze.string(s.language)&&Ze.string(s.value)}i.is=t})(OW||(OW={}));var w9e;(function(i){function e(t){let n=t;return!!n&&Ze.objectLiteral(n)&&(iO.is(n.contents)||OW.is(n.contents)||Ze.typedArray(n.contents,OW.is))&&(t.range===void 0||Sa.is(t.range))}i.is=e})(w9e||(w9e={}));var S9e;(function(i){function e(t,n){return n?{label:t,documentation:n}:{label:t}}i.create=e})(S9e||(S9e={}));var x9e;(function(i){function e(t,n,...s){let r={label:t};return Ze.defined(n)&&(r.documentation=n),Ze.defined(s)?r.parameters=s:r.parameters=[],r}i.create=e})(x9e||(x9e={}));var nO;(function(i){i.Text=1,i.Read=2,i.Write=3})(nO||(nO={}));var D9e;(function(i){function e(t,n){let s={range:t};return Ze.number(n)&&(s.kind=n),s}i.create=e})(D9e||(D9e={}));var qa;(function(i){i.File=1,i.Module=2,i.Namespace=3,i.Package=4,i.Class=5,i.Method=6,i.Property=7,i.Field=8,i.Constructor=9,i.Enum=10,i.Interface=11,i.Function=12,i.Variable=13,i.Constant=14,i.String=15,i.Number=16,i.Boolean=17,i.Array=18,i.Object=19,i.Key=20,i.Null=21,i.EnumMember=22,i.Struct=23,i.Event=24,i.Operator=25,i.TypeParameter=26})(qa||(qa={}));var E9e;(function(i){i.Deprecated=1})(E9e||(E9e={}));var T9e;(function(i){function e(t,n,s,r,o){let a={name:t,kind:n,location:{uri:r,range:s}};return o&&(a.containerName=o),a}i.create=e})(T9e||(T9e={}));var k9e;(function(i){function e(t,n,s,r){return r!==void 0?{name:t,kind:n,location:{uri:s,range:r}}:{name:t,kind:n,location:{uri:s}}}i.create=e})(k9e||(k9e={}));var L9e;(function(i){function e(n,s,r,o,a,l){let u={name:n,detail:s,kind:r,range:o,selectionRange:a};return l!==void 0&&(u.children=l),u}i.create=e;function t(n){let s=n;return s&&Ze.string(s.name)&&Ze.number(s.kind)&&Sa.is(s.range)&&Sa.is(s.selectionRange)&&(s.detail===void 0||Ze.string(s.detail))&&(s.deprecated===void 0||Ze.boolean(s.deprecated))&&(s.children===void 0||Array.isArray(s.children))&&(s.tags===void 0||Array.isArray(s.tags))}i.is=t})(L9e||(L9e={}));var A9e;(function(i){i.Empty="",i.QuickFix="quickfix",i.Refactor="refactor",i.RefactorExtract="refactor.extract",i.RefactorInline="refactor.inline",i.RefactorRewrite="refactor.rewrite",i.Source="source",i.SourceOrganizeImports="source.organizeImports",i.SourceFixAll="source.fixAll"})(A9e||(A9e={}));var FW;(function(i){i.Invoked=1,i.Automatic=2})(FW||(FW={}));var N9e;(function(i){function e(n,s,r){let o={diagnostics:n};return s!=null&&(o.only=s),r!=null&&(o.triggerKind=r),o}i.create=e;function t(n){let s=n;return Ze.defined(s)&&Ze.typedArray(s.diagnostics,RW.is)&&(s.only===void 0||Ze.typedArray(s.only,Ze.string))&&(s.triggerKind===void 0||s.triggerKind===FW.Invoked||s.triggerKind===FW.Automatic)}i.is=t})(N9e||(N9e={}));var I9e;(function(i){function e(n,s,r){let o={title:n},a=!0;return typeof s=="string"?(a=!1,o.kind=s):Lk.is(s)?o.command=s:o.edit=s,a&&r!==void 0&&(o.kind=r),o}i.create=e;function t(n){let s=n;return s&&Ze.string(s.title)&&(s.diagnostics===void 0||Ze.typedArray(s.diagnostics,RW.is))&&(s.kind===void 0||Ze.string(s.kind))&&(s.edit!==void 0||s.command!==void 0)&&(s.command===void 0||Lk.is(s.command))&&(s.isPreferred===void 0||Ze.boolean(s.isPreferred))&&(s.edit===void 0||bce.is(s.edit))}i.is=t})(I9e||(I9e={}));var P9e;(function(i){function e(n,s){let r={range:n};return Ze.defined(s)&&(r.data=s),r}i.create=e;function t(n){let s=n;return Ze.defined(s)&&Sa.is(s.range)&&(Ze.undefined(s.command)||Lk.is(s.command))}i.is=t})(P9e||(P9e={}));var M9e;(function(i){function e(n,s){return{tabSize:n,insertSpaces:s}}i.create=e;function t(n){let s=n;return Ze.defined(s)&&Ze.uinteger(s.tabSize)&&Ze.boolean(s.insertSpaces)}i.is=t})(M9e||(M9e={}));var R9e;(function(i){function e(n,s,r){return{range:n,target:s,data:r}}i.create=e;function t(n){let s=n;return Ze.defined(s)&&Sa.is(s.range)&&(Ze.undefined(s.target)||Ze.string(s.target))}i.is=t})(R9e||(R9e={}));var O9e;(function(i){function e(n,s){return{range:n,parent:s}}i.create=e;function t(n){let s=n;return Ze.objectLiteral(s)&&Sa.is(s.range)&&(s.parent===void 0||i.is(s.parent))}i.is=t})(O9e||(O9e={}));var F9e;(function(i){i.namespace="namespace",i.type="type",i.class="class",i.enum="enum",i.interface="interface",i.struct="struct",i.typeParameter="typeParameter",i.parameter="parameter",i.variable="variable",i.property="property",i.enumMember="enumMember",i.event="event",i.function="function",i.method="method",i.macro="macro",i.keyword="keyword",i.modifier="modifier",i.comment="comment",i.string="string",i.number="number",i.regexp="regexp",i.operator="operator",i.decorator="decorator"})(F9e||(F9e={}));var B9e;(function(i){i.declaration="declaration",i.definition="definition",i.readonly="readonly",i.static="static",i.deprecated="deprecated",i.abstract="abstract",i.async="async",i.modification="modification",i.documentation="documentation",i.defaultLibrary="defaultLibrary"})(B9e||(B9e={}));var V9e;(function(i){function e(t){const n=t;return Ze.objectLiteral(n)&&(n.resultId===void 0||typeof n.resultId=="string")&&Array.isArray(n.data)&&(n.data.length===0||typeof n.data[0]=="number")}i.is=e})(V9e||(V9e={}));var W9e;(function(i){function e(n,s){return{range:n,text:s}}i.create=e;function t(n){const s=n;return s!=null&&Sa.is(s.range)&&Ze.string(s.text)}i.is=t})(W9e||(W9e={}));var H9e;(function(i){function e(n,s,r){return{range:n,variableName:s,caseSensitiveLookup:r}}i.create=e;function t(n){const s=n;return s!=null&&Sa.is(s.range)&&Ze.boolean(s.caseSensitiveLookup)&&(Ze.string(s.variableName)||s.variableName===void 0)}i.is=t})(H9e||(H9e={}));var $9e;(function(i){function e(n,s){return{range:n,expression:s}}i.create=e;function t(n){const s=n;return s!=null&&Sa.is(s.range)&&(Ze.string(s.expression)||s.expression===void 0)}i.is=t})($9e||($9e={}));var U9e;(function(i){function e(n,s){return{frameId:n,stoppedLocation:s}}i.create=e;function t(n){const s=n;return Ze.defined(s)&&Sa.is(n.stoppedLocation)}i.is=t})(U9e||(U9e={}));var wce;(function(i){i.Type=1,i.Parameter=2;function e(t){return t===1||t===2}i.is=e})(wce||(wce={}));var Sce;(function(i){function e(n){return{value:n}}i.create=e;function t(n){const s=n;return Ze.objectLiteral(s)&&(s.tooltip===void 0||Ze.string(s.tooltip)||iO.is(s.tooltip))&&(s.location===void 0||MW.is(s.location))&&(s.command===void 0||Lk.is(s.command))}i.is=t})(Sce||(Sce={}));var z9e;(function(i){function e(n,s,r){const o={position:n,label:s};return r!==void 0&&(o.kind=r),o}i.create=e;function t(n){const s=n;return Ze.objectLiteral(s)&&tg.is(s.position)&&(Ze.string(s.label)||Ze.typedArray(s.label,Sce.is))&&(s.kind===void 0||wce.is(s.kind))&&s.textEdits===void 0||Ze.typedArray(s.textEdits,Ak.is)&&(s.tooltip===void 0||Ze.string(s.tooltip)||iO.is(s.tooltip))&&(s.paddingLeft===void 0||Ze.boolean(s.paddingLeft))&&(s.paddingRight===void 0||Ze.boolean(s.paddingRight))}i.is=t})(z9e||(z9e={}));var j9e;(function(i){function e(t){return{kind:"snippet",value:t}}i.createSnippet=e})(j9e||(j9e={}));var q9e;(function(i){function e(t,n,s,r){return{insertText:t,filterText:n,range:s,command:r}}i.create=e})(q9e||(q9e={}));var G9e;(function(i){function e(t){return{items:t}}i.create=e})(G9e||(G9e={}));var K9e;(function(i){i.Invoked=0,i.Automatic=1})(K9e||(K9e={}));var Y9e;(function(i){function e(t,n){return{range:t,text:n}}i.create=e})(Y9e||(Y9e={}));var X9e;(function(i){function e(t,n){return{triggerKind:t,selectedCompletionInfo:n}}i.create=e})(X9e||(X9e={}));var Q9e;(function(i){function e(t){const n=t;return Ze.objectLiteral(n)&&cce.is(n.uri)&&Ze.string(n.name)}i.is=e})(Q9e||(Q9e={}));var Z9e;(function(i){function e(r,o,a,l){return new hXt(r,o,a,l)}i.create=e;function t(r){let o=r;return!!(Ze.defined(o)&&Ze.string(o.uri)&&(Ze.undefined(o.languageId)||Ze.string(o.languageId))&&Ze.uinteger(o.lineCount)&&Ze.func(o.getText)&&Ze.func(o.positionAt)&&Ze.func(o.offsetAt))}i.is=t;function n(r,o){let a=r.getText(),l=s(o,(c,d)=>{let h=c.range.start.line-d.range.start.line;return h===0?c.range.start.character-d.range.start.character:h}),u=a.length;for(let c=l.length-1;c>=0;c--){let d=l[c],h=r.offsetAt(d.range.start),f=r.offsetAt(d.range.end);if(f<=u)a=a.substring(0,h)+d.newText+a.substring(f,a.length);else throw new Error("Overlapping edit");u=h}return a}i.applyEdits=n;function s(r,o){if(r.length<=1)return r;const a=r.length/2|0,l=r.slice(0,a),u=r.slice(a);s(l,o),s(u,o);let c=0,d=0,h=0;for(;c<l.length&&d<u.length;)o(l[c],u[d])<=0?r[h++]=l[c++]:r[h++]=u[d++];for(;c<l.length;)r[h++]=l[c++];for(;d<u.length;)r[h++]=u[d++];return r}})(Z9e||(Z9e={}));var hXt=class{constructor(i,e,t,n){this._uri=i,this._languageId=e,this._version=t,this._content=n,this._lineOffsets=void 0}get uri(){return this._uri}get languageId(){return this._languageId}get version(){return this._version}getText(i){if(i){let e=this.offsetAt(i.start),t=this.offsetAt(i.end);return this._content.substring(e,t)}return this._content}update(i,e){this._content=i.text,this._version=e,this._lineOffsets=void 0}getLineOffsets(){if(this._lineOffsets===void 0){let i=[],e=this._content,t=!0;for(let n=0;n<e.length;n++){t&&(i.push(n),t=!1);let s=e.charAt(n);t=s==="\r"||s===`
|
|
1282
|
+
`;ve=Kn(!1,ve.replace(ji,"").replace(ir,""),pe,"$1");let St="";for(;St!==ve;)St=ve,ve=Kn(!1,ve,re,`${Ge}$1 $2${Ge}`);ve=ve.replace(ti,"").trimEnd();let It=Object.create(null),ei=Kn(!1,ve,ue,"").replace(ti,"").trimEnd(),ln;for(;ln=ue.exec(ve);){let as=Kn(!1,ln[2],es,"");if(typeof It[ln[1]]=="string"||Array.isArray(It[ln[1]])){let mo=It[ln[1]];It[ln[1]]=[...Se,...Array.isArray(mo)?mo:[mo],as]}else It[ln[1]]=as}return{comments:ei,pragmas:It}}var ot=["noformat","noprettier"],Wt=["format","prettier"];function Qt(ve){let Ge=oe(ve);Ge&&(ve=ve.slice(Ge.length+1));let St=Ne(ve),{pragmas:It,comments:ei}=Ke(St);return{shebang:Ge,text:ve,pragmas:It,comments:ei}}function hi(ve){let{pragmas:Ge}=Qt(ve);return Wt.some(St=>Object.prototype.hasOwnProperty.call(Ge,St))}function si(ve){let{pragmas:Ge}=Qt(ve);return ot.some(St=>Object.prototype.hasOwnProperty.call(Ge,St))}function wi(ve){return ve=typeof ve=="function"?{parse:ve}:ve,{astFormat:"estree",hasPragma:hi,hasIgnorePragma:si,locStart:le,locEnd:J,...ve}}var Ot=wi,Cn="module",Fs="script";function to(ve){if(typeof ve=="string"){if(ve=ve.toLowerCase(),/\.(?:mjs|mts)$/iu.test(ve))return Cn;if(/\.(?:cjs|cts)$/iu.test(ve))return Fs}}function vu(ve,Ge){let{type:St="JsExpressionRoot",rootMarker:It,text:ei}=Ge,{tokens:ln,comments:as}=ve;return delete ve.tokens,delete ve.comments,{tokens:ln,comments:as,type:St,node:ve,range:[0,ei.length],rootMarker:It}}var Zt=vu,Pe=ve=>Ot(Eh(ve)),Bt={sourceType:Cn,allowImportExportEverywhere:!0,allowReturnOutsideFunction:!0,allowNewTargetOutsideFunction:!0,allowSuperOutsideMethod:!0,allowUndeclaredExports:!0,errorRecovery:!0,createParenthesizedExpressions:!0,createImportExpressions:!0,attachComment:!1,plugins:["doExpressions","exportDefaultFrom","functionBind","functionSent","throwExpressions","partialApplication","decorators","moduleBlocks","asyncDoExpressions","destructuringPrivate","decoratorAutoAccessors","explicitResourceManagement","sourcePhaseImports","deferredImportEvaluation",["optionalChainingAssign",{version:"2023-07"}]],tokens:!1,ranges:!1},He="v8intrinsic",fs=[["pipelineOperator",{proposal:"hack",topicToken:"%"}],["pipelineOperator",{proposal:"fsharp"}]],Gs=(ve,Ge=Bt)=>({...Ge,plugins:[...Ge.plugins,...ve]}),nr=/@(?:no)?flow\b/u;function rs(ve,Ge){if(Ge!=null&&Ge.endsWith(".js.flow"))return!0;let St=oe(ve);St&&(ve=ve.slice(St.length));let It=q(ve,0);return It!==!1&&(ve=ve.slice(0,It)),nr.test(ve)}function Wl(ve,Ge,St){let It=ve(Ge,St),ei=It.errors.find(ln=>!sr.has(ln.reasonCode));if(ei)throw ei;return It}function Eh({isExpression:ve=!1,optionsCombinations:Ge}){return(St,It={})=>{let{filepath:ei}=It;if(typeof ei!="string"&&(ei=void 0),(It.parser==="babel"||It.parser==="__babel_estree")&&rs(St,ei))return It.parser="babel-flow",ob.parse(St,It);let ln=Ge,as=It.__babelSourceType??to(ei);as===Fs&&(ln=ln.map(Mr=>({...Mr,sourceType:as})));let mo=/%[A-Z]/u.test(St);St.includes("|>")?ln=(mo?[...fs,He]:fs).flatMap(Mr=>ln.map(Md=>Gs([Mr],Md))):mo&&(ln=ln.map(Mr=>Gs([He],Mr)));let wn=ve?y.parseExpression:y.parse,Cs;try{Cs=Z(ln.map(Mr=>()=>Wl(wn,St,Mr)))}catch({errors:[Mr]}){throw qs(Mr)}return ve&&(Cs=Zt(Cs,{text:St,rootMarker:It.rootMarker})),Wn(Cs,{text:St})}}var sr=new Set(["StrictNumericEscape","StrictWith","StrictOctalLiteral","StrictDelete","StrictEvalArguments","StrictEvalArgumentsBinding","StrictFunction","ForInOfLoopInitializer","EmptyTypeArguments","EmptyTypeParameters","ConstructorHasTypeParameters","UnsupportedParameterPropertyKind","DecoratorExportClass","ParamDupe","InvalidDecimal","RestTrailingComma","UnsupportedParameterDecorator","UnterminatedJsxContent","UnexpectedReservedWord","ModuleAttributesWithDuplicateKeys","InvalidEscapeSequenceTemplate","NonAbstractClassHasAbstractMethod","OptionalTypeBeforeRequired","PatternIsOptional","OptionalBindingPattern","DeclareClassFieldHasInitializer","TypeImportCannotSpecifyDefaultAndNamed","ConstructorClassField","VarRedeclaration","InvalidPrivateFieldResolution","DuplicateExport","ImportAttributesUseAssert","DeclarationMissingInitializer"]),rr=[Gs(["jsx"])],rb=Pe({optionsCombinations:rr}),Vx=Pe({optionsCombinations:[Gs(["jsx","typescript"]),Gs(["typescript"])]}),Wx=Pe({isExpression:!0,optionsCombinations:[Gs(["jsx"])]}),Jy=Pe({isExpression:!0,optionsCombinations:[Gs(["typescript"])]}),ob=Pe({optionsCombinations:[Gs(["jsx",["flow",{all:!0}],"flowComments"])]}),ev=Pe({optionsCombinations:rr.map(ve=>Gs(["estree"],ve))}),Pd={};u(Pd,{json:()=>Hx,"json-stringify":()=>Zm,json5:()=>dL,jsonc:()=>$x});var Hl=d(f());function Qm(ve){return Array.isArray(ve)&&ve.length>0}var uL=Qm,tv={tokens:!1,ranges:!1,attachComment:!1,createParenthesizedExpressions:!0};function cL(ve){let Ge=(0,Hl.parse)(ve,tv),{program:St}=Ge;if(St.body.length===0&&St.directives.length===0&&!St.interpreter)return Ge}function Th(ve,Ge={}){let{allowComments:St=!0,allowEmpty:It=!1}=Ge,ei;try{ei=(0,Hl.parseExpression)(ve,tv)}catch(ln){if(It&&ln.code==="BABEL_PARSER_SYNTAX_ERROR"&&ln.reasonCode==="ParseExpressionEmptyInput")try{ei=cL(ve)}catch{}if(!ei)throw qs(ln)}if(!St&&uL(ei.comments))throw kh(ei.comments[0],"Comment");return ei=Zt(ei,{type:"JsonRoot",text:ve}),ei.node.type==="File"?delete ei.node:Ao(ei.node),ei}function kh(ve,Ge){let[St,It]=[ve.loc.start,ve.loc.end].map(({line:ei,column:ln})=>({line:ei,column:ln+1}));return hs(`${Ge} is not allowed in JSON.`,{loc:{start:St,end:It}})}function Ao(ve){switch(ve.type){case"ArrayExpression":for(let Ge of ve.elements)Ge!==null&&Ao(Ge);return;case"ObjectExpression":for(let Ge of ve.properties)Ao(Ge);return;case"ObjectProperty":if(ve.computed)throw kh(ve.key,"Computed key");if(ve.shorthand)throw kh(ve.key,"Shorthand property");ve.key.type!=="Identifier"&&Ao(ve.key),Ao(ve.value);return;case"UnaryExpression":{let{operator:Ge,argument:St}=ve;if(Ge!=="+"&&Ge!=="-")throw kh(ve,`Operator '${ve.operator}'`);if(St.type==="NumericLiteral"||St.type==="Identifier"&&(St.name==="Infinity"||St.name==="NaN"))return;throw kh(St,`Operator '${Ge}' before '${St.type}'`)}case"Identifier":if(ve.name!=="Infinity"&&ve.name!=="NaN"&&ve.name!=="undefined")throw kh(ve,`Identifier '${ve.name}'`);return;case"TemplateLiteral":if(uL(ve.expressions))throw kh(ve.expressions[0],"'TemplateLiteral' with expression");for(let Ge of ve.quasis)Ao(Ge);return;case"NullLiteral":case"BooleanLiteral":case"NumericLiteral":case"StringLiteral":case"TemplateElement":return;default:throw kh(ve,`'${ve.type}'`)}}var Hx=Ot({parse:ve=>Th(ve),hasPragma:()=>!0,hasIgnorePragma:()=>!1}),dL=Ot(ve=>Th(ve)),$x=Ot(ve=>Th(ve,{allowEmpty:!0})),Zm=Ot({parse:ve=>Th(ve,{allowComments:!1}),astFormat:"estree-json"}),hL={...b,...Pd};return h(g)})})(uce)),uce.exports}var i9e=eXt();const tXt=Pv({__proto__:null,default:u0(i9e)},[i9e]);var iXt={comments:{lineComment:"#"},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"""',close:'"""',notIn:["string","comment"]},{open:'"',close:'"',notIn:["string","comment"]}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"""',close:'"""'},{open:'"',close:'"'}],folding:{offSide:!0}},nXt={defaultToken:"invalid",tokenPostfix:".gql",keywords:["null","true","false","query","mutation","subscription","extend","schema","directive","scalar","type","interface","union","enum","input","implements","fragment","on"],typeKeywords:["Int","Float","String","Boolean","ID"],directiveLocations:["SCHEMA","SCALAR","OBJECT","FIELD_DEFINITION","ARGUMENT_DEFINITION","INTERFACE","UNION","ENUM","ENUM_VALUE","INPUT_OBJECT","INPUT_FIELD_DEFINITION","QUERY","MUTATION","SUBSCRIPTION","FIELD","FRAGMENT_DEFINITION","FRAGMENT_SPREAD","INLINE_FRAGMENT","VARIABLE_DEFINITION"],operators:["=","!","?",":","&","|"],symbols:/[=!?:&|]+/,escapes:/\\(?:["\\\/bfnrt]|u[0-9A-Fa-f]{4})/,tokenizer:{root:[[/[a-z_][\w$]*/,{cases:{"@keywords":"keyword","@default":"key.identifier"}}],[/[$][\w$]*/,{cases:{"@keywords":"keyword","@default":"argument.identifier"}}],[/[A-Z][\w\$]*/,{cases:{"@typeKeywords":"keyword","@default":"type.identifier"}}],{include:"@whitespace"},[/[{}()\[\]]/,"@brackets"],[/@symbols/,{cases:{"@operators":"operator","@default":""}}],[/@\s*[a-zA-Z_\$][\w\$]*/,{token:"annotation",log:"annotation token: $0"}],[/\d*\.\d+([eE][\-+]?\d+)?/,"number.float"],[/0[xX][0-9a-fA-F]+/,"number.hex"],[/\d+/,"number"],[/[;,.]/,"delimiter"],[/"""/,{token:"string",next:"@mlstring",nextEmbedded:"markdown"}],[/"([^"\\]|\\.)*$/,"string.invalid"],[/"/,{token:"string.quote",bracket:"@open",next:"@string"}]],mlstring:[[/[^"]+/,"string"],['"""',{token:"string",next:"@pop",nextEmbedded:"@pop"}]],string:[[/[^\\"]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/"/,{token:"string.quote",bracket:"@close",next:"@pop"}]],whitespace:[[/[ \t\r\n]+/,""],[/#.*$/,"comment"]]}};const sXt=Object.freeze(Object.defineProperty({__proto__:null,conf:iXt,language:nXt},Symbol.toStringTag,{value:"Module"}));var rXt=Object.defineProperty,oXt=Object.getOwnPropertyDescriptor,aXt=Object.getOwnPropertyNames,lXt=Object.prototype.hasOwnProperty,uXt=(i,e,t,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of aXt(e))!lXt.call(i,s)&&s!==t&&rXt(i,s,{get:()=>e[s],enumerable:!(n=oXt(e,s))||n.enumerable});return i},cXt=(i,e,t)=>(uXt(i,e,"default"),t),Gn={};cXt(Gn,Xse);var dXt=120*1e3,n9e=class{constructor(e){this._defaults=e,this._worker=null,this._client=null,this._idleCheckInterval=window.setInterval(()=>this._checkIfIdle(),30*1e3),this._lastUsedTime=0,this._configChangeListener=this._defaults.onDidChange(()=>this._stopWorker())}_stopWorker(){this._worker&&(this._worker.dispose(),this._worker=null),this._client=null}dispose(){clearInterval(this._idleCheckInterval),this._configChangeListener.dispose(),this._stopWorker()}_checkIfIdle(){if(!this._worker)return;Date.now()-this._lastUsedTime>dXt&&this._stopWorker()}_getClient(){return this._lastUsedTime=Date.now(),this._client||(this._worker=Gn.editor.createWebWorker({moduleId:"vs/language/json/jsonWorker",label:this._defaults.languageId,createData:{languageSettings:this._defaults.diagnosticsOptions,languageId:this._defaults.languageId,enableSchemaRequest:this._defaults.diagnosticsOptions.enableSchemaRequest}}),this._client=this._worker.getProxy()),this._client}getLanguageServiceWorker(...e){let t;return this._getClient().then(n=>{t=n}).then(n=>{if(this._worker)return this._worker.withSyncedResources(e)}).then(n=>t)}},s9e;(function(i){function e(t){return typeof t=="string"}i.is=e})(s9e||(s9e={}));var cce;(function(i){function e(t){return typeof t=="string"}i.is=e})(cce||(cce={}));var r9e;(function(i){i.MIN_VALUE=-2147483648,i.MAX_VALUE=2147483647;function e(t){return typeof t=="number"&&i.MIN_VALUE<=t&&t<=i.MAX_VALUE}i.is=e})(r9e||(r9e={}));var PW;(function(i){i.MIN_VALUE=0,i.MAX_VALUE=2147483647;function e(t){return typeof t=="number"&&i.MIN_VALUE<=t&&t<=i.MAX_VALUE}i.is=e})(PW||(PW={}));var tg;(function(i){function e(n,s){return n===Number.MAX_VALUE&&(n=PW.MAX_VALUE),s===Number.MAX_VALUE&&(s=PW.MAX_VALUE),{line:n,character:s}}i.create=e;function t(n){let s=n;return Ze.objectLiteral(s)&&Ze.uinteger(s.line)&&Ze.uinteger(s.character)}i.is=t})(tg||(tg={}));var Sa;(function(i){function e(n,s,r,o){if(Ze.uinteger(n)&&Ze.uinteger(s)&&Ze.uinteger(r)&&Ze.uinteger(o))return{start:tg.create(n,s),end:tg.create(r,o)};if(tg.is(n)&&tg.is(s))return{start:n,end:s};throw new Error(`Range#create called with invalid arguments[${n}, ${s}, ${r}, ${o}]`)}i.create=e;function t(n){let s=n;return Ze.objectLiteral(s)&&tg.is(s.start)&&tg.is(s.end)}i.is=t})(Sa||(Sa={}));var MW;(function(i){function e(n,s){return{uri:n,range:s}}i.create=e;function t(n){let s=n;return Ze.objectLiteral(s)&&Sa.is(s.range)&&(Ze.string(s.uri)||Ze.undefined(s.uri))}i.is=t})(MW||(MW={}));var o9e;(function(i){function e(n,s,r,o){return{targetUri:n,targetRange:s,targetSelectionRange:r,originSelectionRange:o}}i.create=e;function t(n){let s=n;return Ze.objectLiteral(s)&&Sa.is(s.targetRange)&&Ze.string(s.targetUri)&&Sa.is(s.targetSelectionRange)&&(Sa.is(s.originSelectionRange)||Ze.undefined(s.originSelectionRange))}i.is=t})(o9e||(o9e={}));var dce;(function(i){function e(n,s,r,o){return{red:n,green:s,blue:r,alpha:o}}i.create=e;function t(n){const s=n;return Ze.objectLiteral(s)&&Ze.numberRange(s.red,0,1)&&Ze.numberRange(s.green,0,1)&&Ze.numberRange(s.blue,0,1)&&Ze.numberRange(s.alpha,0,1)}i.is=t})(dce||(dce={}));var a9e;(function(i){function e(n,s){return{range:n,color:s}}i.create=e;function t(n){const s=n;return Ze.objectLiteral(s)&&Sa.is(s.range)&&dce.is(s.color)}i.is=t})(a9e||(a9e={}));var l9e;(function(i){function e(n,s,r){return{label:n,textEdit:s,additionalTextEdits:r}}i.create=e;function t(n){const s=n;return Ze.objectLiteral(s)&&Ze.string(s.label)&&(Ze.undefined(s.textEdit)||Ak.is(s))&&(Ze.undefined(s.additionalTextEdits)||Ze.typedArray(s.additionalTextEdits,Ak.is))}i.is=t})(l9e||(l9e={}));var tO;(function(i){i.Comment="comment",i.Imports="imports",i.Region="region"})(tO||(tO={}));var u9e;(function(i){function e(n,s,r,o,a,l){const u={startLine:n,endLine:s};return Ze.defined(r)&&(u.startCharacter=r),Ze.defined(o)&&(u.endCharacter=o),Ze.defined(a)&&(u.kind=a),Ze.defined(l)&&(u.collapsedText=l),u}i.create=e;function t(n){const s=n;return Ze.objectLiteral(s)&&Ze.uinteger(s.startLine)&&Ze.uinteger(s.startLine)&&(Ze.undefined(s.startCharacter)||Ze.uinteger(s.startCharacter))&&(Ze.undefined(s.endCharacter)||Ze.uinteger(s.endCharacter))&&(Ze.undefined(s.kind)||Ze.string(s.kind))}i.is=t})(u9e||(u9e={}));var hce;(function(i){function e(n,s){return{location:n,message:s}}i.create=e;function t(n){let s=n;return Ze.defined(s)&&MW.is(s.location)&&Ze.string(s.message)}i.is=t})(hce||(hce={}));var kk;(function(i){i.Error=1,i.Warning=2,i.Information=3,i.Hint=4})(kk||(kk={}));var c9e;(function(i){i.Unnecessary=1,i.Deprecated=2})(c9e||(c9e={}));var d9e;(function(i){function e(t){const n=t;return Ze.objectLiteral(n)&&Ze.string(n.href)}i.is=e})(d9e||(d9e={}));var RW;(function(i){function e(n,s,r,o,a,l){let u={range:n,message:s};return Ze.defined(r)&&(u.severity=r),Ze.defined(o)&&(u.code=o),Ze.defined(a)&&(u.source=a),Ze.defined(l)&&(u.relatedInformation=l),u}i.create=e;function t(n){var s;let r=n;return Ze.defined(r)&&Sa.is(r.range)&&Ze.string(r.message)&&(Ze.number(r.severity)||Ze.undefined(r.severity))&&(Ze.integer(r.code)||Ze.string(r.code)||Ze.undefined(r.code))&&(Ze.undefined(r.codeDescription)||Ze.string((s=r.codeDescription)===null||s===void 0?void 0:s.href))&&(Ze.string(r.source)||Ze.undefined(r.source))&&(Ze.undefined(r.relatedInformation)||Ze.typedArray(r.relatedInformation,hce.is))}i.is=t})(RW||(RW={}));var Lk;(function(i){function e(n,s,...r){let o={title:n,command:s};return Ze.defined(r)&&r.length>0&&(o.arguments=r),o}i.create=e;function t(n){let s=n;return Ze.defined(s)&&Ze.string(s.title)&&Ze.string(s.command)}i.is=t})(Lk||(Lk={}));var Ak;(function(i){function e(r,o){return{range:r,newText:o}}i.replace=e;function t(r,o){return{range:{start:r,end:r},newText:o}}i.insert=t;function n(r){return{range:r,newText:""}}i.del=n;function s(r){const o=r;return Ze.objectLiteral(o)&&Ze.string(o.newText)&&Sa.is(o.range)}i.is=s})(Ak||(Ak={}));var fce;(function(i){function e(n,s,r){const o={label:n};return s!==void 0&&(o.needsConfirmation=s),r!==void 0&&(o.description=r),o}i.create=e;function t(n){const s=n;return Ze.objectLiteral(s)&&Ze.string(s.label)&&(Ze.boolean(s.needsConfirmation)||s.needsConfirmation===void 0)&&(Ze.string(s.description)||s.description===void 0)}i.is=t})(fce||(fce={}));var Nk;(function(i){function e(t){const n=t;return Ze.string(n)}i.is=e})(Nk||(Nk={}));var h9e;(function(i){function e(r,o,a){return{range:r,newText:o,annotationId:a}}i.replace=e;function t(r,o,a){return{range:{start:r,end:r},newText:o,annotationId:a}}i.insert=t;function n(r,o){return{range:r,newText:"",annotationId:o}}i.del=n;function s(r){const o=r;return Ak.is(o)&&(fce.is(o.annotationId)||Nk.is(o.annotationId))}i.is=s})(h9e||(h9e={}));var pce;(function(i){function e(n,s){return{textDocument:n,edits:s}}i.create=e;function t(n){let s=n;return Ze.defined(s)&&yce.is(s.textDocument)&&Array.isArray(s.edits)}i.is=t})(pce||(pce={}));var gce;(function(i){function e(n,s,r){let o={kind:"create",uri:n};return s!==void 0&&(s.overwrite!==void 0||s.ignoreIfExists!==void 0)&&(o.options=s),r!==void 0&&(o.annotationId=r),o}i.create=e;function t(n){let s=n;return s&&s.kind==="create"&&Ze.string(s.uri)&&(s.options===void 0||(s.options.overwrite===void 0||Ze.boolean(s.options.overwrite))&&(s.options.ignoreIfExists===void 0||Ze.boolean(s.options.ignoreIfExists)))&&(s.annotationId===void 0||Nk.is(s.annotationId))}i.is=t})(gce||(gce={}));var mce;(function(i){function e(n,s,r,o){let a={kind:"rename",oldUri:n,newUri:s};return r!==void 0&&(r.overwrite!==void 0||r.ignoreIfExists!==void 0)&&(a.options=r),o!==void 0&&(a.annotationId=o),a}i.create=e;function t(n){let s=n;return s&&s.kind==="rename"&&Ze.string(s.oldUri)&&Ze.string(s.newUri)&&(s.options===void 0||(s.options.overwrite===void 0||Ze.boolean(s.options.overwrite))&&(s.options.ignoreIfExists===void 0||Ze.boolean(s.options.ignoreIfExists)))&&(s.annotationId===void 0||Nk.is(s.annotationId))}i.is=t})(mce||(mce={}));var _ce;(function(i){function e(n,s,r){let o={kind:"delete",uri:n};return s!==void 0&&(s.recursive!==void 0||s.ignoreIfNotExists!==void 0)&&(o.options=s),r!==void 0&&(o.annotationId=r),o}i.create=e;function t(n){let s=n;return s&&s.kind==="delete"&&Ze.string(s.uri)&&(s.options===void 0||(s.options.recursive===void 0||Ze.boolean(s.options.recursive))&&(s.options.ignoreIfNotExists===void 0||Ze.boolean(s.options.ignoreIfNotExists)))&&(s.annotationId===void 0||Nk.is(s.annotationId))}i.is=t})(_ce||(_ce={}));var bce;(function(i){function e(t){let n=t;return n&&(n.changes!==void 0||n.documentChanges!==void 0)&&(n.documentChanges===void 0||n.documentChanges.every(s=>Ze.string(s.kind)?gce.is(s)||mce.is(s)||_ce.is(s):pce.is(s)))}i.is=e})(bce||(bce={}));var f9e;(function(i){function e(n){return{uri:n}}i.create=e;function t(n){let s=n;return Ze.defined(s)&&Ze.string(s.uri)}i.is=t})(f9e||(f9e={}));var p9e;(function(i){function e(n,s){return{uri:n,version:s}}i.create=e;function t(n){let s=n;return Ze.defined(s)&&Ze.string(s.uri)&&Ze.integer(s.version)}i.is=t})(p9e||(p9e={}));var yce;(function(i){function e(n,s){return{uri:n,version:s}}i.create=e;function t(n){let s=n;return Ze.defined(s)&&Ze.string(s.uri)&&(s.version===null||Ze.integer(s.version))}i.is=t})(yce||(yce={}));var g9e;(function(i){function e(n,s,r,o){return{uri:n,languageId:s,version:r,text:o}}i.create=e;function t(n){let s=n;return Ze.defined(s)&&Ze.string(s.uri)&&Ze.string(s.languageId)&&Ze.integer(s.version)&&Ze.string(s.text)}i.is=t})(g9e||(g9e={}));var vce;(function(i){i.PlainText="plaintext",i.Markdown="markdown";function e(t){const n=t;return n===i.PlainText||n===i.Markdown}i.is=e})(vce||(vce={}));var iO;(function(i){function e(t){const n=t;return Ze.objectLiteral(t)&&vce.is(n.kind)&&Ze.string(n.value)}i.is=e})(iO||(iO={}));var ja;(function(i){i.Text=1,i.Method=2,i.Function=3,i.Constructor=4,i.Field=5,i.Variable=6,i.Class=7,i.Interface=8,i.Module=9,i.Property=10,i.Unit=11,i.Value=12,i.Enum=13,i.Keyword=14,i.Snippet=15,i.Color=16,i.File=17,i.Reference=18,i.Folder=19,i.EnumMember=20,i.Constant=21,i.Struct=22,i.Event=23,i.Operator=24,i.TypeParameter=25})(ja||(ja={}));var Cce;(function(i){i.PlainText=1,i.Snippet=2})(Cce||(Cce={}));var m9e;(function(i){i.Deprecated=1})(m9e||(m9e={}));var _9e;(function(i){function e(n,s,r){return{newText:n,insert:s,replace:r}}i.create=e;function t(n){const s=n;return s&&Ze.string(s.newText)&&Sa.is(s.insert)&&Sa.is(s.replace)}i.is=t})(_9e||(_9e={}));var b9e;(function(i){i.asIs=1,i.adjustIndentation=2})(b9e||(b9e={}));var y9e;(function(i){function e(t){const n=t;return n&&(Ze.string(n.detail)||n.detail===void 0)&&(Ze.string(n.description)||n.description===void 0)}i.is=e})(y9e||(y9e={}));var v9e;(function(i){function e(t){return{label:t}}i.create=e})(v9e||(v9e={}));var C9e;(function(i){function e(t,n){return{items:t||[],isIncomplete:!!n}}i.create=e})(C9e||(C9e={}));var OW;(function(i){function e(n){return n.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}i.fromPlainText=e;function t(n){const s=n;return Ze.string(s)||Ze.objectLiteral(s)&&Ze.string(s.language)&&Ze.string(s.value)}i.is=t})(OW||(OW={}));var w9e;(function(i){function e(t){let n=t;return!!n&&Ze.objectLiteral(n)&&(iO.is(n.contents)||OW.is(n.contents)||Ze.typedArray(n.contents,OW.is))&&(t.range===void 0||Sa.is(t.range))}i.is=e})(w9e||(w9e={}));var S9e;(function(i){function e(t,n){return n?{label:t,documentation:n}:{label:t}}i.create=e})(S9e||(S9e={}));var x9e;(function(i){function e(t,n,...s){let r={label:t};return Ze.defined(n)&&(r.documentation=n),Ze.defined(s)?r.parameters=s:r.parameters=[],r}i.create=e})(x9e||(x9e={}));var nO;(function(i){i.Text=1,i.Read=2,i.Write=3})(nO||(nO={}));var D9e;(function(i){function e(t,n){let s={range:t};return Ze.number(n)&&(s.kind=n),s}i.create=e})(D9e||(D9e={}));var qa;(function(i){i.File=1,i.Module=2,i.Namespace=3,i.Package=4,i.Class=5,i.Method=6,i.Property=7,i.Field=8,i.Constructor=9,i.Enum=10,i.Interface=11,i.Function=12,i.Variable=13,i.Constant=14,i.String=15,i.Number=16,i.Boolean=17,i.Array=18,i.Object=19,i.Key=20,i.Null=21,i.EnumMember=22,i.Struct=23,i.Event=24,i.Operator=25,i.TypeParameter=26})(qa||(qa={}));var E9e;(function(i){i.Deprecated=1})(E9e||(E9e={}));var T9e;(function(i){function e(t,n,s,r,o){let a={name:t,kind:n,location:{uri:r,range:s}};return o&&(a.containerName=o),a}i.create=e})(T9e||(T9e={}));var k9e;(function(i){function e(t,n,s,r){return r!==void 0?{name:t,kind:n,location:{uri:s,range:r}}:{name:t,kind:n,location:{uri:s}}}i.create=e})(k9e||(k9e={}));var L9e;(function(i){function e(n,s,r,o,a,l){let u={name:n,detail:s,kind:r,range:o,selectionRange:a};return l!==void 0&&(u.children=l),u}i.create=e;function t(n){let s=n;return s&&Ze.string(s.name)&&Ze.number(s.kind)&&Sa.is(s.range)&&Sa.is(s.selectionRange)&&(s.detail===void 0||Ze.string(s.detail))&&(s.deprecated===void 0||Ze.boolean(s.deprecated))&&(s.children===void 0||Array.isArray(s.children))&&(s.tags===void 0||Array.isArray(s.tags))}i.is=t})(L9e||(L9e={}));var A9e;(function(i){i.Empty="",i.QuickFix="quickfix",i.Refactor="refactor",i.RefactorExtract="refactor.extract",i.RefactorInline="refactor.inline",i.RefactorRewrite="refactor.rewrite",i.Source="source",i.SourceOrganizeImports="source.organizeImports",i.SourceFixAll="source.fixAll"})(A9e||(A9e={}));var FW;(function(i){i.Invoked=1,i.Automatic=2})(FW||(FW={}));var N9e;(function(i){function e(n,s,r){let o={diagnostics:n};return s!=null&&(o.only=s),r!=null&&(o.triggerKind=r),o}i.create=e;function t(n){let s=n;return Ze.defined(s)&&Ze.typedArray(s.diagnostics,RW.is)&&(s.only===void 0||Ze.typedArray(s.only,Ze.string))&&(s.triggerKind===void 0||s.triggerKind===FW.Invoked||s.triggerKind===FW.Automatic)}i.is=t})(N9e||(N9e={}));var I9e;(function(i){function e(n,s,r){let o={title:n},a=!0;return typeof s=="string"?(a=!1,o.kind=s):Lk.is(s)?o.command=s:o.edit=s,a&&r!==void 0&&(o.kind=r),o}i.create=e;function t(n){let s=n;return s&&Ze.string(s.title)&&(s.diagnostics===void 0||Ze.typedArray(s.diagnostics,RW.is))&&(s.kind===void 0||Ze.string(s.kind))&&(s.edit!==void 0||s.command!==void 0)&&(s.command===void 0||Lk.is(s.command))&&(s.isPreferred===void 0||Ze.boolean(s.isPreferred))&&(s.edit===void 0||bce.is(s.edit))}i.is=t})(I9e||(I9e={}));var P9e;(function(i){function e(n,s){let r={range:n};return Ze.defined(s)&&(r.data=s),r}i.create=e;function t(n){let s=n;return Ze.defined(s)&&Sa.is(s.range)&&(Ze.undefined(s.command)||Lk.is(s.command))}i.is=t})(P9e||(P9e={}));var M9e;(function(i){function e(n,s){return{tabSize:n,insertSpaces:s}}i.create=e;function t(n){let s=n;return Ze.defined(s)&&Ze.uinteger(s.tabSize)&&Ze.boolean(s.insertSpaces)}i.is=t})(M9e||(M9e={}));var R9e;(function(i){function e(n,s,r){return{range:n,target:s,data:r}}i.create=e;function t(n){let s=n;return Ze.defined(s)&&Sa.is(s.range)&&(Ze.undefined(s.target)||Ze.string(s.target))}i.is=t})(R9e||(R9e={}));var O9e;(function(i){function e(n,s){return{range:n,parent:s}}i.create=e;function t(n){let s=n;return Ze.objectLiteral(s)&&Sa.is(s.range)&&(s.parent===void 0||i.is(s.parent))}i.is=t})(O9e||(O9e={}));var F9e;(function(i){i.namespace="namespace",i.type="type",i.class="class",i.enum="enum",i.interface="interface",i.struct="struct",i.typeParameter="typeParameter",i.parameter="parameter",i.variable="variable",i.property="property",i.enumMember="enumMember",i.event="event",i.function="function",i.method="method",i.macro="macro",i.keyword="keyword",i.modifier="modifier",i.comment="comment",i.string="string",i.number="number",i.regexp="regexp",i.operator="operator",i.decorator="decorator"})(F9e||(F9e={}));var B9e;(function(i){i.declaration="declaration",i.definition="definition",i.readonly="readonly",i.static="static",i.deprecated="deprecated",i.abstract="abstract",i.async="async",i.modification="modification",i.documentation="documentation",i.defaultLibrary="defaultLibrary"})(B9e||(B9e={}));var V9e;(function(i){function e(t){const n=t;return Ze.objectLiteral(n)&&(n.resultId===void 0||typeof n.resultId=="string")&&Array.isArray(n.data)&&(n.data.length===0||typeof n.data[0]=="number")}i.is=e})(V9e||(V9e={}));var W9e;(function(i){function e(n,s){return{range:n,text:s}}i.create=e;function t(n){const s=n;return s!=null&&Sa.is(s.range)&&Ze.string(s.text)}i.is=t})(W9e||(W9e={}));var H9e;(function(i){function e(n,s,r){return{range:n,variableName:s,caseSensitiveLookup:r}}i.create=e;function t(n){const s=n;return s!=null&&Sa.is(s.range)&&Ze.boolean(s.caseSensitiveLookup)&&(Ze.string(s.variableName)||s.variableName===void 0)}i.is=t})(H9e||(H9e={}));var $9e;(function(i){function e(n,s){return{range:n,expression:s}}i.create=e;function t(n){const s=n;return s!=null&&Sa.is(s.range)&&(Ze.string(s.expression)||s.expression===void 0)}i.is=t})($9e||($9e={}));var U9e;(function(i){function e(n,s){return{frameId:n,stoppedLocation:s}}i.create=e;function t(n){const s=n;return Ze.defined(s)&&Sa.is(n.stoppedLocation)}i.is=t})(U9e||(U9e={}));var wce;(function(i){i.Type=1,i.Parameter=2;function e(t){return t===1||t===2}i.is=e})(wce||(wce={}));var Sce;(function(i){function e(n){return{value:n}}i.create=e;function t(n){const s=n;return Ze.objectLiteral(s)&&(s.tooltip===void 0||Ze.string(s.tooltip)||iO.is(s.tooltip))&&(s.location===void 0||MW.is(s.location))&&(s.command===void 0||Lk.is(s.command))}i.is=t})(Sce||(Sce={}));var z9e;(function(i){function e(n,s,r){const o={position:n,label:s};return r!==void 0&&(o.kind=r),o}i.create=e;function t(n){const s=n;return Ze.objectLiteral(s)&&tg.is(s.position)&&(Ze.string(s.label)||Ze.typedArray(s.label,Sce.is))&&(s.kind===void 0||wce.is(s.kind))&&s.textEdits===void 0||Ze.typedArray(s.textEdits,Ak.is)&&(s.tooltip===void 0||Ze.string(s.tooltip)||iO.is(s.tooltip))&&(s.paddingLeft===void 0||Ze.boolean(s.paddingLeft))&&(s.paddingRight===void 0||Ze.boolean(s.paddingRight))}i.is=t})(z9e||(z9e={}));var j9e;(function(i){function e(t){return{kind:"snippet",value:t}}i.createSnippet=e})(j9e||(j9e={}));var q9e;(function(i){function e(t,n,s,r){return{insertText:t,filterText:n,range:s,command:r}}i.create=e})(q9e||(q9e={}));var G9e;(function(i){function e(t){return{items:t}}i.create=e})(G9e||(G9e={}));var K9e;(function(i){i.Invoked=0,i.Automatic=1})(K9e||(K9e={}));var Y9e;(function(i){function e(t,n){return{range:t,text:n}}i.create=e})(Y9e||(Y9e={}));var X9e;(function(i){function e(t,n){return{triggerKind:t,selectedCompletionInfo:n}}i.create=e})(X9e||(X9e={}));var Q9e;(function(i){function e(t){const n=t;return Ze.objectLiteral(n)&&cce.is(n.uri)&&Ze.string(n.name)}i.is=e})(Q9e||(Q9e={}));var Z9e;(function(i){function e(r,o,a,l){return new hXt(r,o,a,l)}i.create=e;function t(r){let o=r;return!!(Ze.defined(o)&&Ze.string(o.uri)&&(Ze.undefined(o.languageId)||Ze.string(o.languageId))&&Ze.uinteger(o.lineCount)&&Ze.func(o.getText)&&Ze.func(o.positionAt)&&Ze.func(o.offsetAt))}i.is=t;function n(r,o){let a=r.getText(),l=s(o,(c,d)=>{let h=c.range.start.line-d.range.start.line;return h===0?c.range.start.character-d.range.start.character:h}),u=a.length;for(let c=l.length-1;c>=0;c--){let d=l[c],h=r.offsetAt(d.range.start),f=r.offsetAt(d.range.end);if(f<=u)a=a.substring(0,h)+d.newText+a.substring(f,a.length);else throw new Error("Overlapping edit");u=h}return a}i.applyEdits=n;function s(r,o){if(r.length<=1)return r;const a=r.length/2|0,l=r.slice(0,a),u=r.slice(a);s(l,o),s(u,o);let c=0,d=0,h=0;for(;c<l.length&&d<u.length;)o(l[c],u[d])<=0?r[h++]=l[c++]:r[h++]=u[d++];for(;c<l.length;)r[h++]=l[c++];for(;d<u.length;)r[h++]=u[d++];return r}})(Z9e||(Z9e={}));var hXt=class{constructor(i,e,t,n){this._uri=i,this._languageId=e,this._version=t,this._content=n,this._lineOffsets=void 0}get uri(){return this._uri}get languageId(){return this._languageId}get version(){return this._version}getText(i){if(i){let e=this.offsetAt(i.start),t=this.offsetAt(i.end);return this._content.substring(e,t)}return this._content}update(i,e){this._content=i.text,this._version=e,this._lineOffsets=void 0}getLineOffsets(){if(this._lineOffsets===void 0){let i=[],e=this._content,t=!0;for(let n=0;n<e.length;n++){t&&(i.push(n),t=!1);let s=e.charAt(n);t=s==="\r"||s===`
|
|
1405
1283
|
`,s==="\r"&&n+1<e.length&&e.charAt(n+1)===`
|
|
1406
1284
|
`&&n++}t&&e.length>0&&i.push(e.length),this._lineOffsets=i}return this._lineOffsets}positionAt(i){i=Math.max(Math.min(i,this._content.length),0);let e=this.getLineOffsets(),t=0,n=e.length;if(n===0)return tg.create(0,i);for(;t<n;){let r=Math.floor((t+n)/2);e[r]>i?n=r:t=r+1}let s=t-1;return tg.create(s,i-e[s])}offsetAt(i){let e=this.getLineOffsets();if(i.line>=e.length)return this._content.length;if(i.line<0)return 0;let t=e[i.line],n=i.line+1<e.length?e[i.line+1]:this._content.length;return Math.max(Math.min(t+i.character,n),t)}get lineCount(){return this.getLineOffsets().length}},Ze;(function(i){const e=Object.prototype.toString;function t(f){return typeof f<"u"}i.defined=t;function n(f){return typeof f>"u"}i.undefined=n;function s(f){return f===!0||f===!1}i.boolean=s;function r(f){return e.call(f)==="[object String]"}i.string=r;function o(f){return e.call(f)==="[object Number]"}i.number=o;function a(f,g,b){return e.call(f)==="[object Number]"&&g<=f&&f<=b}i.numberRange=a;function l(f){return e.call(f)==="[object Number]"&&-2147483648<=f&&f<=2147483647}i.integer=l;function u(f){return e.call(f)==="[object Number]"&&0<=f&&f<=2147483647}i.uinteger=u;function c(f){return e.call(f)==="[object Function]"}i.func=c;function d(f){return f!==null&&typeof f=="object"}i.objectLiteral=d;function h(f,g){return Array.isArray(f)&&f.every(g)}i.typedArray=h})(Ze||(Ze={}));var J9e=class{constructor(e,t,n){this._languageId=e,this._worker=t,this._disposables=[],this._listener=Object.create(null);const s=o=>{let a=o.getLanguageId();if(a!==this._languageId)return;let l;this._listener[o.uri.toString()]=o.onDidChangeContent(()=>{window.clearTimeout(l),l=window.setTimeout(()=>this._doValidate(o.uri,a),500)}),this._doValidate(o.uri,a)},r=o=>{Gn.editor.setModelMarkers(o,this._languageId,[]);let a=o.uri.toString(),l=this._listener[a];l&&(l.dispose(),delete this._listener[a])};this._disposables.push(Gn.editor.onDidCreateModel(s)),this._disposables.push(Gn.editor.onWillDisposeModel(r)),this._disposables.push(Gn.editor.onDidChangeModelLanguage(o=>{r(o.model),s(o.model)})),this._disposables.push(n(o=>{Gn.editor.getModels().forEach(a=>{a.getLanguageId()===this._languageId&&(r(a),s(a))})})),this._disposables.push({dispose:()=>{Gn.editor.getModels().forEach(r);for(let o in this._listener)this._listener[o].dispose()}}),Gn.editor.getModels().forEach(s)}dispose(){this._disposables.forEach(e=>e&&e.dispose()),this._disposables.length=0}_doValidate(e,t){this._worker(e).then(n=>n.doValidation(e.toString())).then(n=>{const s=n.map(o=>pXt(e,o));let r=Gn.editor.getModel(e);r&&r.getLanguageId()===t&&Gn.editor.setModelMarkers(r,t,s)}).then(void 0,n=>{console.error(n)})}};function fXt(i){switch(i){case kk.Error:return Gn.MarkerSeverity.Error;case kk.Warning:return Gn.MarkerSeverity.Warning;case kk.Information:return Gn.MarkerSeverity.Info;case kk.Hint:return Gn.MarkerSeverity.Hint;default:return Gn.MarkerSeverity.Info}}function pXt(i,e){let t=typeof e.code=="number"?String(e.code):e.code;return{severity:fXt(e.severity),startLineNumber:e.range.start.line+1,startColumn:e.range.start.character+1,endLineNumber:e.range.end.line+1,endColumn:e.range.end.character+1,message:e.message,code:t,source:e.source}}var e7e=class{constructor(e,t){this._worker=e,this._triggerCharacters=t}get triggerCharacters(){return this._triggerCharacters}provideCompletionItems(e,t,n,s){const r=e.uri;return this._worker(r).then(o=>o.doComplete(r.toString(),Ly(t))).then(o=>{if(!o)return;const a=e.getWordUntilPosition(t),l=new Gn.Range(t.lineNumber,a.startColumn,t.lineNumber,a.endColumn),u=o.items.map(c=>{const d={label:c.label,insertText:c.insertText||c.label,sortText:c.sortText,filterText:c.filterText,documentation:c.documentation,detail:c.detail,command:_Xt(c.command),range:l,kind:mXt(c.kind)};return c.textEdit&&(gXt(c.textEdit)?d.range={insert:Gu(c.textEdit.insert),replace:Gu(c.textEdit.replace)}:d.range=Gu(c.textEdit.range),d.insertText=c.textEdit.newText),c.additionalTextEdits&&(d.additionalTextEdits=c.additionalTextEdits.map(Ik)),c.insertTextFormat===Cce.Snippet&&(d.insertTextRules=Gn.languages.CompletionItemInsertTextRule.InsertAsSnippet),d});return{isIncomplete:o.isIncomplete,suggestions:u}})}};function Ly(i){if(i)return{character:i.column-1,line:i.lineNumber-1}}function xce(i){if(i)return{start:{line:i.startLineNumber-1,character:i.startColumn-1},end:{line:i.endLineNumber-1,character:i.endColumn-1}}}function Gu(i){if(i)return new Gn.Range(i.start.line+1,i.start.character+1,i.end.line+1,i.end.character+1)}function gXt(i){return typeof i.insert<"u"&&typeof i.replace<"u"}function mXt(i){const e=Gn.languages.CompletionItemKind;switch(i){case ja.Text:return e.Text;case ja.Method:return e.Method;case ja.Function:return e.Function;case ja.Constructor:return e.Constructor;case ja.Field:return e.Field;case ja.Variable:return e.Variable;case ja.Class:return e.Class;case ja.Interface:return e.Interface;case ja.Module:return e.Module;case ja.Property:return e.Property;case ja.Unit:return e.Unit;case ja.Value:return e.Value;case ja.Enum:return e.Enum;case ja.Keyword:return e.Keyword;case ja.Snippet:return e.Snippet;case ja.Color:return e.Color;case ja.File:return e.File;case ja.Reference:return e.Reference}return e.Property}function Ik(i){if(i)return{range:Gu(i.range),text:i.newText}}function _Xt(i){return i&&i.command==="editor.action.triggerSuggest"?{id:i.command,title:i.title,arguments:i.arguments}:void 0}var t7e=class{constructor(e){this._worker=e}provideHover(e,t,n){let s=e.uri;return this._worker(s).then(r=>r.doHover(s.toString(),Ly(t))).then(r=>{if(r)return{range:Gu(r.range),contents:yXt(r.contents)}})}};function bXt(i){return i&&typeof i=="object"&&typeof i.kind=="string"}function i7e(i){return typeof i=="string"?{value:i}:bXt(i)?i.kind==="plaintext"?{value:i.value.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}:{value:i.value}:{value:"```"+i.language+`
|
|
1407
1285
|
`+i.value+"\n```\n"}}function yXt(i){if(i)return Array.isArray(i)?i.map(i7e):[i7e(i)]}var vXt=class{constructor(i){this._worker=i}provideDocumentHighlights(i,e,t){const n=i.uri;return this._worker(n).then(s=>s.findDocumentHighlights(n.toString(),Ly(e))).then(s=>{if(s)return s.map(r=>({range:Gu(r.range),kind:CXt(r.kind)}))})}};function CXt(i){switch(i){case nO.Read:return Gn.languages.DocumentHighlightKind.Read;case nO.Write:return Gn.languages.DocumentHighlightKind.Write;case nO.Text:return Gn.languages.DocumentHighlightKind.Text}return Gn.languages.DocumentHighlightKind.Text}var wXt=class{constructor(i){this._worker=i}provideDefinition(i,e,t){const n=i.uri;return this._worker(n).then(s=>s.findDefinition(n.toString(),Ly(e))).then(s=>{if(s)return[n7e(s)]})}};function n7e(i){return{uri:Gn.Uri.parse(i.uri),range:Gu(i.range)}}var SXt=class{constructor(i){this._worker=i}provideReferences(i,e,t,n){const s=i.uri;return this._worker(s).then(r=>r.findReferences(s.toString(),Ly(e))).then(r=>{if(r)return r.map(n7e)})}},xXt=class{constructor(i){this._worker=i}provideRenameEdits(i,e,t,n){const s=i.uri;return this._worker(s).then(r=>r.doRename(s.toString(),Ly(e),t)).then(r=>DXt(r))}};function DXt(i){if(!i||!i.changes)return;let e=[];for(let t in i.changes){const n=Gn.Uri.parse(t);for(let s of i.changes[t])e.push({resource:n,versionId:void 0,textEdit:{range:Gu(s.range),text:s.newText}})}return{edits:e}}var s7e=class{constructor(i){this._worker=i}provideDocumentSymbols(i,e){const t=i.uri;return this._worker(t).then(n=>n.findDocumentSymbols(t.toString())).then(n=>{if(n)return n.map(s=>EXt(s)?r7e(s):{name:s.name,detail:"",containerName:s.containerName,kind:o7e(s.kind),range:Gu(s.location.range),selectionRange:Gu(s.location.range),tags:[]})})}};function EXt(i){return"children"in i}function r7e(i){return{name:i.name,detail:i.detail??"",kind:o7e(i.kind),range:Gu(i.range),selectionRange:Gu(i.selectionRange),tags:i.tags??[],children:(i.children??[]).map(e=>r7e(e))}}function o7e(i){let e=Gn.languages.SymbolKind;switch(i){case qa.File:return e.File;case qa.Module:return e.Module;case qa.Namespace:return e.Namespace;case qa.Package:return e.Package;case qa.Class:return e.Class;case qa.Method:return e.Method;case qa.Property:return e.Property;case qa.Field:return e.Field;case qa.Constructor:return e.Constructor;case qa.Enum:return e.Enum;case qa.Interface:return e.Interface;case qa.Function:return e.Function;case qa.Variable:return e.Variable;case qa.Constant:return e.Constant;case qa.String:return e.String;case qa.Number:return e.Number;case qa.Boolean:return e.Boolean;case qa.Array:return e.Array}return e.Function}var TXt=class{constructor(i){this._worker=i}provideLinks(i,e){const t=i.uri;return this._worker(t).then(n=>n.findDocumentLinks(t.toString())).then(n=>{if(n)return{links:n.map(s=>({range:Gu(s.range),url:s.target}))}})}},a7e=class{constructor(i){this._worker=i}provideDocumentFormattingEdits(i,e,t){const n=i.uri;return this._worker(n).then(s=>s.format(n.toString(),null,u7e(e)).then(r=>{if(!(!r||r.length===0))return r.map(Ik)}))}},l7e=class{constructor(i){this._worker=i,this.canFormatMultipleRanges=!1}provideDocumentRangeFormattingEdits(i,e,t,n){const s=i.uri;return this._worker(s).then(r=>r.format(s.toString(),xce(e),u7e(t)).then(o=>{if(!(!o||o.length===0))return o.map(Ik)}))}};function u7e(i){return{tabSize:i.tabSize,insertSpaces:i.insertSpaces}}var c7e=class{constructor(i){this._worker=i}provideDocumentColors(i,e){const t=i.uri;return this._worker(t).then(n=>n.findDocumentColors(t.toString())).then(n=>{if(n)return n.map(s=>({color:s.color,range:Gu(s.range)}))})}provideColorPresentations(i,e,t){const n=i.uri;return this._worker(n).then(s=>s.getColorPresentations(n.toString(),e.color,xce(e.range))).then(s=>{if(s)return s.map(r=>{let o={label:r.label};return r.textEdit&&(o.textEdit=Ik(r.textEdit)),r.additionalTextEdits&&(o.additionalTextEdits=r.additionalTextEdits.map(Ik)),o})})}},d7e=class{constructor(i){this._worker=i}provideFoldingRanges(i,e,t){const n=i.uri;return this._worker(n).then(s=>s.getFoldingRanges(n.toString(),e)).then(s=>{if(s)return s.map(r=>{const o={start:r.startLine+1,end:r.endLine+1};return typeof r.kind<"u"&&(o.kind=kXt(r.kind)),o})})}};function kXt(i){switch(i){case tO.Comment:return Gn.languages.FoldingRangeKind.Comment;case tO.Imports:return Gn.languages.FoldingRangeKind.Imports;case tO.Region:return Gn.languages.FoldingRangeKind.Region}}var h7e=class{constructor(i){this._worker=i}provideSelectionRanges(i,e,t){const n=i.uri;return this._worker(n).then(s=>s.getSelectionRanges(n.toString(),e.map(Ly))).then(s=>{if(s)return s.map(r=>{const o=[];for(;r;)o.push({range:Gu(r.range)}),r=r.parent;return o})})}};function LXt(i,e=!1){const t=i.length;let n=0,s="",r=0,o=16,a=0,l=0,u=0,c=0,d=0;function h(E,k){let A=0,I=0;for(;A<E;){let M=i.charCodeAt(n);if(M>=48&&M<=57)I=I*16+M-48;else if(M>=65&&M<=70)I=I*16+M-65+10;else if(M>=97&&M<=102)I=I*16+M-97+10;else break;n++,A++}return A<E&&(I=-1),I}function f(E){n=E,s="",r=0,o=16,d=0}function g(){let E=n;if(i.charCodeAt(n)===48)n++;else for(n++;n<i.length&&Pk(i.charCodeAt(n));)n++;if(n<i.length&&i.charCodeAt(n)===46)if(n++,n<i.length&&Pk(i.charCodeAt(n)))for(n++;n<i.length&&Pk(i.charCodeAt(n));)n++;else return d=3,i.substring(E,n);let k=n;if(n<i.length&&(i.charCodeAt(n)===69||i.charCodeAt(n)===101))if(n++,(n<i.length&&i.charCodeAt(n)===43||i.charCodeAt(n)===45)&&n++,n<i.length&&Pk(i.charCodeAt(n))){for(n++;n<i.length&&Pk(i.charCodeAt(n));)n++;k=n}else d=3;return i.substring(E,k)}function b(){let E="",k=n;for(;;){if(n>=t){E+=i.substring(k,n),d=2;break}const A=i.charCodeAt(n);if(A===34){E+=i.substring(k,n),n++;break}if(A===92){if(E+=i.substring(k,n),n++,n>=t){d=2;break}switch(i.charCodeAt(n++)){case 34:E+='"';break;case 92:E+="\\";break;case 47:E+="/";break;case 98:E+="\b";break;case 102:E+="\f";break;case 110:E+=`
|