@director.run/cli 0.2.2 → 0.3.0
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.
|
@@ -1,153 +0,0 @@
|
|
|
1
|
-
function zk(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&&!Array.isArray(r)){for(const a in r)if(a!=="default"&&!(a in e)){const i=Object.getOwnPropertyDescriptor(r,a);i&&Object.defineProperty(e,a,i.get?i:{enumerable:!0,get:()=>r[a]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const a of document.querySelectorAll('link[rel="modulepreload"]'))r(a);new MutationObserver(a=>{for(const i of a)if(i.type==="childList")for(const l of i.addedNodes)l.tagName==="LINK"&&l.rel==="modulepreload"&&r(l)}).observe(document,{childList:!0,subtree:!0});function n(a){const i={};return a.integrity&&(i.integrity=a.integrity),a.referrerPolicy&&(i.referrerPolicy=a.referrerPolicy),a.crossOrigin==="use-credentials"?i.credentials="include":a.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(a){if(a.ep)return;a.ep=!0;const i=n(a);fetch(a.href,i)}})();function Cu(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var n2={exports:{}},Uc={};/**
|
|
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 BE;function qk(){if(BE)return Uc;BE=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function n(r,a,i){var l=null;if(i!==void 0&&(l=""+i),a.key!==void 0&&(l=""+a.key),"key"in a){i={};for(var u in a)u!=="key"&&(i[u]=a[u])}else i=a;return a=i.ref,{$$typeof:e,type:r,key:l,ref:a!==void 0?a:null,props:i}}return Uc.Fragment=t,Uc.jsx=n,Uc.jsxs=n,Uc}var VE;function $k(){return VE||(VE=1,n2.exports=qk()),n2.exports}var g=$k(),r2={exports:{}},At={};/**
|
|
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 zE;function Zk(){if(zE)return At;zE=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),i=Symbol.for("react.consumer"),l=Symbol.for("react.context"),u=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),h=Symbol.for("react.memo"),v=Symbol.for("react.lazy"),m=Symbol.iterator;function E(C){return C===null||typeof C!="object"?null:(C=m&&C[m]||C["@@iterator"],typeof C=="function"?C:null)}var b={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},T=Object.assign,A={};function S(C,oe,ge){this.props=C,this.context=oe,this.refs=A,this.updater=ge||b}S.prototype.isReactComponent={},S.prototype.setState=function(C,oe){if(typeof C!="object"&&typeof C!="function"&&C!=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,C,oe,"setState")},S.prototype.forceUpdate=function(C){this.updater.enqueueForceUpdate(this,C,"forceUpdate")};function w(){}w.prototype=S.prototype;function R(C,oe,ge){this.props=C,this.context=oe,this.refs=A,this.updater=ge||b}var k=R.prototype=new w;k.constructor=R,T(k,S.prototype),k.isPureReactComponent=!0;var L=Array.isArray,I={H:null,A:null,T:null,S:null,V:null},N=Object.prototype.hasOwnProperty;function M(C,oe,ge,j,Ee,Pe){return ge=Pe.ref,{$$typeof:e,type:C,key:oe,ref:ge!==void 0?ge:null,props:Pe}}function D(C,oe){return M(C.type,oe,void 0,void 0,void 0,C.props)}function B(C){return typeof C=="object"&&C!==null&&C.$$typeof===e}function P(C){var oe={"=":"=0",":":"=2"};return"$"+C.replace(/[=:]/g,function(ge){return oe[ge]})}var U=/\/+/g;function F(C,oe){return typeof C=="object"&&C!==null&&C.key!=null?P(""+C.key):oe.toString(36)}function Q(){}function Y(C){switch(C.status){case"fulfilled":return C.value;case"rejected":throw C.reason;default:switch(typeof C.status=="string"?C.then(Q,Q):(C.status="pending",C.then(function(oe){C.status==="pending"&&(C.status="fulfilled",C.value=oe)},function(oe){C.status==="pending"&&(C.status="rejected",C.reason=oe)})),C.status){case"fulfilled":return C.value;case"rejected":throw C.reason}}throw C}function te(C,oe,ge,j,Ee){var Pe=typeof C;(Pe==="undefined"||Pe==="boolean")&&(C=null);var q=!1;if(C===null)q=!0;else switch(Pe){case"bigint":case"string":case"number":q=!0;break;case"object":switch(C.$$typeof){case e:case t:q=!0;break;case v:return q=C._init,te(q(C._payload),oe,ge,j,Ee)}}if(q)return Ee=Ee(C),q=j===""?"."+F(C,0):j,L(Ee)?(ge="",q!=null&&(ge=q.replace(U,"$&/")+"/"),te(Ee,oe,ge,"",function(qe){return qe})):Ee!=null&&(B(Ee)&&(Ee=D(Ee,ge+(Ee.key==null||C&&C.key===Ee.key?"":(""+Ee.key).replace(U,"$&/")+"/")+q)),oe.push(Ee)),1;q=0;var ae=j===""?".":j+":";if(L(C))for(var Te=0;Te<C.length;Te++)j=C[Te],Pe=ae+F(j,Te),q+=te(j,oe,ge,Pe,Ee);else if(Te=E(C),typeof Te=="function")for(C=Te.call(C),Te=0;!(j=C.next()).done;)j=j.value,Pe=ae+F(j,Te++),q+=te(j,oe,ge,Pe,Ee);else if(Pe==="object"){if(typeof C.then=="function")return te(Y(C),oe,ge,j,Ee);throw oe=String(C),Error("Objects are not valid as a React child (found: "+(oe==="[object Object]"?"object with keys {"+Object.keys(C).join(", ")+"}":oe)+"). If you meant to render a collection of children, use an array instead.")}return q}function V(C,oe,ge){if(C==null)return C;var j=[],Ee=0;return te(C,j,"","",function(Pe){return oe.call(ge,Pe,Ee++)}),j}function J(C){if(C._status===-1){var oe=C._result;oe=oe(),oe.then(function(ge){(C._status===0||C._status===-1)&&(C._status=1,C._result=ge)},function(ge){(C._status===0||C._status===-1)&&(C._status=2,C._result=ge)}),C._status===-1&&(C._status=0,C._result=oe)}if(C._status===1)return C._result.default;throw C._result}var X=typeof reportError=="function"?reportError:function(C){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var oe=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof C=="object"&&C!==null&&typeof C.message=="string"?String(C.message):String(C),error:C});if(!window.dispatchEvent(oe))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",C);return}console.error(C)};function se(){}return At.Children={map:V,forEach:function(C,oe,ge){V(C,function(){oe.apply(this,arguments)},ge)},count:function(C){var oe=0;return V(C,function(){oe++}),oe},toArray:function(C){return V(C,function(oe){return oe})||[]},only:function(C){if(!B(C))throw Error("React.Children.only expected to receive a single React element child.");return C}},At.Component=S,At.Fragment=n,At.Profiler=a,At.PureComponent=R,At.StrictMode=r,At.Suspense=d,At.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=I,At.__COMPILER_RUNTIME={__proto__:null,c:function(C){return I.H.useMemoCache(C)}},At.cache=function(C){return function(){return C.apply(null,arguments)}},At.cloneElement=function(C,oe,ge){if(C==null)throw Error("The argument must be a React element, but you passed "+C+".");var j=T({},C.props),Ee=C.key,Pe=void 0;if(oe!=null)for(q in oe.ref!==void 0&&(Pe=void 0),oe.key!==void 0&&(Ee=""+oe.key),oe)!N.call(oe,q)||q==="key"||q==="__self"||q==="__source"||q==="ref"&&oe.ref===void 0||(j[q]=oe[q]);var q=arguments.length-2;if(q===1)j.children=ge;else if(1<q){for(var ae=Array(q),Te=0;Te<q;Te++)ae[Te]=arguments[Te+2];j.children=ae}return M(C.type,Ee,void 0,void 0,Pe,j)},At.createContext=function(C){return C={$$typeof:l,_currentValue:C,_currentValue2:C,_threadCount:0,Provider:null,Consumer:null},C.Provider=C,C.Consumer={$$typeof:i,_context:C},C},At.createElement=function(C,oe,ge){var j,Ee={},Pe=null;if(oe!=null)for(j in oe.key!==void 0&&(Pe=""+oe.key),oe)N.call(oe,j)&&j!=="key"&&j!=="__self"&&j!=="__source"&&(Ee[j]=oe[j]);var q=arguments.length-2;if(q===1)Ee.children=ge;else if(1<q){for(var ae=Array(q),Te=0;Te<q;Te++)ae[Te]=arguments[Te+2];Ee.children=ae}if(C&&C.defaultProps)for(j in q=C.defaultProps,q)Ee[j]===void 0&&(Ee[j]=q[j]);return M(C,Pe,void 0,void 0,null,Ee)},At.createRef=function(){return{current:null}},At.forwardRef=function(C){return{$$typeof:u,render:C}},At.isValidElement=B,At.lazy=function(C){return{$$typeof:v,_payload:{_status:-1,_result:C},_init:J}},At.memo=function(C,oe){return{$$typeof:h,type:C,compare:oe===void 0?null:oe}},At.startTransition=function(C){var oe=I.T,ge={};I.T=ge;try{var j=C(),Ee=I.S;Ee!==null&&Ee(ge,j),typeof j=="object"&&j!==null&&typeof j.then=="function"&&j.then(se,X)}catch(Pe){X(Pe)}finally{I.T=oe}},At.unstable_useCacheRefresh=function(){return I.H.useCacheRefresh()},At.use=function(C){return I.H.use(C)},At.useActionState=function(C,oe,ge){return I.H.useActionState(C,oe,ge)},At.useCallback=function(C,oe){return I.H.useCallback(C,oe)},At.useContext=function(C){return I.H.useContext(C)},At.useDebugValue=function(){},At.useDeferredValue=function(C,oe){return I.H.useDeferredValue(C,oe)},At.useEffect=function(C,oe,ge){var j=I.H;if(typeof ge=="function")throw Error("useEffect CRUD overload is not enabled in this build of React.");return j.useEffect(C,oe)},At.useId=function(){return I.H.useId()},At.useImperativeHandle=function(C,oe,ge){return I.H.useImperativeHandle(C,oe,ge)},At.useInsertionEffect=function(C,oe){return I.H.useInsertionEffect(C,oe)},At.useLayoutEffect=function(C,oe){return I.H.useLayoutEffect(C,oe)},At.useMemo=function(C,oe){return I.H.useMemo(C,oe)},At.useOptimistic=function(C,oe){return I.H.useOptimistic(C,oe)},At.useReducer=function(C,oe,ge){return I.H.useReducer(C,oe,ge)},At.useRef=function(C){return I.H.useRef(C)},At.useState=function(C){return I.H.useState(C)},At.useSyncExternalStore=function(C,oe,ge){return I.H.useSyncExternalStore(C,oe,ge)},At.useTransition=function(){return I.H.useTransition()},At.version="19.1.0",At}var qE;function Bh(){return qE||(qE=1,r2.exports=Zk()),r2.exports}var p=Bh();const me=Cu(p),I8=zk({__proto__:null,default:me},[p]),Qk=new Map([["bold",p.createElement(p.Fragment,null,p.createElement("path",{d:"M228,128a12,12,0,0,1-12,12H69l51.52,51.51a12,12,0,0,1-17,17l-72-72a12,12,0,0,1,0-17l72-72a12,12,0,0,1,17,17L69,116H216A12,12,0,0,1,228,128Z"}))],["duotone",p.createElement(p.Fragment,null,p.createElement("path",{d:"M112,56V200L40,128Z",opacity:"0.2"}),p.createElement("path",{d:"M216,120H120V56a8,8,0,0,0-13.66-5.66l-72,72a8,8,0,0,0,0,11.32l72,72A8,8,0,0,0,120,200V136h96a8,8,0,0,0,0-16ZM104,180.69,51.31,128,104,75.31Z"}))],["fill",p.createElement(p.Fragment,null,p.createElement("path",{d:"M224,128a8,8,0,0,1-8,8H120v64a8,8,0,0,1-13.66,5.66l-72-72a8,8,0,0,1,0-11.32l72-72A8,8,0,0,1,120,56v64h96A8,8,0,0,1,224,128Z"}))],["light",p.createElement(p.Fragment,null,p.createElement("path",{d:"M222,128a6,6,0,0,1-6,6H54.49l61.75,61.76a6,6,0,1,1-8.48,8.48l-72-72a6,6,0,0,1,0-8.48l72-72a6,6,0,0,1,8.48,8.48L54.49,122H216A6,6,0,0,1,222,128Z"}))],["regular",p.createElement(p.Fragment,null,p.createElement("path",{d:"M224,128a8,8,0,0,1-8,8H59.31l58.35,58.34a8,8,0,0,1-11.32,11.32l-72-72a8,8,0,0,1,0-11.32l72-72a8,8,0,0,1,11.32,11.32L59.31,120H216A8,8,0,0,1,224,128Z"}))],["thin",p.createElement(p.Fragment,null,p.createElement("path",{d:"M220,128a4,4,0,0,1-4,4H49.66l65.17,65.17a4,4,0,0,1-5.66,5.66l-72-72a4,4,0,0,1,0-5.66l72-72a4,4,0,0,1,5.66,5.66L49.66,124H216A4,4,0,0,1,220,128Z"}))]]),Yk=new Map([["bold",p.createElement(p.Fragment,null,p.createElement("path",{d:"M224.49,136.49l-72,72a12,12,0,0,1-17-17L187,140H40a12,12,0,0,1,0-24H187L135.51,64.48a12,12,0,0,1,17-17l72,72A12,12,0,0,1,224.49,136.49Z"}))],["duotone",p.createElement(p.Fragment,null,p.createElement("path",{d:"M216,128l-72,72V56Z",opacity:"0.2"}),p.createElement("path",{d:"M221.66,122.34l-72-72A8,8,0,0,0,136,56v64H40a8,8,0,0,0,0,16h96v64a8,8,0,0,0,13.66,5.66l72-72A8,8,0,0,0,221.66,122.34ZM152,180.69V75.31L204.69,128Z"}))],["fill",p.createElement(p.Fragment,null,p.createElement("path",{d:"M221.66,133.66l-72,72A8,8,0,0,1,136,200V136H40a8,8,0,0,1,0-16h96V56a8,8,0,0,1,13.66-5.66l72,72A8,8,0,0,1,221.66,133.66Z"}))],["light",p.createElement(p.Fragment,null,p.createElement("path",{d:"M220.24,132.24l-72,72a6,6,0,0,1-8.48-8.48L201.51,134H40a6,6,0,0,1,0-12H201.51L139.76,60.24a6,6,0,0,1,8.48-8.48l72,72A6,6,0,0,1,220.24,132.24Z"}))],["regular",p.createElement(p.Fragment,null,p.createElement("path",{d:"M221.66,133.66l-72,72a8,8,0,0,1-11.32-11.32L196.69,136H40a8,8,0,0,1,0-16H196.69L138.34,61.66a8,8,0,0,1,11.32-11.32l72,72A8,8,0,0,1,221.66,133.66Z"}))],["thin",p.createElement(p.Fragment,null,p.createElement("path",{d:"M218.83,130.83l-72,72a4,4,0,0,1-5.66-5.66L206.34,132H40a4,4,0,0,1,0-8H206.34L141.17,58.83a4,4,0,0,1,5.66-5.66l72,72A4,4,0,0,1,218.83,130.83Z"}))]]),Gk=new Map([["bold",p.createElement(p.Fragment,null,p.createElement("path",{d:"M228,104a12,12,0,0,1-24,0V69l-59.51,59.51a12,12,0,0,1-17-17L187,52H152a12,12,0,0,1,0-24h64a12,12,0,0,1,12,12Zm-44,24a12,12,0,0,0-12,12v64H52V84h64a12,12,0,0,0,0-24H48A20,20,0,0,0,28,80V208a20,20,0,0,0,20,20H176a20,20,0,0,0,20-20V140A12,12,0,0,0,184,128Z"}))],["duotone",p.createElement(p.Fragment,null,p.createElement("path",{d:"M184,80V208a8,8,0,0,1-8,8H48a8,8,0,0,1-8-8V80a8,8,0,0,1,8-8H176A8,8,0,0,1,184,80Z",opacity:"0.2"}),p.createElement("path",{d:"M224,104a8,8,0,0,1-16,0V59.32l-66.33,66.34a8,8,0,0,1-11.32-11.32L196.68,48H152a8,8,0,0,1,0-16h64a8,8,0,0,1,8,8Zm-40,24a8,8,0,0,0-8,8v72H48V80h72a8,8,0,0,0,0-16H48A16,16,0,0,0,32,80V208a16,16,0,0,0,16,16H176a16,16,0,0,0,16-16V136A8,8,0,0,0,184,128Z"}))],["fill",p.createElement(p.Fragment,null,p.createElement("path",{d:"M192,136v72a16,16,0,0,1-16,16H48a16,16,0,0,1-16-16V80A16,16,0,0,1,48,64h72a8,8,0,0,1,0,16H48V208H176V136a8,8,0,0,1,16,0Zm32-96a8,8,0,0,0-8-8H152a8,8,0,0,0-5.66,13.66L172.69,72l-42.35,42.34a8,8,0,0,0,11.32,11.32L184,83.31l26.34,26.35A8,8,0,0,0,224,104Z"}))],["light",p.createElement(p.Fragment,null,p.createElement("path",{d:"M222,104a6,6,0,0,1-12,0V54.49l-69.75,69.75a6,6,0,0,1-8.48-8.48L201.51,46H152a6,6,0,0,1,0-12h64a6,6,0,0,1,6,6Zm-38,26a6,6,0,0,0-6,6v72a2,2,0,0,1-2,2H48a2,2,0,0,1-2-2V80a2,2,0,0,1,2-2h72a6,6,0,0,0,0-12H48A14,14,0,0,0,34,80V208a14,14,0,0,0,14,14H176a14,14,0,0,0,14-14V136A6,6,0,0,0,184,130Z"}))],["regular",p.createElement(p.Fragment,null,p.createElement("path",{d:"M224,104a8,8,0,0,1-16,0V59.32l-66.33,66.34a8,8,0,0,1-11.32-11.32L196.68,48H152a8,8,0,0,1,0-16h64a8,8,0,0,1,8,8Zm-40,24a8,8,0,0,0-8,8v72H48V80h72a8,8,0,0,0,0-16H48A16,16,0,0,0,32,80V208a16,16,0,0,0,16,16H176a16,16,0,0,0,16-16V136A8,8,0,0,0,184,128Z"}))],["thin",p.createElement(p.Fragment,null,p.createElement("path",{d:"M220,104a4,4,0,0,1-8,0V49.66l-73.16,73.17a4,4,0,0,1-5.66-5.66L206.34,44H152a4,4,0,0,1,0-8h64a4,4,0,0,1,4,4Zm-36,28a4,4,0,0,0-4,4v72a4,4,0,0,1-4,4H48a4,4,0,0,1-4-4V80a4,4,0,0,1,4-4h72a4,4,0,0,0,0-8H48A12,12,0,0,0,36,80V208a12,12,0,0,0,12,12H176a12,12,0,0,0,12-12V136A4,4,0,0,0,184,132Z"}))]]),Kk=new Map([["bold",p.createElement(p.Fragment,null,p.createElement("path",{d:"M204,64V168a12,12,0,0,1-24,0V93L72.49,200.49a12,12,0,0,1-17-17L163,76H88a12,12,0,0,1,0-24H192A12,12,0,0,1,204,64Z"}))],["duotone",p.createElement(p.Fragment,null,p.createElement("path",{d:"M192,64V168L88,64Z",opacity:"0.2"}),p.createElement("path",{d:"M192,56H88a8,8,0,0,0-5.66,13.66L128.69,116,58.34,186.34a8,8,0,0,0,11.32,11.32L140,127.31l46.34,46.35A8,8,0,0,0,200,168V64A8,8,0,0,0,192,56Zm-8,92.69-38.34-38.34h0L107.31,72H184Z"}))],["fill",p.createElement(p.Fragment,null,p.createElement("path",{d:"M200,64V168a8,8,0,0,1-13.66,5.66L140,127.31,69.66,197.66a8,8,0,0,1-11.32-11.32L128.69,116,82.34,69.66A8,8,0,0,1,88,56H192A8,8,0,0,1,200,64Z"}))],["light",p.createElement(p.Fragment,null,p.createElement("path",{d:"M198,64V168a6,6,0,0,1-12,0V78.48L68.24,196.24a6,6,0,0,1-8.48-8.48L177.52,70H88a6,6,0,0,1,0-12H192A6,6,0,0,1,198,64Z"}))],["regular",p.createElement(p.Fragment,null,p.createElement("path",{d:"M200,64V168a8,8,0,0,1-16,0V83.31L69.66,197.66a8,8,0,0,1-11.32-11.32L172.69,72H88a8,8,0,0,1,0-16H192A8,8,0,0,1,200,64Z"}))],["thin",p.createElement(p.Fragment,null,p.createElement("path",{d:"M196,64V168a4,4,0,0,1-8,0V73.66L66.83,194.83a4,4,0,0,1-5.66-5.66L182.34,68H88a4,4,0,0,1,0-8H192A4,4,0,0,1,196,64Z"}))]]),Xk=new Map([["bold",p.createElement(p.Fragment,null,p.createElement("path",{d:"M218.29,182.17a12,12,0,0,1-16.47,4.12L140,149.19V216a12,12,0,0,1-24,0V149.19l-61.82,37.1a12,12,0,1,1-12.35-20.58L104.68,128,41.83,90.29A12,12,0,1,1,54.18,69.71L116,106.81V40a12,12,0,0,1,24,0v66.81l61.82-37.1a12,12,0,1,1,12.35,20.58L151.32,128l62.85,37.71A12,12,0,0,1,218.29,182.17Z"}))],["duotone",p.createElement(p.Fragment,null,p.createElement("path",{d:"M200,128a72,72,0,1,1-72-72A72,72,0,0,1,200,128Z",opacity:"0.2"}),p.createElement("path",{d:"M214.86,180.12a8,8,0,0,1-11,2.74L136,142.13V216a8,8,0,0,1-16,0V142.13L52.12,182.86a8,8,0,1,1-8.23-13.72L112.45,128,43.89,86.86a8,8,0,1,1,8.23-13.72L120,113.87V40a8,8,0,0,1,16,0v73.87l67.88-40.73a8,8,0,1,1,8.23,13.72L143.55,128l68.56,41.14A8,8,0,0,1,214.86,180.12Z"}))],["fill",p.createElement(p.Fragment,null,p.createElement("path",{d:"M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm59.43,129.07a8,8,0,0,1-4,14.93,7.92,7.92,0,0,1-4-1.07L136,141.86V192a8,8,0,0,1-16,0V141.86L76.57,166.93A8,8,0,0,1,65.65,164a8,8,0,0,1,2.92-10.93L112,128,68.57,102.93a8,8,0,0,1,8-13.86L120,114.14V64a8,8,0,0,1,16,0v50.14l43.43-25.07a8,8,0,0,1,8,13.86L144,128Z"}))],["light",p.createElement(p.Fragment,null,p.createElement("path",{d:"M213.14,179.09a6,6,0,0,1-8.23,2.06L134,138.6V216a6,6,0,0,1-12,0V138.6L51.09,181.15A6.07,6.07,0,0,1,48,182a6,6,0,0,1-3.1-11.15L116.34,128,44.91,85.15a6,6,0,0,1,6.18-10.3L122,117.4V40a6,6,0,0,1,12,0v77.4l70.91-42.55a6,6,0,0,1,6.18,10.3L139.66,128l71.43,42.85A6,6,0,0,1,213.14,179.09Z"}))],["regular",p.createElement(p.Fragment,null,p.createElement("path",{d:"M214.86,180.12a8,8,0,0,1-11,2.74L136,142.13V216a8,8,0,0,1-16,0V142.13L52.12,182.86a8,8,0,1,1-8.23-13.72L112.45,128,43.89,86.86a8,8,0,1,1,8.23-13.72L120,113.87V40a8,8,0,0,1,16,0v73.87l67.88-40.73a8,8,0,1,1,8.23,13.72L143.55,128l68.56,41.14A8,8,0,0,1,214.86,180.12Z"}))],["thin",p.createElement(p.Fragment,null,p.createElement("path",{d:"M211.43,178.06a4,4,0,0,1-5.49,1.37L132,135.06V216a4,4,0,0,1-8,0V135.06L50.06,179.43a4,4,0,0,1-4.12-6.86L120.22,128,45.94,83.43a4,4,0,0,1,4.12-6.86L124,120.94V40a4,4,0,0,1,8,0v80.94l73.94-44.37a4,4,0,1,1,4.12,6.86L135.78,128l74.28,44.57A4,4,0,0,1,211.43,178.06Z"}))]]),Wk=new Map([["bold",p.createElement(p.Fragment,null,p.createElement("path",{d:"M232,44H160a43.86,43.86,0,0,0-32,13.85A43.86,43.86,0,0,0,96,44H24A12,12,0,0,0,12,56V200a12,12,0,0,0,12,12H96a20,20,0,0,1,20,20,12,12,0,0,0,24,0,20,20,0,0,1,20-20h72a12,12,0,0,0,12-12V56A12,12,0,0,0,232,44ZM96,188H36V68H96a20,20,0,0,1,20,20V192.81A43.79,43.79,0,0,0,96,188Zm124,0H160a43.71,43.71,0,0,0-20,4.83V88a20,20,0,0,1,20-20h60Z"}))],["duotone",p.createElement(p.Fragment,null,p.createElement("path",{d:"M232,56V200H160a32,32,0,0,0-32,32,32,32,0,0,0-32-32H24V56H96a32,32,0,0,1,32,32,32,32,0,0,1,32-32Z",opacity:"0.2"}),p.createElement("path",{d:"M232,48H160a40,40,0,0,0-32,16A40,40,0,0,0,96,48H24a8,8,0,0,0-8,8V200a8,8,0,0,0,8,8H96a24,24,0,0,1,24,24,8,8,0,0,0,16,0,24,24,0,0,1,24-24h72a8,8,0,0,0,8-8V56A8,8,0,0,0,232,48ZM96,192H32V64H96a24,24,0,0,1,24,24V200A39.81,39.81,0,0,0,96,192Zm128,0H160a39.81,39.81,0,0,0-24,8V88a24,24,0,0,1,24-24h64Z"}))],["fill",p.createElement(p.Fragment,null,p.createElement("path",{d:"M240,56V200a8,8,0,0,1-8,8H160a24,24,0,0,0-24,23.94,7.9,7.9,0,0,1-5.12,7.55A8,8,0,0,1,120,232a24,24,0,0,0-24-24H24a8,8,0,0,1-8-8V56a8,8,0,0,1,8-8H88a32,32,0,0,1,32,32v87.73a8.17,8.17,0,0,0,7.47,8.25,8,8,0,0,0,8.53-8V80a32,32,0,0,1,32-32h64A8,8,0,0,1,240,56Z"}))],["light",p.createElement(p.Fragment,null,p.createElement("path",{d:"M232,50H160a38,38,0,0,0-32,17.55A38,38,0,0,0,96,50H24a6,6,0,0,0-6,6V200a6,6,0,0,0,6,6H96a26,26,0,0,1,26,26,6,6,0,0,0,12,0,26,26,0,0,1,26-26h72a6,6,0,0,0,6-6V56A6,6,0,0,0,232,50ZM96,194H30V62H96a26,26,0,0,1,26,26V204.31A37.86,37.86,0,0,0,96,194Zm130,0H160a37.87,37.87,0,0,0-26,10.32V88a26,26,0,0,1,26-26h66Z"}))],["regular",p.createElement(p.Fragment,null,p.createElement("path",{d:"M232,48H160a40,40,0,0,0-32,16A40,40,0,0,0,96,48H24a8,8,0,0,0-8,8V200a8,8,0,0,0,8,8H96a24,24,0,0,1,24,24,8,8,0,0,0,16,0,24,24,0,0,1,24-24h72a8,8,0,0,0,8-8V56A8,8,0,0,0,232,48ZM96,192H32V64H96a24,24,0,0,1,24,24V200A39.81,39.81,0,0,0,96,192Zm128,0H160a39.81,39.81,0,0,0-24,8V88a24,24,0,0,1,24-24h64Z"}))],["thin",p.createElement(p.Fragment,null,p.createElement("path",{d:"M232,52H160a36,36,0,0,0-32,19.54A36,36,0,0,0,96,52H24a4,4,0,0,0-4,4V200a4,4,0,0,0,4,4H96a28,28,0,0,1,28,28,4,4,0,0,0,8,0,28,28,0,0,1,28-28h72a4,4,0,0,0,4-4V56A4,4,0,0,0,232,52ZM96,196H28V60H96a28,28,0,0,1,28,28V209.4A35.93,35.93,0,0,0,96,196Zm132,0H160a35.94,35.94,0,0,0-28,13.41V88a28,28,0,0,1,28-28h68Z"}))]]),Jk=new Map([["bold",p.createElement(p.Fragment,null,p.createElement("path",{d:"M232,44H160a43.86,43.86,0,0,0-32,13.85A43.86,43.86,0,0,0,96,44H24A12,12,0,0,0,12,56V200a12,12,0,0,0,12,12H96a20,20,0,0,1,20,20,12,12,0,0,0,24,0,20,20,0,0,1,20-20h72a12,12,0,0,0,12-12V56A12,12,0,0,0,232,44ZM96,188H36V68H96a20,20,0,0,1,20,20V192.81A43.79,43.79,0,0,0,96,188Zm124,0H160a43.71,43.71,0,0,0-20,4.83V88a20,20,0,0,1,20-20h60ZM164,96h32a12,12,0,0,1,0,24H164a12,12,0,0,1,0-24Zm44,52a12,12,0,0,1-12,12H164a12,12,0,0,1,0-24h32A12,12,0,0,1,208,148Z"}))],["duotone",p.createElement(p.Fragment,null,p.createElement("path",{d:"M232,56V200H160a32,32,0,0,0-32,32V88a32,32,0,0,1,32-32Z",opacity:"0.2"}),p.createElement("path",{d:"M232,48H160a40,40,0,0,0-32,16A40,40,0,0,0,96,48H24a8,8,0,0,0-8,8V200a8,8,0,0,0,8,8H96a24,24,0,0,1,24,24,8,8,0,0,0,16,0,24,24,0,0,1,24-24h72a8,8,0,0,0,8-8V56A8,8,0,0,0,232,48ZM96,192H32V64H96a24,24,0,0,1,24,24V200A39.81,39.81,0,0,0,96,192Zm128,0H160a39.81,39.81,0,0,0-24,8V88a24,24,0,0,1,24-24h64ZM160,88h40a8,8,0,0,1,0,16H160a8,8,0,0,1,0-16Zm48,40a8,8,0,0,1-8,8H160a8,8,0,0,1,0-16h40A8,8,0,0,1,208,128Zm0,32a8,8,0,0,1-8,8H160a8,8,0,0,1,0-16h40A8,8,0,0,1,208,160Z"}))],["fill",p.createElement(p.Fragment,null,p.createElement("path",{d:"M232,48H168a32,32,0,0,0-32,32v87.73a8.17,8.17,0,0,1-7.47,8.25,8,8,0,0,1-8.53-8V80A32,32,0,0,0,88,48H24a8,8,0,0,0-8,8V200a8,8,0,0,0,8,8H96a24,24,0,0,1,24,23.94,7.9,7.9,0,0,0,5.12,7.55A8,8,0,0,0,136,232a24,24,0,0,1,24-24h72a8,8,0,0,0,8-8V56A8,8,0,0,0,232,48ZM208,168H168.27a8.17,8.17,0,0,1-8.25-7.47,8,8,0,0,1,8-8.53h39.73a8.17,8.17,0,0,1,8.25,7.47A8,8,0,0,1,208,168Zm0-32H168.27a8.17,8.17,0,0,1-8.25-7.47,8,8,0,0,1,8-8.53h39.73a8.17,8.17,0,0,1,8.25,7.47A8,8,0,0,1,208,136Zm0-32H168.27A8.17,8.17,0,0,1,160,96.53,8,8,0,0,1,168,88h39.73A8.17,8.17,0,0,1,216,95.47,8,8,0,0,1,208,104Z"}))],["light",p.createElement(p.Fragment,null,p.createElement("path",{d:"M232,50H160a38,38,0,0,0-32,17.55A38,38,0,0,0,96,50H24a6,6,0,0,0-6,6V200a6,6,0,0,0,6,6H96a26,26,0,0,1,26,26,6,6,0,0,0,12,0,26,26,0,0,1,26-26h72a6,6,0,0,0,6-6V56A6,6,0,0,0,232,50ZM96,194H30V62H96a26,26,0,0,1,26,26V204.31A37.86,37.86,0,0,0,96,194Zm130,0H160a37.87,37.87,0,0,0-26,10.32V88a26,26,0,0,1,26-26h66ZM160,90h40a6,6,0,0,1,0,12H160a6,6,0,0,1,0-12Zm46,38a6,6,0,0,1-6,6H160a6,6,0,0,1,0-12h40A6,6,0,0,1,206,128Zm0,32a6,6,0,0,1-6,6H160a6,6,0,0,1,0-12h40A6,6,0,0,1,206,160Z"}))],["regular",p.createElement(p.Fragment,null,p.createElement("path",{d:"M232,48H160a40,40,0,0,0-32,16A40,40,0,0,0,96,48H24a8,8,0,0,0-8,8V200a8,8,0,0,0,8,8H96a24,24,0,0,1,24,24,8,8,0,0,0,16,0,24,24,0,0,1,24-24h72a8,8,0,0,0,8-8V56A8,8,0,0,0,232,48ZM96,192H32V64H96a24,24,0,0,1,24,24V200A39.81,39.81,0,0,0,96,192Zm128,0H160a39.81,39.81,0,0,0-24,8V88a24,24,0,0,1,24-24h64ZM160,88h40a8,8,0,0,1,0,16H160a8,8,0,0,1,0-16Zm48,40a8,8,0,0,1-8,8H160a8,8,0,0,1,0-16h40A8,8,0,0,1,208,128Zm0,32a8,8,0,0,1-8,8H160a8,8,0,0,1,0-16h40A8,8,0,0,1,208,160Z"}))],["thin",p.createElement(p.Fragment,null,p.createElement("path",{d:"M232,52H160a36,36,0,0,0-32,19.54A36,36,0,0,0,96,52H24a4,4,0,0,0-4,4V200a4,4,0,0,0,4,4H96a28,28,0,0,1,28,28,4,4,0,0,0,8,0,28,28,0,0,1,28-28h72a4,4,0,0,0,4-4V56A4,4,0,0,0,232,52ZM96,196H28V60H96a28,28,0,0,1,28,28V209.4A35.94,35.94,0,0,0,96,196Zm132,0H160a35.94,35.94,0,0,0-28,13.41V88a28,28,0,0,1,28-28h68ZM160,92h40a4,4,0,0,1,0,8H160a4,4,0,0,1,0-8Zm44,36a4,4,0,0,1-4,4H160a4,4,0,0,1,0-8h40A4,4,0,0,1,204,128Zm0,32a4,4,0,0,1-4,4H160a4,4,0,0,1,0-8h40A4,4,0,0,1,204,160Z"}))]]),eD=new Map([["bold",p.createElement(p.Fragment,null,p.createElement("path",{d:"M140,88a16,16,0,1,1,16,16A16,16,0,0,1,140,88ZM100,72a16,16,0,1,0,16,16A16,16,0,0,0,100,72Zm120,72a91.84,91.84,0,0,1-2.34,20.64L236.81,173a12,12,0,0,1-9.62,22l-18-7.85a92,92,0,0,1-162.46,0l-18,7.85a12,12,0,1,1-9.62-22l19.15-8.36A91.84,91.84,0,0,1,36,144v-4H16a12,12,0,0,1,0-24H36v-4a91.84,91.84,0,0,1,2.34-20.64L19.19,83a12,12,0,0,1,9.62-22l18,7.85a92,92,0,0,1,162.46,0l18-7.85a12,12,0,1,1,9.62,22l-19.15,8.36A91.84,91.84,0,0,1,220,112v4h20a12,12,0,0,1,0,24H220ZM60,116H196v-4a68,68,0,0,0-136,0Zm56,94.92V140H60v4A68.1,68.1,0,0,0,116,210.92ZM196,144v-4H140v70.92A68.1,68.1,0,0,0,196,144Z"}))],["duotone",p.createElement(p.Fragment,null,p.createElement("path",{d:"M208,128v16a80,80,0,0,1-160,0V128Z",opacity:"0.2"}),p.createElement("path",{d:"M144,92a12,12,0,1,1,12,12A12,12,0,0,1,144,92ZM100,80a12,12,0,1,0,12,12A12,12,0,0,0,100,80Zm116,64A87.76,87.76,0,0,1,213,167l22.24,9.72A8,8,0,0,1,232,192a7.89,7.89,0,0,1-3.2-.67L207.38,182a88,88,0,0,1-158.76,0L27.2,191.33A7.89,7.89,0,0,1,24,192a8,8,0,0,1-3.2-15.33L43,167A87.76,87.76,0,0,1,40,144v-8H16a8,8,0,0,1,0-16H40v-8a87.76,87.76,0,0,1,3-23L20.8,79.33a8,8,0,1,1,6.4-14.66L48.62,74a88,88,0,0,1,158.76,0l21.42-9.36a8,8,0,0,1,6.4,14.66L213,89.05a87.76,87.76,0,0,1,3,23v8h24a8,8,0,0,1,0,16H216ZM56,120H200v-8a72,72,0,0,0-144,0Zm64,95.54V136H56v8A72.08,72.08,0,0,0,120,215.54ZM200,144v-8H136v79.54A72.08,72.08,0,0,0,200,144Z"}))],["fill",p.createElement(p.Fragment,null,p.createElement("path",{d:"M168,92a12,12,0,1,1-12-12A12,12,0,0,1,168,92ZM100,80a12,12,0,1,0,12,12A12,12,0,0,0,100,80Zm116,64A87.76,87.76,0,0,1,213,167l22.24,9.72A8,8,0,0,1,232,192a7.89,7.89,0,0,1-3.2-.67L207.38,182a88,88,0,0,1-158.76,0L27.2,191.33A7.89,7.89,0,0,1,24,192a8,8,0,0,1-3.2-15.33L43,167A87.76,87.76,0,0,1,40,144v-8H16a8,8,0,0,1,0-16H40v-8a87.76,87.76,0,0,1,3-23L20.8,79.33a8,8,0,1,1,6.4-14.66L48.62,74a88,88,0,0,1,158.76,0l21.42-9.36a8,8,0,0,1,6.4,14.66L213,89.05a87.76,87.76,0,0,1,3,23v8h24a8,8,0,0,1,0,16H216Zm-80,0a8,8,0,0,0-16,0v64a8,8,0,0,0,16,0Zm64-32a72,72,0,0,0-144,0v8H200Z"}))],["light",p.createElement(p.Fragment,null,p.createElement("path",{d:"M146,92a10,10,0,1,1,10,10A10,10,0,0,1,146,92ZM100,82a10,10,0,1,0,10,10A10,10,0,0,0,100,82Zm146,46a6,6,0,0,1-6,6H214v10a85.88,85.88,0,0,1-3.45,24.08L234.4,178.5a6,6,0,0,1-4.8,11l-23.23-10.15a86,86,0,0,1-156.74,0L26.4,189.5a6,6,0,1,1-4.8-11l23.85-10.42A85.88,85.88,0,0,1,42,144V134H16a6,6,0,0,1,0-12H42V112a85.88,85.88,0,0,1,3.45-24.08L21.6,77.5a6,6,0,0,1,4.8-11L49.63,76.65a86,86,0,0,1,156.74,0L229.6,66.5a6,6,0,1,1,4.8,11L210.55,87.92A85.88,85.88,0,0,1,214,112v10h26A6,6,0,0,1,246,128ZM54,122H202V112a74,74,0,0,0-148,0Zm68,95.74V134H54v10A74.09,74.09,0,0,0,122,217.74ZM202,134H134v83.74A74.09,74.09,0,0,0,202,144Z"}))],["regular",p.createElement(p.Fragment,null,p.createElement("path",{d:"M144,92a12,12,0,1,1,12,12A12,12,0,0,1,144,92ZM100,80a12,12,0,1,0,12,12A12,12,0,0,0,100,80Zm116,64A87.76,87.76,0,0,1,213,167l22.24,9.72A8,8,0,0,1,232,192a7.89,7.89,0,0,1-3.2-.67L207.38,182a88,88,0,0,1-158.76,0L27.2,191.33A7.89,7.89,0,0,1,24,192a8,8,0,0,1-3.2-15.33L43,167A87.76,87.76,0,0,1,40,144v-8H16a8,8,0,0,1,0-16H40v-8a87.76,87.76,0,0,1,3-23L20.8,79.33a8,8,0,1,1,6.4-14.66L48.62,74a88,88,0,0,1,158.76,0l21.42-9.36a8,8,0,0,1,6.4,14.66L213,89.05a87.76,87.76,0,0,1,3,23v8h24a8,8,0,0,1,0,16H216ZM56,120H200v-8a72,72,0,0,0-144,0Zm64,95.54V136H56v8A72.08,72.08,0,0,0,120,215.54ZM200,144v-8H136v79.54A72.08,72.08,0,0,0,200,144Z"}))],["thin",p.createElement(p.Fragment,null,p.createElement("path",{d:"M148,92a8,8,0,1,1,8,8A8,8,0,0,1,148,92Zm-48-8a8,8,0,1,0,8,8A8,8,0,0,0,100,84Zm144,44a4,4,0,0,1-4,4H212v12a83.64,83.64,0,0,1-3.87,25.2l25.47,11.13A4,4,0,0,1,232,188a4.09,4.09,0,0,1-1.6-.33l-25-10.95a84,84,0,0,1-154.72,0l-25,10.95A4.09,4.09,0,0,1,24,188a4,4,0,0,1-1.6-7.67L47.87,169.2A83.64,83.64,0,0,1,44,144V132H16a4,4,0,0,1,0-8H44V112a83.64,83.64,0,0,1,3.87-25.2L22.4,75.67a4,4,0,0,1,3.2-7.34l25,11a84,84,0,0,1,154.72,0l25-11a4,4,0,1,1,3.2,7.34L208.13,86.8A83.64,83.64,0,0,1,212,112v12h28A4,4,0,0,1,244,128ZM52,124H204V112a76,76,0,0,0-152,0Zm72,95.89V132H52v12A76.09,76.09,0,0,0,124,219.89ZM204,132H132v87.89A76.09,76.09,0,0,0,204,144Z"}))]]),tD=new Map([["bold",p.createElement(p.Fragment,null,p.createElement("path",{d:"M184.49,136.49l-80,80a12,12,0,0,1-17-17L159,128,87.51,56.49a12,12,0,1,1,17-17l80,80A12,12,0,0,1,184.49,136.49Z"}))],["duotone",p.createElement(p.Fragment,null,p.createElement("path",{d:"M176,128,96,208V48Z",opacity:"0.2"}),p.createElement("path",{d:"M181.66,122.34l-80-80A8,8,0,0,0,88,48V208a8,8,0,0,0,13.66,5.66l80-80A8,8,0,0,0,181.66,122.34ZM104,188.69V67.31L164.69,128Z"}))],["fill",p.createElement(p.Fragment,null,p.createElement("path",{d:"M181.66,133.66l-80,80A8,8,0,0,1,88,208V48a8,8,0,0,1,13.66-5.66l80,80A8,8,0,0,1,181.66,133.66Z"}))],["light",p.createElement(p.Fragment,null,p.createElement("path",{d:"M180.24,132.24l-80,80a6,6,0,0,1-8.48-8.48L167.51,128,91.76,52.24a6,6,0,0,1,8.48-8.48l80,80A6,6,0,0,1,180.24,132.24Z"}))],["regular",p.createElement(p.Fragment,null,p.createElement("path",{d:"M181.66,133.66l-80,80a8,8,0,0,1-11.32-11.32L164.69,128,90.34,53.66a8,8,0,0,1,11.32-11.32l80,80A8,8,0,0,1,181.66,133.66Z"}))],["thin",p.createElement(p.Fragment,null,p.createElement("path",{d:"M178.83,130.83l-80,80a4,4,0,0,1-5.66-5.66L170.34,128,93.17,50.83a4,4,0,0,1,5.66-5.66l80,80A4,4,0,0,1,178.83,130.83Z"}))]]),nD=new Map([["bold",p.createElement(p.Fragment,null,p.createElement("path",{d:"M184.49,167.51a12,12,0,0,1,0,17l-48,48a12,12,0,0,1-17,0l-48-48a12,12,0,0,1,17-17L128,207l39.51-39.52A12,12,0,0,1,184.49,167.51Zm-96-79L128,49l39.51,39.52a12,12,0,0,0,17-17l-48-48a12,12,0,0,0-17,0l-48,48a12,12,0,0,0,17,17Z"}))],["duotone",p.createElement(p.Fragment,null,p.createElement("path",{d:"M80,176h96l-48,48ZM128,32,80,80h96Z",opacity:"0.2"}),p.createElement("path",{d:"M176,168H80a8,8,0,0,0-5.66,13.66l48,48a8,8,0,0,0,11.32,0l48-48A8,8,0,0,0,176,168Zm-48,44.69L99.31,184h57.38ZM80,88h96a8,8,0,0,0,5.66-13.66l-48-48a8,8,0,0,0-11.32,0l-48,48A8,8,0,0,0,80,88Zm48-44.69L156.69,72H99.31Z"}))],["fill",p.createElement(p.Fragment,null,p.createElement("path",{d:"M72.61,83.06a8,8,0,0,1,1.73-8.72l48-48a8,8,0,0,1,11.32,0l48,48A8,8,0,0,1,176,88H80A8,8,0,0,1,72.61,83.06ZM176,168H80a8,8,0,0,0-5.66,13.66l48,48a8,8,0,0,0,11.32,0l48-48A8,8,0,0,0,176,168Z"}))],["light",p.createElement(p.Fragment,null,p.createElement("path",{d:"M180.24,171.76a6,6,0,0,1,0,8.48l-48,48a6,6,0,0,1-8.48,0l-48-48a6,6,0,0,1,8.48-8.48L128,215.51l43.76-43.75A6,6,0,0,1,180.24,171.76Zm-96-87.52L128,40.49l43.76,43.75a6,6,0,0,0,8.48-8.48l-48-48a6,6,0,0,0-8.48,0l-48,48a6,6,0,0,0,8.48,8.48Z"}))],["regular",p.createElement(p.Fragment,null,p.createElement("path",{d:"M181.66,170.34a8,8,0,0,1,0,11.32l-48,48a8,8,0,0,1-11.32,0l-48-48a8,8,0,0,1,11.32-11.32L128,212.69l42.34-42.35A8,8,0,0,1,181.66,170.34Zm-96-84.68L128,43.31l42.34,42.35a8,8,0,0,0,11.32-11.32l-48-48a8,8,0,0,0-11.32,0l-48,48A8,8,0,0,0,85.66,85.66Z"}))],["thin",p.createElement(p.Fragment,null,p.createElement("path",{d:"M178.83,173.17a4,4,0,0,1,0,5.66l-48,48a4,4,0,0,1-5.66,0l-48-48a4,4,0,0,1,5.66-5.66L128,218.34l45.17-45.17A4,4,0,0,1,178.83,173.17Zm-96-90.34L128,37.66l45.17,45.17a4,4,0,1,0,5.66-5.66l-48-48a4,4,0,0,0-5.66,0l-48,48a4,4,0,0,0,5.66,5.66Z"}))]]),rD=new Map([["bold",p.createElement(p.Fragment,null,p.createElement("path",{d:"M120,128a16,16,0,1,1-16-16A16,16,0,0,1,120,128Zm32-16a16,16,0,1,0,16,16A16,16,0,0,0,152,112Zm84,16A108,108,0,0,1,78.77,224.15L46.34,235A20,20,0,0,1,21,209.66l10.81-32.43A108,108,0,1,1,236,128Zm-24,0A84,84,0,1,0,55.27,170.06a12,12,0,0,1,1,9.81l-9.93,29.79,29.79-9.93a12.1,12.1,0,0,1,3.8-.62,12,12,0,0,1,6,1.62A84,84,0,0,0,212,128Z"}))],["duotone",p.createElement(p.Fragment,null,p.createElement("path",{d:"M224,128A96,96,0,0,1,79.93,211.11h0L42.54,223.58a8,8,0,0,1-10.12-10.12l12.47-37.39h0A96,96,0,1,1,224,128Z",opacity:"0.2"}),p.createElement("path",{d:"M128,24A104,104,0,0,0,36.18,176.88L24.83,210.93a16,16,0,0,0,20.24,20.24l34.05-11.35A104,104,0,1,0,128,24Zm0,192a87.87,87.87,0,0,1-44.06-11.81,8,8,0,0,0-4-1.08,7.85,7.85,0,0,0-2.53.42L40,216,52.47,178.6a8,8,0,0,0-.66-6.54A88,88,0,1,1,128,216Zm12-88a12,12,0,1,1-12-12A12,12,0,0,1,140,128Zm-44,0a12,12,0,1,1-12-12A12,12,0,0,1,96,128Zm88,0a12,12,0,1,1-12-12A12,12,0,0,1,184,128Z"}))],["fill",p.createElement(p.Fragment,null,p.createElement("path",{d:"M128,24A104,104,0,0,0,36.18,176.88L24.83,210.93a16,16,0,0,0,20.24,20.24l34.05-11.35A104,104,0,1,0,128,24ZM84,140a12,12,0,1,1,12-12A12,12,0,0,1,84,140Zm44,0a12,12,0,1,1,12-12A12,12,0,0,1,128,140Zm44,0a12,12,0,1,1,12-12A12,12,0,0,1,172,140Z"}))],["light",p.createElement(p.Fragment,null,p.createElement("path",{d:"M138,128a10,10,0,1,1-10-10A10,10,0,0,1,138,128ZM84,118a10,10,0,1,0,10,10A10,10,0,0,0,84,118Zm88,0a10,10,0,1,0,10,10A10,10,0,0,0,172,118Zm58,10A102,102,0,0,1,79.31,217.65L44.44,229.27a14,14,0,0,1-17.71-17.71l11.62-34.87A102,102,0,1,1,230,128Zm-12,0A90,90,0,1,0,50.08,173.06a6,6,0,0,1,.5,4.91L38.12,215.35a2,2,0,0,0,2.53,2.53L78,205.42a6.2,6.2,0,0,1,1.9-.31,6.09,6.09,0,0,1,3,.81A90,90,0,0,0,218,128Z"}))],["regular",p.createElement(p.Fragment,null,p.createElement("path",{d:"M140,128a12,12,0,1,1-12-12A12,12,0,0,1,140,128ZM84,116a12,12,0,1,0,12,12A12,12,0,0,0,84,116Zm88,0a12,12,0,1,0,12,12A12,12,0,0,0,172,116Zm60,12A104,104,0,0,1,79.12,219.82L45.07,231.17a16,16,0,0,1-20.24-20.24l11.35-34.05A104,104,0,1,1,232,128Zm-16,0A88,88,0,1,0,51.81,172.06a8,8,0,0,1,.66,6.54L40,216,77.4,203.53a7.85,7.85,0,0,1,2.53-.42,8,8,0,0,1,4,1.08A88,88,0,0,0,216,128Z"}))],["thin",p.createElement(p.Fragment,null,p.createElement("path",{d:"M136,128a8,8,0,1,1-8-8A8,8,0,0,1,136,128Zm-52-8a8,8,0,1,0,8,8A8,8,0,0,0,84,120Zm88,0a8,8,0,1,0,8,8A8,8,0,0,0,172,120Zm56,8A100,100,0,0,1,79.5,215.47l-35.69,11.9a12,12,0,0,1-15.18-15.18l11.9-35.69A100,100,0,1,1,228,128Zm-8,0A92,92,0,1,0,48.35,174.07a4,4,0,0,1,.33,3.27L36.22,214.72a4,4,0,0,0,5.06,5.06l37.38-12.46a3.93,3.93,0,0,1,1.27-.21,4.05,4.05,0,0,1,2,.54A92,92,0,0,0,220,128Z"}))]]),aD=new Map([["bold",p.createElement(p.Fragment,null,p.createElement("path",{d:"M176.49,95.51a12,12,0,0,1,0,17l-56,56a12,12,0,0,1-17,0l-24-24a12,12,0,1,1,17-17L112,143l47.51-47.52A12,12,0,0,1,176.49,95.51ZM236,128A108,108,0,1,1,128,20,108.12,108.12,0,0,1,236,128Zm-24,0a84,84,0,1,0-84,84A84.09,84.09,0,0,0,212,128Z"}))],["duotone",p.createElement(p.Fragment,null,p.createElement("path",{d:"M224,128a96,96,0,1,1-96-96A96,96,0,0,1,224,128Z",opacity:"0.2"}),p.createElement("path",{d:"M173.66,98.34a8,8,0,0,1,0,11.32l-56,56a8,8,0,0,1-11.32,0l-24-24a8,8,0,0,1,11.32-11.32L112,148.69l50.34-50.35A8,8,0,0,1,173.66,98.34ZM232,128A104,104,0,1,1,128,24,104.11,104.11,0,0,1,232,128Zm-16,0a88,88,0,1,0-88,88A88.1,88.1,0,0,0,216,128Z"}))],["fill",p.createElement(p.Fragment,null,p.createElement("path",{d:"M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm45.66,85.66-56,56a8,8,0,0,1-11.32,0l-24-24a8,8,0,0,1,11.32-11.32L112,148.69l50.34-50.35a8,8,0,0,1,11.32,11.32Z"}))],["light",p.createElement(p.Fragment,null,p.createElement("path",{d:"M172.24,99.76a6,6,0,0,1,0,8.48l-56,56a6,6,0,0,1-8.48,0l-24-24a6,6,0,0,1,8.48-8.48L112,151.51l51.76-51.75A6,6,0,0,1,172.24,99.76ZM230,128A102,102,0,1,1,128,26,102.12,102.12,0,0,1,230,128Zm-12,0a90,90,0,1,0-90,90A90.1,90.1,0,0,0,218,128Z"}))],["regular",p.createElement(p.Fragment,null,p.createElement("path",{d:"M173.66,98.34a8,8,0,0,1,0,11.32l-56,56a8,8,0,0,1-11.32,0l-24-24a8,8,0,0,1,11.32-11.32L112,148.69l50.34-50.35A8,8,0,0,1,173.66,98.34ZM232,128A104,104,0,1,1,128,24,104.11,104.11,0,0,1,232,128Zm-16,0a88,88,0,1,0-88,88A88.1,88.1,0,0,0,216,128Z"}))],["thin",p.createElement(p.Fragment,null,p.createElement("path",{d:"M170.83,101.17a4,4,0,0,1,0,5.66l-56,56a4,4,0,0,1-5.66,0l-24-24a4,4,0,0,1,5.66-5.66L112,154.34l53.17-53.17A4,4,0,0,1,170.83,101.17ZM228,128A100,100,0,1,1,128,28,100.11,100.11,0,0,1,228,128Zm-8,0a92,92,0,1,0-92,92A92.1,92.1,0,0,0,220,128Z"}))]]),sD=new Map([["bold",p.createElement(p.Fragment,null,p.createElement("path",{d:"M128,20A108,108,0,1,0,236,128,108.12,108.12,0,0,0,128,20Zm0,192a84,84,0,1,1,84-84A84.09,84.09,0,0,1,128,212Z"}))],["duotone",p.createElement(p.Fragment,null,p.createElement("path",{d:"M224,128a96,96,0,1,1-96-96A96,96,0,0,1,224,128Z",opacity:"0.2"}),p.createElement("path",{d:"M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm0,192a88,88,0,1,1,88-88A88.1,88.1,0,0,1,128,216Z"}))],["fill",p.createElement(p.Fragment,null,p.createElement("path",{d:"M232,128A104,104,0,1,1,128,24,104.13,104.13,0,0,1,232,128Z"}))],["light",p.createElement(p.Fragment,null,p.createElement("path",{d:"M128,26A102,102,0,1,0,230,128,102.12,102.12,0,0,0,128,26Zm0,192a90,90,0,1,1,90-90A90.1,90.1,0,0,1,128,218Z"}))],["regular",p.createElement(p.Fragment,null,p.createElement("path",{d:"M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm0,192a88,88,0,1,1,88-88A88.1,88.1,0,0,1,128,216Z"}))],["thin",p.createElement(p.Fragment,null,p.createElement("path",{d:"M128,28A100,100,0,1,0,228,128,100.11,100.11,0,0,0,128,28Zm0,192a92,92,0,1,1,92-92A92.1,92.1,0,0,1,128,220Z"}))]]),iD=new Map([["bold",p.createElement(p.Fragment,null,p.createElement("path",{d:"M236,128a108,108,0,0,1-216,0c0-42.52,24.73-81.34,63-98.9A12,12,0,1,1,93,50.91C63.24,64.57,44,94.83,44,128a84,84,0,0,0,168,0c0-33.17-19.24-63.43-49-77.09A12,12,0,1,1,173,29.1C211.27,46.66,236,85.48,236,128Z"}))],["duotone",p.createElement(p.Fragment,null,p.createElement("path",{d:"M224,128a96,96,0,1,1-96-96A96,96,0,0,1,224,128Z",opacity:"0.2"}),p.createElement("path",{d:"M232,128a104,104,0,0,1-208,0c0-41,23.81-78.36,60.66-95.27a8,8,0,0,1,6.68,14.54C60.15,61.59,40,93.27,40,128a88,88,0,0,0,176,0c0-34.73-20.15-66.41-51.34-80.73a8,8,0,0,1,6.68-14.54C208.19,49.64,232,87,232,128Z"}))],["fill",p.createElement(p.Fragment,null,p.createElement("path",{d:"M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm0,176A72,72,0,0,1,92,65.64a8,8,0,0,1,8,13.85,56,56,0,1,0,56,0,8,8,0,0,1,8-13.85A72,72,0,0,1,128,200Z"}))],["light",p.createElement(p.Fragment,null,p.createElement("path",{d:"M230,128a102,102,0,0,1-204,0c0-40.18,23.35-76.86,59.5-93.45a6,6,0,0,1,5,10.9C58.61,60.09,38,92.49,38,128a90,90,0,0,0,180,0c0-35.51-20.61-67.91-52.5-82.55a6,6,0,0,1,5-10.9C206.65,51.14,230,87.82,230,128Z"}))],["regular",p.createElement(p.Fragment,null,p.createElement("path",{d:"M232,128a104,104,0,0,1-208,0c0-41,23.81-78.36,60.66-95.27a8,8,0,0,1,6.68,14.54C60.15,61.59,40,93.27,40,128a88,88,0,0,0,176,0c0-34.73-20.15-66.41-51.34-80.73a8,8,0,0,1,6.68-14.54C208.19,49.64,232,87,232,128Z"}))],["thin",p.createElement(p.Fragment,null,p.createElement("path",{d:"M228,128a100,100,0,0,1-200,0c0-39.4,22.9-75.37,58.33-91.63a4,4,0,1,1,3.34,7.27C57.07,58.6,36,91.71,36,128a92,92,0,0,0,184,0c0-36.29-21.07-69.4-53.67-84.36a4,4,0,1,1,3.34-7.27C205.1,52.63,228,88.6,228,128Z"}))]]),oD=new Map([["bold",p.createElement(p.Fragment,null,p.createElement("path",{d:"M216,28H88A12,12,0,0,0,76,40V76H40A12,12,0,0,0,28,88V216a12,12,0,0,0,12,12H168a12,12,0,0,0,12-12V180h36a12,12,0,0,0,12-12V40A12,12,0,0,0,216,28ZM156,204H52V100H156Zm48-48H180V88a12,12,0,0,0-12-12H100V52H204Z"}))],["duotone",p.createElement(p.Fragment,null,p.createElement("path",{d:"M216,40V168H168V88H88V40Z",opacity:"0.2"}),p.createElement("path",{d:"M216,32H88a8,8,0,0,0-8,8V80H40a8,8,0,0,0-8,8V216a8,8,0,0,0,8,8H168a8,8,0,0,0,8-8V176h40a8,8,0,0,0,8-8V40A8,8,0,0,0,216,32ZM160,208H48V96H160Zm48-48H176V88a8,8,0,0,0-8-8H96V48H208Z"}))],["fill",p.createElement(p.Fragment,null,p.createElement("path",{d:"M216,32H88a8,8,0,0,0-8,8V80H40a8,8,0,0,0-8,8V216a8,8,0,0,0,8,8H168a8,8,0,0,0,8-8V176h40a8,8,0,0,0,8-8V40A8,8,0,0,0,216,32Zm-8,128H176V88a8,8,0,0,0-8-8H96V48H208Z"}))],["light",p.createElement(p.Fragment,null,p.createElement("path",{d:"M216,34H88a6,6,0,0,0-6,6V82H40a6,6,0,0,0-6,6V216a6,6,0,0,0,6,6H168a6,6,0,0,0,6-6V174h42a6,6,0,0,0,6-6V40A6,6,0,0,0,216,34ZM162,210H46V94H162Zm48-48H174V88a6,6,0,0,0-6-6H94V46H210Z"}))],["regular",p.createElement(p.Fragment,null,p.createElement("path",{d:"M216,32H88a8,8,0,0,0-8,8V80H40a8,8,0,0,0-8,8V216a8,8,0,0,0,8,8H168a8,8,0,0,0,8-8V176h40a8,8,0,0,0,8-8V40A8,8,0,0,0,216,32ZM160,208H48V96H160Zm48-48H176V88a8,8,0,0,0-8-8H96V48H208Z"}))],["thin",p.createElement(p.Fragment,null,p.createElement("path",{d:"M216,36H88a4,4,0,0,0-4,4V84H40a4,4,0,0,0-4,4V216a4,4,0,0,0,4,4H168a4,4,0,0,0,4-4V172h44a4,4,0,0,0,4-4V40A4,4,0,0,0,216,36ZM164,212H44V92H164Zm48-48H172V88a4,4,0,0,0-4-4H92V44H212Z"}))]]),lD=new Map([["bold",p.createElement(p.Fragment,null,p.createElement("path",{d:"M108,136a16,16,0,1,1-16-16A16,16,0,0,1,108,136Zm56-16a16,16,0,1,0,16,16A16,16,0,0,0,164,120Zm76.07,76.56-67,29.71A20.15,20.15,0,0,1,146,214.9l-8.54-23.13c-3.13.14-6.27.24-9.45.24s-6.32-.1-9.45-.24L110,214.9a20.19,20.19,0,0,1-27.08,11.37l-67-29.71A19.93,19.93,0,0,1,4.62,173.41L34.15,57A20,20,0,0,1,50.37,42.19l36.06-5.93A20.26,20.26,0,0,1,109.22,51.1l4.41,17.41c4.74-.33,9.52-.51,14.37-.51s9.63.18,14.37.51l4.41-17.41a20.25,20.25,0,0,1,22.79-14.84l36.06,5.93A20,20,0,0,1,221.85,57l29.53,116.38A19.93,19.93,0,0,1,240.07,196.56ZM227.28,176,199.23,65.46l-30.07-4.94-2.84,11.17c2.9.58,5.78,1.2,8.61,1.92a12,12,0,1,1-5.86,23.27A168.43,168.43,0,0,0,128,92a168.43,168.43,0,0,0-41.07,4.88,12,12,0,0,1-5.86-23.27c2.83-.72,5.71-1.34,8.61-1.92L86.85,60.52,56.77,65.46,28.72,176l60.22,26.7,5-13.57c-4.37-.76-8.67-1.65-12.88-2.71a12,12,0,0,1,5.86-23.28A168.43,168.43,0,0,0,128,168a168.43,168.43,0,0,0,41.07-4.88,12,12,0,0,1,5.86,23.28c-4.21,1.06-8.51,1.95-12.88,2.71l5,13.57Z"}))],["duotone",p.createElement(p.Fragment,null,p.createElement("path",{d:"M235.21,185.59l-67,29.7a8.15,8.15,0,0,1-11-4.56L147,183.06a190.5,190.5,0,0,1-19,.94,190.5,190.5,0,0,1-19-.94L98.75,210.73a8.15,8.15,0,0,1-11,4.56l-67-29.7a8,8,0,0,1-4.55-9.24L45.77,60A8.08,8.08,0,0,1,52.31,54l36.06-5.92a8.1,8.1,0,0,1,9.21,6l5,19.63a192.32,192.32,0,0,1,50.88,0l5-19.63a8.1,8.1,0,0,1,9.21-6L203.69,54A8.08,8.08,0,0,1,210.23,60l29.53,116.37A8,8,0,0,1,235.21,185.59Z",opacity:"0.2"}),p.createElement("path",{d:"M104,140a12,12,0,1,1-12-12A12,12,0,0,1,104,140Zm60-12a12,12,0,1,0,12,12A12,12,0,0,0,164,128Zm74.45,64.9-67,29.71a16.17,16.17,0,0,1-21.71-9.1l-8.11-22q-6.72.45-13.63.46t-13.63-.46l-8.11,22a16.18,16.18,0,0,1-21.71,9.1l-67-29.71a15.94,15.94,0,0,1-9.06-18.51L38,58A16.08,16.08,0,0,1,51,46.13l36.06-5.92a16.21,16.21,0,0,1,18.26,11.88l3.26,12.83Q118.11,64,128,64t19.4.92l3.26-12.83a16.22,16.22,0,0,1,18.26-11.88L205,46.13A16.08,16.08,0,0,1,218,58l29.53,116.38A15.94,15.94,0,0,1,238.45,192.9ZM232,178.28,202.47,62s0,0-.08,0L166.33,56a.17.17,0,0,0-.17,0l-2.83,11.14c5,.94,10,2.06,14.83,3.42A8,8,0,0,1,176,86.31a8.09,8.09,0,0,1-2.16-.3A172.25,172.25,0,0,0,128,80a172.25,172.25,0,0,0-45.84,6,8,8,0,1,1-4.32-15.4c4.82-1.36,9.78-2.48,14.82-3.42L89.83,56a.21.21,0,0,0-.12,0h0L53.61,61.92a.24.24,0,0,0-.09,0L24,178.33,91,208a.21.21,0,0,0,.22,0L98,189.72a173.2,173.2,0,0,1-20.14-4.32A8,8,0,0,1,82.16,170,171.85,171.85,0,0,0,128,176a171.85,171.85,0,0,0,45.84-6,8,8,0,0,1,4.32,15.41A173.2,173.2,0,0,1,158,189.72L164.75,208a.22.22,0,0,0,.21,0Z"}))],["fill",p.createElement(p.Fragment,null,p.createElement("path",{d:"M247.51,174.39,218,58a16.08,16.08,0,0,0-13-11.88l-36.06-5.92a16.22,16.22,0,0,0-18.26,11.88l-.21.85a4,4,0,0,0,3.27,4.93,155.62,155.62,0,0,1,24.41,5.62,8.2,8.2,0,0,1,5.62,9.7,8,8,0,0,1-10.19,5.64,155.4,155.4,0,0,0-90.8-.1,8.22,8.22,0,0,1-10.28-4.81,8,8,0,0,1,5.08-10.33,156.85,156.85,0,0,1,24.72-5.72,4,4,0,0,0,3.27-4.93l-.21-.85A16.21,16.21,0,0,0,87.08,40.21L51,46.13A16.08,16.08,0,0,0,38,58L8.49,174.39a15.94,15.94,0,0,0,9.06,18.51l67,29.71a16.17,16.17,0,0,0,21.71-9.1l3.49-9.45a4,4,0,0,0-3.27-5.35,158.13,158.13,0,0,1-28.63-6.2,8.2,8.2,0,0,1-5.61-9.67,8,8,0,0,1,10.2-5.66,155.59,155.59,0,0,0,91.12,0,8,8,0,0,1,10.19,5.65,8.19,8.19,0,0,1-5.61,9.68,157.84,157.84,0,0,1-28.62,6.2,4,4,0,0,0-3.27,5.35l3.49,9.45a16.18,16.18,0,0,0,21.71,9.1l67-29.71A15.94,15.94,0,0,0,247.51,174.39ZM92,152a12,12,0,1,1,12-12A12,12,0,0,1,92,152Zm72,0a12,12,0,1,1,12-12A12,12,0,0,1,164,152Z"}))],["light",p.createElement(p.Fragment,null,p.createElement("path",{d:"M102,140a10,10,0,1,1-10-10A10,10,0,0,1,102,140Zm62-10a10,10,0,1,0,10,10A10,10,0,0,0,164,130Zm73.64,61.08-67,29.71a14.43,14.43,0,0,1-5.77,1.21,14.13,14.13,0,0,1-13.25-9.18L143,189.43c-4.93.37-9.92.58-15,.58s-10.06-.21-15-.58l-8.63,23.39A14.13,14.13,0,0,1,91.13,222a14.43,14.43,0,0,1-5.77-1.21l-67-29.71a14,14,0,0,1-7.93-16.2L40,58.5A14.07,14.07,0,0,1,51.34,48.11L87.4,42.19a14.19,14.19,0,0,1,16,10.39l3.69,14.53a197.5,197.5,0,0,1,41.82,0l3.69-14.53a14.19,14.19,0,0,1,16-10.39l36.06,5.92A14.07,14.07,0,0,1,216,58.5l29.53,116.38A14,14,0,0,1,237.64,191.08Zm-3.7-13.25L204.41,61.45a2.08,2.08,0,0,0-1.7-1.5L166.65,54a2.13,2.13,0,0,0-2.42,1.5l-3.36,13.24a169.28,169.28,0,0,1,16.75,3.76A6,6,0,0,1,176,84.31a5.71,5.71,0,0,1-1.62-.23A174.26,174.26,0,0,0,128,78a174.26,174.26,0,0,0-46.38,6.08,6,6,0,1,1-3.24-11.55,169.28,169.28,0,0,1,16.75-3.76L91.77,55.53A2.12,2.12,0,0,0,89.35,54L53.29,60a2.08,2.08,0,0,0-1.7,1.5L22.06,177.83a2,2,0,0,0,1.16,2.28l67,29.7a2.19,2.19,0,0,0,1.76,0,2.07,2.07,0,0,0,1.14-1.17l7.58-20.55a171.46,171.46,0,0,1-22.33-4.64,6,6,0,1,1,3.24-11.55A174.26,174.26,0,0,0,128,178a174.26,174.26,0,0,0,46.38-6.08,6,6,0,1,1,3.24,11.55,171.46,171.46,0,0,1-22.33,4.64l7.58,20.55a2.07,2.07,0,0,0,1.14,1.17,2.19,2.19,0,0,0,1.76,0l67-29.7A2,2,0,0,0,233.94,177.83Z"}))],["regular",p.createElement(p.Fragment,null,p.createElement("path",{d:"M104,140a12,12,0,1,1-12-12A12,12,0,0,1,104,140Zm60-12a12,12,0,1,0,12,12A12,12,0,0,0,164,128Zm74.45,64.9-67,29.71a16.17,16.17,0,0,1-21.71-9.1l-8.11-22q-6.72.45-13.63.46t-13.63-.46l-8.11,22a16.18,16.18,0,0,1-21.71,9.1l-67-29.71a15.93,15.93,0,0,1-9.06-18.51L38,58A16.07,16.07,0,0,1,51,46.14l36.06-5.93a16.22,16.22,0,0,1,18.26,11.88l3.26,12.84Q118.11,64,128,64t19.4.93l3.26-12.84a16.21,16.21,0,0,1,18.26-11.88L205,46.14A16.07,16.07,0,0,1,218,58l29.53,116.38A15.93,15.93,0,0,1,238.45,192.9ZM232,178.28,202.47,62s0,0-.08,0L166.33,56a.17.17,0,0,0-.17,0l-2.83,11.14c5,.94,10,2.06,14.83,3.42A8,8,0,0,1,176,86.31a8.09,8.09,0,0,1-2.16-.3A172.25,172.25,0,0,0,128,80a172.25,172.25,0,0,0-45.84,6,8,8,0,1,1-4.32-15.4c4.82-1.36,9.78-2.48,14.82-3.42L89.83,56s0,0-.12,0h0L53.61,61.93a.17.17,0,0,0-.09,0L24,178.33,91,208a.23.23,0,0,0,.22,0L98,189.72a173.2,173.2,0,0,1-20.14-4.32A8,8,0,0,1,82.16,170,171.85,171.85,0,0,0,128,176a171.85,171.85,0,0,0,45.84-6,8,8,0,0,1,4.32,15.41A173.2,173.2,0,0,1,158,189.72L164.75,208a.22.22,0,0,0,.21,0Z"}))],["thin",p.createElement(p.Fragment,null,p.createElement("path",{d:"M100,140a8,8,0,1,1-8-8A8,8,0,0,1,100,140Zm64-8a8,8,0,1,0,8,8A8,8,0,0,0,164,132Zm72.83,57.25-67,29.71a12.36,12.36,0,0,1-5,1,12.13,12.13,0,0,1-11.38-7.88l-9.15-24.81c-5.36.45-10.81.69-16.34.69s-11-.24-16.34-.69l-9.15,24.81A12.13,12.13,0,0,1,91.13,220a12.36,12.36,0,0,1-5-1l-67-29.71a12,12,0,0,1-6.8-13.88L41.9,59a12.06,12.06,0,0,1,9.77-8.91l36.06-5.92a12.18,12.18,0,0,1,13.73,8.91l4.12,16.22a195.47,195.47,0,0,1,44.84,0l4.12-16.22a12.18,12.18,0,0,1,13.73-8.91l36.06,5.92A12.06,12.06,0,0,1,214.1,59l29.53,116.38A12,12,0,0,1,236.83,189.25Zm-1-11.91L206.35,61A4.07,4.07,0,0,0,203,58L167,52.05a4.15,4.15,0,0,0-4.69,3L158.4,70.38a166.74,166.74,0,0,1,18.68,4.08,4,4,0,1,1-2.16,7.7A176.21,176.21,0,0,0,128,76a176.21,176.21,0,0,0-46.92,6.16,4,4,0,1,1-2.16-7.7A166.74,166.74,0,0,1,97.6,70.38L93.71,55a4.15,4.15,0,0,0-4.69-3L53,58a4.07,4.07,0,0,0-3.31,3L20.12,177.34a4,4,0,0,0,2.29,4.59l67,29.71a4.16,4.16,0,0,0,3.35,0A4,4,0,0,0,95,209.35l8.45-22.88a171.49,171.49,0,0,1-24.53-4.92,4,4,0,0,1,2.16-7.71A176.21,176.21,0,0,0,128,180a176.21,176.21,0,0,0,46.92-6.16,4,4,0,0,1,2.16,7.71,171.49,171.49,0,0,1-24.53,4.92L161,209.35a4,4,0,0,0,2.23,2.32,4.16,4.16,0,0,0,3.35,0l67-29.71A4,4,0,0,0,235.88,177.34Z"}))]]),uD=new Map([["bold",p.createElement(p.Fragment,null,p.createElement("path",{d:"M128,96a32,32,0,1,0,32,32A32,32,0,0,0,128,96Zm0,40a8,8,0,1,1,8-8A8,8,0,0,1,128,136Zm0-56A32,32,0,1,0,96,48,32,32,0,0,0,128,80Zm0-40a8,8,0,1,1-8,8A8,8,0,0,1,128,40Zm0,136a32,32,0,1,0,32,32A32,32,0,0,0,128,176Zm0,40a8,8,0,1,1,8-8A8,8,0,0,1,128,216Z"}))],["duotone",p.createElement(p.Fragment,null,p.createElement("path",{d:"M152,128a24,24,0,1,1-24-24A24,24,0,0,1,152,128ZM128,72a24,24,0,1,0-24-24A24,24,0,0,0,128,72Zm0,112a24,24,0,1,0,24,24A24,24,0,0,0,128,184Z",opacity:"0.2"}),p.createElement("path",{d:"M128,96a32,32,0,1,0,32,32A32,32,0,0,0,128,96Zm0,48a16,16,0,1,1,16-16A16,16,0,0,1,128,144Zm0-64A32,32,0,1,0,96,48,32,32,0,0,0,128,80Zm0-48a16,16,0,1,1-16,16A16,16,0,0,1,128,32Zm0,144a32,32,0,1,0,32,32A32,32,0,0,0,128,176Zm0,48a16,16,0,1,1,16-16A16,16,0,0,1,128,224Z"}))],["fill",p.createElement(p.Fragment,null,p.createElement("path",{d:"M156,128a28,28,0,1,1-28-28A28,28,0,0,1,156,128ZM128,76a28,28,0,1,0-28-28A28,28,0,0,0,128,76Zm0,104a28,28,0,1,0,28,28A28,28,0,0,0,128,180Z"}))],["light",p.createElement(p.Fragment,null,p.createElement("path",{d:"M128,98a30,30,0,1,0,30,30A30,30,0,0,0,128,98Zm0,48a18,18,0,1,1,18-18A18,18,0,0,1,128,146Zm0-68A30,30,0,1,0,98,48,30,30,0,0,0,128,78Zm0-48a18,18,0,1,1-18,18A18,18,0,0,1,128,30Zm0,148a30,30,0,1,0,30,30A30,30,0,0,0,128,178Zm0,48a18,18,0,1,1,18-18A18,18,0,0,1,128,226Z"}))],["regular",p.createElement(p.Fragment,null,p.createElement("path",{d:"M128,96a32,32,0,1,0,32,32A32,32,0,0,0,128,96Zm0,48a16,16,0,1,1,16-16A16,16,0,0,1,128,144Zm0-64A32,32,0,1,0,96,48,32,32,0,0,0,128,80Zm0-48a16,16,0,1,1-16,16A16,16,0,0,1,128,32Zm0,144a32,32,0,1,0,32,32A32,32,0,0,0,128,176Zm0,48a16,16,0,1,1,16-16A16,16,0,0,1,128,224Z"}))],["thin",p.createElement(p.Fragment,null,p.createElement("path",{d:"M128,100a28,28,0,1,0,28,28A28,28,0,0,0,128,100Zm0,48a20,20,0,1,1,20-20A20,20,0,0,1,128,148Zm0-72a28,28,0,1,0-28-28A28,28,0,0,0,128,76Zm0-48a20,20,0,1,1-20,20A20,20,0,0,1,128,28Zm0,152a28,28,0,1,0,28,28A28,28,0,0,0,128,180Zm0,48a20,20,0,1,1,20-20A20,20,0,0,1,128,228Z"}))]]),cD=new Map([["bold",p.createElement(p.Fragment,null,p.createElement("path",{d:"M128,76a52,52,0,1,0,52,52A52.06,52.06,0,0,0,128,76Zm0,80a28,28,0,1,1,28-28A28,28,0,0,1,128,156Zm92-27.21v-1.58l14-17.51a12,12,0,0,0,2.23-10.59A111.75,111.75,0,0,0,225,71.89,12,12,0,0,0,215.89,66L193.61,63.5l-1.11-1.11L190,40.1A12,12,0,0,0,184.11,31a111.67,111.67,0,0,0-27.23-11.27A12,12,0,0,0,146.3,22L128.79,36h-1.58L109.7,22a12,12,0,0,0-10.59-2.23A111.75,111.75,0,0,0,71.89,31.05,12,12,0,0,0,66,40.11L63.5,62.39,62.39,63.5,40.1,66A12,12,0,0,0,31,71.89,111.67,111.67,0,0,0,19.77,99.12,12,12,0,0,0,22,109.7l14,17.51v1.58L22,146.3a12,12,0,0,0-2.23,10.59,111.75,111.75,0,0,0,11.29,27.22A12,12,0,0,0,40.11,190l22.28,2.48,1.11,1.11L66,215.9A12,12,0,0,0,71.89,225a111.67,111.67,0,0,0,27.23,11.27A12,12,0,0,0,109.7,234l17.51-14h1.58l17.51,14a12,12,0,0,0,10.59,2.23A111.75,111.75,0,0,0,184.11,225a12,12,0,0,0,5.91-9.06l2.48-22.28,1.11-1.11L215.9,190a12,12,0,0,0,9.06-5.91,111.67,111.67,0,0,0,11.27-27.23A12,12,0,0,0,234,146.3Zm-24.12-4.89a70.1,70.1,0,0,1,0,8.2,12,12,0,0,0,2.61,8.22l12.84,16.05A86.47,86.47,0,0,1,207,166.86l-20.43,2.27a12,12,0,0,0-7.65,4,69,69,0,0,1-5.8,5.8,12,12,0,0,0-4,7.65L166.86,207a86.47,86.47,0,0,1-10.49,4.35l-16.05-12.85a12,12,0,0,0-7.5-2.62c-.24,0-.48,0-.72,0a70.1,70.1,0,0,1-8.2,0,12.06,12.06,0,0,0-8.22,2.6L99.63,211.33A86.47,86.47,0,0,1,89.14,207l-2.27-20.43a12,12,0,0,0-4-7.65,69,69,0,0,1-5.8-5.8,12,12,0,0,0-7.65-4L49,166.86a86.47,86.47,0,0,1-4.35-10.49l12.84-16.05a12,12,0,0,0,2.61-8.22,70.1,70.1,0,0,1,0-8.2,12,12,0,0,0-2.61-8.22L44.67,99.63A86.47,86.47,0,0,1,49,89.14l20.43-2.27a12,12,0,0,0,7.65-4,69,69,0,0,1,5.8-5.8,12,12,0,0,0,4-7.65L89.14,49a86.47,86.47,0,0,1,10.49-4.35l16.05,12.85a12.06,12.06,0,0,0,8.22,2.6,70.1,70.1,0,0,1,8.2,0,12,12,0,0,0,8.22-2.6l16.05-12.85A86.47,86.47,0,0,1,166.86,49l2.27,20.43a12,12,0,0,0,4,7.65,69,69,0,0,1,5.8,5.8,12,12,0,0,0,7.65,4L207,89.14a86.47,86.47,0,0,1,4.35,10.49l-12.84,16.05A12,12,0,0,0,195.88,123.9Z"}))],["duotone",p.createElement(p.Fragment,null,p.createElement("path",{d:"M207.86,123.18l16.78-21a99.14,99.14,0,0,0-10.07-24.29l-26.7-3a81,81,0,0,0-6.81-6.81l-3-26.71a99.43,99.43,0,0,0-24.3-10l-21,16.77a81.59,81.59,0,0,0-9.64,0l-21-16.78A99.14,99.14,0,0,0,77.91,41.43l-3,26.7a81,81,0,0,0-6.81,6.81l-26.71,3a99.43,99.43,0,0,0-10,24.3l16.77,21a81.59,81.59,0,0,0,0,9.64l-16.78,21a99.14,99.14,0,0,0,10.07,24.29l26.7,3a81,81,0,0,0,6.81,6.81l3,26.71a99.43,99.43,0,0,0,24.3,10l21-16.77a81.59,81.59,0,0,0,9.64,0l21,16.78a99.14,99.14,0,0,0,24.29-10.07l3-26.7a81,81,0,0,0,6.81-6.81l26.71-3a99.43,99.43,0,0,0,10-24.3l-16.77-21A81.59,81.59,0,0,0,207.86,123.18ZM128,168a40,40,0,1,1,40-40A40,40,0,0,1,128,168Z",opacity:"0.2"}),p.createElement("path",{d:"M128,80a48,48,0,1,0,48,48A48.05,48.05,0,0,0,128,80Zm0,80a32,32,0,1,1,32-32A32,32,0,0,1,128,160Zm88-29.84q.06-2.16,0-4.32l14.92-18.64a8,8,0,0,0,1.48-7.06,107.6,107.6,0,0,0-10.88-26.25,8,8,0,0,0-6-3.93l-23.72-2.64q-1.48-1.56-3-3L186,40.54a8,8,0,0,0-3.94-6,107.29,107.29,0,0,0-26.25-10.86,8,8,0,0,0-7.06,1.48L130.16,40Q128,40,125.84,40L107.2,25.11a8,8,0,0,0-7.06-1.48A107.6,107.6,0,0,0,73.89,34.51a8,8,0,0,0-3.93,6L67.32,64.27q-1.56,1.49-3,3L40.54,70a8,8,0,0,0-6,3.94,107.71,107.71,0,0,0-10.87,26.25,8,8,0,0,0,1.49,7.06L40,125.84Q40,128,40,130.16L25.11,148.8a8,8,0,0,0-1.48,7.06,107.6,107.6,0,0,0,10.88,26.25,8,8,0,0,0,6,3.93l23.72,2.64q1.49,1.56,3,3L70,215.46a8,8,0,0,0,3.94,6,107.71,107.71,0,0,0,26.25,10.87,8,8,0,0,0,7.06-1.49L125.84,216q2.16.06,4.32,0l18.64,14.92a8,8,0,0,0,7.06,1.48,107.21,107.21,0,0,0,26.25-10.88,8,8,0,0,0,3.93-6l2.64-23.72q1.56-1.48,3-3L215.46,186a8,8,0,0,0,6-3.94,107.71,107.71,0,0,0,10.87-26.25,8,8,0,0,0-1.49-7.06Zm-16.1-6.5a73.93,73.93,0,0,1,0,8.68,8,8,0,0,0,1.74,5.48l14.19,17.73a91.57,91.57,0,0,1-6.23,15L187,173.11a8,8,0,0,0-5.1,2.64,74.11,74.11,0,0,1-6.14,6.14,8,8,0,0,0-2.64,5.1l-2.51,22.58a91.32,91.32,0,0,1-15,6.23l-17.74-14.19a8,8,0,0,0-5-1.75h-.48a73.93,73.93,0,0,1-8.68,0,8.06,8.06,0,0,0-5.48,1.74L100.45,215.8a91.57,91.57,0,0,1-15-6.23L82.89,187a8,8,0,0,0-2.64-5.1,74.11,74.11,0,0,1-6.14-6.14,8,8,0,0,0-5.1-2.64L46.43,170.6a91.32,91.32,0,0,1-6.23-15l14.19-17.74a8,8,0,0,0,1.74-5.48,73.93,73.93,0,0,1,0-8.68,8,8,0,0,0-1.74-5.48L40.2,100.45a91.57,91.57,0,0,1,6.23-15L69,82.89a8,8,0,0,0,5.1-2.64,74.11,74.11,0,0,1,6.14-6.14A8,8,0,0,0,82.89,69L85.4,46.43a91.32,91.32,0,0,1,15-6.23l17.74,14.19a8,8,0,0,0,5.48,1.74,73.93,73.93,0,0,1,8.68,0,8.06,8.06,0,0,0,5.48-1.74L155.55,40.2a91.57,91.57,0,0,1,15,6.23L173.11,69a8,8,0,0,0,2.64,5.1,74.11,74.11,0,0,1,6.14,6.14,8,8,0,0,0,5.1,2.64l22.58,2.51a91.32,91.32,0,0,1,6.23,15l-14.19,17.74A8,8,0,0,0,199.87,123.66Z"}))],["fill",p.createElement(p.Fragment,null,p.createElement("path",{d:"M216,130.16q.06-2.16,0-4.32l14.92-18.64a8,8,0,0,0,1.48-7.06,107.6,107.6,0,0,0-10.88-26.25,8,8,0,0,0-6-3.93l-23.72-2.64q-1.48-1.56-3-3L186,40.54a8,8,0,0,0-3.94-6,107.29,107.29,0,0,0-26.25-10.86,8,8,0,0,0-7.06,1.48L130.16,40Q128,40,125.84,40L107.2,25.11a8,8,0,0,0-7.06-1.48A107.6,107.6,0,0,0,73.89,34.51a8,8,0,0,0-3.93,6L67.32,64.27q-1.56,1.49-3,3L40.54,70a8,8,0,0,0-6,3.94,107.71,107.71,0,0,0-10.87,26.25,8,8,0,0,0,1.49,7.06L40,125.84Q40,128,40,130.16L25.11,148.8a8,8,0,0,0-1.48,7.06,107.6,107.6,0,0,0,10.88,26.25,8,8,0,0,0,6,3.93l23.72,2.64q1.49,1.56,3,3L70,215.46a8,8,0,0,0,3.94,6,107.71,107.71,0,0,0,26.25,10.87,8,8,0,0,0,7.06-1.49L125.84,216q2.16.06,4.32,0l18.64,14.92a8,8,0,0,0,7.06,1.48,107.21,107.21,0,0,0,26.25-10.88,8,8,0,0,0,3.93-6l2.64-23.72q1.56-1.48,3-3L215.46,186a8,8,0,0,0,6-3.94,107.71,107.71,0,0,0,10.87-26.25,8,8,0,0,0-1.49-7.06ZM128,168a40,40,0,1,1,40-40A40,40,0,0,1,128,168Z"}))],["light",p.createElement(p.Fragment,null,p.createElement("path",{d:"M128,82a46,46,0,1,0,46,46A46.06,46.06,0,0,0,128,82Zm0,80a34,34,0,1,1,34-34A34,34,0,0,1,128,162ZM214,130.84c.06-1.89.06-3.79,0-5.68L229.33,106a6,6,0,0,0,1.11-5.29A105.34,105.34,0,0,0,219.76,74.9a6,6,0,0,0-4.53-3l-24.45-2.71q-1.93-2.07-4-4l-2.72-24.46a6,6,0,0,0-3-4.53,105.65,105.65,0,0,0-25.77-10.66A6,6,0,0,0,150,26.68l-19.2,15.37c-1.89-.06-3.79-.06-5.68,0L106,26.67a6,6,0,0,0-5.29-1.11A105.34,105.34,0,0,0,74.9,36.24a6,6,0,0,0-3,4.53L69.23,65.22q-2.07,1.94-4,4L40.76,72a6,6,0,0,0-4.53,3,105.65,105.65,0,0,0-10.66,25.77A6,6,0,0,0,26.68,106l15.37,19.2c-.06,1.89-.06,3.79,0,5.68L26.67,150.05a6,6,0,0,0-1.11,5.29A105.34,105.34,0,0,0,36.24,181.1a6,6,0,0,0,4.53,3l24.45,2.71q1.94,2.07,4,4L72,215.24a6,6,0,0,0,3,4.53,105.65,105.65,0,0,0,25.77,10.66,6,6,0,0,0,5.29-1.11L125.16,214c1.89.06,3.79.06,5.68,0l19.21,15.38a6,6,0,0,0,3.75,1.31,6.2,6.2,0,0,0,1.54-.2,105.34,105.34,0,0,0,25.76-10.68,6,6,0,0,0,3-4.53l2.71-24.45q2.07-1.93,4-4l24.46-2.72a6,6,0,0,0,4.53-3,105.49,105.49,0,0,0,10.66-25.77,6,6,0,0,0-1.11-5.29Zm-3.1,41.63-23.64,2.63a6,6,0,0,0-3.82,2,75.14,75.14,0,0,1-6.31,6.31,6,6,0,0,0-2,3.82l-2.63,23.63A94.28,94.28,0,0,1,155.14,218l-18.57-14.86a6,6,0,0,0-3.75-1.31h-.36a78.07,78.07,0,0,1-8.92,0,6,6,0,0,0-4.11,1.3L100.87,218a94.13,94.13,0,0,1-17.34-7.17L80.9,187.21a6,6,0,0,0-2-3.82,75.14,75.14,0,0,1-6.31-6.31,6,6,0,0,0-3.82-2l-23.63-2.63A94.28,94.28,0,0,1,38,155.14l14.86-18.57a6,6,0,0,0,1.3-4.11,78.07,78.07,0,0,1,0-8.92,6,6,0,0,0-1.3-4.11L38,100.87a94.13,94.13,0,0,1,7.17-17.34L68.79,80.9a6,6,0,0,0,3.82-2,75.14,75.14,0,0,1,6.31-6.31,6,6,0,0,0,2-3.82l2.63-23.63A94.28,94.28,0,0,1,100.86,38l18.57,14.86a6,6,0,0,0,4.11,1.3,78.07,78.07,0,0,1,8.92,0,6,6,0,0,0,4.11-1.3L155.13,38a94.13,94.13,0,0,1,17.34,7.17l2.63,23.64a6,6,0,0,0,2,3.82,75.14,75.14,0,0,1,6.31,6.31,6,6,0,0,0,3.82,2l23.63,2.63A94.28,94.28,0,0,1,218,100.86l-14.86,18.57a6,6,0,0,0-1.3,4.11,78.07,78.07,0,0,1,0,8.92,6,6,0,0,0,1.3,4.11L218,155.13A94.13,94.13,0,0,1,210.85,172.47Z"}))],["regular",p.createElement(p.Fragment,null,p.createElement("path",{d:"M128,80a48,48,0,1,0,48,48A48.05,48.05,0,0,0,128,80Zm0,80a32,32,0,1,1,32-32A32,32,0,0,1,128,160Zm88-29.84q.06-2.16,0-4.32l14.92-18.64a8,8,0,0,0,1.48-7.06,107.21,107.21,0,0,0-10.88-26.25,8,8,0,0,0-6-3.93l-23.72-2.64q-1.48-1.56-3-3L186,40.54a8,8,0,0,0-3.94-6,107.71,107.71,0,0,0-26.25-10.87,8,8,0,0,0-7.06,1.49L130.16,40Q128,40,125.84,40L107.2,25.11a8,8,0,0,0-7.06-1.48A107.6,107.6,0,0,0,73.89,34.51a8,8,0,0,0-3.93,6L67.32,64.27q-1.56,1.49-3,3L40.54,70a8,8,0,0,0-6,3.94,107.71,107.71,0,0,0-10.87,26.25,8,8,0,0,0,1.49,7.06L40,125.84Q40,128,40,130.16L25.11,148.8a8,8,0,0,0-1.48,7.06,107.21,107.21,0,0,0,10.88,26.25,8,8,0,0,0,6,3.93l23.72,2.64q1.49,1.56,3,3L70,215.46a8,8,0,0,0,3.94,6,107.71,107.71,0,0,0,26.25,10.87,8,8,0,0,0,7.06-1.49L125.84,216q2.16.06,4.32,0l18.64,14.92a8,8,0,0,0,7.06,1.48,107.21,107.21,0,0,0,26.25-10.88,8,8,0,0,0,3.93-6l2.64-23.72q1.56-1.48,3-3L215.46,186a8,8,0,0,0,6-3.94,107.71,107.71,0,0,0,10.87-26.25,8,8,0,0,0-1.49-7.06Zm-16.1-6.5a73.93,73.93,0,0,1,0,8.68,8,8,0,0,0,1.74,5.48l14.19,17.73a91.57,91.57,0,0,1-6.23,15L187,173.11a8,8,0,0,0-5.1,2.64,74.11,74.11,0,0,1-6.14,6.14,8,8,0,0,0-2.64,5.1l-2.51,22.58a91.32,91.32,0,0,1-15,6.23l-17.74-14.19a8,8,0,0,0-5-1.75h-.48a73.93,73.93,0,0,1-8.68,0,8,8,0,0,0-5.48,1.74L100.45,215.8a91.57,91.57,0,0,1-15-6.23L82.89,187a8,8,0,0,0-2.64-5.1,74.11,74.11,0,0,1-6.14-6.14,8,8,0,0,0-5.1-2.64L46.43,170.6a91.32,91.32,0,0,1-6.23-15l14.19-17.74a8,8,0,0,0,1.74-5.48,73.93,73.93,0,0,1,0-8.68,8,8,0,0,0-1.74-5.48L40.2,100.45a91.57,91.57,0,0,1,6.23-15L69,82.89a8,8,0,0,0,5.1-2.64,74.11,74.11,0,0,1,6.14-6.14A8,8,0,0,0,82.89,69L85.4,46.43a91.32,91.32,0,0,1,15-6.23l17.74,14.19a8,8,0,0,0,5.48,1.74,73.93,73.93,0,0,1,8.68,0,8,8,0,0,0,5.48-1.74L155.55,40.2a91.57,91.57,0,0,1,15,6.23L173.11,69a8,8,0,0,0,2.64,5.1,74.11,74.11,0,0,1,6.14,6.14,8,8,0,0,0,5.1,2.64l22.58,2.51a91.32,91.32,0,0,1,6.23,15l-14.19,17.74A8,8,0,0,0,199.87,123.66Z"}))],["thin",p.createElement(p.Fragment,null,p.createElement("path",{d:"M128,84a44,44,0,1,0,44,44A44.05,44.05,0,0,0,128,84Zm0,80a36,36,0,1,1,36-36A36,36,0,0,1,128,164Zm83.93-32.49q.13-3.51,0-7l15.83-19.79a4,4,0,0,0,.75-3.53A103.64,103.64,0,0,0,218,75.9a4,4,0,0,0-3-2l-25.19-2.8c-1.58-1.71-3.24-3.37-4.95-4.95L182.07,41a4,4,0,0,0-2-3A104,104,0,0,0,154.82,27.5a4,4,0,0,0-3.53.74L131.51,44.07q-3.51-.14-7,0L104.7,28.24a4,4,0,0,0-3.53-.75A103.64,103.64,0,0,0,75.9,38a4,4,0,0,0-2,3l-2.8,25.19c-1.71,1.58-3.37,3.24-4.95,4.95L41,73.93a4,4,0,0,0-3,2A104,104,0,0,0,27.5,101.18a4,4,0,0,0,.74,3.53l15.83,19.78q-.14,3.51,0,7L28.24,151.3a4,4,0,0,0-.75,3.53A103.64,103.64,0,0,0,38,180.1a4,4,0,0,0,3,2l25.19,2.8c1.58,1.71,3.24,3.37,4.95,4.95l2.8,25.2a4,4,0,0,0,2,3,104,104,0,0,0,25.28,10.46,4,4,0,0,0,3.53-.74l19.78-15.83q3.51.13,7,0l19.79,15.83a4,4,0,0,0,2.5.88,4,4,0,0,0,1-.13A103.64,103.64,0,0,0,180.1,218a4,4,0,0,0,2-3l2.8-25.19c1.71-1.58,3.37-3.24,4.95-4.95l25.2-2.8a4,4,0,0,0,3-2,104,104,0,0,0,10.46-25.28,4,4,0,0,0-.74-3.53Zm.17,42.83-24.67,2.74a4,4,0,0,0-2.55,1.32,76.2,76.2,0,0,1-6.48,6.48,4,4,0,0,0-1.32,2.55l-2.74,24.66a95.45,95.45,0,0,1-19.64,8.15l-19.38-15.51a4,4,0,0,0-2.5-.87h-.24a73.67,73.67,0,0,1-9.16,0,4,4,0,0,0-2.74.87l-19.37,15.5a95.33,95.33,0,0,1-19.65-8.13l-2.74-24.67a4,4,0,0,0-1.32-2.55,76.2,76.2,0,0,1-6.48-6.48,4,4,0,0,0-2.55-1.32l-24.66-2.74a95.45,95.45,0,0,1-8.15-19.64l15.51-19.38a4,4,0,0,0,.87-2.74,77.76,77.76,0,0,1,0-9.16,4,4,0,0,0-.87-2.74l-15.5-19.37A95.33,95.33,0,0,1,43.9,81.66l24.67-2.74a4,4,0,0,0,2.55-1.32,76.2,76.2,0,0,1,6.48-6.48,4,4,0,0,0,1.32-2.55l2.74-24.66a95.45,95.45,0,0,1,19.64-8.15l19.38,15.51a4,4,0,0,0,2.74.87,73.67,73.67,0,0,1,9.16,0,4,4,0,0,0,2.74-.87l19.37-15.5a95.33,95.33,0,0,1,19.65,8.13l2.74,24.67a4,4,0,0,0,1.32,2.55,76.2,76.2,0,0,1,6.48,6.48,4,4,0,0,0,2.55,1.32l24.66,2.74a95.45,95.45,0,0,1,8.15,19.64l-15.51,19.38a4,4,0,0,0-.87,2.74,77.76,77.76,0,0,1,0,9.16,4,4,0,0,0,.87,2.74l15.5,19.37A95.33,95.33,0,0,1,212.1,174.34Z"}))]]),dD=new Map([["bold",p.createElement(p.Fragment,null,p.createElement("path",{d:"M212.62,75.17A63.7,63.7,0,0,0,206.39,26,12,12,0,0,0,196,20a63.71,63.71,0,0,0-50,24H126A63.71,63.71,0,0,0,76,20a12,12,0,0,0-10.39,6,63.7,63.7,0,0,0-6.23,49.17A61.5,61.5,0,0,0,52,104v8a60.1,60.1,0,0,0,45.76,58.28A43.66,43.66,0,0,0,92,192v4H76a20,20,0,0,1-20-20,44.05,44.05,0,0,0-44-44,12,12,0,0,0,0,24,20,20,0,0,1,20,20,44.05,44.05,0,0,0,44,44H92v12a12,12,0,0,0,24,0V192a20,20,0,0,1,40,0v40a12,12,0,0,0,24,0V192a43.66,43.66,0,0,0-5.76-21.72A60.1,60.1,0,0,0,220,112v-8A61.5,61.5,0,0,0,212.62,75.17ZM196,112a36,36,0,0,1-36,36H112a36,36,0,0,1-36-36v-8a37.87,37.87,0,0,1,6.13-20.12,11.65,11.65,0,0,0,1.58-11.49,39.9,39.9,0,0,1-.4-27.72,39.87,39.87,0,0,1,26.41,17.8A12,12,0,0,0,119.82,68h32.35a12,12,0,0,0,10.11-5.53,39.84,39.84,0,0,1,26.41-17.8,39.9,39.9,0,0,1-.4,27.72,12,12,0,0,0,1.61,11.53A37.85,37.85,0,0,1,196,104Z"}))],["duotone",p.createElement(p.Fragment,null,p.createElement("path",{d:"M208,104v8a48,48,0,0,1-48,48H136a32,32,0,0,1,32,32v40H104V192a32,32,0,0,1,32-32H112a48,48,0,0,1-48-48v-8a49.28,49.28,0,0,1,8.51-27.3A51.92,51.92,0,0,1,76,32a52,52,0,0,1,43.83,24h32.34A52,52,0,0,1,196,32a51.92,51.92,0,0,1,3.49,44.7A49.28,49.28,0,0,1,208,104Z",opacity:"0.2"}),p.createElement("path",{d:"M208.3,75.68A59.74,59.74,0,0,0,202.93,28,8,8,0,0,0,196,24a59.75,59.75,0,0,0-48,24H124A59.75,59.75,0,0,0,76,24a8,8,0,0,0-6.93,4,59.78,59.78,0,0,0-5.38,47.68A58.14,58.14,0,0,0,56,104v8a56.06,56.06,0,0,0,48.44,55.47A39.8,39.8,0,0,0,96,192v8H72a24,24,0,0,1-24-24A40,40,0,0,0,8,136a8,8,0,0,0,0,16,24,24,0,0,1,24,24,40,40,0,0,0,40,40H96v16a8,8,0,0,0,16,0V192a24,24,0,0,1,48,0v40a8,8,0,0,0,16,0V192a39.8,39.8,0,0,0-8.44-24.53A56.06,56.06,0,0,0,216,112v-8A58,58,0,0,0,208.3,75.68ZM200,112a40,40,0,0,1-40,40H112a40,40,0,0,1-40-40v-8a41.74,41.74,0,0,1,6.9-22.48A8,8,0,0,0,80,73.83a43.81,43.81,0,0,1,.79-33.58,43.88,43.88,0,0,1,32.32,20.06A8,8,0,0,0,119.82,64h32.35a8,8,0,0,0,6.74-3.69,43.87,43.87,0,0,1,32.32-20.06A43.81,43.81,0,0,1,192,73.83a8.09,8.09,0,0,0,1,7.65A41.76,41.76,0,0,1,200,104Z"}))],["fill",p.createElement(p.Fragment,null,p.createElement("path",{d:"M216,104v8a56.06,56.06,0,0,1-48.44,55.47A39.8,39.8,0,0,1,176,192v40a8,8,0,0,1-8,8H104a8,8,0,0,1-8-8V216H72a40,40,0,0,1-40-40A24,24,0,0,0,8,152a8,8,0,0,1,0-16,40,40,0,0,1,40,40,24,24,0,0,0,24,24H96v-8a39.8,39.8,0,0,1,8.44-24.53A56.06,56.06,0,0,1,56,112v-8a58.14,58.14,0,0,1,7.69-28.32A59.78,59.78,0,0,1,69.07,28,8,8,0,0,1,76,24a59.75,59.75,0,0,1,48,24h24a59.75,59.75,0,0,1,48-24,8,8,0,0,1,6.93,4,59.74,59.74,0,0,1,5.37,47.68A58,58,0,0,1,216,104Z"}))],["light",p.createElement(p.Fragment,null,p.createElement("path",{d:"M206.13,75.92A57.79,57.79,0,0,0,201.2,29a6,6,0,0,0-5.2-3,57.77,57.77,0,0,0-47,24H123A57.77,57.77,0,0,0,76,26a6,6,0,0,0-5.2,3,57.79,57.79,0,0,0-4.93,46.92A55.88,55.88,0,0,0,58,104v8a54.06,54.06,0,0,0,50.45,53.87A37.85,37.85,0,0,0,98,192v10H72a26,26,0,0,1-26-26A38,38,0,0,0,8,138a6,6,0,0,0,0,12,26,26,0,0,1,26,26,38,38,0,0,0,38,38H98v18a6,6,0,0,0,12,0V192a26,26,0,0,1,52,0v40a6,6,0,0,0,12,0V192a37.85,37.85,0,0,0-10.45-26.13A54.06,54.06,0,0,0,214,112v-8A55.88,55.88,0,0,0,206.13,75.92ZM202,112a42,42,0,0,1-42,42H112a42,42,0,0,1-42-42v-8a43.86,43.86,0,0,1,7.3-23.69,6,6,0,0,0,.81-5.76,45.85,45.85,0,0,1,1.43-36.42,45.85,45.85,0,0,1,35.23,21.1A6,6,0,0,0,119.83,62h32.34a6,6,0,0,0,5.06-2.76,45.83,45.83,0,0,1,35.23-21.11,45.85,45.85,0,0,1,1.43,36.42,6,6,0,0,0,.79,5.74A43.78,43.78,0,0,1,202,104Z"}))],["regular",p.createElement(p.Fragment,null,p.createElement("path",{d:"M208.31,75.68A59.78,59.78,0,0,0,202.93,28,8,8,0,0,0,196,24a59.75,59.75,0,0,0-48,24H124A59.75,59.75,0,0,0,76,24a8,8,0,0,0-6.93,4,59.78,59.78,0,0,0-5.38,47.68A58.14,58.14,0,0,0,56,104v8a56.06,56.06,0,0,0,48.44,55.47A39.8,39.8,0,0,0,96,192v8H72a24,24,0,0,1-24-24A40,40,0,0,0,8,136a8,8,0,0,0,0,16,24,24,0,0,1,24,24,40,40,0,0,0,40,40H96v16a8,8,0,0,0,16,0V192a24,24,0,0,1,48,0v40a8,8,0,0,0,16,0V192a39.8,39.8,0,0,0-8.44-24.53A56.06,56.06,0,0,0,216,112v-8A58.14,58.14,0,0,0,208.31,75.68ZM200,112a40,40,0,0,1-40,40H112a40,40,0,0,1-40-40v-8a41.74,41.74,0,0,1,6.9-22.48A8,8,0,0,0,80,73.83a43.81,43.81,0,0,1,.79-33.58,43.88,43.88,0,0,1,32.32,20.06A8,8,0,0,0,119.82,64h32.35a8,8,0,0,0,6.74-3.69,43.87,43.87,0,0,1,32.32-20.06A43.81,43.81,0,0,1,192,73.83a8.09,8.09,0,0,0,1,7.65A41.72,41.72,0,0,1,200,104Z"}))],["thin",p.createElement(p.Fragment,null,p.createElement("path",{d:"M203.94,76.16A55.73,55.73,0,0,0,199.46,30,4,4,0,0,0,196,28a55.78,55.78,0,0,0-46,24H122A55.78,55.78,0,0,0,76,28a4,4,0,0,0-3.46,2,55.73,55.73,0,0,0-4.48,46.16A53.78,53.78,0,0,0,60,104v8a52.06,52.06,0,0,0,52,52h1.41A36,36,0,0,0,100,192v12H72a28,28,0,0,1-28-28A36,36,0,0,0,8,140a4,4,0,0,0,0,8,28,28,0,0,1,28,28,36,36,0,0,0,36,36h28v20a4,4,0,0,0,8,0V192a28,28,0,0,1,56,0v40a4,4,0,0,0,8,0V192a36,36,0,0,0-13.41-28H160a52.06,52.06,0,0,0,52-52v-8A53.78,53.78,0,0,0,203.94,76.16ZM204,112a44.05,44.05,0,0,1-44,44H112a44.05,44.05,0,0,1-44-44v-8a45.76,45.76,0,0,1,7.71-24.89,4,4,0,0,0,.53-3.84,47.82,47.82,0,0,1,2.1-39.21,47.8,47.8,0,0,1,38.12,22.1A4,4,0,0,0,119.83,60h32.34a4,4,0,0,0,3.37-1.84,47.8,47.8,0,0,1,38.12-22.1,47.82,47.82,0,0,1,2.1,39.21,4,4,0,0,0,.53,3.83A45.85,45.85,0,0,1,204,104Z"}))]]),fD=new Map([["bold",p.createElement(p.Fragment,null,p.createElement("path",{d:"M128,20A108,108,0,1,0,236,128,108.12,108.12,0,0,0,128,20Zm0,187a113.4,113.4,0,0,1-20.39-35h40.82a116.94,116.94,0,0,1-10,20.77A108.61,108.61,0,0,1,128,207Zm-26.49-59a135.42,135.42,0,0,1,0-40h53a135.42,135.42,0,0,1,0,40ZM44,128a83.49,83.49,0,0,1,2.43-20H77.25a160.63,160.63,0,0,0,0,40H46.43A83.49,83.49,0,0,1,44,128Zm84-79a113.4,113.4,0,0,1,20.39,35H107.59a116.94,116.94,0,0,1,10-20.77A108.61,108.61,0,0,1,128,49Zm50.73,59h30.82a83.52,83.52,0,0,1,0,40H178.75a160.63,160.63,0,0,0,0-40Zm20.77-24H173.71a140.82,140.82,0,0,0-15.5-34.36A84.51,84.51,0,0,1,199.52,84ZM97.79,49.64A140.82,140.82,0,0,0,82.29,84H56.48A84.51,84.51,0,0,1,97.79,49.64ZM56.48,172H82.29a140.82,140.82,0,0,0,15.5,34.36A84.51,84.51,0,0,1,56.48,172Zm101.73,34.36A140.82,140.82,0,0,0,173.71,172h25.81A84.51,84.51,0,0,1,158.21,206.36Z"}))],["duotone",p.createElement(p.Fragment,null,p.createElement("path",{d:"M224,128a96,96,0,1,1-96-96A96,96,0,0,1,224,128Z",opacity:"0.2"}),p.createElement("path",{d:"M128,24h0A104,104,0,1,0,232,128,104.12,104.12,0,0,0,128,24Zm88,104a87.61,87.61,0,0,1-3.33,24H174.16a157.44,157.44,0,0,0,0-48h38.51A87.61,87.61,0,0,1,216,128ZM102,168H154a115.11,115.11,0,0,1-26,45A115.27,115.27,0,0,1,102,168Zm-3.9-16a140.84,140.84,0,0,1,0-48h59.88a140.84,140.84,0,0,1,0,48ZM40,128a87.61,87.61,0,0,1,3.33-24H81.84a157.44,157.44,0,0,0,0,48H43.33A87.61,87.61,0,0,1,40,128ZM154,88H102a115.11,115.11,0,0,1,26-45A115.27,115.27,0,0,1,154,88Zm52.33,0H170.71a135.28,135.28,0,0,0-22.3-45.6A88.29,88.29,0,0,1,206.37,88ZM107.59,42.4A135.28,135.28,0,0,0,85.29,88H49.63A88.29,88.29,0,0,1,107.59,42.4ZM49.63,168H85.29a135.28,135.28,0,0,0,22.3,45.6A88.29,88.29,0,0,1,49.63,168Zm98.78,45.6a135.28,135.28,0,0,0,22.3-45.6h35.66A88.29,88.29,0,0,1,148.41,213.6Z"}))],["fill",p.createElement(p.Fragment,null,p.createElement("path",{d:"M128,24h0A104,104,0,1,0,232,128,104.12,104.12,0,0,0,128,24Zm78.36,64H170.71a135.28,135.28,0,0,0-22.3-45.6A88.29,88.29,0,0,1,206.37,88ZM216,128a87.61,87.61,0,0,1-3.33,24H174.16a157.44,157.44,0,0,0,0-48h38.51A87.61,87.61,0,0,1,216,128ZM128,43a115.27,115.27,0,0,1,26,45H102A115.11,115.11,0,0,1,128,43ZM102,168H154a115.11,115.11,0,0,1-26,45A115.27,115.27,0,0,1,102,168Zm-3.9-16a140.84,140.84,0,0,1,0-48h59.88a140.84,140.84,0,0,1,0,48Zm50.35,61.6a135.28,135.28,0,0,0,22.3-45.6h35.66A88.29,88.29,0,0,1,148.41,213.6Z"}))],["light",p.createElement(p.Fragment,null,p.createElement("path",{d:"M128,26A102,102,0,1,0,230,128,102.12,102.12,0,0,0,128,26Zm81.57,64H169.19a132.58,132.58,0,0,0-25.73-50.67A90.29,90.29,0,0,1,209.57,90ZM218,128a89.7,89.7,0,0,1-3.83,26H171.81a155.43,155.43,0,0,0,0-52h42.36A89.7,89.7,0,0,1,218,128Zm-90,87.83a110,110,0,0,1-15.19-19.45A124.24,124.24,0,0,1,99.35,166h57.3a124.24,124.24,0,0,1-13.46,30.38A110,110,0,0,1,128,215.83ZM96.45,154a139.18,139.18,0,0,1,0-52h63.1a139.18,139.18,0,0,1,0,52ZM38,128a89.7,89.7,0,0,1,3.83-26H84.19a155.43,155.43,0,0,0,0,52H41.83A89.7,89.7,0,0,1,38,128Zm90-87.83a110,110,0,0,1,15.19,19.45A124.24,124.24,0,0,1,156.65,90H99.35a124.24,124.24,0,0,1,13.46-30.38A110,110,0,0,1,128,40.17Zm-15.46-.84A132.58,132.58,0,0,0,86.81,90H46.43A90.29,90.29,0,0,1,112.54,39.33ZM46.43,166H86.81a132.58,132.58,0,0,0,25.73,50.67A90.29,90.29,0,0,1,46.43,166Zm97,50.67A132.58,132.58,0,0,0,169.19,166h40.38A90.29,90.29,0,0,1,143.46,216.67Z"}))],["regular",p.createElement(p.Fragment,null,p.createElement("path",{d:"M128,24h0A104,104,0,1,0,232,128,104.12,104.12,0,0,0,128,24Zm88,104a87.61,87.61,0,0,1-3.33,24H174.16a157.44,157.44,0,0,0,0-48h38.51A87.61,87.61,0,0,1,216,128ZM102,168H154a115.11,115.11,0,0,1-26,45A115.27,115.27,0,0,1,102,168Zm-3.9-16a140.84,140.84,0,0,1,0-48h59.88a140.84,140.84,0,0,1,0,48ZM40,128a87.61,87.61,0,0,1,3.33-24H81.84a157.44,157.44,0,0,0,0,48H43.33A87.61,87.61,0,0,1,40,128ZM154,88H102a115.11,115.11,0,0,1,26-45A115.27,115.27,0,0,1,154,88Zm52.33,0H170.71a135.28,135.28,0,0,0-22.3-45.6A88.29,88.29,0,0,1,206.37,88ZM107.59,42.4A135.28,135.28,0,0,0,85.29,88H49.63A88.29,88.29,0,0,1,107.59,42.4ZM49.63,168H85.29a135.28,135.28,0,0,0,22.3,45.6A88.29,88.29,0,0,1,49.63,168Zm98.78,45.6a135.28,135.28,0,0,0,22.3-45.6h35.66A88.29,88.29,0,0,1,148.41,213.6Z"}))],["thin",p.createElement(p.Fragment,null,p.createElement("path",{d:"M128,28h0A100,100,0,1,0,228,128,100.11,100.11,0,0,0,128,28Zm0,190.61c-6.33-6.09-23-24.41-31.27-54.61h62.54C151,194.2,134.33,212.52,128,218.61ZM94.82,156a140.42,140.42,0,0,1,0-56h66.36a140.42,140.42,0,0,1,0,56ZM128,37.39c6.33,6.09,23,24.41,31.27,54.61H96.73C105,61.8,121.67,43.48,128,37.39ZM169.41,100h46.23a92.09,92.09,0,0,1,0,56H169.41a152.65,152.65,0,0,0,0-56Zm43.25-8h-45a129.39,129.39,0,0,0-29.19-55.4A92.25,92.25,0,0,1,212.66,92ZM117.54,36.6A129.39,129.39,0,0,0,88.35,92h-45A92.25,92.25,0,0,1,117.54,36.6ZM40.36,100H86.59a152.65,152.65,0,0,0,0,56H40.36a92.09,92.09,0,0,1,0-56Zm3,64h45a129.39,129.39,0,0,0,29.19,55.4A92.25,92.25,0,0,1,43.34,164Zm95.12,55.4A129.39,129.39,0,0,0,167.65,164h45A92.25,92.25,0,0,1,138.46,219.4Z"}))]]),hD=new Map([["bold",p.createElement(p.Fragment,null,p.createElement("path",{d:"M224,60H32A20,20,0,0,0,12,80v96a20,20,0,0,0,20,20H224a20,20,0,0,0,20-20V80A20,20,0,0,0,224,60Zm-4,112H36V84H220Zm-56-44a16,16,0,1,1,16,16A16,16,0,0,1,164,128Z"}))],["duotone",p.createElement(p.Fragment,null,p.createElement("path",{d:"M232,80v96a8,8,0,0,1-8,8H32a8,8,0,0,1-8-8V80a8,8,0,0,1,8-8H224A8,8,0,0,1,232,80Z",opacity:"0.2"}),p.createElement("path",{d:"M224,64H32A16,16,0,0,0,16,80v96a16,16,0,0,0,16,16H224a16,16,0,0,0,16-16V80A16,16,0,0,0,224,64Zm0,112H32V80H224v96Zm-24-48a12,12,0,1,1-12-12A12,12,0,0,1,200,128Z"}))],["fill",p.createElement(p.Fragment,null,p.createElement("path",{d:"M224,64H32A16,16,0,0,0,16,80v96a16,16,0,0,0,16,16H224a16,16,0,0,0,16-16V80A16,16,0,0,0,224,64Zm-36,76a12,12,0,1,1,12-12A12,12,0,0,1,188,140Z"}))],["light",p.createElement(p.Fragment,null,p.createElement("path",{d:"M224,66H32A14,14,0,0,0,18,80v96a14,14,0,0,0,14,14H224a14,14,0,0,0,14-14V80A14,14,0,0,0,224,66Zm2,110a2,2,0,0,1-2,2H32a2,2,0,0,1-2-2V80a2,2,0,0,1,2-2H224a2,2,0,0,1,2,2Zm-28-48a10,10,0,1,1-10-10A10,10,0,0,1,198,128Z"}))],["regular",p.createElement(p.Fragment,null,p.createElement("path",{d:"M224,64H32A16,16,0,0,0,16,80v96a16,16,0,0,0,16,16H224a16,16,0,0,0,16-16V80A16,16,0,0,0,224,64Zm0,112H32V80H224v96Zm-24-48a12,12,0,1,1-12-12A12,12,0,0,1,200,128Z"}))],["thin",p.createElement(p.Fragment,null,p.createElement("path",{d:"M224,68H32A12,12,0,0,0,20,80v96a12,12,0,0,0,12,12H224a12,12,0,0,0,12-12V80A12,12,0,0,0,224,68Zm4,108a4,4,0,0,1-4,4H32a4,4,0,0,1-4-4V80a4,4,0,0,1,4-4H224a4,4,0,0,1,4,4Zm-32-48a8,8,0,1,1-8-8A8,8,0,0,1,196,128Z"}))]]),mD=new Map([["bold",p.createElement(p.Fragment,null,p.createElement("path",{d:"M117.18,188.74a12,12,0,0,1,0,17l-5.12,5.12A58.26,58.26,0,0,1,70.6,228h0A58.62,58.62,0,0,1,29.14,127.92L63.89,93.17a58.64,58.64,0,0,1,98.56,28.11,12,12,0,1,1-23.37,5.44,34.65,34.65,0,0,0-58.22-16.58L46.11,144.89A34.62,34.62,0,0,0,70.57,204h0a34.41,34.41,0,0,0,24.49-10.14l5.11-5.12A12,12,0,0,1,117.18,188.74ZM226.83,45.17a58.65,58.65,0,0,0-82.93,0l-5.11,5.11a12,12,0,0,0,17,17l5.12-5.12a34.63,34.63,0,1,1,49,49L175.1,145.86A34.39,34.39,0,0,1,150.61,156h0a34.63,34.63,0,0,1-33.69-26.72,12,12,0,0,0-23.38,5.44A58.64,58.64,0,0,0,150.56,180h.05a58.28,58.28,0,0,0,41.47-17.17l34.75-34.75a58.62,58.62,0,0,0,0-82.91Z"}))],["duotone",p.createElement(p.Fragment,null,p.createElement("path",{d:"M218.34,119.6,183.6,154.34a46.58,46.58,0,0,1-44.31,12.26c-.31.34-.62.67-.95,1L103.6,202.34A46.63,46.63,0,1,1,37.66,136.4L72.4,101.66A46.6,46.6,0,0,1,116.71,89.4c.31-.34.62-.67,1-1L152.4,53.66a46.63,46.63,0,0,1,65.94,65.94Z",opacity:"0.2"}),p.createElement("path",{d:"M240,88.23a54.43,54.43,0,0,1-16,37L189.25,160a54.27,54.27,0,0,1-38.63,16h-.05A54.63,54.63,0,0,1,96,119.84a8,8,0,0,1,16,.45A38.62,38.62,0,0,0,150.58,160h0a38.39,38.39,0,0,0,27.31-11.31l34.75-34.75a38.63,38.63,0,0,0-54.63-54.63l-11,11A8,8,0,0,1,135.7,59l11-11A54.65,54.65,0,0,1,224,48,54.86,54.86,0,0,1,240,88.23ZM109,185.66l-11,11A38.41,38.41,0,0,1,70.6,208h0a38.63,38.63,0,0,1-27.29-65.94L78,107.31A38.63,38.63,0,0,1,144,135.71a8,8,0,0,0,7.78,8.22H152a8,8,0,0,0,8-7.78A54.86,54.86,0,0,0,144,96a54.65,54.65,0,0,0-77.27,0L32,130.75A54.62,54.62,0,0,0,70.56,224h0a54.28,54.28,0,0,0,38.64-16l11-11A8,8,0,0,0,109,185.66Z"}))],["fill",p.createElement(p.Fragment,null,p.createElement("path",{d:"M208,32H48A16,16,0,0,0,32,48V208a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V48A16,16,0,0,0,208,32ZM115.7,192.49a43.31,43.31,0,0,1-55-66.43l25.37-25.37a43.35,43.35,0,0,1,61.25,0,42.9,42.9,0,0,1,9.95,15.43,8,8,0,1,1-15,5.6A27.33,27.33,0,0,0,97.37,112L72,137.37a27.32,27.32,0,0,0,34.68,41.91,8,8,0,1,1,9,13.21Zm79.61-62.55-25.37,25.37A43,43,0,0,1,139.32,168h0a43.35,43.35,0,0,1-40.53-28.12,8,8,0,1,1,15-5.6A27.35,27.35,0,0,0,139.28,152h0a27.14,27.14,0,0,0,19.32-8L184,118.63a27.32,27.32,0,0,0-34.68-41.91,8,8,0,1,1-9-13.21,43.32,43.32,0,0,1,55,66.43Z"}))],["light",p.createElement(p.Fragment,null,p.createElement("path",{d:"M238,88.18a52.42,52.42,0,0,1-15.4,35.66l-34.75,34.75A52.28,52.28,0,0,1,150.62,174h-.05A52.63,52.63,0,0,1,98,119.9a6,6,0,0,1,6-5.84h.17a6,6,0,0,1,5.83,6.16A40.62,40.62,0,0,0,150.58,162h0a40.4,40.4,0,0,0,28.73-11.9l34.75-34.74A40.63,40.63,0,0,0,156.63,57.9l-11,11a6,6,0,0,1-8.49-8.49l11-11a52.62,52.62,0,0,1,74.43,0A52.83,52.83,0,0,1,238,88.18Zm-127.62,98.9-11,11A40.36,40.36,0,0,1,70.6,210h0a40.63,40.63,0,0,1-28.7-69.36L76.62,105.9A40.63,40.63,0,0,1,146,135.77a6,6,0,0,0,5.83,6.16H152a6,6,0,0,0,6-5.84A52.63,52.63,0,0,0,68.14,97.42L33.38,132.16A52.63,52.63,0,0,0,70.56,222h0a52.26,52.26,0,0,0,37.22-15.42l11-11a6,6,0,1,0-8.49-8.48Z"}))],["regular",p.createElement(p.Fragment,null,p.createElement("path",{d:"M240,88.23a54.43,54.43,0,0,1-16,37L189.25,160a54.27,54.27,0,0,1-38.63,16h-.05A54.63,54.63,0,0,1,96,119.84a8,8,0,0,1,16,.45A38.62,38.62,0,0,0,150.58,160h0a38.39,38.39,0,0,0,27.31-11.31l34.75-34.75a38.63,38.63,0,0,0-54.63-54.63l-11,11A8,8,0,0,1,135.7,59l11-11A54.65,54.65,0,0,1,224,48,54.86,54.86,0,0,1,240,88.23ZM109,185.66l-11,11A38.41,38.41,0,0,1,70.6,208h0a38.63,38.63,0,0,1-27.29-65.94L78,107.31A38.63,38.63,0,0,1,144,135.71a8,8,0,0,0,16,.45A54.86,54.86,0,0,0,144,96a54.65,54.65,0,0,0-77.27,0L32,130.75A54.62,54.62,0,0,0,70.56,224h0a54.28,54.28,0,0,0,38.64-16l11-11A8,8,0,0,0,109,185.66Z"}))],["thin",p.createElement(p.Fragment,null,p.createElement("path",{d:"M236,88.12a50.44,50.44,0,0,1-14.81,34.31l-34.75,34.74A50.33,50.33,0,0,1,150.62,172h-.05A50.63,50.63,0,0,1,100,120a4,4,0,0,1,4-3.89h.11a4,4,0,0,1,3.89,4.11A42.64,42.64,0,0,0,150.58,164h0a42.32,42.32,0,0,0,30.14-12.49l34.75-34.74a42.63,42.63,0,1,0-60.29-60.28l-11,11a4,4,0,0,1-5.66-5.65l11-11A50.64,50.64,0,0,1,236,88.12ZM111.78,188.49l-11,11A42.33,42.33,0,0,1,70.6,212h0a42.63,42.63,0,0,1-30.11-72.77l34.75-34.74A42.63,42.63,0,0,1,148,135.82a4,4,0,0,0,8,.23A50.64,50.64,0,0,0,69.55,98.83L34.8,133.57A50.63,50.63,0,0,0,70.56,220h0a50.33,50.33,0,0,0,35.81-14.83l11-11a4,4,0,1,0-5.65-5.66Z"}))]]),pD=new Map([["bold",p.createElement(p.Fragment,null,p.createElement("path",{d:"M28,64A12,12,0,0,1,40,52H216a12,12,0,0,1,0,24H40A12,12,0,0,1,28,64Zm12,76h64a12,12,0,0,0,0-24H40a12,12,0,0,0,0,24Zm80,40H40a12,12,0,0,0,0,24h80a12,12,0,0,0,0-24Zm120.49,20.49a12,12,0,0,1-17,0l-18.08-18.08a44,44,0,1,1,17-17l18.08,18.07A12,12,0,0,1,240.49,200.49ZM184,164a20,20,0,1,0-20-20A20,20,0,0,0,184,164Z"}))],["duotone",p.createElement(p.Fragment,null,p.createElement("path",{d:"M216,144a32,32,0,1,1-32-32A32,32,0,0,1,216,144Z",opacity:"0.2"}),p.createElement("path",{d:"M32,64a8,8,0,0,1,8-8H216a8,8,0,0,1,0,16H40A8,8,0,0,1,32,64Zm8,72h72a8,8,0,0,0,0-16H40a8,8,0,0,0,0,16Zm88,48H40a8,8,0,0,0,0,16h88a8,8,0,0,0,0-16Zm109.66,13.66a8,8,0,0,1-11.32,0L206,177.36A40,40,0,1,1,217.36,166l20.3,20.3A8,8,0,0,1,237.66,197.66ZM184,168a24,24,0,1,0-24-24A24,24,0,0,0,184,168Z"}))],["fill",p.createElement(p.Fragment,null,p.createElement("path",{d:"M32,64a8,8,0,0,1,8-8H216a8,8,0,0,1,0,16H40A8,8,0,0,1,32,64Zm8,72h72a8,8,0,0,0,0-16H40a8,8,0,0,0,0,16Zm88,48H40a8,8,0,0,0,0,16h88a8,8,0,0,0,0-16Zm109.66,2.34L217.36,166A40,40,0,1,0,206,177.36l20.3,20.3a8,8,0,0,0,11.32-11.32Z"}))],["light",p.createElement(p.Fragment,null,p.createElement("path",{d:"M34,64a6,6,0,0,1,6-6H216a6,6,0,0,1,0,12H40A6,6,0,0,1,34,64Zm6,70h72a6,6,0,0,0,0-12H40a6,6,0,0,0,0,12Zm88,52H40a6,6,0,0,0,0,12h88a6,6,0,0,0,0-12Zm108.24,10.24a6,6,0,0,1-8.48,0l-21.49-21.48a38.06,38.06,0,1,1,8.49-8.49l21.48,21.49A6,6,0,0,1,236.24,196.24ZM184,170a26,26,0,1,0-26-26A26,26,0,0,0,184,170Z"}))],["regular",p.createElement(p.Fragment,null,p.createElement("path",{d:"M32,64a8,8,0,0,1,8-8H216a8,8,0,0,1,0,16H40A8,8,0,0,1,32,64Zm8,72h72a8,8,0,0,0,0-16H40a8,8,0,0,0,0,16Zm88,48H40a8,8,0,0,0,0,16h88a8,8,0,0,0,0-16Zm109.66,13.66a8,8,0,0,1-11.32,0L206,177.36A40,40,0,1,1,217.36,166l20.3,20.3A8,8,0,0,1,237.66,197.66ZM184,168a24,24,0,1,0-24-24A24,24,0,0,0,184,168Z"}))],["thin",p.createElement(p.Fragment,null,p.createElement("path",{d:"M36,64a4,4,0,0,1,4-4H216a4,4,0,0,1,0,8H40A4,4,0,0,1,36,64Zm4,68h72a4,4,0,0,0,0-8H40a4,4,0,0,0,0,8Zm88,56H40a4,4,0,0,0,0,8h88a4,4,0,0,0,0-8Zm106.83,6.83a4,4,0,0,1-5.66,0l-22.72-22.72a36.06,36.06,0,1,1,5.66-5.66l22.72,22.72A4,4,0,0,1,234.83,194.83ZM184,172a28,28,0,1,0-28-28A28,28,0,0,0,184,172Z"}))]]),gD=new Map([["bold",p.createElement(p.Fragment,null,p.createElement("path",{d:"M216,36H40A20,20,0,0,0,20,56V216a12,12,0,0,0,17.37,10.73L64,213.42l26.63,13.31a12,12,0,0,0,10.74,0L128,213.42l26.63,13.31a12,12,0,0,0,10.74,0L192,213.42l26.63,13.31A12,12,0,0,0,236,216V56A20,20,0,0,0,216,36Zm-4,160.58-14.63-7.31a12,12,0,0,0-10.74,0L160,202.58l-26.63-13.31a12,12,0,0,0-10.74,0L96,202.58,69.37,189.27a12,12,0,0,0-10.74,0L44,196.58V60H212ZM136,108a12,12,0,0,1,12-12h36a12,12,0,0,1,0,24H148A12,12,0,0,1,136,108Zm0,40a12,12,0,0,1,12-12h36a12,12,0,0,1,0,24H148A12,12,0,0,1,136,148ZM72,172h40a12,12,0,0,0,12-12V96a12,12,0,0,0-12-12H72A12,12,0,0,0,60,96v64A12,12,0,0,0,72,172Zm12-64h16v40H84Z"}))],["duotone",p.createElement(p.Fragment,null,p.createElement("path",{d:"M216,48H40a8,8,0,0,0-8,8V216l32-16,32,16,32-16,32,16,32-16,32,16V56A8,8,0,0,0,216,48ZM112,160H64V96h48Z",opacity:"0.2"}),p.createElement("path",{d:"M216,40H40A16,16,0,0,0,24,56V216a8,8,0,0,0,11.58,7.15L64,208.94l28.42,14.21a8,8,0,0,0,7.16,0L128,208.94l28.42,14.21a8,8,0,0,0,7.16,0L192,208.94l28.42,14.21A8,8,0,0,0,232,216V56A16,16,0,0,0,216,40Zm0,163.06-20.42-10.22a8,8,0,0,0-7.16,0L160,207.06l-28.42-14.22a8,8,0,0,0-7.16,0L96,207.06,67.58,192.84a8,8,0,0,0-7.16,0L40,203.06V56H216ZM136,112a8,8,0,0,1,8-8h48a8,8,0,0,1,0,16H144A8,8,0,0,1,136,112Zm0,32a8,8,0,0,1,8-8h48a8,8,0,0,1,0,16H144A8,8,0,0,1,136,144ZM64,168h48a8,8,0,0,0,8-8V96a8,8,0,0,0-8-8H64a8,8,0,0,0-8,8v64A8,8,0,0,0,64,168Zm8-64h32v48H72Z"}))],["fill",p.createElement(p.Fragment,null,p.createElement("path",{d:"M216,40H40A16,16,0,0,0,24,56V216a8,8,0,0,0,11.58,7.15L64,208.94l28.42,14.21a8,8,0,0,0,7.16,0L128,208.94l28.42,14.21a8,8,0,0,0,7.16,0L192,208.94l28.42,14.21A8,8,0,0,0,232,216V56A16,16,0,0,0,216,40ZM116,160a4,4,0,0,1-4,4H64a4,4,0,0,1-4-4V96a4,4,0,0,1,4-4h48a4,4,0,0,1,4,4Zm76-8H144a8,8,0,0,1,0-16h48a8,8,0,0,1,0,16Zm0-32H144a8,8,0,0,1,0-16h48a8,8,0,0,1,0,16Z"}))],["light",p.createElement(p.Fragment,null,p.createElement("path",{d:"M216,42H40A14,14,0,0,0,26,56V216a6,6,0,0,0,8.68,5.37L64,206.71l29.32,14.66a6,6,0,0,0,5.36,0L128,206.71l29.32,14.66a6,6,0,0,0,5.36,0L192,206.71l29.32,14.66A6,6,0,0,0,224,222a5.93,5.93,0,0,0,3.15-.9A6,6,0,0,0,230,216V56A14,14,0,0,0,216,42Zm2,164.29-23.32-11.66a6,6,0,0,0-5.36,0L160,209.29l-29.32-14.66a6,6,0,0,0-5.36,0L96,209.29,66.68,194.63a6,6,0,0,0-5.36,0L38,206.29V56a2,2,0,0,1,2-2H216a2,2,0,0,1,2,2ZM198,112a6,6,0,0,1-6,6H144a6,6,0,0,1,0-12h48A6,6,0,0,1,198,112Zm0,32a6,6,0,0,1-6,6H144a6,6,0,0,1,0-12h48A6,6,0,0,1,198,144ZM112,90H64a6,6,0,0,0-6,6v64a6,6,0,0,0,6,6h48a6,6,0,0,0,6-6V96A6,6,0,0,0,112,90Zm-6,64H70V102h36Z"}))],["regular",p.createElement(p.Fragment,null,p.createElement("path",{d:"M216,40H40A16,16,0,0,0,24,56V216a8,8,0,0,0,11.58,7.15L64,208.94l28.42,14.21a8,8,0,0,0,7.16,0L128,208.94l28.42,14.21a8,8,0,0,0,7.16,0L192,208.94l28.42,14.21A8,8,0,0,0,232,216V56A16,16,0,0,0,216,40Zm0,163.06-20.42-10.22a8,8,0,0,0-7.16,0L160,207.06l-28.42-14.22a8,8,0,0,0-7.16,0L96,207.06,67.58,192.84a8,8,0,0,0-7.16,0L40,203.06V56H216ZM136,112a8,8,0,0,1,8-8h48a8,8,0,0,1,0,16H144A8,8,0,0,1,136,112Zm0,32a8,8,0,0,1,8-8h48a8,8,0,0,1,0,16H144A8,8,0,0,1,136,144ZM64,168h48a8,8,0,0,0,8-8V96a8,8,0,0,0-8-8H64a8,8,0,0,0-8,8v64A8,8,0,0,0,64,168Zm8-64h32v48H72Z"}))],["thin",p.createElement(p.Fragment,null,p.createElement("path",{d:"M216,44H40A12,12,0,0,0,28,56V216a4,4,0,0,0,5.79,3.58L64,204.47l30.21,15.11a4,4,0,0,0,3.58,0L128,204.47l30.21,15.11a4,4,0,0,0,3.58,0L192,204.47l30.21,15.11A4.05,4.05,0,0,0,224,220a4,4,0,0,0,4-4V56A12,12,0,0,0,216,44Zm4,165.53-26.21-13.11a4,4,0,0,0-3.58,0L160,211.53l-30.21-15.11a4,4,0,0,0-3.58,0L96,211.53,65.79,196.42a4,4,0,0,0-3.58,0L36,209.53V56a4,4,0,0,1,4-4H216a4,4,0,0,1,4,4ZM196,112a4,4,0,0,1-4,4H144a4,4,0,0,1,0-8h48A4,4,0,0,1,196,112Zm0,32a4,4,0,0,1-4,4H144a4,4,0,0,1,0-8h48A4,4,0,0,1,196,144ZM112,92H64a4,4,0,0,0-4,4v64a4,4,0,0,0,4,4h48a4,4,0,0,0,4-4V96A4,4,0,0,0,112,92Zm-4,64H68V100h40Z"}))]]),vD=new Map([["bold",p.createElement(p.Fragment,null,p.createElement("path",{d:"M228,128a12,12,0,0,1-12,12H140v76a12,12,0,0,1-24,0V140H40a12,12,0,0,1,0-24h76V40a12,12,0,0,1,24,0v76h76A12,12,0,0,1,228,128Z"}))],["duotone",p.createElement(p.Fragment,null,p.createElement("path",{d:"M216,56V200a16,16,0,0,1-16,16H56a16,16,0,0,1-16-16V56A16,16,0,0,1,56,40H200A16,16,0,0,1,216,56Z",opacity:"0.2"}),p.createElement("path",{d:"M224,128a8,8,0,0,1-8,8H136v80a8,8,0,0,1-16,0V136H40a8,8,0,0,1,0-16h80V40a8,8,0,0,1,16,0v80h80A8,8,0,0,1,224,128Z"}))],["fill",p.createElement(p.Fragment,null,p.createElement("path",{d:"M208,32H48A16,16,0,0,0,32,48V208a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V48A16,16,0,0,0,208,32ZM184,136H136v48a8,8,0,0,1-16,0V136H72a8,8,0,0,1,0-16h48V72a8,8,0,0,1,16,0v48h48a8,8,0,0,1,0,16Z"}))],["light",p.createElement(p.Fragment,null,p.createElement("path",{d:"M222,128a6,6,0,0,1-6,6H134v82a6,6,0,0,1-12,0V134H40a6,6,0,0,1,0-12h82V40a6,6,0,0,1,12,0v82h82A6,6,0,0,1,222,128Z"}))],["regular",p.createElement(p.Fragment,null,p.createElement("path",{d:"M224,128a8,8,0,0,1-8,8H136v80a8,8,0,0,1-16,0V136H40a8,8,0,0,1,0-16h80V40a8,8,0,0,1,16,0v80h80A8,8,0,0,1,224,128Z"}))],["thin",p.createElement(p.Fragment,null,p.createElement("path",{d:"M220,128a4,4,0,0,1-4,4H132v84a4,4,0,0,1-8,0V132H40a4,4,0,0,1,0-8h84V40a4,4,0,0,1,8,0v84h84A4,4,0,0,1,220,128Z"}))]]),yD=new Map([["bold",p.createElement(p.Fragment,null,p.createElement("path",{d:"M228.75,100.05c-3.52-3.67-7.15-7.46-8.34-10.33-1.06-2.56-1.14-7.83-1.21-12.47-.15-10-.34-22.44-9.18-31.27s-21.27-9-31.27-9.18c-4.64-.07-9.91-.15-12.47-1.21-2.87-1.19-6.66-4.82-10.33-8.34C148.87,20.46,140.05,12,128,12s-20.87,8.46-27.95,15.25c-3.67,3.52-7.46,7.15-10.33,8.34-2.56,1.06-7.83,1.14-12.47,1.21C67.25,37,54.81,37.14,46,46S37,67.25,36.8,77.25c-.07,4.64-.15,9.91-1.21,12.47-1.19,2.87-4.82,6.66-8.34,10.33C20.46,107.13,12,116,12,128S20.46,148.87,27.25,156c3.52,3.67,7.15,7.46,8.34,10.33,1.06,2.56,1.14,7.83,1.21,12.47.15,10,.34,22.44,9.18,31.27s21.27,9,31.27,9.18c4.64.07,9.91.15,12.47,1.21,2.87,1.19,6.66,4.82,10.33,8.34C107.13,235.54,116,244,128,244s20.87-8.46,27.95-15.25c3.67-3.52,7.46-7.15,10.33-8.34,2.56-1.06,7.83-1.14,12.47-1.21,10-.15,22.44-.34,31.27-9.18s9-21.27,9.18-31.27c.07-4.64.15-9.91,1.21-12.47,1.19-2.87,4.82-6.66,8.34-10.33C235.54,148.87,244,140.05,244,128S235.54,107.13,228.75,100.05Zm-17.32,39.29c-4.82,5-10.28,10.72-13.19,17.76-2.82,6.8-2.93,14.16-3,21.29-.08,5.36-.19,12.71-2.15,14.66s-9.3,2.07-14.66,2.15c-7.13.11-14.49.22-21.29,3-7,2.91-12.73,8.37-17.76,13.19C135.78,214.84,130.4,220,128,220s-7.78-5.16-11.34-8.57c-5-4.82-10.72-10.28-17.76-13.19-6.8-2.82-14.16-2.93-21.29-3-5.36-.08-12.71-.19-14.66-2.15s-2.07-9.3-2.15-14.66c-.11-7.13-.22-14.49-3-21.29-2.91-7-8.37-12.73-13.19-17.76C41.16,135.78,36,130.4,36,128s5.16-7.78,8.57-11.34c4.82-5,10.28-10.72,13.19-17.76,2.82-6.8,2.93-14.16,3-21.29C60.88,72.25,61,64.9,63,63s9.3-2.07,14.66-2.15c7.13-.11,14.49-.22,21.29-3,7-2.91,12.73-8.37,17.76-13.19C120.22,41.16,125.6,36,128,36s7.78,5.16,11.34,8.57c5,4.82,10.72,10.28,17.76,13.19,6.8,2.82,14.16,2.93,21.29,3,5.36.08,12.71.19,14.66,2.15s2.07,9.3,2.15,14.66c.11,7.13.22,14.49,3,21.29,2.91,7,8.37,12.73,13.19,17.76,3.41,3.56,8.57,8.94,8.57,11.34S214.84,135.78,211.43,139.34ZM176.49,95.51a12,12,0,0,1,0,17l-56,56a12,12,0,0,1-17,0l-24-24a12,12,0,1,1,17-17L112,143l47.51-47.52A12,12,0,0,1,176.49,95.51Z"}))],["duotone",p.createElement(p.Fragment,null,p.createElement("path",{d:"M232,128c0,12.51-17.82,21.95-22.68,33.69-4.68,11.32,1.42,30.65-7.78,39.85s-28.53,3.1-39.85,7.78C150,214.18,140.5,232,128,232s-22-17.82-33.69-22.68c-11.32-4.68-30.65,1.42-39.85-7.78s-3.1-28.53-7.78-39.85C41.82,150,24,140.5,24,128s17.82-22,22.68-33.69C51.36,83,45.26,63.66,54.46,54.46S83,51.36,94.31,46.68C106.05,41.82,115.5,24,128,24S150,41.82,161.69,46.68c11.32,4.68,30.65-1.42,39.85,7.78s3.1,28.53,7.78,39.85C214.18,106.05,232,115.5,232,128Z",opacity:"0.2"}),p.createElement("path",{d:"M225.86,102.82c-3.77-3.94-7.67-8-9.14-11.57-1.36-3.27-1.44-8.69-1.52-13.94-.15-9.76-.31-20.82-8-28.51s-18.75-7.85-28.51-8c-5.25-.08-10.67-.16-13.94-1.52-3.56-1.47-7.63-5.37-11.57-9.14C146.28,23.51,138.44,16,128,16s-18.27,7.51-25.18,14.14c-3.94,3.77-8,7.67-11.57,9.14C88,40.64,82.56,40.72,77.31,40.8c-9.76.15-20.82.31-28.51,8S41,67.55,40.8,77.31c-.08,5.25-.16,10.67-1.52,13.94-1.47,3.56-5.37,7.63-9.14,11.57C23.51,109.72,16,117.56,16,128s7.51,18.27,14.14,25.18c3.77,3.94,7.67,8,9.14,11.57,1.36,3.27,1.44,8.69,1.52,13.94.15,9.76.31,20.82,8,28.51s18.75,7.85,28.51,8c5.25.08,10.67.16,13.94,1.52,3.56,1.47,7.63,5.37,11.57,9.14C109.72,232.49,117.56,240,128,240s18.27-7.51,25.18-14.14c3.94-3.77,8-7.67,11.57-9.14,3.27-1.36,8.69-1.44,13.94-1.52,9.76-.15,20.82-.31,28.51-8s7.85-18.75,8-28.51c.08-5.25.16-10.67,1.52-13.94,1.47-3.56,5.37-7.63,9.14-11.57C232.49,146.28,240,138.44,240,128S232.49,109.73,225.86,102.82Zm-11.55,39.29c-4.79,5-9.75,10.17-12.38,16.52-2.52,6.1-2.63,13.07-2.73,19.82-.1,7-.21,14.33-3.32,17.43s-10.39,3.22-17.43,3.32c-6.75.1-13.72.21-19.82,2.73-6.35,2.63-11.52,7.59-16.52,12.38S132,224,128,224s-9.15-4.92-14.11-9.69-10.17-9.75-16.52-12.38c-6.1-2.52-13.07-2.63-19.82-2.73-7-.1-14.33-.21-17.43-3.32s-3.22-10.39-3.32-17.43c-.1-6.75-.21-13.72-2.73-19.82-2.63-6.35-7.59-11.52-12.38-16.52S32,132,32,128s4.92-9.15,9.69-14.11,9.75-10.17,12.38-16.52c2.52-6.1,2.63-13.07,2.73-19.82.1-7,.21-14.33,3.32-17.43S70.51,56.9,77.55,56.8c6.75-.1,13.72-.21,19.82-2.73,6.35-2.63,11.52-7.59,16.52-12.38S124,32,128,32s9.15,4.92,14.11,9.69,10.17,9.75,16.52,12.38c6.1,2.52,13.07,2.63,19.82,2.73,7,.1,14.33.21,17.43,3.32s3.22,10.39,3.32,17.43c.1,6.75.21,13.72,2.73,19.82,2.63,6.35,7.59,11.52,12.38,16.52S224,124,224,128,219.08,137.15,214.31,142.11ZM173.66,98.34a8,8,0,0,1,0,11.32l-56,56a8,8,0,0,1-11.32,0l-24-24a8,8,0,0,1,11.32-11.32L112,148.69l50.34-50.35A8,8,0,0,1,173.66,98.34Z"}))],["fill",p.createElement(p.Fragment,null,p.createElement("path",{d:"M225.86,102.82c-3.77-3.94-7.67-8-9.14-11.57-1.36-3.27-1.44-8.69-1.52-13.94-.15-9.76-.31-20.82-8-28.51s-18.75-7.85-28.51-8c-5.25-.08-10.67-.16-13.94-1.52-3.56-1.47-7.63-5.37-11.57-9.14C146.28,23.51,138.44,16,128,16s-18.27,7.51-25.18,14.14c-3.94,3.77-8,7.67-11.57,9.14C88,40.64,82.56,40.72,77.31,40.8c-9.76.15-20.82.31-28.51,8S41,67.55,40.8,77.31c-.08,5.25-.16,10.67-1.52,13.94-1.47,3.56-5.37,7.63-9.14,11.57C23.51,109.72,16,117.56,16,128s7.51,18.27,14.14,25.18c3.77,3.94,7.67,8,9.14,11.57,1.36,3.27,1.44,8.69,1.52,13.94.15,9.76.31,20.82,8,28.51s18.75,7.85,28.51,8c5.25.08,10.67.16,13.94,1.52,3.56,1.47,7.63,5.37,11.57,9.14C109.72,232.49,117.56,240,128,240s18.27-7.51,25.18-14.14c3.94-3.77,8-7.67,11.57-9.14,3.27-1.36,8.69-1.44,13.94-1.52,9.76-.15,20.82-.31,28.51-8s7.85-18.75,8-28.51c.08-5.25.16-10.67,1.52-13.94,1.47-3.56,5.37-7.63,9.14-11.57C232.49,146.28,240,138.44,240,128S232.49,109.73,225.86,102.82Zm-52.2,6.84-56,56a8,8,0,0,1-11.32,0l-24-24a8,8,0,0,1,11.32-11.32L112,148.69l50.34-50.35a8,8,0,0,1,11.32,11.32Z"}))],["light",p.createElement(p.Fragment,null,p.createElement("path",{d:"M224.42,104.2c-3.9-4.07-7.93-8.27-9.55-12.18-1.5-3.63-1.58-9-1.67-14.68-.14-9.38-.3-20-7.42-27.12S188,42.94,178.66,42.8c-5.68-.09-11-.17-14.68-1.67-3.91-1.62-8.11-5.65-12.18-9.55C145.16,25.22,137.64,18,128,18s-17.16,7.22-23.8,13.58c-4.07,3.9-8.27,7.93-12.18,9.55-3.63,1.5-9,1.58-14.68,1.67-9.38.14-20,.3-27.12,7.42S42.94,68,42.8,77.34c-.09,5.68-.17,11-1.67,14.68-1.62,3.91-5.65,8.11-9.55,12.18C25.22,110.84,18,118.36,18,128s7.22,17.16,13.58,23.8c3.9,4.07,7.93,8.27,9.55,12.18,1.5,3.63,1.58,9,1.67,14.68.14,9.38.3,20,7.42,27.12S68,213.06,77.34,213.2c5.68.09,11,.17,14.68,1.67,3.91,1.62,8.11,5.65,12.18,9.55C110.84,230.78,118.36,238,128,238s17.16-7.22,23.8-13.58c4.07-3.9,8.27-7.93,12.18-9.55,3.63-1.5,9-1.58,14.68-1.67,9.38-.14,20-.3,27.12-7.42s7.28-17.74,7.42-27.12c.09-5.68.17-11,1.67-14.68,1.62-3.91,5.65-8.11,9.55-12.18C230.78,145.16,238,137.64,238,128S230.78,110.84,224.42,104.2Zm-8.66,39.3c-4.67,4.86-9.5,9.9-12,15.9-2.38,5.74-2.48,12.52-2.58,19.08-.11,7.44-.23,15.14-3.9,18.82s-11.38,3.79-18.82,3.9c-6.56.1-13.34.2-19.08,2.58-6,2.48-11,7.31-15.91,12-5.25,5-10.68,10.24-15.49,10.24s-10.24-5.21-15.5-10.24c-4.86-4.67-9.9-9.5-15.9-12-5.74-2.38-12.52-2.48-19.08-2.58-7.44-.11-15.14-.23-18.82-3.9s-3.79-11.38-3.9-18.82c-.1-6.56-.2-13.34-2.58-19.08-2.48-6-7.31-11-12-15.91C35.21,138.24,30,132.81,30,128s5.21-10.24,10.24-15.5c4.67-4.86,9.5-9.9,12-15.9,2.38-5.74,2.48-12.52,2.58-19.08.11-7.44.23-15.14,3.9-18.82s11.38-3.79,18.82-3.9c6.56-.1,13.34-.2,19.08-2.58,6-2.48,11-7.31,15.91-12C117.76,35.21,123.19,30,128,30s10.24,5.21,15.5,10.24c4.86,4.67,9.9,9.5,15.9,12,5.74,2.38,12.52,2.48,19.08,2.58,7.44.11,15.14.23,18.82,3.9s3.79,11.38,3.9,18.82c.1,6.56.2,13.34,2.58,19.08,2.48,6,7.31,11,12,15.91,5,5.25,10.24,10.68,10.24,15.49S220.79,138.24,215.76,143.5ZM172.24,99.76a6,6,0,0,1,0,8.48l-56,56a6,6,0,0,1-8.48,0l-24-24a6,6,0,0,1,8.48-8.48L112,151.51l51.76-51.75A6,6,0,0,1,172.24,99.76Z"}))],["regular",p.createElement(p.Fragment,null,p.createElement("path",{d:"M225.86,102.82c-3.77-3.94-7.67-8-9.14-11.57-1.36-3.27-1.44-8.69-1.52-13.94-.15-9.76-.31-20.82-8-28.51s-18.75-7.85-28.51-8c-5.25-.08-10.67-.16-13.94-1.52-3.56-1.47-7.63-5.37-11.57-9.14C146.28,23.51,138.44,16,128,16s-18.27,7.51-25.18,14.14c-3.94,3.77-8,7.67-11.57,9.14C88,40.64,82.56,40.72,77.31,40.8c-9.76.15-20.82.31-28.51,8S41,67.55,40.8,77.31c-.08,5.25-.16,10.67-1.52,13.94-1.47,3.56-5.37,7.63-9.14,11.57C23.51,109.72,16,117.56,16,128s7.51,18.27,14.14,25.18c3.77,3.94,7.67,8,9.14,11.57,1.36,3.27,1.44,8.69,1.52,13.94.15,9.76.31,20.82,8,28.51s18.75,7.85,28.51,8c5.25.08,10.67.16,13.94,1.52,3.56,1.47,7.63,5.37,11.57,9.14C109.72,232.49,117.56,240,128,240s18.27-7.51,25.18-14.14c3.94-3.77,8-7.67,11.57-9.14,3.27-1.36,8.69-1.44,13.94-1.52,9.76-.15,20.82-.31,28.51-8s7.85-18.75,8-28.51c.08-5.25.16-10.67,1.52-13.94,1.47-3.56,5.37-7.63,9.14-11.57C232.49,146.28,240,138.44,240,128S232.49,109.73,225.86,102.82Zm-11.55,39.29c-4.79,5-9.75,10.17-12.38,16.52-2.52,6.1-2.63,13.07-2.73,19.82-.1,7-.21,14.33-3.32,17.43s-10.39,3.22-17.43,3.32c-6.75.1-13.72.21-19.82,2.73-6.35,2.63-11.52,7.59-16.52,12.38S132,224,128,224s-9.15-4.92-14.11-9.69-10.17-9.75-16.52-12.38c-6.1-2.52-13.07-2.63-19.82-2.73-7-.1-14.33-.21-17.43-3.32s-3.22-10.39-3.32-17.43c-.1-6.75-.21-13.72-2.73-19.82-2.63-6.35-7.59-11.52-12.38-16.52S32,132,32,128s4.92-9.15,9.69-14.11,9.75-10.17,12.38-16.52c2.52-6.1,2.63-13.07,2.73-19.82.1-7,.21-14.33,3.32-17.43S70.51,56.9,77.55,56.8c6.75-.1,13.72-.21,19.82-2.73,6.35-2.63,11.52-7.59,16.52-12.38S124,32,128,32s9.15,4.92,14.11,9.69,10.17,9.75,16.52,12.38c6.1,2.52,13.07,2.63,19.82,2.73,7,.1,14.33.21,17.43,3.32s3.22,10.39,3.32,17.43c.1,6.75.21,13.72,2.73,19.82,2.63,6.35,7.59,11.52,12.38,16.52S224,124,224,128,219.08,137.15,214.31,142.11ZM173.66,98.34a8,8,0,0,1,0,11.32l-56,56a8,8,0,0,1-11.32,0l-24-24a8,8,0,0,1,11.32-11.32L112,148.69l50.34-50.35A8,8,0,0,1,173.66,98.34Z"}))],["thin",p.createElement(p.Fragment,null,p.createElement("path",{d:"M223,105.58c-4-4.2-8.2-8.54-10-12.8-1.65-4-1.73-9.53-1.82-15.41-.14-9-.29-19.19-6.83-25.74s-16.74-6.69-25.74-6.83c-5.88-.09-11.43-.17-15.41-1.82-4.26-1.76-8.6-5.93-12.8-9.95-6.68-6.41-13.59-13-22.42-13s-15.74,6.62-22.42,13c-4.2,4-8.54,8.2-12.8,10-4,1.65-9.53,1.73-15.41,1.82-9,.14-19.19.29-25.74,6.83S44.94,68.37,44.8,77.37c-.09,5.88-.17,11.43-1.82,15.41-1.76,4.26-5.93,8.6-9.95,12.8-6.41,6.68-13,13.59-13,22.42s6.62,15.74,13,22.42c4,4.2,8.2,8.54,10,12.8,1.65,4,1.73,9.53,1.82,15.41.14,9,.29,19.19,6.83,25.74s16.74,6.69,25.74,6.83c5.88.09,11.43.17,15.41,1.82,4.26,1.76,8.6,5.93,12.8,9.95,6.68,6.41,13.59,13,22.42,13s15.74-6.62,22.42-13c4.2-4,8.54-8.2,12.8-10,4-1.65,9.53-1.73,15.41-1.82,9-.14,19.19-.29,25.74-6.83s6.69-16.74,6.83-25.74c.09-5.88.17-11.43,1.82-15.41,1.76-4.26,5.93-8.6,9.95-12.8,6.41-6.68,13-13.59,13-22.42S229.38,112.26,223,105.58Zm-5.78,39.3c-4.54,4.73-9.24,9.63-11.57,15.28-2.23,5.39-2.33,12-2.43,18.35-.12,8.2-.24,16-4.49,20.2s-12,4.37-20.2,4.49c-6.37.1-13,.2-18.35,2.43-5.65,2.33-10.55,7-15.28,11.57C139.09,222.75,133.62,228,128,228s-11.09-5.25-16.88-10.8c-4.73-4.54-9.63-9.24-15.28-11.57-5.39-2.23-12-2.33-18.35-2.43-8.2-.12-15.95-.24-20.2-4.49s-4.37-12-4.49-20.2c-.1-6.37-.2-13-2.43-18.35-2.33-5.65-7-10.55-11.57-15.28C33.25,139.09,28,133.62,28,128s5.25-11.09,10.8-16.88c4.54-4.73,9.24-9.63,11.57-15.28,2.23-5.39,2.33-12,2.43-18.35.12-8.2.24-15.95,4.49-20.2s12-4.37,20.2-4.49c6.37-.1,13-.2,18.35-2.43,5.65-2.33,10.55-7,15.28-11.57C116.91,33.25,122.38,28,128,28s11.09,5.25,16.88,10.8c4.73,4.54,9.63,9.24,15.28,11.57,5.39,2.23,12,2.33,18.35,2.43,8.2.12,16,.24,20.2,4.49s4.37,12,4.49,20.2c.1,6.37.2,13,2.43,18.35,2.33,5.65,7,10.55,11.57,15.28,5.55,5.79,10.8,11.26,10.8,16.88S222.75,139.09,217.2,144.88Zm-46.37-43.71a4,4,0,0,1,0,5.66l-56,56a4,4,0,0,1-5.66,0l-24-24a4,4,0,0,1,5.66-5.66L112,154.34l53.17-53.17A4,4,0,0,1,170.83,101.17Z"}))]]),bD=new Map([["bold",p.createElement(p.Fragment,null,p.createElement("path",{d:"M216,36H40A20,20,0,0,0,20,56V200a20,20,0,0,0,20,20H216a20,20,0,0,0,20-20V56A20,20,0,0,0,216,36ZM44,104H72v20H44ZM72,60V80H44V60ZM44,148H72v48H44Zm168,48H96V60H212Z"}))],["duotone",p.createElement(p.Fragment,null,p.createElement("path",{d:"M88,48V208H40a8,8,0,0,1-8-8V56a8,8,0,0,1,8-8Z",opacity:"0.2"}),p.createElement("path",{d:"M216,40H40A16,16,0,0,0,24,56V200a16,16,0,0,0,16,16H216a16,16,0,0,0,16-16V56A16,16,0,0,0,216,40ZM40,152H56a8,8,0,0,0,0-16H40V120H56a8,8,0,0,0,0-16H40V88H56a8,8,0,0,0,0-16H40V56H80V200H40Zm176,48H96V56H216V200Z"}))],["fill",p.createElement(p.Fragment,null,p.createElement("path",{d:"M216,40H40A16,16,0,0,0,24,56V200a16,16,0,0,0,16,16H216a16,16,0,0,0,16-16V56A16,16,0,0,0,216,40ZM64,152H48a8,8,0,0,1,0-16H64a8,8,0,0,1,0,16Zm0-32H48a8,8,0,0,1,0-16H64a8,8,0,0,1,0,16Zm0-32H48a8,8,0,0,1,0-16H64a8,8,0,0,1,0,16ZM216,200H88V56H216V200Z"}))],["light",p.createElement(p.Fragment,null,p.createElement("path",{d:"M216,42H40A14,14,0,0,0,26,56V200a14,14,0,0,0,14,14H216a14,14,0,0,0,14-14V56A14,14,0,0,0,216,42ZM38,200V150H56a6,6,0,0,0,0-12H38V118H56a6,6,0,0,0,0-12H38V86H56a6,6,0,0,0,0-12H38V56a2,2,0,0,1,2-2H82V202H40A2,2,0,0,1,38,200Zm180,0a2,2,0,0,1-2,2H94V54H216a2,2,0,0,1,2,2Z"}))],["regular",p.createElement(p.Fragment,null,p.createElement("path",{d:"M216,40H40A16,16,0,0,0,24,56V200a16,16,0,0,0,16,16H216a16,16,0,0,0,16-16V56A16,16,0,0,0,216,40ZM40,152H56a8,8,0,0,0,0-16H40V120H56a8,8,0,0,0,0-16H40V88H56a8,8,0,0,0,0-16H40V56H80V200H40Zm176,48H96V56H216V200Z"}))],["thin",p.createElement(p.Fragment,null,p.createElement("path",{d:"M216,44H40A12,12,0,0,0,28,56V200a12,12,0,0,0,12,12H216a12,12,0,0,0,12-12V56A12,12,0,0,0,216,44ZM36,200V148H56a4,4,0,0,0,0-8H36V116H56a4,4,0,0,0,0-8H36V84H56a4,4,0,0,0,0-8H36V56a4,4,0,0,1,4-4H84V204H40A4,4,0,0,1,36,200Zm184,0a4,4,0,0,1-4,4H92V52H216a4,4,0,0,1,4,4Z"}))]]),ED=new Map([["bold",p.createElement(p.Fragment,null,p.createElement("path",{d:"M140,32V64a12,12,0,0,1-24,0V32a12,12,0,0,1,24,0Zm84,84H192a12,12,0,0,0,0,24h32a12,12,0,0,0,0-24Zm-42.26,48.77a12,12,0,1,0-17,17l22.63,22.63a12,12,0,0,0,17-17ZM128,180a12,12,0,0,0-12,12v32a12,12,0,0,0,24,0V192A12,12,0,0,0,128,180ZM74.26,164.77,51.63,187.4a12,12,0,0,0,17,17l22.63-22.63a12,12,0,1,0-17-17ZM76,128a12,12,0,0,0-12-12H32a12,12,0,0,0,0,24H64A12,12,0,0,0,76,128ZM68.6,51.63a12,12,0,1,0-17,17L74.26,91.23a12,12,0,0,0,17-17Z"}))],["duotone",p.createElement(p.Fragment,null,p.createElement("path",{d:"M224,128a96,96,0,1,1-96-96A96,96,0,0,1,224,128Z",opacity:"0.2"}),p.createElement("path",{d:"M136,32V64a8,8,0,0,1-16,0V32a8,8,0,0,1,16,0Zm88,88H192a8,8,0,0,0,0,16h32a8,8,0,0,0,0-16Zm-45.09,47.6a8,8,0,0,0-11.31,11.31l22.62,22.63a8,8,0,0,0,11.32-11.32ZM128,184a8,8,0,0,0-8,8v32a8,8,0,0,0,16,0V192A8,8,0,0,0,128,184ZM77.09,167.6,54.46,190.22a8,8,0,0,0,11.32,11.32L88.4,178.91A8,8,0,0,0,77.09,167.6ZM72,128a8,8,0,0,0-8-8H32a8,8,0,0,0,0,16H64A8,8,0,0,0,72,128ZM65.78,54.46A8,8,0,0,0,54.46,65.78L77.09,88.4A8,8,0,0,0,88.4,77.09Z"}))],["fill",p.createElement(p.Fragment,null,p.createElement("path",{d:"M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24ZM48,136a8,8,0,0,1,0-16H72a8,8,0,0,1,0,16Zm46.06,37.25-17,17a8,8,0,0,1-11.32-11.32l17-17a8,8,0,0,1,11.31,11.31Zm0-79.19a8,8,0,0,1-11.31,0l-17-17A8,8,0,0,1,77.09,65.77l17,17A8,8,0,0,1,94.06,94.06ZM136,208a8,8,0,0,1-16,0V184a8,8,0,0,1,16,0Zm0-136a8,8,0,0,1-16,0V48a8,8,0,0,1,16,0Zm54.23,118.23a8,8,0,0,1-11.32,0l-17-17a8,8,0,0,1,11.31-11.31l17,17A8,8,0,0,1,190.23,190.23ZM208,136H184a8,8,0,0,1,0-16h24a8,8,0,0,1,0,16Z"}))],["light",p.createElement(p.Fragment,null,p.createElement("path",{d:"M134,32V64a6,6,0,0,1-12,0V32a6,6,0,0,1,12,0Zm90,90H192a6,6,0,0,0,0,12h32a6,6,0,0,0,0-12Zm-46.5,47A6,6,0,0,0,169,177.5l22.63,22.62a6,6,0,0,0,8.48-8.48ZM128,186a6,6,0,0,0-6,6v32a6,6,0,0,0,12,0V192A6,6,0,0,0,128,186ZM78.5,169,55.88,191.64a6,6,0,1,0,8.48,8.48L87,177.5A6,6,0,1,0,78.5,169ZM70,128a6,6,0,0,0-6-6H32a6,6,0,0,0,0,12H64A6,6,0,0,0,70,128ZM64.36,55.88a6,6,0,0,0-8.48,8.48L78.5,87A6,6,0,1,0,87,78.5Z"}))],["regular",p.createElement(p.Fragment,null,p.createElement("path",{d:"M136,32V64a8,8,0,0,1-16,0V32a8,8,0,0,1,16,0Zm88,88H192a8,8,0,0,0,0,16h32a8,8,0,0,0,0-16Zm-45.09,47.6a8,8,0,0,0-11.31,11.31l22.62,22.63a8,8,0,0,0,11.32-11.32ZM128,184a8,8,0,0,0-8,8v32a8,8,0,0,0,16,0V192A8,8,0,0,0,128,184ZM77.09,167.6,54.46,190.22a8,8,0,0,0,11.32,11.32L88.4,178.91A8,8,0,0,0,77.09,167.6ZM72,128a8,8,0,0,0-8-8H32a8,8,0,0,0,0,16H64A8,8,0,0,0,72,128ZM65.78,54.46A8,8,0,0,0,54.46,65.78L77.09,88.4A8,8,0,0,0,88.4,77.09Z"}))],["thin",p.createElement(p.Fragment,null,p.createElement("path",{d:"M132,32V64a4,4,0,0,1-8,0V32a4,4,0,0,1,8,0Zm92,92H192a4,4,0,0,0,0,8h32a4,4,0,0,0,0-8Zm-47.92,46.43a4,4,0,1,0-5.65,5.65l22.62,22.63a4,4,0,0,0,5.66-5.66ZM128,188a4,4,0,0,0-4,4v32a4,4,0,0,0,8,0V192A4,4,0,0,0,128,188ZM79.92,170.43,57.29,193.05A4,4,0,0,0,63,198.71l22.62-22.63a4,4,0,1,0-5.65-5.65ZM68,128a4,4,0,0,0-4-4H32a4,4,0,0,0,0,8H64A4,4,0,0,0,68,128ZM63,57.29A4,4,0,0,0,57.29,63L79.92,85.57a4,4,0,1,0,5.65-5.65Z"}))]]),xD=new Map([["bold",p.createElement(p.Fragment,null,p.createElement("path",{d:"M120,137,48,201A12,12,0,1,1,32,183l61.91-55L32,73A12,12,0,1,1,48,55l72,64A12,12,0,0,1,120,137Zm96,43H120a12,12,0,0,0,0,24h96a12,12,0,0,0,0-24Z"}))],["duotone",p.createElement(p.Fragment,null,p.createElement("path",{d:"M216,80V192H40V64H200A16,16,0,0,1,216,80Z",opacity:"0.2"}),p.createElement("path",{d:"M117.31,134l-72,64a8,8,0,1,1-10.63-12L100,128,34.69,70A8,8,0,1,1,45.32,58l72,64a8,8,0,0,1,0,12ZM216,184H120a8,8,0,0,0,0,16h96a8,8,0,0,0,0-16Z"}))],["fill",p.createElement(p.Fragment,null,p.createElement("path",{d:"M216,40H40A16,16,0,0,0,24,56V200a16,16,0,0,0,16,16H216a16,16,0,0,0,16-16V56A16,16,0,0,0,216,40ZM77.66,173.66a8,8,0,0,1-11.32-11.32L100.69,128,66.34,93.66A8,8,0,0,1,77.66,82.34l40,40a8,8,0,0,1,0,11.32ZM192,176H128a8,8,0,0,1,0-16h64a8,8,0,0,1,0,16Z"}))],["light",p.createElement(p.Fragment,null,p.createElement("path",{d:"M116,132.48l-72,64a6,6,0,0,1-8-9L103,128,36,68.49a6,6,0,0,1,8-9l72,64a6,6,0,0,1,0,9ZM216,186H120a6,6,0,0,0,0,12h96a6,6,0,0,0,0-12Z"}))],["regular",p.createElement(p.Fragment,null,p.createElement("path",{d:"M117.31,134l-72,64a8,8,0,1,1-10.63-12L100,128,34.69,70A8,8,0,1,1,45.32,58l72,64a8,8,0,0,1,0,12ZM216,184H120a8,8,0,0,0,0,16h96a8,8,0,0,0,0-16Z"}))],["thin",p.createElement(p.Fragment,null,p.createElement("path",{d:"M116,128a4,4,0,0,1-1.34,3l-72,64a4,4,0,1,1-5.32-6L106,128,37.34,67a4,4,0,0,1,5.32-6l72,64A4,4,0,0,1,116,128Zm100,60H120a4,4,0,0,0,0,8h96a4,4,0,0,0,0-8Z"}))]]),_D=new Map([["bold",p.createElement(p.Fragment,null,p.createElement("path",{d:"M212,56V88a12,12,0,0,1-24,0V68H140V188h20a12,12,0,0,1,0,24H96a12,12,0,0,1,0-24h20V68H68V88a12,12,0,0,1-24,0V56A12,12,0,0,1,56,44H200A12,12,0,0,1,212,56Z"}))],["duotone",p.createElement(p.Fragment,null,p.createElement("path",{d:"M200,56V184a16,16,0,0,1-16,16H72a16,16,0,0,1-16-16V56Z",opacity:"0.2"}),p.createElement("path",{d:"M208,56V88a8,8,0,0,1-16,0V64H136V192h24a8,8,0,0,1,0,16H96a8,8,0,0,1,0-16h24V64H64V88a8,8,0,0,1-16,0V56a8,8,0,0,1,8-8H200A8,8,0,0,1,208,56Z"}))],["fill",p.createElement(p.Fragment,null,p.createElement("path",{d:"M208,32H48A16,16,0,0,0,32,48V208a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V48A16,16,0,0,0,208,32ZM184,96a8,8,0,0,1-16,0V88H136v88h12a8,8,0,0,1,0,16H108a8,8,0,0,1,0-16h12V88H88v8a8,8,0,0,1-16,0V80a8,8,0,0,1,8-8h96a8,8,0,0,1,8,8Z"}))],["light",p.createElement(p.Fragment,null,p.createElement("path",{d:"M206,56V88a6,6,0,0,1-12,0V62H134V194h26a6,6,0,0,1,0,12H96a6,6,0,0,1,0-12h26V62H62V88a6,6,0,0,1-12,0V56a6,6,0,0,1,6-6H200A6,6,0,0,1,206,56Z"}))],["regular",p.createElement(p.Fragment,null,p.createElement("path",{d:"M208,56V88a8,8,0,0,1-16,0V64H136V192h24a8,8,0,0,1,0,16H96a8,8,0,0,1,0-16h24V64H64V88a8,8,0,0,1-16,0V56a8,8,0,0,1,8-8H200A8,8,0,0,1,208,56Z"}))],["thin",p.createElement(p.Fragment,null,p.createElement("path",{d:"M204,56V88a4,4,0,0,1-8,0V60H132V196h28a4,4,0,0,1,0,8H96a4,4,0,0,1,0-8h28V60H60V88a4,4,0,0,1-8,0V56a4,4,0,0,1,4-4H200A4,4,0,0,1,204,56Z"}))]]),TD=new Map([["bold",p.createElement(p.Fragment,null,p.createElement("path",{d:"M224,64H180V56a28,28,0,0,0-28-28H104A28,28,0,0,0,76,56v8H32A20,20,0,0,0,12,84V192a20,20,0,0,0,20,20H224a20,20,0,0,0,20-20V84A20,20,0,0,0,224,64ZM100,56a4,4,0,0,1,4-4h48a4,4,0,0,1,4,4v8H100ZM220,88v32H196v-4a12,12,0,0,0-24,0v4H84v-4a12,12,0,0,0-24,0v4H36V88ZM36,188V144H60v4a12,12,0,0,0,24,0v-4h88v4a12,12,0,0,0,24,0v-4h24v44Z"}))],["duotone",p.createElement(p.Fragment,null,p.createElement("path",{d:"M232,120v72a8,8,0,0,1-8,8H32a8,8,0,0,1-8-8V120Z",opacity:"0.2"}),p.createElement("path",{d:"M224,64H176V56a24,24,0,0,0-24-24H104A24,24,0,0,0,80,56v8H32A16,16,0,0,0,16,80V192a16,16,0,0,0,16,16H224a16,16,0,0,0,16-16V80A16,16,0,0,0,224,64ZM96,56a8,8,0,0,1,8-8h48a8,8,0,0,1,8,8v8H96ZM32,80H224v32H192v-8a8,8,0,0,0-16,0v8H80v-8a8,8,0,0,0-16,0v8H32ZM224,192H32V128H64v8a8,8,0,0,0,16,0v-8h96v8a8,8,0,0,0,16,0v-8h32v64Z"}))],["fill",p.createElement(p.Fragment,null,p.createElement("path",{d:"M224,64H176V56a24,24,0,0,0-24-24H104A24,24,0,0,0,80,56v8H32A16,16,0,0,0,16,80v28a4,4,0,0,0,4,4H64V96.27A8.17,8.17,0,0,1,71.47,88,8,8,0,0,1,80,96v16h96V96.27A8.17,8.17,0,0,1,183.47,88,8,8,0,0,1,192,96v16h44a4,4,0,0,0,4-4V80A16,16,0,0,0,224,64Zm-64,0H96V56a8,8,0,0,1,8-8h48a8,8,0,0,1,8,8Zm80,68v60a16,16,0,0,1-16,16H32a16,16,0,0,1-16-16V132a4,4,0,0,1,4-4H64v16a8,8,0,0,0,8.53,8A8.17,8.17,0,0,0,80,143.73V128h96v16a8,8,0,0,0,8.53,8,8.17,8.17,0,0,0,7.47-8.25V128h44A4,4,0,0,1,240,132Z"}))],["light",p.createElement(p.Fragment,null,p.createElement("path",{d:"M224,66H174V56a22,22,0,0,0-22-22H104A22,22,0,0,0,82,56V66H32A14,14,0,0,0,18,80V192a14,14,0,0,0,14,14H224a14,14,0,0,0,14-14V80A14,14,0,0,0,224,66ZM94,56a10,10,0,0,1,10-10h48a10,10,0,0,1,10,10V66H94ZM32,78H224a2,2,0,0,1,2,2v34H190V104a6,6,0,0,0-12,0v10H78V104a6,6,0,0,0-12,0v10H30V80A2,2,0,0,1,32,78ZM224,194H32a2,2,0,0,1-2-2V126H66v10a6,6,0,0,0,12,0V126H178v10a6,6,0,0,0,12,0V126h36v66A2,2,0,0,1,224,194Z"}))],["regular",p.createElement(p.Fragment,null,p.createElement("path",{d:"M224,64H176V56a24,24,0,0,0-24-24H104A24,24,0,0,0,80,56v8H32A16,16,0,0,0,16,80V192a16,16,0,0,0,16,16H224a16,16,0,0,0,16-16V80A16,16,0,0,0,224,64ZM96,56a8,8,0,0,1,8-8h48a8,8,0,0,1,8,8v8H96ZM224,80v32H192v-8a8,8,0,0,0-16,0v8H80v-8a8,8,0,0,0-16,0v8H32V80Zm0,112H32V128H64v8a8,8,0,0,0,16,0v-8h96v8a8,8,0,0,0,16,0v-8h32v64Z"}))],["thin",p.createElement(p.Fragment,null,p.createElement("path",{d:"M224,68H172V56a20,20,0,0,0-20-20H104A20,20,0,0,0,84,56V68H32A12,12,0,0,0,20,80V192a12,12,0,0,0,12,12H224a12,12,0,0,0,12-12V80A12,12,0,0,0,224,68ZM92,56a12,12,0,0,1,12-12h48a12,12,0,0,1,12,12V68H92ZM32,76H224a4,4,0,0,1,4,4v36H188V104a4,4,0,0,0-8,0v12H76V104a4,4,0,0,0-8,0v12H28V80A4,4,0,0,1,32,76ZM224,196H32a4,4,0,0,1-4-4V124H68v12a4,4,0,0,0,8,0V124H180v12a4,4,0,0,0,8,0V124h40v68A4,4,0,0,1,224,196Z"}))]]),AD=new Map([["bold",p.createElement(p.Fragment,null,p.createElement("path",{d:"M216,48H180V36A28,28,0,0,0,152,8H104A28,28,0,0,0,76,36V48H40a12,12,0,0,0,0,24h4V208a20,20,0,0,0,20,20H192a20,20,0,0,0,20-20V72h4a12,12,0,0,0,0-24ZM100,36a4,4,0,0,1,4-4h48a4,4,0,0,1,4,4V48H100Zm88,168H68V72H188ZM116,104v64a12,12,0,0,1-24,0V104a12,12,0,0,1,24,0Zm48,0v64a12,12,0,0,1-24,0V104a12,12,0,0,1,24,0Z"}))],["duotone",p.createElement(p.Fragment,null,p.createElement("path",{d:"M200,56V208a8,8,0,0,1-8,8H64a8,8,0,0,1-8-8V56Z",opacity:"0.2"}),p.createElement("path",{d:"M216,48H176V40a24,24,0,0,0-24-24H104A24,24,0,0,0,80,40v8H40a8,8,0,0,0,0,16h8V208a16,16,0,0,0,16,16H192a16,16,0,0,0,16-16V64h8a8,8,0,0,0,0-16ZM96,40a8,8,0,0,1,8-8h48a8,8,0,0,1,8,8v8H96Zm96,168H64V64H192ZM112,104v64a8,8,0,0,1-16,0V104a8,8,0,0,1,16,0Zm48,0v64a8,8,0,0,1-16,0V104a8,8,0,0,1,16,0Z"}))],["fill",p.createElement(p.Fragment,null,p.createElement("path",{d:"M216,48H176V40a24,24,0,0,0-24-24H104A24,24,0,0,0,80,40v8H40a8,8,0,0,0,0,16h8V208a16,16,0,0,0,16,16H192a16,16,0,0,0,16-16V64h8a8,8,0,0,0,0-16ZM112,168a8,8,0,0,1-16,0V104a8,8,0,0,1,16,0Zm48,0a8,8,0,0,1-16,0V104a8,8,0,0,1,16,0Zm0-120H96V40a8,8,0,0,1,8-8h48a8,8,0,0,1,8,8Z"}))],["light",p.createElement(p.Fragment,null,p.createElement("path",{d:"M216,50H174V40a22,22,0,0,0-22-22H104A22,22,0,0,0,82,40V50H40a6,6,0,0,0,0,12H50V208a14,14,0,0,0,14,14H192a14,14,0,0,0,14-14V62h10a6,6,0,0,0,0-12ZM94,40a10,10,0,0,1,10-10h48a10,10,0,0,1,10,10V50H94ZM194,208a2,2,0,0,1-2,2H64a2,2,0,0,1-2-2V62H194ZM110,104v64a6,6,0,0,1-12,0V104a6,6,0,0,1,12,0Zm48,0v64a6,6,0,0,1-12,0V104a6,6,0,0,1,12,0Z"}))],["regular",p.createElement(p.Fragment,null,p.createElement("path",{d:"M216,48H176V40a24,24,0,0,0-24-24H104A24,24,0,0,0,80,40v8H40a8,8,0,0,0,0,16h8V208a16,16,0,0,0,16,16H192a16,16,0,0,0,16-16V64h8a8,8,0,0,0,0-16ZM96,40a8,8,0,0,1,8-8h48a8,8,0,0,1,8,8v8H96Zm96,168H64V64H192ZM112,104v64a8,8,0,0,1-16,0V104a8,8,0,0,1,16,0Zm48,0v64a8,8,0,0,1-16,0V104a8,8,0,0,1,16,0Z"}))],["thin",p.createElement(p.Fragment,null,p.createElement("path",{d:"M216,52H172V40a20,20,0,0,0-20-20H104A20,20,0,0,0,84,40V52H40a4,4,0,0,0,0,8H52V208a12,12,0,0,0,12,12H192a12,12,0,0,0,12-12V60h12a4,4,0,0,0,0-8ZM92,40a12,12,0,0,1,12-12h48a12,12,0,0,1,12,12V52H92ZM196,208a4,4,0,0,1-4,4H64a4,4,0,0,1-4-4V60H196ZM108,104v64a4,4,0,0,1-8,0V104a4,4,0,0,1,8,0Zm48,0v64a4,4,0,0,1-8,0V104a4,4,0,0,1,8,0Z"}))]]),SD=new Map([["bold",p.createElement(p.Fragment,null,p.createElement("path",{d:"M208.49,191.51a12,12,0,0,1-17,17L128,145,64.49,208.49a12,12,0,0,1-17-17L111,128,47.51,64.49a12,12,0,0,1,17-17L128,111l63.51-63.52a12,12,0,0,1,17,17L145,128Z"}))],["duotone",p.createElement(p.Fragment,null,p.createElement("path",{d:"M216,56V200a16,16,0,0,1-16,16H56a16,16,0,0,1-16-16V56A16,16,0,0,1,56,40H200A16,16,0,0,1,216,56Z",opacity:"0.2"}),p.createElement("path",{d:"M205.66,194.34a8,8,0,0,1-11.32,11.32L128,139.31,61.66,205.66a8,8,0,0,1-11.32-11.32L116.69,128,50.34,61.66A8,8,0,0,1,61.66,50.34L128,116.69l66.34-66.35a8,8,0,0,1,11.32,11.32L139.31,128Z"}))],["fill",p.createElement(p.Fragment,null,p.createElement("path",{d:"M208,32H48A16,16,0,0,0,32,48V208a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V48A16,16,0,0,0,208,32ZM181.66,170.34a8,8,0,0,1-11.32,11.32L128,139.31,85.66,181.66a8,8,0,0,1-11.32-11.32L116.69,128,74.34,85.66A8,8,0,0,1,85.66,74.34L128,116.69l42.34-42.35a8,8,0,0,1,11.32,11.32L139.31,128Z"}))],["light",p.createElement(p.Fragment,null,p.createElement("path",{d:"M204.24,195.76a6,6,0,1,1-8.48,8.48L128,136.49,60.24,204.24a6,6,0,0,1-8.48-8.48L119.51,128,51.76,60.24a6,6,0,0,1,8.48-8.48L128,119.51l67.76-67.75a6,6,0,0,1,8.48,8.48L136.49,128Z"}))],["regular",p.createElement(p.Fragment,null,p.createElement("path",{d:"M205.66,194.34a8,8,0,0,1-11.32,11.32L128,139.31,61.66,205.66a8,8,0,0,1-11.32-11.32L116.69,128,50.34,61.66A8,8,0,0,1,61.66,50.34L128,116.69l66.34-66.35a8,8,0,0,1,11.32,11.32L139.31,128Z"}))],["thin",p.createElement(p.Fragment,null,p.createElement("path",{d:"M202.83,197.17a4,4,0,0,1-5.66,5.66L128,133.66,58.83,202.83a4,4,0,0,1-5.66-5.66L122.34,128,53.17,58.83a4,4,0,0,1,5.66-5.66L128,122.34l69.17-69.17a4,4,0,1,1,5.66,5.66L133.66,128Z"}))]]),wD=new Map([["bold",p.createElement(p.Fragment,null,p.createElement("path",{d:"M218.12,209.56l-61-95.8,59.72-65.69a12,12,0,0,0-17.76-16.14L143.81,92.77,106.12,33.56A12,12,0,0,0,96,28H48A12,12,0,0,0,37.88,46.44l61,95.8L39.12,207.93a12,12,0,1,0,17.76,16.14l55.31-60.84,37.69,59.21A12,12,0,0,0,160,228h48a12,12,0,0,0,10.12-18.44ZM166.59,204,69.86,52H89.41l96.73,152Z"}))],["duotone",p.createElement(p.Fragment,null,p.createElement("path",{d:"M208,216H160L48,40H96Z",opacity:"0.2"}),p.createElement("path",{d:"M214.75,211.71l-62.6-98.38,61.77-67.95a8,8,0,0,0-11.84-10.76L143.24,99.34,102.75,35.71A8,8,0,0,0,96,32H48a8,8,0,0,0-6.75,12.3l62.6,98.37-61.77,68a8,8,0,1,0,11.84,10.76l58.84-64.72,40.49,63.63A8,8,0,0,0,160,224h48a8,8,0,0,0,6.75-12.29ZM164.39,208,62.57,48h29L193.43,208Z"}))],["fill",p.createElement(p.Fragment,null,p.createElement("path",{d:"M215,219.85a8,8,0,0,1-7,4.15H160a8,8,0,0,1-6.75-3.71l-40.49-63.63L53.92,221.38a8,8,0,0,1-11.84-10.76l61.77-68L41.25,44.3A8,8,0,0,1,48,32H96a8,8,0,0,1,6.75,3.71l40.49,63.63,58.84-64.72a8,8,0,0,1,11.84,10.76l-61.77,67.95,62.6,98.38A8,8,0,0,1,215,219.85Z"}))],["light",p.createElement(p.Fragment,null,p.createElement("path",{d:"M213.06,212.78l-63.42-99.66L212.44,44A6,6,0,1,0,203.56,36L143,102.62l-41.9-65.84A6,6,0,0,0,96,34H48a6,6,0,0,0-5.06,9.22l63.42,99.66L43.56,212A6,6,0,0,0,52.44,220L113,153.38l41.9,65.84A6,6,0,0,0,160,222h48a6,6,0,0,0,5.06-9.22ZM163.29,210,58.93,46H92.71L197.07,210Z"}))],["regular",p.createElement(p.Fragment,null,p.createElement("path",{d:"M214.75,211.71l-62.6-98.38,61.77-67.95a8,8,0,0,0-11.84-10.76L143.24,99.34,102.75,35.71A8,8,0,0,0,96,32H48a8,8,0,0,0-6.75,12.3l62.6,98.37-61.77,68a8,8,0,1,0,11.84,10.76l58.84-64.72,40.49,63.63A8,8,0,0,0,160,224h48a8,8,0,0,0,6.75-12.29ZM164.39,208,62.57,48h29L193.43,208Z"}))],["thin",p.createElement(p.Fragment,null,p.createElement("path",{d:"M211.37,213.85,147.13,112.9,211,42.69A4,4,0,0,0,205,37.31L142.68,105.9,99.38,37.85A4,4,0,0,0,96,36H48a4,4,0,0,0-3.37,6.15L108.87,143.1,45,213.31A4,4,0,1,0,51,218.69l62.36-68.59,43.3,68.05A4,4,0,0,0,160,220h48a4,4,0,0,0,3.37-6.15ZM162.2,212,55.29,44H93.8L200.71,212Z"}))]]),CD=p.createContext({color:"currentColor",size:"1em",weight:"regular",mirrored:!1}),jt=p.forwardRef((e,t)=>{const{alt:n,color:r,size:a,weight:i,mirrored:l,children:u,weights:d,...h}=e,{color:v="currentColor",size:m,weight:E="regular",mirrored:b=!1,...T}=p.useContext(CD);return p.createElement("svg",{ref:t,xmlns:"http://www.w3.org/2000/svg",width:a??m,height:a??m,fill:r??v,viewBox:"0 0 256 256",transform:l||b?"scale(-1, 1)":void 0,...T,...h},!!n&&p.createElement("title",null,n),u,d.get(i??E))});jt.displayName="IconBase";const QT=p.forwardRef((e,t)=>p.createElement(jt,{ref:t,...e,weights:Qk}));QT.displayName="ArrowLeftIcon";const j8=p.forwardRef((e,t)=>p.createElement(jt,{ref:t,...e,weights:Yk}));j8.displayName="ArrowRightIcon";const YT=p.forwardRef((e,t)=>p.createElement(jt,{ref:t,...e,weights:Gk}));YT.displayName="ArrowSquareOutIcon";const GT=p.forwardRef((e,t)=>p.createElement(jt,{ref:t,...e,weights:Kk}));GT.displayName="ArrowUpRightIcon";const KT=p.forwardRef((e,t)=>p.createElement(jt,{ref:t,...e,weights:Xk}));KT.displayName="AsteriskIcon";const XT=p.forwardRef((e,t)=>p.createElement(jt,{ref:t,...e,weights:Wk}));XT.displayName="BookOpenIcon";const H8=p.forwardRef((e,t)=>p.createElement(jt,{ref:t,...e,weights:Jk}));H8.displayName="BookOpenTextIcon";const WT=p.forwardRef((e,t)=>p.createElement(jt,{ref:t,...e,weights:eD}));WT.displayName="BugIcon";const Vh=p.forwardRef((e,t)=>p.createElement(jt,{ref:t,...e,weights:tD}));Vh.displayName="CaretRightIcon";const JT=p.forwardRef((e,t)=>p.createElement(jt,{ref:t,...e,weights:nD}));JT.displayName="CaretUpDownIcon";const eA=p.forwardRef((e,t)=>p.createElement(jt,{ref:t,...e,weights:rD}));eA.displayName="ChatCircleDotsIcon";const tA=p.forwardRef((e,t)=>p.createElement(jt,{ref:t,...e,weights:aD}));tA.displayName="CheckCircleIcon";const F8=p.forwardRef((e,t)=>p.createElement(jt,{ref:t,...e,weights:sD}));F8.displayName="CircleIcon";const nA=p.forwardRef((e,t)=>p.createElement(jt,{ref:t,...e,weights:iD}));nA.displayName="CircleNotchIcon";const rA=p.forwardRef((e,t)=>p.createElement(jt,{ref:t,...e,weights:oD}));rA.displayName="CopyIcon";const aA=p.forwardRef((e,t)=>p.createElement(jt,{ref:t,...e,weights:lD}));aA.displayName="DiscordLogoIcon";const jd=p.forwardRef((e,t)=>p.createElement(jt,{ref:t,...e,weights:uD}));jd.displayName="DotsThreeOutlineVerticalIcon";const U8=p.forwardRef((e,t)=>p.createElement(jt,{ref:t,...e,weights:cD}));U8.displayName="GearIcon";const B8=p.forwardRef((e,t)=>p.createElement(jt,{ref:t,...e,weights:dD}));B8.displayName="GithubLogoIcon";const sA=p.forwardRef((e,t)=>p.createElement(jt,{ref:t,...e,weights:fD}));sA.displayName="GlobeIcon";const V8=p.forwardRef((e,t)=>p.createElement(jt,{ref:t,...e,weights:hD}));V8.displayName="HardDriveIcon";const iA=p.forwardRef((e,t)=>p.createElement(jt,{ref:t,...e,weights:mD}));iA.displayName="LinkIcon";const oA=p.forwardRef((e,t)=>p.createElement(jt,{ref:t,...e,weights:pD}));oA.displayName="ListMagnifyingGlassIcon";const lA=p.forwardRef((e,t)=>p.createElement(jt,{ref:t,...e,weights:gD}));lA.displayName="NewspaperClippingIcon";const z8=p.forwardRef((e,t)=>p.createElement(jt,{ref:t,...e,weights:vD}));z8.displayName="PlusIcon";const q8=p.forwardRef((e,t)=>p.createElement(jt,{ref:t,...e,weights:yD}));q8.displayName="SealCheckIcon";const uA=p.forwardRef((e,t)=>p.createElement(jt,{ref:t,...e,weights:bD}));uA.displayName="SidebarIcon";const cA=p.forwardRef((e,t)=>p.createElement(jt,{ref:t,...e,weights:ED}));cA.displayName="SpinnerGapIcon";const dA=p.forwardRef((e,t)=>p.createElement(jt,{ref:t,...e,weights:xD}));dA.displayName="TerminalIcon";const fA=p.forwardRef((e,t)=>p.createElement(jt,{ref:t,...e,weights:_D}));fA.displayName="TextTIcon";const hA=p.forwardRef((e,t)=>p.createElement(jt,{ref:t,...e,weights:TD}));hA.displayName="ToolboxIcon";const zh=p.forwardRef((e,t)=>p.createElement(jt,{ref:t,...e,weights:AD}));zh.displayName="TrashIcon";const qh=p.forwardRef((e,t)=>p.createElement(jt,{ref:t,...e,weights:SD}));qh.displayName="XIcon";const mA=p.forwardRef((e,t)=>p.createElement(jt,{ref:t,...e,weights:wD}));mA.displayName="XLogoIcon";function $E(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function $h(...e){return t=>{let n=!1;const r=e.map(a=>{const i=$E(a,t);return!n&&typeof i=="function"&&(n=!0),i});if(n)return()=>{for(let a=0;a<r.length;a++){const i=r[a];typeof i=="function"?i():$E(e[a],null)}}}}function xn(...e){return p.useCallback($h(...e),e)}function zo(e){const t=RD(e),n=p.forwardRef((r,a)=>{const{children:i,...l}=r,u=p.Children.toArray(i),d=u.find(ND);if(d){const h=d.props.children,v=u.map(m=>m===d?p.Children.count(h)>1?p.Children.only(null):p.isValidElement(h)?h.props.children:null:m);return g.jsx(t,{...l,ref:a,children:p.isValidElement(h)?p.cloneElement(h,void 0,v):null})}return g.jsx(t,{...l,ref:a,children:i})});return n.displayName=`${e}.Slot`,n}var br=zo("Slot");function RD(e){const t=p.forwardRef((n,r)=>{const{children:a,...i}=n;if(p.isValidElement(a)){const l=kD(a),u=PD(i,a.props);return a.type!==p.Fragment&&(u.ref=r?$h(r,l):l),p.cloneElement(a,u)}return p.Children.count(a)>1?p.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var pA=Symbol("radix.slottable");function OD(e){const t=({children:n})=>g.jsx(g.Fragment,{children:n});return t.displayName=`${e}.Slottable`,t.__radixId=pA,t}function ND(e){return p.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===pA}function PD(e,t){const n={...t};for(const r in t){const a=e[r],i=t[r];/^on[A-Z]/.test(r)?a&&i?n[r]=(...u)=>{const d=i(...u);return a(...u),d}:a&&(n[r]=a):r==="style"?n[r]={...a,...i}:r==="className"&&(n[r]=[a,i].filter(Boolean).join(" "))}return{...e,...n}}function kD(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}function gA(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var a=e.length;for(t=0;t<a;t++)e[t]&&(n=gA(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function vA(){for(var e,t,n=0,r="",a=arguments.length;n<a;n++)(e=arguments[n])&&(t=gA(e))&&(r&&(r+=" "),r+=t);return r}const ZE=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,QE=vA,Hd=(e,t)=>n=>{var r;if(t?.variants==null)return QE(e,n?.class,n?.className);const{variants:a,defaultVariants:i}=t,l=Object.keys(a).map(h=>{const v=n?.[h],m=i?.[h];if(v===null)return null;const E=ZE(v)||ZE(m);return a[h][E]}),u=n&&Object.entries(n).reduce((h,v)=>{let[m,E]=v;return E===void 0||(h[m]=E),h},{}),d=t==null||(r=t.compoundVariants)===null||r===void 0?void 0:r.reduce((h,v)=>{let{class:m,className:E,...b}=v;return Object.entries(b).every(T=>{let[A,S]=T;return Array.isArray(S)?S.includes({...i,...u}[A]):{...i,...u}[A]===S})?[...h,m,E]:h},[]);return QE(e,l,d,n?.class,n?.className)},$8="-",DD=e=>{const t=LD(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:l=>{const u=l.split($8);return u[0]===""&&u.length!==1&&u.shift(),yA(u,t)||MD(l)},getConflictingClassGroupIds:(l,u)=>{const d=n[l]||[];return u&&r[l]?[...d,...r[l]]:d}}},yA=(e,t)=>{if(e.length===0)return t.classGroupId;const n=e[0],r=t.nextPart.get(n),a=r?yA(e.slice(1),r):void 0;if(a)return a;if(t.validators.length===0)return;const i=e.join($8);return t.validators.find(({validator:l})=>l(i))?.classGroupId},YE=/^\[(.+)\]$/,MD=e=>{if(YE.test(e)){const t=YE.exec(e)[1],n=t?.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},LD=e=>{const{theme:t,classGroups:n}=e,r={nextPart:new Map,validators:[]};for(const a in n)rv(n[a],r,a,t);return r},rv=(e,t,n,r)=>{e.forEach(a=>{if(typeof a=="string"){const i=a===""?t:GE(t,a);i.classGroupId=n;return}if(typeof a=="function"){if(ID(a)){rv(a(r),t,n,r);return}t.validators.push({validator:a,classGroupId:n});return}Object.entries(a).forEach(([i,l])=>{rv(l,GE(t,i),n,r)})})},GE=(e,t)=>{let n=e;return t.split($8).forEach(r=>{n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n},ID=e=>e.isThemeGetter,jD=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,r=new Map;const a=(i,l)=>{n.set(i,l),t++,t>e&&(t=0,r=n,n=new Map)};return{get(i){let l=n.get(i);if(l!==void 0)return l;if((l=r.get(i))!==void 0)return a(i,l),l},set(i,l){n.has(i)?n.set(i,l):a(i,l)}}},av="!",sv=":",HD=sv.length,FD=e=>{const{prefix:t,experimentalParseClassName:n}=e;let r=a=>{const i=[];let l=0,u=0,d=0,h;for(let T=0;T<a.length;T++){let A=a[T];if(l===0&&u===0){if(A===sv){i.push(a.slice(d,T)),d=T+HD;continue}if(A==="/"){h=T;continue}}A==="["?l++:A==="]"?l--:A==="("?u++:A===")"&&u--}const v=i.length===0?a:a.substring(d),m=UD(v),E=m!==v,b=h&&h>d?h-d:void 0;return{modifiers:i,hasImportantModifier:E,baseClassName:m,maybePostfixModifierPosition:b}};if(t){const a=t+sv,i=r;r=l=>l.startsWith(a)?i(l.substring(a.length)):{isExternal:!0,modifiers:[],hasImportantModifier:!1,baseClassName:l,maybePostfixModifierPosition:void 0}}if(n){const a=r;r=i=>n({className:i,parseClassName:a})}return r},UD=e=>e.endsWith(av)?e.substring(0,e.length-1):e.startsWith(av)?e.substring(1):e,BD=e=>{const t=Object.fromEntries(e.orderSensitiveModifiers.map(r=>[r,!0]));return r=>{if(r.length<=1)return r;const a=[];let i=[];return r.forEach(l=>{l[0]==="["||t[l]?(a.push(...i.sort(),l),i=[]):i.push(l)}),a.push(...i.sort()),a}},VD=e=>({cache:jD(e.cacheSize),parseClassName:FD(e),sortModifiers:BD(e),...DD(e)}),zD=/\s+/,qD=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:a,sortModifiers:i}=t,l=[],u=e.trim().split(zD);let d="";for(let h=u.length-1;h>=0;h-=1){const v=u[h],{isExternal:m,modifiers:E,hasImportantModifier:b,baseClassName:T,maybePostfixModifierPosition:A}=n(v);if(m){d=v+(d.length>0?" "+d:d);continue}let S=!!A,w=r(S?T.substring(0,A):T);if(!w){if(!S){d=v+(d.length>0?" "+d:d);continue}if(w=r(T),!w){d=v+(d.length>0?" "+d:d);continue}S=!1}const R=i(E).join(":"),k=b?R+av:R,L=k+w;if(l.includes(L))continue;l.push(L);const I=a(w,S);for(let N=0;N<I.length;++N){const M=I[N];l.push(k+M)}d=v+(d.length>0?" "+d:d)}return d};function $D(){let e=0,t,n,r="";for(;e<arguments.length;)(t=arguments[e++])&&(n=bA(t))&&(r&&(r+=" "),r+=n);return r}const bA=e=>{if(typeof e=="string")return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=bA(e[r]))&&(n&&(n+=" "),n+=t);return n};function ZD(e,...t){let n,r,a,i=l;function l(d){const h=t.reduce((v,m)=>m(v),e());return n=VD(h),r=n.cache.get,a=n.cache.set,i=u,u(d)}function u(d){const h=r(d);if(h)return h;const v=qD(d,n);return a(d,v),v}return function(){return i($D.apply(null,arguments))}}const nr=e=>{const t=n=>n[e]||[];return t.isThemeGetter=!0,t},EA=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,xA=/^\((?:(\w[\w-]*):)?(.+)\)$/i,QD=/^\d+\/\d+$/,YD=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,GD=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,KD=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,XD=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,WD=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Zl=e=>QD.test(e),Rt=e=>!!e&&!Number.isNaN(Number(e)),$i=e=>!!e&&Number.isInteger(Number(e)),a2=e=>e.endsWith("%")&&Rt(e.slice(0,-1)),Ws=e=>YD.test(e),JD=()=>!0,eM=e=>GD.test(e)&&!KD.test(e),_A=()=>!1,tM=e=>XD.test(e),nM=e=>WD.test(e),rM=e=>!Ke(e)&&!Xe(e),aM=e=>Ru(e,SA,_A),Ke=e=>EA.test(e),Io=e=>Ru(e,wA,eM),s2=e=>Ru(e,uM,Rt),KE=e=>Ru(e,TA,_A),sM=e=>Ru(e,AA,nM),bf=e=>Ru(e,CA,tM),Xe=e=>xA.test(e),Bc=e=>Ou(e,wA),iM=e=>Ou(e,cM),XE=e=>Ou(e,TA),oM=e=>Ou(e,SA),lM=e=>Ou(e,AA),Ef=e=>Ou(e,CA,!0),Ru=(e,t,n)=>{const r=EA.exec(e);return r?r[1]?t(r[1]):n(r[2]):!1},Ou=(e,t,n=!1)=>{const r=xA.exec(e);return r?r[1]?t(r[1]):n:!1},TA=e=>e==="position"||e==="percentage",AA=e=>e==="image"||e==="url",SA=e=>e==="length"||e==="size"||e==="bg-size",wA=e=>e==="length",uM=e=>e==="number",cM=e=>e==="family-name",CA=e=>e==="shadow",dM=()=>{const e=nr("color"),t=nr("font"),n=nr("text"),r=nr("font-weight"),a=nr("tracking"),i=nr("leading"),l=nr("breakpoint"),u=nr("container"),d=nr("spacing"),h=nr("radius"),v=nr("shadow"),m=nr("inset-shadow"),E=nr("text-shadow"),b=nr("drop-shadow"),T=nr("blur"),A=nr("perspective"),S=nr("aspect"),w=nr("ease"),R=nr("animate"),k=()=>["auto","avoid","all","avoid-page","page","left","right","column"],L=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],I=()=>[...L(),Xe,Ke],N=()=>["auto","hidden","clip","visible","scroll"],M=()=>["auto","contain","none"],D=()=>[Xe,Ke,d],B=()=>[Zl,"full","auto",...D()],P=()=>[$i,"none","subgrid",Xe,Ke],U=()=>["auto",{span:["full",$i,Xe,Ke]},$i,Xe,Ke],F=()=>[$i,"auto",Xe,Ke],Q=()=>["auto","min","max","fr",Xe,Ke],Y=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],te=()=>["start","end","center","stretch","center-safe","end-safe"],V=()=>["auto",...D()],J=()=>[Zl,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...D()],X=()=>[e,Xe,Ke],se=()=>[...L(),XE,KE,{position:[Xe,Ke]}],C=()=>["no-repeat",{repeat:["","x","y","space","round"]}],oe=()=>["auto","cover","contain",oM,aM,{size:[Xe,Ke]}],ge=()=>[a2,Bc,Io],j=()=>["","none","full",h,Xe,Ke],Ee=()=>["",Rt,Bc,Io],Pe=()=>["solid","dashed","dotted","double"],q=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],ae=()=>[Rt,a2,XE,KE],Te=()=>["","none",T,Xe,Ke],qe=()=>["none",Rt,Xe,Ke],Ae=()=>["none",Rt,Xe,Ke],Oe=()=>[Rt,Xe,Ke],et=()=>[Zl,"full",...D()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Ws],breakpoint:[Ws],color:[JD],container:[Ws],"drop-shadow":[Ws],ease:["in","out","in-out"],font:[rM],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Ws],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Ws],shadow:[Ws],spacing:["px",Rt],text:[Ws],"text-shadow":[Ws],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Zl,Ke,Xe,S]}],container:["container"],columns:[{columns:[Rt,Ke,Xe,u]}],"break-after":[{"break-after":k()}],"break-before":[{"break-before":k()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:I()}],overflow:[{overflow:N()}],"overflow-x":[{"overflow-x":N()}],"overflow-y":[{"overflow-y":N()}],overscroll:[{overscroll:M()}],"overscroll-x":[{"overscroll-x":M()}],"overscroll-y":[{"overscroll-y":M()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:B()}],"inset-x":[{"inset-x":B()}],"inset-y":[{"inset-y":B()}],start:[{start:B()}],end:[{end:B()}],top:[{top:B()}],right:[{right:B()}],bottom:[{bottom:B()}],left:[{left:B()}],visibility:["visible","invisible","collapse"],z:[{z:[$i,"auto",Xe,Ke]}],basis:[{basis:[Zl,"full","auto",u,...D()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[Rt,Zl,"auto","initial","none",Ke]}],grow:[{grow:["",Rt,Xe,Ke]}],shrink:[{shrink:["",Rt,Xe,Ke]}],order:[{order:[$i,"first","last","none",Xe,Ke]}],"grid-cols":[{"grid-cols":P()}],"col-start-end":[{col:U()}],"col-start":[{"col-start":F()}],"col-end":[{"col-end":F()}],"grid-rows":[{"grid-rows":P()}],"row-start-end":[{row:U()}],"row-start":[{"row-start":F()}],"row-end":[{"row-end":F()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":Q()}],"auto-rows":[{"auto-rows":Q()}],gap:[{gap:D()}],"gap-x":[{"gap-x":D()}],"gap-y":[{"gap-y":D()}],"justify-content":[{justify:[...Y(),"normal"]}],"justify-items":[{"justify-items":[...te(),"normal"]}],"justify-self":[{"justify-self":["auto",...te()]}],"align-content":[{content:["normal",...Y()]}],"align-items":[{items:[...te(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...te(),{baseline:["","last"]}]}],"place-content":[{"place-content":Y()}],"place-items":[{"place-items":[...te(),"baseline"]}],"place-self":[{"place-self":["auto",...te()]}],p:[{p:D()}],px:[{px:D()}],py:[{py:D()}],ps:[{ps:D()}],pe:[{pe:D()}],pt:[{pt:D()}],pr:[{pr:D()}],pb:[{pb:D()}],pl:[{pl:D()}],m:[{m:V()}],mx:[{mx:V()}],my:[{my:V()}],ms:[{ms:V()}],me:[{me:V()}],mt:[{mt:V()}],mr:[{mr:V()}],mb:[{mb:V()}],ml:[{ml:V()}],"space-x":[{"space-x":D()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":D()}],"space-y-reverse":["space-y-reverse"],size:[{size:J()}],w:[{w:[u,"screen",...J()]}],"min-w":[{"min-w":[u,"screen","none",...J()]}],"max-w":[{"max-w":[u,"screen","none","prose",{screen:[l]},...J()]}],h:[{h:["screen","lh",...J()]}],"min-h":[{"min-h":["screen","lh","none",...J()]}],"max-h":[{"max-h":["screen","lh",...J()]}],"font-size":[{text:["base",n,Bc,Io]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[r,Xe,s2]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",a2,Ke]}],"font-family":[{font:[iM,Ke,t]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[a,Xe,Ke]}],"line-clamp":[{"line-clamp":[Rt,"none",Xe,s2]}],leading:[{leading:[i,...D()]}],"list-image":[{"list-image":["none",Xe,Ke]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",Xe,Ke]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:X()}],"text-color":[{text:X()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...Pe(),"wavy"]}],"text-decoration-thickness":[{decoration:[Rt,"from-font","auto",Xe,Io]}],"text-decoration-color":[{decoration:X()}],"underline-offset":[{"underline-offset":[Rt,"auto",Xe,Ke]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:D()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",Xe,Ke]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",Xe,Ke]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:se()}],"bg-repeat":[{bg:C()}],"bg-size":[{bg:oe()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},$i,Xe,Ke],radial:["",Xe,Ke],conic:[$i,Xe,Ke]},lM,sM]}],"bg-color":[{bg:X()}],"gradient-from-pos":[{from:ge()}],"gradient-via-pos":[{via:ge()}],"gradient-to-pos":[{to:ge()}],"gradient-from":[{from:X()}],"gradient-via":[{via:X()}],"gradient-to":[{to:X()}],rounded:[{rounded:j()}],"rounded-s":[{"rounded-s":j()}],"rounded-e":[{"rounded-e":j()}],"rounded-t":[{"rounded-t":j()}],"rounded-r":[{"rounded-r":j()}],"rounded-b":[{"rounded-b":j()}],"rounded-l":[{"rounded-l":j()}],"rounded-ss":[{"rounded-ss":j()}],"rounded-se":[{"rounded-se":j()}],"rounded-ee":[{"rounded-ee":j()}],"rounded-es":[{"rounded-es":j()}],"rounded-tl":[{"rounded-tl":j()}],"rounded-tr":[{"rounded-tr":j()}],"rounded-br":[{"rounded-br":j()}],"rounded-bl":[{"rounded-bl":j()}],"border-w":[{border:Ee()}],"border-w-x":[{"border-x":Ee()}],"border-w-y":[{"border-y":Ee()}],"border-w-s":[{"border-s":Ee()}],"border-w-e":[{"border-e":Ee()}],"border-w-t":[{"border-t":Ee()}],"border-w-r":[{"border-r":Ee()}],"border-w-b":[{"border-b":Ee()}],"border-w-l":[{"border-l":Ee()}],"divide-x":[{"divide-x":Ee()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":Ee()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...Pe(),"hidden","none"]}],"divide-style":[{divide:[...Pe(),"hidden","none"]}],"border-color":[{border:X()}],"border-color-x":[{"border-x":X()}],"border-color-y":[{"border-y":X()}],"border-color-s":[{"border-s":X()}],"border-color-e":[{"border-e":X()}],"border-color-t":[{"border-t":X()}],"border-color-r":[{"border-r":X()}],"border-color-b":[{"border-b":X()}],"border-color-l":[{"border-l":X()}],"divide-color":[{divide:X()}],"outline-style":[{outline:[...Pe(),"none","hidden"]}],"outline-offset":[{"outline-offset":[Rt,Xe,Ke]}],"outline-w":[{outline:["",Rt,Bc,Io]}],"outline-color":[{outline:X()}],shadow:[{shadow:["","none",v,Ef,bf]}],"shadow-color":[{shadow:X()}],"inset-shadow":[{"inset-shadow":["none",m,Ef,bf]}],"inset-shadow-color":[{"inset-shadow":X()}],"ring-w":[{ring:Ee()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:X()}],"ring-offset-w":[{"ring-offset":[Rt,Io]}],"ring-offset-color":[{"ring-offset":X()}],"inset-ring-w":[{"inset-ring":Ee()}],"inset-ring-color":[{"inset-ring":X()}],"text-shadow":[{"text-shadow":["none",E,Ef,bf]}],"text-shadow-color":[{"text-shadow":X()}],opacity:[{opacity:[Rt,Xe,Ke]}],"mix-blend":[{"mix-blend":[...q(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":q()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[Rt]}],"mask-image-linear-from-pos":[{"mask-linear-from":ae()}],"mask-image-linear-to-pos":[{"mask-linear-to":ae()}],"mask-image-linear-from-color":[{"mask-linear-from":X()}],"mask-image-linear-to-color":[{"mask-linear-to":X()}],"mask-image-t-from-pos":[{"mask-t-from":ae()}],"mask-image-t-to-pos":[{"mask-t-to":ae()}],"mask-image-t-from-color":[{"mask-t-from":X()}],"mask-image-t-to-color":[{"mask-t-to":X()}],"mask-image-r-from-pos":[{"mask-r-from":ae()}],"mask-image-r-to-pos":[{"mask-r-to":ae()}],"mask-image-r-from-color":[{"mask-r-from":X()}],"mask-image-r-to-color":[{"mask-r-to":X()}],"mask-image-b-from-pos":[{"mask-b-from":ae()}],"mask-image-b-to-pos":[{"mask-b-to":ae()}],"mask-image-b-from-color":[{"mask-b-from":X()}],"mask-image-b-to-color":[{"mask-b-to":X()}],"mask-image-l-from-pos":[{"mask-l-from":ae()}],"mask-image-l-to-pos":[{"mask-l-to":ae()}],"mask-image-l-from-color":[{"mask-l-from":X()}],"mask-image-l-to-color":[{"mask-l-to":X()}],"mask-image-x-from-pos":[{"mask-x-from":ae()}],"mask-image-x-to-pos":[{"mask-x-to":ae()}],"mask-image-x-from-color":[{"mask-x-from":X()}],"mask-image-x-to-color":[{"mask-x-to":X()}],"mask-image-y-from-pos":[{"mask-y-from":ae()}],"mask-image-y-to-pos":[{"mask-y-to":ae()}],"mask-image-y-from-color":[{"mask-y-from":X()}],"mask-image-y-to-color":[{"mask-y-to":X()}],"mask-image-radial":[{"mask-radial":[Xe,Ke]}],"mask-image-radial-from-pos":[{"mask-radial-from":ae()}],"mask-image-radial-to-pos":[{"mask-radial-to":ae()}],"mask-image-radial-from-color":[{"mask-radial-from":X()}],"mask-image-radial-to-color":[{"mask-radial-to":X()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":L()}],"mask-image-conic-pos":[{"mask-conic":[Rt]}],"mask-image-conic-from-pos":[{"mask-conic-from":ae()}],"mask-image-conic-to-pos":[{"mask-conic-to":ae()}],"mask-image-conic-from-color":[{"mask-conic-from":X()}],"mask-image-conic-to-color":[{"mask-conic-to":X()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:se()}],"mask-repeat":[{mask:C()}],"mask-size":[{mask:oe()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",Xe,Ke]}],filter:[{filter:["","none",Xe,Ke]}],blur:[{blur:Te()}],brightness:[{brightness:[Rt,Xe,Ke]}],contrast:[{contrast:[Rt,Xe,Ke]}],"drop-shadow":[{"drop-shadow":["","none",b,Ef,bf]}],"drop-shadow-color":[{"drop-shadow":X()}],grayscale:[{grayscale:["",Rt,Xe,Ke]}],"hue-rotate":[{"hue-rotate":[Rt,Xe,Ke]}],invert:[{invert:["",Rt,Xe,Ke]}],saturate:[{saturate:[Rt,Xe,Ke]}],sepia:[{sepia:["",Rt,Xe,Ke]}],"backdrop-filter":[{"backdrop-filter":["","none",Xe,Ke]}],"backdrop-blur":[{"backdrop-blur":Te()}],"backdrop-brightness":[{"backdrop-brightness":[Rt,Xe,Ke]}],"backdrop-contrast":[{"backdrop-contrast":[Rt,Xe,Ke]}],"backdrop-grayscale":[{"backdrop-grayscale":["",Rt,Xe,Ke]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[Rt,Xe,Ke]}],"backdrop-invert":[{"backdrop-invert":["",Rt,Xe,Ke]}],"backdrop-opacity":[{"backdrop-opacity":[Rt,Xe,Ke]}],"backdrop-saturate":[{"backdrop-saturate":[Rt,Xe,Ke]}],"backdrop-sepia":[{"backdrop-sepia":["",Rt,Xe,Ke]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":D()}],"border-spacing-x":[{"border-spacing-x":D()}],"border-spacing-y":[{"border-spacing-y":D()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",Xe,Ke]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[Rt,"initial",Xe,Ke]}],ease:[{ease:["linear","initial",w,Xe,Ke]}],delay:[{delay:[Rt,Xe,Ke]}],animate:[{animate:["none",R,Xe,Ke]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[A,Xe,Ke]}],"perspective-origin":[{"perspective-origin":I()}],rotate:[{rotate:qe()}],"rotate-x":[{"rotate-x":qe()}],"rotate-y":[{"rotate-y":qe()}],"rotate-z":[{"rotate-z":qe()}],scale:[{scale:Ae()}],"scale-x":[{"scale-x":Ae()}],"scale-y":[{"scale-y":Ae()}],"scale-z":[{"scale-z":Ae()}],"scale-3d":["scale-3d"],skew:[{skew:Oe()}],"skew-x":[{"skew-x":Oe()}],"skew-y":[{"skew-y":Oe()}],transform:[{transform:[Xe,Ke,"","none","gpu","cpu"]}],"transform-origin":[{origin:I()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:et()}],"translate-x":[{"translate-x":et()}],"translate-y":[{"translate-y":et()}],"translate-z":[{"translate-z":et()}],"translate-none":["translate-none"],accent:[{accent:X()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:X()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",Xe,Ke]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":D()}],"scroll-mx":[{"scroll-mx":D()}],"scroll-my":[{"scroll-my":D()}],"scroll-ms":[{"scroll-ms":D()}],"scroll-me":[{"scroll-me":D()}],"scroll-mt":[{"scroll-mt":D()}],"scroll-mr":[{"scroll-mr":D()}],"scroll-mb":[{"scroll-mb":D()}],"scroll-ml":[{"scroll-ml":D()}],"scroll-p":[{"scroll-p":D()}],"scroll-px":[{"scroll-px":D()}],"scroll-py":[{"scroll-py":D()}],"scroll-ps":[{"scroll-ps":D()}],"scroll-pe":[{"scroll-pe":D()}],"scroll-pt":[{"scroll-pt":D()}],"scroll-pr":[{"scroll-pr":D()}],"scroll-pb":[{"scroll-pb":D()}],"scroll-pl":[{"scroll-pl":D()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",Xe,Ke]}],fill:[{fill:["none",...X()]}],"stroke-w":[{stroke:[Rt,Bc,Io,s2]}],stroke:[{stroke:["none",...X()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},fM=ZD(dM);function De(...e){return fM(vA(e))}const RA=Hd(["inline-flex shrink-0 cursor-pointer items-center justify-center gap-x-2 whitespace-nowrap duration-200 will-change-auto","select-none font-medium font-sans tracking-[0.01em] outline-none","[&_svg]:pointer-events-none [&_svg]:size-3.5 [&_svg]:shrink-0","disabled:cursor-not-allowed disabled:opacity-50"],{variants:{variant:{default:"bg-fg text-surface hover:bg-fg/80 active:bg-fg/90",secondary:"bg-accent text-fg transition-opacity hover:opacity-50",inverse:"bg-surface text-fg hover:bg-surface/50",ghost:"bg-transparent text-fg-subtle transition-colors hover:bg-accent hover:text-fg focus-visible:bg-accent focus-visible:text-fg"},size:{sm:"h-6 rounded-md px-2.5 pb-0.25 text-[13px]",default:"h-7 rounded-md px-2.5 pb-0.25 text-xs",lg:"h-10 rounded-lg px-4 pb-0.25 text-base",icon:"size-6 rounded-md [&_svg]:size-5"}},defaultVariants:{variant:"default",size:"default"}});function Yt({className:e,variant:t,size:n,asChild:r=!1,...a}){const i=r?br:"button";return g.jsx(i,{className:De(RA({variant:t,size:n,className:e})),...a})}function ut(e,t,{checkForDefaultPrevented:n=!0}={}){return function(a){if(e?.(a),n===!1||!a.defaultPrevented)return t?.(a)}}function hM(e,t){const n=p.createContext(t),r=i=>{const{children:l,...u}=i,d=p.useMemo(()=>u,Object.values(u));return g.jsx(n.Provider,{value:d,children:l})};r.displayName=e+"Provider";function a(i){const l=p.useContext(n);if(l)return l;if(t!==void 0)return t;throw new Error(`\`${i}\` must be used within \`${e}\``)}return[r,a]}function Qr(e,t=[]){let n=[];function r(i,l){const u=p.createContext(l),d=n.length;n=[...n,l];const h=m=>{const{scope:E,children:b,...T}=m,A=E?.[e]?.[d]||u,S=p.useMemo(()=>T,Object.values(T));return g.jsx(A.Provider,{value:S,children:b})};h.displayName=i+"Provider";function v(m,E){const b=E?.[e]?.[d]||u,T=p.useContext(b);if(T)return T;if(l!==void 0)return l;throw new Error(`\`${m}\` must be used within \`${i}\``)}return[h,v]}const a=()=>{const i=n.map(l=>p.createContext(l));return function(u){const d=u?.[e]||i;return p.useMemo(()=>({[`__scope${e}`]:{...u,[e]:d}}),[u,d])}};return a.scopeName=e,[r,mM(a,...t)]}function mM(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(a=>({useScope:a(),scopeName:a.scopeName}));return function(i){const l=r.reduce((u,{useScope:d,scopeName:h})=>{const m=d(i)[`__scope${h}`];return{...u,...m}},{});return p.useMemo(()=>({[`__scope${t.scopeName}`]:l}),[l])}};return n.scopeName=t.scopeName,n}var Na=globalThis?.document?p.useLayoutEffect:()=>{},pM=I8[" useInsertionEffect ".trim().toString()]||Na;function Pa({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){const[a,i,l]=gM({defaultProp:t,onChange:n}),u=e!==void 0,d=u?e:a;{const v=p.useRef(e!==void 0);p.useEffect(()=>{const m=v.current;m!==u&&console.warn(`${r} is changing from ${m?"controlled":"uncontrolled"} to ${u?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),v.current=u},[u,r])}const h=p.useCallback(v=>{if(u){const m=vM(v)?v(e):v;m!==e&&l.current?.(m)}else i(v)},[u,e,i,l]);return[d,h]}function gM({defaultProp:e,onChange:t}){const[n,r]=p.useState(e),a=p.useRef(n),i=p.useRef(t);return pM(()=>{i.current=t},[t]),p.useEffect(()=>{a.current!==n&&(i.current?.(n),a.current=n)},[n,a]),[n,r,i]}function vM(e){return typeof e=="function"}var i2={exports:{}},Tr={};/**
|
|
18
|
-
* @license React
|
|
19
|
-
* react-dom.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 WE;function yM(){if(WE)return Tr;WE=1;var e=Bh();function t(d){var h="https://react.dev/errors/"+d;if(1<arguments.length){h+="?args[]="+encodeURIComponent(arguments[1]);for(var v=2;v<arguments.length;v++)h+="&args[]="+encodeURIComponent(arguments[v])}return"Minified React error #"+d+"; visit "+h+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function n(){}var r={d:{f:n,r:function(){throw Error(t(522))},D:n,C:n,L:n,m:n,X:n,S:n,M:n},p:0,findDOMNode:null},a=Symbol.for("react.portal");function i(d,h,v){var m=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:a,key:m==null?null:""+m,children:d,containerInfo:h,implementation:v}}var l=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function u(d,h){if(d==="font")return"";if(typeof h=="string")return h==="use-credentials"?h:""}return Tr.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=r,Tr.createPortal=function(d,h){var v=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!h||h.nodeType!==1&&h.nodeType!==9&&h.nodeType!==11)throw Error(t(299));return i(d,h,null,v)},Tr.flushSync=function(d){var h=l.T,v=r.p;try{if(l.T=null,r.p=2,d)return d()}finally{l.T=h,r.p=v,r.d.f()}},Tr.preconnect=function(d,h){typeof d=="string"&&(h?(h=h.crossOrigin,h=typeof h=="string"?h==="use-credentials"?h:"":void 0):h=null,r.d.C(d,h))},Tr.prefetchDNS=function(d){typeof d=="string"&&r.d.D(d)},Tr.preinit=function(d,h){if(typeof d=="string"&&h&&typeof h.as=="string"){var v=h.as,m=u(v,h.crossOrigin),E=typeof h.integrity=="string"?h.integrity:void 0,b=typeof h.fetchPriority=="string"?h.fetchPriority:void 0;v==="style"?r.d.S(d,typeof h.precedence=="string"?h.precedence:void 0,{crossOrigin:m,integrity:E,fetchPriority:b}):v==="script"&&r.d.X(d,{crossOrigin:m,integrity:E,fetchPriority:b,nonce:typeof h.nonce=="string"?h.nonce:void 0})}},Tr.preinitModule=function(d,h){if(typeof d=="string")if(typeof h=="object"&&h!==null){if(h.as==null||h.as==="script"){var v=u(h.as,h.crossOrigin);r.d.M(d,{crossOrigin:v,integrity:typeof h.integrity=="string"?h.integrity:void 0,nonce:typeof h.nonce=="string"?h.nonce:void 0})}}else h==null&&r.d.M(d)},Tr.preload=function(d,h){if(typeof d=="string"&&typeof h=="object"&&h!==null&&typeof h.as=="string"){var v=h.as,m=u(v,h.crossOrigin);r.d.L(d,v,{crossOrigin:m,integrity:typeof h.integrity=="string"?h.integrity:void 0,nonce:typeof h.nonce=="string"?h.nonce:void 0,type:typeof h.type=="string"?h.type:void 0,fetchPriority:typeof h.fetchPriority=="string"?h.fetchPriority:void 0,referrerPolicy:typeof h.referrerPolicy=="string"?h.referrerPolicy:void 0,imageSrcSet:typeof h.imageSrcSet=="string"?h.imageSrcSet:void 0,imageSizes:typeof h.imageSizes=="string"?h.imageSizes:void 0,media:typeof h.media=="string"?h.media:void 0})}},Tr.preloadModule=function(d,h){if(typeof d=="string")if(h){var v=u(h.as,h.crossOrigin);r.d.m(d,{as:typeof h.as=="string"&&h.as!=="script"?h.as:void 0,crossOrigin:v,integrity:typeof h.integrity=="string"?h.integrity:void 0})}else r.d.m(d)},Tr.requestFormReset=function(d){r.d.r(d)},Tr.unstable_batchedUpdates=function(d,h){return d(h)},Tr.useFormState=function(d,h,v){return l.H.useFormState(d,h,v)},Tr.useFormStatus=function(){return l.H.useHostTransitionStatus()},Tr.version="19.1.0",Tr}var JE;function OA(){if(JE)return i2.exports;JE=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),i2.exports=yM(),i2.exports}var Z8=OA();const NA=Cu(Z8);var bM=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],xt=bM.reduce((e,t)=>{const n=zo(`Primitive.${t}`),r=p.forwardRef((a,i)=>{const{asChild:l,...u}=a,d=l?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),g.jsx(d,{...u,ref:i})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function PA(e,t){e&&Z8.flushSync(()=>e.dispatchEvent(t))}function Q8(e){const t=e+"CollectionProvider",[n,r]=Qr(t),[a,i]=n(t,{collectionRef:{current:null},itemMap:new Map}),l=A=>{const{scope:S,children:w}=A,R=me.useRef(null),k=me.useRef(new Map).current;return g.jsx(a,{scope:S,itemMap:k,collectionRef:R,children:w})};l.displayName=t;const u=e+"CollectionSlot",d=zo(u),h=me.forwardRef((A,S)=>{const{scope:w,children:R}=A,k=i(u,w),L=xn(S,k.collectionRef);return g.jsx(d,{ref:L,children:R})});h.displayName=u;const v=e+"CollectionItemSlot",m="data-radix-collection-item",E=zo(v),b=me.forwardRef((A,S)=>{const{scope:w,children:R,...k}=A,L=me.useRef(null),I=xn(S,L),N=i(v,w);return me.useEffect(()=>(N.itemMap.set(L,{ref:L,...k}),()=>void N.itemMap.delete(L))),g.jsx(E,{[m]:"",ref:I,children:R})});b.displayName=v;function T(A){const S=i(e+"CollectionConsumer",A);return me.useCallback(()=>{const R=S.collectionRef.current;if(!R)return[];const k=Array.from(R.querySelectorAll(`[${m}]`));return Array.from(S.itemMap.values()).sort((N,M)=>k.indexOf(N.ref.current)-k.indexOf(M.ref.current))},[S.collectionRef,S.itemMap])}return[{Provider:l,Slot:h,ItemSlot:b},T,r]}var EM=p.createContext(void 0);function Fd(e){const t=p.useContext(EM);return e||t||"ltr"}function ws(e){const t=p.useRef(e);return p.useEffect(()=>{t.current=e}),p.useMemo(()=>(...n)=>t.current?.(...n),[])}function xM(e,t=globalThis?.document){const n=ws(e);p.useEffect(()=>{const r=a=>{a.key==="Escape"&&n(a)};return t.addEventListener("keydown",r,{capture:!0}),()=>t.removeEventListener("keydown",r,{capture:!0})},[n,t])}var _M="DismissableLayer",iv="dismissableLayer.update",TM="dismissableLayer.pointerDownOutside",AM="dismissableLayer.focusOutside",ex,kA=p.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Zh=p.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:a,onFocusOutside:i,onInteractOutside:l,onDismiss:u,...d}=e,h=p.useContext(kA),[v,m]=p.useState(null),E=v?.ownerDocument??globalThis?.document,[,b]=p.useState({}),T=xn(t,M=>m(M)),A=Array.from(h.layers),[S]=[...h.layersWithOutsidePointerEventsDisabled].slice(-1),w=A.indexOf(S),R=v?A.indexOf(v):-1,k=h.layersWithOutsidePointerEventsDisabled.size>0,L=R>=w,I=CM(M=>{const D=M.target,B=[...h.branches].some(P=>P.contains(D));!L||B||(a?.(M),l?.(M),M.defaultPrevented||u?.())},E),N=RM(M=>{const D=M.target;[...h.branches].some(P=>P.contains(D))||(i?.(M),l?.(M),M.defaultPrevented||u?.())},E);return xM(M=>{R===h.layers.size-1&&(r?.(M),!M.defaultPrevented&&u&&(M.preventDefault(),u()))},E),p.useEffect(()=>{if(v)return n&&(h.layersWithOutsidePointerEventsDisabled.size===0&&(ex=E.body.style.pointerEvents,E.body.style.pointerEvents="none"),h.layersWithOutsidePointerEventsDisabled.add(v)),h.layers.add(v),tx(),()=>{n&&h.layersWithOutsidePointerEventsDisabled.size===1&&(E.body.style.pointerEvents=ex)}},[v,E,n,h]),p.useEffect(()=>()=>{v&&(h.layers.delete(v),h.layersWithOutsidePointerEventsDisabled.delete(v),tx())},[v,h]),p.useEffect(()=>{const M=()=>b({});return document.addEventListener(iv,M),()=>document.removeEventListener(iv,M)},[]),g.jsx(xt.div,{...d,ref:T,style:{pointerEvents:k?L?"auto":"none":void 0,...e.style},onFocusCapture:ut(e.onFocusCapture,N.onFocusCapture),onBlurCapture:ut(e.onBlurCapture,N.onBlurCapture),onPointerDownCapture:ut(e.onPointerDownCapture,I.onPointerDownCapture)})});Zh.displayName=_M;var SM="DismissableLayerBranch",wM=p.forwardRef((e,t)=>{const n=p.useContext(kA),r=p.useRef(null),a=xn(t,r);return p.useEffect(()=>{const i=r.current;if(i)return n.branches.add(i),()=>{n.branches.delete(i)}},[n.branches]),g.jsx(xt.div,{...e,ref:a})});wM.displayName=SM;function CM(e,t=globalThis?.document){const n=ws(e),r=p.useRef(!1),a=p.useRef(()=>{});return p.useEffect(()=>{const i=u=>{if(u.target&&!r.current){let d=function(){DA(TM,n,h,{discrete:!0})};const h={originalEvent:u};u.pointerType==="touch"?(t.removeEventListener("click",a.current),a.current=d,t.addEventListener("click",a.current,{once:!0})):d()}else t.removeEventListener("click",a.current);r.current=!1},l=window.setTimeout(()=>{t.addEventListener("pointerdown",i)},0);return()=>{window.clearTimeout(l),t.removeEventListener("pointerdown",i),t.removeEventListener("click",a.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function RM(e,t=globalThis?.document){const n=ws(e),r=p.useRef(!1);return p.useEffect(()=>{const a=i=>{i.target&&!r.current&&DA(AM,n,{originalEvent:i},{discrete:!1})};return t.addEventListener("focusin",a),()=>t.removeEventListener("focusin",a)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function tx(){const e=new CustomEvent(iv);document.dispatchEvent(e)}function DA(e,t,n,{discrete:r}){const a=n.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&a.addEventListener(e,t,{once:!0}),r?PA(a,i):a.dispatchEvent(i)}var o2=0;function Y8(){p.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??nx()),document.body.insertAdjacentElement("beforeend",e[1]??nx()),o2++,()=>{o2===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),o2--}},[])}function nx(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var l2="focusScope.autoFocusOnMount",u2="focusScope.autoFocusOnUnmount",rx={bubbles:!1,cancelable:!0},OM="FocusScope",Qh=p.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:a,onUnmountAutoFocus:i,...l}=e,[u,d]=p.useState(null),h=ws(a),v=ws(i),m=p.useRef(null),E=xn(t,A=>d(A)),b=p.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;p.useEffect(()=>{if(r){let A=function(k){if(b.paused||!u)return;const L=k.target;u.contains(L)?m.current=L:Yi(m.current,{select:!0})},S=function(k){if(b.paused||!u)return;const L=k.relatedTarget;L!==null&&(u.contains(L)||Yi(m.current,{select:!0}))},w=function(k){if(document.activeElement===document.body)for(const I of k)I.removedNodes.length>0&&Yi(u)};document.addEventListener("focusin",A),document.addEventListener("focusout",S);const R=new MutationObserver(w);return u&&R.observe(u,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",A),document.removeEventListener("focusout",S),R.disconnect()}}},[r,u,b.paused]),p.useEffect(()=>{if(u){sx.add(b);const A=document.activeElement;if(!u.contains(A)){const w=new CustomEvent(l2,rx);u.addEventListener(l2,h),u.dispatchEvent(w),w.defaultPrevented||(NM(LM(MA(u)),{select:!0}),document.activeElement===A&&Yi(u))}return()=>{u.removeEventListener(l2,h),setTimeout(()=>{const w=new CustomEvent(u2,rx);u.addEventListener(u2,v),u.dispatchEvent(w),w.defaultPrevented||Yi(A??document.body,{select:!0}),u.removeEventListener(u2,v),sx.remove(b)},0)}}},[u,h,v,b]);const T=p.useCallback(A=>{if(!n&&!r||b.paused)return;const S=A.key==="Tab"&&!A.altKey&&!A.ctrlKey&&!A.metaKey,w=document.activeElement;if(S&&w){const R=A.currentTarget,[k,L]=PM(R);k&&L?!A.shiftKey&&w===L?(A.preventDefault(),n&&Yi(k,{select:!0})):A.shiftKey&&w===k&&(A.preventDefault(),n&&Yi(L,{select:!0})):w===R&&A.preventDefault()}},[n,r,b.paused]);return g.jsx(xt.div,{tabIndex:-1,...l,ref:E,onKeyDown:T})});Qh.displayName=OM;function NM(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(Yi(r,{select:t}),document.activeElement!==n)return}function PM(e){const t=MA(e),n=ax(t,e),r=ax(t.reverse(),e);return[n,r]}function MA(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const a=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||a?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function ax(e,t){for(const n of e)if(!kM(n,{upTo:t}))return n}function kM(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function DM(e){return e instanceof HTMLInputElement&&"select"in e}function Yi(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&DM(e)&&t&&e.select()}}var sx=MM();function MM(){let e=[];return{add(t){const n=e[0];t!==n&&n?.pause(),e=ix(e,t),e.unshift(t)},remove(t){e=ix(e,t),e[0]?.resume()}}}function ix(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function LM(e){return e.filter(t=>t.tagName!=="A")}var IM=I8[" useId ".trim().toString()]||(()=>{}),jM=0;function Ts(e){const[t,n]=p.useState(IM());return Na(()=>{n(r=>r??String(jM++))},[e]),e||(t?`radix-${t}`:"")}const HM=["top","right","bottom","left"],so=Math.min,ua=Math.max,eh=Math.round,xf=Math.floor,As=e=>({x:e,y:e}),FM={left:"right",right:"left",bottom:"top",top:"bottom"},UM={start:"end",end:"start"};function ov(e,t,n){return ua(e,so(t,n))}function li(e,t){return typeof e=="function"?e(t):e}function ui(e){return e.split("-")[0]}function Nu(e){return e.split("-")[1]}function G8(e){return e==="x"?"y":"x"}function K8(e){return e==="y"?"height":"width"}const BM=new Set(["top","bottom"]);function Es(e){return BM.has(ui(e))?"y":"x"}function X8(e){return G8(Es(e))}function VM(e,t,n){n===void 0&&(n=!1);const r=Nu(e),a=X8(e),i=K8(a);let l=a==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(l=th(l)),[l,th(l)]}function zM(e){const t=th(e);return[lv(e),t,lv(t)]}function lv(e){return e.replace(/start|end/g,t=>UM[t])}const ox=["left","right"],lx=["right","left"],qM=["top","bottom"],$M=["bottom","top"];function ZM(e,t,n){switch(e){case"top":case"bottom":return n?t?lx:ox:t?ox:lx;case"left":case"right":return t?qM:$M;default:return[]}}function QM(e,t,n,r){const a=Nu(e);let i=ZM(ui(e),n==="start",r);return a&&(i=i.map(l=>l+"-"+a),t&&(i=i.concat(i.map(lv)))),i}function th(e){return e.replace(/left|right|bottom|top/g,t=>FM[t])}function YM(e){return{top:0,right:0,bottom:0,left:0,...e}}function LA(e){return typeof e!="number"?YM(e):{top:e,right:e,bottom:e,left:e}}function nh(e){const{x:t,y:n,width:r,height:a}=e;return{width:r,height:a,top:n,left:t,right:t+r,bottom:n+a,x:t,y:n}}function ux(e,t,n){let{reference:r,floating:a}=e;const i=Es(t),l=X8(t),u=K8(l),d=ui(t),h=i==="y",v=r.x+r.width/2-a.width/2,m=r.y+r.height/2-a.height/2,E=r[u]/2-a[u]/2;let b;switch(d){case"top":b={x:v,y:r.y-a.height};break;case"bottom":b={x:v,y:r.y+r.height};break;case"right":b={x:r.x+r.width,y:m};break;case"left":b={x:r.x-a.width,y:m};break;default:b={x:r.x,y:r.y}}switch(Nu(t)){case"start":b[l]-=E*(n&&h?-1:1);break;case"end":b[l]+=E*(n&&h?-1:1);break}return b}const GM=async(e,t,n)=>{const{placement:r="bottom",strategy:a="absolute",middleware:i=[],platform:l}=n,u=i.filter(Boolean),d=await(l.isRTL==null?void 0:l.isRTL(t));let h=await l.getElementRects({reference:e,floating:t,strategy:a}),{x:v,y:m}=ux(h,r,d),E=r,b={},T=0;for(let A=0;A<u.length;A++){const{name:S,fn:w}=u[A],{x:R,y:k,data:L,reset:I}=await w({x:v,y:m,initialPlacement:r,placement:E,strategy:a,middlewareData:b,rects:h,platform:l,elements:{reference:e,floating:t}});v=R??v,m=k??m,b={...b,[S]:{...b[S],...L}},I&&T<=50&&(T++,typeof I=="object"&&(I.placement&&(E=I.placement),I.rects&&(h=I.rects===!0?await l.getElementRects({reference:e,floating:t,strategy:a}):I.rects),{x:v,y:m}=ux(h,E,d)),A=-1)}return{x:v,y:m,placement:E,strategy:a,middlewareData:b}};async function yd(e,t){var n;t===void 0&&(t={});const{x:r,y:a,platform:i,rects:l,elements:u,strategy:d}=e,{boundary:h="clippingAncestors",rootBoundary:v="viewport",elementContext:m="floating",altBoundary:E=!1,padding:b=0}=li(t,e),T=LA(b),S=u[E?m==="floating"?"reference":"floating":m],w=nh(await i.getClippingRect({element:(n=await(i.isElement==null?void 0:i.isElement(S)))==null||n?S:S.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(u.floating)),boundary:h,rootBoundary:v,strategy:d})),R=m==="floating"?{x:r,y:a,width:l.floating.width,height:l.floating.height}:l.reference,k=await(i.getOffsetParent==null?void 0:i.getOffsetParent(u.floating)),L=await(i.isElement==null?void 0:i.isElement(k))?await(i.getScale==null?void 0:i.getScale(k))||{x:1,y:1}:{x:1,y:1},I=nh(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:u,rect:R,offsetParent:k,strategy:d}):R);return{top:(w.top-I.top+T.top)/L.y,bottom:(I.bottom-w.bottom+T.bottom)/L.y,left:(w.left-I.left+T.left)/L.x,right:(I.right-w.right+T.right)/L.x}}const KM=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:a,rects:i,platform:l,elements:u,middlewareData:d}=t,{element:h,padding:v=0}=li(e,t)||{};if(h==null)return{};const m=LA(v),E={x:n,y:r},b=X8(a),T=K8(b),A=await l.getDimensions(h),S=b==="y",w=S?"top":"left",R=S?"bottom":"right",k=S?"clientHeight":"clientWidth",L=i.reference[T]+i.reference[b]-E[b]-i.floating[T],I=E[b]-i.reference[b],N=await(l.getOffsetParent==null?void 0:l.getOffsetParent(h));let M=N?N[k]:0;(!M||!await(l.isElement==null?void 0:l.isElement(N)))&&(M=u.floating[k]||i.floating[T]);const D=L/2-I/2,B=M/2-A[T]/2-1,P=so(m[w],B),U=so(m[R],B),F=P,Q=M-A[T]-U,Y=M/2-A[T]/2+D,te=ov(F,Y,Q),V=!d.arrow&&Nu(a)!=null&&Y!==te&&i.reference[T]/2-(Y<F?P:U)-A[T]/2<0,J=V?Y<F?Y-F:Y-Q:0;return{[b]:E[b]+J,data:{[b]:te,centerOffset:Y-te-J,...V&&{alignmentOffset:J}},reset:V}}}),XM=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:a,middlewareData:i,rects:l,initialPlacement:u,platform:d,elements:h}=t,{mainAxis:v=!0,crossAxis:m=!0,fallbackPlacements:E,fallbackStrategy:b="bestFit",fallbackAxisSideDirection:T="none",flipAlignment:A=!0,...S}=li(e,t);if((n=i.arrow)!=null&&n.alignmentOffset)return{};const w=ui(a),R=Es(u),k=ui(u)===u,L=await(d.isRTL==null?void 0:d.isRTL(h.floating)),I=E||(k||!A?[th(u)]:zM(u)),N=T!=="none";!E&&N&&I.push(...QM(u,A,T,L));const M=[u,...I],D=await yd(t,S),B=[];let P=((r=i.flip)==null?void 0:r.overflows)||[];if(v&&B.push(D[w]),m){const Y=VM(a,l,L);B.push(D[Y[0]],D[Y[1]])}if(P=[...P,{placement:a,overflows:B}],!B.every(Y=>Y<=0)){var U,F;const Y=(((U=i.flip)==null?void 0:U.index)||0)+1,te=M[Y];if(te&&(!(m==="alignment"?R!==Es(te):!1)||P.every(X=>X.overflows[0]>0&&Es(X.placement)===R)))return{data:{index:Y,overflows:P},reset:{placement:te}};let V=(F=P.filter(J=>J.overflows[0]<=0).sort((J,X)=>J.overflows[1]-X.overflows[1])[0])==null?void 0:F.placement;if(!V)switch(b){case"bestFit":{var Q;const J=(Q=P.filter(X=>{if(N){const se=Es(X.placement);return se===R||se==="y"}return!0}).map(X=>[X.placement,X.overflows.filter(se=>se>0).reduce((se,C)=>se+C,0)]).sort((X,se)=>X[1]-se[1])[0])==null?void 0:Q[0];J&&(V=J);break}case"initialPlacement":V=u;break}if(a!==V)return{reset:{placement:V}}}return{}}}};function cx(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function dx(e){return HM.some(t=>e[t]>=0)}const WM=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...a}=li(e,t);switch(r){case"referenceHidden":{const i=await yd(t,{...a,elementContext:"reference"}),l=cx(i,n.reference);return{data:{referenceHiddenOffsets:l,referenceHidden:dx(l)}}}case"escaped":{const i=await yd(t,{...a,altBoundary:!0}),l=cx(i,n.floating);return{data:{escapedOffsets:l,escaped:dx(l)}}}default:return{}}}}},IA=new Set(["left","top"]);async function JM(e,t){const{placement:n,platform:r,elements:a}=e,i=await(r.isRTL==null?void 0:r.isRTL(a.floating)),l=ui(n),u=Nu(n),d=Es(n)==="y",h=IA.has(l)?-1:1,v=i&&d?-1:1,m=li(t,e);let{mainAxis:E,crossAxis:b,alignmentAxis:T}=typeof m=="number"?{mainAxis:m,crossAxis:0,alignmentAxis:null}:{mainAxis:m.mainAxis||0,crossAxis:m.crossAxis||0,alignmentAxis:m.alignmentAxis};return u&&typeof T=="number"&&(b=u==="end"?T*-1:T),d?{x:b*v,y:E*h}:{x:E*h,y:b*v}}const eL=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:a,y:i,placement:l,middlewareData:u}=t,d=await JM(t,e);return l===((n=u.offset)==null?void 0:n.placement)&&(r=u.arrow)!=null&&r.alignmentOffset?{}:{x:a+d.x,y:i+d.y,data:{...d,placement:l}}}}},tL=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:a}=t,{mainAxis:i=!0,crossAxis:l=!1,limiter:u={fn:S=>{let{x:w,y:R}=S;return{x:w,y:R}}},...d}=li(e,t),h={x:n,y:r},v=await yd(t,d),m=Es(ui(a)),E=G8(m);let b=h[E],T=h[m];if(i){const S=E==="y"?"top":"left",w=E==="y"?"bottom":"right",R=b+v[S],k=b-v[w];b=ov(R,b,k)}if(l){const S=m==="y"?"top":"left",w=m==="y"?"bottom":"right",R=T+v[S],k=T-v[w];T=ov(R,T,k)}const A=u.fn({...t,[E]:b,[m]:T});return{...A,data:{x:A.x-n,y:A.y-r,enabled:{[E]:i,[m]:l}}}}}},nL=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:a,rects:i,middlewareData:l}=t,{offset:u=0,mainAxis:d=!0,crossAxis:h=!0}=li(e,t),v={x:n,y:r},m=Es(a),E=G8(m);let b=v[E],T=v[m];const A=li(u,t),S=typeof A=="number"?{mainAxis:A,crossAxis:0}:{mainAxis:0,crossAxis:0,...A};if(d){const k=E==="y"?"height":"width",L=i.reference[E]-i.floating[k]+S.mainAxis,I=i.reference[E]+i.reference[k]-S.mainAxis;b<L?b=L:b>I&&(b=I)}if(h){var w,R;const k=E==="y"?"width":"height",L=IA.has(ui(a)),I=i.reference[m]-i.floating[k]+(L&&((w=l.offset)==null?void 0:w[m])||0)+(L?0:S.crossAxis),N=i.reference[m]+i.reference[k]+(L?0:((R=l.offset)==null?void 0:R[m])||0)-(L?S.crossAxis:0);T<I?T=I:T>N&&(T=N)}return{[E]:b,[m]:T}}}},rL=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:a,rects:i,platform:l,elements:u}=t,{apply:d=()=>{},...h}=li(e,t),v=await yd(t,h),m=ui(a),E=Nu(a),b=Es(a)==="y",{width:T,height:A}=i.floating;let S,w;m==="top"||m==="bottom"?(S=m,w=E===(await(l.isRTL==null?void 0:l.isRTL(u.floating))?"start":"end")?"left":"right"):(w=m,S=E==="end"?"top":"bottom");const R=A-v.top-v.bottom,k=T-v.left-v.right,L=so(A-v[S],R),I=so(T-v[w],k),N=!t.middlewareData.shift;let M=L,D=I;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(D=k),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(M=R),N&&!E){const P=ua(v.left,0),U=ua(v.right,0),F=ua(v.top,0),Q=ua(v.bottom,0);b?D=T-2*(P!==0||U!==0?P+U:ua(v.left,v.right)):M=A-2*(F!==0||Q!==0?F+Q:ua(v.top,v.bottom))}await d({...t,availableWidth:D,availableHeight:M});const B=await l.getDimensions(u.floating);return T!==B.width||A!==B.height?{reset:{rects:!0}}:{}}}};function Yh(){return typeof window<"u"}function Pu(e){return jA(e)?(e.nodeName||"").toLowerCase():"#document"}function fa(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Ns(e){var t;return(t=(jA(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function jA(e){return Yh()?e instanceof Node||e instanceof fa(e).Node:!1}function Ka(e){return Yh()?e instanceof Element||e instanceof fa(e).Element:!1}function Cs(e){return Yh()?e instanceof HTMLElement||e instanceof fa(e).HTMLElement:!1}function fx(e){return!Yh()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof fa(e).ShadowRoot}const aL=new Set(["inline","contents"]);function Ud(e){const{overflow:t,overflowX:n,overflowY:r,display:a}=Xa(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!aL.has(a)}const sL=new Set(["table","td","th"]);function iL(e){return sL.has(Pu(e))}const oL=[":popover-open",":modal"];function Gh(e){return oL.some(t=>{try{return e.matches(t)}catch{return!1}})}const lL=["transform","translate","scale","rotate","perspective"],uL=["transform","translate","scale","rotate","perspective","filter"],cL=["paint","layout","strict","content"];function W8(e){const t=J8(),n=Ka(e)?Xa(e):e;return lL.some(r=>n[r]?n[r]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||uL.some(r=>(n.willChange||"").includes(r))||cL.some(r=>(n.contain||"").includes(r))}function dL(e){let t=io(e);for(;Cs(t)&&!yu(t);){if(W8(t))return t;if(Gh(t))return null;t=io(t)}return null}function J8(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const fL=new Set(["html","body","#document"]);function yu(e){return fL.has(Pu(e))}function Xa(e){return fa(e).getComputedStyle(e)}function Kh(e){return Ka(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function io(e){if(Pu(e)==="html")return e;const t=e.assignedSlot||e.parentNode||fx(e)&&e.host||Ns(e);return fx(t)?t.host:t}function HA(e){const t=io(e);return yu(t)?e.ownerDocument?e.ownerDocument.body:e.body:Cs(t)&&Ud(t)?t:HA(t)}function bd(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const a=HA(e),i=a===((r=e.ownerDocument)==null?void 0:r.body),l=fa(a);if(i){const u=uv(l);return t.concat(l,l.visualViewport||[],Ud(a)?a:[],u&&n?bd(u):[])}return t.concat(a,bd(a,[],n))}function uv(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function FA(e){const t=Xa(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const a=Cs(e),i=a?e.offsetWidth:n,l=a?e.offsetHeight:r,u=eh(n)!==i||eh(r)!==l;return u&&(n=i,r=l),{width:n,height:r,$:u}}function e4(e){return Ka(e)?e:e.contextElement}function cu(e){const t=e4(e);if(!Cs(t))return As(1);const n=t.getBoundingClientRect(),{width:r,height:a,$:i}=FA(t);let l=(i?eh(n.width):n.width)/r,u=(i?eh(n.height):n.height)/a;return(!l||!Number.isFinite(l))&&(l=1),(!u||!Number.isFinite(u))&&(u=1),{x:l,y:u}}const hL=As(0);function UA(e){const t=fa(e);return!J8()||!t.visualViewport?hL:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function mL(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==fa(e)?!1:t}function qo(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const a=e.getBoundingClientRect(),i=e4(e);let l=As(1);t&&(r?Ka(r)&&(l=cu(r)):l=cu(e));const u=mL(i,n,r)?UA(i):As(0);let d=(a.left+u.x)/l.x,h=(a.top+u.y)/l.y,v=a.width/l.x,m=a.height/l.y;if(i){const E=fa(i),b=r&&Ka(r)?fa(r):r;let T=E,A=uv(T);for(;A&&r&&b!==T;){const S=cu(A),w=A.getBoundingClientRect(),R=Xa(A),k=w.left+(A.clientLeft+parseFloat(R.paddingLeft))*S.x,L=w.top+(A.clientTop+parseFloat(R.paddingTop))*S.y;d*=S.x,h*=S.y,v*=S.x,m*=S.y,d+=k,h+=L,T=fa(A),A=uv(T)}}return nh({width:v,height:m,x:d,y:h})}function t4(e,t){const n=Kh(e).scrollLeft;return t?t.left+n:qo(Ns(e)).left+n}function BA(e,t,n){n===void 0&&(n=!1);const r=e.getBoundingClientRect(),a=r.left+t.scrollLeft-(n?0:t4(e,r)),i=r.top+t.scrollTop;return{x:a,y:i}}function pL(e){let{elements:t,rect:n,offsetParent:r,strategy:a}=e;const i=a==="fixed",l=Ns(r),u=t?Gh(t.floating):!1;if(r===l||u&&i)return n;let d={scrollLeft:0,scrollTop:0},h=As(1);const v=As(0),m=Cs(r);if((m||!m&&!i)&&((Pu(r)!=="body"||Ud(l))&&(d=Kh(r)),Cs(r))){const b=qo(r);h=cu(r),v.x=b.x+r.clientLeft,v.y=b.y+r.clientTop}const E=l&&!m&&!i?BA(l,d,!0):As(0);return{width:n.width*h.x,height:n.height*h.y,x:n.x*h.x-d.scrollLeft*h.x+v.x+E.x,y:n.y*h.y-d.scrollTop*h.y+v.y+E.y}}function gL(e){return Array.from(e.getClientRects())}function vL(e){const t=Ns(e),n=Kh(e),r=e.ownerDocument.body,a=ua(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=ua(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let l=-n.scrollLeft+t4(e);const u=-n.scrollTop;return Xa(r).direction==="rtl"&&(l+=ua(t.clientWidth,r.clientWidth)-a),{width:a,height:i,x:l,y:u}}function yL(e,t){const n=fa(e),r=Ns(e),a=n.visualViewport;let i=r.clientWidth,l=r.clientHeight,u=0,d=0;if(a){i=a.width,l=a.height;const h=J8();(!h||h&&t==="fixed")&&(u=a.offsetLeft,d=a.offsetTop)}return{width:i,height:l,x:u,y:d}}const bL=new Set(["absolute","fixed"]);function EL(e,t){const n=qo(e,!0,t==="fixed"),r=n.top+e.clientTop,a=n.left+e.clientLeft,i=Cs(e)?cu(e):As(1),l=e.clientWidth*i.x,u=e.clientHeight*i.y,d=a*i.x,h=r*i.y;return{width:l,height:u,x:d,y:h}}function hx(e,t,n){let r;if(t==="viewport")r=yL(e,n);else if(t==="document")r=vL(Ns(e));else if(Ka(t))r=EL(t,n);else{const a=UA(e);r={x:t.x-a.x,y:t.y-a.y,width:t.width,height:t.height}}return nh(r)}function VA(e,t){const n=io(e);return n===t||!Ka(n)||yu(n)?!1:Xa(n).position==="fixed"||VA(n,t)}function xL(e,t){const n=t.get(e);if(n)return n;let r=bd(e,[],!1).filter(u=>Ka(u)&&Pu(u)!=="body"),a=null;const i=Xa(e).position==="fixed";let l=i?io(e):e;for(;Ka(l)&&!yu(l);){const u=Xa(l),d=W8(l);!d&&u.position==="fixed"&&(a=null),(i?!d&&!a:!d&&u.position==="static"&&!!a&&bL.has(a.position)||Ud(l)&&!d&&VA(e,l))?r=r.filter(v=>v!==l):a=u,l=io(l)}return t.set(e,r),r}function _L(e){let{element:t,boundary:n,rootBoundary:r,strategy:a}=e;const l=[...n==="clippingAncestors"?Gh(t)?[]:xL(t,this._c):[].concat(n),r],u=l[0],d=l.reduce((h,v)=>{const m=hx(t,v,a);return h.top=ua(m.top,h.top),h.right=so(m.right,h.right),h.bottom=so(m.bottom,h.bottom),h.left=ua(m.left,h.left),h},hx(t,u,a));return{width:d.right-d.left,height:d.bottom-d.top,x:d.left,y:d.top}}function TL(e){const{width:t,height:n}=FA(e);return{width:t,height:n}}function AL(e,t,n){const r=Cs(t),a=Ns(t),i=n==="fixed",l=qo(e,!0,i,t);let u={scrollLeft:0,scrollTop:0};const d=As(0);function h(){d.x=t4(a)}if(r||!r&&!i)if((Pu(t)!=="body"||Ud(a))&&(u=Kh(t)),r){const b=qo(t,!0,i,t);d.x=b.x+t.clientLeft,d.y=b.y+t.clientTop}else a&&h();i&&!r&&a&&h();const v=a&&!r&&!i?BA(a,u):As(0),m=l.left+u.scrollLeft-d.x-v.x,E=l.top+u.scrollTop-d.y-v.y;return{x:m,y:E,width:l.width,height:l.height}}function c2(e){return Xa(e).position==="static"}function mx(e,t){if(!Cs(e)||Xa(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return Ns(e)===n&&(n=n.ownerDocument.body),n}function zA(e,t){const n=fa(e);if(Gh(e))return n;if(!Cs(e)){let a=io(e);for(;a&&!yu(a);){if(Ka(a)&&!c2(a))return a;a=io(a)}return n}let r=mx(e,t);for(;r&&iL(r)&&c2(r);)r=mx(r,t);return r&&yu(r)&&c2(r)&&!W8(r)?n:r||dL(e)||n}const SL=async function(e){const t=this.getOffsetParent||zA,n=this.getDimensions,r=await n(e.floating);return{reference:AL(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function wL(e){return Xa(e).direction==="rtl"}const CL={convertOffsetParentRelativeRectToViewportRelativeRect:pL,getDocumentElement:Ns,getClippingRect:_L,getOffsetParent:zA,getElementRects:SL,getClientRects:gL,getDimensions:TL,getScale:cu,isElement:Ka,isRTL:wL};function qA(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function RL(e,t){let n=null,r;const a=Ns(e);function i(){var u;clearTimeout(r),(u=n)==null||u.disconnect(),n=null}function l(u,d){u===void 0&&(u=!1),d===void 0&&(d=1),i();const h=e.getBoundingClientRect(),{left:v,top:m,width:E,height:b}=h;if(u||t(),!E||!b)return;const T=xf(m),A=xf(a.clientWidth-(v+E)),S=xf(a.clientHeight-(m+b)),w=xf(v),k={rootMargin:-T+"px "+-A+"px "+-S+"px "+-w+"px",threshold:ua(0,so(1,d))||1};let L=!0;function I(N){const M=N[0].intersectionRatio;if(M!==d){if(!L)return l();M?l(!1,M):r=setTimeout(()=>{l(!1,1e-7)},1e3)}M===1&&!qA(h,e.getBoundingClientRect())&&l(),L=!1}try{n=new IntersectionObserver(I,{...k,root:a.ownerDocument})}catch{n=new IntersectionObserver(I,k)}n.observe(e)}return l(!0),i}function OL(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:a=!0,ancestorResize:i=!0,elementResize:l=typeof ResizeObserver=="function",layoutShift:u=typeof IntersectionObserver=="function",animationFrame:d=!1}=r,h=e4(e),v=a||i?[...h?bd(h):[],...bd(t)]:[];v.forEach(w=>{a&&w.addEventListener("scroll",n,{passive:!0}),i&&w.addEventListener("resize",n)});const m=h&&u?RL(h,n):null;let E=-1,b=null;l&&(b=new ResizeObserver(w=>{let[R]=w;R&&R.target===h&&b&&(b.unobserve(t),cancelAnimationFrame(E),E=requestAnimationFrame(()=>{var k;(k=b)==null||k.observe(t)})),n()}),h&&!d&&b.observe(h),b.observe(t));let T,A=d?qo(e):null;d&&S();function S(){const w=qo(e);A&&!qA(A,w)&&n(),A=w,T=requestAnimationFrame(S)}return n(),()=>{var w;v.forEach(R=>{a&&R.removeEventListener("scroll",n),i&&R.removeEventListener("resize",n)}),m?.(),(w=b)==null||w.disconnect(),b=null,d&&cancelAnimationFrame(T)}}const NL=eL,PL=tL,kL=XM,DL=rL,ML=WM,px=KM,LL=nL,IL=(e,t,n)=>{const r=new Map,a={platform:CL,...n},i={...a.platform,_c:r};return GM(e,t,{...a,platform:i})};var jL=typeof document<"u",HL=function(){},Ff=jL?p.useLayoutEffect:HL;function rh(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,a;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!rh(e[r],t[r]))return!1;return!0}if(a=Object.keys(e),n=a.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,a[r]))return!1;for(r=n;r--!==0;){const i=a[r];if(!(i==="_owner"&&e.$$typeof)&&!rh(e[i],t[i]))return!1}return!0}return e!==e&&t!==t}function $A(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function gx(e,t){const n=$A(e);return Math.round(t*n)/n}function d2(e){const t=p.useRef(e);return Ff(()=>{t.current=e}),t}function FL(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:a,elements:{reference:i,floating:l}={},transform:u=!0,whileElementsMounted:d,open:h}=e,[v,m]=p.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[E,b]=p.useState(r);rh(E,r)||b(r);const[T,A]=p.useState(null),[S,w]=p.useState(null),R=p.useCallback(X=>{X!==N.current&&(N.current=X,A(X))},[]),k=p.useCallback(X=>{X!==M.current&&(M.current=X,w(X))},[]),L=i||T,I=l||S,N=p.useRef(null),M=p.useRef(null),D=p.useRef(v),B=d!=null,P=d2(d),U=d2(a),F=d2(h),Q=p.useCallback(()=>{if(!N.current||!M.current)return;const X={placement:t,strategy:n,middleware:E};U.current&&(X.platform=U.current),IL(N.current,M.current,X).then(se=>{const C={...se,isPositioned:F.current!==!1};Y.current&&!rh(D.current,C)&&(D.current=C,Z8.flushSync(()=>{m(C)}))})},[E,t,n,U,F]);Ff(()=>{h===!1&&D.current.isPositioned&&(D.current.isPositioned=!1,m(X=>({...X,isPositioned:!1})))},[h]);const Y=p.useRef(!1);Ff(()=>(Y.current=!0,()=>{Y.current=!1}),[]),Ff(()=>{if(L&&(N.current=L),I&&(M.current=I),L&&I){if(P.current)return P.current(L,I,Q);Q()}},[L,I,Q,P,B]);const te=p.useMemo(()=>({reference:N,floating:M,setReference:R,setFloating:k}),[R,k]),V=p.useMemo(()=>({reference:L,floating:I}),[L,I]),J=p.useMemo(()=>{const X={position:n,left:0,top:0};if(!V.floating)return X;const se=gx(V.floating,v.x),C=gx(V.floating,v.y);return u?{...X,transform:"translate("+se+"px, "+C+"px)",...$A(V.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:se,top:C}},[n,u,V.floating,v.x,v.y]);return p.useMemo(()=>({...v,update:Q,refs:te,elements:V,floatingStyles:J}),[v,Q,te,V,J])}const UL=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:r,padding:a}=typeof e=="function"?e(n):e;return r&&t(r)?r.current!=null?px({element:r.current,padding:a}).fn(n):{}:r?px({element:r,padding:a}).fn(n):{}}}},BL=(e,t)=>({...NL(e),options:[e,t]}),VL=(e,t)=>({...PL(e),options:[e,t]}),zL=(e,t)=>({...LL(e),options:[e,t]}),qL=(e,t)=>({...kL(e),options:[e,t]}),$L=(e,t)=>({...DL(e),options:[e,t]}),ZL=(e,t)=>({...ML(e),options:[e,t]}),QL=(e,t)=>({...UL(e),options:[e,t]});var YL="Arrow",ZA=p.forwardRef((e,t)=>{const{children:n,width:r=10,height:a=5,...i}=e;return g.jsx(xt.svg,{...i,ref:t,width:r,height:a,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:g.jsx("polygon",{points:"0,0 30,0 15,10"})})});ZA.displayName=YL;var GL=ZA;function QA(e){const[t,n]=p.useState(void 0);return Na(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(a=>{if(!Array.isArray(a)||!a.length)return;const i=a[0];let l,u;if("borderBoxSize"in i){const d=i.borderBoxSize,h=Array.isArray(d)?d[0]:d;l=h.inlineSize,u=h.blockSize}else l=e.offsetWidth,u=e.offsetHeight;n({width:l,height:u})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}var n4="Popper",[YA,Xh]=Qr(n4),[KL,GA]=YA(n4),KA=e=>{const{__scopePopper:t,children:n}=e,[r,a]=p.useState(null);return g.jsx(KL,{scope:t,anchor:r,onAnchorChange:a,children:n})};KA.displayName=n4;var XA="PopperAnchor",WA=p.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...a}=e,i=GA(XA,n),l=p.useRef(null),u=xn(t,l);return p.useEffect(()=>{i.onAnchorChange(r?.current||l.current)}),r?null:g.jsx(xt.div,{...a,ref:u})});WA.displayName=XA;var r4="PopperContent",[XL,WL]=YA(r4),JA=p.forwardRef((e,t)=>{const{__scopePopper:n,side:r="bottom",sideOffset:a=0,align:i="center",alignOffset:l=0,arrowPadding:u=0,avoidCollisions:d=!0,collisionBoundary:h=[],collisionPadding:v=0,sticky:m="partial",hideWhenDetached:E=!1,updatePositionStrategy:b="optimized",onPlaced:T,...A}=e,S=GA(r4,n),[w,R]=p.useState(null),k=xn(t,ae=>R(ae)),[L,I]=p.useState(null),N=QA(L),M=N?.width??0,D=N?.height??0,B=r+(i!=="center"?"-"+i:""),P=typeof v=="number"?v:{top:0,right:0,bottom:0,left:0,...v},U=Array.isArray(h)?h:[h],F=U.length>0,Q={padding:P,boundary:U.filter(eI),altBoundary:F},{refs:Y,floatingStyles:te,placement:V,isPositioned:J,middlewareData:X}=FL({strategy:"fixed",placement:B,whileElementsMounted:(...ae)=>OL(...ae,{animationFrame:b==="always"}),elements:{reference:S.anchor},middleware:[BL({mainAxis:a+D,alignmentAxis:l}),d&&VL({mainAxis:!0,crossAxis:!1,limiter:m==="partial"?zL():void 0,...Q}),d&&qL({...Q}),$L({...Q,apply:({elements:ae,rects:Te,availableWidth:qe,availableHeight:Ae})=>{const{width:Oe,height:et}=Te.reference,ct=ae.floating.style;ct.setProperty("--radix-popper-available-width",`${qe}px`),ct.setProperty("--radix-popper-available-height",`${Ae}px`),ct.setProperty("--radix-popper-anchor-width",`${Oe}px`),ct.setProperty("--radix-popper-anchor-height",`${et}px`)}}),L&&QL({element:L,padding:u}),tI({arrowWidth:M,arrowHeight:D}),E&&ZL({strategy:"referenceHidden",...Q})]}),[se,C]=nS(V),oe=ws(T);Na(()=>{J&&oe?.()},[J,oe]);const ge=X.arrow?.x,j=X.arrow?.y,Ee=X.arrow?.centerOffset!==0,[Pe,q]=p.useState();return Na(()=>{w&&q(window.getComputedStyle(w).zIndex)},[w]),g.jsx("div",{ref:Y.setFloating,"data-radix-popper-content-wrapper":"",style:{...te,transform:J?te.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:Pe,"--radix-popper-transform-origin":[X.transformOrigin?.x,X.transformOrigin?.y].join(" "),...X.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:g.jsx(XL,{scope:n,placedSide:se,onArrowChange:I,arrowX:ge,arrowY:j,shouldHideArrow:Ee,children:g.jsx(xt.div,{"data-side":se,"data-align":C,...A,ref:k,style:{...A.style,animation:J?void 0:"none"}})})})});JA.displayName=r4;var eS="PopperArrow",JL={top:"bottom",right:"left",bottom:"top",left:"right"},tS=p.forwardRef(function(t,n){const{__scopePopper:r,...a}=t,i=WL(eS,r),l=JL[i.placedSide];return g.jsx("span",{ref:i.onArrowChange,style:{position:"absolute",left:i.arrowX,top:i.arrowY,[l]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[i.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[i.placedSide],visibility:i.shouldHideArrow?"hidden":void 0},children:g.jsx(GL,{...a,ref:n,style:{...a.style,display:"block"}})})});tS.displayName=eS;function eI(e){return e!==null}var tI=e=>({name:"transformOrigin",options:e,fn(t){const{placement:n,rects:r,middlewareData:a}=t,l=a.arrow?.centerOffset!==0,u=l?0:e.arrowWidth,d=l?0:e.arrowHeight,[h,v]=nS(n),m={start:"0%",center:"50%",end:"100%"}[v],E=(a.arrow?.x??0)+u/2,b=(a.arrow?.y??0)+d/2;let T="",A="";return h==="bottom"?(T=l?m:`${E}px`,A=`${-d}px`):h==="top"?(T=l?m:`${E}px`,A=`${r.floating.height+d}px`):h==="right"?(T=`${-d}px`,A=l?m:`${b}px`):h==="left"&&(T=`${r.floating.width+d}px`,A=l?m:`${b}px`),{data:{x:T,y:A}}}});function nS(e){const[t,n="center"]=e.split("-");return[t,n]}var rS=KA,a4=WA,aS=JA,sS=tS,nI="Portal",Wh=p.forwardRef((e,t)=>{const{container:n,...r}=e,[a,i]=p.useState(!1);Na(()=>i(!0),[]);const l=n||a&&globalThis?.document?.body;return l?NA.createPortal(g.jsx(xt.div,{...r,ref:t}),l):null});Wh.displayName=nI;function rI(e,t){return p.useReducer((n,r)=>t[n][r]??n,e)}var ka=e=>{const{present:t,children:n}=e,r=aI(t),a=typeof n=="function"?n({present:r.isPresent}):p.Children.only(n),i=xn(r.ref,sI(a));return typeof n=="function"||r.isPresent?p.cloneElement(a,{ref:i}):null};ka.displayName="Presence";function aI(e){const[t,n]=p.useState(),r=p.useRef(null),a=p.useRef(e),i=p.useRef("none"),l=e?"mounted":"unmounted",[u,d]=rI(l,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return p.useEffect(()=>{const h=_f(r.current);i.current=u==="mounted"?h:"none"},[u]),Na(()=>{const h=r.current,v=a.current;if(v!==e){const E=i.current,b=_f(h);e?d("MOUNT"):b==="none"||h?.display==="none"?d("UNMOUNT"):d(v&&E!==b?"ANIMATION_OUT":"UNMOUNT"),a.current=e}},[e,d]),Na(()=>{if(t){let h;const v=t.ownerDocument.defaultView??window,m=b=>{const A=_f(r.current).includes(b.animationName);if(b.target===t&&A&&(d("ANIMATION_END"),!a.current)){const S=t.style.animationFillMode;t.style.animationFillMode="forwards",h=v.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=S)})}},E=b=>{b.target===t&&(i.current=_f(r.current))};return t.addEventListener("animationstart",E),t.addEventListener("animationcancel",m),t.addEventListener("animationend",m),()=>{v.clearTimeout(h),t.removeEventListener("animationstart",E),t.removeEventListener("animationcancel",m),t.removeEventListener("animationend",m)}}else d("ANIMATION_END")},[t,d]),{isPresent:["mounted","unmountSuspended"].includes(u),ref:p.useCallback(h=>{r.current=h?getComputedStyle(h):null,n(h)},[])}}function _f(e){return e?.animationName||"none"}function sI(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var f2="rovingFocusGroup.onEntryFocus",iI={bubbles:!1,cancelable:!0},Bd="RovingFocusGroup",[cv,iS,oI]=Q8(Bd),[lI,ku]=Qr(Bd,[oI]),[uI,cI]=lI(Bd),oS=p.forwardRef((e,t)=>g.jsx(cv.Provider,{scope:e.__scopeRovingFocusGroup,children:g.jsx(cv.Slot,{scope:e.__scopeRovingFocusGroup,children:g.jsx(dI,{...e,ref:t})})}));oS.displayName=Bd;var dI=p.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,orientation:r,loop:a=!1,dir:i,currentTabStopId:l,defaultCurrentTabStopId:u,onCurrentTabStopIdChange:d,onEntryFocus:h,preventScrollOnEntryFocus:v=!1,...m}=e,E=p.useRef(null),b=xn(t,E),T=Fd(i),[A,S]=Pa({prop:l,defaultProp:u??null,onChange:d,caller:Bd}),[w,R]=p.useState(!1),k=ws(h),L=iS(n),I=p.useRef(!1),[N,M]=p.useState(0);return p.useEffect(()=>{const D=E.current;if(D)return D.addEventListener(f2,k),()=>D.removeEventListener(f2,k)},[k]),g.jsx(uI,{scope:n,orientation:r,dir:T,loop:a,currentTabStopId:A,onItemFocus:p.useCallback(D=>S(D),[S]),onItemShiftTab:p.useCallback(()=>R(!0),[]),onFocusableItemAdd:p.useCallback(()=>M(D=>D+1),[]),onFocusableItemRemove:p.useCallback(()=>M(D=>D-1),[]),children:g.jsx(xt.div,{tabIndex:w||N===0?-1:0,"data-orientation":r,...m,ref:b,style:{outline:"none",...e.style},onMouseDown:ut(e.onMouseDown,()=>{I.current=!0}),onFocus:ut(e.onFocus,D=>{const B=!I.current;if(D.target===D.currentTarget&&B&&!w){const P=new CustomEvent(f2,iI);if(D.currentTarget.dispatchEvent(P),!P.defaultPrevented){const U=L().filter(V=>V.focusable),F=U.find(V=>V.active),Q=U.find(V=>V.id===A),te=[F,Q,...U].filter(Boolean).map(V=>V.ref.current);cS(te,v)}}I.current=!1}),onBlur:ut(e.onBlur,()=>R(!1))})})}),lS="RovingFocusGroupItem",uS=p.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,focusable:r=!0,active:a=!1,tabStopId:i,children:l,...u}=e,d=Ts(),h=i||d,v=cI(lS,n),m=v.currentTabStopId===h,E=iS(n),{onFocusableItemAdd:b,onFocusableItemRemove:T,currentTabStopId:A}=v;return p.useEffect(()=>{if(r)return b(),()=>T()},[r,b,T]),g.jsx(cv.ItemSlot,{scope:n,id:h,focusable:r,active:a,children:g.jsx(xt.span,{tabIndex:m?0:-1,"data-orientation":v.orientation,...u,ref:t,onMouseDown:ut(e.onMouseDown,S=>{r?v.onItemFocus(h):S.preventDefault()}),onFocus:ut(e.onFocus,()=>v.onItemFocus(h)),onKeyDown:ut(e.onKeyDown,S=>{if(S.key==="Tab"&&S.shiftKey){v.onItemShiftTab();return}if(S.target!==S.currentTarget)return;const w=mI(S,v.orientation,v.dir);if(w!==void 0){if(S.metaKey||S.ctrlKey||S.altKey||S.shiftKey)return;S.preventDefault();let k=E().filter(L=>L.focusable).map(L=>L.ref.current);if(w==="last")k.reverse();else if(w==="prev"||w==="next"){w==="prev"&&k.reverse();const L=k.indexOf(S.currentTarget);k=v.loop?pI(k,L+1):k.slice(L+1)}setTimeout(()=>cS(k))}}),children:typeof l=="function"?l({isCurrentTabStop:m,hasTabStop:A!=null}):l})})});uS.displayName=lS;var fI={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function hI(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function mI(e,t,n){const r=hI(e.key,n);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(r))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(r)))return fI[r]}function cS(e,t=!1){const n=document.activeElement;for(const r of e)if(r===n||(r.focus({preventScroll:t}),document.activeElement!==n))return}function pI(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var s4=oS,i4=uS,gI=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Ql=new WeakMap,Tf=new WeakMap,Af={},h2=0,dS=function(e){return e&&(e.host||dS(e.parentNode))},vI=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=dS(n);return r&&e.contains(r)?r:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},yI=function(e,t,n,r){var a=vI(t,Array.isArray(e)?e:[e]);Af[n]||(Af[n]=new WeakMap);var i=Af[n],l=[],u=new Set,d=new Set(a),h=function(m){!m||u.has(m)||(u.add(m),h(m.parentNode))};a.forEach(h);var v=function(m){!m||d.has(m)||Array.prototype.forEach.call(m.children,function(E){if(u.has(E))v(E);else try{var b=E.getAttribute(r),T=b!==null&&b!=="false",A=(Ql.get(E)||0)+1,S=(i.get(E)||0)+1;Ql.set(E,A),i.set(E,S),l.push(E),A===1&&T&&Tf.set(E,!0),S===1&&E.setAttribute(n,"true"),T||E.setAttribute(r,"true")}catch(w){console.error("aria-hidden: cannot operate on ",E,w)}})};return v(t),u.clear(),h2++,function(){l.forEach(function(m){var E=Ql.get(m)-1,b=i.get(m)-1;Ql.set(m,E),i.set(m,b),E||(Tf.has(m)||m.removeAttribute(r),Tf.delete(m)),b||m.removeAttribute(n)}),h2--,h2||(Ql=new WeakMap,Ql=new WeakMap,Tf=new WeakMap,Af={})}},o4=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),a=gI(e);return a?(r.push.apply(r,Array.from(a.querySelectorAll("[aria-live], script"))),yI(r,a,n,"aria-hidden")):function(){return null}},ys=function(){return ys=Object.assign||function(t){for(var n,r=1,a=arguments.length;r<a;r++){n=arguments[r];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},ys.apply(this,arguments)};function fS(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n}function bI(e,t,n){if(n||arguments.length===2)for(var r=0,a=t.length,i;r<a;r++)(i||!(r in t))&&(i||(i=Array.prototype.slice.call(t,0,r)),i[r]=t[r]);return e.concat(i||Array.prototype.slice.call(t))}var Uf="right-scroll-bar-position",Bf="width-before-scroll-bar",EI="with-scroll-bars-hidden",xI="--removed-body-scroll-bar-size";function m2(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function _I(e,t){var n=p.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(r){var a=n.value;a!==r&&(n.value=r,n.callback(r,a))}}}})[0];return n.callback=t,n.facade}var TI=typeof window<"u"?p.useLayoutEffect:p.useEffect,vx=new WeakMap;function AI(e,t){var n=_I(null,function(r){return e.forEach(function(a){return m2(a,r)})});return TI(function(){var r=vx.get(n);if(r){var a=new Set(r),i=new Set(e),l=n.current;a.forEach(function(u){i.has(u)||m2(u,null)}),i.forEach(function(u){a.has(u)||m2(u,l)})}vx.set(n,e)},[e]),n}function SI(e){return e}function wI(e,t){t===void 0&&(t=SI);var n=[],r=!1,a={read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(i){var l=t(i,r);return n.push(l),function(){n=n.filter(function(u){return u!==l})}},assignSyncMedium:function(i){for(r=!0;n.length;){var l=n;n=[],l.forEach(i)}n={push:function(u){return i(u)},filter:function(){return n}}},assignMedium:function(i){r=!0;var l=[];if(n.length){var u=n;n=[],u.forEach(i),l=n}var d=function(){var v=l;l=[],v.forEach(i)},h=function(){return Promise.resolve().then(d)};h(),n={push:function(v){l.push(v),h()},filter:function(v){return l=l.filter(v),n}}}};return a}function CI(e){e===void 0&&(e={});var t=wI(null);return t.options=ys({async:!0,ssr:!1},e),t}var hS=function(e){var t=e.sideCar,n=fS(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return p.createElement(r,ys({},n))};hS.isSideCarExport=!0;function RI(e,t){return e.useMedium(t),hS}var mS=CI(),p2=function(){},Jh=p.forwardRef(function(e,t){var n=p.useRef(null),r=p.useState({onScrollCapture:p2,onWheelCapture:p2,onTouchMoveCapture:p2}),a=r[0],i=r[1],l=e.forwardProps,u=e.children,d=e.className,h=e.removeScrollBar,v=e.enabled,m=e.shards,E=e.sideCar,b=e.noRelative,T=e.noIsolation,A=e.inert,S=e.allowPinchZoom,w=e.as,R=w===void 0?"div":w,k=e.gapMode,L=fS(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),I=E,N=AI([n,t]),M=ys(ys({},L),a);return p.createElement(p.Fragment,null,v&&p.createElement(I,{sideCar:mS,removeScrollBar:h,shards:m,noRelative:b,noIsolation:T,inert:A,setCallbacks:i,allowPinchZoom:!!S,lockRef:n,gapMode:k}),l?p.cloneElement(p.Children.only(u),ys(ys({},M),{ref:N})):p.createElement(R,ys({},M,{className:d,ref:N}),u))});Jh.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Jh.classNames={fullWidth:Bf,zeroRight:Uf};var OI=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function NI(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=OI();return t&&e.setAttribute("nonce",t),e}function PI(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function kI(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var DI=function(){var e=0,t=null;return{add:function(n){e==0&&(t=NI())&&(PI(t,n),kI(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},MI=function(){var e=DI();return function(t,n){p.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},pS=function(){var e=MI(),t=function(n){var r=n.styles,a=n.dynamic;return e(r,a),null};return t},LI={left:0,top:0,right:0,gap:0},g2=function(e){return parseInt(e||"",10)||0},II=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],r=t[e==="padding"?"paddingTop":"marginTop"],a=t[e==="padding"?"paddingRight":"marginRight"];return[g2(n),g2(r),g2(a)]},jI=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return LI;var t=II(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},HI=pS(),du="data-scroll-locked",FI=function(e,t,n,r){var a=e.left,i=e.top,l=e.right,u=e.gap;return n===void 0&&(n="margin"),`
|
|
26
|
-
.`.concat(EI,` {
|
|
27
|
-
overflow: hidden `).concat(r,`;
|
|
28
|
-
padding-right: `).concat(u,"px ").concat(r,`;
|
|
29
|
-
}
|
|
30
|
-
body[`).concat(du,`] {
|
|
31
|
-
overflow: hidden `).concat(r,`;
|
|
32
|
-
overscroll-behavior: contain;
|
|
33
|
-
`).concat([t&&"position: relative ".concat(r,";"),n==="margin"&&`
|
|
34
|
-
padding-left: `.concat(a,`px;
|
|
35
|
-
padding-top: `).concat(i,`px;
|
|
36
|
-
padding-right: `).concat(l,`px;
|
|
37
|
-
margin-left:0;
|
|
38
|
-
margin-top:0;
|
|
39
|
-
margin-right: `).concat(u,"px ").concat(r,`;
|
|
40
|
-
`),n==="padding"&&"padding-right: ".concat(u,"px ").concat(r,";")].filter(Boolean).join(""),`
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
.`).concat(Uf,` {
|
|
44
|
-
right: `).concat(u,"px ").concat(r,`;
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
.`).concat(Bf,` {
|
|
48
|
-
margin-right: `).concat(u,"px ").concat(r,`;
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
.`).concat(Uf," .").concat(Uf,` {
|
|
52
|
-
right: 0 `).concat(r,`;
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
.`).concat(Bf," .").concat(Bf,` {
|
|
56
|
-
margin-right: 0 `).concat(r,`;
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
body[`).concat(du,`] {
|
|
60
|
-
`).concat(xI,": ").concat(u,`px;
|
|
61
|
-
}
|
|
62
|
-
`)},yx=function(){var e=parseInt(document.body.getAttribute(du)||"0",10);return isFinite(e)?e:0},UI=function(){p.useEffect(function(){return document.body.setAttribute(du,(yx()+1).toString()),function(){var e=yx()-1;e<=0?document.body.removeAttribute(du):document.body.setAttribute(du,e.toString())}},[])},BI=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,a=r===void 0?"margin":r;UI();var i=p.useMemo(function(){return jI(a)},[a]);return p.createElement(HI,{styles:FI(i,!t,a,n?"":"!important")})},dv=!1;if(typeof window<"u")try{var Sf=Object.defineProperty({},"passive",{get:function(){return dv=!0,!0}});window.addEventListener("test",Sf,Sf),window.removeEventListener("test",Sf,Sf)}catch{dv=!1}var Yl=dv?{passive:!1}:!1,VI=function(e){return e.tagName==="TEXTAREA"},gS=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!VI(e)&&n[t]==="visible")},zI=function(e){return gS(e,"overflowY")},qI=function(e){return gS(e,"overflowX")},bx=function(e,t){var n=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var a=vS(e,r);if(a){var i=yS(e,r),l=i[1],u=i[2];if(l>u)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},$I=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},ZI=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},vS=function(e,t){return e==="v"?zI(t):qI(t)},yS=function(e,t){return e==="v"?$I(t):ZI(t)},QI=function(e,t){return e==="h"&&t==="rtl"?-1:1},YI=function(e,t,n,r,a){var i=QI(e,window.getComputedStyle(t).direction),l=i*r,u=n.target,d=t.contains(u),h=!1,v=l>0,m=0,E=0;do{if(!u)break;var b=yS(e,u),T=b[0],A=b[1],S=b[2],w=A-S-i*T;(T||w)&&vS(e,u)&&(m+=w,E+=T);var R=u.parentNode;u=R&&R.nodeType===Node.DOCUMENT_FRAGMENT_NODE?R.host:R}while(!d&&u!==document.body||d&&(t.contains(u)||t===u));return(v&&Math.abs(m)<1||!v&&Math.abs(E)<1)&&(h=!0),h},wf=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Ex=function(e){return[e.deltaX,e.deltaY]},xx=function(e){return e&&"current"in e?e.current:e},GI=function(e,t){return e[0]===t[0]&&e[1]===t[1]},KI=function(e){return`
|
|
63
|
-
.block-interactivity-`.concat(e,` {pointer-events: none;}
|
|
64
|
-
.allow-interactivity-`).concat(e,` {pointer-events: all;}
|
|
65
|
-
`)},XI=0,Gl=[];function WI(e){var t=p.useRef([]),n=p.useRef([0,0]),r=p.useRef(),a=p.useState(XI++)[0],i=p.useState(pS)[0],l=p.useRef(e);p.useEffect(function(){l.current=e},[e]),p.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(a));var A=bI([e.lockRef.current],(e.shards||[]).map(xx),!0).filter(Boolean);return A.forEach(function(S){return S.classList.add("allow-interactivity-".concat(a))}),function(){document.body.classList.remove("block-interactivity-".concat(a)),A.forEach(function(S){return S.classList.remove("allow-interactivity-".concat(a))})}}},[e.inert,e.lockRef.current,e.shards]);var u=p.useCallback(function(A,S){if("touches"in A&&A.touches.length===2||A.type==="wheel"&&A.ctrlKey)return!l.current.allowPinchZoom;var w=wf(A),R=n.current,k="deltaX"in A?A.deltaX:R[0]-w[0],L="deltaY"in A?A.deltaY:R[1]-w[1],I,N=A.target,M=Math.abs(k)>Math.abs(L)?"h":"v";if("touches"in A&&M==="h"&&N.type==="range")return!1;var D=bx(M,N);if(!D)return!0;if(D?I=M:(I=M==="v"?"h":"v",D=bx(M,N)),!D)return!1;if(!r.current&&"changedTouches"in A&&(k||L)&&(r.current=I),!I)return!0;var B=r.current||I;return YI(B,S,A,B==="h"?k:L)},[]),d=p.useCallback(function(A){var S=A;if(!(!Gl.length||Gl[Gl.length-1]!==i)){var w="deltaY"in S?Ex(S):wf(S),R=t.current.filter(function(I){return I.name===S.type&&(I.target===S.target||S.target===I.shadowParent)&&GI(I.delta,w)})[0];if(R&&R.should){S.cancelable&&S.preventDefault();return}if(!R){var k=(l.current.shards||[]).map(xx).filter(Boolean).filter(function(I){return I.contains(S.target)}),L=k.length>0?u(S,k[0]):!l.current.noIsolation;L&&S.cancelable&&S.preventDefault()}}},[]),h=p.useCallback(function(A,S,w,R){var k={name:A,delta:S,target:w,should:R,shadowParent:JI(w)};t.current.push(k),setTimeout(function(){t.current=t.current.filter(function(L){return L!==k})},1)},[]),v=p.useCallback(function(A){n.current=wf(A),r.current=void 0},[]),m=p.useCallback(function(A){h(A.type,Ex(A),A.target,u(A,e.lockRef.current))},[]),E=p.useCallback(function(A){h(A.type,wf(A),A.target,u(A,e.lockRef.current))},[]);p.useEffect(function(){return Gl.push(i),e.setCallbacks({onScrollCapture:m,onWheelCapture:m,onTouchMoveCapture:E}),document.addEventListener("wheel",d,Yl),document.addEventListener("touchmove",d,Yl),document.addEventListener("touchstart",v,Yl),function(){Gl=Gl.filter(function(A){return A!==i}),document.removeEventListener("wheel",d,Yl),document.removeEventListener("touchmove",d,Yl),document.removeEventListener("touchstart",v,Yl)}},[]);var b=e.removeScrollBar,T=e.inert;return p.createElement(p.Fragment,null,T?p.createElement(i,{styles:KI(a)}):null,b?p.createElement(BI,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function JI(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const ej=RI(mS,WI);var e1=p.forwardRef(function(e,t){return p.createElement(Jh,ys({},e,{ref:t,sideCar:ej}))});e1.classNames=Jh.classNames;var fv=["Enter"," "],tj=["ArrowDown","PageUp","Home"],bS=["ArrowUp","PageDown","End"],nj=[...tj,...bS],rj={ltr:[...fv,"ArrowRight"],rtl:[...fv,"ArrowLeft"]},aj={ltr:["ArrowLeft"],rtl:["ArrowRight"]},Vd="Menu",[Ed,sj,ij]=Q8(Vd),[el,ES]=Qr(Vd,[ij,Xh,ku]),t1=Xh(),xS=ku(),[oj,tl]=el(Vd),[lj,zd]=el(Vd),_S=e=>{const{__scopeMenu:t,open:n=!1,children:r,dir:a,onOpenChange:i,modal:l=!0}=e,u=t1(t),[d,h]=p.useState(null),v=p.useRef(!1),m=ws(i),E=Fd(a);return p.useEffect(()=>{const b=()=>{v.current=!0,document.addEventListener("pointerdown",T,{capture:!0,once:!0}),document.addEventListener("pointermove",T,{capture:!0,once:!0})},T=()=>v.current=!1;return document.addEventListener("keydown",b,{capture:!0}),()=>{document.removeEventListener("keydown",b,{capture:!0}),document.removeEventListener("pointerdown",T,{capture:!0}),document.removeEventListener("pointermove",T,{capture:!0})}},[]),g.jsx(rS,{...u,children:g.jsx(oj,{scope:t,open:n,onOpenChange:m,content:d,onContentChange:h,children:g.jsx(lj,{scope:t,onClose:p.useCallback(()=>m(!1),[m]),isUsingKeyboardRef:v,dir:E,modal:l,children:r})})})};_S.displayName=Vd;var uj="MenuAnchor",l4=p.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e,a=t1(n);return g.jsx(a4,{...a,...r,ref:t})});l4.displayName=uj;var u4="MenuPortal",[cj,TS]=el(u4,{forceMount:void 0}),AS=e=>{const{__scopeMenu:t,forceMount:n,children:r,container:a}=e,i=tl(u4,t);return g.jsx(cj,{scope:t,forceMount:n,children:g.jsx(ka,{present:n||i.open,children:g.jsx(Wh,{asChild:!0,container:a,children:r})})})};AS.displayName=u4;var Oa="MenuContent",[dj,c4]=el(Oa),SS=p.forwardRef((e,t)=>{const n=TS(Oa,e.__scopeMenu),{forceMount:r=n.forceMount,...a}=e,i=tl(Oa,e.__scopeMenu),l=zd(Oa,e.__scopeMenu);return g.jsx(Ed.Provider,{scope:e.__scopeMenu,children:g.jsx(ka,{present:r||i.open,children:g.jsx(Ed.Slot,{scope:e.__scopeMenu,children:l.modal?g.jsx(fj,{...a,ref:t}):g.jsx(hj,{...a,ref:t})})})})}),fj=p.forwardRef((e,t)=>{const n=tl(Oa,e.__scopeMenu),r=p.useRef(null),a=xn(t,r);return p.useEffect(()=>{const i=r.current;if(i)return o4(i)},[]),g.jsx(d4,{...e,ref:a,trapFocus:n.open,disableOutsidePointerEvents:n.open,disableOutsideScroll:!0,onFocusOutside:ut(e.onFocusOutside,i=>i.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>n.onOpenChange(!1)})}),hj=p.forwardRef((e,t)=>{const n=tl(Oa,e.__scopeMenu);return g.jsx(d4,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>n.onOpenChange(!1)})}),mj=zo("MenuContent.ScrollLock"),d4=p.forwardRef((e,t)=>{const{__scopeMenu:n,loop:r=!1,trapFocus:a,onOpenAutoFocus:i,onCloseAutoFocus:l,disableOutsidePointerEvents:u,onEntryFocus:d,onEscapeKeyDown:h,onPointerDownOutside:v,onFocusOutside:m,onInteractOutside:E,onDismiss:b,disableOutsideScroll:T,...A}=e,S=tl(Oa,n),w=zd(Oa,n),R=t1(n),k=xS(n),L=sj(n),[I,N]=p.useState(null),M=p.useRef(null),D=xn(t,M,S.onContentChange),B=p.useRef(0),P=p.useRef(""),U=p.useRef(0),F=p.useRef(null),Q=p.useRef("right"),Y=p.useRef(0),te=T?e1:p.Fragment,V=T?{as:mj,allowPinchZoom:!0}:void 0,J=se=>{const C=P.current+se,oe=L().filter(ae=>!ae.disabled),ge=document.activeElement,j=oe.find(ae=>ae.ref.current===ge)?.textValue,Ee=oe.map(ae=>ae.textValue),Pe=wj(Ee,C,j),q=oe.find(ae=>ae.textValue===Pe)?.ref.current;(function ae(Te){P.current=Te,window.clearTimeout(B.current),Te!==""&&(B.current=window.setTimeout(()=>ae(""),1e3))})(C),q&&setTimeout(()=>q.focus())};p.useEffect(()=>()=>window.clearTimeout(B.current),[]),Y8();const X=p.useCallback(se=>Q.current===F.current?.side&&Rj(se,F.current?.area),[]);return g.jsx(dj,{scope:n,searchRef:P,onItemEnter:p.useCallback(se=>{X(se)&&se.preventDefault()},[X]),onItemLeave:p.useCallback(se=>{X(se)||(M.current?.focus(),N(null))},[X]),onTriggerLeave:p.useCallback(se=>{X(se)&&se.preventDefault()},[X]),pointerGraceTimerRef:U,onPointerGraceIntentChange:p.useCallback(se=>{F.current=se},[]),children:g.jsx(te,{...V,children:g.jsx(Qh,{asChild:!0,trapped:a,onMountAutoFocus:ut(i,se=>{se.preventDefault(),M.current?.focus({preventScroll:!0})}),onUnmountAutoFocus:l,children:g.jsx(Zh,{asChild:!0,disableOutsidePointerEvents:u,onEscapeKeyDown:h,onPointerDownOutside:v,onFocusOutside:m,onInteractOutside:E,onDismiss:b,children:g.jsx(s4,{asChild:!0,...k,dir:w.dir,orientation:"vertical",loop:r,currentTabStopId:I,onCurrentTabStopIdChange:N,onEntryFocus:ut(d,se=>{w.isUsingKeyboardRef.current||se.preventDefault()}),preventScrollOnEntryFocus:!0,children:g.jsx(aS,{role:"menu","aria-orientation":"vertical","data-state":BS(S.open),"data-radix-menu-content":"",dir:w.dir,...R,...A,ref:D,style:{outline:"none",...A.style},onKeyDown:ut(A.onKeyDown,se=>{const oe=se.target.closest("[data-radix-menu-content]")===se.currentTarget,ge=se.ctrlKey||se.altKey||se.metaKey,j=se.key.length===1;oe&&(se.key==="Tab"&&se.preventDefault(),!ge&&j&&J(se.key));const Ee=M.current;if(se.target!==Ee||!nj.includes(se.key))return;se.preventDefault();const q=L().filter(ae=>!ae.disabled).map(ae=>ae.ref.current);bS.includes(se.key)&&q.reverse(),Aj(q)}),onBlur:ut(e.onBlur,se=>{se.currentTarget.contains(se.target)||(window.clearTimeout(B.current),P.current="")}),onPointerMove:ut(e.onPointerMove,xd(se=>{const C=se.target,oe=Y.current!==se.clientX;if(se.currentTarget.contains(C)&&oe){const ge=se.clientX>Y.current?"right":"left";Q.current=ge,Y.current=se.clientX}}))})})})})})})});SS.displayName=Oa;var pj="MenuGroup",f4=p.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return g.jsx(xt.div,{role:"group",...r,ref:t})});f4.displayName=pj;var gj="MenuLabel",wS=p.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return g.jsx(xt.div,{...r,ref:t})});wS.displayName=gj;var ah="MenuItem",_x="menu.itemSelect",n1=p.forwardRef((e,t)=>{const{disabled:n=!1,onSelect:r,...a}=e,i=p.useRef(null),l=zd(ah,e.__scopeMenu),u=c4(ah,e.__scopeMenu),d=xn(t,i),h=p.useRef(!1),v=()=>{const m=i.current;if(!n&&m){const E=new CustomEvent(_x,{bubbles:!0,cancelable:!0});m.addEventListener(_x,b=>r?.(b),{once:!0}),PA(m,E),E.defaultPrevented?h.current=!1:l.onClose()}};return g.jsx(CS,{...a,ref:d,disabled:n,onClick:ut(e.onClick,v),onPointerDown:m=>{e.onPointerDown?.(m),h.current=!0},onPointerUp:ut(e.onPointerUp,m=>{h.current||m.currentTarget?.click()}),onKeyDown:ut(e.onKeyDown,m=>{const E=u.searchRef.current!=="";n||E&&m.key===" "||fv.includes(m.key)&&(m.currentTarget.click(),m.preventDefault())})})});n1.displayName=ah;var CS=p.forwardRef((e,t)=>{const{__scopeMenu:n,disabled:r=!1,textValue:a,...i}=e,l=c4(ah,n),u=xS(n),d=p.useRef(null),h=xn(t,d),[v,m]=p.useState(!1),[E,b]=p.useState("");return p.useEffect(()=>{const T=d.current;T&&b((T.textContent??"").trim())},[i.children]),g.jsx(Ed.ItemSlot,{scope:n,disabled:r,textValue:a??E,children:g.jsx(i4,{asChild:!0,...u,focusable:!r,children:g.jsx(xt.div,{role:"menuitem","data-highlighted":v?"":void 0,"aria-disabled":r||void 0,"data-disabled":r?"":void 0,...i,ref:h,onPointerMove:ut(e.onPointerMove,xd(T=>{r?l.onItemLeave(T):(l.onItemEnter(T),T.defaultPrevented||T.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:ut(e.onPointerLeave,xd(T=>l.onItemLeave(T))),onFocus:ut(e.onFocus,()=>m(!0)),onBlur:ut(e.onBlur,()=>m(!1))})})})}),vj="MenuCheckboxItem",RS=p.forwardRef((e,t)=>{const{checked:n=!1,onCheckedChange:r,...a}=e;return g.jsx(DS,{scope:e.__scopeMenu,checked:n,children:g.jsx(n1,{role:"menuitemcheckbox","aria-checked":sh(n)?"mixed":n,...a,ref:t,"data-state":m4(n),onSelect:ut(a.onSelect,()=>r?.(sh(n)?!0:!n),{checkForDefaultPrevented:!1})})})});RS.displayName=vj;var OS="MenuRadioGroup",[yj,bj]=el(OS,{value:void 0,onValueChange:()=>{}}),NS=p.forwardRef((e,t)=>{const{value:n,onValueChange:r,...a}=e,i=ws(r);return g.jsx(yj,{scope:e.__scopeMenu,value:n,onValueChange:i,children:g.jsx(f4,{...a,ref:t})})});NS.displayName=OS;var PS="MenuRadioItem",kS=p.forwardRef((e,t)=>{const{value:n,...r}=e,a=bj(PS,e.__scopeMenu),i=n===a.value;return g.jsx(DS,{scope:e.__scopeMenu,checked:i,children:g.jsx(n1,{role:"menuitemradio","aria-checked":i,...r,ref:t,"data-state":m4(i),onSelect:ut(r.onSelect,()=>a.onValueChange?.(n),{checkForDefaultPrevented:!1})})})});kS.displayName=PS;var h4="MenuItemIndicator",[DS,Ej]=el(h4,{checked:!1}),MS=p.forwardRef((e,t)=>{const{__scopeMenu:n,forceMount:r,...a}=e,i=Ej(h4,n);return g.jsx(ka,{present:r||sh(i.checked)||i.checked===!0,children:g.jsx(xt.span,{...a,ref:t,"data-state":m4(i.checked)})})});MS.displayName=h4;var xj="MenuSeparator",LS=p.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return g.jsx(xt.div,{role:"separator","aria-orientation":"horizontal",...r,ref:t})});LS.displayName=xj;var _j="MenuArrow",IS=p.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e,a=t1(n);return g.jsx(sS,{...a,...r,ref:t})});IS.displayName=_j;var Tj="MenuSub",[fie,jS]=el(Tj),ed="MenuSubTrigger",HS=p.forwardRef((e,t)=>{const n=tl(ed,e.__scopeMenu),r=zd(ed,e.__scopeMenu),a=jS(ed,e.__scopeMenu),i=c4(ed,e.__scopeMenu),l=p.useRef(null),{pointerGraceTimerRef:u,onPointerGraceIntentChange:d}=i,h={__scopeMenu:e.__scopeMenu},v=p.useCallback(()=>{l.current&&window.clearTimeout(l.current),l.current=null},[]);return p.useEffect(()=>v,[v]),p.useEffect(()=>{const m=u.current;return()=>{window.clearTimeout(m),d(null)}},[u,d]),g.jsx(l4,{asChild:!0,...h,children:g.jsx(CS,{id:a.triggerId,"aria-haspopup":"menu","aria-expanded":n.open,"aria-controls":a.contentId,"data-state":BS(n.open),...e,ref:$h(t,a.onTriggerChange),onClick:m=>{e.onClick?.(m),!(e.disabled||m.defaultPrevented)&&(m.currentTarget.focus(),n.open||n.onOpenChange(!0))},onPointerMove:ut(e.onPointerMove,xd(m=>{i.onItemEnter(m),!m.defaultPrevented&&!e.disabled&&!n.open&&!l.current&&(i.onPointerGraceIntentChange(null),l.current=window.setTimeout(()=>{n.onOpenChange(!0),v()},100))})),onPointerLeave:ut(e.onPointerLeave,xd(m=>{v();const E=n.content?.getBoundingClientRect();if(E){const b=n.content?.dataset.side,T=b==="right",A=T?-5:5,S=E[T?"left":"right"],w=E[T?"right":"left"];i.onPointerGraceIntentChange({area:[{x:m.clientX+A,y:m.clientY},{x:S,y:E.top},{x:w,y:E.top},{x:w,y:E.bottom},{x:S,y:E.bottom}],side:b}),window.clearTimeout(u.current),u.current=window.setTimeout(()=>i.onPointerGraceIntentChange(null),300)}else{if(i.onTriggerLeave(m),m.defaultPrevented)return;i.onPointerGraceIntentChange(null)}})),onKeyDown:ut(e.onKeyDown,m=>{const E=i.searchRef.current!=="";e.disabled||E&&m.key===" "||rj[r.dir].includes(m.key)&&(n.onOpenChange(!0),n.content?.focus(),m.preventDefault())})})})});HS.displayName=ed;var FS="MenuSubContent",US=p.forwardRef((e,t)=>{const n=TS(Oa,e.__scopeMenu),{forceMount:r=n.forceMount,...a}=e,i=tl(Oa,e.__scopeMenu),l=zd(Oa,e.__scopeMenu),u=jS(FS,e.__scopeMenu),d=p.useRef(null),h=xn(t,d);return g.jsx(Ed.Provider,{scope:e.__scopeMenu,children:g.jsx(ka,{present:r||i.open,children:g.jsx(Ed.Slot,{scope:e.__scopeMenu,children:g.jsx(d4,{id:u.contentId,"aria-labelledby":u.triggerId,...a,ref:h,align:"start",side:l.dir==="rtl"?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:v=>{l.isUsingKeyboardRef.current&&d.current?.focus(),v.preventDefault()},onCloseAutoFocus:v=>v.preventDefault(),onFocusOutside:ut(e.onFocusOutside,v=>{v.target!==u.trigger&&i.onOpenChange(!1)}),onEscapeKeyDown:ut(e.onEscapeKeyDown,v=>{l.onClose(),v.preventDefault()}),onKeyDown:ut(e.onKeyDown,v=>{const m=v.currentTarget.contains(v.target),E=aj[l.dir].includes(v.key);m&&E&&(i.onOpenChange(!1),u.trigger?.focus(),v.preventDefault())})})})})})});US.displayName=FS;function BS(e){return e?"open":"closed"}function sh(e){return e==="indeterminate"}function m4(e){return sh(e)?"indeterminate":e?"checked":"unchecked"}function Aj(e){const t=document.activeElement;for(const n of e)if(n===t||(n.focus(),document.activeElement!==t))return}function Sj(e,t){return e.map((n,r)=>e[(t+r)%e.length])}function wj(e,t,n){const a=t.length>1&&Array.from(t).every(h=>h===t[0])?t[0]:t,i=n?e.indexOf(n):-1;let l=Sj(e,Math.max(i,0));a.length===1&&(l=l.filter(h=>h!==n));const d=l.find(h=>h.toLowerCase().startsWith(a.toLowerCase()));return d!==n?d:void 0}function Cj(e,t){const{x:n,y:r}=e;let a=!1;for(let i=0,l=t.length-1;i<t.length;l=i++){const u=t[i],d=t[l],h=u.x,v=u.y,m=d.x,E=d.y;v>r!=E>r&&n<(m-h)*(r-v)/(E-v)+h&&(a=!a)}return a}function Rj(e,t){if(!t)return!1;const n={x:e.clientX,y:e.clientY};return Cj(n,t)}function xd(e){return t=>t.pointerType==="mouse"?e(t):void 0}var Oj=_S,Nj=l4,Pj=AS,kj=SS,Dj=f4,Mj=wS,Lj=n1,Ij=RS,jj=NS,Hj=kS,Fj=MS,Uj=LS,Bj=IS,Vj=HS,zj=US,r1="DropdownMenu",[qj,hie]=Qr(r1,[ES]),Lr=ES(),[$j,VS]=qj(r1),zS=e=>{const{__scopeDropdownMenu:t,children:n,dir:r,open:a,defaultOpen:i,onOpenChange:l,modal:u=!0}=e,d=Lr(t),h=p.useRef(null),[v,m]=Pa({prop:a,defaultProp:i??!1,onChange:l,caller:r1});return g.jsx($j,{scope:t,triggerId:Ts(),triggerRef:h,contentId:Ts(),open:v,onOpenChange:m,onOpenToggle:p.useCallback(()=>m(E=>!E),[m]),modal:u,children:g.jsx(Oj,{...d,open:v,onOpenChange:m,dir:r,modal:u,children:n})})};zS.displayName=r1;var qS="DropdownMenuTrigger",$S=p.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,disabled:r=!1,...a}=e,i=VS(qS,n),l=Lr(n);return g.jsx(Nj,{asChild:!0,...l,children:g.jsx(xt.button,{type:"button",id:i.triggerId,"aria-haspopup":"menu","aria-expanded":i.open,"aria-controls":i.open?i.contentId:void 0,"data-state":i.open?"open":"closed","data-disabled":r?"":void 0,disabled:r,...a,ref:$h(t,i.triggerRef),onPointerDown:ut(e.onPointerDown,u=>{!r&&u.button===0&&u.ctrlKey===!1&&(i.onOpenToggle(),i.open||u.preventDefault())}),onKeyDown:ut(e.onKeyDown,u=>{r||(["Enter"," "].includes(u.key)&&i.onOpenToggle(),u.key==="ArrowDown"&&i.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(u.key)&&u.preventDefault())})})})});$S.displayName=qS;var Zj="DropdownMenuPortal",ZS=e=>{const{__scopeDropdownMenu:t,...n}=e,r=Lr(t);return g.jsx(Pj,{...r,...n})};ZS.displayName=Zj;var QS="DropdownMenuContent",YS=p.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,a=VS(QS,n),i=Lr(n),l=p.useRef(!1);return g.jsx(kj,{id:a.contentId,"aria-labelledby":a.triggerId,...i,...r,ref:t,onCloseAutoFocus:ut(e.onCloseAutoFocus,u=>{l.current||a.triggerRef.current?.focus(),l.current=!1,u.preventDefault()}),onInteractOutside:ut(e.onInteractOutside,u=>{const d=u.detail.originalEvent,h=d.button===0&&d.ctrlKey===!0,v=d.button===2||h;(!a.modal||v)&&(l.current=!0)}),style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});YS.displayName=QS;var Qj="DropdownMenuGroup",GS=p.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,a=Lr(n);return g.jsx(Dj,{...a,...r,ref:t})});GS.displayName=Qj;var Yj="DropdownMenuLabel",Gj=p.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,a=Lr(n);return g.jsx(Mj,{...a,...r,ref:t})});Gj.displayName=Yj;var Kj="DropdownMenuItem",KS=p.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,a=Lr(n);return g.jsx(Lj,{...a,...r,ref:t})});KS.displayName=Kj;var Xj="DropdownMenuCheckboxItem",Wj=p.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,a=Lr(n);return g.jsx(Ij,{...a,...r,ref:t})});Wj.displayName=Xj;var Jj="DropdownMenuRadioGroup",eH=p.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,a=Lr(n);return g.jsx(jj,{...a,...r,ref:t})});eH.displayName=Jj;var tH="DropdownMenuRadioItem",nH=p.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,a=Lr(n);return g.jsx(Hj,{...a,...r,ref:t})});nH.displayName=tH;var rH="DropdownMenuItemIndicator",aH=p.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,a=Lr(n);return g.jsx(Fj,{...a,...r,ref:t})});aH.displayName=rH;var sH="DropdownMenuSeparator",XS=p.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,a=Lr(n);return g.jsx(Uj,{...a,...r,ref:t})});XS.displayName=sH;var iH="DropdownMenuArrow",oH=p.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,a=Lr(n);return g.jsx(Bj,{...a,...r,ref:t})});oH.displayName=iH;var lH="DropdownMenuSubTrigger",uH=p.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,a=Lr(n);return g.jsx(Vj,{...a,...r,ref:t})});uH.displayName=lH;var cH="DropdownMenuSubContent",dH=p.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,a=Lr(n);return g.jsx(zj,{...a,...r,ref:t,style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});dH.displayName=cH;var fH=zS,hH=$S,mH=ZS,pH=YS,gH=GS,vH=KS,yH=XS;const p4=fH,g4=hH,ih=({className:e,...t})=>g.jsx(gH,{className:De("flex flex-col gap-y-px p-1",e),...t}),v4=({className:e,side:t="bottom",sideOffset:n=2,align:r="start",...a})=>g.jsx(mH,{children:g.jsx(pH,{sideOffset:n,side:t,align:r,className:De("popover","max-h-[var(--radix-dropdown-menu-content-available-height)] min-w-48 max-w-72","radix-state-[closed]:fade-out-0 radix-state-[open]:fade-in-0 radix-state-[closed]:zoom-out-95 radix-state-[open]:zoom-in-95 radix-state-[closed]:animate-out radix-state-[open]:animate-in","radix-side-[bottom]:slide-in-from-top-2 radix-side-[left]:slide-in-from-right-2 radix-side-[right]:slide-in-from-left-2 radix-side-[top]:slide-in-from-bottom-2 origin-[--radix-dropdown-menu-content-transform-origin]",e),...a})}),Wi=({className:e,inset:t,...n})=>g.jsx(vH,{className:De("relative flex h-7 w-full min-w-0 flex-row items-center gap-x-0.5 rounded-md bg-transparent px-1 text-fg-subtle","font-medium text-[13px] leading-7 tracking-[0.01em]","cursor-default select-none outline-none transition-colors duration-200 ease-in-out","radix-[highlighted]:bg-accent-subtle radix-[highlighted]:text-fg","data-[disabled]:cursor-not-allowed data-[disabled]:opacity-50",t&&"pl-8",e),...n}),bH=({className:e,...t})=>g.jsx(yH,{className:De("-mx-1 h-[0.5px] bg-accent",e),...t});function EH({children:e,className:t,asChild:n,...r}){const a=n?br:"div";return g.jsx(a,{className:De("flex flex-col gap-y-px",t),...r,children:e})}function hv({children:e,className:t,asChild:n,...r}){const a=n?br:"div";return g.jsx(a,{className:De("flex h-7 w-full min-w-0 flex-row items-center gap-x-0.5 rounded-md bg-transparent px-1 text-fg-subtle","cursor-pointer font-medium text-[13px] leading-7 tracking-[0.01em]","cursor-default select-none outline-none transition-colors duration-200 ease-in-out hover:bg-accent","radix-[highlighted]:bg-accent radix-[highlighted]:text-fg","data-[state=active]:bg-accent data-[state=active]:text-fg","data-[disabled]:cursor-not-allowed data-[disabled]:opacity-50",t),...r,children:e})}function Za({children:e,className:t,asChild:n,...r}){const a=n?br:"span";return g.jsx(a,{className:De("block grow truncate px-1","font-medium text-[13px] leading-7 tracking-[0.01em]","last:pr-4",t),...r,children:e})}function ni({children:e,className:t,weight:n="fill",color:r="currentcolor"}){return g.jsx(br,{className:De("size-5 shrink-0",t),weight:n,color:r,children:e})}function xH({label:e,children:t,className:n,...r}){return g.jsxs(hv,{className:De("gap-x-0.5 hover:bg-transparent",n),...r,children:[g.jsx(Za,{className:"font-medium font-mono text-[11px] text-fg-subtle uppercase tracking-[0.05em]",children:e}),t]})}function WS(){return g.jsx("div",{className:"fixed right-5 bottom-5 z-50",children:g.jsxs(p4,{children:[g.jsx(g4,{asChild:!0,children:g.jsx(Yt,{variant:"default",size:"lg",className:"size-10 rounded-full p-0",children:g.jsx(eA,{className:"!size-5",weight:"fill"})})}),g.jsxs(v4,{align:"end",side:"top",sideOffset:8,children:[g.jsxs(ih,{children:[g.jsx(Wi,{asChild:!0,children:g.jsxs("a",{href:"https://director.run/changelog",target:"_blank",rel:"noopener noreferrer",children:[g.jsx(ni,{children:g.jsx(lA,{})}),g.jsx(Za,{children:"Latest updates"})]})}),g.jsx(Wi,{asChild:!0,children:g.jsxs("a",{href:"https://github.com/director-run/director/issues/new",target:"_blank",rel:"noopener noreferrer",children:[g.jsx(ni,{children:g.jsx(WT,{})}),g.jsx(Za,{children:"Report a bug"})]})})]}),g.jsx(bH,{}),g.jsxs(ih,{children:[g.jsx(Wi,{asChild:!0,children:g.jsxs("a",{href:"https://discord.gg/RT5pQRpkJx",target:"_blank",rel:"noopener noreferrer",children:[g.jsx(ni,{children:g.jsx(aA,{})}),g.jsx(Za,{children:"Join Discord"})]})}),g.jsx(Wi,{asChild:!0,children:g.jsxs("a",{href:"https://github.com/director-run/director/discussions/new/choose",target:"_blank",rel:"noopener noreferrer",children:[g.jsx(ni,{children:g.jsx(B8,{})}),g.jsx(Za,{children:"Start discussion"})]})}),g.jsx(Wi,{asChild:!0,children:g.jsxs("a",{href:"https://x.com/theworkingco",target:"_blank",rel:"noopener noreferrer",children:[g.jsx(ni,{children:g.jsx(mA,{})}),g.jsx(Za,{children:"Follow on X/Twitter"})]})})]})]})]})})}function _H(e){if(typeof document>"u")return;let t=document.head||document.getElementsByTagName("head")[0],n=document.createElement("style");n.type="text/css",t.appendChild(n),n.styleSheet?n.styleSheet.cssText=e:n.appendChild(document.createTextNode(e))}const TH=e=>{switch(e){case"success":return wH;case"info":return RH;case"warning":return CH;case"error":return OH;default:return null}},AH=Array(12).fill(0),SH=({visible:e,className:t})=>me.createElement("div",{className:["sonner-loading-wrapper",t].filter(Boolean).join(" "),"data-visible":e},me.createElement("div",{className:"sonner-spinner"},AH.map((n,r)=>me.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${r}`})))),wH=me.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},me.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z",clipRule:"evenodd"})),CH=me.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},me.createElement("path",{fillRule:"evenodd",d:"M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z",clipRule:"evenodd"})),RH=me.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},me.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z",clipRule:"evenodd"})),OH=me.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},me.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z",clipRule:"evenodd"})),NH=me.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"},me.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),me.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"})),PH=()=>{const[e,t]=me.useState(document.hidden);return me.useEffect(()=>{const n=()=>{t(document.hidden)};return document.addEventListener("visibilitychange",n),()=>window.removeEventListener("visibilitychange",n)},[]),e};let mv=1;class kH{constructor(){this.subscribe=t=>(this.subscribers.push(t),()=>{const n=this.subscribers.indexOf(t);this.subscribers.splice(n,1)}),this.publish=t=>{this.subscribers.forEach(n=>n(t))},this.addToast=t=>{this.publish(t),this.toasts=[...this.toasts,t]},this.create=t=>{var n;const{message:r,...a}=t,i=typeof t?.id=="number"||((n=t.id)==null?void 0:n.length)>0?t.id:mv++,l=this.toasts.find(d=>d.id===i),u=t.dismissible===void 0?!0:t.dismissible;return this.dismissedToasts.has(i)&&this.dismissedToasts.delete(i),l?this.toasts=this.toasts.map(d=>d.id===i?(this.publish({...d,...t,id:i,title:r}),{...d,...t,id:i,dismissible:u,title:r}):d):this.addToast({title:r,...a,dismissible:u,id:i}),i},this.dismiss=t=>(t?(this.dismissedToasts.add(t),requestAnimationFrame(()=>this.subscribers.forEach(n=>n({id:t,dismiss:!0})))):this.toasts.forEach(n=>{this.subscribers.forEach(r=>r({id:n.id,dismiss:!0}))}),t),this.message=(t,n)=>this.create({...n,message:t}),this.error=(t,n)=>this.create({...n,message:t,type:"error"}),this.success=(t,n)=>this.create({...n,type:"success",message:t}),this.info=(t,n)=>this.create({...n,type:"info",message:t}),this.warning=(t,n)=>this.create({...n,type:"warning",message:t}),this.loading=(t,n)=>this.create({...n,type:"loading",message:t}),this.promise=(t,n)=>{if(!n)return;let r;n.loading!==void 0&&(r=this.create({...n,promise:t,type:"loading",message:n.loading,description:typeof n.description!="function"?n.description:void 0}));const a=Promise.resolve(t instanceof Function?t():t);let i=r!==void 0,l;const u=a.then(async h=>{if(l=["resolve",h],me.isValidElement(h))i=!1,this.create({id:r,type:"default",message:h});else if(MH(h)&&!h.ok){i=!1;const m=typeof n.error=="function"?await n.error(`HTTP error! status: ${h.status}`):n.error,E=typeof n.description=="function"?await n.description(`HTTP error! status: ${h.status}`):n.description,T=typeof m=="object"&&!me.isValidElement(m)?m:{message:m};this.create({id:r,type:"error",description:E,...T})}else if(h instanceof Error){i=!1;const m=typeof n.error=="function"?await n.error(h):n.error,E=typeof n.description=="function"?await n.description(h):n.description,T=typeof m=="object"&&!me.isValidElement(m)?m:{message:m};this.create({id:r,type:"error",description:E,...T})}else if(n.success!==void 0){i=!1;const m=typeof n.success=="function"?await n.success(h):n.success,E=typeof n.description=="function"?await n.description(h):n.description,T=typeof m=="object"&&!me.isValidElement(m)?m:{message:m};this.create({id:r,type:"success",description:E,...T})}}).catch(async h=>{if(l=["reject",h],n.error!==void 0){i=!1;const v=typeof n.error=="function"?await n.error(h):n.error,m=typeof n.description=="function"?await n.description(h):n.description,b=typeof v=="object"&&!me.isValidElement(v)?v:{message:v};this.create({id:r,type:"error",description:m,...b})}}).finally(()=>{i&&(this.dismiss(r),r=void 0),n.finally==null||n.finally.call(n)}),d=()=>new Promise((h,v)=>u.then(()=>l[0]==="reject"?v(l[1]):h(l[1])).catch(v));return typeof r!="string"&&typeof r!="number"?{unwrap:d}:Object.assign(r,{unwrap:d})},this.custom=(t,n)=>{const r=n?.id||mv++;return this.create({jsx:t(r),id:r,...n}),r},this.getActiveToasts=()=>this.toasts.filter(t=>!this.dismissedToasts.has(t.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}}const qr=new kH,DH=(e,t)=>{const n=t?.id||mv++;return qr.addToast({title:e,...t,id:n}),n},MH=e=>e&&typeof e=="object"&&"ok"in e&&typeof e.ok=="boolean"&&"status"in e&&typeof e.status=="number",LH=DH,IH=()=>qr.toasts,jH=()=>qr.getActiveToasts(),JS=Object.assign(LH,{success:qr.success,info:qr.info,warning:qr.warning,error:qr.error,custom:qr.custom,message:qr.message,promise:qr.promise,dismiss:qr.dismiss,loading:qr.loading},{getHistory:IH,getToasts:jH});_H("[data-sonner-toaster][dir=ltr],html[dir=ltr]{--toast-icon-margin-start:-3px;--toast-icon-margin-end:4px;--toast-svg-margin-start:-1px;--toast-svg-margin-end:0px;--toast-button-margin-start:auto;--toast-button-margin-end:0;--toast-close-button-start:0;--toast-close-button-end:unset;--toast-close-button-transform:translate(-35%, -35%)}[data-sonner-toaster][dir=rtl],html[dir=rtl]{--toast-icon-margin-start:4px;--toast-icon-margin-end:-3px;--toast-svg-margin-start:0px;--toast-svg-margin-end:-1px;--toast-button-margin-start:0;--toast-button-margin-end:auto;--toast-close-button-start:unset;--toast-close-button-end:0;--toast-close-button-transform:translate(35%, -35%)}[data-sonner-toaster]{position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1:hsl(0, 0%, 99%);--gray2:hsl(0, 0%, 97.3%);--gray3:hsl(0, 0%, 95.1%);--gray4:hsl(0, 0%, 93%);--gray5:hsl(0, 0%, 90.9%);--gray6:hsl(0, 0%, 88.7%);--gray7:hsl(0, 0%, 85.8%);--gray8:hsl(0, 0%, 78%);--gray9:hsl(0, 0%, 56.1%);--gray10:hsl(0, 0%, 52.3%);--gray11:hsl(0, 0%, 43.5%);--gray12:hsl(0, 0%, 9%);--border-radius:8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:0;z-index:999999999;transition:transform .4s ease}@media (hover:none) and (pointer:coarse){[data-sonner-toaster][data-lifted=true]{transform:none}}[data-sonner-toaster][data-x-position=right]{right:var(--offset-right)}[data-sonner-toaster][data-x-position=left]{left:var(--offset-left)}[data-sonner-toaster][data-x-position=center]{left:50%;transform:translateX(-50%)}[data-sonner-toaster][data-y-position=top]{top:var(--offset-top)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--offset-bottom)}[data-sonner-toast]{--y:translateY(100%);--lift-amount:calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:0;overflow-wrap:anywhere}[data-sonner-toast][data-styled=true]{padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px rgba(0,0,0,.1);width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}[data-sonner-toast]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-y-position=top]{top:0;--y:translateY(-100%);--lift:1;--lift-amount:calc(1 * var(--gap))}[data-sonner-toast][data-y-position=bottom]{bottom:0;--y:translateY(100%);--lift:-1;--lift-amount:calc(var(--lift) * var(--gap))}[data-sonner-toast][data-styled=true] [data-description]{font-weight:400;line-height:1.4;color:#3f3f3f}[data-rich-colors=true][data-sonner-toast][data-styled=true] [data-description]{color:inherit}[data-sonner-toaster][data-sonner-theme=dark] [data-description]{color:#e8e8e8}[data-sonner-toast][data-styled=true] [data-title]{font-weight:500;line-height:1.5;color:inherit}[data-sonner-toast][data-styled=true] [data-icon]{display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}[data-sonner-toast][data-promise=true] [data-icon]>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}[data-sonner-toast][data-styled=true] [data-icon]>*{flex-shrink:0}[data-sonner-toast][data-styled=true] [data-icon] svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}[data-sonner-toast][data-styled=true] [data-content]{display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;font-weight:500;cursor:pointer;outline:0;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}[data-sonner-toast][data-styled=true] [data-button]:focus-visible{box-shadow:0 0 0 2px rgba(0,0,0,.4)}[data-sonner-toast][data-styled=true] [data-button]:first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}[data-sonner-toast][data-styled=true] [data-cancel]{color:var(--normal-text);background:rgba(0,0,0,.08)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-styled=true] [data-cancel]{background:rgba(255,255,255,.3)}[data-sonner-toast][data-styled=true] [data-close-button]{position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--gray12);background:var(--normal-bg);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast][data-styled=true] [data-close-button]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-styled=true] [data-disabled=true]{cursor:not-allowed}[data-sonner-toast][data-styled=true]:hover [data-close-button]:hover{background:var(--gray2);border-color:var(--gray5)}[data-sonner-toast][data-swiping=true]::before{content:'';position:absolute;left:-100%;right:-100%;height:100%;z-index:-1}[data-sonner-toast][data-y-position=top][data-swiping=true]::before{bottom:50%;transform:scaleY(3) translateY(50%)}[data-sonner-toast][data-y-position=bottom][data-swiping=true]::before{top:50%;transform:scaleY(3) translateY(-50%)}[data-sonner-toast][data-swiping=false][data-removed=true]::before{content:'';position:absolute;inset:0;transform:scaleY(2)}[data-sonner-toast][data-expanded=true]::after{content:'';position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}[data-sonner-toast][data-mounted=true]{--y:translateY(0);opacity:1}[data-sonner-toast][data-expanded=false][data-front=false]{--scale:var(--toasts-before) * 0.05 + 1;--y:translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}[data-sonner-toast]>*{transition:opacity .4s}[data-sonner-toast][data-x-position=right]{right:0}[data-sonner-toast][data-x-position=left]{left:0}[data-sonner-toast][data-expanded=false][data-front=false][data-styled=true]>*{opacity:0}[data-sonner-toast][data-visible=false]{opacity:0;pointer-events:none}[data-sonner-toast][data-mounted=true][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}[data-sonner-toast][data-removed=true][data-front=true][data-swipe-out=false]{--y:translateY(calc(var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=false]{--y:translateY(40%);opacity:0;transition:transform .5s,opacity .2s}[data-sonner-toast][data-removed=true][data-front=false]::before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y,0)) translateX(var(--swipe-amount-x,0));transition:none}[data-sonner-toast][data-swiped=true]{user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width:600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-sonner-theme=light]{--normal-bg:#fff;--normal-border:var(--gray4);--normal-text:var(--gray12);--success-bg:hsl(143, 85%, 96%);--success-border:hsl(145, 92%, 87%);--success-text:hsl(140, 100%, 27%);--info-bg:hsl(208, 100%, 97%);--info-border:hsl(221, 91%, 93%);--info-text:hsl(210, 92%, 45%);--warning-bg:hsl(49, 100%, 97%);--warning-border:hsl(49, 91%, 84%);--warning-text:hsl(31, 92%, 45%);--error-bg:hsl(359, 100%, 97%);--error-border:hsl(359, 100%, 94%);--error-text:hsl(360, 100%, 45%)}[data-sonner-toaster][data-sonner-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg:#000;--normal-border:hsl(0, 0%, 20%);--normal-text:var(--gray1)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg:#fff;--normal-border:var(--gray3);--normal-text:var(--gray12)}[data-sonner-toaster][data-sonner-theme=dark]{--normal-bg:#000;--normal-bg-hover:hsl(0, 0%, 12%);--normal-border:hsl(0, 0%, 20%);--normal-border-hover:hsl(0, 0%, 25%);--normal-text:var(--gray1);--success-bg:hsl(150, 100%, 6%);--success-border:hsl(147, 100%, 12%);--success-text:hsl(150, 86%, 65%);--info-bg:hsl(215, 100%, 6%);--info-border:hsl(223, 43%, 17%);--info-text:hsl(216, 87%, 65%);--warning-bg:hsl(64, 100%, 6%);--warning-border:hsl(60, 100%, 9%);--warning-text:hsl(46, 87%, 65%);--error-bg:hsl(358, 76%, 10%);--error-border:hsl(357, 89%, 16%);--error-text:hsl(358, 100%, 81%)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size:16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:first-child{animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}100%{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}100%{opacity:.15}}@media (prefers-reduced-motion){.sonner-loading-bar,[data-sonner-toast],[data-sonner-toast]>*{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}");function Cf(e){return e.label!==void 0}const HH=3,FH="24px",UH="16px",Tx=4e3,BH=356,VH=14,zH=45,qH=200;function hs(...e){return e.filter(Boolean).join(" ")}function $H(e){const[t,n]=e.split("-"),r=[];return t&&r.push(t),n&&r.push(n),r}const ZH=e=>{var t,n,r,a,i,l,u,d,h;const{invert:v,toast:m,unstyled:E,interacting:b,setHeights:T,visibleToasts:A,heights:S,index:w,toasts:R,expanded:k,removeToast:L,defaultRichColors:I,closeButton:N,style:M,cancelButtonStyle:D,actionButtonStyle:B,className:P="",descriptionClassName:U="",duration:F,position:Q,gap:Y,expandByDefault:te,classNames:V,icons:J,closeButtonAriaLabel:X="Close toast"}=e,[se,C]=me.useState(null),[oe,ge]=me.useState(null),[j,Ee]=me.useState(!1),[Pe,q]=me.useState(!1),[ae,Te]=me.useState(!1),[qe,Ae]=me.useState(!1),[Oe,et]=me.useState(!1),[ct,it]=me.useState(0),[Ht,_t]=me.useState(0),st=me.useRef(m.duration||F||Tx),vn=me.useRef(null),bt=me.useRef(null),W=w===0,ce=w+1<=A,pe=m.type,Ne=m.dismissible!==!1,Me=m.className||"",je=m.descriptionClassName||"",ie=me.useMemo(()=>S.findIndex(dt=>dt.toastId===m.id)||0,[S,m.id]),Se=me.useMemo(()=>{var dt;return(dt=m.closeButton)!=null?dt:N},[m.closeButton,N]),Ve=me.useMemo(()=>m.duration||F||Tx,[m.duration,F]),$e=me.useRef(0),pt=me.useRef(0),tn=me.useRef(0),jn=me.useRef(null),[hn,Wn]=Q.split("-"),$n=me.useMemo(()=>S.reduce((dt,Rn,On)=>On>=ie?dt:dt+Rn.height,0),[S,ie]),ln=PH(),un=m.invert||v,Zn=pe==="loading";pt.current=me.useMemo(()=>ie*Y+$n,[ie,$n]),me.useEffect(()=>{st.current=Ve},[Ve]),me.useEffect(()=>{Ee(!0)},[]),me.useEffect(()=>{const dt=bt.current;if(dt){const Rn=dt.getBoundingClientRect().height;return _t(Rn),T(On=>[{toastId:m.id,height:Rn,position:m.position},...On]),()=>T(On=>On.filter(Jn=>Jn.toastId!==m.id))}},[T,m.id]),me.useLayoutEffect(()=>{if(!j)return;const dt=bt.current,Rn=dt.style.height;dt.style.height="auto";const On=dt.getBoundingClientRect().height;dt.style.height=Rn,_t(On),T(Jn=>Jn.find(kn=>kn.toastId===m.id)?Jn.map(kn=>kn.toastId===m.id?{...kn,height:On}:kn):[{toastId:m.id,height:On,position:m.position},...Jn])},[j,m.title,m.description,T,m.id,m.jsx,m.action,m.cancel]);const Kr=me.useCallback(()=>{q(!0),it(pt.current),T(dt=>dt.filter(Rn=>Rn.toastId!==m.id)),setTimeout(()=>{L(m)},qH)},[m,L,T,pt]);me.useEffect(()=>{if(m.promise&&pe==="loading"||m.duration===1/0||m.type==="loading")return;let dt;return k||b||ln?(()=>{if(tn.current<$e.current){const Jn=new Date().getTime()-$e.current;st.current=st.current-Jn}tn.current=new Date().getTime()})():(()=>{st.current!==1/0&&($e.current=new Date().getTime(),dt=setTimeout(()=>{m.onAutoClose==null||m.onAutoClose.call(m,m),Kr()},st.current))})(),()=>clearTimeout(dt)},[k,b,m,pe,ln,Kr]),me.useEffect(()=>{m.delete&&(Kr(),m.onDismiss==null||m.onDismiss.call(m,m))},[Kr,m.delete]);function cl(){var dt;if(J?.loading){var Rn;return me.createElement("div",{className:hs(V?.loader,m==null||(Rn=m.classNames)==null?void 0:Rn.loader,"sonner-loader"),"data-visible":pe==="loading"},J.loading)}return me.createElement(SH,{className:hs(V?.loader,m==null||(dt=m.classNames)==null?void 0:dt.loader),visible:pe==="loading"})}const vo=m.icon||J?.[pe]||TH(pe);var is,dl;return me.createElement("li",{tabIndex:0,ref:bt,className:hs(P,Me,V?.toast,m==null||(t=m.classNames)==null?void 0:t.toast,V?.default,V?.[pe],m==null||(n=m.classNames)==null?void 0:n[pe]),"data-sonner-toast":"","data-rich-colors":(is=m.richColors)!=null?is:I,"data-styled":!(m.jsx||m.unstyled||E),"data-mounted":j,"data-promise":!!m.promise,"data-swiped":Oe,"data-removed":Pe,"data-visible":ce,"data-y-position":hn,"data-x-position":Wn,"data-index":w,"data-front":W,"data-swiping":ae,"data-dismissible":Ne,"data-type":pe,"data-invert":un,"data-swipe-out":qe,"data-swipe-direction":oe,"data-expanded":!!(k||te&&j),style:{"--index":w,"--toasts-before":w,"--z-index":R.length-w,"--offset":`${Pe?ct:pt.current}px`,"--initial-height":te?"auto":`${Ht}px`,...M,...m.style},onDragEnd:()=>{Te(!1),C(null),jn.current=null},onPointerDown:dt=>{dt.button!==2&&(Zn||!Ne||(vn.current=new Date,it(pt.current),dt.target.setPointerCapture(dt.pointerId),dt.target.tagName!=="BUTTON"&&(Te(!0),jn.current={x:dt.clientX,y:dt.clientY})))},onPointerUp:()=>{var dt,Rn,On;if(qe||!Ne)return;jn.current=null;const Jn=Number(((dt=bt.current)==null?void 0:dt.style.getPropertyValue("--swipe-amount-x").replace("px",""))||0),Fa=Number(((Rn=bt.current)==null?void 0:Rn.style.getPropertyValue("--swipe-amount-y").replace("px",""))||0),kn=new Date().getTime()-((On=vn.current)==null?void 0:On.getTime()),Nn=se==="x"?Jn:Fa,_n=Math.abs(Nn)/kn;if(Math.abs(Nn)>=zH||_n>.11){it(pt.current),m.onDismiss==null||m.onDismiss.call(m,m),ge(se==="x"?Jn>0?"right":"left":Fa>0?"down":"up"),Kr(),Ae(!0);return}else{var nn,Hn;(nn=bt.current)==null||nn.style.setProperty("--swipe-amount-x","0px"),(Hn=bt.current)==null||Hn.style.setProperty("--swipe-amount-y","0px")}et(!1),Te(!1),C(null)},onPointerMove:dt=>{var Rn,On,Jn;if(!jn.current||!Ne||((Rn=window.getSelection())==null?void 0:Rn.toString().length)>0)return;const kn=dt.clientY-jn.current.y,Nn=dt.clientX-jn.current.x;var _n;const nn=(_n=e.swipeDirections)!=null?_n:$H(Q);!se&&(Math.abs(Nn)>1||Math.abs(kn)>1)&&C(Math.abs(Nn)>Math.abs(kn)?"x":"y");let Hn={x:0,y:0};const ee=$=>1/(1.5+Math.abs($)/20);if(se==="y"){if(nn.includes("top")||nn.includes("bottom"))if(nn.includes("top")&&kn<0||nn.includes("bottom")&&kn>0)Hn.y=kn;else{const $=kn*ee(kn);Hn.y=Math.abs($)<Math.abs(kn)?$:kn}}else if(se==="x"&&(nn.includes("left")||nn.includes("right")))if(nn.includes("left")&&Nn<0||nn.includes("right")&&Nn>0)Hn.x=Nn;else{const $=Nn*ee(Nn);Hn.x=Math.abs($)<Math.abs(Nn)?$:Nn}(Math.abs(Hn.x)>0||Math.abs(Hn.y)>0)&&et(!0),(On=bt.current)==null||On.style.setProperty("--swipe-amount-x",`${Hn.x}px`),(Jn=bt.current)==null||Jn.style.setProperty("--swipe-amount-y",`${Hn.y}px`)}},Se&&!m.jsx&&pe!=="loading"?me.createElement("button",{"aria-label":X,"data-disabled":Zn,"data-close-button":!0,onClick:Zn||!Ne?()=>{}:()=>{Kr(),m.onDismiss==null||m.onDismiss.call(m,m)},className:hs(V?.closeButton,m==null||(r=m.classNames)==null?void 0:r.closeButton)},(dl=J?.close)!=null?dl:NH):null,(pe||m.icon||m.promise)&&m.icon!==null&&(J?.[pe]!==null||m.icon)?me.createElement("div",{"data-icon":"",className:hs(V?.icon,m==null||(a=m.classNames)==null?void 0:a.icon)},m.promise||m.type==="loading"&&!m.icon?m.icon||cl():null,m.type!=="loading"?vo:null):null,me.createElement("div",{"data-content":"",className:hs(V?.content,m==null||(i=m.classNames)==null?void 0:i.content)},me.createElement("div",{"data-title":"",className:hs(V?.title,m==null||(l=m.classNames)==null?void 0:l.title)},m.jsx?m.jsx:typeof m.title=="function"?m.title():m.title),m.description?me.createElement("div",{"data-description":"",className:hs(U,je,V?.description,m==null||(u=m.classNames)==null?void 0:u.description)},typeof m.description=="function"?m.description():m.description):null),me.isValidElement(m.cancel)?m.cancel:m.cancel&&Cf(m.cancel)?me.createElement("button",{"data-button":!0,"data-cancel":!0,style:m.cancelButtonStyle||D,onClick:dt=>{Cf(m.cancel)&&Ne&&(m.cancel.onClick==null||m.cancel.onClick.call(m.cancel,dt),Kr())},className:hs(V?.cancelButton,m==null||(d=m.classNames)==null?void 0:d.cancelButton)},m.cancel.label):null,me.isValidElement(m.action)?m.action:m.action&&Cf(m.action)?me.createElement("button",{"data-button":!0,"data-action":!0,style:m.actionButtonStyle||B,onClick:dt=>{Cf(m.action)&&(m.action.onClick==null||m.action.onClick.call(m.action,dt),!dt.defaultPrevented&&Kr())},className:hs(V?.actionButton,m==null||(h=m.classNames)==null?void 0:h.actionButton)},m.action.label):null)};function Ax(){if(typeof window>"u"||typeof document>"u")return"ltr";const e=document.documentElement.getAttribute("dir");return e==="auto"||!e?window.getComputedStyle(document.documentElement).direction:e}function QH(e,t){const n={};return[e,t].forEach((r,a)=>{const i=a===1,l=i?"--mobile-offset":"--offset",u=i?UH:FH;function d(h){["top","right","bottom","left"].forEach(v=>{n[`${l}-${v}`]=typeof h=="number"?`${h}px`:h})}typeof r=="number"||typeof r=="string"?d(r):typeof r=="object"?["top","right","bottom","left"].forEach(h=>{r[h]===void 0?n[`${l}-${h}`]=u:n[`${l}-${h}`]=typeof r[h]=="number"?`${r[h]}px`:r[h]}):d(u)}),n}const YH=me.forwardRef(function(t,n){const{invert:r,position:a="bottom-right",hotkey:i=["altKey","KeyT"],expand:l,closeButton:u,className:d,offset:h,mobileOffset:v,theme:m="light",richColors:E,duration:b,style:T,visibleToasts:A=HH,toastOptions:S,dir:w=Ax(),gap:R=VH,icons:k,containerAriaLabel:L="Notifications"}=t,[I,N]=me.useState([]),M=me.useMemo(()=>Array.from(new Set([a].concat(I.filter(oe=>oe.position).map(oe=>oe.position)))),[I,a]),[D,B]=me.useState([]),[P,U]=me.useState(!1),[F,Q]=me.useState(!1),[Y,te]=me.useState(m!=="system"?m:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),V=me.useRef(null),J=i.join("+").replace(/Key/g,"").replace(/Digit/g,""),X=me.useRef(null),se=me.useRef(!1),C=me.useCallback(oe=>{N(ge=>{var j;return(j=ge.find(Ee=>Ee.id===oe.id))!=null&&j.delete||qr.dismiss(oe.id),ge.filter(({id:Ee})=>Ee!==oe.id)})},[]);return me.useEffect(()=>qr.subscribe(oe=>{if(oe.dismiss){requestAnimationFrame(()=>{N(ge=>ge.map(j=>j.id===oe.id?{...j,delete:!0}:j))});return}setTimeout(()=>{NA.flushSync(()=>{N(ge=>{const j=ge.findIndex(Ee=>Ee.id===oe.id);return j!==-1?[...ge.slice(0,j),{...ge[j],...oe},...ge.slice(j+1)]:[oe,...ge]})})})}),[I]),me.useEffect(()=>{if(m!=="system"){te(m);return}if(m==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?te("dark"):te("light")),typeof window>"u")return;const oe=window.matchMedia("(prefers-color-scheme: dark)");try{oe.addEventListener("change",({matches:ge})=>{te(ge?"dark":"light")})}catch{oe.addListener(({matches:j})=>{try{te(j?"dark":"light")}catch(Ee){console.error(Ee)}})}},[m]),me.useEffect(()=>{I.length<=1&&U(!1)},[I]),me.useEffect(()=>{const oe=ge=>{var j;if(i.every(q=>ge[q]||ge.code===q)){var Pe;U(!0),(Pe=V.current)==null||Pe.focus()}ge.code==="Escape"&&(document.activeElement===V.current||(j=V.current)!=null&&j.contains(document.activeElement))&&U(!1)};return document.addEventListener("keydown",oe),()=>document.removeEventListener("keydown",oe)},[i]),me.useEffect(()=>{if(V.current)return()=>{X.current&&(X.current.focus({preventScroll:!0}),X.current=null,se.current=!1)}},[V.current]),me.createElement("section",{ref:n,"aria-label":`${L} ${J}`,tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",suppressHydrationWarning:!0},M.map((oe,ge)=>{var j;const[Ee,Pe]=oe.split("-");return I.length?me.createElement("ol",{key:oe,dir:w==="auto"?Ax():w,tabIndex:-1,ref:V,className:d,"data-sonner-toaster":!0,"data-sonner-theme":Y,"data-y-position":Ee,"data-x-position":Pe,style:{"--front-toast-height":`${((j=D[0])==null?void 0:j.height)||0}px`,"--width":`${BH}px`,"--gap":`${R}px`,...T,...QH(h,v)},onBlur:q=>{se.current&&!q.currentTarget.contains(q.relatedTarget)&&(se.current=!1,X.current&&(X.current.focus({preventScroll:!0}),X.current=null))},onFocus:q=>{q.target instanceof HTMLElement&&q.target.dataset.dismissible==="false"||se.current||(se.current=!0,X.current=q.relatedTarget)},onMouseEnter:()=>U(!0),onMouseMove:()=>U(!0),onMouseLeave:()=>{F||U(!1)},onDragEnd:()=>U(!1),onPointerDown:q=>{q.target instanceof HTMLElement&&q.target.dataset.dismissible==="false"||Q(!0)},onPointerUp:()=>Q(!1)},I.filter(q=>!q.position&&ge===0||q.position===oe).map((q,ae)=>{var Te,qe;return me.createElement(ZH,{key:q.id,icons:k,index:ae,toast:q,defaultRichColors:E,duration:(Te=S?.duration)!=null?Te:b,className:S?.className,descriptionClassName:S?.descriptionClassName,invert:r,visibleToasts:A,closeButton:(qe=S?.closeButton)!=null?qe:u,interacting:F,position:oe,style:S?.style,unstyled:S?.unstyled,classNames:S?.classNames,cancelButtonStyle:S?.cancelButtonStyle,actionButtonStyle:S?.actionButtonStyle,closeButtonAriaLabel:S?.closeButtonAriaLabel,removeToast:C,toasts:I.filter(Ae=>Ae.position==q.position),heights:D.filter(Ae=>Ae.position==q.position),setHeights:B,expandByDefault:l,gap:R,expanded:P,swipeDirections:t.swipeDirections})})):null}))}),GH=({...e})=>g.jsx(YH,{position:"bottom-center",toastOptions:{classNames:{toast:"w-full"}},gap:8,expand:!0,...e});function KH(e){const{id:t,title:n,description:r}=e;return g.jsxs("div",{className:"flex w-full items-start justify-between rounded-xl bg-fg p-3 text-surface",children:[g.jsxs("div",{className:"flex flex-col gap-y-1",children:[g.jsx("p",{className:"font-medium text-sm leading-tight",children:n}),g.jsx("p",{className:"text-surface/70 text-xs",children:r})]}),g.jsxs(Yt,{size:"icon",variant:"inverse",className:"-top-2 -right-2 relative size-6",onClick:()=>{JS.dismiss(t)},children:[g.jsx(qh,{weight:"bold",className:"!size-4"}),g.jsx("span",{className:"sr-only",children:"Close"})]})]})}function ur(e,t){return JS.custom(n=>g.jsx(KH,{id:n,...e}),t)}var v2={exports:{}},Vc={},y2={exports:{}},b2={};/**
|
|
66
|
-
* @license React
|
|
67
|
-
* scheduler.production.js
|
|
68
|
-
*
|
|
69
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
70
|
-
*
|
|
71
|
-
* This source code is licensed under the MIT license found in the
|
|
72
|
-
* LICENSE file in the root directory of this source tree.
|
|
73
|
-
*/var Sx;function XH(){return Sx||(Sx=1,function(e){function t(V,J){var X=V.length;V.push(J);e:for(;0<X;){var se=X-1>>>1,C=V[se];if(0<a(C,J))V[se]=J,V[X]=C,X=se;else break e}}function n(V){return V.length===0?null:V[0]}function r(V){if(V.length===0)return null;var J=V[0],X=V.pop();if(X!==J){V[0]=X;e:for(var se=0,C=V.length,oe=C>>>1;se<oe;){var ge=2*(se+1)-1,j=V[ge],Ee=ge+1,Pe=V[Ee];if(0>a(j,X))Ee<C&&0>a(Pe,j)?(V[se]=Pe,V[Ee]=X,se=Ee):(V[se]=j,V[ge]=X,se=ge);else if(Ee<C&&0>a(Pe,X))V[se]=Pe,V[Ee]=X,se=Ee;else break e}}return J}function a(V,J){var X=V.sortIndex-J.sortIndex;return X!==0?X:V.id-J.id}if(e.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var l=Date,u=l.now();e.unstable_now=function(){return l.now()-u}}var d=[],h=[],v=1,m=null,E=3,b=!1,T=!1,A=!1,S=!1,w=typeof setTimeout=="function"?setTimeout:null,R=typeof clearTimeout=="function"?clearTimeout:null,k=typeof setImmediate<"u"?setImmediate:null;function L(V){for(var J=n(h);J!==null;){if(J.callback===null)r(h);else if(J.startTime<=V)r(h),J.sortIndex=J.expirationTime,t(d,J);else break;J=n(h)}}function I(V){if(A=!1,L(V),!T)if(n(d)!==null)T=!0,N||(N=!0,F());else{var J=n(h);J!==null&&te(I,J.startTime-V)}}var N=!1,M=-1,D=5,B=-1;function P(){return S?!0:!(e.unstable_now()-B<D)}function U(){if(S=!1,N){var V=e.unstable_now();B=V;var J=!0;try{e:{T=!1,A&&(A=!1,R(M),M=-1),b=!0;var X=E;try{t:{for(L(V),m=n(d);m!==null&&!(m.expirationTime>V&&P());){var se=m.callback;if(typeof se=="function"){m.callback=null,E=m.priorityLevel;var C=se(m.expirationTime<=V);if(V=e.unstable_now(),typeof C=="function"){m.callback=C,L(V),J=!0;break t}m===n(d)&&r(d),L(V)}else r(d);m=n(d)}if(m!==null)J=!0;else{var oe=n(h);oe!==null&&te(I,oe.startTime-V),J=!1}}break e}finally{m=null,E=X,b=!1}J=void 0}}finally{J?F():N=!1}}}var F;if(typeof k=="function")F=function(){k(U)};else if(typeof MessageChannel<"u"){var Q=new MessageChannel,Y=Q.port2;Q.port1.onmessage=U,F=function(){Y.postMessage(null)}}else F=function(){w(U,0)};function te(V,J){M=w(function(){V(e.unstable_now())},J)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(V){V.callback=null},e.unstable_forceFrameRate=function(V){0>V||125<V?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):D=0<V?Math.floor(1e3/V):5},e.unstable_getCurrentPriorityLevel=function(){return E},e.unstable_next=function(V){switch(E){case 1:case 2:case 3:var J=3;break;default:J=E}var X=E;E=J;try{return V()}finally{E=X}},e.unstable_requestPaint=function(){S=!0},e.unstable_runWithPriority=function(V,J){switch(V){case 1:case 2:case 3:case 4:case 5:break;default:V=3}var X=E;E=V;try{return J()}finally{E=X}},e.unstable_scheduleCallback=function(V,J,X){var se=e.unstable_now();switch(typeof X=="object"&&X!==null?(X=X.delay,X=typeof X=="number"&&0<X?se+X:se):X=se,V){case 1:var C=-1;break;case 2:C=250;break;case 5:C=1073741823;break;case 4:C=1e4;break;default:C=5e3}return C=X+C,V={id:v++,callback:J,priorityLevel:V,startTime:X,expirationTime:C,sortIndex:-1},X>se?(V.sortIndex=X,t(h,V),n(d)===null&&V===n(h)&&(A?(R(M),M=-1):A=!0,te(I,X-se))):(V.sortIndex=C,t(d,V),T||b||(T=!0,N||(N=!0,F()))),V},e.unstable_shouldYield=P,e.unstable_wrapCallback=function(V){var J=E;return function(){var X=E;E=J;try{return V.apply(this,arguments)}finally{E=X}}}}(b2)),b2}var wx;function WH(){return wx||(wx=1,y2.exports=XH()),y2.exports}/**
|
|
74
|
-
* @license React
|
|
75
|
-
* react-dom-client.production.js
|
|
76
|
-
*
|
|
77
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
78
|
-
*
|
|
79
|
-
* This source code is licensed under the MIT license found in the
|
|
80
|
-
* LICENSE file in the root directory of this source tree.
|
|
81
|
-
*/var Cx;function JH(){if(Cx)return Vc;Cx=1;var e=WH(),t=Bh(),n=OA();function r(s){var o="https://react.dev/errors/"+s;if(1<arguments.length){o+="?args[]="+encodeURIComponent(arguments[1]);for(var c=2;c<arguments.length;c++)o+="&args[]="+encodeURIComponent(arguments[c])}return"Minified React error #"+s+"; visit "+o+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function a(s){return!(!s||s.nodeType!==1&&s.nodeType!==9&&s.nodeType!==11)}function i(s){var o=s,c=s;if(s.alternate)for(;o.return;)o=o.return;else{s=o;do o=s,(o.flags&4098)!==0&&(c=o.return),s=o.return;while(s)}return o.tag===3?c:null}function l(s){if(s.tag===13){var o=s.memoizedState;if(o===null&&(s=s.alternate,s!==null&&(o=s.memoizedState)),o!==null)return o.dehydrated}return null}function u(s){if(i(s)!==s)throw Error(r(188))}function d(s){var o=s.alternate;if(!o){if(o=i(s),o===null)throw Error(r(188));return o!==s?null:s}for(var c=s,f=o;;){var y=c.return;if(y===null)break;var x=y.alternate;if(x===null){if(f=y.return,f!==null){c=f;continue}break}if(y.child===x.child){for(x=y.child;x;){if(x===c)return u(y),s;if(x===f)return u(y),o;x=x.sibling}throw Error(r(188))}if(c.return!==f.return)c=y,f=x;else{for(var O=!1,H=y.child;H;){if(H===c){O=!0,c=y,f=x;break}if(H===f){O=!0,f=y,c=x;break}H=H.sibling}if(!O){for(H=x.child;H;){if(H===c){O=!0,c=x,f=y;break}if(H===f){O=!0,f=x,c=y;break}H=H.sibling}if(!O)throw Error(r(189))}}if(c.alternate!==f)throw Error(r(190))}if(c.tag!==3)throw Error(r(188));return c.stateNode.current===c?s:o}function h(s){var o=s.tag;if(o===5||o===26||o===27||o===6)return s;for(s=s.child;s!==null;){if(o=h(s),o!==null)return o;s=s.sibling}return null}var v=Object.assign,m=Symbol.for("react.element"),E=Symbol.for("react.transitional.element"),b=Symbol.for("react.portal"),T=Symbol.for("react.fragment"),A=Symbol.for("react.strict_mode"),S=Symbol.for("react.profiler"),w=Symbol.for("react.provider"),R=Symbol.for("react.consumer"),k=Symbol.for("react.context"),L=Symbol.for("react.forward_ref"),I=Symbol.for("react.suspense"),N=Symbol.for("react.suspense_list"),M=Symbol.for("react.memo"),D=Symbol.for("react.lazy"),B=Symbol.for("react.activity"),P=Symbol.for("react.memo_cache_sentinel"),U=Symbol.iterator;function F(s){return s===null||typeof s!="object"?null:(s=U&&s[U]||s["@@iterator"],typeof s=="function"?s:null)}var Q=Symbol.for("react.client.reference");function Y(s){if(s==null)return null;if(typeof s=="function")return s.$$typeof===Q?null:s.displayName||s.name||null;if(typeof s=="string")return s;switch(s){case T:return"Fragment";case S:return"Profiler";case A:return"StrictMode";case I:return"Suspense";case N:return"SuspenseList";case B:return"Activity"}if(typeof s=="object")switch(s.$$typeof){case b:return"Portal";case k:return(s.displayName||"Context")+".Provider";case R:return(s._context.displayName||"Context")+".Consumer";case L:var o=s.render;return s=s.displayName,s||(s=o.displayName||o.name||"",s=s!==""?"ForwardRef("+s+")":"ForwardRef"),s;case M:return o=s.displayName||null,o!==null?o:Y(s.type)||"Memo";case D:o=s._payload,s=s._init;try{return Y(s(o))}catch{}}return null}var te=Array.isArray,V=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,J=n.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,X={pending:!1,data:null,method:null,action:null},se=[],C=-1;function oe(s){return{current:s}}function ge(s){0>C||(s.current=se[C],se[C]=null,C--)}function j(s,o){C++,se[C]=s.current,s.current=o}var Ee=oe(null),Pe=oe(null),q=oe(null),ae=oe(null);function Te(s,o){switch(j(q,o),j(Pe,s),j(Ee,null),o.nodeType){case 9:case 11:s=(s=o.documentElement)&&(s=s.namespaceURI)?pE(s):0;break;default:if(s=o.tagName,o=o.namespaceURI)o=pE(o),s=gE(o,s);else switch(s){case"svg":s=1;break;case"math":s=2;break;default:s=0}}ge(Ee),j(Ee,s)}function qe(){ge(Ee),ge(Pe),ge(q)}function Ae(s){s.memoizedState!==null&&j(ae,s);var o=Ee.current,c=gE(o,s.type);o!==c&&(j(Pe,s),j(Ee,c))}function Oe(s){Pe.current===s&&(ge(Ee),ge(Pe)),ae.current===s&&(ge(ae),Lc._currentValue=X)}var et=Object.prototype.hasOwnProperty,ct=e.unstable_scheduleCallback,it=e.unstable_cancelCallback,Ht=e.unstable_shouldYield,_t=e.unstable_requestPaint,st=e.unstable_now,vn=e.unstable_getCurrentPriorityLevel,bt=e.unstable_ImmediatePriority,W=e.unstable_UserBlockingPriority,ce=e.unstable_NormalPriority,pe=e.unstable_LowPriority,Ne=e.unstable_IdlePriority,Me=e.log,je=e.unstable_setDisableYieldValue,ie=null,Se=null;function Ve(s){if(typeof Me=="function"&&je(s),Se&&typeof Se.setStrictMode=="function")try{Se.setStrictMode(ie,s)}catch{}}var $e=Math.clz32?Math.clz32:jn,pt=Math.log,tn=Math.LN2;function jn(s){return s>>>=0,s===0?32:31-(pt(s)/tn|0)|0}var hn=256,Wn=4194304;function $n(s){var o=s&42;if(o!==0)return o;switch(s&-s){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:case 262144:case 524288:case 1048576:case 2097152:return s&4194048;case 4194304:case 8388608:case 16777216:case 33554432:return s&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return s}}function ln(s,o,c){var f=s.pendingLanes;if(f===0)return 0;var y=0,x=s.suspendedLanes,O=s.pingedLanes;s=s.warmLanes;var H=f&134217727;return H!==0?(f=H&~x,f!==0?y=$n(f):(O&=H,O!==0?y=$n(O):c||(c=H&~s,c!==0&&(y=$n(c))))):(H=f&~x,H!==0?y=$n(H):O!==0?y=$n(O):c||(c=f&~s,c!==0&&(y=$n(c)))),y===0?0:o!==0&&o!==y&&(o&x)===0&&(x=y&-y,c=o&-o,x>=c||x===32&&(c&4194048)!==0)?o:y}function un(s,o){return(s.pendingLanes&~(s.suspendedLanes&~s.pingedLanes)&o)===0}function Zn(s,o){switch(s){case 1:case 2:case 4:case 8:case 64:return o+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 o+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 Kr(){var s=hn;return hn<<=1,(hn&4194048)===0&&(hn=256),s}function cl(){var s=Wn;return Wn<<=1,(Wn&62914560)===0&&(Wn=4194304),s}function vo(s){for(var o=[],c=0;31>c;c++)o.push(s);return o}function is(s,o){s.pendingLanes|=o,o!==268435456&&(s.suspendedLanes=0,s.pingedLanes=0,s.warmLanes=0)}function dl(s,o,c,f,y,x){var O=s.pendingLanes;s.pendingLanes=c,s.suspendedLanes=0,s.pingedLanes=0,s.warmLanes=0,s.expiredLanes&=c,s.entangledLanes&=c,s.errorRecoveryDisabledLanes&=c,s.shellSuspendCounter=0;var H=s.entanglements,K=s.expirationTimes,he=s.hiddenUpdates;for(c=O&~c;0<c;){var we=31-$e(c),Re=1<<we;H[we]=0,K[we]=-1;var ve=he[we];if(ve!==null)for(he[we]=null,we=0;we<ve.length;we++){var be=ve[we];be!==null&&(be.lane&=-536870913)}c&=~Re}f!==0&&dt(s,f,0),x!==0&&y===0&&s.tag!==0&&(s.suspendedLanes|=x&~(O&~o))}function dt(s,o,c){s.pendingLanes|=o,s.suspendedLanes&=~o;var f=31-$e(o);s.entangledLanes|=o,s.entanglements[f]=s.entanglements[f]|1073741824|c&4194090}function Rn(s,o){var c=s.entangledLanes|=o;for(s=s.entanglements;c;){var f=31-$e(c),y=1<<f;y&o|s[f]&o&&(s[f]|=o),c&=~y}}function On(s){switch(s){case 2:s=1;break;case 8:s=4;break;case 32:s=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:s=128;break;case 268435456:s=134217728;break;default:s=0}return s}function Jn(s){return s&=-s,2<s?8<s?(s&134217727)!==0?32:268435456:8:2}function Fa(){var s=J.p;return s!==0?s:(s=window.event,s===void 0?32:LE(s.type))}function kn(s,o){var c=J.p;try{return J.p=s,o()}finally{J.p=c}}var Nn=Math.random().toString(36).slice(2),_n="__reactFiber$"+Nn,nn="__reactProps$"+Nn,Hn="__reactContainer$"+Nn,ee="__reactEvents$"+Nn,$="__reactListeners$"+Nn,ne="__reactHandles$"+Nn,xe="__reactResources$"+Nn,ye="__reactMarker$"+Nn;function tt(s){delete s[_n],delete s[nn],delete s[ee],delete s[$],delete s[ne]}function Je(s){var o=s[_n];if(o)return o;for(var c=s.parentNode;c;){if(o=c[Hn]||c[_n]){if(c=o.alternate,o.child!==null||c!==null&&c.child!==null)for(s=EE(s);s!==null;){if(c=s[_n])return c;s=EE(s)}return o}s=c,c=s.parentNode}return null}function Tt(s){if(s=s[_n]||s[Hn]){var o=s.tag;if(o===5||o===6||o===13||o===26||o===27||o===3)return s}return null}function qt(s){var o=s.tag;if(o===5||o===26||o===27||o===6)return s.stateNode;throw Error(r(33))}function rn(s){var o=s[xe];return o||(o=s[xe]={hoistableStyles:new Map,hoistableScripts:new Map}),o}function at(s){s[ye]=!0}var Gt=new Set,Tn={};function ot(s,o){$t(s,o),$t(s+"Capture",o)}function $t(s,o){for(Tn[s]=o,s=0;s<o.length;s++)Gt.add(o[s])}var Dn=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]*$"),cn={},Ua={};function ma(s){return et.call(Ua,s)?!0:et.call(cn,s)?!1:Dn.test(s)?Ua[s]=!0:(cn[s]=!0,!1)}function Rr(s,o,c){if(ma(o))if(c===null)s.removeAttribute(o);else{switch(typeof c){case"undefined":case"function":case"symbol":s.removeAttribute(o);return;case"boolean":var f=o.toLowerCase().slice(0,5);if(f!=="data-"&&f!=="aria-"){s.removeAttribute(o);return}}s.setAttribute(o,""+c)}}function Ba(s,o,c){if(c===null)s.removeAttribute(o);else{switch(typeof c){case"undefined":case"function":case"symbol":case"boolean":s.removeAttribute(o);return}s.setAttribute(o,""+c)}}function hr(s,o,c,f){if(f===null)s.removeAttribute(c);else{switch(typeof f){case"undefined":case"function":case"symbol":case"boolean":s.removeAttribute(c);return}s.setAttributeNS(o,c,""+f)}}var xr,Xr;function jr(s){if(xr===void 0)try{throw Error()}catch(c){var o=c.stack.trim().match(/\n( *(at )?)/);xr=o&&o[1]||"",Xr=-1<c.stack.indexOf(`
|
|
82
|
-
at`)?" (<anonymous>)":-1<c.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
83
|
-
`+xr+s+Xr}var Wr=!1;function js(s,o){if(!s||Wr)return"";Wr=!0;var c=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var f={DetermineComponentFrameRoot:function(){try{if(o){var Re=function(){throw Error()};if(Object.defineProperty(Re.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(Re,[])}catch(be){var ve=be}Reflect.construct(s,[],Re)}else{try{Re.call()}catch(be){ve=be}s.call(Re.prototype)}}else{try{throw Error()}catch(be){ve=be}(Re=s())&&typeof Re.catch=="function"&&Re.catch(function(){})}}catch(be){if(be&&ve&&typeof be.stack=="string")return[be.stack,ve.stack]}return[null,null]}};f.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var y=Object.getOwnPropertyDescriptor(f.DetermineComponentFrameRoot,"name");y&&y.configurable&&Object.defineProperty(f.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var x=f.DetermineComponentFrameRoot(),O=x[0],H=x[1];if(O&&H){var K=O.split(`
|
|
84
|
-
`),he=H.split(`
|
|
85
|
-
`);for(y=f=0;f<K.length&&!K[f].includes("DetermineComponentFrameRoot");)f++;for(;y<he.length&&!he[y].includes("DetermineComponentFrameRoot");)y++;if(f===K.length||y===he.length)for(f=K.length-1,y=he.length-1;1<=f&&0<=y&&K[f]!==he[y];)y--;for(;1<=f&&0<=y;f--,y--)if(K[f]!==he[y]){if(f!==1||y!==1)do if(f--,y--,0>y||K[f]!==he[y]){var we=`
|
|
86
|
-
`+K[f].replace(" at new "," at ");return s.displayName&&we.includes("<anonymous>")&&(we=we.replace("<anonymous>",s.displayName)),we}while(1<=f&&0<=y);break}}}finally{Wr=!1,Error.prepareStackTrace=c}return(c=s?s.displayName||s.name:"")?jr(c):""}function d0(s){switch(s.tag){case 26:case 27:case 5:return jr(s.type);case 16:return jr("Lazy");case 13:return jr("Suspense");case 19:return jr("SuspenseList");case 0:case 15:return js(s.type,!1);case 11:return js(s.type.render,!1);case 1:return js(s.type,!0);case 31:return jr("Activity");default:return""}}function Zu(s){try{var o="";do o+=d0(s),s=s.return;while(s);return o}catch(c){return`
|
|
87
|
-
Error generating stack: `+c.message+`
|
|
88
|
-
`+c.stack}}function mr(s){switch(typeof s){case"bigint":case"boolean":case"number":case"string":case"undefined":return s;case"object":return s;default:return""}}function yo(s){var o=s.type;return(s=s.nodeName)&&s.toLowerCase()==="input"&&(o==="checkbox"||o==="radio")}function fl(s){var o=yo(s)?"checked":"value",c=Object.getOwnPropertyDescriptor(s.constructor.prototype,o),f=""+s[o];if(!s.hasOwnProperty(o)&&typeof c<"u"&&typeof c.get=="function"&&typeof c.set=="function"){var y=c.get,x=c.set;return Object.defineProperty(s,o,{configurable:!0,get:function(){return y.call(this)},set:function(O){f=""+O,x.call(this,O)}}),Object.defineProperty(s,o,{enumerable:c.enumerable}),{getValue:function(){return f},setValue:function(O){f=""+O},stopTracking:function(){s._valueTracker=null,delete s[o]}}}}function bo(s){s._valueTracker||(s._valueTracker=fl(s))}function Qu(s){if(!s)return!1;var o=s._valueTracker;if(!o)return!0;var c=o.getValue(),f="";return s&&(f=yo(s)?s.checked?"true":"false":s.value),s=f,s!==c?(o.setValue(s),!0):!1}function os(s){if(s=s||(typeof document<"u"?document:void 0),typeof s>"u")return null;try{return s.activeElement||s.body}catch{return s.body}}var FN=/[\n"\\]/g;function pa(s){return s.replace(FN,function(o){return"\\"+o.charCodeAt(0).toString(16)+" "})}function J1(s,o,c,f,y,x,O,H){s.name="",O!=null&&typeof O!="function"&&typeof O!="symbol"&&typeof O!="boolean"?s.type=O:s.removeAttribute("type"),o!=null?O==="number"?(o===0&&s.value===""||s.value!=o)&&(s.value=""+mr(o)):s.value!==""+mr(o)&&(s.value=""+mr(o)):O!=="submit"&&O!=="reset"||s.removeAttribute("value"),o!=null?em(s,O,mr(o)):c!=null?em(s,O,mr(c)):f!=null&&s.removeAttribute("value"),y==null&&x!=null&&(s.defaultChecked=!!x),y!=null&&(s.checked=y&&typeof y!="function"&&typeof y!="symbol"),H!=null&&typeof H!="function"&&typeof H!="symbol"&&typeof H!="boolean"?s.name=""+mr(H):s.removeAttribute("name")}function fy(s,o,c,f,y,x,O,H){if(x!=null&&typeof x!="function"&&typeof x!="symbol"&&typeof x!="boolean"&&(s.type=x),o!=null||c!=null){if(!(x!=="submit"&&x!=="reset"||o!=null))return;c=c!=null?""+mr(c):"",o=o!=null?""+mr(o):c,H||o===s.value||(s.value=o),s.defaultValue=o}f=f??y,f=typeof f!="function"&&typeof f!="symbol"&&!!f,s.checked=H?s.checked:!!f,s.defaultChecked=!!f,O!=null&&typeof O!="function"&&typeof O!="symbol"&&typeof O!="boolean"&&(s.name=O)}function em(s,o,c){o==="number"&&os(s.ownerDocument)===s||s.defaultValue===""+c||(s.defaultValue=""+c)}function hl(s,o,c,f){if(s=s.options,o){o={};for(var y=0;y<c.length;y++)o["$"+c[y]]=!0;for(c=0;c<s.length;c++)y=o.hasOwnProperty("$"+s[c].value),s[c].selected!==y&&(s[c].selected=y),y&&f&&(s[c].defaultSelected=!0)}else{for(c=""+mr(c),o=null,y=0;y<s.length;y++){if(s[y].value===c){s[y].selected=!0,f&&(s[y].defaultSelected=!0);return}o!==null||s[y].disabled||(o=s[y])}o!==null&&(o.selected=!0)}}function hy(s,o,c){if(o!=null&&(o=""+mr(o),o!==s.value&&(s.value=o),c==null)){s.defaultValue!==o&&(s.defaultValue=o);return}s.defaultValue=c!=null?""+mr(c):""}function my(s,o,c,f){if(o==null){if(f!=null){if(c!=null)throw Error(r(92));if(te(f)){if(1<f.length)throw Error(r(93));f=f[0]}c=f}c==null&&(c=""),o=c}c=mr(o),s.defaultValue=c,f=s.textContent,f===c&&f!==""&&f!==null&&(s.value=f)}function ml(s,o){if(o){var c=s.firstChild;if(c&&c===s.lastChild&&c.nodeType===3){c.nodeValue=o;return}}s.textContent=o}var UN=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 py(s,o,c){var f=o.indexOf("--")===0;c==null||typeof c=="boolean"||c===""?f?s.setProperty(o,""):o==="float"?s.cssFloat="":s[o]="":f?s.setProperty(o,c):typeof c!="number"||c===0||UN.has(o)?o==="float"?s.cssFloat=c:s[o]=(""+c).trim():s[o]=c+"px"}function gy(s,o,c){if(o!=null&&typeof o!="object")throw Error(r(62));if(s=s.style,c!=null){for(var f in c)!c.hasOwnProperty(f)||o!=null&&o.hasOwnProperty(f)||(f.indexOf("--")===0?s.setProperty(f,""):f==="float"?s.cssFloat="":s[f]="");for(var y in o)f=o[y],o.hasOwnProperty(y)&&c[y]!==f&&py(s,y,f)}else for(var x in o)o.hasOwnProperty(x)&&py(s,x,o[x])}function tm(s){if(s.indexOf("-")===-1)return!1;switch(s){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 BN=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"]]),VN=/^[\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 f0(s){return VN.test(""+s)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":s}var nm=null;function rm(s){return s=s.target||s.srcElement||window,s.correspondingUseElement&&(s=s.correspondingUseElement),s.nodeType===3?s.parentNode:s}var pl=null,gl=null;function vy(s){var o=Tt(s);if(o&&(s=o.stateNode)){var c=s[nn]||null;e:switch(s=o.stateNode,o.type){case"input":if(J1(s,c.value,c.defaultValue,c.defaultValue,c.checked,c.defaultChecked,c.type,c.name),o=c.name,c.type==="radio"&&o!=null){for(c=s;c.parentNode;)c=c.parentNode;for(c=c.querySelectorAll('input[name="'+pa(""+o)+'"][type="radio"]'),o=0;o<c.length;o++){var f=c[o];if(f!==s&&f.form===s.form){var y=f[nn]||null;if(!y)throw Error(r(90));J1(f,y.value,y.defaultValue,y.defaultValue,y.checked,y.defaultChecked,y.type,y.name)}}for(o=0;o<c.length;o++)f=c[o],f.form===s.form&&Qu(f)}break e;case"textarea":hy(s,c.value,c.defaultValue);break e;case"select":o=c.value,o!=null&&hl(s,!!c.multiple,o,!1)}}}var am=!1;function yy(s,o,c){if(am)return s(o,c);am=!0;try{var f=s(o);return f}finally{if(am=!1,(pl!==null||gl!==null)&&(X0(),pl&&(o=pl,s=gl,gl=pl=null,vy(o),s)))for(o=0;o<s.length;o++)vy(s[o])}}function Yu(s,o){var c=s.stateNode;if(c===null)return null;var f=c[nn]||null;if(f===null)return null;c=f[o];e:switch(o){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(f=!f.disabled)||(s=s.type,f=!(s==="button"||s==="input"||s==="select"||s==="textarea")),s=!f;break e;default:s=!1}if(s)return null;if(c&&typeof c!="function")throw Error(r(231,o,typeof c));return c}var Hs=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),sm=!1;if(Hs)try{var Gu={};Object.defineProperty(Gu,"passive",{get:function(){sm=!0}}),window.addEventListener("test",Gu,Gu),window.removeEventListener("test",Gu,Gu)}catch{sm=!1}var Ti=null,im=null,h0=null;function by(){if(h0)return h0;var s,o=im,c=o.length,f,y="value"in Ti?Ti.value:Ti.textContent,x=y.length;for(s=0;s<c&&o[s]===y[s];s++);var O=c-s;for(f=1;f<=O&&o[c-f]===y[x-f];f++);return h0=y.slice(s,1<f?1-f:void 0)}function m0(s){var o=s.keyCode;return"charCode"in s?(s=s.charCode,s===0&&o===13&&(s=13)):s=o,s===10&&(s=13),32<=s||s===13?s:0}function p0(){return!0}function Ey(){return!1}function Hr(s){function o(c,f,y,x,O){this._reactName=c,this._targetInst=y,this.type=f,this.nativeEvent=x,this.target=O,this.currentTarget=null;for(var H in s)s.hasOwnProperty(H)&&(c=s[H],this[H]=c?c(x):x[H]);return this.isDefaultPrevented=(x.defaultPrevented!=null?x.defaultPrevented:x.returnValue===!1)?p0:Ey,this.isPropagationStopped=Ey,this}return v(o.prototype,{preventDefault:function(){this.defaultPrevented=!0;var c=this.nativeEvent;c&&(c.preventDefault?c.preventDefault():typeof c.returnValue!="unknown"&&(c.returnValue=!1),this.isDefaultPrevented=p0)},stopPropagation:function(){var c=this.nativeEvent;c&&(c.stopPropagation?c.stopPropagation():typeof c.cancelBubble!="unknown"&&(c.cancelBubble=!0),this.isPropagationStopped=p0)},persist:function(){},isPersistent:p0}),o}var Eo={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(s){return s.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},g0=Hr(Eo),Ku=v({},Eo,{view:0,detail:0}),zN=Hr(Ku),om,lm,Xu,v0=v({},Ku,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:cm,button:0,buttons:0,relatedTarget:function(s){return s.relatedTarget===void 0?s.fromElement===s.srcElement?s.toElement:s.fromElement:s.relatedTarget},movementX:function(s){return"movementX"in s?s.movementX:(s!==Xu&&(Xu&&s.type==="mousemove"?(om=s.screenX-Xu.screenX,lm=s.screenY-Xu.screenY):lm=om=0,Xu=s),om)},movementY:function(s){return"movementY"in s?s.movementY:lm}}),xy=Hr(v0),qN=v({},v0,{dataTransfer:0}),$N=Hr(qN),ZN=v({},Ku,{relatedTarget:0}),um=Hr(ZN),QN=v({},Eo,{animationName:0,elapsedTime:0,pseudoElement:0}),YN=Hr(QN),GN=v({},Eo,{clipboardData:function(s){return"clipboardData"in s?s.clipboardData:window.clipboardData}}),KN=Hr(GN),XN=v({},Eo,{data:0}),_y=Hr(XN),WN={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},JN={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"},eP={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function tP(s){var o=this.nativeEvent;return o.getModifierState?o.getModifierState(s):(s=eP[s])?!!o[s]:!1}function cm(){return tP}var nP=v({},Ku,{key:function(s){if(s.key){var o=WN[s.key]||s.key;if(o!=="Unidentified")return o}return s.type==="keypress"?(s=m0(s),s===13?"Enter":String.fromCharCode(s)):s.type==="keydown"||s.type==="keyup"?JN[s.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:cm,charCode:function(s){return s.type==="keypress"?m0(s):0},keyCode:function(s){return s.type==="keydown"||s.type==="keyup"?s.keyCode:0},which:function(s){return s.type==="keypress"?m0(s):s.type==="keydown"||s.type==="keyup"?s.keyCode:0}}),rP=Hr(nP),aP=v({},v0,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Ty=Hr(aP),sP=v({},Ku,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:cm}),iP=Hr(sP),oP=v({},Eo,{propertyName:0,elapsedTime:0,pseudoElement:0}),lP=Hr(oP),uP=v({},v0,{deltaX:function(s){return"deltaX"in s?s.deltaX:"wheelDeltaX"in s?-s.wheelDeltaX:0},deltaY:function(s){return"deltaY"in s?s.deltaY:"wheelDeltaY"in s?-s.wheelDeltaY:"wheelDelta"in s?-s.wheelDelta:0},deltaZ:0,deltaMode:0}),cP=Hr(uP),dP=v({},Eo,{newState:0,oldState:0}),fP=Hr(dP),hP=[9,13,27,32],dm=Hs&&"CompositionEvent"in window,Wu=null;Hs&&"documentMode"in document&&(Wu=document.documentMode);var mP=Hs&&"TextEvent"in window&&!Wu,Ay=Hs&&(!dm||Wu&&8<Wu&&11>=Wu),Sy=" ",wy=!1;function Cy(s,o){switch(s){case"keyup":return hP.indexOf(o.keyCode)!==-1;case"keydown":return o.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Ry(s){return s=s.detail,typeof s=="object"&&"data"in s?s.data:null}var vl=!1;function pP(s,o){switch(s){case"compositionend":return Ry(o);case"keypress":return o.which!==32?null:(wy=!0,Sy);case"textInput":return s=o.data,s===Sy&&wy?null:s;default:return null}}function gP(s,o){if(vl)return s==="compositionend"||!dm&&Cy(s,o)?(s=by(),h0=im=Ti=null,vl=!1,s):null;switch(s){case"paste":return null;case"keypress":if(!(o.ctrlKey||o.altKey||o.metaKey)||o.ctrlKey&&o.altKey){if(o.char&&1<o.char.length)return o.char;if(o.which)return String.fromCharCode(o.which)}return null;case"compositionend":return Ay&&o.locale!=="ko"?null:o.data;default:return null}}var vP={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 Oy(s){var o=s&&s.nodeName&&s.nodeName.toLowerCase();return o==="input"?!!vP[s.type]:o==="textarea"}function Ny(s,o,c,f){pl?gl?gl.push(f):gl=[f]:pl=f,o=rf(o,"onChange"),0<o.length&&(c=new g0("onChange","change",null,c,f),s.push({event:c,listeners:o}))}var Ju=null,ec=null;function yP(s){cE(s,0)}function y0(s){var o=qt(s);if(Qu(o))return s}function Py(s,o){if(s==="change")return o}var ky=!1;if(Hs){var fm;if(Hs){var hm="oninput"in document;if(!hm){var Dy=document.createElement("div");Dy.setAttribute("oninput","return;"),hm=typeof Dy.oninput=="function"}fm=hm}else fm=!1;ky=fm&&(!document.documentMode||9<document.documentMode)}function My(){Ju&&(Ju.detachEvent("onpropertychange",Ly),ec=Ju=null)}function Ly(s){if(s.propertyName==="value"&&y0(ec)){var o=[];Ny(o,ec,s,rm(s)),yy(yP,o)}}function bP(s,o,c){s==="focusin"?(My(),Ju=o,ec=c,Ju.attachEvent("onpropertychange",Ly)):s==="focusout"&&My()}function EP(s){if(s==="selectionchange"||s==="keyup"||s==="keydown")return y0(ec)}function xP(s,o){if(s==="click")return y0(o)}function _P(s,o){if(s==="input"||s==="change")return y0(o)}function TP(s,o){return s===o&&(s!==0||1/s===1/o)||s!==s&&o!==o}var Jr=typeof Object.is=="function"?Object.is:TP;function tc(s,o){if(Jr(s,o))return!0;if(typeof s!="object"||s===null||typeof o!="object"||o===null)return!1;var c=Object.keys(s),f=Object.keys(o);if(c.length!==f.length)return!1;for(f=0;f<c.length;f++){var y=c[f];if(!et.call(o,y)||!Jr(s[y],o[y]))return!1}return!0}function Iy(s){for(;s&&s.firstChild;)s=s.firstChild;return s}function jy(s,o){var c=Iy(s);s=0;for(var f;c;){if(c.nodeType===3){if(f=s+c.textContent.length,s<=o&&f>=o)return{node:c,offset:o-s};s=f}e:{for(;c;){if(c.nextSibling){c=c.nextSibling;break e}c=c.parentNode}c=void 0}c=Iy(c)}}function Hy(s,o){return s&&o?s===o?!0:s&&s.nodeType===3?!1:o&&o.nodeType===3?Hy(s,o.parentNode):"contains"in s?s.contains(o):s.compareDocumentPosition?!!(s.compareDocumentPosition(o)&16):!1:!1}function Fy(s){s=s!=null&&s.ownerDocument!=null&&s.ownerDocument.defaultView!=null?s.ownerDocument.defaultView:window;for(var o=os(s.document);o instanceof s.HTMLIFrameElement;){try{var c=typeof o.contentWindow.location.href=="string"}catch{c=!1}if(c)s=o.contentWindow;else break;o=os(s.document)}return o}function mm(s){var o=s&&s.nodeName&&s.nodeName.toLowerCase();return o&&(o==="input"&&(s.type==="text"||s.type==="search"||s.type==="tel"||s.type==="url"||s.type==="password")||o==="textarea"||s.contentEditable==="true")}var AP=Hs&&"documentMode"in document&&11>=document.documentMode,yl=null,pm=null,nc=null,gm=!1;function Uy(s,o,c){var f=c.window===c?c.document:c.nodeType===9?c:c.ownerDocument;gm||yl==null||yl!==os(f)||(f=yl,"selectionStart"in f&&mm(f)?f={start:f.selectionStart,end:f.selectionEnd}:(f=(f.ownerDocument&&f.ownerDocument.defaultView||window).getSelection(),f={anchorNode:f.anchorNode,anchorOffset:f.anchorOffset,focusNode:f.focusNode,focusOffset:f.focusOffset}),nc&&tc(nc,f)||(nc=f,f=rf(pm,"onSelect"),0<f.length&&(o=new g0("onSelect","select",null,o,c),s.push({event:o,listeners:f}),o.target=yl)))}function xo(s,o){var c={};return c[s.toLowerCase()]=o.toLowerCase(),c["Webkit"+s]="webkit"+o,c["Moz"+s]="moz"+o,c}var bl={animationend:xo("Animation","AnimationEnd"),animationiteration:xo("Animation","AnimationIteration"),animationstart:xo("Animation","AnimationStart"),transitionrun:xo("Transition","TransitionRun"),transitionstart:xo("Transition","TransitionStart"),transitioncancel:xo("Transition","TransitionCancel"),transitionend:xo("Transition","TransitionEnd")},vm={},By={};Hs&&(By=document.createElement("div").style,"AnimationEvent"in window||(delete bl.animationend.animation,delete bl.animationiteration.animation,delete bl.animationstart.animation),"TransitionEvent"in window||delete bl.transitionend.transition);function _o(s){if(vm[s])return vm[s];if(!bl[s])return s;var o=bl[s],c;for(c in o)if(o.hasOwnProperty(c)&&c in By)return vm[s]=o[c];return s}var Vy=_o("animationend"),zy=_o("animationiteration"),qy=_o("animationstart"),SP=_o("transitionrun"),wP=_o("transitionstart"),CP=_o("transitioncancel"),$y=_o("transitionend"),Zy=new Map,ym="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(" ");ym.push("scrollEnd");function Va(s,o){Zy.set(s,o),ot(o,[s])}var Qy=new WeakMap;function ga(s,o){if(typeof s=="object"&&s!==null){var c=Qy.get(s);return c!==void 0?c:(o={value:s,source:o,stack:Zu(o)},Qy.set(s,o),o)}return{value:s,source:o,stack:Zu(o)}}var va=[],El=0,bm=0;function b0(){for(var s=El,o=bm=El=0;o<s;){var c=va[o];va[o++]=null;var f=va[o];va[o++]=null;var y=va[o];va[o++]=null;var x=va[o];if(va[o++]=null,f!==null&&y!==null){var O=f.pending;O===null?y.next=y:(y.next=O.next,O.next=y),f.pending=y}x!==0&&Yy(c,y,x)}}function E0(s,o,c,f){va[El++]=s,va[El++]=o,va[El++]=c,va[El++]=f,bm|=f,s.lanes|=f,s=s.alternate,s!==null&&(s.lanes|=f)}function Em(s,o,c,f){return E0(s,o,c,f),x0(s)}function xl(s,o){return E0(s,null,null,o),x0(s)}function Yy(s,o,c){s.lanes|=c;var f=s.alternate;f!==null&&(f.lanes|=c);for(var y=!1,x=s.return;x!==null;)x.childLanes|=c,f=x.alternate,f!==null&&(f.childLanes|=c),x.tag===22&&(s=x.stateNode,s===null||s._visibility&1||(y=!0)),s=x,x=x.return;return s.tag===3?(x=s.stateNode,y&&o!==null&&(y=31-$e(c),s=x.hiddenUpdates,f=s[y],f===null?s[y]=[o]:f.push(o),o.lane=c|536870912),x):null}function x0(s){if(50<Cc)throw Cc=0,wp=null,Error(r(185));for(var o=s.return;o!==null;)s=o,o=s.return;return s.tag===3?s.stateNode:null}var _l={};function RP(s,o,c,f){this.tag=s,this.key=c,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=o,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=f,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function ea(s,o,c,f){return new RP(s,o,c,f)}function xm(s){return s=s.prototype,!(!s||!s.isReactComponent)}function Fs(s,o){var c=s.alternate;return c===null?(c=ea(s.tag,o,s.key,s.mode),c.elementType=s.elementType,c.type=s.type,c.stateNode=s.stateNode,c.alternate=s,s.alternate=c):(c.pendingProps=o,c.type=s.type,c.flags=0,c.subtreeFlags=0,c.deletions=null),c.flags=s.flags&65011712,c.childLanes=s.childLanes,c.lanes=s.lanes,c.child=s.child,c.memoizedProps=s.memoizedProps,c.memoizedState=s.memoizedState,c.updateQueue=s.updateQueue,o=s.dependencies,c.dependencies=o===null?null:{lanes:o.lanes,firstContext:o.firstContext},c.sibling=s.sibling,c.index=s.index,c.ref=s.ref,c.refCleanup=s.refCleanup,c}function Gy(s,o){s.flags&=65011714;var c=s.alternate;return c===null?(s.childLanes=0,s.lanes=o,s.child=null,s.subtreeFlags=0,s.memoizedProps=null,s.memoizedState=null,s.updateQueue=null,s.dependencies=null,s.stateNode=null):(s.childLanes=c.childLanes,s.lanes=c.lanes,s.child=c.child,s.subtreeFlags=0,s.deletions=null,s.memoizedProps=c.memoizedProps,s.memoizedState=c.memoizedState,s.updateQueue=c.updateQueue,s.type=c.type,o=c.dependencies,s.dependencies=o===null?null:{lanes:o.lanes,firstContext:o.firstContext}),s}function _0(s,o,c,f,y,x){var O=0;if(f=s,typeof s=="function")xm(s)&&(O=1);else if(typeof s=="string")O=Nk(s,c,Ee.current)?26:s==="html"||s==="head"||s==="body"?27:5;else e:switch(s){case B:return s=ea(31,c,o,y),s.elementType=B,s.lanes=x,s;case T:return To(c.children,y,x,o);case A:O=8,y|=24;break;case S:return s=ea(12,c,o,y|2),s.elementType=S,s.lanes=x,s;case I:return s=ea(13,c,o,y),s.elementType=I,s.lanes=x,s;case N:return s=ea(19,c,o,y),s.elementType=N,s.lanes=x,s;default:if(typeof s=="object"&&s!==null)switch(s.$$typeof){case w:case k:O=10;break e;case R:O=9;break e;case L:O=11;break e;case M:O=14;break e;case D:O=16,f=null;break e}O=29,c=Error(r(130,s===null?"null":typeof s,"")),f=null}return o=ea(O,c,o,y),o.elementType=s,o.type=f,o.lanes=x,o}function To(s,o,c,f){return s=ea(7,s,f,o),s.lanes=c,s}function _m(s,o,c){return s=ea(6,s,null,o),s.lanes=c,s}function Tm(s,o,c){return o=ea(4,s.children!==null?s.children:[],s.key,o),o.lanes=c,o.stateNode={containerInfo:s.containerInfo,pendingChildren:null,implementation:s.implementation},o}var Tl=[],Al=0,T0=null,A0=0,ya=[],ba=0,Ao=null,Us=1,Bs="";function So(s,o){Tl[Al++]=A0,Tl[Al++]=T0,T0=s,A0=o}function Ky(s,o,c){ya[ba++]=Us,ya[ba++]=Bs,ya[ba++]=Ao,Ao=s;var f=Us;s=Bs;var y=32-$e(f)-1;f&=~(1<<y),c+=1;var x=32-$e(o)+y;if(30<x){var O=y-y%5;x=(f&(1<<O)-1).toString(32),f>>=O,y-=O,Us=1<<32-$e(o)+y|c<<y|f,Bs=x+s}else Us=1<<x|c<<y|f,Bs=s}function Am(s){s.return!==null&&(So(s,1),Ky(s,1,0))}function Sm(s){for(;s===T0;)T0=Tl[--Al],Tl[Al]=null,A0=Tl[--Al],Tl[Al]=null;for(;s===Ao;)Ao=ya[--ba],ya[ba]=null,Bs=ya[--ba],ya[ba]=null,Us=ya[--ba],ya[ba]=null}var Or=null,Mn=null,Zt=!1,wo=null,ls=!1,wm=Error(r(519));function Co(s){var o=Error(r(418,""));throw sc(ga(o,s)),wm}function Xy(s){var o=s.stateNode,c=s.type,f=s.memoizedProps;switch(o[_n]=s,o[nn]=f,c){case"dialog":kt("cancel",o),kt("close",o);break;case"iframe":case"object":case"embed":kt("load",o);break;case"video":case"audio":for(c=0;c<Oc.length;c++)kt(Oc[c],o);break;case"source":kt("error",o);break;case"img":case"image":case"link":kt("error",o),kt("load",o);break;case"details":kt("toggle",o);break;case"input":kt("invalid",o),fy(o,f.value,f.defaultValue,f.checked,f.defaultChecked,f.type,f.name,!0),bo(o);break;case"select":kt("invalid",o);break;case"textarea":kt("invalid",o),my(o,f.value,f.defaultValue,f.children),bo(o)}c=f.children,typeof c!="string"&&typeof c!="number"&&typeof c!="bigint"||o.textContent===""+c||f.suppressHydrationWarning===!0||mE(o.textContent,c)?(f.popover!=null&&(kt("beforetoggle",o),kt("toggle",o)),f.onScroll!=null&&kt("scroll",o),f.onScrollEnd!=null&&kt("scrollend",o),f.onClick!=null&&(o.onclick=af),o=!0):o=!1,o||Co(s)}function Wy(s){for(Or=s.return;Or;)switch(Or.tag){case 5:case 13:ls=!1;return;case 27:case 3:ls=!0;return;default:Or=Or.return}}function rc(s){if(s!==Or)return!1;if(!Zt)return Wy(s),Zt=!0,!1;var o=s.tag,c;if((c=o!==3&&o!==27)&&((c=o===5)&&(c=s.type,c=!(c!=="form"&&c!=="button")||Vp(s.type,s.memoizedProps)),c=!c),c&&Mn&&Co(s),Wy(s),o===13){if(s=s.memoizedState,s=s!==null?s.dehydrated:null,!s)throw Error(r(317));e:{for(s=s.nextSibling,o=0;s;){if(s.nodeType===8)if(c=s.data,c==="/$"){if(o===0){Mn=qa(s.nextSibling);break e}o--}else c!=="$"&&c!=="$!"&&c!=="$?"||o++;s=s.nextSibling}Mn=null}}else o===27?(o=Mn,Fi(s.type)?(s=Zp,Zp=null,Mn=s):Mn=o):Mn=Or?qa(s.stateNode.nextSibling):null;return!0}function ac(){Mn=Or=null,Zt=!1}function Jy(){var s=wo;return s!==null&&(Br===null?Br=s:Br.push.apply(Br,s),wo=null),s}function sc(s){wo===null?wo=[s]:wo.push(s)}var Cm=oe(null),Ro=null,Vs=null;function Ai(s,o,c){j(Cm,o._currentValue),o._currentValue=c}function zs(s){s._currentValue=Cm.current,ge(Cm)}function Rm(s,o,c){for(;s!==null;){var f=s.alternate;if((s.childLanes&o)!==o?(s.childLanes|=o,f!==null&&(f.childLanes|=o)):f!==null&&(f.childLanes&o)!==o&&(f.childLanes|=o),s===c)break;s=s.return}}function Om(s,o,c,f){var y=s.child;for(y!==null&&(y.return=s);y!==null;){var x=y.dependencies;if(x!==null){var O=y.child;x=x.firstContext;e:for(;x!==null;){var H=x;x=y;for(var K=0;K<o.length;K++)if(H.context===o[K]){x.lanes|=c,H=x.alternate,H!==null&&(H.lanes|=c),Rm(x.return,c,s),f||(O=null);break e}x=H.next}}else if(y.tag===18){if(O=y.return,O===null)throw Error(r(341));O.lanes|=c,x=O.alternate,x!==null&&(x.lanes|=c),Rm(O,c,s),O=null}else O=y.child;if(O!==null)O.return=y;else for(O=y;O!==null;){if(O===s){O=null;break}if(y=O.sibling,y!==null){y.return=O.return,O=y;break}O=O.return}y=O}}function ic(s,o,c,f){s=null;for(var y=o,x=!1;y!==null;){if(!x){if((y.flags&524288)!==0)x=!0;else if((y.flags&262144)!==0)break}if(y.tag===10){var O=y.alternate;if(O===null)throw Error(r(387));if(O=O.memoizedProps,O!==null){var H=y.type;Jr(y.pendingProps.value,O.value)||(s!==null?s.push(H):s=[H])}}else if(y===ae.current){if(O=y.alternate,O===null)throw Error(r(387));O.memoizedState.memoizedState!==y.memoizedState.memoizedState&&(s!==null?s.push(Lc):s=[Lc])}y=y.return}s!==null&&Om(o,s,c,f),o.flags|=262144}function S0(s){for(s=s.firstContext;s!==null;){if(!Jr(s.context._currentValue,s.memoizedValue))return!0;s=s.next}return!1}function Oo(s){Ro=s,Vs=null,s=s.dependencies,s!==null&&(s.firstContext=null)}function _r(s){return eb(Ro,s)}function w0(s,o){return Ro===null&&Oo(s),eb(s,o)}function eb(s,o){var c=o._currentValue;if(o={context:o,memoizedValue:c,next:null},Vs===null){if(s===null)throw Error(r(308));Vs=o,s.dependencies={lanes:0,firstContext:o},s.flags|=524288}else Vs=Vs.next=o;return c}var OP=typeof AbortController<"u"?AbortController:function(){var s=[],o=this.signal={aborted:!1,addEventListener:function(c,f){s.push(f)}};this.abort=function(){o.aborted=!0,s.forEach(function(c){return c()})}},NP=e.unstable_scheduleCallback,PP=e.unstable_NormalPriority,er={$$typeof:k,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Nm(){return{controller:new OP,data:new Map,refCount:0}}function oc(s){s.refCount--,s.refCount===0&&NP(PP,function(){s.controller.abort()})}var lc=null,Pm=0,Sl=0,wl=null;function kP(s,o){if(lc===null){var c=lc=[];Pm=0,Sl=Dp(),wl={status:"pending",value:void 0,then:function(f){c.push(f)}}}return Pm++,o.then(tb,tb),o}function tb(){if(--Pm===0&&lc!==null){wl!==null&&(wl.status="fulfilled");var s=lc;lc=null,Sl=0,wl=null;for(var o=0;o<s.length;o++)(0,s[o])()}}function DP(s,o){var c=[],f={status:"pending",value:null,reason:null,then:function(y){c.push(y)}};return s.then(function(){f.status="fulfilled",f.value=o;for(var y=0;y<c.length;y++)(0,c[y])(o)},function(y){for(f.status="rejected",f.reason=y,y=0;y<c.length;y++)(0,c[y])(void 0)}),f}var nb=V.S;V.S=function(s,o){typeof o=="object"&&o!==null&&typeof o.then=="function"&&kP(s,o),nb!==null&&nb(s,o)};var No=oe(null);function km(){var s=No.current;return s!==null?s:mn.pooledCache}function C0(s,o){o===null?j(No,No.current):j(No,o.pool)}function rb(){var s=km();return s===null?null:{parent:er._currentValue,pool:s}}var uc=Error(r(460)),ab=Error(r(474)),R0=Error(r(542)),Dm={then:function(){}};function sb(s){return s=s.status,s==="fulfilled"||s==="rejected"}function O0(){}function ib(s,o,c){switch(c=s[c],c===void 0?s.push(o):c!==o&&(o.then(O0,O0),o=c),o.status){case"fulfilled":return o.value;case"rejected":throw s=o.reason,lb(s),s;default:if(typeof o.status=="string")o.then(O0,O0);else{if(s=mn,s!==null&&100<s.shellSuspendCounter)throw Error(r(482));s=o,s.status="pending",s.then(function(f){if(o.status==="pending"){var y=o;y.status="fulfilled",y.value=f}},function(f){if(o.status==="pending"){var y=o;y.status="rejected",y.reason=f}})}switch(o.status){case"fulfilled":return o.value;case"rejected":throw s=o.reason,lb(s),s}throw cc=o,uc}}var cc=null;function ob(){if(cc===null)throw Error(r(459));var s=cc;return cc=null,s}function lb(s){if(s===uc||s===R0)throw Error(r(483))}var Si=!1;function Mm(s){s.updateQueue={baseState:s.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Lm(s,o){s=s.updateQueue,o.updateQueue===s&&(o.updateQueue={baseState:s.baseState,firstBaseUpdate:s.firstBaseUpdate,lastBaseUpdate:s.lastBaseUpdate,shared:s.shared,callbacks:null})}function wi(s){return{lane:s,tag:0,payload:null,callback:null,next:null}}function Ci(s,o,c){var f=s.updateQueue;if(f===null)return null;if(f=f.shared,(Kt&2)!==0){var y=f.pending;return y===null?o.next=o:(o.next=y.next,y.next=o),f.pending=o,o=x0(s),Yy(s,null,c),o}return E0(s,f,o,c),x0(s)}function dc(s,o,c){if(o=o.updateQueue,o!==null&&(o=o.shared,(c&4194048)!==0)){var f=o.lanes;f&=s.pendingLanes,c|=f,o.lanes=c,Rn(s,c)}}function Im(s,o){var c=s.updateQueue,f=s.alternate;if(f!==null&&(f=f.updateQueue,c===f)){var y=null,x=null;if(c=c.firstBaseUpdate,c!==null){do{var O={lane:c.lane,tag:c.tag,payload:c.payload,callback:null,next:null};x===null?y=x=O:x=x.next=O,c=c.next}while(c!==null);x===null?y=x=o:x=x.next=o}else y=x=o;c={baseState:f.baseState,firstBaseUpdate:y,lastBaseUpdate:x,shared:f.shared,callbacks:f.callbacks},s.updateQueue=c;return}s=c.lastBaseUpdate,s===null?c.firstBaseUpdate=o:s.next=o,c.lastBaseUpdate=o}var jm=!1;function fc(){if(jm){var s=wl;if(s!==null)throw s}}function hc(s,o,c,f){jm=!1;var y=s.updateQueue;Si=!1;var x=y.firstBaseUpdate,O=y.lastBaseUpdate,H=y.shared.pending;if(H!==null){y.shared.pending=null;var K=H,he=K.next;K.next=null,O===null?x=he:O.next=he,O=K;var we=s.alternate;we!==null&&(we=we.updateQueue,H=we.lastBaseUpdate,H!==O&&(H===null?we.firstBaseUpdate=he:H.next=he,we.lastBaseUpdate=K))}if(x!==null){var Re=y.baseState;O=0,we=he=K=null,H=x;do{var ve=H.lane&-536870913,be=ve!==H.lane;if(be?(Ft&ve)===ve:(f&ve)===ve){ve!==0&&ve===Sl&&(jm=!0),we!==null&&(we=we.next={lane:0,tag:H.tag,payload:H.payload,callback:null,next:null});e:{var mt=s,ft=H;ve=o;var on=c;switch(ft.tag){case 1:if(mt=ft.payload,typeof mt=="function"){Re=mt.call(on,Re,ve);break e}Re=mt;break e;case 3:mt.flags=mt.flags&-65537|128;case 0:if(mt=ft.payload,ve=typeof mt=="function"?mt.call(on,Re,ve):mt,ve==null)break e;Re=v({},Re,ve);break e;case 2:Si=!0}}ve=H.callback,ve!==null&&(s.flags|=64,be&&(s.flags|=8192),be=y.callbacks,be===null?y.callbacks=[ve]:be.push(ve))}else be={lane:ve,tag:H.tag,payload:H.payload,callback:H.callback,next:null},we===null?(he=we=be,K=Re):we=we.next=be,O|=ve;if(H=H.next,H===null){if(H=y.shared.pending,H===null)break;be=H,H=be.next,be.next=null,y.lastBaseUpdate=be,y.shared.pending=null}}while(!0);we===null&&(K=Re),y.baseState=K,y.firstBaseUpdate=he,y.lastBaseUpdate=we,x===null&&(y.shared.lanes=0),Li|=O,s.lanes=O,s.memoizedState=Re}}function ub(s,o){if(typeof s!="function")throw Error(r(191,s));s.call(o)}function cb(s,o){var c=s.callbacks;if(c!==null)for(s.callbacks=null,s=0;s<c.length;s++)ub(c[s],o)}var Cl=oe(null),N0=oe(0);function db(s,o){s=Ks,j(N0,s),j(Cl,o),Ks=s|o.baseLanes}function Hm(){j(N0,Ks),j(Cl,Cl.current)}function Fm(){Ks=N0.current,ge(Cl),ge(N0)}var Ri=0,Ct=null,an=null,Qn=null,P0=!1,Rl=!1,Po=!1,k0=0,mc=0,Ol=null,MP=0;function Fn(){throw Error(r(321))}function Um(s,o){if(o===null)return!1;for(var c=0;c<o.length&&c<s.length;c++)if(!Jr(s[c],o[c]))return!1;return!0}function Bm(s,o,c,f,y,x){return Ri=x,Ct=o,o.memoizedState=null,o.updateQueue=null,o.lanes=0,V.H=s===null||s.memoizedState===null?Yb:Gb,Po=!1,x=c(f,y),Po=!1,Rl&&(x=hb(o,c,f,y)),fb(s),x}function fb(s){V.H=H0;var o=an!==null&&an.next!==null;if(Ri=0,Qn=an=Ct=null,P0=!1,mc=0,Ol=null,o)throw Error(r(300));s===null||sr||(s=s.dependencies,s!==null&&S0(s)&&(sr=!0))}function hb(s,o,c,f){Ct=s;var y=0;do{if(Rl&&(Ol=null),mc=0,Rl=!1,25<=y)throw Error(r(301));if(y+=1,Qn=an=null,s.updateQueue!=null){var x=s.updateQueue;x.lastEffect=null,x.events=null,x.stores=null,x.memoCache!=null&&(x.memoCache.index=0)}V.H=BP,x=o(c,f)}while(Rl);return x}function LP(){var s=V.H,o=s.useState()[0];return o=typeof o.then=="function"?pc(o):o,s=s.useState()[0],(an!==null?an.memoizedState:null)!==s&&(Ct.flags|=1024),o}function Vm(){var s=k0!==0;return k0=0,s}function zm(s,o,c){o.updateQueue=s.updateQueue,o.flags&=-2053,s.lanes&=~c}function qm(s){if(P0){for(s=s.memoizedState;s!==null;){var o=s.queue;o!==null&&(o.pending=null),s=s.next}P0=!1}Ri=0,Qn=an=Ct=null,Rl=!1,mc=k0=0,Ol=null}function Fr(){var s={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Qn===null?Ct.memoizedState=Qn=s:Qn=Qn.next=s,Qn}function Yn(){if(an===null){var s=Ct.alternate;s=s!==null?s.memoizedState:null}else s=an.next;var o=Qn===null?Ct.memoizedState:Qn.next;if(o!==null)Qn=o,an=s;else{if(s===null)throw Ct.alternate===null?Error(r(467)):Error(r(310));an=s,s={memoizedState:an.memoizedState,baseState:an.baseState,baseQueue:an.baseQueue,queue:an.queue,next:null},Qn===null?Ct.memoizedState=Qn=s:Qn=Qn.next=s}return Qn}function $m(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function pc(s){var o=mc;return mc+=1,Ol===null&&(Ol=[]),s=ib(Ol,s,o),o=Ct,(Qn===null?o.memoizedState:Qn.next)===null&&(o=o.alternate,V.H=o===null||o.memoizedState===null?Yb:Gb),s}function D0(s){if(s!==null&&typeof s=="object"){if(typeof s.then=="function")return pc(s);if(s.$$typeof===k)return _r(s)}throw Error(r(438,String(s)))}function Zm(s){var o=null,c=Ct.updateQueue;if(c!==null&&(o=c.memoCache),o==null){var f=Ct.alternate;f!==null&&(f=f.updateQueue,f!==null&&(f=f.memoCache,f!=null&&(o={data:f.data.map(function(y){return y.slice()}),index:0})))}if(o==null&&(o={data:[],index:0}),c===null&&(c=$m(),Ct.updateQueue=c),c.memoCache=o,c=o.data[o.index],c===void 0)for(c=o.data[o.index]=Array(s),f=0;f<s;f++)c[f]=P;return o.index++,c}function qs(s,o){return typeof o=="function"?o(s):o}function M0(s){var o=Yn();return Qm(o,an,s)}function Qm(s,o,c){var f=s.queue;if(f===null)throw Error(r(311));f.lastRenderedReducer=c;var y=s.baseQueue,x=f.pending;if(x!==null){if(y!==null){var O=y.next;y.next=x.next,x.next=O}o.baseQueue=y=x,f.pending=null}if(x=s.baseState,y===null)s.memoizedState=x;else{o=y.next;var H=O=null,K=null,he=o,we=!1;do{var Re=he.lane&-536870913;if(Re!==he.lane?(Ft&Re)===Re:(Ri&Re)===Re){var ve=he.revertLane;if(ve===0)K!==null&&(K=K.next={lane:0,revertLane:0,action:he.action,hasEagerState:he.hasEagerState,eagerState:he.eagerState,next:null}),Re===Sl&&(we=!0);else if((Ri&ve)===ve){he=he.next,ve===Sl&&(we=!0);continue}else Re={lane:0,revertLane:he.revertLane,action:he.action,hasEagerState:he.hasEagerState,eagerState:he.eagerState,next:null},K===null?(H=K=Re,O=x):K=K.next=Re,Ct.lanes|=ve,Li|=ve;Re=he.action,Po&&c(x,Re),x=he.hasEagerState?he.eagerState:c(x,Re)}else ve={lane:Re,revertLane:he.revertLane,action:he.action,hasEagerState:he.hasEagerState,eagerState:he.eagerState,next:null},K===null?(H=K=ve,O=x):K=K.next=ve,Ct.lanes|=Re,Li|=Re;he=he.next}while(he!==null&&he!==o);if(K===null?O=x:K.next=H,!Jr(x,s.memoizedState)&&(sr=!0,we&&(c=wl,c!==null)))throw c;s.memoizedState=x,s.baseState=O,s.baseQueue=K,f.lastRenderedState=x}return y===null&&(f.lanes=0),[s.memoizedState,f.dispatch]}function Ym(s){var o=Yn(),c=o.queue;if(c===null)throw Error(r(311));c.lastRenderedReducer=s;var f=c.dispatch,y=c.pending,x=o.memoizedState;if(y!==null){c.pending=null;var O=y=y.next;do x=s(x,O.action),O=O.next;while(O!==y);Jr(x,o.memoizedState)||(sr=!0),o.memoizedState=x,o.baseQueue===null&&(o.baseState=x),c.lastRenderedState=x}return[x,f]}function mb(s,o,c){var f=Ct,y=Yn(),x=Zt;if(x){if(c===void 0)throw Error(r(407));c=c()}else c=o();var O=!Jr((an||y).memoizedState,c);O&&(y.memoizedState=c,sr=!0),y=y.queue;var H=vb.bind(null,f,y,s);if(gc(2048,8,H,[s]),y.getSnapshot!==o||O||Qn!==null&&Qn.memoizedState.tag&1){if(f.flags|=2048,Nl(9,L0(),gb.bind(null,f,y,c,o),null),mn===null)throw Error(r(349));x||(Ri&124)!==0||pb(f,o,c)}return c}function pb(s,o,c){s.flags|=16384,s={getSnapshot:o,value:c},o=Ct.updateQueue,o===null?(o=$m(),Ct.updateQueue=o,o.stores=[s]):(c=o.stores,c===null?o.stores=[s]:c.push(s))}function gb(s,o,c,f){o.value=c,o.getSnapshot=f,yb(o)&&bb(s)}function vb(s,o,c){return c(function(){yb(o)&&bb(s)})}function yb(s){var o=s.getSnapshot;s=s.value;try{var c=o();return!Jr(s,c)}catch{return!0}}function bb(s){var o=xl(s,2);o!==null&&sa(o,s,2)}function Gm(s){var o=Fr();if(typeof s=="function"){var c=s;if(s=c(),Po){Ve(!0);try{c()}finally{Ve(!1)}}}return o.memoizedState=o.baseState=s,o.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:qs,lastRenderedState:s},o}function Eb(s,o,c,f){return s.baseState=c,Qm(s,an,typeof f=="function"?f:qs)}function IP(s,o,c,f,y){if(j0(s))throw Error(r(485));if(s=o.action,s!==null){var x={payload:y,action:s,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(O){x.listeners.push(O)}};V.T!==null?c(!0):x.isTransition=!1,f(x),c=o.pending,c===null?(x.next=o.pending=x,xb(o,x)):(x.next=c.next,o.pending=c.next=x)}}function xb(s,o){var c=o.action,f=o.payload,y=s.state;if(o.isTransition){var x=V.T,O={};V.T=O;try{var H=c(y,f),K=V.S;K!==null&&K(O,H),_b(s,o,H)}catch(he){Km(s,o,he)}finally{V.T=x}}else try{x=c(y,f),_b(s,o,x)}catch(he){Km(s,o,he)}}function _b(s,o,c){c!==null&&typeof c=="object"&&typeof c.then=="function"?c.then(function(f){Tb(s,o,f)},function(f){return Km(s,o,f)}):Tb(s,o,c)}function Tb(s,o,c){o.status="fulfilled",o.value=c,Ab(o),s.state=c,o=s.pending,o!==null&&(c=o.next,c===o?s.pending=null:(c=c.next,o.next=c,xb(s,c)))}function Km(s,o,c){var f=s.pending;if(s.pending=null,f!==null){f=f.next;do o.status="rejected",o.reason=c,Ab(o),o=o.next;while(o!==f)}s.action=null}function Ab(s){s=s.listeners;for(var o=0;o<s.length;o++)(0,s[o])()}function Sb(s,o){return o}function wb(s,o){if(Zt){var c=mn.formState;if(c!==null){e:{var f=Ct;if(Zt){if(Mn){t:{for(var y=Mn,x=ls;y.nodeType!==8;){if(!x){y=null;break t}if(y=qa(y.nextSibling),y===null){y=null;break t}}x=y.data,y=x==="F!"||x==="F"?y:null}if(y){Mn=qa(y.nextSibling),f=y.data==="F!";break e}}Co(f)}f=!1}f&&(o=c[0])}}return c=Fr(),c.memoizedState=c.baseState=o,f={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Sb,lastRenderedState:o},c.queue=f,c=$b.bind(null,Ct,f),f.dispatch=c,f=Gm(!1),x=tp.bind(null,Ct,!1,f.queue),f=Fr(),y={state:o,dispatch:null,action:s,pending:null},f.queue=y,c=IP.bind(null,Ct,y,x,c),y.dispatch=c,f.memoizedState=s,[o,c,!1]}function Cb(s){var o=Yn();return Rb(o,an,s)}function Rb(s,o,c){if(o=Qm(s,o,Sb)[0],s=M0(qs)[0],typeof o=="object"&&o!==null&&typeof o.then=="function")try{var f=pc(o)}catch(O){throw O===uc?R0:O}else f=o;o=Yn();var y=o.queue,x=y.dispatch;return c!==o.memoizedState&&(Ct.flags|=2048,Nl(9,L0(),jP.bind(null,y,c),null)),[f,x,s]}function jP(s,o){s.action=o}function Ob(s){var o=Yn(),c=an;if(c!==null)return Rb(o,c,s);Yn(),o=o.memoizedState,c=Yn();var f=c.queue.dispatch;return c.memoizedState=s,[o,f,!1]}function Nl(s,o,c,f){return s={tag:s,create:c,deps:f,inst:o,next:null},o=Ct.updateQueue,o===null&&(o=$m(),Ct.updateQueue=o),c=o.lastEffect,c===null?o.lastEffect=s.next=s:(f=c.next,c.next=s,s.next=f,o.lastEffect=s),s}function L0(){return{destroy:void 0,resource:void 0}}function Nb(){return Yn().memoizedState}function I0(s,o,c,f){var y=Fr();f=f===void 0?null:f,Ct.flags|=s,y.memoizedState=Nl(1|o,L0(),c,f)}function gc(s,o,c,f){var y=Yn();f=f===void 0?null:f;var x=y.memoizedState.inst;an!==null&&f!==null&&Um(f,an.memoizedState.deps)?y.memoizedState=Nl(o,x,c,f):(Ct.flags|=s,y.memoizedState=Nl(1|o,x,c,f))}function Pb(s,o){I0(8390656,8,s,o)}function kb(s,o){gc(2048,8,s,o)}function Db(s,o){return gc(4,2,s,o)}function Mb(s,o){return gc(4,4,s,o)}function Lb(s,o){if(typeof o=="function"){s=s();var c=o(s);return function(){typeof c=="function"?c():o(null)}}if(o!=null)return s=s(),o.current=s,function(){o.current=null}}function Ib(s,o,c){c=c!=null?c.concat([s]):null,gc(4,4,Lb.bind(null,o,s),c)}function Xm(){}function jb(s,o){var c=Yn();o=o===void 0?null:o;var f=c.memoizedState;return o!==null&&Um(o,f[1])?f[0]:(c.memoizedState=[s,o],s)}function Hb(s,o){var c=Yn();o=o===void 0?null:o;var f=c.memoizedState;if(o!==null&&Um(o,f[1]))return f[0];if(f=s(),Po){Ve(!0);try{s()}finally{Ve(!1)}}return c.memoizedState=[f,o],f}function Wm(s,o,c){return c===void 0||(Ri&1073741824)!==0?s.memoizedState=o:(s.memoizedState=c,s=B3(),Ct.lanes|=s,Li|=s,c)}function Fb(s,o,c,f){return Jr(c,o)?c:Cl.current!==null?(s=Wm(s,c,f),Jr(s,o)||(sr=!0),s):(Ri&42)===0?(sr=!0,s.memoizedState=c):(s=B3(),Ct.lanes|=s,Li|=s,o)}function Ub(s,o,c,f,y){var x=J.p;J.p=x!==0&&8>x?x:8;var O=V.T,H={};V.T=H,tp(s,!1,o,c);try{var K=y(),he=V.S;if(he!==null&&he(H,K),K!==null&&typeof K=="object"&&typeof K.then=="function"){var we=DP(K,f);vc(s,o,we,aa(s))}else vc(s,o,f,aa(s))}catch(Re){vc(s,o,{then:function(){},status:"rejected",reason:Re},aa())}finally{J.p=x,V.T=O}}function HP(){}function Jm(s,o,c,f){if(s.tag!==5)throw Error(r(476));var y=Bb(s).queue;Ub(s,y,o,X,c===null?HP:function(){return Vb(s),c(f)})}function Bb(s){var o=s.memoizedState;if(o!==null)return o;o={memoizedState:X,baseState:X,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:qs,lastRenderedState:X},next:null};var c={};return o.next={memoizedState:c,baseState:c,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:qs,lastRenderedState:c},next:null},s.memoizedState=o,s=s.alternate,s!==null&&(s.memoizedState=o),o}function Vb(s){var o=Bb(s).next.queue;vc(s,o,{},aa())}function ep(){return _r(Lc)}function zb(){return Yn().memoizedState}function qb(){return Yn().memoizedState}function FP(s){for(var o=s.return;o!==null;){switch(o.tag){case 24:case 3:var c=aa();s=wi(c);var f=Ci(o,s,c);f!==null&&(sa(f,o,c),dc(f,o,c)),o={cache:Nm()},s.payload=o;return}o=o.return}}function UP(s,o,c){var f=aa();c={lane:f,revertLane:0,action:c,hasEagerState:!1,eagerState:null,next:null},j0(s)?Zb(o,c):(c=Em(s,o,c,f),c!==null&&(sa(c,s,f),Qb(c,o,f)))}function $b(s,o,c){var f=aa();vc(s,o,c,f)}function vc(s,o,c,f){var y={lane:f,revertLane:0,action:c,hasEagerState:!1,eagerState:null,next:null};if(j0(s))Zb(o,y);else{var x=s.alternate;if(s.lanes===0&&(x===null||x.lanes===0)&&(x=o.lastRenderedReducer,x!==null))try{var O=o.lastRenderedState,H=x(O,c);if(y.hasEagerState=!0,y.eagerState=H,Jr(H,O))return E0(s,o,y,0),mn===null&&b0(),!1}catch{}finally{}if(c=Em(s,o,y,f),c!==null)return sa(c,s,f),Qb(c,o,f),!0}return!1}function tp(s,o,c,f){if(f={lane:2,revertLane:Dp(),action:f,hasEagerState:!1,eagerState:null,next:null},j0(s)){if(o)throw Error(r(479))}else o=Em(s,c,f,2),o!==null&&sa(o,s,2)}function j0(s){var o=s.alternate;return s===Ct||o!==null&&o===Ct}function Zb(s,o){Rl=P0=!0;var c=s.pending;c===null?o.next=o:(o.next=c.next,c.next=o),s.pending=o}function Qb(s,o,c){if((c&4194048)!==0){var f=o.lanes;f&=s.pendingLanes,c|=f,o.lanes=c,Rn(s,c)}}var H0={readContext:_r,use:D0,useCallback:Fn,useContext:Fn,useEffect:Fn,useImperativeHandle:Fn,useLayoutEffect:Fn,useInsertionEffect:Fn,useMemo:Fn,useReducer:Fn,useRef:Fn,useState:Fn,useDebugValue:Fn,useDeferredValue:Fn,useTransition:Fn,useSyncExternalStore:Fn,useId:Fn,useHostTransitionStatus:Fn,useFormState:Fn,useActionState:Fn,useOptimistic:Fn,useMemoCache:Fn,useCacheRefresh:Fn},Yb={readContext:_r,use:D0,useCallback:function(s,o){return Fr().memoizedState=[s,o===void 0?null:o],s},useContext:_r,useEffect:Pb,useImperativeHandle:function(s,o,c){c=c!=null?c.concat([s]):null,I0(4194308,4,Lb.bind(null,o,s),c)},useLayoutEffect:function(s,o){return I0(4194308,4,s,o)},useInsertionEffect:function(s,o){I0(4,2,s,o)},useMemo:function(s,o){var c=Fr();o=o===void 0?null:o;var f=s();if(Po){Ve(!0);try{s()}finally{Ve(!1)}}return c.memoizedState=[f,o],f},useReducer:function(s,o,c){var f=Fr();if(c!==void 0){var y=c(o);if(Po){Ve(!0);try{c(o)}finally{Ve(!1)}}}else y=o;return f.memoizedState=f.baseState=y,s={pending:null,lanes:0,dispatch:null,lastRenderedReducer:s,lastRenderedState:y},f.queue=s,s=s.dispatch=UP.bind(null,Ct,s),[f.memoizedState,s]},useRef:function(s){var o=Fr();return s={current:s},o.memoizedState=s},useState:function(s){s=Gm(s);var o=s.queue,c=$b.bind(null,Ct,o);return o.dispatch=c,[s.memoizedState,c]},useDebugValue:Xm,useDeferredValue:function(s,o){var c=Fr();return Wm(c,s,o)},useTransition:function(){var s=Gm(!1);return s=Ub.bind(null,Ct,s.queue,!0,!1),Fr().memoizedState=s,[!1,s]},useSyncExternalStore:function(s,o,c){var f=Ct,y=Fr();if(Zt){if(c===void 0)throw Error(r(407));c=c()}else{if(c=o(),mn===null)throw Error(r(349));(Ft&124)!==0||pb(f,o,c)}y.memoizedState=c;var x={value:c,getSnapshot:o};return y.queue=x,Pb(vb.bind(null,f,x,s),[s]),f.flags|=2048,Nl(9,L0(),gb.bind(null,f,x,c,o),null),c},useId:function(){var s=Fr(),o=mn.identifierPrefix;if(Zt){var c=Bs,f=Us;c=(f&~(1<<32-$e(f)-1)).toString(32)+c,o="«"+o+"R"+c,c=k0++,0<c&&(o+="H"+c.toString(32)),o+="»"}else c=MP++,o="«"+o+"r"+c.toString(32)+"»";return s.memoizedState=o},useHostTransitionStatus:ep,useFormState:wb,useActionState:wb,useOptimistic:function(s){var o=Fr();o.memoizedState=o.baseState=s;var c={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return o.queue=c,o=tp.bind(null,Ct,!0,c),c.dispatch=o,[s,o]},useMemoCache:Zm,useCacheRefresh:function(){return Fr().memoizedState=FP.bind(null,Ct)}},Gb={readContext:_r,use:D0,useCallback:jb,useContext:_r,useEffect:kb,useImperativeHandle:Ib,useInsertionEffect:Db,useLayoutEffect:Mb,useMemo:Hb,useReducer:M0,useRef:Nb,useState:function(){return M0(qs)},useDebugValue:Xm,useDeferredValue:function(s,o){var c=Yn();return Fb(c,an.memoizedState,s,o)},useTransition:function(){var s=M0(qs)[0],o=Yn().memoizedState;return[typeof s=="boolean"?s:pc(s),o]},useSyncExternalStore:mb,useId:zb,useHostTransitionStatus:ep,useFormState:Cb,useActionState:Cb,useOptimistic:function(s,o){var c=Yn();return Eb(c,an,s,o)},useMemoCache:Zm,useCacheRefresh:qb},BP={readContext:_r,use:D0,useCallback:jb,useContext:_r,useEffect:kb,useImperativeHandle:Ib,useInsertionEffect:Db,useLayoutEffect:Mb,useMemo:Hb,useReducer:Ym,useRef:Nb,useState:function(){return Ym(qs)},useDebugValue:Xm,useDeferredValue:function(s,o){var c=Yn();return an===null?Wm(c,s,o):Fb(c,an.memoizedState,s,o)},useTransition:function(){var s=Ym(qs)[0],o=Yn().memoizedState;return[typeof s=="boolean"?s:pc(s),o]},useSyncExternalStore:mb,useId:zb,useHostTransitionStatus:ep,useFormState:Ob,useActionState:Ob,useOptimistic:function(s,o){var c=Yn();return an!==null?Eb(c,an,s,o):(c.baseState=s,[s,c.queue.dispatch])},useMemoCache:Zm,useCacheRefresh:qb},Pl=null,yc=0;function F0(s){var o=yc;return yc+=1,Pl===null&&(Pl=[]),ib(Pl,s,o)}function bc(s,o){o=o.props.ref,s.ref=o!==void 0?o:null}function U0(s,o){throw o.$$typeof===m?Error(r(525)):(s=Object.prototype.toString.call(o),Error(r(31,s==="[object Object]"?"object with keys {"+Object.keys(o).join(", ")+"}":s)))}function Kb(s){var o=s._init;return o(s._payload)}function Xb(s){function o(ue,re){if(s){var de=ue.deletions;de===null?(ue.deletions=[re],ue.flags|=16):de.push(re)}}function c(ue,re){if(!s)return null;for(;re!==null;)o(ue,re),re=re.sibling;return null}function f(ue){for(var re=new Map;ue!==null;)ue.key!==null?re.set(ue.key,ue):re.set(ue.index,ue),ue=ue.sibling;return re}function y(ue,re){return ue=Fs(ue,re),ue.index=0,ue.sibling=null,ue}function x(ue,re,de){return ue.index=de,s?(de=ue.alternate,de!==null?(de=de.index,de<re?(ue.flags|=67108866,re):de):(ue.flags|=67108866,re)):(ue.flags|=1048576,re)}function O(ue){return s&&ue.alternate===null&&(ue.flags|=67108866),ue}function H(ue,re,de,Ce){return re===null||re.tag!==6?(re=_m(de,ue.mode,Ce),re.return=ue,re):(re=y(re,de),re.return=ue,re)}function K(ue,re,de,Ce){var Ge=de.type;return Ge===T?we(ue,re,de.props.children,Ce,de.key):re!==null&&(re.elementType===Ge||typeof Ge=="object"&&Ge!==null&&Ge.$$typeof===D&&Kb(Ge)===re.type)?(re=y(re,de.props),bc(re,de),re.return=ue,re):(re=_0(de.type,de.key,de.props,null,ue.mode,Ce),bc(re,de),re.return=ue,re)}function he(ue,re,de,Ce){return re===null||re.tag!==4||re.stateNode.containerInfo!==de.containerInfo||re.stateNode.implementation!==de.implementation?(re=Tm(de,ue.mode,Ce),re.return=ue,re):(re=y(re,de.children||[]),re.return=ue,re)}function we(ue,re,de,Ce,Ge){return re===null||re.tag!==7?(re=To(de,ue.mode,Ce,Ge),re.return=ue,re):(re=y(re,de),re.return=ue,re)}function Re(ue,re,de){if(typeof re=="string"&&re!==""||typeof re=="number"||typeof re=="bigint")return re=_m(""+re,ue.mode,de),re.return=ue,re;if(typeof re=="object"&&re!==null){switch(re.$$typeof){case E:return de=_0(re.type,re.key,re.props,null,ue.mode,de),bc(de,re),de.return=ue,de;case b:return re=Tm(re,ue.mode,de),re.return=ue,re;case D:var Ce=re._init;return re=Ce(re._payload),Re(ue,re,de)}if(te(re)||F(re))return re=To(re,ue.mode,de,null),re.return=ue,re;if(typeof re.then=="function")return Re(ue,F0(re),de);if(re.$$typeof===k)return Re(ue,w0(ue,re),de);U0(ue,re)}return null}function ve(ue,re,de,Ce){var Ge=re!==null?re.key:null;if(typeof de=="string"&&de!==""||typeof de=="number"||typeof de=="bigint")return Ge!==null?null:H(ue,re,""+de,Ce);if(typeof de=="object"&&de!==null){switch(de.$$typeof){case E:return de.key===Ge?K(ue,re,de,Ce):null;case b:return de.key===Ge?he(ue,re,de,Ce):null;case D:return Ge=de._init,de=Ge(de._payload),ve(ue,re,de,Ce)}if(te(de)||F(de))return Ge!==null?null:we(ue,re,de,Ce,null);if(typeof de.then=="function")return ve(ue,re,F0(de),Ce);if(de.$$typeof===k)return ve(ue,re,w0(ue,de),Ce);U0(ue,de)}return null}function be(ue,re,de,Ce,Ge){if(typeof Ce=="string"&&Ce!==""||typeof Ce=="number"||typeof Ce=="bigint")return ue=ue.get(de)||null,H(re,ue,""+Ce,Ge);if(typeof Ce=="object"&&Ce!==null){switch(Ce.$$typeof){case E:return ue=ue.get(Ce.key===null?de:Ce.key)||null,K(re,ue,Ce,Ge);case b:return ue=ue.get(Ce.key===null?de:Ce.key)||null,he(re,ue,Ce,Ge);case D:var Ot=Ce._init;return Ce=Ot(Ce._payload),be(ue,re,de,Ce,Ge)}if(te(Ce)||F(Ce))return ue=ue.get(de)||null,we(re,ue,Ce,Ge,null);if(typeof Ce.then=="function")return be(ue,re,de,F0(Ce),Ge);if(Ce.$$typeof===k)return be(ue,re,de,w0(re,Ce),Ge);U0(re,Ce)}return null}function mt(ue,re,de,Ce){for(var Ge=null,Ot=null,rt=re,ht=re=0,or=null;rt!==null&&ht<de.length;ht++){rt.index>ht?(or=rt,rt=null):or=rt.sibling;var Vt=ve(ue,rt,de[ht],Ce);if(Vt===null){rt===null&&(rt=or);break}s&&rt&&Vt.alternate===null&&o(ue,rt),re=x(Vt,re,ht),Ot===null?Ge=Vt:Ot.sibling=Vt,Ot=Vt,rt=or}if(ht===de.length)return c(ue,rt),Zt&&So(ue,ht),Ge;if(rt===null){for(;ht<de.length;ht++)rt=Re(ue,de[ht],Ce),rt!==null&&(re=x(rt,re,ht),Ot===null?Ge=rt:Ot.sibling=rt,Ot=rt);return Zt&&So(ue,ht),Ge}for(rt=f(rt);ht<de.length;ht++)or=be(rt,ue,ht,de[ht],Ce),or!==null&&(s&&or.alternate!==null&&rt.delete(or.key===null?ht:or.key),re=x(or,re,ht),Ot===null?Ge=or:Ot.sibling=or,Ot=or);return s&&rt.forEach(function(qi){return o(ue,qi)}),Zt&&So(ue,ht),Ge}function ft(ue,re,de,Ce){if(de==null)throw Error(r(151));for(var Ge=null,Ot=null,rt=re,ht=re=0,or=null,Vt=de.next();rt!==null&&!Vt.done;ht++,Vt=de.next()){rt.index>ht?(or=rt,rt=null):or=rt.sibling;var qi=ve(ue,rt,Vt.value,Ce);if(qi===null){rt===null&&(rt=or);break}s&&rt&&qi.alternate===null&&o(ue,rt),re=x(qi,re,ht),Ot===null?Ge=qi:Ot.sibling=qi,Ot=qi,rt=or}if(Vt.done)return c(ue,rt),Zt&&So(ue,ht),Ge;if(rt===null){for(;!Vt.done;ht++,Vt=de.next())Vt=Re(ue,Vt.value,Ce),Vt!==null&&(re=x(Vt,re,ht),Ot===null?Ge=Vt:Ot.sibling=Vt,Ot=Vt);return Zt&&So(ue,ht),Ge}for(rt=f(rt);!Vt.done;ht++,Vt=de.next())Vt=be(rt,ue,ht,Vt.value,Ce),Vt!==null&&(s&&Vt.alternate!==null&&rt.delete(Vt.key===null?ht:Vt.key),re=x(Vt,re,ht),Ot===null?Ge=Vt:Ot.sibling=Vt,Ot=Vt);return s&&rt.forEach(function(Vk){return o(ue,Vk)}),Zt&&So(ue,ht),Ge}function on(ue,re,de,Ce){if(typeof de=="object"&&de!==null&&de.type===T&&de.key===null&&(de=de.props.children),typeof de=="object"&&de!==null){switch(de.$$typeof){case E:e:{for(var Ge=de.key;re!==null;){if(re.key===Ge){if(Ge=de.type,Ge===T){if(re.tag===7){c(ue,re.sibling),Ce=y(re,de.props.children),Ce.return=ue,ue=Ce;break e}}else if(re.elementType===Ge||typeof Ge=="object"&&Ge!==null&&Ge.$$typeof===D&&Kb(Ge)===re.type){c(ue,re.sibling),Ce=y(re,de.props),bc(Ce,de),Ce.return=ue,ue=Ce;break e}c(ue,re);break}else o(ue,re);re=re.sibling}de.type===T?(Ce=To(de.props.children,ue.mode,Ce,de.key),Ce.return=ue,ue=Ce):(Ce=_0(de.type,de.key,de.props,null,ue.mode,Ce),bc(Ce,de),Ce.return=ue,ue=Ce)}return O(ue);case b:e:{for(Ge=de.key;re!==null;){if(re.key===Ge)if(re.tag===4&&re.stateNode.containerInfo===de.containerInfo&&re.stateNode.implementation===de.implementation){c(ue,re.sibling),Ce=y(re,de.children||[]),Ce.return=ue,ue=Ce;break e}else{c(ue,re);break}else o(ue,re);re=re.sibling}Ce=Tm(de,ue.mode,Ce),Ce.return=ue,ue=Ce}return O(ue);case D:return Ge=de._init,de=Ge(de._payload),on(ue,re,de,Ce)}if(te(de))return mt(ue,re,de,Ce);if(F(de)){if(Ge=F(de),typeof Ge!="function")throw Error(r(150));return de=Ge.call(de),ft(ue,re,de,Ce)}if(typeof de.then=="function")return on(ue,re,F0(de),Ce);if(de.$$typeof===k)return on(ue,re,w0(ue,de),Ce);U0(ue,de)}return typeof de=="string"&&de!==""||typeof de=="number"||typeof de=="bigint"?(de=""+de,re!==null&&re.tag===6?(c(ue,re.sibling),Ce=y(re,de),Ce.return=ue,ue=Ce):(c(ue,re),Ce=_m(de,ue.mode,Ce),Ce.return=ue,ue=Ce),O(ue)):c(ue,re)}return function(ue,re,de,Ce){try{yc=0;var Ge=on(ue,re,de,Ce);return Pl=null,Ge}catch(rt){if(rt===uc||rt===R0)throw rt;var Ot=ea(29,rt,null,ue.mode);return Ot.lanes=Ce,Ot.return=ue,Ot}finally{}}}var kl=Xb(!0),Wb=Xb(!1),Ea=oe(null),us=null;function Oi(s){var o=s.alternate;j(tr,tr.current&1),j(Ea,s),us===null&&(o===null||Cl.current!==null||o.memoizedState!==null)&&(us=s)}function Jb(s){if(s.tag===22){if(j(tr,tr.current),j(Ea,s),us===null){var o=s.alternate;o!==null&&o.memoizedState!==null&&(us=s)}}else Ni()}function Ni(){j(tr,tr.current),j(Ea,Ea.current)}function $s(s){ge(Ea),us===s&&(us=null),ge(tr)}var tr=oe(0);function B0(s){for(var o=s;o!==null;){if(o.tag===13){var c=o.memoizedState;if(c!==null&&(c=c.dehydrated,c===null||c.data==="$?"||$p(c)))return o}else if(o.tag===19&&o.memoizedProps.revealOrder!==void 0){if((o.flags&128)!==0)return o}else if(o.child!==null){o.child.return=o,o=o.child;continue}if(o===s)break;for(;o.sibling===null;){if(o.return===null||o.return===s)return null;o=o.return}o.sibling.return=o.return,o=o.sibling}return null}function np(s,o,c,f){o=s.memoizedState,c=c(f,o),c=c==null?o:v({},o,c),s.memoizedState=c,s.lanes===0&&(s.updateQueue.baseState=c)}var rp={enqueueSetState:function(s,o,c){s=s._reactInternals;var f=aa(),y=wi(f);y.payload=o,c!=null&&(y.callback=c),o=Ci(s,y,f),o!==null&&(sa(o,s,f),dc(o,s,f))},enqueueReplaceState:function(s,o,c){s=s._reactInternals;var f=aa(),y=wi(f);y.tag=1,y.payload=o,c!=null&&(y.callback=c),o=Ci(s,y,f),o!==null&&(sa(o,s,f),dc(o,s,f))},enqueueForceUpdate:function(s,o){s=s._reactInternals;var c=aa(),f=wi(c);f.tag=2,o!=null&&(f.callback=o),o=Ci(s,f,c),o!==null&&(sa(o,s,c),dc(o,s,c))}};function e3(s,o,c,f,y,x,O){return s=s.stateNode,typeof s.shouldComponentUpdate=="function"?s.shouldComponentUpdate(f,x,O):o.prototype&&o.prototype.isPureReactComponent?!tc(c,f)||!tc(y,x):!0}function t3(s,o,c,f){s=o.state,typeof o.componentWillReceiveProps=="function"&&o.componentWillReceiveProps(c,f),typeof o.UNSAFE_componentWillReceiveProps=="function"&&o.UNSAFE_componentWillReceiveProps(c,f),o.state!==s&&rp.enqueueReplaceState(o,o.state,null)}function ko(s,o){var c=o;if("ref"in o){c={};for(var f in o)f!=="ref"&&(c[f]=o[f])}if(s=s.defaultProps){c===o&&(c=v({},c));for(var y in s)c[y]===void 0&&(c[y]=s[y])}return c}var V0=typeof reportError=="function"?reportError:function(s){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var o=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof s=="object"&&s!==null&&typeof s.message=="string"?String(s.message):String(s),error:s});if(!window.dispatchEvent(o))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",s);return}console.error(s)};function n3(s){V0(s)}function r3(s){console.error(s)}function a3(s){V0(s)}function z0(s,o){try{var c=s.onUncaughtError;c(o.value,{componentStack:o.stack})}catch(f){setTimeout(function(){throw f})}}function s3(s,o,c){try{var f=s.onCaughtError;f(c.value,{componentStack:c.stack,errorBoundary:o.tag===1?o.stateNode:null})}catch(y){setTimeout(function(){throw y})}}function ap(s,o,c){return c=wi(c),c.tag=3,c.payload={element:null},c.callback=function(){z0(s,o)},c}function i3(s){return s=wi(s),s.tag=3,s}function o3(s,o,c,f){var y=c.type.getDerivedStateFromError;if(typeof y=="function"){var x=f.value;s.payload=function(){return y(x)},s.callback=function(){s3(o,c,f)}}var O=c.stateNode;O!==null&&typeof O.componentDidCatch=="function"&&(s.callback=function(){s3(o,c,f),typeof y!="function"&&(Ii===null?Ii=new Set([this]):Ii.add(this));var H=f.stack;this.componentDidCatch(f.value,{componentStack:H!==null?H:""})})}function VP(s,o,c,f,y){if(c.flags|=32768,f!==null&&typeof f=="object"&&typeof f.then=="function"){if(o=c.alternate,o!==null&&ic(o,c,y,!0),c=Ea.current,c!==null){switch(c.tag){case 13:return us===null?Rp():c.alternate===null&&Ln===0&&(Ln=3),c.flags&=-257,c.flags|=65536,c.lanes=y,f===Dm?c.flags|=16384:(o=c.updateQueue,o===null?c.updateQueue=new Set([f]):o.add(f),Np(s,f,y)),!1;case 22:return c.flags|=65536,f===Dm?c.flags|=16384:(o=c.updateQueue,o===null?(o={transitions:null,markerInstances:null,retryQueue:new Set([f])},c.updateQueue=o):(c=o.retryQueue,c===null?o.retryQueue=new Set([f]):c.add(f)),Np(s,f,y)),!1}throw Error(r(435,c.tag))}return Np(s,f,y),Rp(),!1}if(Zt)return o=Ea.current,o!==null?((o.flags&65536)===0&&(o.flags|=256),o.flags|=65536,o.lanes=y,f!==wm&&(s=Error(r(422),{cause:f}),sc(ga(s,c)))):(f!==wm&&(o=Error(r(423),{cause:f}),sc(ga(o,c))),s=s.current.alternate,s.flags|=65536,y&=-y,s.lanes|=y,f=ga(f,c),y=ap(s.stateNode,f,y),Im(s,y),Ln!==4&&(Ln=2)),!1;var x=Error(r(520),{cause:f});if(x=ga(x,c),wc===null?wc=[x]:wc.push(x),Ln!==4&&(Ln=2),o===null)return!0;f=ga(f,c),c=o;do{switch(c.tag){case 3:return c.flags|=65536,s=y&-y,c.lanes|=s,s=ap(c.stateNode,f,s),Im(c,s),!1;case 1:if(o=c.type,x=c.stateNode,(c.flags&128)===0&&(typeof o.getDerivedStateFromError=="function"||x!==null&&typeof x.componentDidCatch=="function"&&(Ii===null||!Ii.has(x))))return c.flags|=65536,y&=-y,c.lanes|=y,y=i3(y),o3(y,s,c,f),Im(c,y),!1}c=c.return}while(c!==null);return!1}var l3=Error(r(461)),sr=!1;function pr(s,o,c,f){o.child=s===null?Wb(o,null,c,f):kl(o,s.child,c,f)}function u3(s,o,c,f,y){c=c.render;var x=o.ref;if("ref"in f){var O={};for(var H in f)H!=="ref"&&(O[H]=f[H])}else O=f;return Oo(o),f=Bm(s,o,c,O,x,y),H=Vm(),s!==null&&!sr?(zm(s,o,y),Zs(s,o,y)):(Zt&&H&&Am(o),o.flags|=1,pr(s,o,f,y),o.child)}function c3(s,o,c,f,y){if(s===null){var x=c.type;return typeof x=="function"&&!xm(x)&&x.defaultProps===void 0&&c.compare===null?(o.tag=15,o.type=x,d3(s,o,x,f,y)):(s=_0(c.type,null,f,o,o.mode,y),s.ref=o.ref,s.return=o,o.child=s)}if(x=s.child,!fp(s,y)){var O=x.memoizedProps;if(c=c.compare,c=c!==null?c:tc,c(O,f)&&s.ref===o.ref)return Zs(s,o,y)}return o.flags|=1,s=Fs(x,f),s.ref=o.ref,s.return=o,o.child=s}function d3(s,o,c,f,y){if(s!==null){var x=s.memoizedProps;if(tc(x,f)&&s.ref===o.ref)if(sr=!1,o.pendingProps=f=x,fp(s,y))(s.flags&131072)!==0&&(sr=!0);else return o.lanes=s.lanes,Zs(s,o,y)}return sp(s,o,c,f,y)}function f3(s,o,c){var f=o.pendingProps,y=f.children,x=s!==null?s.memoizedState:null;if(f.mode==="hidden"){if((o.flags&128)!==0){if(f=x!==null?x.baseLanes|c:c,s!==null){for(y=o.child=s.child,x=0;y!==null;)x=x|y.lanes|y.childLanes,y=y.sibling;o.childLanes=x&~f}else o.childLanes=0,o.child=null;return h3(s,o,f,c)}if((c&536870912)!==0)o.memoizedState={baseLanes:0,cachePool:null},s!==null&&C0(o,x!==null?x.cachePool:null),x!==null?db(o,x):Hm(),Jb(o);else return o.lanes=o.childLanes=536870912,h3(s,o,x!==null?x.baseLanes|c:c,c)}else x!==null?(C0(o,x.cachePool),db(o,x),Ni(),o.memoizedState=null):(s!==null&&C0(o,null),Hm(),Ni());return pr(s,o,y,c),o.child}function h3(s,o,c,f){var y=km();return y=y===null?null:{parent:er._currentValue,pool:y},o.memoizedState={baseLanes:c,cachePool:y},s!==null&&C0(o,null),Hm(),Jb(o),s!==null&&ic(s,o,f,!0),null}function q0(s,o){var c=o.ref;if(c===null)s!==null&&s.ref!==null&&(o.flags|=4194816);else{if(typeof c!="function"&&typeof c!="object")throw Error(r(284));(s===null||s.ref!==c)&&(o.flags|=4194816)}}function sp(s,o,c,f,y){return Oo(o),c=Bm(s,o,c,f,void 0,y),f=Vm(),s!==null&&!sr?(zm(s,o,y),Zs(s,o,y)):(Zt&&f&&Am(o),o.flags|=1,pr(s,o,c,y),o.child)}function m3(s,o,c,f,y,x){return Oo(o),o.updateQueue=null,c=hb(o,f,c,y),fb(s),f=Vm(),s!==null&&!sr?(zm(s,o,x),Zs(s,o,x)):(Zt&&f&&Am(o),o.flags|=1,pr(s,o,c,x),o.child)}function p3(s,o,c,f,y){if(Oo(o),o.stateNode===null){var x=_l,O=c.contextType;typeof O=="object"&&O!==null&&(x=_r(O)),x=new c(f,x),o.memoizedState=x.state!==null&&x.state!==void 0?x.state:null,x.updater=rp,o.stateNode=x,x._reactInternals=o,x=o.stateNode,x.props=f,x.state=o.memoizedState,x.refs={},Mm(o),O=c.contextType,x.context=typeof O=="object"&&O!==null?_r(O):_l,x.state=o.memoizedState,O=c.getDerivedStateFromProps,typeof O=="function"&&(np(o,c,O,f),x.state=o.memoizedState),typeof c.getDerivedStateFromProps=="function"||typeof x.getSnapshotBeforeUpdate=="function"||typeof x.UNSAFE_componentWillMount!="function"&&typeof x.componentWillMount!="function"||(O=x.state,typeof x.componentWillMount=="function"&&x.componentWillMount(),typeof x.UNSAFE_componentWillMount=="function"&&x.UNSAFE_componentWillMount(),O!==x.state&&rp.enqueueReplaceState(x,x.state,null),hc(o,f,x,y),fc(),x.state=o.memoizedState),typeof x.componentDidMount=="function"&&(o.flags|=4194308),f=!0}else if(s===null){x=o.stateNode;var H=o.memoizedProps,K=ko(c,H);x.props=K;var he=x.context,we=c.contextType;O=_l,typeof we=="object"&&we!==null&&(O=_r(we));var Re=c.getDerivedStateFromProps;we=typeof Re=="function"||typeof x.getSnapshotBeforeUpdate=="function",H=o.pendingProps!==H,we||typeof x.UNSAFE_componentWillReceiveProps!="function"&&typeof x.componentWillReceiveProps!="function"||(H||he!==O)&&t3(o,x,f,O),Si=!1;var ve=o.memoizedState;x.state=ve,hc(o,f,x,y),fc(),he=o.memoizedState,H||ve!==he||Si?(typeof Re=="function"&&(np(o,c,Re,f),he=o.memoizedState),(K=Si||e3(o,c,K,f,ve,he,O))?(we||typeof x.UNSAFE_componentWillMount!="function"&&typeof x.componentWillMount!="function"||(typeof x.componentWillMount=="function"&&x.componentWillMount(),typeof x.UNSAFE_componentWillMount=="function"&&x.UNSAFE_componentWillMount()),typeof x.componentDidMount=="function"&&(o.flags|=4194308)):(typeof x.componentDidMount=="function"&&(o.flags|=4194308),o.memoizedProps=f,o.memoizedState=he),x.props=f,x.state=he,x.context=O,f=K):(typeof x.componentDidMount=="function"&&(o.flags|=4194308),f=!1)}else{x=o.stateNode,Lm(s,o),O=o.memoizedProps,we=ko(c,O),x.props=we,Re=o.pendingProps,ve=x.context,he=c.contextType,K=_l,typeof he=="object"&&he!==null&&(K=_r(he)),H=c.getDerivedStateFromProps,(he=typeof H=="function"||typeof x.getSnapshotBeforeUpdate=="function")||typeof x.UNSAFE_componentWillReceiveProps!="function"&&typeof x.componentWillReceiveProps!="function"||(O!==Re||ve!==K)&&t3(o,x,f,K),Si=!1,ve=o.memoizedState,x.state=ve,hc(o,f,x,y),fc();var be=o.memoizedState;O!==Re||ve!==be||Si||s!==null&&s.dependencies!==null&&S0(s.dependencies)?(typeof H=="function"&&(np(o,c,H,f),be=o.memoizedState),(we=Si||e3(o,c,we,f,ve,be,K)||s!==null&&s.dependencies!==null&&S0(s.dependencies))?(he||typeof x.UNSAFE_componentWillUpdate!="function"&&typeof x.componentWillUpdate!="function"||(typeof x.componentWillUpdate=="function"&&x.componentWillUpdate(f,be,K),typeof x.UNSAFE_componentWillUpdate=="function"&&x.UNSAFE_componentWillUpdate(f,be,K)),typeof x.componentDidUpdate=="function"&&(o.flags|=4),typeof x.getSnapshotBeforeUpdate=="function"&&(o.flags|=1024)):(typeof x.componentDidUpdate!="function"||O===s.memoizedProps&&ve===s.memoizedState||(o.flags|=4),typeof x.getSnapshotBeforeUpdate!="function"||O===s.memoizedProps&&ve===s.memoizedState||(o.flags|=1024),o.memoizedProps=f,o.memoizedState=be),x.props=f,x.state=be,x.context=K,f=we):(typeof x.componentDidUpdate!="function"||O===s.memoizedProps&&ve===s.memoizedState||(o.flags|=4),typeof x.getSnapshotBeforeUpdate!="function"||O===s.memoizedProps&&ve===s.memoizedState||(o.flags|=1024),f=!1)}return x=f,q0(s,o),f=(o.flags&128)!==0,x||f?(x=o.stateNode,c=f&&typeof c.getDerivedStateFromError!="function"?null:x.render(),o.flags|=1,s!==null&&f?(o.child=kl(o,s.child,null,y),o.child=kl(o,null,c,y)):pr(s,o,c,y),o.memoizedState=x.state,s=o.child):s=Zs(s,o,y),s}function g3(s,o,c,f){return ac(),o.flags|=256,pr(s,o,c,f),o.child}var ip={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function op(s){return{baseLanes:s,cachePool:rb()}}function lp(s,o,c){return s=s!==null?s.childLanes&~c:0,o&&(s|=xa),s}function v3(s,o,c){var f=o.pendingProps,y=!1,x=(o.flags&128)!==0,O;if((O=x)||(O=s!==null&&s.memoizedState===null?!1:(tr.current&2)!==0),O&&(y=!0,o.flags&=-129),O=(o.flags&32)!==0,o.flags&=-33,s===null){if(Zt){if(y?Oi(o):Ni(),Zt){var H=Mn,K;if(K=H){e:{for(K=H,H=ls;K.nodeType!==8;){if(!H){H=null;break e}if(K=qa(K.nextSibling),K===null){H=null;break e}}H=K}H!==null?(o.memoizedState={dehydrated:H,treeContext:Ao!==null?{id:Us,overflow:Bs}:null,retryLane:536870912,hydrationErrors:null},K=ea(18,null,null,0),K.stateNode=H,K.return=o,o.child=K,Or=o,Mn=null,K=!0):K=!1}K||Co(o)}if(H=o.memoizedState,H!==null&&(H=H.dehydrated,H!==null))return $p(H)?o.lanes=32:o.lanes=536870912,null;$s(o)}return H=f.children,f=f.fallback,y?(Ni(),y=o.mode,H=$0({mode:"hidden",children:H},y),f=To(f,y,c,null),H.return=o,f.return=o,H.sibling=f,o.child=H,y=o.child,y.memoizedState=op(c),y.childLanes=lp(s,O,c),o.memoizedState=ip,f):(Oi(o),up(o,H))}if(K=s.memoizedState,K!==null&&(H=K.dehydrated,H!==null)){if(x)o.flags&256?(Oi(o),o.flags&=-257,o=cp(s,o,c)):o.memoizedState!==null?(Ni(),o.child=s.child,o.flags|=128,o=null):(Ni(),y=f.fallback,H=o.mode,f=$0({mode:"visible",children:f.children},H),y=To(y,H,c,null),y.flags|=2,f.return=o,y.return=o,f.sibling=y,o.child=f,kl(o,s.child,null,c),f=o.child,f.memoizedState=op(c),f.childLanes=lp(s,O,c),o.memoizedState=ip,o=y);else if(Oi(o),$p(H)){if(O=H.nextSibling&&H.nextSibling.dataset,O)var he=O.dgst;O=he,f=Error(r(419)),f.stack="",f.digest=O,sc({value:f,source:null,stack:null}),o=cp(s,o,c)}else if(sr||ic(s,o,c,!1),O=(c&s.childLanes)!==0,sr||O){if(O=mn,O!==null&&(f=c&-c,f=(f&42)!==0?1:On(f),f=(f&(O.suspendedLanes|c))!==0?0:f,f!==0&&f!==K.retryLane))throw K.retryLane=f,xl(s,f),sa(O,s,f),l3;H.data==="$?"||Rp(),o=cp(s,o,c)}else H.data==="$?"?(o.flags|=192,o.child=s.child,o=null):(s=K.treeContext,Mn=qa(H.nextSibling),Or=o,Zt=!0,wo=null,ls=!1,s!==null&&(ya[ba++]=Us,ya[ba++]=Bs,ya[ba++]=Ao,Us=s.id,Bs=s.overflow,Ao=o),o=up(o,f.children),o.flags|=4096);return o}return y?(Ni(),y=f.fallback,H=o.mode,K=s.child,he=K.sibling,f=Fs(K,{mode:"hidden",children:f.children}),f.subtreeFlags=K.subtreeFlags&65011712,he!==null?y=Fs(he,y):(y=To(y,H,c,null),y.flags|=2),y.return=o,f.return=o,f.sibling=y,o.child=f,f=y,y=o.child,H=s.child.memoizedState,H===null?H=op(c):(K=H.cachePool,K!==null?(he=er._currentValue,K=K.parent!==he?{parent:he,pool:he}:K):K=rb(),H={baseLanes:H.baseLanes|c,cachePool:K}),y.memoizedState=H,y.childLanes=lp(s,O,c),o.memoizedState=ip,f):(Oi(o),c=s.child,s=c.sibling,c=Fs(c,{mode:"visible",children:f.children}),c.return=o,c.sibling=null,s!==null&&(O=o.deletions,O===null?(o.deletions=[s],o.flags|=16):O.push(s)),o.child=c,o.memoizedState=null,c)}function up(s,o){return o=$0({mode:"visible",children:o},s.mode),o.return=s,s.child=o}function $0(s,o){return s=ea(22,s,null,o),s.lanes=0,s.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null},s}function cp(s,o,c){return kl(o,s.child,null,c),s=up(o,o.pendingProps.children),s.flags|=2,o.memoizedState=null,s}function y3(s,o,c){s.lanes|=o;var f=s.alternate;f!==null&&(f.lanes|=o),Rm(s.return,o,c)}function dp(s,o,c,f,y){var x=s.memoizedState;x===null?s.memoizedState={isBackwards:o,rendering:null,renderingStartTime:0,last:f,tail:c,tailMode:y}:(x.isBackwards=o,x.rendering=null,x.renderingStartTime=0,x.last=f,x.tail=c,x.tailMode=y)}function b3(s,o,c){var f=o.pendingProps,y=f.revealOrder,x=f.tail;if(pr(s,o,f.children,c),f=tr.current,(f&2)!==0)f=f&1|2,o.flags|=128;else{if(s!==null&&(s.flags&128)!==0)e:for(s=o.child;s!==null;){if(s.tag===13)s.memoizedState!==null&&y3(s,c,o);else if(s.tag===19)y3(s,c,o);else if(s.child!==null){s.child.return=s,s=s.child;continue}if(s===o)break e;for(;s.sibling===null;){if(s.return===null||s.return===o)break e;s=s.return}s.sibling.return=s.return,s=s.sibling}f&=1}switch(j(tr,f),y){case"forwards":for(c=o.child,y=null;c!==null;)s=c.alternate,s!==null&&B0(s)===null&&(y=c),c=c.sibling;c=y,c===null?(y=o.child,o.child=null):(y=c.sibling,c.sibling=null),dp(o,!1,y,c,x);break;case"backwards":for(c=null,y=o.child,o.child=null;y!==null;){if(s=y.alternate,s!==null&&B0(s)===null){o.child=y;break}s=y.sibling,y.sibling=c,c=y,y=s}dp(o,!0,c,null,x);break;case"together":dp(o,!1,null,null,void 0);break;default:o.memoizedState=null}return o.child}function Zs(s,o,c){if(s!==null&&(o.dependencies=s.dependencies),Li|=o.lanes,(c&o.childLanes)===0)if(s!==null){if(ic(s,o,c,!1),(c&o.childLanes)===0)return null}else return null;if(s!==null&&o.child!==s.child)throw Error(r(153));if(o.child!==null){for(s=o.child,c=Fs(s,s.pendingProps),o.child=c,c.return=o;s.sibling!==null;)s=s.sibling,c=c.sibling=Fs(s,s.pendingProps),c.return=o;c.sibling=null}return o.child}function fp(s,o){return(s.lanes&o)!==0?!0:(s=s.dependencies,!!(s!==null&&S0(s)))}function zP(s,o,c){switch(o.tag){case 3:Te(o,o.stateNode.containerInfo),Ai(o,er,s.memoizedState.cache),ac();break;case 27:case 5:Ae(o);break;case 4:Te(o,o.stateNode.containerInfo);break;case 10:Ai(o,o.type,o.memoizedProps.value);break;case 13:var f=o.memoizedState;if(f!==null)return f.dehydrated!==null?(Oi(o),o.flags|=128,null):(c&o.child.childLanes)!==0?v3(s,o,c):(Oi(o),s=Zs(s,o,c),s!==null?s.sibling:null);Oi(o);break;case 19:var y=(s.flags&128)!==0;if(f=(c&o.childLanes)!==0,f||(ic(s,o,c,!1),f=(c&o.childLanes)!==0),y){if(f)return b3(s,o,c);o.flags|=128}if(y=o.memoizedState,y!==null&&(y.rendering=null,y.tail=null,y.lastEffect=null),j(tr,tr.current),f)break;return null;case 22:case 23:return o.lanes=0,f3(s,o,c);case 24:Ai(o,er,s.memoizedState.cache)}return Zs(s,o,c)}function E3(s,o,c){if(s!==null)if(s.memoizedProps!==o.pendingProps)sr=!0;else{if(!fp(s,c)&&(o.flags&128)===0)return sr=!1,zP(s,o,c);sr=(s.flags&131072)!==0}else sr=!1,Zt&&(o.flags&1048576)!==0&&Ky(o,A0,o.index);switch(o.lanes=0,o.tag){case 16:e:{s=o.pendingProps;var f=o.elementType,y=f._init;if(f=y(f._payload),o.type=f,typeof f=="function")xm(f)?(s=ko(f,s),o.tag=1,o=p3(null,o,f,s,c)):(o.tag=0,o=sp(null,o,f,s,c));else{if(f!=null){if(y=f.$$typeof,y===L){o.tag=11,o=u3(null,o,f,s,c);break e}else if(y===M){o.tag=14,o=c3(null,o,f,s,c);break e}}throw o=Y(f)||f,Error(r(306,o,""))}}return o;case 0:return sp(s,o,o.type,o.pendingProps,c);case 1:return f=o.type,y=ko(f,o.pendingProps),p3(s,o,f,y,c);case 3:e:{if(Te(o,o.stateNode.containerInfo),s===null)throw Error(r(387));f=o.pendingProps;var x=o.memoizedState;y=x.element,Lm(s,o),hc(o,f,null,c);var O=o.memoizedState;if(f=O.cache,Ai(o,er,f),f!==x.cache&&Om(o,[er],c,!0),fc(),f=O.element,x.isDehydrated)if(x={element:f,isDehydrated:!1,cache:O.cache},o.updateQueue.baseState=x,o.memoizedState=x,o.flags&256){o=g3(s,o,f,c);break e}else if(f!==y){y=ga(Error(r(424)),o),sc(y),o=g3(s,o,f,c);break e}else{switch(s=o.stateNode.containerInfo,s.nodeType){case 9:s=s.body;break;default:s=s.nodeName==="HTML"?s.ownerDocument.body:s}for(Mn=qa(s.firstChild),Or=o,Zt=!0,wo=null,ls=!0,c=Wb(o,null,f,c),o.child=c;c;)c.flags=c.flags&-3|4096,c=c.sibling}else{if(ac(),f===y){o=Zs(s,o,c);break e}pr(s,o,f,c)}o=o.child}return o;case 26:return q0(s,o),s===null?(c=AE(o.type,null,o.pendingProps,null))?o.memoizedState=c:Zt||(c=o.type,s=o.pendingProps,f=sf(q.current).createElement(c),f[_n]=o,f[nn]=s,vr(f,c,s),at(f),o.stateNode=f):o.memoizedState=AE(o.type,s.memoizedProps,o.pendingProps,s.memoizedState),null;case 27:return Ae(o),s===null&&Zt&&(f=o.stateNode=xE(o.type,o.pendingProps,q.current),Or=o,ls=!0,y=Mn,Fi(o.type)?(Zp=y,Mn=qa(f.firstChild)):Mn=y),pr(s,o,o.pendingProps.children,c),q0(s,o),s===null&&(o.flags|=4194304),o.child;case 5:return s===null&&Zt&&((y=f=Mn)&&(f=vk(f,o.type,o.pendingProps,ls),f!==null?(o.stateNode=f,Or=o,Mn=qa(f.firstChild),ls=!1,y=!0):y=!1),y||Co(o)),Ae(o),y=o.type,x=o.pendingProps,O=s!==null?s.memoizedProps:null,f=x.children,Vp(y,x)?f=null:O!==null&&Vp(y,O)&&(o.flags|=32),o.memoizedState!==null&&(y=Bm(s,o,LP,null,null,c),Lc._currentValue=y),q0(s,o),pr(s,o,f,c),o.child;case 6:return s===null&&Zt&&((s=c=Mn)&&(c=yk(c,o.pendingProps,ls),c!==null?(o.stateNode=c,Or=o,Mn=null,s=!0):s=!1),s||Co(o)),null;case 13:return v3(s,o,c);case 4:return Te(o,o.stateNode.containerInfo),f=o.pendingProps,s===null?o.child=kl(o,null,f,c):pr(s,o,f,c),o.child;case 11:return u3(s,o,o.type,o.pendingProps,c);case 7:return pr(s,o,o.pendingProps,c),o.child;case 8:return pr(s,o,o.pendingProps.children,c),o.child;case 12:return pr(s,o,o.pendingProps.children,c),o.child;case 10:return f=o.pendingProps,Ai(o,o.type,f.value),pr(s,o,f.children,c),o.child;case 9:return y=o.type._context,f=o.pendingProps.children,Oo(o),y=_r(y),f=f(y),o.flags|=1,pr(s,o,f,c),o.child;case 14:return c3(s,o,o.type,o.pendingProps,c);case 15:return d3(s,o,o.type,o.pendingProps,c);case 19:return b3(s,o,c);case 31:return f=o.pendingProps,c=o.mode,f={mode:f.mode,children:f.children},s===null?(c=$0(f,c),c.ref=o.ref,o.child=c,c.return=o,o=c):(c=Fs(s.child,f),c.ref=o.ref,o.child=c,c.return=o,o=c),o;case 22:return f3(s,o,c);case 24:return Oo(o),f=_r(er),s===null?(y=km(),y===null&&(y=mn,x=Nm(),y.pooledCache=x,x.refCount++,x!==null&&(y.pooledCacheLanes|=c),y=x),o.memoizedState={parent:f,cache:y},Mm(o),Ai(o,er,y)):((s.lanes&c)!==0&&(Lm(s,o),hc(o,null,null,c),fc()),y=s.memoizedState,x=o.memoizedState,y.parent!==f?(y={parent:f,cache:f},o.memoizedState=y,o.lanes===0&&(o.memoizedState=o.updateQueue.baseState=y),Ai(o,er,f)):(f=x.cache,Ai(o,er,f),f!==y.cache&&Om(o,[er],c,!0))),pr(s,o,o.pendingProps.children,c),o.child;case 29:throw o.pendingProps}throw Error(r(156,o.tag))}function Qs(s){s.flags|=4}function x3(s,o){if(o.type!=="stylesheet"||(o.state.loading&4)!==0)s.flags&=-16777217;else if(s.flags|=16777216,!OE(o)){if(o=Ea.current,o!==null&&((Ft&4194048)===Ft?us!==null:(Ft&62914560)!==Ft&&(Ft&536870912)===0||o!==us))throw cc=Dm,ab;s.flags|=8192}}function Z0(s,o){o!==null&&(s.flags|=4),s.flags&16384&&(o=s.tag!==22?cl():536870912,s.lanes|=o,Il|=o)}function Ec(s,o){if(!Zt)switch(s.tailMode){case"hidden":o=s.tail;for(var c=null;o!==null;)o.alternate!==null&&(c=o),o=o.sibling;c===null?s.tail=null:c.sibling=null;break;case"collapsed":c=s.tail;for(var f=null;c!==null;)c.alternate!==null&&(f=c),c=c.sibling;f===null?o||s.tail===null?s.tail=null:s.tail.sibling=null:f.sibling=null}}function Pn(s){var o=s.alternate!==null&&s.alternate.child===s.child,c=0,f=0;if(o)for(var y=s.child;y!==null;)c|=y.lanes|y.childLanes,f|=y.subtreeFlags&65011712,f|=y.flags&65011712,y.return=s,y=y.sibling;else for(y=s.child;y!==null;)c|=y.lanes|y.childLanes,f|=y.subtreeFlags,f|=y.flags,y.return=s,y=y.sibling;return s.subtreeFlags|=f,s.childLanes=c,o}function qP(s,o,c){var f=o.pendingProps;switch(Sm(o),o.tag){case 31:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Pn(o),null;case 1:return Pn(o),null;case 3:return c=o.stateNode,f=null,s!==null&&(f=s.memoizedState.cache),o.memoizedState.cache!==f&&(o.flags|=2048),zs(er),qe(),c.pendingContext&&(c.context=c.pendingContext,c.pendingContext=null),(s===null||s.child===null)&&(rc(o)?Qs(o):s===null||s.memoizedState.isDehydrated&&(o.flags&256)===0||(o.flags|=1024,Jy())),Pn(o),null;case 26:return c=o.memoizedState,s===null?(Qs(o),c!==null?(Pn(o),x3(o,c)):(Pn(o),o.flags&=-16777217)):c?c!==s.memoizedState?(Qs(o),Pn(o),x3(o,c)):(Pn(o),o.flags&=-16777217):(s.memoizedProps!==f&&Qs(o),Pn(o),o.flags&=-16777217),null;case 27:Oe(o),c=q.current;var y=o.type;if(s!==null&&o.stateNode!=null)s.memoizedProps!==f&&Qs(o);else{if(!f){if(o.stateNode===null)throw Error(r(166));return Pn(o),null}s=Ee.current,rc(o)?Xy(o):(s=xE(y,f,c),o.stateNode=s,Qs(o))}return Pn(o),null;case 5:if(Oe(o),c=o.type,s!==null&&o.stateNode!=null)s.memoizedProps!==f&&Qs(o);else{if(!f){if(o.stateNode===null)throw Error(r(166));return Pn(o),null}if(s=Ee.current,rc(o))Xy(o);else{switch(y=sf(q.current),s){case 1:s=y.createElementNS("http://www.w3.org/2000/svg",c);break;case 2:s=y.createElementNS("http://www.w3.org/1998/Math/MathML",c);break;default:switch(c){case"svg":s=y.createElementNS("http://www.w3.org/2000/svg",c);break;case"math":s=y.createElementNS("http://www.w3.org/1998/Math/MathML",c);break;case"script":s=y.createElement("div"),s.innerHTML="<script><\/script>",s=s.removeChild(s.firstChild);break;case"select":s=typeof f.is=="string"?y.createElement("select",{is:f.is}):y.createElement("select"),f.multiple?s.multiple=!0:f.size&&(s.size=f.size);break;default:s=typeof f.is=="string"?y.createElement(c,{is:f.is}):y.createElement(c)}}s[_n]=o,s[nn]=f;e:for(y=o.child;y!==null;){if(y.tag===5||y.tag===6)s.appendChild(y.stateNode);else if(y.tag!==4&&y.tag!==27&&y.child!==null){y.child.return=y,y=y.child;continue}if(y===o)break e;for(;y.sibling===null;){if(y.return===null||y.return===o)break e;y=y.return}y.sibling.return=y.return,y=y.sibling}o.stateNode=s;e:switch(vr(s,c,f),c){case"button":case"input":case"select":case"textarea":s=!!f.autoFocus;break e;case"img":s=!0;break e;default:s=!1}s&&Qs(o)}}return Pn(o),o.flags&=-16777217,null;case 6:if(s&&o.stateNode!=null)s.memoizedProps!==f&&Qs(o);else{if(typeof f!="string"&&o.stateNode===null)throw Error(r(166));if(s=q.current,rc(o)){if(s=o.stateNode,c=o.memoizedProps,f=null,y=Or,y!==null)switch(y.tag){case 27:case 5:f=y.memoizedProps}s[_n]=o,s=!!(s.nodeValue===c||f!==null&&f.suppressHydrationWarning===!0||mE(s.nodeValue,c)),s||Co(o)}else s=sf(s).createTextNode(f),s[_n]=o,o.stateNode=s}return Pn(o),null;case 13:if(f=o.memoizedState,s===null||s.memoizedState!==null&&s.memoizedState.dehydrated!==null){if(y=rc(o),f!==null&&f.dehydrated!==null){if(s===null){if(!y)throw Error(r(318));if(y=o.memoizedState,y=y!==null?y.dehydrated:null,!y)throw Error(r(317));y[_n]=o}else ac(),(o.flags&128)===0&&(o.memoizedState=null),o.flags|=4;Pn(o),y=!1}else y=Jy(),s!==null&&s.memoizedState!==null&&(s.memoizedState.hydrationErrors=y),y=!0;if(!y)return o.flags&256?($s(o),o):($s(o),null)}if($s(o),(o.flags&128)!==0)return o.lanes=c,o;if(c=f!==null,s=s!==null&&s.memoizedState!==null,c){f=o.child,y=null,f.alternate!==null&&f.alternate.memoizedState!==null&&f.alternate.memoizedState.cachePool!==null&&(y=f.alternate.memoizedState.cachePool.pool);var x=null;f.memoizedState!==null&&f.memoizedState.cachePool!==null&&(x=f.memoizedState.cachePool.pool),x!==y&&(f.flags|=2048)}return c!==s&&c&&(o.child.flags|=8192),Z0(o,o.updateQueue),Pn(o),null;case 4:return qe(),s===null&&jp(o.stateNode.containerInfo),Pn(o),null;case 10:return zs(o.type),Pn(o),null;case 19:if(ge(tr),y=o.memoizedState,y===null)return Pn(o),null;if(f=(o.flags&128)!==0,x=y.rendering,x===null)if(f)Ec(y,!1);else{if(Ln!==0||s!==null&&(s.flags&128)!==0)for(s=o.child;s!==null;){if(x=B0(s),x!==null){for(o.flags|=128,Ec(y,!1),s=x.updateQueue,o.updateQueue=s,Z0(o,s),o.subtreeFlags=0,s=c,c=o.child;c!==null;)Gy(c,s),c=c.sibling;return j(tr,tr.current&1|2),o.child}s=s.sibling}y.tail!==null&&st()>G0&&(o.flags|=128,f=!0,Ec(y,!1),o.lanes=4194304)}else{if(!f)if(s=B0(x),s!==null){if(o.flags|=128,f=!0,s=s.updateQueue,o.updateQueue=s,Z0(o,s),Ec(y,!0),y.tail===null&&y.tailMode==="hidden"&&!x.alternate&&!Zt)return Pn(o),null}else 2*st()-y.renderingStartTime>G0&&c!==536870912&&(o.flags|=128,f=!0,Ec(y,!1),o.lanes=4194304);y.isBackwards?(x.sibling=o.child,o.child=x):(s=y.last,s!==null?s.sibling=x:o.child=x,y.last=x)}return y.tail!==null?(o=y.tail,y.rendering=o,y.tail=o.sibling,y.renderingStartTime=st(),o.sibling=null,s=tr.current,j(tr,f?s&1|2:s&1),o):(Pn(o),null);case 22:case 23:return $s(o),Fm(),f=o.memoizedState!==null,s!==null?s.memoizedState!==null!==f&&(o.flags|=8192):f&&(o.flags|=8192),f?(c&536870912)!==0&&(o.flags&128)===0&&(Pn(o),o.subtreeFlags&6&&(o.flags|=8192)):Pn(o),c=o.updateQueue,c!==null&&Z0(o,c.retryQueue),c=null,s!==null&&s.memoizedState!==null&&s.memoizedState.cachePool!==null&&(c=s.memoizedState.cachePool.pool),f=null,o.memoizedState!==null&&o.memoizedState.cachePool!==null&&(f=o.memoizedState.cachePool.pool),f!==c&&(o.flags|=2048),s!==null&&ge(No),null;case 24:return c=null,s!==null&&(c=s.memoizedState.cache),o.memoizedState.cache!==c&&(o.flags|=2048),zs(er),Pn(o),null;case 25:return null;case 30:return null}throw Error(r(156,o.tag))}function $P(s,o){switch(Sm(o),o.tag){case 1:return s=o.flags,s&65536?(o.flags=s&-65537|128,o):null;case 3:return zs(er),qe(),s=o.flags,(s&65536)!==0&&(s&128)===0?(o.flags=s&-65537|128,o):null;case 26:case 27:case 5:return Oe(o),null;case 13:if($s(o),s=o.memoizedState,s!==null&&s.dehydrated!==null){if(o.alternate===null)throw Error(r(340));ac()}return s=o.flags,s&65536?(o.flags=s&-65537|128,o):null;case 19:return ge(tr),null;case 4:return qe(),null;case 10:return zs(o.type),null;case 22:case 23:return $s(o),Fm(),s!==null&&ge(No),s=o.flags,s&65536?(o.flags=s&-65537|128,o):null;case 24:return zs(er),null;case 25:return null;default:return null}}function _3(s,o){switch(Sm(o),o.tag){case 3:zs(er),qe();break;case 26:case 27:case 5:Oe(o);break;case 4:qe();break;case 13:$s(o);break;case 19:ge(tr);break;case 10:zs(o.type);break;case 22:case 23:$s(o),Fm(),s!==null&&ge(No);break;case 24:zs(er)}}function xc(s,o){try{var c=o.updateQueue,f=c!==null?c.lastEffect:null;if(f!==null){var y=f.next;c=y;do{if((c.tag&s)===s){f=void 0;var x=c.create,O=c.inst;f=x(),O.destroy=f}c=c.next}while(c!==y)}}catch(H){dn(o,o.return,H)}}function Pi(s,o,c){try{var f=o.updateQueue,y=f!==null?f.lastEffect:null;if(y!==null){var x=y.next;f=x;do{if((f.tag&s)===s){var O=f.inst,H=O.destroy;if(H!==void 0){O.destroy=void 0,y=o;var K=c,he=H;try{he()}catch(we){dn(y,K,we)}}}f=f.next}while(f!==x)}}catch(we){dn(o,o.return,we)}}function T3(s){var o=s.updateQueue;if(o!==null){var c=s.stateNode;try{cb(o,c)}catch(f){dn(s,s.return,f)}}}function A3(s,o,c){c.props=ko(s.type,s.memoizedProps),c.state=s.memoizedState;try{c.componentWillUnmount()}catch(f){dn(s,o,f)}}function _c(s,o){try{var c=s.ref;if(c!==null){switch(s.tag){case 26:case 27:case 5:var f=s.stateNode;break;case 30:f=s.stateNode;break;default:f=s.stateNode}typeof c=="function"?s.refCleanup=c(f):c.current=f}}catch(y){dn(s,o,y)}}function cs(s,o){var c=s.ref,f=s.refCleanup;if(c!==null)if(typeof f=="function")try{f()}catch(y){dn(s,o,y)}finally{s.refCleanup=null,s=s.alternate,s!=null&&(s.refCleanup=null)}else if(typeof c=="function")try{c(null)}catch(y){dn(s,o,y)}else c.current=null}function S3(s){var o=s.type,c=s.memoizedProps,f=s.stateNode;try{e:switch(o){case"button":case"input":case"select":case"textarea":c.autoFocus&&f.focus();break e;case"img":c.src?f.src=c.src:c.srcSet&&(f.srcset=c.srcSet)}}catch(y){dn(s,s.return,y)}}function hp(s,o,c){try{var f=s.stateNode;fk(f,s.type,c,o),f[nn]=o}catch(y){dn(s,s.return,y)}}function w3(s){return s.tag===5||s.tag===3||s.tag===26||s.tag===27&&Fi(s.type)||s.tag===4}function mp(s){e:for(;;){for(;s.sibling===null;){if(s.return===null||w3(s.return))return null;s=s.return}for(s.sibling.return=s.return,s=s.sibling;s.tag!==5&&s.tag!==6&&s.tag!==18;){if(s.tag===27&&Fi(s.type)||s.flags&2||s.child===null||s.tag===4)continue e;s.child.return=s,s=s.child}if(!(s.flags&2))return s.stateNode}}function pp(s,o,c){var f=s.tag;if(f===5||f===6)s=s.stateNode,o?(c.nodeType===9?c.body:c.nodeName==="HTML"?c.ownerDocument.body:c).insertBefore(s,o):(o=c.nodeType===9?c.body:c.nodeName==="HTML"?c.ownerDocument.body:c,o.appendChild(s),c=c._reactRootContainer,c!=null||o.onclick!==null||(o.onclick=af));else if(f!==4&&(f===27&&Fi(s.type)&&(c=s.stateNode,o=null),s=s.child,s!==null))for(pp(s,o,c),s=s.sibling;s!==null;)pp(s,o,c),s=s.sibling}function Q0(s,o,c){var f=s.tag;if(f===5||f===6)s=s.stateNode,o?c.insertBefore(s,o):c.appendChild(s);else if(f!==4&&(f===27&&Fi(s.type)&&(c=s.stateNode),s=s.child,s!==null))for(Q0(s,o,c),s=s.sibling;s!==null;)Q0(s,o,c),s=s.sibling}function C3(s){var o=s.stateNode,c=s.memoizedProps;try{for(var f=s.type,y=o.attributes;y.length;)o.removeAttributeNode(y[0]);vr(o,f,c),o[_n]=s,o[nn]=c}catch(x){dn(s,s.return,x)}}var Ys=!1,Un=!1,gp=!1,R3=typeof WeakSet=="function"?WeakSet:Set,ir=null;function ZP(s,o){if(s=s.containerInfo,Up=ff,s=Fy(s),mm(s)){if("selectionStart"in s)var c={start:s.selectionStart,end:s.selectionEnd};else e:{c=(c=s.ownerDocument)&&c.defaultView||window;var f=c.getSelection&&c.getSelection();if(f&&f.rangeCount!==0){c=f.anchorNode;var y=f.anchorOffset,x=f.focusNode;f=f.focusOffset;try{c.nodeType,x.nodeType}catch{c=null;break e}var O=0,H=-1,K=-1,he=0,we=0,Re=s,ve=null;t:for(;;){for(var be;Re!==c||y!==0&&Re.nodeType!==3||(H=O+y),Re!==x||f!==0&&Re.nodeType!==3||(K=O+f),Re.nodeType===3&&(O+=Re.nodeValue.length),(be=Re.firstChild)!==null;)ve=Re,Re=be;for(;;){if(Re===s)break t;if(ve===c&&++he===y&&(H=O),ve===x&&++we===f&&(K=O),(be=Re.nextSibling)!==null)break;Re=ve,ve=Re.parentNode}Re=be}c=H===-1||K===-1?null:{start:H,end:K}}else c=null}c=c||{start:0,end:0}}else c=null;for(Bp={focusedElem:s,selectionRange:c},ff=!1,ir=o;ir!==null;)if(o=ir,s=o.child,(o.subtreeFlags&1024)!==0&&s!==null)s.return=o,ir=s;else for(;ir!==null;){switch(o=ir,x=o.alternate,s=o.flags,o.tag){case 0:break;case 11:case 15:break;case 1:if((s&1024)!==0&&x!==null){s=void 0,c=o,y=x.memoizedProps,x=x.memoizedState,f=c.stateNode;try{var mt=ko(c.type,y,c.elementType===c.type);s=f.getSnapshotBeforeUpdate(mt,x),f.__reactInternalSnapshotBeforeUpdate=s}catch(ft){dn(c,c.return,ft)}}break;case 3:if((s&1024)!==0){if(s=o.stateNode.containerInfo,c=s.nodeType,c===9)qp(s);else if(c===1)switch(s.nodeName){case"HEAD":case"HTML":case"BODY":qp(s);break;default:s.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((s&1024)!==0)throw Error(r(163))}if(s=o.sibling,s!==null){s.return=o.return,ir=s;break}ir=o.return}}function O3(s,o,c){var f=c.flags;switch(c.tag){case 0:case 11:case 15:ki(s,c),f&4&&xc(5,c);break;case 1:if(ki(s,c),f&4)if(s=c.stateNode,o===null)try{s.componentDidMount()}catch(O){dn(c,c.return,O)}else{var y=ko(c.type,o.memoizedProps);o=o.memoizedState;try{s.componentDidUpdate(y,o,s.__reactInternalSnapshotBeforeUpdate)}catch(O){dn(c,c.return,O)}}f&64&&T3(c),f&512&&_c(c,c.return);break;case 3:if(ki(s,c),f&64&&(s=c.updateQueue,s!==null)){if(o=null,c.child!==null)switch(c.child.tag){case 27:case 5:o=c.child.stateNode;break;case 1:o=c.child.stateNode}try{cb(s,o)}catch(O){dn(c,c.return,O)}}break;case 27:o===null&&f&4&&C3(c);case 26:case 5:ki(s,c),o===null&&f&4&&S3(c),f&512&&_c(c,c.return);break;case 12:ki(s,c);break;case 13:ki(s,c),f&4&&k3(s,c),f&64&&(s=c.memoizedState,s!==null&&(s=s.dehydrated,s!==null&&(c=tk.bind(null,c),bk(s,c))));break;case 22:if(f=c.memoizedState!==null||Ys,!f){o=o!==null&&o.memoizedState!==null||Un,y=Ys;var x=Un;Ys=f,(Un=o)&&!x?Di(s,c,(c.subtreeFlags&8772)!==0):ki(s,c),Ys=y,Un=x}break;case 30:break;default:ki(s,c)}}function N3(s){var o=s.alternate;o!==null&&(s.alternate=null,N3(o)),s.child=null,s.deletions=null,s.sibling=null,s.tag===5&&(o=s.stateNode,o!==null&&tt(o)),s.stateNode=null,s.return=null,s.dependencies=null,s.memoizedProps=null,s.memoizedState=null,s.pendingProps=null,s.stateNode=null,s.updateQueue=null}var An=null,Ur=!1;function Gs(s,o,c){for(c=c.child;c!==null;)P3(s,o,c),c=c.sibling}function P3(s,o,c){if(Se&&typeof Se.onCommitFiberUnmount=="function")try{Se.onCommitFiberUnmount(ie,c)}catch{}switch(c.tag){case 26:Un||cs(c,o),Gs(s,o,c),c.memoizedState?c.memoizedState.count--:c.stateNode&&(c=c.stateNode,c.parentNode.removeChild(c));break;case 27:Un||cs(c,o);var f=An,y=Ur;Fi(c.type)&&(An=c.stateNode,Ur=!1),Gs(s,o,c),Pc(c.stateNode),An=f,Ur=y;break;case 5:Un||cs(c,o);case 6:if(f=An,y=Ur,An=null,Gs(s,o,c),An=f,Ur=y,An!==null)if(Ur)try{(An.nodeType===9?An.body:An.nodeName==="HTML"?An.ownerDocument.body:An).removeChild(c.stateNode)}catch(x){dn(c,o,x)}else try{An.removeChild(c.stateNode)}catch(x){dn(c,o,x)}break;case 18:An!==null&&(Ur?(s=An,bE(s.nodeType===9?s.body:s.nodeName==="HTML"?s.ownerDocument.body:s,c.stateNode),Fc(s)):bE(An,c.stateNode));break;case 4:f=An,y=Ur,An=c.stateNode.containerInfo,Ur=!0,Gs(s,o,c),An=f,Ur=y;break;case 0:case 11:case 14:case 15:Un||Pi(2,c,o),Un||Pi(4,c,o),Gs(s,o,c);break;case 1:Un||(cs(c,o),f=c.stateNode,typeof f.componentWillUnmount=="function"&&A3(c,o,f)),Gs(s,o,c);break;case 21:Gs(s,o,c);break;case 22:Un=(f=Un)||c.memoizedState!==null,Gs(s,o,c),Un=f;break;default:Gs(s,o,c)}}function k3(s,o){if(o.memoizedState===null&&(s=o.alternate,s!==null&&(s=s.memoizedState,s!==null&&(s=s.dehydrated,s!==null))))try{Fc(s)}catch(c){dn(o,o.return,c)}}function QP(s){switch(s.tag){case 13:case 19:var o=s.stateNode;return o===null&&(o=s.stateNode=new R3),o;case 22:return s=s.stateNode,o=s._retryCache,o===null&&(o=s._retryCache=new R3),o;default:throw Error(r(435,s.tag))}}function vp(s,o){var c=QP(s);o.forEach(function(f){var y=nk.bind(null,s,f);c.has(f)||(c.add(f),f.then(y,y))})}function ta(s,o){var c=o.deletions;if(c!==null)for(var f=0;f<c.length;f++){var y=c[f],x=s,O=o,H=O;e:for(;H!==null;){switch(H.tag){case 27:if(Fi(H.type)){An=H.stateNode,Ur=!1;break e}break;case 5:An=H.stateNode,Ur=!1;break e;case 3:case 4:An=H.stateNode.containerInfo,Ur=!0;break e}H=H.return}if(An===null)throw Error(r(160));P3(x,O,y),An=null,Ur=!1,x=y.alternate,x!==null&&(x.return=null),y.return=null}if(o.subtreeFlags&13878)for(o=o.child;o!==null;)D3(o,s),o=o.sibling}var za=null;function D3(s,o){var c=s.alternate,f=s.flags;switch(s.tag){case 0:case 11:case 14:case 15:ta(o,s),na(s),f&4&&(Pi(3,s,s.return),xc(3,s),Pi(5,s,s.return));break;case 1:ta(o,s),na(s),f&512&&(Un||c===null||cs(c,c.return)),f&64&&Ys&&(s=s.updateQueue,s!==null&&(f=s.callbacks,f!==null&&(c=s.shared.hiddenCallbacks,s.shared.hiddenCallbacks=c===null?f:c.concat(f))));break;case 26:var y=za;if(ta(o,s),na(s),f&512&&(Un||c===null||cs(c,c.return)),f&4){var x=c!==null?c.memoizedState:null;if(f=s.memoizedState,c===null)if(f===null)if(s.stateNode===null){e:{f=s.type,c=s.memoizedProps,y=y.ownerDocument||y;t:switch(f){case"title":x=y.getElementsByTagName("title")[0],(!x||x[ye]||x[_n]||x.namespaceURI==="http://www.w3.org/2000/svg"||x.hasAttribute("itemprop"))&&(x=y.createElement(f),y.head.insertBefore(x,y.querySelector("head > title"))),vr(x,f,c),x[_n]=s,at(x),f=x;break e;case"link":var O=CE("link","href",y).get(f+(c.href||""));if(O){for(var H=0;H<O.length;H++)if(x=O[H],x.getAttribute("href")===(c.href==null||c.href===""?null:c.href)&&x.getAttribute("rel")===(c.rel==null?null:c.rel)&&x.getAttribute("title")===(c.title==null?null:c.title)&&x.getAttribute("crossorigin")===(c.crossOrigin==null?null:c.crossOrigin)){O.splice(H,1);break t}}x=y.createElement(f),vr(x,f,c),y.head.appendChild(x);break;case"meta":if(O=CE("meta","content",y).get(f+(c.content||""))){for(H=0;H<O.length;H++)if(x=O[H],x.getAttribute("content")===(c.content==null?null:""+c.content)&&x.getAttribute("name")===(c.name==null?null:c.name)&&x.getAttribute("property")===(c.property==null?null:c.property)&&x.getAttribute("http-equiv")===(c.httpEquiv==null?null:c.httpEquiv)&&x.getAttribute("charset")===(c.charSet==null?null:c.charSet)){O.splice(H,1);break t}}x=y.createElement(f),vr(x,f,c),y.head.appendChild(x);break;default:throw Error(r(468,f))}x[_n]=s,at(x),f=x}s.stateNode=f}else RE(y,s.type,s.stateNode);else s.stateNode=wE(y,f,s.memoizedProps);else x!==f?(x===null?c.stateNode!==null&&(c=c.stateNode,c.parentNode.removeChild(c)):x.count--,f===null?RE(y,s.type,s.stateNode):wE(y,f,s.memoizedProps)):f===null&&s.stateNode!==null&&hp(s,s.memoizedProps,c.memoizedProps)}break;case 27:ta(o,s),na(s),f&512&&(Un||c===null||cs(c,c.return)),c!==null&&f&4&&hp(s,s.memoizedProps,c.memoizedProps);break;case 5:if(ta(o,s),na(s),f&512&&(Un||c===null||cs(c,c.return)),s.flags&32){y=s.stateNode;try{ml(y,"")}catch(be){dn(s,s.return,be)}}f&4&&s.stateNode!=null&&(y=s.memoizedProps,hp(s,y,c!==null?c.memoizedProps:y)),f&1024&&(gp=!0);break;case 6:if(ta(o,s),na(s),f&4){if(s.stateNode===null)throw Error(r(162));f=s.memoizedProps,c=s.stateNode;try{c.nodeValue=f}catch(be){dn(s,s.return,be)}}break;case 3:if(uf=null,y=za,za=of(o.containerInfo),ta(o,s),za=y,na(s),f&4&&c!==null&&c.memoizedState.isDehydrated)try{Fc(o.containerInfo)}catch(be){dn(s,s.return,be)}gp&&(gp=!1,M3(s));break;case 4:f=za,za=of(s.stateNode.containerInfo),ta(o,s),na(s),za=f;break;case 12:ta(o,s),na(s);break;case 13:ta(o,s),na(s),s.child.flags&8192&&s.memoizedState!==null!=(c!==null&&c.memoizedState!==null)&&(Tp=st()),f&4&&(f=s.updateQueue,f!==null&&(s.updateQueue=null,vp(s,f)));break;case 22:y=s.memoizedState!==null;var K=c!==null&&c.memoizedState!==null,he=Ys,we=Un;if(Ys=he||y,Un=we||K,ta(o,s),Un=we,Ys=he,na(s),f&8192)e:for(o=s.stateNode,o._visibility=y?o._visibility&-2:o._visibility|1,y&&(c===null||K||Ys||Un||Do(s)),c=null,o=s;;){if(o.tag===5||o.tag===26){if(c===null){K=c=o;try{if(x=K.stateNode,y)O=x.style,typeof O.setProperty=="function"?O.setProperty("display","none","important"):O.display="none";else{H=K.stateNode;var Re=K.memoizedProps.style,ve=Re!=null&&Re.hasOwnProperty("display")?Re.display:null;H.style.display=ve==null||typeof ve=="boolean"?"":(""+ve).trim()}}catch(be){dn(K,K.return,be)}}}else if(o.tag===6){if(c===null){K=o;try{K.stateNode.nodeValue=y?"":K.memoizedProps}catch(be){dn(K,K.return,be)}}}else if((o.tag!==22&&o.tag!==23||o.memoizedState===null||o===s)&&o.child!==null){o.child.return=o,o=o.child;continue}if(o===s)break e;for(;o.sibling===null;){if(o.return===null||o.return===s)break e;c===o&&(c=null),o=o.return}c===o&&(c=null),o.sibling.return=o.return,o=o.sibling}f&4&&(f=s.updateQueue,f!==null&&(c=f.retryQueue,c!==null&&(f.retryQueue=null,vp(s,c))));break;case 19:ta(o,s),na(s),f&4&&(f=s.updateQueue,f!==null&&(s.updateQueue=null,vp(s,f)));break;case 30:break;case 21:break;default:ta(o,s),na(s)}}function na(s){var o=s.flags;if(o&2){try{for(var c,f=s.return;f!==null;){if(w3(f)){c=f;break}f=f.return}if(c==null)throw Error(r(160));switch(c.tag){case 27:var y=c.stateNode,x=mp(s);Q0(s,x,y);break;case 5:var O=c.stateNode;c.flags&32&&(ml(O,""),c.flags&=-33);var H=mp(s);Q0(s,H,O);break;case 3:case 4:var K=c.stateNode.containerInfo,he=mp(s);pp(s,he,K);break;default:throw Error(r(161))}}catch(we){dn(s,s.return,we)}s.flags&=-3}o&4096&&(s.flags&=-4097)}function M3(s){if(s.subtreeFlags&1024)for(s=s.child;s!==null;){var o=s;M3(o),o.tag===5&&o.flags&1024&&o.stateNode.reset(),s=s.sibling}}function ki(s,o){if(o.subtreeFlags&8772)for(o=o.child;o!==null;)O3(s,o.alternate,o),o=o.sibling}function Do(s){for(s=s.child;s!==null;){var o=s;switch(o.tag){case 0:case 11:case 14:case 15:Pi(4,o,o.return),Do(o);break;case 1:cs(o,o.return);var c=o.stateNode;typeof c.componentWillUnmount=="function"&&A3(o,o.return,c),Do(o);break;case 27:Pc(o.stateNode);case 26:case 5:cs(o,o.return),Do(o);break;case 22:o.memoizedState===null&&Do(o);break;case 30:Do(o);break;default:Do(o)}s=s.sibling}}function Di(s,o,c){for(c=c&&(o.subtreeFlags&8772)!==0,o=o.child;o!==null;){var f=o.alternate,y=s,x=o,O=x.flags;switch(x.tag){case 0:case 11:case 15:Di(y,x,c),xc(4,x);break;case 1:if(Di(y,x,c),f=x,y=f.stateNode,typeof y.componentDidMount=="function")try{y.componentDidMount()}catch(he){dn(f,f.return,he)}if(f=x,y=f.updateQueue,y!==null){var H=f.stateNode;try{var K=y.shared.hiddenCallbacks;if(K!==null)for(y.shared.hiddenCallbacks=null,y=0;y<K.length;y++)ub(K[y],H)}catch(he){dn(f,f.return,he)}}c&&O&64&&T3(x),_c(x,x.return);break;case 27:C3(x);case 26:case 5:Di(y,x,c),c&&f===null&&O&4&&S3(x),_c(x,x.return);break;case 12:Di(y,x,c);break;case 13:Di(y,x,c),c&&O&4&&k3(y,x);break;case 22:x.memoizedState===null&&Di(y,x,c),_c(x,x.return);break;case 30:break;default:Di(y,x,c)}o=o.sibling}}function yp(s,o){var c=null;s!==null&&s.memoizedState!==null&&s.memoizedState.cachePool!==null&&(c=s.memoizedState.cachePool.pool),s=null,o.memoizedState!==null&&o.memoizedState.cachePool!==null&&(s=o.memoizedState.cachePool.pool),s!==c&&(s!=null&&s.refCount++,c!=null&&oc(c))}function bp(s,o){s=null,o.alternate!==null&&(s=o.alternate.memoizedState.cache),o=o.memoizedState.cache,o!==s&&(o.refCount++,s!=null&&oc(s))}function ds(s,o,c,f){if(o.subtreeFlags&10256)for(o=o.child;o!==null;)L3(s,o,c,f),o=o.sibling}function L3(s,o,c,f){var y=o.flags;switch(o.tag){case 0:case 11:case 15:ds(s,o,c,f),y&2048&&xc(9,o);break;case 1:ds(s,o,c,f);break;case 3:ds(s,o,c,f),y&2048&&(s=null,o.alternate!==null&&(s=o.alternate.memoizedState.cache),o=o.memoizedState.cache,o!==s&&(o.refCount++,s!=null&&oc(s)));break;case 12:if(y&2048){ds(s,o,c,f),s=o.stateNode;try{var x=o.memoizedProps,O=x.id,H=x.onPostCommit;typeof H=="function"&&H(O,o.alternate===null?"mount":"update",s.passiveEffectDuration,-0)}catch(K){dn(o,o.return,K)}}else ds(s,o,c,f);break;case 13:ds(s,o,c,f);break;case 23:break;case 22:x=o.stateNode,O=o.alternate,o.memoizedState!==null?x._visibility&2?ds(s,o,c,f):Tc(s,o):x._visibility&2?ds(s,o,c,f):(x._visibility|=2,Dl(s,o,c,f,(o.subtreeFlags&10256)!==0)),y&2048&&yp(O,o);break;case 24:ds(s,o,c,f),y&2048&&bp(o.alternate,o);break;default:ds(s,o,c,f)}}function Dl(s,o,c,f,y){for(y=y&&(o.subtreeFlags&10256)!==0,o=o.child;o!==null;){var x=s,O=o,H=c,K=f,he=O.flags;switch(O.tag){case 0:case 11:case 15:Dl(x,O,H,K,y),xc(8,O);break;case 23:break;case 22:var we=O.stateNode;O.memoizedState!==null?we._visibility&2?Dl(x,O,H,K,y):Tc(x,O):(we._visibility|=2,Dl(x,O,H,K,y)),y&&he&2048&&yp(O.alternate,O);break;case 24:Dl(x,O,H,K,y),y&&he&2048&&bp(O.alternate,O);break;default:Dl(x,O,H,K,y)}o=o.sibling}}function Tc(s,o){if(o.subtreeFlags&10256)for(o=o.child;o!==null;){var c=s,f=o,y=f.flags;switch(f.tag){case 22:Tc(c,f),y&2048&&yp(f.alternate,f);break;case 24:Tc(c,f),y&2048&&bp(f.alternate,f);break;default:Tc(c,f)}o=o.sibling}}var Ac=8192;function Ml(s){if(s.subtreeFlags&Ac)for(s=s.child;s!==null;)I3(s),s=s.sibling}function I3(s){switch(s.tag){case 26:Ml(s),s.flags&Ac&&s.memoizedState!==null&&kk(za,s.memoizedState,s.memoizedProps);break;case 5:Ml(s);break;case 3:case 4:var o=za;za=of(s.stateNode.containerInfo),Ml(s),za=o;break;case 22:s.memoizedState===null&&(o=s.alternate,o!==null&&o.memoizedState!==null?(o=Ac,Ac=16777216,Ml(s),Ac=o):Ml(s));break;default:Ml(s)}}function j3(s){var o=s.alternate;if(o!==null&&(s=o.child,s!==null)){o.child=null;do o=s.sibling,s.sibling=null,s=o;while(s!==null)}}function Sc(s){var o=s.deletions;if((s.flags&16)!==0){if(o!==null)for(var c=0;c<o.length;c++){var f=o[c];ir=f,F3(f,s)}j3(s)}if(s.subtreeFlags&10256)for(s=s.child;s!==null;)H3(s),s=s.sibling}function H3(s){switch(s.tag){case 0:case 11:case 15:Sc(s),s.flags&2048&&Pi(9,s,s.return);break;case 3:Sc(s);break;case 12:Sc(s);break;case 22:var o=s.stateNode;s.memoizedState!==null&&o._visibility&2&&(s.return===null||s.return.tag!==13)?(o._visibility&=-3,Y0(s)):Sc(s);break;default:Sc(s)}}function Y0(s){var o=s.deletions;if((s.flags&16)!==0){if(o!==null)for(var c=0;c<o.length;c++){var f=o[c];ir=f,F3(f,s)}j3(s)}for(s=s.child;s!==null;){switch(o=s,o.tag){case 0:case 11:case 15:Pi(8,o,o.return),Y0(o);break;case 22:c=o.stateNode,c._visibility&2&&(c._visibility&=-3,Y0(o));break;default:Y0(o)}s=s.sibling}}function F3(s,o){for(;ir!==null;){var c=ir;switch(c.tag){case 0:case 11:case 15:Pi(8,c,o);break;case 23:case 22:if(c.memoizedState!==null&&c.memoizedState.cachePool!==null){var f=c.memoizedState.cachePool.pool;f!=null&&f.refCount++}break;case 24:oc(c.memoizedState.cache)}if(f=c.child,f!==null)f.return=c,ir=f;else e:for(c=s;ir!==null;){f=ir;var y=f.sibling,x=f.return;if(N3(f),f===c){ir=null;break e}if(y!==null){y.return=x,ir=y;break e}ir=x}}}var YP={getCacheForType:function(s){var o=_r(er),c=o.data.get(s);return c===void 0&&(c=s(),o.data.set(s,c)),c}},GP=typeof WeakMap=="function"?WeakMap:Map,Kt=0,mn=null,Pt=null,Ft=0,Xt=0,ra=null,Mi=!1,Ll=!1,Ep=!1,Ks=0,Ln=0,Li=0,Mo=0,xp=0,xa=0,Il=0,wc=null,Br=null,_p=!1,Tp=0,G0=1/0,K0=null,Ii=null,gr=0,ji=null,jl=null,Hl=0,Ap=0,Sp=null,U3=null,Cc=0,wp=null;function aa(){if((Kt&2)!==0&&Ft!==0)return Ft&-Ft;if(V.T!==null){var s=Sl;return s!==0?s:Dp()}return Fa()}function B3(){xa===0&&(xa=(Ft&536870912)===0||Zt?Kr():536870912);var s=Ea.current;return s!==null&&(s.flags|=32),xa}function sa(s,o,c){(s===mn&&(Xt===2||Xt===9)||s.cancelPendingCommit!==null)&&(Fl(s,0),Hi(s,Ft,xa,!1)),is(s,c),((Kt&2)===0||s!==mn)&&(s===mn&&((Kt&2)===0&&(Mo|=c),Ln===4&&Hi(s,Ft,xa,!1)),fs(s))}function V3(s,o,c){if((Kt&6)!==0)throw Error(r(327));var f=!c&&(o&124)===0&&(o&s.expiredLanes)===0||un(s,o),y=f?WP(s,o):Op(s,o,!0),x=f;do{if(y===0){Ll&&!f&&Hi(s,o,0,!1);break}else{if(c=s.current.alternate,x&&!KP(c)){y=Op(s,o,!1),x=!1;continue}if(y===2){if(x=o,s.errorRecoveryDisabledLanes&x)var O=0;else O=s.pendingLanes&-536870913,O=O!==0?O:O&536870912?536870912:0;if(O!==0){o=O;e:{var H=s;y=wc;var K=H.current.memoizedState.isDehydrated;if(K&&(Fl(H,O).flags|=256),O=Op(H,O,!1),O!==2){if(Ep&&!K){H.errorRecoveryDisabledLanes|=x,Mo|=x,y=4;break e}x=Br,Br=y,x!==null&&(Br===null?Br=x:Br.push.apply(Br,x))}y=O}if(x=!1,y!==2)continue}}if(y===1){Fl(s,0),Hi(s,o,0,!0);break}e:{switch(f=s,x=y,x){case 0:case 1:throw Error(r(345));case 4:if((o&4194048)!==o)break;case 6:Hi(f,o,xa,!Mi);break e;case 2:Br=null;break;case 3:case 5:break;default:throw Error(r(329))}if((o&62914560)===o&&(y=Tp+300-st(),10<y)){if(Hi(f,o,xa,!Mi),ln(f,0,!0)!==0)break e;f.timeoutHandle=vE(z3.bind(null,f,c,Br,K0,_p,o,xa,Mo,Il,Mi,x,2,-0,0),y);break e}z3(f,c,Br,K0,_p,o,xa,Mo,Il,Mi,x,0,-0,0)}}break}while(!0);fs(s)}function z3(s,o,c,f,y,x,O,H,K,he,we,Re,ve,be){if(s.timeoutHandle=-1,Re=o.subtreeFlags,(Re&8192||(Re&16785408)===16785408)&&(Mc={stylesheets:null,count:0,unsuspend:Pk},I3(o),Re=Dk(),Re!==null)){s.cancelPendingCommit=Re(K3.bind(null,s,o,x,c,f,y,O,H,K,we,1,ve,be)),Hi(s,x,O,!he);return}K3(s,o,x,c,f,y,O,H,K)}function KP(s){for(var o=s;;){var c=o.tag;if((c===0||c===11||c===15)&&o.flags&16384&&(c=o.updateQueue,c!==null&&(c=c.stores,c!==null)))for(var f=0;f<c.length;f++){var y=c[f],x=y.getSnapshot;y=y.value;try{if(!Jr(x(),y))return!1}catch{return!1}}if(c=o.child,o.subtreeFlags&16384&&c!==null)c.return=o,o=c;else{if(o===s)break;for(;o.sibling===null;){if(o.return===null||o.return===s)return!0;o=o.return}o.sibling.return=o.return,o=o.sibling}}return!0}function Hi(s,o,c,f){o&=~xp,o&=~Mo,s.suspendedLanes|=o,s.pingedLanes&=~o,f&&(s.warmLanes|=o),f=s.expirationTimes;for(var y=o;0<y;){var x=31-$e(y),O=1<<x;f[x]=-1,y&=~O}c!==0&&dt(s,c,o)}function X0(){return(Kt&6)===0?(Rc(0),!1):!0}function Cp(){if(Pt!==null){if(Xt===0)var s=Pt.return;else s=Pt,Vs=Ro=null,qm(s),Pl=null,yc=0,s=Pt;for(;s!==null;)_3(s.alternate,s),s=s.return;Pt=null}}function Fl(s,o){var c=s.timeoutHandle;c!==-1&&(s.timeoutHandle=-1,mk(c)),c=s.cancelPendingCommit,c!==null&&(s.cancelPendingCommit=null,c()),Cp(),mn=s,Pt=c=Fs(s.current,null),Ft=o,Xt=0,ra=null,Mi=!1,Ll=un(s,o),Ep=!1,Il=xa=xp=Mo=Li=Ln=0,Br=wc=null,_p=!1,(o&8)!==0&&(o|=o&32);var f=s.entangledLanes;if(f!==0)for(s=s.entanglements,f&=o;0<f;){var y=31-$e(f),x=1<<y;o|=s[y],f&=~x}return Ks=o,b0(),c}function q3(s,o){Ct=null,V.H=H0,o===uc||o===R0?(o=ob(),Xt=3):o===ab?(o=ob(),Xt=4):Xt=o===l3?8:o!==null&&typeof o=="object"&&typeof o.then=="function"?6:1,ra=o,Pt===null&&(Ln=1,z0(s,ga(o,s.current)))}function $3(){var s=V.H;return V.H=H0,s===null?H0:s}function Z3(){var s=V.A;return V.A=YP,s}function Rp(){Ln=4,Mi||(Ft&4194048)!==Ft&&Ea.current!==null||(Ll=!0),(Li&134217727)===0&&(Mo&134217727)===0||mn===null||Hi(mn,Ft,xa,!1)}function Op(s,o,c){var f=Kt;Kt|=2;var y=$3(),x=Z3();(mn!==s||Ft!==o)&&(K0=null,Fl(s,o)),o=!1;var O=Ln;e:do try{if(Xt!==0&&Pt!==null){var H=Pt,K=ra;switch(Xt){case 8:Cp(),O=6;break e;case 3:case 2:case 9:case 6:Ea.current===null&&(o=!0);var he=Xt;if(Xt=0,ra=null,Ul(s,H,K,he),c&&Ll){O=0;break e}break;default:he=Xt,Xt=0,ra=null,Ul(s,H,K,he)}}XP(),O=Ln;break}catch(we){q3(s,we)}while(!0);return o&&s.shellSuspendCounter++,Vs=Ro=null,Kt=f,V.H=y,V.A=x,Pt===null&&(mn=null,Ft=0,b0()),O}function XP(){for(;Pt!==null;)Q3(Pt)}function WP(s,o){var c=Kt;Kt|=2;var f=$3(),y=Z3();mn!==s||Ft!==o?(K0=null,G0=st()+500,Fl(s,o)):Ll=un(s,o);e:do try{if(Xt!==0&&Pt!==null){o=Pt;var x=ra;t:switch(Xt){case 1:Xt=0,ra=null,Ul(s,o,x,1);break;case 2:case 9:if(sb(x)){Xt=0,ra=null,Y3(o);break}o=function(){Xt!==2&&Xt!==9||mn!==s||(Xt=7),fs(s)},x.then(o,o);break e;case 3:Xt=7;break e;case 4:Xt=5;break e;case 7:sb(x)?(Xt=0,ra=null,Y3(o)):(Xt=0,ra=null,Ul(s,o,x,7));break;case 5:var O=null;switch(Pt.tag){case 26:O=Pt.memoizedState;case 5:case 27:var H=Pt;if(!O||OE(O)){Xt=0,ra=null;var K=H.sibling;if(K!==null)Pt=K;else{var he=H.return;he!==null?(Pt=he,W0(he)):Pt=null}break t}}Xt=0,ra=null,Ul(s,o,x,5);break;case 6:Xt=0,ra=null,Ul(s,o,x,6);break;case 8:Cp(),Ln=6;break e;default:throw Error(r(462))}}JP();break}catch(we){q3(s,we)}while(!0);return Vs=Ro=null,V.H=f,V.A=y,Kt=c,Pt!==null?0:(mn=null,Ft=0,b0(),Ln)}function JP(){for(;Pt!==null&&!Ht();)Q3(Pt)}function Q3(s){var o=E3(s.alternate,s,Ks);s.memoizedProps=s.pendingProps,o===null?W0(s):Pt=o}function Y3(s){var o=s,c=o.alternate;switch(o.tag){case 15:case 0:o=m3(c,o,o.pendingProps,o.type,void 0,Ft);break;case 11:o=m3(c,o,o.pendingProps,o.type.render,o.ref,Ft);break;case 5:qm(o);default:_3(c,o),o=Pt=Gy(o,Ks),o=E3(c,o,Ks)}s.memoizedProps=s.pendingProps,o===null?W0(s):Pt=o}function Ul(s,o,c,f){Vs=Ro=null,qm(o),Pl=null,yc=0;var y=o.return;try{if(VP(s,y,o,c,Ft)){Ln=1,z0(s,ga(c,s.current)),Pt=null;return}}catch(x){if(y!==null)throw Pt=y,x;Ln=1,z0(s,ga(c,s.current)),Pt=null;return}o.flags&32768?(Zt||f===1?s=!0:Ll||(Ft&536870912)!==0?s=!1:(Mi=s=!0,(f===2||f===9||f===3||f===6)&&(f=Ea.current,f!==null&&f.tag===13&&(f.flags|=16384))),G3(o,s)):W0(o)}function W0(s){var o=s;do{if((o.flags&32768)!==0){G3(o,Mi);return}s=o.return;var c=qP(o.alternate,o,Ks);if(c!==null){Pt=c;return}if(o=o.sibling,o!==null){Pt=o;return}Pt=o=s}while(o!==null);Ln===0&&(Ln=5)}function G3(s,o){do{var c=$P(s.alternate,s);if(c!==null){c.flags&=32767,Pt=c;return}if(c=s.return,c!==null&&(c.flags|=32768,c.subtreeFlags=0,c.deletions=null),!o&&(s=s.sibling,s!==null)){Pt=s;return}Pt=s=c}while(s!==null);Ln=6,Pt=null}function K3(s,o,c,f,y,x,O,H,K){s.cancelPendingCommit=null;do J0();while(gr!==0);if((Kt&6)!==0)throw Error(r(327));if(o!==null){if(o===s.current)throw Error(r(177));if(x=o.lanes|o.childLanes,x|=bm,dl(s,c,x,O,H,K),s===mn&&(Pt=mn=null,Ft=0),jl=o,ji=s,Hl=c,Ap=x,Sp=y,U3=f,(o.subtreeFlags&10256)!==0||(o.flags&10256)!==0?(s.callbackNode=null,s.callbackPriority=0,rk(ce,function(){return tE(),null})):(s.callbackNode=null,s.callbackPriority=0),f=(o.flags&13878)!==0,(o.subtreeFlags&13878)!==0||f){f=V.T,V.T=null,y=J.p,J.p=2,O=Kt,Kt|=4;try{ZP(s,o,c)}finally{Kt=O,J.p=y,V.T=f}}gr=1,X3(),W3(),J3()}}function X3(){if(gr===1){gr=0;var s=ji,o=jl,c=(o.flags&13878)!==0;if((o.subtreeFlags&13878)!==0||c){c=V.T,V.T=null;var f=J.p;J.p=2;var y=Kt;Kt|=4;try{D3(o,s);var x=Bp,O=Fy(s.containerInfo),H=x.focusedElem,K=x.selectionRange;if(O!==H&&H&&H.ownerDocument&&Hy(H.ownerDocument.documentElement,H)){if(K!==null&&mm(H)){var he=K.start,we=K.end;if(we===void 0&&(we=he),"selectionStart"in H)H.selectionStart=he,H.selectionEnd=Math.min(we,H.value.length);else{var Re=H.ownerDocument||document,ve=Re&&Re.defaultView||window;if(ve.getSelection){var be=ve.getSelection(),mt=H.textContent.length,ft=Math.min(K.start,mt),on=K.end===void 0?ft:Math.min(K.end,mt);!be.extend&&ft>on&&(O=on,on=ft,ft=O);var ue=jy(H,ft),re=jy(H,on);if(ue&&re&&(be.rangeCount!==1||be.anchorNode!==ue.node||be.anchorOffset!==ue.offset||be.focusNode!==re.node||be.focusOffset!==re.offset)){var de=Re.createRange();de.setStart(ue.node,ue.offset),be.removeAllRanges(),ft>on?(be.addRange(de),be.extend(re.node,re.offset)):(de.setEnd(re.node,re.offset),be.addRange(de))}}}}for(Re=[],be=H;be=be.parentNode;)be.nodeType===1&&Re.push({element:be,left:be.scrollLeft,top:be.scrollTop});for(typeof H.focus=="function"&&H.focus(),H=0;H<Re.length;H++){var Ce=Re[H];Ce.element.scrollLeft=Ce.left,Ce.element.scrollTop=Ce.top}}ff=!!Up,Bp=Up=null}finally{Kt=y,J.p=f,V.T=c}}s.current=o,gr=2}}function W3(){if(gr===2){gr=0;var s=ji,o=jl,c=(o.flags&8772)!==0;if((o.subtreeFlags&8772)!==0||c){c=V.T,V.T=null;var f=J.p;J.p=2;var y=Kt;Kt|=4;try{O3(s,o.alternate,o)}finally{Kt=y,J.p=f,V.T=c}}gr=3}}function J3(){if(gr===4||gr===3){gr=0,_t();var s=ji,o=jl,c=Hl,f=U3;(o.subtreeFlags&10256)!==0||(o.flags&10256)!==0?gr=5:(gr=0,jl=ji=null,eE(s,s.pendingLanes));var y=s.pendingLanes;if(y===0&&(Ii=null),Jn(c),o=o.stateNode,Se&&typeof Se.onCommitFiberRoot=="function")try{Se.onCommitFiberRoot(ie,o,void 0,(o.current.flags&128)===128)}catch{}if(f!==null){o=V.T,y=J.p,J.p=2,V.T=null;try{for(var x=s.onRecoverableError,O=0;O<f.length;O++){var H=f[O];x(H.value,{componentStack:H.stack})}}finally{V.T=o,J.p=y}}(Hl&3)!==0&&J0(),fs(s),y=s.pendingLanes,(c&4194090)!==0&&(y&42)!==0?s===wp?Cc++:(Cc=0,wp=s):Cc=0,Rc(0)}}function eE(s,o){(s.pooledCacheLanes&=o)===0&&(o=s.pooledCache,o!=null&&(s.pooledCache=null,oc(o)))}function J0(s){return X3(),W3(),J3(),tE()}function tE(){if(gr!==5)return!1;var s=ji,o=Ap;Ap=0;var c=Jn(Hl),f=V.T,y=J.p;try{J.p=32>c?32:c,V.T=null,c=Sp,Sp=null;var x=ji,O=Hl;if(gr=0,jl=ji=null,Hl=0,(Kt&6)!==0)throw Error(r(331));var H=Kt;if(Kt|=4,H3(x.current),L3(x,x.current,O,c),Kt=H,Rc(0,!1),Se&&typeof Se.onPostCommitFiberRoot=="function")try{Se.onPostCommitFiberRoot(ie,x)}catch{}return!0}finally{J.p=y,V.T=f,eE(s,o)}}function nE(s,o,c){o=ga(c,o),o=ap(s.stateNode,o,2),s=Ci(s,o,2),s!==null&&(is(s,2),fs(s))}function dn(s,o,c){if(s.tag===3)nE(s,s,c);else for(;o!==null;){if(o.tag===3){nE(o,s,c);break}else if(o.tag===1){var f=o.stateNode;if(typeof o.type.getDerivedStateFromError=="function"||typeof f.componentDidCatch=="function"&&(Ii===null||!Ii.has(f))){s=ga(c,s),c=i3(2),f=Ci(o,c,2),f!==null&&(o3(c,f,o,s),is(f,2),fs(f));break}}o=o.return}}function Np(s,o,c){var f=s.pingCache;if(f===null){f=s.pingCache=new GP;var y=new Set;f.set(o,y)}else y=f.get(o),y===void 0&&(y=new Set,f.set(o,y));y.has(c)||(Ep=!0,y.add(c),s=ek.bind(null,s,o,c),o.then(s,s))}function ek(s,o,c){var f=s.pingCache;f!==null&&f.delete(o),s.pingedLanes|=s.suspendedLanes&c,s.warmLanes&=~c,mn===s&&(Ft&c)===c&&(Ln===4||Ln===3&&(Ft&62914560)===Ft&&300>st()-Tp?(Kt&2)===0&&Fl(s,0):xp|=c,Il===Ft&&(Il=0)),fs(s)}function rE(s,o){o===0&&(o=cl()),s=xl(s,o),s!==null&&(is(s,o),fs(s))}function tk(s){var o=s.memoizedState,c=0;o!==null&&(c=o.retryLane),rE(s,c)}function nk(s,o){var c=0;switch(s.tag){case 13:var f=s.stateNode,y=s.memoizedState;y!==null&&(c=y.retryLane);break;case 19:f=s.stateNode;break;case 22:f=s.stateNode._retryCache;break;default:throw Error(r(314))}f!==null&&f.delete(o),rE(s,c)}function rk(s,o){return ct(s,o)}var ef=null,Bl=null,Pp=!1,tf=!1,kp=!1,Lo=0;function fs(s){s!==Bl&&s.next===null&&(Bl===null?ef=Bl=s:Bl=Bl.next=s),tf=!0,Pp||(Pp=!0,sk())}function Rc(s,o){if(!kp&&tf){kp=!0;do for(var c=!1,f=ef;f!==null;){if(s!==0){var y=f.pendingLanes;if(y===0)var x=0;else{var O=f.suspendedLanes,H=f.pingedLanes;x=(1<<31-$e(42|s)+1)-1,x&=y&~(O&~H),x=x&201326741?x&201326741|1:x?x|2:0}x!==0&&(c=!0,oE(f,x))}else x=Ft,x=ln(f,f===mn?x:0,f.cancelPendingCommit!==null||f.timeoutHandle!==-1),(x&3)===0||un(f,x)||(c=!0,oE(f,x));f=f.next}while(c);kp=!1}}function ak(){aE()}function aE(){tf=Pp=!1;var s=0;Lo!==0&&(hk()&&(s=Lo),Lo=0);for(var o=st(),c=null,f=ef;f!==null;){var y=f.next,x=sE(f,o);x===0?(f.next=null,c===null?ef=y:c.next=y,y===null&&(Bl=c)):(c=f,(s!==0||(x&3)!==0)&&(tf=!0)),f=y}Rc(s)}function sE(s,o){for(var c=s.suspendedLanes,f=s.pingedLanes,y=s.expirationTimes,x=s.pendingLanes&-62914561;0<x;){var O=31-$e(x),H=1<<O,K=y[O];K===-1?((H&c)===0||(H&f)!==0)&&(y[O]=Zn(H,o)):K<=o&&(s.expiredLanes|=H),x&=~H}if(o=mn,c=Ft,c=ln(s,s===o?c:0,s.cancelPendingCommit!==null||s.timeoutHandle!==-1),f=s.callbackNode,c===0||s===o&&(Xt===2||Xt===9)||s.cancelPendingCommit!==null)return f!==null&&f!==null&&it(f),s.callbackNode=null,s.callbackPriority=0;if((c&3)===0||un(s,c)){if(o=c&-c,o===s.callbackPriority)return o;switch(f!==null&&it(f),Jn(c)){case 2:case 8:c=W;break;case 32:c=ce;break;case 268435456:c=Ne;break;default:c=ce}return f=iE.bind(null,s),c=ct(c,f),s.callbackPriority=o,s.callbackNode=c,o}return f!==null&&f!==null&&it(f),s.callbackPriority=2,s.callbackNode=null,2}function iE(s,o){if(gr!==0&&gr!==5)return s.callbackNode=null,s.callbackPriority=0,null;var c=s.callbackNode;if(J0()&&s.callbackNode!==c)return null;var f=Ft;return f=ln(s,s===mn?f:0,s.cancelPendingCommit!==null||s.timeoutHandle!==-1),f===0?null:(V3(s,f,o),sE(s,st()),s.callbackNode!=null&&s.callbackNode===c?iE.bind(null,s):null)}function oE(s,o){if(J0())return null;V3(s,o,!0)}function sk(){pk(function(){(Kt&6)!==0?ct(bt,ak):aE()})}function Dp(){return Lo===0&&(Lo=Kr()),Lo}function lE(s){return s==null||typeof s=="symbol"||typeof s=="boolean"?null:typeof s=="function"?s:f0(""+s)}function uE(s,o){var c=o.ownerDocument.createElement("input");return c.name=o.name,c.value=o.value,s.id&&c.setAttribute("form",s.id),o.parentNode.insertBefore(c,o),s=new FormData(s),c.parentNode.removeChild(c),s}function ik(s,o,c,f,y){if(o==="submit"&&c&&c.stateNode===y){var x=lE((y[nn]||null).action),O=f.submitter;O&&(o=(o=O[nn]||null)?lE(o.formAction):O.getAttribute("formAction"),o!==null&&(x=o,O=null));var H=new g0("action","action",null,f,y);s.push({event:H,listeners:[{instance:null,listener:function(){if(f.defaultPrevented){if(Lo!==0){var K=O?uE(y,O):new FormData(y);Jm(c,{pending:!0,data:K,method:y.method,action:x},null,K)}}else typeof x=="function"&&(H.preventDefault(),K=O?uE(y,O):new FormData(y),Jm(c,{pending:!0,data:K,method:y.method,action:x},x,K))},currentTarget:y}]})}}for(var Mp=0;Mp<ym.length;Mp++){var Lp=ym[Mp],ok=Lp.toLowerCase(),lk=Lp[0].toUpperCase()+Lp.slice(1);Va(ok,"on"+lk)}Va(Vy,"onAnimationEnd"),Va(zy,"onAnimationIteration"),Va(qy,"onAnimationStart"),Va("dblclick","onDoubleClick"),Va("focusin","onFocus"),Va("focusout","onBlur"),Va(SP,"onTransitionRun"),Va(wP,"onTransitionStart"),Va(CP,"onTransitionCancel"),Va($y,"onTransitionEnd"),$t("onMouseEnter",["mouseout","mouseover"]),$t("onMouseLeave",["mouseout","mouseover"]),$t("onPointerEnter",["pointerout","pointerover"]),$t("onPointerLeave",["pointerout","pointerover"]),ot("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),ot("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),ot("onBeforeInput",["compositionend","keypress","textInput","paste"]),ot("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),ot("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),ot("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Oc="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(" "),uk=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Oc));function cE(s,o){o=(o&4)!==0;for(var c=0;c<s.length;c++){var f=s[c],y=f.event;f=f.listeners;e:{var x=void 0;if(o)for(var O=f.length-1;0<=O;O--){var H=f[O],K=H.instance,he=H.currentTarget;if(H=H.listener,K!==x&&y.isPropagationStopped())break e;x=H,y.currentTarget=he;try{x(y)}catch(we){V0(we)}y.currentTarget=null,x=K}else for(O=0;O<f.length;O++){if(H=f[O],K=H.instance,he=H.currentTarget,H=H.listener,K!==x&&y.isPropagationStopped())break e;x=H,y.currentTarget=he;try{x(y)}catch(we){V0(we)}y.currentTarget=null,x=K}}}}function kt(s,o){var c=o[ee];c===void 0&&(c=o[ee]=new Set);var f=s+"__bubble";c.has(f)||(dE(o,s,2,!1),c.add(f))}function Ip(s,o,c){var f=0;o&&(f|=4),dE(c,s,f,o)}var nf="_reactListening"+Math.random().toString(36).slice(2);function jp(s){if(!s[nf]){s[nf]=!0,Gt.forEach(function(c){c!=="selectionchange"&&(uk.has(c)||Ip(c,!1,s),Ip(c,!0,s))});var o=s.nodeType===9?s:s.ownerDocument;o===null||o[nf]||(o[nf]=!0,Ip("selectionchange",!1,o))}}function dE(s,o,c,f){switch(LE(o)){case 2:var y=Ik;break;case 8:y=jk;break;default:y=Xp}c=y.bind(null,o,c,s),y=void 0,!sm||o!=="touchstart"&&o!=="touchmove"&&o!=="wheel"||(y=!0),f?y!==void 0?s.addEventListener(o,c,{capture:!0,passive:y}):s.addEventListener(o,c,!0):y!==void 0?s.addEventListener(o,c,{passive:y}):s.addEventListener(o,c,!1)}function Hp(s,o,c,f,y){var x=f;if((o&1)===0&&(o&2)===0&&f!==null)e:for(;;){if(f===null)return;var O=f.tag;if(O===3||O===4){var H=f.stateNode.containerInfo;if(H===y)break;if(O===4)for(O=f.return;O!==null;){var K=O.tag;if((K===3||K===4)&&O.stateNode.containerInfo===y)return;O=O.return}for(;H!==null;){if(O=Je(H),O===null)return;if(K=O.tag,K===5||K===6||K===26||K===27){f=x=O;continue e}H=H.parentNode}}f=f.return}yy(function(){var he=x,we=rm(c),Re=[];e:{var ve=Zy.get(s);if(ve!==void 0){var be=g0,mt=s;switch(s){case"keypress":if(m0(c)===0)break e;case"keydown":case"keyup":be=rP;break;case"focusin":mt="focus",be=um;break;case"focusout":mt="blur",be=um;break;case"beforeblur":case"afterblur":be=um;break;case"click":if(c.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":be=xy;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":be=$N;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":be=iP;break;case Vy:case zy:case qy:be=YN;break;case $y:be=lP;break;case"scroll":case"scrollend":be=zN;break;case"wheel":be=cP;break;case"copy":case"cut":case"paste":be=KN;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":be=Ty;break;case"toggle":case"beforetoggle":be=fP}var ft=(o&4)!==0,on=!ft&&(s==="scroll"||s==="scrollend"),ue=ft?ve!==null?ve+"Capture":null:ve;ft=[];for(var re=he,de;re!==null;){var Ce=re;if(de=Ce.stateNode,Ce=Ce.tag,Ce!==5&&Ce!==26&&Ce!==27||de===null||ue===null||(Ce=Yu(re,ue),Ce!=null&&ft.push(Nc(re,Ce,de))),on)break;re=re.return}0<ft.length&&(ve=new be(ve,mt,null,c,we),Re.push({event:ve,listeners:ft}))}}if((o&7)===0){e:{if(ve=s==="mouseover"||s==="pointerover",be=s==="mouseout"||s==="pointerout",ve&&c!==nm&&(mt=c.relatedTarget||c.fromElement)&&(Je(mt)||mt[Hn]))break e;if((be||ve)&&(ve=we.window===we?we:(ve=we.ownerDocument)?ve.defaultView||ve.parentWindow:window,be?(mt=c.relatedTarget||c.toElement,be=he,mt=mt?Je(mt):null,mt!==null&&(on=i(mt),ft=mt.tag,mt!==on||ft!==5&&ft!==27&&ft!==6)&&(mt=null)):(be=null,mt=he),be!==mt)){if(ft=xy,Ce="onMouseLeave",ue="onMouseEnter",re="mouse",(s==="pointerout"||s==="pointerover")&&(ft=Ty,Ce="onPointerLeave",ue="onPointerEnter",re="pointer"),on=be==null?ve:qt(be),de=mt==null?ve:qt(mt),ve=new ft(Ce,re+"leave",be,c,we),ve.target=on,ve.relatedTarget=de,Ce=null,Je(we)===he&&(ft=new ft(ue,re+"enter",mt,c,we),ft.target=de,ft.relatedTarget=on,Ce=ft),on=Ce,be&&mt)t:{for(ft=be,ue=mt,re=0,de=ft;de;de=Vl(de))re++;for(de=0,Ce=ue;Ce;Ce=Vl(Ce))de++;for(;0<re-de;)ft=Vl(ft),re--;for(;0<de-re;)ue=Vl(ue),de--;for(;re--;){if(ft===ue||ue!==null&&ft===ue.alternate)break t;ft=Vl(ft),ue=Vl(ue)}ft=null}else ft=null;be!==null&&fE(Re,ve,be,ft,!1),mt!==null&&on!==null&&fE(Re,on,mt,ft,!0)}}e:{if(ve=he?qt(he):window,be=ve.nodeName&&ve.nodeName.toLowerCase(),be==="select"||be==="input"&&ve.type==="file")var Ge=Py;else if(Oy(ve))if(ky)Ge=_P;else{Ge=EP;var Ot=bP}else be=ve.nodeName,!be||be.toLowerCase()!=="input"||ve.type!=="checkbox"&&ve.type!=="radio"?he&&tm(he.elementType)&&(Ge=Py):Ge=xP;if(Ge&&(Ge=Ge(s,he))){Ny(Re,Ge,c,we);break e}Ot&&Ot(s,ve,he),s==="focusout"&&he&&ve.type==="number"&&he.memoizedProps.value!=null&&em(ve,"number",ve.value)}switch(Ot=he?qt(he):window,s){case"focusin":(Oy(Ot)||Ot.contentEditable==="true")&&(yl=Ot,pm=he,nc=null);break;case"focusout":nc=pm=yl=null;break;case"mousedown":gm=!0;break;case"contextmenu":case"mouseup":case"dragend":gm=!1,Uy(Re,c,we);break;case"selectionchange":if(AP)break;case"keydown":case"keyup":Uy(Re,c,we)}var rt;if(dm)e:{switch(s){case"compositionstart":var ht="onCompositionStart";break e;case"compositionend":ht="onCompositionEnd";break e;case"compositionupdate":ht="onCompositionUpdate";break e}ht=void 0}else vl?Cy(s,c)&&(ht="onCompositionEnd"):s==="keydown"&&c.keyCode===229&&(ht="onCompositionStart");ht&&(Ay&&c.locale!=="ko"&&(vl||ht!=="onCompositionStart"?ht==="onCompositionEnd"&&vl&&(rt=by()):(Ti=we,im="value"in Ti?Ti.value:Ti.textContent,vl=!0)),Ot=rf(he,ht),0<Ot.length&&(ht=new _y(ht,s,null,c,we),Re.push({event:ht,listeners:Ot}),rt?ht.data=rt:(rt=Ry(c),rt!==null&&(ht.data=rt)))),(rt=mP?pP(s,c):gP(s,c))&&(ht=rf(he,"onBeforeInput"),0<ht.length&&(Ot=new _y("onBeforeInput","beforeinput",null,c,we),Re.push({event:Ot,listeners:ht}),Ot.data=rt)),ik(Re,s,he,c,we)}cE(Re,o)})}function Nc(s,o,c){return{instance:s,listener:o,currentTarget:c}}function rf(s,o){for(var c=o+"Capture",f=[];s!==null;){var y=s,x=y.stateNode;if(y=y.tag,y!==5&&y!==26&&y!==27||x===null||(y=Yu(s,c),y!=null&&f.unshift(Nc(s,y,x)),y=Yu(s,o),y!=null&&f.push(Nc(s,y,x))),s.tag===3)return f;s=s.return}return[]}function Vl(s){if(s===null)return null;do s=s.return;while(s&&s.tag!==5&&s.tag!==27);return s||null}function fE(s,o,c,f,y){for(var x=o._reactName,O=[];c!==null&&c!==f;){var H=c,K=H.alternate,he=H.stateNode;if(H=H.tag,K!==null&&K===f)break;H!==5&&H!==26&&H!==27||he===null||(K=he,y?(he=Yu(c,x),he!=null&&O.unshift(Nc(c,he,K))):y||(he=Yu(c,x),he!=null&&O.push(Nc(c,he,K)))),c=c.return}O.length!==0&&s.push({event:o,listeners:O})}var ck=/\r\n?/g,dk=/\u0000|\uFFFD/g;function hE(s){return(typeof s=="string"?s:""+s).replace(ck,`
|
|
89
|
-
`).replace(dk,"")}function mE(s,o){return o=hE(o),hE(s)===o}function af(){}function sn(s,o,c,f,y,x){switch(c){case"children":typeof f=="string"?o==="body"||o==="textarea"&&f===""||ml(s,f):(typeof f=="number"||typeof f=="bigint")&&o!=="body"&&ml(s,""+f);break;case"className":Ba(s,"class",f);break;case"tabIndex":Ba(s,"tabindex",f);break;case"dir":case"role":case"viewBox":case"width":case"height":Ba(s,c,f);break;case"style":gy(s,f,x);break;case"data":if(o!=="object"){Ba(s,"data",f);break}case"src":case"href":if(f===""&&(o!=="a"||c!=="href")){s.removeAttribute(c);break}if(f==null||typeof f=="function"||typeof f=="symbol"||typeof f=="boolean"){s.removeAttribute(c);break}f=f0(""+f),s.setAttribute(c,f);break;case"action":case"formAction":if(typeof f=="function"){s.setAttribute(c,"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 x=="function"&&(c==="formAction"?(o!=="input"&&sn(s,o,"name",y.name,y,null),sn(s,o,"formEncType",y.formEncType,y,null),sn(s,o,"formMethod",y.formMethod,y,null),sn(s,o,"formTarget",y.formTarget,y,null)):(sn(s,o,"encType",y.encType,y,null),sn(s,o,"method",y.method,y,null),sn(s,o,"target",y.target,y,null)));if(f==null||typeof f=="symbol"||typeof f=="boolean"){s.removeAttribute(c);break}f=f0(""+f),s.setAttribute(c,f);break;case"onClick":f!=null&&(s.onclick=af);break;case"onScroll":f!=null&&kt("scroll",s);break;case"onScrollEnd":f!=null&&kt("scrollend",s);break;case"dangerouslySetInnerHTML":if(f!=null){if(typeof f!="object"||!("__html"in f))throw Error(r(61));if(c=f.__html,c!=null){if(y.children!=null)throw Error(r(60));s.innerHTML=c}}break;case"multiple":s.multiple=f&&typeof f!="function"&&typeof f!="symbol";break;case"muted":s.muted=f&&typeof f!="function"&&typeof f!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(f==null||typeof f=="function"||typeof f=="boolean"||typeof f=="symbol"){s.removeAttribute("xlink:href");break}c=f0(""+f),s.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",c);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":f!=null&&typeof f!="function"&&typeof f!="symbol"?s.setAttribute(c,""+f):s.removeAttribute(c);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":f&&typeof f!="function"&&typeof f!="symbol"?s.setAttribute(c,""):s.removeAttribute(c);break;case"capture":case"download":f===!0?s.setAttribute(c,""):f!==!1&&f!=null&&typeof f!="function"&&typeof f!="symbol"?s.setAttribute(c,f):s.removeAttribute(c);break;case"cols":case"rows":case"size":case"span":f!=null&&typeof f!="function"&&typeof f!="symbol"&&!isNaN(f)&&1<=f?s.setAttribute(c,f):s.removeAttribute(c);break;case"rowSpan":case"start":f==null||typeof f=="function"||typeof f=="symbol"||isNaN(f)?s.removeAttribute(c):s.setAttribute(c,f);break;case"popover":kt("beforetoggle",s),kt("toggle",s),Rr(s,"popover",f);break;case"xlinkActuate":hr(s,"http://www.w3.org/1999/xlink","xlink:actuate",f);break;case"xlinkArcrole":hr(s,"http://www.w3.org/1999/xlink","xlink:arcrole",f);break;case"xlinkRole":hr(s,"http://www.w3.org/1999/xlink","xlink:role",f);break;case"xlinkShow":hr(s,"http://www.w3.org/1999/xlink","xlink:show",f);break;case"xlinkTitle":hr(s,"http://www.w3.org/1999/xlink","xlink:title",f);break;case"xlinkType":hr(s,"http://www.w3.org/1999/xlink","xlink:type",f);break;case"xmlBase":hr(s,"http://www.w3.org/XML/1998/namespace","xml:base",f);break;case"xmlLang":hr(s,"http://www.w3.org/XML/1998/namespace","xml:lang",f);break;case"xmlSpace":hr(s,"http://www.w3.org/XML/1998/namespace","xml:space",f);break;case"is":Rr(s,"is",f);break;case"innerText":case"textContent":break;default:(!(2<c.length)||c[0]!=="o"&&c[0]!=="O"||c[1]!=="n"&&c[1]!=="N")&&(c=BN.get(c)||c,Rr(s,c,f))}}function Fp(s,o,c,f,y,x){switch(c){case"style":gy(s,f,x);break;case"dangerouslySetInnerHTML":if(f!=null){if(typeof f!="object"||!("__html"in f))throw Error(r(61));if(c=f.__html,c!=null){if(y.children!=null)throw Error(r(60));s.innerHTML=c}}break;case"children":typeof f=="string"?ml(s,f):(typeof f=="number"||typeof f=="bigint")&&ml(s,""+f);break;case"onScroll":f!=null&&kt("scroll",s);break;case"onScrollEnd":f!=null&&kt("scrollend",s);break;case"onClick":f!=null&&(s.onclick=af);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Tn.hasOwnProperty(c))e:{if(c[0]==="o"&&c[1]==="n"&&(y=c.endsWith("Capture"),o=c.slice(2,y?c.length-7:void 0),x=s[nn]||null,x=x!=null?x[c]:null,typeof x=="function"&&s.removeEventListener(o,x,y),typeof f=="function")){typeof x!="function"&&x!==null&&(c in s?s[c]=null:s.hasAttribute(c)&&s.removeAttribute(c)),s.addEventListener(o,f,y);break e}c in s?s[c]=f:f===!0?s.setAttribute(c,""):Rr(s,c,f)}}}function vr(s,o,c){switch(o){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":kt("error",s),kt("load",s);var f=!1,y=!1,x;for(x in c)if(c.hasOwnProperty(x)){var O=c[x];if(O!=null)switch(x){case"src":f=!0;break;case"srcSet":y=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(r(137,o));default:sn(s,o,x,O,c,null)}}y&&sn(s,o,"srcSet",c.srcSet,c,null),f&&sn(s,o,"src",c.src,c,null);return;case"input":kt("invalid",s);var H=x=O=y=null,K=null,he=null;for(f in c)if(c.hasOwnProperty(f)){var we=c[f];if(we!=null)switch(f){case"name":y=we;break;case"type":O=we;break;case"checked":K=we;break;case"defaultChecked":he=we;break;case"value":x=we;break;case"defaultValue":H=we;break;case"children":case"dangerouslySetInnerHTML":if(we!=null)throw Error(r(137,o));break;default:sn(s,o,f,we,c,null)}}fy(s,x,H,K,he,O,y,!1),bo(s);return;case"select":kt("invalid",s),f=O=x=null;for(y in c)if(c.hasOwnProperty(y)&&(H=c[y],H!=null))switch(y){case"value":x=H;break;case"defaultValue":O=H;break;case"multiple":f=H;default:sn(s,o,y,H,c,null)}o=x,c=O,s.multiple=!!f,o!=null?hl(s,!!f,o,!1):c!=null&&hl(s,!!f,c,!0);return;case"textarea":kt("invalid",s),x=y=f=null;for(O in c)if(c.hasOwnProperty(O)&&(H=c[O],H!=null))switch(O){case"value":f=H;break;case"defaultValue":y=H;break;case"children":x=H;break;case"dangerouslySetInnerHTML":if(H!=null)throw Error(r(91));break;default:sn(s,o,O,H,c,null)}my(s,f,y,x),bo(s);return;case"option":for(K in c)if(c.hasOwnProperty(K)&&(f=c[K],f!=null))switch(K){case"selected":s.selected=f&&typeof f!="function"&&typeof f!="symbol";break;default:sn(s,o,K,f,c,null)}return;case"dialog":kt("beforetoggle",s),kt("toggle",s),kt("cancel",s),kt("close",s);break;case"iframe":case"object":kt("load",s);break;case"video":case"audio":for(f=0;f<Oc.length;f++)kt(Oc[f],s);break;case"image":kt("error",s),kt("load",s);break;case"details":kt("toggle",s);break;case"embed":case"source":case"link":kt("error",s),kt("load",s);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(he in c)if(c.hasOwnProperty(he)&&(f=c[he],f!=null))switch(he){case"children":case"dangerouslySetInnerHTML":throw Error(r(137,o));default:sn(s,o,he,f,c,null)}return;default:if(tm(o)){for(we in c)c.hasOwnProperty(we)&&(f=c[we],f!==void 0&&Fp(s,o,we,f,c,void 0));return}}for(H in c)c.hasOwnProperty(H)&&(f=c[H],f!=null&&sn(s,o,H,f,c,null))}function fk(s,o,c,f){switch(o){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var y=null,x=null,O=null,H=null,K=null,he=null,we=null;for(be in c){var Re=c[be];if(c.hasOwnProperty(be)&&Re!=null)switch(be){case"checked":break;case"value":break;case"defaultValue":K=Re;default:f.hasOwnProperty(be)||sn(s,o,be,null,f,Re)}}for(var ve in f){var be=f[ve];if(Re=c[ve],f.hasOwnProperty(ve)&&(be!=null||Re!=null))switch(ve){case"type":x=be;break;case"name":y=be;break;case"checked":he=be;break;case"defaultChecked":we=be;break;case"value":O=be;break;case"defaultValue":H=be;break;case"children":case"dangerouslySetInnerHTML":if(be!=null)throw Error(r(137,o));break;default:be!==Re&&sn(s,o,ve,be,f,Re)}}J1(s,O,H,K,he,we,x,y);return;case"select":be=O=H=ve=null;for(x in c)if(K=c[x],c.hasOwnProperty(x)&&K!=null)switch(x){case"value":break;case"multiple":be=K;default:f.hasOwnProperty(x)||sn(s,o,x,null,f,K)}for(y in f)if(x=f[y],K=c[y],f.hasOwnProperty(y)&&(x!=null||K!=null))switch(y){case"value":ve=x;break;case"defaultValue":H=x;break;case"multiple":O=x;default:x!==K&&sn(s,o,y,x,f,K)}o=H,c=O,f=be,ve!=null?hl(s,!!c,ve,!1):!!f!=!!c&&(o!=null?hl(s,!!c,o,!0):hl(s,!!c,c?[]:"",!1));return;case"textarea":be=ve=null;for(H in c)if(y=c[H],c.hasOwnProperty(H)&&y!=null&&!f.hasOwnProperty(H))switch(H){case"value":break;case"children":break;default:sn(s,o,H,null,f,y)}for(O in f)if(y=f[O],x=c[O],f.hasOwnProperty(O)&&(y!=null||x!=null))switch(O){case"value":ve=y;break;case"defaultValue":be=y;break;case"children":break;case"dangerouslySetInnerHTML":if(y!=null)throw Error(r(91));break;default:y!==x&&sn(s,o,O,y,f,x)}hy(s,ve,be);return;case"option":for(var mt in c)if(ve=c[mt],c.hasOwnProperty(mt)&&ve!=null&&!f.hasOwnProperty(mt))switch(mt){case"selected":s.selected=!1;break;default:sn(s,o,mt,null,f,ve)}for(K in f)if(ve=f[K],be=c[K],f.hasOwnProperty(K)&&ve!==be&&(ve!=null||be!=null))switch(K){case"selected":s.selected=ve&&typeof ve!="function"&&typeof ve!="symbol";break;default:sn(s,o,K,ve,f,be)}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 ft in c)ve=c[ft],c.hasOwnProperty(ft)&&ve!=null&&!f.hasOwnProperty(ft)&&sn(s,o,ft,null,f,ve);for(he in f)if(ve=f[he],be=c[he],f.hasOwnProperty(he)&&ve!==be&&(ve!=null||be!=null))switch(he){case"children":case"dangerouslySetInnerHTML":if(ve!=null)throw Error(r(137,o));break;default:sn(s,o,he,ve,f,be)}return;default:if(tm(o)){for(var on in c)ve=c[on],c.hasOwnProperty(on)&&ve!==void 0&&!f.hasOwnProperty(on)&&Fp(s,o,on,void 0,f,ve);for(we in f)ve=f[we],be=c[we],!f.hasOwnProperty(we)||ve===be||ve===void 0&&be===void 0||Fp(s,o,we,ve,f,be);return}}for(var ue in c)ve=c[ue],c.hasOwnProperty(ue)&&ve!=null&&!f.hasOwnProperty(ue)&&sn(s,o,ue,null,f,ve);for(Re in f)ve=f[Re],be=c[Re],!f.hasOwnProperty(Re)||ve===be||ve==null&&be==null||sn(s,o,Re,ve,f,be)}var Up=null,Bp=null;function sf(s){return s.nodeType===9?s:s.ownerDocument}function pE(s){switch(s){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function gE(s,o){if(s===0)switch(o){case"svg":return 1;case"math":return 2;default:return 0}return s===1&&o==="foreignObject"?0:s}function Vp(s,o){return s==="textarea"||s==="noscript"||typeof o.children=="string"||typeof o.children=="number"||typeof o.children=="bigint"||typeof o.dangerouslySetInnerHTML=="object"&&o.dangerouslySetInnerHTML!==null&&o.dangerouslySetInnerHTML.__html!=null}var zp=null;function hk(){var s=window.event;return s&&s.type==="popstate"?s===zp?!1:(zp=s,!0):(zp=null,!1)}var vE=typeof setTimeout=="function"?setTimeout:void 0,mk=typeof clearTimeout=="function"?clearTimeout:void 0,yE=typeof Promise=="function"?Promise:void 0,pk=typeof queueMicrotask=="function"?queueMicrotask:typeof yE<"u"?function(s){return yE.resolve(null).then(s).catch(gk)}:vE;function gk(s){setTimeout(function(){throw s})}function Fi(s){return s==="head"}function bE(s,o){var c=o,f=0,y=0;do{var x=c.nextSibling;if(s.removeChild(c),x&&x.nodeType===8)if(c=x.data,c==="/$"){if(0<f&&8>f){c=f;var O=s.ownerDocument;if(c&1&&Pc(O.documentElement),c&2&&Pc(O.body),c&4)for(c=O.head,Pc(c),O=c.firstChild;O;){var H=O.nextSibling,K=O.nodeName;O[ye]||K==="SCRIPT"||K==="STYLE"||K==="LINK"&&O.rel.toLowerCase()==="stylesheet"||c.removeChild(O),O=H}}if(y===0){s.removeChild(x),Fc(o);return}y--}else c==="$"||c==="$?"||c==="$!"?y++:f=c.charCodeAt(0)-48;else f=0;c=x}while(c);Fc(o)}function qp(s){var o=s.firstChild;for(o&&o.nodeType===10&&(o=o.nextSibling);o;){var c=o;switch(o=o.nextSibling,c.nodeName){case"HTML":case"HEAD":case"BODY":qp(c),tt(c);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(c.rel.toLowerCase()==="stylesheet")continue}s.removeChild(c)}}function vk(s,o,c,f){for(;s.nodeType===1;){var y=c;if(s.nodeName.toLowerCase()!==o.toLowerCase()){if(!f&&(s.nodeName!=="INPUT"||s.type!=="hidden"))break}else if(f){if(!s[ye])switch(o){case"meta":if(!s.hasAttribute("itemprop"))break;return s;case"link":if(x=s.getAttribute("rel"),x==="stylesheet"&&s.hasAttribute("data-precedence"))break;if(x!==y.rel||s.getAttribute("href")!==(y.href==null||y.href===""?null:y.href)||s.getAttribute("crossorigin")!==(y.crossOrigin==null?null:y.crossOrigin)||s.getAttribute("title")!==(y.title==null?null:y.title))break;return s;case"style":if(s.hasAttribute("data-precedence"))break;return s;case"script":if(x=s.getAttribute("src"),(x!==(y.src==null?null:y.src)||s.getAttribute("type")!==(y.type==null?null:y.type)||s.getAttribute("crossorigin")!==(y.crossOrigin==null?null:y.crossOrigin))&&x&&s.hasAttribute("async")&&!s.hasAttribute("itemprop"))break;return s;default:return s}}else if(o==="input"&&s.type==="hidden"){var x=y.name==null?null:""+y.name;if(y.type==="hidden"&&s.getAttribute("name")===x)return s}else return s;if(s=qa(s.nextSibling),s===null)break}return null}function yk(s,o,c){if(o==="")return null;for(;s.nodeType!==3;)if((s.nodeType!==1||s.nodeName!=="INPUT"||s.type!=="hidden")&&!c||(s=qa(s.nextSibling),s===null))return null;return s}function $p(s){return s.data==="$!"||s.data==="$?"&&s.ownerDocument.readyState==="complete"}function bk(s,o){var c=s.ownerDocument;if(s.data!=="$?"||c.readyState==="complete")o();else{var f=function(){o(),c.removeEventListener("DOMContentLoaded",f)};c.addEventListener("DOMContentLoaded",f),s._reactRetry=f}}function qa(s){for(;s!=null;s=s.nextSibling){var o=s.nodeType;if(o===1||o===3)break;if(o===8){if(o=s.data,o==="$"||o==="$!"||o==="$?"||o==="F!"||o==="F")break;if(o==="/$")return null}}return s}var Zp=null;function EE(s){s=s.previousSibling;for(var o=0;s;){if(s.nodeType===8){var c=s.data;if(c==="$"||c==="$!"||c==="$?"){if(o===0)return s;o--}else c==="/$"&&o++}s=s.previousSibling}return null}function xE(s,o,c){switch(o=sf(c),s){case"html":if(s=o.documentElement,!s)throw Error(r(452));return s;case"head":if(s=o.head,!s)throw Error(r(453));return s;case"body":if(s=o.body,!s)throw Error(r(454));return s;default:throw Error(r(451))}}function Pc(s){for(var o=s.attributes;o.length;)s.removeAttributeNode(o[0]);tt(s)}var _a=new Map,_E=new Set;function of(s){return typeof s.getRootNode=="function"?s.getRootNode():s.nodeType===9?s:s.ownerDocument}var Xs=J.d;J.d={f:Ek,r:xk,D:_k,C:Tk,L:Ak,m:Sk,X:Ck,S:wk,M:Rk};function Ek(){var s=Xs.f(),o=X0();return s||o}function xk(s){var o=Tt(s);o!==null&&o.tag===5&&o.type==="form"?Vb(o):Xs.r(s)}var zl=typeof document>"u"?null:document;function TE(s,o,c){var f=zl;if(f&&typeof o=="string"&&o){var y=pa(o);y='link[rel="'+s+'"][href="'+y+'"]',typeof c=="string"&&(y+='[crossorigin="'+c+'"]'),_E.has(y)||(_E.add(y),s={rel:s,crossOrigin:c,href:o},f.querySelector(y)===null&&(o=f.createElement("link"),vr(o,"link",s),at(o),f.head.appendChild(o)))}}function _k(s){Xs.D(s),TE("dns-prefetch",s,null)}function Tk(s,o){Xs.C(s,o),TE("preconnect",s,o)}function Ak(s,o,c){Xs.L(s,o,c);var f=zl;if(f&&s&&o){var y='link[rel="preload"][as="'+pa(o)+'"]';o==="image"&&c&&c.imageSrcSet?(y+='[imagesrcset="'+pa(c.imageSrcSet)+'"]',typeof c.imageSizes=="string"&&(y+='[imagesizes="'+pa(c.imageSizes)+'"]')):y+='[href="'+pa(s)+'"]';var x=y;switch(o){case"style":x=ql(s);break;case"script":x=$l(s)}_a.has(x)||(s=v({rel:"preload",href:o==="image"&&c&&c.imageSrcSet?void 0:s,as:o},c),_a.set(x,s),f.querySelector(y)!==null||o==="style"&&f.querySelector(kc(x))||o==="script"&&f.querySelector(Dc(x))||(o=f.createElement("link"),vr(o,"link",s),at(o),f.head.appendChild(o)))}}function Sk(s,o){Xs.m(s,o);var c=zl;if(c&&s){var f=o&&typeof o.as=="string"?o.as:"script",y='link[rel="modulepreload"][as="'+pa(f)+'"][href="'+pa(s)+'"]',x=y;switch(f){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":x=$l(s)}if(!_a.has(x)&&(s=v({rel:"modulepreload",href:s},o),_a.set(x,s),c.querySelector(y)===null)){switch(f){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(c.querySelector(Dc(x)))return}f=c.createElement("link"),vr(f,"link",s),at(f),c.head.appendChild(f)}}}function wk(s,o,c){Xs.S(s,o,c);var f=zl;if(f&&s){var y=rn(f).hoistableStyles,x=ql(s);o=o||"default";var O=y.get(x);if(!O){var H={loading:0,preload:null};if(O=f.querySelector(kc(x)))H.loading=5;else{s=v({rel:"stylesheet",href:s,"data-precedence":o},c),(c=_a.get(x))&&Qp(s,c);var K=O=f.createElement("link");at(K),vr(K,"link",s),K._p=new Promise(function(he,we){K.onload=he,K.onerror=we}),K.addEventListener("load",function(){H.loading|=1}),K.addEventListener("error",function(){H.loading|=2}),H.loading|=4,lf(O,o,f)}O={type:"stylesheet",instance:O,count:1,state:H},y.set(x,O)}}}function Ck(s,o){Xs.X(s,o);var c=zl;if(c&&s){var f=rn(c).hoistableScripts,y=$l(s),x=f.get(y);x||(x=c.querySelector(Dc(y)),x||(s=v({src:s,async:!0},o),(o=_a.get(y))&&Yp(s,o),x=c.createElement("script"),at(x),vr(x,"link",s),c.head.appendChild(x)),x={type:"script",instance:x,count:1,state:null},f.set(y,x))}}function Rk(s,o){Xs.M(s,o);var c=zl;if(c&&s){var f=rn(c).hoistableScripts,y=$l(s),x=f.get(y);x||(x=c.querySelector(Dc(y)),x||(s=v({src:s,async:!0,type:"module"},o),(o=_a.get(y))&&Yp(s,o),x=c.createElement("script"),at(x),vr(x,"link",s),c.head.appendChild(x)),x={type:"script",instance:x,count:1,state:null},f.set(y,x))}}function AE(s,o,c,f){var y=(y=q.current)?of(y):null;if(!y)throw Error(r(446));switch(s){case"meta":case"title":return null;case"style":return typeof c.precedence=="string"&&typeof c.href=="string"?(o=ql(c.href),c=rn(y).hoistableStyles,f=c.get(o),f||(f={type:"style",instance:null,count:0,state:null},c.set(o,f)),f):{type:"void",instance:null,count:0,state:null};case"link":if(c.rel==="stylesheet"&&typeof c.href=="string"&&typeof c.precedence=="string"){s=ql(c.href);var x=rn(y).hoistableStyles,O=x.get(s);if(O||(y=y.ownerDocument||y,O={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},x.set(s,O),(x=y.querySelector(kc(s)))&&!x._p&&(O.instance=x,O.state.loading=5),_a.has(s)||(c={rel:"preload",as:"style",href:c.href,crossOrigin:c.crossOrigin,integrity:c.integrity,media:c.media,hrefLang:c.hrefLang,referrerPolicy:c.referrerPolicy},_a.set(s,c),x||Ok(y,s,c,O.state))),o&&f===null)throw Error(r(528,""));return O}if(o&&f!==null)throw Error(r(529,""));return null;case"script":return o=c.async,c=c.src,typeof c=="string"&&o&&typeof o!="function"&&typeof o!="symbol"?(o=$l(c),c=rn(y).hoistableScripts,f=c.get(o),f||(f={type:"script",instance:null,count:0,state:null},c.set(o,f)),f):{type:"void",instance:null,count:0,state:null};default:throw Error(r(444,s))}}function ql(s){return'href="'+pa(s)+'"'}function kc(s){return'link[rel="stylesheet"]['+s+"]"}function SE(s){return v({},s,{"data-precedence":s.precedence,precedence:null})}function Ok(s,o,c,f){s.querySelector('link[rel="preload"][as="style"]['+o+"]")?f.loading=1:(o=s.createElement("link"),f.preload=o,o.addEventListener("load",function(){return f.loading|=1}),o.addEventListener("error",function(){return f.loading|=2}),vr(o,"link",c),at(o),s.head.appendChild(o))}function $l(s){return'[src="'+pa(s)+'"]'}function Dc(s){return"script[async]"+s}function wE(s,o,c){if(o.count++,o.instance===null)switch(o.type){case"style":var f=s.querySelector('style[data-href~="'+pa(c.href)+'"]');if(f)return o.instance=f,at(f),f;var y=v({},c,{"data-href":c.href,"data-precedence":c.precedence,href:null,precedence:null});return f=(s.ownerDocument||s).createElement("style"),at(f),vr(f,"style",y),lf(f,c.precedence,s),o.instance=f;case"stylesheet":y=ql(c.href);var x=s.querySelector(kc(y));if(x)return o.state.loading|=4,o.instance=x,at(x),x;f=SE(c),(y=_a.get(y))&&Qp(f,y),x=(s.ownerDocument||s).createElement("link"),at(x);var O=x;return O._p=new Promise(function(H,K){O.onload=H,O.onerror=K}),vr(x,"link",f),o.state.loading|=4,lf(x,c.precedence,s),o.instance=x;case"script":return x=$l(c.src),(y=s.querySelector(Dc(x)))?(o.instance=y,at(y),y):(f=c,(y=_a.get(x))&&(f=v({},c),Yp(f,y)),s=s.ownerDocument||s,y=s.createElement("script"),at(y),vr(y,"link",f),s.head.appendChild(y),o.instance=y);case"void":return null;default:throw Error(r(443,o.type))}else o.type==="stylesheet"&&(o.state.loading&4)===0&&(f=o.instance,o.state.loading|=4,lf(f,c.precedence,s));return o.instance}function lf(s,o,c){for(var f=c.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),y=f.length?f[f.length-1]:null,x=y,O=0;O<f.length;O++){var H=f[O];if(H.dataset.precedence===o)x=H;else if(x!==y)break}x?x.parentNode.insertBefore(s,x.nextSibling):(o=c.nodeType===9?c.head:c,o.insertBefore(s,o.firstChild))}function Qp(s,o){s.crossOrigin==null&&(s.crossOrigin=o.crossOrigin),s.referrerPolicy==null&&(s.referrerPolicy=o.referrerPolicy),s.title==null&&(s.title=o.title)}function Yp(s,o){s.crossOrigin==null&&(s.crossOrigin=o.crossOrigin),s.referrerPolicy==null&&(s.referrerPolicy=o.referrerPolicy),s.integrity==null&&(s.integrity=o.integrity)}var uf=null;function CE(s,o,c){if(uf===null){var f=new Map,y=uf=new Map;y.set(c,f)}else y=uf,f=y.get(c),f||(f=new Map,y.set(c,f));if(f.has(s))return f;for(f.set(s,null),c=c.getElementsByTagName(s),y=0;y<c.length;y++){var x=c[y];if(!(x[ye]||x[_n]||s==="link"&&x.getAttribute("rel")==="stylesheet")&&x.namespaceURI!=="http://www.w3.org/2000/svg"){var O=x.getAttribute(o)||"";O=s+O;var H=f.get(O);H?H.push(x):f.set(O,[x])}}return f}function RE(s,o,c){s=s.ownerDocument||s,s.head.insertBefore(c,o==="title"?s.querySelector("head > title"):null)}function Nk(s,o,c){if(c===1||o.itemProp!=null)return!1;switch(s){case"meta":case"title":return!0;case"style":if(typeof o.precedence!="string"||typeof o.href!="string"||o.href==="")break;return!0;case"link":if(typeof o.rel!="string"||typeof o.href!="string"||o.href===""||o.onLoad||o.onError)break;switch(o.rel){case"stylesheet":return s=o.disabled,typeof o.precedence=="string"&&s==null;default:return!0}case"script":if(o.async&&typeof o.async!="function"&&typeof o.async!="symbol"&&!o.onLoad&&!o.onError&&o.src&&typeof o.src=="string")return!0}return!1}function OE(s){return!(s.type==="stylesheet"&&(s.state.loading&3)===0)}var Mc=null;function Pk(){}function kk(s,o,c){if(Mc===null)throw Error(r(475));var f=Mc;if(o.type==="stylesheet"&&(typeof c.media!="string"||matchMedia(c.media).matches!==!1)&&(o.state.loading&4)===0){if(o.instance===null){var y=ql(c.href),x=s.querySelector(kc(y));if(x){s=x._p,s!==null&&typeof s=="object"&&typeof s.then=="function"&&(f.count++,f=cf.bind(f),s.then(f,f)),o.state.loading|=4,o.instance=x,at(x);return}x=s.ownerDocument||s,c=SE(c),(y=_a.get(y))&&Qp(c,y),x=x.createElement("link"),at(x);var O=x;O._p=new Promise(function(H,K){O.onload=H,O.onerror=K}),vr(x,"link",c),o.instance=x}f.stylesheets===null&&(f.stylesheets=new Map),f.stylesheets.set(o,s),(s=o.state.preload)&&(o.state.loading&3)===0&&(f.count++,o=cf.bind(f),s.addEventListener("load",o),s.addEventListener("error",o))}}function Dk(){if(Mc===null)throw Error(r(475));var s=Mc;return s.stylesheets&&s.count===0&&Gp(s,s.stylesheets),0<s.count?function(o){var c=setTimeout(function(){if(s.stylesheets&&Gp(s,s.stylesheets),s.unsuspend){var f=s.unsuspend;s.unsuspend=null,f()}},6e4);return s.unsuspend=o,function(){s.unsuspend=null,clearTimeout(c)}}:null}function cf(){if(this.count--,this.count===0){if(this.stylesheets)Gp(this,this.stylesheets);else if(this.unsuspend){var s=this.unsuspend;this.unsuspend=null,s()}}}var df=null;function Gp(s,o){s.stylesheets=null,s.unsuspend!==null&&(s.count++,df=new Map,o.forEach(Mk,s),df=null,cf.call(s))}function Mk(s,o){if(!(o.state.loading&4)){var c=df.get(s);if(c)var f=c.get(null);else{c=new Map,df.set(s,c);for(var y=s.querySelectorAll("link[data-precedence],style[data-precedence]"),x=0;x<y.length;x++){var O=y[x];(O.nodeName==="LINK"||O.getAttribute("media")!=="not all")&&(c.set(O.dataset.precedence,O),f=O)}f&&c.set(null,f)}y=o.instance,O=y.getAttribute("data-precedence"),x=c.get(O)||f,x===f&&c.set(null,y),c.set(O,y),this.count++,f=cf.bind(this),y.addEventListener("load",f),y.addEventListener("error",f),x?x.parentNode.insertBefore(y,x.nextSibling):(s=s.nodeType===9?s.head:s,s.insertBefore(y,s.firstChild)),o.state.loading|=4}}var Lc={$$typeof:k,Provider:null,Consumer:null,_currentValue:X,_currentValue2:X,_threadCount:0};function Lk(s,o,c,f,y,x,O,H){this.tag=1,this.containerInfo=s,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=vo(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=vo(0),this.hiddenUpdates=vo(null),this.identifierPrefix=f,this.onUncaughtError=y,this.onCaughtError=x,this.onRecoverableError=O,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=H,this.incompleteTransitions=new Map}function NE(s,o,c,f,y,x,O,H,K,he,we,Re){return s=new Lk(s,o,c,O,H,K,he,Re),o=1,x===!0&&(o|=24),x=ea(3,null,null,o),s.current=x,x.stateNode=s,o=Nm(),o.refCount++,s.pooledCache=o,o.refCount++,x.memoizedState={element:f,isDehydrated:c,cache:o},Mm(x),s}function PE(s){return s?(s=_l,s):_l}function kE(s,o,c,f,y,x){y=PE(y),f.context===null?f.context=y:f.pendingContext=y,f=wi(o),f.payload={element:c},x=x===void 0?null:x,x!==null&&(f.callback=x),c=Ci(s,f,o),c!==null&&(sa(c,s,o),dc(c,s,o))}function DE(s,o){if(s=s.memoizedState,s!==null&&s.dehydrated!==null){var c=s.retryLane;s.retryLane=c!==0&&c<o?c:o}}function Kp(s,o){DE(s,o),(s=s.alternate)&&DE(s,o)}function ME(s){if(s.tag===13){var o=xl(s,67108864);o!==null&&sa(o,s,67108864),Kp(s,67108864)}}var ff=!0;function Ik(s,o,c,f){var y=V.T;V.T=null;var x=J.p;try{J.p=2,Xp(s,o,c,f)}finally{J.p=x,V.T=y}}function jk(s,o,c,f){var y=V.T;V.T=null;var x=J.p;try{J.p=8,Xp(s,o,c,f)}finally{J.p=x,V.T=y}}function Xp(s,o,c,f){if(ff){var y=Wp(f);if(y===null)Hp(s,o,f,hf,c),IE(s,f);else if(Fk(y,s,o,c,f))f.stopPropagation();else if(IE(s,f),o&4&&-1<Hk.indexOf(s)){for(;y!==null;){var x=Tt(y);if(x!==null)switch(x.tag){case 3:if(x=x.stateNode,x.current.memoizedState.isDehydrated){var O=$n(x.pendingLanes);if(O!==0){var H=x;for(H.pendingLanes|=2,H.entangledLanes|=2;O;){var K=1<<31-$e(O);H.entanglements[1]|=K,O&=~K}fs(x),(Kt&6)===0&&(G0=st()+500,Rc(0))}}break;case 13:H=xl(x,2),H!==null&&sa(H,x,2),X0(),Kp(x,2)}if(x=Wp(f),x===null&&Hp(s,o,f,hf,c),x===y)break;y=x}y!==null&&f.stopPropagation()}else Hp(s,o,f,null,c)}}function Wp(s){return s=rm(s),Jp(s)}var hf=null;function Jp(s){if(hf=null,s=Je(s),s!==null){var o=i(s);if(o===null)s=null;else{var c=o.tag;if(c===13){if(s=l(o),s!==null)return s;s=null}else if(c===3){if(o.stateNode.current.memoizedState.isDehydrated)return o.tag===3?o.stateNode.containerInfo:null;s=null}else o!==s&&(s=null)}}return hf=s,null}function LE(s){switch(s){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(vn()){case bt:return 2;case W:return 8;case ce:case pe:return 32;case Ne:return 268435456;default:return 32}default:return 32}}var e2=!1,Ui=null,Bi=null,Vi=null,Ic=new Map,jc=new Map,zi=[],Hk="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 IE(s,o){switch(s){case"focusin":case"focusout":Ui=null;break;case"dragenter":case"dragleave":Bi=null;break;case"mouseover":case"mouseout":Vi=null;break;case"pointerover":case"pointerout":Ic.delete(o.pointerId);break;case"gotpointercapture":case"lostpointercapture":jc.delete(o.pointerId)}}function Hc(s,o,c,f,y,x){return s===null||s.nativeEvent!==x?(s={blockedOn:o,domEventName:c,eventSystemFlags:f,nativeEvent:x,targetContainers:[y]},o!==null&&(o=Tt(o),o!==null&&ME(o)),s):(s.eventSystemFlags|=f,o=s.targetContainers,y!==null&&o.indexOf(y)===-1&&o.push(y),s)}function Fk(s,o,c,f,y){switch(o){case"focusin":return Ui=Hc(Ui,s,o,c,f,y),!0;case"dragenter":return Bi=Hc(Bi,s,o,c,f,y),!0;case"mouseover":return Vi=Hc(Vi,s,o,c,f,y),!0;case"pointerover":var x=y.pointerId;return Ic.set(x,Hc(Ic.get(x)||null,s,o,c,f,y)),!0;case"gotpointercapture":return x=y.pointerId,jc.set(x,Hc(jc.get(x)||null,s,o,c,f,y)),!0}return!1}function jE(s){var o=Je(s.target);if(o!==null){var c=i(o);if(c!==null){if(o=c.tag,o===13){if(o=l(c),o!==null){s.blockedOn=o,kn(s.priority,function(){if(c.tag===13){var f=aa();f=On(f);var y=xl(c,f);y!==null&&sa(y,c,f),Kp(c,f)}});return}}else if(o===3&&c.stateNode.current.memoizedState.isDehydrated){s.blockedOn=c.tag===3?c.stateNode.containerInfo:null;return}}}s.blockedOn=null}function mf(s){if(s.blockedOn!==null)return!1;for(var o=s.targetContainers;0<o.length;){var c=Wp(s.nativeEvent);if(c===null){c=s.nativeEvent;var f=new c.constructor(c.type,c);nm=f,c.target.dispatchEvent(f),nm=null}else return o=Tt(c),o!==null&&ME(o),s.blockedOn=c,!1;o.shift()}return!0}function HE(s,o,c){mf(s)&&c.delete(o)}function Uk(){e2=!1,Ui!==null&&mf(Ui)&&(Ui=null),Bi!==null&&mf(Bi)&&(Bi=null),Vi!==null&&mf(Vi)&&(Vi=null),Ic.forEach(HE),jc.forEach(HE)}function pf(s,o){s.blockedOn===o&&(s.blockedOn=null,e2||(e2=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,Uk)))}var gf=null;function FE(s){gf!==s&&(gf=s,e.unstable_scheduleCallback(e.unstable_NormalPriority,function(){gf===s&&(gf=null);for(var o=0;o<s.length;o+=3){var c=s[o],f=s[o+1],y=s[o+2];if(typeof f!="function"){if(Jp(f||c)===null)continue;break}var x=Tt(c);x!==null&&(s.splice(o,3),o-=3,Jm(x,{pending:!0,data:y,method:c.method,action:f},f,y))}}))}function Fc(s){function o(K){return pf(K,s)}Ui!==null&&pf(Ui,s),Bi!==null&&pf(Bi,s),Vi!==null&&pf(Vi,s),Ic.forEach(o),jc.forEach(o);for(var c=0;c<zi.length;c++){var f=zi[c];f.blockedOn===s&&(f.blockedOn=null)}for(;0<zi.length&&(c=zi[0],c.blockedOn===null);)jE(c),c.blockedOn===null&&zi.shift();if(c=(s.ownerDocument||s).$$reactFormReplay,c!=null)for(f=0;f<c.length;f+=3){var y=c[f],x=c[f+1],O=y[nn]||null;if(typeof x=="function")O||FE(c);else if(O){var H=null;if(x&&x.hasAttribute("formAction")){if(y=x,O=x[nn]||null)H=O.formAction;else if(Jp(y)!==null)continue}else H=O.action;typeof H=="function"?c[f+1]=H:(c.splice(f,3),f-=3),FE(c)}}}function t2(s){this._internalRoot=s}vf.prototype.render=t2.prototype.render=function(s){var o=this._internalRoot;if(o===null)throw Error(r(409));var c=o.current,f=aa();kE(c,f,s,o,null,null)},vf.prototype.unmount=t2.prototype.unmount=function(){var s=this._internalRoot;if(s!==null){this._internalRoot=null;var o=s.containerInfo;kE(s.current,2,null,s,null,null),X0(),o[Hn]=null}};function vf(s){this._internalRoot=s}vf.prototype.unstable_scheduleHydration=function(s){if(s){var o=Fa();s={blockedOn:null,target:s,priority:o};for(var c=0;c<zi.length&&o!==0&&o<zi[c].priority;c++);zi.splice(c,0,s),c===0&&jE(s)}};var UE=t.version;if(UE!=="19.1.0")throw Error(r(527,UE,"19.1.0"));J.findDOMNode=function(s){var o=s._reactInternals;if(o===void 0)throw typeof s.render=="function"?Error(r(188)):(s=Object.keys(s).join(","),Error(r(268,s)));return s=d(o),s=s!==null?h(s):null,s=s===null?null:s.stateNode,s};var Bk={bundleType:0,version:"19.1.0",rendererPackageName:"react-dom",currentDispatcherRef:V,reconcilerVersion:"19.1.0"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var yf=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!yf.isDisabled&&yf.supportsFiber)try{ie=yf.inject(Bk),Se=yf}catch{}}return Vc.createRoot=function(s,o){if(!a(s))throw Error(r(299));var c=!1,f="",y=n3,x=r3,O=a3,H=null;return o!=null&&(o.unstable_strictMode===!0&&(c=!0),o.identifierPrefix!==void 0&&(f=o.identifierPrefix),o.onUncaughtError!==void 0&&(y=o.onUncaughtError),o.onCaughtError!==void 0&&(x=o.onCaughtError),o.onRecoverableError!==void 0&&(O=o.onRecoverableError),o.unstable_transitionCallbacks!==void 0&&(H=o.unstable_transitionCallbacks)),o=NE(s,1,!1,null,null,c,f,y,x,O,H,null),s[Hn]=o.current,jp(s),new t2(o)},Vc.hydrateRoot=function(s,o,c){if(!a(s))throw Error(r(299));var f=!1,y="",x=n3,O=r3,H=a3,K=null,he=null;return c!=null&&(c.unstable_strictMode===!0&&(f=!0),c.identifierPrefix!==void 0&&(y=c.identifierPrefix),c.onUncaughtError!==void 0&&(x=c.onUncaughtError),c.onCaughtError!==void 0&&(O=c.onCaughtError),c.onRecoverableError!==void 0&&(H=c.onRecoverableError),c.unstable_transitionCallbacks!==void 0&&(K=c.unstable_transitionCallbacks),c.formState!==void 0&&(he=c.formState)),o=NE(s,1,!0,o,c??null,f,y,x,O,H,K,he),o.context=PE(null),c=o.current,f=aa(),f=On(f),y=wi(f),y.callback=null,Ci(c,y,f),c=f,o.current.lanes=c,is(o,c),fs(o),s[Hn]=o.current,jp(s),new vf(o)},Vc.version="19.1.0",Vc}var Rx;function eF(){if(Rx)return v2.exports;Rx=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),v2.exports=JH(),v2.exports}var tF=eF();const nF=Cu(tF);/**
|
|
90
|
-
* react-router v7.9.1
|
|
91
|
-
*
|
|
92
|
-
* Copyright (c) Remix Software Inc.
|
|
93
|
-
*
|
|
94
|
-
* This source code is licensed under the MIT license found in the
|
|
95
|
-
* LICENSE.md file in the root directory of this source tree.
|
|
96
|
-
*
|
|
97
|
-
* @license MIT
|
|
98
|
-
*/var Ox="popstate";function rF(e={}){function t(r,a){let{pathname:i,search:l,hash:u}=r.location;return pv("",{pathname:i,search:l,hash:u},a.state&&a.state.usr||null,a.state&&a.state.key||"default")}function n(r,a){return typeof a=="string"?a:_d(a)}return sF(t,n,null,e)}function Cn(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function Wa(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function aF(){return Math.random().toString(36).substring(2,10)}function Nx(e,t){return{usr:e.state,key:e.key,idx:t}}function pv(e,t,n=null,r){return{pathname:typeof e=="string"?e:e.pathname,search:"",hash:"",...typeof t=="string"?Du(t):t,state:n,key:t&&t.key||r||aF()}}function _d({pathname:e="/",search:t="",hash:n=""}){return t&&t!=="?"&&(e+=t.charAt(0)==="?"?t:"?"+t),n&&n!=="#"&&(e+=n.charAt(0)==="#"?n:"#"+n),e}function Du(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substring(n),e=e.substring(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substring(r),e=e.substring(0,r)),e&&(t.pathname=e)}return t}function sF(e,t,n,r={}){let{window:a=document.defaultView,v5Compat:i=!1}=r,l=a.history,u="POP",d=null,h=v();h==null&&(h=0,l.replaceState({...l.state,idx:h},""));function v(){return(l.state||{idx:null}).idx}function m(){u="POP";let S=v(),w=S==null?null:S-h;h=S,d&&d({action:u,location:A.location,delta:w})}function E(S,w){u="PUSH";let R=pv(A.location,S,w);h=v()+1;let k=Nx(R,h),L=A.createHref(R);try{l.pushState(k,"",L)}catch(I){if(I instanceof DOMException&&I.name==="DataCloneError")throw I;a.location.assign(L)}i&&d&&d({action:u,location:A.location,delta:1})}function b(S,w){u="REPLACE";let R=pv(A.location,S,w);h=v();let k=Nx(R,h),L=A.createHref(R);l.replaceState(k,"",L),i&&d&&d({action:u,location:A.location,delta:0})}function T(S){return iF(S)}let A={get action(){return u},get location(){return e(a,l)},listen(S){if(d)throw new Error("A history only accepts one active listener");return a.addEventListener(Ox,m),d=S,()=>{a.removeEventListener(Ox,m),d=null}},createHref(S){return t(a,S)},createURL:T,encodeLocation(S){let w=T(S);return{pathname:w.pathname,search:w.search,hash:w.hash}},push:E,replace:b,go(S){return l.go(S)}};return A}function iF(e,t=!1){let n="http://localhost";typeof window<"u"&&(n=window.location.origin!=="null"?window.location.origin:window.location.href),Cn(n,"No window.location.(origin|href) available to create URL");let r=typeof e=="string"?e:_d(e);return r=r.replace(/ $/,"%20"),!t&&r.startsWith("//")&&(r=n+r),new URL(r,n)}function ew(e,t,n="/"){return oF(e,t,n,!1)}function oF(e,t,n,r){let a=typeof t=="string"?Du(t):t,i=ci(a.pathname||"/",n);if(i==null)return null;let l=tw(e);lF(l);let u=null;for(let d=0;u==null&&d<l.length;++d){let h=bF(i);u=vF(l[d],h,r)}return u}function tw(e,t=[],n=[],r="",a=!1){let i=(l,u,d=a,h)=>{let v={relativePath:h===void 0?l.path||"":h,caseSensitive:l.caseSensitive===!0,childrenIndex:u,route:l};if(v.relativePath.startsWith("/")){if(!v.relativePath.startsWith(r)&&d)return;Cn(v.relativePath.startsWith(r),`Absolute route path "${v.relativePath}" nested under path "${r}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),v.relativePath=v.relativePath.slice(r.length)}let m=si([r,v.relativePath]),E=n.concat(v);l.children&&l.children.length>0&&(Cn(l.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${m}".`),tw(l.children,t,E,m,d)),!(l.path==null&&!l.index)&&t.push({path:m,score:pF(m,l.index),routesMeta:E})};return e.forEach((l,u)=>{if(l.path===""||!l.path?.includes("?"))i(l,u);else for(let d of nw(l.path))i(l,u,!0,d)}),t}function nw(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,a=n.endsWith("?"),i=n.replace(/\?$/,"");if(r.length===0)return a?[i,""]:[i];let l=nw(r.join("/")),u=[];return u.push(...l.map(d=>d===""?i:[i,d].join("/"))),a&&u.push(...l),u.map(d=>e.startsWith("/")&&d===""?"/":d)}function lF(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:gF(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}var uF=/^:[\w-]+$/,cF=3,dF=2,fF=1,hF=10,mF=-2,Px=e=>e==="*";function pF(e,t){let n=e.split("/"),r=n.length;return n.some(Px)&&(r+=mF),t&&(r+=dF),n.filter(a=>!Px(a)).reduce((a,i)=>a+(uF.test(i)?cF:i===""?fF:hF),r)}function gF(e,t){return e.length===t.length&&e.slice(0,-1).every((r,a)=>r===t[a])?e[e.length-1]-t[t.length-1]:0}function vF(e,t,n=!1){let{routesMeta:r}=e,a={},i="/",l=[];for(let u=0;u<r.length;++u){let d=r[u],h=u===r.length-1,v=i==="/"?t:t.slice(i.length)||"/",m=oh({path:d.relativePath,caseSensitive:d.caseSensitive,end:h},v),E=d.route;if(!m&&h&&n&&!r[r.length-1].route.index&&(m=oh({path:d.relativePath,caseSensitive:d.caseSensitive,end:!1},v)),!m)return null;Object.assign(a,m.params),l.push({params:a,pathname:si([i,m.pathname]),pathnameBase:TF(si([i,m.pathnameBase])),route:E}),m.pathnameBase!=="/"&&(i=si([i,m.pathnameBase]))}return l}function oh(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=yF(e.path,e.caseSensitive,e.end),a=t.match(n);if(!a)return null;let i=a[0],l=i.replace(/(.)\/+$/,"$1"),u=a.slice(1);return{params:r.reduce((h,{paramName:v,isOptional:m},E)=>{if(v==="*"){let T=u[E]||"";l=i.slice(0,i.length-T.length).replace(/(.)\/+$/,"$1")}const b=u[E];return m&&!b?h[v]=void 0:h[v]=(b||"").replace(/%2F/g,"/"),h},{}),pathname:i,pathnameBase:l,pattern:e}}function yF(e,t=!1,n=!0){Wa(e==="*"||!e.endsWith("*")||e.endsWith("/*"),`Route path "${e}" will be treated as if it were "${e.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${e.replace(/\*$/,"/*")}".`);let r=[],a="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(l,u,d)=>(r.push({paramName:u,isOptional:d!=null}),d?"/?([^\\/]+)?":"/([^\\/]+)")).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return e.endsWith("*")?(r.push({paramName:"*"}),a+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?a+="\\/*$":e!==""&&e!=="/"&&(a+="(?:(?=\\/|$))"),[new RegExp(a,t?void 0:"i"),r]}function bF(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return Wa(!1,`The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${t}).`),e}}function ci(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}function EF(e,t="/"){let{pathname:n,search:r="",hash:a=""}=typeof e=="string"?Du(e):e;return{pathname:n?n.startsWith("/")?n:xF(n,t):t,search:AF(r),hash:SF(a)}}function xF(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(a=>{a===".."?n.length>1&&n.pop():a!=="."&&n.push(a)}),n.length>1?n.join("/"):"/"}function E2(e,t,n,r){return`Cannot include a '${e}' character in a manually specified \`to.${t}\` field [${JSON.stringify(r)}]. Please separate it out to the \`to.${n}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function _F(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function y4(e){let t=_F(e);return t.map((n,r)=>r===t.length-1?n.pathname:n.pathnameBase)}function b4(e,t,n,r=!1){let a;typeof e=="string"?a=Du(e):(a={...e},Cn(!a.pathname||!a.pathname.includes("?"),E2("?","pathname","search",a)),Cn(!a.pathname||!a.pathname.includes("#"),E2("#","pathname","hash",a)),Cn(!a.search||!a.search.includes("#"),E2("#","search","hash",a)));let i=e===""||a.pathname==="",l=i?"/":a.pathname,u;if(l==null)u=n;else{let m=t.length-1;if(!r&&l.startsWith("..")){let E=l.split("/");for(;E[0]==="..";)E.shift(),m-=1;a.pathname=E.join("/")}u=m>=0?t[m]:"/"}let d=EF(a,u),h=l&&l!=="/"&&l.endsWith("/"),v=(i||l===".")&&n.endsWith("/");return!d.pathname.endsWith("/")&&(h||v)&&(d.pathname+="/"),d}var si=e=>e.join("/").replace(/\/\/+/g,"/"),TF=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),AF=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,SF=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function wF(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}var rw=["POST","PUT","PATCH","DELETE"];new Set(rw);var CF=["GET",...rw];new Set(CF);var Mu=p.createContext(null);Mu.displayName="DataRouter";var a1=p.createContext(null);a1.displayName="DataRouterState";p.createContext(!1);var aw=p.createContext({isTransitioning:!1});aw.displayName="ViewTransition";var RF=p.createContext(new Map);RF.displayName="Fetchers";var OF=p.createContext(null);OF.displayName="Await";var Ja=p.createContext(null);Ja.displayName="Navigation";var qd=p.createContext(null);qd.displayName="Location";var Da=p.createContext({outlet:null,matches:[],isDataRoute:!1});Da.displayName="Route";var E4=p.createContext(null);E4.displayName="RouteError";function NF(e,{relative:t}={}){Cn(Lu(),"useHref() may be used only in the context of a <Router> component.");let{basename:n,navigator:r}=p.useContext(Ja),{hash:a,pathname:i,search:l}=$d(e,{relative:t}),u=i;return n!=="/"&&(u=i==="/"?n:si([n,i])),r.createHref({pathname:u,search:l,hash:a})}function Lu(){return p.useContext(qd)!=null}function gi(){return Cn(Lu(),"useLocation() may be used only in the context of a <Router> component."),p.useContext(qd).location}var sw="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function iw(e){p.useContext(Ja).static||p.useLayoutEffect(e)}function es(){let{isDataRoute:e}=p.useContext(Da);return e?$F():PF()}function PF(){Cn(Lu(),"useNavigate() may be used only in the context of a <Router> component.");let e=p.useContext(Mu),{basename:t,navigator:n}=p.useContext(Ja),{matches:r}=p.useContext(Da),{pathname:a}=gi(),i=JSON.stringify(y4(r)),l=p.useRef(!1);return iw(()=>{l.current=!0}),p.useCallback((d,h={})=>{if(Wa(l.current,sw),!l.current)return;if(typeof d=="number"){n.go(d);return}let v=b4(d,JSON.parse(i),a,h.relative==="path");e==null&&t!=="/"&&(v.pathname=v.pathname==="/"?t:si([t,v.pathname])),(h.replace?n.replace:n.push)(v,h.state,h)},[t,n,i,a,e])}var kF=p.createContext(null);function DF(e){let t=p.useContext(Da).outlet;return t&&p.createElement(kF.Provider,{value:e},t)}function x4(){let{matches:e}=p.useContext(Da),t=e[e.length-1];return t?t.params:{}}function $d(e,{relative:t}={}){let{matches:n}=p.useContext(Da),{pathname:r}=gi(),a=JSON.stringify(y4(n));return p.useMemo(()=>b4(e,JSON.parse(a),r,t==="path"),[e,a,r,t])}function MF(e,t){return ow(e,t)}function ow(e,t,n,r,a){Cn(Lu(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:i}=p.useContext(Ja),{matches:l}=p.useContext(Da),u=l[l.length-1],d=u?u.params:{},h=u?u.pathname:"/",v=u?u.pathnameBase:"/",m=u&&u.route;{let R=m&&m.path||"";lw(h,!m||R.endsWith("*")||R.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${h}" (under <Route path="${R}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
|
|
99
|
-
|
|
100
|
-
Please change the parent <Route path="${R}"> to <Route path="${R==="/"?"*":`${R}/*`}">.`)}let E=gi(),b;if(t){let R=typeof t=="string"?Du(t):t;Cn(v==="/"||R.pathname?.startsWith(v),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${v}" but pathname "${R.pathname}" was given in the \`location\` prop.`),b=R}else b=E;let T=b.pathname||"/",A=T;if(v!=="/"){let R=v.replace(/^\//,"").split("/");A="/"+T.replace(/^\//,"").split("/").slice(R.length).join("/")}let S=ew(e,{pathname:A});Wa(m||S!=null,`No routes matched location "${b.pathname}${b.search}${b.hash}" `),Wa(S==null||S[S.length-1].route.element!==void 0||S[S.length-1].route.Component!==void 0||S[S.length-1].route.lazy!==void 0,`Matched leaf route at location "${b.pathname}${b.search}${b.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let w=FF(S&&S.map(R=>Object.assign({},R,{params:Object.assign({},d,R.params),pathname:si([v,i.encodeLocation?i.encodeLocation(R.pathname).pathname:R.pathname]),pathnameBase:R.pathnameBase==="/"?v:si([v,i.encodeLocation?i.encodeLocation(R.pathnameBase).pathname:R.pathnameBase])})),l,n,r,a);return t&&w?p.createElement(qd.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",...b},navigationType:"POP"}},w):w}function LF(){let e=qF(),t=wF(e)?`${e.status} ${e.statusText}`:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,r="rgba(200,200,200, 0.5)",a={padding:"0.5rem",backgroundColor:r},i={padding:"2px 4px",backgroundColor:r},l=null;return console.error("Error handled by React Router default ErrorBoundary:",e),l=p.createElement(p.Fragment,null,p.createElement("p",null,"💿 Hey developer 👋"),p.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",p.createElement("code",{style:i},"ErrorBoundary")," or"," ",p.createElement("code",{style:i},"errorElement")," prop on your route.")),p.createElement(p.Fragment,null,p.createElement("h2",null,"Unexpected Application Error!"),p.createElement("h3",{style:{fontStyle:"italic"}},t),n?p.createElement("pre",{style:a},n):null,l)}var IF=p.createElement(LF,null),jF=class extends p.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||t.revalidation!=="idle"&&e.revalidation==="idle"?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error!==void 0?e.error:t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){this.props.unstable_onError?this.props.unstable_onError(e,t):console.error("React Router caught the following error during render",e)}render(){return this.state.error!==void 0?p.createElement(Da.Provider,{value:this.props.routeContext},p.createElement(E4.Provider,{value:this.state.error,children:this.props.component})):this.props.children}};function HF({routeContext:e,match:t,children:n}){let r=p.useContext(Mu);return r&&r.static&&r.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=t.route.id),p.createElement(Da.Provider,{value:e},n)}function FF(e,t=[],n=null,r=null,a=null){if(e==null){if(!n)return null;if(n.errors)e=n.matches;else if(t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let i=e,l=n?.errors;if(l!=null){let h=i.findIndex(v=>v.route.id&&l?.[v.route.id]!==void 0);Cn(h>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(l).join(",")}`),i=i.slice(0,Math.min(i.length,h+1))}let u=!1,d=-1;if(n)for(let h=0;h<i.length;h++){let v=i[h];if((v.route.HydrateFallback||v.route.hydrateFallbackElement)&&(d=h),v.route.id){let{loaderData:m,errors:E}=n,b=v.route.loader&&!m.hasOwnProperty(v.route.id)&&(!E||E[v.route.id]===void 0);if(v.route.lazy||b){u=!0,d>=0?i=i.slice(0,d+1):i=[i[0]];break}}}return i.reduceRight((h,v,m)=>{let E,b=!1,T=null,A=null;n&&(E=l&&v.route.id?l[v.route.id]:void 0,T=v.route.errorElement||IF,u&&(d<0&&m===0?(lw("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),b=!0,A=null):d===m&&(b=!0,A=v.route.hydrateFallbackElement||null)));let S=t.concat(i.slice(0,m+1)),w=()=>{let R;return E?R=T:b?R=A:v.route.Component?R=p.createElement(v.route.Component,null):v.route.element?R=v.route.element:R=h,p.createElement(HF,{match:v,routeContext:{outlet:h,matches:S,isDataRoute:n!=null},children:R})};return n&&(v.route.ErrorBoundary||v.route.errorElement||m===0)?p.createElement(jF,{location:n.location,revalidation:n.revalidation,component:T,error:E,children:w(),routeContext:{outlet:null,matches:S,isDataRoute:!0},unstable_onError:r}):w()},null)}function _4(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function UF(e){let t=p.useContext(Mu);return Cn(t,_4(e)),t}function BF(e){let t=p.useContext(a1);return Cn(t,_4(e)),t}function VF(e){let t=p.useContext(Da);return Cn(t,_4(e)),t}function T4(e){let t=VF(e),n=t.matches[t.matches.length-1];return Cn(n.route.id,`${e} can only be used on routes that contain a unique "id"`),n.route.id}function zF(){return T4("useRouteId")}function qF(){let e=p.useContext(E4),t=BF("useRouteError"),n=T4("useRouteError");return e!==void 0?e:t.errors?.[n]}function $F(){let{router:e}=UF("useNavigate"),t=T4("useNavigate"),n=p.useRef(!1);return iw(()=>{n.current=!0}),p.useCallback(async(a,i={})=>{Wa(n.current,sw),n.current&&(typeof a=="number"?e.navigate(a):await e.navigate(a,{fromRouteId:t,...i}))},[e,t])}var kx={};function lw(e,t,n){!t&&!kx[e]&&(kx[e]=!0,Wa(!1,n))}p.memo(ZF);function ZF({routes:e,future:t,state:n,unstable_onError:r}){return ow(e,void 0,n,r,t)}function gv({to:e,replace:t,state:n,relative:r}){Cn(Lu(),"<Navigate> may be used only in the context of a <Router> component.");let{static:a}=p.useContext(Ja);Wa(!a,"<Navigate> must not be used on the initial render in a <StaticRouter>. This is a no-op, but you should modify your code so the <Navigate> is only ever rendered in response to some user interaction or state change.");let{matches:i}=p.useContext(Da),{pathname:l}=gi(),u=es(),d=b4(e,y4(i),l,r==="path"),h=JSON.stringify(d);return p.useEffect(()=>{u(JSON.parse(h),{replace:t,state:n,relative:r})},[u,h,r,t,n]),null}function uw(e){return DF(e.context)}function Ta(e){Cn(!1,"A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.")}function QF({basename:e="/",children:t=null,location:n,navigationType:r="POP",navigator:a,static:i=!1}){Cn(!Lu(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let l=e.replace(/^\/*/,"/"),u=p.useMemo(()=>({basename:l,navigator:a,static:i,future:{}}),[l,a,i]);typeof n=="string"&&(n=Du(n));let{pathname:d="/",search:h="",hash:v="",state:m=null,key:E="default"}=n,b=p.useMemo(()=>{let T=ci(d,l);return T==null?null:{location:{pathname:T,search:h,hash:v,state:m,key:E},navigationType:r}},[l,d,h,v,m,E,r]);return Wa(b!=null,`<Router basename="${l}"> is not able to match the URL "${d}${h}${v}" because it does not start with the basename, so the <Router> won't render anything.`),b==null?null:p.createElement(Ja.Provider,{value:u},p.createElement(qd.Provider,{children:t,value:b}))}function YF({children:e,location:t}){return MF(vv(e),t)}function vv(e,t=[]){let n=[];return p.Children.forEach(e,(r,a)=>{if(!p.isValidElement(r))return;let i=[...t,a];if(r.type===p.Fragment){n.push.apply(n,vv(r.props.children,i));return}Cn(r.type===Ta,`[${typeof r.type=="string"?r.type:r.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),Cn(!r.props.index||!r.props.children,"An index route cannot have child routes.");let l={id:r.props.id||i.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,loader:r.props.loader,action:r.props.action,hydrateFallbackElement:r.props.hydrateFallbackElement,HydrateFallback:r.props.HydrateFallback,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.hasErrorBoundary===!0||r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(l.children=vv(r.props.children,i)),n.push(l)}),n}var Vf="get",zf="application/x-www-form-urlencoded";function s1(e){return e!=null&&typeof e.tagName=="string"}function GF(e){return s1(e)&&e.tagName.toLowerCase()==="button"}function KF(e){return s1(e)&&e.tagName.toLowerCase()==="form"}function XF(e){return s1(e)&&e.tagName.toLowerCase()==="input"}function WF(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function JF(e,t){return e.button===0&&(!t||t==="_self")&&!WF(e)}var Rf=null;function eU(){if(Rf===null)try{new FormData(document.createElement("form"),0),Rf=!1}catch{Rf=!0}return Rf}var tU=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function x2(e){return e!=null&&!tU.has(e)?(Wa(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${zf}"`),null):e}function nU(e,t){let n,r,a,i,l;if(KF(e)){let u=e.getAttribute("action");r=u?ci(u,t):null,n=e.getAttribute("method")||Vf,a=x2(e.getAttribute("enctype"))||zf,i=new FormData(e)}else if(GF(e)||XF(e)&&(e.type==="submit"||e.type==="image")){let u=e.form;if(u==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let d=e.getAttribute("formaction")||u.getAttribute("action");if(r=d?ci(d,t):null,n=e.getAttribute("formmethod")||u.getAttribute("method")||Vf,a=x2(e.getAttribute("formenctype"))||x2(u.getAttribute("enctype"))||zf,i=new FormData(u,e),!eU()){let{name:h,type:v,value:m}=e;if(v==="image"){let E=h?`${h}.`:"";i.append(`${E}x`,"0"),i.append(`${E}y`,"0")}else h&&i.append(h,m)}}else{if(s1(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');n=Vf,r=null,a=zf,l=e}return i&&a==="text/plain"&&(l=i,i=void 0),{action:r,method:n.toLowerCase(),encType:a,formData:i,body:l}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function A4(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function rU(e,t,n){let r=typeof e=="string"?new URL(e,typeof window>"u"?"server://singlefetch/":window.location.origin):e;return r.pathname==="/"?r.pathname=`_root.${n}`:t&&ci(r.pathname,t)==="/"?r.pathname=`${t.replace(/\/$/,"")}/_root.${n}`:r.pathname=`${r.pathname.replace(/\/$/,"")}.${n}`,r}async function aU(e,t){if(e.id in t)return t[e.id];try{let n=await import(e.module);return t[e.id]=n,n}catch(n){return console.error(`Error loading route module \`${e.module}\`, reloading page...`),console.error(n),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function sU(e){return e==null?!1:e.href==null?e.rel==="preload"&&typeof e.imageSrcSet=="string"&&typeof e.imageSizes=="string":typeof e.rel=="string"&&typeof e.href=="string"}async function iU(e,t,n){let r=await Promise.all(e.map(async a=>{let i=t.routes[a.route.id];if(i){let l=await aU(i,n);return l.links?l.links():[]}return[]}));return cU(r.flat(1).filter(sU).filter(a=>a.rel==="stylesheet"||a.rel==="preload").map(a=>a.rel==="stylesheet"?{...a,rel:"prefetch",as:"style"}:{...a,rel:"prefetch"}))}function Dx(e,t,n,r,a,i){let l=(d,h)=>n[h]?d.route.id!==n[h].route.id:!0,u=(d,h)=>n[h].pathname!==d.pathname||n[h].route.path?.endsWith("*")&&n[h].params["*"]!==d.params["*"];return i==="assets"?t.filter((d,h)=>l(d,h)||u(d,h)):i==="data"?t.filter((d,h)=>{let v=r.routes[d.route.id];if(!v||!v.hasLoader)return!1;if(l(d,h)||u(d,h))return!0;if(d.route.shouldRevalidate){let m=d.route.shouldRevalidate({currentUrl:new URL(a.pathname+a.search+a.hash,window.origin),currentParams:n[0]?.params||{},nextUrl:new URL(e,window.origin),nextParams:d.params,defaultShouldRevalidate:!0});if(typeof m=="boolean")return m}return!0}):[]}function oU(e,t,{includeHydrateFallback:n}={}){return lU(e.map(r=>{let a=t.routes[r.route.id];if(!a)return[];let i=[a.module];return a.clientActionModule&&(i=i.concat(a.clientActionModule)),a.clientLoaderModule&&(i=i.concat(a.clientLoaderModule)),n&&a.hydrateFallbackModule&&(i=i.concat(a.hydrateFallbackModule)),a.imports&&(i=i.concat(a.imports)),i}).flat(1))}function lU(e){return[...new Set(e)]}function uU(e){let t={},n=Object.keys(e).sort();for(let r of n)t[r]=e[r];return t}function cU(e,t){let n=new Set;return new Set(t),e.reduce((r,a)=>{let i=JSON.stringify(uU(a));return n.has(i)||(n.add(i),r.push({key:i,link:a})),r},[])}function cw(){let e=p.useContext(Mu);return A4(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}function dU(){let e=p.useContext(a1);return A4(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}var S4=p.createContext(void 0);S4.displayName="FrameworkContext";function dw(){let e=p.useContext(S4);return A4(e,"You must render this element inside a <HydratedRouter> element"),e}function fU(e,t){let n=p.useContext(S4),[r,a]=p.useState(!1),[i,l]=p.useState(!1),{onFocus:u,onBlur:d,onMouseEnter:h,onMouseLeave:v,onTouchStart:m}=t,E=p.useRef(null);p.useEffect(()=>{if(e==="render"&&l(!0),e==="viewport"){let A=w=>{w.forEach(R=>{l(R.isIntersecting)})},S=new IntersectionObserver(A,{threshold:.5});return E.current&&S.observe(E.current),()=>{S.disconnect()}}},[e]),p.useEffect(()=>{if(r){let A=setTimeout(()=>{l(!0)},100);return()=>{clearTimeout(A)}}},[r]);let b=()=>{a(!0)},T=()=>{a(!1),l(!1)};return n?e!=="intent"?[i,E,{}]:[i,E,{onFocus:zc(u,b),onBlur:zc(d,T),onMouseEnter:zc(h,b),onMouseLeave:zc(v,T),onTouchStart:zc(m,b)}]:[!1,E,{}]}function zc(e,t){return n=>{e&&e(n),n.defaultPrevented||t(n)}}function hU({page:e,...t}){let{router:n}=cw(),r=p.useMemo(()=>ew(n.routes,e,n.basename),[n.routes,e,n.basename]);return r?p.createElement(pU,{page:e,matches:r,...t}):null}function mU(e){let{manifest:t,routeModules:n}=dw(),[r,a]=p.useState([]);return p.useEffect(()=>{let i=!1;return iU(e,t,n).then(l=>{i||a(l)}),()=>{i=!0}},[e,t,n]),r}function pU({page:e,matches:t,...n}){let r=gi(),{manifest:a,routeModules:i}=dw(),{basename:l}=cw(),{loaderData:u,matches:d}=dU(),h=p.useMemo(()=>Dx(e,t,d,a,r,"data"),[e,t,d,a,r]),v=p.useMemo(()=>Dx(e,t,d,a,r,"assets"),[e,t,d,a,r]),m=p.useMemo(()=>{if(e===r.pathname+r.search+r.hash)return[];let T=new Set,A=!1;if(t.forEach(w=>{let R=a.routes[w.route.id];!R||!R.hasLoader||(!h.some(k=>k.route.id===w.route.id)&&w.route.id in u&&i[w.route.id]?.shouldRevalidate||R.hasClientLoader?A=!0:T.add(w.route.id))}),T.size===0)return[];let S=rU(e,l,"data");return A&&T.size>0&&S.searchParams.set("_routes",t.filter(w=>T.has(w.route.id)).map(w=>w.route.id).join(",")),[S.pathname+S.search]},[l,u,r,a,h,t,e,i]),E=p.useMemo(()=>oU(v,a),[v,a]),b=mU(v);return p.createElement(p.Fragment,null,m.map(T=>p.createElement("link",{key:T,rel:"prefetch",as:"fetch",href:T,...n})),E.map(T=>p.createElement("link",{key:T,rel:"modulepreload",href:T,...n})),b.map(({key:T,link:A})=>p.createElement("link",{key:T,nonce:n.nonce,...A})))}function gU(...e){return t=>{e.forEach(n=>{typeof n=="function"?n(t):n!=null&&(n.current=t)})}}var fw=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{fw&&(window.__reactRouterVersion="7.9.1")}catch{}function vU({basename:e,children:t,window:n}){let r=p.useRef();r.current==null&&(r.current=rF({window:n,v5Compat:!0}));let a=r.current,[i,l]=p.useState({action:a.action,location:a.location}),u=p.useCallback(d=>{p.startTransition(()=>l(d))},[l]);return p.useLayoutEffect(()=>a.listen(u),[a,u]),p.createElement(QF,{basename:e,children:t,location:i.location,navigationType:i.action,navigator:a})}var hw=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,mw=p.forwardRef(function({onClick:t,discover:n="render",prefetch:r="none",relative:a,reloadDocument:i,replace:l,state:u,target:d,to:h,preventScrollReset:v,viewTransition:m,...E},b){let{basename:T}=p.useContext(Ja),A=typeof h=="string"&&hw.test(h),S,w=!1;if(typeof h=="string"&&A&&(S=h,fw))try{let B=new URL(window.location.href),P=h.startsWith("//")?new URL(B.protocol+h):new URL(h),U=ci(P.pathname,T);P.origin===B.origin&&U!=null?h=U+P.search+P.hash:w=!0}catch{Wa(!1,`<Link to="${h}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}let R=NF(h,{relative:a}),[k,L,I]=fU(r,E),N=xU(h,{replace:l,state:u,target:d,preventScrollReset:v,relative:a,viewTransition:m});function M(B){t&&t(B),B.defaultPrevented||N(B)}let D=p.createElement("a",{...E,...I,href:S||R,onClick:w||i?t:M,ref:gU(b,L),target:d,"data-discover":!A&&n==="render"?"true":void 0});return k&&!A?p.createElement(p.Fragment,null,D,p.createElement(hU,{page:R})):D});mw.displayName="Link";var yU=p.forwardRef(function({"aria-current":t="page",caseSensitive:n=!1,className:r="",end:a=!1,style:i,to:l,viewTransition:u,children:d,...h},v){let m=$d(l,{relative:h.relative}),E=gi(),b=p.useContext(a1),{navigator:T,basename:A}=p.useContext(Ja),S=b!=null&&wU(m)&&u===!0,w=T.encodeLocation?T.encodeLocation(m).pathname:m.pathname,R=E.pathname,k=b&&b.navigation&&b.navigation.location?b.navigation.location.pathname:null;n||(R=R.toLowerCase(),k=k?k.toLowerCase():null,w=w.toLowerCase()),k&&A&&(k=ci(k,A)||k);const L=w!=="/"&&w.endsWith("/")?w.length-1:w.length;let I=R===w||!a&&R.startsWith(w)&&R.charAt(L)==="/",N=k!=null&&(k===w||!a&&k.startsWith(w)&&k.charAt(w.length)==="/"),M={isActive:I,isPending:N,isTransitioning:S},D=I?t:void 0,B;typeof r=="function"?B=r(M):B=[r,I?"active":null,N?"pending":null,S?"transitioning":null].filter(Boolean).join(" ");let P=typeof i=="function"?i(M):i;return p.createElement(mw,{...h,"aria-current":D,className:B,ref:v,style:P,to:l,viewTransition:u},typeof d=="function"?d(M):d)});yU.displayName="NavLink";var bU=p.forwardRef(({discover:e="render",fetcherKey:t,navigate:n,reloadDocument:r,replace:a,state:i,method:l=Vf,action:u,onSubmit:d,relative:h,preventScrollReset:v,viewTransition:m,...E},b)=>{let T=AU(),A=SU(u,{relative:h}),S=l.toLowerCase()==="get"?"get":"post",w=typeof u=="string"&&hw.test(u),R=k=>{if(d&&d(k),k.defaultPrevented)return;k.preventDefault();let L=k.nativeEvent.submitter,I=L?.getAttribute("formmethod")||l;T(L||k.currentTarget,{fetcherKey:t,method:I,navigate:n,replace:a,state:i,relative:h,preventScrollReset:v,viewTransition:m})};return p.createElement("form",{ref:b,method:S,action:A,onSubmit:r?d:R,...E,"data-discover":!w&&e==="render"?"true":void 0})});bU.displayName="Form";function EU(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function pw(e){let t=p.useContext(Mu);return Cn(t,EU(e)),t}function xU(e,{target:t,replace:n,state:r,preventScrollReset:a,relative:i,viewTransition:l}={}){let u=es(),d=gi(),h=$d(e,{relative:i});return p.useCallback(v=>{if(JF(v,t)){v.preventDefault();let m=n!==void 0?n:_d(d)===_d(h);u(e,{replace:m,state:r,preventScrollReset:a,relative:i,viewTransition:l})}},[d,u,h,n,r,t,e,a,i,l])}var _U=0,TU=()=>`__${String(++_U)}__`;function AU(){let{router:e}=pw("useSubmit"),{basename:t}=p.useContext(Ja),n=zF();return p.useCallback(async(r,a={})=>{let{action:i,method:l,encType:u,formData:d,body:h}=nU(r,t);if(a.navigate===!1){let v=a.fetcherKey||TU();await e.fetch(v,n,a.action||i,{preventScrollReset:a.preventScrollReset,formData:d,body:h,formMethod:a.method||l,formEncType:a.encType||u,flushSync:a.flushSync})}else await e.navigate(a.action||i,{preventScrollReset:a.preventScrollReset,formData:d,body:h,formMethod:a.method||l,formEncType:a.encType||u,replace:a.replace,state:a.state,fromRouteId:n,flushSync:a.flushSync,viewTransition:a.viewTransition})},[e,t,n])}function SU(e,{relative:t}={}){let{basename:n}=p.useContext(Ja),r=p.useContext(Da);Cn(r,"useFormAction must be used inside a RouteContext");let[a]=r.matches.slice(-1),i={...$d(e||".",{relative:t})},l=gi();if(e==null){i.search=l.search;let u=new URLSearchParams(i.search),d=u.getAll("index");if(d.some(v=>v==="")){u.delete("index"),d.filter(m=>m).forEach(m=>u.append("index",m));let v=u.toString();i.search=v?`?${v}`:""}}return(!e||e===".")&&a.route.index&&(i.search=i.search?i.search.replace(/^\?/,"?index&"):"?index"),n!=="/"&&(i.pathname=i.pathname==="/"?n:si([n,i.pathname])),_d(i)}function wU(e,{relative:t}={}){let n=p.useContext(aw);Cn(n!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:r}=pw("useViewTransitionState"),a=$d(e,{relative:t});if(!n.isTransitioning)return!1;let i=ci(n.currentLocation.pathname,r)||n.currentLocation.pathname,l=ci(n.nextLocation.pathname,r)||n.nextLocation.pathname;return oh(a.pathname,l)!=null||oh(a.pathname,i)!=null}const w4=window.__APP_CONFIG__,Iu=w4?.gatewayUrl||"http://localhost:3673",gw=w4?.registryUrl||"https://registry.director.run",vw=w4?.basePath||"/";console.log("config is",{GATEWAY_URL:Iu,REGISTRY_URL:gw,BASE_PATH:vw});const yw=p.createContext({user:null,isAuthenticated:!1,login:async()=>{},logout:()=>{},isInitializing:!1}),i1=()=>{const e=p.useContext(yw);if(!e)throw new Error("useAuth must be used within an AuthProvider");return e};async function Mx(){await new Promise(e=>setTimeout(e,1e3))}const CU=({children:e})=>{const[t,n]=p.useState(null),[r,a]=p.useState(!0);p.useEffect(()=>{i()},[]);const i=async()=>{a(!0),await Mx();const h=localStorage.getItem("user");h&&n(JSON.parse(h)),a(!1)},d={user:t,isAuthenticated:!!t,isInitializing:r,login:async h=>{if(await Mx(),h.email==="barnaby@example.com"&&h.password==="password"){const v={id:1,email:h.email,password:h.password};n(v),localStorage.setItem("user",JSON.stringify(v))}else throw new Error("Invalid email or password")},logout:()=>{n(null),localStorage.removeItem("user")}};return g.jsx(yw.Provider,{value:d,children:e})};function bw(e,t){return new URL(t,e).toString()}var RU=Object.create,Ew=Object.defineProperty,OU=Object.getOwnPropertyDescriptor,xw=Object.getOwnPropertyNames,NU=Object.getPrototypeOf,PU=Object.prototype.hasOwnProperty,Ps=(e,t)=>function(){return t||(0,e[xw(e)[0]])((t={exports:{}}).exports,t),t.exports},kU=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(var a=xw(t),i=0,l=a.length,u;i<l;i++)u=a[i],!PU.call(e,u)&&u!==n&&Ew(e,u,{get:(d=>t[d]).bind(null,u),enumerable:!(r=OU(t,u))||r.enumerable});return e},qn=(e,t,n)=>(n=e!=null?RU(NU(e)):{},kU(Ew(n,"default",{value:e,enumerable:!0}),e)),_w=Ps({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/typeof.js"(e,t){function n(r){"@babel/helpers - typeof";return t.exports=n=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(a){return typeof a}:function(a){return a&&typeof Symbol=="function"&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},t.exports.__esModule=!0,t.exports.default=t.exports,n(r)}t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports}}),DU=Ps({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/toPrimitive.js"(e,t){var n=_w().default;function r(a,i){if(n(a)!="object"||!a)return a;var l=a[Symbol.toPrimitive];if(l!==void 0){var u=l.call(a,i||"default");if(n(u)!="object")return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return(i==="string"?String:Number)(a)}t.exports=r,t.exports.__esModule=!0,t.exports.default=t.exports}}),MU=Ps({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/toPropertyKey.js"(e,t){var n=_w().default,r=DU();function a(i){var l=r(i,"string");return n(l)=="symbol"?l:l+""}t.exports=a,t.exports.__esModule=!0,t.exports.default=t.exports}}),nl=Ps({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/defineProperty.js"(e,t){var n=MU();function r(a,i,l){return(i=n(i))in a?Object.defineProperty(a,i,{value:l,enumerable:!0,configurable:!0,writable:!0}):a[i]=l,a}t.exports=r,t.exports.__esModule=!0,t.exports.default=t.exports}}),ts=Ps({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/objectSpread2.js"(e,t){var n=nl();function r(i,l){var u=Object.keys(i);if(Object.getOwnPropertySymbols){var d=Object.getOwnPropertySymbols(i);l&&(d=d.filter(function(h){return Object.getOwnPropertyDescriptor(i,h).enumerable})),u.push.apply(u,d)}return u}function a(i){for(var l=1;l<arguments.length;l++){var u=arguments[l]!=null?arguments[l]:{};l%2?r(Object(u),!0).forEach(function(d){n(i,d,u[d])}):Object.getOwnPropertyDescriptors?Object.defineProperties(i,Object.getOwnPropertyDescriptors(u)):r(Object(u)).forEach(function(d){Object.defineProperty(i,d,Object.getOwnPropertyDescriptor(u,d))})}return i}t.exports=a,t.exports.__esModule=!0,t.exports.default=t.exports}});function o1(e){const t={subscribe(n){let r=null,a=!1,i=!1,l=!1;function u(){if(r===null){l=!0;return}i||(i=!0,typeof r=="function"?r():r&&r.unsubscribe())}return r=e({next(d){var h;a||(h=n.next)===null||h===void 0||h.call(n,d)},error(d){var h;a||(a=!0,(h=n.error)===null||h===void 0||h.call(n,d),u())},complete(){var d;a||(a=!0,(d=n.complete)===null||d===void 0||d.call(n),u())}}),l&&u(),{unsubscribe:u}},pipe(...n){return n.reduce(LU,t)}};return t}function LU(e,t){return t(e)}function IU(e){const t=new AbortController;return new Promise((r,a)=>{let i=!1;function l(){i||(i=!0,u.unsubscribe())}t.signal.addEventListener("abort",()=>{a(t.signal.reason)});const u=e.subscribe({next(d){i=!0,r(d),l()},error(d){a(d)},complete(){t.abort(),l()}})})}function jU(e){return t=>{let n=0,r=null;const a=[];function i(){r||(r=t.subscribe({next(u){for(const h of a){var d;(d=h.next)===null||d===void 0||d.call(h,u)}},error(u){for(const h of a){var d;(d=h.error)===null||d===void 0||d.call(h,u)}},complete(){for(const d of a){var u;(u=d.complete)===null||u===void 0||u.call(d)}}}))}function l(){if(n===0&&r){const u=r;r=null,u.unsubscribe()}}return o1(u=>(n++,a.push(u),i(),{unsubscribe(){n--,l();const d=a.findIndex(h=>h===u);d>-1&&a.splice(d,1)}}))}}function HU(e){let t=e;const n=[],r=l=>{t!==void 0&&l.next(t),n.push(l)},a=l=>{n.splice(n.indexOf(l),1)},i=o1(l=>(r(l),()=>{a(l)}));return i.next=l=>{if(t!==l){t=l;for(const u of n)u.next(l)}},i.get=()=>t,i}function FU(e){return o1(t=>{function n(a=0,i=e.op){const l=e.links[a];if(!l)throw new Error("No more links to execute - did you forget to add an ending link?");return l({op:i,next(d){return n(a+1,d)}})}return n().subscribe(t)})}function $o(e){return!!e&&!Array.isArray(e)&&typeof e=="object"}const UU=typeof Symbol=="function"&&!!Symbol.asyncIterator;function Tw(e){return UU&&$o(e)&&Symbol.asyncIterator in e}var BU=Object.create,Aw=Object.defineProperty,VU=Object.getOwnPropertyDescriptor,Sw=Object.getOwnPropertyNames,zU=Object.getPrototypeOf,qU=Object.prototype.hasOwnProperty,Zd=(e,t)=>function(){return t||(0,e[Sw(e)[0]])((t={exports:{}}).exports,t),t.exports},$U=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(var a=Sw(t),i=0,l=a.length,u;i<l;i++)u=a[i],!qU.call(e,u)&&u!==n&&Aw(e,u,{get:(d=>t[d]).bind(null,u),enumerable:!(r=VU(t,u))||r.enumerable});return e},l1=(e,t,n)=>(n=e!=null?BU(zU(e)):{},$U(Aw(n,"default",{value:e,enumerable:!0}),e));const ww=()=>{},Lx=e=>{Object.freeze&&Object.freeze(e)};function Cw(e,t,n){var r;const a=t.join(".");return(r=n[a])!==null&&r!==void 0||(n[a]=new Proxy(ww,{get(i,l){if(!(typeof l!="string"||l==="then"))return Cw(e,[...t,l],n)},apply(i,l,u){const d=t[t.length-1];let h={args:u,path:t};return d==="call"?h={args:u.length>=2?[u[1]]:[],path:t.slice(0,-1)}:d==="apply"&&(h={args:u.length>=2?u[1]:[],path:t.slice(0,-1)}),Lx(h.args),Lx(h.path),e(h)}})),n[a]}const u1=e=>Cw(e,[],Object.create(null)),C4=e=>new Proxy(ww,{get(t,n){if(n!=="then")return e(n)}});var Rw=Zd({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/typeof.js"(e,t){function n(r){"@babel/helpers - typeof";return t.exports=n=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(a){return typeof a}:function(a){return a&&typeof Symbol=="function"&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},t.exports.__esModule=!0,t.exports.default=t.exports,n(r)}t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports}}),ZU=Zd({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/toPrimitive.js"(e,t){var n=Rw().default;function r(a,i){if(n(a)!="object"||!a)return a;var l=a[Symbol.toPrimitive];if(l!==void 0){var u=l.call(a,i||"default");if(n(u)!="object")return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return(i==="string"?String:Number)(a)}t.exports=r,t.exports.__esModule=!0,t.exports.default=t.exports}}),QU=Zd({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/toPropertyKey.js"(e,t){var n=Rw().default,r=ZU();function a(i){var l=r(i,"string");return n(l)=="symbol"?l:l+""}t.exports=a,t.exports.__esModule=!0,t.exports.default=t.exports}}),Ow=Zd({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/defineProperty.js"(e,t){var n=QU();function r(a,i,l){return(i=n(i))in a?Object.defineProperty(a,i,{value:l,enumerable:!0,configurable:!0,writable:!0}):a[i]=l,a}t.exports=r,t.exports.__esModule=!0,t.exports.default=t.exports}}),R4=Zd({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/objectSpread2.js"(e,t){var n=Ow();function r(i,l){var u=Object.keys(i);if(Object.getOwnPropertySymbols){var d=Object.getOwnPropertySymbols(i);l&&(d=d.filter(function(h){return Object.getOwnPropertyDescriptor(i,h).enumerable})),u.push.apply(u,d)}return u}function a(i){for(var l=1;l<arguments.length;l++){var u=arguments[l]!=null?arguments[l]:{};l%2?r(Object(u),!0).forEach(function(d){n(i,d,u[d])}):Object.getOwnPropertyDescriptors?Object.defineProperties(i,Object.getOwnPropertyDescriptors(u)):r(Object(u)).forEach(function(d){Object.defineProperty(i,d,Object.getOwnPropertyDescriptor(u,d))})}return i}t.exports=a,t.exports.__esModule=!0,t.exports.default=t.exports}});l1(R4());l1(Ow());var Of=l1(R4());function YU(e,t){if("error"in e){const r=t.deserialize(e.error);return{ok:!1,error:(0,Of.default)((0,Of.default)({},e),{},{error:r})}}return{ok:!0,result:(0,Of.default)((0,Of.default)({},e.result),(!e.result.type||e.result.type==="data")&&{type:"data",data:t.deserialize(e.result.data)})}}var _2=class extends Error{constructor(){super("Unable to transform response from server")}};function GU(e,t){let n;try{n=YU(e,t)}catch{throw new _2}if(!n.ok&&(!$o(n.error.error)||typeof n.error.error.code!="number"))throw new _2;if(n.ok&&!$o(n.result))throw new _2;return n}l1(R4());var Nf=qn(nl()),Kl=qn(ts());function KU(e){return e instanceof lh}function XU(e){return $o(e)&&$o(e.error)&&typeof e.error.code=="number"&&typeof e.error.message=="string"}function WU(e,t){return typeof e=="string"?e:$o(e)&&typeof e.message=="string"?e.message:t}var lh=class qf extends Error{constructor(t,n){var r,a;const i=n?.cause;super(t,{cause:i}),(0,Nf.default)(this,"cause",void 0),(0,Nf.default)(this,"shape",void 0),(0,Nf.default)(this,"data",void 0),(0,Nf.default)(this,"meta",void 0),this.meta=n?.meta,this.cause=i,this.shape=n==null||(r=n.result)===null||r===void 0?void 0:r.error,this.data=n==null||(a=n.result)===null||a===void 0?void 0:a.error.data,this.name="TRPCClientError",Object.setPrototypeOf(this,qf.prototype)}static from(t,n={}){const r=t;return KU(r)?(n.meta&&(r.meta=(0,Kl.default)((0,Kl.default)({},r.meta),n.meta)),r):XU(r)?new qf(r.error.message,(0,Kl.default)((0,Kl.default)({},n),{},{result:r})):new qf(WU(r,"Unknown error"),(0,Kl.default)((0,Kl.default)({},n),{},{cause:r}))}};function JU(e){const t=e;return t?"input"in t?t:{input:t,output:t}:{input:{serialize:n=>n,deserialize:n=>n},output:{serialize:n=>n,deserialize:n=>n}}}const Ix=e=>typeof e=="function";function eB(e){if(e)return e;if(typeof window<"u"&&Ix(window.fetch))return window.fetch;if(typeof globalThis<"u"&&Ix(globalThis.fetch))return globalThis.fetch;throw new Error("No fetch implementation found")}var id=qn(ts());function tB(e){return{url:e.url.toString(),fetch:e.fetch,transformer:JU(e.transformer),methodOverride:e.methodOverride}}function nB(e){const t={};for(let n=0;n<e.length;n++){const r=e[n];t[n]=r}return t}const rB={query:"GET",mutation:"POST",subscription:"PATCH"};function Nw(e){return"input"in e?e.transformer.input.serialize(e.input):nB(e.inputs.map(t=>e.transformer.input.serialize(t)))}const Pw=e=>{const t=e.url.split("?");let r=t[0].replace(/\/$/,"")+"/"+e.path;const a=[];if(t[1]&&a.push(t[1]),"inputs"in e&&a.push("batch=1"),e.type==="query"||e.type==="subscription"){const i=Nw(e);i!==void 0&&e.methodOverride!=="POST"&&a.push(`input=${encodeURIComponent(JSON.stringify(i))}`)}return a.length&&(r+="?"+a.join("&")),r},aB=e=>{if(e.type==="query"&&e.methodOverride!=="POST")return;const t=Nw(e);return t!==void 0?JSON.stringify(t):void 0},sB=e=>uB((0,id.default)((0,id.default)({},e),{},{contentTypeHeader:"application/json",getUrl:Pw,getBody:aB}));var iB=class extends Error{constructor(){const e="AbortError";super(e),this.name=e,this.message=e}};const oB=e=>{var t;if(e?.aborted)throw(t=e.throwIfAborted)===null||t===void 0||t.call(e),typeof DOMException<"u"?new DOMException("AbortError","AbortError"):new iB};async function lB(e){var t;oB(e.signal);const n=e.getUrl(e),r=e.getBody(e),{type:a}=e,i=await(async()=>{const u=await e.headers();return Symbol.iterator in u?Object.fromEntries(u):u})(),l=(0,id.default)((0,id.default)((0,id.default)({},e.contentTypeHeader?{"content-type":e.contentTypeHeader}:{}),e.trpcAcceptHeader?{"trpc-accept":e.trpcAcceptHeader}:void 0),i);return eB(e.fetch)(n,{method:(t=e.methodOverride)!==null&&t!==void 0?t:rB[a],signal:e.signal,body:r,headers:l})}async function uB(e){const t={},n=await lB(e);t.response=n;const r=await n.json();return t.responseJSON=r,{json:r,meta:t}}qn(ts());const jx=()=>{throw new Error("Something went wrong. Please submit an issue at https://github.com/trpc/trpc/issues/new")};function Hx(e){let t=null,n=null;const r=()=>{clearTimeout(n),n=null,t=null};function a(u){const d=[[]];let h=0;for(;;){const E=u[h];if(!E)break;const b=d[d.length-1];if(E.aborted){var v;(v=E.reject)===null||v===void 0||v.call(E,new Error("Aborted")),h++;continue}if(e.validate(b.concat(E).map(A=>A.key))){b.push(E),h++;continue}if(b.length===0){var m;(m=E.reject)===null||m===void 0||m.call(E,new Error("Input is too big for a single dispatch")),h++;continue}d.push([])}return d}function i(){const u=a(t);r();for(const d of u){if(!d.length)continue;const h={items:d};for(const m of d)m.batch=h;e.fetch(h.items.map(m=>m.key)).then(async m=>{await Promise.all(m.map(async(b,T)=>{const A=h.items[T];try{var S;const R=await Promise.resolve(b);(S=A.resolve)===null||S===void 0||S.call(A,R)}catch(R){var w;(w=A.reject)===null||w===void 0||w.call(A,R)}A.batch=null,A.reject=null,A.resolve=null}));for(const b of h.items){var E;(E=b.reject)===null||E===void 0||E.call(b,new Error("Missing result")),b.batch=null}}).catch(m=>{for(const b of h.items){var E;(E=b.reject)===null||E===void 0||E.call(b,m),b.batch=null}})}}function l(u){var d;const h={aborted:!1,key:u,batch:null,resolve:jx,reject:jx},v=new Promise((m,E)=>{var b;h.reject=E,h.resolve=m,(b=t)!==null&&b!==void 0||(t=[]),t.push(h)});return(d=n)!==null&&d!==void 0||(n=setTimeout(i)),v}return{load:l}}function cB(...e){const t=new AbortController,n=e.length;let r=0;const a=()=>{++r===n&&t.abort()};for(const i of e)i?.aborted?a():i?.addEventListener("abort",a,{once:!0});return t.signal}var Pf=qn(ts());function kw(e){var t,n;const r=tB(e),a=(t=e.maxURLLength)!==null&&t!==void 0?t:1/0,i=(n=e.maxItems)!==null&&n!==void 0?n:1/0;return()=>{const l=v=>({validate(m){if(a===1/0&&i===1/0)return!0;if(m.length>i)return!1;const E=m.map(A=>A.path).join(","),b=m.map(A=>A.input);return Pw((0,Pf.default)((0,Pf.default)({},r),{},{type:v,path:E,inputs:b,signal:null})).length<=a},async fetch(m){const E=m.map(R=>R.path).join(","),b=m.map(R=>R.input),T=cB(...m.map(R=>R.signal)),A=await sB((0,Pf.default)((0,Pf.default)({},r),{},{path:E,inputs:b,type:v,headers(){return e.headers?typeof e.headers=="function"?e.headers({opList:m}):e.headers:{}},signal:T}));return(Array.isArray(A.json)?A.json:m.map(()=>A.json)).map(R=>({meta:A.meta,json:R}))}}),u=Hx(l("query")),d=Hx(l("mutation")),h={query:u,mutation:d};return({op:v})=>o1(m=>{/* istanbul ignore if -- @preserve */if(v.type==="subscription")throw new Error("Subscriptions are unsupported by `httpLink` - use `httpSubscriptionLink` or `wsLink`");const b=h[v.type].load(v);let T;return b.then(A=>{T=A;const S=GU(A.json,r.transformer.output);if(!S.ok){m.error(lh.from(S.error,{meta:A.meta}));return}m.next({context:A.meta,result:S.result}),m.complete()}).catch(A=>{m.error(lh.from(A,{meta:T?.meta}))}),()=>{}})}}qn(ts());const Dw=(e,...t)=>typeof e=="function"?e(...t):e;qn(nl());function dB(){let e,t;return{promise:new Promise((r,a)=>{e=r,t=a}),resolve:e,reject:t}}async function fB(e){const t=await Dw(e.url);if(!e.connectionParams)return t;const r=`${t.includes("?")?"&":"?"}connectionParams=1`;return t+r}async function hB(e){const t={method:"connectionParams",data:await Dw(e)};return JSON.stringify(t)}qn(nl());var Ho=qn(nl());function mB(e){const{promise:t,resolve:n,reject:r}=dB();return e.addEventListener("open",()=>{e.removeEventListener("error",r),n()}),e.addEventListener("error",r),t}function pB(e,{intervalMs:t,pongTimeoutMs:n}){let r,a;function i(){r=setTimeout(()=>{e.send("PING"),a=setTimeout(()=>{e.close()},n)},t)}function l(){clearTimeout(r),i()}function u(){clearTimeout(a),l()}e.addEventListener("open",i),e.addEventListener("message",({data:d})=>{clearTimeout(r),i(),d==="PONG"&&u()}),e.addEventListener("close",()=>{clearTimeout(r),clearTimeout(a)})}var gB=class yv{constructor(t){var n;if((0,Ho.default)(this,"id",++yv.connectCount),(0,Ho.default)(this,"WebSocketPonyfill",void 0),(0,Ho.default)(this,"urlOptions",void 0),(0,Ho.default)(this,"keepAliveOpts",void 0),(0,Ho.default)(this,"wsObservable",HU(null)),(0,Ho.default)(this,"openPromise",null),this.WebSocketPonyfill=(n=t.WebSocketPonyfill)!==null&&n!==void 0?n:WebSocket,!this.WebSocketPonyfill)throw new Error("No WebSocket implementation found - you probably don't want to use this on the server, but if you do you need to pass a `WebSocket`-ponyfill");this.urlOptions=t.urlOptions,this.keepAliveOpts=t.keepAlive}get ws(){return this.wsObservable.get()}set ws(t){this.wsObservable.next(t)}isOpen(){return!!this.ws&&this.ws.readyState===this.WebSocketPonyfill.OPEN&&!this.openPromise}isClosed(){return!!this.ws&&(this.ws.readyState===this.WebSocketPonyfill.CLOSING||this.ws.readyState===this.WebSocketPonyfill.CLOSED)}async open(){var t=this;if(t.openPromise)return t.openPromise;t.id=++yv.connectCount;const n=fB(t.urlOptions).then(r=>new t.WebSocketPonyfill(r));t.openPromise=n.then(async r=>{t.ws=r,r.addEventListener("message",function({data:a}){a==="PING"&&this.send("PONG")}),t.keepAliveOpts.enabled&&pB(r,t.keepAliveOpts),r.addEventListener("close",()=>{t.ws===r&&(t.ws=null)}),await mB(r),t.urlOptions.connectionParams&&r.send(await hB(t.urlOptions.connectionParams))});try{await t.openPromise}finally{t.openPromise=null}}async close(){var t=this;try{await t.openPromise}finally{var n;(n=t.ws)===null||n===void 0||n.close()}}};(0,Ho.default)(gB,"connectCount",0);qn(nl());qn(ts());var T2=qn(nl()),Fx=qn(ts()),c1=class{constructor(e){(0,T2.default)(this,"links",void 0),(0,T2.default)(this,"runtime",void 0),(0,T2.default)(this,"requestId",void 0),this.requestId=0,this.runtime={},this.links=e.links.map(t=>t(this.runtime))}$request(e){var t;return FU({links:this.links,op:(0,Fx.default)((0,Fx.default)({},e),{},{context:(t=e.context)!==null&&t!==void 0?t:{},id:++this.requestId})}).pipe(jU())}async requestAsPromise(e){var t=this;try{const n=t.$request(e);return(await IU(n)).result.data}catch(n){throw lh.from(n)}}query(e,t,n){return this.requestAsPromise({type:"query",path:e,input:t,context:n?.context,signal:n?.signal})}mutation(e,t,n){return this.requestAsPromise({type:"mutation",path:e,input:t,context:n?.context,signal:n?.signal})}subscription(e,t,n){return this.$request({type:"subscription",path:e,input:t,context:n.context,signal:n.signal}).subscribe({next(a){switch(a.result.type){case"state":{var i;(i=n.onConnectionStateChange)===null||i===void 0||i.call(n,a.result);break}case"started":{var l;(l=n.onStarted)===null||l===void 0||l.call(n,{context:a.context});break}case"stopped":{var u;(u=n.onStopped)===null||u===void 0||u.call(n);break}case"data":case void 0:{var d;(d=n.onData)===null||d===void 0||d.call(n,a.result.data);break}}},error(a){var i;(i=n.onError)===null||i===void 0||i.call(n,a)},complete(){var a;(a=n.onComplete)===null||a===void 0||a.call(n)}})}};const Mw=Symbol.for("trpc_untypedClient"),vB={query:"query",mutate:"mutation",subscribe:"subscription"},yB=e=>vB[e];function Lw(e){const t=u1(({path:n,args:r})=>{const a=[...n],i=yB(a.pop()),l=a.join(".");return e[i](l,...r)});return C4(n=>n===Mw?e:t[n])}function O4(e){const t=new c1(e);return Lw(t)}function N4(e){return e[Mw]}qn(ts());qn(ts());var bB=Ps({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/asyncIterator.js"(e,t){function n(a){var i,l,u,d=2;for(typeof Symbol<"u"&&(l=Symbol.asyncIterator,u=Symbol.iterator);d--;){if(l&&(i=a[l])!=null)return i.call(a);if(u&&(i=a[u])!=null)return new r(i.call(a));l="@@asyncIterator",u="@@iterator"}throw new TypeError("Object is not async iterable")}function r(a){function i(l){if(Object(l)!==l)return Promise.reject(new TypeError(l+" is not an object."));var u=l.done;return Promise.resolve(l.value).then(function(d){return{value:d,done:u}})}return r=function(u){this.s=u,this.n=u.next},r.prototype={s:null,n:null,next:function(){return i(this.n.apply(this.s,arguments))},return:function(u){var d=this.s.return;return d===void 0?Promise.resolve({value:u,done:!0}):i(d.apply(this.s,arguments))},throw:function(u){var d=this.s.return;return d===void 0?Promise.reject(u):i(d.apply(this.s,arguments))}},new r(a)}t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports}});qn(bB());qn(ts());var EB=Ps({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/usingCtx.js"(e,t){function n(){var r=typeof SuppressedError=="function"?SuppressedError:function(u,d){var h=Error();return h.name="SuppressedError",h.error=u,h.suppressed=d,h},a={},i=[];function l(u,d){if(d!=null){if(Object(d)!==d)throw new TypeError("using declarations can only be used with objects, functions, null, or undefined.");if(u)var h=d[Symbol.asyncDispose||Symbol.for("Symbol.asyncDispose")];if(h===void 0&&(h=d[Symbol.dispose||Symbol.for("Symbol.dispose")],u))var v=h;if(typeof h!="function")throw new TypeError("Object is not disposable.");v&&(h=function(){try{v.call(d)}catch(E){return Promise.reject(E)}}),i.push({v:d,d:h,a:u})}else u&&i.push({d,a:u});return d}return{e:a,u:l.bind(null,!1),a:l.bind(null,!0),d:function(){var d,h=this.e,v=0;function m(){for(;d=i.pop();)try{if(!d.a&&v===1)return v=0,i.push(d),Promise.resolve().then(m);if(d.d){var b=d.d.call(d.v);if(d.a)return v|=2,Promise.resolve(b).then(m,E)}else v|=1}catch(T){return E(T)}if(v===1)return h!==a?Promise.reject(h):Promise.resolve();if(h!==a)throw h}function E(b){return h=h!==a?new r(b,h):b,m()}return m()}}}t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports}}),Iw=Ps({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/OverloadYield.js"(e,t){function n(r,a){this.v=r,this.k=a}t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports}}),xB=Ps({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/awaitAsyncGenerator.js"(e,t){var n=Iw();function r(a){return new n(a,0)}t.exports=r,t.exports.__esModule=!0,t.exports.default=t.exports}}),_B=Ps({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/wrapAsyncGenerator.js"(e,t){var n=Iw();function r(i){return function(){return new a(i.apply(this,arguments))}}function a(i){var l,u;function d(v,m){try{var E=i[v](m),b=E.value,T=b instanceof n;Promise.resolve(T?b.v:b).then(function(A){if(T){var S=v==="return"?"return":"next";if(!b.k||A.done)return d(S,A);A=i[S](A).value}h(E.done?"return":"normal",A)},function(A){d("throw",A)})}catch(A){h("throw",A)}}function h(v,m){switch(v){case"return":l.resolve({value:m,done:!0});break;case"throw":l.reject(m);break;default:l.resolve({value:m,done:!1})}(l=l.next)?d(l.key,l.arg):u=null}this._invoke=function(v,m){return new Promise(function(E,b){var T={key:v,arg:m,resolve:E,reject:b,next:null};u?u=u.next=T:(l=u=T,d(v,m))})},typeof i.return!="function"&&(this.return=void 0)}a.prototype[typeof Symbol=="function"&&Symbol.asyncIterator||"@@asyncIterator"]=function(){return this},a.prototype.next=function(i){return this._invoke("next",i)},a.prototype.throw=function(i){return this._invoke("throw",i)},a.prototype.return=function(i){return this._invoke("return",i)},t.exports=r,t.exports.__esModule=!0,t.exports.default=t.exports}});qn(EB());qn(xB());qn(_B());qn(ts());class TB{constructor(){this.keyToValue=new Map,this.valueToKey=new Map}set(t,n){this.keyToValue.set(t,n),this.valueToKey.set(n,t)}getByKey(t){return this.keyToValue.get(t)}getByValue(t){return this.valueToKey.get(t)}clear(){this.keyToValue.clear(),this.valueToKey.clear()}}class jw{constructor(t){this.generateIdentifier=t,this.kv=new TB}register(t,n){this.kv.getByValue(t)||(n||(n=this.generateIdentifier(t)),this.kv.set(n,t))}clear(){this.kv.clear()}getIdentifier(t){return this.kv.getByValue(t)}getValue(t){return this.kv.getByKey(t)}}class AB extends jw{constructor(){super(t=>t.name),this.classToAllowedProps=new Map}register(t,n){typeof n=="object"?(n.allowProps&&this.classToAllowedProps.set(t,n.allowProps),super.register(t,n.identifier)):super.register(t,n)}getAllowedProps(t){return this.classToAllowedProps.get(t)}}function SB(e){if("values"in Object)return Object.values(e);const t=[];for(const n in e)e.hasOwnProperty(n)&&t.push(e[n]);return t}function wB(e,t){const n=SB(e);if("find"in n)return n.find(t);const r=n;for(let a=0;a<r.length;a++){const i=r[a];if(t(i))return i}}function bu(e,t){Object.entries(e).forEach(([n,r])=>t(r,n))}function $f(e,t){return e.indexOf(t)!==-1}function Ux(e,t){for(let n=0;n<e.length;n++){const r=e[n];if(t(r))return r}}class CB{constructor(){this.transfomers={}}register(t){this.transfomers[t.name]=t}findApplicable(t){return wB(this.transfomers,n=>n.isApplicable(t))}findByName(t){return this.transfomers[t]}}const RB=e=>Object.prototype.toString.call(e).slice(8,-1),Hw=e=>typeof e>"u",OB=e=>e===null,Td=e=>typeof e!="object"||e===null||e===Object.prototype?!1:Object.getPrototypeOf(e)===null?!0:Object.getPrototypeOf(e)===Object.prototype,bv=e=>Td(e)&&Object.keys(e).length===0,oo=e=>Array.isArray(e),NB=e=>typeof e=="string",PB=e=>typeof e=="number"&&!isNaN(e),kB=e=>typeof e=="boolean",DB=e=>e instanceof RegExp,Ad=e=>e instanceof Map,Sd=e=>e instanceof Set,Fw=e=>RB(e)==="Symbol",MB=e=>e instanceof Date&&!isNaN(e.valueOf()),LB=e=>e instanceof Error,Bx=e=>typeof e=="number"&&isNaN(e),IB=e=>kB(e)||OB(e)||Hw(e)||PB(e)||NB(e)||Fw(e),jB=e=>typeof e=="bigint",HB=e=>e===1/0||e===-1/0,FB=e=>ArrayBuffer.isView(e)&&!(e instanceof DataView),UB=e=>e instanceof URL,Uw=e=>e.replace(/\./g,"\\."),A2=e=>e.map(String).map(Uw).join("."),od=e=>{const t=[];let n="";for(let a=0;a<e.length;a++){let i=e.charAt(a);if(i==="\\"&&e.charAt(a+1)==="."){n+=".",a++;continue}if(i==="."){t.push(n),n="";continue}n+=i}const r=n;return t.push(r),t};function ms(e,t,n,r){return{isApplicable:e,annotation:t,transform:n,untransform:r}}const Bw=[ms(Hw,"undefined",()=>null,()=>{}),ms(jB,"bigint",e=>e.toString(),e=>typeof BigInt<"u"?BigInt(e):(console.error("Please add a BigInt polyfill."),e)),ms(MB,"Date",e=>e.toISOString(),e=>new Date(e)),ms(LB,"Error",(e,t)=>{const n={name:e.name,message:e.message};return t.allowedErrorProps.forEach(r=>{n[r]=e[r]}),n},(e,t)=>{const n=new Error(e.message);return n.name=e.name,n.stack=e.stack,t.allowedErrorProps.forEach(r=>{n[r]=e[r]}),n}),ms(DB,"regexp",e=>""+e,e=>{const t=e.slice(1,e.lastIndexOf("/")),n=e.slice(e.lastIndexOf("/")+1);return new RegExp(t,n)}),ms(Sd,"set",e=>[...e.values()],e=>new Set(e)),ms(Ad,"map",e=>[...e.entries()],e=>new Map(e)),ms(e=>Bx(e)||HB(e),"number",e=>Bx(e)?"NaN":e>0?"Infinity":"-Infinity",Number),ms(e=>e===0&&1/e===-1/0,"number",()=>"-0",Number),ms(UB,"URL",e=>e.toString(),e=>new URL(e))];function d1(e,t,n,r){return{isApplicable:e,annotation:t,transform:n,untransform:r}}const Vw=d1((e,t)=>Fw(e)?!!t.symbolRegistry.getIdentifier(e):!1,(e,t)=>["symbol",t.symbolRegistry.getIdentifier(e)],e=>e.description,(e,t,n)=>{const r=n.symbolRegistry.getValue(t[1]);if(!r)throw new Error("Trying to deserialize unknown symbol");return r}),BB=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array,Uint8ClampedArray].reduce((e,t)=>(e[t.name]=t,e),{}),zw=d1(FB,e=>["typed-array",e.constructor.name],e=>[...e],(e,t)=>{const n=BB[t[1]];if(!n)throw new Error("Trying to deserialize unknown typed array");return new n(e)});function qw(e,t){return e?.constructor?!!t.classRegistry.getIdentifier(e.constructor):!1}const $w=d1(qw,(e,t)=>["class",t.classRegistry.getIdentifier(e.constructor)],(e,t)=>{const n=t.classRegistry.getAllowedProps(e.constructor);if(!n)return{...e};const r={};return n.forEach(a=>{r[a]=e[a]}),r},(e,t,n)=>{const r=n.classRegistry.getValue(t[1]);if(!r)throw new Error(`Trying to deserialize unknown class '${t[1]}' - check https://github.com/blitz-js/superjson/issues/116#issuecomment-773996564`);return Object.assign(Object.create(r.prototype),e)}),Zw=d1((e,t)=>!!t.customTransformerRegistry.findApplicable(e),(e,t)=>["custom",t.customTransformerRegistry.findApplicable(e).name],(e,t)=>t.customTransformerRegistry.findApplicable(e).serialize(e),(e,t,n)=>{const r=n.customTransformerRegistry.findByName(t[1]);if(!r)throw new Error("Trying to deserialize unknown custom value");return r.deserialize(e)}),VB=[$w,Vw,Zw,zw],Vx=(e,t)=>{const n=Ux(VB,a=>a.isApplicable(e,t));if(n)return{value:n.transform(e,t),type:n.annotation(e,t)};const r=Ux(Bw,a=>a.isApplicable(e,t));if(r)return{value:r.transform(e,t),type:r.annotation}},Qw={};Bw.forEach(e=>{Qw[e.annotation]=e});const zB=(e,t,n)=>{if(oo(t))switch(t[0]){case"symbol":return Vw.untransform(e,t,n);case"class":return $w.untransform(e,t,n);case"custom":return Zw.untransform(e,t,n);case"typed-array":return zw.untransform(e,t,n);default:throw new Error("Unknown transformation: "+t)}else{const r=Qw[t];if(!r)throw new Error("Unknown transformation: "+t);return r.untransform(e,n)}},su=(e,t)=>{if(t>e.size)throw new Error("index out of bounds");const n=e.keys();for(;t>0;)n.next(),t--;return n.next().value};function Yw(e){if($f(e,"__proto__"))throw new Error("__proto__ is not allowed as a property");if($f(e,"prototype"))throw new Error("prototype is not allowed as a property");if($f(e,"constructor"))throw new Error("constructor is not allowed as a property")}const qB=(e,t)=>{Yw(t);for(let n=0;n<t.length;n++){const r=t[n];if(Sd(e))e=su(e,+r);else if(Ad(e)){const a=+r,i=+t[++n]==0?"key":"value",l=su(e,a);switch(i){case"key":e=l;break;case"value":e=e.get(l);break}}else e=e[r]}return e},Ev=(e,t,n)=>{if(Yw(t),t.length===0)return n(e);let r=e;for(let i=0;i<t.length-1;i++){const l=t[i];if(oo(r)){const u=+l;r=r[u]}else if(Td(r))r=r[l];else if(Sd(r)){const u=+l;r=su(r,u)}else if(Ad(r)){if(i===t.length-2)break;const d=+l,h=+t[++i]==0?"key":"value",v=su(r,d);switch(h){case"key":r=v;break;case"value":r=r.get(v);break}}}const a=t[t.length-1];if(oo(r)?r[+a]=n(r[+a]):Td(r)&&(r[a]=n(r[a])),Sd(r)){const i=su(r,+a),l=n(i);i!==l&&(r.delete(i),r.add(l))}if(Ad(r)){const i=+t[t.length-2],l=su(r,i);switch(+a==0?"key":"value"){case"key":{const d=n(l);r.set(d,r.get(l)),d!==l&&r.delete(l);break}case"value":{r.set(l,n(r.get(l)));break}}}return e};function xv(e,t,n=[]){if(!e)return;if(!oo(e)){bu(e,(i,l)=>xv(i,t,[...n,...od(l)]));return}const[r,a]=e;a&&bu(a,(i,l)=>{xv(i,t,[...n,...od(l)])}),t(r,n)}function $B(e,t,n){return xv(t,(r,a)=>{e=Ev(e,a,i=>zB(i,r,n))}),e}function ZB(e,t){function n(r,a){const i=qB(e,od(a));r.map(od).forEach(l=>{e=Ev(e,l,()=>i)})}if(oo(t)){const[r,a]=t;r.forEach(i=>{e=Ev(e,od(i),()=>e)}),a&&bu(a,n)}else bu(t,n);return e}const QB=(e,t)=>Td(e)||oo(e)||Ad(e)||Sd(e)||qw(e,t);function YB(e,t,n){const r=n.get(e);r?r.push(t):n.set(e,[t])}function GB(e,t){const n={};let r;return e.forEach(a=>{if(a.length<=1)return;t||(a=a.map(u=>u.map(String)).sort((u,d)=>u.length-d.length));const[i,...l]=a;i.length===0?r=l.map(A2):n[A2(i)]=l.map(A2)}),r?bv(n)?[r]:[r,n]:bv(n)?void 0:n}const Gw=(e,t,n,r,a=[],i=[],l=new Map)=>{const u=IB(e);if(!u){YB(e,a,t);const b=l.get(e);if(b)return r?{transformedValue:null}:b}if(!QB(e,n)){const b=Vx(e,n),T=b?{transformedValue:b.value,annotations:[b.type]}:{transformedValue:e};return u||l.set(e,T),T}if($f(i,e))return{transformedValue:null};const d=Vx(e,n),h=d?.value??e,v=oo(h)?[]:{},m={};bu(h,(b,T)=>{if(T==="__proto__"||T==="constructor"||T==="prototype")throw new Error(`Detected property ${T}. This is a prototype pollution risk, please remove it from your object.`);const A=Gw(b,t,n,r,[...a,T],[...i,e],l);v[T]=A.transformedValue,oo(A.annotations)?m[T]=A.annotations:Td(A.annotations)&&bu(A.annotations,(S,w)=>{m[Uw(T)+"."+w]=S})});const E=bv(m)?{transformedValue:v,annotations:d?[d.type]:void 0}:{transformedValue:v,annotations:d?[d.type,m]:m};return u||l.set(e,E),E};function Kw(e){return Object.prototype.toString.call(e).slice(8,-1)}function zx(e){return Kw(e)==="Array"}function KB(e){if(Kw(e)!=="Object")return!1;const t=Object.getPrototypeOf(e);return!!t&&t.constructor===Object&&t===Object.prototype}function XB(e,t,n,r,a){const i={}.propertyIsEnumerable.call(r,t)?"enumerable":"nonenumerable";i==="enumerable"&&(e[t]=n),a&&i==="nonenumerable"&&Object.defineProperty(e,t,{value:n,enumerable:!1,writable:!0,configurable:!0})}function _v(e,t={}){if(zx(e))return e.map(a=>_v(a,t));if(!KB(e))return e;const n=Object.getOwnPropertyNames(e),r=Object.getOwnPropertySymbols(e);return[...n,...r].reduce((a,i)=>{if(zx(t.props)&&!t.props.includes(i))return a;const l=e[i],u=_v(l,t);return XB(a,i,u,e,t.nonenumerable),a},{})}class Lt{constructor({dedupe:t=!1}={}){this.classRegistry=new AB,this.symbolRegistry=new jw(n=>n.description??""),this.customTransformerRegistry=new CB,this.allowedErrorProps=[],this.dedupe=t}serialize(t){const n=new Map,r=Gw(t,n,this,this.dedupe),a={json:r.transformedValue};r.annotations&&(a.meta={...a.meta,values:r.annotations});const i=GB(n,this.dedupe);return i&&(a.meta={...a.meta,referentialEqualities:i}),a}deserialize(t){const{json:n,meta:r}=t;let a=_v(n);return r?.values&&(a=$B(a,r.values,this)),r?.referentialEqualities&&(a=ZB(a,r.referentialEqualities)),a}stringify(t){return JSON.stringify(this.serialize(t))}parse(t){return this.deserialize(JSON.parse(t))}registerClass(t,n){this.classRegistry.register(t,n)}registerSymbol(t,n){this.symbolRegistry.register(t,n)}registerCustom(t,n){this.customTransformerRegistry.register({name:n,...t})}allowErrorProps(...t){this.allowedErrorProps.push(...t)}}Lt.defaultInstance=new Lt;Lt.serialize=Lt.defaultInstance.serialize.bind(Lt.defaultInstance);Lt.deserialize=Lt.defaultInstance.deserialize.bind(Lt.defaultInstance);Lt.stringify=Lt.defaultInstance.stringify.bind(Lt.defaultInstance);Lt.parse=Lt.defaultInstance.parse.bind(Lt.defaultInstance);Lt.registerClass=Lt.defaultInstance.registerClass.bind(Lt.defaultInstance);Lt.registerSymbol=Lt.defaultInstance.registerSymbol.bind(Lt.defaultInstance);Lt.registerCustom=Lt.defaultInstance.registerCustom.bind(Lt.defaultInstance);Lt.allowErrorProps=Lt.defaultInstance.allowErrorProps.bind(Lt.defaultInstance);Lt.serialize;Lt.deserialize;Lt.stringify;Lt.parse;Lt.registerClass;Lt.registerCustom;Lt.registerSymbol;Lt.allowErrorProps;function WB(e){const t=bw(e,"/trpc");return O4({links:[kw({url:t,transformer:Lt,async fetch(n,r){return fetch(n,r).catch(a=>{throw a.code==="ConnectionRefused"?new Error(`Could not connect to the gateway service on ${e}. Is it running?`):a})}})]})}function JB(e,{apiKey:t}={}){const n=bw(e,"/trpc");return O4({links:[kw({url:n,transformer:Lt,async fetch(r,a){return fetch(r,{...a,headers:t?{...a?.headers,"x-api-key":t}:a?.headers}).catch(i=>{throw i.code==="ConnectionRefused"?new Error(`Could not connect to the registry service on ${e}. Is it running?`):i})}})]})}var rl=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},Zo=typeof window>"u"||"Deno"in globalThis;function Ar(){}function eV(e,t){return typeof e=="function"?e(t):e}function Tv(e){return typeof e=="number"&&e>=0&&e!==1/0}function Xw(e,t){return Math.max(e+(t||0)-Date.now(),0)}function ro(e,t){return typeof e=="function"?e(t):e}function Aa(e,t){return typeof e=="function"?e(t):e}function qx(e,t){const{type:n="all",exact:r,fetchStatus:a,predicate:i,queryKey:l,stale:u}=e;if(l){if(r){if(t.queryHash!==P4(l,t.options))return!1}else if(!wd(t.queryKey,l))return!1}if(n!=="all"){const d=t.isActive();if(n==="active"&&!d||n==="inactive"&&d)return!1}return!(typeof u=="boolean"&&t.isStale()!==u||a&&a!==t.state.fetchStatus||i&&!i(t))}function $x(e,t){const{exact:n,status:r,predicate:a,mutationKey:i}=e;if(i){if(!t.options.mutationKey)return!1;if(n){if(lo(t.options.mutationKey)!==lo(i))return!1}else if(!wd(t.options.mutationKey,i))return!1}return!(r&&t.state.status!==r||a&&!a(t))}function P4(e,t){return(t?.queryKeyHashFn||lo)(e)}function lo(e){return JSON.stringify(e,(t,n)=>Av(n)?Object.keys(n).sort().reduce((r,a)=>(r[a]=n[a],r),{}):n)}function wd(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(n=>wd(e[n],t[n])):!1}function k4(e,t){if(e===t)return e;const n=Zx(e)&&Zx(t);if(n||Av(e)&&Av(t)){const r=n?e:Object.keys(e),a=r.length,i=n?t:Object.keys(t),l=i.length,u=n?[]:{},d=new Set(r);let h=0;for(let v=0;v<l;v++){const m=n?v:i[v];(!n&&d.has(m)||n)&&e[m]===void 0&&t[m]===void 0?(u[m]=void 0,h++):(u[m]=k4(e[m],t[m]),u[m]===e[m]&&e[m]!==void 0&&h++)}return a===l&&h===a?e:u}return t}function uh(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(e[n]!==t[n])return!1;return!0}function Zx(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function Av(e){if(!Qx(e))return!1;const t=e.constructor;if(t===void 0)return!0;const n=t.prototype;return!(!Qx(n)||!n.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function Qx(e){return Object.prototype.toString.call(e)==="[object Object]"}function tV(e){return new Promise(t=>{setTimeout(t,e)})}function Sv(e,t,n){return typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?k4(e,t):t}function nV(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function rV(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var ca=Symbol();function Ww(e,t){return!e.queryFn&&t?.initialPromise?()=>t.initialPromise:!e.queryFn||e.queryFn===ca?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function Jw(e,t){return typeof e=="function"?e(...t):!!e}var aV=class extends rl{#t;#e;#n;constructor(){super(),this.#n=e=>{if(!Zo&&window.addEventListener){const t=()=>e();return window.addEventListener("visibilitychange",t,!1),()=>{window.removeEventListener("visibilitychange",t)}}}}onSubscribe(){this.#e||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#e?.(),this.#e=void 0)}setEventListener(e){this.#n=e,this.#e?.(),this.#e=e(t=>{typeof t=="boolean"?this.setFocused(t):this.onFocus()})}setFocused(e){this.#t!==e&&(this.#t=e,this.onFocus())}onFocus(){const e=this.isFocused();this.listeners.forEach(t=>{t(e)})}isFocused(){return typeof this.#t=="boolean"?this.#t:globalThis.document?.visibilityState!=="hidden"}},D4=new aV,sV=class extends rl{#t=!0;#e;#n;constructor(){super(),this.#n=e=>{if(!Zo&&window.addEventListener){const t=()=>e(!0),n=()=>e(!1);return window.addEventListener("online",t,!1),window.addEventListener("offline",n,!1),()=>{window.removeEventListener("online",t),window.removeEventListener("offline",n)}}}}onSubscribe(){this.#e||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#e?.(),this.#e=void 0)}setEventListener(e){this.#n=e,this.#e?.(),this.#e=e(this.setOnline.bind(this))}setOnline(e){this.#t!==e&&(this.#t=e,this.listeners.forEach(n=>{n(e)}))}isOnline(){return this.#t}},ch=new sV;function wv(){let e,t;const n=new Promise((a,i)=>{e=a,t=i});n.status="pending",n.catch(()=>{});function r(a){Object.assign(n,a),delete n.resolve,delete n.reject}return n.resolve=a=>{r({status:"fulfilled",value:a}),e(a)},n.reject=a=>{r({status:"rejected",reason:a}),t(a)},n}function iV(e){return Math.min(1e3*2**e,3e4)}function e9(e){return(e??"online")==="online"?ch.isOnline():!0}var t9=class extends Error{constructor(e){super("CancelledError"),this.revert=e?.revert,this.silent=e?.silent}};function S2(e){return e instanceof t9}function n9(e){let t=!1,n=0,r=!1,a;const i=wv(),l=A=>{r||(E(new t9(A)),e.abort?.())},u=()=>{t=!0},d=()=>{t=!1},h=()=>D4.isFocused()&&(e.networkMode==="always"||ch.isOnline())&&e.canRun(),v=()=>e9(e.networkMode)&&e.canRun(),m=A=>{r||(r=!0,e.onSuccess?.(A),a?.(),i.resolve(A))},E=A=>{r||(r=!0,e.onError?.(A),a?.(),i.reject(A))},b=()=>new Promise(A=>{a=S=>{(r||h())&&A(S)},e.onPause?.()}).then(()=>{a=void 0,r||e.onContinue?.()}),T=()=>{if(r)return;let A;const S=n===0?e.initialPromise:void 0;try{A=S??e.fn()}catch(w){A=Promise.reject(w)}Promise.resolve(A).then(m).catch(w=>{if(r)return;const R=e.retry??(Zo?0:3),k=e.retryDelay??iV,L=typeof k=="function"?k(n,w):k,I=R===!0||typeof R=="number"&&n<R||typeof R=="function"&&R(n,w);if(t||!I){E(w);return}n++,e.onFail?.(n,w),tV(L).then(()=>h()?void 0:b()).then(()=>{t?E(w):T()})})};return{promise:i,cancel:l,continue:()=>(a?.(),i),cancelRetry:u,continueRetry:d,canStart:v,start:()=>(v()?T():b().then(T),i)}}var oV=e=>setTimeout(e,0);function lV(){let e=[],t=0,n=u=>{u()},r=u=>{u()},a=oV;const i=u=>{t?e.push(u):a(()=>{n(u)})},l=()=>{const u=e;e=[],u.length&&a(()=>{r(()=>{u.forEach(d=>{n(d)})})})};return{batch:u=>{let d;t++;try{d=u()}finally{t--,t||l()}return d},batchCalls:u=>(...d)=>{i(()=>{u(...d)})},schedule:i,setNotifyFunction:u=>{n=u},setBatchNotifyFunction:u=>{r=u},setScheduler:u=>{a=u}}}var In=lV(),r9=class{#t;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Tv(this.gcTime)&&(this.#t=setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(Zo?1/0:300*1e3))}clearGcTimeout(){this.#t&&(clearTimeout(this.#t),this.#t=void 0)}},uV=class extends r9{#t;#e;#n;#r;#a;#s;#o;constructor(e){super(),this.#o=!1,this.#s=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.#r=e.client,this.#n=this.#r.getQueryCache(),this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.#t=cV(this.options),this.state=e.state??this.#t,this.scheduleGc()}get meta(){return this.options.meta}get promise(){return this.#a?.promise}setOptions(e){this.options={...this.#s,...e},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&this.#n.remove(this)}setData(e,t){const n=Sv(this.state.data,e,this.options);return this.#i({data:n,type:"success",dataUpdatedAt:t?.updatedAt,manual:t?.manual}),n}setState(e,t){this.#i({type:"setState",state:e,setStateOptions:t})}cancel(e){const t=this.#a?.promise;return this.#a?.cancel(e),t?t.then(Ar).catch(Ar):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.#t)}isActive(){return this.observers.some(e=>Aa(e.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===ca||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(e=>ro(e.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(e=>e.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(e=0){return this.state.data===void 0?!0:e==="static"?!1:this.state.isInvalidated?!0:!Xw(this.state.dataUpdatedAt,e)}onFocus(){this.observers.find(t=>t.shouldFetchOnWindowFocus())?.refetch({cancelRefetch:!1}),this.#a?.continue()}onOnline(){this.observers.find(t=>t.shouldFetchOnReconnect())?.refetch({cancelRefetch:!1}),this.#a?.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.#n.notify({type:"observerAdded",query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter(t=>t!==e),this.observers.length||(this.#a&&(this.#o?this.#a.cancel({revert:!0}):this.#a.cancelRetry()),this.scheduleGc()),this.#n.notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.#i({type:"invalidate"})}fetch(e,t){if(this.state.fetchStatus!=="idle"){if(this.state.data!==void 0&&t?.cancelRefetch)this.cancel({silent:!0});else if(this.#a)return this.#a.continueRetry(),this.#a.promise}if(e&&this.setOptions(e),!this.options.queryFn){const d=this.observers.find(h=>h.options.queryFn);d&&this.setOptions(d.options)}const n=new AbortController,r=d=>{Object.defineProperty(d,"signal",{enumerable:!0,get:()=>(this.#o=!0,n.signal)})},a=()=>{const d=Ww(this.options,t),v=(()=>{const m={client:this.#r,queryKey:this.queryKey,meta:this.meta};return r(m),m})();return this.#o=!1,this.options.persister?this.options.persister(d,v,this):d(v)},l=(()=>{const d={fetchOptions:t,options:this.options,queryKey:this.queryKey,client:this.#r,state:this.state,fetchFn:a};return r(d),d})();this.options.behavior?.onFetch(l,this),this.#e=this.state,(this.state.fetchStatus==="idle"||this.state.fetchMeta!==l.fetchOptions?.meta)&&this.#i({type:"fetch",meta:l.fetchOptions?.meta});const u=d=>{S2(d)&&d.silent||this.#i({type:"error",error:d}),S2(d)||(this.#n.config.onError?.(d,this),this.#n.config.onSettled?.(this.state.data,d,this)),this.scheduleGc()};return this.#a=n9({initialPromise:t?.initialPromise,fn:l.fetchFn,abort:n.abort.bind(n),onSuccess:d=>{if(d===void 0){u(new Error(`${this.queryHash} data is undefined`));return}try{this.setData(d)}catch(h){u(h);return}this.#n.config.onSuccess?.(d,this),this.#n.config.onSettled?.(d,this.state.error,this),this.scheduleGc()},onError:u,onFail:(d,h)=>{this.#i({type:"failed",failureCount:d,error:h})},onPause:()=>{this.#i({type:"pause"})},onContinue:()=>{this.#i({type:"continue"})},retry:l.options.retry,retryDelay:l.options.retryDelay,networkMode:l.options.networkMode,canRun:()=>!0}),this.#a.start()}#i(e){const t=n=>{switch(e.type){case"failed":return{...n,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case"pause":return{...n,fetchStatus:"paused"};case"continue":return{...n,fetchStatus:"fetching"};case"fetch":return{...n,...a9(n.data,this.options),fetchMeta:e.meta??null};case"success":return this.#e=void 0,{...n,data:e.data,dataUpdateCount:n.dataUpdateCount+1,dataUpdatedAt:e.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const r=e.error;return S2(r)&&r.revert&&this.#e?{...this.#e,fetchStatus:"idle"}:{...n,error:r,errorUpdateCount:n.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:n.fetchFailureCount+1,fetchFailureReason:r,fetchStatus:"idle",status:"error"};case"invalidate":return{...n,isInvalidated:!0};case"setState":return{...n,...e.state}}};this.state=t(this.state),In.batch(()=>{this.observers.forEach(n=>{n.onQueryUpdate()}),this.#n.notify({query:this,type:"updated",action:e})})}};function a9(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:e9(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function cV(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,n=t!==void 0,r=n?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}var dV=class extends rl{constructor(e={}){super(),this.config=e,this.#t=new Map}#t;build(e,t,n){const r=t.queryKey,a=t.queryHash??P4(r,t);let i=this.get(a);return i||(i=new uV({client:e,queryKey:r,queryHash:a,options:e.defaultQueryOptions(t),state:n,defaultOptions:e.getQueryDefaults(r)}),this.add(i)),i}add(e){this.#t.has(e.queryHash)||(this.#t.set(e.queryHash,e),this.notify({type:"added",query:e}))}remove(e){const t=this.#t.get(e.queryHash);t&&(e.destroy(),t===e&&this.#t.delete(e.queryHash),this.notify({type:"removed",query:e}))}clear(){In.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return this.#t.get(e)}getAll(){return[...this.#t.values()]}find(e){const t={exact:!0,...e};return this.getAll().find(n=>qx(t,n))}findAll(e={}){const t=this.getAll();return Object.keys(e).length>0?t.filter(n=>qx(e,n)):t}notify(e){In.batch(()=>{this.listeners.forEach(t=>{t(e)})})}onFocus(){In.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){In.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},fV=class extends r9{#t;#e;#n;constructor(e){super(),this.mutationId=e.mutationId,this.#e=e.mutationCache,this.#t=[],this.state=e.state||s9(),this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options=e,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(e){this.#t.includes(e)||(this.#t.push(e),this.clearGcTimeout(),this.#e.notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){this.#t=this.#t.filter(t=>t!==e),this.scheduleGc(),this.#e.notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){this.#t.length||(this.state.status==="pending"?this.scheduleGc():this.#e.remove(this))}continue(){return this.#n?.continue()??this.execute(this.state.variables)}async execute(e){const t=()=>{this.#r({type:"continue"})};this.#n=n9({fn:()=>this.options.mutationFn?this.options.mutationFn(e):Promise.reject(new Error("No mutationFn found")),onFail:(a,i)=>{this.#r({type:"failed",failureCount:a,error:i})},onPause:()=>{this.#r({type:"pause"})},onContinue:t,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#e.canRun(this)});const n=this.state.status==="pending",r=!this.#n.canStart();try{if(n)t();else{this.#r({type:"pending",variables:e,isPaused:r}),await this.#e.config.onMutate?.(e,this);const i=await this.options.onMutate?.(e);i!==this.state.context&&this.#r({type:"pending",context:i,variables:e,isPaused:r})}const a=await this.#n.start();return await this.#e.config.onSuccess?.(a,e,this.state.context,this),await this.options.onSuccess?.(a,e,this.state.context),await this.#e.config.onSettled?.(a,null,this.state.variables,this.state.context,this),await this.options.onSettled?.(a,null,e,this.state.context),this.#r({type:"success",data:a}),a}catch(a){try{throw await this.#e.config.onError?.(a,e,this.state.context,this),await this.options.onError?.(a,e,this.state.context),await this.#e.config.onSettled?.(void 0,a,this.state.variables,this.state.context,this),await this.options.onSettled?.(void 0,a,e,this.state.context),a}finally{this.#r({type:"error",error:a})}}finally{this.#e.runNext(this)}}#r(e){const t=n=>{switch(e.type){case"failed":return{...n,failureCount:e.failureCount,failureReason:e.error};case"pause":return{...n,isPaused:!0};case"continue":return{...n,isPaused:!1};case"pending":return{...n,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:e.isPaused,status:"pending",variables:e.variables,submittedAt:Date.now()};case"success":return{...n,data:e.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...n,data:void 0,error:e.error,failureCount:n.failureCount+1,failureReason:e.error,isPaused:!1,status:"error"}}};this.state=t(this.state),In.batch(()=>{this.#t.forEach(n=>{n.onMutationUpdate(e)}),this.#e.notify({mutation:this,type:"updated",action:e})})}};function s9(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var hV=class extends rl{constructor(e={}){super(),this.config=e,this.#t=new Set,this.#e=new Map,this.#n=0}#t;#e;#n;build(e,t,n){const r=new fV({mutationCache:this,mutationId:++this.#n,options:e.defaultMutationOptions(t),state:n});return this.add(r),r}add(e){this.#t.add(e);const t=kf(e);if(typeof t=="string"){const n=this.#e.get(t);n?n.push(e):this.#e.set(t,[e])}this.notify({type:"added",mutation:e})}remove(e){if(this.#t.delete(e)){const t=kf(e);if(typeof t=="string"){const n=this.#e.get(t);if(n)if(n.length>1){const r=n.indexOf(e);r!==-1&&n.splice(r,1)}else n[0]===e&&this.#e.delete(t)}}this.notify({type:"removed",mutation:e})}canRun(e){const t=kf(e);if(typeof t=="string"){const r=this.#e.get(t)?.find(a=>a.state.status==="pending");return!r||r===e}else return!0}runNext(e){const t=kf(e);return typeof t=="string"?this.#e.get(t)?.find(r=>r!==e&&r.state.isPaused)?.continue()??Promise.resolve():Promise.resolve()}clear(){In.batch(()=>{this.#t.forEach(e=>{this.notify({type:"removed",mutation:e})}),this.#t.clear(),this.#e.clear()})}getAll(){return Array.from(this.#t)}find(e){const t={exact:!0,...e};return this.getAll().find(n=>$x(t,n))}findAll(e={}){return this.getAll().filter(t=>$x(e,t))}notify(e){In.batch(()=>{this.listeners.forEach(t=>{t(e)})})}resumePausedMutations(){const e=this.getAll().filter(t=>t.state.isPaused);return In.batch(()=>Promise.all(e.map(t=>t.continue().catch(Ar))))}};function kf(e){return e.options.scope?.id}function dh(e){return{onFetch:(t,n)=>{const r=t.options,a=t.fetchOptions?.meta?.fetchMore?.direction,i=t.state.data?.pages||[],l=t.state.data?.pageParams||[];let u={pages:[],pageParams:[]},d=0;const h=async()=>{let v=!1;const m=T=>{Object.defineProperty(T,"signal",{enumerable:!0,get:()=>(t.signal.aborted?v=!0:t.signal.addEventListener("abort",()=>{v=!0}),t.signal)})},E=Ww(t.options,t.fetchOptions),b=async(T,A,S)=>{if(v)return Promise.reject();if(A==null&&T.pages.length)return Promise.resolve(T);const R=(()=>{const N={client:t.client,queryKey:t.queryKey,pageParam:A,direction:S?"backward":"forward",meta:t.options.meta};return m(N),N})(),k=await E(R),{maxPages:L}=t.options,I=S?rV:nV;return{pages:I(T.pages,k,L),pageParams:I(T.pageParams,A,L)}};if(a&&i.length){const T=a==="backward",A=T?i9:Cv,S={pages:i,pageParams:l},w=A(r,S);u=await b(S,w,T)}else{const T=e??i.length;do{const A=d===0?l[0]??r.initialPageParam:Cv(r,u);if(d>0&&A==null)break;u=await b(u,A),d++}while(d<T)}return u};t.options.persister?t.fetchFn=()=>t.options.persister?.(h,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n):t.fetchFn=h}}}function Cv(e,{pages:t,pageParams:n}){const r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,n[r],n):void 0}function i9(e,{pages:t,pageParams:n}){return t.length>0?e.getPreviousPageParam?.(t[0],t,n[0],n):void 0}function mV(e,t){return t?Cv(e,t)!=null:!1}function pV(e,t){return!t||!e.getPreviousPageParam?!1:i9(e,t)!=null}var o9=class{#t;#e;#n;#r;#a;#s;#o;#i;constructor(e={}){this.#t=e.queryCache||new dV,this.#e=e.mutationCache||new hV,this.#n=e.defaultOptions||{},this.#r=new Map,this.#a=new Map,this.#s=0}mount(){this.#s++,this.#s===1&&(this.#o=D4.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#t.onFocus())}),this.#i=ch.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#t.onOnline())}))}unmount(){this.#s--,this.#s===0&&(this.#o?.(),this.#o=void 0,this.#i?.(),this.#i=void 0)}isFetching(e){return this.#t.findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return this.#e.findAll({...e,status:"pending"}).length}getQueryData(e){const t=this.defaultQueryOptions({queryKey:e});return this.#t.get(t.queryHash)?.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),n=this.#t.build(this,t),r=n.state.data;return r===void 0?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(ro(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(r))}getQueriesData(e){return this.#t.findAll(e).map(({queryKey:t,state:n})=>{const r=n.data;return[t,r]})}setQueryData(e,t,n){const r=this.defaultQueryOptions({queryKey:e}),i=this.#t.get(r.queryHash)?.state.data,l=eV(t,i);if(l!==void 0)return this.#t.build(this,r).setData(l,{...n,manual:!0})}setQueriesData(e,t,n){return In.batch(()=>this.#t.findAll(e).map(({queryKey:r})=>[r,this.setQueryData(r,t,n)]))}getQueryState(e){const t=this.defaultQueryOptions({queryKey:e});return this.#t.get(t.queryHash)?.state}removeQueries(e){const t=this.#t;In.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=this.#t;return In.batch(()=>(n.findAll(e).forEach(r=>{r.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const n={revert:!0,...t},r=In.batch(()=>this.#t.findAll(e).map(a=>a.cancel(n)));return Promise.all(r).then(Ar).catch(Ar)}invalidateQueries(e,t={}){return In.batch(()=>(this.#t.findAll(e).forEach(n=>{n.invalidate()}),e?.refetchType==="none"?Promise.resolve():this.refetchQueries({...e,type:e?.refetchType??e?.type??"active"},t)))}refetchQueries(e,t={}){const n={...t,cancelRefetch:t.cancelRefetch??!0},r=In.batch(()=>this.#t.findAll(e).filter(a=>!a.isDisabled()&&!a.isStatic()).map(a=>{let i=a.fetch(void 0,n);return n.throwOnError||(i=i.catch(Ar)),a.state.fetchStatus==="paused"?Promise.resolve():i}));return Promise.all(r).then(Ar)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const n=this.#t.build(this,t);return n.isStaleByTime(ro(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(Ar).catch(Ar)}fetchInfiniteQuery(e){return e.behavior=dh(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(Ar).catch(Ar)}ensureInfiniteQueryData(e){return e.behavior=dh(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return ch.isOnline()?this.#e.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#t}getMutationCache(){return this.#e}getDefaultOptions(){return this.#n}setDefaultOptions(e){this.#n=e}setQueryDefaults(e,t){this.#r.set(lo(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...this.#r.values()],n={};return t.forEach(r=>{wd(e,r.queryKey)&&Object.assign(n,r.defaultOptions)}),n}setMutationDefaults(e,t){this.#a.set(lo(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...this.#a.values()],n={};return t.forEach(r=>{wd(e,r.mutationKey)&&Object.assign(n,r.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...this.#n.queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=P4(t.queryKey,t)),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!=="always"),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.queryFn===ca&&(t.enabled=!1),t}defaultMutationOptions(e){return e?._defaulted?e:{...this.#n.mutations,...e?.mutationKey&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){this.#t.clear(),this.#e.clear()}},Qd=class extends rl{constructor(e,t){super(),this.options=t,this.#t=e,this.#i=null,this.#o=wv(),this.options.experimental_prefetchInRender||this.#o.reject(new Error("experimental_prefetchInRender feature flag is not enabled")),this.bindMethods(),this.setOptions(t)}#t;#e=void 0;#n=void 0;#r=void 0;#a;#s;#o;#i;#h;#d;#f;#u;#c;#l;#p=new Set;bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(this.#e.addObserver(this),Yx(this.#e,this.options)?this.#m():this.updateResult(),this.#b())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Rv(this.#e,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Rv(this.#e,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#E(),this.#x(),this.#e.removeObserver(this)}setOptions(e){const t=this.options,n=this.#e;if(this.options=this.#t.defaultQueryOptions(e),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof Aa(this.options.enabled,this.#e)!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");this.#_(),this.#e.setOptions(this.options),t._defaulted&&!uh(this.options,t)&&this.#t.getQueryCache().notify({type:"observerOptionsUpdated",query:this.#e,observer:this});const r=this.hasListeners();r&&Gx(this.#e,n,this.options,t)&&this.#m(),this.updateResult(),r&&(this.#e!==n||Aa(this.options.enabled,this.#e)!==Aa(t.enabled,this.#e)||ro(this.options.staleTime,this.#e)!==ro(t.staleTime,this.#e))&&this.#g();const a=this.#v();r&&(this.#e!==n||Aa(this.options.enabled,this.#e)!==Aa(t.enabled,this.#e)||a!==this.#l)&&this.#y(a)}getOptimisticResult(e){const t=this.#t.getQueryCache().build(this.#t,e),n=this.createResult(t,e);return vV(this,n)&&(this.#r=n,this.#s=this.options,this.#a=this.#e.state),n}getCurrentResult(){return this.#r}trackResult(e,t){return new Proxy(e,{get:(n,r)=>(this.trackProp(r),t?.(r),Reflect.get(n,r))})}trackProp(e){this.#p.add(e)}getCurrentQuery(){return this.#e}refetch({...e}={}){return this.fetch({...e})}fetchOptimistic(e){const t=this.#t.defaultQueryOptions(e),n=this.#t.getQueryCache().build(this.#t,t);return n.fetch().then(()=>this.createResult(n,t))}fetch(e){return this.#m({...e,cancelRefetch:e.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#r))}#m(e){this.#_();let t=this.#e.fetch(this.options,e);return e?.throwOnError||(t=t.catch(Ar)),t}#g(){this.#E();const e=ro(this.options.staleTime,this.#e);if(Zo||this.#r.isStale||!Tv(e))return;const n=Xw(this.#r.dataUpdatedAt,e)+1;this.#u=setTimeout(()=>{this.#r.isStale||this.updateResult()},n)}#v(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(this.#e):this.options.refetchInterval)??!1}#y(e){this.#x(),this.#l=e,!(Zo||Aa(this.options.enabled,this.#e)===!1||!Tv(this.#l)||this.#l===0)&&(this.#c=setInterval(()=>{(this.options.refetchIntervalInBackground||D4.isFocused())&&this.#m()},this.#l))}#b(){this.#g(),this.#y(this.#v())}#E(){this.#u&&(clearTimeout(this.#u),this.#u=void 0)}#x(){this.#c&&(clearInterval(this.#c),this.#c=void 0)}createResult(e,t){const n=this.#e,r=this.options,a=this.#r,i=this.#a,l=this.#s,d=e!==n?e.state:this.#n,{state:h}=e;let v={...h},m=!1,E;if(t._optimisticResults){const D=this.hasListeners(),B=!D&&Yx(e,t),P=D&&Gx(e,n,t,r);(B||P)&&(v={...v,...a9(h.data,e.options)}),t._optimisticResults==="isRestoring"&&(v.fetchStatus="idle")}let{error:b,errorUpdatedAt:T,status:A}=v;E=v.data;let S=!1;if(t.placeholderData!==void 0&&E===void 0&&A==="pending"){let D;a?.isPlaceholderData&&t.placeholderData===l?.placeholderData?(D=a.data,S=!0):D=typeof t.placeholderData=="function"?t.placeholderData(this.#f?.state.data,this.#f):t.placeholderData,D!==void 0&&(A="success",E=Sv(a?.data,D,t),m=!0)}if(t.select&&E!==void 0&&!S)if(a&&E===i?.data&&t.select===this.#h)E=this.#d;else try{this.#h=t.select,E=t.select(E),E=Sv(a?.data,E,t),this.#d=E,this.#i=null}catch(D){this.#i=D}this.#i&&(b=this.#i,E=this.#d,T=Date.now(),A="error");const w=v.fetchStatus==="fetching",R=A==="pending",k=A==="error",L=R&&w,I=E!==void 0,M={status:A,fetchStatus:v.fetchStatus,isPending:R,isSuccess:A==="success",isError:k,isInitialLoading:L,isLoading:L,data:E,dataUpdatedAt:v.dataUpdatedAt,error:b,errorUpdatedAt:T,failureCount:v.fetchFailureCount,failureReason:v.fetchFailureReason,errorUpdateCount:v.errorUpdateCount,isFetched:v.dataUpdateCount>0||v.errorUpdateCount>0,isFetchedAfterMount:v.dataUpdateCount>d.dataUpdateCount||v.errorUpdateCount>d.errorUpdateCount,isFetching:w,isRefetching:w&&!R,isLoadingError:k&&!I,isPaused:v.fetchStatus==="paused",isPlaceholderData:m,isRefetchError:k&&I,isStale:M4(e,t),refetch:this.refetch,promise:this.#o,isEnabled:Aa(t.enabled,e)!==!1};if(this.options.experimental_prefetchInRender){const D=U=>{M.status==="error"?U.reject(M.error):M.data!==void 0&&U.resolve(M.data)},B=()=>{const U=this.#o=M.promise=wv();D(U)},P=this.#o;switch(P.status){case"pending":e.queryHash===n.queryHash&&D(P);break;case"fulfilled":(M.status==="error"||M.data!==P.value)&&B();break;case"rejected":(M.status!=="error"||M.error!==P.reason)&&B();break}}return M}updateResult(){const e=this.#r,t=this.createResult(this.#e,this.options);if(this.#a=this.#e.state,this.#s=this.options,this.#a.data!==void 0&&(this.#f=this.#e),uh(t,e))return;this.#r=t;const n=()=>{if(!e)return!0;const{notifyOnChangeProps:r}=this.options,a=typeof r=="function"?r():r;if(a==="all"||!a&&!this.#p.size)return!0;const i=new Set(a??this.#p);return this.options.throwOnError&&i.add("error"),Object.keys(this.#r).some(l=>{const u=l;return this.#r[u]!==e[u]&&i.has(u)})};this.#T({listeners:n()})}#_(){const e=this.#t.getQueryCache().build(this.#t,this.options);if(e===this.#e)return;const t=this.#e;this.#e=e,this.#n=e.state,this.hasListeners()&&(t?.removeObserver(this),e.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#b()}#T(e){In.batch(()=>{e.listeners&&this.listeners.forEach(t=>{t(this.#r)}),this.#t.getQueryCache().notify({query:this.#e,type:"observerResultsUpdated"})})}};function gV(e,t){return Aa(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&t.retryOnMount===!1)}function Yx(e,t){return gV(e,t)||e.state.data!==void 0&&Rv(e,t,t.refetchOnMount)}function Rv(e,t,n){if(Aa(t.enabled,e)!==!1&&ro(t.staleTime,e)!=="static"){const r=typeof n=="function"?n(e):n;return r==="always"||r!==!1&&M4(e,t)}return!1}function Gx(e,t,n,r){return(e!==t||Aa(r.enabled,e)===!1)&&(!n.suspense||e.state.status!=="error")&&M4(e,n)}function M4(e,t){return Aa(t.enabled,e)!==!1&&e.isStaleByTime(ro(t.staleTime,e))}function vV(e,t){return!uh(e.getCurrentResult(),t)}function Kx(e,t){const n=new Set(t);return e.filter(r=>!n.has(r))}function yV(e,t,n){const r=e.slice(0);return r[t]=n,r}var bV=class extends rl{#t;#e;#n;#r;#a;#s;#o;#i;#h=[];constructor(e,t,n){super(),this.#t=e,this.#r=n,this.#n=[],this.#a=[],this.#e=[],this.setQueries(t)}onSubscribe(){this.listeners.size===1&&this.#a.forEach(e=>{e.subscribe(t=>{this.#c(e,t)})})}onUnsubscribe(){this.listeners.size||this.destroy()}destroy(){this.listeners=new Set,this.#a.forEach(e=>{e.destroy()})}setQueries(e,t){this.#n=e,this.#r=t,In.batch(()=>{const n=this.#a,r=this.#u(this.#n);this.#h=r,r.forEach(u=>u.observer.setOptions(u.defaultedQueryOptions));const a=r.map(u=>u.observer),i=a.map(u=>u.getCurrentResult()),l=a.some((u,d)=>u!==n[d]);n.length===a.length&&!l||(this.#a=a,this.#e=i,this.hasListeners()&&(Kx(n,a).forEach(u=>{u.destroy()}),Kx(a,n).forEach(u=>{u.subscribe(d=>{this.#c(u,d)})}),this.#l()))})}getCurrentResult(){return this.#e}getQueries(){return this.#a.map(e=>e.getCurrentQuery())}getObservers(){return this.#a}getOptimisticResult(e,t){const n=this.#u(e),r=n.map(a=>a.observer.getOptimisticResult(a.defaultedQueryOptions));return[r,a=>this.#f(a??r,t),()=>this.#d(r,n)]}#d(e,t){return t.map((n,r)=>{const a=e[r];return n.defaultedQueryOptions.notifyOnChangeProps?a:n.observer.trackResult(a,i=>{t.forEach(l=>{l.observer.trackProp(i)})})})}#f(e,t){return t?((!this.#s||this.#e!==this.#i||t!==this.#o)&&(this.#o=t,this.#i=this.#e,this.#s=k4(this.#s,t(e))),this.#s):e}#u(e){const t=new Map(this.#a.map(r=>[r.options.queryHash,r])),n=[];return e.forEach(r=>{const a=this.#t.defaultQueryOptions(r),i=t.get(a.queryHash);i?n.push({defaultedQueryOptions:a,observer:i}):n.push({defaultedQueryOptions:a,observer:new Qd(this.#t,a)})}),n}#c(e,t){const n=this.#a.indexOf(e);n!==-1&&(this.#e=yV(this.#e,n,t),this.#l())}#l(){if(this.hasListeners()){const e=this.#s,t=this.#d(this.#e,this.#h),n=this.#f(t,this.#r?.combine);e!==n&&In.batch(()=>{this.listeners.forEach(r=>{r(this.#e)})})}}},l9=class extends Qd{constructor(e,t){super(e,t)}bindMethods(){super.bindMethods(),this.fetchNextPage=this.fetchNextPage.bind(this),this.fetchPreviousPage=this.fetchPreviousPage.bind(this)}setOptions(e){super.setOptions({...e,behavior:dh()})}getOptimisticResult(e){return e.behavior=dh(),super.getOptimisticResult(e)}fetchNextPage(e){return this.fetch({...e,meta:{fetchMore:{direction:"forward"}}})}fetchPreviousPage(e){return this.fetch({...e,meta:{fetchMore:{direction:"backward"}}})}createResult(e,t){const{state:n}=e,r=super.createResult(e,t),{isFetching:a,isRefetching:i,isError:l,isRefetchError:u}=r,d=n.fetchMeta?.fetchMore?.direction,h=l&&d==="forward",v=a&&d==="forward",m=l&&d==="backward",E=a&&d==="backward";return{...r,fetchNextPage:this.fetchNextPage,fetchPreviousPage:this.fetchPreviousPage,hasNextPage:mV(t,n.data),hasPreviousPage:pV(t,n.data),isFetchNextPageError:h,isFetchingNextPage:v,isFetchPreviousPageError:m,isFetchingPreviousPage:E,isRefetchError:u&&!h&&!m,isRefetching:i&&!v&&!E}}},EV=class extends rl{#t;#e=void 0;#n;#r;constructor(t,n){super(),this.#t=t,this.setOptions(n),this.bindMethods(),this.#a()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(t){const n=this.options;this.options=this.#t.defaultMutationOptions(t),uh(this.options,n)||this.#t.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.#n,observer:this}),n?.mutationKey&&this.options.mutationKey&&lo(n.mutationKey)!==lo(this.options.mutationKey)?this.reset():this.#n?.state.status==="pending"&&this.#n.setOptions(this.options)}onUnsubscribe(){this.hasListeners()||this.#n?.removeObserver(this)}onMutationUpdate(t){this.#a(),this.#s(t)}getCurrentResult(){return this.#e}reset(){this.#n?.removeObserver(this),this.#n=void 0,this.#a(),this.#s()}mutate(t,n){return this.#r=n,this.#n?.removeObserver(this),this.#n=this.#t.getMutationCache().build(this.#t,this.options),this.#n.addObserver(this),this.#n.execute(t)}#a(){const t=this.#n?.state??s9();this.#e={...t,isPending:t.status==="pending",isSuccess:t.status==="success",isError:t.status==="error",isIdle:t.status==="idle",mutate:this.mutate,reset:this.reset}}#s(t){In.batch(()=>{if(this.#r&&this.hasListeners()){const n=this.#e.variables,r=this.#e.context;t?.type==="success"?(this.#r.onSuccess?.(t.data,n,r),this.#r.onSettled?.(t.data,null,n,r)):t?.type==="error"&&(this.#r.onError?.(t.error,n,r),this.#r.onSettled?.(void 0,t.error,n,r))}this.listeners.forEach(n=>{n(this.#e)})})}},u9=p.createContext(void 0),Yd=e=>{const t=p.useContext(u9);if(e)return e;if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},Xx=({client:e,children:t})=>(p.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),g.jsx(u9.Provider,{value:e,children:t})),c9=p.createContext(!1),d9=()=>p.useContext(c9);c9.Provider;function xV(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var _V=p.createContext(xV()),f9=()=>p.useContext(_V),h9=(e,t)=>{(e.suspense||e.throwOnError||e.experimental_prefetchInRender)&&(t.isReset()||(e.retryOnMount=!1))},m9=e=>{p.useEffect(()=>{e.clearReset()},[e])},p9=({result:e,errorResetBoundary:t,throwOnError:n,query:r,suspense:a})=>e.isError&&!t.isReset()&&!e.isFetching&&r&&(a&&e.data===void 0||Jw(n,[e.error,r])),L4=(e,t)=>t.state.data===void 0,g9=e=>{if(e.suspense){const t=r=>r==="static"?r:Math.max(r??1e3,1e3),n=e.staleTime;e.staleTime=typeof n=="function"?(...r)=>t(n(...r)):t(n),typeof e.gcTime=="number"&&(e.gcTime=Math.max(e.gcTime,1e3))}},v9=(e,t)=>e.isLoading&&e.isFetching&&!t,Ov=(e,t)=>e?.suspense&&t.isPending,fh=(e,t,n)=>t.fetchOptimistic(e).catch(()=>{n.clearReset()});function y9({queries:e,...t},n){const r=Yd(n),a=d9(),i=f9(),l=p.useMemo(()=>e.map(A=>{const S=r.defaultQueryOptions(A);return S._optimisticResults=a?"isRestoring":"optimistic",S}),[e,r,a]);l.forEach(A=>{g9(A),h9(A,i)}),m9(i);const[u]=p.useState(()=>new bV(r,l,t)),[d,h,v]=u.getOptimisticResult(l,t.combine),m=!a&&t.subscribed!==!1;p.useSyncExternalStore(p.useCallback(A=>m?u.subscribe(In.batchCalls(A)):Ar,[u,m]),()=>u.getCurrentResult(),()=>u.getCurrentResult()),p.useEffect(()=>{u.setQueries(l,t)},[l,t,u]);const b=d.some((A,S)=>Ov(l[S],A))?d.flatMap((A,S)=>{const w=l[S];if(w){const R=new Qd(r,w);if(Ov(w,A))return fh(w,R,i);v9(A,a)&&fh(w,R,i)}return[]}):[];if(b.length>0)throw Promise.all(b);const T=d.find((A,S)=>{const w=l[S];return w&&p9({result:A,errorResetBoundary:i,throwOnError:w.throwOnError,query:r.getQueryCache().get(w.queryHash),suspense:w.suspense})});if(T?.error)throw T.error;return h(v())}function f1(e,t,n){const r=d9(),a=f9(),i=Yd(n),l=i.defaultQueryOptions(e);i.getDefaultOptions().queries?._experimental_beforeQuery?.(l),l._optimisticResults=r?"isRestoring":"optimistic",g9(l),h9(l,a),m9(a);const u=!i.getQueryCache().get(l.queryHash),[d]=p.useState(()=>new t(i,l)),h=d.getOptimisticResult(l),v=!r&&e.subscribed!==!1;if(p.useSyncExternalStore(p.useCallback(m=>{const E=v?d.subscribe(In.batchCalls(m)):Ar;return d.updateResult(),E},[d,v]),()=>d.getCurrentResult(),()=>d.getCurrentResult()),p.useEffect(()=>{d.setOptions(l)},[l,d]),Ov(l,h))throw fh(l,d,a);if(p9({result:h,errorResetBoundary:a,throwOnError:l.throwOnError,query:i.getQueryCache().get(l.queryHash),suspense:l.suspense}))throw h.error;return i.getDefaultOptions().queries?._experimental_afterQuery?.(l,h),l.experimental_prefetchInRender&&!Zo&&v9(h,r)&&(u?fh(l,d,a):i.getQueryCache().get(l.queryHash)?.promise)?.catch(Ar).finally(()=>{d.updateResult()}),l.notifyOnChangeProps?h:d.trackResult(h)}function TV(e,t){return f1(e,Qd,t)}function AV(e,t){return f1({...e,enabled:!0,suspense:!0,throwOnError:L4,placeholderData:void 0},Qd,t)}function SV(e,t){return f1({...e,enabled:!0,suspense:!0,throwOnError:L4},l9,t)}function wV(e,t){return y9({...e,queries:e.queries.map(n=>({...n,suspense:!0,throwOnError:L4,enabled:!0,placeholderData:void 0}))},t)}function CV(e,t){const n=Yd(t);n.getQueryState(e.queryKey)||n.prefetchQuery(e)}function RV(e,t){const n=Yd(t);n.getQueryState(e.queryKey)||n.prefetchInfiniteQuery(e)}function OV(e,t){const n=Yd(t),[r]=p.useState(()=>new EV(n,e));p.useEffect(()=>{r.setOptions(e)},[r,e]);const a=p.useSyncExternalStore(p.useCallback(l=>r.subscribe(In.batchCalls(l)),[r]),()=>r.getCurrentResult(),()=>r.getCurrentResult()),i=p.useCallback((l,u)=>{r.mutate(l,u).catch(Ar)},[r]);if(a.error&&Jw(r.options.throwOnError,[a.error]))throw a.error;return{...a,mutate:i,mutateAsync:a.mutate}}function NV(e,t){return f1(e,l9,t)}var PV=Object.create,b9=Object.defineProperty,kV=Object.getOwnPropertyDescriptor,E9=Object.getOwnPropertyNames,DV=Object.getPrototypeOf,MV=Object.prototype.hasOwnProperty,ho=(e,t)=>function(){return t||(0,e[E9(e)[0]])((t={exports:{}}).exports,t),t.exports},LV=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(var a=E9(t),i=0,l=a.length,u;i<l;i++)u=a[i],!MV.call(e,u)&&u!==n&&b9(e,u,{get:(d=>t[d]).bind(null,u),enumerable:!(r=kV(t,u))||r.enumerable});return e},al=(e,t,n)=>(n=e!=null?PV(DV(e)):{},LV(t||!e||!e.__esModule?b9(n,"default",{value:e,enumerable:!0}):n,e)),IV=ho({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/objectWithoutPropertiesLoose.js"(e,t){function n(r,a){if(r==null)return{};var i={};for(var l in r)if({}.hasOwnProperty.call(r,l)){if(a.includes(l))continue;i[l]=r[l]}return i}t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports}}),jV=ho({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/objectWithoutProperties.js"(e,t){var n=IV();function r(a,i){if(a==null)return{};var l,u,d=n(a,i);if(Object.getOwnPropertySymbols){var h=Object.getOwnPropertySymbols(a);for(u=0;u<h.length;u++)l=h[u],i.includes(l)||{}.propertyIsEnumerable.call(a,l)&&(d[l]=a[l])}return d}t.exports=r,t.exports.__esModule=!0,t.exports.default=t.exports}}),x9=ho({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/typeof.js"(e,t){function n(r){"@babel/helpers - typeof";return t.exports=n=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(a){return typeof a}:function(a){return a&&typeof Symbol=="function"&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},t.exports.__esModule=!0,t.exports.default=t.exports,n(r)}t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports}}),HV=ho({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/toPrimitive.js"(e,t){var n=x9().default;function r(a,i){if(n(a)!="object"||!a)return a;var l=a[Symbol.toPrimitive];if(l!==void 0){var u=l.call(a,i||"default");if(n(u)!="object")return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return(i==="string"?String:Number)(a)}t.exports=r,t.exports.__esModule=!0,t.exports.default=t.exports}}),FV=ho({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/toPropertyKey.js"(e,t){var n=x9().default,r=HV();function a(i){var l=r(i,"string");return n(l)=="symbol"?l:l+""}t.exports=a,t.exports.__esModule=!0,t.exports.default=t.exports}}),UV=ho({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/defineProperty.js"(e,t){var n=FV();function r(a,i,l){return(i=n(i))in a?Object.defineProperty(a,i,{value:l,enumerable:!0,configurable:!0,writable:!0}):a[i]=l,a}t.exports=r,t.exports.__esModule=!0,t.exports.default=t.exports}}),Gd=ho({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/objectSpread2.js"(e,t){var n=UV();function r(i,l){var u=Object.keys(i);if(Object.getOwnPropertySymbols){var d=Object.getOwnPropertySymbols(i);l&&(d=d.filter(function(h){return Object.getOwnPropertyDescriptor(i,h).enumerable})),u.push.apply(u,d)}return u}function a(i){for(var l=1;l<arguments.length;l++){var u=arguments[l]!=null?arguments[l]:{};l%2?r(Object(u),!0).forEach(function(d){n(i,d,u[d])}):Object.getOwnPropertyDescriptors?Object.defineProperties(i,Object.getOwnPropertyDescriptors(u)):r(Object(u)).forEach(function(d){Object.defineProperty(i,d,Object.getOwnPropertyDescriptor(u,d))})}return i}t.exports=a,t.exports.__esModule=!0,t.exports.default=t.exports}}),BV=al(jV(),1),Wx=al(Gd(),1);const VV=["cursor","direction"];function gs(e,t,n){const r=e.flatMap(a=>a.split("."));if(!t&&(!n||n==="any"))return r.length?[r]:[];if(n==="infinite"&&$o(t)&&("direction"in t||"cursor"in t)){const{cursor:a,direction:i}=t,l=(0,BV.default)(t,VV);return[r,{input:l,type:"infinite"}]}return[r,(0,Wx.default)((0,Wx.default)({},typeof t<"u"&&t!==ca&&{input:t}),n&&n!=="any"&&{type:n})]}function Zf(e){return gs(e,void 0,"any")}function zV(e){return u1(({path:t,args:n})=>{var r;const a=[...t],i=a.pop();if(i==="useMutation")return e[i](a,...n);if(i==="_def")return{path:a};const[l,...u]=n,d=(r=u[0])!==null&&r!==void 0?r:{};return e[i](a,l,d)})}var w2;const qV=["client","ssrContext","ssrState","abortOnUnmount"],$V=(w2=p.createContext)===null||w2===void 0?void 0:w2.call(I8,null),ZV=e=>{switch(e){case"queryOptions":case"fetch":case"ensureData":case"prefetch":case"getData":case"setData":case"setQueriesData":return"query";case"infiniteQueryOptions":case"fetchInfinite":case"prefetchInfinite":case"getInfiniteData":case"setInfiniteData":return"infinite";case"setMutationDefaults":case"getMutationDefaults":case"isMutating":case"cancel":case"invalidate":case"refetch":case"reset":return"any"}};function QV(e){return u1(t=>{const n=[...t.path],r=n.pop(),a=[...t.args],i=a.shift(),l=ZV(r),u=gs(n,i,l);return{infiniteQueryOptions:()=>e.infiniteQueryOptions(n,u,a[0]),queryOptions:()=>e.queryOptions(n,u,...a),fetch:()=>e.fetchQuery(u,...a),fetchInfinite:()=>e.fetchInfiniteQuery(u,a[0]),prefetch:()=>e.prefetchQuery(u,...a),prefetchInfinite:()=>e.prefetchInfiniteQuery(u,a[0]),ensureData:()=>e.ensureQueryData(u,...a),invalidate:()=>e.invalidateQueries(u,...a),reset:()=>e.resetQueries(u,...a),refetch:()=>e.refetchQueries(u,...a),cancel:()=>e.cancelQuery(u,...a),setData:()=>{e.setQueryData(u,a[0],a[1])},setQueriesData:()=>e.setQueriesData(u,a[0],a[1],a[2]),setInfiniteData:()=>{e.setInfiniteQueryData(u,a[0],a[1])},getData:()=>e.getQueryData(u),getInfiniteData:()=>e.getInfiniteQueryData(u),setMutationDefaults:()=>e.setMutationDefaults(Zf(n),i),getMutationDefaults:()=>e.getMutationDefaults(Zf(n)),isMutating:()=>e.isMutating({mutationKey:Zf(n)})}[r]()})}function YV(e){const t=Lw(e.client),n=QV(e);return C4(r=>{const a=r;return a==="client"?t:qV.includes(a)?e[a]:n[r]})}var GV=al(Gd(),1);function Jx(e){const t=e instanceof c1?e:N4(e);return u1(n=>{const r=n.path,a=r.join("."),[i,l]=n.args;return(0,GV.default)({queryKey:gs(r,i,"query"),queryFn:()=>t.query(a,i,l?.trpc)},l)})}var C2=al(Gd(),1);function Pr(e,t,n){var r;const a=e[0];let i=(r=e[1])===null||r===void 0?void 0:r.input;if(n){var l;i=(0,C2.default)((0,C2.default)((0,C2.default)({},(l=i)!==null&&l!==void 0?l:{}),n.pageParam?{cursor:n.pageParam}:{}),{},{direction:n.direction})}return[a.join("."),i,t?.trpc]}var KV=ho({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/asyncIterator.js"(e,t){function n(a){var i,l,u,d=2;for(typeof Symbol<"u"&&(l=Symbol.asyncIterator,u=Symbol.iterator);d--;){if(l&&(i=a[l])!=null)return i.call(a);if(u&&(i=a[u])!=null)return new r(i.call(a));l="@@asyncIterator",u="@@iterator"}throw new TypeError("Object is not async iterable")}function r(a){function i(l){if(Object(l)!==l)return Promise.reject(new TypeError(l+" is not an object."));var u=l.done;return Promise.resolve(l.value).then(function(d){return{value:d,done:u}})}return r=function(u){this.s=u,this.n=u.next},r.prototype={s:null,n:null,next:function(){return i(this.n.apply(this.s,arguments))},return:function(u){var d=this.s.return;return d===void 0?Promise.resolve({value:u,done:!0}):i(d.apply(this.s,arguments))},throw:function(u){var d=this.s.return;return d===void 0?Promise.reject(u):i(d.apply(this.s,arguments))}},new r(a)}t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports}}),XV=al(KV(),1);function Nv(e){return{path:e.path.join(".")}}function qc(e){const t=Nv(e);return p.useMemo(()=>t,[t])}async function _9(e,t,n){const a=t.getQueryCache().build(t,{queryKey:n});a.setState({data:[],status:"success"});const i=[];var l=!1,u=!1,d;try{for(var h=(0,XV.default)(e),v;l=!(v=await h.next()).done;l=!1){const m=v.value;i.push(m),a.setState({data:[...i]})}}catch(m){u=!0,d=m}finally{try{l&&h.return!=null&&await h.return()}finally{if(u)throw d}}return i}var zt=al(Gd(),1);function WV(e){const{client:t,queryClient:n}=e,r=t instanceof c1?t:N4(t);return{infiniteQueryOptions:(a,i,l)=>{var u,d;const h=((u=i[1])===null||u===void 0?void 0:u.input)===ca,v=async m=>{var E;const b=(0,zt.default)((0,zt.default)({},l),{},{trpc:(0,zt.default)((0,zt.default)({},l?.trpc),!(l==null||(E=l.trpc)===null||E===void 0)&&E.abortOnUnmount?{signal:m.signal}:{signal:null})});return await r.query(...Pr(i,b,{direction:m.direction,pageParam:m.pageParam}))};return Object.assign((0,zt.default)((0,zt.default)({},l),{},{initialData:l?.initialData,queryKey:i,queryFn:h?ca:v,initialPageParam:(d=l?.initialCursor)!==null&&d!==void 0?d:null}),{trpc:Nv({path:a})})},queryOptions:(a,i,l)=>{var u;const d=((u=i[1])===null||u===void 0?void 0:u.input)===ca,h=async v=>{var m;const E=(0,zt.default)((0,zt.default)({},l),{},{trpc:(0,zt.default)((0,zt.default)({},l?.trpc),!(l==null||(m=l.trpc)===null||m===void 0)&&m.abortOnUnmount?{signal:v.signal}:{signal:null})}),b=await r.query(...Pr(i,E));return Tw(b)?_9(b,n,i):b};return Object.assign((0,zt.default)((0,zt.default)({},l),{},{initialData:l?.initialData,queryKey:i,queryFn:d?ca:h}),{trpc:Nv({path:a})})},fetchQuery:(a,i)=>n.fetchQuery((0,zt.default)((0,zt.default)({},i),{},{queryKey:a,queryFn:()=>r.query(...Pr(a,i))})),fetchInfiniteQuery:(a,i)=>{var l;return n.fetchInfiniteQuery((0,zt.default)((0,zt.default)({},i),{},{queryKey:a,queryFn:({pageParam:u,direction:d})=>r.query(...Pr(a,i,{pageParam:u,direction:d})),initialPageParam:(l=i?.initialCursor)!==null&&l!==void 0?l:null}))},prefetchQuery:(a,i)=>n.prefetchQuery((0,zt.default)((0,zt.default)({},i),{},{queryKey:a,queryFn:()=>r.query(...Pr(a,i))})),prefetchInfiniteQuery:(a,i)=>{var l;return n.prefetchInfiniteQuery((0,zt.default)((0,zt.default)({},i),{},{queryKey:a,queryFn:({pageParam:u,direction:d})=>r.query(...Pr(a,i,{pageParam:u,direction:d})),initialPageParam:(l=i?.initialCursor)!==null&&l!==void 0?l:null}))},ensureQueryData:(a,i)=>n.ensureQueryData((0,zt.default)((0,zt.default)({},i),{},{queryKey:a,queryFn:()=>r.query(...Pr(a,i))})),invalidateQueries:(a,i,l)=>n.invalidateQueries((0,zt.default)((0,zt.default)({},i),{},{queryKey:a}),l),resetQueries:(a,i,l)=>n.resetQueries((0,zt.default)((0,zt.default)({},i),{},{queryKey:a}),l),refetchQueries:(a,i,l)=>n.refetchQueries((0,zt.default)((0,zt.default)({},i),{},{queryKey:a}),l),cancelQuery:(a,i)=>n.cancelQueries({queryKey:a},i),setQueryData:(a,i,l)=>n.setQueryData(a,i,l),setQueriesData:(a,i,l,u)=>n.setQueriesData((0,zt.default)((0,zt.default)({},i),{},{queryKey:a}),l,u),getQueryData:a=>n.getQueryData(a),setInfiniteQueryData:(a,i,l)=>n.setQueryData(a,i,l),getInfiniteQueryData:a=>n.getQueryData(a),setMutationDefaults:(a,i)=>{const l=a[0],u=d=>r.mutation(...Pr([l,{input:d}],e));return n.setMutationDefaults(a,typeof i=="function"?i({canonicalMutationFn:u}):i)},getMutationDefaults:a=>n.getMutationDefaults(a),isMutating:a=>n.isMutating((0,zt.default)((0,zt.default)({},a),{},{exact:!0}))}}var Qe=al(Gd());const e_=(e,t)=>new Proxy(e,{get(r,a){return t(a),r[a]}});function JV(e){var t,n,r;const a=(t=e==null||(n=e.overrides)===null||n===void 0||(n=n.useMutation)===null||n===void 0?void 0:n.onSuccess)!==null&&t!==void 0?t:N=>N.originalFn(),i=(r=e?.context)!==null&&r!==void 0?r:$V,l=O4,u=N=>{var M;const{abortOnUnmount:D=!1,queryClient:B,ssrContext:P}=N,[U,F]=p.useState((M=N.ssrState)!==null&&M!==void 0?M:!1),Q=N.client instanceof c1?N.client:N4(N.client),Y=p.useMemo(()=>WV({client:Q,queryClient:B}),[Q,B]),te=p.useMemo(()=>(0,Qe.default)({abortOnUnmount:D,queryClient:B,client:Q,ssrContext:P??null,ssrState:U},Y),[D,Q,Y,B,P,U]);return p.useEffect(()=>{F(V=>V?"mounted":!1)},[]),g.jsx(i.Provider,{value:te,children:N.children})};function d(){const N=p.useContext(i);if(!N)throw new Error("Unable to find tRPC Context. Did you forget to wrap your App inside `withTRPC` HoC?");return N}function h(N,M){var D;const{queryClient:B,ssrState:P}=d();return P&&P!=="mounted"&&((D=B.getQueryCache().find({queryKey:N}))===null||D===void 0?void 0:D.state.status)==="error"?(0,Qe.default)({retryOnMount:!1},M):M}function v(N,M,D){var B,P,U,F,Q;const Y=d(),{abortOnUnmount:te,client:V,ssrState:J,queryClient:X,prefetchQuery:se}=Y,C=gs(N,M,"query"),oe=X.getQueryDefaults(C),ge=M===ca;typeof window>"u"&&J==="prepass"&&(D==null||(B=D.trpc)===null||B===void 0?void 0:B.ssr)!==!1&&((P=D?.enabled)!==null&&P!==void 0?P:oe?.enabled)!==!1&&!ge&&!X.getQueryCache().find({queryKey:C})&&se(C,D);const j=h(C,(0,Qe.default)((0,Qe.default)({},oe),D)),Ee=(U=(F=D==null||(Q=D.trpc)===null||Q===void 0?void 0:Q.abortOnUnmount)!==null&&F!==void 0?F:e?.abortOnUnmount)!==null&&U!==void 0?U:te,Pe=TV((0,Qe.default)((0,Qe.default)({},j),{},{queryKey:C,queryFn:ge?M:async q=>{const ae=(0,Qe.default)((0,Qe.default)({},j),{},{trpc:(0,Qe.default)((0,Qe.default)({},j?.trpc),Ee?{signal:q.signal}:{signal:null})}),Te=await V.query(...Pr(C,ae));return Tw(Te)?_9(Te,X,C):Te}}),X);return Pe.trpc=qc({path:N}),Pe}function m(N,M,D){var B,P,U;const F=d(),Q=gs(N,M,"query"),Y=M===ca,te=(B=(P=D==null||(U=D.trpc)===null||U===void 0?void 0:U.abortOnUnmount)!==null&&P!==void 0?P:e?.abortOnUnmount)!==null&&B!==void 0?B:F.abortOnUnmount;CV((0,Qe.default)((0,Qe.default)({},D),{},{queryKey:Q,queryFn:Y?M:V=>{const J={trpc:(0,Qe.default)((0,Qe.default)({},D?.trpc),te?{signal:V.signal}:{})};return F.client.query(...Pr(Q,J))}}))}function E(N,M,D){var B,P,U;const F=d(),Q=gs(N,M,"query"),Y=(B=(P=D==null||(U=D.trpc)===null||U===void 0?void 0:U.abortOnUnmount)!==null&&P!==void 0?P:e?.abortOnUnmount)!==null&&B!==void 0?B:F.abortOnUnmount,te=AV((0,Qe.default)((0,Qe.default)({},D),{},{queryKey:Q,queryFn:V=>{const J=(0,Qe.default)((0,Qe.default)({},D),{},{trpc:(0,Qe.default)((0,Qe.default)({},D?.trpc),Y?{signal:V.signal}:{signal:null})});return F.client.query(...Pr(Q,J))}}),F.queryClient);return te.trpc=qc({path:N}),[te.data,te]}function b(N,M){const{client:D,queryClient:B}=d(),P=Zf(N),U=B.defaultMutationOptions(B.getMutationDefaults(P)),F=OV((0,Qe.default)((0,Qe.default)({},M),{},{mutationKey:P,mutationFn:Q=>D.mutation(...Pr([N,{input:Q}],M)),onSuccess(...Q){var Y,te;return a({originalFn:()=>{var J,X,se;return(J=M==null||(X=M.onSuccess)===null||X===void 0?void 0:X.call(M,...Q))!==null&&J!==void 0?J:U==null||(se=U.onSuccess)===null||se===void 0?void 0:se.call(U,...Q)},queryClient:B,meta:(Y=(te=M?.meta)!==null&&te!==void 0?te:U?.meta)!==null&&Y!==void 0?Y:{}})}}),B);return F.trpc=qc({path:N}),F}const T={data:void 0,error:null,status:"idle"},A={data:void 0,error:null,status:"connecting"};/* istanbul ignore next -- @preserve */function S(N,M,D){var B;const P=(B=D?.enabled)!==null&&B!==void 0?B:M!==ca,U=lo(gs(N,M,"any")),{client:F}=d(),Q=p.useRef(D);p.useEffect(()=>{Q.current=D});const[Y]=p.useState(new Set([])),te=p.useCallback(ge=>{Y.add(ge)},[Y]),V=p.useRef(null),J=p.useCallback(ge=>{const j=se.current,Ee=se.current=ge(j);let Pe=!1;for(const q of Y)if(j[q]!==Ee[q]){Pe=!0;break}Pe&&oe(e_(Ee,te))},[te,Y]),X=p.useCallback(()=>{var ge;if((ge=V.current)===null||ge===void 0||ge.unsubscribe(),!P){J(()=>(0,Qe.default)((0,Qe.default)({},T),{},{reset:X}));return}J(()=>(0,Qe.default)((0,Qe.default)({},A),{},{reset:X}));const j=F.subscription(N.join("."),M??void 0,{onStarted:()=>{var Ee,Pe;(Ee=(Pe=Q.current).onStarted)===null||Ee===void 0||Ee.call(Pe),J(q=>(0,Qe.default)((0,Qe.default)({},q),{},{status:"pending",error:null}))},onData:Ee=>{var Pe,q;(Pe=(q=Q.current).onData)===null||Pe===void 0||Pe.call(q,Ee),J(ae=>(0,Qe.default)((0,Qe.default)({},ae),{},{status:"pending",data:Ee,error:null}))},onError:Ee=>{var Pe,q;(Pe=(q=Q.current).onError)===null||Pe===void 0||Pe.call(q,Ee),J(ae=>(0,Qe.default)((0,Qe.default)({},ae),{},{status:"error",error:Ee}))},onConnectionStateChange:Ee=>{J(Pe=>{switch(Ee.state){case"idle":return(0,Qe.default)((0,Qe.default)({},Pe),{},{status:Ee.state,error:null,data:void 0});case"connecting":return(0,Qe.default)((0,Qe.default)({},Pe),{},{error:Ee.error,status:Ee.state});case"pending":return Pe}})},onComplete:()=>{var Ee,Pe;(Ee=(Pe=Q.current).onComplete)===null||Ee===void 0||Ee.call(Pe),J(q=>(0,Qe.default)((0,Qe.default)({},q),{},{status:"idle",error:null,data:void 0}))}});V.current=j},[F,U,P,J]);p.useEffect(()=>(X(),()=>{var ge;(ge=V.current)===null||ge===void 0||ge.unsubscribe()}),[X]);const se=p.useRef(P?(0,Qe.default)((0,Qe.default)({},A),{},{reset:X}):(0,Qe.default)((0,Qe.default)({},T),{},{reset:X})),[C,oe]=p.useState(e_(se.current,te));return C}function w(N,M,D){var B,P,U,F,Q;const{client:Y,ssrState:te,prefetchInfiniteQuery:V,queryClient:J,abortOnUnmount:X}=d(),se=gs(N,M,"infinite"),C=J.getQueryDefaults(se),oe=M===ca;typeof window>"u"&&te==="prepass"&&(D==null||(B=D.trpc)===null||B===void 0?void 0:B.ssr)!==!1&&((P=D?.enabled)!==null&&P!==void 0?P:C?.enabled)!==!1&&!oe&&!J.getQueryCache().find({queryKey:se})&&V(se,(0,Qe.default)((0,Qe.default)({},C),D));const ge=h(se,(0,Qe.default)((0,Qe.default)({},C),D)),j=(U=D==null||(F=D.trpc)===null||F===void 0?void 0:F.abortOnUnmount)!==null&&U!==void 0?U:X,Ee=NV((0,Qe.default)((0,Qe.default)({},ge),{},{initialPageParam:(Q=D.initialCursor)!==null&&Q!==void 0?Q:null,persister:D.persister,queryKey:se,queryFn:oe?M:Pe=>{var q;const ae=(0,Qe.default)((0,Qe.default)({},ge),{},{trpc:(0,Qe.default)((0,Qe.default)({},ge?.trpc),j?{signal:Pe.signal}:{signal:null})});return Y.query(...Pr(se,ae,{pageParam:(q=Pe.pageParam)!==null&&q!==void 0?q:D.initialCursor,direction:Pe.direction}))}}),J);return Ee.trpc=qc({path:N}),Ee}function R(N,M,D){var B,P,U;const F=d(),Q=gs(N,M,"infinite"),Y=F.queryClient.getQueryDefaults(Q),te=M===ca,V=h(Q,(0,Qe.default)((0,Qe.default)({},Y),D)),J=(B=D==null||(P=D.trpc)===null||P===void 0?void 0:P.abortOnUnmount)!==null&&B!==void 0?B:F.abortOnUnmount;RV((0,Qe.default)((0,Qe.default)({},D),{},{initialPageParam:(U=D.initialCursor)!==null&&U!==void 0?U:null,queryKey:Q,queryFn:te?M:X=>{var se;const C=(0,Qe.default)((0,Qe.default)({},V),{},{trpc:(0,Qe.default)((0,Qe.default)({},V?.trpc),J?{signal:X.signal}:{})});return F.client.query(...Pr(Q,C,{pageParam:(se=X.pageParam)!==null&&se!==void 0?se:D.initialCursor,direction:X.direction}))}}))}function k(N,M,D){var B,P,U;const F=d(),Q=gs(N,M,"infinite"),Y=F.queryClient.getQueryDefaults(Q),te=h(Q,(0,Qe.default)((0,Qe.default)({},Y),D)),V=(B=D==null||(P=D.trpc)===null||P===void 0?void 0:P.abortOnUnmount)!==null&&B!==void 0?B:F.abortOnUnmount,J=SV((0,Qe.default)((0,Qe.default)({},D),{},{initialPageParam:(U=D.initialCursor)!==null&&U!==void 0?U:null,queryKey:Q,queryFn:X=>{var se;const C=(0,Qe.default)((0,Qe.default)({},te),{},{trpc:(0,Qe.default)((0,Qe.default)({},te?.trpc),V?{signal:X.signal}:{})});return F.client.query(...Pr(Q,C,{pageParam:(se=X.pageParam)!==null&&se!==void 0?se:D.initialCursor,direction:X.direction}))}}),F.queryClient);return J.trpc=qc({path:N}),[J.data,J]}return{Provider:u,createClient:l,useContext:d,useUtils:d,useQuery:v,usePrefetchQuery:m,useSuspenseQuery:E,useQueries:(N,M)=>{const{ssrState:D,queryClient:B,prefetchQuery:P,client:U}=d(),F=Jx(U),Q=N(F);if(typeof window>"u"&&D==="prepass")for(const te of Q){var Y;const V=te;((Y=V.trpc)===null||Y===void 0?void 0:Y.ssr)!==!1&&!B.getQueryCache().find({queryKey:V.queryKey})&&P(V.queryKey,V)}return y9({queries:Q.map(te=>(0,Qe.default)((0,Qe.default)({},te),{},{queryKey:te.queryKey})),combine:M?.combine},B)},useSuspenseQueries:N=>{const{queryClient:M,client:D}=d(),B=Jx(D),P=N(B),U=wV({queries:P.map(F=>(0,Qe.default)((0,Qe.default)({},F),{},{queryFn:F.queryFn,queryKey:F.queryKey}))},M);return[U.map(F=>F.data),U]},useMutation:b,useSubscription:S,useInfiniteQuery:w,usePrefetchInfiniteQuery:R,useSuspenseInfiniteQuery:k}}function ez(e){const t=zV(e);return C4(n=>n==="useContext"||n==="useUtils"?()=>{const r=e.useUtils();return p.useMemo(()=>YV(r),[r])}:e.hasOwnProperty(n)?e[n]:t[n])}function T9(e){const t=JV(e);return ez(t)}const En=T9({}),Kd=T9({context:p.createContext(null)}),t_=new o9,n_=new o9;function tz(e){const[t]=p.useState(()=>WB(`${e.gatewayUrl}/trpc`)),[n]=p.useState(()=>JB(e.registryUrl));return g.jsx(En.Provider,{queryClient:t_,client:t,children:g.jsx(Xx,{client:t_,children:g.jsx(Kd.Provider,{queryClient:n_,client:n,children:g.jsx(Xx,{client:n_,children:e.children})})})})}function Xd(){return En.store.getAll.useQuery()}var h1="Dialog",[A9,S9]=Qr(h1),[nz,ns]=A9(h1),w9=e=>{const{__scopeDialog:t,children:n,open:r,defaultOpen:a,onOpenChange:i,modal:l=!0}=e,u=p.useRef(null),d=p.useRef(null),[h,v]=Pa({prop:r,defaultProp:a??!1,onChange:i,caller:h1});return g.jsx(nz,{scope:t,triggerRef:u,contentRef:d,contentId:Ts(),titleId:Ts(),descriptionId:Ts(),open:h,onOpenChange:v,onOpenToggle:p.useCallback(()=>v(m=>!m),[v]),modal:l,children:n})};w9.displayName=h1;var C9="DialogTrigger",R9=p.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,a=ns(C9,n),i=xn(t,a.triggerRef);return g.jsx(xt.button,{type:"button","aria-haspopup":"dialog","aria-expanded":a.open,"aria-controls":a.contentId,"data-state":U4(a.open),...r,ref:i,onClick:ut(e.onClick,a.onOpenToggle)})});R9.displayName=C9;var I4="DialogPortal",[rz,O9]=A9(I4,{forceMount:void 0}),N9=e=>{const{__scopeDialog:t,forceMount:n,children:r,container:a}=e,i=ns(I4,t);return g.jsx(rz,{scope:t,forceMount:n,children:p.Children.map(r,l=>g.jsx(ka,{present:n||i.open,children:g.jsx(Wh,{asChild:!0,container:a,children:l})}))})};N9.displayName=I4;var hh="DialogOverlay",P9=p.forwardRef((e,t)=>{const n=O9(hh,e.__scopeDialog),{forceMount:r=n.forceMount,...a}=e,i=ns(hh,e.__scopeDialog);return i.modal?g.jsx(ka,{present:r||i.open,children:g.jsx(sz,{...a,ref:t})}):null});P9.displayName=hh;var az=zo("DialogOverlay.RemoveScroll"),sz=p.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,a=ns(hh,n);return g.jsx(e1,{as:az,allowPinchZoom:!0,shards:[a.contentRef],children:g.jsx(xt.div,{"data-state":U4(a.open),...r,ref:t,style:{pointerEvents:"auto",...r.style}})})}),Qo="DialogContent",k9=p.forwardRef((e,t)=>{const n=O9(Qo,e.__scopeDialog),{forceMount:r=n.forceMount,...a}=e,i=ns(Qo,e.__scopeDialog);return g.jsx(ka,{present:r||i.open,children:i.modal?g.jsx(iz,{...a,ref:t}):g.jsx(oz,{...a,ref:t})})});k9.displayName=Qo;var iz=p.forwardRef((e,t)=>{const n=ns(Qo,e.__scopeDialog),r=p.useRef(null),a=xn(t,n.contentRef,r);return p.useEffect(()=>{const i=r.current;if(i)return o4(i)},[]),g.jsx(D9,{...e,ref:a,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:ut(e.onCloseAutoFocus,i=>{i.preventDefault(),n.triggerRef.current?.focus()}),onPointerDownOutside:ut(e.onPointerDownOutside,i=>{const l=i.detail.originalEvent,u=l.button===0&&l.ctrlKey===!0;(l.button===2||u)&&i.preventDefault()}),onFocusOutside:ut(e.onFocusOutside,i=>i.preventDefault())})}),oz=p.forwardRef((e,t)=>{const n=ns(Qo,e.__scopeDialog),r=p.useRef(!1),a=p.useRef(!1);return g.jsx(D9,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:i=>{e.onCloseAutoFocus?.(i),i.defaultPrevented||(r.current||n.triggerRef.current?.focus(),i.preventDefault()),r.current=!1,a.current=!1},onInteractOutside:i=>{e.onInteractOutside?.(i),i.defaultPrevented||(r.current=!0,i.detail.originalEvent.type==="pointerdown"&&(a.current=!0));const l=i.target;n.triggerRef.current?.contains(l)&&i.preventDefault(),i.detail.originalEvent.type==="focusin"&&a.current&&i.preventDefault()}})}),D9=p.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:a,onCloseAutoFocus:i,...l}=e,u=ns(Qo,n),d=p.useRef(null),h=xn(t,d);return Y8(),g.jsxs(g.Fragment,{children:[g.jsx(Qh,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:a,onUnmountAutoFocus:i,children:g.jsx(Zh,{role:"dialog",id:u.contentId,"aria-describedby":u.descriptionId,"aria-labelledby":u.titleId,"data-state":U4(u.open),...l,ref:h,onDismiss:()=>u.onOpenChange(!1)})}),g.jsxs(g.Fragment,{children:[g.jsx(uz,{titleId:u.titleId}),g.jsx(dz,{contentRef:d,descriptionId:u.descriptionId})]})]})}),j4="DialogTitle",H4=p.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,a=ns(j4,n);return g.jsx(xt.h2,{id:a.titleId,...r,ref:t})});H4.displayName=j4;var M9="DialogDescription",F4=p.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,a=ns(M9,n);return g.jsx(xt.p,{id:a.descriptionId,...r,ref:t})});F4.displayName=M9;var L9="DialogClose",I9=p.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,a=ns(L9,n);return g.jsx(xt.button,{type:"button",...r,ref:t,onClick:ut(e.onClick,()=>a.onOpenChange(!1))})});I9.displayName=L9;function U4(e){return e?"open":"closed"}var j9="DialogTitleWarning",[lz,H9]=hM(j9,{contentName:Qo,titleName:j4,docsSlug:"dialog"}),uz=({titleId:e})=>{const t=H9(j9),n=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
|
|
101
|
-
|
|
102
|
-
If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
|
|
103
|
-
|
|
104
|
-
For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return p.useEffect(()=>{e&&(document.getElementById(e)||console.error(n))},[n,e]),null},cz="DialogDescriptionWarning",dz=({contentRef:e,descriptionId:t})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${H9(cz).contentName}}.`;return p.useEffect(()=>{const a=e.current?.getAttribute("aria-describedby");t&&a&&(document.getElementById(t)||console.warn(r))},[r,e,t]),null},B4=w9,V4=R9,z4=N9,m1=P9,p1=k9,q4=H4,$4=F4,g1=I9,F9="AlertDialog",[fz,pie]=Qr(F9,[S9]),vi=S9(),U9=e=>{const{__scopeAlertDialog:t,...n}=e,r=vi(t);return g.jsx(B4,{...r,...n,modal:!0})};U9.displayName=F9;var hz="AlertDialogTrigger",B9=p.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,a=vi(n);return g.jsx(V4,{...a,...r,ref:t})});B9.displayName=hz;var mz="AlertDialogPortal",V9=e=>{const{__scopeAlertDialog:t,...n}=e,r=vi(t);return g.jsx(z4,{...r,...n})};V9.displayName=mz;var pz="AlertDialogOverlay",z9=p.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,a=vi(n);return g.jsx(m1,{...a,...r,ref:t})});z9.displayName=pz;var fu="AlertDialogContent",[gz,vz]=fz(fu),yz=OD("AlertDialogContent"),q9=p.forwardRef((e,t)=>{const{__scopeAlertDialog:n,children:r,...a}=e,i=vi(n),l=p.useRef(null),u=xn(t,l),d=p.useRef(null);return g.jsx(lz,{contentName:fu,titleName:$9,docsSlug:"alert-dialog",children:g.jsx(gz,{scope:n,cancelRef:d,children:g.jsxs(p1,{role:"alertdialog",...i,...a,ref:u,onOpenAutoFocus:ut(a.onOpenAutoFocus,h=>{h.preventDefault(),d.current?.focus({preventScroll:!0})}),onPointerDownOutside:h=>h.preventDefault(),onInteractOutside:h=>h.preventDefault(),children:[g.jsx(yz,{children:r}),g.jsx(xz,{contentRef:l})]})})})});q9.displayName=fu;var $9="AlertDialogTitle",Z9=p.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,a=vi(n);return g.jsx(q4,{...a,...r,ref:t})});Z9.displayName=$9;var Q9="AlertDialogDescription",Y9=p.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,a=vi(n);return g.jsx($4,{...a,...r,ref:t})});Y9.displayName=Q9;var bz="AlertDialogAction",Ez=p.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,a=vi(n);return g.jsx(g1,{...a,...r,ref:t})});Ez.displayName=bz;var G9="AlertDialogCancel",K9=p.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,{cancelRef:a}=vz(G9,n),i=vi(n),l=xn(t,a);return g.jsx(g1,{...i,...r,ref:l})});K9.displayName=G9;var xz=({contentRef:e})=>{const t=`\`${fu}\` requires a description for the component to be accessible for screen reader users.
|
|
105
|
-
|
|
106
|
-
You can add a description to the \`${fu}\` by passing a \`${Q9}\` component as a child, which also benefits sighted users by adding visible context to the dialog.
|
|
107
|
-
|
|
108
|
-
Alternatively, you can use your own component as a description by assigning it an \`id\` and passing the same value to the \`aria-describedby\` prop in \`${fu}\`. If the description is confusing or duplicative for sighted users, you can use the \`@radix-ui/react-visually-hidden\` primitive as a wrapper around your description component.
|
|
109
|
-
|
|
110
|
-
For more information, see https://radix-ui.com/primitives/docs/components/alert-dialog`;return p.useEffect(()=>{document.getElementById(e.current?.getAttribute("aria-describedby"))||console.warn(t)},[t,e]),null},_z=U9,Tz=B9,Az=V9,Sz=z9,wz=q9,Cz=K9,Rz=Z9,Oz=Y9;const yi=Hd("",{variants:{variant:{h1:"text-balance font-medium font-sans text-[25px] leading-tight tracking-[0.01em]",h2:"text-balance font-medium font-sans text-[17px] leading-6 tracking-[0.01em]",h3:"text-balance font-medium font-sans text-[15px] leading-tight",h4:"text-balance font-normal font-sans text-base leading-tight",p:"text-pretty text-[15px] leading-6",inlineLink:"text-inherit underline decoration-gray-10 decoration-dashed underline-offset-3 hover:decoration-gray-12"},invisibles:{false:"",true:"[&:not(p)]:before:mr-2 [&:not(p)]:before:text-gray-8 [&:not(p)]:before:tracking-widest"}},defaultVariants:{variant:"p",invisibles:!1},compoundVariants:[{variant:"h1",invisibles:!0,className:"before:content-['#']"},{variant:"h2",invisibles:!0,className:"before:content-['##']"},{variant:"h3",invisibles:!0,className:"before:content-['###']"},{variant:"h4",invisibles:!0,className:"before:content-['####']"}]}),X9=_z,Nz=Tz,Pz=Az;function kz({className:e,...t}){return g.jsx(Sz,{className:De("overlay",e),...t})}function W9({className:e,...t}){return g.jsxs(Pz,{children:[g.jsx(kz,{}),g.jsx(wz,{className:De("popover rounded-xl","fixed top-12 left-[50%] z-50 grid w-full max-w-[90%] translate-x-[-50%] outline-none duration-200 sm:max-w-md","radix-state-[closed]:fade-out-0 radix-state-[open]:fade-in-0 radix-state-[closed]:zoom-out-95 radix-state-[open]:zoom-in-95 radix-state-[closed]:slide-out-to-top-[48%] radix-state-[open]:slide-in-from-top-[48%] radix-state-[closed]:animate-out radix-state-[open]:animate-in",e),...t})]})}function J9({className:e,...t}){return g.jsx("div",{className:De("flex flex-col gap-y-1 p-5 text-start",e),...t})}function Dz({className:e,...t}){return g.jsx("div",{className:De("flex flex-col-reverse gap-1 border-accent border-t-[0.5px] px-5 py-3 sm:flex-row sm:justify-end",e),...t})}function e7({className:e,...t}){return g.jsx(Rz,{className:De(yi({variant:"h2"}),"text-fg",e),...t})}function t7({className:e,...t}){return g.jsx(Oz,{className:De(yi({variant:"p"}),"text-fg-subtle",e),...t})}function Mz({className:e,...t}){return g.jsx(Cz,{className:De(RA({variant:"ghost"}),e),...t})}var Lz="Label",n7=p.forwardRef((e,t)=>g.jsx(xt.label,{...e,ref:t,onMouseDown:n=>{n.target.closest("button, input, select, textarea")||(e.onMouseDown?.(n),!n.defaultPrevented&&n.detail>1&&n.preventDefault())}}));n7.displayName=Lz;var Iz=n7;const jz=Hd("font-medium font-mono text-[11px] uppercase leading-none tracking-widest peer-disabled:cursor-not-allowed peer-disabled:opacity-70");function sl({className:e,...t}){return g.jsx(Iz,{className:De(jz(),e),...t})}function Hz(e){const{onClickLibrary:t,onClickWorkspace:n,...r}=e;return g.jsx(X9,{...r,children:g.jsxs(W9,{children:[g.jsxs(J9,{className:"gap-y-0.5",children:[g.jsx(e7,{className:"text-xl",children:"You're all set!"}),g.jsx(t7,{children:"Why not try calling your new MCP server from the installed client?"})]}),g.jsxs("div",{className:"flex flex-col gap-1 border-accent border-t-[0.5px] p-5",children:[g.jsx(sl,{className:"pb-1",children:"Next steps"}),g.jsxs(R2,{href:"/library",onClick:t,children:[g.jsx(oA,{className:"text-fg-subtle",weight:"fill"}),g.jsx("span",{children:"Discover more MCP servers"})]}),g.jsxs(R2,{href:"https://docs.director.run",children:[g.jsx(XT,{className:"text-fg-subtle",weight:"fill"}),g.jsx("span",{children:"Explore our documentation"})]}),g.jsxs(R2,{className:"bg-fg text-surface hover:bg-fg-subtle",href:"/",onClick:n,children:[g.jsx(V8,{weight:"fill"}),g.jsx("span",{children:"Continue to your proxy"})]})]})]})})}function R2({className:e,children:t,href:n,onClick:r}){const a=()=>{r?r():n.startsWith("http")?window.open(n,"_blank","noopener,noreferrer"):window.location.href=n};return g.jsxs("button",{type:"button",className:De("group grid grid-cols-[24px_1fr_24px] items-center gap-2","h-9 rounded-md bg-accent pr-1.5 pl-3 font-[450] text-[15px]","outline-none hover:bg-accent-subtle","[&>svg]:size-5",e),onClick:a,children:[t,g.jsx(j8,{weight:"bold",className:"opacity-0 transition-opacity duration-200 group-hover:opacity-60"})]})}var Fz=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),Uz="VisuallyHidden",Z4=p.forwardRef((e,t)=>g.jsx(xt.span,{...e,ref:t,style:{...Fz,...e.style}}));Z4.displayName=Uz;var O2={exports:{}},N2={};/**
|
|
111
|
-
* @license React
|
|
112
|
-
* use-sync-external-store-shim.production.js
|
|
113
|
-
*
|
|
114
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
115
|
-
*
|
|
116
|
-
* This source code is licensed under the MIT license found in the
|
|
117
|
-
* LICENSE file in the root directory of this source tree.
|
|
118
|
-
*/var r_;function Bz(){if(r_)return N2;r_=1;var e=Bh();function t(m,E){return m===E&&(m!==0||1/m===1/E)||m!==m&&E!==E}var n=typeof Object.is=="function"?Object.is:t,r=e.useState,a=e.useEffect,i=e.useLayoutEffect,l=e.useDebugValue;function u(m,E){var b=E(),T=r({inst:{value:b,getSnapshot:E}}),A=T[0].inst,S=T[1];return i(function(){A.value=b,A.getSnapshot=E,d(A)&&S({inst:A})},[m,b,E]),a(function(){return d(A)&&S({inst:A}),m(function(){d(A)&&S({inst:A})})},[m]),l(b),b}function d(m){var E=m.getSnapshot;m=m.value;try{var b=E();return!n(m,b)}catch{return!0}}function h(m,E){return E()}var v=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?h:u;return N2.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:v,N2}var a_;function Vz(){return a_||(a_=1,O2.exports=Bz()),O2.exports}var zz=Vz();function qz(){return zz.useSyncExternalStore($z,()=>!0,()=>!1)}function $z(){return()=>{}}var Q4="Avatar",[Zz,gie]=Qr(Q4),[Qz,r7]=Zz(Q4),a7=p.forwardRef((e,t)=>{const{__scopeAvatar:n,...r}=e,[a,i]=p.useState("idle");return g.jsx(Qz,{scope:n,imageLoadingStatus:a,onImageLoadingStatusChange:i,children:g.jsx(xt.span,{...r,ref:t})})});a7.displayName=Q4;var s7="AvatarImage",i7=p.forwardRef((e,t)=>{const{__scopeAvatar:n,src:r,onLoadingStatusChange:a=()=>{},...i}=e,l=r7(s7,n),u=Yz(r,i),d=ws(h=>{a(h),l.onImageLoadingStatusChange(h)});return Na(()=>{u!=="idle"&&d(u)},[u,d]),u==="loaded"?g.jsx(xt.img,{...i,ref:t,src:r}):null});i7.displayName=s7;var o7="AvatarFallback",l7=p.forwardRef((e,t)=>{const{__scopeAvatar:n,delayMs:r,...a}=e,i=r7(o7,n),[l,u]=p.useState(r===void 0);return p.useEffect(()=>{if(r!==void 0){const d=window.setTimeout(()=>u(!0),r);return()=>window.clearTimeout(d)}},[r]),l&&i.imageLoadingStatus!=="loaded"?g.jsx(xt.span,{...a,ref:t}):null});l7.displayName=o7;function s_(e,t){return e?t?(e.src!==t&&(e.src=t),e.complete&&e.naturalWidth>0?"loaded":"loading"):"error":"idle"}function Yz(e,{referrerPolicy:t,crossOrigin:n}){const r=qz(),a=p.useRef(null),i=r?(a.current||(a.current=new window.Image),a.current):null,[l,u]=p.useState(()=>s_(i,e));return Na(()=>{u(s_(i,e))},[i,e]),Na(()=>{const d=m=>()=>{u(m)};if(!i)return;const h=d("loaded"),v=d("error");return i.addEventListener("load",h),i.addEventListener("error",v),t&&(i.referrerPolicy=t),typeof n=="string"&&(i.crossOrigin=n),()=>{i.removeEventListener("load",h),i.removeEventListener("error",v)}},[i,n,t]),l}var Gz=a7,Kz=i7,Xz=l7;function u7({className:e,...t}){return g.jsx("svg",{viewBox:"0 0 20 20",fill:"none",className:De("size-full",e),...t,children:g.jsx("path",{d:"M9.22783 1.84903C10.438 0.698788 12.3519 0.717222 13.5394 1.9047L13.595 1.96134C14.2699 2.67128 14.5382 3.62317 14.4085 4.52872C15.3143 4.39869 16.2666 4.66906 16.9769 5.34415L17.0335 5.39982L17.0706 5.43595L17.1263 5.49259C18.2584 6.68354 18.2583 8.55649 17.1263 9.74747L17.0706 9.80411L10.7483 16.1264L10.722 16.1586C10.6694 16.2385 10.6781 16.3471 10.7483 16.4174L12.0472 17.7152C12.2882 17.9565 12.2882 18.3481 12.0472 18.5893C11.806 18.8305 11.4144 18.8303 11.1731 18.5893L9.87529 17.2904C9.32116 16.7363 9.31205 15.8434 9.84892 15.2787L16.1966 8.93107L16.2298 8.89689C16.92 8.17086 16.9089 7.0225 16.1966 6.30997L16.1604 6.27286L16.1263 6.23966C15.4027 5.55186 14.2593 5.56013 13.5462 6.26505L13.5394 6.27286L8.26005 11.5522L8.23759 11.5736C7.99507 11.7928 7.61976 11.7859 7.38603 11.5522C7.14492 11.311 7.14501 10.9194 7.38603 10.6781L12.6653 5.39982L12.6985 5.36564C13.3887 4.63962 13.3776 3.49123 12.6653 2.77872V2.77775C11.953 2.06552 10.8045 2.05457 10.0784 2.74454L10.0442 2.77872L3.054 9.76798L3.03154 9.78946C2.78907 10.0085 2.41469 10.0016 2.18095 9.76798C1.93968 9.52671 1.93968 9.13523 2.18095 8.89396L9.17021 1.9047L9.22783 1.84903ZM10.9407 3.63028C11.1832 3.41123 11.5576 3.41825 11.7913 3.65177C12.0326 3.89304 12.0326 4.28452 11.7913 4.52579L6.62236 9.69474C5.8986 10.4185 5.89854 11.593 6.62236 12.3168C7.34618 13.0402 8.51976 13.0404 9.24345 12.3168L14.4124 7.14689C14.6537 6.90563 15.0452 6.90562 15.2864 7.14689C15.5276 7.38816 15.5277 7.77965 15.2864 8.02091L10.1165 13.1899C8.92901 14.3772 7.01516 14.3958 5.80498 13.2455L5.74834 13.1899C4.54215 11.9835 4.5421 10.028 5.74834 8.82169L10.9173 3.65177L10.9407 3.63028Z",fill:"currentcolor"})})}function v1({src:e,className:t,...n}){return g.jsxs(Gz,{"data-slot":"avatar",className:De("relative flex size-8 shrink-0",t),"aria-hidden":!0,...n,children:[g.jsx(Kz,{"data-slot":"avatar-image",className:De("aspect-square size-full",t),src:e??""}),g.jsx(Xz,{"data-slot":"avatar-fallback",className:De("flex size-full items-center justify-center rounded-full bg-fg/10 p-1.5",t),children:g.jsx(u7,{})})]})}const Wz=Hd(["inline-flex shrink-0 select-none items-center justify-center gap-x-0 whitespace-nowrap rounded-md","font-medium font-mono tracking-[0.05em]"],{variants:{variant:{default:"bg-accent text-fg-subtle",success:"bg-success text-success-fg",destructive:"bg-destructive text-destructive-fg"},size:{default:"h-6 px-[3px] text-[11px] leading-6"}},defaultVariants:{variant:"default",size:"default"}});function dr({className:e,variant:t,size:n,asChild:r,...a}){const i=r?br:"div";return g.jsx(i,{className:De(Wz({variant:t,size:n}),e),...a})}function yr({children:e,className:t,uppercase:n,...r}){return g.jsx("span",{className:De("px-1",n&&"uppercase",t),...r,children:e})}function uo({children:e,className:t,weight:n="fill",color:r="currentcolor"}){return g.jsx(br,{className:De("size-5 shrink-0",t),weight:n,color:r,children:e})}function di({className:e,...t}){return g.jsx("div",{className:De("flex flex-row flex-wrap gap-1",e),...t})}function fi({asChild:e,className:t,...n}){const r=e?br:"div";return g.jsx(r,{className:De("flex flex-col border-accent border-y-[0.5px]",t),...n})}function xs({asChild:e,className:t,...n}){const r=e?br:"div";return g.jsx(r,{className:De("flex flex-row items-start gap-x-8 border-accent border-b-[0.5px] py-3 outline-none last:border-b-0","[a&]:hover:bg-accent-subtle/50 [a&]:focus-visible:bg-accent-subtle/50",t),...n})}function Ra({className:e,...t}){return g.jsx("div",{className:De("flex grow flex-col gap-y-0.5 py-0.5 *:max-w-[56ch]",e),...t})}function da({className:e,...t}){return g.jsx("span",{className:De("font-medium text-[14px] leading-5 tracking-[0.01em]",e),...t})}function Wd({className:e,...t}){return g.jsx("span",{className:De("line-clamp-1 text-[13px] text-fg-subtle leading-5 tracking-[0.01em]",e),...t})}function c7({transport:e,...t}){switch(e.type){case"http":return g.jsx(eq,{transport:e,...t});case"stdio":return g.jsx(Jz,{transport:e,...t});case"mem":return g.jsx("div",{children:"In Memory Special Case"});default:tq()}}function Jz({transport:e,...t}){if(e.type!=="stdio")return null;const n=e.args??[],r=e.env??[];return g.jsxs(fi,{...t,children:[g.jsxs(xs,{children:[g.jsx(Ra,{children:g.jsx(da,{children:"Type"})}),g.jsxs(dr,{className:"ml-auto",children:[g.jsx(uo,{children:g.jsx(dA,{})}),g.jsx(yr,{children:"STDIO"})]})]}),g.jsxs(xs,{children:[g.jsx(Ra,{children:g.jsx(da,{children:"Command"})}),g.jsx(dr,{className:"ml-auto",children:g.jsx(yr,{children:e.command})})]}),n.length>0&&g.jsxs(xs,{children:[g.jsx(Ra,{children:g.jsx(da,{children:"Arguments"})}),g.jsx(di,{className:"ml-auto justify-end",children:n.map(a=>g.jsx(dr,{children:g.jsx(yr,{children:a})},a))})]}),Object.keys(r).length>0&&g.jsxs(xs,{children:[g.jsx(Ra,{children:g.jsx(da,{children:"Environment"})}),g.jsx(di,{className:"ml-auto justify-end",children:Object.entries(r).map(([a,i])=>g.jsx(dr,{children:g.jsx(yr,{children:`${a}=${i}`})},a))})]})]})}function eq({transport:e,...t}){return e.type!=="http"?null:g.jsxs(fi,{...t,children:[g.jsxs(xs,{children:[g.jsx(Ra,{children:g.jsx(da,{children:"Type"})}),g.jsxs(dr,{className:"ml-auto",children:[g.jsx(uo,{children:g.jsx(sA,{})}),g.jsx(yr,{children:e.type})]})]}),g.jsxs(xs,{children:[g.jsx(Ra,{children:g.jsx(da,{children:"URL"})}),g.jsx(Wd,{className:"ml-auto",children:e.url})]})]})}function tq(e){throw new Error("Didn't expect to get here")}function ks({children:e,className:t,asChild:n,...r}){const a=n?br:"div";return g.jsx(a,{className:De("flex flex-col items-center justify-center gap-y-1 rounded-xl bg-accent-subtle px-4 py-6 text-center text-fg",t),...r,children:e})}function bi({children:e,className:t,...n}){return g.jsx("h3",{className:De(yi({variant:"h3"}),t),...n,children:e})}function ju({children:e,className:t,...n}){return g.jsx("p",{className:De("text-[13px] text-fg-subtle",t),...n,children:e})}function nq({parameters:e,...t}){return e.length===0?g.jsxs(ks,{children:[g.jsx(bi,{children:"No parameters"}),g.jsx(ju,{children:"This MCP server does not have any parameters."})]}):g.jsx(fi,{...t,children:e.filter((n,r,a)=>a.findIndex(i=>i.name===n.name)===r).map(n=>g.jsxs(xs,{children:[g.jsxs(Ra,{children:[g.jsx(da,{className:"font-mono",children:n.name}),n.description&&g.jsx(Wd,{children:n.description})]}),g.jsxs(di,{children:[n.required&&g.jsxs(dr,{variant:"destructive",children:[g.jsx(uo,{children:g.jsx(KT,{weight:"bold"})}),g.jsx(yr,{uppercase:!0,children:"Required"})]}),n.type==="string"&&g.jsxs(dr,{children:[g.jsx(uo,{children:g.jsx(fA,{})}),g.jsx(yr,{uppercase:!0,children:"String"})]})]})]},n.name))})}const i_="░▒▓█",o_=e=>e.split("").map(t=>i_[Math.floor(Math.random()*i_.length)]).join(""),Ya=({text:e,scrambleSpeed:t=250,className:n,...r})=>{const[a,i]=p.useState(o_(e));return p.useEffect(()=>{let l;return l=setInterval(()=>{i(o_(e))},t),()=>{l&&clearInterval(l)}},[e,t]),g.jsxs("span",{className:De("inline-block whitespace-pre-wrap",n),...r,children:[g.jsx("span",{className:"sr-only",children:e}),g.jsx("span",{"aria-hidden":"true",suppressHydrationWarning:!0,children:a})]})};function rq(){return g.jsxs(xs,{children:[g.jsxs(Ra,{children:[g.jsx(da,{children:g.jsx(Ya,{text:"Loading title"})}),g.jsx(Wd,{children:g.jsx(Ya,{text:"Loading subtitle"})})]}),g.jsx(di,{children:g.jsx(dr,{children:g.jsx(yr,{children:g.jsx(Ya,{text:"Loading badge"})})})})]})}function aq({link:e}){return g.jsxs(xs,{onClick:e.onClick,className:e.onClick?"cursor-pointer hover:bg-accent-subtle/50 focus-visible:bg-accent-subtle/50":void 0,children:[g.jsxs(Ra,{children:[g.jsx(da,{children:e.title}),e.subtitle&&g.jsx(Wd,{children:e.subtitle})]}),e.badges&&g.jsx(di,{className:"ml-auto",children:e.badges})]})}function ao({links:e,isLoading:t,className:n}){return t?g.jsx("div",{className:"flex flex-col border-accent border-y-[0.5px] opacity-50",children:new Array(3).fill(0).map((r,a)=>g.jsx(rq,{},`loading-${a}`))}):e.length===0?g.jsxs(ks,{children:[g.jsx(bi,{children:"No items"}),g.jsx(ju,{children:"This list is empty."})]}):g.jsx(fi,{className:n,children:e.map(r=>g.jsx(aq,{link:r},`li-${r.title}`))})}function sq({links:e}){return g.jsx(ao,{isLoading:!1,links:e})}function l_(e){const t=[],n=String(e||"");let r=n.indexOf(","),a=0,i=!1;for(;!i;){r===-1&&(r=n.length,i=!0);const l=n.slice(a,r).trim();(l||!i)&&t.push(l),a=r+1,r=n.indexOf(",",a)}return t}function d7(e,t){const n={};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}const iq=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,oq=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,lq={};function u_(e,t){return(lq.jsx?oq:iq).test(e)}const uq=/[ \t\n\f\r]/g;function cq(e){return typeof e=="object"?e.type==="text"?c_(e.value):!1:c_(e)}function c_(e){return e.replace(uq,"")===""}let Jd=class{constructor(t,n,r){this.normal=n,this.property=t,r&&(this.space=r)}};Jd.prototype.normal={};Jd.prototype.property={};Jd.prototype.space=void 0;function f7(e,t){const n={},r={};for(const a of e)Object.assign(n,a.property),Object.assign(r,a.normal);return new Jd(n,r,t)}function Cd(e){return e.toLowerCase()}let Yr=class{constructor(t,n){this.attribute=n,this.property=t}};Yr.prototype.attribute="";Yr.prototype.booleanish=!1;Yr.prototype.boolean=!1;Yr.prototype.commaOrSpaceSeparated=!1;Yr.prototype.commaSeparated=!1;Yr.prototype.defined=!1;Yr.prototype.mustUseProperty=!1;Yr.prototype.number=!1;Yr.prototype.overloadedBoolean=!1;Yr.prototype.property="";Yr.prototype.spaceSeparated=!1;Yr.prototype.space=void 0;let dq=0;const St=il(),Gn=il(),Pv=il(),He=il(),pn=il(),hu=il(),ia=il();function il(){return 2**++dq}const kv=Object.freeze(Object.defineProperty({__proto__:null,boolean:St,booleanish:Gn,commaOrSpaceSeparated:ia,commaSeparated:hu,number:He,overloadedBoolean:Pv,spaceSeparated:pn},Symbol.toStringTag,{value:"Module"})),P2=Object.keys(kv);let Y4=class extends Yr{constructor(t,n,r,a){let i=-1;if(super(t,n),d_(this,"space",a),typeof r=="number")for(;++i<P2.length;){const l=P2[i];d_(this,P2[i],(r&kv[l])===kv[l])}}};Y4.prototype.defined=!0;function d_(e,t,n){n&&(e[t]=n)}function Hu(e){const t={},n={};for(const[r,a]of Object.entries(e.properties)){const i=new Y4(r,e.transform(e.attributes||{},r),a,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(i.mustUseProperty=!0),t[r]=i,n[Cd(r)]=r,n[Cd(i.attribute)]=r}return new Jd(t,n,e.space)}const h7=Hu({properties:{ariaActiveDescendant:null,ariaAtomic:Gn,ariaAutoComplete:null,ariaBusy:Gn,ariaChecked:Gn,ariaColCount:He,ariaColIndex:He,ariaColSpan:He,ariaControls:pn,ariaCurrent:null,ariaDescribedBy:pn,ariaDetails:null,ariaDisabled:Gn,ariaDropEffect:pn,ariaErrorMessage:null,ariaExpanded:Gn,ariaFlowTo:pn,ariaGrabbed:Gn,ariaHasPopup:null,ariaHidden:Gn,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:pn,ariaLevel:He,ariaLive:null,ariaModal:Gn,ariaMultiLine:Gn,ariaMultiSelectable:Gn,ariaOrientation:null,ariaOwns:pn,ariaPlaceholder:null,ariaPosInSet:He,ariaPressed:Gn,ariaReadOnly:Gn,ariaRelevant:null,ariaRequired:Gn,ariaRoleDescription:pn,ariaRowCount:He,ariaRowIndex:He,ariaRowSpan:He,ariaSelected:Gn,ariaSetSize:He,ariaSort:null,ariaValueMax:He,ariaValueMin:He,ariaValueNow:He,ariaValueText:null,role:null},transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}});function m7(e,t){return t in e?e[t]:t}function p7(e,t){return m7(e,t.toLowerCase())}const fq=Hu({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:hu,acceptCharset:pn,accessKey:pn,action:null,allow:null,allowFullScreen:St,allowPaymentRequest:St,allowUserMedia:St,alt:null,as:null,async:St,autoCapitalize:null,autoComplete:pn,autoFocus:St,autoPlay:St,blocking:pn,capture:null,charSet:null,checked:St,cite:null,className:pn,cols:He,colSpan:null,content:null,contentEditable:Gn,controls:St,controlsList:pn,coords:He|hu,crossOrigin:null,data:null,dateTime:null,decoding:null,default:St,defer:St,dir:null,dirName:null,disabled:St,download:Pv,draggable:Gn,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:St,formTarget:null,headers:pn,height:He,hidden:Pv,high:He,href:null,hrefLang:null,htmlFor:pn,httpEquiv:pn,id:null,imageSizes:null,imageSrcSet:null,inert:St,inputMode:null,integrity:null,is:null,isMap:St,itemId:null,itemProp:pn,itemRef:pn,itemScope:St,itemType:pn,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:St,low:He,manifest:null,max:null,maxLength:He,media:null,method:null,min:null,minLength:He,multiple:St,muted:St,name:null,nonce:null,noModule:St,noValidate:St,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:St,optimum:He,pattern:null,ping:pn,placeholder:null,playsInline:St,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:St,referrerPolicy:null,rel:pn,required:St,reversed:St,rows:He,rowSpan:He,sandbox:pn,scope:null,scoped:St,seamless:St,selected:St,shadowRootClonable:St,shadowRootDelegatesFocus:St,shadowRootMode:null,shape:null,size:He,sizes:null,slot:null,span:He,spellCheck:Gn,src:null,srcDoc:null,srcLang:null,srcSet:null,start:He,step:null,style:null,tabIndex:He,target:null,title:null,translate:null,type:null,typeMustMatch:St,useMap:null,value:Gn,width:He,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:pn,axis:null,background:null,bgColor:null,border:He,borderColor:null,bottomMargin:He,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:St,declare:St,event:null,face:null,frame:null,frameBorder:null,hSpace:He,leftMargin:He,link:null,longDesc:null,lowSrc:null,marginHeight:He,marginWidth:He,noResize:St,noHref:St,noShade:St,noWrap:St,object:null,profile:null,prompt:null,rev:null,rightMargin:He,rules:null,scheme:null,scrolling:Gn,standby:null,summary:null,text:null,topMargin:He,valueType:null,version:null,vAlign:null,vLink:null,vSpace:He,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:St,disableRemotePlayback:St,prefix:null,property:null,results:He,security:null,unselectable:null},space:"html",transform:p7}),hq=Hu({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:ia,accentHeight:He,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:He,amplitude:He,arabicForm:null,ascent:He,attributeName:null,attributeType:null,azimuth:He,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:He,by:null,calcMode:null,capHeight:He,className:pn,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:He,diffuseConstant:He,direction:null,display:null,dur:null,divisor:He,dominantBaseline:null,download:St,dx:null,dy:null,edgeMode:null,editable:null,elevation:He,enableBackground:null,end:null,event:null,exponent:He,externalResourcesRequired:null,fill:null,fillOpacity:He,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:hu,g2:hu,glyphName:hu,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:He,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:He,horizOriginX:He,horizOriginY:He,id:null,ideographic:He,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:He,k:He,k1:He,k2:He,k3:He,k4:He,kernelMatrix:ia,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:He,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:He,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:He,overlineThickness:He,paintOrder:null,panose1:null,path:null,pathLength:He,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:pn,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:He,pointsAtY:He,pointsAtZ:He,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:ia,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:ia,rev:ia,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:ia,requiredFeatures:ia,requiredFonts:ia,requiredFormats:ia,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:He,specularExponent:He,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:He,strikethroughThickness:He,string:null,stroke:null,strokeDashArray:ia,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:He,strokeOpacity:He,strokeWidth:null,style:null,surfaceScale:He,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:ia,tabIndex:He,tableValues:null,target:null,targetX:He,targetY:He,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:ia,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:He,underlineThickness:He,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:He,values:null,vAlphabetic:He,vMathematical:He,vectorEffect:null,vHanging:He,vIdeographic:He,version:null,vertAdvY:He,vertOriginX:He,vertOriginY:He,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:He,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:m7}),g7=Hu({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(e,t){return"xlink:"+t.slice(5).toLowerCase()}}),v7=Hu({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:p7}),y7=Hu({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}}),mq={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"},pq=/[A-Z]/g,f_=/-[a-z]/g,gq=/^data[-\w.:]+$/i;function G4(e,t){const n=Cd(t);let r=t,a=Yr;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&gq.test(t)){if(t.charAt(4)==="-"){const i=t.slice(5).replace(f_,yq);r="data"+i.charAt(0).toUpperCase()+i.slice(1)}else{const i=t.slice(4);if(!f_.test(i)){let l=i.replace(pq,vq);l.charAt(0)!=="-"&&(l="-"+l),t="data"+l}}a=Y4}return new a(r,t)}function vq(e){return"-"+e.toLowerCase()}function yq(e){return e.charAt(1).toUpperCase()}const y1=f7([h7,fq,g7,v7,y7],"html"),Fu=f7([h7,hq,g7,v7,y7],"svg");function h_(e){const t=String(e||"").trim();return t?t.split(/[ \t\n\r\f]+/g):[]}function b7(e){return e.join(" ").trim()}var Xl={},k2,m_;function bq(){if(m_)return k2;m_=1;var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,t=/\n/g,n=/^\s*/,r=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,a=/^:\s*/,i=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,l=/^[;\s]*/,u=/^\s+|\s+$/g,d=`
|
|
119
|
-
`,h="/",v="*",m="",E="comment",b="declaration";k2=function(A,S){if(typeof A!="string")throw new TypeError("First argument must be a string");if(!A)return[];S=S||{};var w=1,R=1;function k(Q){var Y=Q.match(t);Y&&(w+=Y.length);var te=Q.lastIndexOf(d);R=~te?Q.length-te:R+Q.length}function L(){var Q={line:w,column:R};return function(Y){return Y.position=new I(Q),D(),Y}}function I(Q){this.start=Q,this.end={line:w,column:R},this.source=S.source}I.prototype.content=A;function N(Q){var Y=new Error(S.source+":"+w+":"+R+": "+Q);if(Y.reason=Q,Y.filename=S.source,Y.line=w,Y.column=R,Y.source=A,!S.silent)throw Y}function M(Q){var Y=Q.exec(A);if(Y){var te=Y[0];return k(te),A=A.slice(te.length),Y}}function D(){M(n)}function B(Q){var Y;for(Q=Q||[];Y=P();)Y!==!1&&Q.push(Y);return Q}function P(){var Q=L();if(!(h!=A.charAt(0)||v!=A.charAt(1))){for(var Y=2;m!=A.charAt(Y)&&(v!=A.charAt(Y)||h!=A.charAt(Y+1));)++Y;if(Y+=2,m===A.charAt(Y-1))return N("End of comment missing");var te=A.slice(2,Y-2);return R+=2,k(te),A=A.slice(Y),R+=2,Q({type:E,comment:te})}}function U(){var Q=L(),Y=M(r);if(Y){if(P(),!M(a))return N("property missing ':'");var te=M(i),V=Q({type:b,property:T(Y[0].replace(e,m)),value:te?T(te[0].replace(e,m)):m});return M(l),V}}function F(){var Q=[];B(Q);for(var Y;Y=U();)Y!==!1&&(Q.push(Y),B(Q));return Q}return D(),F()};function T(A){return A?A.replace(u,m):m}return k2}var p_;function Eq(){if(p_)return Xl;p_=1;var e=Xl&&Xl.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(Xl,"__esModule",{value:!0}),Xl.default=n;var t=e(bq());function n(r,a){var i=null;if(!r||typeof r!="string")return i;var l=(0,t.default)(r),u=typeof a=="function";return l.forEach(function(d){if(d.type==="declaration"){var h=d.property,v=d.value;u?a(h,v,d):v&&(i=i||{},i[h]=v)}}),i}return Xl}var $c={},g_;function xq(){if(g_)return $c;g_=1,Object.defineProperty($c,"__esModule",{value:!0}),$c.camelCase=void 0;var e=/^--[a-zA-Z0-9_-]+$/,t=/-([a-z])/g,n=/^[^-]+$/,r=/^-(webkit|moz|ms|o|khtml)-/,a=/^-(ms)-/,i=function(h){return!h||n.test(h)||e.test(h)},l=function(h,v){return v.toUpperCase()},u=function(h,v){return"".concat(v,"-")},d=function(h,v){return v===void 0&&(v={}),i(h)?h:(h=h.toLowerCase(),v.reactCompat?h=h.replace(a,u):h=h.replace(r,u),h.replace(t,l))};return $c.camelCase=d,$c}var Zc,v_;function _q(){if(v_)return Zc;v_=1;var e=Zc&&Zc.__importDefault||function(a){return a&&a.__esModule?a:{default:a}},t=e(Eq()),n=xq();function r(a,i){var l={};return!a||typeof a!="string"||(0,t.default)(a,function(u,d){u&&d&&(l[(0,n.camelCase)(u,i)]=d)}),l}return r.default=r,Zc=r,Zc}var Tq=_q();const Aq=Cu(Tq),b1=E7("end"),Ds=E7("start");function E7(e){return t;function t(n){const r=n&&n.position&&n.position[e]||{};if(typeof r.line=="number"&&r.line>0&&typeof r.column=="number"&&r.column>0)return{line:r.line,column:r.column,offset:typeof r.offset=="number"&&r.offset>-1?r.offset:void 0}}}function Sq(e){const t=Ds(e),n=b1(e);if(t&&n)return{start:t,end:n}}function ld(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?y_(e.position):"start"in e||"end"in e?y_(e):"line"in e||"column"in e?Dv(e):""}function Dv(e){return b_(e&&e.line)+":"+b_(e&&e.column)}function y_(e){return Dv(e&&e.start)+"-"+Dv(e&&e.end)}function b_(e){return e&&typeof e=="number"?e:1}class wr extends Error{constructor(t,n,r){super(),typeof n=="string"&&(r=n,n=void 0);let a="",i={},l=!1;if(n&&("line"in n&&"column"in n?i={place:n}:"start"in n&&"end"in n?i={place:n}:"type"in n?i={ancestors:[n],place:n.position}:i={...n}),typeof t=="string"?a=t:!i.cause&&t&&(l=!0,a=t.message,i.cause=t),!i.ruleId&&!i.source&&typeof r=="string"){const d=r.indexOf(":");d===-1?i.ruleId=r:(i.source=r.slice(0,d),i.ruleId=r.slice(d+1))}if(!i.place&&i.ancestors&&i.ancestors){const d=i.ancestors[i.ancestors.length-1];d&&(i.place=d.position)}const u=i.place&&"start"in i.place?i.place.start:i.place;this.ancestors=i.ancestors||void 0,this.cause=i.cause||void 0,this.column=u?u.column:void 0,this.fatal=void 0,this.file,this.message=a,this.line=u?u.line:void 0,this.name=ld(i.place)||"1:1",this.place=i.place||void 0,this.reason=this.message,this.ruleId=i.ruleId||void 0,this.source=i.source||void 0,this.stack=l&&i.cause&&typeof i.cause.stack=="string"?i.cause.stack:"",this.actual,this.expected,this.note,this.url}}wr.prototype.file="";wr.prototype.name="";wr.prototype.reason="";wr.prototype.message="";wr.prototype.stack="";wr.prototype.column=void 0;wr.prototype.line=void 0;wr.prototype.ancestors=void 0;wr.prototype.cause=void 0;wr.prototype.fatal=void 0;wr.prototype.place=void 0;wr.prototype.ruleId=void 0;wr.prototype.source=void 0;const K4={}.hasOwnProperty,wq=new Map,Cq=/[A-Z]/g,Rq=new Set(["table","tbody","thead","tfoot","tr"]),Oq=new Set(["td","th"]),x7="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function Nq(e,t){if(!t||t.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const n=t.filePath||void 0;let r;if(t.development){if(typeof t.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");r=Hq(n,t.jsxDEV)}else{if(typeof t.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof t.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");r=jq(n,t.jsx,t.jsxs)}const a={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:r,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:n,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:t.passKeys!==!1,passNode:t.passNode||!1,schema:t.space==="svg"?Fu:y1,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},i=_7(a,e,void 0);return i&&typeof i!="string"?i:a.create(e,a.Fragment,{children:i||void 0},void 0)}function _7(e,t,n){if(t.type==="element")return Pq(e,t,n);if(t.type==="mdxFlowExpression"||t.type==="mdxTextExpression")return kq(e,t);if(t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement")return Mq(e,t,n);if(t.type==="mdxjsEsm")return Dq(e,t);if(t.type==="root")return Lq(e,t,n);if(t.type==="text")return Iq(e,t)}function Pq(e,t,n){const r=e.schema;let a=r;t.tagName.toLowerCase()==="svg"&&r.space==="html"&&(a=Fu,e.schema=a),e.ancestors.push(t);const i=A7(e,t.tagName,!1),l=Fq(e,t);let u=W4(e,t);return Rq.has(t.tagName)&&(u=u.filter(function(d){return typeof d=="string"?!cq(d):!0})),T7(e,l,i,t),X4(l,u),e.ancestors.pop(),e.schema=r,e.create(t,i,l,n)}function kq(e,t){if(t.data&&t.data.estree&&e.evaluater){const r=t.data.estree.body[0];return r.type,e.evaluater.evaluateExpression(r.expression)}Rd(e,t.position)}function Dq(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);Rd(e,t.position)}function Mq(e,t,n){const r=e.schema;let a=r;t.name==="svg"&&r.space==="html"&&(a=Fu,e.schema=a),e.ancestors.push(t);const i=t.name===null?e.Fragment:A7(e,t.name,!0),l=Uq(e,t),u=W4(e,t);return T7(e,l,i,t),X4(l,u),e.ancestors.pop(),e.schema=r,e.create(t,i,l,n)}function Lq(e,t,n){const r={};return X4(r,W4(e,t)),e.create(t,e.Fragment,r,n)}function Iq(e,t){return t.value}function T7(e,t,n,r){typeof n!="string"&&n!==e.Fragment&&e.passNode&&(t.node=r)}function X4(e,t){if(t.length>0){const n=t.length>1?t:t[0];n&&(e.children=n)}}function jq(e,t,n){return r;function r(a,i,l,u){const h=Array.isArray(l.children)?n:t;return u?h(i,l,u):h(i,l)}}function Hq(e,t){return n;function n(r,a,i,l){const u=Array.isArray(i.children),d=Ds(r);return t(a,i,l,u,{columnNumber:d?d.column-1:void 0,fileName:e,lineNumber:d?d.line:void 0},void 0)}}function Fq(e,t){const n={};let r,a;for(a in t.properties)if(a!=="children"&&K4.call(t.properties,a)){const i=Bq(e,a,t.properties[a]);if(i){const[l,u]=i;e.tableCellAlignToStyle&&l==="align"&&typeof u=="string"&&Oq.has(t.tagName)?r=u:n[l]=u}}if(r){const i=n.style||(n.style={});i[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=r}return n}function Uq(e,t){const n={};for(const r of t.attributes)if(r.type==="mdxJsxExpressionAttribute")if(r.data&&r.data.estree&&e.evaluater){const i=r.data.estree.body[0];i.type;const l=i.expression;l.type;const u=l.properties[0];u.type,Object.assign(n,e.evaluater.evaluateExpression(u.argument))}else Rd(e,t.position);else{const a=r.name;let i;if(r.value&&typeof r.value=="object")if(r.value.data&&r.value.data.estree&&e.evaluater){const u=r.value.data.estree.body[0];u.type,i=e.evaluater.evaluateExpression(u.expression)}else Rd(e,t.position);else i=r.value===null?!0:r.value;n[a]=i}return n}function W4(e,t){const n=[];let r=-1;const a=e.passKeys?new Map:wq;for(;++r<t.children.length;){const i=t.children[r];let l;if(e.passKeys){const d=i.type==="element"?i.tagName:i.type==="mdxJsxFlowElement"||i.type==="mdxJsxTextElement"?i.name:void 0;if(d){const h=a.get(d)||0;l=d+"-"+h,a.set(d,h+1)}}const u=_7(e,i,l);u!==void 0&&n.push(u)}return n}function Bq(e,t,n){const r=G4(e.schema,t);if(!(n==null||typeof n=="number"&&Number.isNaN(n))){if(Array.isArray(n)&&(n=r.commaSeparated?d7(n):b7(n)),r.property==="style"){let a=typeof n=="object"?n:Vq(e,String(n));return e.stylePropertyNameCase==="css"&&(a=zq(a)),["style",a]}return[e.elementAttributeNameCase==="react"&&r.space?mq[r.property]||r.property:r.attribute,n]}}function Vq(e,t){try{return Aq(t,{reactCompat:!0})}catch(n){if(e.ignoreInvalidStyle)return{};const r=n,a=new wr("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:r,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw a.file=e.filePath||void 0,a.url=x7+"#cannot-parse-style-attribute",a}}function A7(e,t,n){let r;if(!n)r={type:"Literal",value:t};else if(t.includes(".")){const a=t.split(".");let i=-1,l;for(;++i<a.length;){const u=u_(a[i])?{type:"Identifier",name:a[i]}:{type:"Literal",value:a[i]};l=l?{type:"MemberExpression",object:l,property:u,computed:!!(i&&u.type==="Literal"),optional:!1}:u}r=l}else r=u_(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};if(r.type==="Literal"){const a=r.value;return K4.call(e.components,a)?e.components[a]:a}if(e.evaluater)return e.evaluater.evaluateExpression(r);Rd(e)}function Rd(e,t){const n=new wr("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:t,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw n.file=e.filePath||void 0,n.url=x7+"#cannot-handle-mdx-estrees-without-createevaluater",n}function zq(e){const t={};let n;for(n in e)K4.call(e,n)&&(t[qq(n)]=e[n]);return t}function qq(e){let t=e.replace(Cq,$q);return t.slice(0,3)==="ms-"&&(t="-"+t),t}function $q(e){return"-"+e.toLowerCase()}const D2={action:["form"],cite:["blockquote","del","ins","q"],data:["object"],formAction:["button","input"],href:["a","area","base","link"],icon:["menuitem"],itemId:null,manifest:["html"],ping:["a","area"],poster:["video"],src:["audio","embed","iframe","img","input","script","source","track","video"]},Zq={};function J4(e,t){const n=Zq,r=typeof n.includeImageAlt=="boolean"?n.includeImageAlt:!0,a=typeof n.includeHtml=="boolean"?n.includeHtml:!0;return S7(e,r,a)}function S7(e,t,n){if(Qq(e)){if("value"in e)return e.type==="html"&&!n?"":e.value;if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return E_(e.children,t,n)}return Array.isArray(e)?E_(e,t,n):""}function E_(e,t,n){const r=[];let a=-1;for(;++a<e.length;)r[a]=S7(e[a],t,n);return r.join("")}function Qq(e){return!!(e&&typeof e=="object")}const x_=document.createElement("i");function e6(e){const t="&"+e+";";x_.innerHTML=t;const n=x_.textContent;return n.charCodeAt(n.length-1)===59&&e!=="semi"||n===t?!1:n}function ha(e,t,n,r){const a=e.length;let i=0,l;if(t<0?t=-t>a?0:a+t:t=t>a?a:t,n=n>0?n:0,r.length<1e4)l=Array.from(r),l.unshift(t,n),e.splice(...l);else for(n&&e.splice(t,n);i<r.length;)l=r.slice(i,i+1e4),l.unshift(t,0),e.splice(...l),i+=1e4,t+=1e4}function Sa(e,t){return e.length>0?(ha(e,e.length,0,t),e):t}const __={}.hasOwnProperty;function w7(e){const t={};let n=-1;for(;++n<e.length;)Yq(t,e[n]);return t}function Yq(e,t){let n;for(n in t){const a=(__.call(e,n)?e[n]:void 0)||(e[n]={}),i=t[n];let l;if(i)for(l in i){__.call(a,l)||(a[l]=[]);const u=i[l];Gq(a[l],Array.isArray(u)?u:u?[u]:[])}}}function Gq(e,t){let n=-1;const r=[];for(;++n<t.length;)(t[n].add==="after"?e:r).push(t[n]);ha(e,0,0,r)}function C7(e,t){const n=Number.parseInt(e,t);return n<9||n===11||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||(n&65535)===65535||(n&65535)===65534||n>1114111?"�":String.fromCodePoint(n)}function Ga(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const Dr=mo(/[A-Za-z]/),Sr=mo(/[\dA-Za-z]/),Kq=mo(/[#-'*+\--9=?A-Z^-~]/);function mh(e){return e!==null&&(e<32||e===127)}const Mv=mo(/\d/),Xq=mo(/[\dA-Fa-f]/),Wq=mo(/[!-/:-@[-`{-~]/);function lt(e){return e!==null&&e<-2}function fn(e){return e!==null&&(e<0||e===32)}function Mt(e){return e===-2||e===-1||e===32}const E1=mo(new RegExp("\\p{P}|\\p{S}","u")),Yo=mo(/\s/);function mo(e){return t;function t(n){return n!==null&&n>-1&&e.test(String.fromCharCode(n))}}function Uu(e){const t=[];let n=-1,r=0,a=0;for(;++n<e.length;){const i=e.charCodeAt(n);let l="";if(i===37&&Sr(e.charCodeAt(n+1))&&Sr(e.charCodeAt(n+2)))a=2;else if(i<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(i))||(l=String.fromCharCode(i));else if(i>55295&&i<57344){const u=e.charCodeAt(n+1);i<56320&&u>56319&&u<57344?(l=String.fromCharCode(i,u),a=1):l="�"}else l=String.fromCharCode(i);l&&(t.push(e.slice(r,n),encodeURIComponent(l)),r=n+a+1,l=""),a&&(n+=a,a=0)}return t.join("")+e.slice(r)}function Ut(e,t,n,r){const a=r?r-1:Number.POSITIVE_INFINITY;let i=0;return l;function l(d){return Mt(d)?(e.enter(n),u(d)):t(d)}function u(d){return Mt(d)&&i++<a?(e.consume(d),u):(e.exit(n),t(d))}}const Jq={tokenize:e$};function e$(e){const t=e.attempt(this.parser.constructs.contentInitial,r,a);let n;return t;function r(u){if(u===null){e.consume(u);return}return e.enter("lineEnding"),e.consume(u),e.exit("lineEnding"),Ut(e,t,"linePrefix")}function a(u){return e.enter("paragraph"),i(u)}function i(u){const d=e.enter("chunkText",{contentType:"text",previous:n});return n&&(n.next=d),n=d,l(u)}function l(u){if(u===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(u);return}return lt(u)?(e.consume(u),e.exit("chunkText"),i):(e.consume(u),l)}}const t$={tokenize:n$},T_={tokenize:r$};function n$(e){const t=this,n=[];let r=0,a,i,l;return u;function u(k){if(r<n.length){const L=n[r];return t.containerState=L[1],e.attempt(L[0].continuation,d,h)(k)}return h(k)}function d(k){if(r++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,a&&R();const L=t.events.length;let I=L,N;for(;I--;)if(t.events[I][0]==="exit"&&t.events[I][1].type==="chunkFlow"){N=t.events[I][1].end;break}w(r);let M=L;for(;M<t.events.length;)t.events[M][1].end={...N},M++;return ha(t.events,I+1,0,t.events.slice(L)),t.events.length=M,h(k)}return u(k)}function h(k){if(r===n.length){if(!a)return E(k);if(a.currentConstruct&&a.currentConstruct.concrete)return T(k);t.interrupt=!!(a.currentConstruct&&!a._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(T_,v,m)(k)}function v(k){return a&&R(),w(r),E(k)}function m(k){return t.parser.lazy[t.now().line]=r!==n.length,l=t.now().offset,T(k)}function E(k){return t.containerState={},e.attempt(T_,b,T)(k)}function b(k){return r++,n.push([t.currentConstruct,t.containerState]),E(k)}function T(k){if(k===null){a&&R(),w(0),e.consume(k);return}return a=a||t.parser.flow(t.now()),e.enter("chunkFlow",{_tokenizer:a,contentType:"flow",previous:i}),A(k)}function A(k){if(k===null){S(e.exit("chunkFlow"),!0),w(0),e.consume(k);return}return lt(k)?(e.consume(k),S(e.exit("chunkFlow")),r=0,t.interrupt=void 0,u):(e.consume(k),A)}function S(k,L){const I=t.sliceStream(k);if(L&&I.push(null),k.previous=i,i&&(i.next=k),i=k,a.defineSkip(k.start),a.write(I),t.parser.lazy[k.start.line]){let N=a.events.length;for(;N--;)if(a.events[N][1].start.offset<l&&(!a.events[N][1].end||a.events[N][1].end.offset>l))return;const M=t.events.length;let D=M,B,P;for(;D--;)if(t.events[D][0]==="exit"&&t.events[D][1].type==="chunkFlow"){if(B){P=t.events[D][1].end;break}B=!0}for(w(r),N=M;N<t.events.length;)t.events[N][1].end={...P},N++;ha(t.events,D+1,0,t.events.slice(M)),t.events.length=N}}function w(k){let L=n.length;for(;L-- >k;){const I=n[L];t.containerState=I[1],I[0].exit.call(t,e)}n.length=k}function R(){a.write([null]),i=void 0,a=void 0,t.containerState._closeFlow=void 0}}function r$(e,t,n){return Ut(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function Eu(e){if(e===null||fn(e)||Yo(e))return 1;if(E1(e))return 2}function x1(e,t,n){const r=[];let a=-1;for(;++a<e.length;){const i=e[a].resolveAll;i&&!r.includes(i)&&(t=i(t,n),r.push(i))}return t}const Lv={name:"attention",resolveAll:a$,tokenize:s$};function a$(e,t){let n=-1,r,a,i,l,u,d,h,v;for(;++n<e.length;)if(e[n][0]==="enter"&&e[n][1].type==="attentionSequence"&&e[n][1]._close){for(r=n;r--;)if(e[r][0]==="exit"&&e[r][1].type==="attentionSequence"&&e[r][1]._open&&t.sliceSerialize(e[r][1]).charCodeAt(0)===t.sliceSerialize(e[n][1]).charCodeAt(0)){if((e[r][1]._close||e[n][1]._open)&&(e[n][1].end.offset-e[n][1].start.offset)%3&&!((e[r][1].end.offset-e[r][1].start.offset+e[n][1].end.offset-e[n][1].start.offset)%3))continue;d=e[r][1].end.offset-e[r][1].start.offset>1&&e[n][1].end.offset-e[n][1].start.offset>1?2:1;const m={...e[r][1].end},E={...e[n][1].start};A_(m,-d),A_(E,d),l={type:d>1?"strongSequence":"emphasisSequence",start:m,end:{...e[r][1].end}},u={type:d>1?"strongSequence":"emphasisSequence",start:{...e[n][1].start},end:E},i={type:d>1?"strongText":"emphasisText",start:{...e[r][1].end},end:{...e[n][1].start}},a={type:d>1?"strong":"emphasis",start:{...l.start},end:{...u.end}},e[r][1].end={...l.start},e[n][1].start={...u.end},h=[],e[r][1].end.offset-e[r][1].start.offset&&(h=Sa(h,[["enter",e[r][1],t],["exit",e[r][1],t]])),h=Sa(h,[["enter",a,t],["enter",l,t],["exit",l,t],["enter",i,t]]),h=Sa(h,x1(t.parser.constructs.insideSpan.null,e.slice(r+1,n),t)),h=Sa(h,[["exit",i,t],["enter",u,t],["exit",u,t],["exit",a,t]]),e[n][1].end.offset-e[n][1].start.offset?(v=2,h=Sa(h,[["enter",e[n][1],t],["exit",e[n][1],t]])):v=0,ha(e,r-1,n-r+3,h),n=r+h.length-v-2;break}}for(n=-1;++n<e.length;)e[n][1].type==="attentionSequence"&&(e[n][1].type="data");return e}function s$(e,t){const n=this.parser.constructs.attentionMarkers.null,r=this.previous,a=Eu(r);let i;return l;function l(d){return i=d,e.enter("attentionSequence"),u(d)}function u(d){if(d===i)return e.consume(d),u;const h=e.exit("attentionSequence"),v=Eu(d),m=!v||v===2&&a||n.includes(d),E=!a||a===2&&v||n.includes(r);return h._open=!!(i===42?m:m&&(a||!E)),h._close=!!(i===42?E:E&&(v||!m)),t(d)}}function A_(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const i$={name:"autolink",tokenize:o$};function o$(e,t,n){let r=0;return a;function a(b){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(b),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),i}function i(b){return Dr(b)?(e.consume(b),l):b===64?n(b):h(b)}function l(b){return b===43||b===45||b===46||Sr(b)?(r=1,u(b)):h(b)}function u(b){return b===58?(e.consume(b),r=0,d):(b===43||b===45||b===46||Sr(b))&&r++<32?(e.consume(b),u):(r=0,h(b))}function d(b){return b===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(b),e.exit("autolinkMarker"),e.exit("autolink"),t):b===null||b===32||b===60||mh(b)?n(b):(e.consume(b),d)}function h(b){return b===64?(e.consume(b),v):Kq(b)?(e.consume(b),h):n(b)}function v(b){return Sr(b)?m(b):n(b)}function m(b){return b===46?(e.consume(b),r=0,v):b===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(b),e.exit("autolinkMarker"),e.exit("autolink"),t):E(b)}function E(b){if((b===45||Sr(b))&&r++<63){const T=b===45?E:m;return e.consume(b),T}return n(b)}}const e0={partial:!0,tokenize:l$};function l$(e,t,n){return r;function r(i){return Mt(i)?Ut(e,a,"linePrefix")(i):a(i)}function a(i){return i===null||lt(i)?t(i):n(i)}}const R7={continuation:{tokenize:c$},exit:d$,name:"blockQuote",tokenize:u$};function u$(e,t,n){const r=this;return a;function a(l){if(l===62){const u=r.containerState;return u.open||(e.enter("blockQuote",{_container:!0}),u.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(l),e.exit("blockQuoteMarker"),i}return n(l)}function i(l){return Mt(l)?(e.enter("blockQuotePrefixWhitespace"),e.consume(l),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(l))}}function c$(e,t,n){const r=this;return a;function a(l){return Mt(l)?Ut(e,i,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(l):i(l)}function i(l){return e.attempt(R7,t,n)(l)}}function d$(e){e.exit("blockQuote")}const O7={name:"characterEscape",tokenize:f$};function f$(e,t,n){return r;function r(i){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(i),e.exit("escapeMarker"),a}function a(i){return Wq(i)?(e.enter("characterEscapeValue"),e.consume(i),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(i)}}const N7={name:"characterReference",tokenize:h$};function h$(e,t,n){const r=this;let a=0,i,l;return u;function u(m){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(m),e.exit("characterReferenceMarker"),d}function d(m){return m===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(m),e.exit("characterReferenceMarkerNumeric"),h):(e.enter("characterReferenceValue"),i=31,l=Sr,v(m))}function h(m){return m===88||m===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(m),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),i=6,l=Xq,v):(e.enter("characterReferenceValue"),i=7,l=Mv,v(m))}function v(m){if(m===59&&a){const E=e.exit("characterReferenceValue");return l===Sr&&!e6(r.sliceSerialize(E))?n(m):(e.enter("characterReferenceMarker"),e.consume(m),e.exit("characterReferenceMarker"),e.exit("characterReference"),t)}return l(m)&&a++<i?(e.consume(m),v):n(m)}}const S_={partial:!0,tokenize:p$},w_={concrete:!0,name:"codeFenced",tokenize:m$};function m$(e,t,n){const r=this,a={partial:!0,tokenize:I};let i=0,l=0,u;return d;function d(N){return h(N)}function h(N){const M=r.events[r.events.length-1];return i=M&&M[1].type==="linePrefix"?M[2].sliceSerialize(M[1],!0).length:0,u=N,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),v(N)}function v(N){return N===u?(l++,e.consume(N),v):l<3?n(N):(e.exit("codeFencedFenceSequence"),Mt(N)?Ut(e,m,"whitespace")(N):m(N))}function m(N){return N===null||lt(N)?(e.exit("codeFencedFence"),r.interrupt?t(N):e.check(S_,A,L)(N)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),E(N))}function E(N){return N===null||lt(N)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),m(N)):Mt(N)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),Ut(e,b,"whitespace")(N)):N===96&&N===u?n(N):(e.consume(N),E)}function b(N){return N===null||lt(N)?m(N):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),T(N))}function T(N){return N===null||lt(N)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),m(N)):N===96&&N===u?n(N):(e.consume(N),T)}function A(N){return e.attempt(a,L,S)(N)}function S(N){return e.enter("lineEnding"),e.consume(N),e.exit("lineEnding"),w}function w(N){return i>0&&Mt(N)?Ut(e,R,"linePrefix",i+1)(N):R(N)}function R(N){return N===null||lt(N)?e.check(S_,A,L)(N):(e.enter("codeFlowValue"),k(N))}function k(N){return N===null||lt(N)?(e.exit("codeFlowValue"),R(N)):(e.consume(N),k)}function L(N){return e.exit("codeFenced"),t(N)}function I(N,M,D){let B=0;return P;function P(te){return N.enter("lineEnding"),N.consume(te),N.exit("lineEnding"),U}function U(te){return N.enter("codeFencedFence"),Mt(te)?Ut(N,F,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(te):F(te)}function F(te){return te===u?(N.enter("codeFencedFenceSequence"),Q(te)):D(te)}function Q(te){return te===u?(B++,N.consume(te),Q):B>=l?(N.exit("codeFencedFenceSequence"),Mt(te)?Ut(N,Y,"whitespace")(te):Y(te)):D(te)}function Y(te){return te===null||lt(te)?(N.exit("codeFencedFence"),M(te)):D(te)}}}function p$(e,t,n){const r=this;return a;function a(l){return l===null?n(l):(e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),i)}function i(l){return r.parser.lazy[r.now().line]?n(l):t(l)}}const M2={name:"codeIndented",tokenize:v$},g$={partial:!0,tokenize:y$};function v$(e,t,n){const r=this;return a;function a(h){return e.enter("codeIndented"),Ut(e,i,"linePrefix",5)(h)}function i(h){const v=r.events[r.events.length-1];return v&&v[1].type==="linePrefix"&&v[2].sliceSerialize(v[1],!0).length>=4?l(h):n(h)}function l(h){return h===null?d(h):lt(h)?e.attempt(g$,l,d)(h):(e.enter("codeFlowValue"),u(h))}function u(h){return h===null||lt(h)?(e.exit("codeFlowValue"),l(h)):(e.consume(h),u)}function d(h){return e.exit("codeIndented"),t(h)}}function y$(e,t,n){const r=this;return a;function a(l){return r.parser.lazy[r.now().line]?n(l):lt(l)?(e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),a):Ut(e,i,"linePrefix",5)(l)}function i(l){const u=r.events[r.events.length-1];return u&&u[1].type==="linePrefix"&&u[2].sliceSerialize(u[1],!0).length>=4?t(l):lt(l)?a(l):n(l)}}const b$={name:"codeText",previous:x$,resolve:E$,tokenize:_$};function E$(e){let t=e.length-4,n=3,r,a;if((e[n][1].type==="lineEnding"||e[n][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(r=n;++r<t;)if(e[r][1].type==="codeTextData"){e[n][1].type="codeTextPadding",e[t][1].type="codeTextPadding",n+=2,t-=2;break}}for(r=n-1,t++;++r<=t;)a===void 0?r!==t&&e[r][1].type!=="lineEnding"&&(a=r):(r===t||e[r][1].type==="lineEnding")&&(e[a][1].type="codeTextData",r!==a+2&&(e[a][1].end=e[r-1][1].end,e.splice(a+2,r-a-2),t-=r-a-2,r=a+2),a=void 0);return e}function x$(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function _$(e,t,n){let r=0,a,i;return l;function l(m){return e.enter("codeText"),e.enter("codeTextSequence"),u(m)}function u(m){return m===96?(e.consume(m),r++,u):(e.exit("codeTextSequence"),d(m))}function d(m){return m===null?n(m):m===32?(e.enter("space"),e.consume(m),e.exit("space"),d):m===96?(i=e.enter("codeTextSequence"),a=0,v(m)):lt(m)?(e.enter("lineEnding"),e.consume(m),e.exit("lineEnding"),d):(e.enter("codeTextData"),h(m))}function h(m){return m===null||m===32||m===96||lt(m)?(e.exit("codeTextData"),d(m)):(e.consume(m),h)}function v(m){return m===96?(e.consume(m),a++,v):a===r?(e.exit("codeTextSequence"),e.exit("codeText"),t(m)):(i.type="codeTextData",h(m))}}class T${constructor(t){this.left=t?[...t]:[],this.right=[]}get(t){if(t<0||t>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+t+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return t<this.left.length?this.left[t]:this.right[this.right.length-t+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(t,n){const r=n??Number.POSITIVE_INFINITY;return r<this.left.length?this.left.slice(t,r):t>this.left.length?this.right.slice(this.right.length-r+this.left.length,this.right.length-t+this.left.length).reverse():this.left.slice(t).concat(this.right.slice(this.right.length-r+this.left.length).reverse())}splice(t,n,r){const a=n||0;this.setCursor(Math.trunc(t));const i=this.right.splice(this.right.length-a,Number.POSITIVE_INFINITY);return r&&Qc(this.left,r),i.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(t){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(t)}pushMany(t){this.setCursor(Number.POSITIVE_INFINITY),Qc(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),Qc(this.right,t.reverse())}setCursor(t){if(!(t===this.left.length||t>this.left.length&&this.right.length===0||t<0&&this.left.length===0))if(t<this.left.length){const n=this.left.splice(t,Number.POSITIVE_INFINITY);Qc(this.right,n.reverse())}else{const n=this.right.splice(this.left.length+this.right.length-t,Number.POSITIVE_INFINITY);Qc(this.left,n.reverse())}}}function Qc(e,t){let n=0;if(t.length<1e4)e.push(...t);else for(;n<t.length;)e.push(...t.slice(n,n+1e4)),n+=1e4}function P7(e){const t={};let n=-1,r,a,i,l,u,d,h;const v=new T$(e);for(;++n<v.length;){for(;n in t;)n=t[n];if(r=v.get(n),n&&r[1].type==="chunkFlow"&&v.get(n-1)[1].type==="listItemPrefix"&&(d=r[1]._tokenizer.events,i=0,i<d.length&&d[i][1].type==="lineEndingBlank"&&(i+=2),i<d.length&&d[i][1].type==="content"))for(;++i<d.length&&d[i][1].type!=="content";)d[i][1].type==="chunkText"&&(d[i][1]._isInFirstContentOfListItem=!0,i++);if(r[0]==="enter")r[1].contentType&&(Object.assign(t,A$(v,n)),n=t[n],h=!0);else if(r[1]._container){for(i=n,a=void 0;i--;)if(l=v.get(i),l[1].type==="lineEnding"||l[1].type==="lineEndingBlank")l[0]==="enter"&&(a&&(v.get(a)[1].type="lineEndingBlank"),l[1].type="lineEnding",a=i);else if(!(l[1].type==="linePrefix"||l[1].type==="listItemIndent"))break;a&&(r[1].end={...v.get(a)[1].start},u=v.slice(a,n),u.unshift(r),v.splice(a,n-a+1,u))}}return ha(e,0,Number.POSITIVE_INFINITY,v.slice(0)),!h}function A$(e,t){const n=e.get(t)[1],r=e.get(t)[2];let a=t-1;const i=[];let l=n._tokenizer;l||(l=r.parser[n.contentType](n.start),n._contentTypeTextTrailing&&(l._contentTypeTextTrailing=!0));const u=l.events,d=[],h={};let v,m,E=-1,b=n,T=0,A=0;const S=[A];for(;b;){for(;e.get(++a)[1]!==b;);i.push(a),b._tokenizer||(v=r.sliceStream(b),b.next||v.push(null),m&&l.defineSkip(b.start),b._isInFirstContentOfListItem&&(l._gfmTasklistFirstContentOfListItem=!0),l.write(v),b._isInFirstContentOfListItem&&(l._gfmTasklistFirstContentOfListItem=void 0)),m=b,b=b.next}for(b=n;++E<u.length;)u[E][0]==="exit"&&u[E-1][0]==="enter"&&u[E][1].type===u[E-1][1].type&&u[E][1].start.line!==u[E][1].end.line&&(A=E+1,S.push(A),b._tokenizer=void 0,b.previous=void 0,b=b.next);for(l.events=[],b?(b._tokenizer=void 0,b.previous=void 0):S.pop(),E=S.length;E--;){const w=u.slice(S[E],S[E+1]),R=i.pop();d.push([R,R+w.length-1]),e.splice(R,2,w)}for(d.reverse(),E=-1;++E<d.length;)h[T+d[E][0]]=T+d[E][1],T+=d[E][1]-d[E][0]-1;return h}const S$={resolve:C$,tokenize:R$},w$={partial:!0,tokenize:O$};function C$(e){return P7(e),e}function R$(e,t){let n;return r;function r(u){return e.enter("content"),n=e.enter("chunkContent",{contentType:"content"}),a(u)}function a(u){return u===null?i(u):lt(u)?e.check(w$,l,i)(u):(e.consume(u),a)}function i(u){return e.exit("chunkContent"),e.exit("content"),t(u)}function l(u){return e.consume(u),e.exit("chunkContent"),n.next=e.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,a}}function O$(e,t,n){const r=this;return a;function a(l){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),Ut(e,i,"linePrefix")}function i(l){if(l===null||lt(l))return n(l);const u=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&u&&u[1].type==="linePrefix"&&u[2].sliceSerialize(u[1],!0).length>=4?t(l):e.interrupt(r.parser.constructs.flow,n,t)(l)}}function k7(e,t,n,r,a,i,l,u,d){const h=d||Number.POSITIVE_INFINITY;let v=0;return m;function m(w){return w===60?(e.enter(r),e.enter(a),e.enter(i),e.consume(w),e.exit(i),E):w===null||w===32||w===41||mh(w)?n(w):(e.enter(r),e.enter(l),e.enter(u),e.enter("chunkString",{contentType:"string"}),A(w))}function E(w){return w===62?(e.enter(i),e.consume(w),e.exit(i),e.exit(a),e.exit(r),t):(e.enter(u),e.enter("chunkString",{contentType:"string"}),b(w))}function b(w){return w===62?(e.exit("chunkString"),e.exit(u),E(w)):w===null||w===60||lt(w)?n(w):(e.consume(w),w===92?T:b)}function T(w){return w===60||w===62||w===92?(e.consume(w),b):b(w)}function A(w){return!v&&(w===null||w===41||fn(w))?(e.exit("chunkString"),e.exit(u),e.exit(l),e.exit(r),t(w)):v<h&&w===40?(e.consume(w),v++,A):w===41?(e.consume(w),v--,A):w===null||w===32||w===40||mh(w)?n(w):(e.consume(w),w===92?S:A)}function S(w){return w===40||w===41||w===92?(e.consume(w),A):A(w)}}function D7(e,t,n,r,a,i){const l=this;let u=0,d;return h;function h(b){return e.enter(r),e.enter(a),e.consume(b),e.exit(a),e.enter(i),v}function v(b){return u>999||b===null||b===91||b===93&&!d||b===94&&!u&&"_hiddenFootnoteSupport"in l.parser.constructs?n(b):b===93?(e.exit(i),e.enter(a),e.consume(b),e.exit(a),e.exit(r),t):lt(b)?(e.enter("lineEnding"),e.consume(b),e.exit("lineEnding"),v):(e.enter("chunkString",{contentType:"string"}),m(b))}function m(b){return b===null||b===91||b===93||lt(b)||u++>999?(e.exit("chunkString"),v(b)):(e.consume(b),d||(d=!Mt(b)),b===92?E:m)}function E(b){return b===91||b===92||b===93?(e.consume(b),u++,m):m(b)}}function M7(e,t,n,r,a,i){let l;return u;function u(E){return E===34||E===39||E===40?(e.enter(r),e.enter(a),e.consume(E),e.exit(a),l=E===40?41:E,d):n(E)}function d(E){return E===l?(e.enter(a),e.consume(E),e.exit(a),e.exit(r),t):(e.enter(i),h(E))}function h(E){return E===l?(e.exit(i),d(l)):E===null?n(E):lt(E)?(e.enter("lineEnding"),e.consume(E),e.exit("lineEnding"),Ut(e,h,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),v(E))}function v(E){return E===l||E===null||lt(E)?(e.exit("chunkString"),h(E)):(e.consume(E),E===92?m:v)}function m(E){return E===l||E===92?(e.consume(E),v):v(E)}}function ud(e,t){let n;return r;function r(a){return lt(a)?(e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),n=!0,r):Mt(a)?Ut(e,r,n?"linePrefix":"lineSuffix")(a):t(a)}}const N$={name:"definition",tokenize:k$},P$={partial:!0,tokenize:D$};function k$(e,t,n){const r=this;let a;return i;function i(b){return e.enter("definition"),l(b)}function l(b){return D7.call(r,e,u,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(b)}function u(b){return a=Ga(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),b===58?(e.enter("definitionMarker"),e.consume(b),e.exit("definitionMarker"),d):n(b)}function d(b){return fn(b)?ud(e,h)(b):h(b)}function h(b){return k7(e,v,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(b)}function v(b){return e.attempt(P$,m,m)(b)}function m(b){return Mt(b)?Ut(e,E,"whitespace")(b):E(b)}function E(b){return b===null||lt(b)?(e.exit("definition"),r.parser.defined.push(a),t(b)):n(b)}}function D$(e,t,n){return r;function r(u){return fn(u)?ud(e,a)(u):n(u)}function a(u){return M7(e,i,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(u)}function i(u){return Mt(u)?Ut(e,l,"whitespace")(u):l(u)}function l(u){return u===null||lt(u)?t(u):n(u)}}const M$={name:"hardBreakEscape",tokenize:L$};function L$(e,t,n){return r;function r(i){return e.enter("hardBreakEscape"),e.consume(i),a}function a(i){return lt(i)?(e.exit("hardBreakEscape"),t(i)):n(i)}}const I$={name:"headingAtx",resolve:j$,tokenize:H$};function j$(e,t){let n=e.length-2,r=3,a,i;return e[r][1].type==="whitespace"&&(r+=2),n-2>r&&e[n][1].type==="whitespace"&&(n-=2),e[n][1].type==="atxHeadingSequence"&&(r===n-1||n-4>r&&e[n-2][1].type==="whitespace")&&(n-=r+1===n?2:4),n>r&&(a={type:"atxHeadingText",start:e[r][1].start,end:e[n][1].end},i={type:"chunkText",start:e[r][1].start,end:e[n][1].end,contentType:"text"},ha(e,r,n-r+1,[["enter",a,t],["enter",i,t],["exit",i,t],["exit",a,t]])),e}function H$(e,t,n){let r=0;return a;function a(v){return e.enter("atxHeading"),i(v)}function i(v){return e.enter("atxHeadingSequence"),l(v)}function l(v){return v===35&&r++<6?(e.consume(v),l):v===null||fn(v)?(e.exit("atxHeadingSequence"),u(v)):n(v)}function u(v){return v===35?(e.enter("atxHeadingSequence"),d(v)):v===null||lt(v)?(e.exit("atxHeading"),t(v)):Mt(v)?Ut(e,u,"whitespace")(v):(e.enter("atxHeadingText"),h(v))}function d(v){return v===35?(e.consume(v),d):(e.exit("atxHeadingSequence"),u(v))}function h(v){return v===null||v===35||fn(v)?(e.exit("atxHeadingText"),u(v)):(e.consume(v),h)}}const F$=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],C_=["pre","script","style","textarea"],U$={concrete:!0,name:"htmlFlow",resolveTo:z$,tokenize:q$},B$={partial:!0,tokenize:Z$},V$={partial:!0,tokenize:$$};function z$(e){let t=e.length;for(;t--&&!(e[t][0]==="enter"&&e[t][1].type==="htmlFlow"););return t>1&&e[t-2][1].type==="linePrefix"&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e}function q$(e,t,n){const r=this;let a,i,l,u,d;return h;function h(j){return v(j)}function v(j){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(j),m}function m(j){return j===33?(e.consume(j),E):j===47?(e.consume(j),i=!0,A):j===63?(e.consume(j),a=3,r.interrupt?t:C):Dr(j)?(e.consume(j),l=String.fromCharCode(j),S):n(j)}function E(j){return j===45?(e.consume(j),a=2,b):j===91?(e.consume(j),a=5,u=0,T):Dr(j)?(e.consume(j),a=4,r.interrupt?t:C):n(j)}function b(j){return j===45?(e.consume(j),r.interrupt?t:C):n(j)}function T(j){const Ee="CDATA[";return j===Ee.charCodeAt(u++)?(e.consume(j),u===Ee.length?r.interrupt?t:F:T):n(j)}function A(j){return Dr(j)?(e.consume(j),l=String.fromCharCode(j),S):n(j)}function S(j){if(j===null||j===47||j===62||fn(j)){const Ee=j===47,Pe=l.toLowerCase();return!Ee&&!i&&C_.includes(Pe)?(a=1,r.interrupt?t(j):F(j)):F$.includes(l.toLowerCase())?(a=6,Ee?(e.consume(j),w):r.interrupt?t(j):F(j)):(a=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(j):i?R(j):k(j))}return j===45||Sr(j)?(e.consume(j),l+=String.fromCharCode(j),S):n(j)}function w(j){return j===62?(e.consume(j),r.interrupt?t:F):n(j)}function R(j){return Mt(j)?(e.consume(j),R):P(j)}function k(j){return j===47?(e.consume(j),P):j===58||j===95||Dr(j)?(e.consume(j),L):Mt(j)?(e.consume(j),k):P(j)}function L(j){return j===45||j===46||j===58||j===95||Sr(j)?(e.consume(j),L):I(j)}function I(j){return j===61?(e.consume(j),N):Mt(j)?(e.consume(j),I):k(j)}function N(j){return j===null||j===60||j===61||j===62||j===96?n(j):j===34||j===39?(e.consume(j),d=j,M):Mt(j)?(e.consume(j),N):D(j)}function M(j){return j===d?(e.consume(j),d=null,B):j===null||lt(j)?n(j):(e.consume(j),M)}function D(j){return j===null||j===34||j===39||j===47||j===60||j===61||j===62||j===96||fn(j)?I(j):(e.consume(j),D)}function B(j){return j===47||j===62||Mt(j)?k(j):n(j)}function P(j){return j===62?(e.consume(j),U):n(j)}function U(j){return j===null||lt(j)?F(j):Mt(j)?(e.consume(j),U):n(j)}function F(j){return j===45&&a===2?(e.consume(j),V):j===60&&a===1?(e.consume(j),J):j===62&&a===4?(e.consume(j),oe):j===63&&a===3?(e.consume(j),C):j===93&&a===5?(e.consume(j),se):lt(j)&&(a===6||a===7)?(e.exit("htmlFlowData"),e.check(B$,ge,Q)(j)):j===null||lt(j)?(e.exit("htmlFlowData"),Q(j)):(e.consume(j),F)}function Q(j){return e.check(V$,Y,ge)(j)}function Y(j){return e.enter("lineEnding"),e.consume(j),e.exit("lineEnding"),te}function te(j){return j===null||lt(j)?Q(j):(e.enter("htmlFlowData"),F(j))}function V(j){return j===45?(e.consume(j),C):F(j)}function J(j){return j===47?(e.consume(j),l="",X):F(j)}function X(j){if(j===62){const Ee=l.toLowerCase();return C_.includes(Ee)?(e.consume(j),oe):F(j)}return Dr(j)&&l.length<8?(e.consume(j),l+=String.fromCharCode(j),X):F(j)}function se(j){return j===93?(e.consume(j),C):F(j)}function C(j){return j===62?(e.consume(j),oe):j===45&&a===2?(e.consume(j),C):F(j)}function oe(j){return j===null||lt(j)?(e.exit("htmlFlowData"),ge(j)):(e.consume(j),oe)}function ge(j){return e.exit("htmlFlow"),t(j)}}function $$(e,t,n){const r=this;return a;function a(l){return lt(l)?(e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),i):n(l)}function i(l){return r.parser.lazy[r.now().line]?n(l):t(l)}}function Z$(e,t,n){return r;function r(a){return e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),e.attempt(e0,t,n)}}const Q$={name:"htmlText",tokenize:Y$};function Y$(e,t,n){const r=this;let a,i,l;return u;function u(C){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(C),d}function d(C){return C===33?(e.consume(C),h):C===47?(e.consume(C),I):C===63?(e.consume(C),k):Dr(C)?(e.consume(C),D):n(C)}function h(C){return C===45?(e.consume(C),v):C===91?(e.consume(C),i=0,T):Dr(C)?(e.consume(C),R):n(C)}function v(C){return C===45?(e.consume(C),b):n(C)}function m(C){return C===null?n(C):C===45?(e.consume(C),E):lt(C)?(l=m,J(C)):(e.consume(C),m)}function E(C){return C===45?(e.consume(C),b):m(C)}function b(C){return C===62?V(C):C===45?E(C):m(C)}function T(C){const oe="CDATA[";return C===oe.charCodeAt(i++)?(e.consume(C),i===oe.length?A:T):n(C)}function A(C){return C===null?n(C):C===93?(e.consume(C),S):lt(C)?(l=A,J(C)):(e.consume(C),A)}function S(C){return C===93?(e.consume(C),w):A(C)}function w(C){return C===62?V(C):C===93?(e.consume(C),w):A(C)}function R(C){return C===null||C===62?V(C):lt(C)?(l=R,J(C)):(e.consume(C),R)}function k(C){return C===null?n(C):C===63?(e.consume(C),L):lt(C)?(l=k,J(C)):(e.consume(C),k)}function L(C){return C===62?V(C):k(C)}function I(C){return Dr(C)?(e.consume(C),N):n(C)}function N(C){return C===45||Sr(C)?(e.consume(C),N):M(C)}function M(C){return lt(C)?(l=M,J(C)):Mt(C)?(e.consume(C),M):V(C)}function D(C){return C===45||Sr(C)?(e.consume(C),D):C===47||C===62||fn(C)?B(C):n(C)}function B(C){return C===47?(e.consume(C),V):C===58||C===95||Dr(C)?(e.consume(C),P):lt(C)?(l=B,J(C)):Mt(C)?(e.consume(C),B):V(C)}function P(C){return C===45||C===46||C===58||C===95||Sr(C)?(e.consume(C),P):U(C)}function U(C){return C===61?(e.consume(C),F):lt(C)?(l=U,J(C)):Mt(C)?(e.consume(C),U):B(C)}function F(C){return C===null||C===60||C===61||C===62||C===96?n(C):C===34||C===39?(e.consume(C),a=C,Q):lt(C)?(l=F,J(C)):Mt(C)?(e.consume(C),F):(e.consume(C),Y)}function Q(C){return C===a?(e.consume(C),a=void 0,te):C===null?n(C):lt(C)?(l=Q,J(C)):(e.consume(C),Q)}function Y(C){return C===null||C===34||C===39||C===60||C===61||C===96?n(C):C===47||C===62||fn(C)?B(C):(e.consume(C),Y)}function te(C){return C===47||C===62||fn(C)?B(C):n(C)}function V(C){return C===62?(e.consume(C),e.exit("htmlTextData"),e.exit("htmlText"),t):n(C)}function J(C){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(C),e.exit("lineEnding"),X}function X(C){return Mt(C)?Ut(e,se,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(C):se(C)}function se(C){return e.enter("htmlTextData"),l(C)}}const t6={name:"labelEnd",resolveAll:W$,resolveTo:J$,tokenize:eZ},G$={tokenize:tZ},K$={tokenize:nZ},X$={tokenize:rZ};function W$(e){let t=-1;const n=[];for(;++t<e.length;){const r=e[t][1];if(n.push(e[t]),r.type==="labelImage"||r.type==="labelLink"||r.type==="labelEnd"){const a=r.type==="labelImage"?4:2;r.type="data",t+=a}}return e.length!==n.length&&ha(e,0,e.length,n),e}function J$(e,t){let n=e.length,r=0,a,i,l,u;for(;n--;)if(a=e[n][1],i){if(a.type==="link"||a.type==="labelLink"&&a._inactive)break;e[n][0]==="enter"&&a.type==="labelLink"&&(a._inactive=!0)}else if(l){if(e[n][0]==="enter"&&(a.type==="labelImage"||a.type==="labelLink")&&!a._balanced&&(i=n,a.type!=="labelLink")){r=2;break}}else a.type==="labelEnd"&&(l=n);const d={type:e[i][1].type==="labelLink"?"link":"image",start:{...e[i][1].start},end:{...e[e.length-1][1].end}},h={type:"label",start:{...e[i][1].start},end:{...e[l][1].end}},v={type:"labelText",start:{...e[i+r+2][1].end},end:{...e[l-2][1].start}};return u=[["enter",d,t],["enter",h,t]],u=Sa(u,e.slice(i+1,i+r+3)),u=Sa(u,[["enter",v,t]]),u=Sa(u,x1(t.parser.constructs.insideSpan.null,e.slice(i+r+4,l-3),t)),u=Sa(u,[["exit",v,t],e[l-2],e[l-1],["exit",h,t]]),u=Sa(u,e.slice(l+1)),u=Sa(u,[["exit",d,t]]),ha(e,i,e.length,u),e}function eZ(e,t,n){const r=this;let a=r.events.length,i,l;for(;a--;)if((r.events[a][1].type==="labelImage"||r.events[a][1].type==="labelLink")&&!r.events[a][1]._balanced){i=r.events[a][1];break}return u;function u(E){return i?i._inactive?m(E):(l=r.parser.defined.includes(Ga(r.sliceSerialize({start:i.end,end:r.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(E),e.exit("labelMarker"),e.exit("labelEnd"),d):n(E)}function d(E){return E===40?e.attempt(G$,v,l?v:m)(E):E===91?e.attempt(K$,v,l?h:m)(E):l?v(E):m(E)}function h(E){return e.attempt(X$,v,m)(E)}function v(E){return t(E)}function m(E){return i._balanced=!0,n(E)}}function tZ(e,t,n){return r;function r(m){return e.enter("resource"),e.enter("resourceMarker"),e.consume(m),e.exit("resourceMarker"),a}function a(m){return fn(m)?ud(e,i)(m):i(m)}function i(m){return m===41?v(m):k7(e,l,u,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(m)}function l(m){return fn(m)?ud(e,d)(m):v(m)}function u(m){return n(m)}function d(m){return m===34||m===39||m===40?M7(e,h,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(m):v(m)}function h(m){return fn(m)?ud(e,v)(m):v(m)}function v(m){return m===41?(e.enter("resourceMarker"),e.consume(m),e.exit("resourceMarker"),e.exit("resource"),t):n(m)}}function nZ(e,t,n){const r=this;return a;function a(u){return D7.call(r,e,i,l,"reference","referenceMarker","referenceString")(u)}function i(u){return r.parser.defined.includes(Ga(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(u):n(u)}function l(u){return n(u)}}function rZ(e,t,n){return r;function r(i){return e.enter("reference"),e.enter("referenceMarker"),e.consume(i),e.exit("referenceMarker"),a}function a(i){return i===93?(e.enter("referenceMarker"),e.consume(i),e.exit("referenceMarker"),e.exit("reference"),t):n(i)}}const aZ={name:"labelStartImage",resolveAll:t6.resolveAll,tokenize:sZ};function sZ(e,t,n){const r=this;return a;function a(u){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(u),e.exit("labelImageMarker"),i}function i(u){return u===91?(e.enter("labelMarker"),e.consume(u),e.exit("labelMarker"),e.exit("labelImage"),l):n(u)}function l(u){return u===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(u):t(u)}}const iZ={name:"labelStartLink",resolveAll:t6.resolveAll,tokenize:oZ};function oZ(e,t,n){const r=this;return a;function a(l){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(l),e.exit("labelMarker"),e.exit("labelLink"),i}function i(l){return l===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(l):t(l)}}const L2={name:"lineEnding",tokenize:lZ};function lZ(e,t){return n;function n(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),Ut(e,t,"linePrefix")}}const Qf={name:"thematicBreak",tokenize:uZ};function uZ(e,t,n){let r=0,a;return i;function i(h){return e.enter("thematicBreak"),l(h)}function l(h){return a=h,u(h)}function u(h){return h===a?(e.enter("thematicBreakSequence"),d(h)):r>=3&&(h===null||lt(h))?(e.exit("thematicBreak"),t(h)):n(h)}function d(h){return h===a?(e.consume(h),r++,d):(e.exit("thematicBreakSequence"),Mt(h)?Ut(e,u,"whitespace")(h):u(h))}}const zr={continuation:{tokenize:hZ},exit:pZ,name:"list",tokenize:fZ},cZ={partial:!0,tokenize:gZ},dZ={partial:!0,tokenize:mZ};function fZ(e,t,n){const r=this,a=r.events[r.events.length-1];let i=a&&a[1].type==="linePrefix"?a[2].sliceSerialize(a[1],!0).length:0,l=0;return u;function u(b){const T=r.containerState.type||(b===42||b===43||b===45?"listUnordered":"listOrdered");if(T==="listUnordered"?!r.containerState.marker||b===r.containerState.marker:Mv(b)){if(r.containerState.type||(r.containerState.type=T,e.enter(T,{_container:!0})),T==="listUnordered")return e.enter("listItemPrefix"),b===42||b===45?e.check(Qf,n,h)(b):h(b);if(!r.interrupt||b===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),d(b)}return n(b)}function d(b){return Mv(b)&&++l<10?(e.consume(b),d):(!r.interrupt||l<2)&&(r.containerState.marker?b===r.containerState.marker:b===41||b===46)?(e.exit("listItemValue"),h(b)):n(b)}function h(b){return e.enter("listItemMarker"),e.consume(b),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||b,e.check(e0,r.interrupt?n:v,e.attempt(cZ,E,m))}function v(b){return r.containerState.initialBlankLine=!0,i++,E(b)}function m(b){return Mt(b)?(e.enter("listItemPrefixWhitespace"),e.consume(b),e.exit("listItemPrefixWhitespace"),E):n(b)}function E(b){return r.containerState.size=i+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(b)}}function hZ(e,t,n){const r=this;return r.containerState._closeFlow=void 0,e.check(e0,a,i);function a(u){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,Ut(e,t,"listItemIndent",r.containerState.size+1)(u)}function i(u){return r.containerState.furtherBlankLines||!Mt(u)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,l(u)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(dZ,t,l)(u))}function l(u){return r.containerState._closeFlow=!0,r.interrupt=void 0,Ut(e,e.attempt(zr,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(u)}}function mZ(e,t,n){const r=this;return Ut(e,a,"listItemIndent",r.containerState.size+1);function a(i){const l=r.events[r.events.length-1];return l&&l[1].type==="listItemIndent"&&l[2].sliceSerialize(l[1],!0).length===r.containerState.size?t(i):n(i)}}function pZ(e){e.exit(this.containerState.type)}function gZ(e,t,n){const r=this;return Ut(e,a,"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function a(i){const l=r.events[r.events.length-1];return!Mt(i)&&l&&l[1].type==="listItemPrefixWhitespace"?t(i):n(i)}}const R_={name:"setextUnderline",resolveTo:vZ,tokenize:yZ};function vZ(e,t){let n=e.length,r,a,i;for(;n--;)if(e[n][0]==="enter"){if(e[n][1].type==="content"){r=n;break}e[n][1].type==="paragraph"&&(a=n)}else e[n][1].type==="content"&&e.splice(n,1),!i&&e[n][1].type==="definition"&&(i=n);const l={type:"setextHeading",start:{...e[r][1].start},end:{...e[e.length-1][1].end}};return e[a][1].type="setextHeadingText",i?(e.splice(a,0,["enter",l,t]),e.splice(i+1,0,["exit",e[r][1],t]),e[r][1].end={...e[i][1].end}):e[r][1]=l,e.push(["exit",l,t]),e}function yZ(e,t,n){const r=this;let a;return i;function i(h){let v=r.events.length,m;for(;v--;)if(r.events[v][1].type!=="lineEnding"&&r.events[v][1].type!=="linePrefix"&&r.events[v][1].type!=="content"){m=r.events[v][1].type==="paragraph";break}return!r.parser.lazy[r.now().line]&&(r.interrupt||m)?(e.enter("setextHeadingLine"),a=h,l(h)):n(h)}function l(h){return e.enter("setextHeadingLineSequence"),u(h)}function u(h){return h===a?(e.consume(h),u):(e.exit("setextHeadingLineSequence"),Mt(h)?Ut(e,d,"lineSuffix")(h):d(h))}function d(h){return h===null||lt(h)?(e.exit("setextHeadingLine"),t(h)):n(h)}}const bZ={tokenize:EZ};function EZ(e){const t=this,n=e.attempt(e0,r,e.attempt(this.parser.constructs.flowInitial,a,Ut(e,e.attempt(this.parser.constructs.flow,a,e.attempt(S$,a)),"linePrefix")));return n;function r(i){if(i===null){e.consume(i);return}return e.enter("lineEndingBlank"),e.consume(i),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n}function a(i){if(i===null){e.consume(i);return}return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),t.currentConstruct=void 0,n}}const xZ={resolveAll:I7()},_Z=L7("string"),TZ=L7("text");function L7(e){return{resolveAll:I7(e==="text"?AZ:void 0),tokenize:t};function t(n){const r=this,a=this.parser.constructs[e],i=n.attempt(a,l,u);return l;function l(v){return h(v)?i(v):u(v)}function u(v){if(v===null){n.consume(v);return}return n.enter("data"),n.consume(v),d}function d(v){return h(v)?(n.exit("data"),i(v)):(n.consume(v),d)}function h(v){if(v===null)return!0;const m=a[v];let E=-1;if(m)for(;++E<m.length;){const b=m[E];if(!b.previous||b.previous.call(r,r.previous))return!0}return!1}}}function I7(e){return t;function t(n,r){let a=-1,i;for(;++a<=n.length;)i===void 0?n[a]&&n[a][1].type==="data"&&(i=a,a++):(!n[a]||n[a][1].type!=="data")&&(a!==i+2&&(n[i][1].end=n[a-1][1].end,n.splice(i+2,a-i-2),a=i+2),i=void 0);return e?e(n,r):n}}function AZ(e,t){let n=0;for(;++n<=e.length;)if((n===e.length||e[n][1].type==="lineEnding")&&e[n-1][1].type==="data"){const r=e[n-1][1],a=t.sliceStream(r);let i=a.length,l=-1,u=0,d;for(;i--;){const h=a[i];if(typeof h=="string"){for(l=h.length;h.charCodeAt(l-1)===32;)u++,l--;if(l)break;l=-1}else if(h===-2)d=!0,u++;else if(h!==-1){i++;break}}if(t._contentTypeTextTrailing&&n===e.length&&(u=0),u){const h={type:n===e.length||d||u<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:i?l:r.start._bufferIndex+l,_index:r.start._index+i,line:r.end.line,column:r.end.column-u,offset:r.end.offset-u},end:{...r.end}};r.end={...h.start},r.start.offset===r.end.offset?Object.assign(r,h):(e.splice(n,0,["enter",h,t],["exit",h,t]),n+=2)}n++}return e}const SZ={42:zr,43:zr,45:zr,48:zr,49:zr,50:zr,51:zr,52:zr,53:zr,54:zr,55:zr,56:zr,57:zr,62:R7},wZ={91:N$},CZ={[-2]:M2,[-1]:M2,32:M2},RZ={35:I$,42:Qf,45:[R_,Qf],60:U$,61:R_,95:Qf,96:w_,126:w_},OZ={38:N7,92:O7},NZ={[-5]:L2,[-4]:L2,[-3]:L2,33:aZ,38:N7,42:Lv,60:[i$,Q$],91:iZ,92:[M$,O7],93:t6,95:Lv,96:b$},PZ={null:[Lv,xZ]},kZ={null:[42,95]},DZ={null:[]},MZ=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:kZ,contentInitial:wZ,disable:DZ,document:SZ,flow:RZ,flowInitial:CZ,insideSpan:PZ,string:OZ,text:NZ},Symbol.toStringTag,{value:"Module"}));function LZ(e,t,n){let r={_bufferIndex:-1,_index:0,line:n&&n.line||1,column:n&&n.column||1,offset:n&&n.offset||0};const a={},i=[];let l=[],u=[];const d={attempt:M(I),check:M(N),consume:R,enter:k,exit:L,interrupt:M(N,{interrupt:!0})},h={code:null,containerState:{},defineSkip:A,events:[],now:T,parser:e,previous:null,sliceSerialize:E,sliceStream:b,write:m};let v=t.tokenize.call(h,d);return t.resolveAll&&i.push(t),h;function m(U){return l=Sa(l,U),S(),l[l.length-1]!==null?[]:(D(t,0),h.events=x1(i,h.events,h),h.events)}function E(U,F){return jZ(b(U),F)}function b(U){return IZ(l,U)}function T(){const{_bufferIndex:U,_index:F,line:Q,column:Y,offset:te}=r;return{_bufferIndex:U,_index:F,line:Q,column:Y,offset:te}}function A(U){a[U.line]=U.column,P()}function S(){let U;for(;r._index<l.length;){const F=l[r._index];if(typeof F=="string")for(U=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===U&&r._bufferIndex<F.length;)w(F.charCodeAt(r._bufferIndex));else w(F)}}function w(U){v=v(U)}function R(U){lt(U)?(r.line++,r.column=1,r.offset+=U===-3?2:1,P()):U!==-1&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===l[r._index].length&&(r._bufferIndex=-1,r._index++)),h.previous=U}function k(U,F){const Q=F||{};return Q.type=U,Q.start=T(),h.events.push(["enter",Q,h]),u.push(Q),Q}function L(U){const F=u.pop();return F.end=T(),h.events.push(["exit",F,h]),F}function I(U,F){D(U,F.from)}function N(U,F){F.restore()}function M(U,F){return Q;function Q(Y,te,V){let J,X,se,C;return Array.isArray(Y)?ge(Y):"tokenize"in Y?ge([Y]):oe(Y);function oe(q){return ae;function ae(Te){const qe=Te!==null&&q[Te],Ae=Te!==null&&q.null,Oe=[...Array.isArray(qe)?qe:qe?[qe]:[],...Array.isArray(Ae)?Ae:Ae?[Ae]:[]];return ge(Oe)(Te)}}function ge(q){return J=q,X=0,q.length===0?V:j(q[X])}function j(q){return ae;function ae(Te){return C=B(),se=q,q.partial||(h.currentConstruct=q),q.name&&h.parser.constructs.disable.null.includes(q.name)?Pe():q.tokenize.call(F?Object.assign(Object.create(h),F):h,d,Ee,Pe)(Te)}}function Ee(q){return U(se,C),te}function Pe(q){return C.restore(),++X<J.length?j(J[X]):V}}}function D(U,F){U.resolveAll&&!i.includes(U)&&i.push(U),U.resolve&&ha(h.events,F,h.events.length-F,U.resolve(h.events.slice(F),h)),U.resolveTo&&(h.events=U.resolveTo(h.events,h))}function B(){const U=T(),F=h.previous,Q=h.currentConstruct,Y=h.events.length,te=Array.from(u);return{from:Y,restore:V};function V(){r=U,h.previous=F,h.currentConstruct=Q,h.events.length=Y,u=te,P()}}function P(){r.line in a&&r.column<2&&(r.column=a[r.line],r.offset+=a[r.line]-1)}}function IZ(e,t){const n=t.start._index,r=t.start._bufferIndex,a=t.end._index,i=t.end._bufferIndex;let l;if(n===a)l=[e[n].slice(r,i)];else{if(l=e.slice(n,a),r>-1){const u=l[0];typeof u=="string"?l[0]=u.slice(r):l.shift()}i>0&&l.push(e[a].slice(0,i))}return l}function jZ(e,t){let n=-1;const r=[];let a;for(;++n<e.length;){const i=e[n];let l;if(typeof i=="string")l=i;else switch(i){case-5:{l="\r";break}case-4:{l=`
|
|
120
|
-
`;break}case-3:{l=`\r
|
|
121
|
-
`;break}case-2:{l=t?" ":" ";break}case-1:{if(!t&&a)continue;l=" ";break}default:l=String.fromCharCode(i)}a=i===-2,r.push(l)}return r.join("")}function HZ(e){const r={constructs:w7([MZ,...(e||{}).extensions||[]]),content:a(Jq),defined:[],document:a(t$),flow:a(bZ),lazy:{},string:a(_Z),text:a(TZ)};return r;function a(i){return l;function l(u){return LZ(r,i,u)}}}function FZ(e){for(;!P7(e););return e}const O_=/[\0\t\n\r]/g;function UZ(){let e=1,t="",n=!0,r;return a;function a(i,l,u){const d=[];let h,v,m,E,b;for(i=t+(typeof i=="string"?i.toString():new TextDecoder(l||void 0).decode(i)),m=0,t="",n&&(i.charCodeAt(0)===65279&&m++,n=void 0);m<i.length;){if(O_.lastIndex=m,h=O_.exec(i),E=h&&h.index!==void 0?h.index:i.length,b=i.charCodeAt(E),!h){t=i.slice(m);break}if(b===10&&m===E&&r)d.push(-3),r=void 0;else switch(r&&(d.push(-5),r=void 0),m<E&&(d.push(i.slice(m,E)),e+=E-m),b){case 0:{d.push(65533),e++;break}case 9:{for(v=Math.ceil(e/4)*4,d.push(-2);e++<v;)d.push(-1);break}case 10:{d.push(-4),e=1;break}default:r=!0,e=1}m=E+1}return u&&(r&&d.push(-5),t&&d.push(t),d.push(null)),d}}const BZ=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function VZ(e){return e.replace(BZ,zZ)}function zZ(e,t,n){if(t)return t;if(n.charCodeAt(0)===35){const a=n.charCodeAt(1),i=a===120||a===88;return C7(n.slice(i?2:1),i?16:10)}return e6(n)||e}const j7={}.hasOwnProperty;function qZ(e,t,n){return typeof t!="string"&&(n=t,t=void 0),$Z(n)(FZ(HZ(n).document().write(UZ()(e,t,!0))))}function $Z(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:i(bt),autolinkProtocol:B,autolinkEmail:B,atxHeading:i(Ht),blockQuote:i(Ae),characterEscape:B,characterReference:B,codeFenced:i(Oe),codeFencedFenceInfo:l,codeFencedFenceMeta:l,codeIndented:i(Oe,l),codeText:i(et,l),codeTextData:B,data:B,codeFlowValue:B,definition:i(ct),definitionDestinationString:l,definitionLabelString:l,definitionTitleString:l,emphasis:i(it),hardBreakEscape:i(_t),hardBreakTrailing:i(_t),htmlFlow:i(st,l),htmlFlowData:B,htmlText:i(st,l),htmlTextData:B,image:i(vn),label:l,link:i(bt),listItem:i(ce),listItemValue:E,listOrdered:i(W,m),listUnordered:i(W),paragraph:i(pe),reference:j,referenceString:l,resourceDestinationString:l,resourceTitleString:l,setextHeading:i(Ht),strong:i(Ne),thematicBreak:i(je)},exit:{atxHeading:d(),atxHeadingSequence:I,autolink:d(),autolinkEmail:qe,autolinkProtocol:Te,blockQuote:d(),characterEscapeValue:P,characterReferenceMarkerHexadecimal:Pe,characterReferenceMarkerNumeric:Pe,characterReferenceValue:q,characterReference:ae,codeFenced:d(S),codeFencedFence:A,codeFencedFenceInfo:b,codeFencedFenceMeta:T,codeFlowValue:P,codeIndented:d(w),codeText:d(te),codeTextData:P,data:P,definition:d(),definitionDestinationString:L,definitionLabelString:R,definitionTitleString:k,emphasis:d(),hardBreakEscape:d(F),hardBreakTrailing:d(F),htmlFlow:d(Q),htmlFlowData:P,htmlText:d(Y),htmlTextData:P,image:d(J),label:se,labelText:X,lineEnding:U,link:d(V),listItem:d(),listOrdered:d(),listUnordered:d(),paragraph:d(),referenceString:Ee,resourceDestinationString:C,resourceTitleString:oe,resource:ge,setextHeading:d(D),setextHeadingLineSequence:M,setextHeadingText:N,strong:d(),thematicBreak:d()}};H7(t,(e||{}).mdastExtensions||[]);const n={};return r;function r(ie){let Se={type:"root",children:[]};const Ve={stack:[Se],tokenStack:[],config:t,enter:u,exit:h,buffer:l,resume:v,data:n},$e=[];let pt=-1;for(;++pt<ie.length;)if(ie[pt][1].type==="listOrdered"||ie[pt][1].type==="listUnordered")if(ie[pt][0]==="enter")$e.push(pt);else{const tn=$e.pop();pt=a(ie,tn,pt)}for(pt=-1;++pt<ie.length;){const tn=t[ie[pt][0]];j7.call(tn,ie[pt][1].type)&&tn[ie[pt][1].type].call(Object.assign({sliceSerialize:ie[pt][2].sliceSerialize},Ve),ie[pt][1])}if(Ve.tokenStack.length>0){const tn=Ve.tokenStack[Ve.tokenStack.length-1];(tn[1]||N_).call(Ve,void 0,tn[0])}for(Se.position={start:Zi(ie.length>0?ie[0][1].start:{line:1,column:1,offset:0}),end:Zi(ie.length>0?ie[ie.length-2][1].end:{line:1,column:1,offset:0})},pt=-1;++pt<t.transforms.length;)Se=t.transforms[pt](Se)||Se;return Se}function a(ie,Se,Ve){let $e=Se-1,pt=-1,tn=!1,jn,hn,Wn,$n;for(;++$e<=Ve;){const ln=ie[$e];switch(ln[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{ln[0]==="enter"?pt++:pt--,$n=void 0;break}case"lineEndingBlank":{ln[0]==="enter"&&(jn&&!$n&&!pt&&!Wn&&(Wn=$e),$n=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:$n=void 0}if(!pt&&ln[0]==="enter"&&ln[1].type==="listItemPrefix"||pt===-1&&ln[0]==="exit"&&(ln[1].type==="listUnordered"||ln[1].type==="listOrdered")){if(jn){let un=$e;for(hn=void 0;un--;){const Zn=ie[un];if(Zn[1].type==="lineEnding"||Zn[1].type==="lineEndingBlank"){if(Zn[0]==="exit")continue;hn&&(ie[hn][1].type="lineEndingBlank",tn=!0),Zn[1].type="lineEnding",hn=un}else if(!(Zn[1].type==="linePrefix"||Zn[1].type==="blockQuotePrefix"||Zn[1].type==="blockQuotePrefixWhitespace"||Zn[1].type==="blockQuoteMarker"||Zn[1].type==="listItemIndent"))break}Wn&&(!hn||Wn<hn)&&(jn._spread=!0),jn.end=Object.assign({},hn?ie[hn][1].start:ln[1].end),ie.splice(hn||$e,0,["exit",jn,ln[2]]),$e++,Ve++}if(ln[1].type==="listItemPrefix"){const un={type:"listItem",_spread:!1,start:Object.assign({},ln[1].start),end:void 0};jn=un,ie.splice($e,0,["enter",un,ln[2]]),$e++,Ve++,Wn=void 0,$n=!0}}}return ie[Se][1]._spread=tn,Ve}function i(ie,Se){return Ve;function Ve($e){u.call(this,ie($e),$e),Se&&Se.call(this,$e)}}function l(){this.stack.push({type:"fragment",children:[]})}function u(ie,Se,Ve){this.stack[this.stack.length-1].children.push(ie),this.stack.push(ie),this.tokenStack.push([Se,Ve||void 0]),ie.position={start:Zi(Se.start),end:void 0}}function d(ie){return Se;function Se(Ve){ie&&ie.call(this,Ve),h.call(this,Ve)}}function h(ie,Se){const Ve=this.stack.pop(),$e=this.tokenStack.pop();if($e)$e[0].type!==ie.type&&(Se?Se.call(this,ie,$e[0]):($e[1]||N_).call(this,ie,$e[0]));else throw new Error("Cannot close `"+ie.type+"` ("+ld({start:ie.start,end:ie.end})+"): it’s not open");Ve.position.end=Zi(ie.end)}function v(){return J4(this.stack.pop())}function m(){this.data.expectingFirstListItemValue=!0}function E(ie){if(this.data.expectingFirstListItemValue){const Se=this.stack[this.stack.length-2];Se.start=Number.parseInt(this.sliceSerialize(ie),10),this.data.expectingFirstListItemValue=void 0}}function b(){const ie=this.resume(),Se=this.stack[this.stack.length-1];Se.lang=ie}function T(){const ie=this.resume(),Se=this.stack[this.stack.length-1];Se.meta=ie}function A(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function S(){const ie=this.resume(),Se=this.stack[this.stack.length-1];Se.value=ie.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function w(){const ie=this.resume(),Se=this.stack[this.stack.length-1];Se.value=ie.replace(/(\r?\n|\r)$/g,"")}function R(ie){const Se=this.resume(),Ve=this.stack[this.stack.length-1];Ve.label=Se,Ve.identifier=Ga(this.sliceSerialize(ie)).toLowerCase()}function k(){const ie=this.resume(),Se=this.stack[this.stack.length-1];Se.title=ie}function L(){const ie=this.resume(),Se=this.stack[this.stack.length-1];Se.url=ie}function I(ie){const Se=this.stack[this.stack.length-1];if(!Se.depth){const Ve=this.sliceSerialize(ie).length;Se.depth=Ve}}function N(){this.data.setextHeadingSlurpLineEnding=!0}function M(ie){const Se=this.stack[this.stack.length-1];Se.depth=this.sliceSerialize(ie).codePointAt(0)===61?1:2}function D(){this.data.setextHeadingSlurpLineEnding=void 0}function B(ie){const Ve=this.stack[this.stack.length-1].children;let $e=Ve[Ve.length-1];(!$e||$e.type!=="text")&&($e=Me(),$e.position={start:Zi(ie.start),end:void 0},Ve.push($e)),this.stack.push($e)}function P(ie){const Se=this.stack.pop();Se.value+=this.sliceSerialize(ie),Se.position.end=Zi(ie.end)}function U(ie){const Se=this.stack[this.stack.length-1];if(this.data.atHardBreak){const Ve=Se.children[Se.children.length-1];Ve.position.end=Zi(ie.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(Se.type)&&(B.call(this,ie),P.call(this,ie))}function F(){this.data.atHardBreak=!0}function Q(){const ie=this.resume(),Se=this.stack[this.stack.length-1];Se.value=ie}function Y(){const ie=this.resume(),Se=this.stack[this.stack.length-1];Se.value=ie}function te(){const ie=this.resume(),Se=this.stack[this.stack.length-1];Se.value=ie}function V(){const ie=this.stack[this.stack.length-1];if(this.data.inReference){const Se=this.data.referenceType||"shortcut";ie.type+="Reference",ie.referenceType=Se,delete ie.url,delete ie.title}else delete ie.identifier,delete ie.label;this.data.referenceType=void 0}function J(){const ie=this.stack[this.stack.length-1];if(this.data.inReference){const Se=this.data.referenceType||"shortcut";ie.type+="Reference",ie.referenceType=Se,delete ie.url,delete ie.title}else delete ie.identifier,delete ie.label;this.data.referenceType=void 0}function X(ie){const Se=this.sliceSerialize(ie),Ve=this.stack[this.stack.length-2];Ve.label=VZ(Se),Ve.identifier=Ga(Se).toLowerCase()}function se(){const ie=this.stack[this.stack.length-1],Se=this.resume(),Ve=this.stack[this.stack.length-1];if(this.data.inReference=!0,Ve.type==="link"){const $e=ie.children;Ve.children=$e}else Ve.alt=Se}function C(){const ie=this.resume(),Se=this.stack[this.stack.length-1];Se.url=ie}function oe(){const ie=this.resume(),Se=this.stack[this.stack.length-1];Se.title=ie}function ge(){this.data.inReference=void 0}function j(){this.data.referenceType="collapsed"}function Ee(ie){const Se=this.resume(),Ve=this.stack[this.stack.length-1];Ve.label=Se,Ve.identifier=Ga(this.sliceSerialize(ie)).toLowerCase(),this.data.referenceType="full"}function Pe(ie){this.data.characterReferenceType=ie.type}function q(ie){const Se=this.sliceSerialize(ie),Ve=this.data.characterReferenceType;let $e;Ve?($e=C7(Se,Ve==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):$e=e6(Se);const pt=this.stack[this.stack.length-1];pt.value+=$e}function ae(ie){const Se=this.stack.pop();Se.position.end=Zi(ie.end)}function Te(ie){P.call(this,ie);const Se=this.stack[this.stack.length-1];Se.url=this.sliceSerialize(ie)}function qe(ie){P.call(this,ie);const Se=this.stack[this.stack.length-1];Se.url="mailto:"+this.sliceSerialize(ie)}function Ae(){return{type:"blockquote",children:[]}}function Oe(){return{type:"code",lang:null,meta:null,value:""}}function et(){return{type:"inlineCode",value:""}}function ct(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function it(){return{type:"emphasis",children:[]}}function Ht(){return{type:"heading",depth:0,children:[]}}function _t(){return{type:"break"}}function st(){return{type:"html",value:""}}function vn(){return{type:"image",title:null,url:"",alt:null}}function bt(){return{type:"link",title:null,url:"",children:[]}}function W(ie){return{type:"list",ordered:ie.type==="listOrdered",start:null,spread:ie._spread,children:[]}}function ce(ie){return{type:"listItem",spread:ie._spread,checked:null,children:[]}}function pe(){return{type:"paragraph",children:[]}}function Ne(){return{type:"strong",children:[]}}function Me(){return{type:"text",value:""}}function je(){return{type:"thematicBreak"}}}function Zi(e){return{line:e.line,column:e.column,offset:e.offset}}function H7(e,t){let n=-1;for(;++n<t.length;){const r=t[n];Array.isArray(r)?H7(e,r):ZZ(e,r)}}function ZZ(e,t){let n;for(n in t)if(j7.call(t,n))switch(n){case"canContainEols":{const r=t[n];r&&e[n].push(...r);break}case"transforms":{const r=t[n];r&&e[n].push(...r);break}case"enter":case"exit":{const r=t[n];r&&Object.assign(e[n],r);break}}}function N_(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+ld({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+ld({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+ld({start:t.start,end:t.end})+") is still open")}function QZ(e){const t=this;t.parser=n;function n(r){return qZ(r,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}function YZ(e,t){const n={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,n),e.applyData(t,n)}function GZ(e,t){const n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:`
|
|
122
|
-
`}]}function KZ(e,t){const n=t.value?t.value+`
|
|
123
|
-
`:"",r={};t.lang&&(r.className=["language-"+t.lang]);let a={type:"element",tagName:"code",properties:r,children:[{type:"text",value:n}]};return t.meta&&(a.data={meta:t.meta}),e.patch(t,a),a=e.applyData(t,a),a={type:"element",tagName:"pre",properties:{},children:[a]},e.patch(t,a),a}function XZ(e,t){const n={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function WZ(e,t){const n={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function JZ(e,t){const n=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",r=String(t.identifier).toUpperCase(),a=Uu(r.toLowerCase()),i=e.footnoteOrder.indexOf(r);let l,u=e.footnoteCounts.get(r);u===void 0?(u=0,e.footnoteOrder.push(r),l=e.footnoteOrder.length):l=i+1,u+=1,e.footnoteCounts.set(r,u);const d={type:"element",tagName:"a",properties:{href:"#"+n+"fn-"+a,id:n+"fnref-"+a+(u>1?"-"+u:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(l)}]};e.patch(t,d);const h={type:"element",tagName:"sup",properties:{},children:[d]};return e.patch(t,h),e.applyData(t,h)}function eQ(e,t){const n={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function tQ(e,t){if(e.options.allowDangerousHtml){const n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}}function F7(e,t){const n=t.referenceType;let r="]";if(n==="collapsed"?r+="[]":n==="full"&&(r+="["+(t.label||t.identifier)+"]"),t.type==="imageReference")return[{type:"text",value:"!["+t.alt+r}];const a=e.all(t),i=a[0];i&&i.type==="text"?i.value="["+i.value:a.unshift({type:"text",value:"["});const l=a[a.length-1];return l&&l.type==="text"?l.value+=r:a.push({type:"text",value:r}),a}function nQ(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return F7(e,t);const a={src:Uu(r.url||""),alt:t.alt};r.title!==null&&r.title!==void 0&&(a.title=r.title);const i={type:"element",tagName:"img",properties:a,children:[]};return e.patch(t,i),e.applyData(t,i)}function rQ(e,t){const n={src:Uu(t.url)};t.alt!==null&&t.alt!==void 0&&(n.alt=t.alt),t.title!==null&&t.title!==void 0&&(n.title=t.title);const r={type:"element",tagName:"img",properties:n,children:[]};return e.patch(t,r),e.applyData(t,r)}function aQ(e,t){const n={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,n);const r={type:"element",tagName:"code",properties:{},children:[n]};return e.patch(t,r),e.applyData(t,r)}function sQ(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return F7(e,t);const a={href:Uu(r.url||"")};r.title!==null&&r.title!==void 0&&(a.title=r.title);const i={type:"element",tagName:"a",properties:a,children:e.all(t)};return e.patch(t,i),e.applyData(t,i)}function iQ(e,t){const n={href:Uu(t.url)};t.title!==null&&t.title!==void 0&&(n.title=t.title);const r={type:"element",tagName:"a",properties:n,children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function oQ(e,t,n){const r=e.all(t),a=n?lQ(n):U7(t),i={},l=[];if(typeof t.checked=="boolean"){const v=r[0];let m;v&&v.type==="element"&&v.tagName==="p"?m=v:(m={type:"element",tagName:"p",properties:{},children:[]},r.unshift(m)),m.children.length>0&&m.children.unshift({type:"text",value:" "}),m.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),i.className=["task-list-item"]}let u=-1;for(;++u<r.length;){const v=r[u];(a||u!==0||v.type!=="element"||v.tagName!=="p")&&l.push({type:"text",value:`
|
|
124
|
-
`}),v.type==="element"&&v.tagName==="p"&&!a?l.push(...v.children):l.push(v)}const d=r[r.length-1];d&&(a||d.type!=="element"||d.tagName!=="p")&&l.push({type:"text",value:`
|
|
125
|
-
`});const h={type:"element",tagName:"li",properties:i,children:l};return e.patch(t,h),e.applyData(t,h)}function lQ(e){let t=!1;if(e.type==="list"){t=e.spread||!1;const n=e.children;let r=-1;for(;!t&&++r<n.length;)t=U7(n[r])}return t}function U7(e){const t=e.spread;return t??e.children.length>1}function uQ(e,t){const n={},r=e.all(t);let a=-1;for(typeof t.start=="number"&&t.start!==1&&(n.start=t.start);++a<r.length;){const l=r[a];if(l.type==="element"&&l.tagName==="li"&&l.properties&&Array.isArray(l.properties.className)&&l.properties.className.includes("task-list-item")){n.className=["contains-task-list"];break}}const i={type:"element",tagName:t.ordered?"ol":"ul",properties:n,children:e.wrap(r,!0)};return e.patch(t,i),e.applyData(t,i)}function cQ(e,t){const n={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function dQ(e,t){const n={type:"root",children:e.wrap(e.all(t))};return e.patch(t,n),e.applyData(t,n)}function fQ(e,t){const n={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function hQ(e,t){const n=e.all(t),r=n.shift(),a=[];if(r){const l={type:"element",tagName:"thead",properties:{},children:e.wrap([r],!0)};e.patch(t.children[0],l),a.push(l)}if(n.length>0){const l={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},u=Ds(t.children[1]),d=b1(t.children[t.children.length-1]);u&&d&&(l.position={start:u,end:d}),a.push(l)}const i={type:"element",tagName:"table",properties:{},children:e.wrap(a,!0)};return e.patch(t,i),e.applyData(t,i)}function mQ(e,t,n){const r=n?n.children:void 0,i=(r?r.indexOf(t):1)===0?"th":"td",l=n&&n.type==="table"?n.align:void 0,u=l?l.length:t.children.length;let d=-1;const h=[];for(;++d<u;){const m=t.children[d],E={},b=l?l[d]:void 0;b&&(E.align=b);let T={type:"element",tagName:i,properties:E,children:[]};m&&(T.children=e.all(m),e.patch(m,T),T=e.applyData(m,T)),h.push(T)}const v={type:"element",tagName:"tr",properties:{},children:e.wrap(h,!0)};return e.patch(t,v),e.applyData(t,v)}function pQ(e,t){const n={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}const P_=9,k_=32;function gQ(e){const t=String(e),n=/\r?\n|\r/g;let r=n.exec(t),a=0;const i=[];for(;r;)i.push(D_(t.slice(a,r.index),a>0,!0),r[0]),a=r.index+r[0].length,r=n.exec(t);return i.push(D_(t.slice(a),a>0,!1)),i.join("")}function D_(e,t,n){let r=0,a=e.length;if(t){let i=e.codePointAt(r);for(;i===P_||i===k_;)r++,i=e.codePointAt(r)}if(n){let i=e.codePointAt(a-1);for(;i===P_||i===k_;)a--,i=e.codePointAt(a-1)}return a>r?e.slice(r,a):""}function vQ(e,t){const n={type:"text",value:gQ(String(t.value))};return e.patch(t,n),e.applyData(t,n)}function yQ(e,t){const n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)}const bQ={blockquote:YZ,break:GZ,code:KZ,delete:XZ,emphasis:WZ,footnoteReference:JZ,heading:eQ,html:tQ,imageReference:nQ,image:rQ,inlineCode:aQ,linkReference:sQ,link:iQ,listItem:oQ,list:uQ,paragraph:cQ,root:dQ,strong:fQ,table:hQ,tableCell:pQ,tableRow:mQ,text:vQ,thematicBreak:yQ,toml:Df,yaml:Df,definition:Df,footnoteDefinition:Df};function Df(){}const B7=-1,_1=0,cd=1,ph=2,n6=3,r6=4,a6=5,s6=6,V7=7,z7=8,M_=typeof self=="object"?self:globalThis,EQ=(e,t)=>{const n=(a,i)=>(e.set(i,a),a),r=a=>{if(e.has(a))return e.get(a);const[i,l]=t[a];switch(i){case _1:case B7:return n(l,a);case cd:{const u=n([],a);for(const d of l)u.push(r(d));return u}case ph:{const u=n({},a);for(const[d,h]of l)u[r(d)]=r(h);return u}case n6:return n(new Date(l),a);case r6:{const{source:u,flags:d}=l;return n(new RegExp(u,d),a)}case a6:{const u=n(new Map,a);for(const[d,h]of l)u.set(r(d),r(h));return u}case s6:{const u=n(new Set,a);for(const d of l)u.add(r(d));return u}case V7:{const{name:u,message:d}=l;return n(new M_[u](d),a)}case z7:return n(BigInt(l),a);case"BigInt":return n(Object(BigInt(l)),a);case"ArrayBuffer":return n(new Uint8Array(l).buffer,l);case"DataView":{const{buffer:u}=new Uint8Array(l);return n(new DataView(u),l)}}return n(new M_[i](l),a)};return r},L_=e=>EQ(new Map,e)(0),Wl="",{toString:xQ}={},{keys:_Q}=Object,Yc=e=>{const t=typeof e;if(t!=="object"||!e)return[_1,t];const n=xQ.call(e).slice(8,-1);switch(n){case"Array":return[cd,Wl];case"Object":return[ph,Wl];case"Date":return[n6,Wl];case"RegExp":return[r6,Wl];case"Map":return[a6,Wl];case"Set":return[s6,Wl];case"DataView":return[cd,n]}return n.includes("Array")?[cd,n]:n.includes("Error")?[V7,n]:[ph,n]},Mf=([e,t])=>e===_1&&(t==="function"||t==="symbol"),TQ=(e,t,n,r)=>{const a=(l,u)=>{const d=r.push(l)-1;return n.set(u,d),d},i=l=>{if(n.has(l))return n.get(l);let[u,d]=Yc(l);switch(u){case _1:{let v=l;switch(d){case"bigint":u=z7,v=l.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+d);v=null;break;case"undefined":return a([B7],l)}return a([u,v],l)}case cd:{if(d){let E=l;return d==="DataView"?E=new Uint8Array(l.buffer):d==="ArrayBuffer"&&(E=new Uint8Array(l)),a([d,[...E]],l)}const v=[],m=a([u,v],l);for(const E of l)v.push(i(E));return m}case ph:{if(d)switch(d){case"BigInt":return a([d,l.toString()],l);case"Boolean":case"Number":case"String":return a([d,l.valueOf()],l)}if(t&&"toJSON"in l)return i(l.toJSON());const v=[],m=a([u,v],l);for(const E of _Q(l))(e||!Mf(Yc(l[E])))&&v.push([i(E),i(l[E])]);return m}case n6:return a([u,l.toISOString()],l);case r6:{const{source:v,flags:m}=l;return a([u,{source:v,flags:m}],l)}case a6:{const v=[],m=a([u,v],l);for(const[E,b]of l)(e||!(Mf(Yc(E))||Mf(Yc(b))))&&v.push([i(E),i(b)]);return m}case s6:{const v=[],m=a([u,v],l);for(const E of l)(e||!Mf(Yc(E)))&&v.push(i(E));return m}}const{message:h}=l;return a([u,{name:d,message:h}],l)};return i},I_=(e,{json:t,lossy:n}={})=>{const r=[];return TQ(!(t||n),!!t,new Map,r)(e),r},xu=typeof structuredClone=="function"?(e,t)=>t&&("json"in t||"lossy"in t)?L_(I_(e,t)):structuredClone(e):(e,t)=>L_(I_(e,t));function AQ(e,t){const n=[{type:"text",value:"↩"}];return t>1&&n.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),n}function SQ(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}function wQ(e){const t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",n=e.options.footnoteBackContent||AQ,r=e.options.footnoteBackLabel||SQ,a=e.options.footnoteLabel||"Footnotes",i=e.options.footnoteLabelTagName||"h2",l=e.options.footnoteLabelProperties||{className:["sr-only"]},u=[];let d=-1;for(;++d<e.footnoteOrder.length;){const h=e.footnoteById.get(e.footnoteOrder[d]);if(!h)continue;const v=e.all(h),m=String(h.identifier).toUpperCase(),E=Uu(m.toLowerCase());let b=0;const T=[],A=e.footnoteCounts.get(m);for(;A!==void 0&&++b<=A;){T.length>0&&T.push({type:"text",value:" "});let R=typeof n=="string"?n:n(d,b);typeof R=="string"&&(R={type:"text",value:R}),T.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+E+(b>1?"-"+b:""),dataFootnoteBackref:"",ariaLabel:typeof r=="string"?r:r(d,b),className:["data-footnote-backref"]},children:Array.isArray(R)?R:[R]})}const S=v[v.length-1];if(S&&S.type==="element"&&S.tagName==="p"){const R=S.children[S.children.length-1];R&&R.type==="text"?R.value+=" ":S.children.push({type:"text",value:" "}),S.children.push(...T)}else v.push(...T);const w={type:"element",tagName:"li",properties:{id:t+"fn-"+E},children:e.wrap(v,!0)};e.patch(h,w),u.push(w)}if(u.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:i,properties:{...xu(l),id:"footnote-label"},children:[{type:"text",value:a}]},{type:"text",value:`
|
|
126
|
-
`},{type:"element",tagName:"ol",properties:{},children:e.wrap(u,!0)},{type:"text",value:`
|
|
127
|
-
`}]}}const T1=function(e){if(e==null)return NQ;if(typeof e=="function")return A1(e);if(typeof e=="object")return Array.isArray(e)?CQ(e):RQ(e);if(typeof e=="string")return OQ(e);throw new Error("Expected function, string, or object as test")};function CQ(e){const t=[];let n=-1;for(;++n<e.length;)t[n]=T1(e[n]);return A1(r);function r(...a){let i=-1;for(;++i<t.length;)if(t[i].apply(this,a))return!0;return!1}}function RQ(e){const t=e;return A1(n);function n(r){const a=r;let i;for(i in e)if(a[i]!==t[i])return!1;return!0}}function OQ(e){return A1(t);function t(n){return n&&n.type===e}}function A1(e){return t;function t(n,r,a){return!!(PQ(n)&&e.call(this,n,typeof r=="number"?r:void 0,a||void 0))}}function NQ(){return!0}function PQ(e){return e!==null&&typeof e=="object"&&"type"in e}const q7=[],kQ=!0,Iv=!1,DQ="skip";function $7(e,t,n,r){let a;typeof t=="function"&&typeof n!="function"?(r=n,n=t):a=t;const i=T1(a),l=r?-1:1;u(e,void 0,[])();function u(d,h,v){const m=d&&typeof d=="object"?d:{};if(typeof m.type=="string"){const b=typeof m.tagName=="string"?m.tagName:typeof m.name=="string"?m.name:void 0;Object.defineProperty(E,"name",{value:"node ("+(d.type+(b?"<"+b+">":""))+")"})}return E;function E(){let b=q7,T,A,S;if((!t||i(d,h,v[v.length-1]||void 0))&&(b=MQ(n(d,v)),b[0]===Iv))return b;if("children"in d&&d.children){const w=d;if(w.children&&b[0]!==DQ)for(A=(r?w.children.length:-1)+l,S=v.concat(w);A>-1&&A<w.children.length;){const R=w.children[A];if(T=u(R,A,S)(),T[0]===Iv)return T;A=typeof T[1]=="number"?T[1]:A+l}}return b}}}function MQ(e){return Array.isArray(e)?e:typeof e=="number"?[kQ,e]:e==null?q7:[e]}function S1(e,t,n,r){let a,i,l;typeof t=="function"&&typeof n!="function"?(i=void 0,l=t,a=n):(i=t,l=n,a=r),$7(e,i,u,a);function u(d,h){const v=h[h.length-1],m=v?v.children.indexOf(d):void 0;return l(d,m,v)}}const jv={}.hasOwnProperty,LQ={};function IQ(e,t){const n=t||LQ,r=new Map,a=new Map,i=new Map,l={...bQ,...n.handlers},u={all:h,applyData:HQ,definitionById:r,footnoteById:a,footnoteCounts:i,footnoteOrder:[],handlers:l,one:d,options:n,patch:jQ,wrap:UQ};return S1(e,function(v){if(v.type==="definition"||v.type==="footnoteDefinition"){const m=v.type==="definition"?r:a,E=String(v.identifier).toUpperCase();m.has(E)||m.set(E,v)}}),u;function d(v,m){const E=v.type,b=u.handlers[E];if(jv.call(u.handlers,E)&&b)return b(u,v,m);if(u.options.passThrough&&u.options.passThrough.includes(E)){if("children"in v){const{children:A,...S}=v,w=xu(S);return w.children=u.all(v),w}return xu(v)}return(u.options.unknownHandler||FQ)(u,v,m)}function h(v){const m=[];if("children"in v){const E=v.children;let b=-1;for(;++b<E.length;){const T=u.one(E[b],v);if(T){if(b&&E[b-1].type==="break"&&(!Array.isArray(T)&&T.type==="text"&&(T.value=j_(T.value)),!Array.isArray(T)&&T.type==="element")){const A=T.children[0];A&&A.type==="text"&&(A.value=j_(A.value))}Array.isArray(T)?m.push(...T):m.push(T)}}}return m}}function jQ(e,t){e.position&&(t.position=Sq(e))}function HQ(e,t){let n=t;if(e&&e.data){const r=e.data.hName,a=e.data.hChildren,i=e.data.hProperties;if(typeof r=="string")if(n.type==="element")n.tagName=r;else{const l="children"in n?n.children:[n];n={type:"element",tagName:r,properties:{},children:l}}n.type==="element"&&i&&Object.assign(n.properties,xu(i)),"children"in n&&n.children&&a!==null&&a!==void 0&&(n.children=a)}return n}function FQ(e,t){const n=t.data||{},r="value"in t&&!(jv.call(n,"hProperties")||jv.call(n,"hChildren"))?{type:"text",value:t.value}:{type:"element",tagName:"div",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function UQ(e,t){const n=[];let r=-1;for(t&&n.push({type:"text",value:`
|
|
128
|
-
`});++r<e.length;)r&&n.push({type:"text",value:`
|
|
129
|
-
`}),n.push(e[r]);return t&&e.length>0&&n.push({type:"text",value:`
|
|
130
|
-
`}),n}function j_(e){let t=0,n=e.charCodeAt(t);for(;n===9||n===32;)t++,n=e.charCodeAt(t);return e.slice(t)}function H_(e,t){const n=IQ(e,t),r=n.one(e,void 0),a=wQ(n),i=Array.isArray(r)?{type:"root",children:r}:r||{type:"root",children:[]};return a&&i.children.push({type:"text",value:`
|
|
131
|
-
`},a),i}function BQ(e,t){return e&&"run"in e?async function(n,r){const a=H_(n,{file:r,...t});await e.run(a,r)}:function(n,r){return H_(n,{file:r,...e||t})}}function F_(e){if(e)throw e}var I2,U_;function VQ(){if(U_)return I2;U_=1;var e=Object.prototype.hasOwnProperty,t=Object.prototype.toString,n=Object.defineProperty,r=Object.getOwnPropertyDescriptor,a=function(h){return typeof Array.isArray=="function"?Array.isArray(h):t.call(h)==="[object Array]"},i=function(h){if(!h||t.call(h)!=="[object Object]")return!1;var v=e.call(h,"constructor"),m=h.constructor&&h.constructor.prototype&&e.call(h.constructor.prototype,"isPrototypeOf");if(h.constructor&&!v&&!m)return!1;var E;for(E in h);return typeof E>"u"||e.call(h,E)},l=function(h,v){n&&v.name==="__proto__"?n(h,v.name,{enumerable:!0,configurable:!0,value:v.newValue,writable:!0}):h[v.name]=v.newValue},u=function(h,v){if(v==="__proto__")if(e.call(h,v)){if(r)return r(h,v).value}else return;return h[v]};return I2=function d(){var h,v,m,E,b,T,A=arguments[0],S=1,w=arguments.length,R=!1;for(typeof A=="boolean"&&(R=A,A=arguments[1]||{},S=2),(A==null||typeof A!="object"&&typeof A!="function")&&(A={});S<w;++S)if(h=arguments[S],h!=null)for(v in h)m=u(A,v),E=u(h,v),A!==E&&(R&&E&&(i(E)||(b=a(E)))?(b?(b=!1,T=m&&a(m)?m:[]):T=m&&i(m)?m:{},l(A,{name:v,newValue:d(R,T,E)})):typeof E<"u"&&l(A,{name:v,newValue:E}));return A},I2}var zQ=VQ();const j2=Cu(zQ);function Hv(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function qQ(){const e=[],t={run:n,use:r};return t;function n(...a){let i=-1;const l=a.pop();if(typeof l!="function")throw new TypeError("Expected function as last argument, not "+l);u(null,...a);function u(d,...h){const v=e[++i];let m=-1;if(d){l(d);return}for(;++m<a.length;)(h[m]===null||h[m]===void 0)&&(h[m]=a[m]);a=h,v?$Q(v,u)(...h):l(null,...h)}}function r(a){if(typeof a!="function")throw new TypeError("Expected `middelware` to be a function, not "+a);return e.push(a),t}}function $Q(e,t){let n;return r;function r(...l){const u=e.length>l.length;let d;u&&l.push(a);try{d=e.apply(this,l)}catch(h){const v=h;if(u&&n)throw v;return a(v)}u||(d&&d.then&&typeof d.then=="function"?d.then(i,a):d instanceof Error?a(d):i(d))}function a(l,...u){n||(n=!0,t(l,...u))}function i(l){a(null,l)}}const ps={basename:ZQ,dirname:QQ,extname:YQ,join:GQ,sep:"/"};function ZQ(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');t0(e);let n=0,r=-1,a=e.length,i;if(t===void 0||t.length===0||t.length>e.length){for(;a--;)if(e.codePointAt(a)===47){if(i){n=a+1;break}}else r<0&&(i=!0,r=a+1);return r<0?"":e.slice(n,r)}if(t===e)return"";let l=-1,u=t.length-1;for(;a--;)if(e.codePointAt(a)===47){if(i){n=a+1;break}}else l<0&&(i=!0,l=a+1),u>-1&&(e.codePointAt(a)===t.codePointAt(u--)?u<0&&(r=a):(u=-1,r=l));return n===r?r=l:r<0&&(r=e.length),e.slice(n,r)}function QQ(e){if(t0(e),e.length===0)return".";let t=-1,n=e.length,r;for(;--n;)if(e.codePointAt(n)===47){if(r){t=n;break}}else r||(r=!0);return t<0?e.codePointAt(0)===47?"/":".":t===1&&e.codePointAt(0)===47?"//":e.slice(0,t)}function YQ(e){t0(e);let t=e.length,n=-1,r=0,a=-1,i=0,l;for(;t--;){const u=e.codePointAt(t);if(u===47){if(l){r=t+1;break}continue}n<0&&(l=!0,n=t+1),u===46?a<0?a=t:i!==1&&(i=1):a>-1&&(i=-1)}return a<0||n<0||i===0||i===1&&a===n-1&&a===r+1?"":e.slice(a,n)}function GQ(...e){let t=-1,n;for(;++t<e.length;)t0(e[t]),e[t]&&(n=n===void 0?e[t]:n+"/"+e[t]);return n===void 0?".":KQ(n)}function KQ(e){t0(e);const t=e.codePointAt(0)===47;let n=XQ(e,!t);return n.length===0&&!t&&(n="."),n.length>0&&e.codePointAt(e.length-1)===47&&(n+="/"),t?"/"+n:n}function XQ(e,t){let n="",r=0,a=-1,i=0,l=-1,u,d;for(;++l<=e.length;){if(l<e.length)u=e.codePointAt(l);else{if(u===47)break;u=47}if(u===47){if(!(a===l-1||i===1))if(a!==l-1&&i===2){if(n.length<2||r!==2||n.codePointAt(n.length-1)!==46||n.codePointAt(n.length-2)!==46){if(n.length>2){if(d=n.lastIndexOf("/"),d!==n.length-1){d<0?(n="",r=0):(n=n.slice(0,d),r=n.length-1-n.lastIndexOf("/")),a=l,i=0;continue}}else if(n.length>0){n="",r=0,a=l,i=0;continue}}t&&(n=n.length>0?n+"/..":"..",r=2)}else n.length>0?n+="/"+e.slice(a+1,l):n=e.slice(a+1,l),r=l-a-1;a=l,i=0}else u===46&&i>-1?i++:i=-1}return n}function t0(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const WQ={cwd:JQ};function JQ(){return"/"}function Fv(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function eY(e){if(typeof e=="string")e=new URL(e);else if(!Fv(e)){const t=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if(e.protocol!=="file:"){const t=new TypeError("The URL must be of scheme file");throw t.code="ERR_INVALID_URL_SCHEME",t}return tY(e)}function tY(e){if(e.hostname!==""){const r=new TypeError('File URL host must be "localhost" or empty on darwin');throw r.code="ERR_INVALID_FILE_URL_HOST",r}const t=e.pathname;let n=-1;for(;++n<t.length;)if(t.codePointAt(n)===37&&t.codePointAt(n+1)===50){const r=t.codePointAt(n+2);if(r===70||r===102){const a=new TypeError("File URL path must not include encoded / characters");throw a.code="ERR_INVALID_FILE_URL_PATH",a}}return decodeURIComponent(t)}const H2=["history","path","basename","stem","extname","dirname"];class Z7{constructor(t){let n;t?Fv(t)?n={path:t}:typeof t=="string"||nY(t)?n={value:t}:n=t:n={},this.cwd="cwd"in n?"":WQ.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let r=-1;for(;++r<H2.length;){const i=H2[r];i in n&&n[i]!==void 0&&n[i]!==null&&(this[i]=i==="history"?[...n[i]]:n[i])}let a;for(a in n)H2.includes(a)||(this[a]=n[a])}get basename(){return typeof this.path=="string"?ps.basename(this.path):void 0}set basename(t){U2(t,"basename"),F2(t,"basename"),this.path=ps.join(this.dirname||"",t)}get dirname(){return typeof this.path=="string"?ps.dirname(this.path):void 0}set dirname(t){B_(this.basename,"dirname"),this.path=ps.join(t||"",this.basename)}get extname(){return typeof this.path=="string"?ps.extname(this.path):void 0}set extname(t){if(F2(t,"extname"),B_(this.dirname,"extname"),t){if(t.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(t.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=ps.join(this.dirname,this.stem+(t||""))}get path(){return this.history[this.history.length-1]}set path(t){Fv(t)&&(t=eY(t)),U2(t,"path"),this.path!==t&&this.history.push(t)}get stem(){return typeof this.path=="string"?ps.basename(this.path,this.extname):void 0}set stem(t){U2(t,"stem"),F2(t,"stem"),this.path=ps.join(this.dirname||"",t+(this.extname||""))}fail(t,n,r){const a=this.message(t,n,r);throw a.fatal=!0,a}info(t,n,r){const a=this.message(t,n,r);return a.fatal=void 0,a}message(t,n,r){const a=new wr(t,n,r);return this.path&&(a.name=this.path+":"+a.name,a.file=this.path),a.fatal=!1,this.messages.push(a),a}toString(t){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(t||void 0).decode(this.value)}}function F2(e,t){if(e&&e.includes(ps.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+ps.sep+"`")}function U2(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function B_(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}function nY(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const rY=function(e){const r=this.constructor.prototype,a=r[e],i=function(){return a.apply(i,arguments)};return Object.setPrototypeOf(i,r),i},aY={}.hasOwnProperty;class i6 extends rY{constructor(){super("copy"),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=qQ()}copy(){const t=new i6;let n=-1;for(;++n<this.attachers.length;){const r=this.attachers[n];t.use(...r)}return t.data(j2(!0,{},this.namespace)),t}data(t,n){return typeof t=="string"?arguments.length===2?(z2("data",this.frozen),this.namespace[t]=n,this):aY.call(this.namespace,t)&&this.namespace[t]||void 0:t?(z2("data",this.frozen),this.namespace=t,this):this.namespace}freeze(){if(this.frozen)return this;const t=this;for(;++this.freezeIndex<this.attachers.length;){const[n,...r]=this.attachers[this.freezeIndex];if(r[0]===!1)continue;r[0]===!0&&(r[0]=void 0);const a=n.call(t,...r);typeof a=="function"&&this.transformers.use(a)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(t){this.freeze();const n=Lf(t),r=this.parser||this.Parser;return B2("parse",r),r(String(n),n)}process(t,n){const r=this;return this.freeze(),B2("process",this.parser||this.Parser),V2("process",this.compiler||this.Compiler),n?a(void 0,n):new Promise(a);function a(i,l){const u=Lf(t),d=r.parse(u);r.run(d,u,function(v,m,E){if(v||!m||!E)return h(v);const b=m,T=r.stringify(b,E);oY(T)?E.value=T:E.result=T,h(v,E)});function h(v,m){v||!m?l(v):i?i(m):n(void 0,m)}}}processSync(t){let n=!1,r;return this.freeze(),B2("processSync",this.parser||this.Parser),V2("processSync",this.compiler||this.Compiler),this.process(t,a),z_("processSync","process",n),r;function a(i,l){n=!0,F_(i),r=l}}run(t,n,r){V_(t),this.freeze();const a=this.transformers;return!r&&typeof n=="function"&&(r=n,n=void 0),r?i(void 0,r):new Promise(i);function i(l,u){const d=Lf(n);a.run(t,d,h);function h(v,m,E){const b=m||t;v?u(v):l?l(b):r(void 0,b,E)}}}runSync(t,n){let r=!1,a;return this.run(t,n,i),z_("runSync","run",r),a;function i(l,u){F_(l),a=u,r=!0}}stringify(t,n){this.freeze();const r=Lf(n),a=this.compiler||this.Compiler;return V2("stringify",a),V_(t),a(t,r)}use(t,...n){const r=this.attachers,a=this.namespace;if(z2("use",this.frozen),t!=null)if(typeof t=="function")d(t,n);else if(typeof t=="object")Array.isArray(t)?u(t):l(t);else throw new TypeError("Expected usable value, not `"+t+"`");return this;function i(h){if(typeof h=="function")d(h,[]);else if(typeof h=="object")if(Array.isArray(h)){const[v,...m]=h;d(v,m)}else l(h);else throw new TypeError("Expected usable value, not `"+h+"`")}function l(h){if(!("plugins"in h)&&!("settings"in h))throw new Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");u(h.plugins),h.settings&&(a.settings=j2(!0,a.settings,h.settings))}function u(h){let v=-1;if(h!=null)if(Array.isArray(h))for(;++v<h.length;){const m=h[v];i(m)}else throw new TypeError("Expected a list of plugins, not `"+h+"`")}function d(h,v){let m=-1,E=-1;for(;++m<r.length;)if(r[m][0]===h){E=m;break}if(E===-1)r.push([h,...v]);else if(v.length>0){let[b,...T]=v;const A=r[E][1];Hv(A)&&Hv(b)&&(b=j2(!0,A,b)),r[E]=[h,b,...T]}}}}const sY=new i6().freeze();function B2(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function V2(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function z2(e,t){if(t)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function V_(e){if(!Hv(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function z_(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function Lf(e){return iY(e)?e:new Z7(e)}function iY(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function oY(e){return typeof e=="string"||lY(e)}function lY(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const uY="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",q_=[],$_={allowDangerousHtml:!0},cY=/^(https?|ircs?|mailto|xmpp)$/i,dY=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"className",id:"remove-classname"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function Q7(e){const t=fY(e),n=hY(e);return mY(t.runSync(t.parse(n),n),e)}function fY(e){const t=e.rehypePlugins||q_,n=e.remarkPlugins||q_,r=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...$_}:$_;return sY().use(QZ).use(n).use(BQ,r).use(t)}function hY(e){const t=e.children||"",n=new Z7;return typeof t=="string"&&(n.value=t),n}function mY(e,t){const n=t.allowedElements,r=t.allowElement,a=t.components,i=t.disallowedElements,l=t.skipHtml,u=t.unwrapDisallowed,d=t.urlTransform||pY;for(const v of dY)Object.hasOwn(t,v.from)&&(""+v.from+(v.to?"use `"+v.to+"` instead":"remove it")+uY+v.id,void 0);return S1(e,h),Nq(e,{Fragment:g.Fragment,components:a,ignoreInvalidStyle:!0,jsx:g.jsx,jsxs:g.jsxs,passKeys:!0,passNode:!0});function h(v,m,E){if(v.type==="raw"&&E&&typeof m=="number")return l?E.children.splice(m,1):E.children[m]={type:"text",value:v.value},m;if(v.type==="element"){let b;for(b in D2)if(Object.hasOwn(D2,b)&&Object.hasOwn(v.properties,b)){const T=v.properties[b],A=D2[b];(A===null||A.includes(v.tagName))&&(v.properties[b]=d(String(T||""),b,v))}}if(v.type==="element"){let b=n?!n.includes(v.tagName):i?i.includes(v.tagName):!1;if(!b&&r&&typeof m=="number"&&(b=!r(v,m,E)),b&&E&&typeof m=="number")return u&&v.children?E.children.splice(m,1,...v.children):E.children.splice(m,1),m}}}function pY(e){const t=e.indexOf(":"),n=e.indexOf("?"),r=e.indexOf("#"),a=e.indexOf("/");return t===-1||a!==-1&&t>a||n!==-1&&t>n||r!==-1&&t>r||cY.test(e.slice(0,t))?e:""}const Z_=/[#.]/g;function gY(e,t){const n=e||"",r={};let a=0,i,l;for(;a<n.length;){Z_.lastIndex=a;const u=Z_.exec(n),d=n.slice(a,u?u.index:n.length);d&&(i?i==="#"?r.id=d:Array.isArray(r.className)?r.className.push(d):r.className=[d]:l=d,a+=d.length),u&&(i=u[0],a++)}return{type:"element",tagName:l||t||"div",properties:r,children:[]}}function Y7(e,t,n){const r=n?EY(n):void 0;function a(i,l,...u){let d;if(i==null){d={type:"root",children:[]};const h=l;u.unshift(h)}else{d=gY(i,t);const h=d.tagName.toLowerCase(),v=r?r.get(h):void 0;if(d.tagName=v||h,vY(l))u.unshift(l);else for(const[m,E]of Object.entries(l))yY(e,d.properties,m,E)}for(const h of u)Uv(d.children,h);return d.type==="element"&&d.tagName==="template"&&(d.content={type:"root",children:d.children},d.children=[]),d}return a}function vY(e){if(e===null||typeof e!="object"||Array.isArray(e))return!0;if(typeof e.type!="string")return!1;const t=e,n=Object.keys(e);for(const r of n){const a=t[r];if(a&&typeof a=="object"){if(!Array.isArray(a))return!0;const i=a;for(const l of i)if(typeof l!="number"&&typeof l!="string")return!0}}return!!("children"in e&&Array.isArray(e.children))}function yY(e,t,n,r){const a=G4(e,n);let i;if(r!=null){if(typeof r=="number"){if(Number.isNaN(r))return;i=r}else typeof r=="boolean"?i=r:typeof r=="string"?a.spaceSeparated?i=h_(r):a.commaSeparated?i=l_(r):a.commaOrSpaceSeparated?i=h_(l_(r).join(" ")):i=Q_(a,a.property,r):Array.isArray(r)?i=[...r]:i=a.property==="style"?bY(r):String(r);if(Array.isArray(i)){const l=[];for(const u of i)l.push(Q_(a,a.property,u));i=l}a.property==="className"&&Array.isArray(t.className)&&(i=t.className.concat(i)),t[a.property]=i}}function Uv(e,t){if(t!=null)if(typeof t=="number"||typeof t=="string")e.push({type:"text",value:String(t)});else if(Array.isArray(t))for(const n of t)Uv(e,n);else if(typeof t=="object"&&"type"in t)t.type==="root"?Uv(e,t.children):e.push(t);else throw new Error("Expected node, nodes, or string, got `"+t+"`")}function Q_(e,t,n){if(typeof n=="string"){if(e.number&&n&&!Number.isNaN(Number(n)))return Number(n);if((e.boolean||e.overloadedBoolean)&&(n===""||Cd(n)===Cd(t)))return!0}return n}function bY(e){const t=[];for(const[n,r]of Object.entries(e))t.push([n,r].join(": "));return t.join("; ")}function EY(e){const t=new Map;for(const n of e)t.set(n.toLowerCase(),n);return t}const xY=["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","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","foreignObject","glyphRef","linearGradient","radialGradient","solidColor","textArea","textPath"],_Y=Y7(y1,"div"),TY=Y7(Fu,"g",xY);function AY(e){const t=String(e),n=[];return{toOffset:a,toPoint:r};function r(i){if(typeof i=="number"&&i>-1&&i<=t.length){let l=0;for(;;){let u=n[l];if(u===void 0){const d=Y_(t,n[l-1]);u=d===-1?t.length+1:d+1,n[l]=u}if(u>i)return{line:l+1,column:i-(l>0?n[l-1]:0)+1,offset:i};l++}}}function a(i){if(i&&typeof i.line=="number"&&typeof i.column=="number"&&!Number.isNaN(i.line)&&!Number.isNaN(i.column)){for(;n.length<i.line;){const u=n[n.length-1],d=Y_(t,u),h=d===-1?t.length+1:d+1;if(u===h)break;n.push(h)}const l=(i.line>1?n[i.line-2]:0)+i.column-1;if(l<n[i.line-1])return l}}}function Y_(e,t){const n=e.indexOf("\r",t),r=e.indexOf(`
|
|
132
|
-
`,t);return r===-1?n:n===-1||n+1===r?r:n<r?n:r}const Uo={html:"http://www.w3.org/1999/xhtml",mathml:"http://www.w3.org/1998/Math/MathML",svg:"http://www.w3.org/2000/svg",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"},G7={}.hasOwnProperty,SY=Object.prototype;function wY(e,t){const n=t||{};return o6({file:n.file||void 0,location:!1,schema:n.space==="svg"?Fu:y1,verbose:n.verbose||!1},e)}function o6(e,t){let n;switch(t.nodeName){case"#comment":{const r=t;return n={type:"comment",value:r.data},Yf(e,r,n),n}case"#document":case"#document-fragment":{const r=t,a="mode"in r?r.mode==="quirks"||r.mode==="limited-quirks":!1;if(n={type:"root",children:K7(e,t.childNodes),data:{quirksMode:a}},e.file&&e.location){const i=String(e.file),l=AY(i),u=l.toPoint(0),d=l.toPoint(i.length);n.position={start:u,end:d}}return n}case"#documentType":{const r=t;return n={type:"doctype"},Yf(e,r,n),n}case"#text":{const r=t;return n={type:"text",value:r.value},Yf(e,r,n),n}default:return n=CY(e,t),n}}function K7(e,t){let n=-1;const r=[];for(;++n<t.length;){const a=o6(e,t[n]);r.push(a)}return r}function CY(e,t){const n=e.schema;e.schema=t.namespaceURI===Uo.svg?Fu:y1;let r=-1;const a={};for(;++r<t.attrs.length;){const u=t.attrs[r],d=(u.prefix?u.prefix+":":"")+u.name;G7.call(SY,d)||(a[d]=u.value)}const l=(e.schema.space==="svg"?TY:_Y)(t.tagName,a,K7(e,t.childNodes));if(Yf(e,t,l),l.tagName==="template"){const u=t,d=u.sourceCodeLocation,h=d&&d.startTag&&iu(d.startTag),v=d&&d.endTag&&iu(d.endTag),m=o6(e,u.content);h&&v&&e.file&&(m.position={start:h.end,end:v.start}),l.content=m}return e.schema=n,l}function Yf(e,t,n){if("sourceCodeLocation"in t&&t.sourceCodeLocation&&e.file){const r=RY(e,n,t.sourceCodeLocation);r&&(e.location=!0,n.position=r)}}function RY(e,t,n){const r=iu(n);if(t.type==="element"){const a=t.children[t.children.length-1];if(r&&!n.endTag&&a&&a.position&&a.position.end&&(r.end=Object.assign({},a.position.end)),e.verbose){const i={};let l;if(n.attrs)for(l in n.attrs)G7.call(n.attrs,l)&&(i[G4(e.schema,l).property]=iu(n.attrs[l]));n.startTag;const u=iu(n.startTag),d=n.endTag?iu(n.endTag):void 0,h={opening:u};d&&(h.closing=d),h.properties=i,t.data={position:h}}}return r}function iu(e){const t=G_({line:e.startLine,column:e.startCol,offset:e.startOffset}),n=G_({line:e.endLine,column:e.endCol,offset:e.endOffset});return t||n?{start:t,end:n}:void 0}function G_(e){return e.line&&e.column?e:void 0}class n0{constructor(t,n,r){this.property=t,this.normal=n,r&&(this.space=r)}}n0.prototype.property={};n0.prototype.normal={};n0.prototype.space=null;function X7(e,t){const n={},r={};let a=-1;for(;++a<e.length;)Object.assign(n,e[a].property),Object.assign(r,e[a].normal);return new n0(n,r,t)}function Bv(e){return e.toLowerCase()}class Ma{constructor(t,n){this.property=t,this.attribute=n}}Ma.prototype.space=null;Ma.prototype.boolean=!1;Ma.prototype.booleanish=!1;Ma.prototype.overloadedBoolean=!1;Ma.prototype.number=!1;Ma.prototype.commaSeparated=!1;Ma.prototype.spaceSeparated=!1;Ma.prototype.commaOrSpaceSeparated=!1;Ma.prototype.mustUseProperty=!1;Ma.prototype.defined=!1;let OY=0;const Et=ol(),Kn=ol(),W7=ol(),Fe=ol(),gn=ol(),mu=ol(),oa=ol();function ol(){return 2**++OY}const Vv=Object.freeze(Object.defineProperty({__proto__:null,boolean:Et,booleanish:Kn,commaOrSpaceSeparated:oa,commaSeparated:mu,number:Fe,overloadedBoolean:W7,spaceSeparated:gn},Symbol.toStringTag,{value:"Module"})),q2=Object.keys(Vv);class l6 extends Ma{constructor(t,n,r,a){let i=-1;if(super(t,n),K_(this,"space",a),typeof r=="number")for(;++i<q2.length;){const l=q2[i];K_(this,q2[i],(r&Vv[l])===Vv[l])}}}l6.prototype.defined=!0;function K_(e,t,n){n&&(e[t]=n)}const NY={}.hasOwnProperty;function Bu(e){const t={},n={};let r;for(r in e.properties)if(NY.call(e.properties,r)){const a=e.properties[r],i=new l6(r,e.transform(e.attributes||{},r),a,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(i.mustUseProperty=!0),t[r]=i,n[Bv(r)]=r,n[Bv(i.attribute)]=r}return new n0(t,n,e.space)}const J7=Bu({space:"xlink",transform(e,t){return"xlink:"+t.slice(5).toLowerCase()},properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}}),eC=Bu({space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()},properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function tC(e,t){return t in e?e[t]:t}function nC(e,t){return tC(e,t.toLowerCase())}const rC=Bu({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:nC,properties:{xmlns:null,xmlnsXLink:null}}),aC=Bu({transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()},properties:{ariaActiveDescendant:null,ariaAtomic:Kn,ariaAutoComplete:null,ariaBusy:Kn,ariaChecked:Kn,ariaColCount:Fe,ariaColIndex:Fe,ariaColSpan:Fe,ariaControls:gn,ariaCurrent:null,ariaDescribedBy:gn,ariaDetails:null,ariaDisabled:Kn,ariaDropEffect:gn,ariaErrorMessage:null,ariaExpanded:Kn,ariaFlowTo:gn,ariaGrabbed:Kn,ariaHasPopup:null,ariaHidden:Kn,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:gn,ariaLevel:Fe,ariaLive:null,ariaModal:Kn,ariaMultiLine:Kn,ariaMultiSelectable:Kn,ariaOrientation:null,ariaOwns:gn,ariaPlaceholder:null,ariaPosInSet:Fe,ariaPressed:Kn,ariaReadOnly:Kn,ariaRelevant:null,ariaRequired:Kn,ariaRoleDescription:gn,ariaRowCount:Fe,ariaRowIndex:Fe,ariaRowSpan:Fe,ariaSelected:Kn,ariaSetSize:Fe,ariaSort:null,ariaValueMax:Fe,ariaValueMin:Fe,ariaValueNow:Fe,ariaValueText:null,role:null}}),PY=Bu({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:nC,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:mu,acceptCharset:gn,accessKey:gn,action:null,allow:null,allowFullScreen:Et,allowPaymentRequest:Et,allowUserMedia:Et,alt:null,as:null,async:Et,autoCapitalize:null,autoComplete:gn,autoFocus:Et,autoPlay:Et,blocking:gn,capture:null,charSet:null,checked:Et,cite:null,className:gn,cols:Fe,colSpan:null,content:null,contentEditable:Kn,controls:Et,controlsList:gn,coords:Fe|mu,crossOrigin:null,data:null,dateTime:null,decoding:null,default:Et,defer:Et,dir:null,dirName:null,disabled:Et,download:W7,draggable:Kn,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:Et,formTarget:null,headers:gn,height:Fe,hidden:Et,high:Fe,href:null,hrefLang:null,htmlFor:gn,httpEquiv:gn,id:null,imageSizes:null,imageSrcSet:null,inert:Et,inputMode:null,integrity:null,is:null,isMap:Et,itemId:null,itemProp:gn,itemRef:gn,itemScope:Et,itemType:gn,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:Et,low:Fe,manifest:null,max:null,maxLength:Fe,media:null,method:null,min:null,minLength:Fe,multiple:Et,muted:Et,name:null,nonce:null,noModule:Et,noValidate:Et,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:Et,optimum:Fe,pattern:null,ping:gn,placeholder:null,playsInline:Et,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:Et,referrerPolicy:null,rel:gn,required:Et,reversed:Et,rows:Fe,rowSpan:Fe,sandbox:gn,scope:null,scoped:Et,seamless:Et,selected:Et,shadowRootClonable:Et,shadowRootDelegatesFocus:Et,shadowRootMode:null,shape:null,size:Fe,sizes:null,slot:null,span:Fe,spellCheck:Kn,src:null,srcDoc:null,srcLang:null,srcSet:null,start:Fe,step:null,style:null,tabIndex:Fe,target:null,title:null,translate:null,type:null,typeMustMatch:Et,useMap:null,value:Kn,width:Fe,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:gn,axis:null,background:null,bgColor:null,border:Fe,borderColor:null,bottomMargin:Fe,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:Et,declare:Et,event:null,face:null,frame:null,frameBorder:null,hSpace:Fe,leftMargin:Fe,link:null,longDesc:null,lowSrc:null,marginHeight:Fe,marginWidth:Fe,noResize:Et,noHref:Et,noShade:Et,noWrap:Et,object:null,profile:null,prompt:null,rev:null,rightMargin:Fe,rules:null,scheme:null,scrolling:Kn,standby:null,summary:null,text:null,topMargin:Fe,valueType:null,version:null,vAlign:null,vLink:null,vSpace:Fe,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:Et,disableRemotePlayback:Et,prefix:null,property:null,results:Fe,security:null,unselectable:null}}),kY=Bu({space:"svg",attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},transform:tC,properties:{about:oa,accentHeight:Fe,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:Fe,amplitude:Fe,arabicForm:null,ascent:Fe,attributeName:null,attributeType:null,azimuth:Fe,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:Fe,by:null,calcMode:null,capHeight:Fe,className:gn,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:Fe,diffuseConstant:Fe,direction:null,display:null,dur:null,divisor:Fe,dominantBaseline:null,download:Et,dx:null,dy:null,edgeMode:null,editable:null,elevation:Fe,enableBackground:null,end:null,event:null,exponent:Fe,externalResourcesRequired:null,fill:null,fillOpacity:Fe,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:mu,g2:mu,glyphName:mu,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:Fe,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:Fe,horizOriginX:Fe,horizOriginY:Fe,id:null,ideographic:Fe,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:Fe,k:Fe,k1:Fe,k2:Fe,k3:Fe,k4:Fe,kernelMatrix:oa,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:Fe,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:Fe,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:Fe,overlineThickness:Fe,paintOrder:null,panose1:null,path:null,pathLength:Fe,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:gn,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:Fe,pointsAtY:Fe,pointsAtZ:Fe,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:oa,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:oa,rev:oa,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:oa,requiredFeatures:oa,requiredFonts:oa,requiredFormats:oa,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:Fe,specularExponent:Fe,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:Fe,strikethroughThickness:Fe,string:null,stroke:null,strokeDashArray:oa,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:Fe,strokeOpacity:Fe,strokeWidth:null,style:null,surfaceScale:Fe,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:oa,tabIndex:Fe,tableValues:null,target:null,targetX:Fe,targetY:Fe,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:oa,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:Fe,underlineThickness:Fe,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:Fe,values:null,vAlphabetic:Fe,vMathematical:Fe,vectorEffect:null,vHanging:Fe,vIdeographic:Fe,version:null,vertAdvY:Fe,vertOriginX:Fe,vertOriginY:Fe,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:Fe,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null}}),DY=/^data[-\w.:]+$/i,X_=/-[a-z]/g,MY=/[A-Z]/g;function LY(e,t){const n=Bv(t);let r=t,a=Ma;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&DY.test(t)){if(t.charAt(4)==="-"){const i=t.slice(5).replace(X_,jY);r="data"+i.charAt(0).toUpperCase()+i.slice(1)}else{const i=t.slice(4);if(!X_.test(i)){let l=i.replace(MY,IY);l.charAt(0)!=="-"&&(l="-"+l),t="data"+l}}a=l6}return new a(r,t)}function IY(e){return"-"+e.toLowerCase()}function jY(e){return e.charAt(1).toUpperCase()}const HY=X7([eC,J7,rC,aC,PY],"html"),sC=X7([eC,J7,rC,aC,kY],"svg"),W_={}.hasOwnProperty;function iC(e,t){const n=t||{};function r(a,...i){let l=r.invalid;const u=r.handlers;if(a&&W_.call(a,e)){const d=String(a[e]);l=W_.call(u,d)?u[d]:r.unknown}if(l)return l.call(this,a,...i)}return r.handlers=n.handlers||{},r.invalid=n.invalid,r.unknown=n.unknown,r}const FY={},UY={}.hasOwnProperty,oC=iC("type",{handlers:{root:VY,element:QY,text:$Y,comment:ZY,doctype:qY}});function BY(e,t){const r=(t||FY).space;return oC(e,r==="svg"?sC:HY)}function VY(e,t){const n={nodeName:"#document",mode:(e.data||{}).quirksMode?"quirks":"no-quirks",childNodes:[]};return n.childNodes=u6(e.children,n,t),Vu(e,n),n}function zY(e,t){const n={nodeName:"#document-fragment",childNodes:[]};return n.childNodes=u6(e.children,n,t),Vu(e,n),n}function qY(e){const t={nodeName:"#documentType",name:"html",publicId:"",systemId:"",parentNode:null};return Vu(e,t),t}function $Y(e){const t={nodeName:"#text",value:e.value,parentNode:null};return Vu(e,t),t}function ZY(e){const t={nodeName:"#comment",data:e.value,parentNode:null};return Vu(e,t),t}function QY(e,t){const n=t;let r=n;e.type==="element"&&e.tagName.toLowerCase()==="svg"&&n.space==="html"&&(r=sC);const a=[];let i;if(e.properties){for(i in e.properties)if(i!=="children"&&UY.call(e.properties,i)){const d=YY(r,i,e.properties[i]);d&&a.push(d)}}const l=r.space,u={nodeName:e.tagName,tagName:e.tagName,attrs:a,namespaceURI:Uo[l],childNodes:[],parentNode:null};return u.childNodes=u6(e.children,u,r),Vu(e,u),e.tagName==="template"&&e.content&&(u.content=zY(e.content,r)),u}function YY(e,t,n){const r=LY(e,t);if(n===!1||n===null||n===void 0||typeof n=="number"&&Number.isNaN(n)||!n&&r.boolean)return;Array.isArray(n)&&(n=r.commaSeparated?d7(n):b7(n));const a={name:r.attribute,value:n===!0?"":String(n)};if(r.space&&r.space!=="html"&&r.space!=="svg"){const i=a.name.indexOf(":");i<0?a.prefix="":(a.name=a.name.slice(i+1),a.prefix=r.attribute.slice(0,i)),a.namespace=Uo[r.space]}return a}function u6(e,t,n){let r=-1;const a=[];if(e)for(;++r<e.length;){const i=oC(e[r],n);i.parentNode=t,a.push(i)}return a}function Vu(e,t){const n=e.position;n&&n.start&&n.end&&(n.start.offset,n.end.offset,t.sourceCodeLocation={startLine:n.start.line,startCol:n.start.column,startOffset:n.start.offset,endLine:n.end.line,endCol:n.end.column,endOffset:n.end.offset})}const GY=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","keygen","link","meta","param","source","track","wbr"],KY=new Set([65534,65535,131070,131071,196606,196607,262142,262143,327678,327679,393214,393215,458750,458751,524286,524287,589822,589823,655358,655359,720894,720895,786430,786431,851966,851967,917502,917503,983038,983039,1048574,1048575,1114110,1114111]),Sn="�";var z;(function(e){e[e.EOF=-1]="EOF",e[e.NULL=0]="NULL",e[e.TABULATION=9]="TABULATION",e[e.CARRIAGE_RETURN=13]="CARRIAGE_RETURN",e[e.LINE_FEED=10]="LINE_FEED",e[e.FORM_FEED=12]="FORM_FEED",e[e.SPACE=32]="SPACE",e[e.EXCLAMATION_MARK=33]="EXCLAMATION_MARK",e[e.QUOTATION_MARK=34]="QUOTATION_MARK",e[e.AMPERSAND=38]="AMPERSAND",e[e.APOSTROPHE=39]="APOSTROPHE",e[e.HYPHEN_MINUS=45]="HYPHEN_MINUS",e[e.SOLIDUS=47]="SOLIDUS",e[e.DIGIT_0=48]="DIGIT_0",e[e.DIGIT_9=57]="DIGIT_9",e[e.SEMICOLON=59]="SEMICOLON",e[e.LESS_THAN_SIGN=60]="LESS_THAN_SIGN",e[e.EQUALS_SIGN=61]="EQUALS_SIGN",e[e.GREATER_THAN_SIGN=62]="GREATER_THAN_SIGN",e[e.QUESTION_MARK=63]="QUESTION_MARK",e[e.LATIN_CAPITAL_A=65]="LATIN_CAPITAL_A",e[e.LATIN_CAPITAL_Z=90]="LATIN_CAPITAL_Z",e[e.RIGHT_SQUARE_BRACKET=93]="RIGHT_SQUARE_BRACKET",e[e.GRAVE_ACCENT=96]="GRAVE_ACCENT",e[e.LATIN_SMALL_A=97]="LATIN_SMALL_A",e[e.LATIN_SMALL_Z=122]="LATIN_SMALL_Z"})(z||(z={}));const Vr={DASH_DASH:"--",CDATA_START:"[CDATA[",DOCTYPE:"doctype",SCRIPT:"script",PUBLIC:"public",SYSTEM:"system"};function lC(e){return e>=55296&&e<=57343}function XY(e){return e>=56320&&e<=57343}function WY(e,t){return(e-55296)*1024+9216+t}function uC(e){return e!==32&&e!==10&&e!==13&&e!==9&&e!==12&&e>=1&&e<=31||e>=127&&e<=159}function cC(e){return e>=64976&&e<=65007||KY.has(e)}var _e;(function(e){e.controlCharacterInInputStream="control-character-in-input-stream",e.noncharacterInInputStream="noncharacter-in-input-stream",e.surrogateInInputStream="surrogate-in-input-stream",e.nonVoidHtmlElementStartTagWithTrailingSolidus="non-void-html-element-start-tag-with-trailing-solidus",e.endTagWithAttributes="end-tag-with-attributes",e.endTagWithTrailingSolidus="end-tag-with-trailing-solidus",e.unexpectedSolidusInTag="unexpected-solidus-in-tag",e.unexpectedNullCharacter="unexpected-null-character",e.unexpectedQuestionMarkInsteadOfTagName="unexpected-question-mark-instead-of-tag-name",e.invalidFirstCharacterOfTagName="invalid-first-character-of-tag-name",e.unexpectedEqualsSignBeforeAttributeName="unexpected-equals-sign-before-attribute-name",e.missingEndTagName="missing-end-tag-name",e.unexpectedCharacterInAttributeName="unexpected-character-in-attribute-name",e.unknownNamedCharacterReference="unknown-named-character-reference",e.missingSemicolonAfterCharacterReference="missing-semicolon-after-character-reference",e.unexpectedCharacterAfterDoctypeSystemIdentifier="unexpected-character-after-doctype-system-identifier",e.unexpectedCharacterInUnquotedAttributeValue="unexpected-character-in-unquoted-attribute-value",e.eofBeforeTagName="eof-before-tag-name",e.eofInTag="eof-in-tag",e.missingAttributeValue="missing-attribute-value",e.missingWhitespaceBetweenAttributes="missing-whitespace-between-attributes",e.missingWhitespaceAfterDoctypePublicKeyword="missing-whitespace-after-doctype-public-keyword",e.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers="missing-whitespace-between-doctype-public-and-system-identifiers",e.missingWhitespaceAfterDoctypeSystemKeyword="missing-whitespace-after-doctype-system-keyword",e.missingQuoteBeforeDoctypePublicIdentifier="missing-quote-before-doctype-public-identifier",e.missingQuoteBeforeDoctypeSystemIdentifier="missing-quote-before-doctype-system-identifier",e.missingDoctypePublicIdentifier="missing-doctype-public-identifier",e.missingDoctypeSystemIdentifier="missing-doctype-system-identifier",e.abruptDoctypePublicIdentifier="abrupt-doctype-public-identifier",e.abruptDoctypeSystemIdentifier="abrupt-doctype-system-identifier",e.cdataInHtmlContent="cdata-in-html-content",e.incorrectlyOpenedComment="incorrectly-opened-comment",e.eofInScriptHtmlCommentLikeText="eof-in-script-html-comment-like-text",e.eofInDoctype="eof-in-doctype",e.nestedComment="nested-comment",e.abruptClosingOfEmptyComment="abrupt-closing-of-empty-comment",e.eofInComment="eof-in-comment",e.incorrectlyClosedComment="incorrectly-closed-comment",e.eofInCdata="eof-in-cdata",e.absenceOfDigitsInNumericCharacterReference="absence-of-digits-in-numeric-character-reference",e.nullCharacterReference="null-character-reference",e.surrogateCharacterReference="surrogate-character-reference",e.characterReferenceOutsideUnicodeRange="character-reference-outside-unicode-range",e.controlCharacterReference="control-character-reference",e.noncharacterCharacterReference="noncharacter-character-reference",e.missingWhitespaceBeforeDoctypeName="missing-whitespace-before-doctype-name",e.missingDoctypeName="missing-doctype-name",e.invalidCharacterSequenceAfterDoctypeName="invalid-character-sequence-after-doctype-name",e.duplicateAttribute="duplicate-attribute",e.nonConformingDoctype="non-conforming-doctype",e.missingDoctype="missing-doctype",e.misplacedDoctype="misplaced-doctype",e.endTagWithoutMatchingOpenElement="end-tag-without-matching-open-element",e.closingOfElementWithOpenChildElements="closing-of-element-with-open-child-elements",e.disallowedContentInNoscriptInHead="disallowed-content-in-noscript-in-head",e.openElementsLeftAfterEof="open-elements-left-after-eof",e.abandonedHeadElementChild="abandoned-head-element-child",e.misplacedStartTagForHeadElement="misplaced-start-tag-for-head-element",e.nestedNoscriptInHead="nested-noscript-in-head",e.eofInElementThatCanContainOnlyText="eof-in-element-that-can-contain-only-text"})(_e||(_e={}));const JY=65536;class eG{constructor(t){this.handler=t,this.html="",this.pos=-1,this.lastGapPos=-2,this.gapStack=[],this.skipNextNewLine=!1,this.lastChunkWritten=!1,this.endOfChunkHit=!1,this.bufferWaterline=JY,this.isEol=!1,this.lineStartPos=0,this.droppedBufferSize=0,this.line=1,this.lastErrOffset=-1}get col(){return this.pos-this.lineStartPos+ +(this.lastGapPos!==this.pos)}get offset(){return this.droppedBufferSize+this.pos}getError(t,n){const{line:r,col:a,offset:i}=this,l=a+n,u=i+n;return{code:t,startLine:r,endLine:r,startCol:l,endCol:l,startOffset:u,endOffset:u}}_err(t){this.handler.onParseError&&this.lastErrOffset!==this.offset&&(this.lastErrOffset=this.offset,this.handler.onParseError(this.getError(t,0)))}_addGap(){this.gapStack.push(this.lastGapPos),this.lastGapPos=this.pos}_processSurrogate(t){if(this.pos!==this.html.length-1){const n=this.html.charCodeAt(this.pos+1);if(XY(n))return this.pos++,this._addGap(),WY(t,n)}else if(!this.lastChunkWritten)return this.endOfChunkHit=!0,z.EOF;return this._err(_e.surrogateInInputStream),t}willDropParsedChunk(){return this.pos>this.bufferWaterline}dropParsedChunk(){this.willDropParsedChunk()&&(this.html=this.html.substring(this.pos),this.lineStartPos-=this.pos,this.droppedBufferSize+=this.pos,this.pos=0,this.lastGapPos=-2,this.gapStack.length=0)}write(t,n){this.html.length>0?this.html+=t:this.html=t,this.endOfChunkHit=!1,this.lastChunkWritten=n}insertHtmlAtCurrentPos(t){this.html=this.html.substring(0,this.pos+1)+t+this.html.substring(this.pos+1),this.endOfChunkHit=!1}startsWith(t,n){if(this.pos+t.length>this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,!1;if(n)return this.html.startsWith(t,this.pos);for(let r=0;r<t.length;r++)if((this.html.charCodeAt(this.pos+r)|32)!==t.charCodeAt(r))return!1;return!0}peek(t){const n=this.pos+t;if(n>=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,z.EOF;const r=this.html.charCodeAt(n);return r===z.CARRIAGE_RETURN?z.LINE_FEED:r}advance(){if(this.pos++,this.isEol&&(this.isEol=!1,this.line++,this.lineStartPos=this.pos),this.pos>=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,z.EOF;let t=this.html.charCodeAt(this.pos);return t===z.CARRIAGE_RETURN?(this.isEol=!0,this.skipNextNewLine=!0,z.LINE_FEED):t===z.LINE_FEED&&(this.isEol=!0,this.skipNextNewLine)?(this.line--,this.skipNextNewLine=!1,this._addGap(),this.advance()):(this.skipNextNewLine=!1,lC(t)&&(t=this._processSurrogate(t)),this.handler.onParseError===null||t>31&&t<127||t===z.LINE_FEED||t===z.CARRIAGE_RETURN||t>159&&t<64976||this._checkForProblematicCharacters(t),t)}_checkForProblematicCharacters(t){uC(t)?this._err(_e.controlCharacterInInputStream):cC(t)&&this._err(_e.noncharacterInInputStream)}retreat(t){for(this.pos-=t;this.pos<this.lastGapPos;)this.lastGapPos=this.gapStack.pop(),this.pos--;this.isEol=!1}}var Nt;(function(e){e[e.CHARACTER=0]="CHARACTER",e[e.NULL_CHARACTER=1]="NULL_CHARACTER",e[e.WHITESPACE_CHARACTER=2]="WHITESPACE_CHARACTER",e[e.START_TAG=3]="START_TAG",e[e.END_TAG=4]="END_TAG",e[e.COMMENT=5]="COMMENT",e[e.DOCTYPE=6]="DOCTYPE",e[e.EOF=7]="EOF",e[e.HIBERNATION=8]="HIBERNATION"})(Nt||(Nt={}));function dC(e,t){for(let n=e.attrs.length-1;n>=0;n--)if(e.attrs[n].name===t)return e.attrs[n].value;return null}const tG=new Uint16Array('ᵁ<Õıʊҝջאٵ۞ޢߖࠏઑඡ༉༦ረዡᐕᒝᓃᓟᔥ\0\0\0\0\0\0ᕫᛍᦍᰒᷝ↰⊍⏀⏻⑂⠤⤒ⴈ⹈⿎〖㊺㘹㞬㣾㨨㩱㫠㬮ࠀEMabcfglmnoprstu\\bfms¦³¹ÈÏlig耻Æ䃆P耻&䀦cute耻Á䃁reve;䄂Āiyx}rc耻Â䃂;䐐r;쀀𝔄rave耻À䃀pha;䎑acr;䄀d;橓Āgp¡on;䄄f;쀀𝔸plyFunction;恡ing耻Å䃅Ācs¾Ãr;쀀𝒜ign;扔ilde耻Ã䃃ml耻Ä䃄ЀaceforsuåûþėĜĢħĪĀcrêòkslash;或Ŷöø;櫧ed;挆y;䐑ƀcrtąċĔause;戵noullis;愬a;䎒r;쀀𝔅pf;쀀𝔹eve;䋘còēmpeq;扎܀HOacdefhilorsuōőŖƀƞƢƵƷƺǜȕɳɸɾcy;䐧PY耻©䂩ƀcpyŝŢźute;䄆Ā;iŧŨ拒talDifferentialD;慅leys;愭ȀaeioƉƎƔƘron;䄌dil耻Ç䃇rc;䄈nint;戰ot;䄊ĀdnƧƭilla;䂸terDot;䂷òſi;䎧rcleȀDMPTLJNjǑǖot;抙inus;抖lus;投imes;抗oĀcsǢǸkwiseContourIntegral;戲eCurlyĀDQȃȏoubleQuote;思uote;怙ȀlnpuȞȨɇɕonĀ;eȥȦ户;橴ƀgitȯȶȺruent;扡nt;戯ourIntegral;戮ĀfrɌɎ;愂oduct;成nterClockwiseContourIntegral;戳oss;樯cr;쀀𝒞pĀ;Cʄʅ拓ap;才րDJSZacefiosʠʬʰʴʸˋ˗ˡ˦̳ҍĀ;oŹʥtrahd;椑cy;䐂cy;䐅cy;䐏ƀgrsʿ˄ˇger;怡r;憡hv;櫤Āayː˕ron;䄎;䐔lĀ;t˝˞戇a;䎔r;쀀𝔇Āaf˫̧Ācm˰̢riticalȀADGT̖̜̀̆cute;䂴oŴ̋̍;䋙bleAcute;䋝rave;䁠ilde;䋜ond;拄ferentialD;慆Ѱ̽\0\0\0͔͂\0Ѕf;쀀𝔻ƀ;DE͈͉͍䂨ot;惜qual;扐blèCDLRUVͣͲϏϢϸontourIntegraìȹoɴ\0\0ͻ»͉nArrow;懓Āeo·ΤftƀARTΐΖΡrrow;懐ightArrow;懔eåˊngĀLRΫτeftĀARγιrrow;柸ightArrow;柺ightArrow;柹ightĀATϘϞrrow;懒ee;抨pɁϩ\0\0ϯrrow;懑ownArrow;懕erticalBar;戥ǹABLRTaВЪаўѿͼrrowƀ;BUНОТ憓ar;椓pArrow;懵reve;䌑eft˒к\0ц\0ѐightVector;楐eeVector;楞ectorĀ;Bљњ憽ar;楖ightǔѧ\0ѱeeVector;楟ectorĀ;BѺѻ懁ar;楗eeĀ;A҆҇护rrow;憧ĀctҒҗr;쀀𝒟rok;䄐ࠀNTacdfglmopqstuxҽӀӄӋӞӢӧӮӵԡԯԶՒ՝ՠեG;䅊H耻Ð䃐cute耻É䃉ƀaiyӒӗӜron;䄚rc耻Ê䃊;䐭ot;䄖r;쀀𝔈rave耻È䃈ement;戈ĀapӺӾcr;䄒tyɓԆ\0\0ԒmallSquare;旻erySmallSquare;斫ĀgpԦԪon;䄘f;쀀𝔼silon;䎕uĀaiԼՉlĀ;TՂՃ橵ilde;扂librium;懌Āci՚r;愰m;橳a;䎗ml耻Ë䃋Āipժկsts;戃onentialE;慇ʀcfiosօֈ֍ֲy;䐤r;쀀𝔉lledɓ֗\0\0֣mallSquare;旼erySmallSquare;斪Ͱֺ\0ֿ\0\0ׄf;쀀𝔽All;戀riertrf;愱còJTabcdfgorstרׯؒؖ؛؝أ٬ٲcy;䐃耻>䀾mmaĀ;d䎓;䏜reve;䄞ƀeiy؇،ؐdil;䄢rc;䄜;䐓ot;䄠r;쀀𝔊;拙pf;쀀𝔾eater̀EFGLSTصلَٖٛ٦qualĀ;Lؾؿ扥ess;招ullEqual;执reater;檢ess;扷lantEqual;橾ilde;扳cr;쀀𝒢;扫ЀAacfiosuڅڋږڛڞڪھۊRDcy;䐪Āctڐڔek;䋇;䁞irc;䄤r;愌lbertSpace;愋ǰگ\0ڲf;愍izontalLine;攀Āctۃۅòکrok;䄦mpńېۘownHumðįqual;扏܀EJOacdfgmnostuۺ۾܃܇ܚܞܡܨ݄ݸދޏޕcy;䐕lig;䄲cy;䐁cute耻Í䃍Āiyܓܘrc耻Î䃎;䐘ot;䄰r;愑rave耻Ì䃌ƀ;apܠܯܿĀcgܴܷr;䄪inaryI;慈lieóϝǴ݉\0ݢĀ;eݍݎ戬Āgrݓݘral;戫section;拂isibleĀCTݬݲomma;恣imes;恢ƀgptݿރވon;䄮f;쀀𝕀a;䎙cr;愐ilde;䄨ǫޚ\0ޞcy;䐆l耻Ï䃏ʀcfosuެ߂ߐĀiyޱrc;䄴;䐙r;쀀𝔍pf;쀀𝕁ǣ߇\0ߌr;쀀𝒥rcy;䐈kcy;䐄HJacfosߤߨ߽߬߱ࠂࠈcy;䐥cy;䐌ppa;䎚Āey߶dil;䄶;䐚r;쀀𝔎pf;쀀𝕂cr;쀀𝒦րJTaceflmostࠥࠩࠬࡐࡣসে্ੇcy;䐉耻<䀼ʀcmnpr࠷࠼ࡁࡄࡍute;䄹bda;䎛g;柪lacetrf;愒r;憞ƀaeyࡗࡡron;䄽dil;䄻;䐛Āfsࡨ॰tԀACDFRTUVarࡾࢩࢱࣦ࣠ࣼयज़ΐ४ĀnrࢃgleBracket;柨rowƀ;BR࢙࢚࢞憐ar;懤ightArrow;懆eiling;挈oǵࢷ\0ࣃbleBracket;柦nǔࣈ\0࣒eeVector;楡ectorĀ;Bࣛࣜ懃ar;楙loor;挊ightĀAV࣯ࣵrrow;憔ector;楎Āerँगeƀ;AVउऊऐ抣rrow;憤ector;楚iangleƀ;BEतथऩ抲ar;槏qual;抴pƀDTVषूौownVector;楑eeVector;楠ectorĀ;Bॖॗ憿ar;楘ectorĀ;B॥०憼ar;楒ightáΜs̀EFGLSTॾঋকঝঢভqualGreater;拚ullEqual;扦reater;扶ess;檡lantEqual;橽ilde;扲r;쀀𝔏Ā;eঽা拘ftarrow;懚idot;䄿ƀnpwਖਛgȀLRlr৷ਂਐeftĀAR০৬rrow;柵ightArrow;柷ightArrow;柶eftĀarγਊightáοightáϊf;쀀𝕃erĀLRਢਬeftArrow;憙ightArrow;憘ƀchtਾੀੂòࡌ;憰rok;䅁;扪Ѐacefiosuਗ਼અઋp;椅y;䐜Ādl੯iumSpace;恟lintrf;愳r;쀀𝔐nusPlus;戓pf;쀀𝕄cò੶;䎜ҀJacefostuણધભીଔଙඑඞcy;䐊cute;䅃ƀaeyહાron;䅇dil;䅅;䐝ƀgswે૰ativeƀMTV૨ediumSpace;怋hiĀcn૦ëeryThiîtedĀGLଆreaterGreateòٳessLesóੈLine;䀊r;쀀𝔑ȀBnptଢନଷreak;恠BreakingSpace;䂠f;愕ڀ;CDEGHLNPRSTV୕ୖ୪௫ఄ಄ದൡඅ櫬Āoungruent;扢pCap;扭oubleVerticalBar;戦ƀlqxஃஊement;戉ualĀ;Tஒஓ扠ilde;쀀≂̸ists;戄reater;EFGLSTஶஷ扯qual;扱ullEqual;쀀≧̸reater;쀀≫̸ess;批lantEqual;쀀⩾̸ilde;扵umpń௲ownHump;쀀≎̸qual;쀀≏̸eĀfsఊధtTriangleƀ;BEచఛడ拪ar;쀀⧏̸qual;括s̀;EGLSTవశ఼ౄోౘ扮qual;扰reater;扸ess;쀀≪̸lantEqual;쀀⩽̸ilde;扴estedĀGL౨౹reaterGreater;쀀⪢̸essLess;쀀⪡̸recedesƀ;ESಒಓಛ技qual;쀀⪯̸lantEqual;拠ĀeiಫಹverseElement;戌ghtTriangleƀ;BEೋೌ拫ar;쀀⧐̸qual;拭ĀquೝഌuareSuĀbp೨setĀ;Eೳ쀀⊏̸qual;拢ersetĀ;Eഃആ쀀⊐̸qual;拣ƀbcpഓതൎsetĀ;Eഛഞ쀀⊂⃒qual;抈ceedsȀ;ESTലള഻െ抁qual;쀀⪰̸lantEqual;拡ilde;쀀≿̸ersetĀ;E൘൛쀀⊃⃒qual;抉ildeȀ;EFT൮൯൵ൿ扁qual;扄ullEqual;扇ilde;扉erticalBar;戤cr;쀀𝒩ilde耻Ñ䃑;䎝܀Eacdfgmoprstuvලෂෛ෧ขภยา฿ไlig;䅒cute耻Ó䃓Āiyීrc耻Ô䃔;䐞blac;䅐r;쀀𝔒rave耻Ò䃒ƀaei෮ෲcr;䅌ga;䎩cron;䎟pf;쀀𝕆enCurlyĀDQฎบoubleQuote;怜uote;怘;橔Āclวฬr;쀀𝒪ash耻Ø䃘iŬืde耻Õ䃕es;樷ml耻Ö䃖erĀBP๋Āar๐๓r;怾acĀek๚;揞et;掴arenthesis;揜ҀacfhilorsງຊຏຒດຝະrtialD;戂y;䐟r;쀀𝔓i;䎦;䎠usMinus;䂱Āipຢອncareplanåڝf;愙Ȁ;eio຺ູ檻cedesȀ;EST່້扺qual;檯lantEqual;扼ilde;找me;怳Ādpuct;戏ortionĀ;aȥl;戝Āci༁༆r;쀀𝒫;䎨ȀUfos༑༖༛༟OT耻"䀢r;쀀𝔔pf;愚cr;쀀𝒬BEacefhiorsu༾གྷཇའཱིྦྷྪྭ႖ႩႴႾarr;椐G耻®䂮ƀcnrཎནབute;䅔g;柫rĀ;tཛྷཝ憠l;椖ƀaeyཧཬཱron;䅘dil;䅖;䐠Ā;vླྀཹ愜erseĀEUྂྙĀlq྇ྎement;戋uilibrium;懋pEquilibrium;楯r»ཹo;䎡ghtЀACDFTUVa࿁ဢဨၛႇϘĀnr࿆࿒gleBracket;柩rowƀ;BL憒ar;懥eftArrow;懄eiling;按oǵ\0စbleBracket;柧nǔည\0နeeVector;楝ectorĀ;Bဝသ懂ar;楕loor;挋Āerိ၃eƀ;AVဵံြ抢rrow;憦ector;楛iangleƀ;BEၐၑၕ抳ar;槐qual;抵pƀDTVၣၮၸownVector;楏eeVector;楜ectorĀ;Bႂႃ憾ar;楔ectorĀ;B႑႒懀ar;楓Āpuႛ႞f;愝ndImplies;楰ightarrow;懛ĀchႹႼr;愛;憱leDelayed;槴ڀHOacfhimoqstuფჱჷჽᄙᄞᅑᅖᅡᅧᆵᆻᆿĀCcჩხHcy;䐩y;䐨FTcy;䐬cute;䅚ʀ;aeiyᄈᄉᄎᄓᄗ檼ron;䅠dil;䅞rc;䅜;䐡r;쀀𝔖ortȀDLRUᄪᄴᄾᅉownArrow»ОeftArrow»࢚ightArrow»pArrow;憑gma;䎣allCircle;战pf;쀀𝕊ɲᅭ\0\0ᅰt;戚areȀ;ISUᅻᅼᆉᆯ斡ntersection;抓uĀbpᆏᆞsetĀ;Eᆗᆘ抏qual;抑ersetĀ;Eᆨᆩ抐qual;抒nion;抔cr;쀀𝒮ar;拆ȀbcmpᇈᇛሉላĀ;sᇍᇎ拐etĀ;Eᇍᇕqual;抆ĀchᇠህeedsȀ;ESTᇭᇮᇴᇿ扻qual;檰lantEqual;扽ilde;承Tháྌ;我ƀ;esሒሓሣ拑rsetĀ;Eሜም抃qual;抇et»ሓրHRSacfhiorsሾቄቕቱቶኟዂወዑORN耻Þ䃞ADE;愢ĀHcቒcy;䐋y;䐦Ābuቚቜ;䀉;䎤ƀaeyብቪቯron;䅤dil;䅢;䐢r;쀀𝔗ĀeiቻDzኀ\0ኇefore;戴a;䎘ĀcnኘkSpace;쀀 Space;怉ldeȀ;EFTካኬኲኼ戼qual;扃ullEqual;扅ilde;扈pf;쀀𝕋ipleDot;惛Āctዖዛr;쀀𝒯rok;䅦ૡዷጎጚጦ\0ጬጱ\0\0\0\0\0ጸጽ፷ᎅ\0ᐄᐊᐐĀcrዻጁute耻Ú䃚rĀ;oጇገ憟cir;楉rǣጓ\0y;䐎ve;䅬Āiyጞጣrc耻Û䃛;䐣blac;䅰r;쀀𝔘rave耻Ù䃙acr;䅪Ādiፁ፩erĀBPፈ፝Āarፍፐr;䁟acĀekፗፙ;揟et;掵arenthesis;揝onĀ;P፰፱拃lus;抎Āgp፻on;䅲f;쀀𝕌ЀADETadps᎕ᎮᎸᏄϨᏒᏗᏳrrowƀ;BDᅐᎠᎤar;椒ownArrow;懅ownArrow;憕quilibrium;楮eeĀ;AᏋᏌ报rrow;憥ownáϳerĀLRᏞᏨeftArrow;憖ightArrow;憗iĀ;lᏹᏺ䏒on;䎥ing;䅮cr;쀀𝒰ilde;䅨ml耻Ü䃜ҀDbcdefosvᐧᐬᐰᐳᐾᒅᒊᒐᒖash;披ar;櫫y;䐒ashĀ;lᐻᐼ抩;櫦Āerᑃᑅ;拁ƀbtyᑌᑐᑺar;怖Ā;iᑏᑕcalȀBLSTᑡᑥᑪᑴar;戣ine;䁼eparator;杘ilde;所ThinSpace;怊r;쀀𝔙pf;쀀𝕍cr;쀀𝒱dash;抪ʀcefosᒧᒬᒱᒶᒼirc;䅴dge;拀r;쀀𝔚pf;쀀𝕎cr;쀀𝒲Ȁfiosᓋᓐᓒᓘr;쀀𝔛;䎞pf;쀀𝕏cr;쀀𝒳ҀAIUacfosuᓱᓵᓹᓽᔄᔏᔔᔚᔠcy;䐯cy;䐇cy;䐮cute耻Ý䃝Āiyᔉᔍrc;䅶;䐫r;쀀𝔜pf;쀀𝕐cr;쀀𝒴ml;䅸ЀHacdefosᔵᔹᔿᕋᕏᕝᕠᕤcy;䐖cute;䅹Āayᕄᕉron;䅽;䐗ot;䅻Dzᕔ\0ᕛoWidtèa;䎖r;愨pf;愤cr;쀀𝒵ᖃᖊᖐ\0ᖰᖶᖿ\0\0\0\0ᗆᗛᗫᙟ᙭\0ᚕ᚛ᚲᚹ\0ᚾcute耻á䃡reve;䄃̀;Ediuyᖜᖝᖡᖣᖨᖭ戾;쀀∾̳;房rc耻â䃢te肻´̆;䐰lig耻æ䃦Ā;r²ᖺ;쀀𝔞rave耻à䃠ĀepᗊᗖĀfpᗏᗔsym;愵èᗓha;䎱ĀapᗟcĀclᗤᗧr;䄁g;樿ɤᗰ\0\0ᘊʀ;adsvᗺᗻᗿᘁᘇ戧nd;橕;橜lope;橘;橚;elmrszᘘᘙᘛᘞᘿᙏᙙ戠;榤e»ᘙsdĀ;aᘥᘦ戡ѡᘰᘲᘴᘶᘸᘺᘼᘾ;榨;榩;榪;榫;榬;榭;榮;榯tĀ;vᙅᙆ戟bĀ;dᙌᙍ抾;榝Āptᙔᙗh;戢»¹arr;捼Āgpᙣᙧon;䄅f;쀀𝕒;Eaeiopᙻᙽᚂᚄᚇᚊ;橰cir;橯;扊d;手s;䀧roxĀ;eᚒñᚃing耻å䃥ƀctyᚡᚦᚨr;쀀𝒶;䀪mpĀ;eᚯñʈilde耻ã䃣ml耻ä䃤Āciᛂᛈoninôɲnt;樑ࠀNabcdefiklnoprsu᛭ᛱᜰᝃᝈ០៦ᠹᡐᜍ᥈ᥰot;櫭ĀcrᛶkȀcepsᜀᜅᜍᜓong;扌psilon;䏶rime;怵imĀ;e戽q;拍Ŷᜢᜦee;抽edĀ;gᜬᜭ挅e»ᜭrkĀ;tbrk;掶Āoyᜁᝁ;䐱quo;怞ʀcmprtᝓᝡᝤᝨausĀ;eĊĉptyv;榰séᜌnoõēƀahwᝯᝳ;䎲;愶een;扬r;쀀𝔟gcostuvwឍឝឳេ៕៛ƀaiuបពរðݠrc;旯p»፱ƀdptឤឨឭot;樀lus;樁imes;樂ɱឹ\0\0ើcup;樆ar;昅riangleĀdu៍្own;施p;斳plus;樄eåᑄåᒭarow;植ƀakoᠦᠵĀcn៲ᠣkƀlst֫᠂ozenge;槫riangleȀ;dlr᠒᠓᠘斴own;斾eft;旂ight;斸k;搣Ʊᠫ\0ᠳƲᠯ\0ᠱ;斒;斑4;斓ck;斈ĀeoᠾᡍĀ;qᡃᡆ쀀=⃥uiv;쀀≡⃥t;挐Ȁptwxᡙᡞᡧᡬf;쀀𝕓Ā;tᏋᡣom»Ꮜtie;拈DHUVbdhmptuvᢅᢖᢪᢻᣗᣛᣬᤅᤊᤐᤡȀLRlrᢎᢐᢒᢔ;敗;敔;敖;敓ʀ;DUduᢡᢢᢤᢦᢨ敐;敦;敩;敤;敧ȀLRlrᢳᢵᢷᢹ;敝;敚;敜;教;HLRhlrᣊᣋᣍᣏᣑᣓᣕ救;敬;散;敠;敫;敢;敟ox;槉ȀLRlrᣤᣦᣨᣪ;敕;敒;攐;攌ʀ;DUduڽ;敥;敨;攬;攴inus;抟lus;択imes;抠ȀLRlrᤙᤛᤝ;敛;敘;攘;攔;HLRhlrᤰᤱᤳᤵᤷ᤻᤹攂;敪;敡;敞;攼;攤;攜Āevģbar耻¦䂦Ȁceioᥑᥖᥚᥠr;쀀𝒷mi;恏mĀ;elƀ;bhᥨᥩᥫ䁜;槅sub;柈ŬᥴlĀ;e怢t»pƀ;Eeįᦅᦇ;檮Ā;qۜۛೡᦧ\0᧨ᨑᨕᨲ\0ᨷᩐ\0\0᪴\0\0᫁\0\0ᬡᬮ᭒\0᯽\0ᰌƀcprᦲute;䄇̀;abcdsᦿᧀᧄ᧕᧙戩nd;橄rcup;橉Āau᧒p;橋p;橇ot;橀;쀀∩︀Āeo᧢᧥t;恁îړȀaeiu᧰᧻ᨁᨅǰ᧵\0᧸s;橍on;䄍dil耻ç䃧rc;䄉psĀ;sᨌᨍ橌m;橐ot;䄋ƀdmnᨛᨠᨦil肻¸ƭptyv;榲t脀¢;eᨭᨮ䂢räƲr;쀀𝔠ƀceiᨽᩀᩍy;䑇ckĀ;mᩇᩈ朓ark»ᩈ;䏇r;Ecefms᩠ᩢᩫ᪤᪪旋;槃ƀ;elᩩᩪᩭ䋆q;扗eɡᩴ\0\0᪈rrowĀlr᩼᪁eft;憺ight;憻ʀRSacd᪒᪔᪖»ཇ;擈st;抛irc;抚ash;抝nint;樐id;櫯cir;槂ubsĀ;u᪻᪼晣it»᪼ˬ᫇\0ᬊonĀ;eᫍᫎ䀺Ā;qÇÆɭ\0\0aĀ;t䀬;䁀ƀ;fl戁îᅠeĀmxent»eóɍǧ\0ᬇĀ;dኻᬂot;橭nôɆƀfryᬐᬔᬗ;쀀𝕔oäɔ脀©;sŕᬝr;愗Āaoᬥᬩrr;憵ss;朗Ācuᬲᬷr;쀀𝒸Ābpᬼ᭄Ā;eᭁᭂ櫏;櫑Ā;eᭉᭊ櫐;櫒dot;拯delprvw᭠᭬᭷ᮂᮬᯔarrĀlr᭨᭪;椸;椵ɰ᭲\0\0᭵r;拞c;拟arrĀ;pᮀ憶;椽̀;bcdosᮏᮐᮖᮡᮥᮨ截rcap;橈Āauᮛᮞp;橆p;橊ot;抍r;橅;쀀∪︀Ȁalrv᮵ᮿᯞᯣrrĀ;mᮼᮽ憷;椼yƀevwᯇᯔᯘqɰᯎ\0\0ᯒreã᭳uã᭵ee;拎edge;拏en耻¤䂤earrowĀlrᯮ᯳eft»ᮀight»ᮽeäᯝĀciᰁᰇoninôǷnt;戱lcty;挭ঀAHabcdefhijlorstuwz᰻᰿ᱝᱩᱵᲞᲬᲷᴍᵻᶑᶫᶻ᷆᷍ròar;楥Ȁglrs᱈ᱍ᱒᱔ger;怠eth;愸òᄳhĀ;vᱚᱛ怐»ऊūᱡᱧarow;椏aã̕Āayᱮᱳron;䄏;䐴ƀ;ao̲ᱼᲄĀgrʿᲁr;懊tseq;橷ƀglmᲑᲔᲘ耻°䂰ta;䎴ptyv;榱ĀirᲣᲨsht;楿;쀀𝔡arĀlrᲳᲵ»ࣜ»သʀaegsv᳂᳖᳜᳠mƀ;oș᳔ndĀ;ș᳑uit;晦amma;䏝in;拲ƀ;io᳧᳨᳸䃷de脀÷;o᳧ᳰntimes;拇nø᳷cy;䑒cɯᴆ\0\0ᴊrn;挞op;挍ʀlptuwᴘᴝᴢᵉᵕlar;䀤f;쀀𝕕ʀ;emps̋ᴭᴷᴽᵂqĀ;d͒ᴳot;扑inus;戸lus;戔quare;抡blebarwedgåúnƀadhᄮᵝᵧownarrowóᲃarpoonĀlrᵲᵶefôᲴighôᲶŢᵿᶅkaro÷གɯᶊ\0\0ᶎrn;挟op;挌ƀcotᶘᶣᶦĀryᶝᶡ;쀀𝒹;䑕l;槶rok;䄑Ādrᶰᶴot;拱iĀ;fᶺ᠖斿Āah᷀᷃ròЩaòྦangle;榦Āci᷒ᷕy;䑟grarr;柿ऀDacdefglmnopqrstuxḁḉḙḸոḼṉṡṾấắẽỡἪἷὄĀDoḆᴴoôĀcsḎḔute耻é䃩ter;橮ȀaioyḢḧḱḶron;䄛rĀ;cḭḮ扖耻ê䃪lon;払;䑍ot;䄗ĀDrṁṅot;扒;쀀𝔢ƀ;rsṐṑṗ檚ave耻è䃨Ā;dṜṝ檖ot;檘Ȁ;ilsṪṫṲṴ檙nters;揧;愓Ā;dṹṺ檕ot;檗ƀapsẅẉẗcr;䄓tyƀ;svẒẓẕ戅et»ẓpĀ1;ẝẤijạả;怄;怅怃ĀgsẪẬ;䅋p;怂ĀgpẴẸon;䄙f;쀀𝕖ƀalsỄỎỒrĀ;sỊị拕l;槣us;橱iƀ;lvỚớở䎵on»ớ;䏵ȀcsuvỪỳἋἣĀioữḱrc»Ḯɩỹ\0\0ỻíՈantĀglἂἆtr»ṝess»ṺƀaeiἒἚls;䀽st;扟vĀ;DȵἠD;橸parsl;槥ĀDaἯἳot;打rr;楱ƀcdiἾὁỸr;愯oô͒ĀahὉὋ;䎷耻ð䃰Āmrὓὗl耻ë䃫o;悬ƀcipὡὤὧl;䀡sôծĀeoὬὴctatioîՙnentialåչৡᾒ\0ᾞ\0ᾡᾧ\0\0ῆῌ\0ΐ\0ῦῪ \0 ⁚llingdotseñṄy;䑄male;晀ƀilrᾭᾳ῁lig;耀ffiɩᾹ\0\0᾽g;耀ffig;耀ffl;쀀𝔣lig;耀filig;쀀fjƀaltῙῡt;晭ig;耀flns;斱of;䆒ǰ΅\0ῳf;쀀𝕗ĀakֿῷĀ;vῼ´拔;櫙artint;樍Āao⁕Ācs‑⁒ႉ‸⁅⁈\0⁐β•‥‧\0耻½䂽;慓耻¼䂼;慕;慙;慛Ƴ‴\0‶;慔;慖ʴ‾⁁\0\0⁃耻¾䂾;慗;慜5;慘ƶ⁌\0⁎;慚;慝8;慞l;恄wn;挢cr;쀀𝒻ࢀEabcdefgijlnorstv₂₉₥₰₴⃰℃ℒℸ̗ℾ⅒↞Ā;lٍ₇;檌ƀcmpₐₕute;䇵maĀ;dₜ᳚䎳;檆reve;䄟Āiy₪₮rc;䄝;䐳ot;䄡Ȁ;lqsؾق₽ƀ;qsؾٌlanô٥Ȁ;cdl٥⃒⃥⃕c;檩otĀ;o⃜⃝檀Ā;l⃢⃣檂;檄Ā;e⃪⃭쀀⋛︀s;檔r;쀀𝔤Ā;gٳ؛mel;愷cy;䑓Ȁ;Eajٚℌℎℐ;檒;檥;檤ȀEaesℛℝ℩ℴ;扩pĀ;p℣ℤ檊rox»ℤĀ;q℮ℯ檈Ā;q℮ℛim;拧pf;쀀𝕘Āci⅃ⅆr;愊mƀ;el٫ⅎ⅐;檎;檐茀>;cdlqrⅠⅪⅮⅳⅹĀciⅥⅧ;檧r;橺ot;拗Par;榕uest;橼ʀadelsↄⅪ←ٖ↛ǰ↉\0proør;楸qĀlqؿ↖lesó₈ií٫Āen↣↭rtneqq;쀀≩︀Å↪ԀAabcefkosy⇄⇇⇱⇵⇺∘∝∯≨≽ròΠȀilmr⇐⇔⇗⇛rsðᒄf»․ilôکĀdr⇠⇤cy;䑊ƀ;cwࣴ⇫⇯ir;楈;憭ar;意irc;䄥ƀalr∁∎∓rtsĀ;u∉∊晥it»∊lip;怦con;抹r;쀀𝔥sĀew∣∩arow;椥arow;椦ʀamopr∺∾≃≞≣rr;懿tht;戻kĀlr≉≓eftarrow;憩ightarrow;憪f;쀀𝕙bar;怕ƀclt≯≴≸r;쀀𝒽asè⇴rok;䄧Ābp⊂⊇ull;恃hen»ᱛૡ⊣\0⊪\0⊸⋅⋎\0⋕⋳\0\0⋸⌢⍧⍢⍿\0⎆⎪⎴cute耻í䃭ƀ;iyݱ⊰⊵rc耻î䃮;䐸Ācx⊼⊿y;䐵cl耻¡䂡ĀfrΟ⋉;쀀𝔦rave耻ì䃬Ȁ;inoܾ⋝⋩⋮Āin⋢⋦nt;樌t;戭fin;槜ta;愩lig;䄳ƀaop⋾⌚⌝ƀcgt⌅⌈⌗r;䄫ƀelpܟ⌏⌓inåގarôܠh;䄱f;抷ed;䆵ʀ;cfotӴ⌬⌱⌽⍁are;愅inĀ;t⌸⌹戞ie;槝doô⌙ʀ;celpݗ⍌⍐⍛⍡al;抺Āgr⍕⍙eróᕣã⍍arhk;樗rod;樼Ȁcgpt⍯⍲⍶⍻y;䑑on;䄯f;쀀𝕚a;䎹uest耻¿䂿Āci⎊⎏r;쀀𝒾nʀ;EdsvӴ⎛⎝⎡ӳ;拹ot;拵Ā;v⎦⎧拴;拳Ā;iݷ⎮lde;䄩ǫ⎸\0⎼cy;䑖l耻ï䃯̀cfmosu⏌⏗⏜⏡⏧⏵Āiy⏑⏕rc;䄵;䐹r;쀀𝔧ath;䈷pf;쀀𝕛ǣ⏬\0⏱r;쀀𝒿rcy;䑘kcy;䑔Ѐacfghjos␋␖␢ppaĀ;v␓␔䎺;䏰Āey␛␠dil;䄷;䐺r;쀀𝔨reen;䄸cy;䑅cy;䑜pf;쀀𝕜cr;쀀𝓀ABEHabcdefghjlmnoprstuv⑰⒁⒆⒍⒑┎┽╚▀♎♞♥♹♽⚚⚲⛘❝❨➋⟀⠁⠒ƀart⑷⑺⑼ròòΕail;椛arr;椎Ā;gঔ⒋;檋ar;楢ॣ⒥\0⒪\0⒱\0\0\0\0\0⒵Ⓔ\0ⓆⓈⓍ\0⓹ute;䄺mptyv;榴raîࡌbda;䎻gƀ;dlࢎⓁⓃ;榑åࢎ;檅uo耻«䂫rЀ;bfhlpst࢙ⓞⓦⓩ⓫⓮⓱⓵Ā;f࢝ⓣs;椟s;椝ë≒p;憫l;椹im;楳l;憢ƀ;ae⓿─┄檫il;椙Ā;s┉┊檭;쀀⪭︀ƀabr┕┙┝rr;椌rk;杲Āak┢┬cĀek┨┪;䁻;䁛Āes┱┳;榋lĀdu┹┻;榏;榍Ȁaeuy╆╋╖╘ron;䄾Ādi═╔il;䄼ìࢰâ┩;䐻Ȁcqrs╣╦╭╽a;椶uoĀ;rนᝆĀdu╲╷har;楧shar;楋h;憲ʀ;fgqs▋▌উ◳◿扤tʀahlrt▘▤▷◂◨rrowĀ;t࢙□aé⓶arpoonĀdu▯▴own»њp»०eftarrows;懇ightƀahs◍◖◞rrowĀ;sࣴࢧarpoonóquigarro÷⇰hreetimes;拋ƀ;qs▋ও◺lanôবʀ;cdgsব☊☍☝☨c;檨otĀ;o☔☕橿Ā;r☚☛檁;檃Ā;e☢☥쀀⋚︀s;檓ʀadegs☳☹☽♉♋pproøⓆot;拖qĀgq♃♅ôউgtò⒌ôছiíলƀilr♕࣡♚sht;楼;쀀𝔩Ā;Eজ♣;檑š♩♶rĀdu▲♮Ā;l॥♳;楪lk;斄cy;䑙ʀ;achtੈ⚈⚋⚑⚖rò◁orneòᴈard;楫ri;旺Āio⚟⚤dot;䅀ustĀ;a⚬⚭掰che»⚭ȀEaes⚻⚽⛉⛔;扨pĀ;p⛃⛄檉rox»⛄Ā;q⛎⛏檇Ā;q⛎⚻im;拦Ѐabnoptwz⛩⛴⛷✚✯❁❇❐Ānr⛮⛱g;柬r;懽rëࣁgƀlmr⛿✍✔eftĀar০✇ightá৲apsto;柼ightá৽parrowĀlr✥✩efô⓭ight;憬ƀafl✶✹✽r;榅;쀀𝕝us;樭imes;樴š❋❏st;戗áፎƀ;ef❗❘᠀旊nge»❘arĀ;l❤❥䀨t;榓ʀachmt❳❶❼➅➇ròࢨorneòᶌarĀ;d➃;業;怎ri;抿̀achiqt➘➝ੀ➢➮➻quo;怹r;쀀𝓁mƀ;egল➪➬;檍;檏Ābu┪➳oĀ;rฟ➹;怚rok;䅂萀<;cdhilqrࠫ⟒☹⟜⟠⟥⟪⟰Āci⟗⟙;檦r;橹reå◲mes;拉arr;楶uest;橻ĀPi⟵⟹ar;榖ƀ;ef⠀भ旃rĀdu⠇⠍shar;楊har;楦Āen⠗⠡rtneqq;쀀≨︀Å⠞܀Dacdefhilnopsu⡀⡅⢂⢎⢓⢠⢥⢨⣚⣢⣤ઃ⣳⤂Dot;戺Ȁclpr⡎⡒⡣⡽r耻¯䂯Āet⡗⡙;時Ā;e⡞⡟朠se»⡟Ā;sျ⡨toȀ;dluျ⡳⡷⡻owîҌefôएðᏑker;斮Āoy⢇⢌mma;権;䐼ash;怔asuredangle»ᘦr;쀀𝔪o;愧ƀcdn⢯⢴⣉ro耻µ䂵Ȁ;acdᑤ⢽⣀⣄sôᚧir;櫰ot肻·Ƶusƀ;bd⣒ᤃ⣓戒Ā;uᴼ⣘;横ţ⣞⣡p;櫛ò−ðઁĀdp⣩⣮els;抧f;쀀𝕞Āct⣸⣽r;쀀𝓂pos»ᖝƀ;lm⤉⤊⤍䎼timap;抸ఀGLRVabcdefghijlmoprstuvw⥂⥓⥾⦉⦘⧚⧩⨕⨚⩘⩝⪃⪕⪤⪨⬄⬇⭄⭿⮮ⰴⱧⱼ⳩Āgt⥇⥋;쀀⋙̸Ā;v⥐쀀≫⃒ƀelt⥚⥲⥶ftĀar⥡⥧rrow;懍ightarrow;懎;쀀⋘̸Ā;v⥻ే쀀≪⃒ightarrow;懏ĀDd⦎⦓ash;抯ash;抮ʀbcnpt⦣⦧⦬⦱⧌la»˞ute;䅄g;쀀∠⃒ʀ;Eiop⦼⧀⧅⧈;쀀⩰̸d;쀀≋̸s;䅉roøurĀ;a⧓⧔普lĀ;s⧓ସdz⧟\0⧣p肻 ଷmpĀ;e௹ఀʀaeouy⧴⧾⨃⨐⨓ǰ⧹\0⧻;橃on;䅈dil;䅆ngĀ;dൾ⨊ot;쀀⩭̸p;橂;䐽ash;怓;Aadqsxஒ⨩⨭⨻⩁⩅⩐rr;懗rĀhr⨳⨶k;椤Ā;oᏲᏰot;쀀≐̸uiöୣĀei⩊⩎ar;椨íistĀ;sடr;쀀𝔫ȀEest⩦⩹⩼ƀ;qs⩭ƀ;qs⩴lanôií௪Ā;rஶ⪁»ஷƀAap⪊⪍⪑rò⥱rr;憮ar;櫲ƀ;svྍ⪜ྌĀ;d⪡⪢拼;拺cy;䑚AEadest⪷⪺⪾⫂⫅⫶⫹rò⥦;쀀≦̸rr;憚r;急Ȁ;fqs⫎⫣⫯tĀar⫔⫙rro÷⫁ightarro÷⪐ƀ;qs⪺⫪lanôౕĀ;sౕ⫴»శiíౝĀ;rవ⫾iĀ;eచథiäඐĀpt⬌⬑f;쀀𝕟膀¬;in⬙⬚⬶䂬nȀ;Edvஉ⬤⬨⬮;쀀⋹̸ot;쀀⋵̸ǡஉ⬳⬵;拷;拶iĀ;vಸ⬼ǡಸ⭁⭃;拾;拽ƀaor⭋⭣⭩rȀ;ast⭕⭚⭟lleìl;쀀⫽⃥;쀀∂̸lint;樔ƀ;ceಒ⭰⭳uåಥĀ;cಘ⭸Ā;eಒ⭽ñಘȀAait⮈⮋⮝⮧rò⦈rrƀ;cw⮔⮕⮙憛;쀀⤳̸;쀀↝̸ghtarrow»⮕riĀ;eೋೖchimpqu⮽⯍⯙⬄⯤⯯Ȁ;cerല⯆ഷ⯉uå;쀀𝓃ortɭ⬅\0\0⯖ará⭖mĀ;e൮⯟Ā;q൴൳suĀbp⯫⯭ååഋƀbcp⯶ⰑⰙȀ;Ees⯿ⰀഢⰄ抄;쀀⫅̸etĀ;eഛⰋqĀ;qണⰀcĀ;eലⰗñസȀ;EesⰢⰣൟⰧ抅;쀀⫆̸etĀ;e൘ⰮqĀ;qൠⰣȀgilrⰽⰿⱅⱇìௗlde耻ñ䃱çృiangleĀlrⱒⱜeftĀ;eచⱚñదightĀ;eೋⱥñĀ;mⱬⱭ䎽ƀ;esⱴⱵⱹ䀣ro;愖p;怇ҀDHadgilrsⲏⲔⲙⲞⲣⲰⲶⳓⳣash;抭arr;椄p;쀀≍⃒ash;抬ĀetⲨⲬ;쀀≥⃒;쀀>⃒nfin;槞ƀAetⲽⳁⳅrr;椂;쀀≤⃒Ā;rⳊⳍ쀀<⃒ie;쀀⊴⃒ĀAtⳘⳜrr;椃rie;쀀⊵⃒im;쀀∼⃒ƀAan⳰ⴂrr;懖rĀhr⳺⳽k;椣Ā;oᏧᏥear;椧ቓ᪕\0\0\0\0\0\0\0\0\0\0\0\0\0ⴭ\0ⴸⵈⵠⵥⶄᬇ\0\0ⶍⶫ\0ⷈⷎ\0ⷜ⸙⸫⸾⹃Ācsⴱ᪗ute耻ó䃳ĀiyⴼⵅrĀ;cⵂ耻ô䃴;䐾ʀabios᪠ⵒⵗLjⵚlac;䅑v;樸old;榼lig;䅓Ācrir;榿;쀀𝔬ͯ\0\0\0ⶂn;䋛ave耻ò䃲;槁Ābmⶈ෴ar;榵Ȁacitⶕⶥⶨrò᪀Āirⶠr;榾oss;榻nå๒;槀ƀaeiⶱⶵⶹcr;䅍ga;䏉ƀcdnⷀⷅǍron;䎿;榶pf;쀀𝕠ƀaelⷔǒr;榷rp;榹;adiosvⷪⷫⷮ⸈⸍⸐⸖戨rò᪆Ȁ;efmⷷⷸ⸂⸅橝rĀ;oⷾⷿ愴f»ⷿ耻ª䂪耻º䂺gof;抶r;橖lope;橗;橛ƀclo⸟⸡⸧ò⸁ash耻ø䃸l;折iŬⸯ⸴de耻õ䃵esĀ;aǛ⸺s;樶ml耻ö䃶bar;挽ૡ\0\0⺀⺝\0⺢⺹\0\0⻋ຜ\0⼓\0\0⼫⾼\0⿈rȀ;astЃ脀¶;l䂶leìЃɩ\0\0m;櫳;櫽y;䐿rʀcimpt⺋⺏⺓ᡥ⺗nt;䀥od;䀮il;怰enk;怱r;쀀𝔭ƀimo⺨⺰⺴Ā;v⺭⺮䏆;䏕maô੶ne;明ƀ;tv⺿⻀⻈䏀chfork»´;䏖Āau⻏⻟nĀck⻕⻝kĀ;h⇴⻛;愎ö⇴sҀ;abcdemst⻳ᤈ⼄⼆⼊⼎䀫cir;樣ir;樢Āouᵀ⼂;樥;橲n肻±ຝim;樦wo;樧ƀipu⼙⼠⼥ntint;樕f;쀀𝕡nd耻£䂣Ԁ;Eaceinosu່⼿⽁⽄⽇⾁⾉⾒⽾⾶;檳p;檷uå໙Ā;c໎⽌̀;acens່⽙⽟⽦⽨⽾pproø⽃urlyeñ໙ñ໎ƀaes⽯⽶⽺pprox;檹qq;檵im;拨iíໟmeĀ;s⾈ຮ怲ƀEas⽸⾐⽺ð⽵ƀdfp⾙⾯ƀals⾠⾥⾪lar;挮ine;挒urf;挓Ā;t⾴ïrel;抰Āci⿀⿅r;쀀𝓅;䏈ncsp;怈̀fiopsu⋢⿱r;쀀𝔮pf;쀀𝕢rime;恗cr;쀀𝓆ƀaeo⿸〉〓tĀei々rnionóڰnt;樖stĀ;e【】䀿ñἙô༔ABHabcdefhilmnoprstuxけさすムㄎㄫㅇㅢㅲㆎ㈆㈕㈤㈩㉘㉮㉲㊐㊰㊷ƀartぇおがròႳòϝail;検aròᱥar;楤cdenqrtとふへみわゔヌĀeuねぱ;쀀∽̱te;䅕iãᅮmptyv;榳gȀ;del࿑らるろ;榒;榥å࿑uo耻»䂻rր;abcfhlpstwガクシスゼゾダッデナp;極Ā;fゴs;椠;椳s;椞ë≝ð✮l;楅im;楴l;憣;憝Āaiパフil;椚oĀ;nホボ戶aló༞ƀabrョリヮrò៥rk;杳ĀakンヽcĀekヹ・;䁽;䁝Āes;榌lĀduㄊㄌ;榎;榐Ȁaeuyㄗㄜㄧㄩron;䅙Ādiㄡㄥil;䅗ìâヺ;䑀Ȁclqsㄴㄷㄽㅄa;椷dhar;楩uoĀ;rȎȍh;憳ƀacgㅎㅟངlȀ;ipsླྀㅘㅛႜnåႻarôྩt;断ƀilrㅩဣㅮsht;楽;쀀𝔯ĀaoㅷㆆrĀduㅽㅿ»ѻĀ;l႑ㆄ;楬Ā;vㆋㆌ䏁;䏱ƀgns㆕ㇹㇼht̀ahlrstㆤㆰ㇂㇘rrowĀ;tㆭaéトarpoonĀduㆻㆿowîㅾp»႒eftĀah㇊㇐rrowóarpoonóՑightarrows;應quigarro÷ニhreetimes;拌g;䋚ingdotseñἲƀahm㈍㈐㈓ròaòՑ;怏oustĀ;a㈞掱che»mid;櫮Ȁabpt㈲㈽㉀㉒Ānr㈷㈺g;柭r;懾rëဃƀafl㉇㉊㉎r;榆;쀀𝕣us;樮imes;樵Āap㉝㉧rĀ;g㉣㉤䀩t;榔olint;樒arò㇣Ȁachq㉻㊀Ⴜ㊅quo;怺r;쀀𝓇Ābu・㊊oĀ;rȔȓƀhir㊗㊛㊠reåㇸmes;拊iȀ;efl㊪ၙᠡ㊫方tri;槎luhar;楨;愞ൡ㋕㋛㋟㌬㌸㍱\0㍺㎤\0\0㏬㏰\0㐨㑈㑚㒭㒱㓊㓱\0㘖\0\0㘳cute;䅛quï➺Ԁ;Eaceinpsyᇭ㋳㋵㋿㌂㌋㌏㌟㌦㌩;檴ǰ㋺\0㋼;檸on;䅡uåᇾĀ;dᇳ㌇il;䅟rc;䅝ƀEas㌖㌘㌛;檶p;檺im;择olint;樓iíሄ;䑁otƀ;be㌴ᵇ㌵担;橦Aacmstx㍆㍊㍗㍛㍞㍣㍭rr;懘rĀhr㍐㍒ë∨Ā;oਸ਼t耻§䂧i;䀻war;椩mĀin㍩ðnuóñt;朶rĀ;o㍶⁕쀀𝔰Ȁacoy㎂㎆㎑㎠rp;景Āhy㎋㎏cy;䑉;䑈rtɭ㎙\0\0㎜iäᑤaraì耻䂭Āgm㎨㎴maƀ;fv㎱㎲㎲䏃;䏂Ѐ;deglnprካ㏅㏉㏎㏖㏞㏡㏦ot;橪Ā;qኰĀ;E㏓㏔檞;檠Ā;E㏛㏜檝;檟e;扆lus;樤arr;楲aròᄽȀaeit㏸㐈㐏㐗Āls㏽㐄lsetmé㍪hp;樳parsl;槤Ādlᑣ㐔e;挣Ā;e㐜㐝檪Ā;s㐢㐣檬;쀀⪬︀ƀflp㐮㐳㑂tcy;䑌Ā;b㐸㐹䀯Ā;a㐾㐿槄r;挿f;쀀𝕤aĀdr㑍ЂesĀ;u㑔㑕晠it»㑕ƀcsu㑠㑹㒟Āau㑥㑯pĀ;sᆈ㑫;쀀⊓︀pĀ;sᆴ㑵;쀀⊔︀uĀbp㑿㒏ƀ;esᆗᆜ㒆etĀ;eᆗ㒍ñᆝƀ;esᆨᆭ㒖etĀ;eᆨ㒝ñᆮƀ;afᅻ㒦ְrť㒫ֱ»ᅼaròᅈȀcemt㒹㒾㓂㓅r;쀀𝓈tmîñiì㐕aræᆾĀar㓎㓕rĀ;f㓔ឿ昆Āan㓚㓭ightĀep㓣㓪psiloîỠhé⺯s»⡒ʀbcmnp㓻㕞ሉ㖋㖎Ҁ;Edemnprs㔎㔏㔑㔕㔞㔣㔬㔱㔶抂;櫅ot;檽Ā;dᇚ㔚ot;櫃ult;櫁ĀEe㔨㔪;櫋;把lus;檿arr;楹ƀeiu㔽㕒㕕tƀ;en㔎㕅㕋qĀ;qᇚ㔏eqĀ;q㔫㔨m;櫇Ābp㕚㕜;櫕;櫓c̀;acensᇭ㕬㕲㕹㕻㌦pproø㋺urlyeñᇾñᇳƀaes㖂㖈㌛pproø㌚qñ㌗g;晪ڀ123;Edehlmnps㖩㖬㖯ሜ㖲㖴㗀㗉㗕㗚㗟㗨㗭耻¹䂹耻²䂲耻³䂳;櫆Āos㖹㖼t;檾ub;櫘Ā;dሢ㗅ot;櫄sĀou㗏㗒l;柉b;櫗arr;楻ult;櫂ĀEe㗤㗦;櫌;抋lus;櫀ƀeiu㗴㘉㘌tƀ;enሜ㗼㘂qĀ;qሢ㖲eqĀ;q㗧㗤m;櫈Ābp㘑㘓;櫔;櫖ƀAan㘜㘠㘭rr;懙rĀhr㘦㘨ë∮Ā;oਫwar;椪lig耻ß䃟㙑㙝㙠ዎ㙳㙹\0㙾㛂\0\0\0\0\0㛛㜃\0㜉㝬\0\0\0㞇ɲ㙖\0\0㙛get;挖;䏄rëƀaey㙦㙫㙰ron;䅥dil;䅣;䑂lrec;挕r;쀀𝔱Ȁeiko㚆㚝㚵㚼Dz㚋\0㚑eĀ4fኄኁaƀ;sv㚘㚙㚛䎸ym;䏑Ācn㚢㚲kĀas㚨㚮pproøim»ኬsðኞĀas㚺㚮ðrn耻þ䃾Ǭ̟㛆⋧es膀×;bd㛏㛐㛘䃗Ā;aᤏ㛕r;樱;樰ƀeps㛡㛣㜀á⩍Ȁ;bcf҆㛬㛰㛴ot;挶ir;櫱Ā;o㛹㛼쀀𝕥rk;櫚á㍢rime;怴ƀaip㜏㜒㝤dåቈadempst㜡㝍㝀㝑㝗㝜㝟ngleʀ;dlqr㜰㜱㜶㝀㝂斵own»ᶻeftĀ;e⠀㜾ñम;扜ightĀ;e㊪㝋ñၚot;旬inus;樺lus;樹b;槍ime;樻ezium;揢ƀcht㝲㝽㞁Āry㝷㝻;쀀𝓉;䑆cy;䑛rok;䅧Āio㞋㞎xôheadĀlr㞗㞠eftarro÷ࡏightarrow»ཝऀAHabcdfghlmoprstuw㟐㟓㟗㟤㟰㟼㠎㠜㠣㠴㡑㡝㡫㢩㣌㣒㣪㣶ròϭar;楣Ācr㟜㟢ute耻ú䃺òᅐrǣ㟪\0㟭y;䑞ve;䅭Āiy㟵㟺rc耻û䃻;䑃ƀabh㠃㠆㠋ròᎭlac;䅱aòᏃĀir㠓㠘sht;楾;쀀𝔲rave耻ù䃹š㠧㠱rĀlr㠬㠮»ॗ»ႃlk;斀Āct㠹㡍ɯ㠿\0\0㡊rnĀ;e㡅㡆挜r»㡆op;挏ri;旸Āal㡖㡚cr;䅫肻¨͉Āgp㡢㡦on;䅳f;쀀𝕦̀adhlsuᅋ㡸㡽፲㢑㢠ownáᎳarpoonĀlr㢈㢌efô㠭ighô㠯iƀ;hl㢙㢚㢜䏅»ᏺon»㢚parrows;懈ƀcit㢰㣄㣈ɯ㢶\0\0㣁rnĀ;e㢼㢽挝r»㢽op;挎ng;䅯ri;旹cr;쀀𝓊ƀdir㣙㣝㣢ot;拰lde;䅩iĀ;f㜰㣨»᠓Āam㣯㣲rò㢨l耻ü䃼angle;榧ހABDacdeflnoprsz㤜㤟㤩㤭㦵㦸㦽㧟㧤㧨㧳㧹㧽㨁㨠ròϷarĀ;v㤦㤧櫨;櫩asèϡĀnr㤲㤷grt;榜eknprst㓣㥆㥋㥒㥝㥤㦖appá␕othinçẖƀhir㓫⻈㥙opô⾵Ā;hᎷ㥢ïㆍĀiu㥩㥭gmá㎳Ābp㥲㦄setneqĀ;q㥽㦀쀀⊊︀;쀀⫋︀setneqĀ;q㦏㦒쀀⊋︀;쀀⫌︀Āhr㦛㦟etá㚜iangleĀlr㦪㦯eft»थight»ၑy;䐲ash»ံƀelr㧄㧒㧗ƀ;beⷪ㧋㧏ar;抻q;扚lip;拮Ābt㧜ᑨaòᑩr;쀀𝔳tré㦮suĀbp㧯㧱»ജ»൙pf;쀀𝕧roðtré㦴Ācu㨆㨋r;쀀𝓋Ābp㨐㨘nĀEe㦀㨖»㥾nĀEe㦒㨞»㦐igzag;榚cefoprs㨶㨻㩖㩛㩔㩡㩪irc;䅵Ādi㩀㩑Ābg㩅㩉ar;機eĀ;qᗺ㩏;扙erp;愘r;쀀𝔴pf;쀀𝕨Ā;eᑹ㩦atèᑹcr;쀀𝓌ૣណ㪇\0㪋\0㪐㪛\0\0㪝㪨㪫㪯\0\0㫃㫎\0㫘ៜtré៑r;쀀𝔵ĀAa㪔㪗ròσrò৶;䎾ĀAa㪡㪤ròθrò৫að✓is;拻ƀdptឤ㪵㪾Āfl㪺ឩ;쀀𝕩imåឲĀAa㫇㫊ròώròਁĀcq㫒ីr;쀀𝓍Āpt៖㫜ré។Ѐacefiosu㫰㫽㬈㬌㬑㬕㬛㬡cĀuy㫶㫻te耻ý䃽;䑏Āiy㬂㬆rc;䅷;䑋n耻¥䂥r;쀀𝔶cy;䑗pf;쀀𝕪cr;쀀𝓎Ācm㬦㬩y;䑎l耻ÿ䃿Ԁacdefhiosw㭂㭈㭔㭘㭤㭩㭭㭴㭺㮀cute;䅺Āay㭍㭒ron;䅾;䐷ot;䅼Āet㭝㭡træᕟa;䎶r;쀀𝔷cy;䐶grarr;懝pf;쀀𝕫cr;쀀𝓏Ājn㮅㮇;怍j;怌'.split("").map(e=>e.charCodeAt(0))),nG=new Map([[0,65533],[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]);function rG(e){var t;return e>=55296&&e<=57343||e>1114111?65533:(t=nG.get(e))!==null&&t!==void 0?t:e}var cr;(function(e){e[e.NUM=35]="NUM",e[e.SEMI=59]="SEMI",e[e.EQUALS=61]="EQUALS",e[e.ZERO=48]="ZERO",e[e.NINE=57]="NINE",e[e.LOWER_A=97]="LOWER_A",e[e.LOWER_F=102]="LOWER_F",e[e.LOWER_X=120]="LOWER_X",e[e.LOWER_Z=122]="LOWER_Z",e[e.UPPER_A=65]="UPPER_A",e[e.UPPER_F=70]="UPPER_F",e[e.UPPER_Z=90]="UPPER_Z"})(cr||(cr={}));const aG=32;var to;(function(e){e[e.VALUE_LENGTH=49152]="VALUE_LENGTH",e[e.BRANCH_LENGTH=16256]="BRANCH_LENGTH",e[e.JUMP_TABLE=127]="JUMP_TABLE"})(to||(to={}));function zv(e){return e>=cr.ZERO&&e<=cr.NINE}function sG(e){return e>=cr.UPPER_A&&e<=cr.UPPER_F||e>=cr.LOWER_A&&e<=cr.LOWER_F}function iG(e){return e>=cr.UPPER_A&&e<=cr.UPPER_Z||e>=cr.LOWER_A&&e<=cr.LOWER_Z||zv(e)}function oG(e){return e===cr.EQUALS||iG(e)}var lr;(function(e){e[e.EntityStart=0]="EntityStart",e[e.NumericStart=1]="NumericStart",e[e.NumericDecimal=2]="NumericDecimal",e[e.NumericHex=3]="NumericHex",e[e.NamedEntity=4]="NamedEntity"})(lr||(lr={}));var ri;(function(e){e[e.Legacy=0]="Legacy",e[e.Strict=1]="Strict",e[e.Attribute=2]="Attribute"})(ri||(ri={}));class lG{constructor(t,n,r){this.decodeTree=t,this.emitCodePoint=n,this.errors=r,this.state=lr.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=ri.Strict}startEntity(t){this.decodeMode=t,this.state=lr.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}write(t,n){switch(this.state){case lr.EntityStart:return t.charCodeAt(n)===cr.NUM?(this.state=lr.NumericStart,this.consumed+=1,this.stateNumericStart(t,n+1)):(this.state=lr.NamedEntity,this.stateNamedEntity(t,n));case lr.NumericStart:return this.stateNumericStart(t,n);case lr.NumericDecimal:return this.stateNumericDecimal(t,n);case lr.NumericHex:return this.stateNumericHex(t,n);case lr.NamedEntity:return this.stateNamedEntity(t,n)}}stateNumericStart(t,n){return n>=t.length?-1:(t.charCodeAt(n)|aG)===cr.LOWER_X?(this.state=lr.NumericHex,this.consumed+=1,this.stateNumericHex(t,n+1)):(this.state=lr.NumericDecimal,this.stateNumericDecimal(t,n))}addToNumericResult(t,n,r,a){if(n!==r){const i=r-n;this.result=this.result*Math.pow(a,i)+Number.parseInt(t.substr(n,i),a),this.consumed+=i}}stateNumericHex(t,n){const r=n;for(;n<t.length;){const a=t.charCodeAt(n);if(zv(a)||sG(a))n+=1;else return this.addToNumericResult(t,r,n,16),this.emitNumericEntity(a,3)}return this.addToNumericResult(t,r,n,16),-1}stateNumericDecimal(t,n){const r=n;for(;n<t.length;){const a=t.charCodeAt(n);if(zv(a))n+=1;else return this.addToNumericResult(t,r,n,10),this.emitNumericEntity(a,2)}return this.addToNumericResult(t,r,n,10),-1}emitNumericEntity(t,n){var r;if(this.consumed<=n)return(r=this.errors)===null||r===void 0||r.absenceOfDigitsInNumericCharacterReference(this.consumed),0;if(t===cr.SEMI)this.consumed+=1;else if(this.decodeMode===ri.Strict)return 0;return this.emitCodePoint(rG(this.result),this.consumed),this.errors&&(t!==cr.SEMI&&this.errors.missingSemicolonAfterCharacterReference(),this.errors.validateNumericCharacterReference(this.result)),this.consumed}stateNamedEntity(t,n){const{decodeTree:r}=this;let a=r[this.treeIndex],i=(a&to.VALUE_LENGTH)>>14;for(;n<t.length;n++,this.excess++){const l=t.charCodeAt(n);if(this.treeIndex=uG(r,a,this.treeIndex+Math.max(1,i),l),this.treeIndex<0)return this.result===0||this.decodeMode===ri.Attribute&&(i===0||oG(l))?0:this.emitNotTerminatedNamedEntity();if(a=r[this.treeIndex],i=(a&to.VALUE_LENGTH)>>14,i!==0){if(l===cr.SEMI)return this.emitNamedEntityData(this.treeIndex,i,this.consumed+this.excess);this.decodeMode!==ri.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return-1}emitNotTerminatedNamedEntity(){var t;const{result:n,decodeTree:r}=this,a=(r[n]&to.VALUE_LENGTH)>>14;return this.emitNamedEntityData(n,a,this.consumed),(t=this.errors)===null||t===void 0||t.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(t,n,r){const{decodeTree:a}=this;return this.emitCodePoint(n===1?a[t]&~to.VALUE_LENGTH:a[t+1],r),n===3&&this.emitCodePoint(a[t+2],r),r}end(){var t;switch(this.state){case lr.NamedEntity:return this.result!==0&&(this.decodeMode!==ri.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case lr.NumericDecimal:return this.emitNumericEntity(0,2);case lr.NumericHex:return this.emitNumericEntity(0,3);case lr.NumericStart:return(t=this.errors)===null||t===void 0||t.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case lr.EntityStart:return 0}}}function uG(e,t,n,r){const a=(t&to.BRANCH_LENGTH)>>7,i=t&to.JUMP_TABLE;if(a===0)return i!==0&&r===i?n:-1;if(i){const d=r-i;return d<0||d>=a?-1:e[n+d]-1}let l=n,u=l+a-1;for(;l<=u;){const d=l+u>>>1,h=e[d];if(h<r)l=d+1;else if(h>r)u=d-1;else return e[d+a]}return-1}var ke;(function(e){e.HTML="http://www.w3.org/1999/xhtml",e.MATHML="http://www.w3.org/1998/Math/MathML",e.SVG="http://www.w3.org/2000/svg",e.XLINK="http://www.w3.org/1999/xlink",e.XML="http://www.w3.org/XML/1998/namespace",e.XMLNS="http://www.w3.org/2000/xmlns/"})(ke||(ke={}));var Vo;(function(e){e.TYPE="type",e.ACTION="action",e.ENCODING="encoding",e.PROMPT="prompt",e.NAME="name",e.COLOR="color",e.FACE="face",e.SIZE="size"})(Vo||(Vo={}));var wa;(function(e){e.NO_QUIRKS="no-quirks",e.QUIRKS="quirks",e.LIMITED_QUIRKS="limited-quirks"})(wa||(wa={}));var fe;(function(e){e.A="a",e.ADDRESS="address",e.ANNOTATION_XML="annotation-xml",e.APPLET="applet",e.AREA="area",e.ARTICLE="article",e.ASIDE="aside",e.B="b",e.BASE="base",e.BASEFONT="basefont",e.BGSOUND="bgsound",e.BIG="big",e.BLOCKQUOTE="blockquote",e.BODY="body",e.BR="br",e.BUTTON="button",e.CAPTION="caption",e.CENTER="center",e.CODE="code",e.COL="col",e.COLGROUP="colgroup",e.DD="dd",e.DESC="desc",e.DETAILS="details",e.DIALOG="dialog",e.DIR="dir",e.DIV="div",e.DL="dl",e.DT="dt",e.EM="em",e.EMBED="embed",e.FIELDSET="fieldset",e.FIGCAPTION="figcaption",e.FIGURE="figure",e.FONT="font",e.FOOTER="footer",e.FOREIGN_OBJECT="foreignObject",e.FORM="form",e.FRAME="frame",e.FRAMESET="frameset",e.H1="h1",e.H2="h2",e.H3="h3",e.H4="h4",e.H5="h5",e.H6="h6",e.HEAD="head",e.HEADER="header",e.HGROUP="hgroup",e.HR="hr",e.HTML="html",e.I="i",e.IMG="img",e.IMAGE="image",e.INPUT="input",e.IFRAME="iframe",e.KEYGEN="keygen",e.LABEL="label",e.LI="li",e.LINK="link",e.LISTING="listing",e.MAIN="main",e.MALIGNMARK="malignmark",e.MARQUEE="marquee",e.MATH="math",e.MENU="menu",e.META="meta",e.MGLYPH="mglyph",e.MI="mi",e.MO="mo",e.MN="mn",e.MS="ms",e.MTEXT="mtext",e.NAV="nav",e.NOBR="nobr",e.NOFRAMES="noframes",e.NOEMBED="noembed",e.NOSCRIPT="noscript",e.OBJECT="object",e.OL="ol",e.OPTGROUP="optgroup",e.OPTION="option",e.P="p",e.PARAM="param",e.PLAINTEXT="plaintext",e.PRE="pre",e.RB="rb",e.RP="rp",e.RT="rt",e.RTC="rtc",e.RUBY="ruby",e.S="s",e.SCRIPT="script",e.SEARCH="search",e.SECTION="section",e.SELECT="select",e.SOURCE="source",e.SMALL="small",e.SPAN="span",e.STRIKE="strike",e.STRONG="strong",e.STYLE="style",e.SUB="sub",e.SUMMARY="summary",e.SUP="sup",e.TABLE="table",e.TBODY="tbody",e.TEMPLATE="template",e.TEXTAREA="textarea",e.TFOOT="tfoot",e.TD="td",e.TH="th",e.THEAD="thead",e.TITLE="title",e.TR="tr",e.TRACK="track",e.TT="tt",e.U="u",e.UL="ul",e.SVG="svg",e.VAR="var",e.WBR="wbr",e.XMP="xmp"})(fe||(fe={}));var _;(function(e){e[e.UNKNOWN=0]="UNKNOWN",e[e.A=1]="A",e[e.ADDRESS=2]="ADDRESS",e[e.ANNOTATION_XML=3]="ANNOTATION_XML",e[e.APPLET=4]="APPLET",e[e.AREA=5]="AREA",e[e.ARTICLE=6]="ARTICLE",e[e.ASIDE=7]="ASIDE",e[e.B=8]="B",e[e.BASE=9]="BASE",e[e.BASEFONT=10]="BASEFONT",e[e.BGSOUND=11]="BGSOUND",e[e.BIG=12]="BIG",e[e.BLOCKQUOTE=13]="BLOCKQUOTE",e[e.BODY=14]="BODY",e[e.BR=15]="BR",e[e.BUTTON=16]="BUTTON",e[e.CAPTION=17]="CAPTION",e[e.CENTER=18]="CENTER",e[e.CODE=19]="CODE",e[e.COL=20]="COL",e[e.COLGROUP=21]="COLGROUP",e[e.DD=22]="DD",e[e.DESC=23]="DESC",e[e.DETAILS=24]="DETAILS",e[e.DIALOG=25]="DIALOG",e[e.DIR=26]="DIR",e[e.DIV=27]="DIV",e[e.DL=28]="DL",e[e.DT=29]="DT",e[e.EM=30]="EM",e[e.EMBED=31]="EMBED",e[e.FIELDSET=32]="FIELDSET",e[e.FIGCAPTION=33]="FIGCAPTION",e[e.FIGURE=34]="FIGURE",e[e.FONT=35]="FONT",e[e.FOOTER=36]="FOOTER",e[e.FOREIGN_OBJECT=37]="FOREIGN_OBJECT",e[e.FORM=38]="FORM",e[e.FRAME=39]="FRAME",e[e.FRAMESET=40]="FRAMESET",e[e.H1=41]="H1",e[e.H2=42]="H2",e[e.H3=43]="H3",e[e.H4=44]="H4",e[e.H5=45]="H5",e[e.H6=46]="H6",e[e.HEAD=47]="HEAD",e[e.HEADER=48]="HEADER",e[e.HGROUP=49]="HGROUP",e[e.HR=50]="HR",e[e.HTML=51]="HTML",e[e.I=52]="I",e[e.IMG=53]="IMG",e[e.IMAGE=54]="IMAGE",e[e.INPUT=55]="INPUT",e[e.IFRAME=56]="IFRAME",e[e.KEYGEN=57]="KEYGEN",e[e.LABEL=58]="LABEL",e[e.LI=59]="LI",e[e.LINK=60]="LINK",e[e.LISTING=61]="LISTING",e[e.MAIN=62]="MAIN",e[e.MALIGNMARK=63]="MALIGNMARK",e[e.MARQUEE=64]="MARQUEE",e[e.MATH=65]="MATH",e[e.MENU=66]="MENU",e[e.META=67]="META",e[e.MGLYPH=68]="MGLYPH",e[e.MI=69]="MI",e[e.MO=70]="MO",e[e.MN=71]="MN",e[e.MS=72]="MS",e[e.MTEXT=73]="MTEXT",e[e.NAV=74]="NAV",e[e.NOBR=75]="NOBR",e[e.NOFRAMES=76]="NOFRAMES",e[e.NOEMBED=77]="NOEMBED",e[e.NOSCRIPT=78]="NOSCRIPT",e[e.OBJECT=79]="OBJECT",e[e.OL=80]="OL",e[e.OPTGROUP=81]="OPTGROUP",e[e.OPTION=82]="OPTION",e[e.P=83]="P",e[e.PARAM=84]="PARAM",e[e.PLAINTEXT=85]="PLAINTEXT",e[e.PRE=86]="PRE",e[e.RB=87]="RB",e[e.RP=88]="RP",e[e.RT=89]="RT",e[e.RTC=90]="RTC",e[e.RUBY=91]="RUBY",e[e.S=92]="S",e[e.SCRIPT=93]="SCRIPT",e[e.SEARCH=94]="SEARCH",e[e.SECTION=95]="SECTION",e[e.SELECT=96]="SELECT",e[e.SOURCE=97]="SOURCE",e[e.SMALL=98]="SMALL",e[e.SPAN=99]="SPAN",e[e.STRIKE=100]="STRIKE",e[e.STRONG=101]="STRONG",e[e.STYLE=102]="STYLE",e[e.SUB=103]="SUB",e[e.SUMMARY=104]="SUMMARY",e[e.SUP=105]="SUP",e[e.TABLE=106]="TABLE",e[e.TBODY=107]="TBODY",e[e.TEMPLATE=108]="TEMPLATE",e[e.TEXTAREA=109]="TEXTAREA",e[e.TFOOT=110]="TFOOT",e[e.TD=111]="TD",e[e.TH=112]="TH",e[e.THEAD=113]="THEAD",e[e.TITLE=114]="TITLE",e[e.TR=115]="TR",e[e.TRACK=116]="TRACK",e[e.TT=117]="TT",e[e.U=118]="U",e[e.UL=119]="UL",e[e.SVG=120]="SVG",e[e.VAR=121]="VAR",e[e.WBR=122]="WBR",e[e.XMP=123]="XMP"})(_||(_={}));const cG=new Map([[fe.A,_.A],[fe.ADDRESS,_.ADDRESS],[fe.ANNOTATION_XML,_.ANNOTATION_XML],[fe.APPLET,_.APPLET],[fe.AREA,_.AREA],[fe.ARTICLE,_.ARTICLE],[fe.ASIDE,_.ASIDE],[fe.B,_.B],[fe.BASE,_.BASE],[fe.BASEFONT,_.BASEFONT],[fe.BGSOUND,_.BGSOUND],[fe.BIG,_.BIG],[fe.BLOCKQUOTE,_.BLOCKQUOTE],[fe.BODY,_.BODY],[fe.BR,_.BR],[fe.BUTTON,_.BUTTON],[fe.CAPTION,_.CAPTION],[fe.CENTER,_.CENTER],[fe.CODE,_.CODE],[fe.COL,_.COL],[fe.COLGROUP,_.COLGROUP],[fe.DD,_.DD],[fe.DESC,_.DESC],[fe.DETAILS,_.DETAILS],[fe.DIALOG,_.DIALOG],[fe.DIR,_.DIR],[fe.DIV,_.DIV],[fe.DL,_.DL],[fe.DT,_.DT],[fe.EM,_.EM],[fe.EMBED,_.EMBED],[fe.FIELDSET,_.FIELDSET],[fe.FIGCAPTION,_.FIGCAPTION],[fe.FIGURE,_.FIGURE],[fe.FONT,_.FONT],[fe.FOOTER,_.FOOTER],[fe.FOREIGN_OBJECT,_.FOREIGN_OBJECT],[fe.FORM,_.FORM],[fe.FRAME,_.FRAME],[fe.FRAMESET,_.FRAMESET],[fe.H1,_.H1],[fe.H2,_.H2],[fe.H3,_.H3],[fe.H4,_.H4],[fe.H5,_.H5],[fe.H6,_.H6],[fe.HEAD,_.HEAD],[fe.HEADER,_.HEADER],[fe.HGROUP,_.HGROUP],[fe.HR,_.HR],[fe.HTML,_.HTML],[fe.I,_.I],[fe.IMG,_.IMG],[fe.IMAGE,_.IMAGE],[fe.INPUT,_.INPUT],[fe.IFRAME,_.IFRAME],[fe.KEYGEN,_.KEYGEN],[fe.LABEL,_.LABEL],[fe.LI,_.LI],[fe.LINK,_.LINK],[fe.LISTING,_.LISTING],[fe.MAIN,_.MAIN],[fe.MALIGNMARK,_.MALIGNMARK],[fe.MARQUEE,_.MARQUEE],[fe.MATH,_.MATH],[fe.MENU,_.MENU],[fe.META,_.META],[fe.MGLYPH,_.MGLYPH],[fe.MI,_.MI],[fe.MO,_.MO],[fe.MN,_.MN],[fe.MS,_.MS],[fe.MTEXT,_.MTEXT],[fe.NAV,_.NAV],[fe.NOBR,_.NOBR],[fe.NOFRAMES,_.NOFRAMES],[fe.NOEMBED,_.NOEMBED],[fe.NOSCRIPT,_.NOSCRIPT],[fe.OBJECT,_.OBJECT],[fe.OL,_.OL],[fe.OPTGROUP,_.OPTGROUP],[fe.OPTION,_.OPTION],[fe.P,_.P],[fe.PARAM,_.PARAM],[fe.PLAINTEXT,_.PLAINTEXT],[fe.PRE,_.PRE],[fe.RB,_.RB],[fe.RP,_.RP],[fe.RT,_.RT],[fe.RTC,_.RTC],[fe.RUBY,_.RUBY],[fe.S,_.S],[fe.SCRIPT,_.SCRIPT],[fe.SEARCH,_.SEARCH],[fe.SECTION,_.SECTION],[fe.SELECT,_.SELECT],[fe.SOURCE,_.SOURCE],[fe.SMALL,_.SMALL],[fe.SPAN,_.SPAN],[fe.STRIKE,_.STRIKE],[fe.STRONG,_.STRONG],[fe.STYLE,_.STYLE],[fe.SUB,_.SUB],[fe.SUMMARY,_.SUMMARY],[fe.SUP,_.SUP],[fe.TABLE,_.TABLE],[fe.TBODY,_.TBODY],[fe.TEMPLATE,_.TEMPLATE],[fe.TEXTAREA,_.TEXTAREA],[fe.TFOOT,_.TFOOT],[fe.TD,_.TD],[fe.TH,_.TH],[fe.THEAD,_.THEAD],[fe.TITLE,_.TITLE],[fe.TR,_.TR],[fe.TRACK,_.TRACK],[fe.TT,_.TT],[fe.U,_.U],[fe.UL,_.UL],[fe.SVG,_.SVG],[fe.VAR,_.VAR],[fe.WBR,_.WBR],[fe.XMP,_.XMP]]);function zu(e){var t;return(t=cG.get(e))!==null&&t!==void 0?t:_.UNKNOWN}const Ie=_,dG={[ke.HTML]:new Set([Ie.ADDRESS,Ie.APPLET,Ie.AREA,Ie.ARTICLE,Ie.ASIDE,Ie.BASE,Ie.BASEFONT,Ie.BGSOUND,Ie.BLOCKQUOTE,Ie.BODY,Ie.BR,Ie.BUTTON,Ie.CAPTION,Ie.CENTER,Ie.COL,Ie.COLGROUP,Ie.DD,Ie.DETAILS,Ie.DIR,Ie.DIV,Ie.DL,Ie.DT,Ie.EMBED,Ie.FIELDSET,Ie.FIGCAPTION,Ie.FIGURE,Ie.FOOTER,Ie.FORM,Ie.FRAME,Ie.FRAMESET,Ie.H1,Ie.H2,Ie.H3,Ie.H4,Ie.H5,Ie.H6,Ie.HEAD,Ie.HEADER,Ie.HGROUP,Ie.HR,Ie.HTML,Ie.IFRAME,Ie.IMG,Ie.INPUT,Ie.LI,Ie.LINK,Ie.LISTING,Ie.MAIN,Ie.MARQUEE,Ie.MENU,Ie.META,Ie.NAV,Ie.NOEMBED,Ie.NOFRAMES,Ie.NOSCRIPT,Ie.OBJECT,Ie.OL,Ie.P,Ie.PARAM,Ie.PLAINTEXT,Ie.PRE,Ie.SCRIPT,Ie.SECTION,Ie.SELECT,Ie.SOURCE,Ie.STYLE,Ie.SUMMARY,Ie.TABLE,Ie.TBODY,Ie.TD,Ie.TEMPLATE,Ie.TEXTAREA,Ie.TFOOT,Ie.TH,Ie.THEAD,Ie.TITLE,Ie.TR,Ie.TRACK,Ie.UL,Ie.WBR,Ie.XMP]),[ke.MATHML]:new Set([Ie.MI,Ie.MO,Ie.MN,Ie.MS,Ie.MTEXT,Ie.ANNOTATION_XML]),[ke.SVG]:new Set([Ie.TITLE,Ie.FOREIGN_OBJECT,Ie.DESC]),[ke.XLINK]:new Set,[ke.XML]:new Set,[ke.XMLNS]:new Set},qv=new Set([Ie.H1,Ie.H2,Ie.H3,Ie.H4,Ie.H5,Ie.H6]);fe.STYLE,fe.SCRIPT,fe.XMP,fe.IFRAME,fe.NOEMBED,fe.NOFRAMES,fe.PLAINTEXT;var Z;(function(e){e[e.DATA=0]="DATA",e[e.RCDATA=1]="RCDATA",e[e.RAWTEXT=2]="RAWTEXT",e[e.SCRIPT_DATA=3]="SCRIPT_DATA",e[e.PLAINTEXT=4]="PLAINTEXT",e[e.TAG_OPEN=5]="TAG_OPEN",e[e.END_TAG_OPEN=6]="END_TAG_OPEN",e[e.TAG_NAME=7]="TAG_NAME",e[e.RCDATA_LESS_THAN_SIGN=8]="RCDATA_LESS_THAN_SIGN",e[e.RCDATA_END_TAG_OPEN=9]="RCDATA_END_TAG_OPEN",e[e.RCDATA_END_TAG_NAME=10]="RCDATA_END_TAG_NAME",e[e.RAWTEXT_LESS_THAN_SIGN=11]="RAWTEXT_LESS_THAN_SIGN",e[e.RAWTEXT_END_TAG_OPEN=12]="RAWTEXT_END_TAG_OPEN",e[e.RAWTEXT_END_TAG_NAME=13]="RAWTEXT_END_TAG_NAME",e[e.SCRIPT_DATA_LESS_THAN_SIGN=14]="SCRIPT_DATA_LESS_THAN_SIGN",e[e.SCRIPT_DATA_END_TAG_OPEN=15]="SCRIPT_DATA_END_TAG_OPEN",e[e.SCRIPT_DATA_END_TAG_NAME=16]="SCRIPT_DATA_END_TAG_NAME",e[e.SCRIPT_DATA_ESCAPE_START=17]="SCRIPT_DATA_ESCAPE_START",e[e.SCRIPT_DATA_ESCAPE_START_DASH=18]="SCRIPT_DATA_ESCAPE_START_DASH",e[e.SCRIPT_DATA_ESCAPED=19]="SCRIPT_DATA_ESCAPED",e[e.SCRIPT_DATA_ESCAPED_DASH=20]="SCRIPT_DATA_ESCAPED_DASH",e[e.SCRIPT_DATA_ESCAPED_DASH_DASH=21]="SCRIPT_DATA_ESCAPED_DASH_DASH",e[e.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN=22]="SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN",e[e.SCRIPT_DATA_ESCAPED_END_TAG_OPEN=23]="SCRIPT_DATA_ESCAPED_END_TAG_OPEN",e[e.SCRIPT_DATA_ESCAPED_END_TAG_NAME=24]="SCRIPT_DATA_ESCAPED_END_TAG_NAME",e[e.SCRIPT_DATA_DOUBLE_ESCAPE_START=25]="SCRIPT_DATA_DOUBLE_ESCAPE_START",e[e.SCRIPT_DATA_DOUBLE_ESCAPED=26]="SCRIPT_DATA_DOUBLE_ESCAPED",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_DASH=27]="SCRIPT_DATA_DOUBLE_ESCAPED_DASH",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH=28]="SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN=29]="SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN",e[e.SCRIPT_DATA_DOUBLE_ESCAPE_END=30]="SCRIPT_DATA_DOUBLE_ESCAPE_END",e[e.BEFORE_ATTRIBUTE_NAME=31]="BEFORE_ATTRIBUTE_NAME",e[e.ATTRIBUTE_NAME=32]="ATTRIBUTE_NAME",e[e.AFTER_ATTRIBUTE_NAME=33]="AFTER_ATTRIBUTE_NAME",e[e.BEFORE_ATTRIBUTE_VALUE=34]="BEFORE_ATTRIBUTE_VALUE",e[e.ATTRIBUTE_VALUE_DOUBLE_QUOTED=35]="ATTRIBUTE_VALUE_DOUBLE_QUOTED",e[e.ATTRIBUTE_VALUE_SINGLE_QUOTED=36]="ATTRIBUTE_VALUE_SINGLE_QUOTED",e[e.ATTRIBUTE_VALUE_UNQUOTED=37]="ATTRIBUTE_VALUE_UNQUOTED",e[e.AFTER_ATTRIBUTE_VALUE_QUOTED=38]="AFTER_ATTRIBUTE_VALUE_QUOTED",e[e.SELF_CLOSING_START_TAG=39]="SELF_CLOSING_START_TAG",e[e.BOGUS_COMMENT=40]="BOGUS_COMMENT",e[e.MARKUP_DECLARATION_OPEN=41]="MARKUP_DECLARATION_OPEN",e[e.COMMENT_START=42]="COMMENT_START",e[e.COMMENT_START_DASH=43]="COMMENT_START_DASH",e[e.COMMENT=44]="COMMENT",e[e.COMMENT_LESS_THAN_SIGN=45]="COMMENT_LESS_THAN_SIGN",e[e.COMMENT_LESS_THAN_SIGN_BANG=46]="COMMENT_LESS_THAN_SIGN_BANG",e[e.COMMENT_LESS_THAN_SIGN_BANG_DASH=47]="COMMENT_LESS_THAN_SIGN_BANG_DASH",e[e.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH=48]="COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH",e[e.COMMENT_END_DASH=49]="COMMENT_END_DASH",e[e.COMMENT_END=50]="COMMENT_END",e[e.COMMENT_END_BANG=51]="COMMENT_END_BANG",e[e.DOCTYPE=52]="DOCTYPE",e[e.BEFORE_DOCTYPE_NAME=53]="BEFORE_DOCTYPE_NAME",e[e.DOCTYPE_NAME=54]="DOCTYPE_NAME",e[e.AFTER_DOCTYPE_NAME=55]="AFTER_DOCTYPE_NAME",e[e.AFTER_DOCTYPE_PUBLIC_KEYWORD=56]="AFTER_DOCTYPE_PUBLIC_KEYWORD",e[e.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER=57]="BEFORE_DOCTYPE_PUBLIC_IDENTIFIER",e[e.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED=58]="DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED",e[e.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED=59]="DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED",e[e.AFTER_DOCTYPE_PUBLIC_IDENTIFIER=60]="AFTER_DOCTYPE_PUBLIC_IDENTIFIER",e[e.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS=61]="BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS",e[e.AFTER_DOCTYPE_SYSTEM_KEYWORD=62]="AFTER_DOCTYPE_SYSTEM_KEYWORD",e[e.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER=63]="BEFORE_DOCTYPE_SYSTEM_IDENTIFIER",e[e.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED=64]="DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED",e[e.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED=65]="DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED",e[e.AFTER_DOCTYPE_SYSTEM_IDENTIFIER=66]="AFTER_DOCTYPE_SYSTEM_IDENTIFIER",e[e.BOGUS_DOCTYPE=67]="BOGUS_DOCTYPE",e[e.CDATA_SECTION=68]="CDATA_SECTION",e[e.CDATA_SECTION_BRACKET=69]="CDATA_SECTION_BRACKET",e[e.CDATA_SECTION_END=70]="CDATA_SECTION_END",e[e.CHARACTER_REFERENCE=71]="CHARACTER_REFERENCE",e[e.AMBIGUOUS_AMPERSAND=72]="AMBIGUOUS_AMPERSAND"})(Z||(Z={}));const Vn={DATA:Z.DATA,RCDATA:Z.RCDATA,RAWTEXT:Z.RAWTEXT,SCRIPT_DATA:Z.SCRIPT_DATA,PLAINTEXT:Z.PLAINTEXT,CDATA_SECTION:Z.CDATA_SECTION};function fG(e){return e>=z.DIGIT_0&&e<=z.DIGIT_9}function td(e){return e>=z.LATIN_CAPITAL_A&&e<=z.LATIN_CAPITAL_Z}function hG(e){return e>=z.LATIN_SMALL_A&&e<=z.LATIN_SMALL_Z}function Gi(e){return hG(e)||td(e)}function J_(e){return Gi(e)||fG(e)}function If(e){return e+32}function fC(e){return e===z.SPACE||e===z.LINE_FEED||e===z.TABULATION||e===z.FORM_FEED}function e5(e){return fC(e)||e===z.SOLIDUS||e===z.GREATER_THAN_SIGN}function mG(e){return e===z.NULL?_e.nullCharacterReference:e>1114111?_e.characterReferenceOutsideUnicodeRange:lC(e)?_e.surrogateCharacterReference:cC(e)?_e.noncharacterCharacterReference:uC(e)||e===z.CARRIAGE_RETURN?_e.controlCharacterReference:null}class pG{constructor(t,n){this.options=t,this.handler=n,this.paused=!1,this.inLoop=!1,this.inForeignNode=!1,this.lastStartTagName="",this.active=!1,this.state=Z.DATA,this.returnState=Z.DATA,this.entityStartPos=0,this.consumedAfterSnapshot=-1,this.currentCharacterToken=null,this.currentToken=null,this.currentAttr={name:"",value:""},this.preprocessor=new eG(n),this.currentLocation=this.getCurrentLocation(-1),this.entityDecoder=new lG(tG,(r,a)=>{this.preprocessor.pos=this.entityStartPos+a-1,this._flushCodePointConsumedAsCharacterReference(r)},n.onParseError?{missingSemicolonAfterCharacterReference:()=>{this._err(_e.missingSemicolonAfterCharacterReference,1)},absenceOfDigitsInNumericCharacterReference:r=>{this._err(_e.absenceOfDigitsInNumericCharacterReference,this.entityStartPos-this.preprocessor.pos+r)},validateNumericCharacterReference:r=>{const a=mG(r);a&&this._err(a,1)}}:void 0)}_err(t,n=0){var r,a;(a=(r=this.handler).onParseError)===null||a===void 0||a.call(r,this.preprocessor.getError(t,n))}getCurrentLocation(t){return this.options.sourceCodeLocationInfo?{startLine:this.preprocessor.line,startCol:this.preprocessor.col-t,startOffset:this.preprocessor.offset-t,endLine:-1,endCol:-1,endOffset:-1}:null}_runParsingLoop(){if(!this.inLoop){for(this.inLoop=!0;this.active&&!this.paused;){this.consumedAfterSnapshot=0;const t=this._consume();this._ensureHibernation()||this._callState(t)}this.inLoop=!1}}pause(){this.paused=!0}resume(t){if(!this.paused)throw new Error("Parser was already resumed");this.paused=!1,!this.inLoop&&(this._runParsingLoop(),this.paused||t?.())}write(t,n,r){this.active=!0,this.preprocessor.write(t,n),this._runParsingLoop(),this.paused||r?.()}insertHtmlAtCurrentPos(t){this.active=!0,this.preprocessor.insertHtmlAtCurrentPos(t),this._runParsingLoop()}_ensureHibernation(){return this.preprocessor.endOfChunkHit?(this.preprocessor.retreat(this.consumedAfterSnapshot),this.consumedAfterSnapshot=0,this.active=!1,!0):!1}_consume(){return this.consumedAfterSnapshot++,this.preprocessor.advance()}_advanceBy(t){this.consumedAfterSnapshot+=t;for(let n=0;n<t;n++)this.preprocessor.advance()}_consumeSequenceIfMatch(t,n){return this.preprocessor.startsWith(t,n)?(this._advanceBy(t.length-1),!0):!1}_createStartTagToken(){this.currentToken={type:Nt.START_TAG,tagName:"",tagID:_.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(1)}}_createEndTagToken(){this.currentToken={type:Nt.END_TAG,tagName:"",tagID:_.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(2)}}_createCommentToken(t){this.currentToken={type:Nt.COMMENT,data:"",location:this.getCurrentLocation(t)}}_createDoctypeToken(t){this.currentToken={type:Nt.DOCTYPE,name:t,forceQuirks:!1,publicId:null,systemId:null,location:this.currentLocation}}_createCharacterToken(t,n){this.currentCharacterToken={type:t,chars:n,location:this.currentLocation}}_createAttr(t){this.currentAttr={name:t,value:""},this.currentLocation=this.getCurrentLocation(0)}_leaveAttrName(){var t,n;const r=this.currentToken;if(dC(r,this.currentAttr.name)===null){if(r.attrs.push(this.currentAttr),r.location&&this.currentLocation){const a=(t=(n=r.location).attrs)!==null&&t!==void 0?t:n.attrs=Object.create(null);a[this.currentAttr.name]=this.currentLocation,this._leaveAttrValue()}}else this._err(_e.duplicateAttribute)}_leaveAttrValue(){this.currentLocation&&(this.currentLocation.endLine=this.preprocessor.line,this.currentLocation.endCol=this.preprocessor.col,this.currentLocation.endOffset=this.preprocessor.offset)}prepareToken(t){this._emitCurrentCharacterToken(t.location),this.currentToken=null,t.location&&(t.location.endLine=this.preprocessor.line,t.location.endCol=this.preprocessor.col+1,t.location.endOffset=this.preprocessor.offset+1),this.currentLocation=this.getCurrentLocation(-1)}emitCurrentTagToken(){const t=this.currentToken;this.prepareToken(t),t.tagID=zu(t.tagName),t.type===Nt.START_TAG?(this.lastStartTagName=t.tagName,this.handler.onStartTag(t)):(t.attrs.length>0&&this._err(_e.endTagWithAttributes),t.selfClosing&&this._err(_e.endTagWithTrailingSolidus),this.handler.onEndTag(t)),this.preprocessor.dropParsedChunk()}emitCurrentComment(t){this.prepareToken(t),this.handler.onComment(t),this.preprocessor.dropParsedChunk()}emitCurrentDoctype(t){this.prepareToken(t),this.handler.onDoctype(t),this.preprocessor.dropParsedChunk()}_emitCurrentCharacterToken(t){if(this.currentCharacterToken){switch(t&&this.currentCharacterToken.location&&(this.currentCharacterToken.location.endLine=t.startLine,this.currentCharacterToken.location.endCol=t.startCol,this.currentCharacterToken.location.endOffset=t.startOffset),this.currentCharacterToken.type){case Nt.CHARACTER:{this.handler.onCharacter(this.currentCharacterToken);break}case Nt.NULL_CHARACTER:{this.handler.onNullCharacter(this.currentCharacterToken);break}case Nt.WHITESPACE_CHARACTER:{this.handler.onWhitespaceCharacter(this.currentCharacterToken);break}}this.currentCharacterToken=null}}_emitEOFToken(){const t=this.getCurrentLocation(0);t&&(t.endLine=t.startLine,t.endCol=t.startCol,t.endOffset=t.startOffset),this._emitCurrentCharacterToken(t),this.handler.onEof({type:Nt.EOF,location:t}),this.active=!1}_appendCharToCurrentCharacterToken(t,n){if(this.currentCharacterToken)if(this.currentCharacterToken.type===t){this.currentCharacterToken.chars+=n;return}else this.currentLocation=this.getCurrentLocation(0),this._emitCurrentCharacterToken(this.currentLocation),this.preprocessor.dropParsedChunk();this._createCharacterToken(t,n)}_emitCodePoint(t){const n=fC(t)?Nt.WHITESPACE_CHARACTER:t===z.NULL?Nt.NULL_CHARACTER:Nt.CHARACTER;this._appendCharToCurrentCharacterToken(n,String.fromCodePoint(t))}_emitChars(t){this._appendCharToCurrentCharacterToken(Nt.CHARACTER,t)}_startCharacterReference(){this.returnState=this.state,this.state=Z.CHARACTER_REFERENCE,this.entityStartPos=this.preprocessor.pos,this.entityDecoder.startEntity(this._isCharacterReferenceInAttribute()?ri.Attribute:ri.Legacy)}_isCharacterReferenceInAttribute(){return this.returnState===Z.ATTRIBUTE_VALUE_DOUBLE_QUOTED||this.returnState===Z.ATTRIBUTE_VALUE_SINGLE_QUOTED||this.returnState===Z.ATTRIBUTE_VALUE_UNQUOTED}_flushCodePointConsumedAsCharacterReference(t){this._isCharacterReferenceInAttribute()?this.currentAttr.value+=String.fromCodePoint(t):this._emitCodePoint(t)}_callState(t){switch(this.state){case Z.DATA:{this._stateData(t);break}case Z.RCDATA:{this._stateRcdata(t);break}case Z.RAWTEXT:{this._stateRawtext(t);break}case Z.SCRIPT_DATA:{this._stateScriptData(t);break}case Z.PLAINTEXT:{this._statePlaintext(t);break}case Z.TAG_OPEN:{this._stateTagOpen(t);break}case Z.END_TAG_OPEN:{this._stateEndTagOpen(t);break}case Z.TAG_NAME:{this._stateTagName(t);break}case Z.RCDATA_LESS_THAN_SIGN:{this._stateRcdataLessThanSign(t);break}case Z.RCDATA_END_TAG_OPEN:{this._stateRcdataEndTagOpen(t);break}case Z.RCDATA_END_TAG_NAME:{this._stateRcdataEndTagName(t);break}case Z.RAWTEXT_LESS_THAN_SIGN:{this._stateRawtextLessThanSign(t);break}case Z.RAWTEXT_END_TAG_OPEN:{this._stateRawtextEndTagOpen(t);break}case Z.RAWTEXT_END_TAG_NAME:{this._stateRawtextEndTagName(t);break}case Z.SCRIPT_DATA_LESS_THAN_SIGN:{this._stateScriptDataLessThanSign(t);break}case Z.SCRIPT_DATA_END_TAG_OPEN:{this._stateScriptDataEndTagOpen(t);break}case Z.SCRIPT_DATA_END_TAG_NAME:{this._stateScriptDataEndTagName(t);break}case Z.SCRIPT_DATA_ESCAPE_START:{this._stateScriptDataEscapeStart(t);break}case Z.SCRIPT_DATA_ESCAPE_START_DASH:{this._stateScriptDataEscapeStartDash(t);break}case Z.SCRIPT_DATA_ESCAPED:{this._stateScriptDataEscaped(t);break}case Z.SCRIPT_DATA_ESCAPED_DASH:{this._stateScriptDataEscapedDash(t);break}case Z.SCRIPT_DATA_ESCAPED_DASH_DASH:{this._stateScriptDataEscapedDashDash(t);break}case Z.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN:{this._stateScriptDataEscapedLessThanSign(t);break}case Z.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:{this._stateScriptDataEscapedEndTagOpen(t);break}case Z.SCRIPT_DATA_ESCAPED_END_TAG_NAME:{this._stateScriptDataEscapedEndTagName(t);break}case Z.SCRIPT_DATA_DOUBLE_ESCAPE_START:{this._stateScriptDataDoubleEscapeStart(t);break}case Z.SCRIPT_DATA_DOUBLE_ESCAPED:{this._stateScriptDataDoubleEscaped(t);break}case Z.SCRIPT_DATA_DOUBLE_ESCAPED_DASH:{this._stateScriptDataDoubleEscapedDash(t);break}case Z.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH:{this._stateScriptDataDoubleEscapedDashDash(t);break}case Z.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN:{this._stateScriptDataDoubleEscapedLessThanSign(t);break}case Z.SCRIPT_DATA_DOUBLE_ESCAPE_END:{this._stateScriptDataDoubleEscapeEnd(t);break}case Z.BEFORE_ATTRIBUTE_NAME:{this._stateBeforeAttributeName(t);break}case Z.ATTRIBUTE_NAME:{this._stateAttributeName(t);break}case Z.AFTER_ATTRIBUTE_NAME:{this._stateAfterAttributeName(t);break}case Z.BEFORE_ATTRIBUTE_VALUE:{this._stateBeforeAttributeValue(t);break}case Z.ATTRIBUTE_VALUE_DOUBLE_QUOTED:{this._stateAttributeValueDoubleQuoted(t);break}case Z.ATTRIBUTE_VALUE_SINGLE_QUOTED:{this._stateAttributeValueSingleQuoted(t);break}case Z.ATTRIBUTE_VALUE_UNQUOTED:{this._stateAttributeValueUnquoted(t);break}case Z.AFTER_ATTRIBUTE_VALUE_QUOTED:{this._stateAfterAttributeValueQuoted(t);break}case Z.SELF_CLOSING_START_TAG:{this._stateSelfClosingStartTag(t);break}case Z.BOGUS_COMMENT:{this._stateBogusComment(t);break}case Z.MARKUP_DECLARATION_OPEN:{this._stateMarkupDeclarationOpen(t);break}case Z.COMMENT_START:{this._stateCommentStart(t);break}case Z.COMMENT_START_DASH:{this._stateCommentStartDash(t);break}case Z.COMMENT:{this._stateComment(t);break}case Z.COMMENT_LESS_THAN_SIGN:{this._stateCommentLessThanSign(t);break}case Z.COMMENT_LESS_THAN_SIGN_BANG:{this._stateCommentLessThanSignBang(t);break}case Z.COMMENT_LESS_THAN_SIGN_BANG_DASH:{this._stateCommentLessThanSignBangDash(t);break}case Z.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:{this._stateCommentLessThanSignBangDashDash(t);break}case Z.COMMENT_END_DASH:{this._stateCommentEndDash(t);break}case Z.COMMENT_END:{this._stateCommentEnd(t);break}case Z.COMMENT_END_BANG:{this._stateCommentEndBang(t);break}case Z.DOCTYPE:{this._stateDoctype(t);break}case Z.BEFORE_DOCTYPE_NAME:{this._stateBeforeDoctypeName(t);break}case Z.DOCTYPE_NAME:{this._stateDoctypeName(t);break}case Z.AFTER_DOCTYPE_NAME:{this._stateAfterDoctypeName(t);break}case Z.AFTER_DOCTYPE_PUBLIC_KEYWORD:{this._stateAfterDoctypePublicKeyword(t);break}case Z.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER:{this._stateBeforeDoctypePublicIdentifier(t);break}case Z.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED:{this._stateDoctypePublicIdentifierDoubleQuoted(t);break}case Z.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED:{this._stateDoctypePublicIdentifierSingleQuoted(t);break}case Z.AFTER_DOCTYPE_PUBLIC_IDENTIFIER:{this._stateAfterDoctypePublicIdentifier(t);break}case Z.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS:{this._stateBetweenDoctypePublicAndSystemIdentifiers(t);break}case Z.AFTER_DOCTYPE_SYSTEM_KEYWORD:{this._stateAfterDoctypeSystemKeyword(t);break}case Z.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER:{this._stateBeforeDoctypeSystemIdentifier(t);break}case Z.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED:{this._stateDoctypeSystemIdentifierDoubleQuoted(t);break}case Z.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED:{this._stateDoctypeSystemIdentifierSingleQuoted(t);break}case Z.AFTER_DOCTYPE_SYSTEM_IDENTIFIER:{this._stateAfterDoctypeSystemIdentifier(t);break}case Z.BOGUS_DOCTYPE:{this._stateBogusDoctype(t);break}case Z.CDATA_SECTION:{this._stateCdataSection(t);break}case Z.CDATA_SECTION_BRACKET:{this._stateCdataSectionBracket(t);break}case Z.CDATA_SECTION_END:{this._stateCdataSectionEnd(t);break}case Z.CHARACTER_REFERENCE:{this._stateCharacterReference();break}case Z.AMBIGUOUS_AMPERSAND:{this._stateAmbiguousAmpersand(t);break}default:throw new Error("Unknown state")}}_stateData(t){switch(t){case z.LESS_THAN_SIGN:{this.state=Z.TAG_OPEN;break}case z.AMPERSAND:{this._startCharacterReference();break}case z.NULL:{this._err(_e.unexpectedNullCharacter),this._emitCodePoint(t);break}case z.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateRcdata(t){switch(t){case z.AMPERSAND:{this._startCharacterReference();break}case z.LESS_THAN_SIGN:{this.state=Z.RCDATA_LESS_THAN_SIGN;break}case z.NULL:{this._err(_e.unexpectedNullCharacter),this._emitChars(Sn);break}case z.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateRawtext(t){switch(t){case z.LESS_THAN_SIGN:{this.state=Z.RAWTEXT_LESS_THAN_SIGN;break}case z.NULL:{this._err(_e.unexpectedNullCharacter),this._emitChars(Sn);break}case z.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateScriptData(t){switch(t){case z.LESS_THAN_SIGN:{this.state=Z.SCRIPT_DATA_LESS_THAN_SIGN;break}case z.NULL:{this._err(_e.unexpectedNullCharacter),this._emitChars(Sn);break}case z.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_statePlaintext(t){switch(t){case z.NULL:{this._err(_e.unexpectedNullCharacter),this._emitChars(Sn);break}case z.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateTagOpen(t){if(Gi(t))this._createStartTagToken(),this.state=Z.TAG_NAME,this._stateTagName(t);else switch(t){case z.EXCLAMATION_MARK:{this.state=Z.MARKUP_DECLARATION_OPEN;break}case z.SOLIDUS:{this.state=Z.END_TAG_OPEN;break}case z.QUESTION_MARK:{this._err(_e.unexpectedQuestionMarkInsteadOfTagName),this._createCommentToken(1),this.state=Z.BOGUS_COMMENT,this._stateBogusComment(t);break}case z.EOF:{this._err(_e.eofBeforeTagName),this._emitChars("<"),this._emitEOFToken();break}default:this._err(_e.invalidFirstCharacterOfTagName),this._emitChars("<"),this.state=Z.DATA,this._stateData(t)}}_stateEndTagOpen(t){if(Gi(t))this._createEndTagToken(),this.state=Z.TAG_NAME,this._stateTagName(t);else switch(t){case z.GREATER_THAN_SIGN:{this._err(_e.missingEndTagName),this.state=Z.DATA;break}case z.EOF:{this._err(_e.eofBeforeTagName),this._emitChars("</"),this._emitEOFToken();break}default:this._err(_e.invalidFirstCharacterOfTagName),this._createCommentToken(2),this.state=Z.BOGUS_COMMENT,this._stateBogusComment(t)}}_stateTagName(t){const n=this.currentToken;switch(t){case z.SPACE:case z.LINE_FEED:case z.TABULATION:case z.FORM_FEED:{this.state=Z.BEFORE_ATTRIBUTE_NAME;break}case z.SOLIDUS:{this.state=Z.SELF_CLOSING_START_TAG;break}case z.GREATER_THAN_SIGN:{this.state=Z.DATA,this.emitCurrentTagToken();break}case z.NULL:{this._err(_e.unexpectedNullCharacter),n.tagName+=Sn;break}case z.EOF:{this._err(_e.eofInTag),this._emitEOFToken();break}default:n.tagName+=String.fromCodePoint(td(t)?If(t):t)}}_stateRcdataLessThanSign(t){t===z.SOLIDUS?this.state=Z.RCDATA_END_TAG_OPEN:(this._emitChars("<"),this.state=Z.RCDATA,this._stateRcdata(t))}_stateRcdataEndTagOpen(t){Gi(t)?(this.state=Z.RCDATA_END_TAG_NAME,this._stateRcdataEndTagName(t)):(this._emitChars("</"),this.state=Z.RCDATA,this._stateRcdata(t))}handleSpecialEndTag(t){if(!this.preprocessor.startsWith(this.lastStartTagName,!1))return!this._ensureHibernation();this._createEndTagToken();const n=this.currentToken;switch(n.tagName=this.lastStartTagName,this.preprocessor.peek(this.lastStartTagName.length)){case z.SPACE:case z.LINE_FEED:case z.TABULATION:case z.FORM_FEED:return this._advanceBy(this.lastStartTagName.length),this.state=Z.BEFORE_ATTRIBUTE_NAME,!1;case z.SOLIDUS:return this._advanceBy(this.lastStartTagName.length),this.state=Z.SELF_CLOSING_START_TAG,!1;case z.GREATER_THAN_SIGN:return this._advanceBy(this.lastStartTagName.length),this.emitCurrentTagToken(),this.state=Z.DATA,!1;default:return!this._ensureHibernation()}}_stateRcdataEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=Z.RCDATA,this._stateRcdata(t))}_stateRawtextLessThanSign(t){t===z.SOLIDUS?this.state=Z.RAWTEXT_END_TAG_OPEN:(this._emitChars("<"),this.state=Z.RAWTEXT,this._stateRawtext(t))}_stateRawtextEndTagOpen(t){Gi(t)?(this.state=Z.RAWTEXT_END_TAG_NAME,this._stateRawtextEndTagName(t)):(this._emitChars("</"),this.state=Z.RAWTEXT,this._stateRawtext(t))}_stateRawtextEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=Z.RAWTEXT,this._stateRawtext(t))}_stateScriptDataLessThanSign(t){switch(t){case z.SOLIDUS:{this.state=Z.SCRIPT_DATA_END_TAG_OPEN;break}case z.EXCLAMATION_MARK:{this.state=Z.SCRIPT_DATA_ESCAPE_START,this._emitChars("<!");break}default:this._emitChars("<"),this.state=Z.SCRIPT_DATA,this._stateScriptData(t)}}_stateScriptDataEndTagOpen(t){Gi(t)?(this.state=Z.SCRIPT_DATA_END_TAG_NAME,this._stateScriptDataEndTagName(t)):(this._emitChars("</"),this.state=Z.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=Z.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEscapeStart(t){t===z.HYPHEN_MINUS?(this.state=Z.SCRIPT_DATA_ESCAPE_START_DASH,this._emitChars("-")):(this.state=Z.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEscapeStartDash(t){t===z.HYPHEN_MINUS?(this.state=Z.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars("-")):(this.state=Z.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEscaped(t){switch(t){case z.HYPHEN_MINUS:{this.state=Z.SCRIPT_DATA_ESCAPED_DASH,this._emitChars("-");break}case z.LESS_THAN_SIGN:{this.state=Z.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case z.NULL:{this._err(_e.unexpectedNullCharacter),this._emitChars(Sn);break}case z.EOF:{this._err(_e.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateScriptDataEscapedDash(t){switch(t){case z.HYPHEN_MINUS:{this.state=Z.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars("-");break}case z.LESS_THAN_SIGN:{this.state=Z.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case z.NULL:{this._err(_e.unexpectedNullCharacter),this.state=Z.SCRIPT_DATA_ESCAPED,this._emitChars(Sn);break}case z.EOF:{this._err(_e.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=Z.SCRIPT_DATA_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataEscapedDashDash(t){switch(t){case z.HYPHEN_MINUS:{this._emitChars("-");break}case z.LESS_THAN_SIGN:{this.state=Z.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case z.GREATER_THAN_SIGN:{this.state=Z.SCRIPT_DATA,this._emitChars(">");break}case z.NULL:{this._err(_e.unexpectedNullCharacter),this.state=Z.SCRIPT_DATA_ESCAPED,this._emitChars(Sn);break}case z.EOF:{this._err(_e.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=Z.SCRIPT_DATA_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataEscapedLessThanSign(t){t===z.SOLIDUS?this.state=Z.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:Gi(t)?(this._emitChars("<"),this.state=Z.SCRIPT_DATA_DOUBLE_ESCAPE_START,this._stateScriptDataDoubleEscapeStart(t)):(this._emitChars("<"),this.state=Z.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataEscapedEndTagOpen(t){Gi(t)?(this.state=Z.SCRIPT_DATA_ESCAPED_END_TAG_NAME,this._stateScriptDataEscapedEndTagName(t)):(this._emitChars("</"),this.state=Z.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataEscapedEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=Z.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataDoubleEscapeStart(t){if(this.preprocessor.startsWith(Vr.SCRIPT,!1)&&e5(this.preprocessor.peek(Vr.SCRIPT.length))){this._emitCodePoint(t);for(let n=0;n<Vr.SCRIPT.length;n++)this._emitCodePoint(this._consume());this.state=Z.SCRIPT_DATA_DOUBLE_ESCAPED}else this._ensureHibernation()||(this.state=Z.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataDoubleEscaped(t){switch(t){case z.HYPHEN_MINUS:{this.state=Z.SCRIPT_DATA_DOUBLE_ESCAPED_DASH,this._emitChars("-");break}case z.LESS_THAN_SIGN:{this.state=Z.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case z.NULL:{this._err(_e.unexpectedNullCharacter),this._emitChars(Sn);break}case z.EOF:{this._err(_e.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateScriptDataDoubleEscapedDash(t){switch(t){case z.HYPHEN_MINUS:{this.state=Z.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH,this._emitChars("-");break}case z.LESS_THAN_SIGN:{this.state=Z.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case z.NULL:{this._err(_e.unexpectedNullCharacter),this.state=Z.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(Sn);break}case z.EOF:{this._err(_e.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=Z.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataDoubleEscapedDashDash(t){switch(t){case z.HYPHEN_MINUS:{this._emitChars("-");break}case z.LESS_THAN_SIGN:{this.state=Z.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case z.GREATER_THAN_SIGN:{this.state=Z.SCRIPT_DATA,this._emitChars(">");break}case z.NULL:{this._err(_e.unexpectedNullCharacter),this.state=Z.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(Sn);break}case z.EOF:{this._err(_e.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=Z.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataDoubleEscapedLessThanSign(t){t===z.SOLIDUS?(this.state=Z.SCRIPT_DATA_DOUBLE_ESCAPE_END,this._emitChars("/")):(this.state=Z.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(t))}_stateScriptDataDoubleEscapeEnd(t){if(this.preprocessor.startsWith(Vr.SCRIPT,!1)&&e5(this.preprocessor.peek(Vr.SCRIPT.length))){this._emitCodePoint(t);for(let n=0;n<Vr.SCRIPT.length;n++)this._emitCodePoint(this._consume());this.state=Z.SCRIPT_DATA_ESCAPED}else this._ensureHibernation()||(this.state=Z.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(t))}_stateBeforeAttributeName(t){switch(t){case z.SPACE:case z.LINE_FEED:case z.TABULATION:case z.FORM_FEED:break;case z.SOLIDUS:case z.GREATER_THAN_SIGN:case z.EOF:{this.state=Z.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(t);break}case z.EQUALS_SIGN:{this._err(_e.unexpectedEqualsSignBeforeAttributeName),this._createAttr("="),this.state=Z.ATTRIBUTE_NAME;break}default:this._createAttr(""),this.state=Z.ATTRIBUTE_NAME,this._stateAttributeName(t)}}_stateAttributeName(t){switch(t){case z.SPACE:case z.LINE_FEED:case z.TABULATION:case z.FORM_FEED:case z.SOLIDUS:case z.GREATER_THAN_SIGN:case z.EOF:{this._leaveAttrName(),this.state=Z.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(t);break}case z.EQUALS_SIGN:{this._leaveAttrName(),this.state=Z.BEFORE_ATTRIBUTE_VALUE;break}case z.QUOTATION_MARK:case z.APOSTROPHE:case z.LESS_THAN_SIGN:{this._err(_e.unexpectedCharacterInAttributeName),this.currentAttr.name+=String.fromCodePoint(t);break}case z.NULL:{this._err(_e.unexpectedNullCharacter),this.currentAttr.name+=Sn;break}default:this.currentAttr.name+=String.fromCodePoint(td(t)?If(t):t)}}_stateAfterAttributeName(t){switch(t){case z.SPACE:case z.LINE_FEED:case z.TABULATION:case z.FORM_FEED:break;case z.SOLIDUS:{this.state=Z.SELF_CLOSING_START_TAG;break}case z.EQUALS_SIGN:{this.state=Z.BEFORE_ATTRIBUTE_VALUE;break}case z.GREATER_THAN_SIGN:{this.state=Z.DATA,this.emitCurrentTagToken();break}case z.EOF:{this._err(_e.eofInTag),this._emitEOFToken();break}default:this._createAttr(""),this.state=Z.ATTRIBUTE_NAME,this._stateAttributeName(t)}}_stateBeforeAttributeValue(t){switch(t){case z.SPACE:case z.LINE_FEED:case z.TABULATION:case z.FORM_FEED:break;case z.QUOTATION_MARK:{this.state=Z.ATTRIBUTE_VALUE_DOUBLE_QUOTED;break}case z.APOSTROPHE:{this.state=Z.ATTRIBUTE_VALUE_SINGLE_QUOTED;break}case z.GREATER_THAN_SIGN:{this._err(_e.missingAttributeValue),this.state=Z.DATA,this.emitCurrentTagToken();break}default:this.state=Z.ATTRIBUTE_VALUE_UNQUOTED,this._stateAttributeValueUnquoted(t)}}_stateAttributeValueDoubleQuoted(t){switch(t){case z.QUOTATION_MARK:{this.state=Z.AFTER_ATTRIBUTE_VALUE_QUOTED;break}case z.AMPERSAND:{this._startCharacterReference();break}case z.NULL:{this._err(_e.unexpectedNullCharacter),this.currentAttr.value+=Sn;break}case z.EOF:{this._err(_e.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(t)}}_stateAttributeValueSingleQuoted(t){switch(t){case z.APOSTROPHE:{this.state=Z.AFTER_ATTRIBUTE_VALUE_QUOTED;break}case z.AMPERSAND:{this._startCharacterReference();break}case z.NULL:{this._err(_e.unexpectedNullCharacter),this.currentAttr.value+=Sn;break}case z.EOF:{this._err(_e.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(t)}}_stateAttributeValueUnquoted(t){switch(t){case z.SPACE:case z.LINE_FEED:case z.TABULATION:case z.FORM_FEED:{this._leaveAttrValue(),this.state=Z.BEFORE_ATTRIBUTE_NAME;break}case z.AMPERSAND:{this._startCharacterReference();break}case z.GREATER_THAN_SIGN:{this._leaveAttrValue(),this.state=Z.DATA,this.emitCurrentTagToken();break}case z.NULL:{this._err(_e.unexpectedNullCharacter),this.currentAttr.value+=Sn;break}case z.QUOTATION_MARK:case z.APOSTROPHE:case z.LESS_THAN_SIGN:case z.EQUALS_SIGN:case z.GRAVE_ACCENT:{this._err(_e.unexpectedCharacterInUnquotedAttributeValue),this.currentAttr.value+=String.fromCodePoint(t);break}case z.EOF:{this._err(_e.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(t)}}_stateAfterAttributeValueQuoted(t){switch(t){case z.SPACE:case z.LINE_FEED:case z.TABULATION:case z.FORM_FEED:{this._leaveAttrValue(),this.state=Z.BEFORE_ATTRIBUTE_NAME;break}case z.SOLIDUS:{this._leaveAttrValue(),this.state=Z.SELF_CLOSING_START_TAG;break}case z.GREATER_THAN_SIGN:{this._leaveAttrValue(),this.state=Z.DATA,this.emitCurrentTagToken();break}case z.EOF:{this._err(_e.eofInTag),this._emitEOFToken();break}default:this._err(_e.missingWhitespaceBetweenAttributes),this.state=Z.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(t)}}_stateSelfClosingStartTag(t){switch(t){case z.GREATER_THAN_SIGN:{const n=this.currentToken;n.selfClosing=!0,this.state=Z.DATA,this.emitCurrentTagToken();break}case z.EOF:{this._err(_e.eofInTag),this._emitEOFToken();break}default:this._err(_e.unexpectedSolidusInTag),this.state=Z.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(t)}}_stateBogusComment(t){const n=this.currentToken;switch(t){case z.GREATER_THAN_SIGN:{this.state=Z.DATA,this.emitCurrentComment(n);break}case z.EOF:{this.emitCurrentComment(n),this._emitEOFToken();break}case z.NULL:{this._err(_e.unexpectedNullCharacter),n.data+=Sn;break}default:n.data+=String.fromCodePoint(t)}}_stateMarkupDeclarationOpen(t){this._consumeSequenceIfMatch(Vr.DASH_DASH,!0)?(this._createCommentToken(Vr.DASH_DASH.length+1),this.state=Z.COMMENT_START):this._consumeSequenceIfMatch(Vr.DOCTYPE,!1)?(this.currentLocation=this.getCurrentLocation(Vr.DOCTYPE.length+1),this.state=Z.DOCTYPE):this._consumeSequenceIfMatch(Vr.CDATA_START,!0)?this.inForeignNode?this.state=Z.CDATA_SECTION:(this._err(_e.cdataInHtmlContent),this._createCommentToken(Vr.CDATA_START.length+1),this.currentToken.data="[CDATA[",this.state=Z.BOGUS_COMMENT):this._ensureHibernation()||(this._err(_e.incorrectlyOpenedComment),this._createCommentToken(2),this.state=Z.BOGUS_COMMENT,this._stateBogusComment(t))}_stateCommentStart(t){switch(t){case z.HYPHEN_MINUS:{this.state=Z.COMMENT_START_DASH;break}case z.GREATER_THAN_SIGN:{this._err(_e.abruptClosingOfEmptyComment),this.state=Z.DATA;const n=this.currentToken;this.emitCurrentComment(n);break}default:this.state=Z.COMMENT,this._stateComment(t)}}_stateCommentStartDash(t){const n=this.currentToken;switch(t){case z.HYPHEN_MINUS:{this.state=Z.COMMENT_END;break}case z.GREATER_THAN_SIGN:{this._err(_e.abruptClosingOfEmptyComment),this.state=Z.DATA,this.emitCurrentComment(n);break}case z.EOF:{this._err(_e.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+="-",this.state=Z.COMMENT,this._stateComment(t)}}_stateComment(t){const n=this.currentToken;switch(t){case z.HYPHEN_MINUS:{this.state=Z.COMMENT_END_DASH;break}case z.LESS_THAN_SIGN:{n.data+="<",this.state=Z.COMMENT_LESS_THAN_SIGN;break}case z.NULL:{this._err(_e.unexpectedNullCharacter),n.data+=Sn;break}case z.EOF:{this._err(_e.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+=String.fromCodePoint(t)}}_stateCommentLessThanSign(t){const n=this.currentToken;switch(t){case z.EXCLAMATION_MARK:{n.data+="!",this.state=Z.COMMENT_LESS_THAN_SIGN_BANG;break}case z.LESS_THAN_SIGN:{n.data+="<";break}default:this.state=Z.COMMENT,this._stateComment(t)}}_stateCommentLessThanSignBang(t){t===z.HYPHEN_MINUS?this.state=Z.COMMENT_LESS_THAN_SIGN_BANG_DASH:(this.state=Z.COMMENT,this._stateComment(t))}_stateCommentLessThanSignBangDash(t){t===z.HYPHEN_MINUS?this.state=Z.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:(this.state=Z.COMMENT_END_DASH,this._stateCommentEndDash(t))}_stateCommentLessThanSignBangDashDash(t){t!==z.GREATER_THAN_SIGN&&t!==z.EOF&&this._err(_e.nestedComment),this.state=Z.COMMENT_END,this._stateCommentEnd(t)}_stateCommentEndDash(t){const n=this.currentToken;switch(t){case z.HYPHEN_MINUS:{this.state=Z.COMMENT_END;break}case z.EOF:{this._err(_e.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+="-",this.state=Z.COMMENT,this._stateComment(t)}}_stateCommentEnd(t){const n=this.currentToken;switch(t){case z.GREATER_THAN_SIGN:{this.state=Z.DATA,this.emitCurrentComment(n);break}case z.EXCLAMATION_MARK:{this.state=Z.COMMENT_END_BANG;break}case z.HYPHEN_MINUS:{n.data+="-";break}case z.EOF:{this._err(_e.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+="--",this.state=Z.COMMENT,this._stateComment(t)}}_stateCommentEndBang(t){const n=this.currentToken;switch(t){case z.HYPHEN_MINUS:{n.data+="--!",this.state=Z.COMMENT_END_DASH;break}case z.GREATER_THAN_SIGN:{this._err(_e.incorrectlyClosedComment),this.state=Z.DATA,this.emitCurrentComment(n);break}case z.EOF:{this._err(_e.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+="--!",this.state=Z.COMMENT,this._stateComment(t)}}_stateDoctype(t){switch(t){case z.SPACE:case z.LINE_FEED:case z.TABULATION:case z.FORM_FEED:{this.state=Z.BEFORE_DOCTYPE_NAME;break}case z.GREATER_THAN_SIGN:{this.state=Z.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(t);break}case z.EOF:{this._err(_e.eofInDoctype),this._createDoctypeToken(null);const n=this.currentToken;n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(_e.missingWhitespaceBeforeDoctypeName),this.state=Z.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(t)}}_stateBeforeDoctypeName(t){if(td(t))this._createDoctypeToken(String.fromCharCode(If(t))),this.state=Z.DOCTYPE_NAME;else switch(t){case z.SPACE:case z.LINE_FEED:case z.TABULATION:case z.FORM_FEED:break;case z.NULL:{this._err(_e.unexpectedNullCharacter),this._createDoctypeToken(Sn),this.state=Z.DOCTYPE_NAME;break}case z.GREATER_THAN_SIGN:{this._err(_e.missingDoctypeName),this._createDoctypeToken(null);const n=this.currentToken;n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=Z.DATA;break}case z.EOF:{this._err(_e.eofInDoctype),this._createDoctypeToken(null);const n=this.currentToken;n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._createDoctypeToken(String.fromCodePoint(t)),this.state=Z.DOCTYPE_NAME}}_stateDoctypeName(t){const n=this.currentToken;switch(t){case z.SPACE:case z.LINE_FEED:case z.TABULATION:case z.FORM_FEED:{this.state=Z.AFTER_DOCTYPE_NAME;break}case z.GREATER_THAN_SIGN:{this.state=Z.DATA,this.emitCurrentDoctype(n);break}case z.NULL:{this._err(_e.unexpectedNullCharacter),n.name+=Sn;break}case z.EOF:{this._err(_e.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:n.name+=String.fromCodePoint(td(t)?If(t):t)}}_stateAfterDoctypeName(t){const n=this.currentToken;switch(t){case z.SPACE:case z.LINE_FEED:case z.TABULATION:case z.FORM_FEED:break;case z.GREATER_THAN_SIGN:{this.state=Z.DATA,this.emitCurrentDoctype(n);break}case z.EOF:{this._err(_e.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._consumeSequenceIfMatch(Vr.PUBLIC,!1)?this.state=Z.AFTER_DOCTYPE_PUBLIC_KEYWORD:this._consumeSequenceIfMatch(Vr.SYSTEM,!1)?this.state=Z.AFTER_DOCTYPE_SYSTEM_KEYWORD:this._ensureHibernation()||(this._err(_e.invalidCharacterSequenceAfterDoctypeName),n.forceQuirks=!0,this.state=Z.BOGUS_DOCTYPE,this._stateBogusDoctype(t))}}_stateAfterDoctypePublicKeyword(t){const n=this.currentToken;switch(t){case z.SPACE:case z.LINE_FEED:case z.TABULATION:case z.FORM_FEED:{this.state=Z.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER;break}case z.QUOTATION_MARK:{this._err(_e.missingWhitespaceAfterDoctypePublicKeyword),n.publicId="",this.state=Z.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break}case z.APOSTROPHE:{this._err(_e.missingWhitespaceAfterDoctypePublicKeyword),n.publicId="",this.state=Z.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break}case z.GREATER_THAN_SIGN:{this._err(_e.missingDoctypePublicIdentifier),n.forceQuirks=!0,this.state=Z.DATA,this.emitCurrentDoctype(n);break}case z.EOF:{this._err(_e.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(_e.missingQuoteBeforeDoctypePublicIdentifier),n.forceQuirks=!0,this.state=Z.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBeforeDoctypePublicIdentifier(t){const n=this.currentToken;switch(t){case z.SPACE:case z.LINE_FEED:case z.TABULATION:case z.FORM_FEED:break;case z.QUOTATION_MARK:{n.publicId="",this.state=Z.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break}case z.APOSTROPHE:{n.publicId="",this.state=Z.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break}case z.GREATER_THAN_SIGN:{this._err(_e.missingDoctypePublicIdentifier),n.forceQuirks=!0,this.state=Z.DATA,this.emitCurrentDoctype(n);break}case z.EOF:{this._err(_e.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(_e.missingQuoteBeforeDoctypePublicIdentifier),n.forceQuirks=!0,this.state=Z.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateDoctypePublicIdentifierDoubleQuoted(t){const n=this.currentToken;switch(t){case z.QUOTATION_MARK:{this.state=Z.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break}case z.NULL:{this._err(_e.unexpectedNullCharacter),n.publicId+=Sn;break}case z.GREATER_THAN_SIGN:{this._err(_e.abruptDoctypePublicIdentifier),n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=Z.DATA;break}case z.EOF:{this._err(_e.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:n.publicId+=String.fromCodePoint(t)}}_stateDoctypePublicIdentifierSingleQuoted(t){const n=this.currentToken;switch(t){case z.APOSTROPHE:{this.state=Z.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break}case z.NULL:{this._err(_e.unexpectedNullCharacter),n.publicId+=Sn;break}case z.GREATER_THAN_SIGN:{this._err(_e.abruptDoctypePublicIdentifier),n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=Z.DATA;break}case z.EOF:{this._err(_e.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:n.publicId+=String.fromCodePoint(t)}}_stateAfterDoctypePublicIdentifier(t){const n=this.currentToken;switch(t){case z.SPACE:case z.LINE_FEED:case z.TABULATION:case z.FORM_FEED:{this.state=Z.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS;break}case z.GREATER_THAN_SIGN:{this.state=Z.DATA,this.emitCurrentDoctype(n);break}case z.QUOTATION_MARK:{this._err(_e.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),n.systemId="",this.state=Z.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case z.APOSTROPHE:{this._err(_e.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),n.systemId="",this.state=Z.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case z.EOF:{this._err(_e.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(_e.missingQuoteBeforeDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=Z.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBetweenDoctypePublicAndSystemIdentifiers(t){const n=this.currentToken;switch(t){case z.SPACE:case z.LINE_FEED:case z.TABULATION:case z.FORM_FEED:break;case z.GREATER_THAN_SIGN:{this.emitCurrentDoctype(n),this.state=Z.DATA;break}case z.QUOTATION_MARK:{n.systemId="",this.state=Z.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case z.APOSTROPHE:{n.systemId="",this.state=Z.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case z.EOF:{this._err(_e.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(_e.missingQuoteBeforeDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=Z.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateAfterDoctypeSystemKeyword(t){const n=this.currentToken;switch(t){case z.SPACE:case z.LINE_FEED:case z.TABULATION:case z.FORM_FEED:{this.state=Z.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER;break}case z.QUOTATION_MARK:{this._err(_e.missingWhitespaceAfterDoctypeSystemKeyword),n.systemId="",this.state=Z.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case z.APOSTROPHE:{this._err(_e.missingWhitespaceAfterDoctypeSystemKeyword),n.systemId="",this.state=Z.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case z.GREATER_THAN_SIGN:{this._err(_e.missingDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=Z.DATA,this.emitCurrentDoctype(n);break}case z.EOF:{this._err(_e.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(_e.missingQuoteBeforeDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=Z.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBeforeDoctypeSystemIdentifier(t){const n=this.currentToken;switch(t){case z.SPACE:case z.LINE_FEED:case z.TABULATION:case z.FORM_FEED:break;case z.QUOTATION_MARK:{n.systemId="",this.state=Z.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case z.APOSTROPHE:{n.systemId="",this.state=Z.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case z.GREATER_THAN_SIGN:{this._err(_e.missingDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=Z.DATA,this.emitCurrentDoctype(n);break}case z.EOF:{this._err(_e.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(_e.missingQuoteBeforeDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=Z.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateDoctypeSystemIdentifierDoubleQuoted(t){const n=this.currentToken;switch(t){case z.QUOTATION_MARK:{this.state=Z.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break}case z.NULL:{this._err(_e.unexpectedNullCharacter),n.systemId+=Sn;break}case z.GREATER_THAN_SIGN:{this._err(_e.abruptDoctypeSystemIdentifier),n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=Z.DATA;break}case z.EOF:{this._err(_e.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:n.systemId+=String.fromCodePoint(t)}}_stateDoctypeSystemIdentifierSingleQuoted(t){const n=this.currentToken;switch(t){case z.APOSTROPHE:{this.state=Z.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break}case z.NULL:{this._err(_e.unexpectedNullCharacter),n.systemId+=Sn;break}case z.GREATER_THAN_SIGN:{this._err(_e.abruptDoctypeSystemIdentifier),n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=Z.DATA;break}case z.EOF:{this._err(_e.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:n.systemId+=String.fromCodePoint(t)}}_stateAfterDoctypeSystemIdentifier(t){const n=this.currentToken;switch(t){case z.SPACE:case z.LINE_FEED:case z.TABULATION:case z.FORM_FEED:break;case z.GREATER_THAN_SIGN:{this.emitCurrentDoctype(n),this.state=Z.DATA;break}case z.EOF:{this._err(_e.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(_e.unexpectedCharacterAfterDoctypeSystemIdentifier),this.state=Z.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBogusDoctype(t){const n=this.currentToken;switch(t){case z.GREATER_THAN_SIGN:{this.emitCurrentDoctype(n),this.state=Z.DATA;break}case z.NULL:{this._err(_e.unexpectedNullCharacter);break}case z.EOF:{this.emitCurrentDoctype(n),this._emitEOFToken();break}}}_stateCdataSection(t){switch(t){case z.RIGHT_SQUARE_BRACKET:{this.state=Z.CDATA_SECTION_BRACKET;break}case z.EOF:{this._err(_e.eofInCdata),this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateCdataSectionBracket(t){t===z.RIGHT_SQUARE_BRACKET?this.state=Z.CDATA_SECTION_END:(this._emitChars("]"),this.state=Z.CDATA_SECTION,this._stateCdataSection(t))}_stateCdataSectionEnd(t){switch(t){case z.GREATER_THAN_SIGN:{this.state=Z.DATA;break}case z.RIGHT_SQUARE_BRACKET:{this._emitChars("]");break}default:this._emitChars("]]"),this.state=Z.CDATA_SECTION,this._stateCdataSection(t)}}_stateCharacterReference(){let t=this.entityDecoder.write(this.preprocessor.html,this.preprocessor.pos);if(t<0)if(this.preprocessor.lastChunkWritten)t=this.entityDecoder.end();else{this.active=!1,this.preprocessor.pos=this.preprocessor.html.length-1,this.consumedAfterSnapshot=0,this.preprocessor.endOfChunkHit=!0;return}t===0?(this.preprocessor.pos=this.entityStartPos,this._flushCodePointConsumedAsCharacterReference(z.AMPERSAND),this.state=!this._isCharacterReferenceInAttribute()&&J_(this.preprocessor.peek(1))?Z.AMBIGUOUS_AMPERSAND:this.returnState):this.state=this.returnState}_stateAmbiguousAmpersand(t){J_(t)?this._flushCodePointConsumedAsCharacterReference(t):(t===z.SEMICOLON&&this._err(_e.unknownNamedCharacterReference),this.state=this.returnState,this._callState(t))}}const hC=new Set([_.DD,_.DT,_.LI,_.OPTGROUP,_.OPTION,_.P,_.RB,_.RP,_.RT,_.RTC]),t5=new Set([...hC,_.CAPTION,_.COLGROUP,_.TBODY,_.TD,_.TFOOT,_.TH,_.THEAD,_.TR]),gh=new Set([_.APPLET,_.CAPTION,_.HTML,_.MARQUEE,_.OBJECT,_.TABLE,_.TD,_.TEMPLATE,_.TH]),gG=new Set([...gh,_.OL,_.UL]),vG=new Set([...gh,_.BUTTON]),n5=new Set([_.ANNOTATION_XML,_.MI,_.MN,_.MO,_.MS,_.MTEXT]),r5=new Set([_.DESC,_.FOREIGN_OBJECT,_.TITLE]),yG=new Set([_.TR,_.TEMPLATE,_.HTML]),bG=new Set([_.TBODY,_.TFOOT,_.THEAD,_.TEMPLATE,_.HTML]),EG=new Set([_.TABLE,_.TEMPLATE,_.HTML]),xG=new Set([_.TD,_.TH]);class _G{get currentTmplContentOrNode(){return this._isInTemplate()?this.treeAdapter.getTemplateContent(this.current):this.current}constructor(t,n,r){this.treeAdapter=n,this.handler=r,this.items=[],this.tagIDs=[],this.stackTop=-1,this.tmplCount=0,this.currentTagId=_.UNKNOWN,this.current=t}_indexOf(t){return this.items.lastIndexOf(t,this.stackTop)}_isInTemplate(){return this.currentTagId===_.TEMPLATE&&this.treeAdapter.getNamespaceURI(this.current)===ke.HTML}_updateCurrentElement(){this.current=this.items[this.stackTop],this.currentTagId=this.tagIDs[this.stackTop]}push(t,n){this.stackTop++,this.items[this.stackTop]=t,this.current=t,this.tagIDs[this.stackTop]=n,this.currentTagId=n,this._isInTemplate()&&this.tmplCount++,this.handler.onItemPush(t,n,!0)}pop(){const t=this.current;this.tmplCount>0&&this._isInTemplate()&&this.tmplCount--,this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(t,!0)}replace(t,n){const r=this._indexOf(t);this.items[r]=n,r===this.stackTop&&(this.current=n)}insertAfter(t,n,r){const a=this._indexOf(t)+1;this.items.splice(a,0,n),this.tagIDs.splice(a,0,r),this.stackTop++,a===this.stackTop&&this._updateCurrentElement(),this.current&&this.currentTagId!==void 0&&this.handler.onItemPush(this.current,this.currentTagId,a===this.stackTop)}popUntilTagNamePopped(t){let n=this.stackTop+1;do n=this.tagIDs.lastIndexOf(t,n-1);while(n>0&&this.treeAdapter.getNamespaceURI(this.items[n])!==ke.HTML);this.shortenToLength(Math.max(n,0))}shortenToLength(t){for(;this.stackTop>=t;){const n=this.current;this.tmplCount>0&&this._isInTemplate()&&(this.tmplCount-=1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(n,this.stackTop<t)}}popUntilElementPopped(t){const n=this._indexOf(t);this.shortenToLength(Math.max(n,0))}popUntilPopped(t,n){const r=this._indexOfTagNames(t,n);this.shortenToLength(Math.max(r,0))}popUntilNumberedHeaderPopped(){this.popUntilPopped(qv,ke.HTML)}popUntilTableCellPopped(){this.popUntilPopped(xG,ke.HTML)}popAllUpToHtmlElement(){this.tmplCount=0,this.shortenToLength(1)}_indexOfTagNames(t,n){for(let r=this.stackTop;r>=0;r--)if(t.has(this.tagIDs[r])&&this.treeAdapter.getNamespaceURI(this.items[r])===n)return r;return-1}clearBackTo(t,n){const r=this._indexOfTagNames(t,n);this.shortenToLength(r+1)}clearBackToTableContext(){this.clearBackTo(EG,ke.HTML)}clearBackToTableBodyContext(){this.clearBackTo(bG,ke.HTML)}clearBackToTableRowContext(){this.clearBackTo(yG,ke.HTML)}remove(t){const n=this._indexOf(t);n>=0&&(n===this.stackTop?this.pop():(this.items.splice(n,1),this.tagIDs.splice(n,1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(t,!1)))}tryPeekProperlyNestedBodyElement(){return this.stackTop>=1&&this.tagIDs[1]===_.BODY?this.items[1]:null}contains(t){return this._indexOf(t)>-1}getCommonAncestor(t){const n=this._indexOf(t)-1;return n>=0?this.items[n]:null}isRootHtmlElementCurrent(){return this.stackTop===0&&this.tagIDs[0]===_.HTML}hasInDynamicScope(t,n){for(let r=this.stackTop;r>=0;r--){const a=this.tagIDs[r];switch(this.treeAdapter.getNamespaceURI(this.items[r])){case ke.HTML:{if(a===t)return!0;if(n.has(a))return!1;break}case ke.SVG:{if(r5.has(a))return!1;break}case ke.MATHML:{if(n5.has(a))return!1;break}}}return!0}hasInScope(t){return this.hasInDynamicScope(t,gh)}hasInListItemScope(t){return this.hasInDynamicScope(t,gG)}hasInButtonScope(t){return this.hasInDynamicScope(t,vG)}hasNumberedHeaderInScope(){for(let t=this.stackTop;t>=0;t--){const n=this.tagIDs[t];switch(this.treeAdapter.getNamespaceURI(this.items[t])){case ke.HTML:{if(qv.has(n))return!0;if(gh.has(n))return!1;break}case ke.SVG:{if(r5.has(n))return!1;break}case ke.MATHML:{if(n5.has(n))return!1;break}}}return!0}hasInTableScope(t){for(let n=this.stackTop;n>=0;n--)if(this.treeAdapter.getNamespaceURI(this.items[n])===ke.HTML)switch(this.tagIDs[n]){case t:return!0;case _.TABLE:case _.HTML:return!1}return!0}hasTableBodyContextInTableScope(){for(let t=this.stackTop;t>=0;t--)if(this.treeAdapter.getNamespaceURI(this.items[t])===ke.HTML)switch(this.tagIDs[t]){case _.TBODY:case _.THEAD:case _.TFOOT:return!0;case _.TABLE:case _.HTML:return!1}return!0}hasInSelectScope(t){for(let n=this.stackTop;n>=0;n--)if(this.treeAdapter.getNamespaceURI(this.items[n])===ke.HTML)switch(this.tagIDs[n]){case t:return!0;case _.OPTION:case _.OPTGROUP:break;default:return!1}return!0}generateImpliedEndTags(){for(;this.currentTagId!==void 0&&hC.has(this.currentTagId);)this.pop()}generateImpliedEndTagsThoroughly(){for(;this.currentTagId!==void 0&&t5.has(this.currentTagId);)this.pop()}generateImpliedEndTagsWithExclusion(t){for(;this.currentTagId!==void 0&&this.currentTagId!==t&&t5.has(this.currentTagId);)this.pop()}}const $2=3;var vs;(function(e){e[e.Marker=0]="Marker",e[e.Element=1]="Element"})(vs||(vs={}));const a5={type:vs.Marker};class TG{constructor(t){this.treeAdapter=t,this.entries=[],this.bookmark=null}_getNoahArkConditionCandidates(t,n){const r=[],a=n.length,i=this.treeAdapter.getTagName(t),l=this.treeAdapter.getNamespaceURI(t);for(let u=0;u<this.entries.length;u++){const d=this.entries[u];if(d.type===vs.Marker)break;const{element:h}=d;if(this.treeAdapter.getTagName(h)===i&&this.treeAdapter.getNamespaceURI(h)===l){const v=this.treeAdapter.getAttrList(h);v.length===a&&r.push({idx:u,attrs:v})}}return r}_ensureNoahArkCondition(t){if(this.entries.length<$2)return;const n=this.treeAdapter.getAttrList(t),r=this._getNoahArkConditionCandidates(t,n);if(r.length<$2)return;const a=new Map(n.map(l=>[l.name,l.value]));let i=0;for(let l=0;l<r.length;l++){const u=r[l];u.attrs.every(d=>a.get(d.name)===d.value)&&(i+=1,i>=$2&&this.entries.splice(u.idx,1))}}insertMarker(){this.entries.unshift(a5)}pushElement(t,n){this._ensureNoahArkCondition(t),this.entries.unshift({type:vs.Element,element:t,token:n})}insertElementAfterBookmark(t,n){const r=this.entries.indexOf(this.bookmark);this.entries.splice(r,0,{type:vs.Element,element:t,token:n})}removeEntry(t){const n=this.entries.indexOf(t);n!==-1&&this.entries.splice(n,1)}clearToLastMarker(){const t=this.entries.indexOf(a5);t===-1?this.entries.length=0:this.entries.splice(0,t+1)}getElementEntryInScopeWithTagName(t){const n=this.entries.find(r=>r.type===vs.Marker||this.treeAdapter.getTagName(r.element)===t);return n&&n.type===vs.Element?n:null}getElementEntry(t){return this.entries.find(n=>n.type===vs.Element&&n.element===t)}}const Ki={createDocument(){return{nodeName:"#document",mode:wa.NO_QUIRKS,childNodes:[]}},createDocumentFragment(){return{nodeName:"#document-fragment",childNodes:[]}},createElement(e,t,n){return{nodeName:e,tagName:e,attrs:n,namespaceURI:t,childNodes:[],parentNode:null}},createCommentNode(e){return{nodeName:"#comment",data:e,parentNode:null}},createTextNode(e){return{nodeName:"#text",value:e,parentNode:null}},appendChild(e,t){e.childNodes.push(t),t.parentNode=e},insertBefore(e,t,n){const r=e.childNodes.indexOf(n);e.childNodes.splice(r,0,t),t.parentNode=e},setTemplateContent(e,t){e.content=t},getTemplateContent(e){return e.content},setDocumentType(e,t,n,r){const a=e.childNodes.find(i=>i.nodeName==="#documentType");if(a)a.name=t,a.publicId=n,a.systemId=r;else{const i={nodeName:"#documentType",name:t,publicId:n,systemId:r,parentNode:null};Ki.appendChild(e,i)}},setDocumentMode(e,t){e.mode=t},getDocumentMode(e){return e.mode},detachNode(e){if(e.parentNode){const t=e.parentNode.childNodes.indexOf(e);e.parentNode.childNodes.splice(t,1),e.parentNode=null}},insertText(e,t){if(e.childNodes.length>0){const n=e.childNodes[e.childNodes.length-1];if(Ki.isTextNode(n)){n.value+=t;return}}Ki.appendChild(e,Ki.createTextNode(t))},insertTextBefore(e,t,n){const r=e.childNodes[e.childNodes.indexOf(n)-1];r&&Ki.isTextNode(r)?r.value+=t:Ki.insertBefore(e,Ki.createTextNode(t),n)},adoptAttributes(e,t){const n=new Set(e.attrs.map(r=>r.name));for(let r=0;r<t.length;r++)n.has(t[r].name)||e.attrs.push(t[r])},getFirstChild(e){return e.childNodes[0]},getChildNodes(e){return e.childNodes},getParentNode(e){return e.parentNode},getAttrList(e){return e.attrs},getTagName(e){return e.tagName},getNamespaceURI(e){return e.namespaceURI},getTextNodeContent(e){return e.value},getCommentNodeContent(e){return e.data},getDocumentTypeNodeName(e){return e.name},getDocumentTypeNodePublicId(e){return e.publicId},getDocumentTypeNodeSystemId(e){return e.systemId},isTextNode(e){return e.nodeName==="#text"},isCommentNode(e){return e.nodeName==="#comment"},isDocumentTypeNode(e){return e.nodeName==="#documentType"},isElementNode(e){return Object.prototype.hasOwnProperty.call(e,"tagName")},setNodeSourceCodeLocation(e,t){e.sourceCodeLocation=t},getNodeSourceCodeLocation(e){return e.sourceCodeLocation},updateNodeSourceCodeLocation(e,t){e.sourceCodeLocation={...e.sourceCodeLocation,...t}}},mC="html",AG="about:legacy-compat",SG="http://www.ibm.com/data/dtd/v11/ibmxhtml1-transitional.dtd",pC=["+//silmaril//dtd html pro v0r11 19970101//","-//as//dtd html 3.0 aswedit + extensions//","-//advasoft ltd//dtd html 3.0 aswedit + extensions//","-//ietf//dtd html 2.0 level 1//","-//ietf//dtd html 2.0 level 2//","-//ietf//dtd html 2.0 strict level 1//","-//ietf//dtd html 2.0 strict level 2//","-//ietf//dtd html 2.0 strict//","-//ietf//dtd html 2.0//","-//ietf//dtd html 2.1e//","-//ietf//dtd html 3.0//","-//ietf//dtd html 3.2 final//","-//ietf//dtd html 3.2//","-//ietf//dtd html 3//","-//ietf//dtd html level 0//","-//ietf//dtd html level 1//","-//ietf//dtd html level 2//","-//ietf//dtd html level 3//","-//ietf//dtd html strict level 0//","-//ietf//dtd html strict level 1//","-//ietf//dtd html strict level 2//","-//ietf//dtd html strict level 3//","-//ietf//dtd html strict//","-//ietf//dtd html//","-//metrius//dtd metrius presentational//","-//microsoft//dtd internet explorer 2.0 html strict//","-//microsoft//dtd internet explorer 2.0 html//","-//microsoft//dtd internet explorer 2.0 tables//","-//microsoft//dtd internet explorer 3.0 html strict//","-//microsoft//dtd internet explorer 3.0 html//","-//microsoft//dtd internet explorer 3.0 tables//","-//netscape comm. corp.//dtd html//","-//netscape comm. corp.//dtd strict html//","-//o'reilly and associates//dtd html 2.0//","-//o'reilly and associates//dtd html extended 1.0//","-//o'reilly and associates//dtd html extended relaxed 1.0//","-//sq//dtd html 2.0 hotmetal + extensions//","-//softquad software//dtd hotmetal pro 6.0::19990601::extensions to html 4.0//","-//softquad//dtd hotmetal pro 4.0::19971010::extensions to html 4.0//","-//spyglass//dtd html 2.0 extended//","-//sun microsystems corp.//dtd hotjava html//","-//sun microsystems corp.//dtd hotjava strict html//","-//w3c//dtd html 3 1995-03-24//","-//w3c//dtd html 3.2 draft//","-//w3c//dtd html 3.2 final//","-//w3c//dtd html 3.2//","-//w3c//dtd html 3.2s draft//","-//w3c//dtd html 4.0 frameset//","-//w3c//dtd html 4.0 transitional//","-//w3c//dtd html experimental 19960712//","-//w3c//dtd html experimental 970421//","-//w3c//dtd w3 html//","-//w3o//dtd w3 html 3.0//","-//webtechs//dtd mozilla html 2.0//","-//webtechs//dtd mozilla html//"],wG=[...pC,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"],CG=new Set(["-//w3o//dtd w3 html strict 3.0//en//","-/w3c/dtd html 4.0 transitional/en","html"]),gC=["-//w3c//dtd xhtml 1.0 frameset//","-//w3c//dtd xhtml 1.0 transitional//"],RG=[...gC,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"];function s5(e,t){return t.some(n=>e.startsWith(n))}function OG(e){return e.name===mC&&e.publicId===null&&(e.systemId===null||e.systemId===AG)}function NG(e){if(e.name!==mC)return wa.QUIRKS;const{systemId:t}=e;if(t&&t.toLowerCase()===SG)return wa.QUIRKS;let{publicId:n}=e;if(n!==null){if(n=n.toLowerCase(),CG.has(n))return wa.QUIRKS;let r=t===null?wG:pC;if(s5(n,r))return wa.QUIRKS;if(r=t===null?gC:RG,s5(n,r))return wa.LIMITED_QUIRKS}return wa.NO_QUIRKS}const i5={TEXT_HTML:"text/html",APPLICATION_XML:"application/xhtml+xml"},PG="definitionurl",kG="definitionURL",DG=new Map(["attributeName","attributeType","baseFrequency","baseProfile","calcMode","clipPathUnits","diffuseConstant","edgeMode","filterUnits","glyphRef","gradientTransform","gradientUnits","kernelMatrix","kernelUnitLength","keyPoints","keySplines","keyTimes","lengthAdjust","limitingConeAngle","markerHeight","markerUnits","markerWidth","maskContentUnits","maskUnits","numOctaves","pathLength","patternContentUnits","patternTransform","patternUnits","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","refX","refY","repeatCount","repeatDur","requiredExtensions","requiredFeatures","specularConstant","specularExponent","spreadMethod","startOffset","stdDeviation","stitchTiles","surfaceScale","systemLanguage","tableValues","targetX","targetY","textLength","viewBox","viewTarget","xChannelSelector","yChannelSelector","zoomAndPan"].map(e=>[e.toLowerCase(),e])),MG=new Map([["xlink:actuate",{prefix:"xlink",name:"actuate",namespace:ke.XLINK}],["xlink:arcrole",{prefix:"xlink",name:"arcrole",namespace:ke.XLINK}],["xlink:href",{prefix:"xlink",name:"href",namespace:ke.XLINK}],["xlink:role",{prefix:"xlink",name:"role",namespace:ke.XLINK}],["xlink:show",{prefix:"xlink",name:"show",namespace:ke.XLINK}],["xlink:title",{prefix:"xlink",name:"title",namespace:ke.XLINK}],["xlink:type",{prefix:"xlink",name:"type",namespace:ke.XLINK}],["xml:lang",{prefix:"xml",name:"lang",namespace:ke.XML}],["xml:space",{prefix:"xml",name:"space",namespace:ke.XML}],["xmlns",{prefix:"",name:"xmlns",namespace:ke.XMLNS}],["xmlns:xlink",{prefix:"xmlns",name:"xlink",namespace:ke.XMLNS}]]),LG=new Map(["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","textPath"].map(e=>[e.toLowerCase(),e])),IG=new Set([_.B,_.BIG,_.BLOCKQUOTE,_.BODY,_.BR,_.CENTER,_.CODE,_.DD,_.DIV,_.DL,_.DT,_.EM,_.EMBED,_.H1,_.H2,_.H3,_.H4,_.H5,_.H6,_.HEAD,_.HR,_.I,_.IMG,_.LI,_.LISTING,_.MENU,_.META,_.NOBR,_.OL,_.P,_.PRE,_.RUBY,_.S,_.SMALL,_.SPAN,_.STRONG,_.STRIKE,_.SUB,_.SUP,_.TABLE,_.TT,_.U,_.UL,_.VAR]);function jG(e){const t=e.tagID;return t===_.FONT&&e.attrs.some(({name:r})=>r===Vo.COLOR||r===Vo.SIZE||r===Vo.FACE)||IG.has(t)}function vC(e){for(let t=0;t<e.attrs.length;t++)if(e.attrs[t].name===PG){e.attrs[t].name=kG;break}}function yC(e){for(let t=0;t<e.attrs.length;t++){const n=DG.get(e.attrs[t].name);n!=null&&(e.attrs[t].name=n)}}function c6(e){for(let t=0;t<e.attrs.length;t++){const n=MG.get(e.attrs[t].name);n&&(e.attrs[t].prefix=n.prefix,e.attrs[t].name=n.name,e.attrs[t].namespace=n.namespace)}}function HG(e){const t=LG.get(e.tagName);t!=null&&(e.tagName=t,e.tagID=zu(e.tagName))}function FG(e,t){return t===ke.MATHML&&(e===_.MI||e===_.MO||e===_.MN||e===_.MS||e===_.MTEXT)}function UG(e,t,n){if(t===ke.MATHML&&e===_.ANNOTATION_XML){for(let r=0;r<n.length;r++)if(n[r].name===Vo.ENCODING){const a=n[r].value.toLowerCase();return a===i5.TEXT_HTML||a===i5.APPLICATION_XML}}return t===ke.SVG&&(e===_.FOREIGN_OBJECT||e===_.DESC||e===_.TITLE)}function BG(e,t,n,r){return(!r||r===ke.HTML)&&UG(e,t,n)||(!r||r===ke.MATHML)&&FG(e,t)}const VG="hidden",zG=8,qG=3;var G;(function(e){e[e.INITIAL=0]="INITIAL",e[e.BEFORE_HTML=1]="BEFORE_HTML",e[e.BEFORE_HEAD=2]="BEFORE_HEAD",e[e.IN_HEAD=3]="IN_HEAD",e[e.IN_HEAD_NO_SCRIPT=4]="IN_HEAD_NO_SCRIPT",e[e.AFTER_HEAD=5]="AFTER_HEAD",e[e.IN_BODY=6]="IN_BODY",e[e.TEXT=7]="TEXT",e[e.IN_TABLE=8]="IN_TABLE",e[e.IN_TABLE_TEXT=9]="IN_TABLE_TEXT",e[e.IN_CAPTION=10]="IN_CAPTION",e[e.IN_COLUMN_GROUP=11]="IN_COLUMN_GROUP",e[e.IN_TABLE_BODY=12]="IN_TABLE_BODY",e[e.IN_ROW=13]="IN_ROW",e[e.IN_CELL=14]="IN_CELL",e[e.IN_SELECT=15]="IN_SELECT",e[e.IN_SELECT_IN_TABLE=16]="IN_SELECT_IN_TABLE",e[e.IN_TEMPLATE=17]="IN_TEMPLATE",e[e.AFTER_BODY=18]="AFTER_BODY",e[e.IN_FRAMESET=19]="IN_FRAMESET",e[e.AFTER_FRAMESET=20]="AFTER_FRAMESET",e[e.AFTER_AFTER_BODY=21]="AFTER_AFTER_BODY",e[e.AFTER_AFTER_FRAMESET=22]="AFTER_AFTER_FRAMESET"})(G||(G={}));const $G={startLine:-1,startCol:-1,startOffset:-1,endLine:-1,endCol:-1,endOffset:-1},bC=new Set([_.TABLE,_.TBODY,_.TFOOT,_.THEAD,_.TR]),o5={scriptingEnabled:!0,sourceCodeLocationInfo:!1,treeAdapter:Ki,onParseError:null};class l5{constructor(t,n,r=null,a=null){this.fragmentContext=r,this.scriptHandler=a,this.currentToken=null,this.stopped=!1,this.insertionMode=G.INITIAL,this.originalInsertionMode=G.INITIAL,this.headElement=null,this.formElement=null,this.currentNotInHTML=!1,this.tmplInsertionModeStack=[],this.pendingCharacterTokens=[],this.hasNonWhitespacePendingCharacterToken=!1,this.framesetOk=!0,this.skipNextNewLine=!1,this.fosterParentingEnabled=!1,this.options={...o5,...t},this.treeAdapter=this.options.treeAdapter,this.onParseError=this.options.onParseError,this.onParseError&&(this.options.sourceCodeLocationInfo=!0),this.document=n??this.treeAdapter.createDocument(),this.tokenizer=new pG(this.options,this),this.activeFormattingElements=new TG(this.treeAdapter),this.fragmentContextID=r?zu(this.treeAdapter.getTagName(r)):_.UNKNOWN,this._setContextModes(r??this.document,this.fragmentContextID),this.openElements=new _G(this.document,this.treeAdapter,this)}static parse(t,n){const r=new this(n);return r.tokenizer.write(t,!0),r.document}static getFragmentParser(t,n){const r={...o5,...n};t??(t=r.treeAdapter.createElement(fe.TEMPLATE,ke.HTML,[]));const a=r.treeAdapter.createElement("documentmock",ke.HTML,[]),i=new this(r,a,t);return i.fragmentContextID===_.TEMPLATE&&i.tmplInsertionModeStack.unshift(G.IN_TEMPLATE),i._initTokenizerForFragmentParsing(),i._insertFakeRootElement(),i._resetInsertionMode(),i._findFormInFragmentContext(),i}getFragment(){const t=this.treeAdapter.getFirstChild(this.document),n=this.treeAdapter.createDocumentFragment();return this._adoptNodes(t,n),n}_err(t,n,r){var a;if(!this.onParseError)return;const i=(a=t.location)!==null&&a!==void 0?a:$G,l={code:n,startLine:i.startLine,startCol:i.startCol,startOffset:i.startOffset,endLine:r?i.startLine:i.endLine,endCol:r?i.startCol:i.endCol,endOffset:r?i.startOffset:i.endOffset};this.onParseError(l)}onItemPush(t,n,r){var a,i;(i=(a=this.treeAdapter).onItemPush)===null||i===void 0||i.call(a,t),r&&this.openElements.stackTop>0&&this._setContextModes(t,n)}onItemPop(t,n){var r,a;if(this.options.sourceCodeLocationInfo&&this._setEndLocation(t,this.currentToken),(a=(r=this.treeAdapter).onItemPop)===null||a===void 0||a.call(r,t,this.openElements.current),n){let i,l;this.openElements.stackTop===0&&this.fragmentContext?(i=this.fragmentContext,l=this.fragmentContextID):{current:i,currentTagId:l}=this.openElements,this._setContextModes(i,l)}}_setContextModes(t,n){const r=t===this.document||t&&this.treeAdapter.getNamespaceURI(t)===ke.HTML;this.currentNotInHTML=!r,this.tokenizer.inForeignNode=!r&&t!==void 0&&n!==void 0&&!this._isIntegrationPoint(n,t)}_switchToTextParsing(t,n){this._insertElement(t,ke.HTML),this.tokenizer.state=n,this.originalInsertionMode=this.insertionMode,this.insertionMode=G.TEXT}switchToPlaintextParsing(){this.insertionMode=G.TEXT,this.originalInsertionMode=G.IN_BODY,this.tokenizer.state=Vn.PLAINTEXT}_getAdjustedCurrentElement(){return this.openElements.stackTop===0&&this.fragmentContext?this.fragmentContext:this.openElements.current}_findFormInFragmentContext(){let t=this.fragmentContext;for(;t;){if(this.treeAdapter.getTagName(t)===fe.FORM){this.formElement=t;break}t=this.treeAdapter.getParentNode(t)}}_initTokenizerForFragmentParsing(){if(!(!this.fragmentContext||this.treeAdapter.getNamespaceURI(this.fragmentContext)!==ke.HTML))switch(this.fragmentContextID){case _.TITLE:case _.TEXTAREA:{this.tokenizer.state=Vn.RCDATA;break}case _.STYLE:case _.XMP:case _.IFRAME:case _.NOEMBED:case _.NOFRAMES:case _.NOSCRIPT:{this.tokenizer.state=Vn.RAWTEXT;break}case _.SCRIPT:{this.tokenizer.state=Vn.SCRIPT_DATA;break}case _.PLAINTEXT:{this.tokenizer.state=Vn.PLAINTEXT;break}}}_setDocumentType(t){const n=t.name||"",r=t.publicId||"",a=t.systemId||"";if(this.treeAdapter.setDocumentType(this.document,n,r,a),t.location){const l=this.treeAdapter.getChildNodes(this.document).find(u=>this.treeAdapter.isDocumentTypeNode(u));l&&this.treeAdapter.setNodeSourceCodeLocation(l,t.location)}}_attachElementToTree(t,n){if(this.options.sourceCodeLocationInfo){const r=n&&{...n,startTag:n};this.treeAdapter.setNodeSourceCodeLocation(t,r)}if(this._shouldFosterParentOnInsertion())this._fosterParentElement(t);else{const r=this.openElements.currentTmplContentOrNode;this.treeAdapter.appendChild(r??this.document,t)}}_appendElement(t,n){const r=this.treeAdapter.createElement(t.tagName,n,t.attrs);this._attachElementToTree(r,t.location)}_insertElement(t,n){const r=this.treeAdapter.createElement(t.tagName,n,t.attrs);this._attachElementToTree(r,t.location),this.openElements.push(r,t.tagID)}_insertFakeElement(t,n){const r=this.treeAdapter.createElement(t,ke.HTML,[]);this._attachElementToTree(r,null),this.openElements.push(r,n)}_insertTemplate(t){const n=this.treeAdapter.createElement(t.tagName,ke.HTML,t.attrs),r=this.treeAdapter.createDocumentFragment();this.treeAdapter.setTemplateContent(n,r),this._attachElementToTree(n,t.location),this.openElements.push(n,t.tagID),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(r,null)}_insertFakeRootElement(){const t=this.treeAdapter.createElement(fe.HTML,ke.HTML,[]);this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(t,null),this.treeAdapter.appendChild(this.openElements.current,t),this.openElements.push(t,_.HTML)}_appendCommentNode(t,n){const r=this.treeAdapter.createCommentNode(t.data);this.treeAdapter.appendChild(n,r),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(r,t.location)}_insertCharacters(t){let n,r;if(this._shouldFosterParentOnInsertion()?({parent:n,beforeElement:r}=this._findFosterParentingLocation(),r?this.treeAdapter.insertTextBefore(n,t.chars,r):this.treeAdapter.insertText(n,t.chars)):(n=this.openElements.currentTmplContentOrNode,this.treeAdapter.insertText(n,t.chars)),!t.location)return;const a=this.treeAdapter.getChildNodes(n),i=r?a.lastIndexOf(r):a.length,l=a[i-1];if(this.treeAdapter.getNodeSourceCodeLocation(l)){const{endLine:d,endCol:h,endOffset:v}=t.location;this.treeAdapter.updateNodeSourceCodeLocation(l,{endLine:d,endCol:h,endOffset:v})}else this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(l,t.location)}_adoptNodes(t,n){for(let r=this.treeAdapter.getFirstChild(t);r;r=this.treeAdapter.getFirstChild(t))this.treeAdapter.detachNode(r),this.treeAdapter.appendChild(n,r)}_setEndLocation(t,n){if(this.treeAdapter.getNodeSourceCodeLocation(t)&&n.location){const r=n.location,a=this.treeAdapter.getTagName(t),i=n.type===Nt.END_TAG&&a===n.tagName?{endTag:{...r},endLine:r.endLine,endCol:r.endCol,endOffset:r.endOffset}:{endLine:r.startLine,endCol:r.startCol,endOffset:r.startOffset};this.treeAdapter.updateNodeSourceCodeLocation(t,i)}}shouldProcessStartTagTokenInForeignContent(t){if(!this.currentNotInHTML)return!1;let n,r;return this.openElements.stackTop===0&&this.fragmentContext?(n=this.fragmentContext,r=this.fragmentContextID):{current:n,currentTagId:r}=this.openElements,t.tagID===_.SVG&&this.treeAdapter.getTagName(n)===fe.ANNOTATION_XML&&this.treeAdapter.getNamespaceURI(n)===ke.MATHML?!1:this.tokenizer.inForeignNode||(t.tagID===_.MGLYPH||t.tagID===_.MALIGNMARK)&&r!==void 0&&!this._isIntegrationPoint(r,n,ke.HTML)}_processToken(t){switch(t.type){case Nt.CHARACTER:{this.onCharacter(t);break}case Nt.NULL_CHARACTER:{this.onNullCharacter(t);break}case Nt.COMMENT:{this.onComment(t);break}case Nt.DOCTYPE:{this.onDoctype(t);break}case Nt.START_TAG:{this._processStartTag(t);break}case Nt.END_TAG:{this.onEndTag(t);break}case Nt.EOF:{this.onEof(t);break}case Nt.WHITESPACE_CHARACTER:{this.onWhitespaceCharacter(t);break}}}_isIntegrationPoint(t,n,r){const a=this.treeAdapter.getNamespaceURI(n),i=this.treeAdapter.getAttrList(n);return BG(t,a,i,r)}_reconstructActiveFormattingElements(){const t=this.activeFormattingElements.entries.length;if(t){const n=this.activeFormattingElements.entries.findIndex(a=>a.type===vs.Marker||this.openElements.contains(a.element)),r=n===-1?t-1:n-1;for(let a=r;a>=0;a--){const i=this.activeFormattingElements.entries[a];this._insertElement(i.token,this.treeAdapter.getNamespaceURI(i.element)),i.element=this.openElements.current}}}_closeTableCell(){this.openElements.generateImpliedEndTags(),this.openElements.popUntilTableCellPopped(),this.activeFormattingElements.clearToLastMarker(),this.insertionMode=G.IN_ROW}_closePElement(){this.openElements.generateImpliedEndTagsWithExclusion(_.P),this.openElements.popUntilTagNamePopped(_.P)}_resetInsertionMode(){for(let t=this.openElements.stackTop;t>=0;t--)switch(t===0&&this.fragmentContext?this.fragmentContextID:this.openElements.tagIDs[t]){case _.TR:{this.insertionMode=G.IN_ROW;return}case _.TBODY:case _.THEAD:case _.TFOOT:{this.insertionMode=G.IN_TABLE_BODY;return}case _.CAPTION:{this.insertionMode=G.IN_CAPTION;return}case _.COLGROUP:{this.insertionMode=G.IN_COLUMN_GROUP;return}case _.TABLE:{this.insertionMode=G.IN_TABLE;return}case _.BODY:{this.insertionMode=G.IN_BODY;return}case _.FRAMESET:{this.insertionMode=G.IN_FRAMESET;return}case _.SELECT:{this._resetInsertionModeForSelect(t);return}case _.TEMPLATE:{this.insertionMode=this.tmplInsertionModeStack[0];return}case _.HTML:{this.insertionMode=this.headElement?G.AFTER_HEAD:G.BEFORE_HEAD;return}case _.TD:case _.TH:{if(t>0){this.insertionMode=G.IN_CELL;return}break}case _.HEAD:{if(t>0){this.insertionMode=G.IN_HEAD;return}break}}this.insertionMode=G.IN_BODY}_resetInsertionModeForSelect(t){if(t>0)for(let n=t-1;n>0;n--){const r=this.openElements.tagIDs[n];if(r===_.TEMPLATE)break;if(r===_.TABLE){this.insertionMode=G.IN_SELECT_IN_TABLE;return}}this.insertionMode=G.IN_SELECT}_isElementCausesFosterParenting(t){return bC.has(t)}_shouldFosterParentOnInsertion(){return this.fosterParentingEnabled&&this.openElements.currentTagId!==void 0&&this._isElementCausesFosterParenting(this.openElements.currentTagId)}_findFosterParentingLocation(){for(let t=this.openElements.stackTop;t>=0;t--){const n=this.openElements.items[t];switch(this.openElements.tagIDs[t]){case _.TEMPLATE:{if(this.treeAdapter.getNamespaceURI(n)===ke.HTML)return{parent:this.treeAdapter.getTemplateContent(n),beforeElement:null};break}case _.TABLE:{const r=this.treeAdapter.getParentNode(n);return r?{parent:r,beforeElement:n}:{parent:this.openElements.items[t-1],beforeElement:null}}}}return{parent:this.openElements.items[0],beforeElement:null}}_fosterParentElement(t){const n=this._findFosterParentingLocation();n.beforeElement?this.treeAdapter.insertBefore(n.parent,t,n.beforeElement):this.treeAdapter.appendChild(n.parent,t)}_isSpecialElement(t,n){const r=this.treeAdapter.getNamespaceURI(t);return dG[r].has(n)}onCharacter(t){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){xX(this,t);return}switch(this.insertionMode){case G.INITIAL:{Gc(this,t);break}case G.BEFORE_HTML:{dd(this,t);break}case G.BEFORE_HEAD:{fd(this,t);break}case G.IN_HEAD:{hd(this,t);break}case G.IN_HEAD_NO_SCRIPT:{md(this,t);break}case G.AFTER_HEAD:{pd(this,t);break}case G.IN_BODY:case G.IN_CAPTION:case G.IN_CELL:case G.IN_TEMPLATE:{xC(this,t);break}case G.TEXT:case G.IN_SELECT:case G.IN_SELECT_IN_TABLE:{this._insertCharacters(t);break}case G.IN_TABLE:case G.IN_TABLE_BODY:case G.IN_ROW:{Z2(this,t);break}case G.IN_TABLE_TEXT:{CC(this,t);break}case G.IN_COLUMN_GROUP:{vh(this,t);break}case G.AFTER_BODY:{yh(this,t);break}case G.AFTER_AFTER_BODY:{Gf(this,t);break}}}onNullCharacter(t){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){EX(this,t);return}switch(this.insertionMode){case G.INITIAL:{Gc(this,t);break}case G.BEFORE_HTML:{dd(this,t);break}case G.BEFORE_HEAD:{fd(this,t);break}case G.IN_HEAD:{hd(this,t);break}case G.IN_HEAD_NO_SCRIPT:{md(this,t);break}case G.AFTER_HEAD:{pd(this,t);break}case G.TEXT:{this._insertCharacters(t);break}case G.IN_TABLE:case G.IN_TABLE_BODY:case G.IN_ROW:{Z2(this,t);break}case G.IN_COLUMN_GROUP:{vh(this,t);break}case G.AFTER_BODY:{yh(this,t);break}case G.AFTER_AFTER_BODY:{Gf(this,t);break}}}onComment(t){if(this.skipNextNewLine=!1,this.currentNotInHTML){$v(this,t);return}switch(this.insertionMode){case G.INITIAL:case G.BEFORE_HTML:case G.BEFORE_HEAD:case G.IN_HEAD:case G.IN_HEAD_NO_SCRIPT:case G.AFTER_HEAD:case G.IN_BODY:case G.IN_TABLE:case G.IN_CAPTION:case G.IN_COLUMN_GROUP:case G.IN_TABLE_BODY:case G.IN_ROW:case G.IN_CELL:case G.IN_SELECT:case G.IN_SELECT_IN_TABLE:case G.IN_TEMPLATE:case G.IN_FRAMESET:case G.AFTER_FRAMESET:{$v(this,t);break}case G.IN_TABLE_TEXT:{Kc(this,t);break}case G.AFTER_BODY:{WG(this,t);break}case G.AFTER_AFTER_BODY:case G.AFTER_AFTER_FRAMESET:{JG(this,t);break}}}onDoctype(t){switch(this.skipNextNewLine=!1,this.insertionMode){case G.INITIAL:{eK(this,t);break}case G.BEFORE_HEAD:case G.IN_HEAD:case G.IN_HEAD_NO_SCRIPT:case G.AFTER_HEAD:{this._err(t,_e.misplacedDoctype);break}case G.IN_TABLE_TEXT:{Kc(this,t);break}}}onStartTag(t){this.skipNextNewLine=!1,this.currentToken=t,this._processStartTag(t),t.selfClosing&&!t.ackSelfClosing&&this._err(t,_e.nonVoidHtmlElementStartTagWithTrailingSolidus)}_processStartTag(t){this.shouldProcessStartTagTokenInForeignContent(t)?_X(this,t):this._startTagOutsideForeignContent(t)}_startTagOutsideForeignContent(t){switch(this.insertionMode){case G.INITIAL:{Gc(this,t);break}case G.BEFORE_HTML:{tK(this,t);break}case G.BEFORE_HEAD:{rK(this,t);break}case G.IN_HEAD:{rs(this,t);break}case G.IN_HEAD_NO_SCRIPT:{iK(this,t);break}case G.AFTER_HEAD:{lK(this,t);break}case G.IN_BODY:{Cr(this,t);break}case G.IN_TABLE:{_u(this,t);break}case G.IN_TABLE_TEXT:{Kc(this,t);break}case G.IN_CAPTION:{aX(this,t);break}case G.IN_COLUMN_GROUP:{h6(this,t);break}case G.IN_TABLE_BODY:{R1(this,t);break}case G.IN_ROW:{O1(this,t);break}case G.IN_CELL:{oX(this,t);break}case G.IN_SELECT:{NC(this,t);break}case G.IN_SELECT_IN_TABLE:{uX(this,t);break}case G.IN_TEMPLATE:{dX(this,t);break}case G.AFTER_BODY:{hX(this,t);break}case G.IN_FRAMESET:{mX(this,t);break}case G.AFTER_FRAMESET:{gX(this,t);break}case G.AFTER_AFTER_BODY:{yX(this,t);break}case G.AFTER_AFTER_FRAMESET:{bX(this,t);break}}}onEndTag(t){this.skipNextNewLine=!1,this.currentToken=t,this.currentNotInHTML?TX(this,t):this._endTagOutsideForeignContent(t)}_endTagOutsideForeignContent(t){switch(this.insertionMode){case G.INITIAL:{Gc(this,t);break}case G.BEFORE_HTML:{nK(this,t);break}case G.BEFORE_HEAD:{aK(this,t);break}case G.IN_HEAD:{sK(this,t);break}case G.IN_HEAD_NO_SCRIPT:{oK(this,t);break}case G.AFTER_HEAD:{uK(this,t);break}case G.IN_BODY:{C1(this,t);break}case G.TEXT:{YK(this,t);break}case G.IN_TABLE:{Od(this,t);break}case G.IN_TABLE_TEXT:{Kc(this,t);break}case G.IN_CAPTION:{sX(this,t);break}case G.IN_COLUMN_GROUP:{iX(this,t);break}case G.IN_TABLE_BODY:{Zv(this,t);break}case G.IN_ROW:{OC(this,t);break}case G.IN_CELL:{lX(this,t);break}case G.IN_SELECT:{PC(this,t);break}case G.IN_SELECT_IN_TABLE:{cX(this,t);break}case G.IN_TEMPLATE:{fX(this,t);break}case G.AFTER_BODY:{DC(this,t);break}case G.IN_FRAMESET:{pX(this,t);break}case G.AFTER_FRAMESET:{vX(this,t);break}case G.AFTER_AFTER_BODY:{Gf(this,t);break}}}onEof(t){switch(this.insertionMode){case G.INITIAL:{Gc(this,t);break}case G.BEFORE_HTML:{dd(this,t);break}case G.BEFORE_HEAD:{fd(this,t);break}case G.IN_HEAD:{hd(this,t);break}case G.IN_HEAD_NO_SCRIPT:{md(this,t);break}case G.AFTER_HEAD:{pd(this,t);break}case G.IN_BODY:case G.IN_TABLE:case G.IN_CAPTION:case G.IN_COLUMN_GROUP:case G.IN_TABLE_BODY:case G.IN_ROW:case G.IN_CELL:case G.IN_SELECT:case G.IN_SELECT_IN_TABLE:{SC(this,t);break}case G.TEXT:{GK(this,t);break}case G.IN_TABLE_TEXT:{Kc(this,t);break}case G.IN_TEMPLATE:{kC(this,t);break}case G.AFTER_BODY:case G.IN_FRAMESET:case G.AFTER_FRAMESET:case G.AFTER_AFTER_BODY:case G.AFTER_AFTER_FRAMESET:{f6(this,t);break}}}onWhitespaceCharacter(t){if(this.skipNextNewLine&&(this.skipNextNewLine=!1,t.chars.charCodeAt(0)===z.LINE_FEED)){if(t.chars.length===1)return;t.chars=t.chars.substr(1)}if(this.tokenizer.inForeignNode){this._insertCharacters(t);return}switch(this.insertionMode){case G.IN_HEAD:case G.IN_HEAD_NO_SCRIPT:case G.AFTER_HEAD:case G.TEXT:case G.IN_COLUMN_GROUP:case G.IN_SELECT:case G.IN_SELECT_IN_TABLE:case G.IN_FRAMESET:case G.AFTER_FRAMESET:{this._insertCharacters(t);break}case G.IN_BODY:case G.IN_CAPTION:case G.IN_CELL:case G.IN_TEMPLATE:case G.AFTER_BODY:case G.AFTER_AFTER_BODY:case G.AFTER_AFTER_FRAMESET:{EC(this,t);break}case G.IN_TABLE:case G.IN_TABLE_BODY:case G.IN_ROW:{Z2(this,t);break}case G.IN_TABLE_TEXT:{wC(this,t);break}}}}function ZG(e,t){let n=e.activeFormattingElements.getElementEntryInScopeWithTagName(t.tagName);return n?e.openElements.contains(n.element)?e.openElements.hasInScope(t.tagID)||(n=null):(e.activeFormattingElements.removeEntry(n),n=null):AC(e,t),n}function QG(e,t){let n=null,r=e.openElements.stackTop;for(;r>=0;r--){const a=e.openElements.items[r];if(a===t.element)break;e._isSpecialElement(a,e.openElements.tagIDs[r])&&(n=a)}return n||(e.openElements.shortenToLength(Math.max(r,0)),e.activeFormattingElements.removeEntry(t)),n}function YG(e,t,n){let r=t,a=e.openElements.getCommonAncestor(t);for(let i=0,l=a;l!==n;i++,l=a){a=e.openElements.getCommonAncestor(l);const u=e.activeFormattingElements.getElementEntry(l),d=u&&i>=qG;!u||d?(d&&e.activeFormattingElements.removeEntry(u),e.openElements.remove(l)):(l=GG(e,u),r===t&&(e.activeFormattingElements.bookmark=u),e.treeAdapter.detachNode(r),e.treeAdapter.appendChild(l,r),r=l)}return r}function GG(e,t){const n=e.treeAdapter.getNamespaceURI(t.element),r=e.treeAdapter.createElement(t.token.tagName,n,t.token.attrs);return e.openElements.replace(t.element,r),t.element=r,r}function KG(e,t,n){const r=e.treeAdapter.getTagName(t),a=zu(r);if(e._isElementCausesFosterParenting(a))e._fosterParentElement(n);else{const i=e.treeAdapter.getNamespaceURI(t);a===_.TEMPLATE&&i===ke.HTML&&(t=e.treeAdapter.getTemplateContent(t)),e.treeAdapter.appendChild(t,n)}}function XG(e,t,n){const r=e.treeAdapter.getNamespaceURI(n.element),{token:a}=n,i=e.treeAdapter.createElement(a.tagName,r,a.attrs);e._adoptNodes(t,i),e.treeAdapter.appendChild(t,i),e.activeFormattingElements.insertElementAfterBookmark(i,a),e.activeFormattingElements.removeEntry(n),e.openElements.remove(n.element),e.openElements.insertAfter(t,i,a.tagID)}function d6(e,t){for(let n=0;n<zG;n++){const r=ZG(e,t);if(!r)break;const a=QG(e,r);if(!a)break;e.activeFormattingElements.bookmark=r;const i=YG(e,a,r.element),l=e.openElements.getCommonAncestor(r.element);e.treeAdapter.detachNode(i),l&&KG(e,l,i),XG(e,a,r)}}function $v(e,t){e._appendCommentNode(t,e.openElements.currentTmplContentOrNode)}function WG(e,t){e._appendCommentNode(t,e.openElements.items[0])}function JG(e,t){e._appendCommentNode(t,e.document)}function f6(e,t){if(e.stopped=!0,t.location){const n=e.fragmentContext?0:2;for(let r=e.openElements.stackTop;r>=n;r--)e._setEndLocation(e.openElements.items[r],t);if(!e.fragmentContext&&e.openElements.stackTop>=0){const r=e.openElements.items[0],a=e.treeAdapter.getNodeSourceCodeLocation(r);if(a&&!a.endTag&&(e._setEndLocation(r,t),e.openElements.stackTop>=1)){const i=e.openElements.items[1],l=e.treeAdapter.getNodeSourceCodeLocation(i);l&&!l.endTag&&e._setEndLocation(i,t)}}}}function eK(e,t){e._setDocumentType(t);const n=t.forceQuirks?wa.QUIRKS:NG(t);OG(t)||e._err(t,_e.nonConformingDoctype),e.treeAdapter.setDocumentMode(e.document,n),e.insertionMode=G.BEFORE_HTML}function Gc(e,t){e._err(t,_e.missingDoctype,!0),e.treeAdapter.setDocumentMode(e.document,wa.QUIRKS),e.insertionMode=G.BEFORE_HTML,e._processToken(t)}function tK(e,t){t.tagID===_.HTML?(e._insertElement(t,ke.HTML),e.insertionMode=G.BEFORE_HEAD):dd(e,t)}function nK(e,t){const n=t.tagID;(n===_.HTML||n===_.HEAD||n===_.BODY||n===_.BR)&&dd(e,t)}function dd(e,t){e._insertFakeRootElement(),e.insertionMode=G.BEFORE_HEAD,e._processToken(t)}function rK(e,t){switch(t.tagID){case _.HTML:{Cr(e,t);break}case _.HEAD:{e._insertElement(t,ke.HTML),e.headElement=e.openElements.current,e.insertionMode=G.IN_HEAD;break}default:fd(e,t)}}function aK(e,t){const n=t.tagID;n===_.HEAD||n===_.BODY||n===_.HTML||n===_.BR?fd(e,t):e._err(t,_e.endTagWithoutMatchingOpenElement)}function fd(e,t){e._insertFakeElement(fe.HEAD,_.HEAD),e.headElement=e.openElements.current,e.insertionMode=G.IN_HEAD,e._processToken(t)}function rs(e,t){switch(t.tagID){case _.HTML:{Cr(e,t);break}case _.BASE:case _.BASEFONT:case _.BGSOUND:case _.LINK:case _.META:{e._appendElement(t,ke.HTML),t.ackSelfClosing=!0;break}case _.TITLE:{e._switchToTextParsing(t,Vn.RCDATA);break}case _.NOSCRIPT:{e.options.scriptingEnabled?e._switchToTextParsing(t,Vn.RAWTEXT):(e._insertElement(t,ke.HTML),e.insertionMode=G.IN_HEAD_NO_SCRIPT);break}case _.NOFRAMES:case _.STYLE:{e._switchToTextParsing(t,Vn.RAWTEXT);break}case _.SCRIPT:{e._switchToTextParsing(t,Vn.SCRIPT_DATA);break}case _.TEMPLATE:{e._insertTemplate(t),e.activeFormattingElements.insertMarker(),e.framesetOk=!1,e.insertionMode=G.IN_TEMPLATE,e.tmplInsertionModeStack.unshift(G.IN_TEMPLATE);break}case _.HEAD:{e._err(t,_e.misplacedStartTagForHeadElement);break}default:hd(e,t)}}function sK(e,t){switch(t.tagID){case _.HEAD:{e.openElements.pop(),e.insertionMode=G.AFTER_HEAD;break}case _.BODY:case _.BR:case _.HTML:{hd(e,t);break}case _.TEMPLATE:{ll(e,t);break}default:e._err(t,_e.endTagWithoutMatchingOpenElement)}}function ll(e,t){e.openElements.tmplCount>0?(e.openElements.generateImpliedEndTagsThoroughly(),e.openElements.currentTagId!==_.TEMPLATE&&e._err(t,_e.closingOfElementWithOpenChildElements),e.openElements.popUntilTagNamePopped(_.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode()):e._err(t,_e.endTagWithoutMatchingOpenElement)}function hd(e,t){e.openElements.pop(),e.insertionMode=G.AFTER_HEAD,e._processToken(t)}function iK(e,t){switch(t.tagID){case _.HTML:{Cr(e,t);break}case _.BASEFONT:case _.BGSOUND:case _.HEAD:case _.LINK:case _.META:case _.NOFRAMES:case _.STYLE:{rs(e,t);break}case _.NOSCRIPT:{e._err(t,_e.nestedNoscriptInHead);break}default:md(e,t)}}function oK(e,t){switch(t.tagID){case _.NOSCRIPT:{e.openElements.pop(),e.insertionMode=G.IN_HEAD;break}case _.BR:{md(e,t);break}default:e._err(t,_e.endTagWithoutMatchingOpenElement)}}function md(e,t){const n=t.type===Nt.EOF?_e.openElementsLeftAfterEof:_e.disallowedContentInNoscriptInHead;e._err(t,n),e.openElements.pop(),e.insertionMode=G.IN_HEAD,e._processToken(t)}function lK(e,t){switch(t.tagID){case _.HTML:{Cr(e,t);break}case _.BODY:{e._insertElement(t,ke.HTML),e.framesetOk=!1,e.insertionMode=G.IN_BODY;break}case _.FRAMESET:{e._insertElement(t,ke.HTML),e.insertionMode=G.IN_FRAMESET;break}case _.BASE:case _.BASEFONT:case _.BGSOUND:case _.LINK:case _.META:case _.NOFRAMES:case _.SCRIPT:case _.STYLE:case _.TEMPLATE:case _.TITLE:{e._err(t,_e.abandonedHeadElementChild),e.openElements.push(e.headElement,_.HEAD),rs(e,t),e.openElements.remove(e.headElement);break}case _.HEAD:{e._err(t,_e.misplacedStartTagForHeadElement);break}default:pd(e,t)}}function uK(e,t){switch(t.tagID){case _.BODY:case _.HTML:case _.BR:{pd(e,t);break}case _.TEMPLATE:{ll(e,t);break}default:e._err(t,_e.endTagWithoutMatchingOpenElement)}}function pd(e,t){e._insertFakeElement(fe.BODY,_.BODY),e.insertionMode=G.IN_BODY,w1(e,t)}function w1(e,t){switch(t.type){case Nt.CHARACTER:{xC(e,t);break}case Nt.WHITESPACE_CHARACTER:{EC(e,t);break}case Nt.COMMENT:{$v(e,t);break}case Nt.START_TAG:{Cr(e,t);break}case Nt.END_TAG:{C1(e,t);break}case Nt.EOF:{SC(e,t);break}}}function EC(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t)}function xC(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t),e.framesetOk=!1}function cK(e,t){e.openElements.tmplCount===0&&e.treeAdapter.adoptAttributes(e.openElements.items[0],t.attrs)}function dK(e,t){const n=e.openElements.tryPeekProperlyNestedBodyElement();n&&e.openElements.tmplCount===0&&(e.framesetOk=!1,e.treeAdapter.adoptAttributes(n,t.attrs))}function fK(e,t){const n=e.openElements.tryPeekProperlyNestedBodyElement();e.framesetOk&&n&&(e.treeAdapter.detachNode(n),e.openElements.popAllUpToHtmlElement(),e._insertElement(t,ke.HTML),e.insertionMode=G.IN_FRAMESET)}function hK(e,t){e.openElements.hasInButtonScope(_.P)&&e._closePElement(),e._insertElement(t,ke.HTML)}function mK(e,t){e.openElements.hasInButtonScope(_.P)&&e._closePElement(),e.openElements.currentTagId!==void 0&&qv.has(e.openElements.currentTagId)&&e.openElements.pop(),e._insertElement(t,ke.HTML)}function pK(e,t){e.openElements.hasInButtonScope(_.P)&&e._closePElement(),e._insertElement(t,ke.HTML),e.skipNextNewLine=!0,e.framesetOk=!1}function gK(e,t){const n=e.openElements.tmplCount>0;(!e.formElement||n)&&(e.openElements.hasInButtonScope(_.P)&&e._closePElement(),e._insertElement(t,ke.HTML),n||(e.formElement=e.openElements.current))}function vK(e,t){e.framesetOk=!1;const n=t.tagID;for(let r=e.openElements.stackTop;r>=0;r--){const a=e.openElements.tagIDs[r];if(n===_.LI&&a===_.LI||(n===_.DD||n===_.DT)&&(a===_.DD||a===_.DT)){e.openElements.generateImpliedEndTagsWithExclusion(a),e.openElements.popUntilTagNamePopped(a);break}if(a!==_.ADDRESS&&a!==_.DIV&&a!==_.P&&e._isSpecialElement(e.openElements.items[r],a))break}e.openElements.hasInButtonScope(_.P)&&e._closePElement(),e._insertElement(t,ke.HTML)}function yK(e,t){e.openElements.hasInButtonScope(_.P)&&e._closePElement(),e._insertElement(t,ke.HTML),e.tokenizer.state=Vn.PLAINTEXT}function bK(e,t){e.openElements.hasInScope(_.BUTTON)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(_.BUTTON)),e._reconstructActiveFormattingElements(),e._insertElement(t,ke.HTML),e.framesetOk=!1}function EK(e,t){const n=e.activeFormattingElements.getElementEntryInScopeWithTagName(fe.A);n&&(d6(e,t),e.openElements.remove(n.element),e.activeFormattingElements.removeEntry(n)),e._reconstructActiveFormattingElements(),e._insertElement(t,ke.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function xK(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,ke.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function _K(e,t){e._reconstructActiveFormattingElements(),e.openElements.hasInScope(_.NOBR)&&(d6(e,t),e._reconstructActiveFormattingElements()),e._insertElement(t,ke.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function TK(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,ke.HTML),e.activeFormattingElements.insertMarker(),e.framesetOk=!1}function AK(e,t){e.treeAdapter.getDocumentMode(e.document)!==wa.QUIRKS&&e.openElements.hasInButtonScope(_.P)&&e._closePElement(),e._insertElement(t,ke.HTML),e.framesetOk=!1,e.insertionMode=G.IN_TABLE}function _C(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,ke.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function TC(e){const t=dC(e,Vo.TYPE);return t!=null&&t.toLowerCase()===VG}function SK(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,ke.HTML),TC(t)||(e.framesetOk=!1),t.ackSelfClosing=!0}function wK(e,t){e._appendElement(t,ke.HTML),t.ackSelfClosing=!0}function CK(e,t){e.openElements.hasInButtonScope(_.P)&&e._closePElement(),e._appendElement(t,ke.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function RK(e,t){t.tagName=fe.IMG,t.tagID=_.IMG,_C(e,t)}function OK(e,t){e._insertElement(t,ke.HTML),e.skipNextNewLine=!0,e.tokenizer.state=Vn.RCDATA,e.originalInsertionMode=e.insertionMode,e.framesetOk=!1,e.insertionMode=G.TEXT}function NK(e,t){e.openElements.hasInButtonScope(_.P)&&e._closePElement(),e._reconstructActiveFormattingElements(),e.framesetOk=!1,e._switchToTextParsing(t,Vn.RAWTEXT)}function PK(e,t){e.framesetOk=!1,e._switchToTextParsing(t,Vn.RAWTEXT)}function u5(e,t){e._switchToTextParsing(t,Vn.RAWTEXT)}function kK(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,ke.HTML),e.framesetOk=!1,e.insertionMode=e.insertionMode===G.IN_TABLE||e.insertionMode===G.IN_CAPTION||e.insertionMode===G.IN_TABLE_BODY||e.insertionMode===G.IN_ROW||e.insertionMode===G.IN_CELL?G.IN_SELECT_IN_TABLE:G.IN_SELECT}function DK(e,t){e.openElements.currentTagId===_.OPTION&&e.openElements.pop(),e._reconstructActiveFormattingElements(),e._insertElement(t,ke.HTML)}function MK(e,t){e.openElements.hasInScope(_.RUBY)&&e.openElements.generateImpliedEndTags(),e._insertElement(t,ke.HTML)}function LK(e,t){e.openElements.hasInScope(_.RUBY)&&e.openElements.generateImpliedEndTagsWithExclusion(_.RTC),e._insertElement(t,ke.HTML)}function IK(e,t){e._reconstructActiveFormattingElements(),vC(t),c6(t),t.selfClosing?e._appendElement(t,ke.MATHML):e._insertElement(t,ke.MATHML),t.ackSelfClosing=!0}function jK(e,t){e._reconstructActiveFormattingElements(),yC(t),c6(t),t.selfClosing?e._appendElement(t,ke.SVG):e._insertElement(t,ke.SVG),t.ackSelfClosing=!0}function c5(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,ke.HTML)}function Cr(e,t){switch(t.tagID){case _.I:case _.S:case _.B:case _.U:case _.EM:case _.TT:case _.BIG:case _.CODE:case _.FONT:case _.SMALL:case _.STRIKE:case _.STRONG:{xK(e,t);break}case _.A:{EK(e,t);break}case _.H1:case _.H2:case _.H3:case _.H4:case _.H5:case _.H6:{mK(e,t);break}case _.P:case _.DL:case _.OL:case _.UL:case _.DIV:case _.DIR:case _.NAV:case _.MAIN:case _.MENU:case _.ASIDE:case _.CENTER:case _.FIGURE:case _.FOOTER:case _.HEADER:case _.HGROUP:case _.DIALOG:case _.DETAILS:case _.ADDRESS:case _.ARTICLE:case _.SEARCH:case _.SECTION:case _.SUMMARY:case _.FIELDSET:case _.BLOCKQUOTE:case _.FIGCAPTION:{hK(e,t);break}case _.LI:case _.DD:case _.DT:{vK(e,t);break}case _.BR:case _.IMG:case _.WBR:case _.AREA:case _.EMBED:case _.KEYGEN:{_C(e,t);break}case _.HR:{CK(e,t);break}case _.RB:case _.RTC:{MK(e,t);break}case _.RT:case _.RP:{LK(e,t);break}case _.PRE:case _.LISTING:{pK(e,t);break}case _.XMP:{NK(e,t);break}case _.SVG:{jK(e,t);break}case _.HTML:{cK(e,t);break}case _.BASE:case _.LINK:case _.META:case _.STYLE:case _.TITLE:case _.SCRIPT:case _.BGSOUND:case _.BASEFONT:case _.TEMPLATE:{rs(e,t);break}case _.BODY:{dK(e,t);break}case _.FORM:{gK(e,t);break}case _.NOBR:{_K(e,t);break}case _.MATH:{IK(e,t);break}case _.TABLE:{AK(e,t);break}case _.INPUT:{SK(e,t);break}case _.PARAM:case _.TRACK:case _.SOURCE:{wK(e,t);break}case _.IMAGE:{RK(e,t);break}case _.BUTTON:{bK(e,t);break}case _.APPLET:case _.OBJECT:case _.MARQUEE:{TK(e,t);break}case _.IFRAME:{PK(e,t);break}case _.SELECT:{kK(e,t);break}case _.OPTION:case _.OPTGROUP:{DK(e,t);break}case _.NOEMBED:case _.NOFRAMES:{u5(e,t);break}case _.FRAMESET:{fK(e,t);break}case _.TEXTAREA:{OK(e,t);break}case _.NOSCRIPT:{e.options.scriptingEnabled?u5(e,t):c5(e,t);break}case _.PLAINTEXT:{yK(e,t);break}case _.COL:case _.TH:case _.TD:case _.TR:case _.HEAD:case _.FRAME:case _.TBODY:case _.TFOOT:case _.THEAD:case _.CAPTION:case _.COLGROUP:break;default:c5(e,t)}}function HK(e,t){if(e.openElements.hasInScope(_.BODY)&&(e.insertionMode=G.AFTER_BODY,e.options.sourceCodeLocationInfo)){const n=e.openElements.tryPeekProperlyNestedBodyElement();n&&e._setEndLocation(n,t)}}function FK(e,t){e.openElements.hasInScope(_.BODY)&&(e.insertionMode=G.AFTER_BODY,DC(e,t))}function UK(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n))}function BK(e){const t=e.openElements.tmplCount>0,{formElement:n}=e;t||(e.formElement=null),(n||t)&&e.openElements.hasInScope(_.FORM)&&(e.openElements.generateImpliedEndTags(),t?e.openElements.popUntilTagNamePopped(_.FORM):n&&e.openElements.remove(n))}function VK(e){e.openElements.hasInButtonScope(_.P)||e._insertFakeElement(fe.P,_.P),e._closePElement()}function zK(e){e.openElements.hasInListItemScope(_.LI)&&(e.openElements.generateImpliedEndTagsWithExclusion(_.LI),e.openElements.popUntilTagNamePopped(_.LI))}function qK(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTagsWithExclusion(n),e.openElements.popUntilTagNamePopped(n))}function $K(e){e.openElements.hasNumberedHeaderInScope()&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilNumberedHeaderPopped())}function ZK(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n),e.activeFormattingElements.clearToLastMarker())}function QK(e){e._reconstructActiveFormattingElements(),e._insertFakeElement(fe.BR,_.BR),e.openElements.pop(),e.framesetOk=!1}function AC(e,t){const n=t.tagName,r=t.tagID;for(let a=e.openElements.stackTop;a>0;a--){const i=e.openElements.items[a],l=e.openElements.tagIDs[a];if(r===l&&(r!==_.UNKNOWN||e.treeAdapter.getTagName(i)===n)){e.openElements.generateImpliedEndTagsWithExclusion(r),e.openElements.stackTop>=a&&e.openElements.shortenToLength(a);break}if(e._isSpecialElement(i,l))break}}function C1(e,t){switch(t.tagID){case _.A:case _.B:case _.I:case _.S:case _.U:case _.EM:case _.TT:case _.BIG:case _.CODE:case _.FONT:case _.NOBR:case _.SMALL:case _.STRIKE:case _.STRONG:{d6(e,t);break}case _.P:{VK(e);break}case _.DL:case _.UL:case _.OL:case _.DIR:case _.DIV:case _.NAV:case _.PRE:case _.MAIN:case _.MENU:case _.ASIDE:case _.BUTTON:case _.CENTER:case _.FIGURE:case _.FOOTER:case _.HEADER:case _.HGROUP:case _.DIALOG:case _.ADDRESS:case _.ARTICLE:case _.DETAILS:case _.SEARCH:case _.SECTION:case _.SUMMARY:case _.LISTING:case _.FIELDSET:case _.BLOCKQUOTE:case _.FIGCAPTION:{UK(e,t);break}case _.LI:{zK(e);break}case _.DD:case _.DT:{qK(e,t);break}case _.H1:case _.H2:case _.H3:case _.H4:case _.H5:case _.H6:{$K(e);break}case _.BR:{QK(e);break}case _.BODY:{HK(e,t);break}case _.HTML:{FK(e,t);break}case _.FORM:{BK(e);break}case _.APPLET:case _.OBJECT:case _.MARQUEE:{ZK(e,t);break}case _.TEMPLATE:{ll(e,t);break}default:AC(e,t)}}function SC(e,t){e.tmplInsertionModeStack.length>0?kC(e,t):f6(e,t)}function YK(e,t){var n;t.tagID===_.SCRIPT&&((n=e.scriptHandler)===null||n===void 0||n.call(e,e.openElements.current)),e.openElements.pop(),e.insertionMode=e.originalInsertionMode}function GK(e,t){e._err(t,_e.eofInElementThatCanContainOnlyText),e.openElements.pop(),e.insertionMode=e.originalInsertionMode,e.onEof(t)}function Z2(e,t){if(e.openElements.currentTagId!==void 0&&bC.has(e.openElements.currentTagId))switch(e.pendingCharacterTokens.length=0,e.hasNonWhitespacePendingCharacterToken=!1,e.originalInsertionMode=e.insertionMode,e.insertionMode=G.IN_TABLE_TEXT,t.type){case Nt.CHARACTER:{CC(e,t);break}case Nt.WHITESPACE_CHARACTER:{wC(e,t);break}}else r0(e,t)}function KK(e,t){e.openElements.clearBackToTableContext(),e.activeFormattingElements.insertMarker(),e._insertElement(t,ke.HTML),e.insertionMode=G.IN_CAPTION}function XK(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,ke.HTML),e.insertionMode=G.IN_COLUMN_GROUP}function WK(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(fe.COLGROUP,_.COLGROUP),e.insertionMode=G.IN_COLUMN_GROUP,h6(e,t)}function JK(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,ke.HTML),e.insertionMode=G.IN_TABLE_BODY}function eX(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(fe.TBODY,_.TBODY),e.insertionMode=G.IN_TABLE_BODY,R1(e,t)}function tX(e,t){e.openElements.hasInTableScope(_.TABLE)&&(e.openElements.popUntilTagNamePopped(_.TABLE),e._resetInsertionMode(),e._processStartTag(t))}function nX(e,t){TC(t)?e._appendElement(t,ke.HTML):r0(e,t),t.ackSelfClosing=!0}function rX(e,t){!e.formElement&&e.openElements.tmplCount===0&&(e._insertElement(t,ke.HTML),e.formElement=e.openElements.current,e.openElements.pop())}function _u(e,t){switch(t.tagID){case _.TD:case _.TH:case _.TR:{eX(e,t);break}case _.STYLE:case _.SCRIPT:case _.TEMPLATE:{rs(e,t);break}case _.COL:{WK(e,t);break}case _.FORM:{rX(e,t);break}case _.TABLE:{tX(e,t);break}case _.TBODY:case _.TFOOT:case _.THEAD:{JK(e,t);break}case _.INPUT:{nX(e,t);break}case _.CAPTION:{KK(e,t);break}case _.COLGROUP:{XK(e,t);break}default:r0(e,t)}}function Od(e,t){switch(t.tagID){case _.TABLE:{e.openElements.hasInTableScope(_.TABLE)&&(e.openElements.popUntilTagNamePopped(_.TABLE),e._resetInsertionMode());break}case _.TEMPLATE:{ll(e,t);break}case _.BODY:case _.CAPTION:case _.COL:case _.COLGROUP:case _.HTML:case _.TBODY:case _.TD:case _.TFOOT:case _.TH:case _.THEAD:case _.TR:break;default:r0(e,t)}}function r0(e,t){const n=e.fosterParentingEnabled;e.fosterParentingEnabled=!0,w1(e,t),e.fosterParentingEnabled=n}function wC(e,t){e.pendingCharacterTokens.push(t)}function CC(e,t){e.pendingCharacterTokens.push(t),e.hasNonWhitespacePendingCharacterToken=!0}function Kc(e,t){let n=0;if(e.hasNonWhitespacePendingCharacterToken)for(;n<e.pendingCharacterTokens.length;n++)r0(e,e.pendingCharacterTokens[n]);else for(;n<e.pendingCharacterTokens.length;n++)e._insertCharacters(e.pendingCharacterTokens[n]);e.insertionMode=e.originalInsertionMode,e._processToken(t)}const RC=new Set([_.CAPTION,_.COL,_.COLGROUP,_.TBODY,_.TD,_.TFOOT,_.TH,_.THEAD,_.TR]);function aX(e,t){const n=t.tagID;RC.has(n)?e.openElements.hasInTableScope(_.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(_.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=G.IN_TABLE,_u(e,t)):Cr(e,t)}function sX(e,t){const n=t.tagID;switch(n){case _.CAPTION:case _.TABLE:{e.openElements.hasInTableScope(_.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(_.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=G.IN_TABLE,n===_.TABLE&&Od(e,t));break}case _.BODY:case _.COL:case _.COLGROUP:case _.HTML:case _.TBODY:case _.TD:case _.TFOOT:case _.TH:case _.THEAD:case _.TR:break;default:C1(e,t)}}function h6(e,t){switch(t.tagID){case _.HTML:{Cr(e,t);break}case _.COL:{e._appendElement(t,ke.HTML),t.ackSelfClosing=!0;break}case _.TEMPLATE:{rs(e,t);break}default:vh(e,t)}}function iX(e,t){switch(t.tagID){case _.COLGROUP:{e.openElements.currentTagId===_.COLGROUP&&(e.openElements.pop(),e.insertionMode=G.IN_TABLE);break}case _.TEMPLATE:{ll(e,t);break}case _.COL:break;default:vh(e,t)}}function vh(e,t){e.openElements.currentTagId===_.COLGROUP&&(e.openElements.pop(),e.insertionMode=G.IN_TABLE,e._processToken(t))}function R1(e,t){switch(t.tagID){case _.TR:{e.openElements.clearBackToTableBodyContext(),e._insertElement(t,ke.HTML),e.insertionMode=G.IN_ROW;break}case _.TH:case _.TD:{e.openElements.clearBackToTableBodyContext(),e._insertFakeElement(fe.TR,_.TR),e.insertionMode=G.IN_ROW,O1(e,t);break}case _.CAPTION:case _.COL:case _.COLGROUP:case _.TBODY:case _.TFOOT:case _.THEAD:{e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=G.IN_TABLE,_u(e,t));break}default:_u(e,t)}}function Zv(e,t){const n=t.tagID;switch(t.tagID){case _.TBODY:case _.TFOOT:case _.THEAD:{e.openElements.hasInTableScope(n)&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=G.IN_TABLE);break}case _.TABLE:{e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=G.IN_TABLE,Od(e,t));break}case _.BODY:case _.CAPTION:case _.COL:case _.COLGROUP:case _.HTML:case _.TD:case _.TH:case _.TR:break;default:Od(e,t)}}function O1(e,t){switch(t.tagID){case _.TH:case _.TD:{e.openElements.clearBackToTableRowContext(),e._insertElement(t,ke.HTML),e.insertionMode=G.IN_CELL,e.activeFormattingElements.insertMarker();break}case _.CAPTION:case _.COL:case _.COLGROUP:case _.TBODY:case _.TFOOT:case _.THEAD:case _.TR:{e.openElements.hasInTableScope(_.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=G.IN_TABLE_BODY,R1(e,t));break}default:_u(e,t)}}function OC(e,t){switch(t.tagID){case _.TR:{e.openElements.hasInTableScope(_.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=G.IN_TABLE_BODY);break}case _.TABLE:{e.openElements.hasInTableScope(_.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=G.IN_TABLE_BODY,Zv(e,t));break}case _.TBODY:case _.TFOOT:case _.THEAD:{(e.openElements.hasInTableScope(t.tagID)||e.openElements.hasInTableScope(_.TR))&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=G.IN_TABLE_BODY,Zv(e,t));break}case _.BODY:case _.CAPTION:case _.COL:case _.COLGROUP:case _.HTML:case _.TD:case _.TH:break;default:Od(e,t)}}function oX(e,t){const n=t.tagID;RC.has(n)?(e.openElements.hasInTableScope(_.TD)||e.openElements.hasInTableScope(_.TH))&&(e._closeTableCell(),O1(e,t)):Cr(e,t)}function lX(e,t){const n=t.tagID;switch(n){case _.TD:case _.TH:{e.openElements.hasInTableScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=G.IN_ROW);break}case _.TABLE:case _.TBODY:case _.TFOOT:case _.THEAD:case _.TR:{e.openElements.hasInTableScope(n)&&(e._closeTableCell(),OC(e,t));break}case _.BODY:case _.CAPTION:case _.COL:case _.COLGROUP:case _.HTML:break;default:C1(e,t)}}function NC(e,t){switch(t.tagID){case _.HTML:{Cr(e,t);break}case _.OPTION:{e.openElements.currentTagId===_.OPTION&&e.openElements.pop(),e._insertElement(t,ke.HTML);break}case _.OPTGROUP:{e.openElements.currentTagId===_.OPTION&&e.openElements.pop(),e.openElements.currentTagId===_.OPTGROUP&&e.openElements.pop(),e._insertElement(t,ke.HTML);break}case _.HR:{e.openElements.currentTagId===_.OPTION&&e.openElements.pop(),e.openElements.currentTagId===_.OPTGROUP&&e.openElements.pop(),e._appendElement(t,ke.HTML),t.ackSelfClosing=!0;break}case _.INPUT:case _.KEYGEN:case _.TEXTAREA:case _.SELECT:{e.openElements.hasInSelectScope(_.SELECT)&&(e.openElements.popUntilTagNamePopped(_.SELECT),e._resetInsertionMode(),t.tagID!==_.SELECT&&e._processStartTag(t));break}case _.SCRIPT:case _.TEMPLATE:{rs(e,t);break}}}function PC(e,t){switch(t.tagID){case _.OPTGROUP:{e.openElements.stackTop>0&&e.openElements.currentTagId===_.OPTION&&e.openElements.tagIDs[e.openElements.stackTop-1]===_.OPTGROUP&&e.openElements.pop(),e.openElements.currentTagId===_.OPTGROUP&&e.openElements.pop();break}case _.OPTION:{e.openElements.currentTagId===_.OPTION&&e.openElements.pop();break}case _.SELECT:{e.openElements.hasInSelectScope(_.SELECT)&&(e.openElements.popUntilTagNamePopped(_.SELECT),e._resetInsertionMode());break}case _.TEMPLATE:{ll(e,t);break}}}function uX(e,t){const n=t.tagID;n===_.CAPTION||n===_.TABLE||n===_.TBODY||n===_.TFOOT||n===_.THEAD||n===_.TR||n===_.TD||n===_.TH?(e.openElements.popUntilTagNamePopped(_.SELECT),e._resetInsertionMode(),e._processStartTag(t)):NC(e,t)}function cX(e,t){const n=t.tagID;n===_.CAPTION||n===_.TABLE||n===_.TBODY||n===_.TFOOT||n===_.THEAD||n===_.TR||n===_.TD||n===_.TH?e.openElements.hasInTableScope(n)&&(e.openElements.popUntilTagNamePopped(_.SELECT),e._resetInsertionMode(),e.onEndTag(t)):PC(e,t)}function dX(e,t){switch(t.tagID){case _.BASE:case _.BASEFONT:case _.BGSOUND:case _.LINK:case _.META:case _.NOFRAMES:case _.SCRIPT:case _.STYLE:case _.TEMPLATE:case _.TITLE:{rs(e,t);break}case _.CAPTION:case _.COLGROUP:case _.TBODY:case _.TFOOT:case _.THEAD:{e.tmplInsertionModeStack[0]=G.IN_TABLE,e.insertionMode=G.IN_TABLE,_u(e,t);break}case _.COL:{e.tmplInsertionModeStack[0]=G.IN_COLUMN_GROUP,e.insertionMode=G.IN_COLUMN_GROUP,h6(e,t);break}case _.TR:{e.tmplInsertionModeStack[0]=G.IN_TABLE_BODY,e.insertionMode=G.IN_TABLE_BODY,R1(e,t);break}case _.TD:case _.TH:{e.tmplInsertionModeStack[0]=G.IN_ROW,e.insertionMode=G.IN_ROW,O1(e,t);break}default:e.tmplInsertionModeStack[0]=G.IN_BODY,e.insertionMode=G.IN_BODY,Cr(e,t)}}function fX(e,t){t.tagID===_.TEMPLATE&&ll(e,t)}function kC(e,t){e.openElements.tmplCount>0?(e.openElements.popUntilTagNamePopped(_.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode(),e.onEof(t)):f6(e,t)}function hX(e,t){t.tagID===_.HTML?Cr(e,t):yh(e,t)}function DC(e,t){var n;if(t.tagID===_.HTML){if(e.fragmentContext||(e.insertionMode=G.AFTER_AFTER_BODY),e.options.sourceCodeLocationInfo&&e.openElements.tagIDs[0]===_.HTML){e._setEndLocation(e.openElements.items[0],t);const r=e.openElements.items[1];r&&!(!((n=e.treeAdapter.getNodeSourceCodeLocation(r))===null||n===void 0)&&n.endTag)&&e._setEndLocation(r,t)}}else yh(e,t)}function yh(e,t){e.insertionMode=G.IN_BODY,w1(e,t)}function mX(e,t){switch(t.tagID){case _.HTML:{Cr(e,t);break}case _.FRAMESET:{e._insertElement(t,ke.HTML);break}case _.FRAME:{e._appendElement(t,ke.HTML),t.ackSelfClosing=!0;break}case _.NOFRAMES:{rs(e,t);break}}}function pX(e,t){t.tagID===_.FRAMESET&&!e.openElements.isRootHtmlElementCurrent()&&(e.openElements.pop(),!e.fragmentContext&&e.openElements.currentTagId!==_.FRAMESET&&(e.insertionMode=G.AFTER_FRAMESET))}function gX(e,t){switch(t.tagID){case _.HTML:{Cr(e,t);break}case _.NOFRAMES:{rs(e,t);break}}}function vX(e,t){t.tagID===_.HTML&&(e.insertionMode=G.AFTER_AFTER_FRAMESET)}function yX(e,t){t.tagID===_.HTML?Cr(e,t):Gf(e,t)}function Gf(e,t){e.insertionMode=G.IN_BODY,w1(e,t)}function bX(e,t){switch(t.tagID){case _.HTML:{Cr(e,t);break}case _.NOFRAMES:{rs(e,t);break}}}function EX(e,t){t.chars=Sn,e._insertCharacters(t)}function xX(e,t){e._insertCharacters(t),e.framesetOk=!1}function MC(e){for(;e.treeAdapter.getNamespaceURI(e.openElements.current)!==ke.HTML&&e.openElements.currentTagId!==void 0&&!e._isIntegrationPoint(e.openElements.currentTagId,e.openElements.current);)e.openElements.pop()}function _X(e,t){if(jG(t))MC(e),e._startTagOutsideForeignContent(t);else{const n=e._getAdjustedCurrentElement(),r=e.treeAdapter.getNamespaceURI(n);r===ke.MATHML?vC(t):r===ke.SVG&&(HG(t),yC(t)),c6(t),t.selfClosing?e._appendElement(t,r):e._insertElement(t,r),t.ackSelfClosing=!0}}function TX(e,t){if(t.tagID===_.P||t.tagID===_.BR){MC(e),e._endTagOutsideForeignContent(t);return}for(let n=e.openElements.stackTop;n>0;n--){const r=e.openElements.items[n];if(e.treeAdapter.getNamespaceURI(r)===ke.HTML){e._endTagOutsideForeignContent(t);break}const a=e.treeAdapter.getTagName(r);if(a.toLowerCase()===t.tagName){t.tagName=a,e.openElements.shortenToLength(n);break}}}fe.AREA,fe.BASE,fe.BASEFONT,fe.BGSOUND,fe.BR,fe.COL,fe.EMBED,fe.FRAME,fe.HR,fe.IMG,fe.INPUT,fe.KEYGEN,fe.LINK,fe.META,fe.PARAM,fe.SOURCE,fe.TRACK,fe.WBR;const AX=/<(\/?)(iframe|noembed|noframes|plaintext|script|style|textarea|title|xmp)(?=[\t\n\f\r />])/gi,SX=new Set(["mdxFlowExpression","mdxJsxFlowElement","mdxJsxTextElement","mdxTextExpression","mdxjsEsm"]),d5={sourceCodeLocationInfo:!0,scriptingEnabled:!1};function LC(e,t){const n=LX(e),r=iC("type",{handlers:{root:wX,element:CX,text:RX,comment:jC,doctype:OX,raw:PX},unknown:kX}),a={parser:n?new l5(d5):l5.getFragmentParser(void 0,d5),handle(u){r(u,a)},stitches:!1,options:t||{}};r(e,a),qu(a,Ds());const i=n?a.parser.document:a.parser.getFragment(),l=wY(i,{file:a.options.file});return a.stitches&&S1(l,"comment",function(u,d,h){const v=u;if(v.value.stitch&&h&&d!==void 0){const m=h.children;return m[d]=v.value.stitch,d}}),l.type==="root"&&l.children.length===1&&l.children[0].type===e.type?l.children[0]:l}function IC(e,t){let n=-1;if(e)for(;++n<e.length;)t.handle(e[n])}function wX(e,t){IC(e.children,t)}function CX(e,t){DX(e,t),IC(e.children,t),MX(e,t)}function RX(e,t){t.parser.tokenizer.state>4&&(t.parser.tokenizer.state=0);const n={type:Nt.CHARACTER,chars:e.value,location:a0(e)};qu(t,Ds(e)),t.parser.currentToken=n,t.parser._processToken(t.parser.currentToken)}function OX(e,t){const n={type:Nt.DOCTYPE,name:"html",forceQuirks:!1,publicId:"",systemId:"",location:a0(e)};qu(t,Ds(e)),t.parser.currentToken=n,t.parser._processToken(t.parser.currentToken)}function NX(e,t){t.stitches=!0;const n=IX(e);if("children"in e&&"children"in n){const r=LC({type:"root",children:e.children},t.options);n.children=r.children}jC({type:"comment",value:{stitch:n}},t)}function jC(e,t){const n=e.value,r={type:Nt.COMMENT,data:n,location:a0(e)};qu(t,Ds(e)),t.parser.currentToken=r,t.parser._processToken(t.parser.currentToken)}function PX(e,t){if(t.parser.tokenizer.preprocessor.html="",t.parser.tokenizer.preprocessor.pos=-1,t.parser.tokenizer.preprocessor.lastGapPos=-2,t.parser.tokenizer.preprocessor.gapStack=[],t.parser.tokenizer.preprocessor.skipNextNewLine=!1,t.parser.tokenizer.preprocessor.lastChunkWritten=!1,t.parser.tokenizer.preprocessor.endOfChunkHit=!1,t.parser.tokenizer.preprocessor.isEol=!1,HC(t,Ds(e)),t.parser.tokenizer.write(t.options.tagfilter?e.value.replace(AX,"<$1$2"):e.value,!1),t.parser.tokenizer._runParsingLoop(),t.parser.tokenizer.state===72||t.parser.tokenizer.state===78){t.parser.tokenizer.preprocessor.lastChunkWritten=!0;const n=t.parser.tokenizer._consume();t.parser.tokenizer._callState(n)}}function kX(e,t){const n=e;if(t.options.passThrough&&t.options.passThrough.includes(n.type))NX(n,t);else{let r="";throw SX.has(n.type)&&(r=". It looks like you are using MDX nodes with `hast-util-raw` (or `rehype-raw`). If you use this because you are using remark or rehype plugins that inject `'html'` nodes, then please raise an issue with that plugin, as its a bad and slow idea. If you use this because you are using markdown syntax, then you have to configure this utility (or plugin) to pass through these nodes (see `passThrough` in docs), but you can also migrate to use the MDX syntax"),new Error("Cannot compile `"+n.type+"` node"+r)}}function qu(e,t){HC(e,t);const n=e.parser.tokenizer.currentCharacterToken;n&&n.location&&(n.location.endLine=e.parser.tokenizer.preprocessor.line,n.location.endCol=e.parser.tokenizer.preprocessor.col+1,n.location.endOffset=e.parser.tokenizer.preprocessor.offset+1,e.parser.currentToken=n,e.parser._processToken(e.parser.currentToken)),e.parser.tokenizer.paused=!1,e.parser.tokenizer.inLoop=!1,e.parser.tokenizer.active=!1,e.parser.tokenizer.returnState=Vn.DATA,e.parser.tokenizer.charRefCode=-1,e.parser.tokenizer.consumedAfterSnapshot=-1,e.parser.tokenizer.currentLocation=null,e.parser.tokenizer.currentCharacterToken=null,e.parser.tokenizer.currentToken=null,e.parser.tokenizer.currentAttr={name:"",value:""}}function HC(e,t){if(t&&t.offset!==void 0){const n={startLine:t.line,startCol:t.column,startOffset:t.offset,endLine:-1,endCol:-1,endOffset:-1};e.parser.tokenizer.preprocessor.lineStartPos=-t.column+1,e.parser.tokenizer.preprocessor.droppedBufferSize=t.offset,e.parser.tokenizer.preprocessor.line=t.line,e.parser.tokenizer.currentLocation=n}}function DX(e,t){const n=e.tagName.toLowerCase();if(t.parser.tokenizer.state===Vn.PLAINTEXT)return;qu(t,Ds(e));const r=t.parser.openElements.current;let a="namespaceURI"in r?r.namespaceURI:Uo.html;a===Uo.html&&n==="svg"&&(a=Uo.svg);const i=BY({...e,children:[]},{space:a===Uo.svg?"svg":"html"}),l={type:Nt.START_TAG,tagName:n,tagID:zu(n),selfClosing:!1,ackSelfClosing:!1,attrs:"attrs"in i?i.attrs:[],location:a0(e)};t.parser.currentToken=l,t.parser._processToken(t.parser.currentToken),t.parser.tokenizer.lastStartTagName=n}function MX(e,t){const n=e.tagName.toLowerCase();if(!t.parser.tokenizer.inForeignNode&&GY.includes(n)||t.parser.tokenizer.state===Vn.PLAINTEXT)return;qu(t,b1(e));const r={type:Nt.END_TAG,tagName:n,tagID:zu(n),selfClosing:!1,ackSelfClosing:!1,attrs:[],location:a0(e)};t.parser.currentToken=r,t.parser._processToken(t.parser.currentToken),n===t.parser.tokenizer.lastStartTagName&&(t.parser.tokenizer.state===Vn.RCDATA||t.parser.tokenizer.state===Vn.RAWTEXT||t.parser.tokenizer.state===Vn.SCRIPT_DATA)&&(t.parser.tokenizer.state=Vn.DATA)}function LX(e){const t=e.type==="root"?e.children[0]:e;return!!(t&&(t.type==="doctype"||t.type==="element"&&t.tagName.toLowerCase()==="html"))}function a0(e){const t=Ds(e)||{line:void 0,column:void 0,offset:void 0},n=b1(e)||{line:void 0,column:void 0,offset:void 0};return{startLine:t.line,startCol:t.column,startOffset:t.offset,endLine:n.line,endCol:n.column,endOffset:n.offset}}function IX(e){return"children"in e?xu({...e,children:[]}):xu(e)}function FC(e){return function(t,n){return LC(t,{...e,file:n})}}function f5(e,t){const n=String(e);if(typeof t!="string")throw new TypeError("Expected character");let r=0,a=n.indexOf(t);for(;a!==-1;)r++,a=n.indexOf(t,a+t.length);return r}function jX(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function HX(e,t,n){const a=T1((n||{}).ignore||[]),i=FX(t);let l=-1;for(;++l<i.length;)$7(e,"text",u);function u(h,v){let m=-1,E;for(;++m<v.length;){const b=v[m],T=E?E.children:void 0;if(a(b,T?T.indexOf(b):void 0,E))return;E=b}if(E)return d(h,v)}function d(h,v){const m=v[v.length-1],E=i[l][0],b=i[l][1];let T=0;const S=m.children.indexOf(h);let w=!1,R=[];E.lastIndex=0;let k=E.exec(h.value);for(;k;){const L=k.index,I={index:k.index,input:k.input,stack:[...v,h]};let N=b(...k,I);if(typeof N=="string"&&(N=N.length>0?{type:"text",value:N}:void 0),N===!1?E.lastIndex=L+1:(T!==L&&R.push({type:"text",value:h.value.slice(T,L)}),Array.isArray(N)?R.push(...N):N&&R.push(N),T=L+k[0].length,w=!0),!E.global)break;k=E.exec(h.value)}return w?(T<h.value.length&&R.push({type:"text",value:h.value.slice(T)}),m.children.splice(S,1,...R)):R=[h],S+R.length}}function FX(e){const t=[];if(!Array.isArray(e))throw new TypeError("Expected find and replace tuple or list of tuples");const n=!e[0]||Array.isArray(e[0])?e:[e];let r=-1;for(;++r<n.length;){const a=n[r];t.push([UX(a[0]),BX(a[1])])}return t}function UX(e){return typeof e=="string"?new RegExp(jX(e),"g"):e}function BX(e){return typeof e=="function"?e:function(){return e}}const Q2="phrasing",Y2=["autolink","link","image","label"];function VX(){return{transforms:[GX],enter:{literalAutolink:qX,literalAutolinkEmail:G2,literalAutolinkHttp:G2,literalAutolinkWww:G2},exit:{literalAutolink:YX,literalAutolinkEmail:QX,literalAutolinkHttp:$X,literalAutolinkWww:ZX}}}function zX(){return{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:Q2,notInConstruct:Y2},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:Q2,notInConstruct:Y2},{character:":",before:"[ps]",after:"\\/",inConstruct:Q2,notInConstruct:Y2}]}}function qX(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function G2(e){this.config.enter.autolinkProtocol.call(this,e)}function $X(e){this.config.exit.autolinkProtocol.call(this,e)}function ZX(e){this.config.exit.data.call(this,e);const t=this.stack[this.stack.length-1];t.type,t.url="http://"+this.sliceSerialize(e)}function QX(e){this.config.exit.autolinkEmail.call(this,e)}function YX(e){this.exit(e)}function GX(e){HX(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,KX],[new RegExp("(?<=^|\\s|\\p{P}|\\p{S})([-.\\w+]+)@([-\\w]+(?:\\.[-\\w]+)+)","gu"),XX]],{ignore:["link","linkReference"]})}function KX(e,t,n,r,a){let i="";if(!UC(a)||(/^w/i.test(t)&&(n=t+n,t="",i="http://"),!WX(n)))return!1;const l=JX(n+r);if(!l[0])return!1;const u={type:"link",title:null,url:i+t+l[0],children:[{type:"text",value:t+l[0]}]};return l[1]?[u,{type:"text",value:l[1]}]:u}function XX(e,t,n,r){return!UC(r,!0)||/[-\d_]$/.test(n)?!1:{type:"link",title:null,url:"mailto:"+t+"@"+n,children:[{type:"text",value:t+"@"+n}]}}function WX(e){const t=e.split(".");return!(t.length<2||t[t.length-1]&&(/_/.test(t[t.length-1])||!/[a-zA-Z\d]/.test(t[t.length-1]))||t[t.length-2]&&(/_/.test(t[t.length-2])||!/[a-zA-Z\d]/.test(t[t.length-2])))}function JX(e){const t=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!t)return[e,void 0];e=e.slice(0,t.index);let n=t[0],r=n.indexOf(")");const a=f5(e,"(");let i=f5(e,")");for(;r!==-1&&a>i;)e+=n.slice(0,r+1),n=n.slice(r+1),r=n.indexOf(")"),i++;return[e,n]}function UC(e,t){const n=e.input.charCodeAt(e.index-1);return(e.index===0||Yo(n)||E1(n))&&(!t||n!==47)}BC.peek=lW;function eW(){this.buffer()}function tW(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function nW(){this.buffer()}function rW(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function aW(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=Ga(this.sliceSerialize(e)).toLowerCase(),n.label=t}function sW(e){this.exit(e)}function iW(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=Ga(this.sliceSerialize(e)).toLowerCase(),n.label=t}function oW(e){this.exit(e)}function lW(){return"["}function BC(e,t,n,r){const a=n.createTracker(r);let i=a.move("[^");const l=n.enter("footnoteReference"),u=n.enter("reference");return i+=a.move(n.safe(n.associationId(e),{after:"]",before:i})),u(),l(),i+=a.move("]"),i}function uW(){return{enter:{gfmFootnoteCallString:eW,gfmFootnoteCall:tW,gfmFootnoteDefinitionLabelString:nW,gfmFootnoteDefinition:rW},exit:{gfmFootnoteCallString:aW,gfmFootnoteCall:sW,gfmFootnoteDefinitionLabelString:iW,gfmFootnoteDefinition:oW}}}function cW(e){let t=!1;return e&&e.firstLineBlank&&(t=!0),{handlers:{footnoteDefinition:n,footnoteReference:BC},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]};function n(r,a,i,l){const u=i.createTracker(l);let d=u.move("[^");const h=i.enter("footnoteDefinition"),v=i.enter("label");return d+=u.move(i.safe(i.associationId(r),{before:d,after:"]"})),v(),d+=u.move("]:"),r.children&&r.children.length>0&&(u.shift(4),d+=u.move((t?`
|
|
133
|
-
`:" ")+i.indentLines(i.containerFlow(r,u.current()),t?VC:dW))),h(),d}}function dW(e,t,n){return t===0?e:VC(e,t,n)}function VC(e,t,n){return(n?"":" ")+e}const fW=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];zC.peek=vW;function hW(){return{canContainEols:["delete"],enter:{strikethrough:pW},exit:{strikethrough:gW}}}function mW(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:fW}],handlers:{delete:zC}}}function pW(e){this.enter({type:"delete",children:[]},e)}function gW(e){this.exit(e)}function zC(e,t,n,r){const a=n.createTracker(r),i=n.enter("strikethrough");let l=a.move("~~");return l+=n.containerPhrasing(e,{...a.current(),before:l,after:"~"}),l+=a.move("~~"),i(),l}function vW(){return"~"}function yW(e){return e.length}function bW(e,t){const n=t||{},r=(n.align||[]).concat(),a=n.stringLength||yW,i=[],l=[],u=[],d=[];let h=0,v=-1;for(;++v<e.length;){const A=[],S=[];let w=-1;for(e[v].length>h&&(h=e[v].length);++w<e[v].length;){const R=EW(e[v][w]);if(n.alignDelimiters!==!1){const k=a(R);S[w]=k,(d[w]===void 0||k>d[w])&&(d[w]=k)}A.push(R)}l[v]=A,u[v]=S}let m=-1;if(typeof r=="object"&&"length"in r)for(;++m<h;)i[m]=h5(r[m]);else{const A=h5(r);for(;++m<h;)i[m]=A}m=-1;const E=[],b=[];for(;++m<h;){const A=i[m];let S="",w="";A===99?(S=":",w=":"):A===108?S=":":A===114&&(w=":");let R=n.alignDelimiters===!1?1:Math.max(1,d[m]-S.length-w.length);const k=S+"-".repeat(R)+w;n.alignDelimiters!==!1&&(R=S.length+R+w.length,R>d[m]&&(d[m]=R),b[m]=R),E[m]=k}l.splice(1,0,E),u.splice(1,0,b),v=-1;const T=[];for(;++v<l.length;){const A=l[v],S=u[v];m=-1;const w=[];for(;++m<h;){const R=A[m]||"";let k="",L="";if(n.alignDelimiters!==!1){const I=d[m]-(S[m]||0),N=i[m];N===114?k=" ".repeat(I):N===99?I%2?(k=" ".repeat(I/2+.5),L=" ".repeat(I/2-.5)):(k=" ".repeat(I/2),L=k):L=" ".repeat(I)}n.delimiterStart!==!1&&!m&&w.push("|"),n.padding!==!1&&!(n.alignDelimiters===!1&&R==="")&&(n.delimiterStart!==!1||m)&&w.push(" "),n.alignDelimiters!==!1&&w.push(k),w.push(R),n.alignDelimiters!==!1&&w.push(L),n.padding!==!1&&w.push(" "),(n.delimiterEnd!==!1||m!==h-1)&&w.push("|")}T.push(n.delimiterEnd===!1?w.join("").replace(/ +$/,""):w.join(""))}return T.join(`
|
|
134
|
-
`)}function EW(e){return e==null?"":String(e)}function h5(e){const t=typeof e=="string"?e.codePointAt(0):0;return t===67||t===99?99:t===76||t===108?108:t===82||t===114?114:0}function xW(e,t,n,r){const a=n.enter("blockquote"),i=n.createTracker(r);i.move("> "),i.shift(2);const l=n.indentLines(n.containerFlow(e,i.current()),_W);return a(),l}function _W(e,t,n){return">"+(n?"":" ")+e}function TW(e,t){return m5(e,t.inConstruct,!0)&&!m5(e,t.notInConstruct,!1)}function m5(e,t,n){if(typeof t=="string"&&(t=[t]),!t||t.length===0)return n;let r=-1;for(;++r<t.length;)if(e.includes(t[r]))return!0;return!1}function p5(e,t,n,r){let a=-1;for(;++a<n.unsafe.length;)if(n.unsafe[a].character===`
|
|
135
|
-
`&&TW(n.stack,n.unsafe[a]))return/[ \t]/.test(r.before)?"":" ";return`\\
|
|
136
|
-
`}function AW(e,t){const n=String(e);let r=n.indexOf(t),a=r,i=0,l=0;if(typeof t!="string")throw new TypeError("Expected substring");for(;r!==-1;)r===a?++i>l&&(l=i):i=1,a=r+t.length,r=n.indexOf(t,a);return l}function SW(e,t){return!!(t.options.fences===!1&&e.value&&!e.lang&&/[^ \r\n]/.test(e.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(e.value))}function wW(e){const t=e.options.fence||"`";if(t!=="`"&&t!=="~")throw new Error("Cannot serialize code with `"+t+"` for `options.fence`, expected `` ` `` or `~`");return t}function CW(e,t,n,r){const a=wW(n),i=e.value||"",l=a==="`"?"GraveAccent":"Tilde";if(SW(e,n)){const m=n.enter("codeIndented"),E=n.indentLines(i,RW);return m(),E}const u=n.createTracker(r),d=a.repeat(Math.max(AW(i,a)+1,3)),h=n.enter("codeFenced");let v=u.move(d);if(e.lang){const m=n.enter(`codeFencedLang${l}`);v+=u.move(n.safe(e.lang,{before:v,after:" ",encode:["`"],...u.current()})),m()}if(e.lang&&e.meta){const m=n.enter(`codeFencedMeta${l}`);v+=u.move(" "),v+=u.move(n.safe(e.meta,{before:v,after:`
|
|
137
|
-
`,encode:["`"],...u.current()})),m()}return v+=u.move(`
|
|
138
|
-
`),i&&(v+=u.move(i+`
|
|
139
|
-
`)),v+=u.move(d),h(),v}function RW(e,t,n){return(n?"":" ")+e}function m6(e){const t=e.options.quote||'"';if(t!=='"'&&t!=="'")throw new Error("Cannot serialize title with `"+t+"` for `options.quote`, expected `\"`, or `'`");return t}function OW(e,t,n,r){const a=m6(n),i=a==='"'?"Quote":"Apostrophe",l=n.enter("definition");let u=n.enter("label");const d=n.createTracker(r);let h=d.move("[");return h+=d.move(n.safe(n.associationId(e),{before:h,after:"]",...d.current()})),h+=d.move("]: "),u(),!e.url||/[\0- \u007F]/.test(e.url)?(u=n.enter("destinationLiteral"),h+=d.move("<"),h+=d.move(n.safe(e.url,{before:h,after:">",...d.current()})),h+=d.move(">")):(u=n.enter("destinationRaw"),h+=d.move(n.safe(e.url,{before:h,after:e.title?" ":`
|
|
140
|
-
`,...d.current()}))),u(),e.title&&(u=n.enter(`title${i}`),h+=d.move(" "+a),h+=d.move(n.safe(e.title,{before:h,after:a,...d.current()})),h+=d.move(a),u()),l(),h}function NW(e){const t=e.options.emphasis||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize emphasis with `"+t+"` for `options.emphasis`, expected `*`, or `_`");return t}function Nd(e){return"&#x"+e.toString(16).toUpperCase()+";"}function bh(e,t,n){const r=Eu(e),a=Eu(t);return r===void 0?a===void 0?n==="_"?{inside:!0,outside:!0}:{inside:!1,outside:!1}:a===1?{inside:!0,outside:!0}:{inside:!1,outside:!0}:r===1?a===void 0?{inside:!1,outside:!1}:a===1?{inside:!0,outside:!0}:{inside:!1,outside:!1}:a===void 0?{inside:!1,outside:!1}:a===1?{inside:!0,outside:!1}:{inside:!1,outside:!1}}qC.peek=PW;function qC(e,t,n,r){const a=NW(n),i=n.enter("emphasis"),l=n.createTracker(r),u=l.move(a);let d=l.move(n.containerPhrasing(e,{after:a,before:u,...l.current()}));const h=d.charCodeAt(0),v=bh(r.before.charCodeAt(r.before.length-1),h,a);v.inside&&(d=Nd(h)+d.slice(1));const m=d.charCodeAt(d.length-1),E=bh(r.after.charCodeAt(0),m,a);E.inside&&(d=d.slice(0,-1)+Nd(m));const b=l.move(a);return i(),n.attentionEncodeSurroundingInfo={after:E.outside,before:v.outside},u+d+b}function PW(e,t,n){return n.options.emphasis||"*"}function kW(e,t){let n=!1;return S1(e,function(r){if("value"in r&&/\r?\n|\r/.test(r.value)||r.type==="break")return n=!0,Iv}),!!((!e.depth||e.depth<3)&&J4(e)&&(t.options.setext||n))}function DW(e,t,n,r){const a=Math.max(Math.min(6,e.depth||1),1),i=n.createTracker(r);if(kW(e,n)){const v=n.enter("headingSetext"),m=n.enter("phrasing"),E=n.containerPhrasing(e,{...i.current(),before:`
|
|
141
|
-
`,after:`
|
|
142
|
-
`});return m(),v(),E+`
|
|
143
|
-
`+(a===1?"=":"-").repeat(E.length-(Math.max(E.lastIndexOf("\r"),E.lastIndexOf(`
|
|
144
|
-
`))+1))}const l="#".repeat(a),u=n.enter("headingAtx"),d=n.enter("phrasing");i.move(l+" ");let h=n.containerPhrasing(e,{before:"# ",after:`
|
|
145
|
-
`,...i.current()});return/^[\t ]/.test(h)&&(h=Nd(h.charCodeAt(0))+h.slice(1)),h=h?l+" "+h:l,n.options.closeAtx&&(h+=" "+l),d(),u(),h}$C.peek=MW;function $C(e){return e.value||""}function MW(){return"<"}ZC.peek=LW;function ZC(e,t,n,r){const a=m6(n),i=a==='"'?"Quote":"Apostrophe",l=n.enter("image");let u=n.enter("label");const d=n.createTracker(r);let h=d.move("![");return h+=d.move(n.safe(e.alt,{before:h,after:"]",...d.current()})),h+=d.move("]("),u(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(u=n.enter("destinationLiteral"),h+=d.move("<"),h+=d.move(n.safe(e.url,{before:h,after:">",...d.current()})),h+=d.move(">")):(u=n.enter("destinationRaw"),h+=d.move(n.safe(e.url,{before:h,after:e.title?" ":")",...d.current()}))),u(),e.title&&(u=n.enter(`title${i}`),h+=d.move(" "+a),h+=d.move(n.safe(e.title,{before:h,after:a,...d.current()})),h+=d.move(a),u()),h+=d.move(")"),l(),h}function LW(){return"!"}QC.peek=IW;function QC(e,t,n,r){const a=e.referenceType,i=n.enter("imageReference");let l=n.enter("label");const u=n.createTracker(r);let d=u.move("![");const h=n.safe(e.alt,{before:d,after:"]",...u.current()});d+=u.move(h+"]["),l();const v=n.stack;n.stack=[],l=n.enter("reference");const m=n.safe(n.associationId(e),{before:d,after:"]",...u.current()});return l(),n.stack=v,i(),a==="full"||!h||h!==m?d+=u.move(m+"]"):a==="shortcut"?d=d.slice(0,-1):d+=u.move("]"),d}function IW(){return"!"}YC.peek=jW;function YC(e,t,n){let r=e.value||"",a="`",i=-1;for(;new RegExp("(^|[^`])"+a+"([^`]|$)").test(r);)a+="`";for(/[^ \r\n]/.test(r)&&(/^[ \r\n]/.test(r)&&/[ \r\n]$/.test(r)||/^`|`$/.test(r))&&(r=" "+r+" ");++i<n.unsafe.length;){const l=n.unsafe[i],u=n.compilePattern(l);let d;if(l.atBreak)for(;d=u.exec(r);){let h=d.index;r.charCodeAt(h)===10&&r.charCodeAt(h-1)===13&&h--,r=r.slice(0,h)+" "+r.slice(d.index+1)}}return a+r+a}function jW(){return"`"}function GC(e,t){const n=J4(e);return!!(!t.options.resourceLink&&e.url&&!e.title&&e.children&&e.children.length===1&&e.children[0].type==="text"&&(n===e.url||"mailto:"+n===e.url)&&/^[a-z][a-z+.-]+:/i.test(e.url)&&!/[\0- <>\u007F]/.test(e.url))}KC.peek=HW;function KC(e,t,n,r){const a=m6(n),i=a==='"'?"Quote":"Apostrophe",l=n.createTracker(r);let u,d;if(GC(e,n)){const v=n.stack;n.stack=[],u=n.enter("autolink");let m=l.move("<");return m+=l.move(n.containerPhrasing(e,{before:m,after:">",...l.current()})),m+=l.move(">"),u(),n.stack=v,m}u=n.enter("link"),d=n.enter("label");let h=l.move("[");return h+=l.move(n.containerPhrasing(e,{before:h,after:"](",...l.current()})),h+=l.move("]("),d(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(d=n.enter("destinationLiteral"),h+=l.move("<"),h+=l.move(n.safe(e.url,{before:h,after:">",...l.current()})),h+=l.move(">")):(d=n.enter("destinationRaw"),h+=l.move(n.safe(e.url,{before:h,after:e.title?" ":")",...l.current()}))),d(),e.title&&(d=n.enter(`title${i}`),h+=l.move(" "+a),h+=l.move(n.safe(e.title,{before:h,after:a,...l.current()})),h+=l.move(a),d()),h+=l.move(")"),u(),h}function HW(e,t,n){return GC(e,n)?"<":"["}XC.peek=FW;function XC(e,t,n,r){const a=e.referenceType,i=n.enter("linkReference");let l=n.enter("label");const u=n.createTracker(r);let d=u.move("[");const h=n.containerPhrasing(e,{before:d,after:"]",...u.current()});d+=u.move(h+"]["),l();const v=n.stack;n.stack=[],l=n.enter("reference");const m=n.safe(n.associationId(e),{before:d,after:"]",...u.current()});return l(),n.stack=v,i(),a==="full"||!h||h!==m?d+=u.move(m+"]"):a==="shortcut"?d=d.slice(0,-1):d+=u.move("]"),d}function FW(){return"["}function p6(e){const t=e.options.bullet||"*";if(t!=="*"&&t!=="+"&&t!=="-")throw new Error("Cannot serialize items with `"+t+"` for `options.bullet`, expected `*`, `+`, or `-`");return t}function UW(e){const t=p6(e),n=e.options.bulletOther;if(!n)return t==="*"?"-":"*";if(n!=="*"&&n!=="+"&&n!=="-")throw new Error("Cannot serialize items with `"+n+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(n===t)throw new Error("Expected `bullet` (`"+t+"`) and `bulletOther` (`"+n+"`) to be different");return n}function BW(e){const t=e.options.bulletOrdered||".";if(t!=="."&&t!==")")throw new Error("Cannot serialize items with `"+t+"` for `options.bulletOrdered`, expected `.` or `)`");return t}function WC(e){const t=e.options.rule||"*";if(t!=="*"&&t!=="-"&&t!=="_")throw new Error("Cannot serialize rules with `"+t+"` for `options.rule`, expected `*`, `-`, or `_`");return t}function VW(e,t,n,r){const a=n.enter("list"),i=n.bulletCurrent;let l=e.ordered?BW(n):p6(n);const u=e.ordered?l==="."?")":".":UW(n);let d=t&&n.bulletLastUsed?l===n.bulletLastUsed:!1;if(!e.ordered){const v=e.children?e.children[0]:void 0;if((l==="*"||l==="-")&&v&&(!v.children||!v.children[0])&&n.stack[n.stack.length-1]==="list"&&n.stack[n.stack.length-2]==="listItem"&&n.stack[n.stack.length-3]==="list"&&n.stack[n.stack.length-4]==="listItem"&&n.indexStack[n.indexStack.length-1]===0&&n.indexStack[n.indexStack.length-2]===0&&n.indexStack[n.indexStack.length-3]===0&&(d=!0),WC(n)===l&&v){let m=-1;for(;++m<e.children.length;){const E=e.children[m];if(E&&E.type==="listItem"&&E.children&&E.children[0]&&E.children[0].type==="thematicBreak"){d=!0;break}}}}d&&(l=u),n.bulletCurrent=l;const h=n.containerFlow(e,r);return n.bulletLastUsed=l,n.bulletCurrent=i,a(),h}function zW(e){const t=e.options.listItemIndent||"one";if(t!=="tab"&&t!=="one"&&t!=="mixed")throw new Error("Cannot serialize items with `"+t+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return t}function qW(e,t,n,r){const a=zW(n);let i=n.bulletCurrent||p6(n);t&&t.type==="list"&&t.ordered&&(i=(typeof t.start=="number"&&t.start>-1?t.start:1)+(n.options.incrementListMarker===!1?0:t.children.indexOf(e))+i);let l=i.length+1;(a==="tab"||a==="mixed"&&(t&&t.type==="list"&&t.spread||e.spread))&&(l=Math.ceil(l/4)*4);const u=n.createTracker(r);u.move(i+" ".repeat(l-i.length)),u.shift(l);const d=n.enter("listItem"),h=n.indentLines(n.containerFlow(e,u.current()),v);return d(),h;function v(m,E,b){return E?(b?"":" ".repeat(l))+m:(b?i:i+" ".repeat(l-i.length))+m}}function $W(e,t,n,r){const a=n.enter("paragraph"),i=n.enter("phrasing"),l=n.containerPhrasing(e,r);return i(),a(),l}const ZW=T1(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function QW(e,t,n,r){return(e.children.some(function(l){return ZW(l)})?n.containerPhrasing:n.containerFlow).call(n,e,r)}function YW(e){const t=e.options.strong||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize strong with `"+t+"` for `options.strong`, expected `*`, or `_`");return t}JC.peek=GW;function JC(e,t,n,r){const a=YW(n),i=n.enter("strong"),l=n.createTracker(r),u=l.move(a+a);let d=l.move(n.containerPhrasing(e,{after:a,before:u,...l.current()}));const h=d.charCodeAt(0),v=bh(r.before.charCodeAt(r.before.length-1),h,a);v.inside&&(d=Nd(h)+d.slice(1));const m=d.charCodeAt(d.length-1),E=bh(r.after.charCodeAt(0),m,a);E.inside&&(d=d.slice(0,-1)+Nd(m));const b=l.move(a+a);return i(),n.attentionEncodeSurroundingInfo={after:E.outside,before:v.outside},u+d+b}function GW(e,t,n){return n.options.strong||"*"}function KW(e,t,n,r){return n.safe(e.value,r)}function XW(e){const t=e.options.ruleRepetition||3;if(t<3)throw new Error("Cannot serialize rules with repetition `"+t+"` for `options.ruleRepetition`, expected `3` or more");return t}function WW(e,t,n){const r=(WC(n)+(n.options.ruleSpaces?" ":"")).repeat(XW(n));return n.options.ruleSpaces?r.slice(0,-1):r}const eR={blockquote:xW,break:p5,code:CW,definition:OW,emphasis:qC,hardBreak:p5,heading:DW,html:$C,image:ZC,imageReference:QC,inlineCode:YC,link:KC,linkReference:XC,list:VW,listItem:qW,paragraph:$W,root:QW,strong:JC,text:KW,thematicBreak:WW};function JW(){return{enter:{table:eJ,tableData:g5,tableHeader:g5,tableRow:nJ},exit:{codeText:rJ,table:tJ,tableData:K2,tableHeader:K2,tableRow:K2}}}function eJ(e){const t=e._align;this.enter({type:"table",align:t.map(function(n){return n==="none"?null:n}),children:[]},e),this.data.inTable=!0}function tJ(e){this.exit(e),this.data.inTable=void 0}function nJ(e){this.enter({type:"tableRow",children:[]},e)}function K2(e){this.exit(e)}function g5(e){this.enter({type:"tableCell",children:[]},e)}function rJ(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,aJ));const n=this.stack[this.stack.length-1];n.type,n.value=t,this.exit(e)}function aJ(e,t){return t==="|"?t:e}function sJ(e){const t=e||{},n=t.tableCellPadding,r=t.tablePipeAlign,a=t.stringLength,i=n?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:`
|
|
146
|
-
`,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:E,table:l,tableCell:d,tableRow:u}};function l(b,T,A,S){return h(v(b,A,S),b.align)}function u(b,T,A,S){const w=m(b,A,S),R=h([w]);return R.slice(0,R.indexOf(`
|
|
147
|
-
`))}function d(b,T,A,S){const w=A.enter("tableCell"),R=A.enter("phrasing"),k=A.containerPhrasing(b,{...S,before:i,after:i});return R(),w(),k}function h(b,T){return bW(b,{align:T,alignDelimiters:r,padding:n,stringLength:a})}function v(b,T,A){const S=b.children;let w=-1;const R=[],k=T.enter("table");for(;++w<S.length;)R[w]=m(S[w],T,A);return k(),R}function m(b,T,A){const S=b.children;let w=-1;const R=[],k=T.enter("tableRow");for(;++w<S.length;)R[w]=d(S[w],b,T,A);return k(),R}function E(b,T,A){let S=eR.inlineCode(b,T,A);return A.stack.includes("tableCell")&&(S=S.replace(/\|/g,"\\$&")),S}}function iJ(){return{exit:{taskListCheckValueChecked:v5,taskListCheckValueUnchecked:v5,paragraph:lJ}}}function oJ(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:uJ}}}function v5(e){const t=this.stack[this.stack.length-2];t.type,t.checked=e.type==="taskListCheckValueChecked"}function lJ(e){const t=this.stack[this.stack.length-2];if(t&&t.type==="listItem"&&typeof t.checked=="boolean"){const n=this.stack[this.stack.length-1];n.type;const r=n.children[0];if(r&&r.type==="text"){const a=t.children;let i=-1,l;for(;++i<a.length;){const u=a[i];if(u.type==="paragraph"){l=u;break}}l===n&&(r.value=r.value.slice(1),r.value.length===0?n.children.shift():n.position&&r.position&&typeof r.position.start.offset=="number"&&(r.position.start.column++,r.position.start.offset++,n.position.start=Object.assign({},r.position.start)))}}this.exit(e)}function uJ(e,t,n,r){const a=e.children[0],i=typeof e.checked=="boolean"&&a&&a.type==="paragraph",l="["+(e.checked?"x":" ")+"] ",u=n.createTracker(r);i&&u.move(l);let d=eR.listItem(e,t,n,{...r,...u.current()});return i&&(d=d.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,h)),d;function h(v){return v+l}}function cJ(){return[VX(),uW(),hW(),JW(),iJ()]}function dJ(e){return{extensions:[zX(),cW(e),mW(),sJ(e),oJ()]}}const fJ={tokenize:yJ,partial:!0},tR={tokenize:bJ,partial:!0},nR={tokenize:EJ,partial:!0},rR={tokenize:xJ,partial:!0},hJ={tokenize:_J,partial:!0},aR={name:"wwwAutolink",tokenize:gJ,previous:iR},sR={name:"protocolAutolink",tokenize:vJ,previous:oR},Ei={name:"emailAutolink",tokenize:pJ,previous:lR},Ms={};function mJ(){return{text:Ms}}let jo=48;for(;jo<123;)Ms[jo]=Ei,jo++,jo===58?jo=65:jo===91&&(jo=97);Ms[43]=Ei;Ms[45]=Ei;Ms[46]=Ei;Ms[95]=Ei;Ms[72]=[Ei,sR];Ms[104]=[Ei,sR];Ms[87]=[Ei,aR];Ms[119]=[Ei,aR];function pJ(e,t,n){const r=this;let a,i;return l;function l(m){return!Qv(m)||!lR.call(r,r.previous)||g6(r.events)?n(m):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),u(m))}function u(m){return Qv(m)?(e.consume(m),u):m===64?(e.consume(m),d):n(m)}function d(m){return m===46?e.check(hJ,v,h)(m):m===45||m===95||Sr(m)?(i=!0,e.consume(m),d):v(m)}function h(m){return e.consume(m),a=!0,d}function v(m){return i&&a&&Dr(r.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(m)):n(m)}}function gJ(e,t,n){const r=this;return a;function a(l){return l!==87&&l!==119||!iR.call(r,r.previous)||g6(r.events)?n(l):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(fJ,e.attempt(tR,e.attempt(nR,i),n),n)(l))}function i(l){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(l)}}function vJ(e,t,n){const r=this;let a="",i=!1;return l;function l(m){return(m===72||m===104)&&oR.call(r,r.previous)&&!g6(r.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),a+=String.fromCodePoint(m),e.consume(m),u):n(m)}function u(m){if(Dr(m)&&a.length<5)return a+=String.fromCodePoint(m),e.consume(m),u;if(m===58){const E=a.toLowerCase();if(E==="http"||E==="https")return e.consume(m),d}return n(m)}function d(m){return m===47?(e.consume(m),i?h:(i=!0,d)):n(m)}function h(m){return m===null||mh(m)||fn(m)||Yo(m)||E1(m)?n(m):e.attempt(tR,e.attempt(nR,v),n)(m)}function v(m){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(m)}}function yJ(e,t,n){let r=0;return a;function a(l){return(l===87||l===119)&&r<3?(r++,e.consume(l),a):l===46&&r===3?(e.consume(l),i):n(l)}function i(l){return l===null?n(l):t(l)}}function bJ(e,t,n){let r,a,i;return l;function l(h){return h===46||h===95?e.check(rR,d,u)(h):h===null||fn(h)||Yo(h)||h!==45&&E1(h)?d(h):(i=!0,e.consume(h),l)}function u(h){return h===95?r=!0:(a=r,r=void 0),e.consume(h),l}function d(h){return a||r||!i?n(h):t(h)}}function EJ(e,t){let n=0,r=0;return a;function a(l){return l===40?(n++,e.consume(l),a):l===41&&r<n?i(l):l===33||l===34||l===38||l===39||l===41||l===42||l===44||l===46||l===58||l===59||l===60||l===63||l===93||l===95||l===126?e.check(rR,t,i)(l):l===null||fn(l)||Yo(l)?t(l):(e.consume(l),a)}function i(l){return l===41&&r++,e.consume(l),a}}function xJ(e,t,n){return r;function r(u){return u===33||u===34||u===39||u===41||u===42||u===44||u===46||u===58||u===59||u===63||u===95||u===126?(e.consume(u),r):u===38?(e.consume(u),i):u===93?(e.consume(u),a):u===60||u===null||fn(u)||Yo(u)?t(u):n(u)}function a(u){return u===null||u===40||u===91||fn(u)||Yo(u)?t(u):r(u)}function i(u){return Dr(u)?l(u):n(u)}function l(u){return u===59?(e.consume(u),r):Dr(u)?(e.consume(u),l):n(u)}}function _J(e,t,n){return r;function r(i){return e.consume(i),a}function a(i){return Sr(i)?n(i):t(i)}}function iR(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||fn(e)}function oR(e){return!Dr(e)}function lR(e){return!(e===47||Qv(e))}function Qv(e){return e===43||e===45||e===46||e===95||Sr(e)}function g6(e){let t=e.length,n=!1;for(;t--;){const r=e[t][1];if((r.type==="labelLink"||r.type==="labelImage")&&!r._balanced){n=!0;break}if(r._gfmAutolinkLiteralWalkedInto){n=!1;break}}return e.length>0&&!n&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}const TJ={tokenize:PJ,partial:!0};function AJ(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:RJ,continuation:{tokenize:OJ},exit:NJ}},text:{91:{name:"gfmFootnoteCall",tokenize:CJ},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:SJ,resolveTo:wJ}}}}function SJ(e,t,n){const r=this;let a=r.events.length;const i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let l;for(;a--;){const d=r.events[a][1];if(d.type==="labelImage"){l=d;break}if(d.type==="gfmFootnoteCall"||d.type==="labelLink"||d.type==="label"||d.type==="image"||d.type==="link")break}return u;function u(d){if(!l||!l._balanced)return n(d);const h=Ga(r.sliceSerialize({start:l.end,end:r.now()}));return h.codePointAt(0)!==94||!i.includes(h.slice(1))?n(d):(e.enter("gfmFootnoteCallLabelMarker"),e.consume(d),e.exit("gfmFootnoteCallLabelMarker"),t(d))}}function wJ(e,t){let n=e.length;for(;n--;)if(e[n][1].type==="labelImage"&&e[n][0]==="enter"){e[n][1];break}e[n+1][1].type="data",e[n+3][1].type="gfmFootnoteCallLabelMarker";const r={type:"gfmFootnoteCall",start:Object.assign({},e[n+3][1].start),end:Object.assign({},e[e.length-1][1].end)},a={type:"gfmFootnoteCallMarker",start:Object.assign({},e[n+3][1].end),end:Object.assign({},e[n+3][1].end)};a.end.column++,a.end.offset++,a.end._bufferIndex++;const i={type:"gfmFootnoteCallString",start:Object.assign({},a.end),end:Object.assign({},e[e.length-1][1].start)},l={type:"chunkString",contentType:"string",start:Object.assign({},i.start),end:Object.assign({},i.end)},u=[e[n+1],e[n+2],["enter",r,t],e[n+3],e[n+4],["enter",a,t],["exit",a,t],["enter",i,t],["enter",l,t],["exit",l,t],["exit",i,t],e[e.length-2],e[e.length-1],["exit",r,t]];return e.splice(n,e.length-n+1,...u),e}function CJ(e,t,n){const r=this,a=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let i=0,l;return u;function u(m){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(m),e.exit("gfmFootnoteCallLabelMarker"),d}function d(m){return m!==94?n(m):(e.enter("gfmFootnoteCallMarker"),e.consume(m),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",h)}function h(m){if(i>999||m===93&&!l||m===null||m===91||fn(m))return n(m);if(m===93){e.exit("chunkString");const E=e.exit("gfmFootnoteCallString");return a.includes(Ga(r.sliceSerialize(E)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(m),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):n(m)}return fn(m)||(l=!0),i++,e.consume(m),m===92?v:h}function v(m){return m===91||m===92||m===93?(e.consume(m),i++,h):h(m)}}function RJ(e,t,n){const r=this,a=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let i,l=0,u;return d;function d(T){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(T),e.exit("gfmFootnoteDefinitionLabelMarker"),h}function h(T){return T===94?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(T),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",v):n(T)}function v(T){if(l>999||T===93&&!u||T===null||T===91||fn(T))return n(T);if(T===93){e.exit("chunkString");const A=e.exit("gfmFootnoteDefinitionLabelString");return i=Ga(r.sliceSerialize(A)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(T),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),E}return fn(T)||(u=!0),l++,e.consume(T),T===92?m:v}function m(T){return T===91||T===92||T===93?(e.consume(T),l++,v):v(T)}function E(T){return T===58?(e.enter("definitionMarker"),e.consume(T),e.exit("definitionMarker"),a.includes(i)||a.push(i),Ut(e,b,"gfmFootnoteDefinitionWhitespace")):n(T)}function b(T){return t(T)}}function OJ(e,t,n){return e.check(e0,t,e.attempt(TJ,t,n))}function NJ(e){e.exit("gfmFootnoteDefinition")}function PJ(e,t,n){const r=this;return Ut(e,a,"gfmFootnoteDefinitionIndent",5);function a(i){const l=r.events[r.events.length-1];return l&&l[1].type==="gfmFootnoteDefinitionIndent"&&l[2].sliceSerialize(l[1],!0).length===4?t(i):n(i)}}function kJ(e){let n=(e||{}).singleTilde;const r={name:"strikethrough",tokenize:i,resolveAll:a};return n==null&&(n=!0),{text:{126:r},insideSpan:{null:[r]},attentionMarkers:{null:[126]}};function a(l,u){let d=-1;for(;++d<l.length;)if(l[d][0]==="enter"&&l[d][1].type==="strikethroughSequenceTemporary"&&l[d][1]._close){let h=d;for(;h--;)if(l[h][0]==="exit"&&l[h][1].type==="strikethroughSequenceTemporary"&&l[h][1]._open&&l[d][1].end.offset-l[d][1].start.offset===l[h][1].end.offset-l[h][1].start.offset){l[d][1].type="strikethroughSequence",l[h][1].type="strikethroughSequence";const v={type:"strikethrough",start:Object.assign({},l[h][1].start),end:Object.assign({},l[d][1].end)},m={type:"strikethroughText",start:Object.assign({},l[h][1].end),end:Object.assign({},l[d][1].start)},E=[["enter",v,u],["enter",l[h][1],u],["exit",l[h][1],u],["enter",m,u]],b=u.parser.constructs.insideSpan.null;b&&ha(E,E.length,0,x1(b,l.slice(h+1,d),u)),ha(E,E.length,0,[["exit",m,u],["enter",l[d][1],u],["exit",l[d][1],u],["exit",v,u]]),ha(l,h-1,d-h+3,E),d=h+E.length-2;break}}for(d=-1;++d<l.length;)l[d][1].type==="strikethroughSequenceTemporary"&&(l[d][1].type="data");return l}function i(l,u,d){const h=this.previous,v=this.events;let m=0;return E;function E(T){return h===126&&v[v.length-1][1].type!=="characterEscape"?d(T):(l.enter("strikethroughSequenceTemporary"),b(T))}function b(T){const A=Eu(h);if(T===126)return m>1?d(T):(l.consume(T),m++,b);if(m<2&&!n)return d(T);const S=l.exit("strikethroughSequenceTemporary"),w=Eu(T);return S._open=!w||w===2&&!!A,S._close=!A||A===2&&!!w,u(T)}}}class DJ{constructor(){this.map=[]}add(t,n,r){MJ(this,t,n,r)}consume(t){if(this.map.sort(function(i,l){return i[0]-l[0]}),this.map.length===0)return;let n=this.map.length;const r=[];for(;n>0;)n-=1,r.push(t.slice(this.map[n][0]+this.map[n][1]),this.map[n][2]),t.length=this.map[n][0];r.push(t.slice()),t.length=0;let a=r.pop();for(;a;){for(const i of a)t.push(i);a=r.pop()}this.map.length=0}}function MJ(e,t,n,r){let a=0;if(!(n===0&&r.length===0)){for(;a<e.map.length;){if(e.map[a][0]===t){e.map[a][1]+=n,e.map[a][2].push(...r);return}a+=1}e.map.push([t,n,r])}}function LJ(e,t){let n=!1;const r=[];for(;t<e.length;){const a=e[t];if(n){if(a[0]==="enter")a[1].type==="tableContent"&&r.push(e[t+1][1].type==="tableDelimiterMarker"?"left":"none");else if(a[1].type==="tableContent"){if(e[t-1][1].type==="tableDelimiterMarker"){const i=r.length-1;r[i]=r[i]==="left"?"center":"right"}}else if(a[1].type==="tableDelimiterRow")break}else a[0]==="enter"&&a[1].type==="tableDelimiterRow"&&(n=!0);t+=1}return r}function IJ(){return{flow:{null:{name:"table",tokenize:jJ,resolveAll:HJ}}}}function jJ(e,t,n){const r=this;let a=0,i=0,l;return u;function u(P){let U=r.events.length-1;for(;U>-1;){const Y=r.events[U][1].type;if(Y==="lineEnding"||Y==="linePrefix")U--;else break}const F=U>-1?r.events[U][1].type:null,Q=F==="tableHead"||F==="tableRow"?N:d;return Q===N&&r.parser.lazy[r.now().line]?n(P):Q(P)}function d(P){return e.enter("tableHead"),e.enter("tableRow"),h(P)}function h(P){return P===124||(l=!0,i+=1),v(P)}function v(P){return P===null?n(P):lt(P)?i>1?(i=0,r.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(P),e.exit("lineEnding"),b):n(P):Mt(P)?Ut(e,v,"whitespace")(P):(i+=1,l&&(l=!1,a+=1),P===124?(e.enter("tableCellDivider"),e.consume(P),e.exit("tableCellDivider"),l=!0,v):(e.enter("data"),m(P)))}function m(P){return P===null||P===124||fn(P)?(e.exit("data"),v(P)):(e.consume(P),P===92?E:m)}function E(P){return P===92||P===124?(e.consume(P),m):m(P)}function b(P){return r.interrupt=!1,r.parser.lazy[r.now().line]?n(P):(e.enter("tableDelimiterRow"),l=!1,Mt(P)?Ut(e,T,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(P):T(P))}function T(P){return P===45||P===58?S(P):P===124?(l=!0,e.enter("tableCellDivider"),e.consume(P),e.exit("tableCellDivider"),A):I(P)}function A(P){return Mt(P)?Ut(e,S,"whitespace")(P):S(P)}function S(P){return P===58?(i+=1,l=!0,e.enter("tableDelimiterMarker"),e.consume(P),e.exit("tableDelimiterMarker"),w):P===45?(i+=1,w(P)):P===null||lt(P)?L(P):I(P)}function w(P){return P===45?(e.enter("tableDelimiterFiller"),R(P)):I(P)}function R(P){return P===45?(e.consume(P),R):P===58?(l=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(P),e.exit("tableDelimiterMarker"),k):(e.exit("tableDelimiterFiller"),k(P))}function k(P){return Mt(P)?Ut(e,L,"whitespace")(P):L(P)}function L(P){return P===124?T(P):P===null||lt(P)?!l||a!==i?I(P):(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(P)):I(P)}function I(P){return n(P)}function N(P){return e.enter("tableRow"),M(P)}function M(P){return P===124?(e.enter("tableCellDivider"),e.consume(P),e.exit("tableCellDivider"),M):P===null||lt(P)?(e.exit("tableRow"),t(P)):Mt(P)?Ut(e,M,"whitespace")(P):(e.enter("data"),D(P))}function D(P){return P===null||P===124||fn(P)?(e.exit("data"),M(P)):(e.consume(P),P===92?B:D)}function B(P){return P===92||P===124?(e.consume(P),D):D(P)}}function HJ(e,t){let n=-1,r=!0,a=0,i=[0,0,0,0],l=[0,0,0,0],u=!1,d=0,h,v,m;const E=new DJ;for(;++n<e.length;){const b=e[n],T=b[1];b[0]==="enter"?T.type==="tableHead"?(u=!1,d!==0&&(y5(E,t,d,h,v),v=void 0,d=0),h={type:"table",start:Object.assign({},T.start),end:Object.assign({},T.end)},E.add(n,0,[["enter",h,t]])):T.type==="tableRow"||T.type==="tableDelimiterRow"?(r=!0,m=void 0,i=[0,0,0,0],l=[0,n+1,0,0],u&&(u=!1,v={type:"tableBody",start:Object.assign({},T.start),end:Object.assign({},T.end)},E.add(n,0,[["enter",v,t]])),a=T.type==="tableDelimiterRow"?2:v?3:1):a&&(T.type==="data"||T.type==="tableDelimiterMarker"||T.type==="tableDelimiterFiller")?(r=!1,l[2]===0&&(i[1]!==0&&(l[0]=l[1],m=jf(E,t,i,a,void 0,m),i=[0,0,0,0]),l[2]=n)):T.type==="tableCellDivider"&&(r?r=!1:(i[1]!==0&&(l[0]=l[1],m=jf(E,t,i,a,void 0,m)),i=l,l=[i[1],n,0,0])):T.type==="tableHead"?(u=!0,d=n):T.type==="tableRow"||T.type==="tableDelimiterRow"?(d=n,i[1]!==0?(l[0]=l[1],m=jf(E,t,i,a,n,m)):l[1]!==0&&(m=jf(E,t,l,a,n,m)),a=0):a&&(T.type==="data"||T.type==="tableDelimiterMarker"||T.type==="tableDelimiterFiller")&&(l[3]=n)}for(d!==0&&y5(E,t,d,h,v),E.consume(t.events),n=-1;++n<t.events.length;){const b=t.events[n];b[0]==="enter"&&b[1].type==="table"&&(b[1]._align=LJ(t.events,n))}return e}function jf(e,t,n,r,a,i){const l=r===1?"tableHeader":r===2?"tableDelimiter":"tableData",u="tableContent";n[0]!==0&&(i.end=Object.assign({},eu(t.events,n[0])),e.add(n[0],0,[["exit",i,t]]));const d=eu(t.events,n[1]);if(i={type:l,start:Object.assign({},d),end:Object.assign({},d)},e.add(n[1],0,[["enter",i,t]]),n[2]!==0){const h=eu(t.events,n[2]),v=eu(t.events,n[3]),m={type:u,start:Object.assign({},h),end:Object.assign({},v)};if(e.add(n[2],0,[["enter",m,t]]),r!==2){const E=t.events[n[2]],b=t.events[n[3]];if(E[1].end=Object.assign({},b[1].end),E[1].type="chunkText",E[1].contentType="text",n[3]>n[2]+1){const T=n[2]+1,A=n[3]-n[2]-1;e.add(T,A,[])}}e.add(n[3]+1,0,[["exit",m,t]])}return a!==void 0&&(i.end=Object.assign({},eu(t.events,a)),e.add(a,0,[["exit",i,t]]),i=void 0),i}function y5(e,t,n,r,a){const i=[],l=eu(t.events,n);a&&(a.end=Object.assign({},l),i.push(["exit",a,t])),r.end=Object.assign({},l),i.push(["exit",r,t]),e.add(n+1,0,i)}function eu(e,t){const n=e[t],r=n[0]==="enter"?"start":"end";return n[1][r]}const FJ={name:"tasklistCheck",tokenize:BJ};function UJ(){return{text:{91:FJ}}}function BJ(e,t,n){const r=this;return a;function a(d){return r.previous!==null||!r._gfmTasklistFirstContentOfListItem?n(d):(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(d),e.exit("taskListCheckMarker"),i)}function i(d){return fn(d)?(e.enter("taskListCheckValueUnchecked"),e.consume(d),e.exit("taskListCheckValueUnchecked"),l):d===88||d===120?(e.enter("taskListCheckValueChecked"),e.consume(d),e.exit("taskListCheckValueChecked"),l):n(d)}function l(d){return d===93?(e.enter("taskListCheckMarker"),e.consume(d),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),u):n(d)}function u(d){return lt(d)?t(d):Mt(d)?e.check({tokenize:VJ},t,n)(d):n(d)}}function VJ(e,t,n){return Ut(e,r,"whitespace");function r(a){return a===null?n(a):t(a)}}function zJ(e){return w7([mJ(),AJ(),kJ(e),IJ(),UJ()])}const qJ={};function uR(e){const t=this,n=e||qJ,r=t.data(),a=r.micromarkExtensions||(r.micromarkExtensions=[]),i=r.fromMarkdownExtensions||(r.fromMarkdownExtensions=[]),l=r.toMarkdownExtensions||(r.toMarkdownExtensions=[]);a.push(zJ(n)),i.push(cJ()),l.push(dJ(n))}function $J({children:e}){return g.jsx(Q7,{remarkPlugins:[uR],rehypePlugins:[FC],allowElement:t=>!!["a","p","strong","i","u","s","code"].includes(t.tagName),components:{p:({children:t})=>g.jsx(g.Fragment,{children:t}),a:({children:t,href:n})=>g.jsx("a",{className:"text-fg underline",href:n,target:"_blank",rel:"noopener noreferrer",children:t}),strong:({children:t})=>g.jsx("strong",{className:"font-[450]",children:t}),i:({children:t})=>g.jsx("i",{className:"text-fg",children:t}),u:({children:t})=>g.jsx("u",{className:"underline",children:t}),s:({children:t})=>g.jsx("s",{className:"line-through",children:t}),code:({children:t})=>g.jsx("code",{className:"rounded-md bg-accent px-1 font-mono",children:t})},children:e.replaceAll(`
|
|
148
|
-
`," ")})}function Go({children:e,className:t}){return g.jsx("div",{className:De("prose",t),children:g.jsx(Q7,{remarkPlugins:[uR],rehypePlugins:[FC],components:{table:({children:n})=>g.jsx("div",{className:"max-w-full overflow-x-auto overflow-y-auto",children:g.jsx("table",{children:n})})},children:e})})}var ZJ="Separator",b5="horizontal",QJ=["horizontal","vertical"],cR=p.forwardRef((e,t)=>{const{decorative:n,orientation:r=b5,...a}=e,i=YJ(r)?r:b5,u=n?{role:"none"}:{"aria-orientation":i==="vertical"?i:void 0,role:"separator"};return g.jsx(xt.div,{"data-orientation":i,...u,...a,ref:t})});cR.displayName=ZJ;function YJ(e){return QJ.includes(e)}var GJ=cR;function dR({className:e,orientation:t="horizontal",decorative:n=!0,...r}){return g.jsx(GJ,{"data-slot":"separator-root",decorative:n,orientation:t,className:De("shrink-0 bg-accent","data-[orientation=horizontal]:h-[0.5px] data-[orientation=vertical]:h-full data-[orientation=horizontal]:w-full data-[orientation=vertical]:w-[0.5px]",e),...r})}function Wt({children:e,className:t,asChild:n,...r}){const a=n?br:"section";return g.jsx(a,{"data-slot":"section",className:De("relative flex scroll-m-20 flex-col gap-y-3",t),...r,children:e})}function Jt({children:e,className:t,...n}){return g.jsx("header",{"data-slot":"section-header",className:De("flex flex-col gap-1",t),...n,children:e})}function en({children:e,className:t,asChild:n,invisibles:r,variant:a="h1",...i}){const l=n?br:"h1";return g.jsx(l,{"data-slot":"section-title",className:De(yi({variant:a,invisibles:r}),t),...i,children:e})}function Ls({children:e,className:t,asChild:n,invisibles:r,...a}){const i=n?br:"p";return g.jsx(i,{"data-slot":"section-description",className:De(yi({variant:"p",invisibles:r}),"max-w-md text-fg-subtle",t),...a,children:e})}const ii=e=>g.jsx(dR,{"data-slot":"section-separator",...e});var N1="Tabs",[KJ,Eie]=Qr(N1,[ku]),fR=ku(),[XJ,v6]=KJ(N1),hR=p.forwardRef((e,t)=>{const{__scopeTabs:n,value:r,onValueChange:a,defaultValue:i,orientation:l="horizontal",dir:u,activationMode:d="automatic",...h}=e,v=Fd(u),[m,E]=Pa({prop:r,onChange:a,defaultProp:i??"",caller:N1});return g.jsx(XJ,{scope:n,baseId:Ts(),value:m,onValueChange:E,orientation:l,dir:v,activationMode:d,children:g.jsx(xt.div,{dir:v,"data-orientation":l,...h,ref:t})})});hR.displayName=N1;var mR="TabsList",pR=p.forwardRef((e,t)=>{const{__scopeTabs:n,loop:r=!0,...a}=e,i=v6(mR,n),l=fR(n);return g.jsx(s4,{asChild:!0,...l,orientation:i.orientation,dir:i.dir,loop:r,children:g.jsx(xt.div,{role:"tablist","aria-orientation":i.orientation,...a,ref:t})})});pR.displayName=mR;var gR="TabsTrigger",vR=p.forwardRef((e,t)=>{const{__scopeTabs:n,value:r,disabled:a=!1,...i}=e,l=v6(gR,n),u=fR(n),d=ER(l.baseId,r),h=xR(l.baseId,r),v=r===l.value;return g.jsx(i4,{asChild:!0,...u,focusable:!a,active:v,children:g.jsx(xt.button,{type:"button",role:"tab","aria-selected":v,"aria-controls":h,"data-state":v?"active":"inactive","data-disabled":a?"":void 0,disabled:a,id:d,...i,ref:t,onMouseDown:ut(e.onMouseDown,m=>{!a&&m.button===0&&m.ctrlKey===!1?l.onValueChange(r):m.preventDefault()}),onKeyDown:ut(e.onKeyDown,m=>{[" ","Enter"].includes(m.key)&&l.onValueChange(r)}),onFocus:ut(e.onFocus,()=>{const m=l.activationMode!=="manual";!v&&!a&&m&&l.onValueChange(r)})})})});vR.displayName=gR;var yR="TabsContent",bR=p.forwardRef((e,t)=>{const{__scopeTabs:n,value:r,forceMount:a,children:i,...l}=e,u=v6(yR,n),d=ER(u.baseId,r),h=xR(u.baseId,r),v=r===u.value,m=p.useRef(v);return p.useEffect(()=>{const E=requestAnimationFrame(()=>m.current=!1);return()=>cancelAnimationFrame(E)},[]),g.jsx(ka,{present:a||v,children:({present:E})=>g.jsx(xt.div,{"data-state":v?"active":"inactive","data-orientation":u.orientation,role:"tabpanel","aria-labelledby":d,hidden:!E,id:h,tabIndex:0,...l,ref:t,style:{...e.style,animationDuration:m.current?"0s":void 0},children:E&&i})})});bR.displayName=yR;function ER(e,t){return`${e}-trigger-${t}`}function xR(e,t){return`${e}-content-${t}`}var WJ=hR,JJ=pR,eee=vR,tee=bR;function nee({className:e,...t}){return g.jsx(WJ,{"data-slot":"tabs",className:De("flex flex-col gap-4",e),...t})}function ree({className:e,...t}){return g.jsx(JJ,{"data-slot":"tabs-list",className:De("inline-flex w-fit items-center justify-center gap-x-0.5 rounded-lg border-[0.5px] border-fg/15 bg-accent-subtle p-1 text-fg-subtle",e),...t})}function X2({className:e,...t}){return g.jsx(eee,{"data-slot":"tabs-trigger",className:De("inline-flex flex-1 cursor-pointer items-center justify-center gap-1.5 whitespace-nowrap rounded-md px-3 py-1 font-[450] text-fg text-sm transition-[color,box-shadow]","radix-state-[active]:bg-surface radix-state-[active]:shadow-[0_3px_9px_0px_rgba(55,50,46,0.07),_0_0_0_0.5px_rgba(55,50,46,0.15)]","radix-state-[inactive]:hover:bg-surface/50 radix-state-[inactive]:hover:shadow-[0_0_0_0.5px_rgba(55,50,46,0.15)]","disabled:pointer-events-none disabled:opacity-50 has-[svg:first-child]:pl-2.5","[&_svg:not([class*='size-'])]:size-4.5 [&_svg]:pointer-events-none [&_svg]:shrink-0",e),...t})}function W2({className:e,...t}){return g.jsx(tee,{"data-slot":"tabs-content",className:De("flex-1 outline-none",e),...t})}function _R({entry:e,onToolClick:t}){return g.jsxs(Wt,{className:"gap-y-8",children:[g.jsx(v1,{src:e.icon,className:"size-9"}),g.jsxs(Jt,{children:[g.jsx(en,{children:e.title}),g.jsx(Ls,{children:e.description})]}),g.jsxs(di,{children:[e.isOfficial&&g.jsxs(dr,{variant:"success",children:[g.jsx(uo,{children:g.jsx(q8,{})}),g.jsx(yr,{uppercase:!0,children:"Official"})]}),e.homepage&&g.jsx(dr,{className:"transition-opacity duration-200 hover:opacity-50",asChild:!0,children:g.jsxs("a",{href:e.homepage,target:"_blank",rel:"noopener noreferrer",children:[g.jsx(uo,{children:g.jsx(YT,{weight:"bold"})}),g.jsx(yr,{uppercase:!0,children:"Homepage"})]})})]}),g.jsxs(nee,{defaultValue:"readme",children:[g.jsxs(ree,{children:[g.jsxs(X2,{value:"readme",children:[g.jsx(H8,{})," Readme"]}),g.jsxs(X2,{value:"tools",children:[g.jsx(hA,{})," Tools"]}),g.jsxs(X2,{value:"transport",children:[g.jsx(V8,{})," Transport"]})]}),g.jsx(W2,{value:"readme",children:e.readme?g.jsx(Go,{className:"!max-w-none rounded-xl border-[0.5px] bg-accent-subtle/20 p-6",children:e.readme}):g.jsx(ks,{children:g.jsx(bi,{children:"No readme found"})})}),g.jsx(W2,{value:"tools",className:"rounded-xl border-[0.5px] bg-accent-subtle/20 p-6",children:g.jsxs(Wt,{children:[g.jsx(Jt,{children:g.jsx(en,{variant:"h2",asChild:!0,children:g.jsx("h3",{children:"Tools"})})}),g.jsx(sq,{links:(e.tools??[]).sort((n,r)=>n.name.localeCompare(r.name)).map(n=>({title:n.name,subtitle:n.description?.replace(/\[([^\]]+)\]/g,""),scroll:!1,href:"#",onClick:()=>t?.(n)}))})]})}),g.jsxs(W2,{value:"transport",className:"flex flex-col gap-y-10 rounded-xl border-[0.5px] bg-accent-subtle/20 p-6",children:[g.jsxs(Wt,{children:[g.jsx(Jt,{children:g.jsx(en,{variant:"h2",asChild:!0,children:g.jsx("h3",{children:"Overview"})})}),g.jsx(c7,{transport:e.transport})]}),g.jsxs(Wt,{children:[g.jsx(Jt,{children:g.jsx(en,{variant:"h2",asChild:!0,children:g.jsx("h3",{children:"Parameters"})})}),g.jsx(nq,{parameters:e.parameters??[]})]})]})]})]})}var Bt;(function(e){e.assertEqual=a=>{};function t(a){}e.assertIs=t;function n(a){throw new Error}e.assertNever=n,e.arrayToEnum=a=>{const i={};for(const l of a)i[l]=l;return i},e.getValidEnumValues=a=>{const i=e.objectKeys(a).filter(u=>typeof a[a[u]]!="number"),l={};for(const u of i)l[u]=a[u];return e.objectValues(l)},e.objectValues=a=>e.objectKeys(a).map(function(i){return a[i]}),e.objectKeys=typeof Object.keys=="function"?a=>Object.keys(a):a=>{const i=[];for(const l in a)Object.prototype.hasOwnProperty.call(a,l)&&i.push(l);return i},e.find=(a,i)=>{for(const l of a)if(i(l))return l},e.isInteger=typeof Number.isInteger=="function"?a=>Number.isInteger(a):a=>typeof a=="number"&&Number.isFinite(a)&&Math.floor(a)===a;function r(a,i=" | "){return a.map(l=>typeof l=="string"?`'${l}'`:l).join(i)}e.joinValues=r,e.jsonStringifyReplacer=(a,i)=>typeof i=="bigint"?i.toString():i})(Bt||(Bt={}));var E5;(function(e){e.mergeShapes=(t,n)=>({...t,...n})})(E5||(E5={}));const Ye=Bt.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),Xi=e=>{switch(typeof e){case"undefined":return Ye.undefined;case"string":return Ye.string;case"number":return Number.isNaN(e)?Ye.nan:Ye.number;case"boolean":return Ye.boolean;case"function":return Ye.function;case"bigint":return Ye.bigint;case"symbol":return Ye.symbol;case"object":return Array.isArray(e)?Ye.array:e===null?Ye.null:e.then&&typeof e.then=="function"&&e.catch&&typeof e.catch=="function"?Ye.promise:typeof Map<"u"&&e instanceof Map?Ye.map:typeof Set<"u"&&e instanceof Set?Ye.set:typeof Date<"u"&&e instanceof Date?Ye.date:Ye.object;default:return Ye.unknown}},Ue=Bt.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]);class hi extends Error{get errors(){return this.issues}constructor(t){super(),this.issues=[],this.addIssue=r=>{this.issues=[...this.issues,r]},this.addIssues=(r=[])=>{this.issues=[...this.issues,...r]};const n=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,n):this.__proto__=n,this.name="ZodError",this.issues=t}format(t){const n=t||function(i){return i.message},r={_errors:[]},a=i=>{for(const l of i.issues)if(l.code==="invalid_union")l.unionErrors.map(a);else if(l.code==="invalid_return_type")a(l.returnTypeError);else if(l.code==="invalid_arguments")a(l.argumentsError);else if(l.path.length===0)r._errors.push(n(l));else{let u=r,d=0;for(;d<l.path.length;){const h=l.path[d];d===l.path.length-1?(u[h]=u[h]||{_errors:[]},u[h]._errors.push(n(l))):u[h]=u[h]||{_errors:[]},u=u[h],d++}}};return a(this),r}static assert(t){if(!(t instanceof hi))throw new Error(`Not a ZodError: ${t}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,Bt.jsonStringifyReplacer,2)}get isEmpty(){return this.issues.length===0}flatten(t=n=>n.message){const n={},r=[];for(const a of this.issues)if(a.path.length>0){const i=a.path[0];n[i]=n[i]||[],n[i].push(t(a))}else r.push(t(a));return{formErrors:r,fieldErrors:n}}get formErrors(){return this.flatten()}}hi.create=e=>new hi(e);const Yv=(e,t)=>{let n;switch(e.code){case Ue.invalid_type:e.received===Ye.undefined?n="Required":n=`Expected ${e.expected}, received ${e.received}`;break;case Ue.invalid_literal:n=`Invalid literal value, expected ${JSON.stringify(e.expected,Bt.jsonStringifyReplacer)}`;break;case Ue.unrecognized_keys:n=`Unrecognized key(s) in object: ${Bt.joinValues(e.keys,", ")}`;break;case Ue.invalid_union:n="Invalid input";break;case Ue.invalid_union_discriminator:n=`Invalid discriminator value. Expected ${Bt.joinValues(e.options)}`;break;case Ue.invalid_enum_value:n=`Invalid enum value. Expected ${Bt.joinValues(e.options)}, received '${e.received}'`;break;case Ue.invalid_arguments:n="Invalid function arguments";break;case Ue.invalid_return_type:n="Invalid function return type";break;case Ue.invalid_date:n="Invalid date";break;case Ue.invalid_string:typeof e.validation=="object"?"includes"in e.validation?(n=`Invalid input: must include "${e.validation.includes}"`,typeof e.validation.position=="number"&&(n=`${n} at one or more positions greater than or equal to ${e.validation.position}`)):"startsWith"in e.validation?n=`Invalid input: must start with "${e.validation.startsWith}"`:"endsWith"in e.validation?n=`Invalid input: must end with "${e.validation.endsWith}"`:Bt.assertNever(e.validation):e.validation!=="regex"?n=`Invalid ${e.validation}`:n="Invalid";break;case Ue.too_small:e.type==="array"?n=`Array must contain ${e.exact?"exactly":e.inclusive?"at least":"more than"} ${e.minimum} element(s)`:e.type==="string"?n=`String must contain ${e.exact?"exactly":e.inclusive?"at least":"over"} ${e.minimum} character(s)`:e.type==="number"?n=`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:e.type==="bigint"?n=`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:e.type==="date"?n=`Date must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(e.minimum))}`:n="Invalid input";break;case Ue.too_big:e.type==="array"?n=`Array must contain ${e.exact?"exactly":e.inclusive?"at most":"less than"} ${e.maximum} element(s)`:e.type==="string"?n=`String must contain ${e.exact?"exactly":e.inclusive?"at most":"under"} ${e.maximum} character(s)`:e.type==="number"?n=`Number must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:e.type==="bigint"?n=`BigInt must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:e.type==="date"?n=`Date must be ${e.exact?"exactly":e.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(e.maximum))}`:n="Invalid input";break;case Ue.custom:n="Invalid input";break;case Ue.invalid_intersection_types:n="Intersection results could not be merged";break;case Ue.not_multiple_of:n=`Number must be a multiple of ${e.multipleOf}`;break;case Ue.not_finite:n="Number must be finite";break;default:n=t.defaultError,Bt.assertNever(e)}return{message:n}};let aee=Yv;function see(){return aee}const iee=e=>{const{data:t,path:n,errorMaps:r,issueData:a}=e,i=[...n,...a.path||[]],l={...a,path:i};if(a.message!==void 0)return{...a,path:i,message:a.message};let u="";const d=r.filter(h=>!!h).slice().reverse();for(const h of d)u=h(l,{data:t,defaultError:u}).message;return{...a,path:i,message:u}};function Ze(e,t){const n=see(),r=iee({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,n,n===Yv?void 0:Yv].filter(a=>!!a)});e.common.issues.push(r)}class Mr{constructor(){this.value="valid"}dirty(){this.value==="valid"&&(this.value="dirty")}abort(){this.value!=="aborted"&&(this.value="aborted")}static mergeArray(t,n){const r=[];for(const a of n){if(a.status==="aborted")return gt;a.status==="dirty"&&t.dirty(),r.push(a.value)}return{status:t.value,value:r}}static async mergeObjectAsync(t,n){const r=[];for(const a of n){const i=await a.key,l=await a.value;r.push({key:i,value:l})}return Mr.mergeObjectSync(t,r)}static mergeObjectSync(t,n){const r={};for(const a of n){const{key:i,value:l}=a;if(i.status==="aborted"||l.status==="aborted")return gt;i.status==="dirty"&&t.dirty(),l.status==="dirty"&&t.dirty(),i.value!=="__proto__"&&(typeof l.value<"u"||a.alwaysSet)&&(r[i.value]=l.value)}return{status:t.value,value:r}}}const gt=Object.freeze({status:"aborted"}),nd=e=>({status:"dirty",value:e}),La=e=>({status:"valid",value:e}),x5=e=>e.status==="aborted",_5=e=>e.status==="dirty",Tu=e=>e.status==="valid",Eh=e=>typeof Promise<"u"&&e instanceof Promise;var nt;(function(e){e.errToObj=t=>typeof t=="string"?{message:t}:t||{},e.toString=t=>typeof t=="string"?t:t?.message})(nt||(nt={}));class Rs{constructor(t,n,r,a){this._cachedPath=[],this.parent=t,this.data=n,this._path=r,this._key=a}get path(){return this._cachedPath.length||(Array.isArray(this._key)?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}}const T5=(e,t)=>{if(Tu(t))return{success:!0,data:t.value};if(!e.common.issues.length)throw new Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;const n=new hi(e.common.issues);return this._error=n,this._error}}};function wt(e){if(!e)return{};const{errorMap:t,invalid_type_error:n,required_error:r,description:a}=e;if(t&&(n||r))throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);return t?{errorMap:t,description:a}:{errorMap:(l,u)=>{const{message:d}=e;return l.code==="invalid_enum_value"?{message:d??u.defaultError}:typeof u.data>"u"?{message:d??r??u.defaultError}:l.code!=="invalid_type"?{message:u.defaultError}:{message:d??n??u.defaultError}},description:a}}class It{get description(){return this._def.description}_getType(t){return Xi(t.data)}_getOrReturnCtx(t,n){return n||{common:t.parent.common,data:t.data,parsedType:Xi(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}_processInputParams(t){return{status:new Mr,ctx:{common:t.parent.common,data:t.data,parsedType:Xi(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}}_parseSync(t){const n=this._parse(t);if(Eh(n))throw new Error("Synchronous parse encountered promise.");return n}_parseAsync(t){const n=this._parse(t);return Promise.resolve(n)}parse(t,n){const r=this.safeParse(t,n);if(r.success)return r.data;throw r.error}safeParse(t,n){const r={common:{issues:[],async:n?.async??!1,contextualErrorMap:n?.errorMap},path:n?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:Xi(t)},a=this._parseSync({data:t,path:r.path,parent:r});return T5(r,a)}"~validate"(t){const n={common:{issues:[],async:!!this["~standard"].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:Xi(t)};if(!this["~standard"].async)try{const r=this._parseSync({data:t,path:[],parent:n});return Tu(r)?{value:r.value}:{issues:n.common.issues}}catch(r){r?.message?.toLowerCase()?.includes("encountered")&&(this["~standard"].async=!0),n.common={issues:[],async:!0}}return this._parseAsync({data:t,path:[],parent:n}).then(r=>Tu(r)?{value:r.value}:{issues:n.common.issues})}async parseAsync(t,n){const r=await this.safeParseAsync(t,n);if(r.success)return r.data;throw r.error}async safeParseAsync(t,n){const r={common:{issues:[],contextualErrorMap:n?.errorMap,async:!0},path:n?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:Xi(t)},a=this._parse({data:t,path:r.path,parent:r}),i=await(Eh(a)?a:Promise.resolve(a));return T5(r,i)}refine(t,n){const r=a=>typeof n=="string"||typeof n>"u"?{message:n}:typeof n=="function"?n(a):n;return this._refinement((a,i)=>{const l=t(a),u=()=>i.addIssue({code:Ue.custom,...r(a)});return typeof Promise<"u"&&l instanceof Promise?l.then(d=>d?!0:(u(),!1)):l?!0:(u(),!1)})}refinement(t,n){return this._refinement((r,a)=>t(r)?!0:(a.addIssue(typeof n=="function"?n(r,a):n),!1))}_refinement(t){return new Wo({schema:this,typeName:vt.ZodEffects,effect:{type:"refinement",refinement:t}})}superRefine(t){return this._refinement(t)}constructor(t){this.spa=this.safeParseAsync,this._def=t,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this),this["~standard"]={version:1,vendor:"zod",validate:n=>this["~validate"](n)}}optional(){return oi.create(this,this._def)}nullable(){return Jo.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return Ss.create(this)}promise(){return wh.create(this,this._def)}or(t){return _h.create([this,t],this._def)}and(t){return Th.create(this,t,this._def)}transform(t){return new Wo({...wt(this._def),schema:this,typeName:vt.ZodEffects,effect:{type:"transform",transform:t}})}default(t){const n=typeof t=="function"?t:()=>t;return new Ch({...wt(this._def),innerType:this,defaultValue:n,typeName:vt.ZodDefault})}brand(){return new wR({typeName:vt.ZodBranded,type:this,...wt(this._def)})}catch(t){const n=typeof t=="function"?t:()=>t;return new Rh({...wt(this._def),innerType:this,catchValue:n,typeName:vt.ZodCatch})}describe(t){const n=this.constructor;return new n({...this._def,description:t})}pipe(t){return b6.create(this,t)}readonly(){return Oh.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}const oee=/^c[^\s-]{8,}$/i,lee=/^[0-9a-z]+$/,uee=/^[0-9A-HJKMNP-TV-Z]{26}$/i,cee=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,dee=/^[a-z0-9_-]{21}$/i,fee=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,hee=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,mee=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,pee="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";let J2;const gee=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,vee=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/,yee=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/,bee=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,Eee=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,xee=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,TR="((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))",_ee=new RegExp(`^${TR}$`);function AR(e){let t="[0-5]\\d";e.precision?t=`${t}\\.\\d{${e.precision}}`:e.precision==null&&(t=`${t}(\\.\\d+)?`);const n=e.precision?"+":"?";return`([01]\\d|2[0-3]):[0-5]\\d(:${t})${n}`}function Tee(e){return new RegExp(`^${AR(e)}$`)}function Aee(e){let t=`${TR}T${AR(e)}`;const n=[];return n.push(e.local?"Z?":"Z"),e.offset&&n.push("([+-]\\d{2}:?\\d{2})"),t=`${t}(${n.join("|")})`,new RegExp(`^${t}$`)}function See(e,t){return!!((t==="v4"||!t)&&gee.test(e)||(t==="v6"||!t)&&yee.test(e))}function wee(e,t){if(!fee.test(e))return!1;try{const[n]=e.split(".");if(!n)return!1;const r=n.replace(/-/g,"+").replace(/_/g,"/").padEnd(n.length+(4-n.length%4)%4,"="),a=JSON.parse(atob(r));return!(typeof a!="object"||a===null||"typ"in a&&a?.typ!=="JWT"||!a.alg||t&&a.alg!==t)}catch{return!1}}function Cee(e,t){return!!((t==="v4"||!t)&&vee.test(e)||(t==="v6"||!t)&&bee.test(e))}class ai extends It{_parse(t){if(this._def.coerce&&(t.data=String(t.data)),this._getType(t)!==Ye.string){const i=this._getOrReturnCtx(t);return Ze(i,{code:Ue.invalid_type,expected:Ye.string,received:i.parsedType}),gt}const r=new Mr;let a;for(const i of this._def.checks)if(i.kind==="min")t.data.length<i.value&&(a=this._getOrReturnCtx(t,a),Ze(a,{code:Ue.too_small,minimum:i.value,type:"string",inclusive:!0,exact:!1,message:i.message}),r.dirty());else if(i.kind==="max")t.data.length>i.value&&(a=this._getOrReturnCtx(t,a),Ze(a,{code:Ue.too_big,maximum:i.value,type:"string",inclusive:!0,exact:!1,message:i.message}),r.dirty());else if(i.kind==="length"){const l=t.data.length>i.value,u=t.data.length<i.value;(l||u)&&(a=this._getOrReturnCtx(t,a),l?Ze(a,{code:Ue.too_big,maximum:i.value,type:"string",inclusive:!0,exact:!0,message:i.message}):u&&Ze(a,{code:Ue.too_small,minimum:i.value,type:"string",inclusive:!0,exact:!0,message:i.message}),r.dirty())}else if(i.kind==="email")mee.test(t.data)||(a=this._getOrReturnCtx(t,a),Ze(a,{validation:"email",code:Ue.invalid_string,message:i.message}),r.dirty());else if(i.kind==="emoji")J2||(J2=new RegExp(pee,"u")),J2.test(t.data)||(a=this._getOrReturnCtx(t,a),Ze(a,{validation:"emoji",code:Ue.invalid_string,message:i.message}),r.dirty());else if(i.kind==="uuid")cee.test(t.data)||(a=this._getOrReturnCtx(t,a),Ze(a,{validation:"uuid",code:Ue.invalid_string,message:i.message}),r.dirty());else if(i.kind==="nanoid")dee.test(t.data)||(a=this._getOrReturnCtx(t,a),Ze(a,{validation:"nanoid",code:Ue.invalid_string,message:i.message}),r.dirty());else if(i.kind==="cuid")oee.test(t.data)||(a=this._getOrReturnCtx(t,a),Ze(a,{validation:"cuid",code:Ue.invalid_string,message:i.message}),r.dirty());else if(i.kind==="cuid2")lee.test(t.data)||(a=this._getOrReturnCtx(t,a),Ze(a,{validation:"cuid2",code:Ue.invalid_string,message:i.message}),r.dirty());else if(i.kind==="ulid")uee.test(t.data)||(a=this._getOrReturnCtx(t,a),Ze(a,{validation:"ulid",code:Ue.invalid_string,message:i.message}),r.dirty());else if(i.kind==="url")try{new URL(t.data)}catch{a=this._getOrReturnCtx(t,a),Ze(a,{validation:"url",code:Ue.invalid_string,message:i.message}),r.dirty()}else i.kind==="regex"?(i.regex.lastIndex=0,i.regex.test(t.data)||(a=this._getOrReturnCtx(t,a),Ze(a,{validation:"regex",code:Ue.invalid_string,message:i.message}),r.dirty())):i.kind==="trim"?t.data=t.data.trim():i.kind==="includes"?t.data.includes(i.value,i.position)||(a=this._getOrReturnCtx(t,a),Ze(a,{code:Ue.invalid_string,validation:{includes:i.value,position:i.position},message:i.message}),r.dirty()):i.kind==="toLowerCase"?t.data=t.data.toLowerCase():i.kind==="toUpperCase"?t.data=t.data.toUpperCase():i.kind==="startsWith"?t.data.startsWith(i.value)||(a=this._getOrReturnCtx(t,a),Ze(a,{code:Ue.invalid_string,validation:{startsWith:i.value},message:i.message}),r.dirty()):i.kind==="endsWith"?t.data.endsWith(i.value)||(a=this._getOrReturnCtx(t,a),Ze(a,{code:Ue.invalid_string,validation:{endsWith:i.value},message:i.message}),r.dirty()):i.kind==="datetime"?Aee(i).test(t.data)||(a=this._getOrReturnCtx(t,a),Ze(a,{code:Ue.invalid_string,validation:"datetime",message:i.message}),r.dirty()):i.kind==="date"?_ee.test(t.data)||(a=this._getOrReturnCtx(t,a),Ze(a,{code:Ue.invalid_string,validation:"date",message:i.message}),r.dirty()):i.kind==="time"?Tee(i).test(t.data)||(a=this._getOrReturnCtx(t,a),Ze(a,{code:Ue.invalid_string,validation:"time",message:i.message}),r.dirty()):i.kind==="duration"?hee.test(t.data)||(a=this._getOrReturnCtx(t,a),Ze(a,{validation:"duration",code:Ue.invalid_string,message:i.message}),r.dirty()):i.kind==="ip"?See(t.data,i.version)||(a=this._getOrReturnCtx(t,a),Ze(a,{validation:"ip",code:Ue.invalid_string,message:i.message}),r.dirty()):i.kind==="jwt"?wee(t.data,i.alg)||(a=this._getOrReturnCtx(t,a),Ze(a,{validation:"jwt",code:Ue.invalid_string,message:i.message}),r.dirty()):i.kind==="cidr"?Cee(t.data,i.version)||(a=this._getOrReturnCtx(t,a),Ze(a,{validation:"cidr",code:Ue.invalid_string,message:i.message}),r.dirty()):i.kind==="base64"?Eee.test(t.data)||(a=this._getOrReturnCtx(t,a),Ze(a,{validation:"base64",code:Ue.invalid_string,message:i.message}),r.dirty()):i.kind==="base64url"?xee.test(t.data)||(a=this._getOrReturnCtx(t,a),Ze(a,{validation:"base64url",code:Ue.invalid_string,message:i.message}),r.dirty()):Bt.assertNever(i);return{status:r.value,value:t.data}}_regex(t,n,r){return this.refinement(a=>t.test(a),{validation:n,code:Ue.invalid_string,...nt.errToObj(r)})}_addCheck(t){return new ai({...this._def,checks:[...this._def.checks,t]})}email(t){return this._addCheck({kind:"email",...nt.errToObj(t)})}url(t){return this._addCheck({kind:"url",...nt.errToObj(t)})}emoji(t){return this._addCheck({kind:"emoji",...nt.errToObj(t)})}uuid(t){return this._addCheck({kind:"uuid",...nt.errToObj(t)})}nanoid(t){return this._addCheck({kind:"nanoid",...nt.errToObj(t)})}cuid(t){return this._addCheck({kind:"cuid",...nt.errToObj(t)})}cuid2(t){return this._addCheck({kind:"cuid2",...nt.errToObj(t)})}ulid(t){return this._addCheck({kind:"ulid",...nt.errToObj(t)})}base64(t){return this._addCheck({kind:"base64",...nt.errToObj(t)})}base64url(t){return this._addCheck({kind:"base64url",...nt.errToObj(t)})}jwt(t){return this._addCheck({kind:"jwt",...nt.errToObj(t)})}ip(t){return this._addCheck({kind:"ip",...nt.errToObj(t)})}cidr(t){return this._addCheck({kind:"cidr",...nt.errToObj(t)})}datetime(t){return typeof t=="string"?this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:t}):this._addCheck({kind:"datetime",precision:typeof t?.precision>"u"?null:t?.precision,offset:t?.offset??!1,local:t?.local??!1,...nt.errToObj(t?.message)})}date(t){return this._addCheck({kind:"date",message:t})}time(t){return typeof t=="string"?this._addCheck({kind:"time",precision:null,message:t}):this._addCheck({kind:"time",precision:typeof t?.precision>"u"?null:t?.precision,...nt.errToObj(t?.message)})}duration(t){return this._addCheck({kind:"duration",...nt.errToObj(t)})}regex(t,n){return this._addCheck({kind:"regex",regex:t,...nt.errToObj(n)})}includes(t,n){return this._addCheck({kind:"includes",value:t,position:n?.position,...nt.errToObj(n?.message)})}startsWith(t,n){return this._addCheck({kind:"startsWith",value:t,...nt.errToObj(n)})}endsWith(t,n){return this._addCheck({kind:"endsWith",value:t,...nt.errToObj(n)})}min(t,n){return this._addCheck({kind:"min",value:t,...nt.errToObj(n)})}max(t,n){return this._addCheck({kind:"max",value:t,...nt.errToObj(n)})}length(t,n){return this._addCheck({kind:"length",value:t,...nt.errToObj(n)})}nonempty(t){return this.min(1,nt.errToObj(t))}trim(){return new ai({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new ai({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new ai({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(t=>t.kind==="datetime")}get isDate(){return!!this._def.checks.find(t=>t.kind==="date")}get isTime(){return!!this._def.checks.find(t=>t.kind==="time")}get isDuration(){return!!this._def.checks.find(t=>t.kind==="duration")}get isEmail(){return!!this._def.checks.find(t=>t.kind==="email")}get isURL(){return!!this._def.checks.find(t=>t.kind==="url")}get isEmoji(){return!!this._def.checks.find(t=>t.kind==="emoji")}get isUUID(){return!!this._def.checks.find(t=>t.kind==="uuid")}get isNANOID(){return!!this._def.checks.find(t=>t.kind==="nanoid")}get isCUID(){return!!this._def.checks.find(t=>t.kind==="cuid")}get isCUID2(){return!!this._def.checks.find(t=>t.kind==="cuid2")}get isULID(){return!!this._def.checks.find(t=>t.kind==="ulid")}get isIP(){return!!this._def.checks.find(t=>t.kind==="ip")}get isCIDR(){return!!this._def.checks.find(t=>t.kind==="cidr")}get isBase64(){return!!this._def.checks.find(t=>t.kind==="base64")}get isBase64url(){return!!this._def.checks.find(t=>t.kind==="base64url")}get minLength(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t}get maxLength(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.value<t)&&(t=n.value);return t}}ai.create=e=>new ai({checks:[],typeName:vt.ZodString,coerce:e?.coerce??!1,...wt(e)});function Ree(e,t){const n=(e.toString().split(".")[1]||"").length,r=(t.toString().split(".")[1]||"").length,a=n>r?n:r,i=Number.parseInt(e.toFixed(a).replace(".","")),l=Number.parseInt(t.toFixed(a).replace(".",""));return i%l/10**a}class Au extends It{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(t){if(this._def.coerce&&(t.data=Number(t.data)),this._getType(t)!==Ye.number){const i=this._getOrReturnCtx(t);return Ze(i,{code:Ue.invalid_type,expected:Ye.number,received:i.parsedType}),gt}let r;const a=new Mr;for(const i of this._def.checks)i.kind==="int"?Bt.isInteger(t.data)||(r=this._getOrReturnCtx(t,r),Ze(r,{code:Ue.invalid_type,expected:"integer",received:"float",message:i.message}),a.dirty()):i.kind==="min"?(i.inclusive?t.data<i.value:t.data<=i.value)&&(r=this._getOrReturnCtx(t,r),Ze(r,{code:Ue.too_small,minimum:i.value,type:"number",inclusive:i.inclusive,exact:!1,message:i.message}),a.dirty()):i.kind==="max"?(i.inclusive?t.data>i.value:t.data>=i.value)&&(r=this._getOrReturnCtx(t,r),Ze(r,{code:Ue.too_big,maximum:i.value,type:"number",inclusive:i.inclusive,exact:!1,message:i.message}),a.dirty()):i.kind==="multipleOf"?Ree(t.data,i.value)!==0&&(r=this._getOrReturnCtx(t,r),Ze(r,{code:Ue.not_multiple_of,multipleOf:i.value,message:i.message}),a.dirty()):i.kind==="finite"?Number.isFinite(t.data)||(r=this._getOrReturnCtx(t,r),Ze(r,{code:Ue.not_finite,message:i.message}),a.dirty()):Bt.assertNever(i);return{status:a.value,value:t.data}}gte(t,n){return this.setLimit("min",t,!0,nt.toString(n))}gt(t,n){return this.setLimit("min",t,!1,nt.toString(n))}lte(t,n){return this.setLimit("max",t,!0,nt.toString(n))}lt(t,n){return this.setLimit("max",t,!1,nt.toString(n))}setLimit(t,n,r,a){return new Au({...this._def,checks:[...this._def.checks,{kind:t,value:n,inclusive:r,message:nt.toString(a)}]})}_addCheck(t){return new Au({...this._def,checks:[...this._def.checks,t]})}int(t){return this._addCheck({kind:"int",message:nt.toString(t)})}positive(t){return this._addCheck({kind:"min",value:0,inclusive:!1,message:nt.toString(t)})}negative(t){return this._addCheck({kind:"max",value:0,inclusive:!1,message:nt.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:0,inclusive:!0,message:nt.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:0,inclusive:!0,message:nt.toString(t)})}multipleOf(t,n){return this._addCheck({kind:"multipleOf",value:t,message:nt.toString(n)})}finite(t){return this._addCheck({kind:"finite",message:nt.toString(t)})}safe(t){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:nt.toString(t)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:nt.toString(t)})}get minValue(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t}get maxValue(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.value<t)&&(t=n.value);return t}get isInt(){return!!this._def.checks.find(t=>t.kind==="int"||t.kind==="multipleOf"&&Bt.isInteger(t.value))}get isFinite(){let t=null,n=null;for(const r of this._def.checks){if(r.kind==="finite"||r.kind==="int"||r.kind==="multipleOf")return!0;r.kind==="min"?(n===null||r.value>n)&&(n=r.value):r.kind==="max"&&(t===null||r.value<t)&&(t=r.value)}return Number.isFinite(n)&&Number.isFinite(t)}}Au.create=e=>new Au({checks:[],typeName:vt.ZodNumber,coerce:e?.coerce||!1,...wt(e)});class Pd extends It{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(t){if(this._def.coerce)try{t.data=BigInt(t.data)}catch{return this._getInvalidInput(t)}if(this._getType(t)!==Ye.bigint)return this._getInvalidInput(t);let r;const a=new Mr;for(const i of this._def.checks)i.kind==="min"?(i.inclusive?t.data<i.value:t.data<=i.value)&&(r=this._getOrReturnCtx(t,r),Ze(r,{code:Ue.too_small,type:"bigint",minimum:i.value,inclusive:i.inclusive,message:i.message}),a.dirty()):i.kind==="max"?(i.inclusive?t.data>i.value:t.data>=i.value)&&(r=this._getOrReturnCtx(t,r),Ze(r,{code:Ue.too_big,type:"bigint",maximum:i.value,inclusive:i.inclusive,message:i.message}),a.dirty()):i.kind==="multipleOf"?t.data%i.value!==BigInt(0)&&(r=this._getOrReturnCtx(t,r),Ze(r,{code:Ue.not_multiple_of,multipleOf:i.value,message:i.message}),a.dirty()):Bt.assertNever(i);return{status:a.value,value:t.data}}_getInvalidInput(t){const n=this._getOrReturnCtx(t);return Ze(n,{code:Ue.invalid_type,expected:Ye.bigint,received:n.parsedType}),gt}gte(t,n){return this.setLimit("min",t,!0,nt.toString(n))}gt(t,n){return this.setLimit("min",t,!1,nt.toString(n))}lte(t,n){return this.setLimit("max",t,!0,nt.toString(n))}lt(t,n){return this.setLimit("max",t,!1,nt.toString(n))}setLimit(t,n,r,a){return new Pd({...this._def,checks:[...this._def.checks,{kind:t,value:n,inclusive:r,message:nt.toString(a)}]})}_addCheck(t){return new Pd({...this._def,checks:[...this._def.checks,t]})}positive(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:nt.toString(t)})}negative(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:nt.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:nt.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:nt.toString(t)})}multipleOf(t,n){return this._addCheck({kind:"multipleOf",value:t,message:nt.toString(n)})}get minValue(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t}get maxValue(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.value<t)&&(t=n.value);return t}}Pd.create=e=>new Pd({checks:[],typeName:vt.ZodBigInt,coerce:e?.coerce??!1,...wt(e)});class Gv extends It{_parse(t){if(this._def.coerce&&(t.data=!!t.data),this._getType(t)!==Ye.boolean){const r=this._getOrReturnCtx(t);return Ze(r,{code:Ue.invalid_type,expected:Ye.boolean,received:r.parsedType}),gt}return La(t.data)}}Gv.create=e=>new Gv({typeName:vt.ZodBoolean,coerce:e?.coerce||!1,...wt(e)});class xh extends It{_parse(t){if(this._def.coerce&&(t.data=new Date(t.data)),this._getType(t)!==Ye.date){const i=this._getOrReturnCtx(t);return Ze(i,{code:Ue.invalid_type,expected:Ye.date,received:i.parsedType}),gt}if(Number.isNaN(t.data.getTime())){const i=this._getOrReturnCtx(t);return Ze(i,{code:Ue.invalid_date}),gt}const r=new Mr;let a;for(const i of this._def.checks)i.kind==="min"?t.data.getTime()<i.value&&(a=this._getOrReturnCtx(t,a),Ze(a,{code:Ue.too_small,message:i.message,inclusive:!0,exact:!1,minimum:i.value,type:"date"}),r.dirty()):i.kind==="max"?t.data.getTime()>i.value&&(a=this._getOrReturnCtx(t,a),Ze(a,{code:Ue.too_big,message:i.message,inclusive:!0,exact:!1,maximum:i.value,type:"date"}),r.dirty()):Bt.assertNever(i);return{status:r.value,value:new Date(t.data.getTime())}}_addCheck(t){return new xh({...this._def,checks:[...this._def.checks,t]})}min(t,n){return this._addCheck({kind:"min",value:t.getTime(),message:nt.toString(n)})}max(t,n){return this._addCheck({kind:"max",value:t.getTime(),message:nt.toString(n)})}get minDate(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t!=null?new Date(t):null}get maxDate(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.value<t)&&(t=n.value);return t!=null?new Date(t):null}}xh.create=e=>new xh({checks:[],coerce:e?.coerce||!1,typeName:vt.ZodDate,...wt(e)});class A5 extends It{_parse(t){if(this._getType(t)!==Ye.symbol){const r=this._getOrReturnCtx(t);return Ze(r,{code:Ue.invalid_type,expected:Ye.symbol,received:r.parsedType}),gt}return La(t.data)}}A5.create=e=>new A5({typeName:vt.ZodSymbol,...wt(e)});class Kv extends It{_parse(t){if(this._getType(t)!==Ye.undefined){const r=this._getOrReturnCtx(t);return Ze(r,{code:Ue.invalid_type,expected:Ye.undefined,received:r.parsedType}),gt}return La(t.data)}}Kv.create=e=>new Kv({typeName:vt.ZodUndefined,...wt(e)});class Xv extends It{_parse(t){if(this._getType(t)!==Ye.null){const r=this._getOrReturnCtx(t);return Ze(r,{code:Ue.invalid_type,expected:Ye.null,received:r.parsedType}),gt}return La(t.data)}}Xv.create=e=>new Xv({typeName:vt.ZodNull,...wt(e)});class Wv extends It{constructor(){super(...arguments),this._any=!0}_parse(t){return La(t.data)}}Wv.create=e=>new Wv({typeName:vt.ZodAny,...wt(e)});class Jv extends It{constructor(){super(...arguments),this._unknown=!0}_parse(t){return La(t.data)}}Jv.create=e=>new Jv({typeName:vt.ZodUnknown,...wt(e)});class co extends It{_parse(t){const n=this._getOrReturnCtx(t);return Ze(n,{code:Ue.invalid_type,expected:Ye.never,received:n.parsedType}),gt}}co.create=e=>new co({typeName:vt.ZodNever,...wt(e)});class S5 extends It{_parse(t){if(this._getType(t)!==Ye.undefined){const r=this._getOrReturnCtx(t);return Ze(r,{code:Ue.invalid_type,expected:Ye.void,received:r.parsedType}),gt}return La(t.data)}}S5.create=e=>new S5({typeName:vt.ZodVoid,...wt(e)});class Ss extends It{_parse(t){const{ctx:n,status:r}=this._processInputParams(t),a=this._def;if(n.parsedType!==Ye.array)return Ze(n,{code:Ue.invalid_type,expected:Ye.array,received:n.parsedType}),gt;if(a.exactLength!==null){const l=n.data.length>a.exactLength.value,u=n.data.length<a.exactLength.value;(l||u)&&(Ze(n,{code:l?Ue.too_big:Ue.too_small,minimum:u?a.exactLength.value:void 0,maximum:l?a.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:a.exactLength.message}),r.dirty())}if(a.minLength!==null&&n.data.length<a.minLength.value&&(Ze(n,{code:Ue.too_small,minimum:a.minLength.value,type:"array",inclusive:!0,exact:!1,message:a.minLength.message}),r.dirty()),a.maxLength!==null&&n.data.length>a.maxLength.value&&(Ze(n,{code:Ue.too_big,maximum:a.maxLength.value,type:"array",inclusive:!0,exact:!1,message:a.maxLength.message}),r.dirty()),n.common.async)return Promise.all([...n.data].map((l,u)=>a.type._parseAsync(new Rs(n,l,n.path,u)))).then(l=>Mr.mergeArray(r,l));const i=[...n.data].map((l,u)=>a.type._parseSync(new Rs(n,l,n.path,u)));return Mr.mergeArray(r,i)}get element(){return this._def.type}min(t,n){return new Ss({...this._def,minLength:{value:t,message:nt.toString(n)}})}max(t,n){return new Ss({...this._def,maxLength:{value:t,message:nt.toString(n)}})}length(t,n){return new Ss({...this._def,exactLength:{value:t,message:nt.toString(n)}})}nonempty(t){return this.min(1,t)}}Ss.create=(e,t)=>new Ss({type:e,minLength:null,maxLength:null,exactLength:null,typeName:vt.ZodArray,...wt(t)});function tu(e){if(e instanceof Xn){const t={};for(const n in e.shape){const r=e.shape[n];t[n]=oi.create(tu(r))}return new Xn({...e._def,shape:()=>t})}else return e instanceof Ss?new Ss({...e._def,type:tu(e.element)}):e instanceof oi?oi.create(tu(e.unwrap())):e instanceof Jo?Jo.create(tu(e.unwrap())):e instanceof Ko?Ko.create(e.items.map(t=>tu(t))):e}class Xn extends It{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;const t=this._def.shape(),n=Bt.objectKeys(t);return this._cached={shape:t,keys:n},this._cached}_parse(t){if(this._getType(t)!==Ye.object){const h=this._getOrReturnCtx(t);return Ze(h,{code:Ue.invalid_type,expected:Ye.object,received:h.parsedType}),gt}const{status:r,ctx:a}=this._processInputParams(t),{shape:i,keys:l}=this._getCached(),u=[];if(!(this._def.catchall instanceof co&&this._def.unknownKeys==="strip"))for(const h in a.data)l.includes(h)||u.push(h);const d=[];for(const h of l){const v=i[h],m=a.data[h];d.push({key:{status:"valid",value:h},value:v._parse(new Rs(a,m,a.path,h)),alwaysSet:h in a.data})}if(this._def.catchall instanceof co){const h=this._def.unknownKeys;if(h==="passthrough")for(const v of u)d.push({key:{status:"valid",value:v},value:{status:"valid",value:a.data[v]}});else if(h==="strict")u.length>0&&(Ze(a,{code:Ue.unrecognized_keys,keys:u}),r.dirty());else if(h!=="strip")throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{const h=this._def.catchall;for(const v of u){const m=a.data[v];d.push({key:{status:"valid",value:v},value:h._parse(new Rs(a,m,a.path,v)),alwaysSet:v in a.data})}}return a.common.async?Promise.resolve().then(async()=>{const h=[];for(const v of d){const m=await v.key,E=await v.value;h.push({key:m,value:E,alwaysSet:v.alwaysSet})}return h}).then(h=>Mr.mergeObjectSync(r,h)):Mr.mergeObjectSync(r,d)}get shape(){return this._def.shape()}strict(t){return nt.errToObj,new Xn({...this._def,unknownKeys:"strict",...t!==void 0?{errorMap:(n,r)=>{const a=this._def.errorMap?.(n,r).message??r.defaultError;return n.code==="unrecognized_keys"?{message:nt.errToObj(t).message??a}:{message:a}}}:{}})}strip(){return new Xn({...this._def,unknownKeys:"strip"})}passthrough(){return new Xn({...this._def,unknownKeys:"passthrough"})}extend(t){return new Xn({...this._def,shape:()=>({...this._def.shape(),...t})})}merge(t){return new Xn({unknownKeys:t._def.unknownKeys,catchall:t._def.catchall,shape:()=>({...this._def.shape(),...t._def.shape()}),typeName:vt.ZodObject})}setKey(t,n){return this.augment({[t]:n})}catchall(t){return new Xn({...this._def,catchall:t})}pick(t){const n={};for(const r of Bt.objectKeys(t))t[r]&&this.shape[r]&&(n[r]=this.shape[r]);return new Xn({...this._def,shape:()=>n})}omit(t){const n={};for(const r of Bt.objectKeys(this.shape))t[r]||(n[r]=this.shape[r]);return new Xn({...this._def,shape:()=>n})}deepPartial(){return tu(this)}partial(t){const n={};for(const r of Bt.objectKeys(this.shape)){const a=this.shape[r];t&&!t[r]?n[r]=a:n[r]=a.optional()}return new Xn({...this._def,shape:()=>n})}required(t){const n={};for(const r of Bt.objectKeys(this.shape))if(t&&!t[r])n[r]=this.shape[r];else{let i=this.shape[r];for(;i instanceof oi;)i=i._def.innerType;n[r]=i}return new Xn({...this._def,shape:()=>n})}keyof(){return SR(Bt.objectKeys(this.shape))}}Xn.create=(e,t)=>new Xn({shape:()=>e,unknownKeys:"strip",catchall:co.create(),typeName:vt.ZodObject,...wt(t)});Xn.strictCreate=(e,t)=>new Xn({shape:()=>e,unknownKeys:"strict",catchall:co.create(),typeName:vt.ZodObject,...wt(t)});Xn.lazycreate=(e,t)=>new Xn({shape:e,unknownKeys:"strip",catchall:co.create(),typeName:vt.ZodObject,...wt(t)});class _h extends It{_parse(t){const{ctx:n}=this._processInputParams(t),r=this._def.options;function a(i){for(const u of i)if(u.result.status==="valid")return u.result;for(const u of i)if(u.result.status==="dirty")return n.common.issues.push(...u.ctx.common.issues),u.result;const l=i.map(u=>new hi(u.ctx.common.issues));return Ze(n,{code:Ue.invalid_union,unionErrors:l}),gt}if(n.common.async)return Promise.all(r.map(async i=>{const l={...n,common:{...n.common,issues:[]},parent:null};return{result:await i._parseAsync({data:n.data,path:n.path,parent:l}),ctx:l}})).then(a);{let i;const l=[];for(const d of r){const h={...n,common:{...n.common,issues:[]},parent:null},v=d._parseSync({data:n.data,path:n.path,parent:h});if(v.status==="valid")return v;v.status==="dirty"&&!i&&(i={result:v,ctx:h}),h.common.issues.length&&l.push(h.common.issues)}if(i)return n.common.issues.push(...i.ctx.common.issues),i.result;const u=l.map(d=>new hi(d));return Ze(n,{code:Ue.invalid_union,unionErrors:u}),gt}}get options(){return this._def.options}}_h.create=(e,t)=>new _h({options:e,typeName:vt.ZodUnion,...wt(t)});const ei=e=>e instanceof t8?ei(e.schema):e instanceof Wo?ei(e.innerType()):e instanceof Sh?[e.value]:e instanceof Xo?e.options:e instanceof n8?Bt.objectValues(e.enum):e instanceof Ch?ei(e._def.innerType):e instanceof Kv?[void 0]:e instanceof Xv?[null]:e instanceof oi?[void 0,...ei(e.unwrap())]:e instanceof Jo?[null,...ei(e.unwrap())]:e instanceof wR||e instanceof Oh?ei(e.unwrap()):e instanceof Rh?ei(e._def.innerType):[];class y6 extends It{_parse(t){const{ctx:n}=this._processInputParams(t);if(n.parsedType!==Ye.object)return Ze(n,{code:Ue.invalid_type,expected:Ye.object,received:n.parsedType}),gt;const r=this.discriminator,a=n.data[r],i=this.optionsMap.get(a);return i?n.common.async?i._parseAsync({data:n.data,path:n.path,parent:n}):i._parseSync({data:n.data,path:n.path,parent:n}):(Ze(n,{code:Ue.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[r]}),gt)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(t,n,r){const a=new Map;for(const i of n){const l=ei(i.shape[t]);if(!l.length)throw new Error(`A discriminator value for key \`${t}\` could not be extracted from all schema options`);for(const u of l){if(a.has(u))throw new Error(`Discriminator property ${String(t)} has duplicate value ${String(u)}`);a.set(u,i)}}return new y6({typeName:vt.ZodDiscriminatedUnion,discriminator:t,options:n,optionsMap:a,...wt(r)})}}function e8(e,t){const n=Xi(e),r=Xi(t);if(e===t)return{valid:!0,data:e};if(n===Ye.object&&r===Ye.object){const a=Bt.objectKeys(t),i=Bt.objectKeys(e).filter(u=>a.indexOf(u)!==-1),l={...e,...t};for(const u of i){const d=e8(e[u],t[u]);if(!d.valid)return{valid:!1};l[u]=d.data}return{valid:!0,data:l}}else if(n===Ye.array&&r===Ye.array){if(e.length!==t.length)return{valid:!1};const a=[];for(let i=0;i<e.length;i++){const l=e[i],u=t[i],d=e8(l,u);if(!d.valid)return{valid:!1};a.push(d.data)}return{valid:!0,data:a}}else return n===Ye.date&&r===Ye.date&&+e==+t?{valid:!0,data:e}:{valid:!1}}class Th extends It{_parse(t){const{status:n,ctx:r}=this._processInputParams(t),a=(i,l)=>{if(x5(i)||x5(l))return gt;const u=e8(i.value,l.value);return u.valid?((_5(i)||_5(l))&&n.dirty(),{status:n.value,value:u.data}):(Ze(r,{code:Ue.invalid_intersection_types}),gt)};return r.common.async?Promise.all([this._def.left._parseAsync({data:r.data,path:r.path,parent:r}),this._def.right._parseAsync({data:r.data,path:r.path,parent:r})]).then(([i,l])=>a(i,l)):a(this._def.left._parseSync({data:r.data,path:r.path,parent:r}),this._def.right._parseSync({data:r.data,path:r.path,parent:r}))}}Th.create=(e,t,n)=>new Th({left:e,right:t,typeName:vt.ZodIntersection,...wt(n)});class Ko extends It{_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==Ye.array)return Ze(r,{code:Ue.invalid_type,expected:Ye.array,received:r.parsedType}),gt;if(r.data.length<this._def.items.length)return Ze(r,{code:Ue.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),gt;!this._def.rest&&r.data.length>this._def.items.length&&(Ze(r,{code:Ue.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),n.dirty());const i=[...r.data].map((l,u)=>{const d=this._def.items[u]||this._def.rest;return d?d._parse(new Rs(r,l,r.path,u)):null}).filter(l=>!!l);return r.common.async?Promise.all(i).then(l=>Mr.mergeArray(n,l)):Mr.mergeArray(n,i)}get items(){return this._def.items}rest(t){return new Ko({...this._def,rest:t})}}Ko.create=(e,t)=>{if(!Array.isArray(e))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new Ko({items:e,typeName:vt.ZodTuple,rest:null,...wt(t)})};class Ah extends It{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==Ye.object)return Ze(r,{code:Ue.invalid_type,expected:Ye.object,received:r.parsedType}),gt;const a=[],i=this._def.keyType,l=this._def.valueType;for(const u in r.data)a.push({key:i._parse(new Rs(r,u,r.path,u)),value:l._parse(new Rs(r,r.data[u],r.path,u)),alwaysSet:u in r.data});return r.common.async?Mr.mergeObjectAsync(n,a):Mr.mergeObjectSync(n,a)}get element(){return this._def.valueType}static create(t,n,r){return n instanceof It?new Ah({keyType:t,valueType:n,typeName:vt.ZodRecord,...wt(r)}):new Ah({keyType:ai.create(),valueType:t,typeName:vt.ZodRecord,...wt(n)})}}class w5 extends It{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==Ye.map)return Ze(r,{code:Ue.invalid_type,expected:Ye.map,received:r.parsedType}),gt;const a=this._def.keyType,i=this._def.valueType,l=[...r.data.entries()].map(([u,d],h)=>({key:a._parse(new Rs(r,u,r.path,[h,"key"])),value:i._parse(new Rs(r,d,r.path,[h,"value"]))}));if(r.common.async){const u=new Map;return Promise.resolve().then(async()=>{for(const d of l){const h=await d.key,v=await d.value;if(h.status==="aborted"||v.status==="aborted")return gt;(h.status==="dirty"||v.status==="dirty")&&n.dirty(),u.set(h.value,v.value)}return{status:n.value,value:u}})}else{const u=new Map;for(const d of l){const h=d.key,v=d.value;if(h.status==="aborted"||v.status==="aborted")return gt;(h.status==="dirty"||v.status==="dirty")&&n.dirty(),u.set(h.value,v.value)}return{status:n.value,value:u}}}}w5.create=(e,t,n)=>new w5({valueType:t,keyType:e,typeName:vt.ZodMap,...wt(n)});class kd extends It{_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==Ye.set)return Ze(r,{code:Ue.invalid_type,expected:Ye.set,received:r.parsedType}),gt;const a=this._def;a.minSize!==null&&r.data.size<a.minSize.value&&(Ze(r,{code:Ue.too_small,minimum:a.minSize.value,type:"set",inclusive:!0,exact:!1,message:a.minSize.message}),n.dirty()),a.maxSize!==null&&r.data.size>a.maxSize.value&&(Ze(r,{code:Ue.too_big,maximum:a.maxSize.value,type:"set",inclusive:!0,exact:!1,message:a.maxSize.message}),n.dirty());const i=this._def.valueType;function l(d){const h=new Set;for(const v of d){if(v.status==="aborted")return gt;v.status==="dirty"&&n.dirty(),h.add(v.value)}return{status:n.value,value:h}}const u=[...r.data.values()].map((d,h)=>i._parse(new Rs(r,d,r.path,h)));return r.common.async?Promise.all(u).then(d=>l(d)):l(u)}min(t,n){return new kd({...this._def,minSize:{value:t,message:nt.toString(n)}})}max(t,n){return new kd({...this._def,maxSize:{value:t,message:nt.toString(n)}})}size(t,n){return this.min(t,n).max(t,n)}nonempty(t){return this.min(1,t)}}kd.create=(e,t)=>new kd({valueType:e,minSize:null,maxSize:null,typeName:vt.ZodSet,...wt(t)});class t8 extends It{get schema(){return this._def.getter()}_parse(t){const{ctx:n}=this._processInputParams(t);return this._def.getter()._parse({data:n.data,path:n.path,parent:n})}}t8.create=(e,t)=>new t8({getter:e,typeName:vt.ZodLazy,...wt(t)});class Sh extends It{_parse(t){if(t.data!==this._def.value){const n=this._getOrReturnCtx(t);return Ze(n,{received:n.data,code:Ue.invalid_literal,expected:this._def.value}),gt}return{status:"valid",value:t.data}}get value(){return this._def.value}}Sh.create=(e,t)=>new Sh({value:e,typeName:vt.ZodLiteral,...wt(t)});function SR(e,t){return new Xo({values:e,typeName:vt.ZodEnum,...wt(t)})}class Xo extends It{_parse(t){if(typeof t.data!="string"){const n=this._getOrReturnCtx(t),r=this._def.values;return Ze(n,{expected:Bt.joinValues(r),received:n.parsedType,code:Ue.invalid_type}),gt}if(this._cache||(this._cache=new Set(this._def.values)),!this._cache.has(t.data)){const n=this._getOrReturnCtx(t),r=this._def.values;return Ze(n,{received:n.data,code:Ue.invalid_enum_value,options:r}),gt}return La(t.data)}get options(){return this._def.values}get enum(){const t={};for(const n of this._def.values)t[n]=n;return t}get Values(){const t={};for(const n of this._def.values)t[n]=n;return t}get Enum(){const t={};for(const n of this._def.values)t[n]=n;return t}extract(t,n=this._def){return Xo.create(t,{...this._def,...n})}exclude(t,n=this._def){return Xo.create(this.options.filter(r=>!t.includes(r)),{...this._def,...n})}}Xo.create=SR;class n8 extends It{_parse(t){const n=Bt.getValidEnumValues(this._def.values),r=this._getOrReturnCtx(t);if(r.parsedType!==Ye.string&&r.parsedType!==Ye.number){const a=Bt.objectValues(n);return Ze(r,{expected:Bt.joinValues(a),received:r.parsedType,code:Ue.invalid_type}),gt}if(this._cache||(this._cache=new Set(Bt.getValidEnumValues(this._def.values))),!this._cache.has(t.data)){const a=Bt.objectValues(n);return Ze(r,{received:r.data,code:Ue.invalid_enum_value,options:a}),gt}return La(t.data)}get enum(){return this._def.values}}n8.create=(e,t)=>new n8({values:e,typeName:vt.ZodNativeEnum,...wt(t)});class wh extends It{unwrap(){return this._def.type}_parse(t){const{ctx:n}=this._processInputParams(t);if(n.parsedType!==Ye.promise&&n.common.async===!1)return Ze(n,{code:Ue.invalid_type,expected:Ye.promise,received:n.parsedType}),gt;const r=n.parsedType===Ye.promise?n.data:Promise.resolve(n.data);return La(r.then(a=>this._def.type.parseAsync(a,{path:n.path,errorMap:n.common.contextualErrorMap})))}}wh.create=(e,t)=>new wh({type:e,typeName:vt.ZodPromise,...wt(t)});class Wo extends It{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===vt.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(t){const{status:n,ctx:r}=this._processInputParams(t),a=this._def.effect||null,i={addIssue:l=>{Ze(r,l),l.fatal?n.abort():n.dirty()},get path(){return r.path}};if(i.addIssue=i.addIssue.bind(i),a.type==="preprocess"){const l=a.transform(r.data,i);if(r.common.async)return Promise.resolve(l).then(async u=>{if(n.value==="aborted")return gt;const d=await this._def.schema._parseAsync({data:u,path:r.path,parent:r});return d.status==="aborted"?gt:d.status==="dirty"||n.value==="dirty"?nd(d.value):d});{if(n.value==="aborted")return gt;const u=this._def.schema._parseSync({data:l,path:r.path,parent:r});return u.status==="aborted"?gt:u.status==="dirty"||n.value==="dirty"?nd(u.value):u}}if(a.type==="refinement"){const l=u=>{const d=a.refinement(u,i);if(r.common.async)return Promise.resolve(d);if(d instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return u};if(r.common.async===!1){const u=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});return u.status==="aborted"?gt:(u.status==="dirty"&&n.dirty(),l(u.value),{status:n.value,value:u.value})}else return this._def.schema._parseAsync({data:r.data,path:r.path,parent:r}).then(u=>u.status==="aborted"?gt:(u.status==="dirty"&&n.dirty(),l(u.value).then(()=>({status:n.value,value:u.value}))))}if(a.type==="transform")if(r.common.async===!1){const l=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});if(!Tu(l))return gt;const u=a.transform(l.value,i);if(u instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:n.value,value:u}}else return this._def.schema._parseAsync({data:r.data,path:r.path,parent:r}).then(l=>Tu(l)?Promise.resolve(a.transform(l.value,i)).then(u=>({status:n.value,value:u})):gt);Bt.assertNever(a)}}Wo.create=(e,t,n)=>new Wo({schema:e,typeName:vt.ZodEffects,effect:t,...wt(n)});Wo.createWithPreprocess=(e,t,n)=>new Wo({schema:t,effect:{type:"preprocess",transform:e},typeName:vt.ZodEffects,...wt(n)});class oi extends It{_parse(t){return this._getType(t)===Ye.undefined?La(void 0):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}}oi.create=(e,t)=>new oi({innerType:e,typeName:vt.ZodOptional,...wt(t)});class Jo extends It{_parse(t){return this._getType(t)===Ye.null?La(null):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}}Jo.create=(e,t)=>new Jo({innerType:e,typeName:vt.ZodNullable,...wt(t)});class Ch extends It{_parse(t){const{ctx:n}=this._processInputParams(t);let r=n.data;return n.parsedType===Ye.undefined&&(r=this._def.defaultValue()),this._def.innerType._parse({data:r,path:n.path,parent:n})}removeDefault(){return this._def.innerType}}Ch.create=(e,t)=>new Ch({innerType:e,typeName:vt.ZodDefault,defaultValue:typeof t.default=="function"?t.default:()=>t.default,...wt(t)});class Rh extends It{_parse(t){const{ctx:n}=this._processInputParams(t),r={...n,common:{...n.common,issues:[]}},a=this._def.innerType._parse({data:r.data,path:r.path,parent:{...r}});return Eh(a)?a.then(i=>({status:"valid",value:i.status==="valid"?i.value:this._def.catchValue({get error(){return new hi(r.common.issues)},input:r.data})})):{status:"valid",value:a.status==="valid"?a.value:this._def.catchValue({get error(){return new hi(r.common.issues)},input:r.data})}}removeCatch(){return this._def.innerType}}Rh.create=(e,t)=>new Rh({innerType:e,typeName:vt.ZodCatch,catchValue:typeof t.catch=="function"?t.catch:()=>t.catch,...wt(t)});class C5 extends It{_parse(t){if(this._getType(t)!==Ye.nan){const r=this._getOrReturnCtx(t);return Ze(r,{code:Ue.invalid_type,expected:Ye.nan,received:r.parsedType}),gt}return{status:"valid",value:t.data}}}C5.create=e=>new C5({typeName:vt.ZodNaN,...wt(e)});class wR extends It{_parse(t){const{ctx:n}=this._processInputParams(t),r=n.data;return this._def.type._parse({data:r,path:n.path,parent:n})}unwrap(){return this._def.type}}class b6 extends It{_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.common.async)return(async()=>{const i=await this._def.in._parseAsync({data:r.data,path:r.path,parent:r});return i.status==="aborted"?gt:i.status==="dirty"?(n.dirty(),nd(i.value)):this._def.out._parseAsync({data:i.value,path:r.path,parent:r})})();{const a=this._def.in._parseSync({data:r.data,path:r.path,parent:r});return a.status==="aborted"?gt:a.status==="dirty"?(n.dirty(),{status:"dirty",value:a.value}):this._def.out._parseSync({data:a.value,path:r.path,parent:r})}}static create(t,n){return new b6({in:t,out:n,typeName:vt.ZodPipeline})}}class Oh extends It{_parse(t){const n=this._def.innerType._parse(t),r=a=>(Tu(a)&&(a.value=Object.freeze(a.value)),a);return Eh(n)?n.then(a=>r(a)):r(n)}unwrap(){return this._def.innerType}}Oh.create=(e,t)=>new Oh({innerType:e,typeName:vt.ZodReadonly,...wt(t)});var vt;(function(e){e.ZodString="ZodString",e.ZodNumber="ZodNumber",e.ZodNaN="ZodNaN",e.ZodBigInt="ZodBigInt",e.ZodBoolean="ZodBoolean",e.ZodDate="ZodDate",e.ZodSymbol="ZodSymbol",e.ZodUndefined="ZodUndefined",e.ZodNull="ZodNull",e.ZodAny="ZodAny",e.ZodUnknown="ZodUnknown",e.ZodNever="ZodNever",e.ZodVoid="ZodVoid",e.ZodArray="ZodArray",e.ZodObject="ZodObject",e.ZodUnion="ZodUnion",e.ZodDiscriminatedUnion="ZodDiscriminatedUnion",e.ZodIntersection="ZodIntersection",e.ZodTuple="ZodTuple",e.ZodRecord="ZodRecord",e.ZodMap="ZodMap",e.ZodSet="ZodSet",e.ZodFunction="ZodFunction",e.ZodLazy="ZodLazy",e.ZodLiteral="ZodLiteral",e.ZodEnum="ZodEnum",e.ZodEffects="ZodEffects",e.ZodNativeEnum="ZodNativeEnum",e.ZodOptional="ZodOptional",e.ZodNullable="ZodNullable",e.ZodDefault="ZodDefault",e.ZodCatch="ZodCatch",e.ZodPromise="ZodPromise",e.ZodBranded="ZodBranded",e.ZodPipeline="ZodPipeline",e.ZodReadonly="ZodReadonly"})(vt||(vt={}));const le=ai.create,fr=Au.create,ar=Gv.create,Oee=Wv.create,s0=Jv.create;co.create;const We=Ss.create,Be=Xn.create,Ir=_h.create,CR=y6.create;Th.create;Ko.create;const ul=Ah.create,yt=Sh.create,mi=Xo.create;wh.create;const Le=oi.create;Jo.create;var i0=e=>e.type==="checkbox",Bo=e=>e instanceof Date,kr=e=>e==null;const RR=e=>typeof e=="object";var zn=e=>!kr(e)&&!Array.isArray(e)&&RR(e)&&!Bo(e),OR=e=>zn(e)&&e.target?i0(e.target)?e.target.checked:e.target.value:e,Nee=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,NR=(e,t)=>e.has(Nee(t)),Pee=e=>{const t=e.constructor&&e.constructor.prototype;return zn(t)&&t.hasOwnProperty("isPrototypeOf")},E6=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function yn(e){let t;const n=Array.isArray(e),r=typeof FileList<"u"?e instanceof FileList:!1;if(e instanceof Date)t=new Date(e);else if(!(E6&&(e instanceof Blob||r))&&(n||zn(e)))if(t=n?[]:{},!n&&!Pee(e))t=e;else for(const a in e)e.hasOwnProperty(a)&&(t[a]=yn(e[a]));else return e;return t}var P1=e=>/^\w*$/.test(e),bn=e=>e===void 0,k1=e=>Array.isArray(e)?e.filter(Boolean):[],x6=e=>k1(e.replace(/["|']|\]/g,"").split(/\.|\[/)),ze=(e,t,n)=>{if(!t||!zn(e))return n;const r=(P1(t)?[t]:x6(t)).reduce((a,i)=>kr(a)?a:a[i],e);return bn(r)||r===e?bn(e[t])?n:e[t]:r},la=e=>typeof e=="boolean",Qt=(e,t,n)=>{let r=-1;const a=P1(t)?[t]:x6(t),i=a.length,l=i-1;for(;++r<i;){const u=a[r];let d=n;if(r!==l){const h=e[u];d=zn(h)||Array.isArray(h)?h:isNaN(+a[r+1])?{}:[]}if(u==="__proto__"||u==="constructor"||u==="prototype")return;e[u]=d,e=e[u]}};const Nh={BLUR:"blur",FOCUS_OUT:"focusout",CHANGE:"change"},Ca={onBlur:"onBlur",onChange:"onChange",onSubmit:"onSubmit",onTouched:"onTouched",all:"all"},Js={max:"max",min:"min",maxLength:"maxLength",minLength:"minLength",pattern:"pattern",required:"required",validate:"validate"},_6=me.createContext(null);_6.displayName="HookFormContext";const as=()=>me.useContext(_6),PR=e=>{const{children:t,...n}=e;return me.createElement(_6.Provider,{value:n},t)};var kR=(e,t,n,r=!0)=>{const a={defaultValues:t._defaultValues};for(const i in e)Object.defineProperty(a,i,{get:()=>{const l=i;return t._proxyFormState[l]!==Ca.all&&(t._proxyFormState[l]=!r||Ca.all),n&&(n[l]=!0),e[l]}});return a};const D1=typeof window<"u"?p.useLayoutEffect:p.useEffect;function kee(e){const t=as(),{control:n=t.control,disabled:r,name:a,exact:i}=e||{},[l,u]=me.useState(n._formState),d=me.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,validatingFields:!1,isValidating:!1,isValid:!1,errors:!1});return D1(()=>n._subscribe({name:a,formState:d.current,exact:i,callback:h=>{!r&&u({...n._formState,...h})}}),[a,r,i]),me.useEffect(()=>{d.current.isValid&&n._setValid(!0)},[n]),me.useMemo(()=>kR(l,n,d.current,!1),[l,n])}var _s=e=>typeof e=="string",DR=(e,t,n,r,a)=>_s(e)?(r&&t.watch.add(e),ze(n,e,a)):Array.isArray(e)?e.map(i=>(r&&t.watch.add(i),ze(n,i))):(r&&(t.watchAll=!0),n);function MR(e){const t=as(),{control:n=t.control,name:r,defaultValue:a,disabled:i,exact:l}=e||{},u=me.useRef(a),[d,h]=me.useState(n._getWatch(r,u.current));return D1(()=>n._subscribe({name:r,formState:{values:!0},exact:l,callback:v=>!i&&h(DR(r,n._names,v.values||n._formValues,!1,u.current))}),[r,n,i,l]),me.useEffect(()=>n._removeUnmounted()),d}function Dee(e){const t=as(),{name:n,disabled:r,control:a=t.control,shouldUnregister:i}=e,l=NR(a._names.array,n),u=MR({control:a,name:n,defaultValue:ze(a._formValues,n,ze(a._defaultValues,n,e.defaultValue)),exact:!0}),d=kee({control:a,name:n,exact:!0}),h=me.useRef(e),v=me.useRef(a.register(n,{...e.rules,value:u,...la(e.disabled)?{disabled:e.disabled}:{}})),m=me.useMemo(()=>Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!ze(d.errors,n)},isDirty:{enumerable:!0,get:()=>!!ze(d.dirtyFields,n)},isTouched:{enumerable:!0,get:()=>!!ze(d.touchedFields,n)},isValidating:{enumerable:!0,get:()=>!!ze(d.validatingFields,n)},error:{enumerable:!0,get:()=>ze(d.errors,n)}}),[d,n]),E=me.useCallback(S=>v.current.onChange({target:{value:OR(S),name:n},type:Nh.CHANGE}),[n]),b=me.useCallback(()=>v.current.onBlur({target:{value:ze(a._formValues,n),name:n},type:Nh.BLUR}),[n,a._formValues]),T=me.useCallback(S=>{const w=ze(a._fields,n);w&&S&&(w._f.ref={focus:()=>S.focus&&S.focus(),select:()=>S.select&&S.select(),setCustomValidity:R=>S.setCustomValidity(R),reportValidity:()=>S.reportValidity()})},[a._fields,n]),A=me.useMemo(()=>({name:n,value:u,...la(r)||d.disabled?{disabled:d.disabled||r}:{},onChange:E,onBlur:b,ref:T}),[n,r,d.disabled,E,b,T,u]);return me.useEffect(()=>{const S=a._options.shouldUnregister||i;a.register(n,{...h.current.rules,...la(h.current.disabled)?{disabled:h.current.disabled}:{}});const w=(R,k)=>{const L=ze(a._fields,R);L&&L._f&&(L._f.mount=k)};if(w(n,!0),S){const R=yn(ze(a._options.defaultValues,n));Qt(a._defaultValues,n,R),bn(ze(a._formValues,n))&&Qt(a._formValues,n,R)}return!l&&a.register(n),()=>{(l?S&&!a._state.action:S)?a.unregister(n):w(n,!1)}},[n,a,l,i]),me.useEffect(()=>{a._setDisabledField({disabled:r,name:n})},[r,n,a]),me.useMemo(()=>({field:A,formState:d,fieldState:m}),[A,d,m])}const Mee=e=>e.render(Dee(e));var T6=(e,t,n,r,a)=>t?{...n[e],types:{...n[e]&&n[e].types?n[e].types:{},[r]:a||!0}}:{},Zr=e=>Array.isArray(e)?e:[e],R5=()=>{let e=[];return{get observers(){return e},next:a=>{for(const i of e)i.next&&i.next(a)},subscribe:a=>(e.push(a),{unsubscribe:()=>{e=e.filter(i=>i!==a)}}),unsubscribe:()=>{e=[]}}},r8=e=>kr(e)||!RR(e);function Ji(e,t,n=new WeakSet){if(r8(e)||r8(t))return e===t;if(Bo(e)&&Bo(t))return e.getTime()===t.getTime();const r=Object.keys(e),a=Object.keys(t);if(r.length!==a.length)return!1;if(n.has(e)||n.has(t))return!0;n.add(e),n.add(t);for(const i of r){const l=e[i];if(!a.includes(i))return!1;if(i!=="ref"){const u=t[i];if(Bo(l)&&Bo(u)||zn(l)&&zn(u)||Array.isArray(l)&&Array.isArray(u)?!Ji(l,u,n):l!==u)return!1}}return!0}var Nr=e=>zn(e)&&!Object.keys(e).length,A6=e=>e.type==="file",Qa=e=>typeof e=="function",Ph=e=>{if(!E6)return!1;const t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)},LR=e=>e.type==="select-multiple",S6=e=>e.type==="radio",Lee=e=>S6(e)||i0(e),eg=e=>Ph(e)&&e.isConnected;function Iee(e,t){const n=t.slice(0,-1).length;let r=0;for(;r<n;)e=bn(e)?r++:e[t[r++]];return e}function jee(e){for(const t in e)if(e.hasOwnProperty(t)&&!bn(e[t]))return!1;return!0}function Bn(e,t){const n=Array.isArray(t)?t:P1(t)?[t]:x6(t),r=n.length===1?e:Iee(e,n),a=n.length-1,i=n[a];return r&&delete r[i],a!==0&&(zn(r)&&Nr(r)||Array.isArray(r)&&jee(r))&&Bn(e,n.slice(0,-1)),e}var IR=e=>{for(const t in e)if(Qa(e[t]))return!0;return!1};function kh(e,t={}){const n=Array.isArray(e);if(zn(e)||n)for(const r in e)Array.isArray(e[r])||zn(e[r])&&!IR(e[r])?(t[r]=Array.isArray(e[r])?[]:{},kh(e[r],t[r])):kr(e[r])||(t[r]=!0);return t}function jR(e,t,n){const r=Array.isArray(e);if(zn(e)||r)for(const a in e)Array.isArray(e[a])||zn(e[a])&&!IR(e[a])?bn(t)||r8(n[a])?n[a]=Array.isArray(e[a])?kh(e[a],[]):{...kh(e[a])}:jR(e[a],kr(t)?{}:t[a],n[a]):n[a]=!Ji(e[a],t[a]);return n}var Xc=(e,t)=>jR(e,t,kh(t));const O5={value:!1,isValid:!1},N5={value:!0,isValid:!0};var HR=e=>{if(Array.isArray(e)){if(e.length>1){const t=e.filter(n=>n&&n.checked&&!n.disabled).map(n=>n.value);return{value:t,isValid:!!t.length}}return e[0].checked&&!e[0].disabled?e[0].attributes&&!bn(e[0].attributes.value)?bn(e[0].value)||e[0].value===""?N5:{value:e[0].value,isValid:!0}:N5:O5}return O5},FR=(e,{valueAsNumber:t,valueAsDate:n,setValueAs:r})=>bn(e)?e:t?e===""?NaN:e&&+e:n&&_s(e)?new Date(e):r?r(e):e;const P5={isValid:!1,value:null};var UR=e=>Array.isArray(e)?e.reduce((t,n)=>n&&n.checked&&!n.disabled?{isValid:!0,value:n.value}:t,P5):P5;function k5(e){const t=e.ref;return A6(t)?t.files:S6(t)?UR(e.refs).value:LR(t)?[...t.selectedOptions].map(({value:n})=>n):i0(t)?HR(e.refs).value:FR(bn(t.value)?e.ref.value:t.value,e)}var Hee=(e,t,n,r)=>{const a={};for(const i of e){const l=ze(t,i);l&&Qt(a,i,l._f)}return{criteriaMode:n,names:[...e],fields:a,shouldUseNativeValidation:r}},Dh=e=>e instanceof RegExp,Wc=e=>bn(e)?e:Dh(e)?e.source:zn(e)?Dh(e.value)?e.value.source:e.value:e,ou=e=>({isOnSubmit:!e||e===Ca.onSubmit,isOnBlur:e===Ca.onBlur,isOnChange:e===Ca.onChange,isOnAll:e===Ca.all,isOnTouch:e===Ca.onTouched});const D5="AsyncFunction";var Fee=e=>!!e&&!!e.validate&&!!(Qa(e.validate)&&e.validate.constructor.name===D5||zn(e.validate)&&Object.values(e.validate).find(t=>t.constructor.name===D5)),Uee=e=>e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate),a8=(e,t,n)=>!n&&(t.watchAll||t.watch.has(e)||[...t.watch].some(r=>e.startsWith(r)&&/^\.\w+/.test(e.slice(r.length))));const pu=(e,t,n,r)=>{for(const a of n||Object.keys(e)){const i=ze(e,a);if(i){const{_f:l,...u}=i;if(l){if(l.refs&&l.refs[0]&&t(l.refs[0],a)&&!r)return!0;if(l.ref&&t(l.ref,l.name)&&!r)return!0;if(pu(u,t))break}else if(zn(u)&&pu(u,t))break}}};function M5(e,t,n){const r=ze(e,n);if(r||P1(n))return{error:r,name:n};const a=n.split(".");for(;a.length;){const i=a.join("."),l=ze(t,i),u=ze(e,i);if(l&&!Array.isArray(l)&&n!==i)return{name:n};if(u&&u.type)return{name:i,error:u};if(u&&u.root&&u.root.type)return{name:`${i}.root`,error:u.root};a.pop()}return{name:n}}var Bee=(e,t,n,r)=>{n(e);const{name:a,...i}=e;return Nr(i)||Object.keys(i).length>=Object.keys(t).length||Object.keys(i).find(l=>t[l]===(!r||Ca.all))},Vee=(e,t,n)=>!e||!t||e===t||Zr(e).some(r=>r&&(n?r===t:r.startsWith(t)||t.startsWith(r))),zee=(e,t,n,r,a)=>a.isOnAll?!1:!n&&a.isOnTouch?!(t||e):(n?r.isOnBlur:a.isOnBlur)?!e:(n?r.isOnChange:a.isOnChange)?e:!0,qee=(e,t)=>!k1(ze(e,t)).length&&Bn(e,t),BR=(e,t,n)=>{const r=Zr(ze(e,n));return Qt(r,"root",t[n]),Qt(e,n,r),e},Kf=e=>_s(e);function L5(e,t,n="validate"){if(Kf(e)||Array.isArray(e)&&e.every(Kf)||la(e)&&!e)return{type:n,message:Kf(e)?e:"",ref:t}}var Jl=e=>zn(e)&&!Dh(e)?e:{value:e,message:""},s8=async(e,t,n,r,a,i)=>{const{ref:l,refs:u,required:d,maxLength:h,minLength:v,min:m,max:E,pattern:b,validate:T,name:A,valueAsNumber:S,mount:w}=e._f,R=ze(n,A);if(!w||t.has(A))return{};const k=u?u[0]:l,L=F=>{a&&k.reportValidity&&(k.setCustomValidity(la(F)?"":F||""),k.reportValidity())},I={},N=S6(l),M=i0(l),D=N||M,B=(S||A6(l))&&bn(l.value)&&bn(R)||Ph(l)&&l.value===""||R===""||Array.isArray(R)&&!R.length,P=T6.bind(null,A,r,I),U=(F,Q,Y,te=Js.maxLength,V=Js.minLength)=>{const J=F?Q:Y;I[A]={type:F?te:V,message:J,ref:l,...P(F?te:V,J)}};if(i?!Array.isArray(R)||!R.length:d&&(!D&&(B||kr(R))||la(R)&&!R||M&&!HR(u).isValid||N&&!UR(u).isValid)){const{value:F,message:Q}=Kf(d)?{value:!!d,message:d}:Jl(d);if(F&&(I[A]={type:Js.required,message:Q,ref:k,...P(Js.required,Q)},!r))return L(Q),I}if(!B&&(!kr(m)||!kr(E))){let F,Q;const Y=Jl(E),te=Jl(m);if(!kr(R)&&!isNaN(R)){const V=l.valueAsNumber||R&&+R;kr(Y.value)||(F=V>Y.value),kr(te.value)||(Q=V<te.value)}else{const V=l.valueAsDate||new Date(R),J=C=>new Date(new Date().toDateString()+" "+C),X=l.type=="time",se=l.type=="week";_s(Y.value)&&R&&(F=X?J(R)>J(Y.value):se?R>Y.value:V>new Date(Y.value)),_s(te.value)&&R&&(Q=X?J(R)<J(te.value):se?R<te.value:V<new Date(te.value))}if((F||Q)&&(U(!!F,Y.message,te.message,Js.max,Js.min),!r))return L(I[A].message),I}if((h||v)&&!B&&(_s(R)||i&&Array.isArray(R))){const F=Jl(h),Q=Jl(v),Y=!kr(F.value)&&R.length>+F.value,te=!kr(Q.value)&&R.length<+Q.value;if((Y||te)&&(U(Y,F.message,Q.message),!r))return L(I[A].message),I}if(b&&!B&&_s(R)){const{value:F,message:Q}=Jl(b);if(Dh(F)&&!R.match(F)&&(I[A]={type:Js.pattern,message:Q,ref:l,...P(Js.pattern,Q)},!r))return L(Q),I}if(T){if(Qa(T)){const F=await T(R,n),Q=L5(F,k);if(Q&&(I[A]={...Q,...P(Js.validate,Q.message)},!r))return L(Q.message),I}else if(zn(T)){let F={};for(const Q in T){if(!Nr(F)&&!r)break;const Y=L5(await T[Q](R,n),k,Q);Y&&(F={...Y,...P(Q,Y.message)},L(Y.message),r&&(I[A]=F))}if(!Nr(F)&&(I[A]={ref:k,...F},!r))return I}}return L(!0),I};const $ee={mode:Ca.onSubmit,reValidateMode:Ca.onChange,shouldFocusError:!0};function Zee(e={}){let t={...$ee,...e},n={submitCount:0,isDirty:!1,isReady:!1,isLoading:Qa(t.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},validatingFields:{},errors:t.errors||{},disabled:t.disabled||!1},r={},a=zn(t.defaultValues)||zn(t.values)?yn(t.defaultValues||t.values)||{}:{},i=t.shouldUnregister?{}:yn(a),l={action:!1,mount:!1,watch:!1},u={mount:new Set,disabled:new Set,unMount:new Set,array:new Set,watch:new Set},d,h=0;const v={isDirty:!1,dirtyFields:!1,validatingFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1};let m={...v};const E={array:R5(),state:R5()},b=t.criteriaMode===Ca.all,T=W=>ce=>{clearTimeout(h),h=setTimeout(W,ce)},A=async W=>{if(!t.disabled&&(v.isValid||m.isValid||W)){const ce=t.resolver?Nr((await M()).errors):await B(r,!0);ce!==n.isValid&&E.state.next({isValid:ce})}},S=(W,ce)=>{!t.disabled&&(v.isValidating||v.validatingFields||m.isValidating||m.validatingFields)&&((W||Array.from(u.mount)).forEach(pe=>{pe&&(ce?Qt(n.validatingFields,pe,ce):Bn(n.validatingFields,pe))}),E.state.next({validatingFields:n.validatingFields,isValidating:!Nr(n.validatingFields)}))},w=(W,ce=[],pe,Ne,Me=!0,je=!0)=>{if(Ne&&pe&&!t.disabled){if(l.action=!0,je&&Array.isArray(ze(r,W))){const ie=pe(ze(r,W),Ne.argA,Ne.argB);Me&&Qt(r,W,ie)}if(je&&Array.isArray(ze(n.errors,W))){const ie=pe(ze(n.errors,W),Ne.argA,Ne.argB);Me&&Qt(n.errors,W,ie),qee(n.errors,W)}if((v.touchedFields||m.touchedFields)&&je&&Array.isArray(ze(n.touchedFields,W))){const ie=pe(ze(n.touchedFields,W),Ne.argA,Ne.argB);Me&&Qt(n.touchedFields,W,ie)}(v.dirtyFields||m.dirtyFields)&&(n.dirtyFields=Xc(a,i)),E.state.next({name:W,isDirty:U(W,ce),dirtyFields:n.dirtyFields,errors:n.errors,isValid:n.isValid})}else Qt(i,W,ce)},R=(W,ce)=>{Qt(n.errors,W,ce),E.state.next({errors:n.errors})},k=W=>{n.errors=W,E.state.next({errors:n.errors,isValid:!1})},L=(W,ce,pe,Ne)=>{const Me=ze(r,W);if(Me){const je=ze(i,W,bn(pe)?ze(a,W):pe);bn(je)||Ne&&Ne.defaultChecked||ce?Qt(i,W,ce?je:k5(Me._f)):Y(W,je),l.mount&&A()}},I=(W,ce,pe,Ne,Me)=>{let je=!1,ie=!1;const Se={name:W};if(!t.disabled){if(!pe||Ne){(v.isDirty||m.isDirty)&&(ie=n.isDirty,n.isDirty=Se.isDirty=U(),je=ie!==Se.isDirty);const Ve=Ji(ze(a,W),ce);ie=!!ze(n.dirtyFields,W),Ve?Bn(n.dirtyFields,W):Qt(n.dirtyFields,W,!0),Se.dirtyFields=n.dirtyFields,je=je||(v.dirtyFields||m.dirtyFields)&&ie!==!Ve}if(pe){const Ve=ze(n.touchedFields,W);Ve||(Qt(n.touchedFields,W,pe),Se.touchedFields=n.touchedFields,je=je||(v.touchedFields||m.touchedFields)&&Ve!==pe)}je&&Me&&E.state.next(Se)}return je?Se:{}},N=(W,ce,pe,Ne)=>{const Me=ze(n.errors,W),je=(v.isValid||m.isValid)&&la(ce)&&n.isValid!==ce;if(t.delayError&&pe?(d=T(()=>R(W,pe)),d(t.delayError)):(clearTimeout(h),d=null,pe?Qt(n.errors,W,pe):Bn(n.errors,W)),(pe?!Ji(Me,pe):Me)||!Nr(Ne)||je){const ie={...Ne,...je&&la(ce)?{isValid:ce}:{},errors:n.errors,name:W};n={...n,...ie},E.state.next(ie)}},M=async W=>{S(W,!0);const ce=await t.resolver(i,t.context,Hee(W||u.mount,r,t.criteriaMode,t.shouldUseNativeValidation));return S(W),ce},D=async W=>{const{errors:ce}=await M(W);if(W)for(const pe of W){const Ne=ze(ce,pe);Ne?Qt(n.errors,pe,Ne):Bn(n.errors,pe)}else n.errors=ce;return ce},B=async(W,ce,pe={valid:!0})=>{for(const Ne in W){const Me=W[Ne];if(Me){const{_f:je,...ie}=Me;if(je){const Se=u.array.has(je.name),Ve=Me._f&&Fee(Me._f);Ve&&v.validatingFields&&S([Ne],!0);const $e=await s8(Me,u.disabled,i,b,t.shouldUseNativeValidation&&!ce,Se);if(Ve&&v.validatingFields&&S([Ne]),$e[je.name]&&(pe.valid=!1,ce))break;!ce&&(ze($e,je.name)?Se?BR(n.errors,$e,je.name):Qt(n.errors,je.name,$e[je.name]):Bn(n.errors,je.name))}!Nr(ie)&&await B(ie,ce,pe)}}return pe.valid},P=()=>{for(const W of u.unMount){const ce=ze(r,W);ce&&(ce._f.refs?ce._f.refs.every(pe=>!eg(pe)):!eg(ce._f.ref))&&ae(W)}u.unMount=new Set},U=(W,ce)=>!t.disabled&&(W&&ce&&Qt(i,W,ce),!Ji(C(),a)),F=(W,ce,pe)=>DR(W,u,{...l.mount?i:bn(ce)?a:_s(W)?{[W]:ce}:ce},pe,ce),Q=W=>k1(ze(l.mount?i:a,W,t.shouldUnregister?ze(a,W,[]):[])),Y=(W,ce,pe={})=>{const Ne=ze(r,W);let Me=ce;if(Ne){const je=Ne._f;je&&(!je.disabled&&Qt(i,W,FR(ce,je)),Me=Ph(je.ref)&&kr(ce)?"":ce,LR(je.ref)?[...je.ref.options].forEach(ie=>ie.selected=Me.includes(ie.value)):je.refs?i0(je.ref)?je.refs.forEach(ie=>{(!ie.defaultChecked||!ie.disabled)&&(Array.isArray(Me)?ie.checked=!!Me.find(Se=>Se===ie.value):ie.checked=Me===ie.value||!!Me)}):je.refs.forEach(ie=>ie.checked=ie.value===Me):A6(je.ref)?je.ref.value="":(je.ref.value=Me,je.ref.type||E.state.next({name:W,values:yn(i)})))}(pe.shouldDirty||pe.shouldTouch)&&I(W,Me,pe.shouldTouch,pe.shouldDirty,!0),pe.shouldValidate&&se(W)},te=(W,ce,pe)=>{for(const Ne in ce){if(!ce.hasOwnProperty(Ne))return;const Me=ce[Ne],je=W+"."+Ne,ie=ze(r,je);(u.array.has(W)||zn(Me)||ie&&!ie._f)&&!Bo(Me)?te(je,Me,pe):Y(je,Me,pe)}},V=(W,ce,pe={})=>{const Ne=ze(r,W),Me=u.array.has(W),je=yn(ce);Qt(i,W,je),Me?(E.array.next({name:W,values:yn(i)}),(v.isDirty||v.dirtyFields||m.isDirty||m.dirtyFields)&&pe.shouldDirty&&E.state.next({name:W,dirtyFields:Xc(a,i),isDirty:U(W,je)})):Ne&&!Ne._f&&!kr(je)?te(W,je,pe):Y(W,je,pe),a8(W,u)&&E.state.next({...n}),E.state.next({name:l.mount?W:void 0,values:yn(i)})},J=async W=>{l.mount=!0;const ce=W.target;let pe=ce.name,Ne=!0;const Me=ze(r,pe),je=Ve=>{Ne=Number.isNaN(Ve)||Bo(Ve)&&isNaN(Ve.getTime())||Ji(Ve,ze(i,pe,Ve))},ie=ou(t.mode),Se=ou(t.reValidateMode);if(Me){let Ve,$e;const pt=ce.type?k5(Me._f):OR(W),tn=W.type===Nh.BLUR||W.type===Nh.FOCUS_OUT,jn=!Uee(Me._f)&&!t.resolver&&!ze(n.errors,pe)&&!Me._f.deps||zee(tn,ze(n.touchedFields,pe),n.isSubmitted,Se,ie),hn=a8(pe,u,tn);Qt(i,pe,pt),tn?(Me._f.onBlur&&Me._f.onBlur(W),d&&d(0)):Me._f.onChange&&Me._f.onChange(W);const Wn=I(pe,pt,tn),$n=!Nr(Wn)||hn;if(!tn&&E.state.next({name:pe,type:W.type,values:yn(i)}),jn)return(v.isValid||m.isValid)&&(t.mode==="onBlur"?tn&&A():tn||A()),$n&&E.state.next({name:pe,...hn?{}:Wn});if(!tn&&hn&&E.state.next({...n}),t.resolver){const{errors:ln}=await M([pe]);if(je(pt),Ne){const un=M5(n.errors,r,pe),Zn=M5(ln,r,un.name||pe);Ve=Zn.error,pe=Zn.name,$e=Nr(ln)}}else S([pe],!0),Ve=(await s8(Me,u.disabled,i,b,t.shouldUseNativeValidation))[pe],S([pe]),je(pt),Ne&&(Ve?$e=!1:(v.isValid||m.isValid)&&($e=await B(r,!0)));Ne&&(Me._f.deps&&se(Me._f.deps),N(pe,$e,Ve,Wn))}},X=(W,ce)=>{if(ze(n.errors,ce)&&W.focus)return W.focus(),1},se=async(W,ce={})=>{let pe,Ne;const Me=Zr(W);if(t.resolver){const je=await D(bn(W)?W:Me);pe=Nr(je),Ne=W?!Me.some(ie=>ze(je,ie)):pe}else W?(Ne=(await Promise.all(Me.map(async je=>{const ie=ze(r,je);return await B(ie&&ie._f?{[je]:ie}:ie)}))).every(Boolean),!(!Ne&&!n.isValid)&&A()):Ne=pe=await B(r);return E.state.next({...!_s(W)||(v.isValid||m.isValid)&&pe!==n.isValid?{}:{name:W},...t.resolver||!W?{isValid:pe}:{},errors:n.errors}),ce.shouldFocus&&!Ne&&pu(r,X,W?Me:u.mount),Ne},C=W=>{const ce={...l.mount?i:a};return bn(W)?ce:_s(W)?ze(ce,W):W.map(pe=>ze(ce,pe))},oe=(W,ce)=>({invalid:!!ze((ce||n).errors,W),isDirty:!!ze((ce||n).dirtyFields,W),error:ze((ce||n).errors,W),isValidating:!!ze(n.validatingFields,W),isTouched:!!ze((ce||n).touchedFields,W)}),ge=W=>{W&&Zr(W).forEach(ce=>Bn(n.errors,ce)),E.state.next({errors:W?n.errors:{}})},j=(W,ce,pe)=>{const Ne=(ze(r,W,{_f:{}})._f||{}).ref,Me=ze(n.errors,W)||{},{ref:je,message:ie,type:Se,...Ve}=Me;Qt(n.errors,W,{...Ve,...ce,ref:Ne}),E.state.next({name:W,errors:n.errors,isValid:!1}),pe&&pe.shouldFocus&&Ne&&Ne.focus&&Ne.focus()},Ee=(W,ce)=>Qa(W)?E.state.subscribe({next:pe=>W(F(void 0,ce),pe)}):F(W,ce,!0),Pe=W=>E.state.subscribe({next:ce=>{Vee(W.name,ce.name,W.exact)&&Bee(ce,W.formState||v,st,W.reRenderRoot)&&W.callback({values:{...i},...n,...ce})}}).unsubscribe,q=W=>(l.mount=!0,m={...m,...W.formState},Pe({...W,formState:m})),ae=(W,ce={})=>{for(const pe of W?Zr(W):u.mount)u.mount.delete(pe),u.array.delete(pe),ce.keepValue||(Bn(r,pe),Bn(i,pe)),!ce.keepError&&Bn(n.errors,pe),!ce.keepDirty&&Bn(n.dirtyFields,pe),!ce.keepTouched&&Bn(n.touchedFields,pe),!ce.keepIsValidating&&Bn(n.validatingFields,pe),!t.shouldUnregister&&!ce.keepDefaultValue&&Bn(a,pe);E.state.next({values:yn(i)}),E.state.next({...n,...ce.keepDirty?{isDirty:U()}:{}}),!ce.keepIsValid&&A()},Te=({disabled:W,name:ce})=>{(la(W)&&l.mount||W||u.disabled.has(ce))&&(W?u.disabled.add(ce):u.disabled.delete(ce))},qe=(W,ce={})=>{let pe=ze(r,W);const Ne=la(ce.disabled)||la(t.disabled);return Qt(r,W,{...pe||{},_f:{...pe&&pe._f?pe._f:{ref:{name:W}},name:W,mount:!0,...ce}}),u.mount.add(W),pe?Te({disabled:la(ce.disabled)?ce.disabled:t.disabled,name:W}):L(W,!0,ce.value),{...Ne?{disabled:ce.disabled||t.disabled}:{},...t.progressive?{required:!!ce.required,min:Wc(ce.min),max:Wc(ce.max),minLength:Wc(ce.minLength),maxLength:Wc(ce.maxLength),pattern:Wc(ce.pattern)}:{},name:W,onChange:J,onBlur:J,ref:Me=>{if(Me){qe(W,ce),pe=ze(r,W);const je=bn(Me.value)&&Me.querySelectorAll&&Me.querySelectorAll("input,select,textarea")[0]||Me,ie=Lee(je),Se=pe._f.refs||[];if(ie?Se.find(Ve=>Ve===je):je===pe._f.ref)return;Qt(r,W,{_f:{...pe._f,...ie?{refs:[...Se.filter(eg),je,...Array.isArray(ze(a,W))?[{}]:[]],ref:{type:je.type,name:W}}:{ref:je}}}),L(W,!1,void 0,je)}else pe=ze(r,W,{}),pe._f&&(pe._f.mount=!1),(t.shouldUnregister||ce.shouldUnregister)&&!(NR(u.array,W)&&l.action)&&u.unMount.add(W)}}},Ae=()=>t.shouldFocusError&&pu(r,X,u.mount),Oe=W=>{la(W)&&(E.state.next({disabled:W}),pu(r,(ce,pe)=>{const Ne=ze(r,pe);Ne&&(ce.disabled=Ne._f.disabled||W,Array.isArray(Ne._f.refs)&&Ne._f.refs.forEach(Me=>{Me.disabled=Ne._f.disabled||W}))},0,!1))},et=(W,ce)=>async pe=>{let Ne;pe&&(pe.preventDefault&&pe.preventDefault(),pe.persist&&pe.persist());let Me=yn(i);if(E.state.next({isSubmitting:!0}),t.resolver){const{errors:je,values:ie}=await M();n.errors=je,Me=yn(ie)}else await B(r);if(u.disabled.size)for(const je of u.disabled)Bn(Me,je);if(Bn(n.errors,"root"),Nr(n.errors)){E.state.next({errors:{}});try{await W(Me,pe)}catch(je){Ne=je}}else ce&&await ce({...n.errors},pe),Ae(),setTimeout(Ae);if(E.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:Nr(n.errors)&&!Ne,submitCount:n.submitCount+1,errors:n.errors}),Ne)throw Ne},ct=(W,ce={})=>{ze(r,W)&&(bn(ce.defaultValue)?V(W,yn(ze(a,W))):(V(W,ce.defaultValue),Qt(a,W,yn(ce.defaultValue))),ce.keepTouched||Bn(n.touchedFields,W),ce.keepDirty||(Bn(n.dirtyFields,W),n.isDirty=ce.defaultValue?U(W,yn(ze(a,W))):U()),ce.keepError||(Bn(n.errors,W),v.isValid&&A()),E.state.next({...n}))},it=(W,ce={})=>{const pe=W?yn(W):a,Ne=yn(pe),Me=Nr(W),je=Me?a:Ne;if(ce.keepDefaultValues||(a=pe),!ce.keepValues){if(ce.keepDirtyValues){const ie=new Set([...u.mount,...Object.keys(Xc(a,i))]);for(const Se of Array.from(ie))ze(n.dirtyFields,Se)?Qt(je,Se,ze(i,Se)):V(Se,ze(je,Se))}else{if(E6&&bn(W))for(const ie of u.mount){const Se=ze(r,ie);if(Se&&Se._f){const Ve=Array.isArray(Se._f.refs)?Se._f.refs[0]:Se._f.ref;if(Ph(Ve)){const $e=Ve.closest("form");if($e){$e.reset();break}}}}if(ce.keepFieldsRef)for(const ie of u.mount)V(ie,ze(je,ie));else r={}}i=t.shouldUnregister?ce.keepDefaultValues?yn(a):{}:yn(je),E.array.next({values:{...je}}),E.state.next({values:{...je}})}u={mount:ce.keepDirtyValues?u.mount:new Set,unMount:new Set,array:new Set,disabled:new Set,watch:new Set,watchAll:!1,focus:""},l.mount=!v.isValid||!!ce.keepIsValid||!!ce.keepDirtyValues,l.watch=!!t.shouldUnregister,E.state.next({submitCount:ce.keepSubmitCount?n.submitCount:0,isDirty:Me?!1:ce.keepDirty?n.isDirty:!!(ce.keepDefaultValues&&!Ji(W,a)),isSubmitted:ce.keepIsSubmitted?n.isSubmitted:!1,dirtyFields:Me?{}:ce.keepDirtyValues?ce.keepDefaultValues&&i?Xc(a,i):n.dirtyFields:ce.keepDefaultValues&&W?Xc(a,W):ce.keepDirty?n.dirtyFields:{},touchedFields:ce.keepTouched?n.touchedFields:{},errors:ce.keepErrors?n.errors:{},isSubmitSuccessful:ce.keepIsSubmitSuccessful?n.isSubmitSuccessful:!1,isSubmitting:!1})},Ht=(W,ce)=>it(Qa(W)?W(i):W,ce),_t=(W,ce={})=>{const pe=ze(r,W),Ne=pe&&pe._f;if(Ne){const Me=Ne.refs?Ne.refs[0]:Ne.ref;Me.focus&&(Me.focus(),ce.shouldSelect&&Qa(Me.select)&&Me.select())}},st=W=>{n={...n,...W}},bt={control:{register:qe,unregister:ae,getFieldState:oe,handleSubmit:et,setError:j,_subscribe:Pe,_runSchema:M,_focusError:Ae,_getWatch:F,_getDirty:U,_setValid:A,_setFieldArray:w,_setDisabledField:Te,_setErrors:k,_getFieldArray:Q,_reset:it,_resetDefaultValues:()=>Qa(t.defaultValues)&&t.defaultValues().then(W=>{Ht(W,t.resetOptions),E.state.next({isLoading:!1})}),_removeUnmounted:P,_disableForm:Oe,_subjects:E,_proxyFormState:v,get _fields(){return r},get _formValues(){return i},get _state(){return l},set _state(W){l=W},get _defaultValues(){return a},get _names(){return u},set _names(W){u=W},get _formState(){return n},get _options(){return t},set _options(W){t={...t,...W}}},subscribe:q,trigger:se,register:qe,handleSubmit:et,watch:Ee,setValue:V,getValues:C,reset:Ht,resetField:ct,clearErrors:ge,unregister:ae,setError:j,setFocus:_t,getFieldState:oe};return{...bt,formControl:bt}}var Qi=()=>{if(typeof crypto<"u"&&crypto.randomUUID)return crypto.randomUUID();const e=typeof performance>"u"?Date.now():performance.now()*1e3;return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,t=>{const n=(Math.random()*16+e)%16|0;return(t=="x"?n:n&3|8).toString(16)})},tg=(e,t,n={})=>n.shouldFocus||bn(n.shouldFocus)?n.focusName||`${e}.${bn(n.focusIndex)?t:n.focusIndex}.`:"",ng=(e,t)=>[...e,...Zr(t)],rg=e=>Array.isArray(e)?e.map(()=>{}):void 0;function ag(e,t,n){return[...e.slice(0,t),...Zr(n),...e.slice(t)]}var sg=(e,t,n)=>Array.isArray(e)?(bn(e[n])&&(e[n]=void 0),e.splice(n,0,e.splice(t,1)[0]),e):[],ig=(e,t)=>[...Zr(t),...Zr(e)];function Qee(e,t){let n=0;const r=[...e];for(const a of t)r.splice(a-n,1),n++;return k1(r).length?r:[]}var og=(e,t)=>bn(t)?[]:Qee(e,Zr(t).sort((n,r)=>n-r)),lg=(e,t,n)=>{[e[t],e[n]]=[e[n],e[t]]},I5=(e,t,n)=>(e[t]=n,e);function Yee(e){const t=as(),{control:n=t.control,name:r,keyName:a="id",shouldUnregister:i,rules:l}=e,[u,d]=me.useState(n._getFieldArray(r)),h=me.useRef(n._getFieldArray(r).map(Qi)),v=me.useRef(u),m=me.useRef(r),E=me.useRef(!1);m.current=r,v.current=u,n._names.array.add(r),l&&n.register(r,l),D1(()=>n._subjects.array.subscribe({next:({values:N,name:M})=>{if(M===m.current||!M){const D=ze(N,m.current);Array.isArray(D)&&(d(D),h.current=D.map(Qi))}}}).unsubscribe,[n]);const b=me.useCallback(N=>{E.current=!0,n._setFieldArray(r,N)},[n,r]),T=(N,M)=>{const D=Zr(yn(N)),B=ng(n._getFieldArray(r),D);n._names.focus=tg(r,B.length-1,M),h.current=ng(h.current,D.map(Qi)),b(B),d(B),n._setFieldArray(r,B,ng,{argA:rg(N)})},A=(N,M)=>{const D=Zr(yn(N)),B=ig(n._getFieldArray(r),D);n._names.focus=tg(r,0,M),h.current=ig(h.current,D.map(Qi)),b(B),d(B),n._setFieldArray(r,B,ig,{argA:rg(N)})},S=N=>{const M=og(n._getFieldArray(r),N);h.current=og(h.current,N),b(M),d(M),!Array.isArray(ze(n._fields,r))&&Qt(n._fields,r,void 0),n._setFieldArray(r,M,og,{argA:N})},w=(N,M,D)=>{const B=Zr(yn(M)),P=ag(n._getFieldArray(r),N,B);n._names.focus=tg(r,N,D),h.current=ag(h.current,N,B.map(Qi)),b(P),d(P),n._setFieldArray(r,P,ag,{argA:N,argB:rg(M)})},R=(N,M)=>{const D=n._getFieldArray(r);lg(D,N,M),lg(h.current,N,M),b(D),d(D),n._setFieldArray(r,D,lg,{argA:N,argB:M},!1)},k=(N,M)=>{const D=n._getFieldArray(r);sg(D,N,M),sg(h.current,N,M),b(D),d(D),n._setFieldArray(r,D,sg,{argA:N,argB:M},!1)},L=(N,M)=>{const D=yn(M),B=I5(n._getFieldArray(r),N,D);h.current=[...B].map((P,U)=>!P||U===N?Qi():h.current[U]),b(B),d([...B]),n._setFieldArray(r,B,I5,{argA:N,argB:D},!0,!1)},I=N=>{const M=Zr(yn(N));h.current=M.map(Qi),b([...M]),d([...M]),n._setFieldArray(r,[...M],D=>D,{},!0,!1)};return me.useEffect(()=>{if(n._state.action=!1,a8(r,n._names)&&n._subjects.state.next({...n._formState}),E.current&&(!ou(n._options.mode).isOnSubmit||n._formState.isSubmitted)&&!ou(n._options.reValidateMode).isOnSubmit)if(n._options.resolver)n._runSchema([r]).then(N=>{const M=ze(N.errors,r),D=ze(n._formState.errors,r);(D?!M&&D.type||M&&(D.type!==M.type||D.message!==M.message):M&&M.type)&&(M?Qt(n._formState.errors,r,M):Bn(n._formState.errors,r),n._subjects.state.next({errors:n._formState.errors}))});else{const N=ze(n._fields,r);N&&N._f&&!(ou(n._options.reValidateMode).isOnSubmit&&ou(n._options.mode).isOnSubmit)&&s8(N,n._names.disabled,n._formValues,n._options.criteriaMode===Ca.all,n._options.shouldUseNativeValidation,!0).then(M=>!Nr(M)&&n._subjects.state.next({errors:BR(n._formState.errors,M,r)}))}n._subjects.state.next({name:r,values:yn(n._formValues)}),n._names.focus&&pu(n._fields,(N,M)=>{if(n._names.focus&&M.startsWith(n._names.focus)&&N.focus)return N.focus(),1}),n._names.focus="",n._setValid(),E.current=!1},[u,r,n]),me.useEffect(()=>(!ze(n._formValues,r)&&n._setFieldArray(r),()=>{const N=(M,D)=>{const B=ze(n._fields,M);B&&B._f&&(B._f.mount=D)};n._options.shouldUnregister||i?n.unregister(r):N(r,!1)}),[r,n,a,i]),{swap:me.useCallback(R,[b,r,n]),move:me.useCallback(k,[b,r,n]),prepend:me.useCallback(A,[b,r,n]),append:me.useCallback(T,[b,r,n]),remove:me.useCallback(S,[b,r,n]),insert:me.useCallback(w,[b,r,n]),update:me.useCallback(L,[b,r,n]),replace:me.useCallback(I,[b,r,n]),fields:me.useMemo(()=>u.map((N,M)=>({...N,[a]:h.current[M]||Qi()})),[u,a])}}function Gee(e={}){const t=me.useRef(void 0),n=me.useRef(void 0),[r,a]=me.useState({isDirty:!1,isValidating:!1,isLoading:Qa(e.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},validatingFields:{},errors:e.errors||{},disabled:e.disabled||!1,isReady:!1,defaultValues:Qa(e.defaultValues)?void 0:e.defaultValues});if(!t.current)if(e.formControl)t.current={...e.formControl,formState:r},e.defaultValues&&!Qa(e.defaultValues)&&e.formControl.reset(e.defaultValues,e.resetOptions);else{const{formControl:l,...u}=Zee(e);t.current={...u,formState:r}}const i=t.current.control;return i._options=e,D1(()=>{const l=i._subscribe({formState:i._proxyFormState,callback:()=>a({...i._formState}),reRenderRoot:!0});return a(u=>({...u,isReady:!0})),i._formState.isReady=!0,l},[i]),me.useEffect(()=>i._disableForm(e.disabled),[i,e.disabled]),me.useEffect(()=>{e.mode&&(i._options.mode=e.mode),e.reValidateMode&&(i._options.reValidateMode=e.reValidateMode)},[i,e.mode,e.reValidateMode]),me.useEffect(()=>{e.errors&&(i._setErrors(e.errors),i._focusError())},[i,e.errors]),me.useEffect(()=>{e.shouldUnregister&&i._subjects.state.next({values:i._getWatch()})},[i,e.shouldUnregister]),me.useEffect(()=>{if(i._proxyFormState.isDirty){const l=i._getDirty();l!==r.isDirty&&i._subjects.state.next({isDirty:l})}},[i,r.isDirty]),me.useEffect(()=>{e.values&&!Ji(e.values,n.current)?(i._reset(e.values,{keepFieldsRef:!0,...i._options.resetOptions}),n.current=e.values,a(l=>({...l}))):i._resetDefaultValues()},[i,e.values]),me.useEffect(()=>{i._state.mount||(i._setValid(),i._state.mount=!0),i._state.watch&&(i._state.watch=!1,i._subjects.state.next({...i._formState})),i._removeUnmounted()}),t.current.formState=kR(r,i),t.current}const j5=(e,t,n)=>{if(e&&"reportValidity"in e){const r=ze(n,t);e.setCustomValidity(r&&r.message||""),e.reportValidity()}},i8=(e,t)=>{for(const n in t.fields){const r=t.fields[n];r&&r.ref&&"reportValidity"in r.ref?j5(r.ref,n,e):r&&r.refs&&r.refs.forEach(a=>j5(a,n,e))}},H5=(e,t)=>{t.shouldUseNativeValidation&&i8(e,t);const n={};for(const r in e){const a=ze(t.fields,r),i=Object.assign(e[r]||{},{ref:a&&a.ref});if(Kee(t.names||Object.keys(e),r)){const l=Object.assign({},ze(n,r));Qt(l,"root",i),Qt(n,r,l)}else Qt(n,r,i)}return n},Kee=(e,t)=>{const n=F5(t);return e.some(r=>F5(r).match(`^${n}\\.\\d+`))};function F5(e){return e.replace(/\]|\[/g,"")}function VR(e,t,n){function r(u,d){var h;Object.defineProperty(u,"_zod",{value:u._zod??{},enumerable:!1}),(h=u._zod).traits??(h.traits=new Set),u._zod.traits.add(e),t(u,d);for(const v in l.prototype)v in u||Object.defineProperty(u,v,{value:l.prototype[v].bind(u)});u._zod.constr=l,u._zod.def=d}const a=n?.Parent??Object;class i extends a{}Object.defineProperty(i,"name",{value:e});function l(u){var d;const h=n?.Parent?new i:this;r(h,u),(d=h._zod).deferred??(d.deferred=[]);for(const v of h._zod.deferred)v();return h}return Object.defineProperty(l,"init",{value:r}),Object.defineProperty(l,Symbol.hasInstance,{value:u=>n?.Parent&&u instanceof n.Parent?!0:u?._zod?.traits?.has(e)}),Object.defineProperty(l,"name",{value:e}),l}class Xee extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}}const Wee={};function zR(e){return Wee}function Jee(e,t){return typeof t=="bigint"?t.toString():t}const qR=Error.captureStackTrace?Error.captureStackTrace:(...e)=>{};function Hf(e){return typeof e=="string"?e:e?.message}function $R(e,t,n){const r={...e,path:e.path??[]};if(!e.message){const a=Hf(e.inst?._zod.def?.error?.(e))??Hf(t?.error?.(e))??Hf(n.customError?.(e))??Hf(n.localeError?.(e))??"Invalid input";r.message=a}return delete r.inst,delete r.continue,t?.reportInput||delete r.input,r}const ZR=(e,t)=>{e.name="$ZodError",Object.defineProperty(e,"_zod",{value:e._zod,enumerable:!1}),Object.defineProperty(e,"issues",{value:t,enumerable:!1}),Object.defineProperty(e,"message",{get(){return JSON.stringify(t,Jee,2)},enumerable:!0}),Object.defineProperty(e,"toString",{value:()=>e.message,enumerable:!1})},ete=VR("$ZodError",ZR),QR=VR("$ZodError",ZR,{Parent:Error}),tte=e=>(t,n,r,a)=>{const i=r?Object.assign(r,{async:!1}):{async:!1},l=t._zod.run({value:n,issues:[]},i);if(l instanceof Promise)throw new Xee;if(l.issues.length){const u=new(a?.Err??e)(l.issues.map(d=>$R(d,i,zR())));throw qR(u,a?.callee),u}return l.value},nte=tte(QR),rte=e=>async(t,n,r,a)=>{const i=r?Object.assign(r,{async:!0}):{async:!0};let l=t._zod.run({value:n,issues:[]},i);if(l instanceof Promise&&(l=await l),l.issues.length){const u=new(a?.Err??e)(l.issues.map(d=>$R(d,i,zR())));throw qR(u,a?.callee),u}return l.value},ate=rte(QR);function U5(e,t){try{var n=e()}catch(r){return t(r)}return n&&n.then?n.then(void 0,t):n}function ste(e,t){for(var n={};e.length;){var r=e[0],a=r.code,i=r.message,l=r.path.join(".");if(!n[l])if("unionErrors"in r){var u=r.unionErrors[0].errors[0];n[l]={message:u.message,type:u.code}}else n[l]={message:i,type:a};if("unionErrors"in r&&r.unionErrors.forEach(function(v){return v.errors.forEach(function(m){return e.push(m)})}),t){var d=n[l].types,h=d&&d[r.code];n[l]=T6(l,t,n,a,h?[].concat(h,r.message):r.message)}e.shift()}return n}function ite(e,t){for(var n={};e.length;){var r=e[0],a=r.code,i=r.message,l=r.path.join(".");if(!n[l])if(r.code==="invalid_union"){var u=r.errors[0][0];n[l]={message:u.message,type:u.code}}else n[l]={message:i,type:a};if(r.code==="invalid_union"&&r.errors.forEach(function(v){return v.forEach(function(m){return e.push(m)})}),t){var d=n[l].types,h=d&&d[r.code];n[l]=T6(l,t,n,a,h?[].concat(h,r.message):r.message)}e.shift()}return n}function ote(e,t,n){if(n===void 0&&(n={}),function(r){return"_def"in r&&typeof r._def=="object"&&"typeName"in r._def}(e))return function(r,a,i){try{return Promise.resolve(U5(function(){return Promise.resolve(e[n.mode==="sync"?"parse":"parseAsync"](r,t)).then(function(l){return i.shouldUseNativeValidation&&i8({},i),{errors:{},values:n.raw?Object.assign({},r):l}})},function(l){if(function(u){return Array.isArray(u?.issues)}(l))return{values:{},errors:H5(ste(l.errors,!i.shouldUseNativeValidation&&i.criteriaMode==="all"),i)};throw l}))}catch(l){return Promise.reject(l)}};if(function(r){return"_zod"in r&&typeof r._zod=="object"}(e))return function(r,a,i){try{return Promise.resolve(U5(function(){return Promise.resolve((n.mode==="sync"?nte:ate)(e,r,t)).then(function(l){return i.shouldUseNativeValidation&&i8({},i),{errors:{},values:n.raw?Object.assign({},r):l}})},function(l){if(function(u){return u instanceof ete}(l))return{values:{},errors:H5(ite(l.issues,!i.shouldUseNativeValidation&&i.criteriaMode==="all"),i)};throw l}))}catch(l){return Promise.reject(l)}};throw new Error("Invalid input: not a Zod schema")}function M1(e){return Gee({...e,resolver:ote(e.schema,void 0)})}function YR({form:e,className:t,children:n,onSubmit:r}){return g.jsx(PR,{...e,children:g.jsx("form",{onSubmit:e.handleSubmit(r),className:De("flex w-full flex-col gap-y-8",t),children:n})})}function L1({schema:e,defaultValues:t,className:n,children:r,onSubmit:a}){const i=M1({schema:e,defaultValues:t});return g.jsx(PR,{...i,children:g.jsx("form",{onSubmit:i.handleSubmit(a),className:De("flex w-full flex-col gap-y-8",n),children:r})})}const GR=p.createContext({}),I1=({...e})=>g.jsx(GR.Provider,{value:{name:e.name},children:g.jsx(Mee,{...e})}),j1=()=>{const e=p.useContext(GR),t=p.useContext(KR),{getFieldState:n,formState:r}=as(),a=n(e.name,r);if(!e)throw new Error("useFormField should be used within <FormField>");const{id:i}=t;return{id:i,name:e.name,formItemId:`${i}-form-item`,formDescriptionId:`${i}-form-item-description`,formMessageId:`${i}-form-item-message`,...a}},KR=p.createContext({});function w6(e){const{className:t,...n}=e,r=p.useId();return g.jsx(KR.Provider,{value:{id:r},children:g.jsx("div",{className:De("flex flex-col gap-y-2",t),...n})})}function C6(e){const{className:t,...n}=e,{error:r,formItemId:a}=j1();return g.jsx(sl,{className:De(r&&"text-destructive",t),htmlFor:a,...n})}function R6(e){const{error:t,formItemId:n,formDescriptionId:r,formMessageId:a}=j1();return g.jsx(br,{id:n,"aria-describedby":t?`${r} ${a}`:`${r}`,"aria-invalid":!!t,...e})}function O6(e){const{className:t,...n}=e,{formDescriptionId:r}=j1();return g.jsx("p",{id:r,className:De("text-fg-subtle text-xs",t),...n})}function N6(e){const{className:t,children:n,...r}=e,{error:a,formMessageId:i}=j1(),l=a?String(a?.message??""):n;return l?g.jsx("p",{id:i,className:De("text-accent-red text-sm",t),...r,children:l}):null}function o0({className:e,type:t,...n}){return g.jsx("input",{type:t,className:De("flex h-8 w-full min-w-0 rounded-md border border-input bg-surface px-3 py-1 text-sm shadow-xs outline-none transition-[color,box-shadow] file:inline-flex file:h-7 file:border-0 file:bg-transparent file:font-medium file:text-foreground file:text-sm placeholder:text-muted-foreground/70 disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50","focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50","aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40",t==="search"&&"[&::-webkit-search-cancel-button]:appearance-none [&::-webkit-search-decoration]:appearance-none [&::-webkit-search-results-button]:appearance-none [&::-webkit-search-results-decoration]:appearance-none",t==="file"&&"p-0 pr-3 text-muted-foreground/70 italic file:me-3 file:h-full file:border-0 file:border-input file:border-r file:border-solid file:bg-transparent file:px-3 file:font-medium file:text-foreground file:text-sm file:not-italic",e),...n})}function pi({description:e,label:t,name:n,helperLabel:r,hideErrors:a=!1,...i}){const l=as();return g.jsx(I1,{control:l.control,name:n,render:({field:u})=>g.jsx(w6,{children:g.jsxs("div",{className:"flex flex-col gap-1",children:[(t||r)&&g.jsxs("div",{className:"flex flex-row items-center",children:[t&&g.jsx(C6,{children:t}),r&&g.jsx(sl,{className:"ml-auto text-fg-subtle/70",children:r})]}),g.jsx(R6,{children:g.jsx(o0,{...i,...u})}),e&&g.jsx(O6,{children:e}),!a&&g.jsx(N6,{})]})})})}const XR=({className:e,children:t,...n})=>g.jsxs("div",{className:"relative flex w-full",children:[g.jsx("select",{"data-slot":"select-native",className:De("peer inline-flex cursor-pointer appearance-none items-center rounded-md border border-input bg-surface text-foreground text-sm shadow-xs outline-none transition-[color,box-shadow] focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 has-[option[disabled]:checked]:text-muted-foreground aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40",n.multiple?"py-1 *:px-3 *:py-1 [&_option:checked]:bg-accent":"h-8 ps-3 pe-8",e),...n,children:t}),!n.multiple&&g.jsx("span",{className:"pointer-events-none absolute inset-y-0 end-2 flex h-full items-center justify-center text-muted-foreground/80 peer-disabled:opacity-50 peer-aria-invalid:text-destructive/80",children:g.jsx(JT,{className:"size-3",weight:"bold","aria-hidden":"true"})})]});function o8({className:e,description:t,label:n,name:r,helperLabel:a,hideErrors:i=!1,...l}){const u=as();return g.jsx(I1,{control:u.control,name:r,render:({field:d})=>g.jsx(w6,{children:g.jsxs("div",{className:"flex flex-col gap-1",children:[(n||a)&&g.jsxs("div",{className:"flex flex-row items-center",children:[n&&g.jsx(C6,{children:n}),a&&g.jsx(sl,{className:"ml-auto text-fg-subtle/70",children:a})]}),g.jsx(R6,{children:g.jsx(XR,{className:De("w-full",e),...l,...d})}),t&&g.jsx(O6,{children:t}),!i&&g.jsx(N6,{})]})})})}function Mh({registryEntry:e,proxies:t,defaultProxyId:n,onClickCancel:r,onSubmit:a,isSubmitting:i=!1}){const l=(e.parameters??[]).filter((m,E,b)=>b.findIndex(T=>T.name===m.name)===E),u=(t??[]).filter(m=>m.servers.some(E=>E.name===e.name)).map(m=>m.id),d=t?.filter(m=>!u.includes(m.id));if(t&&t.length>0&&u.length===t.length)return g.jsx(ks,{children:g.jsx(ju,{children:"This MCP has already been installed on all your proxies."})});const h=Be({...d&&d.length>0&&{proxyId:le()},parameters:Be(l.reduce((m,E)=>(m[E.name]=le().trim().min(1,"Required"),m),{}))}),v={...d&&d.length>0&&{proxyId:n??d[0]?.id??""},parameters:l.reduce((m,E)=>(m[E.name]="",m),{})};return g.jsxs(L1,{schema:h,defaultValues:v,className:"gap-y-0 overflow-hidden rounded-xl bg-accent-subtle shadow-[0_0_0_0.5px_rgba(55,50,46,0.15)]",onSubmit:m=>{a({proxyId:d&&d.length>0?m.proxyId:void 0,entryId:e.id,parameters:m.parameters})},children:[g.jsxs("div",{className:"flex flex-col gap-y-4 p-4",children:[d&&d.length>0&&g.jsx(o8,{name:"proxyId",label:"Select a proxy",children:d.map(m=>g.jsx("option",{value:m.id,children:m.name},m.id))}),l.map(m=>g.jsx(pi,{type:m.password?"password":"text",name:`parameters.${m.name}`,label:m.name,helperLabel:m.required?void 0:"Optional",description:g.jsx($J,{children:m.description}),autoCorrect:"off",spellCheck:!1},m.name))]}),g.jsxs("div",{className:"border-fg/7 border-t-[0.5px] bg-accent px-4 py-2.5",children:[g.jsx(Yt,{type:"submit",disabled:i,className:"w-full",children:i?"Installing...":"Add to proxy"}),r&&g.jsx(Yt,{className:"mt-2 w-full bg-surface/50",variant:"secondary",onClick:r,disabled:i,type:"button",children:"Cancel"})]})]})}const WR=({children:e})=>g.jsx("div",{className:"flex flex-row gap-x-8",children:e}),JR=({children:e})=>g.jsx("div",{className:"flex min-w-0 grow flex-col gap-y-12 lg:gap-y-16",children:e}),eO=({children:e})=>g.jsx("div",{className:"hidden w-xs shrink-0 flex-col lg:flex",children:g.jsx("div",{className:"sticky top-0 flex flex-col gap-y-8",children:e})}),lte=Hd(["grid w-full auto-rows-min","gap-x-4 gap-y-12 md:gap-x-8 lg:gap-x-12 lg:gap-y-16","*:col-span-1 *:col-start-2"],{variants:{size:{xs:["grid-cols-[1fr_min(24rem,_calc(100%-1rem*2))_1fr]","md:grid-cols-[1fr_min(24rem,_calc(100%-2rem*2))_1fr]","lg:grid-cols-[1fr_min(24rem,_calc(100%-3rem*2))_1fr]"],sm:["grid-cols-[1fr_min(30rem,_calc(100%-1rem*2))_1fr]","md:grid-cols-[1fr_min(30rem,_calc(100%-2rem*2))_1fr]","lg:grid-cols-[1fr_min(30rem,_calc(100%-3rem*2))_1fr]"],md:["grid-cols-[1fr_min(40rem,_calc(100%-1rem*2))_1fr]","md:grid-cols-[1fr_min(40rem,_calc(100%-2rem*2))_1fr]","lg:grid-cols-[1fr_min(40rem,_calc(100%-3rem*2))_1fr]"],lg:["grid-cols-[1fr_min(50rem,_calc(100%-1rem*2))_1fr]","md:grid-cols-[1fr_min(50rem,_calc(100%-2rem*2))_1fr]","lg:grid-cols-[1fr_min(50rem,_calc(100%-3rem*2))_1fr]"],xl:["grid-cols-[1fr_min(70rem,_calc(100%-1rem*2))_1fr]","md:grid-cols-[1fr_min(70rem,_calc(100%-2rem*2))_1fr]","lg:grid-cols-[1fr_min(70rem,_calc(100%-3rem*2))_1fr]"]}},defaultVariants:{size:"md"}});function Ia({children:e,className:t,asChild:n,size:r,...a}){const i=n?br:"div";return g.jsx(i,{className:De(lte({size:r}),t),...a,children:e})}const tO=B4,ute=V4,cte=z4;function dte({className:e,...t}){return g.jsx(m1,{className:De("overlay",e),...t})}function nO({className:e,children:t,dismissable:n=!0,...r}){return g.jsxs(cte,{children:[g.jsx(dte,{}),g.jsxs(p1,{className:De("popover rounded-xl","fixed inset-x-1 top-1 z-50 grid outline-none duration-200","sm:top-12 sm:left-[50%] sm:w-full sm:max-w-md sm:translate-x-[-50%]","radix-state-[open]:fade-in-0 radix-state-[open]:zoom-in-95 radix-state-[open]:slide-in-from-top-[48%] radix-state-[open]:animate-in","radix-state-[closed]:fade-out-0 radix-state-[closed]:zoom-out-95 radix-state-[closed]:slide-out-to-top-[48%] radix-state-[closed]:animate-out",e),...r,children:[t,n&&g.jsx(g1,{className:De("absolute top-1 right-1 rounded-lg"),asChild:!0,children:g.jsxs(Yt,{variant:"secondary",size:"icon",children:[g.jsx(qh,{className:"size-4"}),g.jsx("span",{className:"sr-only",children:"Close"})]})})]})]})}function fte({className:e,...t}){return g.jsx("div",{className:De("flex flex-col gap-y-1 p-5 text-start",e),...t})}function rO({className:e,...t}){return g.jsx(q4,{className:De(yi({variant:"h2"}),"text-fg",e),...t})}function aO({className:e,...t}){return g.jsx($4,{className:De(yi({variant:"p"}),"text-fg-subtle",e),...t})}function hte({registryEntry:e,isRegistryEntryLoading:t,proxies:n,entryInstalledOn:r=[],onClickInstall:a,isInstalling:i,open:l,onOpenChange:u}){const d=e;return g.jsx(tO,{open:l,onOpenChange:u,children:g.jsxs(nO,{className:"!max-w-none !inset-1 !translate-0 !w-auto flex flex-col py-10",children:[g.jsxs(Z4,{children:[g.jsxs(rO,{className:"pt-4",children:["Install ",d?.title]}),g.jsx(aO,{children:d?.description})]}),g.jsx(Ia,{size:"xl",children:g.jsxs(WR,{children:[g.jsx(JR,{children:d&&g.jsx(_R,{entry:d,onToolClick:()=>{}})}),g.jsx(eO,{children:g.jsx("div",{className:"sticky top-0 flex flex-col gap-y-8",children:g.jsxs(Wt,{children:[g.jsx(Jt,{children:g.jsx(en,{variant:"h3",asChild:!0,children:g.jsx("h3",{children:"Add to proxy"})})}),d&&g.jsx(Mh,{registryEntry:d,proxies:n,onSubmit:a,isSubmitting:i,onClickCancel:()=>u(!1)})]})})})]})}),g.jsx("div",{className:"-bottom-5 sticky inset-x-0 px-4 pt-4 md:hidden",children:g.jsx("div",{className:"rounded-xl bg-accent-subtle p-4 shadow-[0_0_0_0.5px_rgba(55,50,46,0.2)]",children:d&&g.jsx(Mh,{registryEntry:d,proxies:n,onSubmit:a,isSubmitting:i,onClickCancel:()=>u(!1)})})})]})})}function mte({registryEntry:e,isRegistryEntryLoading:t,proxies:n,entryInstalledOn:r=[],onClickInstall:a,isInstalling:i,open:l,onOpenChange:u}){return g.jsx(hte,{registryEntry:e,isRegistryEntryLoading:t,proxies:n,entryInstalledOn:r,onClickInstall:a,isInstalling:i,open:l,onOpenChange:u})}function pte({name:e,...t}){const n=as();return g.jsx(I1,{control:n.control,name:e,render:({field:r})=>g.jsx(o0,{type:"hidden",...t,...r})})}function P6({className:e,...t}){const n="\\|/—",[r,a]=p.useState(0);return gte(()=>{a(i=>(i+1)%n.length)},100),g.jsxs("span",{className:De("font-mono",e),...t,children:["[",n[r],"]"]})}function gte(e,t){const n=p.useRef(e);vte(()=>{n.current=e},[e]),p.useEffect(()=>{const r=setInterval(()=>{n.current()},t);return()=>{clearInterval(r)}},[t])}const vte=typeof window<"u"?p.useLayoutEffect:p.useEffect,sO=Be({name:le().trim().min(1,"Required"),description:le().trim().optional().transform(e=>e===""?void 0:e)});function yte({form:e,isPending:t,onSubmit:n}){return g.jsxs(YR,{className:"gap-y-4",form:e,onSubmit:async r=>{await n(r)},children:[g.jsx(pi,{label:"Name",name:"name",placeholder:"My Proxy"}),g.jsx(pte,{name:"description"}),g.jsx(Yt,{size:"default",className:"self-start",type:"submit",disabled:t,children:t?g.jsx(P6,{className:"text-fg-subtle"}):"Create proxy"})]})}function H1({className:e,...t}){return g.jsx("svg",{viewBox:"0 0 40 40",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:De("-rotate-8 size-8 shrink-0 origin-center",e),...t,children:g.jsx("path",{d:"M22 0C28.3006 0 31.4509 0.00038593 33.8574 1.22656C35.9741 2.30511 37.6949 4.0259 38.7734 6.14258C39.9996 8.54909 40 11.6994 40 18V22C40 28.3006 39.9996 31.4509 38.7734 33.8574C37.6949 35.9741 35.9741 37.6949 33.8574 38.7734C31.4509 39.9996 28.3006 40 22 40H18C11.6994 40 8.54908 39.9996 6.14258 38.7734C4.0259 37.6949 2.30511 35.9741 1.22656 33.8574C0.00038593 31.4509 0 28.3006 0 22L0 18C0 11.6994 0.00038593 8.54908 1.22656 6.14258C2.30511 4.0259 4.0259 2.30511 6.14258 1.22656C8.54909 0.000385852 11.6994 0 18 0L22 0ZM31.373 17.5C30.7509 17.5002 30.2471 18.0048 30.2471 18.627V28.6533L19.4229 17.8301C18.9829 17.3903 18.27 17.3902 17.8301 17.8301C17.3902 18.27 17.3903 18.9829 17.8301 19.4229L28.6533 30.2471H18.627C18.0048 30.2471 17.5002 30.7509 17.5 31.373C17.5 31.9952 18.0047 32.5 18.627 32.5H31.373C31.6718 32.5 31.9586 32.3812 32.1699 32.1699C32.3812 31.9586 32.5 31.6718 32.5 31.373V18.627C32.5 18.0047 31.9952 17.5 31.373 17.5Z",fill:"currentcolor"})})}function bte({title:e="Get started",description:t="Let's get your started with MCP using Director."}){return g.jsxs(g.Fragment,{children:[g.jsx(H1,{className:"mx-auto"}),g.jsxs(Jt,{className:"items-center gap-y-1.5 text-center",children:[g.jsx(en,{className:"font-medium text-2xl",children:e}),g.jsx(Ls,{className:"text-base",children:t})]})]})}var iO="Toggle",oO=p.forwardRef((e,t)=>{const{pressed:n,defaultPressed:r,onPressedChange:a,...i}=e,[l,u]=Pa({prop:n,onChange:a,defaultProp:r??!1,caller:iO});return g.jsx(xt.button,{type:"button","aria-pressed":l,"data-state":l?"on":"off","data-disabled":e.disabled?"":void 0,...i,ref:t,onClick:ut(e.onClick,()=>{e.disabled||u(!l)})})});oO.displayName=iO;var po="ToggleGroup",[lO,xie]=Qr(po,[ku]),uO=ku(),k6=me.forwardRef((e,t)=>{const{type:n,...r}=e;if(n==="single"){const a=r;return g.jsx(Ete,{...a,ref:t})}if(n==="multiple"){const a=r;return g.jsx(xte,{...a,ref:t})}throw new Error(`Missing prop \`type\` expected on \`${po}\``)});k6.displayName=po;var[cO,dO]=lO(po),Ete=me.forwardRef((e,t)=>{const{value:n,defaultValue:r,onValueChange:a=()=>{},...i}=e,[l,u]=Pa({prop:n,defaultProp:r??"",onChange:a,caller:po});return g.jsx(cO,{scope:e.__scopeToggleGroup,type:"single",value:me.useMemo(()=>l?[l]:[],[l]),onItemActivate:u,onItemDeactivate:me.useCallback(()=>u(""),[u]),children:g.jsx(fO,{...i,ref:t})})}),xte=me.forwardRef((e,t)=>{const{value:n,defaultValue:r,onValueChange:a=()=>{},...i}=e,[l,u]=Pa({prop:n,defaultProp:r??[],onChange:a,caller:po}),d=me.useCallback(v=>u((m=[])=>[...m,v]),[u]),h=me.useCallback(v=>u((m=[])=>m.filter(E=>E!==v)),[u]);return g.jsx(cO,{scope:e.__scopeToggleGroup,type:"multiple",value:l,onItemActivate:d,onItemDeactivate:h,children:g.jsx(fO,{...i,ref:t})})});k6.displayName=po;var[_te,Tte]=lO(po),fO=me.forwardRef((e,t)=>{const{__scopeToggleGroup:n,disabled:r=!1,rovingFocus:a=!0,orientation:i,dir:l,loop:u=!0,...d}=e,h=uO(n),v=Fd(l),m={role:"group",dir:v,...d};return g.jsx(_te,{scope:n,rovingFocus:a,disabled:r,children:a?g.jsx(s4,{asChild:!0,...h,orientation:i,dir:v,loop:u,children:g.jsx(xt.div,{...m,ref:t})}):g.jsx(xt.div,{...m,ref:t})})}),Lh="ToggleGroupItem",hO=me.forwardRef((e,t)=>{const n=dO(Lh,e.__scopeToggleGroup),r=Tte(Lh,e.__scopeToggleGroup),a=uO(e.__scopeToggleGroup),i=n.value.includes(e.value),l=r.disabled||e.disabled,u={...e,pressed:i,disabled:l},d=me.useRef(null);return r.rovingFocus?g.jsx(i4,{asChild:!0,...a,focusable:!l,active:i,ref:d,children:g.jsx(B5,{...u,ref:t})}):g.jsx(B5,{...u,ref:t})});hO.displayName=Lh;var B5=me.forwardRef((e,t)=>{const{__scopeToggleGroup:n,value:r,...a}=e,i=dO(Lh,n),l={role:"radio","aria-checked":e.pressed,"aria-pressed":void 0},u=i.type==="single"?l:void 0;return g.jsx(oO,{...u,...a,ref:t,onPressedChange:d=>{d?i.onItemActivate(r):i.onItemDeactivate(r)}})}),Ate=k6,Ste=hO;function wte({selectedClient:e,onClientSelect:t,clients:n,isLoading:r,isInstalling:a,onInstall:i}){return g.jsxs("div",{className:"flex flex-col gap-y-4 p-4",children:[g.jsx(Ate,{type:"single",value:e,onValueChange:l=>{t(l)},className:"group flex flex-row items-center justify-center gap-x-2",children:p.Children.toArray(n.filter(l=>l.type==="installer").map(l=>{const u=l.installed;return g.jsxs(Ste,{value:l.id,className:De("group relative flex flex-1 flex-col items-center gap-y-1 overflow-hidden rounded-lg bg-accent p-3","cursor-pointer hover:bg-accent-subtle","disabled:cursor-not-allowed disabled:opacity-50 disabled:hover:bg-accent","outline-none ring-2 ring-transparent ring-offset-2 ring-offset-surface","focus-visible:bg-accent-subtle focus-visible:ring-accent","radix-state-[on]:ring-fg"),disabled:a||r||!u,children:[g.jsx("img",{src:l.image,alt:"Claude",width:64,height:64}),g.jsx(da,{className:"font-[450] text-fg/80 capitalize",children:l.label})]},l.id)}))}),g.jsx(Yt,{className:"self-end",disabled:!e||a,onClick:()=>{e&&i(e)},children:a?"Connecting…":"Connect"})]})}var F1="Collapsible",[Cte,mO]=Qr(F1),[Rte,D6]=Cte(F1),pO=p.forwardRef((e,t)=>{const{__scopeCollapsible:n,open:r,defaultOpen:a,disabled:i,onOpenChange:l,...u}=e,[d,h]=Pa({prop:r,defaultProp:a??!1,onChange:l,caller:F1});return g.jsx(Rte,{scope:n,disabled:i,contentId:Ts(),open:d,onOpenToggle:p.useCallback(()=>h(v=>!v),[h]),children:g.jsx(xt.div,{"data-state":L6(d),"data-disabled":i?"":void 0,...u,ref:t})})});pO.displayName=F1;var gO="CollapsibleTrigger",vO=p.forwardRef((e,t)=>{const{__scopeCollapsible:n,...r}=e,a=D6(gO,n);return g.jsx(xt.button,{type:"button","aria-controls":a.contentId,"aria-expanded":a.open||!1,"data-state":L6(a.open),"data-disabled":a.disabled?"":void 0,disabled:a.disabled,...r,ref:t,onClick:ut(e.onClick,a.onOpenToggle)})});vO.displayName=gO;var M6="CollapsibleContent",yO=p.forwardRef((e,t)=>{const{forceMount:n,...r}=e,a=D6(M6,e.__scopeCollapsible);return g.jsx(ka,{present:n||a.open,children:({present:i})=>g.jsx(Ote,{...r,ref:t,present:i})})});yO.displayName=M6;var Ote=p.forwardRef((e,t)=>{const{__scopeCollapsible:n,present:r,children:a,...i}=e,l=D6(M6,n),[u,d]=p.useState(r),h=p.useRef(null),v=xn(t,h),m=p.useRef(0),E=m.current,b=p.useRef(0),T=b.current,A=l.open||u,S=p.useRef(A),w=p.useRef(void 0);return p.useEffect(()=>{const R=requestAnimationFrame(()=>S.current=!1);return()=>cancelAnimationFrame(R)},[]),Na(()=>{const R=h.current;if(R){w.current=w.current||{transitionDuration:R.style.transitionDuration,animationName:R.style.animationName},R.style.transitionDuration="0s",R.style.animationName="none";const k=R.getBoundingClientRect();m.current=k.height,b.current=k.width,S.current||(R.style.transitionDuration=w.current.transitionDuration,R.style.animationName=w.current.animationName),d(r)}},[l.open,r]),g.jsx(xt.div,{"data-state":L6(l.open),"data-disabled":l.disabled?"":void 0,id:l.contentId,hidden:!A,...i,ref:v,style:{"--radix-collapsible-content-height":E?`${E}px`:void 0,"--radix-collapsible-content-width":T?`${T}px`:void 0,...e.style},children:A&&a})});function L6(e){return e?"open":"closed"}var bO=pO,EO=vO,xO=yO;function Nte({className:e,children:t,...n}){return g.jsx("div",{"data-slot":"get-started-list",className:De("flex flex-col gap-y-3",e),...n,children:t})}function ug({className:e,children:t,title:n,status:r="not-started",...a}){return g.jsxs(bO,{"data-slot":"get-started-list-item",className:De("rounded-2xl",a.disabled?"bg-accent":"popover",e),...a,children:[g.jsxs(EO,{"data-slot":"get-started-list-item-trigger",tabIndex:-1,className:"group flex w-full flex-row items-center justify-between gap-x-2 py-3.5 pr-3.5 pl-3.5 text-start outline-none disabled:cursor-default",children:[(()=>{switch(r){case"completed":return g.jsx(tA,{weight:"fill",className:"size-6 text-success-fg"});case"in-progress":return g.jsx(nA,{weight:"fill",className:"size-6 text-fg/75"});case"not-started":return g.jsx(F8,{weight:"fill",className:"size-6 text-fg/30"})}})(),g.jsx("span",{className:"flex-1 font-[450] text-[15px] leading-6 tracking-[0.01em]",children:n})]}),g.jsx(xO,{"data-slot":"get-started-list-item-content",className:"border-t-[0.5px]",children:t})]})}function Pte({searchQuery:e,onSearchQueryChange:t,registryEntries:n,onMcpSelect:r}){return g.jsxs(g.Fragment,{children:[g.jsx("div",{className:"relative z-10 px-2 pt-2",children:g.jsx(o0,{type:"text",placeholder:"Search MCP servers...",value:e,onChange:a=>t(a.target.value)})}),g.jsxs("div",{className:"grid max-h-[320px] grid-cols-1 gap-1 overflow-y-auto p-2",children:[n.sort((a,i)=>a.title.localeCompare(i.title)).map(a=>g.jsxs("div",{className:"flex cursor-pointer flex-row items-center gap-x-3 rounded-lg bg-accent-subtle/60 px-2.5 py-1.5 hover:bg-accent",onClick:()=>r(a),children:[g.jsx(v1,{src:a.icon}),g.jsxs(Ra,{children:[g.jsx(da,{children:a.title}),g.jsx(Wd,{children:a.description})]})]},a.id)),n.length===0&&g.jsx(ks,{className:"bg-accent-subtle/60",children:g.jsx(bi,{children:"No MCP servers found"})})]})]})}function kte(e){const{currentWorkspace:t,registryEntries:n,clientStatuses:r,isAddingWorkspaceToClient:a,isCreateWorkspaceLoading:i,onCreateWorkspace:l,searchQuery:u,onSearchQueryChange:d,onClickRegistryEntry:h,onAddWorkspaceToClient:v}=e,[m,E]=p.useState(),b=M1({schema:sO,defaultValues:{name:"",description:"A proxy for getting started"}}),T=!!t,A=(t?.servers?.length??0)>0,S=p.useMemo(()=>({create:T?"completed":"in-progress",add:T?A?"completed":"in-progress":"not-started",connect:T&&A?"in-progress":"not-started"}),[T,A]);return g.jsx(Ia,{size:"sm",className:"py-12 lg:py-16",children:g.jsxs(Wt,{className:"gap-y-8",children:[g.jsx(bte,{title:"Get started",description:"Let's get you started with MCP using Director."}),g.jsxs(Nte,{children:[g.jsx(ug,{status:S.create,title:"Create an MCP Proxy Server",disabled:S.create==="completed",open:S.create==="in-progress",children:g.jsx("div",{className:"py-4 pr-4 pl-11.5",children:g.jsx(yte,{form:b,isPending:i,onSubmit:l})})}),g.jsx(ug,{status:S.add,title:"Add your first MCP server",open:S.add==="in-progress",disabled:S.add!=="in-progress",children:g.jsx(Pte,{searchQuery:u,onSearchQueryChange:d,registryEntries:n,onMcpSelect:h})}),g.jsx(ug,{status:S.connect,title:"Connect your first client",open:S.connect==="in-progress",disabled:S.connect!=="in-progress",children:g.jsx(wte,{selectedClient:m,onClientSelect:E,clients:r,isLoading:!1,isInstalling:a,onInstall:v})})]})]})})}const Dte=()=>g.jsx("div",{className:"flex h-screen w-screen items-center justify-center",children:g.jsx(H1,{className:"size-10 animate-pulse"})}),V5=[{id:"claude",label:"Claude",image:new URL("/studio/assets/claude-icon-C3oFA7Zy.png",import.meta.url).href,type:"installer"},{id:"cursor",label:"Cursor",image:new URL("/studio/assets/cursor-icon-BKdzddOD.png",import.meta.url).href,type:"installer"},{id:"vscode",label:"VSCode",image:new URL("/studio/assets/code-icon-BlGhXKkY.png",import.meta.url).href,type:"installer"},{id:"goose",label:"Goose",image:new URL("/studio/assets/goose-icon-CLHAMlFc.png",import.meta.url).href,type:"deep-link"},{id:"raycast",label:"Raycast",image:new URL("/studio/assets/raycast-icon-CDiKLAih.png",import.meta.url).href,type:"deep-link"}];function _O(e){const[t,n]=En.useQueries(u=>[u.installer.byProxy.list({proxyId:e}),u.installer.allClients()]),r=n.isLoading||t.isLoading,a=r?null:n.data?.map(u=>{const d=V5.find(h=>h.id===u.name);return!d||d.type!=="installer"?null:{id:d.id,label:d.label,image:d.image,type:d.type,installed:u.installed,present:!!t?.data?.[u.name]}}).filter(u=>u!==null)??[],i=V5.filter(u=>u.type==="deep-link").map(u=>({...u}));return{data:(r?null:[...a??[],...i])??void 0,isLoading:r}}function TO(e){return Kd.entries.getEntries.useQuery({pageIndex:e.pageIndex,pageSize:e.pageSize,searchQuery:e.searchQuery},{placeholderData:t=>t})}function Mte(){const e=es(),[t,n]=p.useState(""),[r,a]=p.useState(null),[i,l]=p.useState(null),[u,d]=p.useState(!1),[h,v]=p.useState(!1),m=En.useUtils(),E=Xd(),b=TO({pageIndex:0,pageSize:20,searchQuery:t}),T=En.installer.byProxy.list.useQuery({proxyId:r},{enabled:!!r}),A=_O(r),S=En.registry.getEntryByName.useQuery({name:i||""},{enabled:!!i&&u});M1({schema:sO,defaultValues:{name:"",description:"A proxy for getting started"}});const w=En.store.create.useMutation({onSuccess:async()=>{await m.store.getAll.refetch(),ur({title:"Proxy created",description:"This proxy was successfully created."})}}),R=En.installer.byProxy.install.useMutation({onSuccess:()=>{m.installer.byProxy.list.invalidate(),ur({title:"Proxy installed",description:"This proxy was successfully installed"}),v(!0)},onError:F=>{ur({title:"Error",description:F.message})}}),k=En.registry.getTransportForEntry.useMutation(),L=En.store.addServer.useMutation({onError:F=>{ur({title:"Error",description:F.message})},onSuccess:F=>{m.store.getAll.invalidate(),ur({title:"Proxy installed",description:"This proxy was successfully installed."}),d(!1)}});p.useEffect(()=>{E.data&&E.data.length===1&&a(E.data[0].id)},[E.data]);const I=E.data&&b.data,M=E.data&&E.data.length>0?E.data[0]:null;T.data&&Object.values(T.data).some(Boolean);const D=async F=>{await w.mutateAsync({...F,servers:[]})},B=F=>{M?.id&&R.mutate({proxyId:M.id,client:F,baseUrl:Iu})},P=F=>{l(F.name),d(!0)},U=async F=>{if(!i)return;const Q=await k.mutateAsync({entryName:i,parameters:F.parameters??{}});F.proxyId&&L.mutate({proxyId:F.proxyId,server:{name:i,transport:Q}})};return I?g.jsxs(g.Fragment,{children:[g.jsx(kte,{currentWorkspace:M,registryEntries:b.data?.entries??[],clientStatuses:A.data??[],isAddingWorkspaceToClient:R.isPending,isCreateWorkspaceLoading:w.isPending,onCreateWorkspace:D,searchQuery:t,onSearchQueryChange:n,onClickRegistryEntry:P,onAddWorkspaceToClient:B}),i&&g.jsx(mte,{registryEntry:S.data,isRegistryEntryLoading:S.isLoading,proxies:E.data,entryInstalledOn:[],onClickInstall:U,isInstalling:L.isPending,open:u,onOpenChange:d}),g.jsx(Hz,{open:h,onClickLibrary:()=>e("/library"),onClickWorkspace:()=>e("/")})]}):g.jsx(Dte,{})}function Lte({onSubmit:e,isSubmitting:t=!1,defaultValues:n}){const r=Be({email:le().email("Please enter a valid email address"),password:le().min(1,"Password is required")});return g.jsxs(L1,{schema:r,defaultValues:n||{email:"",password:""},className:"gap-y-0 overflow-hidden rounded-xl bg-accent-subtle shadow-[0_0_0_0.5px_rgba(55,50,46,0.15)]",onSubmit:a=>{e({email:a.email,password:a.password})},children:[g.jsxs("div",{className:"flex flex-col gap-y-4 p-4",children:[g.jsx(pi,{type:"email",name:"email",label:"Email",placeholder:"Enter your email",autoComplete:"email",autoCorrect:"off",spellCheck:!1}),g.jsx(pi,{type:"password",name:"password",label:"Password",placeholder:"Enter your password",autoComplete:"current-password",autoCorrect:"off",spellCheck:!1})]}),g.jsx("div",{className:"border-fg/7 border-t-[0.5px] bg-accent px-4 py-2.5",children:g.jsx(Yt,{type:"submit",disabled:t,className:"w-full",children:t?"Signing in...":"Sign in"})})]})}function Ite(e){const{error:t,isLoading:n,defaultValues:r,onSubmit:a}=e;return g.jsx(g.Fragment,{children:g.jsx("div",{className:"flex min-h-dvh w-full items-center justify-center",children:g.jsx(Ia,{size:"sm",className:"w-full py-12 lg:py-16",children:g.jsxs(Wt,{className:"gap-y-8",children:[g.jsx(H1,{className:"mx-auto"}),g.jsxs(Jt,{className:"items-center gap-y-1.5 text-center",children:[g.jsx(en,{className:"font-medium text-2xl",children:"Welcome to Director"}),g.jsx(Ls,{className:"text-base",children:"Please log in to continue"})]}),t&&g.jsxs("div",{style:{color:"red"},children:["ERROR: ",t.message]}),g.jsx(Lte,{defaultValues:r,onSubmit:a,isSubmitting:n})]})})})})}function jte(){const[e,t]=p.useState(!1),[n,r]=p.useState(null),a=es(),{login:i}=i1();return g.jsx(Ite,{error:n,defaultValues:{email:"barnaby@example.com",password:"password"},onSubmit:async l=>{try{await t(!0),await i(l),a("/")}catch(u){await r(u)}finally{await t(!1)}},isLoading:e})}const U1=p.forwardRef(({...e},t)=>g.jsx("nav",{ref:t,"aria-label":"breadcrumb",...e}));U1.displayName="Breadcrumb";const B1=p.forwardRef(({className:e,...t},n)=>g.jsx("ol",{ref:n,className:De("flex flex-wrap items-center gap-1.5 break-words text-[13px] text-fg-subtle",e),...t}));B1.displayName="BreadcrumbList";const Dd=p.forwardRef(({className:e,...t},n)=>g.jsx("li",{ref:n,className:De("inline-flex min-w-0 max-w-[16ch] items-center gap-1.5 overflow-hidden",e),...t}));Dd.displayName="BreadcrumbItem";const AO=p.forwardRef(({asChild:e,className:t,...n},r)=>{const a=e?br:"a";return g.jsx(a,{ref:r,className:De("truncate font-normal text-fg transition-colors hover:text-fg-subtle",t),...n})});AO.displayName="BreadcrumbLink";const Md=p.forwardRef(({className:e,...t},n)=>g.jsx("span",{ref:n,role:"link","aria-disabled":"true","aria-current":"page",className:De("truncate font-medium text-fg",e),...t}));Md.displayName="BreadcrumbPage";const V1=({children:e,className:t,...n})=>g.jsx("li",{role:"presentation","aria-hidden":"true",className:De("[&>svg]:size-3",t),...n,children:e??g.jsx(Vh,{weight:"bold"})});V1.displayName="BreadcrumbSeparator";const z1=B4,Hte=V4,Fte=g1,SO=z4;function Ute({className:e,...t}){return g.jsx(m1,{className:De("overlay",e),...t})}function I6({className:e,children:t,...n}){return g.jsxs(SO,{children:[g.jsx(Ute,{}),g.jsx(p1,{className:De("popover fixed inset-y-1 right-1 z-50 flex w-[calc(100%-0.5rem)] flex-col overflow-hidden rounded-xl transition ease-in-out sm:max-w-xl","shadow-[0_0_10px_6px_rgba(55,50,46,0.13),_0_0_0_0.5px_rgba(55,50,46,0.25)]","radix-state-[open]:slide-in-from-right radix-state-[open]:animate-in radix-state-[open]:duration-300","radix-state-[closed]:slide-out-to-right radix-state-[closed]:animate-out radix-state-[closed]:duration-200",e),...n,children:t})]})}function j6({className:e,...t}){return g.jsx("div",{className:De("flex flex-1 flex-col gap-y-10 overflow-y-auto overflow-x-hidden p-6 pt-10",e),...t})}function H6({className:e,children:t,...n}){return g.jsxs("div",{className:De("flex flex-row-reverse items-center justify-start gap-x-1 border-accent border-b-[0.5px] px-3 py-2",e),...n,children:[g.jsx(Fte,{asChild:!0,children:g.jsxs(Yt,{size:"icon",variant:"secondary",children:[g.jsx(qh,{}),g.jsx("span",{className:"sr-only",children:"Close"})]})}),t]})}const F6=({className:e,...t})=>g.jsx("div",{className:De("flex flex-col gap-y-2 text-left",e),...t});function U6({className:e,...t}){return g.jsx(q4,{className:De(yi({variant:"h1"}),e),...t})}function B6({className:e,...t}){return g.jsx($4,{className:De(yi({variant:"p"}),"text-fg-subtle",e),...t})}function wO({sections:e}){return g.jsxs("div",{className:"flex h-full w-full shrink-0 flex-col gap-y-6 px-4 pt-6 *:last:pb-4",children:[g.jsx("div",{className:"px-2",children:g.jsx(H1,{className:"size-6"})}),e.map((t,n)=>g.jsxs(EH,{className:De(t.className,n===e.length-1?"mt-auto":void 0),children:[t.label&&g.jsx(xH,{label:t.label}),t.isLoading?new Array(3).fill(0).map((r,a)=>g.jsx(hv,{className:"bg-accent-subtle",children:g.jsx(Za,{className:"opacity-50",children:g.jsx(Ya,{text:"Loading"})})},`loading-${a}`)):t.items.map(r=>g.jsxs(hv,{"data-state":r.isActive?"active":"inactive",onClick:r.onClick,children:[r.icon&&g.jsx(ni,{children:r.icon}),g.jsx(Za,{children:r.label})]},r.id))]},t.id))]})}const CO=p.createContext([]);function Bte({className:e,children:t,sections:n=[],...r}){return g.jsx(CO.Provider,{value:n,children:g.jsxs("div",{"data-slot":"layout",className:De("flex h-screen w-screen flex-row overflow-hidden bg-bg text-fg",e),...r,children:[g.jsx("div",{"data-slot":"layout-sidebar",className:De("hidden w-full max-w-[220px] shrink-0 overflow-y-auto overflow-x-hidden md:flex"),children:g.jsx(wO,{sections:n})}),g.jsx("div",{"data-slot":"layout-content",className:"flex grow flex-col overflow-hidden p-2 md:pl-px",children:t})]})})}function fo({className:e,children:t,...n}){return g.jsx("div",{className:De("@container/page overflow-hidden text-fg","flex grow flex-col rounded-md bg-surface shadow-[0_0_0_0.5px_rgba(55,50,46,0.2)]",e),...n,children:t})}function Vte({className:e,children:t,...n}){const r=p.useContext(CO);return g.jsxs("div",{className:De("flex shrink-0 flex-row items-center gap-x-2","h-13 border-accent border-b-[0.5px] bg-surface px-4 md:px-8 lg:px-12",e),...n,children:[g.jsxs(z1,{children:[g.jsx(Hte,{asChild:!0,children:g.jsxs(Yt,{size:"icon",variant:"ghost",className:"md:hidden",children:[g.jsx(uA,{weight:"fill",className:"!size-5 shrink-0"}),g.jsx("span",{className:"sr-only",children:"Open sidebar"})]})}),g.jsxs(SO,{children:[g.jsx(m1,{className:"overlay"}),g.jsxs(p1,{className:De("fixed inset-y-0 left-0 z-50 h-full w-full max-w-[220px] bg-bg text-fg transition ease-in-out","shadow-[0_0_10px_3px_rgba(55,50,46,0.13),_0_0_0_0.5px_rgba(55,50,46,0.2)] outline-none","overflow-y-auto overflow-x-hidden","radix-state-[closed]:slide-out-to-left radix-state-[closed]:animate-out radix-state-[closed]:duration-200","radix-state-[open]:slide-in-from-left radix-state-[open]:animate-in radix-state-[open]:duration-300"),children:[g.jsxs(Z4,{children:[g.jsx(H4,{children:"Navigation"}),g.jsx(F4,{children:"A sidebar containing global navigation for Director studio."})]}),g.jsx(wO,{sections:r})]})]})]}),t]})}function Os({className:e,children:t,...n}){return g.jsx("div",{className:De("flex grow flex-col overflow-y-auto overflow-x-hidden py-8 md:py-12 lg:py-16",e),...n,children:t})}function xi({breadcrumbs:e,loading:t=!1,children:n}){return g.jsxs(Vte,{children:[g.jsx(U1,{className:"grow",children:g.jsx(B1,{children:e.map((r,a)=>{const i=a===e.length-1,l=!!r.onClick;return g.jsxs(p.Fragment,{children:[a>0&&g.jsx(V1,{}),g.jsx(Dd,{children:l?g.jsx(AO,{onClick:r.onClick,className:"cursor-pointer",children:i&&t?g.jsx(Ya,{text:r.title}):r.title}):g.jsx(Md,{children:i&&t?g.jsx(Ya,{text:r.title}):r.title})})]},r.title)})})}),n]})}function zte({entry:e,proxies:t,onClickInstall:n,onClickCancel:r,isInstalling:a=!1}){const i=(t??[]).filter(l=>l.servers.some(u=>u.name===e.name)).map(l=>l.id);return g.jsxs(g.Fragment,{children:[i.length>0&&g.jsxs(Wt,{children:[g.jsx(Jt,{children:g.jsx(en,{variant:"h3",asChild:!0,children:g.jsx("h3",{children:"Installed on"})})}),g.jsx(di,{children:i.map(l=>g.jsx(dr,{className:"cursor-pointer",children:g.jsx(yr,{children:l})},l))})]}),g.jsxs(Wt,{children:[g.jsx(Jt,{children:g.jsx(en,{variant:"h3",asChild:!0,children:g.jsx("h3",{children:"Add to proxy"})})}),g.jsx(Mh,{registryEntry:e,proxies:t,onSubmit:n,isSubmitting:a,onClickCancel:r})]})]})}function qte({children:e}){return g.jsxs(fo,{className:"pointer-events-none relative select-none",children:[e,g.jsx(xi,{breadcrumbs:[{title:"Library"},{title:"Loading"}],loading:!0,children:g.jsx(Yt,{disabled:!0,className:"ml-auto",children:"Add to proxy"})}),g.jsx(Os,{"aria-hidden":!0,children:g.jsxs(Ia,{size:"lg",children:[g.jsxs(Wt,{className:"gap-y-6",children:[g.jsxs(Jt,{className:"opacity-50",children:[g.jsx(en,{children:g.jsx(Ya,{text:"Title"})}),g.jsx(Ls,{children:g.jsx(Ya,{text:"Description"})})]}),g.jsxs(di,{children:[g.jsxs(dr,{className:"opacity-50",children:[g.jsx(uo,{children:g.jsx(cA,{weight:"bold"})}),g.jsx(yr,{uppercase:!0,children:g.jsx(Ya,{text:"Badge"})})]}),g.jsxs(dr,{className:"ml-auto opacity-50",children:[g.jsx(uo,{children:g.jsx(iA,{weight:"bold"})}),g.jsx(yr,{uppercase:!0,children:"Homepage"})]})]})]}),g.jsx(ii,{}),g.jsxs(Wt,{children:[g.jsx(Jt,{className:"opacity-50",children:g.jsx(en,{variant:"h2",asChild:!0,children:g.jsx("h3",{children:"Transport"})})}),g.jsx(ao,{isLoading:!0,links:[]})]}),g.jsx(ii,{}),g.jsxs(Wt,{children:[g.jsx(Jt,{className:"opacity-50",children:g.jsx(en,{variant:"h2",asChild:!0,children:g.jsx("h3",{children:"Parameters"})})}),g.jsx(ao,{isLoading:!0,links:[]})]}),g.jsx(ii,{}),g.jsxs(Wt,{children:[g.jsx(Jt,{className:"opacity-50",children:g.jsx(en,{variant:"h2",asChild:!0,children:g.jsx("h3",{children:"Tools"})})}),g.jsx(ao,{isLoading:!0,links:[]})]})]})})]})}var ss="Accordion",$te=["Home","End","ArrowDown","ArrowUp","ArrowLeft","ArrowRight"],[V6,Zte,Qte]=Q8(ss),[q1,_ie]=Qr(ss,[Qte,mO]),z6=mO(),q6=me.forwardRef((e,t)=>{const{type:n,...r}=e,a=r,i=r;return g.jsx(V6.Provider,{scope:e.__scopeAccordion,children:n==="multiple"?g.jsx(Xte,{...i,ref:t}):g.jsx(Kte,{...a,ref:t})})});q6.displayName=ss;var[RO,Yte]=q1(ss),[OO,Gte]=q1(ss,{collapsible:!1}),Kte=me.forwardRef((e,t)=>{const{value:n,defaultValue:r,onValueChange:a=()=>{},collapsible:i=!1,...l}=e,[u,d]=Pa({prop:n,defaultProp:r??"",onChange:a,caller:ss});return g.jsx(RO,{scope:e.__scopeAccordion,value:me.useMemo(()=>u?[u]:[],[u]),onItemOpen:d,onItemClose:me.useCallback(()=>i&&d(""),[i,d]),children:g.jsx(OO,{scope:e.__scopeAccordion,collapsible:i,children:g.jsx(NO,{...l,ref:t})})})}),Xte=me.forwardRef((e,t)=>{const{value:n,defaultValue:r,onValueChange:a=()=>{},...i}=e,[l,u]=Pa({prop:n,defaultProp:r??[],onChange:a,caller:ss}),d=me.useCallback(v=>u((m=[])=>[...m,v]),[u]),h=me.useCallback(v=>u((m=[])=>m.filter(E=>E!==v)),[u]);return g.jsx(RO,{scope:e.__scopeAccordion,value:l,onItemOpen:d,onItemClose:h,children:g.jsx(OO,{scope:e.__scopeAccordion,collapsible:!0,children:g.jsx(NO,{...i,ref:t})})})}),[Wte,$1]=q1(ss),NO=me.forwardRef((e,t)=>{const{__scopeAccordion:n,disabled:r,dir:a,orientation:i="vertical",...l}=e,u=me.useRef(null),d=xn(u,t),h=Zte(n),m=Fd(a)==="ltr",E=ut(e.onKeyDown,b=>{if(!$te.includes(b.key))return;const T=b.target,A=h().filter(D=>!D.ref.current?.disabled),S=A.findIndex(D=>D.ref.current===T),w=A.length;if(S===-1)return;b.preventDefault();let R=S;const k=0,L=w-1,I=()=>{R=S+1,R>L&&(R=k)},N=()=>{R=S-1,R<k&&(R=L)};switch(b.key){case"Home":R=k;break;case"End":R=L;break;case"ArrowRight":i==="horizontal"&&(m?I():N());break;case"ArrowDown":i==="vertical"&&I();break;case"ArrowLeft":i==="horizontal"&&(m?N():I());break;case"ArrowUp":i==="vertical"&&N();break}const M=R%w;A[M].ref.current?.focus()});return g.jsx(Wte,{scope:n,disabled:r,direction:a,orientation:i,children:g.jsx(V6.Slot,{scope:n,children:g.jsx(xt.div,{...l,"data-orientation":i,ref:d,onKeyDown:r?void 0:E})})})}),Ih="AccordionItem",[Jte,$6]=q1(Ih),Z6=me.forwardRef((e,t)=>{const{__scopeAccordion:n,value:r,...a}=e,i=$1(Ih,n),l=Yte(Ih,n),u=z6(n),d=Ts(),h=r&&l.value.includes(r)||!1,v=i.disabled||e.disabled;return g.jsx(Jte,{scope:n,open:h,disabled:v,triggerId:d,children:g.jsx(bO,{"data-orientation":i.orientation,"data-state":DO(h),...u,...a,ref:t,disabled:v,open:h,onOpenChange:m=>{m?l.onItemOpen(r):l.onItemClose(r)}})})});Z6.displayName=Ih;var PO="AccordionHeader",ene=me.forwardRef((e,t)=>{const{__scopeAccordion:n,...r}=e,a=$1(ss,n),i=$6(PO,n);return g.jsx(xt.h3,{"data-orientation":a.orientation,"data-state":DO(i.open),"data-disabled":i.disabled?"":void 0,...r,ref:t})});ene.displayName=PO;var l8="AccordionTrigger",Q6=me.forwardRef((e,t)=>{const{__scopeAccordion:n,...r}=e,a=$1(ss,n),i=$6(l8,n),l=Gte(l8,n),u=z6(n);return g.jsx(V6.ItemSlot,{scope:n,children:g.jsx(EO,{"aria-disabled":i.open&&!l.collapsible||void 0,"data-orientation":a.orientation,id:i.triggerId,...u,...r,ref:t})})});Q6.displayName=l8;var kO="AccordionContent",Y6=me.forwardRef((e,t)=>{const{__scopeAccordion:n,...r}=e,a=$1(ss,n),i=$6(kO,n),l=z6(n);return g.jsx(xO,{role:"region","aria-labelledby":i.triggerId,"data-orientation":a.orientation,...l,...r,ref:t,style:{"--radix-accordion-content-height":"var(--radix-collapsible-content-height)","--radix-accordion-content-width":"var(--radix-collapsible-content-width)",...e.style}})});Y6.displayName=kO;function DO(e){return e?"open":"closed"}const u8=(e,t)=>{if(!e)return"any";const n=Array.isArray(e)?e.join(" | "):e;return t?`${n} (${t})`:n},MO=e=>!(e.oneOf||e.anyOf||e.allOf||e.properties&&Object.keys(e.properties).length>0||e.type==="array"||e.type==="object"),tne=e=>e.type!=="array"||!e.items?u8(e.type,e.format):MO(e.items)?`${u8(e.items.type,e.items.format)}[]`:"array",nne=(e,t)=>e.const!==void 0?String(e.const):e.properties?.type?.const!==void 0?String(e.properties.type.const):e.enum&&e.enum.length===1?String(e.enum[0]):e.title?e.title:e.description?e.description.slice(0,50)+(e.description.length>50?"...":""):!e.type&&!e.properties&&!e.oneOf&&!e.anyOf&&!e.allOf?"Any value":`Schema ${t+1}`,rne=e=>!e.type&&!e.properties&&!e.oneOf&&!e.anyOf&&!e.allOf&&!e.const&&!e.enum&&!e.items,gu=({unionType:e,schemas:t,level:n})=>{const r=a=>{switch(a){case"oneOf":return"Must match exactly one of the following schemas:";case"anyOf":return"Must match at least one of the following schemas:";case"allOf":return"Must match all of the following schemas:";default:return"Union type:"}};return g.jsxs("div",{className:"mt-4",children:[g.jsxs("div",{className:"mb-3 flex items-center gap-2",children:[g.jsx(dr,{className:"font-mono text-xs",children:e}),g.jsx("span",{className:"text-gray-600 text-sm",children:r(e)})]}),g.jsx(fi,{asChild:!0,children:g.jsx(q6,{type:"multiple",children:t.map((a,i)=>{const l=nne(a,i),u=a.properties&&Object.keys(a.properties).length>0;return rne(a)?null:g.jsx(Z6,{value:`option-${i}`,asChild:!0,children:g.jsxs(f8,{children:[g.jsx(h8,{name:l,required:!1,type:u8(a.type,a.format),children:g.jsx(Q6,{className:"flex size-6 cursor-pointer items-center justify-center rounded-lg bg-accent text-fg-subtle transition-opacity duration-200 hover:opacity-80 [&[data-state=open]>svg]:rotate-90",children:g.jsx(Vh,{weight:"bold",className:"size-4 transition-transform duration-200"})})}),g.jsxs(m8,{children:[a.description&&g.jsx(Go,{children:a.description}),g.jsx(Xf,{property:a}),g.jsx(c8,{property:a}),g.jsx(d8,{property:a}),g.jsxs(Y6,{children:[u&&g.jsx(fi,{children:Object.entries(a.properties||{}).map(([d,h])=>g.jsx(Ld,{name:d,property:h,required:Array.isArray(a.required)?a.required.includes(d):!1,level:n+1},d))}),a.oneOf&&g.jsx(gu,{unionType:"oneOf",schemas:a.oneOf,level:n+1}),a.anyOf&&g.jsx(gu,{unionType:"anyOf",schemas:a.anyOf,level:n+1}),a.allOf&&g.jsx(gu,{unionType:"allOf",schemas:a.allOf,level:n+1}),a.type==="array"&&a.items&&g.jsx(Ld,{name:"items",property:a.items,required:!1,level:n+1})]})]})]})},i)})})})]})};function Xf({property:e}){if(!(e.minimum!==void 0||e.maximum!==void 0||e.minLength!==void 0||e.maxLength!==void 0||e.pattern!==void 0||e.enum!==void 0||e.const!==void 0))return null;const n=[];return e.minimum!==void 0&&n.push(["min",String(e.minimum)]),e.maximum!==void 0&&n.push(["max",String(e.maximum)]),e.minLength!==void 0&&n.push(["minLength",String(e.minLength)]),e.maxLength!==void 0&&n.push(["maxLength",String(e.maxLength)]),e.pattern&&n.push(["pattern",e.pattern]),e.enum&&n.push(["enum",e.enum.join(", ")]),e.const!==void 0&&n.push(["const",JSON.stringify(e.const)]),g.jsx("div",{className:"mb-2 text-gray-500 text-sm",children:n.map(([r,a])=>g.jsxs("div",{children:[g.jsxs("span",{className:"font-medium",children:[r,":"]})," ",a]},r))})}function c8({property:e}){return e.default?g.jsxs("div",{className:"text-gray-600 text-sm",children:[g.jsx("span",{className:"font-medium",children:"Default:"})," ",JSON.stringify(e.default)]}):null}function d8({property:e}){return e.example?g.jsxs("div",{className:"text-gray-600 text-sm",children:[g.jsx("span",{className:"font-medium",children:"Example:"})," ",JSON.stringify(e.example)]}):null}function Ld({name:e,property:t,required:n=!1,level:r=0,hideHeader:a=!1}){const i=t.properties&&Object.keys(t.properties).length>0,l=t.type==="array"&&t.items,u=l&&t.items&&!MO(t.items),d=t.oneOf||t.anyOf||t.allOf,h=()=>{if(d){const E=[];return t.oneOf&&E.push("oneOf"),t.anyOf&&E.push("anyOf"),t.allOf&&E.push("allOf"),E.join(" & ")}return tne(t)};if(i||u||d)return g.jsx(Z6,{value:e,asChild:!0,children:g.jsxs(f8,{children:[!a&&g.jsx(h8,{name:e,required:n,type:h(),children:g.jsx(Q6,{className:"flex size-6 cursor-pointer items-center justify-center rounded-lg bg-accent text-fg-subtle transition-opacity duration-200 hover:opacity-80 [&[data-state=open]>svg]:rotate-90",children:g.jsx(Vh,{weight:"bold",className:"size-4 transition-transform duration-200"})})}),g.jsxs(m8,{className:a?"ml-0":"ml-8",children:[t.description&&g.jsx(Go,{children:t.description}),g.jsx(Xf,{property:t}),g.jsx(c8,{property:t}),g.jsx(d8,{property:t}),l&&!u&&t.items&&g.jsx(Xf,{property:t.items}),g.jsxs(Y6,{children:[t.oneOf&&g.jsx(gu,{unionType:"oneOf",schemas:t.oneOf,level:r}),t.anyOf&&g.jsx(gu,{unionType:"anyOf",schemas:t.anyOf,level:r}),t.allOf&&g.jsx(gu,{unionType:"allOf",schemas:t.allOf,level:r}),i&&g.jsx(fi,{children:Object.entries(t.properties||{}).map(([E,b])=>g.jsx(Ld,{name:`${e}.${E}`,property:b,required:!1,level:r+1},E))}),u&&t.items&&g.jsx(Ld,{name:e,property:t.items,required:!1,level:r+1,hideHeader:!0})]})]})]})});const v=t.minimum!==void 0&&t.maximum!==void 0&&t.minLength!==void 0&&t.maxLength!==void 0&&t.pattern!==void 0&&t.enum!==void 0&&t.const!==void 0,m=!t.description&&!t.default&&!t.example&&!v;return g.jsxs(f8,{children:[g.jsx(h8,{name:e,required:n,type:h()}),!m&&g.jsxs(m8,{children:[t.description&&g.jsx(Go,{children:t.description}),g.jsx(Xf,{property:t}),g.jsx(c8,{property:t}),g.jsx(d8,{property:t})]})]})}function f8({children:e,className:t,asChild:n,...r}){const a=n?br:"div";return g.jsx(a,{"data-slot":"property-item",className:De("flex flex-col border-accent border-b-[0.5px] py-3 outline-none last:border-b-0",t),...r,children:e})}function h8({children:e,className:t,name:n,required:r,type:a,...i}){return g.jsxs("div",{className:De("grid grid-cols-[24px_1fr_auto] gap-2",t),...i,children:[g.jsx("div",{className:"shrink-0",children:e??g.jsx("div",{className:"flex size-6 items-center justify-center",children:g.jsx(F8,{weight:"fill",className:"size-2 text-fg-subtle"})})}),g.jsx(Ra,{className:"flex-row",children:g.jsx(da,{className:"font-mono",children:n})}),g.jsxs(di,{children:[g.jsx(dr,{children:g.jsx(yr,{uppercase:!0,children:a})}),r&&g.jsx(dr,{children:g.jsx(yr,{uppercase:!0,children:"required"})})]})]})}function m8({children:e,className:t,...n}){return g.jsx("div",{className:De("ml-8 flex flex-col gap-y-3",t),...n,children:e})}const ane=({schema:e})=>{const t=e.required||[];return!e.properties||Object.keys(e.properties).length===0?g.jsxs(ks,{children:[g.jsx(bi,{children:"No parameters defined"}),g.jsx(ju,{children:"This tool does not require any parameters."})]}):g.jsx(fi,{asChild:!0,children:g.jsx(q6,{type:"multiple",children:Object.entries(e.properties).map(([n,r])=>g.jsx(Ld,{name:n,property:r,required:t.includes(n)},n))})})};function LO({tool:e,mcpName:t,onClose:n}){return g.jsx(z1,{open:!!e,onOpenChange:n,children:g.jsxs(I6,{children:[g.jsx(H6,{children:g.jsx(U1,{className:"grow",children:g.jsxs(B1,{children:[g.jsx(Dd,{children:t}),g.jsx(V1,{}),g.jsx(Md,{children:e.name})]})})}),g.jsxs(j6,{children:[g.jsxs(F6,{children:[g.jsx(U6,{children:e.name}),g.jsxs(B6,{className:"text-sm",children:["From"," ",g.jsx("button",{className:"cursor-pointer text-fg underline",children:t})]})]}),g.jsx(Go,{children:e.description}),g.jsx(ii,{}),g.jsxs(Wt,{children:[g.jsx(Jt,{children:g.jsx(en,{variant:"h2",asChild:!0,children:g.jsx("h3",{children:"Input schema"})})}),e.inputSchema?g.jsx(ane,{schema:e.inputSchema}):g.jsxs(ks,{children:[g.jsx(bi,{children:"No input schema"}),g.jsx(ju,{children:"This tool does not require any parameters."})]})]})]})]})})}var Z1="Popover",[IO,Tie]=Qr(Z1,[Xh]),l0=Xh(),[sne,go]=IO(Z1),jO=e=>{const{__scopePopover:t,children:n,open:r,defaultOpen:a,onOpenChange:i,modal:l=!1}=e,u=l0(t),d=p.useRef(null),[h,v]=p.useState(!1),[m,E]=Pa({prop:r,defaultProp:a??!1,onChange:i,caller:Z1});return g.jsx(rS,{...u,children:g.jsx(sne,{scope:t,contentId:Ts(),triggerRef:d,open:m,onOpenChange:E,onOpenToggle:p.useCallback(()=>E(b=>!b),[E]),hasCustomAnchor:h,onCustomAnchorAdd:p.useCallback(()=>v(!0),[]),onCustomAnchorRemove:p.useCallback(()=>v(!1),[]),modal:l,children:n})})};jO.displayName=Z1;var HO="PopoverAnchor",ine=p.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,a=go(HO,n),i=l0(n),{onCustomAnchorAdd:l,onCustomAnchorRemove:u}=a;return p.useEffect(()=>(l(),()=>u()),[l,u]),g.jsx(a4,{...i,...r,ref:t})});ine.displayName=HO;var FO="PopoverTrigger",UO=p.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,a=go(FO,n),i=l0(n),l=xn(t,a.triggerRef),u=g.jsx(xt.button,{type:"button","aria-haspopup":"dialog","aria-expanded":a.open,"aria-controls":a.contentId,"data-state":$O(a.open),...r,ref:l,onClick:ut(e.onClick,a.onOpenToggle)});return a.hasCustomAnchor?u:g.jsx(a4,{asChild:!0,...i,children:u})});UO.displayName=FO;var G6="PopoverPortal",[one,lne]=IO(G6,{forceMount:void 0}),BO=e=>{const{__scopePopover:t,forceMount:n,children:r,container:a}=e,i=go(G6,t);return g.jsx(one,{scope:t,forceMount:n,children:g.jsx(ka,{present:n||i.open,children:g.jsx(Wh,{asChild:!0,container:a,children:r})})})};BO.displayName=G6;var Su="PopoverContent",VO=p.forwardRef((e,t)=>{const n=lne(Su,e.__scopePopover),{forceMount:r=n.forceMount,...a}=e,i=go(Su,e.__scopePopover);return g.jsx(ka,{present:r||i.open,children:i.modal?g.jsx(cne,{...a,ref:t}):g.jsx(dne,{...a,ref:t})})});VO.displayName=Su;var une=zo("PopoverContent.RemoveScroll"),cne=p.forwardRef((e,t)=>{const n=go(Su,e.__scopePopover),r=p.useRef(null),a=xn(t,r),i=p.useRef(!1);return p.useEffect(()=>{const l=r.current;if(l)return o4(l)},[]),g.jsx(e1,{as:une,allowPinchZoom:!0,children:g.jsx(zO,{...e,ref:a,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:ut(e.onCloseAutoFocus,l=>{l.preventDefault(),i.current||n.triggerRef.current?.focus()}),onPointerDownOutside:ut(e.onPointerDownOutside,l=>{const u=l.detail.originalEvent,d=u.button===0&&u.ctrlKey===!0,h=u.button===2||d;i.current=h},{checkForDefaultPrevented:!1}),onFocusOutside:ut(e.onFocusOutside,l=>l.preventDefault(),{checkForDefaultPrevented:!1})})})}),dne=p.forwardRef((e,t)=>{const n=go(Su,e.__scopePopover),r=p.useRef(!1),a=p.useRef(!1);return g.jsx(zO,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:i=>{e.onCloseAutoFocus?.(i),i.defaultPrevented||(r.current||n.triggerRef.current?.focus(),i.preventDefault()),r.current=!1,a.current=!1},onInteractOutside:i=>{e.onInteractOutside?.(i),i.defaultPrevented||(r.current=!0,i.detail.originalEvent.type==="pointerdown"&&(a.current=!0));const l=i.target;n.triggerRef.current?.contains(l)&&i.preventDefault(),i.detail.originalEvent.type==="focusin"&&a.current&&i.preventDefault()}})}),zO=p.forwardRef((e,t)=>{const{__scopePopover:n,trapFocus:r,onOpenAutoFocus:a,onCloseAutoFocus:i,disableOutsidePointerEvents:l,onEscapeKeyDown:u,onPointerDownOutside:d,onFocusOutside:h,onInteractOutside:v,...m}=e,E=go(Su,n),b=l0(n);return Y8(),g.jsx(Qh,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:a,onUnmountAutoFocus:i,children:g.jsx(Zh,{asChild:!0,disableOutsidePointerEvents:l,onInteractOutside:v,onEscapeKeyDown:u,onPointerDownOutside:d,onFocusOutside:h,onDismiss:()=>E.onOpenChange(!1),children:g.jsx(aS,{"data-state":$O(E.open),role:"dialog",id:E.contentId,...b,...m,ref:t,style:{...m.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}})})})}),qO="PopoverClose",fne=p.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,a=go(qO,n);return g.jsx(xt.button,{type:"button",...r,ref:t,onClick:ut(e.onClick,()=>a.onOpenChange(!1))})});fne.displayName=qO;var hne="PopoverArrow",mne=p.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,a=l0(n);return g.jsx(sS,{...a,...r,ref:t})});mne.displayName=hne;function $O(e){return e?"open":"closed"}var pne=jO,gne=UO,vne=BO,yne=VO;const bne=pne,Ene=gne;function xne({className:e,align:t="center",sideOffset:n=2,...r}){return g.jsx(vne,{children:g.jsx(yne,{align:t,sideOffset:n,className:De("popover p-2","origin-[--radix-popover-content-transform-origin]","radix-state-[closed]:fade-out-0 radix-state-[open]:fade-in-0 radix-state-[closed]:zoom-out-95 radix-state-[open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 radix-state-[closed]:animate-out radix-state-[open]:animate-in",e),...r})})}function _ne(e){const t=En.useUtils(),n=Kd.useUtils(),r=En.store.addServer.useMutation({async onSuccess(i,l,u){await t.store.getAll.invalidate(),l?.proxyId&&await t.store.get.invalidate({proxyId:l.proxyId}),e&&e.onSuccess&&await e.onSuccess(i,l,u)},onError(i,l,u){e&&e.onError&&e.onError(i,l,u)}});return{install:async i=>{const l=await n.entries.getTransportForEntry.fetch({entryName:i.entryName,parameters:i.parameters??{}}),u={proxyId:i.proxyId,server:{name:i.entryName,transport:l}};return await r.mutateAsync(u)},isPending:r.isPending}}function Tne(e){return Kd.entries.getEntryByName.useQuery({name:e.entryName??""},{enabled:!!e.entryName})}function Ane(){const e=es(),{entryName:t}=x4(),[n,r]=p.useState(null),[a,i]=p.useState(!1),l=Tne({entryName:t}),u=Xd(),{install:d,isPending:h}=_ne({onError:T=>{ur({title:"Error",description:T.message})},onSuccess:(T,A)=>{ur({title:"Proxy installed",description:"This proxy was successfully installed."}),e(`/${A.proxyId}`)}}),v=l.isLoading||u.isLoading,m=l.data,E=async T=>{m&&T.proxyId&&t&&await d({proxyId:T.proxyId,entryName:t,parameters:T.parameters??{}})};if(p.useEffect(()=>{!v&&!m&&(ur({title:"Library entry not found",description:"The library entry you are looking for does not exist."}),e("/library"))},[m,v,e]),v||!m)return g.jsx(qte,{});const b=u.data??[];return g.jsxs(fo,{children:[g.jsx(xi,{breadcrumbs:[{title:"Library",onClick:()=>e("/library")},{title:m.title}],children:g.jsxs(bne,{open:a,onOpenChange:i,children:[g.jsx(Ene,{asChild:!0,children:g.jsx(Yt,{className:"ml-auto lg:hidden",children:"Add to proxy"})}),g.jsx(xne,{side:"bottom",align:"end",sideOffset:8,className:"w-sm max-w-[80dvw] rounded-[20px] lg:hidden",children:g.jsx(Mh,{registryEntry:m,proxies:b,onSubmit:E,isSubmitting:h})})]})}),g.jsxs(Os,{children:[g.jsx(Ia,{size:"xl",children:g.jsxs(WR,{children:[g.jsx(JR,{children:g.jsx(_R,{entry:m,onToolClick:T=>r(T)})}),g.jsx(eO,{children:g.jsx(zte,{entry:m,proxies:b,onClickInstall:E,isInstalling:h})})]})}),n&&g.jsx(LO,{tool:n,mcpName:m.title,onClose:()=>r(null)})]})]})}const Id=le().trim().min(1,"Required");Id.optional();const ZO=le().trim().min(1,"Required").regex(/^[a-z0-9._-]+$/,"Only lowercase ASCII letters, digits, and characters ., -, _ are allowed");function Sne({className:e,...t}){return g.jsx("textarea",{"data-slot":"textarea",className:De("field-sizing-content flex min-h-19.5 w-full resize-none rounded-md border border-input bg-surface px-3 py-2 text-sm shadow-xs outline-none transition-[color,box-shadow] placeholder:text-muted-foreground/70 focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40",e),...t})}function QO({description:e,label:t,name:n,helperLabel:r,hideErrors:a=!1,...i}){const l=as();return g.jsx(I1,{control:l.control,name:n,render:({field:u})=>g.jsx(w6,{children:g.jsxs("div",{className:"flex flex-col gap-2",children:[(t||r)&&g.jsxs("div",{className:"flex flex-row items-center",children:[t&&g.jsx(C6,{children:t}),r&&g.jsx(sl,{className:"ml-auto text-fg-subtle/70",children:r})]}),g.jsx(R6,{children:g.jsx(Sne,{...i,...u})}),e&&g.jsx(O6,{children:e}),!a&&g.jsx(N6,{})]})})})}function wne({open:e,onOpenChange:t,workspaces:n,onSubmit:r,isSubmitting:a=!1,...i}){const l={workspaceId:n?.[0]?.id??void 0,server:{name:"",type:"stdio",command:"",args:[],env:{}}};return g.jsx(z1,{open:e,onOpenChange:t,...i,children:g.jsxs(I6,{children:[g.jsx(H6,{children:g.jsx(U1,{className:"grow",children:g.jsxs(B1,{children:[g.jsx(Dd,{children:g.jsx(Md,{children:"Library"})}),g.jsx(V1,{}),g.jsx(Dd,{children:g.jsx(Md,{children:"Add MCP server"})})]})})}),g.jsxs(j6,{children:[g.jsxs(F6,{children:[g.jsx(U6,{children:"Add an MCP server"}),g.jsx(B6,{className:"text-sm",children:"Manually add an MCP server to one of your proxies."})]}),g.jsx(ii,{}),g.jsx(Cne,{defaultValues:l,proxies:n,onSubmit:r,isSubmitting:a})]})]})})}function Cne({defaultValues:e,proxies:t,onSubmit:n,isSubmitting:r=!1}){return g.jsx(L1,{schema:Dne,defaultValues:{...e,_env:[{key:"",value:""}],_headers:[{key:"",value:""}]},onSubmit:a=>{a.server.type==="stdio"?n({workspaceId:a.workspaceId,server:{...a.server,command:a.server.command.split(" ")[0],args:a.server.command.split(" ").slice(1),env:a._env.reduce((i,{key:l,value:u})=>(l&&(i[l]=u),i),{})}}):a.server.type==="http"&&n({workspaceId:a.workspaceId,server:{...a.server,headers:a._headers.reduce((i,{key:l,value:u})=>(l&&(i[l]=u),i),{})}})},children:g.jsx(Rne,{proxies:t,isSubmitting:r})})}function Rne({proxies:e,isSubmitting:t=!1}){const{control:n}=as(),r=MR({control:n,name:"server.type",defaultValue:"stdio"});return g.jsxs(g.Fragment,{children:[e&&g.jsx(o8,{name:"workspaceId",label:"Proxy",children:e.map(a=>g.jsx("option",{value:a.id,children:a.name},a.id))}),g.jsxs("div",{className:"flex flex-row gap-x-2 [&>div]:flex-1",children:[g.jsx(pi,{label:"Name",name:"server.name",placeholder:"Enter server name…"}),g.jsxs(o8,{label:"Transport",name:"server.type",children:[g.jsx("option",{value:"stdio",children:"STDIO"}),g.jsx("option",{value:"http",children:"HTTP"})]})]}),r==="stdio"&&g.jsx(One,{}),r==="http"&&g.jsx(Nne,{}),g.jsx(Yt,{type:"submit",disabled:t,children:t?"Adding...":"Add MCP Server"})]})}function One(){return g.jsxs("div",{className:"space-y-4",children:[g.jsx(QO,{className:"min-h-auto",label:"Command",name:"server.command",placeholder:"e.g. npx -y @modelcontextprotocol/my-server <filepath>"}),g.jsxs("div",{className:"flex flex-col gap-y-2",children:[g.jsx(sl,{children:"Environment variables"}),g.jsx(YO,{name:"_env",keyPlaceholder:"Variable name",valuePlaceholder:"Value",addSrText:"Add environment variable"})," "]})]})}function Nne(){return g.jsxs("div",{className:"space-y-4",children:[g.jsx(pi,{label:"URL",name:"server.url",placeholder:"Enter server URL…"}),g.jsxs("div",{className:"flex flex-col gap-y-2",children:[g.jsx(sl,{children:"Headers"}),g.jsx(YO,{name:"_headers",keyPlaceholder:"Header name",valuePlaceholder:"Value",addSrText:"Add header"})]})]})}function YO({name:e,keyPlaceholder:t,valuePlaceholder:n,addSrText:r}){const{control:a}=as(),{fields:i,append:l,remove:u}=Yee({control:a,name:e}),d=()=>{l({key:"",value:""})};return g.jsx("div",{className:"space-y-2",children:i.map((h,v)=>g.jsxs("div",{className:"flex flex-row gap-x-2 [&>div]:flex-1",children:[g.jsx(pi,{name:`${e}.${v}.key`,placeholder:t}),g.jsx(pi,{name:`${e}.${v}.value`,placeholder:n}),v<i.length-1?g.jsxs(Yt,{className:"size-8 leading-8",type:"button",variant:"secondary",size:"icon",onClick:()=>u(v),children:[g.jsx(zh,{}),g.jsx("div",{className:"sr-only",children:"Remove"})]}):g.jsxs(Yt,{className:"size-8 leading-8",type:"button",variant:"secondary",size:"icon",onClick:d,children:[g.jsx(z8,{}),g.jsx("div",{className:"sr-only",children:r})]})]},h.id))})}const Pne=Be({name:ZO,type:yt("stdio"),command:Id,args:We(le()),env:ul(Id,le()).optional()}),kne=Be({name:ZO,type:yt("http"),url:Id.url(),headers:ul(Id,le()).optional()}),Dne=Be({workspaceId:le().optional(),server:CR("type",[Pne,kne]),_env:We(Be({key:le(),value:le()})),_headers:We(Be({key:le(),value:le()}))});function GO({className:e,entry:t,onClick:n}){return g.jsxs("div",{className:De("flex h-40 cursor-pointer flex-col justify-between gap-y-6 rounded-lg bg-accent-subtle p-4 transition-colors duration-200 ease-in-out hover:bg-accent",e),onClick:n,children:[g.jsx(v1,{src:t.icon,className:"size-8"}),g.jsxs("div",{className:"flex flex-col gap-y-1",children:[g.jsxs("div",{className:"flex items-center gap-x-1 font-[450] text-[17px]",children:[t.title," ",t.isOfficial&&g.jsx(q8,{weight:"fill"})]}),t.description&&g.jsx("div",{className:"line-clamp-2 text-pretty text-[14px] text-fg-subtle",children:t.description})]})]})}function KO({className:e,...t}){return g.jsx("div",{className:De("@container grid @2xl:grid-cols-2 grid-cols-1 gap-3",e),...t})}function Mne({entries:e,pagination:t,searchQuery:n,onSearchQueryChange:r,onPageChange:a,onManualAddClick:i,onEntryClick:l}){return g.jsx(Ia,{size:"lg",children:g.jsxs(Wt,{className:"gap-y-6",children:[g.jsxs(Jt,{children:[g.jsx(en,{children:"Discover MCP servers"}),g.jsx(Ls,{children:"Find MCP servers for your favourite tools and install them directly to your Director proxies."})]}),g.jsxs("div",{className:"flex flex-col gap-y-4",children:[g.jsxs("div",{className:"flex flex-row items-center justify-between",children:[g.jsx(o0,{type:"text",placeholder:"Search MCP servers...",value:n,onChange:u=>r(u.target.value),className:"max-w-md"}),g.jsx(Yt,{onClick:i,children:"Add manually"})]}),g.jsxs(KO,{children:[e.sort((u,d)=>u.title.localeCompare(d.title)).map(u=>g.jsx(GO,{entry:u,onClick:()=>l?.(u.name)},u.id)),e.length===0&&g.jsx(ks,{className:"col-span-2",children:g.jsx(bi,{children:"No MCP servers found"})})]})]}),t.totalItems>0&&g.jsxs("div",{className:"grid grid-cols-3 items-center gap-2",children:[g.jsx("div",{children:g.jsxs(Yt,{className:De(!t.hasPreviousPage&&"hidden"),variant:"secondary",onClick:()=>a(t.pageIndex-1),children:[g.jsx(QT,{})," Previous"]})}),g.jsxs("span",{className:"text-center text-fg-subtle text-sm leading-7",children:["Page ",t.pageIndex+1," of ",t.totalPages]}),g.jsx("div",{className:"flex justify-end",children:g.jsxs(Yt,{className:De(!t.hasNextPage&&"hidden"),variant:"secondary",onClick:()=>a(t.pageIndex+1),children:["Next ",g.jsx(j8,{})]})})]})]})})}function Lne({children:e}){return g.jsxs(fo,{className:"pointer-events-none relative select-none",children:[e,g.jsx(xi,{breadcrumbs:[{title:"Loading proxy…"}],loading:!0,children:g.jsxs(Yt,{size:"icon",variant:"ghost",className:"radix-state-[open]:bg-accent-subtle",disabled:!0,children:[g.jsx(jd,{weight:"fill",className:"!size-4"}),g.jsx("span",{className:"sr-only",children:"Settings"})]})}),g.jsx(Os,{"aria-hidden":!0,children:g.jsx(Ia,{size:"lg",children:g.jsxs(Wt,{className:"gap-y-6",children:[g.jsxs(Jt,{children:[g.jsx(en,{children:"Discover MCP servers"}),g.jsx(Ls,{children:"Find MCP servers for your favourite tools and install them directly to your Director proxies."})]}),g.jsx(ao,{isLoading:!0,links:[]})]})})})]})}function Ine(e){const t=En.useUtils(),n=En.store.addServer.useMutation({...e,async onSuccess(r,a,i){await t.store.getAll.invalidate(),await t.store.get.invalidate({proxyId:a.proxyId}),await e?.onSuccess?.(r,a,i)}});return{addServer:n.mutateAsync,isPending:n.isPending}}const jne=()=>{const e=es(),[t,n]=p.useState(0),[r,a]=p.useState(""),[i,l]=p.useState(!1),{data:u}=Xd(),{data:d,isLoading:h,error:v}=TO({pageIndex:t,pageSize:20,searchQuery:r}),{addServer:m,isPending:E}=Ine({onSuccess:(b,T)=>{ur({title:"Server added",description:"The server has been added to the proxy"}),l(!1),e(`/${T.proxyId}`)},onError:()=>{ur({title:"Failed to add server",description:"Please check Director CLI logs for more information."})}});return h?g.jsx(Lne,{}):!d||v?g.jsx(fo,{children:g.jsx(Os,{children:g.jsx("div",{className:"inset-0 grid place-items-center",children:g.jsxs(ks,{children:[g.jsx(bi,{children:"Something went wrong."}),g.jsx(ju,{children:"Please try again"})]})})})}):g.jsxs(fo,{children:[g.jsx(xi,{breadcrumbs:[{title:"Library"}]}),g.jsxs(Os,{children:[g.jsx(Mne,{entries:d.entries,pagination:d.pagination,searchQuery:r,onSearchQueryChange:a,onPageChange:n,onManualAddClick:()=>l(!0),onEntryClick:b=>e(`/library/mcp/${b}`)}),g.jsx(wne,{open:i,onOpenChange:l,workspaces:u,onSubmit:async b=>{if(!b.workspaceId){ur({title:"No workspace selected",description:"Please select a proxy before adding a server."});return}await m({proxyId:b.workspaceId,server:{name:b.server.name,transport:b.server}})},isSubmitting:E})]})]})};function Hne(e){const{settings:t,onClickLogout:n}=e;return g.jsxs(Ia,{size:"lg",children:[g.jsxs(Wt,{children:[g.jsx(Jt,{children:g.jsx(en,{variant:"h2",asChild:!0,children:g.jsx("h3",{children:"Settings"})})}),g.jsx(fi,{children:Object.entries(t).map(([r,a])=>g.jsxs(xs,{children:[g.jsx(Ra,{children:g.jsx(da,{children:r})}),g.jsx(dr,{className:"ml-auto",children:g.jsx(yr,{children:a})})]},r))})]}),g.jsx(Yt,{size:"default",onClick:n,children:"Logout"})]})}function Fne(){const{user:e,logout:t,isAuthenticated:n,isInitializing:r}=i1();return g.jsxs(g.Fragment,{children:[g.jsx(xi,{breadcrumbs:[{title:"Settings"}]}),g.jsx(Os,{children:g.jsx(Hne,{settings:{user:JSON.stringify(e),isAuthenticated:JSON.stringify(n),isInitializing:JSON.stringify(r)},onClickLogout:t})})]})}const Une=Be({name:le().trim().min(1,"Required"),description:le().trim().optional().transform(e=>e===""?void 0:e)});function XO({children:e,onSubmit:t,defaultValues:n,isSubmitting:r=!1}){const a={name:n?.name??"",description:n?.description??""};return g.jsxs(L1,{schema:Une,defaultValues:a,onSubmit:t,children:[g.jsxs("div",{className:"flex w-full flex-col gap-y-6",children:[g.jsx(pi,{label:"Name",name:"name",placeholder:"My Proxy"}),g.jsx(QO,{label:"Description",name:"description",helperLabel:"Optional",placeholder:"A description of the proxy"})]}),e]})}function Bne({isSubmitting:e=!1,children:t,className:n="self-start"}){return g.jsx(Yt,{size:"lg",className:n,type:"submit",disabled:e,children:e?g.jsx(P6,{className:"text-fg-subtle"}):t})}function Vne({onSubmit:e,isSubmitting:t}){return g.jsx(Ia,{size:"sm",children:g.jsxs(Wt,{className:"gap-y-8",children:[g.jsxs(Jt,{children:[g.jsx(en,{children:"New proxy"}),g.jsx(Ls,{children:"Create a new proxy to start using MCP."})]}),g.jsx(ii,{}),g.jsx(XO,{onSubmit:async n=>{await e(n)},isSubmitting:t,children:g.jsx(Bne,{isSubmitting:t,children:"Create proxy"})})]})})}function zne(e){const t=En.useUtils(),n=En.store.create.useMutation({async onSuccess(r,a,i){await t.store.getAll.refetch(),e&&e.onSuccess&&await e.onSuccess(r,a,i)},onError(r,a,i){e&&e.onError&&e.onError(r,a,i)}});return{createProxy:n.mutateAsync,isPending:n.isPending}}function qne(){const e=es(),{createProxy:t,isPending:n}=zne({onSuccess:a=>{ur({title:"Proxy created",description:"This proxy was successfully created."}),e(`/${a.id}`)}}),r=async a=>{await t({...a,servers:[]})};return g.jsxs(g.Fragment,{children:[g.jsx(xi,{breadcrumbs:[{title:"New proxy"}]}),g.jsx(Os,{children:g.jsx(Vne,{onSubmit:r,isSubmitting:n})})]})}function $ne({onSettingsClick:e,onDeleteClick:t}){return g.jsxs(p4,{children:[g.jsx(g4,{asChild:!0,children:g.jsxs(Yt,{size:"icon",variant:"ghost",className:"radix-state-[open]:bg-accent-subtle",children:[g.jsx(jd,{weight:"fill",className:"!size-4"}),g.jsx("span",{className:"sr-only",children:"Settings"})]})}),g.jsx(v4,{align:"end",children:g.jsxs(ih,{children:[g.jsxs(Wi,{onSelect:e,children:[g.jsx(ni,{children:g.jsx(U8,{})}),g.jsx(Za,{children:"Settings"})]}),g.jsxs(Wi,{onSelect:t,children:[g.jsx(ni,{children:g.jsx(zh,{})}),g.jsx(Za,{children:"Delete"})]})]})})]})}function WO({children:e,title:t,description:n,open:r,onOpenChange:a,onConfirm:i}){const l=M1({schema:Be({}),defaultValues:{}});return p.useEffect(()=>{!r&&l.formState.isSubmitSuccessful&&l.reset()},[r,l.formState.isSubmitSuccessful]),g.jsxs(X9,{open:r,onOpenChange:a,children:[e&&g.jsx(Nz,{asChild:!0,children:e}),g.jsxs(W9,{children:[g.jsxs(J9,{children:[g.jsx(e7,{children:t}),g.jsx(t7,{children:n})]}),g.jsxs(Dz,{children:[g.jsx(Mz,{children:"Cancel"}),g.jsx(YR,{form:l,onSubmit:i,className:"sm:w-fit",children:g.jsx(Yt,{type:"submit",disabled:l.formState.isSubmitting,children:l.formState.isSubmitting?g.jsx(P6,{className:"text-fg-subtle"}):"Confirm"})})]})]})]})}function Zne({onConfirm:e,open:t,onOpenChange:n}){return g.jsx(WO,{title:"Delete proxy server",description:"Are you sure you want to delete this proxy server? This action cannot be undone.",open:t,onOpenChange:n,onConfirm:e})}function Qne({proxy:e,onSubmit:t,isSubmitting:n=!1,open:r,onOpenChange:a}){return g.jsx(z1,{open:r,onOpenChange:a,children:g.jsxs(I6,{children:[g.jsx(H6,{}),g.jsxs(j6,{children:[g.jsxs(F6,{children:[g.jsx(U6,{children:"Settings"}),g.jsx(B6,{children:"Update the name and description of the proxy."})]}),g.jsx(dR,{}),g.jsx(XO,{defaultValues:{name:e.name,description:e.description??void 0},onSubmit:t,isSubmitting:n,children:g.jsx(Yt,{children:"Save changes"})})]})]})})}function Yne({children:e}){return g.jsxs(fo,{className:"pointer-events-none relative select-none",children:[e,g.jsx(xi,{breadcrumbs:[{title:"Loading proxy…"}],loading:!0,children:g.jsxs(Yt,{size:"icon",variant:"ghost",className:"radix-state-[open]:bg-accent-subtle",disabled:!0,children:[g.jsx(jd,{weight:"fill",className:"!size-4"}),g.jsx("span",{className:"sr-only",children:"Settings"})]})}),g.jsx(Os,{"aria-hidden":!0,children:g.jsxs(Ia,{size:"lg",children:[g.jsx(Wt,{children:g.jsxs(Jt,{className:"opacity-50",children:[g.jsx(en,{children:g.jsx(Ya,{text:"Loading proxy name"})}),g.jsx(Ls,{children:g.jsx(Ya,{text:"Loading proxy description"})})]})}),g.jsx(Wt,{children:g.jsx(Jt,{className:"opacity-50",children:g.jsx(en,{variant:"h2",asChild:!0,children:g.jsx("h2",{children:"Usage"})})})}),g.jsxs(Wt,{children:[g.jsxs(Jt,{className:"flex flex-row items-center justify-between opacity-50",children:[g.jsx(en,{variant:"h2",asChild:!0,children:g.jsx("h2",{children:"MCP Servers"})}),g.jsx(Yt,{disabled:!0,children:"Add"})]}),g.jsx(ao,{isLoading:!0,links:[]})]}),g.jsxs(Wt,{children:[g.jsx(Jt,{className:"opacity-50",children:g.jsx(en,{variant:"h2",asChild:!0,children:g.jsx("h2",{children:"Tools"})})}),g.jsx(ao,{isLoading:!0,links:[]})]})]})})]})}function Gne(){const[e,t]=p.useState(null),n=p.useCallback(async r=>{if(!navigator?.clipboard)return console.warn("Clipboard not supported"),!1;try{return await navigator.clipboard.writeText(r),t(r),!0}catch(a){return console.warn("Copy failed",a),t(null),!1}},[]);return[e,n]}function Kne(e){const t=p.useRef({value:e,previous:e});return p.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}var Q1="Switch",[Xne,Aie]=Qr(Q1),[Wne,Jne]=Xne(Q1),JO=p.forwardRef((e,t)=>{const{__scopeSwitch:n,name:r,checked:a,defaultChecked:i,required:l,disabled:u,value:d="on",onCheckedChange:h,form:v,...m}=e,[E,b]=p.useState(null),T=xn(t,k=>b(k)),A=p.useRef(!1),S=E?v||!!E.closest("form"):!0,[w,R]=Pa({prop:a,defaultProp:i??!1,onChange:h,caller:Q1});return g.jsxs(Wne,{scope:n,checked:w,disabled:u,children:[g.jsx(xt.button,{type:"button",role:"switch","aria-checked":w,"aria-required":l,"data-state":rN(w),"data-disabled":u?"":void 0,disabled:u,value:d,...m,ref:T,onClick:ut(e.onClick,k=>{R(L=>!L),S&&(A.current=k.isPropagationStopped(),A.current||k.stopPropagation())})}),S&&g.jsx(nN,{control:E,bubbles:!A.current,name:r,value:d,checked:w,required:l,disabled:u,form:v,style:{transform:"translateX(-100%)"}})]})});JO.displayName=Q1;var eN="SwitchThumb",tN=p.forwardRef((e,t)=>{const{__scopeSwitch:n,...r}=e,a=Jne(eN,n);return g.jsx(xt.span,{"data-state":rN(a.checked),"data-disabled":a.disabled?"":void 0,...r,ref:t})});tN.displayName=eN;var ere="SwitchBubbleInput",nN=p.forwardRef(({__scopeSwitch:e,control:t,checked:n,bubbles:r=!0,...a},i)=>{const l=p.useRef(null),u=xn(l,i),d=Kne(n),h=QA(t);return p.useEffect(()=>{const v=l.current;if(!v)return;const m=window.HTMLInputElement.prototype,b=Object.getOwnPropertyDescriptor(m,"checked").set;if(d!==n&&b){const T=new Event("click",{bubbles:r});b.call(v,n),v.dispatchEvent(T)}},[d,n,r]),g.jsx("input",{type:"checkbox","aria-hidden":!0,defaultChecked:n,...a,tabIndex:-1,ref:u,style:{...a.style,...h,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});nN.displayName=ere;function rN(e){return e?"checked":"unchecked"}var tre=JO,nre=tN;function rre({className:e,...t}){return g.jsx(tre,{"data-slot":"switch",className:De("peer inline-flex w-9 shrink-0 items-center rounded-full border border-fg/10 p-0.5 outline-none transition-all focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-success data-[state=unchecked]:bg-fg/20",e),...t,children:g.jsx(nre,{"data-slot":"switch-thumb",className:De("pointer-events-none block size-4 rounded-full bg-success-fg ring-0 transition-transform data-[state=checked]:translate-x-[calc(100%-2px)] data-[state=unchecked]:translate-x-0","radix-state-[unchecked]:bg-fg/80")})})}function are({proxyId:e,gatewayBaseUrl:t,clients:n,isLoading:r,onChangeInstall:a,isChanging:i}){return g.jsx("div",{className:"grid grid-cols-1 gap-1 sm:grid-cols-2 lg:grid-cols-3",children:n.map(l=>{if(l.type==="deep-link"){const d=`goose://extension?url=${encodeURIComponent(`${t}/${e}/sse`)}&id=${e}&name=director__${e}`,h=`raycast://mcp/install?${encodeURIComponent(JSON.stringify({name:`director__${e}`,type:"stdio",command:"npx",args:["@director.run/cli http2stdio",`${t}/${e}/sse`]}))}`;return g.jsxs("a",{href:l.id==="goose"?d:h,className:"flex cursor-pointer flex-row items-center justify-between rounded-lg bg-accent-subtle p-1 pr-2.5 transition-colors duration-200 ease-in-out hover:bg-accent",children:[g.jsxs("div",{className:"flex grow flex-row items-center gap-x-1",children:[g.jsx("img",{src:l.image,alt:`${l.label} icon`,height:32,width:32}),g.jsx("span",{className:"font-medium text-[15px]",children:l.label})]}),g.jsx(GT,{weight:"bold",className:"size-5 text-fg-subtle/50"})]},l.id)}const u=!!l.installed;return g.jsxs("label",{htmlFor:l.id,className:De("flex cursor-pointer flex-row items-center justify-between rounded-lg bg-accent-subtle p-1 pr-2.5 transition-colors duration-200 ease-in-out hover:bg-accent",!u&&"opacity-50 hover:cursor-not-allowed hover:bg-accent-subtle"),children:[g.jsxs("div",{className:"flex grow flex-row items-center gap-x-1",children:[g.jsx("img",{src:l.image,alt:`${l.label} icon`,height:32,width:32}),g.jsx("span",{className:"font-medium text-[15px]",children:l.label})]}),g.jsx(rre,{id:l.id,checked:!!l.present,onCheckedChange:d=>{a(l.id,d)},disabled:i||r||!u})]},l.id)})})}function sre({id:e,gatewayBaseUrl:t,onCopy:n}){const[r,a]=p.useState("http"),i={http:`${t}/${e}/mcp`,sse:`${t}/${e}/sse`,stdio:`director http2stdio ${t}/${e}/sse`};return g.jsxs("div",{className:"relative flex",children:[g.jsx("div",{className:"w-fit",children:g.jsxs(XR,{value:r,onChange:l=>a(l.target.value),className:"h-10 rounded-r-none border-[0.5px] border-fg/20 bg-accent-subtle font-medium text-[13px] text-muted-foreground shadow-none ring-0 hover:text-foreground focus-visible:border-fg/30 focus-visible:ring-0",children:[g.jsx("option",{value:"http",children:"HTTP"}),g.jsx("option",{value:"sse",children:"SSE"}),g.jsx("option",{value:"stdio",children:"STDIO"})]})}),g.jsx(o0,{autoFocus:!0,className:"-mx-px h-10 rounded-none border-[0.5px] border-fg/30 pr-0 font-medium font-mono text-[13px] shadow-none focus-visible:border-fg/30 focus-visible:ring-0",readOnly:!0,value:i[r]}),g.jsx("div",{className:"flex size-10 shrink-0 items-center justify-center rounded-r-md border-[0.5px] border-fg/20 bg-accent-subtle",children:g.jsx(Yt,{size:"icon",variant:"ghost",onClick:()=>n(i[r]),children:g.jsx(rA,{})})})]})}function ire({proxyId:e,gatewayBaseUrl:t,children:n,onCopy:r,...a}){return g.jsxs(tO,{...a,children:[n&&g.jsx(ute,{asChild:!0,children:n}),g.jsxs(nO,{children:[g.jsxs(fte,{children:[g.jsx(rO,{children:"Connect manually"}),g.jsx(aO,{children:"Director works with any MCP enabled product. Below you'll find endpoints for both Streamable HTTP and SSE, as well as STDIO via our CLI."})]}),g.jsx("div",{className:"border-t-[0.5px] p-5",children:g.jsx(sre,{id:e,gatewayBaseUrl:t,onCopy:r})})]})]})}function ore({workspace:e,gatewayBaseUrl:t,clients:n,isClientsLoading:r,onChangeInstall:a,isChanging:i}){const[l,u]=Gne(),d=async h=>{await u(h),ur({title:"Copied to clipboard",description:"The endpoint has been copied to your clipboard."})};return g.jsxs(Wt,{children:[g.jsxs(Jt,{className:"flex flex-row items-center justify-between",children:[g.jsx(en,{variant:"h2",asChild:!0,children:g.jsx("h2",{children:"Clients"})}),g.jsx(ire,{proxyId:e.id,gatewayBaseUrl:t,onCopy:d,children:g.jsx(Yt,{size:"sm",children:"Connect manually"})})]}),g.jsx(are,{proxyId:e.id,gatewayBaseUrl:t,clients:n,isLoading:r,onChangeInstall:a,isChanging:i})]})}function lre({workspace:e}){return g.jsx(Wt,{children:g.jsxs(Jt,{children:[g.jsx(en,{children:e.name}),g.jsx(Ls,{children:e.description})]})})}function ure({workspace:e,onLibraryClick:t,onServerClick:n}){return g.jsxs(Wt,{children:[g.jsxs(Jt,{className:"flex flex-row items-center justify-between",children:[g.jsx(en,{variant:"h2",asChild:!0,children:g.jsx("h2",{children:"MCP Servers"})}),g.jsx(Yt,{size:"sm",onClick:t,children:"Add MCP server"})]}),g.jsx(KO,{children:e.servers.map(r=>g.jsx(GO,{entry:{title:r.name,description:null,icon:null,isOfficial:!1},onClick:()=>n?.(r.name)},r.name))})]})}var cre={303:"Multiple adapter contexts detected. This might happen in monorepos.",404:"nuqs requires an adapter to work with your framework.",409:"Multiple versions of the library are loaded. This may lead to unexpected behavior. Currently using `%s`, but `%s` (via the %s adapter) was about to load on top.",414:"Max safe URL length exceeded. Some browsers may not be able to accept this URL. Consider limiting the amount of state stored in the URL.",429:"URL update rate-limited by the browser. Consider increasing `throttleMs` for key(s) `%s`. %O",500:"Empty search params cache. Search params can't be accessed in Layouts.",501:"Search params cache already populated. Have you called `parse` twice?"};function aN(e){return`[nuqs] ${cre[e]}
|
|
149
|
-
See https://err.47ng.com/NUQS-${e}`}function z5(e){if(e.size===0)return"";const t=[];for(const[r,a]of e.entries()){const i=r.replace(/#/g,"%23").replace(/&/g,"%26").replace(/\+/g,"%2B").replace(/=/g,"%3D").replace(/\?/g,"%3F");t.push(`${i}=${dre(a)}`)}return"?"+t.join("&")}function dre(e){return e.replace(/%/g,"%25").replace(/\+/g,"%2B").replace(/ /g,"+").replace(/#/g,"%23").replace(/&/g,"%26").replace(/"/g,"%22").replace(/'/g,"%27").replace(/`/g,"%60").replace(/</g,"%3C").replace(/>/g,"%3E").replace(/[\x00-\x1F]/g,t=>encodeURIComponent(t))}var sN=hre();function fre(e,...t){sN&&console.warn(e,...t)}function hre(){try{if(typeof localStorage>"u")return!1;const t="nuqs-localStorage-test";localStorage.setItem(t,t);const n=localStorage.getItem(t)===t;if(localStorage.removeItem(t),!n)return!1}catch(t){return console.error("[nuqs]: debug mode is disabled (localStorage unavailable).",t),!1}return(localStorage.getItem("debug")??"").includes("nuqs")}var p8=p.createContext({useAdapter(){throw new Error(aN(404))}});p8.displayName="NuqsAdapterContext";sN&&typeof window<"u"&&(window.__NuqsAdapterContext&&window.__NuqsAdapterContext!==p8&&console.error(aN(303)),window.__NuqsAdapterContext=p8);function mre(e,t,n){try{return e(t)}catch(r){return fre("[nuqs] Error while parsing value `%s`: %O",t,r,n),null}}function pre(){if(typeof window>"u"||!!!window.GestureEvent)return 50;try{const t=navigator.userAgent?.match(/version\/([\d\.]+) safari/i);return parseFloat(t[1])>=17?120:320}catch{return 320}}pre();function _i(e){function t(n){if(typeof n>"u")return null;let r="";if(Array.isArray(n)){if(n[0]===void 0)return null;r=n[0]}return typeof n=="string"&&(r=n),mre(e.parse,r)}return{eq:(n,r)=>n===r,...e,parseServerSide:t,withDefault(n){return{...this,defaultValue:n,parseServerSide(r){return t(r)??n}}},withOptions(n){return{...this,...n}}}}var cg=_i({parse:e=>e,serialize:e=>`${e}`}),q5=_i({parse:e=>{const t=parseInt(e);return Number.isNaN(t)?null:t},serialize:e=>Math.round(e).toFixed()});_i({parse:e=>{const t=q5.parse(e);return t===null?null:t-1},serialize:e=>q5.serialize(e+1)});_i({parse:e=>{const t=parseInt(e,16);return Number.isNaN(t)?null:t},serialize:e=>{const t=Math.round(e).toString(16);return t.padStart(t.length+t.length%2,"0")}});_i({parse:e=>{const t=parseFloat(e);return Number.isNaN(t)?null:t},serialize:e=>e.toString()});_i({parse:e=>e==="true",serialize:e=>e?"true":"false"});function K6(e,t){return e.valueOf()===t.valueOf()}_i({parse:e=>{const t=parseInt(e);return Number.isNaN(t)?null:new Date(t)},serialize:e=>e.valueOf().toString(),eq:K6});_i({parse:e=>{const t=new Date(e);return Number.isNaN(t.valueOf())?null:t},serialize:e=>e.toISOString(),eq:K6});_i({parse:e=>{const t=new Date(e.slice(0,10));return Number.isNaN(t.valueOf())?null:t},serialize:e=>e.toISOString().slice(0,10),eq:K6});function gre(e,{clearOnDefault:t=!0,urlKeys:n={}}={}){function r(a,i={}){const[l,u]=$5(a)?vre(a):["",new URLSearchParams],d=$5(a)?i:a;if(d===null){for(const h in e){const v=n[h]??h;u.delete(v)}return l+z5(u)}for(const h in e){const v=e[h],m=d[h];if(!v||m===void 0)continue;const E=n[h]??h,b=v.defaultValue!==void 0&&(v.eq??((T,A)=>T===A))(m,v.defaultValue);m===null||(v.clearOnDefault??t??!0)&&b?u.delete(E):u.set(E,v.serialize(m))}return l+z5(u)}return r}function $5(e){return typeof e=="string"||e instanceof URLSearchParams||e instanceof URL}function vre(e){if(typeof e=="string"){const[t="",...n]=e.split("?");return[t,new URLSearchParams(n.join("?"))]}else return e instanceof URLSearchParams?["",new URLSearchParams(e)]:[e.origin+e.pathname,new URLSearchParams(e.searchParams)]}const yre={registryId:cg,serverId:cg,toolId:cg},bre=gre(yre);function Ere({links:e,isLoading:t}){return g.jsx(ao,{isLoading:t,links:e})}function iN({tools:e,toolsLoading:t,onToolClick:n}){const r=e.slice().sort((a,i)=>a.name.localeCompare(i.name)).map(a=>{const i=a.description?.match(/\[([^\]]+)\]/)?.[1];return{title:a.name,subtitle:a.description?.replace(/\[([^\]]+)\]/g,"")||"",scroll:!1,href:`${bre({toolId:a.name,serverId:i})}`,onClick:()=>n(a),badges:i&&g.jsx(dr,{children:g.jsx(yr,{uppercase:!0,children:i})})}});return g.jsxs(Wt,{children:[g.jsx(Jt,{children:g.jsx(en,{variant:"h2",asChild:!0,children:g.jsx("h2",{children:"Tools"})})}),g.jsx(Ere,{links:r,isLoading:t})]})}function xre(e,t){const n=En.useUtils(),r=En.installer.byProxy.install.useMutation({onSuccess:async(l,u)=>{await n.installer.byProxy.list.invalidate(),t?.onSuccess&&u?.client&&await t.onSuccess(u.client,!0)},onError:async(l,u)=>{t?.onError&&u?.client&&await t.onError(u.client,!0)}}),a=En.installer.byProxy.uninstall.useMutation({onSuccess:async(l,u)=>{await n.installer.byProxy.list.invalidate(),t?.onSuccess&&u?.client&&await t.onSuccess(u.client,!1)},onError:async(l,u)=>{t?.onError&&u?.client&&await t.onError(u.client,!1)}});return{changeInstallState:async(l,u)=>{u?await r.mutateAsync({proxyId:e,client:l,baseUrl:Iu}):await a.mutateAsync({proxyId:e,client:l})},isPending:r.isPending||a.isPending}}const Y1="2025-06-18",_re=[Y1,"2025-03-26","2024-11-05","2024-10-07"],G1="2.0",oN=Ir([le(),fr().int()]),lN=le(),Tre=Be({progressToken:Le(oN)}).passthrough(),ja=Be({_meta:Le(Tre)}).passthrough(),Gr=Be({method:le(),params:Le(ja)}),u0=Be({_meta:Le(Be({}).passthrough())}).passthrough(),Is=Be({method:le(),params:Le(u0)}),Ha=Be({_meta:Le(Be({}).passthrough())}).passthrough(),K1=Ir([le(),fr().int()]),uN=Be({jsonrpc:yt(G1),id:K1}).merge(Gr).strict(),Are=e=>uN.safeParse(e).success,cN=Be({jsonrpc:yt(G1)}).merge(Is).strict(),Sre=e=>cN.safeParse(e).success,dN=Be({jsonrpc:yt(G1),id:K1,result:Ha}).strict(),Z5=e=>dN.safeParse(e).success;var bs;(function(e){e[e.ConnectionClosed=-32e3]="ConnectionClosed",e[e.RequestTimeout=-32001]="RequestTimeout",e[e.ParseError=-32700]="ParseError",e[e.InvalidRequest=-32600]="InvalidRequest",e[e.MethodNotFound=-32601]="MethodNotFound",e[e.InvalidParams=-32602]="InvalidParams",e[e.InternalError=-32603]="InternalError"})(bs||(bs={}));const fN=Be({jsonrpc:yt(G1),id:K1,error:Be({code:fr().int(),message:le(),data:Le(s0())})}).strict(),wre=e=>fN.safeParse(e).success,Cre=Ir([uN,cN,dN,fN]),lu=Ha.strict(),X6=Is.extend({method:yt("notifications/cancelled"),params:u0.extend({requestId:K1,reason:le().optional()})}),c0=Be({name:le(),title:Le(le())}).passthrough(),hN=c0.extend({version:le()}),Rre=Be({experimental:Le(Be({}).passthrough()),sampling:Le(Be({}).passthrough()),elicitation:Le(Be({}).passthrough()),roots:Le(Be({listChanged:Le(ar())}).passthrough())}).passthrough(),Ore=Gr.extend({method:yt("initialize"),params:ja.extend({protocolVersion:le(),capabilities:Rre,clientInfo:hN})}),Nre=Be({experimental:Le(Be({}).passthrough()),logging:Le(Be({}).passthrough()),completions:Le(Be({}).passthrough()),prompts:Le(Be({listChanged:Le(ar())}).passthrough()),resources:Le(Be({subscribe:Le(ar()),listChanged:Le(ar())}).passthrough()),tools:Le(Be({listChanged:Le(ar())}).passthrough())}).passthrough(),mN=Ha.extend({protocolVersion:le(),capabilities:Nre,serverInfo:hN,instructions:Le(le())}),Pre=Is.extend({method:yt("notifications/initialized")}),W6=Gr.extend({method:yt("ping")}),kre=Be({progress:fr(),total:Le(fr()),message:Le(le())}).passthrough(),J6=Is.extend({method:yt("notifications/progress"),params:u0.merge(kre).extend({progressToken:oN})}),X1=Gr.extend({params:ja.extend({cursor:Le(lN)}).optional()}),W1=Ha.extend({nextCursor:Le(lN)}),pN=Be({uri:le(),mimeType:Le(le()),_meta:Le(Be({}).passthrough())}).passthrough(),gN=pN.extend({text:le()}),ey=le().refine(e=>{try{return atob(e),!0}catch{return!1}},{message:"Invalid Base64 string"}),vN=pN.extend({blob:ey}),yN=c0.extend({uri:le(),description:Le(le()),mimeType:Le(le()),_meta:Le(Be({}).passthrough())}),Dre=c0.extend({uriTemplate:le(),description:Le(le()),mimeType:Le(le()),_meta:Le(Be({}).passthrough())}),Mre=X1.extend({method:yt("resources/list")}),bN=W1.extend({resources:We(yN)}),Lre=X1.extend({method:yt("resources/templates/list")}),EN=W1.extend({resourceTemplates:We(Dre)}),Ire=Gr.extend({method:yt("resources/read"),params:ja.extend({uri:le()})}),xN=Ha.extend({contents:We(Ir([gN,vN]))}),jre=Is.extend({method:yt("notifications/resources/list_changed")}),Hre=Gr.extend({method:yt("resources/subscribe"),params:ja.extend({uri:le()})}),Fre=Gr.extend({method:yt("resources/unsubscribe"),params:ja.extend({uri:le()})}),Ure=Is.extend({method:yt("notifications/resources/updated"),params:u0.extend({uri:le()})}),Bre=Be({name:le(),description:Le(le()),required:Le(ar())}).passthrough(),Vre=c0.extend({description:Le(le()),arguments:Le(We(Bre)),_meta:Le(Be({}).passthrough())}),zre=X1.extend({method:yt("prompts/list")}),_N=W1.extend({prompts:We(Vre)}),qre=Gr.extend({method:yt("prompts/get"),params:ja.extend({name:le(),arguments:Le(ul(le()))})}),ty=Be({type:yt("text"),text:le(),_meta:Le(Be({}).passthrough())}).passthrough(),ny=Be({type:yt("image"),data:ey,mimeType:le(),_meta:Le(Be({}).passthrough())}).passthrough(),ry=Be({type:yt("audio"),data:ey,mimeType:le(),_meta:Le(Be({}).passthrough())}).passthrough(),$re=Be({type:yt("resource"),resource:Ir([gN,vN]),_meta:Le(Be({}).passthrough())}).passthrough(),Zre=yN.extend({type:yt("resource_link")}),TN=Ir([ty,ny,ry,Zre,$re]),Qre=Be({role:mi(["user","assistant"]),content:TN}).passthrough(),AN=Ha.extend({description:Le(le()),messages:We(Qre)}),Yre=Is.extend({method:yt("notifications/prompts/list_changed")}),Gre=Be({title:Le(le()),readOnlyHint:Le(ar()),destructiveHint:Le(ar()),idempotentHint:Le(ar()),openWorldHint:Le(ar())}).passthrough(),Kre=c0.extend({description:Le(le()),inputSchema:Be({type:yt("object"),properties:Le(Be({}).passthrough()),required:Le(We(le()))}).passthrough(),outputSchema:Le(Be({type:yt("object"),properties:Le(Be({}).passthrough()),required:Le(We(le()))}).passthrough()),annotations:Le(Gre),_meta:Le(Be({}).passthrough())}),Xre=X1.extend({method:yt("tools/list")}),SN=W1.extend({tools:We(Kre)}),ay=Ha.extend({content:We(TN).default([]),structuredContent:Be({}).passthrough().optional(),isError:Le(ar())});ay.or(Ha.extend({toolResult:s0()}));const Wre=Gr.extend({method:yt("tools/call"),params:ja.extend({name:le(),arguments:Le(ul(s0()))})}),Jre=Is.extend({method:yt("notifications/tools/list_changed")}),wN=mi(["debug","info","notice","warning","error","critical","alert","emergency"]),eae=Gr.extend({method:yt("logging/setLevel"),params:ja.extend({level:wN})}),tae=Is.extend({method:yt("notifications/message"),params:u0.extend({level:wN,logger:Le(le()),data:s0()})}),nae=Be({name:le().optional()}).passthrough(),rae=Be({hints:Le(We(nae)),costPriority:Le(fr().min(0).max(1)),speedPriority:Le(fr().min(0).max(1)),intelligencePriority:Le(fr().min(0).max(1))}).passthrough(),aae=Be({role:mi(["user","assistant"]),content:Ir([ty,ny,ry])}).passthrough(),sae=Gr.extend({method:yt("sampling/createMessage"),params:ja.extend({messages:We(aae),systemPrompt:Le(le()),includeContext:Le(mi(["none","thisServer","allServers"])),temperature:Le(fr()),maxTokens:fr().int(),stopSequences:Le(We(le())),metadata:Le(Be({}).passthrough()),modelPreferences:Le(rae)})}),iae=Ha.extend({model:le(),stopReason:Le(mi(["endTurn","stopSequence","maxTokens"]).or(le())),role:mi(["user","assistant"]),content:CR("type",[ty,ny,ry])}),oae=Be({type:yt("boolean"),title:Le(le()),description:Le(le()),default:Le(ar())}).passthrough(),lae=Be({type:yt("string"),title:Le(le()),description:Le(le()),minLength:Le(fr()),maxLength:Le(fr()),format:Le(mi(["email","uri","date","date-time"]))}).passthrough(),uae=Be({type:mi(["number","integer"]),title:Le(le()),description:Le(le()),minimum:Le(fr()),maximum:Le(fr())}).passthrough(),cae=Be({type:yt("string"),title:Le(le()),description:Le(le()),enum:We(le()),enumNames:Le(We(le()))}).passthrough(),dae=Ir([oae,lae,uae,cae]),fae=Gr.extend({method:yt("elicitation/create"),params:ja.extend({message:le(),requestedSchema:Be({type:yt("object"),properties:ul(le(),dae),required:Le(We(le()))}).passthrough()})}),hae=Ha.extend({action:mi(["accept","decline","cancel"]),content:Le(ul(le(),s0()))}),mae=Be({type:yt("ref/resource"),uri:le()}).passthrough(),pae=Be({type:yt("ref/prompt"),name:le()}).passthrough(),gae=Gr.extend({method:yt("completion/complete"),params:ja.extend({ref:Ir([pae,mae]),argument:Be({name:le(),value:le()}).passthrough(),context:Le(Be({arguments:Le(ul(le(),le()))}))})}),CN=Ha.extend({completion:Be({values:We(le()).max(100),total:Le(fr().int()),hasMore:Le(ar())}).passthrough()}),vae=Be({uri:le().startsWith("file://"),name:Le(le()),_meta:Le(Be({}).passthrough())}).passthrough(),yae=Gr.extend({method:yt("roots/list")}),bae=Ha.extend({roots:We(vae)}),Eae=Is.extend({method:yt("notifications/roots/list_changed")});Ir([W6,Ore,gae,eae,qre,zre,Mre,Lre,Ire,Hre,Fre,Wre,Xre]);Ir([X6,J6,Pre,Eae]);Ir([lu,iae,hae,bae]);Ir([W6,sae,fae,yae]);Ir([X6,J6,tae,Ure,jre,Jre,Yre]);Ir([lu,mN,CN,AN,_N,bN,EN,xN,ay,SN]);class no extends Error{constructor(t,n,r){super(`MCP error ${t}: ${n}`),this.code=t,this.data=r,this.name="McpError"}}const xae=6e4;class _ae{constructor(t){this._options=t,this._requestMessageId=0,this._requestHandlers=new Map,this._requestHandlerAbortControllers=new Map,this._notificationHandlers=new Map,this._responseHandlers=new Map,this._progressHandlers=new Map,this._timeoutInfo=new Map,this._pendingDebouncedNotifications=new Set,this.setNotificationHandler(X6,n=>{const r=this._requestHandlerAbortControllers.get(n.params.requestId);r?.abort(n.params.reason)}),this.setNotificationHandler(J6,n=>{this._onprogress(n)}),this.setRequestHandler(W6,n=>({}))}_setupTimeout(t,n,r,a,i=!1){this._timeoutInfo.set(t,{timeoutId:setTimeout(a,n),startTime:Date.now(),timeout:n,maxTotalTimeout:r,resetTimeoutOnProgress:i,onTimeout:a})}_resetTimeout(t){const n=this._timeoutInfo.get(t);if(!n)return!1;const r=Date.now()-n.startTime;if(n.maxTotalTimeout&&r>=n.maxTotalTimeout)throw this._timeoutInfo.delete(t),new no(bs.RequestTimeout,"Maximum total timeout exceeded",{maxTotalTimeout:n.maxTotalTimeout,totalElapsed:r});return clearTimeout(n.timeoutId),n.timeoutId=setTimeout(n.onTimeout,n.timeout),!0}_cleanupTimeout(t){const n=this._timeoutInfo.get(t);n&&(clearTimeout(n.timeoutId),this._timeoutInfo.delete(t))}async connect(t){var n,r,a;this._transport=t;const i=(n=this.transport)===null||n===void 0?void 0:n.onclose;this._transport.onclose=()=>{i?.(),this._onclose()};const l=(r=this.transport)===null||r===void 0?void 0:r.onerror;this._transport.onerror=d=>{l?.(d),this._onerror(d)};const u=(a=this._transport)===null||a===void 0?void 0:a.onmessage;this._transport.onmessage=(d,h)=>{u?.(d,h),Z5(d)||wre(d)?this._onresponse(d):Are(d)?this._onrequest(d,h):Sre(d)?this._onnotification(d):this._onerror(new Error(`Unknown message type: ${JSON.stringify(d)}`))},await this._transport.start()}_onclose(){var t;const n=this._responseHandlers;this._responseHandlers=new Map,this._progressHandlers.clear(),this._pendingDebouncedNotifications.clear(),this._transport=void 0,(t=this.onclose)===null||t===void 0||t.call(this);const r=new no(bs.ConnectionClosed,"Connection closed");for(const a of n.values())a(r)}_onerror(t){var n;(n=this.onerror)===null||n===void 0||n.call(this,t)}_onnotification(t){var n;const r=(n=this._notificationHandlers.get(t.method))!==null&&n!==void 0?n:this.fallbackNotificationHandler;r!==void 0&&Promise.resolve().then(()=>r(t)).catch(a=>this._onerror(new Error(`Uncaught error in notification handler: ${a}`)))}_onrequest(t,n){var r,a,i,l;const u=(r=this._requestHandlers.get(t.method))!==null&&r!==void 0?r:this.fallbackRequestHandler;if(u===void 0){(a=this._transport)===null||a===void 0||a.send({jsonrpc:"2.0",id:t.id,error:{code:bs.MethodNotFound,message:"Method not found"}}).catch(v=>this._onerror(new Error(`Failed to send an error response: ${v}`)));return}const d=new AbortController;this._requestHandlerAbortControllers.set(t.id,d);const h={signal:d.signal,sessionId:(i=this._transport)===null||i===void 0?void 0:i.sessionId,_meta:(l=t.params)===null||l===void 0?void 0:l._meta,sendNotification:v=>this.notification(v,{relatedRequestId:t.id}),sendRequest:(v,m,E)=>this.request(v,m,{...E,relatedRequestId:t.id}),authInfo:n?.authInfo,requestId:t.id,requestInfo:n?.requestInfo};Promise.resolve().then(()=>u(t,h)).then(v=>{var m;if(!d.signal.aborted)return(m=this._transport)===null||m===void 0?void 0:m.send({result:v,jsonrpc:"2.0",id:t.id})},v=>{var m,E;if(!d.signal.aborted)return(m=this._transport)===null||m===void 0?void 0:m.send({jsonrpc:"2.0",id:t.id,error:{code:Number.isSafeInteger(v.code)?v.code:bs.InternalError,message:(E=v.message)!==null&&E!==void 0?E:"Internal error"}})}).catch(v=>this._onerror(new Error(`Failed to send response: ${v}`))).finally(()=>{this._requestHandlerAbortControllers.delete(t.id)})}_onprogress(t){const{progressToken:n,...r}=t.params,a=Number(n),i=this._progressHandlers.get(a);if(!i){this._onerror(new Error(`Received a progress notification for an unknown token: ${JSON.stringify(t)}`));return}const l=this._responseHandlers.get(a),u=this._timeoutInfo.get(a);if(u&&l&&u.resetTimeoutOnProgress)try{this._resetTimeout(a)}catch(d){l(d);return}i(r)}_onresponse(t){const n=Number(t.id),r=this._responseHandlers.get(n);if(r===void 0){this._onerror(new Error(`Received a response for an unknown message ID: ${JSON.stringify(t)}`));return}if(this._responseHandlers.delete(n),this._progressHandlers.delete(n),this._cleanupTimeout(n),Z5(t))r(t);else{const a=new no(t.error.code,t.error.message,t.error.data);r(a)}}get transport(){return this._transport}async close(){var t;await((t=this._transport)===null||t===void 0?void 0:t.close())}request(t,n,r){const{relatedRequestId:a,resumptionToken:i,onresumptiontoken:l}=r??{};return new Promise((u,d)=>{var h,v,m,E,b,T;if(!this._transport){d(new Error("Not connected"));return}((h=this._options)===null||h===void 0?void 0:h.enforceStrictCapabilities)===!0&&this.assertCapabilityForMethod(t.method),(v=r?.signal)===null||v===void 0||v.throwIfAborted();const A=this._requestMessageId++,S={...t,jsonrpc:"2.0",id:A};r?.onprogress&&(this._progressHandlers.set(A,r.onprogress),S.params={...t.params,_meta:{...((m=t.params)===null||m===void 0?void 0:m._meta)||{},progressToken:A}});const w=L=>{var I;this._responseHandlers.delete(A),this._progressHandlers.delete(A),this._cleanupTimeout(A),(I=this._transport)===null||I===void 0||I.send({jsonrpc:"2.0",method:"notifications/cancelled",params:{requestId:A,reason:String(L)}},{relatedRequestId:a,resumptionToken:i,onresumptiontoken:l}).catch(N=>this._onerror(new Error(`Failed to send cancellation: ${N}`))),d(L)};this._responseHandlers.set(A,L=>{var I;if(!(!((I=r?.signal)===null||I===void 0)&&I.aborted)){if(L instanceof Error)return d(L);try{const N=n.parse(L.result);u(N)}catch(N){d(N)}}}),(E=r?.signal)===null||E===void 0||E.addEventListener("abort",()=>{var L;w((L=r?.signal)===null||L===void 0?void 0:L.reason)});const R=(b=r?.timeout)!==null&&b!==void 0?b:xae,k=()=>w(new no(bs.RequestTimeout,"Request timed out",{timeout:R}));this._setupTimeout(A,R,r?.maxTotalTimeout,k,(T=r?.resetTimeoutOnProgress)!==null&&T!==void 0?T:!1),this._transport.send(S,{relatedRequestId:a,resumptionToken:i,onresumptiontoken:l}).catch(L=>{this._cleanupTimeout(A),d(L)})})}async notification(t,n){var r,a;if(!this._transport)throw new Error("Not connected");if(this.assertNotificationCapability(t.method),((a=(r=this._options)===null||r===void 0?void 0:r.debouncedNotificationMethods)!==null&&a!==void 0?a:[]).includes(t.method)&&!t.params&&!n?.relatedRequestId){if(this._pendingDebouncedNotifications.has(t.method))return;this._pendingDebouncedNotifications.add(t.method),Promise.resolve().then(()=>{var d;if(this._pendingDebouncedNotifications.delete(t.method),!this._transport)return;const h={...t,jsonrpc:"2.0"};(d=this._transport)===null||d===void 0||d.send(h,n).catch(v=>this._onerror(v))});return}const u={...t,jsonrpc:"2.0"};await this._transport.send(u,n)}setRequestHandler(t,n){const r=t.shape.method.value;this.assertRequestHandlerCapability(r),this._requestHandlers.set(r,(a,i)=>Promise.resolve(n(t.parse(a),i)))}removeRequestHandler(t){this._requestHandlers.delete(t)}assertCanSetRequestHandler(t){if(this._requestHandlers.has(t))throw new Error(`A request handler for ${t} already exists, which would be overridden`)}setNotificationHandler(t,n){this._notificationHandlers.set(t.shape.method.value,r=>Promise.resolve(n(t.parse(r))))}removeNotificationHandler(t){this._notificationHandlers.delete(t)}}function Tae(e,t){return Object.entries(t).reduce((n,[r,a])=>(a&&typeof a=="object"?n[r]=n[r]?{...n[r],...a}:a:n[r]=a,n),{...e})}var rd={exports:{}};/** @license URI.js v4.4.1 (c) 2011 Gary Court. License: http://github.com/garycourt/uri-js */var Aae=rd.exports,Q5;function Sae(){return Q5||(Q5=1,function(e,t){(function(n,r){r(t)})(Aae,function(n){function r(){for(var ee=arguments.length,$=Array(ee),ne=0;ne<ee;ne++)$[ne]=arguments[ne];if($.length>1){$[0]=$[0].slice(0,-1);for(var xe=$.length-1,ye=1;ye<xe;++ye)$[ye]=$[ye].slice(1,-1);return $[xe]=$[xe].slice(1),$.join("")}else return $[0]}function a(ee){return"(?:"+ee+")"}function i(ee){return ee===void 0?"undefined":ee===null?"null":Object.prototype.toString.call(ee).split(" ").pop().split("]").shift().toLowerCase()}function l(ee){return ee.toUpperCase()}function u(ee){return ee!=null?ee instanceof Array?ee:typeof ee.length!="number"||ee.split||ee.setInterval||ee.call?[ee]:Array.prototype.slice.call(ee):[]}function d(ee,$){var ne=ee;if($)for(var xe in $)ne[xe]=$[xe];return ne}function h(ee){var $="[A-Za-z]",ne="[0-9]",xe=r(ne,"[A-Fa-f]"),ye=a(a("%[EFef]"+xe+"%"+xe+xe+"%"+xe+xe)+"|"+a("%[89A-Fa-f]"+xe+"%"+xe+xe)+"|"+a("%"+xe+xe)),tt="[\\:\\/\\?\\#\\[\\]\\@]",Je="[\\!\\$\\&\\'\\(\\)\\*\\+\\,\\;\\=]",Tt=r(tt,Je),qt=ee?"[\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]":"[]",rn=ee?"[\\uE000-\\uF8FF]":"[]",at=r($,ne,"[\\-\\.\\_\\~]",qt);a($+r($,ne,"[\\+\\-\\.]")+"*"),a(a(ye+"|"+r(at,Je,"[\\:]"))+"*");var Gt=a(a("25[0-5]")+"|"+a("2[0-4]"+ne)+"|"+a("1"+ne+ne)+"|"+a("0?[1-9]"+ne)+"|0?0?"+ne),Tn=a(Gt+"\\."+Gt+"\\."+Gt+"\\."+Gt),ot=a(xe+"{1,4}"),$t=a(a(ot+"\\:"+ot)+"|"+Tn),Dn=a(a(ot+"\\:")+"{6}"+$t),cn=a("\\:\\:"+a(ot+"\\:")+"{5}"+$t),Ua=a(a(ot)+"?\\:\\:"+a(ot+"\\:")+"{4}"+$t),ma=a(a(a(ot+"\\:")+"{0,1}"+ot)+"?\\:\\:"+a(ot+"\\:")+"{3}"+$t),Rr=a(a(a(ot+"\\:")+"{0,2}"+ot)+"?\\:\\:"+a(ot+"\\:")+"{2}"+$t),Ba=a(a(a(ot+"\\:")+"{0,3}"+ot)+"?\\:\\:"+ot+"\\:"+$t),hr=a(a(a(ot+"\\:")+"{0,4}"+ot)+"?\\:\\:"+$t),xr=a(a(a(ot+"\\:")+"{0,5}"+ot)+"?\\:\\:"+ot),Xr=a(a(a(ot+"\\:")+"{0,6}"+ot)+"?\\:\\:"),jr=a([Dn,cn,Ua,ma,Rr,Ba,hr,xr,Xr].join("|")),Wr=a(a(at+"|"+ye)+"+");a("[vV]"+xe+"+\\."+r(at,Je,"[\\:]")+"+"),a(a(ye+"|"+r(at,Je))+"*");var js=a(ye+"|"+r(at,Je,"[\\:\\@]"));return a(a(ye+"|"+r(at,Je,"[\\@]"))+"+"),a(a(js+"|"+r("[\\/\\?]",rn))+"*"),{NOT_SCHEME:new RegExp(r("[^]",$,ne,"[\\+\\-\\.]"),"g"),NOT_USERINFO:new RegExp(r("[^\\%\\:]",at,Je),"g"),NOT_HOST:new RegExp(r("[^\\%\\[\\]\\:]",at,Je),"g"),NOT_PATH:new RegExp(r("[^\\%\\/\\:\\@]",at,Je),"g"),NOT_PATH_NOSCHEME:new RegExp(r("[^\\%\\/\\@]",at,Je),"g"),NOT_QUERY:new RegExp(r("[^\\%]",at,Je,"[\\:\\@\\/\\?]",rn),"g"),NOT_FRAGMENT:new RegExp(r("[^\\%]",at,Je,"[\\:\\@\\/\\?]"),"g"),ESCAPE:new RegExp(r("[^]",at,Je),"g"),UNRESERVED:new RegExp(at,"g"),OTHER_CHARS:new RegExp(r("[^\\%]",at,Tt),"g"),PCT_ENCODED:new RegExp(ye,"g"),IPV4ADDRESS:new RegExp("^("+Tn+")$"),IPV6ADDRESS:new RegExp("^\\[?("+jr+")"+a(a("\\%25|\\%(?!"+xe+"{2})")+"("+Wr+")")+"?\\]?$")}}var v=h(!1),m=h(!0),E=function(){function ee($,ne){var xe=[],ye=!0,tt=!1,Je=void 0;try{for(var Tt=$[Symbol.iterator](),qt;!(ye=(qt=Tt.next()).done)&&(xe.push(qt.value),!(ne&&xe.length===ne));ye=!0);}catch(rn){tt=!0,Je=rn}finally{try{!ye&&Tt.return&&Tt.return()}finally{if(tt)throw Je}}return xe}return function($,ne){if(Array.isArray($))return $;if(Symbol.iterator in Object($))return ee($,ne);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),b=function(ee){if(Array.isArray(ee)){for(var $=0,ne=Array(ee.length);$<ee.length;$++)ne[$]=ee[$];return ne}else return Array.from(ee)},T=2147483647,A=36,S=1,w=26,R=38,k=700,L=72,I=128,N="-",M=/^xn--/,D=/[^\0-\x7E]/,B=/[\x2E\u3002\uFF0E\uFF61]/g,P={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},U=A-S,F=Math.floor,Q=String.fromCharCode;function Y(ee){throw new RangeError(P[ee])}function te(ee,$){for(var ne=[],xe=ee.length;xe--;)ne[xe]=$(ee[xe]);return ne}function V(ee,$){var ne=ee.split("@"),xe="";ne.length>1&&(xe=ne[0]+"@",ee=ne[1]),ee=ee.replace(B,".");var ye=ee.split("."),tt=te(ye,$).join(".");return xe+tt}function J(ee){for(var $=[],ne=0,xe=ee.length;ne<xe;){var ye=ee.charCodeAt(ne++);if(ye>=55296&&ye<=56319&&ne<xe){var tt=ee.charCodeAt(ne++);(tt&64512)==56320?$.push(((ye&1023)<<10)+(tt&1023)+65536):($.push(ye),ne--)}else $.push(ye)}return $}var X=function($){return String.fromCodePoint.apply(String,b($))},se=function($){return $-48<10?$-22:$-65<26?$-65:$-97<26?$-97:A},C=function($,ne){return $+22+75*($<26)-((ne!=0)<<5)},oe=function($,ne,xe){var ye=0;for($=xe?F($/k):$>>1,$+=F($/ne);$>U*w>>1;ye+=A)$=F($/U);return F(ye+(U+1)*$/($+R))},ge=function($){var ne=[],xe=$.length,ye=0,tt=I,Je=L,Tt=$.lastIndexOf(N);Tt<0&&(Tt=0);for(var qt=0;qt<Tt;++qt)$.charCodeAt(qt)>=128&&Y("not-basic"),ne.push($.charCodeAt(qt));for(var rn=Tt>0?Tt+1:0;rn<xe;){for(var at=ye,Gt=1,Tn=A;;Tn+=A){rn>=xe&&Y("invalid-input");var ot=se($.charCodeAt(rn++));(ot>=A||ot>F((T-ye)/Gt))&&Y("overflow"),ye+=ot*Gt;var $t=Tn<=Je?S:Tn>=Je+w?w:Tn-Je;if(ot<$t)break;var Dn=A-$t;Gt>F(T/Dn)&&Y("overflow"),Gt*=Dn}var cn=ne.length+1;Je=oe(ye-at,cn,at==0),F(ye/cn)>T-tt&&Y("overflow"),tt+=F(ye/cn),ye%=cn,ne.splice(ye++,0,tt)}return String.fromCodePoint.apply(String,ne)},j=function($){var ne=[];$=J($);var xe=$.length,ye=I,tt=0,Je=L,Tt=!0,qt=!1,rn=void 0;try{for(var at=$[Symbol.iterator](),Gt;!(Tt=(Gt=at.next()).done);Tt=!0){var Tn=Gt.value;Tn<128&&ne.push(Q(Tn))}}catch(os){qt=!0,rn=os}finally{try{!Tt&&at.return&&at.return()}finally{if(qt)throw rn}}var ot=ne.length,$t=ot;for(ot&&ne.push(N);$t<xe;){var Dn=T,cn=!0,Ua=!1,ma=void 0;try{for(var Rr=$[Symbol.iterator](),Ba;!(cn=(Ba=Rr.next()).done);cn=!0){var hr=Ba.value;hr>=ye&&hr<Dn&&(Dn=hr)}}catch(os){Ua=!0,ma=os}finally{try{!cn&&Rr.return&&Rr.return()}finally{if(Ua)throw ma}}var xr=$t+1;Dn-ye>F((T-tt)/xr)&&Y("overflow"),tt+=(Dn-ye)*xr,ye=Dn;var Xr=!0,jr=!1,Wr=void 0;try{for(var js=$[Symbol.iterator](),d0;!(Xr=(d0=js.next()).done);Xr=!0){var Zu=d0.value;if(Zu<ye&&++tt>T&&Y("overflow"),Zu==ye){for(var mr=tt,yo=A;;yo+=A){var fl=yo<=Je?S:yo>=Je+w?w:yo-Je;if(mr<fl)break;var bo=mr-fl,Qu=A-fl;ne.push(Q(C(fl+bo%Qu,0))),mr=F(bo/Qu)}ne.push(Q(C(mr,0))),Je=oe(tt,xr,$t==ot),tt=0,++$t}}}catch(os){jr=!0,Wr=os}finally{try{!Xr&&js.return&&js.return()}finally{if(jr)throw Wr}}++tt,++ye}return ne.join("")},Ee=function($){return V($,function(ne){return M.test(ne)?ge(ne.slice(4).toLowerCase()):ne})},Pe=function($){return V($,function(ne){return D.test(ne)?"xn--"+j(ne):ne})},q={version:"2.1.0",ucs2:{decode:J,encode:X},decode:ge,encode:j,toASCII:Pe,toUnicode:Ee},ae={};function Te(ee){var $=ee.charCodeAt(0),ne=void 0;return $<16?ne="%0"+$.toString(16).toUpperCase():$<128?ne="%"+$.toString(16).toUpperCase():$<2048?ne="%"+($>>6|192).toString(16).toUpperCase()+"%"+($&63|128).toString(16).toUpperCase():ne="%"+($>>12|224).toString(16).toUpperCase()+"%"+($>>6&63|128).toString(16).toUpperCase()+"%"+($&63|128).toString(16).toUpperCase(),ne}function qe(ee){for(var $="",ne=0,xe=ee.length;ne<xe;){var ye=parseInt(ee.substr(ne+1,2),16);if(ye<128)$+=String.fromCharCode(ye),ne+=3;else if(ye>=194&&ye<224){if(xe-ne>=6){var tt=parseInt(ee.substr(ne+4,2),16);$+=String.fromCharCode((ye&31)<<6|tt&63)}else $+=ee.substr(ne,6);ne+=6}else if(ye>=224){if(xe-ne>=9){var Je=parseInt(ee.substr(ne+4,2),16),Tt=parseInt(ee.substr(ne+7,2),16);$+=String.fromCharCode((ye&15)<<12|(Je&63)<<6|Tt&63)}else $+=ee.substr(ne,9);ne+=9}else $+=ee.substr(ne,3),ne+=3}return $}function Ae(ee,$){function ne(xe){var ye=qe(xe);return ye.match($.UNRESERVED)?ye:xe}return ee.scheme&&(ee.scheme=String(ee.scheme).replace($.PCT_ENCODED,ne).toLowerCase().replace($.NOT_SCHEME,"")),ee.userinfo!==void 0&&(ee.userinfo=String(ee.userinfo).replace($.PCT_ENCODED,ne).replace($.NOT_USERINFO,Te).replace($.PCT_ENCODED,l)),ee.host!==void 0&&(ee.host=String(ee.host).replace($.PCT_ENCODED,ne).toLowerCase().replace($.NOT_HOST,Te).replace($.PCT_ENCODED,l)),ee.path!==void 0&&(ee.path=String(ee.path).replace($.PCT_ENCODED,ne).replace(ee.scheme?$.NOT_PATH:$.NOT_PATH_NOSCHEME,Te).replace($.PCT_ENCODED,l)),ee.query!==void 0&&(ee.query=String(ee.query).replace($.PCT_ENCODED,ne).replace($.NOT_QUERY,Te).replace($.PCT_ENCODED,l)),ee.fragment!==void 0&&(ee.fragment=String(ee.fragment).replace($.PCT_ENCODED,ne).replace($.NOT_FRAGMENT,Te).replace($.PCT_ENCODED,l)),ee}function Oe(ee){return ee.replace(/^0*(.*)/,"$1")||"0"}function et(ee,$){var ne=ee.match($.IPV4ADDRESS)||[],xe=E(ne,2),ye=xe[1];return ye?ye.split(".").map(Oe).join("."):ee}function ct(ee,$){var ne=ee.match($.IPV6ADDRESS)||[],xe=E(ne,3),ye=xe[1],tt=xe[2];if(ye){for(var Je=ye.toLowerCase().split("::").reverse(),Tt=E(Je,2),qt=Tt[0],rn=Tt[1],at=rn?rn.split(":").map(Oe):[],Gt=qt.split(":").map(Oe),Tn=$.IPV4ADDRESS.test(Gt[Gt.length-1]),ot=Tn?7:8,$t=Gt.length-ot,Dn=Array(ot),cn=0;cn<ot;++cn)Dn[cn]=at[cn]||Gt[$t+cn]||"";Tn&&(Dn[ot-1]=et(Dn[ot-1],$));var Ua=Dn.reduce(function(xr,Xr,jr){if(!Xr||Xr==="0"){var Wr=xr[xr.length-1];Wr&&Wr.index+Wr.length===jr?Wr.length++:xr.push({index:jr,length:1})}return xr},[]),ma=Ua.sort(function(xr,Xr){return Xr.length-xr.length})[0],Rr=void 0;if(ma&&ma.length>1){var Ba=Dn.slice(0,ma.index),hr=Dn.slice(ma.index+ma.length);Rr=Ba.join(":")+"::"+hr.join(":")}else Rr=Dn.join(":");return tt&&(Rr+="%"+tt),Rr}else return ee}var it=/^(?:([^:\/?#]+):)?(?:\/\/((?:([^\/?#@]*)@)?(\[[^\/?#\]]+\]|[^\/?#:]*)(?:\:(\d*))?))?([^?#]*)(?:\?([^#]*))?(?:#((?:.|\n|\r)*))?/i,Ht="".match(/(){0}/)[1]===void 0;function _t(ee){var $=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},ne={},xe=$.iri!==!1?m:v;$.reference==="suffix"&&(ee=($.scheme?$.scheme+":":"")+"//"+ee);var ye=ee.match(it);if(ye){Ht?(ne.scheme=ye[1],ne.userinfo=ye[3],ne.host=ye[4],ne.port=parseInt(ye[5],10),ne.path=ye[6]||"",ne.query=ye[7],ne.fragment=ye[8],isNaN(ne.port)&&(ne.port=ye[5])):(ne.scheme=ye[1]||void 0,ne.userinfo=ee.indexOf("@")!==-1?ye[3]:void 0,ne.host=ee.indexOf("//")!==-1?ye[4]:void 0,ne.port=parseInt(ye[5],10),ne.path=ye[6]||"",ne.query=ee.indexOf("?")!==-1?ye[7]:void 0,ne.fragment=ee.indexOf("#")!==-1?ye[8]:void 0,isNaN(ne.port)&&(ne.port=ee.match(/\/\/(?:.|\n)*\:(?:\/|\?|\#|$)/)?ye[4]:void 0)),ne.host&&(ne.host=ct(et(ne.host,xe),xe)),ne.scheme===void 0&&ne.userinfo===void 0&&ne.host===void 0&&ne.port===void 0&&!ne.path&&ne.query===void 0?ne.reference="same-document":ne.scheme===void 0?ne.reference="relative":ne.fragment===void 0?ne.reference="absolute":ne.reference="uri",$.reference&&$.reference!=="suffix"&&$.reference!==ne.reference&&(ne.error=ne.error||"URI is not a "+$.reference+" reference.");var tt=ae[($.scheme||ne.scheme||"").toLowerCase()];if(!$.unicodeSupport&&(!tt||!tt.unicodeSupport)){if(ne.host&&($.domainHost||tt&&tt.domainHost))try{ne.host=q.toASCII(ne.host.replace(xe.PCT_ENCODED,qe).toLowerCase())}catch(Je){ne.error=ne.error||"Host's domain name can not be converted to ASCII via punycode: "+Je}Ae(ne,v)}else Ae(ne,xe);tt&&tt.parse&&tt.parse(ne,$)}else ne.error=ne.error||"URI can not be parsed.";return ne}function st(ee,$){var ne=$.iri!==!1?m:v,xe=[];return ee.userinfo!==void 0&&(xe.push(ee.userinfo),xe.push("@")),ee.host!==void 0&&xe.push(ct(et(String(ee.host),ne),ne).replace(ne.IPV6ADDRESS,function(ye,tt,Je){return"["+tt+(Je?"%25"+Je:"")+"]"})),(typeof ee.port=="number"||typeof ee.port=="string")&&(xe.push(":"),xe.push(String(ee.port))),xe.length?xe.join(""):void 0}var vn=/^\.\.?\//,bt=/^\/\.(\/|$)/,W=/^\/\.\.(\/|$)/,ce=/^\/?(?:.|\n)*?(?=\/|$)/;function pe(ee){for(var $=[];ee.length;)if(ee.match(vn))ee=ee.replace(vn,"");else if(ee.match(bt))ee=ee.replace(bt,"/");else if(ee.match(W))ee=ee.replace(W,"/"),$.pop();else if(ee==="."||ee==="..")ee="";else{var ne=ee.match(ce);if(ne){var xe=ne[0];ee=ee.slice(xe.length),$.push(xe)}else throw new Error("Unexpected dot segment condition")}return $.join("")}function Ne(ee){var $=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},ne=$.iri?m:v,xe=[],ye=ae[($.scheme||ee.scheme||"").toLowerCase()];if(ye&&ye.serialize&&ye.serialize(ee,$),ee.host&&!ne.IPV6ADDRESS.test(ee.host)){if($.domainHost||ye&&ye.domainHost)try{ee.host=$.iri?q.toUnicode(ee.host):q.toASCII(ee.host.replace(ne.PCT_ENCODED,qe).toLowerCase())}catch(Tt){ee.error=ee.error||"Host's domain name can not be converted to "+($.iri?"Unicode":"ASCII")+" via punycode: "+Tt}}Ae(ee,ne),$.reference!=="suffix"&&ee.scheme&&(xe.push(ee.scheme),xe.push(":"));var tt=st(ee,$);if(tt!==void 0&&($.reference!=="suffix"&&xe.push("//"),xe.push(tt),ee.path&&ee.path.charAt(0)!=="/"&&xe.push("/")),ee.path!==void 0){var Je=ee.path;!$.absolutePath&&(!ye||!ye.absolutePath)&&(Je=pe(Je)),tt===void 0&&(Je=Je.replace(/^\/\//,"/%2F")),xe.push(Je)}return ee.query!==void 0&&(xe.push("?"),xe.push(ee.query)),ee.fragment!==void 0&&(xe.push("#"),xe.push(ee.fragment)),xe.join("")}function Me(ee,$){var ne=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},xe=arguments[3],ye={};return xe||(ee=_t(Ne(ee,ne),ne),$=_t(Ne($,ne),ne)),ne=ne||{},!ne.tolerant&&$.scheme?(ye.scheme=$.scheme,ye.userinfo=$.userinfo,ye.host=$.host,ye.port=$.port,ye.path=pe($.path||""),ye.query=$.query):($.userinfo!==void 0||$.host!==void 0||$.port!==void 0?(ye.userinfo=$.userinfo,ye.host=$.host,ye.port=$.port,ye.path=pe($.path||""),ye.query=$.query):($.path?($.path.charAt(0)==="/"?ye.path=pe($.path):((ee.userinfo!==void 0||ee.host!==void 0||ee.port!==void 0)&&!ee.path?ye.path="/"+$.path:ee.path?ye.path=ee.path.slice(0,ee.path.lastIndexOf("/")+1)+$.path:ye.path=$.path,ye.path=pe(ye.path)),ye.query=$.query):(ye.path=ee.path,$.query!==void 0?ye.query=$.query:ye.query=ee.query),ye.userinfo=ee.userinfo,ye.host=ee.host,ye.port=ee.port),ye.scheme=ee.scheme),ye.fragment=$.fragment,ye}function je(ee,$,ne){var xe=d({scheme:"null"},ne);return Ne(Me(_t(ee,xe),_t($,xe),xe,!0),xe)}function ie(ee,$){return typeof ee=="string"?ee=Ne(_t(ee,$),$):i(ee)==="object"&&(ee=_t(Ne(ee,$),$)),ee}function Se(ee,$,ne){return typeof ee=="string"?ee=Ne(_t(ee,ne),ne):i(ee)==="object"&&(ee=Ne(ee,ne)),typeof $=="string"?$=Ne(_t($,ne),ne):i($)==="object"&&($=Ne($,ne)),ee===$}function Ve(ee,$){return ee&&ee.toString().replace(!$||!$.iri?v.ESCAPE:m.ESCAPE,Te)}function $e(ee,$){return ee&&ee.toString().replace(!$||!$.iri?v.PCT_ENCODED:m.PCT_ENCODED,qe)}var pt={scheme:"http",domainHost:!0,parse:function($,ne){return $.host||($.error=$.error||"HTTP URIs must have a host."),$},serialize:function($,ne){var xe=String($.scheme).toLowerCase()==="https";return($.port===(xe?443:80)||$.port==="")&&($.port=void 0),$.path||($.path="/"),$}},tn={scheme:"https",domainHost:pt.domainHost,parse:pt.parse,serialize:pt.serialize};function jn(ee){return typeof ee.secure=="boolean"?ee.secure:String(ee.scheme).toLowerCase()==="wss"}var hn={scheme:"ws",domainHost:!0,parse:function($,ne){var xe=$;return xe.secure=jn(xe),xe.resourceName=(xe.path||"/")+(xe.query?"?"+xe.query:""),xe.path=void 0,xe.query=void 0,xe},serialize:function($,ne){if(($.port===(jn($)?443:80)||$.port==="")&&($.port=void 0),typeof $.secure=="boolean"&&($.scheme=$.secure?"wss":"ws",$.secure=void 0),$.resourceName){var xe=$.resourceName.split("?"),ye=E(xe,2),tt=ye[0],Je=ye[1];$.path=tt&&tt!=="/"?tt:void 0,$.query=Je,$.resourceName=void 0}return $.fragment=void 0,$}},Wn={scheme:"wss",domainHost:hn.domainHost,parse:hn.parse,serialize:hn.serialize},$n={},ln="[A-Za-z0-9\\-\\.\\_\\~\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]",un="[0-9A-Fa-f]",Zn=a(a("%[EFef]"+un+"%"+un+un+"%"+un+un)+"|"+a("%[89A-Fa-f]"+un+"%"+un+un)+"|"+a("%"+un+un)),Kr="[A-Za-z0-9\\!\\$\\%\\'\\*\\+\\-\\^\\_\\`\\{\\|\\}\\~]",cl="[\\!\\$\\%\\'\\(\\)\\*\\+\\,\\-\\.0-9\\<\\>A-Z\\x5E-\\x7E]",vo=r(cl,'[\\"\\\\]'),is="[\\!\\$\\'\\(\\)\\*\\+\\,\\;\\:\\@]",dl=new RegExp(ln,"g"),dt=new RegExp(Zn,"g"),Rn=new RegExp(r("[^]",Kr,"[\\.]",'[\\"]',vo),"g"),On=new RegExp(r("[^]",ln,is),"g"),Jn=On;function Fa(ee){var $=qe(ee);return $.match(dl)?$:ee}var kn={scheme:"mailto",parse:function($,ne){var xe=$,ye=xe.to=xe.path?xe.path.split(","):[];if(xe.path=void 0,xe.query){for(var tt=!1,Je={},Tt=xe.query.split("&"),qt=0,rn=Tt.length;qt<rn;++qt){var at=Tt[qt].split("=");switch(at[0]){case"to":for(var Gt=at[1].split(","),Tn=0,ot=Gt.length;Tn<ot;++Tn)ye.push(Gt[Tn]);break;case"subject":xe.subject=$e(at[1],ne);break;case"body":xe.body=$e(at[1],ne);break;default:tt=!0,Je[$e(at[0],ne)]=$e(at[1],ne);break}}tt&&(xe.headers=Je)}xe.query=void 0;for(var $t=0,Dn=ye.length;$t<Dn;++$t){var cn=ye[$t].split("@");if(cn[0]=$e(cn[0]),ne.unicodeSupport)cn[1]=$e(cn[1],ne).toLowerCase();else try{cn[1]=q.toASCII($e(cn[1],ne).toLowerCase())}catch(Ua){xe.error=xe.error||"Email address's domain name can not be converted to ASCII via punycode: "+Ua}ye[$t]=cn.join("@")}return xe},serialize:function($,ne){var xe=$,ye=u($.to);if(ye){for(var tt=0,Je=ye.length;tt<Je;++tt){var Tt=String(ye[tt]),qt=Tt.lastIndexOf("@"),rn=Tt.slice(0,qt).replace(dt,Fa).replace(dt,l).replace(Rn,Te),at=Tt.slice(qt+1);try{at=ne.iri?q.toUnicode(at):q.toASCII($e(at,ne).toLowerCase())}catch($t){xe.error=xe.error||"Email address's domain name can not be converted to "+(ne.iri?"Unicode":"ASCII")+" via punycode: "+$t}ye[tt]=rn+"@"+at}xe.path=ye.join(",")}var Gt=$.headers=$.headers||{};$.subject&&(Gt.subject=$.subject),$.body&&(Gt.body=$.body);var Tn=[];for(var ot in Gt)Gt[ot]!==$n[ot]&&Tn.push(ot.replace(dt,Fa).replace(dt,l).replace(On,Te)+"="+Gt[ot].replace(dt,Fa).replace(dt,l).replace(Jn,Te));return Tn.length&&(xe.query=Tn.join("&")),xe}},Nn=/^([^\:]+)\:(.*)/,_n={scheme:"urn",parse:function($,ne){var xe=$.path&&$.path.match(Nn),ye=$;if(xe){var tt=ne.scheme||ye.scheme||"urn",Je=xe[1].toLowerCase(),Tt=xe[2],qt=tt+":"+(ne.nid||Je),rn=ae[qt];ye.nid=Je,ye.nss=Tt,ye.path=void 0,rn&&(ye=rn.parse(ye,ne))}else ye.error=ye.error||"URN can not be parsed.";return ye},serialize:function($,ne){var xe=ne.scheme||$.scheme||"urn",ye=$.nid,tt=xe+":"+(ne.nid||ye),Je=ae[tt];Je&&($=Je.serialize($,ne));var Tt=$,qt=$.nss;return Tt.path=(ye||ne.nid)+":"+qt,Tt}},nn=/^[0-9A-Fa-f]{8}(?:\-[0-9A-Fa-f]{4}){3}\-[0-9A-Fa-f]{12}$/,Hn={scheme:"urn:uuid",parse:function($,ne){var xe=$;return xe.uuid=xe.nss,xe.nss=void 0,!ne.tolerant&&(!xe.uuid||!xe.uuid.match(nn))&&(xe.error=xe.error||"UUID is not valid."),xe},serialize:function($,ne){var xe=$;return xe.nss=($.uuid||"").toLowerCase(),xe}};ae[pt.scheme]=pt,ae[tn.scheme]=tn,ae[hn.scheme]=hn,ae[Wn.scheme]=Wn,ae[kn.scheme]=kn,ae[_n.scheme]=_n,ae[Hn.scheme]=Hn,n.SCHEMES=ae,n.pctEncChar=Te,n.pctDecChars=qe,n.parse=_t,n.removeDotSegments=pe,n.serialize=Ne,n.resolveComponents=Me,n.resolve=je,n.normalize=ie,n.equal=Se,n.escapeComponent=Ve,n.unescapeComponent=$e,Object.defineProperty(n,"__esModule",{value:!0})})}(rd,rd.exports)),rd.exports}var dg,Y5;function sy(){return Y5||(Y5=1,dg=function e(t,n){if(t===n)return!0;if(t&&n&&typeof t=="object"&&typeof n=="object"){if(t.constructor!==n.constructor)return!1;var r,a,i;if(Array.isArray(t)){if(r=t.length,r!=n.length)return!1;for(a=r;a--!==0;)if(!e(t[a],n[a]))return!1;return!0}if(t.constructor===RegExp)return t.source===n.source&&t.flags===n.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===n.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===n.toString();if(i=Object.keys(t),r=i.length,r!==Object.keys(n).length)return!1;for(a=r;a--!==0;)if(!Object.prototype.hasOwnProperty.call(n,i[a]))return!1;for(a=r;a--!==0;){var l=i[a];if(!e(t[l],n[l]))return!1}return!0}return t!==t&&n!==n}),dg}var fg,G5;function wae(){return G5||(G5=1,fg=function(t){for(var n=0,r=t.length,a=0,i;a<r;)n++,i=t.charCodeAt(a++),i>=55296&&i<=56319&&a<r&&(i=t.charCodeAt(a),(i&64512)==56320&&a++);return n}),fg}var hg,K5;function $u(){if(K5)return hg;K5=1,hg={copy:e,checkDataType:t,checkDataTypes:n,coerceToTypes:a,toHash:i,getProperty:d,escapeQuotes:h,equal:sy(),ucs2length:wae(),varOccurences:v,varReplace:m,schemaHasRules:E,schemaHasRulesExcept:b,schemaUnknownRules:T,toQuotedString:A,getPathExpr:S,getPath:w,getData:L,unescapeFragment:N,unescapeJsonPointer:B,escapeFragment:M,escapeJsonPointer:D};function e(P,U){U=U||{};for(var F in P)U[F]=P[F];return U}function t(P,U,F,Q){var Y=Q?" !== ":" === ",te=Q?" || ":" && ",V=Q?"!":"",J=Q?"":"!";switch(P){case"null":return U+Y+"null";case"array":return V+"Array.isArray("+U+")";case"object":return"("+V+U+te+"typeof "+U+Y+'"object"'+te+J+"Array.isArray("+U+"))";case"integer":return"(typeof "+U+Y+'"number"'+te+J+"("+U+" % 1)"+te+U+Y+U+(F?te+V+"isFinite("+U+")":"")+")";case"number":return"(typeof "+U+Y+'"'+P+'"'+(F?te+V+"isFinite("+U+")":"")+")";default:return"typeof "+U+Y+'"'+P+'"'}}function n(P,U,F){switch(P.length){case 1:return t(P[0],U,F,!0);default:var Q="",Y=i(P);Y.array&&Y.object&&(Q=Y.null?"(":"(!"+U+" || ",Q+="typeof "+U+' !== "object")',delete Y.null,delete Y.array,delete Y.object),Y.number&&delete Y.integer;for(var te in Y)Q+=(Q?" && ":"")+t(te,U,F,!0);return Q}}var r=i(["string","number","integer","boolean","null"]);function a(P,U){if(Array.isArray(U)){for(var F=[],Q=0;Q<U.length;Q++){var Y=U[Q];(r[Y]||P==="array"&&Y==="array")&&(F[F.length]=Y)}if(F.length)return F}else{if(r[U])return[U];if(P==="array"&&U==="array")return["array"]}}function i(P){for(var U={},F=0;F<P.length;F++)U[P[F]]=!0;return U}var l=/^[a-z$_][a-z$_0-9]*$/i,u=/'|\\/g;function d(P){return typeof P=="number"?"["+P+"]":l.test(P)?"."+P:"['"+h(P)+"']"}function h(P){return P.replace(u,"\\$&").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\f/g,"\\f").replace(/\t/g,"\\t")}function v(P,U){U+="[^0-9]";var F=P.match(new RegExp(U,"g"));return F?F.length:0}function m(P,U,F){return U+="([^0-9])",F=F.replace(/\$/g,"$$$$"),P.replace(new RegExp(U,"g"),F+"$1")}function E(P,U){if(typeof P=="boolean")return!P;for(var F in P)if(U[F])return!0}function b(P,U,F){if(typeof P=="boolean")return!P&&F!="not";for(var Q in P)if(Q!=F&&U[Q])return!0}function T(P,U){if(typeof P!="boolean"){for(var F in P)if(!U[F])return F}}function A(P){return"'"+h(P)+"'"}function S(P,U,F,Q){var Y=F?"'/' + "+U+(Q?"":".replace(/~/g, '~0').replace(/\\//g, '~1')"):Q?"'[' + "+U+" + ']'":"'[\\'' + "+U+" + '\\']'";return I(P,Y)}function w(P,U,F){var Q=A(F?"/"+D(U):d(U));return I(P,Q)}var R=/^\/(?:[^~]|~0|~1)*$/,k=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function L(P,U,F){var Q,Y,te,V;if(P==="")return"rootData";if(P[0]=="/"){if(!R.test(P))throw new Error("Invalid JSON-pointer: "+P);Y=P,te="rootData"}else{if(V=P.match(k),!V)throw new Error("Invalid JSON-pointer: "+P);if(Q=+V[1],Y=V[2],Y=="#"){if(Q>=U)throw new Error("Cannot access property/index "+Q+" levels up, current level is "+U);return F[U-Q]}if(Q>U)throw new Error("Cannot access data "+Q+" levels up, current level is "+U);if(te="data"+(U-Q||""),!Y)return te}for(var J=te,X=Y.split("/"),se=0;se<X.length;se++){var C=X[se];C&&(te+=d(B(C)),J+=" && "+te)}return J}function I(P,U){return P=='""'?U:(P+" + "+U).replace(/([^\\])' \+ '/g,"$1")}function N(P){return B(decodeURIComponent(P))}function M(P){return encodeURIComponent(D(P))}function D(P){return P.replace(/~/g,"~0").replace(/\//g,"~1")}function B(P){return P.replace(/~1/g,"/").replace(/~0/g,"~")}return hg}var mg,X5;function RN(){if(X5)return mg;X5=1;var e=$u();mg=t;function t(n){e.copy(n,this)}return mg}var pg={exports:{}},W5;function Cae(){if(W5)return pg.exports;W5=1;var e=pg.exports=function(r,a,i){typeof a=="function"&&(i=a,a={}),i=a.cb||i;var l=typeof i=="function"?i:i.pre||function(){},u=i.post||function(){};t(a,l,u,r,"",r)};e.keywords={additionalItems:!0,items:!0,contains:!0,additionalProperties:!0,propertyNames:!0,not:!0},e.arrayKeywords={items:!0,allOf:!0,anyOf:!0,oneOf:!0},e.propsKeywords={definitions:!0,properties:!0,patternProperties:!0,dependencies:!0},e.skipKeywords={default:!0,enum:!0,const:!0,required:!0,maximum:!0,minimum:!0,exclusiveMaximum:!0,exclusiveMinimum:!0,multipleOf:!0,maxLength:!0,minLength:!0,pattern:!0,format:!0,maxItems:!0,minItems:!0,uniqueItems:!0,maxProperties:!0,minProperties:!0};function t(r,a,i,l,u,d,h,v,m,E){if(l&&typeof l=="object"&&!Array.isArray(l)){a(l,u,d,h,v,m,E);for(var b in l){var T=l[b];if(Array.isArray(T)){if(b in e.arrayKeywords)for(var A=0;A<T.length;A++)t(r,a,i,T[A],u+"/"+b+"/"+A,d,u,b,l,A)}else if(b in e.propsKeywords){if(T&&typeof T=="object")for(var S in T)t(r,a,i,T[S],u+"/"+b+"/"+n(S),d,u,b,l,S)}else(b in e.keywords||r.allKeys&&!(b in e.skipKeywords))&&t(r,a,i,T,u+"/"+b,d,u,b,l)}i(l,u,d,h,v,m,E)}}function n(r){return r.replace(/~/g,"~0").replace(/\//g,"~1")}return pg.exports}var gg,J5;function iy(){if(J5)return gg;J5=1;var e=Sae(),t=sy(),n=$u(),r=RN(),a=Cae();gg=i,i.normalizeId=w,i.fullPath=T,i.url=R,i.ids=k,i.inlineRef=m,i.schema=l;function i(L,I,N){var M=this._refs[N];if(typeof M=="string")if(this._refs[M])M=this._refs[M];else return i.call(this,L,I,M);if(M=M||this._schemas[N],M instanceof r)return m(M.schema,this._opts.inlineRefs)?M.schema:M.validate||this._compile(M);var D=l.call(this,I,N),B,P,U;return D&&(B=D.schema,I=D.root,U=D.baseId),B instanceof r?P=B.validate||L.call(this,B.schema,I,void 0,U):B!==void 0&&(P=m(B,this._opts.inlineRefs)?B:L.call(this,B,I,void 0,U)),P}function l(L,I){var N=e.parse(I),M=A(N),D=T(this._getId(L.schema));if(Object.keys(L.schema).length===0||M!==D){var B=w(M),P=this._refs[B];if(typeof P=="string")return u.call(this,L,P,N);if(P instanceof r)P.validate||this._compile(P),L=P;else if(P=this._schemas[B],P instanceof r){if(P.validate||this._compile(P),B==w(I))return{schema:P,root:L,baseId:D};L=P}else return;if(!L.schema)return;D=T(this._getId(L.schema))}return h.call(this,N,D,L.schema,L)}function u(L,I,N){var M=l.call(this,L,I);if(M){var D=M.schema,B=M.baseId;L=M.root;var P=this._getId(D);return P&&(B=R(B,P)),h.call(this,N,B,D,L)}}var d=n.toHash(["properties","patternProperties","enum","dependencies","definitions"]);function h(L,I,N,M){if(L.fragment=L.fragment||"",L.fragment.slice(0,1)=="/"){for(var D=L.fragment.split("/"),B=1;B<D.length;B++){var P=D[B];if(P){if(P=n.unescapeFragment(P),N=N[P],N===void 0)break;var U;if(!d[P]&&(U=this._getId(N),U&&(I=R(I,U)),N.$ref)){var F=R(I,N.$ref),Q=l.call(this,M,F);Q&&(N=Q.schema,M=Q.root,I=Q.baseId)}}}if(N!==void 0&&N!==M.schema)return{schema:N,root:M,baseId:I}}}var v=n.toHash(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum"]);function m(L,I){if(I===!1)return!1;if(I===void 0||I===!0)return E(L);if(I)return b(L)<=I}function E(L){var I;if(Array.isArray(L)){for(var N=0;N<L.length;N++)if(I=L[N],typeof I=="object"&&!E(I))return!1}else for(var M in L)if(M=="$ref"||(I=L[M],typeof I=="object"&&!E(I)))return!1;return!0}function b(L){var I=0,N;if(Array.isArray(L)){for(var M=0;M<L.length;M++)if(N=L[M],typeof N=="object"&&(I+=b(N)),I==1/0)return 1/0}else for(var D in L){if(D=="$ref")return 1/0;if(v[D])I++;else if(N=L[D],typeof N=="object"&&(I+=b(N)+1),I==1/0)return 1/0}return I}function T(L,I){I!==!1&&(L=w(L));var N=e.parse(L);return A(N)}function A(L){return e.serialize(L).split("#")[0]+"#"}var S=/#\/?$/;function w(L){return L?L.replace(S,""):""}function R(L,I){return I=w(I),e.resolve(L,I)}function k(L){var I=w(this._getId(L)),N={"":I},M={"":T(I,!1)},D={},B=this;return a(L,{allKeys:!0},function(P,U,F,Q,Y,te,V){if(U!==""){var J=B._getId(P),X=N[Q],se=M[Q]+"/"+Y;if(V!==void 0&&(se+="/"+(typeof V=="number"?V:n.escapeFragment(V))),typeof J=="string"){J=X=w(X?e.resolve(X,J):J);var C=B._refs[J];if(typeof C=="string"&&(C=B._refs[C]),C&&C.schema){if(!t(P,C.schema))throw new Error('id "'+J+'" resolves to more than one schema')}else if(J!=w(se))if(J[0]=="#"){if(D[J]&&!t(P,D[J]))throw new Error('id "'+J+'" resolves to more than one schema');D[J]=P}else B._refs[J]=se}N[U]=X,M[U]=se}}),D}return gg}var vg,eT;function oy(){if(eT)return vg;eT=1;var e=iy();vg={Validation:r(t),MissingRef:r(n)};function t(a){this.message="validation failed",this.errors=a,this.ajv=this.validation=!0}n.message=function(a,i){return"can't resolve reference "+i+" from id "+a};function n(a,i,l){this.message=l||n.message(a,i),this.missingRef=e.url(a,i),this.missingSchema=e.normalizeId(e.fullPath(this.missingRef))}function r(a){return a.prototype=Object.create(Error.prototype),a.prototype.constructor=a,a}return vg}var yg,tT;function ON(){return tT||(tT=1,yg=function(e,t){t||(t={}),typeof t=="function"&&(t={cmp:t});var n=typeof t.cycles=="boolean"?t.cycles:!1,r=t.cmp&&function(i){return function(l){return function(u,d){var h={key:u,value:l[u]},v={key:d,value:l[d]};return i(h,v)}}}(t.cmp),a=[];return function i(l){if(l&&l.toJSON&&typeof l.toJSON=="function"&&(l=l.toJSON()),l!==void 0){if(typeof l=="number")return isFinite(l)?""+l:"null";if(typeof l!="object")return JSON.stringify(l);var u,d;if(Array.isArray(l)){for(d="[",u=0;u<l.length;u++)u&&(d+=","),d+=i(l[u])||"null";return d+"]"}if(l===null)return"null";if(a.indexOf(l)!==-1){if(n)return JSON.stringify("__cycle__");throw new TypeError("Converting circular structure to JSON")}var h=a.push(l)-1,v=Object.keys(l).sort(r&&r(l));for(d="",u=0;u<v.length;u++){var m=v[u],E=i(l[m]);E&&(d&&(d+=","),d+=JSON.stringify(m)+":"+E)}return a.splice(h,1),"{"+d+"}"}}(e)}),yg}var bg,nT;function NN(){return nT||(nT=1,bg=function(t,n,r){var a="",i=t.schema.$async===!0,l=t.util.schemaHasRulesExcept(t.schema,t.RULES.all,"$ref"),u=t.self._getId(t.schema);if(t.opts.strictKeywords){var d=t.util.schemaUnknownRules(t.schema,t.RULES.keywords);if(d){var h="unknown keyword: "+d;if(t.opts.strictKeywords==="log")t.logger.warn(h);else throw new Error(h)}}if(t.isTop&&(a+=" var validate = ",i&&(t.async=!0,a+="async "),a+="function(data, dataPath, parentData, parentDataProperty, rootData) { 'use strict'; ",u&&(t.opts.sourceCode||t.opts.processCode)&&(a+=" "+("/*# sourceURL="+u+" */")+" ")),typeof t.schema=="boolean"||!(l||t.schema.$ref)){var n="false schema",v=t.level,m=t.dataLevel,E=t.schema[n],b=t.schemaPath+t.util.getProperty(n),T=t.errSchemaPath+"/"+n,I=!t.opts.allErrors,D,A="data"+(m||""),L="valid"+v;if(t.schema===!1){t.isTop?I=!0:a+=" var "+L+" = false; ";var S=S||[];S.push(a),a="",t.createErrors!==!1?(a+=" { keyword: '"+(D||"false schema")+"' , dataPath: (dataPath || '') + "+t.errorPath+" , schemaPath: "+t.util.toQuotedString(T)+" , params: {} ",t.opts.messages!==!1&&(a+=" , message: 'boolean schema is false' "),t.opts.verbose&&(a+=" , schema: false , parentSchema: validate.schema"+t.schemaPath+" , data: "+A+" "),a+=" } "):a+=" {} ";var w=a;a=S.pop(),!t.compositeRule&&I?t.async?a+=" throw new ValidationError(["+w+"]); ":a+=" validate.errors = ["+w+"]; return false; ":a+=" var err = "+w+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}else t.isTop?i?a+=" return data; ":a+=" validate.errors = null; return true; ":a+=" var "+L+" = true; ";return t.isTop&&(a+=" }; return validate; "),a}if(t.isTop){var R=t.isTop,v=t.level=0,m=t.dataLevel=0,A="data";if(t.rootId=t.resolve.fullPath(t.self._getId(t.root.schema)),t.baseId=t.baseId||t.rootId,delete t.isTop,t.dataPathArr=[""],t.schema.default!==void 0&&t.opts.useDefaults&&t.opts.strictDefaults){var k="default is ignored in the schema root";if(t.opts.strictDefaults==="log")t.logger.warn(k);else throw new Error(k)}a+=" var vErrors = null; ",a+=" var errors = 0; ",a+=" if (rootData === undefined) rootData = data; "}else{var v=t.level,m=t.dataLevel,A="data"+(m||"");if(u&&(t.baseId=t.resolve.url(t.baseId,u)),i&&!t.async)throw new Error("async schema in sync schema");a+=" var errs_"+v+" = errors;"}var L="valid"+v,I=!t.opts.allErrors,N="",M="",D,B=t.schema.type,P=Array.isArray(B);if(B&&t.opts.nullable&&t.schema.nullable===!0&&(P?B.indexOf("null")==-1&&(B=B.concat("null")):B!="null"&&(B=[B,"null"],P=!0)),P&&B.length==1&&(B=B[0],P=!1),t.schema.$ref&&l){if(t.opts.extendRefs=="fail")throw new Error('$ref: validation keywords used in schema at path "'+t.errSchemaPath+'" (see option extendRefs)');t.opts.extendRefs!==!0&&(l=!1,t.logger.warn('$ref: keywords ignored in schema at path "'+t.errSchemaPath+'"'))}if(t.schema.$comment&&t.opts.$comment&&(a+=" "+t.RULES.all.$comment.code(t,"$comment")),B){if(t.opts.coerceTypes)var U=t.util.coerceToTypes(t.opts.coerceTypes,B);var F=t.RULES.types[B];if(U||P||F===!0||F&&!bt(F)){var b=t.schemaPath+".type",T=t.errSchemaPath+"/type",b=t.schemaPath+".type",T=t.errSchemaPath+"/type",Q=P?"checkDataTypes":"checkDataType";if(a+=" if ("+t.util[Q](B,A,t.opts.strictNumbers,!0)+") { ",U){var Y="dataType"+v,te="coerced"+v;a+=" var "+Y+" = typeof "+A+"; var "+te+" = undefined; ",t.opts.coerceTypes=="array"&&(a+=" if ("+Y+" == 'object' && Array.isArray("+A+") && "+A+".length == 1) { "+A+" = "+A+"[0]; "+Y+" = typeof "+A+"; if ("+t.util.checkDataType(t.schema.type,A,t.opts.strictNumbers)+") "+te+" = "+A+"; } "),a+=" if ("+te+" !== undefined) ; ";var V=U;if(V)for(var J,X=-1,se=V.length-1;X<se;)J=V[X+=1],J=="string"?a+=" else if ("+Y+" == 'number' || "+Y+" == 'boolean') "+te+" = '' + "+A+"; else if ("+A+" === null) "+te+" = ''; ":J=="number"||J=="integer"?(a+=" else if ("+Y+" == 'boolean' || "+A+" === null || ("+Y+" == 'string' && "+A+" && "+A+" == +"+A+" ",J=="integer"&&(a+=" && !("+A+" % 1)"),a+=")) "+te+" = +"+A+"; "):J=="boolean"?a+=" else if ("+A+" === 'false' || "+A+" === 0 || "+A+" === null) "+te+" = false; else if ("+A+" === 'true' || "+A+" === 1) "+te+" = true; ":J=="null"?a+=" else if ("+A+" === '' || "+A+" === 0 || "+A+" === false) "+te+" = null; ":t.opts.coerceTypes=="array"&&J=="array"&&(a+=" else if ("+Y+" == 'string' || "+Y+" == 'number' || "+Y+" == 'boolean' || "+A+" == null) "+te+" = ["+A+"]; ");a+=" else { ";var S=S||[];S.push(a),a="",t.createErrors!==!1?(a+=" { keyword: '"+(D||"type")+"' , dataPath: (dataPath || '') + "+t.errorPath+" , schemaPath: "+t.util.toQuotedString(T)+" , params: { type: '",P?a+=""+B.join(","):a+=""+B,a+="' } ",t.opts.messages!==!1&&(a+=" , message: 'should be ",P?a+=""+B.join(","):a+=""+B,a+="' "),t.opts.verbose&&(a+=" , schema: validate.schema"+b+" , parentSchema: validate.schema"+t.schemaPath+" , data: "+A+" "),a+=" } "):a+=" {} ";var w=a;a=S.pop(),!t.compositeRule&&I?t.async?a+=" throw new ValidationError(["+w+"]); ":a+=" validate.errors = ["+w+"]; return false; ":a+=" var err = "+w+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",a+=" } if ("+te+" !== undefined) { ";var C=m?"data"+(m-1||""):"parentData",oe=m?t.dataPathArr[m]:"parentDataProperty";a+=" "+A+" = "+te+"; ",m||(a+="if ("+C+" !== undefined)"),a+=" "+C+"["+oe+"] = "+te+"; } "}else{var S=S||[];S.push(a),a="",t.createErrors!==!1?(a+=" { keyword: '"+(D||"type")+"' , dataPath: (dataPath || '') + "+t.errorPath+" , schemaPath: "+t.util.toQuotedString(T)+" , params: { type: '",P?a+=""+B.join(","):a+=""+B,a+="' } ",t.opts.messages!==!1&&(a+=" , message: 'should be ",P?a+=""+B.join(","):a+=""+B,a+="' "),t.opts.verbose&&(a+=" , schema: validate.schema"+b+" , parentSchema: validate.schema"+t.schemaPath+" , data: "+A+" "),a+=" } "):a+=" {} ";var w=a;a=S.pop(),!t.compositeRule&&I?t.async?a+=" throw new ValidationError(["+w+"]); ":a+=" validate.errors = ["+w+"]; return false; ":a+=" var err = "+w+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}a+=" } "}}if(t.schema.$ref&&!l)a+=" "+t.RULES.all.$ref.code(t,"$ref")+" ",I&&(a+=" } if (errors === ",R?a+="0":a+="errs_"+v,a+=") { ",M+="}");else{var ge=t.RULES;if(ge){for(var F,j=-1,Ee=ge.length-1;j<Ee;)if(F=ge[j+=1],bt(F)){if(F.type&&(a+=" if ("+t.util.checkDataType(F.type,A,t.opts.strictNumbers)+") { "),t.opts.useDefaults){if(F.type=="object"&&t.schema.properties){var E=t.schema.properties,Pe=Object.keys(E),q=Pe;if(q)for(var ae,Te=-1,qe=q.length-1;Te<qe;){ae=q[Te+=1];var Ae=E[ae];if(Ae.default!==void 0){var Oe=A+t.util.getProperty(ae);if(t.compositeRule){if(t.opts.strictDefaults){var k="default is ignored for: "+Oe;if(t.opts.strictDefaults==="log")t.logger.warn(k);else throw new Error(k)}}else a+=" if ("+Oe+" === undefined ",t.opts.useDefaults=="empty"&&(a+=" || "+Oe+" === null || "+Oe+" === '' "),a+=" ) "+Oe+" = ",t.opts.useDefaults=="shared"?a+=" "+t.useDefault(Ae.default)+" ":a+=" "+JSON.stringify(Ae.default)+" ",a+="; "}}}else if(F.type=="array"&&Array.isArray(t.schema.items)){var et=t.schema.items;if(et){for(var Ae,X=-1,ct=et.length-1;X<ct;)if(Ae=et[X+=1],Ae.default!==void 0){var Oe=A+"["+X+"]";if(t.compositeRule){if(t.opts.strictDefaults){var k="default is ignored for: "+Oe;if(t.opts.strictDefaults==="log")t.logger.warn(k);else throw new Error(k)}}else a+=" if ("+Oe+" === undefined ",t.opts.useDefaults=="empty"&&(a+=" || "+Oe+" === null || "+Oe+" === '' "),a+=" ) "+Oe+" = ",t.opts.useDefaults=="shared"?a+=" "+t.useDefault(Ae.default)+" ":a+=" "+JSON.stringify(Ae.default)+" ",a+="; "}}}}var it=F.rules;if(it){for(var Ht,_t=-1,st=it.length-1;_t<st;)if(Ht=it[_t+=1],W(Ht)){var vn=Ht.code(t,Ht.keyword,F.type);vn&&(a+=" "+vn+" ",I&&(N+="}"))}}if(I&&(a+=" "+N+" ",N=""),F.type&&(a+=" } ",B&&B===F.type&&!U)){a+=" else { ";var b=t.schemaPath+".type",T=t.errSchemaPath+"/type",S=S||[];S.push(a),a="",t.createErrors!==!1?(a+=" { keyword: '"+(D||"type")+"' , dataPath: (dataPath || '') + "+t.errorPath+" , schemaPath: "+t.util.toQuotedString(T)+" , params: { type: '",P?a+=""+B.join(","):a+=""+B,a+="' } ",t.opts.messages!==!1&&(a+=" , message: 'should be ",P?a+=""+B.join(","):a+=""+B,a+="' "),t.opts.verbose&&(a+=" , schema: validate.schema"+b+" , parentSchema: validate.schema"+t.schemaPath+" , data: "+A+" "),a+=" } "):a+=" {} ";var w=a;a=S.pop(),!t.compositeRule&&I?t.async?a+=" throw new ValidationError(["+w+"]); ":a+=" validate.errors = ["+w+"]; return false; ":a+=" var err = "+w+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",a+=" } "}I&&(a+=" if (errors === ",R?a+="0":a+="errs_"+v,a+=") { ",M+="}")}}}I&&(a+=" "+M+" "),R?(i?(a+=" if (errors === 0) return data; ",a+=" else throw new ValidationError(vErrors); "):(a+=" validate.errors = vErrors; ",a+=" return errors === 0; "),a+=" }; return validate;"):a+=" var "+L+" = errors === errs_"+v+";";function bt(pe){for(var Ne=pe.rules,Me=0;Me<Ne.length;Me++)if(W(Ne[Me]))return!0}function W(pe){return t.schema[pe.keyword]!==void 0||pe.implements&&ce(pe)}function ce(pe){for(var Ne=pe.implements,Me=0;Me<Ne.length;Me++)if(t.schema[Ne[Me]]!==void 0)return!0}return a}),bg}var Eg,rT;function Rae(){if(rT)return Eg;rT=1;var e=iy(),t=$u(),n=oy(),r=ON(),a=NN(),i=t.ucs2length,l=sy(),u=n.Validation;Eg=d;function d(w,R,k,L){var I=this,N=this._opts,M=[void 0],D={},B=[],P={},U=[],F={},Q=[];R=R||{schema:w,refVal:M,refs:D};var Y=h.call(this,w,R,L),te=this._compilations[Y.index];if(Y.compiling)return te.callValidate=C;var V=this._formats,J=this.RULES;try{var X=oe(w,R,k,L);te.validate=X;var se=te.callValidate;return se&&(se.schema=X.schema,se.errors=null,se.refs=X.refs,se.refVal=X.refVal,se.root=X.root,se.$async=X.$async,N.sourceCode&&(se.source=X.source)),X}finally{v.call(this,w,R,L)}function C(){var Ae=te.validate,Oe=Ae.apply(this,arguments);return C.errors=Ae.errors,Oe}function oe(Ae,Oe,et,ct){var it=!Oe||Oe&&Oe.schema==Ae;if(Oe.schema!=R.schema)return d.call(I,Ae,Oe,et,ct);var Ht=Ae.$async===!0,_t=a({isTop:!0,schema:Ae,isRoot:it,baseId:ct,root:Oe,schemaPath:"",errSchemaPath:"#",errorPath:'""',MissingRefError:n.MissingRef,RULES:J,validate:a,util:t,resolve:e,resolveRef:ge,usePattern:ae,useDefault:Te,useCustomRule:qe,opts:N,formats:V,logger:I.logger,self:I});_t=S(M,T)+S(B,E)+S(U,b)+S(Q,A)+_t,N.processCode&&(_t=N.processCode(_t,Ae));var st;try{var vn=new Function("self","RULES","formats","root","refVal","defaults","customRules","equal","ucs2length","ValidationError",_t);st=vn(I,J,V,R,M,U,Q,l,i,u),M[0]=st}catch(bt){throw I.logger.error("Error compiling schema, function code:",_t),bt}return st.schema=Ae,st.errors=null,st.refs=D,st.refVal=M,st.root=it?st:Oe,Ht&&(st.$async=!0),N.sourceCode===!0&&(st.source={code:_t,patterns:B,defaults:U}),st}function ge(Ae,Oe,et){Oe=e.url(Ae,Oe);var ct=D[Oe],it,Ht;if(ct!==void 0)return it=M[ct],Ht="refVal["+ct+"]",q(it,Ht);if(!et&&R.refs){var _t=R.refs[Oe];if(_t!==void 0)return it=R.refVal[_t],Ht=j(Oe,it),q(it,Ht)}Ht=j(Oe);var st=e.call(I,oe,R,Oe);if(st===void 0){var vn=k&&k[Oe];vn&&(st=e.inlineRef(vn,N.inlineRefs)?vn:d.call(I,vn,R,k,Ae))}if(st===void 0)Ee(Oe);else return Pe(Oe,st),q(st,Ht)}function j(Ae,Oe){var et=M.length;return M[et]=Oe,D[Ae]=et,"refVal"+et}function Ee(Ae){delete D[Ae]}function Pe(Ae,Oe){var et=D[Ae];M[et]=Oe}function q(Ae,Oe){return typeof Ae=="object"||typeof Ae=="boolean"?{code:Oe,schema:Ae,inline:!0}:{code:Oe,$async:Ae&&!!Ae.$async}}function ae(Ae){var Oe=P[Ae];return Oe===void 0&&(Oe=P[Ae]=B.length,B[Oe]=Ae),"pattern"+Oe}function Te(Ae){switch(typeof Ae){case"boolean":case"number":return""+Ae;case"string":return t.toQuotedString(Ae);case"object":if(Ae===null)return"null";var Oe=r(Ae),et=F[Oe];return et===void 0&&(et=F[Oe]=U.length,U[et]=Ae),"default"+et}}function qe(Ae,Oe,et,ct){if(I._opts.validateSchema!==!1){var it=Ae.definition.dependencies;if(it&&!it.every(function(Ne){return Object.prototype.hasOwnProperty.call(et,Ne)}))throw new Error("parent schema must have all required keywords: "+it.join(","));var Ht=Ae.definition.validateSchema;if(Ht){var _t=Ht(Oe);if(!_t){var st="keyword schema is invalid: "+I.errorsText(Ht.errors);if(I._opts.validateSchema=="log")I.logger.error(st);else throw new Error(st)}}}var vn=Ae.definition.compile,bt=Ae.definition.inline,W=Ae.definition.macro,ce;if(vn)ce=vn.call(I,Oe,et,ct);else if(W)ce=W.call(I,Oe,et,ct),N.validateSchema!==!1&&I.validateSchema(ce,!0);else if(bt)ce=bt.call(I,ct,Ae.keyword,Oe,et);else if(ce=Ae.definition.validate,!ce)return;if(ce===void 0)throw new Error('custom keyword "'+Ae.keyword+'"failed to compile');var pe=Q.length;return Q[pe]=ce,{code:"customRule"+pe,validate:ce}}}function h(w,R,k){var L=m.call(this,w,R,k);return L>=0?{index:L,compiling:!0}:(L=this._compilations.length,this._compilations[L]={schema:w,root:R,baseId:k},{index:L,compiling:!1})}function v(w,R,k){var L=m.call(this,w,R,k);L>=0&&this._compilations.splice(L,1)}function m(w,R,k){for(var L=0;L<this._compilations.length;L++){var I=this._compilations[L];if(I.schema==w&&I.root==R&&I.baseId==k)return L}return-1}function E(w,R){return"var pattern"+w+" = new RegExp("+t.toQuotedString(R[w])+");"}function b(w){return"var default"+w+" = defaults["+w+"];"}function T(w,R){return R[w]===void 0?"":"var refVal"+w+" = refVal["+w+"];"}function A(w){return"var customRule"+w+" = customRules["+w+"];"}function S(w,R){if(!w.length)return"";for(var k="",L=0;L<w.length;L++)k+=R(L,w);return k}return Eg}var xg={exports:{}},aT;function Oae(){if(aT)return xg.exports;aT=1;var e=xg.exports=function(){this._cache={}};return e.prototype.put=function(n,r){this._cache[n]=r},e.prototype.get=function(n){return this._cache[n]},e.prototype.del=function(n){delete this._cache[n]},e.prototype.clear=function(){this._cache={}},xg.exports}var _g,sT;function Nae(){if(sT)return _g;sT=1;var e=$u(),t=/^(\d\d\d\d)-(\d\d)-(\d\d)$/,n=[0,31,28,31,30,31,30,31,31,30,31,30,31],r=/^(\d\d):(\d\d):(\d\d)(\.\d+)?(z|[+-]\d\d(?::?\d\d)?)?$/i,a=/^(?=.{1,253}\.?$)[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[-0-9a-z]{0,61}[0-9a-z])?)*\.?$/i,i=/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)(?:\?(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i,l=/^(?:[a-z][a-z0-9+\-.]*:)?(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'"()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?(?:\?(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i,u=/^(?:(?:[^\x00-\x20"'<>%\\^`{|}]|%[0-9a-f]{2})|\{[+#./;?&=,!@|]?(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?(?:,(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?)*\})*$/i,d=/^(?:(?:http[s\u017F]?|ftp):\/\/)(?:(?:[\0-\x08\x0E-\x1F!-\x9F\xA1-\u167F\u1681-\u1FFF\u200B-\u2027\u202A-\u202E\u2030-\u205E\u2060-\u2FFF\u3001-\uD7FF\uE000-\uFEFE\uFF00-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+(?::(?:[\0-\x08\x0E-\x1F!-\x9F\xA1-\u167F\u1681-\u1FFF\u200B-\u2027\u202A-\u202E\u2030-\u205E\u2060-\u2FFF\u3001-\uD7FF\uE000-\uFEFE\uFF00-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])*)?@)?(?:(?!10(?:\.[0-9]{1,3}){3})(?!127(?:\.[0-9]{1,3}){3})(?!169\.254(?:\.[0-9]{1,3}){2})(?!192\.168(?:\.[0-9]{1,3}){2})(?!172\.(?:1[6-9]|2[0-9]|3[01])(?:\.[0-9]{1,3}){2})(?:[1-9][0-9]?|1[0-9][0-9]|2[01][0-9]|22[0-3])(?:\.(?:1?[0-9]{1,2}|2[0-4][0-9]|25[0-5])){2}(?:\.(?:[1-9][0-9]?|1[0-9][0-9]|2[0-4][0-9]|25[0-4]))|(?:(?:(?:[0-9a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+-)*(?:[0-9a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+)(?:\.(?:(?:[0-9a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+-)*(?:[0-9a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+)*(?:\.(?:(?:[a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]){2,})))(?::[0-9]{2,5})?(?:\/(?:[\0-\x08\x0E-\x1F!-\x9F\xA1-\u167F\u1681-\u1FFF\u200B-\u2027\u202A-\u202E\u2030-\u205E\u2060-\u2FFF\u3001-\uD7FF\uE000-\uFEFE\uFF00-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])*)?$/i,h=/^(?:urn:uuid:)?[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/i,v=/^(?:\/(?:[^~/]|~0|~1)*)*$/,m=/^#(?:\/(?:[a-z0-9_\-.!$&'()*+,;:=@]|%[0-9a-f]{2}|~0|~1)*)*$/i,E=/^(?:0|[1-9][0-9]*)(?:#|(?:\/(?:[^~/]|~0|~1)*)*)$/;_g=b;function b(M){return M=M=="full"?"full":"fast",e.copy(b[M])}b.fast={date:/^\d\d\d\d-[0-1]\d-[0-3]\d$/,time:/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i,"date-time":/^\d\d\d\d-[0-1]\d-[0-3]\d[t\s](?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i,uri:/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/)?[^\s]*$/i,"uri-reference":/^(?:(?:[a-z][a-z0-9+\-.]*:)?\/?\/)?(?:[^\\\s#][^\s#]*)?(?:#[^\\\s]*)?$/i,"uri-template":u,url:d,email:/^[a-z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?)*$/i,hostname:a,ipv4:/^(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)$/,ipv6:/^\s*(?:(?:(?:[0-9a-f]{1,4}:){7}(?:[0-9a-f]{1,4}|:))|(?:(?:[0-9a-f]{1,4}:){6}(?::[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){5}(?:(?:(?::[0-9a-f]{1,4}){1,2})|:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){4}(?:(?:(?::[0-9a-f]{1,4}){1,3})|(?:(?::[0-9a-f]{1,4})?:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){3}(?:(?:(?::[0-9a-f]{1,4}){1,4})|(?:(?::[0-9a-f]{1,4}){0,2}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){2}(?:(?:(?::[0-9a-f]{1,4}){1,5})|(?:(?::[0-9a-f]{1,4}){0,3}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){1}(?:(?:(?::[0-9a-f]{1,4}){1,6})|(?:(?::[0-9a-f]{1,4}){0,4}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?::(?:(?:(?::[0-9a-f]{1,4}){1,7})|(?:(?::[0-9a-f]{1,4}){0,5}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(?:%.+)?\s*$/i,regex:N,uuid:h,"json-pointer":v,"json-pointer-uri-fragment":m,"relative-json-pointer":E},b.full={date:A,time:S,"date-time":R,uri:L,"uri-reference":l,"uri-template":u,url:d,email:/^[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$/i,hostname:a,ipv4:/^(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)$/,ipv6:/^\s*(?:(?:(?:[0-9a-f]{1,4}:){7}(?:[0-9a-f]{1,4}|:))|(?:(?:[0-9a-f]{1,4}:){6}(?::[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){5}(?:(?:(?::[0-9a-f]{1,4}){1,2})|:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){4}(?:(?:(?::[0-9a-f]{1,4}){1,3})|(?:(?::[0-9a-f]{1,4})?:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){3}(?:(?:(?::[0-9a-f]{1,4}){1,4})|(?:(?::[0-9a-f]{1,4}){0,2}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){2}(?:(?:(?::[0-9a-f]{1,4}){1,5})|(?:(?::[0-9a-f]{1,4}){0,3}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){1}(?:(?:(?::[0-9a-f]{1,4}){1,6})|(?:(?::[0-9a-f]{1,4}){0,4}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?::(?:(?:(?::[0-9a-f]{1,4}){1,7})|(?:(?::[0-9a-f]{1,4}){0,5}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(?:%.+)?\s*$/i,regex:N,uuid:h,"json-pointer":v,"json-pointer-uri-fragment":m,"relative-json-pointer":E};function T(M){return M%4===0&&(M%100!==0||M%400===0)}function A(M){var D=M.match(t);if(!D)return!1;var B=+D[1],P=+D[2],U=+D[3];return P>=1&&P<=12&&U>=1&&U<=(P==2&&T(B)?29:n[P])}function S(M,D){var B=M.match(r);if(!B)return!1;var P=B[1],U=B[2],F=B[3],Q=B[5];return(P<=23&&U<=59&&F<=59||P==23&&U==59&&F==60)&&(!D||Q)}var w=/t|\s/i;function R(M){var D=M.split(w);return D.length==2&&A(D[0])&&S(D[1],!0)}var k=/\/|:/;function L(M){return k.test(M)&&i.test(M)}var I=/[^\\]\\Z/;function N(M){if(I.test(M))return!1;try{return new RegExp(M),!0}catch{return!1}}return _g}var Tg,iT;function Pae(){return iT||(iT=1,Tg=function(t,n,r){var a=" ",i=t.level,l=t.dataLevel,u=t.schema[n],d=t.errSchemaPath+"/"+n,h=!t.opts.allErrors,v="data"+(l||""),m="valid"+i,E,b;if(u=="#"||u=="#/")t.isRoot?(E=t.async,b="validate"):(E=t.root.schema.$async===!0,b="root.refVal[0]");else{var T=t.resolveRef(t.baseId,u,t.isRoot);if(T===void 0){var A=t.MissingRefError.message(t.baseId,u);if(t.opts.missingRefs=="fail"){t.logger.error(A);var S=S||[];S.push(a),a="",t.createErrors!==!1?(a+=" { keyword: '$ref' , dataPath: (dataPath || '') + "+t.errorPath+" , schemaPath: "+t.util.toQuotedString(d)+" , params: { ref: '"+t.util.escapeQuotes(u)+"' } ",t.opts.messages!==!1&&(a+=" , message: 'can\\'t resolve reference "+t.util.escapeQuotes(u)+"' "),t.opts.verbose&&(a+=" , schema: "+t.util.toQuotedString(u)+" , parentSchema: validate.schema"+t.schemaPath+" , data: "+v+" "),a+=" } "):a+=" {} ";var w=a;a=S.pop(),!t.compositeRule&&h?t.async?a+=" throw new ValidationError(["+w+"]); ":a+=" validate.errors = ["+w+"]; return false; ":a+=" var err = "+w+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",h&&(a+=" if (false) { ")}else if(t.opts.missingRefs=="ignore")t.logger.warn(A),h&&(a+=" if (true) { ");else throw new t.MissingRefError(t.baseId,u,A)}else if(T.inline){var R=t.util.copy(t);R.level++;var k="valid"+R.level;R.schema=T.schema,R.schemaPath="",R.errSchemaPath=u;var L=t.validate(R).replace(/validate\.schema/g,T.code);a+=" "+L+" ",h&&(a+=" if ("+k+") { ")}else E=T.$async===!0||t.async&&T.$async!==!1,b=T.code}if(b){var S=S||[];S.push(a),a="",t.opts.passContext?a+=" "+b+".call(this, ":a+=" "+b+"( ",a+=" "+v+", (dataPath || '')",t.errorPath!='""'&&(a+=" + "+t.errorPath);var I=l?"data"+(l-1||""):"parentData",N=l?t.dataPathArr[l]:"parentDataProperty";a+=" , "+I+" , "+N+", rootData) ";var M=a;if(a=S.pop(),E){if(!t.async)throw new Error("async schema referenced by sync schema");h&&(a+=" var "+m+"; "),a+=" try { await "+M+"; ",h&&(a+=" "+m+" = true; "),a+=" } catch (e) { if (!(e instanceof ValidationError)) throw e; if (vErrors === null) vErrors = e.errors; else vErrors = vErrors.concat(e.errors); errors = vErrors.length; ",h&&(a+=" "+m+" = false; "),a+=" } ",h&&(a+=" if ("+m+") { ")}else a+=" if (!"+M+") { if (vErrors === null) vErrors = "+b+".errors; else vErrors = vErrors.concat("+b+".errors); errors = vErrors.length; } ",h&&(a+=" else { ")}return a}),Tg}var Ag,oT;function kae(){return oT||(oT=1,Ag=function(t,n,r){var a=" ",i=t.schema[n],l=t.schemaPath+t.util.getProperty(n),u=t.errSchemaPath+"/"+n,d=!t.opts.allErrors,h=t.util.copy(t),v="";h.level++;var m="valid"+h.level,E=h.baseId,b=!0,T=i;if(T)for(var A,S=-1,w=T.length-1;S<w;)A=T[S+=1],(t.opts.strictKeywords?typeof A=="object"&&Object.keys(A).length>0||A===!1:t.util.schemaHasRules(A,t.RULES.all))&&(b=!1,h.schema=A,h.schemaPath=l+"["+S+"]",h.errSchemaPath=u+"/"+S,a+=" "+t.validate(h)+" ",h.baseId=E,d&&(a+=" if ("+m+") { ",v+="}"));return d&&(b?a+=" if (true) { ":a+=" "+v.slice(0,-1)+" "),a}),Ag}var Sg,lT;function Dae(){return lT||(lT=1,Sg=function(t,n,r){var a=" ",i=t.level,l=t.dataLevel,u=t.schema[n],d=t.schemaPath+t.util.getProperty(n),h=t.errSchemaPath+"/"+n,v=!t.opts.allErrors,m="data"+(l||""),E="valid"+i,b="errs__"+i,T=t.util.copy(t),A="";T.level++;var S="valid"+T.level,w=u.every(function(D){return t.opts.strictKeywords?typeof D=="object"&&Object.keys(D).length>0||D===!1:t.util.schemaHasRules(D,t.RULES.all)});if(w){var R=T.baseId;a+=" var "+b+" = errors; var "+E+" = false; ";var k=t.compositeRule;t.compositeRule=T.compositeRule=!0;var L=u;if(L)for(var I,N=-1,M=L.length-1;N<M;)I=L[N+=1],T.schema=I,T.schemaPath=d+"["+N+"]",T.errSchemaPath=h+"/"+N,a+=" "+t.validate(T)+" ",T.baseId=R,a+=" "+E+" = "+E+" || "+S+"; if (!"+E+") { ",A+="}";t.compositeRule=T.compositeRule=k,a+=" "+A+" if (!"+E+") { var err = ",t.createErrors!==!1?(a+=" { keyword: 'anyOf' , dataPath: (dataPath || '') + "+t.errorPath+" , schemaPath: "+t.util.toQuotedString(h)+" , params: {} ",t.opts.messages!==!1&&(a+=" , message: 'should match some schema in anyOf' "),t.opts.verbose&&(a+=" , schema: validate.schema"+d+" , parentSchema: validate.schema"+t.schemaPath+" , data: "+m+" "),a+=" } "):a+=" {} ",a+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",!t.compositeRule&&v&&(t.async?a+=" throw new ValidationError(vErrors); ":a+=" validate.errors = vErrors; return false; "),a+=" } else { errors = "+b+"; if (vErrors !== null) { if ("+b+") vErrors.length = "+b+"; else vErrors = null; } ",t.opts.allErrors&&(a+=" } ")}else v&&(a+=" if (true) { ");return a}),Sg}var wg,uT;function Mae(){return uT||(uT=1,wg=function(t,n,r){var a=" ",i=t.schema[n],l=t.errSchemaPath+"/"+n;t.opts.allErrors;var u=t.util.toQuotedString(i);return t.opts.$comment===!0?a+=" console.log("+u+");":typeof t.opts.$comment=="function"&&(a+=" self._opts.$comment("+u+", "+t.util.toQuotedString(l)+", validate.root.schema);"),a}),wg}var Cg,cT;function Lae(){return cT||(cT=1,Cg=function(t,n,r){var a=" ",i=t.level,l=t.dataLevel,u=t.schema[n],d=t.schemaPath+t.util.getProperty(n),h=t.errSchemaPath+"/"+n,v=!t.opts.allErrors,m="data"+(l||""),E="valid"+i,b=t.opts.$data&&u&&u.$data;b&&(a+=" var schema"+i+" = "+t.util.getData(u.$data,l,t.dataPathArr)+"; "),b||(a+=" var schema"+i+" = validate.schema"+d+";"),a+="var "+E+" = equal("+m+", schema"+i+"); if (!"+E+") { ";var T=T||[];T.push(a),a="",t.createErrors!==!1?(a+=" { keyword: 'const' , dataPath: (dataPath || '') + "+t.errorPath+" , schemaPath: "+t.util.toQuotedString(h)+" , params: { allowedValue: schema"+i+" } ",t.opts.messages!==!1&&(a+=" , message: 'should be equal to constant' "),t.opts.verbose&&(a+=" , schema: validate.schema"+d+" , parentSchema: validate.schema"+t.schemaPath+" , data: "+m+" "),a+=" } "):a+=" {} ";var A=a;return a=T.pop(),!t.compositeRule&&v?t.async?a+=" throw new ValidationError(["+A+"]); ":a+=" validate.errors = ["+A+"]; return false; ":a+=" var err = "+A+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",a+=" }",v&&(a+=" else { "),a}),Cg}var Rg,dT;function Iae(){return dT||(dT=1,Rg=function(t,n,r){var a=" ",i=t.level,l=t.dataLevel,u=t.schema[n],d=t.schemaPath+t.util.getProperty(n),h=t.errSchemaPath+"/"+n,v=!t.opts.allErrors,m="data"+(l||""),E="valid"+i,b="errs__"+i,T=t.util.copy(t),A="";T.level++;var S="valid"+T.level,w="i"+i,R=T.dataLevel=t.dataLevel+1,k="data"+R,L=t.baseId,I=t.opts.strictKeywords?typeof u=="object"&&Object.keys(u).length>0||u===!1:t.util.schemaHasRules(u,t.RULES.all);if(a+="var "+b+" = errors;var "+E+";",I){var N=t.compositeRule;t.compositeRule=T.compositeRule=!0,T.schema=u,T.schemaPath=d,T.errSchemaPath=h,a+=" var "+S+" = false; for (var "+w+" = 0; "+w+" < "+m+".length; "+w+"++) { ",T.errorPath=t.util.getPathExpr(t.errorPath,w,t.opts.jsonPointers,!0);var M=m+"["+w+"]";T.dataPathArr[R]=w;var D=t.validate(T);T.baseId=L,t.util.varOccurences(D,k)<2?a+=" "+t.util.varReplace(D,k,M)+" ":a+=" var "+k+" = "+M+"; "+D+" ",a+=" if ("+S+") break; } ",t.compositeRule=T.compositeRule=N,a+=" "+A+" if (!"+S+") {"}else a+=" if ("+m+".length == 0) {";var B=B||[];B.push(a),a="",t.createErrors!==!1?(a+=" { keyword: 'contains' , dataPath: (dataPath || '') + "+t.errorPath+" , schemaPath: "+t.util.toQuotedString(h)+" , params: {} ",t.opts.messages!==!1&&(a+=" , message: 'should contain a valid item' "),t.opts.verbose&&(a+=" , schema: validate.schema"+d+" , parentSchema: validate.schema"+t.schemaPath+" , data: "+m+" "),a+=" } "):a+=" {} ";var P=a;return a=B.pop(),!t.compositeRule&&v?t.async?a+=" throw new ValidationError(["+P+"]); ":a+=" validate.errors = ["+P+"]; return false; ":a+=" var err = "+P+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",a+=" } else { ",I&&(a+=" errors = "+b+"; if (vErrors !== null) { if ("+b+") vErrors.length = "+b+"; else vErrors = null; } "),t.opts.allErrors&&(a+=" } "),a}),Rg}var Og,fT;function jae(){return fT||(fT=1,Og=function(t,n,r){var a=" ",i=t.level,l=t.dataLevel,u=t.schema[n],d=t.schemaPath+t.util.getProperty(n),h=t.errSchemaPath+"/"+n,v=!t.opts.allErrors,m="data"+(l||""),E="errs__"+i,b=t.util.copy(t),T="";b.level++;var A="valid"+b.level,S={},w={},R=t.opts.ownProperties;for(N in u)if(N!="__proto__"){var k=u[N],L=Array.isArray(k)?w:S;L[N]=k}a+="var "+E+" = errors;";var I=t.errorPath;a+="var missing"+i+";";for(var N in w)if(L=w[N],L.length){if(a+=" if ( "+m+t.util.getProperty(N)+" !== undefined ",R&&(a+=" && Object.prototype.hasOwnProperty.call("+m+", '"+t.util.escapeQuotes(N)+"') "),v){a+=" && ( ";var M=L;if(M)for(var D,B=-1,P=M.length-1;B<P;){D=M[B+=1],B&&(a+=" || ");var U=t.util.getProperty(D),F=m+U;a+=" ( ( "+F+" === undefined ",R&&(a+=" || ! Object.prototype.hasOwnProperty.call("+m+", '"+t.util.escapeQuotes(D)+"') "),a+=") && (missing"+i+" = "+t.util.toQuotedString(t.opts.jsonPointers?D:U)+") ) "}a+=")) { ";var Q="missing"+i,Y="' + "+Q+" + '";t.opts._errorDataPathProperty&&(t.errorPath=t.opts.jsonPointers?t.util.getPathExpr(I,Q,!0):I+" + "+Q);var te=te||[];te.push(a),a="",t.createErrors!==!1?(a+=" { keyword: 'dependencies' , dataPath: (dataPath || '') + "+t.errorPath+" , schemaPath: "+t.util.toQuotedString(h)+" , params: { property: '"+t.util.escapeQuotes(N)+"', missingProperty: '"+Y+"', depsCount: "+L.length+", deps: '"+t.util.escapeQuotes(L.length==1?L[0]:L.join(", "))+"' } ",t.opts.messages!==!1&&(a+=" , message: 'should have ",L.length==1?a+="property "+t.util.escapeQuotes(L[0]):a+="properties "+t.util.escapeQuotes(L.join(", ")),a+=" when property "+t.util.escapeQuotes(N)+" is present' "),t.opts.verbose&&(a+=" , schema: validate.schema"+d+" , parentSchema: validate.schema"+t.schemaPath+" , data: "+m+" "),a+=" } "):a+=" {} ";var V=a;a=te.pop(),!t.compositeRule&&v?t.async?a+=" throw new ValidationError(["+V+"]); ":a+=" validate.errors = ["+V+"]; return false; ":a+=" var err = "+V+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}else{a+=" ) { ";var J=L;if(J)for(var D,X=-1,se=J.length-1;X<se;){D=J[X+=1];var U=t.util.getProperty(D),Y=t.util.escapeQuotes(D),F=m+U;t.opts._errorDataPathProperty&&(t.errorPath=t.util.getPath(I,D,t.opts.jsonPointers)),a+=" if ( "+F+" === undefined ",R&&(a+=" || ! Object.prototype.hasOwnProperty.call("+m+", '"+t.util.escapeQuotes(D)+"') "),a+=") { var err = ",t.createErrors!==!1?(a+=" { keyword: 'dependencies' , dataPath: (dataPath || '') + "+t.errorPath+" , schemaPath: "+t.util.toQuotedString(h)+" , params: { property: '"+t.util.escapeQuotes(N)+"', missingProperty: '"+Y+"', depsCount: "+L.length+", deps: '"+t.util.escapeQuotes(L.length==1?L[0]:L.join(", "))+"' } ",t.opts.messages!==!1&&(a+=" , message: 'should have ",L.length==1?a+="property "+t.util.escapeQuotes(L[0]):a+="properties "+t.util.escapeQuotes(L.join(", ")),a+=" when property "+t.util.escapeQuotes(N)+" is present' "),t.opts.verbose&&(a+=" , schema: validate.schema"+d+" , parentSchema: validate.schema"+t.schemaPath+" , data: "+m+" "),a+=" } "):a+=" {} ",a+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; } "}}a+=" } ",v&&(T+="}",a+=" else { ")}t.errorPath=I;var C=b.baseId;for(var N in S){var k=S[N];(t.opts.strictKeywords?typeof k=="object"&&Object.keys(k).length>0||k===!1:t.util.schemaHasRules(k,t.RULES.all))&&(a+=" "+A+" = true; if ( "+m+t.util.getProperty(N)+" !== undefined ",R&&(a+=" && Object.prototype.hasOwnProperty.call("+m+", '"+t.util.escapeQuotes(N)+"') "),a+=") { ",b.schema=k,b.schemaPath=d+t.util.getProperty(N),b.errSchemaPath=h+"/"+t.util.escapeFragment(N),a+=" "+t.validate(b)+" ",b.baseId=C,a+=" } ",v&&(a+=" if ("+A+") { ",T+="}"))}return v&&(a+=" "+T+" if ("+E+" == errors) {"),a}),Og}var Ng,hT;function Hae(){return hT||(hT=1,Ng=function(t,n,r){var a=" ",i=t.level,l=t.dataLevel,u=t.schema[n],d=t.schemaPath+t.util.getProperty(n),h=t.errSchemaPath+"/"+n,v=!t.opts.allErrors,m="data"+(l||""),E="valid"+i,b=t.opts.$data&&u&&u.$data;b&&(a+=" var schema"+i+" = "+t.util.getData(u.$data,l,t.dataPathArr)+"; ");var T="i"+i,A="schema"+i;b||(a+=" var "+A+" = validate.schema"+d+";"),a+="var "+E+";",b&&(a+=" if (schema"+i+" === undefined) "+E+" = true; else if (!Array.isArray(schema"+i+")) "+E+" = false; else {"),a+=""+E+" = false;for (var "+T+"=0; "+T+"<"+A+".length; "+T+"++) if (equal("+m+", "+A+"["+T+"])) { "+E+" = true; break; }",b&&(a+=" } "),a+=" if (!"+E+") { ";var S=S||[];S.push(a),a="",t.createErrors!==!1?(a+=" { keyword: 'enum' , dataPath: (dataPath || '') + "+t.errorPath+" , schemaPath: "+t.util.toQuotedString(h)+" , params: { allowedValues: schema"+i+" } ",t.opts.messages!==!1&&(a+=" , message: 'should be equal to one of the allowed values' "),t.opts.verbose&&(a+=" , schema: validate.schema"+d+" , parentSchema: validate.schema"+t.schemaPath+" , data: "+m+" "),a+=" } "):a+=" {} ";var w=a;return a=S.pop(),!t.compositeRule&&v?t.async?a+=" throw new ValidationError(["+w+"]); ":a+=" validate.errors = ["+w+"]; return false; ":a+=" var err = "+w+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",a+=" }",v&&(a+=" else { "),a}),Ng}var Pg,mT;function Fae(){return mT||(mT=1,Pg=function(t,n,r){var a=" ",i=t.level,l=t.dataLevel,u=t.schema[n],d=t.schemaPath+t.util.getProperty(n),h=t.errSchemaPath+"/"+n,v=!t.opts.allErrors,m="data"+(l||"");if(t.opts.format===!1)return v&&(a+=" if (true) { "),a;var E=t.opts.$data&&u&&u.$data,b;E?(a+=" var schema"+i+" = "+t.util.getData(u.$data,l,t.dataPathArr)+"; ",b="schema"+i):b=u;var T=t.opts.unknownFormats,A=Array.isArray(T);if(E){var S="format"+i,w="isObject"+i,R="formatType"+i;a+=" var "+S+" = formats["+b+"]; var "+w+" = typeof "+S+" == 'object' && !("+S+" instanceof RegExp) && "+S+".validate; var "+R+" = "+w+" && "+S+".type || 'string'; if ("+w+") { ",t.async&&(a+=" var async"+i+" = "+S+".async; "),a+=" "+S+" = "+S+".validate; } if ( ",E&&(a+=" ("+b+" !== undefined && typeof "+b+" != 'string') || "),a+=" (",T!="ignore"&&(a+=" ("+b+" && !"+S+" ",A&&(a+=" && self._opts.unknownFormats.indexOf("+b+") == -1 "),a+=") || "),a+=" ("+S+" && "+R+" == '"+r+"' && !(typeof "+S+" == 'function' ? ",t.async?a+=" (async"+i+" ? await "+S+"("+m+") : "+S+"("+m+")) ":a+=" "+S+"("+m+") ",a+=" : "+S+".test("+m+"))))) {"}else{var S=t.formats[u];if(!S){if(T=="ignore")return t.logger.warn('unknown format "'+u+'" ignored in schema at path "'+t.errSchemaPath+'"'),v&&(a+=" if (true) { "),a;if(A&&T.indexOf(u)>=0)return v&&(a+=" if (true) { "),a;throw new Error('unknown format "'+u+'" is used in schema at path "'+t.errSchemaPath+'"')}var w=typeof S=="object"&&!(S instanceof RegExp)&&S.validate,R=w&&S.type||"string";if(w){var k=S.async===!0;S=S.validate}if(R!=r)return v&&(a+=" if (true) { "),a;if(k){if(!t.async)throw new Error("async format in sync schema");var L="formats"+t.util.getProperty(u)+".validate";a+=" if (!(await "+L+"("+m+"))) { "}else{a+=" if (! ";var L="formats"+t.util.getProperty(u);w&&(L+=".validate"),typeof S=="function"?a+=" "+L+"("+m+") ":a+=" "+L+".test("+m+") ",a+=") { "}}var I=I||[];I.push(a),a="",t.createErrors!==!1?(a+=" { keyword: 'format' , dataPath: (dataPath || '') + "+t.errorPath+" , schemaPath: "+t.util.toQuotedString(h)+" , params: { format: ",E?a+=""+b:a+=""+t.util.toQuotedString(u),a+=" } ",t.opts.messages!==!1&&(a+=` , message: 'should match format "`,E?a+="' + "+b+" + '":a+=""+t.util.escapeQuotes(u),a+=`"' `),t.opts.verbose&&(a+=" , schema: ",E?a+="validate.schema"+d:a+=""+t.util.toQuotedString(u),a+=" , parentSchema: validate.schema"+t.schemaPath+" , data: "+m+" "),a+=" } "):a+=" {} ";var N=a;return a=I.pop(),!t.compositeRule&&v?t.async?a+=" throw new ValidationError(["+N+"]); ":a+=" validate.errors = ["+N+"]; return false; ":a+=" var err = "+N+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",a+=" } ",v&&(a+=" else { "),a}),Pg}var kg,pT;function Uae(){return pT||(pT=1,kg=function(t,n,r){var a=" ",i=t.level,l=t.dataLevel,u=t.schema[n],d=t.schemaPath+t.util.getProperty(n),h=t.errSchemaPath+"/"+n,v=!t.opts.allErrors,m="data"+(l||""),E="valid"+i,b="errs__"+i,T=t.util.copy(t);T.level++;var A="valid"+T.level,S=t.schema.then,w=t.schema.else,R=S!==void 0&&(t.opts.strictKeywords?typeof S=="object"&&Object.keys(S).length>0||S===!1:t.util.schemaHasRules(S,t.RULES.all)),k=w!==void 0&&(t.opts.strictKeywords?typeof w=="object"&&Object.keys(w).length>0||w===!1:t.util.schemaHasRules(w,t.RULES.all)),L=T.baseId;if(R||k){var I;T.createErrors=!1,T.schema=u,T.schemaPath=d,T.errSchemaPath=h,a+=" var "+b+" = errors; var "+E+" = true; ";var N=t.compositeRule;t.compositeRule=T.compositeRule=!0,a+=" "+t.validate(T)+" ",T.baseId=L,T.createErrors=!0,a+=" errors = "+b+"; if (vErrors !== null) { if ("+b+") vErrors.length = "+b+"; else vErrors = null; } ",t.compositeRule=T.compositeRule=N,R?(a+=" if ("+A+") { ",T.schema=t.schema.then,T.schemaPath=t.schemaPath+".then",T.errSchemaPath=t.errSchemaPath+"/then",a+=" "+t.validate(T)+" ",T.baseId=L,a+=" "+E+" = "+A+"; ",R&&k?(I="ifClause"+i,a+=" var "+I+" = 'then'; "):I="'then'",a+=" } ",k&&(a+=" else { ")):a+=" if (!"+A+") { ",k&&(T.schema=t.schema.else,T.schemaPath=t.schemaPath+".else",T.errSchemaPath=t.errSchemaPath+"/else",a+=" "+t.validate(T)+" ",T.baseId=L,a+=" "+E+" = "+A+"; ",R&&k?(I="ifClause"+i,a+=" var "+I+" = 'else'; "):I="'else'",a+=" } "),a+=" if (!"+E+") { var err = ",t.createErrors!==!1?(a+=" { keyword: 'if' , dataPath: (dataPath || '') + "+t.errorPath+" , schemaPath: "+t.util.toQuotedString(h)+" , params: { failingKeyword: "+I+" } ",t.opts.messages!==!1&&(a+=` , message: 'should match "' + `+I+` + '" schema' `),t.opts.verbose&&(a+=" , schema: validate.schema"+d+" , parentSchema: validate.schema"+t.schemaPath+" , data: "+m+" "),a+=" } "):a+=" {} ",a+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",!t.compositeRule&&v&&(t.async?a+=" throw new ValidationError(vErrors); ":a+=" validate.errors = vErrors; return false; "),a+=" } ",v&&(a+=" else { ")}else v&&(a+=" if (true) { ");return a}),kg}var Dg,gT;function Bae(){return gT||(gT=1,Dg=function(t,n,r){var a=" ",i=t.level,l=t.dataLevel,u=t.schema[n],d=t.schemaPath+t.util.getProperty(n),h=t.errSchemaPath+"/"+n,v=!t.opts.allErrors,m="data"+(l||""),E="valid"+i,b="errs__"+i,T=t.util.copy(t),A="";T.level++;var S="valid"+T.level,w="i"+i,R=T.dataLevel=t.dataLevel+1,k="data"+R,L=t.baseId;if(a+="var "+b+" = errors;var "+E+";",Array.isArray(u)){var I=t.schema.additionalItems;if(I===!1){a+=" "+E+" = "+m+".length <= "+u.length+"; ";var N=h;h=t.errSchemaPath+"/additionalItems",a+=" if (!"+E+") { ";var M=M||[];M.push(a),a="",t.createErrors!==!1?(a+=" { keyword: 'additionalItems' , dataPath: (dataPath || '') + "+t.errorPath+" , schemaPath: "+t.util.toQuotedString(h)+" , params: { limit: "+u.length+" } ",t.opts.messages!==!1&&(a+=" , message: 'should NOT have more than "+u.length+" items' "),t.opts.verbose&&(a+=" , schema: false , parentSchema: validate.schema"+t.schemaPath+" , data: "+m+" "),a+=" } "):a+=" {} ";var D=a;a=M.pop(),!t.compositeRule&&v?t.async?a+=" throw new ValidationError(["+D+"]); ":a+=" validate.errors = ["+D+"]; return false; ":a+=" var err = "+D+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",a+=" } ",h=N,v&&(A+="}",a+=" else { ")}var B=u;if(B){for(var P,U=-1,F=B.length-1;U<F;)if(P=B[U+=1],t.opts.strictKeywords?typeof P=="object"&&Object.keys(P).length>0||P===!1:t.util.schemaHasRules(P,t.RULES.all)){a+=" "+S+" = true; if ("+m+".length > "+U+") { ";var Q=m+"["+U+"]";T.schema=P,T.schemaPath=d+"["+U+"]",T.errSchemaPath=h+"/"+U,T.errorPath=t.util.getPathExpr(t.errorPath,U,t.opts.jsonPointers,!0),T.dataPathArr[R]=U;var Y=t.validate(T);T.baseId=L,t.util.varOccurences(Y,k)<2?a+=" "+t.util.varReplace(Y,k,Q)+" ":a+=" var "+k+" = "+Q+"; "+Y+" ",a+=" } ",v&&(a+=" if ("+S+") { ",A+="}")}}if(typeof I=="object"&&(t.opts.strictKeywords?typeof I=="object"&&Object.keys(I).length>0||I===!1:t.util.schemaHasRules(I,t.RULES.all))){T.schema=I,T.schemaPath=t.schemaPath+".additionalItems",T.errSchemaPath=t.errSchemaPath+"/additionalItems",a+=" "+S+" = true; if ("+m+".length > "+u.length+") { for (var "+w+" = "+u.length+"; "+w+" < "+m+".length; "+w+"++) { ",T.errorPath=t.util.getPathExpr(t.errorPath,w,t.opts.jsonPointers,!0);var Q=m+"["+w+"]";T.dataPathArr[R]=w;var Y=t.validate(T);T.baseId=L,t.util.varOccurences(Y,k)<2?a+=" "+t.util.varReplace(Y,k,Q)+" ":a+=" var "+k+" = "+Q+"; "+Y+" ",v&&(a+=" if (!"+S+") break; "),a+=" } } ",v&&(a+=" if ("+S+") { ",A+="}")}}else if(t.opts.strictKeywords?typeof u=="object"&&Object.keys(u).length>0||u===!1:t.util.schemaHasRules(u,t.RULES.all)){T.schema=u,T.schemaPath=d,T.errSchemaPath=h,a+=" for (var "+w+" = 0; "+w+" < "+m+".length; "+w+"++) { ",T.errorPath=t.util.getPathExpr(t.errorPath,w,t.opts.jsonPointers,!0);var Q=m+"["+w+"]";T.dataPathArr[R]=w;var Y=t.validate(T);T.baseId=L,t.util.varOccurences(Y,k)<2?a+=" "+t.util.varReplace(Y,k,Q)+" ":a+=" var "+k+" = "+Q+"; "+Y+" ",v&&(a+=" if (!"+S+") break; "),a+=" }"}return v&&(a+=" "+A+" if ("+b+" == errors) {"),a}),Dg}var Mg,vT;function yT(){return vT||(vT=1,Mg=function(t,n,r){var a=" ",i=t.level,l=t.dataLevel,u=t.schema[n],d=t.schemaPath+t.util.getProperty(n),h=t.errSchemaPath+"/"+n,v=!t.opts.allErrors,L,m="data"+(l||""),E=t.opts.$data&&u&&u.$data,b;E?(a+=" var schema"+i+" = "+t.util.getData(u.$data,l,t.dataPathArr)+"; ",b="schema"+i):b=u;var T=n=="maximum",A=T?"exclusiveMaximum":"exclusiveMinimum",S=t.schema[A],w=t.opts.$data&&S&&S.$data,R=T?"<":">",k=T?">":"<",L=void 0;if(!(E||typeof u=="number"||u===void 0))throw new Error(n+" must be number");if(!(w||S===void 0||typeof S=="number"||typeof S=="boolean"))throw new Error(A+" must be number or boolean");if(w){var I=t.util.getData(S.$data,l,t.dataPathArr),N="exclusive"+i,M="exclType"+i,D="exclIsNumber"+i,B="op"+i,P="' + "+B+" + '";a+=" var schemaExcl"+i+" = "+I+"; ",I="schemaExcl"+i,a+=" var "+N+"; var "+M+" = typeof "+I+"; if ("+M+" != 'boolean' && "+M+" != 'undefined' && "+M+" != 'number') { ";var L=A,U=U||[];U.push(a),a="",t.createErrors!==!1?(a+=" { keyword: '"+(L||"_exclusiveLimit")+"' , dataPath: (dataPath || '') + "+t.errorPath+" , schemaPath: "+t.util.toQuotedString(h)+" , params: {} ",t.opts.messages!==!1&&(a+=" , message: '"+A+" should be boolean' "),t.opts.verbose&&(a+=" , schema: validate.schema"+d+" , parentSchema: validate.schema"+t.schemaPath+" , data: "+m+" "),a+=" } "):a+=" {} ";var F=a;a=U.pop(),!t.compositeRule&&v?t.async?a+=" throw new ValidationError(["+F+"]); ":a+=" validate.errors = ["+F+"]; return false; ":a+=" var err = "+F+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",a+=" } else if ( ",E&&(a+=" ("+b+" !== undefined && typeof "+b+" != 'number') || "),a+=" "+M+" == 'number' ? ( ("+N+" = "+b+" === undefined || "+I+" "+R+"= "+b+") ? "+m+" "+k+"= "+I+" : "+m+" "+k+" "+b+" ) : ( ("+N+" = "+I+" === true) ? "+m+" "+k+"= "+b+" : "+m+" "+k+" "+b+" ) || "+m+" !== "+m+") { var op"+i+" = "+N+" ? '"+R+"' : '"+R+"='; ",u===void 0&&(L=A,h=t.errSchemaPath+"/"+A,b=I,E=w)}else{var D=typeof S=="number",P=R;if(D&&E){var B="'"+P+"'";a+=" if ( ",E&&(a+=" ("+b+" !== undefined && typeof "+b+" != 'number') || "),a+=" ( "+b+" === undefined || "+S+" "+R+"= "+b+" ? "+m+" "+k+"= "+S+" : "+m+" "+k+" "+b+" ) || "+m+" !== "+m+") { "}else{D&&u===void 0?(N=!0,L=A,h=t.errSchemaPath+"/"+A,b=S,k+="="):(D&&(b=Math[T?"min":"max"](S,u)),S===(D?b:!0)?(N=!0,L=A,h=t.errSchemaPath+"/"+A,k+="="):(N=!1,P+="="));var B="'"+P+"'";a+=" if ( ",E&&(a+=" ("+b+" !== undefined && typeof "+b+" != 'number') || "),a+=" "+m+" "+k+" "+b+" || "+m+" !== "+m+") { "}}L=L||n;var U=U||[];U.push(a),a="",t.createErrors!==!1?(a+=" { keyword: '"+(L||"_limit")+"' , dataPath: (dataPath || '') + "+t.errorPath+" , schemaPath: "+t.util.toQuotedString(h)+" , params: { comparison: "+B+", limit: "+b+", exclusive: "+N+" } ",t.opts.messages!==!1&&(a+=" , message: 'should be "+P+" ",E?a+="' + "+b:a+=""+b+"'"),t.opts.verbose&&(a+=" , schema: ",E?a+="validate.schema"+d:a+=""+u,a+=" , parentSchema: validate.schema"+t.schemaPath+" , data: "+m+" "),a+=" } "):a+=" {} ";var F=a;return a=U.pop(),!t.compositeRule&&v?t.async?a+=" throw new ValidationError(["+F+"]); ":a+=" validate.errors = ["+F+"]; return false; ":a+=" var err = "+F+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",a+=" } ",v&&(a+=" else { "),a}),Mg}var Lg,bT;function ET(){return bT||(bT=1,Lg=function(t,n,r){var a=" ",i=t.level,l=t.dataLevel,u=t.schema[n],d=t.schemaPath+t.util.getProperty(n),h=t.errSchemaPath+"/"+n,v=!t.opts.allErrors,A,m="data"+(l||""),E=t.opts.$data&&u&&u.$data,b;if(E?(a+=" var schema"+i+" = "+t.util.getData(u.$data,l,t.dataPathArr)+"; ",b="schema"+i):b=u,!(E||typeof u=="number"))throw new Error(n+" must be number");var T=n=="maxItems"?">":"<";a+="if ( ",E&&(a+=" ("+b+" !== undefined && typeof "+b+" != 'number') || "),a+=" "+m+".length "+T+" "+b+") { ";var A=n,S=S||[];S.push(a),a="",t.createErrors!==!1?(a+=" { keyword: '"+(A||"_limitItems")+"' , dataPath: (dataPath || '') + "+t.errorPath+" , schemaPath: "+t.util.toQuotedString(h)+" , params: { limit: "+b+" } ",t.opts.messages!==!1&&(a+=" , message: 'should NOT have ",n=="maxItems"?a+="more":a+="fewer",a+=" than ",E?a+="' + "+b+" + '":a+=""+u,a+=" items' "),t.opts.verbose&&(a+=" , schema: ",E?a+="validate.schema"+d:a+=""+u,a+=" , parentSchema: validate.schema"+t.schemaPath+" , data: "+m+" "),a+=" } "):a+=" {} ";var w=a;return a=S.pop(),!t.compositeRule&&v?t.async?a+=" throw new ValidationError(["+w+"]); ":a+=" validate.errors = ["+w+"]; return false; ":a+=" var err = "+w+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",a+="} ",v&&(a+=" else { "),a}),Lg}var Ig,xT;function _T(){return xT||(xT=1,Ig=function(t,n,r){var a=" ",i=t.level,l=t.dataLevel,u=t.schema[n],d=t.schemaPath+t.util.getProperty(n),h=t.errSchemaPath+"/"+n,v=!t.opts.allErrors,A,m="data"+(l||""),E=t.opts.$data&&u&&u.$data,b;if(E?(a+=" var schema"+i+" = "+t.util.getData(u.$data,l,t.dataPathArr)+"; ",b="schema"+i):b=u,!(E||typeof u=="number"))throw new Error(n+" must be number");var T=n=="maxLength"?">":"<";a+="if ( ",E&&(a+=" ("+b+" !== undefined && typeof "+b+" != 'number') || "),t.opts.unicode===!1?a+=" "+m+".length ":a+=" ucs2length("+m+") ",a+=" "+T+" "+b+") { ";var A=n,S=S||[];S.push(a),a="",t.createErrors!==!1?(a+=" { keyword: '"+(A||"_limitLength")+"' , dataPath: (dataPath || '') + "+t.errorPath+" , schemaPath: "+t.util.toQuotedString(h)+" , params: { limit: "+b+" } ",t.opts.messages!==!1&&(a+=" , message: 'should NOT be ",n=="maxLength"?a+="longer":a+="shorter",a+=" than ",E?a+="' + "+b+" + '":a+=""+u,a+=" characters' "),t.opts.verbose&&(a+=" , schema: ",E?a+="validate.schema"+d:a+=""+u,a+=" , parentSchema: validate.schema"+t.schemaPath+" , data: "+m+" "),a+=" } "):a+=" {} ";var w=a;return a=S.pop(),!t.compositeRule&&v?t.async?a+=" throw new ValidationError(["+w+"]); ":a+=" validate.errors = ["+w+"]; return false; ":a+=" var err = "+w+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",a+="} ",v&&(a+=" else { "),a}),Ig}var jg,TT;function AT(){return TT||(TT=1,jg=function(t,n,r){var a=" ",i=t.level,l=t.dataLevel,u=t.schema[n],d=t.schemaPath+t.util.getProperty(n),h=t.errSchemaPath+"/"+n,v=!t.opts.allErrors,A,m="data"+(l||""),E=t.opts.$data&&u&&u.$data,b;if(E?(a+=" var schema"+i+" = "+t.util.getData(u.$data,l,t.dataPathArr)+"; ",b="schema"+i):b=u,!(E||typeof u=="number"))throw new Error(n+" must be number");var T=n=="maxProperties"?">":"<";a+="if ( ",E&&(a+=" ("+b+" !== undefined && typeof "+b+" != 'number') || "),a+=" Object.keys("+m+").length "+T+" "+b+") { ";var A=n,S=S||[];S.push(a),a="",t.createErrors!==!1?(a+=" { keyword: '"+(A||"_limitProperties")+"' , dataPath: (dataPath || '') + "+t.errorPath+" , schemaPath: "+t.util.toQuotedString(h)+" , params: { limit: "+b+" } ",t.opts.messages!==!1&&(a+=" , message: 'should NOT have ",n=="maxProperties"?a+="more":a+="fewer",a+=" than ",E?a+="' + "+b+" + '":a+=""+u,a+=" properties' "),t.opts.verbose&&(a+=" , schema: ",E?a+="validate.schema"+d:a+=""+u,a+=" , parentSchema: validate.schema"+t.schemaPath+" , data: "+m+" "),a+=" } "):a+=" {} ";var w=a;return a=S.pop(),!t.compositeRule&&v?t.async?a+=" throw new ValidationError(["+w+"]); ":a+=" validate.errors = ["+w+"]; return false; ":a+=" var err = "+w+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",a+="} ",v&&(a+=" else { "),a}),jg}var Hg,ST;function Vae(){return ST||(ST=1,Hg=function(t,n,r){var a=" ",i=t.level,l=t.dataLevel,u=t.schema[n],d=t.schemaPath+t.util.getProperty(n),h=t.errSchemaPath+"/"+n,v=!t.opts.allErrors,m="data"+(l||""),E=t.opts.$data&&u&&u.$data,b;if(E?(a+=" var schema"+i+" = "+t.util.getData(u.$data,l,t.dataPathArr)+"; ",b="schema"+i):b=u,!(E||typeof u=="number"))throw new Error(n+" must be number");a+="var division"+i+";if (",E&&(a+=" "+b+" !== undefined && ( typeof "+b+" != 'number' || "),a+=" (division"+i+" = "+m+" / "+b+", ",t.opts.multipleOfPrecision?a+=" Math.abs(Math.round(division"+i+") - division"+i+") > 1e-"+t.opts.multipleOfPrecision+" ":a+=" division"+i+" !== parseInt(division"+i+") ",a+=" ) ",E&&(a+=" ) "),a+=" ) { ";var T=T||[];T.push(a),a="",t.createErrors!==!1?(a+=" { keyword: 'multipleOf' , dataPath: (dataPath || '') + "+t.errorPath+" , schemaPath: "+t.util.toQuotedString(h)+" , params: { multipleOf: "+b+" } ",t.opts.messages!==!1&&(a+=" , message: 'should be multiple of ",E?a+="' + "+b:a+=""+b+"'"),t.opts.verbose&&(a+=" , schema: ",E?a+="validate.schema"+d:a+=""+u,a+=" , parentSchema: validate.schema"+t.schemaPath+" , data: "+m+" "),a+=" } "):a+=" {} ";var A=a;return a=T.pop(),!t.compositeRule&&v?t.async?a+=" throw new ValidationError(["+A+"]); ":a+=" validate.errors = ["+A+"]; return false; ":a+=" var err = "+A+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",a+="} ",v&&(a+=" else { "),a}),Hg}var Fg,wT;function zae(){return wT||(wT=1,Fg=function(t,n,r){var a=" ",i=t.level,l=t.dataLevel,u=t.schema[n],d=t.schemaPath+t.util.getProperty(n),h=t.errSchemaPath+"/"+n,v=!t.opts.allErrors,m="data"+(l||""),E="errs__"+i,b=t.util.copy(t);b.level++;var T="valid"+b.level;if(t.opts.strictKeywords?typeof u=="object"&&Object.keys(u).length>0||u===!1:t.util.schemaHasRules(u,t.RULES.all)){b.schema=u,b.schemaPath=d,b.errSchemaPath=h,a+=" var "+E+" = errors; ";var A=t.compositeRule;t.compositeRule=b.compositeRule=!0,b.createErrors=!1;var S;b.opts.allErrors&&(S=b.opts.allErrors,b.opts.allErrors=!1),a+=" "+t.validate(b)+" ",b.createErrors=!0,S&&(b.opts.allErrors=S),t.compositeRule=b.compositeRule=A,a+=" if ("+T+") { ";var w=w||[];w.push(a),a="",t.createErrors!==!1?(a+=" { keyword: 'not' , dataPath: (dataPath || '') + "+t.errorPath+" , schemaPath: "+t.util.toQuotedString(h)+" , params: {} ",t.opts.messages!==!1&&(a+=" , message: 'should NOT be valid' "),t.opts.verbose&&(a+=" , schema: validate.schema"+d+" , parentSchema: validate.schema"+t.schemaPath+" , data: "+m+" "),a+=" } "):a+=" {} ";var R=a;a=w.pop(),!t.compositeRule&&v?t.async?a+=" throw new ValidationError(["+R+"]); ":a+=" validate.errors = ["+R+"]; return false; ":a+=" var err = "+R+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",a+=" } else { errors = "+E+"; if (vErrors !== null) { if ("+E+") vErrors.length = "+E+"; else vErrors = null; } ",t.opts.allErrors&&(a+=" } ")}else a+=" var err = ",t.createErrors!==!1?(a+=" { keyword: 'not' , dataPath: (dataPath || '') + "+t.errorPath+" , schemaPath: "+t.util.toQuotedString(h)+" , params: {} ",t.opts.messages!==!1&&(a+=" , message: 'should NOT be valid' "),t.opts.verbose&&(a+=" , schema: validate.schema"+d+" , parentSchema: validate.schema"+t.schemaPath+" , data: "+m+" "),a+=" } "):a+=" {} ",a+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",v&&(a+=" if (false) { ");return a}),Fg}var Ug,CT;function qae(){return CT||(CT=1,Ug=function(t,n,r){var a=" ",i=t.level,l=t.dataLevel,u=t.schema[n],d=t.schemaPath+t.util.getProperty(n),h=t.errSchemaPath+"/"+n,v=!t.opts.allErrors,m="data"+(l||""),E="valid"+i,b="errs__"+i,T=t.util.copy(t),A="";T.level++;var S="valid"+T.level,w=T.baseId,R="prevValid"+i,k="passingSchemas"+i;a+="var "+b+" = errors , "+R+" = false , "+E+" = false , "+k+" = null; ";var L=t.compositeRule;t.compositeRule=T.compositeRule=!0;var I=u;if(I)for(var N,M=-1,D=I.length-1;M<D;)N=I[M+=1],(t.opts.strictKeywords?typeof N=="object"&&Object.keys(N).length>0||N===!1:t.util.schemaHasRules(N,t.RULES.all))?(T.schema=N,T.schemaPath=d+"["+M+"]",T.errSchemaPath=h+"/"+M,a+=" "+t.validate(T)+" ",T.baseId=w):a+=" var "+S+" = true; ",M&&(a+=" if ("+S+" && "+R+") { "+E+" = false; "+k+" = ["+k+", "+M+"]; } else { ",A+="}"),a+=" if ("+S+") { "+E+" = "+R+" = true; "+k+" = "+M+"; }";return t.compositeRule=T.compositeRule=L,a+=""+A+"if (!"+E+") { var err = ",t.createErrors!==!1?(a+=" { keyword: 'oneOf' , dataPath: (dataPath || '') + "+t.errorPath+" , schemaPath: "+t.util.toQuotedString(h)+" , params: { passingSchemas: "+k+" } ",t.opts.messages!==!1&&(a+=" , message: 'should match exactly one schema in oneOf' "),t.opts.verbose&&(a+=" , schema: validate.schema"+d+" , parentSchema: validate.schema"+t.schemaPath+" , data: "+m+" "),a+=" } "):a+=" {} ",a+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",!t.compositeRule&&v&&(t.async?a+=" throw new ValidationError(vErrors); ":a+=" validate.errors = vErrors; return false; "),a+="} else { errors = "+b+"; if (vErrors !== null) { if ("+b+") vErrors.length = "+b+"; else vErrors = null; }",t.opts.allErrors&&(a+=" } "),a}),Ug}var Bg,RT;function $ae(){return RT||(RT=1,Bg=function(t,n,r){var a=" ",i=t.level,l=t.dataLevel,u=t.schema[n],d=t.schemaPath+t.util.getProperty(n),h=t.errSchemaPath+"/"+n,v=!t.opts.allErrors,m="data"+(l||""),E=t.opts.$data&&u&&u.$data,b;E?(a+=" var schema"+i+" = "+t.util.getData(u.$data,l,t.dataPathArr)+"; ",b="schema"+i):b=u;var T=E?"(new RegExp("+b+"))":t.usePattern(u);a+="if ( ",E&&(a+=" ("+b+" !== undefined && typeof "+b+" != 'string') || "),a+=" !"+T+".test("+m+") ) { ";var A=A||[];A.push(a),a="",t.createErrors!==!1?(a+=" { keyword: 'pattern' , dataPath: (dataPath || '') + "+t.errorPath+" , schemaPath: "+t.util.toQuotedString(h)+" , params: { pattern: ",E?a+=""+b:a+=""+t.util.toQuotedString(u),a+=" } ",t.opts.messages!==!1&&(a+=` , message: 'should match pattern "`,E?a+="' + "+b+" + '":a+=""+t.util.escapeQuotes(u),a+=`"' `),t.opts.verbose&&(a+=" , schema: ",E?a+="validate.schema"+d:a+=""+t.util.toQuotedString(u),a+=" , parentSchema: validate.schema"+t.schemaPath+" , data: "+m+" "),a+=" } "):a+=" {} ";var S=a;return a=A.pop(),!t.compositeRule&&v?t.async?a+=" throw new ValidationError(["+S+"]); ":a+=" validate.errors = ["+S+"]; return false; ":a+=" var err = "+S+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",a+="} ",v&&(a+=" else { "),a}),Bg}var Vg,OT;function Zae(){return OT||(OT=1,Vg=function(t,n,r){var a=" ",i=t.level,l=t.dataLevel,u=t.schema[n],d=t.schemaPath+t.util.getProperty(n),h=t.errSchemaPath+"/"+n,v=!t.opts.allErrors,m="data"+(l||""),E="errs__"+i,b=t.util.copy(t),T="";b.level++;var A="valid"+b.level,S="key"+i,w="idx"+i,R=b.dataLevel=t.dataLevel+1,k="data"+R,L="dataProperties"+i,I=Object.keys(u||{}).filter(X),N=t.schema.patternProperties||{},M=Object.keys(N).filter(X),D=t.schema.additionalProperties,B=I.length||M.length,P=D===!1,U=typeof D=="object"&&Object.keys(D).length,F=t.opts.removeAdditional,Q=P||U||F,Y=t.opts.ownProperties,te=t.baseId,V=t.schema.required;if(V&&!(t.opts.$data&&V.$data)&&V.length<t.opts.loopRequired)var J=t.util.toHash(V);function X(Se){return Se!=="__proto__"}if(a+="var "+E+" = errors;var "+A+" = true;",Y&&(a+=" var "+L+" = undefined;"),Q){if(Y?a+=" "+L+" = "+L+" || Object.keys("+m+"); for (var "+w+"=0; "+w+"<"+L+".length; "+w+"++) { var "+S+" = "+L+"["+w+"]; ":a+=" for (var "+S+" in "+m+") { ",B){if(a+=" var isAdditional"+i+" = !(false ",I.length)if(I.length>8)a+=" || validate.schema"+d+".hasOwnProperty("+S+") ";else{var se=I;if(se)for(var C,oe=-1,ge=se.length-1;oe<ge;)C=se[oe+=1],a+=" || "+S+" == "+t.util.toQuotedString(C)+" "}if(M.length){var j=M;if(j)for(var Ee,Pe=-1,q=j.length-1;Pe<q;)Ee=j[Pe+=1],a+=" || "+t.usePattern(Ee)+".test("+S+") "}a+=" ); if (isAdditional"+i+") { "}if(F=="all")a+=" delete "+m+"["+S+"]; ";else{var ae=t.errorPath,Te="' + "+S+" + '";if(t.opts._errorDataPathProperty&&(t.errorPath=t.util.getPathExpr(t.errorPath,S,t.opts.jsonPointers)),P)if(F)a+=" delete "+m+"["+S+"]; ";else{a+=" "+A+" = false; ";var qe=h;h=t.errSchemaPath+"/additionalProperties";var Ae=Ae||[];Ae.push(a),a="",t.createErrors!==!1?(a+=" { keyword: 'additionalProperties' , dataPath: (dataPath || '') + "+t.errorPath+" , schemaPath: "+t.util.toQuotedString(h)+" , params: { additionalProperty: '"+Te+"' } ",t.opts.messages!==!1&&(a+=" , message: '",t.opts._errorDataPathProperty?a+="is an invalid additional property":a+="should NOT have additional properties",a+="' "),t.opts.verbose&&(a+=" , schema: false , parentSchema: validate.schema"+t.schemaPath+" , data: "+m+" "),a+=" } "):a+=" {} ";var Oe=a;a=Ae.pop(),!t.compositeRule&&v?t.async?a+=" throw new ValidationError(["+Oe+"]); ":a+=" validate.errors = ["+Oe+"]; return false; ":a+=" var err = "+Oe+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",h=qe,v&&(a+=" break; ")}else if(U)if(F=="failing"){a+=" var "+E+" = errors; ";var et=t.compositeRule;t.compositeRule=b.compositeRule=!0,b.schema=D,b.schemaPath=t.schemaPath+".additionalProperties",b.errSchemaPath=t.errSchemaPath+"/additionalProperties",b.errorPath=t.opts._errorDataPathProperty?t.errorPath:t.util.getPathExpr(t.errorPath,S,t.opts.jsonPointers);var ct=m+"["+S+"]";b.dataPathArr[R]=S;var it=t.validate(b);b.baseId=te,t.util.varOccurences(it,k)<2?a+=" "+t.util.varReplace(it,k,ct)+" ":a+=" var "+k+" = "+ct+"; "+it+" ",a+=" if (!"+A+") { errors = "+E+"; if (validate.errors !== null) { if (errors) validate.errors.length = errors; else validate.errors = null; } delete "+m+"["+S+"]; } ",t.compositeRule=b.compositeRule=et}else{b.schema=D,b.schemaPath=t.schemaPath+".additionalProperties",b.errSchemaPath=t.errSchemaPath+"/additionalProperties",b.errorPath=t.opts._errorDataPathProperty?t.errorPath:t.util.getPathExpr(t.errorPath,S,t.opts.jsonPointers);var ct=m+"["+S+"]";b.dataPathArr[R]=S;var it=t.validate(b);b.baseId=te,t.util.varOccurences(it,k)<2?a+=" "+t.util.varReplace(it,k,ct)+" ":a+=" var "+k+" = "+ct+"; "+it+" ",v&&(a+=" if (!"+A+") break; ")}t.errorPath=ae}B&&(a+=" } "),a+=" } ",v&&(a+=" if ("+A+") { ",T+="}")}var Ht=t.opts.useDefaults&&!t.compositeRule;if(I.length){var _t=I;if(_t)for(var C,st=-1,vn=_t.length-1;st<vn;){C=_t[st+=1];var bt=u[C];if(t.opts.strictKeywords?typeof bt=="object"&&Object.keys(bt).length>0||bt===!1:t.util.schemaHasRules(bt,t.RULES.all)){var W=t.util.getProperty(C),ct=m+W,ce=Ht&&bt.default!==void 0;b.schema=bt,b.schemaPath=d+W,b.errSchemaPath=h+"/"+t.util.escapeFragment(C),b.errorPath=t.util.getPath(t.errorPath,C,t.opts.jsonPointers),b.dataPathArr[R]=t.util.toQuotedString(C);var it=t.validate(b);if(b.baseId=te,t.util.varOccurences(it,k)<2){it=t.util.varReplace(it,k,ct);var pe=ct}else{var pe=k;a+=" var "+k+" = "+ct+"; "}if(ce)a+=" "+it+" ";else{if(J&&J[C]){a+=" if ( "+pe+" === undefined ",Y&&(a+=" || ! Object.prototype.hasOwnProperty.call("+m+", '"+t.util.escapeQuotes(C)+"') "),a+=") { "+A+" = false; ";var ae=t.errorPath,qe=h,Ne=t.util.escapeQuotes(C);t.opts._errorDataPathProperty&&(t.errorPath=t.util.getPath(ae,C,t.opts.jsonPointers)),h=t.errSchemaPath+"/required";var Ae=Ae||[];Ae.push(a),a="",t.createErrors!==!1?(a+=" { keyword: 'required' , dataPath: (dataPath || '') + "+t.errorPath+" , schemaPath: "+t.util.toQuotedString(h)+" , params: { missingProperty: '"+Ne+"' } ",t.opts.messages!==!1&&(a+=" , message: '",t.opts._errorDataPathProperty?a+="is a required property":a+="should have required property \\'"+Ne+"\\'",a+="' "),t.opts.verbose&&(a+=" , schema: validate.schema"+d+" , parentSchema: validate.schema"+t.schemaPath+" , data: "+m+" "),a+=" } "):a+=" {} ";var Oe=a;a=Ae.pop(),!t.compositeRule&&v?t.async?a+=" throw new ValidationError(["+Oe+"]); ":a+=" validate.errors = ["+Oe+"]; return false; ":a+=" var err = "+Oe+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",h=qe,t.errorPath=ae,a+=" } else { "}else v?(a+=" if ( "+pe+" === undefined ",Y&&(a+=" || ! Object.prototype.hasOwnProperty.call("+m+", '"+t.util.escapeQuotes(C)+"') "),a+=") { "+A+" = true; } else { "):(a+=" if ("+pe+" !== undefined ",Y&&(a+=" && Object.prototype.hasOwnProperty.call("+m+", '"+t.util.escapeQuotes(C)+"') "),a+=" ) { ");a+=" "+it+" } "}}v&&(a+=" if ("+A+") { ",T+="}")}}if(M.length){var Me=M;if(Me)for(var Ee,je=-1,ie=Me.length-1;je<ie;){Ee=Me[je+=1];var bt=N[Ee];if(t.opts.strictKeywords?typeof bt=="object"&&Object.keys(bt).length>0||bt===!1:t.util.schemaHasRules(bt,t.RULES.all)){b.schema=bt,b.schemaPath=t.schemaPath+".patternProperties"+t.util.getProperty(Ee),b.errSchemaPath=t.errSchemaPath+"/patternProperties/"+t.util.escapeFragment(Ee),Y?a+=" "+L+" = "+L+" || Object.keys("+m+"); for (var "+w+"=0; "+w+"<"+L+".length; "+w+"++) { var "+S+" = "+L+"["+w+"]; ":a+=" for (var "+S+" in "+m+") { ",a+=" if ("+t.usePattern(Ee)+".test("+S+")) { ",b.errorPath=t.util.getPathExpr(t.errorPath,S,t.opts.jsonPointers);var ct=m+"["+S+"]";b.dataPathArr[R]=S;var it=t.validate(b);b.baseId=te,t.util.varOccurences(it,k)<2?a+=" "+t.util.varReplace(it,k,ct)+" ":a+=" var "+k+" = "+ct+"; "+it+" ",v&&(a+=" if (!"+A+") break; "),a+=" } ",v&&(a+=" else "+A+" = true; "),a+=" } ",v&&(a+=" if ("+A+") { ",T+="}")}}}return v&&(a+=" "+T+" if ("+E+" == errors) {"),a}),Vg}var zg,NT;function Qae(){return NT||(NT=1,zg=function(t,n,r){var a=" ",i=t.level,l=t.dataLevel,u=t.schema[n],d=t.schemaPath+t.util.getProperty(n),h=t.errSchemaPath+"/"+n,v=!t.opts.allErrors,m="data"+(l||""),E="errs__"+i,b=t.util.copy(t),T="";b.level++;var A="valid"+b.level;if(a+="var "+E+" = errors;",t.opts.strictKeywords?typeof u=="object"&&Object.keys(u).length>0||u===!1:t.util.schemaHasRules(u,t.RULES.all)){b.schema=u,b.schemaPath=d,b.errSchemaPath=h;var S="key"+i,w="idx"+i,R="i"+i,k="' + "+S+" + '",L=b.dataLevel=t.dataLevel+1,I="data"+L,N="dataProperties"+i,M=t.opts.ownProperties,D=t.baseId;M&&(a+=" var "+N+" = undefined; "),M?a+=" "+N+" = "+N+" || Object.keys("+m+"); for (var "+w+"=0; "+w+"<"+N+".length; "+w+"++) { var "+S+" = "+N+"["+w+"]; ":a+=" for (var "+S+" in "+m+") { ",a+=" var startErrs"+i+" = errors; ";var B=S,P=t.compositeRule;t.compositeRule=b.compositeRule=!0;var U=t.validate(b);b.baseId=D,t.util.varOccurences(U,I)<2?a+=" "+t.util.varReplace(U,I,B)+" ":a+=" var "+I+" = "+B+"; "+U+" ",t.compositeRule=b.compositeRule=P,a+=" if (!"+A+") { for (var "+R+"=startErrs"+i+"; "+R+"<errors; "+R+"++) { vErrors["+R+"].propertyName = "+S+"; } var err = ",t.createErrors!==!1?(a+=" { keyword: 'propertyNames' , dataPath: (dataPath || '') + "+t.errorPath+" , schemaPath: "+t.util.toQuotedString(h)+" , params: { propertyName: '"+k+"' } ",t.opts.messages!==!1&&(a+=" , message: 'property name \\'"+k+"\\' is invalid' "),t.opts.verbose&&(a+=" , schema: validate.schema"+d+" , parentSchema: validate.schema"+t.schemaPath+" , data: "+m+" "),a+=" } "):a+=" {} ",a+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",!t.compositeRule&&v&&(t.async?a+=" throw new ValidationError(vErrors); ":a+=" validate.errors = vErrors; return false; "),v&&(a+=" break; "),a+=" } }"}return v&&(a+=" "+T+" if ("+E+" == errors) {"),a}),zg}var qg,PT;function Yae(){return PT||(PT=1,qg=function(t,n,r){var a=" ",i=t.level,l=t.dataLevel,u=t.schema[n],d=t.schemaPath+t.util.getProperty(n),h=t.errSchemaPath+"/"+n,v=!t.opts.allErrors,m="data"+(l||""),E="valid"+i,b=t.opts.$data&&u&&u.$data;b&&(a+=" var schema"+i+" = "+t.util.getData(u.$data,l,t.dataPathArr)+"; ");var T="schema"+i;if(!b)if(u.length<t.opts.loopRequired&&t.schema.properties&&Object.keys(t.schema.properties).length){var A=[],S=u;if(S)for(var w,R=-1,k=S.length-1;R<k;){w=S[R+=1];var L=t.schema.properties[w];L&&(t.opts.strictKeywords?typeof L=="object"&&Object.keys(L).length>0||L===!1:t.util.schemaHasRules(L,t.RULES.all))||(A[A.length]=w)}}else var A=u;if(b||A.length){var I=t.errorPath,N=b||A.length>=t.opts.loopRequired,M=t.opts.ownProperties;if(v)if(a+=" var missing"+i+"; ",N){b||(a+=" var "+T+" = validate.schema"+d+"; ");var D="i"+i,B="schema"+i+"["+D+"]",P="' + "+B+" + '";t.opts._errorDataPathProperty&&(t.errorPath=t.util.getPathExpr(I,B,t.opts.jsonPointers)),a+=" var "+E+" = true; ",b&&(a+=" if (schema"+i+" === undefined) "+E+" = true; else if (!Array.isArray(schema"+i+")) "+E+" = false; else {"),a+=" for (var "+D+" = 0; "+D+" < "+T+".length; "+D+"++) { "+E+" = "+m+"["+T+"["+D+"]] !== undefined ",M&&(a+=" && Object.prototype.hasOwnProperty.call("+m+", "+T+"["+D+"]) "),a+="; if (!"+E+") break; } ",b&&(a+=" } "),a+=" if (!"+E+") { ";var U=U||[];U.push(a),a="",t.createErrors!==!1?(a+=" { keyword: 'required' , dataPath: (dataPath || '') + "+t.errorPath+" , schemaPath: "+t.util.toQuotedString(h)+" , params: { missingProperty: '"+P+"' } ",t.opts.messages!==!1&&(a+=" , message: '",t.opts._errorDataPathProperty?a+="is a required property":a+="should have required property \\'"+P+"\\'",a+="' "),t.opts.verbose&&(a+=" , schema: validate.schema"+d+" , parentSchema: validate.schema"+t.schemaPath+" , data: "+m+" "),a+=" } "):a+=" {} ";var F=a;a=U.pop(),!t.compositeRule&&v?t.async?a+=" throw new ValidationError(["+F+"]); ":a+=" validate.errors = ["+F+"]; return false; ":a+=" var err = "+F+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",a+=" } else { "}else{a+=" if ( ";var Q=A;if(Q)for(var Y,D=-1,te=Q.length-1;D<te;){Y=Q[D+=1],D&&(a+=" || ");var V=t.util.getProperty(Y),J=m+V;a+=" ( ( "+J+" === undefined ",M&&(a+=" || ! Object.prototype.hasOwnProperty.call("+m+", '"+t.util.escapeQuotes(Y)+"') "),a+=") && (missing"+i+" = "+t.util.toQuotedString(t.opts.jsonPointers?Y:V)+") ) "}a+=") { ";var B="missing"+i,P="' + "+B+" + '";t.opts._errorDataPathProperty&&(t.errorPath=t.opts.jsonPointers?t.util.getPathExpr(I,B,!0):I+" + "+B);var U=U||[];U.push(a),a="",t.createErrors!==!1?(a+=" { keyword: 'required' , dataPath: (dataPath || '') + "+t.errorPath+" , schemaPath: "+t.util.toQuotedString(h)+" , params: { missingProperty: '"+P+"' } ",t.opts.messages!==!1&&(a+=" , message: '",t.opts._errorDataPathProperty?a+="is a required property":a+="should have required property \\'"+P+"\\'",a+="' "),t.opts.verbose&&(a+=" , schema: validate.schema"+d+" , parentSchema: validate.schema"+t.schemaPath+" , data: "+m+" "),a+=" } "):a+=" {} ";var F=a;a=U.pop(),!t.compositeRule&&v?t.async?a+=" throw new ValidationError(["+F+"]); ":a+=" validate.errors = ["+F+"]; return false; ":a+=" var err = "+F+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",a+=" } else { "}else if(N){b||(a+=" var "+T+" = validate.schema"+d+"; ");var D="i"+i,B="schema"+i+"["+D+"]",P="' + "+B+" + '";t.opts._errorDataPathProperty&&(t.errorPath=t.util.getPathExpr(I,B,t.opts.jsonPointers)),b&&(a+=" if ("+T+" && !Array.isArray("+T+")) { var err = ",t.createErrors!==!1?(a+=" { keyword: 'required' , dataPath: (dataPath || '') + "+t.errorPath+" , schemaPath: "+t.util.toQuotedString(h)+" , params: { missingProperty: '"+P+"' } ",t.opts.messages!==!1&&(a+=" , message: '",t.opts._errorDataPathProperty?a+="is a required property":a+="should have required property \\'"+P+"\\'",a+="' "),t.opts.verbose&&(a+=" , schema: validate.schema"+d+" , parentSchema: validate.schema"+t.schemaPath+" , data: "+m+" "),a+=" } "):a+=" {} ",a+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; } else if ("+T+" !== undefined) { "),a+=" for (var "+D+" = 0; "+D+" < "+T+".length; "+D+"++) { if ("+m+"["+T+"["+D+"]] === undefined ",M&&(a+=" || ! Object.prototype.hasOwnProperty.call("+m+", "+T+"["+D+"]) "),a+=") { var err = ",t.createErrors!==!1?(a+=" { keyword: 'required' , dataPath: (dataPath || '') + "+t.errorPath+" , schemaPath: "+t.util.toQuotedString(h)+" , params: { missingProperty: '"+P+"' } ",t.opts.messages!==!1&&(a+=" , message: '",t.opts._errorDataPathProperty?a+="is a required property":a+="should have required property \\'"+P+"\\'",a+="' "),t.opts.verbose&&(a+=" , schema: validate.schema"+d+" , parentSchema: validate.schema"+t.schemaPath+" , data: "+m+" "),a+=" } "):a+=" {} ",a+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; } } ",b&&(a+=" } ")}else{var X=A;if(X)for(var Y,se=-1,C=X.length-1;se<C;){Y=X[se+=1];var V=t.util.getProperty(Y),P=t.util.escapeQuotes(Y),J=m+V;t.opts._errorDataPathProperty&&(t.errorPath=t.util.getPath(I,Y,t.opts.jsonPointers)),a+=" if ( "+J+" === undefined ",M&&(a+=" || ! Object.prototype.hasOwnProperty.call("+m+", '"+t.util.escapeQuotes(Y)+"') "),a+=") { var err = ",t.createErrors!==!1?(a+=" { keyword: 'required' , dataPath: (dataPath || '') + "+t.errorPath+" , schemaPath: "+t.util.toQuotedString(h)+" , params: { missingProperty: '"+P+"' } ",t.opts.messages!==!1&&(a+=" , message: '",t.opts._errorDataPathProperty?a+="is a required property":a+="should have required property \\'"+P+"\\'",a+="' "),t.opts.verbose&&(a+=" , schema: validate.schema"+d+" , parentSchema: validate.schema"+t.schemaPath+" , data: "+m+" "),a+=" } "):a+=" {} ",a+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; } "}}t.errorPath=I}else v&&(a+=" if (true) {");return a}),qg}var $g,kT;function Gae(){return kT||(kT=1,$g=function(t,n,r){var a=" ",i=t.level,l=t.dataLevel,u=t.schema[n],d=t.schemaPath+t.util.getProperty(n),h=t.errSchemaPath+"/"+n,v=!t.opts.allErrors,m="data"+(l||""),E="valid"+i,b=t.opts.$data&&u&&u.$data,T;if(b?(a+=" var schema"+i+" = "+t.util.getData(u.$data,l,t.dataPathArr)+"; ",T="schema"+i):T=u,(u||b)&&t.opts.uniqueItems!==!1){b&&(a+=" var "+E+"; if ("+T+" === false || "+T+" === undefined) "+E+" = true; else if (typeof "+T+" != 'boolean') "+E+" = false; else { "),a+=" var i = "+m+".length , "+E+" = true , j; if (i > 1) { ";var A=t.schema.items&&t.schema.items.type,S=Array.isArray(A);if(!A||A=="object"||A=="array"||S&&(A.indexOf("object")>=0||A.indexOf("array")>=0))a+=" outer: for (;i--;) { for (j = i; j--;) { if (equal("+m+"[i], "+m+"[j])) { "+E+" = false; break outer; } } } ";else{a+=" var itemIndices = {}, item; for (;i--;) { var item = "+m+"[i]; ";var w="checkDataType"+(S?"s":"");a+=" if ("+t.util[w](A,"item",t.opts.strictNumbers,!0)+") continue; ",S&&(a+=` if (typeof item == 'string') item = '"' + item; `),a+=" if (typeof itemIndices[item] == 'number') { "+E+" = false; j = itemIndices[item]; break; } itemIndices[item] = i; } "}a+=" } ",b&&(a+=" } "),a+=" if (!"+E+") { ";var R=R||[];R.push(a),a="",t.createErrors!==!1?(a+=" { keyword: 'uniqueItems' , dataPath: (dataPath || '') + "+t.errorPath+" , schemaPath: "+t.util.toQuotedString(h)+" , params: { i: i, j: j } ",t.opts.messages!==!1&&(a+=" , message: 'should NOT have duplicate items (items ## ' + j + ' and ' + i + ' are identical)' "),t.opts.verbose&&(a+=" , schema: ",b?a+="validate.schema"+d:a+=""+u,a+=" , parentSchema: validate.schema"+t.schemaPath+" , data: "+m+" "),a+=" } "):a+=" {} ";var k=a;a=R.pop(),!t.compositeRule&&v?t.async?a+=" throw new ValidationError(["+k+"]); ":a+=" validate.errors = ["+k+"]; return false; ":a+=" var err = "+k+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",a+=" } ",v&&(a+=" else { ")}else v&&(a+=" if (true) { ");return a}),$g}var Zg,DT;function Kae(){return DT||(DT=1,Zg={$ref:Pae(),allOf:kae(),anyOf:Dae(),$comment:Mae(),const:Lae(),contains:Iae(),dependencies:jae(),enum:Hae(),format:Fae(),if:Uae(),items:Bae(),maximum:yT(),minimum:yT(),maxItems:ET(),minItems:ET(),maxLength:_T(),minLength:_T(),maxProperties:AT(),minProperties:AT(),multipleOf:Vae(),not:zae(),oneOf:qae(),pattern:$ae(),properties:Zae(),propertyNames:Qae(),required:Yae(),uniqueItems:Gae(),validate:NN()}),Zg}var Qg,MT;function Xae(){if(MT)return Qg;MT=1;var e=Kae(),t=$u().toHash;return Qg=function(){var r=[{type:"number",rules:[{maximum:["exclusiveMaximum"]},{minimum:["exclusiveMinimum"]},"multipleOf","format"]},{type:"string",rules:["maxLength","minLength","pattern","format"]},{type:"array",rules:["maxItems","minItems","items","contains","uniqueItems"]},{type:"object",rules:["maxProperties","minProperties","required","dependencies","propertyNames",{properties:["additionalProperties","patternProperties"]}]},{rules:["$ref","const","enum","not","anyOf","oneOf","allOf","if"]}],a=["type","$comment"],i=["$schema","$id","id","$data","$async","title","description","default","definitions","examples","readOnly","writeOnly","contentMediaType","contentEncoding","additionalItems","then","else"],l=["number","integer","string","array","object","boolean","null"];return r.all=t(a),r.types=t(l),r.forEach(function(u){u.rules=u.rules.map(function(d){var h;if(typeof d=="object"){var v=Object.keys(d)[0];h=d[v],d=v,h.forEach(function(E){a.push(E),r.all[E]=!0})}a.push(d);var m=r.all[d]={keyword:d,code:e[d],implements:h};return m}),r.all.$comment={keyword:"$comment",code:e.$comment},u.type&&(r.types[u.type]=u)}),r.keywords=t(a.concat(i)),r.custom={},r},Qg}var Yg,LT;function Wae(){if(LT)return Yg;LT=1;var e=["multipleOf","maximum","exclusiveMaximum","minimum","exclusiveMinimum","maxLength","minLength","pattern","additionalItems","maxItems","minItems","uniqueItems","maxProperties","minProperties","required","additionalProperties","enum","format","const"];return Yg=function(t,n){for(var r=0;r<n.length;r++){t=JSON.parse(JSON.stringify(t));var a=n[r].split("/"),i=t,l;for(l=1;l<a.length;l++)i=i[a[l]];for(l=0;l<e.length;l++){var u=e[l],d=i[u];d&&(i[u]={anyOf:[d,{$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"}]})}}return t},Yg}var Gg,IT;function Jae(){if(IT)return Gg;IT=1;var e=oy().MissingRef;Gg=t;function t(n,r,a){var i=this;if(typeof this._opts.loadSchema!="function")throw new Error("options.loadSchema should be a function");typeof r=="function"&&(a=r,r=void 0);var l=u(n).then(function(){var h=i._addSchema(n,void 0,r);return h.validate||d(h)});return a&&l.then(function(h){a(null,h)},a),l;function u(h){var v=h.$schema;return v&&!i.getSchema(v)?t.call(i,{$ref:v},!0):Promise.resolve()}function d(h){try{return i._compile(h)}catch(m){if(m instanceof e)return v(m);throw m}function v(m){var E=m.missingSchema;if(A(E))throw new Error("Schema "+E+" is loaded but "+m.missingRef+" cannot be resolved");var b=i._loadingSchemas[E];return b||(b=i._loadingSchemas[E]=i._opts.loadSchema(E),b.then(T,T)),b.then(function(S){if(!A(E))return u(S).then(function(){A(E)||i.addSchema(S,E,void 0,r)})}).then(function(){return d(h)});function T(){delete i._loadingSchemas[E]}function A(S){return i._refs[S]||i._schemas[S]}}}}return Gg}var Kg,jT;function ese(){return jT||(jT=1,Kg=function(t,n,r){var a=" ",i=t.level,l=t.dataLevel,u=t.schema[n],d=t.schemaPath+t.util.getProperty(n),h=t.errSchemaPath+"/"+n,v=!t.opts.allErrors,m,E="data"+(l||""),b="valid"+i,T="errs__"+i,A=t.opts.$data&&u&&u.$data,S;A?(a+=" var schema"+i+" = "+t.util.getData(u.$data,l,t.dataPathArr)+"; ",S="schema"+i):S=u;var w=this,R="definition"+i,k=w.definition,L="",I,N,M,D,B;if(A&&k.$data){B="keywordValidate"+i;var P=k.validateSchema;a+=" var "+R+" = RULES.custom['"+n+"'].definition; var "+B+" = "+R+".validate;"}else{if(D=t.useCustomRule(w,u,t.schema,t),!D)return;S="validate.schema"+d,B=D.code,I=k.compile,N=k.inline,M=k.macro}var U=B+".errors",F="i"+i,Q="ruleErr"+i,Y=k.async;if(Y&&!t.async)throw new Error("async keyword in sync schema");if(N||M||(a+=""+U+" = null;"),a+="var "+T+" = errors;var "+b+";",A&&k.$data&&(L+="}",a+=" if ("+S+" === undefined) { "+b+" = true; } else { ",P&&(L+="}",a+=" "+b+" = "+R+".validateSchema("+S+"); if ("+b+") { ")),N)k.statements?a+=" "+D.validate+" ":a+=" "+b+" = "+D.validate+"; ";else if(M){var te=t.util.copy(t),L="";te.level++;var V="valid"+te.level;te.schema=D.validate,te.schemaPath="";var J=t.compositeRule;t.compositeRule=te.compositeRule=!0;var X=t.validate(te).replace(/validate\.schema/g,B);t.compositeRule=te.compositeRule=J,a+=" "+X}else{var se=se||[];se.push(a),a="",a+=" "+B+".call( ",t.opts.passContext?a+="this":a+="self",I||k.schema===!1?a+=" , "+E+" ":a+=" , "+S+" , "+E+" , validate.schema"+t.schemaPath+" ",a+=" , (dataPath || '')",t.errorPath!='""'&&(a+=" + "+t.errorPath);var C=l?"data"+(l-1||""):"parentData",oe=l?t.dataPathArr[l]:"parentDataProperty";a+=" , "+C+" , "+oe+" , rootData ) ";var ge=a;a=se.pop(),k.errors===!1?(a+=" "+b+" = ",Y&&(a+="await "),a+=""+ge+"; "):Y?(U="customErrors"+i,a+=" var "+U+" = null; try { "+b+" = await "+ge+"; } catch (e) { "+b+" = false; if (e instanceof ValidationError) "+U+" = e.errors; else throw e; } "):a+=" "+U+" = null; "+b+" = "+ge+"; "}if(k.modifying&&(a+=" if ("+C+") "+E+" = "+C+"["+oe+"];"),a+=""+L,k.valid)v&&(a+=" if (true) { ");else{a+=" if ( ",k.valid===void 0?(a+=" !",M?a+=""+V:a+=""+b):a+=" "+!k.valid+" ",a+=") { ",m=w.keyword;var se=se||[];se.push(a),a="";var se=se||[];se.push(a),a="",t.createErrors!==!1?(a+=" { keyword: '"+(m||"custom")+"' , dataPath: (dataPath || '') + "+t.errorPath+" , schemaPath: "+t.util.toQuotedString(h)+" , params: { keyword: '"+w.keyword+"' } ",t.opts.messages!==!1&&(a+=` , message: 'should pass "`+w.keyword+`" keyword validation' `),t.opts.verbose&&(a+=" , schema: validate.schema"+d+" , parentSchema: validate.schema"+t.schemaPath+" , data: "+E+" "),a+=" } "):a+=" {} ";var j=a;a=se.pop(),!t.compositeRule&&v?t.async?a+=" throw new ValidationError(["+j+"]); ":a+=" validate.errors = ["+j+"]; return false; ":a+=" var err = "+j+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ";var Ee=a;a=se.pop(),N?k.errors?k.errors!="full"&&(a+=" for (var "+F+"="+T+"; "+F+"<errors; "+F+"++) { var "+Q+" = vErrors["+F+"]; if ("+Q+".dataPath === undefined) "+Q+".dataPath = (dataPath || '') + "+t.errorPath+"; if ("+Q+".schemaPath === undefined) { "+Q+'.schemaPath = "'+h+'"; } ',t.opts.verbose&&(a+=" "+Q+".schema = "+S+"; "+Q+".data = "+E+"; "),a+=" } "):k.errors===!1?a+=" "+Ee+" ":(a+=" if ("+T+" == errors) { "+Ee+" } else { for (var "+F+"="+T+"; "+F+"<errors; "+F+"++) { var "+Q+" = vErrors["+F+"]; if ("+Q+".dataPath === undefined) "+Q+".dataPath = (dataPath || '') + "+t.errorPath+"; if ("+Q+".schemaPath === undefined) { "+Q+'.schemaPath = "'+h+'"; } ',t.opts.verbose&&(a+=" "+Q+".schema = "+S+"; "+Q+".data = "+E+"; "),a+=" } } "):M?(a+=" var err = ",t.createErrors!==!1?(a+=" { keyword: '"+(m||"custom")+"' , dataPath: (dataPath || '') + "+t.errorPath+" , schemaPath: "+t.util.toQuotedString(h)+" , params: { keyword: '"+w.keyword+"' } ",t.opts.messages!==!1&&(a+=` , message: 'should pass "`+w.keyword+`" keyword validation' `),t.opts.verbose&&(a+=" , schema: validate.schema"+d+" , parentSchema: validate.schema"+t.schemaPath+" , data: "+E+" "),a+=" } "):a+=" {} ",a+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",!t.compositeRule&&v&&(t.async?a+=" throw new ValidationError(vErrors); ":a+=" validate.errors = vErrors; return false; ")):k.errors===!1?a+=" "+Ee+" ":(a+=" if (Array.isArray("+U+")) { if (vErrors === null) vErrors = "+U+"; else vErrors = vErrors.concat("+U+"); errors = vErrors.length; for (var "+F+"="+T+"; "+F+"<errors; "+F+"++) { var "+Q+" = vErrors["+F+"]; if ("+Q+".dataPath === undefined) "+Q+".dataPath = (dataPath || '') + "+t.errorPath+"; "+Q+'.schemaPath = "'+h+'"; ',t.opts.verbose&&(a+=" "+Q+".schema = "+S+"; "+Q+".data = "+E+"; "),a+=" } } else { "+Ee+" } "),a+=" } ",v&&(a+=" else { ")}return a}),Kg}const tse="http://json-schema.org/draft-07/schema#",nse="http://json-schema.org/draft-07/schema#",rse="Core schema meta-schema",ase={schemaArray:{type:"array",minItems:1,items:{$ref:"#"}},nonNegativeInteger:{type:"integer",minimum:0},nonNegativeIntegerDefault0:{allOf:[{$ref:"#/definitions/nonNegativeInteger"},{default:0}]},simpleTypes:{enum:["array","boolean","integer","null","number","object","string"]},stringArray:{type:"array",items:{type:"string"},uniqueItems:!0,default:[]}},sse=["object","boolean"],ise={$id:{type:"string",format:"uri-reference"},$schema:{type:"string",format:"uri"},$ref:{type:"string",format:"uri-reference"},$comment:{type:"string"},title:{type:"string"},description:{type:"string"},default:!0,readOnly:{type:"boolean",default:!1},examples:{type:"array",items:!0},multipleOf:{type:"number",exclusiveMinimum:0},maximum:{type:"number"},exclusiveMaximum:{type:"number"},minimum:{type:"number"},exclusiveMinimum:{type:"number"},maxLength:{$ref:"#/definitions/nonNegativeInteger"},minLength:{$ref:"#/definitions/nonNegativeIntegerDefault0"},pattern:{type:"string",format:"regex"},additionalItems:{$ref:"#"},items:{anyOf:[{$ref:"#"},{$ref:"#/definitions/schemaArray"}],default:!0},maxItems:{$ref:"#/definitions/nonNegativeInteger"},minItems:{$ref:"#/definitions/nonNegativeIntegerDefault0"},uniqueItems:{type:"boolean",default:!1},contains:{$ref:"#"},maxProperties:{$ref:"#/definitions/nonNegativeInteger"},minProperties:{$ref:"#/definitions/nonNegativeIntegerDefault0"},required:{$ref:"#/definitions/stringArray"},additionalProperties:{$ref:"#"},definitions:{type:"object",additionalProperties:{$ref:"#"},default:{}},properties:{type:"object",additionalProperties:{$ref:"#"},default:{}},patternProperties:{type:"object",additionalProperties:{$ref:"#"},propertyNames:{format:"regex"},default:{}},dependencies:{type:"object",additionalProperties:{anyOf:[{$ref:"#"},{$ref:"#/definitions/stringArray"}]}},propertyNames:{$ref:"#"},const:!0,enum:{type:"array",items:!0,minItems:1,uniqueItems:!0},type:{anyOf:[{$ref:"#/definitions/simpleTypes"},{type:"array",items:{$ref:"#/definitions/simpleTypes"},minItems:1,uniqueItems:!0}]},format:{type:"string"},contentMediaType:{type:"string"},contentEncoding:{type:"string"},if:{$ref:"#"},then:{$ref:"#"},else:{$ref:"#"},allOf:{$ref:"#/definitions/schemaArray"},anyOf:{$ref:"#/definitions/schemaArray"},oneOf:{$ref:"#/definitions/schemaArray"},not:{$ref:"#"}},PN={$schema:tse,$id:nse,title:rse,definitions:ase,type:sse,properties:ise,default:!0};var Xg,HT;function ose(){if(HT)return Xg;HT=1;var e=PN;return Xg={$id:"https://github.com/ajv-validator/ajv/blob/master/lib/definition_schema.js",definitions:{simpleTypes:e.definitions.simpleTypes},type:"object",dependencies:{schema:["validate"],$data:["validate"],statements:["inline"],valid:{not:{required:["macro"]}}},properties:{type:e.properties.type,schema:{type:"boolean"},statements:{type:"boolean"},dependencies:{type:"array",items:{type:"string"}},metaSchema:{type:"object"},modifying:{type:"boolean"},valid:{type:"boolean"},$data:{type:"boolean"},async:{type:"boolean"},errors:{anyOf:[{type:"boolean"},{const:"full"}]}}},Xg}var Wg,FT;function lse(){if(FT)return Wg;FT=1;var e=/^[a-z_$][a-z0-9_$-]*$/i,t=ese(),n=ose();Wg={add:r,get:a,remove:i,validate:l};function r(u,d){var h=this.RULES;if(h.keywords[u])throw new Error("Keyword "+u+" is already defined");if(!e.test(u))throw new Error("Keyword "+u+" is not a valid identifier");if(d){this.validateKeyword(d,!0);var v=d.type;if(Array.isArray(v))for(var m=0;m<v.length;m++)b(u,v[m],d);else b(u,v,d);var E=d.metaSchema;E&&(d.$data&&this._opts.$data&&(E={anyOf:[E,{$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"}]}),d.validateSchema=this.compile(E,!0))}h.keywords[u]=h.all[u]=!0;function b(T,A,S){for(var w,R=0;R<h.length;R++){var k=h[R];if(k.type==A){w=k;break}}w||(w={type:A,rules:[]},h.push(w));var L={keyword:T,definition:S,custom:!0,code:t,implements:S.implements};w.rules.push(L),h.custom[T]=L}return this}function a(u){var d=this.RULES.custom[u];return d?d.definition:this.RULES.keywords[u]||!1}function i(u){var d=this.RULES;delete d.keywords[u],delete d.all[u],delete d.custom[u];for(var h=0;h<d.length;h++)for(var v=d[h].rules,m=0;m<v.length;m++)if(v[m].keyword==u){v.splice(m,1);break}return this}function l(u,d){l.errors=null;var h=this._validateKeyword=this._validateKeyword||this.compile(n,!0);if(h(u))return!0;if(l.errors=h.errors,d)throw new Error("custom keyword definition is invalid: "+this.errorsText(h.errors));return!1}return Wg}const use="http://json-schema.org/draft-07/schema#",cse="https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#",dse="Meta-schema for $data reference (JSON Schema extension proposal)",fse="object",hse=["$data"],mse={$data:{type:"string",anyOf:[{format:"relative-json-pointer"},{format:"json-pointer"}]}},pse=!1,gse={$schema:use,$id:cse,description:dse,type:fse,required:hse,properties:mse,additionalProperties:pse};var Jg,UT;function vse(){if(UT)return Jg;UT=1;var e=Rae(),t=iy(),n=Oae(),r=RN(),a=ON(),i=Nae(),l=Xae(),u=Wae(),d=$u();Jg=T,T.prototype.validate=A,T.prototype.compile=S,T.prototype.addSchema=w,T.prototype.addMetaSchema=R,T.prototype.validateSchema=k,T.prototype.getSchema=I,T.prototype.removeSchema=D,T.prototype.addFormat=J,T.prototype.errorsText=V,T.prototype._addSchema=P,T.prototype._compile=U,T.prototype.compileAsync=Jae();var h=lse();T.prototype.addKeyword=h.add,T.prototype.getKeyword=h.get,T.prototype.removeKeyword=h.remove,T.prototype.validateKeyword=h.validate;var v=oy();T.ValidationError=v.Validation,T.MissingRefError=v.MissingRef,T.$dataMetaSchema=u;var m="http://json-schema.org/draft-07/schema",E=["removeAdditional","useDefaults","coerceTypes","strictDefaults"],b=["/properties"];function T(q){if(!(this instanceof T))return new T(q);q=this._opts=d.copy(q)||{},Ee(this),this._schemas={},this._refs={},this._fragments={},this._formats=i(q.format),this._cache=q.cache||new n,this._loadingSchemas={},this._compilations=[],this.RULES=l(),this._getId=F(q),q.loopRequired=q.loopRequired||1/0,q.errorDataPath=="property"&&(q._errorDataPathProperty=!0),q.serialize===void 0&&(q.serialize=a),this._metaOpts=j(this),q.formats&&C(this),q.keywords&&oe(this),X(this),typeof q.meta=="object"&&this.addMetaSchema(q.meta),q.nullable&&this.addKeyword("nullable",{metaSchema:{type:"boolean"}}),se(this)}function A(q,ae){var Te;if(typeof q=="string"){if(Te=this.getSchema(q),!Te)throw new Error('no schema with key or ref "'+q+'"')}else{var qe=this._addSchema(q);Te=qe.validate||this._compile(qe)}var Ae=Te(ae);return Te.$async!==!0&&(this.errors=Te.errors),Ae}function S(q,ae){var Te=this._addSchema(q,void 0,ae);return Te.validate||this._compile(Te)}function w(q,ae,Te,qe){if(Array.isArray(q)){for(var Ae=0;Ae<q.length;Ae++)this.addSchema(q[Ae],void 0,Te,qe);return this}var Oe=this._getId(q);if(Oe!==void 0&&typeof Oe!="string")throw new Error("schema id must be string");return ae=t.normalizeId(ae||Oe),ge(this,ae),this._schemas[ae]=this._addSchema(q,Te,qe,!0),this}function R(q,ae,Te){return this.addSchema(q,ae,Te,!0),this}function k(q,ae){var Te=q.$schema;if(Te!==void 0&&typeof Te!="string")throw new Error("$schema must be a string");if(Te=Te||this._opts.defaultMeta||L(this),!Te)return this.logger.warn("meta-schema not available"),this.errors=null,!0;var qe=this.validate(Te,q);if(!qe&&ae){var Ae="schema is invalid: "+this.errorsText();if(this._opts.validateSchema=="log")this.logger.error(Ae);else throw new Error(Ae)}return qe}function L(q){var ae=q._opts.meta;return q._opts.defaultMeta=typeof ae=="object"?q._getId(ae)||ae:q.getSchema(m)?m:void 0,q._opts.defaultMeta}function I(q){var ae=M(this,q);switch(typeof ae){case"object":return ae.validate||this._compile(ae);case"string":return this.getSchema(ae);case"undefined":return N(this,q)}}function N(q,ae){var Te=t.schema.call(q,{schema:{}},ae);if(Te){var qe=Te.schema,Ae=Te.root,Oe=Te.baseId,et=e.call(q,qe,Ae,void 0,Oe);return q._fragments[ae]=new r({ref:ae,fragment:!0,schema:qe,root:Ae,baseId:Oe,validate:et}),et}}function M(q,ae){return ae=t.normalizeId(ae),q._schemas[ae]||q._refs[ae]||q._fragments[ae]}function D(q){if(q instanceof RegExp)return B(this,this._schemas,q),B(this,this._refs,q),this;switch(typeof q){case"undefined":return B(this,this._schemas),B(this,this._refs),this._cache.clear(),this;case"string":var ae=M(this,q);return ae&&this._cache.del(ae.cacheKey),delete this._schemas[q],delete this._refs[q],this;case"object":var Te=this._opts.serialize,qe=Te?Te(q):q;this._cache.del(qe);var Ae=this._getId(q);Ae&&(Ae=t.normalizeId(Ae),delete this._schemas[Ae],delete this._refs[Ae])}return this}function B(q,ae,Te){for(var qe in ae){var Ae=ae[qe];!Ae.meta&&(!Te||Te.test(qe))&&(q._cache.del(Ae.cacheKey),delete ae[qe])}}function P(q,ae,Te,qe){if(typeof q!="object"&&typeof q!="boolean")throw new Error("schema should be object or boolean");var Ae=this._opts.serialize,Oe=Ae?Ae(q):q,et=this._cache.get(Oe);if(et)return et;qe=qe||this._opts.addUsedSchema!==!1;var ct=t.normalizeId(this._getId(q));ct&&qe&&ge(this,ct);var it=this._opts.validateSchema!==!1&&!ae,Ht;it&&!(Ht=ct&&ct==t.normalizeId(q.$schema))&&this.validateSchema(q,!0);var _t=t.ids.call(this,q),st=new r({id:ct,schema:q,localRefs:_t,cacheKey:Oe,meta:Te});return ct[0]!="#"&&qe&&(this._refs[ct]=st),this._cache.put(Oe,st),it&&Ht&&this.validateSchema(q,!0),st}function U(q,ae){if(q.compiling)return q.validate=Ae,Ae.schema=q.schema,Ae.errors=null,Ae.root=ae||Ae,q.schema.$async===!0&&(Ae.$async=!0),Ae;q.compiling=!0;var Te;q.meta&&(Te=this._opts,this._opts=this._metaOpts);var qe;try{qe=e.call(this,q.schema,ae,q.localRefs)}catch(Oe){throw delete q.validate,Oe}finally{q.compiling=!1,q.meta&&(this._opts=Te)}return q.validate=qe,q.refs=qe.refs,q.refVal=qe.refVal,q.root=qe.root,qe;function Ae(){var Oe=q.validate,et=Oe.apply(this,arguments);return Ae.errors=Oe.errors,et}}function F(q){switch(q.schemaId){case"auto":return te;case"id":return Q;default:return Y}}function Q(q){return q.$id&&this.logger.warn("schema $id ignored",q.$id),q.id}function Y(q){return q.id&&this.logger.warn("schema id ignored",q.id),q.$id}function te(q){if(q.$id&&q.id&&q.$id!=q.id)throw new Error("schema $id is different from id");return q.$id||q.id}function V(q,ae){if(q=q||this.errors,!q)return"No errors";ae=ae||{};for(var Te=ae.separator===void 0?", ":ae.separator,qe=ae.dataVar===void 0?"data":ae.dataVar,Ae="",Oe=0;Oe<q.length;Oe++){var et=q[Oe];et&&(Ae+=qe+et.dataPath+" "+et.message+Te)}return Ae.slice(0,-Te.length)}function J(q,ae){return typeof ae=="string"&&(ae=new RegExp(ae)),this._formats[q]=ae,this}function X(q){var ae;if(q._opts.$data&&(ae=gse,q.addMetaSchema(ae,ae.$id,!0)),q._opts.meta!==!1){var Te=PN;q._opts.$data&&(Te=u(Te,b)),q.addMetaSchema(Te,m,!0),q._refs["http://json-schema.org/schema"]=m}}function se(q){var ae=q._opts.schemas;if(ae)if(Array.isArray(ae))q.addSchema(ae);else for(var Te in ae)q.addSchema(ae[Te],Te)}function C(q){for(var ae in q._opts.formats){var Te=q._opts.formats[ae];q.addFormat(ae,Te)}}function oe(q){for(var ae in q._opts.keywords){var Te=q._opts.keywords[ae];q.addKeyword(ae,Te)}}function ge(q,ae){if(q._schemas[ae]||q._refs[ae])throw new Error('schema with key or id "'+ae+'" already exists')}function j(q){for(var ae=d.copy(q._opts),Te=0;Te<E.length;Te++)delete ae[E[Te]];return ae}function Ee(q){var ae=q._opts.logger;if(ae===!1)q.logger={log:Pe,warn:Pe,error:Pe};else{if(ae===void 0&&(ae=console),!(typeof ae=="object"&&ae.log&&ae.warn&&ae.error))throw new Error("logger must implement log, warn and error methods");q.logger=ae}}function Pe(){}return Jg}var yse=vse();const bse=Cu(yse);class Ese extends _ae{constructor(t,n){var r;super(n),this._clientInfo=t,this._cachedToolOutputValidators=new Map,this._capabilities=(r=n?.capabilities)!==null&&r!==void 0?r:{},this._ajv=new bse}registerCapabilities(t){if(this.transport)throw new Error("Cannot register capabilities after connecting to transport");this._capabilities=Tae(this._capabilities,t)}assertCapability(t,n){var r;if(!(!((r=this._serverCapabilities)===null||r===void 0)&&r[t]))throw new Error(`Server does not support ${t} (required for ${n})`)}async connect(t,n){if(await super.connect(t),t.sessionId===void 0)try{const r=await this.request({method:"initialize",params:{protocolVersion:Y1,capabilities:this._capabilities,clientInfo:this._clientInfo}},mN,n);if(r===void 0)throw new Error(`Server sent invalid initialize result: ${r}`);if(!_re.includes(r.protocolVersion))throw new Error(`Server's protocol version is not supported: ${r.protocolVersion}`);this._serverCapabilities=r.capabilities,this._serverVersion=r.serverInfo,t.setProtocolVersion&&t.setProtocolVersion(r.protocolVersion),this._instructions=r.instructions,await this.notification({method:"notifications/initialized"})}catch(r){throw this.close(),r}}getServerCapabilities(){return this._serverCapabilities}getServerVersion(){return this._serverVersion}getInstructions(){return this._instructions}assertCapabilityForMethod(t){var n,r,a,i,l;switch(t){case"logging/setLevel":if(!(!((n=this._serverCapabilities)===null||n===void 0)&&n.logging))throw new Error(`Server does not support logging (required for ${t})`);break;case"prompts/get":case"prompts/list":if(!(!((r=this._serverCapabilities)===null||r===void 0)&&r.prompts))throw new Error(`Server does not support prompts (required for ${t})`);break;case"resources/list":case"resources/templates/list":case"resources/read":case"resources/subscribe":case"resources/unsubscribe":if(!(!((a=this._serverCapabilities)===null||a===void 0)&&a.resources))throw new Error(`Server does not support resources (required for ${t})`);if(t==="resources/subscribe"&&!this._serverCapabilities.resources.subscribe)throw new Error(`Server does not support resource subscriptions (required for ${t})`);break;case"tools/call":case"tools/list":if(!(!((i=this._serverCapabilities)===null||i===void 0)&&i.tools))throw new Error(`Server does not support tools (required for ${t})`);break;case"completion/complete":if(!(!((l=this._serverCapabilities)===null||l===void 0)&&l.completions))throw new Error(`Server does not support completions (required for ${t})`);break}}assertNotificationCapability(t){var n;switch(t){case"notifications/roots/list_changed":if(!(!((n=this._capabilities.roots)===null||n===void 0)&&n.listChanged))throw new Error(`Client does not support roots list changed notifications (required for ${t})`);break}}assertRequestHandlerCapability(t){switch(t){case"sampling/createMessage":if(!this._capabilities.sampling)throw new Error(`Client does not support sampling capability (required for ${t})`);break;case"elicitation/create":if(!this._capabilities.elicitation)throw new Error(`Client does not support elicitation capability (required for ${t})`);break;case"roots/list":if(!this._capabilities.roots)throw new Error(`Client does not support roots capability (required for ${t})`);break}}async ping(t){return this.request({method:"ping"},lu,t)}async complete(t,n){return this.request({method:"completion/complete",params:t},CN,n)}async setLoggingLevel(t,n){return this.request({method:"logging/setLevel",params:{level:t}},lu,n)}async getPrompt(t,n){return this.request({method:"prompts/get",params:t},AN,n)}async listPrompts(t,n){return this.request({method:"prompts/list",params:t},_N,n)}async listResources(t,n){return this.request({method:"resources/list",params:t},bN,n)}async listResourceTemplates(t,n){return this.request({method:"resources/templates/list",params:t},EN,n)}async readResource(t,n){return this.request({method:"resources/read",params:t},xN,n)}async subscribeResource(t,n){return this.request({method:"resources/subscribe",params:t},lu,n)}async unsubscribeResource(t,n){return this.request({method:"resources/unsubscribe",params:t},lu,n)}async callTool(t,n=ay,r){const a=await this.request({method:"tools/call",params:t},n,r),i=this.getToolOutputValidator(t.name);if(i){if(!a.structuredContent&&!a.isError)throw new no(bs.InvalidRequest,`Tool ${t.name} has an output schema but did not return structured content`);if(a.structuredContent)try{if(!i(a.structuredContent))throw new no(bs.InvalidParams,`Structured content does not match the tool's output schema: ${this._ajv.errorsText(i.errors)}`)}catch(l){throw l instanceof no?l:new no(bs.InvalidParams,`Failed to validate structured content: ${l instanceof Error?l.message:String(l)}`)}}return a}cacheToolOutputSchemas(t){this._cachedToolOutputValidators.clear();for(const n of t)if(n.outputSchema)try{const r=this._ajv.compile(n.outputSchema);this._cachedToolOutputValidators.set(n.name,r)}catch{}}getToolOutputValidator(t){return this._cachedToolOutputValidators.get(t)}async listTools(t,n){const r=await this.request({method:"tools/list",params:t},SN,n);return this.cacheToolOutputSchemas(r.tools),r}async sendRootsListChanged(){return this.notification({method:"notifications/roots/list_changed"})}}class BT extends Error{constructor(t,n){super(t),this.name="ParseError",this.type=n.type,this.field=n.field,this.value=n.value,this.line=n.line}}function ev(e){}function xse(e){if(typeof e=="function")throw new TypeError("`callbacks` must be an object, got a function instead. Did you mean `{onEvent: fn}`?");const{onEvent:t=ev,onError:n=ev,onRetry:r=ev,onComment:a}=e;let i="",l=!0,u,d="",h="";function v(A){const S=l?A.replace(/^\xEF\xBB\xBF/,""):A,[w,R]=_se(`${i}${S}`);for(const k of w)m(k);i=R,l=!1}function m(A){if(A===""){b();return}if(A.startsWith(":")){a&&a(A.slice(A.startsWith(": ")?2:1));return}const S=A.indexOf(":");if(S!==-1){const w=A.slice(0,S),R=A[S+1]===" "?2:1,k=A.slice(S+R);E(w,k,A);return}E(A,"",A)}function E(A,S,w){switch(A){case"event":h=S;break;case"data":d=`${d}${S}
|
|
150
|
-
`;break;case"id":u=S.includes("\0")?void 0:S;break;case"retry":/^\d+$/.test(S)?r(parseInt(S,10)):n(new BT(`Invalid \`retry\` value: "${S}"`,{type:"invalid-retry",value:S,line:w}));break;default:n(new BT(`Unknown field "${A.length>20?`${A.slice(0,20)}…`:A}"`,{type:"unknown-field",field:A,value:S,line:w}));break}}function b(){d.length>0&&t({id:u,event:h||void 0,data:d.endsWith(`
|
|
151
|
-
`)?d.slice(0,-1):d}),u=void 0,d="",h=""}function T(A={}){i&&A.consume&&m(i),l=!0,u=void 0,d="",h="",i=""}return{feed:v,reset:T}}function _se(e){const t=[];let n="",r=0;for(;r<e.length;){const a=e.indexOf("\r",r),i=e.indexOf(`
|
|
152
|
-
`,r);let l=-1;if(a!==-1&&i!==-1?l=Math.min(a,i):a!==-1?l=a:i!==-1&&(l=i),l===-1){n=e.slice(r);break}else{const u=e.slice(r,l);t.push(u),r=l+1,e[r-1]==="\r"&&e[r]===`
|
|
153
|
-
`&&r++}}return[t,n]}class VT extends Event{constructor(t,n){var r,a;super(t),this.code=(r=n?.code)!=null?r:void 0,this.message=(a=n?.message)!=null?a:void 0}[Symbol.for("nodejs.util.inspect.custom")](t,n,r){return r(zT(this),n)}[Symbol.for("Deno.customInspect")](t,n){return t(zT(this),n)}}function Tse(e){const t=globalThis.DOMException;return typeof t=="function"?new t(e,"SyntaxError"):new SyntaxError(e)}function g8(e){return e instanceof Error?"errors"in e&&Array.isArray(e.errors)?e.errors.map(g8).join(", "):"cause"in e&&e.cause instanceof Error?`${e}: ${g8(e.cause)}`:e.message:`${e}`}function zT(e){return{type:e.type,message:e.message,code:e.code,defaultPrevented:e.defaultPrevented,cancelable:e.cancelable,timeStamp:e.timeStamp}}var kN=e=>{throw TypeError(e)},ly=(e,t,n)=>t.has(e)||kN("Cannot "+n),Dt=(e,t,n)=>(ly(e,t,"read from private field"),n?n.call(e):t.get(e)),rr=(e,t,n)=>t.has(e)?kN("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),wn=(e,t,n,r)=>(ly(e,t,"write to private field"),t.set(e,n),n),ti=(e,t,n)=>(ly(e,t,"access private method"),n),$r,Fo,nu,Wf,jh,gd,uu,vd,eo,ru,vu,au,ad,$a,v8,y8,b8,qT,E8,x8,sd,_8,T8;class Jf extends EventTarget{constructor(t,n){var r,a;super(),rr(this,$a),this.CONNECTING=0,this.OPEN=1,this.CLOSED=2,rr(this,$r),rr(this,Fo),rr(this,nu),rr(this,Wf),rr(this,jh),rr(this,gd),rr(this,uu),rr(this,vd,null),rr(this,eo),rr(this,ru),rr(this,vu,null),rr(this,au,null),rr(this,ad,null),rr(this,y8,async i=>{var l;Dt(this,ru).reset();const{body:u,redirected:d,status:h,headers:v}=i;if(h===204){ti(this,$a,sd).call(this,"Server sent HTTP 204, not reconnecting",204),this.close();return}if(d?wn(this,nu,new URL(i.url)):wn(this,nu,void 0),h!==200){ti(this,$a,sd).call(this,`Non-200 status code (${h})`,h);return}if(!(v.get("content-type")||"").startsWith("text/event-stream")){ti(this,$a,sd).call(this,'Invalid content type, expected "text/event-stream"',h);return}if(Dt(this,$r)===this.CLOSED)return;wn(this,$r,this.OPEN);const m=new Event("open");if((l=Dt(this,ad))==null||l.call(this,m),this.dispatchEvent(m),typeof u!="object"||!u||!("getReader"in u)){ti(this,$a,sd).call(this,"Invalid response body, expected a web ReadableStream",h),this.close();return}const E=new TextDecoder,b=u.getReader();let T=!0;do{const{done:A,value:S}=await b.read();S&&Dt(this,ru).feed(E.decode(S,{stream:!A})),A&&(T=!1,Dt(this,ru).reset(),ti(this,$a,_8).call(this))}while(T)}),rr(this,b8,i=>{wn(this,eo,void 0),!(i.name==="AbortError"||i.type==="aborted")&&ti(this,$a,_8).call(this,g8(i))}),rr(this,E8,i=>{typeof i.id=="string"&&wn(this,vd,i.id);const l=new MessageEvent(i.event||"message",{data:i.data,origin:Dt(this,nu)?Dt(this,nu).origin:Dt(this,Fo).origin,lastEventId:i.id||""});Dt(this,au)&&(!i.event||i.event==="message")&&Dt(this,au).call(this,l),this.dispatchEvent(l)}),rr(this,x8,i=>{wn(this,gd,i)}),rr(this,T8,()=>{wn(this,uu,void 0),Dt(this,$r)===this.CONNECTING&&ti(this,$a,v8).call(this)});try{if(t instanceof URL)wn(this,Fo,t);else if(typeof t=="string")wn(this,Fo,new URL(t,Ase()));else throw new Error("Invalid URL")}catch{throw Tse("An invalid or illegal string was specified")}wn(this,ru,xse({onEvent:Dt(this,E8),onRetry:Dt(this,x8)})),wn(this,$r,this.CONNECTING),wn(this,gd,3e3),wn(this,jh,(r=n?.fetch)!=null?r:globalThis.fetch),wn(this,Wf,(a=n?.withCredentials)!=null?a:!1),ti(this,$a,v8).call(this)}get readyState(){return Dt(this,$r)}get url(){return Dt(this,Fo).href}get withCredentials(){return Dt(this,Wf)}get onerror(){return Dt(this,vu)}set onerror(t){wn(this,vu,t)}get onmessage(){return Dt(this,au)}set onmessage(t){wn(this,au,t)}get onopen(){return Dt(this,ad)}set onopen(t){wn(this,ad,t)}addEventListener(t,n,r){const a=n;super.addEventListener(t,a,r)}removeEventListener(t,n,r){const a=n;super.removeEventListener(t,a,r)}close(){Dt(this,uu)&&clearTimeout(Dt(this,uu)),Dt(this,$r)!==this.CLOSED&&(Dt(this,eo)&&Dt(this,eo).abort(),wn(this,$r,this.CLOSED),wn(this,eo,void 0))}}$r=new WeakMap,Fo=new WeakMap,nu=new WeakMap,Wf=new WeakMap,jh=new WeakMap,gd=new WeakMap,uu=new WeakMap,vd=new WeakMap,eo=new WeakMap,ru=new WeakMap,vu=new WeakMap,au=new WeakMap,ad=new WeakMap,$a=new WeakSet,v8=function(){wn(this,$r,this.CONNECTING),wn(this,eo,new AbortController),Dt(this,jh)(Dt(this,Fo),ti(this,$a,qT).call(this)).then(Dt(this,y8)).catch(Dt(this,b8))},y8=new WeakMap,b8=new WeakMap,qT=function(){var e;const t={mode:"cors",redirect:"follow",headers:{Accept:"text/event-stream",...Dt(this,vd)?{"Last-Event-ID":Dt(this,vd)}:void 0},cache:"no-store",signal:(e=Dt(this,eo))==null?void 0:e.signal};return"window"in globalThis&&(t.credentials=this.withCredentials?"include":"same-origin"),t},E8=new WeakMap,x8=new WeakMap,sd=function(e,t){var n;Dt(this,$r)!==this.CLOSED&&wn(this,$r,this.CLOSED);const r=new VT("error",{code:t,message:e});(n=Dt(this,vu))==null||n.call(this,r),this.dispatchEvent(r)},_8=function(e,t){var n;if(Dt(this,$r)===this.CLOSED)return;wn(this,$r,this.CONNECTING);const r=new VT("error",{code:t,message:e});(n=Dt(this,vu))==null||n.call(this,r),this.dispatchEvent(r),wn(this,uu,setTimeout(Dt(this,T8),Dt(this,gd)))},T8=new WeakMap,Jf.CONNECTING=0,Jf.OPEN=1,Jf.CLOSED=2;function Ase(){const e="document"in globalThis?globalThis.document:void 0;return e&&typeof e=="object"&&"baseURI"in e&&typeof e.baseURI=="string"?e.baseURI:void 0}let uy;uy=globalThis.crypto;async function Sse(e){return(await uy).getRandomValues(new Uint8Array(e))}async function wse(e){const t="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-._~";let n="";const r=await Sse(e);for(let a=0;a<e;a++){const i=r[a]%t.length;n+=t[i]}return n}async function Cse(e){return await wse(e)}async function Rse(e){const t=await(await uy).subtle.digest("SHA-256",new TextEncoder().encode(e));return btoa(String.fromCharCode(...new Uint8Array(t))).replace(/\//g,"_").replace(/\+/g,"-").replace(/=/g,"")}async function Ose(e){if(e||(e=43),e<43||e>128)throw`Expected a length between 43 and 128. Received ${e}.`;const t=await Cse(e),n=await Rse(t);return{code_verifier:t,code_challenge:n}}const Nse=Be({resource:le().url(),authorization_servers:We(le().url()).optional(),jwks_uri:le().url().optional(),scopes_supported:We(le()).optional(),bearer_methods_supported:We(le()).optional(),resource_signing_alg_values_supported:We(le()).optional(),resource_name:le().optional(),resource_documentation:le().optional(),resource_policy_uri:le().url().optional(),resource_tos_uri:le().url().optional(),tls_client_certificate_bound_access_tokens:ar().optional(),authorization_details_types_supported:We(le()).optional(),dpop_signing_alg_values_supported:We(le()).optional(),dpop_bound_access_tokens_required:ar().optional()}).passthrough(),DN=Be({issuer:le(),authorization_endpoint:le(),token_endpoint:le(),registration_endpoint:le().optional(),scopes_supported:We(le()).optional(),response_types_supported:We(le()),response_modes_supported:We(le()).optional(),grant_types_supported:We(le()).optional(),token_endpoint_auth_methods_supported:We(le()).optional(),token_endpoint_auth_signing_alg_values_supported:We(le()).optional(),service_documentation:le().optional(),revocation_endpoint:le().optional(),revocation_endpoint_auth_methods_supported:We(le()).optional(),revocation_endpoint_auth_signing_alg_values_supported:We(le()).optional(),introspection_endpoint:le().optional(),introspection_endpoint_auth_methods_supported:We(le()).optional(),introspection_endpoint_auth_signing_alg_values_supported:We(le()).optional(),code_challenge_methods_supported:We(le()).optional()}).passthrough(),Pse=Be({issuer:le(),authorization_endpoint:le(),token_endpoint:le(),userinfo_endpoint:le().optional(),jwks_uri:le(),registration_endpoint:le().optional(),scopes_supported:We(le()).optional(),response_types_supported:We(le()),response_modes_supported:We(le()).optional(),grant_types_supported:We(le()).optional(),acr_values_supported:We(le()).optional(),subject_types_supported:We(le()),id_token_signing_alg_values_supported:We(le()),id_token_encryption_alg_values_supported:We(le()).optional(),id_token_encryption_enc_values_supported:We(le()).optional(),userinfo_signing_alg_values_supported:We(le()).optional(),userinfo_encryption_alg_values_supported:We(le()).optional(),userinfo_encryption_enc_values_supported:We(le()).optional(),request_object_signing_alg_values_supported:We(le()).optional(),request_object_encryption_alg_values_supported:We(le()).optional(),request_object_encryption_enc_values_supported:We(le()).optional(),token_endpoint_auth_methods_supported:We(le()).optional(),token_endpoint_auth_signing_alg_values_supported:We(le()).optional(),display_values_supported:We(le()).optional(),claim_types_supported:We(le()).optional(),claims_supported:We(le()).optional(),service_documentation:le().optional(),claims_locales_supported:We(le()).optional(),ui_locales_supported:We(le()).optional(),claims_parameter_supported:ar().optional(),request_parameter_supported:ar().optional(),request_uri_parameter_supported:ar().optional(),require_request_uri_registration:ar().optional(),op_policy_uri:le().optional(),op_tos_uri:le().optional()}).passthrough(),kse=Pse.merge(DN.pick({code_challenge_methods_supported:!0})),MN=Be({access_token:le(),id_token:le().optional(),token_type:le(),expires_in:fr().optional(),scope:le().optional(),refresh_token:le().optional()}).strip(),Dse=Be({error:le(),error_description:le().optional(),error_uri:le().optional()}),Mse=Be({redirect_uris:We(le()).refine(e=>e.every(t=>URL.canParse(t)),{message:"redirect_uris must contain valid URLs"}),token_endpoint_auth_method:le().optional(),grant_types:We(le()).optional(),response_types:We(le()).optional(),client_name:le().optional(),client_uri:le().optional(),logo_uri:le().optional(),scope:le().optional(),contacts:We(le()).optional(),tos_uri:le().optional(),policy_uri:le().optional(),jwks_uri:le().optional(),jwks:Oee().optional(),software_id:le().optional(),software_version:le().optional(),software_statement:le().optional()}).strip(),Lse=Be({client_id:le(),client_secret:le().optional(),client_id_issued_at:fr().optional(),client_secret_expires_at:fr().optional()}).strip(),Ise=Mse.merge(Lse);Be({error:le(),error_description:le().optional()}).strip();Be({token:le(),token_type_hint:le().optional()}).strip();function jse(e){const t=typeof e=="string"?new URL(e):new URL(e.href);return t.hash="",t}function Hse({requestedResource:e,configuredResource:t}){const n=typeof e=="string"?new URL(e):new URL(e.href),r=typeof t=="string"?new URL(t):new URL(t.href);if(n.origin!==r.origin||n.pathname.length<r.pathname.length)return!1;const a=n.pathname.endsWith("/")?n.pathname:n.pathname+"/",i=r.pathname.endsWith("/")?r.pathname:r.pathname+"/";return a.startsWith(i)}class Er extends Error{constructor(t,n){super(t),this.errorUri=n,this.name=this.constructor.name}toResponseObject(){const t={error:this.errorCode,error_description:this.message};return this.errorUri&&(t.error_uri=this.errorUri),t}get errorCode(){return this.constructor.errorCode}}class A8 extends Er{}A8.errorCode="invalid_request";class Hh extends Er{}Hh.errorCode="invalid_client";class Fh extends Er{}Fh.errorCode="invalid_grant";class Uh extends Er{}Uh.errorCode="unauthorized_client";class S8 extends Er{}S8.errorCode="unsupported_grant_type";class w8 extends Er{}w8.errorCode="invalid_scope";class C8 extends Er{}C8.errorCode="access_denied";class wu extends Er{}wu.errorCode="server_error";class R8 extends Er{}R8.errorCode="temporarily_unavailable";class O8 extends Er{}O8.errorCode="unsupported_response_type";class N8 extends Er{}N8.errorCode="unsupported_token_type";class P8 extends Er{}P8.errorCode="invalid_token";class k8 extends Er{}k8.errorCode="method_not_allowed";class D8 extends Er{}D8.errorCode="too_many_requests";class M8 extends Er{}M8.errorCode="invalid_client_metadata";class L8 extends Er{}L8.errorCode="insufficient_scope";const Fse={[A8.errorCode]:A8,[Hh.errorCode]:Hh,[Fh.errorCode]:Fh,[Uh.errorCode]:Uh,[S8.errorCode]:S8,[w8.errorCode]:w8,[C8.errorCode]:C8,[wu.errorCode]:wu,[R8.errorCode]:R8,[O8.errorCode]:O8,[N8.errorCode]:N8,[P8.errorCode]:P8,[k8.errorCode]:k8,[D8.errorCode]:D8,[M8.errorCode]:M8,[L8.errorCode]:L8};class Jc extends Error{constructor(t){super(t??"Unauthorized")}}function LN(e,t){const n=e.client_secret!==void 0;return t.length===0?n?"client_secret_post":"none":n&&t.includes("client_secret_basic")?"client_secret_basic":n&&t.includes("client_secret_post")?"client_secret_post":t.includes("none")?"none":n?"client_secret_post":"none"}function IN(e,t,n,r){const{client_id:a,client_secret:i}=t;switch(e){case"client_secret_basic":Use(a,i,n);return;case"client_secret_post":Bse(a,i,r);return;case"none":Vse(a,r);return;default:throw new Error(`Unsupported client authentication method: ${e}`)}}function Use(e,t,n){if(!t)throw new Error("client_secret_basic authentication requires a client_secret");const r=btoa(`${e}:${t}`);n.set("Authorization",`Basic ${r}`)}function Bse(e,t,n){n.set("client_id",e),t&&n.set("client_secret",t)}function Vse(e,t){t.set("client_id",e)}async function cy(e){const t=e instanceof Response?e.status:void 0,n=e instanceof Response?await e.text():e;try{const r=Dse.parse(JSON.parse(n)),{error:a,error_description:i,error_uri:l}=r,u=Fse[a]||wu;return new u(i||"",l)}catch(r){const a=`${t?`HTTP ${t}: `:""}Invalid OAuth error response: ${r}. Raw body: ${n}`;return new wu(a)}}async function tv(e,t){var n,r;try{return await nv(e,t)}catch(a){if(a instanceof Hh||a instanceof Uh)return await((n=e.invalidateCredentials)===null||n===void 0?void 0:n.call(e,"all")),await nv(e,t);if(a instanceof Fh)return await((r=e.invalidateCredentials)===null||r===void 0?void 0:r.call(e,"tokens")),await nv(e,t);throw a}}async function nv(e,{serverUrl:t,authorizationCode:n,scope:r,resourceMetadataUrl:a,fetchFn:i}){let l,u;try{l=await qse(t,{resourceMetadataUrl:a},i),l.authorization_servers&&l.authorization_servers.length>0&&(u=l.authorization_servers[0])}catch{}u||(u=t);const d=await zse(t,e,l),h=await Gse(u,{fetchFn:i});let v=await Promise.resolve(e.clientInformation());if(!v){if(n!==void 0)throw new Error("Existing OAuth client information is required when exchanging an authorization code");if(!e.saveClientInformation)throw new Error("OAuth client information must be saveable for dynamic registration");const A=await Jse(u,{metadata:h,clientMetadata:e.clientMetadata});await e.saveClientInformation(A),v=A}if(n!==void 0){const A=await e.codeVerifier(),S=await Xse(u,{metadata:h,clientInformation:v,authorizationCode:n,codeVerifier:A,redirectUri:e.redirectUrl,resource:d,addClientAuthentication:e.addClientAuthentication,fetchFn:i});return await e.saveTokens(S),"AUTHORIZED"}const m=await e.tokens();if(m?.refresh_token)try{const A=await Wse(u,{metadata:h,clientInformation:v,refreshToken:m.refresh_token,resource:d,addClientAuthentication:e.addClientAuthentication});return await e.saveTokens(A),"AUTHORIZED"}catch(A){if(!(!(A instanceof Er)||A instanceof wu))throw A}const E=e.state?await e.state():void 0,{authorizationUrl:b,codeVerifier:T}=await Kse(u,{metadata:h,clientInformation:v,state:E,redirectUrl:e.redirectUrl,scope:r||e.clientMetadata.scope,resource:d});return await e.saveCodeVerifier(T),await e.redirectToAuthorization(b),"REDIRECT"}async function zse(e,t,n){const r=jse(e);if(t.validateResourceURL)return await t.validateResourceURL(r,n?.resource);if(n){if(!Hse({requestedResource:r,configuredResource:n.resource}))throw new Error(`Protected resource ${n.resource} does not match expected ${r} (or origin)`);return new URL(n.resource)}}function $T(e){const t=e.headers.get("WWW-Authenticate");if(!t)return;const[n,r]=t.split(" ");if(n.toLowerCase()!=="bearer"||!r)return;const i=/resource_metadata="([^"]*)"/.exec(t);if(i)try{return new URL(i[1])}catch{return}}async function qse(e,t,n=fetch){const r=await Qse(e,"oauth-protected-resource",n,{protocolVersion:t?.protocolVersion,metadataUrl:t?.resourceMetadataUrl});if(!r||r.status===404)throw new Error("Resource server does not implement OAuth 2.0 Protected Resource Metadata.");if(!r.ok)throw new Error(`HTTP ${r.status} trying to load well-known OAuth protected resource metadata.`);return Nse.parse(await r.json())}async function dy(e,t,n=fetch){try{return await n(e,{headers:t})}catch(r){if(r instanceof TypeError)return t?dy(e,void 0,n):void 0;throw r}}function $se(e,t="",n={}){return t.endsWith("/")&&(t=t.slice(0,-1)),n.prependPathname?`${t}/.well-known/${e}`:`/.well-known/${e}${t}`}async function ZT(e,t,n=fetch){return await dy(e,{"MCP-Protocol-Version":t},n)}function Zse(e,t){return!e||e.status===404&&t!=="/"}async function Qse(e,t,n,r){var a,i;const l=new URL(e),u=(a=r?.protocolVersion)!==null&&a!==void 0?a:Y1;let d;if(r?.metadataUrl)d=new URL(r.metadataUrl);else{const v=$se(t,l.pathname);d=new URL(v,(i=r?.metadataServerUrl)!==null&&i!==void 0?i:l),d.search=l.search}let h=await ZT(d,u,n);if(!r?.metadataUrl&&Zse(h,l.pathname)){const v=new URL(`/.well-known/${t}`,l);h=await ZT(v,u,n)}return h}function Yse(e){const t=typeof e=="string"?new URL(e):e,n=t.pathname!=="/",r=[];if(!n)return r.push({url:new URL("/.well-known/oauth-authorization-server",t.origin),type:"oauth"}),r.push({url:new URL("/.well-known/openid-configuration",t.origin),type:"oidc"}),r;let a=t.pathname;return a.endsWith("/")&&(a=a.slice(0,-1)),r.push({url:new URL(`/.well-known/oauth-authorization-server${a}`,t.origin),type:"oauth"}),r.push({url:new URL("/.well-known/oauth-authorization-server",t.origin),type:"oauth"}),r.push({url:new URL(`/.well-known/openid-configuration${a}`,t.origin),type:"oidc"}),r.push({url:new URL(`${a}/.well-known/openid-configuration`,t.origin),type:"oidc"}),r}async function Gse(e,{fetchFn:t=fetch,protocolVersion:n=Y1}={}){var r;const a={"MCP-Protocol-Version":n},i=Yse(e);for(const{url:l,type:u}of i){const d=await dy(l,a,t);if(!d)throw new Error(`CORS error trying to load ${u==="oauth"?"OAuth":"OpenID provider"} metadata from ${l}`);if(!d.ok){if(d.status>=400&&d.status<500)continue;throw new Error(`HTTP ${d.status} trying to load ${u==="oauth"?"OAuth":"OpenID provider"} metadata from ${l}`)}if(u==="oauth")return DN.parse(await d.json());{const h=kse.parse(await d.json());if(!(!((r=h.code_challenge_methods_supported)===null||r===void 0)&&r.includes("S256")))throw new Error(`Incompatible OIDC provider at ${l}: does not support S256 code challenge method required by MCP specification`);return h}}}async function Kse(e,{metadata:t,clientInformation:n,redirectUrl:r,scope:a,state:i,resource:l}){const u="code",d="S256";let h;if(t){if(h=new URL(t.authorization_endpoint),!t.response_types_supported.includes(u))throw new Error(`Incompatible auth server: does not support response type ${u}`);if(!t.code_challenge_methods_supported||!t.code_challenge_methods_supported.includes(d))throw new Error(`Incompatible auth server: does not support code challenge method ${d}`)}else h=new URL("/authorize",e);const v=await Ose(),m=v.code_verifier,E=v.code_challenge;return h.searchParams.set("response_type",u),h.searchParams.set("client_id",n.client_id),h.searchParams.set("code_challenge",E),h.searchParams.set("code_challenge_method",d),h.searchParams.set("redirect_uri",String(r)),i&&h.searchParams.set("state",i),a&&h.searchParams.set("scope",a),a?.includes("offline_access")&&h.searchParams.append("prompt","consent"),l&&h.searchParams.set("resource",l.href),{authorizationUrl:h,codeVerifier:m}}async function Xse(e,{metadata:t,clientInformation:n,authorizationCode:r,codeVerifier:a,redirectUri:i,resource:l,addClientAuthentication:u,fetchFn:d}){var h;const v="authorization_code",m=t?.token_endpoint?new URL(t.token_endpoint):new URL("/token",e);if(t?.grant_types_supported&&!t.grant_types_supported.includes(v))throw new Error(`Incompatible auth server: does not support grant type ${v}`);const E=new Headers({"Content-Type":"application/x-www-form-urlencoded",Accept:"application/json"}),b=new URLSearchParams({grant_type:v,code:r,code_verifier:a,redirect_uri:String(i)});if(u)u(E,b,e,t);else{const A=(h=t?.token_endpoint_auth_methods_supported)!==null&&h!==void 0?h:[],S=LN(n,A);IN(S,n,E,b)}l&&b.set("resource",l.href);const T=await(d??fetch)(m,{method:"POST",headers:E,body:b});if(!T.ok)throw await cy(T);return MN.parse(await T.json())}async function Wse(e,{metadata:t,clientInformation:n,refreshToken:r,resource:a,addClientAuthentication:i,fetchFn:l}){var u;const d="refresh_token";let h;if(t){if(h=new URL(t.token_endpoint),t.grant_types_supported&&!t.grant_types_supported.includes(d))throw new Error(`Incompatible auth server: does not support grant type ${d}`)}else h=new URL("/token",e);const v=new Headers({"Content-Type":"application/x-www-form-urlencoded"}),m=new URLSearchParams({grant_type:d,refresh_token:r});if(i)i(v,m,e,t);else{const b=(u=t?.token_endpoint_auth_methods_supported)!==null&&u!==void 0?u:[],T=LN(n,b);IN(T,n,v,m)}a&&m.set("resource",a.href);const E=await(l??fetch)(h,{method:"POST",headers:v,body:m});if(!E.ok)throw await cy(E);return MN.parse({refresh_token:r,...await E.json()})}async function Jse(e,{metadata:t,clientMetadata:n,fetchFn:r}){let a;if(t){if(!t.registration_endpoint)throw new Error("Incompatible auth server: does not support dynamic client registration");a=new URL(t.registration_endpoint)}else a=new URL("/register",e);const i=await(r??fetch)(a,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(n)});if(!i.ok)throw await cy(i);return Ise.parse(await i.json())}class eie extends Error{constructor(t,n,r){super(`SSE error: ${n}`),this.code=t,this.event=r}}class tie{constructor(t,n){this._url=t,this._resourceMetadataUrl=void 0,this._eventSourceInit=n?.eventSourceInit,this._requestInit=n?.requestInit,this._authProvider=n?.authProvider,this._fetch=n?.fetch}async _authThenStart(){var t;if(!this._authProvider)throw new Jc("No auth provider");let n;try{n=await tv(this._authProvider,{serverUrl:this._url,resourceMetadataUrl:this._resourceMetadataUrl,fetchFn:this._fetch})}catch(r){throw(t=this.onerror)===null||t===void 0||t.call(this,r),r}if(n!=="AUTHORIZED")throw new Jc;return await this._startOrAuth()}async _commonHeaders(){var t;const n={};if(this._authProvider){const r=await this._authProvider.tokens();r&&(n.Authorization=`Bearer ${r.access_token}`)}return this._protocolVersion&&(n["mcp-protocol-version"]=this._protocolVersion),new Headers({...n,...(t=this._requestInit)===null||t===void 0?void 0:t.headers})}_startOrAuth(){var t,n,r;const a=(r=(n=(t=this===null||this===void 0?void 0:this._eventSourceInit)===null||t===void 0?void 0:t.fetch)!==null&&n!==void 0?n:this._fetch)!==null&&r!==void 0?r:fetch;return new Promise((i,l)=>{this._eventSource=new Jf(this._url.href,{...this._eventSourceInit,fetch:async(u,d)=>{const h=await this._commonHeaders();h.set("Accept","text/event-stream");const v=await a(u,{...d,headers:h});return v.status===401&&v.headers.has("www-authenticate")&&(this._resourceMetadataUrl=$T(v)),v}}),this._abortController=new AbortController,this._eventSource.onerror=u=>{var d;if(u.code===401&&this._authProvider){this._authThenStart().then(i,l);return}const h=new eie(u.code,u.message,u);l(h),(d=this.onerror)===null||d===void 0||d.call(this,h)},this._eventSource.onopen=()=>{},this._eventSource.addEventListener("endpoint",u=>{var d;const h=u;try{if(this._endpoint=new URL(h.data,this._url),this._endpoint.origin!==this._url.origin)throw new Error(`Endpoint origin does not match connection origin: ${this._endpoint.origin}`)}catch(v){l(v),(d=this.onerror)===null||d===void 0||d.call(this,v),this.close();return}i()}),this._eventSource.onmessage=u=>{var d,h;const v=u;let m;try{m=Cre.parse(JSON.parse(v.data))}catch(E){(d=this.onerror)===null||d===void 0||d.call(this,E);return}(h=this.onmessage)===null||h===void 0||h.call(this,m)}})}async start(){if(this._eventSource)throw new Error("SSEClientTransport already started! If using Client class, note that connect() calls start() automatically.");return await this._startOrAuth()}async finishAuth(t){if(!this._authProvider)throw new Jc("No auth provider");if(await tv(this._authProvider,{serverUrl:this._url,authorizationCode:t,resourceMetadataUrl:this._resourceMetadataUrl,fetchFn:this._fetch})!=="AUTHORIZED")throw new Jc("Failed to authorize")}async close(){var t,n,r;(t=this._abortController)===null||t===void 0||t.abort(),(n=this._eventSource)===null||n===void 0||n.close(),(r=this.onclose)===null||r===void 0||r.call(this)}async send(t){var n,r,a;if(!this._endpoint)throw new Error("Not connected");try{const i=await this._commonHeaders();i.set("content-type","application/json");const l={...this._requestInit,method:"POST",headers:i,body:JSON.stringify(t),signal:(n=this._abortController)===null||n===void 0?void 0:n.signal},u=await((r=this._fetch)!==null&&r!==void 0?r:fetch)(this._endpoint,l);if(!u.ok){if(u.status===401&&this._authProvider){if(this._resourceMetadataUrl=$T(u),await tv(this._authProvider,{serverUrl:this._url,resourceMetadataUrl:this._resourceMetadataUrl,fetchFn:this._fetch})!=="AUTHORIZED")throw new Jc;return this.send(t)}const d=await u.text().catch(()=>null);throw new Error(`Error POSTing to endpoint (HTTP ${u.status}): ${d}`)}}catch(i){throw(a=this.onerror)===null||a===void 0||a.call(this,i),i}}setProtocolVersion(t){this._protocolVersion=t}}function jN(e,t){const[n,r]=p.useState(!0),[a,i]=p.useState([]);return p.useEffect(()=>{const l=new Ese({name:"director",version:"0.0.1"}),u=new tie(new URL(`${Iu}/${e}/sse`));return l.connect(u).then(()=>{Promise.all([l.listTools().then(({tools:d})=>{i(d.filter(h=>t?h.description?.startsWith(`[${t}]`):!0))})]).then(()=>{r(!1),l.close()})}),()=>{l.close()}},[e,t]),{isLoading:n,tools:a}}function HN(e){const[t,n]=En.useQueries(a=>[a.store.get({proxyId:e}),a.installer.byProxy.list({proxyId:e})]),r=t.isLoading||n.isLoading||t.error?.message==="Failed to fetch";return{workspace:t.data,isLoading:r,installers:n.data??{claude:!1,cursor:!1,vscode:!1}}}const nie=()=>{const{workspaceId:e}=x4(),t=es();if(!e)throw new Error("Workspace ID is required");const{workspace:n,isLoading:r}=HN(e),{data:a,isLoading:i}=_O(e),{changeInstallState:l,isPending:u}=xre(e,{onSuccess:(d,h)=>{ur({title:h?"Proxy installed":"Proxy uninstalled",description:h?"This proxy was successfully installed":"This proxy was successfully uninstalled"})},onError:(d,h)=>{ur({title:"Error",description:h?"Failed to install this proxy":"Failed to uninstall this proxy"})}});if(r)return g.jsx(Yne,{});if(!n)throw new Error("Workspace not found");return g.jsxs(g.Fragment,{children:[g.jsx(xi,{breadcrumbs:[{title:"Workspaces"},{title:e}],children:g.jsx(aie,{workspace:n})}),g.jsx(Os,{children:g.jsxs(Ia,{size:"lg",children:[g.jsx(lre,{workspace:n}),g.jsx(ii,{}),g.jsx(ore,{workspace:n,gatewayBaseUrl:Iu,clients:a??[],isClientsLoading:i,onChangeInstall:async(d,h)=>{await l(d,h)},isChanging:u}),g.jsx(ii,{}),g.jsx(ure,{workspace:n,onLibraryClick:()=>t("/library"),onServerClick:d=>t(`/${e}/${d}`)}),g.jsx(ii,{}),g.jsx(rie,{workspace:n})]})})]})};function rie({workspace:e}){const[t,n]=p.useState(null),{tools:r,isLoading:a}=jN(e.id);return g.jsxs(g.Fragment,{children:[g.jsx(iN,{tools:r,toolsLoading:a,onToolClick:i=>n(i)}),t&&g.jsx(LO,{tool:t,mcpName:e.name,onClose:()=>n(null)})]})}function aie({workspace:e}){const t=es(),[n,r]=p.useState(!1),[a,i]=p.useState(!1),l=En.useUtils(),u=En.store.update.useMutation({onSuccess:async()=>{await l.store.getAll.invalidate(),await l.store.get.invalidate({proxyId:e.id}),ur({title:"Proxy updated",description:"This proxy was successfully updated."}),r(!1)}}),d=En.store.delete.useMutation({onSuccess:async()=>{await l.store.getAll.invalidate(),ur({title:"Proxy deleted",description:"This proxy was successfully deleted."}),i(!1),t("/")}}),h=async m=>{await u.mutateAsync({proxyId:e.id,attributes:m})},v=async()=>{await d.mutateAsync({proxyId:e.id})};return g.jsxs(g.Fragment,{children:[g.jsx($ne,{onSettingsClick:()=>r(!0),onDeleteClick:()=>i(!0)}),g.jsx(Qne,{proxy:e,onSubmit:h,isSubmitting:u.isPending,open:n,onOpenChange:r}),g.jsx(Zne,{onConfirm:v,open:a,onOpenChange:i})]})}function sie({children:e,onConfirm:t,open:n,onOpenChange:r}){return g.jsx(WO,{title:"Delete this server",description:"Are you sure you want to delete this server? This action cannot be undone.",open:n,onOpenChange:r,onConfirm:t,children:e})}function iie({onDelete:e,open:t,onOpenChange:n}){return g.jsx(sie,{onConfirm:e,open:t,onOpenChange:n,children:g.jsxs(p4,{children:[g.jsx(g4,{asChild:!0,children:g.jsxs(Yt,{size:"icon",variant:"ghost",className:"radix-state-[open]:bg-accent-subtle",children:[g.jsx(jd,{weight:"fill",className:"!size-4"}),g.jsx("span",{className:"sr-only",children:"Settings"})]})}),g.jsx(v4,{align:"end",children:g.jsx(ih,{children:g.jsxs(Wi,{onSelect:r=>r.preventDefault(),children:[g.jsx(ni,{children:g.jsx(zh,{})}),g.jsx(Za,{onClick:()=>n(!0),children:"Delete"})]})})})]})})}function oie(){const{workspaceId:e,targetId:t}=x4(),n=es();if(!e||!t)throw new Error("Workspace ID and target ID are required");const[r,a]=p.useState(!1),{workspace:i}=HN(e),l=i?.servers.find(T=>T.name===t);if(!l)throw new Error("Workspace target not found");const{tools:u,isLoading:d}=jN(e,t),h=Kd.entries.getEntryByName.useQuery({name:t},{throwOnError:!1}),v=En.useUtils(),m=h.data,E=En.store.removeServer.useMutation({onSuccess:async()=>{n(`/${e}`),await v.store.get.invalidate({proxyId:e}),await v.store.getAll.invalidate(),ur({title:"Server deleted",description:"This server was successfully deleted."})}}),b=async()=>{await E.mutateAsync({proxyId:e,serverName:t})};return g.jsxs(fo,{children:[g.jsx(xi,{breadcrumbs:[{title:i?.name||"",onClick:()=>n(`/${e}`)},{title:l?.name}],children:g.jsx(iie,{onDelete:b,open:r,onOpenChange:a})}),g.jsx(Os,{children:g.jsxs(Ia,{size:"lg",children:[g.jsxs(Wt,{children:[g.jsx(v1,{src:m?.icon,className:"size-9"}),g.jsxs(Jt,{children:[g.jsx(en,{children:l.name}),g.jsxs(Ls,{children:["Installed on"," ",g.jsx("button",{onClick:()=>n(`/${e}`),className:"cursor-pointer text-fg underline",children:i?.name})]})]}),m?.description?g.jsx(Go,{children:m?.description}):null]}),g.jsxs(Wt,{children:[g.jsx(Jt,{children:g.jsx(en,{variant:"h2",asChild:!0,children:g.jsx("h3",{children:"Transport"})})}),g.jsx(c7,{transport:l.transport})]}),g.jsx(iN,{tools:u,toolsLoading:d,onToolClick:T=>console.log(T)}),g.jsxs(Wt,{children:[g.jsx(Jt,{children:g.jsx(en,{variant:"h2",asChild:!0,children:g.jsx("h3",{children:"Readme"})})}),m?.readme?g.jsx("div",{className:"rounded-md border-[0.5px] bg-accent-subtle/20 px-4 py-8",children:g.jsx(Go,{className:"mx-auto",children:m?.readme})}):g.jsx(ks,{children:g.jsx(bi,{children:"No readme found"})})]})]})})]})}const lie=()=>{const e=es(),{data:t,isLoading:n,error:r}=Xd(),a=n||r?.message==="Failed to fetch",i=gi();return g.jsxs(Bte,{sections:[{id:"library",label:"Library",items:[{id:"mcp",label:"MCP",icon:g.jsx(u7,{}),isActive:i.pathname==="/library",onClick:()=>e("/library")}]},{id:"servers",label:"Servers",isLoading:a,items:t?.map(l=>({id:l.id,label:l.name,isActive:i.pathname===`/${l.id}`,onClick:()=>e(`/${l.id}`)}))||[]},{id:"actions",items:[{id:"new-server",label:"New server",icon:g.jsx(z8,{}),isActive:i.pathname==="/new",onClick:()=>e("/new")},{id:"documentation",label:"Documentation",icon:g.jsx(H8,{weight:"fill"}),onClick:()=>window.open("https://docs.director.run","_blank","noopener noreferrer")},{id:"github",label:"Github",icon:g.jsx(B8,{}),onClick:()=>window.open("https://github.com/director-run/director","_blank","noopener noreferrer")},{id:"settings",label:"Settings",icon:g.jsx(U8,{}),isActive:i.pathname==="/settings",onClick:()=>e("/settings")}]}],children:[g.jsx(fo,{children:g.jsx(uw,{})}),g.jsx(WS,{})]})},uie=()=>{const{isAuthenticated:e,isInitializing:t}=i1();return t?g.jsx("div",{children:"Initializing Auth..."}):g.jsxs(YF,{children:[g.jsx(Ta,{path:"/login",element:g.jsx(jte,{})}),g.jsxs(Ta,{element:g.jsx(cie,{}),children:[g.jsxs(Ta,{element:g.jsx(lie,{}),children:[g.jsx(Ta,{path:"/library",element:g.jsx(jne,{})}),g.jsx(Ta,{path:"/library/mcp/:entryName",element:g.jsx(Ane,{})}),g.jsx(Ta,{path:"/settings",element:g.jsx(Fne,{})}),g.jsx(Ta,{path:"/:workspaceId",element:g.jsx(nie,{})}),g.jsx(Ta,{path:"/:workspaceId/:targetId",element:g.jsx(oie,{})}),g.jsx(Ta,{path:"/new",element:g.jsx(qne,{})})]}),g.jsx(Ta,{path:"/get-started",element:g.jsx(Mte,{})}),g.jsx(Ta,{path:"*",element:g.jsx(die,{})})]})]})};nF.createRoot(document.getElementById("root")).render(g.jsx(me.StrictMode,{children:g.jsx(vU,{basename:vw,children:g.jsx(tz,{gatewayUrl:Iu,registryUrl:gw,children:g.jsxs(CU,{children:[g.jsx(uie,{}),g.jsx(GH,{}),g.jsx(WS,{})]})})})}));function cie(){const{isAuthenticated:e,isInitializing:t}=i1();return t?g.jsx("div",{children:"Initializing Auth..."}):e?g.jsx(uw,{}):g.jsx(gv,{to:"/login",replace:!0})}function die(){const{data:e,isLoading:t}=Xd();return t?g.jsx("div",{children:"Initializing Auth..."}):e?.length&&e.length>0?g.jsx(gv,{to:`/${e[0].id}`,replace:!0}):g.jsx(gv,{to:"/get-started",replace:!0})}
|